diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index a1d9c6a9f2a0..31a38fbb06be 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.63.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/generation_config.yaml b/generation_config.yaml index 9a23f02c43e4..51c62a30c0c8 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.63.0 -googleapis_commitish: 1b5c44879f3281d05731a0bf3fc0345ff4463eed -libraries_bom_version: 26.70.0 +gapic_generator_version: 2.64.1 +googleapis_commitish: ba80e9b5251c974d18c3c25fa905e2d0ae4a0f02 +libraries_bom_version: 26.71.0 # the libraries are ordered with respect to library name, which is # java-{library.library_name} or java-{library.api-shortname} when diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 0a39e1fd7713..bb2c8954a83c 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.78.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accessapproval/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java b/java-accessapproval/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java index 5e91036c0381..5a091588c09c 100644 --- a/java-accessapproval/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java +++ b/java-accessapproval/grpc-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalGrpc.java @@ -50,9 +50,6 @@ * If a request is not approved or dismissed, we call it pending. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/accessapproval/v1/accessapproval.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccessApprovalGrpc { @@ -1082,8 +1079,9 @@ protected AccessApprovalBlockingV2Stub build( * */ public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse listApprovalRequests( - com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.accessapproval.v1.ListApprovalRequestsMessage request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApprovalRequestsMethod(), getCallOptions(), request); } @@ -1095,8 +1093,9 @@ public com.google.cloud.accessapproval.v1.ListApprovalRequestsResponse listAppro * */ public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequest( - com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.accessapproval.v1.GetApprovalRequestMessage request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApprovalRequestMethod(), getCallOptions(), request); } @@ -1110,8 +1109,9 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest getApprovalRequest( * */ public com.google.cloud.accessapproval.v1.ApprovalRequest approveApprovalRequest( - com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.accessapproval.v1.ApproveApprovalRequestMessage request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApproveApprovalRequestMethod(), getCallOptions(), request); } @@ -1129,8 +1129,9 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest approveApprovalRequest * */ public com.google.cloud.accessapproval.v1.ApprovalRequest dismissApprovalRequest( - com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.accessapproval.v1.DismissApprovalRequestMessage request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDismissApprovalRequestMethod(), getCallOptions(), request); } @@ -1147,8 +1148,9 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest dismissApprovalRequest * */ public com.google.cloud.accessapproval.v1.ApprovalRequest invalidateApprovalRequest( - com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInvalidateApprovalRequestMethod(), getCallOptions(), request); } @@ -1160,8 +1162,9 @@ public com.google.cloud.accessapproval.v1.ApprovalRequest invalidateApprovalRequ * */ public com.google.cloud.accessapproval.v1.AccessApprovalSettings getAccessApprovalSettings( - com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccessApprovalSettingsMethod(), getCallOptions(), request); } @@ -1174,8 +1177,9 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettings getAccessApprov * */ public com.google.cloud.accessapproval.v1.AccessApprovalSettings updateAccessApprovalSettings( - com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccessApprovalSettingsMethod(), getCallOptions(), request); } @@ -1192,8 +1196,9 @@ public com.google.cloud.accessapproval.v1.AccessApprovalSettings updateAccessApp * */ public com.google.protobuf.Empty deleteAccessApprovalSettings( - com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccessApprovalSettingsMethod(), getCallOptions(), request); } @@ -1207,8 +1212,9 @@ public com.google.protobuf.Empty deleteAccessApprovalSettings( */ public com.google.cloud.accessapproval.v1.AccessApprovalServiceAccount getAccessApprovalServiceAccount( - com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccessApprovalServiceAccountMethod(), getCallOptions(), request); } } diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 1bf445039457..68b30dd21ea7 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.78.0 + 1.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.78.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.78.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerGrpc.java b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerGrpc.java index 2b6a40ae06ae..47e66d624b4d 100644 --- a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerGrpc.java +++ b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerGrpc.java @@ -34,9 +34,6 @@ * AccessPolicies * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/identity/accesscontextmanager/v1/access_context_manager.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccessContextManagerGrpc { @@ -2581,8 +2578,9 @@ protected AccessContextManagerBlockingV2Stub build( */ public com.google.identity.accesscontextmanager.v1.ListAccessPoliciesResponse listAccessPolicies( - com.google.identity.accesscontextmanager.v1.ListAccessPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.ListAccessPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccessPoliciesMethod(), getCallOptions(), request); } @@ -2595,8 +2593,9 @@ protected AccessContextManagerBlockingV2Stub build( * */ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy( - com.google.identity.accesscontextmanager.v1.GetAccessPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.GetAccessPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccessPolicyMethod(), getCallOptions(), request); } @@ -2612,8 +2611,9 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy( * */ public com.google.longrunning.Operation createAccessPolicy( - com.google.identity.accesscontextmanager.v1.AccessPolicy request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.AccessPolicy request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAccessPolicyMethod(), getCallOptions(), request); } @@ -2630,8 +2630,9 @@ public com.google.longrunning.Operation createAccessPolicy( * */ public com.google.longrunning.Operation updateAccessPolicy( - com.google.identity.accesscontextmanager.v1.UpdateAccessPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.UpdateAccessPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccessPolicyMethod(), getCallOptions(), request); } @@ -2647,8 +2648,9 @@ public com.google.longrunning.Operation updateAccessPolicy( * */ public com.google.longrunning.Operation deleteAccessPolicy( - com.google.identity.accesscontextmanager.v1.DeleteAccessPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.DeleteAccessPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccessPolicyMethod(), getCallOptions(), request); } @@ -2662,8 +2664,9 @@ public com.google.longrunning.Operation deleteAccessPolicy( * */ public com.google.identity.accesscontextmanager.v1.ListAccessLevelsResponse listAccessLevels( - com.google.identity.accesscontextmanager.v1.ListAccessLevelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.ListAccessLevelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccessLevelsMethod(), getCallOptions(), request); } @@ -2677,8 +2680,9 @@ public com.google.identity.accesscontextmanager.v1.ListAccessLevelsResponse list * */ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel( - com.google.identity.accesscontextmanager.v1.GetAccessLevelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.GetAccessLevelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccessLevelMethod(), getCallOptions(), request); } @@ -2696,8 +2700,9 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel( * */ public com.google.longrunning.Operation createAccessLevel( - com.google.identity.accesscontextmanager.v1.CreateAccessLevelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.CreateAccessLevelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAccessLevelMethod(), getCallOptions(), request); } @@ -2716,8 +2721,9 @@ public com.google.longrunning.Operation createAccessLevel( * */ public com.google.longrunning.Operation updateAccessLevel( - com.google.identity.accesscontextmanager.v1.UpdateAccessLevelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.UpdateAccessLevelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccessLevelMethod(), getCallOptions(), request); } @@ -2734,8 +2740,9 @@ public com.google.longrunning.Operation updateAccessLevel( * */ public com.google.longrunning.Operation deleteAccessLevel( - com.google.identity.accesscontextmanager.v1.DeleteAccessLevelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.DeleteAccessLevelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccessLevelMethod(), getCallOptions(), request); } @@ -2763,8 +2770,9 @@ public com.google.longrunning.Operation deleteAccessLevel( * */ public com.google.longrunning.Operation replaceAccessLevels( - com.google.identity.accesscontextmanager.v1.ReplaceAccessLevelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.ReplaceAccessLevelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReplaceAccessLevelsMethod(), getCallOptions(), request); } @@ -2779,8 +2787,9 @@ public com.google.longrunning.Operation replaceAccessLevels( */ public com.google.identity.accesscontextmanager.v1.ListServicePerimetersResponse listServicePerimeters( - com.google.identity.accesscontextmanager.v1.ListServicePerimetersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.ListServicePerimetersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicePerimetersMethod(), getCallOptions(), request); } @@ -2794,8 +2803,9 @@ public com.google.longrunning.Operation replaceAccessLevels( * */ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter( - com.google.identity.accesscontextmanager.v1.GetServicePerimeterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.GetServicePerimeterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServicePerimeterMethod(), getCallOptions(), request); } @@ -2814,8 +2824,9 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe * */ public com.google.longrunning.Operation createServicePerimeter( - com.google.identity.accesscontextmanager.v1.CreateServicePerimeterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.CreateServicePerimeterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServicePerimeterMethod(), getCallOptions(), request); } @@ -2834,8 +2845,9 @@ public com.google.longrunning.Operation createServicePerimeter( * */ public com.google.longrunning.Operation updateServicePerimeter( - com.google.identity.accesscontextmanager.v1.UpdateServicePerimeterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.UpdateServicePerimeterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServicePerimeterMethod(), getCallOptions(), request); } @@ -2852,8 +2864,9 @@ public com.google.longrunning.Operation updateServicePerimeter( * */ public com.google.longrunning.Operation deleteServicePerimeter( - com.google.identity.accesscontextmanager.v1.DeleteServicePerimeterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.DeleteServicePerimeterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServicePerimeterMethod(), getCallOptions(), request); } @@ -2877,8 +2890,9 @@ public com.google.longrunning.Operation deleteServicePerimeter( * */ public com.google.longrunning.Operation replaceServicePerimeters( - com.google.identity.accesscontextmanager.v1.ReplaceServicePerimetersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.ReplaceServicePerimetersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReplaceServicePerimetersMethod(), getCallOptions(), request); } @@ -2904,8 +2918,9 @@ public com.google.longrunning.Operation replaceServicePerimeters( * */ public com.google.longrunning.Operation commitServicePerimeters( - com.google.identity.accesscontextmanager.v1.CommitServicePerimetersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.CommitServicePerimetersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCommitServicePerimetersMethod(), getCallOptions(), request); } @@ -2920,8 +2935,9 @@ public com.google.longrunning.Operation commitServicePerimeters( */ public com.google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsResponse listGcpUserAccessBindings( - com.google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGcpUserAccessBindingsMethod(), getCallOptions(), request); } @@ -2935,8 +2951,9 @@ public com.google.longrunning.Operation commitServicePerimeters( * */ public com.google.identity.accesscontextmanager.v1.GcpUserAccessBinding getGcpUserAccessBinding( - com.google.identity.accesscontextmanager.v1.GetGcpUserAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.GetGcpUserAccessBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGcpUserAccessBindingMethod(), getCallOptions(), request); } @@ -2957,8 +2974,9 @@ public com.google.identity.accesscontextmanager.v1.GcpUserAccessBinding getGcpUs * */ public com.google.longrunning.Operation createGcpUserAccessBinding( - com.google.identity.accesscontextmanager.v1.CreateGcpUserAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.CreateGcpUserAccessBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGcpUserAccessBindingMethod(), getCallOptions(), request); } @@ -2974,8 +2992,9 @@ public com.google.longrunning.Operation createGcpUserAccessBinding( * */ public com.google.longrunning.Operation updateGcpUserAccessBinding( - com.google.identity.accesscontextmanager.v1.UpdateGcpUserAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.UpdateGcpUserAccessBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGcpUserAccessBindingMethod(), getCallOptions(), request); } @@ -2991,8 +3010,9 @@ public com.google.longrunning.Operation updateGcpUserAccessBinding( * */ public com.google.longrunning.Operation deleteGcpUserAccessBinding( - com.google.identity.accesscontextmanager.v1.DeleteGcpUserAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.identity.accesscontextmanager.v1.DeleteGcpUserAccessBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGcpUserAccessBindingMethod(), getCallOptions(), request); } @@ -3008,8 +3028,9 @@ public com.google.longrunning.Operation deleteGcpUserAccessBinding( * policy][google.identity.accesscontextmanager.v1.AccessPolicy]. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -3021,8 +3042,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -3039,8 +3061,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-admanager/README.md b/java-admanager/README.md index 33844cf575cd..c65ca4bba4c3 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.api-ads ad-manager - 0.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.36.0' +implementation 'com.google.api-ads:ad-manager:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.36.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.37.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java new file mode 100644 index 000000000000..abc7866a5810 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java @@ -0,0 +1,940 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.AdReviewCenterAdServiceStub; +import com.google.ads.admanager.v1.stub.AdReviewCenterAdServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling AdReviewCenterAd objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ *     AdReviewCenterAdServiceClient.create()) {
+ *   WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]");
+ *   for (AdReviewCenterAd element :
+ *       adReviewCenterAdServiceClient.searchAdReviewCenterAds(parent).iterateAll()) {
+ *     // doThingsWith(element);
+ *   }
+ * }
+ * }
+ * + *

Note: close() needs to be called on the AdReviewCenterAdServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

SearchAdReviewCenterAds

API to search for AdReviewCenterAds.

+ *

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

+ *
    + *
  • searchAdReviewCenterAds(SearchAdReviewCenterAdsRequest request) + *

+ *

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

+ *
    + *
  • searchAdReviewCenterAds(WebPropertyName parent) + *

  • searchAdReviewCenterAds(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.

+ *
    + *
  • searchAdReviewCenterAdsPagedCallable() + *

  • searchAdReviewCenterAdsCallable() + *

+ *

BatchAllowAdReviewCenterAds

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

+ *

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

+ *
    + *
  • batchAllowAdReviewCenterAdsAsync(BatchAllowAdReviewCenterAdsRequest request) + *

+ *

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

+ *
    + *
  • batchAllowAdReviewCenterAdsAsync(WebPropertyName parent) + *

  • batchAllowAdReviewCenterAdsAsync(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.

+ *
    + *
  • batchAllowAdReviewCenterAdsOperationCallable() + *

  • batchAllowAdReviewCenterAdsCallable() + *

+ *

BatchBlockAdReviewCenterAds

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

+ *

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

+ *
    + *
  • batchBlockAdReviewCenterAdsAsync(BatchBlockAdReviewCenterAdsRequest request) + *

+ *

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

+ *
    + *
  • batchBlockAdReviewCenterAdsAsync(WebPropertyName parent) + *

  • batchBlockAdReviewCenterAdsAsync(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.

+ *
    + *
  • batchBlockAdReviewCenterAdsOperationCallable() + *

  • batchBlockAdReviewCenterAdsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * AdReviewCenterAdServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdReviewCenterAdServiceSettings adReviewCenterAdServiceSettings =
+ *     AdReviewCenterAdServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ *     AdReviewCenterAdServiceClient.create(adReviewCenterAdServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdReviewCenterAdServiceSettings adReviewCenterAdServiceSettings =
+ *     AdReviewCenterAdServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ *     AdReviewCenterAdServiceClient.create(adReviewCenterAdServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AdReviewCenterAdServiceClient implements BackgroundResource { + private final AdReviewCenterAdServiceSettings settings; + private final AdReviewCenterAdServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + + /** Constructs an instance of AdReviewCenterAdServiceClient with default settings. */ + public static final AdReviewCenterAdServiceClient create() throws IOException { + return create(AdReviewCenterAdServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AdReviewCenterAdServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AdReviewCenterAdServiceClient create(AdReviewCenterAdServiceSettings settings) + throws IOException { + return new AdReviewCenterAdServiceClient(settings); + } + + /** + * Constructs an instance of AdReviewCenterAdServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(AdReviewCenterAdServiceSettings). + */ + public static final AdReviewCenterAdServiceClient create(AdReviewCenterAdServiceStub stub) { + return new AdReviewCenterAdServiceClient(stub); + } + + /** + * Constructs an instance of AdReviewCenterAdServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected AdReviewCenterAdServiceClient(AdReviewCenterAdServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((AdReviewCenterAdServiceStubSettings) settings.getStubSettings()).createStub(); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AdReviewCenterAdServiceClient(AdReviewCenterAdServiceStub stub) { + this.settings = null; + this.stub = stub; + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final AdReviewCenterAdServiceSettings getSettings() { + return settings; + } + + public AdReviewCenterAdServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to search for AdReviewCenterAds. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]");
+   *   for (AdReviewCenterAd element :
+   *       adReviewCenterAdServiceClient.searchAdReviewCenterAds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format: + * networks/{network_code}/webProperties/{web_property_code} + *

Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *

`networks/{network_code}/webProperties/display` + *

`networks/{network_code}/webProperties/videoAndAudio` + *

`networks/{network_code}/webProperties/mobileApp` + *

`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( + WebPropertyName parent) { + SearchAdReviewCenterAdsRequest request = + SearchAdReviewCenterAdsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return searchAdReviewCenterAds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to search for AdReviewCenterAds. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   String parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString();
+   *   for (AdReviewCenterAd element :
+   *       adReviewCenterAdServiceClient.searchAdReviewCenterAds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format: + * networks/{network_code}/webProperties/{web_property_code} + *

Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *

`networks/{network_code}/webProperties/display` + *

`networks/{network_code}/webProperties/videoAndAudio` + *

`networks/{network_code}/webProperties/mobileApp` + *

`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds(String parent) { + SearchAdReviewCenterAdsRequest request = + SearchAdReviewCenterAdsRequest.newBuilder().setParent(parent).build(); + return searchAdReviewCenterAds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to search for AdReviewCenterAds. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   SearchAdReviewCenterAdsRequest request =
+   *       SearchAdReviewCenterAdsRequest.newBuilder()
+   *           .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .addAllAdReviewCenterAdId(new ArrayList())
+   *           .setDateTimeRange(Interval.newBuilder().build())
+   *           .addAllSearchText(new ArrayList())
+   *           .addAllBuyerAccountId(new ArrayList())
+   *           .build();
+   *   for (AdReviewCenterAd element :
+   *       adReviewCenterAdServiceClient.searchAdReviewCenterAds(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 SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( + SearchAdReviewCenterAdsRequest request) { + return searchAdReviewCenterAdsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to search for AdReviewCenterAds. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   SearchAdReviewCenterAdsRequest request =
+   *       SearchAdReviewCenterAdsRequest.newBuilder()
+   *           .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .addAllAdReviewCenterAdId(new ArrayList())
+   *           .setDateTimeRange(Interval.newBuilder().build())
+   *           .addAllSearchText(new ArrayList())
+   *           .addAllBuyerAccountId(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       adReviewCenterAdServiceClient.searchAdReviewCenterAdsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AdReviewCenterAd element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchAdReviewCenterAdsPagedCallable() { + return stub.searchAdReviewCenterAdsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to search for AdReviewCenterAds. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   SearchAdReviewCenterAdsRequest request =
+   *       SearchAdReviewCenterAdsRequest.newBuilder()
+   *           .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .addAllAdReviewCenterAdId(new ArrayList())
+   *           .setDateTimeRange(Interval.newBuilder().build())
+   *           .addAllSearchText(new ArrayList())
+   *           .addAllBuyerAccountId(new ArrayList())
+   *           .build();
+   *   while (true) {
+   *     SearchAdReviewCenterAdsResponse response =
+   *         adReviewCenterAdServiceClient.searchAdReviewCenterAdsCallable().call(request);
+   *     for (AdReviewCenterAd element : response.getAdReviewCenterAdsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchAdReviewCenterAdsCallable() { + return stub.searchAdReviewCenterAdsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]");
+   *   BatchAllowAdReviewCenterAdsResponse response =
+   *       adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format: + * networks/{network_code}/webProperties/{web_property_code} + *

Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *

`networks/{network_code}/webProperties/display` + *

`networks/{network_code}/webProperties/videoAndAudio` + *

`networks/{network_code}/webProperties/mobileApp` + *

`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsAsync(WebPropertyName parent) { + BatchAllowAdReviewCenterAdsRequest request = + BatchAllowAdReviewCenterAdsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return batchAllowAdReviewCenterAdsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   String parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString();
+   *   BatchAllowAdReviewCenterAdsResponse response =
+   *       adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format: + * networks/{network_code}/webProperties/{web_property_code} + *

Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *

`networks/{network_code}/webProperties/display` + *

`networks/{network_code}/webProperties/videoAndAudio` + *

`networks/{network_code}/webProperties/mobileApp` + *

`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsAsync(String parent) { + BatchAllowAdReviewCenterAdsRequest request = + BatchAllowAdReviewCenterAdsRequest.newBuilder().setParent(parent).build(); + return batchAllowAdReviewCenterAdsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   BatchAllowAdReviewCenterAdsRequest request =
+   *       BatchAllowAdReviewCenterAdsRequest.newBuilder()
+   *           .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchAllowAdReviewCenterAdsResponse response =
+   *       adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsAsync(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< + BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsAsync(BatchAllowAdReviewCenterAdsRequest request) { + return batchAllowAdReviewCenterAdsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   BatchAllowAdReviewCenterAdsRequest request =
+   *       BatchAllowAdReviewCenterAdsRequest.newBuilder()
+   *           .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           adReviewCenterAdServiceClient
+   *               .batchAllowAdReviewCenterAdsOperationCallable()
+   *               .futureCall(request);
+   *   // Do something.
+   *   BatchAllowAdReviewCenterAdsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationCallable() { + return stub.batchAllowAdReviewCenterAdsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   BatchAllowAdReviewCenterAdsRequest request =
+   *       BatchAllowAdReviewCenterAdsRequest.newBuilder()
+   *           .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchAllowAdReviewCenterAdsCallable() { + return stub.batchAllowAdReviewCenterAdsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]");
+   *   BatchBlockAdReviewCenterAdsResponse response =
+   *       adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format: + * networks/{network_code}/webProperties/{web_property_code} + *

Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *

`networks/{network_code}/webProperties/display` + *

`networks/{network_code}/webProperties/videoAndAudio` + *

`networks/{network_code}/webProperties/mobileApp` + *

`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsAsync(WebPropertyName parent) { + BatchBlockAdReviewCenterAdsRequest request = + BatchBlockAdReviewCenterAdsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return batchBlockAdReviewCenterAdsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   String parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString();
+   *   BatchBlockAdReviewCenterAdsResponse response =
+   *       adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format: + * networks/{network_code}/webProperties/{web_property_code} + *

Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *

`networks/{network_code}/webProperties/display` + *

`networks/{network_code}/webProperties/videoAndAudio` + *

`networks/{network_code}/webProperties/mobileApp` + *

`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsAsync(String parent) { + BatchBlockAdReviewCenterAdsRequest request = + BatchBlockAdReviewCenterAdsRequest.newBuilder().setParent(parent).build(); + return batchBlockAdReviewCenterAdsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   BatchBlockAdReviewCenterAdsRequest request =
+   *       BatchBlockAdReviewCenterAdsRequest.newBuilder()
+   *           .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchBlockAdReviewCenterAdsResponse response =
+   *       adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsAsync(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< + BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsAsync(BatchBlockAdReviewCenterAdsRequest request) { + return batchBlockAdReviewCenterAdsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   BatchBlockAdReviewCenterAdsRequest request =
+   *       BatchBlockAdReviewCenterAdsRequest.newBuilder()
+   *           .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           adReviewCenterAdServiceClient
+   *               .batchBlockAdReviewCenterAdsOperationCallable()
+   *               .futureCall(request);
+   *   // Do something.
+   *   BatchBlockAdReviewCenterAdsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationCallable() { + return stub.batchBlockAdReviewCenterAdsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *

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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+   *     AdReviewCenterAdServiceClient.create()) {
+   *   BatchBlockAdReviewCenterAdsRequest request =
+   *       BatchBlockAdReviewCenterAdsRequest.newBuilder()
+   *           .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchBlockAdReviewCenterAdsCallable() { + return stub.batchBlockAdReviewCenterAdsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class SearchAdReviewCenterAdsPagedResponse + extends AbstractPagedListResponse< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + AdReviewCenterAd, + SearchAdReviewCenterAdsPage, + SearchAdReviewCenterAdsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse, AdReviewCenterAd> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchAdReviewCenterAdsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchAdReviewCenterAdsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchAdReviewCenterAdsPagedResponse(SearchAdReviewCenterAdsPage page) { + super(page, SearchAdReviewCenterAdsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchAdReviewCenterAdsPage + extends AbstractPage< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + AdReviewCenterAd, + SearchAdReviewCenterAdsPage> { + + private SearchAdReviewCenterAdsPage( + PageContext< + SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse, AdReviewCenterAd> + context, + SearchAdReviewCenterAdsResponse response) { + super(context, response); + } + + private static SearchAdReviewCenterAdsPage createEmptyPage() { + return new SearchAdReviewCenterAdsPage(null, null); + } + + @Override + protected SearchAdReviewCenterAdsPage createPage( + PageContext< + SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse, AdReviewCenterAd> + context, + SearchAdReviewCenterAdsResponse response) { + return new SearchAdReviewCenterAdsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse, AdReviewCenterAd> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchAdReviewCenterAdsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + AdReviewCenterAd, + SearchAdReviewCenterAdsPage, + SearchAdReviewCenterAdsFixedSizeCollection> { + + private SearchAdReviewCenterAdsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchAdReviewCenterAdsFixedSizeCollection createEmptyCollection() { + return new SearchAdReviewCenterAdsFixedSizeCollection(null, 0); + } + + @Override + protected SearchAdReviewCenterAdsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchAdReviewCenterAdsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceSettings.java new file mode 100644 index 000000000000..f6c610f1869c --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceSettings.java @@ -0,0 +1,305 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.AdReviewCenterAdServiceClient.SearchAdReviewCenterAdsPagedResponse; + +import com.google.ads.admanager.v1.stub.AdReviewCenterAdServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AdReviewCenterAdServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of searchAdReviewCenterAds: + * + *

{@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
+ * AdReviewCenterAdServiceSettings.Builder adReviewCenterAdServiceSettingsBuilder =
+ *     AdReviewCenterAdServiceSettings.newBuilder();
+ * adReviewCenterAdServiceSettingsBuilder
+ *     .searchAdReviewCenterAdsSettings()
+ *     .setRetrySettings(
+ *         adReviewCenterAdServiceSettingsBuilder
+ *             .searchAdReviewCenterAdsSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AdReviewCenterAdServiceSettings adReviewCenterAdServiceSettings =
+ *     adReviewCenterAdServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for batchAllowAdReviewCenterAds: + * + *

{@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
+ * AdReviewCenterAdServiceSettings.Builder adReviewCenterAdServiceSettingsBuilder =
+ *     AdReviewCenterAdServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * adReviewCenterAdServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class AdReviewCenterAdServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to searchAdReviewCenterAds. */ + public PagedCallSettings< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + SearchAdReviewCenterAdsPagedResponse> + searchAdReviewCenterAdsSettings() { + return ((AdReviewCenterAdServiceStubSettings) getStubSettings()) + .searchAdReviewCenterAdsSettings(); + } + + /** Returns the object with the settings used for calls to batchAllowAdReviewCenterAds. */ + public UnaryCallSettings + batchAllowAdReviewCenterAdsSettings() { + return ((AdReviewCenterAdServiceStubSettings) getStubSettings()) + .batchAllowAdReviewCenterAdsSettings(); + } + + /** Returns the object with the settings used for calls to batchAllowAdReviewCenterAds. */ + public OperationCallSettings< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationSettings() { + return ((AdReviewCenterAdServiceStubSettings) getStubSettings()) + .batchAllowAdReviewCenterAdsOperationSettings(); + } + + /** Returns the object with the settings used for calls to batchBlockAdReviewCenterAds. */ + public UnaryCallSettings + batchBlockAdReviewCenterAdsSettings() { + return ((AdReviewCenterAdServiceStubSettings) getStubSettings()) + .batchBlockAdReviewCenterAdsSettings(); + } + + /** Returns the object with the settings used for calls to batchBlockAdReviewCenterAds. */ + public OperationCallSettings< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationSettings() { + return ((AdReviewCenterAdServiceStubSettings) getStubSettings()) + .batchBlockAdReviewCenterAdsOperationSettings(); + } + + public static final AdReviewCenterAdServiceSettings create( + AdReviewCenterAdServiceStubSettings stub) throws IOException { + return new AdReviewCenterAdServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AdReviewCenterAdServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AdReviewCenterAdServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AdReviewCenterAdServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AdReviewCenterAdServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AdReviewCenterAdServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AdReviewCenterAdServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AdReviewCenterAdServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AdReviewCenterAdServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AdReviewCenterAdServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AdReviewCenterAdServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AdReviewCenterAdServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AdReviewCenterAdServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AdReviewCenterAdServiceStubSettings.newBuilder()); + } + + public AdReviewCenterAdServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AdReviewCenterAdServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to searchAdReviewCenterAds. */ + public PagedCallSettings.Builder< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + SearchAdReviewCenterAdsPagedResponse> + searchAdReviewCenterAdsSettings() { + return getStubSettingsBuilder().searchAdReviewCenterAdsSettings(); + } + + /** Returns the builder for the settings used for calls to batchAllowAdReviewCenterAds. */ + public UnaryCallSettings.Builder + batchAllowAdReviewCenterAdsSettings() { + return getStubSettingsBuilder().batchAllowAdReviewCenterAdsSettings(); + } + + /** Returns the builder for the settings used for calls to batchAllowAdReviewCenterAds. */ + public OperationCallSettings.Builder< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationSettings() { + return getStubSettingsBuilder().batchAllowAdReviewCenterAdsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to batchBlockAdReviewCenterAds. */ + public UnaryCallSettings.Builder + batchBlockAdReviewCenterAdsSettings() { + return getStubSettingsBuilder().batchBlockAdReviewCenterAdsSettings(); + } + + /** Returns the builder for the settings used for calls to batchBlockAdReviewCenterAds. */ + public OperationCallSettings.Builder< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationSettings() { + return getStubSettingsBuilder().batchBlockAdReviewCenterAdsOperationSettings(); + } + + @Override + public AdReviewCenterAdServiceSettings build() throws IOException { + return new AdReviewCenterAdServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java new file mode 100644 index 000000000000..0a12fe246a3f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java @@ -0,0 +1,590 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.ApplicationServiceStub; +import com.google.ads.admanager.v1.stub.ApplicationServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `Application` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ *   ApplicationName name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]");
+ *   Application response = applicationServiceClient.getApplication(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the ApplicationServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetApplication

API to retrieve a `Application` object.

+ *

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

+ *
    + *
  • getApplication(GetApplicationRequest request) + *

+ *

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

+ *
    + *
  • getApplication(ApplicationName name) + *

  • getApplication(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.

+ *
    + *
  • getApplicationCallable() + *

+ *

ListApplications

API to retrieve a list of `Application` objects.

+ *

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

+ *
    + *
  • listApplications(ListApplicationsRequest request) + *

+ *

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

+ *
    + *
  • listApplications(NetworkName parent) + *

  • listApplications(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.

+ *
    + *
  • listApplicationsPagedCallable() + *

  • listApplicationsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ApplicationServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ApplicationServiceSettings applicationServiceSettings =
+ *     ApplicationServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ApplicationServiceClient applicationServiceClient =
+ *     ApplicationServiceClient.create(applicationServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ApplicationServiceSettings applicationServiceSettings =
+ *     ApplicationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ApplicationServiceClient applicationServiceClient =
+ *     ApplicationServiceClient.create(applicationServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ApplicationServiceClient implements BackgroundResource { + private final ApplicationServiceSettings settings; + private final ApplicationServiceStub stub; + + /** Constructs an instance of ApplicationServiceClient with default settings. */ + public static final ApplicationServiceClient create() throws IOException { + return create(ApplicationServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ApplicationServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ApplicationServiceClient create(ApplicationServiceSettings settings) + throws IOException { + return new ApplicationServiceClient(settings); + } + + /** + * Constructs an instance of ApplicationServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(ApplicationServiceSettings). + */ + public static final ApplicationServiceClient create(ApplicationServiceStub stub) { + return new ApplicationServiceClient(stub); + } + + /** + * Constructs an instance of ApplicationServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ApplicationServiceClient(ApplicationServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ApplicationServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ApplicationServiceClient(ApplicationServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ApplicationServiceSettings getSettings() { + return settings; + } + + public ApplicationServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Application` object. + * + *

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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ApplicationName name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]");
+   *   Application response = applicationServiceClient.getApplication(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Application. Format: + * `networks/{network_code}/applications/{application_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Application getApplication(ApplicationName name) { + GetApplicationRequest request = + GetApplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getApplication(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Application` object. + * + *

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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   String name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString();
+   *   Application response = applicationServiceClient.getApplication(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Application. Format: + * `networks/{network_code}/applications/{application_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Application getApplication(String name) { + GetApplicationRequest request = GetApplicationRequest.newBuilder().setName(name).build(); + return getApplication(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Application` object. + * + *

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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   GetApplicationRequest request =
+   *       GetApplicationRequest.newBuilder()
+   *           .setName(ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString())
+   *           .build();
+   *   Application response = applicationServiceClient.getApplication(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 Application getApplication(GetApplicationRequest request) { + return getApplicationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Application` object. + * + *

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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   GetApplicationRequest request =
+   *       GetApplicationRequest.newBuilder()
+   *           .setName(ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       applicationServiceClient.getApplicationCallable().futureCall(request);
+   *   // Do something.
+   *   Application response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getApplicationCallable() { + return stub.getApplicationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Application` objects. + * + *

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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (Application element : applicationServiceClient.listApplications(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of Applications. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationsPagedResponse listApplications(NetworkName parent) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listApplications(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Application` objects. + * + *

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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (Application element : applicationServiceClient.listApplications(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of Applications. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationsPagedResponse listApplications(String parent) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder().setParent(parent).build(); + return listApplications(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Application` objects. + * + *

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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ListApplicationsRequest request =
+   *       ListApplicationsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (Application element : applicationServiceClient.listApplications(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 ListApplicationsPagedResponse listApplications(ListApplicationsRequest request) { + return listApplicationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Application` objects. + * + *

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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ListApplicationsRequest request =
+   *       ListApplicationsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       applicationServiceClient.listApplicationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Application element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listApplicationsPagedCallable() { + return stub.listApplicationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Application` objects. + * + *

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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ListApplicationsRequest request =
+   *       ListApplicationsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListApplicationsResponse response =
+   *         applicationServiceClient.listApplicationsCallable().call(request);
+   *     for (Application element : response.getApplicationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listApplicationsCallable() { + return stub.listApplicationsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListApplicationsPagedResponse + extends AbstractPagedListResponse< + ListApplicationsRequest, + ListApplicationsResponse, + Application, + ListApplicationsPage, + ListApplicationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListApplicationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListApplicationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListApplicationsPagedResponse(ListApplicationsPage page) { + super(page, ListApplicationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListApplicationsPage + extends AbstractPage< + ListApplicationsRequest, ListApplicationsResponse, Application, ListApplicationsPage> { + + private ListApplicationsPage( + PageContext context, + ListApplicationsResponse response) { + super(context, response); + } + + private static ListApplicationsPage createEmptyPage() { + return new ListApplicationsPage(null, null); + } + + @Override + protected ListApplicationsPage createPage( + PageContext context, + ListApplicationsResponse response) { + return new ListApplicationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListApplicationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListApplicationsRequest, + ListApplicationsResponse, + Application, + ListApplicationsPage, + ListApplicationsFixedSizeCollection> { + + private ListApplicationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListApplicationsFixedSizeCollection createEmptyCollection() { + return new ListApplicationsFixedSizeCollection(null, 0); + } + + @Override + protected ListApplicationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListApplicationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java new file mode 100644 index 000000000000..c87cdb160cb0 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java @@ -0,0 +1,216 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ApplicationServiceClient.ListApplicationsPagedResponse; + +import com.google.ads.admanager.v1.stub.ApplicationServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ApplicationServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getApplication: + * + *

{@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
+ * ApplicationServiceSettings.Builder applicationServiceSettingsBuilder =
+ *     ApplicationServiceSettings.newBuilder();
+ * applicationServiceSettingsBuilder
+ *     .getApplicationSettings()
+ *     .setRetrySettings(
+ *         applicationServiceSettingsBuilder
+ *             .getApplicationSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * ApplicationServiceSettings applicationServiceSettings =
+ *     applicationServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ApplicationServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getApplication. */ + public UnaryCallSettings getApplicationSettings() { + return ((ApplicationServiceStubSettings) getStubSettings()).getApplicationSettings(); + } + + /** Returns the object with the settings used for calls to listApplications. */ + public PagedCallSettings< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings() { + return ((ApplicationServiceStubSettings) getStubSettings()).listApplicationsSettings(); + } + + public static final ApplicationServiceSettings create(ApplicationServiceStubSettings stub) + throws IOException { + return new ApplicationServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ApplicationServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ApplicationServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ApplicationServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ApplicationServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ApplicationServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ApplicationServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApplicationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ApplicationServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ApplicationServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ApplicationServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ApplicationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ApplicationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ApplicationServiceStubSettings.newBuilder()); + } + + public ApplicationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ApplicationServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getApplication. */ + public UnaryCallSettings.Builder getApplicationSettings() { + return getStubSettingsBuilder().getApplicationSettings(); + } + + /** Returns the builder for the settings used for calls to listApplications. */ + public PagedCallSettings.Builder< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings() { + return getStubSettingsBuilder().listApplicationsSettings(); + } + + @Override + public ApplicationServiceSettings build() throws IOException { + return new ApplicationServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java new file mode 100644 index 000000000000..d0cca305cc76 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java @@ -0,0 +1,616 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.AudienceSegmentServiceStub; +import com.google.ads.admanager.v1.stub.AudienceSegmentServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `AudienceSegment` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ *     AudienceSegmentServiceClient.create()) {
+ *   AudienceSegmentName name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]");
+ *   AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the AudienceSegmentServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetAudienceSegment

API to retrieve an `AudienceSegment` object.

+ *

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

+ *
    + *
  • getAudienceSegment(GetAudienceSegmentRequest request) + *

+ *

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

+ *
    + *
  • getAudienceSegment(AudienceSegmentName name) + *

  • getAudienceSegment(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.

+ *
    + *
  • getAudienceSegmentCallable() + *

+ *

ListAudienceSegments

API to retrieve a list of `AudienceSegment` objects.

+ *

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

+ *
    + *
  • listAudienceSegments(ListAudienceSegmentsRequest request) + *

+ *

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

+ *
    + *
  • listAudienceSegments(NetworkName parent) + *

  • listAudienceSegments(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.

+ *
    + *
  • listAudienceSegmentsPagedCallable() + *

  • listAudienceSegmentsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of AudienceSegmentServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AudienceSegmentServiceSettings audienceSegmentServiceSettings =
+ *     AudienceSegmentServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AudienceSegmentServiceClient audienceSegmentServiceClient =
+ *     AudienceSegmentServiceClient.create(audienceSegmentServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AudienceSegmentServiceSettings audienceSegmentServiceSettings =
+ *     AudienceSegmentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AudienceSegmentServiceClient audienceSegmentServiceClient =
+ *     AudienceSegmentServiceClient.create(audienceSegmentServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AudienceSegmentServiceClient implements BackgroundResource { + private final AudienceSegmentServiceSettings settings; + private final AudienceSegmentServiceStub stub; + + /** Constructs an instance of AudienceSegmentServiceClient with default settings. */ + public static final AudienceSegmentServiceClient create() throws IOException { + return create(AudienceSegmentServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AudienceSegmentServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AudienceSegmentServiceClient create(AudienceSegmentServiceSettings settings) + throws IOException { + return new AudienceSegmentServiceClient(settings); + } + + /** + * Constructs an instance of AudienceSegmentServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(AudienceSegmentServiceSettings). + */ + public static final AudienceSegmentServiceClient create(AudienceSegmentServiceStub stub) { + return new AudienceSegmentServiceClient(stub); + } + + /** + * Constructs an instance of AudienceSegmentServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected AudienceSegmentServiceClient(AudienceSegmentServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((AudienceSegmentServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AudienceSegmentServiceClient(AudienceSegmentServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AudienceSegmentServiceSettings getSettings() { + return settings; + } + + public AudienceSegmentServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AudienceSegment` object. + * + *

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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+   *     AudienceSegmentServiceClient.create()) {
+   *   AudienceSegmentName name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]");
+   *   AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the AudienceSegment. Format: + * `networks/{network_code}/audienceSegments/{audience_segment_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AudienceSegment getAudienceSegment(AudienceSegmentName name) { + GetAudienceSegmentRequest request = + GetAudienceSegmentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAudienceSegment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AudienceSegment` object. + * + *

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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+   *     AudienceSegmentServiceClient.create()) {
+   *   String name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString();
+   *   AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the AudienceSegment. Format: + * `networks/{network_code}/audienceSegments/{audience_segment_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AudienceSegment getAudienceSegment(String name) { + GetAudienceSegmentRequest request = + GetAudienceSegmentRequest.newBuilder().setName(name).build(); + return getAudienceSegment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AudienceSegment` object. + * + *

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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+   *     AudienceSegmentServiceClient.create()) {
+   *   GetAudienceSegmentRequest request =
+   *       GetAudienceSegmentRequest.newBuilder()
+   *           .setName(AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString())
+   *           .build();
+   *   AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(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 AudienceSegment getAudienceSegment(GetAudienceSegmentRequest request) { + return getAudienceSegmentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AudienceSegment` object. + * + *

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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+   *     AudienceSegmentServiceClient.create()) {
+   *   GetAudienceSegmentRequest request =
+   *       GetAudienceSegmentRequest.newBuilder()
+   *           .setName(AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       audienceSegmentServiceClient.getAudienceSegmentCallable().futureCall(request);
+   *   // Do something.
+   *   AudienceSegment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getAudienceSegmentCallable() { + return stub.getAudienceSegmentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AudienceSegment` objects. + * + *

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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+   *     AudienceSegmentServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (AudienceSegment element :
+   *       audienceSegmentServiceClient.listAudienceSegments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent publisher network associated with these audience segments. + * Format: `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAudienceSegmentsPagedResponse listAudienceSegments(NetworkName parent) { + ListAudienceSegmentsRequest request = + ListAudienceSegmentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAudienceSegments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AudienceSegment` objects. + * + *

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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+   *     AudienceSegmentServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (AudienceSegment element :
+   *       audienceSegmentServiceClient.listAudienceSegments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent publisher network associated with these audience segments. + * Format: `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAudienceSegmentsPagedResponse listAudienceSegments(String parent) { + ListAudienceSegmentsRequest request = + ListAudienceSegmentsRequest.newBuilder().setParent(parent).build(); + return listAudienceSegments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AudienceSegment` objects. + * + *

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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+   *     AudienceSegmentServiceClient.create()) {
+   *   ListAudienceSegmentsRequest request =
+   *       ListAudienceSegmentsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (AudienceSegment element :
+   *       audienceSegmentServiceClient.listAudienceSegments(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 ListAudienceSegmentsPagedResponse listAudienceSegments( + ListAudienceSegmentsRequest request) { + return listAudienceSegmentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AudienceSegment` objects. + * + *

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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+   *     AudienceSegmentServiceClient.create()) {
+   *   ListAudienceSegmentsRequest request =
+   *       ListAudienceSegmentsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       audienceSegmentServiceClient.listAudienceSegmentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AudienceSegment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAudienceSegmentsPagedCallable() { + return stub.listAudienceSegmentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AudienceSegment` objects. + * + *

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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+   *     AudienceSegmentServiceClient.create()) {
+   *   ListAudienceSegmentsRequest request =
+   *       ListAudienceSegmentsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListAudienceSegmentsResponse response =
+   *         audienceSegmentServiceClient.listAudienceSegmentsCallable().call(request);
+   *     for (AudienceSegment element : response.getAudienceSegmentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAudienceSegmentsCallable() { + return stub.listAudienceSegmentsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListAudienceSegmentsPagedResponse + extends AbstractPagedListResponse< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + AudienceSegment, + ListAudienceSegmentsPage, + ListAudienceSegmentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAudienceSegmentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAudienceSegmentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAudienceSegmentsPagedResponse(ListAudienceSegmentsPage page) { + super(page, ListAudienceSegmentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAudienceSegmentsPage + extends AbstractPage< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + AudienceSegment, + ListAudienceSegmentsPage> { + + private ListAudienceSegmentsPage( + PageContext + context, + ListAudienceSegmentsResponse response) { + super(context, response); + } + + private static ListAudienceSegmentsPage createEmptyPage() { + return new ListAudienceSegmentsPage(null, null); + } + + @Override + protected ListAudienceSegmentsPage createPage( + PageContext + context, + ListAudienceSegmentsResponse response) { + return new ListAudienceSegmentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAudienceSegmentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + AudienceSegment, + ListAudienceSegmentsPage, + ListAudienceSegmentsFixedSizeCollection> { + + private ListAudienceSegmentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAudienceSegmentsFixedSizeCollection createEmptyCollection() { + return new ListAudienceSegmentsFixedSizeCollection(null, 0); + } + + @Override + protected ListAudienceSegmentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAudienceSegmentsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceSettings.java new file mode 100644 index 000000000000..e9062c614725 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceSettings.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.AudienceSegmentServiceClient.ListAudienceSegmentsPagedResponse; + +import com.google.ads.admanager.v1.stub.AudienceSegmentServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AudienceSegmentServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAudienceSegment: + * + *

{@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
+ * AudienceSegmentServiceSettings.Builder audienceSegmentServiceSettingsBuilder =
+ *     AudienceSegmentServiceSettings.newBuilder();
+ * audienceSegmentServiceSettingsBuilder
+ *     .getAudienceSegmentSettings()
+ *     .setRetrySettings(
+ *         audienceSegmentServiceSettingsBuilder
+ *             .getAudienceSegmentSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AudienceSegmentServiceSettings audienceSegmentServiceSettings =
+ *     audienceSegmentServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class AudienceSegmentServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getAudienceSegment. */ + public UnaryCallSettings + getAudienceSegmentSettings() { + return ((AudienceSegmentServiceStubSettings) getStubSettings()).getAudienceSegmentSettings(); + } + + /** Returns the object with the settings used for calls to listAudienceSegments. */ + public PagedCallSettings< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + ListAudienceSegmentsPagedResponse> + listAudienceSegmentsSettings() { + return ((AudienceSegmentServiceStubSettings) getStubSettings()).listAudienceSegmentsSettings(); + } + + public static final AudienceSegmentServiceSettings create(AudienceSegmentServiceStubSettings stub) + throws IOException { + return new AudienceSegmentServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AudienceSegmentServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AudienceSegmentServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AudienceSegmentServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AudienceSegmentServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AudienceSegmentServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AudienceSegmentServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AudienceSegmentServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AudienceSegmentServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AudienceSegmentServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AudienceSegmentServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AudienceSegmentServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AudienceSegmentServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AudienceSegmentServiceStubSettings.newBuilder()); + } + + public AudienceSegmentServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AudienceSegmentServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getAudienceSegment. */ + public UnaryCallSettings.Builder + getAudienceSegmentSettings() { + return getStubSettingsBuilder().getAudienceSegmentSettings(); + } + + /** Returns the builder for the settings used for calls to listAudienceSegments. */ + public PagedCallSettings.Builder< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + ListAudienceSegmentsPagedResponse> + listAudienceSegmentsSettings() { + return getStubSettingsBuilder().listAudienceSegmentsSettings(); + } + + @Override + public AudienceSegmentServiceSettings build() throws IOException { + return new AudienceSegmentServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java new file mode 100644 index 000000000000..66e1ef439300 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java @@ -0,0 +1,616 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.BrowserLanguageServiceStub; +import com.google.ads.admanager.v1.stub.BrowserLanguageServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `BrowserLanguage` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+ *     BrowserLanguageServiceClient.create()) {
+ *   BrowserLanguageName name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]");
+ *   BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the BrowserLanguageServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetBrowserLanguage

API to retrieve a `BrowserLanguage` object.

+ *

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

+ *
    + *
  • getBrowserLanguage(GetBrowserLanguageRequest request) + *

+ *

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

+ *
    + *
  • getBrowserLanguage(BrowserLanguageName name) + *

  • getBrowserLanguage(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.

+ *
    + *
  • getBrowserLanguageCallable() + *

+ *

ListBrowserLanguages

API to retrieve a list of `BrowserLanguage` objects.

+ *

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

+ *
    + *
  • listBrowserLanguages(ListBrowserLanguagesRequest request) + *

+ *

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

+ *
    + *
  • listBrowserLanguages(NetworkName parent) + *

  • listBrowserLanguages(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.

+ *
    + *
  • listBrowserLanguagesPagedCallable() + *

  • listBrowserLanguagesCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of BrowserLanguageServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BrowserLanguageServiceSettings browserLanguageServiceSettings =
+ *     BrowserLanguageServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * BrowserLanguageServiceClient browserLanguageServiceClient =
+ *     BrowserLanguageServiceClient.create(browserLanguageServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BrowserLanguageServiceSettings browserLanguageServiceSettings =
+ *     BrowserLanguageServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BrowserLanguageServiceClient browserLanguageServiceClient =
+ *     BrowserLanguageServiceClient.create(browserLanguageServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class BrowserLanguageServiceClient implements BackgroundResource { + private final BrowserLanguageServiceSettings settings; + private final BrowserLanguageServiceStub stub; + + /** Constructs an instance of BrowserLanguageServiceClient with default settings. */ + public static final BrowserLanguageServiceClient create() throws IOException { + return create(BrowserLanguageServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of BrowserLanguageServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final BrowserLanguageServiceClient create(BrowserLanguageServiceSettings settings) + throws IOException { + return new BrowserLanguageServiceClient(settings); + } + + /** + * Constructs an instance of BrowserLanguageServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(BrowserLanguageServiceSettings). + */ + public static final BrowserLanguageServiceClient create(BrowserLanguageServiceStub stub) { + return new BrowserLanguageServiceClient(stub); + } + + /** + * Constructs an instance of BrowserLanguageServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected BrowserLanguageServiceClient(BrowserLanguageServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((BrowserLanguageServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected BrowserLanguageServiceClient(BrowserLanguageServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final BrowserLanguageServiceSettings getSettings() { + return settings; + } + + public BrowserLanguageServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `BrowserLanguage` object. + * + *

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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+   *     BrowserLanguageServiceClient.create()) {
+   *   BrowserLanguageName name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]");
+   *   BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the BrowserLanguage. Format: + * `networks/{network_code}/browserLanguages/{browser_language_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BrowserLanguage getBrowserLanguage(BrowserLanguageName name) { + GetBrowserLanguageRequest request = + GetBrowserLanguageRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getBrowserLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `BrowserLanguage` object. + * + *

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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+   *     BrowserLanguageServiceClient.create()) {
+   *   String name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString();
+   *   BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the BrowserLanguage. Format: + * `networks/{network_code}/browserLanguages/{browser_language_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BrowserLanguage getBrowserLanguage(String name) { + GetBrowserLanguageRequest request = + GetBrowserLanguageRequest.newBuilder().setName(name).build(); + return getBrowserLanguage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `BrowserLanguage` object. + * + *

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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+   *     BrowserLanguageServiceClient.create()) {
+   *   GetBrowserLanguageRequest request =
+   *       GetBrowserLanguageRequest.newBuilder()
+   *           .setName(BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString())
+   *           .build();
+   *   BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(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 BrowserLanguage getBrowserLanguage(GetBrowserLanguageRequest request) { + return getBrowserLanguageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `BrowserLanguage` object. + * + *

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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+   *     BrowserLanguageServiceClient.create()) {
+   *   GetBrowserLanguageRequest request =
+   *       GetBrowserLanguageRequest.newBuilder()
+   *           .setName(BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       browserLanguageServiceClient.getBrowserLanguageCallable().futureCall(request);
+   *   // Do something.
+   *   BrowserLanguage response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getBrowserLanguageCallable() { + return stub.getBrowserLanguageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BrowserLanguage` objects. + * + *

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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+   *     BrowserLanguageServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (BrowserLanguage element :
+   *       browserLanguageServiceClient.listBrowserLanguages(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of BrowserLanguages. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBrowserLanguagesPagedResponse listBrowserLanguages(NetworkName parent) { + ListBrowserLanguagesRequest request = + ListBrowserLanguagesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBrowserLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BrowserLanguage` objects. + * + *

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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+   *     BrowserLanguageServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (BrowserLanguage element :
+   *       browserLanguageServiceClient.listBrowserLanguages(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of BrowserLanguages. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBrowserLanguagesPagedResponse listBrowserLanguages(String parent) { + ListBrowserLanguagesRequest request = + ListBrowserLanguagesRequest.newBuilder().setParent(parent).build(); + return listBrowserLanguages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BrowserLanguage` objects. + * + *

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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+   *     BrowserLanguageServiceClient.create()) {
+   *   ListBrowserLanguagesRequest request =
+   *       ListBrowserLanguagesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (BrowserLanguage element :
+   *       browserLanguageServiceClient.listBrowserLanguages(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 ListBrowserLanguagesPagedResponse listBrowserLanguages( + ListBrowserLanguagesRequest request) { + return listBrowserLanguagesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BrowserLanguage` objects. + * + *

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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+   *     BrowserLanguageServiceClient.create()) {
+   *   ListBrowserLanguagesRequest request =
+   *       ListBrowserLanguagesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       browserLanguageServiceClient.listBrowserLanguagesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (BrowserLanguage element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBrowserLanguagesPagedCallable() { + return stub.listBrowserLanguagesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BrowserLanguage` objects. + * + *

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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+   *     BrowserLanguageServiceClient.create()) {
+   *   ListBrowserLanguagesRequest request =
+   *       ListBrowserLanguagesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListBrowserLanguagesResponse response =
+   *         browserLanguageServiceClient.listBrowserLanguagesCallable().call(request);
+   *     for (BrowserLanguage element : response.getBrowserLanguagesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBrowserLanguagesCallable() { + return stub.listBrowserLanguagesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListBrowserLanguagesPagedResponse + extends AbstractPagedListResponse< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + BrowserLanguage, + ListBrowserLanguagesPage, + ListBrowserLanguagesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBrowserLanguagesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBrowserLanguagesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBrowserLanguagesPagedResponse(ListBrowserLanguagesPage page) { + super(page, ListBrowserLanguagesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBrowserLanguagesPage + extends AbstractPage< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + BrowserLanguage, + ListBrowserLanguagesPage> { + + private ListBrowserLanguagesPage( + PageContext + context, + ListBrowserLanguagesResponse response) { + super(context, response); + } + + private static ListBrowserLanguagesPage createEmptyPage() { + return new ListBrowserLanguagesPage(null, null); + } + + @Override + protected ListBrowserLanguagesPage createPage( + PageContext + context, + ListBrowserLanguagesResponse response) { + return new ListBrowserLanguagesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBrowserLanguagesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + BrowserLanguage, + ListBrowserLanguagesPage, + ListBrowserLanguagesFixedSizeCollection> { + + private ListBrowserLanguagesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBrowserLanguagesFixedSizeCollection createEmptyCollection() { + return new ListBrowserLanguagesFixedSizeCollection(null, 0); + } + + @Override + protected ListBrowserLanguagesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBrowserLanguagesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceSettings.java new file mode 100644 index 000000000000..bb42a7ccd29b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceSettings.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.BrowserLanguageServiceClient.ListBrowserLanguagesPagedResponse; + +import com.google.ads.admanager.v1.stub.BrowserLanguageServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BrowserLanguageServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getBrowserLanguage: + * + *

{@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
+ * BrowserLanguageServiceSettings.Builder browserLanguageServiceSettingsBuilder =
+ *     BrowserLanguageServiceSettings.newBuilder();
+ * browserLanguageServiceSettingsBuilder
+ *     .getBrowserLanguageSettings()
+ *     .setRetrySettings(
+ *         browserLanguageServiceSettingsBuilder
+ *             .getBrowserLanguageSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * BrowserLanguageServiceSettings browserLanguageServiceSettings =
+ *     browserLanguageServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class BrowserLanguageServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getBrowserLanguage. */ + public UnaryCallSettings + getBrowserLanguageSettings() { + return ((BrowserLanguageServiceStubSettings) getStubSettings()).getBrowserLanguageSettings(); + } + + /** Returns the object with the settings used for calls to listBrowserLanguages. */ + public PagedCallSettings< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + ListBrowserLanguagesPagedResponse> + listBrowserLanguagesSettings() { + return ((BrowserLanguageServiceStubSettings) getStubSettings()).listBrowserLanguagesSettings(); + } + + public static final BrowserLanguageServiceSettings create(BrowserLanguageServiceStubSettings stub) + throws IOException { + return new BrowserLanguageServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return BrowserLanguageServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return BrowserLanguageServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return BrowserLanguageServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return BrowserLanguageServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return BrowserLanguageServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return BrowserLanguageServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BrowserLanguageServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BrowserLanguageServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for BrowserLanguageServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(BrowserLanguageServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(BrowserLanguageServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(BrowserLanguageServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(BrowserLanguageServiceStubSettings.newBuilder()); + } + + public BrowserLanguageServiceStubSettings.Builder getStubSettingsBuilder() { + return ((BrowserLanguageServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getBrowserLanguage. */ + public UnaryCallSettings.Builder + getBrowserLanguageSettings() { + return getStubSettingsBuilder().getBrowserLanguageSettings(); + } + + /** Returns the builder for the settings used for calls to listBrowserLanguages. */ + public PagedCallSettings.Builder< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + ListBrowserLanguagesPagedResponse> + listBrowserLanguagesSettings() { + return getStubSettingsBuilder().listBrowserLanguagesSettings(); + } + + @Override + public BrowserLanguageServiceSettings build() throws IOException { + return new BrowserLanguageServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java new file mode 100644 index 000000000000..8dd06687659b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java @@ -0,0 +1,581 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.BrowserServiceStub; +import com.google.ads.admanager.v1.stub.BrowserServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `Browser` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ *   BrowserName name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]");
+ *   Browser response = browserServiceClient.getBrowser(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the BrowserServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetBrowser

API to retrieve a `Browser` object.

+ *

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

+ *
    + *
  • getBrowser(GetBrowserRequest request) + *

+ *

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

+ *
    + *
  • getBrowser(BrowserName name) + *

  • getBrowser(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.

+ *
    + *
  • getBrowserCallable() + *

+ *

ListBrowsers

API to retrieve a list of `Browser` objects.

+ *

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

+ *
    + *
  • listBrowsers(ListBrowsersRequest request) + *

+ *

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

+ *
    + *
  • listBrowsers(NetworkName parent) + *

  • listBrowsers(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.

+ *
    + *
  • listBrowsersPagedCallable() + *

  • listBrowsersCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of BrowserServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BrowserServiceSettings browserServiceSettings =
+ *     BrowserServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * BrowserServiceClient browserServiceClient = BrowserServiceClient.create(browserServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BrowserServiceSettings browserServiceSettings =
+ *     BrowserServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BrowserServiceClient browserServiceClient = BrowserServiceClient.create(browserServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class BrowserServiceClient implements BackgroundResource { + private final BrowserServiceSettings settings; + private final BrowserServiceStub stub; + + /** Constructs an instance of BrowserServiceClient with default settings. */ + public static final BrowserServiceClient create() throws IOException { + return create(BrowserServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of BrowserServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final BrowserServiceClient create(BrowserServiceSettings settings) + throws IOException { + return new BrowserServiceClient(settings); + } + + /** + * Constructs an instance of BrowserServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(BrowserServiceSettings). + */ + public static final BrowserServiceClient create(BrowserServiceStub stub) { + return new BrowserServiceClient(stub); + } + + /** + * Constructs an instance of BrowserServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected BrowserServiceClient(BrowserServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((BrowserServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected BrowserServiceClient(BrowserServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final BrowserServiceSettings getSettings() { + return settings; + } + + public BrowserServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Browser` object. + * + *

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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+   *   BrowserName name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]");
+   *   Browser response = browserServiceClient.getBrowser(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Browser. Format: + * `networks/{network_code}/browsers/{browser_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Browser getBrowser(BrowserName name) { + GetBrowserRequest request = + GetBrowserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBrowser(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Browser` object. + * + *

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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+   *   String name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString();
+   *   Browser response = browserServiceClient.getBrowser(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Browser. Format: + * `networks/{network_code}/browsers/{browser_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Browser getBrowser(String name) { + GetBrowserRequest request = GetBrowserRequest.newBuilder().setName(name).build(); + return getBrowser(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Browser` object. + * + *

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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+   *   GetBrowserRequest request =
+   *       GetBrowserRequest.newBuilder()
+   *           .setName(BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString())
+   *           .build();
+   *   Browser response = browserServiceClient.getBrowser(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 Browser getBrowser(GetBrowserRequest request) { + return getBrowserCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Browser` object. + * + *

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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+   *   GetBrowserRequest request =
+   *       GetBrowserRequest.newBuilder()
+   *           .setName(BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString())
+   *           .build();
+   *   ApiFuture future = browserServiceClient.getBrowserCallable().futureCall(request);
+   *   // Do something.
+   *   Browser response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBrowserCallable() { + return stub.getBrowserCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Browser` objects. + * + *

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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (Browser element : browserServiceClient.listBrowsers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of Browsers. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBrowsersPagedResponse listBrowsers(NetworkName parent) { + ListBrowsersRequest request = + ListBrowsersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBrowsers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Browser` objects. + * + *

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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (Browser element : browserServiceClient.listBrowsers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of Browsers. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBrowsersPagedResponse listBrowsers(String parent) { + ListBrowsersRequest request = ListBrowsersRequest.newBuilder().setParent(parent).build(); + return listBrowsers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Browser` objects. + * + *

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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+   *   ListBrowsersRequest request =
+   *       ListBrowsersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (Browser element : browserServiceClient.listBrowsers(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 ListBrowsersPagedResponse listBrowsers(ListBrowsersRequest request) { + return listBrowsersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Browser` objects. + * + *

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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+   *   ListBrowsersRequest request =
+   *       ListBrowsersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       browserServiceClient.listBrowsersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Browser element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBrowsersPagedCallable() { + return stub.listBrowsersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Browser` objects. + * + *

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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+   *   ListBrowsersRequest request =
+   *       ListBrowsersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListBrowsersResponse response = browserServiceClient.listBrowsersCallable().call(request);
+   *     for (Browser element : response.getBrowsersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listBrowsersCallable() { + return stub.listBrowsersCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListBrowsersPagedResponse + extends AbstractPagedListResponse< + ListBrowsersRequest, + ListBrowsersResponse, + Browser, + ListBrowsersPage, + ListBrowsersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBrowsersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBrowsersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBrowsersPagedResponse(ListBrowsersPage page) { + super(page, ListBrowsersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBrowsersPage + extends AbstractPage { + + private ListBrowsersPage( + PageContext context, + ListBrowsersResponse response) { + super(context, response); + } + + private static ListBrowsersPage createEmptyPage() { + return new ListBrowsersPage(null, null); + } + + @Override + protected ListBrowsersPage createPage( + PageContext context, + ListBrowsersResponse response) { + return new ListBrowsersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBrowsersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBrowsersRequest, + ListBrowsersResponse, + Browser, + ListBrowsersPage, + ListBrowsersFixedSizeCollection> { + + private ListBrowsersFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBrowsersFixedSizeCollection createEmptyCollection() { + return new ListBrowsersFixedSizeCollection(null, 0); + } + + @Override + protected ListBrowsersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBrowsersFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceSettings.java new file mode 100644 index 000000000000..134df6e7ba96 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceSettings.java @@ -0,0 +1,214 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.BrowserServiceClient.ListBrowsersPagedResponse; + +import com.google.ads.admanager.v1.stub.BrowserServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BrowserServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getBrowser: + * + *

{@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
+ * BrowserServiceSettings.Builder browserServiceSettingsBuilder =
+ *     BrowserServiceSettings.newBuilder();
+ * browserServiceSettingsBuilder
+ *     .getBrowserSettings()
+ *     .setRetrySettings(
+ *         browserServiceSettingsBuilder
+ *             .getBrowserSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * BrowserServiceSettings browserServiceSettings = browserServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class BrowserServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getBrowser. */ + public UnaryCallSettings getBrowserSettings() { + return ((BrowserServiceStubSettings) getStubSettings()).getBrowserSettings(); + } + + /** Returns the object with the settings used for calls to listBrowsers. */ + public PagedCallSettings + listBrowsersSettings() { + return ((BrowserServiceStubSettings) getStubSettings()).listBrowsersSettings(); + } + + public static final BrowserServiceSettings create(BrowserServiceStubSettings stub) + throws IOException { + return new BrowserServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return BrowserServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return BrowserServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return BrowserServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return BrowserServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return BrowserServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return BrowserServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BrowserServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BrowserServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for BrowserServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(BrowserServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(BrowserServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(BrowserServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(BrowserServiceStubSettings.newBuilder()); + } + + public BrowserServiceStubSettings.Builder getStubSettingsBuilder() { + return ((BrowserServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getBrowser. */ + public UnaryCallSettings.Builder getBrowserSettings() { + return getStubSettingsBuilder().getBrowserSettings(); + } + + /** Returns the builder for the settings used for calls to listBrowsers. */ + public PagedCallSettings.Builder< + ListBrowsersRequest, ListBrowsersResponse, ListBrowsersPagedResponse> + listBrowsersSettings() { + return getStubSettingsBuilder().listBrowsersSettings(); + } + + @Override + public BrowserServiceSettings build() throws IOException { + return new BrowserServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java new file mode 100644 index 000000000000..ea75d9bda263 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java @@ -0,0 +1,613 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.CmsMetadataKeyServiceStub; +import com.google.ads.admanager.v1.stub.CmsMetadataKeyServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `CmsMetadataKey` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ *     CmsMetadataKeyServiceClient.create()) {
+ *   CmsMetadataKeyName name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]");
+ *   CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the CmsMetadataKeyServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetCmsMetadataKey

API to retrieve a `CmsMetadataKey` object.

+ *

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

+ *
    + *
  • getCmsMetadataKey(GetCmsMetadataKeyRequest request) + *

+ *

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

+ *
    + *
  • getCmsMetadataKey(CmsMetadataKeyName name) + *

  • getCmsMetadataKey(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.

+ *
    + *
  • getCmsMetadataKeyCallable() + *

+ *

ListCmsMetadataKeys

API to retrieve a list of `CmsMetadataKey` objects.

+ *

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

+ *
    + *
  • listCmsMetadataKeys(ListCmsMetadataKeysRequest request) + *

+ *

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

+ *
    + *
  • listCmsMetadataKeys(NetworkName parent) + *

  • listCmsMetadataKeys(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.

+ *
    + *
  • listCmsMetadataKeysPagedCallable() + *

  • listCmsMetadataKeysCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of CmsMetadataKeyServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmsMetadataKeyServiceSettings cmsMetadataKeyServiceSettings =
+ *     CmsMetadataKeyServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ *     CmsMetadataKeyServiceClient.create(cmsMetadataKeyServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmsMetadataKeyServiceSettings cmsMetadataKeyServiceSettings =
+ *     CmsMetadataKeyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ *     CmsMetadataKeyServiceClient.create(cmsMetadataKeyServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class CmsMetadataKeyServiceClient implements BackgroundResource { + private final CmsMetadataKeyServiceSettings settings; + private final CmsMetadataKeyServiceStub stub; + + /** Constructs an instance of CmsMetadataKeyServiceClient with default settings. */ + public static final CmsMetadataKeyServiceClient create() throws IOException { + return create(CmsMetadataKeyServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CmsMetadataKeyServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CmsMetadataKeyServiceClient create(CmsMetadataKeyServiceSettings settings) + throws IOException { + return new CmsMetadataKeyServiceClient(settings); + } + + /** + * Constructs an instance of CmsMetadataKeyServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(CmsMetadataKeyServiceSettings). + */ + public static final CmsMetadataKeyServiceClient create(CmsMetadataKeyServiceStub stub) { + return new CmsMetadataKeyServiceClient(stub); + } + + /** + * Constructs an instance of CmsMetadataKeyServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected CmsMetadataKeyServiceClient(CmsMetadataKeyServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CmsMetadataKeyServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected CmsMetadataKeyServiceClient(CmsMetadataKeyServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CmsMetadataKeyServiceSettings getSettings() { + return settings; + } + + public CmsMetadataKeyServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CmsMetadataKey` object. + * + *

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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+   *     CmsMetadataKeyServiceClient.create()) {
+   *   CmsMetadataKeyName name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]");
+   *   CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the CmsMetadataKey. Format: + * `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmsMetadataKey getCmsMetadataKey(CmsMetadataKeyName name) { + GetCmsMetadataKeyRequest request = + GetCmsMetadataKeyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCmsMetadataKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CmsMetadataKey` object. + * + *

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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+   *     CmsMetadataKeyServiceClient.create()) {
+   *   String name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString();
+   *   CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the CmsMetadataKey. Format: + * `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmsMetadataKey getCmsMetadataKey(String name) { + GetCmsMetadataKeyRequest request = GetCmsMetadataKeyRequest.newBuilder().setName(name).build(); + return getCmsMetadataKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CmsMetadataKey` object. + * + *

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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+   *     CmsMetadataKeyServiceClient.create()) {
+   *   GetCmsMetadataKeyRequest request =
+   *       GetCmsMetadataKeyRequest.newBuilder()
+   *           .setName(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString())
+   *           .build();
+   *   CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(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 CmsMetadataKey getCmsMetadataKey(GetCmsMetadataKeyRequest request) { + return getCmsMetadataKeyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CmsMetadataKey` object. + * + *

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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+   *     CmsMetadataKeyServiceClient.create()) {
+   *   GetCmsMetadataKeyRequest request =
+   *       GetCmsMetadataKeyRequest.newBuilder()
+   *           .setName(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cmsMetadataKeyServiceClient.getCmsMetadataKeyCallable().futureCall(request);
+   *   // Do something.
+   *   CmsMetadataKey response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCmsMetadataKeyCallable() { + return stub.getCmsMetadataKeyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataKey` objects. + * + *

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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+   *     CmsMetadataKeyServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (CmsMetadataKey element :
+   *       cmsMetadataKeyServiceClient.listCmsMetadataKeys(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of CmsMetadataKeys. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(NetworkName parent) { + ListCmsMetadataKeysRequest request = + ListCmsMetadataKeysRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCmsMetadataKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataKey` objects. + * + *

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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+   *     CmsMetadataKeyServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (CmsMetadataKey element :
+   *       cmsMetadataKeyServiceClient.listCmsMetadataKeys(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of CmsMetadataKeys. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(String parent) { + ListCmsMetadataKeysRequest request = + ListCmsMetadataKeysRequest.newBuilder().setParent(parent).build(); + return listCmsMetadataKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataKey` objects. + * + *

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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+   *     CmsMetadataKeyServiceClient.create()) {
+   *   ListCmsMetadataKeysRequest request =
+   *       ListCmsMetadataKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (CmsMetadataKey element :
+   *       cmsMetadataKeyServiceClient.listCmsMetadataKeys(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 ListCmsMetadataKeysPagedResponse listCmsMetadataKeys( + ListCmsMetadataKeysRequest request) { + return listCmsMetadataKeysPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataKey` objects. + * + *

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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+   *     CmsMetadataKeyServiceClient.create()) {
+   *   ListCmsMetadataKeysRequest request =
+   *       ListCmsMetadataKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       cmsMetadataKeyServiceClient.listCmsMetadataKeysPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CmsMetadataKey element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCmsMetadataKeysPagedCallable() { + return stub.listCmsMetadataKeysPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataKey` objects. + * + *

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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+   *     CmsMetadataKeyServiceClient.create()) {
+   *   ListCmsMetadataKeysRequest request =
+   *       ListCmsMetadataKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListCmsMetadataKeysResponse response =
+   *         cmsMetadataKeyServiceClient.listCmsMetadataKeysCallable().call(request);
+   *     for (CmsMetadataKey element : response.getCmsMetadataKeysList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCmsMetadataKeysCallable() { + return stub.listCmsMetadataKeysCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListCmsMetadataKeysPagedResponse + extends AbstractPagedListResponse< + ListCmsMetadataKeysRequest, + ListCmsMetadataKeysResponse, + CmsMetadataKey, + ListCmsMetadataKeysPage, + ListCmsMetadataKeysFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCmsMetadataKeysPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCmsMetadataKeysPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCmsMetadataKeysPagedResponse(ListCmsMetadataKeysPage page) { + super(page, ListCmsMetadataKeysFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCmsMetadataKeysPage + extends AbstractPage< + ListCmsMetadataKeysRequest, + ListCmsMetadataKeysResponse, + CmsMetadataKey, + ListCmsMetadataKeysPage> { + + private ListCmsMetadataKeysPage( + PageContext + context, + ListCmsMetadataKeysResponse response) { + super(context, response); + } + + private static ListCmsMetadataKeysPage createEmptyPage() { + return new ListCmsMetadataKeysPage(null, null); + } + + @Override + protected ListCmsMetadataKeysPage createPage( + PageContext + context, + ListCmsMetadataKeysResponse response) { + return new ListCmsMetadataKeysPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCmsMetadataKeysFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCmsMetadataKeysRequest, + ListCmsMetadataKeysResponse, + CmsMetadataKey, + ListCmsMetadataKeysPage, + ListCmsMetadataKeysFixedSizeCollection> { + + private ListCmsMetadataKeysFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCmsMetadataKeysFixedSizeCollection createEmptyCollection() { + return new ListCmsMetadataKeysFixedSizeCollection(null, 0); + } + + @Override + protected ListCmsMetadataKeysFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCmsMetadataKeysFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java new file mode 100644 index 000000000000..5e6a914b805d --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java @@ -0,0 +1,220 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.CmsMetadataKeyServiceClient.ListCmsMetadataKeysPagedResponse; + +import com.google.ads.admanager.v1.stub.CmsMetadataKeyServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CmsMetadataKeyServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getCmsMetadataKey: + * + *

{@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
+ * CmsMetadataKeyServiceSettings.Builder cmsMetadataKeyServiceSettingsBuilder =
+ *     CmsMetadataKeyServiceSettings.newBuilder();
+ * cmsMetadataKeyServiceSettingsBuilder
+ *     .getCmsMetadataKeySettings()
+ *     .setRetrySettings(
+ *         cmsMetadataKeyServiceSettingsBuilder
+ *             .getCmsMetadataKeySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * CmsMetadataKeyServiceSettings cmsMetadataKeyServiceSettings =
+ *     cmsMetadataKeyServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class CmsMetadataKeyServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getCmsMetadataKey. */ + public UnaryCallSettings getCmsMetadataKeySettings() { + return ((CmsMetadataKeyServiceStubSettings) getStubSettings()).getCmsMetadataKeySettings(); + } + + /** Returns the object with the settings used for calls to listCmsMetadataKeys. */ + public PagedCallSettings< + ListCmsMetadataKeysRequest, ListCmsMetadataKeysResponse, ListCmsMetadataKeysPagedResponse> + listCmsMetadataKeysSettings() { + return ((CmsMetadataKeyServiceStubSettings) getStubSettings()).listCmsMetadataKeysSettings(); + } + + public static final CmsMetadataKeyServiceSettings create(CmsMetadataKeyServiceStubSettings stub) + throws IOException { + return new CmsMetadataKeyServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CmsMetadataKeyServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CmsMetadataKeyServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CmsMetadataKeyServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CmsMetadataKeyServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CmsMetadataKeyServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CmsMetadataKeyServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CmsMetadataKeyServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CmsMetadataKeyServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CmsMetadataKeyServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(CmsMetadataKeyServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(CmsMetadataKeyServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CmsMetadataKeyServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(CmsMetadataKeyServiceStubSettings.newBuilder()); + } + + public CmsMetadataKeyServiceStubSettings.Builder getStubSettingsBuilder() { + return ((CmsMetadataKeyServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getCmsMetadataKey. */ + public UnaryCallSettings.Builder + getCmsMetadataKeySettings() { + return getStubSettingsBuilder().getCmsMetadataKeySettings(); + } + + /** Returns the builder for the settings used for calls to listCmsMetadataKeys. */ + public PagedCallSettings.Builder< + ListCmsMetadataKeysRequest, + ListCmsMetadataKeysResponse, + ListCmsMetadataKeysPagedResponse> + listCmsMetadataKeysSettings() { + return getStubSettingsBuilder().listCmsMetadataKeysSettings(); + } + + @Override + public CmsMetadataKeyServiceSettings build() throws IOException { + return new CmsMetadataKeyServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java new file mode 100644 index 000000000000..8194b6a0b12f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java @@ -0,0 +1,616 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.CmsMetadataValueServiceStub; +import com.google.ads.admanager.v1.stub.CmsMetadataValueServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `CmsMetadataValue` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ *     CmsMetadataValueServiceClient.create()) {
+ *   CmsMetadataValueName name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]");
+ *   CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the CmsMetadataValueServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetCmsMetadataValue

API to retrieve a `CmsMetadataKey` object.

+ *

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

+ *
    + *
  • getCmsMetadataValue(GetCmsMetadataValueRequest request) + *

+ *

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

+ *
    + *
  • getCmsMetadataValue(CmsMetadataValueName name) + *

  • getCmsMetadataValue(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.

+ *
    + *
  • getCmsMetadataValueCallable() + *

+ *

ListCmsMetadataValues

API to retrieve a list of `CmsMetadataValue` objects.

+ *

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

+ *
    + *
  • listCmsMetadataValues(ListCmsMetadataValuesRequest request) + *

+ *

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

+ *
    + *
  • listCmsMetadataValues(NetworkName parent) + *

  • listCmsMetadataValues(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.

+ *
    + *
  • listCmsMetadataValuesPagedCallable() + *

  • listCmsMetadataValuesCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * CmsMetadataValueServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmsMetadataValueServiceSettings cmsMetadataValueServiceSettings =
+ *     CmsMetadataValueServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ *     CmsMetadataValueServiceClient.create(cmsMetadataValueServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmsMetadataValueServiceSettings cmsMetadataValueServiceSettings =
+ *     CmsMetadataValueServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ *     CmsMetadataValueServiceClient.create(cmsMetadataValueServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class CmsMetadataValueServiceClient implements BackgroundResource { + private final CmsMetadataValueServiceSettings settings; + private final CmsMetadataValueServiceStub stub; + + /** Constructs an instance of CmsMetadataValueServiceClient with default settings. */ + public static final CmsMetadataValueServiceClient create() throws IOException { + return create(CmsMetadataValueServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CmsMetadataValueServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CmsMetadataValueServiceClient create(CmsMetadataValueServiceSettings settings) + throws IOException { + return new CmsMetadataValueServiceClient(settings); + } + + /** + * Constructs an instance of CmsMetadataValueServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(CmsMetadataValueServiceSettings). + */ + public static final CmsMetadataValueServiceClient create(CmsMetadataValueServiceStub stub) { + return new CmsMetadataValueServiceClient(stub); + } + + /** + * Constructs an instance of CmsMetadataValueServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected CmsMetadataValueServiceClient(CmsMetadataValueServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((CmsMetadataValueServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected CmsMetadataValueServiceClient(CmsMetadataValueServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CmsMetadataValueServiceSettings getSettings() { + return settings; + } + + public CmsMetadataValueServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CmsMetadataKey` object. + * + *

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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+   *     CmsMetadataValueServiceClient.create()) {
+   *   CmsMetadataValueName name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]");
+   *   CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the CmsMetadataKey. Format: + * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmsMetadataValue getCmsMetadataValue(CmsMetadataValueName name) { + GetCmsMetadataValueRequest request = + GetCmsMetadataValueRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCmsMetadataValue(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CmsMetadataKey` object. + * + *

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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+   *     CmsMetadataValueServiceClient.create()) {
+   *   String name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString();
+   *   CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the CmsMetadataKey. Format: + * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmsMetadataValue getCmsMetadataValue(String name) { + GetCmsMetadataValueRequest request = + GetCmsMetadataValueRequest.newBuilder().setName(name).build(); + return getCmsMetadataValue(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CmsMetadataKey` object. + * + *

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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+   *     CmsMetadataValueServiceClient.create()) {
+   *   GetCmsMetadataValueRequest request =
+   *       GetCmsMetadataValueRequest.newBuilder()
+   *           .setName(CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString())
+   *           .build();
+   *   CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(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 CmsMetadataValue getCmsMetadataValue(GetCmsMetadataValueRequest request) { + return getCmsMetadataValueCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CmsMetadataKey` object. + * + *

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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+   *     CmsMetadataValueServiceClient.create()) {
+   *   GetCmsMetadataValueRequest request =
+   *       GetCmsMetadataValueRequest.newBuilder()
+   *           .setName(CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cmsMetadataValueServiceClient.getCmsMetadataValueCallable().futureCall(request);
+   *   // Do something.
+   *   CmsMetadataValue response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCmsMetadataValueCallable() { + return stub.getCmsMetadataValueCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataValue` objects. + * + *

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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+   *     CmsMetadataValueServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (CmsMetadataValue element :
+   *       cmsMetadataValueServiceClient.listCmsMetadataValues(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of CmsMetadataValues. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues(NetworkName parent) { + ListCmsMetadataValuesRequest request = + ListCmsMetadataValuesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCmsMetadataValues(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataValue` objects. + * + *

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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+   *     CmsMetadataValueServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (CmsMetadataValue element :
+   *       cmsMetadataValueServiceClient.listCmsMetadataValues(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of CmsMetadataValues. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues(String parent) { + ListCmsMetadataValuesRequest request = + ListCmsMetadataValuesRequest.newBuilder().setParent(parent).build(); + return listCmsMetadataValues(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataValue` objects. + * + *

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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+   *     CmsMetadataValueServiceClient.create()) {
+   *   ListCmsMetadataValuesRequest request =
+   *       ListCmsMetadataValuesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (CmsMetadataValue element :
+   *       cmsMetadataValueServiceClient.listCmsMetadataValues(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 ListCmsMetadataValuesPagedResponse listCmsMetadataValues( + ListCmsMetadataValuesRequest request) { + return listCmsMetadataValuesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataValue` objects. + * + *

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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+   *     CmsMetadataValueServiceClient.create()) {
+   *   ListCmsMetadataValuesRequest request =
+   *       ListCmsMetadataValuesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       cmsMetadataValueServiceClient.listCmsMetadataValuesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CmsMetadataValue element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCmsMetadataValuesPagedCallable() { + return stub.listCmsMetadataValuesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CmsMetadataValue` objects. + * + *

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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+   *     CmsMetadataValueServiceClient.create()) {
+   *   ListCmsMetadataValuesRequest request =
+   *       ListCmsMetadataValuesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListCmsMetadataValuesResponse response =
+   *         cmsMetadataValueServiceClient.listCmsMetadataValuesCallable().call(request);
+   *     for (CmsMetadataValue element : response.getCmsMetadataValuesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCmsMetadataValuesCallable() { + return stub.listCmsMetadataValuesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListCmsMetadataValuesPagedResponse + extends AbstractPagedListResponse< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + CmsMetadataValue, + ListCmsMetadataValuesPage, + ListCmsMetadataValuesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCmsMetadataValuesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCmsMetadataValuesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCmsMetadataValuesPagedResponse(ListCmsMetadataValuesPage page) { + super(page, ListCmsMetadataValuesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCmsMetadataValuesPage + extends AbstractPage< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + CmsMetadataValue, + ListCmsMetadataValuesPage> { + + private ListCmsMetadataValuesPage( + PageContext + context, + ListCmsMetadataValuesResponse response) { + super(context, response); + } + + private static ListCmsMetadataValuesPage createEmptyPage() { + return new ListCmsMetadataValuesPage(null, null); + } + + @Override + protected ListCmsMetadataValuesPage createPage( + PageContext + context, + ListCmsMetadataValuesResponse response) { + return new ListCmsMetadataValuesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCmsMetadataValuesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + CmsMetadataValue, + ListCmsMetadataValuesPage, + ListCmsMetadataValuesFixedSizeCollection> { + + private ListCmsMetadataValuesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCmsMetadataValuesFixedSizeCollection createEmptyCollection() { + return new ListCmsMetadataValuesFixedSizeCollection(null, 0); + } + + @Override + protected ListCmsMetadataValuesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCmsMetadataValuesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java new file mode 100644 index 000000000000..0778d736437d --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java @@ -0,0 +1,225 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.CmsMetadataValueServiceClient.ListCmsMetadataValuesPagedResponse; + +import com.google.ads.admanager.v1.stub.CmsMetadataValueServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CmsMetadataValueServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getCmsMetadataValue: + * + *

{@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
+ * CmsMetadataValueServiceSettings.Builder cmsMetadataValueServiceSettingsBuilder =
+ *     CmsMetadataValueServiceSettings.newBuilder();
+ * cmsMetadataValueServiceSettingsBuilder
+ *     .getCmsMetadataValueSettings()
+ *     .setRetrySettings(
+ *         cmsMetadataValueServiceSettingsBuilder
+ *             .getCmsMetadataValueSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * CmsMetadataValueServiceSettings cmsMetadataValueServiceSettings =
+ *     cmsMetadataValueServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class CmsMetadataValueServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getCmsMetadataValue. */ + public UnaryCallSettings + getCmsMetadataValueSettings() { + return ((CmsMetadataValueServiceStubSettings) getStubSettings()).getCmsMetadataValueSettings(); + } + + /** Returns the object with the settings used for calls to listCmsMetadataValues. */ + public PagedCallSettings< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + ListCmsMetadataValuesPagedResponse> + listCmsMetadataValuesSettings() { + return ((CmsMetadataValueServiceStubSettings) getStubSettings()) + .listCmsMetadataValuesSettings(); + } + + public static final CmsMetadataValueServiceSettings create( + CmsMetadataValueServiceStubSettings stub) throws IOException { + return new CmsMetadataValueServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CmsMetadataValueServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CmsMetadataValueServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CmsMetadataValueServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CmsMetadataValueServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CmsMetadataValueServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CmsMetadataValueServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CmsMetadataValueServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CmsMetadataValueServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CmsMetadataValueServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(CmsMetadataValueServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(CmsMetadataValueServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CmsMetadataValueServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(CmsMetadataValueServiceStubSettings.newBuilder()); + } + + public CmsMetadataValueServiceStubSettings.Builder getStubSettingsBuilder() { + return ((CmsMetadataValueServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getCmsMetadataValue. */ + public UnaryCallSettings.Builder + getCmsMetadataValueSettings() { + return getStubSettingsBuilder().getCmsMetadataValueSettings(); + } + + /** Returns the builder for the settings used for calls to listCmsMetadataValues. */ + public PagedCallSettings.Builder< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + ListCmsMetadataValuesPagedResponse> + listCmsMetadataValuesSettings() { + return getStubSettingsBuilder().listCmsMetadataValuesSettings(); + } + + @Override + public CmsMetadataValueServiceSettings build() throws IOException { + return new CmsMetadataValueServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java new file mode 100644 index 000000000000..6aeb717c0caf --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java @@ -0,0 +1,1118 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.ContactServiceStub; +import com.google.ads.admanager.v1.stub.ContactServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `Contact` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ *   ContactName name = ContactName.of("[NETWORK_CODE]", "[CONTACT]");
+ *   Contact response = contactServiceClient.getContact(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the ContactServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetContact

API to retrieve a `Contact` object.

+ *

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

+ *
    + *
  • getContact(GetContactRequest request) + *

+ *

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

+ *
    + *
  • getContact(ContactName name) + *

  • getContact(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.

+ *
    + *
  • getContactCallable() + *

+ *

ListContacts

API to retrieve a list of `Contact` objects.

+ *

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

+ *
    + *
  • listContacts(ListContactsRequest request) + *

+ *

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

+ *
    + *
  • listContacts(NetworkName parent) + *

  • listContacts(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.

+ *
    + *
  • listContactsPagedCallable() + *

  • listContactsCallable() + *

+ *

CreateContact

API to create a `Contact` object.

+ *

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

+ *
    + *
  • createContact(CreateContactRequest request) + *

+ *

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

+ *
    + *
  • createContact(NetworkName parent, Contact contact) + *

  • createContact(String parent, Contact contact) + *

+ *

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

+ *
    + *
  • createContactCallable() + *

+ *

BatchCreateContacts

API to batch create `Contact` objects.

+ *

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

+ *
    + *
  • batchCreateContacts(NetworkName parent, List<CreateContactRequest> requests) + *

  • batchCreateContacts(String parent, List<CreateContactRequest> requests) + *

  • batchCreateContacts(BatchCreateContactsRequest request) + *

+ *

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

+ *
    + *
  • batchCreateContactsCallable() + *

+ *

UpdateContact

API to update a `Contact` object.

+ *

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

+ *
    + *
  • updateContact(UpdateContactRequest request) + *

+ *

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

+ *
    + *
  • updateContact(Contact contact, 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.

+ *
    + *
  • updateContactCallable() + *

+ *

BatchUpdateContacts

API to batch update `Contact` objects.

+ *

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

+ *
    + *
  • batchUpdateContacts(NetworkName parent, List<UpdateContactRequest> requests) + *

  • batchUpdateContacts(String parent, List<UpdateContactRequest> requests) + *

  • batchUpdateContacts(BatchUpdateContactsRequest request) + *

+ *

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

+ *
    + *
  • batchUpdateContactsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ContactServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContactServiceSettings contactServiceSettings =
+ *     ContactServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ContactServiceClient contactServiceClient = ContactServiceClient.create(contactServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContactServiceSettings contactServiceSettings =
+ *     ContactServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ContactServiceClient contactServiceClient = ContactServiceClient.create(contactServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ContactServiceClient implements BackgroundResource { + private final ContactServiceSettings settings; + private final ContactServiceStub stub; + + /** Constructs an instance of ContactServiceClient with default settings. */ + public static final ContactServiceClient create() throws IOException { + return create(ContactServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ContactServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ContactServiceClient create(ContactServiceSettings settings) + throws IOException { + return new ContactServiceClient(settings); + } + + /** + * Constructs an instance of ContactServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(ContactServiceSettings). + */ + public static final ContactServiceClient create(ContactServiceStub stub) { + return new ContactServiceClient(stub); + } + + /** + * Constructs an instance of ContactServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ContactServiceClient(ContactServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ContactServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ContactServiceClient(ContactServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ContactServiceSettings getSettings() { + return settings; + } + + public ContactServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   ContactName name = ContactName.of("[NETWORK_CODE]", "[CONTACT]");
+   *   Contact response = contactServiceClient.getContact(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Contact. Format: + * `networks/{network_code}/contacts/{contact_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Contact getContact(ContactName name) { + GetContactRequest request = + GetContactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getContact(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   String name = ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString();
+   *   Contact response = contactServiceClient.getContact(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Contact. Format: + * `networks/{network_code}/contacts/{contact_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Contact getContact(String name) { + GetContactRequest request = GetContactRequest.newBuilder().setName(name).build(); + return getContact(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   GetContactRequest request =
+   *       GetContactRequest.newBuilder()
+   *           .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString())
+   *           .build();
+   *   Contact response = contactServiceClient.getContact(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 Contact getContact(GetContactRequest request) { + return getContactCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   GetContactRequest request =
+   *       GetContactRequest.newBuilder()
+   *           .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString())
+   *           .build();
+   *   ApiFuture future = contactServiceClient.getContactCallable().futureCall(request);
+   *   // Do something.
+   *   Contact response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getContactCallable() { + return stub.getContactCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (Contact element : contactServiceClient.listContacts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of Contacts. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContactsPagedResponse listContacts(NetworkName parent) { + ListContactsRequest request = + ListContactsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listContacts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (Contact element : contactServiceClient.listContacts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of Contacts. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContactsPagedResponse listContacts(String parent) { + ListContactsRequest request = ListContactsRequest.newBuilder().setParent(parent).build(); + return listContacts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   ListContactsRequest request =
+   *       ListContactsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (Contact element : contactServiceClient.listContacts(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 ListContactsPagedResponse listContacts(ListContactsRequest request) { + return listContactsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   ListContactsRequest request =
+   *       ListContactsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       contactServiceClient.listContactsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Contact element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listContactsPagedCallable() { + return stub.listContactsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   ListContactsRequest request =
+   *       ListContactsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListContactsResponse response = contactServiceClient.listContactsCallable().call(request);
+   *     for (Contact element : response.getContactsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listContactsCallable() { + return stub.listContactsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   Contact contact = Contact.newBuilder().build();
+   *   Contact response = contactServiceClient.createContact(parent, contact);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `Contact` will be created. Format: + * `networks/{network_code}` + * @param contact Required. The `Contact` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Contact createContact(NetworkName parent, Contact contact) { + CreateContactRequest request = + CreateContactRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setContact(contact) + .build(); + return createContact(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   Contact contact = Contact.newBuilder().build();
+   *   Contact response = contactServiceClient.createContact(parent, contact);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `Contact` will be created. Format: + * `networks/{network_code}` + * @param contact Required. The `Contact` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Contact createContact(String parent, Contact contact) { + CreateContactRequest request = + CreateContactRequest.newBuilder().setParent(parent).setContact(contact).build(); + return createContact(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   CreateContactRequest request =
+   *       CreateContactRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setContact(Contact.newBuilder().build())
+   *           .build();
+   *   Contact response = contactServiceClient.createContact(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 Contact createContact(CreateContactRequest request) { + return createContactCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   CreateContactRequest request =
+   *       CreateContactRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setContact(Contact.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = contactServiceClient.createContactCallable().futureCall(request);
+   *   // Do something.
+   *   Contact response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createContactCallable() { + return stub.createContactCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchCreateContactsResponse response =
+   *       contactServiceClient.batchCreateContacts(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `Contacts` will be created. Format: + * `networks/{network_code}` The parent field in the CreateContactRequest must match this + * field. + * @param requests Required. The `Contact` objects to create. A maximum of 100 objects can be + * created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateContactsResponse batchCreateContacts( + NetworkName parent, List requests) { + BatchCreateContactsRequest request = + BatchCreateContactsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchCreateContacts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchCreateContactsResponse response =
+   *       contactServiceClient.batchCreateContacts(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `Contacts` will be created. Format: + * `networks/{network_code}` The parent field in the CreateContactRequest must match this + * field. + * @param requests Required. The `Contact` objects to create. A maximum of 100 objects can be + * created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateContactsResponse batchCreateContacts( + String parent, List requests) { + BatchCreateContactsRequest request = + BatchCreateContactsRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return batchCreateContacts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   BatchCreateContactsRequest request =
+   *       BatchCreateContactsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchCreateContactsResponse response = contactServiceClient.batchCreateContacts(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 BatchCreateContactsResponse batchCreateContacts(BatchCreateContactsRequest request) { + return batchCreateContactsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   BatchCreateContactsRequest request =
+   *       BatchCreateContactsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       contactServiceClient.batchCreateContactsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchCreateContactsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchCreateContactsCallable() { + return stub.batchCreateContactsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   Contact contact = Contact.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Contact response = contactServiceClient.updateContact(contact, updateMask);
+   * }
+   * }
+ * + * @param contact Required. The `Contact` to update. + *

The `Contact`'s `name` is used to identify the `Contact` to update. + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Contact updateContact(Contact contact, FieldMask updateMask) { + UpdateContactRequest request = + UpdateContactRequest.newBuilder().setContact(contact).setUpdateMask(updateMask).build(); + return updateContact(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   UpdateContactRequest request =
+   *       UpdateContactRequest.newBuilder()
+   *           .setContact(Contact.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Contact response = contactServiceClient.updateContact(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 Contact updateContact(UpdateContactRequest request) { + return updateContactCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `Contact` object. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   UpdateContactRequest request =
+   *       UpdateContactRequest.newBuilder()
+   *           .setContact(Contact.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = contactServiceClient.updateContactCallable().futureCall(request);
+   *   // Do something.
+   *   Contact response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateContactCallable() { + return stub.updateContactCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchUpdateContactsResponse response =
+   *       contactServiceClient.batchUpdateContacts(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `Contacts` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateContactRequest must match this + * field. + * @param requests Required. The `Contact` objects to update. A maximum of 100 objects can be + * updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateContactsResponse batchUpdateContacts( + NetworkName parent, List requests) { + BatchUpdateContactsRequest request = + BatchUpdateContactsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchUpdateContacts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchUpdateContactsResponse response =
+   *       contactServiceClient.batchUpdateContacts(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `Contacts` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateContactRequest must match this + * field. + * @param requests Required. The `Contact` objects to update. A maximum of 100 objects can be + * updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateContactsResponse batchUpdateContacts( + String parent, List requests) { + BatchUpdateContactsRequest request = + BatchUpdateContactsRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return batchUpdateContacts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   BatchUpdateContactsRequest request =
+   *       BatchUpdateContactsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchUpdateContactsResponse response = contactServiceClient.batchUpdateContacts(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 BatchUpdateContactsResponse batchUpdateContacts(BatchUpdateContactsRequest request) { + return batchUpdateContactsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Contact` objects. + * + *

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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+   *   BatchUpdateContactsRequest request =
+   *       BatchUpdateContactsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       contactServiceClient.batchUpdateContactsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchUpdateContactsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchUpdateContactsCallable() { + return stub.batchUpdateContactsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListContactsPagedResponse + extends AbstractPagedListResponse< + ListContactsRequest, + ListContactsResponse, + Contact, + ListContactsPage, + ListContactsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListContactsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListContactsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListContactsPagedResponse(ListContactsPage page) { + super(page, ListContactsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListContactsPage + extends AbstractPage { + + private ListContactsPage( + PageContext context, + ListContactsResponse response) { + super(context, response); + } + + private static ListContactsPage createEmptyPage() { + return new ListContactsPage(null, null); + } + + @Override + protected ListContactsPage createPage( + PageContext context, + ListContactsResponse response) { + return new ListContactsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListContactsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListContactsRequest, + ListContactsResponse, + Contact, + ListContactsPage, + ListContactsFixedSizeCollection> { + + private ListContactsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListContactsFixedSizeCollection createEmptyCollection() { + return new ListContactsFixedSizeCollection(null, 0); + } + + @Override + protected ListContactsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListContactsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceSettings.java new file mode 100644 index 000000000000..814a6ae098f1 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceSettings.java @@ -0,0 +1,258 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ContactServiceClient.ListContactsPagedResponse; + +import com.google.ads.admanager.v1.stub.ContactServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ContactServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getContact: + * + *

{@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
+ * ContactServiceSettings.Builder contactServiceSettingsBuilder =
+ *     ContactServiceSettings.newBuilder();
+ * contactServiceSettingsBuilder
+ *     .getContactSettings()
+ *     .setRetrySettings(
+ *         contactServiceSettingsBuilder
+ *             .getContactSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * ContactServiceSettings contactServiceSettings = contactServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ContactServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getContact. */ + public UnaryCallSettings getContactSettings() { + return ((ContactServiceStubSettings) getStubSettings()).getContactSettings(); + } + + /** Returns the object with the settings used for calls to listContacts. */ + public PagedCallSettings + listContactsSettings() { + return ((ContactServiceStubSettings) getStubSettings()).listContactsSettings(); + } + + /** Returns the object with the settings used for calls to createContact. */ + public UnaryCallSettings createContactSettings() { + return ((ContactServiceStubSettings) getStubSettings()).createContactSettings(); + } + + /** Returns the object with the settings used for calls to batchCreateContacts. */ + public UnaryCallSettings + batchCreateContactsSettings() { + return ((ContactServiceStubSettings) getStubSettings()).batchCreateContactsSettings(); + } + + /** Returns the object with the settings used for calls to updateContact. */ + public UnaryCallSettings updateContactSettings() { + return ((ContactServiceStubSettings) getStubSettings()).updateContactSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateContacts. */ + public UnaryCallSettings + batchUpdateContactsSettings() { + return ((ContactServiceStubSettings) getStubSettings()).batchUpdateContactsSettings(); + } + + public static final ContactServiceSettings create(ContactServiceStubSettings stub) + throws IOException { + return new ContactServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ContactServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ContactServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ContactServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ContactServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ContactServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ContactServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ContactServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ContactServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ContactServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ContactServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ContactServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ContactServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ContactServiceStubSettings.newBuilder()); + } + + public ContactServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ContactServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getContact. */ + public UnaryCallSettings.Builder getContactSettings() { + return getStubSettingsBuilder().getContactSettings(); + } + + /** Returns the builder for the settings used for calls to listContacts. */ + public PagedCallSettings.Builder< + ListContactsRequest, ListContactsResponse, ListContactsPagedResponse> + listContactsSettings() { + return getStubSettingsBuilder().listContactsSettings(); + } + + /** Returns the builder for the settings used for calls to createContact. */ + public UnaryCallSettings.Builder createContactSettings() { + return getStubSettingsBuilder().createContactSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateContacts. */ + public UnaryCallSettings.Builder + batchCreateContactsSettings() { + return getStubSettingsBuilder().batchCreateContactsSettings(); + } + + /** Returns the builder for the settings used for calls to updateContact. */ + public UnaryCallSettings.Builder updateContactSettings() { + return getStubSettingsBuilder().updateContactSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateContacts. */ + public UnaryCallSettings.Builder + batchUpdateContactsSettings() { + return getStubSettingsBuilder().batchUpdateContactsSettings(); + } + + @Override + public ContactServiceSettings build() throws IOException { + return new ContactServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java new file mode 100644 index 000000000000..f85f44a0d714 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java @@ -0,0 +1,607 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.ContentBundleServiceStub; +import com.google.ads.admanager.v1.stub.ContentBundleServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `ContentBundle` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (ContentBundleServiceClient contentBundleServiceClient =
+ *     ContentBundleServiceClient.create()) {
+ *   ContentBundleName name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]");
+ *   ContentBundle response = contentBundleServiceClient.getContentBundle(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the ContentBundleServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetContentBundle

API to retrieve a `ContentBundle` object.

+ *

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

+ *
    + *
  • getContentBundle(GetContentBundleRequest request) + *

+ *

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

+ *
    + *
  • getContentBundle(ContentBundleName name) + *

  • getContentBundle(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.

+ *
    + *
  • getContentBundleCallable() + *

+ *

ListContentBundles

API to retrieve a list of `ContentBundle` objects.

+ *

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

+ *
    + *
  • listContentBundles(ListContentBundlesRequest request) + *

+ *

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

+ *
    + *
  • listContentBundles(NetworkName parent) + *

  • listContentBundles(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.

+ *
    + *
  • listContentBundlesPagedCallable() + *

  • listContentBundlesCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ContentBundleServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContentBundleServiceSettings contentBundleServiceSettings =
+ *     ContentBundleServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ContentBundleServiceClient contentBundleServiceClient =
+ *     ContentBundleServiceClient.create(contentBundleServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContentBundleServiceSettings contentBundleServiceSettings =
+ *     ContentBundleServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ContentBundleServiceClient contentBundleServiceClient =
+ *     ContentBundleServiceClient.create(contentBundleServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ContentBundleServiceClient implements BackgroundResource { + private final ContentBundleServiceSettings settings; + private final ContentBundleServiceStub stub; + + /** Constructs an instance of ContentBundleServiceClient with default settings. */ + public static final ContentBundleServiceClient create() throws IOException { + return create(ContentBundleServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ContentBundleServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ContentBundleServiceClient create(ContentBundleServiceSettings settings) + throws IOException { + return new ContentBundleServiceClient(settings); + } + + /** + * Constructs an instance of ContentBundleServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(ContentBundleServiceSettings). + */ + public static final ContentBundleServiceClient create(ContentBundleServiceStub stub) { + return new ContentBundleServiceClient(stub); + } + + /** + * Constructs an instance of ContentBundleServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected ContentBundleServiceClient(ContentBundleServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ContentBundleServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ContentBundleServiceClient(ContentBundleServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ContentBundleServiceSettings getSettings() { + return settings; + } + + public ContentBundleServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ContentBundle` object. + * + *

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 (ContentBundleServiceClient contentBundleServiceClient =
+   *     ContentBundleServiceClient.create()) {
+   *   ContentBundleName name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]");
+   *   ContentBundle response = contentBundleServiceClient.getContentBundle(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ContentBundle. Format: + * `networks/{network_code}/contentBundles/{content_bundle_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ContentBundle getContentBundle(ContentBundleName name) { + GetContentBundleRequest request = + GetContentBundleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getContentBundle(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ContentBundle` object. + * + *

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 (ContentBundleServiceClient contentBundleServiceClient =
+   *     ContentBundleServiceClient.create()) {
+   *   String name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString();
+   *   ContentBundle response = contentBundleServiceClient.getContentBundle(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ContentBundle. Format: + * `networks/{network_code}/contentBundles/{content_bundle_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ContentBundle getContentBundle(String name) { + GetContentBundleRequest request = GetContentBundleRequest.newBuilder().setName(name).build(); + return getContentBundle(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ContentBundle` object. + * + *

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 (ContentBundleServiceClient contentBundleServiceClient =
+   *     ContentBundleServiceClient.create()) {
+   *   GetContentBundleRequest request =
+   *       GetContentBundleRequest.newBuilder()
+   *           .setName(ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString())
+   *           .build();
+   *   ContentBundle response = contentBundleServiceClient.getContentBundle(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 ContentBundle getContentBundle(GetContentBundleRequest request) { + return getContentBundleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ContentBundle` object. + * + *

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 (ContentBundleServiceClient contentBundleServiceClient =
+   *     ContentBundleServiceClient.create()) {
+   *   GetContentBundleRequest request =
+   *       GetContentBundleRequest.newBuilder()
+   *           .setName(ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       contentBundleServiceClient.getContentBundleCallable().futureCall(request);
+   *   // Do something.
+   *   ContentBundle response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getContentBundleCallable() { + return stub.getContentBundleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentBundle` objects. + * + *

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 (ContentBundleServiceClient contentBundleServiceClient =
+   *     ContentBundleServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (ContentBundle element :
+   *       contentBundleServiceClient.listContentBundles(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of ContentBundles. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContentBundlesPagedResponse listContentBundles(NetworkName parent) { + ListContentBundlesRequest request = + ListContentBundlesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listContentBundles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentBundle` objects. + * + *

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 (ContentBundleServiceClient contentBundleServiceClient =
+   *     ContentBundleServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (ContentBundle element :
+   *       contentBundleServiceClient.listContentBundles(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of ContentBundles. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContentBundlesPagedResponse listContentBundles(String parent) { + ListContentBundlesRequest request = + ListContentBundlesRequest.newBuilder().setParent(parent).build(); + return listContentBundles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentBundle` objects. + * + *

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 (ContentBundleServiceClient contentBundleServiceClient =
+   *     ContentBundleServiceClient.create()) {
+   *   ListContentBundlesRequest request =
+   *       ListContentBundlesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (ContentBundle element :
+   *       contentBundleServiceClient.listContentBundles(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 ListContentBundlesPagedResponse listContentBundles( + ListContentBundlesRequest request) { + return listContentBundlesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentBundle` objects. + * + *

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 (ContentBundleServiceClient contentBundleServiceClient =
+   *     ContentBundleServiceClient.create()) {
+   *   ListContentBundlesRequest request =
+   *       ListContentBundlesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       contentBundleServiceClient.listContentBundlesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ContentBundle element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listContentBundlesPagedCallable() { + return stub.listContentBundlesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentBundle` objects. + * + *

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 (ContentBundleServiceClient contentBundleServiceClient =
+   *     ContentBundleServiceClient.create()) {
+   *   ListContentBundlesRequest request =
+   *       ListContentBundlesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListContentBundlesResponse response =
+   *         contentBundleServiceClient.listContentBundlesCallable().call(request);
+   *     for (ContentBundle element : response.getContentBundlesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listContentBundlesCallable() { + return stub.listContentBundlesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListContentBundlesPagedResponse + extends AbstractPagedListResponse< + ListContentBundlesRequest, + ListContentBundlesResponse, + ContentBundle, + ListContentBundlesPage, + ListContentBundlesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListContentBundlesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListContentBundlesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListContentBundlesPagedResponse(ListContentBundlesPage page) { + super(page, ListContentBundlesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListContentBundlesPage + extends AbstractPage< + ListContentBundlesRequest, + ListContentBundlesResponse, + ContentBundle, + ListContentBundlesPage> { + + private ListContentBundlesPage( + PageContext context, + ListContentBundlesResponse response) { + super(context, response); + } + + private static ListContentBundlesPage createEmptyPage() { + return new ListContentBundlesPage(null, null); + } + + @Override + protected ListContentBundlesPage createPage( + PageContext context, + ListContentBundlesResponse response) { + return new ListContentBundlesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListContentBundlesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListContentBundlesRequest, + ListContentBundlesResponse, + ContentBundle, + ListContentBundlesPage, + ListContentBundlesFixedSizeCollection> { + + private ListContentBundlesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListContentBundlesFixedSizeCollection createEmptyCollection() { + return new ListContentBundlesFixedSizeCollection(null, 0); + } + + @Override + protected ListContentBundlesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListContentBundlesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java new file mode 100644 index 000000000000..bbee09a8348c --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java @@ -0,0 +1,218 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ContentBundleServiceClient.ListContentBundlesPagedResponse; + +import com.google.ads.admanager.v1.stub.ContentBundleServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ContentBundleServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getContentBundle: + * + *

{@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
+ * ContentBundleServiceSettings.Builder contentBundleServiceSettingsBuilder =
+ *     ContentBundleServiceSettings.newBuilder();
+ * contentBundleServiceSettingsBuilder
+ *     .getContentBundleSettings()
+ *     .setRetrySettings(
+ *         contentBundleServiceSettingsBuilder
+ *             .getContentBundleSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * ContentBundleServiceSettings contentBundleServiceSettings =
+ *     contentBundleServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ContentBundleServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getContentBundle. */ + public UnaryCallSettings getContentBundleSettings() { + return ((ContentBundleServiceStubSettings) getStubSettings()).getContentBundleSettings(); + } + + /** Returns the object with the settings used for calls to listContentBundles. */ + public PagedCallSettings< + ListContentBundlesRequest, ListContentBundlesResponse, ListContentBundlesPagedResponse> + listContentBundlesSettings() { + return ((ContentBundleServiceStubSettings) getStubSettings()).listContentBundlesSettings(); + } + + public static final ContentBundleServiceSettings create(ContentBundleServiceStubSettings stub) + throws IOException { + return new ContentBundleServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ContentBundleServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ContentBundleServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ContentBundleServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ContentBundleServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ContentBundleServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ContentBundleServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ContentBundleServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ContentBundleServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ContentBundleServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ContentBundleServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ContentBundleServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ContentBundleServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ContentBundleServiceStubSettings.newBuilder()); + } + + public ContentBundleServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ContentBundleServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getContentBundle. */ + public UnaryCallSettings.Builder + getContentBundleSettings() { + return getStubSettingsBuilder().getContentBundleSettings(); + } + + /** Returns the builder for the settings used for calls to listContentBundles. */ + public PagedCallSettings.Builder< + ListContentBundlesRequest, ListContentBundlesResponse, ListContentBundlesPagedResponse> + listContentBundlesSettings() { + return getStubSettingsBuilder().listContentBundlesSettings(); + } + + @Override + public ContentBundleServiceSettings build() throws IOException { + return new ContentBundleServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java new file mode 100644 index 000000000000..70a3c1777d0b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java @@ -0,0 +1,596 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.ContentLabelServiceStub; +import com.google.ads.admanager.v1.stub.ContentLabelServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `ContentLabel` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ *   ContentLabelName name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]");
+ *   ContentLabel response = contentLabelServiceClient.getContentLabel(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the ContentLabelServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetContentLabel

API to retrieve a `ContentLabel` object.

+ *

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

+ *
    + *
  • getContentLabel(GetContentLabelRequest request) + *

+ *

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

+ *
    + *
  • getContentLabel(ContentLabelName name) + *

  • getContentLabel(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.

+ *
    + *
  • getContentLabelCallable() + *

+ *

ListContentLabels

API to retrieve a list of `ContentLabel` objects.

+ *

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

+ *
    + *
  • listContentLabels(ListContentLabelsRequest request) + *

+ *

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

+ *
    + *
  • listContentLabels(NetworkName parent) + *

  • listContentLabels(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.

+ *
    + *
  • listContentLabelsPagedCallable() + *

  • listContentLabelsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ContentLabelServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContentLabelServiceSettings contentLabelServiceSettings =
+ *     ContentLabelServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ContentLabelServiceClient contentLabelServiceClient =
+ *     ContentLabelServiceClient.create(contentLabelServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContentLabelServiceSettings contentLabelServiceSettings =
+ *     ContentLabelServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ContentLabelServiceClient contentLabelServiceClient =
+ *     ContentLabelServiceClient.create(contentLabelServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ContentLabelServiceClient implements BackgroundResource { + private final ContentLabelServiceSettings settings; + private final ContentLabelServiceStub stub; + + /** Constructs an instance of ContentLabelServiceClient with default settings. */ + public static final ContentLabelServiceClient create() throws IOException { + return create(ContentLabelServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ContentLabelServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ContentLabelServiceClient create(ContentLabelServiceSettings settings) + throws IOException { + return new ContentLabelServiceClient(settings); + } + + /** + * Constructs an instance of ContentLabelServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(ContentLabelServiceSettings). + */ + public static final ContentLabelServiceClient create(ContentLabelServiceStub stub) { + return new ContentLabelServiceClient(stub); + } + + /** + * Constructs an instance of ContentLabelServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected ContentLabelServiceClient(ContentLabelServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ContentLabelServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ContentLabelServiceClient(ContentLabelServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ContentLabelServiceSettings getSettings() { + return settings; + } + + public ContentLabelServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ContentLabel` object. + * + *

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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+   *   ContentLabelName name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]");
+   *   ContentLabel response = contentLabelServiceClient.getContentLabel(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ContentLabel. Format: + * `networks/{network_code}/contentLabels/{content_label_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ContentLabel getContentLabel(ContentLabelName name) { + GetContentLabelRequest request = + GetContentLabelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getContentLabel(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ContentLabel` object. + * + *

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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+   *   String name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString();
+   *   ContentLabel response = contentLabelServiceClient.getContentLabel(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ContentLabel. Format: + * `networks/{network_code}/contentLabels/{content_label_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ContentLabel getContentLabel(String name) { + GetContentLabelRequest request = GetContentLabelRequest.newBuilder().setName(name).build(); + return getContentLabel(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ContentLabel` object. + * + *

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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+   *   GetContentLabelRequest request =
+   *       GetContentLabelRequest.newBuilder()
+   *           .setName(ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString())
+   *           .build();
+   *   ContentLabel response = contentLabelServiceClient.getContentLabel(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 ContentLabel getContentLabel(GetContentLabelRequest request) { + return getContentLabelCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ContentLabel` object. + * + *

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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+   *   GetContentLabelRequest request =
+   *       GetContentLabelRequest.newBuilder()
+   *           .setName(ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       contentLabelServiceClient.getContentLabelCallable().futureCall(request);
+   *   // Do something.
+   *   ContentLabel response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getContentLabelCallable() { + return stub.getContentLabelCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentLabel` objects. + * + *

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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (ContentLabel element :
+   *       contentLabelServiceClient.listContentLabels(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of ContentLabels. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContentLabelsPagedResponse listContentLabels(NetworkName parent) { + ListContentLabelsRequest request = + ListContentLabelsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listContentLabels(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentLabel` objects. + * + *

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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (ContentLabel element :
+   *       contentLabelServiceClient.listContentLabels(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of ContentLabels. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContentLabelsPagedResponse listContentLabels(String parent) { + ListContentLabelsRequest request = + ListContentLabelsRequest.newBuilder().setParent(parent).build(); + return listContentLabels(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentLabel` objects. + * + *

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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+   *   ListContentLabelsRequest request =
+   *       ListContentLabelsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (ContentLabel element :
+   *       contentLabelServiceClient.listContentLabels(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 ListContentLabelsPagedResponse listContentLabels(ListContentLabelsRequest request) { + return listContentLabelsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentLabel` objects. + * + *

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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+   *   ListContentLabelsRequest request =
+   *       ListContentLabelsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       contentLabelServiceClient.listContentLabelsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ContentLabel element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listContentLabelsPagedCallable() { + return stub.listContentLabelsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ContentLabel` objects. + * + *

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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+   *   ListContentLabelsRequest request =
+   *       ListContentLabelsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListContentLabelsResponse response =
+   *         contentLabelServiceClient.listContentLabelsCallable().call(request);
+   *     for (ContentLabel element : response.getContentLabelsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listContentLabelsCallable() { + return stub.listContentLabelsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListContentLabelsPagedResponse + extends AbstractPagedListResponse< + ListContentLabelsRequest, + ListContentLabelsResponse, + ContentLabel, + ListContentLabelsPage, + ListContentLabelsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListContentLabelsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListContentLabelsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListContentLabelsPagedResponse(ListContentLabelsPage page) { + super(page, ListContentLabelsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListContentLabelsPage + extends AbstractPage< + ListContentLabelsRequest, + ListContentLabelsResponse, + ContentLabel, + ListContentLabelsPage> { + + private ListContentLabelsPage( + PageContext context, + ListContentLabelsResponse response) { + super(context, response); + } + + private static ListContentLabelsPage createEmptyPage() { + return new ListContentLabelsPage(null, null); + } + + @Override + protected ListContentLabelsPage createPage( + PageContext context, + ListContentLabelsResponse response) { + return new ListContentLabelsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListContentLabelsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListContentLabelsRequest, + ListContentLabelsResponse, + ContentLabel, + ListContentLabelsPage, + ListContentLabelsFixedSizeCollection> { + + private ListContentLabelsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListContentLabelsFixedSizeCollection createEmptyCollection() { + return new ListContentLabelsFixedSizeCollection(null, 0); + } + + @Override + protected ListContentLabelsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListContentLabelsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceSettings.java new file mode 100644 index 000000000000..f515d34a3ddb --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceSettings.java @@ -0,0 +1,217 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ContentLabelServiceClient.ListContentLabelsPagedResponse; + +import com.google.ads.admanager.v1.stub.ContentLabelServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ContentLabelServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getContentLabel: + * + *

{@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
+ * ContentLabelServiceSettings.Builder contentLabelServiceSettingsBuilder =
+ *     ContentLabelServiceSettings.newBuilder();
+ * contentLabelServiceSettingsBuilder
+ *     .getContentLabelSettings()
+ *     .setRetrySettings(
+ *         contentLabelServiceSettingsBuilder
+ *             .getContentLabelSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * ContentLabelServiceSettings contentLabelServiceSettings =
+ *     contentLabelServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ContentLabelServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getContentLabel. */ + public UnaryCallSettings getContentLabelSettings() { + return ((ContentLabelServiceStubSettings) getStubSettings()).getContentLabelSettings(); + } + + /** Returns the object with the settings used for calls to listContentLabels. */ + public PagedCallSettings< + ListContentLabelsRequest, ListContentLabelsResponse, ListContentLabelsPagedResponse> + listContentLabelsSettings() { + return ((ContentLabelServiceStubSettings) getStubSettings()).listContentLabelsSettings(); + } + + public static final ContentLabelServiceSettings create(ContentLabelServiceStubSettings stub) + throws IOException { + return new ContentLabelServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ContentLabelServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ContentLabelServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ContentLabelServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ContentLabelServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ContentLabelServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ContentLabelServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ContentLabelServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ContentLabelServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ContentLabelServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ContentLabelServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ContentLabelServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ContentLabelServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ContentLabelServiceStubSettings.newBuilder()); + } + + public ContentLabelServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ContentLabelServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getContentLabel. */ + public UnaryCallSettings.Builder + getContentLabelSettings() { + return getStubSettingsBuilder().getContentLabelSettings(); + } + + /** Returns the builder for the settings used for calls to listContentLabels. */ + public PagedCallSettings.Builder< + ListContentLabelsRequest, ListContentLabelsResponse, ListContentLabelsPagedResponse> + listContentLabelsSettings() { + return getStubSettingsBuilder().listContentLabelsSettings(); + } + + @Override + public ContentLabelServiceSettings build() throws IOException { + return new ContentLabelServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java new file mode 100644 index 000000000000..1882b40b73e9 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java @@ -0,0 +1,579 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.ContentServiceStub; +import com.google.ads.admanager.v1.stub.ContentServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `Content` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ *   ContentName name = ContentName.of("[NETWORK_CODE]", "[CONTENT]");
+ *   Content response = contentServiceClient.getContent(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the ContentServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetContent

API to retrieve a `Content` object.

+ *

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

+ *
    + *
  • getContent(GetContentRequest request) + *

+ *

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

+ *
    + *
  • getContent(ContentName name) + *

  • getContent(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.

+ *
    + *
  • getContentCallable() + *

+ *

ListContent

API to retrieve a list of `Content` objects.

+ *

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

+ *
    + *
  • listContent(ListContentRequest request) + *

+ *

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

+ *
    + *
  • listContent(NetworkName parent) + *

  • listContent(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.

+ *
    + *
  • listContentPagedCallable() + *

  • listContentCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ContentServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContentServiceSettings contentServiceSettings =
+ *     ContentServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ContentServiceClient contentServiceClient = ContentServiceClient.create(contentServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContentServiceSettings contentServiceSettings =
+ *     ContentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ContentServiceClient contentServiceClient = ContentServiceClient.create(contentServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ContentServiceClient implements BackgroundResource { + private final ContentServiceSettings settings; + private final ContentServiceStub stub; + + /** Constructs an instance of ContentServiceClient with default settings. */ + public static final ContentServiceClient create() throws IOException { + return create(ContentServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ContentServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ContentServiceClient create(ContentServiceSettings settings) + throws IOException { + return new ContentServiceClient(settings); + } + + /** + * Constructs an instance of ContentServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(ContentServiceSettings). + */ + public static final ContentServiceClient create(ContentServiceStub stub) { + return new ContentServiceClient(stub); + } + + /** + * Constructs an instance of ContentServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ContentServiceClient(ContentServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ContentServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ContentServiceClient(ContentServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ContentServiceSettings getSettings() { + return settings; + } + + public ContentServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Content` object. + * + *

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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+   *   ContentName name = ContentName.of("[NETWORK_CODE]", "[CONTENT]");
+   *   Content response = contentServiceClient.getContent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Content. Format: + * `networks/{network_code}/content/{content_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Content getContent(ContentName name) { + GetContentRequest request = + GetContentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Content` object. + * + *

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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+   *   String name = ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString();
+   *   Content response = contentServiceClient.getContent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Content. Format: + * `networks/{network_code}/content/{content_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Content getContent(String name) { + GetContentRequest request = GetContentRequest.newBuilder().setName(name).build(); + return getContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Content` object. + * + *

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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+   *   GetContentRequest request =
+   *       GetContentRequest.newBuilder()
+   *           .setName(ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString())
+   *           .build();
+   *   Content response = contentServiceClient.getContent(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 Content getContent(GetContentRequest request) { + return getContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Content` object. + * + *

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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+   *   GetContentRequest request =
+   *       GetContentRequest.newBuilder()
+   *           .setName(ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString())
+   *           .build();
+   *   ApiFuture future = contentServiceClient.getContentCallable().futureCall(request);
+   *   // Do something.
+   *   Content response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getContentCallable() { + return stub.getContentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Content` objects. + * + *

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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (Content element : contentServiceClient.listContent(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of Content. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContentPagedResponse listContent(NetworkName parent) { + ListContentRequest request = + ListContentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Content` objects. + * + *

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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (Content element : contentServiceClient.listContent(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of Content. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContentPagedResponse listContent(String parent) { + ListContentRequest request = ListContentRequest.newBuilder().setParent(parent).build(); + return listContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Content` objects. + * + *

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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+   *   ListContentRequest request =
+   *       ListContentRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (Content element : contentServiceClient.listContent(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 ListContentPagedResponse listContent(ListContentRequest request) { + return listContentPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Content` objects. + * + *

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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+   *   ListContentRequest request =
+   *       ListContentRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       contentServiceClient.listContentPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Content element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listContentPagedCallable() { + return stub.listContentPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Content` objects. + * + *

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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+   *   ListContentRequest request =
+   *       ListContentRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListContentResponse response = contentServiceClient.listContentCallable().call(request);
+   *     for (Content element : response.getContentList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listContentCallable() { + return stub.listContentCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListContentPagedResponse + extends AbstractPagedListResponse< + ListContentRequest, + ListContentResponse, + Content, + ListContentPage, + ListContentFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListContentPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListContentPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListContentPagedResponse(ListContentPage page) { + super(page, ListContentFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListContentPage + extends AbstractPage { + + private ListContentPage( + PageContext context, + ListContentResponse response) { + super(context, response); + } + + private static ListContentPage createEmptyPage() { + return new ListContentPage(null, null); + } + + @Override + protected ListContentPage createPage( + PageContext context, + ListContentResponse response) { + return new ListContentPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListContentFixedSizeCollection + extends AbstractFixedSizeCollection< + ListContentRequest, + ListContentResponse, + Content, + ListContentPage, + ListContentFixedSizeCollection> { + + private ListContentFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListContentFixedSizeCollection createEmptyCollection() { + return new ListContentFixedSizeCollection(null, 0); + } + + @Override + protected ListContentFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListContentFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceSettings.java new file mode 100644 index 000000000000..596a3d1de03d --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceSettings.java @@ -0,0 +1,214 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ContentServiceClient.ListContentPagedResponse; + +import com.google.ads.admanager.v1.stub.ContentServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ContentServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getContent: + * + *

{@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
+ * ContentServiceSettings.Builder contentServiceSettingsBuilder =
+ *     ContentServiceSettings.newBuilder();
+ * contentServiceSettingsBuilder
+ *     .getContentSettings()
+ *     .setRetrySettings(
+ *         contentServiceSettingsBuilder
+ *             .getContentSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * ContentServiceSettings contentServiceSettings = contentServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ContentServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getContent. */ + public UnaryCallSettings getContentSettings() { + return ((ContentServiceStubSettings) getStubSettings()).getContentSettings(); + } + + /** Returns the object with the settings used for calls to listContent. */ + public PagedCallSettings + listContentSettings() { + return ((ContentServiceStubSettings) getStubSettings()).listContentSettings(); + } + + public static final ContentServiceSettings create(ContentServiceStubSettings stub) + throws IOException { + return new ContentServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ContentServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ContentServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ContentServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ContentServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ContentServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ContentServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ContentServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ContentServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ContentServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ContentServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ContentServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ContentServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ContentServiceStubSettings.newBuilder()); + } + + public ContentServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ContentServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getContent. */ + public UnaryCallSettings.Builder getContentSettings() { + return getStubSettingsBuilder().getContentSettings(); + } + + /** Returns the builder for the settings used for calls to listContent. */ + public PagedCallSettings.Builder< + ListContentRequest, ListContentResponse, ListContentPagedResponse> + listContentSettings() { + return getStubSettingsBuilder().listContentSettings(); + } + + @Override + public ContentServiceSettings build() throws IOException { + return new ContentServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java new file mode 100644 index 000000000000..be22650d682e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java @@ -0,0 +1,616 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.CreativeTemplateServiceStub; +import com.google.ads.admanager.v1.stub.CreativeTemplateServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `CreativeTemplate` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+ *     CreativeTemplateServiceClient.create()) {
+ *   CreativeTemplateName name = CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]");
+ *   CreativeTemplate response = creativeTemplateServiceClient.getCreativeTemplate(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the CreativeTemplateServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetCreativeTemplate

API to retrieve a `CreativeTemplate` object.

+ *

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

+ *
    + *
  • getCreativeTemplate(GetCreativeTemplateRequest request) + *

+ *

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

+ *
    + *
  • getCreativeTemplate(CreativeTemplateName name) + *

  • getCreativeTemplate(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.

+ *
    + *
  • getCreativeTemplateCallable() + *

+ *

ListCreativeTemplates

API to retrieve a list of `CreativeTemplate` objects.

+ *

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

+ *
    + *
  • listCreativeTemplates(ListCreativeTemplatesRequest request) + *

+ *

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

+ *
    + *
  • listCreativeTemplates(NetworkName parent) + *

  • listCreativeTemplates(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.

+ *
    + *
  • listCreativeTemplatesPagedCallable() + *

  • listCreativeTemplatesCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * CreativeTemplateServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CreativeTemplateServiceSettings creativeTemplateServiceSettings =
+ *     CreativeTemplateServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CreativeTemplateServiceClient creativeTemplateServiceClient =
+ *     CreativeTemplateServiceClient.create(creativeTemplateServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CreativeTemplateServiceSettings creativeTemplateServiceSettings =
+ *     CreativeTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CreativeTemplateServiceClient creativeTemplateServiceClient =
+ *     CreativeTemplateServiceClient.create(creativeTemplateServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class CreativeTemplateServiceClient implements BackgroundResource { + private final CreativeTemplateServiceSettings settings; + private final CreativeTemplateServiceStub stub; + + /** Constructs an instance of CreativeTemplateServiceClient with default settings. */ + public static final CreativeTemplateServiceClient create() throws IOException { + return create(CreativeTemplateServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CreativeTemplateServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CreativeTemplateServiceClient create(CreativeTemplateServiceSettings settings) + throws IOException { + return new CreativeTemplateServiceClient(settings); + } + + /** + * Constructs an instance of CreativeTemplateServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(CreativeTemplateServiceSettings). + */ + public static final CreativeTemplateServiceClient create(CreativeTemplateServiceStub stub) { + return new CreativeTemplateServiceClient(stub); + } + + /** + * Constructs an instance of CreativeTemplateServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected CreativeTemplateServiceClient(CreativeTemplateServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((CreativeTemplateServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected CreativeTemplateServiceClient(CreativeTemplateServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CreativeTemplateServiceSettings getSettings() { + return settings; + } + + public CreativeTemplateServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CreativeTemplate` object. + * + *

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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+   *     CreativeTemplateServiceClient.create()) {
+   *   CreativeTemplateName name = CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]");
+   *   CreativeTemplate response = creativeTemplateServiceClient.getCreativeTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the CreativeTemplate. Format: + * `networks/{network_code}/creativeTemplates/{creative_template_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CreativeTemplate getCreativeTemplate(CreativeTemplateName name) { + GetCreativeTemplateRequest request = + GetCreativeTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCreativeTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CreativeTemplate` object. + * + *

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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+   *     CreativeTemplateServiceClient.create()) {
+   *   String name = CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]").toString();
+   *   CreativeTemplate response = creativeTemplateServiceClient.getCreativeTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the CreativeTemplate. Format: + * `networks/{network_code}/creativeTemplates/{creative_template_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CreativeTemplate getCreativeTemplate(String name) { + GetCreativeTemplateRequest request = + GetCreativeTemplateRequest.newBuilder().setName(name).build(); + return getCreativeTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CreativeTemplate` object. + * + *

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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+   *     CreativeTemplateServiceClient.create()) {
+   *   GetCreativeTemplateRequest request =
+   *       GetCreativeTemplateRequest.newBuilder()
+   *           .setName(CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]").toString())
+   *           .build();
+   *   CreativeTemplate response = creativeTemplateServiceClient.getCreativeTemplate(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 CreativeTemplate getCreativeTemplate(GetCreativeTemplateRequest request) { + return getCreativeTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `CreativeTemplate` object. + * + *

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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+   *     CreativeTemplateServiceClient.create()) {
+   *   GetCreativeTemplateRequest request =
+   *       GetCreativeTemplateRequest.newBuilder()
+   *           .setName(CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       creativeTemplateServiceClient.getCreativeTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   CreativeTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCreativeTemplateCallable() { + return stub.getCreativeTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CreativeTemplate` objects. + * + *

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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+   *     CreativeTemplateServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (CreativeTemplate element :
+   *       creativeTemplateServiceClient.listCreativeTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of CreativeTemplates. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCreativeTemplatesPagedResponse listCreativeTemplates(NetworkName parent) { + ListCreativeTemplatesRequest request = + ListCreativeTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCreativeTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CreativeTemplate` objects. + * + *

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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+   *     CreativeTemplateServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (CreativeTemplate element :
+   *       creativeTemplateServiceClient.listCreativeTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of CreativeTemplates. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCreativeTemplatesPagedResponse listCreativeTemplates(String parent) { + ListCreativeTemplatesRequest request = + ListCreativeTemplatesRequest.newBuilder().setParent(parent).build(); + return listCreativeTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CreativeTemplate` objects. + * + *

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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+   *     CreativeTemplateServiceClient.create()) {
+   *   ListCreativeTemplatesRequest request =
+   *       ListCreativeTemplatesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (CreativeTemplate element :
+   *       creativeTemplateServiceClient.listCreativeTemplates(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 ListCreativeTemplatesPagedResponse listCreativeTemplates( + ListCreativeTemplatesRequest request) { + return listCreativeTemplatesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CreativeTemplate` objects. + * + *

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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+   *     CreativeTemplateServiceClient.create()) {
+   *   ListCreativeTemplatesRequest request =
+   *       ListCreativeTemplatesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       creativeTemplateServiceClient.listCreativeTemplatesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CreativeTemplate element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCreativeTemplatesPagedCallable() { + return stub.listCreativeTemplatesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `CreativeTemplate` objects. + * + *

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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
+   *     CreativeTemplateServiceClient.create()) {
+   *   ListCreativeTemplatesRequest request =
+   *       ListCreativeTemplatesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListCreativeTemplatesResponse response =
+   *         creativeTemplateServiceClient.listCreativeTemplatesCallable().call(request);
+   *     for (CreativeTemplate element : response.getCreativeTemplatesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCreativeTemplatesCallable() { + return stub.listCreativeTemplatesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListCreativeTemplatesPagedResponse + extends AbstractPagedListResponse< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + CreativeTemplate, + ListCreativeTemplatesPage, + ListCreativeTemplatesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCreativeTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCreativeTemplatesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCreativeTemplatesPagedResponse(ListCreativeTemplatesPage page) { + super(page, ListCreativeTemplatesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCreativeTemplatesPage + extends AbstractPage< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + CreativeTemplate, + ListCreativeTemplatesPage> { + + private ListCreativeTemplatesPage( + PageContext + context, + ListCreativeTemplatesResponse response) { + super(context, response); + } + + private static ListCreativeTemplatesPage createEmptyPage() { + return new ListCreativeTemplatesPage(null, null); + } + + @Override + protected ListCreativeTemplatesPage createPage( + PageContext + context, + ListCreativeTemplatesResponse response) { + return new ListCreativeTemplatesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCreativeTemplatesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + CreativeTemplate, + ListCreativeTemplatesPage, + ListCreativeTemplatesFixedSizeCollection> { + + private ListCreativeTemplatesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCreativeTemplatesFixedSizeCollection createEmptyCollection() { + return new ListCreativeTemplatesFixedSizeCollection(null, 0); + } + + @Override + protected ListCreativeTemplatesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCreativeTemplatesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceSettings.java new file mode 100644 index 000000000000..029d29c330c7 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceSettings.java @@ -0,0 +1,225 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.CreativeTemplateServiceClient.ListCreativeTemplatesPagedResponse; + +import com.google.ads.admanager.v1.stub.CreativeTemplateServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CreativeTemplateServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getCreativeTemplate: + * + *

{@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
+ * CreativeTemplateServiceSettings.Builder creativeTemplateServiceSettingsBuilder =
+ *     CreativeTemplateServiceSettings.newBuilder();
+ * creativeTemplateServiceSettingsBuilder
+ *     .getCreativeTemplateSettings()
+ *     .setRetrySettings(
+ *         creativeTemplateServiceSettingsBuilder
+ *             .getCreativeTemplateSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * CreativeTemplateServiceSettings creativeTemplateServiceSettings =
+ *     creativeTemplateServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class CreativeTemplateServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getCreativeTemplate. */ + public UnaryCallSettings + getCreativeTemplateSettings() { + return ((CreativeTemplateServiceStubSettings) getStubSettings()).getCreativeTemplateSettings(); + } + + /** Returns the object with the settings used for calls to listCreativeTemplates. */ + public PagedCallSettings< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + ListCreativeTemplatesPagedResponse> + listCreativeTemplatesSettings() { + return ((CreativeTemplateServiceStubSettings) getStubSettings()) + .listCreativeTemplatesSettings(); + } + + public static final CreativeTemplateServiceSettings create( + CreativeTemplateServiceStubSettings stub) throws IOException { + return new CreativeTemplateServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CreativeTemplateServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CreativeTemplateServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CreativeTemplateServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CreativeTemplateServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CreativeTemplateServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CreativeTemplateServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CreativeTemplateServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CreativeTemplateServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CreativeTemplateServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(CreativeTemplateServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(CreativeTemplateServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CreativeTemplateServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(CreativeTemplateServiceStubSettings.newBuilder()); + } + + public CreativeTemplateServiceStubSettings.Builder getStubSettingsBuilder() { + return ((CreativeTemplateServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getCreativeTemplate. */ + public UnaryCallSettings.Builder + getCreativeTemplateSettings() { + return getStubSettingsBuilder().getCreativeTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to listCreativeTemplates. */ + public PagedCallSettings.Builder< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + ListCreativeTemplatesPagedResponse> + listCreativeTemplatesSettings() { + return getStubSettingsBuilder().listCreativeTemplatesSettings(); + } + + @Override + public CreativeTemplateServiceSettings build() throws IOException { + return new CreativeTemplateServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java index d7641e892ad9..2b18850e86ce 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -101,6 +102,113 @@ * * * + * + *

CreateCustomField + *

API to create a `CustomField` object. + * + *

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

+ *
    + *
  • createCustomField(CreateCustomFieldRequest request) + *

+ *

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

+ *
    + *
  • createCustomField(NetworkName parent, CustomField customField) + *

  • createCustomField(String parent, CustomField customField) + *

+ *

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

+ *
    + *
  • createCustomFieldCallable() + *

+ * + * + * + *

BatchCreateCustomFields + *

API to batch create `CustomField` objects. + * + *

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

+ *
    + *
  • batchCreateCustomFields(NetworkName parent, List<CreateCustomFieldRequest> requests) + *

  • batchCreateCustomFields(String parent, List<CreateCustomFieldRequest> requests) + *

  • batchCreateCustomFields(BatchCreateCustomFieldsRequest request) + *

+ *

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

+ *
    + *
  • batchCreateCustomFieldsCallable() + *

+ * + * + * + *

UpdateCustomField + *

API to update a `CustomField` object. + * + *

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

+ *
    + *
  • updateCustomField(UpdateCustomFieldRequest request) + *

+ *

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

+ *
    + *
  • updateCustomField(CustomField customField, 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.

+ *
    + *
  • updateCustomFieldCallable() + *

+ * + * + * + *

BatchUpdateCustomFields + *

API to batch update `CustomField` objects. + * + *

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

+ *
    + *
  • batchUpdateCustomFields(NetworkName parent, List<UpdateCustomFieldRequest> requests) + *

  • batchUpdateCustomFields(String parent, List<UpdateCustomFieldRequest> requests) + *

  • batchUpdateCustomFields(BatchUpdateCustomFieldsRequest request) + *

+ *

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

+ *
    + *
  • batchUpdateCustomFieldsCallable() + *

+ * + * + * + *

BatchActivateCustomFields + *

Activates a list of `CustomField` objects. + * + *

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

+ *
    + *
  • batchActivateCustomFields(BatchActivateCustomFieldsRequest request) + *

+ *

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

+ *
    + *
  • batchActivateCustomFields(NetworkName parent, List<String> names) + *

  • batchActivateCustomFields(String parent, List<String> names) + *

+ *

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

+ *
    + *
  • batchActivateCustomFieldsCallable() + *

+ * + * + * + *

BatchDeactivateCustomFields + *

Deactivates a list of `CustomField` objects. + * + *

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

+ *
    + *
  • batchDeactivateCustomFields(BatchDeactivateCustomFieldsRequest request) + *

+ *

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

+ *
    + *
  • batchDeactivateCustomFields(NetworkName parent, List<String> names) + *

  • batchDeactivateCustomFields(String parent, List<String> names) + *

+ *

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

+ *
    + *
  • batchDeactivateCustomFieldsCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -481,6 +589,748 @@ public final ListCustomFieldsPagedResponse listCustomFields(ListCustomFieldsRequ return stub.listCustomFieldsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `CustomField` object. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   CustomField customField = CustomField.newBuilder().build();
+   *   CustomField response = customFieldServiceClient.createCustomField(parent, customField);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `CustomField` will be created. Format: + * `networks/{network_code}` + * @param customField Required. The `CustomField` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomField createCustomField(NetworkName parent, CustomField customField) { + CreateCustomFieldRequest request = + CreateCustomFieldRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCustomField(customField) + .build(); + return createCustomField(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `CustomField` object. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   CustomField customField = CustomField.newBuilder().build();
+   *   CustomField response = customFieldServiceClient.createCustomField(parent, customField);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `CustomField` will be created. Format: + * `networks/{network_code}` + * @param customField Required. The `CustomField` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomField createCustomField(String parent, CustomField customField) { + CreateCustomFieldRequest request = + CreateCustomFieldRequest.newBuilder().setParent(parent).setCustomField(customField).build(); + return createCustomField(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `CustomField` object. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   CreateCustomFieldRequest request =
+   *       CreateCustomFieldRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setCustomField(CustomField.newBuilder().build())
+   *           .build();
+   *   CustomField response = customFieldServiceClient.createCustomField(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 CustomField createCustomField(CreateCustomFieldRequest request) { + return createCustomFieldCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `CustomField` object. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   CreateCustomFieldRequest request =
+   *       CreateCustomFieldRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setCustomField(CustomField.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       customFieldServiceClient.createCustomFieldCallable().futureCall(request);
+   *   // Do something.
+   *   CustomField response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createCustomFieldCallable() { + return stub.createCustomFieldCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchCreateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchCreateCustomFields(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `CustomFields` will be created. Format: + * `networks/{network_code}` The parent field in the CreateCustomFieldRequest must match this + * field. + * @param requests Required. The `CustomField` objects to create. A maximum of 100 objects can be + * created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateCustomFieldsResponse batchCreateCustomFields( + NetworkName parent, List requests) { + BatchCreateCustomFieldsRequest request = + BatchCreateCustomFieldsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchCreateCustomFields(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchCreateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchCreateCustomFields(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `CustomFields` will be created. Format: + * `networks/{network_code}` The parent field in the CreateCustomFieldRequest must match this + * field. + * @param requests Required. The `CustomField` objects to create. A maximum of 100 objects can be + * created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateCustomFieldsResponse batchCreateCustomFields( + String parent, List requests) { + BatchCreateCustomFieldsRequest request = + BatchCreateCustomFieldsRequest.newBuilder() + .setParent(parent) + .addAllRequests(requests) + .build(); + return batchCreateCustomFields(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   BatchCreateCustomFieldsRequest request =
+   *       BatchCreateCustomFieldsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchCreateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchCreateCustomFields(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 BatchCreateCustomFieldsResponse batchCreateCustomFields( + BatchCreateCustomFieldsRequest request) { + return batchCreateCustomFieldsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   BatchCreateCustomFieldsRequest request =
+   *       BatchCreateCustomFieldsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       customFieldServiceClient.batchCreateCustomFieldsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchCreateCustomFieldsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchCreateCustomFieldsCallable() { + return stub.batchCreateCustomFieldsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `CustomField` object. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   CustomField customField = CustomField.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   CustomField response = customFieldServiceClient.updateCustomField(customField, updateMask);
+   * }
+   * }
+ * + * @param customField Required. The `CustomField` to update. + *

The `CustomField`'s `name` is used to identify the `CustomField` to update. + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomField updateCustomField(CustomField customField, FieldMask updateMask) { + UpdateCustomFieldRequest request = + UpdateCustomFieldRequest.newBuilder() + .setCustomField(customField) + .setUpdateMask(updateMask) + .build(); + return updateCustomField(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `CustomField` object. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   UpdateCustomFieldRequest request =
+   *       UpdateCustomFieldRequest.newBuilder()
+   *           .setCustomField(CustomField.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   CustomField response = customFieldServiceClient.updateCustomField(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 CustomField updateCustomField(UpdateCustomFieldRequest request) { + return updateCustomFieldCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `CustomField` object. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   UpdateCustomFieldRequest request =
+   *       UpdateCustomFieldRequest.newBuilder()
+   *           .setCustomField(CustomField.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       customFieldServiceClient.updateCustomFieldCallable().futureCall(request);
+   *   // Do something.
+   *   CustomField response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateCustomFieldCallable() { + return stub.updateCustomFieldCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchUpdateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchUpdateCustomFields(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `CustomFields` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateCustomFieldRequest must match this + * field. + * @param requests Required. The `CustomField` objects to update. A maximum of 100 objects can be + * updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateCustomFieldsResponse batchUpdateCustomFields( + NetworkName parent, List requests) { + BatchUpdateCustomFieldsRequest request = + BatchUpdateCustomFieldsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchUpdateCustomFields(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchUpdateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchUpdateCustomFields(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `CustomFields` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateCustomFieldRequest must match this + * field. + * @param requests Required. The `CustomField` objects to update. A maximum of 100 objects can be + * updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateCustomFieldsResponse batchUpdateCustomFields( + String parent, List requests) { + BatchUpdateCustomFieldsRequest request = + BatchUpdateCustomFieldsRequest.newBuilder() + .setParent(parent) + .addAllRequests(requests) + .build(); + return batchUpdateCustomFields(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   BatchUpdateCustomFieldsRequest request =
+   *       BatchUpdateCustomFieldsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchUpdateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchUpdateCustomFields(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 BatchUpdateCustomFieldsResponse batchUpdateCustomFields( + BatchUpdateCustomFieldsRequest request) { + return batchUpdateCustomFieldsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   BatchUpdateCustomFieldsRequest request =
+   *       BatchUpdateCustomFieldsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       customFieldServiceClient.batchUpdateCustomFieldsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchUpdateCustomFieldsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchUpdateCustomFieldsCallable() { + return stub.batchUpdateCustomFieldsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates a list of `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchActivateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchActivateCustomFields(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `CustomField` objects to activate. Format: + * `networks/{network_code}/customFields/{custom_field_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivateCustomFieldsResponse batchActivateCustomFields( + NetworkName parent, List names) { + BatchActivateCustomFieldsRequest request = + BatchActivateCustomFieldsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchActivateCustomFields(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates a list of `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchActivateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchActivateCustomFields(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `CustomField` objects to activate. Format: + * `networks/{network_code}/customFields/{custom_field_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivateCustomFieldsResponse batchActivateCustomFields( + String parent, List names) { + BatchActivateCustomFieldsRequest request = + BatchActivateCustomFieldsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchActivateCustomFields(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates a list of `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   BatchActivateCustomFieldsRequest request =
+   *       BatchActivateCustomFieldsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchActivateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchActivateCustomFields(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 BatchActivateCustomFieldsResponse batchActivateCustomFields( + BatchActivateCustomFieldsRequest request) { + return batchActivateCustomFieldsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates a list of `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   BatchActivateCustomFieldsRequest request =
+   *       BatchActivateCustomFieldsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       customFieldServiceClient.batchActivateCustomFieldsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchActivateCustomFieldsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchActivateCustomFieldsCallable() { + return stub.batchActivateCustomFieldsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchDeactivateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchDeactivateCustomFields(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `CustomField` objects to deactivate. Format: + * `networks/{network_code}/customFields/{custom_field_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateCustomFieldsResponse batchDeactivateCustomFields( + NetworkName parent, List names) { + BatchDeactivateCustomFieldsRequest request = + BatchDeactivateCustomFieldsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchDeactivateCustomFields(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchDeactivateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchDeactivateCustomFields(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `CustomField` objects to deactivate. Format: + * `networks/{network_code}/customFields/{custom_field_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateCustomFieldsResponse batchDeactivateCustomFields( + String parent, List names) { + BatchDeactivateCustomFieldsRequest request = + BatchDeactivateCustomFieldsRequest.newBuilder() + .setParent(parent) + .addAllNames(names) + .build(); + return batchDeactivateCustomFields(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   BatchDeactivateCustomFieldsRequest request =
+   *       BatchDeactivateCustomFieldsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchDeactivateCustomFieldsResponse response =
+   *       customFieldServiceClient.batchDeactivateCustomFields(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 BatchDeactivateCustomFieldsResponse batchDeactivateCustomFields( + BatchDeactivateCustomFieldsRequest request) { + return batchDeactivateCustomFieldsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `CustomField` objects. + * + *

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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) {
+   *   BatchDeactivateCustomFieldsRequest request =
+   *       BatchDeactivateCustomFieldsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       customFieldServiceClient.batchDeactivateCustomFieldsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchDeactivateCustomFieldsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + BatchDeactivateCustomFieldsRequest, BatchDeactivateCustomFieldsResponse> + batchDeactivateCustomFieldsCallable() { + return stub.batchDeactivateCustomFieldsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceSettings.java index f586c6382249..7b5d2c0a5cd5 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceSettings.java @@ -99,6 +99,41 @@ public UnaryCallSettings getCustomFieldSetti return ((CustomFieldServiceStubSettings) getStubSettings()).listCustomFieldsSettings(); } + /** Returns the object with the settings used for calls to createCustomField. */ + public UnaryCallSettings createCustomFieldSettings() { + return ((CustomFieldServiceStubSettings) getStubSettings()).createCustomFieldSettings(); + } + + /** Returns the object with the settings used for calls to batchCreateCustomFields. */ + public UnaryCallSettings + batchCreateCustomFieldsSettings() { + return ((CustomFieldServiceStubSettings) getStubSettings()).batchCreateCustomFieldsSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomField. */ + public UnaryCallSettings updateCustomFieldSettings() { + return ((CustomFieldServiceStubSettings) getStubSettings()).updateCustomFieldSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateCustomFields. */ + public UnaryCallSettings + batchUpdateCustomFieldsSettings() { + return ((CustomFieldServiceStubSettings) getStubSettings()).batchUpdateCustomFieldsSettings(); + } + + /** Returns the object with the settings used for calls to batchActivateCustomFields. */ + public UnaryCallSettings + batchActivateCustomFieldsSettings() { + return ((CustomFieldServiceStubSettings) getStubSettings()).batchActivateCustomFieldsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeactivateCustomFields. */ + public UnaryCallSettings + batchDeactivateCustomFieldsSettings() { + return ((CustomFieldServiceStubSettings) getStubSettings()) + .batchDeactivateCustomFieldsSettings(); + } + public static final CustomFieldServiceSettings create(CustomFieldServiceStubSettings stub) throws IOException { return new CustomFieldServiceSettings.Builder(stub.toBuilder()).build(); @@ -208,6 +243,46 @@ public UnaryCallSettings.Builder getCustomFi return getStubSettingsBuilder().listCustomFieldsSettings(); } + /** Returns the builder for the settings used for calls to createCustomField. */ + public UnaryCallSettings.Builder + createCustomFieldSettings() { + return getStubSettingsBuilder().createCustomFieldSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateCustomFields. */ + public UnaryCallSettings.Builder< + BatchCreateCustomFieldsRequest, BatchCreateCustomFieldsResponse> + batchCreateCustomFieldsSettings() { + return getStubSettingsBuilder().batchCreateCustomFieldsSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomField. */ + public UnaryCallSettings.Builder + updateCustomFieldSettings() { + return getStubSettingsBuilder().updateCustomFieldSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateCustomFields. */ + public UnaryCallSettings.Builder< + BatchUpdateCustomFieldsRequest, BatchUpdateCustomFieldsResponse> + batchUpdateCustomFieldsSettings() { + return getStubSettingsBuilder().batchUpdateCustomFieldsSettings(); + } + + /** Returns the builder for the settings used for calls to batchActivateCustomFields. */ + public UnaryCallSettings.Builder< + BatchActivateCustomFieldsRequest, BatchActivateCustomFieldsResponse> + batchActivateCustomFieldsSettings() { + return getStubSettingsBuilder().batchActivateCustomFieldsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeactivateCustomFields. */ + public UnaryCallSettings.Builder< + BatchDeactivateCustomFieldsRequest, BatchDeactivateCustomFieldsResponse> + batchDeactivateCustomFieldsSettings() { + return getStubSettingsBuilder().batchDeactivateCustomFieldsSettings(); + } + @Override public CustomFieldServiceSettings build() throws IOException { return new CustomFieldServiceSettings(this); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClient.java new file mode 100644 index 000000000000..1c64467cf91f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClient.java @@ -0,0 +1,616 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.DeviceCapabilityServiceStub; +import com.google.ads.admanager.v1.stub.DeviceCapabilityServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `DeviceCapability` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+ *     DeviceCapabilityServiceClient.create()) {
+ *   DeviceCapabilityName name = DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]");
+ *   DeviceCapability response = deviceCapabilityServiceClient.getDeviceCapability(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the DeviceCapabilityServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetDeviceCapability

API to retrieve a `DeviceCapability` object.

+ *

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

+ *
    + *
  • getDeviceCapability(GetDeviceCapabilityRequest request) + *

+ *

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

+ *
    + *
  • getDeviceCapability(DeviceCapabilityName name) + *

  • getDeviceCapability(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.

+ *
    + *
  • getDeviceCapabilityCallable() + *

+ *

ListDeviceCapabilities

API to retrieve a list of `DeviceCapability` objects.

+ *

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

+ *
    + *
  • listDeviceCapabilities(ListDeviceCapabilitiesRequest request) + *

+ *

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

+ *
    + *
  • listDeviceCapabilities(NetworkName parent) + *

  • listDeviceCapabilities(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.

+ *
    + *
  • listDeviceCapabilitiesPagedCallable() + *

  • listDeviceCapabilitiesCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * DeviceCapabilityServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DeviceCapabilityServiceSettings deviceCapabilityServiceSettings =
+ *     DeviceCapabilityServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+ *     DeviceCapabilityServiceClient.create(deviceCapabilityServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DeviceCapabilityServiceSettings deviceCapabilityServiceSettings =
+ *     DeviceCapabilityServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+ *     DeviceCapabilityServiceClient.create(deviceCapabilityServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DeviceCapabilityServiceClient implements BackgroundResource { + private final DeviceCapabilityServiceSettings settings; + private final DeviceCapabilityServiceStub stub; + + /** Constructs an instance of DeviceCapabilityServiceClient with default settings. */ + public static final DeviceCapabilityServiceClient create() throws IOException { + return create(DeviceCapabilityServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DeviceCapabilityServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final DeviceCapabilityServiceClient create(DeviceCapabilityServiceSettings settings) + throws IOException { + return new DeviceCapabilityServiceClient(settings); + } + + /** + * Constructs an instance of DeviceCapabilityServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(DeviceCapabilityServiceSettings). + */ + public static final DeviceCapabilityServiceClient create(DeviceCapabilityServiceStub stub) { + return new DeviceCapabilityServiceClient(stub); + } + + /** + * Constructs an instance of DeviceCapabilityServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected DeviceCapabilityServiceClient(DeviceCapabilityServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((DeviceCapabilityServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected DeviceCapabilityServiceClient(DeviceCapabilityServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DeviceCapabilityServiceSettings getSettings() { + return settings; + } + + public DeviceCapabilityServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceCapability` object. + * + *

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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+   *     DeviceCapabilityServiceClient.create()) {
+   *   DeviceCapabilityName name = DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]");
+   *   DeviceCapability response = deviceCapabilityServiceClient.getDeviceCapability(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DeviceCapability. Format: + * `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeviceCapability getDeviceCapability(DeviceCapabilityName name) { + GetDeviceCapabilityRequest request = + GetDeviceCapabilityRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDeviceCapability(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceCapability` object. + * + *

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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+   *     DeviceCapabilityServiceClient.create()) {
+   *   String name = DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]").toString();
+   *   DeviceCapability response = deviceCapabilityServiceClient.getDeviceCapability(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DeviceCapability. Format: + * `networks/{network_code}/deviceCapabilities/{device_capability_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeviceCapability getDeviceCapability(String name) { + GetDeviceCapabilityRequest request = + GetDeviceCapabilityRequest.newBuilder().setName(name).build(); + return getDeviceCapability(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceCapability` object. + * + *

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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+   *     DeviceCapabilityServiceClient.create()) {
+   *   GetDeviceCapabilityRequest request =
+   *       GetDeviceCapabilityRequest.newBuilder()
+   *           .setName(DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]").toString())
+   *           .build();
+   *   DeviceCapability response = deviceCapabilityServiceClient.getDeviceCapability(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 DeviceCapability getDeviceCapability(GetDeviceCapabilityRequest request) { + return getDeviceCapabilityCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceCapability` object. + * + *

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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+   *     DeviceCapabilityServiceClient.create()) {
+   *   GetDeviceCapabilityRequest request =
+   *       GetDeviceCapabilityRequest.newBuilder()
+   *           .setName(DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       deviceCapabilityServiceClient.getDeviceCapabilityCallable().futureCall(request);
+   *   // Do something.
+   *   DeviceCapability response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getDeviceCapabilityCallable() { + return stub.getDeviceCapabilityCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCapability` objects. + * + *

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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+   *     DeviceCapabilityServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (DeviceCapability element :
+   *       deviceCapabilityServiceClient.listDeviceCapabilities(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of DeviceCapabilities. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeviceCapabilitiesPagedResponse listDeviceCapabilities(NetworkName parent) { + ListDeviceCapabilitiesRequest request = + ListDeviceCapabilitiesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeviceCapabilities(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCapability` objects. + * + *

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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+   *     DeviceCapabilityServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (DeviceCapability element :
+   *       deviceCapabilityServiceClient.listDeviceCapabilities(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of DeviceCapabilities. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeviceCapabilitiesPagedResponse listDeviceCapabilities(String parent) { + ListDeviceCapabilitiesRequest request = + ListDeviceCapabilitiesRequest.newBuilder().setParent(parent).build(); + return listDeviceCapabilities(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCapability` objects. + * + *

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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+   *     DeviceCapabilityServiceClient.create()) {
+   *   ListDeviceCapabilitiesRequest request =
+   *       ListDeviceCapabilitiesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (DeviceCapability element :
+   *       deviceCapabilityServiceClient.listDeviceCapabilities(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 ListDeviceCapabilitiesPagedResponse listDeviceCapabilities( + ListDeviceCapabilitiesRequest request) { + return listDeviceCapabilitiesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCapability` objects. + * + *

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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+   *     DeviceCapabilityServiceClient.create()) {
+   *   ListDeviceCapabilitiesRequest request =
+   *       ListDeviceCapabilitiesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       deviceCapabilityServiceClient.listDeviceCapabilitiesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DeviceCapability element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeviceCapabilitiesPagedCallable() { + return stub.listDeviceCapabilitiesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCapability` objects. + * + *

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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
+   *     DeviceCapabilityServiceClient.create()) {
+   *   ListDeviceCapabilitiesRequest request =
+   *       ListDeviceCapabilitiesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListDeviceCapabilitiesResponse response =
+   *         deviceCapabilityServiceClient.listDeviceCapabilitiesCallable().call(request);
+   *     for (DeviceCapability element : response.getDeviceCapabilitiesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeviceCapabilitiesCallable() { + return stub.listDeviceCapabilitiesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListDeviceCapabilitiesPagedResponse + extends AbstractPagedListResponse< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + DeviceCapability, + ListDeviceCapabilitiesPage, + ListDeviceCapabilitiesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDeviceCapabilitiesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDeviceCapabilitiesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDeviceCapabilitiesPagedResponse(ListDeviceCapabilitiesPage page) { + super(page, ListDeviceCapabilitiesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDeviceCapabilitiesPage + extends AbstractPage< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + DeviceCapability, + ListDeviceCapabilitiesPage> { + + private ListDeviceCapabilitiesPage( + PageContext + context, + ListDeviceCapabilitiesResponse response) { + super(context, response); + } + + private static ListDeviceCapabilitiesPage createEmptyPage() { + return new ListDeviceCapabilitiesPage(null, null); + } + + @Override + protected ListDeviceCapabilitiesPage createPage( + PageContext + context, + ListDeviceCapabilitiesResponse response) { + return new ListDeviceCapabilitiesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDeviceCapabilitiesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + DeviceCapability, + ListDeviceCapabilitiesPage, + ListDeviceCapabilitiesFixedSizeCollection> { + + private ListDeviceCapabilitiesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDeviceCapabilitiesFixedSizeCollection createEmptyCollection() { + return new ListDeviceCapabilitiesFixedSizeCollection(null, 0); + } + + @Override + protected ListDeviceCapabilitiesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDeviceCapabilitiesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceSettings.java new file mode 100644 index 000000000000..49fe0e032bf3 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceSettings.java @@ -0,0 +1,225 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.DeviceCapabilityServiceClient.ListDeviceCapabilitiesPagedResponse; + +import com.google.ads.admanager.v1.stub.DeviceCapabilityServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeviceCapabilityServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDeviceCapability: + * + *

{@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
+ * DeviceCapabilityServiceSettings.Builder deviceCapabilityServiceSettingsBuilder =
+ *     DeviceCapabilityServiceSettings.newBuilder();
+ * deviceCapabilityServiceSettingsBuilder
+ *     .getDeviceCapabilitySettings()
+ *     .setRetrySettings(
+ *         deviceCapabilityServiceSettingsBuilder
+ *             .getDeviceCapabilitySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DeviceCapabilityServiceSettings deviceCapabilityServiceSettings =
+ *     deviceCapabilityServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class DeviceCapabilityServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getDeviceCapability. */ + public UnaryCallSettings + getDeviceCapabilitySettings() { + return ((DeviceCapabilityServiceStubSettings) getStubSettings()).getDeviceCapabilitySettings(); + } + + /** Returns the object with the settings used for calls to listDeviceCapabilities. */ + public PagedCallSettings< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + ListDeviceCapabilitiesPagedResponse> + listDeviceCapabilitiesSettings() { + return ((DeviceCapabilityServiceStubSettings) getStubSettings()) + .listDeviceCapabilitiesSettings(); + } + + public static final DeviceCapabilityServiceSettings create( + DeviceCapabilityServiceStubSettings stub) throws IOException { + return new DeviceCapabilityServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DeviceCapabilityServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DeviceCapabilityServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DeviceCapabilityServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DeviceCapabilityServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DeviceCapabilityServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DeviceCapabilityServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DeviceCapabilityServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DeviceCapabilityServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DeviceCapabilityServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DeviceCapabilityServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DeviceCapabilityServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DeviceCapabilityServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DeviceCapabilityServiceStubSettings.newBuilder()); + } + + public DeviceCapabilityServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DeviceCapabilityServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getDeviceCapability. */ + public UnaryCallSettings.Builder + getDeviceCapabilitySettings() { + return getStubSettingsBuilder().getDeviceCapabilitySettings(); + } + + /** Returns the builder for the settings used for calls to listDeviceCapabilities. */ + public PagedCallSettings.Builder< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + ListDeviceCapabilitiesPagedResponse> + listDeviceCapabilitiesSettings() { + return getStubSettingsBuilder().listDeviceCapabilitiesSettings(); + } + + @Override + public DeviceCapabilityServiceSettings build() throws IOException { + return new DeviceCapabilityServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java new file mode 100644 index 000000000000..4aa601f8149e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java @@ -0,0 +1,627 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.DeviceManufacturerServiceStub; +import com.google.ads.admanager.v1.stub.DeviceManufacturerServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `DeviceManufacturer` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+ *     DeviceManufacturerServiceClient.create()) {
+ *   DeviceManufacturerName name =
+ *       DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]");
+ *   DeviceManufacturer response = deviceManufacturerServiceClient.getDeviceManufacturer(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the DeviceManufacturerServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetDeviceManufacturer

API to retrieve a `DeviceManufacturer` object.

+ *

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

+ *
    + *
  • getDeviceManufacturer(GetDeviceManufacturerRequest request) + *

+ *

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

+ *
    + *
  • getDeviceManufacturer(DeviceManufacturerName name) + *

  • getDeviceManufacturer(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.

+ *
    + *
  • getDeviceManufacturerCallable() + *

+ *

ListDeviceManufacturers

API to retrieve a list of `DeviceManufacturer` objects.

+ *

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

+ *
    + *
  • listDeviceManufacturers(ListDeviceManufacturersRequest request) + *

+ *

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

+ *
    + *
  • listDeviceManufacturers(NetworkName parent) + *

  • listDeviceManufacturers(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.

+ *
    + *
  • listDeviceManufacturersPagedCallable() + *

  • listDeviceManufacturersCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * DeviceManufacturerServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DeviceManufacturerServiceSettings deviceManufacturerServiceSettings =
+ *     DeviceManufacturerServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+ *     DeviceManufacturerServiceClient.create(deviceManufacturerServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DeviceManufacturerServiceSettings deviceManufacturerServiceSettings =
+ *     DeviceManufacturerServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+ *     DeviceManufacturerServiceClient.create(deviceManufacturerServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DeviceManufacturerServiceClient implements BackgroundResource { + private final DeviceManufacturerServiceSettings settings; + private final DeviceManufacturerServiceStub stub; + + /** Constructs an instance of DeviceManufacturerServiceClient with default settings. */ + public static final DeviceManufacturerServiceClient create() throws IOException { + return create(DeviceManufacturerServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DeviceManufacturerServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final DeviceManufacturerServiceClient create( + DeviceManufacturerServiceSettings settings) throws IOException { + return new DeviceManufacturerServiceClient(settings); + } + + /** + * Constructs an instance of DeviceManufacturerServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(DeviceManufacturerServiceSettings). + */ + public static final DeviceManufacturerServiceClient create(DeviceManufacturerServiceStub stub) { + return new DeviceManufacturerServiceClient(stub); + } + + /** + * Constructs an instance of DeviceManufacturerServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected DeviceManufacturerServiceClient(DeviceManufacturerServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((DeviceManufacturerServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected DeviceManufacturerServiceClient(DeviceManufacturerServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DeviceManufacturerServiceSettings getSettings() { + return settings; + } + + public DeviceManufacturerServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceManufacturer` object. + * + *

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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+   *     DeviceManufacturerServiceClient.create()) {
+   *   DeviceManufacturerName name =
+   *       DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]");
+   *   DeviceManufacturer response = deviceManufacturerServiceClient.getDeviceManufacturer(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DeviceManufacturer. Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeviceManufacturer getDeviceManufacturer(DeviceManufacturerName name) { + GetDeviceManufacturerRequest request = + GetDeviceManufacturerRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDeviceManufacturer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceManufacturer` object. + * + *

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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+   *     DeviceManufacturerServiceClient.create()) {
+   *   String name = DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString();
+   *   DeviceManufacturer response = deviceManufacturerServiceClient.getDeviceManufacturer(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DeviceManufacturer. Format: + * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeviceManufacturer getDeviceManufacturer(String name) { + GetDeviceManufacturerRequest request = + GetDeviceManufacturerRequest.newBuilder().setName(name).build(); + return getDeviceManufacturer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceManufacturer` object. + * + *

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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+   *     DeviceManufacturerServiceClient.create()) {
+   *   GetDeviceManufacturerRequest request =
+   *       GetDeviceManufacturerRequest.newBuilder()
+   *           .setName(
+   *               DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString())
+   *           .build();
+   *   DeviceManufacturer response = deviceManufacturerServiceClient.getDeviceManufacturer(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 DeviceManufacturer getDeviceManufacturer(GetDeviceManufacturerRequest request) { + return getDeviceManufacturerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceManufacturer` object. + * + *

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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+   *     DeviceManufacturerServiceClient.create()) {
+   *   GetDeviceManufacturerRequest request =
+   *       GetDeviceManufacturerRequest.newBuilder()
+   *           .setName(
+   *               DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       deviceManufacturerServiceClient.getDeviceManufacturerCallable().futureCall(request);
+   *   // Do something.
+   *   DeviceManufacturer response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getDeviceManufacturerCallable() { + return stub.getDeviceManufacturerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceManufacturer` objects. + * + *

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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+   *     DeviceManufacturerServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (DeviceManufacturer element :
+   *       deviceManufacturerServiceClient.listDeviceManufacturers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of DeviceManufacturers. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeviceManufacturersPagedResponse listDeviceManufacturers(NetworkName parent) { + ListDeviceManufacturersRequest request = + ListDeviceManufacturersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeviceManufacturers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceManufacturer` objects. + * + *

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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+   *     DeviceManufacturerServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (DeviceManufacturer element :
+   *       deviceManufacturerServiceClient.listDeviceManufacturers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of DeviceManufacturers. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeviceManufacturersPagedResponse listDeviceManufacturers(String parent) { + ListDeviceManufacturersRequest request = + ListDeviceManufacturersRequest.newBuilder().setParent(parent).build(); + return listDeviceManufacturers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceManufacturer` objects. + * + *

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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+   *     DeviceManufacturerServiceClient.create()) {
+   *   ListDeviceManufacturersRequest request =
+   *       ListDeviceManufacturersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (DeviceManufacturer element :
+   *       deviceManufacturerServiceClient.listDeviceManufacturers(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 ListDeviceManufacturersPagedResponse listDeviceManufacturers( + ListDeviceManufacturersRequest request) { + return listDeviceManufacturersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceManufacturer` objects. + * + *

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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+   *     DeviceManufacturerServiceClient.create()) {
+   *   ListDeviceManufacturersRequest request =
+   *       ListDeviceManufacturersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       deviceManufacturerServiceClient
+   *           .listDeviceManufacturersPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (DeviceManufacturer element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeviceManufacturersPagedCallable() { + return stub.listDeviceManufacturersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceManufacturer` objects. + * + *

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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
+   *     DeviceManufacturerServiceClient.create()) {
+   *   ListDeviceManufacturersRequest request =
+   *       ListDeviceManufacturersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListDeviceManufacturersResponse response =
+   *         deviceManufacturerServiceClient.listDeviceManufacturersCallable().call(request);
+   *     for (DeviceManufacturer element : response.getDeviceManufacturersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeviceManufacturersCallable() { + return stub.listDeviceManufacturersCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListDeviceManufacturersPagedResponse + extends AbstractPagedListResponse< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + DeviceManufacturer, + ListDeviceManufacturersPage, + ListDeviceManufacturersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListDeviceManufacturersRequest, ListDeviceManufacturersResponse, DeviceManufacturer> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDeviceManufacturersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDeviceManufacturersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDeviceManufacturersPagedResponse(ListDeviceManufacturersPage page) { + super(page, ListDeviceManufacturersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDeviceManufacturersPage + extends AbstractPage< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + DeviceManufacturer, + ListDeviceManufacturersPage> { + + private ListDeviceManufacturersPage( + PageContext< + ListDeviceManufacturersRequest, ListDeviceManufacturersResponse, DeviceManufacturer> + context, + ListDeviceManufacturersResponse response) { + super(context, response); + } + + private static ListDeviceManufacturersPage createEmptyPage() { + return new ListDeviceManufacturersPage(null, null); + } + + @Override + protected ListDeviceManufacturersPage createPage( + PageContext< + ListDeviceManufacturersRequest, ListDeviceManufacturersResponse, DeviceManufacturer> + context, + ListDeviceManufacturersResponse response) { + return new ListDeviceManufacturersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListDeviceManufacturersRequest, ListDeviceManufacturersResponse, DeviceManufacturer> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDeviceManufacturersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + DeviceManufacturer, + ListDeviceManufacturersPage, + ListDeviceManufacturersFixedSizeCollection> { + + private ListDeviceManufacturersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDeviceManufacturersFixedSizeCollection createEmptyCollection() { + return new ListDeviceManufacturersFixedSizeCollection(null, 0); + } + + @Override + protected ListDeviceManufacturersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDeviceManufacturersFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceSettings.java new file mode 100644 index 000000000000..1873a0778dc1 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceSettings.java @@ -0,0 +1,226 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.DeviceManufacturerServiceClient.ListDeviceManufacturersPagedResponse; + +import com.google.ads.admanager.v1.stub.DeviceManufacturerServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeviceManufacturerServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDeviceManufacturer: + * + *

{@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
+ * DeviceManufacturerServiceSettings.Builder deviceManufacturerServiceSettingsBuilder =
+ *     DeviceManufacturerServiceSettings.newBuilder();
+ * deviceManufacturerServiceSettingsBuilder
+ *     .getDeviceManufacturerSettings()
+ *     .setRetrySettings(
+ *         deviceManufacturerServiceSettingsBuilder
+ *             .getDeviceManufacturerSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DeviceManufacturerServiceSettings deviceManufacturerServiceSettings =
+ *     deviceManufacturerServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class DeviceManufacturerServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getDeviceManufacturer. */ + public UnaryCallSettings + getDeviceManufacturerSettings() { + return ((DeviceManufacturerServiceStubSettings) getStubSettings()) + .getDeviceManufacturerSettings(); + } + + /** Returns the object with the settings used for calls to listDeviceManufacturers. */ + public PagedCallSettings< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + ListDeviceManufacturersPagedResponse> + listDeviceManufacturersSettings() { + return ((DeviceManufacturerServiceStubSettings) getStubSettings()) + .listDeviceManufacturersSettings(); + } + + public static final DeviceManufacturerServiceSettings create( + DeviceManufacturerServiceStubSettings stub) throws IOException { + return new DeviceManufacturerServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DeviceManufacturerServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DeviceManufacturerServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DeviceManufacturerServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DeviceManufacturerServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DeviceManufacturerServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DeviceManufacturerServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DeviceManufacturerServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DeviceManufacturerServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DeviceManufacturerServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DeviceManufacturerServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DeviceManufacturerServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DeviceManufacturerServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DeviceManufacturerServiceStubSettings.newBuilder()); + } + + public DeviceManufacturerServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DeviceManufacturerServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getDeviceManufacturer. */ + public UnaryCallSettings.Builder + getDeviceManufacturerSettings() { + return getStubSettingsBuilder().getDeviceManufacturerSettings(); + } + + /** Returns the builder for the settings used for calls to listDeviceManufacturers. */ + public PagedCallSettings.Builder< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + ListDeviceManufacturersPagedResponse> + listDeviceManufacturersSettings() { + return getStubSettingsBuilder().listDeviceManufacturersSettings(); + } + + @Override + public DeviceManufacturerServiceSettings build() throws IOException { + return new DeviceManufacturerServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceClient.java new file mode 100644 index 000000000000..f0dc946a50be --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceClient.java @@ -0,0 +1,607 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.MobileCarrierServiceStub; +import com.google.ads.admanager.v1.stub.MobileCarrierServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `MobileCarrier` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+ *     MobileCarrierServiceClient.create()) {
+ *   MobileCarrierName name = MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]");
+ *   MobileCarrier response = mobileCarrierServiceClient.getMobileCarrier(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the MobileCarrierServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetMobileCarrier

API to retrieve a `MobileCarrier` object.

+ *

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

+ *
    + *
  • getMobileCarrier(GetMobileCarrierRequest request) + *

+ *

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

+ *
    + *
  • getMobileCarrier(MobileCarrierName name) + *

  • getMobileCarrier(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.

+ *
    + *
  • getMobileCarrierCallable() + *

+ *

ListMobileCarriers

API to retrieve a list of `MobileCarrier` objects.

+ *

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

+ *
    + *
  • listMobileCarriers(ListMobileCarriersRequest request) + *

+ *

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

+ *
    + *
  • listMobileCarriers(NetworkName parent) + *

  • listMobileCarriers(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.

+ *
    + *
  • listMobileCarriersPagedCallable() + *

  • listMobileCarriersCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of MobileCarrierServiceSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * MobileCarrierServiceSettings mobileCarrierServiceSettings =
+ *     MobileCarrierServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * MobileCarrierServiceClient mobileCarrierServiceClient =
+ *     MobileCarrierServiceClient.create(mobileCarrierServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * MobileCarrierServiceSettings mobileCarrierServiceSettings =
+ *     MobileCarrierServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * MobileCarrierServiceClient mobileCarrierServiceClient =
+ *     MobileCarrierServiceClient.create(mobileCarrierServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class MobileCarrierServiceClient implements BackgroundResource { + private final MobileCarrierServiceSettings settings; + private final MobileCarrierServiceStub stub; + + /** Constructs an instance of MobileCarrierServiceClient with default settings. */ + public static final MobileCarrierServiceClient create() throws IOException { + return create(MobileCarrierServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MobileCarrierServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final MobileCarrierServiceClient create(MobileCarrierServiceSettings settings) + throws IOException { + return new MobileCarrierServiceClient(settings); + } + + /** + * Constructs an instance of MobileCarrierServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(MobileCarrierServiceSettings). + */ + public static final MobileCarrierServiceClient create(MobileCarrierServiceStub stub) { + return new MobileCarrierServiceClient(stub); + } + + /** + * Constructs an instance of MobileCarrierServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected MobileCarrierServiceClient(MobileCarrierServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((MobileCarrierServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected MobileCarrierServiceClient(MobileCarrierServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final MobileCarrierServiceSettings getSettings() { + return settings; + } + + public MobileCarrierServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileCarrier` object. + * + *

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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+   *     MobileCarrierServiceClient.create()) {
+   *   MobileCarrierName name = MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]");
+   *   MobileCarrier response = mobileCarrierServiceClient.getMobileCarrier(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MobileCarrier. Format: + * `networks/{network_code}/mobileCarriers/{mobile_carrier_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileCarrier getMobileCarrier(MobileCarrierName name) { + GetMobileCarrierRequest request = + GetMobileCarrierRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getMobileCarrier(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileCarrier` object. + * + *

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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+   *     MobileCarrierServiceClient.create()) {
+   *   String name = MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]").toString();
+   *   MobileCarrier response = mobileCarrierServiceClient.getMobileCarrier(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MobileCarrier. Format: + * `networks/{network_code}/mobileCarriers/{mobile_carrier_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileCarrier getMobileCarrier(String name) { + GetMobileCarrierRequest request = GetMobileCarrierRequest.newBuilder().setName(name).build(); + return getMobileCarrier(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileCarrier` object. + * + *

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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+   *     MobileCarrierServiceClient.create()) {
+   *   GetMobileCarrierRequest request =
+   *       GetMobileCarrierRequest.newBuilder()
+   *           .setName(MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]").toString())
+   *           .build();
+   *   MobileCarrier response = mobileCarrierServiceClient.getMobileCarrier(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 MobileCarrier getMobileCarrier(GetMobileCarrierRequest request) { + return getMobileCarrierCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileCarrier` object. + * + *

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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+   *     MobileCarrierServiceClient.create()) {
+   *   GetMobileCarrierRequest request =
+   *       GetMobileCarrierRequest.newBuilder()
+   *           .setName(MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       mobileCarrierServiceClient.getMobileCarrierCallable().futureCall(request);
+   *   // Do something.
+   *   MobileCarrier response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getMobileCarrierCallable() { + return stub.getMobileCarrierCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileCarrier` objects. + * + *

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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+   *     MobileCarrierServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (MobileCarrier element :
+   *       mobileCarrierServiceClient.listMobileCarriers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of MobileCarriers. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMobileCarriersPagedResponse listMobileCarriers(NetworkName parent) { + ListMobileCarriersRequest request = + ListMobileCarriersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMobileCarriers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileCarrier` objects. + * + *

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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+   *     MobileCarrierServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (MobileCarrier element :
+   *       mobileCarrierServiceClient.listMobileCarriers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of MobileCarriers. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMobileCarriersPagedResponse listMobileCarriers(String parent) { + ListMobileCarriersRequest request = + ListMobileCarriersRequest.newBuilder().setParent(parent).build(); + return listMobileCarriers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileCarrier` objects. + * + *

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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+   *     MobileCarrierServiceClient.create()) {
+   *   ListMobileCarriersRequest request =
+   *       ListMobileCarriersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (MobileCarrier element :
+   *       mobileCarrierServiceClient.listMobileCarriers(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 ListMobileCarriersPagedResponse listMobileCarriers( + ListMobileCarriersRequest request) { + return listMobileCarriersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileCarrier` objects. + * + *

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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+   *     MobileCarrierServiceClient.create()) {
+   *   ListMobileCarriersRequest request =
+   *       ListMobileCarriersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       mobileCarrierServiceClient.listMobileCarriersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (MobileCarrier element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMobileCarriersPagedCallable() { + return stub.listMobileCarriersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileCarrier` objects. + * + *

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 (MobileCarrierServiceClient mobileCarrierServiceClient =
+   *     MobileCarrierServiceClient.create()) {
+   *   ListMobileCarriersRequest request =
+   *       ListMobileCarriersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListMobileCarriersResponse response =
+   *         mobileCarrierServiceClient.listMobileCarriersCallable().call(request);
+   *     for (MobileCarrier element : response.getMobileCarriersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMobileCarriersCallable() { + return stub.listMobileCarriersCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListMobileCarriersPagedResponse + extends AbstractPagedListResponse< + ListMobileCarriersRequest, + ListMobileCarriersResponse, + MobileCarrier, + ListMobileCarriersPage, + ListMobileCarriersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMobileCarriersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMobileCarriersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMobileCarriersPagedResponse(ListMobileCarriersPage page) { + super(page, ListMobileCarriersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMobileCarriersPage + extends AbstractPage< + ListMobileCarriersRequest, + ListMobileCarriersResponse, + MobileCarrier, + ListMobileCarriersPage> { + + private ListMobileCarriersPage( + PageContext context, + ListMobileCarriersResponse response) { + super(context, response); + } + + private static ListMobileCarriersPage createEmptyPage() { + return new ListMobileCarriersPage(null, null); + } + + @Override + protected ListMobileCarriersPage createPage( + PageContext context, + ListMobileCarriersResponse response) { + return new ListMobileCarriersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMobileCarriersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMobileCarriersRequest, + ListMobileCarriersResponse, + MobileCarrier, + ListMobileCarriersPage, + ListMobileCarriersFixedSizeCollection> { + + private ListMobileCarriersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMobileCarriersFixedSizeCollection createEmptyCollection() { + return new ListMobileCarriersFixedSizeCollection(null, 0); + } + + @Override + protected ListMobileCarriersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMobileCarriersFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceSettings.java new file mode 100644 index 000000000000..861ba1c2306c --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceSettings.java @@ -0,0 +1,218 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.MobileCarrierServiceClient.ListMobileCarriersPagedResponse; + +import com.google.ads.admanager.v1.stub.MobileCarrierServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MobileCarrierServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getMobileCarrier: + * + *

{@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
+ * MobileCarrierServiceSettings.Builder mobileCarrierServiceSettingsBuilder =
+ *     MobileCarrierServiceSettings.newBuilder();
+ * mobileCarrierServiceSettingsBuilder
+ *     .getMobileCarrierSettings()
+ *     .setRetrySettings(
+ *         mobileCarrierServiceSettingsBuilder
+ *             .getMobileCarrierSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * MobileCarrierServiceSettings mobileCarrierServiceSettings =
+ *     mobileCarrierServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class MobileCarrierServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getMobileCarrier. */ + public UnaryCallSettings getMobileCarrierSettings() { + return ((MobileCarrierServiceStubSettings) getStubSettings()).getMobileCarrierSettings(); + } + + /** Returns the object with the settings used for calls to listMobileCarriers. */ + public PagedCallSettings< + ListMobileCarriersRequest, ListMobileCarriersResponse, ListMobileCarriersPagedResponse> + listMobileCarriersSettings() { + return ((MobileCarrierServiceStubSettings) getStubSettings()).listMobileCarriersSettings(); + } + + public static final MobileCarrierServiceSettings create(MobileCarrierServiceStubSettings stub) + throws IOException { + return new MobileCarrierServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MobileCarrierServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MobileCarrierServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MobileCarrierServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MobileCarrierServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return MobileCarrierServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MobileCarrierServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MobileCarrierServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileCarrierServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MobileCarrierServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(MobileCarrierServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(MobileCarrierServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MobileCarrierServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(MobileCarrierServiceStubSettings.newBuilder()); + } + + public MobileCarrierServiceStubSettings.Builder getStubSettingsBuilder() { + return ((MobileCarrierServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getMobileCarrier. */ + public UnaryCallSettings.Builder + getMobileCarrierSettings() { + return getStubSettingsBuilder().getMobileCarrierSettings(); + } + + /** Returns the builder for the settings used for calls to listMobileCarriers. */ + public PagedCallSettings.Builder< + ListMobileCarriersRequest, ListMobileCarriersResponse, ListMobileCarriersPagedResponse> + listMobileCarriersSettings() { + return getStubSettingsBuilder().listMobileCarriersSettings(); + } + + @Override + public MobileCarrierServiceSettings build() throws IOException { + return new MobileCarrierServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java new file mode 100644 index 000000000000..e60c0270ad24 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java @@ -0,0 +1,596 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.MobileDeviceServiceStub; +import com.google.ads.admanager.v1.stub.MobileDeviceServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `MobileDevice` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+ *   MobileDeviceName name = MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]");
+ *   MobileDevice response = mobileDeviceServiceClient.getMobileDevice(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the MobileDeviceServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetMobileDevice

API to retrieve a `MobileDevice` object.

+ *

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

+ *
    + *
  • getMobileDevice(GetMobileDeviceRequest request) + *

+ *

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

+ *
    + *
  • getMobileDevice(MobileDeviceName name) + *

  • getMobileDevice(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.

+ *
    + *
  • getMobileDeviceCallable() + *

+ *

ListMobileDevices

API to retrieve a list of `MobileDevice` objects.

+ *

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

+ *
    + *
  • listMobileDevices(ListMobileDevicesRequest request) + *

+ *

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

+ *
    + *
  • listMobileDevices(NetworkName parent) + *

  • listMobileDevices(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.

+ *
    + *
  • listMobileDevicesPagedCallable() + *

  • listMobileDevicesCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of MobileDeviceServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * MobileDeviceServiceSettings mobileDeviceServiceSettings =
+ *     MobileDeviceServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * MobileDeviceServiceClient mobileDeviceServiceClient =
+ *     MobileDeviceServiceClient.create(mobileDeviceServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * MobileDeviceServiceSettings mobileDeviceServiceSettings =
+ *     MobileDeviceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * MobileDeviceServiceClient mobileDeviceServiceClient =
+ *     MobileDeviceServiceClient.create(mobileDeviceServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class MobileDeviceServiceClient implements BackgroundResource { + private final MobileDeviceServiceSettings settings; + private final MobileDeviceServiceStub stub; + + /** Constructs an instance of MobileDeviceServiceClient with default settings. */ + public static final MobileDeviceServiceClient create() throws IOException { + return create(MobileDeviceServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MobileDeviceServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final MobileDeviceServiceClient create(MobileDeviceServiceSettings settings) + throws IOException { + return new MobileDeviceServiceClient(settings); + } + + /** + * Constructs an instance of MobileDeviceServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(MobileDeviceServiceSettings). + */ + public static final MobileDeviceServiceClient create(MobileDeviceServiceStub stub) { + return new MobileDeviceServiceClient(stub); + } + + /** + * Constructs an instance of MobileDeviceServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected MobileDeviceServiceClient(MobileDeviceServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((MobileDeviceServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected MobileDeviceServiceClient(MobileDeviceServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final MobileDeviceServiceSettings getSettings() { + return settings; + } + + public MobileDeviceServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileDevice` object. + * + *

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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+   *   MobileDeviceName name = MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]");
+   *   MobileDevice response = mobileDeviceServiceClient.getMobileDevice(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MobileDevice. Format: + * `networks/{network_code}/mobileDevices/{mobile_device_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileDevice getMobileDevice(MobileDeviceName name) { + GetMobileDeviceRequest request = + GetMobileDeviceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getMobileDevice(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileDevice` object. + * + *

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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+   *   String name = MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString();
+   *   MobileDevice response = mobileDeviceServiceClient.getMobileDevice(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MobileDevice. Format: + * `networks/{network_code}/mobileDevices/{mobile_device_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileDevice getMobileDevice(String name) { + GetMobileDeviceRequest request = GetMobileDeviceRequest.newBuilder().setName(name).build(); + return getMobileDevice(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileDevice` object. + * + *

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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+   *   GetMobileDeviceRequest request =
+   *       GetMobileDeviceRequest.newBuilder()
+   *           .setName(MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString())
+   *           .build();
+   *   MobileDevice response = mobileDeviceServiceClient.getMobileDevice(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 MobileDevice getMobileDevice(GetMobileDeviceRequest request) { + return getMobileDeviceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileDevice` object. + * + *

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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+   *   GetMobileDeviceRequest request =
+   *       GetMobileDeviceRequest.newBuilder()
+   *           .setName(MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       mobileDeviceServiceClient.getMobileDeviceCallable().futureCall(request);
+   *   // Do something.
+   *   MobileDevice response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getMobileDeviceCallable() { + return stub.getMobileDeviceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDevice` objects. + * + *

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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (MobileDevice element :
+   *       mobileDeviceServiceClient.listMobileDevices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of MobileDevices. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMobileDevicesPagedResponse listMobileDevices(NetworkName parent) { + ListMobileDevicesRequest request = + ListMobileDevicesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMobileDevices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDevice` objects. + * + *

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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (MobileDevice element :
+   *       mobileDeviceServiceClient.listMobileDevices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of MobileDevices. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMobileDevicesPagedResponse listMobileDevices(String parent) { + ListMobileDevicesRequest request = + ListMobileDevicesRequest.newBuilder().setParent(parent).build(); + return listMobileDevices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDevice` objects. + * + *

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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+   *   ListMobileDevicesRequest request =
+   *       ListMobileDevicesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (MobileDevice element :
+   *       mobileDeviceServiceClient.listMobileDevices(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 ListMobileDevicesPagedResponse listMobileDevices(ListMobileDevicesRequest request) { + return listMobileDevicesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDevice` objects. + * + *

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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+   *   ListMobileDevicesRequest request =
+   *       ListMobileDevicesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       mobileDeviceServiceClient.listMobileDevicesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (MobileDevice element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMobileDevicesPagedCallable() { + return stub.listMobileDevicesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDevice` objects. + * + *

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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
+   *   ListMobileDevicesRequest request =
+   *       ListMobileDevicesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListMobileDevicesResponse response =
+   *         mobileDeviceServiceClient.listMobileDevicesCallable().call(request);
+   *     for (MobileDevice element : response.getMobileDevicesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMobileDevicesCallable() { + return stub.listMobileDevicesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListMobileDevicesPagedResponse + extends AbstractPagedListResponse< + ListMobileDevicesRequest, + ListMobileDevicesResponse, + MobileDevice, + ListMobileDevicesPage, + ListMobileDevicesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMobileDevicesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMobileDevicesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMobileDevicesPagedResponse(ListMobileDevicesPage page) { + super(page, ListMobileDevicesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMobileDevicesPage + extends AbstractPage< + ListMobileDevicesRequest, + ListMobileDevicesResponse, + MobileDevice, + ListMobileDevicesPage> { + + private ListMobileDevicesPage( + PageContext context, + ListMobileDevicesResponse response) { + super(context, response); + } + + private static ListMobileDevicesPage createEmptyPage() { + return new ListMobileDevicesPage(null, null); + } + + @Override + protected ListMobileDevicesPage createPage( + PageContext context, + ListMobileDevicesResponse response) { + return new ListMobileDevicesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMobileDevicesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMobileDevicesRequest, + ListMobileDevicesResponse, + MobileDevice, + ListMobileDevicesPage, + ListMobileDevicesFixedSizeCollection> { + + private ListMobileDevicesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMobileDevicesFixedSizeCollection createEmptyCollection() { + return new ListMobileDevicesFixedSizeCollection(null, 0); + } + + @Override + protected ListMobileDevicesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMobileDevicesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceSettings.java new file mode 100644 index 000000000000..716f3329aa70 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceSettings.java @@ -0,0 +1,217 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.MobileDeviceServiceClient.ListMobileDevicesPagedResponse; + +import com.google.ads.admanager.v1.stub.MobileDeviceServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MobileDeviceServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getMobileDevice: + * + *

{@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
+ * MobileDeviceServiceSettings.Builder mobileDeviceServiceSettingsBuilder =
+ *     MobileDeviceServiceSettings.newBuilder();
+ * mobileDeviceServiceSettingsBuilder
+ *     .getMobileDeviceSettings()
+ *     .setRetrySettings(
+ *         mobileDeviceServiceSettingsBuilder
+ *             .getMobileDeviceSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * MobileDeviceServiceSettings mobileDeviceServiceSettings =
+ *     mobileDeviceServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class MobileDeviceServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getMobileDevice. */ + public UnaryCallSettings getMobileDeviceSettings() { + return ((MobileDeviceServiceStubSettings) getStubSettings()).getMobileDeviceSettings(); + } + + /** Returns the object with the settings used for calls to listMobileDevices. */ + public PagedCallSettings< + ListMobileDevicesRequest, ListMobileDevicesResponse, ListMobileDevicesPagedResponse> + listMobileDevicesSettings() { + return ((MobileDeviceServiceStubSettings) getStubSettings()).listMobileDevicesSettings(); + } + + public static final MobileDeviceServiceSettings create(MobileDeviceServiceStubSettings stub) + throws IOException { + return new MobileDeviceServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MobileDeviceServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MobileDeviceServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MobileDeviceServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MobileDeviceServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return MobileDeviceServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MobileDeviceServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MobileDeviceServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileDeviceServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MobileDeviceServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(MobileDeviceServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(MobileDeviceServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MobileDeviceServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(MobileDeviceServiceStubSettings.newBuilder()); + } + + public MobileDeviceServiceStubSettings.Builder getStubSettingsBuilder() { + return ((MobileDeviceServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getMobileDevice. */ + public UnaryCallSettings.Builder + getMobileDeviceSettings() { + return getStubSettingsBuilder().getMobileDeviceSettings(); + } + + /** Returns the builder for the settings used for calls to listMobileDevices. */ + public PagedCallSettings.Builder< + ListMobileDevicesRequest, ListMobileDevicesResponse, ListMobileDevicesPagedResponse> + listMobileDevicesSettings() { + return getStubSettingsBuilder().listMobileDevicesSettings(); + } + + @Override + public MobileDeviceServiceSettings build() throws IOException { + return new MobileDeviceServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java new file mode 100644 index 000000000000..3000371c2514 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java @@ -0,0 +1,646 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.MobileDeviceSubmodelServiceStub; +import com.google.ads.admanager.v1.stub.MobileDeviceSubmodelServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `MobileDeviceSubmodel` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+ *     MobileDeviceSubmodelServiceClient.create()) {
+ *   MobileDeviceSubmodelName name =
+ *       MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]");
+ *   MobileDeviceSubmodel response =
+ *       mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodel(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the MobileDeviceSubmodelServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetMobileDeviceSubmodel

API to retrieve a `MobileDeviceSubmodel` object.

+ *

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

+ *
    + *
  • getMobileDeviceSubmodel(GetMobileDeviceSubmodelRequest request) + *

+ *

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

+ *
    + *
  • getMobileDeviceSubmodel(MobileDeviceSubmodelName name) + *

  • getMobileDeviceSubmodel(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.

+ *
    + *
  • getMobileDeviceSubmodelCallable() + *

+ *

ListMobileDeviceSubmodels

API to retrieve a list of `MobileDeviceSubmodel` objects.

+ *

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

+ *
    + *
  • listMobileDeviceSubmodels(ListMobileDeviceSubmodelsRequest request) + *

+ *

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

+ *
    + *
  • listMobileDeviceSubmodels(NetworkName parent) + *

  • listMobileDeviceSubmodels(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.

+ *
    + *
  • listMobileDeviceSubmodelsPagedCallable() + *

  • listMobileDeviceSubmodelsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * MobileDeviceSubmodelServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * MobileDeviceSubmodelServiceSettings mobileDeviceSubmodelServiceSettings =
+ *     MobileDeviceSubmodelServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+ *     MobileDeviceSubmodelServiceClient.create(mobileDeviceSubmodelServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * MobileDeviceSubmodelServiceSettings mobileDeviceSubmodelServiceSettings =
+ *     MobileDeviceSubmodelServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+ *     MobileDeviceSubmodelServiceClient.create(mobileDeviceSubmodelServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class MobileDeviceSubmodelServiceClient implements BackgroundResource { + private final MobileDeviceSubmodelServiceSettings settings; + private final MobileDeviceSubmodelServiceStub stub; + + /** Constructs an instance of MobileDeviceSubmodelServiceClient with default settings. */ + public static final MobileDeviceSubmodelServiceClient create() throws IOException { + return create(MobileDeviceSubmodelServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MobileDeviceSubmodelServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final MobileDeviceSubmodelServiceClient create( + MobileDeviceSubmodelServiceSettings settings) throws IOException { + return new MobileDeviceSubmodelServiceClient(settings); + } + + /** + * Constructs an instance of MobileDeviceSubmodelServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(MobileDeviceSubmodelServiceSettings). + */ + public static final MobileDeviceSubmodelServiceClient create( + MobileDeviceSubmodelServiceStub stub) { + return new MobileDeviceSubmodelServiceClient(stub); + } + + /** + * Constructs an instance of MobileDeviceSubmodelServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected MobileDeviceSubmodelServiceClient(MobileDeviceSubmodelServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((MobileDeviceSubmodelServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected MobileDeviceSubmodelServiceClient(MobileDeviceSubmodelServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final MobileDeviceSubmodelServiceSettings getSettings() { + return settings; + } + + public MobileDeviceSubmodelServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileDeviceSubmodel` object. + * + *

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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+   *     MobileDeviceSubmodelServiceClient.create()) {
+   *   MobileDeviceSubmodelName name =
+   *       MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]");
+   *   MobileDeviceSubmodel response =
+   *       mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodel(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MobileDeviceSubmodel. Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileDeviceSubmodel getMobileDeviceSubmodel(MobileDeviceSubmodelName name) { + GetMobileDeviceSubmodelRequest request = + GetMobileDeviceSubmodelRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMobileDeviceSubmodel(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileDeviceSubmodel` object. + * + *

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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+   *     MobileDeviceSubmodelServiceClient.create()) {
+   *   String name =
+   *       MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]").toString();
+   *   MobileDeviceSubmodel response =
+   *       mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodel(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the MobileDeviceSubmodel. Format: + * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileDeviceSubmodel getMobileDeviceSubmodel(String name) { + GetMobileDeviceSubmodelRequest request = + GetMobileDeviceSubmodelRequest.newBuilder().setName(name).build(); + return getMobileDeviceSubmodel(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileDeviceSubmodel` object. + * + *

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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+   *     MobileDeviceSubmodelServiceClient.create()) {
+   *   GetMobileDeviceSubmodelRequest request =
+   *       GetMobileDeviceSubmodelRequest.newBuilder()
+   *           .setName(
+   *               MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]")
+   *                   .toString())
+   *           .build();
+   *   MobileDeviceSubmodel response =
+   *       mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodel(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 MobileDeviceSubmodel getMobileDeviceSubmodel( + GetMobileDeviceSubmodelRequest request) { + return getMobileDeviceSubmodelCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `MobileDeviceSubmodel` object. + * + *

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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+   *     MobileDeviceSubmodelServiceClient.create()) {
+   *   GetMobileDeviceSubmodelRequest request =
+   *       GetMobileDeviceSubmodelRequest.newBuilder()
+   *           .setName(
+   *               MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodelCallable().futureCall(request);
+   *   // Do something.
+   *   MobileDeviceSubmodel response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getMobileDeviceSubmodelCallable() { + return stub.getMobileDeviceSubmodelCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDeviceSubmodel` objects. + * + *

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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+   *     MobileDeviceSubmodelServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (MobileDeviceSubmodel element :
+   *       mobileDeviceSubmodelServiceClient.listMobileDeviceSubmodels(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of MobileDeviceSubmodels. + * Format: `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMobileDeviceSubmodelsPagedResponse listMobileDeviceSubmodels( + NetworkName parent) { + ListMobileDeviceSubmodelsRequest request = + ListMobileDeviceSubmodelsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMobileDeviceSubmodels(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDeviceSubmodel` objects. + * + *

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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+   *     MobileDeviceSubmodelServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (MobileDeviceSubmodel element :
+   *       mobileDeviceSubmodelServiceClient.listMobileDeviceSubmodels(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of MobileDeviceSubmodels. + * Format: `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMobileDeviceSubmodelsPagedResponse listMobileDeviceSubmodels(String parent) { + ListMobileDeviceSubmodelsRequest request = + ListMobileDeviceSubmodelsRequest.newBuilder().setParent(parent).build(); + return listMobileDeviceSubmodels(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDeviceSubmodel` objects. + * + *

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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+   *     MobileDeviceSubmodelServiceClient.create()) {
+   *   ListMobileDeviceSubmodelsRequest request =
+   *       ListMobileDeviceSubmodelsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (MobileDeviceSubmodel element :
+   *       mobileDeviceSubmodelServiceClient.listMobileDeviceSubmodels(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 ListMobileDeviceSubmodelsPagedResponse listMobileDeviceSubmodels( + ListMobileDeviceSubmodelsRequest request) { + return listMobileDeviceSubmodelsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDeviceSubmodel` objects. + * + *

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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+   *     MobileDeviceSubmodelServiceClient.create()) {
+   *   ListMobileDeviceSubmodelsRequest request =
+   *       ListMobileDeviceSubmodelsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       mobileDeviceSubmodelServiceClient
+   *           .listMobileDeviceSubmodelsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (MobileDeviceSubmodel element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListMobileDeviceSubmodelsRequest, ListMobileDeviceSubmodelsPagedResponse> + listMobileDeviceSubmodelsPagedCallable() { + return stub.listMobileDeviceSubmodelsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `MobileDeviceSubmodel` objects. + * + *

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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
+   *     MobileDeviceSubmodelServiceClient.create()) {
+   *   ListMobileDeviceSubmodelsRequest request =
+   *       ListMobileDeviceSubmodelsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListMobileDeviceSubmodelsResponse response =
+   *         mobileDeviceSubmodelServiceClient.listMobileDeviceSubmodelsCallable().call(request);
+   *     for (MobileDeviceSubmodel element : response.getMobileDeviceSubmodelsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMobileDeviceSubmodelsCallable() { + return stub.listMobileDeviceSubmodelsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListMobileDeviceSubmodelsPagedResponse + extends AbstractPagedListResponse< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + MobileDeviceSubmodel, + ListMobileDeviceSubmodelsPage, + ListMobileDeviceSubmodelsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + MobileDeviceSubmodel> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMobileDeviceSubmodelsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMobileDeviceSubmodelsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMobileDeviceSubmodelsPagedResponse(ListMobileDeviceSubmodelsPage page) { + super(page, ListMobileDeviceSubmodelsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMobileDeviceSubmodelsPage + extends AbstractPage< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + MobileDeviceSubmodel, + ListMobileDeviceSubmodelsPage> { + + private ListMobileDeviceSubmodelsPage( + PageContext< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + MobileDeviceSubmodel> + context, + ListMobileDeviceSubmodelsResponse response) { + super(context, response); + } + + private static ListMobileDeviceSubmodelsPage createEmptyPage() { + return new ListMobileDeviceSubmodelsPage(null, null); + } + + @Override + protected ListMobileDeviceSubmodelsPage createPage( + PageContext< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + MobileDeviceSubmodel> + context, + ListMobileDeviceSubmodelsResponse response) { + return new ListMobileDeviceSubmodelsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + MobileDeviceSubmodel> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMobileDeviceSubmodelsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + MobileDeviceSubmodel, + ListMobileDeviceSubmodelsPage, + ListMobileDeviceSubmodelsFixedSizeCollection> { + + private ListMobileDeviceSubmodelsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMobileDeviceSubmodelsFixedSizeCollection createEmptyCollection() { + return new ListMobileDeviceSubmodelsFixedSizeCollection(null, 0); + } + + @Override + protected ListMobileDeviceSubmodelsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMobileDeviceSubmodelsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceSettings.java new file mode 100644 index 000000000000..eb60f2f56a30 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceSettings.java @@ -0,0 +1,226 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient.ListMobileDeviceSubmodelsPagedResponse; + +import com.google.ads.admanager.v1.stub.MobileDeviceSubmodelServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MobileDeviceSubmodelServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getMobileDeviceSubmodel: + * + *

{@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
+ * MobileDeviceSubmodelServiceSettings.Builder mobileDeviceSubmodelServiceSettingsBuilder =
+ *     MobileDeviceSubmodelServiceSettings.newBuilder();
+ * mobileDeviceSubmodelServiceSettingsBuilder
+ *     .getMobileDeviceSubmodelSettings()
+ *     .setRetrySettings(
+ *         mobileDeviceSubmodelServiceSettingsBuilder
+ *             .getMobileDeviceSubmodelSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * MobileDeviceSubmodelServiceSettings mobileDeviceSubmodelServiceSettings =
+ *     mobileDeviceSubmodelServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class MobileDeviceSubmodelServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getMobileDeviceSubmodel. */ + public UnaryCallSettings + getMobileDeviceSubmodelSettings() { + return ((MobileDeviceSubmodelServiceStubSettings) getStubSettings()) + .getMobileDeviceSubmodelSettings(); + } + + /** Returns the object with the settings used for calls to listMobileDeviceSubmodels. */ + public PagedCallSettings< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + ListMobileDeviceSubmodelsPagedResponse> + listMobileDeviceSubmodelsSettings() { + return ((MobileDeviceSubmodelServiceStubSettings) getStubSettings()) + .listMobileDeviceSubmodelsSettings(); + } + + public static final MobileDeviceSubmodelServiceSettings create( + MobileDeviceSubmodelServiceStubSettings stub) throws IOException { + return new MobileDeviceSubmodelServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MobileDeviceSubmodelServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MobileDeviceSubmodelServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MobileDeviceSubmodelServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MobileDeviceSubmodelServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return MobileDeviceSubmodelServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MobileDeviceSubmodelServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MobileDeviceSubmodelServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileDeviceSubmodelServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MobileDeviceSubmodelServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(MobileDeviceSubmodelServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(MobileDeviceSubmodelServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MobileDeviceSubmodelServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(MobileDeviceSubmodelServiceStubSettings.newBuilder()); + } + + public MobileDeviceSubmodelServiceStubSettings.Builder getStubSettingsBuilder() { + return ((MobileDeviceSubmodelServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getMobileDeviceSubmodel. */ + public UnaryCallSettings.Builder + getMobileDeviceSubmodelSettings() { + return getStubSettingsBuilder().getMobileDeviceSubmodelSettings(); + } + + /** Returns the builder for the settings used for calls to listMobileDeviceSubmodels. */ + public PagedCallSettings.Builder< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + ListMobileDeviceSubmodelsPagedResponse> + listMobileDeviceSubmodelsSettings() { + return getStubSettingsBuilder().listMobileDeviceSubmodelsSettings(); + } + + @Override + public MobileDeviceSubmodelServiceSettings build() throws IOException { + return new MobileDeviceSubmodelServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java index 35fbc0f854d1..26544146e526 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -101,6 +102,132 @@ * * * + * + *

CreatePlacement + *

API to create an `Placement` object. + * + *

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

+ *
    + *
  • createPlacement(CreatePlacementRequest request) + *

+ *

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

+ *
    + *
  • createPlacement(NetworkName parent, Placement placement) + *

  • createPlacement(String parent, Placement placement) + *

+ *

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

+ *
    + *
  • createPlacementCallable() + *

+ * + * + * + *

UpdatePlacement + *

API to update an `Placement` object. + * + *

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

+ *
    + *
  • updatePlacement(UpdatePlacementRequest request) + *

+ *

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

+ *
    + *
  • updatePlacement(Placement placement, 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.

+ *
    + *
  • updatePlacementCallable() + *

+ * + * + * + *

BatchCreatePlacements + *

API to batch create `Placement` objects. + * + *

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

+ *
    + *
  • batchCreatePlacements(NetworkName parent, List<CreatePlacementRequest> requests) + *

  • batchCreatePlacements(String parent, List<CreatePlacementRequest> requests) + *

  • batchCreatePlacements(BatchCreatePlacementsRequest request) + *

+ *

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

+ *
    + *
  • batchCreatePlacementsCallable() + *

+ * + * + * + *

BatchUpdatePlacements + *

API to batch update `Placement` objects. + * + *

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

+ *
    + *
  • batchUpdatePlacements(NetworkName parent, List<UpdatePlacementRequest> requests) + *

  • batchUpdatePlacements(String parent, List<UpdatePlacementRequest> requests) + *

  • batchUpdatePlacements(BatchUpdatePlacementsRequest request) + *

+ *

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

+ *
    + *
  • batchUpdatePlacementsCallable() + *

+ * + * + * + *

BatchActivatePlacements + *

Activates a list of `Placement` objects. + * + *

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

+ *
    + *
  • batchActivatePlacements(BatchActivatePlacementsRequest request) + *

+ *

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

+ *
    + *
  • batchActivatePlacements(NetworkName parent, List<String> names) + *

  • batchActivatePlacements(String parent, List<String> names) + *

+ *

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

+ *
    + *
  • batchActivatePlacementsCallable() + *

+ * + * + * + *

BatchDeactivatePlacements + *

Deactivates a list of `Placement` objects. + * + *

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

+ *
    + *
  • batchDeactivatePlacements(BatchDeactivatePlacementsRequest request) + *

+ *

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

+ *
    + *
  • batchDeactivatePlacements(NetworkName parent, List<String> names) + *

  • batchDeactivatePlacements(String parent, List<String> names) + *

+ *

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

+ *
    + *
  • batchDeactivatePlacementsCallable() + *

+ * + * + * + *

BatchArchivePlacements + *

Archives a list of `Placement` objects. + * + *

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

+ *
    + *
  • batchArchivePlacements(BatchArchivePlacementsRequest request) + *

+ *

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

+ *
    + *
  • batchArchivePlacements(NetworkName parent, List<String> names) + *

  • batchArchivePlacements(String parent, List<String> names) + *

+ *

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

+ *
    + *
  • batchArchivePlacementsCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -480,6 +607,873 @@ public final ListPlacementsPagedResponse listPlacements(ListPlacementsRequest re return stub.listPlacementsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `Placement` object. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   Placement placement = Placement.newBuilder().build();
+   *   Placement response = placementServiceClient.createPlacement(parent, placement);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `Placement` will be created. Format: + * `networks/{network_code}` + * @param placement Required. The `Placement` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Placement createPlacement(NetworkName parent, Placement placement) { + CreatePlacementRequest request = + CreatePlacementRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPlacement(placement) + .build(); + return createPlacement(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `Placement` object. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   Placement placement = Placement.newBuilder().build();
+   *   Placement response = placementServiceClient.createPlacement(parent, placement);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `Placement` will be created. Format: + * `networks/{network_code}` + * @param placement Required. The `Placement` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Placement createPlacement(String parent, Placement placement) { + CreatePlacementRequest request = + CreatePlacementRequest.newBuilder().setParent(parent).setPlacement(placement).build(); + return createPlacement(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `Placement` object. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   CreatePlacementRequest request =
+   *       CreatePlacementRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPlacement(Placement.newBuilder().build())
+   *           .build();
+   *   Placement response = placementServiceClient.createPlacement(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 Placement createPlacement(CreatePlacementRequest request) { + return createPlacementCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `Placement` object. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   CreatePlacementRequest request =
+   *       CreatePlacementRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPlacement(Placement.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       placementServiceClient.createPlacementCallable().futureCall(request);
+   *   // Do something.
+   *   Placement response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createPlacementCallable() { + return stub.createPlacementCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `Placement` object. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   Placement placement = Placement.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Placement response = placementServiceClient.updatePlacement(placement, updateMask);
+   * }
+   * }
+ * + * @param placement Required. The `Placement` to update. + *

The `Placement`'s name is used to identify the `Placement` to update. Format: + * `networks/{network_code}/placements/{placement_id}` + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Placement updatePlacement(Placement placement, FieldMask updateMask) { + UpdatePlacementRequest request = + UpdatePlacementRequest.newBuilder() + .setPlacement(placement) + .setUpdateMask(updateMask) + .build(); + return updatePlacement(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `Placement` object. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   UpdatePlacementRequest request =
+   *       UpdatePlacementRequest.newBuilder()
+   *           .setPlacement(Placement.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Placement response = placementServiceClient.updatePlacement(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 Placement updatePlacement(UpdatePlacementRequest request) { + return updatePlacementCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `Placement` object. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   UpdatePlacementRequest request =
+   *       UpdatePlacementRequest.newBuilder()
+   *           .setPlacement(Placement.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       placementServiceClient.updatePlacementCallable().futureCall(request);
+   *   // Do something.
+   *   Placement response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updatePlacementCallable() { + return stub.updatePlacementCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchCreatePlacementsResponse response =
+   *       placementServiceClient.batchCreatePlacements(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the `Placement`s will be created. Format: + * `networks/{network_code}` The parent field in the CreatePlacementRequest messages match + * this field. + * @param requests Required. The `Placement` objects to create. A maximum of 100 objects can be + * created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreatePlacementsResponse batchCreatePlacements( + NetworkName parent, List requests) { + BatchCreatePlacementsRequest request = + BatchCreatePlacementsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchCreatePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchCreatePlacementsResponse response =
+   *       placementServiceClient.batchCreatePlacements(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the `Placement`s will be created. Format: + * `networks/{network_code}` The parent field in the CreatePlacementRequest messages match + * this field. + * @param requests Required. The `Placement` objects to create. A maximum of 100 objects can be + * created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreatePlacementsResponse batchCreatePlacements( + String parent, List requests) { + BatchCreatePlacementsRequest request = + BatchCreatePlacementsRequest.newBuilder() + .setParent(parent) + .addAllRequests(requests) + .build(); + return batchCreatePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchCreatePlacementsRequest request =
+   *       BatchCreatePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchCreatePlacementsResponse response =
+   *       placementServiceClient.batchCreatePlacements(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 BatchCreatePlacementsResponse batchCreatePlacements( + BatchCreatePlacementsRequest request) { + return batchCreatePlacementsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchCreatePlacementsRequest request =
+   *       BatchCreatePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       placementServiceClient.batchCreatePlacementsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchCreatePlacementsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchCreatePlacementsCallable() { + return stub.batchCreatePlacementsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchUpdatePlacementsResponse response =
+   *       placementServiceClient.batchUpdatePlacements(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `Placements` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdatePlacementsRequest must match this + * field. + * @param requests Required. The `Placement` objects to update. A maximum of 100 objects can be + * updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdatePlacementsResponse batchUpdatePlacements( + NetworkName parent, List requests) { + BatchUpdatePlacementsRequest request = + BatchUpdatePlacementsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchUpdatePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchUpdatePlacementsResponse response =
+   *       placementServiceClient.batchUpdatePlacements(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `Placements` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdatePlacementsRequest must match this + * field. + * @param requests Required. The `Placement` objects to update. A maximum of 100 objects can be + * updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdatePlacementsResponse batchUpdatePlacements( + String parent, List requests) { + BatchUpdatePlacementsRequest request = + BatchUpdatePlacementsRequest.newBuilder() + .setParent(parent) + .addAllRequests(requests) + .build(); + return batchUpdatePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchUpdatePlacementsRequest request =
+   *       BatchUpdatePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchUpdatePlacementsResponse response =
+   *       placementServiceClient.batchUpdatePlacements(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 BatchUpdatePlacementsResponse batchUpdatePlacements( + BatchUpdatePlacementsRequest request) { + return batchUpdatePlacementsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchUpdatePlacementsRequest request =
+   *       BatchUpdatePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       placementServiceClient.batchUpdatePlacementsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchUpdatePlacementsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchUpdatePlacementsCallable() { + return stub.batchUpdatePlacementsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchActivatePlacementsResponse response =
+   *       placementServiceClient.batchActivatePlacements(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The names of the `Placement` objects to activate. Format: + * `networks/{network_code}/placements/{placement_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivatePlacementsResponse batchActivatePlacements( + NetworkName parent, List names) { + BatchActivatePlacementsRequest request = + BatchActivatePlacementsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchActivatePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchActivatePlacementsResponse response =
+   *       placementServiceClient.batchActivatePlacements(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The names of the `Placement` objects to activate. Format: + * `networks/{network_code}/placements/{placement_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivatePlacementsResponse batchActivatePlacements( + String parent, List names) { + BatchActivatePlacementsRequest request = + BatchActivatePlacementsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchActivatePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchActivatePlacementsRequest request =
+   *       BatchActivatePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchActivatePlacementsResponse response =
+   *       placementServiceClient.batchActivatePlacements(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 BatchActivatePlacementsResponse batchActivatePlacements( + BatchActivatePlacementsRequest request) { + return batchActivatePlacementsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchActivatePlacementsRequest request =
+   *       BatchActivatePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       placementServiceClient.batchActivatePlacementsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchActivatePlacementsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchActivatePlacementsCallable() { + return stub.batchActivatePlacementsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchDeactivatePlacementsResponse response =
+   *       placementServiceClient.batchDeactivatePlacements(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The names of the `Placement` objects to deactivate. Format: + * `networks/{network_code}/placements/{placement_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivatePlacementsResponse batchDeactivatePlacements( + NetworkName parent, List names) { + BatchDeactivatePlacementsRequest request = + BatchDeactivatePlacementsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchDeactivatePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchDeactivatePlacementsResponse response =
+   *       placementServiceClient.batchDeactivatePlacements(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The names of the `Placement` objects to deactivate. Format: + * `networks/{network_code}/placements/{placement_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivatePlacementsResponse batchDeactivatePlacements( + String parent, List names) { + BatchDeactivatePlacementsRequest request = + BatchDeactivatePlacementsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchDeactivatePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchDeactivatePlacementsRequest request =
+   *       BatchDeactivatePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchDeactivatePlacementsResponse response =
+   *       placementServiceClient.batchDeactivatePlacements(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 BatchDeactivatePlacementsResponse batchDeactivatePlacements( + BatchDeactivatePlacementsRequest request) { + return batchDeactivatePlacementsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchDeactivatePlacementsRequest request =
+   *       BatchDeactivatePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       placementServiceClient.batchDeactivatePlacementsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchDeactivatePlacementsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchDeactivatePlacementsCallable() { + return stub.batchDeactivatePlacementsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchArchivePlacementsResponse response =
+   *       placementServiceClient.batchArchivePlacements(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The names of the `Placement` objects to archive. Format: + * `networks/{network_code}/placements/{placement_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchArchivePlacementsResponse batchArchivePlacements( + NetworkName parent, List names) { + BatchArchivePlacementsRequest request = + BatchArchivePlacementsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchArchivePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchArchivePlacementsResponse response =
+   *       placementServiceClient.batchArchivePlacements(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The names of the `Placement` objects to archive. Format: + * `networks/{network_code}/placements/{placement_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchArchivePlacementsResponse batchArchivePlacements( + String parent, List names) { + BatchArchivePlacementsRequest request = + BatchArchivePlacementsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchArchivePlacements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchArchivePlacementsRequest request =
+   *       BatchArchivePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchArchivePlacementsResponse response =
+   *       placementServiceClient.batchArchivePlacements(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 BatchArchivePlacementsResponse batchArchivePlacements( + BatchArchivePlacementsRequest request) { + return batchArchivePlacementsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a list of `Placement` objects. + * + *

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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) {
+   *   BatchArchivePlacementsRequest request =
+   *       BatchArchivePlacementsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       placementServiceClient.batchArchivePlacementsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchArchivePlacementsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchArchivePlacementsCallable() { + return stub.batchArchivePlacementsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceSettings.java index cbdb343a8b4a..04411418aedd 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceSettings.java @@ -98,6 +98,46 @@ public UnaryCallSettings getPlacementSettings() return ((PlacementServiceStubSettings) getStubSettings()).listPlacementsSettings(); } + /** Returns the object with the settings used for calls to createPlacement. */ + public UnaryCallSettings createPlacementSettings() { + return ((PlacementServiceStubSettings) getStubSettings()).createPlacementSettings(); + } + + /** Returns the object with the settings used for calls to updatePlacement. */ + public UnaryCallSettings updatePlacementSettings() { + return ((PlacementServiceStubSettings) getStubSettings()).updatePlacementSettings(); + } + + /** Returns the object with the settings used for calls to batchCreatePlacements. */ + public UnaryCallSettings + batchCreatePlacementsSettings() { + return ((PlacementServiceStubSettings) getStubSettings()).batchCreatePlacementsSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdatePlacements. */ + public UnaryCallSettings + batchUpdatePlacementsSettings() { + return ((PlacementServiceStubSettings) getStubSettings()).batchUpdatePlacementsSettings(); + } + + /** Returns the object with the settings used for calls to batchActivatePlacements. */ + public UnaryCallSettings + batchActivatePlacementsSettings() { + return ((PlacementServiceStubSettings) getStubSettings()).batchActivatePlacementsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeactivatePlacements. */ + public UnaryCallSettings + batchDeactivatePlacementsSettings() { + return ((PlacementServiceStubSettings) getStubSettings()).batchDeactivatePlacementsSettings(); + } + + /** Returns the object with the settings used for calls to batchArchivePlacements. */ + public UnaryCallSettings + batchArchivePlacementsSettings() { + return ((PlacementServiceStubSettings) getStubSettings()).batchArchivePlacementsSettings(); + } + public static final PlacementServiceSettings create(PlacementServiceStubSettings stub) throws IOException { return new PlacementServiceSettings.Builder(stub.toBuilder()).build(); @@ -207,6 +247,48 @@ public UnaryCallSettings.Builder getPlacementSet return getStubSettingsBuilder().listPlacementsSettings(); } + /** Returns the builder for the settings used for calls to createPlacement. */ + public UnaryCallSettings.Builder createPlacementSettings() { + return getStubSettingsBuilder().createPlacementSettings(); + } + + /** Returns the builder for the settings used for calls to updatePlacement. */ + public UnaryCallSettings.Builder updatePlacementSettings() { + return getStubSettingsBuilder().updatePlacementSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreatePlacements. */ + public UnaryCallSettings.Builder + batchCreatePlacementsSettings() { + return getStubSettingsBuilder().batchCreatePlacementsSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdatePlacements. */ + public UnaryCallSettings.Builder + batchUpdatePlacementsSettings() { + return getStubSettingsBuilder().batchUpdatePlacementsSettings(); + } + + /** Returns the builder for the settings used for calls to batchActivatePlacements. */ + public UnaryCallSettings.Builder< + BatchActivatePlacementsRequest, BatchActivatePlacementsResponse> + batchActivatePlacementsSettings() { + return getStubSettingsBuilder().batchActivatePlacementsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeactivatePlacements. */ + public UnaryCallSettings.Builder< + BatchDeactivatePlacementsRequest, BatchDeactivatePlacementsResponse> + batchDeactivatePlacementsSettings() { + return getStubSettingsBuilder().batchDeactivatePlacementsSettings(); + } + + /** Returns the builder for the settings used for calls to batchArchivePlacements. */ + public UnaryCallSettings.Builder + batchArchivePlacementsSettings() { + return getStubSettingsBuilder().batchArchivePlacementsSettings(); + } + @Override public PlacementServiceSettings build() throws IOException { return new PlacementServiceSettings(this); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java index 46baa62c250d..7a6dcdbc89cf 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java @@ -144,7 +144,7 @@ * * *

RunReport - *

Initiates the execution of an existing report asynchronously. Users can get the report by polling this operation via `OperationsService.GetOperation`. Poll every 5 seconds initially, with an exponential backoff. Once a report is complete, the operation will contain a `RunReportResponse` in its response field containing a report_result that can be passed to the `FetchReportResultRows` method to retrieve the report data. + *

Initiates the execution of an existing report asynchronously. Users can get the report by polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, with an exponential backoff. Once a report is complete, the operation will contain a `RunReportResponse` in its response field containing a report_result that can be passed to the `FetchReportResultRows` method to retrieve the report data. * *

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

*
    @@ -774,7 +774,7 @@ public final UnaryCallable updateReportCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Initiates the execution of an existing report asynchronously. Users can get the report by - * polling this operation via `OperationsService.GetOperation`. Poll every 5 seconds initially, + * polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, * with an exponential backoff. Once a report is complete, the operation will contain a * `RunReportResponse` in its response field containing a report_result that can be passed to the * `FetchReportResultRows` method to retrieve the report data. @@ -806,7 +806,7 @@ public final OperationFuture runReportAsyn // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Initiates the execution of an existing report asynchronously. Users can get the report by - * polling this operation via `OperationsService.GetOperation`. Poll every 5 seconds initially, + * polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, * with an exponential backoff. Once a report is complete, the operation will contain a * `RunReportResponse` in its response field containing a report_result that can be passed to the * `FetchReportResultRows` method to retrieve the report data. @@ -836,7 +836,7 @@ public final OperationFuture runReportAsyn // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Initiates the execution of an existing report asynchronously. Users can get the report by - * polling this operation via `OperationsService.GetOperation`. Poll every 5 seconds initially, + * polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, * with an exponential backoff. Once a report is complete, the operation will contain a * `RunReportResponse` in its response field containing a report_result that can be passed to the * `FetchReportResultRows` method to retrieve the report data. @@ -869,7 +869,7 @@ public final OperationFuture runReportAsyn // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Initiates the execution of an existing report asynchronously. Users can get the report by - * polling this operation via `OperationsService.GetOperation`. Poll every 5 seconds initially, + * polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, * with an exponential backoff. Once a report is complete, the operation will contain a * `RunReportResponse` in its response field containing a report_result that can be passed to the * `FetchReportResultRows` method to retrieve the report data. @@ -902,7 +902,7 @@ public final OperationFuture runReportAsyn // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Initiates the execution of an existing report asynchronously. Users can get the report by - * polling this operation via `OperationsService.GetOperation`. Poll every 5 seconds initially, + * polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, * with an exponential backoff. Once a report is complete, the operation will contain a * `RunReportResponse` in its response field containing a report_result that can be passed to the * `FetchReportResultRows` method to retrieve the report data. @@ -946,7 +946,7 @@ public final UnaryCallable runReportCallable() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReportServiceClient reportServiceClient = ReportServiceClient.create()) { * String name = "name3373707"; - * for (Report.DataTable.Row element : + * for (ReportDataTable.Row element : * reportServiceClient.fetchReportResultRows(name).iterateAll()) { * // doThingsWith(element); * } @@ -984,7 +984,7 @@ public final FetchReportResultRowsPagedResponse fetchReportResultRows(String nam * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (Report.DataTable.Row element : + * for (ReportDataTable.Row element : * reportServiceClient.fetchReportResultRows(request).iterateAll()) { * // doThingsWith(element); * } @@ -1020,10 +1020,10 @@ public final FetchReportResultRowsPagedResponse fetchReportResultRows( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * reportServiceClient.fetchReportResultRowsPagedCallable().futureCall(request); * // Do something. - * for (Report.DataTable.Row element : future.get().iterateAll()) { + * for (ReportDataTable.Row element : future.get().iterateAll()) { * // doThingsWith(element); * } * } @@ -1058,7 +1058,7 @@ public final FetchReportResultRowsPagedResponse fetchReportResultRows( * while (true) { * FetchReportResultRowsResponse response = * reportServiceClient.fetchReportResultRowsCallable().call(request); - * for (Report.DataTable.Row element : response.getRowsList()) { + * for (ReportDataTable.Row element : response.getRowsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1183,13 +1183,13 @@ public static class FetchReportResultRowsPagedResponse extends AbstractPagedListResponse< FetchReportResultRowsRequest, FetchReportResultRowsResponse, - Report.DataTable.Row, + ReportDataTable.Row, FetchReportResultRowsPage, FetchReportResultRowsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - FetchReportResultRowsRequest, FetchReportResultRowsResponse, Report.DataTable.Row> + FetchReportResultRowsRequest, FetchReportResultRowsResponse, ReportDataTable.Row> context, ApiFuture futureResponse) { ApiFuture futurePage = @@ -1209,12 +1209,12 @@ public static class FetchReportResultRowsPage extends AbstractPage< FetchReportResultRowsRequest, FetchReportResultRowsResponse, - Report.DataTable.Row, + ReportDataTable.Row, FetchReportResultRowsPage> { private FetchReportResultRowsPage( PageContext< - FetchReportResultRowsRequest, FetchReportResultRowsResponse, Report.DataTable.Row> + FetchReportResultRowsRequest, FetchReportResultRowsResponse, ReportDataTable.Row> context, FetchReportResultRowsResponse response) { super(context, response); @@ -1227,7 +1227,7 @@ private static FetchReportResultRowsPage createEmptyPage() { @Override protected FetchReportResultRowsPage createPage( PageContext< - FetchReportResultRowsRequest, FetchReportResultRowsResponse, Report.DataTable.Row> + FetchReportResultRowsRequest, FetchReportResultRowsResponse, ReportDataTable.Row> context, FetchReportResultRowsResponse response) { return new FetchReportResultRowsPage(context, response); @@ -1236,7 +1236,7 @@ protected FetchReportResultRowsPage createPage( @Override public ApiFuture createPageAsync( PageContext< - FetchReportResultRowsRequest, FetchReportResultRowsResponse, Report.DataTable.Row> + FetchReportResultRowsRequest, FetchReportResultRowsResponse, ReportDataTable.Row> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1247,7 +1247,7 @@ public static class FetchReportResultRowsFixedSizeCollection extends AbstractFixedSizeCollection< FetchReportResultRowsRequest, FetchReportResultRowsResponse, - Report.DataTable.Row, + ReportDataTable.Row, FetchReportResultRowsPage, FetchReportResultRowsFixedSizeCollection> { diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java new file mode 100644 index 000000000000..d353e469e4cf --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java @@ -0,0 +1,1386 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.SiteServiceStub; +import com.google.ads.admanager.v1.stub.SiteServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `Site` objects. + * + *

    This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

    {@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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    + *   SiteName name = SiteName.of("[NETWORK_CODE]", "[SITE]");
    + *   Site response = siteServiceClient.getSite(name);
    + * }
    + * }
    + * + *

    Note: close() needs to be called on the SiteServiceClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Methods
    MethodDescriptionMethod Variants

    GetSite

    API to retrieve a `Site` object.

    + *

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

    + *
      + *
    • getSite(GetSiteRequest request) + *

    + *

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

    + *
      + *
    • getSite(SiteName name) + *

    • getSite(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.

    + *
      + *
    • getSiteCallable() + *

    + *

    ListSites

    API to retrieve a list of `Site` objects.

    + *

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

    + *
      + *
    • listSites(ListSitesRequest request) + *

    + *

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

    + *
      + *
    • listSites(NetworkName parent) + *

    • listSites(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.

    + *
      + *
    • listSitesPagedCallable() + *

    • listSitesCallable() + *

    + *

    CreateSite

    API to create a `Site` object.

    + *

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

    + *
      + *
    • createSite(CreateSiteRequest request) + *

    + *

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

    + *
      + *
    • createSite(NetworkName parent, Site site) + *

    • createSite(String parent, Site site) + *

    + *

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

    + *
      + *
    • createSiteCallable() + *

    + *

    BatchCreateSites

    API to batch create `Site` objects.

    + *

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

    + *
      + *
    • batchCreateSites(NetworkName parent, List<CreateSiteRequest> requests) + *

    • batchCreateSites(String parent, List<CreateSiteRequest> requests) + *

    • batchCreateSites(BatchCreateSitesRequest request) + *

    + *

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

    + *
      + *
    • batchCreateSitesCallable() + *

    + *

    UpdateSite

    API to update a `Site` object.

    + *

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

    + *
      + *
    • updateSite(UpdateSiteRequest request) + *

    + *

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

    + *
      + *
    • updateSite(Site site, 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.

    + *
      + *
    • updateSiteCallable() + *

    + *

    BatchUpdateSites

    API to batch update `Site` objects.

    + *

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

    + *
      + *
    • batchUpdateSites(NetworkName parent, List<UpdateSiteRequest> requests) + *

    • batchUpdateSites(String parent, List<UpdateSiteRequest> requests) + *

    • batchUpdateSites(BatchUpdateSitesRequest request) + *

    + *

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

    + *
      + *
    • batchUpdateSitesCallable() + *

    + *

    BatchDeactivateSites

    Deactivates a list of `Site` objects.

    + *

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

    + *
      + *
    • batchDeactivateSites(BatchDeactivateSitesRequest request) + *

    + *

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

    + *
      + *
    • batchDeactivateSites(NetworkName parent, List<String> names) + *

    • batchDeactivateSites(String parent, List<String> names) + *

    + *

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

    + *
      + *
    • batchDeactivateSitesCallable() + *

    + *

    BatchSubmitSitesForApproval

    Submits a list of `Site` objects for approval.

    + *

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

    + *
      + *
    • batchSubmitSitesForApproval(BatchSubmitSitesForApprovalRequest request) + *

    + *

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

    + *
      + *
    • batchSubmitSitesForApproval(NetworkName parent, List<String> names) + *

    • batchSubmitSitesForApproval(String parent, List<String> names) + *

    + *

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

    + *
      + *
    • batchSubmitSitesForApprovalCallable() + *

    + *
    + * + *

    See the individual methods for example code. + * + *

    Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

    This class can be customized by passing in a custom instance of SiteServiceSettings to + * create(). For example: + * + *

    To customize credentials: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * SiteServiceSettings siteServiceSettings =
    + *     SiteServiceSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * SiteServiceClient siteServiceClient = SiteServiceClient.create(siteServiceSettings);
    + * }
    + * + *

    To customize the endpoint: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * SiteServiceSettings siteServiceSettings =
    + *     SiteServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * SiteServiceClient siteServiceClient = SiteServiceClient.create(siteServiceSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class SiteServiceClient implements BackgroundResource { + private final SiteServiceSettings settings; + private final SiteServiceStub stub; + + /** Constructs an instance of SiteServiceClient with default settings. */ + public static final SiteServiceClient create() throws IOException { + return create(SiteServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SiteServiceClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SiteServiceClient create(SiteServiceSettings settings) throws IOException { + return new SiteServiceClient(settings); + } + + /** + * Constructs an instance of SiteServiceClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(SiteServiceSettings). + */ + public static final SiteServiceClient create(SiteServiceStub stub) { + return new SiteServiceClient(stub); + } + + /** + * Constructs an instance of SiteServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected SiteServiceClient(SiteServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SiteServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected SiteServiceClient(SiteServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SiteServiceSettings getSettings() { + return settings; + } + + public SiteServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   SiteName name = SiteName.of("[NETWORK_CODE]", "[SITE]");
    +   *   Site response = siteServiceClient.getSite(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name of the Site. Format: + * `networks/{network_code}/sites/{site_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Site getSite(SiteName name) { + GetSiteRequest request = + GetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSite(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   String name = SiteName.of("[NETWORK_CODE]", "[SITE]").toString();
    +   *   Site response = siteServiceClient.getSite(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name of the Site. Format: + * `networks/{network_code}/sites/{site_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Site getSite(String name) { + GetSiteRequest request = GetSiteRequest.newBuilder().setName(name).build(); + return getSite(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   GetSiteRequest request =
    +   *       GetSiteRequest.newBuilder()
    +   *           .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString())
    +   *           .build();
    +   *   Site response = siteServiceClient.getSite(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 Site getSite(GetSiteRequest request) { + return getSiteCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   GetSiteRequest request =
    +   *       GetSiteRequest.newBuilder()
    +   *           .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString())
    +   *           .build();
    +   *   ApiFuture future = siteServiceClient.getSiteCallable().futureCall(request);
    +   *   // Do something.
    +   *   Site response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getSiteCallable() { + return stub.getSiteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   for (Site element : siteServiceClient.listSites(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent, which owns this collection of Sites. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSitesPagedResponse listSites(NetworkName parent) { + ListSitesRequest request = + ListSitesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   for (Site element : siteServiceClient.listSites(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent, which owns this collection of Sites. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSitesPagedResponse listSites(String parent) { + ListSitesRequest request = ListSitesRequest.newBuilder().setParent(parent).build(); + return listSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   ListSitesRequest request =
    +   *       ListSitesRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setSkip(3532159)
    +   *           .build();
    +   *   for (Site element : siteServiceClient.listSites(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 ListSitesPagedResponse listSites(ListSitesRequest request) { + return listSitesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   ListSitesRequest request =
    +   *       ListSitesRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setSkip(3532159)
    +   *           .build();
    +   *   ApiFuture future = siteServiceClient.listSitesPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (Site element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable listSitesPagedCallable() { + return stub.listSitesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   ListSitesRequest request =
    +   *       ListSitesRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setSkip(3532159)
    +   *           .build();
    +   *   while (true) {
    +   *     ListSitesResponse response = siteServiceClient.listSitesCallable().call(request);
    +   *     for (Site element : response.getSitesList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable listSitesCallable() { + return stub.listSitesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   Site site = Site.newBuilder().build();
    +   *   Site response = siteServiceClient.createSite(parent, site);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this `Site` will be created. Format: + * `networks/{network_code}` + * @param site Required. The `Site` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Site createSite(NetworkName parent, Site site) { + CreateSiteRequest request = + CreateSiteRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSite(site) + .build(); + return createSite(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   Site site = Site.newBuilder().build();
    +   *   Site response = siteServiceClient.createSite(parent, site);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this `Site` will be created. Format: + * `networks/{network_code}` + * @param site Required. The `Site` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Site createSite(String parent, Site site) { + CreateSiteRequest request = + CreateSiteRequest.newBuilder().setParent(parent).setSite(site).build(); + return createSite(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   CreateSiteRequest request =
    +   *       CreateSiteRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setSite(Site.newBuilder().build())
    +   *           .build();
    +   *   Site response = siteServiceClient.createSite(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 Site createSite(CreateSiteRequest request) { + return createSiteCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   CreateSiteRequest request =
    +   *       CreateSiteRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setSite(Site.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = siteServiceClient.createSiteCallable().futureCall(request);
    +   *   // Do something.
    +   *   Site response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable createSiteCallable() { + return stub.createSiteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   List requests = new ArrayList<>();
    +   *   BatchCreateSitesResponse response = siteServiceClient.batchCreateSites(parent, requests);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where `Sites` will be created. Format: + * `networks/{network_code}` The parent field in the CreateSiteRequest must match this field. + * @param requests Required. The `Site` objects to create. A maximum of 100 objects can be created + * in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateSitesResponse batchCreateSites( + NetworkName parent, List requests) { + BatchCreateSitesRequest request = + BatchCreateSitesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchCreateSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   List requests = new ArrayList<>();
    +   *   BatchCreateSitesResponse response = siteServiceClient.batchCreateSites(parent, requests);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where `Sites` will be created. Format: + * `networks/{network_code}` The parent field in the CreateSiteRequest must match this field. + * @param requests Required. The `Site` objects to create. A maximum of 100 objects can be created + * in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateSitesResponse batchCreateSites( + String parent, List requests) { + BatchCreateSitesRequest request = + BatchCreateSitesRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return batchCreateSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   BatchCreateSitesRequest request =
    +   *       BatchCreateSitesRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   BatchCreateSitesResponse response = siteServiceClient.batchCreateSites(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 BatchCreateSitesResponse batchCreateSites(BatchCreateSitesRequest request) { + return batchCreateSitesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   BatchCreateSitesRequest request =
    +   *       BatchCreateSitesRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       siteServiceClient.batchCreateSitesCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchCreateSitesResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + batchCreateSitesCallable() { + return stub.batchCreateSitesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   Site site = Site.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   Site response = siteServiceClient.updateSite(site, updateMask);
    +   * }
    +   * }
    + * + * @param site Required. The `Site` to update. + *

    The `Site`'s `name` is used to identify the `Site` to update. + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Site updateSite(Site site, FieldMask updateMask) { + UpdateSiteRequest request = + UpdateSiteRequest.newBuilder().setSite(site).setUpdateMask(updateMask).build(); + return updateSite(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   UpdateSiteRequest request =
    +   *       UpdateSiteRequest.newBuilder()
    +   *           .setSite(Site.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   Site response = siteServiceClient.updateSite(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 Site updateSite(UpdateSiteRequest request) { + return updateSiteCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `Site` object. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   UpdateSiteRequest request =
    +   *       UpdateSiteRequest.newBuilder()
    +   *           .setSite(Site.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = siteServiceClient.updateSiteCallable().futureCall(request);
    +   *   // Do something.
    +   *   Site response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable updateSiteCallable() { + return stub.updateSiteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   List requests = new ArrayList<>();
    +   *   BatchUpdateSitesResponse response = siteServiceClient.batchUpdateSites(parent, requests);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where `Sites` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateSiteRequest must match this field. + * @param requests Required. The `Site` objects to update. A maximum of 100 objects can be updated + * in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateSitesResponse batchUpdateSites( + NetworkName parent, List requests) { + BatchUpdateSitesRequest request = + BatchUpdateSitesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchUpdateSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   List requests = new ArrayList<>();
    +   *   BatchUpdateSitesResponse response = siteServiceClient.batchUpdateSites(parent, requests);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where `Sites` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateSiteRequest must match this field. + * @param requests Required. The `Site` objects to update. A maximum of 100 objects can be updated + * in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateSitesResponse batchUpdateSites( + String parent, List requests) { + BatchUpdateSitesRequest request = + BatchUpdateSitesRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return batchUpdateSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   BatchUpdateSitesRequest request =
    +   *       BatchUpdateSitesRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   BatchUpdateSitesResponse response = siteServiceClient.batchUpdateSites(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 BatchUpdateSitesResponse batchUpdateSites(BatchUpdateSitesRequest request) { + return batchUpdateSitesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   BatchUpdateSitesRequest request =
    +   *       BatchUpdateSitesRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       siteServiceClient.batchUpdateSitesCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchUpdateSitesResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + batchUpdateSitesCallable() { + return stub.batchUpdateSitesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   List names = new ArrayList<>();
    +   *   BatchDeactivateSitesResponse response = siteServiceClient.batchDeactivateSites(parent, names);
    +   * }
    +   * }
    + * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `Site` objects to deactivate. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateSitesResponse batchDeactivateSites( + NetworkName parent, List names) { + BatchDeactivateSitesRequest request = + BatchDeactivateSitesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchDeactivateSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   List names = new ArrayList<>();
    +   *   BatchDeactivateSitesResponse response = siteServiceClient.batchDeactivateSites(parent, names);
    +   * }
    +   * }
    + * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `Site` objects to deactivate. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateSitesResponse batchDeactivateSites( + String parent, List names) { + BatchDeactivateSitesRequest request = + BatchDeactivateSitesRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchDeactivateSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   BatchDeactivateSitesRequest request =
    +   *       BatchDeactivateSitesRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllNames(new ArrayList())
    +   *           .build();
    +   *   BatchDeactivateSitesResponse response = siteServiceClient.batchDeactivateSites(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 BatchDeactivateSitesResponse batchDeactivateSites( + BatchDeactivateSitesRequest request) { + return batchDeactivateSitesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `Site` objects. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   BatchDeactivateSitesRequest request =
    +   *       BatchDeactivateSitesRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllNames(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       siteServiceClient.batchDeactivateSitesCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchDeactivateSitesResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + batchDeactivateSitesCallable() { + return stub.batchDeactivateSitesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits a list of `Site` objects for approval. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   List names = new ArrayList<>();
    +   *   BatchSubmitSitesForApprovalResponse response =
    +   *       siteServiceClient.batchSubmitSitesForApproval(parent, names);
    +   * }
    +   * }
    + * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `Site` objects to submit for approval. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchSubmitSitesForApprovalResponse batchSubmitSitesForApproval( + NetworkName parent, List names) { + BatchSubmitSitesForApprovalRequest request = + BatchSubmitSitesForApprovalRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchSubmitSitesForApproval(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits a list of `Site` objects for approval. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   List names = new ArrayList<>();
    +   *   BatchSubmitSitesForApprovalResponse response =
    +   *       siteServiceClient.batchSubmitSitesForApproval(parent, names);
    +   * }
    +   * }
    + * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `Site` objects to submit for approval. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchSubmitSitesForApprovalResponse batchSubmitSitesForApproval( + String parent, List names) { + BatchSubmitSitesForApprovalRequest request = + BatchSubmitSitesForApprovalRequest.newBuilder() + .setParent(parent) + .addAllNames(names) + .build(); + return batchSubmitSitesForApproval(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits a list of `Site` objects for approval. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   BatchSubmitSitesForApprovalRequest request =
    +   *       BatchSubmitSitesForApprovalRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllNames(new ArrayList())
    +   *           .build();
    +   *   BatchSubmitSitesForApprovalResponse response =
    +   *       siteServiceClient.batchSubmitSitesForApproval(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 BatchSubmitSitesForApprovalResponse batchSubmitSitesForApproval( + BatchSubmitSitesForApprovalRequest request) { + return batchSubmitSitesForApprovalCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits a list of `Site` objects for approval. + * + *

    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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    +   *   BatchSubmitSitesForApprovalRequest request =
    +   *       BatchSubmitSitesForApprovalRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllNames(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       siteServiceClient.batchSubmitSitesForApprovalCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchSubmitSitesForApprovalResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable< + BatchSubmitSitesForApprovalRequest, BatchSubmitSitesForApprovalResponse> + batchSubmitSitesForApprovalCallable() { + return stub.batchSubmitSitesForApprovalCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListSitesPagedResponse + extends AbstractPagedListResponse< + ListSitesRequest, ListSitesResponse, Site, ListSitesPage, ListSitesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSitesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSitesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSitesPagedResponse(ListSitesPage page) { + super(page, ListSitesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSitesPage + extends AbstractPage { + + private ListSitesPage( + PageContext context, + ListSitesResponse response) { + super(context, response); + } + + private static ListSitesPage createEmptyPage() { + return new ListSitesPage(null, null); + } + + @Override + protected ListSitesPage createPage( + PageContext context, + ListSitesResponse response) { + return new ListSitesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSitesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSitesRequest, ListSitesResponse, Site, ListSitesPage, ListSitesFixedSizeCollection> { + + private ListSitesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSitesFixedSizeCollection createEmptyCollection() { + return new ListSitesFixedSizeCollection(null, 0); + } + + @Override + protected ListSitesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSitesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceSettings.java new file mode 100644 index 000000000000..6f945e5f6d45 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceSettings.java @@ -0,0 +1,280 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.SiteServiceClient.ListSitesPagedResponse; + +import com.google.ads.admanager.v1.stub.SiteServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SiteServiceClient}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getSite: + * + *

    {@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
    + * SiteServiceSettings.Builder siteServiceSettingsBuilder = SiteServiceSettings.newBuilder();
    + * siteServiceSettingsBuilder
    + *     .getSiteSettings()
    + *     .setRetrySettings(
    + *         siteServiceSettingsBuilder
    + *             .getSiteSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * SiteServiceSettings siteServiceSettings = siteServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class SiteServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getSite. */ + public UnaryCallSettings getSiteSettings() { + return ((SiteServiceStubSettings) getStubSettings()).getSiteSettings(); + } + + /** Returns the object with the settings used for calls to listSites. */ + public PagedCallSettings + listSitesSettings() { + return ((SiteServiceStubSettings) getStubSettings()).listSitesSettings(); + } + + /** Returns the object with the settings used for calls to createSite. */ + public UnaryCallSettings createSiteSettings() { + return ((SiteServiceStubSettings) getStubSettings()).createSiteSettings(); + } + + /** Returns the object with the settings used for calls to batchCreateSites. */ + public UnaryCallSettings + batchCreateSitesSettings() { + return ((SiteServiceStubSettings) getStubSettings()).batchCreateSitesSettings(); + } + + /** Returns the object with the settings used for calls to updateSite. */ + public UnaryCallSettings updateSiteSettings() { + return ((SiteServiceStubSettings) getStubSettings()).updateSiteSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateSites. */ + public UnaryCallSettings + batchUpdateSitesSettings() { + return ((SiteServiceStubSettings) getStubSettings()).batchUpdateSitesSettings(); + } + + /** Returns the object with the settings used for calls to batchDeactivateSites. */ + public UnaryCallSettings + batchDeactivateSitesSettings() { + return ((SiteServiceStubSettings) getStubSettings()).batchDeactivateSitesSettings(); + } + + /** Returns the object with the settings used for calls to batchSubmitSitesForApproval. */ + public UnaryCallSettings + batchSubmitSitesForApprovalSettings() { + return ((SiteServiceStubSettings) getStubSettings()).batchSubmitSitesForApprovalSettings(); + } + + public static final SiteServiceSettings create(SiteServiceStubSettings stub) throws IOException { + return new SiteServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SiteServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SiteServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SiteServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SiteServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SiteServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SiteServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SiteServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SiteServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SiteServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SiteServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SiteServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SiteServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SiteServiceStubSettings.newBuilder()); + } + + public SiteServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SiteServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getSite. */ + public UnaryCallSettings.Builder getSiteSettings() { + return getStubSettingsBuilder().getSiteSettings(); + } + + /** Returns the builder for the settings used for calls to listSites. */ + public PagedCallSettings.Builder + listSitesSettings() { + return getStubSettingsBuilder().listSitesSettings(); + } + + /** Returns the builder for the settings used for calls to createSite. */ + public UnaryCallSettings.Builder createSiteSettings() { + return getStubSettingsBuilder().createSiteSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateSites. */ + public UnaryCallSettings.Builder + batchCreateSitesSettings() { + return getStubSettingsBuilder().batchCreateSitesSettings(); + } + + /** Returns the builder for the settings used for calls to updateSite. */ + public UnaryCallSettings.Builder updateSiteSettings() { + return getStubSettingsBuilder().updateSiteSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateSites. */ + public UnaryCallSettings.Builder + batchUpdateSitesSettings() { + return getStubSettingsBuilder().batchUpdateSitesSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeactivateSites. */ + public UnaryCallSettings.Builder + batchDeactivateSitesSettings() { + return getStubSettingsBuilder().batchDeactivateSitesSettings(); + } + + /** Returns the builder for the settings used for calls to batchSubmitSitesForApproval. */ + public UnaryCallSettings.Builder< + BatchSubmitSitesForApprovalRequest, BatchSubmitSitesForApprovalResponse> + batchSubmitSitesForApprovalSettings() { + return getStubSettingsBuilder().batchSubmitSitesForApprovalSettings(); + } + + @Override + public SiteServiceSettings build() throws IOException { + return new SiteServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java new file mode 100644 index 000000000000..9310a6af52f5 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java @@ -0,0 +1,1381 @@ +/* + * Copyright 2025 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.TeamServiceStub; +import com.google.ads.admanager.v1.stub.TeamServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `Team` objects. + * + *

    This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

    {@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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    + *   TeamName name = TeamName.of("[NETWORK_CODE]", "[TEAM]");
    + *   Team response = teamServiceClient.getTeam(name);
    + * }
    + * }
    + * + *

    Note: close() needs to be called on the TeamServiceClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Methods
    MethodDescriptionMethod Variants

    GetTeam

    API to retrieve a `Team` object.

    + *

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

    + *
      + *
    • getTeam(GetTeamRequest request) + *

    + *

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

    + *
      + *
    • getTeam(TeamName name) + *

    • getTeam(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.

    + *
      + *
    • getTeamCallable() + *

    + *

    ListTeams

    API to retrieve a list of `Team` objects.

    + *

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

    + *
      + *
    • listTeams(ListTeamsRequest request) + *

    + *

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

    + *
      + *
    • listTeams(NetworkName parent) + *

    • listTeams(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.

    + *
      + *
    • listTeamsPagedCallable() + *

    • listTeamsCallable() + *

    + *

    CreateTeam

    API to create a `Team` object.

    + *

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

    + *
      + *
    • createTeam(CreateTeamRequest request) + *

    + *

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

    + *
      + *
    • createTeam(NetworkName parent, Team team) + *

    • createTeam(String parent, Team team) + *

    + *

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

    + *
      + *
    • createTeamCallable() + *

    + *

    BatchCreateTeams

    API to batch create `Team` objects.

    + *

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

    + *
      + *
    • batchCreateTeams(NetworkName parent, List<CreateTeamRequest> requests) + *

    • batchCreateTeams(String parent, List<CreateTeamRequest> requests) + *

    • batchCreateTeams(BatchCreateTeamsRequest request) + *

    + *

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

    + *
      + *
    • batchCreateTeamsCallable() + *

    + *

    UpdateTeam

    API to update a `Team` object.

    + *

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

    + *
      + *
    • updateTeam(UpdateTeamRequest request) + *

    + *

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

    + *
      + *
    • updateTeam(Team team, 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.

    + *
      + *
    • updateTeamCallable() + *

    + *

    BatchUpdateTeams

    API to batch update `Team` objects.

    + *

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

    + *
      + *
    • batchUpdateTeams(NetworkName parent, List<UpdateTeamRequest> requests) + *

    • batchUpdateTeams(String parent, List<UpdateTeamRequest> requests) + *

    • batchUpdateTeams(BatchUpdateTeamsRequest request) + *

    + *

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

    + *
      + *
    • batchUpdateTeamsCallable() + *

    + *

    BatchActivateTeams

    API to batch activate `Team` objects.

    + *

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

    + *
      + *
    • batchActivateTeams(BatchActivateTeamsRequest request) + *

    + *

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

    + *
      + *
    • batchActivateTeams(NetworkName parent, List<String> names) + *

    • batchActivateTeams(String parent, List<String> names) + *

    + *

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

    + *
      + *
    • batchActivateTeamsCallable() + *

    + *

    BatchDeactivateTeams

    API to batch deactivate `Team` objects.

    + *

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

    + *
      + *
    • batchDeactivateTeams(BatchDeactivateTeamsRequest request) + *

    + *

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

    + *
      + *
    • batchDeactivateTeams(NetworkName parent, List<String> names) + *

    • batchDeactivateTeams(String parent, List<String> names) + *

    + *

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

    + *
      + *
    • batchDeactivateTeamsCallable() + *

    + *
    + * + *

    See the individual methods for example code. + * + *

    Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

    This class can be customized by passing in a custom instance of TeamServiceSettings to + * create(). For example: + * + *

    To customize credentials: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * TeamServiceSettings teamServiceSettings =
    + *     TeamServiceSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * TeamServiceClient teamServiceClient = TeamServiceClient.create(teamServiceSettings);
    + * }
    + * + *

    To customize the endpoint: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * TeamServiceSettings teamServiceSettings =
    + *     TeamServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * TeamServiceClient teamServiceClient = TeamServiceClient.create(teamServiceSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class TeamServiceClient implements BackgroundResource { + private final TeamServiceSettings settings; + private final TeamServiceStub stub; + + /** Constructs an instance of TeamServiceClient with default settings. */ + public static final TeamServiceClient create() throws IOException { + return create(TeamServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TeamServiceClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TeamServiceClient create(TeamServiceSettings settings) throws IOException { + return new TeamServiceClient(settings); + } + + /** + * Constructs an instance of TeamServiceClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(TeamServiceSettings). + */ + public static final TeamServiceClient create(TeamServiceStub stub) { + return new TeamServiceClient(stub); + } + + /** + * Constructs an instance of TeamServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TeamServiceClient(TeamServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TeamServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected TeamServiceClient(TeamServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final TeamServiceSettings getSettings() { + return settings; + } + + public TeamServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   TeamName name = TeamName.of("[NETWORK_CODE]", "[TEAM]");
    +   *   Team response = teamServiceClient.getTeam(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name of the Team. Format: + * `networks/{network_code}/teams/{team_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Team getTeam(TeamName name) { + GetTeamRequest request = + GetTeamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTeam(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   String name = TeamName.of("[NETWORK_CODE]", "[TEAM]").toString();
    +   *   Team response = teamServiceClient.getTeam(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name of the Team. Format: + * `networks/{network_code}/teams/{team_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Team getTeam(String name) { + GetTeamRequest request = GetTeamRequest.newBuilder().setName(name).build(); + return getTeam(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   GetTeamRequest request =
    +   *       GetTeamRequest.newBuilder()
    +   *           .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString())
    +   *           .build();
    +   *   Team response = teamServiceClient.getTeam(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 Team getTeam(GetTeamRequest request) { + return getTeamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   GetTeamRequest request =
    +   *       GetTeamRequest.newBuilder()
    +   *           .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString())
    +   *           .build();
    +   *   ApiFuture future = teamServiceClient.getTeamCallable().futureCall(request);
    +   *   // Do something.
    +   *   Team response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getTeamCallable() { + return stub.getTeamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   for (Team element : teamServiceClient.listTeams(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent, which owns this collection of Teams. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTeamsPagedResponse listTeams(NetworkName parent) { + ListTeamsRequest request = + ListTeamsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   for (Team element : teamServiceClient.listTeams(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent, which owns this collection of Teams. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTeamsPagedResponse listTeams(String parent) { + ListTeamsRequest request = ListTeamsRequest.newBuilder().setParent(parent).build(); + return listTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   ListTeamsRequest request =
    +   *       ListTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setSkip(3532159)
    +   *           .build();
    +   *   for (Team element : teamServiceClient.listTeams(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 ListTeamsPagedResponse listTeams(ListTeamsRequest request) { + return listTeamsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   ListTeamsRequest request =
    +   *       ListTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setSkip(3532159)
    +   *           .build();
    +   *   ApiFuture future = teamServiceClient.listTeamsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (Team element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable listTeamsPagedCallable() { + return stub.listTeamsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   ListTeamsRequest request =
    +   *       ListTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setSkip(3532159)
    +   *           .build();
    +   *   while (true) {
    +   *     ListTeamsResponse response = teamServiceClient.listTeamsCallable().call(request);
    +   *     for (Team element : response.getTeamsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable listTeamsCallable() { + return stub.listTeamsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   Team team = Team.newBuilder().build();
    +   *   Team response = teamServiceClient.createTeam(parent, team);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this `Team` will be created. Format: + * `networks/{network_code}` + * @param team Required. The `Team` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Team createTeam(NetworkName parent, Team team) { + CreateTeamRequest request = + CreateTeamRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTeam(team) + .build(); + return createTeam(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   Team team = Team.newBuilder().build();
    +   *   Team response = teamServiceClient.createTeam(parent, team);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this `Team` will be created. Format: + * `networks/{network_code}` + * @param team Required. The `Team` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Team createTeam(String parent, Team team) { + CreateTeamRequest request = + CreateTeamRequest.newBuilder().setParent(parent).setTeam(team).build(); + return createTeam(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   CreateTeamRequest request =
    +   *       CreateTeamRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setTeam(Team.newBuilder().build())
    +   *           .build();
    +   *   Team response = teamServiceClient.createTeam(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 Team createTeam(CreateTeamRequest request) { + return createTeamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   CreateTeamRequest request =
    +   *       CreateTeamRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .setTeam(Team.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = teamServiceClient.createTeamCallable().futureCall(request);
    +   *   // Do something.
    +   *   Team response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable createTeamCallable() { + return stub.createTeamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   List requests = new ArrayList<>();
    +   *   BatchCreateTeamsResponse response = teamServiceClient.batchCreateTeams(parent, requests);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where `Teams` will be created. Format: + * `networks/{network_code}` The parent field in the CreateTeamRequest must match this field. + * @param requests Required. The `Team` objects to create. A maximum of 100 objects can be created + * in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateTeamsResponse batchCreateTeams( + NetworkName parent, List requests) { + BatchCreateTeamsRequest request = + BatchCreateTeamsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchCreateTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   List requests = new ArrayList<>();
    +   *   BatchCreateTeamsResponse response = teamServiceClient.batchCreateTeams(parent, requests);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where `Teams` will be created. Format: + * `networks/{network_code}` The parent field in the CreateTeamRequest must match this field. + * @param requests Required. The `Team` objects to create. A maximum of 100 objects can be created + * in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateTeamsResponse batchCreateTeams( + String parent, List requests) { + BatchCreateTeamsRequest request = + BatchCreateTeamsRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return batchCreateTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   BatchCreateTeamsRequest request =
    +   *       BatchCreateTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   BatchCreateTeamsResponse response = teamServiceClient.batchCreateTeams(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 BatchCreateTeamsResponse batchCreateTeams(BatchCreateTeamsRequest request) { + return batchCreateTeamsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   BatchCreateTeamsRequest request =
    +   *       BatchCreateTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       teamServiceClient.batchCreateTeamsCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchCreateTeamsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + batchCreateTeamsCallable() { + return stub.batchCreateTeamsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   Team team = Team.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   Team response = teamServiceClient.updateTeam(team, updateMask);
    +   * }
    +   * }
    + * + * @param team Required. The `Team` to update. + *

    The `Team`'s `name` is used to identify the `Team` to update. + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Team updateTeam(Team team, FieldMask updateMask) { + UpdateTeamRequest request = + UpdateTeamRequest.newBuilder().setTeam(team).setUpdateMask(updateMask).build(); + return updateTeam(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   UpdateTeamRequest request =
    +   *       UpdateTeamRequest.newBuilder()
    +   *           .setTeam(Team.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   Team response = teamServiceClient.updateTeam(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 Team updateTeam(UpdateTeamRequest request) { + return updateTeamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `Team` object. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   UpdateTeamRequest request =
    +   *       UpdateTeamRequest.newBuilder()
    +   *           .setTeam(Team.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = teamServiceClient.updateTeamCallable().futureCall(request);
    +   *   // Do something.
    +   *   Team response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable updateTeamCallable() { + return stub.updateTeamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   List requests = new ArrayList<>();
    +   *   BatchUpdateTeamsResponse response = teamServiceClient.batchUpdateTeams(parent, requests);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where `Teams` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateTeamRequest must match this field. + * @param requests Required. The `Team` objects to update. A maximum of 100 objects can be updated + * in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateTeamsResponse batchUpdateTeams( + NetworkName parent, List requests) { + BatchUpdateTeamsRequest request = + BatchUpdateTeamsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchUpdateTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   List requests = new ArrayList<>();
    +   *   BatchUpdateTeamsResponse response = teamServiceClient.batchUpdateTeams(parent, requests);
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where `Teams` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateTeamRequest must match this field. + * @param requests Required. The `Team` objects to update. A maximum of 100 objects can be updated + * in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateTeamsResponse batchUpdateTeams( + String parent, List requests) { + BatchUpdateTeamsRequest request = + BatchUpdateTeamsRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return batchUpdateTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   BatchUpdateTeamsRequest request =
    +   *       BatchUpdateTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   BatchUpdateTeamsResponse response = teamServiceClient.batchUpdateTeams(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 BatchUpdateTeamsResponse batchUpdateTeams(BatchUpdateTeamsRequest request) { + return batchUpdateTeamsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   BatchUpdateTeamsRequest request =
    +   *       BatchUpdateTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       teamServiceClient.batchUpdateTeamsCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchUpdateTeamsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + batchUpdateTeamsCallable() { + return stub.batchUpdateTeamsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   List names = new ArrayList<>();
    +   *   BatchActivateTeamsResponse response = teamServiceClient.batchActivateTeams(parent, names);
    +   * }
    +   * }
    + * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `Team`s to activate. Format: + * `networks/{network_code}/teams/{team_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivateTeamsResponse batchActivateTeams( + NetworkName parent, List names) { + BatchActivateTeamsRequest request = + BatchActivateTeamsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchActivateTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   List names = new ArrayList<>();
    +   *   BatchActivateTeamsResponse response = teamServiceClient.batchActivateTeams(parent, names);
    +   * }
    +   * }
    + * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `Team`s to activate. Format: + * `networks/{network_code}/teams/{team_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivateTeamsResponse batchActivateTeams(String parent, List names) { + BatchActivateTeamsRequest request = + BatchActivateTeamsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchActivateTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   BatchActivateTeamsRequest request =
    +   *       BatchActivateTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllNames(new ArrayList())
    +   *           .build();
    +   *   BatchActivateTeamsResponse response = teamServiceClient.batchActivateTeams(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 BatchActivateTeamsResponse batchActivateTeams(BatchActivateTeamsRequest request) { + return batchActivateTeamsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   BatchActivateTeamsRequest request =
    +   *       BatchActivateTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllNames(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       teamServiceClient.batchActivateTeamsCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchActivateTeamsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + batchActivateTeamsCallable() { + return stub.batchActivateTeamsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch deactivate `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
    +   *   List names = new ArrayList<>();
    +   *   BatchDeactivateTeamsResponse response = teamServiceClient.batchDeactivateTeams(parent, names);
    +   * }
    +   * }
    + * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `Team`s to deactivate. Format: + * `networks/{network_code}/teams/{team_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateTeamsResponse batchDeactivateTeams( + NetworkName parent, List names) { + BatchDeactivateTeamsRequest request = + BatchDeactivateTeamsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchDeactivateTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch deactivate `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
    +   *   List names = new ArrayList<>();
    +   *   BatchDeactivateTeamsResponse response = teamServiceClient.batchDeactivateTeams(parent, names);
    +   * }
    +   * }
    + * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `Team`s to deactivate. Format: + * `networks/{network_code}/teams/{team_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateTeamsResponse batchDeactivateTeams( + String parent, List names) { + BatchDeactivateTeamsRequest request = + BatchDeactivateTeamsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchDeactivateTeams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch deactivate `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   BatchDeactivateTeamsRequest request =
    +   *       BatchDeactivateTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllNames(new ArrayList())
    +   *           .build();
    +   *   BatchDeactivateTeamsResponse response = teamServiceClient.batchDeactivateTeams(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 BatchDeactivateTeamsResponse batchDeactivateTeams( + BatchDeactivateTeamsRequest request) { + return batchDeactivateTeamsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch deactivate `Team` objects. + * + *

    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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    +   *   BatchDeactivateTeamsRequest request =
    +   *       BatchDeactivateTeamsRequest.newBuilder()
    +   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
    +   *           .addAllNames(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       teamServiceClient.batchDeactivateTeamsCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchDeactivateTeamsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + batchDeactivateTeamsCallable() { + return stub.batchDeactivateTeamsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListTeamsPagedResponse + extends AbstractPagedListResponse< + ListTeamsRequest, ListTeamsResponse, Team, ListTeamsPage, ListTeamsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTeamsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListTeamsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListTeamsPagedResponse(ListTeamsPage page) { + super(page, ListTeamsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTeamsPage + extends AbstractPage { + + private ListTeamsPage( + PageContext context, + ListTeamsResponse response) { + super(context, response); + } + + private static ListTeamsPage createEmptyPage() { + return new ListTeamsPage(null, null); + } + + @Override + protected ListTeamsPage createPage( + PageContext context, + ListTeamsResponse response) { + return new ListTeamsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTeamsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTeamsRequest, ListTeamsResponse, Team, ListTeamsPage, ListTeamsFixedSizeCollection> { + + private ListTeamsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTeamsFixedSizeCollection createEmptyCollection() { + return new ListTeamsFixedSizeCollection(null, 0); + } + + @Override + protected ListTeamsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTeamsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceSettings.java new file mode 100644 index 000000000000..2ee9b238b844 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceSettings.java @@ -0,0 +1,279 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.TeamServiceClient.ListTeamsPagedResponse; + +import com.google.ads.admanager.v1.stub.TeamServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TeamServiceClient}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getTeam: + * + *

    {@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
    + * TeamServiceSettings.Builder teamServiceSettingsBuilder = TeamServiceSettings.newBuilder();
    + * teamServiceSettingsBuilder
    + *     .getTeamSettings()
    + *     .setRetrySettings(
    + *         teamServiceSettingsBuilder
    + *             .getTeamSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * TeamServiceSettings teamServiceSettings = teamServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class TeamServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getTeam. */ + public UnaryCallSettings getTeamSettings() { + return ((TeamServiceStubSettings) getStubSettings()).getTeamSettings(); + } + + /** Returns the object with the settings used for calls to listTeams. */ + public PagedCallSettings + listTeamsSettings() { + return ((TeamServiceStubSettings) getStubSettings()).listTeamsSettings(); + } + + /** Returns the object with the settings used for calls to createTeam. */ + public UnaryCallSettings createTeamSettings() { + return ((TeamServiceStubSettings) getStubSettings()).createTeamSettings(); + } + + /** Returns the object with the settings used for calls to batchCreateTeams. */ + public UnaryCallSettings + batchCreateTeamsSettings() { + return ((TeamServiceStubSettings) getStubSettings()).batchCreateTeamsSettings(); + } + + /** Returns the object with the settings used for calls to updateTeam. */ + public UnaryCallSettings updateTeamSettings() { + return ((TeamServiceStubSettings) getStubSettings()).updateTeamSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateTeams. */ + public UnaryCallSettings + batchUpdateTeamsSettings() { + return ((TeamServiceStubSettings) getStubSettings()).batchUpdateTeamsSettings(); + } + + /** Returns the object with the settings used for calls to batchActivateTeams. */ + public UnaryCallSettings + batchActivateTeamsSettings() { + return ((TeamServiceStubSettings) getStubSettings()).batchActivateTeamsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeactivateTeams. */ + public UnaryCallSettings + batchDeactivateTeamsSettings() { + return ((TeamServiceStubSettings) getStubSettings()).batchDeactivateTeamsSettings(); + } + + public static final TeamServiceSettings create(TeamServiceStubSettings stub) throws IOException { + return new TeamServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TeamServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TeamServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TeamServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TeamServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TeamServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TeamServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TeamServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TeamServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TeamServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TeamServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(TeamServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TeamServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TeamServiceStubSettings.newBuilder()); + } + + public TeamServiceStubSettings.Builder getStubSettingsBuilder() { + return ((TeamServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getTeam. */ + public UnaryCallSettings.Builder getTeamSettings() { + return getStubSettingsBuilder().getTeamSettings(); + } + + /** Returns the builder for the settings used for calls to listTeams. */ + public PagedCallSettings.Builder + listTeamsSettings() { + return getStubSettingsBuilder().listTeamsSettings(); + } + + /** Returns the builder for the settings used for calls to createTeam. */ + public UnaryCallSettings.Builder createTeamSettings() { + return getStubSettingsBuilder().createTeamSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateTeams. */ + public UnaryCallSettings.Builder + batchCreateTeamsSettings() { + return getStubSettingsBuilder().batchCreateTeamsSettings(); + } + + /** Returns the builder for the settings used for calls to updateTeam. */ + public UnaryCallSettings.Builder updateTeamSettings() { + return getStubSettingsBuilder().updateTeamSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateTeams. */ + public UnaryCallSettings.Builder + batchUpdateTeamsSettings() { + return getStubSettingsBuilder().batchUpdateTeamsSettings(); + } + + /** Returns the builder for the settings used for calls to batchActivateTeams. */ + public UnaryCallSettings.Builder + batchActivateTeamsSettings() { + return getStubSettingsBuilder().batchActivateTeamsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeactivateTeams. */ + public UnaryCallSettings.Builder + batchDeactivateTeamsSettings() { + return getStubSettingsBuilder().batchDeactivateTeamsSettings(); + } + + @Override + public TeamServiceSettings build() throws IOException { + return new TeamServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json index 78fb448743de..08137559a626 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json @@ -29,6 +29,24 @@ } } }, + "AdReviewCenterAdService": { + "clients": { + "grpc": { + "libraryClient": "AdReviewCenterAdServiceClient", + "rpcs": { + "BatchAllowAdReviewCenterAds": { + "methods": ["batchAllowAdReviewCenterAdsAsync", "batchAllowAdReviewCenterAdsAsync", "batchAllowAdReviewCenterAdsAsync", "batchAllowAdReviewCenterAdsOperationCallable", "batchAllowAdReviewCenterAdsCallable"] + }, + "BatchBlockAdReviewCenterAds": { + "methods": ["batchBlockAdReviewCenterAdsAsync", "batchBlockAdReviewCenterAdsAsync", "batchBlockAdReviewCenterAdsAsync", "batchBlockAdReviewCenterAdsOperationCallable", "batchBlockAdReviewCenterAdsCallable"] + }, + "SearchAdReviewCenterAds": { + "methods": ["searchAdReviewCenterAds", "searchAdReviewCenterAds", "searchAdReviewCenterAds", "searchAdReviewCenterAdsPagedCallable", "searchAdReviewCenterAdsCallable"] + } + } + } + } + }, "AdUnitService": { "clients": { "grpc": { @@ -47,6 +65,36 @@ } } }, + "ApplicationService": { + "clients": { + "grpc": { + "libraryClient": "ApplicationServiceClient", + "rpcs": { + "GetApplication": { + "methods": ["getApplication", "getApplication", "getApplication", "getApplicationCallable"] + }, + "ListApplications": { + "methods": ["listApplications", "listApplications", "listApplications", "listApplicationsPagedCallable", "listApplicationsCallable"] + } + } + } + } + }, + "AudienceSegmentService": { + "clients": { + "grpc": { + "libraryClient": "AudienceSegmentServiceClient", + "rpcs": { + "GetAudienceSegment": { + "methods": ["getAudienceSegment", "getAudienceSegment", "getAudienceSegment", "getAudienceSegmentCallable"] + }, + "ListAudienceSegments": { + "methods": ["listAudienceSegments", "listAudienceSegments", "listAudienceSegments", "listAudienceSegmentsPagedCallable", "listAudienceSegmentsCallable"] + } + } + } + } + }, "BandwidthGroupService": { "clients": { "grpc": { @@ -62,6 +110,66 @@ } } }, + "BrowserLanguageService": { + "clients": { + "grpc": { + "libraryClient": "BrowserLanguageServiceClient", + "rpcs": { + "GetBrowserLanguage": { + "methods": ["getBrowserLanguage", "getBrowserLanguage", "getBrowserLanguage", "getBrowserLanguageCallable"] + }, + "ListBrowserLanguages": { + "methods": ["listBrowserLanguages", "listBrowserLanguages", "listBrowserLanguages", "listBrowserLanguagesPagedCallable", "listBrowserLanguagesCallable"] + } + } + } + } + }, + "BrowserService": { + "clients": { + "grpc": { + "libraryClient": "BrowserServiceClient", + "rpcs": { + "GetBrowser": { + "methods": ["getBrowser", "getBrowser", "getBrowser", "getBrowserCallable"] + }, + "ListBrowsers": { + "methods": ["listBrowsers", "listBrowsers", "listBrowsers", "listBrowsersPagedCallable", "listBrowsersCallable"] + } + } + } + } + }, + "CmsMetadataKeyService": { + "clients": { + "grpc": { + "libraryClient": "CmsMetadataKeyServiceClient", + "rpcs": { + "GetCmsMetadataKey": { + "methods": ["getCmsMetadataKey", "getCmsMetadataKey", "getCmsMetadataKey", "getCmsMetadataKeyCallable"] + }, + "ListCmsMetadataKeys": { + "methods": ["listCmsMetadataKeys", "listCmsMetadataKeys", "listCmsMetadataKeys", "listCmsMetadataKeysPagedCallable", "listCmsMetadataKeysCallable"] + } + } + } + } + }, + "CmsMetadataValueService": { + "clients": { + "grpc": { + "libraryClient": "CmsMetadataValueServiceClient", + "rpcs": { + "GetCmsMetadataValue": { + "methods": ["getCmsMetadataValue", "getCmsMetadataValue", "getCmsMetadataValue", "getCmsMetadataValueCallable"] + }, + "ListCmsMetadataValues": { + "methods": ["listCmsMetadataValues", "listCmsMetadataValues", "listCmsMetadataValues", "listCmsMetadataValuesPagedCallable", "listCmsMetadataValuesCallable"] + } + } + } + } + }, "CompanyService": { "clients": { "grpc": { @@ -77,16 +185,121 @@ } } }, + "ContactService": { + "clients": { + "grpc": { + "libraryClient": "ContactServiceClient", + "rpcs": { + "BatchCreateContacts": { + "methods": ["batchCreateContacts", "batchCreateContacts", "batchCreateContacts", "batchCreateContactsCallable"] + }, + "BatchUpdateContacts": { + "methods": ["batchUpdateContacts", "batchUpdateContacts", "batchUpdateContacts", "batchUpdateContactsCallable"] + }, + "CreateContact": { + "methods": ["createContact", "createContact", "createContact", "createContactCallable"] + }, + "GetContact": { + "methods": ["getContact", "getContact", "getContact", "getContactCallable"] + }, + "ListContacts": { + "methods": ["listContacts", "listContacts", "listContacts", "listContactsPagedCallable", "listContactsCallable"] + }, + "UpdateContact": { + "methods": ["updateContact", "updateContact", "updateContactCallable"] + } + } + } + } + }, + "ContentBundleService": { + "clients": { + "grpc": { + "libraryClient": "ContentBundleServiceClient", + "rpcs": { + "GetContentBundle": { + "methods": ["getContentBundle", "getContentBundle", "getContentBundle", "getContentBundleCallable"] + }, + "ListContentBundles": { + "methods": ["listContentBundles", "listContentBundles", "listContentBundles", "listContentBundlesPagedCallable", "listContentBundlesCallable"] + } + } + } + } + }, + "ContentLabelService": { + "clients": { + "grpc": { + "libraryClient": "ContentLabelServiceClient", + "rpcs": { + "GetContentLabel": { + "methods": ["getContentLabel", "getContentLabel", "getContentLabel", "getContentLabelCallable"] + }, + "ListContentLabels": { + "methods": ["listContentLabels", "listContentLabels", "listContentLabels", "listContentLabelsPagedCallable", "listContentLabelsCallable"] + } + } + } + } + }, + "ContentService": { + "clients": { + "grpc": { + "libraryClient": "ContentServiceClient", + "rpcs": { + "GetContent": { + "methods": ["getContent", "getContent", "getContent", "getContentCallable"] + }, + "ListContent": { + "methods": ["listContent", "listContent", "listContent", "listContentPagedCallable", "listContentCallable"] + } + } + } + } + }, + "CreativeTemplateService": { + "clients": { + "grpc": { + "libraryClient": "CreativeTemplateServiceClient", + "rpcs": { + "GetCreativeTemplate": { + "methods": ["getCreativeTemplate", "getCreativeTemplate", "getCreativeTemplate", "getCreativeTemplateCallable"] + }, + "ListCreativeTemplates": { + "methods": ["listCreativeTemplates", "listCreativeTemplates", "listCreativeTemplates", "listCreativeTemplatesPagedCallable", "listCreativeTemplatesCallable"] + } + } + } + } + }, "CustomFieldService": { "clients": { "grpc": { "libraryClient": "CustomFieldServiceClient", "rpcs": { + "BatchActivateCustomFields": { + "methods": ["batchActivateCustomFields", "batchActivateCustomFields", "batchActivateCustomFields", "batchActivateCustomFieldsCallable"] + }, + "BatchCreateCustomFields": { + "methods": ["batchCreateCustomFields", "batchCreateCustomFields", "batchCreateCustomFields", "batchCreateCustomFieldsCallable"] + }, + "BatchDeactivateCustomFields": { + "methods": ["batchDeactivateCustomFields", "batchDeactivateCustomFields", "batchDeactivateCustomFields", "batchDeactivateCustomFieldsCallable"] + }, + "BatchUpdateCustomFields": { + "methods": ["batchUpdateCustomFields", "batchUpdateCustomFields", "batchUpdateCustomFields", "batchUpdateCustomFieldsCallable"] + }, + "CreateCustomField": { + "methods": ["createCustomField", "createCustomField", "createCustomField", "createCustomFieldCallable"] + }, "GetCustomField": { "methods": ["getCustomField", "getCustomField", "getCustomField", "getCustomFieldCallable"] }, "ListCustomFields": { "methods": ["listCustomFields", "listCustomFields", "listCustomFields", "listCustomFieldsPagedCallable", "listCustomFieldsCallable"] + }, + "UpdateCustomField": { + "methods": ["updateCustomField", "updateCustomField", "updateCustomFieldCallable"] } } } @@ -122,6 +335,21 @@ } } }, + "DeviceCapabilityService": { + "clients": { + "grpc": { + "libraryClient": "DeviceCapabilityServiceClient", + "rpcs": { + "GetDeviceCapability": { + "methods": ["getDeviceCapability", "getDeviceCapability", "getDeviceCapability", "getDeviceCapabilityCallable"] + }, + "ListDeviceCapabilities": { + "methods": ["listDeviceCapabilities", "listDeviceCapabilities", "listDeviceCapabilities", "listDeviceCapabilitiesPagedCallable", "listDeviceCapabilitiesCallable"] + } + } + } + } + }, "DeviceCategoryService": { "clients": { "grpc": { @@ -137,6 +365,21 @@ } } }, + "DeviceManufacturerService": { + "clients": { + "grpc": { + "libraryClient": "DeviceManufacturerServiceClient", + "rpcs": { + "GetDeviceManufacturer": { + "methods": ["getDeviceManufacturer", "getDeviceManufacturer", "getDeviceManufacturer", "getDeviceManufacturerCallable"] + }, + "ListDeviceManufacturers": { + "methods": ["listDeviceManufacturers", "listDeviceManufacturers", "listDeviceManufacturers", "listDeviceManufacturersPagedCallable", "listDeviceManufacturersCallable"] + } + } + } + } + }, "EntitySignalsMappingService": { "clients": { "grpc": { @@ -179,6 +422,51 @@ } } }, + "MobileCarrierService": { + "clients": { + "grpc": { + "libraryClient": "MobileCarrierServiceClient", + "rpcs": { + "GetMobileCarrier": { + "methods": ["getMobileCarrier", "getMobileCarrier", "getMobileCarrier", "getMobileCarrierCallable"] + }, + "ListMobileCarriers": { + "methods": ["listMobileCarriers", "listMobileCarriers", "listMobileCarriers", "listMobileCarriersPagedCallable", "listMobileCarriersCallable"] + } + } + } + } + }, + "MobileDeviceService": { + "clients": { + "grpc": { + "libraryClient": "MobileDeviceServiceClient", + "rpcs": { + "GetMobileDevice": { + "methods": ["getMobileDevice", "getMobileDevice", "getMobileDevice", "getMobileDeviceCallable"] + }, + "ListMobileDevices": { + "methods": ["listMobileDevices", "listMobileDevices", "listMobileDevices", "listMobileDevicesPagedCallable", "listMobileDevicesCallable"] + } + } + } + } + }, + "MobileDeviceSubmodelService": { + "clients": { + "grpc": { + "libraryClient": "MobileDeviceSubmodelServiceClient", + "rpcs": { + "GetMobileDeviceSubmodel": { + "methods": ["getMobileDeviceSubmodel", "getMobileDeviceSubmodel", "getMobileDeviceSubmodel", "getMobileDeviceSubmodelCallable"] + }, + "ListMobileDeviceSubmodels": { + "methods": ["listMobileDeviceSubmodels", "listMobileDeviceSubmodels", "listMobileDeviceSubmodels", "listMobileDeviceSubmodelsPagedCallable", "listMobileDeviceSubmodelsCallable"] + } + } + } + } + }, "NetworkService": { "clients": { "grpc": { @@ -244,11 +532,32 @@ "grpc": { "libraryClient": "PlacementServiceClient", "rpcs": { + "BatchActivatePlacements": { + "methods": ["batchActivatePlacements", "batchActivatePlacements", "batchActivatePlacements", "batchActivatePlacementsCallable"] + }, + "BatchArchivePlacements": { + "methods": ["batchArchivePlacements", "batchArchivePlacements", "batchArchivePlacements", "batchArchivePlacementsCallable"] + }, + "BatchCreatePlacements": { + "methods": ["batchCreatePlacements", "batchCreatePlacements", "batchCreatePlacements", "batchCreatePlacementsCallable"] + }, + "BatchDeactivatePlacements": { + "methods": ["batchDeactivatePlacements", "batchDeactivatePlacements", "batchDeactivatePlacements", "batchDeactivatePlacementsCallable"] + }, + "BatchUpdatePlacements": { + "methods": ["batchUpdatePlacements", "batchUpdatePlacements", "batchUpdatePlacements", "batchUpdatePlacementsCallable"] + }, + "CreatePlacement": { + "methods": ["createPlacement", "createPlacement", "createPlacement", "createPlacementCallable"] + }, "GetPlacement": { "methods": ["getPlacement", "getPlacement", "getPlacement", "getPlacementCallable"] }, "ListPlacements": { "methods": ["listPlacements", "listPlacements", "listPlacements", "listPlacementsPagedCallable", "listPlacementsCallable"] + }, + "UpdatePlacement": { + "methods": ["updatePlacement", "updatePlacement", "updatePlacementCallable"] } } } @@ -353,6 +662,39 @@ } } }, + "SiteService": { + "clients": { + "grpc": { + "libraryClient": "SiteServiceClient", + "rpcs": { + "BatchCreateSites": { + "methods": ["batchCreateSites", "batchCreateSites", "batchCreateSites", "batchCreateSitesCallable"] + }, + "BatchDeactivateSites": { + "methods": ["batchDeactivateSites", "batchDeactivateSites", "batchDeactivateSites", "batchDeactivateSitesCallable"] + }, + "BatchSubmitSitesForApproval": { + "methods": ["batchSubmitSitesForApproval", "batchSubmitSitesForApproval", "batchSubmitSitesForApproval", "batchSubmitSitesForApprovalCallable"] + }, + "BatchUpdateSites": { + "methods": ["batchUpdateSites", "batchUpdateSites", "batchUpdateSites", "batchUpdateSitesCallable"] + }, + "CreateSite": { + "methods": ["createSite", "createSite", "createSite", "createSiteCallable"] + }, + "GetSite": { + "methods": ["getSite", "getSite", "getSite", "getSiteCallable"] + }, + "ListSites": { + "methods": ["listSites", "listSites", "listSites", "listSitesPagedCallable", "listSitesCallable"] + }, + "UpdateSite": { + "methods": ["updateSite", "updateSite", "updateSiteCallable"] + } + } + } + } + }, "TaxonomyCategoryService": { "clients": { "grpc": { @@ -368,6 +710,39 @@ } } }, + "TeamService": { + "clients": { + "grpc": { + "libraryClient": "TeamServiceClient", + "rpcs": { + "BatchActivateTeams": { + "methods": ["batchActivateTeams", "batchActivateTeams", "batchActivateTeams", "batchActivateTeamsCallable"] + }, + "BatchCreateTeams": { + "methods": ["batchCreateTeams", "batchCreateTeams", "batchCreateTeams", "batchCreateTeamsCallable"] + }, + "BatchDeactivateTeams": { + "methods": ["batchDeactivateTeams", "batchDeactivateTeams", "batchDeactivateTeams", "batchDeactivateTeamsCallable"] + }, + "BatchUpdateTeams": { + "methods": ["batchUpdateTeams", "batchUpdateTeams", "batchUpdateTeams", "batchUpdateTeamsCallable"] + }, + "CreateTeam": { + "methods": ["createTeam", "createTeam", "createTeam", "createTeamCallable"] + }, + "GetTeam": { + "methods": ["getTeam", "getTeam", "getTeam", "getTeamCallable"] + }, + "ListTeams": { + "methods": ["listTeams", "listTeams", "listTeams", "listTeamsPagedCallable", "listTeamsCallable"] + }, + "UpdateTeam": { + "methods": ["updateTeam", "updateTeam", "updateTeamCallable"] + } + } + } + } + }, "UserService": { "clients": { "grpc": { diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java index f188f89a58fb..bc441d5874ee 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java @@ -37,6 +37,28 @@ * } * } * + *

    ======================= AdReviewCenterAdServiceClient ======================= + * + *

    Service Description: Provides methods for handling AdReviewCenterAd objects. + * + *

    Sample for AdReviewCenterAdServiceClient: + * + *

    {@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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
    + *     AdReviewCenterAdServiceClient.create()) {
    + *   WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]");
    + *   for (AdReviewCenterAd element :
    + *       adReviewCenterAdServiceClient.searchAdReviewCenterAds(parent).iterateAll()) {
    + *     // doThingsWith(element);
    + *   }
    + * }
    + * }
    + * *

    ======================= AdUnitServiceClient ======================= * *

    Service Description: Provides methods for handling AdUnit objects. @@ -55,6 +77,43 @@ * } * } * + *

    ======================= ApplicationServiceClient ======================= + * + *

    Service Description: Provides methods for handling `Application` objects. + * + *

    Sample for ApplicationServiceClient: + * + *

    {@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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
    + *   ApplicationName name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]");
    + *   Application response = applicationServiceClient.getApplication(name);
    + * }
    + * }
    + * + *

    ======================= AudienceSegmentServiceClient ======================= + * + *

    Service Description: Provides methods for handling `AudienceSegment` objects. + * + *

    Sample for AudienceSegmentServiceClient: + * + *

    {@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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
    + *     AudienceSegmentServiceClient.create()) {
    + *   AudienceSegmentName name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]");
    + *   AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(name);
    + * }
    + * }
    + * *

    ======================= BandwidthGroupServiceClient ======================= * *

    Service Description: Provides methods for handling `BandwidthGroup` objects. @@ -74,6 +133,81 @@ * } * } * + *

    ======================= BrowserLanguageServiceClient ======================= + * + *

    Service Description: Provides methods for handling `BrowserLanguage` objects. + * + *

    Sample for BrowserLanguageServiceClient: + * + *

    {@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 (BrowserLanguageServiceClient browserLanguageServiceClient =
    + *     BrowserLanguageServiceClient.create()) {
    + *   BrowserLanguageName name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]");
    + *   BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(name);
    + * }
    + * }
    + * + *

    ======================= BrowserServiceClient ======================= + * + *

    Service Description: Provides methods for handling `Browser` objects. + * + *

    Sample for BrowserServiceClient: + * + *

    {@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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
    + *   BrowserName name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]");
    + *   Browser response = browserServiceClient.getBrowser(name);
    + * }
    + * }
    + * + *

    ======================= CmsMetadataKeyServiceClient ======================= + * + *

    Service Description: Provides methods for handling `CmsMetadataKey` objects. + * + *

    Sample for CmsMetadataKeyServiceClient: + * + *

    {@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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
    + *     CmsMetadataKeyServiceClient.create()) {
    + *   CmsMetadataKeyName name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]");
    + *   CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(name);
    + * }
    + * }
    + * + *

    ======================= CmsMetadataValueServiceClient ======================= + * + *

    Service Description: Provides methods for handling `CmsMetadataValue` objects. + * + *

    Sample for CmsMetadataValueServiceClient: + * + *

    {@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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
    + *     CmsMetadataValueServiceClient.create()) {
    + *   CmsMetadataValueName name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]");
    + *   CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(name);
    + * }
    + * }
    + * *

    ======================= CompanyServiceClient ======================= * *

    Service Description: Provides methods for handling `Company` objects. @@ -92,6 +226,98 @@ * } * } * + *

    ======================= ContactServiceClient ======================= + * + *

    Service Description: Provides methods for handling `Contact` objects. + * + *

    Sample for ContactServiceClient: + * + *

    {@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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
    + *   ContactName name = ContactName.of("[NETWORK_CODE]", "[CONTACT]");
    + *   Contact response = contactServiceClient.getContact(name);
    + * }
    + * }
    + * + *

    ======================= ContentBundleServiceClient ======================= + * + *

    Service Description: Provides methods for handling `ContentBundle` objects. + * + *

    Sample for ContentBundleServiceClient: + * + *

    {@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 (ContentBundleServiceClient contentBundleServiceClient =
    + *     ContentBundleServiceClient.create()) {
    + *   ContentBundleName name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]");
    + *   ContentBundle response = contentBundleServiceClient.getContentBundle(name);
    + * }
    + * }
    + * + *

    ======================= ContentLabelServiceClient ======================= + * + *

    Service Description: Provides methods for handling `ContentLabel` objects. + * + *

    Sample for ContentLabelServiceClient: + * + *

    {@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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
    + *   ContentLabelName name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]");
    + *   ContentLabel response = contentLabelServiceClient.getContentLabel(name);
    + * }
    + * }
    + * + *

    ======================= ContentServiceClient ======================= + * + *

    Service Description: Provides methods for handling `Content` objects. + * + *

    Sample for ContentServiceClient: + * + *

    {@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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
    + *   ContentName name = ContentName.of("[NETWORK_CODE]", "[CONTENT]");
    + *   Content response = contentServiceClient.getContent(name);
    + * }
    + * }
    + * + *

    ======================= CreativeTemplateServiceClient ======================= + * + *

    Service Description: Provides methods for handling `CreativeTemplate` objects. + * + *

    Sample for CreativeTemplateServiceClient: + * + *

    {@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 (CreativeTemplateServiceClient creativeTemplateServiceClient =
    + *     CreativeTemplateServiceClient.create()) {
    + *   CreativeTemplateName name = CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]");
    + *   CreativeTemplate response = creativeTemplateServiceClient.getCreativeTemplate(name);
    + * }
    + * }
    + * *

    ======================= CustomFieldServiceClient ======================= * *

    Service Description: Provides methods for handling `CustomField` objects. @@ -151,6 +377,25 @@ * } * } * + *

    ======================= DeviceCapabilityServiceClient ======================= + * + *

    Service Description: Provides methods for handling `DeviceCapability` objects. + * + *

    Sample for DeviceCapabilityServiceClient: + * + *

    {@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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient =
    + *     DeviceCapabilityServiceClient.create()) {
    + *   DeviceCapabilityName name = DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]");
    + *   DeviceCapability response = deviceCapabilityServiceClient.getDeviceCapability(name);
    + * }
    + * }
    + * *

    ======================= DeviceCategoryServiceClient ======================= * *

    Service Description: Provides methods for handling `DeviceCategory` objects. @@ -170,6 +415,26 @@ * } * } * + *

    ======================= DeviceManufacturerServiceClient ======================= + * + *

    Service Description: Provides methods for handling `DeviceManufacturer` objects. + * + *

    Sample for DeviceManufacturerServiceClient: + * + *

    {@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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient =
    + *     DeviceManufacturerServiceClient.create()) {
    + *   DeviceManufacturerName name =
    + *       DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]");
    + *   DeviceManufacturer response = deviceManufacturerServiceClient.getDeviceManufacturer(name);
    + * }
    + * }
    + * *

    ======================= EntitySignalsMappingServiceClient ======================= * *

    Service Description: Provides methods for handling `EntitySignalsMapping` objects. @@ -209,6 +474,64 @@ * } * } * + *

    ======================= MobileCarrierServiceClient ======================= + * + *

    Service Description: Provides methods for handling `MobileCarrier` objects. + * + *

    Sample for MobileCarrierServiceClient: + * + *

    {@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 (MobileCarrierServiceClient mobileCarrierServiceClient =
    + *     MobileCarrierServiceClient.create()) {
    + *   MobileCarrierName name = MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]");
    + *   MobileCarrier response = mobileCarrierServiceClient.getMobileCarrier(name);
    + * }
    + * }
    + * + *

    ======================= MobileDeviceServiceClient ======================= + * + *

    Service Description: Provides methods for handling `MobileDevice` objects. + * + *

    Sample for MobileDeviceServiceClient: + * + *

    {@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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) {
    + *   MobileDeviceName name = MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]");
    + *   MobileDevice response = mobileDeviceServiceClient.getMobileDevice(name);
    + * }
    + * }
    + * + *

    ======================= MobileDeviceSubmodelServiceClient ======================= + * + *

    Service Description: Provides methods for handling `MobileDeviceSubmodel` objects. + * + *

    Sample for MobileDeviceSubmodelServiceClient: + * + *

    {@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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient =
    + *     MobileDeviceSubmodelServiceClient.create()) {
    + *   MobileDeviceSubmodelName name =
    + *       MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]");
    + *   MobileDeviceSubmodel response =
    + *       mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodel(name);
    + * }
    + * }
    + * *

    ======================= NetworkServiceClient ======================= * *

    Service Description: Provides methods for handling `Network` objects. @@ -398,6 +721,24 @@ * } * } * + *

    ======================= SiteServiceClient ======================= + * + *

    Service Description: Provides methods for handling `Site` objects. + * + *

    Sample for SiteServiceClient: + * + *

    {@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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) {
    + *   SiteName name = SiteName.of("[NETWORK_CODE]", "[SITE]");
    + *   Site response = siteServiceClient.getSite(name);
    + * }
    + * }
    + * *

    ======================= TaxonomyCategoryServiceClient ======================= * *

    Service Description: Provides methods for handling `TaxonomyCategory` objects. @@ -417,6 +758,24 @@ * } * } * + *

    ======================= TeamServiceClient ======================= + * + *

    Service Description: Provides methods for handling `Team` objects. + * + *

    Sample for TeamServiceClient: + * + *

    {@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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) {
    + *   TeamName name = TeamName.of("[NETWORK_CODE]", "[TEAM]");
    + *   Team response = teamServiceClient.getTeam(name);
    + * }
    + * }
    + * *

    ======================= UserServiceClient ======================= * *

    Service Description: Provides methods for handling User objects. diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStub.java new file mode 100644 index 000000000000..6e5dac9598fe --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStub.java @@ -0,0 +1,91 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.AdReviewCenterAdServiceClient.SearchAdReviewCenterAdsPagedResponse; + +import com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AdReviewCenterAdService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class AdReviewCenterAdServiceStub implements BackgroundResource { + + public OperationsStub getHttpJsonOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getHttpJsonOperationsStub()"); + } + + public UnaryCallable + searchAdReviewCenterAdsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchAdReviewCenterAdsPagedCallable()"); + } + + public UnaryCallable + searchAdReviewCenterAdsCallable() { + throw new UnsupportedOperationException("Not implemented: searchAdReviewCenterAdsCallable()"); + } + + public OperationCallable< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchAllowAdReviewCenterAdsOperationCallable()"); + } + + public UnaryCallable + batchAllowAdReviewCenterAdsCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchAllowAdReviewCenterAdsCallable()"); + } + + public OperationCallable< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchBlockAdReviewCenterAdsOperationCallable()"); + } + + public UnaryCallable + batchBlockAdReviewCenterAdsCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchBlockAdReviewCenterAdsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java new file mode 100644 index 000000000000..b38b27e3141a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java @@ -0,0 +1,598 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.AdReviewCenterAdServiceClient.SearchAdReviewCenterAdsPagedResponse; + +import com.google.ads.admanager.v1.AdReviewCenterAd; +import com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.httpjson.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AdReviewCenterAdServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of searchAdReviewCenterAds: + * + *

    {@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
    + * AdReviewCenterAdServiceStubSettings.Builder adReviewCenterAdServiceSettingsBuilder =
    + *     AdReviewCenterAdServiceStubSettings.newBuilder();
    + * adReviewCenterAdServiceSettingsBuilder
    + *     .searchAdReviewCenterAdsSettings()
    + *     .setRetrySettings(
    + *         adReviewCenterAdServiceSettingsBuilder
    + *             .searchAdReviewCenterAdsSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * AdReviewCenterAdServiceStubSettings adReviewCenterAdServiceSettings =
    + *     adReviewCenterAdServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

    To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for batchAllowAdReviewCenterAds: + * + *

    {@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
    + * AdReviewCenterAdServiceStubSettings.Builder adReviewCenterAdServiceSettingsBuilder =
    + *     AdReviewCenterAdServiceStubSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * adReviewCenterAdServiceSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    + */ +@Generated("by gapic-generator-java") +public class AdReviewCenterAdServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final PagedCallSettings< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + SearchAdReviewCenterAdsPagedResponse> + searchAdReviewCenterAdsSettings; + private final UnaryCallSettings + batchAllowAdReviewCenterAdsSettings; + private final OperationCallSettings< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationSettings; + private final UnaryCallSettings + batchBlockAdReviewCenterAdsSettings; + private final OperationCallSettings< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationSettings; + + private static final PagedListDescriptor< + SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse, AdReviewCenterAd> + SEARCH_AD_REVIEW_CENTER_ADS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse, AdReviewCenterAd>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchAdReviewCenterAdsRequest injectToken( + SearchAdReviewCenterAdsRequest payload, String token) { + return SearchAdReviewCenterAdsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchAdReviewCenterAdsRequest injectPageSize( + SearchAdReviewCenterAdsRequest payload, int pageSize) { + return SearchAdReviewCenterAdsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(SearchAdReviewCenterAdsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchAdReviewCenterAdsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchAdReviewCenterAdsResponse payload) { + return payload.getAdReviewCenterAdsList(); + } + }; + + private static final PagedListResponseFactory< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + SearchAdReviewCenterAdsPagedResponse> + SEARCH_AD_REVIEW_CENTER_ADS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + SearchAdReviewCenterAdsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + SearchAdReviewCenterAdsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + AdReviewCenterAd> + pageContext = + PageContext.create( + callable, SEARCH_AD_REVIEW_CENTER_ADS_PAGE_STR_DESC, request, context); + return SearchAdReviewCenterAdsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to searchAdReviewCenterAds. */ + public PagedCallSettings< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + SearchAdReviewCenterAdsPagedResponse> + searchAdReviewCenterAdsSettings() { + return searchAdReviewCenterAdsSettings; + } + + /** Returns the object with the settings used for calls to batchAllowAdReviewCenterAds. */ + public UnaryCallSettings + batchAllowAdReviewCenterAdsSettings() { + return batchAllowAdReviewCenterAdsSettings; + } + + /** Returns the object with the settings used for calls to batchAllowAdReviewCenterAds. */ + public OperationCallSettings< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationSettings() { + return batchAllowAdReviewCenterAdsOperationSettings; + } + + /** Returns the object with the settings used for calls to batchBlockAdReviewCenterAds. */ + public UnaryCallSettings + batchBlockAdReviewCenterAdsSettings() { + return batchBlockAdReviewCenterAdsSettings; + } + + /** Returns the object with the settings used for calls to batchBlockAdReviewCenterAds. */ + public OperationCallSettings< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationSettings() { + return batchBlockAdReviewCenterAdsOperationSettings; + } + + public AdReviewCenterAdServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAdReviewCenterAdServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AdReviewCenterAdServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AdReviewCenterAdServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + searchAdReviewCenterAdsSettings = settingsBuilder.searchAdReviewCenterAdsSettings().build(); + batchAllowAdReviewCenterAdsSettings = + settingsBuilder.batchAllowAdReviewCenterAdsSettings().build(); + batchAllowAdReviewCenterAdsOperationSettings = + settingsBuilder.batchAllowAdReviewCenterAdsOperationSettings().build(); + batchBlockAdReviewCenterAdsSettings = + settingsBuilder.batchBlockAdReviewCenterAdsSettings().build(); + batchBlockAdReviewCenterAdsOperationSettings = + settingsBuilder.batchBlockAdReviewCenterAdsOperationSettings().build(); + } + + /** Builder for AdReviewCenterAdServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + SearchAdReviewCenterAdsPagedResponse> + searchAdReviewCenterAdsSettings; + private final UnaryCallSettings.Builder + batchAllowAdReviewCenterAdsSettings; + private final OperationCallSettings.Builder< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationSettings; + private final UnaryCallSettings.Builder + batchBlockAdReviewCenterAdsSettings; + private final OperationCallSettings.Builder< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + searchAdReviewCenterAdsSettings = + PagedCallSettings.newBuilder(SEARCH_AD_REVIEW_CENTER_ADS_PAGE_STR_FACT); + batchAllowAdReviewCenterAdsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchAllowAdReviewCenterAdsOperationSettings = OperationCallSettings.newBuilder(); + batchBlockAdReviewCenterAdsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchBlockAdReviewCenterAdsOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + searchAdReviewCenterAdsSettings, + batchAllowAdReviewCenterAdsSettings, + batchBlockAdReviewCenterAdsSettings); + initDefaults(this); + } + + protected Builder(AdReviewCenterAdServiceStubSettings settings) { + super(settings); + + searchAdReviewCenterAdsSettings = settings.searchAdReviewCenterAdsSettings.toBuilder(); + batchAllowAdReviewCenterAdsSettings = + settings.batchAllowAdReviewCenterAdsSettings.toBuilder(); + batchAllowAdReviewCenterAdsOperationSettings = + settings.batchAllowAdReviewCenterAdsOperationSettings.toBuilder(); + batchBlockAdReviewCenterAdsSettings = + settings.batchBlockAdReviewCenterAdsSettings.toBuilder(); + batchBlockAdReviewCenterAdsOperationSettings = + settings.batchBlockAdReviewCenterAdsOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + searchAdReviewCenterAdsSettings, + batchAllowAdReviewCenterAdsSettings, + batchBlockAdReviewCenterAdsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .searchAdReviewCenterAdsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchAllowAdReviewCenterAdsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchBlockAdReviewCenterAdsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchAllowAdReviewCenterAdsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchAllowAdReviewCenterAdsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchAdReviewCenterAdsOperationMetadata.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 + .batchBlockAdReviewCenterAdsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchBlockAdReviewCenterAdsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchAdReviewCenterAdsOperationMetadata.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to searchAdReviewCenterAds. */ + public PagedCallSettings.Builder< + SearchAdReviewCenterAdsRequest, + SearchAdReviewCenterAdsResponse, + SearchAdReviewCenterAdsPagedResponse> + searchAdReviewCenterAdsSettings() { + return searchAdReviewCenterAdsSettings; + } + + /** Returns the builder for the settings used for calls to batchAllowAdReviewCenterAds. */ + public UnaryCallSettings.Builder + batchAllowAdReviewCenterAdsSettings() { + return batchAllowAdReviewCenterAdsSettings; + } + + /** Returns the builder for the settings used for calls to batchAllowAdReviewCenterAds. */ + public OperationCallSettings.Builder< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationSettings() { + return batchAllowAdReviewCenterAdsOperationSettings; + } + + /** Returns the builder for the settings used for calls to batchBlockAdReviewCenterAds. */ + public UnaryCallSettings.Builder + batchBlockAdReviewCenterAdsSettings() { + return batchBlockAdReviewCenterAdsSettings; + } + + /** Returns the builder for the settings used for calls to batchBlockAdReviewCenterAds. */ + public OperationCallSettings.Builder< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationSettings() { + return batchBlockAdReviewCenterAdsOperationSettings; + } + + @Override + public AdReviewCenterAdServiceStubSettings build() throws IOException { + return new AdReviewCenterAdServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStub.java new file mode 100644 index 000000000000..2bb30d581a2f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ApplicationServiceClient.ListApplicationsPagedResponse; + +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.GetApplicationRequest; +import com.google.ads.admanager.v1.ListApplicationsRequest; +import com.google.ads.admanager.v1.ListApplicationsResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ApplicationService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ApplicationServiceStub implements BackgroundResource { + + public UnaryCallable getApplicationCallable() { + throw new UnsupportedOperationException("Not implemented: getApplicationCallable()"); + } + + public UnaryCallable + listApplicationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listApplicationsPagedCallable()"); + } + + public UnaryCallable + listApplicationsCallable() { + throw new UnsupportedOperationException("Not implemented: listApplicationsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java new file mode 100644 index 000000000000..f9bf1e9bc53d --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java @@ -0,0 +1,386 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ApplicationServiceClient.ListApplicationsPagedResponse; + +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.GetApplicationRequest; +import com.google.ads.admanager.v1.ListApplicationsRequest; +import com.google.ads.admanager.v1.ListApplicationsResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ApplicationServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getApplication: + * + *

    {@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
    + * ApplicationServiceStubSettings.Builder applicationServiceSettingsBuilder =
    + *     ApplicationServiceStubSettings.newBuilder();
    + * applicationServiceSettingsBuilder
    + *     .getApplicationSettings()
    + *     .setRetrySettings(
    + *         applicationServiceSettingsBuilder
    + *             .getApplicationSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * ApplicationServiceStubSettings applicationServiceSettings =
    + *     applicationServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ApplicationServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getApplicationSettings; + private final PagedCallSettings< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings; + + private static final PagedListDescriptor< + ListApplicationsRequest, ListApplicationsResponse, Application> + LIST_APPLICATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListApplicationsRequest, ListApplicationsResponse, Application>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListApplicationsRequest injectToken( + ListApplicationsRequest payload, String token) { + return ListApplicationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListApplicationsRequest injectPageSize( + ListApplicationsRequest payload, int pageSize) { + return ListApplicationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListApplicationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListApplicationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListApplicationsResponse payload) { + return payload.getApplicationsList(); + } + }; + + private static final PagedListResponseFactory< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + LIST_APPLICATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListApplicationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_APPLICATIONS_PAGE_STR_DESC, request, context); + return ListApplicationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getApplication. */ + public UnaryCallSettings getApplicationSettings() { + return getApplicationSettings; + } + + /** Returns the object with the settings used for calls to listApplications. */ + public PagedCallSettings< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings() { + return listApplicationsSettings; + } + + public ApplicationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonApplicationServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ApplicationServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ApplicationServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getApplicationSettings = settingsBuilder.getApplicationSettings().build(); + listApplicationsSettings = settingsBuilder.listApplicationsSettings().build(); + } + + /** Builder for ApplicationServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getApplicationSettings; + private final PagedCallSettings.Builder< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listApplicationsSettings = PagedCallSettings.newBuilder(LIST_APPLICATIONS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getApplicationSettings, listApplicationsSettings); + initDefaults(this); + } + + protected Builder(ApplicationServiceStubSettings settings) { + super(settings); + + getApplicationSettings = settings.getApplicationSettings.toBuilder(); + listApplicationsSettings = settings.listApplicationsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getApplicationSettings, listApplicationsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listApplicationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getApplication. */ + public UnaryCallSettings.Builder getApplicationSettings() { + return getApplicationSettings; + } + + /** Returns the builder for the settings used for calls to listApplications. */ + public PagedCallSettings.Builder< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings() { + return listApplicationsSettings; + } + + @Override + public ApplicationServiceStubSettings build() throws IOException { + return new ApplicationServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStub.java new file mode 100644 index 000000000000..85f6803d9f15 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.AudienceSegmentServiceClient.ListAudienceSegmentsPagedResponse; + +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.GetAudienceSegmentRequest; +import com.google.ads.admanager.v1.ListAudienceSegmentsRequest; +import com.google.ads.admanager.v1.ListAudienceSegmentsResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AudienceSegmentService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class AudienceSegmentServiceStub implements BackgroundResource { + + public UnaryCallable getAudienceSegmentCallable() { + throw new UnsupportedOperationException("Not implemented: getAudienceSegmentCallable()"); + } + + public UnaryCallable + listAudienceSegmentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAudienceSegmentsPagedCallable()"); + } + + public UnaryCallable + listAudienceSegmentsCallable() { + throw new UnsupportedOperationException("Not implemented: listAudienceSegmentsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java new file mode 100644 index 000000000000..dff91da590bc --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java @@ -0,0 +1,405 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.AudienceSegmentServiceClient.ListAudienceSegmentsPagedResponse; + +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.GetAudienceSegmentRequest; +import com.google.ads.admanager.v1.ListAudienceSegmentsRequest; +import com.google.ads.admanager.v1.ListAudienceSegmentsResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AudienceSegmentServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAudienceSegment: + * + *

    {@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
    + * AudienceSegmentServiceStubSettings.Builder audienceSegmentServiceSettingsBuilder =
    + *     AudienceSegmentServiceStubSettings.newBuilder();
    + * audienceSegmentServiceSettingsBuilder
    + *     .getAudienceSegmentSettings()
    + *     .setRetrySettings(
    + *         audienceSegmentServiceSettingsBuilder
    + *             .getAudienceSegmentSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * AudienceSegmentServiceStubSettings audienceSegmentServiceSettings =
    + *     audienceSegmentServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class AudienceSegmentServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getAudienceSegmentSettings; + private final PagedCallSettings< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + ListAudienceSegmentsPagedResponse> + listAudienceSegmentsSettings; + + private static final PagedListDescriptor< + ListAudienceSegmentsRequest, ListAudienceSegmentsResponse, AudienceSegment> + LIST_AUDIENCE_SEGMENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAudienceSegmentsRequest, ListAudienceSegmentsResponse, AudienceSegment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAudienceSegmentsRequest injectToken( + ListAudienceSegmentsRequest payload, String token) { + return ListAudienceSegmentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAudienceSegmentsRequest injectPageSize( + ListAudienceSegmentsRequest payload, int pageSize) { + return ListAudienceSegmentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAudienceSegmentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAudienceSegmentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAudienceSegmentsResponse payload) { + return payload.getAudienceSegmentsList(); + } + }; + + private static final PagedListResponseFactory< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + ListAudienceSegmentsPagedResponse> + LIST_AUDIENCE_SEGMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + ListAudienceSegmentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAudienceSegmentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAudienceSegmentsRequest, ListAudienceSegmentsResponse, AudienceSegment> + pageContext = + PageContext.create( + callable, LIST_AUDIENCE_SEGMENTS_PAGE_STR_DESC, request, context); + return ListAudienceSegmentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getAudienceSegment. */ + public UnaryCallSettings + getAudienceSegmentSettings() { + return getAudienceSegmentSettings; + } + + /** Returns the object with the settings used for calls to listAudienceSegments. */ + public PagedCallSettings< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + ListAudienceSegmentsPagedResponse> + listAudienceSegmentsSettings() { + return listAudienceSegmentsSettings; + } + + public AudienceSegmentServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAudienceSegmentServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AudienceSegmentServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AudienceSegmentServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getAudienceSegmentSettings = settingsBuilder.getAudienceSegmentSettings().build(); + listAudienceSegmentsSettings = settingsBuilder.listAudienceSegmentsSettings().build(); + } + + /** Builder for AudienceSegmentServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getAudienceSegmentSettings; + private final PagedCallSettings.Builder< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + ListAudienceSegmentsPagedResponse> + listAudienceSegmentsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getAudienceSegmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAudienceSegmentsSettings = + PagedCallSettings.newBuilder(LIST_AUDIENCE_SEGMENTS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getAudienceSegmentSettings, listAudienceSegmentsSettings); + initDefaults(this); + } + + protected Builder(AudienceSegmentServiceStubSettings settings) { + super(settings); + + getAudienceSegmentSettings = settings.getAudienceSegmentSettings.toBuilder(); + listAudienceSegmentsSettings = settings.listAudienceSegmentsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getAudienceSegmentSettings, listAudienceSegmentsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getAudienceSegmentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listAudienceSegmentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getAudienceSegment. */ + public UnaryCallSettings.Builder + getAudienceSegmentSettings() { + return getAudienceSegmentSettings; + } + + /** Returns the builder for the settings used for calls to listAudienceSegments. */ + public PagedCallSettings.Builder< + ListAudienceSegmentsRequest, + ListAudienceSegmentsResponse, + ListAudienceSegmentsPagedResponse> + listAudienceSegmentsSettings() { + return listAudienceSegmentsSettings; + } + + @Override + public AudienceSegmentServiceStubSettings build() throws IOException { + return new AudienceSegmentServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStub.java new file mode 100644 index 000000000000..92382509952e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.BrowserLanguageServiceClient.ListBrowserLanguagesPagedResponse; + +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.GetBrowserLanguageRequest; +import com.google.ads.admanager.v1.ListBrowserLanguagesRequest; +import com.google.ads.admanager.v1.ListBrowserLanguagesResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the BrowserLanguageService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class BrowserLanguageServiceStub implements BackgroundResource { + + public UnaryCallable getBrowserLanguageCallable() { + throw new UnsupportedOperationException("Not implemented: getBrowserLanguageCallable()"); + } + + public UnaryCallable + listBrowserLanguagesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBrowserLanguagesPagedCallable()"); + } + + public UnaryCallable + listBrowserLanguagesCallable() { + throw new UnsupportedOperationException("Not implemented: listBrowserLanguagesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java new file mode 100644 index 000000000000..8db71e556d4f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java @@ -0,0 +1,405 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.BrowserLanguageServiceClient.ListBrowserLanguagesPagedResponse; + +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.GetBrowserLanguageRequest; +import com.google.ads.admanager.v1.ListBrowserLanguagesRequest; +import com.google.ads.admanager.v1.ListBrowserLanguagesResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BrowserLanguageServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getBrowserLanguage: + * + *

    {@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
    + * BrowserLanguageServiceStubSettings.Builder browserLanguageServiceSettingsBuilder =
    + *     BrowserLanguageServiceStubSettings.newBuilder();
    + * browserLanguageServiceSettingsBuilder
    + *     .getBrowserLanguageSettings()
    + *     .setRetrySettings(
    + *         browserLanguageServiceSettingsBuilder
    + *             .getBrowserLanguageSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * BrowserLanguageServiceStubSettings browserLanguageServiceSettings =
    + *     browserLanguageServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class BrowserLanguageServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getBrowserLanguageSettings; + private final PagedCallSettings< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + ListBrowserLanguagesPagedResponse> + listBrowserLanguagesSettings; + + private static final PagedListDescriptor< + ListBrowserLanguagesRequest, ListBrowserLanguagesResponse, BrowserLanguage> + LIST_BROWSER_LANGUAGES_PAGE_STR_DESC = + new PagedListDescriptor< + ListBrowserLanguagesRequest, ListBrowserLanguagesResponse, BrowserLanguage>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBrowserLanguagesRequest injectToken( + ListBrowserLanguagesRequest payload, String token) { + return ListBrowserLanguagesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBrowserLanguagesRequest injectPageSize( + ListBrowserLanguagesRequest payload, int pageSize) { + return ListBrowserLanguagesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBrowserLanguagesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBrowserLanguagesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListBrowserLanguagesResponse payload) { + return payload.getBrowserLanguagesList(); + } + }; + + private static final PagedListResponseFactory< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + ListBrowserLanguagesPagedResponse> + LIST_BROWSER_LANGUAGES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + ListBrowserLanguagesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBrowserLanguagesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListBrowserLanguagesRequest, ListBrowserLanguagesResponse, BrowserLanguage> + pageContext = + PageContext.create( + callable, LIST_BROWSER_LANGUAGES_PAGE_STR_DESC, request, context); + return ListBrowserLanguagesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getBrowserLanguage. */ + public UnaryCallSettings + getBrowserLanguageSettings() { + return getBrowserLanguageSettings; + } + + /** Returns the object with the settings used for calls to listBrowserLanguages. */ + public PagedCallSettings< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + ListBrowserLanguagesPagedResponse> + listBrowserLanguagesSettings() { + return listBrowserLanguagesSettings; + } + + public BrowserLanguageServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonBrowserLanguageServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BrowserLanguageServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BrowserLanguageServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getBrowserLanguageSettings = settingsBuilder.getBrowserLanguageSettings().build(); + listBrowserLanguagesSettings = settingsBuilder.listBrowserLanguagesSettings().build(); + } + + /** Builder for BrowserLanguageServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getBrowserLanguageSettings; + private final PagedCallSettings.Builder< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + ListBrowserLanguagesPagedResponse> + listBrowserLanguagesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getBrowserLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listBrowserLanguagesSettings = + PagedCallSettings.newBuilder(LIST_BROWSER_LANGUAGES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getBrowserLanguageSettings, listBrowserLanguagesSettings); + initDefaults(this); + } + + protected Builder(BrowserLanguageServiceStubSettings settings) { + super(settings); + + getBrowserLanguageSettings = settings.getBrowserLanguageSettings.toBuilder(); + listBrowserLanguagesSettings = settings.listBrowserLanguagesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getBrowserLanguageSettings, listBrowserLanguagesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getBrowserLanguageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBrowserLanguagesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getBrowserLanguage. */ + public UnaryCallSettings.Builder + getBrowserLanguageSettings() { + return getBrowserLanguageSettings; + } + + /** Returns the builder for the settings used for calls to listBrowserLanguages. */ + public PagedCallSettings.Builder< + ListBrowserLanguagesRequest, + ListBrowserLanguagesResponse, + ListBrowserLanguagesPagedResponse> + listBrowserLanguagesSettings() { + return listBrowserLanguagesSettings; + } + + @Override + public BrowserLanguageServiceStubSettings build() throws IOException { + return new BrowserLanguageServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStub.java new file mode 100644 index 000000000000..1b63baee8fbc --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStub.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.BrowserServiceClient.ListBrowsersPagedResponse; + +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.GetBrowserRequest; +import com.google.ads.admanager.v1.ListBrowsersRequest; +import com.google.ads.admanager.v1.ListBrowsersResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the BrowserService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class BrowserServiceStub implements BackgroundResource { + + public UnaryCallable getBrowserCallable() { + throw new UnsupportedOperationException("Not implemented: getBrowserCallable()"); + } + + public UnaryCallable listBrowsersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBrowsersPagedCallable()"); + } + + public UnaryCallable listBrowsersCallable() { + throw new UnsupportedOperationException("Not implemented: listBrowsersCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java new file mode 100644 index 000000000000..0f3cc3086660 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java @@ -0,0 +1,376 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.BrowserServiceClient.ListBrowsersPagedResponse; + +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.GetBrowserRequest; +import com.google.ads.admanager.v1.ListBrowsersRequest; +import com.google.ads.admanager.v1.ListBrowsersResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BrowserServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getBrowser: + * + *

    {@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
    + * BrowserServiceStubSettings.Builder browserServiceSettingsBuilder =
    + *     BrowserServiceStubSettings.newBuilder();
    + * browserServiceSettingsBuilder
    + *     .getBrowserSettings()
    + *     .setRetrySettings(
    + *         browserServiceSettingsBuilder
    + *             .getBrowserSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * BrowserServiceStubSettings browserServiceSettings = browserServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class BrowserServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getBrowserSettings; + private final PagedCallSettings< + ListBrowsersRequest, ListBrowsersResponse, ListBrowsersPagedResponse> + listBrowsersSettings; + + private static final PagedListDescriptor + LIST_BROWSERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBrowsersRequest injectToken(ListBrowsersRequest payload, String token) { + return ListBrowsersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBrowsersRequest injectPageSize(ListBrowsersRequest payload, int pageSize) { + return ListBrowsersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBrowsersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBrowsersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBrowsersResponse payload) { + return payload.getBrowsersList(); + } + }; + + private static final PagedListResponseFactory< + ListBrowsersRequest, ListBrowsersResponse, ListBrowsersPagedResponse> + LIST_BROWSERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBrowsersRequest, ListBrowsersResponse, ListBrowsersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBrowsersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_BROWSERS_PAGE_STR_DESC, request, context); + return ListBrowsersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getBrowser. */ + public UnaryCallSettings getBrowserSettings() { + return getBrowserSettings; + } + + /** Returns the object with the settings used for calls to listBrowsers. */ + public PagedCallSettings + listBrowsersSettings() { + return listBrowsersSettings; + } + + public BrowserServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonBrowserServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BrowserServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BrowserServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getBrowserSettings = settingsBuilder.getBrowserSettings().build(); + listBrowsersSettings = settingsBuilder.listBrowsersSettings().build(); + } + + /** Builder for BrowserServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getBrowserSettings; + private final PagedCallSettings.Builder< + ListBrowsersRequest, ListBrowsersResponse, ListBrowsersPagedResponse> + listBrowsersSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getBrowserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listBrowsersSettings = PagedCallSettings.newBuilder(LIST_BROWSERS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getBrowserSettings, listBrowsersSettings); + initDefaults(this); + } + + protected Builder(BrowserServiceStubSettings settings) { + super(settings); + + getBrowserSettings = settings.getBrowserSettings.toBuilder(); + listBrowsersSettings = settings.listBrowsersSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getBrowserSettings, listBrowsersSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getBrowserSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBrowsersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getBrowser. */ + public UnaryCallSettings.Builder getBrowserSettings() { + return getBrowserSettings; + } + + /** Returns the builder for the settings used for calls to listBrowsers. */ + public PagedCallSettings.Builder< + ListBrowsersRequest, ListBrowsersResponse, ListBrowsersPagedResponse> + listBrowsersSettings() { + return listBrowsersSettings; + } + + @Override + public BrowserServiceStubSettings build() throws IOException { + return new BrowserServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStub.java new file mode 100644 index 000000000000..197260d35312 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.CmsMetadataKeyServiceClient.ListCmsMetadataKeysPagedResponse; + +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.GetCmsMetadataKeyRequest; +import com.google.ads.admanager.v1.ListCmsMetadataKeysRequest; +import com.google.ads.admanager.v1.ListCmsMetadataKeysResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the CmsMetadataKeyService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class CmsMetadataKeyServiceStub implements BackgroundResource { + + public UnaryCallable getCmsMetadataKeyCallable() { + throw new UnsupportedOperationException("Not implemented: getCmsMetadataKeyCallable()"); + } + + public UnaryCallable + listCmsMetadataKeysPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCmsMetadataKeysPagedCallable()"); + } + + public UnaryCallable + listCmsMetadataKeysCallable() { + throw new UnsupportedOperationException("Not implemented: listCmsMetadataKeysCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java new file mode 100644 index 000000000000..f7c900539cc8 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java @@ -0,0 +1,396 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.CmsMetadataKeyServiceClient.ListCmsMetadataKeysPagedResponse; + +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.GetCmsMetadataKeyRequest; +import com.google.ads.admanager.v1.ListCmsMetadataKeysRequest; +import com.google.ads.admanager.v1.ListCmsMetadataKeysResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CmsMetadataKeyServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getCmsMetadataKey: + * + *

    {@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
    + * CmsMetadataKeyServiceStubSettings.Builder cmsMetadataKeyServiceSettingsBuilder =
    + *     CmsMetadataKeyServiceStubSettings.newBuilder();
    + * cmsMetadataKeyServiceSettingsBuilder
    + *     .getCmsMetadataKeySettings()
    + *     .setRetrySettings(
    + *         cmsMetadataKeyServiceSettingsBuilder
    + *             .getCmsMetadataKeySettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * CmsMetadataKeyServiceStubSettings cmsMetadataKeyServiceSettings =
    + *     cmsMetadataKeyServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class CmsMetadataKeyServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getCmsMetadataKeySettings; + private final PagedCallSettings< + ListCmsMetadataKeysRequest, ListCmsMetadataKeysResponse, ListCmsMetadataKeysPagedResponse> + listCmsMetadataKeysSettings; + + private static final PagedListDescriptor< + ListCmsMetadataKeysRequest, ListCmsMetadataKeysResponse, CmsMetadataKey> + LIST_CMS_METADATA_KEYS_PAGE_STR_DESC = + new PagedListDescriptor< + ListCmsMetadataKeysRequest, ListCmsMetadataKeysResponse, CmsMetadataKey>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCmsMetadataKeysRequest injectToken( + ListCmsMetadataKeysRequest payload, String token) { + return ListCmsMetadataKeysRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCmsMetadataKeysRequest injectPageSize( + ListCmsMetadataKeysRequest payload, int pageSize) { + return ListCmsMetadataKeysRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCmsMetadataKeysRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCmsMetadataKeysResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListCmsMetadataKeysResponse payload) { + return payload.getCmsMetadataKeysList(); + } + }; + + private static final PagedListResponseFactory< + ListCmsMetadataKeysRequest, ListCmsMetadataKeysResponse, ListCmsMetadataKeysPagedResponse> + LIST_CMS_METADATA_KEYS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCmsMetadataKeysRequest, + ListCmsMetadataKeysResponse, + ListCmsMetadataKeysPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCmsMetadataKeysRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CMS_METADATA_KEYS_PAGE_STR_DESC, request, context); + return ListCmsMetadataKeysPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getCmsMetadataKey. */ + public UnaryCallSettings getCmsMetadataKeySettings() { + return getCmsMetadataKeySettings; + } + + /** Returns the object with the settings used for calls to listCmsMetadataKeys. */ + public PagedCallSettings< + ListCmsMetadataKeysRequest, ListCmsMetadataKeysResponse, ListCmsMetadataKeysPagedResponse> + listCmsMetadataKeysSettings() { + return listCmsMetadataKeysSettings; + } + + public CmsMetadataKeyServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCmsMetadataKeyServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CmsMetadataKeyServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CmsMetadataKeyServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getCmsMetadataKeySettings = settingsBuilder.getCmsMetadataKeySettings().build(); + listCmsMetadataKeysSettings = settingsBuilder.listCmsMetadataKeysSettings().build(); + } + + /** Builder for CmsMetadataKeyServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getCmsMetadataKeySettings; + private final PagedCallSettings.Builder< + ListCmsMetadataKeysRequest, + ListCmsMetadataKeysResponse, + ListCmsMetadataKeysPagedResponse> + listCmsMetadataKeysSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getCmsMetadataKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCmsMetadataKeysSettings = + PagedCallSettings.newBuilder(LIST_CMS_METADATA_KEYS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getCmsMetadataKeySettings, listCmsMetadataKeysSettings); + initDefaults(this); + } + + protected Builder(CmsMetadataKeyServiceStubSettings settings) { + super(settings); + + getCmsMetadataKeySettings = settings.getCmsMetadataKeySettings.toBuilder(); + listCmsMetadataKeysSettings = settings.listCmsMetadataKeysSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getCmsMetadataKeySettings, listCmsMetadataKeysSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getCmsMetadataKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listCmsMetadataKeysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getCmsMetadataKey. */ + public UnaryCallSettings.Builder + getCmsMetadataKeySettings() { + return getCmsMetadataKeySettings; + } + + /** Returns the builder for the settings used for calls to listCmsMetadataKeys. */ + public PagedCallSettings.Builder< + ListCmsMetadataKeysRequest, + ListCmsMetadataKeysResponse, + ListCmsMetadataKeysPagedResponse> + listCmsMetadataKeysSettings() { + return listCmsMetadataKeysSettings; + } + + @Override + public CmsMetadataKeyServiceStubSettings build() throws IOException { + return new CmsMetadataKeyServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStub.java new file mode 100644 index 000000000000..0b8bc7da31a5 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStub.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.CmsMetadataValueServiceClient.ListCmsMetadataValuesPagedResponse; + +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.GetCmsMetadataValueRequest; +import com.google.ads.admanager.v1.ListCmsMetadataValuesRequest; +import com.google.ads.admanager.v1.ListCmsMetadataValuesResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the CmsMetadataValueService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class CmsMetadataValueServiceStub implements BackgroundResource { + + public UnaryCallable getCmsMetadataValueCallable() { + throw new UnsupportedOperationException("Not implemented: getCmsMetadataValueCallable()"); + } + + public UnaryCallable + listCmsMetadataValuesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCmsMetadataValuesPagedCallable()"); + } + + public UnaryCallable + listCmsMetadataValuesCallable() { + throw new UnsupportedOperationException("Not implemented: listCmsMetadataValuesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java new file mode 100644 index 000000000000..c63c164b15da --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java @@ -0,0 +1,405 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.CmsMetadataValueServiceClient.ListCmsMetadataValuesPagedResponse; + +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.GetCmsMetadataValueRequest; +import com.google.ads.admanager.v1.ListCmsMetadataValuesRequest; +import com.google.ads.admanager.v1.ListCmsMetadataValuesResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CmsMetadataValueServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getCmsMetadataValue: + * + *

    {@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
    + * CmsMetadataValueServiceStubSettings.Builder cmsMetadataValueServiceSettingsBuilder =
    + *     CmsMetadataValueServiceStubSettings.newBuilder();
    + * cmsMetadataValueServiceSettingsBuilder
    + *     .getCmsMetadataValueSettings()
    + *     .setRetrySettings(
    + *         cmsMetadataValueServiceSettingsBuilder
    + *             .getCmsMetadataValueSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * CmsMetadataValueServiceStubSettings cmsMetadataValueServiceSettings =
    + *     cmsMetadataValueServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class CmsMetadataValueServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getCmsMetadataValueSettings; + private final PagedCallSettings< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + ListCmsMetadataValuesPagedResponse> + listCmsMetadataValuesSettings; + + private static final PagedListDescriptor< + ListCmsMetadataValuesRequest, ListCmsMetadataValuesResponse, CmsMetadataValue> + LIST_CMS_METADATA_VALUES_PAGE_STR_DESC = + new PagedListDescriptor< + ListCmsMetadataValuesRequest, ListCmsMetadataValuesResponse, CmsMetadataValue>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCmsMetadataValuesRequest injectToken( + ListCmsMetadataValuesRequest payload, String token) { + return ListCmsMetadataValuesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCmsMetadataValuesRequest injectPageSize( + ListCmsMetadataValuesRequest payload, int pageSize) { + return ListCmsMetadataValuesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCmsMetadataValuesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCmsMetadataValuesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListCmsMetadataValuesResponse payload) { + return payload.getCmsMetadataValuesList(); + } + }; + + private static final PagedListResponseFactory< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + ListCmsMetadataValuesPagedResponse> + LIST_CMS_METADATA_VALUES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + ListCmsMetadataValuesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCmsMetadataValuesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCmsMetadataValuesRequest, ListCmsMetadataValuesResponse, CmsMetadataValue> + pageContext = + PageContext.create( + callable, LIST_CMS_METADATA_VALUES_PAGE_STR_DESC, request, context); + return ListCmsMetadataValuesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getCmsMetadataValue. */ + public UnaryCallSettings + getCmsMetadataValueSettings() { + return getCmsMetadataValueSettings; + } + + /** Returns the object with the settings used for calls to listCmsMetadataValues. */ + public PagedCallSettings< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + ListCmsMetadataValuesPagedResponse> + listCmsMetadataValuesSettings() { + return listCmsMetadataValuesSettings; + } + + public CmsMetadataValueServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCmsMetadataValueServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CmsMetadataValueServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CmsMetadataValueServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getCmsMetadataValueSettings = settingsBuilder.getCmsMetadataValueSettings().build(); + listCmsMetadataValuesSettings = settingsBuilder.listCmsMetadataValuesSettings().build(); + } + + /** Builder for CmsMetadataValueServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getCmsMetadataValueSettings; + private final PagedCallSettings.Builder< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + ListCmsMetadataValuesPagedResponse> + listCmsMetadataValuesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getCmsMetadataValueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCmsMetadataValuesSettings = + PagedCallSettings.newBuilder(LIST_CMS_METADATA_VALUES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getCmsMetadataValueSettings, listCmsMetadataValuesSettings); + initDefaults(this); + } + + protected Builder(CmsMetadataValueServiceStubSettings settings) { + super(settings); + + getCmsMetadataValueSettings = settings.getCmsMetadataValueSettings.toBuilder(); + listCmsMetadataValuesSettings = settings.listCmsMetadataValuesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getCmsMetadataValueSettings, listCmsMetadataValuesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getCmsMetadataValueSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listCmsMetadataValuesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getCmsMetadataValue. */ + public UnaryCallSettings.Builder + getCmsMetadataValueSettings() { + return getCmsMetadataValueSettings; + } + + /** Returns the builder for the settings used for calls to listCmsMetadataValues. */ + public PagedCallSettings.Builder< + ListCmsMetadataValuesRequest, + ListCmsMetadataValuesResponse, + ListCmsMetadataValuesPagedResponse> + listCmsMetadataValuesSettings() { + return listCmsMetadataValuesSettings; + } + + @Override + public CmsMetadataValueServiceStubSettings build() throws IOException { + return new CmsMetadataValueServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStub.java new file mode 100644 index 000000000000..c86c964b61a6 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStub.java @@ -0,0 +1,76 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContactServiceClient.ListContactsPagedResponse; + +import com.google.ads.admanager.v1.BatchCreateContactsRequest; +import com.google.ads.admanager.v1.BatchCreateContactsResponse; +import com.google.ads.admanager.v1.BatchUpdateContactsRequest; +import com.google.ads.admanager.v1.BatchUpdateContactsResponse; +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.CreateContactRequest; +import com.google.ads.admanager.v1.GetContactRequest; +import com.google.ads.admanager.v1.ListContactsRequest; +import com.google.ads.admanager.v1.ListContactsResponse; +import com.google.ads.admanager.v1.UpdateContactRequest; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ContactService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ContactServiceStub implements BackgroundResource { + + public UnaryCallable getContactCallable() { + throw new UnsupportedOperationException("Not implemented: getContactCallable()"); + } + + public UnaryCallable listContactsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listContactsPagedCallable()"); + } + + public UnaryCallable listContactsCallable() { + throw new UnsupportedOperationException("Not implemented: listContactsCallable()"); + } + + public UnaryCallable createContactCallable() { + throw new UnsupportedOperationException("Not implemented: createContactCallable()"); + } + + public UnaryCallable + batchCreateContactsCallable() { + throw new UnsupportedOperationException("Not implemented: batchCreateContactsCallable()"); + } + + public UnaryCallable updateContactCallable() { + throw new UnsupportedOperationException("Not implemented: updateContactCallable()"); + } + + public UnaryCallable + batchUpdateContactsCallable() { + throw new UnsupportedOperationException("Not implemented: batchUpdateContactsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java new file mode 100644 index 000000000000..9b39c38675bd --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java @@ -0,0 +1,480 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContactServiceClient.ListContactsPagedResponse; + +import com.google.ads.admanager.v1.BatchCreateContactsRequest; +import com.google.ads.admanager.v1.BatchCreateContactsResponse; +import com.google.ads.admanager.v1.BatchUpdateContactsRequest; +import com.google.ads.admanager.v1.BatchUpdateContactsResponse; +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.CreateContactRequest; +import com.google.ads.admanager.v1.GetContactRequest; +import com.google.ads.admanager.v1.ListContactsRequest; +import com.google.ads.admanager.v1.ListContactsResponse; +import com.google.ads.admanager.v1.UpdateContactRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ContactServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getContact: + * + *

    {@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
    + * ContactServiceStubSettings.Builder contactServiceSettingsBuilder =
    + *     ContactServiceStubSettings.newBuilder();
    + * contactServiceSettingsBuilder
    + *     .getContactSettings()
    + *     .setRetrySettings(
    + *         contactServiceSettingsBuilder
    + *             .getContactSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * ContactServiceStubSettings contactServiceSettings = contactServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ContactServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getContactSettings; + private final PagedCallSettings< + ListContactsRequest, ListContactsResponse, ListContactsPagedResponse> + listContactsSettings; + private final UnaryCallSettings createContactSettings; + private final UnaryCallSettings + batchCreateContactsSettings; + private final UnaryCallSettings updateContactSettings; + private final UnaryCallSettings + batchUpdateContactsSettings; + + private static final PagedListDescriptor + LIST_CONTACTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListContactsRequest injectToken(ListContactsRequest payload, String token) { + return ListContactsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListContactsRequest injectPageSize(ListContactsRequest payload, int pageSize) { + return ListContactsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListContactsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListContactsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListContactsResponse payload) { + return payload.getContactsList(); + } + }; + + private static final PagedListResponseFactory< + ListContactsRequest, ListContactsResponse, ListContactsPagedResponse> + LIST_CONTACTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListContactsRequest, ListContactsResponse, ListContactsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListContactsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CONTACTS_PAGE_STR_DESC, request, context); + return ListContactsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getContact. */ + public UnaryCallSettings getContactSettings() { + return getContactSettings; + } + + /** Returns the object with the settings used for calls to listContacts. */ + public PagedCallSettings + listContactsSettings() { + return listContactsSettings; + } + + /** Returns the object with the settings used for calls to createContact. */ + public UnaryCallSettings createContactSettings() { + return createContactSettings; + } + + /** Returns the object with the settings used for calls to batchCreateContacts. */ + public UnaryCallSettings + batchCreateContactsSettings() { + return batchCreateContactsSettings; + } + + /** Returns the object with the settings used for calls to updateContact. */ + public UnaryCallSettings updateContactSettings() { + return updateContactSettings; + } + + /** Returns the object with the settings used for calls to batchUpdateContacts. */ + public UnaryCallSettings + batchUpdateContactsSettings() { + return batchUpdateContactsSettings; + } + + public ContactServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonContactServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ContactServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ContactServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getContactSettings = settingsBuilder.getContactSettings().build(); + listContactsSettings = settingsBuilder.listContactsSettings().build(); + createContactSettings = settingsBuilder.createContactSettings().build(); + batchCreateContactsSettings = settingsBuilder.batchCreateContactsSettings().build(); + updateContactSettings = settingsBuilder.updateContactSettings().build(); + batchUpdateContactsSettings = settingsBuilder.batchUpdateContactsSettings().build(); + } + + /** Builder for ContactServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getContactSettings; + private final PagedCallSettings.Builder< + ListContactsRequest, ListContactsResponse, ListContactsPagedResponse> + listContactsSettings; + private final UnaryCallSettings.Builder createContactSettings; + private final UnaryCallSettings.Builder + batchCreateContactsSettings; + private final UnaryCallSettings.Builder updateContactSettings; + private final UnaryCallSettings.Builder + batchUpdateContactsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getContactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listContactsSettings = PagedCallSettings.newBuilder(LIST_CONTACTS_PAGE_STR_FACT); + createContactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCreateContactsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateContactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateContactsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getContactSettings, + listContactsSettings, + createContactSettings, + batchCreateContactsSettings, + updateContactSettings, + batchUpdateContactsSettings); + initDefaults(this); + } + + protected Builder(ContactServiceStubSettings settings) { + super(settings); + + getContactSettings = settings.getContactSettings.toBuilder(); + listContactsSettings = settings.listContactsSettings.toBuilder(); + createContactSettings = settings.createContactSettings.toBuilder(); + batchCreateContactsSettings = settings.batchCreateContactsSettings.toBuilder(); + updateContactSettings = settings.updateContactSettings.toBuilder(); + batchUpdateContactsSettings = settings.batchUpdateContactsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getContactSettings, + listContactsSettings, + createContactSettings, + batchCreateContactsSettings, + updateContactSettings, + batchUpdateContactsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getContactSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listContactsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createContactSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchCreateContactsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateContactSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchUpdateContactsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getContact. */ + public UnaryCallSettings.Builder getContactSettings() { + return getContactSettings; + } + + /** Returns the builder for the settings used for calls to listContacts. */ + public PagedCallSettings.Builder< + ListContactsRequest, ListContactsResponse, ListContactsPagedResponse> + listContactsSettings() { + return listContactsSettings; + } + + /** Returns the builder for the settings used for calls to createContact. */ + public UnaryCallSettings.Builder createContactSettings() { + return createContactSettings; + } + + /** Returns the builder for the settings used for calls to batchCreateContacts. */ + public UnaryCallSettings.Builder + batchCreateContactsSettings() { + return batchCreateContactsSettings; + } + + /** Returns the builder for the settings used for calls to updateContact. */ + public UnaryCallSettings.Builder updateContactSettings() { + return updateContactSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateContacts. */ + public UnaryCallSettings.Builder + batchUpdateContactsSettings() { + return batchUpdateContactsSettings; + } + + @Override + public ContactServiceStubSettings build() throws IOException { + return new ContactServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStub.java new file mode 100644 index 000000000000..7e434aa97055 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContentBundleServiceClient.ListContentBundlesPagedResponse; + +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.GetContentBundleRequest; +import com.google.ads.admanager.v1.ListContentBundlesRequest; +import com.google.ads.admanager.v1.ListContentBundlesResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ContentBundleService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ContentBundleServiceStub implements BackgroundResource { + + public UnaryCallable getContentBundleCallable() { + throw new UnsupportedOperationException("Not implemented: getContentBundleCallable()"); + } + + public UnaryCallable + listContentBundlesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listContentBundlesPagedCallable()"); + } + + public UnaryCallable + listContentBundlesCallable() { + throw new UnsupportedOperationException("Not implemented: listContentBundlesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java new file mode 100644 index 000000000000..fadf0fb01d7a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java @@ -0,0 +1,390 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContentBundleServiceClient.ListContentBundlesPagedResponse; + +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.GetContentBundleRequest; +import com.google.ads.admanager.v1.ListContentBundlesRequest; +import com.google.ads.admanager.v1.ListContentBundlesResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ContentBundleServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getContentBundle: + * + *

    {@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
    + * ContentBundleServiceStubSettings.Builder contentBundleServiceSettingsBuilder =
    + *     ContentBundleServiceStubSettings.newBuilder();
    + * contentBundleServiceSettingsBuilder
    + *     .getContentBundleSettings()
    + *     .setRetrySettings(
    + *         contentBundleServiceSettingsBuilder
    + *             .getContentBundleSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * ContentBundleServiceStubSettings contentBundleServiceSettings =
    + *     contentBundleServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ContentBundleServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getContentBundleSettings; + private final PagedCallSettings< + ListContentBundlesRequest, ListContentBundlesResponse, ListContentBundlesPagedResponse> + listContentBundlesSettings; + + private static final PagedListDescriptor< + ListContentBundlesRequest, ListContentBundlesResponse, ContentBundle> + LIST_CONTENT_BUNDLES_PAGE_STR_DESC = + new PagedListDescriptor< + ListContentBundlesRequest, ListContentBundlesResponse, ContentBundle>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListContentBundlesRequest injectToken( + ListContentBundlesRequest payload, String token) { + return ListContentBundlesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListContentBundlesRequest injectPageSize( + ListContentBundlesRequest payload, int pageSize) { + return ListContentBundlesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListContentBundlesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListContentBundlesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListContentBundlesResponse payload) { + return payload.getContentBundlesList(); + } + }; + + private static final PagedListResponseFactory< + ListContentBundlesRequest, ListContentBundlesResponse, ListContentBundlesPagedResponse> + LIST_CONTENT_BUNDLES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListContentBundlesRequest, + ListContentBundlesResponse, + ListContentBundlesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListContentBundlesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CONTENT_BUNDLES_PAGE_STR_DESC, request, context); + return ListContentBundlesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getContentBundle. */ + public UnaryCallSettings getContentBundleSettings() { + return getContentBundleSettings; + } + + /** Returns the object with the settings used for calls to listContentBundles. */ + public PagedCallSettings< + ListContentBundlesRequest, ListContentBundlesResponse, ListContentBundlesPagedResponse> + listContentBundlesSettings() { + return listContentBundlesSettings; + } + + public ContentBundleServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonContentBundleServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ContentBundleServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ContentBundleServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getContentBundleSettings = settingsBuilder.getContentBundleSettings().build(); + listContentBundlesSettings = settingsBuilder.listContentBundlesSettings().build(); + } + + /** Builder for ContentBundleServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getContentBundleSettings; + private final PagedCallSettings.Builder< + ListContentBundlesRequest, ListContentBundlesResponse, ListContentBundlesPagedResponse> + listContentBundlesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getContentBundleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listContentBundlesSettings = PagedCallSettings.newBuilder(LIST_CONTENT_BUNDLES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getContentBundleSettings, listContentBundlesSettings); + initDefaults(this); + } + + protected Builder(ContentBundleServiceStubSettings settings) { + super(settings); + + getContentBundleSettings = settings.getContentBundleSettings.toBuilder(); + listContentBundlesSettings = settings.listContentBundlesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getContentBundleSettings, listContentBundlesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getContentBundleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listContentBundlesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getContentBundle. */ + public UnaryCallSettings.Builder + getContentBundleSettings() { + return getContentBundleSettings; + } + + /** Returns the builder for the settings used for calls to listContentBundles. */ + public PagedCallSettings.Builder< + ListContentBundlesRequest, ListContentBundlesResponse, ListContentBundlesPagedResponse> + listContentBundlesSettings() { + return listContentBundlesSettings; + } + + @Override + public ContentBundleServiceStubSettings build() throws IOException { + return new ContentBundleServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStub.java new file mode 100644 index 000000000000..c24d26320a48 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContentLabelServiceClient.ListContentLabelsPagedResponse; + +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.GetContentLabelRequest; +import com.google.ads.admanager.v1.ListContentLabelsRequest; +import com.google.ads.admanager.v1.ListContentLabelsResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ContentLabelService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ContentLabelServiceStub implements BackgroundResource { + + public UnaryCallable getContentLabelCallable() { + throw new UnsupportedOperationException("Not implemented: getContentLabelCallable()"); + } + + public UnaryCallable + listContentLabelsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listContentLabelsPagedCallable()"); + } + + public UnaryCallable + listContentLabelsCallable() { + throw new UnsupportedOperationException("Not implemented: listContentLabelsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java new file mode 100644 index 000000000000..6e53f1ea6710 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java @@ -0,0 +1,389 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContentLabelServiceClient.ListContentLabelsPagedResponse; + +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.GetContentLabelRequest; +import com.google.ads.admanager.v1.ListContentLabelsRequest; +import com.google.ads.admanager.v1.ListContentLabelsResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ContentLabelServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getContentLabel: + * + *

    {@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
    + * ContentLabelServiceStubSettings.Builder contentLabelServiceSettingsBuilder =
    + *     ContentLabelServiceStubSettings.newBuilder();
    + * contentLabelServiceSettingsBuilder
    + *     .getContentLabelSettings()
    + *     .setRetrySettings(
    + *         contentLabelServiceSettingsBuilder
    + *             .getContentLabelSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * ContentLabelServiceStubSettings contentLabelServiceSettings =
    + *     contentLabelServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ContentLabelServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getContentLabelSettings; + private final PagedCallSettings< + ListContentLabelsRequest, ListContentLabelsResponse, ListContentLabelsPagedResponse> + listContentLabelsSettings; + + private static final PagedListDescriptor< + ListContentLabelsRequest, ListContentLabelsResponse, ContentLabel> + LIST_CONTENT_LABELS_PAGE_STR_DESC = + new PagedListDescriptor< + ListContentLabelsRequest, ListContentLabelsResponse, ContentLabel>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListContentLabelsRequest injectToken( + ListContentLabelsRequest payload, String token) { + return ListContentLabelsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListContentLabelsRequest injectPageSize( + ListContentLabelsRequest payload, int pageSize) { + return ListContentLabelsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListContentLabelsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListContentLabelsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListContentLabelsResponse payload) { + return payload.getContentLabelsList(); + } + }; + + private static final PagedListResponseFactory< + ListContentLabelsRequest, ListContentLabelsResponse, ListContentLabelsPagedResponse> + LIST_CONTENT_LABELS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListContentLabelsRequest, + ListContentLabelsResponse, + ListContentLabelsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListContentLabelsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CONTENT_LABELS_PAGE_STR_DESC, request, context); + return ListContentLabelsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getContentLabel. */ + public UnaryCallSettings getContentLabelSettings() { + return getContentLabelSettings; + } + + /** Returns the object with the settings used for calls to listContentLabels. */ + public PagedCallSettings< + ListContentLabelsRequest, ListContentLabelsResponse, ListContentLabelsPagedResponse> + listContentLabelsSettings() { + return listContentLabelsSettings; + } + + public ContentLabelServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonContentLabelServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ContentLabelServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ContentLabelServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getContentLabelSettings = settingsBuilder.getContentLabelSettings().build(); + listContentLabelsSettings = settingsBuilder.listContentLabelsSettings().build(); + } + + /** Builder for ContentLabelServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getContentLabelSettings; + private final PagedCallSettings.Builder< + ListContentLabelsRequest, ListContentLabelsResponse, ListContentLabelsPagedResponse> + listContentLabelsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getContentLabelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listContentLabelsSettings = PagedCallSettings.newBuilder(LIST_CONTENT_LABELS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getContentLabelSettings, listContentLabelsSettings); + initDefaults(this); + } + + protected Builder(ContentLabelServiceStubSettings settings) { + super(settings); + + getContentLabelSettings = settings.getContentLabelSettings.toBuilder(); + listContentLabelsSettings = settings.listContentLabelsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getContentLabelSettings, listContentLabelsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getContentLabelSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listContentLabelsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getContentLabel. */ + public UnaryCallSettings.Builder + getContentLabelSettings() { + return getContentLabelSettings; + } + + /** Returns the builder for the settings used for calls to listContentLabels. */ + public PagedCallSettings.Builder< + ListContentLabelsRequest, ListContentLabelsResponse, ListContentLabelsPagedResponse> + listContentLabelsSettings() { + return listContentLabelsSettings; + } + + @Override + public ContentLabelServiceStubSettings build() throws IOException { + return new ContentLabelServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStub.java new file mode 100644 index 000000000000..dfcf9b1cce3d --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStub.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContentServiceClient.ListContentPagedResponse; + +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.GetContentRequest; +import com.google.ads.admanager.v1.ListContentRequest; +import com.google.ads.admanager.v1.ListContentResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ContentService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ContentServiceStub implements BackgroundResource { + + public UnaryCallable getContentCallable() { + throw new UnsupportedOperationException("Not implemented: getContentCallable()"); + } + + public UnaryCallable listContentPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listContentPagedCallable()"); + } + + public UnaryCallable listContentCallable() { + throw new UnsupportedOperationException("Not implemented: listContentCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java new file mode 100644 index 000000000000..38d05469a09e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java @@ -0,0 +1,375 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContentServiceClient.ListContentPagedResponse; + +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.GetContentRequest; +import com.google.ads.admanager.v1.ListContentRequest; +import com.google.ads.admanager.v1.ListContentResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ContentServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getContent: + * + *

    {@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
    + * ContentServiceStubSettings.Builder contentServiceSettingsBuilder =
    + *     ContentServiceStubSettings.newBuilder();
    + * contentServiceSettingsBuilder
    + *     .getContentSettings()
    + *     .setRetrySettings(
    + *         contentServiceSettingsBuilder
    + *             .getContentSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * ContentServiceStubSettings contentServiceSettings = contentServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ContentServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getContentSettings; + private final PagedCallSettings + listContentSettings; + + private static final PagedListDescriptor + LIST_CONTENT_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListContentRequest injectToken(ListContentRequest payload, String token) { + return ListContentRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListContentRequest injectPageSize(ListContentRequest payload, int pageSize) { + return ListContentRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListContentRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListContentResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListContentResponse payload) { + return payload.getContentList(); + } + }; + + private static final PagedListResponseFactory< + ListContentRequest, ListContentResponse, ListContentPagedResponse> + LIST_CONTENT_PAGE_STR_FACT = + new PagedListResponseFactory< + ListContentRequest, ListContentResponse, ListContentPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListContentRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CONTENT_PAGE_STR_DESC, request, context); + return ListContentPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getContent. */ + public UnaryCallSettings getContentSettings() { + return getContentSettings; + } + + /** Returns the object with the settings used for calls to listContent. */ + public PagedCallSettings + listContentSettings() { + return listContentSettings; + } + + public ContentServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonContentServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ContentServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ContentServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getContentSettings = settingsBuilder.getContentSettings().build(); + listContentSettings = settingsBuilder.listContentSettings().build(); + } + + /** Builder for ContentServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getContentSettings; + private final PagedCallSettings.Builder< + ListContentRequest, ListContentResponse, ListContentPagedResponse> + listContentSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listContentSettings = PagedCallSettings.newBuilder(LIST_CONTENT_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getContentSettings, listContentSettings); + initDefaults(this); + } + + protected Builder(ContentServiceStubSettings settings) { + super(settings); + + getContentSettings = settings.getContentSettings.toBuilder(); + listContentSettings = settings.listContentSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getContentSettings, listContentSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getContentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listContentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getContent. */ + public UnaryCallSettings.Builder getContentSettings() { + return getContentSettings; + } + + /** Returns the builder for the settings used for calls to listContent. */ + public PagedCallSettings.Builder< + ListContentRequest, ListContentResponse, ListContentPagedResponse> + listContentSettings() { + return listContentSettings; + } + + @Override + public ContentServiceStubSettings build() throws IOException { + return new ContentServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStub.java new file mode 100644 index 000000000000..e4f16d3a4bdc --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStub.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.CreativeTemplateServiceClient.ListCreativeTemplatesPagedResponse; + +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.GetCreativeTemplateRequest; +import com.google.ads.admanager.v1.ListCreativeTemplatesRequest; +import com.google.ads.admanager.v1.ListCreativeTemplatesResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the CreativeTemplateService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class CreativeTemplateServiceStub implements BackgroundResource { + + public UnaryCallable getCreativeTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: getCreativeTemplateCallable()"); + } + + public UnaryCallable + listCreativeTemplatesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCreativeTemplatesPagedCallable()"); + } + + public UnaryCallable + listCreativeTemplatesCallable() { + throw new UnsupportedOperationException("Not implemented: listCreativeTemplatesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java new file mode 100644 index 000000000000..86cec71c610a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java @@ -0,0 +1,405 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.CreativeTemplateServiceClient.ListCreativeTemplatesPagedResponse; + +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.GetCreativeTemplateRequest; +import com.google.ads.admanager.v1.ListCreativeTemplatesRequest; +import com.google.ads.admanager.v1.ListCreativeTemplatesResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CreativeTemplateServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getCreativeTemplate: + * + *

    {@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
    + * CreativeTemplateServiceStubSettings.Builder creativeTemplateServiceSettingsBuilder =
    + *     CreativeTemplateServiceStubSettings.newBuilder();
    + * creativeTemplateServiceSettingsBuilder
    + *     .getCreativeTemplateSettings()
    + *     .setRetrySettings(
    + *         creativeTemplateServiceSettingsBuilder
    + *             .getCreativeTemplateSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * CreativeTemplateServiceStubSettings creativeTemplateServiceSettings =
    + *     creativeTemplateServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class CreativeTemplateServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getCreativeTemplateSettings; + private final PagedCallSettings< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + ListCreativeTemplatesPagedResponse> + listCreativeTemplatesSettings; + + private static final PagedListDescriptor< + ListCreativeTemplatesRequest, ListCreativeTemplatesResponse, CreativeTemplate> + LIST_CREATIVE_TEMPLATES_PAGE_STR_DESC = + new PagedListDescriptor< + ListCreativeTemplatesRequest, ListCreativeTemplatesResponse, CreativeTemplate>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCreativeTemplatesRequest injectToken( + ListCreativeTemplatesRequest payload, String token) { + return ListCreativeTemplatesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCreativeTemplatesRequest injectPageSize( + ListCreativeTemplatesRequest payload, int pageSize) { + return ListCreativeTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCreativeTemplatesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCreativeTemplatesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListCreativeTemplatesResponse payload) { + return payload.getCreativeTemplatesList(); + } + }; + + private static final PagedListResponseFactory< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + ListCreativeTemplatesPagedResponse> + LIST_CREATIVE_TEMPLATES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + ListCreativeTemplatesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCreativeTemplatesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCreativeTemplatesRequest, ListCreativeTemplatesResponse, CreativeTemplate> + pageContext = + PageContext.create( + callable, LIST_CREATIVE_TEMPLATES_PAGE_STR_DESC, request, context); + return ListCreativeTemplatesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getCreativeTemplate. */ + public UnaryCallSettings + getCreativeTemplateSettings() { + return getCreativeTemplateSettings; + } + + /** Returns the object with the settings used for calls to listCreativeTemplates. */ + public PagedCallSettings< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + ListCreativeTemplatesPagedResponse> + listCreativeTemplatesSettings() { + return listCreativeTemplatesSettings; + } + + public CreativeTemplateServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCreativeTemplateServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CreativeTemplateServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CreativeTemplateServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getCreativeTemplateSettings = settingsBuilder.getCreativeTemplateSettings().build(); + listCreativeTemplatesSettings = settingsBuilder.listCreativeTemplatesSettings().build(); + } + + /** Builder for CreativeTemplateServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getCreativeTemplateSettings; + private final PagedCallSettings.Builder< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + ListCreativeTemplatesPagedResponse> + listCreativeTemplatesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getCreativeTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCreativeTemplatesSettings = + PagedCallSettings.newBuilder(LIST_CREATIVE_TEMPLATES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getCreativeTemplateSettings, listCreativeTemplatesSettings); + initDefaults(this); + } + + protected Builder(CreativeTemplateServiceStubSettings settings) { + super(settings); + + getCreativeTemplateSettings = settings.getCreativeTemplateSettings.toBuilder(); + listCreativeTemplatesSettings = settings.listCreativeTemplatesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getCreativeTemplateSettings, listCreativeTemplatesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getCreativeTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listCreativeTemplatesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getCreativeTemplate. */ + public UnaryCallSettings.Builder + getCreativeTemplateSettings() { + return getCreativeTemplateSettings; + } + + /** Returns the builder for the settings used for calls to listCreativeTemplates. */ + public PagedCallSettings.Builder< + ListCreativeTemplatesRequest, + ListCreativeTemplatesResponse, + ListCreativeTemplatesPagedResponse> + listCreativeTemplatesSettings() { + return listCreativeTemplatesSettings; + } + + @Override + public CreativeTemplateServiceStubSettings build() throws IOException { + return new CreativeTemplateServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStub.java index 060f7ab4dddc..9648804777d9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStub.java @@ -18,10 +18,20 @@ import static com.google.ads.admanager.v1.CustomFieldServiceClient.ListCustomFieldsPagedResponse; +import com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse; +import com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse; +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse; +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse; +import com.google.ads.admanager.v1.CreateCustomFieldRequest; import com.google.ads.admanager.v1.CustomField; import com.google.ads.admanager.v1.GetCustomFieldRequest; import com.google.ads.admanager.v1.ListCustomFieldsRequest; import com.google.ads.admanager.v1.ListCustomFieldsResponse; +import com.google.ads.admanager.v1.UpdateCustomFieldRequest; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; @@ -49,6 +59,35 @@ public UnaryCallable getCustomFieldCallable( throw new UnsupportedOperationException("Not implemented: listCustomFieldsCallable()"); } + public UnaryCallable createCustomFieldCallable() { + throw new UnsupportedOperationException("Not implemented: createCustomFieldCallable()"); + } + + public UnaryCallable + batchCreateCustomFieldsCallable() { + throw new UnsupportedOperationException("Not implemented: batchCreateCustomFieldsCallable()"); + } + + public UnaryCallable updateCustomFieldCallable() { + throw new UnsupportedOperationException("Not implemented: updateCustomFieldCallable()"); + } + + public UnaryCallable + batchUpdateCustomFieldsCallable() { + throw new UnsupportedOperationException("Not implemented: batchUpdateCustomFieldsCallable()"); + } + + public UnaryCallable + batchActivateCustomFieldsCallable() { + throw new UnsupportedOperationException("Not implemented: batchActivateCustomFieldsCallable()"); + } + + public UnaryCallable + batchDeactivateCustomFieldsCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchDeactivateCustomFieldsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java index 3a826fe53e35..3a671d69bfa5 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java @@ -18,10 +18,20 @@ import static com.google.ads.admanager.v1.CustomFieldServiceClient.ListCustomFieldsPagedResponse; +import com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse; +import com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse; +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse; +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse; +import com.google.ads.admanager.v1.CreateCustomFieldRequest; import com.google.ads.admanager.v1.CustomField; import com.google.ads.admanager.v1.GetCustomFieldRequest; import com.google.ads.admanager.v1.ListCustomFieldsRequest; import com.google.ads.admanager.v1.ListCustomFieldsResponse; +import com.google.ads.admanager.v1.UpdateCustomFieldRequest; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ObsoleteApi; @@ -113,6 +123,18 @@ public class CustomFieldServiceStubSettings extends StubSettings listCustomFieldsSettings; + private final UnaryCallSettings createCustomFieldSettings; + private final UnaryCallSettings + batchCreateCustomFieldsSettings; + private final UnaryCallSettings updateCustomFieldSettings; + private final UnaryCallSettings + batchUpdateCustomFieldsSettings; + private final UnaryCallSettings< + BatchActivateCustomFieldsRequest, BatchActivateCustomFieldsResponse> + batchActivateCustomFieldsSettings; + private final UnaryCallSettings< + BatchDeactivateCustomFieldsRequest, BatchDeactivateCustomFieldsResponse> + batchDeactivateCustomFieldsSettings; private static final PagedListDescriptor< ListCustomFieldsRequest, ListCustomFieldsResponse, CustomField> @@ -183,6 +205,40 @@ public UnaryCallSettings getCustomFieldSetti return listCustomFieldsSettings; } + /** Returns the object with the settings used for calls to createCustomField. */ + public UnaryCallSettings createCustomFieldSettings() { + return createCustomFieldSettings; + } + + /** Returns the object with the settings used for calls to batchCreateCustomFields. */ + public UnaryCallSettings + batchCreateCustomFieldsSettings() { + return batchCreateCustomFieldsSettings; + } + + /** Returns the object with the settings used for calls to updateCustomField. */ + public UnaryCallSettings updateCustomFieldSettings() { + return updateCustomFieldSettings; + } + + /** Returns the object with the settings used for calls to batchUpdateCustomFields. */ + public UnaryCallSettings + batchUpdateCustomFieldsSettings() { + return batchUpdateCustomFieldsSettings; + } + + /** Returns the object with the settings used for calls to batchActivateCustomFields. */ + public UnaryCallSettings + batchActivateCustomFieldsSettings() { + return batchActivateCustomFieldsSettings; + } + + /** Returns the object with the settings used for calls to batchDeactivateCustomFields. */ + public UnaryCallSettings + batchDeactivateCustomFieldsSettings() { + return batchDeactivateCustomFieldsSettings; + } + public CustomFieldServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -267,6 +323,13 @@ protected CustomFieldServiceStubSettings(Builder settingsBuilder) throws IOExcep getCustomFieldSettings = settingsBuilder.getCustomFieldSettings().build(); listCustomFieldsSettings = settingsBuilder.listCustomFieldsSettings().build(); + createCustomFieldSettings = settingsBuilder.createCustomFieldSettings().build(); + batchCreateCustomFieldsSettings = settingsBuilder.batchCreateCustomFieldsSettings().build(); + updateCustomFieldSettings = settingsBuilder.updateCustomFieldSettings().build(); + batchUpdateCustomFieldsSettings = settingsBuilder.batchUpdateCustomFieldsSettings().build(); + batchActivateCustomFieldsSettings = settingsBuilder.batchActivateCustomFieldsSettings().build(); + batchDeactivateCustomFieldsSettings = + settingsBuilder.batchDeactivateCustomFieldsSettings().build(); } /** Builder for CustomFieldServiceStubSettings. */ @@ -278,6 +341,22 @@ public static class Builder private final PagedCallSettings.Builder< ListCustomFieldsRequest, ListCustomFieldsResponse, ListCustomFieldsPagedResponse> listCustomFieldsSettings; + private final UnaryCallSettings.Builder + createCustomFieldSettings; + private final UnaryCallSettings.Builder< + BatchCreateCustomFieldsRequest, BatchCreateCustomFieldsResponse> + batchCreateCustomFieldsSettings; + private final UnaryCallSettings.Builder + updateCustomFieldSettings; + private final UnaryCallSettings.Builder< + BatchUpdateCustomFieldsRequest, BatchUpdateCustomFieldsResponse> + batchUpdateCustomFieldsSettings; + private final UnaryCallSettings.Builder< + BatchActivateCustomFieldsRequest, BatchActivateCustomFieldsResponse> + batchActivateCustomFieldsSettings; + private final UnaryCallSettings.Builder< + BatchDeactivateCustomFieldsRequest, BatchDeactivateCustomFieldsResponse> + batchDeactivateCustomFieldsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -307,10 +386,23 @@ protected Builder(ClientContext clientContext) { getCustomFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listCustomFieldsSettings = PagedCallSettings.newBuilder(LIST_CUSTOM_FIELDS_PAGE_STR_FACT); + createCustomFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCreateCustomFieldsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCustomFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateCustomFieldsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchActivateCustomFieldsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeactivateCustomFieldsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getCustomFieldSettings, listCustomFieldsSettings); + getCustomFieldSettings, + listCustomFieldsSettings, + createCustomFieldSettings, + batchCreateCustomFieldsSettings, + updateCustomFieldSettings, + batchUpdateCustomFieldsSettings, + batchActivateCustomFieldsSettings, + batchDeactivateCustomFieldsSettings); initDefaults(this); } @@ -319,10 +411,24 @@ protected Builder(CustomFieldServiceStubSettings settings) { getCustomFieldSettings = settings.getCustomFieldSettings.toBuilder(); listCustomFieldsSettings = settings.listCustomFieldsSettings.toBuilder(); + createCustomFieldSettings = settings.createCustomFieldSettings.toBuilder(); + batchCreateCustomFieldsSettings = settings.batchCreateCustomFieldsSettings.toBuilder(); + updateCustomFieldSettings = settings.updateCustomFieldSettings.toBuilder(); + batchUpdateCustomFieldsSettings = settings.batchUpdateCustomFieldsSettings.toBuilder(); + batchActivateCustomFieldsSettings = settings.batchActivateCustomFieldsSettings.toBuilder(); + batchDeactivateCustomFieldsSettings = + settings.batchDeactivateCustomFieldsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getCustomFieldSettings, listCustomFieldsSettings); + getCustomFieldSettings, + listCustomFieldsSettings, + createCustomFieldSettings, + batchCreateCustomFieldsSettings, + updateCustomFieldSettings, + batchUpdateCustomFieldsSettings, + batchActivateCustomFieldsSettings, + batchDeactivateCustomFieldsSettings); } private static Builder createDefault() { @@ -348,6 +454,36 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createCustomFieldSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchCreateCustomFieldsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateCustomFieldSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchUpdateCustomFieldsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchActivateCustomFieldsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchDeactivateCustomFieldsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + return builder; } @@ -378,6 +514,46 @@ public UnaryCallSettings.Builder getCustomFi return listCustomFieldsSettings; } + /** Returns the builder for the settings used for calls to createCustomField. */ + public UnaryCallSettings.Builder + createCustomFieldSettings() { + return createCustomFieldSettings; + } + + /** Returns the builder for the settings used for calls to batchCreateCustomFields. */ + public UnaryCallSettings.Builder< + BatchCreateCustomFieldsRequest, BatchCreateCustomFieldsResponse> + batchCreateCustomFieldsSettings() { + return batchCreateCustomFieldsSettings; + } + + /** Returns the builder for the settings used for calls to updateCustomField. */ + public UnaryCallSettings.Builder + updateCustomFieldSettings() { + return updateCustomFieldSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateCustomFields. */ + public UnaryCallSettings.Builder< + BatchUpdateCustomFieldsRequest, BatchUpdateCustomFieldsResponse> + batchUpdateCustomFieldsSettings() { + return batchUpdateCustomFieldsSettings; + } + + /** Returns the builder for the settings used for calls to batchActivateCustomFields. */ + public UnaryCallSettings.Builder< + BatchActivateCustomFieldsRequest, BatchActivateCustomFieldsResponse> + batchActivateCustomFieldsSettings() { + return batchActivateCustomFieldsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeactivateCustomFields. */ + public UnaryCallSettings.Builder< + BatchDeactivateCustomFieldsRequest, BatchDeactivateCustomFieldsResponse> + batchDeactivateCustomFieldsSettings() { + return batchDeactivateCustomFieldsSettings; + } + @Override public CustomFieldServiceStubSettings build() throws IOException { return new CustomFieldServiceStubSettings(this); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStub.java new file mode 100644 index 000000000000..1f97f519063e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStub.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.DeviceCapabilityServiceClient.ListDeviceCapabilitiesPagedResponse; + +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.GetDeviceCapabilityRequest; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DeviceCapabilityService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DeviceCapabilityServiceStub implements BackgroundResource { + + public UnaryCallable getDeviceCapabilityCallable() { + throw new UnsupportedOperationException("Not implemented: getDeviceCapabilityCallable()"); + } + + public UnaryCallable + listDeviceCapabilitiesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDeviceCapabilitiesPagedCallable()"); + } + + public UnaryCallable + listDeviceCapabilitiesCallable() { + throw new UnsupportedOperationException("Not implemented: listDeviceCapabilitiesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java new file mode 100644 index 000000000000..99bdcbaa50bb --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java @@ -0,0 +1,410 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.DeviceCapabilityServiceClient.ListDeviceCapabilitiesPagedResponse; + +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.GetDeviceCapabilityRequest; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeviceCapabilityServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDeviceCapability: + * + *

    {@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
    + * DeviceCapabilityServiceStubSettings.Builder deviceCapabilityServiceSettingsBuilder =
    + *     DeviceCapabilityServiceStubSettings.newBuilder();
    + * deviceCapabilityServiceSettingsBuilder
    + *     .getDeviceCapabilitySettings()
    + *     .setRetrySettings(
    + *         deviceCapabilityServiceSettingsBuilder
    + *             .getDeviceCapabilitySettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * DeviceCapabilityServiceStubSettings deviceCapabilityServiceSettings =
    + *     deviceCapabilityServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class DeviceCapabilityServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getDeviceCapabilitySettings; + private final PagedCallSettings< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + ListDeviceCapabilitiesPagedResponse> + listDeviceCapabilitiesSettings; + + private static final PagedListDescriptor< + ListDeviceCapabilitiesRequest, ListDeviceCapabilitiesResponse, DeviceCapability> + LIST_DEVICE_CAPABILITIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListDeviceCapabilitiesRequest, ListDeviceCapabilitiesResponse, DeviceCapability>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDeviceCapabilitiesRequest injectToken( + ListDeviceCapabilitiesRequest payload, String token) { + return ListDeviceCapabilitiesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDeviceCapabilitiesRequest injectPageSize( + ListDeviceCapabilitiesRequest payload, int pageSize) { + return ListDeviceCapabilitiesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListDeviceCapabilitiesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDeviceCapabilitiesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListDeviceCapabilitiesResponse payload) { + return payload.getDeviceCapabilitiesList(); + } + }; + + private static final PagedListResponseFactory< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + ListDeviceCapabilitiesPagedResponse> + LIST_DEVICE_CAPABILITIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + ListDeviceCapabilitiesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListDeviceCapabilitiesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + DeviceCapability> + pageContext = + PageContext.create( + callable, LIST_DEVICE_CAPABILITIES_PAGE_STR_DESC, request, context); + return ListDeviceCapabilitiesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getDeviceCapability. */ + public UnaryCallSettings + getDeviceCapabilitySettings() { + return getDeviceCapabilitySettings; + } + + /** Returns the object with the settings used for calls to listDeviceCapabilities. */ + public PagedCallSettings< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + ListDeviceCapabilitiesPagedResponse> + listDeviceCapabilitiesSettings() { + return listDeviceCapabilitiesSettings; + } + + public DeviceCapabilityServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDeviceCapabilityServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DeviceCapabilityServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DeviceCapabilityServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getDeviceCapabilitySettings = settingsBuilder.getDeviceCapabilitySettings().build(); + listDeviceCapabilitiesSettings = settingsBuilder.listDeviceCapabilitiesSettings().build(); + } + + /** Builder for DeviceCapabilityServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getDeviceCapabilitySettings; + private final PagedCallSettings.Builder< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + ListDeviceCapabilitiesPagedResponse> + listDeviceCapabilitiesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getDeviceCapabilitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDeviceCapabilitiesSettings = + PagedCallSettings.newBuilder(LIST_DEVICE_CAPABILITIES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDeviceCapabilitySettings, listDeviceCapabilitiesSettings); + initDefaults(this); + } + + protected Builder(DeviceCapabilityServiceStubSettings settings) { + super(settings); + + getDeviceCapabilitySettings = settings.getDeviceCapabilitySettings.toBuilder(); + listDeviceCapabilitiesSettings = settings.listDeviceCapabilitiesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDeviceCapabilitySettings, listDeviceCapabilitiesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getDeviceCapabilitySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDeviceCapabilitiesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getDeviceCapability. */ + public UnaryCallSettings.Builder + getDeviceCapabilitySettings() { + return getDeviceCapabilitySettings; + } + + /** Returns the builder for the settings used for calls to listDeviceCapabilities. */ + public PagedCallSettings.Builder< + ListDeviceCapabilitiesRequest, + ListDeviceCapabilitiesResponse, + ListDeviceCapabilitiesPagedResponse> + listDeviceCapabilitiesSettings() { + return listDeviceCapabilitiesSettings; + } + + @Override + public DeviceCapabilityServiceStubSettings build() throws IOException { + return new DeviceCapabilityServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStub.java new file mode 100644 index 000000000000..3c579281bc5b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStub.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.DeviceManufacturerServiceClient.ListDeviceManufacturersPagedResponse; + +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.GetDeviceManufacturerRequest; +import com.google.ads.admanager.v1.ListDeviceManufacturersRequest; +import com.google.ads.admanager.v1.ListDeviceManufacturersResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DeviceManufacturerService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DeviceManufacturerServiceStub implements BackgroundResource { + + public UnaryCallable + getDeviceManufacturerCallable() { + throw new UnsupportedOperationException("Not implemented: getDeviceManufacturerCallable()"); + } + + public UnaryCallable + listDeviceManufacturersPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDeviceManufacturersPagedCallable()"); + } + + public UnaryCallable + listDeviceManufacturersCallable() { + throw new UnsupportedOperationException("Not implemented: listDeviceManufacturersCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java new file mode 100644 index 000000000000..a02b79d46c3c --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java @@ -0,0 +1,412 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.DeviceManufacturerServiceClient.ListDeviceManufacturersPagedResponse; + +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.GetDeviceManufacturerRequest; +import com.google.ads.admanager.v1.ListDeviceManufacturersRequest; +import com.google.ads.admanager.v1.ListDeviceManufacturersResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeviceManufacturerServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDeviceManufacturer: + * + *

    {@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
    + * DeviceManufacturerServiceStubSettings.Builder deviceManufacturerServiceSettingsBuilder =
    + *     DeviceManufacturerServiceStubSettings.newBuilder();
    + * deviceManufacturerServiceSettingsBuilder
    + *     .getDeviceManufacturerSettings()
    + *     .setRetrySettings(
    + *         deviceManufacturerServiceSettingsBuilder
    + *             .getDeviceManufacturerSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * DeviceManufacturerServiceStubSettings deviceManufacturerServiceSettings =
    + *     deviceManufacturerServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class DeviceManufacturerServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getDeviceManufacturerSettings; + private final PagedCallSettings< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + ListDeviceManufacturersPagedResponse> + listDeviceManufacturersSettings; + + private static final PagedListDescriptor< + ListDeviceManufacturersRequest, ListDeviceManufacturersResponse, DeviceManufacturer> + LIST_DEVICE_MANUFACTURERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + DeviceManufacturer>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDeviceManufacturersRequest injectToken( + ListDeviceManufacturersRequest payload, String token) { + return ListDeviceManufacturersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDeviceManufacturersRequest injectPageSize( + ListDeviceManufacturersRequest payload, int pageSize) { + return ListDeviceManufacturersRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListDeviceManufacturersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDeviceManufacturersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListDeviceManufacturersResponse payload) { + return payload.getDeviceManufacturersList(); + } + }; + + private static final PagedListResponseFactory< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + ListDeviceManufacturersPagedResponse> + LIST_DEVICE_MANUFACTURERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + ListDeviceManufacturersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListDeviceManufacturersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + DeviceManufacturer> + pageContext = + PageContext.create( + callable, LIST_DEVICE_MANUFACTURERS_PAGE_STR_DESC, request, context); + return ListDeviceManufacturersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getDeviceManufacturer. */ + public UnaryCallSettings + getDeviceManufacturerSettings() { + return getDeviceManufacturerSettings; + } + + /** Returns the object with the settings used for calls to listDeviceManufacturers. */ + public PagedCallSettings< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + ListDeviceManufacturersPagedResponse> + listDeviceManufacturersSettings() { + return listDeviceManufacturersSettings; + } + + public DeviceManufacturerServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDeviceManufacturerServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DeviceManufacturerServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DeviceManufacturerServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getDeviceManufacturerSettings = settingsBuilder.getDeviceManufacturerSettings().build(); + listDeviceManufacturersSettings = settingsBuilder.listDeviceManufacturersSettings().build(); + } + + /** Builder for DeviceManufacturerServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getDeviceManufacturerSettings; + private final PagedCallSettings.Builder< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + ListDeviceManufacturersPagedResponse> + listDeviceManufacturersSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getDeviceManufacturerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDeviceManufacturersSettings = + PagedCallSettings.newBuilder(LIST_DEVICE_MANUFACTURERS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDeviceManufacturerSettings, listDeviceManufacturersSettings); + initDefaults(this); + } + + protected Builder(DeviceManufacturerServiceStubSettings settings) { + super(settings); + + getDeviceManufacturerSettings = settings.getDeviceManufacturerSettings.toBuilder(); + listDeviceManufacturersSettings = settings.listDeviceManufacturersSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDeviceManufacturerSettings, listDeviceManufacturersSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getDeviceManufacturerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDeviceManufacturersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getDeviceManufacturer. */ + public UnaryCallSettings.Builder + getDeviceManufacturerSettings() { + return getDeviceManufacturerSettings; + } + + /** Returns the builder for the settings used for calls to listDeviceManufacturers. */ + public PagedCallSettings.Builder< + ListDeviceManufacturersRequest, + ListDeviceManufacturersResponse, + ListDeviceManufacturersPagedResponse> + listDeviceManufacturersSettings() { + return listDeviceManufacturersSettings; + } + + @Override + public DeviceManufacturerServiceStubSettings build() throws IOException { + return new DeviceManufacturerServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdReviewCenterAdServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdReviewCenterAdServiceCallableFactory.java new file mode 100644 index 000000000000..d4b2c518fda1 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdReviewCenterAdServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AdReviewCenterAdService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAdReviewCenterAdServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdReviewCenterAdServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdReviewCenterAdServiceStub.java new file mode 100644 index 000000000000..f176756c266a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdReviewCenterAdServiceStub.java @@ -0,0 +1,440 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.AdReviewCenterAdServiceClient.SearchAdReviewCenterAdsPagedResponse; + +import com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse; +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AdReviewCenterAdService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAdReviewCenterAdServiceStub extends AdReviewCenterAdServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(BatchBlockAdReviewCenterAdsResponse.getDescriptor()) + .add(BatchAdReviewCenterAdsOperationMetadata.getDescriptor()) + .add(BatchAllowAdReviewCenterAdsResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor< + SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse> + searchAdReviewCenterAdsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.AdReviewCenterAdService/SearchAdReviewCenterAds") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:search", + 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, "adReviewCenterAdId", request.getAdReviewCenterAdIdList()); + serializer.putQueryParam( + fields, "buyerAccountId", request.getBuyerAccountIdList()); + serializer.putQueryParam( + fields, "dateTimeRange", request.getDateTimeRange()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "searchText", request.getSearchTextList()); + serializer.putQueryParam(fields, "status", request.getStatusValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchAdReviewCenterAdsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchAllowAdReviewCenterAdsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.AdReviewCenterAdService/BatchAllowAdReviewCenterAds") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:batchAllow", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchAllowAdReviewCenterAdsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + batchBlockAdReviewCenterAdsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.AdReviewCenterAdService/BatchBlockAdReviewCenterAds") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:batchBlock", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchBlockAdReviewCenterAdsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable + searchAdReviewCenterAdsCallable; + private final UnaryCallable + searchAdReviewCenterAdsPagedCallable; + private final UnaryCallable + batchAllowAdReviewCenterAdsCallable; + private final OperationCallable< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationCallable; + private final UnaryCallable + batchBlockAdReviewCenterAdsCallable; + private final OperationCallable< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAdReviewCenterAdServiceStub create( + AdReviewCenterAdServiceStubSettings settings) throws IOException { + return new HttpJsonAdReviewCenterAdServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAdReviewCenterAdServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAdReviewCenterAdServiceStub( + AdReviewCenterAdServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonAdReviewCenterAdServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAdReviewCenterAdServiceStub( + AdReviewCenterAdServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAdReviewCenterAdServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAdReviewCenterAdServiceStub( + AdReviewCenterAdServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonAdReviewCenterAdServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAdReviewCenterAdServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAdReviewCenterAdServiceStub( + AdReviewCenterAdServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=networks/*/operations/reports/runs/*}") + .build()) + .build()); + + HttpJsonCallSettings + searchAdReviewCenterAdsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(searchAdReviewCenterAdsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchAllowAdReviewCenterAdsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchAllowAdReviewCenterAdsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchBlockAdReviewCenterAdsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchBlockAdReviewCenterAdsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.searchAdReviewCenterAdsCallable = + callableFactory.createUnaryCallable( + searchAdReviewCenterAdsTransportSettings, + settings.searchAdReviewCenterAdsSettings(), + clientContext); + this.searchAdReviewCenterAdsPagedCallable = + callableFactory.createPagedCallable( + searchAdReviewCenterAdsTransportSettings, + settings.searchAdReviewCenterAdsSettings(), + clientContext); + this.batchAllowAdReviewCenterAdsCallable = + callableFactory.createUnaryCallable( + batchAllowAdReviewCenterAdsTransportSettings, + settings.batchAllowAdReviewCenterAdsSettings(), + clientContext); + this.batchAllowAdReviewCenterAdsOperationCallable = + callableFactory.createOperationCallable( + batchAllowAdReviewCenterAdsTransportSettings, + settings.batchAllowAdReviewCenterAdsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.batchBlockAdReviewCenterAdsCallable = + callableFactory.createUnaryCallable( + batchBlockAdReviewCenterAdsTransportSettings, + settings.batchBlockAdReviewCenterAdsSettings(), + clientContext); + this.batchBlockAdReviewCenterAdsOperationCallable = + callableFactory.createOperationCallable( + batchBlockAdReviewCenterAdsTransportSettings, + settings.batchBlockAdReviewCenterAdsOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(searchAdReviewCenterAdsMethodDescriptor); + methodDescriptors.add(batchAllowAdReviewCenterAdsMethodDescriptor); + methodDescriptors.add(batchBlockAdReviewCenterAdsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + searchAdReviewCenterAdsCallable() { + return searchAdReviewCenterAdsCallable; + } + + @Override + public UnaryCallable + searchAdReviewCenterAdsPagedCallable() { + return searchAdReviewCenterAdsPagedCallable; + } + + @Override + public UnaryCallable + batchAllowAdReviewCenterAdsCallable() { + return batchAllowAdReviewCenterAdsCallable; + } + + @Override + public OperationCallable< + BatchAllowAdReviewCenterAdsRequest, + BatchAllowAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsOperationCallable() { + return batchAllowAdReviewCenterAdsOperationCallable; + } + + @Override + public UnaryCallable + batchBlockAdReviewCenterAdsCallable() { + return batchBlockAdReviewCenterAdsCallable; + } + + @Override + public OperationCallable< + BatchBlockAdReviewCenterAdsRequest, + BatchBlockAdReviewCenterAdsResponse, + BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsOperationCallable() { + return batchBlockAdReviewCenterAdsOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonApplicationServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonApplicationServiceCallableFactory.java new file mode 100644 index 000000000000..0501bd45cb6b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonApplicationServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ApplicationService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonApplicationServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonApplicationServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonApplicationServiceStub.java new file mode 100644 index 000000000000..30c653a578d7 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonApplicationServiceStub.java @@ -0,0 +1,275 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ApplicationServiceClient.ListApplicationsPagedResponse; + +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.GetApplicationRequest; +import com.google.ads.admanager.v1.ListApplicationsRequest; +import com.google.ads.admanager.v1.ListApplicationsResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ApplicationService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonApplicationServiceStub extends ApplicationServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getApplicationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ApplicationService/GetApplication") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/applications/*}", + 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(Application.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listApplicationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ApplicationService/ListApplications") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/applications", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListApplicationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getApplicationCallable; + private final UnaryCallable + listApplicationsCallable; + private final UnaryCallable + listApplicationsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonApplicationServiceStub create(ApplicationServiceStubSettings settings) + throws IOException { + return new HttpJsonApplicationServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonApplicationServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonApplicationServiceStub( + ApplicationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonApplicationServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonApplicationServiceStub( + ApplicationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonApplicationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonApplicationServiceStub( + ApplicationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonApplicationServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonApplicationServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonApplicationServiceStub( + ApplicationServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getApplicationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getApplicationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listApplicationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listApplicationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getApplicationCallable = + callableFactory.createUnaryCallable( + getApplicationTransportSettings, settings.getApplicationSettings(), clientContext); + this.listApplicationsCallable = + callableFactory.createUnaryCallable( + listApplicationsTransportSettings, settings.listApplicationsSettings(), clientContext); + this.listApplicationsPagedCallable = + callableFactory.createPagedCallable( + listApplicationsTransportSettings, settings.listApplicationsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getApplicationMethodDescriptor); + methodDescriptors.add(listApplicationsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getApplicationCallable() { + return getApplicationCallable; + } + + @Override + public UnaryCallable + listApplicationsCallable() { + return listApplicationsCallable; + } + + @Override + public UnaryCallable + listApplicationsPagedCallable() { + return listApplicationsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAudienceSegmentServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAudienceSegmentServiceCallableFactory.java new file mode 100644 index 000000000000..72378dd2dceb --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAudienceSegmentServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AudienceSegmentService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAudienceSegmentServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAudienceSegmentServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAudienceSegmentServiceStub.java new file mode 100644 index 000000000000..0f91ef3597d4 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAudienceSegmentServiceStub.java @@ -0,0 +1,288 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.AudienceSegmentServiceClient.ListAudienceSegmentsPagedResponse; + +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.GetAudienceSegmentRequest; +import com.google.ads.admanager.v1.ListAudienceSegmentsRequest; +import com.google.ads.admanager.v1.ListAudienceSegmentsResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AudienceSegmentService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAudienceSegmentServiceStub extends AudienceSegmentServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getAudienceSegmentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.AudienceSegmentService/GetAudienceSegment") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/audienceSegments/*}", + 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(AudienceSegment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAudienceSegmentsRequest, ListAudienceSegmentsResponse> + listAudienceSegmentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.AudienceSegmentService/ListAudienceSegments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/audienceSegments", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAudienceSegmentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getAudienceSegmentCallable; + private final UnaryCallable + listAudienceSegmentsCallable; + private final UnaryCallable + listAudienceSegmentsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAudienceSegmentServiceStub create( + AudienceSegmentServiceStubSettings settings) throws IOException { + return new HttpJsonAudienceSegmentServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAudienceSegmentServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAudienceSegmentServiceStub( + AudienceSegmentServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonAudienceSegmentServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAudienceSegmentServiceStub( + AudienceSegmentServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAudienceSegmentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAudienceSegmentServiceStub( + AudienceSegmentServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAudienceSegmentServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAudienceSegmentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAudienceSegmentServiceStub( + AudienceSegmentServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getAudienceSegmentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAudienceSegmentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listAudienceSegmentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAudienceSegmentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getAudienceSegmentCallable = + callableFactory.createUnaryCallable( + getAudienceSegmentTransportSettings, + settings.getAudienceSegmentSettings(), + clientContext); + this.listAudienceSegmentsCallable = + callableFactory.createUnaryCallable( + listAudienceSegmentsTransportSettings, + settings.listAudienceSegmentsSettings(), + clientContext); + this.listAudienceSegmentsPagedCallable = + callableFactory.createPagedCallable( + listAudienceSegmentsTransportSettings, + settings.listAudienceSegmentsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getAudienceSegmentMethodDescriptor); + methodDescriptors.add(listAudienceSegmentsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getAudienceSegmentCallable() { + return getAudienceSegmentCallable; + } + + @Override + public UnaryCallable + listAudienceSegmentsCallable() { + return listAudienceSegmentsCallable; + } + + @Override + public UnaryCallable + listAudienceSegmentsPagedCallable() { + return listAudienceSegmentsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserLanguageServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserLanguageServiceCallableFactory.java new file mode 100644 index 000000000000..7f7edbe9ae60 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserLanguageServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the BrowserLanguageService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonBrowserLanguageServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserLanguageServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserLanguageServiceStub.java new file mode 100644 index 000000000000..6cf3089062d4 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserLanguageServiceStub.java @@ -0,0 +1,288 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.BrowserLanguageServiceClient.ListBrowserLanguagesPagedResponse; + +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.GetBrowserLanguageRequest; +import com.google.ads.admanager.v1.ListBrowserLanguagesRequest; +import com.google.ads.admanager.v1.ListBrowserLanguagesResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the BrowserLanguageService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonBrowserLanguageServiceStub extends BrowserLanguageServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getBrowserLanguageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.BrowserLanguageService/GetBrowserLanguage") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/browserLanguages/*}", + 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(BrowserLanguage.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListBrowserLanguagesRequest, ListBrowserLanguagesResponse> + listBrowserLanguagesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.BrowserLanguageService/ListBrowserLanguages") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/browserLanguages", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBrowserLanguagesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getBrowserLanguageCallable; + private final UnaryCallable + listBrowserLanguagesCallable; + private final UnaryCallable + listBrowserLanguagesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBrowserLanguageServiceStub create( + BrowserLanguageServiceStubSettings settings) throws IOException { + return new HttpJsonBrowserLanguageServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonBrowserLanguageServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonBrowserLanguageServiceStub( + BrowserLanguageServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonBrowserLanguageServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBrowserLanguageServiceStub( + BrowserLanguageServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonBrowserLanguageServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonBrowserLanguageServiceStub( + BrowserLanguageServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonBrowserLanguageServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBrowserLanguageServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonBrowserLanguageServiceStub( + BrowserLanguageServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getBrowserLanguageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBrowserLanguageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listBrowserLanguagesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listBrowserLanguagesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getBrowserLanguageCallable = + callableFactory.createUnaryCallable( + getBrowserLanguageTransportSettings, + settings.getBrowserLanguageSettings(), + clientContext); + this.listBrowserLanguagesCallable = + callableFactory.createUnaryCallable( + listBrowserLanguagesTransportSettings, + settings.listBrowserLanguagesSettings(), + clientContext); + this.listBrowserLanguagesPagedCallable = + callableFactory.createPagedCallable( + listBrowserLanguagesTransportSettings, + settings.listBrowserLanguagesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getBrowserLanguageMethodDescriptor); + methodDescriptors.add(listBrowserLanguagesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getBrowserLanguageCallable() { + return getBrowserLanguageCallable; + } + + @Override + public UnaryCallable + listBrowserLanguagesCallable() { + return listBrowserLanguagesCallable; + } + + @Override + public UnaryCallable + listBrowserLanguagesPagedCallable() { + return listBrowserLanguagesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserServiceCallableFactory.java new file mode 100644 index 000000000000..2c14e8cec868 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the BrowserService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonBrowserServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserServiceStub.java new file mode 100644 index 000000000000..c550da021c51 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBrowserServiceStub.java @@ -0,0 +1,270 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.BrowserServiceClient.ListBrowsersPagedResponse; + +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.GetBrowserRequest; +import com.google.ads.admanager.v1.ListBrowsersRequest; +import com.google.ads.admanager.v1.ListBrowsersResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the BrowserService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonBrowserServiceStub extends BrowserServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor getBrowserMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.BrowserService/GetBrowser") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/browsers/*}", + 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(Browser.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listBrowsersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.BrowserService/ListBrowsers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/browsers", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBrowsersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getBrowserCallable; + private final UnaryCallable listBrowsersCallable; + private final UnaryCallable + listBrowsersPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBrowserServiceStub create(BrowserServiceStubSettings settings) + throws IOException { + return new HttpJsonBrowserServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonBrowserServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonBrowserServiceStub( + BrowserServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonBrowserServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBrowserServiceStub( + BrowserServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonBrowserServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonBrowserServiceStub( + BrowserServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonBrowserServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBrowserServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonBrowserServiceStub( + BrowserServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getBrowserTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBrowserMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listBrowsersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBrowsersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getBrowserCallable = + callableFactory.createUnaryCallable( + getBrowserTransportSettings, settings.getBrowserSettings(), clientContext); + this.listBrowsersCallable = + callableFactory.createUnaryCallable( + listBrowsersTransportSettings, settings.listBrowsersSettings(), clientContext); + this.listBrowsersPagedCallable = + callableFactory.createPagedCallable( + listBrowsersTransportSettings, settings.listBrowsersSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getBrowserMethodDescriptor); + methodDescriptors.add(listBrowsersMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getBrowserCallable() { + return getBrowserCallable; + } + + @Override + public UnaryCallable listBrowsersCallable() { + return listBrowsersCallable; + } + + @Override + public UnaryCallable listBrowsersPagedCallable() { + return listBrowsersPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataKeyServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataKeyServiceCallableFactory.java new file mode 100644 index 000000000000..c2c39fdfabdc --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataKeyServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CmsMetadataKeyService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonCmsMetadataKeyServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataKeyServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataKeyServiceStub.java new file mode 100644 index 000000000000..d03ef83ed772 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataKeyServiceStub.java @@ -0,0 +1,284 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.CmsMetadataKeyServiceClient.ListCmsMetadataKeysPagedResponse; + +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.GetCmsMetadataKeyRequest; +import com.google.ads.admanager.v1.ListCmsMetadataKeysRequest; +import com.google.ads.admanager.v1.ListCmsMetadataKeysResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CmsMetadataKeyService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonCmsMetadataKeyServiceStub extends CmsMetadataKeyServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getCmsMetadataKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.CmsMetadataKeyService/GetCmsMetadataKey") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/cmsMetadataKeys/*}", + 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(CmsMetadataKey.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCmsMetadataKeysMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CmsMetadataKeyService/ListCmsMetadataKeys") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/cmsMetadataKeys", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCmsMetadataKeysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getCmsMetadataKeyCallable; + private final UnaryCallable + listCmsMetadataKeysCallable; + private final UnaryCallable + listCmsMetadataKeysPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCmsMetadataKeyServiceStub create( + CmsMetadataKeyServiceStubSettings settings) throws IOException { + return new HttpJsonCmsMetadataKeyServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCmsMetadataKeyServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCmsMetadataKeyServiceStub( + CmsMetadataKeyServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonCmsMetadataKeyServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCmsMetadataKeyServiceStub( + CmsMetadataKeyServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCmsMetadataKeyServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCmsMetadataKeyServiceStub( + CmsMetadataKeyServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonCmsMetadataKeyServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCmsMetadataKeyServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCmsMetadataKeyServiceStub( + CmsMetadataKeyServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getCmsMetadataKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCmsMetadataKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listCmsMetadataKeysTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCmsMetadataKeysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getCmsMetadataKeyCallable = + callableFactory.createUnaryCallable( + getCmsMetadataKeyTransportSettings, + settings.getCmsMetadataKeySettings(), + clientContext); + this.listCmsMetadataKeysCallable = + callableFactory.createUnaryCallable( + listCmsMetadataKeysTransportSettings, + settings.listCmsMetadataKeysSettings(), + clientContext); + this.listCmsMetadataKeysPagedCallable = + callableFactory.createPagedCallable( + listCmsMetadataKeysTransportSettings, + settings.listCmsMetadataKeysSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getCmsMetadataKeyMethodDescriptor); + methodDescriptors.add(listCmsMetadataKeysMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getCmsMetadataKeyCallable() { + return getCmsMetadataKeyCallable; + } + + @Override + public UnaryCallable + listCmsMetadataKeysCallable() { + return listCmsMetadataKeysCallable; + } + + @Override + public UnaryCallable + listCmsMetadataKeysPagedCallable() { + return listCmsMetadataKeysPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataValueServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataValueServiceCallableFactory.java new file mode 100644 index 000000000000..26a1b1cf0040 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataValueServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CmsMetadataValueService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonCmsMetadataValueServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataValueServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataValueServiceStub.java new file mode 100644 index 000000000000..03d912676f3f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCmsMetadataValueServiceStub.java @@ -0,0 +1,289 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.CmsMetadataValueServiceClient.ListCmsMetadataValuesPagedResponse; + +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.GetCmsMetadataValueRequest; +import com.google.ads.admanager.v1.ListCmsMetadataValuesRequest; +import com.google.ads.admanager.v1.ListCmsMetadataValuesResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CmsMetadataValueService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonCmsMetadataValueServiceStub extends CmsMetadataValueServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getCmsMetadataValueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CmsMetadataValueService/GetCmsMetadataValue") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/cmsMetadataValues/*}", + 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(CmsMetadataValue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCmsMetadataValuesRequest, ListCmsMetadataValuesResponse> + listCmsMetadataValuesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CmsMetadataValueService/ListCmsMetadataValues") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/cmsMetadataValues", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCmsMetadataValuesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getCmsMetadataValueCallable; + private final UnaryCallable + listCmsMetadataValuesCallable; + private final UnaryCallable + listCmsMetadataValuesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCmsMetadataValueServiceStub create( + CmsMetadataValueServiceStubSettings settings) throws IOException { + return new HttpJsonCmsMetadataValueServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCmsMetadataValueServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCmsMetadataValueServiceStub( + CmsMetadataValueServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonCmsMetadataValueServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCmsMetadataValueServiceStub( + CmsMetadataValueServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCmsMetadataValueServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCmsMetadataValueServiceStub( + CmsMetadataValueServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCmsMetadataValueServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCmsMetadataValueServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCmsMetadataValueServiceStub( + CmsMetadataValueServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getCmsMetadataValueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCmsMetadataValueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listCmsMetadataValuesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCmsMetadataValuesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getCmsMetadataValueCallable = + callableFactory.createUnaryCallable( + getCmsMetadataValueTransportSettings, + settings.getCmsMetadataValueSettings(), + clientContext); + this.listCmsMetadataValuesCallable = + callableFactory.createUnaryCallable( + listCmsMetadataValuesTransportSettings, + settings.listCmsMetadataValuesSettings(), + clientContext); + this.listCmsMetadataValuesPagedCallable = + callableFactory.createPagedCallable( + listCmsMetadataValuesTransportSettings, + settings.listCmsMetadataValuesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getCmsMetadataValueMethodDescriptor); + methodDescriptors.add(listCmsMetadataValuesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getCmsMetadataValueCallable() { + return getCmsMetadataValueCallable; + } + + @Override + public UnaryCallable + listCmsMetadataValuesCallable() { + return listCmsMetadataValuesCallable; + } + + @Override + public UnaryCallable + listCmsMetadataValuesPagedCallable() { + return listCmsMetadataValuesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContactServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContactServiceCallableFactory.java new file mode 100644 index 000000000000..28ea9ebc3b4e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContactServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ContactService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonContactServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContactServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContactServiceStub.java new file mode 100644 index 000000000000..c6238fa1f20e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContactServiceStub.java @@ -0,0 +1,522 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContactServiceClient.ListContactsPagedResponse; + +import com.google.ads.admanager.v1.BatchCreateContactsRequest; +import com.google.ads.admanager.v1.BatchCreateContactsResponse; +import com.google.ads.admanager.v1.BatchUpdateContactsRequest; +import com.google.ads.admanager.v1.BatchUpdateContactsResponse; +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.CreateContactRequest; +import com.google.ads.admanager.v1.GetContactRequest; +import com.google.ads.admanager.v1.ListContactsRequest; +import com.google.ads.admanager.v1.ListContactsResponse; +import com.google.ads.admanager.v1.UpdateContactRequest; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ContactService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonContactServiceStub extends ContactServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor getContactMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContactService/GetContact") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/contacts/*}", + 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(Contact.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listContactsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContactService/ListContacts") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/contacts", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListContactsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createContactMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContactService/CreateContact") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/contacts", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("contact", request.getContact(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Contact.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchCreateContactsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContactService/BatchCreateContacts") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/contacts:batchCreate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchCreateContactsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateContactMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContactService/UpdateContact") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{contact.name=networks/*/contacts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "contact.name", request.getContact().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("contact", request.getContact(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Contact.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchUpdateContactsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContactService/BatchUpdateContacts") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/contacts:batchUpdate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchUpdateContactsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getContactCallable; + private final UnaryCallable listContactsCallable; + private final UnaryCallable + listContactsPagedCallable; + private final UnaryCallable createContactCallable; + private final UnaryCallable + batchCreateContactsCallable; + private final UnaryCallable updateContactCallable; + private final UnaryCallable + batchUpdateContactsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonContactServiceStub create(ContactServiceStubSettings settings) + throws IOException { + return new HttpJsonContactServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonContactServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonContactServiceStub( + ContactServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonContactServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonContactServiceStub( + ContactServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonContactServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonContactServiceStub( + ContactServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonContactServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonContactServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonContactServiceStub( + ContactServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getContactTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getContactMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listContactsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listContactsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createContactTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createContactMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchCreateContactsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchCreateContactsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateContactTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateContactMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("contact.name", String.valueOf(request.getContact().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchUpdateContactsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchUpdateContactsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getContactCallable = + callableFactory.createUnaryCallable( + getContactTransportSettings, settings.getContactSettings(), clientContext); + this.listContactsCallable = + callableFactory.createUnaryCallable( + listContactsTransportSettings, settings.listContactsSettings(), clientContext); + this.listContactsPagedCallable = + callableFactory.createPagedCallable( + listContactsTransportSettings, settings.listContactsSettings(), clientContext); + this.createContactCallable = + callableFactory.createUnaryCallable( + createContactTransportSettings, settings.createContactSettings(), clientContext); + this.batchCreateContactsCallable = + callableFactory.createUnaryCallable( + batchCreateContactsTransportSettings, + settings.batchCreateContactsSettings(), + clientContext); + this.updateContactCallable = + callableFactory.createUnaryCallable( + updateContactTransportSettings, settings.updateContactSettings(), clientContext); + this.batchUpdateContactsCallable = + callableFactory.createUnaryCallable( + batchUpdateContactsTransportSettings, + settings.batchUpdateContactsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getContactMethodDescriptor); + methodDescriptors.add(listContactsMethodDescriptor); + methodDescriptors.add(createContactMethodDescriptor); + methodDescriptors.add(batchCreateContactsMethodDescriptor); + methodDescriptors.add(updateContactMethodDescriptor); + methodDescriptors.add(batchUpdateContactsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getContactCallable() { + return getContactCallable; + } + + @Override + public UnaryCallable listContactsCallable() { + return listContactsCallable; + } + + @Override + public UnaryCallable listContactsPagedCallable() { + return listContactsPagedCallable; + } + + @Override + public UnaryCallable createContactCallable() { + return createContactCallable; + } + + @Override + public UnaryCallable + batchCreateContactsCallable() { + return batchCreateContactsCallable; + } + + @Override + public UnaryCallable updateContactCallable() { + return updateContactCallable; + } + + @Override + public UnaryCallable + batchUpdateContactsCallable() { + return batchUpdateContactsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentBundleServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentBundleServiceCallableFactory.java new file mode 100644 index 000000000000..a11979029a3b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentBundleServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ContentBundleService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonContentBundleServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentBundleServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentBundleServiceStub.java new file mode 100644 index 000000000000..ef389192cd95 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentBundleServiceStub.java @@ -0,0 +1,279 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContentBundleServiceClient.ListContentBundlesPagedResponse; + +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.GetContentBundleRequest; +import com.google.ads.admanager.v1.ListContentBundlesRequest; +import com.google.ads.admanager.v1.ListContentBundlesResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ContentBundleService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonContentBundleServiceStub extends ContentBundleServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getContentBundleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContentBundleService/GetContentBundle") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/contentBundles/*}", + 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(ContentBundle.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listContentBundlesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContentBundleService/ListContentBundles") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/contentBundles", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListContentBundlesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getContentBundleCallable; + private final UnaryCallable + listContentBundlesCallable; + private final UnaryCallable + listContentBundlesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonContentBundleServiceStub create( + ContentBundleServiceStubSettings settings) throws IOException { + return new HttpJsonContentBundleServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonContentBundleServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonContentBundleServiceStub( + ContentBundleServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonContentBundleServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonContentBundleServiceStub( + ContentBundleServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonContentBundleServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonContentBundleServiceStub( + ContentBundleServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonContentBundleServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonContentBundleServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonContentBundleServiceStub( + ContentBundleServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getContentBundleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getContentBundleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listContentBundlesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listContentBundlesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getContentBundleCallable = + callableFactory.createUnaryCallable( + getContentBundleTransportSettings, settings.getContentBundleSettings(), clientContext); + this.listContentBundlesCallable = + callableFactory.createUnaryCallable( + listContentBundlesTransportSettings, + settings.listContentBundlesSettings(), + clientContext); + this.listContentBundlesPagedCallable = + callableFactory.createPagedCallable( + listContentBundlesTransportSettings, + settings.listContentBundlesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getContentBundleMethodDescriptor); + methodDescriptors.add(listContentBundlesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getContentBundleCallable() { + return getContentBundleCallable; + } + + @Override + public UnaryCallable + listContentBundlesCallable() { + return listContentBundlesCallable; + } + + @Override + public UnaryCallable + listContentBundlesPagedCallable() { + return listContentBundlesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentLabelServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentLabelServiceCallableFactory.java new file mode 100644 index 000000000000..c89589bbc23d --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentLabelServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ContentLabelService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonContentLabelServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentLabelServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentLabelServiceStub.java new file mode 100644 index 000000000000..3bd9c1aa82cc --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentLabelServiceStub.java @@ -0,0 +1,279 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContentLabelServiceClient.ListContentLabelsPagedResponse; + +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.GetContentLabelRequest; +import com.google.ads.admanager.v1.ListContentLabelsRequest; +import com.google.ads.admanager.v1.ListContentLabelsResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ContentLabelService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonContentLabelServiceStub extends ContentLabelServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getContentLabelMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContentLabelService/GetContentLabel") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/contentLabels/*}", + 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(ContentLabel.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listContentLabelsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContentLabelService/ListContentLabels") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/contentLabels", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListContentLabelsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getContentLabelCallable; + private final UnaryCallable + listContentLabelsCallable; + private final UnaryCallable + listContentLabelsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonContentLabelServiceStub create( + ContentLabelServiceStubSettings settings) throws IOException { + return new HttpJsonContentLabelServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonContentLabelServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonContentLabelServiceStub( + ContentLabelServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonContentLabelServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonContentLabelServiceStub( + ContentLabelServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonContentLabelServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonContentLabelServiceStub( + ContentLabelServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonContentLabelServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonContentLabelServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonContentLabelServiceStub( + ContentLabelServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getContentLabelTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getContentLabelMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listContentLabelsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listContentLabelsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getContentLabelCallable = + callableFactory.createUnaryCallable( + getContentLabelTransportSettings, settings.getContentLabelSettings(), clientContext); + this.listContentLabelsCallable = + callableFactory.createUnaryCallable( + listContentLabelsTransportSettings, + settings.listContentLabelsSettings(), + clientContext); + this.listContentLabelsPagedCallable = + callableFactory.createPagedCallable( + listContentLabelsTransportSettings, + settings.listContentLabelsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getContentLabelMethodDescriptor); + methodDescriptors.add(listContentLabelsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getContentLabelCallable() { + return getContentLabelCallable; + } + + @Override + public UnaryCallable + listContentLabelsCallable() { + return listContentLabelsCallable; + } + + @Override + public UnaryCallable + listContentLabelsPagedCallable() { + return listContentLabelsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentServiceCallableFactory.java new file mode 100644 index 000000000000..aae2eb1cdc1a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ContentService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonContentServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentServiceStub.java new file mode 100644 index 000000000000..2efb85313f14 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonContentServiceStub.java @@ -0,0 +1,270 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ContentServiceClient.ListContentPagedResponse; + +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.GetContentRequest; +import com.google.ads.admanager.v1.ListContentRequest; +import com.google.ads.admanager.v1.ListContentResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ContentService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonContentServiceStub extends ContentServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor getContentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContentService/GetContent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/content/*}", + 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(Content.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listContentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.ContentService/ListContent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/content", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListContentResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getContentCallable; + private final UnaryCallable listContentCallable; + private final UnaryCallable + listContentPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonContentServiceStub create(ContentServiceStubSettings settings) + throws IOException { + return new HttpJsonContentServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonContentServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonContentServiceStub( + ContentServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonContentServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonContentServiceStub( + ContentServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonContentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonContentServiceStub( + ContentServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonContentServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonContentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonContentServiceStub( + ContentServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getContentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getContentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listContentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listContentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getContentCallable = + callableFactory.createUnaryCallable( + getContentTransportSettings, settings.getContentSettings(), clientContext); + this.listContentCallable = + callableFactory.createUnaryCallable( + listContentTransportSettings, settings.listContentSettings(), clientContext); + this.listContentPagedCallable = + callableFactory.createPagedCallable( + listContentTransportSettings, settings.listContentSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getContentMethodDescriptor); + methodDescriptors.add(listContentMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getContentCallable() { + return getContentCallable; + } + + @Override + public UnaryCallable listContentCallable() { + return listContentCallable; + } + + @Override + public UnaryCallable listContentPagedCallable() { + return listContentPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCreativeTemplateServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCreativeTemplateServiceCallableFactory.java new file mode 100644 index 000000000000..47bdf658d345 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCreativeTemplateServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CreativeTemplateService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonCreativeTemplateServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCreativeTemplateServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCreativeTemplateServiceStub.java new file mode 100644 index 000000000000..7d7a0a802e87 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCreativeTemplateServiceStub.java @@ -0,0 +1,289 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.CreativeTemplateServiceClient.ListCreativeTemplatesPagedResponse; + +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.GetCreativeTemplateRequest; +import com.google.ads.admanager.v1.ListCreativeTemplatesRequest; +import com.google.ads.admanager.v1.ListCreativeTemplatesResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CreativeTemplateService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonCreativeTemplateServiceStub extends CreativeTemplateServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getCreativeTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CreativeTemplateService/GetCreativeTemplate") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/creativeTemplates/*}", + 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(CreativeTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCreativeTemplatesRequest, ListCreativeTemplatesResponse> + listCreativeTemplatesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CreativeTemplateService/ListCreativeTemplates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/creativeTemplates", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCreativeTemplatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getCreativeTemplateCallable; + private final UnaryCallable + listCreativeTemplatesCallable; + private final UnaryCallable + listCreativeTemplatesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCreativeTemplateServiceStub create( + CreativeTemplateServiceStubSettings settings) throws IOException { + return new HttpJsonCreativeTemplateServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCreativeTemplateServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCreativeTemplateServiceStub( + CreativeTemplateServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonCreativeTemplateServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCreativeTemplateServiceStub( + CreativeTemplateServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCreativeTemplateServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCreativeTemplateServiceStub( + CreativeTemplateServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCreativeTemplateServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCreativeTemplateServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCreativeTemplateServiceStub( + CreativeTemplateServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getCreativeTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCreativeTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listCreativeTemplatesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCreativeTemplatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getCreativeTemplateCallable = + callableFactory.createUnaryCallable( + getCreativeTemplateTransportSettings, + settings.getCreativeTemplateSettings(), + clientContext); + this.listCreativeTemplatesCallable = + callableFactory.createUnaryCallable( + listCreativeTemplatesTransportSettings, + settings.listCreativeTemplatesSettings(), + clientContext); + this.listCreativeTemplatesPagedCallable = + callableFactory.createPagedCallable( + listCreativeTemplatesTransportSettings, + settings.listCreativeTemplatesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getCreativeTemplateMethodDescriptor); + methodDescriptors.add(listCreativeTemplatesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getCreativeTemplateCallable() { + return getCreativeTemplateCallable; + } + + @Override + public UnaryCallable + listCreativeTemplatesCallable() { + return listCreativeTemplatesCallable; + } + + @Override + public UnaryCallable + listCreativeTemplatesPagedCallable() { + return listCreativeTemplatesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomFieldServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomFieldServiceStub.java index 7b0dbbd4c8b9..398a28e0bc39 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomFieldServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomFieldServiceStub.java @@ -18,10 +18,20 @@ import static com.google.ads.admanager.v1.CustomFieldServiceClient.ListCustomFieldsPagedResponse; +import com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse; +import com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse; +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse; +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse; +import com.google.ads.admanager.v1.CreateCustomFieldRequest; import com.google.ads.admanager.v1.CustomField; import com.google.ads.admanager.v1.GetCustomFieldRequest; import com.google.ads.admanager.v1.ListCustomFieldsRequest; import com.google.ads.admanager.v1.ListCustomFieldsResponse; +import com.google.ads.admanager.v1.UpdateCustomFieldRequest; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -126,11 +136,258 @@ public class HttpJsonCustomFieldServiceStub extends CustomFieldServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + createCustomFieldMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.CustomFieldService/CreateCustomField") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/customFields", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("customField", request.getCustomField(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomField.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchCreateCustomFieldsRequest, BatchCreateCustomFieldsResponse> + batchCreateCustomFieldsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomFieldService/BatchCreateCustomFields") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/customFields:batchCreate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchCreateCustomFieldsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCustomFieldMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.CustomFieldService/UpdateCustomField") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{customField.name=networks/*/customFields/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "customField.name", request.getCustomField().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("customField", request.getCustomField(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomField.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchUpdateCustomFieldsRequest, BatchUpdateCustomFieldsResponse> + batchUpdateCustomFieldsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomFieldService/BatchUpdateCustomFields") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/customFields:batchUpdate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchUpdateCustomFieldsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchActivateCustomFieldsRequest, BatchActivateCustomFieldsResponse> + batchActivateCustomFieldsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomFieldService/BatchActivateCustomFields") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/customFields:batchActivate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchActivateCustomFieldsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchDeactivateCustomFieldsRequest, BatchDeactivateCustomFieldsResponse> + batchDeactivateCustomFieldsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomFieldService/BatchDeactivateCustomFields") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/customFields:batchDeactivate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchDeactivateCustomFieldsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getCustomFieldCallable; private final UnaryCallable listCustomFieldsCallable; private final UnaryCallable listCustomFieldsPagedCallable; + private final UnaryCallable createCustomFieldCallable; + private final UnaryCallable + batchCreateCustomFieldsCallable; + private final UnaryCallable updateCustomFieldCallable; + private final UnaryCallable + batchUpdateCustomFieldsCallable; + private final UnaryCallable + batchActivateCustomFieldsCallable; + private final UnaryCallable< + BatchDeactivateCustomFieldsRequest, BatchDeactivateCustomFieldsResponse> + batchDeactivateCustomFieldsCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -197,6 +454,82 @@ protected HttpJsonCustomFieldServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings createCustomFieldTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCustomFieldMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchCreateCustomFieldsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchCreateCustomFieldsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateCustomFieldTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCustomFieldMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "custom_field.name", String.valueOf(request.getCustomField().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchUpdateCustomFieldsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchUpdateCustomFieldsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchActivateCustomFieldsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchActivateCustomFieldsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchDeactivateCustomFieldsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(batchDeactivateCustomFieldsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.getCustomFieldCallable = callableFactory.createUnaryCallable( @@ -207,6 +540,36 @@ protected HttpJsonCustomFieldServiceStub( this.listCustomFieldsPagedCallable = callableFactory.createPagedCallable( listCustomFieldsTransportSettings, settings.listCustomFieldsSettings(), clientContext); + this.createCustomFieldCallable = + callableFactory.createUnaryCallable( + createCustomFieldTransportSettings, + settings.createCustomFieldSettings(), + clientContext); + this.batchCreateCustomFieldsCallable = + callableFactory.createUnaryCallable( + batchCreateCustomFieldsTransportSettings, + settings.batchCreateCustomFieldsSettings(), + clientContext); + this.updateCustomFieldCallable = + callableFactory.createUnaryCallable( + updateCustomFieldTransportSettings, + settings.updateCustomFieldSettings(), + clientContext); + this.batchUpdateCustomFieldsCallable = + callableFactory.createUnaryCallable( + batchUpdateCustomFieldsTransportSettings, + settings.batchUpdateCustomFieldsSettings(), + clientContext); + this.batchActivateCustomFieldsCallable = + callableFactory.createUnaryCallable( + batchActivateCustomFieldsTransportSettings, + settings.batchActivateCustomFieldsSettings(), + clientContext); + this.batchDeactivateCustomFieldsCallable = + callableFactory.createUnaryCallable( + batchDeactivateCustomFieldsTransportSettings, + settings.batchDeactivateCustomFieldsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -217,6 +580,12 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(getCustomFieldMethodDescriptor); methodDescriptors.add(listCustomFieldsMethodDescriptor); + methodDescriptors.add(createCustomFieldMethodDescriptor); + methodDescriptors.add(batchCreateCustomFieldsMethodDescriptor); + methodDescriptors.add(updateCustomFieldMethodDescriptor); + methodDescriptors.add(batchUpdateCustomFieldsMethodDescriptor); + methodDescriptors.add(batchActivateCustomFieldsMethodDescriptor); + methodDescriptors.add(batchDeactivateCustomFieldsMethodDescriptor); return methodDescriptors; } @@ -237,6 +606,40 @@ public UnaryCallable getCustomFieldCallable( return listCustomFieldsPagedCallable; } + @Override + public UnaryCallable createCustomFieldCallable() { + return createCustomFieldCallable; + } + + @Override + public UnaryCallable + batchCreateCustomFieldsCallable() { + return batchCreateCustomFieldsCallable; + } + + @Override + public UnaryCallable updateCustomFieldCallable() { + return updateCustomFieldCallable; + } + + @Override + public UnaryCallable + batchUpdateCustomFieldsCallable() { + return batchUpdateCustomFieldsCallable; + } + + @Override + public UnaryCallable + batchActivateCustomFieldsCallable() { + return batchActivateCustomFieldsCallable; + } + + @Override + public UnaryCallable + batchDeactivateCustomFieldsCallable() { + return batchDeactivateCustomFieldsCallable; + } + @Override public final void close() { try { diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCapabilityServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCapabilityServiceCallableFactory.java new file mode 100644 index 000000000000..d8452a01d856 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCapabilityServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DeviceCapabilityService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDeviceCapabilityServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCapabilityServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCapabilityServiceStub.java new file mode 100644 index 000000000000..d8c3214b71f3 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCapabilityServiceStub.java @@ -0,0 +1,289 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.DeviceCapabilityServiceClient.ListDeviceCapabilitiesPagedResponse; + +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.GetDeviceCapabilityRequest; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DeviceCapabilityService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDeviceCapabilityServiceStub extends DeviceCapabilityServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getDeviceCapabilityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.DeviceCapabilityService/GetDeviceCapability") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/deviceCapabilities/*}", + 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(DeviceCapability.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListDeviceCapabilitiesRequest, ListDeviceCapabilitiesResponse> + listDeviceCapabilitiesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.DeviceCapabilityService/ListDeviceCapabilities") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/deviceCapabilities", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeviceCapabilitiesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getDeviceCapabilityCallable; + private final UnaryCallable + listDeviceCapabilitiesCallable; + private final UnaryCallable + listDeviceCapabilitiesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDeviceCapabilityServiceStub create( + DeviceCapabilityServiceStubSettings settings) throws IOException { + return new HttpJsonDeviceCapabilityServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDeviceCapabilityServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDeviceCapabilityServiceStub( + DeviceCapabilityServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonDeviceCapabilityServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDeviceCapabilityServiceStub( + DeviceCapabilityServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDeviceCapabilityServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDeviceCapabilityServiceStub( + DeviceCapabilityServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonDeviceCapabilityServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDeviceCapabilityServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDeviceCapabilityServiceStub( + DeviceCapabilityServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getDeviceCapabilityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDeviceCapabilityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDeviceCapabilitiesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listDeviceCapabilitiesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getDeviceCapabilityCallable = + callableFactory.createUnaryCallable( + getDeviceCapabilityTransportSettings, + settings.getDeviceCapabilitySettings(), + clientContext); + this.listDeviceCapabilitiesCallable = + callableFactory.createUnaryCallable( + listDeviceCapabilitiesTransportSettings, + settings.listDeviceCapabilitiesSettings(), + clientContext); + this.listDeviceCapabilitiesPagedCallable = + callableFactory.createPagedCallable( + listDeviceCapabilitiesTransportSettings, + settings.listDeviceCapabilitiesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getDeviceCapabilityMethodDescriptor); + methodDescriptors.add(listDeviceCapabilitiesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getDeviceCapabilityCallable() { + return getDeviceCapabilityCallable; + } + + @Override + public UnaryCallable + listDeviceCapabilitiesCallable() { + return listDeviceCapabilitiesCallable; + } + + @Override + public UnaryCallable + listDeviceCapabilitiesPagedCallable() { + return listDeviceCapabilitiesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceManufacturerServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceManufacturerServiceCallableFactory.java new file mode 100644 index 000000000000..d4df6abbbe68 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceManufacturerServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DeviceManufacturerService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDeviceManufacturerServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceManufacturerServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceManufacturerServiceStub.java new file mode 100644 index 000000000000..2dff7ec2567a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceManufacturerServiceStub.java @@ -0,0 +1,290 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.DeviceManufacturerServiceClient.ListDeviceManufacturersPagedResponse; + +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.GetDeviceManufacturerRequest; +import com.google.ads.admanager.v1.ListDeviceManufacturersRequest; +import com.google.ads.admanager.v1.ListDeviceManufacturersResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DeviceManufacturerService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDeviceManufacturerServiceStub extends DeviceManufacturerServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getDeviceManufacturerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.DeviceManufacturerService/GetDeviceManufacturer") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/deviceManufacturers/*}", + 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(DeviceManufacturer.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListDeviceManufacturersRequest, ListDeviceManufacturersResponse> + listDeviceManufacturersMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.DeviceManufacturerService/ListDeviceManufacturers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/deviceManufacturers", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeviceManufacturersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getDeviceManufacturerCallable; + private final UnaryCallable + listDeviceManufacturersCallable; + private final UnaryCallable + listDeviceManufacturersPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDeviceManufacturerServiceStub create( + DeviceManufacturerServiceStubSettings settings) throws IOException { + return new HttpJsonDeviceManufacturerServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDeviceManufacturerServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDeviceManufacturerServiceStub( + DeviceManufacturerServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonDeviceManufacturerServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDeviceManufacturerServiceStub( + DeviceManufacturerServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDeviceManufacturerServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDeviceManufacturerServiceStub( + DeviceManufacturerServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonDeviceManufacturerServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDeviceManufacturerServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDeviceManufacturerServiceStub( + DeviceManufacturerServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getDeviceManufacturerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDeviceManufacturerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDeviceManufacturersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listDeviceManufacturersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getDeviceManufacturerCallable = + callableFactory.createUnaryCallable( + getDeviceManufacturerTransportSettings, + settings.getDeviceManufacturerSettings(), + clientContext); + this.listDeviceManufacturersCallable = + callableFactory.createUnaryCallable( + listDeviceManufacturersTransportSettings, + settings.listDeviceManufacturersSettings(), + clientContext); + this.listDeviceManufacturersPagedCallable = + callableFactory.createPagedCallable( + listDeviceManufacturersTransportSettings, + settings.listDeviceManufacturersSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getDeviceManufacturerMethodDescriptor); + methodDescriptors.add(listDeviceManufacturersMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + getDeviceManufacturerCallable() { + return getDeviceManufacturerCallable; + } + + @Override + public UnaryCallable + listDeviceManufacturersCallable() { + return listDeviceManufacturersCallable; + } + + @Override + public UnaryCallable + listDeviceManufacturersPagedCallable() { + return listDeviceManufacturersPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileCarrierServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileCarrierServiceCallableFactory.java new file mode 100644 index 000000000000..6783d65c2731 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileCarrierServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the MobileCarrierService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonMobileCarrierServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileCarrierServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileCarrierServiceStub.java new file mode 100644 index 000000000000..c3c9acde1eca --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileCarrierServiceStub.java @@ -0,0 +1,279 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.MobileCarrierServiceClient.ListMobileCarriersPagedResponse; + +import com.google.ads.admanager.v1.GetMobileCarrierRequest; +import com.google.ads.admanager.v1.ListMobileCarriersRequest; +import com.google.ads.admanager.v1.ListMobileCarriersResponse; +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the MobileCarrierService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonMobileCarrierServiceStub extends MobileCarrierServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getMobileCarrierMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.MobileCarrierService/GetMobileCarrier") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/mobileCarriers/*}", + 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(MobileCarrier.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listMobileCarriersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.MobileCarrierService/ListMobileCarriers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/mobileCarriers", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListMobileCarriersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getMobileCarrierCallable; + private final UnaryCallable + listMobileCarriersCallable; + private final UnaryCallable + listMobileCarriersPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonMobileCarrierServiceStub create( + MobileCarrierServiceStubSettings settings) throws IOException { + return new HttpJsonMobileCarrierServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonMobileCarrierServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonMobileCarrierServiceStub( + MobileCarrierServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonMobileCarrierServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonMobileCarrierServiceStub( + MobileCarrierServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonMobileCarrierServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonMobileCarrierServiceStub( + MobileCarrierServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonMobileCarrierServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonMobileCarrierServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonMobileCarrierServiceStub( + MobileCarrierServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getMobileCarrierTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMobileCarrierMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listMobileCarriersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listMobileCarriersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getMobileCarrierCallable = + callableFactory.createUnaryCallable( + getMobileCarrierTransportSettings, settings.getMobileCarrierSettings(), clientContext); + this.listMobileCarriersCallable = + callableFactory.createUnaryCallable( + listMobileCarriersTransportSettings, + settings.listMobileCarriersSettings(), + clientContext); + this.listMobileCarriersPagedCallable = + callableFactory.createPagedCallable( + listMobileCarriersTransportSettings, + settings.listMobileCarriersSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getMobileCarrierMethodDescriptor); + methodDescriptors.add(listMobileCarriersMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getMobileCarrierCallable() { + return getMobileCarrierCallable; + } + + @Override + public UnaryCallable + listMobileCarriersCallable() { + return listMobileCarriersCallable; + } + + @Override + public UnaryCallable + listMobileCarriersPagedCallable() { + return listMobileCarriersPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceServiceCallableFactory.java new file mode 100644 index 000000000000..48435eb6e0d0 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the MobileDeviceService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonMobileDeviceServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceServiceStub.java new file mode 100644 index 000000000000..eba4513ac4e6 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceServiceStub.java @@ -0,0 +1,279 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.MobileDeviceServiceClient.ListMobileDevicesPagedResponse; + +import com.google.ads.admanager.v1.GetMobileDeviceRequest; +import com.google.ads.admanager.v1.ListMobileDevicesRequest; +import com.google.ads.admanager.v1.ListMobileDevicesResponse; +import com.google.ads.admanager.v1.MobileDevice; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the MobileDeviceService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonMobileDeviceServiceStub extends MobileDeviceServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getMobileDeviceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.MobileDeviceService/GetMobileDevice") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/mobileDevices/*}", + 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(MobileDevice.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listMobileDevicesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.MobileDeviceService/ListMobileDevices") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/mobileDevices", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListMobileDevicesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getMobileDeviceCallable; + private final UnaryCallable + listMobileDevicesCallable; + private final UnaryCallable + listMobileDevicesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonMobileDeviceServiceStub create( + MobileDeviceServiceStubSettings settings) throws IOException { + return new HttpJsonMobileDeviceServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonMobileDeviceServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonMobileDeviceServiceStub( + MobileDeviceServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonMobileDeviceServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonMobileDeviceServiceStub( + MobileDeviceServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonMobileDeviceServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonMobileDeviceServiceStub( + MobileDeviceServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonMobileDeviceServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonMobileDeviceServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonMobileDeviceServiceStub( + MobileDeviceServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getMobileDeviceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMobileDeviceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listMobileDevicesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listMobileDevicesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getMobileDeviceCallable = + callableFactory.createUnaryCallable( + getMobileDeviceTransportSettings, settings.getMobileDeviceSettings(), clientContext); + this.listMobileDevicesCallable = + callableFactory.createUnaryCallable( + listMobileDevicesTransportSettings, + settings.listMobileDevicesSettings(), + clientContext); + this.listMobileDevicesPagedCallable = + callableFactory.createPagedCallable( + listMobileDevicesTransportSettings, + settings.listMobileDevicesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getMobileDeviceMethodDescriptor); + methodDescriptors.add(listMobileDevicesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getMobileDeviceCallable() { + return getMobileDeviceCallable; + } + + @Override + public UnaryCallable + listMobileDevicesCallable() { + return listMobileDevicesCallable; + } + + @Override + public UnaryCallable + listMobileDevicesPagedCallable() { + return listMobileDevicesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceSubmodelServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceSubmodelServiceCallableFactory.java new file mode 100644 index 000000000000..5c8661b632df --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceSubmodelServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the MobileDeviceSubmodelService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonMobileDeviceSubmodelServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceSubmodelServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceSubmodelServiceStub.java new file mode 100644 index 000000000000..b06a8588fb01 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonMobileDeviceSubmodelServiceStub.java @@ -0,0 +1,293 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient.ListMobileDeviceSubmodelsPagedResponse; + +import com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest; +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest; +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse; +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the MobileDeviceSubmodelService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonMobileDeviceSubmodelServiceStub extends MobileDeviceSubmodelServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getMobileDeviceSubmodelMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.MobileDeviceSubmodelService/GetMobileDeviceSubmodel") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/mobileDeviceSubmodels/*}", + 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(MobileDeviceSubmodel.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListMobileDeviceSubmodelsRequest, ListMobileDeviceSubmodelsResponse> + listMobileDeviceSubmodelsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.MobileDeviceSubmodelService/ListMobileDeviceSubmodels") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/mobileDeviceSubmodels", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListMobileDeviceSubmodelsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getMobileDeviceSubmodelCallable; + private final UnaryCallable + listMobileDeviceSubmodelsCallable; + private final UnaryCallable< + ListMobileDeviceSubmodelsRequest, ListMobileDeviceSubmodelsPagedResponse> + listMobileDeviceSubmodelsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonMobileDeviceSubmodelServiceStub create( + MobileDeviceSubmodelServiceStubSettings settings) throws IOException { + return new HttpJsonMobileDeviceSubmodelServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonMobileDeviceSubmodelServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonMobileDeviceSubmodelServiceStub( + MobileDeviceSubmodelServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonMobileDeviceSubmodelServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonMobileDeviceSubmodelServiceStub( + MobileDeviceSubmodelServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonMobileDeviceSubmodelServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonMobileDeviceSubmodelServiceStub( + MobileDeviceSubmodelServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonMobileDeviceSubmodelServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonMobileDeviceSubmodelServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonMobileDeviceSubmodelServiceStub( + MobileDeviceSubmodelServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getMobileDeviceSubmodelTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMobileDeviceSubmodelMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listMobileDeviceSubmodelsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listMobileDeviceSubmodelsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getMobileDeviceSubmodelCallable = + callableFactory.createUnaryCallable( + getMobileDeviceSubmodelTransportSettings, + settings.getMobileDeviceSubmodelSettings(), + clientContext); + this.listMobileDeviceSubmodelsCallable = + callableFactory.createUnaryCallable( + listMobileDeviceSubmodelsTransportSettings, + settings.listMobileDeviceSubmodelsSettings(), + clientContext); + this.listMobileDeviceSubmodelsPagedCallable = + callableFactory.createPagedCallable( + listMobileDeviceSubmodelsTransportSettings, + settings.listMobileDeviceSubmodelsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getMobileDeviceSubmodelMethodDescriptor); + methodDescriptors.add(listMobileDeviceSubmodelsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + getMobileDeviceSubmodelCallable() { + return getMobileDeviceSubmodelCallable; + } + + @Override + public UnaryCallable + listMobileDeviceSubmodelsCallable() { + return listMobileDeviceSubmodelsCallable; + } + + @Override + public UnaryCallable + listMobileDeviceSubmodelsPagedCallable() { + return listMobileDeviceSubmodelsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPlacementServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPlacementServiceStub.java index 3349b6270762..ef9ee8ecbae5 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPlacementServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPlacementServiceStub.java @@ -18,10 +18,22 @@ import static com.google.ads.admanager.v1.PlacementServiceClient.ListPlacementsPagedResponse; +import com.google.ads.admanager.v1.BatchActivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchActivatePlacementsResponse; +import com.google.ads.admanager.v1.BatchArchivePlacementsRequest; +import com.google.ads.admanager.v1.BatchArchivePlacementsResponse; +import com.google.ads.admanager.v1.BatchCreatePlacementsRequest; +import com.google.ads.admanager.v1.BatchCreatePlacementsResponse; +import com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse; +import com.google.ads.admanager.v1.BatchUpdatePlacementsRequest; +import com.google.ads.admanager.v1.BatchUpdatePlacementsResponse; +import com.google.ads.admanager.v1.CreatePlacementRequest; import com.google.ads.admanager.v1.GetPlacementRequest; import com.google.ads.admanager.v1.ListPlacementsRequest; import com.google.ads.admanager.v1.ListPlacementsResponse; import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.UpdatePlacementRequest; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -126,10 +138,294 @@ public class HttpJsonPlacementServiceStub extends PlacementServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + createPlacementMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.PlacementService/CreatePlacement") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/placements", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("placement", request.getPlacement(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Placement.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updatePlacementMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.PlacementService/UpdatePlacement") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{placement.name=networks/*/placements/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "placement.name", request.getPlacement().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("placement", request.getPlacement(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Placement.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchCreatePlacementsRequest, BatchCreatePlacementsResponse> + batchCreatePlacementsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.ads.admanager.v1.PlacementService/BatchCreatePlacements") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/placements:batchCreate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchCreatePlacementsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchUpdatePlacementsRequest, BatchUpdatePlacementsResponse> + batchUpdatePlacementsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.ads.admanager.v1.PlacementService/BatchUpdatePlacements") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/placements:batchUpdate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchUpdatePlacementsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchActivatePlacementsRequest, BatchActivatePlacementsResponse> + batchActivatePlacementsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.ads.admanager.v1.PlacementService/BatchActivatePlacements") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/placements:batchActivate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchActivatePlacementsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchDeactivatePlacementsRequest, BatchDeactivatePlacementsResponse> + batchDeactivatePlacementsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.PlacementService/BatchDeactivatePlacements") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/placements:batchDeactivate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchDeactivatePlacementsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchArchivePlacementsRequest, BatchArchivePlacementsResponse> + batchArchivePlacementsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.ads.admanager.v1.PlacementService/BatchArchivePlacements") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/placements:batchArchive", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchArchivePlacementsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getPlacementCallable; private final UnaryCallable listPlacementsCallable; private final UnaryCallable listPlacementsPagedCallable; + private final UnaryCallable createPlacementCallable; + private final UnaryCallable updatePlacementCallable; + private final UnaryCallable + batchCreatePlacementsCallable; + private final UnaryCallable + batchUpdatePlacementsCallable; + private final UnaryCallable + batchActivatePlacementsCallable; + private final UnaryCallable + batchDeactivatePlacementsCallable; + private final UnaryCallable + batchArchivePlacementsCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -196,6 +492,93 @@ protected HttpJsonPlacementServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings createPlacementTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createPlacementMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updatePlacementTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePlacementMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("placement.name", String.valueOf(request.getPlacement().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchCreatePlacementsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchCreatePlacementsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchUpdatePlacementsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchUpdatePlacementsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchActivatePlacementsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchActivatePlacementsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchDeactivatePlacementsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchDeactivatePlacementsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchArchivePlacementsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchArchivePlacementsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.getPlacementCallable = callableFactory.createUnaryCallable( @@ -206,6 +589,37 @@ protected HttpJsonPlacementServiceStub( this.listPlacementsPagedCallable = callableFactory.createPagedCallable( listPlacementsTransportSettings, settings.listPlacementsSettings(), clientContext); + this.createPlacementCallable = + callableFactory.createUnaryCallable( + createPlacementTransportSettings, settings.createPlacementSettings(), clientContext); + this.updatePlacementCallable = + callableFactory.createUnaryCallable( + updatePlacementTransportSettings, settings.updatePlacementSettings(), clientContext); + this.batchCreatePlacementsCallable = + callableFactory.createUnaryCallable( + batchCreatePlacementsTransportSettings, + settings.batchCreatePlacementsSettings(), + clientContext); + this.batchUpdatePlacementsCallable = + callableFactory.createUnaryCallable( + batchUpdatePlacementsTransportSettings, + settings.batchUpdatePlacementsSettings(), + clientContext); + this.batchActivatePlacementsCallable = + callableFactory.createUnaryCallable( + batchActivatePlacementsTransportSettings, + settings.batchActivatePlacementsSettings(), + clientContext); + this.batchDeactivatePlacementsCallable = + callableFactory.createUnaryCallable( + batchDeactivatePlacementsTransportSettings, + settings.batchDeactivatePlacementsSettings(), + clientContext); + this.batchArchivePlacementsCallable = + callableFactory.createUnaryCallable( + batchArchivePlacementsTransportSettings, + settings.batchArchivePlacementsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -216,6 +630,13 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(getPlacementMethodDescriptor); methodDescriptors.add(listPlacementsMethodDescriptor); + methodDescriptors.add(createPlacementMethodDescriptor); + methodDescriptors.add(updatePlacementMethodDescriptor); + methodDescriptors.add(batchCreatePlacementsMethodDescriptor); + methodDescriptors.add(batchUpdatePlacementsMethodDescriptor); + methodDescriptors.add(batchActivatePlacementsMethodDescriptor); + methodDescriptors.add(batchDeactivatePlacementsMethodDescriptor); + methodDescriptors.add(batchArchivePlacementsMethodDescriptor); return methodDescriptors; } @@ -235,6 +656,46 @@ public UnaryCallable listPlacemen return listPlacementsPagedCallable; } + @Override + public UnaryCallable createPlacementCallable() { + return createPlacementCallable; + } + + @Override + public UnaryCallable updatePlacementCallable() { + return updatePlacementCallable; + } + + @Override + public UnaryCallable + batchCreatePlacementsCallable() { + return batchCreatePlacementsCallable; + } + + @Override + public UnaryCallable + batchUpdatePlacementsCallable() { + return batchUpdatePlacementsCallable; + } + + @Override + public UnaryCallable + batchActivatePlacementsCallable() { + return batchActivatePlacementsCallable; + } + + @Override + public UnaryCallable + batchDeactivatePlacementsCallable() { + return batchDeactivatePlacementsCallable; + } + + @Override + public UnaryCallable + batchArchivePlacementsCallable() { + return batchArchivePlacementsCallable; + } + @Override public final void close() { try { diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonSiteServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonSiteServiceCallableFactory.java new file mode 100644 index 000000000000..7635d6d9fb22 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonSiteServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SiteService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonSiteServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonSiteServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonSiteServiceStub.java new file mode 100644 index 000000000000..6da1cd8d133f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonSiteServiceStub.java @@ -0,0 +1,647 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.SiteServiceClient.ListSitesPagedResponse; + +import com.google.ads.admanager.v1.BatchCreateSitesRequest; +import com.google.ads.admanager.v1.BatchCreateSitesResponse; +import com.google.ads.admanager.v1.BatchDeactivateSitesRequest; +import com.google.ads.admanager.v1.BatchDeactivateSitesResponse; +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest; +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse; +import com.google.ads.admanager.v1.BatchUpdateSitesRequest; +import com.google.ads.admanager.v1.BatchUpdateSitesResponse; +import com.google.ads.admanager.v1.CreateSiteRequest; +import com.google.ads.admanager.v1.GetSiteRequest; +import com.google.ads.admanager.v1.ListSitesRequest; +import com.google.ads.admanager.v1.ListSitesResponse; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.UpdateSiteRequest; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SiteService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonSiteServiceStub extends SiteServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor getSiteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.SiteService/GetSite") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/sites/*}", + 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(Site.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSitesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.SiteService/ListSites") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/sites", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSitesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createSiteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.SiteService/CreateSite") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/sites", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("site", request.getSite(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Site.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchCreateSitesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.SiteService/BatchCreateSites") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/sites:batchCreate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchCreateSitesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateSiteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.SiteService/UpdateSite") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{site.name=networks/*/sites/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "site.name", request.getSite().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("site", request.getSite(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Site.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchUpdateSitesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.SiteService/BatchUpdateSites") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/sites:batchUpdate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchUpdateSitesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchDeactivateSitesRequest, BatchDeactivateSitesResponse> + batchDeactivateSitesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.ads.admanager.v1.SiteService/BatchDeactivateSites") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/sites:batchDeactivate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchDeactivateSitesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchSubmitSitesForApprovalRequest, BatchSubmitSitesForApprovalResponse> + batchSubmitSitesForApprovalMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.ads.admanager.v1.SiteService/BatchSubmitSitesForApproval") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/sites:batchSubmitForApproval", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchSubmitSitesForApprovalResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getSiteCallable; + private final UnaryCallable listSitesCallable; + private final UnaryCallable listSitesPagedCallable; + private final UnaryCallable createSiteCallable; + private final UnaryCallable + batchCreateSitesCallable; + private final UnaryCallable updateSiteCallable; + private final UnaryCallable + batchUpdateSitesCallable; + private final UnaryCallable + batchDeactivateSitesCallable; + private final UnaryCallable< + BatchSubmitSitesForApprovalRequest, BatchSubmitSitesForApprovalResponse> + batchSubmitSitesForApprovalCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSiteServiceStub create(SiteServiceStubSettings settings) + throws IOException { + return new HttpJsonSiteServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSiteServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSiteServiceStub(SiteServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonSiteServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSiteServiceStub( + SiteServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSiteServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonSiteServiceStub(SiteServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonSiteServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSiteServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonSiteServiceStub( + SiteServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getSiteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSiteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listSitesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSitesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createSiteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSiteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchCreateSitesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchCreateSitesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateSiteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSiteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("site.name", String.valueOf(request.getSite().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchUpdateSitesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchUpdateSitesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchDeactivateSitesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchDeactivateSitesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchSubmitSitesForApprovalTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(batchSubmitSitesForApprovalMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getSiteCallable = + callableFactory.createUnaryCallable( + getSiteTransportSettings, settings.getSiteSettings(), clientContext); + this.listSitesCallable = + callableFactory.createUnaryCallable( + listSitesTransportSettings, settings.listSitesSettings(), clientContext); + this.listSitesPagedCallable = + callableFactory.createPagedCallable( + listSitesTransportSettings, settings.listSitesSettings(), clientContext); + this.createSiteCallable = + callableFactory.createUnaryCallable( + createSiteTransportSettings, settings.createSiteSettings(), clientContext); + this.batchCreateSitesCallable = + callableFactory.createUnaryCallable( + batchCreateSitesTransportSettings, settings.batchCreateSitesSettings(), clientContext); + this.updateSiteCallable = + callableFactory.createUnaryCallable( + updateSiteTransportSettings, settings.updateSiteSettings(), clientContext); + this.batchUpdateSitesCallable = + callableFactory.createUnaryCallable( + batchUpdateSitesTransportSettings, settings.batchUpdateSitesSettings(), clientContext); + this.batchDeactivateSitesCallable = + callableFactory.createUnaryCallable( + batchDeactivateSitesTransportSettings, + settings.batchDeactivateSitesSettings(), + clientContext); + this.batchSubmitSitesForApprovalCallable = + callableFactory.createUnaryCallable( + batchSubmitSitesForApprovalTransportSettings, + settings.batchSubmitSitesForApprovalSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getSiteMethodDescriptor); + methodDescriptors.add(listSitesMethodDescriptor); + methodDescriptors.add(createSiteMethodDescriptor); + methodDescriptors.add(batchCreateSitesMethodDescriptor); + methodDescriptors.add(updateSiteMethodDescriptor); + methodDescriptors.add(batchUpdateSitesMethodDescriptor); + methodDescriptors.add(batchDeactivateSitesMethodDescriptor); + methodDescriptors.add(batchSubmitSitesForApprovalMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getSiteCallable() { + return getSiteCallable; + } + + @Override + public UnaryCallable listSitesCallable() { + return listSitesCallable; + } + + @Override + public UnaryCallable listSitesPagedCallable() { + return listSitesPagedCallable; + } + + @Override + public UnaryCallable createSiteCallable() { + return createSiteCallable; + } + + @Override + public UnaryCallable + batchCreateSitesCallable() { + return batchCreateSitesCallable; + } + + @Override + public UnaryCallable updateSiteCallable() { + return updateSiteCallable; + } + + @Override + public UnaryCallable + batchUpdateSitesCallable() { + return batchUpdateSitesCallable; + } + + @Override + public UnaryCallable + batchDeactivateSitesCallable() { + return batchDeactivateSitesCallable; + } + + @Override + public UnaryCallable + batchSubmitSitesForApprovalCallable() { + return batchSubmitSitesForApprovalCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonTeamServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonTeamServiceCallableFactory.java new file mode 100644 index 000000000000..511f83fb757b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonTeamServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the TeamService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonTeamServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonTeamServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonTeamServiceStub.java new file mode 100644 index 000000000000..49ee887a54a9 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonTeamServiceStub.java @@ -0,0 +1,642 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.TeamServiceClient.ListTeamsPagedResponse; + +import com.google.ads.admanager.v1.BatchActivateTeamsRequest; +import com.google.ads.admanager.v1.BatchActivateTeamsResponse; +import com.google.ads.admanager.v1.BatchCreateTeamsRequest; +import com.google.ads.admanager.v1.BatchCreateTeamsResponse; +import com.google.ads.admanager.v1.BatchDeactivateTeamsRequest; +import com.google.ads.admanager.v1.BatchDeactivateTeamsResponse; +import com.google.ads.admanager.v1.BatchUpdateTeamsRequest; +import com.google.ads.admanager.v1.BatchUpdateTeamsResponse; +import com.google.ads.admanager.v1.CreateTeamRequest; +import com.google.ads.admanager.v1.GetTeamRequest; +import com.google.ads.admanager.v1.ListTeamsRequest; +import com.google.ads.admanager.v1.ListTeamsResponse; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.UpdateTeamRequest; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the TeamService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonTeamServiceStub extends TeamServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor getTeamMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.TeamService/GetTeam") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/teams/*}", + 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(Team.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTeamsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.TeamService/ListTeams") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/teams", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTeamsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createTeamMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.TeamService/CreateTeam") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/teams", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("team", request.getTeam(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Team.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchCreateTeamsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.TeamService/BatchCreateTeams") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/teams:batchCreate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchCreateTeamsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateTeamMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.TeamService/UpdateTeam") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{team.name=networks/*/teams/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "team.name", request.getTeam().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("team", request.getTeam(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Team.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchUpdateTeamsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.TeamService/BatchUpdateTeams") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/teams:batchUpdate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchUpdateTeamsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchActivateTeamsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.TeamService/BatchActivateTeams") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/teams:batchActivate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchActivateTeamsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchDeactivateTeamsRequest, BatchDeactivateTeamsResponse> + batchDeactivateTeamsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.ads.admanager.v1.TeamService/BatchDeactivateTeams") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/teams:batchDeactivate", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchDeactivateTeamsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getTeamCallable; + private final UnaryCallable listTeamsCallable; + private final UnaryCallable listTeamsPagedCallable; + private final UnaryCallable createTeamCallable; + private final UnaryCallable + batchCreateTeamsCallable; + private final UnaryCallable updateTeamCallable; + private final UnaryCallable + batchUpdateTeamsCallable; + private final UnaryCallable + batchActivateTeamsCallable; + private final UnaryCallable + batchDeactivateTeamsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTeamServiceStub create(TeamServiceStubSettings settings) + throws IOException { + return new HttpJsonTeamServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTeamServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonTeamServiceStub(TeamServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonTeamServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTeamServiceStub( + TeamServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonTeamServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonTeamServiceStub(TeamServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonTeamServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTeamServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonTeamServiceStub( + TeamServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getTeamTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTeamMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listTeamsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTeamsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createTeamTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTeamMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchCreateTeamsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchCreateTeamsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateTeamTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateTeamMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("team.name", String.valueOf(request.getTeam().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchUpdateTeamsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchUpdateTeamsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchActivateTeamsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchActivateTeamsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchDeactivateTeamsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchDeactivateTeamsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getTeamCallable = + callableFactory.createUnaryCallable( + getTeamTransportSettings, settings.getTeamSettings(), clientContext); + this.listTeamsCallable = + callableFactory.createUnaryCallable( + listTeamsTransportSettings, settings.listTeamsSettings(), clientContext); + this.listTeamsPagedCallable = + callableFactory.createPagedCallable( + listTeamsTransportSettings, settings.listTeamsSettings(), clientContext); + this.createTeamCallable = + callableFactory.createUnaryCallable( + createTeamTransportSettings, settings.createTeamSettings(), clientContext); + this.batchCreateTeamsCallable = + callableFactory.createUnaryCallable( + batchCreateTeamsTransportSettings, settings.batchCreateTeamsSettings(), clientContext); + this.updateTeamCallable = + callableFactory.createUnaryCallable( + updateTeamTransportSettings, settings.updateTeamSettings(), clientContext); + this.batchUpdateTeamsCallable = + callableFactory.createUnaryCallable( + batchUpdateTeamsTransportSettings, settings.batchUpdateTeamsSettings(), clientContext); + this.batchActivateTeamsCallable = + callableFactory.createUnaryCallable( + batchActivateTeamsTransportSettings, + settings.batchActivateTeamsSettings(), + clientContext); + this.batchDeactivateTeamsCallable = + callableFactory.createUnaryCallable( + batchDeactivateTeamsTransportSettings, + settings.batchDeactivateTeamsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getTeamMethodDescriptor); + methodDescriptors.add(listTeamsMethodDescriptor); + methodDescriptors.add(createTeamMethodDescriptor); + methodDescriptors.add(batchCreateTeamsMethodDescriptor); + methodDescriptors.add(updateTeamMethodDescriptor); + methodDescriptors.add(batchUpdateTeamsMethodDescriptor); + methodDescriptors.add(batchActivateTeamsMethodDescriptor); + methodDescriptors.add(batchDeactivateTeamsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getTeamCallable() { + return getTeamCallable; + } + + @Override + public UnaryCallable listTeamsCallable() { + return listTeamsCallable; + } + + @Override + public UnaryCallable listTeamsPagedCallable() { + return listTeamsPagedCallable; + } + + @Override + public UnaryCallable createTeamCallable() { + return createTeamCallable; + } + + @Override + public UnaryCallable + batchCreateTeamsCallable() { + return batchCreateTeamsCallable; + } + + @Override + public UnaryCallable updateTeamCallable() { + return updateTeamCallable; + } + + @Override + public UnaryCallable + batchUpdateTeamsCallable() { + return batchUpdateTeamsCallable; + } + + @Override + public UnaryCallable + batchActivateTeamsCallable() { + return batchActivateTeamsCallable; + } + + @Override + public UnaryCallable + batchDeactivateTeamsCallable() { + return batchDeactivateTeamsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStub.java new file mode 100644 index 000000000000..5a8ec27bc567 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.MobileCarrierServiceClient.ListMobileCarriersPagedResponse; + +import com.google.ads.admanager.v1.GetMobileCarrierRequest; +import com.google.ads.admanager.v1.ListMobileCarriersRequest; +import com.google.ads.admanager.v1.ListMobileCarriersResponse; +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the MobileCarrierService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class MobileCarrierServiceStub implements BackgroundResource { + + public UnaryCallable getMobileCarrierCallable() { + throw new UnsupportedOperationException("Not implemented: getMobileCarrierCallable()"); + } + + public UnaryCallable + listMobileCarriersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listMobileCarriersPagedCallable()"); + } + + public UnaryCallable + listMobileCarriersCallable() { + throw new UnsupportedOperationException("Not implemented: listMobileCarriersCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java new file mode 100644 index 000000000000..1e3113cc0843 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java @@ -0,0 +1,390 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.MobileCarrierServiceClient.ListMobileCarriersPagedResponse; + +import com.google.ads.admanager.v1.GetMobileCarrierRequest; +import com.google.ads.admanager.v1.ListMobileCarriersRequest; +import com.google.ads.admanager.v1.ListMobileCarriersResponse; +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MobileCarrierServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getMobileCarrier: + * + *

    {@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
    + * MobileCarrierServiceStubSettings.Builder mobileCarrierServiceSettingsBuilder =
    + *     MobileCarrierServiceStubSettings.newBuilder();
    + * mobileCarrierServiceSettingsBuilder
    + *     .getMobileCarrierSettings()
    + *     .setRetrySettings(
    + *         mobileCarrierServiceSettingsBuilder
    + *             .getMobileCarrierSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * MobileCarrierServiceStubSettings mobileCarrierServiceSettings =
    + *     mobileCarrierServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class MobileCarrierServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getMobileCarrierSettings; + private final PagedCallSettings< + ListMobileCarriersRequest, ListMobileCarriersResponse, ListMobileCarriersPagedResponse> + listMobileCarriersSettings; + + private static final PagedListDescriptor< + ListMobileCarriersRequest, ListMobileCarriersResponse, MobileCarrier> + LIST_MOBILE_CARRIERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMobileCarriersRequest, ListMobileCarriersResponse, MobileCarrier>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMobileCarriersRequest injectToken( + ListMobileCarriersRequest payload, String token) { + return ListMobileCarriersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMobileCarriersRequest injectPageSize( + ListMobileCarriersRequest payload, int pageSize) { + return ListMobileCarriersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMobileCarriersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMobileCarriersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListMobileCarriersResponse payload) { + return payload.getMobileCarriersList(); + } + }; + + private static final PagedListResponseFactory< + ListMobileCarriersRequest, ListMobileCarriersResponse, ListMobileCarriersPagedResponse> + LIST_MOBILE_CARRIERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMobileCarriersRequest, + ListMobileCarriersResponse, + ListMobileCarriersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMobileCarriersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_MOBILE_CARRIERS_PAGE_STR_DESC, request, context); + return ListMobileCarriersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getMobileCarrier. */ + public UnaryCallSettings getMobileCarrierSettings() { + return getMobileCarrierSettings; + } + + /** Returns the object with the settings used for calls to listMobileCarriers. */ + public PagedCallSettings< + ListMobileCarriersRequest, ListMobileCarriersResponse, ListMobileCarriersPagedResponse> + listMobileCarriersSettings() { + return listMobileCarriersSettings; + } + + public MobileCarrierServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonMobileCarrierServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MobileCarrierServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileCarrierServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getMobileCarrierSettings = settingsBuilder.getMobileCarrierSettings().build(); + listMobileCarriersSettings = settingsBuilder.listMobileCarriersSettings().build(); + } + + /** Builder for MobileCarrierServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getMobileCarrierSettings; + private final PagedCallSettings.Builder< + ListMobileCarriersRequest, ListMobileCarriersResponse, ListMobileCarriersPagedResponse> + listMobileCarriersSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getMobileCarrierSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMobileCarriersSettings = PagedCallSettings.newBuilder(LIST_MOBILE_CARRIERS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getMobileCarrierSettings, listMobileCarriersSettings); + initDefaults(this); + } + + protected Builder(MobileCarrierServiceStubSettings settings) { + super(settings); + + getMobileCarrierSettings = settings.getMobileCarrierSettings.toBuilder(); + listMobileCarriersSettings = settings.listMobileCarriersSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getMobileCarrierSettings, listMobileCarriersSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getMobileCarrierSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listMobileCarriersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getMobileCarrier. */ + public UnaryCallSettings.Builder + getMobileCarrierSettings() { + return getMobileCarrierSettings; + } + + /** Returns the builder for the settings used for calls to listMobileCarriers. */ + public PagedCallSettings.Builder< + ListMobileCarriersRequest, ListMobileCarriersResponse, ListMobileCarriersPagedResponse> + listMobileCarriersSettings() { + return listMobileCarriersSettings; + } + + @Override + public MobileCarrierServiceStubSettings build() throws IOException { + return new MobileCarrierServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStub.java new file mode 100644 index 000000000000..fd6a9228df1f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.MobileDeviceServiceClient.ListMobileDevicesPagedResponse; + +import com.google.ads.admanager.v1.GetMobileDeviceRequest; +import com.google.ads.admanager.v1.ListMobileDevicesRequest; +import com.google.ads.admanager.v1.ListMobileDevicesResponse; +import com.google.ads.admanager.v1.MobileDevice; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the MobileDeviceService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class MobileDeviceServiceStub implements BackgroundResource { + + public UnaryCallable getMobileDeviceCallable() { + throw new UnsupportedOperationException("Not implemented: getMobileDeviceCallable()"); + } + + public UnaryCallable + listMobileDevicesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listMobileDevicesPagedCallable()"); + } + + public UnaryCallable + listMobileDevicesCallable() { + throw new UnsupportedOperationException("Not implemented: listMobileDevicesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java new file mode 100644 index 000000000000..48f833ccde32 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java @@ -0,0 +1,389 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.MobileDeviceServiceClient.ListMobileDevicesPagedResponse; + +import com.google.ads.admanager.v1.GetMobileDeviceRequest; +import com.google.ads.admanager.v1.ListMobileDevicesRequest; +import com.google.ads.admanager.v1.ListMobileDevicesResponse; +import com.google.ads.admanager.v1.MobileDevice; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MobileDeviceServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getMobileDevice: + * + *

    {@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
    + * MobileDeviceServiceStubSettings.Builder mobileDeviceServiceSettingsBuilder =
    + *     MobileDeviceServiceStubSettings.newBuilder();
    + * mobileDeviceServiceSettingsBuilder
    + *     .getMobileDeviceSettings()
    + *     .setRetrySettings(
    + *         mobileDeviceServiceSettingsBuilder
    + *             .getMobileDeviceSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * MobileDeviceServiceStubSettings mobileDeviceServiceSettings =
    + *     mobileDeviceServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class MobileDeviceServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getMobileDeviceSettings; + private final PagedCallSettings< + ListMobileDevicesRequest, ListMobileDevicesResponse, ListMobileDevicesPagedResponse> + listMobileDevicesSettings; + + private static final PagedListDescriptor< + ListMobileDevicesRequest, ListMobileDevicesResponse, MobileDevice> + LIST_MOBILE_DEVICES_PAGE_STR_DESC = + new PagedListDescriptor< + ListMobileDevicesRequest, ListMobileDevicesResponse, MobileDevice>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMobileDevicesRequest injectToken( + ListMobileDevicesRequest payload, String token) { + return ListMobileDevicesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMobileDevicesRequest injectPageSize( + ListMobileDevicesRequest payload, int pageSize) { + return ListMobileDevicesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMobileDevicesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMobileDevicesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListMobileDevicesResponse payload) { + return payload.getMobileDevicesList(); + } + }; + + private static final PagedListResponseFactory< + ListMobileDevicesRequest, ListMobileDevicesResponse, ListMobileDevicesPagedResponse> + LIST_MOBILE_DEVICES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMobileDevicesRequest, + ListMobileDevicesResponse, + ListMobileDevicesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMobileDevicesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_MOBILE_DEVICES_PAGE_STR_DESC, request, context); + return ListMobileDevicesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getMobileDevice. */ + public UnaryCallSettings getMobileDeviceSettings() { + return getMobileDeviceSettings; + } + + /** Returns the object with the settings used for calls to listMobileDevices. */ + public PagedCallSettings< + ListMobileDevicesRequest, ListMobileDevicesResponse, ListMobileDevicesPagedResponse> + listMobileDevicesSettings() { + return listMobileDevicesSettings; + } + + public MobileDeviceServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonMobileDeviceServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MobileDeviceServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileDeviceServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getMobileDeviceSettings = settingsBuilder.getMobileDeviceSettings().build(); + listMobileDevicesSettings = settingsBuilder.listMobileDevicesSettings().build(); + } + + /** Builder for MobileDeviceServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getMobileDeviceSettings; + private final PagedCallSettings.Builder< + ListMobileDevicesRequest, ListMobileDevicesResponse, ListMobileDevicesPagedResponse> + listMobileDevicesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getMobileDeviceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMobileDevicesSettings = PagedCallSettings.newBuilder(LIST_MOBILE_DEVICES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getMobileDeviceSettings, listMobileDevicesSettings); + initDefaults(this); + } + + protected Builder(MobileDeviceServiceStubSettings settings) { + super(settings); + + getMobileDeviceSettings = settings.getMobileDeviceSettings.toBuilder(); + listMobileDevicesSettings = settings.listMobileDevicesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getMobileDeviceSettings, listMobileDevicesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getMobileDeviceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listMobileDevicesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getMobileDevice. */ + public UnaryCallSettings.Builder + getMobileDeviceSettings() { + return getMobileDeviceSettings; + } + + /** Returns the builder for the settings used for calls to listMobileDevices. */ + public PagedCallSettings.Builder< + ListMobileDevicesRequest, ListMobileDevicesResponse, ListMobileDevicesPagedResponse> + listMobileDevicesSettings() { + return listMobileDevicesSettings; + } + + @Override + public MobileDeviceServiceStubSettings build() throws IOException { + return new MobileDeviceServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStub.java new file mode 100644 index 000000000000..3967c0f36fe2 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStub.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient.ListMobileDeviceSubmodelsPagedResponse; + +import com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest; +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest; +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse; +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the MobileDeviceSubmodelService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class MobileDeviceSubmodelServiceStub implements BackgroundResource { + + public UnaryCallable + getMobileDeviceSubmodelCallable() { + throw new UnsupportedOperationException("Not implemented: getMobileDeviceSubmodelCallable()"); + } + + public UnaryCallable + listMobileDeviceSubmodelsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMobileDeviceSubmodelsPagedCallable()"); + } + + public UnaryCallable + listMobileDeviceSubmodelsCallable() { + throw new UnsupportedOperationException("Not implemented: listMobileDeviceSubmodelsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java new file mode 100644 index 000000000000..8fd8e158016c --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java @@ -0,0 +1,415 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient.ListMobileDeviceSubmodelsPagedResponse; + +import com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest; +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest; +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse; +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MobileDeviceSubmodelServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getMobileDeviceSubmodel: + * + *

    {@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
    + * MobileDeviceSubmodelServiceStubSettings.Builder mobileDeviceSubmodelServiceSettingsBuilder =
    + *     MobileDeviceSubmodelServiceStubSettings.newBuilder();
    + * mobileDeviceSubmodelServiceSettingsBuilder
    + *     .getMobileDeviceSubmodelSettings()
    + *     .setRetrySettings(
    + *         mobileDeviceSubmodelServiceSettingsBuilder
    + *             .getMobileDeviceSubmodelSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * MobileDeviceSubmodelServiceStubSettings mobileDeviceSubmodelServiceSettings =
    + *     mobileDeviceSubmodelServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class MobileDeviceSubmodelServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getMobileDeviceSubmodelSettings; + private final PagedCallSettings< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + ListMobileDeviceSubmodelsPagedResponse> + listMobileDeviceSubmodelsSettings; + + private static final PagedListDescriptor< + ListMobileDeviceSubmodelsRequest, ListMobileDeviceSubmodelsResponse, MobileDeviceSubmodel> + LIST_MOBILE_DEVICE_SUBMODELS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + MobileDeviceSubmodel>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMobileDeviceSubmodelsRequest injectToken( + ListMobileDeviceSubmodelsRequest payload, String token) { + return ListMobileDeviceSubmodelsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMobileDeviceSubmodelsRequest injectPageSize( + ListMobileDeviceSubmodelsRequest payload, int pageSize) { + return ListMobileDeviceSubmodelsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMobileDeviceSubmodelsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMobileDeviceSubmodelsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMobileDeviceSubmodelsResponse payload) { + return payload.getMobileDeviceSubmodelsList(); + } + }; + + private static final PagedListResponseFactory< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + ListMobileDeviceSubmodelsPagedResponse> + LIST_MOBILE_DEVICE_SUBMODELS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + ListMobileDeviceSubmodelsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListMobileDeviceSubmodelsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + MobileDeviceSubmodel> + pageContext = + PageContext.create( + callable, LIST_MOBILE_DEVICE_SUBMODELS_PAGE_STR_DESC, request, context); + return ListMobileDeviceSubmodelsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getMobileDeviceSubmodel. */ + public UnaryCallSettings + getMobileDeviceSubmodelSettings() { + return getMobileDeviceSubmodelSettings; + } + + /** Returns the object with the settings used for calls to listMobileDeviceSubmodels. */ + public PagedCallSettings< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + ListMobileDeviceSubmodelsPagedResponse> + listMobileDeviceSubmodelsSettings() { + return listMobileDeviceSubmodelsSettings; + } + + public MobileDeviceSubmodelServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonMobileDeviceSubmodelServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MobileDeviceSubmodelServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileDeviceSubmodelServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getMobileDeviceSubmodelSettings = settingsBuilder.getMobileDeviceSubmodelSettings().build(); + listMobileDeviceSubmodelsSettings = settingsBuilder.listMobileDeviceSubmodelsSettings().build(); + } + + /** Builder for MobileDeviceSubmodelServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getMobileDeviceSubmodelSettings; + private final PagedCallSettings.Builder< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + ListMobileDeviceSubmodelsPagedResponse> + listMobileDeviceSubmodelsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getMobileDeviceSubmodelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMobileDeviceSubmodelsSettings = + PagedCallSettings.newBuilder(LIST_MOBILE_DEVICE_SUBMODELS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getMobileDeviceSubmodelSettings, listMobileDeviceSubmodelsSettings); + initDefaults(this); + } + + protected Builder(MobileDeviceSubmodelServiceStubSettings settings) { + super(settings); + + getMobileDeviceSubmodelSettings = settings.getMobileDeviceSubmodelSettings.toBuilder(); + listMobileDeviceSubmodelsSettings = settings.listMobileDeviceSubmodelsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getMobileDeviceSubmodelSettings, listMobileDeviceSubmodelsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getMobileDeviceSubmodelSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listMobileDeviceSubmodelsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getMobileDeviceSubmodel. */ + public UnaryCallSettings.Builder + getMobileDeviceSubmodelSettings() { + return getMobileDeviceSubmodelSettings; + } + + /** Returns the builder for the settings used for calls to listMobileDeviceSubmodels. */ + public PagedCallSettings.Builder< + ListMobileDeviceSubmodelsRequest, + ListMobileDeviceSubmodelsResponse, + ListMobileDeviceSubmodelsPagedResponse> + listMobileDeviceSubmodelsSettings() { + return listMobileDeviceSubmodelsSettings; + } + + @Override + public MobileDeviceSubmodelServiceStubSettings build() throws IOException { + return new MobileDeviceSubmodelServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStub.java index e6e602d4fcd0..b3f3398cc8b1 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStub.java @@ -18,10 +18,22 @@ import static com.google.ads.admanager.v1.PlacementServiceClient.ListPlacementsPagedResponse; +import com.google.ads.admanager.v1.BatchActivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchActivatePlacementsResponse; +import com.google.ads.admanager.v1.BatchArchivePlacementsRequest; +import com.google.ads.admanager.v1.BatchArchivePlacementsResponse; +import com.google.ads.admanager.v1.BatchCreatePlacementsRequest; +import com.google.ads.admanager.v1.BatchCreatePlacementsResponse; +import com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse; +import com.google.ads.admanager.v1.BatchUpdatePlacementsRequest; +import com.google.ads.admanager.v1.BatchUpdatePlacementsResponse; +import com.google.ads.admanager.v1.CreatePlacementRequest; import com.google.ads.admanager.v1.GetPlacementRequest; import com.google.ads.admanager.v1.ListPlacementsRequest; import com.google.ads.admanager.v1.ListPlacementsResponse; import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.UpdatePlacementRequest; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; @@ -48,6 +60,39 @@ public UnaryCallable listPlacemen throw new UnsupportedOperationException("Not implemented: listPlacementsCallable()"); } + public UnaryCallable createPlacementCallable() { + throw new UnsupportedOperationException("Not implemented: createPlacementCallable()"); + } + + public UnaryCallable updatePlacementCallable() { + throw new UnsupportedOperationException("Not implemented: updatePlacementCallable()"); + } + + public UnaryCallable + batchCreatePlacementsCallable() { + throw new UnsupportedOperationException("Not implemented: batchCreatePlacementsCallable()"); + } + + public UnaryCallable + batchUpdatePlacementsCallable() { + throw new UnsupportedOperationException("Not implemented: batchUpdatePlacementsCallable()"); + } + + public UnaryCallable + batchActivatePlacementsCallable() { + throw new UnsupportedOperationException("Not implemented: batchActivatePlacementsCallable()"); + } + + public UnaryCallable + batchDeactivatePlacementsCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeactivatePlacementsCallable()"); + } + + public UnaryCallable + batchArchivePlacementsCallable() { + throw new UnsupportedOperationException("Not implemented: batchArchivePlacementsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java index 6a7f6e9cbfc7..c716d5e0aec9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java @@ -18,10 +18,22 @@ import static com.google.ads.admanager.v1.PlacementServiceClient.ListPlacementsPagedResponse; +import com.google.ads.admanager.v1.BatchActivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchActivatePlacementsResponse; +import com.google.ads.admanager.v1.BatchArchivePlacementsRequest; +import com.google.ads.admanager.v1.BatchArchivePlacementsResponse; +import com.google.ads.admanager.v1.BatchCreatePlacementsRequest; +import com.google.ads.admanager.v1.BatchCreatePlacementsResponse; +import com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse; +import com.google.ads.admanager.v1.BatchUpdatePlacementsRequest; +import com.google.ads.admanager.v1.BatchUpdatePlacementsResponse; +import com.google.ads.admanager.v1.CreatePlacementRequest; import com.google.ads.admanager.v1.GetPlacementRequest; import com.google.ads.admanager.v1.ListPlacementsRequest; import com.google.ads.admanager.v1.ListPlacementsResponse; import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.UpdatePlacementRequest; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ObsoleteApi; @@ -112,6 +124,19 @@ public class PlacementServiceStubSettings extends StubSettings listPlacementsSettings; + private final UnaryCallSettings createPlacementSettings; + private final UnaryCallSettings updatePlacementSettings; + private final UnaryCallSettings + batchCreatePlacementsSettings; + private final UnaryCallSettings + batchUpdatePlacementsSettings; + private final UnaryCallSettings + batchActivatePlacementsSettings; + private final UnaryCallSettings< + BatchDeactivatePlacementsRequest, BatchDeactivatePlacementsResponse> + batchDeactivatePlacementsSettings; + private final UnaryCallSettings + batchArchivePlacementsSettings; private static final PagedListDescriptor LIST_PLACEMENTS_PAGE_STR_DESC = @@ -177,6 +202,46 @@ public UnaryCallSettings getPlacementSettings() return listPlacementsSettings; } + /** Returns the object with the settings used for calls to createPlacement. */ + public UnaryCallSettings createPlacementSettings() { + return createPlacementSettings; + } + + /** Returns the object with the settings used for calls to updatePlacement. */ + public UnaryCallSettings updatePlacementSettings() { + return updatePlacementSettings; + } + + /** Returns the object with the settings used for calls to batchCreatePlacements. */ + public UnaryCallSettings + batchCreatePlacementsSettings() { + return batchCreatePlacementsSettings; + } + + /** Returns the object with the settings used for calls to batchUpdatePlacements. */ + public UnaryCallSettings + batchUpdatePlacementsSettings() { + return batchUpdatePlacementsSettings; + } + + /** Returns the object with the settings used for calls to batchActivatePlacements. */ + public UnaryCallSettings + batchActivatePlacementsSettings() { + return batchActivatePlacementsSettings; + } + + /** Returns the object with the settings used for calls to batchDeactivatePlacements. */ + public UnaryCallSettings + batchDeactivatePlacementsSettings() { + return batchDeactivatePlacementsSettings; + } + + /** Returns the object with the settings used for calls to batchArchivePlacements. */ + public UnaryCallSettings + batchArchivePlacementsSettings() { + return batchArchivePlacementsSettings; + } + public PlacementServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -261,6 +326,13 @@ protected PlacementServiceStubSettings(Builder settingsBuilder) throws IOExcepti getPlacementSettings = settingsBuilder.getPlacementSettings().build(); listPlacementsSettings = settingsBuilder.listPlacementsSettings().build(); + createPlacementSettings = settingsBuilder.createPlacementSettings().build(); + updatePlacementSettings = settingsBuilder.updatePlacementSettings().build(); + batchCreatePlacementsSettings = settingsBuilder.batchCreatePlacementsSettings().build(); + batchUpdatePlacementsSettings = settingsBuilder.batchUpdatePlacementsSettings().build(); + batchActivatePlacementsSettings = settingsBuilder.batchActivatePlacementsSettings().build(); + batchDeactivatePlacementsSettings = settingsBuilder.batchDeactivatePlacementsSettings().build(); + batchArchivePlacementsSettings = settingsBuilder.batchArchivePlacementsSettings().build(); } /** Builder for PlacementServiceStubSettings. */ @@ -270,6 +342,25 @@ public static class Builder extends StubSettings.Builder listPlacementsSettings; + private final UnaryCallSettings.Builder + createPlacementSettings; + private final UnaryCallSettings.Builder + updatePlacementSettings; + private final UnaryCallSettings.Builder< + BatchCreatePlacementsRequest, BatchCreatePlacementsResponse> + batchCreatePlacementsSettings; + private final UnaryCallSettings.Builder< + BatchUpdatePlacementsRequest, BatchUpdatePlacementsResponse> + batchUpdatePlacementsSettings; + private final UnaryCallSettings.Builder< + BatchActivatePlacementsRequest, BatchActivatePlacementsResponse> + batchActivatePlacementsSettings; + private final UnaryCallSettings.Builder< + BatchDeactivatePlacementsRequest, BatchDeactivatePlacementsResponse> + batchDeactivatePlacementsSettings; + private final UnaryCallSettings.Builder< + BatchArchivePlacementsRequest, BatchArchivePlacementsResponse> + batchArchivePlacementsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -299,10 +390,25 @@ protected Builder(ClientContext clientContext) { getPlacementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listPlacementsSettings = PagedCallSettings.newBuilder(LIST_PLACEMENTS_PAGE_STR_FACT); + createPlacementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updatePlacementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCreatePlacementsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdatePlacementsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchActivatePlacementsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeactivatePlacementsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchArchivePlacementsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getPlacementSettings, listPlacementsSettings); + getPlacementSettings, + listPlacementsSettings, + createPlacementSettings, + updatePlacementSettings, + batchCreatePlacementsSettings, + batchUpdatePlacementsSettings, + batchActivatePlacementsSettings, + batchDeactivatePlacementsSettings, + batchArchivePlacementsSettings); initDefaults(this); } @@ -311,10 +417,25 @@ protected Builder(PlacementServiceStubSettings settings) { getPlacementSettings = settings.getPlacementSettings.toBuilder(); listPlacementsSettings = settings.listPlacementsSettings.toBuilder(); + createPlacementSettings = settings.createPlacementSettings.toBuilder(); + updatePlacementSettings = settings.updatePlacementSettings.toBuilder(); + batchCreatePlacementsSettings = settings.batchCreatePlacementsSettings.toBuilder(); + batchUpdatePlacementsSettings = settings.batchUpdatePlacementsSettings.toBuilder(); + batchActivatePlacementsSettings = settings.batchActivatePlacementsSettings.toBuilder(); + batchDeactivatePlacementsSettings = settings.batchDeactivatePlacementsSettings.toBuilder(); + batchArchivePlacementsSettings = settings.batchArchivePlacementsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getPlacementSettings, listPlacementsSettings); + getPlacementSettings, + listPlacementsSettings, + createPlacementSettings, + updatePlacementSettings, + batchCreatePlacementsSettings, + batchUpdatePlacementsSettings, + batchActivatePlacementsSettings, + batchDeactivatePlacementsSettings, + batchArchivePlacementsSettings); } private static Builder createDefault() { @@ -340,6 +461,41 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createPlacementSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updatePlacementSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchCreatePlacementsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchUpdatePlacementsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchActivatePlacementsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchDeactivatePlacementsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchArchivePlacementsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + return builder; } @@ -370,6 +526,48 @@ public UnaryCallSettings.Builder getPlacementSet return listPlacementsSettings; } + /** Returns the builder for the settings used for calls to createPlacement. */ + public UnaryCallSettings.Builder createPlacementSettings() { + return createPlacementSettings; + } + + /** Returns the builder for the settings used for calls to updatePlacement. */ + public UnaryCallSettings.Builder updatePlacementSettings() { + return updatePlacementSettings; + } + + /** Returns the builder for the settings used for calls to batchCreatePlacements. */ + public UnaryCallSettings.Builder + batchCreatePlacementsSettings() { + return batchCreatePlacementsSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdatePlacements. */ + public UnaryCallSettings.Builder + batchUpdatePlacementsSettings() { + return batchUpdatePlacementsSettings; + } + + /** Returns the builder for the settings used for calls to batchActivatePlacements. */ + public UnaryCallSettings.Builder< + BatchActivatePlacementsRequest, BatchActivatePlacementsResponse> + batchActivatePlacementsSettings() { + return batchActivatePlacementsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeactivatePlacements. */ + public UnaryCallSettings.Builder< + BatchDeactivatePlacementsRequest, BatchDeactivatePlacementsResponse> + batchDeactivatePlacementsSettings() { + return batchDeactivatePlacementsSettings; + } + + /** Returns the builder for the settings used for calls to batchArchivePlacements. */ + public UnaryCallSettings.Builder + batchArchivePlacementsSettings() { + return batchArchivePlacementsSettings; + } + @Override public PlacementServiceStubSettings build() throws IOException { return new PlacementServiceStubSettings(this); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java index b56ba0caa8fc..6a2dec88c9d8 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java @@ -26,6 +26,7 @@ import com.google.ads.admanager.v1.ListReportsRequest; import com.google.ads.admanager.v1.ListReportsResponse; import com.google.ads.admanager.v1.Report; +import com.google.ads.admanager.v1.ReportDataTable; import com.google.ads.admanager.v1.RunReportMetadata; import com.google.ads.admanager.v1.RunReportRequest; import com.google.ads.admanager.v1.RunReportResponse; @@ -197,10 +198,10 @@ public Iterable extractResources(ListReportsResponse payload) { }; private static final PagedListDescriptor< - FetchReportResultRowsRequest, FetchReportResultRowsResponse, Report.DataTable.Row> + FetchReportResultRowsRequest, FetchReportResultRowsResponse, ReportDataTable.Row> FETCH_REPORT_RESULT_ROWS_PAGE_STR_DESC = new PagedListDescriptor< - FetchReportResultRowsRequest, FetchReportResultRowsResponse, Report.DataTable.Row>() { + FetchReportResultRowsRequest, FetchReportResultRowsResponse, ReportDataTable.Row>() { @Override public String emptyToken() { return ""; @@ -229,7 +230,7 @@ public String extractNextToken(FetchReportResultRowsResponse payload) { } @Override - public Iterable extractResources( + public Iterable extractResources( FetchReportResultRowsResponse payload) { return payload.getRowsList(); } @@ -270,7 +271,7 @@ public ApiFuture getFuturePagedResponse( PageContext< FetchReportResultRowsRequest, FetchReportResultRowsResponse, - Report.DataTable.Row> + ReportDataTable.Row> pageContext = PageContext.create( callable, FETCH_REPORT_RESULT_ROWS_PAGE_STR_DESC, request, context); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStub.java new file mode 100644 index 000000000000..316cd6acbab3 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStub.java @@ -0,0 +1,91 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.SiteServiceClient.ListSitesPagedResponse; + +import com.google.ads.admanager.v1.BatchCreateSitesRequest; +import com.google.ads.admanager.v1.BatchCreateSitesResponse; +import com.google.ads.admanager.v1.BatchDeactivateSitesRequest; +import com.google.ads.admanager.v1.BatchDeactivateSitesResponse; +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest; +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse; +import com.google.ads.admanager.v1.BatchUpdateSitesRequest; +import com.google.ads.admanager.v1.BatchUpdateSitesResponse; +import com.google.ads.admanager.v1.CreateSiteRequest; +import com.google.ads.admanager.v1.GetSiteRequest; +import com.google.ads.admanager.v1.ListSitesRequest; +import com.google.ads.admanager.v1.ListSitesResponse; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.UpdateSiteRequest; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SiteService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class SiteServiceStub implements BackgroundResource { + + public UnaryCallable getSiteCallable() { + throw new UnsupportedOperationException("Not implemented: getSiteCallable()"); + } + + public UnaryCallable listSitesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSitesPagedCallable()"); + } + + public UnaryCallable listSitesCallable() { + throw new UnsupportedOperationException("Not implemented: listSitesCallable()"); + } + + public UnaryCallable createSiteCallable() { + throw new UnsupportedOperationException("Not implemented: createSiteCallable()"); + } + + public UnaryCallable + batchCreateSitesCallable() { + throw new UnsupportedOperationException("Not implemented: batchCreateSitesCallable()"); + } + + public UnaryCallable updateSiteCallable() { + throw new UnsupportedOperationException("Not implemented: updateSiteCallable()"); + } + + public UnaryCallable + batchUpdateSitesCallable() { + throw new UnsupportedOperationException("Not implemented: batchUpdateSitesCallable()"); + } + + public UnaryCallable + batchDeactivateSitesCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeactivateSitesCallable()"); + } + + public UnaryCallable + batchSubmitSitesForApprovalCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchSubmitSitesForApprovalCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java new file mode 100644 index 000000000000..68f3e475da49 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java @@ -0,0 +1,540 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.SiteServiceClient.ListSitesPagedResponse; + +import com.google.ads.admanager.v1.BatchCreateSitesRequest; +import com.google.ads.admanager.v1.BatchCreateSitesResponse; +import com.google.ads.admanager.v1.BatchDeactivateSitesRequest; +import com.google.ads.admanager.v1.BatchDeactivateSitesResponse; +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest; +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse; +import com.google.ads.admanager.v1.BatchUpdateSitesRequest; +import com.google.ads.admanager.v1.BatchUpdateSitesResponse; +import com.google.ads.admanager.v1.CreateSiteRequest; +import com.google.ads.admanager.v1.GetSiteRequest; +import com.google.ads.admanager.v1.ListSitesRequest; +import com.google.ads.admanager.v1.ListSitesResponse; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.UpdateSiteRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SiteServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getSite: + * + *

    {@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
    + * SiteServiceStubSettings.Builder siteServiceSettingsBuilder =
    + *     SiteServiceStubSettings.newBuilder();
    + * siteServiceSettingsBuilder
    + *     .getSiteSettings()
    + *     .setRetrySettings(
    + *         siteServiceSettingsBuilder
    + *             .getSiteSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * SiteServiceStubSettings siteServiceSettings = siteServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class SiteServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getSiteSettings; + private final PagedCallSettings + listSitesSettings; + private final UnaryCallSettings createSiteSettings; + private final UnaryCallSettings + batchCreateSitesSettings; + private final UnaryCallSettings updateSiteSettings; + private final UnaryCallSettings + batchUpdateSitesSettings; + private final UnaryCallSettings + batchDeactivateSitesSettings; + private final UnaryCallSettings< + BatchSubmitSitesForApprovalRequest, BatchSubmitSitesForApprovalResponse> + batchSubmitSitesForApprovalSettings; + + private static final PagedListDescriptor + LIST_SITES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSitesRequest injectToken(ListSitesRequest payload, String token) { + return ListSitesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSitesRequest injectPageSize(ListSitesRequest payload, int pageSize) { + return ListSitesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSitesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSitesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSitesResponse payload) { + return payload.getSitesList(); + } + }; + + private static final PagedListResponseFactory< + ListSitesRequest, ListSitesResponse, ListSitesPagedResponse> + LIST_SITES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSitesRequest, ListSitesResponse, ListSitesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSitesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SITES_PAGE_STR_DESC, request, context); + return ListSitesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getSite. */ + public UnaryCallSettings getSiteSettings() { + return getSiteSettings; + } + + /** Returns the object with the settings used for calls to listSites. */ + public PagedCallSettings + listSitesSettings() { + return listSitesSettings; + } + + /** Returns the object with the settings used for calls to createSite. */ + public UnaryCallSettings createSiteSettings() { + return createSiteSettings; + } + + /** Returns the object with the settings used for calls to batchCreateSites. */ + public UnaryCallSettings + batchCreateSitesSettings() { + return batchCreateSitesSettings; + } + + /** Returns the object with the settings used for calls to updateSite. */ + public UnaryCallSettings updateSiteSettings() { + return updateSiteSettings; + } + + /** Returns the object with the settings used for calls to batchUpdateSites. */ + public UnaryCallSettings + batchUpdateSitesSettings() { + return batchUpdateSitesSettings; + } + + /** Returns the object with the settings used for calls to batchDeactivateSites. */ + public UnaryCallSettings + batchDeactivateSitesSettings() { + return batchDeactivateSitesSettings; + } + + /** Returns the object with the settings used for calls to batchSubmitSitesForApproval. */ + public UnaryCallSettings + batchSubmitSitesForApprovalSettings() { + return batchSubmitSitesForApprovalSettings; + } + + public SiteServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSiteServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SiteServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SiteServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSiteSettings = settingsBuilder.getSiteSettings().build(); + listSitesSettings = settingsBuilder.listSitesSettings().build(); + createSiteSettings = settingsBuilder.createSiteSettings().build(); + batchCreateSitesSettings = settingsBuilder.batchCreateSitesSettings().build(); + updateSiteSettings = settingsBuilder.updateSiteSettings().build(); + batchUpdateSitesSettings = settingsBuilder.batchUpdateSitesSettings().build(); + batchDeactivateSitesSettings = settingsBuilder.batchDeactivateSitesSettings().build(); + batchSubmitSitesForApprovalSettings = + settingsBuilder.batchSubmitSitesForApprovalSettings().build(); + } + + /** Builder for SiteServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getSiteSettings; + private final PagedCallSettings.Builder< + ListSitesRequest, ListSitesResponse, ListSitesPagedResponse> + listSitesSettings; + private final UnaryCallSettings.Builder createSiteSettings; + private final UnaryCallSettings.Builder + batchCreateSitesSettings; + private final UnaryCallSettings.Builder updateSiteSettings; + private final UnaryCallSettings.Builder + batchUpdateSitesSettings; + private final UnaryCallSettings.Builder< + BatchDeactivateSitesRequest, BatchDeactivateSitesResponse> + batchDeactivateSitesSettings; + private final UnaryCallSettings.Builder< + BatchSubmitSitesForApprovalRequest, BatchSubmitSitesForApprovalResponse> + batchSubmitSitesForApprovalSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSitesSettings = PagedCallSettings.newBuilder(LIST_SITES_PAGE_STR_FACT); + createSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCreateSitesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateSitesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeactivateSitesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchSubmitSitesForApprovalSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSiteSettings, + listSitesSettings, + createSiteSettings, + batchCreateSitesSettings, + updateSiteSettings, + batchUpdateSitesSettings, + batchDeactivateSitesSettings, + batchSubmitSitesForApprovalSettings); + initDefaults(this); + } + + protected Builder(SiteServiceStubSettings settings) { + super(settings); + + getSiteSettings = settings.getSiteSettings.toBuilder(); + listSitesSettings = settings.listSitesSettings.toBuilder(); + createSiteSettings = settings.createSiteSettings.toBuilder(); + batchCreateSitesSettings = settings.batchCreateSitesSettings.toBuilder(); + updateSiteSettings = settings.updateSiteSettings.toBuilder(); + batchUpdateSitesSettings = settings.batchUpdateSitesSettings.toBuilder(); + batchDeactivateSitesSettings = settings.batchDeactivateSitesSettings.toBuilder(); + batchSubmitSitesForApprovalSettings = + settings.batchSubmitSitesForApprovalSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSiteSettings, + listSitesSettings, + createSiteSettings, + batchCreateSitesSettings, + updateSiteSettings, + batchUpdateSitesSettings, + batchDeactivateSitesSettings, + batchSubmitSitesForApprovalSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getSiteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listSitesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createSiteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchCreateSitesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateSiteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchUpdateSitesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchDeactivateSitesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchSubmitSitesForApprovalSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getSite. */ + public UnaryCallSettings.Builder getSiteSettings() { + return getSiteSettings; + } + + /** Returns the builder for the settings used for calls to listSites. */ + public PagedCallSettings.Builder + listSitesSettings() { + return listSitesSettings; + } + + /** Returns the builder for the settings used for calls to createSite. */ + public UnaryCallSettings.Builder createSiteSettings() { + return createSiteSettings; + } + + /** Returns the builder for the settings used for calls to batchCreateSites. */ + public UnaryCallSettings.Builder + batchCreateSitesSettings() { + return batchCreateSitesSettings; + } + + /** Returns the builder for the settings used for calls to updateSite. */ + public UnaryCallSettings.Builder updateSiteSettings() { + return updateSiteSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateSites. */ + public UnaryCallSettings.Builder + batchUpdateSitesSettings() { + return batchUpdateSitesSettings; + } + + /** Returns the builder for the settings used for calls to batchDeactivateSites. */ + public UnaryCallSettings.Builder + batchDeactivateSitesSettings() { + return batchDeactivateSitesSettings; + } + + /** Returns the builder for the settings used for calls to batchSubmitSitesForApproval. */ + public UnaryCallSettings.Builder< + BatchSubmitSitesForApprovalRequest, BatchSubmitSitesForApprovalResponse> + batchSubmitSitesForApprovalSettings() { + return batchSubmitSitesForApprovalSettings; + } + + @Override + public SiteServiceStubSettings build() throws IOException { + return new SiteServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStub.java new file mode 100644 index 000000000000..c85abad140db --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStub.java @@ -0,0 +1,90 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.TeamServiceClient.ListTeamsPagedResponse; + +import com.google.ads.admanager.v1.BatchActivateTeamsRequest; +import com.google.ads.admanager.v1.BatchActivateTeamsResponse; +import com.google.ads.admanager.v1.BatchCreateTeamsRequest; +import com.google.ads.admanager.v1.BatchCreateTeamsResponse; +import com.google.ads.admanager.v1.BatchDeactivateTeamsRequest; +import com.google.ads.admanager.v1.BatchDeactivateTeamsResponse; +import com.google.ads.admanager.v1.BatchUpdateTeamsRequest; +import com.google.ads.admanager.v1.BatchUpdateTeamsResponse; +import com.google.ads.admanager.v1.CreateTeamRequest; +import com.google.ads.admanager.v1.GetTeamRequest; +import com.google.ads.admanager.v1.ListTeamsRequest; +import com.google.ads.admanager.v1.ListTeamsResponse; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.UpdateTeamRequest; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the TeamService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class TeamServiceStub implements BackgroundResource { + + public UnaryCallable getTeamCallable() { + throw new UnsupportedOperationException("Not implemented: getTeamCallable()"); + } + + public UnaryCallable listTeamsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTeamsPagedCallable()"); + } + + public UnaryCallable listTeamsCallable() { + throw new UnsupportedOperationException("Not implemented: listTeamsCallable()"); + } + + public UnaryCallable createTeamCallable() { + throw new UnsupportedOperationException("Not implemented: createTeamCallable()"); + } + + public UnaryCallable + batchCreateTeamsCallable() { + throw new UnsupportedOperationException("Not implemented: batchCreateTeamsCallable()"); + } + + public UnaryCallable updateTeamCallable() { + throw new UnsupportedOperationException("Not implemented: updateTeamCallable()"); + } + + public UnaryCallable + batchUpdateTeamsCallable() { + throw new UnsupportedOperationException("Not implemented: batchUpdateTeamsCallable()"); + } + + public UnaryCallable + batchActivateTeamsCallable() { + throw new UnsupportedOperationException("Not implemented: batchActivateTeamsCallable()"); + } + + public UnaryCallable + batchDeactivateTeamsCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeactivateTeamsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java new file mode 100644 index 000000000000..57ce22573e26 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java @@ -0,0 +1,535 @@ +/* + * Copyright 2025 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.TeamServiceClient.ListTeamsPagedResponse; + +import com.google.ads.admanager.v1.BatchActivateTeamsRequest; +import com.google.ads.admanager.v1.BatchActivateTeamsResponse; +import com.google.ads.admanager.v1.BatchCreateTeamsRequest; +import com.google.ads.admanager.v1.BatchCreateTeamsResponse; +import com.google.ads.admanager.v1.BatchDeactivateTeamsRequest; +import com.google.ads.admanager.v1.BatchDeactivateTeamsResponse; +import com.google.ads.admanager.v1.BatchUpdateTeamsRequest; +import com.google.ads.admanager.v1.BatchUpdateTeamsResponse; +import com.google.ads.admanager.v1.CreateTeamRequest; +import com.google.ads.admanager.v1.GetTeamRequest; +import com.google.ads.admanager.v1.ListTeamsRequest; +import com.google.ads.admanager.v1.ListTeamsResponse; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.UpdateTeamRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TeamServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (admanager.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getTeam: + * + *

    {@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
    + * TeamServiceStubSettings.Builder teamServiceSettingsBuilder =
    + *     TeamServiceStubSettings.newBuilder();
    + * teamServiceSettingsBuilder
    + *     .getTeamSettings()
    + *     .setRetrySettings(
    + *         teamServiceSettingsBuilder
    + *             .getTeamSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * TeamServiceStubSettings teamServiceSettings = teamServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class TeamServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getTeamSettings; + private final PagedCallSettings + listTeamsSettings; + private final UnaryCallSettings createTeamSettings; + private final UnaryCallSettings + batchCreateTeamsSettings; + private final UnaryCallSettings updateTeamSettings; + private final UnaryCallSettings + batchUpdateTeamsSettings; + private final UnaryCallSettings + batchActivateTeamsSettings; + private final UnaryCallSettings + batchDeactivateTeamsSettings; + + private static final PagedListDescriptor + LIST_TEAMS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTeamsRequest injectToken(ListTeamsRequest payload, String token) { + return ListTeamsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTeamsRequest injectPageSize(ListTeamsRequest payload, int pageSize) { + return ListTeamsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTeamsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTeamsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTeamsResponse payload) { + return payload.getTeamsList(); + } + }; + + private static final PagedListResponseFactory< + ListTeamsRequest, ListTeamsResponse, ListTeamsPagedResponse> + LIST_TEAMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTeamsRequest, ListTeamsResponse, ListTeamsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTeamsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TEAMS_PAGE_STR_DESC, request, context); + return ListTeamsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getTeam. */ + public UnaryCallSettings getTeamSettings() { + return getTeamSettings; + } + + /** Returns the object with the settings used for calls to listTeams. */ + public PagedCallSettings + listTeamsSettings() { + return listTeamsSettings; + } + + /** Returns the object with the settings used for calls to createTeam. */ + public UnaryCallSettings createTeamSettings() { + return createTeamSettings; + } + + /** Returns the object with the settings used for calls to batchCreateTeams. */ + public UnaryCallSettings + batchCreateTeamsSettings() { + return batchCreateTeamsSettings; + } + + /** Returns the object with the settings used for calls to updateTeam. */ + public UnaryCallSettings updateTeamSettings() { + return updateTeamSettings; + } + + /** Returns the object with the settings used for calls to batchUpdateTeams. */ + public UnaryCallSettings + batchUpdateTeamsSettings() { + return batchUpdateTeamsSettings; + } + + /** Returns the object with the settings used for calls to batchActivateTeams. */ + public UnaryCallSettings + batchActivateTeamsSettings() { + return batchActivateTeamsSettings; + } + + /** Returns the object with the settings used for calls to batchDeactivateTeams. */ + public UnaryCallSettings + batchDeactivateTeamsSettings() { + return batchDeactivateTeamsSettings; + } + + public TeamServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTeamServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TeamServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TeamServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getTeamSettings = settingsBuilder.getTeamSettings().build(); + listTeamsSettings = settingsBuilder.listTeamsSettings().build(); + createTeamSettings = settingsBuilder.createTeamSettings().build(); + batchCreateTeamsSettings = settingsBuilder.batchCreateTeamsSettings().build(); + updateTeamSettings = settingsBuilder.updateTeamSettings().build(); + batchUpdateTeamsSettings = settingsBuilder.batchUpdateTeamsSettings().build(); + batchActivateTeamsSettings = settingsBuilder.batchActivateTeamsSettings().build(); + batchDeactivateTeamsSettings = settingsBuilder.batchDeactivateTeamsSettings().build(); + } + + /** Builder for TeamServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getTeamSettings; + private final PagedCallSettings.Builder< + ListTeamsRequest, ListTeamsResponse, ListTeamsPagedResponse> + listTeamsSettings; + private final UnaryCallSettings.Builder createTeamSettings; + private final UnaryCallSettings.Builder + batchCreateTeamsSettings; + private final UnaryCallSettings.Builder updateTeamSettings; + private final UnaryCallSettings.Builder + batchUpdateTeamsSettings; + private final UnaryCallSettings.Builder + batchActivateTeamsSettings; + private final UnaryCallSettings.Builder< + BatchDeactivateTeamsRequest, BatchDeactivateTeamsResponse> + batchDeactivateTeamsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getTeamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listTeamsSettings = PagedCallSettings.newBuilder(LIST_TEAMS_PAGE_STR_FACT); + createTeamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCreateTeamsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTeamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateTeamsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchActivateTeamsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeactivateTeamsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getTeamSettings, + listTeamsSettings, + createTeamSettings, + batchCreateTeamsSettings, + updateTeamSettings, + batchUpdateTeamsSettings, + batchActivateTeamsSettings, + batchDeactivateTeamsSettings); + initDefaults(this); + } + + protected Builder(TeamServiceStubSettings settings) { + super(settings); + + getTeamSettings = settings.getTeamSettings.toBuilder(); + listTeamsSettings = settings.listTeamsSettings.toBuilder(); + createTeamSettings = settings.createTeamSettings.toBuilder(); + batchCreateTeamsSettings = settings.batchCreateTeamsSettings.toBuilder(); + updateTeamSettings = settings.updateTeamSettings.toBuilder(); + batchUpdateTeamsSettings = settings.batchUpdateTeamsSettings.toBuilder(); + batchActivateTeamsSettings = settings.batchActivateTeamsSettings.toBuilder(); + batchDeactivateTeamsSettings = settings.batchDeactivateTeamsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getTeamSettings, + listTeamsSettings, + createTeamSettings, + batchCreateTeamsSettings, + updateTeamSettings, + batchUpdateTeamsSettings, + batchActivateTeamsSettings, + batchDeactivateTeamsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getTeamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listTeamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createTeamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchCreateTeamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateTeamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchUpdateTeamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchActivateTeamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchDeactivateTeamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getTeam. */ + public UnaryCallSettings.Builder getTeamSettings() { + return getTeamSettings; + } + + /** Returns the builder for the settings used for calls to listTeams. */ + public PagedCallSettings.Builder + listTeamsSettings() { + return listTeamsSettings; + } + + /** Returns the builder for the settings used for calls to createTeam. */ + public UnaryCallSettings.Builder createTeamSettings() { + return createTeamSettings; + } + + /** Returns the builder for the settings used for calls to batchCreateTeams. */ + public UnaryCallSettings.Builder + batchCreateTeamsSettings() { + return batchCreateTeamsSettings; + } + + /** Returns the builder for the settings used for calls to updateTeam. */ + public UnaryCallSettings.Builder updateTeamSettings() { + return updateTeamSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateTeams. */ + public UnaryCallSettings.Builder + batchUpdateTeamsSettings() { + return batchUpdateTeamsSettings; + } + + /** Returns the builder for the settings used for calls to batchActivateTeams. */ + public UnaryCallSettings.Builder + batchActivateTeamsSettings() { + return batchActivateTeamsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeactivateTeams. */ + public UnaryCallSettings.Builder + batchDeactivateTeamsSettings() { + return batchDeactivateTeamsSettings; + } + + @Override + public TeamServiceStubSettings build() throws IOException { + return new TeamServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json b/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json index cb60791e2a54..6a6c91a2f0ce 100644 --- a/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json +++ b/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json @@ -63,7 +63,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnit", + "name": "com.google.ads.admanager.v1.AdReviewCenterAd", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -72,7 +72,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnit$Builder", + "name": "com.google.ads.admanager.v1.AdReviewCenterAd$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -81,7 +81,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnitParent", + "name": "com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -90,7 +90,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnitParent$Builder", + "name": "com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum$AdReviewCenterAdStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -99,7 +99,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnitSize", + "name": "com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -108,7 +108,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnitSize$Builder", + "name": "com.google.ads.admanager.v1.AdUnit", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -117,7 +117,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnitStatusEnum", + "name": "com.google.ads.admanager.v1.AdUnit$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -126,7 +126,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnitStatusEnum$AdUnitStatus", + "name": "com.google.ads.admanager.v1.AdUnitParent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -135,7 +135,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnitStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.AdUnitParent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -144,7 +144,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnitTargeting", + "name": "com.google.ads.admanager.v1.AdUnitSize", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -153,7 +153,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AdUnitTargeting$Builder", + "name": "com.google.ads.admanager.v1.AdUnitSize$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -162,7 +162,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AppliedLabel", + "name": "com.google.ads.admanager.v1.AdUnitStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -171,7 +171,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.AppliedLabel$Builder", + "name": "com.google.ads.admanager.v1.AdUnitStatusEnum$AdUnitStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -180,7 +180,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BandwidthGroup", + "name": "com.google.ads.admanager.v1.AdUnitStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -189,7 +189,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BandwidthGroup$Builder", + "name": "com.google.ads.admanager.v1.AdUnitTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -198,7 +198,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BandwidthTargeting", + "name": "com.google.ads.admanager.v1.AdUnitTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -207,7 +207,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BandwidthTargeting$Builder", + "name": "com.google.ads.admanager.v1.Application", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -216,7 +216,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequest", + "name": "com.google.ads.admanager.v1.Application$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -225,7 +225,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequest$Builder", + "name": "com.google.ads.admanager.v1.AppliedLabel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -234,7 +234,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse", + "name": "com.google.ads.admanager.v1.AppliedLabel$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -243,7 +243,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse$Builder", + "name": "com.google.ads.admanager.v1.AudienceSegment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -252,7 +252,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequest", + "name": "com.google.ads.admanager.v1.AudienceSegment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -261,7 +261,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequest$Builder", + "name": "com.google.ads.admanager.v1.AudienceSegmentTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -270,7 +270,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse", + "name": "com.google.ads.admanager.v1.AudienceSegmentTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -279,7 +279,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse$Builder", + "name": "com.google.ads.admanager.v1.BandwidthGroup", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -288,7 +288,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Company", + "name": "com.google.ads.admanager.v1.BandwidthGroup$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -297,7 +297,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Company$Builder", + "name": "com.google.ads.admanager.v1.BandwidthTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -306,7 +306,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CompanyCreditStatusEnum", + "name": "com.google.ads.admanager.v1.BandwidthTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -315,7 +315,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CompanyCreditStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -324,7 +324,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CompanyCreditStatusEnum$CompanyCreditStatus", + "name": "com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -333,7 +333,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CompanyTypeEnum", + "name": "com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -342,7 +342,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CompanyTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -351,7 +351,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CompanyTypeEnum$CompanyType", + "name": "com.google.ads.admanager.v1.BatchActivatePlacementsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -360,7 +360,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Contact", + "name": "com.google.ads.admanager.v1.BatchActivatePlacementsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -369,7 +369,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Contact$Builder", + "name": "com.google.ads.admanager.v1.BatchActivatePlacementsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -378,7 +378,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreateAdBreakRequest", + "name": "com.google.ads.admanager.v1.BatchActivatePlacementsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -387,7 +387,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreateAdBreakRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchActivateTeamsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -396,7 +396,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreateEntitySignalsMappingRequest", + "name": "com.google.ads.admanager.v1.BatchActivateTeamsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -405,7 +405,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreateEntitySignalsMappingRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchActivateTeamsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -414,7 +414,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest", + "name": "com.google.ads.admanager.v1.BatchActivateTeamsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -423,7 +423,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -432,7 +432,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreatePrivateAuctionRequest", + "name": "com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -441,7 +441,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreatePrivateAuctionRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -450,7 +450,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreateReportRequest", + "name": "com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -459,7 +459,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CreateReportRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -468,7 +468,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomField", + "name": "com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -477,7 +477,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomField$Builder", + "name": "com.google.ads.admanager.v1.BatchArchivePlacementsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -486,7 +486,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldDataTypeEnum", + "name": "com.google.ads.admanager.v1.BatchArchivePlacementsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -495,7 +495,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldDataTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchArchivePlacementsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -504,7 +504,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldDataTypeEnum$CustomFieldDataType", + "name": "com.google.ads.admanager.v1.BatchArchivePlacementsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -513,7 +513,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldEntityTypeEnum", + "name": "com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -522,7 +522,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldEntityTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -531,7 +531,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldEntityTypeEnum$CustomFieldEntityType", + "name": "com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -540,7 +540,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldOption", + "name": "com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -549,7 +549,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldOption$Builder", + "name": "com.google.ads.admanager.v1.BatchCreateContactsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -558,7 +558,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldStatusEnum", + "name": "com.google.ads.admanager.v1.BatchCreateContactsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -567,7 +567,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchCreateContactsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -576,7 +576,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldStatusEnum$CustomFieldStatus", + "name": "com.google.ads.admanager.v1.BatchCreateContactsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +585,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldValue", + "name": "com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +594,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldValue$Builder", + "name": "com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +603,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldValue$Value", + "name": "com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +612,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldValue$Value$Builder", + "name": "com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +621,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldVisibilityEnum", + "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +630,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldVisibilityEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +639,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomFieldVisibilityEnum$CustomFieldVisibility", + "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +648,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargeting", + "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +657,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargeting$Builder", + "name": "com.google.ads.admanager.v1.BatchCreatePlacementsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +666,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingClause", + "name": "com.google.ads.admanager.v1.BatchCreatePlacementsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +675,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingClause$Builder", + "name": "com.google.ads.admanager.v1.BatchCreatePlacementsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +684,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKey", + "name": "com.google.ads.admanager.v1.BatchCreatePlacementsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +693,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKey$Builder", + "name": "com.google.ads.admanager.v1.BatchCreateSitesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +702,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum", + "name": "com.google.ads.admanager.v1.BatchCreateSitesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +711,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchCreateSitesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +720,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum$CustomTargetingKeyReportableType", + "name": "com.google.ads.admanager.v1.BatchCreateSitesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +729,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum", + "name": "com.google.ads.admanager.v1.BatchCreateTeamsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +738,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchCreateTeamsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +747,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum$CustomTargetingKeyStatus", + "name": "com.google.ads.admanager.v1.BatchCreateTeamsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +756,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum", + "name": "com.google.ads.admanager.v1.BatchCreateTeamsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +765,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +774,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum$CustomTargetingKeyType", + "name": "com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +783,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingLiteral", + "name": "com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +792,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingLiteral$Builder", + "name": "com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +801,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValue", + "name": "com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +810,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValue$Builder", + "name": "com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +819,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum", + "name": "com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +828,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +837,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum$CustomTargetingValueMatchType", + "name": "com.google.ads.admanager.v1.BatchDeactivateSitesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +846,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum", + "name": "com.google.ads.admanager.v1.BatchDeactivateSitesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +855,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchDeactivateSitesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +864,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum$CustomTargetingValueStatus", + "name": "com.google.ads.admanager.v1.BatchDeactivateSitesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +873,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DataSegmentTargeting", + "name": "com.google.ads.admanager.v1.BatchDeactivateTeamsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +882,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DataSegmentTargeting$Builder", + "name": "com.google.ads.admanager.v1.BatchDeactivateTeamsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +891,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum", + "name": "com.google.ads.admanager.v1.BatchDeactivateTeamsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +900,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchDeactivateTeamsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +909,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum$DealBuyerPermissionType", + "name": "com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +918,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DeleteAdBreakRequest", + "name": "com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DeleteAdBreakRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DeviceCategory", + "name": "com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DeviceCategory$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateContactsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DeviceCategoryTargeting", + "name": "com.google.ads.admanager.v1.BatchUpdateContactsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.DeviceCategoryTargeting$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateContactsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EntitySignalsMapping", + "name": "com.google.ads.admanager.v1.BatchUpdateContactsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EntitySignalsMapping$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum", + "name": "com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum$EnvironmentType", + "name": "com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FetchReportResultRowsRequest", + "name": "com.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FetchReportResultRowsRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FetchReportResultRowsResponse", + "name": "com.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FetchReportResultRowsResponse$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FrequencyCap", + "name": "com.google.ads.admanager.v1.BatchUpdatePlacementsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FrequencyCap$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdatePlacementsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GeoTarget", + "name": "com.google.ads.admanager.v1.BatchUpdatePlacementsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GeoTarget$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdatePlacementsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GeoTargeting", + "name": "com.google.ads.admanager.v1.BatchUpdateSitesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GeoTargeting$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateSitesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetAdBreakRequest", + "name": "com.google.ads.admanager.v1.BatchUpdateSitesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetAdBreakRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateSitesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetAdUnitRequest", + "name": "com.google.ads.admanager.v1.BatchUpdateTeamsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetAdUnitRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateTeamsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetBandwidthGroupRequest", + "name": "com.google.ads.admanager.v1.BatchUpdateTeamsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetBandwidthGroupRequest$Builder", + "name": "com.google.ads.admanager.v1.BatchUpdateTeamsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCompanyRequest", + "name": "com.google.ads.admanager.v1.Browser", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCompanyRequest$Builder", + "name": "com.google.ads.admanager.v1.Browser$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomFieldRequest", + "name": "com.google.ads.admanager.v1.BrowserLanguage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomFieldRequest$Builder", + "name": "com.google.ads.admanager.v1.BrowserLanguage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomTargetingKeyRequest", + "name": "com.google.ads.admanager.v1.BrowserLanguageTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomTargetingKeyRequest$Builder", + "name": "com.google.ads.admanager.v1.BrowserLanguageTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomTargetingValueRequest", + "name": "com.google.ads.admanager.v1.BrowserTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomTargetingValueRequest$Builder", + "name": "com.google.ads.admanager.v1.BrowserTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetDeviceCategoryRequest", + "name": "com.google.ads.admanager.v1.CmsMetadataKey", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetDeviceCategoryRequest$Builder", + "name": "com.google.ads.admanager.v1.CmsMetadataKey$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetEntitySignalsMappingRequest", + "name": "com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetEntitySignalsMappingRequest$Builder", + "name": "com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetGeoTargetRequest", + "name": "com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum$CmsMetadataKeyStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetGeoTargetRequest$Builder", + "name": "com.google.ads.admanager.v1.CmsMetadataTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetNetworkRequest", + "name": "com.google.ads.admanager.v1.CmsMetadataTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetNetworkRequest$Builder", + "name": "com.google.ads.admanager.v1.CmsMetadataValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetOperatingSystemRequest", + "name": "com.google.ads.admanager.v1.CmsMetadataValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetOperatingSystemRequest$Builder", + "name": "com.google.ads.admanager.v1.CmsMetadataValueStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetOperatingSystemVersionRequest", + "name": "com.google.ads.admanager.v1.CmsMetadataValueStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetOperatingSystemVersionRequest$Builder", + "name": "com.google.ads.admanager.v1.CmsMetadataValueStatusEnum$CmsMetadataValueStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetOrderRequest", + "name": "com.google.ads.admanager.v1.Company", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetOrderRequest$Builder", + "name": "com.google.ads.admanager.v1.Company$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetPlacementRequest", + "name": "com.google.ads.admanager.v1.CompanyCreditStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetPlacementRequest$Builder", + "name": "com.google.ads.admanager.v1.CompanyCreditStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetPrivateAuctionDealRequest", + "name": "com.google.ads.admanager.v1.CompanyCreditStatusEnum$CompanyCreditStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetPrivateAuctionDealRequest$Builder", + "name": "com.google.ads.admanager.v1.CompanyTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetPrivateAuctionRequest", + "name": "com.google.ads.admanager.v1.CompanyTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetPrivateAuctionRequest$Builder", + "name": "com.google.ads.admanager.v1.CompanyTypeEnum$CompanyType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetProgrammaticBuyerRequest", + "name": "com.google.ads.admanager.v1.Contact", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetProgrammaticBuyerRequest$Builder", + "name": "com.google.ads.admanager.v1.Contact$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetReportRequest", + "name": "com.google.ads.admanager.v1.ContactStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetReportRequest$Builder", + "name": "com.google.ads.admanager.v1.ContactStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetRoleRequest", + "name": "com.google.ads.admanager.v1.ContactStatusEnum$ContactStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetRoleRequest$Builder", + "name": "com.google.ads.admanager.v1.Content", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetTaxonomyCategoryRequest", + "name": "com.google.ads.admanager.v1.Content$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetTaxonomyCategoryRequest$Builder", + "name": "com.google.ads.admanager.v1.ContentBundle", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetUserRequest", + "name": "com.google.ads.admanager.v1.ContentBundle$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetUserRequest$Builder", + "name": "com.google.ads.admanager.v1.ContentLabel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.InventoryTargeting", + "name": "com.google.ads.admanager.v1.ContentLabel$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.InventoryTargeting$Builder", + "name": "com.google.ads.admanager.v1.ContentTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Label", + "name": "com.google.ads.admanager.v1.ContentTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Label$Builder", + "name": "com.google.ads.admanager.v1.CreateAdBreakRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.LabelFrequencyCap", + "name": "com.google.ads.admanager.v1.CreateAdBreakRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.LabelFrequencyCap$Builder", + "name": "com.google.ads.admanager.v1.CreateContactRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdBreaksRequest", + "name": "com.google.ads.admanager.v1.CreateContactRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdBreaksRequest$Builder", + "name": "com.google.ads.admanager.v1.CreateCustomFieldRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdBreaksResponse", + "name": "com.google.ads.admanager.v1.CreateCustomFieldRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdBreaksResponse$Builder", + "name": "com.google.ads.admanager.v1.CreateEntitySignalsMappingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitSizesRequest", + "name": "com.google.ads.admanager.v1.CreateEntitySignalsMappingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitSizesRequest$Builder", + "name": "com.google.ads.admanager.v1.CreatePlacementRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitSizesResponse", + "name": "com.google.ads.admanager.v1.CreatePlacementRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitSizesResponse$Builder", + "name": "com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitsRequest", + "name": "com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitsRequest$Builder", + "name": "com.google.ads.admanager.v1.CreatePrivateAuctionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitsResponse", + "name": "com.google.ads.admanager.v1.CreatePrivateAuctionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitsResponse$Builder", + "name": "com.google.ads.admanager.v1.CreateReportRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListBandwidthGroupsRequest", + "name": "com.google.ads.admanager.v1.CreateReportRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListBandwidthGroupsRequest$Builder", + "name": "com.google.ads.admanager.v1.CreateSiteRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListBandwidthGroupsResponse", + "name": "com.google.ads.admanager.v1.CreateSiteRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListBandwidthGroupsResponse$Builder", + "name": "com.google.ads.admanager.v1.CreateTeamRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCompaniesRequest", + "name": "com.google.ads.admanager.v1.CreateTeamRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCompaniesRequest$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCompaniesResponse", + "name": "com.google.ads.admanager.v1.CreativeTemplate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCompaniesResponse$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomFieldsRequest", + "name": "com.google.ads.admanager.v1.CreativeTemplateStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomFieldsRequest$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateStatusEnum$CreativeTemplateStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomFieldsResponse", + "name": "com.google.ads.admanager.v1.CreativeTemplateTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomFieldsResponse$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysRequest", + "name": "com.google.ads.admanager.v1.CreativeTemplateTypeEnum$CreativeTemplateType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysRequest$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysResponse", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$AssetCreativeTemplateVariable", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysResponse$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$AssetCreativeTemplateVariable$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesRequest", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$AssetCreativeTemplateVariable$MimeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesRequest$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesResponse", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$ListStringCreativeTemplateVariable", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesResponse$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$ListStringCreativeTemplateVariable$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListDeviceCategoriesRequest", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$ListStringCreativeTemplateVariable$VariableChoice", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListDeviceCategoriesRequest$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$ListStringCreativeTemplateVariable$VariableChoice$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListDeviceCategoriesResponse", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$LongCreativeTemplateVariable", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListDeviceCategoriesResponse$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$LongCreativeTemplateVariable$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsRequest", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$StringCreativeTemplateVariable", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsRequest$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$StringCreativeTemplateVariable$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsResponse", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$UrlCreativeTemplateVariable", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsResponse$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariable$UrlCreativeTemplateVariable$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListGeoTargetsRequest", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListGeoTargetsRequest$Builder", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListGeoTargetsResponse", + "name": "com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum$CreativeTemplateVariableUrlType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +1944,2518 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListGeoTargetsResponse$Builder", + "name": "com.google.ads.admanager.v1.CustomField", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomField$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldDataTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldDataTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldDataTypeEnum$CustomFieldDataType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldEntityTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldEntityTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldEntityTypeEnum$CustomFieldEntityType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldStatusEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldStatusEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldStatusEnum$CustomFieldStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldValue$Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldValue$Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldVisibilityEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldVisibilityEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomFieldVisibilityEnum$CustomFieldVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingClause", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingClause$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKey", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKey$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum$CustomTargetingKeyReportableType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum$CustomTargetingKeyStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum$CustomTargetingKeyType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingLiteral", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingLiteral$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum$CustomTargetingValueMatchType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum$CustomTargetingValueStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DataSegmentTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DataSegmentTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum$DealBuyerPermissionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeleteAdBreakRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeleteAdBreakRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceCapability", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceCapability$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceCapabilityTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceCapabilityTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceCategory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceCategory$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceCategoryTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceCategoryTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceManufacturer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceManufacturer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceManufacturerTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DeviceManufacturerTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DisapprovalReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.DisapprovalReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.EntitySignalsMapping", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.EntitySignalsMapping$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum$EnvironmentType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ExchangeSyndicationProductEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ExchangeSyndicationProductEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ExchangeSyndicationProductEnum$ExchangeSyndicationProduct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.FetchReportResultRowsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.FetchReportResultRowsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.FetchReportResultRowsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.FetchReportResultRowsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.FrequencyCap", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.FrequencyCap$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GeoTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GeoTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GeoTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GeoTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetAdBreakRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetAdBreakRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetAdUnitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetAdUnitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetApplicationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetApplicationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetAudienceSegmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetAudienceSegmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetBandwidthGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetBandwidthGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetBrowserLanguageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetBrowserLanguageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetBrowserRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetBrowserRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCmsMetadataKeyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCmsMetadataKeyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCmsMetadataValueRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCmsMetadataValueRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCompanyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCompanyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetContactRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetContactRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetContentBundleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetContentBundleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetContentLabelRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetContentLabelRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCreativeTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCreativeTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCustomFieldRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCustomFieldRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCustomTargetingKeyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCustomTargetingKeyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCustomTargetingValueRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetCustomTargetingValueRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetDeviceCapabilityRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetDeviceCapabilityRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetDeviceCategoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetDeviceCategoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetDeviceManufacturerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetDeviceManufacturerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetEntitySignalsMappingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetEntitySignalsMappingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetGeoTargetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetGeoTargetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetMobileCarrierRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetMobileCarrierRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetMobileDeviceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetMobileDeviceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetNetworkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetNetworkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOperatingSystemRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOperatingSystemRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOperatingSystemVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOperatingSystemVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPlacementRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPlacementRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPrivateAuctionDealRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPrivateAuctionDealRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPrivateAuctionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPrivateAuctionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetProgrammaticBuyerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetProgrammaticBuyerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetRoleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetRoleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetSiteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetSiteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetTaxonomyCategoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetTaxonomyCategoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetTeamRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetTeamRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetUserRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetUserRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.InventoryTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.InventoryTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.Label$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LabelFrequencyCap", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LabelFrequencyCap$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdBreaksRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdBreaksRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdBreaksResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdBreaksResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitSizesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitSizesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitSizesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitSizesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListApplicationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListApplicationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListApplicationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListApplicationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAudienceSegmentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAudienceSegmentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAudienceSegmentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAudienceSegmentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBandwidthGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBandwidthGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBandwidthGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBandwidthGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBrowserLanguagesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBrowserLanguagesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBrowserLanguagesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBrowserLanguagesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBrowsersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBrowsersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBrowsersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBrowsersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCmsMetadataKeysRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCmsMetadataKeysRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCmsMetadataKeysResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCmsMetadataKeysResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCmsMetadataValuesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCmsMetadataValuesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCmsMetadataValuesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCmsMetadataValuesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCompaniesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCompaniesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCompaniesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCompaniesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContactsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContactsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContactsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContactsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentBundlesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentBundlesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentBundlesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentBundlesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentLabelsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentLabelsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentLabelsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentLabelsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListContentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCreativeTemplatesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCreativeTemplatesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCreativeTemplatesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCreativeTemplatesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomFieldsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomFieldsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomFieldsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomFieldsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCategoriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCategoriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCategoriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCategoriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceManufacturersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceManufacturersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceManufacturersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceManufacturersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListGeoTargetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListGeoTargetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListGeoTargetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListGeoTargetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileCarriersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileCarriersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileCarriersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileCarriersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileDevicesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileDevicesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileDevicesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListMobileDevicesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +4473,187 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListNetworksRequest$Builder", + "name": "com.google.ads.admanager.v1.ListNetworksRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListNetworksResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListNetworksResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOrdersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOrdersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOrdersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOrdersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPlacementsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPlacementsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPlacementsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPlacementsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +4662,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListNetworksResponse", + "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +4671,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListNetworksResponse$Builder", + "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +4680,259 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest", + "name": "com.google.ads.admanager.v1.ListPrivateAuctionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListReportsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListReportsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListReportsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListReportsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListRolesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListRolesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListRolesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListRolesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListSitesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListSitesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListSitesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListSitesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTeamsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTeamsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTeamsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTeamsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LiveStreamEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +4941,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest$Builder", + "name": "com.google.ads.admanager.v1.LiveStreamEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +4950,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse", + "name": "com.google.ads.admanager.v1.MobileApplicationTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +4959,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse$Builder", + "name": "com.google.ads.admanager.v1.MobileApplicationTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +4968,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOperatingSystemsRequest", + "name": "com.google.ads.admanager.v1.MobileCarrier", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +4977,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOperatingSystemsRequest$Builder", + "name": "com.google.ads.admanager.v1.MobileCarrier$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +4986,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOperatingSystemsResponse", + "name": "com.google.ads.admanager.v1.MobileCarrierTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +4995,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOperatingSystemsResponse$Builder", + "name": "com.google.ads.admanager.v1.MobileCarrierTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +5004,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOrdersRequest", + "name": "com.google.ads.admanager.v1.MobileDevice", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +5013,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOrdersRequest$Builder", + "name": "com.google.ads.admanager.v1.MobileDevice$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +5022,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOrdersResponse", + "name": "com.google.ads.admanager.v1.MobileDeviceSubmodel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +5031,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOrdersResponse$Builder", + "name": "com.google.ads.admanager.v1.MobileDeviceSubmodel$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +5040,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPlacementsRequest", + "name": "com.google.ads.admanager.v1.Network", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +5049,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPlacementsRequest$Builder", + "name": "com.google.ads.admanager.v1.Network$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +5058,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPlacementsResponse", + "name": "com.google.ads.admanager.v1.OperatingSystem", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +5067,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPlacementsResponse$Builder", + "name": "com.google.ads.admanager.v1.OperatingSystem$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +5076,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest", + "name": "com.google.ads.admanager.v1.OperatingSystemTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +5085,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest$Builder", + "name": "com.google.ads.admanager.v1.OperatingSystemTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +5094,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse", + "name": "com.google.ads.admanager.v1.OperatingSystemVersion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +5103,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse$Builder", + "name": "com.google.ads.admanager.v1.OperatingSystemVersion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +5112,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPrivateAuctionsRequest", + "name": "com.google.ads.admanager.v1.Order", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +5121,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPrivateAuctionsRequest$Builder", + "name": "com.google.ads.admanager.v1.Order$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +5130,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPrivateAuctionsResponse", + "name": "com.google.ads.admanager.v1.OrderStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +5139,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPrivateAuctionsResponse$Builder", + "name": "com.google.ads.admanager.v1.OrderStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +5148,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersRequest", + "name": "com.google.ads.admanager.v1.OrderStatusEnum$OrderStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +5157,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersRequest$Builder", + "name": "com.google.ads.admanager.v1.Placement", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +5166,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersResponse", + "name": "com.google.ads.admanager.v1.Placement$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +5175,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersResponse$Builder", + "name": "com.google.ads.admanager.v1.PlacementStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +5184,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListReportsRequest", + "name": "com.google.ads.admanager.v1.PlacementStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +5193,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListReportsRequest$Builder", + "name": "com.google.ads.admanager.v1.PlacementStatusEnum$PlacementStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +5202,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListReportsResponse", + "name": "com.google.ads.admanager.v1.PrivateAuction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +5211,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListReportsResponse$Builder", + "name": "com.google.ads.admanager.v1.PrivateAuction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +5220,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListRolesRequest", + "name": "com.google.ads.admanager.v1.PrivateAuctionDeal", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +5229,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListRolesRequest$Builder", + "name": "com.google.ads.admanager.v1.PrivateAuctionDeal$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +5238,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListRolesResponse", + "name": "com.google.ads.admanager.v1.PrivateAuctionDeal$BuyerData", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2304,7 +5247,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListRolesResponse$Builder", + "name": "com.google.ads.admanager.v1.PrivateAuctionDeal$BuyerData$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2313,7 +5256,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesRequest", + "name": "com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2322,7 +5265,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesRequest$Builder", + "name": "com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2331,7 +5274,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesResponse", + "name": "com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum$PrivateMarketplaceDealStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2340,7 +5283,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesResponse$Builder", + "name": "com.google.ads.admanager.v1.ProgrammaticBuyer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2349,7 +5292,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.LiveStreamEvent", + "name": "com.google.ads.admanager.v1.ProgrammaticBuyer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2358,7 +5301,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.LiveStreamEvent$Builder", + "name": "com.google.ads.admanager.v1.Report", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2367,7 +5310,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Network", + "name": "com.google.ads.admanager.v1.Report$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2376,7 +5319,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Network$Builder", + "name": "com.google.ads.admanager.v1.Report$Visibility", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2385,7 +5328,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OperatingSystem", + "name": "com.google.ads.admanager.v1.ReportDataTable", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2394,7 +5337,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OperatingSystem$Builder", + "name": "com.google.ads.admanager.v1.ReportDataTable$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2403,7 +5346,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OperatingSystemTargeting", + "name": "com.google.ads.admanager.v1.ReportDataTable$MetricValueGroup", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +5355,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OperatingSystemTargeting$Builder", + "name": "com.google.ads.admanager.v1.ReportDataTable$MetricValueGroup$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2421,7 +5364,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OperatingSystemVersion", + "name": "com.google.ads.admanager.v1.ReportDataTable$Row", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2430,7 +5373,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OperatingSystemVersion$Builder", + "name": "com.google.ads.admanager.v1.ReportDataTable$Row$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2439,7 +5382,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Order", + "name": "com.google.ads.admanager.v1.ReportDefinition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2448,7 +5391,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Order$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2457,7 +5400,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OrderStatusEnum", + "name": "com.google.ads.admanager.v1.ReportDefinition$DateRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2466,7 +5409,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OrderStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$DateRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2475,7 +5418,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OrderStatusEnum$OrderStatus", + "name": "com.google.ads.admanager.v1.ReportDefinition$DateRange$FixedDateRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2484,7 +5427,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Placement", + "name": "com.google.ads.admanager.v1.ReportDefinition$DateRange$FixedDateRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2493,7 +5436,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Placement$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$DateRange$RelativeDateRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2502,7 +5445,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PlacementStatusEnum", + "name": "com.google.ads.admanager.v1.ReportDefinition$Dimension", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2511,7 +5454,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PlacementStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$Field", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2520,7 +5463,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PlacementStatusEnum$PlacementStatus", + "name": "com.google.ads.admanager.v1.ReportDefinition$Field$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2529,7 +5472,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PrivateAuction", + "name": "com.google.ads.admanager.v1.ReportDefinition$Filter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2538,7 +5481,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PrivateAuction$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$Filter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2547,7 +5490,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PrivateAuctionDeal", + "name": "com.google.ads.admanager.v1.ReportDefinition$Filter$FieldFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2556,7 +5499,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PrivateAuctionDeal$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$Filter$FieldFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2565,7 +5508,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PrivateAuctionDeal$BuyerData", + "name": "com.google.ads.admanager.v1.ReportDefinition$Filter$FilterList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2574,7 +5517,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PrivateAuctionDeal$BuyerData$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$Filter$FilterList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2583,7 +5526,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum", + "name": "com.google.ads.admanager.v1.ReportDefinition$Filter$Operation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2592,7 +5535,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$Flag", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2601,7 +5544,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum$PrivateMarketplaceDealStatus", + "name": "com.google.ads.admanager.v1.ReportDefinition$Flag$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2610,7 +5553,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ProgrammaticBuyer", + "name": "com.google.ads.admanager.v1.ReportDefinition$Metric", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2619,7 +5562,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ProgrammaticBuyer$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$MetricValueType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2628,7 +5571,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report", + "name": "com.google.ads.admanager.v1.ReportDefinition$ReportType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2637,7 +5580,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$Slice", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2646,7 +5589,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable", + "name": "com.google.ads.admanager.v1.ReportDefinition$Slice$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2655,7 +5598,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$Sort", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2664,7 +5607,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$MetricValueGroup", + "name": "com.google.ads.admanager.v1.ReportDefinition$Sort$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2673,7 +5616,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$MetricValueGroup$Builder", + "name": "com.google.ads.admanager.v1.ReportDefinition$TimePeriodColumn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2682,7 +5625,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$Row", + "name": "com.google.ads.admanager.v1.ReportDefinition$TimeZoneSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2691,7 +5634,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$Row$Builder", + "name": "com.google.ads.admanager.v1.ReportValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2700,7 +5643,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange", + "name": "com.google.ads.admanager.v1.ReportValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2709,7 +5652,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange$Builder", + "name": "com.google.ads.admanager.v1.ReportValue$DoubleList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2718,7 +5661,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange$FixedDateRange", + "name": "com.google.ads.admanager.v1.ReportValue$DoubleList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2727,7 +5670,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange$FixedDateRange$Builder", + "name": "com.google.ads.admanager.v1.ReportValue$IntList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2736,7 +5679,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange$RelativeDateRange", + "name": "com.google.ads.admanager.v1.ReportValue$IntList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2745,7 +5688,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Dimension", + "name": "com.google.ads.admanager.v1.ReportValue$StringList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2754,7 +5697,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Field", + "name": "com.google.ads.admanager.v1.ReportValue$StringList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2763,7 +5706,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Field$Builder", + "name": "com.google.ads.admanager.v1.RequestPlatformEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2772,7 +5715,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter", + "name": "com.google.ads.admanager.v1.RequestPlatformEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2781,7 +5724,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$Builder", + "name": "com.google.ads.admanager.v1.RequestPlatformEnum$RequestPlatform", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2790,7 +5733,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$FieldFilter", + "name": "com.google.ads.admanager.v1.RequestPlatformTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2799,7 +5742,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$FieldFilter$Builder", + "name": "com.google.ads.admanager.v1.RequestPlatformTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2808,7 +5751,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$FilterList", + "name": "com.google.ads.admanager.v1.Role", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2817,7 +5760,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$FilterList$Builder", + "name": "com.google.ads.admanager.v1.Role$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2826,7 +5769,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$Operation", + "name": "com.google.ads.admanager.v1.RoleStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2835,7 +5778,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Flag", + "name": "com.google.ads.admanager.v1.RoleStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2844,7 +5787,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Flag$Builder", + "name": "com.google.ads.admanager.v1.RoleStatusEnum$RoleStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2853,7 +5796,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Metric", + "name": "com.google.ads.admanager.v1.RunReportMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2862,7 +5805,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$MetricValueType", + "name": "com.google.ads.admanager.v1.RunReportMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2871,7 +5814,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$ReportType", + "name": "com.google.ads.admanager.v1.RunReportRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2880,7 +5823,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Slice", + "name": "com.google.ads.admanager.v1.RunReportRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2889,7 +5832,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Slice$Builder", + "name": "com.google.ads.admanager.v1.RunReportResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2898,7 +5841,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Sort", + "name": "com.google.ads.admanager.v1.RunReportResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2907,7 +5850,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Sort$Builder", + "name": "com.google.ads.admanager.v1.ScheduleOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2916,7 +5859,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$TimePeriodColumn", + "name": "com.google.ads.admanager.v1.ScheduleOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2925,7 +5868,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$TimeZoneSource", + "name": "com.google.ads.admanager.v1.ScheduleOptions$DeliveryCondition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2934,7 +5877,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value", + "name": "com.google.ads.admanager.v1.ScheduleOptions$Schedule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2943,7 +5886,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$Builder", + "name": "com.google.ads.admanager.v1.ScheduleOptions$Schedule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2952,7 +5895,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$IntList", + "name": "com.google.ads.admanager.v1.ScheduleOptions$Schedule$Frequency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2961,7 +5904,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$IntList$Builder", + "name": "com.google.ads.admanager.v1.ScheduleOptions$Schedule$MonthlySchedule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2970,7 +5913,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$StringList", + "name": "com.google.ads.admanager.v1.ScheduleOptions$Schedule$MonthlySchedule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2979,7 +5922,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$StringList$Builder", + "name": "com.google.ads.admanager.v1.ScheduleOptions$Schedule$WeeklySchedule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2988,7 +5931,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Visibility", + "name": "com.google.ads.admanager.v1.ScheduleOptions$Schedule$WeeklySchedule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2997,7 +5940,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ReportDefinition", + "name": "com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3006,7 +5949,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ReportDefinition$Builder", + "name": "com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3015,7 +5958,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RequestPlatformEnum", + "name": "com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3024,7 +5967,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RequestPlatformEnum$Builder", + "name": "com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3033,7 +5976,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RequestPlatformEnum$RequestPlatform", + "name": "com.google.ads.admanager.v1.Site", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3042,7 +5985,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RequestPlatformTargeting", + "name": "com.google.ads.admanager.v1.Site$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3051,7 +5994,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RequestPlatformTargeting$Builder", + "name": "com.google.ads.admanager.v1.SiteApprovalStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3060,7 +6003,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Role", + "name": "com.google.ads.admanager.v1.SiteApprovalStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3069,7 +6012,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Role$Builder", + "name": "com.google.ads.admanager.v1.SiteApprovalStatusEnum$SiteApprovalStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3078,7 +6021,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RoleStatusEnum", + "name": "com.google.ads.admanager.v1.SiteDisapprovalReasonEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3087,7 +6030,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RoleStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.SiteDisapprovalReasonEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3096,7 +6039,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RoleStatusEnum$RoleStatus", + "name": "com.google.ads.admanager.v1.SiteDisapprovalReasonEnum$SiteDisapprovalReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3105,7 +6048,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportMetadata", + "name": "com.google.ads.admanager.v1.Size", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3114,7 +6057,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportMetadata$Builder", + "name": "com.google.ads.admanager.v1.Size$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3123,7 +6066,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportRequest", + "name": "com.google.ads.admanager.v1.SizeTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3132,7 +6075,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportRequest$Builder", + "name": "com.google.ads.admanager.v1.SizeTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3141,7 +6084,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportResponse", + "name": "com.google.ads.admanager.v1.SizeTypeEnum$SizeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3150,7 +6093,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportResponse$Builder", + "name": "com.google.ads.admanager.v1.SmartSizeModeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3159,7 +6102,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule", + "name": "com.google.ads.admanager.v1.SmartSizeModeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3168,7 +6111,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$Builder", + "name": "com.google.ads.admanager.v1.SmartSizeModeEnum$SmartSizeMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3177,7 +6120,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$Frequency", + "name": "com.google.ads.admanager.v1.TargetWindowEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3186,7 +6129,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$MonthlySchedule", + "name": "com.google.ads.admanager.v1.TargetWindowEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3195,7 +6138,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$MonthlySchedule$Builder", + "name": "com.google.ads.admanager.v1.TargetWindowEnum$TargetWindow", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3204,7 +6147,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$WeeklySchedule", + "name": "com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3213,7 +6156,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$WeeklySchedule$Builder", + "name": "com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3222,7 +6165,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ScheduleOptions", + "name": "com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum$TargetedVideoBumperType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3231,7 +6174,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ScheduleOptions$Builder", + "name": "com.google.ads.admanager.v1.Targeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3240,7 +6183,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ScheduleOptions$DeliveryCondition", + "name": "com.google.ads.admanager.v1.Targeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3249,7 +6192,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Size", + "name": "com.google.ads.admanager.v1.TaxonomyCategory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3258,7 +6201,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Size$Builder", + "name": "com.google.ads.admanager.v1.TaxonomyCategory$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3267,7 +6210,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SizeTypeEnum", + "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3276,7 +6219,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SizeTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3285,7 +6228,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SizeTypeEnum$SizeType", + "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum$TaxonomyType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3294,7 +6237,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SmartSizeModeEnum", + "name": "com.google.ads.admanager.v1.Team", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3303,7 +6246,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SmartSizeModeEnum$Builder", + "name": "com.google.ads.admanager.v1.Team$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3312,7 +6255,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SmartSizeModeEnum$SmartSizeMode", + "name": "com.google.ads.admanager.v1.TeamAccessTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3321,7 +6264,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TargetWindowEnum", + "name": "com.google.ads.admanager.v1.TeamAccessTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3330,7 +6273,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TargetWindowEnum$Builder", + "name": "com.google.ads.admanager.v1.TeamAccessTypeEnum$TeamAccessType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3339,7 +6282,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TargetWindowEnum$TargetWindow", + "name": "com.google.ads.admanager.v1.TeamStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3348,7 +6291,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum", + "name": "com.google.ads.admanager.v1.TeamStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3357,7 +6300,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.TeamStatusEnum$TeamStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3366,7 +6309,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum$TargetedVideoBumperType", + "name": "com.google.ads.admanager.v1.TechnologyTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3375,7 +6318,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Targeting", + "name": "com.google.ads.admanager.v1.TechnologyTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3384,7 +6327,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Targeting$Builder", + "name": "com.google.ads.admanager.v1.TimeUnitEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3393,7 +6336,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyCategory", + "name": "com.google.ads.admanager.v1.TimeUnitEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3402,7 +6345,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyCategory$Builder", + "name": "com.google.ads.admanager.v1.TimeUnitEnum$TimeUnit", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3411,7 +6354,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum", + "name": "com.google.ads.admanager.v1.UpdateAdBreakRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3420,7 +6363,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.UpdateAdBreakRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3429,7 +6372,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum$TaxonomyType", + "name": "com.google.ads.admanager.v1.UpdateContactRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3438,7 +6381,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Team", + "name": "com.google.ads.admanager.v1.UpdateContactRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3447,7 +6390,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Team$Builder", + "name": "com.google.ads.admanager.v1.UpdateCustomFieldRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3456,7 +6399,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TechnologyTargeting", + "name": "com.google.ads.admanager.v1.UpdateCustomFieldRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3465,7 +6408,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TechnologyTargeting$Builder", + "name": "com.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3474,7 +6417,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TimeUnitEnum", + "name": "com.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3483,7 +6426,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TimeUnitEnum$Builder", + "name": "com.google.ads.admanager.v1.UpdatePlacementRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3492,7 +6435,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TimeUnitEnum$TimeUnit", + "name": "com.google.ads.admanager.v1.UpdatePlacementRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3501,7 +6444,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateAdBreakRequest", + "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3510,7 +6453,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateAdBreakRequest$Builder", + "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3519,7 +6462,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest", + "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3528,7 +6471,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest$Builder", + "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3537,7 +6480,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest", + "name": "com.google.ads.admanager.v1.UpdateReportRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3546,7 +6489,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest$Builder", + "name": "com.google.ads.admanager.v1.UpdateReportRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3555,7 +6498,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionRequest", + "name": "com.google.ads.admanager.v1.UpdateSiteRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3564,7 +6507,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionRequest$Builder", + "name": "com.google.ads.admanager.v1.UpdateSiteRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3573,7 +6516,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateReportRequest", + "name": "com.google.ads.admanager.v1.UpdateTeamRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3582,7 +6525,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateReportRequest$Builder", + "name": "com.google.ads.admanager.v1.UpdateTeamRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3689,6 +6632,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.WebProperty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.WebProperty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -5111,6 +8072,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.type.Interval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Interval$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.type.Money", "queryAllDeclaredConstructors": true, diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClientTest.java new file mode 100644 index 000000000000..af9d73cab2df --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClientTest.java @@ -0,0 +1,372 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.AdReviewCenterAdServiceClient.SearchAdReviewCenterAdsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonAdReviewCenterAdServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AdReviewCenterAdServiceClientTest { + private static MockHttpService mockService; + private static AdReviewCenterAdServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAdReviewCenterAdServiceStub.getMethodDescriptors(), + AdReviewCenterAdServiceSettings.getDefaultEndpoint()); + AdReviewCenterAdServiceSettings settings = + AdReviewCenterAdServiceSettings.newBuilder() + .setTransportChannelProvider( + AdReviewCenterAdServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AdReviewCenterAdServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void searchAdReviewCenterAdsTest() throws Exception { + AdReviewCenterAd responsesElement = AdReviewCenterAd.newBuilder().build(); + SearchAdReviewCenterAdsResponse expectedResponse = + SearchAdReviewCenterAdsResponse.newBuilder() + .setNextPageToken("") + .addAllAdReviewCenterAds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]"); + + SearchAdReviewCenterAdsPagedResponse pagedListResponse = client.searchAdReviewCenterAds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAdReviewCenterAdsList().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 searchAdReviewCenterAdsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]"); + client.searchAdReviewCenterAds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAdReviewCenterAdsTest2() throws Exception { + AdReviewCenterAd responsesElement = AdReviewCenterAd.newBuilder().build(); + SearchAdReviewCenterAdsResponse expectedResponse = + SearchAdReviewCenterAdsResponse.newBuilder() + .setNextPageToken("") + .addAllAdReviewCenterAds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-8813/webProperties/webPropertie-8813"; + + SearchAdReviewCenterAdsPagedResponse pagedListResponse = client.searchAdReviewCenterAds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAdReviewCenterAdsList().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 searchAdReviewCenterAdsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-8813/webProperties/webPropertie-8813"; + client.searchAdReviewCenterAds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchAllowAdReviewCenterAdsTest() throws Exception { + BatchAllowAdReviewCenterAdsResponse expectedResponse = + BatchAllowAdReviewCenterAdsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchAllowAdReviewCenterAdsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]"); + + BatchAllowAdReviewCenterAdsResponse actualResponse = + client.batchAllowAdReviewCenterAdsAsync(parent).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 batchAllowAdReviewCenterAdsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]"); + client.batchAllowAdReviewCenterAdsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchAllowAdReviewCenterAdsTest2() throws Exception { + BatchAllowAdReviewCenterAdsResponse expectedResponse = + BatchAllowAdReviewCenterAdsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchAllowAdReviewCenterAdsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "networks/network-8813/webProperties/webPropertie-8813"; + + BatchAllowAdReviewCenterAdsResponse actualResponse = + client.batchAllowAdReviewCenterAdsAsync(parent).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 batchAllowAdReviewCenterAdsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-8813/webProperties/webPropertie-8813"; + client.batchAllowAdReviewCenterAdsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchBlockAdReviewCenterAdsTest() throws Exception { + BatchBlockAdReviewCenterAdsResponse expectedResponse = + BatchBlockAdReviewCenterAdsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchBlockAdReviewCenterAdsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]"); + + BatchBlockAdReviewCenterAdsResponse actualResponse = + client.batchBlockAdReviewCenterAdsAsync(parent).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 batchBlockAdReviewCenterAdsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]"); + client.batchBlockAdReviewCenterAdsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchBlockAdReviewCenterAdsTest2() throws Exception { + BatchBlockAdReviewCenterAdsResponse expectedResponse = + BatchBlockAdReviewCenterAdsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchBlockAdReviewCenterAdsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "networks/network-8813/webProperties/webPropertie-8813"; + + BatchBlockAdReviewCenterAdsResponse actualResponse = + client.batchBlockAdReviewCenterAdsAsync(parent).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 batchBlockAdReviewCenterAdsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-8813/webProperties/webPropertie-8813"; + client.batchBlockAdReviewCenterAdsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ApplicationServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ApplicationServiceClientTest.java new file mode 100644 index 000000000000..43bfa5841f0c --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ApplicationServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ApplicationServiceClient.ListApplicationsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonApplicationServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ApplicationServiceClientTest { + private static MockHttpService mockService; + private static ApplicationServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonApplicationServiceStub.getMethodDescriptors(), + ApplicationServiceSettings.getDefaultEndpoint()); + ApplicationServiceSettings settings = + ApplicationServiceSettings.newBuilder() + .setTransportChannelProvider( + ApplicationServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ApplicationServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getApplicationTest() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName(ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + ApplicationName name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]"); + + Application actualResponse = client.getApplication(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 getApplicationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]"); + client.getApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTest2() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName(ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-578/applications/application-578"; + + Application actualResponse = client.getApplication(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 getApplicationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-578/applications/application-578"; + client.getApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationsTest() throws Exception { + Application responsesElement = Application.newBuilder().build(); + ListApplicationsResponse expectedResponse = + ListApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllApplications(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListApplicationsPagedResponse pagedListResponse = client.listApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationsList().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 listApplicationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationsTest2() throws Exception { + Application responsesElement = Application.newBuilder().build(); + ListApplicationsResponse expectedResponse = + ListApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllApplications(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListApplicationsPagedResponse pagedListResponse = client.listApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationsList().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 listApplicationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AudienceSegmentServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AudienceSegmentServiceClientTest.java new file mode 100644 index 000000000000..dc7a9f0c43bd --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AudienceSegmentServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.AudienceSegmentServiceClient.ListAudienceSegmentsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonAudienceSegmentServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AudienceSegmentServiceClientTest { + private static MockHttpService mockService; + private static AudienceSegmentServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAudienceSegmentServiceStub.getMethodDescriptors(), + AudienceSegmentServiceSettings.getDefaultEndpoint()); + AudienceSegmentServiceSettings settings = + AudienceSegmentServiceSettings.newBuilder() + .setTransportChannelProvider( + AudienceSegmentServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AudienceSegmentServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getAudienceSegmentTest() throws Exception { + AudienceSegment expectedResponse = + AudienceSegment.newBuilder() + .setName(AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + AudienceSegmentName name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]"); + + AudienceSegment actualResponse = client.getAudienceSegment(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 getAudienceSegmentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AudienceSegmentName name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]"); + client.getAudienceSegment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAudienceSegmentTest2() throws Exception { + AudienceSegment expectedResponse = + AudienceSegment.newBuilder() + .setName(AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-4525/audienceSegments/audienceSegment-4525"; + + AudienceSegment actualResponse = client.getAudienceSegment(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 getAudienceSegmentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-4525/audienceSegments/audienceSegment-4525"; + client.getAudienceSegment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAudienceSegmentsTest() throws Exception { + AudienceSegment responsesElement = AudienceSegment.newBuilder().build(); + ListAudienceSegmentsResponse expectedResponse = + ListAudienceSegmentsResponse.newBuilder() + .setNextPageToken("") + .addAllAudienceSegments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListAudienceSegmentsPagedResponse pagedListResponse = client.listAudienceSegments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudienceSegmentsList().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 listAudienceSegmentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listAudienceSegments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAudienceSegmentsTest2() throws Exception { + AudienceSegment responsesElement = AudienceSegment.newBuilder().build(); + ListAudienceSegmentsResponse expectedResponse = + ListAudienceSegmentsResponse.newBuilder() + .setNextPageToken("") + .addAllAudienceSegments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListAudienceSegmentsPagedResponse pagedListResponse = client.listAudienceSegments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudienceSegmentsList().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 listAudienceSegmentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listAudienceSegments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/BrowserLanguageServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/BrowserLanguageServiceClientTest.java new file mode 100644 index 000000000000..af0638d065a6 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/BrowserLanguageServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.BrowserLanguageServiceClient.ListBrowserLanguagesPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonBrowserLanguageServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BrowserLanguageServiceClientTest { + private static MockHttpService mockService; + private static BrowserLanguageServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonBrowserLanguageServiceStub.getMethodDescriptors(), + BrowserLanguageServiceSettings.getDefaultEndpoint()); + BrowserLanguageServiceSettings settings = + BrowserLanguageServiceSettings.newBuilder() + .setTransportChannelProvider( + BrowserLanguageServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BrowserLanguageServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getBrowserLanguageTest() throws Exception { + BrowserLanguage expectedResponse = + BrowserLanguage.newBuilder() + .setName(BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + BrowserLanguageName name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]"); + + BrowserLanguage actualResponse = client.getBrowserLanguage(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 getBrowserLanguageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BrowserLanguageName name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]"); + client.getBrowserLanguage(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBrowserLanguageTest2() throws Exception { + BrowserLanguage expectedResponse = + BrowserLanguage.newBuilder() + .setName(BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-914/browserLanguages/browserLanguage-914"; + + BrowserLanguage actualResponse = client.getBrowserLanguage(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 getBrowserLanguageExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-914/browserLanguages/browserLanguage-914"; + client.getBrowserLanguage(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBrowserLanguagesTest() throws Exception { + BrowserLanguage responsesElement = BrowserLanguage.newBuilder().build(); + ListBrowserLanguagesResponse expectedResponse = + ListBrowserLanguagesResponse.newBuilder() + .setNextPageToken("") + .addAllBrowserLanguages(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListBrowserLanguagesPagedResponse pagedListResponse = client.listBrowserLanguages(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBrowserLanguagesList().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 listBrowserLanguagesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listBrowserLanguages(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBrowserLanguagesTest2() throws Exception { + BrowserLanguage responsesElement = BrowserLanguage.newBuilder().build(); + ListBrowserLanguagesResponse expectedResponse = + ListBrowserLanguagesResponse.newBuilder() + .setNextPageToken("") + .addAllBrowserLanguages(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListBrowserLanguagesPagedResponse pagedListResponse = client.listBrowserLanguages(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBrowserLanguagesList().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 listBrowserLanguagesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listBrowserLanguages(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/BrowserServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/BrowserServiceClientTest.java new file mode 100644 index 000000000000..eea0af281dde --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/BrowserServiceClientTest.java @@ -0,0 +1,271 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.BrowserServiceClient.ListBrowsersPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonBrowserServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BrowserServiceClientTest { + private static MockHttpService mockService; + private static BrowserServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonBrowserServiceStub.getMethodDescriptors(), + BrowserServiceSettings.getDefaultEndpoint()); + BrowserServiceSettings settings = + BrowserServiceSettings.newBuilder() + .setTransportChannelProvider( + BrowserServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BrowserServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getBrowserTest() throws Exception { + Browser expectedResponse = + Browser.newBuilder() + .setName(BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString()) + .setDisplayName("displayName1714148973") + .setMajorVersion("majorVersion-606876449") + .setMinorVersion("minorVersion1411327843") + .build(); + mockService.addResponse(expectedResponse); + + BrowserName name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]"); + + Browser actualResponse = client.getBrowser(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 getBrowserExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BrowserName name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]"); + client.getBrowser(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBrowserTest2() throws Exception { + Browser expectedResponse = + Browser.newBuilder() + .setName(BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString()) + .setDisplayName("displayName1714148973") + .setMajorVersion("majorVersion-606876449") + .setMinorVersion("minorVersion1411327843") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-9994/browsers/browser-9994"; + + Browser actualResponse = client.getBrowser(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 getBrowserExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-9994/browsers/browser-9994"; + client.getBrowser(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBrowsersTest() throws Exception { + Browser responsesElement = Browser.newBuilder().build(); + ListBrowsersResponse expectedResponse = + ListBrowsersResponse.newBuilder() + .setNextPageToken("") + .addAllBrowsers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListBrowsersPagedResponse pagedListResponse = client.listBrowsers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBrowsersList().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 listBrowsersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listBrowsers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBrowsersTest2() throws Exception { + Browser responsesElement = Browser.newBuilder().build(); + ListBrowsersResponse expectedResponse = + ListBrowsersResponse.newBuilder() + .setNextPageToken("") + .addAllBrowsers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListBrowsersPagedResponse pagedListResponse = client.listBrowsers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBrowsersList().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 listBrowsersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listBrowsers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClientTest.java new file mode 100644 index 000000000000..8207b9114341 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.CmsMetadataKeyServiceClient.ListCmsMetadataKeysPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonCmsMetadataKeyServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CmsMetadataKeyServiceClientTest { + private static MockHttpService mockService; + private static CmsMetadataKeyServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCmsMetadataKeyServiceStub.getMethodDescriptors(), + CmsMetadataKeyServiceSettings.getDefaultEndpoint()); + CmsMetadataKeyServiceSettings settings = + CmsMetadataKeyServiceSettings.newBuilder() + .setTransportChannelProvider( + CmsMetadataKeyServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CmsMetadataKeyServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getCmsMetadataKeyTest() throws Exception { + CmsMetadataKey expectedResponse = + CmsMetadataKey.newBuilder() + .setName(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + CmsMetadataKeyName name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]"); + + CmsMetadataKey actualResponse = client.getCmsMetadataKey(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 getCmsMetadataKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CmsMetadataKeyName name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]"); + client.getCmsMetadataKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCmsMetadataKeyTest2() throws Exception { + CmsMetadataKey expectedResponse = + CmsMetadataKey.newBuilder() + .setName(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-781/cmsMetadataKeys/cmsMetadataKey-781"; + + CmsMetadataKey actualResponse = client.getCmsMetadataKey(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 getCmsMetadataKeyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-781/cmsMetadataKeys/cmsMetadataKey-781"; + client.getCmsMetadataKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCmsMetadataKeysTest() throws Exception { + CmsMetadataKey responsesElement = CmsMetadataKey.newBuilder().build(); + ListCmsMetadataKeysResponse expectedResponse = + ListCmsMetadataKeysResponse.newBuilder() + .setNextPageToken("") + .addAllCmsMetadataKeys(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListCmsMetadataKeysPagedResponse pagedListResponse = client.listCmsMetadataKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCmsMetadataKeysList().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 listCmsMetadataKeysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listCmsMetadataKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCmsMetadataKeysTest2() throws Exception { + CmsMetadataKey responsesElement = CmsMetadataKey.newBuilder().build(); + ListCmsMetadataKeysResponse expectedResponse = + ListCmsMetadataKeysResponse.newBuilder() + .setNextPageToken("") + .addAllCmsMetadataKeys(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListCmsMetadataKeysPagedResponse pagedListResponse = client.listCmsMetadataKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCmsMetadataKeysList().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 listCmsMetadataKeysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listCmsMetadataKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClientTest.java new file mode 100644 index 000000000000..df43b6d500eb --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClientTest.java @@ -0,0 +1,269 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.CmsMetadataValueServiceClient.ListCmsMetadataValuesPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonCmsMetadataValueServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CmsMetadataValueServiceClientTest { + private static MockHttpService mockService; + private static CmsMetadataValueServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCmsMetadataValueServiceStub.getMethodDescriptors(), + CmsMetadataValueServiceSettings.getDefaultEndpoint()); + CmsMetadataValueServiceSettings settings = + CmsMetadataValueServiceSettings.newBuilder() + .setTransportChannelProvider( + CmsMetadataValueServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CmsMetadataValueServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getCmsMetadataValueTest() throws Exception { + CmsMetadataValue expectedResponse = + CmsMetadataValue.newBuilder() + .setName(CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString()) + .setDisplayName("displayName1714148973") + .setKey(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + CmsMetadataValueName name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]"); + + CmsMetadataValue actualResponse = client.getCmsMetadataValue(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 getCmsMetadataValueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CmsMetadataValueName name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]"); + client.getCmsMetadataValue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCmsMetadataValueTest2() throws Exception { + CmsMetadataValue expectedResponse = + CmsMetadataValue.newBuilder() + .setName(CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString()) + .setDisplayName("displayName1714148973") + .setKey(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-1839/cmsMetadataValues/cmsMetadataValue-1839"; + + CmsMetadataValue actualResponse = client.getCmsMetadataValue(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 getCmsMetadataValueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-1839/cmsMetadataValues/cmsMetadataValue-1839"; + client.getCmsMetadataValue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCmsMetadataValuesTest() throws Exception { + CmsMetadataValue responsesElement = CmsMetadataValue.newBuilder().build(); + ListCmsMetadataValuesResponse expectedResponse = + ListCmsMetadataValuesResponse.newBuilder() + .setNextPageToken("") + .addAllCmsMetadataValues(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListCmsMetadataValuesPagedResponse pagedListResponse = client.listCmsMetadataValues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCmsMetadataValuesList().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 listCmsMetadataValuesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listCmsMetadataValues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCmsMetadataValuesTest2() throws Exception { + CmsMetadataValue responsesElement = CmsMetadataValue.newBuilder().build(); + ListCmsMetadataValuesResponse expectedResponse = + ListCmsMetadataValuesResponse.newBuilder() + .setNextPageToken("") + .addAllCmsMetadataValues(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListCmsMetadataValuesPagedResponse pagedListResponse = client.listCmsMetadataValues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCmsMetadataValuesList().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 listCmsMetadataValuesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listCmsMetadataValues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CompanyServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CompanyServiceClientTest.java index ed304b0f0b44..8bc402be0b02 100644 --- a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CompanyServiceClientTest.java +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CompanyServiceClientTest.java @@ -91,7 +91,7 @@ public void getCompanyTest() throws Exception { .setExternalId("externalId-1699764666") .setComment("comment950398559") .addAllAppliedLabels(new ArrayList()) - .setPrimaryContact("primaryContact-532068418") + .setPrimaryContact(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) .addAllAppliedTeams(new ArrayList()) .setThirdPartyCompanyId(2003341038) .setUpdateTime(Timestamp.newBuilder().build()) @@ -148,7 +148,7 @@ public void getCompanyTest2() throws Exception { .setExternalId("externalId-1699764666") .setComment("comment950398559") .addAllAppliedLabels(new ArrayList()) - .setPrimaryContact("primaryContact-532068418") + .setPrimaryContact(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) .addAllAppliedTeams(new ArrayList()) .setThirdPartyCompanyId(2003341038) .setUpdateTime(Timestamp.newBuilder().build()) diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContactServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContactServiceClientTest.java new file mode 100644 index 000000000000..2fd0b36e3e2b --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContactServiceClientTest.java @@ -0,0 +1,650 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ContactServiceClient.ListContactsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonContactServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ContactServiceClientTest { + private static MockHttpService mockService; + private static ContactServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonContactServiceStub.getMethodDescriptors(), + ContactServiceSettings.getDefaultEndpoint()); + ContactServiceSettings settings = + ContactServiceSettings.newBuilder() + .setTransportChannelProvider( + ContactServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ContactServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getContactTest() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) + .setDisplayName("displayName1714148973") + .setCompany(CompanyName.of("[NETWORK_CODE]", "[COMPANY]").toString()) + .setAddress("address-1147692044") + .setCellPhone("cellPhone1616007468") + .setComment("comment950398559") + .setEmail("email96619420") + .setFax("fax101149") + .setTitle("title110371416") + .setWorkPhone("workPhone1076316381") + .build(); + mockService.addResponse(expectedResponse); + + ContactName name = ContactName.of("[NETWORK_CODE]", "[CONTACT]"); + + Contact actualResponse = client.getContact(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 getContactExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ContactName name = ContactName.of("[NETWORK_CODE]", "[CONTACT]"); + client.getContact(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getContactTest2() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) + .setDisplayName("displayName1714148973") + .setCompany(CompanyName.of("[NETWORK_CODE]", "[COMPANY]").toString()) + .setAddress("address-1147692044") + .setCellPhone("cellPhone1616007468") + .setComment("comment950398559") + .setEmail("email96619420") + .setFax("fax101149") + .setTitle("title110371416") + .setWorkPhone("workPhone1076316381") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-6322/contacts/contact-6322"; + + Contact actualResponse = client.getContact(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 getContactExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-6322/contacts/contact-6322"; + client.getContact(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContactsTest() throws Exception { + Contact responsesElement = Contact.newBuilder().build(); + ListContactsResponse expectedResponse = + ListContactsResponse.newBuilder() + .setNextPageToken("") + .addAllContacts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListContactsPagedResponse pagedListResponse = client.listContacts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContactsList().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 listContactsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listContacts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContactsTest2() throws Exception { + Contact responsesElement = Contact.newBuilder().build(); + ListContactsResponse expectedResponse = + ListContactsResponse.newBuilder() + .setNextPageToken("") + .addAllContacts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListContactsPagedResponse pagedListResponse = client.listContacts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContactsList().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 listContactsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listContacts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createContactTest() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) + .setDisplayName("displayName1714148973") + .setCompany(CompanyName.of("[NETWORK_CODE]", "[COMPANY]").toString()) + .setAddress("address-1147692044") + .setCellPhone("cellPhone1616007468") + .setComment("comment950398559") + .setEmail("email96619420") + .setFax("fax101149") + .setTitle("title110371416") + .setWorkPhone("workPhone1076316381") + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Contact contact = Contact.newBuilder().build(); + + Contact actualResponse = client.createContact(parent, contact); + 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 createContactExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Contact contact = Contact.newBuilder().build(); + client.createContact(parent, contact); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createContactTest2() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) + .setDisplayName("displayName1714148973") + .setCompany(CompanyName.of("[NETWORK_CODE]", "[COMPANY]").toString()) + .setAddress("address-1147692044") + .setCellPhone("cellPhone1616007468") + .setComment("comment950398559") + .setEmail("email96619420") + .setFax("fax101149") + .setTitle("title110371416") + .setWorkPhone("workPhone1076316381") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + Contact contact = Contact.newBuilder().build(); + + Contact actualResponse = client.createContact(parent, contact); + 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 createContactExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + Contact contact = Contact.newBuilder().build(); + client.createContact(parent, contact); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateContactsTest() throws Exception { + BatchCreateContactsResponse expectedResponse = + BatchCreateContactsResponse.newBuilder().addAllContacts(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchCreateContactsResponse actualResponse = client.batchCreateContacts(parent, requests); + 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 batchCreateContactsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchCreateContacts(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateContactsTest2() throws Exception { + BatchCreateContactsResponse expectedResponse = + BatchCreateContactsResponse.newBuilder().addAllContacts(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchCreateContactsResponse actualResponse = client.batchCreateContacts(parent, requests); + 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 batchCreateContactsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchCreateContacts(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateContactTest() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) + .setDisplayName("displayName1714148973") + .setCompany(CompanyName.of("[NETWORK_CODE]", "[COMPANY]").toString()) + .setAddress("address-1147692044") + .setCellPhone("cellPhone1616007468") + .setComment("comment950398559") + .setEmail("email96619420") + .setFax("fax101149") + .setTitle("title110371416") + .setWorkPhone("workPhone1076316381") + .build(); + mockService.addResponse(expectedResponse); + + Contact contact = + Contact.newBuilder() + .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) + .setDisplayName("displayName1714148973") + .setCompany(CompanyName.of("[NETWORK_CODE]", "[COMPANY]").toString()) + .setAddress("address-1147692044") + .setCellPhone("cellPhone1616007468") + .setComment("comment950398559") + .setEmail("email96619420") + .setFax("fax101149") + .setTitle("title110371416") + .setWorkPhone("workPhone1076316381") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Contact actualResponse = client.updateContact(contact, updateMask); + 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 updateContactExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Contact contact = + Contact.newBuilder() + .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) + .setDisplayName("displayName1714148973") + .setCompany(CompanyName.of("[NETWORK_CODE]", "[COMPANY]").toString()) + .setAddress("address-1147692044") + .setCellPhone("cellPhone1616007468") + .setComment("comment950398559") + .setEmail("email96619420") + .setFax("fax101149") + .setTitle("title110371416") + .setWorkPhone("workPhone1076316381") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateContact(contact, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateContactsTest() throws Exception { + BatchUpdateContactsResponse expectedResponse = + BatchUpdateContactsResponse.newBuilder().addAllContacts(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchUpdateContactsResponse actualResponse = client.batchUpdateContacts(parent, requests); + 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 batchUpdateContactsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchUpdateContacts(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateContactsTest2() throws Exception { + BatchUpdateContactsResponse expectedResponse = + BatchUpdateContactsResponse.newBuilder().addAllContacts(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchUpdateContactsResponse actualResponse = client.batchUpdateContacts(parent, requests); + 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 batchUpdateContactsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchUpdateContacts(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContentBundleServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContentBundleServiceClientTest.java new file mode 100644 index 000000000000..c307c9d00510 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContentBundleServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ContentBundleServiceClient.ListContentBundlesPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonContentBundleServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ContentBundleServiceClientTest { + private static MockHttpService mockService; + private static ContentBundleServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonContentBundleServiceStub.getMethodDescriptors(), + ContentBundleServiceSettings.getDefaultEndpoint()); + ContentBundleServiceSettings settings = + ContentBundleServiceSettings.newBuilder() + .setTransportChannelProvider( + ContentBundleServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ContentBundleServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getContentBundleTest() throws Exception { + ContentBundle expectedResponse = + ContentBundle.newBuilder() + .setName(ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + ContentBundleName name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]"); + + ContentBundle actualResponse = client.getContentBundle(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 getContentBundleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ContentBundleName name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]"); + client.getContentBundle(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getContentBundleTest2() throws Exception { + ContentBundle expectedResponse = + ContentBundle.newBuilder() + .setName(ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-1929/contentBundles/contentBundle-1929"; + + ContentBundle actualResponse = client.getContentBundle(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 getContentBundleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-1929/contentBundles/contentBundle-1929"; + client.getContentBundle(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContentBundlesTest() throws Exception { + ContentBundle responsesElement = ContentBundle.newBuilder().build(); + ListContentBundlesResponse expectedResponse = + ListContentBundlesResponse.newBuilder() + .setNextPageToken("") + .addAllContentBundles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListContentBundlesPagedResponse pagedListResponse = client.listContentBundles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContentBundlesList().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 listContentBundlesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listContentBundles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContentBundlesTest2() throws Exception { + ContentBundle responsesElement = ContentBundle.newBuilder().build(); + ListContentBundlesResponse expectedResponse = + ListContentBundlesResponse.newBuilder() + .setNextPageToken("") + .addAllContentBundles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListContentBundlesPagedResponse pagedListResponse = client.listContentBundles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContentBundlesList().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 listContentBundlesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listContentBundles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContentLabelServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContentLabelServiceClientTest.java new file mode 100644 index 000000000000..bd85bcae8eaf --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContentLabelServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ContentLabelServiceClient.ListContentLabelsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonContentLabelServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ContentLabelServiceClientTest { + private static MockHttpService mockService; + private static ContentLabelServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonContentLabelServiceStub.getMethodDescriptors(), + ContentLabelServiceSettings.getDefaultEndpoint()); + ContentLabelServiceSettings settings = + ContentLabelServiceSettings.newBuilder() + .setTransportChannelProvider( + ContentLabelServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ContentLabelServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getContentLabelTest() throws Exception { + ContentLabel expectedResponse = + ContentLabel.newBuilder() + .setName(ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + ContentLabelName name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]"); + + ContentLabel actualResponse = client.getContentLabel(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 getContentLabelExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ContentLabelName name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]"); + client.getContentLabel(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getContentLabelTest2() throws Exception { + ContentLabel expectedResponse = + ContentLabel.newBuilder() + .setName(ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-6225/contentLabels/contentLabel-6225"; + + ContentLabel actualResponse = client.getContentLabel(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 getContentLabelExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-6225/contentLabels/contentLabel-6225"; + client.getContentLabel(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContentLabelsTest() throws Exception { + ContentLabel responsesElement = ContentLabel.newBuilder().build(); + ListContentLabelsResponse expectedResponse = + ListContentLabelsResponse.newBuilder() + .setNextPageToken("") + .addAllContentLabels(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListContentLabelsPagedResponse pagedListResponse = client.listContentLabels(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContentLabelsList().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 listContentLabelsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listContentLabels(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContentLabelsTest2() throws Exception { + ContentLabel responsesElement = ContentLabel.newBuilder().build(); + ListContentLabelsResponse expectedResponse = + ListContentLabelsResponse.newBuilder() + .setNextPageToken("") + .addAllContentLabels(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListContentLabelsPagedResponse pagedListResponse = client.listContentLabels(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContentLabelsList().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 listContentLabelsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listContentLabels(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContentServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContentServiceClientTest.java new file mode 100644 index 000000000000..c67afd8b0216 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ContentServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.ContentServiceClient.ListContentPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonContentServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ContentServiceClientTest { + private static MockHttpService mockService; + private static ContentServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonContentServiceStub.getMethodDescriptors(), + ContentServiceSettings.getDefaultEndpoint()); + ContentServiceSettings settings = + ContentServiceSettings.newBuilder() + .setTransportChannelProvider( + ContentServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ContentServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getContentTest() throws Exception { + Content expectedResponse = + Content.newBuilder() + .setName(ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + ContentName name = ContentName.of("[NETWORK_CODE]", "[CONTENT]"); + + Content actualResponse = client.getContent(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 getContentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ContentName name = ContentName.of("[NETWORK_CODE]", "[CONTENT]"); + client.getContent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getContentTest2() throws Exception { + Content expectedResponse = + Content.newBuilder() + .setName(ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-4528/content/conten-4528"; + + Content actualResponse = client.getContent(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 getContentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-4528/content/conten-4528"; + client.getContent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContentTest() throws Exception { + Content responsesElement = Content.newBuilder().build(); + ListContentResponse expectedResponse = + ListContentResponse.newBuilder() + .setNextPageToken("") + .addAllContent(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListContentPagedResponse pagedListResponse = client.listContent(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContentList().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 listContentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listContent(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContentTest2() throws Exception { + Content responsesElement = Content.newBuilder().build(); + ListContentResponse expectedResponse = + ListContentResponse.newBuilder() + .setNextPageToken("") + .addAllContent(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListContentPagedResponse pagedListResponse = client.listContent(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContentList().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 listContentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listContent(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CreativeTemplateServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CreativeTemplateServiceClientTest.java new file mode 100644 index 000000000000..56b469426715 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CreativeTemplateServiceClientTest.java @@ -0,0 +1,282 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.CreativeTemplateServiceClient.ListCreativeTemplatesPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonCreativeTemplateServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CreativeTemplateServiceClientTest { + private static MockHttpService mockService; + private static CreativeTemplateServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCreativeTemplateServiceStub.getMethodDescriptors(), + CreativeTemplateServiceSettings.getDefaultEndpoint()); + CreativeTemplateServiceSettings settings = + CreativeTemplateServiceSettings.newBuilder() + .setTransportChannelProvider( + CreativeTemplateServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CreativeTemplateServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getCreativeTemplateTest() throws Exception { + CreativeTemplate expectedResponse = + CreativeTemplate.newBuilder() + .setName(CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSnippet("snippet-2061635299") + .setInterstitial(true) + .setNativeEligible(true) + .setNativeVideoEligible(true) + .setSafeFrameCompatible(true) + .addAllVariables(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CreativeTemplateName name = CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]"); + + CreativeTemplate actualResponse = client.getCreativeTemplate(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 getCreativeTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CreativeTemplateName name = CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]"); + client.getCreativeTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCreativeTemplateTest2() throws Exception { + CreativeTemplate expectedResponse = + CreativeTemplate.newBuilder() + .setName(CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSnippet("snippet-2061635299") + .setInterstitial(true) + .setNativeEligible(true) + .setNativeVideoEligible(true) + .setSafeFrameCompatible(true) + .addAllVariables(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-9871/creativeTemplates/creativeTemplate-9871"; + + CreativeTemplate actualResponse = client.getCreativeTemplate(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 getCreativeTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-9871/creativeTemplates/creativeTemplate-9871"; + client.getCreativeTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCreativeTemplatesTest() throws Exception { + CreativeTemplate responsesElement = CreativeTemplate.newBuilder().build(); + ListCreativeTemplatesResponse expectedResponse = + ListCreativeTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllCreativeTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListCreativeTemplatesPagedResponse pagedListResponse = client.listCreativeTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCreativeTemplatesList().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 listCreativeTemplatesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listCreativeTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCreativeTemplatesTest2() throws Exception { + CreativeTemplate responsesElement = CreativeTemplate.newBuilder().build(); + ListCreativeTemplatesResponse expectedResponse = + ListCreativeTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllCreativeTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListCreativeTemplatesPagedResponse pagedListResponse = client.listCreativeTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCreativeTemplatesList().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 listCreativeTemplatesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listCreativeTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomFieldServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomFieldServiceClientTest.java index 683eb7e7d640..98e18600623d 100644 --- a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomFieldServiceClientTest.java +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomFieldServiceClientTest.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -271,4 +272,536 @@ public void listCustomFieldsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createCustomFieldTest() throws Exception { + CustomField expectedResponse = + CustomField.newBuilder() + .setName(CustomFieldName.of("[NETWORK_CODE]", "[CUSTOM_FIELD]").toString()) + .setCustomFieldId(-66688114) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllOptions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + CustomField customField = CustomField.newBuilder().build(); + + CustomField actualResponse = client.createCustomField(parent, customField); + 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 createCustomFieldExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + CustomField customField = CustomField.newBuilder().build(); + client.createCustomField(parent, customField); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomFieldTest2() throws Exception { + CustomField expectedResponse = + CustomField.newBuilder() + .setName(CustomFieldName.of("[NETWORK_CODE]", "[CUSTOM_FIELD]").toString()) + .setCustomFieldId(-66688114) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllOptions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + CustomField customField = CustomField.newBuilder().build(); + + CustomField actualResponse = client.createCustomField(parent, customField); + 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 createCustomFieldExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + CustomField customField = CustomField.newBuilder().build(); + client.createCustomField(parent, customField); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateCustomFieldsTest() throws Exception { + BatchCreateCustomFieldsResponse expectedResponse = + BatchCreateCustomFieldsResponse.newBuilder() + .addAllCustomFields(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchCreateCustomFieldsResponse actualResponse = + client.batchCreateCustomFields(parent, requests); + 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 batchCreateCustomFieldsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchCreateCustomFields(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateCustomFieldsTest2() throws Exception { + BatchCreateCustomFieldsResponse expectedResponse = + BatchCreateCustomFieldsResponse.newBuilder() + .addAllCustomFields(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchCreateCustomFieldsResponse actualResponse = + client.batchCreateCustomFields(parent, requests); + 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 batchCreateCustomFieldsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchCreateCustomFields(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomFieldTest() throws Exception { + CustomField expectedResponse = + CustomField.newBuilder() + .setName(CustomFieldName.of("[NETWORK_CODE]", "[CUSTOM_FIELD]").toString()) + .setCustomFieldId(-66688114) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllOptions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CustomField customField = + CustomField.newBuilder() + .setName(CustomFieldName.of("[NETWORK_CODE]", "[CUSTOM_FIELD]").toString()) + .setCustomFieldId(-66688114) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllOptions(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomField actualResponse = client.updateCustomField(customField, updateMask); + 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 updateCustomFieldExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomField customField = + CustomField.newBuilder() + .setName(CustomFieldName.of("[NETWORK_CODE]", "[CUSTOM_FIELD]").toString()) + .setCustomFieldId(-66688114) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllOptions(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomField(customField, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateCustomFieldsTest() throws Exception { + BatchUpdateCustomFieldsResponse expectedResponse = + BatchUpdateCustomFieldsResponse.newBuilder() + .addAllCustomFields(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchUpdateCustomFieldsResponse actualResponse = + client.batchUpdateCustomFields(parent, requests); + 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 batchUpdateCustomFieldsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchUpdateCustomFields(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateCustomFieldsTest2() throws Exception { + BatchUpdateCustomFieldsResponse expectedResponse = + BatchUpdateCustomFieldsResponse.newBuilder() + .addAllCustomFields(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchUpdateCustomFieldsResponse actualResponse = + client.batchUpdateCustomFields(parent, requests); + 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 batchUpdateCustomFieldsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchUpdateCustomFields(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivateCustomFieldsTest() throws Exception { + BatchActivateCustomFieldsResponse expectedResponse = + BatchActivateCustomFieldsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchActivateCustomFieldsResponse actualResponse = + client.batchActivateCustomFields(parent, names); + 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 batchActivateCustomFieldsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchActivateCustomFields(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivateCustomFieldsTest2() throws Exception { + BatchActivateCustomFieldsResponse expectedResponse = + BatchActivateCustomFieldsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchActivateCustomFieldsResponse actualResponse = + client.batchActivateCustomFields(parent, names); + 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 batchActivateCustomFieldsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchActivateCustomFields(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateCustomFieldsTest() throws Exception { + BatchDeactivateCustomFieldsResponse expectedResponse = + BatchDeactivateCustomFieldsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchDeactivateCustomFieldsResponse actualResponse = + client.batchDeactivateCustomFields(parent, names); + 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 batchDeactivateCustomFieldsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchDeactivateCustomFields(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateCustomFieldsTest2() throws Exception { + BatchDeactivateCustomFieldsResponse expectedResponse = + BatchDeactivateCustomFieldsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchDeactivateCustomFieldsResponse actualResponse = + client.batchDeactivateCustomFields(parent, names); + 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 batchDeactivateCustomFieldsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchDeactivateCustomFields(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClientTest.java new file mode 100644 index 000000000000..0bd6f5e4a5d6 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.DeviceCapabilityServiceClient.ListDeviceCapabilitiesPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonDeviceCapabilityServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DeviceCapabilityServiceClientTest { + private static MockHttpService mockService; + private static DeviceCapabilityServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDeviceCapabilityServiceStub.getMethodDescriptors(), + DeviceCapabilityServiceSettings.getDefaultEndpoint()); + DeviceCapabilityServiceSettings settings = + DeviceCapabilityServiceSettings.newBuilder() + .setTransportChannelProvider( + DeviceCapabilityServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DeviceCapabilityServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getDeviceCapabilityTest() throws Exception { + DeviceCapability expectedResponse = + DeviceCapability.newBuilder() + .setName(DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + DeviceCapabilityName name = DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]"); + + DeviceCapability actualResponse = client.getDeviceCapability(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 getDeviceCapabilityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceCapabilityName name = DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]"); + client.getDeviceCapability(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeviceCapabilityTest2() throws Exception { + DeviceCapability expectedResponse = + DeviceCapability.newBuilder() + .setName(DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-5765/deviceCapabilities/deviceCapabilitie-5765"; + + DeviceCapability actualResponse = client.getDeviceCapability(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 getDeviceCapabilityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-5765/deviceCapabilities/deviceCapabilitie-5765"; + client.getDeviceCapability(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceCapabilitiesTest() throws Exception { + DeviceCapability responsesElement = DeviceCapability.newBuilder().build(); + ListDeviceCapabilitiesResponse expectedResponse = + ListDeviceCapabilitiesResponse.newBuilder() + .setNextPageToken("") + .addAllDeviceCapabilities(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListDeviceCapabilitiesPagedResponse pagedListResponse = client.listDeviceCapabilities(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeviceCapabilitiesList().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 listDeviceCapabilitiesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listDeviceCapabilities(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceCapabilitiesTest2() throws Exception { + DeviceCapability responsesElement = DeviceCapability.newBuilder().build(); + ListDeviceCapabilitiesResponse expectedResponse = + ListDeviceCapabilitiesResponse.newBuilder() + .setNextPageToken("") + .addAllDeviceCapabilities(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListDeviceCapabilitiesPagedResponse pagedListResponse = client.listDeviceCapabilities(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeviceCapabilitiesList().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 listDeviceCapabilitiesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listDeviceCapabilities(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClientTest.java new file mode 100644 index 000000000000..ec94ad077533 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClientTest.java @@ -0,0 +1,271 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.DeviceManufacturerServiceClient.ListDeviceManufacturersPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonDeviceManufacturerServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DeviceManufacturerServiceClientTest { + private static MockHttpService mockService; + private static DeviceManufacturerServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDeviceManufacturerServiceStub.getMethodDescriptors(), + DeviceManufacturerServiceSettings.getDefaultEndpoint()); + DeviceManufacturerServiceSettings settings = + DeviceManufacturerServiceSettings.newBuilder() + .setTransportChannelProvider( + DeviceManufacturerServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DeviceManufacturerServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getDeviceManufacturerTest() throws Exception { + DeviceManufacturer expectedResponse = + DeviceManufacturer.newBuilder() + .setName( + DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + DeviceManufacturerName name = + DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]"); + + DeviceManufacturer actualResponse = client.getDeviceManufacturer(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 getDeviceManufacturerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceManufacturerName name = + DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]"); + client.getDeviceManufacturer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeviceManufacturerTest2() throws Exception { + DeviceManufacturer expectedResponse = + DeviceManufacturer.newBuilder() + .setName( + DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-1981/deviceManufacturers/deviceManufacturer-1981"; + + DeviceManufacturer actualResponse = client.getDeviceManufacturer(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 getDeviceManufacturerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-1981/deviceManufacturers/deviceManufacturer-1981"; + client.getDeviceManufacturer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceManufacturersTest() throws Exception { + DeviceManufacturer responsesElement = DeviceManufacturer.newBuilder().build(); + ListDeviceManufacturersResponse expectedResponse = + ListDeviceManufacturersResponse.newBuilder() + .setNextPageToken("") + .addAllDeviceManufacturers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListDeviceManufacturersPagedResponse pagedListResponse = client.listDeviceManufacturers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeviceManufacturersList().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 listDeviceManufacturersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listDeviceManufacturers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceManufacturersTest2() throws Exception { + DeviceManufacturer responsesElement = DeviceManufacturer.newBuilder().build(); + ListDeviceManufacturersResponse expectedResponse = + ListDeviceManufacturersResponse.newBuilder() + .setNextPageToken("") + .addAllDeviceManufacturers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListDeviceManufacturersPagedResponse pagedListResponse = client.listDeviceManufacturers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeviceManufacturersList().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 listDeviceManufacturersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listDeviceManufacturers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/MobileCarrierServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/MobileCarrierServiceClientTest.java new file mode 100644 index 000000000000..a391301878a2 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/MobileCarrierServiceClientTest.java @@ -0,0 +1,269 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.MobileCarrierServiceClient.ListMobileCarriersPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonMobileCarrierServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MobileCarrierServiceClientTest { + private static MockHttpService mockService; + private static MobileCarrierServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonMobileCarrierServiceStub.getMethodDescriptors(), + MobileCarrierServiceSettings.getDefaultEndpoint()); + MobileCarrierServiceSettings settings = + MobileCarrierServiceSettings.newBuilder() + .setTransportChannelProvider( + MobileCarrierServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MobileCarrierServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getMobileCarrierTest() throws Exception { + MobileCarrier expectedResponse = + MobileCarrier.newBuilder() + .setName(MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]").toString()) + .setDisplayName("displayName1714148973") + .setRegionCode("regionCode-1991004415") + .build(); + mockService.addResponse(expectedResponse); + + MobileCarrierName name = MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]"); + + MobileCarrier actualResponse = client.getMobileCarrier(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 getMobileCarrierExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MobileCarrierName name = MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]"); + client.getMobileCarrier(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMobileCarrierTest2() throws Exception { + MobileCarrier expectedResponse = + MobileCarrier.newBuilder() + .setName(MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]").toString()) + .setDisplayName("displayName1714148973") + .setRegionCode("regionCode-1991004415") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-716/mobileCarriers/mobileCarrier-716"; + + MobileCarrier actualResponse = client.getMobileCarrier(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 getMobileCarrierExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-716/mobileCarriers/mobileCarrier-716"; + client.getMobileCarrier(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMobileCarriersTest() throws Exception { + MobileCarrier responsesElement = MobileCarrier.newBuilder().build(); + ListMobileCarriersResponse expectedResponse = + ListMobileCarriersResponse.newBuilder() + .setNextPageToken("") + .addAllMobileCarriers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListMobileCarriersPagedResponse pagedListResponse = client.listMobileCarriers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMobileCarriersList().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 listMobileCarriersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listMobileCarriers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMobileCarriersTest2() throws Exception { + MobileCarrier responsesElement = MobileCarrier.newBuilder().build(); + ListMobileCarriersResponse expectedResponse = + ListMobileCarriersResponse.newBuilder() + .setNextPageToken("") + .addAllMobileCarriers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListMobileCarriersPagedResponse pagedListResponse = client.listMobileCarriers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMobileCarriersList().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 listMobileCarriersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listMobileCarriers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/MobileDeviceServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/MobileDeviceServiceClientTest.java new file mode 100644 index 000000000000..bc2d1f1e492c --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/MobileDeviceServiceClientTest.java @@ -0,0 +1,271 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.MobileDeviceServiceClient.ListMobileDevicesPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonMobileDeviceServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MobileDeviceServiceClientTest { + private static MockHttpService mockService; + private static MobileDeviceServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonMobileDeviceServiceStub.getMethodDescriptors(), + MobileDeviceServiceSettings.getDefaultEndpoint()); + MobileDeviceServiceSettings settings = + MobileDeviceServiceSettings.newBuilder() + .setTransportChannelProvider( + MobileDeviceServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MobileDeviceServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getMobileDeviceTest() throws Exception { + MobileDevice expectedResponse = + MobileDevice.newBuilder() + .setName(MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString()) + .setDisplayName("displayName1714148973") + .setManufacturer( + DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + MobileDeviceName name = MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]"); + + MobileDevice actualResponse = client.getMobileDevice(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 getMobileDeviceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MobileDeviceName name = MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]"); + client.getMobileDevice(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMobileDeviceTest2() throws Exception { + MobileDevice expectedResponse = + MobileDevice.newBuilder() + .setName(MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString()) + .setDisplayName("displayName1714148973") + .setManufacturer( + DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-4206/mobileDevices/mobileDevice-4206"; + + MobileDevice actualResponse = client.getMobileDevice(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 getMobileDeviceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-4206/mobileDevices/mobileDevice-4206"; + client.getMobileDevice(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMobileDevicesTest() throws Exception { + MobileDevice responsesElement = MobileDevice.newBuilder().build(); + ListMobileDevicesResponse expectedResponse = + ListMobileDevicesResponse.newBuilder() + .setNextPageToken("") + .addAllMobileDevices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListMobileDevicesPagedResponse pagedListResponse = client.listMobileDevices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMobileDevicesList().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 listMobileDevicesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listMobileDevices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMobileDevicesTest2() throws Exception { + MobileDevice responsesElement = MobileDevice.newBuilder().build(); + ListMobileDevicesResponse expectedResponse = + ListMobileDevicesResponse.newBuilder() + .setNextPageToken("") + .addAllMobileDevices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListMobileDevicesPagedResponse pagedListResponse = client.listMobileDevices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMobileDevicesList().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 listMobileDevicesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listMobileDevices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClientTest.java new file mode 100644 index 000000000000..150598d77d24 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClientTest.java @@ -0,0 +1,277 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient.ListMobileDeviceSubmodelsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonMobileDeviceSubmodelServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MobileDeviceSubmodelServiceClientTest { + private static MockHttpService mockService; + private static MobileDeviceSubmodelServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonMobileDeviceSubmodelServiceStub.getMethodDescriptors(), + MobileDeviceSubmodelServiceSettings.getDefaultEndpoint()); + MobileDeviceSubmodelServiceSettings settings = + MobileDeviceSubmodelServiceSettings.newBuilder() + .setTransportChannelProvider( + MobileDeviceSubmodelServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MobileDeviceSubmodelServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getMobileDeviceSubmodelTest() throws Exception { + MobileDeviceSubmodel expectedResponse = + MobileDeviceSubmodel.newBuilder() + .setName( + MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]") + .toString()) + .setDisplayName("displayName1714148973") + .setMobileDevice(MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + MobileDeviceSubmodelName name = + MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]"); + + MobileDeviceSubmodel actualResponse = client.getMobileDeviceSubmodel(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 getMobileDeviceSubmodelExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MobileDeviceSubmodelName name = + MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]"); + client.getMobileDeviceSubmodel(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMobileDeviceSubmodelTest2() throws Exception { + MobileDeviceSubmodel expectedResponse = + MobileDeviceSubmodel.newBuilder() + .setName( + MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]") + .toString()) + .setDisplayName("displayName1714148973") + .setMobileDevice(MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-4457/mobileDeviceSubmodels/mobileDeviceSubmodel-4457"; + + MobileDeviceSubmodel actualResponse = client.getMobileDeviceSubmodel(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 getMobileDeviceSubmodelExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-4457/mobileDeviceSubmodels/mobileDeviceSubmodel-4457"; + client.getMobileDeviceSubmodel(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMobileDeviceSubmodelsTest() throws Exception { + MobileDeviceSubmodel responsesElement = MobileDeviceSubmodel.newBuilder().build(); + ListMobileDeviceSubmodelsResponse expectedResponse = + ListMobileDeviceSubmodelsResponse.newBuilder() + .setNextPageToken("") + .addAllMobileDeviceSubmodels(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListMobileDeviceSubmodelsPagedResponse pagedListResponse = + client.listMobileDeviceSubmodels(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMobileDeviceSubmodelsList().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 listMobileDeviceSubmodelsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listMobileDeviceSubmodels(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMobileDeviceSubmodelsTest2() throws Exception { + MobileDeviceSubmodel responsesElement = MobileDeviceSubmodel.newBuilder().build(); + ListMobileDeviceSubmodelsResponse expectedResponse = + ListMobileDeviceSubmodelsResponse.newBuilder() + .setNextPageToken("") + .addAllMobileDeviceSubmodels(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListMobileDeviceSubmodelsPagedResponse pagedListResponse = + client.listMobileDeviceSubmodels(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMobileDeviceSubmodelsList().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 listMobileDeviceSubmodelsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listMobileDeviceSubmodels(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PlacementServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PlacementServiceClientTest.java index 0c8176dea9e1..b46ddb17523e 100644 --- a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PlacementServiceClientTest.java +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PlacementServiceClientTest.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; @@ -276,4 +277,628 @@ public void listPlacementsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createPlacementTest() throws Exception { + Placement expectedResponse = + Placement.newBuilder() + .setName(PlacementName.of("[NETWORK_CODE]", "[PLACEMENT]").toString()) + .setPlacementId(1224358069) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPlacementCode("placementCode-700433806") + .addAllTargetedAdUnits(new ArrayList()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Placement placement = Placement.newBuilder().build(); + + Placement actualResponse = client.createPlacement(parent, placement); + 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 createPlacementExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Placement placement = Placement.newBuilder().build(); + client.createPlacement(parent, placement); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPlacementTest2() throws Exception { + Placement expectedResponse = + Placement.newBuilder() + .setName(PlacementName.of("[NETWORK_CODE]", "[PLACEMENT]").toString()) + .setPlacementId(1224358069) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPlacementCode("placementCode-700433806") + .addAllTargetedAdUnits(new ArrayList()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + Placement placement = Placement.newBuilder().build(); + + Placement actualResponse = client.createPlacement(parent, placement); + 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 createPlacementExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + Placement placement = Placement.newBuilder().build(); + client.createPlacement(parent, placement); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePlacementTest() throws Exception { + Placement expectedResponse = + Placement.newBuilder() + .setName(PlacementName.of("[NETWORK_CODE]", "[PLACEMENT]").toString()) + .setPlacementId(1224358069) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPlacementCode("placementCode-700433806") + .addAllTargetedAdUnits(new ArrayList()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Placement placement = + Placement.newBuilder() + .setName(PlacementName.of("[NETWORK_CODE]", "[PLACEMENT]").toString()) + .setPlacementId(1224358069) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPlacementCode("placementCode-700433806") + .addAllTargetedAdUnits(new ArrayList()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Placement actualResponse = client.updatePlacement(placement, updateMask); + 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 updatePlacementExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Placement placement = + Placement.newBuilder() + .setName(PlacementName.of("[NETWORK_CODE]", "[PLACEMENT]").toString()) + .setPlacementId(1224358069) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPlacementCode("placementCode-700433806") + .addAllTargetedAdUnits(new ArrayList()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePlacement(placement, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreatePlacementsTest() throws Exception { + BatchCreatePlacementsResponse expectedResponse = + BatchCreatePlacementsResponse.newBuilder() + .addAllPlacements(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchCreatePlacementsResponse actualResponse = client.batchCreatePlacements(parent, requests); + 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 batchCreatePlacementsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchCreatePlacements(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreatePlacementsTest2() throws Exception { + BatchCreatePlacementsResponse expectedResponse = + BatchCreatePlacementsResponse.newBuilder() + .addAllPlacements(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchCreatePlacementsResponse actualResponse = client.batchCreatePlacements(parent, requests); + 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 batchCreatePlacementsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchCreatePlacements(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdatePlacementsTest() throws Exception { + BatchUpdatePlacementsResponse expectedResponse = + BatchUpdatePlacementsResponse.newBuilder() + .addAllPlacements(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchUpdatePlacementsResponse actualResponse = client.batchUpdatePlacements(parent, requests); + 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 batchUpdatePlacementsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchUpdatePlacements(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdatePlacementsTest2() throws Exception { + BatchUpdatePlacementsResponse expectedResponse = + BatchUpdatePlacementsResponse.newBuilder() + .addAllPlacements(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchUpdatePlacementsResponse actualResponse = client.batchUpdatePlacements(parent, requests); + 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 batchUpdatePlacementsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchUpdatePlacements(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivatePlacementsTest() throws Exception { + BatchActivatePlacementsResponse expectedResponse = + BatchActivatePlacementsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchActivatePlacementsResponse actualResponse = client.batchActivatePlacements(parent, names); + 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 batchActivatePlacementsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchActivatePlacements(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivatePlacementsTest2() throws Exception { + BatchActivatePlacementsResponse expectedResponse = + BatchActivatePlacementsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchActivatePlacementsResponse actualResponse = client.batchActivatePlacements(parent, names); + 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 batchActivatePlacementsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchActivatePlacements(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivatePlacementsTest() throws Exception { + BatchDeactivatePlacementsResponse expectedResponse = + BatchDeactivatePlacementsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchDeactivatePlacementsResponse actualResponse = + client.batchDeactivatePlacements(parent, names); + 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 batchDeactivatePlacementsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchDeactivatePlacements(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivatePlacementsTest2() throws Exception { + BatchDeactivatePlacementsResponse expectedResponse = + BatchDeactivatePlacementsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchDeactivatePlacementsResponse actualResponse = + client.batchDeactivatePlacements(parent, names); + 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 batchDeactivatePlacementsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchDeactivatePlacements(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchArchivePlacementsTest() throws Exception { + BatchArchivePlacementsResponse expectedResponse = + BatchArchivePlacementsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchArchivePlacementsResponse actualResponse = client.batchArchivePlacements(parent, names); + 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 batchArchivePlacementsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchArchivePlacements(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchArchivePlacementsTest2() throws Exception { + BatchArchivePlacementsResponse expectedResponse = + BatchArchivePlacementsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchArchivePlacementsResponse actualResponse = client.batchArchivePlacements(parent, names); + 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 batchArchivePlacementsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchArchivePlacements(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ReportServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ReportServiceClientTest.java index aa5ba4c24c71..2cb8e1f1f970 100644 --- a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ReportServiceClientTest.java +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ReportServiceClientTest.java @@ -558,7 +558,7 @@ public void runReportExceptionTest2() throws Exception { @Test public void fetchReportResultRowsTest() throws Exception { - Report.DataTable.Row responsesElement = Report.DataTable.Row.newBuilder().build(); + ReportDataTable.Row responsesElement = ReportDataTable.Row.newBuilder().build(); FetchReportResultRowsResponse expectedResponse = FetchReportResultRowsResponse.newBuilder() .setNextPageToken("") @@ -570,7 +570,7 @@ public void fetchReportResultRowsTest() throws Exception { FetchReportResultRowsPagedResponse pagedListResponse = client.fetchReportResultRows(name); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getRowsList().get(0), resources.get(0)); diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/SiteServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/SiteServiceClientTest.java new file mode 100644 index 000000000000..ebe88d01573e --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/SiteServiceClientTest.java @@ -0,0 +1,794 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.SiteServiceClient.ListSitesPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonSiteServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SiteServiceClientTest { + private static MockHttpService mockService; + private static SiteServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSiteServiceStub.getMethodDescriptors(), + SiteServiceSettings.getDefaultEndpoint()); + SiteServiceSettings settings = + SiteServiceSettings.newBuilder() + .setTransportChannelProvider( + SiteServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SiteServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getSiteTest() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString()) + .setUrl("url116079") + .setChildNetworkCode("childNetworkCode-253403521") + .setApprovalStatusUpdateTime(Timestamp.newBuilder().build()) + .addAllDisapprovalReasons(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + SiteName name = SiteName.of("[NETWORK_CODE]", "[SITE]"); + + Site actualResponse = client.getSite(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 getSiteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SiteName name = SiteName.of("[NETWORK_CODE]", "[SITE]"); + client.getSite(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSiteTest2() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString()) + .setUrl("url116079") + .setChildNetworkCode("childNetworkCode-253403521") + .setApprovalStatusUpdateTime(Timestamp.newBuilder().build()) + .addAllDisapprovalReasons(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-9709/sites/site-9709"; + + Site actualResponse = client.getSite(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 getSiteExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-9709/sites/site-9709"; + client.getSite(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSitesTest() throws Exception { + Site responsesElement = Site.newBuilder().build(); + ListSitesResponse expectedResponse = + ListSitesResponse.newBuilder() + .setNextPageToken("") + .addAllSites(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListSitesPagedResponse pagedListResponse = client.listSites(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSitesList().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 listSitesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listSites(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSitesTest2() throws Exception { + Site responsesElement = Site.newBuilder().build(); + ListSitesResponse expectedResponse = + ListSitesResponse.newBuilder() + .setNextPageToken("") + .addAllSites(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListSitesPagedResponse pagedListResponse = client.listSites(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSitesList().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 listSitesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listSites(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSiteTest() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString()) + .setUrl("url116079") + .setChildNetworkCode("childNetworkCode-253403521") + .setApprovalStatusUpdateTime(Timestamp.newBuilder().build()) + .addAllDisapprovalReasons(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Site site = Site.newBuilder().build(); + + Site actualResponse = client.createSite(parent, site); + 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 createSiteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Site site = Site.newBuilder().build(); + client.createSite(parent, site); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSiteTest2() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString()) + .setUrl("url116079") + .setChildNetworkCode("childNetworkCode-253403521") + .setApprovalStatusUpdateTime(Timestamp.newBuilder().build()) + .addAllDisapprovalReasons(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + Site site = Site.newBuilder().build(); + + Site actualResponse = client.createSite(parent, site); + 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 createSiteExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + Site site = Site.newBuilder().build(); + client.createSite(parent, site); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateSitesTest() throws Exception { + BatchCreateSitesResponse expectedResponse = + BatchCreateSitesResponse.newBuilder().addAllSites(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchCreateSitesResponse actualResponse = client.batchCreateSites(parent, requests); + 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 batchCreateSitesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchCreateSites(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateSitesTest2() throws Exception { + BatchCreateSitesResponse expectedResponse = + BatchCreateSitesResponse.newBuilder().addAllSites(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchCreateSitesResponse actualResponse = client.batchCreateSites(parent, requests); + 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 batchCreateSitesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchCreateSites(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSiteTest() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString()) + .setUrl("url116079") + .setChildNetworkCode("childNetworkCode-253403521") + .setApprovalStatusUpdateTime(Timestamp.newBuilder().build()) + .addAllDisapprovalReasons(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + Site site = + Site.newBuilder() + .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString()) + .setUrl("url116079") + .setChildNetworkCode("childNetworkCode-253403521") + .setApprovalStatusUpdateTime(Timestamp.newBuilder().build()) + .addAllDisapprovalReasons(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Site actualResponse = client.updateSite(site, updateMask); + 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 updateSiteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Site site = + Site.newBuilder() + .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString()) + .setUrl("url116079") + .setChildNetworkCode("childNetworkCode-253403521") + .setApprovalStatusUpdateTime(Timestamp.newBuilder().build()) + .addAllDisapprovalReasons(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSite(site, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateSitesTest() throws Exception { + BatchUpdateSitesResponse expectedResponse = + BatchUpdateSitesResponse.newBuilder().addAllSites(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchUpdateSitesResponse actualResponse = client.batchUpdateSites(parent, requests); + 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 batchUpdateSitesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchUpdateSites(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateSitesTest2() throws Exception { + BatchUpdateSitesResponse expectedResponse = + BatchUpdateSitesResponse.newBuilder().addAllSites(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchUpdateSitesResponse actualResponse = client.batchUpdateSites(parent, requests); + 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 batchUpdateSitesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchUpdateSites(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateSitesTest() throws Exception { + BatchDeactivateSitesResponse expectedResponse = + BatchDeactivateSitesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchDeactivateSitesResponse actualResponse = client.batchDeactivateSites(parent, names); + 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 batchDeactivateSitesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchDeactivateSites(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateSitesTest2() throws Exception { + BatchDeactivateSitesResponse expectedResponse = + BatchDeactivateSitesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchDeactivateSitesResponse actualResponse = client.batchDeactivateSites(parent, names); + 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 batchDeactivateSitesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchDeactivateSites(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchSubmitSitesForApprovalTest() throws Exception { + BatchSubmitSitesForApprovalResponse expectedResponse = + BatchSubmitSitesForApprovalResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchSubmitSitesForApprovalResponse actualResponse = + client.batchSubmitSitesForApproval(parent, names); + 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 batchSubmitSitesForApprovalExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchSubmitSitesForApproval(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchSubmitSitesForApprovalTest2() throws Exception { + BatchSubmitSitesForApprovalResponse expectedResponse = + BatchSubmitSitesForApprovalResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchSubmitSitesForApprovalResponse actualResponse = + client.batchSubmitSitesForApproval(parent, names); + 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 batchSubmitSitesForApprovalExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchSubmitSitesForApproval(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/TeamServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/TeamServiceClientTest.java new file mode 100644 index 000000000000..70833bc2b863 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/TeamServiceClientTest.java @@ -0,0 +1,789 @@ +/* + * Copyright 2025 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.admanager.v1; + +import static com.google.ads.admanager.v1.TeamServiceClient.ListTeamsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonTeamServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TeamServiceClientTest { + private static MockHttpService mockService; + private static TeamServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTeamServiceStub.getMethodDescriptors(), + TeamServiceSettings.getDefaultEndpoint()); + TeamServiceSettings settings = + TeamServiceSettings.newBuilder() + .setTransportChannelProvider( + TeamServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TeamServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getTeamTest() throws Exception { + Team expectedResponse = + Team.newBuilder() + .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAllCompaniesAccess(true) + .setAllInventoryAccess(true) + .build(); + mockService.addResponse(expectedResponse); + + TeamName name = TeamName.of("[NETWORK_CODE]", "[TEAM]"); + + Team actualResponse = client.getTeam(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 getTeamExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamName name = TeamName.of("[NETWORK_CODE]", "[TEAM]"); + client.getTeam(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTeamTest2() throws Exception { + Team expectedResponse = + Team.newBuilder() + .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAllCompaniesAccess(true) + .setAllInventoryAccess(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-1203/teams/team-1203"; + + Team actualResponse = client.getTeam(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 getTeamExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-1203/teams/team-1203"; + client.getTeam(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTeamsTest() throws Exception { + Team responsesElement = Team.newBuilder().build(); + ListTeamsResponse expectedResponse = + ListTeamsResponse.newBuilder() + .setNextPageToken("") + .addAllTeams(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListTeamsPagedResponse pagedListResponse = client.listTeams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTeamsList().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 listTeamsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listTeams(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTeamsTest2() throws Exception { + Team responsesElement = Team.newBuilder().build(); + ListTeamsResponse expectedResponse = + ListTeamsResponse.newBuilder() + .setNextPageToken("") + .addAllTeams(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListTeamsPagedResponse pagedListResponse = client.listTeams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTeamsList().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 listTeamsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listTeams(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamTest() throws Exception { + Team expectedResponse = + Team.newBuilder() + .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAllCompaniesAccess(true) + .setAllInventoryAccess(true) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Team team = Team.newBuilder().build(); + + Team actualResponse = client.createTeam(parent, team); + 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 createTeamExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Team team = Team.newBuilder().build(); + client.createTeam(parent, team); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamTest2() throws Exception { + Team expectedResponse = + Team.newBuilder() + .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAllCompaniesAccess(true) + .setAllInventoryAccess(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + Team team = Team.newBuilder().build(); + + Team actualResponse = client.createTeam(parent, team); + 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 createTeamExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + Team team = Team.newBuilder().build(); + client.createTeam(parent, team); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateTeamsTest() throws Exception { + BatchCreateTeamsResponse expectedResponse = + BatchCreateTeamsResponse.newBuilder().addAllTeams(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchCreateTeamsResponse actualResponse = client.batchCreateTeams(parent, requests); + 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 batchCreateTeamsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchCreateTeams(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateTeamsTest2() throws Exception { + BatchCreateTeamsResponse expectedResponse = + BatchCreateTeamsResponse.newBuilder().addAllTeams(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchCreateTeamsResponse actualResponse = client.batchCreateTeams(parent, requests); + 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 batchCreateTeamsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchCreateTeams(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTeamTest() throws Exception { + Team expectedResponse = + Team.newBuilder() + .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAllCompaniesAccess(true) + .setAllInventoryAccess(true) + .build(); + mockService.addResponse(expectedResponse); + + Team team = + Team.newBuilder() + .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAllCompaniesAccess(true) + .setAllInventoryAccess(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Team actualResponse = client.updateTeam(team, updateMask); + 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 updateTeamExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Team team = + Team.newBuilder() + .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAllCompaniesAccess(true) + .setAllInventoryAccess(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTeam(team, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateTeamsTest() throws Exception { + BatchUpdateTeamsResponse expectedResponse = + BatchUpdateTeamsResponse.newBuilder().addAllTeams(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchUpdateTeamsResponse actualResponse = client.batchUpdateTeams(parent, requests); + 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 batchUpdateTeamsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchUpdateTeams(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateTeamsTest2() throws Exception { + BatchUpdateTeamsResponse expectedResponse = + BatchUpdateTeamsResponse.newBuilder().addAllTeams(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchUpdateTeamsResponse actualResponse = client.batchUpdateTeams(parent, requests); + 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 batchUpdateTeamsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchUpdateTeams(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivateTeamsTest() throws Exception { + BatchActivateTeamsResponse expectedResponse = BatchActivateTeamsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchActivateTeamsResponse actualResponse = client.batchActivateTeams(parent, names); + 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 batchActivateTeamsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchActivateTeams(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivateTeamsTest2() throws Exception { + BatchActivateTeamsResponse expectedResponse = BatchActivateTeamsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchActivateTeamsResponse actualResponse = client.batchActivateTeams(parent, names); + 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 batchActivateTeamsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchActivateTeams(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateTeamsTest() throws Exception { + BatchDeactivateTeamsResponse expectedResponse = + BatchDeactivateTeamsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchDeactivateTeamsResponse actualResponse = client.batchDeactivateTeams(parent, names); + 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 batchDeactivateTeamsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchDeactivateTeams(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateTeamsTest2() throws Exception { + BatchDeactivateTeamsResponse expectedResponse = + BatchDeactivateTeamsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchDeactivateTeamsResponse actualResponse = client.batchDeactivateTeams(parent, names); + 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 batchDeactivateTeamsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchDeactivateTeams(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAd.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAd.java new file mode 100644 index 000000000000..2f25af3b9702 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAd.java @@ -0,0 +1,1456 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *

    + * Represents an ad that can be acted on or viewed in the Ad Review Center.
    + * [AdReviewCenterAd][google.ads.admanager.v1.AdReviewCenterAd].
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.AdReviewCenterAd} + */ +public final class AdReviewCenterAd extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AdReviewCenterAd) + AdReviewCenterAdOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AdReviewCenterAd.newBuilder() to construct. + private AdReviewCenterAd(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdReviewCenterAd() { + name_ = ""; + adReviewCenterAdId_ = ""; + productType_ = 0; + status_ = 0; + previewUrl_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdReviewCenterAd(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdMessagesProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdMessagesProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdReviewCenterAd.class, + com.google.ads.admanager.v1.AdReviewCenterAd.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the AdReviewCenterAd.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * 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. The resource name of the AdReviewCenterAd.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * 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 AD_REVIEW_CENTER_AD_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object adReviewCenterAdId_ = ""; + + /** + * + * + *
    +   * Output only. `AdReviewCenterAd` ID.
    +   * 
    + * + * string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adReviewCenterAdId. + */ + @java.lang.Override + public java.lang.String getAdReviewCenterAdId() { + java.lang.Object ref = adReviewCenterAdId_; + 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(); + adReviewCenterAdId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. `AdReviewCenterAd` ID.
    +   * 
    + * + * string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adReviewCenterAdId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdReviewCenterAdIdBytes() { + java.lang.Object ref = adReviewCenterAdId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adReviewCenterAdId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_FIELD_NUMBER = 3; + private int productType_ = 0; + + /** + * + * + *
    +   * Output only. Specifies the ExchangeSyndicationProduct for this
    +   * AdReviewCenterAd.
    +   * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for productType. + */ + @java.lang.Override + public int getProductTypeValue() { + return productType_; + } + + /** + * + * + *
    +   * Output only. Specifies the ExchangeSyndicationProduct for this
    +   * AdReviewCenterAd.
    +   * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The productType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + getProductType() { + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct result = + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .forNumber(productType_); + return result == null + ? com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .UNRECOGNIZED + : result; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_ = 0; + + /** + * + * + *
    +   * The status of the AdReviewCenterAd.
    +   * 
    + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +   * The status of the AdReviewCenterAd.
    +   * 
    + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus getStatus() { + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus result = + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus.UNRECOGNIZED + : result; + } + + public static final int PREVIEW_URL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object previewUrl_ = ""; + + /** + * + * + *
    +   * Output only. The preview URL that can be embedded or accessed directly
    +   * which will present the rendered contents of the ad. (This URL expires 72
    +   * hours after being retrieved.).
    +   * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the previewUrl field is set. + */ + @java.lang.Override + public boolean hasPreviewUrl() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The preview URL that can be embedded or accessed directly
    +   * which will present the rendered contents of the ad. (This URL expires 72
    +   * hours after being retrieved.).
    +   * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewUrl. + */ + @java.lang.Override + public java.lang.String getPreviewUrl() { + java.lang.Object ref = previewUrl_; + 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(); + previewUrl_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The preview URL that can be embedded or accessed directly
    +   * which will present the rendered contents of the ad. (This URL expires 72
    +   * hours after being retrieved.).
    +   * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewUrlBytes() { + java.lang.Object ref = previewUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewUrl_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adReviewCenterAdId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, adReviewCenterAdId_); + } + if (productType_ + != com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, productType_); + } + if (status_ + != com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus + .AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, previewUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adReviewCenterAdId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, adReviewCenterAdId_); + } + if (productType_ + != com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, productType_); + } + if (status_ + != com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus + .AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, previewUrl_); + } + 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.admanager.v1.AdReviewCenterAd)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.AdReviewCenterAd other = + (com.google.ads.admanager.v1.AdReviewCenterAd) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAdReviewCenterAdId().equals(other.getAdReviewCenterAdId())) return false; + if (productType_ != other.productType_) return false; + if (status_ != other.status_) return false; + if (hasPreviewUrl() != other.hasPreviewUrl()) return false; + if (hasPreviewUrl()) { + if (!getPreviewUrl().equals(other.getPreviewUrl())) 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) + AD_REVIEW_CENTER_AD_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdReviewCenterAdId().hashCode(); + hash = (37 * hash) + PRODUCT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + productType_; + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (hasPreviewUrl()) { + hash = (37 * hash) + PREVIEW_URL_FIELD_NUMBER; + hash = (53 * hash) + getPreviewUrl().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd 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.admanager.v1.AdReviewCenterAd parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd 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.admanager.v1.AdReviewCenterAd parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.AdReviewCenterAd prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents an ad that can be acted on or viewed in the Ad Review Center.
    +   * [AdReviewCenterAd][google.ads.admanager.v1.AdReviewCenterAd].
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.AdReviewCenterAd} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.AdReviewCenterAd) + com.google.ads.admanager.v1.AdReviewCenterAdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdMessagesProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAd_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdMessagesProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAd_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdReviewCenterAd.class, + com.google.ads.admanager.v1.AdReviewCenterAd.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.AdReviewCenterAd.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + adReviewCenterAdId_ = ""; + productType_ = 0; + status_ = 0; + previewUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdReviewCenterAdMessagesProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAd_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAd getDefaultInstanceForType() { + return com.google.ads.admanager.v1.AdReviewCenterAd.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAd build() { + com.google.ads.admanager.v1.AdReviewCenterAd result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAd buildPartial() { + com.google.ads.admanager.v1.AdReviewCenterAd result = + new com.google.ads.admanager.v1.AdReviewCenterAd(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.AdReviewCenterAd result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.adReviewCenterAdId_ = adReviewCenterAdId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.productType_ = productType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.previewUrl_ = previewUrl_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.AdReviewCenterAd) { + return mergeFrom((com.google.ads.admanager.v1.AdReviewCenterAd) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.AdReviewCenterAd other) { + if (other == com.google.ads.admanager.v1.AdReviewCenterAd.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAdReviewCenterAdId().isEmpty()) { + adReviewCenterAdId_ = other.adReviewCenterAdId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.productType_ != 0) { + setProductTypeValue(other.getProductTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.hasPreviewUrl()) { + previewUrl_ = other.previewUrl_; + bitField0_ |= 0x00000010; + 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: + { + adReviewCenterAdId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + productType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + previewUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 name_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the AdReviewCenterAd.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * 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. The resource name of the AdReviewCenterAd.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * 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. The resource name of the AdReviewCenterAd.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the AdReviewCenterAd.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the AdReviewCenterAd.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object adReviewCenterAdId_ = ""; + + /** + * + * + *
    +     * Output only. `AdReviewCenterAd` ID.
    +     * 
    + * + * string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adReviewCenterAdId. + */ + public java.lang.String getAdReviewCenterAdId() { + java.lang.Object ref = adReviewCenterAdId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adReviewCenterAdId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. `AdReviewCenterAd` ID.
    +     * 
    + * + * string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adReviewCenterAdId. + */ + public com.google.protobuf.ByteString getAdReviewCenterAdIdBytes() { + java.lang.Object ref = adReviewCenterAdId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adReviewCenterAdId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. `AdReviewCenterAd` ID.
    +     * 
    + * + * string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The adReviewCenterAdId to set. + * @return This builder for chaining. + */ + public Builder setAdReviewCenterAdId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adReviewCenterAdId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. `AdReviewCenterAd` ID.
    +     * 
    + * + * string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdReviewCenterAdId() { + adReviewCenterAdId_ = getDefaultInstance().getAdReviewCenterAdId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. `AdReviewCenterAd` ID.
    +     * 
    + * + * string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for adReviewCenterAdId to set. + * @return This builder for chaining. + */ + public Builder setAdReviewCenterAdIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adReviewCenterAdId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int productType_ = 0; + + /** + * + * + *
    +     * Output only. Specifies the ExchangeSyndicationProduct for this
    +     * AdReviewCenterAd.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for productType. + */ + @java.lang.Override + public int getProductTypeValue() { + return productType_; + } + + /** + * + * + *
    +     * Output only. Specifies the ExchangeSyndicationProduct for this
    +     * AdReviewCenterAd.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for productType to set. + * @return This builder for chaining. + */ + public Builder setProductTypeValue(int value) { + productType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Specifies the ExchangeSyndicationProduct for this
    +     * AdReviewCenterAd.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The productType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + getProductType() { + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct result = + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .forNumber(productType_); + return result == null + ? com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. Specifies the ExchangeSyndicationProduct for this
    +     * AdReviewCenterAd.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The productType to set. + * @return This builder for chaining. + */ + public Builder setProductType( + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + productType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Specifies the ExchangeSyndicationProduct for this
    +     * AdReviewCenterAd.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProductType() { + bitField0_ = (bitField0_ & ~0x00000004); + productType_ = 0; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
    +     * The status of the AdReviewCenterAd.
    +     * 
    + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +     * The status of the AdReviewCenterAd.
    +     * 
    + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The status of the AdReviewCenterAd.
    +     * 
    + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus + getStatus() { + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus result = + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * The status of the AdReviewCenterAd.
    +     * 
    + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The status of the AdReviewCenterAd.
    +     * 
    + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object previewUrl_ = ""; + + /** + * + * + *
    +     * Output only. The preview URL that can be embedded or accessed directly
    +     * which will present the rendered contents of the ad. (This URL expires 72
    +     * hours after being retrieved.).
    +     * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the previewUrl field is set. + */ + public boolean hasPreviewUrl() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Output only. The preview URL that can be embedded or accessed directly
    +     * which will present the rendered contents of the ad. (This URL expires 72
    +     * hours after being retrieved.).
    +     * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewUrl. + */ + public java.lang.String getPreviewUrl() { + java.lang.Object ref = previewUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The preview URL that can be embedded or accessed directly
    +     * which will present the rendered contents of the ad. (This URL expires 72
    +     * hours after being retrieved.).
    +     * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewUrl. + */ + public com.google.protobuf.ByteString getPreviewUrlBytes() { + java.lang.Object ref = previewUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The preview URL that can be embedded or accessed directly
    +     * which will present the rendered contents of the ad. (This URL expires 72
    +     * hours after being retrieved.).
    +     * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The previewUrl to set. + * @return This builder for chaining. + */ + public Builder setPreviewUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + previewUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The preview URL that can be embedded or accessed directly
    +     * which will present the rendered contents of the ad. (This URL expires 72
    +     * hours after being retrieved.).
    +     * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPreviewUrl() { + previewUrl_ = getDefaultInstance().getPreviewUrl(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The preview URL that can be embedded or accessed directly
    +     * which will present the rendered contents of the ad. (This URL expires 72
    +     * hours after being retrieved.).
    +     * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for previewUrl to set. + * @return This builder for chaining. + */ + public Builder setPreviewUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previewUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.AdReviewCenterAd) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.AdReviewCenterAd) + private static final com.google.ads.admanager.v1.AdReviewCenterAd DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.AdReviewCenterAd(); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAd getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdReviewCenterAd 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.admanager.v1.AdReviewCenterAd getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdEnumsProto.java new file mode 100644 index 000000000000..9c32e8a56fe2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdEnumsProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class AdReviewCenterAdEnumsProto { + private AdReviewCenterAdEnumsProto() {} + + 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_admanager_v1_AdReviewCenterAdStatusEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_AdReviewCenterAdStatusEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/ads/admanager/v1/ad_review_cent" + + "er_ad_enums.proto\022\027google.ads.admanager." + + "v1\"\214\001\n\032AdReviewCenterAdStatusEnum\"n\n\026AdR" + + "eviewCenterAdStatus\022*\n&AD_REVIEW_CENTER_" + + "AD_STATUS_UNSPECIFIED\020\000\022\013\n\007ALLOWED\020\001\022\013\n\007" + + "BLOCKED\020\002\022\016\n\nUNREVIEWED\020\003B\316\001\n\033com.google" + + ".ads.admanager.v1B\032AdReviewCenterAdEnums" + + "ProtoP\001Z@google.golang.org/genproto/goog" + + "leapis/ads/admanager/v1;admanager\252\002\027Goog" + + "le.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManag" + + "er\\V1\352\002\032Google::Ads::AdManager::V1b\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_AdReviewCenterAdStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_AdReviewCenterAdStatusEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_AdReviewCenterAdStatusEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdMessagesProto.java new file mode 100644 index 000000000000..8f3cc684e539 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdMessagesProto.java @@ -0,0 +1,97 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class AdReviewCenterAdMessagesProto { + private AdReviewCenterAdMessagesProto() {} + + 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_admanager_v1_AdReviewCenterAd_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_AdReviewCenterAd_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/admanager/v1/ad_review_center_ad_messages.proto\022\027google.ads.admanag" + + "er.v1\0327google/ads/admanager/v1/ad_review_center_ad_enums.proto\032?google/ads/adman" + + "ager/v1/exchange_syndication_product_enu" + + "m.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\376\003\n" + + "\020AdReviewCenterAd\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022#\n" + + "\026ad_review_center_ad_id\030\002 \001(\tB\003\340A\003\022m\n" + + "\014product_type\030\003 \001(\0162R.google.ads.admanager.v1.Exchang" + + "eSyndicationProductEnum.ExchangeSyndicationProductB\003\340A\003\022Z\n" + + "\006status\030\004 \001(\0162J.google" + + ".ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus\022\035\n" + + "\013preview_url\030\005 \001(\tB\003\340A\003H\000\210\001\001:\267\001\352A\263\001\n" + + ")admanager.googleapis.com/AdReviewCenterAd\022anetworks/{" + + "network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_cen" + + "ter_ad}*\021adReviewCenterAds2\020adReviewCenterAdB\016\n" + + "\014_preview_urlB\321\001\n" + + "\033com.google.ads.admanager.v1B\035AdReviewCenterAdMessagesPr" + + "otoP\001Z@google.golang.org/genproto/google" + + "apis/ads/admanager/v1;admanager\252\002\027Google" + + ".Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager" + + "\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.AdReviewCenterAdEnumsProto.getDescriptor(), + com.google.ads.admanager.v1.ExchangeSyndicationProductEnumProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_AdReviewCenterAd_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_AdReviewCenterAd_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_AdReviewCenterAd_descriptor, + new java.lang.String[] { + "Name", "AdReviewCenterAdId", "ProductType", "Status", "PreviewUrl", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.AdReviewCenterAdEnumsProto.getDescriptor(); + com.google.ads.admanager.v1.ExchangeSyndicationProductEnumProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdOrBuilder.java new file mode 100644 index 000000000000..629553cebfaa --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface AdReviewCenterAdOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.AdReviewCenterAd) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the AdReviewCenterAd.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the AdReviewCenterAd.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. `AdReviewCenterAd` ID.
    +   * 
    + * + * string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adReviewCenterAdId. + */ + java.lang.String getAdReviewCenterAdId(); + + /** + * + * + *
    +   * Output only. `AdReviewCenterAd` ID.
    +   * 
    + * + * string ad_review_center_ad_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adReviewCenterAdId. + */ + com.google.protobuf.ByteString getAdReviewCenterAdIdBytes(); + + /** + * + * + *
    +   * Output only. Specifies the ExchangeSyndicationProduct for this
    +   * AdReviewCenterAd.
    +   * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for productType. + */ + int getProductTypeValue(); + + /** + * + * + *
    +   * Output only. Specifies the ExchangeSyndicationProduct for this
    +   * AdReviewCenterAd.
    +   * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The productType. + */ + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + getProductType(); + + /** + * + * + *
    +   * The status of the AdReviewCenterAd.
    +   * 
    + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
    +   * The status of the AdReviewCenterAd.
    +   * 
    + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + * + * + * @return The status. + */ + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus getStatus(); + + /** + * + * + *
    +   * Output only. The preview URL that can be embedded or accessed directly
    +   * which will present the rendered contents of the ad. (This URL expires 72
    +   * hours after being retrieved.).
    +   * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the previewUrl field is set. + */ + boolean hasPreviewUrl(); + + /** + * + * + *
    +   * Output only. The preview URL that can be embedded or accessed directly
    +   * which will present the rendered contents of the ad. (This URL expires 72
    +   * hours after being retrieved.).
    +   * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewUrl. + */ + java.lang.String getPreviewUrl(); + + /** + * + * + *
    +   * Output only. The preview URL that can be embedded or accessed directly
    +   * which will present the rendered contents of the ad. (This URL expires 72
    +   * hours after being retrieved.).
    +   * 
    + * + * optional string preview_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewUrl. + */ + com.google.protobuf.ByteString getPreviewUrlBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceProto.java new file mode 100644 index 000000000000..df0f88879ede --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceProto.java @@ -0,0 +1,245 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class AdReviewCenterAdServiceProto { + private AdReviewCenterAdServiceProto() {} + + 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_admanager_v1_SearchAdReviewCenterAdsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_FailedRequestsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_FailedRequestsEntry_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" + + "9google/ads/admanager/v1/ad_review_center_ad_service.proto\022\027google.ads.admanage" + + "r.v1\0327google/ads/admanager/v1/ad_review_center_ad_enums.proto\032:google/ads/admana" + + "ger/v1/ad_review_center_ad_messages.prot" + + "o\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032#go" + + "ogle/longrunning/operations.proto\032\027googl" + + "e/rpc/status.proto\032\032google/type/interval.proto\"\203\003\n" + + "\036SearchAdReviewCenterAdsRequest\022<\n" + + "\006parent\030\001 \001(\tB,\340A\002\372A&\n" + + "$admanager.googleapis.com/WebProperty\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" + + "\006status\030\004 \001(\0162J.google.ads.admanager.v1.AdRev" + + "iewCenterAdStatusEnum.AdReviewCenterAdStatusB\003\340A\002\022#\n" + + "\026ad_review_center_ad_id\030\005 \003(\tB\003\340A\001\0223\n" + + "\017date_time_range\030\006" + + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\030\n" + + "\013search_text\030\007 \003(\tB\003\340A\001\022\035\n" + + "\020buyer_account_id\030\010 \003(\003B\003\340A\001\"\203\001\n" + + "\037SearchAdReviewCenterAdsResponse\022G\n" + + "\024ad_review_center_ads\030\001" + + " \003(\0132).google.ads.admanager.v1.AdReviewCenterAd\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\244\001\n" + + "\"BatchAllowAdReviewCenterAdsRequest\022<\n" + + "\006parent\030\001 \001(\tB,\340A\002\372A&\n" + + "$admanager.googleapis.com/WebProperty\022@\n" + + "\005names\030\002 \003(\tB1\340A\002\372A+\n" + + ")admanager.googleapis.com/AdReviewCenterAd\"%\n" + + "#BatchAllowAdReviewCenterAdsResponse\"\244\001\n" + + "\"BatchBlockAdReviewCenterAdsRequest\022<\n" + + "\006parent\030\001 \001(\tB,\340A\002\372A&\n" + + "$admanager.googleapis.com/WebProperty\022@\n" + + "\005names\030\002 \003(\tB1\340A\002\372A+\n" + + ")admanager.googleapis.com/AdReviewCenterAd\"%\n" + + "#BatchBlockAdReviewCenterAdsResponse\"\343\001\n" + + "\'BatchAdReviewCenterAdsOperationMetadata\022m\n" + + "\017failed_requests\030\001 \003(\0132T.google.ads.admanager.v1.Ba" + + "tchAdReviewCenterAdsOperationMetadata.FailedRequestsEntry\032I\n" + + "\023FailedRequestsEntry\022\013\n" + + "\003key\030\001 \001(\005\022!\n" + + "\005value\030\002 \001(\0132\022.google.rpc.Status:\0028\0012\224\007\n" + + "\027AdReviewCenterAdService\022\337\001\n" + + "\027SearchAdReviewCenterAds\0227.google.ads.admanager.v1.SearchAdReviewCenterAdsRe" + + "quest\0328.google.ads.admanager.v1.SearchAd" + + "ReviewCenterAdsResponse\"Q\332A\006parent\202\323\344\223\002B" + + "\022@/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:search\022\245\002\n" + + "\033BatchAllowAdReviewCenterAds\022;.google.ads.admanage" + + "r.v1.BatchAllowAdReviewCenterAdsRequest\032\035.google.longrunning.Operation\"\251\001\312AN\n" + + "#BatchAllowAdReviewCenterAdsResponse\022\'Batch" + + "AdReviewCenterAdsOperationMetadata\332A\006par" + + "ent\202\323\344\223\002I\"D/v1/{parent=networks/*/webPro" + + "perties/*}/adReviewCenterAds:batchAllow:\001*\022\245\002\n" + + "\033BatchBlockAdReviewCenterAds\022;.google.ads.admanager.v1.BatchBlockAdReviewC" + + "enterAdsRequest\032\035.google.longrunning.Operation\"\251\001\312AN\n" + + "#BatchBlockAdReviewCenterAdsResponse\022\'BatchAdReviewCenterAdsOperati" + + "onMetadata\332A\006parent\202\323\344\223\002I\"D/v1/{parent=n" + + "etworks/*/webProperties/*}/adReviewCente" + + "rAds:batchBlock:\001*\032G\312A\030admanager.googlea" + + "pis.com\322A)https://www.googleapis.com/auth/admanagerB\320\001\n" + + "\033com.google.ads.admanager.v1B\034AdReviewCenterAdServiceProtoP\001Z@goo" + + "gle.golang.org/genproto/googleapis/ads/a" + + "dmanager/v1;admanager\252\002\027Google.Ads.AdMan" + + "ager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Goog" + + "le::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.AdReviewCenterAdEnumsProto.getDescriptor(), + com.google.ads.admanager.v1.AdReviewCenterAdMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsRequest_descriptor, + new java.lang.String[] { + "Parent", + "PageSize", + "PageToken", + "Status", + "AdReviewCenterAdId", + "DateTimeRange", + "SearchText", + "BuyerAccountId", + }); + internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_descriptor, + new java.lang.String[] { + "AdReviewCenterAds", "NextPageToken", + }); + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_descriptor, + new java.lang.String[] { + "FailedRequests", + }); + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_FailedRequestsEntry_descriptor = + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_FailedRequestsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_FailedRequestsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.AdReviewCenterAdEnumsProto.getDescriptor(); + com.google.ads.admanager.v1.AdReviewCenterAdMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.IntervalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdStatusEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdStatusEnum.java new file mode 100644 index 000000000000..43239e35ed87 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdStatusEnum.java @@ -0,0 +1,624 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [AdReviewCenterAdStatus][google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.AdReviewCenterAdStatusEnum} + */ +public final class AdReviewCenterAdStatusEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AdReviewCenterAdStatusEnum) + AdReviewCenterAdStatusEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AdReviewCenterAdStatusEnum.newBuilder() to construct. + private AdReviewCenterAdStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdReviewCenterAdStatusEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdReviewCenterAdStatusEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdEnumsProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAdStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdEnumsProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAdStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.class, + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.Builder.class); + } + + /** + * + * + *
    +   * Specifies the status of an AdReviewCenterAd.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus} + */ + public enum AdReviewCenterAdStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Not specified value
    +     * 
    + * + * AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED = 0; + */ + AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED(0), + /** + * + * + *
    +     * This ad has been explicitly allowed to serve.
    +     * 
    + * + * ALLOWED = 1; + */ + ALLOWED(1), + /** + * + * + *
    +     * This ad has been explicitly blocked from serving.
    +     * 
    + * + * BLOCKED = 2; + */ + BLOCKED(2), + /** + * + * + *
    +     * This ad is allowed to serve by default and has not been reviewed.
    +     * 
    + * + * UNREVIEWED = 3; + */ + UNREVIEWED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Not specified value
    +     * 
    + * + * AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED = 0; + */ + public static final int AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * This ad has been explicitly allowed to serve.
    +     * 
    + * + * ALLOWED = 1; + */ + public static final int ALLOWED_VALUE = 1; + + /** + * + * + *
    +     * This ad has been explicitly blocked from serving.
    +     * 
    + * + * BLOCKED = 2; + */ + public static final int BLOCKED_VALUE = 2; + + /** + * + * + *
    +     * This ad is allowed to serve by default and has not been reviewed.
    +     * 
    + * + * UNREVIEWED = 3; + */ + public static final int UNREVIEWED_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 AdReviewCenterAdStatus 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 AdReviewCenterAdStatus forNumber(int value) { + switch (value) { + case 0: + return AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED; + case 1: + return ALLOWED; + case 2: + return BLOCKED; + case 3: + return UNREVIEWED; + 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 AdReviewCenterAdStatus findValueByNumber(int number) { + return AdReviewCenterAdStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AdReviewCenterAdStatus[] VALUES = values(); + + public static AdReviewCenterAdStatus 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 AdReviewCenterAdStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus) + } + + 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.admanager.v1.AdReviewCenterAdStatusEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum other = + (com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum) 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.admanager.v1.AdReviewCenterAdStatusEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum 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.admanager.v1.AdReviewCenterAdStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum 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.admanager.v1.AdReviewCenterAdStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [AdReviewCenterAdStatus][google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.AdReviewCenterAdStatusEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.AdReviewCenterAdStatusEnum) + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdEnumsProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAdStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdEnumsProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAdStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.class, + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.AdReviewCenterAdEnumsProto + .internal_static_google_ads_admanager_v1_AdReviewCenterAdStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum build() { + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum buildPartial() { + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum result = + new com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum) { + return mergeFrom((com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum other) { + if (other == com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.AdReviewCenterAdStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.AdReviewCenterAdStatusEnum) + private static final com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum(); + } + + public static com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdReviewCenterAdStatusEnum 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.admanager.v1.AdReviewCenterAdStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdStatusEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdStatusEnumOrBuilder.java new file mode 100644 index 000000000000..98936d38e1a3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdStatusEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface AdReviewCenterAdStatusEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.AdReviewCenterAdStatusEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java index 99fe4e12c9e4..1161afac33dd 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java @@ -124,26 +124,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_refresh_delayB\022\n" + "\020_smart_size_modeB\032\n" + "\030_applied_adsense_enabledB\034\n" - + "\032_effective_adsense_enabled\"\316\001\n\n" - + "AdUnitSize\0220\n" - + "\004size\030\001 \001(\0132\035.google.ads.admanager.v1.SizeB\003\340A\002\022[\n" - + "\020environment_type\030\002 \001(\0162<.g" - + "oogle.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentTypeB\003\340A\002\0221\n\n" - + "companions\030\003 \003(\0132\035.google.ads.admanager.v1.Size\"\205\001\n" - + "\014AdUnitParent\022?\n" + + "\032_effective_adsense_enabled\"\366\001\n\n" + + "AdUnitSize\0225\n" + + "\004size\030\001" + + " \001(\0132\035.google.ads.admanager.v1.SizeB\003\340A\002H\000\210\001\001\022`\n" + + "\020environment_type\030\002 \001(" + + "\0162<.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentTypeB\003\340A\002H\001\210\001\001\0221\n\n" + + "companions\030\003 \003(\0132\035.google.ads.admanager.v1.SizeB\007\n" + + "\005_sizeB\023\n" + + "\021_environment_type\"\311\001\n" + + "\014AdUnitParent\022D\n" + "\016parent_ad_unit\030\001 \001(\tB\'\340A\003\372A!\n" - + "\037admanager.googleapis.com/AdUnit\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\003\022\031\n" - + "\014ad_unit_code\030\003 \001(\tB\003\340A\003\"\210\001\n" - + "\021LabelFrequencyCap\0225\n" + + "\037admanager.googleapis.com/AdUnitH\000\210\001\001\022\036\n" + + "\014display_name\030\002 \001(\tB\003\340A\003H\001\210\001\001\022\036\n" + + "\014ad_unit_code\030\003 \001(\tB\003\340A\003H\002\210\001\001B\021\n" + + "\017_parent_ad_unitB\017\n\r" + + "_display_nameB\017\n\r" + + "_ad_unit_code\"\256\001\n" + + "\021LabelFrequencyCap\022:\n" + "\005label\030\001 \001(\tB&\340A\002\372A \n" - + "\036admanager.googleapis.com/Label\022<\n\r" - + "frequency_cap\030\002 \001(\0132%.google.ads.admanager.v1.FrequencyCapB\307\001\n" - + "\033com.google.ads.admanager.v1B\023AdUnitMessagesPro" - + "toP\001Z@google.golang.org/genproto/googlea" - + "pis/ads/admanager/v1;admanager\252\002\027Google." - + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" - + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\036admanager.googleapis.com/LabelH\000\210\001\001\022A\n\r" + + "frequency_cap\030\002" + + " \001(\0132%.google.ads.admanager.v1.FrequencyCapH\001\210\001\001B\010\n" + + "\006_labelB\020\n" + + "\016_frequency_capB\307\001\n" + + "\033com.google.ads.admanager.v1B\023AdUnitMessagesProtoP\001Z@google.g" + + "olang.org/genproto/googleapis/ads/admana" + + "ger/v1;admanager\252\002\027Google.Ads.AdManager." + + "V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::A" + + "ds::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitParent.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitParent.java index 66f1e4965c48..5f08c8e5b8b5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitParent.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitParent.java @@ -66,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.AdUnitParent.Builder.class); } + private int bitField0_; public static final int PARENT_AD_UNIT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -80,7 +81,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * - * string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the parentAdUnit field is set. + */ + @java.lang.Override + public boolean hasParentAdUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The parent of the current AdUnit
    +   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
    +   * 
    + * + * + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The parentAdUnit. @@ -107,7 +127,7 @@ public java.lang.String getParentAdUnit() { * * * - * string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for parentAdUnit. @@ -137,7 +157,23 @@ public com.google.protobuf.ByteString getParentAdUnitBytes() { * Output only. The display name of the parent AdUnit. * * - * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. The display name of the parent AdUnit.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The displayName. */ @@ -161,7 +197,7 @@ public java.lang.String getDisplayName() { * Output only. The display name of the parent AdUnit. * * - * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for displayName. */ @@ -191,7 +227,24 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * purposes of serving the ad. * * - * string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adUnitCode field is set. + */ + @java.lang.Override + public boolean hasAdUnitCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Output only. A string used to uniquely identify the ad unit for the
    +   * purposes of serving the ad.
    +   * 
    + * + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The adUnitCode. */ @@ -216,7 +269,7 @@ public java.lang.String getAdUnitCode() { * purposes of serving the ad. * * - * string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for adUnitCode. */ @@ -247,13 +300,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentAdUnit_)) { + if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parentAdUnit_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adUnitCode_)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, adUnitCode_); } getUnknownFields().writeTo(output); @@ -265,13 +318,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentAdUnit_)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parentAdUnit_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adUnitCode_)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, adUnitCode_); } size += getUnknownFields().getSerializedSize(); @@ -289,9 +342,18 @@ public boolean equals(final java.lang.Object obj) { } com.google.ads.admanager.v1.AdUnitParent other = (com.google.ads.admanager.v1.AdUnitParent) obj; - if (!getParentAdUnit().equals(other.getParentAdUnit())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getAdUnitCode().equals(other.getAdUnitCode())) return false; + if (hasParentAdUnit() != other.hasParentAdUnit()) return false; + if (hasParentAdUnit()) { + if (!getParentAdUnit().equals(other.getParentAdUnit())) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasAdUnitCode() != other.hasAdUnitCode()) return false; + if (hasAdUnitCode()) { + if (!getAdUnitCode().equals(other.getAdUnitCode())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,12 +365,18 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_AD_UNIT_FIELD_NUMBER; - hash = (53 * hash) + getParentAdUnit().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + AD_UNIT_CODE_FIELD_NUMBER; - hash = (53 * hash) + getAdUnitCode().hashCode(); + if (hasParentAdUnit()) { + hash = (37 * hash) + PARENT_AD_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getParentAdUnit().hashCode(); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasAdUnitCode()) { + hash = (37 * hash) + AD_UNIT_CODE_FIELD_NUMBER; + hash = (53 * hash) + getAdUnitCode().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -488,15 +556,20 @@ public com.google.ads.admanager.v1.AdUnitParent buildPartial() { private void buildPartial0(com.google.ads.admanager.v1.AdUnitParent result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.parentAdUnit_ = parentAdUnit_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.adUnitCode_ = adUnitCode_; + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -544,17 +617,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.admanager.v1.AdUnitParent other) { if (other == com.google.ads.admanager.v1.AdUnitParent.getDefaultInstance()) return this; - if (!other.getParentAdUnit().isEmpty()) { + if (other.hasParentAdUnit()) { parentAdUnit_ = other.parentAdUnit_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } - if (!other.getAdUnitCode().isEmpty()) { + if (other.hasAdUnitCode()) { adUnitCode_ = other.adUnitCode_; bitField0_ |= 0x00000004; onChanged(); @@ -633,7 +706,25 @@ public Builder mergeFrom( * * * - * string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the parentAdUnit field is set. + */ + public boolean hasParentAdUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Output only. The parent of the current AdUnit
    +     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
    +     * 
    + * + * + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The parentAdUnit. @@ -659,7 +750,7 @@ public java.lang.String getParentAdUnit() { * * * - * string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for parentAdUnit. @@ -685,7 +776,7 @@ public com.google.protobuf.ByteString getParentAdUnitBytes() { * * * - * string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The parentAdUnit to set. @@ -710,7 +801,7 @@ public Builder setParentAdUnit(java.lang.String value) { * * * - * string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -731,7 +822,7 @@ public Builder clearParentAdUnit() { * * * - * string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The bytes for parentAdUnit to set. @@ -757,7 +848,22 @@ public Builder setParentAdUnitBytes(com.google.protobuf.ByteString value) { * Output only. The display name of the parent AdUnit. * * - * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The display name of the parent AdUnit.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The displayName. */ @@ -780,7 +886,7 @@ public java.lang.String getDisplayName() { * Output only. The display name of the parent AdUnit. * * - * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for displayName. */ @@ -803,7 +909,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Output only. The display name of the parent AdUnit. * * - * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The displayName to set. * @return This builder for chaining. @@ -825,7 +931,7 @@ public Builder setDisplayName(java.lang.String value) { * Output only. The display name of the parent AdUnit. * * - * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -843,7 +949,7 @@ public Builder clearDisplayName() { * Output only. The display name of the parent AdUnit. * * - * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -869,7 +975,23 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * purposes of serving the ad. * * - * string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adUnitCode field is set. + */ + public boolean hasAdUnitCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. A string used to uniquely identify the ad unit for the
    +     * purposes of serving the ad.
    +     * 
    + * + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The adUnitCode. */ @@ -893,7 +1015,7 @@ public java.lang.String getAdUnitCode() { * purposes of serving the ad. * * - * string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for adUnitCode. */ @@ -917,7 +1039,7 @@ public com.google.protobuf.ByteString getAdUnitCodeBytes() { * purposes of serving the ad. * * - * string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The adUnitCode to set. * @return This builder for chaining. @@ -940,7 +1062,7 @@ public Builder setAdUnitCode(java.lang.String value) { * purposes of serving the ad. * * - * string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -959,7 +1081,7 @@ public Builder clearAdUnitCode() { * purposes of serving the ad. * * - * string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for adUnitCode to set. * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitParentOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitParentOrBuilder.java index c41a7ee31b32..eb3175c4e637 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitParentOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitParentOrBuilder.java @@ -33,7 +33,23 @@ public interface AdUnitParentOrBuilder * * * - * string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the parentAdUnit field is set. + */ + boolean hasParentAdUnit(); + + /** + * + * + *
    +   * Output only. The parent of the current AdUnit
    +   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
    +   * 
    + * + * + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The parentAdUnit. @@ -49,7 +65,7 @@ public interface AdUnitParentOrBuilder * * * - * string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for parentAdUnit. @@ -63,7 +79,20 @@ public interface AdUnitParentOrBuilder * Output only. The display name of the parent AdUnit. * * - * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Output only. The display name of the parent AdUnit.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The displayName. */ @@ -76,7 +105,7 @@ public interface AdUnitParentOrBuilder * Output only. The display name of the parent AdUnit. * * - * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for displayName. */ @@ -90,7 +119,21 @@ public interface AdUnitParentOrBuilder * purposes of serving the ad. * * - * string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adUnitCode field is set. + */ + boolean hasAdUnitCode(); + + /** + * + * + *
    +   * Output only. A string used to uniquely identify the ad unit for the
    +   * purposes of serving the ad.
    +   * 
    + * + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The adUnitCode. */ @@ -104,7 +147,7 @@ public interface AdUnitParentOrBuilder * purposes of serving the ad. * * - * string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for adUnitCode. */ diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitSize.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitSize.java index e1a811da16a8..970b048a323a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitSize.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitSize.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the size field is set. */ @@ -92,7 +94,9 @@ public boolean hasSize() { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The size. */ @@ -108,7 +112,9 @@ public com.google.ads.admanager.v1.Size getSize() { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.ads.admanager.v1.SizeOrBuilder getSizeOrBuilder() { @@ -126,7 +132,25 @@ public com.google.ads.admanager.v1.SizeOrBuilder getSizeOrBuilder() { * * * - * .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the environmentType field is set. + */ + @java.lang.Override + public boolean hasEnvironmentType() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. The EnvironmentType of the AdUnit
    +   * 
    + * + * + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for environmentType. @@ -144,7 +168,7 @@ public int getEnvironmentTypeValue() { * * * - * .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The environmentType. @@ -261,10 +285,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSize()); } - if (environmentType_ - != com.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType - .ENVIRONMENT_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, environmentType_); } for (int i = 0; i < companions_.size(); i++) { @@ -282,10 +303,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSize()); } - if (environmentType_ - != com.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType - .ENVIRONMENT_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, environmentType_); } for (int i = 0; i < companions_.size(); i++) { @@ -310,7 +328,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSize()) { if (!getSize().equals(other.getSize())) return false; } - if (environmentType_ != other.environmentType_) return false; + if (hasEnvironmentType() != other.hasEnvironmentType()) return false; + if (hasEnvironmentType()) { + if (environmentType_ != other.environmentType_) return false; + } if (!getCompanionsList().equals(other.getCompanionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -327,8 +348,10 @@ public int hashCode() { hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + getSize().hashCode(); } - hash = (37 * hash) + ENVIRONMENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + environmentType_; + if (hasEnvironmentType()) { + hash = (37 * hash) + ENVIRONMENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + environmentType_; + } if (getCompanionsCount() > 0) { hash = (37 * hash) + COMPANIONS_FIELD_NUMBER; hash = (53 * hash) + getCompanionsList().hashCode(); @@ -552,6 +575,7 @@ private void buildPartial0(com.google.ads.admanager.v1.AdUnitSize result) { } if (((from_bitField0_ & 0x00000002) != 0)) { result.environmentType_ = environmentType_; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -604,8 +628,8 @@ public Builder mergeFrom(com.google.ads.admanager.v1.AdUnitSize other) { if (other.hasSize()) { mergeSize(other.getSize()); } - if (other.environmentType_ != 0) { - setEnvironmentTypeValue(other.getEnvironmentTypeValue()); + if (other.hasEnvironmentType()) { + setEnvironmentType(other.getEnvironmentType()); } if (companionsBuilder_ == null) { if (!other.companions_.isEmpty()) { @@ -717,7 +741,8 @@ public Builder mergeFrom( * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the size field is set. @@ -733,7 +758,8 @@ public boolean hasSize() { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return The size. @@ -753,7 +779,8 @@ public com.google.ads.admanager.v1.Size getSize() { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setSize(com.google.ads.admanager.v1.Size value) { @@ -777,7 +804,8 @@ public Builder setSize(com.google.ads.admanager.v1.Size value) { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setSize(com.google.ads.admanager.v1.Size.Builder builderForValue) { @@ -798,7 +826,8 @@ public Builder setSize(com.google.ads.admanager.v1.Size.Builder builderForValue) * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeSize(com.google.ads.admanager.v1.Size value) { @@ -827,7 +856,8 @@ public Builder mergeSize(com.google.ads.admanager.v1.Size value) { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearSize() { @@ -848,7 +878,8 @@ public Builder clearSize() { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.ads.admanager.v1.Size.Builder getSizeBuilder() { @@ -864,7 +895,8 @@ public com.google.ads.admanager.v1.Size.Builder getSizeBuilder() { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.ads.admanager.v1.SizeOrBuilder getSizeOrBuilder() { @@ -882,7 +914,8 @@ public com.google.ads.admanager.v1.SizeOrBuilder getSizeOrBuilder() { * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -912,7 +945,25 @@ public com.google.ads.admanager.v1.SizeOrBuilder getSizeOrBuilder() { * * * - * .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the environmentType field is set. + */ + @java.lang.Override + public boolean hasEnvironmentType() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The EnvironmentType of the AdUnit
    +     * 
    + * + * + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for environmentType. @@ -930,7 +981,7 @@ public int getEnvironmentTypeValue() { * * * - * .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for environmentType to set. @@ -951,7 +1002,7 @@ public Builder setEnvironmentTypeValue(int value) { * * * - * .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The environmentType. @@ -974,7 +1025,7 @@ public com.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType getEnviro * * * - * .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The environmentType to set. @@ -999,7 +1050,7 @@ public Builder setEnvironmentType( * * * - * .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitSizeOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitSizeOrBuilder.java index 211b5fe04138..11d75fd0d4d3 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitSizeOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitSizeOrBuilder.java @@ -31,7 +31,9 @@ public interface AdUnitSizeOrBuilder * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the size field is set. */ @@ -44,7 +46,9 @@ public interface AdUnitSizeOrBuilder * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The size. */ @@ -57,7 +61,9 @@ public interface AdUnitSizeOrBuilder * Required. The Size of the AdUnit. * * - * .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * optional .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.ads.admanager.v1.SizeOrBuilder getSizeOrBuilder(); @@ -69,7 +75,22 @@ public interface AdUnitSizeOrBuilder * * * - * .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the environmentType field is set. + */ + boolean hasEnvironmentType(); + + /** + * + * + *
    +   * Required. The EnvironmentType of the AdUnit
    +   * 
    + * + * + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for environmentType. @@ -84,7 +105,7 @@ public interface AdUnitSizeOrBuilder * * * - * .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The environmentType. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Application.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Application.java new file mode 100644 index 000000000000..83d472d3d317 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Application.java @@ -0,0 +1,879 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * An application that has been added to or "claimed" by the network to be used
    + * for targeting purposes. These mobile apps can come from various app stores.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.Application} + */ +public final class Application extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Application) + ApplicationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Application.newBuilder() to construct. + private Application(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Application() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Application(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ApplicationMessagesProto + .internal_static_google_ads_admanager_v1_Application_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ApplicationMessagesProto + .internal_static_google_ads_admanager_v1_Application_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Application.class, + com.google.ads.admanager.v1.Application.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `Application`.
    +   * Format: `networks/{network_code}/applications/{application_id}`
    +   * 
    + * + * 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. The resource name of the `Application`.
    +   * Format: `networks/{network_code}/applications/{application_id}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Optional. The display name of the application. This attribute is required
    +   * and has a maximum length of 80 characters.
    +   * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The display name of the application. This attribute is required
    +   * and has a maximum length of 80 characters.
    +   * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The display name of the application. This attribute is required
    +   * and has a maximum length of 80 characters.
    +   * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } + 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.admanager.v1.Application)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.Application other = (com.google.ads.admanager.v1.Application) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.Application parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Application 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.admanager.v1.Application parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Application 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.admanager.v1.Application parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Application parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Application parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Application parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Application parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Application parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Application parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Application parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.Application prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * An application that has been added to or "claimed" by the network to be used
    +   * for targeting purposes. These mobile apps can come from various app stores.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.Application} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Application) + com.google.ads.admanager.v1.ApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ApplicationMessagesProto + .internal_static_google_ads_admanager_v1_Application_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ApplicationMessagesProto + .internal_static_google_ads_admanager_v1_Application_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Application.class, + com.google.ads.admanager.v1.Application.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.Application.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ApplicationMessagesProto + .internal_static_google_ads_admanager_v1_Application_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Application getDefaultInstanceForType() { + return com.google.ads.admanager.v1.Application.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.Application build() { + com.google.ads.admanager.v1.Application result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Application buildPartial() { + com.google.ads.admanager.v1.Application result = + new com.google.ads.admanager.v1.Application(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.Application result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.Application) { + return mergeFrom((com.google.ads.admanager.v1.Application) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.Application other) { + if (other == com.google.ads.admanager.v1.Application.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + 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 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `Application`.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * 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. The resource name of the `Application`.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * 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. The resource name of the `Application`.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Application`.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Application`.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Optional. The display name of the application. This attribute is required
    +     * and has a maximum length of 80 characters.
    +     * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. The display name of the application. This attribute is required
    +     * and has a maximum length of 80 characters.
    +     * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The display name of the application. This attribute is required
    +     * and has a maximum length of 80 characters.
    +     * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The display name of the application. This attribute is required
    +     * and has a maximum length of 80 characters.
    +     * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The display name of the application. This attribute is required
    +     * and has a maximum length of 80 characters.
    +     * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The display name of the application. This attribute is required
    +     * and has a maximum length of 80 characters.
    +     * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Application) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Application) + private static final com.google.ads.admanager.v1.Application DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Application(); + } + + public static com.google.ads.admanager.v1.Application getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Application 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.admanager.v1.Application getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationMessagesProto.java new file mode 100644 index 000000000000..02db15409816 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationMessagesProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ApplicationMessagesProto { + private ApplicationMessagesProto() {} + + 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_admanager_v1_Application_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Application_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" + + "2google/ads/admanager/v1/application_me" + + "ssages.proto\022\027google.ads.admanager.v1\032\037g" + + "oogle/api/field_behavior.proto\032\031google/api/resource.proto\"\313\001\n" + + "\013Application\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\004 \001(\tB\003\340A\001H\000\210\001\001:x\352Au\n" + + "$admanager.googleapis.com/Application\0222networks/{network_code}/applica" + + "tions/{application}*\014applications2\013applicationB\017\n\r" + + "_display_nameB\314\001\n" + + "\033com.google.ads.admanager.v1B\030ApplicationMessagesProt" + + "oP\001Z@google.golang.org/genproto/googleap" + + "is/ads/admanager/v1;admanager\252\002\027Google.A" + + "ds.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V" + + "1\352\002\032Google::Ads::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_Application_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_Application_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Application_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationName.java new file mode 100644 index 000000000000..023fc369ba76 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationName.java @@ -0,0 +1,193 @@ +/* + * Copyright 2025 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.admanager.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 ApplicationName implements ResourceName { + private static final PathTemplate NETWORK_CODE_APPLICATION = + PathTemplate.createWithoutUrlEncoding("networks/{network_code}/applications/{application}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String application; + + @Deprecated + protected ApplicationName() { + networkCode = null; + application = null; + } + + private ApplicationName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + application = Preconditions.checkNotNull(builder.getApplication()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getApplication() { + return application; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ApplicationName of(String networkCode, String application) { + return newBuilder().setNetworkCode(networkCode).setApplication(application).build(); + } + + public static String format(String networkCode, String application) { + return newBuilder().setNetworkCode(networkCode).setApplication(application).build().toString(); + } + + public static ApplicationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_APPLICATION.validatedMatch( + formattedString, "ApplicationName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("application")); + } + + 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 (ApplicationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_APPLICATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (application != null) { + fieldMapBuilder.put("application", application); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_APPLICATION.instantiate( + "network_code", networkCode, "application", application); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ApplicationName that = ((ApplicationName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.application, that.application); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(application); + return h; + } + + /** Builder for networks/{network_code}/applications/{application}. */ + public static class Builder { + private String networkCode; + private String application; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getApplication() { + return application; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setApplication(String application) { + this.application = application; + return this; + } + + private Builder(ApplicationName applicationName) { + this.networkCode = applicationName.networkCode; + this.application = applicationName.application; + } + + public ApplicationName build() { + return new ApplicationName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationOrBuilder.java new file mode 100644 index 000000000000..99d28d742f23 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ApplicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Application) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `Application`.
    +   * Format: `networks/{network_code}/applications/{application_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `Application`.
    +   * Format: `networks/{network_code}/applications/{application_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. The display name of the application. This attribute is required
    +   * and has a maximum length of 80 characters.
    +   * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Optional. The display name of the application. This attribute is required
    +   * and has a maximum length of 80 characters.
    +   * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Optional. The display name of the application. This attribute is required
    +   * and has a maximum length of 80 characters.
    +   * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationServiceProto.java new file mode 100644 index 000000000000..f6c4b8328660 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ApplicationServiceProto { + private ApplicationServiceProto() {} + + 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_admanager_v1_GetApplicationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetApplicationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListApplicationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListApplicationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListApplicationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListApplicationsResponse_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" + + "1google/ads/admanager/v1/application_se" + + "rvice.proto\022\027google.ads.admanager.v1\0322go" + + "ogle/ads/admanager/v1/application_messag" + + "es.proto\032\034google/api/annotations.proto\032\027" + + "google/api/client.proto\032\037google/api/fiel" + + "d_behavior.proto\032\031google/api/resource.proto\"S\n" + + "\025GetApplicationRequest\022:\n" + + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + + "$admanager.googleapis.com/Application\"\303\001\n" + + "\027ListApplicationsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\203\001\n" + + "\030ListApplicationsResponse\022:\n" + + "\014applications\030\001 \003(\0132$.google.ads.admanager.v1.Application\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\254\003\n" + + "\022ApplicationService\022\233\001\n" + + "\016GetApplication\022..google.ads.admanager.v1.GetApplicationRequest\032$.google." + + "ads.admanager.v1.Application\"3\332A\004name\202\323\344" + + "\223\002&\022$/v1/{name=networks/*/applications/*}\022\256\001\n" + + "\020ListApplications\0220.google.ads.admanager.v1.ListApplicationsRequest\0321.googl" + + "e.ads.admanager.v1.ListApplicationsRespo" + + "nse\"5\332A\006parent\202\323\344\223\002&\022$/v1/{parent=networ" + + "ks/*}/applications\032G\312A\030admanager.googlea" + + "pis.com\322A)https://www.googleapis.com/auth/admanagerB\313\001\n" + + "\033com.google.ads.admanager.v1B\027ApplicationServiceProtoP\001Z@google.g" + + "olang.org/genproto/googleapis/ads/admana" + + "ger/v1;admanager\252\002\027Google.Ads.AdManager." + + "V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::A" + + "ds::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ApplicationMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetApplicationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetApplicationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetApplicationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListApplicationsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListApplicationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListApplicationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListApplicationsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListApplicationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListApplicationsResponse_descriptor, + new java.lang.String[] { + "Applications", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.ApplicationMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegment.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegment.java new file mode 100644 index 000000000000..98b330776170 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegment.java @@ -0,0 +1,899 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * The `AudienceSegment` resource.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.AudienceSegment} + */ +public final class AudienceSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AudienceSegment) + AudienceSegmentOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AudienceSegment.newBuilder() to construct. + private AudienceSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceSegment() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceSegment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AudienceSegmentMessagesProto + .internal_static_google_ads_admanager_v1_AudienceSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AudienceSegmentMessagesProto + .internal_static_google_ads_admanager_v1_AudienceSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AudienceSegment.class, + com.google.ads.admanager.v1.AudienceSegment.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `AudienceSegment`.
    +   * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +   * The `audience_segment_id` may have up to 1 of the following suffixes:
    +   *   - `~direct` for directly licensed third-party segments
    +   *   - `~global` for globally licensed third-party segments
    +   * 
    + * + * 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. The resource name of the `AudienceSegment`.
    +   * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +   * The `audience_segment_id` may have up to 1 of the following suffixes:
    +   *   - `~direct` for directly licensed third-party segments
    +   *   - `~global` for globally licensed third-party segments
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Required. Display name of the `AudienceSegment`. The attribute has a
    +   * maximum length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Display name of the `AudienceSegment`. The attribute has a
    +   * maximum length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Display name of the `AudienceSegment`. The attribute has a
    +   * maximum length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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.admanager.v1.AudienceSegment)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.AudienceSegment other = + (com.google.ads.admanager.v1.AudienceSegment) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.AudienceSegment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AudienceSegment 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.admanager.v1.AudienceSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AudienceSegment 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.admanager.v1.AudienceSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AudienceSegment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AudienceSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AudienceSegment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AudienceSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AudienceSegment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AudienceSegment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AudienceSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.AudienceSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * The `AudienceSegment` resource.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.AudienceSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.AudienceSegment) + com.google.ads.admanager.v1.AudienceSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AudienceSegmentMessagesProto + .internal_static_google_ads_admanager_v1_AudienceSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AudienceSegmentMessagesProto + .internal_static_google_ads_admanager_v1_AudienceSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AudienceSegment.class, + com.google.ads.admanager.v1.AudienceSegment.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.AudienceSegment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AudienceSegmentMessagesProto + .internal_static_google_ads_admanager_v1_AudienceSegment_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegment getDefaultInstanceForType() { + return com.google.ads.admanager.v1.AudienceSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegment build() { + com.google.ads.admanager.v1.AudienceSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegment buildPartial() { + com.google.ads.admanager.v1.AudienceSegment result = + new com.google.ads.admanager.v1.AudienceSegment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.AudienceSegment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.AudienceSegment) { + return mergeFrom((com.google.ads.admanager.v1.AudienceSegment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.AudienceSegment other) { + if (other == com.google.ads.admanager.v1.AudienceSegment.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + 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: + { + displayName_ = 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `AudienceSegment`.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * The `audience_segment_id` may have up to 1 of the following suffixes:
    +     *   - `~direct` for directly licensed third-party segments
    +     *   - `~global` for globally licensed third-party segments
    +     * 
    + * + * 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. The resource name of the `AudienceSegment`.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * The `audience_segment_id` may have up to 1 of the following suffixes:
    +     *   - `~direct` for directly licensed third-party segments
    +     *   - `~global` for globally licensed third-party segments
    +     * 
    + * + * 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. The resource name of the `AudienceSegment`.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * The `audience_segment_id` may have up to 1 of the following suffixes:
    +     *   - `~direct` for directly licensed third-party segments
    +     *   - `~global` for globally licensed third-party segments
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `AudienceSegment`.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * The `audience_segment_id` may have up to 1 of the following suffixes:
    +     *   - `~direct` for directly licensed third-party segments
    +     *   - `~global` for globally licensed third-party segments
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `AudienceSegment`.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * The `audience_segment_id` may have up to 1 of the following suffixes:
    +     *   - `~direct` for directly licensed third-party segments
    +     *   - `~global` for globally licensed third-party segments
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Required. Display name of the `AudienceSegment`. The attribute has a
    +     * maximum length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. Display name of the `AudienceSegment`. The attribute has a
    +     * maximum length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Display name of the `AudienceSegment`. The attribute has a
    +     * maximum length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Display name of the `AudienceSegment`. The attribute has a
    +     * maximum length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Display name of the `AudienceSegment`. The attribute has a
    +     * maximum length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Display name of the `AudienceSegment`. The attribute has a
    +     * maximum length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.AudienceSegment) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.AudienceSegment) + private static final com.google.ads.admanager.v1.AudienceSegment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.AudienceSegment(); + } + + public static com.google.ads.admanager.v1.AudienceSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceSegment 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.admanager.v1.AudienceSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentMessagesProto.java new file mode 100644 index 000000000000..65324ea70e0c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentMessagesProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class AudienceSegmentMessagesProto { + private AudienceSegmentMessagesProto() {} + + 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_admanager_v1_AudienceSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_AudienceSegment_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/ads/admanager/v1/audience_segme" + + "nt_messages.proto\022\027google.ads.admanager." + + "v1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\"\346\001\n\017AudienceSegme" + + "nt\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\036\n\014display_name\030\002 " + + "\001(\tB\003\340A\002H\000\210\001\001:\216\001\352A\212\001\n(admanager.googleap" + + "is.com/AudienceSegment\022;networks/{networ" + + "k_code}/audienceSegments/{audience_segme" + + "nt}*\020audienceSegments2\017audienceSegmentB\017" + + "\n\r_display_nameB\320\001\n\033com.google.ads.adman" + + "ager.v1B\034AudienceSegmentMessagesProtoP\001Z" + + "@google.golang.org/genproto/googleapis/a" + + "ds/admanager/v1;admanager\252\002\027Google.Ads.A" + + "dManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032" + + "Google::Ads::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_AudienceSegment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_AudienceSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_AudienceSegment_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentName.java new file mode 100644 index 000000000000..bd04420f1765 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 AudienceSegmentName implements ResourceName { + private static final PathTemplate NETWORK_CODE_AUDIENCE_SEGMENT = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/audienceSegments/{audience_segment}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String audienceSegment; + + @Deprecated + protected AudienceSegmentName() { + networkCode = null; + audienceSegment = null; + } + + private AudienceSegmentName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + audienceSegment = Preconditions.checkNotNull(builder.getAudienceSegment()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getAudienceSegment() { + return audienceSegment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AudienceSegmentName of(String networkCode, String audienceSegment) { + return newBuilder().setNetworkCode(networkCode).setAudienceSegment(audienceSegment).build(); + } + + public static String format(String networkCode, String audienceSegment) { + return newBuilder() + .setNetworkCode(networkCode) + .setAudienceSegment(audienceSegment) + .build() + .toString(); + } + + public static AudienceSegmentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_AUDIENCE_SEGMENT.validatedMatch( + formattedString, "AudienceSegmentName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("audience_segment")); + } + + 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 (AudienceSegmentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_AUDIENCE_SEGMENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (audienceSegment != null) { + fieldMapBuilder.put("audience_segment", audienceSegment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_AUDIENCE_SEGMENT.instantiate( + "network_code", networkCode, "audience_segment", audienceSegment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AudienceSegmentName that = ((AudienceSegmentName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.audienceSegment, that.audienceSegment); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(audienceSegment); + return h; + } + + /** Builder for networks/{network_code}/audienceSegments/{audience_segment}. */ + public static class Builder { + private String networkCode; + private String audienceSegment; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getAudienceSegment() { + return audienceSegment; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setAudienceSegment(String audienceSegment) { + this.audienceSegment = audienceSegment; + return this; + } + + private Builder(AudienceSegmentName audienceSegmentName) { + this.networkCode = audienceSegmentName.networkCode; + this.audienceSegment = audienceSegmentName.audienceSegment; + } + + public AudienceSegmentName build() { + return new AudienceSegmentName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentOrBuilder.java new file mode 100644 index 000000000000..84bd90bd0a49 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface AudienceSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.AudienceSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `AudienceSegment`.
    +   * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +   * The `audience_segment_id` may have up to 1 of the following suffixes:
    +   *   - `~direct` for directly licensed third-party segments
    +   *   - `~global` for globally licensed third-party segments
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `AudienceSegment`.
    +   * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +   * The `audience_segment_id` may have up to 1 of the following suffixes:
    +   *   - `~direct` for directly licensed third-party segments
    +   *   - `~global` for globally licensed third-party segments
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. Display name of the `AudienceSegment`. The attribute has a
    +   * maximum length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Required. Display name of the `AudienceSegment`. The attribute has a
    +   * maximum length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Required. Display name of the `AudienceSegment`. The attribute has a
    +   * maximum length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceProto.java new file mode 100644 index 000000000000..6ea3f4f54fcc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class AudienceSegmentServiceProto { + private AudienceSegmentServiceProto() {} + + 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_admanager_v1_GetAudienceSegmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetAudienceSegmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_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" + + "6google/ads/admanager/v1/audience_segment_service.proto\022\027google.ads.admanager.v" + + "1\0327google/ads/admanager/v1/audience_segm" + + "ent_messages.proto\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/resource.proto\"[\n" + + "\031GetAudienceSegmentRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(admanager.googleapis.com/AudienceSegment\"\307\001\n" + + "\033ListAudienceSegmentsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\220\001\n" + + "\034ListAudienceSegmentsResponse\022C\n" + + "\021audience_segments\030\001" + + " \003(\0132(.google.ads.admanager.v1.AudienceSegment\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\320\003\n" + + "\026AudienceSegmentService\022\253\001\n" + + "\022GetAudienceSegment\0222.google.ads.admanager.v1.GetAudienceSegmentRequest\032(." + + "google.ads.admanager.v1.AudienceSegment\"" + + "7\332A\004name\202\323\344\223\002*\022(/v1/{name=networks/*/audienceSegments/*}\022\276\001\n" + + "\024ListAudienceSegments\0224.google.ads.admanager.v1.ListAudience" + + "SegmentsRequest\0325.google.ads.admanager.v" + + "1.ListAudienceSegmentsResponse\"9\332A\006paren" + + "t\202\323\344\223\002*\022(/v1/{parent=networks/*}/audienc" + + "eSegments\032G\312A\030admanager.googleapis.com\322A" + + ")https://www.googleapis.com/auth/admanagerB\317\001\n" + + "\033com.google.ads.admanager.v1B\033AudienceSegmentServiceProtoP\001Z@google.golang" + + ".org/genproto/googleapis/ads/admanager/v" + + "1;admanager\252\002\027Google.Ads.AdManager.V1\312\002\027" + + "Google\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.AudienceSegmentMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetAudienceSegmentRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetAudienceSegmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetAudienceSegmentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_descriptor, + new java.lang.String[] { + "AudienceSegments", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.AudienceSegmentMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentTargeting.java new file mode 100644 index 000000000000..ed28c2bf7d48 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentTargeting.java @@ -0,0 +1,985 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents targeting for audience segments. The values are combined in a
    + * logical `OR`.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.AudienceSegmentTargeting} + */ +public final class AudienceSegmentTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AudienceSegmentTargeting) + AudienceSegmentTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AudienceSegmentTargeting.newBuilder() to construct. + private AudienceSegmentTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceSegmentTargeting() { + audienceSegments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceSegmentTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AudienceSegmentTargeting.class, + com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder.class); + } + + private int bitField0_; + public static final int NEGATIVE_FIELD_NUMBER = 1; + private boolean negative_ = false; + + /** + * + * + *
    +   * Whether this expression is negatively targeted, meaning it matches
    +   * ad requests that exclude the below values.
    +   * 
    + * + * optional bool negative = 1; + * + * @return Whether the negative field is set. + */ + @java.lang.Override + public boolean hasNegative() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Whether this expression is negatively targeted, meaning it matches
    +   * ad requests that exclude the below values.
    +   * 
    + * + * optional bool negative = 1; + * + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + + public static final int AUDIENCE_SEGMENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList audienceSegments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The targeted audience segments.
    +   *
    +   * This is either the resource name of a first-party audience segment or an
    +   * alias to the effective third-party audience segment. Third-party audience
    +   * segment resource names containing `~direct` or `~global` will be normalized
    +   * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +   * will be normalized to `networks/1234/audienceSegments/4567`.
    +   * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the audienceSegments. + */ + public com.google.protobuf.ProtocolStringList getAudienceSegmentsList() { + return audienceSegments_; + } + + /** + * + * + *
    +   * Optional. The targeted audience segments.
    +   *
    +   * This is either the resource name of a first-party audience segment or an
    +   * alias to the effective third-party audience segment. Third-party audience
    +   * segment resource names containing `~direct` or `~global` will be normalized
    +   * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +   * will be normalized to `networks/1234/audienceSegments/4567`.
    +   * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of audienceSegments. + */ + public int getAudienceSegmentsCount() { + return audienceSegments_.size(); + } + + /** + * + * + *
    +   * Optional. The targeted audience segments.
    +   *
    +   * This is either the resource name of a first-party audience segment or an
    +   * alias to the effective third-party audience segment. Third-party audience
    +   * segment resource names containing `~direct` or `~global` will be normalized
    +   * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +   * will be normalized to `networks/1234/audienceSegments/4567`.
    +   * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The audienceSegments at the given index. + */ + public java.lang.String getAudienceSegments(int index) { + return audienceSegments_.get(index); + } + + /** + * + * + *
    +   * Optional. The targeted audience segments.
    +   *
    +   * This is either the resource name of a first-party audience segment or an
    +   * alias to the effective third-party audience segment. Third-party audience
    +   * segment resource names containing `~direct` or `~global` will be normalized
    +   * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +   * will be normalized to `networks/1234/audienceSegments/4567`.
    +   * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the audienceSegments at the given index. + */ + public com.google.protobuf.ByteString getAudienceSegmentsBytes(int index) { + return audienceSegments_.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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, negative_); + } + for (int i = 0; i < audienceSegments_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, audienceSegments_.getRaw(i)); + } + 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.computeBoolSize(1, negative_); + } + { + int dataSize = 0; + for (int i = 0; i < audienceSegments_.size(); i++) { + dataSize += computeStringSizeNoTag(audienceSegments_.getRaw(i)); + } + size += dataSize; + size += 1 * getAudienceSegmentsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.AudienceSegmentTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.AudienceSegmentTargeting other = + (com.google.ads.admanager.v1.AudienceSegmentTargeting) obj; + + if (hasNegative() != other.hasNegative()) return false; + if (hasNegative()) { + if (getNegative() != other.getNegative()) return false; + } + if (!getAudienceSegmentsList().equals(other.getAudienceSegmentsList())) 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 (hasNegative()) { + hash = (37 * hash) + NEGATIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegative()); + } + if (getAudienceSegmentsCount() > 0) { + hash = (37 * hash) + AUDIENCE_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAudienceSegmentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting 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.admanager.v1.AudienceSegmentTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting 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.admanager.v1.AudienceSegmentTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.AudienceSegmentTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents targeting for audience segments. The values are combined in a
    +   * logical `OR`.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.AudienceSegmentTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.AudienceSegmentTargeting) + com.google.ads.admanager.v1.AudienceSegmentTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AudienceSegmentTargeting.class, + com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.AudienceSegmentTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + negative_ = false; + audienceSegments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegmentTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.AudienceSegmentTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegmentTargeting build() { + com.google.ads.admanager.v1.AudienceSegmentTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegmentTargeting buildPartial() { + com.google.ads.admanager.v1.AudienceSegmentTargeting result = + new com.google.ads.admanager.v1.AudienceSegmentTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.AudienceSegmentTargeting result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.negative_ = negative_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + audienceSegments_.makeImmutable(); + result.audienceSegments_ = audienceSegments_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.AudienceSegmentTargeting) { + return mergeFrom((com.google.ads.admanager.v1.AudienceSegmentTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.AudienceSegmentTargeting other) { + if (other == com.google.ads.admanager.v1.AudienceSegmentTargeting.getDefaultInstance()) + return this; + if (other.hasNegative()) { + setNegative(other.getNegative()); + } + if (!other.audienceSegments_.isEmpty()) { + if (audienceSegments_.isEmpty()) { + audienceSegments_ = other.audienceSegments_; + bitField0_ |= 0x00000002; + } else { + ensureAudienceSegmentsIsMutable(); + audienceSegments_.addAll(other.audienceSegments_); + } + 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 8: + { + negative_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAudienceSegmentsIsMutable(); + audienceSegments_.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 boolean negative_; + + /** + * + * + *
    +     * Whether this expression is negatively targeted, meaning it matches
    +     * ad requests that exclude the below values.
    +     * 
    + * + * optional bool negative = 1; + * + * @return Whether the negative field is set. + */ + @java.lang.Override + public boolean hasNegative() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Whether this expression is negatively targeted, meaning it matches
    +     * ad requests that exclude the below values.
    +     * 
    + * + * optional bool negative = 1; + * + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + + /** + * + * + *
    +     * Whether this expression is negatively targeted, meaning it matches
    +     * ad requests that exclude the below values.
    +     * 
    + * + * optional bool negative = 1; + * + * @param value The negative to set. + * @return This builder for chaining. + */ + public Builder setNegative(boolean value) { + + negative_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Whether this expression is negatively targeted, meaning it matches
    +     * ad requests that exclude the below values.
    +     * 
    + * + * optional bool negative = 1; + * + * @return This builder for chaining. + */ + public Builder clearNegative() { + bitField0_ = (bitField0_ & ~0x00000001); + negative_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList audienceSegments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAudienceSegmentsIsMutable() { + if (!audienceSegments_.isModifiable()) { + audienceSegments_ = new com.google.protobuf.LazyStringArrayList(audienceSegments_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. The targeted audience segments.
    +     *
    +     * This is either the resource name of a first-party audience segment or an
    +     * alias to the effective third-party audience segment. Third-party audience
    +     * segment resource names containing `~direct` or `~global` will be normalized
    +     * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +     * will be normalized to `networks/1234/audienceSegments/4567`.
    +     * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the audienceSegments. + */ + public com.google.protobuf.ProtocolStringList getAudienceSegmentsList() { + audienceSegments_.makeImmutable(); + return audienceSegments_; + } + + /** + * + * + *
    +     * Optional. The targeted audience segments.
    +     *
    +     * This is either the resource name of a first-party audience segment or an
    +     * alias to the effective third-party audience segment. Third-party audience
    +     * segment resource names containing `~direct` or `~global` will be normalized
    +     * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +     * will be normalized to `networks/1234/audienceSegments/4567`.
    +     * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of audienceSegments. + */ + public int getAudienceSegmentsCount() { + return audienceSegments_.size(); + } + + /** + * + * + *
    +     * Optional. The targeted audience segments.
    +     *
    +     * This is either the resource name of a first-party audience segment or an
    +     * alias to the effective third-party audience segment. Third-party audience
    +     * segment resource names containing `~direct` or `~global` will be normalized
    +     * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +     * will be normalized to `networks/1234/audienceSegments/4567`.
    +     * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The audienceSegments at the given index. + */ + public java.lang.String getAudienceSegments(int index) { + return audienceSegments_.get(index); + } + + /** + * + * + *
    +     * Optional. The targeted audience segments.
    +     *
    +     * This is either the resource name of a first-party audience segment or an
    +     * alias to the effective third-party audience segment. Third-party audience
    +     * segment resource names containing `~direct` or `~global` will be normalized
    +     * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +     * will be normalized to `networks/1234/audienceSegments/4567`.
    +     * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the audienceSegments at the given index. + */ + public com.google.protobuf.ByteString getAudienceSegmentsBytes(int index) { + return audienceSegments_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The targeted audience segments.
    +     *
    +     * This is either the resource name of a first-party audience segment or an
    +     * alias to the effective third-party audience segment. Third-party audience
    +     * segment resource names containing `~direct` or `~global` will be normalized
    +     * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +     * will be normalized to `networks/1234/audienceSegments/4567`.
    +     * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The audienceSegments to set. + * @return This builder for chaining. + */ + public Builder setAudienceSegments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudienceSegmentsIsMutable(); + audienceSegments_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The targeted audience segments.
    +     *
    +     * This is either the resource name of a first-party audience segment or an
    +     * alias to the effective third-party audience segment. Third-party audience
    +     * segment resource names containing `~direct` or `~global` will be normalized
    +     * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +     * will be normalized to `networks/1234/audienceSegments/4567`.
    +     * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The audienceSegments to add. + * @return This builder for chaining. + */ + public Builder addAudienceSegments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudienceSegmentsIsMutable(); + audienceSegments_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The targeted audience segments.
    +     *
    +     * This is either the resource name of a first-party audience segment or an
    +     * alias to the effective third-party audience segment. Third-party audience
    +     * segment resource names containing `~direct` or `~global` will be normalized
    +     * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +     * will be normalized to `networks/1234/audienceSegments/4567`.
    +     * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The audienceSegments to add. + * @return This builder for chaining. + */ + public Builder addAllAudienceSegments(java.lang.Iterable values) { + ensureAudienceSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audienceSegments_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The targeted audience segments.
    +     *
    +     * This is either the resource name of a first-party audience segment or an
    +     * alias to the effective third-party audience segment. Third-party audience
    +     * segment resource names containing `~direct` or `~global` will be normalized
    +     * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +     * will be normalized to `networks/1234/audienceSegments/4567`.
    +     * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAudienceSegments() { + audienceSegments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The targeted audience segments.
    +     *
    +     * This is either the resource name of a first-party audience segment or an
    +     * alias to the effective third-party audience segment. Third-party audience
    +     * segment resource names containing `~direct` or `~global` will be normalized
    +     * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +     * will be normalized to `networks/1234/audienceSegments/4567`.
    +     * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the audienceSegments to add. + * @return This builder for chaining. + */ + public Builder addAudienceSegmentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAudienceSegmentsIsMutable(); + audienceSegments_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.AudienceSegmentTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.AudienceSegmentTargeting) + private static final com.google.ads.admanager.v1.AudienceSegmentTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.AudienceSegmentTargeting(); + } + + public static com.google.ads.admanager.v1.AudienceSegmentTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceSegmentTargeting 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.admanager.v1.AudienceSegmentTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentTargetingOrBuilder.java new file mode 100644 index 000000000000..cec2a23fb0b4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentTargetingOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface AudienceSegmentTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.AudienceSegmentTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Whether this expression is negatively targeted, meaning it matches
    +   * ad requests that exclude the below values.
    +   * 
    + * + * optional bool negative = 1; + * + * @return Whether the negative field is set. + */ + boolean hasNegative(); + + /** + * + * + *
    +   * Whether this expression is negatively targeted, meaning it matches
    +   * ad requests that exclude the below values.
    +   * 
    + * + * optional bool negative = 1; + * + * @return The negative. + */ + boolean getNegative(); + + /** + * + * + *
    +   * Optional. The targeted audience segments.
    +   *
    +   * This is either the resource name of a first-party audience segment or an
    +   * alias to the effective third-party audience segment. Third-party audience
    +   * segment resource names containing `~direct` or `~global` will be normalized
    +   * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +   * will be normalized to `networks/1234/audienceSegments/4567`.
    +   * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the audienceSegments. + */ + java.util.List getAudienceSegmentsList(); + + /** + * + * + *
    +   * Optional. The targeted audience segments.
    +   *
    +   * This is either the resource name of a first-party audience segment or an
    +   * alias to the effective third-party audience segment. Third-party audience
    +   * segment resource names containing `~direct` or `~global` will be normalized
    +   * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +   * will be normalized to `networks/1234/audienceSegments/4567`.
    +   * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of audienceSegments. + */ + int getAudienceSegmentsCount(); + + /** + * + * + *
    +   * Optional. The targeted audience segments.
    +   *
    +   * This is either the resource name of a first-party audience segment or an
    +   * alias to the effective third-party audience segment. Third-party audience
    +   * segment resource names containing `~direct` or `~global` will be normalized
    +   * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +   * will be normalized to `networks/1234/audienceSegments/4567`.
    +   * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The audienceSegments at the given index. + */ + java.lang.String getAudienceSegments(int index); + + /** + * + * + *
    +   * Optional. The targeted audience segments.
    +   *
    +   * This is either the resource name of a first-party audience segment or an
    +   * alias to the effective third-party audience segment. Third-party audience
    +   * segment resource names containing `~direct` or `~global` will be normalized
    +   * by the server. For example, `networks/1234/audienceSegments/4567~direct`
    +   * will be normalized to `networks/1234/audienceSegments/4567`.
    +   * 
    + * + * + * repeated string audience_segments = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the audienceSegments at the given index. + */ + com.google.protobuf.ByteString getAudienceSegmentsBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsRequest.java new file mode 100644 index 000000000000..d5715839c126 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsRequest.java @@ -0,0 +1,983 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request message for `BatchActivateCustomFields` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateCustomFieldsRequest} + */ +public final class BatchActivateCustomFieldsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivateCustomFieldsRequest) + BatchActivateCustomFieldsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivateCustomFieldsRequest.newBuilder() to construct. + private BatchActivateCustomFieldsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivateCustomFieldsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivateCustomFieldsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest.class, + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to activate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to activate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to activate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to activate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest other = + (com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest 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.admanager.v1.BatchActivateCustomFieldsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest 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.admanager.v1.BatchActivateCustomFieldsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for `BatchActivateCustomFields` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateCustomFieldsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivateCustomFieldsRequest) + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest.class, + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest build() { + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest buildPartial() { + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest result = + new com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest other) { + if (other + == com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.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.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to activate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to activate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to activate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to activate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to activate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to activate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to activate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to activate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to activate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchActivateCustomFieldsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivateCustomFieldsRequest) + private static final com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest(); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivateCustomFieldsRequest 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.admanager.v1.BatchActivateCustomFieldsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsRequestOrBuilder.java new file mode 100644 index 000000000000..33712b19d5dd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivateCustomFieldsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivateCustomFieldsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to activate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to activate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to activate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to activate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsResponse.java new file mode 100644 index 000000000000..b6c55e94a462 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsResponse.java @@ -0,0 +1,439 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchActivateCustomFields` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateCustomFieldsResponse} + */ +public final class BatchActivateCustomFieldsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivateCustomFieldsResponse) + BatchActivateCustomFieldsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivateCustomFieldsResponse.newBuilder() to construct. + private BatchActivateCustomFieldsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivateCustomFieldsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivateCustomFieldsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse.class, + com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse.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.admanager.v1.BatchActivateCustomFieldsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse other = + (com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse) 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.admanager.v1.BatchActivateCustomFieldsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse 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.admanager.v1.BatchActivateCustomFieldsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse 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.admanager.v1.BatchActivateCustomFieldsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchActivateCustomFields` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateCustomFieldsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivateCustomFieldsResponse) + com.google.ads.admanager.v1.BatchActivateCustomFieldsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse.class, + com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse build() { + com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse buildPartial() { + com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse result = + new com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse other) { + if (other + == com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchActivateCustomFieldsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivateCustomFieldsResponse) + private static final com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse(); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivateCustomFieldsResponse 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.admanager.v1.BatchActivateCustomFieldsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsResponseOrBuilder.java new file mode 100644 index 000000000000..a38a7af550da --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomFieldsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivateCustomFieldsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivateCustomFieldsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsRequest.java new file mode 100644 index 000000000000..09ab813fdab7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsRequest.java @@ -0,0 +1,979 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request message for `BatchActivatePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivatePlacementsRequest} + */ +public final class BatchActivatePlacementsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivatePlacementsRequest) + BatchActivatePlacementsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivatePlacementsRequest.newBuilder() to construct. + private BatchActivatePlacementsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivatePlacementsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivatePlacementsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivatePlacementsRequest.class, + com.google.ads.admanager.v1.BatchActivatePlacementsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to activate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to activate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to activate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to activate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchActivatePlacementsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivatePlacementsRequest other = + (com.google.ads.admanager.v1.BatchActivatePlacementsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest 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.admanager.v1.BatchActivatePlacementsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest 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.admanager.v1.BatchActivatePlacementsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchActivatePlacementsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for `BatchActivatePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivatePlacementsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivatePlacementsRequest) + com.google.ads.admanager.v1.BatchActivatePlacementsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivatePlacementsRequest.class, + com.google.ads.admanager.v1.BatchActivatePlacementsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchActivatePlacementsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivatePlacementsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivatePlacementsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivatePlacementsRequest build() { + com.google.ads.admanager.v1.BatchActivatePlacementsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivatePlacementsRequest buildPartial() { + com.google.ads.admanager.v1.BatchActivatePlacementsRequest result = + new com.google.ads.admanager.v1.BatchActivatePlacementsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchActivatePlacementsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivatePlacementsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchActivatePlacementsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchActivatePlacementsRequest other) { + if (other == com.google.ads.admanager.v1.BatchActivatePlacementsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.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.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to activate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to activate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to activate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to activate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to activate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to activate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to activate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to activate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to activate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchActivatePlacementsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivatePlacementsRequest) + private static final com.google.ads.admanager.v1.BatchActivatePlacementsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivatePlacementsRequest(); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivatePlacementsRequest 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.admanager.v1.BatchActivatePlacementsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsRequestOrBuilder.java new file mode 100644 index 000000000000..2f1cc0caebd9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivatePlacementsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivatePlacementsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to activate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to activate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to activate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to activate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsResponse.java new file mode 100644 index 000000000000..e5d4f3ae8fb7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsResponse.java @@ -0,0 +1,436 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchActivatePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivatePlacementsResponse} + */ +public final class BatchActivatePlacementsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivatePlacementsResponse) + BatchActivatePlacementsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivatePlacementsResponse.newBuilder() to construct. + private BatchActivatePlacementsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivatePlacementsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivatePlacementsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivatePlacementsResponse.class, + com.google.ads.admanager.v1.BatchActivatePlacementsResponse.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.admanager.v1.BatchActivatePlacementsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivatePlacementsResponse other = + (com.google.ads.admanager.v1.BatchActivatePlacementsResponse) 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.admanager.v1.BatchActivatePlacementsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse 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.admanager.v1.BatchActivatePlacementsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse 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.admanager.v1.BatchActivatePlacementsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchActivatePlacementsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchActivatePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivatePlacementsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivatePlacementsResponse) + com.google.ads.admanager.v1.BatchActivatePlacementsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivatePlacementsResponse.class, + com.google.ads.admanager.v1.BatchActivatePlacementsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchActivatePlacementsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivatePlacementsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivatePlacementsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivatePlacementsResponse build() { + com.google.ads.admanager.v1.BatchActivatePlacementsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivatePlacementsResponse buildPartial() { + com.google.ads.admanager.v1.BatchActivatePlacementsResponse result = + new com.google.ads.admanager.v1.BatchActivatePlacementsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivatePlacementsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchActivatePlacementsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchActivatePlacementsResponse other) { + if (other == com.google.ads.admanager.v1.BatchActivatePlacementsResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchActivatePlacementsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivatePlacementsResponse) + private static final com.google.ads.admanager.v1.BatchActivatePlacementsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivatePlacementsResponse(); + } + + public static com.google.ads.admanager.v1.BatchActivatePlacementsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivatePlacementsResponse 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.admanager.v1.BatchActivatePlacementsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsResponseOrBuilder.java new file mode 100644 index 000000000000..f5d333b4c0ee --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivatePlacementsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivatePlacementsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivatePlacementsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsRequest.java new file mode 100644 index 000000000000..95a4bed4dc1e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request message for `BatchActivateTeams` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateTeamsRequest} + */ +public final class BatchActivateTeamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivateTeamsRequest) + BatchActivateTeamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivateTeamsRequest.newBuilder() to construct. + private BatchActivateTeamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivateTeamsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivateTeamsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateTeamsRequest.class, + com.google.ads.admanager.v1.BatchActivateTeamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to activate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to activate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to activate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to activate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchActivateTeamsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivateTeamsRequest other = + (com.google.ads.admanager.v1.BatchActivateTeamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest 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.admanager.v1.BatchActivateTeamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest 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.admanager.v1.BatchActivateTeamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchActivateTeamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for `BatchActivateTeams` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateTeamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivateTeamsRequest) + com.google.ads.admanager.v1.BatchActivateTeamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateTeamsRequest.class, + com.google.ads.admanager.v1.BatchActivateTeamsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchActivateTeamsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateTeamsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivateTeamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateTeamsRequest build() { + com.google.ads.admanager.v1.BatchActivateTeamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateTeamsRequest buildPartial() { + com.google.ads.admanager.v1.BatchActivateTeamsRequest result = + new com.google.ads.admanager.v1.BatchActivateTeamsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchActivateTeamsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivateTeamsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchActivateTeamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchActivateTeamsRequest other) { + if (other == com.google.ads.admanager.v1.BatchActivateTeamsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to activate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to activate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to activate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to activate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to activate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to activate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to activate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to activate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to activate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchActivateTeamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivateTeamsRequest) + private static final com.google.ads.admanager.v1.BatchActivateTeamsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivateTeamsRequest(); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivateTeamsRequest 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.admanager.v1.BatchActivateTeamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsRequestOrBuilder.java new file mode 100644 index 000000000000..e8ae23c2cb6b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivateTeamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivateTeamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to activate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to activate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to activate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to activate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsResponse.java new file mode 100644 index 000000000000..8318dcecc99f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsResponse.java @@ -0,0 +1,435 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchActivateTeams` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateTeamsResponse} + */ +public final class BatchActivateTeamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivateTeamsResponse) + BatchActivateTeamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivateTeamsResponse.newBuilder() to construct. + private BatchActivateTeamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivateTeamsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivateTeamsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateTeamsResponse.class, + com.google.ads.admanager.v1.BatchActivateTeamsResponse.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.admanager.v1.BatchActivateTeamsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivateTeamsResponse other = + (com.google.ads.admanager.v1.BatchActivateTeamsResponse) 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.admanager.v1.BatchActivateTeamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse 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.admanager.v1.BatchActivateTeamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse 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.admanager.v1.BatchActivateTeamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchActivateTeamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchActivateTeams` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateTeamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivateTeamsResponse) + com.google.ads.admanager.v1.BatchActivateTeamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateTeamsResponse.class, + com.google.ads.admanager.v1.BatchActivateTeamsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchActivateTeamsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateTeamsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivateTeamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateTeamsResponse build() { + com.google.ads.admanager.v1.BatchActivateTeamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateTeamsResponse buildPartial() { + com.google.ads.admanager.v1.BatchActivateTeamsResponse result = + new com.google.ads.admanager.v1.BatchActivateTeamsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivateTeamsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchActivateTeamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchActivateTeamsResponse other) { + if (other == com.google.ads.admanager.v1.BatchActivateTeamsResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchActivateTeamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivateTeamsResponse) + private static final com.google.ads.admanager.v1.BatchActivateTeamsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivateTeamsResponse(); + } + + public static com.google.ads.admanager.v1.BatchActivateTeamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivateTeamsResponse 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.admanager.v1.BatchActivateTeamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsResponseOrBuilder.java new file mode 100644 index 000000000000..b187af8b5989 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateTeamsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivateTeamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivateTeamsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAdReviewCenterAdsOperationMetadata.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAdReviewCenterAdsOperationMetadata.java new file mode 100644 index 000000000000..89feb8a9b0d4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAdReviewCenterAdsOperationMetadata.java @@ -0,0 +1,876 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Metadata object for `BatchAllowAdReviewCenterAds` and
    + * `BatchBlockAdReviewCenterAds` methods.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata} + */ +public final class BatchAdReviewCenterAdsOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata) + BatchAdReviewCenterAdsOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchAdReviewCenterAdsOperationMetadata.newBuilder() to construct. + private BatchAdReviewCenterAdsOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchAdReviewCenterAdsOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchAdReviewCenterAdsOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetFailedRequests(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata.class, + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata.Builder.class); + } + + public static final int FAILED_REQUESTS_FIELD_NUMBER = 1; + + private static final class FailedRequestsDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_FailedRequestsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.rpc.Status.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField failedRequests_; + + private com.google.protobuf.MapField + internalGetFailedRequests() { + if (failedRequests_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FailedRequestsDefaultEntryHolder.defaultEntry); + } + return failedRequests_; + } + + public int getFailedRequestsCount() { + return internalGetFailedRequests().getMap().size(); + } + + /** + * + * + *
    +   * The status of each failed request, keyed by the index of the corresponding
    +   * request in the batch request.
    +   * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + @java.lang.Override + public boolean containsFailedRequests(int key) { + + return internalGetFailedRequests().getMap().containsKey(key); + } + + /** Use {@link #getFailedRequestsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFailedRequests() { + return getFailedRequestsMap(); + } + + /** + * + * + *
    +   * The status of each failed request, keyed by the index of the corresponding
    +   * request in the batch request.
    +   * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + @java.lang.Override + public java.util.Map getFailedRequestsMap() { + return internalGetFailedRequests().getMap(); + } + + /** + * + * + *
    +   * The status of each failed request, keyed by the index of the corresponding
    +   * request in the batch request.
    +   * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + @java.lang.Override + public /* nullable */ com.google.rpc.Status getFailedRequestsOrDefault( + int key, + /* nullable */ + com.google.rpc.Status defaultValue) { + + java.util.Map map = + internalGetFailedRequests().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * The status of each failed request, keyed by the index of the corresponding
    +   * request in the batch request.
    +   * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + @java.lang.Override + public com.google.rpc.Status getFailedRequestsOrThrow(int key) { + + java.util.Map map = + internalGetFailedRequests().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo( + output, internalGetFailedRequests(), FailedRequestsDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetFailedRequests().getMap().entrySet()) { + com.google.protobuf.MapEntry failedRequests__ = + FailedRequestsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, failedRequests__); + } + 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.admanager.v1.BatchAdReviewCenterAdsOperationMetadata)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata other = + (com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata) obj; + + if (!internalGetFailedRequests().equals(other.internalGetFailedRequests())) 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 (!internalGetFailedRequests().getMap().isEmpty()) { + hash = (37 * hash) + FAILED_REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFailedRequests().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata 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.admanager.v1.BatchAdReviewCenterAdsOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata 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.admanager.v1.BatchAdReviewCenterAdsOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Metadata object for `BatchAllowAdReviewCenterAds` and
    +   * `BatchBlockAdReviewCenterAds` methods.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata) + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetFailedRequests(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableFailedRequests(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata.class, + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableFailedRequests().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAdReviewCenterAdsOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata build() { + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata buildPartial() { + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata result = + new com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.failedRequests_ = + internalGetFailedRequests().build(FailedRequestsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata) { + return mergeFrom( + (com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata other) { + if (other + == com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata + .getDefaultInstance()) return this; + internalGetMutableFailedRequests().mergeFrom(other.internalGetFailedRequests()); + bitField0_ |= 0x00000001; + 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.protobuf.MapEntry + failedRequests__ = + input.readMessage( + FailedRequestsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFailedRequests() + .ensureBuilderMap() + .put(failedRequests__.getKey(), failedRequests__.getValue()); + 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 static final class FailedRequestsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.Integer, com.google.rpc.StatusOrBuilder, com.google.rpc.Status> { + @java.lang.Override + public com.google.rpc.Status build(com.google.rpc.StatusOrBuilder val) { + if (val instanceof com.google.rpc.Status) { + return (com.google.rpc.Status) val; + } + return ((com.google.rpc.Status.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return FailedRequestsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final FailedRequestsConverter failedRequestsConverter = + new FailedRequestsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.Integer, + com.google.rpc.StatusOrBuilder, + com.google.rpc.Status, + com.google.rpc.Status.Builder> + failedRequests_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.Integer, + com.google.rpc.StatusOrBuilder, + com.google.rpc.Status, + com.google.rpc.Status.Builder> + internalGetFailedRequests() { + if (failedRequests_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(failedRequestsConverter); + } + return failedRequests_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.Integer, + com.google.rpc.StatusOrBuilder, + com.google.rpc.Status, + com.google.rpc.Status.Builder> + internalGetMutableFailedRequests() { + if (failedRequests_ == null) { + failedRequests_ = new com.google.protobuf.MapFieldBuilder<>(failedRequestsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return failedRequests_; + } + + public int getFailedRequestsCount() { + return internalGetFailedRequests().ensureBuilderMap().size(); + } + + /** + * + * + *
    +     * The status of each failed request, keyed by the index of the corresponding
    +     * request in the batch request.
    +     * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + @java.lang.Override + public boolean containsFailedRequests(int key) { + + return internalGetFailedRequests().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getFailedRequestsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFailedRequests() { + return getFailedRequestsMap(); + } + + /** + * + * + *
    +     * The status of each failed request, keyed by the index of the corresponding
    +     * request in the batch request.
    +     * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + @java.lang.Override + public java.util.Map getFailedRequestsMap() { + return internalGetFailedRequests().getImmutableMap(); + } + + /** + * + * + *
    +     * The status of each failed request, keyed by the index of the corresponding
    +     * request in the batch request.
    +     * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + @java.lang.Override + public /* nullable */ com.google.rpc.Status getFailedRequestsOrDefault( + int key, + /* nullable */ + com.google.rpc.Status defaultValue) { + + java.util.Map map = + internalGetMutableFailedRequests().ensureBuilderMap(); + return map.containsKey(key) ? failedRequestsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
    +     * The status of each failed request, keyed by the index of the corresponding
    +     * request in the batch request.
    +     * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + @java.lang.Override + public com.google.rpc.Status getFailedRequestsOrThrow(int key) { + + java.util.Map map = + internalGetMutableFailedRequests().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return failedRequestsConverter.build(map.get(key)); + } + + public Builder clearFailedRequests() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableFailedRequests().clear(); + return this; + } + + /** + * + * + *
    +     * The status of each failed request, keyed by the index of the corresponding
    +     * request in the batch request.
    +     * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + public Builder removeFailedRequests(int key) { + + internalGetMutableFailedRequests().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableFailedRequests() { + bitField0_ |= 0x00000001; + return internalGetMutableFailedRequests().ensureMessageMap(); + } + + /** + * + * + *
    +     * The status of each failed request, keyed by the index of the corresponding
    +     * request in the batch request.
    +     * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + public Builder putFailedRequests(int key, com.google.rpc.Status value) { + + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFailedRequests().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
    +     * The status of each failed request, keyed by the index of the corresponding
    +     * request in the batch request.
    +     * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + public Builder putAllFailedRequests( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableFailedRequests().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
    +     * The status of each failed request, keyed by the index of the corresponding
    +     * request in the batch request.
    +     * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + public com.google.rpc.Status.Builder putFailedRequestsBuilderIfAbsent(int key) { + java.util.Map builderMap = + internalGetMutableFailedRequests().ensureBuilderMap(); + com.google.rpc.StatusOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.rpc.Status.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.rpc.Status) { + entry = ((com.google.rpc.Status) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.rpc.Status.Builder) entry; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata) + private static final com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata(); + } + + public static com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAdReviewCenterAdsOperationMetadata 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.admanager.v1.BatchAdReviewCenterAdsOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAdReviewCenterAdsOperationMetadataOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAdReviewCenterAdsOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..b9c82b9afb6f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAdReviewCenterAdsOperationMetadataOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchAdReviewCenterAdsOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The status of each failed request, keyed by the index of the corresponding
    +   * request in the batch request.
    +   * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + int getFailedRequestsCount(); + + /** + * + * + *
    +   * The status of each failed request, keyed by the index of the corresponding
    +   * request in the batch request.
    +   * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + boolean containsFailedRequests(int key); + + /** Use {@link #getFailedRequestsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFailedRequests(); + + /** + * + * + *
    +   * The status of each failed request, keyed by the index of the corresponding
    +   * request in the batch request.
    +   * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + java.util.Map getFailedRequestsMap(); + + /** + * + * + *
    +   * The status of each failed request, keyed by the index of the corresponding
    +   * request in the batch request.
    +   * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + /* nullable */ + com.google.rpc.Status getFailedRequestsOrDefault( + int key, + /* nullable */ + com.google.rpc.Status defaultValue); + + /** + * + * + *
    +   * The status of each failed request, keyed by the index of the corresponding
    +   * request in the batch request.
    +   * 
    + * + * map<int32, .google.rpc.Status> failed_requests = 1; + */ + com.google.rpc.Status getFailedRequestsOrThrow(int key); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsRequest.java new file mode 100644 index 000000000000..1aa6bad60981 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsRequest.java @@ -0,0 +1,1089 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchAllowAdReviewCenterAds` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest} + */ +public final class BatchAllowAdReviewCenterAdsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest) + BatchAllowAdReviewCenterAdsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchAllowAdReviewCenterAdsRequest.newBuilder() to construct. + private BatchAllowAdReviewCenterAdsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchAllowAdReviewCenterAdsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchAllowAdReviewCenterAdsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest.class, + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest other = + (com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest 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.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest 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.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchAllowAdReviewCenterAds` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest) + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest.class, + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest build() { + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest buildPartial() { + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest result = + new com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest other) { + if (other + == com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The parent, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest) + private static final com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest(); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAllowAdReviewCenterAdsRequest 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.admanager.v1.BatchAllowAdReviewCenterAdsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsRequestOrBuilder.java new file mode 100644 index 000000000000..9d3ef763720b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsRequestOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchAllowAdReviewCenterAdsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to allow.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsResponse.java new file mode 100644 index 000000000000..67bdf60a01f5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsResponse.java @@ -0,0 +1,443 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchAllowAdReviewCenterAds` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse} + */ +public final class BatchAllowAdReviewCenterAdsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse) + BatchAllowAdReviewCenterAdsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchAllowAdReviewCenterAdsResponse.newBuilder() to construct. + private BatchAllowAdReviewCenterAdsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchAllowAdReviewCenterAdsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchAllowAdReviewCenterAdsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse.class, + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse.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.admanager.v1.BatchAllowAdReviewCenterAdsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse other = + (com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse) 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.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse 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.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse 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.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchAllowAdReviewCenterAds` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse) + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse.class, + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchAllowAdReviewCenterAdsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse build() { + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse buildPartial() { + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse result = + new com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse other) { + if (other + == com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse) + private static final com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse(); + } + + public static com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAllowAdReviewCenterAdsResponse 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.admanager.v1.BatchAllowAdReviewCenterAdsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsResponseOrBuilder.java new file mode 100644 index 000000000000..b702baa227fd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchAllowAdReviewCenterAdsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchAllowAdReviewCenterAdsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsRequest.java new file mode 100644 index 000000000000..7eb316611cd8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request message for `BatchArchivePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchArchivePlacementsRequest} + */ +public final class BatchArchivePlacementsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchArchivePlacementsRequest) + BatchArchivePlacementsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchArchivePlacementsRequest.newBuilder() to construct. + private BatchArchivePlacementsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchArchivePlacementsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchArchivePlacementsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchArchivePlacementsRequest.class, + com.google.ads.admanager.v1.BatchArchivePlacementsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to archive.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to archive.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to archive.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to archive.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchArchivePlacementsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchArchivePlacementsRequest other = + (com.google.ads.admanager.v1.BatchArchivePlacementsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest 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.admanager.v1.BatchArchivePlacementsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest 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.admanager.v1.BatchArchivePlacementsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchArchivePlacementsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for `BatchArchivePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchArchivePlacementsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchArchivePlacementsRequest) + com.google.ads.admanager.v1.BatchArchivePlacementsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchArchivePlacementsRequest.class, + com.google.ads.admanager.v1.BatchArchivePlacementsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchArchivePlacementsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchivePlacementsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchArchivePlacementsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchivePlacementsRequest build() { + com.google.ads.admanager.v1.BatchArchivePlacementsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchivePlacementsRequest buildPartial() { + com.google.ads.admanager.v1.BatchArchivePlacementsRequest result = + new com.google.ads.admanager.v1.BatchArchivePlacementsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchArchivePlacementsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchArchivePlacementsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchArchivePlacementsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchArchivePlacementsRequest other) { + if (other == com.google.ads.admanager.v1.BatchArchivePlacementsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.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.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to archive.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to archive.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to archive.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to archive.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to archive.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to archive.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to archive.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to archive.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to archive.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchArchivePlacementsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchArchivePlacementsRequest) + private static final com.google.ads.admanager.v1.BatchArchivePlacementsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchArchivePlacementsRequest(); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchArchivePlacementsRequest 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.admanager.v1.BatchArchivePlacementsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsRequestOrBuilder.java new file mode 100644 index 000000000000..7a78cd506ebc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchArchivePlacementsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchArchivePlacementsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to archive.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to archive.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to archive.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to archive.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsResponse.java new file mode 100644 index 000000000000..e8935f01c63f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsResponse.java @@ -0,0 +1,436 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchArchivePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchArchivePlacementsResponse} + */ +public final class BatchArchivePlacementsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchArchivePlacementsResponse) + BatchArchivePlacementsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchArchivePlacementsResponse.newBuilder() to construct. + private BatchArchivePlacementsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchArchivePlacementsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchArchivePlacementsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchArchivePlacementsResponse.class, + com.google.ads.admanager.v1.BatchArchivePlacementsResponse.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.admanager.v1.BatchArchivePlacementsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchArchivePlacementsResponse other = + (com.google.ads.admanager.v1.BatchArchivePlacementsResponse) 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.admanager.v1.BatchArchivePlacementsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse 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.admanager.v1.BatchArchivePlacementsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse 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.admanager.v1.BatchArchivePlacementsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchArchivePlacementsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchArchivePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchArchivePlacementsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchArchivePlacementsResponse) + com.google.ads.admanager.v1.BatchArchivePlacementsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchArchivePlacementsResponse.class, + com.google.ads.admanager.v1.BatchArchivePlacementsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchArchivePlacementsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchivePlacementsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchArchivePlacementsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchivePlacementsResponse build() { + com.google.ads.admanager.v1.BatchArchivePlacementsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchivePlacementsResponse buildPartial() { + com.google.ads.admanager.v1.BatchArchivePlacementsResponse result = + new com.google.ads.admanager.v1.BatchArchivePlacementsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchArchivePlacementsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchArchivePlacementsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchArchivePlacementsResponse other) { + if (other == com.google.ads.admanager.v1.BatchArchivePlacementsResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchArchivePlacementsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchArchivePlacementsResponse) + private static final com.google.ads.admanager.v1.BatchArchivePlacementsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchArchivePlacementsResponse(); + } + + public static com.google.ads.admanager.v1.BatchArchivePlacementsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchArchivePlacementsResponse 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.admanager.v1.BatchArchivePlacementsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsResponseOrBuilder.java new file mode 100644 index 000000000000..1a91d61fdaf3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchivePlacementsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchArchivePlacementsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchArchivePlacementsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsRequest.java new file mode 100644 index 000000000000..646fc0e2b964 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsRequest.java @@ -0,0 +1,1089 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchBlockAdReviewCenterAds` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest} + */ +public final class BatchBlockAdReviewCenterAdsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest) + BatchBlockAdReviewCenterAdsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchBlockAdReviewCenterAdsRequest.newBuilder() to construct. + private BatchBlockAdReviewCenterAdsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchBlockAdReviewCenterAdsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchBlockAdReviewCenterAdsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest.class, + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to block.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to block.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to block.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to block.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest other = + (com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest 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.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest 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.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchBlockAdReviewCenterAds` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest) + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest.class, + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest build() { + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest buildPartial() { + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest result = + new com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest other) { + if (other + == com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The parent, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to block.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to block.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to block.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to block.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to block.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to block.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to block.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to block.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `AdReviewCenterAd`s to block.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest) + private static final com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest(); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchBlockAdReviewCenterAdsRequest 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.admanager.v1.BatchBlockAdReviewCenterAdsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsRequestOrBuilder.java new file mode 100644 index 000000000000..0d9cab633e53 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsRequestOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchBlockAdReviewCenterAdsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to block.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to block.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to block.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The resource names of the `AdReviewCenterAd`s to block.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsResponse.java new file mode 100644 index 000000000000..bf109d3d87ce --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsResponse.java @@ -0,0 +1,443 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchBlockAdReviewCenterAds` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse} + */ +public final class BatchBlockAdReviewCenterAdsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse) + BatchBlockAdReviewCenterAdsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchBlockAdReviewCenterAdsResponse.newBuilder() to construct. + private BatchBlockAdReviewCenterAdsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchBlockAdReviewCenterAdsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchBlockAdReviewCenterAdsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse.class, + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse.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.admanager.v1.BatchBlockAdReviewCenterAdsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse other = + (com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse) 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.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse 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.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse 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.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchBlockAdReviewCenterAds` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse) + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse.class, + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_BatchBlockAdReviewCenterAdsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse build() { + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse buildPartial() { + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse result = + new com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse other) { + if (other + == com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse) + private static final com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse(); + } + + public static com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchBlockAdReviewCenterAdsResponse 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.admanager.v1.BatchBlockAdReviewCenterAdsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsResponseOrBuilder.java new file mode 100644 index 000000000000..6a6c8d19b197 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchBlockAdReviewCenterAdsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchBlockAdReviewCenterAdsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsRequest.java new file mode 100644 index 000000000000..27482347763a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsRequest.java @@ -0,0 +1,1258 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchCreateContacts` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateContactsRequest} + */ +public final class BatchCreateContactsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateContactsRequest) + BatchCreateContactsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateContactsRequest.newBuilder() to construct. + private BatchCreateContactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateContactsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateContactsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateContactsRequest.class, + com.google.ads.admanager.v1.BatchCreateContactsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where `Contacts` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateContactRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 where `Contacts` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateContactRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateContactRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateContactRequestOrBuilder getRequestsOrBuilder(int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchCreateContactsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateContactsRequest other = + (com.google.ads.admanager.v1.BatchCreateContactsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest 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.admanager.v1.BatchCreateContactsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest 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.admanager.v1.BatchCreateContactsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchCreateContactsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchCreateContacts` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateContactsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateContactsRequest) + com.google.ads.admanager.v1.BatchCreateContactsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateContactsRequest.class, + com.google.ads.admanager.v1.BatchCreateContactsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateContactsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateContactsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateContactsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateContactsRequest build() { + com.google.ads.admanager.v1.BatchCreateContactsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateContactsRequest buildPartial() { + com.google.ads.admanager.v1.BatchCreateContactsRequest result = + new com.google.ads.admanager.v1.BatchCreateContactsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateContactsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateContactsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateContactsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateContactsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateContactsRequest other) { + if (other == com.google.ads.admanager.v1.BatchCreateContactsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.CreateContactRequest m = + input.readMessage( + com.google.ads.admanager.v1.CreateContactRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where `Contacts` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Contacts` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Contacts` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Contacts` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Contacts` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateContactRequest, + com.google.ads.admanager.v1.CreateContactRequest.Builder, + com.google.ads.admanager.v1.CreateContactRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateContactRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests(int index, com.google.ads.admanager.v1.CreateContactRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.CreateContactRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.CreateContactRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(int index, com.google.ads.admanager.v1.CreateContactRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.CreateContactRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.CreateContactRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateContactRequest.Builder getRequestsBuilder(int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateContactRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateContactRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CreateContactRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateContactRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CreateContactRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Contact` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateContactRequest, + com.google.ads.admanager.v1.CreateContactRequest.Builder, + com.google.ads.admanager.v1.CreateContactRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateContactRequest, + com.google.ads.admanager.v1.CreateContactRequest.Builder, + com.google.ads.admanager.v1.CreateContactRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreateContactsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateContactsRequest) + private static final com.google.ads.admanager.v1.BatchCreateContactsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateContactsRequest(); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateContactsRequest 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.admanager.v1.BatchCreateContactsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsRequestOrBuilder.java new file mode 100644 index 000000000000..a0d3ca6099e8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateContactsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateContactsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where `Contacts` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateContactRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where `Contacts` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateContactRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateContactRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `Contact` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateContactRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsResponse.java new file mode 100644 index 000000000000..1b59374f9bc7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsResponse.java @@ -0,0 +1,960 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchCreateContacts` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateContactsResponse} + */ +public final class BatchCreateContactsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateContactsResponse) + BatchCreateContactsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateContactsResponse.newBuilder() to construct. + private BatchCreateContactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateContactsResponse() { + contacts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateContactsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateContactsResponse.class, + com.google.ads.admanager.v1.BatchCreateContactsResponse.Builder.class); + } + + public static final int CONTACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List contacts_; + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public java.util.List getContactsList() { + return contacts_; + } + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public java.util.List + getContactsOrBuilderList() { + return contacts_; + } + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public int getContactsCount() { + return contacts_.size(); + } + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Contact getContacts(int index) { + return contacts_.get(index); + } + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContactOrBuilder getContactsOrBuilder(int index) { + return contacts_.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 < contacts_.size(); i++) { + output.writeMessage(1, contacts_.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 < contacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contacts_.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.admanager.v1.BatchCreateContactsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateContactsResponse other = + (com.google.ads.admanager.v1.BatchCreateContactsResponse) obj; + + if (!getContactsList().equals(other.getContactsList())) 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 (getContactsCount() > 0) { + hash = (37 * hash) + CONTACTS_FIELD_NUMBER; + hash = (53 * hash) + getContactsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse 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.admanager.v1.BatchCreateContactsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse 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.admanager.v1.BatchCreateContactsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchCreateContactsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchCreateContacts` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateContactsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateContactsResponse) + com.google.ads.admanager.v1.BatchCreateContactsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateContactsResponse.class, + com.google.ads.admanager.v1.BatchCreateContactsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateContactsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + } else { + contacts_ = null; + contactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateContactsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateContactsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateContactsResponse build() { + com.google.ads.admanager.v1.BatchCreateContactsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateContactsResponse buildPartial() { + com.google.ads.admanager.v1.BatchCreateContactsResponse result = + new com.google.ads.admanager.v1.BatchCreateContactsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateContactsResponse result) { + if (contactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contacts_ = java.util.Collections.unmodifiableList(contacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contacts_ = contacts_; + } else { + result.contacts_ = contactsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateContactsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateContactsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateContactsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateContactsResponse other) { + if (other == com.google.ads.admanager.v1.BatchCreateContactsResponse.getDefaultInstance()) + return this; + if (contactsBuilder_ == null) { + if (!other.contacts_.isEmpty()) { + if (contacts_.isEmpty()) { + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContactsIsMutable(); + contacts_.addAll(other.contacts_); + } + onChanged(); + } + } else { + if (!other.contacts_.isEmpty()) { + if (contactsBuilder_.isEmpty()) { + contactsBuilder_.dispose(); + contactsBuilder_ = null; + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000001); + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContactsFieldBuilder() + : null; + } else { + contactsBuilder_.addAllMessages(other.contacts_); + } + } + } + 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.admanager.v1.Contact m = + input.readMessage( + com.google.ads.admanager.v1.Contact.parser(), extensionRegistry); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(m); + } else { + contactsBuilder_.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 contacts_ = + java.util.Collections.emptyList(); + + private void ensureContactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contacts_ = new java.util.ArrayList(contacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + contactsBuilder_; + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public java.util.List getContactsList() { + if (contactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contacts_); + } else { + return contactsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public int getContactsCount() { + if (contactsBuilder_ == null) { + return contacts_.size(); + } else { + return contactsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact getContacts(int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder setContacts(int index, com.google.ads.admanager.v1.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.set(index, value); + onChanged(); + } else { + contactsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder setContacts( + int index, com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.set(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts(com.google.ads.admanager.v1.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(value); + onChanged(); + } else { + contactsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts(int index, com.google.ads.admanager.v1.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(index, value); + onChanged(); + } else { + contactsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts(com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts( + int index, com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addAllContacts( + java.lang.Iterable values) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_); + onChanged(); + } else { + contactsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder clearContacts() { + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contactsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder removeContacts(int index) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.remove(index); + onChanged(); + } else { + contactsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact.Builder getContactsBuilder(int index) { + return getContactsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.ContactOrBuilder getContactsOrBuilder(int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public java.util.List + getContactsOrBuilderList() { + if (contactsBuilder_ != null) { + return contactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contacts_); + } + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact.Builder addContactsBuilder() { + return getContactsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Contact.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact.Builder addContactsBuilder(int index) { + return getContactsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Contact.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Contact` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public java.util.List getContactsBuilderList() { + return getContactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + getContactsFieldBuilder() { + if (contactsBuilder_ == null) { + contactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder>( + contacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + contacts_ = null; + } + return contactsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreateContactsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateContactsResponse) + private static final com.google.ads.admanager.v1.BatchCreateContactsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateContactsResponse(); + } + + public static com.google.ads.admanager.v1.BatchCreateContactsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateContactsResponse 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.admanager.v1.BatchCreateContactsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsResponseOrBuilder.java new file mode 100644 index 000000000000..168ff3fc7736 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateContactsResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateContactsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateContactsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + java.util.List getContactsList(); + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + com.google.ads.admanager.v1.Contact getContacts(int index); + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + int getContactsCount(); + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + java.util.List getContactsOrBuilderList(); + + /** + * + * + *
    +   * The `Contact` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + com.google.ads.admanager.v1.ContactOrBuilder getContactsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsRequest.java new file mode 100644 index 000000000000..700aa2357162 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsRequest.java @@ -0,0 +1,1266 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchCreateCustomFields` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateCustomFieldsRequest} + */ +public final class BatchCreateCustomFieldsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateCustomFieldsRequest) + BatchCreateCustomFieldsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateCustomFieldsRequest.newBuilder() to construct. + private BatchCreateCustomFieldsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateCustomFieldsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateCustomFieldsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest.class, + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where `CustomFields` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateCustomFieldRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 where `CustomFields` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateCustomFieldRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomFieldRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomFieldRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchCreateCustomFieldsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest other = + (com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest 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.admanager.v1.BatchCreateCustomFieldsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest 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.admanager.v1.BatchCreateCustomFieldsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchCreateCustomFields` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateCustomFieldsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateCustomFieldsRequest) + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest.class, + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest build() { + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest buildPartial() { + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest result = + new com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest other) { + if (other == com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.CreateCustomFieldRequest m = + input.readMessage( + com.google.ads.admanager.v1.CreateCustomFieldRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where `CustomFields` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `CustomFields` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `CustomFields` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `CustomFields` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `CustomFields` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateCustomFieldRequest, + com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder, + com.google.ads.admanager.v1.CreateCustomFieldRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomFieldRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.CreateCustomFieldRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.CreateCustomFieldRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.CreateCustomFieldRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomFieldRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CreateCustomFieldRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.CreateCustomFieldRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateCustomFieldRequest, + com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder, + com.google.ads.admanager.v1.CreateCustomFieldRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateCustomFieldRequest, + com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder, + com.google.ads.admanager.v1.CreateCustomFieldRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreateCustomFieldsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateCustomFieldsRequest) + private static final com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest(); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateCustomFieldsRequest 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.admanager.v1.BatchCreateCustomFieldsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsRequestOrBuilder.java new file mode 100644 index 000000000000..5809cbd32d3a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateCustomFieldsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateCustomFieldsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where `CustomFields` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateCustomFieldRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where `CustomFields` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateCustomFieldRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateCustomFieldRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `CustomField` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateCustomFieldRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsResponse.java new file mode 100644 index 000000000000..320f526d1db0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsResponse.java @@ -0,0 +1,964 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchCreateCustomFields` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateCustomFieldsResponse} + */ +public final class BatchCreateCustomFieldsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateCustomFieldsResponse) + BatchCreateCustomFieldsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateCustomFieldsResponse.newBuilder() to construct. + private BatchCreateCustomFieldsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateCustomFieldsResponse() { + customFields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateCustomFieldsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse.class, + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse.Builder.class); + } + + public static final int CUSTOM_FIELDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customFields_; + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public java.util.List getCustomFieldsList() { + return customFields_; + } + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public java.util.List + getCustomFieldsOrBuilderList() { + return customFields_; + } + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public int getCustomFieldsCount() { + return customFields_.size(); + } + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomField getCustomFields(int index) { + return customFields_.get(index); + } + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldsOrBuilder(int index) { + return customFields_.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 < customFields_.size(); i++) { + output.writeMessage(1, customFields_.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 < customFields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customFields_.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.admanager.v1.BatchCreateCustomFieldsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse other = + (com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse) obj; + + if (!getCustomFieldsList().equals(other.getCustomFieldsList())) 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 (getCustomFieldsCount() > 0) { + hash = (37 * hash) + CUSTOM_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getCustomFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse 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.admanager.v1.BatchCreateCustomFieldsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse 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.admanager.v1.BatchCreateCustomFieldsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchCreateCustomFields` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateCustomFieldsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateCustomFieldsResponse) + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse.class, + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customFieldsBuilder_ == null) { + customFields_ = java.util.Collections.emptyList(); + } else { + customFields_ = null; + customFieldsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse build() { + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse buildPartial() { + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse result = + new com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse result) { + if (customFieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customFields_ = java.util.Collections.unmodifiableList(customFields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customFields_ = customFields_; + } else { + result.customFields_ = customFieldsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse other) { + if (other == com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse.getDefaultInstance()) + return this; + if (customFieldsBuilder_ == null) { + if (!other.customFields_.isEmpty()) { + if (customFields_.isEmpty()) { + customFields_ = other.customFields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomFieldsIsMutable(); + customFields_.addAll(other.customFields_); + } + onChanged(); + } + } else { + if (!other.customFields_.isEmpty()) { + if (customFieldsBuilder_.isEmpty()) { + customFieldsBuilder_.dispose(); + customFieldsBuilder_ = null; + customFields_ = other.customFields_; + bitField0_ = (bitField0_ & ~0x00000001); + customFieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomFieldsFieldBuilder() + : null; + } else { + customFieldsBuilder_.addAllMessages(other.customFields_); + } + } + } + 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.admanager.v1.CustomField m = + input.readMessage( + com.google.ads.admanager.v1.CustomField.parser(), extensionRegistry); + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.add(m); + } else { + customFieldsBuilder_.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 customFields_ = + java.util.Collections.emptyList(); + + private void ensureCustomFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customFields_ = + new java.util.ArrayList(customFields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder> + customFieldsBuilder_; + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public java.util.List getCustomFieldsList() { + if (customFieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customFields_); + } else { + return customFieldsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public int getCustomFieldsCount() { + if (customFieldsBuilder_ == null) { + return customFields_.size(); + } else { + return customFieldsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomField getCustomFields(int index) { + if (customFieldsBuilder_ == null) { + return customFields_.get(index); + } else { + return customFieldsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder setCustomFields(int index, com.google.ads.admanager.v1.CustomField value) { + if (customFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomFieldsIsMutable(); + customFields_.set(index, value); + onChanged(); + } else { + customFieldsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder setCustomFields( + int index, com.google.ads.admanager.v1.CustomField.Builder builderForValue) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.set(index, builderForValue.build()); + onChanged(); + } else { + customFieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addCustomFields(com.google.ads.admanager.v1.CustomField value) { + if (customFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomFieldsIsMutable(); + customFields_.add(value); + onChanged(); + } else { + customFieldsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addCustomFields(int index, com.google.ads.admanager.v1.CustomField value) { + if (customFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomFieldsIsMutable(); + customFields_.add(index, value); + onChanged(); + } else { + customFieldsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addCustomFields( + com.google.ads.admanager.v1.CustomField.Builder builderForValue) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.add(builderForValue.build()); + onChanged(); + } else { + customFieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addCustomFields( + int index, com.google.ads.admanager.v1.CustomField.Builder builderForValue) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.add(index, builderForValue.build()); + onChanged(); + } else { + customFieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addAllCustomFields( + java.lang.Iterable values) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customFields_); + onChanged(); + } else { + customFieldsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder clearCustomFields() { + if (customFieldsBuilder_ == null) { + customFields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customFieldsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder removeCustomFields(int index) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.remove(index); + onChanged(); + } else { + customFieldsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomField.Builder getCustomFieldsBuilder(int index) { + return getCustomFieldsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldsOrBuilder(int index) { + if (customFieldsBuilder_ == null) { + return customFields_.get(index); + } else { + return customFieldsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public java.util.List + getCustomFieldsOrBuilderList() { + if (customFieldsBuilder_ != null) { + return customFieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customFields_); + } + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomField.Builder addCustomFieldsBuilder() { + return getCustomFieldsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CustomField.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomField.Builder addCustomFieldsBuilder(int index) { + return getCustomFieldsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CustomField.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CustomField` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public java.util.List + getCustomFieldsBuilderList() { + return getCustomFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder> + getCustomFieldsFieldBuilder() { + if (customFieldsBuilder_ == null) { + customFieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder>( + customFields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + customFields_ = null; + } + return customFieldsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreateCustomFieldsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateCustomFieldsResponse) + private static final com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse(); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateCustomFieldsResponse 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.admanager.v1.BatchCreateCustomFieldsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsResponseOrBuilder.java new file mode 100644 index 000000000000..56333b51a48c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomFieldsResponseOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateCustomFieldsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateCustomFieldsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + java.util.List getCustomFieldsList(); + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + com.google.ads.admanager.v1.CustomField getCustomFields(int index); + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + int getCustomFieldsCount(); + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + java.util.List + getCustomFieldsOrBuilderList(); + + /** + * + * + *
    +   * The `CustomField` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsRequest.java new file mode 100644 index 000000000000..b48894180c11 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsRequest.java @@ -0,0 +1,1264 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchCreatePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreatePlacementsRequest} + */ +public final class BatchCreatePlacementsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreatePlacementsRequest) + BatchCreatePlacementsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreatePlacementsRequest.newBuilder() to construct. + private BatchCreatePlacementsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreatePlacementsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreatePlacementsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreatePlacementsRequest.class, + com.google.ads.admanager.v1.BatchCreatePlacementsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where the `Placement`s will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreatePlacementRequest messages match this
    +   * field.
    +   * 
    + * + * + * 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 where the `Placement`s will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreatePlacementRequest messages match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreatePlacementRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreatePlacementRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchCreatePlacementsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreatePlacementsRequest other = + (com.google.ads.admanager.v1.BatchCreatePlacementsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest 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.admanager.v1.BatchCreatePlacementsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest 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.admanager.v1.BatchCreatePlacementsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchCreatePlacementsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchCreatePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreatePlacementsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreatePlacementsRequest) + com.google.ads.admanager.v1.BatchCreatePlacementsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreatePlacementsRequest.class, + com.google.ads.admanager.v1.BatchCreatePlacementsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreatePlacementsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreatePlacementsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreatePlacementsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreatePlacementsRequest build() { + com.google.ads.admanager.v1.BatchCreatePlacementsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreatePlacementsRequest buildPartial() { + com.google.ads.admanager.v1.BatchCreatePlacementsRequest result = + new com.google.ads.admanager.v1.BatchCreatePlacementsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreatePlacementsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreatePlacementsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreatePlacementsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreatePlacementsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreatePlacementsRequest other) { + if (other == com.google.ads.admanager.v1.BatchCreatePlacementsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.CreatePlacementRequest m = + input.readMessage( + com.google.ads.admanager.v1.CreatePlacementRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where the `Placement`s will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreatePlacementRequest messages match this
    +     * field.
    +     * 
    + * + * + * 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 where the `Placement`s will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreatePlacementRequest messages match this
    +     * field.
    +     * 
    + * + * + * 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 where the `Placement`s will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreatePlacementRequest messages match this
    +     * field.
    +     * 
    + * + * + * 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 where the `Placement`s will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreatePlacementRequest messages match this
    +     * field.
    +     * 
    + * + * + * 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 where the `Placement`s will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreatePlacementRequest messages match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreatePlacementRequest, + com.google.ads.admanager.v1.CreatePlacementRequest.Builder, + com.google.ads.admanager.v1.CreatePlacementRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreatePlacementRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.CreatePlacementRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.CreatePlacementRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.CreatePlacementRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.CreatePlacementRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.CreatePlacementRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.CreatePlacementRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreatePlacementRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreatePlacementRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreatePlacementRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CreatePlacementRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreatePlacementRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.CreatePlacementRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Placement` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreatePlacementRequest, + com.google.ads.admanager.v1.CreatePlacementRequest.Builder, + com.google.ads.admanager.v1.CreatePlacementRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreatePlacementRequest, + com.google.ads.admanager.v1.CreatePlacementRequest.Builder, + com.google.ads.admanager.v1.CreatePlacementRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreatePlacementsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreatePlacementsRequest) + private static final com.google.ads.admanager.v1.BatchCreatePlacementsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreatePlacementsRequest(); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreatePlacementsRequest 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.admanager.v1.BatchCreatePlacementsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsRequestOrBuilder.java new file mode 100644 index 000000000000..c25a1e2fa1ba --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreatePlacementsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreatePlacementsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where the `Placement`s will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreatePlacementRequest messages match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where the `Placement`s will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreatePlacementRequest messages match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreatePlacementRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `Placement` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreatePlacementRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsResponse.java new file mode 100644 index 000000000000..590bc28932d6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsResponse.java @@ -0,0 +1,961 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchCreatePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreatePlacementsResponse} + */ +public final class BatchCreatePlacementsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreatePlacementsResponse) + BatchCreatePlacementsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreatePlacementsResponse.newBuilder() to construct. + private BatchCreatePlacementsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreatePlacementsResponse() { + placements_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreatePlacementsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreatePlacementsResponse.class, + com.google.ads.admanager.v1.BatchCreatePlacementsResponse.Builder.class); + } + + public static final int PLACEMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List placements_; + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public java.util.List getPlacementsList() { + return placements_; + } + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public java.util.List + getPlacementsOrBuilderList() { + return placements_; + } + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public int getPlacementsCount() { + return placements_.size(); + } + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Placement getPlacements(int index) { + return placements_.get(index); + } + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.PlacementOrBuilder getPlacementsOrBuilder(int index) { + return placements_.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 < placements_.size(); i++) { + output.writeMessage(1, placements_.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 < placements_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, placements_.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.admanager.v1.BatchCreatePlacementsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreatePlacementsResponse other = + (com.google.ads.admanager.v1.BatchCreatePlacementsResponse) obj; + + if (!getPlacementsList().equals(other.getPlacementsList())) 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 (getPlacementsCount() > 0) { + hash = (37 * hash) + PLACEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getPlacementsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse 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.admanager.v1.BatchCreatePlacementsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse 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.admanager.v1.BatchCreatePlacementsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchCreatePlacementsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchCreatePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreatePlacementsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreatePlacementsResponse) + com.google.ads.admanager.v1.BatchCreatePlacementsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreatePlacementsResponse.class, + com.google.ads.admanager.v1.BatchCreatePlacementsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreatePlacementsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (placementsBuilder_ == null) { + placements_ = java.util.Collections.emptyList(); + } else { + placements_ = null; + placementsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreatePlacementsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreatePlacementsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreatePlacementsResponse build() { + com.google.ads.admanager.v1.BatchCreatePlacementsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreatePlacementsResponse buildPartial() { + com.google.ads.admanager.v1.BatchCreatePlacementsResponse result = + new com.google.ads.admanager.v1.BatchCreatePlacementsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreatePlacementsResponse result) { + if (placementsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + placements_ = java.util.Collections.unmodifiableList(placements_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.placements_ = placements_; + } else { + result.placements_ = placementsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreatePlacementsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreatePlacementsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreatePlacementsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreatePlacementsResponse other) { + if (other == com.google.ads.admanager.v1.BatchCreatePlacementsResponse.getDefaultInstance()) + return this; + if (placementsBuilder_ == null) { + if (!other.placements_.isEmpty()) { + if (placements_.isEmpty()) { + placements_ = other.placements_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePlacementsIsMutable(); + placements_.addAll(other.placements_); + } + onChanged(); + } + } else { + if (!other.placements_.isEmpty()) { + if (placementsBuilder_.isEmpty()) { + placementsBuilder_.dispose(); + placementsBuilder_ = null; + placements_ = other.placements_; + bitField0_ = (bitField0_ & ~0x00000001); + placementsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPlacementsFieldBuilder() + : null; + } else { + placementsBuilder_.addAllMessages(other.placements_); + } + } + } + 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.admanager.v1.Placement m = + input.readMessage( + com.google.ads.admanager.v1.Placement.parser(), extensionRegistry); + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.add(m); + } else { + placementsBuilder_.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 placements_ = + java.util.Collections.emptyList(); + + private void ensurePlacementsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + placements_ = new java.util.ArrayList(placements_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder> + placementsBuilder_; + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public java.util.List getPlacementsList() { + if (placementsBuilder_ == null) { + return java.util.Collections.unmodifiableList(placements_); + } else { + return placementsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public int getPlacementsCount() { + if (placementsBuilder_ == null) { + return placements_.size(); + } else { + return placementsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.Placement getPlacements(int index) { + if (placementsBuilder_ == null) { + return placements_.get(index); + } else { + return placementsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder setPlacements(int index, com.google.ads.admanager.v1.Placement value) { + if (placementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlacementsIsMutable(); + placements_.set(index, value); + onChanged(); + } else { + placementsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder setPlacements( + int index, com.google.ads.admanager.v1.Placement.Builder builderForValue) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.set(index, builderForValue.build()); + onChanged(); + } else { + placementsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addPlacements(com.google.ads.admanager.v1.Placement value) { + if (placementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlacementsIsMutable(); + placements_.add(value); + onChanged(); + } else { + placementsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addPlacements(int index, com.google.ads.admanager.v1.Placement value) { + if (placementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlacementsIsMutable(); + placements_.add(index, value); + onChanged(); + } else { + placementsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addPlacements(com.google.ads.admanager.v1.Placement.Builder builderForValue) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.add(builderForValue.build()); + onChanged(); + } else { + placementsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addPlacements( + int index, com.google.ads.admanager.v1.Placement.Builder builderForValue) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.add(index, builderForValue.build()); + onChanged(); + } else { + placementsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addAllPlacements( + java.lang.Iterable values) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, placements_); + onChanged(); + } else { + placementsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder clearPlacements() { + if (placementsBuilder_ == null) { + placements_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + placementsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder removePlacements(int index) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.remove(index); + onChanged(); + } else { + placementsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.Placement.Builder getPlacementsBuilder(int index) { + return getPlacementsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.PlacementOrBuilder getPlacementsOrBuilder(int index) { + if (placementsBuilder_ == null) { + return placements_.get(index); + } else { + return placementsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public java.util.List + getPlacementsOrBuilderList() { + if (placementsBuilder_ != null) { + return placementsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(placements_); + } + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.Placement.Builder addPlacementsBuilder() { + return getPlacementsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Placement.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.Placement.Builder addPlacementsBuilder(int index) { + return getPlacementsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Placement.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Placement` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public java.util.List + getPlacementsBuilderList() { + return getPlacementsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder> + getPlacementsFieldBuilder() { + if (placementsBuilder_ == null) { + placementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder>( + placements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + placements_ = null; + } + return placementsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreatePlacementsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreatePlacementsResponse) + private static final com.google.ads.admanager.v1.BatchCreatePlacementsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreatePlacementsResponse(); + } + + public static com.google.ads.admanager.v1.BatchCreatePlacementsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreatePlacementsResponse 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.admanager.v1.BatchCreatePlacementsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsResponseOrBuilder.java new file mode 100644 index 000000000000..9b52d90bb7ab --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreatePlacementsResponseOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreatePlacementsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreatePlacementsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + java.util.List getPlacementsList(); + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + com.google.ads.admanager.v1.Placement getPlacements(int index); + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + int getPlacementsCount(); + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + java.util.List + getPlacementsOrBuilderList(); + + /** + * + * + *
    +   * The `Placement` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + com.google.ads.admanager.v1.PlacementOrBuilder getPlacementsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesRequest.java new file mode 100644 index 000000000000..aef8794c40d4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesRequest.java @@ -0,0 +1,1255 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchCreateSites` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateSitesRequest} + */ +public final class BatchCreateSitesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateSitesRequest) + BatchCreateSitesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateSitesRequest.newBuilder() to construct. + private BatchCreateSitesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateSitesRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateSitesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateSitesRequest.class, + com.google.ads.admanager.v1.BatchCreateSitesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where `Sites` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateSiteRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 where `Sites` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateSiteRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateSiteRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateSiteRequestOrBuilder getRequestsOrBuilder(int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchCreateSitesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateSitesRequest other = + (com.google.ads.admanager.v1.BatchCreateSitesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest 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.admanager.v1.BatchCreateSitesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest 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.admanager.v1.BatchCreateSitesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BatchCreateSitesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchCreateSites` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateSitesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateSitesRequest) + com.google.ads.admanager.v1.BatchCreateSitesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateSitesRequest.class, + com.google.ads.admanager.v1.BatchCreateSitesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateSitesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateSitesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateSitesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateSitesRequest build() { + com.google.ads.admanager.v1.BatchCreateSitesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateSitesRequest buildPartial() { + com.google.ads.admanager.v1.BatchCreateSitesRequest result = + new com.google.ads.admanager.v1.BatchCreateSitesRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateSitesRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateSitesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateSitesRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateSitesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateSitesRequest other) { + if (other == com.google.ads.admanager.v1.BatchCreateSitesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.CreateSiteRequest m = + input.readMessage( + com.google.ads.admanager.v1.CreateSiteRequest.parser(), extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where `Sites` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Sites` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Sites` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Sites` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Sites` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateSiteRequest, + com.google.ads.admanager.v1.CreateSiteRequest.Builder, + com.google.ads.admanager.v1.CreateSiteRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateSiteRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests(int index, com.google.ads.admanager.v1.CreateSiteRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.CreateSiteRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.CreateSiteRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(int index, com.google.ads.admanager.v1.CreateSiteRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.CreateSiteRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.CreateSiteRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateSiteRequest.Builder getRequestsBuilder(int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateSiteRequestOrBuilder getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateSiteRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CreateSiteRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateSiteRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CreateSiteRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Site` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateSiteRequest, + com.google.ads.admanager.v1.CreateSiteRequest.Builder, + com.google.ads.admanager.v1.CreateSiteRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateSiteRequest, + com.google.ads.admanager.v1.CreateSiteRequest.Builder, + com.google.ads.admanager.v1.CreateSiteRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreateSitesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateSitesRequest) + private static final com.google.ads.admanager.v1.BatchCreateSitesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateSitesRequest(); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateSitesRequest 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.admanager.v1.BatchCreateSitesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesRequestOrBuilder.java new file mode 100644 index 000000000000..73fb390868b4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateSitesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateSitesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where `Sites` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateSiteRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where `Sites` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateSiteRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateSiteRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `Site` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateSiteRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesResponse.java new file mode 100644 index 000000000000..b7b9996b8750 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesResponse.java @@ -0,0 +1,956 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchCreateSites` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateSitesResponse} + */ +public final class BatchCreateSitesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateSitesResponse) + BatchCreateSitesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateSitesResponse.newBuilder() to construct. + private BatchCreateSitesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateSitesResponse() { + sites_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateSitesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateSitesResponse.class, + com.google.ads.admanager.v1.BatchCreateSitesResponse.Builder.class); + } + + public static final int SITES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sites_; + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public java.util.List getSitesList() { + return sites_; + } + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public java.util.List + getSitesOrBuilderList() { + return sites_; + } + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public int getSitesCount() { + return sites_.size(); + } + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Site getSites(int index) { + return sites_.get(index); + } + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.SiteOrBuilder getSitesOrBuilder(int index) { + return sites_.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 < sites_.size(); i++) { + output.writeMessage(1, sites_.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 < sites_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sites_.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.admanager.v1.BatchCreateSitesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateSitesResponse other = + (com.google.ads.admanager.v1.BatchCreateSitesResponse) obj; + + if (!getSitesList().equals(other.getSitesList())) 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 (getSitesCount() > 0) { + hash = (37 * hash) + SITES_FIELD_NUMBER; + hash = (53 * hash) + getSitesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse 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.admanager.v1.BatchCreateSitesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse 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.admanager.v1.BatchCreateSitesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BatchCreateSitesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchCreateSites` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateSitesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateSitesResponse) + com.google.ads.admanager.v1.BatchCreateSitesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateSitesResponse.class, + com.google.ads.admanager.v1.BatchCreateSitesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateSitesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + } else { + sites_ = null; + sitesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateSitesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateSitesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateSitesResponse build() { + com.google.ads.admanager.v1.BatchCreateSitesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateSitesResponse buildPartial() { + com.google.ads.admanager.v1.BatchCreateSitesResponse result = + new com.google.ads.admanager.v1.BatchCreateSitesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateSitesResponse result) { + if (sitesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sites_ = java.util.Collections.unmodifiableList(sites_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sites_ = sites_; + } else { + result.sites_ = sitesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateSitesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateSitesResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateSitesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateSitesResponse other) { + if (other == com.google.ads.admanager.v1.BatchCreateSitesResponse.getDefaultInstance()) + return this; + if (sitesBuilder_ == null) { + if (!other.sites_.isEmpty()) { + if (sites_.isEmpty()) { + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSitesIsMutable(); + sites_.addAll(other.sites_); + } + onChanged(); + } + } else { + if (!other.sites_.isEmpty()) { + if (sitesBuilder_.isEmpty()) { + sitesBuilder_.dispose(); + sitesBuilder_ = null; + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000001); + sitesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSitesFieldBuilder() + : null; + } else { + sitesBuilder_.addAllMessages(other.sites_); + } + } + } + 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.admanager.v1.Site m = + input.readMessage(com.google.ads.admanager.v1.Site.parser(), extensionRegistry); + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(m); + } else { + sitesBuilder_.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 sites_ = + java.util.Collections.emptyList(); + + private void ensureSitesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sites_ = new java.util.ArrayList(sites_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + sitesBuilder_; + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public java.util.List getSitesList() { + if (sitesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sites_); + } else { + return sitesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public int getSitesCount() { + if (sitesBuilder_ == null) { + return sites_.size(); + } else { + return sitesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site getSites(int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder setSites(int index, com.google.ads.admanager.v1.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.set(index, value); + onChanged(); + } else { + sitesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder setSites(int index, com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.set(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(com.google.ads.admanager.v1.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(value); + onChanged(); + } else { + sitesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(int index, com.google.ads.admanager.v1.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(index, value); + onChanged(); + } else { + sitesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(int index, com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addAllSites( + java.lang.Iterable values) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sites_); + onChanged(); + } else { + sitesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder clearSites() { + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sitesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder removeSites(int index) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.remove(index); + onChanged(); + } else { + sitesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site.Builder getSitesBuilder(int index) { + return getSitesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.SiteOrBuilder getSitesOrBuilder(int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public java.util.List + getSitesOrBuilderList() { + if (sitesBuilder_ != null) { + return sitesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sites_); + } + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site.Builder addSitesBuilder() { + return getSitesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Site.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site.Builder addSitesBuilder(int index) { + return getSitesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Site.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Site` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public java.util.List getSitesBuilderList() { + return getSitesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + getSitesFieldBuilder() { + if (sitesBuilder_ == null) { + sitesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder>( + sites_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sites_ = null; + } + return sitesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreateSitesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateSitesResponse) + private static final com.google.ads.admanager.v1.BatchCreateSitesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateSitesResponse(); + } + + public static com.google.ads.admanager.v1.BatchCreateSitesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateSitesResponse 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.admanager.v1.BatchCreateSitesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesResponseOrBuilder.java new file mode 100644 index 000000000000..c10d432d4786 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateSitesResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateSitesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateSitesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + java.util.List getSitesList(); + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + com.google.ads.admanager.v1.Site getSites(int index); + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + int getSitesCount(); + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + java.util.List getSitesOrBuilderList(); + + /** + * + * + *
    +   * The `Site` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + com.google.ads.admanager.v1.SiteOrBuilder getSitesOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsRequest.java new file mode 100644 index 000000000000..02a67527e02e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsRequest.java @@ -0,0 +1,1255 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchCreateTeams` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateTeamsRequest} + */ +public final class BatchCreateTeamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateTeamsRequest) + BatchCreateTeamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateTeamsRequest.newBuilder() to construct. + private BatchCreateTeamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateTeamsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateTeamsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateTeamsRequest.class, + com.google.ads.admanager.v1.BatchCreateTeamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where `Teams` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateTeamRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 where `Teams` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateTeamRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateTeamRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateTeamRequestOrBuilder getRequestsOrBuilder(int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchCreateTeamsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateTeamsRequest other = + (com.google.ads.admanager.v1.BatchCreateTeamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest 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.admanager.v1.BatchCreateTeamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest 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.admanager.v1.BatchCreateTeamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BatchCreateTeamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchCreateTeams` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateTeamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateTeamsRequest) + com.google.ads.admanager.v1.BatchCreateTeamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateTeamsRequest.class, + com.google.ads.admanager.v1.BatchCreateTeamsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateTeamsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateTeamsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateTeamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateTeamsRequest build() { + com.google.ads.admanager.v1.BatchCreateTeamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateTeamsRequest buildPartial() { + com.google.ads.admanager.v1.BatchCreateTeamsRequest result = + new com.google.ads.admanager.v1.BatchCreateTeamsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateTeamsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateTeamsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateTeamsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateTeamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateTeamsRequest other) { + if (other == com.google.ads.admanager.v1.BatchCreateTeamsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.CreateTeamRequest m = + input.readMessage( + com.google.ads.admanager.v1.CreateTeamRequest.parser(), extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where `Teams` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Teams` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Teams` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Teams` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Teams` will be created.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the CreateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateTeamRequest, + com.google.ads.admanager.v1.CreateTeamRequest.Builder, + com.google.ads.admanager.v1.CreateTeamRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateTeamRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests(int index, com.google.ads.admanager.v1.CreateTeamRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.CreateTeamRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.CreateTeamRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(int index, com.google.ads.admanager.v1.CreateTeamRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.CreateTeamRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.CreateTeamRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateTeamRequest.Builder getRequestsBuilder(int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateTeamRequestOrBuilder getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateTeamRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CreateTeamRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateTeamRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CreateTeamRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Team` objects to create.
    +     * A maximum of 100 objects can be created in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateTeamRequest, + com.google.ads.admanager.v1.CreateTeamRequest.Builder, + com.google.ads.admanager.v1.CreateTeamRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateTeamRequest, + com.google.ads.admanager.v1.CreateTeamRequest.Builder, + com.google.ads.admanager.v1.CreateTeamRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreateTeamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateTeamsRequest) + private static final com.google.ads.admanager.v1.BatchCreateTeamsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateTeamsRequest(); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateTeamsRequest 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.admanager.v1.BatchCreateTeamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsRequestOrBuilder.java new file mode 100644 index 000000000000..4908a09936e4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateTeamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateTeamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where `Teams` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateTeamRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where `Teams` will be created.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the CreateTeamRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateTeamRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `Team` objects to create.
    +   * A maximum of 100 objects can be created in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateTeamRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsResponse.java new file mode 100644 index 000000000000..d71904125b9f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsResponse.java @@ -0,0 +1,956 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchCreateTeams` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateTeamsResponse} + */ +public final class BatchCreateTeamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateTeamsResponse) + BatchCreateTeamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateTeamsResponse.newBuilder() to construct. + private BatchCreateTeamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateTeamsResponse() { + teams_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateTeamsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateTeamsResponse.class, + com.google.ads.admanager.v1.BatchCreateTeamsResponse.Builder.class); + } + + public static final int TEAMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List teams_; + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public java.util.List getTeamsList() { + return teams_; + } + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public java.util.List + getTeamsOrBuilderList() { + return teams_; + } + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public int getTeamsCount() { + return teams_.size(); + } + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Team getTeams(int index) { + return teams_.get(index); + } + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.TeamOrBuilder getTeamsOrBuilder(int index) { + return teams_.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 < teams_.size(); i++) { + output.writeMessage(1, teams_.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 < teams_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, teams_.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.admanager.v1.BatchCreateTeamsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateTeamsResponse other = + (com.google.ads.admanager.v1.BatchCreateTeamsResponse) obj; + + if (!getTeamsList().equals(other.getTeamsList())) 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 (getTeamsCount() > 0) { + hash = (37 * hash) + TEAMS_FIELD_NUMBER; + hash = (53 * hash) + getTeamsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse 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.admanager.v1.BatchCreateTeamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse 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.admanager.v1.BatchCreateTeamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BatchCreateTeamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchCreateTeams` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateTeamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateTeamsResponse) + com.google.ads.admanager.v1.BatchCreateTeamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateTeamsResponse.class, + com.google.ads.admanager.v1.BatchCreateTeamsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateTeamsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (teamsBuilder_ == null) { + teams_ = java.util.Collections.emptyList(); + } else { + teams_ = null; + teamsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateTeamsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateTeamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateTeamsResponse build() { + com.google.ads.admanager.v1.BatchCreateTeamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateTeamsResponse buildPartial() { + com.google.ads.admanager.v1.BatchCreateTeamsResponse result = + new com.google.ads.admanager.v1.BatchCreateTeamsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateTeamsResponse result) { + if (teamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + teams_ = java.util.Collections.unmodifiableList(teams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.teams_ = teams_; + } else { + result.teams_ = teamsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateTeamsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateTeamsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateTeamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateTeamsResponse other) { + if (other == com.google.ads.admanager.v1.BatchCreateTeamsResponse.getDefaultInstance()) + return this; + if (teamsBuilder_ == null) { + if (!other.teams_.isEmpty()) { + if (teams_.isEmpty()) { + teams_ = other.teams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTeamsIsMutable(); + teams_.addAll(other.teams_); + } + onChanged(); + } + } else { + if (!other.teams_.isEmpty()) { + if (teamsBuilder_.isEmpty()) { + teamsBuilder_.dispose(); + teamsBuilder_ = null; + teams_ = other.teams_; + bitField0_ = (bitField0_ & ~0x00000001); + teamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTeamsFieldBuilder() + : null; + } else { + teamsBuilder_.addAllMessages(other.teams_); + } + } + } + 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.admanager.v1.Team m = + input.readMessage(com.google.ads.admanager.v1.Team.parser(), extensionRegistry); + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(m); + } else { + teamsBuilder_.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 teams_ = + java.util.Collections.emptyList(); + + private void ensureTeamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + teams_ = new java.util.ArrayList(teams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + teamsBuilder_; + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public java.util.List getTeamsList() { + if (teamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(teams_); + } else { + return teamsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public int getTeamsCount() { + if (teamsBuilder_ == null) { + return teams_.size(); + } else { + return teamsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team getTeams(int index) { + if (teamsBuilder_ == null) { + return teams_.get(index); + } else { + return teamsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder setTeams(int index, com.google.ads.admanager.v1.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.set(index, value); + onChanged(); + } else { + teamsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder setTeams(int index, com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.set(index, builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(com.google.ads.admanager.v1.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.add(value); + onChanged(); + } else { + teamsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(int index, com.google.ads.admanager.v1.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.add(index, value); + onChanged(); + } else { + teamsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(int index, com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(index, builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addAllTeams( + java.lang.Iterable values) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, teams_); + onChanged(); + } else { + teamsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder clearTeams() { + if (teamsBuilder_ == null) { + teams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + teamsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder removeTeams(int index) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.remove(index); + onChanged(); + } else { + teamsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team.Builder getTeamsBuilder(int index) { + return getTeamsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.TeamOrBuilder getTeamsOrBuilder(int index) { + if (teamsBuilder_ == null) { + return teams_.get(index); + } else { + return teamsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public java.util.List + getTeamsOrBuilderList() { + if (teamsBuilder_ != null) { + return teamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(teams_); + } + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team.Builder addTeamsBuilder() { + return getTeamsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Team.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team.Builder addTeamsBuilder(int index) { + return getTeamsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Team.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Team` objects created.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public java.util.List getTeamsBuilderList() { + return getTeamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + getTeamsFieldBuilder() { + if (teamsBuilder_ == null) { + teamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder>( + teams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + teams_ = null; + } + return teamsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchCreateTeamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateTeamsResponse) + private static final com.google.ads.admanager.v1.BatchCreateTeamsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateTeamsResponse(); + } + + public static com.google.ads.admanager.v1.BatchCreateTeamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateTeamsResponse 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.admanager.v1.BatchCreateTeamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsResponseOrBuilder.java new file mode 100644 index 000000000000..a515797a0e57 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateTeamsResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateTeamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateTeamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + java.util.List getTeamsList(); + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + com.google.ads.admanager.v1.Team getTeams(int index); + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + int getTeamsCount(); + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + java.util.List getTeamsOrBuilderList(); + + /** + * + * + *
    +   * The `Team` objects created.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + com.google.ads.admanager.v1.TeamOrBuilder getTeamsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsRequest.java new file mode 100644 index 000000000000..990c5d63bd59 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsRequest.java @@ -0,0 +1,985 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request message for `BatchDeactivateCustomFields` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest} + */ +public final class BatchDeactivateCustomFieldsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest) + BatchDeactivateCustomFieldsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateCustomFieldsRequest.newBuilder() to construct. + private BatchDeactivateCustomFieldsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateCustomFieldsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateCustomFieldsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest.class, + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to deactivate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to deactivate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to deactivate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to deactivate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest other = + (com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest 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.admanager.v1.BatchDeactivateCustomFieldsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest 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.admanager.v1.BatchDeactivateCustomFieldsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for `BatchDeactivateCustomFields` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest) + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest.class, + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest build() { + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest result = + new com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest other) { + if (other + == com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.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.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to deactivate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to deactivate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to deactivate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to deactivate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to deactivate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to deactivate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to deactivate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to deactivate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `CustomField` objects to deactivate.
    +     * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest) + private static final com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateCustomFieldsRequest 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.admanager.v1.BatchDeactivateCustomFieldsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsRequestOrBuilder.java new file mode 100644 index 000000000000..a143b6dfd2bd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateCustomFieldsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to deactivate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to deactivate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to deactivate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The resource names of the `CustomField` objects to deactivate.
    +   * Format: `networks/{network_code}/customFields/{custom_field_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsResponse.java new file mode 100644 index 000000000000..acf99d9adb6f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsResponse.java @@ -0,0 +1,443 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchDeactivateCustomFields` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse} + */ +public final class BatchDeactivateCustomFieldsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse) + BatchDeactivateCustomFieldsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateCustomFieldsResponse.newBuilder() to construct. + private BatchDeactivateCustomFieldsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateCustomFieldsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateCustomFieldsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse.class, + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse.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.admanager.v1.BatchDeactivateCustomFieldsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse other = + (com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse) 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.admanager.v1.BatchDeactivateCustomFieldsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse 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.admanager.v1.BatchDeactivateCustomFieldsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse 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.admanager.v1.BatchDeactivateCustomFieldsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchDeactivateCustomFields` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse) + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse.class, + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse build() { + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse result = + new com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse other) { + if (other + == com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse) + private static final com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateCustomFieldsResponse 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.admanager.v1.BatchDeactivateCustomFieldsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsResponseOrBuilder.java new file mode 100644 index 000000000000..a08d3f51f62a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomFieldsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateCustomFieldsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsRequest.java new file mode 100644 index 000000000000..f384ee615786 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsRequest.java @@ -0,0 +1,983 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request message for `BatchDeactivatePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivatePlacementsRequest} + */ +public final class BatchDeactivatePlacementsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivatePlacementsRequest) + BatchDeactivatePlacementsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivatePlacementsRequest.newBuilder() to construct. + private BatchDeactivatePlacementsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivatePlacementsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivatePlacementsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest.class, + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to deactivate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to deactivate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to deactivate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to deactivate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest other = + (com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest 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.admanager.v1.BatchDeactivatePlacementsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest 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.admanager.v1.BatchDeactivatePlacementsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for `BatchDeactivatePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivatePlacementsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivatePlacementsRequest) + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest.class, + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest build() { + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest buildPartial() { + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest result = + new com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest other) { + if (other + == com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.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.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to deactivate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to deactivate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to deactivate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to deactivate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to deactivate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to deactivate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to deactivate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to deactivate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The names of the `Placement` objects to deactivate.
    +     * Format: `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchDeactivatePlacementsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivatePlacementsRequest) + private static final com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest(); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivatePlacementsRequest 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.admanager.v1.BatchDeactivatePlacementsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsRequestOrBuilder.java new file mode 100644 index 000000000000..8b29d9e42fad --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivatePlacementsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivatePlacementsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to deactivate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to deactivate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to deactivate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The names of the `Placement` objects to deactivate.
    +   * Format: `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsResponse.java new file mode 100644 index 000000000000..29d985e6140a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsResponse.java @@ -0,0 +1,439 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchDeactivatePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivatePlacementsResponse} + */ +public final class BatchDeactivatePlacementsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivatePlacementsResponse) + BatchDeactivatePlacementsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivatePlacementsResponse.newBuilder() to construct. + private BatchDeactivatePlacementsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivatePlacementsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivatePlacementsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse.class, + com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse.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.admanager.v1.BatchDeactivatePlacementsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse other = + (com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse) 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.admanager.v1.BatchDeactivatePlacementsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse 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.admanager.v1.BatchDeactivatePlacementsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse 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.admanager.v1.BatchDeactivatePlacementsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchDeactivatePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivatePlacementsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivatePlacementsResponse) + com.google.ads.admanager.v1.BatchDeactivatePlacementsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse.class, + com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse build() { + com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse buildPartial() { + com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse result = + new com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse other) { + if (other + == com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchDeactivatePlacementsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivatePlacementsResponse) + private static final com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse(); + } + + public static com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivatePlacementsResponse 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.admanager.v1.BatchDeactivatePlacementsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsResponseOrBuilder.java new file mode 100644 index 000000000000..d5138dd36119 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivatePlacementsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivatePlacementsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivatePlacementsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesRequest.java new file mode 100644 index 000000000000..7d765a1963d1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesRequest.java @@ -0,0 +1,939 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request message for `BatchDeactivateSites` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateSitesRequest} + */ +public final class BatchDeactivateSitesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateSitesRequest) + BatchDeactivateSitesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateSitesRequest.newBuilder() to construct. + private BatchDeactivateSitesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateSitesRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateSitesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateSitesRequest.class, + com.google.ads.admanager.v1.BatchDeactivateSitesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to deactivate.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to deactivate.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to deactivate.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to deactivate.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchDeactivateSitesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateSitesRequest other = + (com.google.ads.admanager.v1.BatchDeactivateSitesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest 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.admanager.v1.BatchDeactivateSitesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest 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.admanager.v1.BatchDeactivateSitesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchDeactivateSitesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for `BatchDeactivateSites` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateSitesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateSitesRequest) + com.google.ads.admanager.v1.BatchDeactivateSitesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateSitesRequest.class, + com.google.ads.admanager.v1.BatchDeactivateSitesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivateSitesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateSitesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateSitesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateSitesRequest build() { + com.google.ads.admanager.v1.BatchDeactivateSitesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateSitesRequest buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateSitesRequest result = + new com.google.ads.admanager.v1.BatchDeactivateSitesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchDeactivateSitesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateSitesRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivateSitesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchDeactivateSitesRequest other) { + if (other == com.google.ads.admanager.v1.BatchDeactivateSitesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to deactivate.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to deactivate.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to deactivate.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to deactivate.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to deactivate.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to deactivate.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to deactivate.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to deactivate.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to deactivate.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchDeactivateSitesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateSitesRequest) + private static final com.google.ads.admanager.v1.BatchDeactivateSitesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateSitesRequest(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateSitesRequest 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.admanager.v1.BatchDeactivateSitesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesRequestOrBuilder.java new file mode 100644 index 000000000000..d12d0fb68e2f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateSitesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateSitesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to deactivate.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to deactivate.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to deactivate.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to deactivate.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesResponse.java new file mode 100644 index 000000000000..f7cdcc3992e2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesResponse.java @@ -0,0 +1,435 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchDeactivateSites` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateSitesResponse} + */ +public final class BatchDeactivateSitesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateSitesResponse) + BatchDeactivateSitesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateSitesResponse.newBuilder() to construct. + private BatchDeactivateSitesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateSitesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateSitesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateSitesResponse.class, + com.google.ads.admanager.v1.BatchDeactivateSitesResponse.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.admanager.v1.BatchDeactivateSitesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateSitesResponse other = + (com.google.ads.admanager.v1.BatchDeactivateSitesResponse) 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.admanager.v1.BatchDeactivateSitesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse 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.admanager.v1.BatchDeactivateSitesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse 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.admanager.v1.BatchDeactivateSitesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchDeactivateSitesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchDeactivateSites` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateSitesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateSitesResponse) + com.google.ads.admanager.v1.BatchDeactivateSitesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateSitesResponse.class, + com.google.ads.admanager.v1.BatchDeactivateSitesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivateSitesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateSitesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateSitesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateSitesResponse build() { + com.google.ads.admanager.v1.BatchDeactivateSitesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateSitesResponse buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateSitesResponse result = + new com.google.ads.admanager.v1.BatchDeactivateSitesResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateSitesResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivateSitesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchDeactivateSitesResponse other) { + if (other == com.google.ads.admanager.v1.BatchDeactivateSitesResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchDeactivateSitesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateSitesResponse) + private static final com.google.ads.admanager.v1.BatchDeactivateSitesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateSitesResponse(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateSitesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateSitesResponse 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.admanager.v1.BatchDeactivateSitesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesResponseOrBuilder.java new file mode 100644 index 000000000000..7912360bcc56 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateSitesResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateSitesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateSitesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsRequest.java new file mode 100644 index 000000000000..c9fe30d6af1f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request message for `BatchDeactivateTeams` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateTeamsRequest} + */ +public final class BatchDeactivateTeamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateTeamsRequest) + BatchDeactivateTeamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateTeamsRequest.newBuilder() to construct. + private BatchDeactivateTeamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateTeamsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateTeamsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateTeamsRequest.class, + com.google.ads.admanager.v1.BatchDeactivateTeamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to deactivate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to deactivate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to deactivate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to deactivate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchDeactivateTeamsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateTeamsRequest other = + (com.google.ads.admanager.v1.BatchDeactivateTeamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest 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.admanager.v1.BatchDeactivateTeamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest 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.admanager.v1.BatchDeactivateTeamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchDeactivateTeamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for `BatchDeactivateTeams` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateTeamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateTeamsRequest) + com.google.ads.admanager.v1.BatchDeactivateTeamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateTeamsRequest.class, + com.google.ads.admanager.v1.BatchDeactivateTeamsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivateTeamsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateTeamsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateTeamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateTeamsRequest build() { + com.google.ads.admanager.v1.BatchDeactivateTeamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateTeamsRequest buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateTeamsRequest result = + new com.google.ads.admanager.v1.BatchDeactivateTeamsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchDeactivateTeamsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateTeamsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivateTeamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchDeactivateTeamsRequest other) { + if (other == com.google.ads.admanager.v1.BatchDeactivateTeamsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to deactivate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to deactivate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to deactivate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to deactivate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to deactivate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to deactivate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to deactivate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to deactivate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Team`s to deactivate.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchDeactivateTeamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateTeamsRequest) + private static final com.google.ads.admanager.v1.BatchDeactivateTeamsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateTeamsRequest(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateTeamsRequest 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.admanager.v1.BatchDeactivateTeamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsRequestOrBuilder.java new file mode 100644 index 000000000000..55811817ab43 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateTeamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateTeamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to deactivate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to deactivate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to deactivate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The resource names of the `Team`s to deactivate.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsResponse.java new file mode 100644 index 000000000000..e92315c9b944 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsResponse.java @@ -0,0 +1,435 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchDeactivateTeams` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateTeamsResponse} + */ +public final class BatchDeactivateTeamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateTeamsResponse) + BatchDeactivateTeamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateTeamsResponse.newBuilder() to construct. + private BatchDeactivateTeamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateTeamsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateTeamsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateTeamsResponse.class, + com.google.ads.admanager.v1.BatchDeactivateTeamsResponse.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.admanager.v1.BatchDeactivateTeamsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateTeamsResponse other = + (com.google.ads.admanager.v1.BatchDeactivateTeamsResponse) 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.admanager.v1.BatchDeactivateTeamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse 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.admanager.v1.BatchDeactivateTeamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse 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.admanager.v1.BatchDeactivateTeamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchDeactivateTeamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchDeactivateTeams` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateTeamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateTeamsResponse) + com.google.ads.admanager.v1.BatchDeactivateTeamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateTeamsResponse.class, + com.google.ads.admanager.v1.BatchDeactivateTeamsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivateTeamsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateTeamsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateTeamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateTeamsResponse build() { + com.google.ads.admanager.v1.BatchDeactivateTeamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateTeamsResponse buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateTeamsResponse result = + new com.google.ads.admanager.v1.BatchDeactivateTeamsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateTeamsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivateTeamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchDeactivateTeamsResponse other) { + if (other == com.google.ads.admanager.v1.BatchDeactivateTeamsResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchDeactivateTeamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateTeamsResponse) + private static final com.google.ads.admanager.v1.BatchDeactivateTeamsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateTeamsResponse(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateTeamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateTeamsResponse 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.admanager.v1.BatchDeactivateTeamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsResponseOrBuilder.java new file mode 100644 index 000000000000..71a6359d1970 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateTeamsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateTeamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateTeamsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalRequest.java new file mode 100644 index 000000000000..a62ac3befb7c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalRequest.java @@ -0,0 +1,946 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request message for `BatchSubmitSitesForApproval` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest} + */ +public final class BatchSubmitSitesForApprovalRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest) + BatchSubmitSitesForApprovalRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchSubmitSitesForApprovalRequest.newBuilder() to construct. + private BatchSubmitSitesForApprovalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchSubmitSitesForApprovalRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchSubmitSitesForApprovalRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest.class, + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to submit for approval.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to submit for approval.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to submit for approval.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to submit for approval.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest other = + (com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest 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.admanager.v1.BatchSubmitSitesForApprovalRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest 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.admanager.v1.BatchSubmitSitesForApprovalRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for `BatchSubmitSitesForApproval` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest) + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest.class, + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest build() { + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest buildPartial() { + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest result = + new com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest other) { + if (other + == com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to submit for approval.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to submit for approval.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to submit for approval.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to submit for approval.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to submit for approval.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to submit for approval.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to submit for approval.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to submit for approval.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource names of the `Site` objects to submit for approval.
    +     * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest) + private static final com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest(); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchSubmitSitesForApprovalRequest 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.admanager.v1.BatchSubmitSitesForApprovalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalRequestOrBuilder.java new file mode 100644 index 000000000000..a2c6410bb59b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchSubmitSitesForApprovalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to submit for approval.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to submit for approval.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to submit for approval.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
    +   * Required. The resource names of the `Site` objects to submit for approval.
    +   * 
    + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalResponse.java new file mode 100644 index 000000000000..0efabf64d682 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalResponse.java @@ -0,0 +1,443 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchSubmitSitesForApproval` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse} + */ +public final class BatchSubmitSitesForApprovalResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse) + BatchSubmitSitesForApprovalResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchSubmitSitesForApprovalResponse.newBuilder() to construct. + private BatchSubmitSitesForApprovalResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchSubmitSitesForApprovalResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchSubmitSitesForApprovalResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse.class, + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse.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.admanager.v1.BatchSubmitSitesForApprovalResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse other = + (com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse) 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.admanager.v1.BatchSubmitSitesForApprovalResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse 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.admanager.v1.BatchSubmitSitesForApprovalResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse 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.admanager.v1.BatchSubmitSitesForApprovalResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchSubmitSitesForApproval` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse) + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse.class, + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse build() { + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse buildPartial() { + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse result = + new com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse other) { + if (other + == com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse) + private static final com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse(); + } + + public static com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchSubmitSitesForApprovalResponse 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.admanager.v1.BatchSubmitSitesForApprovalResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalResponseOrBuilder.java new file mode 100644 index 000000000000..b55664d2b624 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchSubmitSitesForApprovalResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchSubmitSitesForApprovalResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsRequest.java new file mode 100644 index 000000000000..8ba986f4bf8a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsRequest.java @@ -0,0 +1,1258 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchUpdateContacts` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateContactsRequest} + */ +public final class BatchUpdateContactsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateContactsRequest) + BatchUpdateContactsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateContactsRequest.newBuilder() to construct. + private BatchUpdateContactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateContactsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateContactsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateContactsRequest.class, + com.google.ads.admanager.v1.BatchUpdateContactsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where `Contacts` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateContactRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 where `Contacts` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateContactRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateContactRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateContactRequestOrBuilder getRequestsOrBuilder(int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchUpdateContactsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateContactsRequest other = + (com.google.ads.admanager.v1.BatchUpdateContactsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest 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.admanager.v1.BatchUpdateContactsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest 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.admanager.v1.BatchUpdateContactsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchUpdateContactsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchUpdateContacts` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateContactsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateContactsRequest) + com.google.ads.admanager.v1.BatchUpdateContactsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateContactsRequest.class, + com.google.ads.admanager.v1.BatchUpdateContactsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateContactsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateContactsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateContactsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateContactsRequest build() { + com.google.ads.admanager.v1.BatchUpdateContactsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateContactsRequest buildPartial() { + com.google.ads.admanager.v1.BatchUpdateContactsRequest result = + new com.google.ads.admanager.v1.BatchUpdateContactsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateContactsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateContactsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateContactsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateContactsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateContactsRequest other) { + if (other == com.google.ads.admanager.v1.BatchUpdateContactsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.UpdateContactRequest m = + input.readMessage( + com.google.ads.admanager.v1.UpdateContactRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where `Contacts` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Contacts` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Contacts` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Contacts` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Contacts` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateContactRequest must match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateContactRequest, + com.google.ads.admanager.v1.UpdateContactRequest.Builder, + com.google.ads.admanager.v1.UpdateContactRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateContactRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests(int index, com.google.ads.admanager.v1.UpdateContactRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.UpdateContactRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.UpdateContactRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(int index, com.google.ads.admanager.v1.UpdateContactRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.UpdateContactRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.UpdateContactRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateContactRequest.Builder getRequestsBuilder(int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateContactRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateContactRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.UpdateContactRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateContactRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.UpdateContactRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Contact` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateContactRequest, + com.google.ads.admanager.v1.UpdateContactRequest.Builder, + com.google.ads.admanager.v1.UpdateContactRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateContactRequest, + com.google.ads.admanager.v1.UpdateContactRequest.Builder, + com.google.ads.admanager.v1.UpdateContactRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdateContactsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateContactsRequest) + private static final com.google.ads.admanager.v1.BatchUpdateContactsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateContactsRequest(); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateContactsRequest 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.admanager.v1.BatchUpdateContactsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsRequestOrBuilder.java new file mode 100644 index 000000000000..bddb9d500799 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateContactsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateContactsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where `Contacts` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateContactRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where `Contacts` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateContactRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateContactRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `Contact` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateContactRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateContactRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsResponse.java new file mode 100644 index 000000000000..bbf0b0d3aef5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsResponse.java @@ -0,0 +1,960 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchUpdateContacts` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateContactsResponse} + */ +public final class BatchUpdateContactsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateContactsResponse) + BatchUpdateContactsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateContactsResponse.newBuilder() to construct. + private BatchUpdateContactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateContactsResponse() { + contacts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateContactsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateContactsResponse.class, + com.google.ads.admanager.v1.BatchUpdateContactsResponse.Builder.class); + } + + public static final int CONTACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List contacts_; + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public java.util.List getContactsList() { + return contacts_; + } + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public java.util.List + getContactsOrBuilderList() { + return contacts_; + } + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public int getContactsCount() { + return contacts_.size(); + } + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Contact getContacts(int index) { + return contacts_.get(index); + } + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContactOrBuilder getContactsOrBuilder(int index) { + return contacts_.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 < contacts_.size(); i++) { + output.writeMessage(1, contacts_.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 < contacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contacts_.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.admanager.v1.BatchUpdateContactsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateContactsResponse other = + (com.google.ads.admanager.v1.BatchUpdateContactsResponse) obj; + + if (!getContactsList().equals(other.getContactsList())) 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 (getContactsCount() > 0) { + hash = (37 * hash) + CONTACTS_FIELD_NUMBER; + hash = (53 * hash) + getContactsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse 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.admanager.v1.BatchUpdateContactsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse 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.admanager.v1.BatchUpdateContactsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchUpdateContactsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchUpdateContacts` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateContactsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateContactsResponse) + com.google.ads.admanager.v1.BatchUpdateContactsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateContactsResponse.class, + com.google.ads.admanager.v1.BatchUpdateContactsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateContactsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + } else { + contacts_ = null; + contactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateContactsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateContactsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateContactsResponse build() { + com.google.ads.admanager.v1.BatchUpdateContactsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateContactsResponse buildPartial() { + com.google.ads.admanager.v1.BatchUpdateContactsResponse result = + new com.google.ads.admanager.v1.BatchUpdateContactsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateContactsResponse result) { + if (contactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contacts_ = java.util.Collections.unmodifiableList(contacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contacts_ = contacts_; + } else { + result.contacts_ = contactsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateContactsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateContactsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateContactsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateContactsResponse other) { + if (other == com.google.ads.admanager.v1.BatchUpdateContactsResponse.getDefaultInstance()) + return this; + if (contactsBuilder_ == null) { + if (!other.contacts_.isEmpty()) { + if (contacts_.isEmpty()) { + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContactsIsMutable(); + contacts_.addAll(other.contacts_); + } + onChanged(); + } + } else { + if (!other.contacts_.isEmpty()) { + if (contactsBuilder_.isEmpty()) { + contactsBuilder_.dispose(); + contactsBuilder_ = null; + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000001); + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContactsFieldBuilder() + : null; + } else { + contactsBuilder_.addAllMessages(other.contacts_); + } + } + } + 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.admanager.v1.Contact m = + input.readMessage( + com.google.ads.admanager.v1.Contact.parser(), extensionRegistry); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(m); + } else { + contactsBuilder_.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 contacts_ = + java.util.Collections.emptyList(); + + private void ensureContactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contacts_ = new java.util.ArrayList(contacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + contactsBuilder_; + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public java.util.List getContactsList() { + if (contactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contacts_); + } else { + return contactsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public int getContactsCount() { + if (contactsBuilder_ == null) { + return contacts_.size(); + } else { + return contactsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact getContacts(int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder setContacts(int index, com.google.ads.admanager.v1.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.set(index, value); + onChanged(); + } else { + contactsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder setContacts( + int index, com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.set(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts(com.google.ads.admanager.v1.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(value); + onChanged(); + } else { + contactsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts(int index, com.google.ads.admanager.v1.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(index, value); + onChanged(); + } else { + contactsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts(com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts( + int index, com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addAllContacts( + java.lang.Iterable values) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_); + onChanged(); + } else { + contactsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder clearContacts() { + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contactsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder removeContacts(int index) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.remove(index); + onChanged(); + } else { + contactsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact.Builder getContactsBuilder(int index) { + return getContactsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.ContactOrBuilder getContactsOrBuilder(int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public java.util.List + getContactsOrBuilderList() { + if (contactsBuilder_ != null) { + return contactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contacts_); + } + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact.Builder addContactsBuilder() { + return getContactsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Contact.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact.Builder addContactsBuilder(int index) { + return getContactsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Contact.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Contact` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public java.util.List getContactsBuilderList() { + return getContactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + getContactsFieldBuilder() { + if (contactsBuilder_ == null) { + contactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder>( + contacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + contacts_ = null; + } + return contactsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdateContactsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateContactsResponse) + private static final com.google.ads.admanager.v1.BatchUpdateContactsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateContactsResponse(); + } + + public static com.google.ads.admanager.v1.BatchUpdateContactsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateContactsResponse 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.admanager.v1.BatchUpdateContactsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsResponseOrBuilder.java new file mode 100644 index 000000000000..de0e32ed08f9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateContactsResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateContactsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateContactsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + java.util.List getContactsList(); + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + com.google.ads.admanager.v1.Contact getContacts(int index); + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + int getContactsCount(); + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + java.util.List getContactsOrBuilderList(); + + /** + * + * + *
    +   * The `Contact` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + com.google.ads.admanager.v1.ContactOrBuilder getContactsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsRequest.java new file mode 100644 index 000000000000..5f804340ff2c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsRequest.java @@ -0,0 +1,1266 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchUpdateCustomFields` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateCustomFieldsRequest} + */ +public final class BatchUpdateCustomFieldsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateCustomFieldsRequest) + BatchUpdateCustomFieldsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateCustomFieldsRequest.newBuilder() to construct. + private BatchUpdateCustomFieldsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateCustomFieldsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateCustomFieldsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest.class, + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where `CustomFields` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateCustomFieldRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 where `CustomFields` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateCustomFieldRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomFieldRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomFieldRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchUpdateCustomFieldsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest other = + (com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest 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.admanager.v1.BatchUpdateCustomFieldsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest 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.admanager.v1.BatchUpdateCustomFieldsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchUpdateCustomFields` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateCustomFieldsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateCustomFieldsRequest) + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest.class, + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest build() { + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest buildPartial() { + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest result = + new com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest other) { + if (other == com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.UpdateCustomFieldRequest m = + input.readMessage( + com.google.ads.admanager.v1.UpdateCustomFieldRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where `CustomFields` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `CustomFields` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `CustomFields` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `CustomFields` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `CustomFields` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateCustomFieldRequest must match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateCustomFieldRequest, + com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder, + com.google.ads.admanager.v1.UpdateCustomFieldRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomFieldRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.UpdateCustomFieldRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.UpdateCustomFieldRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.UpdateCustomFieldRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomFieldRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.UpdateCustomFieldRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.UpdateCustomFieldRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `CustomField` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateCustomFieldRequest, + com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder, + com.google.ads.admanager.v1.UpdateCustomFieldRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateCustomFieldRequest, + com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder, + com.google.ads.admanager.v1.UpdateCustomFieldRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdateCustomFieldsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateCustomFieldsRequest) + private static final com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest(); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateCustomFieldsRequest 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.admanager.v1.BatchUpdateCustomFieldsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsRequestOrBuilder.java new file mode 100644 index 000000000000..9cdd8e754991 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateCustomFieldsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateCustomFieldsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where `CustomFields` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateCustomFieldRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where `CustomFields` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateCustomFieldRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateCustomFieldRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `CustomField` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateCustomFieldRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateCustomFieldRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsResponse.java new file mode 100644 index 000000000000..5d5f8b40ced9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsResponse.java @@ -0,0 +1,964 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchUpdateCustomFields` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateCustomFieldsResponse} + */ +public final class BatchUpdateCustomFieldsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateCustomFieldsResponse) + BatchUpdateCustomFieldsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateCustomFieldsResponse.newBuilder() to construct. + private BatchUpdateCustomFieldsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateCustomFieldsResponse() { + customFields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateCustomFieldsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse.class, + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse.Builder.class); + } + + public static final int CUSTOM_FIELDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customFields_; + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public java.util.List getCustomFieldsList() { + return customFields_; + } + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public java.util.List + getCustomFieldsOrBuilderList() { + return customFields_; + } + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public int getCustomFieldsCount() { + return customFields_.size(); + } + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomField getCustomFields(int index) { + return customFields_.get(index); + } + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldsOrBuilder(int index) { + return customFields_.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 < customFields_.size(); i++) { + output.writeMessage(1, customFields_.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 < customFields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customFields_.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.admanager.v1.BatchUpdateCustomFieldsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse other = + (com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse) obj; + + if (!getCustomFieldsList().equals(other.getCustomFieldsList())) 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 (getCustomFieldsCount() > 0) { + hash = (37 * hash) + CUSTOM_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getCustomFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse 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.admanager.v1.BatchUpdateCustomFieldsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse 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.admanager.v1.BatchUpdateCustomFieldsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchUpdateCustomFields` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateCustomFieldsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateCustomFieldsResponse) + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse.class, + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customFieldsBuilder_ == null) { + customFields_ = java.util.Collections.emptyList(); + } else { + customFields_ = null; + customFieldsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse build() { + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse buildPartial() { + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse result = + new com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse result) { + if (customFieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customFields_ = java.util.Collections.unmodifiableList(customFields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customFields_ = customFields_; + } else { + result.customFields_ = customFieldsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse other) { + if (other == com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse.getDefaultInstance()) + return this; + if (customFieldsBuilder_ == null) { + if (!other.customFields_.isEmpty()) { + if (customFields_.isEmpty()) { + customFields_ = other.customFields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomFieldsIsMutable(); + customFields_.addAll(other.customFields_); + } + onChanged(); + } + } else { + if (!other.customFields_.isEmpty()) { + if (customFieldsBuilder_.isEmpty()) { + customFieldsBuilder_.dispose(); + customFieldsBuilder_ = null; + customFields_ = other.customFields_; + bitField0_ = (bitField0_ & ~0x00000001); + customFieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomFieldsFieldBuilder() + : null; + } else { + customFieldsBuilder_.addAllMessages(other.customFields_); + } + } + } + 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.admanager.v1.CustomField m = + input.readMessage( + com.google.ads.admanager.v1.CustomField.parser(), extensionRegistry); + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.add(m); + } else { + customFieldsBuilder_.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 customFields_ = + java.util.Collections.emptyList(); + + private void ensureCustomFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customFields_ = + new java.util.ArrayList(customFields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder> + customFieldsBuilder_; + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public java.util.List getCustomFieldsList() { + if (customFieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customFields_); + } else { + return customFieldsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public int getCustomFieldsCount() { + if (customFieldsBuilder_ == null) { + return customFields_.size(); + } else { + return customFieldsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomField getCustomFields(int index) { + if (customFieldsBuilder_ == null) { + return customFields_.get(index); + } else { + return customFieldsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder setCustomFields(int index, com.google.ads.admanager.v1.CustomField value) { + if (customFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomFieldsIsMutable(); + customFields_.set(index, value); + onChanged(); + } else { + customFieldsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder setCustomFields( + int index, com.google.ads.admanager.v1.CustomField.Builder builderForValue) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.set(index, builderForValue.build()); + onChanged(); + } else { + customFieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addCustomFields(com.google.ads.admanager.v1.CustomField value) { + if (customFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomFieldsIsMutable(); + customFields_.add(value); + onChanged(); + } else { + customFieldsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addCustomFields(int index, com.google.ads.admanager.v1.CustomField value) { + if (customFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomFieldsIsMutable(); + customFields_.add(index, value); + onChanged(); + } else { + customFieldsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addCustomFields( + com.google.ads.admanager.v1.CustomField.Builder builderForValue) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.add(builderForValue.build()); + onChanged(); + } else { + customFieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addCustomFields( + int index, com.google.ads.admanager.v1.CustomField.Builder builderForValue) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.add(index, builderForValue.build()); + onChanged(); + } else { + customFieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder addAllCustomFields( + java.lang.Iterable values) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customFields_); + onChanged(); + } else { + customFieldsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder clearCustomFields() { + if (customFieldsBuilder_ == null) { + customFields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customFieldsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public Builder removeCustomFields(int index) { + if (customFieldsBuilder_ == null) { + ensureCustomFieldsIsMutable(); + customFields_.remove(index); + onChanged(); + } else { + customFieldsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomField.Builder getCustomFieldsBuilder(int index) { + return getCustomFieldsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldsOrBuilder(int index) { + if (customFieldsBuilder_ == null) { + return customFields_.get(index); + } else { + return customFieldsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public java.util.List + getCustomFieldsOrBuilderList() { + if (customFieldsBuilder_ != null) { + return customFieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customFields_); + } + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomField.Builder addCustomFieldsBuilder() { + return getCustomFieldsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CustomField.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public com.google.ads.admanager.v1.CustomField.Builder addCustomFieldsBuilder(int index) { + return getCustomFieldsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CustomField.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CustomField` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + public java.util.List + getCustomFieldsBuilderList() { + return getCustomFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder> + getCustomFieldsFieldBuilder() { + if (customFieldsBuilder_ == null) { + customFieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder>( + customFields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + customFields_ = null; + } + return customFieldsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdateCustomFieldsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateCustomFieldsResponse) + private static final com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse(); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateCustomFieldsResponse 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.admanager.v1.BatchUpdateCustomFieldsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsResponseOrBuilder.java new file mode 100644 index 000000000000..4d4f423dcf5d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomFieldsResponseOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateCustomFieldsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateCustomFieldsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + java.util.List getCustomFieldsList(); + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + com.google.ads.admanager.v1.CustomField getCustomFields(int index); + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + int getCustomFieldsCount(); + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + java.util.List + getCustomFieldsOrBuilderList(); + + /** + * + * + *
    +   * The `CustomField` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CustomField custom_fields = 1; + */ + com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsRequest.java new file mode 100644 index 000000000000..750b127a0243 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsRequest.java @@ -0,0 +1,1264 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchUpdatePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdatePlacementsRequest} + */ +public final class BatchUpdatePlacementsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdatePlacementsRequest) + BatchUpdatePlacementsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdatePlacementsRequest.newBuilder() to construct. + private BatchUpdatePlacementsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdatePlacementsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdatePlacementsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdatePlacementsRequest.class, + com.google.ads.admanager.v1.BatchUpdatePlacementsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where `Placements` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdatePlacementsRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 where `Placements` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdatePlacementsRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePlacementRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePlacementRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchUpdatePlacementsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdatePlacementsRequest other = + (com.google.ads.admanager.v1.BatchUpdatePlacementsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest 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.admanager.v1.BatchUpdatePlacementsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest 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.admanager.v1.BatchUpdatePlacementsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchUpdatePlacementsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchUpdatePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdatePlacementsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdatePlacementsRequest) + com.google.ads.admanager.v1.BatchUpdatePlacementsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdatePlacementsRequest.class, + com.google.ads.admanager.v1.BatchUpdatePlacementsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdatePlacementsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdatePlacementsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdatePlacementsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdatePlacementsRequest build() { + com.google.ads.admanager.v1.BatchUpdatePlacementsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdatePlacementsRequest buildPartial() { + com.google.ads.admanager.v1.BatchUpdatePlacementsRequest result = + new com.google.ads.admanager.v1.BatchUpdatePlacementsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdatePlacementsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdatePlacementsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdatePlacementsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdatePlacementsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdatePlacementsRequest other) { + if (other == com.google.ads.admanager.v1.BatchUpdatePlacementsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.UpdatePlacementRequest m = + input.readMessage( + com.google.ads.admanager.v1.UpdatePlacementRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where `Placements` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdatePlacementsRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Placements` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdatePlacementsRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Placements` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdatePlacementsRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Placements` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdatePlacementsRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Placements` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdatePlacementsRequest must match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdatePlacementRequest, + com.google.ads.admanager.v1.UpdatePlacementRequest.Builder, + com.google.ads.admanager.v1.UpdatePlacementRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdatePlacementRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.UpdatePlacementRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.UpdatePlacementRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.UpdatePlacementRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.UpdatePlacementRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.UpdatePlacementRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.UpdatePlacementRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdatePlacementRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdatePlacementRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdatePlacementRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.UpdatePlacementRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdatePlacementRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.UpdatePlacementRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Placement` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdatePlacementRequest, + com.google.ads.admanager.v1.UpdatePlacementRequest.Builder, + com.google.ads.admanager.v1.UpdatePlacementRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdatePlacementRequest, + com.google.ads.admanager.v1.UpdatePlacementRequest.Builder, + com.google.ads.admanager.v1.UpdatePlacementRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdatePlacementsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdatePlacementsRequest) + private static final com.google.ads.admanager.v1.BatchUpdatePlacementsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdatePlacementsRequest(); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdatePlacementsRequest 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.admanager.v1.BatchUpdatePlacementsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsRequestOrBuilder.java new file mode 100644 index 000000000000..c67486c15c20 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdatePlacementsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdatePlacementsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where `Placements` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdatePlacementsRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where `Placements` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdatePlacementsRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdatePlacementRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `Placement` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdatePlacementRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdatePlacementRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsResponse.java new file mode 100644 index 000000000000..154e70c09708 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsResponse.java @@ -0,0 +1,961 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchUpdatePlacements` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdatePlacementsResponse} + */ +public final class BatchUpdatePlacementsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdatePlacementsResponse) + BatchUpdatePlacementsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdatePlacementsResponse.newBuilder() to construct. + private BatchUpdatePlacementsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdatePlacementsResponse() { + placements_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdatePlacementsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdatePlacementsResponse.class, + com.google.ads.admanager.v1.BatchUpdatePlacementsResponse.Builder.class); + } + + public static final int PLACEMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List placements_; + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public java.util.List getPlacementsList() { + return placements_; + } + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public java.util.List + getPlacementsOrBuilderList() { + return placements_; + } + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public int getPlacementsCount() { + return placements_.size(); + } + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Placement getPlacements(int index) { + return placements_.get(index); + } + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.PlacementOrBuilder getPlacementsOrBuilder(int index) { + return placements_.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 < placements_.size(); i++) { + output.writeMessage(1, placements_.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 < placements_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, placements_.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.admanager.v1.BatchUpdatePlacementsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdatePlacementsResponse other = + (com.google.ads.admanager.v1.BatchUpdatePlacementsResponse) obj; + + if (!getPlacementsList().equals(other.getPlacementsList())) 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 (getPlacementsCount() > 0) { + hash = (37 * hash) + PLACEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getPlacementsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse 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.admanager.v1.BatchUpdatePlacementsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse 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.admanager.v1.BatchUpdatePlacementsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.BatchUpdatePlacementsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchUpdatePlacements` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdatePlacementsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdatePlacementsResponse) + com.google.ads.admanager.v1.BatchUpdatePlacementsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdatePlacementsResponse.class, + com.google.ads.admanager.v1.BatchUpdatePlacementsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdatePlacementsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (placementsBuilder_ == null) { + placements_ = java.util.Collections.emptyList(); + } else { + placements_ = null; + placementsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdatePlacementsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdatePlacementsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdatePlacementsResponse build() { + com.google.ads.admanager.v1.BatchUpdatePlacementsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdatePlacementsResponse buildPartial() { + com.google.ads.admanager.v1.BatchUpdatePlacementsResponse result = + new com.google.ads.admanager.v1.BatchUpdatePlacementsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdatePlacementsResponse result) { + if (placementsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + placements_ = java.util.Collections.unmodifiableList(placements_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.placements_ = placements_; + } else { + result.placements_ = placementsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdatePlacementsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdatePlacementsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdatePlacementsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdatePlacementsResponse other) { + if (other == com.google.ads.admanager.v1.BatchUpdatePlacementsResponse.getDefaultInstance()) + return this; + if (placementsBuilder_ == null) { + if (!other.placements_.isEmpty()) { + if (placements_.isEmpty()) { + placements_ = other.placements_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePlacementsIsMutable(); + placements_.addAll(other.placements_); + } + onChanged(); + } + } else { + if (!other.placements_.isEmpty()) { + if (placementsBuilder_.isEmpty()) { + placementsBuilder_.dispose(); + placementsBuilder_ = null; + placements_ = other.placements_; + bitField0_ = (bitField0_ & ~0x00000001); + placementsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPlacementsFieldBuilder() + : null; + } else { + placementsBuilder_.addAllMessages(other.placements_); + } + } + } + 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.admanager.v1.Placement m = + input.readMessage( + com.google.ads.admanager.v1.Placement.parser(), extensionRegistry); + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.add(m); + } else { + placementsBuilder_.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 placements_ = + java.util.Collections.emptyList(); + + private void ensurePlacementsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + placements_ = new java.util.ArrayList(placements_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder> + placementsBuilder_; + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public java.util.List getPlacementsList() { + if (placementsBuilder_ == null) { + return java.util.Collections.unmodifiableList(placements_); + } else { + return placementsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public int getPlacementsCount() { + if (placementsBuilder_ == null) { + return placements_.size(); + } else { + return placementsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.Placement getPlacements(int index) { + if (placementsBuilder_ == null) { + return placements_.get(index); + } else { + return placementsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder setPlacements(int index, com.google.ads.admanager.v1.Placement value) { + if (placementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlacementsIsMutable(); + placements_.set(index, value); + onChanged(); + } else { + placementsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder setPlacements( + int index, com.google.ads.admanager.v1.Placement.Builder builderForValue) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.set(index, builderForValue.build()); + onChanged(); + } else { + placementsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addPlacements(com.google.ads.admanager.v1.Placement value) { + if (placementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlacementsIsMutable(); + placements_.add(value); + onChanged(); + } else { + placementsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addPlacements(int index, com.google.ads.admanager.v1.Placement value) { + if (placementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlacementsIsMutable(); + placements_.add(index, value); + onChanged(); + } else { + placementsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addPlacements(com.google.ads.admanager.v1.Placement.Builder builderForValue) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.add(builderForValue.build()); + onChanged(); + } else { + placementsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addPlacements( + int index, com.google.ads.admanager.v1.Placement.Builder builderForValue) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.add(index, builderForValue.build()); + onChanged(); + } else { + placementsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder addAllPlacements( + java.lang.Iterable values) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, placements_); + onChanged(); + } else { + placementsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder clearPlacements() { + if (placementsBuilder_ == null) { + placements_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + placementsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public Builder removePlacements(int index) { + if (placementsBuilder_ == null) { + ensurePlacementsIsMutable(); + placements_.remove(index); + onChanged(); + } else { + placementsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.Placement.Builder getPlacementsBuilder(int index) { + return getPlacementsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.PlacementOrBuilder getPlacementsOrBuilder(int index) { + if (placementsBuilder_ == null) { + return placements_.get(index); + } else { + return placementsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public java.util.List + getPlacementsOrBuilderList() { + if (placementsBuilder_ != null) { + return placementsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(placements_); + } + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.Placement.Builder addPlacementsBuilder() { + return getPlacementsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Placement.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public com.google.ads.admanager.v1.Placement.Builder addPlacementsBuilder(int index) { + return getPlacementsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Placement.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Placement` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + public java.util.List + getPlacementsBuilderList() { + return getPlacementsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder> + getPlacementsFieldBuilder() { + if (placementsBuilder_ == null) { + placementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder>( + placements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + placements_ = null; + } + return placementsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdatePlacementsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdatePlacementsResponse) + private static final com.google.ads.admanager.v1.BatchUpdatePlacementsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdatePlacementsResponse(); + } + + public static com.google.ads.admanager.v1.BatchUpdatePlacementsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdatePlacementsResponse 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.admanager.v1.BatchUpdatePlacementsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsResponseOrBuilder.java new file mode 100644 index 000000000000..840bd6b46188 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdatePlacementsResponseOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdatePlacementsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdatePlacementsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + java.util.List getPlacementsList(); + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + com.google.ads.admanager.v1.Placement getPlacements(int index); + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + int getPlacementsCount(); + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + java.util.List + getPlacementsOrBuilderList(); + + /** + * + * + *
    +   * The `Placement` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Placement placements = 1; + */ + com.google.ads.admanager.v1.PlacementOrBuilder getPlacementsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesRequest.java new file mode 100644 index 000000000000..1a877a971a8e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesRequest.java @@ -0,0 +1,1255 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchUpdateSites` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateSitesRequest} + */ +public final class BatchUpdateSitesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateSitesRequest) + BatchUpdateSitesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateSitesRequest.newBuilder() to construct. + private BatchUpdateSitesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateSitesRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateSitesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateSitesRequest.class, + com.google.ads.admanager.v1.BatchUpdateSitesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where `Sites` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateSiteRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 where `Sites` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateSiteRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateSiteRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateSiteRequestOrBuilder getRequestsOrBuilder(int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchUpdateSitesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateSitesRequest other = + (com.google.ads.admanager.v1.BatchUpdateSitesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest 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.admanager.v1.BatchUpdateSitesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest 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.admanager.v1.BatchUpdateSitesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BatchUpdateSitesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchUpdateSites` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateSitesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateSitesRequest) + com.google.ads.admanager.v1.BatchUpdateSitesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateSitesRequest.class, + com.google.ads.admanager.v1.BatchUpdateSitesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateSitesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateSitesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateSitesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateSitesRequest build() { + com.google.ads.admanager.v1.BatchUpdateSitesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateSitesRequest buildPartial() { + com.google.ads.admanager.v1.BatchUpdateSitesRequest result = + new com.google.ads.admanager.v1.BatchUpdateSitesRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateSitesRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateSitesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateSitesRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateSitesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateSitesRequest other) { + if (other == com.google.ads.admanager.v1.BatchUpdateSitesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.UpdateSiteRequest m = + input.readMessage( + com.google.ads.admanager.v1.UpdateSiteRequest.parser(), extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where `Sites` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Sites` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Sites` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Sites` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Sites` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateSiteRequest must match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateSiteRequest, + com.google.ads.admanager.v1.UpdateSiteRequest.Builder, + com.google.ads.admanager.v1.UpdateSiteRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateSiteRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests(int index, com.google.ads.admanager.v1.UpdateSiteRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.UpdateSiteRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.UpdateSiteRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(int index, com.google.ads.admanager.v1.UpdateSiteRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.UpdateSiteRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.UpdateSiteRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateSiteRequest.Builder getRequestsBuilder(int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateSiteRequestOrBuilder getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateSiteRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.UpdateSiteRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateSiteRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.UpdateSiteRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Site` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateSiteRequest, + com.google.ads.admanager.v1.UpdateSiteRequest.Builder, + com.google.ads.admanager.v1.UpdateSiteRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateSiteRequest, + com.google.ads.admanager.v1.UpdateSiteRequest.Builder, + com.google.ads.admanager.v1.UpdateSiteRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdateSitesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateSitesRequest) + private static final com.google.ads.admanager.v1.BatchUpdateSitesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateSitesRequest(); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateSitesRequest 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.admanager.v1.BatchUpdateSitesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesRequestOrBuilder.java new file mode 100644 index 000000000000..b69beecd05fc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateSitesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateSitesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where `Sites` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateSiteRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where `Sites` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateSiteRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateSiteRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `Site` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateSiteRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesResponse.java new file mode 100644 index 000000000000..1b7b58f2c74b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesResponse.java @@ -0,0 +1,956 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchUpdateSites` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateSitesResponse} + */ +public final class BatchUpdateSitesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateSitesResponse) + BatchUpdateSitesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateSitesResponse.newBuilder() to construct. + private BatchUpdateSitesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateSitesResponse() { + sites_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateSitesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateSitesResponse.class, + com.google.ads.admanager.v1.BatchUpdateSitesResponse.Builder.class); + } + + public static final int SITES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sites_; + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public java.util.List getSitesList() { + return sites_; + } + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public java.util.List + getSitesOrBuilderList() { + return sites_; + } + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public int getSitesCount() { + return sites_.size(); + } + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Site getSites(int index) { + return sites_.get(index); + } + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.SiteOrBuilder getSitesOrBuilder(int index) { + return sites_.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 < sites_.size(); i++) { + output.writeMessage(1, sites_.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 < sites_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sites_.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.admanager.v1.BatchUpdateSitesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateSitesResponse other = + (com.google.ads.admanager.v1.BatchUpdateSitesResponse) obj; + + if (!getSitesList().equals(other.getSitesList())) 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 (getSitesCount() > 0) { + hash = (37 * hash) + SITES_FIELD_NUMBER; + hash = (53 * hash) + getSitesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse 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.admanager.v1.BatchUpdateSitesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse 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.admanager.v1.BatchUpdateSitesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BatchUpdateSitesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchUpdateSites` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateSitesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateSitesResponse) + com.google.ads.admanager.v1.BatchUpdateSitesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateSitesResponse.class, + com.google.ads.admanager.v1.BatchUpdateSitesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateSitesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + } else { + sites_ = null; + sitesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateSitesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateSitesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateSitesResponse build() { + com.google.ads.admanager.v1.BatchUpdateSitesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateSitesResponse buildPartial() { + com.google.ads.admanager.v1.BatchUpdateSitesResponse result = + new com.google.ads.admanager.v1.BatchUpdateSitesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateSitesResponse result) { + if (sitesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sites_ = java.util.Collections.unmodifiableList(sites_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sites_ = sites_; + } else { + result.sites_ = sitesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateSitesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateSitesResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateSitesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateSitesResponse other) { + if (other == com.google.ads.admanager.v1.BatchUpdateSitesResponse.getDefaultInstance()) + return this; + if (sitesBuilder_ == null) { + if (!other.sites_.isEmpty()) { + if (sites_.isEmpty()) { + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSitesIsMutable(); + sites_.addAll(other.sites_); + } + onChanged(); + } + } else { + if (!other.sites_.isEmpty()) { + if (sitesBuilder_.isEmpty()) { + sitesBuilder_.dispose(); + sitesBuilder_ = null; + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000001); + sitesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSitesFieldBuilder() + : null; + } else { + sitesBuilder_.addAllMessages(other.sites_); + } + } + } + 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.admanager.v1.Site m = + input.readMessage(com.google.ads.admanager.v1.Site.parser(), extensionRegistry); + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(m); + } else { + sitesBuilder_.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 sites_ = + java.util.Collections.emptyList(); + + private void ensureSitesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sites_ = new java.util.ArrayList(sites_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + sitesBuilder_; + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public java.util.List getSitesList() { + if (sitesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sites_); + } else { + return sitesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public int getSitesCount() { + if (sitesBuilder_ == null) { + return sites_.size(); + } else { + return sitesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site getSites(int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder setSites(int index, com.google.ads.admanager.v1.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.set(index, value); + onChanged(); + } else { + sitesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder setSites(int index, com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.set(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(com.google.ads.admanager.v1.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(value); + onChanged(); + } else { + sitesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(int index, com.google.ads.admanager.v1.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(index, value); + onChanged(); + } else { + sitesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(int index, com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addAllSites( + java.lang.Iterable values) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sites_); + onChanged(); + } else { + sitesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder clearSites() { + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sitesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder removeSites(int index) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.remove(index); + onChanged(); + } else { + sitesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site.Builder getSitesBuilder(int index) { + return getSitesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.SiteOrBuilder getSitesOrBuilder(int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public java.util.List + getSitesOrBuilderList() { + if (sitesBuilder_ != null) { + return sitesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sites_); + } + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site.Builder addSitesBuilder() { + return getSitesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Site.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site.Builder addSitesBuilder(int index) { + return getSitesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Site.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Site` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public java.util.List getSitesBuilderList() { + return getSitesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + getSitesFieldBuilder() { + if (sitesBuilder_ == null) { + sitesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder>( + sites_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sites_ = null; + } + return sitesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdateSitesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateSitesResponse) + private static final com.google.ads.admanager.v1.BatchUpdateSitesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateSitesResponse(); + } + + public static com.google.ads.admanager.v1.BatchUpdateSitesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateSitesResponse 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.admanager.v1.BatchUpdateSitesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesResponseOrBuilder.java new file mode 100644 index 000000000000..c429ed20c3d3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateSitesResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateSitesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateSitesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + java.util.List getSitesList(); + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + com.google.ads.admanager.v1.Site getSites(int index); + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + int getSitesCount(); + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + java.util.List getSitesOrBuilderList(); + + /** + * + * + *
    +   * The `Site` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + com.google.ads.admanager.v1.SiteOrBuilder getSitesOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsRequest.java new file mode 100644 index 000000000000..f4c8b60f839a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsRequest.java @@ -0,0 +1,1255 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `BatchUpdateTeams` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateTeamsRequest} + */ +public final class BatchUpdateTeamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateTeamsRequest) + BatchUpdateTeamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateTeamsRequest.newBuilder() to construct. + private BatchUpdateTeamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateTeamsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateTeamsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateTeamsRequest.class, + com.google.ads.admanager.v1.BatchUpdateTeamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource where `Teams` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateTeamRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 where `Teams` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateTeamRequest must match this
    +   * field.
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateTeamRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateTeamRequestOrBuilder getRequestsOrBuilder(int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admanager.v1.BatchUpdateTeamsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateTeamsRequest other = + (com.google.ads.admanager.v1.BatchUpdateTeamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest 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.admanager.v1.BatchUpdateTeamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest 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.admanager.v1.BatchUpdateTeamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BatchUpdateTeamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `BatchUpdateTeams` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateTeamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateTeamsRequest) + com.google.ads.admanager.v1.BatchUpdateTeamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateTeamsRequest.class, + com.google.ads.admanager.v1.BatchUpdateTeamsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateTeamsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateTeamsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateTeamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateTeamsRequest build() { + com.google.ads.admanager.v1.BatchUpdateTeamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateTeamsRequest buildPartial() { + com.google.ads.admanager.v1.BatchUpdateTeamsRequest result = + new com.google.ads.admanager.v1.BatchUpdateTeamsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateTeamsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateTeamsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateTeamsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateTeamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateTeamsRequest other) { + if (other == com.google.ads.admanager.v1.BatchUpdateTeamsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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: + { + com.google.ads.admanager.v1.UpdateTeamRequest m = + input.readMessage( + com.google.ads.admanager.v1.UpdateTeamRequest.parser(), extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where `Teams` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Teams` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Teams` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Teams` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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 where `Teams` will be updated.
    +     * Format: `networks/{network_code}`
    +     * The parent field in the UpdateTeamRequest must match this
    +     * field.
    +     * 
    + * + * + * 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.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateTeamRequest, + com.google.ads.admanager.v1.UpdateTeamRequest.Builder, + com.google.ads.admanager.v1.UpdateTeamRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateTeamRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests(int index, com.google.ads.admanager.v1.UpdateTeamRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.UpdateTeamRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.UpdateTeamRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(int index, com.google.ads.admanager.v1.UpdateTeamRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.UpdateTeamRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.UpdateTeamRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateTeamRequest.Builder getRequestsBuilder(int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateTeamRequestOrBuilder getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateTeamRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.UpdateTeamRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateTeamRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.UpdateTeamRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The `Team` objects to update.
    +     * A maximum of 100 objects can be updated in a batch.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateTeamRequest, + com.google.ads.admanager.v1.UpdateTeamRequest.Builder, + com.google.ads.admanager.v1.UpdateTeamRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateTeamRequest, + com.google.ads.admanager.v1.UpdateTeamRequest.Builder, + com.google.ads.admanager.v1.UpdateTeamRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdateTeamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateTeamsRequest) + private static final com.google.ads.admanager.v1.BatchUpdateTeamsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateTeamsRequest(); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateTeamsRequest 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.admanager.v1.BatchUpdateTeamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsRequestOrBuilder.java new file mode 100644 index 000000000000..94c1d7e25f21 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateTeamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateTeamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where `Teams` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateTeamRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where `Teams` will be updated.
    +   * Format: `networks/{network_code}`
    +   * The parent field in the UpdateTeamRequest must match this
    +   * field.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateTeamRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The `Team` objects to update.
    +   * A maximum of 100 objects can be updated in a batch.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.UpdateTeamRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateTeamRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsResponse.java new file mode 100644 index 000000000000..5380f51d7d0a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsResponse.java @@ -0,0 +1,956 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `BatchUpdateTeams` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateTeamsResponse} + */ +public final class BatchUpdateTeamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateTeamsResponse) + BatchUpdateTeamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateTeamsResponse.newBuilder() to construct. + private BatchUpdateTeamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateTeamsResponse() { + teams_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateTeamsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateTeamsResponse.class, + com.google.ads.admanager.v1.BatchUpdateTeamsResponse.Builder.class); + } + + public static final int TEAMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List teams_; + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public java.util.List getTeamsList() { + return teams_; + } + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public java.util.List + getTeamsOrBuilderList() { + return teams_; + } + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public int getTeamsCount() { + return teams_.size(); + } + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Team getTeams(int index) { + return teams_.get(index); + } + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.TeamOrBuilder getTeamsOrBuilder(int index) { + return teams_.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 < teams_.size(); i++) { + output.writeMessage(1, teams_.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 < teams_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, teams_.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.admanager.v1.BatchUpdateTeamsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateTeamsResponse other = + (com.google.ads.admanager.v1.BatchUpdateTeamsResponse) obj; + + if (!getTeamsList().equals(other.getTeamsList())) 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 (getTeamsCount() > 0) { + hash = (37 * hash) + TEAMS_FIELD_NUMBER; + hash = (53 * hash) + getTeamsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse 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.admanager.v1.BatchUpdateTeamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse 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.admanager.v1.BatchUpdateTeamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BatchUpdateTeamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `BatchUpdateTeams` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateTeamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateTeamsResponse) + com.google.ads.admanager.v1.BatchUpdateTeamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateTeamsResponse.class, + com.google.ads.admanager.v1.BatchUpdateTeamsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateTeamsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (teamsBuilder_ == null) { + teams_ = java.util.Collections.emptyList(); + } else { + teams_ = null; + teamsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateTeamsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateTeamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateTeamsResponse build() { + com.google.ads.admanager.v1.BatchUpdateTeamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateTeamsResponse buildPartial() { + com.google.ads.admanager.v1.BatchUpdateTeamsResponse result = + new com.google.ads.admanager.v1.BatchUpdateTeamsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateTeamsResponse result) { + if (teamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + teams_ = java.util.Collections.unmodifiableList(teams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.teams_ = teams_; + } else { + result.teams_ = teamsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateTeamsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateTeamsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateTeamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateTeamsResponse other) { + if (other == com.google.ads.admanager.v1.BatchUpdateTeamsResponse.getDefaultInstance()) + return this; + if (teamsBuilder_ == null) { + if (!other.teams_.isEmpty()) { + if (teams_.isEmpty()) { + teams_ = other.teams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTeamsIsMutable(); + teams_.addAll(other.teams_); + } + onChanged(); + } + } else { + if (!other.teams_.isEmpty()) { + if (teamsBuilder_.isEmpty()) { + teamsBuilder_.dispose(); + teamsBuilder_ = null; + teams_ = other.teams_; + bitField0_ = (bitField0_ & ~0x00000001); + teamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTeamsFieldBuilder() + : null; + } else { + teamsBuilder_.addAllMessages(other.teams_); + } + } + } + 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.admanager.v1.Team m = + input.readMessage(com.google.ads.admanager.v1.Team.parser(), extensionRegistry); + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(m); + } else { + teamsBuilder_.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 teams_ = + java.util.Collections.emptyList(); + + private void ensureTeamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + teams_ = new java.util.ArrayList(teams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + teamsBuilder_; + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public java.util.List getTeamsList() { + if (teamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(teams_); + } else { + return teamsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public int getTeamsCount() { + if (teamsBuilder_ == null) { + return teams_.size(); + } else { + return teamsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team getTeams(int index) { + if (teamsBuilder_ == null) { + return teams_.get(index); + } else { + return teamsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder setTeams(int index, com.google.ads.admanager.v1.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.set(index, value); + onChanged(); + } else { + teamsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder setTeams(int index, com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.set(index, builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(com.google.ads.admanager.v1.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.add(value); + onChanged(); + } else { + teamsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(int index, com.google.ads.admanager.v1.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.add(index, value); + onChanged(); + } else { + teamsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(int index, com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(index, builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addAllTeams( + java.lang.Iterable values) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, teams_); + onChanged(); + } else { + teamsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder clearTeams() { + if (teamsBuilder_ == null) { + teams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + teamsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder removeTeams(int index) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.remove(index); + onChanged(); + } else { + teamsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team.Builder getTeamsBuilder(int index) { + return getTeamsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.TeamOrBuilder getTeamsOrBuilder(int index) { + if (teamsBuilder_ == null) { + return teams_.get(index); + } else { + return teamsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public java.util.List + getTeamsOrBuilderList() { + if (teamsBuilder_ != null) { + return teamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(teams_); + } + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team.Builder addTeamsBuilder() { + return getTeamsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Team.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team.Builder addTeamsBuilder(int index) { + return getTeamsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Team.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Team` objects updated.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public java.util.List getTeamsBuilderList() { + return getTeamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + getTeamsFieldBuilder() { + if (teamsBuilder_ == null) { + teamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder>( + teams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + teams_ = null; + } + return teamsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BatchUpdateTeamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateTeamsResponse) + private static final com.google.ads.admanager.v1.BatchUpdateTeamsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateTeamsResponse(); + } + + public static com.google.ads.admanager.v1.BatchUpdateTeamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateTeamsResponse 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.admanager.v1.BatchUpdateTeamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsResponseOrBuilder.java new file mode 100644 index 000000000000..28c0a02ed1fd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateTeamsResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateTeamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateTeamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + java.util.List getTeamsList(); + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + com.google.ads.admanager.v1.Team getTeams(int index); + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + int getTeamsCount(); + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + java.util.List getTeamsOrBuilderList(); + + /** + * + * + *
    +   * The `Team` objects updated.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + com.google.ads.admanager.v1.TeamOrBuilder getTeamsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Browser.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Browser.java new file mode 100644 index 000000000000..cd8fc75f8176 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Browser.java @@ -0,0 +1,1318 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents a browser, including its version.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.Browser} + */ +public final class Browser extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Browser) + BrowserOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Browser.newBuilder() to construct. + private Browser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Browser() { + name_ = ""; + displayName_ = ""; + majorVersion_ = ""; + minorVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Browser(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserMessagesProto + .internal_static_google_ads_admanager_v1_Browser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserMessagesProto + .internal_static_google_ads_admanager_v1_Browser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Browser.class, + com.google.ads.admanager.v1.Browser.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `Browser`.
    +   * Format: `networks/{network_code}/browsers/{browser}`
    +   * 
    + * + * 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. The resource name of the `Browser`.
    +   * Format: `networks/{network_code}/browsers/{browser}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Output only. The display name of the browser, including version info.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The display name of the browser, including version info.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The display name of the browser, including version info.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAJOR_VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object majorVersion_ = ""; + + /** + * + * + *
    +   * Output only. The major version of the browser.
    +   * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the majorVersion field is set. + */ + @java.lang.Override + public boolean hasMajorVersion() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. The major version of the browser.
    +   * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The majorVersion. + */ + @java.lang.Override + public java.lang.String getMajorVersion() { + java.lang.Object ref = majorVersion_; + 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(); + majorVersion_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The major version of the browser.
    +   * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for majorVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMajorVersionBytes() { + java.lang.Object ref = majorVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + majorVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MINOR_VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object minorVersion_ = ""; + + /** + * + * + *
    +   * Output only. The minor version of the browser.
    +   * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the minorVersion field is set. + */ + @java.lang.Override + public boolean hasMinorVersion() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Output only. The minor version of the browser.
    +   * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The minorVersion. + */ + @java.lang.Override + public java.lang.String getMinorVersion() { + java.lang.Object ref = minorVersion_; + 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(); + minorVersion_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The minor version of the browser.
    +   * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for minorVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinorVersionBytes() { + java.lang.Object ref = minorVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minorVersion_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, majorVersion_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, minorVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, majorVersion_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, minorVersion_); + } + 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.admanager.v1.Browser)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.Browser other = (com.google.ads.admanager.v1.Browser) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasMajorVersion() != other.hasMajorVersion()) return false; + if (hasMajorVersion()) { + if (!getMajorVersion().equals(other.getMajorVersion())) return false; + } + if (hasMinorVersion() != other.hasMinorVersion()) return false; + if (hasMinorVersion()) { + if (!getMinorVersion().equals(other.getMinorVersion())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasMajorVersion()) { + hash = (37 * hash) + MAJOR_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMajorVersion().hashCode(); + } + if (hasMinorVersion()) { + hash = (37 * hash) + MINOR_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMinorVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.Browser parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Browser 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.admanager.v1.Browser parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Browser 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.admanager.v1.Browser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Browser parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Browser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Browser parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Browser parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Browser parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Browser parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Browser parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.Browser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a browser, including its version.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.Browser} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Browser) + com.google.ads.admanager.v1.BrowserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserMessagesProto + .internal_static_google_ads_admanager_v1_Browser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserMessagesProto + .internal_static_google_ads_admanager_v1_Browser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Browser.class, + com.google.ads.admanager.v1.Browser.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.Browser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + majorVersion_ = ""; + minorVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BrowserMessagesProto + .internal_static_google_ads_admanager_v1_Browser_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Browser getDefaultInstanceForType() { + return com.google.ads.admanager.v1.Browser.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.Browser build() { + com.google.ads.admanager.v1.Browser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Browser buildPartial() { + com.google.ads.admanager.v1.Browser result = new com.google.ads.admanager.v1.Browser(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.Browser result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.majorVersion_ = majorVersion_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.minorVersion_ = minorVersion_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.Browser) { + return mergeFrom((com.google.ads.admanager.v1.Browser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.Browser other) { + if (other == com.google.ads.admanager.v1.Browser.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMajorVersion()) { + majorVersion_ = other.majorVersion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasMinorVersion()) { + minorVersion_ = other.minorVersion_; + bitField0_ |= 0x00000008; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + majorVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + minorVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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 name_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `Browser`.
    +     * Format: `networks/{network_code}/browsers/{browser}`
    +     * 
    + * + * 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. The resource name of the `Browser`.
    +     * Format: `networks/{network_code}/browsers/{browser}`
    +     * 
    + * + * 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. The resource name of the `Browser`.
    +     * Format: `networks/{network_code}/browsers/{browser}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Browser`.
    +     * Format: `networks/{network_code}/browsers/{browser}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Browser`.
    +     * Format: `networks/{network_code}/browsers/{browser}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Output only. The display name of the browser, including version info.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The display name of the browser, including version info.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The display name of the browser, including version info.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The display name of the browser, including version info.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The display name of the browser, including version info.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The display name of the browser, including version info.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object majorVersion_ = ""; + + /** + * + * + *
    +     * Output only. The major version of the browser.
    +     * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the majorVersion field is set. + */ + public boolean hasMajorVersion() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. The major version of the browser.
    +     * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The majorVersion. + */ + public java.lang.String getMajorVersion() { + java.lang.Object ref = majorVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + majorVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The major version of the browser.
    +     * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for majorVersion. + */ + public com.google.protobuf.ByteString getMajorVersionBytes() { + java.lang.Object ref = majorVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + majorVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The major version of the browser.
    +     * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The majorVersion to set. + * @return This builder for chaining. + */ + public Builder setMajorVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + majorVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The major version of the browser.
    +     * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMajorVersion() { + majorVersion_ = getDefaultInstance().getMajorVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The major version of the browser.
    +     * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for majorVersion to set. + * @return This builder for chaining. + */ + public Builder setMajorVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + majorVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object minorVersion_ = ""; + + /** + * + * + *
    +     * Output only. The minor version of the browser.
    +     * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the minorVersion field is set. + */ + public boolean hasMinorVersion() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Output only. The minor version of the browser.
    +     * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The minorVersion. + */ + public java.lang.String getMinorVersion() { + java.lang.Object ref = minorVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minorVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The minor version of the browser.
    +     * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for minorVersion. + */ + public com.google.protobuf.ByteString getMinorVersionBytes() { + java.lang.Object ref = minorVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minorVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The minor version of the browser.
    +     * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The minorVersion to set. + * @return This builder for chaining. + */ + public Builder setMinorVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + minorVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The minor version of the browser.
    +     * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMinorVersion() { + minorVersion_ = getDefaultInstance().getMinorVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The minor version of the browser.
    +     * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for minorVersion to set. + * @return This builder for chaining. + */ + public Builder setMinorVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + minorVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Browser) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Browser) + private static final com.google.ads.admanager.v1.Browser DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Browser(); + } + + public static com.google.ads.admanager.v1.Browser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Browser 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.admanager.v1.Browser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguage.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguage.java new file mode 100644 index 000000000000..40c30761e600 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguage.java @@ -0,0 +1,869 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents the language of a browser.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BrowserLanguage} + */ +public final class BrowserLanguage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BrowserLanguage) + BrowserLanguageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BrowserLanguage.newBuilder() to construct. + private BrowserLanguage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BrowserLanguage() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BrowserLanguage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserLanguageMessagesProto + .internal_static_google_ads_admanager_v1_BrowserLanguage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserLanguageMessagesProto + .internal_static_google_ads_admanager_v1_BrowserLanguage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BrowserLanguage.class, + com.google.ads.admanager.v1.BrowserLanguage.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `BrowserLanguage`.
    +   * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +   * 
    + * + * 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. The resource name of the `BrowserLanguage`.
    +   * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Output only. The name of the browser language, localized.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The name of the browser language, localized.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The name of the browser language, localized.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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.admanager.v1.BrowserLanguage)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BrowserLanguage other = + (com.google.ads.admanager.v1.BrowserLanguage) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BrowserLanguage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BrowserLanguage 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.admanager.v1.BrowserLanguage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BrowserLanguage 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.admanager.v1.BrowserLanguage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BrowserLanguage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BrowserLanguage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BrowserLanguage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BrowserLanguage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BrowserLanguage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BrowserLanguage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BrowserLanguage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BrowserLanguage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents the language of a browser.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BrowserLanguage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BrowserLanguage) + com.google.ads.admanager.v1.BrowserLanguageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserLanguageMessagesProto + .internal_static_google_ads_admanager_v1_BrowserLanguage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserLanguageMessagesProto + .internal_static_google_ads_admanager_v1_BrowserLanguage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BrowserLanguage.class, + com.google.ads.admanager.v1.BrowserLanguage.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BrowserLanguage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BrowserLanguageMessagesProto + .internal_static_google_ads_admanager_v1_BrowserLanguage_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguage getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BrowserLanguage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguage build() { + com.google.ads.admanager.v1.BrowserLanguage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguage buildPartial() { + com.google.ads.admanager.v1.BrowserLanguage result = + new com.google.ads.admanager.v1.BrowserLanguage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BrowserLanguage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BrowserLanguage) { + return mergeFrom((com.google.ads.admanager.v1.BrowserLanguage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BrowserLanguage other) { + if (other == com.google.ads.admanager.v1.BrowserLanguage.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + 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: + { + displayName_ = 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `BrowserLanguage`.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * 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. The resource name of the `BrowserLanguage`.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * 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. The resource name of the `BrowserLanguage`.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `BrowserLanguage`.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `BrowserLanguage`.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Output only. The name of the browser language, localized.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The name of the browser language, localized.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The name of the browser language, localized.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The name of the browser language, localized.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The name of the browser language, localized.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The name of the browser language, localized.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BrowserLanguage) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BrowserLanguage) + private static final com.google.ads.admanager.v1.BrowserLanguage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BrowserLanguage(); + } + + public static com.google.ads.admanager.v1.BrowserLanguage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BrowserLanguage 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.admanager.v1.BrowserLanguage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageMessagesProto.java new file mode 100644 index 000000000000..e7cfd8f29217 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageMessagesProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class BrowserLanguageMessagesProto { + private BrowserLanguageMessagesProto() {} + + 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_admanager_v1_BrowserLanguage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BrowserLanguage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/ads/admanager/v1/browser_langua" + + "ge_messages.proto\022\027google.ads.admanager." + + "v1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\"\346\001\n\017BrowserLangua" + + "ge\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\036\n\014display_name\030\002 " + + "\001(\tB\003\340A\003H\000\210\001\001:\216\001\352A\212\001\n(admanager.googleap" + + "is.com/BrowserLanguage\022;networks/{networ" + + "k_code}/browserLanguages/{browser_langua" + + "ge}*\020browserLanguages2\017browserLanguageB\017" + + "\n\r_display_nameB\320\001\n\033com.google.ads.adman" + + "ager.v1B\034BrowserLanguageMessagesProtoP\001Z" + + "@google.golang.org/genproto/googleapis/a" + + "ds/admanager/v1;admanager\252\002\027Google.Ads.A" + + "dManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032" + + "Google::Ads::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_BrowserLanguage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_BrowserLanguage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BrowserLanguage_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageName.java new file mode 100644 index 000000000000..6bca4043e390 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 BrowserLanguageName implements ResourceName { + private static final PathTemplate NETWORK_CODE_BROWSER_LANGUAGE = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/browserLanguages/{browser_language}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String browserLanguage; + + @Deprecated + protected BrowserLanguageName() { + networkCode = null; + browserLanguage = null; + } + + private BrowserLanguageName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + browserLanguage = Preconditions.checkNotNull(builder.getBrowserLanguage()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getBrowserLanguage() { + return browserLanguage; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BrowserLanguageName of(String networkCode, String browserLanguage) { + return newBuilder().setNetworkCode(networkCode).setBrowserLanguage(browserLanguage).build(); + } + + public static String format(String networkCode, String browserLanguage) { + return newBuilder() + .setNetworkCode(networkCode) + .setBrowserLanguage(browserLanguage) + .build() + .toString(); + } + + public static BrowserLanguageName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_BROWSER_LANGUAGE.validatedMatch( + formattedString, "BrowserLanguageName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("browser_language")); + } + + 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 (BrowserLanguageName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_BROWSER_LANGUAGE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (browserLanguage != null) { + fieldMapBuilder.put("browser_language", browserLanguage); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_BROWSER_LANGUAGE.instantiate( + "network_code", networkCode, "browser_language", browserLanguage); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BrowserLanguageName that = ((BrowserLanguageName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.browserLanguage, that.browserLanguage); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(browserLanguage); + return h; + } + + /** Builder for networks/{network_code}/browserLanguages/{browser_language}. */ + public static class Builder { + private String networkCode; + private String browserLanguage; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getBrowserLanguage() { + return browserLanguage; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setBrowserLanguage(String browserLanguage) { + this.browserLanguage = browserLanguage; + return this; + } + + private Builder(BrowserLanguageName browserLanguageName) { + this.networkCode = browserLanguageName.networkCode; + this.browserLanguage = browserLanguageName.browserLanguage; + } + + public BrowserLanguageName build() { + return new BrowserLanguageName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageOrBuilder.java new file mode 100644 index 000000000000..d293590bc98e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BrowserLanguageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BrowserLanguage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `BrowserLanguage`.
    +   * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `BrowserLanguage`.
    +   * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The name of the browser language, localized.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Output only. The name of the browser language, localized.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Output only. The name of the browser language, localized.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceProto.java new file mode 100644 index 000000000000..afdde4878241 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class BrowserLanguageServiceProto { + private BrowserLanguageServiceProto() {} + + 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_admanager_v1_GetBrowserLanguageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetBrowserLanguageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_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" + + "6google/ads/admanager/v1/browser_language_service.proto\022\027google.ads.admanager.v" + + "1\0327google/ads/admanager/v1/browser_langu" + + "age_messages.proto\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/resource.proto\"[\n" + + "\031GetBrowserLanguageRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(admanager.googleapis.com/BrowserLanguage\"\307\001\n" + + "\033ListBrowserLanguagesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\220\001\n" + + "\034ListBrowserLanguagesResponse\022C\n" + + "\021browser_languages\030\001" + + " \003(\0132(.google.ads.admanager.v1.BrowserLanguage\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\320\003\n" + + "\026BrowserLanguageService\022\253\001\n" + + "\022GetBrowserLanguage\0222.google.ads.admanager.v1.GetBrowserLanguageRequest\032(." + + "google.ads.admanager.v1.BrowserLanguage\"" + + "7\332A\004name\202\323\344\223\002*\022(/v1/{name=networks/*/browserLanguages/*}\022\276\001\n" + + "\024ListBrowserLanguages\0224.google.ads.admanager.v1.ListBrowserL" + + "anguagesRequest\0325.google.ads.admanager.v" + + "1.ListBrowserLanguagesResponse\"9\332A\006paren" + + "t\202\323\344\223\002*\022(/v1/{parent=networks/*}/browser" + + "Languages\032G\312A\030admanager.googleapis.com\322A" + + ")https://www.googleapis.com/auth/admanagerB\317\001\n" + + "\033com.google.ads.admanager.v1B\033BrowserLanguageServiceProtoP\001Z@google.golang" + + ".org/genproto/googleapis/ads/admanager/v" + + "1;admanager\252\002\027Google.Ads.AdManager.V1\312\002\027" + + "Google\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.BrowserLanguageMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetBrowserLanguageRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetBrowserLanguageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetBrowserLanguageRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_descriptor, + new java.lang.String[] { + "BrowserLanguages", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.BrowserLanguageMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageTargeting.java new file mode 100644 index 000000000000..58c9715a2e76 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageTargeting.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Browser Language Targeting.
    + *
    + * For ads targeting mobile apps and their associated WebViews, the language
    + * used is based on the language specified by the user in their mobile device
    + * settings. If a browser has more than one language assigned to it, each
    + * language generates an impression.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BrowserLanguageTargeting} + */ +public final class BrowserLanguageTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BrowserLanguageTargeting) + BrowserLanguageTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BrowserLanguageTargeting.newBuilder() to construct. + private BrowserLanguageTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BrowserLanguageTargeting() { + targetedBrowserLanguages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedBrowserLanguages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BrowserLanguageTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BrowserLanguageTargeting.class, + com.google.ads.admanager.v1.BrowserLanguageTargeting.Builder.class); + } + + public static final int TARGETED_BROWSER_LANGUAGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedBrowserLanguages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedBrowserLanguages. + */ + public com.google.protobuf.ProtocolStringList getTargetedBrowserLanguagesList() { + return targetedBrowserLanguages_; + } + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedBrowserLanguages. + */ + public int getTargetedBrowserLanguagesCount() { + return targetedBrowserLanguages_.size(); + } + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedBrowserLanguages at the given index. + */ + public java.lang.String getTargetedBrowserLanguages(int index) { + return targetedBrowserLanguages_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedBrowserLanguages at the given index. + */ + public com.google.protobuf.ByteString getTargetedBrowserLanguagesBytes(int index) { + return targetedBrowserLanguages_.getByteString(index); + } + + public static final int EXCLUDED_BROWSER_LANGUAGES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedBrowserLanguages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedBrowserLanguages. + */ + public com.google.protobuf.ProtocolStringList getExcludedBrowserLanguagesList() { + return excludedBrowserLanguages_; + } + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedBrowserLanguages. + */ + public int getExcludedBrowserLanguagesCount() { + return excludedBrowserLanguages_.size(); + } + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedBrowserLanguages at the given index. + */ + public java.lang.String getExcludedBrowserLanguages(int index) { + return excludedBrowserLanguages_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedBrowserLanguages at the given index. + */ + public com.google.protobuf.ByteString getExcludedBrowserLanguagesBytes(int index) { + return excludedBrowserLanguages_.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 < targetedBrowserLanguages_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, targetedBrowserLanguages_.getRaw(i)); + } + for (int i = 0; i < excludedBrowserLanguages_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, excludedBrowserLanguages_.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 < targetedBrowserLanguages_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedBrowserLanguages_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedBrowserLanguagesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedBrowserLanguages_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedBrowserLanguages_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedBrowserLanguagesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BrowserLanguageTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BrowserLanguageTargeting other = + (com.google.ads.admanager.v1.BrowserLanguageTargeting) obj; + + if (!getTargetedBrowserLanguagesList().equals(other.getTargetedBrowserLanguagesList())) + return false; + if (!getExcludedBrowserLanguagesList().equals(other.getExcludedBrowserLanguagesList())) + 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 (getTargetedBrowserLanguagesCount() > 0) { + hash = (37 * hash) + TARGETED_BROWSER_LANGUAGES_FIELD_NUMBER; + hash = (53 * hash) + getTargetedBrowserLanguagesList().hashCode(); + } + if (getExcludedBrowserLanguagesCount() > 0) { + hash = (37 * hash) + EXCLUDED_BROWSER_LANGUAGES_FIELD_NUMBER; + hash = (53 * hash) + getExcludedBrowserLanguagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting 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.admanager.v1.BrowserLanguageTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting 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.admanager.v1.BrowserLanguageTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BrowserLanguageTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Browser Language Targeting.
    +   *
    +   * For ads targeting mobile apps and their associated WebViews, the language
    +   * used is based on the language specified by the user in their mobile device
    +   * settings. If a browser has more than one language assigned to it, each
    +   * language generates an impression.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BrowserLanguageTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BrowserLanguageTargeting) + com.google.ads.admanager.v1.BrowserLanguageTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BrowserLanguageTargeting.class, + com.google.ads.admanager.v1.BrowserLanguageTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BrowserLanguageTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedBrowserLanguages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedBrowserLanguages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguageTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BrowserLanguageTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguageTargeting build() { + com.google.ads.admanager.v1.BrowserLanguageTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguageTargeting buildPartial() { + com.google.ads.admanager.v1.BrowserLanguageTargeting result = + new com.google.ads.admanager.v1.BrowserLanguageTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BrowserLanguageTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedBrowserLanguages_.makeImmutable(); + result.targetedBrowserLanguages_ = targetedBrowserLanguages_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedBrowserLanguages_.makeImmutable(); + result.excludedBrowserLanguages_ = excludedBrowserLanguages_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BrowserLanguageTargeting) { + return mergeFrom((com.google.ads.admanager.v1.BrowserLanguageTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BrowserLanguageTargeting other) { + if (other == com.google.ads.admanager.v1.BrowserLanguageTargeting.getDefaultInstance()) + return this; + if (!other.targetedBrowserLanguages_.isEmpty()) { + if (targetedBrowserLanguages_.isEmpty()) { + targetedBrowserLanguages_ = other.targetedBrowserLanguages_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedBrowserLanguagesIsMutable(); + targetedBrowserLanguages_.addAll(other.targetedBrowserLanguages_); + } + onChanged(); + } + if (!other.excludedBrowserLanguages_.isEmpty()) { + if (excludedBrowserLanguages_.isEmpty()) { + excludedBrowserLanguages_ = other.excludedBrowserLanguages_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedBrowserLanguagesIsMutable(); + excludedBrowserLanguages_.addAll(other.excludedBrowserLanguages_); + } + 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 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedBrowserLanguagesIsMutable(); + targetedBrowserLanguages_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedBrowserLanguagesIsMutable(); + excludedBrowserLanguages_.add(s); + break; + } // case 34 + 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 targetedBrowserLanguages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedBrowserLanguagesIsMutable() { + if (!targetedBrowserLanguages_.isModifiable()) { + targetedBrowserLanguages_ = + new com.google.protobuf.LazyStringArrayList(targetedBrowserLanguages_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedBrowserLanguages. + */ + public com.google.protobuf.ProtocolStringList getTargetedBrowserLanguagesList() { + targetedBrowserLanguages_.makeImmutable(); + return targetedBrowserLanguages_; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedBrowserLanguages. + */ + public int getTargetedBrowserLanguagesCount() { + return targetedBrowserLanguages_.size(); + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedBrowserLanguages at the given index. + */ + public java.lang.String getTargetedBrowserLanguages(int index) { + return targetedBrowserLanguages_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedBrowserLanguages at the given index. + */ + public com.google.protobuf.ByteString getTargetedBrowserLanguagesBytes(int index) { + return targetedBrowserLanguages_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedBrowserLanguages to set. + * @return This builder for chaining. + */ + public Builder setTargetedBrowserLanguages(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedBrowserLanguagesIsMutable(); + targetedBrowserLanguages_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedBrowserLanguages to add. + * @return This builder for chaining. + */ + public Builder addTargetedBrowserLanguages(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedBrowserLanguagesIsMutable(); + targetedBrowserLanguages_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedBrowserLanguages to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedBrowserLanguages(java.lang.Iterable values) { + ensureTargetedBrowserLanguagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedBrowserLanguages_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedBrowserLanguages() { + targetedBrowserLanguages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedBrowserLanguages to add. + * @return This builder for chaining. + */ + public Builder addTargetedBrowserLanguagesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedBrowserLanguagesIsMutable(); + targetedBrowserLanguages_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedBrowserLanguages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedBrowserLanguagesIsMutable() { + if (!excludedBrowserLanguages_.isModifiable()) { + excludedBrowserLanguages_ = + new com.google.protobuf.LazyStringArrayList(excludedBrowserLanguages_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedBrowserLanguages. + */ + public com.google.protobuf.ProtocolStringList getExcludedBrowserLanguagesList() { + excludedBrowserLanguages_.makeImmutable(); + return excludedBrowserLanguages_; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedBrowserLanguages. + */ + public int getExcludedBrowserLanguagesCount() { + return excludedBrowserLanguages_.size(); + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedBrowserLanguages at the given index. + */ + public java.lang.String getExcludedBrowserLanguages(int index) { + return excludedBrowserLanguages_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedBrowserLanguages at the given index. + */ + public com.google.protobuf.ByteString getExcludedBrowserLanguagesBytes(int index) { + return excludedBrowserLanguages_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedBrowserLanguages to set. + * @return This builder for chaining. + */ + public Builder setExcludedBrowserLanguages(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedBrowserLanguagesIsMutable(); + excludedBrowserLanguages_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedBrowserLanguages to add. + * @return This builder for chaining. + */ + public Builder addExcludedBrowserLanguages(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedBrowserLanguagesIsMutable(); + excludedBrowserLanguages_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedBrowserLanguages to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedBrowserLanguages(java.lang.Iterable values) { + ensureExcludedBrowserLanguagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedBrowserLanguages_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedBrowserLanguages() { + excludedBrowserLanguages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser language resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedBrowserLanguages to add. + * @return This builder for chaining. + */ + public Builder addExcludedBrowserLanguagesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedBrowserLanguagesIsMutable(); + excludedBrowserLanguages_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BrowserLanguageTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BrowserLanguageTargeting) + private static final com.google.ads.admanager.v1.BrowserLanguageTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BrowserLanguageTargeting(); + } + + public static com.google.ads.admanager.v1.BrowserLanguageTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BrowserLanguageTargeting 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.admanager.v1.BrowserLanguageTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageTargetingOrBuilder.java new file mode 100644 index 000000000000..fcbc96a83ab2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageTargetingOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BrowserLanguageTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BrowserLanguageTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedBrowserLanguages. + */ + java.util.List getTargetedBrowserLanguagesList(); + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedBrowserLanguages. + */ + int getTargetedBrowserLanguagesCount(); + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedBrowserLanguages at the given index. + */ + java.lang.String getTargetedBrowserLanguages(int index); + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browser_languages = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedBrowserLanguages at the given index. + */ + com.google.protobuf.ByteString getTargetedBrowserLanguagesBytes(int index); + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedBrowserLanguages. + */ + java.util.List getExcludedBrowserLanguagesList(); + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedBrowserLanguages. + */ + int getExcludedBrowserLanguagesCount(); + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedBrowserLanguages at the given index. + */ + java.lang.String getExcludedBrowserLanguages(int index); + + /** + * + * + *
    +   * Optional. A list of browser language resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_browser_languages = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedBrowserLanguages at the given index. + */ + com.google.protobuf.ByteString getExcludedBrowserLanguagesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserMessagesProto.java new file mode 100644 index 000000000000..d2e6956f5d20 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserMessagesProto.java @@ -0,0 +1,90 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class BrowserMessagesProto { + private BrowserMessagesProto() {} + + 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_admanager_v1_Browser_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Browser_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/admanager/v1/browser_messag" + + "es.proto\022\027google.ads.admanager.v1\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/resource.proto\"\231\002\n" + + "\007Browser\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\002 \001(\tB\003\340A\003H\000\210\001\001\022\037\n\r" + + "major_version\030\004 \001(\tB\003\340A\003H\001\210\001\001\022\037\n\r" + + "minor_version\030\005 \001(\tB\003\340A\003H\002\210\001\001:d\352Aa\n" + + " admanager.googleapis.com/Browser\022*networks/{network" + + "_code}/browsers/{browser}*\010browsers2\007browserB\017\n\r" + + "_display_nameB\020\n" + + "\016_major_versionB\020\n" + + "\016_minor_versionB\310\001\n" + + "\033com.google.ads.admanager.v1B\024BrowserMessagesProtoP\001Z@googl" + + "e.golang.org/genproto/googleapis/ads/adm" + + "anager/v1;admanager\252\002\027Google.Ads.AdManag" + + "er.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google" + + "::Ads::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_Browser_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_Browser_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Browser_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "MajorVersion", "MinorVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserName.java new file mode 100644 index 000000000000..9455df9ecb4f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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.admanager.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 BrowserName implements ResourceName { + private static final PathTemplate NETWORK_CODE_BROWSER = + PathTemplate.createWithoutUrlEncoding("networks/{network_code}/browsers/{browser}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String browser; + + @Deprecated + protected BrowserName() { + networkCode = null; + browser = null; + } + + private BrowserName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + browser = Preconditions.checkNotNull(builder.getBrowser()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getBrowser() { + return browser; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BrowserName of(String networkCode, String browser) { + return newBuilder().setNetworkCode(networkCode).setBrowser(browser).build(); + } + + public static String format(String networkCode, String browser) { + return newBuilder().setNetworkCode(networkCode).setBrowser(browser).build().toString(); + } + + public static BrowserName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_BROWSER.validatedMatch( + formattedString, "BrowserName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("browser")); + } + + 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 (BrowserName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_BROWSER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (browser != null) { + fieldMapBuilder.put("browser", browser); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_BROWSER.instantiate("network_code", networkCode, "browser", browser); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BrowserName that = ((BrowserName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.browser, that.browser); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(browser); + return h; + } + + /** Builder for networks/{network_code}/browsers/{browser}. */ + public static class Builder { + private String networkCode; + private String browser; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getBrowser() { + return browser; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setBrowser(String browser) { + this.browser = browser; + return this; + } + + private Builder(BrowserName browserName) { + this.networkCode = browserName.networkCode; + this.browser = browserName.browser; + } + + public BrowserName build() { + return new BrowserName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserOrBuilder.java new file mode 100644 index 000000000000..6ac86d5e21e6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserOrBuilder.java @@ -0,0 +1,171 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BrowserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Browser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `Browser`.
    +   * Format: `networks/{network_code}/browsers/{browser}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `Browser`.
    +   * Format: `networks/{network_code}/browsers/{browser}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The display name of the browser, including version info.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Output only. The display name of the browser, including version info.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Output only. The display name of the browser, including version info.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
    +   * Output only. The major version of the browser.
    +   * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the majorVersion field is set. + */ + boolean hasMajorVersion(); + + /** + * + * + *
    +   * Output only. The major version of the browser.
    +   * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The majorVersion. + */ + java.lang.String getMajorVersion(); + + /** + * + * + *
    +   * Output only. The major version of the browser.
    +   * 
    + * + * optional string major_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for majorVersion. + */ + com.google.protobuf.ByteString getMajorVersionBytes(); + + /** + * + * + *
    +   * Output only. The minor version of the browser.
    +   * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the minorVersion field is set. + */ + boolean hasMinorVersion(); + + /** + * + * + *
    +   * Output only. The minor version of the browser.
    +   * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The minorVersion. + */ + java.lang.String getMinorVersion(); + + /** + * + * + *
    +   * Output only. The minor version of the browser.
    +   * 
    + * + * optional string minor_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for minorVersion. + */ + com.google.protobuf.ByteString getMinorVersionBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserServiceProto.java new file mode 100644 index 000000000000..3a1a6a8a04cb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserServiceProto.java @@ -0,0 +1,139 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class BrowserServiceProto { + private BrowserServiceProto() {} + + 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_admanager_v1_GetBrowserRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetBrowserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListBrowsersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListBrowsersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListBrowsersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListBrowsersResponse_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/admanager/v1/browser_servic" + + "e.proto\022\027google.ads.admanager.v1\032.google" + + "/ads/admanager/v1/browser_messages.proto" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"K\n" + + "\021GetBrowserRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Browser\"\277\001\n" + + "\023ListBrowsersRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"w\n" + + "\024ListBrowsersResponse\0222\n" + + "\010browsers\030\001 \003(\0132 .google.ads.admanager.v1.Browser\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\210\003\n" + + "\016BrowserService\022\213\001\n\n" + + "GetBrowser\022*.google.ads.admanager.v1.GetBrowserRequest\032" + + " .google.ads.admanager.v1.Browser\"/\332A\004name\202\323\344\223\002\"\022" + + " /v1/{name=networks/*/browsers/*}\022\236\001\n" + + "\014ListBrowsers\022,.google.ads.admanager.v1.ListBrow" + + "sersRequest\032-.google.ads.admanager.v1.ListBrowsersResponse\"1\332A\006parent\202\323\344\223\002\"\022" + + " /v1/{parent=networks/*}/browsers\032G\312A\030admana" + + "ger.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\307\001\n" + + "\033com.google.ads.admanager.v1B\023BrowserServiceProtoP\001Z@g" + + "oogle.golang.org/genproto/googleapis/ads" + + "/admanager/v1;admanager\252\002\027Google.Ads.AdM" + + "anager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Go" + + "ogle::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.BrowserMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetBrowserRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetBrowserRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetBrowserRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListBrowsersRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListBrowsersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListBrowsersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListBrowsersResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListBrowsersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListBrowsersResponse_descriptor, + new java.lang.String[] { + "Browsers", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.BrowserMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserTargeting.java new file mode 100644 index 000000000000..fff7f1417ea8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserTargeting.java @@ -0,0 +1,1099 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Browser Targeting.
    + *
    + * Allows publishers to target/exclude a browser type (e.g. Chrome, Firefox,
    + * Safari). For more information, see
    + * https://support.google.com/admanager/answer/2884033 (Targeting types >
    + * Browser).
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BrowserTargeting} + */ +public final class BrowserTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BrowserTargeting) + BrowserTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BrowserTargeting.newBuilder() to construct. + private BrowserTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BrowserTargeting() { + targetedBrowsers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedBrowsers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BrowserTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BrowserTargeting.class, + com.google.ads.admanager.v1.BrowserTargeting.Builder.class); + } + + public static final int TARGETED_BROWSERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedBrowsers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedBrowsers. + */ + public com.google.protobuf.ProtocolStringList getTargetedBrowsersList() { + return targetedBrowsers_; + } + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedBrowsers. + */ + public int getTargetedBrowsersCount() { + return targetedBrowsers_.size(); + } + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedBrowsers at the given index. + */ + public java.lang.String getTargetedBrowsers(int index) { + return targetedBrowsers_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedBrowsers at the given index. + */ + public com.google.protobuf.ByteString getTargetedBrowsersBytes(int index) { + return targetedBrowsers_.getByteString(index); + } + + public static final int EXCLUDED_BROWSERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedBrowsers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedBrowsers. + */ + public com.google.protobuf.ProtocolStringList getExcludedBrowsersList() { + return excludedBrowsers_; + } + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedBrowsers. + */ + public int getExcludedBrowsersCount() { + return excludedBrowsers_.size(); + } + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedBrowsers at the given index. + */ + public java.lang.String getExcludedBrowsers(int index) { + return excludedBrowsers_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedBrowsers at the given index. + */ + public com.google.protobuf.ByteString getExcludedBrowsersBytes(int index) { + return excludedBrowsers_.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 < targetedBrowsers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetedBrowsers_.getRaw(i)); + } + for (int i = 0; i < excludedBrowsers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, excludedBrowsers_.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 < targetedBrowsers_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedBrowsers_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedBrowsersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedBrowsers_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedBrowsers_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedBrowsersList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.BrowserTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BrowserTargeting other = + (com.google.ads.admanager.v1.BrowserTargeting) obj; + + if (!getTargetedBrowsersList().equals(other.getTargetedBrowsersList())) return false; + if (!getExcludedBrowsersList().equals(other.getExcludedBrowsersList())) 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 (getTargetedBrowsersCount() > 0) { + hash = (37 * hash) + TARGETED_BROWSERS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedBrowsersList().hashCode(); + } + if (getExcludedBrowsersCount() > 0) { + hash = (37 * hash) + EXCLUDED_BROWSERS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedBrowsersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BrowserTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BrowserTargeting 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.admanager.v1.BrowserTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BrowserTargeting 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.admanager.v1.BrowserTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BrowserTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BrowserTargeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BrowserTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BrowserTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BrowserTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BrowserTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BrowserTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.BrowserTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Browser Targeting.
    +   *
    +   * Allows publishers to target/exclude a browser type (e.g. Chrome, Firefox,
    +   * Safari). For more information, see
    +   * https://support.google.com/admanager/answer/2884033 (Targeting types >
    +   * Browser).
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.BrowserTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BrowserTargeting) + com.google.ads.admanager.v1.BrowserTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BrowserTargeting.class, + com.google.ads.admanager.v1.BrowserTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BrowserTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedBrowsers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedBrowsers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BrowserTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BrowserTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BrowserTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BrowserTargeting build() { + com.google.ads.admanager.v1.BrowserTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BrowserTargeting buildPartial() { + com.google.ads.admanager.v1.BrowserTargeting result = + new com.google.ads.admanager.v1.BrowserTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BrowserTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedBrowsers_.makeImmutable(); + result.targetedBrowsers_ = targetedBrowsers_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedBrowsers_.makeImmutable(); + result.excludedBrowsers_ = excludedBrowsers_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BrowserTargeting) { + return mergeFrom((com.google.ads.admanager.v1.BrowserTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BrowserTargeting other) { + if (other == com.google.ads.admanager.v1.BrowserTargeting.getDefaultInstance()) return this; + if (!other.targetedBrowsers_.isEmpty()) { + if (targetedBrowsers_.isEmpty()) { + targetedBrowsers_ = other.targetedBrowsers_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedBrowsersIsMutable(); + targetedBrowsers_.addAll(other.targetedBrowsers_); + } + onChanged(); + } + if (!other.excludedBrowsers_.isEmpty()) { + if (excludedBrowsers_.isEmpty()) { + excludedBrowsers_ = other.excludedBrowsers_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedBrowsersIsMutable(); + excludedBrowsers_.addAll(other.excludedBrowsers_); + } + 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 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedBrowsersIsMutable(); + targetedBrowsers_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedBrowsersIsMutable(); + excludedBrowsers_.add(s); + break; + } // case 34 + 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 targetedBrowsers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedBrowsersIsMutable() { + if (!targetedBrowsers_.isModifiable()) { + targetedBrowsers_ = new com.google.protobuf.LazyStringArrayList(targetedBrowsers_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedBrowsers. + */ + public com.google.protobuf.ProtocolStringList getTargetedBrowsersList() { + targetedBrowsers_.makeImmutable(); + return targetedBrowsers_; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedBrowsers. + */ + public int getTargetedBrowsersCount() { + return targetedBrowsers_.size(); + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedBrowsers at the given index. + */ + public java.lang.String getTargetedBrowsers(int index) { + return targetedBrowsers_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedBrowsers at the given index. + */ + public com.google.protobuf.ByteString getTargetedBrowsersBytes(int index) { + return targetedBrowsers_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedBrowsers to set. + * @return This builder for chaining. + */ + public Builder setTargetedBrowsers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedBrowsersIsMutable(); + targetedBrowsers_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedBrowsers to add. + * @return This builder for chaining. + */ + public Builder addTargetedBrowsers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedBrowsersIsMutable(); + targetedBrowsers_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedBrowsers to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedBrowsers(java.lang.Iterable values) { + ensureTargetedBrowsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedBrowsers_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedBrowsers() { + targetedBrowsers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedBrowsers to add. + * @return This builder for chaining. + */ + public Builder addTargetedBrowsersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedBrowsersIsMutable(); + targetedBrowsers_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedBrowsers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedBrowsersIsMutable() { + if (!excludedBrowsers_.isModifiable()) { + excludedBrowsers_ = new com.google.protobuf.LazyStringArrayList(excludedBrowsers_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedBrowsers. + */ + public com.google.protobuf.ProtocolStringList getExcludedBrowsersList() { + excludedBrowsers_.makeImmutable(); + return excludedBrowsers_; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedBrowsers. + */ + public int getExcludedBrowsersCount() { + return excludedBrowsers_.size(); + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedBrowsers at the given index. + */ + public java.lang.String getExcludedBrowsers(int index) { + return excludedBrowsers_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedBrowsers at the given index. + */ + public com.google.protobuf.ByteString getExcludedBrowsersBytes(int index) { + return excludedBrowsers_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedBrowsers to set. + * @return This builder for chaining. + */ + public Builder setExcludedBrowsers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedBrowsersIsMutable(); + excludedBrowsers_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedBrowsers to add. + * @return This builder for chaining. + */ + public Builder addExcludedBrowsers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedBrowsersIsMutable(); + excludedBrowsers_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedBrowsers to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedBrowsers(java.lang.Iterable values) { + ensureExcludedBrowsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedBrowsers_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedBrowsers() { + excludedBrowsers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of browser resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedBrowsers to add. + * @return This builder for chaining. + */ + public Builder addExcludedBrowsersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedBrowsersIsMutable(); + excludedBrowsers_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BrowserTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BrowserTargeting) + private static final com.google.ads.admanager.v1.BrowserTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BrowserTargeting(); + } + + public static com.google.ads.admanager.v1.BrowserTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BrowserTargeting 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.admanager.v1.BrowserTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserTargetingOrBuilder.java new file mode 100644 index 000000000000..72057c3f04cc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserTargetingOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BrowserTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BrowserTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedBrowsers. + */ + java.util.List getTargetedBrowsersList(); + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedBrowsers. + */ + int getTargetedBrowsersCount(); + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedBrowsers at the given index. + */ + java.lang.String getTargetedBrowsers(int index); + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_browsers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedBrowsers at the given index. + */ + com.google.protobuf.ByteString getTargetedBrowsersBytes(int index); + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedBrowsers. + */ + java.util.List getExcludedBrowsersList(); + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedBrowsers. + */ + int getExcludedBrowsersCount(); + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedBrowsers at the given index. + */ + java.lang.String getExcludedBrowsers(int index); + + /** + * + * + *
    +   * Optional. A list of browser resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_browsers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedBrowsers at the given index. + */ + com.google.protobuf.ByteString getExcludedBrowsersBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKey.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKey.java new file mode 100644 index 000000000000..073e525407b6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKey.java @@ -0,0 +1,1011 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Key associated with a piece of content from a publisher's CMS.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataKey} + */ +public final class CmsMetadataKey extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CmsMetadataKey) + CmsMetadataKeyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CmsMetadataKey.newBuilder() to construct. + private CmsMetadataKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CmsMetadataKey() { + name_ = ""; + displayName_ = ""; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CmsMetadataKey(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataKey.class, + com.google.ads.admanager.v1.CmsMetadataKey.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `CmsMetadataKey`.
    +   * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +   * 
    + * + * 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. The resource name of the `CmsMetadataKey`.
    +   * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Required. The key of a key-value pair.
    +   * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The key of a key-value pair.
    +   * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_ = 0; + + /** + * + * + *
    +   * Output only. The status of this CMS metadata key.
    +   * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +   * Output only. The status of this CMS metadata key.
    +   * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus getStatus() { + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus result = + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (status_ + != com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus + .CMS_METADATA_KEY_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (status_ + != com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus + .CMS_METADATA_KEY_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, status_); + } + 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.admanager.v1.CmsMetadataKey)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CmsMetadataKey other = + (com.google.ads.admanager.v1.CmsMetadataKey) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (status_ != other.status_) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CmsMetadataKey parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey 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.admanager.v1.CmsMetadataKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey 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.admanager.v1.CmsMetadataKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CmsMetadataKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Key associated with a piece of content from a publisher's CMS.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataKey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CmsMetadataKey) + com.google.ads.admanager.v1.CmsMetadataKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataKey.class, + com.google.ads.admanager.v1.CmsMetadataKey.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CmsMetadataKey.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + status_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CmsMetadataKeyMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataKey_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKey getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CmsMetadataKey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKey build() { + com.google.ads.admanager.v1.CmsMetadataKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKey buildPartial() { + com.google.ads.admanager.v1.CmsMetadataKey result = + new com.google.ads.admanager.v1.CmsMetadataKey(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CmsMetadataKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.status_ = status_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CmsMetadataKey) { + return mergeFrom((com.google.ads.admanager.v1.CmsMetadataKey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CmsMetadataKey other) { + if (other == com.google.ads.admanager.v1.CmsMetadataKey.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + 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 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000004; + 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 name_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `CmsMetadataKey`.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * 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. The resource name of the `CmsMetadataKey`.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * 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. The resource name of the `CmsMetadataKey`.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `CmsMetadataKey`.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `CmsMetadataKey`.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Required. The key of a key-value pair.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The key of a key-value pair.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The key of a key-value pair.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The key of a key-value pair.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The key of a key-value pair.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
    +     * Output only. The status of this CMS metadata key.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +     * Output only. The status of this CMS metadata key.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of this CMS metadata key.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus getStatus() { + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus result = + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The status of this CMS metadata key.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of this CMS metadata key.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000004); + status_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CmsMetadataKey) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CmsMetadataKey) + private static final com.google.ads.admanager.v1.CmsMetadataKey DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CmsMetadataKey(); + } + + public static com.google.ads.admanager.v1.CmsMetadataKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmsMetadataKey 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.admanager.v1.CmsMetadataKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyEnumsProto.java new file mode 100644 index 000000000000..8aeeef343a24 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyEnumsProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CmsMetadataKeyEnumsProto { + private CmsMetadataKeyEnumsProto() {} + + 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_admanager_v1_CmsMetadataKeyStatusEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CmsMetadataKeyStatusEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/ads/admanager/v1/cms_metadata_k" + + "ey_enums.proto\022\027google.ads.admanager.v1\"" + + "u\n\030CmsMetadataKeyStatusEnum\"Y\n\024CmsMetada" + + "taKeyStatus\022\'\n#CMS_METADATA_KEY_STATUS_U" + + "NSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002B\314" + + "\001\n\033com.google.ads.admanager.v1B\030CmsMetad" + + "ataKeyEnumsProtoP\001Z@google.golang.org/ge" + + "nproto/googleapis/ads/admanager/v1;adman" + + "ager\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\" + + "Ads\\AdManager\\V1\352\002\032Google::Ads::AdManage" + + "r::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_CmsMetadataKeyStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_CmsMetadataKeyStatusEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CmsMetadataKeyStatusEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyMessagesProto.java new file mode 100644 index 000000000000..1ace9e34f2b8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyMessagesProto.java @@ -0,0 +1,91 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CmsMetadataKeyMessagesProto { + private CmsMetadataKeyMessagesProto() {} + + 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_admanager_v1_CmsMetadataKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CmsMetadataKey_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/ads/admanager/v1/cms_metadata_k" + + "ey_messages.proto\022\027google.ads.admanager." + + "v1\0324google/ads/admanager/v1/cms_metadata" + + "_key_enums.proto\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\"\250\002\n" + + "\016CmsMetadataKey\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014di" + + "splay_name\030\003 \001(\tB\003\340A\002\022[\n\006status\030\004 \001(\0162F." + + "google.ads.admanager.v1.CmsMetadataKeySt" + + "atusEnum.CmsMetadataKeyStatusB\003\340A\003:\212\001\352A\206" + + "\001\n\'admanager.googleapis.com/CmsMetadataK" + + "ey\022:networks/{network_code}/cmsMetadataK" + + "eys/{cms_metadata_key}*\017cmsMetadataKeys2" + + "\016cmsMetadataKeyB\317\001\n\033com.google.ads.adman" + + "ager.v1B\033CmsMetadataKeyMessagesProtoP\001Z@" + + "google.golang.org/genproto/googleapis/ad" + + "s/admanager/v1;admanager\252\002\027Google.Ads.Ad" + + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032G" + + "oogle::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.CmsMetadataKeyEnumsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_CmsMetadataKey_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_CmsMetadataKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CmsMetadataKey_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Status", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.CmsMetadataKeyEnumsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyName.java new file mode 100644 index 000000000000..af06e0eeff98 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 CmsMetadataKeyName implements ResourceName { + private static final PathTemplate NETWORK_CODE_CMS_METADATA_KEY = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String cmsMetadataKey; + + @Deprecated + protected CmsMetadataKeyName() { + networkCode = null; + cmsMetadataKey = null; + } + + private CmsMetadataKeyName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + cmsMetadataKey = Preconditions.checkNotNull(builder.getCmsMetadataKey()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getCmsMetadataKey() { + return cmsMetadataKey; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CmsMetadataKeyName of(String networkCode, String cmsMetadataKey) { + return newBuilder().setNetworkCode(networkCode).setCmsMetadataKey(cmsMetadataKey).build(); + } + + public static String format(String networkCode, String cmsMetadataKey) { + return newBuilder() + .setNetworkCode(networkCode) + .setCmsMetadataKey(cmsMetadataKey) + .build() + .toString(); + } + + public static CmsMetadataKeyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_CMS_METADATA_KEY.validatedMatch( + formattedString, "CmsMetadataKeyName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("cms_metadata_key")); + } + + 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 (CmsMetadataKeyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_CMS_METADATA_KEY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (cmsMetadataKey != null) { + fieldMapBuilder.put("cms_metadata_key", cmsMetadataKey); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_CMS_METADATA_KEY.instantiate( + "network_code", networkCode, "cms_metadata_key", cmsMetadataKey); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CmsMetadataKeyName that = ((CmsMetadataKeyName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.cmsMetadataKey, that.cmsMetadataKey); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(cmsMetadataKey); + return h; + } + + /** Builder for networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}. */ + public static class Builder { + private String networkCode; + private String cmsMetadataKey; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getCmsMetadataKey() { + return cmsMetadataKey; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setCmsMetadataKey(String cmsMetadataKey) { + this.cmsMetadataKey = cmsMetadataKey; + return this; + } + + private Builder(CmsMetadataKeyName cmsMetadataKeyName) { + this.networkCode = cmsMetadataKeyName.networkCode; + this.cmsMetadataKey = cmsMetadataKeyName.cmsMetadataKey; + } + + public CmsMetadataKeyName build() { + return new CmsMetadataKeyName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyOrBuilder.java new file mode 100644 index 000000000000..f9b9cf140e2d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CmsMetadataKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CmsMetadataKey) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `CmsMetadataKey`.
    +   * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `CmsMetadataKey`.
    +   * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The key of a key-value pair.
    +   * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Required. The key of a key-value pair.
    +   * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
    +   * Output only. The status of this CMS metadata key.
    +   * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
    +   * Output only. The status of this CMS metadata key.
    +   * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus getStatus(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceProto.java new file mode 100644 index 000000000000..af2ec4cbd662 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceProto.java @@ -0,0 +1,142 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CmsMetadataKeyServiceProto { + private CmsMetadataKeyServiceProto() {} + + 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_admanager_v1_GetCmsMetadataKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetCmsMetadataKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_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" + + "6google/ads/admanager/v1/cms_metadata_key_service.proto\022\027google.ads.admanager.v" + + "1\0327google/ads/admanager/v1/cms_metadata_" + + "key_messages.proto\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/resource.proto\"Y\n" + + "\030GetCmsMetadataKeyRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'admanager.googleapis.com/CmsMetadataKey\"\306\001\n" + + "\032ListCmsMetadataKeysRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\216\001\n" + + "\033ListCmsMetadataKeysResponse\022B\n" + + "\021cms_metadata_keys\030\001" + + " \003(\0132\'.google.ads.admanager.v1.CmsMetadataKey\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\307\003\n" + + "\025CmsMetadataKeyService\022\247\001\n" + + "\021GetCmsMetadataKey\0221.google.ads.admanage" + + "r.v1.GetCmsMetadataKeyRequest\032\'.google.a" + + "ds.admanager.v1.CmsMetadataKey\"6\332A\004name\202" + + "\323\344\223\002)\022\'/v1/{name=networks/*/cmsMetadataKeys/*}\022\272\001\n" + + "\023ListCmsMetadataKeys\0223.google.ads.admanager.v1.ListCmsMetadataKeysRequ" + + "est\0324.google.ads.admanager.v1.ListCmsMet" + + "adataKeysResponse\"8\332A\006parent\202\323\344\223\002)\022\'/v1/" + + "{parent=networks/*}/cmsMetadataKeys\032G\312A\030" + + "admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\316\001\n" + + "\033com.google.ads.admanager.v1B\032CmsMetadataKeyServ" + + "iceProtoP\001Z@google.golang.org/genproto/g" + + "oogleapis/ads/admanager/v1;admanager\252\002\027G" + + "oogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMa" + + "nager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.CmsMetadataKeyMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetCmsMetadataKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetCmsMetadataKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetCmsMetadataKeyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_descriptor, + new java.lang.String[] { + "CmsMetadataKeys", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.CmsMetadataKeyMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyStatusEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyStatusEnum.java new file mode 100644 index 000000000000..3854e8aacbea --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyStatusEnum.java @@ -0,0 +1,600 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [CmsMetadataKeyStatus][google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataKeyStatusEnum} + */ +public final class CmsMetadataKeyStatusEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CmsMetadataKeyStatusEnum) + CmsMetadataKeyStatusEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CmsMetadataKeyStatusEnum.newBuilder() to construct. + private CmsMetadataKeyStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CmsMetadataKeyStatusEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CmsMetadataKeyStatusEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataKeyStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataKeyStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.class, + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.Builder.class); + } + + /** + * + * + *
    +   * Status for CmsMetadataKey objects.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus} + */ + public enum CmsMetadataKeyStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CMS_METADATA_KEY_STATUS_UNSPECIFIED = 0; + */ + CMS_METADATA_KEY_STATUS_UNSPECIFIED(0), + /** + * + * + *
    +     * The key is active.
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * The key is not active.
    +     * 
    + * + * INACTIVE = 2; + */ + INACTIVE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CMS_METADATA_KEY_STATUS_UNSPECIFIED = 0; + */ + public static final int CMS_METADATA_KEY_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The key is active.
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
    +     * The key is not active.
    +     * 
    + * + * INACTIVE = 2; + */ + public static final int INACTIVE_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 CmsMetadataKeyStatus 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 CmsMetadataKeyStatus forNumber(int value) { + switch (value) { + case 0: + return CMS_METADATA_KEY_STATUS_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return INACTIVE; + 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 CmsMetadataKeyStatus findValueByNumber(int number) { + return CmsMetadataKeyStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CmsMetadataKeyStatus[] VALUES = values(); + + public static CmsMetadataKeyStatus 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 CmsMetadataKeyStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus) + } + + 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.admanager.v1.CmsMetadataKeyStatusEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum other = + (com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum) 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.admanager.v1.CmsMetadataKeyStatusEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum 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.admanager.v1.CmsMetadataKeyStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum 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.admanager.v1.CmsMetadataKeyStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [CmsMetadataKeyStatus][google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataKeyStatusEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CmsMetadataKeyStatusEnum) + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataKeyStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataKeyStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.class, + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.CmsMetadataKeyEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataKeyStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum build() { + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum buildPartial() { + com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum result = + new com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum) { + return mergeFrom((com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum other) { + if (other == com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CmsMetadataKeyStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CmsMetadataKeyStatusEnum) + private static final com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum(); + } + + public static com.google.ads.admanager.v1.CmsMetadataKeyStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmsMetadataKeyStatusEnum 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.admanager.v1.CmsMetadataKeyStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyStatusEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyStatusEnumOrBuilder.java new file mode 100644 index 000000000000..4b33651402ef --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyStatusEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CmsMetadataKeyStatusEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CmsMetadataKeyStatusEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataTargeting.java new file mode 100644 index 000000000000..bab8b27dc518 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataTargeting.java @@ -0,0 +1,905 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents targeting for CMS metadata. The values are ORed together.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataTargeting} + */ +public final class CmsMetadataTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CmsMetadataTargeting) + CmsMetadataTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CmsMetadataTargeting.newBuilder() to construct. + private CmsMetadataTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CmsMetadataTargeting() { + cmsMetadataValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CmsMetadataTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CmsMetadataTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CmsMetadataTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataTargeting.class, + com.google.ads.admanager.v1.CmsMetadataTargeting.Builder.class); + } + + private int bitField0_; + public static final int NEGATIVE_FIELD_NUMBER = 1; + private boolean negative_ = false; + + /** + * + * + *
    +   * Whether this expression is negatively targeted, meaning it matches
    +   * ad requests that exclude the below values.
    +   * 
    + * + * optional bool negative = 1; + * + * @return Whether the negative field is set. + */ + @java.lang.Override + public boolean hasNegative() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Whether this expression is negatively targeted, meaning it matches
    +   * ad requests that exclude the below values.
    +   * 
    + * + * optional bool negative = 1; + * + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + + public static final int CMS_METADATA_VALUES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList cmsMetadataValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The resource names of the targeted CMS metadata values.
    +   * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the cmsMetadataValues. + */ + public com.google.protobuf.ProtocolStringList getCmsMetadataValuesList() { + return cmsMetadataValues_; + } + + /** + * + * + *
    +   * Optional. The resource names of the targeted CMS metadata values.
    +   * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of cmsMetadataValues. + */ + public int getCmsMetadataValuesCount() { + return cmsMetadataValues_.size(); + } + + /** + * + * + *
    +   * Optional. The resource names of the targeted CMS metadata values.
    +   * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The cmsMetadataValues at the given index. + */ + public java.lang.String getCmsMetadataValues(int index) { + return cmsMetadataValues_.get(index); + } + + /** + * + * + *
    +   * Optional. The resource names of the targeted CMS metadata values.
    +   * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the cmsMetadataValues at the given index. + */ + public com.google.protobuf.ByteString getCmsMetadataValuesBytes(int index) { + return cmsMetadataValues_.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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, negative_); + } + for (int i = 0; i < cmsMetadataValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cmsMetadataValues_.getRaw(i)); + } + 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.computeBoolSize(1, negative_); + } + { + int dataSize = 0; + for (int i = 0; i < cmsMetadataValues_.size(); i++) { + dataSize += computeStringSizeNoTag(cmsMetadataValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getCmsMetadataValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.CmsMetadataTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CmsMetadataTargeting other = + (com.google.ads.admanager.v1.CmsMetadataTargeting) obj; + + if (hasNegative() != other.hasNegative()) return false; + if (hasNegative()) { + if (getNegative() != other.getNegative()) return false; + } + if (!getCmsMetadataValuesList().equals(other.getCmsMetadataValuesList())) 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 (hasNegative()) { + hash = (37 * hash) + NEGATIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegative()); + } + if (getCmsMetadataValuesCount() > 0) { + hash = (37 * hash) + CMS_METADATA_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getCmsMetadataValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting 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.admanager.v1.CmsMetadataTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting 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.admanager.v1.CmsMetadataTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CmsMetadataTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents targeting for CMS metadata. The values are ORed together.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CmsMetadataTargeting) + com.google.ads.admanager.v1.CmsMetadataTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CmsMetadataTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CmsMetadataTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataTargeting.class, + com.google.ads.admanager.v1.CmsMetadataTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CmsMetadataTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + negative_ = false; + cmsMetadataValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CmsMetadataTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CmsMetadataTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataTargeting build() { + com.google.ads.admanager.v1.CmsMetadataTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataTargeting buildPartial() { + com.google.ads.admanager.v1.CmsMetadataTargeting result = + new com.google.ads.admanager.v1.CmsMetadataTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CmsMetadataTargeting result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.negative_ = negative_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + cmsMetadataValues_.makeImmutable(); + result.cmsMetadataValues_ = cmsMetadataValues_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CmsMetadataTargeting) { + return mergeFrom((com.google.ads.admanager.v1.CmsMetadataTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CmsMetadataTargeting other) { + if (other == com.google.ads.admanager.v1.CmsMetadataTargeting.getDefaultInstance()) + return this; + if (other.hasNegative()) { + setNegative(other.getNegative()); + } + if (!other.cmsMetadataValues_.isEmpty()) { + if (cmsMetadataValues_.isEmpty()) { + cmsMetadataValues_ = other.cmsMetadataValues_; + bitField0_ |= 0x00000002; + } else { + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.addAll(other.cmsMetadataValues_); + } + 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 8: + { + negative_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.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 boolean negative_; + + /** + * + * + *
    +     * Whether this expression is negatively targeted, meaning it matches
    +     * ad requests that exclude the below values.
    +     * 
    + * + * optional bool negative = 1; + * + * @return Whether the negative field is set. + */ + @java.lang.Override + public boolean hasNegative() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Whether this expression is negatively targeted, meaning it matches
    +     * ad requests that exclude the below values.
    +     * 
    + * + * optional bool negative = 1; + * + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + + /** + * + * + *
    +     * Whether this expression is negatively targeted, meaning it matches
    +     * ad requests that exclude the below values.
    +     * 
    + * + * optional bool negative = 1; + * + * @param value The negative to set. + * @return This builder for chaining. + */ + public Builder setNegative(boolean value) { + + negative_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Whether this expression is negatively targeted, meaning it matches
    +     * ad requests that exclude the below values.
    +     * 
    + * + * optional bool negative = 1; + * + * @return This builder for chaining. + */ + public Builder clearNegative() { + bitField0_ = (bitField0_ & ~0x00000001); + negative_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList cmsMetadataValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCmsMetadataValuesIsMutable() { + if (!cmsMetadataValues_.isModifiable()) { + cmsMetadataValues_ = new com.google.protobuf.LazyStringArrayList(cmsMetadataValues_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. The resource names of the targeted CMS metadata values.
    +     * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the cmsMetadataValues. + */ + public com.google.protobuf.ProtocolStringList getCmsMetadataValuesList() { + cmsMetadataValues_.makeImmutable(); + return cmsMetadataValues_; + } + + /** + * + * + *
    +     * Optional. The resource names of the targeted CMS metadata values.
    +     * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of cmsMetadataValues. + */ + public int getCmsMetadataValuesCount() { + return cmsMetadataValues_.size(); + } + + /** + * + * + *
    +     * Optional. The resource names of the targeted CMS metadata values.
    +     * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The cmsMetadataValues at the given index. + */ + public java.lang.String getCmsMetadataValues(int index) { + return cmsMetadataValues_.get(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the targeted CMS metadata values.
    +     * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the cmsMetadataValues at the given index. + */ + public com.google.protobuf.ByteString getCmsMetadataValuesBytes(int index) { + return cmsMetadataValues_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the targeted CMS metadata values.
    +     * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The cmsMetadataValues to set. + * @return This builder for chaining. + */ + public Builder setCmsMetadataValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the targeted CMS metadata values.
    +     * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cmsMetadataValues to add. + * @return This builder for chaining. + */ + public Builder addCmsMetadataValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the targeted CMS metadata values.
    +     * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The cmsMetadataValues to add. + * @return This builder for chaining. + */ + public Builder addAllCmsMetadataValues(java.lang.Iterable values) { + ensureCmsMetadataValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cmsMetadataValues_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the targeted CMS metadata values.
    +     * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCmsMetadataValues() { + cmsMetadataValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the targeted CMS metadata values.
    +     * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the cmsMetadataValues to add. + * @return This builder for chaining. + */ + public Builder addCmsMetadataValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CmsMetadataTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CmsMetadataTargeting) + private static final com.google.ads.admanager.v1.CmsMetadataTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CmsMetadataTargeting(); + } + + public static com.google.ads.admanager.v1.CmsMetadataTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmsMetadataTargeting 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.admanager.v1.CmsMetadataTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataTargetingOrBuilder.java new file mode 100644 index 000000000000..8d2d2d75c1c5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataTargetingOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CmsMetadataTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CmsMetadataTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Whether this expression is negatively targeted, meaning it matches
    +   * ad requests that exclude the below values.
    +   * 
    + * + * optional bool negative = 1; + * + * @return Whether the negative field is set. + */ + boolean hasNegative(); + + /** + * + * + *
    +   * Whether this expression is negatively targeted, meaning it matches
    +   * ad requests that exclude the below values.
    +   * 
    + * + * optional bool negative = 1; + * + * @return The negative. + */ + boolean getNegative(); + + /** + * + * + *
    +   * Optional. The resource names of the targeted CMS metadata values.
    +   * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the cmsMetadataValues. + */ + java.util.List getCmsMetadataValuesList(); + + /** + * + * + *
    +   * Optional. The resource names of the targeted CMS metadata values.
    +   * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of cmsMetadataValues. + */ + int getCmsMetadataValuesCount(); + + /** + * + * + *
    +   * Optional. The resource names of the targeted CMS metadata values.
    +   * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The cmsMetadataValues at the given index. + */ + java.lang.String getCmsMetadataValues(int index); + + /** + * + * + *
    +   * Optional. The resource names of the targeted CMS metadata values.
    +   * 
    + * + * + * repeated string cms_metadata_values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the cmsMetadataValues at the given index. + */ + com.google.protobuf.ByteString getCmsMetadataValuesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValue.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValue.java new file mode 100644 index 000000000000..3ecb8a0cf143 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValue.java @@ -0,0 +1,1230 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Key value pair associated with a piece of content from a publisher's CMS.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataValue} + */ +public final class CmsMetadataValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CmsMetadataValue) + CmsMetadataValueOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CmsMetadataValue.newBuilder() to construct. + private CmsMetadataValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CmsMetadataValue() { + name_ = ""; + displayName_ = ""; + key_ = ""; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CmsMetadataValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataValue.class, + com.google.ads.admanager.v1.CmsMetadataValue.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `CmsMetadataValue`.
    +   * Format:
    +   * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +   * 
    + * + * 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. The resource name of the `CmsMetadataValue`.
    +   * Format:
    +   * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * The value of this key-value pair.
    +   * 
    + * + * string display_name = 3; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * The value of this key-value pair.
    +   * 
    + * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
    +   * Required. Immutable. The resource name of the CmsMetadataKey.
    +   * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"
    +   * 
    + * + * + * string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Immutable. The resource name of the CmsMetadataKey.
    +   * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"
    +   * 
    + * + * + * string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 6; + private int status_ = 0; + + /** + * + * + *
    +   * Output only. The status of this CMS metadata value.
    +   * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +   * Output only. The status of this CMS metadata value.
    +   * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus getStatus() { + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus result = + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, key_); + } + if (status_ + != com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus + .CMS_METADATA_VALUE_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, key_); + } + if (status_ + != com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus + .CMS_METADATA_VALUE_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, status_); + } + 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.admanager.v1.CmsMetadataValue)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CmsMetadataValue other = + (com.google.ads.admanager.v1.CmsMetadataValue) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getKey().equals(other.getKey())) return false; + if (status_ != other.status_) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CmsMetadataValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue 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.admanager.v1.CmsMetadataValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue 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.admanager.v1.CmsMetadataValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CmsMetadataValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Key value pair associated with a piece of content from a publisher's CMS.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CmsMetadataValue) + com.google.ads.admanager.v1.CmsMetadataValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataValue.class, + com.google.ads.admanager.v1.CmsMetadataValue.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CmsMetadataValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + key_ = ""; + status_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CmsMetadataValueMessagesProto + .internal_static_google_ads_admanager_v1_CmsMetadataValue_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValue getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CmsMetadataValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValue build() { + com.google.ads.admanager.v1.CmsMetadataValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValue buildPartial() { + com.google.ads.admanager.v1.CmsMetadataValue result = + new com.google.ads.admanager.v1.CmsMetadataValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CmsMetadataValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CmsMetadataValue) { + return mergeFrom((com.google.ads.admanager.v1.CmsMetadataValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CmsMetadataValue other) { + if (other == com.google.ads.admanager.v1.CmsMetadataValue.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + 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 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 42: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 48: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 + 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `CmsMetadataValue`.
    +     * Format:
    +     * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * 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. The resource name of the `CmsMetadataValue`.
    +     * Format:
    +     * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * 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. The resource name of the `CmsMetadataValue`.
    +     * Format:
    +     * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `CmsMetadataValue`.
    +     * Format:
    +     * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `CmsMetadataValue`.
    +     * Format:
    +     * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * The value of this key-value pair.
    +     * 
    + * + * string display_name = 3; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * The value of this key-value pair.
    +     * 
    + * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * The value of this key-value pair.
    +     * 
    + * + * string display_name = 3; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The value of this key-value pair.
    +     * 
    + * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The value of this key-value pair.
    +     * 
    + * + * string display_name = 3; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + + /** + * + * + *
    +     * Required. Immutable. The resource name of the CmsMetadataKey.
    +     * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"
    +     * 
    + * + * + * string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the CmsMetadataKey.
    +     * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"
    +     * 
    + * + * + * string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the CmsMetadataKey.
    +     * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"
    +     * 
    + * + * + * string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the CmsMetadataKey.
    +     * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"
    +     * 
    + * + * + * string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the CmsMetadataKey.
    +     * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"
    +     * 
    + * + * + * string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
    +     * Output only. The status of this CMS metadata value.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +     * Output only. The status of this CMS metadata value.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of this CMS metadata value.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus + getStatus() { + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus result = + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The status of this CMS metadata value.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of this CMS metadata value.
    +     * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CmsMetadataValue) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CmsMetadataValue) + private static final com.google.ads.admanager.v1.CmsMetadataValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CmsMetadataValue(); + } + + public static com.google.ads.admanager.v1.CmsMetadataValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmsMetadataValue 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.admanager.v1.CmsMetadataValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueEnumsProto.java new file mode 100644 index 000000000000..dde4722ecc28 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueEnumsProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CmsMetadataValueEnumsProto { + private CmsMetadataValueEnumsProto() {} + + 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_admanager_v1_CmsMetadataValueStatusEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CmsMetadataValueStatusEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/ads/admanager/v1/cms_metadata_v" + + "alue_enums.proto\022\027google.ads.admanager.v" + + "1\"\211\001\n\032CmsMetadataValueStatusEnum\"k\n\026CmsM" + + "etadataValueStatus\022)\n%CMS_METADATA_VALUE" + + "_STATUS_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010ARC" + + "HIVED\020\002\022\014\n\010INACTIVE\020\003B\316\001\n\033com.google.ads" + + ".admanager.v1B\032CmsMetadataValueEnumsProt" + + "oP\001Z@google.golang.org/genproto/googleap" + + "is/ads/admanager/v1;admanager\252\002\027Google.A" + + "ds.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V" + + "1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_CmsMetadataValueStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_CmsMetadataValueStatusEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CmsMetadataValueStatusEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueMessagesProto.java new file mode 100644 index 000000000000..0af9f754580e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueMessagesProto.java @@ -0,0 +1,94 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CmsMetadataValueMessagesProto { + private CmsMetadataValueMessagesProto() {} + + 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_admanager_v1_CmsMetadataValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CmsMetadataValue_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/ads/admanager/v1/cms_metadata_v" + + "alue_messages.proto\022\027google.ads.admanage" + + "r.v1\0326google/ads/admanager/v1/cms_metada" + + "ta_value_enums.proto\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\"\364\002\n\020CmsMetadataValue\022\021\n\004name\030\001 \001(\tB\003\340A\010" + + "\022\024\n\014display_name\030\003 \001(\t\022?\n\003key\030\005 \001(\tB2\340A\002" + + "\340A\005\372A)\n\'admanager.googleapis.com/CmsMeta" + + "dataKey\022_\n\006status\030\006 \001(\0162J.google.ads.adm" + + "anager.v1.CmsMetadataValueStatusEnum.Cms" + + "MetadataValueStatusB\003\340A\003:\224\001\352A\220\001\n)admanag" + + "er.googleapis.com/CmsMetadataValue\022>netw" + + "orks/{network_code}/cmsMetadataValues/{c" + + "ms_metadata_value}*\021cmsMetadataValues2\020c" + + "msMetadataValueB\321\001\n\033com.google.ads.adman" + + "ager.v1B\035CmsMetadataValueMessagesProtoP\001" + + "Z@google.golang.org/genproto/googleapis/" + + "ads/admanager/v1;admanager\252\002\027Google.Ads." + + "AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002" + + "\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.CmsMetadataValueEnumsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_CmsMetadataValue_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_CmsMetadataValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CmsMetadataValue_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Key", "Status", + }); + 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); + com.google.ads.admanager.v1.CmsMetadataValueEnumsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueName.java new file mode 100644 index 000000000000..d2a47aca6291 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 CmsMetadataValueName implements ResourceName { + private static final PathTemplate NETWORK_CODE_CMS_METADATA_VALUE = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/cmsMetadataValues/{cms_metadata_value}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String cmsMetadataValue; + + @Deprecated + protected CmsMetadataValueName() { + networkCode = null; + cmsMetadataValue = null; + } + + private CmsMetadataValueName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + cmsMetadataValue = Preconditions.checkNotNull(builder.getCmsMetadataValue()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getCmsMetadataValue() { + return cmsMetadataValue; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CmsMetadataValueName of(String networkCode, String cmsMetadataValue) { + return newBuilder().setNetworkCode(networkCode).setCmsMetadataValue(cmsMetadataValue).build(); + } + + public static String format(String networkCode, String cmsMetadataValue) { + return newBuilder() + .setNetworkCode(networkCode) + .setCmsMetadataValue(cmsMetadataValue) + .build() + .toString(); + } + + public static CmsMetadataValueName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_CMS_METADATA_VALUE.validatedMatch( + formattedString, "CmsMetadataValueName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("cms_metadata_value")); + } + + 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 (CmsMetadataValueName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_CMS_METADATA_VALUE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (cmsMetadataValue != null) { + fieldMapBuilder.put("cms_metadata_value", cmsMetadataValue); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_CMS_METADATA_VALUE.instantiate( + "network_code", networkCode, "cms_metadata_value", cmsMetadataValue); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CmsMetadataValueName that = ((CmsMetadataValueName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.cmsMetadataValue, that.cmsMetadataValue); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(cmsMetadataValue); + return h; + } + + /** Builder for networks/{network_code}/cmsMetadataValues/{cms_metadata_value}. */ + public static class Builder { + private String networkCode; + private String cmsMetadataValue; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getCmsMetadataValue() { + return cmsMetadataValue; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setCmsMetadataValue(String cmsMetadataValue) { + this.cmsMetadataValue = cmsMetadataValue; + return this; + } + + private Builder(CmsMetadataValueName cmsMetadataValueName) { + this.networkCode = cmsMetadataValueName.networkCode; + this.cmsMetadataValue = cmsMetadataValueName.cmsMetadataValue; + } + + public CmsMetadataValueName build() { + return new CmsMetadataValueName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueOrBuilder.java new file mode 100644 index 000000000000..962d5c0b3857 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CmsMetadataValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CmsMetadataValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `CmsMetadataValue`.
    +   * Format:
    +   * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `CmsMetadataValue`.
    +   * Format:
    +   * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * The value of this key-value pair.
    +   * 
    + * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * The value of this key-value pair.
    +   * 
    + * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
    +   * Required. Immutable. The resource name of the CmsMetadataKey.
    +   * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"
    +   * 
    + * + * + * string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * + * + *
    +   * Required. Immutable. The resource name of the CmsMetadataKey.
    +   * Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"
    +   * 
    + * + * + * string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
    +   * Output only. The status of this CMS metadata value.
    +   * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
    +   * Output only. The status of this CMS metadata value.
    +   * 
    + * + * + * .google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus getStatus(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceProto.java new file mode 100644 index 000000000000..e077aa64ee6a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CmsMetadataValueServiceProto { + private CmsMetadataValueServiceProto() {} + + 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_admanager_v1_GetCmsMetadataValueRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetCmsMetadataValueRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_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" + + "8google/ads/admanager/v1/cms_metadata_value_service.proto\022\027google.ads.admanager" + + ".v1\0329google/ads/admanager/v1/cms_metadat" + + "a_value_messages.proto\032\034google/api/annot" + + "ations.proto\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/api/resource.proto\"]\n" + + "\032GetCmsMetadataValueRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")admanager.googleapis.com/CmsMetadataValue\"\310\001\n" + + "\034ListCmsMetadataValuesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\224\001\n" + + "\035ListCmsMetadataValuesResponse\022F\n" + + "\023cms_metadata_values\030\001" + + " \003(\0132).google.ads.admanager.v1.CmsMetadataValue\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\331\003\n" + + "\027CmsMetadataValueService\022\257\001\n" + + "\023GetCmsMetadataValue\0223.google.ads.admanager.v1.GetCmsMetadataV" + + "alueRequest\032).google.ads.admanager.v1.Cm" + + "sMetadataValue\"8\332A\004name\202\323\344\223\002+\022)/v1/{name=networks/*/cmsMetadataValues/*}\022\302\001\n" + + "\025ListCmsMetadataValues\0225.google.ads.admanage" + + "r.v1.ListCmsMetadataValuesRequest\0326.google.ads.admanager.v1.ListCmsMetadataValue" + + "sResponse\":\332A\006parent\202\323\344\223\002+\022)/v1/{parent=" + + "networks/*}/cmsMetadataValues\032G\312A\030admana" + + "ger.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\320\001\n" + + "\033com.google.ads.admanager.v1B\034CmsMetadataValueServiceP" + + "rotoP\001Z@google.golang.org/genproto/googl" + + "eapis/ads/admanager/v1;admanager\252\002\027Googl" + + "e.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManage" + + "r\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.CmsMetadataValueMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetCmsMetadataValueRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetCmsMetadataValueRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetCmsMetadataValueRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_descriptor, + new java.lang.String[] { + "CmsMetadataValues", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.CmsMetadataValueMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueStatusEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueStatusEnum.java new file mode 100644 index 000000000000..82e2b3684bde --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueStatusEnum.java @@ -0,0 +1,624 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [CmsMetadataValueStatus][google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataValueStatusEnum} + */ +public final class CmsMetadataValueStatusEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CmsMetadataValueStatusEnum) + CmsMetadataValueStatusEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CmsMetadataValueStatusEnum.newBuilder() to construct. + private CmsMetadataValueStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CmsMetadataValueStatusEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CmsMetadataValueStatusEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataValueStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataValueStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.class, + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.Builder.class); + } + + /** + * + * + *
    +   * Status for CmsMetadataValue objects.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus} + */ + public enum CmsMetadataValueStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CMS_METADATA_VALUE_STATUS_UNSPECIFIED = 0; + */ + CMS_METADATA_VALUE_STATUS_UNSPECIFIED(0), + /** + * + * + *
    +     * The value is active.
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * The value is archived.
    +     * 
    + * + * ARCHIVED = 2; + */ + ARCHIVED(2), + /** + * + * + *
    +     * The value is not active.
    +     * 
    + * + * INACTIVE = 3; + */ + INACTIVE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CMS_METADATA_VALUE_STATUS_UNSPECIFIED = 0; + */ + public static final int CMS_METADATA_VALUE_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The value is active.
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
    +     * The value is archived.
    +     * 
    + * + * ARCHIVED = 2; + */ + public static final int ARCHIVED_VALUE = 2; + + /** + * + * + *
    +     * The value is not active.
    +     * 
    + * + * INACTIVE = 3; + */ + public static final int INACTIVE_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 CmsMetadataValueStatus 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 CmsMetadataValueStatus forNumber(int value) { + switch (value) { + case 0: + return CMS_METADATA_VALUE_STATUS_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return ARCHIVED; + case 3: + return INACTIVE; + 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 CmsMetadataValueStatus findValueByNumber(int number) { + return CmsMetadataValueStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CmsMetadataValueStatus[] VALUES = values(); + + public static CmsMetadataValueStatus 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 CmsMetadataValueStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus) + } + + 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.admanager.v1.CmsMetadataValueStatusEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum other = + (com.google.ads.admanager.v1.CmsMetadataValueStatusEnum) 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.admanager.v1.CmsMetadataValueStatusEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum 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.admanager.v1.CmsMetadataValueStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum 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.admanager.v1.CmsMetadataValueStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [CmsMetadataValueStatus][google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CmsMetadataValueStatusEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CmsMetadataValueStatusEnum) + com.google.ads.admanager.v1.CmsMetadataValueStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataValueStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataValueStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.class, + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.CmsMetadataValueEnumsProto + .internal_static_google_ads_admanager_v1_CmsMetadataValueStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValueStatusEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValueStatusEnum build() { + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValueStatusEnum buildPartial() { + com.google.ads.admanager.v1.CmsMetadataValueStatusEnum result = + new com.google.ads.admanager.v1.CmsMetadataValueStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CmsMetadataValueStatusEnum) { + return mergeFrom((com.google.ads.admanager.v1.CmsMetadataValueStatusEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CmsMetadataValueStatusEnum other) { + if (other == com.google.ads.admanager.v1.CmsMetadataValueStatusEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CmsMetadataValueStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CmsMetadataValueStatusEnum) + private static final com.google.ads.admanager.v1.CmsMetadataValueStatusEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CmsMetadataValueStatusEnum(); + } + + public static com.google.ads.admanager.v1.CmsMetadataValueStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmsMetadataValueStatusEnum 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.admanager.v1.CmsMetadataValueStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueStatusEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueStatusEnumOrBuilder.java new file mode 100644 index 000000000000..c529b3a6fb27 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueStatusEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CmsMetadataValueStatusEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CmsMetadataValueStatusEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Company.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Company.java index 2c300f89d223..1ba4a5b5d4cc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Company.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Company.java @@ -142,7 +142,23 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. `Company` ID. * * - * int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the companyId field is set. + */ + @java.lang.Override + public boolean hasCompanyId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. `Company` ID.
    +   * 
    + * + * optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The companyId. */ @@ -165,7 +181,25 @@ public long getCompanyId() { * This value has a maximum length of 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. The display name of the `Company`.
    +   *
    +   * This value has a maximum length of 127 characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -191,7 +225,7 @@ public java.lang.String getDisplayName() { * This value has a maximum length of 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -219,7 +253,25 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * - * .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Required. The type of the `Company`.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for type. @@ -237,7 +289,7 @@ public int getTypeValue() { * * * - * .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return The type. @@ -265,7 +317,25 @@ public com.google.ads.admanager.v1.CompanyTypeEnum.CompanyType getType() { * This value has a maximum length of 1024 characters. * * - * string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the address field is set. + */ + @java.lang.Override + public boolean hasAddress() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Optional. The address for the `Company`.
    +   *
    +   * This value has a maximum length of 1024 characters.
    +   * 
    + * + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The address. */ @@ -291,7 +361,7 @@ public java.lang.String getAddress() { * This value has a maximum length of 1024 characters. * * - * string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for address. */ @@ -322,7 +392,25 @@ public com.google.protobuf.ByteString getAddressBytes() { * This value has a maximum length of 128 characters. * * - * string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the email field is set. + */ + @java.lang.Override + public boolean hasEmail() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Optional. The email for the `Company`.
    +   *
    +   * This value has a maximum length of 128 characters.
    +   * 
    + * + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The email. */ @@ -348,7 +436,7 @@ public java.lang.String getEmail() { * This value has a maximum length of 128 characters. * * - * string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for email. */ @@ -379,7 +467,25 @@ public com.google.protobuf.ByteString getEmailBytes() { * This value has a maximum length of 63 characters. * * - * string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the fax field is set. + */ + @java.lang.Override + public boolean hasFax() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +   * Optional. The fax number for the `Company`.
    +   *
    +   * This value has a maximum length of 63 characters.
    +   * 
    + * + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fax. */ @@ -405,7 +511,7 @@ public java.lang.String getFax() { * This value has a maximum length of 63 characters. * * - * string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for fax. */ @@ -436,7 +542,25 @@ public com.google.protobuf.ByteString getFaxBytes() { * This value has a maximum length of 63 characters. * * - * string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the phone field is set. + */ + @java.lang.Override + public boolean hasPhone() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +   * Optional. The phone number for the `Company`.
    +   *
    +   * This value has a maximum length of 63 characters.
    +   * 
    + * + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The phone. */ @@ -462,7 +586,7 @@ public java.lang.String getPhone() { * This value has a maximum length of 63 characters. * * - * string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for phone. */ @@ -493,7 +617,25 @@ public com.google.protobuf.ByteString getPhoneBytes() { * This value has a maximum length of 255 characters. * * - * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the externalId field is set. + */ + @java.lang.Override + public boolean hasExternalId() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +   * Optional. The external ID for the `Company`.
    +   *
    +   * This value has a maximum length of 255 characters.
    +   * 
    + * + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalId. */ @@ -519,7 +661,7 @@ public java.lang.String getExternalId() { * This value has a maximum length of 255 characters. * * - * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalId. */ @@ -550,7 +692,25 @@ public com.google.protobuf.ByteString getExternalIdBytes() { * This value has a maximum length of 1024 characters. * * - * string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the comment field is set. + */ + @java.lang.Override + public boolean hasComment() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +   * Optional. Comments about the `Company`.
    +   *
    +   * This value has a maximum length of 1024 characters.
    +   * 
    + * + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The comment. */ @@ -576,7 +736,7 @@ public java.lang.String getComment() { * This value has a maximum length of 1024 characters. * * - * string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for comment. */ @@ -607,7 +767,28 @@ public com.google.protobuf.ByteString getCommentBytes() { * * * - * .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the creditStatus field is set. + */ + @java.lang.Override + public boolean hasCreditStatus() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
    +   * Optional. The credit status of the `Company`.
    +   *
    +   * This attribute defaults to `ACTIVE` if basic settings are enabled and
    +   * `ON_HOLD` if advance settings are enabled.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for creditStatus. @@ -628,7 +809,7 @@ public int getCreditStatusValue() { * * * - * .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The creditStatus. @@ -750,7 +931,7 @@ public com.google.ads.admanager.v1.AppliedLabelOrBuilder getAppliedLabelsOrBuild */ @java.lang.Override public boolean hasPrimaryContact() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -898,7 +1079,26 @@ public com.google.protobuf.ByteString getAppliedTeamsBytes(int index) { * `Company`. * * - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the thirdPartyCompanyId field is set. + */ + @java.lang.Override + public boolean hasThirdPartyCompanyId() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
    +   * Optional. The ID of the Google-recognized canonicalized form of the
    +   * `Company`.
    +   * 
    + * + * optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The thirdPartyCompanyId. */ @@ -917,14 +1117,15 @@ public long getThirdPartyCompanyId() { * Output only. The time the `Company` was last modified. * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -934,7 +1135,8 @@ public boolean hasUpdateTime() { * Output only. The time the `Company` was last modified. * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -951,7 +1153,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The time the `Company` was last modified. * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -976,54 +1179,49 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (companyId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, companyId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (type_ - != com.google.ads.admanager.v1.CompanyTypeEnum.CompanyType.COMPANY_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(4, type_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, address_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, email_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fax_)) { + if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fax_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phone_)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, phone_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { + if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, externalId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { + if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, comment_); } - if (creditStatus_ - != com.google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus - .COMPANY_CREDIT_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeEnum(11, creditStatus_); } for (int i = 0; i < appliedLabels_.size(); i++) { output.writeMessage(12, appliedLabels_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, primaryContact_); } for (int i = 0; i < appliedTeams_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, appliedTeams_.getRaw(i)); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(15, getUpdateTime()); } - if (thirdPartyCompanyId_ != 0L) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeInt64(16, thirdPartyCompanyId_); } getUnknownFields().writeTo(output); @@ -1038,45 +1236,40 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (companyId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, companyId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (type_ - != com.google.ads.admanager.v1.CompanyTypeEnum.CompanyType.COMPANY_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, type_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, address_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, email_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fax_)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fax_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phone_)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, phone_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, externalId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, comment_); } - if (creditStatus_ - != com.google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus - .COMPANY_CREDIT_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, creditStatus_); } for (int i = 0; i < appliedLabels_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, appliedLabels_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, primaryContact_); } { @@ -1087,10 +1280,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAppliedTeamsList().size(); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpdateTime()); } - if (thirdPartyCompanyId_ != 0L) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(16, thirdPartyCompanyId_); } size += getUnknownFields().getSerializedSize(); @@ -1109,23 +1302,56 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.Company other = (com.google.ads.admanager.v1.Company) obj; if (!getName().equals(other.getName())) return false; - if (getCompanyId() != other.getCompanyId()) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (type_ != other.type_) return false; - if (!getAddress().equals(other.getAddress())) return false; - if (!getEmail().equals(other.getEmail())) return false; - if (!getFax().equals(other.getFax())) return false; - if (!getPhone().equals(other.getPhone())) return false; - if (!getExternalId().equals(other.getExternalId())) return false; - if (!getComment().equals(other.getComment())) return false; - if (creditStatus_ != other.creditStatus_) return false; + if (hasCompanyId() != other.hasCompanyId()) return false; + if (hasCompanyId()) { + if (getCompanyId() != other.getCompanyId()) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (type_ != other.type_) return false; + } + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (!getAddress().equals(other.getAddress())) return false; + } + if (hasEmail() != other.hasEmail()) return false; + if (hasEmail()) { + if (!getEmail().equals(other.getEmail())) return false; + } + if (hasFax() != other.hasFax()) return false; + if (hasFax()) { + if (!getFax().equals(other.getFax())) return false; + } + if (hasPhone() != other.hasPhone()) return false; + if (hasPhone()) { + if (!getPhone().equals(other.getPhone())) return false; + } + if (hasExternalId() != other.hasExternalId()) return false; + if (hasExternalId()) { + if (!getExternalId().equals(other.getExternalId())) return false; + } + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment().equals(other.getComment())) return false; + } + if (hasCreditStatus() != other.hasCreditStatus()) return false; + if (hasCreditStatus()) { + if (creditStatus_ != other.creditStatus_) return false; + } if (!getAppliedLabelsList().equals(other.getAppliedLabelsList())) return false; if (hasPrimaryContact() != other.hasPrimaryContact()) return false; if (hasPrimaryContact()) { if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; } if (!getAppliedTeamsList().equals(other.getAppliedTeamsList())) return false; - if (getThirdPartyCompanyId() != other.getThirdPartyCompanyId()) return false; + if (hasThirdPartyCompanyId() != other.hasThirdPartyCompanyId()) return false; + if (hasThirdPartyCompanyId()) { + if (getThirdPartyCompanyId() != other.getThirdPartyCompanyId()) return false; + } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; @@ -1143,26 +1369,46 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + COMPANY_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCompanyId()); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - hash = (37 * hash) + FAX_FIELD_NUMBER; - hash = (53 * hash) + getFax().hashCode(); - hash = (37 * hash) + PHONE_FIELD_NUMBER; - hash = (53 * hash) + getPhone().hashCode(); - hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getExternalId().hashCode(); - hash = (37 * hash) + COMMENT_FIELD_NUMBER; - hash = (53 * hash) + getComment().hashCode(); - hash = (37 * hash) + CREDIT_STATUS_FIELD_NUMBER; - hash = (53 * hash) + creditStatus_; + if (hasCompanyId()) { + hash = (37 * hash) + COMPANY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCompanyId()); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + if (hasEmail()) { + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + } + if (hasFax()) { + hash = (37 * hash) + FAX_FIELD_NUMBER; + hash = (53 * hash) + getFax().hashCode(); + } + if (hasPhone()) { + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + } + if (hasExternalId()) { + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + } + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + if (hasCreditStatus()) { + hash = (37 * hash) + CREDIT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + creditStatus_; + } if (getAppliedLabelsCount() > 0) { hash = (37 * hash) + APPLIED_LABELS_FIELD_NUMBER; hash = (53 * hash) + getAppliedLabelsList().hashCode(); @@ -1175,8 +1421,10 @@ public int hashCode() { hash = (37 * hash) + APPLIED_TEAMS_FIELD_NUMBER; hash = (53 * hash) + getAppliedTeamsList().hashCode(); } - hash = (37 * hash) + THIRD_PARTY_COMPANY_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThirdPartyCompanyId()); + if (hasThirdPartyCompanyId()) { + hash = (37 * hash) + THIRD_PARTY_COMPANY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThirdPartyCompanyId()); + } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -1407,40 +1655,50 @@ private void buildPartial0(com.google.ads.admanager.v1.Company result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.companyId_ = companyId_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.type_ = type_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.address_ = address_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.email_ = email_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.fax_ = fax_; + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.phone_ = phone_; + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { result.externalId_ = externalId_; + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { result.comment_ = comment_; + to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000400) != 0)) { result.creditStatus_ = creditStatus_; + to_bitField0_ |= 0x00000200; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00001000) != 0)) { result.primaryContact_ = primaryContact_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00002000) != 0)) { appliedTeams_.makeImmutable(); @@ -1448,10 +1706,11 @@ private void buildPartial0(com.google.ads.admanager.v1.Company result) { } if (((from_bitField0_ & 0x00004000) != 0)) { result.thirdPartyCompanyId_ = thirdPartyCompanyId_; + to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00008000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00001000; } result.bitField0_ |= to_bitField0_; } @@ -1506,49 +1765,49 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Company other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getCompanyId() != 0L) { + if (other.hasCompanyId()) { setCompanyId(other.getCompanyId()); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000004; onChanged(); } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); + if (other.hasType()) { + setType(other.getType()); } - if (!other.getAddress().isEmpty()) { + if (other.hasAddress()) { address_ = other.address_; bitField0_ |= 0x00000010; onChanged(); } - if (!other.getEmail().isEmpty()) { + if (other.hasEmail()) { email_ = other.email_; bitField0_ |= 0x00000020; onChanged(); } - if (!other.getFax().isEmpty()) { + if (other.hasFax()) { fax_ = other.fax_; bitField0_ |= 0x00000040; onChanged(); } - if (!other.getPhone().isEmpty()) { + if (other.hasPhone()) { phone_ = other.phone_; bitField0_ |= 0x00000080; onChanged(); } - if (!other.getExternalId().isEmpty()) { + if (other.hasExternalId()) { externalId_ = other.externalId_; bitField0_ |= 0x00000100; onChanged(); } - if (!other.getComment().isEmpty()) { + if (other.hasComment()) { comment_ = other.comment_; bitField0_ |= 0x00000200; onChanged(); } - if (other.creditStatus_ != 0) { - setCreditStatusValue(other.getCreditStatusValue()); + if (other.hasCreditStatus()) { + setCreditStatus(other.getCreditStatus()); } if (appliedLabelsBuilder_ == null) { if (!other.appliedLabels_.isEmpty()) { @@ -1592,7 +1851,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Company other) { } onChanged(); } - if (other.getThirdPartyCompanyId() != 0L) { + if (other.hasThirdPartyCompanyId()) { setThirdPartyCompanyId(other.getThirdPartyCompanyId()); } if (other.hasUpdateTime()) { @@ -1872,7 +2131,23 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. `Company` ID. * * - * int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the companyId field is set. + */ + @java.lang.Override + public boolean hasCompanyId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. `Company` ID.
    +     * 
    + * + * optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The companyId. */ @@ -1888,7 +2163,7 @@ public long getCompanyId() { * Output only. `Company` ID. * * - * int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The companyId to set. * @return This builder for chaining. @@ -1908,7 +2183,7 @@ public Builder setCompanyId(long value) { * Output only. `Company` ID. * * - * int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1930,7 +2205,24 @@ public Builder clearCompanyId() { * This value has a maximum length of 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. The display name of the `Company`.
    +     *
    +     * This value has a maximum length of 127 characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -1955,7 +2247,7 @@ public java.lang.String getDisplayName() { * This value has a maximum length of 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -1980,7 +2272,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * This value has a maximum length of 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. @@ -2004,7 +2296,7 @@ public Builder setDisplayName(java.lang.String value) { * This value has a maximum length of 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -2024,7 +2316,7 @@ public Builder clearDisplayName() { * This value has a maximum length of 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -2050,7 +2342,25 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * * - * .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Required. The type of the `Company`.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for type. @@ -2068,7 +2378,7 @@ public int getTypeValue() { * * * - * .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for type to set. @@ -2089,7 +2399,7 @@ public Builder setTypeValue(int value) { * * * - * .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return The type. @@ -2111,7 +2421,7 @@ public com.google.ads.admanager.v1.CompanyTypeEnum.CompanyType getType() { * * * - * .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The type to set. @@ -2135,7 +2445,7 @@ public Builder setType(com.google.ads.admanager.v1.CompanyTypeEnum.CompanyType v * * * - * .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. @@ -2158,7 +2468,24 @@ public Builder clearType() { * This value has a maximum length of 1024 characters. * * - * string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the address field is set. + */ + public boolean hasAddress() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Optional. The address for the `Company`.
    +     *
    +     * This value has a maximum length of 1024 characters.
    +     * 
    + * + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The address. */ @@ -2183,7 +2510,7 @@ public java.lang.String getAddress() { * This value has a maximum length of 1024 characters. * * - * string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for address. */ @@ -2208,7 +2535,7 @@ public com.google.protobuf.ByteString getAddressBytes() { * This value has a maximum length of 1024 characters. * * - * string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The address to set. * @return This builder for chaining. @@ -2232,7 +2559,7 @@ public Builder setAddress(java.lang.String value) { * This value has a maximum length of 1024 characters. * * - * string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2252,7 +2579,7 @@ public Builder clearAddress() { * This value has a maximum length of 1024 characters. * * - * string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for address to set. * @return This builder for chaining. @@ -2279,7 +2606,24 @@ public Builder setAddressBytes(com.google.protobuf.ByteString value) { * This value has a maximum length of 128 characters. * * - * string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the email field is set. + */ + public boolean hasEmail() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. The email for the `Company`.
    +     *
    +     * This value has a maximum length of 128 characters.
    +     * 
    + * + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The email. */ @@ -2304,7 +2648,7 @@ public java.lang.String getEmail() { * This value has a maximum length of 128 characters. * * - * string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for email. */ @@ -2329,7 +2673,7 @@ public com.google.protobuf.ByteString getEmailBytes() { * This value has a maximum length of 128 characters. * * - * string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The email to set. * @return This builder for chaining. @@ -2353,7 +2697,7 @@ public Builder setEmail(java.lang.String value) { * This value has a maximum length of 128 characters. * * - * string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2373,7 +2717,7 @@ public Builder clearEmail() { * This value has a maximum length of 128 characters. * * - * string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for email to set. * @return This builder for chaining. @@ -2400,7 +2744,24 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { * This value has a maximum length of 63 characters. * * - * string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the fax field is set. + */ + public boolean hasFax() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +     * Optional. The fax number for the `Company`.
    +     *
    +     * This value has a maximum length of 63 characters.
    +     * 
    + * + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fax. */ @@ -2425,7 +2786,7 @@ public java.lang.String getFax() { * This value has a maximum length of 63 characters. * * - * string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for fax. */ @@ -2450,7 +2811,7 @@ public com.google.protobuf.ByteString getFaxBytes() { * This value has a maximum length of 63 characters. * * - * string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The fax to set. * @return This builder for chaining. @@ -2474,7 +2835,7 @@ public Builder setFax(java.lang.String value) { * This value has a maximum length of 63 characters. * * - * string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2494,7 +2855,7 @@ public Builder clearFax() { * This value has a maximum length of 63 characters. * * - * string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for fax to set. * @return This builder for chaining. @@ -2521,7 +2882,24 @@ public Builder setFaxBytes(com.google.protobuf.ByteString value) { * This value has a maximum length of 63 characters. * * - * string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the phone field is set. + */ + public boolean hasPhone() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +     * Optional. The phone number for the `Company`.
    +     *
    +     * This value has a maximum length of 63 characters.
    +     * 
    + * + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The phone. */ @@ -2546,7 +2924,7 @@ public java.lang.String getPhone() { * This value has a maximum length of 63 characters. * * - * string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for phone. */ @@ -2571,7 +2949,7 @@ public com.google.protobuf.ByteString getPhoneBytes() { * This value has a maximum length of 63 characters. * * - * string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The phone to set. * @return This builder for chaining. @@ -2595,7 +2973,7 @@ public Builder setPhone(java.lang.String value) { * This value has a maximum length of 63 characters. * * - * string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2615,7 +2993,7 @@ public Builder clearPhone() { * This value has a maximum length of 63 characters. * * - * string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for phone to set. * @return This builder for chaining. @@ -2642,7 +3020,24 @@ public Builder setPhoneBytes(com.google.protobuf.ByteString value) { * This value has a maximum length of 255 characters. * * - * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the externalId field is set. + */ + public boolean hasExternalId() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +     * Optional. The external ID for the `Company`.
    +     *
    +     * This value has a maximum length of 255 characters.
    +     * 
    + * + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalId. */ @@ -2667,7 +3062,7 @@ public java.lang.String getExternalId() { * This value has a maximum length of 255 characters. * * - * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalId. */ @@ -2692,7 +3087,7 @@ public com.google.protobuf.ByteString getExternalIdBytes() { * This value has a maximum length of 255 characters. * * - * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The externalId to set. * @return This builder for chaining. @@ -2716,7 +3111,7 @@ public Builder setExternalId(java.lang.String value) { * This value has a maximum length of 255 characters. * * - * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2736,7 +3131,7 @@ public Builder clearExternalId() { * This value has a maximum length of 255 characters. * * - * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for externalId to set. * @return This builder for chaining. @@ -2763,7 +3158,24 @@ public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { * This value has a maximum length of 1024 characters. * * - * string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the comment field is set. + */ + public boolean hasComment() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
    +     * Optional. Comments about the `Company`.
    +     *
    +     * This value has a maximum length of 1024 characters.
    +     * 
    + * + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The comment. */ @@ -2788,7 +3200,7 @@ public java.lang.String getComment() { * This value has a maximum length of 1024 characters. * * - * string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for comment. */ @@ -2813,7 +3225,7 @@ public com.google.protobuf.ByteString getCommentBytes() { * This value has a maximum length of 1024 characters. * * - * string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The comment to set. * @return This builder for chaining. @@ -2837,7 +3249,7 @@ public Builder setComment(java.lang.String value) { * This value has a maximum length of 1024 characters. * * - * string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2857,7 +3269,7 @@ public Builder clearComment() { * This value has a maximum length of 1024 characters. * * - * string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for comment to set. * @return This builder for chaining. @@ -2886,7 +3298,28 @@ public Builder setCommentBytes(com.google.protobuf.ByteString value) { * * * - * .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the creditStatus field is set. + */ + @java.lang.Override + public boolean hasCreditStatus() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
    +     * Optional. The credit status of the `Company`.
    +     *
    +     * This attribute defaults to `ACTIVE` if basic settings are enabled and
    +     * `ON_HOLD` if advance settings are enabled.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for creditStatus. @@ -2907,7 +3340,7 @@ public int getCreditStatusValue() { * * * - * .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for creditStatus to set. @@ -2931,7 +3364,7 @@ public Builder setCreditStatusValue(int value) { * * * - * .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The creditStatus. @@ -2958,7 +3391,7 @@ public Builder setCreditStatusValue(int value) { * * * - * .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The creditStatus to set. @@ -2986,7 +3419,7 @@ public Builder setCreditStatus( * * * - * .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -3769,7 +4202,26 @@ public Builder addAppliedTeamsBytes(com.google.protobuf.ByteString value) { * `Company`. * * - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the thirdPartyCompanyId field is set. + */ + @java.lang.Override + public boolean hasThirdPartyCompanyId() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
    +     * Optional. The ID of the Google-recognized canonicalized form of the
    +     * `Company`.
    +     * 
    + * + * optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The thirdPartyCompanyId. */ @@ -3786,7 +4238,8 @@ public long getThirdPartyCompanyId() { * `Company`. * * - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The thirdPartyCompanyId to set. * @return This builder for chaining. @@ -3807,7 +4260,8 @@ public Builder setThirdPartyCompanyId(long value) { * `Company`. * * - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -3833,7 +4287,7 @@ public Builder clearThirdPartyCompanyId() { * * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. @@ -3850,7 +4304,7 @@ public boolean hasUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -3873,7 +4327,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { @@ -3898,7 +4352,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { @@ -3920,7 +4374,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { @@ -3950,7 +4404,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { @@ -3972,7 +4426,7 @@ public Builder clearUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { @@ -3989,7 +4443,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -4010,7 +4464,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java index a0ce545592c2..c6b48c5dcb59 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java @@ -46,40 +46,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "es.proto\022\027google.ads.admanager.v1\032+googl" + "e/ads/admanager/v1/applied_label.proto\032+google/ads/admanager/v1/company_enums.pr" + "oto\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\234\006\n" + + "ogle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\202\010\n" + "\007Company\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" - + "company_id\030\002 \001(\003B\003\340A\003\022\031\n" - + "\014display_name\030\003 \001(\tB\003\340A\002\022G\n" - + "\004type\030\004 \001(\01624.goog" - + "le.ads.admanager.v1.CompanyTypeEnum.CompanyTypeB\003\340A\002\022\024\n" - + "\007address\030\005 \001(\tB\003\340A\001\022\022\n" - + "\005email\030\006 \001(\tB\003\340A\001\022\020\n" - + "\003fax\030\007 \001(\tB\003\340A\001\022\022\n" - + "\005phone\030\010 \001(\tB\003\340A\001\022\030\n" - + "\013external_id\030\t \001(\tB\003\340A\001\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\034\n\n" + + "company_id\030\002 \001(\003B\003\340A\003H\000\210\001\001\022\036\n" + + "\014display_name\030\003 \001(\tB\003\340A\002H\001\210\001\001\022L\n" + + "\004type\030\004 " + + "\001(\01624.google.ads.admanager.v1.CompanyTypeEnum.CompanyTypeB\003\340A\002H\002\210\001\001\022\031\n" + + "\007address\030\005 \001(\tB\003\340A\001H\003\210\001\001\022\027\n" + + "\005email\030\006 \001(\tB\003\340A\001H\004\210\001\001\022\025\n" + + "\003fax\030\007 \001(\tB\003\340A\001H\005\210\001\001\022\027\n" + + "\005phone\030\010 \001(\tB\003\340A\001H\006\210\001\001\022\035\n" + + "\013external_id\030\t \001(\tB\003\340A\001H\007\210\001\001\022\031\n" + "\007comment\030\n" - + " \001(\tB\003\340A\001\022`\n\r" - + "credit_status\030\013 \001(\0162D.google.ads.admanager.v1.CompanyCre" - + "ditStatusEnum.CompanyCreditStatusB\003\340A\001\022B\n" + + " \001(\tB\003\340A\001H\010\210\001\001\022e\n\r" + + "credit_status\030\013 \001(\0162D.google.ads.admanager.v1.Compa" + + "nyCreditStatusEnum.CompanyCreditStatusB\003\340A\001H\t\210\001\001\022B\n" + "\016applied_labels\030\014" + " \003(\0132%.google.ads.admanager.v1.AppliedLabelB\003\340A\001\022F\n" + "\017primary_contact\030\r" + " \001(\tB(\340A\001\372A\"\n" - + " admanager.googleapis.com/ContactH\000\210\001\001\022<\n\r" + + " admanager.googleapis.com/ContactH\n" + + "\210\001\001\022<\n\r" + "applied_teams\030\016 \003(\tB%\340A\001\372A\037\n" - + "\035admanager.googleapis.com/Team\022#\n" - + "\026third_party_company_id\030\020 \001(\003B\003\340A\001\0224\n" + + "\035admanager.googleapis.com/Team\022(\n" + + "\026third_party_company_id\030\020 \001(\003B\003\340A\001H\013\210\001\001\0229\n" + "\013update_time\030\017" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:f\352Ac\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\014\210\001\001:f\352Ac\n" + " admanager.googleapis.com/Company\022+networks/{network_code}/companies/{company}*" - + "\tcompanies2\007companyB\022\n" - + "\020_primary_contactB\310\001\n" - + "\033com.google.ads.admanager.v1B\024CompanyMessagesProtoP\001Z@google." - + "golang.org/genproto/googleapis/ads/adman" - + "ager/v1;admanager\252\002\027Google.Ads.AdManager" - + ".V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::" - + "Ads::AdManager::V1b\006proto3" + + "\tcompanies2\007companyB\r\n" + + "\013_company_idB\017\n\r" + + "_display_nameB\007\n" + + "\005_typeB\n\n" + + "\010_addressB\010\n" + + "\006_emailB\006\n" + + "\004_faxB\010\n" + + "\006_phoneB\016\n" + + "\014_external_idB\n\n" + + "\010_commentB\020\n" + + "\016_credit_statusB\022\n" + + "\020_primary_contactB\031\n" + + "\027_third_party_company_idB\016\n" + + "\014_update_timeB\310\001\n" + + "\033com.google.ads.admanager.v1B\024CompanyMessagesProtoP\001Z@google.golang.org" + + "/genproto/googleapis/ads/admanager/v1;ad" + + "manager\252\002\027Google.Ads.AdManager.V1\312\002\027Goog" + + "le\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyOrBuilder.java index c86672138e48..fd46de97c712 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyOrBuilder.java @@ -59,7 +59,20 @@ public interface CompanyOrBuilder * Output only. `Company` ID. * * - * int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the companyId field is set. + */ + boolean hasCompanyId(); + + /** + * + * + *
    +   * Output only. `Company` ID.
    +   * 
    + * + * optional int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The companyId. */ @@ -74,7 +87,22 @@ public interface CompanyOrBuilder * This value has a maximum length of 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Required. The display name of the `Company`.
    +   *
    +   * This value has a maximum length of 127 characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -89,7 +117,7 @@ public interface CompanyOrBuilder * This value has a maximum length of 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -103,7 +131,22 @@ public interface CompanyOrBuilder * * * - * .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
    +   * Required. The type of the `Company`.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for type. @@ -118,7 +161,7 @@ public interface CompanyOrBuilder * * * - * .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return The type. @@ -134,7 +177,22 @@ public interface CompanyOrBuilder * This value has a maximum length of 1024 characters. * * - * string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the address field is set. + */ + boolean hasAddress(); + + /** + * + * + *
    +   * Optional. The address for the `Company`.
    +   *
    +   * This value has a maximum length of 1024 characters.
    +   * 
    + * + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The address. */ @@ -149,7 +207,7 @@ public interface CompanyOrBuilder * This value has a maximum length of 1024 characters. * * - * string address = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string address = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for address. */ @@ -164,7 +222,22 @@ public interface CompanyOrBuilder * This value has a maximum length of 128 characters. * * - * string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the email field is set. + */ + boolean hasEmail(); + + /** + * + * + *
    +   * Optional. The email for the `Company`.
    +   *
    +   * This value has a maximum length of 128 characters.
    +   * 
    + * + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The email. */ @@ -179,7 +252,7 @@ public interface CompanyOrBuilder * This value has a maximum length of 128 characters. * * - * string email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional string email = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for email. */ @@ -194,7 +267,22 @@ public interface CompanyOrBuilder * This value has a maximum length of 63 characters. * * - * string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the fax field is set. + */ + boolean hasFax(); + + /** + * + * + *
    +   * Optional. The fax number for the `Company`.
    +   *
    +   * This value has a maximum length of 63 characters.
    +   * 
    + * + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fax. */ @@ -209,7 +297,7 @@ public interface CompanyOrBuilder * This value has a maximum length of 63 characters. * * - * string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for fax. */ @@ -224,7 +312,22 @@ public interface CompanyOrBuilder * This value has a maximum length of 63 characters. * * - * string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the phone field is set. + */ + boolean hasPhone(); + + /** + * + * + *
    +   * Optional. The phone number for the `Company`.
    +   *
    +   * This value has a maximum length of 63 characters.
    +   * 
    + * + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The phone. */ @@ -239,7 +342,7 @@ public interface CompanyOrBuilder * This value has a maximum length of 63 characters. * * - * string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * optional string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for phone. */ @@ -254,7 +357,22 @@ public interface CompanyOrBuilder * This value has a maximum length of 255 characters. * * - * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the externalId field is set. + */ + boolean hasExternalId(); + + /** + * + * + *
    +   * Optional. The external ID for the `Company`.
    +   *
    +   * This value has a maximum length of 255 characters.
    +   * 
    + * + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalId. */ @@ -269,7 +387,7 @@ public interface CompanyOrBuilder * This value has a maximum length of 255 characters. * * - * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalId. */ @@ -284,7 +402,22 @@ public interface CompanyOrBuilder * This value has a maximum length of 1024 characters. * * - * string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the comment field is set. + */ + boolean hasComment(); + + /** + * + * + *
    +   * Optional. Comments about the `Company`.
    +   *
    +   * This value has a maximum length of 1024 characters.
    +   * 
    + * + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The comment. */ @@ -299,7 +432,7 @@ public interface CompanyOrBuilder * This value has a maximum length of 1024 characters. * * - * string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; + * optional string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for comment. */ @@ -316,7 +449,25 @@ public interface CompanyOrBuilder * * * - * .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the creditStatus field is set. + */ + boolean hasCreditStatus(); + + /** + * + * + *
    +   * Optional. The credit status of the `Company`.
    +   *
    +   * This attribute defaults to `ACTIVE` if basic settings are enabled and
    +   * `ON_HOLD` if advance settings are enabled.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for creditStatus. @@ -334,7 +485,7 @@ public interface CompanyOrBuilder * * * - * .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The creditStatus. @@ -529,7 +680,23 @@ public interface CompanyOrBuilder * `Company`. * * - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the thirdPartyCompanyId field is set. + */ + boolean hasThirdPartyCompanyId(); + + /** + * + * + *
    +   * Optional. The ID of the Google-recognized canonicalized form of the
    +   * `Company`.
    +   * 
    + * + * optional int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The thirdPartyCompanyId. */ @@ -542,7 +709,8 @@ public interface CompanyOrBuilder * Output only. The time the `Company` was last modified. * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. @@ -556,7 +724,8 @@ public interface CompanyOrBuilder * Output only. The time the `Company` was last modified. * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -570,7 +739,8 @@ public interface CompanyOrBuilder * Output only. The time the `Company` was last modified. * * - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Contact.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Contact.java index 647a4d3e9558..175215499b4c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Contact.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Contact.java @@ -44,7 +44,16 @@ private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Contact() { name_ = ""; - companyDisplayName_ = ""; + displayName_ = ""; + company_ = ""; + status_ = 0; + address_ = ""; + cellPhone_ = ""; + comment_ = ""; + email_ = ""; + fax_ = ""; + title_ = ""; + workPhone_ = ""; } @java.lang.Override @@ -124,25 +133,25 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int COMPANY_DISPLAY_NAME_FIELD_NUMBER = 19; + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object companyDisplayName_ = ""; + private volatile java.lang.Object displayName_ = ""; /** * * *
    -   * Output only. The display name of the Company.
    +   * Required. The name of the contact. This attribute has a maximum length of
    +   * 127 characters.
        * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return Whether the companyDisplayName field is set. + * @return Whether the displayName field is set. */ @java.lang.Override - public boolean hasCompanyDisplayName() { + public boolean hasDisplayName() { return ((bitField0_ & 0x00000001) != 0); } @@ -150,23 +159,23 @@ public boolean hasCompanyDisplayName() { * * *
    -   * Output only. The display name of the Company.
    +   * Required. The name of the contact. This attribute has a maximum length of
    +   * 127 characters.
        * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The companyDisplayName. + * @return The displayName. */ @java.lang.Override - public java.lang.String getCompanyDisplayName() { - java.lang.Object ref = companyDisplayName_; + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; 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(); - companyDisplayName_ = s; + displayName_ = s; return s; } } @@ -175,421 +184,2525 @@ public java.lang.String getCompanyDisplayName() { * * *
    -   * Output only. The display name of the Company.
    +   * Required. The name of the contact. This attribute has a maximum length of
    +   * 127 characters.
        * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for companyDisplayName. + * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { - java.lang.Object ref = companyDisplayName_; + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - companyDisplayName_ = b; + displayName_ = 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; - } + public static final int COMPANY_FIELD_NUMBER = 5; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, companyDisplayName_); - } - getUnknownFields().writeTo(output); - } + @SuppressWarnings("serial") + private volatile java.lang.Object company_ = ""; + /** + * + * + *
    +   * Required. Immutable. The resource name of the Company.
    +   * Format: "networks/{network_code}/companies/{company_id}"
    +   * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the company field is set. + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, companyDisplayName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + public boolean hasCompany() { + return ((bitField0_ & 0x00000002) != 0); } + /** + * + * + *
    +   * Required. Immutable. The resource name of the Company.
    +   * Format: "networks/{network_code}/companies/{company_id}"
    +   * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The company. + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.ads.admanager.v1.Contact)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Contact other = (com.google.ads.admanager.v1.Contact) obj; - - if (!getName().equals(other.getName())) return false; - if (hasCompanyDisplayName() != other.hasCompanyDisplayName()) return false; - if (hasCompanyDisplayName()) { - if (!getCompanyDisplayName().equals(other.getCompanyDisplayName())) return false; + public java.lang.String getCompany() { + java.lang.Object ref = company_; + 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(); + company_ = s; + return s; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; } + /** + * + * + *
    +   * Required. Immutable. The resource name of the Company.
    +   * Format: "networks/{network_code}/companies/{company_id}"
    +   * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for company. + */ @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 (hasCompanyDisplayName()) { - hash = (37 * hash) + COMPANY_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getCompanyDisplayName().hashCode(); + public com.google.protobuf.ByteString getCompanyBytes() { + java.lang.Object ref = company_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + company_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Contact parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Contact 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.admanager.v1.Contact parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Contact 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.admanager.v1.Contact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Contact parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Contact parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Contact parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Contact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.admanager.v1.Contact parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static final int STATUS_FIELD_NUMBER = 6; + private int status_ = 0; - public static com.google.ads.admanager.v1.Contact parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + /** + * + * + *
    +   * Output only. The status of the contact. This attribute is assigned by
    +   * Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) != 0); } - public static com.google.ads.admanager.v1.Contact parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
    +   * Output only. The status of the contact. This attribute is assigned by
    +   * Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; } + /** + * + * + *
    +   * Output only. The status of the contact. This attribute is assigned by
    +   * Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus getStatus() { + com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus result = + com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus.forNumber(status_); + return result == null + ? com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus.UNRECOGNIZED + : result; } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static final int ADDRESS_FIELD_NUMBER = 7; - public static Builder newBuilder(com.google.ads.admanager.v1.Contact prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @SuppressWarnings("serial") + private volatile java.lang.Object address_ = ""; + /** + * + * + *
    +   * Optional. The address of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the address field is set. + */ @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public boolean hasAddress() { + return ((bitField0_ & 0x00000008) != 0); } + /** + * + * + *
    +   * Optional. The address of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The address. + */ @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public java.lang.String getAddress() { + java.lang.Object ref = address_; + 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(); + address_ = s; + return s; + } } /** * * *
    -   * A contact represents a person who is affiliated with a single company. A
    -   * contact can have a variety of contact information associated to it, and can
    -   * be invited to view their company's orders, line items, creatives, and
    -   * reports.
    +   * Optional. The address of the contact. This attribute has a maximum length
    +   * of 1024 characters.
        * 
    * - * Protobuf type {@code google.ads.admanager.v1.Contact} + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for address. */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Contact) - com.google.ads.admanager.v1.ContactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ContactMessagesProto - .internal_static_google_ads_admanager_v1_Contact_descriptor; + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ContactMessagesProto + public static final int CELL_PHONE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object cellPhone_ = ""; + + /** + * + * + *
    +   * Optional. The cell phone number where the contact can be reached.
    +   * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the cellPhone field is set. + */ + @java.lang.Override + public boolean hasCellPhone() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Optional. The cell phone number where the contact can be reached.
    +   * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cellPhone. + */ + @java.lang.Override + public java.lang.String getCellPhone() { + java.lang.Object ref = cellPhone_; + 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(); + cellPhone_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The cell phone number where the contact can be reached.
    +   * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cellPhone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCellPhoneBytes() { + java.lang.Object ref = cellPhone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cellPhone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMENT_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object comment_ = ""; + + /** + * + * + *
    +   * Optional. A free-form text comment for the contact. This attribute has a
    +   * maximum length of 1024 characters.
    +   * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the comment field is set. + */ + @java.lang.Override + public boolean hasComment() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +   * Optional. A free-form text comment for the contact. This attribute has a
    +   * maximum length of 1024 characters.
    +   * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + @java.lang.Override + public java.lang.String getComment() { + java.lang.Object ref = comment_; + 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(); + comment_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. A free-form text comment for the contact. This attribute has a
    +   * maximum length of 1024 characters.
    +   * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + + /** + * + * + *
    +   * Optional. The e-mail address where the contact can be reached. This
    +   * attribute has a maximum length of 128 characters.
    +   * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the email field is set. + */ + @java.lang.Override + public boolean hasEmail() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +   * Optional. The e-mail address where the contact can be reached. This
    +   * attribute has a maximum length of 128 characters.
    +   * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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(); + email_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The e-mail address where the contact can be reached. This
    +   * attribute has a maximum length of 128 characters.
    +   * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAX_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object fax_ = ""; + + /** + * + * + *
    +   * Optional. The fax number where the contact can be reached. This attribute
    +   * has a maximum length of 1024 characters.
    +   * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the fax field is set. + */ + @java.lang.Override + public boolean hasFax() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +   * Optional. The fax number where the contact can be reached. This attribute
    +   * has a maximum length of 1024 characters.
    +   * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fax. + */ + @java.lang.Override + public java.lang.String getFax() { + java.lang.Object ref = fax_; + 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(); + fax_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The fax number where the contact can be reached. This attribute
    +   * has a maximum length of 1024 characters.
    +   * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fax. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFaxBytes() { + java.lang.Object ref = fax_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fax_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
    +   * Optional. The job title of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +   * Optional. The job title of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The job title of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORK_PHONE_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object workPhone_ = ""; + + /** + * + * + *
    +   * Optional. The work phone number where the contact can be reached. This
    +   * attribute has a maximum length of 1024 characters.
    +   * 
    + * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the workPhone field is set. + */ + @java.lang.Override + public boolean hasWorkPhone() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
    +   * Optional. The work phone number where the contact can be reached. This
    +   * attribute has a maximum length of 1024 characters.
    +   * 
    + * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workPhone. + */ + @java.lang.Override + public java.lang.String getWorkPhone() { + java.lang.Object ref = workPhone_; + 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(); + workPhone_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The work phone number where the contact can be reached. This
    +   * attribute has a maximum length of 1024 characters.
    +   * 
    + * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workPhone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkPhoneBytes() { + java.lang.Object ref = workPhone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workPhone_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, company_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(6, status_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, address_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cellPhone_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, comment_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, email_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, fax_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, title_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, workPhone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, company_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, status_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, address_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cellPhone_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, comment_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, email_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, fax_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, title_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, workPhone_); + } + 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.admanager.v1.Contact)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.Contact other = (com.google.ads.admanager.v1.Contact) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasCompany() != other.hasCompany()) return false; + if (hasCompany()) { + if (!getCompany().equals(other.getCompany())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (!getAddress().equals(other.getAddress())) return false; + } + if (hasCellPhone() != other.hasCellPhone()) return false; + if (hasCellPhone()) { + if (!getCellPhone().equals(other.getCellPhone())) return false; + } + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment().equals(other.getComment())) return false; + } + if (hasEmail() != other.hasEmail()) return false; + if (hasEmail()) { + if (!getEmail().equals(other.getEmail())) return false; + } + if (hasFax() != other.hasFax()) return false; + if (hasFax()) { + if (!getFax().equals(other.getFax())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasWorkPhone() != other.hasWorkPhone()) return false; + if (hasWorkPhone()) { + if (!getWorkPhone().equals(other.getWorkPhone())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasCompany()) { + hash = (37 * hash) + COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getCompany().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + if (hasCellPhone()) { + hash = (37 * hash) + CELL_PHONE_FIELD_NUMBER; + hash = (53 * hash) + getCellPhone().hashCode(); + } + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + if (hasEmail()) { + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + } + if (hasFax()) { + hash = (37 * hash) + FAX_FIELD_NUMBER; + hash = (53 * hash) + getFax().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasWorkPhone()) { + hash = (37 * hash) + WORK_PHONE_FIELD_NUMBER; + hash = (53 * hash) + getWorkPhone().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.Contact parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Contact 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.admanager.v1.Contact parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Contact 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.admanager.v1.Contact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Contact parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Contact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Contact parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Contact parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Contact parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Contact parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Contact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.Contact prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A contact represents a person who is affiliated with a single company. A
    +   * contact can have a variety of contact information associated to it, and can
    +   * be invited to view their company's orders, line items, creatives, and
    +   * reports.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.Contact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Contact) + com.google.ads.admanager.v1.ContactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactMessagesProto + .internal_static_google_ads_admanager_v1_Contact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactMessagesProto .internal_static_google_ads_admanager_v1_Contact_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Contact.class, com.google.ads.admanager.v1.Contact.Builder.class); } - // Construct using com.google.ads.admanager.v1.Contact.newBuilder() - private Builder() {} + // Construct using com.google.ads.admanager.v1.Contact.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + company_ = ""; + status_ = 0; + address_ = ""; + cellPhone_ = ""; + comment_ = ""; + email_ = ""; + fax_ = ""; + title_ = ""; + workPhone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContactMessagesProto + .internal_static_google_ads_admanager_v1_Contact_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Contact getDefaultInstanceForType() { + return com.google.ads.admanager.v1.Contact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.Contact build() { + com.google.ads.admanager.v1.Contact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Contact buildPartial() { + com.google.ads.admanager.v1.Contact result = new com.google.ads.admanager.v1.Contact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.Contact result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.company_ = company_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.address_ = address_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.cellPhone_ = cellPhone_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.comment_ = comment_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.email_ = email_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.fax_ = fax_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.workPhone_ = workPhone_; + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.Contact) { + return mergeFrom((com.google.ads.admanager.v1.Contact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.Contact other) { + if (other == com.google.ads.admanager.v1.Contact.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCompany()) { + company_ = other.company_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasStatus()) { + setStatus(other.getStatus()); + } + if (other.hasAddress()) { + address_ = other.address_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCellPhone()) { + cellPhone_ = other.cellPhone_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasComment()) { + comment_ = other.comment_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasEmail()) { + email_ = other.email_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasFax()) { + fax_ = other.fax_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasWorkPhone()) { + workPhone_ = other.workPhone_; + bitField0_ |= 0x00000400; + 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 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 42: + { + company_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 48: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 58: + { + address_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: + { + cellPhone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: + { + comment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 82: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 90: + { + fax_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 90 + case 98: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 98 + case 106: + { + workPhone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `Contact`.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * 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. The resource name of the `Contact`.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * 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. The resource name of the `Contact`.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Contact`.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Contact`.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Required. The name of the contact. This attribute has a maximum length of
    +     * 127 characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The name of the contact. This attribute has a maximum length of
    +     * 127 characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the contact. This attribute has a maximum length of
    +     * 127 characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the contact. This attribute has a maximum length of
    +     * 127 characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the contact. This attribute has a maximum length of
    +     * 127 characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the contact. This attribute has a maximum length of
    +     * 127 characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object company_ = ""; + + /** + * + * + *
    +     * Required. Immutable. The resource name of the Company.
    +     * Format: "networks/{network_code}/companies/{company_id}"
    +     * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the company field is set. + */ + public boolean hasCompany() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the Company.
    +     * Format: "networks/{network_code}/companies/{company_id}"
    +     * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The company. + */ + public java.lang.String getCompany() { + java.lang.Object ref = company_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + company_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the Company.
    +     * Format: "networks/{network_code}/companies/{company_id}"
    +     * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for company. + */ + public com.google.protobuf.ByteString getCompanyBytes() { + java.lang.Object ref = company_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + company_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the Company.
    +     * Format: "networks/{network_code}/companies/{company_id}"
    +     * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The company to set. + * @return This builder for chaining. + */ + public Builder setCompany(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + company_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the Company.
    +     * Format: "networks/{network_code}/companies/{company_id}"
    +     * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCompany() { + company_ = getDefaultInstance().getCompany(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the Company.
    +     * Format: "networks/{network_code}/companies/{company_id}"
    +     * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for company to set. + * @return This builder for chaining. + */ + public Builder setCompanyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + company_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
    +     * Output only. The status of the contact. This attribute is assigned by
    +     * Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Output only. The status of the contact. This attribute is assigned by
    +     * Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +     * Output only. The status of the contact. This attribute is assigned by
    +     * Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of the contact. This attribute is assigned by
    +     * Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus getStatus() { + com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus result = + com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus.forNumber(status_); + return result == null + ? com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The status of the contact. This attribute is assigned by
    +     * Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of the contact. This attribute is assigned by
    +     * Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object address_ = ""; + + /** + * + * + *
    +     * Optional. The address of the contact. This attribute has a maximum length
    +     * of 1024 characters.
    +     * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the address field is set. + */ + public boolean hasAddress() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Optional. The address of the contact. This attribute has a maximum length
    +     * of 1024 characters.
    +     * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The address of the contact. This attribute has a maximum length
    +     * of 1024 characters.
    +     * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The address of the contact. This attribute has a maximum length
    +     * of 1024 characters.
    +     * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The address of the contact. This attribute has a maximum length
    +     * of 1024 characters.
    +     * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + address_ = getDefaultInstance().getAddress(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The address of the contact. This attribute has a maximum length
    +     * of 1024 characters.
    +     * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for address to set. + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + address_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + private java.lang.Object cellPhone_ = ""; + + /** + * + * + *
    +     * Optional. The cell phone number where the contact can be reached.
    +     * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the cellPhone field is set. + */ + public boolean hasCellPhone() { + return ((bitField0_ & 0x00000020) != 0); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - companyDisplayName_ = ""; + /** + * + * + *
    +     * Optional. The cell phone number where the contact can be reached.
    +     * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cellPhone. + */ + public java.lang.String getCellPhone() { + java.lang.Object ref = cellPhone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cellPhone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The cell phone number where the contact can be reached.
    +     * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cellPhone. + */ + public com.google.protobuf.ByteString getCellPhoneBytes() { + java.lang.Object ref = cellPhone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cellPhone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The cell phone number where the contact can be reached.
    +     * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cellPhone to set. + * @return This builder for chaining. + */ + public Builder setCellPhone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cellPhone_ = value; + bitField0_ |= 0x00000020; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ContactMessagesProto - .internal_static_google_ads_admanager_v1_Contact_descriptor; + /** + * + * + *
    +     * Optional. The cell phone number where the contact can be reached.
    +     * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCellPhone() { + cellPhone_ = getDefaultInstance().getCellPhone(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; } - @java.lang.Override - public com.google.ads.admanager.v1.Contact getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Contact.getDefaultInstance(); + /** + * + * + *
    +     * Optional. The cell phone number where the contact can be reached.
    +     * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for cellPhone to set. + * @return This builder for chaining. + */ + public Builder setCellPhoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cellPhone_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - @java.lang.Override - public com.google.ads.admanager.v1.Contact build() { - com.google.ads.admanager.v1.Contact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + private java.lang.Object comment_ = ""; + + /** + * + * + *
    +     * Optional. A free-form text comment for the contact. This attribute has a
    +     * maximum length of 1024 characters.
    +     * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the comment field is set. + */ + public boolean hasComment() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +     * Optional. A free-form text comment for the contact. This attribute has a
    +     * maximum length of 1024 characters.
    +     * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; } - return result; } - @java.lang.Override - public com.google.ads.admanager.v1.Contact buildPartial() { - com.google.ads.admanager.v1.Contact result = new com.google.ads.admanager.v1.Contact(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
    +     * Optional. A free-form text comment for the contact. This attribute has a
    +     * maximum length of 1024 characters.
    +     * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onBuilt(); - return result; } - private void buildPartial0(com.google.ads.admanager.v1.Contact result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; + /** + * + * + *
    +     * Optional. A free-form text comment for the contact. This attribute has a
    +     * maximum length of 1024 characters.
    +     * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The comment to set. + * @return This builder for chaining. + */ + public Builder setComment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.companyDisplayName_ = companyDisplayName_; - to_bitField0_ |= 0x00000001; + comment_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A free-form text comment for the contact. This attribute has a
    +     * maximum length of 1024 characters.
    +     * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearComment() { + comment_ = getDefaultInstance().getComment(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A free-form text comment for the contact. This attribute has a
    +     * maximum length of 1024 characters.
    +     * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for comment to set. + * @return This builder for chaining. + */ + public Builder setCommentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + + /** + * + * + *
    +     * Optional. The e-mail address where the contact can be reached. This
    +     * attribute has a maximum length of 128 characters.
    +     * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the email field is set. + */ + public boolean hasEmail() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +     * Optional. The e-mail address where the contact can be reached. This
    +     * attribute has a maximum length of 128 characters.
    +     * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The e-mail address where the contact can be reached. This
    +     * attribute has a maximum length of 128 characters.
    +     * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for email. + */ + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
    +     * Optional. The e-mail address where the contact can be reached. This
    +     * attribute has a maximum length of 128 characters.
    +     * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + email_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
    +     * Optional. The e-mail address where the contact can be reached. This
    +     * attribute has a maximum length of 128 characters.
    +     * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
    +     * Optional. The e-mail address where the contact can be reached. This
    +     * attribute has a maximum length of 128 characters.
    +     * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + private java.lang.Object fax_ = ""; - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
    +     * Optional. The fax number where the contact can be reached. This attribute
    +     * has a maximum length of 1024 characters.
    +     * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the fax field is set. + */ + public boolean hasFax() { + return ((bitField0_ & 0x00000100) != 0); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
    +     * Optional. The fax number where the contact can be reached. This attribute
    +     * has a maximum length of 1024 characters.
    +     * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fax. + */ + public java.lang.String getFax() { + java.lang.Object ref = fax_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fax_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Contact) { - return mergeFrom((com.google.ads.admanager.v1.Contact) other); + /** + * + * + *
    +     * Optional. The fax number where the contact can be reached. This attribute
    +     * has a maximum length of 1024 characters.
    +     * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fax. + */ + public com.google.protobuf.ByteString getFaxBytes() { + java.lang.Object ref = fax_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fax_ = b; + return b; } else { - super.mergeFrom(other); - return this; + return (com.google.protobuf.ByteString) ref; } } - public Builder mergeFrom(com.google.ads.admanager.v1.Contact other) { - if (other == com.google.ads.admanager.v1.Contact.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCompanyDisplayName()) { - companyDisplayName_ = other.companyDisplayName_; - bitField0_ |= 0x00000002; - onChanged(); + /** + * + * + *
    +     * Optional. The fax number where the contact can be reached. This attribute
    +     * has a maximum length of 1024 characters.
    +     * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fax to set. + * @return This builder for chaining. + */ + public Builder setFax(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + fax_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
    +     * Optional. The fax number where the contact can be reached. This attribute
    +     * has a maximum length of 1024 characters.
    +     * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFax() { + fax_ = getDefaultInstance().getFax(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; } - @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(); + /** + * + * + *
    +     * Optional. The fax number where the contact can be reached. This attribute
    +     * has a maximum length of 1024 characters.
    +     * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fax to set. + * @return This builder for chaining. + */ + public Builder setFaxBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new 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 154: - { - companyDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 154 - 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 + checkByteStringIsUtf8(value); + fax_ = value; + bitField0_ |= 0x00000100; + onChanged(); return this; } - private int bitField0_; + private java.lang.Object title_ = ""; - private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Optional. The job title of the contact. This attribute has a maximum length
    +     * of 1024 characters.
    +     * 
    + * + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000200) != 0); + } /** * * *
    -     * Identifier. The resource name of the `Contact`.
    -     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * Optional. The job title of the contact. This attribute has a maximum length
    +     * of 1024 characters.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The name. + * @return The title. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getTitle() { + java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - name_ = s; + title_ = s; return s; } else { return (java.lang.String) ref; @@ -600,20 +2713,20 @@ public java.lang.String getName() { * * *
    -     * Identifier. The resource name of the `Contact`.
    -     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * Optional. The job title of the contact. This attribute has a maximum length
    +     * of 1024 characters.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for name. + * @return The bytes for title. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; + title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -624,21 +2737,21 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * Identifier. The resource name of the `Contact`.
    -     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * Optional. The job title of the contact. This attribute has a maximum length
    +     * of 1024 characters.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The name to set. + * @param value The title to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; + title_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -647,17 +2760,17 @@ public Builder setName(java.lang.String value) { * * *
    -     * Identifier. The resource name of the `Contact`.
    -     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * Optional. The job title of the contact. This attribute has a maximum length
    +     * of 1024 characters.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -666,62 +2779,62 @@ public Builder clearName() { * * *
    -     * Identifier. The resource name of the `Contact`.
    -     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * Optional. The job title of the contact. This attribute has a maximum length
    +     * of 1024 characters.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for name to set. + * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; + title_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } - private java.lang.Object companyDisplayName_ = ""; + private java.lang.Object workPhone_ = ""; /** * * *
    -     * Output only. The display name of the Company.
    +     * Optional. The work phone number where the contact can be reached. This
    +     * attribute has a maximum length of 1024 characters.
          * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the companyDisplayName field is set. + * @return Whether the workPhone field is set. */ - public boolean hasCompanyDisplayName() { - return ((bitField0_ & 0x00000002) != 0); + public boolean hasWorkPhone() { + return ((bitField0_ & 0x00000400) != 0); } /** * * *
    -     * Output only. The display name of the Company.
    +     * Optional. The work phone number where the contact can be reached. This
    +     * attribute has a maximum length of 1024 characters.
          * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The companyDisplayName. + * @return The workPhone. */ - public java.lang.String getCompanyDisplayName() { - java.lang.Object ref = companyDisplayName_; + public java.lang.String getWorkPhone() { + java.lang.Object ref = workPhone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - companyDisplayName_ = s; + workPhone_ = s; return s; } else { return (java.lang.String) ref; @@ -732,20 +2845,20 @@ public java.lang.String getCompanyDisplayName() { * * *
    -     * Output only. The display name of the Company.
    +     * Optional. The work phone number where the contact can be reached. This
    +     * attribute has a maximum length of 1024 characters.
          * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for companyDisplayName. + * @return The bytes for workPhone. */ - public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { - java.lang.Object ref = companyDisplayName_; + public com.google.protobuf.ByteString getWorkPhoneBytes() { + java.lang.Object ref = workPhone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - companyDisplayName_ = b; + workPhone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -756,21 +2869,21 @@ public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { * * *
    -     * Output only. The display name of the Company.
    +     * Optional. The work phone number where the contact can be reached. This
    +     * attribute has a maximum length of 1024 characters.
          * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The companyDisplayName to set. + * @param value The workPhone to set. * @return This builder for chaining. */ - public Builder setCompanyDisplayName(java.lang.String value) { + public Builder setWorkPhone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - companyDisplayName_ = value; - bitField0_ |= 0x00000002; + workPhone_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -779,17 +2892,17 @@ public Builder setCompanyDisplayName(java.lang.String value) { * * *
    -     * Output only. The display name of the Company.
    +     * Optional. The work phone number where the contact can be reached. This
    +     * attribute has a maximum length of 1024 characters.
          * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearCompanyDisplayName() { - companyDisplayName_ = getDefaultInstance().getCompanyDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearWorkPhone() { + workPhone_ = getDefaultInstance().getWorkPhone(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -798,22 +2911,22 @@ public Builder clearCompanyDisplayName() { * * *
    -     * Output only. The display name of the Company.
    +     * Optional. The work phone number where the contact can be reached. This
    +     * attribute has a maximum length of 1024 characters.
          * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for companyDisplayName to set. + * @param value The bytes for workPhone to set. * @return This builder for chaining. */ - public Builder setCompanyDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setWorkPhoneBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - companyDisplayName_ = value; - bitField0_ |= 0x00000002; + workPhone_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactEnumsProto.java new file mode 100644 index 000000000000..8a8575b63517 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactEnumsProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ContactEnumsProto { + private ContactEnumsProto() {} + + 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_admanager_v1_ContactStatusEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ContactStatusEnum_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/admanager/v1/contact_enums." + + "proto\022\027google.ads.admanager.v1\"\265\001\n\021Conta" + + "ctStatusEnum\"\237\001\n\rContactStatus\022\036\n\032CONTAC" + + "T_STATUS_UNSPECIFIED\020\000\022\023\n\017INVITE_CANCELE" + + "D\020\001\022\022\n\016INVITE_EXPIRED\020\002\022\022\n\016INVITE_PENDIN" + + "G\020\003\022\r\n\tUNINVITED\020\004\022\017\n\013USER_ACTIVE\020\005\022\021\n\rU" + + "SER_DISABLED\020\006B\305\001\n\033com.google.ads.admana" + + "ger.v1B\021ContactEnumsProtoP\001Z@google.gola" + + "ng.org/genproto/googleapis/ads/admanager" + + "/v1;admanager\252\002\027Google.Ads.AdManager.V1\312" + + "\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ads:" + + ":AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_ContactStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_ContactStatusEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ContactStatusEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java index 19c5c865921e..1ba88cac2df7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java @@ -41,25 +41,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n.google/ads/admanager/v1/contact_messag" - + "es.proto\022\027google.ads.admanager.v1\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\"\303\001\n\007Contact\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\010\022&\n\024company_display_name\030\023 \001(\tB\003\340A\003H" - + "\000\210\001\001:d\352Aa\n admanager.googleapis.com/Cont" - + "act\022*networks/{network_code}/contacts/{c" - + "ontact}*\010contacts2\007contactB\027\n\025_company_d" - + "isplay_nameB\310\001\n\033com.google.ads.admanager" - + ".v1B\024ContactMessagesProtoP\001Z@google.gola" - + "ng.org/genproto/googleapis/ads/admanager" - + "/v1;admanager\252\002\027Google.Ads.AdManager.V1\312" - + "\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ads:" - + ":AdManager::V1b\006proto3" + "\n" + + ".google/ads/admanager/v1/contact_messag" + + "es.proto\022\027google.ads.admanager.v1\032+googl" + + "e/ads/admanager/v1/contact_enums.proto\032\037" + + "google/api/field_behavior.proto\032\031google/api/resource.proto\"\356\004\n" + + "\007Contact\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\003 \001(\tB\003\340A\002H\000\210\001\001\022A\n" + + "\007company\030\005 \001(\tB+\340A\002\340A\005\372A\"\n" + + " admanager.googleapis.com/CompanyH\001\210\001\001\022R\n" + + "\006status\030\006" + + " \001(\01628.google.ads.admanager.v1.ContactStatusEnum.ContactStatusB\003\340A\003H\002\210\001\001\022\031\n" + + "\007address\030\007 \001(\tB\003\340A\001H\003\210\001\001\022\034\n\n" + + "cell_phone\030\010 \001(\tB\003\340A\001H\004\210\001\001\022\031\n" + + "\007comment\030\t \001(\tB\003\340A\001H\005\210\001\001\022\027\n" + + "\005email\030\n" + + " \001(\tB\003\340A\001H\006\210\001\001\022\025\n" + + "\003fax\030\013 \001(\tB\003\340A\001H\007\210\001\001\022\027\n" + + "\005title\030\014 \001(\tB\003\340A\001H\010\210\001\001\022\034\n\n" + + "work_phone\030\r" + + " \001(\tB\003\340A\001H\t\210\001\001:d\352Aa\n" + + " admanager.googleapis.com/Contact\022*networks/{network_co" + + "de}/contacts/{contact}*\010contacts2\007contactB\017\n\r" + + "_display_nameB\n\n" + + "\010_companyB\t\n" + + "\007_statusB\n\n" + + "\010_addressB\r\n" + + "\013_cell_phoneB\n\n" + + "\010_commentB\010\n" + + "\006_emailB\006\n" + + "\004_faxB\010\n" + + "\006_titleB\r\n" + + "\013_work_phoneB\310\001\n" + + "\033com.google.ads.admanager.v1B\024ContactMessagesProtoP\001Z@google.golang.org/g" + + "enproto/googleapis/ads/admanager/v1;adma" + + "nager\252\002\027Google.Ads.AdManager.V1\312\002\027Google" + + "\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ContactEnumsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), }); @@ -69,14 +93,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_Contact_descriptor, new java.lang.String[] { - "Name", "CompanyDisplayName", + "Name", + "DisplayName", + "Company", + "Status", + "Address", + "CellPhone", + "Comment", + "Email", + "Fax", + "Title", + "WorkPhone", }); 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); + com.google.ads.admanager.v1.ContactEnumsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactName.java new file mode 100644 index 000000000000..7d116cea2010 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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.admanager.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 ContactName implements ResourceName { + private static final PathTemplate NETWORK_CODE_CONTACT = + PathTemplate.createWithoutUrlEncoding("networks/{network_code}/contacts/{contact}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String contact; + + @Deprecated + protected ContactName() { + networkCode = null; + contact = null; + } + + private ContactName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + contact = Preconditions.checkNotNull(builder.getContact()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getContact() { + return contact; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ContactName of(String networkCode, String contact) { + return newBuilder().setNetworkCode(networkCode).setContact(contact).build(); + } + + public static String format(String networkCode, String contact) { + return newBuilder().setNetworkCode(networkCode).setContact(contact).build().toString(); + } + + public static ContactName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_CONTACT.validatedMatch( + formattedString, "ContactName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("contact")); + } + + 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 (ContactName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_CONTACT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (contact != null) { + fieldMapBuilder.put("contact", contact); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_CONTACT.instantiate("network_code", networkCode, "contact", contact); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ContactName that = ((ContactName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.contact, that.contact); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(contact); + return h; + } + + /** Builder for networks/{network_code}/contacts/{contact}. */ + public static class Builder { + private String networkCode; + private String contact; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getContact() { + return contact; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setContact(String contact) { + this.contact = contact; + return this; + } + + private Builder(ContactName contactName) { + this.networkCode = contactName.networkCode; + this.contact = contactName.contact; + } + + public ContactName build() { + return new ContactName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactOrBuilder.java index b66c914e7fd7..d4dedbf4617d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactOrBuilder.java @@ -56,41 +56,428 @@ public interface ContactOrBuilder * * *
    -   * Output only. The display name of the Company.
    +   * Required. The name of the contact. This attribute has a maximum length of
    +   * 127 characters.
        * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Required. The name of the contact. This attribute has a maximum length of
    +   * 127 characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Required. The name of the contact. This attribute has a maximum length of
    +   * 127 characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
    +   * Required. Immutable. The resource name of the Company.
    +   * Format: "networks/{network_code}/companies/{company_id}"
    +   * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the company field is set. + */ + boolean hasCompany(); + + /** + * + * + *
    +   * Required. Immutable. The resource name of the Company.
    +   * Format: "networks/{network_code}/companies/{company_id}"
    +   * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The company. + */ + java.lang.String getCompany(); + + /** + * + * + *
    +   * Required. Immutable. The resource name of the Company.
    +   * Format: "networks/{network_code}/companies/{company_id}"
    +   * 
    + * + * + * optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * - * @return Whether the companyDisplayName field is set. + * @return The bytes for company. */ - boolean hasCompanyDisplayName(); + com.google.protobuf.ByteString getCompanyBytes(); /** * * *
    -   * Output only. The display name of the Company.
    +   * Output only. The status of the contact. This attribute is assigned by
    +   * Google.
        * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The companyDisplayName. + * @return Whether the status field is set. */ - java.lang.String getCompanyDisplayName(); + boolean hasStatus(); /** * * *
    -   * Output only. The display name of the Company.
    +   * Output only. The status of the contact. This attribute is assigned by
    +   * Google.
        * 
    * - * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The bytes for companyDisplayName. + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
    +   * Output only. The status of the contact. This attribute is assigned by
    +   * Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.ads.admanager.v1.ContactStatusEnum.ContactStatus getStatus(); + + /** + * + * + *
    +   * Optional. The address of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the address field is set. + */ + boolean hasAddress(); + + /** + * + * + *
    +   * Optional. The address of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * + * + *
    +   * Optional. The address of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string address = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
    +   * Optional. The cell phone number where the contact can be reached.
    +   * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the cellPhone field is set. + */ + boolean hasCellPhone(); + + /** + * + * + *
    +   * Optional. The cell phone number where the contact can be reached.
    +   * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cellPhone. + */ + java.lang.String getCellPhone(); + + /** + * + * + *
    +   * Optional. The cell phone number where the contact can be reached.
    +   * 
    + * + * optional string cell_phone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cellPhone. + */ + com.google.protobuf.ByteString getCellPhoneBytes(); + + /** + * + * + *
    +   * Optional. A free-form text comment for the contact. This attribute has a
    +   * maximum length of 1024 characters.
    +   * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the comment field is set. + */ + boolean hasComment(); + + /** + * + * + *
    +   * Optional. A free-form text comment for the contact. This attribute has a
    +   * maximum length of 1024 characters.
    +   * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + java.lang.String getComment(); + + /** + * + * + *
    +   * Optional. A free-form text comment for the contact. This attribute has a
    +   * maximum length of 1024 characters.
    +   * 
    + * + * optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + com.google.protobuf.ByteString getCommentBytes(); + + /** + * + * + *
    +   * Optional. The e-mail address where the contact can be reached. This
    +   * attribute has a maximum length of 128 characters.
    +   * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the email field is set. + */ + boolean hasEmail(); + + /** + * + * + *
    +   * Optional. The e-mail address where the contact can be reached. This
    +   * attribute has a maximum length of 128 characters.
    +   * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The email. + */ + java.lang.String getEmail(); + + /** + * + * + *
    +   * Optional. The e-mail address where the contact can be reached. This
    +   * attribute has a maximum length of 128 characters.
    +   * 
    + * + * optional string email = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); + + /** + * + * + *
    +   * Optional. The fax number where the contact can be reached. This attribute
    +   * has a maximum length of 1024 characters.
    +   * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the fax field is set. + */ + boolean hasFax(); + + /** + * + * + *
    +   * Optional. The fax number where the contact can be reached. This attribute
    +   * has a maximum length of 1024 characters.
    +   * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fax. + */ + java.lang.String getFax(); + + /** + * + * + *
    +   * Optional. The fax number where the contact can be reached. This attribute
    +   * has a maximum length of 1024 characters.
    +   * 
    + * + * optional string fax = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fax. + */ + com.google.protobuf.ByteString getFaxBytes(); + + /** + * + * + *
    +   * Optional. The job title of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
    +   * Optional. The job title of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
    +   * Optional. The job title of the contact. This attribute has a maximum length
    +   * of 1024 characters.
    +   * 
    + * + * optional string title = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
    +   * Optional. The work phone number where the contact can be reached. This
    +   * attribute has a maximum length of 1024 characters.
    +   * 
    + * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the workPhone field is set. + */ + boolean hasWorkPhone(); + + /** + * + * + *
    +   * Optional. The work phone number where the contact can be reached. This
    +   * attribute has a maximum length of 1024 characters.
    +   * 
    + * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workPhone. + */ + java.lang.String getWorkPhone(); + + /** + * + * + *
    +   * Optional. The work phone number where the contact can be reached. This
    +   * attribute has a maximum length of 1024 characters.
    +   * 
    + * + * optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workPhone. */ - com.google.protobuf.ByteString getCompanyDisplayNameBytes(); + com.google.protobuf.ByteString getWorkPhoneBytes(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactServiceProto.java new file mode 100644 index 000000000000..6abfc4f05d8e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactServiceProto.java @@ -0,0 +1,251 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ContactServiceProto { + private ContactServiceProto() {} + + 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_admanager_v1_GetContactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListContactsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListContactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListContactsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListContactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreateContactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreateContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdateContactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdateContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_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/admanager/v1/contact_servic" + + "e.proto\022\027google.ads.admanager.v1\032.google" + + "/ads/admanager/v1/contact_messages.proto" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"K\n" + + "\021GetContactRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Contact\"\277\001\n" + + "\023ListContactsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"w\n" + + "\024ListContactsResponse\0222\n" + + "\010contacts\030\001 \003(\0132 .google.ads.admanager.v1.Contact\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\005\"\210\001\n" + + "\024CreateContactRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0226\n" + + "\007contact\030\002 \001(\0132" + + " .google.ads.admanager.v1.ContactB\003\340A\002\"\234\001\n" + + "\032BatchCreateContactsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022D\n" + + "\010requests\030\002 \003(\0132-.google.ads" + + ".admanager.v1.CreateContactRequestB\003\340A\002\"Q\n" + + "\033BatchCreateContactsResponse\0222\n" + + "\010contacts\030\001 \003(\0132 .google.ads.admanager.v1.Contact\"\204\001\n" + + "\024UpdateContactRequest\0226\n" + + "\007contact\030\001 \001(\0132 .google.ads.admanager.v1.ContactB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\234\001\n" + + "\032BatchUpdateContactsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022D\n" + + "\010requests\030\002" + + " \003(\0132-.google.ads.admanager.v1.UpdateContactRequestB\003\340A\002\"Q\n" + + "\033BatchUpdateContactsResponse\0222\n" + + "\010contacts\030\001 \003(\0132 .google.ads.admanager.v1.Contact2\377\010\n" + + "\016ContactService\022\213\001\n\n" + + "GetContact\022*.google.ads.admanager.v1.GetContactRequest\032" + + " .google.ads.admanager.v1.Contact\"/\332A\004name\202\323\344\223\002\"\022" + + " /v1/{name=networks/*/contacts/*}\022\236\001\n" + + "\014ListContacts\022,.google.ads.admanager.v1.ListContactsRequ" + + "est\032-.google.ads.admanager.v1.ListContactsResponse\"1\332A\006parent\202\323\344\223\002\"\022" + + " /v1/{parent=networks/*}/contacts\022\244\001\n\r" + + "CreateContact\022-.google.ads.admanager.v1.CreateContactRequest\032" + + " .google.ads.admanager.v1.Contact\"B\332A\016parent,contact\202\323\344\223\002+\"" + + " /v1/{parent=networks/*}/contacts:\007contact\022\313\001\n" + + "\023BatchCreateContacts\0223.google.ads.admanager.v1.B" + + "atchCreateContactsRequest\0324.google.ads.admanager.v1.BatchCreateContactsResponse\"" + + "I\332A\017parent,requests\202\323\344\223\0021\",/v1/{parent=networks/*}/contacts:batchCreate:\001*\022\261\001\n\r" + + "UpdateContact\022-.google.ads.admanager.v1.UpdateContactRequest\032" + + " .google.ads.admanager.v1.Contact\"O\332A\023contact,update_mask\202\323\344" + + "\223\00232(/v1/{contact.name=networks/*/contacts/*}:\007contact\022\313\001\n" + + "\023BatchUpdateContacts\0223.google.ads.admanager.v1.BatchUpdateCont" + + "actsRequest\0324.google.ads.admanager.v1.Ba" + + "tchUpdateContactsResponse\"I\332A\017parent,req" + + "uests\202\323\344\223\0021\",/v1/{parent=networks/*}/con" + + "tacts:batchUpdate:\001*\032G\312A\030admanager.googl" + + "eapis.com\322A)https://www.googleapis.com/auth/admanagerB\307\001\n" + + "\033com.google.ads.admanager.v1B\023ContactServiceProtoP\001Z@google.gol" + + "ang.org/genproto/googleapis/ads/admanage" + + "r/v1;admanager\252\002\027Google.Ads.AdManager.V1" + + "\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ads" + + "::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ContactMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetContactRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetContactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetContactRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListContactsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListContactsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListContactsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListContactsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListContactsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListContactsResponse_descriptor, + new java.lang.String[] { + "Contacts", "NextPageToken", "TotalSize", + }); + internal_static_google_ads_admanager_v1_CreateContactRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreateContactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreateContactRequest_descriptor, + new java.lang.String[] { + "Parent", "Contact", + }); + internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateContactsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateContactsResponse_descriptor, + new java.lang.String[] { + "Contacts", + }); + internal_static_google_ads_admanager_v1_UpdateContactRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_admanager_v1_UpdateContactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdateContactRequest_descriptor, + new java.lang.String[] { + "Contact", "UpdateMask", + }); + internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateContactsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateContactsResponse_descriptor, + new java.lang.String[] { + "Contacts", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.ContactMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactStatusEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactStatusEnum.java new file mode 100644 index 000000000000..649947e9a524 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactStatusEnum.java @@ -0,0 +1,694 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [ContactStatus][google.ads.admanager.v1.ContactStatusEnum.ContactStatus]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ContactStatusEnum} + */ +public final class ContactStatusEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ContactStatusEnum) + ContactStatusEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ContactStatusEnum.newBuilder() to construct. + private ContactStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContactStatusEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContactStatusEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactEnumsProto + .internal_static_google_ads_admanager_v1_ContactStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactEnumsProto + .internal_static_google_ads_admanager_v1_ContactStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ContactStatusEnum.class, + com.google.ads.admanager.v1.ContactStatusEnum.Builder.class); + } + + /** + * + * + *
    +   * Describes the contact statuses.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ContactStatusEnum.ContactStatus} + */ + public enum ContactStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CONTACT_STATUS_UNSPECIFIED = 0; + */ + CONTACT_STATUS_UNSPECIFIED(0), + /** + * + * + *
    +     * The contact was invited to see their orders, but the invitation was
    +     * cancelled.
    +     * 
    + * + * INVITE_CANCELED = 1; + */ + INVITE_CANCELED(1), + /** + * + * + *
    +     * The contact has been invited to see their orders, but the invitation has
    +     * already expired.
    +     * 
    + * + * INVITE_EXPIRED = 2; + */ + INVITE_EXPIRED(2), + /** + * + * + *
    +     * The contact has been invited to see their orders, but has not yet
    +     * accepted the invitation.
    +     * 
    + * + * INVITE_PENDING = 3; + */ + INVITE_PENDING(3), + /** + * + * + *
    +     * The contact has not been invited to see their orders.
    +     * 
    + * + * UNINVITED = 4; + */ + UNINVITED(4), + /** + * + * + *
    +     * The contact has access to login and view their orders.
    +     * 
    + * + * USER_ACTIVE = 5; + */ + USER_ACTIVE(5), + /** + * + * + *
    +     * The contact accepted an invitation to see their orders, but their access
    +     * was later revoked.
    +     * 
    + * + * USER_DISABLED = 6; + */ + USER_DISABLED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CONTACT_STATUS_UNSPECIFIED = 0; + */ + public static final int CONTACT_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The contact was invited to see their orders, but the invitation was
    +     * cancelled.
    +     * 
    + * + * INVITE_CANCELED = 1; + */ + public static final int INVITE_CANCELED_VALUE = 1; + + /** + * + * + *
    +     * The contact has been invited to see their orders, but the invitation has
    +     * already expired.
    +     * 
    + * + * INVITE_EXPIRED = 2; + */ + public static final int INVITE_EXPIRED_VALUE = 2; + + /** + * + * + *
    +     * The contact has been invited to see their orders, but has not yet
    +     * accepted the invitation.
    +     * 
    + * + * INVITE_PENDING = 3; + */ + public static final int INVITE_PENDING_VALUE = 3; + + /** + * + * + *
    +     * The contact has not been invited to see their orders.
    +     * 
    + * + * UNINVITED = 4; + */ + public static final int UNINVITED_VALUE = 4; + + /** + * + * + *
    +     * The contact has access to login and view their orders.
    +     * 
    + * + * USER_ACTIVE = 5; + */ + public static final int USER_ACTIVE_VALUE = 5; + + /** + * + * + *
    +     * The contact accepted an invitation to see their orders, but their access
    +     * was later revoked.
    +     * 
    + * + * USER_DISABLED = 6; + */ + public static final int USER_DISABLED_VALUE = 6; + + 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 ContactStatus 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 ContactStatus forNumber(int value) { + switch (value) { + case 0: + return CONTACT_STATUS_UNSPECIFIED; + case 1: + return INVITE_CANCELED; + case 2: + return INVITE_EXPIRED; + case 3: + return INVITE_PENDING; + case 4: + return UNINVITED; + case 5: + return USER_ACTIVE; + case 6: + return USER_DISABLED; + 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 ContactStatus findValueByNumber(int number) { + return ContactStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactStatusEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final ContactStatus[] VALUES = values(); + + public static ContactStatus 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 ContactStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ContactStatusEnum.ContactStatus) + } + + 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.admanager.v1.ContactStatusEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ContactStatusEnum other = + (com.google.ads.admanager.v1.ContactStatusEnum) 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.admanager.v1.ContactStatusEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum 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.admanager.v1.ContactStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum 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.admanager.v1.ContactStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ContactStatusEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [ContactStatus][google.ads.admanager.v1.ContactStatusEnum.ContactStatus]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ContactStatusEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ContactStatusEnum) + com.google.ads.admanager.v1.ContactStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactEnumsProto + .internal_static_google_ads_admanager_v1_ContactStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactEnumsProto + .internal_static_google_ads_admanager_v1_ContactStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ContactStatusEnum.class, + com.google.ads.admanager.v1.ContactStatusEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ContactStatusEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.ContactEnumsProto + .internal_static_google_ads_admanager_v1_ContactStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContactStatusEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ContactStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContactStatusEnum build() { + com.google.ads.admanager.v1.ContactStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContactStatusEnum buildPartial() { + com.google.ads.admanager.v1.ContactStatusEnum result = + new com.google.ads.admanager.v1.ContactStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ContactStatusEnum) { + return mergeFrom((com.google.ads.admanager.v1.ContactStatusEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ContactStatusEnum other) { + if (other == com.google.ads.admanager.v1.ContactStatusEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ContactStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ContactStatusEnum) + private static final com.google.ads.admanager.v1.ContactStatusEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ContactStatusEnum(); + } + + public static com.google.ads.admanager.v1.ContactStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContactStatusEnum 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.admanager.v1.ContactStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactStatusEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactStatusEnumOrBuilder.java new file mode 100644 index 000000000000..b738faaff9a0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactStatusEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ContactStatusEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ContactStatusEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Content.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Content.java new file mode 100644 index 000000000000..e1df1c614559 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Content.java @@ -0,0 +1,866 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * A piece of content from a Publisher's CMS.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.Content} + */ +public final class Content extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Content) + ContentOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Content.newBuilder() to construct. + private Content(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Content() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Content(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentMessagesProto + .internal_static_google_ads_admanager_v1_Content_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentMessagesProto + .internal_static_google_ads_admanager_v1_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Content.class, + com.google.ads.admanager.v1.Content.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `Content`.
    +   * Format: `networks/{network_code}/content/{content_id}`
    +   * 
    + * + * 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. The resource name of the `Content`.
    +   * Format: `networks/{network_code}/content/{content_id}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Output only. The name of the `Content`.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The name of the `Content`.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The name of the `Content`.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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.admanager.v1.Content)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.Content other = (com.google.ads.admanager.v1.Content) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.Content parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Content 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.admanager.v1.Content parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Content 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.admanager.v1.Content parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Content parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Content parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Content parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Content parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Content parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Content parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Content parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.Content prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A piece of content from a Publisher's CMS.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.Content} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Content) + com.google.ads.admanager.v1.ContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentMessagesProto + .internal_static_google_ads_admanager_v1_Content_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentMessagesProto + .internal_static_google_ads_admanager_v1_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Content.class, + com.google.ads.admanager.v1.Content.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.Content.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContentMessagesProto + .internal_static_google_ads_admanager_v1_Content_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Content getDefaultInstanceForType() { + return com.google.ads.admanager.v1.Content.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.Content build() { + com.google.ads.admanager.v1.Content result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Content buildPartial() { + com.google.ads.admanager.v1.Content result = new com.google.ads.admanager.v1.Content(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.Content result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.Content) { + return mergeFrom((com.google.ads.admanager.v1.Content) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.Content other) { + if (other == com.google.ads.admanager.v1.Content.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + 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: + { + displayName_ = 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `Content`.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * 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. The resource name of the `Content`.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * 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. The resource name of the `Content`.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Content`.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Content`.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Output only. The name of the `Content`.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The name of the `Content`.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The name of the `Content`.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The name of the `Content`.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The name of the `Content`.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The name of the `Content`.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Content) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Content) + private static final com.google.ads.admanager.v1.Content DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Content(); + } + + public static com.google.ads.admanager.v1.Content getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content 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.admanager.v1.Content getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundle.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundle.java new file mode 100644 index 000000000000..e369f7b99387 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundle.java @@ -0,0 +1,860 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * A [ContentBundle][google.ads.admanager.v1.ContentBundle] is a grouping of
    + * individual [Content][google.ads.admanager.v1.Content]. A
    + * [ContentBundle][google.ads.admanager.v1.ContentBundle] is defined as
    + * including the [Content][google.ads.admanager.v1.Content] that match certain
    + * filter rules along with the option to explicitly include or exclude certain
    + * Content IDs.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ContentBundle} + */ +public final class ContentBundle extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ContentBundle) + ContentBundleOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ContentBundle.newBuilder() to construct. + private ContentBundle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContentBundle() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContentBundle(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentBundleMessagesProto + .internal_static_google_ads_admanager_v1_ContentBundle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentBundleMessagesProto + .internal_static_google_ads_admanager_v1_ContentBundle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ContentBundle.class, + com.google.ads.admanager.v1.ContentBundle.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the
    +   * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
    +   * `networks/{network_code}/contentBundles/{content_bundle_id}`
    +   * 
    + * + * 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. The resource name of the
    +   * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
    +   * `networks/{network_code}/contentBundles/{content_bundle_id}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Required. The name of the
    +   * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
    +   * required and has a maximum length of 255 characters.
    +   * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the
    +   * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
    +   * required and has a maximum length of 255 characters.
    +   * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + 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.admanager.v1.ContentBundle)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ContentBundle other = + (com.google.ads.admanager.v1.ContentBundle) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ContentBundle parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContentBundle 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.admanager.v1.ContentBundle parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContentBundle 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.admanager.v1.ContentBundle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContentBundle parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContentBundle parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContentBundle parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContentBundle parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContentBundle parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContentBundle parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContentBundle parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ContentBundle prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A [ContentBundle][google.ads.admanager.v1.ContentBundle] is a grouping of
    +   * individual [Content][google.ads.admanager.v1.Content]. A
    +   * [ContentBundle][google.ads.admanager.v1.ContentBundle] is defined as
    +   * including the [Content][google.ads.admanager.v1.Content] that match certain
    +   * filter rules along with the option to explicitly include or exclude certain
    +   * Content IDs.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ContentBundle} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ContentBundle) + com.google.ads.admanager.v1.ContentBundleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentBundleMessagesProto + .internal_static_google_ads_admanager_v1_ContentBundle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentBundleMessagesProto + .internal_static_google_ads_admanager_v1_ContentBundle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ContentBundle.class, + com.google.ads.admanager.v1.ContentBundle.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ContentBundle.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContentBundleMessagesProto + .internal_static_google_ads_admanager_v1_ContentBundle_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContentBundle getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ContentBundle.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContentBundle build() { + com.google.ads.admanager.v1.ContentBundle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContentBundle buildPartial() { + com.google.ads.admanager.v1.ContentBundle result = + new com.google.ads.admanager.v1.ContentBundle(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ContentBundle result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ContentBundle) { + return mergeFrom((com.google.ads.admanager.v1.ContentBundle) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ContentBundle other) { + if (other == com.google.ads.admanager.v1.ContentBundle.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 name_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
    +     * `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * 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. The resource name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
    +     * `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * 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. The resource name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
    +     * `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
    +     * `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
    +     * `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Required. The name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
    +     * required and has a maximum length of 255 characters.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
    +     * required and has a maximum length of 255 characters.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
    +     * required and has a maximum length of 255 characters.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
    +     * required and has a maximum length of 255 characters.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the
    +     * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
    +     * required and has a maximum length of 255 characters.
    +     * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ContentBundle) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ContentBundle) + private static final com.google.ads.admanager.v1.ContentBundle DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ContentBundle(); + } + + public static com.google.ads.admanager.v1.ContentBundle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentBundle 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.admanager.v1.ContentBundle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleMessagesProto.java new file mode 100644 index 000000000000..682908028bb7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleMessagesProto.java @@ -0,0 +1,85 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ContentBundleMessagesProto { + private ContentBundleMessagesProto() {} + + 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_admanager_v1_ContentBundle_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ContentBundle_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/ads/admanager/v1/content_bundle" + + "_messages.proto\022\027google.ads.admanager.v1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\"\304\001\n\rContentBundle\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014display_name\030\003 \001(\tB" + + "\003\340A\002:\204\001\352A\200\001\n&admanager.googleapis.com/Co" + + "ntentBundle\0227networks/{network_code}/con" + + "tentBundles/{content_bundle}*\016contentBun" + + "dles2\rcontentBundleB\316\001\n\033com.google.ads.a" + + "dmanager.v1B\032ContentBundleMessagesProtoP" + + "\001Z@google.golang.org/genproto/googleapis" + + "/ads/admanager/v1;admanager\252\002\027Google.Ads" + + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" + + "\002\032Google::Ads::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_ContentBundle_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_ContentBundle_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ContentBundle_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleName.java new file mode 100644 index 000000000000..3101654a5624 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 ContentBundleName implements ResourceName { + private static final PathTemplate NETWORK_CODE_CONTENT_BUNDLE = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/contentBundles/{content_bundle}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String contentBundle; + + @Deprecated + protected ContentBundleName() { + networkCode = null; + contentBundle = null; + } + + private ContentBundleName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + contentBundle = Preconditions.checkNotNull(builder.getContentBundle()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getContentBundle() { + return contentBundle; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ContentBundleName of(String networkCode, String contentBundle) { + return newBuilder().setNetworkCode(networkCode).setContentBundle(contentBundle).build(); + } + + public static String format(String networkCode, String contentBundle) { + return newBuilder() + .setNetworkCode(networkCode) + .setContentBundle(contentBundle) + .build() + .toString(); + } + + public static ContentBundleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_CONTENT_BUNDLE.validatedMatch( + formattedString, "ContentBundleName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("content_bundle")); + } + + 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 (ContentBundleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_CONTENT_BUNDLE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (contentBundle != null) { + fieldMapBuilder.put("content_bundle", contentBundle); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_CONTENT_BUNDLE.instantiate( + "network_code", networkCode, "content_bundle", contentBundle); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ContentBundleName that = ((ContentBundleName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.contentBundle, that.contentBundle); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(contentBundle); + return h; + } + + /** Builder for networks/{network_code}/contentBundles/{content_bundle}. */ + public static class Builder { + private String networkCode; + private String contentBundle; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getContentBundle() { + return contentBundle; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setContentBundle(String contentBundle) { + this.contentBundle = contentBundle; + return this; + } + + private Builder(ContentBundleName contentBundleName) { + this.networkCode = contentBundleName.networkCode; + this.contentBundle = contentBundleName.contentBundle; + } + + public ContentBundleName build() { + return new ContentBundleName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleOrBuilder.java new file mode 100644 index 000000000000..d17440829682 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ContentBundleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ContentBundle) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the
    +   * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
    +   * `networks/{network_code}/contentBundles/{content_bundle_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the
    +   * [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
    +   * `networks/{network_code}/contentBundles/{content_bundle_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The name of the
    +   * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
    +   * required and has a maximum length of 255 characters.
    +   * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Required. The name of the
    +   * [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
    +   * required and has a maximum length of 255 characters.
    +   * 
    + * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceProto.java new file mode 100644 index 000000000000..c72a8685ac72 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ContentBundleServiceProto { + private ContentBundleServiceProto() {} + + 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_admanager_v1_GetContentBundleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetContentBundleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListContentBundlesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListContentBundlesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListContentBundlesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListContentBundlesResponse_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" + + "4google/ads/admanager/v1/content_bundle" + + "_service.proto\022\027google.ads.admanager.v1\032" + + "5google/ads/admanager/v1/content_bundle_messages.proto\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resource.proto\"W\n" + + "\027GetContentBundleRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&admanager.googleapis.com/ContentBundle\"\305\001\n" + + "\031ListContentBundlesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\212\001\n" + + "\032ListContentBundlesResponse\022?\n" + + "\017content_bundles\030\001" + + " \003(\0132&.google.ads.admanager.v1.ContentBundle\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\276\003\n" + + "\024ContentBundleService\022\243\001\n" + + "\020GetContentBundle\0220.google.ads.admanager.v1.GetConte" + + "ntBundleRequest\032&.google.ads.admanager.v" + + "1.ContentBundle\"5\332A\004name\202\323\344\223\002(\022&/v1/{name=networks/*/contentBundles/*}\022\266\001\n" + + "\022ListContentBundles\0222.google.ads.admanager.v1." + + "ListContentBundlesRequest\0323.google.ads.admanager.v1.ListContentBundlesResponse\"7" + + "\332A\006parent\202\323\344\223\002(\022&/v1/{parent=networks/*}" + + "/contentBundles\032G\312A\030admanager.googleapis" + + ".com\322A)https://www.googleapis.com/auth/admanagerB\315\001\n" + + "\033com.google.ads.admanager.v1B\031ContentBundleServiceProtoP\001Z@google.go" + + "lang.org/genproto/googleapis/ads/admanag" + + "er/v1;admanager\252\002\027Google.Ads.AdManager.V" + + "1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ad" + + "s::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ContentBundleMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetContentBundleRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetContentBundleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetContentBundleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListContentBundlesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListContentBundlesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListContentBundlesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListContentBundlesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListContentBundlesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListContentBundlesResponse_descriptor, + new java.lang.String[] { + "ContentBundles", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.ContentBundleMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabel.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabel.java new file mode 100644 index 000000000000..5646086d7d7e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabel.java @@ -0,0 +1,828 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * A content label.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ContentLabel} + */ +public final class ContentLabel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ContentLabel) + ContentLabelOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ContentLabel.newBuilder() to construct. + private ContentLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContentLabel() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContentLabel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentLabelMessagesProto + .internal_static_google_ads_admanager_v1_ContentLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentLabelMessagesProto + .internal_static_google_ads_admanager_v1_ContentLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ContentLabel.class, + com.google.ads.admanager.v1.ContentLabel.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `ContentLabel`.
    +   * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +   * 
    + * + * 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. The resource name of the `ContentLabel`.
    +   * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Optional. The display name of the `ContentLabel`.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The display name of the `ContentLabel`.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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.admanager.v1.ContentLabel)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ContentLabel other = (com.google.ads.admanager.v1.ContentLabel) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ContentLabel parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContentLabel 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.admanager.v1.ContentLabel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContentLabel 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.admanager.v1.ContentLabel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContentLabel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContentLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContentLabel parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContentLabel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContentLabel parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContentLabel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContentLabel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ContentLabel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A content label.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ContentLabel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ContentLabel) + com.google.ads.admanager.v1.ContentLabelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentLabelMessagesProto + .internal_static_google_ads_admanager_v1_ContentLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentLabelMessagesProto + .internal_static_google_ads_admanager_v1_ContentLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ContentLabel.class, + com.google.ads.admanager.v1.ContentLabel.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ContentLabel.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContentLabelMessagesProto + .internal_static_google_ads_admanager_v1_ContentLabel_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContentLabel getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ContentLabel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContentLabel build() { + com.google.ads.admanager.v1.ContentLabel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContentLabel buildPartial() { + com.google.ads.admanager.v1.ContentLabel result = + new com.google.ads.admanager.v1.ContentLabel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ContentLabel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ContentLabel) { + return mergeFrom((com.google.ads.admanager.v1.ContentLabel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ContentLabel other) { + if (other == com.google.ads.admanager.v1.ContentLabel.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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: + { + displayName_ = 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `ContentLabel`.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * 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. The resource name of the `ContentLabel`.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * 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. The resource name of the `ContentLabel`.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `ContentLabel`.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `ContentLabel`.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Optional. The display name of the `ContentLabel`.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The display name of the `ContentLabel`.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The display name of the `ContentLabel`.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The display name of the `ContentLabel`.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The display name of the `ContentLabel`.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ContentLabel) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ContentLabel) + private static final com.google.ads.admanager.v1.ContentLabel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ContentLabel(); + } + + public static com.google.ads.admanager.v1.ContentLabel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentLabel 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.admanager.v1.ContentLabel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelMessagesProto.java new file mode 100644 index 000000000000..1023cc697979 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelMessagesProto.java @@ -0,0 +1,85 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ContentLabelMessagesProto { + private ContentLabelMessagesProto() {} + + 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_admanager_v1_ContentLabel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ContentLabel_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/ads/admanager/v1/content_label_" + + "messages.proto\022\027google.ads.admanager.v1\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\"\274\001\n\014ContentLabel\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\010\022\031\n\014display_name\030\002 \001(\tB\003\340" + + "A\001:~\352A{\n%admanager.googleapis.com/Conten" + + "tLabel\0225networks/{network_code}/contentL" + + "abels/{content_label}*\rcontentLabels2\014co" + + "ntentLabelB\315\001\n\033com.google.ads.admanager." + + "v1B\031ContentLabelMessagesProtoP\001Z@google." + + "golang.org/genproto/googleapis/ads/adman" + + "ager/v1;admanager\252\002\027Google.Ads.AdManager" + + ".V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::" + + "Ads::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_ContentLabel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_ContentLabel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ContentLabel_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelName.java new file mode 100644 index 000000000000..409de15ca6ba --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 ContentLabelName implements ResourceName { + private static final PathTemplate NETWORK_CODE_CONTENT_LABEL = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/contentLabels/{content_label}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String contentLabel; + + @Deprecated + protected ContentLabelName() { + networkCode = null; + contentLabel = null; + } + + private ContentLabelName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + contentLabel = Preconditions.checkNotNull(builder.getContentLabel()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getContentLabel() { + return contentLabel; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ContentLabelName of(String networkCode, String contentLabel) { + return newBuilder().setNetworkCode(networkCode).setContentLabel(contentLabel).build(); + } + + public static String format(String networkCode, String contentLabel) { + return newBuilder() + .setNetworkCode(networkCode) + .setContentLabel(contentLabel) + .build() + .toString(); + } + + public static ContentLabelName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_CONTENT_LABEL.validatedMatch( + formattedString, "ContentLabelName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("content_label")); + } + + 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 (ContentLabelName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_CONTENT_LABEL.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (contentLabel != null) { + fieldMapBuilder.put("content_label", contentLabel); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_CONTENT_LABEL.instantiate( + "network_code", networkCode, "content_label", contentLabel); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ContentLabelName that = ((ContentLabelName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.contentLabel, that.contentLabel); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(contentLabel); + return h; + } + + /** Builder for networks/{network_code}/contentLabels/{content_label}. */ + public static class Builder { + private String networkCode; + private String contentLabel; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getContentLabel() { + return contentLabel; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setContentLabel(String contentLabel) { + this.contentLabel = contentLabel; + return this; + } + + private Builder(ContentLabelName contentLabelName) { + this.networkCode = contentLabelName.networkCode; + this.contentLabel = contentLabelName.contentLabel; + } + + public ContentLabelName build() { + return new ContentLabelName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelOrBuilder.java new file mode 100644 index 000000000000..f44c2a0b30fd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ContentLabelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ContentLabel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `ContentLabel`.
    +   * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `ContentLabel`.
    +   * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. The display name of the `ContentLabel`.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Optional. The display name of the `ContentLabel`.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceProto.java new file mode 100644 index 000000000000..42b675d3ed91 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceProto.java @@ -0,0 +1,140 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ContentLabelServiceProto { + private ContentLabelServiceProto() {} + + 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_admanager_v1_GetContentLabelRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetContentLabelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListContentLabelsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListContentLabelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListContentLabelsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListContentLabelsResponse_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/ads/admanager/v1/content_label_" + + "service.proto\022\027google.ads.admanager.v1\0324" + + "google/ads/admanager/v1/content_label_messages.proto\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resource.proto\"U\n" + + "\026GetContentLabelRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%admanager.googleapis.com/ContentLabel\"\304\001\n" + + "\030ListContentLabelsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\207\001\n" + + "\031ListContentLabelsResponse\022=\n" + + "\016content_labels\030\001 \003(\0132%.google.ads.admanager.v1.ContentLabel\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\265\003\n" + + "\023ContentLabelService\022\237\001\n" + + "\017GetContentLabel\022/.google.ads.admanager.v1.GetContentLabelReq" + + "uest\032%.google.ads.admanager.v1.ContentLa" + + "bel\"4\332A\004name\202\323\344\223\002\'\022%/v1/{name=networks/*/contentLabels/*}\022\262\001\n" + + "\021ListContentLabels\0221.google.ads.admanager.v1.ListContentLab" + + "elsRequest\0322.google.ads.admanager.v1.Lis" + + "tContentLabelsResponse\"6\332A\006parent\202\323\344\223\002\'\022" + + "%/v1/{parent=networks/*}/contentLabels\032G" + + "\312A\030admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\314\001\n" + + "\033com.google.ads.admanager.v1B\030ContentLabelSer" + + "viceProtoP\001Z@google.golang.org/genproto/" + + "googleapis/ads/admanager/v1;admanager\252\002\027" + + "Google.Ads.AdManager.V1\312\002\027Google\\Ads\\AdM" + + "anager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ContentLabelMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetContentLabelRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetContentLabelRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetContentLabelRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListContentLabelsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListContentLabelsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListContentLabelsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListContentLabelsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListContentLabelsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListContentLabelsResponse_descriptor, + new java.lang.String[] { + "ContentLabels", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.ContentLabelMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentMessagesProto.java new file mode 100644 index 000000000000..d5563fcc8413 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentMessagesProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ContentMessagesProto { + private ContentMessagesProto() {} + + 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_admanager_v1_Content_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Content_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/admanager/v1/content_messag" + + "es.proto\022\027google.ads.admanager.v1\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/resource.proto\"\261\001\n" + + "\007Content\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\002 \001(\tB\003\340A\003H\000\210\001\001:b\352A_\n" + + " admanager.googleapis.com/Content\022)net" + + "works/{network_code}/content/{content}*\007content2\007contentB\017\n\r" + + "_display_nameB\310\001\n" + + "\033com.google.ads.admanager.v1B\024ContentMessag" + + "esProtoP\001Z@google.golang.org/genproto/go" + + "ogleapis/ads/admanager/v1;admanager\252\002\027Go" + + "ogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMan" + + "ager\\V1\352\002\032Google::Ads::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_Content_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_Content_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Content_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentName.java new file mode 100644 index 000000000000..cfbc4c737b16 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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.admanager.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 ContentName implements ResourceName { + private static final PathTemplate NETWORK_CODE_CONTENT = + PathTemplate.createWithoutUrlEncoding("networks/{network_code}/content/{content}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String content; + + @Deprecated + protected ContentName() { + networkCode = null; + content = null; + } + + private ContentName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + content = Preconditions.checkNotNull(builder.getContent()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getContent() { + return content; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ContentName of(String networkCode, String content) { + return newBuilder().setNetworkCode(networkCode).setContent(content).build(); + } + + public static String format(String networkCode, String content) { + return newBuilder().setNetworkCode(networkCode).setContent(content).build().toString(); + } + + public static ContentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_CONTENT.validatedMatch( + formattedString, "ContentName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("content")); + } + + 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 (ContentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_CONTENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (content != null) { + fieldMapBuilder.put("content", content); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_CONTENT.instantiate("network_code", networkCode, "content", content); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ContentName that = ((ContentName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.content, that.content); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(content); + return h; + } + + /** Builder for networks/{network_code}/content/{content}. */ + public static class Builder { + private String networkCode; + private String content; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getContent() { + return content; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setContent(String content) { + this.content = content; + return this; + } + + private Builder(ContentName contentName) { + this.networkCode = contentName.networkCode; + this.content = contentName.content; + } + + public ContentName build() { + return new ContentName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentOrBuilder.java new file mode 100644 index 000000000000..41e67f0d7c11 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Content) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `Content`.
    +   * Format: `networks/{network_code}/content/{content_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `Content`.
    +   * Format: `networks/{network_code}/content/{content_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The name of the `Content`.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Output only. The name of the `Content`.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Output only. The name of the `Content`.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentServiceProto.java new file mode 100644 index 000000000000..37636be907a1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentServiceProto.java @@ -0,0 +1,139 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ContentServiceProto { + private ContentServiceProto() {} + + 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_admanager_v1_GetContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListContentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListContentResponse_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/admanager/v1/content_servic" + + "e.proto\022\027google.ads.admanager.v1\032.google" + + "/ads/admanager/v1/content_messages.proto" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"K\n" + + "\021GetContentRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Content\"\276\001\n" + + "\022ListContentRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"u\n" + + "\023ListContentResponse\0221\n" + + "\007content\030\001 \003(\0132 .google.ads.admanager.v1.Content\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\203\003\n" + + "\016ContentService\022\212\001\n\n" + + "GetContent\022*.google.ads.admanager.v1.GetContentRequest\032 .google.ads.adma" + + "nager.v1.Content\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=networks/*/content/*}\022\232\001\n" + + "\013ListContent\022+.google.ads.admanager.v1.ListContentRe" + + "quest\032,.google.ads.admanager.v1.ListCont" + + "entResponse\"0\332A\006parent\202\323\344\223\002!\022\037/v1/{paren" + + "t=networks/*}/content\032G\312A\030admanager.goog" + + "leapis.com\322A)https://www.googleapis.com/auth/admanagerB\307\001\n" + + "\033com.google.ads.admanager.v1B\023ContentServiceProtoP\001Z@google.go" + + "lang.org/genproto/googleapis/ads/admanag" + + "er/v1;admanager\252\002\027Google.Ads.AdManager.V" + + "1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ad" + + "s::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ContentMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetContentRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetContentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListContentRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListContentRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListContentResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListContentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListContentResponse_descriptor, + new java.lang.String[] { + "Content", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.ContentMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentTargeting.java new file mode 100644 index 000000000000..40115460eac7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentTargeting.java @@ -0,0 +1,1822 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Content Targeting
    + *
    + * Targeted/excluded content entities and bundles.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ContentTargeting} + */ +public final class ContentTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ContentTargeting) + ContentTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ContentTargeting.newBuilder() to construct. + private ContentTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContentTargeting() { + targetedContent_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedContent_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetedContentBundles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedContentBundles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContentTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_ContentTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_ContentTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ContentTargeting.class, + com.google.ads.admanager.v1.ContentTargeting.Builder.class); + } + + public static final int TARGETED_CONTENT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedContent_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedContent. + */ + public com.google.protobuf.ProtocolStringList getTargetedContentList() { + return targetedContent_; + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedContent. + */ + public int getTargetedContentCount() { + return targetedContent_.size(); + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedContent at the given index. + */ + public java.lang.String getTargetedContent(int index) { + return targetedContent_.get(index); + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedContent at the given index. + */ + public com.google.protobuf.ByteString getTargetedContentBytes(int index) { + return targetedContent_.getByteString(index); + } + + public static final int EXCLUDED_CONTENT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedContent_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedContent. + */ + public com.google.protobuf.ProtocolStringList getExcludedContentList() { + return excludedContent_; + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedContent. + */ + public int getExcludedContentCount() { + return excludedContent_.size(); + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedContent at the given index. + */ + public java.lang.String getExcludedContent(int index) { + return excludedContent_.get(index); + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedContent at the given index. + */ + public com.google.protobuf.ByteString getExcludedContentBytes(int index) { + return excludedContent_.getByteString(index); + } + + public static final int TARGETED_CONTENT_BUNDLES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedContentBundles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be targeted/included.
    +   * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedContentBundles. + */ + public com.google.protobuf.ProtocolStringList getTargetedContentBundlesList() { + return targetedContentBundles_; + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be targeted/included.
    +   * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedContentBundles. + */ + public int getTargetedContentBundlesCount() { + return targetedContentBundles_.size(); + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be targeted/included.
    +   * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedContentBundles at the given index. + */ + public java.lang.String getTargetedContentBundles(int index) { + return targetedContentBundles_.get(index); + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be targeted/included.
    +   * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedContentBundles at the given index. + */ + public com.google.protobuf.ByteString getTargetedContentBundlesBytes(int index) { + return targetedContentBundles_.getByteString(index); + } + + public static final int EXCLUDED_CONTENT_BUNDLES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedContentBundles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be excluded.
    +   * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedContentBundles. + */ + public com.google.protobuf.ProtocolStringList getExcludedContentBundlesList() { + return excludedContentBundles_; + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be excluded.
    +   * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedContentBundles. + */ + public int getExcludedContentBundlesCount() { + return excludedContentBundles_.size(); + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be excluded.
    +   * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedContentBundles at the given index. + */ + public java.lang.String getExcludedContentBundles(int index) { + return excludedContentBundles_.get(index); + } + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be excluded.
    +   * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedContentBundles at the given index. + */ + public com.google.protobuf.ByteString getExcludedContentBundlesBytes(int index) { + return excludedContentBundles_.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 < targetedContent_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetedContent_.getRaw(i)); + } + for (int i = 0; i < excludedContent_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, excludedContent_.getRaw(i)); + } + for (int i = 0; i < targetedContentBundles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, targetedContentBundles_.getRaw(i)); + } + for (int i = 0; i < excludedContentBundles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 8, excludedContentBundles_.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 < targetedContent_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedContent_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedContentList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedContent_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedContent_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedContentList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < targetedContentBundles_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedContentBundles_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedContentBundlesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedContentBundles_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedContentBundles_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedContentBundlesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.ContentTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ContentTargeting other = + (com.google.ads.admanager.v1.ContentTargeting) obj; + + if (!getTargetedContentList().equals(other.getTargetedContentList())) return false; + if (!getExcludedContentList().equals(other.getExcludedContentList())) return false; + if (!getTargetedContentBundlesList().equals(other.getTargetedContentBundlesList())) + return false; + if (!getExcludedContentBundlesList().equals(other.getExcludedContentBundlesList())) + 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 (getTargetedContentCount() > 0) { + hash = (37 * hash) + TARGETED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getTargetedContentList().hashCode(); + } + if (getExcludedContentCount() > 0) { + hash = (37 * hash) + EXCLUDED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getExcludedContentList().hashCode(); + } + if (getTargetedContentBundlesCount() > 0) { + hash = (37 * hash) + TARGETED_CONTENT_BUNDLES_FIELD_NUMBER; + hash = (53 * hash) + getTargetedContentBundlesList().hashCode(); + } + if (getExcludedContentBundlesCount() > 0) { + hash = (37 * hash) + EXCLUDED_CONTENT_BUNDLES_FIELD_NUMBER; + hash = (53 * hash) + getExcludedContentBundlesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ContentTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContentTargeting 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.admanager.v1.ContentTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContentTargeting 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.admanager.v1.ContentTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ContentTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContentTargeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContentTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContentTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContentTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ContentTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ContentTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ContentTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Content Targeting
    +   *
    +   * Targeted/excluded content entities and bundles.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ContentTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ContentTargeting) + com.google.ads.admanager.v1.ContentTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_ContentTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_ContentTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ContentTargeting.class, + com.google.ads.admanager.v1.ContentTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ContentTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedContent_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedContent_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetedContentBundles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedContentBundles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_ContentTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContentTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ContentTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContentTargeting build() { + com.google.ads.admanager.v1.ContentTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ContentTargeting buildPartial() { + com.google.ads.admanager.v1.ContentTargeting result = + new com.google.ads.admanager.v1.ContentTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ContentTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedContent_.makeImmutable(); + result.targetedContent_ = targetedContent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedContent_.makeImmutable(); + result.excludedContent_ = excludedContent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + targetedContentBundles_.makeImmutable(); + result.targetedContentBundles_ = targetedContentBundles_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + excludedContentBundles_.makeImmutable(); + result.excludedContentBundles_ = excludedContentBundles_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ContentTargeting) { + return mergeFrom((com.google.ads.admanager.v1.ContentTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ContentTargeting other) { + if (other == com.google.ads.admanager.v1.ContentTargeting.getDefaultInstance()) return this; + if (!other.targetedContent_.isEmpty()) { + if (targetedContent_.isEmpty()) { + targetedContent_ = other.targetedContent_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedContentIsMutable(); + targetedContent_.addAll(other.targetedContent_); + } + onChanged(); + } + if (!other.excludedContent_.isEmpty()) { + if (excludedContent_.isEmpty()) { + excludedContent_ = other.excludedContent_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedContentIsMutable(); + excludedContent_.addAll(other.excludedContent_); + } + onChanged(); + } + if (!other.targetedContentBundles_.isEmpty()) { + if (targetedContentBundles_.isEmpty()) { + targetedContentBundles_ = other.targetedContentBundles_; + bitField0_ |= 0x00000004; + } else { + ensureTargetedContentBundlesIsMutable(); + targetedContentBundles_.addAll(other.targetedContentBundles_); + } + onChanged(); + } + if (!other.excludedContentBundles_.isEmpty()) { + if (excludedContentBundles_.isEmpty()) { + excludedContentBundles_ = other.excludedContentBundles_; + bitField0_ |= 0x00000008; + } else { + ensureExcludedContentBundlesIsMutable(); + excludedContentBundles_.addAll(other.excludedContentBundles_); + } + 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 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedContentIsMutable(); + targetedContent_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedContentIsMutable(); + excludedContent_.add(s); + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedContentBundlesIsMutable(); + targetedContentBundles_.add(s); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedContentBundlesIsMutable(); + excludedContentBundles_.add(s); + 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 com.google.protobuf.LazyStringArrayList targetedContent_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedContentIsMutable() { + if (!targetedContent_.isModifiable()) { + targetedContent_ = new com.google.protobuf.LazyStringArrayList(targetedContent_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedContent. + */ + public com.google.protobuf.ProtocolStringList getTargetedContentList() { + targetedContent_.makeImmutable(); + return targetedContent_; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedContent. + */ + public int getTargetedContentCount() { + return targetedContent_.size(); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedContent at the given index. + */ + public java.lang.String getTargetedContent(int index) { + return targetedContent_.get(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedContent at the given index. + */ + public com.google.protobuf.ByteString getTargetedContentBytes(int index) { + return targetedContent_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedContent to set. + * @return This builder for chaining. + */ + public Builder setTargetedContent(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedContentIsMutable(); + targetedContent_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedContent to add. + * @return This builder for chaining. + */ + public Builder addTargetedContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedContentIsMutable(); + targetedContent_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedContent to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedContent(java.lang.Iterable values) { + ensureTargetedContentIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedContent_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedContent() { + targetedContent_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedContent to add. + * @return This builder for chaining. + */ + public Builder addTargetedContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedContentIsMutable(); + targetedContent_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedContent_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedContentIsMutable() { + if (!excludedContent_.isModifiable()) { + excludedContent_ = new com.google.protobuf.LazyStringArrayList(excludedContent_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedContent. + */ + public com.google.protobuf.ProtocolStringList getExcludedContentList() { + excludedContent_.makeImmutable(); + return excludedContent_; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedContent. + */ + public int getExcludedContentCount() { + return excludedContent_.size(); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedContent at the given index. + */ + public java.lang.String getExcludedContent(int index) { + return excludedContent_.get(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedContent at the given index. + */ + public com.google.protobuf.ByteString getExcludedContentBytes(int index) { + return excludedContent_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedContent to set. + * @return This builder for chaining. + */ + public Builder setExcludedContent(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedContentIsMutable(); + excludedContent_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedContent to add. + * @return This builder for chaining. + */ + public Builder addExcludedContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedContentIsMutable(); + excludedContent_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedContent to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedContent(java.lang.Iterable values) { + ensureExcludedContentIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedContent_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedContent() { + excludedContent_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [Content][google.ads.admanager.v1.Content] that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedContent to add. + * @return This builder for chaining. + */ + public Builder addExcludedContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedContentIsMutable(); + excludedContent_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList targetedContentBundles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedContentBundlesIsMutable() { + if (!targetedContentBundles_.isModifiable()) { + targetedContentBundles_ = + new com.google.protobuf.LazyStringArrayList(targetedContentBundles_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be targeted/included.
    +     * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedContentBundles. + */ + public com.google.protobuf.ProtocolStringList getTargetedContentBundlesList() { + targetedContentBundles_.makeImmutable(); + return targetedContentBundles_; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be targeted/included.
    +     * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedContentBundles. + */ + public int getTargetedContentBundlesCount() { + return targetedContentBundles_.size(); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be targeted/included.
    +     * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedContentBundles at the given index. + */ + public java.lang.String getTargetedContentBundles(int index) { + return targetedContentBundles_.get(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be targeted/included.
    +     * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedContentBundles at the given index. + */ + public com.google.protobuf.ByteString getTargetedContentBundlesBytes(int index) { + return targetedContentBundles_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be targeted/included.
    +     * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedContentBundles to set. + * @return This builder for chaining. + */ + public Builder setTargetedContentBundles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedContentBundlesIsMutable(); + targetedContentBundles_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be targeted/included.
    +     * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedContentBundles to add. + * @return This builder for chaining. + */ + public Builder addTargetedContentBundles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedContentBundlesIsMutable(); + targetedContentBundles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be targeted/included.
    +     * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedContentBundles to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedContentBundles(java.lang.Iterable values) { + ensureTargetedContentBundlesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedContentBundles_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be targeted/included.
    +     * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedContentBundles() { + targetedContentBundles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be targeted/included.
    +     * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedContentBundles to add. + * @return This builder for chaining. + */ + public Builder addTargetedContentBundlesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedContentBundlesIsMutable(); + targetedContentBundles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedContentBundles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedContentBundlesIsMutable() { + if (!excludedContentBundles_.isModifiable()) { + excludedContentBundles_ = + new com.google.protobuf.LazyStringArrayList(excludedContentBundles_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be excluded.
    +     * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedContentBundles. + */ + public com.google.protobuf.ProtocolStringList getExcludedContentBundlesList() { + excludedContentBundles_.makeImmutable(); + return excludedContentBundles_; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be excluded.
    +     * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedContentBundles. + */ + public int getExcludedContentBundlesCount() { + return excludedContentBundles_.size(); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be excluded.
    +     * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedContentBundles at the given index. + */ + public java.lang.String getExcludedContentBundles(int index) { + return excludedContentBundles_.get(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be excluded.
    +     * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedContentBundles at the given index. + */ + public com.google.protobuf.ByteString getExcludedContentBundlesBytes(int index) { + return excludedContentBundles_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be excluded.
    +     * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedContentBundles to set. + * @return This builder for chaining. + */ + public Builder setExcludedContentBundles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedContentBundlesIsMutable(); + excludedContentBundles_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be excluded.
    +     * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedContentBundles to add. + * @return This builder for chaining. + */ + public Builder addExcludedContentBundles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedContentBundlesIsMutable(); + excludedContentBundles_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be excluded.
    +     * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedContentBundles to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedContentBundles(java.lang.Iterable values) { + ensureExcludedContentBundlesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedContentBundles_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be excluded.
    +     * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedContentBundles() { + excludedContentBundles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the
    +     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +     * should be excluded.
    +     * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedContentBundles to add. + * @return This builder for chaining. + */ + public Builder addExcludedContentBundlesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedContentBundlesIsMutable(); + excludedContentBundles_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ContentTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ContentTargeting) + private static final com.google.ads.admanager.v1.ContentTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ContentTargeting(); + } + + public static com.google.ads.admanager.v1.ContentTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentTargeting 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.admanager.v1.ContentTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentTargetingOrBuilder.java new file mode 100644 index 000000000000..2bffac0bcc6d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentTargetingOrBuilder.java @@ -0,0 +1,306 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ContentTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ContentTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedContent. + */ + java.util.List getTargetedContentList(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedContent. + */ + int getTargetedContentCount(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedContent at the given index. + */ + java.lang.String getTargetedContent(int index); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedContent at the given index. + */ + com.google.protobuf.ByteString getTargetedContentBytes(int index); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedContent. + */ + java.util.List getExcludedContentList(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedContent. + */ + int getExcludedContentCount(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedContent at the given index. + */ + java.lang.String getExcludedContent(int index); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [Content][google.ads.admanager.v1.Content] that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedContent at the given index. + */ + com.google.protobuf.ByteString getExcludedContentBytes(int index); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be targeted/included.
    +   * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedContentBundles. + */ + java.util.List getTargetedContentBundlesList(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be targeted/included.
    +   * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedContentBundles. + */ + int getTargetedContentBundlesCount(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be targeted/included.
    +   * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedContentBundles at the given index. + */ + java.lang.String getTargetedContentBundles(int index); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be targeted/included.
    +   * 
    + * + * + * repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedContentBundles at the given index. + */ + com.google.protobuf.ByteString getTargetedContentBundlesBytes(int index); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be excluded.
    +   * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedContentBundles. + */ + java.util.List getExcludedContentBundlesList(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be excluded.
    +   * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedContentBundles. + */ + int getExcludedContentBundlesCount(); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be excluded.
    +   * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedContentBundles at the given index. + */ + java.lang.String getExcludedContentBundles(int index); + + /** + * + * + *
    +   * Optional. The resource names of the
    +   * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
    +   * should be excluded.
    +   * 
    + * + * + * repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedContentBundles at the given index. + */ + com.google.protobuf.ByteString getExcludedContentBundlesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateContactRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateContactRequest.java new file mode 100644 index 000000000000..fe31279f423a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateContactRequest.java @@ -0,0 +1,954 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `CreateContact` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreateContactRequest} + */ +public final class CreateContactRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreateContactRequest) + CreateContactRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateContactRequest.newBuilder() to construct. + private CreateContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateContactRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateContactRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_CreateContactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_CreateContactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateContactRequest.class, + com.google.ads.admanager.v1.CreateContactRequest.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 where this `Contact` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 where this `Contact` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 CONTACT_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.Contact contact_; + + /** + * + * + *
    +   * Required. The `Contact` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the contact field is set. + */ + @java.lang.Override + public boolean hasContact() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `Contact` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The contact. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Contact getContact() { + return contact_ == null ? com.google.ads.admanager.v1.Contact.getDefaultInstance() : contact_; + } + + /** + * + * + *
    +   * Required. The `Contact` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContactOrBuilder getContactOrBuilder() { + return contact_ == null ? com.google.ads.admanager.v1.Contact.getDefaultInstance() : contact_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContact()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContact()); + } + 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.admanager.v1.CreateContactRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreateContactRequest other = + (com.google.ads.admanager.v1.CreateContactRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasContact() != other.hasContact()) return false; + if (hasContact()) { + if (!getContact().equals(other.getContact())) 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(); + if (hasContact()) { + hash = (37 * hash) + CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getContact().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreateContactRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateContactRequest 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.admanager.v1.CreateContactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateContactRequest 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.admanager.v1.CreateContactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateContactRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateContactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateContactRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateContactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateContactRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateContactRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateContactRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CreateContactRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `CreateContact` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreateContactRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreateContactRequest) + com.google.ads.admanager.v1.CreateContactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_CreateContactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_CreateContactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateContactRequest.class, + com.google.ads.admanager.v1.CreateContactRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreateContactRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContactFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + contact_ = null; + if (contactBuilder_ != null) { + contactBuilder_.dispose(); + contactBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_CreateContactRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateContactRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreateContactRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateContactRequest build() { + com.google.ads.admanager.v1.CreateContactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateContactRequest buildPartial() { + com.google.ads.admanager.v1.CreateContactRequest result = + new com.google.ads.admanager.v1.CreateContactRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreateContactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contact_ = contactBuilder_ == null ? contact_ : contactBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreateContactRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreateContactRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreateContactRequest other) { + if (other == com.google.ads.admanager.v1.CreateContactRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContact()) { + mergeContact(other.getContact()); + } + 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: + { + input.readMessage(getContactFieldBuilder().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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where this `Contact` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Contact` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Contact` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Contact` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Contact` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.ads.admanager.v1.Contact contact_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + contactBuilder_; + + /** + * + * + *
    +     * Required. The `Contact` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the contact field is set. + */ + public boolean hasContact() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The `Contact` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The contact. + */ + public com.google.ads.admanager.v1.Contact getContact() { + if (contactBuilder_ == null) { + return contact_ == null + ? com.google.ads.admanager.v1.Contact.getDefaultInstance() + : contact_; + } else { + return contactBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Contact` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContact(com.google.ads.admanager.v1.Contact value) { + if (contactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contact_ = value; + } else { + contactBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContact(com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactBuilder_ == null) { + contact_ = builderForValue.build(); + } else { + contactBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeContact(com.google.ads.admanager.v1.Contact value) { + if (contactBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && contact_ != null + && contact_ != com.google.ads.admanager.v1.Contact.getDefaultInstance()) { + getContactBuilder().mergeFrom(value); + } else { + contact_ = value; + } + } else { + contactBuilder_.mergeFrom(value); + } + if (contact_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContact() { + bitField0_ = (bitField0_ & ~0x00000002); + contact_ = null; + if (contactBuilder_ != null) { + contactBuilder_.dispose(); + contactBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.Contact.Builder getContactBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getContactFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Contact` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ContactOrBuilder getContactOrBuilder() { + if (contactBuilder_ != null) { + return contactBuilder_.getMessageOrBuilder(); + } else { + return contact_ == null + ? com.google.ads.admanager.v1.Contact.getDefaultInstance() + : contact_; + } + } + + /** + * + * + *
    +     * Required. The `Contact` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + getContactFieldBuilder() { + if (contactBuilder_ == null) { + contactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder>( + getContact(), getParentForChildren(), isClean()); + contact_ = null; + } + return contactBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreateContactRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreateContactRequest) + private static final com.google.ads.admanager.v1.CreateContactRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreateContactRequest(); + } + + public static com.google.ads.admanager.v1.CreateContactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateContactRequest 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.admanager.v1.CreateContactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateContactRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateContactRequestOrBuilder.java new file mode 100644 index 000000000000..1fb7ad1c8d59 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateContactRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreateContactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreateContactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where this `Contact` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where this `Contact` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Contact` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the contact field is set. + */ + boolean hasContact(); + + /** + * + * + *
    +   * Required. The `Contact` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The contact. + */ + com.google.ads.admanager.v1.Contact getContact(); + + /** + * + * + *
    +   * Required. The `Contact` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ContactOrBuilder getContactOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomFieldRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomFieldRequest.java new file mode 100644 index 000000000000..c27d7af0ea97 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomFieldRequest.java @@ -0,0 +1,971 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `CreateCustomField` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreateCustomFieldRequest} + */ +public final class CreateCustomFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreateCustomFieldRequest) + CreateCustomFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateCustomFieldRequest.newBuilder() to construct. + private CreateCustomFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomFieldRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomFieldRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateCustomFieldRequest.class, + com.google.ads.admanager.v1.CreateCustomFieldRequest.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 where this `CustomField` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 where this `CustomField` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 CUSTOM_FIELD_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.CustomField customField_; + + /** + * + * + *
    +   * Required. The `CustomField` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customField field is set. + */ + @java.lang.Override + public boolean hasCustomField() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `CustomField` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customField. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomField getCustomField() { + return customField_ == null + ? com.google.ads.admanager.v1.CustomField.getDefaultInstance() + : customField_; + } + + /** + * + * + *
    +   * Required. The `CustomField` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldOrBuilder() { + return customField_ == null + ? com.google.ads.admanager.v1.CustomField.getDefaultInstance() + : customField_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCustomField()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomField()); + } + 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.admanager.v1.CreateCustomFieldRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreateCustomFieldRequest other = + (com.google.ads.admanager.v1.CreateCustomFieldRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomField() != other.hasCustomField()) return false; + if (hasCustomField()) { + if (!getCustomField().equals(other.getCustomField())) 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(); + if (hasCustomField()) { + hash = (37 * hash) + CUSTOM_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getCustomField().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest 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.admanager.v1.CreateCustomFieldRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest 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.admanager.v1.CreateCustomFieldRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CreateCustomFieldRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `CreateCustomField` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreateCustomFieldRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreateCustomFieldRequest) + com.google.ads.admanager.v1.CreateCustomFieldRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateCustomFieldRequest.class, + com.google.ads.admanager.v1.CreateCustomFieldRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreateCustomFieldRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomFieldFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + customField_ = null; + if (customFieldBuilder_ != null) { + customFieldBuilder_.dispose(); + customFieldBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomFieldRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreateCustomFieldRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomFieldRequest build() { + com.google.ads.admanager.v1.CreateCustomFieldRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomFieldRequest buildPartial() { + com.google.ads.admanager.v1.CreateCustomFieldRequest result = + new com.google.ads.admanager.v1.CreateCustomFieldRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreateCustomFieldRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customField_ = + customFieldBuilder_ == null ? customField_ : customFieldBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreateCustomFieldRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreateCustomFieldRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreateCustomFieldRequest other) { + if (other == com.google.ads.admanager.v1.CreateCustomFieldRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomField()) { + mergeCustomField(other.getCustomField()); + } + 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: + { + input.readMessage(getCustomFieldFieldBuilder().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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where this `CustomField` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `CustomField` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `CustomField` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `CustomField` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `CustomField` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.ads.admanager.v1.CustomField customField_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder> + customFieldBuilder_; + + /** + * + * + *
    +     * Required. The `CustomField` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customField field is set. + */ + public boolean hasCustomField() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The `CustomField` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customField. + */ + public com.google.ads.admanager.v1.CustomField getCustomField() { + if (customFieldBuilder_ == null) { + return customField_ == null + ? com.google.ads.admanager.v1.CustomField.getDefaultInstance() + : customField_; + } else { + return customFieldBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomField(com.google.ads.admanager.v1.CustomField value) { + if (customFieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customField_ = value; + } else { + customFieldBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomField(com.google.ads.admanager.v1.CustomField.Builder builderForValue) { + if (customFieldBuilder_ == null) { + customField_ = builderForValue.build(); + } else { + customFieldBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomField(com.google.ads.admanager.v1.CustomField value) { + if (customFieldBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customField_ != null + && customField_ != com.google.ads.admanager.v1.CustomField.getDefaultInstance()) { + getCustomFieldBuilder().mergeFrom(value); + } else { + customField_ = value; + } + } else { + customFieldBuilder_.mergeFrom(value); + } + if (customField_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomField() { + bitField0_ = (bitField0_ & ~0x00000002); + customField_ = null; + if (customFieldBuilder_ != null) { + customFieldBuilder_.dispose(); + customFieldBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CustomField.Builder getCustomFieldBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomFieldFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `CustomField` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldOrBuilder() { + if (customFieldBuilder_ != null) { + return customFieldBuilder_.getMessageOrBuilder(); + } else { + return customField_ == null + ? com.google.ads.admanager.v1.CustomField.getDefaultInstance() + : customField_; + } + } + + /** + * + * + *
    +     * Required. The `CustomField` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder> + getCustomFieldFieldBuilder() { + if (customFieldBuilder_ == null) { + customFieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder>( + getCustomField(), getParentForChildren(), isClean()); + customField_ = null; + } + return customFieldBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreateCustomFieldRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreateCustomFieldRequest) + private static final com.google.ads.admanager.v1.CreateCustomFieldRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreateCustomFieldRequest(); + } + + public static com.google.ads.admanager.v1.CreateCustomFieldRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomFieldRequest 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.admanager.v1.CreateCustomFieldRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomFieldRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomFieldRequestOrBuilder.java new file mode 100644 index 000000000000..0752427decec --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomFieldRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreateCustomFieldRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreateCustomFieldRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where this `CustomField` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where this `CustomField` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `CustomField` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customField field is set. + */ + boolean hasCustomField(); + + /** + * + * + *
    +   * Required. The `CustomField` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customField. + */ + com.google.ads.admanager.v1.CustomField getCustomField(); + + /** + * + * + *
    +   * Required. The `CustomField` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePlacementRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePlacementRequest.java new file mode 100644 index 000000000000..5c8b056eddcf --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePlacementRequest.java @@ -0,0 +1,970 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `CreatePlacement` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreatePlacementRequest} + */ +public final class CreatePlacementRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreatePlacementRequest) + CreatePlacementRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreatePlacementRequest.newBuilder() to construct. + private CreatePlacementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePlacementRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePlacementRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_CreatePlacementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_CreatePlacementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreatePlacementRequest.class, + com.google.ads.admanager.v1.CreatePlacementRequest.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 where this `Placement` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 where this `Placement` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 PLACEMENT_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.Placement placement_; + + /** + * + * + *
    +   * Required. The `Placement` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the placement field is set. + */ + @java.lang.Override + public boolean hasPlacement() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `Placement` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The placement. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Placement getPlacement() { + return placement_ == null + ? com.google.ads.admanager.v1.Placement.getDefaultInstance() + : placement_; + } + + /** + * + * + *
    +   * Required. The `Placement` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.PlacementOrBuilder getPlacementOrBuilder() { + return placement_ == null + ? com.google.ads.admanager.v1.Placement.getDefaultInstance() + : placement_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPlacement()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPlacement()); + } + 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.admanager.v1.CreatePlacementRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreatePlacementRequest other = + (com.google.ads.admanager.v1.CreatePlacementRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasPlacement() != other.hasPlacement()) return false; + if (hasPlacement()) { + if (!getPlacement().equals(other.getPlacement())) 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(); + if (hasPlacement()) { + hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; + hash = (53 * hash) + getPlacement().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest 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.admanager.v1.CreatePlacementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest 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.admanager.v1.CreatePlacementRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CreatePlacementRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `CreatePlacement` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreatePlacementRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreatePlacementRequest) + com.google.ads.admanager.v1.CreatePlacementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_CreatePlacementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_CreatePlacementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreatePlacementRequest.class, + com.google.ads.admanager.v1.CreatePlacementRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreatePlacementRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPlacementFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + placement_ = null; + if (placementBuilder_ != null) { + placementBuilder_.dispose(); + placementBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_CreatePlacementRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreatePlacementRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreatePlacementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreatePlacementRequest build() { + com.google.ads.admanager.v1.CreatePlacementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreatePlacementRequest buildPartial() { + com.google.ads.admanager.v1.CreatePlacementRequest result = + new com.google.ads.admanager.v1.CreatePlacementRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreatePlacementRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.placement_ = placementBuilder_ == null ? placement_ : placementBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreatePlacementRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreatePlacementRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreatePlacementRequest other) { + if (other == com.google.ads.admanager.v1.CreatePlacementRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPlacement()) { + mergePlacement(other.getPlacement()); + } + 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: + { + input.readMessage(getPlacementFieldBuilder().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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where this `Placement` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Placement` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Placement` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Placement` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Placement` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.ads.admanager.v1.Placement placement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder> + placementBuilder_; + + /** + * + * + *
    +     * Required. The `Placement` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the placement field is set. + */ + public boolean hasPlacement() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The `Placement` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The placement. + */ + public com.google.ads.admanager.v1.Placement getPlacement() { + if (placementBuilder_ == null) { + return placement_ == null + ? com.google.ads.admanager.v1.Placement.getDefaultInstance() + : placement_; + } else { + return placementBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Placement` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPlacement(com.google.ads.admanager.v1.Placement value) { + if (placementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + placement_ = value; + } else { + placementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPlacement(com.google.ads.admanager.v1.Placement.Builder builderForValue) { + if (placementBuilder_ == null) { + placement_ = builderForValue.build(); + } else { + placementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePlacement(com.google.ads.admanager.v1.Placement value) { + if (placementBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && placement_ != null + && placement_ != com.google.ads.admanager.v1.Placement.getDefaultInstance()) { + getPlacementBuilder().mergeFrom(value); + } else { + placement_ = value; + } + } else { + placementBuilder_.mergeFrom(value); + } + if (placement_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPlacement() { + bitField0_ = (bitField0_ & ~0x00000002); + placement_ = null; + if (placementBuilder_ != null) { + placementBuilder_.dispose(); + placementBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.Placement.Builder getPlacementBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPlacementFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Placement` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PlacementOrBuilder getPlacementOrBuilder() { + if (placementBuilder_ != null) { + return placementBuilder_.getMessageOrBuilder(); + } else { + return placement_ == null + ? com.google.ads.admanager.v1.Placement.getDefaultInstance() + : placement_; + } + } + + /** + * + * + *
    +     * Required. The `Placement` to create.
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder> + getPlacementFieldBuilder() { + if (placementBuilder_ == null) { + placementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder>( + getPlacement(), getParentForChildren(), isClean()); + placement_ = null; + } + return placementBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreatePlacementRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreatePlacementRequest) + private static final com.google.ads.admanager.v1.CreatePlacementRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreatePlacementRequest(); + } + + public static com.google.ads.admanager.v1.CreatePlacementRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePlacementRequest 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.admanager.v1.CreatePlacementRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePlacementRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePlacementRequestOrBuilder.java new file mode 100644 index 000000000000..6a65b79208af --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePlacementRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreatePlacementRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreatePlacementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where this `Placement` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where this `Placement` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Placement` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the placement field is set. + */ + boolean hasPlacement(); + + /** + * + * + *
    +   * Required. The `Placement` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The placement. + */ + com.google.ads.admanager.v1.Placement getPlacement(); + + /** + * + * + *
    +   * Required. The `Placement` to create.
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.PlacementOrBuilder getPlacementOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateSiteRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateSiteRequest.java new file mode 100644 index 000000000000..51848fcd1ec2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateSiteRequest.java @@ -0,0 +1,946 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `CreateSite` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreateSiteRequest} + */ +public final class CreateSiteRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreateSiteRequest) + CreateSiteRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateSiteRequest.newBuilder() to construct. + private CreateSiteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSiteRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSiteRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_CreateSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_CreateSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateSiteRequest.class, + com.google.ads.admanager.v1.CreateSiteRequest.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 where this `Site` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 where this `Site` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 SITE_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.Site site_; + + /** + * + * + *
    +   * Required. The `Site` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the site field is set. + */ + @java.lang.Override + public boolean hasSite() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `Site` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The site. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Site getSite() { + return site_ == null ? com.google.ads.admanager.v1.Site.getDefaultInstance() : site_; + } + + /** + * + * + *
    +   * Required. The `Site` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.ads.admanager.v1.SiteOrBuilder getSiteOrBuilder() { + return site_ == null ? com.google.ads.admanager.v1.Site.getDefaultInstance() : site_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSite()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSite()); + } + 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.admanager.v1.CreateSiteRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreateSiteRequest other = + (com.google.ads.admanager.v1.CreateSiteRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSite() != other.hasSite()) return false; + if (hasSite()) { + if (!getSite().equals(other.getSite())) 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(); + if (hasSite()) { + hash = (37 * hash) + SITE_FIELD_NUMBER; + hash = (53 * hash) + getSite().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreateSiteRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest 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.admanager.v1.CreateSiteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest 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.admanager.v1.CreateSiteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CreateSiteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `CreateSite` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreateSiteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreateSiteRequest) + com.google.ads.admanager.v1.CreateSiteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_CreateSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_CreateSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateSiteRequest.class, + com.google.ads.admanager.v1.CreateSiteRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreateSiteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSiteFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + site_ = null; + if (siteBuilder_ != null) { + siteBuilder_.dispose(); + siteBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_CreateSiteRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateSiteRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreateSiteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateSiteRequest build() { + com.google.ads.admanager.v1.CreateSiteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateSiteRequest buildPartial() { + com.google.ads.admanager.v1.CreateSiteRequest result = + new com.google.ads.admanager.v1.CreateSiteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreateSiteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.site_ = siteBuilder_ == null ? site_ : siteBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreateSiteRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreateSiteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreateSiteRequest other) { + if (other == com.google.ads.admanager.v1.CreateSiteRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSite()) { + mergeSite(other.getSite()); + } + 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: + { + input.readMessage(getSiteFieldBuilder().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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where this `Site` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Site` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Site` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Site` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Site` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.ads.admanager.v1.Site site_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + siteBuilder_; + + /** + * + * + *
    +     * Required. The `Site` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the site field is set. + */ + public boolean hasSite() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The `Site` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The site. + */ + public com.google.ads.admanager.v1.Site getSite() { + if (siteBuilder_ == null) { + return site_ == null ? com.google.ads.admanager.v1.Site.getDefaultInstance() : site_; + } else { + return siteBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Site` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSite(com.google.ads.admanager.v1.Site value) { + if (siteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + site_ = value; + } else { + siteBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Site` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSite(com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (siteBuilder_ == null) { + site_ = builderForValue.build(); + } else { + siteBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Site` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSite(com.google.ads.admanager.v1.Site value) { + if (siteBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && site_ != null + && site_ != com.google.ads.admanager.v1.Site.getDefaultInstance()) { + getSiteBuilder().mergeFrom(value); + } else { + site_ = value; + } + } else { + siteBuilder_.mergeFrom(value); + } + if (site_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSite() { + bitField0_ = (bitField0_ & ~0x00000002); + site_ = null; + if (siteBuilder_ != null) { + siteBuilder_.dispose(); + siteBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Site` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.Site.Builder getSiteBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSiteFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Site` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.SiteOrBuilder getSiteOrBuilder() { + if (siteBuilder_ != null) { + return siteBuilder_.getMessageOrBuilder(); + } else { + return site_ == null ? com.google.ads.admanager.v1.Site.getDefaultInstance() : site_; + } + } + + /** + * + * + *
    +     * Required. The `Site` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + getSiteFieldBuilder() { + if (siteBuilder_ == null) { + siteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder>( + getSite(), getParentForChildren(), isClean()); + site_ = null; + } + return siteBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreateSiteRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreateSiteRequest) + private static final com.google.ads.admanager.v1.CreateSiteRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreateSiteRequest(); + } + + public static com.google.ads.admanager.v1.CreateSiteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSiteRequest 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.admanager.v1.CreateSiteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateSiteRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateSiteRequestOrBuilder.java new file mode 100644 index 000000000000..e0f6f07b714b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateSiteRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreateSiteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreateSiteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where this `Site` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where this `Site` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Site` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the site field is set. + */ + boolean hasSite(); + + /** + * + * + *
    +   * Required. The `Site` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The site. + */ + com.google.ads.admanager.v1.Site getSite(); + + /** + * + * + *
    +   * Required. The `Site` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.ads.admanager.v1.SiteOrBuilder getSiteOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateTeamRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateTeamRequest.java new file mode 100644 index 000000000000..c5680fd63d40 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateTeamRequest.java @@ -0,0 +1,946 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `CreateTeam` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreateTeamRequest} + */ +public final class CreateTeamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreateTeamRequest) + CreateTeamRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateTeamRequest.newBuilder() to construct. + private CreateTeamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTeamRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTeamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_CreateTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_CreateTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateTeamRequest.class, + com.google.ads.admanager.v1.CreateTeamRequest.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 where this `Team` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 where this `Team` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 TEAM_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.Team team_; + + /** + * + * + *
    +   * Required. The `Team` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the team field is set. + */ + @java.lang.Override + public boolean hasTeam() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `Team` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The team. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Team getTeam() { + return team_ == null ? com.google.ads.admanager.v1.Team.getDefaultInstance() : team_; + } + + /** + * + * + *
    +   * Required. The `Team` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.ads.admanager.v1.TeamOrBuilder getTeamOrBuilder() { + return team_ == null ? com.google.ads.admanager.v1.Team.getDefaultInstance() : team_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTeam()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTeam()); + } + 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.admanager.v1.CreateTeamRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreateTeamRequest other = + (com.google.ads.admanager.v1.CreateTeamRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasTeam() != other.hasTeam()) return false; + if (hasTeam()) { + if (!getTeam().equals(other.getTeam())) 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(); + if (hasTeam()) { + hash = (37 * hash) + TEAM_FIELD_NUMBER; + hash = (53 * hash) + getTeam().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreateTeamRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest 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.admanager.v1.CreateTeamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest 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.admanager.v1.CreateTeamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CreateTeamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `CreateTeam` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreateTeamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreateTeamRequest) + com.google.ads.admanager.v1.CreateTeamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_CreateTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_CreateTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateTeamRequest.class, + com.google.ads.admanager.v1.CreateTeamRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreateTeamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTeamFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_CreateTeamRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateTeamRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreateTeamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateTeamRequest build() { + com.google.ads.admanager.v1.CreateTeamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateTeamRequest buildPartial() { + com.google.ads.admanager.v1.CreateTeamRequest result = + new com.google.ads.admanager.v1.CreateTeamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreateTeamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.team_ = teamBuilder_ == null ? team_ : teamBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreateTeamRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreateTeamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreateTeamRequest other) { + if (other == com.google.ads.admanager.v1.CreateTeamRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTeam()) { + mergeTeam(other.getTeam()); + } + 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: + { + input.readMessage(getTeamFieldBuilder().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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource where this `Team` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Team` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Team` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Team` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 where this `Team` will be created.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 com.google.ads.admanager.v1.Team team_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + teamBuilder_; + + /** + * + * + *
    +     * Required. The `Team` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the team field is set. + */ + public boolean hasTeam() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The `Team` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The team. + */ + public com.google.ads.admanager.v1.Team getTeam() { + if (teamBuilder_ == null) { + return team_ == null ? com.google.ads.admanager.v1.Team.getDefaultInstance() : team_; + } else { + return teamBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Team` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeam(com.google.ads.admanager.v1.Team value) { + if (teamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + team_ = value; + } else { + teamBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Team` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeam(com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamBuilder_ == null) { + team_ = builderForValue.build(); + } else { + teamBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Team` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTeam(com.google.ads.admanager.v1.Team value) { + if (teamBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && team_ != null + && team_ != com.google.ads.admanager.v1.Team.getDefaultInstance()) { + getTeamBuilder().mergeFrom(value); + } else { + team_ = value; + } + } else { + teamBuilder_.mergeFrom(value); + } + if (team_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTeam() { + bitField0_ = (bitField0_ & ~0x00000002); + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Team` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.Team.Builder getTeamBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTeamFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Team` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.TeamOrBuilder getTeamOrBuilder() { + if (teamBuilder_ != null) { + return teamBuilder_.getMessageOrBuilder(); + } else { + return team_ == null ? com.google.ads.admanager.v1.Team.getDefaultInstance() : team_; + } + } + + /** + * + * + *
    +     * Required. The `Team` to create.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + getTeamFieldBuilder() { + if (teamBuilder_ == null) { + teamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder>( + getTeam(), getParentForChildren(), isClean()); + team_ = null; + } + return teamBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreateTeamRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreateTeamRequest) + private static final com.google.ads.admanager.v1.CreateTeamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreateTeamRequest(); + } + + public static com.google.ads.admanager.v1.CreateTeamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTeamRequest 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.admanager.v1.CreateTeamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateTeamRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateTeamRequestOrBuilder.java new file mode 100644 index 000000000000..d587fbfcf8b1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateTeamRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreateTeamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreateTeamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource where this `Team` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource where this `Team` will be created.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The `Team` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the team field is set. + */ + boolean hasTeam(); + + /** + * + * + *
    +   * Required. The `Team` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The team. + */ + com.google.ads.admanager.v1.Team getTeam(); + + /** + * + * + *
    +   * Required. The `Team` to create.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.ads.admanager.v1.TeamOrBuilder getTeamOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplate.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplate.java new file mode 100644 index 000000000000..e0d673f896f5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplate.java @@ -0,0 +1,2947 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * A template that can be used to create a [TemplateCreative][].
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplate} + */ +public final class CreativeTemplate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplate) + CreativeTemplateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreativeTemplate.newBuilder() to construct. + private CreativeTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreativeTemplate() { + name_ = ""; + displayName_ = ""; + description_ = ""; + snippet_ = ""; + status_ = 0; + type_ = 0; + variables_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreativeTemplate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplate.class, + com.google.ads.admanager.v1.CreativeTemplate.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the creative template.
    +   * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +   * 
    + * + * 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. The resource name of the creative template.
    +   * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Required. The display name of the creative template. This has a maximum
    +   * length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The display name of the creative template. This has a maximum
    +   * length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The display name of the creative template. This has a maximum
    +   * length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
    +   * Optional. The description of the creative template.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. The description of the creative template.
    +   * 
    + * + * optional string description = 3 [(.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. The description of the creative template.
    +   * 
    + * + * optional string description = 3 [(.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 SNIPPET_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object snippet_ = ""; + + /** + * + * + *
    +   * Required. The code snippet of the creative template, with placeholders for
    +   * the associated variables.
    +   * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the snippet field is set. + */ + @java.lang.Override + public boolean hasSnippet() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Required. The code snippet of the creative template, with placeholders for
    +   * the associated variables.
    +   * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snippet. + */ + @java.lang.Override + public java.lang.String getSnippet() { + java.lang.Object ref = snippet_; + 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(); + snippet_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The code snippet of the creative template, with placeholders for
    +   * the associated variables.
    +   * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snippet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnippetBytes() { + java.lang.Object ref = snippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 6; + private int status_ = 0; + + /** + * + * + *
    +   * Output only. The status of the creative template. This attribute is
    +   * assigned by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Output only. The status of the creative template. This attribute is
    +   * assigned by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +   * Output only. The status of the creative template. This attribute is
    +   * assigned by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus getStatus() { + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus result = + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus.UNRECOGNIZED + : result; + } + + public static final int TYPE_FIELD_NUMBER = 7; + private int type_ = 0; + + /** + * + * + *
    +   * Optional. The type of the creative template. Users can only create or
    +   * update `CreativeTemplateType.CUSTOM` templates.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Optional. The type of the creative template. Users can only create or
    +   * update `CreativeTemplateType.CUSTOM` templates.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
    +   * Optional. The type of the creative template. Users can only create or
    +   * update `CreativeTemplateType.CUSTOM` templates.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType getType() { + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType result = + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType.forNumber(type_); + return result == null + ? com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType.UNRECOGNIZED + : result; + } + + public static final int INTERSTITIAL_FIELD_NUMBER = 8; + private boolean interstitial_ = false; + + /** + * + * + *
    +   * Optional. `True` if this creative template produces out-of-page creatives.
    +   * Creative templates with this setting enabled must include the viewed
    +   * impression macro.
    +   * 
    + * + * optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the interstitial field is set. + */ + @java.lang.Override + public boolean hasInterstitial() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +   * Optional. `True` if this creative template produces out-of-page creatives.
    +   * Creative templates with this setting enabled must include the viewed
    +   * impression macro.
    +   * 
    + * + * optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The interstitial. + */ + @java.lang.Override + public boolean getInterstitial() { + return interstitial_; + } + + public static final int NATIVE_ELIGIBLE_FIELD_NUMBER = 9; + private boolean nativeEligible_ = false; + + /** + * + * + *
    +   * Optional. `True` if this creative template produces native-eligible
    +   * creatives.
    +   * 
    + * + * optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the nativeEligible field is set. + */ + @java.lang.Override + public boolean hasNativeEligible() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +   * Optional. `True` if this creative template produces native-eligible
    +   * creatives.
    +   * 
    + * + * optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nativeEligible. + */ + @java.lang.Override + public boolean getNativeEligible() { + return nativeEligible_; + } + + public static final int NATIVE_VIDEO_ELIGIBLE_FIELD_NUMBER = 10; + private boolean nativeVideoEligible_ = false; + + /** + * + * + *
    +   * Optional. `True` if this creative template produces native video-eligible
    +   * creatives.
    +   * 
    + * + * optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nativeVideoEligible field is set. + */ + @java.lang.Override + public boolean hasNativeVideoEligible() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +   * Optional. `True` if this creative template produces native video-eligible
    +   * creatives.
    +   * 
    + * + * optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nativeVideoEligible. + */ + @java.lang.Override + public boolean getNativeVideoEligible() { + return nativeVideoEligible_; + } + + public static final int SAFE_FRAME_COMPATIBLE_FIELD_NUMBER = 12; + private boolean safeFrameCompatible_ = false; + + /** + * + * + *
    +   * Optional. Whether the Creative produced is compatible for SafeFrame
    +   * rendering. This attribute defaults to `True`.
    +   * 
    + * + * optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the safeFrameCompatible field is set. + */ + @java.lang.Override + public boolean hasSafeFrameCompatible() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +   * Optional. Whether the Creative produced is compatible for SafeFrame
    +   * rendering. This attribute defaults to `True`.
    +   * 
    + * + * optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The safeFrameCompatible. + */ + @java.lang.Override + public boolean getSafeFrameCompatible() { + return safeFrameCompatible_; + } + + public static final int VARIABLES_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List variables_; + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getVariablesList() { + return variables_; + } + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getVariablesOrBuilderList() { + return variables_; + } + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getVariablesCount() { + return variables_.size(); + } + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable getVariables(int index) { + return variables_.get(index); + } + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariableOrBuilder getVariablesOrBuilder( + int index) { + return variables_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, snippet_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(6, status_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(7, type_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(8, interstitial_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeBool(9, nativeEligible_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeBool(10, nativeVideoEligible_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeBool(12, safeFrameCompatible_); + } + for (int i = 0; i < variables_.size(); i++) { + output.writeMessage(14, variables_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, snippet_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, status_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, interstitial_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, nativeEligible_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, nativeVideoEligible_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, safeFrameCompatible_); + } + for (int i = 0; i < variables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, variables_.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.admanager.v1.CreativeTemplate)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplate other = + (com.google.ads.admanager.v1.CreativeTemplate) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasSnippet() != other.hasSnippet()) return false; + if (hasSnippet()) { + if (!getSnippet().equals(other.getSnippet())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (type_ != other.type_) return false; + } + if (hasInterstitial() != other.hasInterstitial()) return false; + if (hasInterstitial()) { + if (getInterstitial() != other.getInterstitial()) return false; + } + if (hasNativeEligible() != other.hasNativeEligible()) return false; + if (hasNativeEligible()) { + if (getNativeEligible() != other.getNativeEligible()) return false; + } + if (hasNativeVideoEligible() != other.hasNativeVideoEligible()) return false; + if (hasNativeVideoEligible()) { + if (getNativeVideoEligible() != other.getNativeVideoEligible()) return false; + } + if (hasSafeFrameCompatible() != other.hasSafeFrameCompatible()) return false; + if (hasSafeFrameCompatible()) { + if (getSafeFrameCompatible() != other.getSafeFrameCompatible()) return false; + } + if (!getVariablesList().equals(other.getVariablesList())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasSnippet()) { + hash = (37 * hash) + SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSnippet().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasInterstitial()) { + hash = (37 * hash) + INTERSTITIAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterstitial()); + } + if (hasNativeEligible()) { + hash = (37 * hash) + NATIVE_ELIGIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNativeEligible()); + } + if (hasNativeVideoEligible()) { + hash = (37 * hash) + NATIVE_VIDEO_ELIGIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNativeVideoEligible()); + } + if (hasSafeFrameCompatible()) { + hash = (37 * hash) + SAFE_FRAME_COMPATIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSafeFrameCompatible()); + } + if (getVariablesCount() > 0) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreativeTemplate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplate 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.admanager.v1.CreativeTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplate 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.admanager.v1.CreativeTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CreativeTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A template that can be used to create a [TemplateCreative][].
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplate) + com.google.ads.admanager.v1.CreativeTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplate.class, + com.google.ads.admanager.v1.CreativeTemplate.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreativeTemplate.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + snippet_ = ""; + status_ = 0; + type_ = 0; + interstitial_ = false; + nativeEligible_ = false; + nativeVideoEligible_ = false; + safeFrameCompatible_ = false; + if (variablesBuilder_ == null) { + variables_ = java.util.Collections.emptyList(); + } else { + variables_ = null; + variablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplate_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplate getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplate build() { + com.google.ads.admanager.v1.CreativeTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplate buildPartial() { + com.google.ads.admanager.v1.CreativeTemplate result = + new com.google.ads.admanager.v1.CreativeTemplate(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.ads.admanager.v1.CreativeTemplate result) { + if (variablesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + variables_ = java.util.Collections.unmodifiableList(variables_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.variables_ = variables_; + } else { + result.variables_ = variablesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.CreativeTemplate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.snippet_ = snippet_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.interstitial_ = interstitial_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.nativeEligible_ = nativeEligible_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.nativeVideoEligible_ = nativeVideoEligible_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.safeFrameCompatible_ = safeFrameCompatible_; + to_bitField0_ |= 0x00000100; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreativeTemplate) { + return mergeFrom((com.google.ads.admanager.v1.CreativeTemplate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreativeTemplate other) { + if (other == com.google.ads.admanager.v1.CreativeTemplate.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSnippet()) { + snippet_ = other.snippet_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasStatus()) { + setStatus(other.getStatus()); + } + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasInterstitial()) { + setInterstitial(other.getInterstitial()); + } + if (other.hasNativeEligible()) { + setNativeEligible(other.getNativeEligible()); + } + if (other.hasNativeVideoEligible()) { + setNativeVideoEligible(other.getNativeVideoEligible()); + } + if (other.hasSafeFrameCompatible()) { + setSafeFrameCompatible(other.getSafeFrameCompatible()); + } + if (variablesBuilder_ == null) { + if (!other.variables_.isEmpty()) { + if (variables_.isEmpty()) { + variables_ = other.variables_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureVariablesIsMutable(); + variables_.addAll(other.variables_); + } + onChanged(); + } + } else { + if (!other.variables_.isEmpty()) { + if (variablesBuilder_.isEmpty()) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + variables_ = other.variables_; + bitField0_ = (bitField0_ & ~0x00000400); + variablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVariablesFieldBuilder() + : null; + } else { + variablesBuilder_.addAllMessages(other.variables_); + } + } + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + snippet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + interstitial_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + nativeEligible_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 80: + { + nativeVideoEligible_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 96: + { + safeFrameCompatible_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 96 + case 114: + { + com.google.ads.admanager.v1.CreativeTemplateVariable m = + input.readMessage( + com.google.ads.admanager.v1.CreativeTemplateVariable.parser(), + extensionRegistry); + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(m); + } else { + variablesBuilder_.addMessage(m); + } + break; + } // case 114 + 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the creative template.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * 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. The resource name of the creative template.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * 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. The resource name of the creative template.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the creative template.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the creative template.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Required. The display name of the creative template. This has a maximum
    +     * length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The display name of the creative template. This has a maximum
    +     * length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The display name of the creative template. This has a maximum
    +     * length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The display name of the creative template. This has a maximum
    +     * length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The display name of the creative template. This has a maximum
    +     * length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The display name of the creative template. This has a maximum
    +     * length of 255 characters.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
    +     * Optional. The description of the creative template.
    +     * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. The description of the creative template.
    +     * 
    + * + * optional string description = 3 [(.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. The description of the creative template.
    +     * 
    + * + * optional string description = 3 [(.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. The description of the creative template.
    +     * 
    + * + * optional string description = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The description of the creative template.
    +     * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The description of the creative template.
    +     * 
    + * + * optional string description = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object snippet_ = ""; + + /** + * + * + *
    +     * Required. The code snippet of the creative template, with placeholders for
    +     * the associated variables.
    +     * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the snippet field is set. + */ + public boolean hasSnippet() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Required. The code snippet of the creative template, with placeholders for
    +     * the associated variables.
    +     * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snippet. + */ + public java.lang.String getSnippet() { + java.lang.Object ref = snippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The code snippet of the creative template, with placeholders for
    +     * the associated variables.
    +     * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snippet. + */ + public com.google.protobuf.ByteString getSnippetBytes() { + java.lang.Object ref = snippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The code snippet of the creative template, with placeholders for
    +     * the associated variables.
    +     * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The snippet to set. + * @return This builder for chaining. + */ + public Builder setSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snippet_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The code snippet of the creative template, with placeholders for
    +     * the associated variables.
    +     * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSnippet() { + snippet_ = getDefaultInstance().getSnippet(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The code snippet of the creative template, with placeholders for
    +     * the associated variables.
    +     * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for snippet to set. + * @return This builder for chaining. + */ + public Builder setSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snippet_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
    +     * Output only. The status of the creative template. This attribute is
    +     * assigned by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Output only. The status of the creative template. This attribute is
    +     * assigned by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +     * Output only. The status of the creative template. This attribute is
    +     * assigned by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of the creative template. This attribute is
    +     * assigned by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus + getStatus() { + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus result = + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The status of the creative template. This attribute is
    +     * assigned by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of the creative template. This attribute is
    +     * assigned by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000010); + status_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
    +     * Optional. The type of the creative template. Users can only create or
    +     * update `CreativeTemplateType.CUSTOM` templates.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. The type of the creative template. Users can only create or
    +     * update `CreativeTemplateType.CUSTOM` templates.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
    +     * Optional. The type of the creative template. Users can only create or
    +     * update `CreativeTemplateType.CUSTOM` templates.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The type of the creative template. Users can only create or
    +     * update `CreativeTemplateType.CUSTOM` templates.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType getType() { + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType result = + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType.forNumber( + type_); + return result == null + ? com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. The type of the creative template. Users can only create or
    +     * update `CreativeTemplateType.CUSTOM` templates.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The type of the creative template. Users can only create or
    +     * update `CreativeTemplateType.CUSTOM` templates.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000020); + type_ = 0; + onChanged(); + return this; + } + + private boolean interstitial_; + + /** + * + * + *
    +     * Optional. `True` if this creative template produces out-of-page creatives.
    +     * Creative templates with this setting enabled must include the viewed
    +     * impression macro.
    +     * 
    + * + * optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the interstitial field is set. + */ + @java.lang.Override + public boolean hasInterstitial() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +     * Optional. `True` if this creative template produces out-of-page creatives.
    +     * Creative templates with this setting enabled must include the viewed
    +     * impression macro.
    +     * 
    + * + * optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The interstitial. + */ + @java.lang.Override + public boolean getInterstitial() { + return interstitial_; + } + + /** + * + * + *
    +     * Optional. `True` if this creative template produces out-of-page creatives.
    +     * Creative templates with this setting enabled must include the viewed
    +     * impression macro.
    +     * 
    + * + * optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The interstitial to set. + * @return This builder for chaining. + */ + public Builder setInterstitial(boolean value) { + + interstitial_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `True` if this creative template produces out-of-page creatives.
    +     * Creative templates with this setting enabled must include the viewed
    +     * impression macro.
    +     * 
    + * + * optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInterstitial() { + bitField0_ = (bitField0_ & ~0x00000040); + interstitial_ = false; + onChanged(); + return this; + } + + private boolean nativeEligible_; + + /** + * + * + *
    +     * Optional. `True` if this creative template produces native-eligible
    +     * creatives.
    +     * 
    + * + * optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the nativeEligible field is set. + */ + @java.lang.Override + public boolean hasNativeEligible() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +     * Optional. `True` if this creative template produces native-eligible
    +     * creatives.
    +     * 
    + * + * optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nativeEligible. + */ + @java.lang.Override + public boolean getNativeEligible() { + return nativeEligible_; + } + + /** + * + * + *
    +     * Optional. `True` if this creative template produces native-eligible
    +     * creatives.
    +     * 
    + * + * optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nativeEligible to set. + * @return This builder for chaining. + */ + public Builder setNativeEligible(boolean value) { + + nativeEligible_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `True` if this creative template produces native-eligible
    +     * creatives.
    +     * 
    + * + * optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNativeEligible() { + bitField0_ = (bitField0_ & ~0x00000080); + nativeEligible_ = false; + onChanged(); + return this; + } + + private boolean nativeVideoEligible_; + + /** + * + * + *
    +     * Optional. `True` if this creative template produces native video-eligible
    +     * creatives.
    +     * 
    + * + * optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nativeVideoEligible field is set. + */ + @java.lang.Override + public boolean hasNativeVideoEligible() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +     * Optional. `True` if this creative template produces native video-eligible
    +     * creatives.
    +     * 
    + * + * optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nativeVideoEligible. + */ + @java.lang.Override + public boolean getNativeVideoEligible() { + return nativeVideoEligible_; + } + + /** + * + * + *
    +     * Optional. `True` if this creative template produces native video-eligible
    +     * creatives.
    +     * 
    + * + * optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The nativeVideoEligible to set. + * @return This builder for chaining. + */ + public Builder setNativeVideoEligible(boolean value) { + + nativeVideoEligible_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `True` if this creative template produces native video-eligible
    +     * creatives.
    +     * 
    + * + * optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearNativeVideoEligible() { + bitField0_ = (bitField0_ & ~0x00000100); + nativeVideoEligible_ = false; + onChanged(); + return this; + } + + private boolean safeFrameCompatible_; + + /** + * + * + *
    +     * Optional. Whether the Creative produced is compatible for SafeFrame
    +     * rendering. This attribute defaults to `True`.
    +     * 
    + * + * optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the safeFrameCompatible field is set. + */ + @java.lang.Override + public boolean hasSafeFrameCompatible() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
    +     * Optional. Whether the Creative produced is compatible for SafeFrame
    +     * rendering. This attribute defaults to `True`.
    +     * 
    + * + * optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The safeFrameCompatible. + */ + @java.lang.Override + public boolean getSafeFrameCompatible() { + return safeFrameCompatible_; + } + + /** + * + * + *
    +     * Optional. Whether the Creative produced is compatible for SafeFrame
    +     * rendering. This attribute defaults to `True`.
    +     * 
    + * + * optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The safeFrameCompatible to set. + * @return This builder for chaining. + */ + public Builder setSafeFrameCompatible(boolean value) { + + safeFrameCompatible_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Whether the Creative produced is compatible for SafeFrame
    +     * rendering. This attribute defaults to `True`.
    +     * 
    + * + * optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSafeFrameCompatible() { + bitField0_ = (bitField0_ & ~0x00000200); + safeFrameCompatible_ = false; + onChanged(); + return this; + } + + private java.util.List variables_ = + java.util.Collections.emptyList(); + + private void ensureVariablesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + variables_ = + new java.util.ArrayList( + variables_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.Builder, + com.google.ads.admanager.v1.CreativeTemplateVariableOrBuilder> + variablesBuilder_; + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getVariablesList() { + if (variablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(variables_); + } else { + return variablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getVariablesCount() { + if (variablesBuilder_ == null) { + return variables_.size(); + } else { + return variablesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable getVariables(int index) { + if (variablesBuilder_ == null) { + return variables_.get(index); + } else { + return variablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVariables( + int index, com.google.ads.admanager.v1.CreativeTemplateVariable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.set(index, value); + onChanged(); + } else { + variablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVariables( + int index, com.google.ads.admanager.v1.CreativeTemplateVariable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.set(index, builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addVariables(com.google.ads.admanager.v1.CreativeTemplateVariable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.add(value); + onChanged(); + } else { + variablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addVariables( + int index, com.google.ads.admanager.v1.CreativeTemplateVariable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.add(index, value); + onChanged(); + } else { + variablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addVariables( + com.google.ads.admanager.v1.CreativeTemplateVariable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addVariables( + int index, com.google.ads.admanager.v1.CreativeTemplateVariable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(index, builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllVariables( + java.lang.Iterable values) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, variables_); + onChanged(); + } else { + variablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVariables() { + if (variablesBuilder_ == null) { + variables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + variablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeVariables(int index) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.remove(index); + onChanged(); + } else { + variablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.Builder getVariablesBuilder( + int index) { + return getVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariableOrBuilder getVariablesOrBuilder( + int index) { + if (variablesBuilder_ == null) { + return variables_.get(index); + } else { + return variablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getVariablesOrBuilderList() { + if (variablesBuilder_ != null) { + return variablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(variables_); + } + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.Builder addVariablesBuilder() { + return getVariablesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CreativeTemplateVariable.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.Builder addVariablesBuilder( + int index) { + return getVariablesFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.CreativeTemplateVariable.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The list of creative template variables.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getVariablesBuilderList() { + return getVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.Builder, + com.google.ads.admanager.v1.CreativeTemplateVariableOrBuilder> + getVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + variablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.Builder, + com.google.ads.admanager.v1.CreativeTemplateVariableOrBuilder>( + variables_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + variables_ = null; + } + return variablesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplate) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplate) + private static final com.google.ads.admanager.v1.CreativeTemplate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreativeTemplate(); + } + + public static com.google.ads.admanager.v1.CreativeTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreativeTemplate 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.admanager.v1.CreativeTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateEnumsProto.java new file mode 100644 index 000000000000..fb7d554595a4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateEnumsProto.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CreativeTemplateEnumsProto { + private CreativeTemplateEnumsProto() {} + + 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_admanager_v1_CreativeTemplateTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateTypeEnum_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/ads/admanager/v1/creative_templ" + + "ate_enums.proto\022\027google.ads.admanager.v1" + + "\"t\n\030CreativeTemplateTypeEnum\"X\n\024Creative" + + "TemplateType\022&\n\"CREATIVE_TEMPLATE_TYPE_U" + + "NSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\n\n\006CUSTOM\020\002\"\207" + + "\001\n\032CreativeTemplateStatusEnum\"i\n\026Creativ" + + "eTemplateStatus\022(\n$CREATIVE_TEMPLATE_STA" + + "TUS_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007DELETED" + + "\020\002\022\014\n\010INACTIVE\020\003B\316\001\n\033com.google.ads.adma" + + "nager.v1B\032CreativeTemplateEnumsProtoP\001Z@" + + "google.golang.org/genproto/googleapis/ad" + + "s/admanager/v1;admanager\252\002\027Google.Ads.Ad" + + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032G" + + "oogle::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_CreativeTemplateTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_CreativeTemplateTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateTypeEnum_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateMessagesProto.java new file mode 100644 index 000000000000..4503d6a46f3d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateMessagesProto.java @@ -0,0 +1,291 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CreativeTemplateMessagesProto { + private CreativeTemplateMessagesProto() {} + + 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_admanager_v1_CreativeTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_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" + + "8google/ads/admanager/v1/creative_template_messages.proto\022\027google.ads.admanager" + + ".v1\0325google/ads/admanager/v1/creative_template_enums.proto\032Fgoogle/ads/admanager" + + "/v1/creative_template_variable_url_type_" + + "enum.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\325\006\n" + + "\020CreativeTemplate\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\002 \001(\tB\003\340A\002H\000\210\001\001\022\035\n" + + "\013description\030\003 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" + + "\007snippet\030\004 \001(\tB\003\340A\002H\002\210\001\001\022d\n" + + "\006status\030\006 \001(\0162J.google.ads.admanager." + + "v1.CreativeTemplateStatusEnum.CreativeTemplateStatusB\003\340A\003H\003\210\001\001\022^\n" + + "\004type\030\007 \001(\0162F.google.ads.admanager.v1.CreativeTemplateT" + + "ypeEnum.CreativeTemplateTypeB\003\340A\001H\004\210\001\001\022\036\n" + + "\014interstitial\030\010 \001(\010B\003\340A\001H\005\210\001\001\022!\n" + + "\017native_eligible\030\t \001(\010B\003\340A\001H\006\210\001\001\022\'\n" + + "\025native_video_eligible\030\n" + + " \001(\010B\003\340A\001H\007\210\001\001\022\'\n" + + "\025safe_frame_compatible\030\014 \001(\010B\003\340A\001H\010\210\001\001\022I\n" + + "\tvariables\030\016" + + " \003(\01321.google.ads.admanager.v1.CreativeTemplateVariableB\003\340A\002:\223\001\352A\217\001\n" + + ")admanager.googleapis.com/CreativeTemplate\022=networ" + + "ks/{network_code}/creativeTemplates/{cre" + + "ative_template}*\021creativeTemplates2\020creativeTemplateB\017\n\r" + + "_display_nameB\016\n" + + "\014_descriptionB\n\n" + + "\010_snippetB\t\n" + + "\007_statusB\007\n" + + "\005_typeB\017\n" + + "\r" + + "_interstitialB\022\n" + + "\020_native_eligibleB\030\n" + + "\026_native_video_eligibleB\030\n" + + "\026_safe_frame_compatible\"\237\017\n" + + "\030CreativeTemplateVariable\022n\n" + + "\016asset_variable\030\005 \001(\0132O.google.ads.admanag" + + "er.v1.CreativeTemplateVariable.AssetCreativeTemplateVariableB\003\340A\001H\000\022y\n" + + "\024list_string_variable\030\007 \001(\0132T.google.ads.admanager" + + ".v1.CreativeTemplateVariable.ListStringCreativeTemplateVariableB\003\340A\001H\000\022l\n\r" + + "long_variable\030\010 \001(\0132N.google.ads.admanager.v1." + + "CreativeTemplateVariable.LongCreativeTemplateVariableB\003\340A\001H\000\022p\n" + + "\017string_variable\030\t \001(\0132P.google.ads.admanager.v1.Creative" + + "TemplateVariable.StringCreativeTemplateVariableB\003\340A\001H\000\022j\n" + + "\014url_variable\030\n" + + " \001(\0132M.google.ads.admanager.v1.CreativeTemplateV" + + "ariable.UrlCreativeTemplateVariableB\003\340A\001H\000\022\027\n" + + "\005label\030\001 \001(\tB\003\340A\002H\001\210\001\001\022%\n" + + "\023unique_display_name\030\002 \001(\tB\003\340A\003H\002\210\001\001\022\035\n" + + "\013description\030\003 \001(\tB\003\340A\002H\003\210\001\001\022\032\n" + + "\010required\030\004 \001(\010B\003\340A\001H\004\210\001\001\032\324\001\n" + + "\035AssetCreativeTemplateVariable\022q\n\n" + + "mime_types\030\001 \003(\0162X.google.ads.admanag" + + "er.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeTypeB\003\340A\001\"@\n" + + "\010MimeType\022\031\n" + + "\025MIME_TYPE_UNSPECIFIED\020\000\022\007\n" + + "\003JPG\020\001\022\007\n" + + "\003PNG\020\002\022\007\n" + + "\003GIF\020\003\032\230\003\n" + + "\"ListStringCreativeTemplateVariable\022\037\n\r" + + "default_value\030\001 \001(\tB\003\340A\001H\000\210\001\001\022\036\n" + + "\014sample_value\030\002 \001(\tB\003\340A\001H\001\210\001\001\022y\n" + + "\007choices\030\003 \003(\0132c.google.ads.adman" + + "ager.v1.CreativeTemplateVariable.ListStr" + + "ingCreativeTemplateVariable.VariableChoiceB\003\340A\001\022$\n" + + "\022allow_other_choice\030\004 \001(\010B\003\340A\001H\002\210\001\001\032V\n" + + "\016VariableChoice\022\027\n" + + "\005label\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\027\n" + + "\005value\030\002 \001(\tB\003\340A\002H\001\210\001\001B\010\n" + + "\006_labelB\010\n" + + "\006_valueB\020\n" + + "\016_default_valueB\017\n\r" + + "_sample_valueB\025\n" + + "\023_allow_other_choice\032\202\001\n" + + "\034LongCreativeTemplateVariable\022\037\n\r" + + "default_value\030\001 \001(\003B\003\340A\001H\000\210\001\001\022\036\n" + + "\014sample_value\030\002 \001(\003B\003\340A\001H\001\210\001\001B\020\n" + + "\016_default_valueB\017\n\r" + + "_sample_value\032\204\001\n" + + "\036StringCreativeTemplateVariable\022\037\n\r" + + "default_value\030\001 \001(\tB\003\340A\001H\000\210\001\001\022\036\n" + + "\014sample_value\030\002 \001(\tB\003\340A\001H\001\210\001\001B\020\n" + + "\016_default_valueB\017\n\r" + + "_sample_value\032\210\002\n" + + "\033UrlCreativeTemplateVariable\022\037\n\r" + + "default_value\030\001 \001(\tB\003\340A\001H\000\210\001\001\022\036\n" + + "\014sample_value\030\002 \001(\tB\003\340A\001H\001\210\001\001\022x\n" + + "\010url_type\030\004 \001(\0162\\.google.ads.admanager.v1" + + ".CreativeTemplateVariableUrlTypeEnum.Cre" + + "ativeTemplateVariableUrlTypeB\003\340A\001H\002\210\001\001B\020\n" + + "\016_default_valueB\017\n\r" + + "_sample_valueB\013\n" + + "\t_url_typeB\t\n" + + "\007SubTypeB\010\n" + + "\006_labelB\026\n" + + "\024_unique_display_nameB\016\n" + + "\014_descriptionB\013\n" + + "\t_requiredB\321\001\n" + + "\033com.google.ads.admanager.v1B\035CreativeTemplateMessagesProtoP\001Z@google.golang" + + ".org/genproto/googleapis/ads/admanager/v" + + "1;admanager\252\002\027Google.Ads.AdManager.V1\312\002\027" + + "Google\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.CreativeTemplateEnumsProto.getDescriptor(), + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnumProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_CreativeTemplate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_CreativeTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplate_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "Snippet", + "Status", + "Type", + "Interstitial", + "NativeEligible", + "NativeVideoEligible", + "SafeFrameCompatible", + "Variables", + }); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor, + new java.lang.String[] { + "AssetVariable", + "ListStringVariable", + "LongVariable", + "StringVariable", + "UrlVariable", + "Label", + "UniqueDisplayName", + "Description", + "Required", + "SubType", + }); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_descriptor = + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor + .getNestedTypes() + .get(0); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_descriptor, + new java.lang.String[] { + "MimeTypes", + }); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_descriptor = + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor + .getNestedTypes() + .get(1); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_descriptor, + new java.lang.String[] { + "DefaultValue", "SampleValue", "Choices", "AllowOtherChoice", + }); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_descriptor = + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_descriptor + .getNestedTypes() + .get(0); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_descriptor, + new java.lang.String[] { + "Label", "Value", + }); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_descriptor = + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor + .getNestedTypes() + .get(2); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_descriptor, + new java.lang.String[] { + "DefaultValue", "SampleValue", + }); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_descriptor = + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor + .getNestedTypes() + .get(3); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_descriptor, + new java.lang.String[] { + "DefaultValue", "SampleValue", + }); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_descriptor = + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor + .getNestedTypes() + .get(4); + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_descriptor, + new java.lang.String[] { + "DefaultValue", "SampleValue", "UrlType", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.CreativeTemplateEnumsProto.getDescriptor(); + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnumProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateName.java new file mode 100644 index 000000000000..7619bce1c32f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 CreativeTemplateName implements ResourceName { + private static final PathTemplate NETWORK_CODE_CREATIVE_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/creativeTemplates/{creative_template}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String creativeTemplate; + + @Deprecated + protected CreativeTemplateName() { + networkCode = null; + creativeTemplate = null; + } + + private CreativeTemplateName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + creativeTemplate = Preconditions.checkNotNull(builder.getCreativeTemplate()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getCreativeTemplate() { + return creativeTemplate; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CreativeTemplateName of(String networkCode, String creativeTemplate) { + return newBuilder().setNetworkCode(networkCode).setCreativeTemplate(creativeTemplate).build(); + } + + public static String format(String networkCode, String creativeTemplate) { + return newBuilder() + .setNetworkCode(networkCode) + .setCreativeTemplate(creativeTemplate) + .build() + .toString(); + } + + public static CreativeTemplateName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_CREATIVE_TEMPLATE.validatedMatch( + formattedString, "CreativeTemplateName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("creative_template")); + } + + 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 (CreativeTemplateName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_CREATIVE_TEMPLATE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (creativeTemplate != null) { + fieldMapBuilder.put("creative_template", creativeTemplate); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_CREATIVE_TEMPLATE.instantiate( + "network_code", networkCode, "creative_template", creativeTemplate); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CreativeTemplateName that = ((CreativeTemplateName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.creativeTemplate, that.creativeTemplate); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(creativeTemplate); + return h; + } + + /** Builder for networks/{network_code}/creativeTemplates/{creative_template}. */ + public static class Builder { + private String networkCode; + private String creativeTemplate; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getCreativeTemplate() { + return creativeTemplate; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setCreativeTemplate(String creativeTemplate) { + this.creativeTemplate = creativeTemplate; + return this; + } + + private Builder(CreativeTemplateName creativeTemplateName) { + this.networkCode = creativeTemplateName.networkCode; + this.creativeTemplate = creativeTemplateName.creativeTemplate; + } + + public CreativeTemplateName build() { + return new CreativeTemplateName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateOrBuilder.java new file mode 100644 index 000000000000..e9cc82667395 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateOrBuilder.java @@ -0,0 +1,457 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreativeTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the creative template.
    +   * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the creative template.
    +   * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The display name of the creative template. This has a maximum
    +   * length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Required. The display name of the creative template. This has a maximum
    +   * length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Required. The display name of the creative template. This has a maximum
    +   * length of 255 characters.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
    +   * Optional. The description of the creative template.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
    +   * Optional. The description of the creative template.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
    +   * Optional. The description of the creative template.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
    +   * Required. The code snippet of the creative template, with placeholders for
    +   * the associated variables.
    +   * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the snippet field is set. + */ + boolean hasSnippet(); + + /** + * + * + *
    +   * Required. The code snippet of the creative template, with placeholders for
    +   * the associated variables.
    +   * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snippet. + */ + java.lang.String getSnippet(); + + /** + * + * + *
    +   * Required. The code snippet of the creative template, with placeholders for
    +   * the associated variables.
    +   * 
    + * + * optional string snippet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snippet. + */ + com.google.protobuf.ByteString getSnippetBytes(); + + /** + * + * + *
    +   * Output only. The status of the creative template. This attribute is
    +   * assigned by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
    +   * Output only. The status of the creative template. This attribute is
    +   * assigned by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
    +   * Output only. The status of the creative template. This attribute is
    +   * assigned by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus getStatus(); + + /** + * + * + *
    +   * Optional. The type of the creative template. Users can only create or
    +   * update `CreativeTemplateType.CUSTOM` templates.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
    +   * Optional. The type of the creative template. Users can only create or
    +   * update `CreativeTemplateType.CUSTOM` templates.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
    +   * Optional. The type of the creative template. Users can only create or
    +   * update `CreativeTemplateType.CUSTOM` templates.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType getType(); + + /** + * + * + *
    +   * Optional. `True` if this creative template produces out-of-page creatives.
    +   * Creative templates with this setting enabled must include the viewed
    +   * impression macro.
    +   * 
    + * + * optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the interstitial field is set. + */ + boolean hasInterstitial(); + + /** + * + * + *
    +   * Optional. `True` if this creative template produces out-of-page creatives.
    +   * Creative templates with this setting enabled must include the viewed
    +   * impression macro.
    +   * 
    + * + * optional bool interstitial = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The interstitial. + */ + boolean getInterstitial(); + + /** + * + * + *
    +   * Optional. `True` if this creative template produces native-eligible
    +   * creatives.
    +   * 
    + * + * optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the nativeEligible field is set. + */ + boolean hasNativeEligible(); + + /** + * + * + *
    +   * Optional. `True` if this creative template produces native-eligible
    +   * creatives.
    +   * 
    + * + * optional bool native_eligible = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nativeEligible. + */ + boolean getNativeEligible(); + + /** + * + * + *
    +   * Optional. `True` if this creative template produces native video-eligible
    +   * creatives.
    +   * 
    + * + * optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nativeVideoEligible field is set. + */ + boolean hasNativeVideoEligible(); + + /** + * + * + *
    +   * Optional. `True` if this creative template produces native video-eligible
    +   * creatives.
    +   * 
    + * + * optional bool native_video_eligible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nativeVideoEligible. + */ + boolean getNativeVideoEligible(); + + /** + * + * + *
    +   * Optional. Whether the Creative produced is compatible for SafeFrame
    +   * rendering. This attribute defaults to `True`.
    +   * 
    + * + * optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the safeFrameCompatible field is set. + */ + boolean hasSafeFrameCompatible(); + + /** + * + * + *
    +   * Optional. Whether the Creative produced is compatible for SafeFrame
    +   * rendering. This attribute defaults to `True`.
    +   * 
    + * + * optional bool safe_frame_compatible = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The safeFrameCompatible. + */ + boolean getSafeFrameCompatible(); + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getVariablesList(); + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreativeTemplateVariable getVariables(int index); + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getVariablesCount(); + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getVariablesOrBuilderList(); + + /** + * + * + *
    +   * Required. The list of creative template variables.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable variables = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreativeTemplateVariableOrBuilder getVariablesOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceProto.java new file mode 100644 index 000000000000..53e9df4f523a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CreativeTemplateServiceProto { + private CreativeTemplateServiceProto() {} + + 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_admanager_v1_GetCreativeTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetCreativeTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_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" + + "7google/ads/admanager/v1/creative_template_service.proto\022\027google.ads.admanager." + + "v1\0328google/ads/admanager/v1/creative_tem" + + "plate_messages.proto\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api/resource.proto\"]\n" + + "\032GetCreativeTemplateRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")admanager.googleapis.com/CreativeTemplate\"\310\001\n" + + "\034ListCreativeTemplatesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\223\001\n" + + "\035ListCreativeTemplatesResponse\022E\n" + + "\022creative_templates\030\001" + + " \003(\0132).google.ads.admanager.v1.CreativeTemplate\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\331\003\n" + + "\027CreativeTemplateService\022\257\001\n" + + "\023GetCreativeTemplate\0223.google.ads.admanager.v1.GetCreativeTemplat" + + "eRequest\032).google.ads.admanager.v1.Creat" + + "iveTemplate\"8\332A\004name\202\323\344\223\002+\022)/v1/{name=networks/*/creativeTemplates/*}\022\302\001\n" + + "\025ListCreativeTemplates\0225.google.ads.admanager.v" + + "1.ListCreativeTemplatesRequest\0326.google.ads.admanager.v1.ListCreativeTemplatesRe" + + "sponse\":\332A\006parent\202\323\344\223\002+\022)/v1/{parent=net" + + "works/*}/creativeTemplates\032G\312A\030admanager" + + ".googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\320\001\n" + + "\033com.google.ads.admanager.v1B\034CreativeTemplateServiceProt" + + "oP\001Z@google.golang.org/genproto/googleap" + + "is/ads/admanager/v1;admanager\252\002\027Google.A" + + "ds.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V" + + "1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.CreativeTemplateMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetCreativeTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetCreativeTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetCreativeTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_descriptor, + new java.lang.String[] { + "CreativeTemplates", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.CreativeTemplateMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateStatusEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateStatusEnum.java new file mode 100644 index 000000000000..8507787b493f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateStatusEnum.java @@ -0,0 +1,628 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [CreativeTemplateStatus][google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplateStatusEnum} + */ +public final class CreativeTemplateStatusEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateStatusEnum) + CreativeTemplateStatusEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreativeTemplateStatusEnum.newBuilder() to construct. + private CreativeTemplateStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreativeTemplateStatusEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreativeTemplateStatusEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.class, + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.Builder.class); + } + + /** + * + * + *
    +   * Describes status of the creative template
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus} + */ + public enum CreativeTemplateStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CREATIVE_TEMPLATE_STATUS_UNSPECIFIED = 0; + */ + CREATIVE_TEMPLATE_STATUS_UNSPECIFIED(0), + /** + * + * + *
    +     * The CreativeTemplate is active
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * The CreativeTemplate is deleted. Creatives created from this
    +     * CreativeTemplate can no longer serve.
    +     * 
    + * + * DELETED = 2; + */ + DELETED(2), + /** + * + * + *
    +     * The CreativeTemplate is inactive. Users cannot create new creatives
    +     * from this template, but existing ones can be edited and continue to serve
    +     * 
    + * + * INACTIVE = 3; + */ + INACTIVE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CREATIVE_TEMPLATE_STATUS_UNSPECIFIED = 0; + */ + public static final int CREATIVE_TEMPLATE_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The CreativeTemplate is active
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
    +     * The CreativeTemplate is deleted. Creatives created from this
    +     * CreativeTemplate can no longer serve.
    +     * 
    + * + * DELETED = 2; + */ + public static final int DELETED_VALUE = 2; + + /** + * + * + *
    +     * The CreativeTemplate is inactive. Users cannot create new creatives
    +     * from this template, but existing ones can be edited and continue to serve
    +     * 
    + * + * INACTIVE = 3; + */ + public static final int INACTIVE_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 CreativeTemplateStatus 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 CreativeTemplateStatus forNumber(int value) { + switch (value) { + case 0: + return CREATIVE_TEMPLATE_STATUS_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return DELETED; + case 3: + return INACTIVE; + 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 CreativeTemplateStatus findValueByNumber(int number) { + return CreativeTemplateStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateStatusEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CreativeTemplateStatus[] VALUES = values(); + + public static CreativeTemplateStatus 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 CreativeTemplateStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus) + } + + 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.admanager.v1.CreativeTemplateStatusEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateStatusEnum other = + (com.google.ads.admanager.v1.CreativeTemplateStatusEnum) 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.admanager.v1.CreativeTemplateStatusEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum 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.admanager.v1.CreativeTemplateStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum 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.admanager.v1.CreativeTemplateStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.CreativeTemplateStatusEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [CreativeTemplateStatus][google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplateStatusEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateStatusEnum) + com.google.ads.admanager.v1.CreativeTemplateStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.class, + com.google.ads.admanager.v1.CreativeTemplateStatusEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreativeTemplateStatusEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateStatusEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateStatusEnum build() { + com.google.ads.admanager.v1.CreativeTemplateStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateStatusEnum buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateStatusEnum result = + new com.google.ads.admanager.v1.CreativeTemplateStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreativeTemplateStatusEnum) { + return mergeFrom((com.google.ads.admanager.v1.CreativeTemplateStatusEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreativeTemplateStatusEnum other) { + if (other == com.google.ads.admanager.v1.CreativeTemplateStatusEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateStatusEnum) + private static final com.google.ads.admanager.v1.CreativeTemplateStatusEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreativeTemplateStatusEnum(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreativeTemplateStatusEnum 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.admanager.v1.CreativeTemplateStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateStatusEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateStatusEnumOrBuilder.java new file mode 100644 index 000000000000..ac8dc64830ad --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateStatusEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreativeTemplateStatusEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateStatusEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateTypeEnum.java new file mode 100644 index 000000000000..664d58591c4a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateTypeEnum.java @@ -0,0 +1,602 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [CreativeTemplateType][google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplateTypeEnum} + */ +public final class CreativeTemplateTypeEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateTypeEnum) + CreativeTemplateTypeEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreativeTemplateTypeEnum.newBuilder() to construct. + private CreativeTemplateTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreativeTemplateTypeEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreativeTemplateTypeEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.class, + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.Builder.class); + } + + /** + * + * + *
    +   * Describes type of the creative template.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType} + */ + public enum CreativeTemplateType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CREATIVE_TEMPLATE_TYPE_UNSPECIFIED = 0; + */ + CREATIVE_TEMPLATE_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Creative templates that are included in Ad Manager by default.
    +     * 
    + * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
    +     * Creative templates created by an administrator or other user in the
    +     * network.
    +     * 
    + * + * CUSTOM = 2; + */ + CUSTOM(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CREATIVE_TEMPLATE_TYPE_UNSPECIFIED = 0; + */ + public static final int CREATIVE_TEMPLATE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Creative templates that are included in Ad Manager by default.
    +     * 
    + * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + + /** + * + * + *
    +     * Creative templates created by an administrator or other user in the
    +     * network.
    +     * 
    + * + * CUSTOM = 2; + */ + public static final int CUSTOM_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 CreativeTemplateType 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 CreativeTemplateType forNumber(int value) { + switch (value) { + case 0: + return CREATIVE_TEMPLATE_TYPE_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return CUSTOM; + 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 CreativeTemplateType findValueByNumber(int number) { + return CreativeTemplateType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateTypeEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CreativeTemplateType[] VALUES = values(); + + public static CreativeTemplateType 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 CreativeTemplateType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType) + } + + 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.admanager.v1.CreativeTemplateTypeEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateTypeEnum other = + (com.google.ads.admanager.v1.CreativeTemplateTypeEnum) 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.admanager.v1.CreativeTemplateTypeEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum 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.admanager.v1.CreativeTemplateTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum 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.admanager.v1.CreativeTemplateTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CreativeTemplateTypeEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [CreativeTemplateType][google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplateTypeEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateTypeEnum) + com.google.ads.admanager.v1.CreativeTemplateTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.class, + com.google.ads.admanager.v1.CreativeTemplateTypeEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreativeTemplateTypeEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.CreativeTemplateEnumsProto + .internal_static_google_ads_admanager_v1_CreativeTemplateTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateTypeEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateTypeEnum build() { + com.google.ads.admanager.v1.CreativeTemplateTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateTypeEnum buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateTypeEnum result = + new com.google.ads.admanager.v1.CreativeTemplateTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreativeTemplateTypeEnum) { + return mergeFrom((com.google.ads.admanager.v1.CreativeTemplateTypeEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreativeTemplateTypeEnum other) { + if (other == com.google.ads.admanager.v1.CreativeTemplateTypeEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateTypeEnum) + private static final com.google.ads.admanager.v1.CreativeTemplateTypeEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreativeTemplateTypeEnum(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreativeTemplateTypeEnum 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.admanager.v1.CreativeTemplateTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateTypeEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateTypeEnumOrBuilder.java new file mode 100644 index 000000000000..4f7a0978cc7e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateTypeEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreativeTemplateTypeEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateTypeEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariable.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariable.java new file mode 100644 index 000000000000..1612d829da4f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariable.java @@ -0,0 +1,10785 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents a variable defined in a creative template.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplateVariable} + */ +public final class CreativeTemplateVariable extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateVariable) + CreativeTemplateVariableOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreativeTemplateVariable.newBuilder() to construct. + private CreativeTemplateVariable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreativeTemplateVariable() { + label_ = ""; + uniqueDisplayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreativeTemplateVariable(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.class, + com.google.ads.admanager.v1.CreativeTemplateVariable.Builder.class); + } + + public interface AssetCreativeTemplateVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the mimeTypes. + */ + java.util.List< + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType> + getMimeTypesList(); + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of mimeTypes. + */ + int getMimeTypesCount(); + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The mimeTypes at the given index. + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType + getMimeTypes(int index); + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for mimeTypes. + */ + java.util.List getMimeTypesValueList(); + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of mimeTypes at the given index. + */ + int getMimeTypesValue(int index); + } + + /** + * + * + *
    +   * Represents a file asset variable defined in a creative template.
    +   *
    +   * Use [AssetCreativeTemplateVariableValue][] to specify the value for this
    +   * variable when creating a [TemplateCreative][] from a
    +   * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +   * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable} + */ + public static final class AssetCreativeTemplateVariable + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + AssetCreativeTemplateVariableOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AssetCreativeTemplateVariable.newBuilder() to construct. + private AssetCreativeTemplateVariable( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AssetCreativeTemplateVariable() { + mimeTypes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetCreativeTemplateVariable(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .class, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .Builder.class); + } + + /** + * + * + *
    +     * Different MIME types that the asset variable supports.
    +     * 
    + * + * Protobuf enum {@code + * google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType} + */ + public enum MimeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * MIME_TYPE_UNSPECIFIED = 0; + */ + MIME_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +       * The `image/jpeg` MIME type.
    +       * 
    + * + * JPG = 1; + */ + JPG(1), + /** + * + * + *
    +       * The `image/png` MIME type.
    +       * 
    + * + * PNG = 2; + */ + PNG(2), + /** + * + * + *
    +       * The `image/gif` MIME type.
    +       * 
    + * + * GIF = 3; + */ + GIF(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * MIME_TYPE_UNSPECIFIED = 0; + */ + public static final int MIME_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +       * The `image/jpeg` MIME type.
    +       * 
    + * + * JPG = 1; + */ + public static final int JPG_VALUE = 1; + + /** + * + * + *
    +       * The `image/png` MIME type.
    +       * 
    + * + * PNG = 2; + */ + public static final int PNG_VALUE = 2; + + /** + * + * + *
    +       * The `image/gif` MIME type.
    +       * 
    + * + * GIF = 3; + */ + public static final int GIF_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 MimeType 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 MimeType forNumber(int value) { + switch (value) { + case 0: + return MIME_TYPE_UNSPECIFIED; + case 1: + return JPG; + case 2: + return PNG; + case 3: + return GIF; + 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 MimeType findValueByNumber(int number) { + return MimeType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MimeType[] VALUES = values(); + + public static MimeType 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 MimeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType) + } + + public static final int MIME_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mimeTypes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType> + mimeTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType>() { + public com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariable.MimeType + convert(java.lang.Integer from) { + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType + result = + com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariable.MimeType.forNumber(from); + return result == null + ? com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariable.MimeType.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the mimeTypes. + */ + @java.lang.Override + public java.util.List< + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType> + getMimeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType>(mimeTypes_, mimeTypes_converter_); + } + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of mimeTypes. + */ + @java.lang.Override + public int getMimeTypesCount() { + return mimeTypes_.size(); + } + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The mimeTypes at the given index. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType + getMimeTypes(int index) { + return mimeTypes_converter_.convert(mimeTypes_.get(index)); + } + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for mimeTypes. + */ + @java.lang.Override + public java.util.List getMimeTypesValueList() { + return mimeTypes_; + } + + /** + * + * + *
    +     * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +     * are allowed.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of mimeTypes at the given index. + */ + @java.lang.Override + public int getMimeTypesValue(int index) { + return mimeTypes_.get(index); + } + + private int mimeTypesMemoizedSerializedSize; + + 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 (getMimeTypesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(mimeTypesMemoizedSerializedSize); + } + for (int i = 0; i < mimeTypes_.size(); i++) { + output.writeEnumNoTag(mimeTypes_.get(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 < mimeTypes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(mimeTypes_.get(i)); + } + size += dataSize; + if (!getMimeTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + mimeTypesMemoizedSerializedSize = dataSize; + } + 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.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable other = + (com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) obj; + + if (!mimeTypes_.equals(other.mimeTypes_)) 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 (getMimeTypesCount() > 0) { + hash = (37 * hash) + MIME_TYPES_FIELD_NUMBER; + hash = (53 * hash) + mimeTypes_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Represents a file asset variable defined in a creative template.
    +     *
    +     * Use [AssetCreativeTemplateVariableValue][] to specify the value for this
    +     * variable when creating a [TemplateCreative][] from a
    +     * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +     * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .class, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_AssetCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + build() { + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable result = + new com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + result) { + if (((bitField0_ & 0x00000001) != 0)) { + mimeTypes_ = java.util.Collections.unmodifiableList(mimeTypes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mimeTypes_ = mimeTypes_; + } + + private void buildPartial0( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) { + return mergeFrom( + (com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + other) { + if (other + == com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .getDefaultInstance()) return this; + if (!other.mimeTypes_.isEmpty()) { + if (mimeTypes_.isEmpty()) { + mimeTypes_ = other.mimeTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMimeTypesIsMutable(); + mimeTypes_.addAll(other.mimeTypes_); + } + 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 8: + { + int tmpRaw = input.readEnum(); + ensureMimeTypesIsMutable(); + mimeTypes_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureMimeTypesIsMutable(); + mimeTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + 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 mimeTypes_ = java.util.Collections.emptyList(); + + private void ensureMimeTypesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mimeTypes_ = new java.util.ArrayList(mimeTypes_); + bitField0_ |= 0x00000001; + } + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the mimeTypes. + */ + public java.util.List< + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType> + getMimeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType>(mimeTypes_, mimeTypes_converter_); + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of mimeTypes. + */ + public int getMimeTypesCount() { + return mimeTypes_.size(); + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The mimeTypes at the given index. + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType + getMimeTypes(int index) { + return mimeTypes_converter_.convert(mimeTypes_.get(index)); + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The mimeTypes to set. + * @return This builder for chaining. + */ + public Builder setMimeTypes( + int index, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMimeTypesIsMutable(); + mimeTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mimeTypes to add. + * @return This builder for chaining. + */ + public Builder addMimeTypes( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMimeTypesIsMutable(); + mimeTypes_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The mimeTypes to add. + * @return This builder for chaining. + */ + public Builder addAllMimeTypes( + java.lang.Iterable< + ? extends + com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariable.MimeType> + values) { + ensureMimeTypesIsMutable(); + for (com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .MimeType + value : values) { + mimeTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMimeTypes() { + mimeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for mimeTypes. + */ + public java.util.List getMimeTypesValueList() { + return java.util.Collections.unmodifiableList(mimeTypes_); + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of mimeTypes at the given index. + */ + public int getMimeTypesValue(int index) { + return mimeTypes_.get(index); + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for mimeTypes to set. + * @return This builder for chaining. + */ + public Builder setMimeTypesValue(int index, int value) { + ensureMimeTypesIsMutable(); + mimeTypes_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mimeTypes to add. + * @return This builder for chaining. + */ + public Builder addMimeTypesValue(int value) { + ensureMimeTypesIsMutable(); + mimeTypes_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The set of allowed MIME types. If unspecified, all MIME types
    +       * are allowed.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.MimeType mime_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for mimeTypes to add. + * @return This builder for chaining. + */ + public Builder addAllMimeTypesValue(java.lang.Iterable values) { + ensureMimeTypesIsMutable(); + for (int value : values) { + mimeTypes_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + private static final com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariable + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetCreativeTemplateVariable 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.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ListStringCreativeTemplateVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + java.lang.String getDefaultValue(); + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultValue. + */ + com.google.protobuf.ByteString getDefaultValueBytes(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + boolean hasSampleValue(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + java.lang.String getSampleValue(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sampleValue. + */ + com.google.protobuf.ByteString getSampleValueBytes(); + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice> + getChoicesList(); + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + getChoices(int index); + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getChoicesCount(); + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoiceOrBuilder> + getChoicesOrBuilderList(); + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoiceOrBuilder + getChoicesOrBuilder(int index); + + /** + * + * + *
    +     * Optional. `True` if a user can specify an 'other' value. For example, if
    +     * a variable called backgroundColor is defined as a list with values: red,
    +     * green, blue, this boolean can be set to allow a user to enter a value not
    +     * on the list such as purple.
    +     * 
    + * + * optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the allowOtherChoice field is set. + */ + boolean hasAllowOtherChoice(); + + /** + * + * + *
    +     * Optional. `True` if a user can specify an 'other' value. For example, if
    +     * a variable called backgroundColor is defined as a list with values: red,
    +     * green, blue, this boolean can be set to allow a user to enter a value not
    +     * on the list such as purple.
    +     * 
    + * + * optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowOtherChoice. + */ + boolean getAllowOtherChoice(); + } + + /** + * + * + *
    +   * Represents a list variable defined in a creative template. This is similar
    +   * to
    +   * [StringCreativeTemplateVariable][google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable],
    +   * except that there are possible choices to choose from.
    +   *
    +   * Use [StringCreativeTemplateVariableValue][] to specify the value
    +   * for this variable when creating a [TemplateCreative][] from a
    +   * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +   * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable} + */ + public static final class ListStringCreativeTemplateVariable + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable) + ListStringCreativeTemplateVariableOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListStringCreativeTemplateVariable.newBuilder() to construct. + private ListStringCreativeTemplateVariable( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListStringCreativeTemplateVariable() { + defaultValue_ = ""; + sampleValue_ = ""; + choices_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListStringCreativeTemplateVariable(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.class, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.Builder.class); + } + + public interface VariableChoiceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Required. A label is displayed to users when creating a
    +       * [TemplateCreative][]. This attribute is intended to be more descriptive
    +       * than value. This attribute has a maximum length of 255 characters.
    +       * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the label field is set. + */ + boolean hasLabel(); + + /** + * + * + *
    +       * Required. A label is displayed to users when creating a
    +       * [TemplateCreative][]. This attribute is intended to be more descriptive
    +       * than value. This attribute has a maximum length of 255 characters.
    +       * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * + * + *
    +       * Required. A label is displayed to users when creating a
    +       * [TemplateCreative][]. This attribute is intended to be more descriptive
    +       * than value. This attribute has a maximum length of 255 characters.
    +       * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + + /** + * + * + *
    +       * Required. When creating a [TemplateCreative][], the value in
    +       * [StringCreativeTemplateVariableValue][] should match this value, if you
    +       * intend to select this value. This attribute has a maximum length of 255
    +       * characters.
    +       * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + + /** + * + * + *
    +       * Required. When creating a [TemplateCreative][], the value in
    +       * [StringCreativeTemplateVariableValue][] should match this value, if you
    +       * intend to select this value. This attribute has a maximum length of 255
    +       * characters.
    +       * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
    +       * Required. When creating a [TemplateCreative][], the value in
    +       * [StringCreativeTemplateVariableValue][] should match this value, if you
    +       * intend to select this value. This attribute has a maximum length of 255
    +       * characters.
    +       * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + * + * + *
    +     * Stores variable choices selectable by users.
    +     * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice} + */ + public static final class VariableChoice extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice) + VariableChoiceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VariableChoice.newBuilder() to construct. + private VariableChoice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VariableChoice() { + label_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VariableChoice(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.class, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.Builder.class); + } + + private int bitField0_; + public static final int LABEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + + /** + * + * + *
    +       * Required. A label is displayed to users when creating a
    +       * [TemplateCreative][]. This attribute is intended to be more descriptive
    +       * than value. This attribute has a maximum length of 255 characters.
    +       * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the label field is set. + */ + @java.lang.Override + public boolean hasLabel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Required. A label is displayed to users when creating a
    +       * [TemplateCreative][]. This attribute is intended to be more descriptive
    +       * than value. This attribute has a maximum length of 255 characters.
    +       * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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(); + label_ = s; + return s; + } + } + + /** + * + * + *
    +       * Required. A label is displayed to users when creating a
    +       * [TemplateCreative][]. This attribute is intended to be more descriptive
    +       * than value. This attribute has a maximum length of 255 characters.
    +       * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + + /** + * + * + *
    +       * Required. When creating a [TemplateCreative][], the value in
    +       * [StringCreativeTemplateVariableValue][] should match this value, if you
    +       * intend to select this value. This attribute has a maximum length of 255
    +       * characters.
    +       * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Required. When creating a [TemplateCreative][], the value in
    +       * [StringCreativeTemplateVariableValue][] should match this value, if you
    +       * intend to select this value. This attribute has a maximum length of 255
    +       * characters.
    +       * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + + /** + * + * + *
    +       * Required. When creating a [TemplateCreative][], the value in
    +       * [StringCreativeTemplateVariableValue][] should match this value, if you
    +       * intend to select this value. This attribute has a maximum length of 255
    +       * characters.
    +       * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + 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.GeneratedMessageV3.computeStringSize(1, label_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + 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.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + other = + (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice) + obj; + + if (hasLabel() != other.hasLabel()) return false; + if (hasLabel()) { + if (!getLabel().equals(other.getLabel())) return false; + } + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) 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 (hasLabel()) { + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + 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.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + 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.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +       * Stores variable choices selectable by users.
    +       * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice) + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.class, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + label_ = ""; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_VariableChoice_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + build() { + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + result = + new com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.label_ = label_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice) { + return mergeFrom( + (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + other) { + if (other + == com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.getDefaultInstance()) + return this; + if (other.hasLabel()) { + label_ = other.label_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasValue()) { + value_ = other.value_; + 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: + { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = 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 label_ = ""; + + /** + * + * + *
    +         * Required. A label is displayed to users when creating a
    +         * [TemplateCreative][]. This attribute is intended to be more descriptive
    +         * than value. This attribute has a maximum length of 255 characters.
    +         * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the label field is set. + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +         * Required. A label is displayed to users when creating a
    +         * [TemplateCreative][]. This attribute is intended to be more descriptive
    +         * than value. This attribute has a maximum length of 255 characters.
    +         * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +         * Required. A label is displayed to users when creating a
    +         * [TemplateCreative][]. This attribute is intended to be more descriptive
    +         * than value. This attribute has a maximum length of 255 characters.
    +         * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +         * Required. A label is displayed to users when creating a
    +         * [TemplateCreative][]. This attribute is intended to be more descriptive
    +         * than value. This attribute has a maximum length of 255 characters.
    +         * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. A label is displayed to users when creating a
    +         * [TemplateCreative][]. This attribute is intended to be more descriptive
    +         * than value. This attribute has a maximum length of 255 characters.
    +         * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. A label is displayed to users when creating a
    +         * [TemplateCreative][]. This attribute is intended to be more descriptive
    +         * than value. This attribute has a maximum length of 255 characters.
    +         * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + * + * + *
    +         * Required. When creating a [TemplateCreative][], the value in
    +         * [StringCreativeTemplateVariableValue][] should match this value, if you
    +         * intend to select this value. This attribute has a maximum length of 255
    +         * characters.
    +         * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +         * Required. When creating a [TemplateCreative][], the value in
    +         * [StringCreativeTemplateVariableValue][] should match this value, if you
    +         * intend to select this value. This attribute has a maximum length of 255
    +         * characters.
    +         * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +         * Required. When creating a [TemplateCreative][], the value in
    +         * [StringCreativeTemplateVariableValue][] should match this value, if you
    +         * intend to select this value. This attribute has a maximum length of 255
    +         * characters.
    +         * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +         * Required. When creating a [TemplateCreative][], the value in
    +         * [StringCreativeTemplateVariableValue][] should match this value, if you
    +         * intend to select this value. This attribute has a maximum length of 255
    +         * characters.
    +         * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. When creating a [TemplateCreative][], the value in
    +         * [StringCreativeTemplateVariableValue][] should match this value, if you
    +         * intend to select this value. This attribute has a maximum length of 255
    +         * characters.
    +         * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. When creating a [TemplateCreative][], the value in
    +         * [StringCreativeTemplateVariableValue][] should match this value, if you
    +         * intend to select this value. This attribute has a maximum length of 255
    +         * characters.
    +         * 
    + * + * optional string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice) + private static final com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VariableChoice 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.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DEFAULT_VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultValue_ = ""; + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + @java.lang.Override + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + 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(); + defaultValue_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAMPLE_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sampleValue_ = ""; + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + @java.lang.Override + public boolean hasSampleValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + @java.lang.Override + public java.lang.String getSampleValue() { + java.lang.Object ref = sampleValue_; + 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(); + sampleValue_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sampleValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSampleValueBytes() { + java.lang.Object ref = sampleValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHOICES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice> + choices_; + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice> + getChoicesList() { + return choices_; + } + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoiceOrBuilder> + getChoicesOrBuilderList() { + return choices_; + } + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getChoicesCount() { + return choices_.size(); + } + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + getChoices(int index) { + return choices_.get(index); + } + + /** + * + * + *
    +     * Optional. The selectable values that the user can choose from.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoiceOrBuilder + getChoicesOrBuilder(int index) { + return choices_.get(index); + } + + public static final int ALLOW_OTHER_CHOICE_FIELD_NUMBER = 4; + private boolean allowOtherChoice_ = false; + + /** + * + * + *
    +     * Optional. `True` if a user can specify an 'other' value. For example, if
    +     * a variable called backgroundColor is defined as a list with values: red,
    +     * green, blue, this boolean can be set to allow a user to enter a value not
    +     * on the list such as purple.
    +     * 
    + * + * optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the allowOtherChoice field is set. + */ + @java.lang.Override + public boolean hasAllowOtherChoice() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. `True` if a user can specify an 'other' value. For example, if
    +     * a variable called backgroundColor is defined as a list with values: red,
    +     * green, blue, this boolean can be set to allow a user to enter a value not
    +     * on the list such as purple.
    +     * 
    + * + * optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowOtherChoice. + */ + @java.lang.Override + public boolean getAllowOtherChoice() { + return allowOtherChoice_; + } + + 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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sampleValue_); + } + for (int i = 0; i < choices_.size(); i++) { + output.writeMessage(3, choices_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(4, allowOtherChoice_); + } + 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.GeneratedMessageV3.computeStringSize(1, defaultValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sampleValue_); + } + for (int i = 0; i < choices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, choices_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowOtherChoice_); + } + 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.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + other = + (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) + obj; + + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (hasSampleValue() != other.hasSampleValue()) return false; + if (hasSampleValue()) { + if (!getSampleValue().equals(other.getSampleValue())) return false; + } + if (!getChoicesList().equals(other.getChoicesList())) return false; + if (hasAllowOtherChoice() != other.hasAllowOtherChoice()) return false; + if (hasAllowOtherChoice()) { + if (getAllowOtherChoice() != other.getAllowOtherChoice()) 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 (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + if (hasSampleValue()) { + hash = (37 * hash) + SAMPLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getSampleValue().hashCode(); + } + if (getChoicesCount() > 0) { + hash = (37 * hash) + CHOICES_FIELD_NUMBER; + hash = (53 * hash) + getChoicesList().hashCode(); + } + if (hasAllowOtherChoice()) { + hash = (37 * hash) + ALLOW_OTHER_CHOICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowOtherChoice()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Represents a list variable defined in a creative template. This is similar
    +     * to
    +     * [StringCreativeTemplateVariable][google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable],
    +     * except that there are possible choices to choose from.
    +     *
    +     * Use [StringCreativeTemplateVariableValue][] to specify the value
    +     * for this variable when creating a [TemplateCreative][] from a
    +     * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +     * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable) + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.class, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultValue_ = ""; + sampleValue_ = ""; + if (choicesBuilder_ == null) { + choices_ = java.util.Collections.emptyList(); + } else { + choices_ = null; + choicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + allowOtherChoice_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_ListStringCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + build() { + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + result = + new com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + result) { + if (choicesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + choices_ = java.util.Collections.unmodifiableList(choices_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.choices_ = choices_; + } else { + result.choices_ = choicesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleValue_ = sampleValue_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowOtherChoice_ = allowOtherChoice_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) { + return mergeFrom( + (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + other) { + if (other + == com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.getDefaultInstance()) return this; + if (other.hasDefaultValue()) { + defaultValue_ = other.defaultValue_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSampleValue()) { + sampleValue_ = other.sampleValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (choicesBuilder_ == null) { + if (!other.choices_.isEmpty()) { + if (choices_.isEmpty()) { + choices_ = other.choices_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureChoicesIsMutable(); + choices_.addAll(other.choices_); + } + onChanged(); + } + } else { + if (!other.choices_.isEmpty()) { + if (choicesBuilder_.isEmpty()) { + choicesBuilder_.dispose(); + choicesBuilder_ = null; + choices_ = other.choices_; + bitField0_ = (bitField0_ & ~0x00000004); + choicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChoicesFieldBuilder() + : null; + } else { + choicesBuilder_.addAllMessages(other.choices_); + } + } + } + if (other.hasAllowOtherChoice()) { + setAllowOtherChoice(other.getAllowOtherChoice()); + } + 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: + { + defaultValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sampleValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice + m = + input.readMessage( + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.parser(), + extensionRegistry); + if (choicesBuilder_ == null) { + ensureChoicesIsMutable(); + choices_.add(m); + } else { + choicesBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + allowOtherChoice_ = 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 defaultValue_ = ""; + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultValue. + */ + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + defaultValue_ = getDefaultInstance().getDefaultValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sampleValue_ = ""; + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + public boolean hasSampleValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + public java.lang.String getSampleValue() { + java.lang.Object ref = sampleValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sampleValue. + */ + public com.google.protobuf.ByteString getSampleValueBytes() { + java.lang.Object ref = sampleValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sampleValue to set. + * @return This builder for chaining. + */ + public Builder setSampleValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sampleValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSampleValue() { + sampleValue_ = getDefaultInstance().getSampleValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sampleValue to set. + * @return This builder for chaining. + */ + public Builder setSampleValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sampleValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List< + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice> + choices_ = java.util.Collections.emptyList(); + + private void ensureChoicesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + choices_ = + new java.util.ArrayList< + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice>(choices_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoiceOrBuilder> + choicesBuilder_; + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice> + getChoicesList() { + if (choicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(choices_); + } else { + return choicesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getChoicesCount() { + if (choicesBuilder_ == null) { + return choices_.size(); + } else { + return choicesBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + getChoices(int index) { + if (choicesBuilder_ == null) { + return choices_.get(index); + } else { + return choicesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setChoices( + int index, + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + value) { + if (choicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChoicesIsMutable(); + choices_.set(index, value); + onChanged(); + } else { + choicesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setChoices( + int index, + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice.Builder + builderForValue) { + if (choicesBuilder_ == null) { + ensureChoicesIsMutable(); + choices_.set(index, builderForValue.build()); + onChanged(); + } else { + choicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChoices( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + value) { + if (choicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChoicesIsMutable(); + choices_.add(value); + onChanged(); + } else { + choicesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChoices( + int index, + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice + value) { + if (choicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChoicesIsMutable(); + choices_.add(index, value); + onChanged(); + } else { + choicesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChoices( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice.Builder + builderForValue) { + if (choicesBuilder_ == null) { + ensureChoicesIsMutable(); + choices_.add(builderForValue.build()); + onChanged(); + } else { + choicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChoices( + int index, + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice.Builder + builderForValue) { + if (choicesBuilder_ == null) { + ensureChoicesIsMutable(); + choices_.add(index, builderForValue.build()); + onChanged(); + } else { + choicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllChoices( + java.lang.Iterable< + ? extends + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice> + values) { + if (choicesBuilder_ == null) { + ensureChoicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, choices_); + onChanged(); + } else { + choicesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearChoices() { + if (choicesBuilder_ == null) { + choices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + choicesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeChoices(int index) { + if (choicesBuilder_ == null) { + ensureChoicesIsMutable(); + choices_.remove(index); + onChanged(); + } else { + choicesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice.Builder + getChoicesBuilder(int index) { + return getChoicesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoiceOrBuilder + getChoicesOrBuilder(int index) { + if (choicesBuilder_ == null) { + return choices_.get(index); + } else { + return choicesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoiceOrBuilder> + getChoicesOrBuilderList() { + if (choicesBuilder_ != null) { + return choicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(choices_); + } + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice.Builder + addChoicesBuilder() { + return getChoicesFieldBuilder() + .addBuilder( + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.getDefaultInstance()); + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .VariableChoice.Builder + addChoicesBuilder(int index) { + return getChoicesFieldBuilder() + .addBuilder( + index, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.getDefaultInstance()); + } + + /** + * + * + *
    +       * Optional. The selectable values that the user can choose from.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice choices = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.Builder> + getChoicesBuilderList() { + return getChoicesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoiceOrBuilder> + getChoicesFieldBuilder() { + if (choicesBuilder_ == null) { + choicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoice.Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.VariableChoiceOrBuilder>( + choices_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + choices_ = null; + } + return choicesBuilder_; + } + + private boolean allowOtherChoice_; + + /** + * + * + *
    +       * Optional. `True` if a user can specify an 'other' value. For example, if
    +       * a variable called backgroundColor is defined as a list with values: red,
    +       * green, blue, this boolean can be set to allow a user to enter a value not
    +       * on the list such as purple.
    +       * 
    + * + * optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowOtherChoice field is set. + */ + @java.lang.Override + public boolean hasAllowOtherChoice() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +       * Optional. `True` if a user can specify an 'other' value. For example, if
    +       * a variable called backgroundColor is defined as a list with values: red,
    +       * green, blue, this boolean can be set to allow a user to enter a value not
    +       * on the list such as purple.
    +       * 
    + * + * optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowOtherChoice. + */ + @java.lang.Override + public boolean getAllowOtherChoice() { + return allowOtherChoice_; + } + + /** + * + * + *
    +       * Optional. `True` if a user can specify an 'other' value. For example, if
    +       * a variable called backgroundColor is defined as a list with values: red,
    +       * green, blue, this boolean can be set to allow a user to enter a value not
    +       * on the list such as purple.
    +       * 
    + * + * optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowOtherChoice to set. + * @return This builder for chaining. + */ + public Builder setAllowOtherChoice(boolean value) { + + allowOtherChoice_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. `True` if a user can specify an 'other' value. For example, if
    +       * a variable called backgroundColor is defined as a list with values: red,
    +       * green, blue, this boolean can be set to allow a user to enter a value not
    +       * on the list such as purple.
    +       * 
    + * + * optional bool allow_other_choice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowOtherChoice() { + bitField0_ = (bitField0_ & ~0x00000008); + allowOtherChoice_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable) + private static final com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStringCreativeTemplateVariable 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.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LongCreativeTemplateVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + long getDefaultValue(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + boolean hasSampleValue(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + long getSampleValue(); + } + + /** + * + * + *
    +   * Represents a long variable defined in a creative template.
    +   *
    +   * Use [LongCreativeTemplateVariableValue][] to specify the value
    +   * for this variable when creating [TemplateCreative][] from a
    +   * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +   * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable} + */ + public static final class LongCreativeTemplateVariable + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + LongCreativeTemplateVariableOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LongCreativeTemplateVariable.newBuilder() to construct. + private LongCreativeTemplateVariable( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LongCreativeTemplateVariable() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LongCreativeTemplateVariable(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .class, + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .Builder.class); + } + + private int bitField0_; + public static final int DEFAULT_VALUE_FIELD_NUMBER = 1; + private long defaultValue_ = 0L; + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + @java.lang.Override + public long getDefaultValue() { + return defaultValue_; + } + + public static final int SAMPLE_VALUE_FIELD_NUMBER = 2; + private long sampleValue_ = 0L; + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + @java.lang.Override + public boolean hasSampleValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + @java.lang.Override + public long getSampleValue() { + return sampleValue_; + } + + 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.writeInt64(1, defaultValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, sampleValue_); + } + 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.computeInt64Size(1, defaultValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sampleValue_); + } + 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.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable other = + (com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) obj; + + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (getDefaultValue() != other.getDefaultValue()) return false; + } + if (hasSampleValue() != other.hasSampleValue()) return false; + if (hasSampleValue()) { + if (getSampleValue() != other.getSampleValue()) 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 (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDefaultValue()); + } + if (hasSampleValue()) { + hash = (37 * hash) + SAMPLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSampleValue()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Represents a long variable defined in a creative template.
    +     *
    +     * Use [LongCreativeTemplateVariableValue][] to specify the value
    +     * for this variable when creating [TemplateCreative][] from a
    +     * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +     * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .class, + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultValue_ = 0L; + sampleValue_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_LongCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + build() { + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable result = + new com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleValue_ = sampleValue_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) { + return mergeFrom( + (com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable other) { + if (other + == com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .getDefaultInstance()) return this; + if (other.hasDefaultValue()) { + setDefaultValue(other.getDefaultValue()); + } + if (other.hasSampleValue()) { + setSampleValue(other.getSampleValue()); + } + 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: + { + defaultValue_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sampleValue_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 long defaultValue_; + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + @java.lang.Override + public long getDefaultValue() { + return defaultValue_; + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(long value) { + + defaultValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional int64 default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000001); + defaultValue_ = 0L; + onChanged(); + return this; + } + + private long sampleValue_; + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + @java.lang.Override + public boolean hasSampleValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + @java.lang.Override + public long getSampleValue() { + return sampleValue_; + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sampleValue to set. + * @return This builder for chaining. + */ + public Builder setSampleValue(long value) { + + sampleValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional int64 sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSampleValue() { + bitField0_ = (bitField0_ & ~0x00000002); + sampleValue_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + private static final com.google.ads.admanager.v1.CreativeTemplateVariable + .LongCreativeTemplateVariable + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongCreativeTemplateVariable 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.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface StringCreativeTemplateVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + java.lang.String getDefaultValue(); + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultValue. + */ + com.google.protobuf.ByteString getDefaultValueBytes(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + boolean hasSampleValue(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + java.lang.String getSampleValue(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sampleValue. + */ + com.google.protobuf.ByteString getSampleValueBytes(); + } + + /** + * + * + *
    +   * Represents a string variable defined in a creative template.
    +   *
    +   * Use [StringCreativeTemplateVariableValue][] to specify the value
    +   * for this variable when creating [TemplateCreative][] from a
    +   * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +   * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable} + */ + public static final class StringCreativeTemplateVariable + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + StringCreativeTemplateVariableOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StringCreativeTemplateVariable.newBuilder() to construct. + private StringCreativeTemplateVariable( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringCreativeTemplateVariable() { + defaultValue_ = ""; + sampleValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringCreativeTemplateVariable(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .class, + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .Builder.class); + } + + private int bitField0_; + public static final int DEFAULT_VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultValue_ = ""; + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + @java.lang.Override + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + 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(); + defaultValue_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAMPLE_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sampleValue_ = ""; + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + @java.lang.Override + public boolean hasSampleValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + @java.lang.Override + public java.lang.String getSampleValue() { + java.lang.Object ref = sampleValue_; + 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(); + sampleValue_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sampleValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSampleValueBytes() { + java.lang.Object ref = sampleValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleValue_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sampleValue_); + } + 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.GeneratedMessageV3.computeStringSize(1, defaultValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sampleValue_); + } + 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.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable other = + (com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) obj; + + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (hasSampleValue() != other.hasSampleValue()) return false; + if (hasSampleValue()) { + if (!getSampleValue().equals(other.getSampleValue())) 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 (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + if (hasSampleValue()) { + hash = (37 * hash) + SAMPLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getSampleValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Represents a string variable defined in a creative template.
    +     *
    +     * Use [StringCreativeTemplateVariableValue][] to specify the value
    +     * for this variable when creating [TemplateCreative][] from a
    +     * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +     * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .class, + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultValue_ = ""; + sampleValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_StringCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + build() { + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable result = + new com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleValue_ = sampleValue_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) { + return mergeFrom( + (com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + other) { + if (other + == com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .getDefaultInstance()) return this; + if (other.hasDefaultValue()) { + defaultValue_ = other.defaultValue_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSampleValue()) { + sampleValue_ = other.sampleValue_; + 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: + { + defaultValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sampleValue_ = 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 defaultValue_ = ""; + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultValue. + */ + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + defaultValue_ = getDefaultInstance().getDefaultValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sampleValue_ = ""; + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + public boolean hasSampleValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + public java.lang.String getSampleValue() { + java.lang.Object ref = sampleValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sampleValue. + */ + public com.google.protobuf.ByteString getSampleValueBytes() { + java.lang.Object ref = sampleValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sampleValue to set. + * @return This builder for chaining. + */ + public Builder setSampleValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sampleValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSampleValue() { + sampleValue_ = getDefaultInstance().getSampleValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sampleValue to set. + * @return This builder for chaining. + */ + public Builder setSampleValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sampleValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + private static final com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringCreativeTemplateVariable 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.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface UrlCreativeTemplateVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + java.lang.String getDefaultValue(); + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultValue. + */ + com.google.protobuf.ByteString getDefaultValueBytes(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + boolean hasSampleValue(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + java.lang.String getSampleValue(); + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sampleValue. + */ + com.google.protobuf.ByteString getSampleValueBytes(); + + /** + * + * + *
    +     * Optional. The type of URL that this variable represents. Different types
    +     * of URLs may be handled differently at rendering time.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the urlType field is set. + */ + boolean hasUrlType(); + + /** + * + * + *
    +     * Optional. The type of URL that this variable represents. Different types
    +     * of URLs may be handled differently at rendering time.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for urlType. + */ + int getUrlTypeValue(); + + /** + * + * + *
    +     * Optional. The type of URL that this variable represents. Different types
    +     * of URLs may be handled differently at rendering time.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The urlType. + */ + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType + getUrlType(); + } + + /** + * + * + *
    +   * Represents a url variable defined in a creative template.
    +   *
    +   * Use [UrlCreativeTemplateVariableValue][] to specify the value for this
    +   * variable when creating a [TemplateCreative][] from a
    +   * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +   * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable} + */ + public static final class UrlCreativeTemplateVariable + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + UrlCreativeTemplateVariableOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UrlCreativeTemplateVariable.newBuilder() to construct. + private UrlCreativeTemplateVariable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UrlCreativeTemplateVariable() { + defaultValue_ = ""; + sampleValue_ = ""; + urlType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UrlCreativeTemplateVariable(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .class, + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .Builder.class); + } + + private int bitField0_; + public static final int DEFAULT_VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultValue_ = ""; + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + @java.lang.Override + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + 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(); + defaultValue_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Default value to be filled in when creating creatives from the
    +     * creative template.
    +     * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAMPLE_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sampleValue_ = ""; + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + @java.lang.Override + public boolean hasSampleValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + @java.lang.Override + public java.lang.String getSampleValue() { + java.lang.Object ref = sampleValue_; + 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(); + sampleValue_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Sample value that is used when previewing the template in the
    +     * UI.
    +     * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sampleValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSampleValueBytes() { + java.lang.Object ref = sampleValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_TYPE_FIELD_NUMBER = 4; + private int urlType_ = 0; + + /** + * + * + *
    +     * Optional. The type of URL that this variable represents. Different types
    +     * of URLs may be handled differently at rendering time.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the urlType field is set. + */ + @java.lang.Override + public boolean hasUrlType() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. The type of URL that this variable represents. Different types
    +     * of URLs may be handled differently at rendering time.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for urlType. + */ + @java.lang.Override + public int getUrlTypeValue() { + return urlType_; + } + + /** + * + * + *
    +     * Optional. The type of URL that this variable represents. Different types
    +     * of URLs may be handled differently at rendering time.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The urlType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + .CreativeTemplateVariableUrlType + getUrlType() { + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + .CreativeTemplateVariableUrlType + result = + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + .CreativeTemplateVariableUrlType.forNumber(urlType_); + return result == null + ? com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + .CreativeTemplateVariableUrlType.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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sampleValue_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, urlType_); + } + 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.GeneratedMessageV3.computeStringSize(1, defaultValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sampleValue_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, urlType_); + } + 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.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable other = + (com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) obj; + + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (hasSampleValue() != other.hasSampleValue()) return false; + if (hasSampleValue()) { + if (!getSampleValue().equals(other.getSampleValue())) return false; + } + if (hasUrlType() != other.hasUrlType()) return false; + if (hasUrlType()) { + if (urlType_ != other.urlType_) 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 (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + if (hasSampleValue()) { + hash = (37 * hash) + SAMPLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getSampleValue().hashCode(); + } + if (hasUrlType()) { + hash = (37 * hash) + URL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + urlType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + 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.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Represents a url variable defined in a creative template.
    +     *
    +     * Use [UrlCreativeTemplateVariableValue][] to specify the value for this
    +     * variable when creating a [TemplateCreative][] from a
    +     * [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
    +     * 
    + * + * Protobuf type {@code + * google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .class, + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultValue_ = ""; + sampleValue_ = ""; + urlType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_UrlCreativeTemplateVariable_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + build() { + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable result = + new com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleValue_ = sampleValue_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.urlType_ = urlType_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) { + return mergeFrom( + (com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable other) { + if (other + == com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .getDefaultInstance()) return this; + if (other.hasDefaultValue()) { + defaultValue_ = other.defaultValue_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSampleValue()) { + sampleValue_ = other.sampleValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUrlType()) { + setUrlType(other.getUrlType()); + } + 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: + { + defaultValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sampleValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + urlType_ = input.readEnum(); + bitField0_ |= 0x00000004; + 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 defaultValue_ = ""; + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultValue. + */ + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultValue. + */ + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + defaultValue_ = getDefaultInstance().getDefaultValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Default value to be filled in when creating creatives from the
    +       * creative template.
    +       * 
    + * + * optional string default_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sampleValue_ = ""; + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sampleValue field is set. + */ + public boolean hasSampleValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleValue. + */ + public java.lang.String getSampleValue() { + java.lang.Object ref = sampleValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sampleValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sampleValue. + */ + public com.google.protobuf.ByteString getSampleValueBytes() { + java.lang.Object ref = sampleValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sampleValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sampleValue to set. + * @return This builder for chaining. + */ + public Builder setSampleValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sampleValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSampleValue() { + sampleValue_ = getDefaultInstance().getSampleValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Sample value that is used when previewing the template in the
    +       * UI.
    +       * 
    + * + * optional string sample_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sampleValue to set. + * @return This builder for chaining. + */ + public Builder setSampleValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sampleValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int urlType_ = 0; + + /** + * + * + *
    +       * Optional. The type of URL that this variable represents. Different types
    +       * of URLs may be handled differently at rendering time.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the urlType field is set. + */ + @java.lang.Override + public boolean hasUrlType() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +       * Optional. The type of URL that this variable represents. Different types
    +       * of URLs may be handled differently at rendering time.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for urlType. + */ + @java.lang.Override + public int getUrlTypeValue() { + return urlType_; + } + + /** + * + * + *
    +       * Optional. The type of URL that this variable represents. Different types
    +       * of URLs may be handled differently at rendering time.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for urlType to set. + * @return This builder for chaining. + */ + public Builder setUrlTypeValue(int value) { + urlType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The type of URL that this variable represents. Different types
    +       * of URLs may be handled differently at rendering time.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The urlType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + .CreativeTemplateVariableUrlType + getUrlType() { + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + .CreativeTemplateVariableUrlType + result = + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + .CreativeTemplateVariableUrlType.forNumber(urlType_); + return result == null + ? com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + .CreativeTemplateVariableUrlType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Optional. The type of URL that this variable represents. Different types
    +       * of URLs may be handled differently at rendering time.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The urlType to set. + * @return This builder for chaining. + */ + public Builder setUrlType( + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + .CreativeTemplateVariableUrlType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + urlType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The type of URL that this variable represents. Different types
    +       * of URLs may be handled differently at rendering time.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType url_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearUrlType() { + bitField0_ = (bitField0_ & ~0x00000004); + urlType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + private static final com.google.ads.admanager.v1.CreativeTemplateVariable + .UrlCreativeTemplateVariable + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UrlCreativeTemplateVariable 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.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int subTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object subType_; + + public enum SubTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ASSET_VARIABLE(5), + LIST_STRING_VARIABLE(7), + LONG_VARIABLE(8), + STRING_VARIABLE(9), + URL_VARIABLE(10), + SUBTYPE_NOT_SET(0); + private final int value; + + private SubTypeCase(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 SubTypeCase valueOf(int value) { + return forNumber(value); + } + + public static SubTypeCase forNumber(int value) { + switch (value) { + case 5: + return ASSET_VARIABLE; + case 7: + return LIST_STRING_VARIABLE; + case 8: + return LONG_VARIABLE; + case 9: + return STRING_VARIABLE; + case 10: + return URL_VARIABLE; + case 0: + return SUBTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SubTypeCase getSubTypeCase() { + return SubTypeCase.forNumber(subTypeCase_); + } + + public static final int ASSET_VARIABLE_FIELD_NUMBER = 5; + + /** + * + * + *
    +   * Optional. Represents a file asset variable defined in a creative
    +   * template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assetVariable field is set. + */ + @java.lang.Override + public boolean hasAssetVariable() { + return subTypeCase_ == 5; + } + + /** + * + * + *
    +   * Optional. Represents a file asset variable defined in a creative
    +   * template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assetVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + getAssetVariable() { + if (subTypeCase_ == 5) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Represents a file asset variable defined in a creative
    +   * template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariableOrBuilder + getAssetVariableOrBuilder() { + if (subTypeCase_ == 5) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .getDefaultInstance(); + } + + public static final int LIST_STRING_VARIABLE_FIELD_NUMBER = 7; + + /** + * + * + *
    +   * Optional. Represents a list variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the listStringVariable field is set. + */ + @java.lang.Override + public boolean hasListStringVariable() { + return subTypeCase_ == 7; + } + + /** + * + * + *
    +   * Optional. Represents a list variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The listStringVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + getListStringVariable() { + if (subTypeCase_ == 7) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Represents a list variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariableOrBuilder + getListStringVariableOrBuilder() { + if (subTypeCase_ == 7) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .getDefaultInstance(); + } + + public static final int LONG_VARIABLE_FIELD_NUMBER = 8; + + /** + * + * + *
    +   * Optional. Represents a long variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the longVariable field is set. + */ + @java.lang.Override + public boolean hasLongVariable() { + return subTypeCase_ == 8; + } + + /** + * + * + *
    +   * Optional. Represents a long variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The longVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + getLongVariable() { + if (subTypeCase_ == 8) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Represents a long variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariableOrBuilder + getLongVariableOrBuilder() { + if (subTypeCase_ == 8) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .getDefaultInstance(); + } + + public static final int STRING_VARIABLE_FIELD_NUMBER = 9; + + /** + * + * + *
    +   * Optional. Represents a string variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stringVariable field is set. + */ + @java.lang.Override + public boolean hasStringVariable() { + return subTypeCase_ == 9; + } + + /** + * + * + *
    +   * Optional. Represents a string variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stringVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + getStringVariable() { + if (subTypeCase_ == 9) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Represents a string variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariableOrBuilder + getStringVariableOrBuilder() { + if (subTypeCase_ == 9) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .getDefaultInstance(); + } + + public static final int URL_VARIABLE_FIELD_NUMBER = 10; + + /** + * + * + *
    +   * Optional. Represents a url variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the urlVariable field is set. + */ + @java.lang.Override + public boolean hasUrlVariable() { + return subTypeCase_ == 10; + } + + /** + * + * + *
    +   * Optional. Represents a url variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The urlVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + getUrlVariable() { + if (subTypeCase_ == 10) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Represents a url variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariableOrBuilder + getUrlVariableOrBuilder() { + if (subTypeCase_ == 10) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .getDefaultInstance(); + } + + public static final int LABEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + + /** + * + * + *
    +   * Required. Label that is displayed to users when creating from the creative
    +   * template. This has a maximum length of 127 characters.
    +   * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the label field is set. + */ + @java.lang.Override + public boolean hasLabel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Label that is displayed to users when creating from the creative
    +   * template. This has a maximum length of 127 characters.
    +   * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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(); + label_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Label that is displayed to users when creating from the creative
    +   * template. This has a maximum length of 127 characters.
    +   * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNIQUE_DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uniqueDisplayName_ = ""; + + /** + * + * + *
    +   * Output only. Unique name used to identify the variable. This attribute is
    +   * assigned by Google when a creative template variable is created.
    +   * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the uniqueDisplayName field is set. + */ + @java.lang.Override + public boolean hasUniqueDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. Unique name used to identify the variable. This attribute is
    +   * assigned by Google when a creative template variable is created.
    +   * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The uniqueDisplayName. + */ + @java.lang.Override + public java.lang.String getUniqueDisplayName() { + java.lang.Object ref = uniqueDisplayName_; + 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(); + uniqueDisplayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Unique name used to identify the variable. This attribute is
    +   * assigned by Google when a creative template variable is created.
    +   * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for uniqueDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUniqueDisplayNameBytes() { + java.lang.Object ref = uniqueDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uniqueDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
    +   * Required. A descriptive help text that is displayed to users along with the
    +   * label. This attribute has a maximum length of 255 characters.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Required. A descriptive help text that is displayed to users along with the
    +   * label. This attribute has a maximum length of 255 characters.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
    +   * Required. A descriptive help text that is displayed to users along with the
    +   * label. This attribute has a maximum length of 255 characters.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 REQUIRED_FIELD_NUMBER = 4; + private boolean required_ = false; + + /** + * + * + *
    +   * Optional. `True` if this variable is required to be filled in by users when
    +   * creating a creative from the creative template.
    +   * 
    + * + * optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the required field is set. + */ + @java.lang.Override + public boolean hasRequired() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Optional. `True` if this variable is required to be filled in by users when
    +   * creating a creative from the creative template.
    +   * 
    + * + * optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + 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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uniqueDisplayName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(4, required_); + } + if (subTypeCase_ == 5) { + output.writeMessage( + 5, + (com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + subType_); + } + if (subTypeCase_ == 7) { + output.writeMessage( + 7, + (com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable) + subType_); + } + if (subTypeCase_ == 8) { + output.writeMessage( + 8, + (com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + subType_); + } + if (subTypeCase_ == 9) { + output.writeMessage( + 9, + (com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + subType_); + } + if (subTypeCase_ == 10) { + output.writeMessage( + 10, + (com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + subType_); + } + 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.GeneratedMessageV3.computeStringSize(1, label_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uniqueDisplayName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, required_); + } + if (subTypeCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + subType_); + } + if (subTypeCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) + subType_); + } + if (subTypeCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + subType_); + } + if (subTypeCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable) + subType_); + } + if (subTypeCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + subType_); + } + 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.admanager.v1.CreativeTemplateVariable)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateVariable other = + (com.google.ads.admanager.v1.CreativeTemplateVariable) obj; + + if (hasLabel() != other.hasLabel()) return false; + if (hasLabel()) { + if (!getLabel().equals(other.getLabel())) return false; + } + if (hasUniqueDisplayName() != other.hasUniqueDisplayName()) return false; + if (hasUniqueDisplayName()) { + if (!getUniqueDisplayName().equals(other.getUniqueDisplayName())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasRequired() != other.hasRequired()) return false; + if (hasRequired()) { + if (getRequired() != other.getRequired()) return false; + } + if (!getSubTypeCase().equals(other.getSubTypeCase())) return false; + switch (subTypeCase_) { + case 5: + if (!getAssetVariable().equals(other.getAssetVariable())) return false; + break; + case 7: + if (!getListStringVariable().equals(other.getListStringVariable())) return false; + break; + case 8: + if (!getLongVariable().equals(other.getLongVariable())) return false; + break; + case 9: + if (!getStringVariable().equals(other.getStringVariable())) return false; + break; + case 10: + if (!getUrlVariable().equals(other.getUrlVariable())) 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(); + if (hasLabel()) { + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + } + if (hasUniqueDisplayName()) { + hash = (37 * hash) + UNIQUE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getUniqueDisplayName().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasRequired()) { + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); + } + switch (subTypeCase_) { + case 5: + hash = (37 * hash) + ASSET_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getAssetVariable().hashCode(); + break; + case 7: + hash = (37 * hash) + LIST_STRING_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getListStringVariable().hashCode(); + break; + case 8: + hash = (37 * hash) + LONG_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getLongVariable().hashCode(); + break; + case 9: + hash = (37 * hash) + STRING_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getStringVariable().hashCode(); + break; + case 10: + hash = (37 * hash) + URL_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getUrlVariable().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable 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.admanager.v1.CreativeTemplateVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable 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.admanager.v1.CreativeTemplateVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.CreativeTemplateVariable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a variable defined in a creative template.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplateVariable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateVariable) + com.google.ads.admanager.v1.CreativeTemplateVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariable.class, + com.google.ads.admanager.v1.CreativeTemplateVariable.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreativeTemplateVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (assetVariableBuilder_ != null) { + assetVariableBuilder_.clear(); + } + if (listStringVariableBuilder_ != null) { + listStringVariableBuilder_.clear(); + } + if (longVariableBuilder_ != null) { + longVariableBuilder_.clear(); + } + if (stringVariableBuilder_ != null) { + stringVariableBuilder_.clear(); + } + if (urlVariableBuilder_ != null) { + urlVariableBuilder_.clear(); + } + label_ = ""; + uniqueDisplayName_ = ""; + description_ = ""; + required_ = false; + subTypeCase_ = 0; + subType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateMessagesProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariable_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateVariable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable build() { + com.google.ads.admanager.v1.CreativeTemplateVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateVariable result = + new com.google.ads.admanager.v1.CreativeTemplateVariable(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreativeTemplateVariable result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.label_ = label_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.uniqueDisplayName_ = uniqueDisplayName_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.required_ = required_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.ads.admanager.v1.CreativeTemplateVariable result) { + result.subTypeCase_ = subTypeCase_; + result.subType_ = this.subType_; + if (subTypeCase_ == 5 && assetVariableBuilder_ != null) { + result.subType_ = assetVariableBuilder_.build(); + } + if (subTypeCase_ == 7 && listStringVariableBuilder_ != null) { + result.subType_ = listStringVariableBuilder_.build(); + } + if (subTypeCase_ == 8 && longVariableBuilder_ != null) { + result.subType_ = longVariableBuilder_.build(); + } + if (subTypeCase_ == 9 && stringVariableBuilder_ != null) { + result.subType_ = stringVariableBuilder_.build(); + } + if (subTypeCase_ == 10 && urlVariableBuilder_ != null) { + result.subType_ = urlVariableBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreativeTemplateVariable) { + return mergeFrom((com.google.ads.admanager.v1.CreativeTemplateVariable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreativeTemplateVariable other) { + if (other == com.google.ads.admanager.v1.CreativeTemplateVariable.getDefaultInstance()) + return this; + if (other.hasLabel()) { + label_ = other.label_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasUniqueDisplayName()) { + uniqueDisplayName_ = other.uniqueDisplayName_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasRequired()) { + setRequired(other.getRequired()); + } + switch (other.getSubTypeCase()) { + case ASSET_VARIABLE: + { + mergeAssetVariable(other.getAssetVariable()); + break; + } + case LIST_STRING_VARIABLE: + { + mergeListStringVariable(other.getListStringVariable()); + break; + } + case LONG_VARIABLE: + { + mergeLongVariable(other.getLongVariable()); + break; + } + case STRING_VARIABLE: + { + mergeStringVariable(other.getStringVariable()); + break; + } + case URL_VARIABLE: + { + mergeUrlVariable(other.getUrlVariable()); + break; + } + case SUBTYPE_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: + { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 10 + case 18: + { + uniqueDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 26 + case 32: + { + required_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 32 + case 42: + { + input.readMessage(getAssetVariableFieldBuilder().getBuilder(), extensionRegistry); + subTypeCase_ = 5; + break; + } // case 42 + case 58: + { + input.readMessage( + getListStringVariableFieldBuilder().getBuilder(), extensionRegistry); + subTypeCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getLongVariableFieldBuilder().getBuilder(), extensionRegistry); + subTypeCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getStringVariableFieldBuilder().getBuilder(), extensionRegistry); + subTypeCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage(getUrlVariableFieldBuilder().getBuilder(), extensionRegistry); + subTypeCase_ = 10; + break; + } // case 82 + 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 subTypeCase_ = 0; + private java.lang.Object subType_; + + public SubTypeCase getSubTypeCase() { + return SubTypeCase.forNumber(subTypeCase_); + } + + public Builder clearSubType() { + subTypeCase_ = 0; + subType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariableOrBuilder> + assetVariableBuilder_; + + /** + * + * + *
    +     * Optional. Represents a file asset variable defined in a creative
    +     * template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assetVariable field is set. + */ + @java.lang.Override + public boolean hasAssetVariable() { + return subTypeCase_ == 5; + } + + /** + * + * + *
    +     * Optional. Represents a file asset variable defined in a creative
    +     * template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assetVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + getAssetVariable() { + if (assetVariableBuilder_ == null) { + if (subTypeCase_ == 5) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .getDefaultInstance(); + } else { + if (subTypeCase_ == 5) { + return assetVariableBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a file asset variable defined in a creative
    +     * template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssetVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable value) { + if (assetVariableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subType_ = value; + onChanged(); + } else { + assetVariableBuilder_.setMessage(value); + } + subTypeCase_ = 5; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a file asset variable defined in a creative
    +     * template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssetVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable.Builder + builderForValue) { + if (assetVariableBuilder_ == null) { + subType_ = builderForValue.build(); + onChanged(); + } else { + assetVariableBuilder_.setMessage(builderForValue.build()); + } + subTypeCase_ = 5; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a file asset variable defined in a creative
    +     * template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAssetVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable value) { + if (assetVariableBuilder_ == null) { + if (subTypeCase_ == 5 + && subType_ + != com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariable.getDefaultInstance()) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .newBuilder( + (com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariable) + subType_) + .mergeFrom(value) + .buildPartial(); + } else { + subType_ = value; + } + onChanged(); + } else { + if (subTypeCase_ == 5) { + assetVariableBuilder_.mergeFrom(value); + } else { + assetVariableBuilder_.setMessage(value); + } + } + subTypeCase_ = 5; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a file asset variable defined in a creative
    +     * template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAssetVariable() { + if (assetVariableBuilder_ == null) { + if (subTypeCase_ == 5) { + subTypeCase_ = 0; + subType_ = null; + onChanged(); + } + } else { + if (subTypeCase_ == 5) { + subTypeCase_ = 0; + subType_ = null; + } + assetVariableBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Represents a file asset variable defined in a creative
    +     * template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .Builder + getAssetVariableBuilder() { + return getAssetVariableFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Represents a file asset variable defined in a creative
    +     * template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariableOrBuilder + getAssetVariableOrBuilder() { + if ((subTypeCase_ == 5) && (assetVariableBuilder_ != null)) { + return assetVariableBuilder_.getMessageOrBuilder(); + } else { + if (subTypeCase_ == 5) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a file asset variable defined in a creative
    +     * template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariableOrBuilder> + getAssetVariableFieldBuilder() { + if (assetVariableBuilder_ == null) { + if (!(subTypeCase_ == 5)) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .getDefaultInstance(); + } + assetVariableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .AssetCreativeTemplateVariableOrBuilder>( + (com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable) + subType_, + getParentForChildren(), + isClean()); + subType_ = null; + } + subTypeCase_ = 5; + onChanged(); + return assetVariableBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariableOrBuilder> + listStringVariableBuilder_; + + /** + * + * + *
    +     * Optional. Represents a list variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the listStringVariable field is set. + */ + @java.lang.Override + public boolean hasListStringVariable() { + return subTypeCase_ == 7; + } + + /** + * + * + *
    +     * Optional. Represents a list variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The listStringVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + getListStringVariable() { + if (listStringVariableBuilder_ == null) { + if (subTypeCase_ == 7) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.getDefaultInstance(); + } else { + if (subTypeCase_ == 7) { + return listStringVariableBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a list variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setListStringVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + value) { + if (listStringVariableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subType_ = value; + onChanged(); + } else { + listStringVariableBuilder_.setMessage(value); + } + subTypeCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a list variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setListStringVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .Builder + builderForValue) { + if (listStringVariableBuilder_ == null) { + subType_ = builderForValue.build(); + onChanged(); + } else { + listStringVariableBuilder_.setMessage(builderForValue.build()); + } + subTypeCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a list variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeListStringVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + value) { + if (listStringVariableBuilder_ == null) { + if (subTypeCase_ == 7 + && subType_ + != com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.getDefaultInstance()) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.newBuilder( + (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) + subType_) + .mergeFrom(value) + .buildPartial(); + } else { + subType_ = value; + } + onChanged(); + } else { + if (subTypeCase_ == 7) { + listStringVariableBuilder_.mergeFrom(value); + } else { + listStringVariableBuilder_.setMessage(value); + } + } + subTypeCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a list variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearListStringVariable() { + if (listStringVariableBuilder_ == null) { + if (subTypeCase_ == 7) { + subTypeCase_ = 0; + subType_ = null; + onChanged(); + } + } else { + if (subTypeCase_ == 7) { + subTypeCase_ = 0; + subType_ = null; + } + listStringVariableBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Represents a list variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .Builder + getListStringVariableBuilder() { + return getListStringVariableFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Represents a list variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariableOrBuilder + getListStringVariableOrBuilder() { + if ((subTypeCase_ == 7) && (listStringVariableBuilder_ != null)) { + return listStringVariableBuilder_.getMessageOrBuilder(); + } else { + if (subTypeCase_ == 7) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a list variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariableOrBuilder> + getListStringVariableFieldBuilder() { + if (listStringVariableBuilder_ == null) { + if (!(subTypeCase_ == 7)) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.getDefaultInstance(); + } + listStringVariableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable.Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariableOrBuilder>( + (com.google.ads.admanager.v1.CreativeTemplateVariable + .ListStringCreativeTemplateVariable) + subType_, + getParentForChildren(), + isClean()); + subType_ = null; + } + subTypeCase_ = 7; + onChanged(); + return listStringVariableBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .LongCreativeTemplateVariableOrBuilder> + longVariableBuilder_; + + /** + * + * + *
    +     * Optional. Represents a long variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the longVariable field is set. + */ + @java.lang.Override + public boolean hasLongVariable() { + return subTypeCase_ == 8; + } + + /** + * + * + *
    +     * Optional. Represents a long variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The longVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + getLongVariable() { + if (longVariableBuilder_ == null) { + if (subTypeCase_ == 8) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .getDefaultInstance(); + } else { + if (subTypeCase_ == 8) { + return longVariableBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a long variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLongVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable value) { + if (longVariableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subType_ = value; + onChanged(); + } else { + longVariableBuilder_.setMessage(value); + } + subTypeCase_ = 8; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a long variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLongVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable.Builder + builderForValue) { + if (longVariableBuilder_ == null) { + subType_ = builderForValue.build(); + onChanged(); + } else { + longVariableBuilder_.setMessage(builderForValue.build()); + } + subTypeCase_ = 8; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a long variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLongVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable value) { + if (longVariableBuilder_ == null) { + if (subTypeCase_ == 8 + && subType_ + != com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .getDefaultInstance()) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .newBuilder( + (com.google.ads.admanager.v1.CreativeTemplateVariable + .LongCreativeTemplateVariable) + subType_) + .mergeFrom(value) + .buildPartial(); + } else { + subType_ = value; + } + onChanged(); + } else { + if (subTypeCase_ == 8) { + longVariableBuilder_.mergeFrom(value); + } else { + longVariableBuilder_.setMessage(value); + } + } + subTypeCase_ = 8; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a long variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLongVariable() { + if (longVariableBuilder_ == null) { + if (subTypeCase_ == 8) { + subTypeCase_ = 0; + subType_ = null; + onChanged(); + } + } else { + if (subTypeCase_ == 8) { + subTypeCase_ = 0; + subType_ = null; + } + longVariableBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Represents a long variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable.Builder + getLongVariableBuilder() { + return getLongVariableFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Represents a long variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable + .LongCreativeTemplateVariableOrBuilder + getLongVariableOrBuilder() { + if ((subTypeCase_ == 8) && (longVariableBuilder_ != null)) { + return longVariableBuilder_.getMessageOrBuilder(); + } else { + if (subTypeCase_ == 8) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a long variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .LongCreativeTemplateVariableOrBuilder> + getLongVariableFieldBuilder() { + if (longVariableBuilder_ == null) { + if (!(subTypeCase_ == 8)) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .getDefaultInstance(); + } + longVariableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .LongCreativeTemplateVariableOrBuilder>( + (com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable) + subType_, + getParentForChildren(), + isClean()); + subType_ = null; + } + subTypeCase_ = 8; + onChanged(); + return longVariableBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariableOrBuilder> + stringVariableBuilder_; + + /** + * + * + *
    +     * Optional. Represents a string variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stringVariable field is set. + */ + @java.lang.Override + public boolean hasStringVariable() { + return subTypeCase_ == 9; + } + + /** + * + * + *
    +     * Optional. Represents a string variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stringVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + getStringVariable() { + if (stringVariableBuilder_ == null) { + if (subTypeCase_ == 9) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .getDefaultInstance(); + } else { + if (subTypeCase_ == 9) { + return stringVariableBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a string variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStringVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable value) { + if (stringVariableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subType_ = value; + onChanged(); + } else { + stringVariableBuilder_.setMessage(value); + } + subTypeCase_ = 9; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a string variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStringVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable.Builder + builderForValue) { + if (stringVariableBuilder_ == null) { + subType_ = builderForValue.build(); + onChanged(); + } else { + stringVariableBuilder_.setMessage(builderForValue.build()); + } + subTypeCase_ = 9; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a string variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStringVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable value) { + if (stringVariableBuilder_ == null) { + if (subTypeCase_ == 9 + && subType_ + != com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable.getDefaultInstance()) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .newBuilder( + (com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable) + subType_) + .mergeFrom(value) + .buildPartial(); + } else { + subType_ = value; + } + onChanged(); + } else { + if (subTypeCase_ == 9) { + stringVariableBuilder_.mergeFrom(value); + } else { + stringVariableBuilder_.setMessage(value); + } + } + subTypeCase_ = 9; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a string variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStringVariable() { + if (stringVariableBuilder_ == null) { + if (subTypeCase_ == 9) { + subTypeCase_ = 0; + subType_ = null; + onChanged(); + } + } else { + if (subTypeCase_ == 9) { + subTypeCase_ = 0; + subType_ = null; + } + stringVariableBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Represents a string variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .Builder + getStringVariableBuilder() { + return getStringVariableFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Represents a string variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariableOrBuilder + getStringVariableOrBuilder() { + if ((subTypeCase_ == 9) && (stringVariableBuilder_ != null)) { + return stringVariableBuilder_.getMessageOrBuilder(); + } else { + if (subTypeCase_ == 9) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a string variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariableOrBuilder> + getStringVariableFieldBuilder() { + if (stringVariableBuilder_ == null) { + if (!(subTypeCase_ == 9)) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .getDefaultInstance(); + } + stringVariableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariableOrBuilder>( + (com.google.ads.admanager.v1.CreativeTemplateVariable + .StringCreativeTemplateVariable) + subType_, + getParentForChildren(), + isClean()); + subType_ = null; + } + subTypeCase_ = 9; + onChanged(); + return stringVariableBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .UrlCreativeTemplateVariableOrBuilder> + urlVariableBuilder_; + + /** + * + * + *
    +     * Optional. Represents a url variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the urlVariable field is set. + */ + @java.lang.Override + public boolean hasUrlVariable() { + return subTypeCase_ == 10; + } + + /** + * + * + *
    +     * Optional. Represents a url variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The urlVariable. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + getUrlVariable() { + if (urlVariableBuilder_ == null) { + if (subTypeCase_ == 10) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .getDefaultInstance(); + } else { + if (subTypeCase_ == 10) { + return urlVariableBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a url variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUrlVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable value) { + if (urlVariableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subType_ = value; + onChanged(); + } else { + urlVariableBuilder_.setMessage(value); + } + subTypeCase_ = 10; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a url variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUrlVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable.Builder + builderForValue) { + if (urlVariableBuilder_ == null) { + subType_ = builderForValue.build(); + onChanged(); + } else { + urlVariableBuilder_.setMessage(builderForValue.build()); + } + subTypeCase_ = 10; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a url variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUrlVariable( + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable value) { + if (urlVariableBuilder_ == null) { + if (subTypeCase_ == 10 + && subType_ + != com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .getDefaultInstance()) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .newBuilder( + (com.google.ads.admanager.v1.CreativeTemplateVariable + .UrlCreativeTemplateVariable) + subType_) + .mergeFrom(value) + .buildPartial(); + } else { + subType_ = value; + } + onChanged(); + } else { + if (subTypeCase_ == 10) { + urlVariableBuilder_.mergeFrom(value); + } else { + urlVariableBuilder_.setMessage(value); + } + } + subTypeCase_ = 10; + return this; + } + + /** + * + * + *
    +     * Optional. Represents a url variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUrlVariable() { + if (urlVariableBuilder_ == null) { + if (subTypeCase_ == 10) { + subTypeCase_ = 0; + subType_ = null; + onChanged(); + } + } else { + if (subTypeCase_ == 10) { + subTypeCase_ = 0; + subType_ = null; + } + urlVariableBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Represents a url variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable.Builder + getUrlVariableBuilder() { + return getUrlVariableFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Represents a url variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariableOrBuilder + getUrlVariableOrBuilder() { + if ((subTypeCase_ == 10) && (urlVariableBuilder_ != null)) { + return urlVariableBuilder_.getMessageOrBuilder(); + } else { + if (subTypeCase_ == 10) { + return (com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + subType_; + } + return com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Represents a url variable defined in a creative template.
    +     * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .UrlCreativeTemplateVariableOrBuilder> + getUrlVariableFieldBuilder() { + if (urlVariableBuilder_ == null) { + if (!(subTypeCase_ == 10)) { + subType_ = + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .getDefaultInstance(); + } + urlVariableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable, + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable + .Builder, + com.google.ads.admanager.v1.CreativeTemplateVariable + .UrlCreativeTemplateVariableOrBuilder>( + (com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable) + subType_, + getParentForChildren(), + isClean()); + subType_ = null; + } + subTypeCase_ = 10; + onChanged(); + return urlVariableBuilder_; + } + + private java.lang.Object label_ = ""; + + /** + * + * + *
    +     * Required. Label that is displayed to users when creating from the creative
    +     * template. This has a maximum length of 127 characters.
    +     * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the label field is set. + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Required. Label that is displayed to users when creating from the creative
    +     * template. This has a maximum length of 127 characters.
    +     * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Label that is displayed to users when creating from the creative
    +     * template. This has a maximum length of 127 characters.
    +     * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Label that is displayed to users when creating from the creative
    +     * template. This has a maximum length of 127 characters.
    +     * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Label that is displayed to users when creating from the creative
    +     * template. This has a maximum length of 127 characters.
    +     * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Label that is displayed to users when creating from the creative
    +     * template. This has a maximum length of 127 characters.
    +     * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object uniqueDisplayName_ = ""; + + /** + * + * + *
    +     * Output only. Unique name used to identify the variable. This attribute is
    +     * assigned by Google when a creative template variable is created.
    +     * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the uniqueDisplayName field is set. + */ + public boolean hasUniqueDisplayName() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +     * Output only. Unique name used to identify the variable. This attribute is
    +     * assigned by Google when a creative template variable is created.
    +     * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The uniqueDisplayName. + */ + public java.lang.String getUniqueDisplayName() { + java.lang.Object ref = uniqueDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uniqueDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Unique name used to identify the variable. This attribute is
    +     * assigned by Google when a creative template variable is created.
    +     * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for uniqueDisplayName. + */ + public com.google.protobuf.ByteString getUniqueDisplayNameBytes() { + java.lang.Object ref = uniqueDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uniqueDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Unique name used to identify the variable. This attribute is
    +     * assigned by Google when a creative template variable is created.
    +     * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The uniqueDisplayName to set. + * @return This builder for chaining. + */ + public Builder setUniqueDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uniqueDisplayName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Unique name used to identify the variable. This attribute is
    +     * assigned by Google when a creative template variable is created.
    +     * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearUniqueDisplayName() { + uniqueDisplayName_ = getDefaultInstance().getUniqueDisplayName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Unique name used to identify the variable. This attribute is
    +     * assigned by Google when a creative template variable is created.
    +     * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for uniqueDisplayName to set. + * @return This builder for chaining. + */ + public Builder setUniqueDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uniqueDisplayName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
    +     * Required. A descriptive help text that is displayed to users along with the
    +     * label. This attribute has a maximum length of 255 characters.
    +     * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +     * Required. A descriptive help text that is displayed to users along with the
    +     * label. This attribute has a maximum length of 255 characters.
    +     * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
    +     * Required. A descriptive help text that is displayed to users along with the
    +     * label. This attribute has a maximum length of 255 characters.
    +     * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
    +     * Required. A descriptive help text that is displayed to users along with the
    +     * label. This attribute has a maximum length of 255 characters.
    +     * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A descriptive help text that is displayed to users along with the
    +     * label. This attribute has a maximum length of 255 characters.
    +     * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A descriptive help text that is displayed to users along with the
    +     * label. This attribute has a maximum length of 255 characters.
    +     * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000080; + onChanged(); + return this; + } + + private boolean required_; + + /** + * + * + *
    +     * Optional. `True` if this variable is required to be filled in by users when
    +     * creating a creative from the creative template.
    +     * 
    + * + * optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the required field is set. + */ + @java.lang.Override + public boolean hasRequired() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +     * Optional. `True` if this variable is required to be filled in by users when
    +     * creating a creative from the creative template.
    +     * 
    + * + * optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + /** + * + * + *
    +     * Optional. `True` if this variable is required to be filled in by users when
    +     * creating a creative from the creative template.
    +     * 
    + * + * optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The required to set. + * @return This builder for chaining. + */ + public Builder setRequired(boolean value) { + + required_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `True` if this variable is required to be filled in by users when
    +     * creating a creative from the creative template.
    +     * 
    + * + * optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequired() { + bitField0_ = (bitField0_ & ~0x00000100); + required_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateVariable) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateVariable) + private static final com.google.ads.admanager.v1.CreativeTemplateVariable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreativeTemplateVariable(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreativeTemplateVariable 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.admanager.v1.CreativeTemplateVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableOrBuilder.java new file mode 100644 index 000000000000..b325fc69376c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableOrBuilder.java @@ -0,0 +1,412 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreativeTemplateVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Represents a file asset variable defined in a creative
    +   * template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assetVariable field is set. + */ + boolean hasAssetVariable(); + + /** + * + * + *
    +   * Optional. Represents a file asset variable defined in a creative
    +   * template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assetVariable. + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable + getAssetVariable(); + + /** + * + * + *
    +   * Optional. Represents a file asset variable defined in a creative
    +   * template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariable asset_variable = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.AssetCreativeTemplateVariableOrBuilder + getAssetVariableOrBuilder(); + + /** + * + * + *
    +   * Optional. Represents a list variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the listStringVariable field is set. + */ + boolean hasListStringVariable(); + + /** + * + * + *
    +   * Optional. Represents a list variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The listStringVariable. + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable + getListStringVariable(); + + /** + * + * + *
    +   * Optional. Represents a list variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable list_string_variable = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariableOrBuilder + getListStringVariableOrBuilder(); + + /** + * + * + *
    +   * Optional. Represents a long variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the longVariable field is set. + */ + boolean hasLongVariable(); + + /** + * + * + *
    +   * Optional. Represents a long variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The longVariable. + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable + getLongVariable(); + + /** + * + * + *
    +   * Optional. Represents a long variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable long_variable = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariableOrBuilder + getLongVariableOrBuilder(); + + /** + * + * + *
    +   * Optional. Represents a string variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stringVariable field is set. + */ + boolean hasStringVariable(); + + /** + * + * + *
    +   * Optional. Represents a string variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stringVariable. + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable + getStringVariable(); + + /** + * + * + *
    +   * Optional. Represents a string variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable string_variable = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariableOrBuilder + getStringVariableOrBuilder(); + + /** + * + * + *
    +   * Optional. Represents a url variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the urlVariable field is set. + */ + boolean hasUrlVariable(); + + /** + * + * + *
    +   * Optional. Represents a url variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The urlVariable. + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable getUrlVariable(); + + /** + * + * + *
    +   * Optional. Represents a url variable defined in a creative template.
    +   * 
    + * + * + * .google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariable url_variable = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CreativeTemplateVariable.UrlCreativeTemplateVariableOrBuilder + getUrlVariableOrBuilder(); + + /** + * + * + *
    +   * Required. Label that is displayed to users when creating from the creative
    +   * template. This has a maximum length of 127 characters.
    +   * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the label field is set. + */ + boolean hasLabel(); + + /** + * + * + *
    +   * Required. Label that is displayed to users when creating from the creative
    +   * template. This has a maximum length of 127 characters.
    +   * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * + * + *
    +   * Required. Label that is displayed to users when creating from the creative
    +   * template. This has a maximum length of 127 characters.
    +   * 
    + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + + /** + * + * + *
    +   * Output only. Unique name used to identify the variable. This attribute is
    +   * assigned by Google when a creative template variable is created.
    +   * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the uniqueDisplayName field is set. + */ + boolean hasUniqueDisplayName(); + + /** + * + * + *
    +   * Output only. Unique name used to identify the variable. This attribute is
    +   * assigned by Google when a creative template variable is created.
    +   * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The uniqueDisplayName. + */ + java.lang.String getUniqueDisplayName(); + + /** + * + * + *
    +   * Output only. Unique name used to identify the variable. This attribute is
    +   * assigned by Google when a creative template variable is created.
    +   * 
    + * + * optional string unique_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for uniqueDisplayName. + */ + com.google.protobuf.ByteString getUniqueDisplayNameBytes(); + + /** + * + * + *
    +   * Required. A descriptive help text that is displayed to users along with the
    +   * label. This attribute has a maximum length of 255 characters.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
    +   * Required. A descriptive help text that is displayed to users along with the
    +   * label. This attribute has a maximum length of 255 characters.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
    +   * Required. A descriptive help text that is displayed to users along with the
    +   * label. This attribute has a maximum length of 255 characters.
    +   * 
    + * + * optional string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
    +   * Optional. `True` if this variable is required to be filled in by users when
    +   * creating a creative from the creative template.
    +   * 
    + * + * optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the required field is set. + */ + boolean hasRequired(); + + /** + * + * + *
    +   * Optional. `True` if this variable is required to be filled in by users when
    +   * creating a creative from the creative template.
    +   * 
    + * + * optional bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The required. + */ + boolean getRequired(); + + com.google.ads.admanager.v1.CreativeTemplateVariable.SubTypeCase getSubTypeCase(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableUrlTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableUrlTypeEnum.java new file mode 100644 index 000000000000..fef3305e7e01 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableUrlTypeEnum.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_variable_url_type_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [CreativeTemplateVariableUrlType][google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum} + */ +public final class CreativeTemplateVariableUrlTypeEnum + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum) + CreativeTemplateVariableUrlTypeEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreativeTemplateVariableUrlTypeEnum.newBuilder() to construct. + private CreativeTemplateVariableUrlTypeEnum( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreativeTemplateVariableUrlTypeEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreativeTemplateVariableUrlTypeEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnumProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariableUrlTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnumProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariableUrlTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.class, + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.Builder.class); + } + + /** + * + * + *
    +   * Types of URLs that a UrlCreativeTemplateVariable can represent.
    +   * 
    + * + * Protobuf enum {@code + * google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType} + */ + public enum CreativeTemplateVariableUrlType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED = 0; + */ + CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Click tracking URL.
    +     * 
    + * + * CLICK_TRACKER = 1; + */ + CLICK_TRACKER(1), + /** + * + * + *
    +     * Deep-link URL.
    +     * 
    + * + * DEEPLINK = 2; + */ + DEEPLINK(2), + /** + * + * + *
    +     * Impression tracking URL.
    +     * 
    + * + * IMPRESSION_TRACKER = 3; + */ + IMPRESSION_TRACKER(3), + /** + * + * + *
    +     * Standard HTTP URL.
    +     * 
    + * + * STANDARD_HTTP = 4; + */ + STANDARD_HTTP(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED = 0; + */ + public static final int CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Click tracking URL.
    +     * 
    + * + * CLICK_TRACKER = 1; + */ + public static final int CLICK_TRACKER_VALUE = 1; + + /** + * + * + *
    +     * Deep-link URL.
    +     * 
    + * + * DEEPLINK = 2; + */ + public static final int DEEPLINK_VALUE = 2; + + /** + * + * + *
    +     * Impression tracking URL.
    +     * 
    + * + * IMPRESSION_TRACKER = 3; + */ + public static final int IMPRESSION_TRACKER_VALUE = 3; + + /** + * + * + *
    +     * Standard HTTP URL.
    +     * 
    + * + * STANDARD_HTTP = 4; + */ + public static final int STANDARD_HTTP_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 CreativeTemplateVariableUrlType 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 CreativeTemplateVariableUrlType forNumber(int value) { + switch (value) { + case 0: + return CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED; + case 1: + return CLICK_TRACKER; + case 2: + return DEEPLINK; + case 3: + return IMPRESSION_TRACKER; + case 4: + return STANDARD_HTTP; + 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 CreativeTemplateVariableUrlType findValueByNumber(int number) { + return CreativeTemplateVariableUrlType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CreativeTemplateVariableUrlType[] VALUES = values(); + + public static CreativeTemplateVariableUrlType 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 CreativeTemplateVariableUrlType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType) + } + + 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.admanager.v1.CreativeTemplateVariableUrlTypeEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum other = + (com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum) 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.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum 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.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum 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.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [CreativeTemplateVariableUrlType][google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum) + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnumProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariableUrlTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnumProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariableUrlTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.class, + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.CreativeTemplateVariableUrlTypeEnumProto + .internal_static_google_ads_admanager_v1_CreativeTemplateVariableUrlTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum build() { + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum buildPartial() { + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum result = + new com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum) { + return mergeFrom((com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum other) { + if (other + == com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum) + private static final com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum(); + } + + public static com.google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreativeTemplateVariableUrlTypeEnum 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.admanager.v1.CreativeTemplateVariableUrlTypeEnum + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableUrlTypeEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableUrlTypeEnumOrBuilder.java new file mode 100644 index 000000000000..acfd34c56638 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableUrlTypeEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_variable_url_type_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreativeTemplateVariableUrlTypeEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableUrlTypeEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableUrlTypeEnumProto.java new file mode 100644 index 000000000000..beab04914a46 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateVariableUrlTypeEnumProto.java @@ -0,0 +1,71 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_variable_url_type_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class CreativeTemplateVariableUrlTypeEnumProto { + private CreativeTemplateVariableUrlTypeEnumProto() {} + + 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_admanager_v1_CreativeTemplateVariableUrlTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreativeTemplateVariableUrlTypeEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nFgoogle/ads/admanager/v1/creative_templ" + + "ate_variable_url_type_enum.proto\022\027google" + + ".ads.admanager.v1\"\312\001\n#CreativeTemplateVa" + + "riableUrlTypeEnum\"\242\001\n\037CreativeTemplateVa" + + "riableUrlType\0223\n/CREATIVE_TEMPLATE_VARIA" + + "BLE_URL_TYPE_UNSPECIFIED\020\000\022\021\n\rCLICK_TRAC" + + "KER\020\001\022\014\n\010DEEPLINK\020\002\022\026\n\022IMPRESSION_TRACKE" + + "R\020\003\022\021\n\rSTANDARD_HTTP\020\004B\334\001\n\033com.google.ad" + + "s.admanager.v1B(CreativeTemplateVariable" + + "UrlTypeEnumProtoP\001Z@google.golang.org/ge" + + "nproto/googleapis/ads/admanager/v1;adman" + + "ager\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\" + + "Ads\\AdManager\\V1\352\002\032Google::Ads::AdManage" + + "r::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_CreativeTemplateVariableUrlTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_CreativeTemplateVariableUrlTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreativeTemplateVariableUrlTypeEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java index dec41ad48786..dc885e47c81e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java @@ -73,15 +73,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_statusB\016\n" + "\014_entity_typeB\014\n\n" + "_data_typeB\r\n" - + "\013_visibility\"S\n" - + "\021CustomFieldOption\022#\n" - + "\026custom_field_option_id\030\001 \001(\003B\003\340A\003\022\031\n" + + "\013_visibility\"V\n" + + "\021CustomFieldOption\022&\n" + + "\026custom_field_option_id\030\001 \001(\003B\006\340A\001\340A\007\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002B\314\001\n" - + "\033com.google.ads.admanager.v1B\030CustomFieldMessagesPro" - + "toP\001Z@google.golang.org/genproto/googlea" - + "pis/ads/admanager/v1;admanager\252\002\027Google." - + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" - + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\033com.google.ads.admanager.v1B\030CustomFieldMessages" + + "ProtoP\001Z@google.golang.org/genproto/goog" + + "leapis/ads/admanager/v1;admanager\252\002\027Goog" + + "le.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManag" + + "er\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOption.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOption.java index 72719556b4c4..c4198223802b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOption.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOption.java @@ -71,10 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Output only. `CustomFieldOption` ID.
    +   * Optional. Non-empty default. `CustomFieldOption` ID.
        * 
    * - * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * * * @return The customFieldOptionId. */ @@ -510,10 +512,12 @@ public Builder mergeFrom( * * *
    -     * Output only. `CustomFieldOption` ID.
    +     * Optional. Non-empty default. `CustomFieldOption` ID.
          * 
    * - * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * * * @return The customFieldOptionId. */ @@ -526,10 +530,12 @@ public long getCustomFieldOptionId() { * * *
    -     * Output only. `CustomFieldOption` ID.
    +     * Optional. Non-empty default. `CustomFieldOption` ID.
          * 
    * - * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * * * @param value The customFieldOptionId to set. * @return This builder for chaining. @@ -546,10 +552,12 @@ public Builder setCustomFieldOptionId(long value) { * * *
    -     * Output only. `CustomFieldOption` ID.
    +     * Optional. Non-empty default. `CustomFieldOption` ID.
          * 
    * - * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * * * @return This builder for chaining. */ diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOptionOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOptionOrBuilder.java index a3bae712a017..146e0a4ae90f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOptionOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOptionOrBuilder.java @@ -28,10 +28,12 @@ public interface CustomFieldOptionOrBuilder * * *
    -   * Output only. `CustomFieldOption` ID.
    +   * Optional. Non-empty default. `CustomFieldOption` ID.
        * 
    * - * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * * * @return The customFieldOptionId. */ diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java index 753e70fb67e6..5ec0d353af27 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java @@ -40,6 +40,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_admanager_v1_ListCustomFieldsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_ListCustomFieldsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -54,7 +94,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ervice.proto\022\027google.ads.admanager.v1\0323g" + "oogle/ads/admanager/v1/custom_field_messages.proto\032\034google/api/annotations.proto" + "\032\027google/api/client.proto\032\037google/api/fi" - + "eld_behavior.proto\032\031google/api/resource.proto\"S\n" + + "eld_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"S\n" + "\025GetCustomFieldRequest\022:\n" + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + "$admanager.googleapis.com/CustomField\"\303\001\n" @@ -66,19 +107,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + "\004skip\030\006 \001(\005B\003\340A\001\"\204\001\n" - + "\030ListCustomFieldsResponse\022;\n" - + "\r" + + "\030ListCustomFieldsResponse\022;\n\r" + "custom_fields\030\001 \003(\0132$.google.ads.admanager.v1.CustomField\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\254\003\n" + + "\017next_page_token\030\002 \001(\t\022\022\n" + + "\n" + + "total_size\030\003 \001(\005\"\225\001\n" + + "\030CreateCustomFieldRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022?\n" + + "\014custom_field\030\002" + + " \001(\0132$.google.ads.admanager.v1.CustomFieldB\003\340A\002\"\244\001\n" + + "\036BatchCreateCustomFieldsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022H\n" + + "\010requests\030\002 \003(\013" + + "21.google.ads.admanager.v1.CreateCustomFieldRequestB\003\340A\002\"^\n" + + "\037BatchCreateCustomFieldsResponse\022;\n\r" + + "custom_fields\030\001 \003(\0132$.google.ads.admanager.v1.CustomField\"\221\001\n" + + "\030UpdateCustomFieldRequest\022?\n" + + "\014custom_field\030\001 " + + "\001(\0132$.google.ads.admanager.v1.CustomFieldB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\244\001\n" + + "\036BatchUpdateCustomFieldsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022H\n" + + "\010requests\030\002" + + " \003(\01321.google.ads.admanager.v1.UpdateCustomFieldRequestB\003\340A\002\"^\n" + + "\037BatchUpdateCustomFieldsResponse\022;\n\r" + + "custom_fields\030\001 \003(\0132$.google.ads.admanager.v1.CustomField\"\231\001\n" + + " BatchActivateCustomFieldsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022;\n" + + "\005names\030\003 \003(\tB,\340A\002\372A&\n" + + "$admanager.googleapis.com/CustomField\"#\n" + + "!BatchActivateCustomFieldsResponse\"\233\001\n" + + "\"BatchDeactivateCustomFieldsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022;\n" + + "\005names\030\003 \003(\tB,\340A\002\372A&\n" + + "$admanager.googleapis.com/CustomField\"%\n" + + "#BatchDeactivateCustomFieldsResponse2\312\r\n" + "\022CustomFieldService\022\233\001\n" - + "\016GetCustomField\022..google.ads.admanager.v1.GetCustomFieldRequest\032$.goog" - + "le.ads.admanager.v1.CustomField\"3\332A\004name" - + "\202\323\344\223\002&\022$/v1/{name=networks/*/customFields/*}\022\256\001\n" - + "\020ListCustomFields\0220.google.ads.admanager.v1.ListCustomFieldsRequest\0321.go" - + "ogle.ads.admanager.v1.ListCustomFieldsRe" - + "sponse\"5\332A\006parent\202\323\344\223\002&\022$/v1/{parent=net" - + "works/*}/customFields\032G\312A\030admanager.goog" + + "\016GetCustomField\022..google.ads.admanager.v1.GetCustomFieldRequ" + + "est\032$.google.ads.admanager.v1.CustomFiel" + + "d\"3\332A\004name\202\323\344\223\002&\022$/v1/{name=networks/*/customFields/*}\022\256\001\n" + + "\020ListCustomFields\0220.google.ads.admanager.v1.ListCustomFieldsRe" + + "quest\0321.google.ads.admanager.v1.ListCust" + + "omFieldsResponse\"5\332A\006parent\202\323\344\223\002&\022$/v1/{parent=networks/*}/customFields\022\276\001\n" + + "\021CreateCustomField\0221.google.ads.admanager.v1." + + "CreateCustomFieldRequest\032$.google.ads.ad" + + "manager.v1.CustomField\"P\332A\023parent,custom" + + "_field\202\323\344\223\0024\"$/v1/{parent=networks/*}/customFields:\014custom_field\022\333\001\n" + + "\027BatchCreateCustomFields\0227.google.ads.admanager.v1.B" + + "atchCreateCustomFieldsRequest\0328.google.ads.admanager.v1.BatchCreateCustomFieldsR" + + "esponse\"M\332A\017parent,requests\202\323\344\223\0025\"0/v1/{" + + "parent=networks/*}/customFields:batchCreate:\001*\022\320\001\n" + + "\021UpdateCustomField\0221.google.ads.admanager.v1.UpdateCustomFieldRequest\032" + + "$.google.ads.admanager.v1.CustomField\"b\332" + + "A\030custom_field,update_mask\202\323\344\223\002A21/v1/{c" + + "ustom_field.name=networks/*/customFields/*}:\014custom_field\022\333\001\n" + + "\027BatchUpdateCustomFields\0227.google.ads.admanager.v1.BatchUpd" + + "ateCustomFieldsRequest\0328.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse" + + "\"M\332A\017parent,requests\202\323\344\223\0025\"0/v1/{parent=" + + "networks/*}/customFields:batchUpdate:\001*\022\340\001\n" + + "\031BatchActivateCustomFields\0229.google.ads.admanager.v1.BatchActivateCustomField" + + "sRequest\032:.google.ads.admanager.v1.Batch" + + "ActivateCustomFieldsResponse\"L\332A\014parent," + + "names\202\323\344\223\0027\"2/v1/{parent=networks/*}/customFields:batchActivate:\001*\022\350\001\n" + + "\033BatchDeactivateCustomFields\022;.google.ads.admanage" + + "r.v1.BatchDeactivateCustomFieldsRequest\032<.google.ads.admanager.v1.BatchDeactivat" + + "eCustomFieldsResponse\"N\332A\014parent,names\202\323" + + "\344\223\0029\"4/v1/{parent=networks/*}/customFiel" + + "ds:batchDeactivate:\001*\032G\312A\030admanager.goog" + "leapis.com\322A)https://www.googleapis.com/auth/admanagerB\313\001\n" + "\033com.google.ads.admanager.v1B\027CustomFieldServiceProtoP\001Z@googl" + "e.golang.org/genproto/googleapis/ads/adm" @@ -95,6 +196,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), }); internal_static_google_ads_admanager_v1_GetCustomFieldRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -120,6 +222,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CustomFields", "NextPageToken", "TotalSize", }); + internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreateCustomFieldRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomField", + }); + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateCustomFieldsResponse_descriptor, + new java.lang.String[] { + "CustomFields", + }); + internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_descriptor, + new java.lang.String[] { + "CustomField", "UpdateMask", + }); + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateCustomFieldsResponse_descriptor, + new java.lang.String[] { + "CustomFields", + }); + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivateCustomFieldsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateCustomFieldsResponse_descriptor, + new java.lang.String[] {}); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -135,6 +313,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClause.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClause.java index 17db349f52f1..7781a8fa263b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClause.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClause.java @@ -41,6 +41,8 @@ private CustomTargetingClause(com.google.protobuf.GeneratedMessageV3.Builder private CustomTargetingClause() { customTargetingLiterals_ = java.util.Collections.emptyList(); + audienceSegmentTargetings_ = java.util.Collections.emptyList(); + cmsMetadataTargetings_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -153,6 +155,184 @@ public com.google.ads.admanager.v1.CustomTargetingLiteral getCustomTargetingLite return customTargetingLiterals_.get(index); } + public static final int AUDIENCE_SEGMENT_TARGETINGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + audienceSegmentTargetings_; + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAudienceSegmentTargetingsList() { + return audienceSegmentTargetings_; + } + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAudienceSegmentTargetingsOrBuilderList() { + return audienceSegmentTargetings_; + } + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAudienceSegmentTargetingsCount() { + return audienceSegmentTargetings_.size(); + } + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegmentTargeting getAudienceSegmentTargetings( + int index) { + return audienceSegmentTargetings_.get(index); + } + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegmentTargetingOrBuilder + getAudienceSegmentTargetingsOrBuilder(int index) { + return audienceSegmentTargetings_.get(index); + } + + public static final int CMS_METADATA_TARGETINGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List cmsMetadataTargetings_; + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCmsMetadataTargetingsList() { + return cmsMetadataTargetings_; + } + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCmsMetadataTargetingsOrBuilderList() { + return cmsMetadataTargetings_; + } + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCmsMetadataTargetingsCount() { + return cmsMetadataTargetings_.size(); + } + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataTargeting getCmsMetadataTargetings(int index) { + return cmsMetadataTargetings_.get(index); + } + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataTargetingOrBuilder + getCmsMetadataTargetingsOrBuilder(int index) { + return cmsMetadataTargetings_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -170,6 +350,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < customTargetingLiterals_.size(); i++) { output.writeMessage(1, customTargetingLiterals_.get(i)); } + for (int i = 0; i < audienceSegmentTargetings_.size(); i++) { + output.writeMessage(2, audienceSegmentTargetings_.get(i)); + } + for (int i = 0; i < cmsMetadataTargetings_.size(); i++) { + output.writeMessage(3, cmsMetadataTargetings_.get(i)); + } getUnknownFields().writeTo(output); } @@ -184,6 +370,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, customTargetingLiterals_.get(i)); } + for (int i = 0; i < audienceSegmentTargetings_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, audienceSegmentTargetings_.get(i)); + } + for (int i = 0; i < cmsMetadataTargetings_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, cmsMetadataTargetings_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -202,6 +398,9 @@ public boolean equals(final java.lang.Object obj) { if (!getCustomTargetingLiteralsList().equals(other.getCustomTargetingLiteralsList())) return false; + if (!getAudienceSegmentTargetingsList().equals(other.getAudienceSegmentTargetingsList())) + return false; + if (!getCmsMetadataTargetingsList().equals(other.getCmsMetadataTargetingsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -217,6 +416,14 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_TARGETING_LITERALS_FIELD_NUMBER; hash = (53 * hash) + getCustomTargetingLiteralsList().hashCode(); } + if (getAudienceSegmentTargetingsCount() > 0) { + hash = (37 * hash) + AUDIENCE_SEGMENT_TARGETINGS_FIELD_NUMBER; + hash = (53 * hash) + getAudienceSegmentTargetingsList().hashCode(); + } + if (getCmsMetadataTargetingsCount() > 0) { + hash = (37 * hash) + CMS_METADATA_TARGETINGS_FIELD_NUMBER; + hash = (53 * hash) + getCmsMetadataTargetingsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -364,6 +571,20 @@ public Builder clear() { customTargetingLiteralsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + if (audienceSegmentTargetingsBuilder_ == null) { + audienceSegmentTargetings_ = java.util.Collections.emptyList(); + } else { + audienceSegmentTargetings_ = null; + audienceSegmentTargetingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (cmsMetadataTargetingsBuilder_ == null) { + cmsMetadataTargetings_ = java.util.Collections.emptyList(); + } else { + cmsMetadataTargetings_ = null; + cmsMetadataTargetingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -411,6 +632,25 @@ private void buildPartialRepeatedFields( } else { result.customTargetingLiterals_ = customTargetingLiteralsBuilder_.build(); } + if (audienceSegmentTargetingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + audienceSegmentTargetings_ = + java.util.Collections.unmodifiableList(audienceSegmentTargetings_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.audienceSegmentTargetings_ = audienceSegmentTargetings_; + } else { + result.audienceSegmentTargetings_ = audienceSegmentTargetingsBuilder_.build(); + } + if (cmsMetadataTargetingsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + cmsMetadataTargetings_ = java.util.Collections.unmodifiableList(cmsMetadataTargetings_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.cmsMetadataTargetings_ = cmsMetadataTargetings_; + } else { + result.cmsMetadataTargetings_ = cmsMetadataTargetingsBuilder_.build(); + } } private void buildPartial0(com.google.ads.admanager.v1.CustomTargetingClause result) { @@ -490,6 +730,60 @@ public Builder mergeFrom(com.google.ads.admanager.v1.CustomTargetingClause other } } } + if (audienceSegmentTargetingsBuilder_ == null) { + if (!other.audienceSegmentTargetings_.isEmpty()) { + if (audienceSegmentTargetings_.isEmpty()) { + audienceSegmentTargetings_ = other.audienceSegmentTargetings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAudienceSegmentTargetingsIsMutable(); + audienceSegmentTargetings_.addAll(other.audienceSegmentTargetings_); + } + onChanged(); + } + } else { + if (!other.audienceSegmentTargetings_.isEmpty()) { + if (audienceSegmentTargetingsBuilder_.isEmpty()) { + audienceSegmentTargetingsBuilder_.dispose(); + audienceSegmentTargetingsBuilder_ = null; + audienceSegmentTargetings_ = other.audienceSegmentTargetings_; + bitField0_ = (bitField0_ & ~0x00000002); + audienceSegmentTargetingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAudienceSegmentTargetingsFieldBuilder() + : null; + } else { + audienceSegmentTargetingsBuilder_.addAllMessages(other.audienceSegmentTargetings_); + } + } + } + if (cmsMetadataTargetingsBuilder_ == null) { + if (!other.cmsMetadataTargetings_.isEmpty()) { + if (cmsMetadataTargetings_.isEmpty()) { + cmsMetadataTargetings_ = other.cmsMetadataTargetings_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureCmsMetadataTargetingsIsMutable(); + cmsMetadataTargetings_.addAll(other.cmsMetadataTargetings_); + } + onChanged(); + } + } else { + if (!other.cmsMetadataTargetings_.isEmpty()) { + if (cmsMetadataTargetingsBuilder_.isEmpty()) { + cmsMetadataTargetingsBuilder_.dispose(); + cmsMetadataTargetingsBuilder_ = null; + cmsMetadataTargetings_ = other.cmsMetadataTargetings_; + bitField0_ = (bitField0_ & ~0x00000004); + cmsMetadataTargetingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCmsMetadataTargetingsFieldBuilder() + : null; + } else { + cmsMetadataTargetingsBuilder_.addAllMessages(other.cmsMetadataTargetings_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -530,6 +824,34 @@ public Builder mergeFrom( } break; } // case 10 + case 18: + { + com.google.ads.admanager.v1.AudienceSegmentTargeting m = + input.readMessage( + com.google.ads.admanager.v1.AudienceSegmentTargeting.parser(), + extensionRegistry); + if (audienceSegmentTargetingsBuilder_ == null) { + ensureAudienceSegmentTargetingsIsMutable(); + audienceSegmentTargetings_.add(m); + } else { + audienceSegmentTargetingsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.ads.admanager.v1.CmsMetadataTargeting m = + input.readMessage( + com.google.ads.admanager.v1.CmsMetadataTargeting.parser(), + extensionRegistry); + if (cmsMetadataTargetingsBuilder_ == null) { + ensureCmsMetadataTargetingsIsMutable(); + cmsMetadataTargetings_.add(m); + } else { + cmsMetadataTargetingsBuilder_.addMessage(m); + } + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -967,6 +1289,840 @@ public Builder removeCustomTargetingLiterals(int index) { return customTargetingLiteralsBuilder_; } + private java.util.List + audienceSegmentTargetings_ = java.util.Collections.emptyList(); + + private void ensureAudienceSegmentTargetingsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + audienceSegmentTargetings_ = + new java.util.ArrayList( + audienceSegmentTargetings_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AudienceSegmentTargeting, + com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder, + com.google.ads.admanager.v1.AudienceSegmentTargetingOrBuilder> + audienceSegmentTargetingsBuilder_; + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAudienceSegmentTargetingsList() { + if (audienceSegmentTargetingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(audienceSegmentTargetings_); + } else { + return audienceSegmentTargetingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAudienceSegmentTargetingsCount() { + if (audienceSegmentTargetingsBuilder_ == null) { + return audienceSegmentTargetings_.size(); + } else { + return audienceSegmentTargetingsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AudienceSegmentTargeting getAudienceSegmentTargetings( + int index) { + if (audienceSegmentTargetingsBuilder_ == null) { + return audienceSegmentTargetings_.get(index); + } else { + return audienceSegmentTargetingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAudienceSegmentTargetings( + int index, com.google.ads.admanager.v1.AudienceSegmentTargeting value) { + if (audienceSegmentTargetingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudienceSegmentTargetingsIsMutable(); + audienceSegmentTargetings_.set(index, value); + onChanged(); + } else { + audienceSegmentTargetingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAudienceSegmentTargetings( + int index, com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder builderForValue) { + if (audienceSegmentTargetingsBuilder_ == null) { + ensureAudienceSegmentTargetingsIsMutable(); + audienceSegmentTargetings_.set(index, builderForValue.build()); + onChanged(); + } else { + audienceSegmentTargetingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAudienceSegmentTargetings( + com.google.ads.admanager.v1.AudienceSegmentTargeting value) { + if (audienceSegmentTargetingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudienceSegmentTargetingsIsMutable(); + audienceSegmentTargetings_.add(value); + onChanged(); + } else { + audienceSegmentTargetingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAudienceSegmentTargetings( + int index, com.google.ads.admanager.v1.AudienceSegmentTargeting value) { + if (audienceSegmentTargetingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudienceSegmentTargetingsIsMutable(); + audienceSegmentTargetings_.add(index, value); + onChanged(); + } else { + audienceSegmentTargetingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAudienceSegmentTargetings( + com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder builderForValue) { + if (audienceSegmentTargetingsBuilder_ == null) { + ensureAudienceSegmentTargetingsIsMutable(); + audienceSegmentTargetings_.add(builderForValue.build()); + onChanged(); + } else { + audienceSegmentTargetingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAudienceSegmentTargetings( + int index, com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder builderForValue) { + if (audienceSegmentTargetingsBuilder_ == null) { + ensureAudienceSegmentTargetingsIsMutable(); + audienceSegmentTargetings_.add(index, builderForValue.build()); + onChanged(); + } else { + audienceSegmentTargetingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAudienceSegmentTargetings( + java.lang.Iterable values) { + if (audienceSegmentTargetingsBuilder_ == null) { + ensureAudienceSegmentTargetingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audienceSegmentTargetings_); + onChanged(); + } else { + audienceSegmentTargetingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAudienceSegmentTargetings() { + if (audienceSegmentTargetingsBuilder_ == null) { + audienceSegmentTargetings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + audienceSegmentTargetingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAudienceSegmentTargetings(int index) { + if (audienceSegmentTargetingsBuilder_ == null) { + ensureAudienceSegmentTargetingsIsMutable(); + audienceSegmentTargetings_.remove(index); + onChanged(); + } else { + audienceSegmentTargetingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder + getAudienceSegmentTargetingsBuilder(int index) { + return getAudienceSegmentTargetingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AudienceSegmentTargetingOrBuilder + getAudienceSegmentTargetingsOrBuilder(int index) { + if (audienceSegmentTargetingsBuilder_ == null) { + return audienceSegmentTargetings_.get(index); + } else { + return audienceSegmentTargetingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAudienceSegmentTargetingsOrBuilderList() { + if (audienceSegmentTargetingsBuilder_ != null) { + return audienceSegmentTargetingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(audienceSegmentTargetings_); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder + addAudienceSegmentTargetingsBuilder() { + return getAudienceSegmentTargetingsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.AudienceSegmentTargeting.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder + addAudienceSegmentTargetingsBuilder(int index) { + return getAudienceSegmentTargetingsFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.AudienceSegmentTargeting.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for audience segments.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAudienceSegmentTargetingsBuilderList() { + return getAudienceSegmentTargetingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AudienceSegmentTargeting, + com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder, + com.google.ads.admanager.v1.AudienceSegmentTargetingOrBuilder> + getAudienceSegmentTargetingsFieldBuilder() { + if (audienceSegmentTargetingsBuilder_ == null) { + audienceSegmentTargetingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AudienceSegmentTargeting, + com.google.ads.admanager.v1.AudienceSegmentTargeting.Builder, + com.google.ads.admanager.v1.AudienceSegmentTargetingOrBuilder>( + audienceSegmentTargetings_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + audienceSegmentTargetings_ = null; + } + return audienceSegmentTargetingsBuilder_; + } + + private java.util.List + cmsMetadataTargetings_ = java.util.Collections.emptyList(); + + private void ensureCmsMetadataTargetingsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + cmsMetadataTargetings_ = + new java.util.ArrayList( + cmsMetadataTargetings_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CmsMetadataTargeting, + com.google.ads.admanager.v1.CmsMetadataTargeting.Builder, + com.google.ads.admanager.v1.CmsMetadataTargetingOrBuilder> + cmsMetadataTargetingsBuilder_; + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCmsMetadataTargetingsList() { + if (cmsMetadataTargetingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cmsMetadataTargetings_); + } else { + return cmsMetadataTargetingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCmsMetadataTargetingsCount() { + if (cmsMetadataTargetingsBuilder_ == null) { + return cmsMetadataTargetings_.size(); + } else { + return cmsMetadataTargetingsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CmsMetadataTargeting getCmsMetadataTargetings(int index) { + if (cmsMetadataTargetingsBuilder_ == null) { + return cmsMetadataTargetings_.get(index); + } else { + return cmsMetadataTargetingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCmsMetadataTargetings( + int index, com.google.ads.admanager.v1.CmsMetadataTargeting value) { + if (cmsMetadataTargetingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataTargetingsIsMutable(); + cmsMetadataTargetings_.set(index, value); + onChanged(); + } else { + cmsMetadataTargetingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCmsMetadataTargetings( + int index, com.google.ads.admanager.v1.CmsMetadataTargeting.Builder builderForValue) { + if (cmsMetadataTargetingsBuilder_ == null) { + ensureCmsMetadataTargetingsIsMutable(); + cmsMetadataTargetings_.set(index, builderForValue.build()); + onChanged(); + } else { + cmsMetadataTargetingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCmsMetadataTargetings( + com.google.ads.admanager.v1.CmsMetadataTargeting value) { + if (cmsMetadataTargetingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataTargetingsIsMutable(); + cmsMetadataTargetings_.add(value); + onChanged(); + } else { + cmsMetadataTargetingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCmsMetadataTargetings( + int index, com.google.ads.admanager.v1.CmsMetadataTargeting value) { + if (cmsMetadataTargetingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataTargetingsIsMutable(); + cmsMetadataTargetings_.add(index, value); + onChanged(); + } else { + cmsMetadataTargetingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCmsMetadataTargetings( + com.google.ads.admanager.v1.CmsMetadataTargeting.Builder builderForValue) { + if (cmsMetadataTargetingsBuilder_ == null) { + ensureCmsMetadataTargetingsIsMutable(); + cmsMetadataTargetings_.add(builderForValue.build()); + onChanged(); + } else { + cmsMetadataTargetingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCmsMetadataTargetings( + int index, com.google.ads.admanager.v1.CmsMetadataTargeting.Builder builderForValue) { + if (cmsMetadataTargetingsBuilder_ == null) { + ensureCmsMetadataTargetingsIsMutable(); + cmsMetadataTargetings_.add(index, builderForValue.build()); + onChanged(); + } else { + cmsMetadataTargetingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCmsMetadataTargetings( + java.lang.Iterable values) { + if (cmsMetadataTargetingsBuilder_ == null) { + ensureCmsMetadataTargetingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cmsMetadataTargetings_); + onChanged(); + } else { + cmsMetadataTargetingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCmsMetadataTargetings() { + if (cmsMetadataTargetingsBuilder_ == null) { + cmsMetadataTargetings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + cmsMetadataTargetingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCmsMetadataTargetings(int index) { + if (cmsMetadataTargetingsBuilder_ == null) { + ensureCmsMetadataTargetingsIsMutable(); + cmsMetadataTargetings_.remove(index); + onChanged(); + } else { + cmsMetadataTargetingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CmsMetadataTargeting.Builder getCmsMetadataTargetingsBuilder( + int index) { + return getCmsMetadataTargetingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CmsMetadataTargetingOrBuilder + getCmsMetadataTargetingsOrBuilder(int index) { + if (cmsMetadataTargetingsBuilder_ == null) { + return cmsMetadataTargetings_.get(index); + } else { + return cmsMetadataTargetingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCmsMetadataTargetingsOrBuilderList() { + if (cmsMetadataTargetingsBuilder_ != null) { + return cmsMetadataTargetingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cmsMetadataTargetings_); + } + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CmsMetadataTargeting.Builder + addCmsMetadataTargetingsBuilder() { + return getCmsMetadataTargetingsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CmsMetadataTargeting.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CmsMetadataTargeting.Builder addCmsMetadataTargetingsBuilder( + int index) { + return getCmsMetadataTargetingsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CmsMetadataTargeting.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. Leaf targeting expressions for cms metadata.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCmsMetadataTargetingsBuilderList() { + return getCmsMetadataTargetingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CmsMetadataTargeting, + com.google.ads.admanager.v1.CmsMetadataTargeting.Builder, + com.google.ads.admanager.v1.CmsMetadataTargetingOrBuilder> + getCmsMetadataTargetingsFieldBuilder() { + if (cmsMetadataTargetingsBuilder_ == null) { + cmsMetadataTargetingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CmsMetadataTargeting, + com.google.ads.admanager.v1.CmsMetadataTargeting.Builder, + com.google.ads.admanager.v1.CmsMetadataTargetingOrBuilder>( + cmsMetadataTargetings_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + cmsMetadataTargetings_ = null; + } + return cmsMetadataTargetingsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClauseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClauseOrBuilder.java index 715d94ecee3f..0883d663c95f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClauseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClauseOrBuilder.java @@ -91,4 +91,139 @@ public interface CustomTargetingClauseOrBuilder */ com.google.ads.admanager.v1.CustomTargetingLiteralOrBuilder getCustomTargetingLiteralsOrBuilder( int index); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAudienceSegmentTargetingsList(); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.AudienceSegmentTargeting getAudienceSegmentTargetings(int index); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAudienceSegmentTargetingsCount(); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAudienceSegmentTargetingsOrBuilderList(); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for audience segments.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.AudienceSegmentTargeting audience_segment_targetings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.AudienceSegmentTargetingOrBuilder + getAudienceSegmentTargetingsOrBuilder(int index); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCmsMetadataTargetingsList(); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CmsMetadataTargeting getCmsMetadataTargetings(int index); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCmsMetadataTargetingsCount(); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCmsMetadataTargetingsOrBuilderList(); + + /** + * + * + *
    +   * Optional. Leaf targeting expressions for cms metadata.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.CmsMetadataTargeting cms_metadata_targetings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CmsMetadataTargetingOrBuilder getCmsMetadataTargetingsOrBuilder( + int index); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKey.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKey.java index c40c11ef7f89..25b69bccc603 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKey.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKey.java @@ -69,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.CustomTargetingKey.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -136,7 +137,25 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. `CustomTargetingKey` ID. * * - * int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customTargetingKeyId field is set. + */ + @java.lang.Override + public boolean hasCustomTargetingKeyId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. `CustomTargetingKey` ID.
    +   * 
    + * + * optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The customTargetingKeyId. */ @@ -159,7 +178,25 @@ public long getCustomTargetingKeyId() { * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * * - * string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the adTagName field is set. + */ + @java.lang.Override + public boolean hasAdTagName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Immutable. Name of the key. Keys can contain up to 10 characters each. You
    +   * can use alphanumeric characters and symbols other than the following:
    +   * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
    +   * 
    + * + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The adTagName. */ @@ -185,7 +222,7 @@ public java.lang.String getAdTagName() { * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * * - * string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for adTagName. */ @@ -214,7 +251,23 @@ public com.google.protobuf.ByteString getAdTagNameBytes() { * Optional. Descriptive name for the `CustomTargetingKey`. * * - * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. Descriptive name for the `CustomTargetingKey`.
    +   * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -238,7 +291,7 @@ public java.lang.String getDisplayName() { * Optional. Descriptive name for the `CustomTargetingKey`. * * - * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -268,7 +321,27 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Required. Indicates whether users will select from predefined values or
    +   * create new targeting values, while specifying targeting criteria for a line
    +   * item.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for type. @@ -288,7 +361,7 @@ public int getTypeValue() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The type. @@ -314,7 +387,25 @@ public com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKey * * * - * .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Output only. Status of the `CustomTargetingKey`.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -332,7 +423,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -360,7 +451,25 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reportableType field is set. + */ + @java.lang.Override + public boolean hasReportableType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +   * Required. Reportable state of the `CustomTargetingKey`.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for reportableType. @@ -378,7 +487,7 @@ public int getReportableTypeValue() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The reportableType. @@ -415,31 +524,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (customTargetingKeyId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, customTargetingKeyId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adTagName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, adTagName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); } - if (type_ - != com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType - .CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(5, type_); } - if (status_ - != com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus - .CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(6, status_); } - if (reportableType_ - != com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum - .CustomTargetingKeyReportableType.CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeEnum(7, reportableType_); } getUnknownFields().writeTo(output); @@ -454,31 +554,22 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (customTargetingKeyId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, customTargetingKeyId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adTagName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, adTagName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); } - if (type_ - != com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType - .CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); } - if (status_ - != com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus - .CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, status_); } - if (reportableType_ - != com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum - .CustomTargetingKeyReportableType.CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, reportableType_); } size += getUnknownFields().getSerializedSize(); @@ -498,12 +589,30 @@ public boolean equals(final java.lang.Object obj) { (com.google.ads.admanager.v1.CustomTargetingKey) obj; if (!getName().equals(other.getName())) return false; - if (getCustomTargetingKeyId() != other.getCustomTargetingKeyId()) return false; - if (!getAdTagName().equals(other.getAdTagName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (type_ != other.type_) return false; - if (status_ != other.status_) return false; - if (reportableType_ != other.reportableType_) return false; + if (hasCustomTargetingKeyId() != other.hasCustomTargetingKeyId()) return false; + if (hasCustomTargetingKeyId()) { + if (getCustomTargetingKeyId() != other.getCustomTargetingKeyId()) return false; + } + if (hasAdTagName() != other.hasAdTagName()) return false; + if (hasAdTagName()) { + if (!getAdTagName().equals(other.getAdTagName())) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (type_ != other.type_) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasReportableType() != other.hasReportableType()) return false; + if (hasReportableType()) { + if (reportableType_ != other.reportableType_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -517,18 +626,30 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CUSTOM_TARGETING_KEY_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCustomTargetingKeyId()); - hash = (37 * hash) + AD_TAG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAdTagName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + REPORTABLE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + reportableType_; + if (hasCustomTargetingKeyId()) { + hash = (37 * hash) + CUSTOM_TARGETING_KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCustomTargetingKeyId()); + } + if (hasAdTagName()) { + hash = (37 * hash) + AD_TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAdTagName().hashCode(); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasReportableType()) { + hash = (37 * hash) + REPORTABLE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + reportableType_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -715,24 +836,32 @@ private void buildPartial0(com.google.ads.admanager.v1.CustomTargetingKey result if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.customTargetingKeyId_ = customTargetingKeyId_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.adTagName_ = adTagName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.type_ = type_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.status_ = status_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.reportableType_ = reportableType_; + to_bitField0_ |= 0x00000020; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -785,27 +914,27 @@ public Builder mergeFrom(com.google.ads.admanager.v1.CustomTargetingKey other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getCustomTargetingKeyId() != 0L) { + if (other.hasCustomTargetingKeyId()) { setCustomTargetingKeyId(other.getCustomTargetingKeyId()); } - if (!other.getAdTagName().isEmpty()) { + if (other.hasAdTagName()) { adTagName_ = other.adTagName_; bitField0_ |= 0x00000004; onChanged(); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000008; onChanged(); } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); + if (other.hasType()) { + setType(other.getType()); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); + if (other.hasStatus()) { + setStatus(other.getStatus()); } - if (other.reportableType_ != 0) { - setReportableTypeValue(other.getReportableTypeValue()); + if (other.hasReportableType()) { + setReportableType(other.getReportableType()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1024,7 +1153,27 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. `CustomTargetingKey` ID. * * - * int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customTargetingKeyId field is set. + */ + @java.lang.Override + public boolean hasCustomTargetingKeyId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. `CustomTargetingKey` ID.
    +     * 
    + * + * + * optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The customTargetingKeyId. */ @@ -1040,7 +1189,9 @@ public long getCustomTargetingKeyId() { * Output only. `CustomTargetingKey` ID. * * - * int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The customTargetingKeyId to set. * @return This builder for chaining. @@ -1060,7 +1211,9 @@ public Builder setCustomTargetingKeyId(long value) { * Output only. `CustomTargetingKey` ID. * * - * int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1082,7 +1235,24 @@ public Builder clearCustomTargetingKeyId() { * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * * - * string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the adTagName field is set. + */ + public boolean hasAdTagName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Immutable. Name of the key. Keys can contain up to 10 characters each. You
    +     * can use alphanumeric characters and symbols other than the following:
    +     * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
    +     * 
    + * + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The adTagName. */ @@ -1107,7 +1277,7 @@ public java.lang.String getAdTagName() { * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * * - * string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for adTagName. */ @@ -1132,7 +1302,7 @@ public com.google.protobuf.ByteString getAdTagNameBytes() { * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * * - * string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The adTagName to set. * @return This builder for chaining. @@ -1156,7 +1326,7 @@ public Builder setAdTagName(java.lang.String value) { * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * * - * string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -1176,7 +1346,7 @@ public Builder clearAdTagName() { * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * * - * string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for adTagName to set. * @return This builder for chaining. @@ -1201,7 +1371,22 @@ public Builder setAdTagNameBytes(com.google.protobuf.ByteString value) { * Optional. Descriptive name for the `CustomTargetingKey`. * * - * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Optional. Descriptive name for the `CustomTargetingKey`.
    +     * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -1224,7 +1409,7 @@ public java.lang.String getDisplayName() { * Optional. Descriptive name for the `CustomTargetingKey`. * * - * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -1247,7 +1432,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Optional. Descriptive name for the `CustomTargetingKey`. * * - * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The displayName to set. * @return This builder for chaining. @@ -1269,7 +1454,7 @@ public Builder setDisplayName(java.lang.String value) { * Optional. Descriptive name for the `CustomTargetingKey`. * * - * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1287,7 +1472,7 @@ public Builder clearDisplayName() { * Optional. Descriptive name for the `CustomTargetingKey`. * * - * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -1315,7 +1500,27 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * * - * .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Required. Indicates whether users will select from predefined values or
    +     * create new targeting values, while specifying targeting criteria for a line
    +     * item.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for type. @@ -1335,7 +1540,7 @@ public int getTypeValue() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for type to set. @@ -1358,7 +1563,7 @@ public Builder setTypeValue(int value) { * * * - * .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The type. @@ -1384,7 +1589,7 @@ public com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKey * * * - * .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The type to set. @@ -1411,7 +1616,7 @@ public Builder setType( * * * - * .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. @@ -1433,7 +1638,25 @@ public Builder clearType() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Output only. Status of the `CustomTargetingKey`.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -1451,7 +1674,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for status to set. @@ -1472,7 +1695,7 @@ public Builder setStatusValue(int value) { * * * - * .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -1497,7 +1720,7 @@ public Builder setStatusValue(int value) { * * * - * .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The status to set. @@ -1522,7 +1745,7 @@ public Builder setStatus( * * * - * .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -1544,7 +1767,25 @@ public Builder clearStatus() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reportableType field is set. + */ + @java.lang.Override + public boolean hasReportableType() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +     * Required. Reportable state of the `CustomTargetingKey`.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for reportableType. @@ -1562,7 +1803,7 @@ public int getReportableTypeValue() { * * * - * .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for reportableType to set. @@ -1583,7 +1824,7 @@ public Builder setReportableTypeValue(int value) { * * * - * .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The reportableType. @@ -1611,7 +1852,7 @@ public Builder setReportableTypeValue(int value) { * * * - * .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The reportableType to set. @@ -1638,7 +1879,7 @@ public Builder setReportableType( * * * - * .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyMessagesProto.java index adb65d927171..f714e18f8805 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyMessagesProto.java @@ -45,26 +45,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ";google/ads/admanager/v1/custom_targeting_key_messages.proto\022\027google.ads.admana" + "ger.v1\0328google/ads/admanager/v1/custom_t" + "argeting_key_enums.proto\032\037google/api/fie" - + "ld_behavior.proto\032\031google/api/resource.proto\"\345\004\n" + + "ld_behavior.proto\032\031google/api/resource.proto\"\351\005\n" + "\022CustomTargetingKey\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022$\n" - + "\027custom_targeting_key_id\030\002 \001(\003B\003\340A\003\022\030\n" - + "\013ad_tag_name\030\003 \001(\tB\003\340A\005\022\031\n" - + "\014display_name\030\004 \001(\tB\003\340A\001\022]\n" - + "\004type\030\005 \001(\0162J.google" - + ".ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyTypeB\003\340A\002\022c\n" - + "\006status\030\006 \001(\0162N.google.ads.admanager.v1.Custo" - + "mTargetingKeyStatusEnum.CustomTargetingKeyStatusB\003\340A\003\022|\n" - + "\017reportable_type\030\007 \001(\0162^.google.ads.admanager.v1.CustomTargeting" - + "KeyReportableTypeEnum.CustomTargetingKeyReportableTypeB\003\340A\002:\236\001\352A\232\001\n" - + "+admanager.googleapis.com/CustomTargetingKey\022Bnetwork" - + "s/{network_code}/customTargetingKeys/{cu" - + "stom_targeting_key}*\023customTargetingKeys2\022customTargetingKeyB\323\001\n" - + "\033com.google.ads.admanager.v1B\037CustomTargetingKeyMessages" - + "ProtoP\001Z@google.golang.org/genproto/goog" - + "leapis/ads/admanager/v1;admanager\252\002\027Goog" - + "le.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManag" - + "er\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\004name\030\001 \001(\tB\003\340A\010\022)\n" + + "\027custom_targeting_key_id\030\002 \001(\003B\003\340A\003H\000\210\001\001\022\035\n" + + "\013ad_tag_name\030\003 \001(\tB\003\340A\005H\001\210\001\001\022\036\n" + + "\014display_name\030\004 \001(\tB\003\340A\001H\002\210\001\001\022b\n" + + "\004type\030\005 \001(\0162J.google.ads.admanager.v1.CustomT" + + "argetingKeyTypeEnum.CustomTargetingKeyTypeB\003\340A\002H\003\210\001\001\022h\n" + + "\006status\030\006 \001(\0162N.google.ads.admanager.v1.CustomTargetingKeyStatusE" + + "num.CustomTargetingKeyStatusB\003\340A\003H\004\210\001\001\022\201\001\n" + + "\017reportable_type\030\007 \001(\0162^.google.ads.ad" + + "manager.v1.CustomTargetingKeyReportableT" + + "ypeEnum.CustomTargetingKeyReportableTypeB\003\340A\002H\005\210\001\001:\236\001\352A\232\001\n" + + "+admanager.googleapis.com/CustomTargetingKey\022Bnetworks/{networ" + + "k_code}/customTargetingKeys/{custom_targ" + + "eting_key}*\023customTargetingKeys2\022customTargetingKeyB\032\n" + + "\030_custom_targeting_key_idB\016\n" + + "\014_ad_tag_nameB\017\n\r" + + "_display_nameB\007\n" + + "\005_typeB\t\n" + + "\007_statusB\022\n" + + "\020_reportable_typeB\323\001\n" + + "\033com.google.ads.admanager.v1B\037CustomTargetin" + + "gKeyMessagesProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;adma" + + "nager\252\002\027Google.Ads.AdManager.V1\312\002\027Google" + + "\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyOrBuilder.java index 2ad14bc204cc..10fda4af5baf 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyOrBuilder.java @@ -61,7 +61,22 @@ public interface CustomTargetingKeyOrBuilder * Output only. `CustomTargetingKey` ID. * * - * int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customTargetingKeyId field is set. + */ + boolean hasCustomTargetingKeyId(); + + /** + * + * + *
    +   * Output only. `CustomTargetingKey` ID.
    +   * 
    + * + * optional int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The customTargetingKeyId. */ @@ -76,7 +91,22 @@ public interface CustomTargetingKeyOrBuilder * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * * - * string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the adTagName field is set. + */ + boolean hasAdTagName(); + + /** + * + * + *
    +   * Immutable. Name of the key. Keys can contain up to 10 characters each. You
    +   * can use alphanumeric characters and symbols other than the following:
    +   * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
    +   * 
    + * + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The adTagName. */ @@ -91,7 +121,7 @@ public interface CustomTargetingKeyOrBuilder * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. * * - * string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for adTagName. */ @@ -104,7 +134,20 @@ public interface CustomTargetingKeyOrBuilder * Optional. Descriptive name for the `CustomTargetingKey`. * * - * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Optional. Descriptive name for the `CustomTargetingKey`.
    +   * 
    + * + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -117,7 +160,7 @@ public interface CustomTargetingKeyOrBuilder * Optional. Descriptive name for the `CustomTargetingKey`. * * - * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -133,7 +176,24 @@ public interface CustomTargetingKeyOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
    +   * Required. Indicates whether users will select from predefined values or
    +   * create new targeting values, while specifying targeting criteria for a line
    +   * item.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for type. @@ -150,7 +210,7 @@ public interface CustomTargetingKeyOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The type. @@ -165,7 +225,22 @@ public interface CustomTargetingKeyOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
    +   * Output only. Status of the `CustomTargetingKey`.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -180,7 +255,7 @@ public interface CustomTargetingKeyOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -195,7 +270,22 @@ public interface CustomTargetingKeyOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reportableType field is set. + */ + boolean hasReportableType(); + + /** + * + * + *
    +   * Required. Reportable state of the `CustomTargetingKey`.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for reportableType. @@ -210,7 +300,7 @@ public interface CustomTargetingKeyOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The reportableType. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValue.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValue.java index d0c3fda07e3f..c0f8433abee4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValue.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValue.java @@ -69,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.CustomTargetingValue.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -141,7 +142,27 @@ public com.google.protobuf.ByteString getNameBytes() { * * * - * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the customTargetingKey field is set. + */ + @java.lang.Override + public boolean hasCustomTargetingKey() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Immutable. The resource name of the `CustomTargetingKey`.
    +   * Format:
    +   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
    +   * 
    + * + * + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The customTargetingKey. @@ -169,7 +190,7 @@ public java.lang.String getCustomTargetingKey() { * * * - * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The bytes for customTargetingKey. @@ -203,7 +224,27 @@ public com.google.protobuf.ByteString getCustomTargetingKeyBytes() { * of using "age>=18 AND <=34", try "18-34" * * - * string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the adTagName field is set. + */ + @java.lang.Override + public boolean hasAdTagName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40
    +   * characters each. You can use alphanumeric characters and symbols other than
    +   * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
    +   * not data-specific; all values are treated as strings. For example, instead
    +   * of using "age>=18 AND <=34", try "18-34"
    +   * 
    + * + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The adTagName. */ @@ -231,7 +272,7 @@ public java.lang.String getAdTagName() { * of using "age>=18 AND <=34", try "18-34" * * - * string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for adTagName. */ @@ -260,7 +301,23 @@ public com.google.protobuf.ByteString getAdTagNameBytes() { * Optional. Descriptive name for the `CustomTargetingValue`. * * - * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. Descriptive name for the `CustomTargetingValue`.
    +   * 
    + * + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -284,7 +341,7 @@ public java.lang.String getDisplayName() { * Optional. Descriptive name for the `CustomTargetingValue`. * * - * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -313,7 +370,26 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * - * .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the matchType field is set. + */ + @java.lang.Override + public boolean hasMatchType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Required. Immutable. The way in which the CustomTargetingValue.name strings
    +   * will be matched.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for matchType. @@ -332,7 +408,7 @@ public int getMatchTypeValue() { * * * - * .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * * * @return The matchType. @@ -361,7 +437,25 @@ public int getMatchTypeValue() { * * * - * .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Output only. Status of the `CustomTargetingValue`.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -379,7 +473,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -413,25 +507,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adTagName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, adTagName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } - if (matchType_ - != com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum - .CustomTargetingValueMatchType.CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(6, matchType_); } - if (status_ - != com.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus - .CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(7, status_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetingKey_)) { + if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, customTargetingKey_); } getUnknownFields().writeTo(output); @@ -446,25 +534,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adTagName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, adTagName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } - if (matchType_ - != com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum - .CustomTargetingValueMatchType.CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, matchType_); } - if (status_ - != com.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus - .CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, status_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetingKey_)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, customTargetingKey_); } size += getUnknownFields().getSerializedSize(); @@ -484,11 +566,26 @@ public boolean equals(final java.lang.Object obj) { (com.google.ads.admanager.v1.CustomTargetingValue) obj; if (!getName().equals(other.getName())) return false; - if (!getCustomTargetingKey().equals(other.getCustomTargetingKey())) return false; - if (!getAdTagName().equals(other.getAdTagName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (matchType_ != other.matchType_) return false; - if (status_ != other.status_) return false; + if (hasCustomTargetingKey() != other.hasCustomTargetingKey()) return false; + if (hasCustomTargetingKey()) { + if (!getCustomTargetingKey().equals(other.getCustomTargetingKey())) return false; + } + if (hasAdTagName() != other.hasAdTagName()) return false; + if (hasAdTagName()) { + if (!getAdTagName().equals(other.getAdTagName())) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasMatchType() != other.hasMatchType()) return false; + if (hasMatchType()) { + if (matchType_ != other.matchType_) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -502,16 +599,26 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CUSTOM_TARGETING_KEY_FIELD_NUMBER; - hash = (53 * hash) + getCustomTargetingKey().hashCode(); - hash = (37 * hash) + AD_TAG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAdTagName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + matchType_; - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; + if (hasCustomTargetingKey()) { + hash = (37 * hash) + CUSTOM_TARGETING_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingKey().hashCode(); + } + if (hasAdTagName()) { + hash = (37 * hash) + AD_TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAdTagName().hashCode(); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasMatchType()) { + hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -697,21 +804,28 @@ private void buildPartial0(com.google.ads.admanager.v1.CustomTargetingValue resu if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.customTargetingKey_ = customTargetingKey_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.adTagName_ = adTagName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.matchType_ = matchType_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.status_ = status_; + to_bitField0_ |= 0x00000010; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -765,26 +879,26 @@ public Builder mergeFrom(com.google.ads.admanager.v1.CustomTargetingValue other) bitField0_ |= 0x00000001; onChanged(); } - if (!other.getCustomTargetingKey().isEmpty()) { + if (other.hasCustomTargetingKey()) { customTargetingKey_ = other.customTargetingKey_; bitField0_ |= 0x00000002; onChanged(); } - if (!other.getAdTagName().isEmpty()) { + if (other.hasAdTagName()) { adTagName_ = other.adTagName_; bitField0_ |= 0x00000004; onChanged(); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000008; onChanged(); } - if (other.matchType_ != 0) { - setMatchTypeValue(other.getMatchTypeValue()); + if (other.hasMatchType()) { + setMatchType(other.getMatchType()); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); + if (other.hasStatus()) { + setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1000,7 +1114,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * - * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the customTargetingKey field is set. + */ + public boolean hasCustomTargetingKey() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. Immutable. The resource name of the `CustomTargetingKey`.
    +     * Format:
    +     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
    +     * 
    + * + * + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The customTargetingKey. @@ -1027,7 +1160,7 @@ public java.lang.String getCustomTargetingKey() { * * * - * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The bytes for customTargetingKey. @@ -1054,7 +1187,7 @@ public com.google.protobuf.ByteString getCustomTargetingKeyBytes() { * * * - * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @param value The customTargetingKey to set. @@ -1080,7 +1213,7 @@ public Builder setCustomTargetingKey(java.lang.String value) { * * * - * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1102,7 +1235,7 @@ public Builder clearCustomTargetingKey() { * * * - * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @param value The bytes for customTargetingKey to set. @@ -1132,7 +1265,26 @@ public Builder setCustomTargetingKeyBytes(com.google.protobuf.ByteString value) * of using "age>=18 AND <=34", try "18-34" * * - * string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the adTagName field is set. + */ + public boolean hasAdTagName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40
    +     * characters each. You can use alphanumeric characters and symbols other than
    +     * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
    +     * not data-specific; all values are treated as strings. For example, instead
    +     * of using "age>=18 AND <=34", try "18-34"
    +     * 
    + * + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The adTagName. */ @@ -1159,7 +1311,7 @@ public java.lang.String getAdTagName() { * of using "age>=18 AND <=34", try "18-34" * * - * string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for adTagName. */ @@ -1186,7 +1338,7 @@ public com.google.protobuf.ByteString getAdTagNameBytes() { * of using "age>=18 AND <=34", try "18-34" * * - * string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The adTagName to set. * @return This builder for chaining. @@ -1212,7 +1364,7 @@ public Builder setAdTagName(java.lang.String value) { * of using "age>=18 AND <=34", try "18-34" * * - * string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -1234,7 +1386,7 @@ public Builder clearAdTagName() { * of using "age>=18 AND <=34", try "18-34" * * - * string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for adTagName to set. * @return This builder for chaining. @@ -1259,7 +1411,22 @@ public Builder setAdTagNameBytes(com.google.protobuf.ByteString value) { * Optional. Descriptive name for the `CustomTargetingValue`. * * - * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Optional. Descriptive name for the `CustomTargetingValue`.
    +     * 
    + * + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -1282,7 +1449,7 @@ public java.lang.String getDisplayName() { * Optional. Descriptive name for the `CustomTargetingValue`. * * - * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -1305,7 +1472,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Optional. Descriptive name for the `CustomTargetingValue`. * * - * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The displayName to set. * @return This builder for chaining. @@ -1327,7 +1494,7 @@ public Builder setDisplayName(java.lang.String value) { * Optional. Descriptive name for the `CustomTargetingValue`. * * - * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1345,7 +1512,7 @@ public Builder clearDisplayName() { * Optional. Descriptive name for the `CustomTargetingValue`. * * - * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -1372,7 +1539,26 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * * - * .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the matchType field is set. + */ + @java.lang.Override + public boolean hasMatchType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Required. Immutable. The way in which the CustomTargetingValue.name strings
    +     * will be matched.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for matchType. @@ -1391,7 +1577,7 @@ public int getMatchTypeValue() { * * * - * .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for matchType to set. @@ -1413,7 +1599,7 @@ public Builder setMatchTypeValue(int value) { * * * - * .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * * * @return The matchType. @@ -1441,7 +1627,7 @@ public Builder setMatchTypeValue(int value) { * * * - * .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * * * @param value The matchType to set. @@ -1468,7 +1654,7 @@ public Builder setMatchType( * * * - * .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. @@ -1490,7 +1676,25 @@ public Builder clearMatchType() { * * * - * .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Output only. Status of the `CustomTargetingValue`.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -1508,7 +1712,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for status to set. @@ -1529,7 +1733,7 @@ public Builder setStatusValue(int value) { * * * - * .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -1554,7 +1758,7 @@ public Builder setStatusValue(int value) { * * * - * .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The status to set. @@ -1580,7 +1784,7 @@ public Builder setStatus( * * * - * .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java index fc233bdf15b3..f5e09ef9a436 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java @@ -41,32 +41,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n=google/ads/admanager/v1/custom_targeti" - + "ng_value_messages.proto\022\027google.ads.adma" + "\n" + + "=google/ads/admanager/v1/custom_targeting_value_messages.proto\022\027google.ads.adma" + "nager.v1\032:google/ads/admanager/v1/custom" + "_targeting_value_enums.proto\032\037google/api" - + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\"\276\004\n\024CustomTargetingValue\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\010\022T\n\024custom_targeting_key\030\010 \001" - + "(\tB6\340A\002\340A\005\372A-\n+admanager.googleapis.com/" - + "CustomTargetingKey\022\030\n\013ad_tag_name\030\004 \001(\tB" - + "\003\340A\005\022\031\n\014display_name\030\005 \001(\tB\003\340A\001\022t\n\nmatch" - + "_type\030\006 \001(\0162X.google.ads.admanager.v1.Cu" - + "stomTargetingValueMatchTypeEnum.CustomTa" - + "rgetingValueMatchTypeB\006\340A\005\340A\002\022g\n\006status\030" - + "\007 \001(\0162R.google.ads.admanager.v1.CustomTa" - + "rgetingValueStatusEnum.CustomTargetingVa" - + "lueStatusB\003\340A\003:\250\001\352A\244\001\n-admanager.googlea" - + "pis.com/CustomTargetingValue\022Fnetworks/{" - + "network_code}/customTargetingValues/{cus" - + "tom_targeting_value}*\025customTargetingVal" - + "ues2\024customTargetingValueB\325\001\n\033com.google" - + ".ads.admanager.v1B!CustomTargetingValueM" - + "essagesProtoP\001Z@google.golang.org/genpro" - + "to/googleapis/ads/admanager/v1;admanager" - + "\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\" - + "AdManager\\V1\352\002\032Google::Ads::AdManager::V" - + "1b\006proto3" + + "/field_behavior.proto\032\031google/api/resource.proto\"\253\005\n" + + "\024CustomTargetingValue\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022Y\n" + + "\024custom_targeting_key\030\010 \001(\tB6\340A\002\340A\005\372A-\n" + + "+admanager.googleapis.com/CustomTargetingKeyH\000\210\001\001\022\035\n" + + "\013ad_tag_name\030\004 \001(\tB\003\340A\005H\001\210\001\001\022\036\n" + + "\014display_name\030\005 \001(\tB\003\340A\001H\002\210\001\001\022y\n\n" + + "match_type\030\006 \001(\0162X.google.ads.admanager.v1.CustomTargetingValueMatchTy" + + "peEnum.CustomTargetingValueMatchTypeB\006\340A\005\340A\002H\003\210\001\001\022l\n" + + "\006status\030\007 \001(\0162R.google.ads.admanager.v1.CustomTargetingValueStatusEn" + + "um.CustomTargetingValueStatusB\003\340A\003H\004\210\001\001:\250\001\352A\244\001\n" + + "-admanager.googleapis.com/CustomTargetingValue\022Fnetworks/{network_code}/c" + + "ustomTargetingValues/{custom_targeting_v" + + "alue}*\025customTargetingValues2\024customTargetingValueB\027\n" + + "\025_custom_targeting_keyB\016\n" + + "\014_ad_tag_nameB\017\n\r" + + "_display_nameB\r\n" + + "\013_match_typeB\t\n" + + "\007_statusB\325\001\n" + + "\033com.google.ads.admanager.v1B!CustomTargetingValueMessagesProt" + + "oP\001Z@google.golang.org/genproto/googleap" + + "is/ads/admanager/v1;admanager\252\002\027Google.A" + + "ds.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V" + + "1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueOrBuilder.java index 1c8f71244ec2..71c2672f1a90 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueOrBuilder.java @@ -64,7 +64,24 @@ public interface CustomTargetingValueOrBuilder * * * - * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the customTargetingKey field is set. + */ + boolean hasCustomTargetingKey(); + + /** + * + * + *
    +   * Required. Immutable. The resource name of the `CustomTargetingKey`.
    +   * Format:
    +   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
    +   * 
    + * + * + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The customTargetingKey. @@ -81,7 +98,7 @@ public interface CustomTargetingValueOrBuilder * * * - * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The bytes for customTargetingKey. @@ -99,7 +116,24 @@ public interface CustomTargetingValueOrBuilder * of using "age>=18 AND <=34", try "18-34" * * - * string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the adTagName field is set. + */ + boolean hasAdTagName(); + + /** + * + * + *
    +   * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40
    +   * characters each. You can use alphanumeric characters and symbols other than
    +   * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
    +   * not data-specific; all values are treated as strings. For example, instead
    +   * of using "age>=18 AND <=34", try "18-34"
    +   * 
    + * + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The adTagName. */ @@ -116,7 +150,7 @@ public interface CustomTargetingValueOrBuilder * of using "age>=18 AND <=34", try "18-34" * * - * string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * optional string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for adTagName. */ @@ -129,7 +163,20 @@ public interface CustomTargetingValueOrBuilder * Optional. Descriptive name for the `CustomTargetingValue`. * * - * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Optional. Descriptive name for the `CustomTargetingValue`.
    +   * 
    + * + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -142,7 +189,7 @@ public interface CustomTargetingValueOrBuilder * Optional. Descriptive name for the `CustomTargetingValue`. * * - * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -157,7 +204,23 @@ public interface CustomTargetingValueOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the matchType field is set. + */ + boolean hasMatchType(); + + /** + * + * + *
    +   * Required. Immutable. The way in which the CustomTargetingValue.name strings
    +   * will be matched.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for matchType. @@ -173,7 +236,7 @@ public interface CustomTargetingValueOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * * * @return The matchType. @@ -189,7 +252,22 @@ public interface CustomTargetingValueOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
    +   * Output only. Status of the `CustomTargetingValue`.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -204,7 +282,7 @@ public interface CustomTargetingValueOrBuilder * * * - * .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapability.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapability.java new file mode 100644 index 000000000000..3cffba6225d7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapability.java @@ -0,0 +1,869 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents a device capability.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DeviceCapability} + */ +public final class DeviceCapability extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DeviceCapability) + DeviceCapabilityOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeviceCapability.newBuilder() to construct. + private DeviceCapability(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeviceCapability() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeviceCapability(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCapabilityMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCapability_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCapabilityMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCapability_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceCapability.class, + com.google.ads.admanager.v1.DeviceCapability.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `DeviceCapability`.
    +   * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +   * 
    + * + * 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. The resource name of the `DeviceCapability`.
    +   * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Output only. The localized name of the device capability.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The localized name of the device capability.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The localized name of the device capability.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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.admanager.v1.DeviceCapability)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DeviceCapability other = + (com.google.ads.admanager.v1.DeviceCapability) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.DeviceCapability parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCapability 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.admanager.v1.DeviceCapability parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCapability 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.admanager.v1.DeviceCapability parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCapability parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCapability parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCapability parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCapability parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCapability parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCapability parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCapability parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.DeviceCapability prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a device capability.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DeviceCapability} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DeviceCapability) + com.google.ads.admanager.v1.DeviceCapabilityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCapabilityMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCapability_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCapabilityMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCapability_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceCapability.class, + com.google.ads.admanager.v1.DeviceCapability.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DeviceCapability.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceCapabilityMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCapability_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapability getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DeviceCapability.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapability build() { + com.google.ads.admanager.v1.DeviceCapability result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapability buildPartial() { + com.google.ads.admanager.v1.DeviceCapability result = + new com.google.ads.admanager.v1.DeviceCapability(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.DeviceCapability result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DeviceCapability) { + return mergeFrom((com.google.ads.admanager.v1.DeviceCapability) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DeviceCapability other) { + if (other == com.google.ads.admanager.v1.DeviceCapability.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + 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: + { + displayName_ = 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `DeviceCapability`.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * 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. The resource name of the `DeviceCapability`.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * 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. The resource name of the `DeviceCapability`.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `DeviceCapability`.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `DeviceCapability`.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Output only. The localized name of the device capability.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The localized name of the device capability.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The localized name of the device capability.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The localized name of the device capability.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The localized name of the device capability.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The localized name of the device capability.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DeviceCapability) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DeviceCapability) + private static final com.google.ads.admanager.v1.DeviceCapability DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DeviceCapability(); + } + + public static com.google.ads.admanager.v1.DeviceCapability getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceCapability 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.admanager.v1.DeviceCapability getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityMessagesProto.java new file mode 100644 index 000000000000..e2f94eb12e7d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityMessagesProto.java @@ -0,0 +1,87 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class DeviceCapabilityMessagesProto { + private DeviceCapabilityMessagesProto() {} + + 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_admanager_v1_DeviceCapability_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DeviceCapability_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/ads/admanager/v1/device_capabil" + + "ity_messages.proto\022\027google.ads.admanager" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\"\356\001\n\020DeviceCapabi" + + "lity\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\036\n\014display_name\030" + + "\002 \001(\tB\003\340A\003H\000\210\001\001:\225\001\352A\221\001\n)admanager.google" + + "apis.com/DeviceCapability\022>networks/{net" + + "work_code}/deviceCapabilities/{device_ca" + + "pability}*\022deviceCapabilities2\020deviceCap" + + "abilityB\017\n\r_display_nameB\321\001\n\033com.google." + + "ads.admanager.v1B\035DeviceCapabilityMessag" + + "esProtoP\001Z@google.golang.org/genproto/go" + + "ogleapis/ads/admanager/v1;admanager\252\002\027Go" + + "ogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMan" + + "ager\\V1\352\002\032Google::Ads::AdManager::V1b\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_DeviceCapability_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_DeviceCapability_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DeviceCapability_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityName.java new file mode 100644 index 000000000000..d7dc064a6bea --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 DeviceCapabilityName implements ResourceName { + private static final PathTemplate NETWORK_CODE_DEVICE_CAPABILITY = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/deviceCapabilities/{device_capability}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String deviceCapability; + + @Deprecated + protected DeviceCapabilityName() { + networkCode = null; + deviceCapability = null; + } + + private DeviceCapabilityName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + deviceCapability = Preconditions.checkNotNull(builder.getDeviceCapability()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getDeviceCapability() { + return deviceCapability; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DeviceCapabilityName of(String networkCode, String deviceCapability) { + return newBuilder().setNetworkCode(networkCode).setDeviceCapability(deviceCapability).build(); + } + + public static String format(String networkCode, String deviceCapability) { + return newBuilder() + .setNetworkCode(networkCode) + .setDeviceCapability(deviceCapability) + .build() + .toString(); + } + + public static DeviceCapabilityName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_DEVICE_CAPABILITY.validatedMatch( + formattedString, "DeviceCapabilityName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("device_capability")); + } + + 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 (DeviceCapabilityName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_DEVICE_CAPABILITY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (deviceCapability != null) { + fieldMapBuilder.put("device_capability", deviceCapability); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_DEVICE_CAPABILITY.instantiate( + "network_code", networkCode, "device_capability", deviceCapability); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DeviceCapabilityName that = ((DeviceCapabilityName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.deviceCapability, that.deviceCapability); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(deviceCapability); + return h; + } + + /** Builder for networks/{network_code}/deviceCapabilities/{device_capability}. */ + public static class Builder { + private String networkCode; + private String deviceCapability; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getDeviceCapability() { + return deviceCapability; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setDeviceCapability(String deviceCapability) { + this.deviceCapability = deviceCapability; + return this; + } + + private Builder(DeviceCapabilityName deviceCapabilityName) { + this.networkCode = deviceCapabilityName.networkCode; + this.deviceCapability = deviceCapabilityName.deviceCapability; + } + + public DeviceCapabilityName build() { + return new DeviceCapabilityName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityOrBuilder.java new file mode 100644 index 000000000000..fc4ac0f535ce --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DeviceCapabilityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DeviceCapability) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `DeviceCapability`.
    +   * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `DeviceCapability`.
    +   * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The localized name of the device capability.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Output only. The localized name of the device capability.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Output only. The localized name of the device capability.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceProto.java new file mode 100644 index 000000000000..65c836d450e5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class DeviceCapabilityServiceProto { + private DeviceCapabilityServiceProto() {} + + 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_admanager_v1_GetDeviceCapabilityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetDeviceCapabilityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_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" + + "7google/ads/admanager/v1/device_capability_service.proto\022\027google.ads.admanager." + + "v1\0328google/ads/admanager/v1/device_capab" + + "ility_messages.proto\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api/resource.proto\"]\n" + + "\032GetDeviceCapabilityRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")admanager.googleapis.com/DeviceCapability\"\311\001\n" + + "\035ListDeviceCapabilitiesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\225\001\n" + + "\036ListDeviceCapabilitiesResponse\022F\n" + + "\023device_capabilities\030\001" + + " \003(\0132).google.ads.admanager.v1.DeviceCapability\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\336\003\n" + + "\027DeviceCapabilityService\022\260\001\n" + + "\023GetDeviceCapability\0223.google.ads.admanager.v1.GetDeviceCapabi" + + "lityRequest\032).google.ads.admanager.v1.De" + + "viceCapability\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=networks/*/deviceCapabilities/*}\022\306\001\n" + + "\026ListDeviceCapabilities\0226.google.ads.admana" + + "ger.v1.ListDeviceCapabilitiesRequest\0327.google.ads.admanager.v1.ListDeviceCapabil" + + "itiesResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{par" + + "ent=networks/*}/deviceCapabilities\032G\312A\030a" + + "dmanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\320\001\n" + + "\033com.google.ads.admanager.v1B\034DeviceCapabilitySer" + + "viceProtoP\001Z@google.golang.org/genproto/" + + "googleapis/ads/admanager/v1;admanager\252\002\027" + + "Google.Ads.AdManager.V1\312\002\027Google\\Ads\\AdM" + + "anager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.DeviceCapabilityMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetDeviceCapabilityRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetDeviceCapabilityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetDeviceCapabilityRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_descriptor, + new java.lang.String[] { + "DeviceCapabilities", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.DeviceCapabilityMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityTargeting.java new file mode 100644 index 000000000000..3fec8d1c35f0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityTargeting.java @@ -0,0 +1,1116 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Device Capability Targeting.
    + *
    + * Can be used to target/exclude users using mobile apps, ad requests resulting
    + * from apps built on the MRAID standard, or users on devices that are able to
    + * make phone calls versus devices that aren't able to make phone calls, such as
    + * tablets.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DeviceCapabilityTargeting} + */ +public final class DeviceCapabilityTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DeviceCapabilityTargeting) + DeviceCapabilityTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeviceCapabilityTargeting.newBuilder() to construct. + private DeviceCapabilityTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeviceCapabilityTargeting() { + targetedCapabilities_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedCapabilities_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeviceCapabilityTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceCapabilityTargeting.class, + com.google.ads.admanager.v1.DeviceCapabilityTargeting.Builder.class); + } + + public static final int TARGETED_CAPABILITIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedCapabilities_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedCapabilities. + */ + public com.google.protobuf.ProtocolStringList getTargetedCapabilitiesList() { + return targetedCapabilities_; + } + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedCapabilities. + */ + public int getTargetedCapabilitiesCount() { + return targetedCapabilities_.size(); + } + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedCapabilities at the given index. + */ + public java.lang.String getTargetedCapabilities(int index) { + return targetedCapabilities_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedCapabilities at the given index. + */ + public com.google.protobuf.ByteString getTargetedCapabilitiesBytes(int index) { + return targetedCapabilities_.getByteString(index); + } + + public static final int EXCLUDED_CAPABILITIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedCapabilities_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedCapabilities. + */ + public com.google.protobuf.ProtocolStringList getExcludedCapabilitiesList() { + return excludedCapabilities_; + } + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedCapabilities. + */ + public int getExcludedCapabilitiesCount() { + return excludedCapabilities_.size(); + } + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedCapabilities at the given index. + */ + public java.lang.String getExcludedCapabilities(int index) { + return excludedCapabilities_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedCapabilities at the given index. + */ + public com.google.protobuf.ByteString getExcludedCapabilitiesBytes(int index) { + return excludedCapabilities_.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 < targetedCapabilities_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, targetedCapabilities_.getRaw(i)); + } + for (int i = 0; i < excludedCapabilities_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, excludedCapabilities_.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 < targetedCapabilities_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedCapabilities_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedCapabilitiesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedCapabilities_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedCapabilities_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedCapabilitiesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.DeviceCapabilityTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DeviceCapabilityTargeting other = + (com.google.ads.admanager.v1.DeviceCapabilityTargeting) obj; + + if (!getTargetedCapabilitiesList().equals(other.getTargetedCapabilitiesList())) return false; + if (!getExcludedCapabilitiesList().equals(other.getExcludedCapabilitiesList())) 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 (getTargetedCapabilitiesCount() > 0) { + hash = (37 * hash) + TARGETED_CAPABILITIES_FIELD_NUMBER; + hash = (53 * hash) + getTargetedCapabilitiesList().hashCode(); + } + if (getExcludedCapabilitiesCount() > 0) { + hash = (37 * hash) + EXCLUDED_CAPABILITIES_FIELD_NUMBER; + hash = (53 * hash) + getExcludedCapabilitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting 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.admanager.v1.DeviceCapabilityTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting 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.admanager.v1.DeviceCapabilityTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.DeviceCapabilityTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Device Capability Targeting.
    +   *
    +   * Can be used to target/exclude users using mobile apps, ad requests resulting
    +   * from apps built on the MRAID standard, or users on devices that are able to
    +   * make phone calls versus devices that aren't able to make phone calls, such as
    +   * tablets.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DeviceCapabilityTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DeviceCapabilityTargeting) + com.google.ads.admanager.v1.DeviceCapabilityTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceCapabilityTargeting.class, + com.google.ads.admanager.v1.DeviceCapabilityTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DeviceCapabilityTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedCapabilities_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedCapabilities_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapabilityTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DeviceCapabilityTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapabilityTargeting build() { + com.google.ads.admanager.v1.DeviceCapabilityTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapabilityTargeting buildPartial() { + com.google.ads.admanager.v1.DeviceCapabilityTargeting result = + new com.google.ads.admanager.v1.DeviceCapabilityTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.DeviceCapabilityTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedCapabilities_.makeImmutable(); + result.targetedCapabilities_ = targetedCapabilities_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedCapabilities_.makeImmutable(); + result.excludedCapabilities_ = excludedCapabilities_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DeviceCapabilityTargeting) { + return mergeFrom((com.google.ads.admanager.v1.DeviceCapabilityTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DeviceCapabilityTargeting other) { + if (other == com.google.ads.admanager.v1.DeviceCapabilityTargeting.getDefaultInstance()) + return this; + if (!other.targetedCapabilities_.isEmpty()) { + if (targetedCapabilities_.isEmpty()) { + targetedCapabilities_ = other.targetedCapabilities_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedCapabilitiesIsMutable(); + targetedCapabilities_.addAll(other.targetedCapabilities_); + } + onChanged(); + } + if (!other.excludedCapabilities_.isEmpty()) { + if (excludedCapabilities_.isEmpty()) { + excludedCapabilities_ = other.excludedCapabilities_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedCapabilitiesIsMutable(); + excludedCapabilities_.addAll(other.excludedCapabilities_); + } + 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 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedCapabilitiesIsMutable(); + targetedCapabilities_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedCapabilitiesIsMutable(); + excludedCapabilities_.add(s); + break; + } // case 34 + 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 targetedCapabilities_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedCapabilitiesIsMutable() { + if (!targetedCapabilities_.isModifiable()) { + targetedCapabilities_ = new com.google.protobuf.LazyStringArrayList(targetedCapabilities_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedCapabilities. + */ + public com.google.protobuf.ProtocolStringList getTargetedCapabilitiesList() { + targetedCapabilities_.makeImmutable(); + return targetedCapabilities_; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedCapabilities. + */ + public int getTargetedCapabilitiesCount() { + return targetedCapabilities_.size(); + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedCapabilities at the given index. + */ + public java.lang.String getTargetedCapabilities(int index) { + return targetedCapabilities_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedCapabilities at the given index. + */ + public com.google.protobuf.ByteString getTargetedCapabilitiesBytes(int index) { + return targetedCapabilities_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedCapabilities to set. + * @return This builder for chaining. + */ + public Builder setTargetedCapabilities(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedCapabilitiesIsMutable(); + targetedCapabilities_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedCapabilities to add. + * @return This builder for chaining. + */ + public Builder addTargetedCapabilities(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedCapabilitiesIsMutable(); + targetedCapabilities_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedCapabilities to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedCapabilities(java.lang.Iterable values) { + ensureTargetedCapabilitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedCapabilities_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedCapabilities() { + targetedCapabilities_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedCapabilities to add. + * @return This builder for chaining. + */ + public Builder addTargetedCapabilitiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedCapabilitiesIsMutable(); + targetedCapabilities_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedCapabilities_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedCapabilitiesIsMutable() { + if (!excludedCapabilities_.isModifiable()) { + excludedCapabilities_ = new com.google.protobuf.LazyStringArrayList(excludedCapabilities_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedCapabilities. + */ + public com.google.protobuf.ProtocolStringList getExcludedCapabilitiesList() { + excludedCapabilities_.makeImmutable(); + return excludedCapabilities_; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedCapabilities. + */ + public int getExcludedCapabilitiesCount() { + return excludedCapabilities_.size(); + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedCapabilities at the given index. + */ + public java.lang.String getExcludedCapabilities(int index) { + return excludedCapabilities_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedCapabilities at the given index. + */ + public com.google.protobuf.ByteString getExcludedCapabilitiesBytes(int index) { + return excludedCapabilities_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedCapabilities to set. + * @return This builder for chaining. + */ + public Builder setExcludedCapabilities(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedCapabilitiesIsMutable(); + excludedCapabilities_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedCapabilities to add. + * @return This builder for chaining. + */ + public Builder addExcludedCapabilities(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedCapabilitiesIsMutable(); + excludedCapabilities_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedCapabilities to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedCapabilities(java.lang.Iterable values) { + ensureExcludedCapabilitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedCapabilities_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedCapabilities() { + excludedCapabilities_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device capability resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedCapabilities to add. + * @return This builder for chaining. + */ + public Builder addExcludedCapabilitiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedCapabilitiesIsMutable(); + excludedCapabilities_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DeviceCapabilityTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DeviceCapabilityTargeting) + private static final com.google.ads.admanager.v1.DeviceCapabilityTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DeviceCapabilityTargeting(); + } + + public static com.google.ads.admanager.v1.DeviceCapabilityTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceCapabilityTargeting 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.admanager.v1.DeviceCapabilityTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityTargetingOrBuilder.java new file mode 100644 index 000000000000..5d4be6d05c77 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityTargetingOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DeviceCapabilityTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DeviceCapabilityTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedCapabilities. + */ + java.util.List getTargetedCapabilitiesList(); + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedCapabilities. + */ + int getTargetedCapabilitiesCount(); + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedCapabilities at the given index. + */ + java.lang.String getTargetedCapabilities(int index); + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_capabilities = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedCapabilities at the given index. + */ + com.google.protobuf.ByteString getTargetedCapabilitiesBytes(int index); + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedCapabilities. + */ + java.util.List getExcludedCapabilitiesList(); + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedCapabilities. + */ + int getExcludedCapabilitiesCount(); + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedCapabilities at the given index. + */ + java.lang.String getExcludedCapabilities(int index); + + /** + * + * + *
    +   * Optional. A list of device capability resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_capabilities = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedCapabilities at the given index. + */ + com.google.protobuf.ByteString getExcludedCapabilitiesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturer.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturer.java new file mode 100644 index 000000000000..be640785931f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturer.java @@ -0,0 +1,876 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents a device manufacturer.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DeviceManufacturer} + */ +public final class DeviceManufacturer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DeviceManufacturer) + DeviceManufacturerOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeviceManufacturer.newBuilder() to construct. + private DeviceManufacturer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeviceManufacturer() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeviceManufacturer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceManufacturerMessagesProto + .internal_static_google_ads_admanager_v1_DeviceManufacturer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceManufacturerMessagesProto + .internal_static_google_ads_admanager_v1_DeviceManufacturer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceManufacturer.class, + com.google.ads.admanager.v1.DeviceManufacturer.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `DeviceManufacturer`.
    +   * Format:
    +   * `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * 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. The resource name of the `DeviceManufacturer`.
    +   * Format:
    +   * `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Output only. The localized name of the device manufacturer.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The localized name of the device manufacturer.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The localized name of the device manufacturer.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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.admanager.v1.DeviceManufacturer)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DeviceManufacturer other = + (com.google.ads.admanager.v1.DeviceManufacturer) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.DeviceManufacturer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer 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.admanager.v1.DeviceManufacturer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer 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.admanager.v1.DeviceManufacturer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.DeviceManufacturer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a device manufacturer.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DeviceManufacturer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DeviceManufacturer) + com.google.ads.admanager.v1.DeviceManufacturerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceManufacturerMessagesProto + .internal_static_google_ads_admanager_v1_DeviceManufacturer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceManufacturerMessagesProto + .internal_static_google_ads_admanager_v1_DeviceManufacturer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceManufacturer.class, + com.google.ads.admanager.v1.DeviceManufacturer.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DeviceManufacturer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceManufacturerMessagesProto + .internal_static_google_ads_admanager_v1_DeviceManufacturer_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturer getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DeviceManufacturer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturer build() { + com.google.ads.admanager.v1.DeviceManufacturer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturer buildPartial() { + com.google.ads.admanager.v1.DeviceManufacturer result = + new com.google.ads.admanager.v1.DeviceManufacturer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.DeviceManufacturer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DeviceManufacturer) { + return mergeFrom((com.google.ads.admanager.v1.DeviceManufacturer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DeviceManufacturer other) { + if (other == com.google.ads.admanager.v1.DeviceManufacturer.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + 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: + { + displayName_ = 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `DeviceManufacturer`.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * 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. The resource name of the `DeviceManufacturer`.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * 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. The resource name of the `DeviceManufacturer`.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `DeviceManufacturer`.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `DeviceManufacturer`.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Output only. The localized name of the device manufacturer.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The localized name of the device manufacturer.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The localized name of the device manufacturer.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The localized name of the device manufacturer.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The localized name of the device manufacturer.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The localized name of the device manufacturer.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DeviceManufacturer) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DeviceManufacturer) + private static final com.google.ads.admanager.v1.DeviceManufacturer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DeviceManufacturer(); + } + + public static com.google.ads.admanager.v1.DeviceManufacturer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceManufacturer 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.admanager.v1.DeviceManufacturer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerMessagesProto.java new file mode 100644 index 000000000000..60b9a246b418 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerMessagesProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class DeviceManufacturerMessagesProto { + private DeviceManufacturerMessagesProto() {} + + 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_admanager_v1_DeviceManufacturer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DeviceManufacturer_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/admanager/v1/device_manufacturer_messages.proto\022\027google.ads.admanag" + + "er.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\370\001\n" + + "\022DeviceManufacturer\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\002 \001(" + + "\tB\003\340A\003H\000\210\001\001:\235\001\352A\231\001\n" + + "+admanager.googleapis.com/DeviceManufacturer\022Anetwork" + + "s/{network_code}/deviceManufacturers/{de" + + "vice_manufacturer}*\023deviceManufacturers2\022deviceManufacturerB\017\n\r" + + "_display_nameB\323\001\n" + + "\033com.google.ads.admanager.v1B\037DeviceManu" + + "facturerMessagesProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;" + + "admanager\252\002\027Google.Ads.AdManager.V1\312\002\027Go" + + "ogle\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_DeviceManufacturer_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_DeviceManufacturer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DeviceManufacturer_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerName.java new file mode 100644 index 000000000000..68400b6da14e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerName.java @@ -0,0 +1,201 @@ +/* + * Copyright 2025 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.admanager.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 DeviceManufacturerName implements ResourceName { + private static final PathTemplate NETWORK_CODE_DEVICE_MANUFACTURER = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/deviceManufacturers/{device_manufacturer}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String deviceManufacturer; + + @Deprecated + protected DeviceManufacturerName() { + networkCode = null; + deviceManufacturer = null; + } + + private DeviceManufacturerName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + deviceManufacturer = Preconditions.checkNotNull(builder.getDeviceManufacturer()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getDeviceManufacturer() { + return deviceManufacturer; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DeviceManufacturerName of(String networkCode, String deviceManufacturer) { + return newBuilder() + .setNetworkCode(networkCode) + .setDeviceManufacturer(deviceManufacturer) + .build(); + } + + public static String format(String networkCode, String deviceManufacturer) { + return newBuilder() + .setNetworkCode(networkCode) + .setDeviceManufacturer(deviceManufacturer) + .build() + .toString(); + } + + public static DeviceManufacturerName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_DEVICE_MANUFACTURER.validatedMatch( + formattedString, "DeviceManufacturerName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("device_manufacturer")); + } + + 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 (DeviceManufacturerName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_DEVICE_MANUFACTURER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (deviceManufacturer != null) { + fieldMapBuilder.put("device_manufacturer", deviceManufacturer); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_DEVICE_MANUFACTURER.instantiate( + "network_code", networkCode, "device_manufacturer", deviceManufacturer); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DeviceManufacturerName that = ((DeviceManufacturerName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.deviceManufacturer, that.deviceManufacturer); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(deviceManufacturer); + return h; + } + + /** Builder for networks/{network_code}/deviceManufacturers/{device_manufacturer}. */ + public static class Builder { + private String networkCode; + private String deviceManufacturer; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getDeviceManufacturer() { + return deviceManufacturer; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setDeviceManufacturer(String deviceManufacturer) { + this.deviceManufacturer = deviceManufacturer; + return this; + } + + private Builder(DeviceManufacturerName deviceManufacturerName) { + this.networkCode = deviceManufacturerName.networkCode; + this.deviceManufacturer = deviceManufacturerName.deviceManufacturer; + } + + public DeviceManufacturerName build() { + return new DeviceManufacturerName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerOrBuilder.java new file mode 100644 index 000000000000..5c10d6631fa5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DeviceManufacturerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DeviceManufacturer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `DeviceManufacturer`.
    +   * Format:
    +   * `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `DeviceManufacturer`.
    +   * Format:
    +   * `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The localized name of the device manufacturer.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Output only. The localized name of the device manufacturer.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Output only. The localized name of the device manufacturer.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceProto.java new file mode 100644 index 000000000000..ef55af168c4c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceProto.java @@ -0,0 +1,142 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class DeviceManufacturerServiceProto { + private DeviceManufacturerServiceProto() {} + + 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_admanager_v1_GetDeviceManufacturerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetDeviceManufacturerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_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" + + "9google/ads/admanager/v1/device_manufacturer_service.proto\022\027google.ads.admanage" + + "r.v1\032:google/ads/admanager/v1/device_man" + + "ufacturer_messages.proto\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google/api/resource.proto\"a\n" + + "\034GetDeviceManufacturerRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+admanager.googleapis.com/DeviceManufacturer\"\312\001\n" + + "\036ListDeviceManufacturersRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\231\001\n" + + "\037ListDeviceManufacturersResponse\022I\n" + + "\024device_manufacturers\030\001" + + " \003(\0132+.google.ads.admanager.v1.DeviceManufacturer\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\353\003\n" + + "\031DeviceManufacturerService\022\267\001\n" + + "\025GetDeviceManufacturer\0225.google.ads.admanager.v" + + "1.GetDeviceManufacturerRequest\032+.google." + + "ads.admanager.v1.DeviceManufacturer\":\332A\004" + + "name\202\323\344\223\002-\022+/v1/{name=networks/*/deviceManufacturers/*}\022\312\001\n" + + "\027ListDeviceManufacturers\0227.google.ads.admanager.v1.ListDevice" + + "ManufacturersRequest\0328.google.ads.admanager.v1.ListDeviceManufacturersResponse\"<" + + "\332A\006parent\202\323\344\223\002-\022+/v1/{parent=networks/*}" + + "/deviceManufacturers\032G\312A\030admanager.googl" + + "eapis.com\322A)https://www.googleapis.com/auth/admanagerB\322\001\n" + + "\033com.google.ads.admanager.v1B\036DeviceManufacturerServiceProtoP\001Z" + + "@google.golang.org/genproto/googleapis/a" + + "ds/admanager/v1;admanager\252\002\027Google.Ads.A" + + "dManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032" + + "Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.DeviceManufacturerMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetDeviceManufacturerRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetDeviceManufacturerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetDeviceManufacturerRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_descriptor, + new java.lang.String[] { + "DeviceManufacturers", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.DeviceManufacturerMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerTargeting.java new file mode 100644 index 000000000000..4067f5179b32 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerTargeting.java @@ -0,0 +1,2437 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Device Manufacturer Targeting.
    + *
    + * Can be used to target/exclude users on devices made by specific brands or
    + * companies, such as Apple, Google, Samsung and others. For more information,
    + * see https://support.google.com/admanager/answer/2884033 ("Targeting types >
    + * Device manufacturer").
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DeviceManufacturerTargeting} + */ +public final class DeviceManufacturerTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DeviceManufacturerTargeting) + DeviceManufacturerTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeviceManufacturerTargeting.newBuilder() to construct. + private DeviceManufacturerTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeviceManufacturerTargeting() { + targetedDeviceManufacturers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedDeviceManufacturers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetedMobileDevices_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedMobileDevices_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetedMobileDeviceSubmodels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedMobileDeviceSubmodels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeviceManufacturerTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceManufacturerTargeting.class, + com.google.ads.admanager.v1.DeviceManufacturerTargeting.Builder.class); + } + + public static final int TARGETED_DEVICE_MANUFACTURERS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedDeviceManufacturers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedDeviceManufacturers. + */ + public com.google.protobuf.ProtocolStringList getTargetedDeviceManufacturersList() { + return targetedDeviceManufacturers_; + } + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedDeviceManufacturers. + */ + public int getTargetedDeviceManufacturersCount() { + return targetedDeviceManufacturers_.size(); + } + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedDeviceManufacturers at the given index. + */ + public java.lang.String getTargetedDeviceManufacturers(int index) { + return targetedDeviceManufacturers_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedDeviceManufacturers at the given index. + */ + public com.google.protobuf.ByteString getTargetedDeviceManufacturersBytes(int index) { + return targetedDeviceManufacturers_.getByteString(index); + } + + public static final int EXCLUDED_DEVICE_MANUFACTURERS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedDeviceManufacturers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedDeviceManufacturers. + */ + public com.google.protobuf.ProtocolStringList getExcludedDeviceManufacturersList() { + return excludedDeviceManufacturers_; + } + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedDeviceManufacturers. + */ + public int getExcludedDeviceManufacturersCount() { + return excludedDeviceManufacturers_.size(); + } + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedDeviceManufacturers at the given index. + */ + public java.lang.String getExcludedDeviceManufacturers(int index) { + return excludedDeviceManufacturers_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedDeviceManufacturers at the given index. + */ + public com.google.protobuf.ByteString getExcludedDeviceManufacturersBytes(int index) { + return excludedDeviceManufacturers_.getByteString(index); + } + + public static final int TARGETED_MOBILE_DEVICES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedMobileDevices_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedMobileDevices. + */ + public com.google.protobuf.ProtocolStringList getTargetedMobileDevicesList() { + return targetedMobileDevices_; + } + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedMobileDevices. + */ + public int getTargetedMobileDevicesCount() { + return targetedMobileDevices_.size(); + } + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedMobileDevices at the given index. + */ + public java.lang.String getTargetedMobileDevices(int index) { + return targetedMobileDevices_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedMobileDevices at the given index. + */ + public com.google.protobuf.ByteString getTargetedMobileDevicesBytes(int index) { + return targetedMobileDevices_.getByteString(index); + } + + public static final int EXCLUDED_MOBILE_DEVICES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedMobileDevices_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedMobileDevices. + */ + public com.google.protobuf.ProtocolStringList getExcludedMobileDevicesList() { + return excludedMobileDevices_; + } + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedMobileDevices. + */ + public int getExcludedMobileDevicesCount() { + return excludedMobileDevices_.size(); + } + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedMobileDevices at the given index. + */ + public java.lang.String getExcludedMobileDevices(int index) { + return excludedMobileDevices_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedMobileDevices at the given index. + */ + public com.google.protobuf.ByteString getExcludedMobileDevicesBytes(int index) { + return excludedMobileDevices_.getByteString(index); + } + + public static final int TARGETED_MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedMobileDeviceSubmodels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedMobileDeviceSubmodels. + */ + public com.google.protobuf.ProtocolStringList getTargetedMobileDeviceSubmodelsList() { + return targetedMobileDeviceSubmodels_; + } + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedMobileDeviceSubmodels. + */ + public int getTargetedMobileDeviceSubmodelsCount() { + return targetedMobileDeviceSubmodels_.size(); + } + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedMobileDeviceSubmodels at the given index. + */ + public java.lang.String getTargetedMobileDeviceSubmodels(int index) { + return targetedMobileDeviceSubmodels_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedMobileDeviceSubmodels at the given index. + */ + public com.google.protobuf.ByteString getTargetedMobileDeviceSubmodelsBytes(int index) { + return targetedMobileDeviceSubmodels_.getByteString(index); + } + + public static final int EXCLUDED_MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedMobileDeviceSubmodels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedMobileDeviceSubmodels. + */ + public com.google.protobuf.ProtocolStringList getExcludedMobileDeviceSubmodelsList() { + return excludedMobileDeviceSubmodels_; + } + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedMobileDeviceSubmodels. + */ + public int getExcludedMobileDeviceSubmodelsCount() { + return excludedMobileDeviceSubmodels_.size(); + } + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedMobileDeviceSubmodels at the given index. + */ + public java.lang.String getExcludedMobileDeviceSubmodels(int index) { + return excludedMobileDeviceSubmodels_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedMobileDeviceSubmodels at the given index. + */ + public com.google.protobuf.ByteString getExcludedMobileDeviceSubmodelsBytes(int index) { + return excludedMobileDeviceSubmodels_.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 < targetedDeviceManufacturers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, targetedDeviceManufacturers_.getRaw(i)); + } + for (int i = 0; i < excludedDeviceManufacturers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 8, excludedDeviceManufacturers_.getRaw(i)); + } + for (int i = 0; i < targetedMobileDevices_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 9, targetedMobileDevices_.getRaw(i)); + } + for (int i = 0; i < excludedMobileDevices_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 10, excludedMobileDevices_.getRaw(i)); + } + for (int i = 0; i < targetedMobileDeviceSubmodels_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 11, targetedMobileDeviceSubmodels_.getRaw(i)); + } + for (int i = 0; i < excludedMobileDeviceSubmodels_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 12, excludedMobileDeviceSubmodels_.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 < targetedDeviceManufacturers_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedDeviceManufacturers_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedDeviceManufacturersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedDeviceManufacturers_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedDeviceManufacturers_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedDeviceManufacturersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < targetedMobileDevices_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedMobileDevices_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedMobileDevicesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedMobileDevices_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedMobileDevices_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedMobileDevicesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < targetedMobileDeviceSubmodels_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedMobileDeviceSubmodels_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedMobileDeviceSubmodelsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedMobileDeviceSubmodels_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedMobileDeviceSubmodels_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedMobileDeviceSubmodelsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.DeviceManufacturerTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DeviceManufacturerTargeting other = + (com.google.ads.admanager.v1.DeviceManufacturerTargeting) obj; + + if (!getTargetedDeviceManufacturersList().equals(other.getTargetedDeviceManufacturersList())) + return false; + if (!getExcludedDeviceManufacturersList().equals(other.getExcludedDeviceManufacturersList())) + return false; + if (!getTargetedMobileDevicesList().equals(other.getTargetedMobileDevicesList())) return false; + if (!getExcludedMobileDevicesList().equals(other.getExcludedMobileDevicesList())) return false; + if (!getTargetedMobileDeviceSubmodelsList() + .equals(other.getTargetedMobileDeviceSubmodelsList())) return false; + if (!getExcludedMobileDeviceSubmodelsList() + .equals(other.getExcludedMobileDeviceSubmodelsList())) 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 (getTargetedDeviceManufacturersCount() > 0) { + hash = (37 * hash) + TARGETED_DEVICE_MANUFACTURERS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedDeviceManufacturersList().hashCode(); + } + if (getExcludedDeviceManufacturersCount() > 0) { + hash = (37 * hash) + EXCLUDED_DEVICE_MANUFACTURERS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedDeviceManufacturersList().hashCode(); + } + if (getTargetedMobileDevicesCount() > 0) { + hash = (37 * hash) + TARGETED_MOBILE_DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getTargetedMobileDevicesList().hashCode(); + } + if (getExcludedMobileDevicesCount() > 0) { + hash = (37 * hash) + EXCLUDED_MOBILE_DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getExcludedMobileDevicesList().hashCode(); + } + if (getTargetedMobileDeviceSubmodelsCount() > 0) { + hash = (37 * hash) + TARGETED_MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedMobileDeviceSubmodelsList().hashCode(); + } + if (getExcludedMobileDeviceSubmodelsCount() > 0) { + hash = (37 * hash) + EXCLUDED_MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedMobileDeviceSubmodelsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting 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.admanager.v1.DeviceManufacturerTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting 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.admanager.v1.DeviceManufacturerTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.DeviceManufacturerTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Device Manufacturer Targeting.
    +   *
    +   * Can be used to target/exclude users on devices made by specific brands or
    +   * companies, such as Apple, Google, Samsung and others. For more information,
    +   * see https://support.google.com/admanager/answer/2884033 ("Targeting types >
    +   * Device manufacturer").
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DeviceManufacturerTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DeviceManufacturerTargeting) + com.google.ads.admanager.v1.DeviceManufacturerTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceManufacturerTargeting.class, + com.google.ads.admanager.v1.DeviceManufacturerTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DeviceManufacturerTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedDeviceManufacturers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedDeviceManufacturers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetedMobileDevices_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedMobileDevices_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetedMobileDeviceSubmodels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedMobileDeviceSubmodels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturerTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DeviceManufacturerTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturerTargeting build() { + com.google.ads.admanager.v1.DeviceManufacturerTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturerTargeting buildPartial() { + com.google.ads.admanager.v1.DeviceManufacturerTargeting result = + new com.google.ads.admanager.v1.DeviceManufacturerTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.DeviceManufacturerTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedDeviceManufacturers_.makeImmutable(); + result.targetedDeviceManufacturers_ = targetedDeviceManufacturers_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedDeviceManufacturers_.makeImmutable(); + result.excludedDeviceManufacturers_ = excludedDeviceManufacturers_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + targetedMobileDevices_.makeImmutable(); + result.targetedMobileDevices_ = targetedMobileDevices_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + excludedMobileDevices_.makeImmutable(); + result.excludedMobileDevices_ = excludedMobileDevices_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + targetedMobileDeviceSubmodels_.makeImmutable(); + result.targetedMobileDeviceSubmodels_ = targetedMobileDeviceSubmodels_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + excludedMobileDeviceSubmodels_.makeImmutable(); + result.excludedMobileDeviceSubmodels_ = excludedMobileDeviceSubmodels_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DeviceManufacturerTargeting) { + return mergeFrom((com.google.ads.admanager.v1.DeviceManufacturerTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DeviceManufacturerTargeting other) { + if (other == com.google.ads.admanager.v1.DeviceManufacturerTargeting.getDefaultInstance()) + return this; + if (!other.targetedDeviceManufacturers_.isEmpty()) { + if (targetedDeviceManufacturers_.isEmpty()) { + targetedDeviceManufacturers_ = other.targetedDeviceManufacturers_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedDeviceManufacturersIsMutable(); + targetedDeviceManufacturers_.addAll(other.targetedDeviceManufacturers_); + } + onChanged(); + } + if (!other.excludedDeviceManufacturers_.isEmpty()) { + if (excludedDeviceManufacturers_.isEmpty()) { + excludedDeviceManufacturers_ = other.excludedDeviceManufacturers_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedDeviceManufacturersIsMutable(); + excludedDeviceManufacturers_.addAll(other.excludedDeviceManufacturers_); + } + onChanged(); + } + if (!other.targetedMobileDevices_.isEmpty()) { + if (targetedMobileDevices_.isEmpty()) { + targetedMobileDevices_ = other.targetedMobileDevices_; + bitField0_ |= 0x00000004; + } else { + ensureTargetedMobileDevicesIsMutable(); + targetedMobileDevices_.addAll(other.targetedMobileDevices_); + } + onChanged(); + } + if (!other.excludedMobileDevices_.isEmpty()) { + if (excludedMobileDevices_.isEmpty()) { + excludedMobileDevices_ = other.excludedMobileDevices_; + bitField0_ |= 0x00000008; + } else { + ensureExcludedMobileDevicesIsMutable(); + excludedMobileDevices_.addAll(other.excludedMobileDevices_); + } + onChanged(); + } + if (!other.targetedMobileDeviceSubmodels_.isEmpty()) { + if (targetedMobileDeviceSubmodels_.isEmpty()) { + targetedMobileDeviceSubmodels_ = other.targetedMobileDeviceSubmodels_; + bitField0_ |= 0x00000010; + } else { + ensureTargetedMobileDeviceSubmodelsIsMutable(); + targetedMobileDeviceSubmodels_.addAll(other.targetedMobileDeviceSubmodels_); + } + onChanged(); + } + if (!other.excludedMobileDeviceSubmodels_.isEmpty()) { + if (excludedMobileDeviceSubmodels_.isEmpty()) { + excludedMobileDeviceSubmodels_ = other.excludedMobileDeviceSubmodels_; + bitField0_ |= 0x00000020; + } else { + ensureExcludedMobileDeviceSubmodelsIsMutable(); + excludedMobileDeviceSubmodels_.addAll(other.excludedMobileDeviceSubmodels_); + } + 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 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedDeviceManufacturersIsMutable(); + targetedDeviceManufacturers_.add(s); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedDeviceManufacturersIsMutable(); + excludedDeviceManufacturers_.add(s); + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedMobileDevicesIsMutable(); + targetedMobileDevices_.add(s); + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedMobileDevicesIsMutable(); + excludedMobileDevices_.add(s); + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedMobileDeviceSubmodelsIsMutable(); + targetedMobileDeviceSubmodels_.add(s); + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedMobileDeviceSubmodelsIsMutable(); + excludedMobileDeviceSubmodels_.add(s); + break; + } // case 98 + 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 targetedDeviceManufacturers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedDeviceManufacturersIsMutable() { + if (!targetedDeviceManufacturers_.isModifiable()) { + targetedDeviceManufacturers_ = + new com.google.protobuf.LazyStringArrayList(targetedDeviceManufacturers_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedDeviceManufacturers. + */ + public com.google.protobuf.ProtocolStringList getTargetedDeviceManufacturersList() { + targetedDeviceManufacturers_.makeImmutable(); + return targetedDeviceManufacturers_; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedDeviceManufacturers. + */ + public int getTargetedDeviceManufacturersCount() { + return targetedDeviceManufacturers_.size(); + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedDeviceManufacturers at the given index. + */ + public java.lang.String getTargetedDeviceManufacturers(int index) { + return targetedDeviceManufacturers_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedDeviceManufacturers at the given index. + */ + public com.google.protobuf.ByteString getTargetedDeviceManufacturersBytes(int index) { + return targetedDeviceManufacturers_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedDeviceManufacturers to set. + * @return This builder for chaining. + */ + public Builder setTargetedDeviceManufacturers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedDeviceManufacturersIsMutable(); + targetedDeviceManufacturers_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedDeviceManufacturers to add. + * @return This builder for chaining. + */ + public Builder addTargetedDeviceManufacturers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedDeviceManufacturersIsMutable(); + targetedDeviceManufacturers_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedDeviceManufacturers to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedDeviceManufacturers(java.lang.Iterable values) { + ensureTargetedDeviceManufacturersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedDeviceManufacturers_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedDeviceManufacturers() { + targetedDeviceManufacturers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedDeviceManufacturers to add. + * @return This builder for chaining. + */ + public Builder addTargetedDeviceManufacturersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedDeviceManufacturersIsMutable(); + targetedDeviceManufacturers_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedDeviceManufacturers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedDeviceManufacturersIsMutable() { + if (!excludedDeviceManufacturers_.isModifiable()) { + excludedDeviceManufacturers_ = + new com.google.protobuf.LazyStringArrayList(excludedDeviceManufacturers_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedDeviceManufacturers. + */ + public com.google.protobuf.ProtocolStringList getExcludedDeviceManufacturersList() { + excludedDeviceManufacturers_.makeImmutable(); + return excludedDeviceManufacturers_; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedDeviceManufacturers. + */ + public int getExcludedDeviceManufacturersCount() { + return excludedDeviceManufacturers_.size(); + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedDeviceManufacturers at the given index. + */ + public java.lang.String getExcludedDeviceManufacturers(int index) { + return excludedDeviceManufacturers_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedDeviceManufacturers at the given index. + */ + public com.google.protobuf.ByteString getExcludedDeviceManufacturersBytes(int index) { + return excludedDeviceManufacturers_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedDeviceManufacturers to set. + * @return This builder for chaining. + */ + public Builder setExcludedDeviceManufacturers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedDeviceManufacturersIsMutable(); + excludedDeviceManufacturers_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedDeviceManufacturers to add. + * @return This builder for chaining. + */ + public Builder addExcludedDeviceManufacturers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedDeviceManufacturersIsMutable(); + excludedDeviceManufacturers_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedDeviceManufacturers to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedDeviceManufacturers(java.lang.Iterable values) { + ensureExcludedDeviceManufacturersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedDeviceManufacturers_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedDeviceManufacturers() { + excludedDeviceManufacturers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of device manufacturer resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedDeviceManufacturers to add. + * @return This builder for chaining. + */ + public Builder addExcludedDeviceManufacturersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedDeviceManufacturersIsMutable(); + excludedDeviceManufacturers_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList targetedMobileDevices_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedMobileDevicesIsMutable() { + if (!targetedMobileDevices_.isModifiable()) { + targetedMobileDevices_ = + new com.google.protobuf.LazyStringArrayList(targetedMobileDevices_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedMobileDevices. + */ + public com.google.protobuf.ProtocolStringList getTargetedMobileDevicesList() { + targetedMobileDevices_.makeImmutable(); + return targetedMobileDevices_; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedMobileDevices. + */ + public int getTargetedMobileDevicesCount() { + return targetedMobileDevices_.size(); + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedMobileDevices at the given index. + */ + public java.lang.String getTargetedMobileDevices(int index) { + return targetedMobileDevices_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedMobileDevices at the given index. + */ + public com.google.protobuf.ByteString getTargetedMobileDevicesBytes(int index) { + return targetedMobileDevices_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedMobileDevices to set. + * @return This builder for chaining. + */ + public Builder setTargetedMobileDevices(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedMobileDevicesIsMutable(); + targetedMobileDevices_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedMobileDevices to add. + * @return This builder for chaining. + */ + public Builder addTargetedMobileDevices(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedMobileDevicesIsMutable(); + targetedMobileDevices_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedMobileDevices to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedMobileDevices(java.lang.Iterable values) { + ensureTargetedMobileDevicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedMobileDevices_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedMobileDevices() { + targetedMobileDevices_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedMobileDevices to add. + * @return This builder for chaining. + */ + public Builder addTargetedMobileDevicesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedMobileDevicesIsMutable(); + targetedMobileDevices_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedMobileDevices_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedMobileDevicesIsMutable() { + if (!excludedMobileDevices_.isModifiable()) { + excludedMobileDevices_ = + new com.google.protobuf.LazyStringArrayList(excludedMobileDevices_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedMobileDevices. + */ + public com.google.protobuf.ProtocolStringList getExcludedMobileDevicesList() { + excludedMobileDevices_.makeImmutable(); + return excludedMobileDevices_; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedMobileDevices. + */ + public int getExcludedMobileDevicesCount() { + return excludedMobileDevices_.size(); + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedMobileDevices at the given index. + */ + public java.lang.String getExcludedMobileDevices(int index) { + return excludedMobileDevices_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedMobileDevices at the given index. + */ + public com.google.protobuf.ByteString getExcludedMobileDevicesBytes(int index) { + return excludedMobileDevices_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedMobileDevices to set. + * @return This builder for chaining. + */ + public Builder setExcludedMobileDevices(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedMobileDevicesIsMutable(); + excludedMobileDevices_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedMobileDevices to add. + * @return This builder for chaining. + */ + public Builder addExcludedMobileDevices(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedMobileDevicesIsMutable(); + excludedMobileDevices_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedMobileDevices to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedMobileDevices(java.lang.Iterable values) { + ensureExcludedMobileDevicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedMobileDevices_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedMobileDevices() { + excludedMobileDevices_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedMobileDevices to add. + * @return This builder for chaining. + */ + public Builder addExcludedMobileDevicesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedMobileDevicesIsMutable(); + excludedMobileDevices_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList targetedMobileDeviceSubmodels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedMobileDeviceSubmodelsIsMutable() { + if (!targetedMobileDeviceSubmodels_.isModifiable()) { + targetedMobileDeviceSubmodels_ = + new com.google.protobuf.LazyStringArrayList(targetedMobileDeviceSubmodels_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedMobileDeviceSubmodels. + */ + public com.google.protobuf.ProtocolStringList getTargetedMobileDeviceSubmodelsList() { + targetedMobileDeviceSubmodels_.makeImmutable(); + return targetedMobileDeviceSubmodels_; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedMobileDeviceSubmodels. + */ + public int getTargetedMobileDeviceSubmodelsCount() { + return targetedMobileDeviceSubmodels_.size(); + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedMobileDeviceSubmodels at the given index. + */ + public java.lang.String getTargetedMobileDeviceSubmodels(int index) { + return targetedMobileDeviceSubmodels_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedMobileDeviceSubmodels at the given index. + */ + public com.google.protobuf.ByteString getTargetedMobileDeviceSubmodelsBytes(int index) { + return targetedMobileDeviceSubmodels_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedMobileDeviceSubmodels to set. + * @return This builder for chaining. + */ + public Builder setTargetedMobileDeviceSubmodels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedMobileDeviceSubmodelsIsMutable(); + targetedMobileDeviceSubmodels_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedMobileDeviceSubmodels to add. + * @return This builder for chaining. + */ + public Builder addTargetedMobileDeviceSubmodels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedMobileDeviceSubmodelsIsMutable(); + targetedMobileDeviceSubmodels_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedMobileDeviceSubmodels to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedMobileDeviceSubmodels( + java.lang.Iterable values) { + ensureTargetedMobileDeviceSubmodelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetedMobileDeviceSubmodels_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedMobileDeviceSubmodels() { + targetedMobileDeviceSubmodels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedMobileDeviceSubmodels to add. + * @return This builder for chaining. + */ + public Builder addTargetedMobileDeviceSubmodelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedMobileDeviceSubmodelsIsMutable(); + targetedMobileDeviceSubmodels_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedMobileDeviceSubmodels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedMobileDeviceSubmodelsIsMutable() { + if (!excludedMobileDeviceSubmodels_.isModifiable()) { + excludedMobileDeviceSubmodels_ = + new com.google.protobuf.LazyStringArrayList(excludedMobileDeviceSubmodels_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedMobileDeviceSubmodels. + */ + public com.google.protobuf.ProtocolStringList getExcludedMobileDeviceSubmodelsList() { + excludedMobileDeviceSubmodels_.makeImmutable(); + return excludedMobileDeviceSubmodels_; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedMobileDeviceSubmodels. + */ + public int getExcludedMobileDeviceSubmodelsCount() { + return excludedMobileDeviceSubmodels_.size(); + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedMobileDeviceSubmodels at the given index. + */ + public java.lang.String getExcludedMobileDeviceSubmodels(int index) { + return excludedMobileDeviceSubmodels_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedMobileDeviceSubmodels at the given index. + */ + public com.google.protobuf.ByteString getExcludedMobileDeviceSubmodelsBytes(int index) { + return excludedMobileDeviceSubmodels_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedMobileDeviceSubmodels to set. + * @return This builder for chaining. + */ + public Builder setExcludedMobileDeviceSubmodels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedMobileDeviceSubmodelsIsMutable(); + excludedMobileDeviceSubmodels_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedMobileDeviceSubmodels to add. + * @return This builder for chaining. + */ + public Builder addExcludedMobileDeviceSubmodels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedMobileDeviceSubmodelsIsMutable(); + excludedMobileDeviceSubmodels_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedMobileDeviceSubmodels to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedMobileDeviceSubmodels( + java.lang.Iterable values) { + ensureExcludedMobileDeviceSubmodelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, excludedMobileDeviceSubmodels_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedMobileDeviceSubmodels() { + excludedMobileDeviceSubmodels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile device submodel resource names that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedMobileDeviceSubmodels to add. + * @return This builder for chaining. + */ + public Builder addExcludedMobileDeviceSubmodelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedMobileDeviceSubmodelsIsMutable(); + excludedMobileDeviceSubmodels_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DeviceManufacturerTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DeviceManufacturerTargeting) + private static final com.google.ads.admanager.v1.DeviceManufacturerTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DeviceManufacturerTargeting(); + } + + public static com.google.ads.admanager.v1.DeviceManufacturerTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceManufacturerTargeting 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.admanager.v1.DeviceManufacturerTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerTargetingOrBuilder.java new file mode 100644 index 000000000000..949326da8132 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerTargetingOrBuilder.java @@ -0,0 +1,418 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DeviceManufacturerTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DeviceManufacturerTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedDeviceManufacturers. + */ + java.util.List getTargetedDeviceManufacturersList(); + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedDeviceManufacturers. + */ + int getTargetedDeviceManufacturersCount(); + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedDeviceManufacturers at the given index. + */ + java.lang.String getTargetedDeviceManufacturers(int index); + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_device_manufacturers = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedDeviceManufacturers at the given index. + */ + com.google.protobuf.ByteString getTargetedDeviceManufacturersBytes(int index); + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedDeviceManufacturers. + */ + java.util.List getExcludedDeviceManufacturersList(); + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedDeviceManufacturers. + */ + int getExcludedDeviceManufacturersCount(); + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedDeviceManufacturers at the given index. + */ + java.lang.String getExcludedDeviceManufacturers(int index); + + /** + * + * + *
    +   * Optional. A list of device manufacturer resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_device_manufacturers = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedDeviceManufacturers at the given index. + */ + com.google.protobuf.ByteString getExcludedDeviceManufacturersBytes(int index); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedMobileDevices. + */ + java.util.List getTargetedMobileDevicesList(); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedMobileDevices. + */ + int getTargetedMobileDevicesCount(); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedMobileDevices at the given index. + */ + java.lang.String getTargetedMobileDevices(int index); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_devices = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedMobileDevices at the given index. + */ + com.google.protobuf.ByteString getTargetedMobileDevicesBytes(int index); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedMobileDevices. + */ + java.util.List getExcludedMobileDevicesList(); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedMobileDevices. + */ + int getExcludedMobileDevicesCount(); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedMobileDevices at the given index. + */ + java.lang.String getExcludedMobileDevices(int index); + + /** + * + * + *
    +   * Optional. A list of mobile device resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_devices = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedMobileDevices at the given index. + */ + com.google.protobuf.ByteString getExcludedMobileDevicesBytes(int index); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedMobileDeviceSubmodels. + */ + java.util.List getTargetedMobileDeviceSubmodelsList(); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedMobileDeviceSubmodels. + */ + int getTargetedMobileDeviceSubmodelsCount(); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedMobileDeviceSubmodels at the given index. + */ + java.lang.String getTargetedMobileDeviceSubmodels(int index); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_device_submodels = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedMobileDeviceSubmodels at the given index. + */ + com.google.protobuf.ByteString getTargetedMobileDeviceSubmodelsBytes(int index); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedMobileDeviceSubmodels. + */ + java.util.List getExcludedMobileDeviceSubmodelsList(); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedMobileDeviceSubmodels. + */ + int getExcludedMobileDeviceSubmodelsCount(); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedMobileDeviceSubmodels at the given index. + */ + java.lang.String getExcludedMobileDeviceSubmodels(int index); + + /** + * + * + *
    +   * Optional. A list of mobile device submodel resource names that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_device_submodels = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedMobileDeviceSubmodels at the given index. + */ + com.google.protobuf.ByteString getExcludedMobileDeviceSubmodelsBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DisapprovalReason.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DisapprovalReason.java new file mode 100644 index 000000000000..27c380fe6441 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DisapprovalReason.java @@ -0,0 +1,891 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents the reason for which Google disapproved the Site.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DisapprovalReason} + */ +public final class DisapprovalReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DisapprovalReason) + DisapprovalReasonOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DisapprovalReason.newBuilder() to construct. + private DisapprovalReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DisapprovalReason() { + type_ = 0; + details_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DisapprovalReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_DisapprovalReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_DisapprovalReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DisapprovalReason.class, + com.google.ads.admanager.v1.DisapprovalReason.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
    +   * Output only. The type of policy violation found for the Site.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The type of policy violation found for the Site.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
    +   * Output only. The type of policy violation found for the Site.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason getType() { + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason result = + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason.forNumber( + type_); + return result == null + ? com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason.UNRECOGNIZED + : result; + } + + public static final int DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object details_ = ""; + + /** + * + * + *
    +   * Output only. Additional details for the disapproval of the Site.
    +   * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the details field is set. + */ + @java.lang.Override + public boolean hasDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. Additional details for the disapproval of the Site.
    +   * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The details. + */ + @java.lang.Override + public java.lang.String getDetails() { + java.lang.Object ref = details_; + 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(); + details_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Additional details for the disapproval of the Site.
    +   * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for details. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_); + } + 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.computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); + } + 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.admanager.v1.DisapprovalReason)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DisapprovalReason other = + (com.google.ads.admanager.v1.DisapprovalReason) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (type_ != other.type_) return false; + } + if (hasDetails() != other.hasDetails()) return false; + if (hasDetails()) { + if (!getDetails().equals(other.getDetails())) 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 (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasDetails()) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.DisapprovalReason parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DisapprovalReason 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.admanager.v1.DisapprovalReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DisapprovalReason 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.admanager.v1.DisapprovalReason parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DisapprovalReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DisapprovalReason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DisapprovalReason parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DisapprovalReason parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DisapprovalReason parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DisapprovalReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DisapprovalReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.DisapprovalReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents the reason for which Google disapproved the Site.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.DisapprovalReason} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DisapprovalReason) + com.google.ads.admanager.v1.DisapprovalReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_DisapprovalReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_DisapprovalReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DisapprovalReason.class, + com.google.ads.admanager.v1.DisapprovalReason.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DisapprovalReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + details_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_DisapprovalReason_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DisapprovalReason getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DisapprovalReason.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DisapprovalReason build() { + com.google.ads.admanager.v1.DisapprovalReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DisapprovalReason buildPartial() { + com.google.ads.admanager.v1.DisapprovalReason result = + new com.google.ads.admanager.v1.DisapprovalReason(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.DisapprovalReason result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.details_ = details_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DisapprovalReason) { + return mergeFrom((com.google.ads.admanager.v1.DisapprovalReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DisapprovalReason other) { + if (other == com.google.ads.admanager.v1.DisapprovalReason.getDefaultInstance()) return this; + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasDetails()) { + details_ = other.details_; + 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 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + details_ = 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 int type_ = 0; + + /** + * + * + *
    +     * Output only. The type of policy violation found for the Site.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Output only. The type of policy violation found for the Site.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
    +     * Output only. The type of policy violation found for the Site.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The type of policy violation found for the Site.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason getType() { + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason result = + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason.forNumber( + type_); + return result == null + ? com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The type of policy violation found for the Site.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The type of policy violation found for the Site.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object details_ = ""; + + /** + * + * + *
    +     * Output only. Additional details for the disapproval of the Site.
    +     * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the details field is set. + */ + public boolean hasDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. Additional details for the disapproval of the Site.
    +     * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The details. + */ + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Additional details for the disapproval of the Site.
    +     * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for details. + */ + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Additional details for the disapproval of the Site.
    +     * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The details to set. + * @return This builder for chaining. + */ + public Builder setDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Additional details for the disapproval of the Site.
    +     * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDetails() { + details_ = getDefaultInstance().getDetails(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Additional details for the disapproval of the Site.
    +     * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for details to set. + * @return This builder for chaining. + */ + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DisapprovalReason) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DisapprovalReason) + private static final com.google.ads.admanager.v1.DisapprovalReason DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DisapprovalReason(); + } + + public static com.google.ads.admanager.v1.DisapprovalReason getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisapprovalReason 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.admanager.v1.DisapprovalReason getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DisapprovalReasonOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DisapprovalReasonOrBuilder.java new file mode 100644 index 000000000000..77b3e5ac87b2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DisapprovalReasonOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DisapprovalReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DisapprovalReason) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The type of policy violation found for the Site.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
    +   * Output only. The type of policy violation found for the Site.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
    +   * Output only. The type of policy violation found for the Site.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason getType(); + + /** + * + * + *
    +   * Output only. Additional details for the disapproval of the Site.
    +   * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the details field is set. + */ + boolean hasDetails(); + + /** + * + * + *
    +   * Output only. Additional details for the disapproval of the Site.
    +   * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The details. + */ + java.lang.String getDetails(); + + /** + * + * + *
    +   * Output only. Additional details for the disapproval of the Site.
    +   * 
    + * + * optional string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for details. + */ + com.google.protobuf.ByteString getDetailsBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ExchangeSyndicationProductEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ExchangeSyndicationProductEnum.java new file mode 100644 index 000000000000..e4cb2e56fb3e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ExchangeSyndicationProductEnum.java @@ -0,0 +1,649 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/exchange_syndication_product_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [ExchangeSyndicationProduct][google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ExchangeSyndicationProductEnum} + */ +public final class ExchangeSyndicationProductEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ExchangeSyndicationProductEnum) + ExchangeSyndicationProductEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExchangeSyndicationProductEnum.newBuilder() to construct. + private ExchangeSyndicationProductEnum( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExchangeSyndicationProductEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExchangeSyndicationProductEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ExchangeSyndicationProductEnumProto + .internal_static_google_ads_admanager_v1_ExchangeSyndicationProductEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ExchangeSyndicationProductEnumProto + .internal_static_google_ads_admanager_v1_ExchangeSyndicationProductEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.class, + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.Builder.class); + } + + /** + * + * + *
    +   * Ad Exchange syndication product.
    +   * 
    + * + * Protobuf enum {@code + * google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct} + */ + public enum ExchangeSyndicationProduct implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * No value specified
    +     * 
    + * + * EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED = 0; + */ + EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED(0), + /** + * + * + *
    +     * Property serves in-browser.
    +     * 
    + * + * DISPLAY = 1; + */ + DISPLAY(1), + /** + * + * + *
    +     * Property serves on mobile applications (includes JS and SDK).
    +     * 
    + * + * MOBILE_APP = 2; + */ + MOBILE_APP(2), + /** + * + * + *
    +     * Property serves video (includes audio).
    +     * 
    + * + * VIDEO_AND_AUDIO = 3; + */ + VIDEO_AND_AUDIO(3), + /** + * + * + *
    +     * Property serves for games.
    +     * 
    + * + * GAMES = 4; + */ + GAMES(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * No value specified
    +     * 
    + * + * EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED = 0; + */ + public static final int EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Property serves in-browser.
    +     * 
    + * + * DISPLAY = 1; + */ + public static final int DISPLAY_VALUE = 1; + + /** + * + * + *
    +     * Property serves on mobile applications (includes JS and SDK).
    +     * 
    + * + * MOBILE_APP = 2; + */ + public static final int MOBILE_APP_VALUE = 2; + + /** + * + * + *
    +     * Property serves video (includes audio).
    +     * 
    + * + * VIDEO_AND_AUDIO = 3; + */ + public static final int VIDEO_AND_AUDIO_VALUE = 3; + + /** + * + * + *
    +     * Property serves for games.
    +     * 
    + * + * GAMES = 4; + */ + public static final int GAMES_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 ExchangeSyndicationProduct 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 ExchangeSyndicationProduct forNumber(int value) { + switch (value) { + case 0: + return EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED; + case 1: + return DISPLAY; + case 2: + return MOBILE_APP; + case 3: + return VIDEO_AND_AUDIO; + case 4: + return GAMES; + 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 ExchangeSyndicationProduct findValueByNumber(int number) { + return ExchangeSyndicationProduct.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ExchangeSyndicationProduct[] VALUES = values(); + + public static ExchangeSyndicationProduct 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 ExchangeSyndicationProduct(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct) + } + + 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.admanager.v1.ExchangeSyndicationProductEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum other = + (com.google.ads.admanager.v1.ExchangeSyndicationProductEnum) 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.admanager.v1.ExchangeSyndicationProductEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum 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.admanager.v1.ExchangeSyndicationProductEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum 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.admanager.v1.ExchangeSyndicationProductEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [ExchangeSyndicationProduct][google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ExchangeSyndicationProductEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ExchangeSyndicationProductEnum) + com.google.ads.admanager.v1.ExchangeSyndicationProductEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ExchangeSyndicationProductEnumProto + .internal_static_google_ads_admanager_v1_ExchangeSyndicationProductEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ExchangeSyndicationProductEnumProto + .internal_static_google_ads_admanager_v1_ExchangeSyndicationProductEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.class, + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.ExchangeSyndicationProductEnumProto + .internal_static_google_ads_admanager_v1_ExchangeSyndicationProductEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ExchangeSyndicationProductEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ExchangeSyndicationProductEnum build() { + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ExchangeSyndicationProductEnum buildPartial() { + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum result = + new com.google.ads.admanager.v1.ExchangeSyndicationProductEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ExchangeSyndicationProductEnum) { + return mergeFrom((com.google.ads.admanager.v1.ExchangeSyndicationProductEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ExchangeSyndicationProductEnum other) { + if (other == com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ExchangeSyndicationProductEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ExchangeSyndicationProductEnum) + private static final com.google.ads.admanager.v1.ExchangeSyndicationProductEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ExchangeSyndicationProductEnum(); + } + + public static com.google.ads.admanager.v1.ExchangeSyndicationProductEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExchangeSyndicationProductEnum 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.admanager.v1.ExchangeSyndicationProductEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ExchangeSyndicationProductEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ExchangeSyndicationProductEnumOrBuilder.java new file mode 100644 index 000000000000..e5d29d649045 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ExchangeSyndicationProductEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/exchange_syndication_product_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ExchangeSyndicationProductEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ExchangeSyndicationProductEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ExchangeSyndicationProductEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ExchangeSyndicationProductEnumProto.java new file mode 100644 index 000000000000..cee16bdf7961 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ExchangeSyndicationProductEnumProto.java @@ -0,0 +1,70 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/exchange_syndication_product_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ExchangeSyndicationProductEnumProto { + private ExchangeSyndicationProductEnumProto() {} + + 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_admanager_v1_ExchangeSyndicationProductEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ExchangeSyndicationProductEnum_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/admanager/v1/exchange_syndi" + + "cation_product_enum.proto\022\027google.ads.ad" + + "manager.v1\"\252\001\n\036ExchangeSyndicationProduc" + + "tEnum\"\207\001\n\032ExchangeSyndicationProduct\022,\n(" + + "EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED" + + "\020\000\022\013\n\007DISPLAY\020\001\022\016\n\nMOBILE_APP\020\002\022\023\n\017VIDEO" + + "_AND_AUDIO\020\003\022\t\n\005GAMES\020\004B\327\001\n\033com.google.a" + + "ds.admanager.v1B#ExchangeSyndicationProd" + + "uctEnumProtoP\001Z@google.golang.org/genpro" + + "to/googleapis/ads/admanager/v1;admanager" + + "\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\" + + "AdManager\\V1\352\002\032Google::Ads::AdManager::V" + + "1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_ExchangeSyndicationProductEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_ExchangeSyndicationProductEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ExchangeSyndicationProductEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsRequest.java index 4b50e81e1335..5f0c54ae790e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsRequest.java @@ -131,7 +131,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
        * Optional. The maximum number of rows to return. The service may return
        * fewer than this value. If unspecified, at most 1,000 rows will be returned.
    -   * The maximum value is 10,000; values above 10,000 will be reduced to 10,000.
    +   * The maximum value is 10,000; values greater than 10,000 will be reduced to
    +   * 10,000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -717,7 +718,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of rows to return. The service may return
          * fewer than this value. If unspecified, at most 1,000 rows will be returned.
    -     * The maximum value is 10,000; values above 10,000 will be reduced to 10,000.
    +     * The maximum value is 10,000; values greater than 10,000 will be reduced to
    +     * 10,000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -735,7 +737,8 @@ public int getPageSize() { *
          * Optional. The maximum number of rows to return. The service may return
          * fewer than this value. If unspecified, at most 1,000 rows will be returned.
    -     * The maximum value is 10,000; values above 10,000 will be reduced to 10,000.
    +     * The maximum value is 10,000; values greater than 10,000 will be reduced to
    +     * 10,000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -757,7 +760,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of rows to return. The service may return
          * fewer than this value. If unspecified, at most 1,000 rows will be returned.
    -     * The maximum value is 10,000; values above 10,000 will be reduced to 10,000.
    +     * The maximum value is 10,000; values greater than 10,000 will be reduced to
    +     * 10,000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsRequestOrBuilder.java index dc7fdbf260b6..c531ea11f0c7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsRequestOrBuilder.java @@ -60,7 +60,8 @@ public interface FetchReportResultRowsRequestOrBuilder *
        * Optional. The maximum number of rows to return. The service may return
        * fewer than this value. If unspecified, at most 1,000 rows will be returned.
    -   * The maximum value is 10,000; values above 10,000 will be reduced to 10,000.
    +   * The maximum value is 10,000; values greater than 10,000 will be reduced to
    +   * 10,000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsResponse.java index c5a695a9ea16..acc2a6c9d5e7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsResponse.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int ROWS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List rows_; + private java.util.List rows_; /** * @@ -80,10 +80,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ @java.lang.Override - public java.util.List getRowsList() { + public java.util.List getRowsList() { return rows_; } @@ -94,10 +94,10 @@ public java.util.List getRowsL * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRowsOrBuilderList() { return rows_; } @@ -109,7 +109,7 @@ public java.util.List getRowsL * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ @java.lang.Override public int getRowsCount() { @@ -123,10 +123,10 @@ public int getRowsCount() { * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.Row getRows(int index) { + public com.google.ads.admanager.v1.ReportDataTable.Row getRows(int index) { return rows_.get(index); } @@ -137,10 +137,10 @@ public com.google.ads.admanager.v1.Report.DataTable.Row getRows(int index) { * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder getRowsOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDataTable.RowOrBuilder getRowsOrBuilder(int index) { return rows_.get(index); } @@ -199,7 +199,8 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { public static final int DATE_RANGES_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private java.util.List dateRanges_; + private java.util.List + dateRanges_; /** * @@ -210,10 +211,12 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getDateRangesList() { return dateRanges_; } @@ -227,11 +230,13 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ @java.lang.Override public java.util.List< - ? extends com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> + ? extends com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> getDateRangesOrBuilderList() { return dateRanges_; } @@ -245,7 +250,9 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ @java.lang.Override public int getDateRangesCount() { @@ -261,10 +268,13 @@ public int getDateRangesCount() { * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getDateRanges(int index) { + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange getDateRanges( + int index) { return dateRanges_.get(index); } @@ -277,10 +287,12 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getDateRanges * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder getDateRangesOrBuilder(int index) { return dateRanges_.get(index); } @@ -288,7 +300,7 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getDateRanges public static final int COMPARISON_DATE_RANGES_FIELD_NUMBER = 4; @SuppressWarnings("serial") - private java.util.List + private java.util.List comparisonDateRanges_; /** @@ -301,11 +313,11 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getDateRanges * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ @java.lang.Override - public java.util.List + public java.util.List getComparisonDateRangesList() { return comparisonDateRanges_; } @@ -320,12 +332,12 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getDateRanges * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ @java.lang.Override public java.util.List< - ? extends com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> + ? extends com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> getComparisonDateRangesOrBuilderList() { return comparisonDateRanges_; } @@ -340,7 +352,7 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getDateRanges * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ @java.lang.Override @@ -358,12 +370,12 @@ public int getComparisonDateRangesCount() { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getComparisonDateRanges( - int index) { + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + getComparisonDateRanges(int index) { return comparisonDateRanges_.get(index); } @@ -377,11 +389,11 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getComparison * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder getComparisonDateRangesOrBuilder(int index) { return comparisonDateRanges_.get(index); } @@ -1008,9 +1020,9 @@ public Builder mergeFrom( break; case 10: { - com.google.ads.admanager.v1.Report.DataTable.Row m = + com.google.ads.admanager.v1.ReportDataTable.Row m = input.readMessage( - com.google.ads.admanager.v1.Report.DataTable.Row.parser(), + com.google.ads.admanager.v1.ReportDataTable.Row.parser(), extensionRegistry); if (rowsBuilder_ == null) { ensureRowsIsMutable(); @@ -1028,9 +1040,10 @@ public Builder mergeFrom( } // case 18 case 26: { - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange m = + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange m = input.readMessage( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.parser(), + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .parser(), extensionRegistry); if (dateRangesBuilder_ == null) { ensureDateRangesIsMutable(); @@ -1042,9 +1055,10 @@ public Builder mergeFrom( } // case 26 case 34: { - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange m = + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange m = input.readMessage( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.parser(), + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .parser(), extensionRegistry); if (comparisonDateRangesBuilder_ == null) { ensureComparisonDateRangesIsMutable(); @@ -1085,20 +1099,20 @@ public Builder mergeFrom( private int bitField0_; - private java.util.List rows_ = + private java.util.List rows_ = java.util.Collections.emptyList(); private void ensureRowsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - rows_ = new java.util.ArrayList(rows_); + rows_ = new java.util.ArrayList(rows_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DataTable.Row, - com.google.ads.admanager.v1.Report.DataTable.Row.Builder, - com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder> + com.google.ads.admanager.v1.ReportDataTable.Row, + com.google.ads.admanager.v1.ReportDataTable.Row.Builder, + com.google.ads.admanager.v1.ReportDataTable.RowOrBuilder> rowsBuilder_; /** @@ -1108,9 +1122,9 @@ private void ensureRowsIsMutable() { * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public java.util.List getRowsList() { + public java.util.List getRowsList() { if (rowsBuilder_ == null) { return java.util.Collections.unmodifiableList(rows_); } else { @@ -1125,7 +1139,7 @@ public java.util.List getRowsL * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ public int getRowsCount() { if (rowsBuilder_ == null) { @@ -1142,9 +1156,9 @@ public int getRowsCount() { * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public com.google.ads.admanager.v1.Report.DataTable.Row getRows(int index) { + public com.google.ads.admanager.v1.ReportDataTable.Row getRows(int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { @@ -1159,9 +1173,9 @@ public com.google.ads.admanager.v1.Report.DataTable.Row getRows(int index) { * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public Builder setRows(int index, com.google.ads.admanager.v1.Report.DataTable.Row value) { + public Builder setRows(int index, com.google.ads.admanager.v1.ReportDataTable.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1182,10 +1196,10 @@ public Builder setRows(int index, com.google.ads.admanager.v1.Report.DataTable.R * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ public Builder setRows( - int index, com.google.ads.admanager.v1.Report.DataTable.Row.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDataTable.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); @@ -1203,9 +1217,9 @@ public Builder setRows( * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public Builder addRows(com.google.ads.admanager.v1.Report.DataTable.Row value) { + public Builder addRows(com.google.ads.admanager.v1.ReportDataTable.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1226,9 +1240,9 @@ public Builder addRows(com.google.ads.admanager.v1.Report.DataTable.Row value) { * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public Builder addRows(int index, com.google.ads.admanager.v1.Report.DataTable.Row value) { + public Builder addRows(int index, com.google.ads.admanager.v1.ReportDataTable.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1249,10 +1263,10 @@ public Builder addRows(int index, com.google.ads.admanager.v1.Report.DataTable.R * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ public Builder addRows( - com.google.ads.admanager.v1.Report.DataTable.Row.Builder builderForValue) { + com.google.ads.admanager.v1.ReportDataTable.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); @@ -1270,10 +1284,10 @@ public Builder addRows( * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ public Builder addRows( - int index, com.google.ads.admanager.v1.Report.DataTable.Row.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDataTable.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); @@ -1291,10 +1305,10 @@ public Builder addRows( * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ public Builder addAllRows( - java.lang.Iterable values) { + java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); @@ -1312,7 +1326,7 @@ public Builder addAllRows( * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ public Builder clearRows() { if (rowsBuilder_ == null) { @@ -1332,7 +1346,7 @@ public Builder clearRows() { * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ public Builder removeRows(int index) { if (rowsBuilder_ == null) { @@ -1352,9 +1366,9 @@ public Builder removeRows(int index) { * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public com.google.ads.admanager.v1.Report.DataTable.Row.Builder getRowsBuilder(int index) { + public com.google.ads.admanager.v1.ReportDataTable.Row.Builder getRowsBuilder(int index) { return getRowsFieldBuilder().getBuilder(index); } @@ -1365,9 +1379,9 @@ public com.google.ads.admanager.v1.Report.DataTable.Row.Builder getRowsBuilder(i * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder getRowsOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDataTable.RowOrBuilder getRowsOrBuilder(int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { @@ -1382,9 +1396,9 @@ public com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder getRowsOrBuilde * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public java.util.List + public java.util.List getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); @@ -1400,11 +1414,11 @@ public com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder getRowsOrBuilde * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public com.google.ads.admanager.v1.Report.DataTable.Row.Builder addRowsBuilder() { + public com.google.ads.admanager.v1.ReportDataTable.Row.Builder addRowsBuilder() { return getRowsFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.DataTable.Row.getDefaultInstance()); + .addBuilder(com.google.ads.admanager.v1.ReportDataTable.Row.getDefaultInstance()); } /** @@ -1414,11 +1428,11 @@ public com.google.ads.admanager.v1.Report.DataTable.Row.Builder addRowsBuilder() * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public com.google.ads.admanager.v1.Report.DataTable.Row.Builder addRowsBuilder(int index) { + public com.google.ads.admanager.v1.ReportDataTable.Row.Builder addRowsBuilder(int index) { return getRowsFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.DataTable.Row.getDefaultInstance()); + .addBuilder(index, com.google.ads.admanager.v1.ReportDataTable.Row.getDefaultInstance()); } /** @@ -1428,24 +1442,24 @@ public com.google.ads.admanager.v1.Report.DataTable.Row.Builder addRowsBuilder(i * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - public java.util.List + public java.util.List getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DataTable.Row, - com.google.ads.admanager.v1.Report.DataTable.Row.Builder, - com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder> + com.google.ads.admanager.v1.ReportDataTable.Row, + com.google.ads.admanager.v1.ReportDataTable.Row.Builder, + com.google.ads.admanager.v1.ReportDataTable.RowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DataTable.Row, - com.google.ads.admanager.v1.Report.DataTable.Row.Builder, - com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder>( + com.google.ads.admanager.v1.ReportDataTable.Row, + com.google.ads.admanager.v1.ReportDataTable.Row.Builder, + com.google.ads.admanager.v1.ReportDataTable.RowOrBuilder>( rows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rows_ = null; } @@ -1651,22 +1665,22 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { return runTimeBuilder_; } - private java.util.List + private java.util.List dateRanges_ = java.util.Collections.emptyList(); private void ensureDateRangesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { dateRanges_ = - new java.util.ArrayList( - dateRanges_); + new java.util.ArrayList< + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange>(dateRanges_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> dateRangesBuilder_; /** @@ -1678,10 +1692,11 @@ private void ensureDateRangesIsMutable() { * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ - public java.util.List + public java.util.List getDateRangesList() { if (dateRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(dateRanges_); @@ -1699,7 +1714,8 @@ private void ensureDateRangesIsMutable() { * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public int getDateRangesCount() { @@ -1719,10 +1735,12 @@ public int getDateRangesCount() { * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getDateRanges(int index) { + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange getDateRanges( + int index) { if (dateRangesBuilder_ == null) { return dateRanges_.get(index); } else { @@ -1739,11 +1757,12 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getDateRanges * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public Builder setDateRanges( - int index, com.google.ads.admanager.v1.Report.DateRange.FixedDateRange value) { + int index, com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange value) { if (dateRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1766,12 +1785,14 @@ public Builder setDateRanges( * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public Builder setDateRanges( int index, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder builderForValue) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + builderForValue) { if (dateRangesBuilder_ == null) { ensureDateRangesIsMutable(); dateRanges_.set(index, builderForValue.build()); @@ -1791,11 +1812,12 @@ public Builder setDateRanges( * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public Builder addDateRanges( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange value) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange value) { if (dateRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1818,11 +1840,12 @@ public Builder addDateRanges( * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public Builder addDateRanges( - int index, com.google.ads.admanager.v1.Report.DateRange.FixedDateRange value) { + int index, com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange value) { if (dateRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1845,11 +1868,13 @@ public Builder addDateRanges( * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public Builder addDateRanges( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder builderForValue) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + builderForValue) { if (dateRangesBuilder_ == null) { ensureDateRangesIsMutable(); dateRanges_.add(builderForValue.build()); @@ -1869,12 +1894,14 @@ public Builder addDateRanges( * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public Builder addDateRanges( int index, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder builderForValue) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + builderForValue) { if (dateRangesBuilder_ == null) { ensureDateRangesIsMutable(); dateRanges_.add(index, builderForValue.build()); @@ -1894,11 +1921,13 @@ public Builder addDateRanges( * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public Builder addAllDateRanges( - java.lang.Iterable + java.lang.Iterable< + ? extends com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange> values) { if (dateRangesBuilder_ == null) { ensureDateRangesIsMutable(); @@ -1919,7 +1948,8 @@ public Builder addAllDateRanges( * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public Builder clearDateRanges() { @@ -1942,7 +1972,8 @@ public Builder clearDateRanges() { * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public Builder removeDateRanges(int index) { @@ -1965,11 +1996,12 @@ public Builder removeDateRanges(int index) { * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder getDateRangesBuilder( - int index) { + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + getDateRangesBuilder(int index) { return getDateRangesFieldBuilder().getBuilder(index); } @@ -1982,10 +2014,11 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder getDa * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder getDateRangesOrBuilder(int index) { if (dateRangesBuilder_ == null) { return dateRanges_.get(index); @@ -2003,11 +2036,13 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder getDa * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ public java.util.List< - ? extends com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> + ? extends + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> getDateRangesOrBuilderList() { if (dateRangesBuilder_ != null) { return dateRangesBuilder_.getMessageOrBuilderList(); @@ -2025,14 +2060,16 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder getDa * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder addDateRangesBuilder() { return getDateRangesFieldBuilder() .addBuilder( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance()); + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance()); } /** @@ -2044,15 +2081,17 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder getDa * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder addDateRangesBuilder( - int index) { + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + addDateRangesBuilder(int index) { return getDateRangesFieldBuilder() .addBuilder( index, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance()); + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance()); } /** @@ -2064,47 +2103,50 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder addDa * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; * */ - public java.util.List + public java.util.List< + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder> getDateRangesBuilderList() { return getDateRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> getDateRangesFieldBuilder() { if (dateRangesBuilder_ == null) { dateRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder>( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder>( dateRanges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); dateRanges_ = null; } return dateRangesBuilder_; } - private java.util.List + private java.util.List comparisonDateRanges_ = java.util.Collections.emptyList(); private void ensureComparisonDateRangesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { comparisonDateRanges_ = - new java.util.ArrayList( + new java.util.ArrayList< + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange>( comparisonDateRanges_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> comparisonDateRangesBuilder_; /** @@ -2117,10 +2159,10 @@ private void ensureComparisonDateRangesIsMutable() { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - public java.util.List + public java.util.List getComparisonDateRangesList() { if (comparisonDateRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(comparisonDateRanges_); @@ -2139,7 +2181,7 @@ private void ensureComparisonDateRangesIsMutable() { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public int getComparisonDateRangesCount() { @@ -2160,11 +2202,11 @@ public int getComparisonDateRangesCount() { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getComparisonDateRanges( - int index) { + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + getComparisonDateRanges(int index) { if (comparisonDateRangesBuilder_ == null) { return comparisonDateRanges_.get(index); } else { @@ -2182,11 +2224,11 @@ public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getComparison * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public Builder setComparisonDateRanges( - int index, com.google.ads.admanager.v1.Report.DateRange.FixedDateRange value) { + int index, com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange value) { if (comparisonDateRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2210,12 +2252,13 @@ public Builder setComparisonDateRanges( * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public Builder setComparisonDateRanges( int index, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder builderForValue) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + builderForValue) { if (comparisonDateRangesBuilder_ == null) { ensureComparisonDateRangesIsMutable(); comparisonDateRanges_.set(index, builderForValue.build()); @@ -2236,11 +2279,11 @@ public Builder setComparisonDateRanges( * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public Builder addComparisonDateRanges( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange value) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange value) { if (comparisonDateRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2264,11 +2307,11 @@ public Builder addComparisonDateRanges( * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public Builder addComparisonDateRanges( - int index, com.google.ads.admanager.v1.Report.DateRange.FixedDateRange value) { + int index, com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange value) { if (comparisonDateRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2292,11 +2335,12 @@ public Builder addComparisonDateRanges( * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public Builder addComparisonDateRanges( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder builderForValue) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + builderForValue) { if (comparisonDateRangesBuilder_ == null) { ensureComparisonDateRangesIsMutable(); comparisonDateRanges_.add(builderForValue.build()); @@ -2317,12 +2361,13 @@ public Builder addComparisonDateRanges( * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public Builder addComparisonDateRanges( int index, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder builderForValue) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + builderForValue) { if (comparisonDateRangesBuilder_ == null) { ensureComparisonDateRangesIsMutable(); comparisonDateRanges_.add(index, builderForValue.build()); @@ -2343,11 +2388,12 @@ public Builder addComparisonDateRanges( * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public Builder addAllComparisonDateRanges( - java.lang.Iterable + java.lang.Iterable< + ? extends com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange> values) { if (comparisonDateRangesBuilder_ == null) { ensureComparisonDateRangesIsMutable(); @@ -2369,7 +2415,7 @@ public Builder addAllComparisonDateRanges( * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public Builder clearComparisonDateRanges() { @@ -2393,7 +2439,7 @@ public Builder clearComparisonDateRanges() { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public Builder removeComparisonDateRanges(int index) { @@ -2417,10 +2463,10 @@ public Builder removeComparisonDateRanges(int index) { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder getComparisonDateRangesBuilder(int index) { return getComparisonDateRangesFieldBuilder().getBuilder(index); } @@ -2435,10 +2481,10 @@ public Builder removeComparisonDateRanges(int index) { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder getComparisonDateRangesOrBuilder(int index) { if (comparisonDateRangesBuilder_ == null) { return comparisonDateRanges_.get(index); @@ -2457,11 +2503,12 @@ public Builder removeComparisonDateRanges(int index) { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ public java.util.List< - ? extends com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> + ? extends + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> getComparisonDateRangesOrBuilderList() { if (comparisonDateRangesBuilder_ != null) { return comparisonDateRangesBuilder_.getMessageOrBuilderList(); @@ -2480,14 +2527,15 @@ public Builder removeComparisonDateRanges(int index) { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder addComparisonDateRangesBuilder() { return getComparisonDateRangesFieldBuilder() .addBuilder( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance()); + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance()); } /** @@ -2500,15 +2548,16 @@ public Builder removeComparisonDateRanges(int index) { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder addComparisonDateRangesBuilder(int index) { return getComparisonDateRangesFieldBuilder() .addBuilder( index, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance()); + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance()); } /** @@ -2521,25 +2570,26 @@ public Builder removeComparisonDateRanges(int index) { * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - public java.util.List + public java.util.List< + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder> getComparisonDateRangesBuilderList() { return getComparisonDateRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> getComparisonDateRangesFieldBuilder() { if (comparisonDateRangesBuilder_ == null) { comparisonDateRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder>( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder>( comparisonDateRanges_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsResponseOrBuilder.java index 7464843d1a32..d053aee28ee6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FetchReportResultRowsResponseOrBuilder.java @@ -31,9 +31,9 @@ public interface FetchReportResultRowsResponseOrBuilder * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - java.util.List getRowsList(); + java.util.List getRowsList(); /** * @@ -42,9 +42,9 @@ public interface FetchReportResultRowsResponseOrBuilder * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - com.google.ads.admanager.v1.Report.DataTable.Row getRows(int index); + com.google.ads.admanager.v1.ReportDataTable.Row getRows(int index); /** * @@ -53,7 +53,7 @@ public interface FetchReportResultRowsResponseOrBuilder * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ int getRowsCount(); @@ -64,9 +64,9 @@ public interface FetchReportResultRowsResponseOrBuilder * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - java.util.List + java.util.List getRowsOrBuilderList(); /** @@ -76,9 +76,9 @@ public interface FetchReportResultRowsResponseOrBuilder * Up to `page_size` rows of report data. * * - * repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; + * repeated .google.ads.admanager.v1.ReportDataTable.Row rows = 1; */ - com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder getRowsOrBuilder(int index); + com.google.ads.admanager.v1.ReportDataTable.RowOrBuilder getRowsOrBuilder(int index); /** * @@ -129,9 +129,12 @@ public interface FetchReportResultRowsResponseOrBuilder * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ - java.util.List getDateRangesList(); + java.util.List + getDateRangesList(); /** * @@ -142,9 +145,11 @@ public interface FetchReportResultRowsResponseOrBuilder * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getDateRanges(int index); + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange getDateRanges(int index); /** * @@ -155,7 +160,9 @@ public interface FetchReportResultRowsResponseOrBuilder * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ int getDateRangesCount(); @@ -168,9 +175,12 @@ public interface FetchReportResultRowsResponseOrBuilder * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ - java.util.List + java.util.List< + ? extends com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> getDateRangesOrBuilderList(); /** @@ -182,10 +192,12 @@ public interface FetchReportResultRowsResponseOrBuilder * included in the request). * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; + * + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange date_ranges = 3; + * */ - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder getDateRangesOrBuilder( - int index); + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder + getDateRangesOrBuilder(int index); /** * @@ -197,10 +209,10 @@ com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder getDateRang * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - java.util.List + java.util.List getComparisonDateRangesList(); /** @@ -213,10 +225,11 @@ com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder getDateRang * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getComparisonDateRanges(int index); + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange getComparisonDateRanges( + int index); /** * @@ -228,7 +241,7 @@ com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder getDateRang * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ int getComparisonDateRangesCount(); @@ -243,10 +256,11 @@ com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder getDateRang * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - java.util.List + java.util.List< + ? extends com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> getComparisonDateRangesOrBuilderList(); /** @@ -259,10 +273,10 @@ com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder getDateRang * * * - * repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; + * repeated .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; * */ - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder getComparisonDateRangesOrBuilder(int index); /** diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FirstPartyMobileApplicationTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FirstPartyMobileApplicationTargeting.java new file mode 100644 index 000000000000..7065a3a817ad --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FirstPartyMobileApplicationTargeting.java @@ -0,0 +1,1115 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * First-party mobile application targeting.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.FirstPartyMobileApplicationTargeting} + */ +public final class FirstPartyMobileApplicationTargeting + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) + FirstPartyMobileApplicationTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FirstPartyMobileApplicationTargeting.newBuilder() to construct. + private FirstPartyMobileApplicationTargeting( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FirstPartyMobileApplicationTargeting() { + targetedApplications_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedApplications_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FirstPartyMobileApplicationTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.class, + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.Builder.class); + } + + public static final int TARGETED_APPLICATIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedApplications_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * targeted.
    +   * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedApplications. + */ + public com.google.protobuf.ProtocolStringList getTargetedApplicationsList() { + return targetedApplications_; + } + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * targeted.
    +   * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedApplications. + */ + public int getTargetedApplicationsCount() { + return targetedApplications_.size(); + } + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * targeted.
    +   * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedApplications at the given index. + */ + public java.lang.String getTargetedApplications(int index) { + return targetedApplications_.get(index); + } + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * targeted.
    +   * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedApplications at the given index. + */ + public com.google.protobuf.ByteString getTargetedApplicationsBytes(int index) { + return targetedApplications_.getByteString(index); + } + + public static final int EXCLUDED_APPLICATIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedApplications_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedApplications. + */ + public com.google.protobuf.ProtocolStringList getExcludedApplicationsList() { + return excludedApplications_; + } + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedApplications. + */ + public int getExcludedApplicationsCount() { + return excludedApplications_.size(); + } + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedApplications at the given index. + */ + public java.lang.String getExcludedApplications(int index) { + return excludedApplications_.get(index); + } + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedApplications at the given index. + */ + public com.google.protobuf.ByteString getExcludedApplicationsBytes(int index) { + return excludedApplications_.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 < targetedApplications_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, targetedApplications_.getRaw(i)); + } + for (int i = 0; i < excludedApplications_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, excludedApplications_.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 < targetedApplications_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedApplications_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedApplicationsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedApplications_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedApplications_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedApplicationsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting other = + (com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) obj; + + if (!getTargetedApplicationsList().equals(other.getTargetedApplicationsList())) return false; + if (!getExcludedApplicationsList().equals(other.getExcludedApplicationsList())) 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 (getTargetedApplicationsCount() > 0) { + hash = (37 * hash) + TARGETED_APPLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedApplicationsList().hashCode(); + } + if (getExcludedApplicationsCount() > 0) { + hash = (37 * hash) + EXCLUDED_APPLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedApplicationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting 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.admanager.v1.FirstPartyMobileApplicationTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting 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.admanager.v1.FirstPartyMobileApplicationTargeting parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * First-party mobile application targeting.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.FirstPartyMobileApplicationTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.class, + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedApplications_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedApplications_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting build() { + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting buildPartial() { + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting result = + new com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedApplications_.makeImmutable(); + result.targetedApplications_ = targetedApplications_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedApplications_.makeImmutable(); + result.excludedApplications_ = excludedApplications_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) { + return mergeFrom((com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting other) { + if (other + == com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.getDefaultInstance()) + return this; + if (!other.targetedApplications_.isEmpty()) { + if (targetedApplications_.isEmpty()) { + targetedApplications_ = other.targetedApplications_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedApplicationsIsMutable(); + targetedApplications_.addAll(other.targetedApplications_); + } + onChanged(); + } + if (!other.excludedApplications_.isEmpty()) { + if (excludedApplications_.isEmpty()) { + excludedApplications_ = other.excludedApplications_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedApplicationsIsMutable(); + excludedApplications_.addAll(other.excludedApplications_); + } + 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 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedApplicationsIsMutable(); + targetedApplications_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedApplicationsIsMutable(); + excludedApplications_.add(s); + break; + } // case 34 + 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 targetedApplications_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedApplicationsIsMutable() { + if (!targetedApplications_.isModifiable()) { + targetedApplications_ = new com.google.protobuf.LazyStringArrayList(targetedApplications_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * targeted.
    +     * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedApplications. + */ + public com.google.protobuf.ProtocolStringList getTargetedApplicationsList() { + targetedApplications_.makeImmutable(); + return targetedApplications_; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * targeted.
    +     * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedApplications. + */ + public int getTargetedApplicationsCount() { + return targetedApplications_.size(); + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * targeted.
    +     * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedApplications at the given index. + */ + public java.lang.String getTargetedApplications(int index) { + return targetedApplications_.get(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * targeted.
    +     * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedApplications at the given index. + */ + public com.google.protobuf.ByteString getTargetedApplicationsBytes(int index) { + return targetedApplications_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * targeted.
    +     * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedApplications to set. + * @return This builder for chaining. + */ + public Builder setTargetedApplications(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedApplicationsIsMutable(); + targetedApplications_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * targeted.
    +     * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedApplications to add. + * @return This builder for chaining. + */ + public Builder addTargetedApplications(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedApplicationsIsMutable(); + targetedApplications_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * targeted.
    +     * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedApplications to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedApplications(java.lang.Iterable values) { + ensureTargetedApplicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedApplications_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * targeted.
    +     * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedApplications() { + targetedApplications_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * targeted.
    +     * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedApplications to add. + * @return This builder for chaining. + */ + public Builder addTargetedApplicationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedApplicationsIsMutable(); + targetedApplications_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedApplications_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedApplicationsIsMutable() { + if (!excludedApplications_.isModifiable()) { + excludedApplications_ = new com.google.protobuf.LazyStringArrayList(excludedApplications_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedApplications. + */ + public com.google.protobuf.ProtocolStringList getExcludedApplicationsList() { + excludedApplications_.makeImmutable(); + return excludedApplications_; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedApplications. + */ + public int getExcludedApplicationsCount() { + return excludedApplications_.size(); + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedApplications at the given index. + */ + public java.lang.String getExcludedApplications(int index) { + return excludedApplications_.get(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedApplications at the given index. + */ + public com.google.protobuf.ByteString getExcludedApplicationsBytes(int index) { + return excludedApplications_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedApplications to set. + * @return This builder for chaining. + */ + public Builder setExcludedApplications(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedApplicationsIsMutable(); + excludedApplications_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedApplications to add. + * @return This builder for chaining. + */ + public Builder addExcludedApplications(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedApplicationsIsMutable(); + excludedApplications_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedApplications to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedApplications(java.lang.Iterable values) { + ensureExcludedApplicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedApplications_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedApplications() { + excludedApplications_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The resource names of the first-party applications that should be
    +     * excluded.
    +     * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedApplications to add. + * @return This builder for chaining. + */ + public Builder addExcludedApplicationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedApplicationsIsMutable(); + excludedApplications_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) + private static final com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting(); + } + + public static com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirstPartyMobileApplicationTargeting 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.admanager.v1.FirstPartyMobileApplicationTargeting + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FirstPartyMobileApplicationTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FirstPartyMobileApplicationTargetingOrBuilder.java new file mode 100644 index 000000000000..0868db04378e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/FirstPartyMobileApplicationTargetingOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface FirstPartyMobileApplicationTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * targeted.
    +   * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedApplications. + */ + java.util.List getTargetedApplicationsList(); + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * targeted.
    +   * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedApplications. + */ + int getTargetedApplicationsCount(); + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * targeted.
    +   * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedApplications at the given index. + */ + java.lang.String getTargetedApplications(int index); + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * targeted.
    +   * 
    + * + * + * repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedApplications at the given index. + */ + com.google.protobuf.ByteString getTargetedApplicationsBytes(int index); + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedApplications. + */ + java.util.List getExcludedApplicationsList(); + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedApplications. + */ + int getExcludedApplicationsCount(); + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedApplications at the given index. + */ + java.lang.String getExcludedApplications(int index); + + /** + * + * + *
    +   * Optional. The resource names of the first-party applications that should be
    +   * excluded.
    +   * 
    + * + * + * repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedApplications at the given index. + */ + com.google.protobuf.ByteString getExcludedApplicationsBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetApplicationRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetApplicationRequest.java new file mode 100644 index 000000000000..4d32ad07ce3e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetApplicationRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetApplication` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetApplicationRequest} + */ +public final class GetApplicationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetApplicationRequest) + GetApplicationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetApplicationRequest.newBuilder() to construct. + private GetApplicationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetApplicationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetApplicationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_GetApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_GetApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetApplicationRequest.class, + com.google.ads.admanager.v1.GetApplicationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the Application.
    +   * Format: `networks/{network_code}/applications/{application_id}`
    +   * 
    + * + * + * 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. The resource name of the Application.
    +   * Format: `networks/{network_code}/applications/{application_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetApplicationRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetApplicationRequest other = + (com.google.ads.admanager.v1.GetApplicationRequest) 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.ads.admanager.v1.GetApplicationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest 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.admanager.v1.GetApplicationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest 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.admanager.v1.GetApplicationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetApplicationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetApplication` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetApplicationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetApplicationRequest) + com.google.ads.admanager.v1.GetApplicationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_GetApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_GetApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetApplicationRequest.class, + com.google.ads.admanager.v1.GetApplicationRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetApplicationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_GetApplicationRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetApplicationRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetApplicationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetApplicationRequest build() { + com.google.ads.admanager.v1.GetApplicationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetApplicationRequest buildPartial() { + com.google.ads.admanager.v1.GetApplicationRequest result = + new com.google.ads.admanager.v1.GetApplicationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetApplicationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetApplicationRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetApplicationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetApplicationRequest other) { + if (other == com.google.ads.admanager.v1.GetApplicationRequest.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. The resource name of the Application.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * + * 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. The resource name of the Application.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * + * 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. The resource name of the Application.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * + * 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. The resource name of the Application.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * + * 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. The resource name of the Application.
    +     * Format: `networks/{network_code}/applications/{application_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetApplicationRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetApplicationRequest) + private static final com.google.ads.admanager.v1.GetApplicationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetApplicationRequest(); + } + + public static com.google.ads.admanager.v1.GetApplicationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApplicationRequest 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.admanager.v1.GetApplicationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetApplicationRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..0f542f63eabe --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetApplicationRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetApplicationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetApplicationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the Application.
    +   * Format: `networks/{network_code}/applications/{application_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the Application.
    +   * Format: `networks/{network_code}/applications/{application_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAudienceSegmentRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAudienceSegmentRequest.java new file mode 100644 index 000000000000..616e9606c6d2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAudienceSegmentRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetAudienceSegment` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetAudienceSegmentRequest} + */ +public final class GetAudienceSegmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetAudienceSegmentRequest) + GetAudienceSegmentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetAudienceSegmentRequest.newBuilder() to construct. + private GetAudienceSegmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAudienceSegmentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAudienceSegmentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_GetAudienceSegmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_GetAudienceSegmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetAudienceSegmentRequest.class, + com.google.ads.admanager.v1.GetAudienceSegmentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the AudienceSegment.
    +   * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +   * 
    + * + * + * 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. The resource name of the AudienceSegment.
    +   * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetAudienceSegmentRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetAudienceSegmentRequest other = + (com.google.ads.admanager.v1.GetAudienceSegmentRequest) 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.ads.admanager.v1.GetAudienceSegmentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest 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.admanager.v1.GetAudienceSegmentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest 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.admanager.v1.GetAudienceSegmentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.GetAudienceSegmentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetAudienceSegment` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetAudienceSegmentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetAudienceSegmentRequest) + com.google.ads.admanager.v1.GetAudienceSegmentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_GetAudienceSegmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_GetAudienceSegmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetAudienceSegmentRequest.class, + com.google.ads.admanager.v1.GetAudienceSegmentRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetAudienceSegmentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_GetAudienceSegmentRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetAudienceSegmentRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetAudienceSegmentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetAudienceSegmentRequest build() { + com.google.ads.admanager.v1.GetAudienceSegmentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetAudienceSegmentRequest buildPartial() { + com.google.ads.admanager.v1.GetAudienceSegmentRequest result = + new com.google.ads.admanager.v1.GetAudienceSegmentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetAudienceSegmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetAudienceSegmentRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetAudienceSegmentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetAudienceSegmentRequest other) { + if (other == com.google.ads.admanager.v1.GetAudienceSegmentRequest.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. The resource name of the AudienceSegment.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * 
    + * + * + * 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. The resource name of the AudienceSegment.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * 
    + * + * + * 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. The resource name of the AudienceSegment.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * 
    + * + * + * 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. The resource name of the AudienceSegment.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * 
    + * + * + * 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. The resource name of the AudienceSegment.
    +     * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetAudienceSegmentRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetAudienceSegmentRequest) + private static final com.google.ads.admanager.v1.GetAudienceSegmentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetAudienceSegmentRequest(); + } + + public static com.google.ads.admanager.v1.GetAudienceSegmentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAudienceSegmentRequest 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.admanager.v1.GetAudienceSegmentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAudienceSegmentRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAudienceSegmentRequestOrBuilder.java new file mode 100644 index 000000000000..9b3eecc9a603 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAudienceSegmentRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetAudienceSegmentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetAudienceSegmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the AudienceSegment.
    +   * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the AudienceSegment.
    +   * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserLanguageRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserLanguageRequest.java new file mode 100644 index 000000000000..a7c9e4d366cd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserLanguageRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetBrowserLanguage` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetBrowserLanguageRequest} + */ +public final class GetBrowserLanguageRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetBrowserLanguageRequest) + GetBrowserLanguageRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetBrowserLanguageRequest.newBuilder() to construct. + private GetBrowserLanguageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBrowserLanguageRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBrowserLanguageRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserLanguageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserLanguageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetBrowserLanguageRequest.class, + com.google.ads.admanager.v1.GetBrowserLanguageRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the BrowserLanguage.
    +   * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +   * 
    + * + * + * 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. The resource name of the BrowserLanguage.
    +   * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetBrowserLanguageRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetBrowserLanguageRequest other = + (com.google.ads.admanager.v1.GetBrowserLanguageRequest) 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.ads.admanager.v1.GetBrowserLanguageRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest 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.admanager.v1.GetBrowserLanguageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest 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.admanager.v1.GetBrowserLanguageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.GetBrowserLanguageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetBrowserLanguage` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetBrowserLanguageRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetBrowserLanguageRequest) + com.google.ads.admanager.v1.GetBrowserLanguageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserLanguageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserLanguageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetBrowserLanguageRequest.class, + com.google.ads.admanager.v1.GetBrowserLanguageRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetBrowserLanguageRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserLanguageRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetBrowserLanguageRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetBrowserLanguageRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetBrowserLanguageRequest build() { + com.google.ads.admanager.v1.GetBrowserLanguageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetBrowserLanguageRequest buildPartial() { + com.google.ads.admanager.v1.GetBrowserLanguageRequest result = + new com.google.ads.admanager.v1.GetBrowserLanguageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetBrowserLanguageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetBrowserLanguageRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetBrowserLanguageRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetBrowserLanguageRequest other) { + if (other == com.google.ads.admanager.v1.GetBrowserLanguageRequest.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. The resource name of the BrowserLanguage.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * + * 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. The resource name of the BrowserLanguage.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * + * 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. The resource name of the BrowserLanguage.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * + * 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. The resource name of the BrowserLanguage.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * + * 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. The resource name of the BrowserLanguage.
    +     * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetBrowserLanguageRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetBrowserLanguageRequest) + private static final com.google.ads.admanager.v1.GetBrowserLanguageRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetBrowserLanguageRequest(); + } + + public static com.google.ads.admanager.v1.GetBrowserLanguageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBrowserLanguageRequest 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.admanager.v1.GetBrowserLanguageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserLanguageRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserLanguageRequestOrBuilder.java new file mode 100644 index 000000000000..022b775f0a39 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserLanguageRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetBrowserLanguageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetBrowserLanguageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the BrowserLanguage.
    +   * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the BrowserLanguage.
    +   * Format: `networks/{network_code}/browserLanguages/{browser_language_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserRequest.java new file mode 100644 index 000000000000..2a589242b852 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetBrowser` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetBrowserRequest} + */ +public final class GetBrowserRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetBrowserRequest) + GetBrowserRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetBrowserRequest.newBuilder() to construct. + private GetBrowserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBrowserRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBrowserRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetBrowserRequest.class, + com.google.ads.admanager.v1.GetBrowserRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the Browser.
    +   * Format: `networks/{network_code}/browsers/{browser_id}`
    +   * 
    + * + * + * 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. The resource name of the Browser.
    +   * Format: `networks/{network_code}/browsers/{browser_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetBrowserRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetBrowserRequest other = + (com.google.ads.admanager.v1.GetBrowserRequest) 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.ads.admanager.v1.GetBrowserRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest 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.admanager.v1.GetBrowserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest 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.admanager.v1.GetBrowserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetBrowserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetBrowser` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetBrowserRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetBrowserRequest) + com.google.ads.admanager.v1.GetBrowserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetBrowserRequest.class, + com.google.ads.admanager.v1.GetBrowserRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetBrowserRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_GetBrowserRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetBrowserRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetBrowserRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetBrowserRequest build() { + com.google.ads.admanager.v1.GetBrowserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetBrowserRequest buildPartial() { + com.google.ads.admanager.v1.GetBrowserRequest result = + new com.google.ads.admanager.v1.GetBrowserRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetBrowserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetBrowserRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetBrowserRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetBrowserRequest other) { + if (other == com.google.ads.admanager.v1.GetBrowserRequest.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. The resource name of the Browser.
    +     * Format: `networks/{network_code}/browsers/{browser_id}`
    +     * 
    + * + * + * 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. The resource name of the Browser.
    +     * Format: `networks/{network_code}/browsers/{browser_id}`
    +     * 
    + * + * + * 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. The resource name of the Browser.
    +     * Format: `networks/{network_code}/browsers/{browser_id}`
    +     * 
    + * + * + * 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. The resource name of the Browser.
    +     * Format: `networks/{network_code}/browsers/{browser_id}`
    +     * 
    + * + * + * 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. The resource name of the Browser.
    +     * Format: `networks/{network_code}/browsers/{browser_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetBrowserRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetBrowserRequest) + private static final com.google.ads.admanager.v1.GetBrowserRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetBrowserRequest(); + } + + public static com.google.ads.admanager.v1.GetBrowserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBrowserRequest 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.admanager.v1.GetBrowserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserRequestOrBuilder.java new file mode 100644 index 000000000000..9b6160a52552 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBrowserRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetBrowserRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetBrowserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the Browser.
    +   * Format: `networks/{network_code}/browsers/{browser_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the Browser.
    +   * Format: `networks/{network_code}/browsers/{browser_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataKeyRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataKeyRequest.java new file mode 100644 index 000000000000..3fb089ec0bc5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataKeyRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetCmsMetadataKey` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetCmsMetadataKeyRequest} + */ +public final class GetCmsMetadataKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetCmsMetadataKeyRequest) + GetCmsMetadataKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetCmsMetadataKeyRequest.newBuilder() to construct. + private GetCmsMetadataKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCmsMetadataKeyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCmsMetadataKeyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetCmsMetadataKeyRequest.class, + com.google.ads.admanager.v1.GetCmsMetadataKeyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the CmsMetadataKey.
    +   * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +   * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +   * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetCmsMetadataKeyRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetCmsMetadataKeyRequest other = + (com.google.ads.admanager.v1.GetCmsMetadataKeyRequest) 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.ads.admanager.v1.GetCmsMetadataKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest 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.admanager.v1.GetCmsMetadataKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest 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.admanager.v1.GetCmsMetadataKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetCmsMetadataKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetCmsMetadataKey` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetCmsMetadataKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetCmsMetadataKeyRequest) + com.google.ads.admanager.v1.GetCmsMetadataKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetCmsMetadataKeyRequest.class, + com.google.ads.admanager.v1.GetCmsMetadataKeyRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetCmsMetadataKeyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetCmsMetadataKeyRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetCmsMetadataKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetCmsMetadataKeyRequest build() { + com.google.ads.admanager.v1.GetCmsMetadataKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetCmsMetadataKeyRequest buildPartial() { + com.google.ads.admanager.v1.GetCmsMetadataKeyRequest result = + new com.google.ads.admanager.v1.GetCmsMetadataKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetCmsMetadataKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetCmsMetadataKeyRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetCmsMetadataKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetCmsMetadataKeyRequest other) { + if (other == com.google.ads.admanager.v1.GetCmsMetadataKeyRequest.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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetCmsMetadataKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetCmsMetadataKeyRequest) + private static final com.google.ads.admanager.v1.GetCmsMetadataKeyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetCmsMetadataKeyRequest(); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCmsMetadataKeyRequest 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.admanager.v1.GetCmsMetadataKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataKeyRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataKeyRequestOrBuilder.java new file mode 100644 index 000000000000..e907d2d87252 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataKeyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetCmsMetadataKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetCmsMetadataKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the CmsMetadataKey.
    +   * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the CmsMetadataKey.
    +   * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequest.java new file mode 100644 index 000000000000..efcac56f027b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetCmsMetadataValue` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetCmsMetadataValueRequest} + */ +public final class GetCmsMetadataValueRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetCmsMetadataValueRequest) + GetCmsMetadataValueRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetCmsMetadataValueRequest.newBuilder() to construct. + private GetCmsMetadataValueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCmsMetadataValueRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCmsMetadataValueRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataValueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataValueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetCmsMetadataValueRequest.class, + com.google.ads.admanager.v1.GetCmsMetadataValueRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the CmsMetadataKey.
    +   * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +   * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +   * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetCmsMetadataValueRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetCmsMetadataValueRequest other = + (com.google.ads.admanager.v1.GetCmsMetadataValueRequest) 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.ads.admanager.v1.GetCmsMetadataValueRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest 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.admanager.v1.GetCmsMetadataValueRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest 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.admanager.v1.GetCmsMetadataValueRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.GetCmsMetadataValueRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetCmsMetadataValue` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetCmsMetadataValueRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetCmsMetadataValueRequest) + com.google.ads.admanager.v1.GetCmsMetadataValueRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataValueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataValueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetCmsMetadataValueRequest.class, + com.google.ads.admanager.v1.GetCmsMetadataValueRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetCmsMetadataValueRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_GetCmsMetadataValueRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetCmsMetadataValueRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetCmsMetadataValueRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetCmsMetadataValueRequest build() { + com.google.ads.admanager.v1.GetCmsMetadataValueRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetCmsMetadataValueRequest buildPartial() { + com.google.ads.admanager.v1.GetCmsMetadataValueRequest result = + new com.google.ads.admanager.v1.GetCmsMetadataValueRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetCmsMetadataValueRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetCmsMetadataValueRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetCmsMetadataValueRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetCmsMetadataValueRequest other) { + if (other == com.google.ads.admanager.v1.GetCmsMetadataValueRequest.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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * + * 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. The resource name of the CmsMetadataKey.
    +     * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetCmsMetadataValueRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetCmsMetadataValueRequest) + private static final com.google.ads.admanager.v1.GetCmsMetadataValueRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetCmsMetadataValueRequest(); + } + + public static com.google.ads.admanager.v1.GetCmsMetadataValueRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCmsMetadataValueRequest 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.admanager.v1.GetCmsMetadataValueRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequestOrBuilder.java new file mode 100644 index 000000000000..755409398549 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetCmsMetadataValueRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetCmsMetadataValueRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the CmsMetadataKey.
    +   * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the CmsMetadataKey.
    +   * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContactRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContactRequest.java new file mode 100644 index 000000000000..90570bac10e9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContactRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetContact` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetContactRequest} + */ +public final class GetContactRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetContactRequest) + GetContactRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetContactRequest.newBuilder() to construct. + private GetContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetContactRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetContactRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_GetContactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_GetContactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetContactRequest.class, + com.google.ads.admanager.v1.GetContactRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the Contact.
    +   * Format: `networks/{network_code}/contacts/{contact_id}`
    +   * 
    + * + * + * 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. The resource name of the Contact.
    +   * Format: `networks/{network_code}/contacts/{contact_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetContactRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetContactRequest other = + (com.google.ads.admanager.v1.GetContactRequest) 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.ads.admanager.v1.GetContactRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContactRequest 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.admanager.v1.GetContactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContactRequest 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.admanager.v1.GetContactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContactRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContactRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContactRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContactRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContactRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetContactRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetContact` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetContactRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetContactRequest) + com.google.ads.admanager.v1.GetContactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_GetContactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_GetContactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetContactRequest.class, + com.google.ads.admanager.v1.GetContactRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetContactRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_GetContactRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContactRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetContactRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContactRequest build() { + com.google.ads.admanager.v1.GetContactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContactRequest buildPartial() { + com.google.ads.admanager.v1.GetContactRequest result = + new com.google.ads.admanager.v1.GetContactRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetContactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetContactRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetContactRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetContactRequest other) { + if (other == com.google.ads.admanager.v1.GetContactRequest.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. The resource name of the Contact.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * + * 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. The resource name of the Contact.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * + * 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. The resource name of the Contact.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * + * 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. The resource name of the Contact.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * + * 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. The resource name of the Contact.
    +     * Format: `networks/{network_code}/contacts/{contact_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetContactRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetContactRequest) + private static final com.google.ads.admanager.v1.GetContactRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetContactRequest(); + } + + public static com.google.ads.admanager.v1.GetContactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetContactRequest 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.admanager.v1.GetContactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContactRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContactRequestOrBuilder.java new file mode 100644 index 000000000000..be3e79d002c2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContactRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetContactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetContactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the Contact.
    +   * Format: `networks/{network_code}/contacts/{contact_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the Contact.
    +   * Format: `networks/{network_code}/contacts/{contact_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentBundleRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentBundleRequest.java new file mode 100644 index 000000000000..efe516536355 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentBundleRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetContentBundle` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetContentBundleRequest} + */ +public final class GetContentBundleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetContentBundleRequest) + GetContentBundleRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetContentBundleRequest.newBuilder() to construct. + private GetContentBundleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetContentBundleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetContentBundleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_GetContentBundleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_GetContentBundleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetContentBundleRequest.class, + com.google.ads.admanager.v1.GetContentBundleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the ContentBundle.
    +   * Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
    +   * 
    + * + * + * 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. The resource name of the ContentBundle.
    +   * Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetContentBundleRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetContentBundleRequest other = + (com.google.ads.admanager.v1.GetContentBundleRequest) 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.ads.admanager.v1.GetContentBundleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest 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.admanager.v1.GetContentBundleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest 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.admanager.v1.GetContentBundleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetContentBundleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetContentBundle` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetContentBundleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetContentBundleRequest) + com.google.ads.admanager.v1.GetContentBundleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_GetContentBundleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_GetContentBundleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetContentBundleRequest.class, + com.google.ads.admanager.v1.GetContentBundleRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetContentBundleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_GetContentBundleRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContentBundleRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetContentBundleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContentBundleRequest build() { + com.google.ads.admanager.v1.GetContentBundleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContentBundleRequest buildPartial() { + com.google.ads.admanager.v1.GetContentBundleRequest result = + new com.google.ads.admanager.v1.GetContentBundleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetContentBundleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetContentBundleRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetContentBundleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetContentBundleRequest other) { + if (other == com.google.ads.admanager.v1.GetContentBundleRequest.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. The resource name of the ContentBundle.
    +     * Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * + * 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. The resource name of the ContentBundle.
    +     * Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * + * 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. The resource name of the ContentBundle.
    +     * Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * + * 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. The resource name of the ContentBundle.
    +     * Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * + * 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. The resource name of the ContentBundle.
    +     * Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetContentBundleRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetContentBundleRequest) + private static final com.google.ads.admanager.v1.GetContentBundleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetContentBundleRequest(); + } + + public static com.google.ads.admanager.v1.GetContentBundleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetContentBundleRequest 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.admanager.v1.GetContentBundleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentBundleRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentBundleRequestOrBuilder.java new file mode 100644 index 000000000000..dfb7bce9b463 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentBundleRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetContentBundleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetContentBundleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the ContentBundle.
    +   * Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the ContentBundle.
    +   * Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentLabelRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentLabelRequest.java new file mode 100644 index 000000000000..779814d91a7f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentLabelRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetContentLabel` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetContentLabelRequest} + */ +public final class GetContentLabelRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetContentLabelRequest) + GetContentLabelRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetContentLabelRequest.newBuilder() to construct. + private GetContentLabelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetContentLabelRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetContentLabelRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_GetContentLabelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_GetContentLabelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetContentLabelRequest.class, + com.google.ads.admanager.v1.GetContentLabelRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the ContentLabel.
    +   * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +   * 
    + * + * + * 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. The resource name of the ContentLabel.
    +   * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetContentLabelRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetContentLabelRequest other = + (com.google.ads.admanager.v1.GetContentLabelRequest) 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.ads.admanager.v1.GetContentLabelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest 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.admanager.v1.GetContentLabelRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest 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.admanager.v1.GetContentLabelRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetContentLabelRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetContentLabel` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetContentLabelRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetContentLabelRequest) + com.google.ads.admanager.v1.GetContentLabelRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_GetContentLabelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_GetContentLabelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetContentLabelRequest.class, + com.google.ads.admanager.v1.GetContentLabelRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetContentLabelRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_GetContentLabelRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContentLabelRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetContentLabelRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContentLabelRequest build() { + com.google.ads.admanager.v1.GetContentLabelRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContentLabelRequest buildPartial() { + com.google.ads.admanager.v1.GetContentLabelRequest result = + new com.google.ads.admanager.v1.GetContentLabelRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetContentLabelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetContentLabelRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetContentLabelRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetContentLabelRequest other) { + if (other == com.google.ads.admanager.v1.GetContentLabelRequest.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. The resource name of the ContentLabel.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * + * 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. The resource name of the ContentLabel.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * + * 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. The resource name of the ContentLabel.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * + * 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. The resource name of the ContentLabel.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * + * 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. The resource name of the ContentLabel.
    +     * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetContentLabelRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetContentLabelRequest) + private static final com.google.ads.admanager.v1.GetContentLabelRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetContentLabelRequest(); + } + + public static com.google.ads.admanager.v1.GetContentLabelRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetContentLabelRequest 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.admanager.v1.GetContentLabelRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentLabelRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentLabelRequestOrBuilder.java new file mode 100644 index 000000000000..63065966788c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentLabelRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetContentLabelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetContentLabelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the ContentLabel.
    +   * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the ContentLabel.
    +   * Format: `networks/{network_code}/contentLabels/{content_label_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentRequest.java new file mode 100644 index 000000000000..362b896f48eb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetContent` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetContentRequest} + */ +public final class GetContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetContentRequest) + GetContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetContentRequest.newBuilder() to construct. + private GetContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetContentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_GetContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_GetContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetContentRequest.class, + com.google.ads.admanager.v1.GetContentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the Content.
    +   * Format: `networks/{network_code}/content/{content_id}`
    +   * 
    + * + * + * 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. The resource name of the Content.
    +   * Format: `networks/{network_code}/content/{content_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetContentRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetContentRequest other = + (com.google.ads.admanager.v1.GetContentRequest) 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.ads.admanager.v1.GetContentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContentRequest 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.admanager.v1.GetContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContentRequest 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.admanager.v1.GetContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetContentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetContentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetContentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetContent` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetContentRequest) + com.google.ads.admanager.v1.GetContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_GetContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_GetContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetContentRequest.class, + com.google.ads.admanager.v1.GetContentRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetContentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_GetContentRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContentRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContentRequest build() { + com.google.ads.admanager.v1.GetContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetContentRequest buildPartial() { + com.google.ads.admanager.v1.GetContentRequest result = + new com.google.ads.admanager.v1.GetContentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetContentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetContentRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetContentRequest other) { + if (other == com.google.ads.admanager.v1.GetContentRequest.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. The resource name of the Content.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * + * 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. The resource name of the Content.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * + * 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. The resource name of the Content.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * + * 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. The resource name of the Content.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * + * 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. The resource name of the Content.
    +     * Format: `networks/{network_code}/content/{content_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetContentRequest) + private static final com.google.ads.admanager.v1.GetContentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetContentRequest(); + } + + public static com.google.ads.admanager.v1.GetContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetContentRequest 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.admanager.v1.GetContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentRequestOrBuilder.java new file mode 100644 index 000000000000..5f6aa16c4dfe --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetContentRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the Content.
    +   * Format: `networks/{network_code}/content/{content_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the Content.
    +   * Format: `networks/{network_code}/content/{content_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCreativeTemplateRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCreativeTemplateRequest.java new file mode 100644 index 000000000000..18abe1897733 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCreativeTemplateRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetCreativeTemplate` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetCreativeTemplateRequest} + */ +public final class GetCreativeTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetCreativeTemplateRequest) + GetCreativeTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetCreativeTemplateRequest.newBuilder() to construct. + private GetCreativeTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCreativeTemplateRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCreativeTemplateRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_GetCreativeTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_GetCreativeTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetCreativeTemplateRequest.class, + com.google.ads.admanager.v1.GetCreativeTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the CreativeTemplate.
    +   * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +   * 
    + * + * + * 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. The resource name of the CreativeTemplate.
    +   * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetCreativeTemplateRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetCreativeTemplateRequest other = + (com.google.ads.admanager.v1.GetCreativeTemplateRequest) 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.ads.admanager.v1.GetCreativeTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest 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.admanager.v1.GetCreativeTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest 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.admanager.v1.GetCreativeTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.GetCreativeTemplateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetCreativeTemplate` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetCreativeTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetCreativeTemplateRequest) + com.google.ads.admanager.v1.GetCreativeTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_GetCreativeTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_GetCreativeTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetCreativeTemplateRequest.class, + com.google.ads.admanager.v1.GetCreativeTemplateRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetCreativeTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_GetCreativeTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetCreativeTemplateRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetCreativeTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetCreativeTemplateRequest build() { + com.google.ads.admanager.v1.GetCreativeTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetCreativeTemplateRequest buildPartial() { + com.google.ads.admanager.v1.GetCreativeTemplateRequest result = + new com.google.ads.admanager.v1.GetCreativeTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetCreativeTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetCreativeTemplateRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetCreativeTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetCreativeTemplateRequest other) { + if (other == com.google.ads.admanager.v1.GetCreativeTemplateRequest.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. The resource name of the CreativeTemplate.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * + * 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. The resource name of the CreativeTemplate.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * + * 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. The resource name of the CreativeTemplate.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * + * 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. The resource name of the CreativeTemplate.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * + * 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. The resource name of the CreativeTemplate.
    +     * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetCreativeTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetCreativeTemplateRequest) + private static final com.google.ads.admanager.v1.GetCreativeTemplateRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetCreativeTemplateRequest(); + } + + public static com.google.ads.admanager.v1.GetCreativeTemplateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCreativeTemplateRequest 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.admanager.v1.GetCreativeTemplateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCreativeTemplateRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCreativeTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..d8188ab47997 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCreativeTemplateRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetCreativeTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetCreativeTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the CreativeTemplate.
    +   * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the CreativeTemplate.
    +   * Format: `networks/{network_code}/creativeTemplates/{creative_template_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCapabilityRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCapabilityRequest.java new file mode 100644 index 000000000000..0f36c7f74b42 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCapabilityRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetDeviceCapability` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetDeviceCapabilityRequest} + */ +public final class GetDeviceCapabilityRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetDeviceCapabilityRequest) + GetDeviceCapabilityRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetDeviceCapabilityRequest.newBuilder() to construct. + private GetDeviceCapabilityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDeviceCapabilityRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDeviceCapabilityRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCapabilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCapabilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetDeviceCapabilityRequest.class, + com.google.ads.admanager.v1.GetDeviceCapabilityRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the DeviceCapability.
    +   * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +   * 
    + * + * + * 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. The resource name of the DeviceCapability.
    +   * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetDeviceCapabilityRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetDeviceCapabilityRequest other = + (com.google.ads.admanager.v1.GetDeviceCapabilityRequest) 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.ads.admanager.v1.GetDeviceCapabilityRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest 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.admanager.v1.GetDeviceCapabilityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest 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.admanager.v1.GetDeviceCapabilityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.GetDeviceCapabilityRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetDeviceCapability` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetDeviceCapabilityRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetDeviceCapabilityRequest) + com.google.ads.admanager.v1.GetDeviceCapabilityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCapabilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCapabilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetDeviceCapabilityRequest.class, + com.google.ads.admanager.v1.GetDeviceCapabilityRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetDeviceCapabilityRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCapabilityRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetDeviceCapabilityRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetDeviceCapabilityRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetDeviceCapabilityRequest build() { + com.google.ads.admanager.v1.GetDeviceCapabilityRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetDeviceCapabilityRequest buildPartial() { + com.google.ads.admanager.v1.GetDeviceCapabilityRequest result = + new com.google.ads.admanager.v1.GetDeviceCapabilityRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetDeviceCapabilityRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetDeviceCapabilityRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetDeviceCapabilityRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetDeviceCapabilityRequest other) { + if (other == com.google.ads.admanager.v1.GetDeviceCapabilityRequest.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. The resource name of the DeviceCapability.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * + * 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. The resource name of the DeviceCapability.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * + * 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. The resource name of the DeviceCapability.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * + * 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. The resource name of the DeviceCapability.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * + * 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. The resource name of the DeviceCapability.
    +     * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetDeviceCapabilityRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetDeviceCapabilityRequest) + private static final com.google.ads.admanager.v1.GetDeviceCapabilityRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetDeviceCapabilityRequest(); + } + + public static com.google.ads.admanager.v1.GetDeviceCapabilityRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeviceCapabilityRequest 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.admanager.v1.GetDeviceCapabilityRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCapabilityRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCapabilityRequestOrBuilder.java new file mode 100644 index 000000000000..aebe31dbd324 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCapabilityRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetDeviceCapabilityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetDeviceCapabilityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the DeviceCapability.
    +   * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the DeviceCapability.
    +   * Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceManufacturerRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceManufacturerRequest.java new file mode 100644 index 000000000000..b9dfe544e1d5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceManufacturerRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetDeviceManufacturer` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetDeviceManufacturerRequest} + */ +public final class GetDeviceManufacturerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetDeviceManufacturerRequest) + GetDeviceManufacturerRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetDeviceManufacturerRequest.newBuilder() to construct. + private GetDeviceManufacturerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDeviceManufacturerRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDeviceManufacturerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceManufacturerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceManufacturerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetDeviceManufacturerRequest.class, + com.google.ads.admanager.v1.GetDeviceManufacturerRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the DeviceManufacturer.
    +   * Format:
    +   * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}`
    +   * 
    + * + * + * 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. The resource name of the DeviceManufacturer.
    +   * Format:
    +   * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetDeviceManufacturerRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetDeviceManufacturerRequest other = + (com.google.ads.admanager.v1.GetDeviceManufacturerRequest) 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.ads.admanager.v1.GetDeviceManufacturerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest 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.admanager.v1.GetDeviceManufacturerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest 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.admanager.v1.GetDeviceManufacturerRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.GetDeviceManufacturerRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetDeviceManufacturer` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetDeviceManufacturerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetDeviceManufacturerRequest) + com.google.ads.admanager.v1.GetDeviceManufacturerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceManufacturerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceManufacturerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetDeviceManufacturerRequest.class, + com.google.ads.admanager.v1.GetDeviceManufacturerRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetDeviceManufacturerRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceManufacturerRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetDeviceManufacturerRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetDeviceManufacturerRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetDeviceManufacturerRequest build() { + com.google.ads.admanager.v1.GetDeviceManufacturerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetDeviceManufacturerRequest buildPartial() { + com.google.ads.admanager.v1.GetDeviceManufacturerRequest result = + new com.google.ads.admanager.v1.GetDeviceManufacturerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetDeviceManufacturerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetDeviceManufacturerRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetDeviceManufacturerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetDeviceManufacturerRequest other) { + if (other == com.google.ads.admanager.v1.GetDeviceManufacturerRequest.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. The resource name of the DeviceManufacturer.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}`
    +     * 
    + * + * + * 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. The resource name of the DeviceManufacturer.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}`
    +     * 
    + * + * + * 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. The resource name of the DeviceManufacturer.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}`
    +     * 
    + * + * + * 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. The resource name of the DeviceManufacturer.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}`
    +     * 
    + * + * + * 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. The resource name of the DeviceManufacturer.
    +     * Format:
    +     * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetDeviceManufacturerRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetDeviceManufacturerRequest) + private static final com.google.ads.admanager.v1.GetDeviceManufacturerRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetDeviceManufacturerRequest(); + } + + public static com.google.ads.admanager.v1.GetDeviceManufacturerRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeviceManufacturerRequest 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.admanager.v1.GetDeviceManufacturerRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceManufacturerRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceManufacturerRequestOrBuilder.java new file mode 100644 index 000000000000..8ee00920eb53 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceManufacturerRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetDeviceManufacturerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetDeviceManufacturerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the DeviceManufacturer.
    +   * Format:
    +   * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the DeviceManufacturer.
    +   * Format:
    +   * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileCarrierRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileCarrierRequest.java new file mode 100644 index 000000000000..fa5446f7fef2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileCarrierRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetMobileCarrier` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetMobileCarrierRequest} + */ +public final class GetMobileCarrierRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetMobileCarrierRequest) + GetMobileCarrierRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetMobileCarrierRequest.newBuilder() to construct. + private GetMobileCarrierRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMobileCarrierRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMobileCarrierRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_GetMobileCarrierRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_GetMobileCarrierRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetMobileCarrierRequest.class, + com.google.ads.admanager.v1.GetMobileCarrierRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the MobileCarrier.
    +   * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}`
    +   * 
    + * + * + * 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. The resource name of the MobileCarrier.
    +   * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetMobileCarrierRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetMobileCarrierRequest other = + (com.google.ads.admanager.v1.GetMobileCarrierRequest) 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.ads.admanager.v1.GetMobileCarrierRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest 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.admanager.v1.GetMobileCarrierRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest 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.admanager.v1.GetMobileCarrierRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetMobileCarrierRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetMobileCarrier` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetMobileCarrierRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetMobileCarrierRequest) + com.google.ads.admanager.v1.GetMobileCarrierRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_GetMobileCarrierRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_GetMobileCarrierRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetMobileCarrierRequest.class, + com.google.ads.admanager.v1.GetMobileCarrierRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetMobileCarrierRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_GetMobileCarrierRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetMobileCarrierRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetMobileCarrierRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetMobileCarrierRequest build() { + com.google.ads.admanager.v1.GetMobileCarrierRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetMobileCarrierRequest buildPartial() { + com.google.ads.admanager.v1.GetMobileCarrierRequest result = + new com.google.ads.admanager.v1.GetMobileCarrierRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetMobileCarrierRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetMobileCarrierRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetMobileCarrierRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetMobileCarrierRequest other) { + if (other == com.google.ads.admanager.v1.GetMobileCarrierRequest.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. The resource name of the MobileCarrier.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileCarrier.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileCarrier.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileCarrier.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileCarrier.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetMobileCarrierRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetMobileCarrierRequest) + private static final com.google.ads.admanager.v1.GetMobileCarrierRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetMobileCarrierRequest(); + } + + public static com.google.ads.admanager.v1.GetMobileCarrierRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMobileCarrierRequest 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.admanager.v1.GetMobileCarrierRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileCarrierRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileCarrierRequestOrBuilder.java new file mode 100644 index 000000000000..3a12205a440f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileCarrierRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetMobileCarrierRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetMobileCarrierRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the MobileCarrier.
    +   * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the MobileCarrier.
    +   * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceRequest.java new file mode 100644 index 000000000000..d72e4db58f9d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetMobileDevice` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetMobileDeviceRequest} + */ +public final class GetMobileDeviceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetMobileDeviceRequest) + GetMobileDeviceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetMobileDeviceRequest.newBuilder() to construct. + private GetMobileDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMobileDeviceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMobileDeviceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetMobileDeviceRequest.class, + com.google.ads.admanager.v1.GetMobileDeviceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the MobileDevice.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}`
    +   * 
    + * + * + * 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. The resource name of the MobileDevice.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetMobileDeviceRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetMobileDeviceRequest other = + (com.google.ads.admanager.v1.GetMobileDeviceRequest) 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.ads.admanager.v1.GetMobileDeviceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest 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.admanager.v1.GetMobileDeviceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest 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.admanager.v1.GetMobileDeviceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetMobileDeviceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetMobileDevice` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetMobileDeviceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetMobileDeviceRequest) + com.google.ads.admanager.v1.GetMobileDeviceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetMobileDeviceRequest.class, + com.google.ads.admanager.v1.GetMobileDeviceRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetMobileDeviceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetMobileDeviceRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetMobileDeviceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetMobileDeviceRequest build() { + com.google.ads.admanager.v1.GetMobileDeviceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetMobileDeviceRequest buildPartial() { + com.google.ads.admanager.v1.GetMobileDeviceRequest result = + new com.google.ads.admanager.v1.GetMobileDeviceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetMobileDeviceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetMobileDeviceRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetMobileDeviceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetMobileDeviceRequest other) { + if (other == com.google.ads.admanager.v1.GetMobileDeviceRequest.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. The resource name of the MobileDevice.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileDevice.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileDevice.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileDevice.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileDevice.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetMobileDeviceRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetMobileDeviceRequest) + private static final com.google.ads.admanager.v1.GetMobileDeviceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetMobileDeviceRequest(); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMobileDeviceRequest 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.admanager.v1.GetMobileDeviceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceRequestOrBuilder.java new file mode 100644 index 000000000000..3436901d4454 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetMobileDeviceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetMobileDeviceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the MobileDevice.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the MobileDevice.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceSubmodelRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceSubmodelRequest.java new file mode 100644 index 000000000000..a6b1a20a3a92 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceSubmodelRequest.java @@ -0,0 +1,664 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetMobileDeviceSubmodel` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetMobileDeviceSubmodelRequest} + */ +public final class GetMobileDeviceSubmodelRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetMobileDeviceSubmodelRequest) + GetMobileDeviceSubmodelRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetMobileDeviceSubmodelRequest.newBuilder() to construct. + private GetMobileDeviceSubmodelRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMobileDeviceSubmodelRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMobileDeviceSubmodelRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceSubmodelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceSubmodelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest.class, + com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the MobileDeviceSubmodel.
    +   * Format:
    +   * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}`
    +   * 
    + * + * + * 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. The resource name of the MobileDeviceSubmodel.
    +   * Format:
    +   * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetMobileDeviceSubmodelRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest other = + (com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest) 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.ads.admanager.v1.GetMobileDeviceSubmodelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest 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.admanager.v1.GetMobileDeviceSubmodelRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest 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.admanager.v1.GetMobileDeviceSubmodelRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetMobileDeviceSubmodel` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetMobileDeviceSubmodelRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetMobileDeviceSubmodelRequest) + com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceSubmodelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceSubmodelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest.class, + com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_GetMobileDeviceSubmodelRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest build() { + com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest buildPartial() { + com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest result = + new com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest other) { + if (other == com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest.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. The resource name of the MobileDeviceSubmodel.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileDeviceSubmodel.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileDeviceSubmodel.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileDeviceSubmodel.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}`
    +     * 
    + * + * + * 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. The resource name of the MobileDeviceSubmodel.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetMobileDeviceSubmodelRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetMobileDeviceSubmodelRequest) + private static final com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest(); + } + + public static com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMobileDeviceSubmodelRequest 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.admanager.v1.GetMobileDeviceSubmodelRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceSubmodelRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceSubmodelRequestOrBuilder.java new file mode 100644 index 000000000000..16a286d311b1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetMobileDeviceSubmodelRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetMobileDeviceSubmodelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetMobileDeviceSubmodelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the MobileDeviceSubmodel.
    +   * Format:
    +   * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the MobileDeviceSubmodel.
    +   * Format:
    +   * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetSiteRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetSiteRequest.java new file mode 100644 index 000000000000..b4f56ae19f9b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetSiteRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetSite` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetSiteRequest} + */ +public final class GetSiteRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetSiteRequest) + GetSiteRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetSiteRequest.newBuilder() to construct. + private GetSiteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSiteRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSiteRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_GetSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_GetSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetSiteRequest.class, + com.google.ads.admanager.v1.GetSiteRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the Site.
    +   * Format: `networks/{network_code}/sites/{site_id}`
    +   * 
    + * + * + * 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. The resource name of the Site.
    +   * Format: `networks/{network_code}/sites/{site_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetSiteRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetSiteRequest other = + (com.google.ads.admanager.v1.GetSiteRequest) 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.ads.admanager.v1.GetSiteRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetSiteRequest 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.admanager.v1.GetSiteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetSiteRequest 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.admanager.v1.GetSiteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetSiteRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetSiteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetSiteRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetSiteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetSiteRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetSiteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetSite` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetSiteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetSiteRequest) + com.google.ads.admanager.v1.GetSiteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_GetSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_GetSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetSiteRequest.class, + com.google.ads.admanager.v1.GetSiteRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetSiteRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_GetSiteRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetSiteRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetSiteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetSiteRequest build() { + com.google.ads.admanager.v1.GetSiteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetSiteRequest buildPartial() { + com.google.ads.admanager.v1.GetSiteRequest result = + new com.google.ads.admanager.v1.GetSiteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetSiteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetSiteRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetSiteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetSiteRequest other) { + if (other == com.google.ads.admanager.v1.GetSiteRequest.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. The resource name of the Site.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * + * 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. The resource name of the Site.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * + * 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. The resource name of the Site.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * + * 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. The resource name of the Site.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * + * 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. The resource name of the Site.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetSiteRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetSiteRequest) + private static final com.google.ads.admanager.v1.GetSiteRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetSiteRequest(); + } + + public static com.google.ads.admanager.v1.GetSiteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSiteRequest 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.admanager.v1.GetSiteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetSiteRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetSiteRequestOrBuilder.java new file mode 100644 index 000000000000..2b70b73a3df3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetSiteRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetSiteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetSiteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the Site.
    +   * Format: `networks/{network_code}/sites/{site_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the Site.
    +   * Format: `networks/{network_code}/sites/{site_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetTeamRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetTeamRequest.java new file mode 100644 index 000000000000..c2d242690519 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetTeamRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `GetTeam` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetTeamRequest} + */ +public final class GetTeamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetTeamRequest) + GetTeamRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetTeamRequest.newBuilder() to construct. + private GetTeamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTeamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTeamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_GetTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_GetTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetTeamRequest.class, + com.google.ads.admanager.v1.GetTeamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the Team.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * 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. The resource name of the Team.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.GetTeamRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetTeamRequest other = + (com.google.ads.admanager.v1.GetTeamRequest) 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.ads.admanager.v1.GetTeamRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetTeamRequest 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.admanager.v1.GetTeamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetTeamRequest 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.admanager.v1.GetTeamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetTeamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetTeamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetTeamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetTeamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetTeamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.GetTeamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `GetTeam` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.GetTeamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetTeamRequest) + com.google.ads.admanager.v1.GetTeamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_GetTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_GetTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetTeamRequest.class, + com.google.ads.admanager.v1.GetTeamRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetTeamRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_GetTeamRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetTeamRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetTeamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetTeamRequest build() { + com.google.ads.admanager.v1.GetTeamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetTeamRequest buildPartial() { + com.google.ads.admanager.v1.GetTeamRequest result = + new com.google.ads.admanager.v1.GetTeamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetTeamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetTeamRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetTeamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetTeamRequest other) { + if (other == com.google.ads.admanager.v1.GetTeamRequest.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. The resource name of the Team.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * 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. The resource name of the Team.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * 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. The resource name of the Team.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * 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. The resource name of the Team.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * 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. The resource name of the Team.
    +     * Format: `networks/{network_code}/teams/{team_id}`
    +     * 
    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetTeamRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetTeamRequest) + private static final com.google.ads.admanager.v1.GetTeamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetTeamRequest(); + } + + public static com.google.ads.admanager.v1.GetTeamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTeamRequest 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.admanager.v1.GetTeamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetTeamRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetTeamRequestOrBuilder.java new file mode 100644 index 000000000000..af9684d64b2b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetTeamRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetTeamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetTeamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the Team.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The resource name of the Team.
    +   * Format: `networks/{network_code}/teams/{team_id}`
    +   * 
    + * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelFrequencyCap.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelFrequencyCap.java index 4483b5034aa5..a354297ef0d9 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelFrequencyCap.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelFrequencyCap.java @@ -79,7 +79,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * - * string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the label field is set. + */ + @java.lang.Override + public boolean hasLabel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The label to used for frequency capping.
    +   * Format: "networks/{network_code}/labels/{label_id}"
    +   * 
    + * + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The label. @@ -106,7 +125,7 @@ public java.lang.String getLabel() { * * * - * string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for label. @@ -134,13 +153,13 @@ public com.google.protobuf.ByteString getLabelBytes() { * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; * * @return Whether the frequencyCap field is set. */ @java.lang.Override public boolean hasFrequencyCap() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -150,7 +169,7 @@ public boolean hasFrequencyCap() { * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; * * @return The frequencyCap. */ @@ -168,7 +187,7 @@ public com.google.ads.admanager.v1.FrequencyCap getFrequencyCap() { * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ @java.lang.Override public com.google.ads.admanager.v1.FrequencyCapOrBuilder getFrequencyCapOrBuilder() { @@ -191,10 +210,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { + if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getFrequencyCap()); } getUnknownFields().writeTo(output); @@ -206,10 +225,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFrequencyCap()); } size += getUnknownFields().getSerializedSize(); @@ -228,7 +247,10 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.LabelFrequencyCap other = (com.google.ads.admanager.v1.LabelFrequencyCap) obj; - if (!getLabel().equals(other.getLabel())) return false; + if (hasLabel() != other.hasLabel()) return false; + if (hasLabel()) { + if (!getLabel().equals(other.getLabel())) return false; + } if (hasFrequencyCap() != other.hasFrequencyCap()) return false; if (hasFrequencyCap()) { if (!getFrequencyCap().equals(other.getFrequencyCap())) return false; @@ -244,8 +266,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); + if (hasLabel()) { + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + } if (hasFrequencyCap()) { hash = (37 * hash) + FREQUENCY_CAP_FIELD_NUMBER; hash = (53 * hash) + getFrequencyCap().hashCode(); @@ -441,14 +465,15 @@ public com.google.ads.admanager.v1.LabelFrequencyCap buildPartial() { private void buildPartial0(com.google.ads.admanager.v1.LabelFrequencyCap result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.label_ = label_; + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.frequencyCap_ = frequencyCapBuilder_ == null ? frequencyCap_ : frequencyCapBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -498,7 +523,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.admanager.v1.LabelFrequencyCap other) { if (other == com.google.ads.admanager.v1.LabelFrequencyCap.getDefaultInstance()) return this; - if (!other.getLabel().isEmpty()) { + if (other.hasLabel()) { label_ = other.label_; bitField0_ |= 0x00000001; onChanged(); @@ -574,7 +599,25 @@ public Builder mergeFrom( * * * - * string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the label field is set. + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The label to used for frequency capping.
    +     * Format: "networks/{network_code}/labels/{label_id}"
    +     * 
    + * + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The label. @@ -600,7 +643,7 @@ public java.lang.String getLabel() { * * * - * string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for label. @@ -626,7 +669,7 @@ public com.google.protobuf.ByteString getLabelBytes() { * * * - * string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The label to set. @@ -651,7 +694,7 @@ public Builder setLabel(java.lang.String value) { * * * - * string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -672,7 +715,7 @@ public Builder clearLabel() { * * * - * string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for label to set. @@ -703,7 +746,7 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; * * @return Whether the frequencyCap field is set. */ @@ -718,7 +761,7 @@ public boolean hasFrequencyCap() { * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; * * @return The frequencyCap. */ @@ -739,7 +782,7 @@ public com.google.ads.admanager.v1.FrequencyCap getFrequencyCap() { * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ public Builder setFrequencyCap(com.google.ads.admanager.v1.FrequencyCap value) { if (frequencyCapBuilder_ == null) { @@ -762,7 +805,7 @@ public Builder setFrequencyCap(com.google.ads.admanager.v1.FrequencyCap value) { * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ public Builder setFrequencyCap( com.google.ads.admanager.v1.FrequencyCap.Builder builderForValue) { @@ -783,7 +826,7 @@ public Builder setFrequencyCap( * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ public Builder mergeFrequencyCap(com.google.ads.admanager.v1.FrequencyCap value) { if (frequencyCapBuilder_ == null) { @@ -811,7 +854,7 @@ public Builder mergeFrequencyCap(com.google.ads.admanager.v1.FrequencyCap value) * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ public Builder clearFrequencyCap() { bitField0_ = (bitField0_ & ~0x00000002); @@ -831,7 +874,7 @@ public Builder clearFrequencyCap() { * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ public com.google.ads.admanager.v1.FrequencyCap.Builder getFrequencyCapBuilder() { bitField0_ |= 0x00000002; @@ -846,7 +889,7 @@ public com.google.ads.admanager.v1.FrequencyCap.Builder getFrequencyCapBuilder() * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ public com.google.ads.admanager.v1.FrequencyCapOrBuilder getFrequencyCapOrBuilder() { if (frequencyCapBuilder_ != null) { @@ -865,7 +908,7 @@ public com.google.ads.admanager.v1.FrequencyCapOrBuilder getFrequencyCapOrBuilde * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.admanager.v1.FrequencyCap, diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelFrequencyCapOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelFrequencyCapOrBuilder.java index 0483ebcd0556..ff83b91d0819 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelFrequencyCapOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelFrequencyCapOrBuilder.java @@ -33,7 +33,23 @@ public interface LabelFrequencyCapOrBuilder * * * - * string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the label field is set. + */ + boolean hasLabel(); + + /** + * + * + *
    +   * Required. The label to used for frequency capping.
    +   * Format: "networks/{network_code}/labels/{label_id}"
    +   * 
    + * + * + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The label. @@ -49,7 +65,7 @@ public interface LabelFrequencyCapOrBuilder * * * - * string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for label. @@ -63,7 +79,7 @@ public interface LabelFrequencyCapOrBuilder * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; * * @return Whether the frequencyCap field is set. */ @@ -76,7 +92,7 @@ public interface LabelFrequencyCapOrBuilder * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; * * @return The frequencyCap. */ @@ -89,7 +105,7 @@ public interface LabelFrequencyCapOrBuilder * The frequency cap. * * - * .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; + * optional .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; */ com.google.ads.admanager.v1.FrequencyCapOrBuilder getFrequencyCapOrBuilder(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponse.java index f40aa5a1003e..95be8145bca5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponse.java @@ -210,7 +210,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1162,7 +1162,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1188,7 +1188,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1218,7 +1218,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponseOrBuilder.java index bed101104e1b..5e1039f78bf5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponseOrBuilder.java @@ -117,7 +117,7 @@ public interface ListAdBreaksResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesRequest.java index 018665b6118d..94a98c9cb277 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of AdUnitSizes to return. The service may
        * return fewer than this value. If unspecified, at most 50 ad unit sizes will
    -   * be returned. The maximum value is 1000; values above 1000 will be coerced
    -   * to 1000.
    +   * be returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -935,8 +935,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of AdUnitSizes to return. The service may
          * return fewer than this value. If unspecified, at most 50 ad unit sizes will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -954,8 +954,8 @@ public int getPageSize() { *
          * Optional. The maximum number of AdUnitSizes to return. The service may
          * return fewer than this value. If unspecified, at most 50 ad unit sizes will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -977,8 +977,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of AdUnitSizes to return. The service may
          * return fewer than this value. If unspecified, at most 50 ad unit sizes will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesRequestOrBuilder.java index 647a0bfcae80..3136df899904 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListAdUnitSizesRequestOrBuilder *
        * Optional. The maximum number of AdUnitSizes to return. The service may
        * return fewer than this value. If unspecified, at most 50 ad unit sizes will
    -   * be returned. The maximum value is 1000; values above 1000 will be coerced
    -   * to 1000.
    +   * be returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesResponse.java index 5f8a2ea17f8c..06f5c89ea93f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesResponse.java @@ -207,7 +207,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1155,7 +1155,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1181,7 +1181,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1211,7 +1211,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesResponseOrBuilder.java index 42946bf723e7..a4b316e20e17 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitSizesResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListAdUnitSizesResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsRequest.java index ee1bad418397..1512292694eb 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of AdUnits to return. The service may return
        * fewer than this value. If unspecified, at most 50 ad units will be
    -   * returned. The maximum value is 1000; values above 1000 will be coerced to
    -   * 1000.
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -934,8 +934,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of AdUnits to return. The service may return
          * fewer than this value. If unspecified, at most 50 ad units will be
    -     * returned. The maximum value is 1000; values above 1000 will be coerced to
    -     * 1000.
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -953,8 +953,8 @@ public int getPageSize() { *
          * Optional. The maximum number of AdUnits to return. The service may return
          * fewer than this value. If unspecified, at most 50 ad units will be
    -     * returned. The maximum value is 1000; values above 1000 will be coerced to
    -     * 1000.
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -976,8 +976,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of AdUnits to return. The service may return
          * fewer than this value. If unspecified, at most 50 ad units will be
    -     * returned. The maximum value is 1000; values above 1000 will be coerced to
    -     * 1000.
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsRequestOrBuilder.java index e92c1601c153..bd9e434514e4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListAdUnitsRequestOrBuilder *
        * Optional. The maximum number of AdUnits to return. The service may return
        * fewer than this value. If unspecified, at most 50 ad units will be
    -   * returned. The maximum value is 1000; values above 1000 will be coerced to
    -   * 1000.
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsResponse.java index e23919241553..3dc4ec506808 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsResponse.java @@ -207,7 +207,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1153,7 +1153,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1179,7 +1179,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1209,7 +1209,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsResponseOrBuilder.java index b116322e6d50..2ed59a87b7d6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdUnitsResponseOrBuilder.java @@ -115,7 +115,7 @@ public interface ListAdUnitsResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsRequest.java new file mode 100644 index 000000000000..c6492f8947b4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsRequest.java @@ -0,0 +1,1484 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListApplications` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListApplicationsRequest} + */ +public final class ListApplicationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListApplicationsRequest) + ListApplicationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListApplicationsRequest.newBuilder() to construct. + private ListApplicationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListApplicationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListApplicationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListApplicationsRequest.class, + com.google.ads.admanager.v1.ListApplicationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Applications.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of Applications.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `Applications` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `Applications`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListApplications` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListApplications` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListApplications` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListApplications` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListApplicationsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListApplicationsRequest other = + (com.google.ads.admanager.v1.ListApplicationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest 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.admanager.v1.ListApplicationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest 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.admanager.v1.ListApplicationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListApplicationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListApplications` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListApplicationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListApplicationsRequest) + com.google.ads.admanager.v1.ListApplicationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListApplicationsRequest.class, + com.google.ads.admanager.v1.ListApplicationsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListApplicationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListApplicationsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListApplicationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListApplicationsRequest build() { + com.google.ads.admanager.v1.ListApplicationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListApplicationsRequest buildPartial() { + com.google.ads.admanager.v1.ListApplicationsRequest result = + new com.google.ads.admanager.v1.ListApplicationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListApplicationsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListApplicationsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListApplicationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListApplicationsRequest other) { + if (other == com.google.ads.admanager.v1.ListApplicationsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of Applications.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Applications.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Applications.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Applications.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Applications.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `Applications` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `Applications`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `Applications` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `Applications`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `Applications` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `Applications`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListApplications` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListApplications` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListApplications` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListApplications` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListApplications` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListApplications` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListApplications` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListApplications` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListApplications` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListApplications` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListApplicationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListApplicationsRequest) + private static final com.google.ads.admanager.v1.ListApplicationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListApplicationsRequest(); + } + + public static com.google.ads.admanager.v1.ListApplicationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationsRequest 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.admanager.v1.ListApplicationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsRequestOrBuilder.java new file mode 100644 index 000000000000..1bf37bfe2dac --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListApplicationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListApplicationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Applications.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Applications.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `Applications` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `Applications`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListApplications` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListApplications` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListApplications` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListApplications` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsResponse.java new file mode 100644 index 000000000000..8d2c7bd4479a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsResponse.java @@ -0,0 +1,1297 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListApplicationsRequest` containing matching
    + * `Application` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListApplicationsResponse} + */ +public final class ListApplicationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListApplicationsResponse) + ListApplicationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListApplicationsResponse.newBuilder() to construct. + private ListApplicationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListApplicationsResponse() { + applications_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListApplicationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListApplicationsResponse.class, + com.google.ads.admanager.v1.ListApplicationsResponse.Builder.class); + } + + public static final int APPLICATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List applications_; + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + @java.lang.Override + public java.util.List getApplicationsList() { + return applications_; + } + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + @java.lang.Override + public java.util.List + getApplicationsOrBuilderList() { + return applications_; + } + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + @java.lang.Override + public int getApplicationsCount() { + return applications_.size(); + } + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Application getApplications(int index) { + return applications_.get(index); + } + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ApplicationOrBuilder getApplicationsOrBuilder(int index) { + return applications_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `Application` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < applications_.size(); i++) { + output.writeMessage(1, applications_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < applications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, applications_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListApplicationsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListApplicationsResponse other = + (com.google.ads.admanager.v1.ListApplicationsResponse) obj; + + if (!getApplicationsList().equals(other.getApplicationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getApplicationsCount() > 0) { + hash = (37 * hash) + APPLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse 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.admanager.v1.ListApplicationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse 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.admanager.v1.ListApplicationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListApplicationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListApplicationsRequest` containing matching
    +   * `Application` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListApplicationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListApplicationsResponse) + com.google.ads.admanager.v1.ListApplicationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListApplicationsResponse.class, + com.google.ads.admanager.v1.ListApplicationsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListApplicationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (applicationsBuilder_ == null) { + applications_ = java.util.Collections.emptyList(); + } else { + applications_ = null; + applicationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ApplicationServiceProto + .internal_static_google_ads_admanager_v1_ListApplicationsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListApplicationsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListApplicationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListApplicationsResponse build() { + com.google.ads.admanager.v1.ListApplicationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListApplicationsResponse buildPartial() { + com.google.ads.admanager.v1.ListApplicationsResponse result = + new com.google.ads.admanager.v1.ListApplicationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListApplicationsResponse result) { + if (applicationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + applications_ = java.util.Collections.unmodifiableList(applications_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.applications_ = applications_; + } else { + result.applications_ = applicationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListApplicationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListApplicationsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListApplicationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListApplicationsResponse other) { + if (other == com.google.ads.admanager.v1.ListApplicationsResponse.getDefaultInstance()) + return this; + if (applicationsBuilder_ == null) { + if (!other.applications_.isEmpty()) { + if (applications_.isEmpty()) { + applications_ = other.applications_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureApplicationsIsMutable(); + applications_.addAll(other.applications_); + } + onChanged(); + } + } else { + if (!other.applications_.isEmpty()) { + if (applicationsBuilder_.isEmpty()) { + applicationsBuilder_.dispose(); + applicationsBuilder_ = null; + applications_ = other.applications_; + bitField0_ = (bitField0_ & ~0x00000001); + applicationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationsFieldBuilder() + : null; + } else { + applicationsBuilder_.addAllMessages(other.applications_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.Application m = + input.readMessage( + com.google.ads.admanager.v1.Application.parser(), extensionRegistry); + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.add(m); + } else { + applicationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 applications_ = + java.util.Collections.emptyList(); + + private void ensureApplicationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + applications_ = + new java.util.ArrayList(applications_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Application, + com.google.ads.admanager.v1.Application.Builder, + com.google.ads.admanager.v1.ApplicationOrBuilder> + applicationsBuilder_; + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public java.util.List getApplicationsList() { + if (applicationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(applications_); + } else { + return applicationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public int getApplicationsCount() { + if (applicationsBuilder_ == null) { + return applications_.size(); + } else { + return applicationsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public com.google.ads.admanager.v1.Application getApplications(int index) { + if (applicationsBuilder_ == null) { + return applications_.get(index); + } else { + return applicationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public Builder setApplications(int index, com.google.ads.admanager.v1.Application value) { + if (applicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationsIsMutable(); + applications_.set(index, value); + onChanged(); + } else { + applicationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public Builder setApplications( + int index, com.google.ads.admanager.v1.Application.Builder builderForValue) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public Builder addApplications(com.google.ads.admanager.v1.Application value) { + if (applicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationsIsMutable(); + applications_.add(value); + onChanged(); + } else { + applicationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public Builder addApplications(int index, com.google.ads.admanager.v1.Application value) { + if (applicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationsIsMutable(); + applications_.add(index, value); + onChanged(); + } else { + applicationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public Builder addApplications( + com.google.ads.admanager.v1.Application.Builder builderForValue) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.add(builderForValue.build()); + onChanged(); + } else { + applicationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public Builder addApplications( + int index, com.google.ads.admanager.v1.Application.Builder builderForValue) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public Builder addAllApplications( + java.lang.Iterable values) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applications_); + onChanged(); + } else { + applicationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public Builder clearApplications() { + if (applicationsBuilder_ == null) { + applications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + applicationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public Builder removeApplications(int index) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.remove(index); + onChanged(); + } else { + applicationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public com.google.ads.admanager.v1.Application.Builder getApplicationsBuilder(int index) { + return getApplicationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public com.google.ads.admanager.v1.ApplicationOrBuilder getApplicationsOrBuilder(int index) { + if (applicationsBuilder_ == null) { + return applications_.get(index); + } else { + return applicationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public java.util.List + getApplicationsOrBuilderList() { + if (applicationsBuilder_ != null) { + return applicationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applications_); + } + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public com.google.ads.admanager.v1.Application.Builder addApplicationsBuilder() { + return getApplicationsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Application.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public com.google.ads.admanager.v1.Application.Builder addApplicationsBuilder(int index) { + return getApplicationsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Application.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Application` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + public java.util.List + getApplicationsBuilderList() { + return getApplicationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Application, + com.google.ads.admanager.v1.Application.Builder, + com.google.ads.admanager.v1.ApplicationOrBuilder> + getApplicationsFieldBuilder() { + if (applicationsBuilder_ == null) { + applicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Application, + com.google.ads.admanager.v1.Application.Builder, + com.google.ads.admanager.v1.ApplicationOrBuilder>( + applications_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + applications_ = null; + } + return applicationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `Application` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `Application` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `Application` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListApplicationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListApplicationsResponse) + private static final com.google.ads.admanager.v1.ListApplicationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListApplicationsResponse(); + } + + public static com.google.ads.admanager.v1.ListApplicationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationsResponse 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.admanager.v1.ListApplicationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsResponseOrBuilder.java new file mode 100644 index 000000000000..e6bd74a19dfc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListApplicationsResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/application_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListApplicationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListApplicationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + java.util.List getApplicationsList(); + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + com.google.ads.admanager.v1.Application getApplications(int index); + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + int getApplicationsCount(); + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + java.util.List + getApplicationsOrBuilderList(); + + /** + * + * + *
    +   * The `Application` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Application applications = 1; + */ + com.google.ads.admanager.v1.ApplicationOrBuilder getApplicationsOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `Application` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsRequest.java new file mode 100644 index 000000000000..1d7b73719f4b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListAudienceSegments` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListAudienceSegmentsRequest} + */ +public final class ListAudienceSegmentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListAudienceSegmentsRequest) + ListAudienceSegmentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListAudienceSegmentsRequest.newBuilder() to construct. + private ListAudienceSegmentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAudienceSegmentsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAudienceSegmentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListAudienceSegmentsRequest.class, + com.google.ads.admanager.v1.ListAudienceSegmentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent publisher network associated with these audience
    +   * segments. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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 publisher network associated with these audience
    +   * segments. Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `AudienceSegments` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `AudienceSegments` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListAudienceSegments`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListAudienceSegments`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListAudienceSegments`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListAudienceSegments`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListAudienceSegmentsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListAudienceSegmentsRequest other = + (com.google.ads.admanager.v1.ListAudienceSegmentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest 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.admanager.v1.ListAudienceSegmentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest 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.admanager.v1.ListAudienceSegmentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListAudienceSegmentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListAudienceSegments` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListAudienceSegmentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListAudienceSegmentsRequest) + com.google.ads.admanager.v1.ListAudienceSegmentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListAudienceSegmentsRequest.class, + com.google.ads.admanager.v1.ListAudienceSegmentsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListAudienceSegmentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAudienceSegmentsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListAudienceSegmentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAudienceSegmentsRequest build() { + com.google.ads.admanager.v1.ListAudienceSegmentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAudienceSegmentsRequest buildPartial() { + com.google.ads.admanager.v1.ListAudienceSegmentsRequest result = + new com.google.ads.admanager.v1.ListAudienceSegmentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListAudienceSegmentsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListAudienceSegmentsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListAudienceSegmentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListAudienceSegmentsRequest other) { + if (other == com.google.ads.admanager.v1.ListAudienceSegmentsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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 publisher network associated with these audience
    +     * segments. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 publisher network associated with these audience
    +     * segments. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 publisher network associated with these audience
    +     * segments. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 publisher network associated with these audience
    +     * segments. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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 publisher network associated with these audience
    +     * segments. Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `AudienceSegments` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `AudienceSegments` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `AudienceSegments` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `AudienceSegments` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `AudienceSegments` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `AudienceSegments` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListAudienceSegments`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListAudienceSegments`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListAudienceSegments`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListAudienceSegments`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListAudienceSegments`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListAudienceSegments`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListAudienceSegments`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListAudienceSegments`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListAudienceSegments`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListAudienceSegments`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListAudienceSegmentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListAudienceSegmentsRequest) + private static final com.google.ads.admanager.v1.ListAudienceSegmentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListAudienceSegmentsRequest(); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAudienceSegmentsRequest 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.admanager.v1.ListAudienceSegmentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsRequestOrBuilder.java new file mode 100644 index 000000000000..799d6b5fe83f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListAudienceSegmentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListAudienceSegmentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent publisher network associated with these audience
    +   * segments. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent publisher network associated with these audience
    +   * segments. Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `AudienceSegments` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `AudienceSegments` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListAudienceSegments`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListAudienceSegments`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListAudienceSegments`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListAudienceSegments`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsResponse.java new file mode 100644 index 000000000000..abcefd0d2e0b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsResponse.java @@ -0,0 +1,1307 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListAudienceSegmentsRequest` containing matching
    + * `AudienceSegment` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListAudienceSegmentsResponse} + */ +public final class ListAudienceSegmentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListAudienceSegmentsResponse) + ListAudienceSegmentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListAudienceSegmentsResponse.newBuilder() to construct. + private ListAudienceSegmentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAudienceSegmentsResponse() { + audienceSegments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAudienceSegmentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListAudienceSegmentsResponse.class, + com.google.ads.admanager.v1.ListAudienceSegmentsResponse.Builder.class); + } + + public static final int AUDIENCE_SEGMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List audienceSegments_; + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + @java.lang.Override + public java.util.List getAudienceSegmentsList() { + return audienceSegments_; + } + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + @java.lang.Override + public java.util.List + getAudienceSegmentsOrBuilderList() { + return audienceSegments_; + } + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + @java.lang.Override + public int getAudienceSegmentsCount() { + return audienceSegments_.size(); + } + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegment getAudienceSegments(int index) { + return audienceSegments_.get(index); + } + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AudienceSegmentOrBuilder getAudienceSegmentsOrBuilder( + int index) { + return audienceSegments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `AudienceSegment` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < audienceSegments_.size(); i++) { + output.writeMessage(1, audienceSegments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < audienceSegments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, audienceSegments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListAudienceSegmentsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListAudienceSegmentsResponse other = + (com.google.ads.admanager.v1.ListAudienceSegmentsResponse) obj; + + if (!getAudienceSegmentsList().equals(other.getAudienceSegmentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getAudienceSegmentsCount() > 0) { + hash = (37 * hash) + AUDIENCE_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAudienceSegmentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse 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.admanager.v1.ListAudienceSegmentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse 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.admanager.v1.ListAudienceSegmentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListAudienceSegmentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListAudienceSegmentsRequest` containing matching
    +   * `AudienceSegment` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListAudienceSegmentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListAudienceSegmentsResponse) + com.google.ads.admanager.v1.ListAudienceSegmentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListAudienceSegmentsResponse.class, + com.google.ads.admanager.v1.ListAudienceSegmentsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListAudienceSegmentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (audienceSegmentsBuilder_ == null) { + audienceSegments_ = java.util.Collections.emptyList(); + } else { + audienceSegments_ = null; + audienceSegmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AudienceSegmentServiceProto + .internal_static_google_ads_admanager_v1_ListAudienceSegmentsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAudienceSegmentsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListAudienceSegmentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAudienceSegmentsResponse build() { + com.google.ads.admanager.v1.ListAudienceSegmentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAudienceSegmentsResponse buildPartial() { + com.google.ads.admanager.v1.ListAudienceSegmentsResponse result = + new com.google.ads.admanager.v1.ListAudienceSegmentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListAudienceSegmentsResponse result) { + if (audienceSegmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + audienceSegments_ = java.util.Collections.unmodifiableList(audienceSegments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.audienceSegments_ = audienceSegments_; + } else { + result.audienceSegments_ = audienceSegmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListAudienceSegmentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListAudienceSegmentsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListAudienceSegmentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListAudienceSegmentsResponse other) { + if (other == com.google.ads.admanager.v1.ListAudienceSegmentsResponse.getDefaultInstance()) + return this; + if (audienceSegmentsBuilder_ == null) { + if (!other.audienceSegments_.isEmpty()) { + if (audienceSegments_.isEmpty()) { + audienceSegments_ = other.audienceSegments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAudienceSegmentsIsMutable(); + audienceSegments_.addAll(other.audienceSegments_); + } + onChanged(); + } + } else { + if (!other.audienceSegments_.isEmpty()) { + if (audienceSegmentsBuilder_.isEmpty()) { + audienceSegmentsBuilder_.dispose(); + audienceSegmentsBuilder_ = null; + audienceSegments_ = other.audienceSegments_; + bitField0_ = (bitField0_ & ~0x00000001); + audienceSegmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAudienceSegmentsFieldBuilder() + : null; + } else { + audienceSegmentsBuilder_.addAllMessages(other.audienceSegments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.AudienceSegment m = + input.readMessage( + com.google.ads.admanager.v1.AudienceSegment.parser(), extensionRegistry); + if (audienceSegmentsBuilder_ == null) { + ensureAudienceSegmentsIsMutable(); + audienceSegments_.add(m); + } else { + audienceSegmentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 audienceSegments_ = + java.util.Collections.emptyList(); + + private void ensureAudienceSegmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + audienceSegments_ = + new java.util.ArrayList(audienceSegments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AudienceSegment, + com.google.ads.admanager.v1.AudienceSegment.Builder, + com.google.ads.admanager.v1.AudienceSegmentOrBuilder> + audienceSegmentsBuilder_; + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public java.util.List getAudienceSegmentsList() { + if (audienceSegmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(audienceSegments_); + } else { + return audienceSegmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public int getAudienceSegmentsCount() { + if (audienceSegmentsBuilder_ == null) { + return audienceSegments_.size(); + } else { + return audienceSegmentsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public com.google.ads.admanager.v1.AudienceSegment getAudienceSegments(int index) { + if (audienceSegmentsBuilder_ == null) { + return audienceSegments_.get(index); + } else { + return audienceSegmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public Builder setAudienceSegments( + int index, com.google.ads.admanager.v1.AudienceSegment value) { + if (audienceSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudienceSegmentsIsMutable(); + audienceSegments_.set(index, value); + onChanged(); + } else { + audienceSegmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public Builder setAudienceSegments( + int index, com.google.ads.admanager.v1.AudienceSegment.Builder builderForValue) { + if (audienceSegmentsBuilder_ == null) { + ensureAudienceSegmentsIsMutable(); + audienceSegments_.set(index, builderForValue.build()); + onChanged(); + } else { + audienceSegmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public Builder addAudienceSegments(com.google.ads.admanager.v1.AudienceSegment value) { + if (audienceSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudienceSegmentsIsMutable(); + audienceSegments_.add(value); + onChanged(); + } else { + audienceSegmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public Builder addAudienceSegments( + int index, com.google.ads.admanager.v1.AudienceSegment value) { + if (audienceSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudienceSegmentsIsMutable(); + audienceSegments_.add(index, value); + onChanged(); + } else { + audienceSegmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public Builder addAudienceSegments( + com.google.ads.admanager.v1.AudienceSegment.Builder builderForValue) { + if (audienceSegmentsBuilder_ == null) { + ensureAudienceSegmentsIsMutable(); + audienceSegments_.add(builderForValue.build()); + onChanged(); + } else { + audienceSegmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public Builder addAudienceSegments( + int index, com.google.ads.admanager.v1.AudienceSegment.Builder builderForValue) { + if (audienceSegmentsBuilder_ == null) { + ensureAudienceSegmentsIsMutable(); + audienceSegments_.add(index, builderForValue.build()); + onChanged(); + } else { + audienceSegmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public Builder addAllAudienceSegments( + java.lang.Iterable values) { + if (audienceSegmentsBuilder_ == null) { + ensureAudienceSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audienceSegments_); + onChanged(); + } else { + audienceSegmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public Builder clearAudienceSegments() { + if (audienceSegmentsBuilder_ == null) { + audienceSegments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + audienceSegmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public Builder removeAudienceSegments(int index) { + if (audienceSegmentsBuilder_ == null) { + ensureAudienceSegmentsIsMutable(); + audienceSegments_.remove(index); + onChanged(); + } else { + audienceSegmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public com.google.ads.admanager.v1.AudienceSegment.Builder getAudienceSegmentsBuilder( + int index) { + return getAudienceSegmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public com.google.ads.admanager.v1.AudienceSegmentOrBuilder getAudienceSegmentsOrBuilder( + int index) { + if (audienceSegmentsBuilder_ == null) { + return audienceSegments_.get(index); + } else { + return audienceSegmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public java.util.List + getAudienceSegmentsOrBuilderList() { + if (audienceSegmentsBuilder_ != null) { + return audienceSegmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(audienceSegments_); + } + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public com.google.ads.admanager.v1.AudienceSegment.Builder addAudienceSegmentsBuilder() { + return getAudienceSegmentsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.AudienceSegment.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public com.google.ads.admanager.v1.AudienceSegment.Builder addAudienceSegmentsBuilder( + int index) { + return getAudienceSegmentsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.AudienceSegment.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `AudienceSegment` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + public java.util.List + getAudienceSegmentsBuilderList() { + return getAudienceSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AudienceSegment, + com.google.ads.admanager.v1.AudienceSegment.Builder, + com.google.ads.admanager.v1.AudienceSegmentOrBuilder> + getAudienceSegmentsFieldBuilder() { + if (audienceSegmentsBuilder_ == null) { + audienceSegmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AudienceSegment, + com.google.ads.admanager.v1.AudienceSegment.Builder, + com.google.ads.admanager.v1.AudienceSegmentOrBuilder>( + audienceSegments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + audienceSegments_ = null; + } + return audienceSegmentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `AudienceSegment` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `AudienceSegment` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `AudienceSegment` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListAudienceSegmentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListAudienceSegmentsResponse) + private static final com.google.ads.admanager.v1.ListAudienceSegmentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListAudienceSegmentsResponse(); + } + + public static com.google.ads.admanager.v1.ListAudienceSegmentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAudienceSegmentsResponse 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.admanager.v1.ListAudienceSegmentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsResponseOrBuilder.java new file mode 100644 index 000000000000..e6b6ae664ac9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAudienceSegmentsResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/audience_segment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListAudienceSegmentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListAudienceSegmentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + java.util.List getAudienceSegmentsList(); + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + com.google.ads.admanager.v1.AudienceSegment getAudienceSegments(int index); + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + int getAudienceSegmentsCount(); + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + java.util.List + getAudienceSegmentsOrBuilderList(); + + /** + * + * + *
    +   * The `AudienceSegment` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AudienceSegment audience_segments = 1; + */ + com.google.ads.admanager.v1.AudienceSegmentOrBuilder getAudienceSegmentsOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `AudienceSegment` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequest.java index 0a57f22c8cac..c9d81a3ffbfa 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of `BandwidthGroups` to return. The service
        * may return fewer than this value. If unspecified, at most 50
    -   * `BandwidthGroups` will be returned. The maximum value is 1000; values above
    -   * 1000 will be coerced to 1000.
    +   * `BandwidthGroups` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -936,8 +936,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of `BandwidthGroups` to return. The service
          * may return fewer than this value. If unspecified, at most 50
    -     * `BandwidthGroups` will be returned. The maximum value is 1000; values above
    -     * 1000 will be coerced to 1000.
    +     * `BandwidthGroups` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -955,8 +955,8 @@ public int getPageSize() { *
          * Optional. The maximum number of `BandwidthGroups` to return. The service
          * may return fewer than this value. If unspecified, at most 50
    -     * `BandwidthGroups` will be returned. The maximum value is 1000; values above
    -     * 1000 will be coerced to 1000.
    +     * `BandwidthGroups` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -978,8 +978,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of `BandwidthGroups` to return. The service
          * may return fewer than this value. If unspecified, at most 50
    -     * `BandwidthGroups` will be returned. The maximum value is 1000; values above
    -     * 1000 will be coerced to 1000.
    +     * `BandwidthGroups` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequestOrBuilder.java index 6e00d516485b..b74071955abb 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListBandwidthGroupsRequestOrBuilder *
        * Optional. The maximum number of `BandwidthGroups` to return. The service
        * may return fewer than this value. If unspecified, at most 50
    -   * `BandwidthGroups` will be returned. The maximum value is 1000; values above
    -   * 1000 will be coerced to 1000.
    +   * `BandwidthGroups` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponse.java index 6d565488ef72..e2309069d9cf 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponse.java @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1164,7 +1164,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1190,7 +1190,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1220,7 +1220,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponseOrBuilder.java index 4a9fe1c5f919..536d8e82ee18 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListBandwidthGroupsResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesRequest.java new file mode 100644 index 000000000000..e8dfb48cad60 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListBrowserLanguages` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListBrowserLanguagesRequest} + */ +public final class ListBrowserLanguagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListBrowserLanguagesRequest) + ListBrowserLanguagesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListBrowserLanguagesRequest.newBuilder() to construct. + private ListBrowserLanguagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBrowserLanguagesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBrowserLanguagesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBrowserLanguagesRequest.class, + com.google.ads.admanager.v1.ListBrowserLanguagesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of BrowserLanguages.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of BrowserLanguages.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `BrowserLanguages` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `BrowserLanguages` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListBrowserLanguages`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListBrowserLanguages`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListBrowserLanguages`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListBrowserLanguages`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListBrowserLanguagesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListBrowserLanguagesRequest other = + (com.google.ads.admanager.v1.ListBrowserLanguagesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest 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.admanager.v1.ListBrowserLanguagesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest 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.admanager.v1.ListBrowserLanguagesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListBrowserLanguagesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListBrowserLanguages` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListBrowserLanguagesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListBrowserLanguagesRequest) + com.google.ads.admanager.v1.ListBrowserLanguagesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBrowserLanguagesRequest.class, + com.google.ads.admanager.v1.ListBrowserLanguagesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListBrowserLanguagesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowserLanguagesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListBrowserLanguagesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowserLanguagesRequest build() { + com.google.ads.admanager.v1.ListBrowserLanguagesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowserLanguagesRequest buildPartial() { + com.google.ads.admanager.v1.ListBrowserLanguagesRequest result = + new com.google.ads.admanager.v1.ListBrowserLanguagesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListBrowserLanguagesRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListBrowserLanguagesRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListBrowserLanguagesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListBrowserLanguagesRequest other) { + if (other == com.google.ads.admanager.v1.ListBrowserLanguagesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of BrowserLanguages.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of BrowserLanguages.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of BrowserLanguages.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of BrowserLanguages.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of BrowserLanguages.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `BrowserLanguages` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `BrowserLanguages` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `BrowserLanguages` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `BrowserLanguages` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `BrowserLanguages` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `BrowserLanguages` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowserLanguages`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowserLanguages`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowserLanguages`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowserLanguages`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowserLanguages`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowserLanguages`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowserLanguages`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowserLanguages`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowserLanguages`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowserLanguages`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListBrowserLanguagesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListBrowserLanguagesRequest) + private static final com.google.ads.admanager.v1.ListBrowserLanguagesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListBrowserLanguagesRequest(); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBrowserLanguagesRequest 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.admanager.v1.ListBrowserLanguagesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesRequestOrBuilder.java new file mode 100644 index 000000000000..55bed4e5f1bf --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListBrowserLanguagesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListBrowserLanguagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of BrowserLanguages.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of BrowserLanguages.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `BrowserLanguages` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `BrowserLanguages` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListBrowserLanguages`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListBrowserLanguages`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListBrowserLanguages`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListBrowserLanguages`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesResponse.java new file mode 100644 index 000000000000..a908553fbfb6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesResponse.java @@ -0,0 +1,1307 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListBrowserLanguagesRequest` containing matching
    + * `BrowserLanguage` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListBrowserLanguagesResponse} + */ +public final class ListBrowserLanguagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListBrowserLanguagesResponse) + ListBrowserLanguagesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListBrowserLanguagesResponse.newBuilder() to construct. + private ListBrowserLanguagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBrowserLanguagesResponse() { + browserLanguages_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBrowserLanguagesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBrowserLanguagesResponse.class, + com.google.ads.admanager.v1.ListBrowserLanguagesResponse.Builder.class); + } + + public static final int BROWSER_LANGUAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List browserLanguages_; + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + @java.lang.Override + public java.util.List getBrowserLanguagesList() { + return browserLanguages_; + } + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + @java.lang.Override + public java.util.List + getBrowserLanguagesOrBuilderList() { + return browserLanguages_; + } + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + @java.lang.Override + public int getBrowserLanguagesCount() { + return browserLanguages_.size(); + } + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguage getBrowserLanguages(int index) { + return browserLanguages_.get(index); + } + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguageOrBuilder getBrowserLanguagesOrBuilder( + int index) { + return browserLanguages_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `BrowserLanguage` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < browserLanguages_.size(); i++) { + output.writeMessage(1, browserLanguages_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < browserLanguages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, browserLanguages_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListBrowserLanguagesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListBrowserLanguagesResponse other = + (com.google.ads.admanager.v1.ListBrowserLanguagesResponse) obj; + + if (!getBrowserLanguagesList().equals(other.getBrowserLanguagesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getBrowserLanguagesCount() > 0) { + hash = (37 * hash) + BROWSER_LANGUAGES_FIELD_NUMBER; + hash = (53 * hash) + getBrowserLanguagesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse 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.admanager.v1.ListBrowserLanguagesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse 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.admanager.v1.ListBrowserLanguagesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListBrowserLanguagesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListBrowserLanguagesRequest` containing matching
    +   * `BrowserLanguage` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListBrowserLanguagesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListBrowserLanguagesResponse) + com.google.ads.admanager.v1.ListBrowserLanguagesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBrowserLanguagesResponse.class, + com.google.ads.admanager.v1.ListBrowserLanguagesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListBrowserLanguagesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (browserLanguagesBuilder_ == null) { + browserLanguages_ = java.util.Collections.emptyList(); + } else { + browserLanguages_ = null; + browserLanguagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BrowserLanguageServiceProto + .internal_static_google_ads_admanager_v1_ListBrowserLanguagesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowserLanguagesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListBrowserLanguagesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowserLanguagesResponse build() { + com.google.ads.admanager.v1.ListBrowserLanguagesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowserLanguagesResponse buildPartial() { + com.google.ads.admanager.v1.ListBrowserLanguagesResponse result = + new com.google.ads.admanager.v1.ListBrowserLanguagesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListBrowserLanguagesResponse result) { + if (browserLanguagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + browserLanguages_ = java.util.Collections.unmodifiableList(browserLanguages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.browserLanguages_ = browserLanguages_; + } else { + result.browserLanguages_ = browserLanguagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListBrowserLanguagesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListBrowserLanguagesResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListBrowserLanguagesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListBrowserLanguagesResponse other) { + if (other == com.google.ads.admanager.v1.ListBrowserLanguagesResponse.getDefaultInstance()) + return this; + if (browserLanguagesBuilder_ == null) { + if (!other.browserLanguages_.isEmpty()) { + if (browserLanguages_.isEmpty()) { + browserLanguages_ = other.browserLanguages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBrowserLanguagesIsMutable(); + browserLanguages_.addAll(other.browserLanguages_); + } + onChanged(); + } + } else { + if (!other.browserLanguages_.isEmpty()) { + if (browserLanguagesBuilder_.isEmpty()) { + browserLanguagesBuilder_.dispose(); + browserLanguagesBuilder_ = null; + browserLanguages_ = other.browserLanguages_; + bitField0_ = (bitField0_ & ~0x00000001); + browserLanguagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBrowserLanguagesFieldBuilder() + : null; + } else { + browserLanguagesBuilder_.addAllMessages(other.browserLanguages_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.BrowserLanguage m = + input.readMessage( + com.google.ads.admanager.v1.BrowserLanguage.parser(), extensionRegistry); + if (browserLanguagesBuilder_ == null) { + ensureBrowserLanguagesIsMutable(); + browserLanguages_.add(m); + } else { + browserLanguagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 browserLanguages_ = + java.util.Collections.emptyList(); + + private void ensureBrowserLanguagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + browserLanguages_ = + new java.util.ArrayList(browserLanguages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.BrowserLanguage, + com.google.ads.admanager.v1.BrowserLanguage.Builder, + com.google.ads.admanager.v1.BrowserLanguageOrBuilder> + browserLanguagesBuilder_; + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public java.util.List getBrowserLanguagesList() { + if (browserLanguagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(browserLanguages_); + } else { + return browserLanguagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public int getBrowserLanguagesCount() { + if (browserLanguagesBuilder_ == null) { + return browserLanguages_.size(); + } else { + return browserLanguagesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public com.google.ads.admanager.v1.BrowserLanguage getBrowserLanguages(int index) { + if (browserLanguagesBuilder_ == null) { + return browserLanguages_.get(index); + } else { + return browserLanguagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public Builder setBrowserLanguages( + int index, com.google.ads.admanager.v1.BrowserLanguage value) { + if (browserLanguagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBrowserLanguagesIsMutable(); + browserLanguages_.set(index, value); + onChanged(); + } else { + browserLanguagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public Builder setBrowserLanguages( + int index, com.google.ads.admanager.v1.BrowserLanguage.Builder builderForValue) { + if (browserLanguagesBuilder_ == null) { + ensureBrowserLanguagesIsMutable(); + browserLanguages_.set(index, builderForValue.build()); + onChanged(); + } else { + browserLanguagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public Builder addBrowserLanguages(com.google.ads.admanager.v1.BrowserLanguage value) { + if (browserLanguagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBrowserLanguagesIsMutable(); + browserLanguages_.add(value); + onChanged(); + } else { + browserLanguagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public Builder addBrowserLanguages( + int index, com.google.ads.admanager.v1.BrowserLanguage value) { + if (browserLanguagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBrowserLanguagesIsMutable(); + browserLanguages_.add(index, value); + onChanged(); + } else { + browserLanguagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public Builder addBrowserLanguages( + com.google.ads.admanager.v1.BrowserLanguage.Builder builderForValue) { + if (browserLanguagesBuilder_ == null) { + ensureBrowserLanguagesIsMutable(); + browserLanguages_.add(builderForValue.build()); + onChanged(); + } else { + browserLanguagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public Builder addBrowserLanguages( + int index, com.google.ads.admanager.v1.BrowserLanguage.Builder builderForValue) { + if (browserLanguagesBuilder_ == null) { + ensureBrowserLanguagesIsMutable(); + browserLanguages_.add(index, builderForValue.build()); + onChanged(); + } else { + browserLanguagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public Builder addAllBrowserLanguages( + java.lang.Iterable values) { + if (browserLanguagesBuilder_ == null) { + ensureBrowserLanguagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, browserLanguages_); + onChanged(); + } else { + browserLanguagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public Builder clearBrowserLanguages() { + if (browserLanguagesBuilder_ == null) { + browserLanguages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + browserLanguagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public Builder removeBrowserLanguages(int index) { + if (browserLanguagesBuilder_ == null) { + ensureBrowserLanguagesIsMutable(); + browserLanguages_.remove(index); + onChanged(); + } else { + browserLanguagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public com.google.ads.admanager.v1.BrowserLanguage.Builder getBrowserLanguagesBuilder( + int index) { + return getBrowserLanguagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public com.google.ads.admanager.v1.BrowserLanguageOrBuilder getBrowserLanguagesOrBuilder( + int index) { + if (browserLanguagesBuilder_ == null) { + return browserLanguages_.get(index); + } else { + return browserLanguagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public java.util.List + getBrowserLanguagesOrBuilderList() { + if (browserLanguagesBuilder_ != null) { + return browserLanguagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(browserLanguages_); + } + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public com.google.ads.admanager.v1.BrowserLanguage.Builder addBrowserLanguagesBuilder() { + return getBrowserLanguagesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.BrowserLanguage.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public com.google.ads.admanager.v1.BrowserLanguage.Builder addBrowserLanguagesBuilder( + int index) { + return getBrowserLanguagesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.BrowserLanguage.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `BrowserLanguage` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + public java.util.List + getBrowserLanguagesBuilderList() { + return getBrowserLanguagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.BrowserLanguage, + com.google.ads.admanager.v1.BrowserLanguage.Builder, + com.google.ads.admanager.v1.BrowserLanguageOrBuilder> + getBrowserLanguagesFieldBuilder() { + if (browserLanguagesBuilder_ == null) { + browserLanguagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.BrowserLanguage, + com.google.ads.admanager.v1.BrowserLanguage.Builder, + com.google.ads.admanager.v1.BrowserLanguageOrBuilder>( + browserLanguages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + browserLanguages_ = null; + } + return browserLanguagesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `BrowserLanguage` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `BrowserLanguage` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `BrowserLanguage` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListBrowserLanguagesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListBrowserLanguagesResponse) + private static final com.google.ads.admanager.v1.ListBrowserLanguagesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListBrowserLanguagesResponse(); + } + + public static com.google.ads.admanager.v1.ListBrowserLanguagesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBrowserLanguagesResponse 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.admanager.v1.ListBrowserLanguagesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesResponseOrBuilder.java new file mode 100644 index 000000000000..2858d041dcd7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowserLanguagesResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_language_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListBrowserLanguagesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListBrowserLanguagesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + java.util.List getBrowserLanguagesList(); + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + com.google.ads.admanager.v1.BrowserLanguage getBrowserLanguages(int index); + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + int getBrowserLanguagesCount(); + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + java.util.List + getBrowserLanguagesOrBuilderList(); + + /** + * + * + *
    +   * The `BrowserLanguage` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.BrowserLanguage browser_languages = 1; + */ + com.google.ads.admanager.v1.BrowserLanguageOrBuilder getBrowserLanguagesOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `BrowserLanguage` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersRequest.java new file mode 100644 index 000000000000..568a05602c41 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersRequest.java @@ -0,0 +1,1484 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListBrowsers` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListBrowsersRequest} + */ +public final class ListBrowsersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListBrowsersRequest) + ListBrowsersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListBrowsersRequest.newBuilder() to construct. + private ListBrowsersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBrowsersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBrowsersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBrowsersRequest.class, + com.google.ads.admanager.v1.ListBrowsersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Browsers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of Browsers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `Browsers` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `Browsers` will be
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListBrowsers` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListBrowsers` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListBrowsers` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListBrowsers` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListBrowsersRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListBrowsersRequest other = + (com.google.ads.admanager.v1.ListBrowsersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest 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.admanager.v1.ListBrowsersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest 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.admanager.v1.ListBrowsersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListBrowsersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListBrowsers` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListBrowsersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListBrowsersRequest) + com.google.ads.admanager.v1.ListBrowsersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBrowsersRequest.class, + com.google.ads.admanager.v1.ListBrowsersRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListBrowsersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowsersRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListBrowsersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowsersRequest build() { + com.google.ads.admanager.v1.ListBrowsersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowsersRequest buildPartial() { + com.google.ads.admanager.v1.ListBrowsersRequest result = + new com.google.ads.admanager.v1.ListBrowsersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListBrowsersRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListBrowsersRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListBrowsersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListBrowsersRequest other) { + if (other == com.google.ads.admanager.v1.ListBrowsersRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of Browsers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Browsers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Browsers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Browsers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Browsers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `Browsers` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `Browsers` will be
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `Browsers` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `Browsers` will be
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `Browsers` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `Browsers` will be
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowsers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowsers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowsers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowsers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowsers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowsers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowsers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowsers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListBrowsers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListBrowsers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListBrowsersRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListBrowsersRequest) + private static final com.google.ads.admanager.v1.ListBrowsersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListBrowsersRequest(); + } + + public static com.google.ads.admanager.v1.ListBrowsersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBrowsersRequest 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.admanager.v1.ListBrowsersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersRequestOrBuilder.java new file mode 100644 index 000000000000..d64439801533 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListBrowsersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListBrowsersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Browsers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Browsers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `Browsers` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `Browsers` will be
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListBrowsers` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListBrowsers` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListBrowsers` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListBrowsers` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersResponse.java new file mode 100644 index 000000000000..69ae4811c940 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersResponse.java @@ -0,0 +1,1294 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListBrowsersRequest` containing matching `Browser`
    + * objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListBrowsersResponse} + */ +public final class ListBrowsersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListBrowsersResponse) + ListBrowsersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListBrowsersResponse.newBuilder() to construct. + private ListBrowsersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBrowsersResponse() { + browsers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBrowsersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBrowsersResponse.class, + com.google.ads.admanager.v1.ListBrowsersResponse.Builder.class); + } + + public static final int BROWSERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List browsers_; + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + @java.lang.Override + public java.util.List getBrowsersList() { + return browsers_; + } + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + @java.lang.Override + public java.util.List + getBrowsersOrBuilderList() { + return browsers_; + } + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + @java.lang.Override + public int getBrowsersCount() { + return browsers_.size(); + } + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Browser getBrowsers(int index) { + return browsers_.get(index); + } + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.BrowserOrBuilder getBrowsersOrBuilder(int index) { + return browsers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `Browser` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < browsers_.size(); i++) { + output.writeMessage(1, browsers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < browsers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, browsers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListBrowsersResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListBrowsersResponse other = + (com.google.ads.admanager.v1.ListBrowsersResponse) obj; + + if (!getBrowsersList().equals(other.getBrowsersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getBrowsersCount() > 0) { + hash = (37 * hash) + BROWSERS_FIELD_NUMBER; + hash = (53 * hash) + getBrowsersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse 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.admanager.v1.ListBrowsersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse 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.admanager.v1.ListBrowsersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListBrowsersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListBrowsersRequest` containing matching `Browser`
    +   * objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListBrowsersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListBrowsersResponse) + com.google.ads.admanager.v1.ListBrowsersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBrowsersResponse.class, + com.google.ads.admanager.v1.ListBrowsersResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListBrowsersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (browsersBuilder_ == null) { + browsers_ = java.util.Collections.emptyList(); + } else { + browsers_ = null; + browsersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BrowserServiceProto + .internal_static_google_ads_admanager_v1_ListBrowsersResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowsersResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListBrowsersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowsersResponse build() { + com.google.ads.admanager.v1.ListBrowsersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBrowsersResponse buildPartial() { + com.google.ads.admanager.v1.ListBrowsersResponse result = + new com.google.ads.admanager.v1.ListBrowsersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListBrowsersResponse result) { + if (browsersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + browsers_ = java.util.Collections.unmodifiableList(browsers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.browsers_ = browsers_; + } else { + result.browsers_ = browsersBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListBrowsersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListBrowsersResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListBrowsersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListBrowsersResponse other) { + if (other == com.google.ads.admanager.v1.ListBrowsersResponse.getDefaultInstance()) + return this; + if (browsersBuilder_ == null) { + if (!other.browsers_.isEmpty()) { + if (browsers_.isEmpty()) { + browsers_ = other.browsers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBrowsersIsMutable(); + browsers_.addAll(other.browsers_); + } + onChanged(); + } + } else { + if (!other.browsers_.isEmpty()) { + if (browsersBuilder_.isEmpty()) { + browsersBuilder_.dispose(); + browsersBuilder_ = null; + browsers_ = other.browsers_; + bitField0_ = (bitField0_ & ~0x00000001); + browsersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBrowsersFieldBuilder() + : null; + } else { + browsersBuilder_.addAllMessages(other.browsers_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.Browser m = + input.readMessage( + com.google.ads.admanager.v1.Browser.parser(), extensionRegistry); + if (browsersBuilder_ == null) { + ensureBrowsersIsMutable(); + browsers_.add(m); + } else { + browsersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 browsers_ = + java.util.Collections.emptyList(); + + private void ensureBrowsersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + browsers_ = new java.util.ArrayList(browsers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Browser, + com.google.ads.admanager.v1.Browser.Builder, + com.google.ads.admanager.v1.BrowserOrBuilder> + browsersBuilder_; + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public java.util.List getBrowsersList() { + if (browsersBuilder_ == null) { + return java.util.Collections.unmodifiableList(browsers_); + } else { + return browsersBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public int getBrowsersCount() { + if (browsersBuilder_ == null) { + return browsers_.size(); + } else { + return browsersBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public com.google.ads.admanager.v1.Browser getBrowsers(int index) { + if (browsersBuilder_ == null) { + return browsers_.get(index); + } else { + return browsersBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public Builder setBrowsers(int index, com.google.ads.admanager.v1.Browser value) { + if (browsersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBrowsersIsMutable(); + browsers_.set(index, value); + onChanged(); + } else { + browsersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public Builder setBrowsers( + int index, com.google.ads.admanager.v1.Browser.Builder builderForValue) { + if (browsersBuilder_ == null) { + ensureBrowsersIsMutable(); + browsers_.set(index, builderForValue.build()); + onChanged(); + } else { + browsersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public Builder addBrowsers(com.google.ads.admanager.v1.Browser value) { + if (browsersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBrowsersIsMutable(); + browsers_.add(value); + onChanged(); + } else { + browsersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public Builder addBrowsers(int index, com.google.ads.admanager.v1.Browser value) { + if (browsersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBrowsersIsMutable(); + browsers_.add(index, value); + onChanged(); + } else { + browsersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public Builder addBrowsers(com.google.ads.admanager.v1.Browser.Builder builderForValue) { + if (browsersBuilder_ == null) { + ensureBrowsersIsMutable(); + browsers_.add(builderForValue.build()); + onChanged(); + } else { + browsersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public Builder addBrowsers( + int index, com.google.ads.admanager.v1.Browser.Builder builderForValue) { + if (browsersBuilder_ == null) { + ensureBrowsersIsMutable(); + browsers_.add(index, builderForValue.build()); + onChanged(); + } else { + browsersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public Builder addAllBrowsers( + java.lang.Iterable values) { + if (browsersBuilder_ == null) { + ensureBrowsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, browsers_); + onChanged(); + } else { + browsersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public Builder clearBrowsers() { + if (browsersBuilder_ == null) { + browsers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + browsersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public Builder removeBrowsers(int index) { + if (browsersBuilder_ == null) { + ensureBrowsersIsMutable(); + browsers_.remove(index); + onChanged(); + } else { + browsersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public com.google.ads.admanager.v1.Browser.Builder getBrowsersBuilder(int index) { + return getBrowsersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public com.google.ads.admanager.v1.BrowserOrBuilder getBrowsersOrBuilder(int index) { + if (browsersBuilder_ == null) { + return browsers_.get(index); + } else { + return browsersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public java.util.List + getBrowsersOrBuilderList() { + if (browsersBuilder_ != null) { + return browsersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(browsers_); + } + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public com.google.ads.admanager.v1.Browser.Builder addBrowsersBuilder() { + return getBrowsersFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Browser.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public com.google.ads.admanager.v1.Browser.Builder addBrowsersBuilder(int index) { + return getBrowsersFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Browser.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Browser` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + public java.util.List getBrowsersBuilderList() { + return getBrowsersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Browser, + com.google.ads.admanager.v1.Browser.Builder, + com.google.ads.admanager.v1.BrowserOrBuilder> + getBrowsersFieldBuilder() { + if (browsersBuilder_ == null) { + browsersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Browser, + com.google.ads.admanager.v1.Browser.Builder, + com.google.ads.admanager.v1.BrowserOrBuilder>( + browsers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + browsers_ = null; + } + return browsersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `Browser` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `Browser` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `Browser` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListBrowsersResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListBrowsersResponse) + private static final com.google.ads.admanager.v1.ListBrowsersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListBrowsersResponse(); + } + + public static com.google.ads.admanager.v1.ListBrowsersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBrowsersResponse 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.admanager.v1.ListBrowsersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersResponseOrBuilder.java new file mode 100644 index 000000000000..93d309aca8e3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBrowsersResponseOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/browser_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListBrowsersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListBrowsersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + java.util.List getBrowsersList(); + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + com.google.ads.admanager.v1.Browser getBrowsers(int index); + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + int getBrowsersCount(); + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + java.util.List getBrowsersOrBuilderList(); + + /** + * + * + *
    +   * The `Browser` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Browser browsers = 1; + */ + com.google.ads.admanager.v1.BrowserOrBuilder getBrowsersOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `Browser` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysRequest.java new file mode 100644 index 000000000000..749f65e00a7b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListCmsMetadataKeys` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCmsMetadataKeysRequest} + */ +public final class ListCmsMetadataKeysRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListCmsMetadataKeysRequest) + ListCmsMetadataKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListCmsMetadataKeysRequest.newBuilder() to construct. + private ListCmsMetadataKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCmsMetadataKeysRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCmsMetadataKeysRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCmsMetadataKeysRequest.class, + com.google.ads.admanager.v1.ListCmsMetadataKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of CmsMetadataKeys.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of CmsMetadataKeys.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `CmsMetadataKeys` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `CmsMetadataKeys` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataKeys`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCmsMetadataKeys`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataKeys`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCmsMetadataKeys`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListCmsMetadataKeysRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListCmsMetadataKeysRequest other = + (com.google.ads.admanager.v1.ListCmsMetadataKeysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest 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.admanager.v1.ListCmsMetadataKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest 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.admanager.v1.ListCmsMetadataKeysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListCmsMetadataKeysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListCmsMetadataKeys` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCmsMetadataKeysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListCmsMetadataKeysRequest) + com.google.ads.admanager.v1.ListCmsMetadataKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCmsMetadataKeysRequest.class, + com.google.ads.admanager.v1.ListCmsMetadataKeysRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListCmsMetadataKeysRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataKeysRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListCmsMetadataKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataKeysRequest build() { + com.google.ads.admanager.v1.ListCmsMetadataKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataKeysRequest buildPartial() { + com.google.ads.admanager.v1.ListCmsMetadataKeysRequest result = + new com.google.ads.admanager.v1.ListCmsMetadataKeysRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListCmsMetadataKeysRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListCmsMetadataKeysRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListCmsMetadataKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListCmsMetadataKeysRequest other) { + if (other == com.google.ads.admanager.v1.ListCmsMetadataKeysRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of CmsMetadataKeys.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CmsMetadataKeys.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CmsMetadataKeys.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CmsMetadataKeys.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CmsMetadataKeys.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `CmsMetadataKeys` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `CmsMetadataKeys` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `CmsMetadataKeys` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `CmsMetadataKeys` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `CmsMetadataKeys` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `CmsMetadataKeys` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataKeys`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataKeys`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataKeys`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataKeys`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataKeys`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataKeys`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataKeys`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataKeys`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataKeys`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataKeys`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListCmsMetadataKeysRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListCmsMetadataKeysRequest) + private static final com.google.ads.admanager.v1.ListCmsMetadataKeysRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListCmsMetadataKeysRequest(); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCmsMetadataKeysRequest 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.admanager.v1.ListCmsMetadataKeysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysRequestOrBuilder.java new file mode 100644 index 000000000000..7e02ec8ebadb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListCmsMetadataKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListCmsMetadataKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of CmsMetadataKeys.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of CmsMetadataKeys.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `CmsMetadataKeys` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `CmsMetadataKeys` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListCmsMetadataKeys`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCmsMetadataKeys`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListCmsMetadataKeys`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCmsMetadataKeys`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysResponse.java new file mode 100644 index 000000000000..658113d3f331 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysResponse.java @@ -0,0 +1,1303 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListCmsMetadataKeysRequest` containing matching
    + * `CmsMetadataKey` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCmsMetadataKeysResponse} + */ +public final class ListCmsMetadataKeysResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListCmsMetadataKeysResponse) + ListCmsMetadataKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListCmsMetadataKeysResponse.newBuilder() to construct. + private ListCmsMetadataKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCmsMetadataKeysResponse() { + cmsMetadataKeys_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCmsMetadataKeysResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCmsMetadataKeysResponse.class, + com.google.ads.admanager.v1.ListCmsMetadataKeysResponse.Builder.class); + } + + public static final int CMS_METADATA_KEYS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List cmsMetadataKeys_; + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + @java.lang.Override + public java.util.List getCmsMetadataKeysList() { + return cmsMetadataKeys_; + } + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + @java.lang.Override + public java.util.List + getCmsMetadataKeysOrBuilderList() { + return cmsMetadataKeys_; + } + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + @java.lang.Override + public int getCmsMetadataKeysCount() { + return cmsMetadataKeys_.size(); + } + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKey getCmsMetadataKeys(int index) { + return cmsMetadataKeys_.get(index); + } + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataKeyOrBuilder getCmsMetadataKeysOrBuilder( + int index) { + return cmsMetadataKeys_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `CmsMetadataKey` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < cmsMetadataKeys_.size(); i++) { + output.writeMessage(1, cmsMetadataKeys_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < cmsMetadataKeys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cmsMetadataKeys_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListCmsMetadataKeysResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListCmsMetadataKeysResponse other = + (com.google.ads.admanager.v1.ListCmsMetadataKeysResponse) obj; + + if (!getCmsMetadataKeysList().equals(other.getCmsMetadataKeysList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getCmsMetadataKeysCount() > 0) { + hash = (37 * hash) + CMS_METADATA_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getCmsMetadataKeysList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse 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.admanager.v1.ListCmsMetadataKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse 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.admanager.v1.ListCmsMetadataKeysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListCmsMetadataKeysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListCmsMetadataKeysRequest` containing matching
    +   * `CmsMetadataKey` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCmsMetadataKeysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListCmsMetadataKeysResponse) + com.google.ads.admanager.v1.ListCmsMetadataKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCmsMetadataKeysResponse.class, + com.google.ads.admanager.v1.ListCmsMetadataKeysResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListCmsMetadataKeysResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cmsMetadataKeysBuilder_ == null) { + cmsMetadataKeys_ = java.util.Collections.emptyList(); + } else { + cmsMetadataKeys_ = null; + cmsMetadataKeysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CmsMetadataKeyServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataKeysResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataKeysResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListCmsMetadataKeysResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataKeysResponse build() { + com.google.ads.admanager.v1.ListCmsMetadataKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataKeysResponse buildPartial() { + com.google.ads.admanager.v1.ListCmsMetadataKeysResponse result = + new com.google.ads.admanager.v1.ListCmsMetadataKeysResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListCmsMetadataKeysResponse result) { + if (cmsMetadataKeysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cmsMetadataKeys_ = java.util.Collections.unmodifiableList(cmsMetadataKeys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cmsMetadataKeys_ = cmsMetadataKeys_; + } else { + result.cmsMetadataKeys_ = cmsMetadataKeysBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListCmsMetadataKeysResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListCmsMetadataKeysResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListCmsMetadataKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListCmsMetadataKeysResponse other) { + if (other == com.google.ads.admanager.v1.ListCmsMetadataKeysResponse.getDefaultInstance()) + return this; + if (cmsMetadataKeysBuilder_ == null) { + if (!other.cmsMetadataKeys_.isEmpty()) { + if (cmsMetadataKeys_.isEmpty()) { + cmsMetadataKeys_ = other.cmsMetadataKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCmsMetadataKeysIsMutable(); + cmsMetadataKeys_.addAll(other.cmsMetadataKeys_); + } + onChanged(); + } + } else { + if (!other.cmsMetadataKeys_.isEmpty()) { + if (cmsMetadataKeysBuilder_.isEmpty()) { + cmsMetadataKeysBuilder_.dispose(); + cmsMetadataKeysBuilder_ = null; + cmsMetadataKeys_ = other.cmsMetadataKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + cmsMetadataKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCmsMetadataKeysFieldBuilder() + : null; + } else { + cmsMetadataKeysBuilder_.addAllMessages(other.cmsMetadataKeys_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.CmsMetadataKey m = + input.readMessage( + com.google.ads.admanager.v1.CmsMetadataKey.parser(), extensionRegistry); + if (cmsMetadataKeysBuilder_ == null) { + ensureCmsMetadataKeysIsMutable(); + cmsMetadataKeys_.add(m); + } else { + cmsMetadataKeysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 cmsMetadataKeys_ = + java.util.Collections.emptyList(); + + private void ensureCmsMetadataKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cmsMetadataKeys_ = + new java.util.ArrayList(cmsMetadataKeys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CmsMetadataKey, + com.google.ads.admanager.v1.CmsMetadataKey.Builder, + com.google.ads.admanager.v1.CmsMetadataKeyOrBuilder> + cmsMetadataKeysBuilder_; + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public java.util.List getCmsMetadataKeysList() { + if (cmsMetadataKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(cmsMetadataKeys_); + } else { + return cmsMetadataKeysBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public int getCmsMetadataKeysCount() { + if (cmsMetadataKeysBuilder_ == null) { + return cmsMetadataKeys_.size(); + } else { + return cmsMetadataKeysBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataKey getCmsMetadataKeys(int index) { + if (cmsMetadataKeysBuilder_ == null) { + return cmsMetadataKeys_.get(index); + } else { + return cmsMetadataKeysBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public Builder setCmsMetadataKeys(int index, com.google.ads.admanager.v1.CmsMetadataKey value) { + if (cmsMetadataKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataKeysIsMutable(); + cmsMetadataKeys_.set(index, value); + onChanged(); + } else { + cmsMetadataKeysBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public Builder setCmsMetadataKeys( + int index, com.google.ads.admanager.v1.CmsMetadataKey.Builder builderForValue) { + if (cmsMetadataKeysBuilder_ == null) { + ensureCmsMetadataKeysIsMutable(); + cmsMetadataKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + cmsMetadataKeysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public Builder addCmsMetadataKeys(com.google.ads.admanager.v1.CmsMetadataKey value) { + if (cmsMetadataKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataKeysIsMutable(); + cmsMetadataKeys_.add(value); + onChanged(); + } else { + cmsMetadataKeysBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public Builder addCmsMetadataKeys(int index, com.google.ads.admanager.v1.CmsMetadataKey value) { + if (cmsMetadataKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataKeysIsMutable(); + cmsMetadataKeys_.add(index, value); + onChanged(); + } else { + cmsMetadataKeysBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public Builder addCmsMetadataKeys( + com.google.ads.admanager.v1.CmsMetadataKey.Builder builderForValue) { + if (cmsMetadataKeysBuilder_ == null) { + ensureCmsMetadataKeysIsMutable(); + cmsMetadataKeys_.add(builderForValue.build()); + onChanged(); + } else { + cmsMetadataKeysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public Builder addCmsMetadataKeys( + int index, com.google.ads.admanager.v1.CmsMetadataKey.Builder builderForValue) { + if (cmsMetadataKeysBuilder_ == null) { + ensureCmsMetadataKeysIsMutable(); + cmsMetadataKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + cmsMetadataKeysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public Builder addAllCmsMetadataKeys( + java.lang.Iterable values) { + if (cmsMetadataKeysBuilder_ == null) { + ensureCmsMetadataKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cmsMetadataKeys_); + onChanged(); + } else { + cmsMetadataKeysBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public Builder clearCmsMetadataKeys() { + if (cmsMetadataKeysBuilder_ == null) { + cmsMetadataKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cmsMetadataKeysBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public Builder removeCmsMetadataKeys(int index) { + if (cmsMetadataKeysBuilder_ == null) { + ensureCmsMetadataKeysIsMutable(); + cmsMetadataKeys_.remove(index); + onChanged(); + } else { + cmsMetadataKeysBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataKey.Builder getCmsMetadataKeysBuilder(int index) { + return getCmsMetadataKeysFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataKeyOrBuilder getCmsMetadataKeysOrBuilder( + int index) { + if (cmsMetadataKeysBuilder_ == null) { + return cmsMetadataKeys_.get(index); + } else { + return cmsMetadataKeysBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public java.util.List + getCmsMetadataKeysOrBuilderList() { + if (cmsMetadataKeysBuilder_ != null) { + return cmsMetadataKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cmsMetadataKeys_); + } + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataKey.Builder addCmsMetadataKeysBuilder() { + return getCmsMetadataKeysFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CmsMetadataKey.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataKey.Builder addCmsMetadataKeysBuilder(int index) { + return getCmsMetadataKeysFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CmsMetadataKey.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CmsMetadataKey` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + public java.util.List + getCmsMetadataKeysBuilderList() { + return getCmsMetadataKeysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CmsMetadataKey, + com.google.ads.admanager.v1.CmsMetadataKey.Builder, + com.google.ads.admanager.v1.CmsMetadataKeyOrBuilder> + getCmsMetadataKeysFieldBuilder() { + if (cmsMetadataKeysBuilder_ == null) { + cmsMetadataKeysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CmsMetadataKey, + com.google.ads.admanager.v1.CmsMetadataKey.Builder, + com.google.ads.admanager.v1.CmsMetadataKeyOrBuilder>( + cmsMetadataKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + cmsMetadataKeys_ = null; + } + return cmsMetadataKeysBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `CmsMetadataKey` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `CmsMetadataKey` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `CmsMetadataKey` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListCmsMetadataKeysResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListCmsMetadataKeysResponse) + private static final com.google.ads.admanager.v1.ListCmsMetadataKeysResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListCmsMetadataKeysResponse(); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataKeysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCmsMetadataKeysResponse 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.admanager.v1.ListCmsMetadataKeysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysResponseOrBuilder.java new file mode 100644 index 000000000000..264cf1b63fe0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataKeysResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListCmsMetadataKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListCmsMetadataKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + java.util.List getCmsMetadataKeysList(); + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + com.google.ads.admanager.v1.CmsMetadataKey getCmsMetadataKeys(int index); + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + int getCmsMetadataKeysCount(); + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + java.util.List + getCmsMetadataKeysOrBuilderList(); + + /** + * + * + *
    +   * The `CmsMetadataKey` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataKey cms_metadata_keys = 1; + */ + com.google.ads.admanager.v1.CmsMetadataKeyOrBuilder getCmsMetadataKeysOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `CmsMetadataKey` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesRequest.java new file mode 100644 index 000000000000..1502db06dace --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListCmsMetadataValues` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCmsMetadataValuesRequest} + */ +public final class ListCmsMetadataValuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListCmsMetadataValuesRequest) + ListCmsMetadataValuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListCmsMetadataValuesRequest.newBuilder() to construct. + private ListCmsMetadataValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCmsMetadataValuesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCmsMetadataValuesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCmsMetadataValuesRequest.class, + com.google.ads.admanager.v1.ListCmsMetadataValuesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of CmsMetadataValues.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of CmsMetadataValues.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `CmsMetadataValues` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `CmsMetadataValues` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataValues`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCmsMetadataValues`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataValues`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCmsMetadataValues`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListCmsMetadataValuesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListCmsMetadataValuesRequest other = + (com.google.ads.admanager.v1.ListCmsMetadataValuesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest 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.admanager.v1.ListCmsMetadataValuesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest 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.admanager.v1.ListCmsMetadataValuesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListCmsMetadataValuesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListCmsMetadataValues` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCmsMetadataValuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListCmsMetadataValuesRequest) + com.google.ads.admanager.v1.ListCmsMetadataValuesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCmsMetadataValuesRequest.class, + com.google.ads.admanager.v1.ListCmsMetadataValuesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListCmsMetadataValuesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataValuesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListCmsMetadataValuesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataValuesRequest build() { + com.google.ads.admanager.v1.ListCmsMetadataValuesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataValuesRequest buildPartial() { + com.google.ads.admanager.v1.ListCmsMetadataValuesRequest result = + new com.google.ads.admanager.v1.ListCmsMetadataValuesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListCmsMetadataValuesRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListCmsMetadataValuesRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListCmsMetadataValuesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListCmsMetadataValuesRequest other) { + if (other == com.google.ads.admanager.v1.ListCmsMetadataValuesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of CmsMetadataValues.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CmsMetadataValues.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CmsMetadataValues.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CmsMetadataValues.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CmsMetadataValues.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `CmsMetadataValues` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `CmsMetadataValues` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `CmsMetadataValues` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `CmsMetadataValues` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `CmsMetadataValues` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `CmsMetadataValues` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataValues`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataValues`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataValues`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataValues`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataValues`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataValues`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataValues`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataValues`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCmsMetadataValues`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCmsMetadataValues`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListCmsMetadataValuesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListCmsMetadataValuesRequest) + private static final com.google.ads.admanager.v1.ListCmsMetadataValuesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListCmsMetadataValuesRequest(); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCmsMetadataValuesRequest 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.admanager.v1.ListCmsMetadataValuesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesRequestOrBuilder.java new file mode 100644 index 000000000000..7c8b07261098 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListCmsMetadataValuesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListCmsMetadataValuesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of CmsMetadataValues.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of CmsMetadataValues.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `CmsMetadataValues` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `CmsMetadataValues` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListCmsMetadataValues`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCmsMetadataValues`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListCmsMetadataValues`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCmsMetadataValues`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesResponse.java new file mode 100644 index 000000000000..12bf707f9e21 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesResponse.java @@ -0,0 +1,1309 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListCmsMetadataValuesRequest` containing matching
    + * `CmsMetadataValue` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCmsMetadataValuesResponse} + */ +public final class ListCmsMetadataValuesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListCmsMetadataValuesResponse) + ListCmsMetadataValuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListCmsMetadataValuesResponse.newBuilder() to construct. + private ListCmsMetadataValuesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCmsMetadataValuesResponse() { + cmsMetadataValues_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCmsMetadataValuesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCmsMetadataValuesResponse.class, + com.google.ads.admanager.v1.ListCmsMetadataValuesResponse.Builder.class); + } + + public static final int CMS_METADATA_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List cmsMetadataValues_; + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + @java.lang.Override + public java.util.List getCmsMetadataValuesList() { + return cmsMetadataValues_; + } + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + @java.lang.Override + public java.util.List + getCmsMetadataValuesOrBuilderList() { + return cmsMetadataValues_; + } + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + @java.lang.Override + public int getCmsMetadataValuesCount() { + return cmsMetadataValues_.size(); + } + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValue getCmsMetadataValues(int index) { + return cmsMetadataValues_.get(index); + } + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CmsMetadataValueOrBuilder getCmsMetadataValuesOrBuilder( + int index) { + return cmsMetadataValues_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `CmsMetadataValue` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < cmsMetadataValues_.size(); i++) { + output.writeMessage(1, cmsMetadataValues_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < cmsMetadataValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, cmsMetadataValues_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListCmsMetadataValuesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListCmsMetadataValuesResponse other = + (com.google.ads.admanager.v1.ListCmsMetadataValuesResponse) obj; + + if (!getCmsMetadataValuesList().equals(other.getCmsMetadataValuesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getCmsMetadataValuesCount() > 0) { + hash = (37 * hash) + CMS_METADATA_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getCmsMetadataValuesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse 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.admanager.v1.ListCmsMetadataValuesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse 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.admanager.v1.ListCmsMetadataValuesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListCmsMetadataValuesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListCmsMetadataValuesRequest` containing matching
    +   * `CmsMetadataValue` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCmsMetadataValuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListCmsMetadataValuesResponse) + com.google.ads.admanager.v1.ListCmsMetadataValuesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCmsMetadataValuesResponse.class, + com.google.ads.admanager.v1.ListCmsMetadataValuesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListCmsMetadataValuesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cmsMetadataValuesBuilder_ == null) { + cmsMetadataValues_ = java.util.Collections.emptyList(); + } else { + cmsMetadataValues_ = null; + cmsMetadataValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CmsMetadataValueServiceProto + .internal_static_google_ads_admanager_v1_ListCmsMetadataValuesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataValuesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListCmsMetadataValuesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataValuesResponse build() { + com.google.ads.admanager.v1.ListCmsMetadataValuesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCmsMetadataValuesResponse buildPartial() { + com.google.ads.admanager.v1.ListCmsMetadataValuesResponse result = + new com.google.ads.admanager.v1.ListCmsMetadataValuesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListCmsMetadataValuesResponse result) { + if (cmsMetadataValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cmsMetadataValues_ = java.util.Collections.unmodifiableList(cmsMetadataValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cmsMetadataValues_ = cmsMetadataValues_; + } else { + result.cmsMetadataValues_ = cmsMetadataValuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListCmsMetadataValuesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListCmsMetadataValuesResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListCmsMetadataValuesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListCmsMetadataValuesResponse other) { + if (other == com.google.ads.admanager.v1.ListCmsMetadataValuesResponse.getDefaultInstance()) + return this; + if (cmsMetadataValuesBuilder_ == null) { + if (!other.cmsMetadataValues_.isEmpty()) { + if (cmsMetadataValues_.isEmpty()) { + cmsMetadataValues_ = other.cmsMetadataValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.addAll(other.cmsMetadataValues_); + } + onChanged(); + } + } else { + if (!other.cmsMetadataValues_.isEmpty()) { + if (cmsMetadataValuesBuilder_.isEmpty()) { + cmsMetadataValuesBuilder_.dispose(); + cmsMetadataValuesBuilder_ = null; + cmsMetadataValues_ = other.cmsMetadataValues_; + bitField0_ = (bitField0_ & ~0x00000001); + cmsMetadataValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCmsMetadataValuesFieldBuilder() + : null; + } else { + cmsMetadataValuesBuilder_.addAllMessages(other.cmsMetadataValues_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.CmsMetadataValue m = + input.readMessage( + com.google.ads.admanager.v1.CmsMetadataValue.parser(), extensionRegistry); + if (cmsMetadataValuesBuilder_ == null) { + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.add(m); + } else { + cmsMetadataValuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 cmsMetadataValues_ = + java.util.Collections.emptyList(); + + private void ensureCmsMetadataValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cmsMetadataValues_ = + new java.util.ArrayList( + cmsMetadataValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CmsMetadataValue, + com.google.ads.admanager.v1.CmsMetadataValue.Builder, + com.google.ads.admanager.v1.CmsMetadataValueOrBuilder> + cmsMetadataValuesBuilder_; + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public java.util.List getCmsMetadataValuesList() { + if (cmsMetadataValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(cmsMetadataValues_); + } else { + return cmsMetadataValuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public int getCmsMetadataValuesCount() { + if (cmsMetadataValuesBuilder_ == null) { + return cmsMetadataValues_.size(); + } else { + return cmsMetadataValuesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataValue getCmsMetadataValues(int index) { + if (cmsMetadataValuesBuilder_ == null) { + return cmsMetadataValues_.get(index); + } else { + return cmsMetadataValuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public Builder setCmsMetadataValues( + int index, com.google.ads.admanager.v1.CmsMetadataValue value) { + if (cmsMetadataValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.set(index, value); + onChanged(); + } else { + cmsMetadataValuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public Builder setCmsMetadataValues( + int index, com.google.ads.admanager.v1.CmsMetadataValue.Builder builderForValue) { + if (cmsMetadataValuesBuilder_ == null) { + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.set(index, builderForValue.build()); + onChanged(); + } else { + cmsMetadataValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public Builder addCmsMetadataValues(com.google.ads.admanager.v1.CmsMetadataValue value) { + if (cmsMetadataValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.add(value); + onChanged(); + } else { + cmsMetadataValuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public Builder addCmsMetadataValues( + int index, com.google.ads.admanager.v1.CmsMetadataValue value) { + if (cmsMetadataValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.add(index, value); + onChanged(); + } else { + cmsMetadataValuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public Builder addCmsMetadataValues( + com.google.ads.admanager.v1.CmsMetadataValue.Builder builderForValue) { + if (cmsMetadataValuesBuilder_ == null) { + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.add(builderForValue.build()); + onChanged(); + } else { + cmsMetadataValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public Builder addCmsMetadataValues( + int index, com.google.ads.admanager.v1.CmsMetadataValue.Builder builderForValue) { + if (cmsMetadataValuesBuilder_ == null) { + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.add(index, builderForValue.build()); + onChanged(); + } else { + cmsMetadataValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public Builder addAllCmsMetadataValues( + java.lang.Iterable values) { + if (cmsMetadataValuesBuilder_ == null) { + ensureCmsMetadataValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cmsMetadataValues_); + onChanged(); + } else { + cmsMetadataValuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public Builder clearCmsMetadataValues() { + if (cmsMetadataValuesBuilder_ == null) { + cmsMetadataValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cmsMetadataValuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public Builder removeCmsMetadataValues(int index) { + if (cmsMetadataValuesBuilder_ == null) { + ensureCmsMetadataValuesIsMutable(); + cmsMetadataValues_.remove(index); + onChanged(); + } else { + cmsMetadataValuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataValue.Builder getCmsMetadataValuesBuilder( + int index) { + return getCmsMetadataValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataValueOrBuilder getCmsMetadataValuesOrBuilder( + int index) { + if (cmsMetadataValuesBuilder_ == null) { + return cmsMetadataValues_.get(index); + } else { + return cmsMetadataValuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public java.util.List + getCmsMetadataValuesOrBuilderList() { + if (cmsMetadataValuesBuilder_ != null) { + return cmsMetadataValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cmsMetadataValues_); + } + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataValue.Builder addCmsMetadataValuesBuilder() { + return getCmsMetadataValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CmsMetadataValue.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public com.google.ads.admanager.v1.CmsMetadataValue.Builder addCmsMetadataValuesBuilder( + int index) { + return getCmsMetadataValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CmsMetadataValue.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CmsMetadataValue` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + public java.util.List + getCmsMetadataValuesBuilderList() { + return getCmsMetadataValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CmsMetadataValue, + com.google.ads.admanager.v1.CmsMetadataValue.Builder, + com.google.ads.admanager.v1.CmsMetadataValueOrBuilder> + getCmsMetadataValuesFieldBuilder() { + if (cmsMetadataValuesBuilder_ == null) { + cmsMetadataValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CmsMetadataValue, + com.google.ads.admanager.v1.CmsMetadataValue.Builder, + com.google.ads.admanager.v1.CmsMetadataValueOrBuilder>( + cmsMetadataValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + cmsMetadataValues_ = null; + } + return cmsMetadataValuesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `CmsMetadataValue` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `CmsMetadataValue` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `CmsMetadataValue` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListCmsMetadataValuesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListCmsMetadataValuesResponse) + private static final com.google.ads.admanager.v1.ListCmsMetadataValuesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListCmsMetadataValuesResponse(); + } + + public static com.google.ads.admanager.v1.ListCmsMetadataValuesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCmsMetadataValuesResponse 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.admanager.v1.ListCmsMetadataValuesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesResponseOrBuilder.java new file mode 100644 index 000000000000..ebbcbd568503 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCmsMetadataValuesResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/cms_metadata_value_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListCmsMetadataValuesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListCmsMetadataValuesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + java.util.List getCmsMetadataValuesList(); + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + com.google.ads.admanager.v1.CmsMetadataValue getCmsMetadataValues(int index); + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + int getCmsMetadataValuesCount(); + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + java.util.List + getCmsMetadataValuesOrBuilderList(); + + /** + * + * + *
    +   * The `CmsMetadataValue` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CmsMetadataValue cms_metadata_values = 1; + */ + com.google.ads.admanager.v1.CmsMetadataValueOrBuilder getCmsMetadataValuesOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `CmsMetadataValue` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesRequest.java index e4620c2ad83c..cabf5fa0a43b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of `Companies` to return. The service may
        * return fewer than this value. If unspecified, at most 50 `Companies` will
    -   * be returned. The maximum value is 1000; values above 1000 will be coerced
    -   * to 1000.
    +   * be returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -935,8 +935,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of `Companies` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `Companies` will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -954,8 +954,8 @@ public int getPageSize() { *
          * Optional. The maximum number of `Companies` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `Companies` will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -977,8 +977,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of `Companies` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `Companies` will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesRequestOrBuilder.java index 05abecd3f2d9..b787e8a79fc0 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListCompaniesRequestOrBuilder *
        * Optional. The maximum number of `Companies` to return. The service may
        * return fewer than this value. If unspecified, at most 50 `Companies` will
    -   * be returned. The maximum value is 1000; values above 1000 will be coerced
    -   * to 1000.
    +   * be returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesResponse.java index 61a89ad776ab..01018309a9c7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesResponse.java @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1155,7 +1155,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1181,7 +1181,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1211,7 +1211,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesResponseOrBuilder.java index fac75bc6ad8c..ce047526bd3a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCompaniesResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListCompaniesResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsRequest.java new file mode 100644 index 000000000000..d65b8b63e5cb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsRequest.java @@ -0,0 +1,1484 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListContacts` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContactsRequest} + */ +public final class ListContactsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListContactsRequest) + ListContactsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListContactsRequest.newBuilder() to construct. + private ListContactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContactsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContactsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContactsRequest.class, + com.google.ads.admanager.v1.ListContactsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Contacts.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of Contacts.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `Contacts` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `Contacts` will be
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListContacts` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContacts` must match
    +   * the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListContacts` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContacts` must match
    +   * the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListContactsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListContactsRequest other = + (com.google.ads.admanager.v1.ListContactsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListContactsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContactsRequest 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.admanager.v1.ListContactsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContactsRequest 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.admanager.v1.ListContactsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContactsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContactsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContactsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContactsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContactsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContactsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContactsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListContactsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListContacts` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContactsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListContactsRequest) + com.google.ads.admanager.v1.ListContactsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContactsRequest.class, + com.google.ads.admanager.v1.ListContactsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListContactsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContactsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListContactsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContactsRequest build() { + com.google.ads.admanager.v1.ListContactsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContactsRequest buildPartial() { + com.google.ads.admanager.v1.ListContactsRequest result = + new com.google.ads.admanager.v1.ListContactsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListContactsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListContactsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListContactsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListContactsRequest other) { + if (other == com.google.ads.admanager.v1.ListContactsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of Contacts.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Contacts.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Contacts.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Contacts.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Contacts.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `Contacts` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `Contacts` will be
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `Contacts` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `Contacts` will be
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `Contacts` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `Contacts` will be
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListContacts` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContacts` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContacts` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContacts` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContacts` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContacts` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContacts` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContacts` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContacts` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContacts` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListContactsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListContactsRequest) + private static final com.google.ads.admanager.v1.ListContactsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListContactsRequest(); + } + + public static com.google.ads.admanager.v1.ListContactsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContactsRequest 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.admanager.v1.ListContactsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsRequestOrBuilder.java new file mode 100644 index 000000000000..44a349caaf68 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListContactsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListContactsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Contacts.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Contacts.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `Contacts` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `Contacts` will be
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListContacts` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContacts` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListContacts` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContacts` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsResponse.java new file mode 100644 index 000000000000..65f20fa055f2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsResponse.java @@ -0,0 +1,1294 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListContactsRequest` containing matching `Contact`
    + * objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContactsResponse} + */ +public final class ListContactsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListContactsResponse) + ListContactsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListContactsResponse.newBuilder() to construct. + private ListContactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContactsResponse() { + contacts_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContactsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContactsResponse.class, + com.google.ads.admanager.v1.ListContactsResponse.Builder.class); + } + + public static final int CONTACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List contacts_; + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public java.util.List getContactsList() { + return contacts_; + } + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public java.util.List + getContactsOrBuilderList() { + return contacts_; + } + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public int getContactsCount() { + return contacts_.size(); + } + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Contact getContacts(int index) { + return contacts_.get(index); + } + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContactOrBuilder getContactsOrBuilder(int index) { + return contacts_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `Contact` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < contacts_.size(); i++) { + output.writeMessage(1, contacts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < contacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contacts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListContactsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListContactsResponse other = + (com.google.ads.admanager.v1.ListContactsResponse) obj; + + if (!getContactsList().equals(other.getContactsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getContactsCount() > 0) { + hash = (37 * hash) + CONTACTS_FIELD_NUMBER; + hash = (53 * hash) + getContactsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListContactsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContactsResponse 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.admanager.v1.ListContactsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContactsResponse 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.admanager.v1.ListContactsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContactsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContactsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContactsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContactsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContactsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContactsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContactsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListContactsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListContactsRequest` containing matching `Contact`
    +   * objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContactsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListContactsResponse) + com.google.ads.admanager.v1.ListContactsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContactsResponse.class, + com.google.ads.admanager.v1.ListContactsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListContactsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + } else { + contacts_ = null; + contactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_ListContactsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContactsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListContactsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContactsResponse build() { + com.google.ads.admanager.v1.ListContactsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContactsResponse buildPartial() { + com.google.ads.admanager.v1.ListContactsResponse result = + new com.google.ads.admanager.v1.ListContactsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListContactsResponse result) { + if (contactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contacts_ = java.util.Collections.unmodifiableList(contacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contacts_ = contacts_; + } else { + result.contacts_ = contactsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListContactsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListContactsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListContactsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListContactsResponse other) { + if (other == com.google.ads.admanager.v1.ListContactsResponse.getDefaultInstance()) + return this; + if (contactsBuilder_ == null) { + if (!other.contacts_.isEmpty()) { + if (contacts_.isEmpty()) { + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContactsIsMutable(); + contacts_.addAll(other.contacts_); + } + onChanged(); + } + } else { + if (!other.contacts_.isEmpty()) { + if (contactsBuilder_.isEmpty()) { + contactsBuilder_.dispose(); + contactsBuilder_ = null; + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000001); + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContactsFieldBuilder() + : null; + } else { + contactsBuilder_.addAllMessages(other.contacts_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.Contact m = + input.readMessage( + com.google.ads.admanager.v1.Contact.parser(), extensionRegistry); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(m); + } else { + contactsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 contacts_ = + java.util.Collections.emptyList(); + + private void ensureContactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contacts_ = new java.util.ArrayList(contacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + contactsBuilder_; + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public java.util.List getContactsList() { + if (contactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contacts_); + } else { + return contactsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public int getContactsCount() { + if (contactsBuilder_ == null) { + return contacts_.size(); + } else { + return contactsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact getContacts(int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder setContacts(int index, com.google.ads.admanager.v1.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.set(index, value); + onChanged(); + } else { + contactsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder setContacts( + int index, com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.set(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts(com.google.ads.admanager.v1.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(value); + onChanged(); + } else { + contactsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts(int index, com.google.ads.admanager.v1.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(index, value); + onChanged(); + } else { + contactsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts(com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addContacts( + int index, com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder addAllContacts( + java.lang.Iterable values) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_); + onChanged(); + } else { + contactsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder clearContacts() { + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contactsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public Builder removeContacts(int index) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.remove(index); + onChanged(); + } else { + contactsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact.Builder getContactsBuilder(int index) { + return getContactsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.ContactOrBuilder getContactsOrBuilder(int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public java.util.List + getContactsOrBuilderList() { + if (contactsBuilder_ != null) { + return contactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contacts_); + } + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact.Builder addContactsBuilder() { + return getContactsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Contact.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public com.google.ads.admanager.v1.Contact.Builder addContactsBuilder(int index) { + return getContactsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Contact.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Contact` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + public java.util.List getContactsBuilderList() { + return getContactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + getContactsFieldBuilder() { + if (contactsBuilder_ == null) { + contactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder>( + contacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + contacts_ = null; + } + return contactsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `Contact` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `Contact` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `Contact` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListContactsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListContactsResponse) + private static final com.google.ads.admanager.v1.ListContactsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListContactsResponse(); + } + + public static com.google.ads.admanager.v1.ListContactsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContactsResponse 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.admanager.v1.ListContactsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsResponseOrBuilder.java new file mode 100644 index 000000000000..a22b160feb0a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContactsResponseOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListContactsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListContactsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + java.util.List getContactsList(); + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + com.google.ads.admanager.v1.Contact getContacts(int index); + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + int getContactsCount(); + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + java.util.List getContactsOrBuilderList(); + + /** + * + * + *
    +   * The `Contact` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Contact contacts = 1; + */ + com.google.ads.admanager.v1.ContactOrBuilder getContactsOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `Contact` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesRequest.java new file mode 100644 index 000000000000..1cfbe05bf300 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListContentBundles` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentBundlesRequest} + */ +public final class ListContentBundlesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListContentBundlesRequest) + ListContentBundlesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListContentBundlesRequest.newBuilder() to construct. + private ListContentBundlesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContentBundlesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContentBundlesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentBundlesRequest.class, + com.google.ads.admanager.v1.ListContentBundlesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of ContentBundles.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of ContentBundles.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `ContentBundles` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `ContentBundles`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListContentBundles` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContentBundles` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListContentBundles` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContentBundles` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListContentBundlesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListContentBundlesRequest other = + (com.google.ads.admanager.v1.ListContentBundlesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest 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.admanager.v1.ListContentBundlesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest 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.admanager.v1.ListContentBundlesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListContentBundlesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListContentBundles` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentBundlesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListContentBundlesRequest) + com.google.ads.admanager.v1.ListContentBundlesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentBundlesRequest.class, + com.google.ads.admanager.v1.ListContentBundlesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListContentBundlesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentBundlesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListContentBundlesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentBundlesRequest build() { + com.google.ads.admanager.v1.ListContentBundlesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentBundlesRequest buildPartial() { + com.google.ads.admanager.v1.ListContentBundlesRequest result = + new com.google.ads.admanager.v1.ListContentBundlesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListContentBundlesRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListContentBundlesRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListContentBundlesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListContentBundlesRequest other) { + if (other == com.google.ads.admanager.v1.ListContentBundlesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of ContentBundles.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of ContentBundles.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of ContentBundles.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of ContentBundles.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of ContentBundles.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `ContentBundles` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `ContentBundles`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `ContentBundles` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `ContentBundles`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `ContentBundles` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `ContentBundles`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentBundles` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentBundles` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentBundles` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentBundles` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentBundles` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentBundles` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentBundles` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentBundles` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentBundles` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentBundles` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListContentBundlesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListContentBundlesRequest) + private static final com.google.ads.admanager.v1.ListContentBundlesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListContentBundlesRequest(); + } + + public static com.google.ads.admanager.v1.ListContentBundlesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContentBundlesRequest 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.admanager.v1.ListContentBundlesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesRequestOrBuilder.java new file mode 100644 index 000000000000..eba4d446d1e3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListContentBundlesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListContentBundlesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of ContentBundles.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of ContentBundles.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `ContentBundles` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `ContentBundles`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListContentBundles` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContentBundles` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListContentBundles` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContentBundles` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesResponse.java new file mode 100644 index 000000000000..679883de0bdc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesResponse.java @@ -0,0 +1,1302 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListContentBundlesRequest` containing matching
    + * `ContentBundle` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentBundlesResponse} + */ +public final class ListContentBundlesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListContentBundlesResponse) + ListContentBundlesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListContentBundlesResponse.newBuilder() to construct. + private ListContentBundlesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContentBundlesResponse() { + contentBundles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContentBundlesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentBundlesResponse.class, + com.google.ads.admanager.v1.ListContentBundlesResponse.Builder.class); + } + + public static final int CONTENT_BUNDLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List contentBundles_; + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + @java.lang.Override + public java.util.List getContentBundlesList() { + return contentBundles_; + } + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + @java.lang.Override + public java.util.List + getContentBundlesOrBuilderList() { + return contentBundles_; + } + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + @java.lang.Override + public int getContentBundlesCount() { + return contentBundles_.size(); + } + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContentBundle getContentBundles(int index) { + return contentBundles_.get(index); + } + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContentBundleOrBuilder getContentBundlesOrBuilder(int index) { + return contentBundles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `ContentBundle` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < contentBundles_.size(); i++) { + output.writeMessage(1, contentBundles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < contentBundles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contentBundles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListContentBundlesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListContentBundlesResponse other = + (com.google.ads.admanager.v1.ListContentBundlesResponse) obj; + + if (!getContentBundlesList().equals(other.getContentBundlesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getContentBundlesCount() > 0) { + hash = (37 * hash) + CONTENT_BUNDLES_FIELD_NUMBER; + hash = (53 * hash) + getContentBundlesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse 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.admanager.v1.ListContentBundlesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse 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.admanager.v1.ListContentBundlesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListContentBundlesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListContentBundlesRequest` containing matching
    +   * `ContentBundle` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentBundlesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListContentBundlesResponse) + com.google.ads.admanager.v1.ListContentBundlesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentBundlesResponse.class, + com.google.ads.admanager.v1.ListContentBundlesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListContentBundlesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contentBundlesBuilder_ == null) { + contentBundles_ = java.util.Collections.emptyList(); + } else { + contentBundles_ = null; + contentBundlesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContentBundleServiceProto + .internal_static_google_ads_admanager_v1_ListContentBundlesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentBundlesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListContentBundlesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentBundlesResponse build() { + com.google.ads.admanager.v1.ListContentBundlesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentBundlesResponse buildPartial() { + com.google.ads.admanager.v1.ListContentBundlesResponse result = + new com.google.ads.admanager.v1.ListContentBundlesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListContentBundlesResponse result) { + if (contentBundlesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contentBundles_ = java.util.Collections.unmodifiableList(contentBundles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contentBundles_ = contentBundles_; + } else { + result.contentBundles_ = contentBundlesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListContentBundlesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListContentBundlesResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListContentBundlesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListContentBundlesResponse other) { + if (other == com.google.ads.admanager.v1.ListContentBundlesResponse.getDefaultInstance()) + return this; + if (contentBundlesBuilder_ == null) { + if (!other.contentBundles_.isEmpty()) { + if (contentBundles_.isEmpty()) { + contentBundles_ = other.contentBundles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContentBundlesIsMutable(); + contentBundles_.addAll(other.contentBundles_); + } + onChanged(); + } + } else { + if (!other.contentBundles_.isEmpty()) { + if (contentBundlesBuilder_.isEmpty()) { + contentBundlesBuilder_.dispose(); + contentBundlesBuilder_ = null; + contentBundles_ = other.contentBundles_; + bitField0_ = (bitField0_ & ~0x00000001); + contentBundlesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContentBundlesFieldBuilder() + : null; + } else { + contentBundlesBuilder_.addAllMessages(other.contentBundles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.ContentBundle m = + input.readMessage( + com.google.ads.admanager.v1.ContentBundle.parser(), extensionRegistry); + if (contentBundlesBuilder_ == null) { + ensureContentBundlesIsMutable(); + contentBundles_.add(m); + } else { + contentBundlesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 contentBundles_ = + java.util.Collections.emptyList(); + + private void ensureContentBundlesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contentBundles_ = + new java.util.ArrayList(contentBundles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ContentBundle, + com.google.ads.admanager.v1.ContentBundle.Builder, + com.google.ads.admanager.v1.ContentBundleOrBuilder> + contentBundlesBuilder_; + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public java.util.List getContentBundlesList() { + if (contentBundlesBuilder_ == null) { + return java.util.Collections.unmodifiableList(contentBundles_); + } else { + return contentBundlesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public int getContentBundlesCount() { + if (contentBundlesBuilder_ == null) { + return contentBundles_.size(); + } else { + return contentBundlesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public com.google.ads.admanager.v1.ContentBundle getContentBundles(int index) { + if (contentBundlesBuilder_ == null) { + return contentBundles_.get(index); + } else { + return contentBundlesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public Builder setContentBundles(int index, com.google.ads.admanager.v1.ContentBundle value) { + if (contentBundlesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentBundlesIsMutable(); + contentBundles_.set(index, value); + onChanged(); + } else { + contentBundlesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public Builder setContentBundles( + int index, com.google.ads.admanager.v1.ContentBundle.Builder builderForValue) { + if (contentBundlesBuilder_ == null) { + ensureContentBundlesIsMutable(); + contentBundles_.set(index, builderForValue.build()); + onChanged(); + } else { + contentBundlesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public Builder addContentBundles(com.google.ads.admanager.v1.ContentBundle value) { + if (contentBundlesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentBundlesIsMutable(); + contentBundles_.add(value); + onChanged(); + } else { + contentBundlesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public Builder addContentBundles(int index, com.google.ads.admanager.v1.ContentBundle value) { + if (contentBundlesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentBundlesIsMutable(); + contentBundles_.add(index, value); + onChanged(); + } else { + contentBundlesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public Builder addContentBundles( + com.google.ads.admanager.v1.ContentBundle.Builder builderForValue) { + if (contentBundlesBuilder_ == null) { + ensureContentBundlesIsMutable(); + contentBundles_.add(builderForValue.build()); + onChanged(); + } else { + contentBundlesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public Builder addContentBundles( + int index, com.google.ads.admanager.v1.ContentBundle.Builder builderForValue) { + if (contentBundlesBuilder_ == null) { + ensureContentBundlesIsMutable(); + contentBundles_.add(index, builderForValue.build()); + onChanged(); + } else { + contentBundlesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public Builder addAllContentBundles( + java.lang.Iterable values) { + if (contentBundlesBuilder_ == null) { + ensureContentBundlesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contentBundles_); + onChanged(); + } else { + contentBundlesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public Builder clearContentBundles() { + if (contentBundlesBuilder_ == null) { + contentBundles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contentBundlesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public Builder removeContentBundles(int index) { + if (contentBundlesBuilder_ == null) { + ensureContentBundlesIsMutable(); + contentBundles_.remove(index); + onChanged(); + } else { + contentBundlesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public com.google.ads.admanager.v1.ContentBundle.Builder getContentBundlesBuilder(int index) { + return getContentBundlesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public com.google.ads.admanager.v1.ContentBundleOrBuilder getContentBundlesOrBuilder( + int index) { + if (contentBundlesBuilder_ == null) { + return contentBundles_.get(index); + } else { + return contentBundlesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public java.util.List + getContentBundlesOrBuilderList() { + if (contentBundlesBuilder_ != null) { + return contentBundlesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contentBundles_); + } + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public com.google.ads.admanager.v1.ContentBundle.Builder addContentBundlesBuilder() { + return getContentBundlesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ContentBundle.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public com.google.ads.admanager.v1.ContentBundle.Builder addContentBundlesBuilder(int index) { + return getContentBundlesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ContentBundle.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `ContentBundle` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + public java.util.List + getContentBundlesBuilderList() { + return getContentBundlesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ContentBundle, + com.google.ads.admanager.v1.ContentBundle.Builder, + com.google.ads.admanager.v1.ContentBundleOrBuilder> + getContentBundlesFieldBuilder() { + if (contentBundlesBuilder_ == null) { + contentBundlesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ContentBundle, + com.google.ads.admanager.v1.ContentBundle.Builder, + com.google.ads.admanager.v1.ContentBundleOrBuilder>( + contentBundles_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + contentBundles_ = null; + } + return contentBundlesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `ContentBundle` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `ContentBundle` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `ContentBundle` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListContentBundlesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListContentBundlesResponse) + private static final com.google.ads.admanager.v1.ListContentBundlesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListContentBundlesResponse(); + } + + public static com.google.ads.admanager.v1.ListContentBundlesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContentBundlesResponse 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.admanager.v1.ListContentBundlesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesResponseOrBuilder.java new file mode 100644 index 000000000000..75b635114428 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentBundlesResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_bundle_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListContentBundlesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListContentBundlesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + java.util.List getContentBundlesList(); + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + com.google.ads.admanager.v1.ContentBundle getContentBundles(int index); + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + int getContentBundlesCount(); + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + java.util.List + getContentBundlesOrBuilderList(); + + /** + * + * + *
    +   * The `ContentBundle` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentBundle content_bundles = 1; + */ + com.google.ads.admanager.v1.ContentBundleOrBuilder getContentBundlesOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `ContentBundle` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsRequest.java new file mode 100644 index 000000000000..9cdc4af3d342 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsRequest.java @@ -0,0 +1,1484 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListContentLabels` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentLabelsRequest} + */ +public final class ListContentLabelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListContentLabelsRequest) + ListContentLabelsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListContentLabelsRequest.newBuilder() to construct. + private ListContentLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContentLabelsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContentLabelsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentLabelsRequest.class, + com.google.ads.admanager.v1.ListContentLabelsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of ContentLabels.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of ContentLabels.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `ContentLabels` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `ContentLabels`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListContentLabels` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContentLabels` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListContentLabels` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContentLabels` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListContentLabelsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListContentLabelsRequest other = + (com.google.ads.admanager.v1.ListContentLabelsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest 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.admanager.v1.ListContentLabelsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest 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.admanager.v1.ListContentLabelsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListContentLabelsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListContentLabels` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentLabelsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListContentLabelsRequest) + com.google.ads.admanager.v1.ListContentLabelsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentLabelsRequest.class, + com.google.ads.admanager.v1.ListContentLabelsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListContentLabelsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentLabelsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListContentLabelsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentLabelsRequest build() { + com.google.ads.admanager.v1.ListContentLabelsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentLabelsRequest buildPartial() { + com.google.ads.admanager.v1.ListContentLabelsRequest result = + new com.google.ads.admanager.v1.ListContentLabelsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListContentLabelsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListContentLabelsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListContentLabelsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListContentLabelsRequest other) { + if (other == com.google.ads.admanager.v1.ListContentLabelsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of ContentLabels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of ContentLabels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of ContentLabels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of ContentLabels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of ContentLabels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `ContentLabels` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `ContentLabels`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `ContentLabels` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `ContentLabels`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `ContentLabels` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `ContentLabels`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentLabels` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentLabels` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentLabels` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentLabels` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentLabels` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentLabels` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentLabels` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentLabels` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContentLabels` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContentLabels` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListContentLabelsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListContentLabelsRequest) + private static final com.google.ads.admanager.v1.ListContentLabelsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListContentLabelsRequest(); + } + + public static com.google.ads.admanager.v1.ListContentLabelsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContentLabelsRequest 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.admanager.v1.ListContentLabelsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsRequestOrBuilder.java new file mode 100644 index 000000000000..1990404d32ee --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListContentLabelsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListContentLabelsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of ContentLabels.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of ContentLabels.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `ContentLabels` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `ContentLabels`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListContentLabels` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContentLabels` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListContentLabels` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContentLabels` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsResponse.java new file mode 100644 index 000000000000..e2633883d1c7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsResponse.java @@ -0,0 +1,1301 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListContentLabelsRequest` containing matching
    + * `ContentLabel` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentLabelsResponse} + */ +public final class ListContentLabelsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListContentLabelsResponse) + ListContentLabelsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListContentLabelsResponse.newBuilder() to construct. + private ListContentLabelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContentLabelsResponse() { + contentLabels_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContentLabelsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentLabelsResponse.class, + com.google.ads.admanager.v1.ListContentLabelsResponse.Builder.class); + } + + public static final int CONTENT_LABELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List contentLabels_; + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + @java.lang.Override + public java.util.List getContentLabelsList() { + return contentLabels_; + } + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + @java.lang.Override + public java.util.List + getContentLabelsOrBuilderList() { + return contentLabels_; + } + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + @java.lang.Override + public int getContentLabelsCount() { + return contentLabels_.size(); + } + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContentLabel getContentLabels(int index) { + return contentLabels_.get(index); + } + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContentLabelOrBuilder getContentLabelsOrBuilder(int index) { + return contentLabels_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `ContentLabel` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < contentLabels_.size(); i++) { + output.writeMessage(1, contentLabels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < contentLabels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contentLabels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListContentLabelsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListContentLabelsResponse other = + (com.google.ads.admanager.v1.ListContentLabelsResponse) obj; + + if (!getContentLabelsList().equals(other.getContentLabelsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getContentLabelsCount() > 0) { + hash = (37 * hash) + CONTENT_LABELS_FIELD_NUMBER; + hash = (53 * hash) + getContentLabelsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse 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.admanager.v1.ListContentLabelsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse 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.admanager.v1.ListContentLabelsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListContentLabelsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListContentLabelsRequest` containing matching
    +   * `ContentLabel` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentLabelsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListContentLabelsResponse) + com.google.ads.admanager.v1.ListContentLabelsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentLabelsResponse.class, + com.google.ads.admanager.v1.ListContentLabelsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListContentLabelsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contentLabelsBuilder_ == null) { + contentLabels_ = java.util.Collections.emptyList(); + } else { + contentLabels_ = null; + contentLabelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContentLabelServiceProto + .internal_static_google_ads_admanager_v1_ListContentLabelsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentLabelsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListContentLabelsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentLabelsResponse build() { + com.google.ads.admanager.v1.ListContentLabelsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentLabelsResponse buildPartial() { + com.google.ads.admanager.v1.ListContentLabelsResponse result = + new com.google.ads.admanager.v1.ListContentLabelsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListContentLabelsResponse result) { + if (contentLabelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contentLabels_ = java.util.Collections.unmodifiableList(contentLabels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contentLabels_ = contentLabels_; + } else { + result.contentLabels_ = contentLabelsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListContentLabelsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListContentLabelsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListContentLabelsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListContentLabelsResponse other) { + if (other == com.google.ads.admanager.v1.ListContentLabelsResponse.getDefaultInstance()) + return this; + if (contentLabelsBuilder_ == null) { + if (!other.contentLabels_.isEmpty()) { + if (contentLabels_.isEmpty()) { + contentLabels_ = other.contentLabels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContentLabelsIsMutable(); + contentLabels_.addAll(other.contentLabels_); + } + onChanged(); + } + } else { + if (!other.contentLabels_.isEmpty()) { + if (contentLabelsBuilder_.isEmpty()) { + contentLabelsBuilder_.dispose(); + contentLabelsBuilder_ = null; + contentLabels_ = other.contentLabels_; + bitField0_ = (bitField0_ & ~0x00000001); + contentLabelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContentLabelsFieldBuilder() + : null; + } else { + contentLabelsBuilder_.addAllMessages(other.contentLabels_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.ContentLabel m = + input.readMessage( + com.google.ads.admanager.v1.ContentLabel.parser(), extensionRegistry); + if (contentLabelsBuilder_ == null) { + ensureContentLabelsIsMutable(); + contentLabels_.add(m); + } else { + contentLabelsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 contentLabels_ = + java.util.Collections.emptyList(); + + private void ensureContentLabelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contentLabels_ = + new java.util.ArrayList(contentLabels_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ContentLabel, + com.google.ads.admanager.v1.ContentLabel.Builder, + com.google.ads.admanager.v1.ContentLabelOrBuilder> + contentLabelsBuilder_; + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public java.util.List getContentLabelsList() { + if (contentLabelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contentLabels_); + } else { + return contentLabelsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public int getContentLabelsCount() { + if (contentLabelsBuilder_ == null) { + return contentLabels_.size(); + } else { + return contentLabelsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public com.google.ads.admanager.v1.ContentLabel getContentLabels(int index) { + if (contentLabelsBuilder_ == null) { + return contentLabels_.get(index); + } else { + return contentLabelsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public Builder setContentLabels(int index, com.google.ads.admanager.v1.ContentLabel value) { + if (contentLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentLabelsIsMutable(); + contentLabels_.set(index, value); + onChanged(); + } else { + contentLabelsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public Builder setContentLabels( + int index, com.google.ads.admanager.v1.ContentLabel.Builder builderForValue) { + if (contentLabelsBuilder_ == null) { + ensureContentLabelsIsMutable(); + contentLabels_.set(index, builderForValue.build()); + onChanged(); + } else { + contentLabelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public Builder addContentLabels(com.google.ads.admanager.v1.ContentLabel value) { + if (contentLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentLabelsIsMutable(); + contentLabels_.add(value); + onChanged(); + } else { + contentLabelsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public Builder addContentLabels(int index, com.google.ads.admanager.v1.ContentLabel value) { + if (contentLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentLabelsIsMutable(); + contentLabels_.add(index, value); + onChanged(); + } else { + contentLabelsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public Builder addContentLabels( + com.google.ads.admanager.v1.ContentLabel.Builder builderForValue) { + if (contentLabelsBuilder_ == null) { + ensureContentLabelsIsMutable(); + contentLabels_.add(builderForValue.build()); + onChanged(); + } else { + contentLabelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public Builder addContentLabels( + int index, com.google.ads.admanager.v1.ContentLabel.Builder builderForValue) { + if (contentLabelsBuilder_ == null) { + ensureContentLabelsIsMutable(); + contentLabels_.add(index, builderForValue.build()); + onChanged(); + } else { + contentLabelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public Builder addAllContentLabels( + java.lang.Iterable values) { + if (contentLabelsBuilder_ == null) { + ensureContentLabelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contentLabels_); + onChanged(); + } else { + contentLabelsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public Builder clearContentLabels() { + if (contentLabelsBuilder_ == null) { + contentLabels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contentLabelsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public Builder removeContentLabels(int index) { + if (contentLabelsBuilder_ == null) { + ensureContentLabelsIsMutable(); + contentLabels_.remove(index); + onChanged(); + } else { + contentLabelsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public com.google.ads.admanager.v1.ContentLabel.Builder getContentLabelsBuilder(int index) { + return getContentLabelsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public com.google.ads.admanager.v1.ContentLabelOrBuilder getContentLabelsOrBuilder(int index) { + if (contentLabelsBuilder_ == null) { + return contentLabels_.get(index); + } else { + return contentLabelsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public java.util.List + getContentLabelsOrBuilderList() { + if (contentLabelsBuilder_ != null) { + return contentLabelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contentLabels_); + } + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public com.google.ads.admanager.v1.ContentLabel.Builder addContentLabelsBuilder() { + return getContentLabelsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ContentLabel.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public com.google.ads.admanager.v1.ContentLabel.Builder addContentLabelsBuilder(int index) { + return getContentLabelsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ContentLabel.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `ContentLabel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + public java.util.List + getContentLabelsBuilderList() { + return getContentLabelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ContentLabel, + com.google.ads.admanager.v1.ContentLabel.Builder, + com.google.ads.admanager.v1.ContentLabelOrBuilder> + getContentLabelsFieldBuilder() { + if (contentLabelsBuilder_ == null) { + contentLabelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ContentLabel, + com.google.ads.admanager.v1.ContentLabel.Builder, + com.google.ads.admanager.v1.ContentLabelOrBuilder>( + contentLabels_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + contentLabels_ = null; + } + return contentLabelsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `ContentLabel` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `ContentLabel` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `ContentLabel` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListContentLabelsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListContentLabelsResponse) + private static final com.google.ads.admanager.v1.ListContentLabelsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListContentLabelsResponse(); + } + + public static com.google.ads.admanager.v1.ListContentLabelsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContentLabelsResponse 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.admanager.v1.ListContentLabelsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsResponseOrBuilder.java new file mode 100644 index 000000000000..d48a957a29d8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentLabelsResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_label_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListContentLabelsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListContentLabelsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + java.util.List getContentLabelsList(); + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + com.google.ads.admanager.v1.ContentLabel getContentLabels(int index); + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + int getContentLabelsCount(); + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + java.util.List + getContentLabelsOrBuilderList(); + + /** + * + * + *
    +   * The `ContentLabel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.ContentLabel content_labels = 1; + */ + com.google.ads.admanager.v1.ContentLabelOrBuilder getContentLabelsOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `ContentLabel` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentRequest.java new file mode 100644 index 000000000000..9b1fe773578b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentRequest.java @@ -0,0 +1,1483 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListContent` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentRequest} + */ +public final class ListContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListContentRequest) + ListContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListContentRequest.newBuilder() to construct. + private ListContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContentRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentRequest.class, + com.google.ads.admanager.v1.ListContentRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Content.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of Content.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `Content` to return. The service may return
    +   * fewer than this value. If unspecified, at most 50 `Content` will be
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListContent` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContent` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListContent` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContent` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListContentRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListContentRequest other = + (com.google.ads.admanager.v1.ListContentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListContentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentRequest 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.admanager.v1.ListContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentRequest 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.admanager.v1.ListContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListContentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListContent` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListContentRequest) + com.google.ads.admanager.v1.ListContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentRequest.class, + com.google.ads.admanager.v1.ListContentRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListContentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentRequest build() { + com.google.ads.admanager.v1.ListContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentRequest buildPartial() { + com.google.ads.admanager.v1.ListContentRequest result = + new com.google.ads.admanager.v1.ListContentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListContentRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListContentRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListContentRequest other) { + if (other == com.google.ads.admanager.v1.ListContentRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of Content.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Content.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Content.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Content.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Content.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `Content` to return. The service may return
    +     * fewer than this value. If unspecified, at most 50 `Content` will be
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `Content` to return. The service may return
    +     * fewer than this value. If unspecified, at most 50 `Content` will be
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `Content` to return. The service may return
    +     * fewer than this value. If unspecified, at most 50 `Content` will be
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListContent` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContent` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContent` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContent` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContent` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContent` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContent` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContent` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListContent` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListContent` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListContentRequest) + private static final com.google.ads.admanager.v1.ListContentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListContentRequest(); + } + + public static com.google.ads.admanager.v1.ListContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContentRequest 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.admanager.v1.ListContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentRequestOrBuilder.java new file mode 100644 index 000000000000..0528e6468952 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Content.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Content.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `Content` to return. The service may return
    +   * fewer than this value. If unspecified, at most 50 `Content` will be
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListContent` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContent` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListContent` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListContent` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentResponse.java new file mode 100644 index 000000000000..a083fabfcba4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentResponse.java @@ -0,0 +1,1294 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListContentRequest` containing matching `Content`
    + * objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentResponse} + */ +public final class ListContentResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListContentResponse) + ListContentResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListContentResponse.newBuilder() to construct. + private ListContentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContentResponse() { + content_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContentResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentResponse.class, + com.google.ads.admanager.v1.ListContentResponse.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List content_; + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + @java.lang.Override + public java.util.List getContentList() { + return content_; + } + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + @java.lang.Override + public java.util.List + getContentOrBuilderList() { + return content_; + } + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + @java.lang.Override + public int getContentCount() { + return content_.size(); + } + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Content getContent(int index) { + return content_.get(index); + } + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContentOrBuilder getContentOrBuilder(int index) { + return content_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `Content` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < content_.size(); i++) { + output.writeMessage(1, content_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < content_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, content_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListContentResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListContentResponse other = + (com.google.ads.admanager.v1.ListContentResponse) obj; + + if (!getContentList().equals(other.getContentList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getContentCount() > 0) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContentList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListContentResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentResponse 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.admanager.v1.ListContentResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentResponse 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.admanager.v1.ListContentResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListContentResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListContentResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListContentResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListContentResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListContentRequest` containing matching `Content`
    +   * objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListContentResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListContentResponse) + com.google.ads.admanager.v1.ListContentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListContentResponse.class, + com.google.ads.admanager.v1.ListContentResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListContentResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contentBuilder_ == null) { + content_ = java.util.Collections.emptyList(); + } else { + content_ = null; + contentBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContentServiceProto + .internal_static_google_ads_admanager_v1_ListContentResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListContentResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentResponse build() { + com.google.ads.admanager.v1.ListContentResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListContentResponse buildPartial() { + com.google.ads.admanager.v1.ListContentResponse result = + new com.google.ads.admanager.v1.ListContentResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListContentResponse result) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + content_ = java.util.Collections.unmodifiableList(content_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.content_ = content_; + } else { + result.content_ = contentBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListContentResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListContentResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListContentResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListContentResponse other) { + if (other == com.google.ads.admanager.v1.ListContentResponse.getDefaultInstance()) + return this; + if (contentBuilder_ == null) { + if (!other.content_.isEmpty()) { + if (content_.isEmpty()) { + content_ = other.content_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContentIsMutable(); + content_.addAll(other.content_); + } + onChanged(); + } + } else { + if (!other.content_.isEmpty()) { + if (contentBuilder_.isEmpty()) { + contentBuilder_.dispose(); + contentBuilder_ = null; + content_ = other.content_; + bitField0_ = (bitField0_ & ~0x00000001); + contentBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContentFieldBuilder() + : null; + } else { + contentBuilder_.addAllMessages(other.content_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.Content m = + input.readMessage( + com.google.ads.admanager.v1.Content.parser(), extensionRegistry); + if (contentBuilder_ == null) { + ensureContentIsMutable(); + content_.add(m); + } else { + contentBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 content_ = + java.util.Collections.emptyList(); + + private void ensureContentIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + content_ = new java.util.ArrayList(content_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Content, + com.google.ads.admanager.v1.Content.Builder, + com.google.ads.admanager.v1.ContentOrBuilder> + contentBuilder_; + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public java.util.List getContentList() { + if (contentBuilder_ == null) { + return java.util.Collections.unmodifiableList(content_); + } else { + return contentBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public int getContentCount() { + if (contentBuilder_ == null) { + return content_.size(); + } else { + return contentBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public com.google.ads.admanager.v1.Content getContent(int index) { + if (contentBuilder_ == null) { + return content_.get(index); + } else { + return contentBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public Builder setContent(int index, com.google.ads.admanager.v1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentIsMutable(); + content_.set(index, value); + onChanged(); + } else { + contentBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public Builder setContent( + int index, com.google.ads.admanager.v1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + ensureContentIsMutable(); + content_.set(index, builderForValue.build()); + onChanged(); + } else { + contentBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public Builder addContent(com.google.ads.admanager.v1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentIsMutable(); + content_.add(value); + onChanged(); + } else { + contentBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public Builder addContent(int index, com.google.ads.admanager.v1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentIsMutable(); + content_.add(index, value); + onChanged(); + } else { + contentBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public Builder addContent(com.google.ads.admanager.v1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + ensureContentIsMutable(); + content_.add(builderForValue.build()); + onChanged(); + } else { + contentBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public Builder addContent( + int index, com.google.ads.admanager.v1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + ensureContentIsMutable(); + content_.add(index, builderForValue.build()); + onChanged(); + } else { + contentBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public Builder addAllContent( + java.lang.Iterable values) { + if (contentBuilder_ == null) { + ensureContentIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, content_); + onChanged(); + } else { + contentBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public Builder clearContent() { + if (contentBuilder_ == null) { + content_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contentBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public Builder removeContent(int index) { + if (contentBuilder_ == null) { + ensureContentIsMutable(); + content_.remove(index); + onChanged(); + } else { + contentBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public com.google.ads.admanager.v1.Content.Builder getContentBuilder(int index) { + return getContentFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public com.google.ads.admanager.v1.ContentOrBuilder getContentOrBuilder(int index) { + if (contentBuilder_ == null) { + return content_.get(index); + } else { + return contentBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public java.util.List + getContentOrBuilderList() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(content_); + } + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public com.google.ads.admanager.v1.Content.Builder addContentBuilder() { + return getContentFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Content.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public com.google.ads.admanager.v1.Content.Builder addContentBuilder(int index) { + return getContentFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Content.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Content` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + public java.util.List getContentBuilderList() { + return getContentFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Content, + com.google.ads.admanager.v1.Content.Builder, + com.google.ads.admanager.v1.ContentOrBuilder> + getContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Content, + com.google.ads.admanager.v1.Content.Builder, + com.google.ads.admanager.v1.ContentOrBuilder>( + content_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `Content` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `Content` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `Content` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListContentResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListContentResponse) + private static final com.google.ads.admanager.v1.ListContentResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListContentResponse(); + } + + public static com.google.ads.admanager.v1.ListContentResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContentResponse 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.admanager.v1.ListContentResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentResponseOrBuilder.java new file mode 100644 index 000000000000..a72a5a38e547 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListContentResponseOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/content_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListContentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListContentResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + java.util.List getContentList(); + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + com.google.ads.admanager.v1.Content getContent(int index); + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + int getContentCount(); + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + java.util.List getContentOrBuilderList(); + + /** + * + * + *
    +   * The `Content` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Content content = 1; + */ + com.google.ads.admanager.v1.ContentOrBuilder getContentOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `Content` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesRequest.java new file mode 100644 index 000000000000..d68a96ea3edc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListCreativeTemplates` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCreativeTemplatesRequest} + */ +public final class ListCreativeTemplatesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListCreativeTemplatesRequest) + ListCreativeTemplatesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListCreativeTemplatesRequest.newBuilder() to construct. + private ListCreativeTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCreativeTemplatesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCreativeTemplatesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCreativeTemplatesRequest.class, + com.google.ads.admanager.v1.ListCreativeTemplatesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of CreativeTemplates.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of CreativeTemplates.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `CreativeTemplates` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `CreativeTemplates` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListCreativeTemplates`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCreativeTemplates`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListCreativeTemplates`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCreativeTemplates`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListCreativeTemplatesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListCreativeTemplatesRequest other = + (com.google.ads.admanager.v1.ListCreativeTemplatesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest 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.admanager.v1.ListCreativeTemplatesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest 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.admanager.v1.ListCreativeTemplatesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListCreativeTemplatesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListCreativeTemplates` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCreativeTemplatesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListCreativeTemplatesRequest) + com.google.ads.admanager.v1.ListCreativeTemplatesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCreativeTemplatesRequest.class, + com.google.ads.admanager.v1.ListCreativeTemplatesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListCreativeTemplatesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCreativeTemplatesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListCreativeTemplatesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCreativeTemplatesRequest build() { + com.google.ads.admanager.v1.ListCreativeTemplatesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCreativeTemplatesRequest buildPartial() { + com.google.ads.admanager.v1.ListCreativeTemplatesRequest result = + new com.google.ads.admanager.v1.ListCreativeTemplatesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListCreativeTemplatesRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListCreativeTemplatesRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListCreativeTemplatesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListCreativeTemplatesRequest other) { + if (other == com.google.ads.admanager.v1.ListCreativeTemplatesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of CreativeTemplates.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CreativeTemplates.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CreativeTemplates.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CreativeTemplates.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of CreativeTemplates.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `CreativeTemplates` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `CreativeTemplates` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `CreativeTemplates` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `CreativeTemplates` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `CreativeTemplates` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `CreativeTemplates` will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListCreativeTemplates`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCreativeTemplates`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCreativeTemplates`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCreativeTemplates`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCreativeTemplates`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCreativeTemplates`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCreativeTemplates`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCreativeTemplates`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListCreativeTemplates`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListCreativeTemplates`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListCreativeTemplatesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListCreativeTemplatesRequest) + private static final com.google.ads.admanager.v1.ListCreativeTemplatesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListCreativeTemplatesRequest(); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCreativeTemplatesRequest 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.admanager.v1.ListCreativeTemplatesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesRequestOrBuilder.java new file mode 100644 index 000000000000..2db60a6b7437 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListCreativeTemplatesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListCreativeTemplatesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of CreativeTemplates.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of CreativeTemplates.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `CreativeTemplates` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `CreativeTemplates` will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListCreativeTemplates`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCreativeTemplates`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListCreativeTemplates`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListCreativeTemplates`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesResponse.java new file mode 100644 index 000000000000..c62308b95c4c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesResponse.java @@ -0,0 +1,1309 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListCreativeTemplatesRequest` containing matching
    + * `CreativeTemplate` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCreativeTemplatesResponse} + */ +public final class ListCreativeTemplatesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListCreativeTemplatesResponse) + ListCreativeTemplatesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListCreativeTemplatesResponse.newBuilder() to construct. + private ListCreativeTemplatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCreativeTemplatesResponse() { + creativeTemplates_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCreativeTemplatesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCreativeTemplatesResponse.class, + com.google.ads.admanager.v1.ListCreativeTemplatesResponse.Builder.class); + } + + public static final int CREATIVE_TEMPLATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List creativeTemplates_; + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + @java.lang.Override + public java.util.List getCreativeTemplatesList() { + return creativeTemplates_; + } + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + @java.lang.Override + public java.util.List + getCreativeTemplatesOrBuilderList() { + return creativeTemplates_; + } + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + @java.lang.Override + public int getCreativeTemplatesCount() { + return creativeTemplates_.size(); + } + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplate getCreativeTemplates(int index) { + return creativeTemplates_.get(index); + } + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreativeTemplateOrBuilder getCreativeTemplatesOrBuilder( + int index) { + return creativeTemplates_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `CreativeTemplate` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < creativeTemplates_.size(); i++) { + output.writeMessage(1, creativeTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < creativeTemplates_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, creativeTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListCreativeTemplatesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListCreativeTemplatesResponse other = + (com.google.ads.admanager.v1.ListCreativeTemplatesResponse) obj; + + if (!getCreativeTemplatesList().equals(other.getCreativeTemplatesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getCreativeTemplatesCount() > 0) { + hash = (37 * hash) + CREATIVE_TEMPLATES_FIELD_NUMBER; + hash = (53 * hash) + getCreativeTemplatesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse 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.admanager.v1.ListCreativeTemplatesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse 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.admanager.v1.ListCreativeTemplatesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListCreativeTemplatesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListCreativeTemplatesRequest` containing matching
    +   * `CreativeTemplate` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListCreativeTemplatesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListCreativeTemplatesResponse) + com.google.ads.admanager.v1.ListCreativeTemplatesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListCreativeTemplatesResponse.class, + com.google.ads.admanager.v1.ListCreativeTemplatesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListCreativeTemplatesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (creativeTemplatesBuilder_ == null) { + creativeTemplates_ = java.util.Collections.emptyList(); + } else { + creativeTemplates_ = null; + creativeTemplatesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CreativeTemplateServiceProto + .internal_static_google_ads_admanager_v1_ListCreativeTemplatesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCreativeTemplatesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListCreativeTemplatesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCreativeTemplatesResponse build() { + com.google.ads.admanager.v1.ListCreativeTemplatesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListCreativeTemplatesResponse buildPartial() { + com.google.ads.admanager.v1.ListCreativeTemplatesResponse result = + new com.google.ads.admanager.v1.ListCreativeTemplatesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListCreativeTemplatesResponse result) { + if (creativeTemplatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + creativeTemplates_ = java.util.Collections.unmodifiableList(creativeTemplates_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.creativeTemplates_ = creativeTemplates_; + } else { + result.creativeTemplates_ = creativeTemplatesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListCreativeTemplatesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListCreativeTemplatesResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListCreativeTemplatesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListCreativeTemplatesResponse other) { + if (other == com.google.ads.admanager.v1.ListCreativeTemplatesResponse.getDefaultInstance()) + return this; + if (creativeTemplatesBuilder_ == null) { + if (!other.creativeTemplates_.isEmpty()) { + if (creativeTemplates_.isEmpty()) { + creativeTemplates_ = other.creativeTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCreativeTemplatesIsMutable(); + creativeTemplates_.addAll(other.creativeTemplates_); + } + onChanged(); + } + } else { + if (!other.creativeTemplates_.isEmpty()) { + if (creativeTemplatesBuilder_.isEmpty()) { + creativeTemplatesBuilder_.dispose(); + creativeTemplatesBuilder_ = null; + creativeTemplates_ = other.creativeTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + creativeTemplatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCreativeTemplatesFieldBuilder() + : null; + } else { + creativeTemplatesBuilder_.addAllMessages(other.creativeTemplates_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.CreativeTemplate m = + input.readMessage( + com.google.ads.admanager.v1.CreativeTemplate.parser(), extensionRegistry); + if (creativeTemplatesBuilder_ == null) { + ensureCreativeTemplatesIsMutable(); + creativeTemplates_.add(m); + } else { + creativeTemplatesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 creativeTemplates_ = + java.util.Collections.emptyList(); + + private void ensureCreativeTemplatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + creativeTemplates_ = + new java.util.ArrayList( + creativeTemplates_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplate, + com.google.ads.admanager.v1.CreativeTemplate.Builder, + com.google.ads.admanager.v1.CreativeTemplateOrBuilder> + creativeTemplatesBuilder_; + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public java.util.List getCreativeTemplatesList() { + if (creativeTemplatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(creativeTemplates_); + } else { + return creativeTemplatesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public int getCreativeTemplatesCount() { + if (creativeTemplatesBuilder_ == null) { + return creativeTemplates_.size(); + } else { + return creativeTemplatesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public com.google.ads.admanager.v1.CreativeTemplate getCreativeTemplates(int index) { + if (creativeTemplatesBuilder_ == null) { + return creativeTemplates_.get(index); + } else { + return creativeTemplatesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public Builder setCreativeTemplates( + int index, com.google.ads.admanager.v1.CreativeTemplate value) { + if (creativeTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCreativeTemplatesIsMutable(); + creativeTemplates_.set(index, value); + onChanged(); + } else { + creativeTemplatesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public Builder setCreativeTemplates( + int index, com.google.ads.admanager.v1.CreativeTemplate.Builder builderForValue) { + if (creativeTemplatesBuilder_ == null) { + ensureCreativeTemplatesIsMutable(); + creativeTemplates_.set(index, builderForValue.build()); + onChanged(); + } else { + creativeTemplatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public Builder addCreativeTemplates(com.google.ads.admanager.v1.CreativeTemplate value) { + if (creativeTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCreativeTemplatesIsMutable(); + creativeTemplates_.add(value); + onChanged(); + } else { + creativeTemplatesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public Builder addCreativeTemplates( + int index, com.google.ads.admanager.v1.CreativeTemplate value) { + if (creativeTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCreativeTemplatesIsMutable(); + creativeTemplates_.add(index, value); + onChanged(); + } else { + creativeTemplatesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public Builder addCreativeTemplates( + com.google.ads.admanager.v1.CreativeTemplate.Builder builderForValue) { + if (creativeTemplatesBuilder_ == null) { + ensureCreativeTemplatesIsMutable(); + creativeTemplates_.add(builderForValue.build()); + onChanged(); + } else { + creativeTemplatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public Builder addCreativeTemplates( + int index, com.google.ads.admanager.v1.CreativeTemplate.Builder builderForValue) { + if (creativeTemplatesBuilder_ == null) { + ensureCreativeTemplatesIsMutable(); + creativeTemplates_.add(index, builderForValue.build()); + onChanged(); + } else { + creativeTemplatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public Builder addAllCreativeTemplates( + java.lang.Iterable values) { + if (creativeTemplatesBuilder_ == null) { + ensureCreativeTemplatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creativeTemplates_); + onChanged(); + } else { + creativeTemplatesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public Builder clearCreativeTemplates() { + if (creativeTemplatesBuilder_ == null) { + creativeTemplates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + creativeTemplatesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public Builder removeCreativeTemplates(int index) { + if (creativeTemplatesBuilder_ == null) { + ensureCreativeTemplatesIsMutable(); + creativeTemplates_.remove(index); + onChanged(); + } else { + creativeTemplatesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public com.google.ads.admanager.v1.CreativeTemplate.Builder getCreativeTemplatesBuilder( + int index) { + return getCreativeTemplatesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public com.google.ads.admanager.v1.CreativeTemplateOrBuilder getCreativeTemplatesOrBuilder( + int index) { + if (creativeTemplatesBuilder_ == null) { + return creativeTemplates_.get(index); + } else { + return creativeTemplatesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public java.util.List + getCreativeTemplatesOrBuilderList() { + if (creativeTemplatesBuilder_ != null) { + return creativeTemplatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(creativeTemplates_); + } + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public com.google.ads.admanager.v1.CreativeTemplate.Builder addCreativeTemplatesBuilder() { + return getCreativeTemplatesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CreativeTemplate.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public com.google.ads.admanager.v1.CreativeTemplate.Builder addCreativeTemplatesBuilder( + int index) { + return getCreativeTemplatesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CreativeTemplate.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `CreativeTemplate` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + public java.util.List + getCreativeTemplatesBuilderList() { + return getCreativeTemplatesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplate, + com.google.ads.admanager.v1.CreativeTemplate.Builder, + com.google.ads.admanager.v1.CreativeTemplateOrBuilder> + getCreativeTemplatesFieldBuilder() { + if (creativeTemplatesBuilder_ == null) { + creativeTemplatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreativeTemplate, + com.google.ads.admanager.v1.CreativeTemplate.Builder, + com.google.ads.admanager.v1.CreativeTemplateOrBuilder>( + creativeTemplates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + creativeTemplates_ = null; + } + return creativeTemplatesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `CreativeTemplate` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `CreativeTemplate` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `CreativeTemplate` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListCreativeTemplatesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListCreativeTemplatesResponse) + private static final com.google.ads.admanager.v1.ListCreativeTemplatesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListCreativeTemplatesResponse(); + } + + public static com.google.ads.admanager.v1.ListCreativeTemplatesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCreativeTemplatesResponse 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.admanager.v1.ListCreativeTemplatesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesResponseOrBuilder.java new file mode 100644 index 000000000000..31bff42c1aff --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCreativeTemplatesResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/creative_template_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListCreativeTemplatesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListCreativeTemplatesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + java.util.List getCreativeTemplatesList(); + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + com.google.ads.admanager.v1.CreativeTemplate getCreativeTemplates(int index); + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + int getCreativeTemplatesCount(); + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + java.util.List + getCreativeTemplatesOrBuilderList(); + + /** + * + * + *
    +   * The `CreativeTemplate` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.CreativeTemplate creative_templates = 1; + */ + com.google.ads.admanager.v1.CreativeTemplateOrBuilder getCreativeTemplatesOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `CreativeTemplate` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsRequest.java index 30cf996db835..b7650df4bfc2 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of `CustomFields` to return. The service may
        * return fewer than this value. If unspecified, at most 50 `CustomFields`
    -   * will be returned. The maximum value is 1000; values above 1000 will be
    -   * coerced to 1000.
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -935,8 +935,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of `CustomFields` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `CustomFields`
    -     * will be returned. The maximum value is 1000; values above 1000 will be
    -     * coerced to 1000.
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -954,8 +954,8 @@ public int getPageSize() { *
          * Optional. The maximum number of `CustomFields` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `CustomFields`
    -     * will be returned. The maximum value is 1000; values above 1000 will be
    -     * coerced to 1000.
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -977,8 +977,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of `CustomFields` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `CustomFields`
    -     * will be returned. The maximum value is 1000; values above 1000 will be
    -     * coerced to 1000.
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsRequestOrBuilder.java index 2f5293bd0801..001a6b2a023e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListCustomFieldsRequestOrBuilder *
        * Optional. The maximum number of `CustomFields` to return. The service may
        * return fewer than this value. If unspecified, at most 50 `CustomFields`
    -   * will be returned. The maximum value is 1000; values above 1000 will be
    -   * coerced to 1000.
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsResponse.java index ee30dd532bb7..9390c866ef89 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsResponse.java @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1158,7 +1158,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1184,7 +1184,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1214,7 +1214,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsResponseOrBuilder.java index 1c6bee43a44e..674e8b87fb59 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomFieldsResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListCustomFieldsResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingKeysResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingKeysResponse.java index 090ced2195c4..d55e11403793 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingKeysResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingKeysResponse.java @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1173,7 +1173,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1199,7 +1199,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1229,7 +1229,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingKeysResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingKeysResponseOrBuilder.java index a15f243e0ac8..d9106c6bc393 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingKeysResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingKeysResponseOrBuilder.java @@ -117,7 +117,7 @@ com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeysOr * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesResponse.java index 997fd9adecc6..ebd990baa8ee 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesResponse.java @@ -216,7 +216,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1203,7 +1203,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1229,7 +1229,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1259,7 +1259,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesResponseOrBuilder.java index 3de2c690d351..bf43a3f41cb6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesResponseOrBuilder.java @@ -122,7 +122,7 @@ com.google.ads.admanager.v1.CustomTargetingValueOrBuilder getCustomTargetingValu * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesRequest.java new file mode 100644 index 000000000000..00be54d99b85 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListDeviceCapabilities` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceCapabilitiesRequest} + */ +public final class ListDeviceCapabilitiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListDeviceCapabilitiesRequest) + ListDeviceCapabilitiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDeviceCapabilitiesRequest.newBuilder() to construct. + private ListDeviceCapabilitiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeviceCapabilitiesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeviceCapabilitiesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest.class, + com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of DeviceCapabilities.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of DeviceCapabilities.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `DeviceCapabilities` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `DeviceCapabilities` will be returned. The maximum value is 1000; values
    +   * above 1000 will be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListDeviceCapabilities`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListDeviceCapabilities`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListDeviceCapabilities`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListDeviceCapabilities`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListDeviceCapabilitiesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest other = + (com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest 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.admanager.v1.ListDeviceCapabilitiesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest 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.admanager.v1.ListDeviceCapabilitiesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListDeviceCapabilities` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceCapabilitiesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListDeviceCapabilitiesRequest) + com.google.ads.admanager.v1.ListDeviceCapabilitiesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest.class, + com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest build() { + com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest buildPartial() { + com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest result = + new com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest other) { + if (other == com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of DeviceCapabilities.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of DeviceCapabilities.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of DeviceCapabilities.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of DeviceCapabilities.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of DeviceCapabilities.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `DeviceCapabilities` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `DeviceCapabilities` will be returned. The maximum value is 1000; values
    +     * above 1000 will be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `DeviceCapabilities` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `DeviceCapabilities` will be returned. The maximum value is 1000; values
    +     * above 1000 will be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `DeviceCapabilities` to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * `DeviceCapabilities` will be returned. The maximum value is 1000; values
    +     * above 1000 will be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceCapabilities`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceCapabilities`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceCapabilities`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceCapabilities`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceCapabilities`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceCapabilities`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceCapabilities`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceCapabilities`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceCapabilities`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceCapabilities`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListDeviceCapabilitiesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListDeviceCapabilitiesRequest) + private static final com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest(); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceCapabilitiesRequest 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.admanager.v1.ListDeviceCapabilitiesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesRequestOrBuilder.java new file mode 100644 index 000000000000..b751797c9e70 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListDeviceCapabilitiesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListDeviceCapabilitiesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of DeviceCapabilities.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of DeviceCapabilities.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `DeviceCapabilities` to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * `DeviceCapabilities` will be returned. The maximum value is 1000; values
    +   * above 1000 will be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListDeviceCapabilities`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListDeviceCapabilities`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListDeviceCapabilities`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListDeviceCapabilities`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesResponse.java new file mode 100644 index 000000000000..6400939decd6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesResponse.java @@ -0,0 +1,1311 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListDeviceCapabilitiesRequest` containing matching
    + * `DeviceCapability` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceCapabilitiesResponse} + */ +public final class ListDeviceCapabilitiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListDeviceCapabilitiesResponse) + ListDeviceCapabilitiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDeviceCapabilitiesResponse.newBuilder() to construct. + private ListDeviceCapabilitiesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeviceCapabilitiesResponse() { + deviceCapabilities_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeviceCapabilitiesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse.class, + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse.Builder.class); + } + + public static final int DEVICE_CAPABILITIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deviceCapabilities_; + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + @java.lang.Override + public java.util.List getDeviceCapabilitiesList() { + return deviceCapabilities_; + } + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + @java.lang.Override + public java.util.List + getDeviceCapabilitiesOrBuilderList() { + return deviceCapabilities_; + } + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + @java.lang.Override + public int getDeviceCapabilitiesCount() { + return deviceCapabilities_.size(); + } + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapability getDeviceCapabilities(int index) { + return deviceCapabilities_.get(index); + } + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapabilityOrBuilder getDeviceCapabilitiesOrBuilder( + int index) { + return deviceCapabilities_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `DeviceCapability` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < deviceCapabilities_.size(); i++) { + output.writeMessage(1, deviceCapabilities_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deviceCapabilities_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, deviceCapabilities_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListDeviceCapabilitiesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse other = + (com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse) obj; + + if (!getDeviceCapabilitiesList().equals(other.getDeviceCapabilitiesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getDeviceCapabilitiesCount() > 0) { + hash = (37 * hash) + DEVICE_CAPABILITIES_FIELD_NUMBER; + hash = (53 * hash) + getDeviceCapabilitiesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse 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.admanager.v1.ListDeviceCapabilitiesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse 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.admanager.v1.ListDeviceCapabilitiesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListDeviceCapabilitiesRequest` containing matching
    +   * `DeviceCapability` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceCapabilitiesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListDeviceCapabilitiesResponse) + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse.class, + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deviceCapabilitiesBuilder_ == null) { + deviceCapabilities_ = java.util.Collections.emptyList(); + } else { + deviceCapabilities_ = null; + deviceCapabilitiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceCapabilityServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCapabilitiesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse build() { + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse buildPartial() { + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse result = + new com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse result) { + if (deviceCapabilitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deviceCapabilities_ = java.util.Collections.unmodifiableList(deviceCapabilities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deviceCapabilities_ = deviceCapabilities_; + } else { + result.deviceCapabilities_ = deviceCapabilitiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse other) { + if (other == com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse.getDefaultInstance()) + return this; + if (deviceCapabilitiesBuilder_ == null) { + if (!other.deviceCapabilities_.isEmpty()) { + if (deviceCapabilities_.isEmpty()) { + deviceCapabilities_ = other.deviceCapabilities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeviceCapabilitiesIsMutable(); + deviceCapabilities_.addAll(other.deviceCapabilities_); + } + onChanged(); + } + } else { + if (!other.deviceCapabilities_.isEmpty()) { + if (deviceCapabilitiesBuilder_.isEmpty()) { + deviceCapabilitiesBuilder_.dispose(); + deviceCapabilitiesBuilder_ = null; + deviceCapabilities_ = other.deviceCapabilities_; + bitField0_ = (bitField0_ & ~0x00000001); + deviceCapabilitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeviceCapabilitiesFieldBuilder() + : null; + } else { + deviceCapabilitiesBuilder_.addAllMessages(other.deviceCapabilities_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.DeviceCapability m = + input.readMessage( + com.google.ads.admanager.v1.DeviceCapability.parser(), extensionRegistry); + if (deviceCapabilitiesBuilder_ == null) { + ensureDeviceCapabilitiesIsMutable(); + deviceCapabilities_.add(m); + } else { + deviceCapabilitiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 deviceCapabilities_ = + java.util.Collections.emptyList(); + + private void ensureDeviceCapabilitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deviceCapabilities_ = + new java.util.ArrayList( + deviceCapabilities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCapability, + com.google.ads.admanager.v1.DeviceCapability.Builder, + com.google.ads.admanager.v1.DeviceCapabilityOrBuilder> + deviceCapabilitiesBuilder_; + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public java.util.List + getDeviceCapabilitiesList() { + if (deviceCapabilitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(deviceCapabilities_); + } else { + return deviceCapabilitiesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public int getDeviceCapabilitiesCount() { + if (deviceCapabilitiesBuilder_ == null) { + return deviceCapabilities_.size(); + } else { + return deviceCapabilitiesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public com.google.ads.admanager.v1.DeviceCapability getDeviceCapabilities(int index) { + if (deviceCapabilitiesBuilder_ == null) { + return deviceCapabilities_.get(index); + } else { + return deviceCapabilitiesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public Builder setDeviceCapabilities( + int index, com.google.ads.admanager.v1.DeviceCapability value) { + if (deviceCapabilitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceCapabilitiesIsMutable(); + deviceCapabilities_.set(index, value); + onChanged(); + } else { + deviceCapabilitiesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public Builder setDeviceCapabilities( + int index, com.google.ads.admanager.v1.DeviceCapability.Builder builderForValue) { + if (deviceCapabilitiesBuilder_ == null) { + ensureDeviceCapabilitiesIsMutable(); + deviceCapabilities_.set(index, builderForValue.build()); + onChanged(); + } else { + deviceCapabilitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public Builder addDeviceCapabilities(com.google.ads.admanager.v1.DeviceCapability value) { + if (deviceCapabilitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceCapabilitiesIsMutable(); + deviceCapabilities_.add(value); + onChanged(); + } else { + deviceCapabilitiesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public Builder addDeviceCapabilities( + int index, com.google.ads.admanager.v1.DeviceCapability value) { + if (deviceCapabilitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceCapabilitiesIsMutable(); + deviceCapabilities_.add(index, value); + onChanged(); + } else { + deviceCapabilitiesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public Builder addDeviceCapabilities( + com.google.ads.admanager.v1.DeviceCapability.Builder builderForValue) { + if (deviceCapabilitiesBuilder_ == null) { + ensureDeviceCapabilitiesIsMutable(); + deviceCapabilities_.add(builderForValue.build()); + onChanged(); + } else { + deviceCapabilitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public Builder addDeviceCapabilities( + int index, com.google.ads.admanager.v1.DeviceCapability.Builder builderForValue) { + if (deviceCapabilitiesBuilder_ == null) { + ensureDeviceCapabilitiesIsMutable(); + deviceCapabilities_.add(index, builderForValue.build()); + onChanged(); + } else { + deviceCapabilitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public Builder addAllDeviceCapabilities( + java.lang.Iterable values) { + if (deviceCapabilitiesBuilder_ == null) { + ensureDeviceCapabilitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceCapabilities_); + onChanged(); + } else { + deviceCapabilitiesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public Builder clearDeviceCapabilities() { + if (deviceCapabilitiesBuilder_ == null) { + deviceCapabilities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deviceCapabilitiesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public Builder removeDeviceCapabilities(int index) { + if (deviceCapabilitiesBuilder_ == null) { + ensureDeviceCapabilitiesIsMutable(); + deviceCapabilities_.remove(index); + onChanged(); + } else { + deviceCapabilitiesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public com.google.ads.admanager.v1.DeviceCapability.Builder getDeviceCapabilitiesBuilder( + int index) { + return getDeviceCapabilitiesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public com.google.ads.admanager.v1.DeviceCapabilityOrBuilder getDeviceCapabilitiesOrBuilder( + int index) { + if (deviceCapabilitiesBuilder_ == null) { + return deviceCapabilities_.get(index); + } else { + return deviceCapabilitiesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public java.util.List + getDeviceCapabilitiesOrBuilderList() { + if (deviceCapabilitiesBuilder_ != null) { + return deviceCapabilitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deviceCapabilities_); + } + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public com.google.ads.admanager.v1.DeviceCapability.Builder addDeviceCapabilitiesBuilder() { + return getDeviceCapabilitiesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.DeviceCapability.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public com.google.ads.admanager.v1.DeviceCapability.Builder addDeviceCapabilitiesBuilder( + int index) { + return getDeviceCapabilitiesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.DeviceCapability.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `DeviceCapability` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + public java.util.List + getDeviceCapabilitiesBuilderList() { + return getDeviceCapabilitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCapability, + com.google.ads.admanager.v1.DeviceCapability.Builder, + com.google.ads.admanager.v1.DeviceCapabilityOrBuilder> + getDeviceCapabilitiesFieldBuilder() { + if (deviceCapabilitiesBuilder_ == null) { + deviceCapabilitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCapability, + com.google.ads.admanager.v1.DeviceCapability.Builder, + com.google.ads.admanager.v1.DeviceCapabilityOrBuilder>( + deviceCapabilities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deviceCapabilities_ = null; + } + return deviceCapabilitiesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `DeviceCapability` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `DeviceCapability` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `DeviceCapability` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListDeviceCapabilitiesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListDeviceCapabilitiesResponse) + private static final com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse(); + } + + public static com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceCapabilitiesResponse 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.admanager.v1.ListDeviceCapabilitiesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesResponseOrBuilder.java new file mode 100644 index 000000000000..89c86a04e92d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCapabilitiesResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_capability_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListDeviceCapabilitiesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListDeviceCapabilitiesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + java.util.List getDeviceCapabilitiesList(); + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + com.google.ads.admanager.v1.DeviceCapability getDeviceCapabilities(int index); + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + int getDeviceCapabilitiesCount(); + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + java.util.List + getDeviceCapabilitiesOrBuilderList(); + + /** + * + * + *
    +   * The `DeviceCapability` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceCapability device_capabilities = 1; + */ + com.google.ads.admanager.v1.DeviceCapabilityOrBuilder getDeviceCapabilitiesOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `DeviceCapability` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequest.java index 88f313a50ec1..638a2a21b82b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequest.java @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. The maximum number of `DeviceCategories` to return. The service * may return fewer than this value. If unspecified, at most 50 * `DeviceCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -937,7 +937,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. The maximum number of `DeviceCategories` to return. The service * may return fewer than this value. If unspecified, at most 50 * `DeviceCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -956,7 +956,7 @@ public int getPageSize() { * Optional. The maximum number of `DeviceCategories` to return. The service * may return fewer than this value. If unspecified, at most 50 * `DeviceCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -979,7 +979,7 @@ public Builder setPageSize(int value) { * Optional. The maximum number of `DeviceCategories` to return. The service * may return fewer than this value. If unspecified, at most 50 * `DeviceCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequestOrBuilder.java index 7f04402e9682..18eba6012ce3 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequestOrBuilder.java @@ -63,7 +63,7 @@ public interface ListDeviceCategoriesRequestOrBuilder * Optional. The maximum number of `DeviceCategories` to return. The service * may return fewer than this value. If unspecified, at most 50 * `DeviceCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponse.java index ff377ae838fb..4943455fbb00 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponse.java @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1168,7 +1168,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1194,7 +1194,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1224,7 +1224,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponseOrBuilder.java index d7d94e629f94..c0003fc57a5b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListDeviceCategoriesResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersRequest.java new file mode 100644 index 000000000000..05fcc3e0a6e7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersRequest.java @@ -0,0 +1,1486 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListDeviceManufacturers` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceManufacturersRequest} + */ +public final class ListDeviceManufacturersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListDeviceManufacturersRequest) + ListDeviceManufacturersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDeviceManufacturersRequest.newBuilder() to construct. + private ListDeviceManufacturersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeviceManufacturersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeviceManufacturersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceManufacturersRequest.class, + com.google.ads.admanager.v1.ListDeviceManufacturersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of DeviceManufacturers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of DeviceManufacturers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `DeviceManufacturers` to return. The
    +   * service may return fewer than this value. If unspecified, at most 50
    +   * `DeviceManufacturers` will be returned. The maximum value is 1000; values
    +   * above 1000 will be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListDeviceManufacturers`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListDeviceManufacturers`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListDeviceManufacturers`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListDeviceManufacturers`
    +   * must match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListDeviceManufacturersRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListDeviceManufacturersRequest other = + (com.google.ads.admanager.v1.ListDeviceManufacturersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest 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.admanager.v1.ListDeviceManufacturersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest 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.admanager.v1.ListDeviceManufacturersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListDeviceManufacturersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListDeviceManufacturers` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceManufacturersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListDeviceManufacturersRequest) + com.google.ads.admanager.v1.ListDeviceManufacturersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceManufacturersRequest.class, + com.google.ads.admanager.v1.ListDeviceManufacturersRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListDeviceManufacturersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceManufacturersRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListDeviceManufacturersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceManufacturersRequest build() { + com.google.ads.admanager.v1.ListDeviceManufacturersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceManufacturersRequest buildPartial() { + com.google.ads.admanager.v1.ListDeviceManufacturersRequest result = + new com.google.ads.admanager.v1.ListDeviceManufacturersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListDeviceManufacturersRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListDeviceManufacturersRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListDeviceManufacturersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListDeviceManufacturersRequest other) { + if (other == com.google.ads.admanager.v1.ListDeviceManufacturersRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of DeviceManufacturers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of DeviceManufacturers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of DeviceManufacturers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of DeviceManufacturers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of DeviceManufacturers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `DeviceManufacturers` to return. The
    +     * service may return fewer than this value. If unspecified, at most 50
    +     * `DeviceManufacturers` will be returned. The maximum value is 1000; values
    +     * above 1000 will be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `DeviceManufacturers` to return. The
    +     * service may return fewer than this value. If unspecified, at most 50
    +     * `DeviceManufacturers` will be returned. The maximum value is 1000; values
    +     * above 1000 will be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `DeviceManufacturers` to return. The
    +     * service may return fewer than this value. If unspecified, at most 50
    +     * `DeviceManufacturers` will be returned. The maximum value is 1000; values
    +     * above 1000 will be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceManufacturers`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceManufacturers`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceManufacturers`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceManufacturers`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceManufacturers`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceManufacturers`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceManufacturers`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceManufacturers`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDeviceManufacturers`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListDeviceManufacturers`
    +     * must match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListDeviceManufacturersRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListDeviceManufacturersRequest) + private static final com.google.ads.admanager.v1.ListDeviceManufacturersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListDeviceManufacturersRequest(); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceManufacturersRequest 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.admanager.v1.ListDeviceManufacturersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersRequestOrBuilder.java new file mode 100644 index 000000000000..908008df33c4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListDeviceManufacturersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListDeviceManufacturersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of DeviceManufacturers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of DeviceManufacturers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `DeviceManufacturers` to return. The
    +   * service may return fewer than this value. If unspecified, at most 50
    +   * `DeviceManufacturers` will be returned. The maximum value is 1000; values
    +   * above 1000 will be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListDeviceManufacturers`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListDeviceManufacturers`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListDeviceManufacturers`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListDeviceManufacturers`
    +   * must match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersResponse.java new file mode 100644 index 000000000000..fc329ba88e97 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersResponse.java @@ -0,0 +1,1312 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListDeviceManufacturersRequest` containing matching
    + * `DeviceManufacturer` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceManufacturersResponse} + */ +public final class ListDeviceManufacturersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListDeviceManufacturersResponse) + ListDeviceManufacturersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDeviceManufacturersResponse.newBuilder() to construct. + private ListDeviceManufacturersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeviceManufacturersResponse() { + deviceManufacturers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeviceManufacturersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceManufacturersResponse.class, + com.google.ads.admanager.v1.ListDeviceManufacturersResponse.Builder.class); + } + + public static final int DEVICE_MANUFACTURERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deviceManufacturers_; + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + @java.lang.Override + public java.util.List + getDeviceManufacturersList() { + return deviceManufacturers_; + } + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + @java.lang.Override + public java.util.List + getDeviceManufacturersOrBuilderList() { + return deviceManufacturers_; + } + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + @java.lang.Override + public int getDeviceManufacturersCount() { + return deviceManufacturers_.size(); + } + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturer getDeviceManufacturers(int index) { + return deviceManufacturers_.get(index); + } + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturerOrBuilder getDeviceManufacturersOrBuilder( + int index) { + return deviceManufacturers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `DeviceManufacturer` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < deviceManufacturers_.size(); i++) { + output.writeMessage(1, deviceManufacturers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deviceManufacturers_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, deviceManufacturers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListDeviceManufacturersResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListDeviceManufacturersResponse other = + (com.google.ads.admanager.v1.ListDeviceManufacturersResponse) obj; + + if (!getDeviceManufacturersList().equals(other.getDeviceManufacturersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getDeviceManufacturersCount() > 0) { + hash = (37 * hash) + DEVICE_MANUFACTURERS_FIELD_NUMBER; + hash = (53 * hash) + getDeviceManufacturersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse 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.admanager.v1.ListDeviceManufacturersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse 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.admanager.v1.ListDeviceManufacturersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListDeviceManufacturersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListDeviceManufacturersRequest` containing matching
    +   * `DeviceManufacturer` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceManufacturersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListDeviceManufacturersResponse) + com.google.ads.admanager.v1.ListDeviceManufacturersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceManufacturersResponse.class, + com.google.ads.admanager.v1.ListDeviceManufacturersResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListDeviceManufacturersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deviceManufacturersBuilder_ == null) { + deviceManufacturers_ = java.util.Collections.emptyList(); + } else { + deviceManufacturers_ = null; + deviceManufacturersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceManufacturerServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceManufacturersResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceManufacturersResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListDeviceManufacturersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceManufacturersResponse build() { + com.google.ads.admanager.v1.ListDeviceManufacturersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceManufacturersResponse buildPartial() { + com.google.ads.admanager.v1.ListDeviceManufacturersResponse result = + new com.google.ads.admanager.v1.ListDeviceManufacturersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListDeviceManufacturersResponse result) { + if (deviceManufacturersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deviceManufacturers_ = java.util.Collections.unmodifiableList(deviceManufacturers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deviceManufacturers_ = deviceManufacturers_; + } else { + result.deviceManufacturers_ = deviceManufacturersBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListDeviceManufacturersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListDeviceManufacturersResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListDeviceManufacturersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListDeviceManufacturersResponse other) { + if (other == com.google.ads.admanager.v1.ListDeviceManufacturersResponse.getDefaultInstance()) + return this; + if (deviceManufacturersBuilder_ == null) { + if (!other.deviceManufacturers_.isEmpty()) { + if (deviceManufacturers_.isEmpty()) { + deviceManufacturers_ = other.deviceManufacturers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeviceManufacturersIsMutable(); + deviceManufacturers_.addAll(other.deviceManufacturers_); + } + onChanged(); + } + } else { + if (!other.deviceManufacturers_.isEmpty()) { + if (deviceManufacturersBuilder_.isEmpty()) { + deviceManufacturersBuilder_.dispose(); + deviceManufacturersBuilder_ = null; + deviceManufacturers_ = other.deviceManufacturers_; + bitField0_ = (bitField0_ & ~0x00000001); + deviceManufacturersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeviceManufacturersFieldBuilder() + : null; + } else { + deviceManufacturersBuilder_.addAllMessages(other.deviceManufacturers_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.DeviceManufacturer m = + input.readMessage( + com.google.ads.admanager.v1.DeviceManufacturer.parser(), extensionRegistry); + if (deviceManufacturersBuilder_ == null) { + ensureDeviceManufacturersIsMutable(); + deviceManufacturers_.add(m); + } else { + deviceManufacturersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 deviceManufacturers_ = + java.util.Collections.emptyList(); + + private void ensureDeviceManufacturersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deviceManufacturers_ = + new java.util.ArrayList( + deviceManufacturers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DeviceManufacturer, + com.google.ads.admanager.v1.DeviceManufacturer.Builder, + com.google.ads.admanager.v1.DeviceManufacturerOrBuilder> + deviceManufacturersBuilder_; + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public java.util.List + getDeviceManufacturersList() { + if (deviceManufacturersBuilder_ == null) { + return java.util.Collections.unmodifiableList(deviceManufacturers_); + } else { + return deviceManufacturersBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public int getDeviceManufacturersCount() { + if (deviceManufacturersBuilder_ == null) { + return deviceManufacturers_.size(); + } else { + return deviceManufacturersBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public com.google.ads.admanager.v1.DeviceManufacturer getDeviceManufacturers(int index) { + if (deviceManufacturersBuilder_ == null) { + return deviceManufacturers_.get(index); + } else { + return deviceManufacturersBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public Builder setDeviceManufacturers( + int index, com.google.ads.admanager.v1.DeviceManufacturer value) { + if (deviceManufacturersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceManufacturersIsMutable(); + deviceManufacturers_.set(index, value); + onChanged(); + } else { + deviceManufacturersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public Builder setDeviceManufacturers( + int index, com.google.ads.admanager.v1.DeviceManufacturer.Builder builderForValue) { + if (deviceManufacturersBuilder_ == null) { + ensureDeviceManufacturersIsMutable(); + deviceManufacturers_.set(index, builderForValue.build()); + onChanged(); + } else { + deviceManufacturersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public Builder addDeviceManufacturers(com.google.ads.admanager.v1.DeviceManufacturer value) { + if (deviceManufacturersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceManufacturersIsMutable(); + deviceManufacturers_.add(value); + onChanged(); + } else { + deviceManufacturersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public Builder addDeviceManufacturers( + int index, com.google.ads.admanager.v1.DeviceManufacturer value) { + if (deviceManufacturersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceManufacturersIsMutable(); + deviceManufacturers_.add(index, value); + onChanged(); + } else { + deviceManufacturersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public Builder addDeviceManufacturers( + com.google.ads.admanager.v1.DeviceManufacturer.Builder builderForValue) { + if (deviceManufacturersBuilder_ == null) { + ensureDeviceManufacturersIsMutable(); + deviceManufacturers_.add(builderForValue.build()); + onChanged(); + } else { + deviceManufacturersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public Builder addDeviceManufacturers( + int index, com.google.ads.admanager.v1.DeviceManufacturer.Builder builderForValue) { + if (deviceManufacturersBuilder_ == null) { + ensureDeviceManufacturersIsMutable(); + deviceManufacturers_.add(index, builderForValue.build()); + onChanged(); + } else { + deviceManufacturersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public Builder addAllDeviceManufacturers( + java.lang.Iterable values) { + if (deviceManufacturersBuilder_ == null) { + ensureDeviceManufacturersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceManufacturers_); + onChanged(); + } else { + deviceManufacturersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public Builder clearDeviceManufacturers() { + if (deviceManufacturersBuilder_ == null) { + deviceManufacturers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deviceManufacturersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public Builder removeDeviceManufacturers(int index) { + if (deviceManufacturersBuilder_ == null) { + ensureDeviceManufacturersIsMutable(); + deviceManufacturers_.remove(index); + onChanged(); + } else { + deviceManufacturersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public com.google.ads.admanager.v1.DeviceManufacturer.Builder getDeviceManufacturersBuilder( + int index) { + return getDeviceManufacturersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public com.google.ads.admanager.v1.DeviceManufacturerOrBuilder getDeviceManufacturersOrBuilder( + int index) { + if (deviceManufacturersBuilder_ == null) { + return deviceManufacturers_.get(index); + } else { + return deviceManufacturersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public java.util.List + getDeviceManufacturersOrBuilderList() { + if (deviceManufacturersBuilder_ != null) { + return deviceManufacturersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deviceManufacturers_); + } + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public com.google.ads.admanager.v1.DeviceManufacturer.Builder addDeviceManufacturersBuilder() { + return getDeviceManufacturersFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.DeviceManufacturer.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public com.google.ads.admanager.v1.DeviceManufacturer.Builder addDeviceManufacturersBuilder( + int index) { + return getDeviceManufacturersFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.DeviceManufacturer.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `DeviceManufacturer` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + public java.util.List + getDeviceManufacturersBuilderList() { + return getDeviceManufacturersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DeviceManufacturer, + com.google.ads.admanager.v1.DeviceManufacturer.Builder, + com.google.ads.admanager.v1.DeviceManufacturerOrBuilder> + getDeviceManufacturersFieldBuilder() { + if (deviceManufacturersBuilder_ == null) { + deviceManufacturersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DeviceManufacturer, + com.google.ads.admanager.v1.DeviceManufacturer.Builder, + com.google.ads.admanager.v1.DeviceManufacturerOrBuilder>( + deviceManufacturers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deviceManufacturers_ = null; + } + return deviceManufacturersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `DeviceManufacturer` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `DeviceManufacturer` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `DeviceManufacturer` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListDeviceManufacturersResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListDeviceManufacturersResponse) + private static final com.google.ads.admanager.v1.ListDeviceManufacturersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListDeviceManufacturersResponse(); + } + + public static com.google.ads.admanager.v1.ListDeviceManufacturersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceManufacturersResponse 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.admanager.v1.ListDeviceManufacturersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersResponseOrBuilder.java new file mode 100644 index 000000000000..335e9da2d2a5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceManufacturersResponseOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/device_manufacturer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListDeviceManufacturersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListDeviceManufacturersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + java.util.List getDeviceManufacturersList(); + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + com.google.ads.admanager.v1.DeviceManufacturer getDeviceManufacturers(int index); + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + int getDeviceManufacturersCount(); + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + java.util.List + getDeviceManufacturersOrBuilderList(); + + /** + * + * + *
    +   * The `DeviceManufacturer` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.DeviceManufacturer device_manufacturers = 1; + */ + com.google.ads.admanager.v1.DeviceManufacturerOrBuilder getDeviceManufacturersOrBuilder( + int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `DeviceManufacturer` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListEntitySignalsMappingsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListEntitySignalsMappingsResponse.java index 84a6eb0eef66..a35770f1a201 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListEntitySignalsMappingsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListEntitySignalsMappingsResponse.java @@ -216,7 +216,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1203,7 +1203,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1229,7 +1229,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1259,7 +1259,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListEntitySignalsMappingsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListEntitySignalsMappingsResponseOrBuilder.java index 884602dee579..7f52f64b31c1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListEntitySignalsMappingsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListEntitySignalsMappingsResponseOrBuilder.java @@ -122,7 +122,7 @@ com.google.ads.admanager.v1.EntitySignalsMappingOrBuilder getEntitySignalsMappin * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequest.java index fc8b0dfb773e..e674bbed8160 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of `GeoTargets` to return. The service may
        * return fewer than this value. If unspecified, at most 50 `GeoTargets` will
    -   * be returned. The maximum value is 1000; values above 1000 will be coerced
    -   * to 1000.
    +   * be returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -935,8 +935,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of `GeoTargets` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `GeoTargets` will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -954,8 +954,8 @@ public int getPageSize() { *
          * Optional. The maximum number of `GeoTargets` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `GeoTargets` will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -977,8 +977,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of `GeoTargets` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `GeoTargets` will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequestOrBuilder.java index ce273c48e42c..57fd663b85fe 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListGeoTargetsRequestOrBuilder *
        * Optional. The maximum number of `GeoTargets` to return. The service may
        * return fewer than this value. If unspecified, at most 50 `GeoTargets` will
    -   * be returned. The maximum value is 1000; values above 1000 will be coerced
    -   * to 1000.
    +   * be returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponse.java index 5c8e4ff27147..9e7607ece8e6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponse.java @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1156,7 +1156,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1182,7 +1182,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1212,7 +1212,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponseOrBuilder.java index 25b31e8a87fd..fef81c5b058e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListGeoTargetsResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersRequest.java new file mode 100644 index 000000000000..88238443cb88 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListMobileCarriers` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileCarriersRequest} + */ +public final class ListMobileCarriersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListMobileCarriersRequest) + ListMobileCarriersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMobileCarriersRequest.newBuilder() to construct. + private ListMobileCarriersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMobileCarriersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMobileCarriersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileCarriersRequest.class, + com.google.ads.admanager.v1.ListMobileCarriersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of MobileCarriers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of MobileCarriers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `MobileCarriers` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `MobileCarriers`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListMobileCarriers` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMobileCarriers` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListMobileCarriers` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMobileCarriers` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListMobileCarriersRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListMobileCarriersRequest other = + (com.google.ads.admanager.v1.ListMobileCarriersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest 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.admanager.v1.ListMobileCarriersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest 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.admanager.v1.ListMobileCarriersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListMobileCarriersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListMobileCarriers` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileCarriersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListMobileCarriersRequest) + com.google.ads.admanager.v1.ListMobileCarriersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileCarriersRequest.class, + com.google.ads.admanager.v1.ListMobileCarriersRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListMobileCarriersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileCarriersRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListMobileCarriersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileCarriersRequest build() { + com.google.ads.admanager.v1.ListMobileCarriersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileCarriersRequest buildPartial() { + com.google.ads.admanager.v1.ListMobileCarriersRequest result = + new com.google.ads.admanager.v1.ListMobileCarriersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListMobileCarriersRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListMobileCarriersRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListMobileCarriersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListMobileCarriersRequest other) { + if (other == com.google.ads.admanager.v1.ListMobileCarriersRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of MobileCarriers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileCarriers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileCarriers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileCarriers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileCarriers.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `MobileCarriers` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `MobileCarriers`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `MobileCarriers` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `MobileCarriers`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `MobileCarriers` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `MobileCarriers`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileCarriers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileCarriers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileCarriers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileCarriers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileCarriers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileCarriers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileCarriers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileCarriers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileCarriers` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileCarriers` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListMobileCarriersRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListMobileCarriersRequest) + private static final com.google.ads.admanager.v1.ListMobileCarriersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListMobileCarriersRequest(); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMobileCarriersRequest 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.admanager.v1.ListMobileCarriersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersRequestOrBuilder.java new file mode 100644 index 000000000000..62a3463fe5d3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListMobileCarriersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListMobileCarriersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of MobileCarriers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of MobileCarriers.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `MobileCarriers` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `MobileCarriers`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListMobileCarriers` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMobileCarriers` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListMobileCarriers` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMobileCarriers` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersResponse.java new file mode 100644 index 000000000000..069d68b1ce6c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersResponse.java @@ -0,0 +1,1302 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListMobileCarriersRequest` containing matching
    + * `MobileCarrier` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileCarriersResponse} + */ +public final class ListMobileCarriersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListMobileCarriersResponse) + ListMobileCarriersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMobileCarriersResponse.newBuilder() to construct. + private ListMobileCarriersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMobileCarriersResponse() { + mobileCarriers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMobileCarriersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileCarriersResponse.class, + com.google.ads.admanager.v1.ListMobileCarriersResponse.Builder.class); + } + + public static final int MOBILE_CARRIERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mobileCarriers_; + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + @java.lang.Override + public java.util.List getMobileCarriersList() { + return mobileCarriers_; + } + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + @java.lang.Override + public java.util.List + getMobileCarriersOrBuilderList() { + return mobileCarriers_; + } + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + @java.lang.Override + public int getMobileCarriersCount() { + return mobileCarriers_.size(); + } + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrier getMobileCarriers(int index) { + return mobileCarriers_.get(index); + } + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrierOrBuilder getMobileCarriersOrBuilder(int index) { + return mobileCarriers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `MobileCarrier` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < mobileCarriers_.size(); i++) { + output.writeMessage(1, mobileCarriers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mobileCarriers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mobileCarriers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListMobileCarriersResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListMobileCarriersResponse other = + (com.google.ads.admanager.v1.ListMobileCarriersResponse) obj; + + if (!getMobileCarriersList().equals(other.getMobileCarriersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getMobileCarriersCount() > 0) { + hash = (37 * hash) + MOBILE_CARRIERS_FIELD_NUMBER; + hash = (53 * hash) + getMobileCarriersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse 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.admanager.v1.ListMobileCarriersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse 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.admanager.v1.ListMobileCarriersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListMobileCarriersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListMobileCarriersRequest` containing matching
    +   * `MobileCarrier` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileCarriersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListMobileCarriersResponse) + com.google.ads.admanager.v1.ListMobileCarriersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileCarriersResponse.class, + com.google.ads.admanager.v1.ListMobileCarriersResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListMobileCarriersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mobileCarriersBuilder_ == null) { + mobileCarriers_ = java.util.Collections.emptyList(); + } else { + mobileCarriers_ = null; + mobileCarriersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.MobileCarrierServiceProto + .internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileCarriersResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListMobileCarriersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileCarriersResponse build() { + com.google.ads.admanager.v1.ListMobileCarriersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileCarriersResponse buildPartial() { + com.google.ads.admanager.v1.ListMobileCarriersResponse result = + new com.google.ads.admanager.v1.ListMobileCarriersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListMobileCarriersResponse result) { + if (mobileCarriersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mobileCarriers_ = java.util.Collections.unmodifiableList(mobileCarriers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mobileCarriers_ = mobileCarriers_; + } else { + result.mobileCarriers_ = mobileCarriersBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListMobileCarriersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListMobileCarriersResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListMobileCarriersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListMobileCarriersResponse other) { + if (other == com.google.ads.admanager.v1.ListMobileCarriersResponse.getDefaultInstance()) + return this; + if (mobileCarriersBuilder_ == null) { + if (!other.mobileCarriers_.isEmpty()) { + if (mobileCarriers_.isEmpty()) { + mobileCarriers_ = other.mobileCarriers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMobileCarriersIsMutable(); + mobileCarriers_.addAll(other.mobileCarriers_); + } + onChanged(); + } + } else { + if (!other.mobileCarriers_.isEmpty()) { + if (mobileCarriersBuilder_.isEmpty()) { + mobileCarriersBuilder_.dispose(); + mobileCarriersBuilder_ = null; + mobileCarriers_ = other.mobileCarriers_; + bitField0_ = (bitField0_ & ~0x00000001); + mobileCarriersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMobileCarriersFieldBuilder() + : null; + } else { + mobileCarriersBuilder_.addAllMessages(other.mobileCarriers_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.MobileCarrier m = + input.readMessage( + com.google.ads.admanager.v1.MobileCarrier.parser(), extensionRegistry); + if (mobileCarriersBuilder_ == null) { + ensureMobileCarriersIsMutable(); + mobileCarriers_.add(m); + } else { + mobileCarriersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 mobileCarriers_ = + java.util.Collections.emptyList(); + + private void ensureMobileCarriersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mobileCarriers_ = + new java.util.ArrayList(mobileCarriers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.MobileCarrier, + com.google.ads.admanager.v1.MobileCarrier.Builder, + com.google.ads.admanager.v1.MobileCarrierOrBuilder> + mobileCarriersBuilder_; + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public java.util.List getMobileCarriersList() { + if (mobileCarriersBuilder_ == null) { + return java.util.Collections.unmodifiableList(mobileCarriers_); + } else { + return mobileCarriersBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public int getMobileCarriersCount() { + if (mobileCarriersBuilder_ == null) { + return mobileCarriers_.size(); + } else { + return mobileCarriersBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public com.google.ads.admanager.v1.MobileCarrier getMobileCarriers(int index) { + if (mobileCarriersBuilder_ == null) { + return mobileCarriers_.get(index); + } else { + return mobileCarriersBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public Builder setMobileCarriers(int index, com.google.ads.admanager.v1.MobileCarrier value) { + if (mobileCarriersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMobileCarriersIsMutable(); + mobileCarriers_.set(index, value); + onChanged(); + } else { + mobileCarriersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public Builder setMobileCarriers( + int index, com.google.ads.admanager.v1.MobileCarrier.Builder builderForValue) { + if (mobileCarriersBuilder_ == null) { + ensureMobileCarriersIsMutable(); + mobileCarriers_.set(index, builderForValue.build()); + onChanged(); + } else { + mobileCarriersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public Builder addMobileCarriers(com.google.ads.admanager.v1.MobileCarrier value) { + if (mobileCarriersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMobileCarriersIsMutable(); + mobileCarriers_.add(value); + onChanged(); + } else { + mobileCarriersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public Builder addMobileCarriers(int index, com.google.ads.admanager.v1.MobileCarrier value) { + if (mobileCarriersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMobileCarriersIsMutable(); + mobileCarriers_.add(index, value); + onChanged(); + } else { + mobileCarriersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public Builder addMobileCarriers( + com.google.ads.admanager.v1.MobileCarrier.Builder builderForValue) { + if (mobileCarriersBuilder_ == null) { + ensureMobileCarriersIsMutable(); + mobileCarriers_.add(builderForValue.build()); + onChanged(); + } else { + mobileCarriersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public Builder addMobileCarriers( + int index, com.google.ads.admanager.v1.MobileCarrier.Builder builderForValue) { + if (mobileCarriersBuilder_ == null) { + ensureMobileCarriersIsMutable(); + mobileCarriers_.add(index, builderForValue.build()); + onChanged(); + } else { + mobileCarriersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public Builder addAllMobileCarriers( + java.lang.Iterable values) { + if (mobileCarriersBuilder_ == null) { + ensureMobileCarriersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mobileCarriers_); + onChanged(); + } else { + mobileCarriersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public Builder clearMobileCarriers() { + if (mobileCarriersBuilder_ == null) { + mobileCarriers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mobileCarriersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public Builder removeMobileCarriers(int index) { + if (mobileCarriersBuilder_ == null) { + ensureMobileCarriersIsMutable(); + mobileCarriers_.remove(index); + onChanged(); + } else { + mobileCarriersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public com.google.ads.admanager.v1.MobileCarrier.Builder getMobileCarriersBuilder(int index) { + return getMobileCarriersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public com.google.ads.admanager.v1.MobileCarrierOrBuilder getMobileCarriersOrBuilder( + int index) { + if (mobileCarriersBuilder_ == null) { + return mobileCarriers_.get(index); + } else { + return mobileCarriersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public java.util.List + getMobileCarriersOrBuilderList() { + if (mobileCarriersBuilder_ != null) { + return mobileCarriersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mobileCarriers_); + } + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public com.google.ads.admanager.v1.MobileCarrier.Builder addMobileCarriersBuilder() { + return getMobileCarriersFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.MobileCarrier.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public com.google.ads.admanager.v1.MobileCarrier.Builder addMobileCarriersBuilder(int index) { + return getMobileCarriersFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.MobileCarrier.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `MobileCarrier` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + public java.util.List + getMobileCarriersBuilderList() { + return getMobileCarriersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.MobileCarrier, + com.google.ads.admanager.v1.MobileCarrier.Builder, + com.google.ads.admanager.v1.MobileCarrierOrBuilder> + getMobileCarriersFieldBuilder() { + if (mobileCarriersBuilder_ == null) { + mobileCarriersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.MobileCarrier, + com.google.ads.admanager.v1.MobileCarrier.Builder, + com.google.ads.admanager.v1.MobileCarrierOrBuilder>( + mobileCarriers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mobileCarriers_ = null; + } + return mobileCarriersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `MobileCarrier` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `MobileCarrier` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `MobileCarrier` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListMobileCarriersResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListMobileCarriersResponse) + private static final com.google.ads.admanager.v1.ListMobileCarriersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListMobileCarriersResponse(); + } + + public static com.google.ads.admanager.v1.ListMobileCarriersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMobileCarriersResponse 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.admanager.v1.ListMobileCarriersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersResponseOrBuilder.java new file mode 100644 index 000000000000..dcb77177e981 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileCarriersResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListMobileCarriersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListMobileCarriersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + java.util.List getMobileCarriersList(); + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + com.google.ads.admanager.v1.MobileCarrier getMobileCarriers(int index); + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + int getMobileCarriersCount(); + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + java.util.List + getMobileCarriersOrBuilderList(); + + /** + * + * + *
    +   * The `MobileCarrier` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileCarrier mobile_carriers = 1; + */ + com.google.ads.admanager.v1.MobileCarrierOrBuilder getMobileCarriersOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `MobileCarrier` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsRequest.java new file mode 100644 index 000000000000..4b24032738b7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsRequest.java @@ -0,0 +1,1504 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListMobileDeviceSubmodels` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest} + */ +public final class ListMobileDeviceSubmodelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest) + ListMobileDeviceSubmodelsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMobileDeviceSubmodelsRequest.newBuilder() to construct. + private ListMobileDeviceSubmodelsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMobileDeviceSubmodelsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMobileDeviceSubmodelsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest.class, + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of MobileDeviceSubmodels.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of MobileDeviceSubmodels.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `MobileDeviceSubmodels` to return. The
    +   * service may return fewer than this value. If unspecified, at most 50
    +   * `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values
    +   * above 1000 will be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous
    +   * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent
    +   * page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListMobileDeviceSubmodels` must match the call that provided the page
    +   * token.
    +   * 
    + * + * 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. A page token, received from a previous
    +   * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent
    +   * page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListMobileDeviceSubmodels` must match the call that provided the page
    +   * token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListMobileDeviceSubmodelsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest other = + (com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest 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.admanager.v1.ListMobileDeviceSubmodelsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest 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.admanager.v1.ListMobileDeviceSubmodelsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListMobileDeviceSubmodels` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest) + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest.class, + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest build() { + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest buildPartial() { + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest result = + new com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest other) { + if (other + == com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of MobileDeviceSubmodels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileDeviceSubmodels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileDeviceSubmodels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileDeviceSubmodels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileDeviceSubmodels.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `MobileDeviceSubmodels` to return. The
    +     * service may return fewer than this value. If unspecified, at most 50
    +     * `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values
    +     * above 1000 will be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `MobileDeviceSubmodels` to return. The
    +     * service may return fewer than this value. If unspecified, at most 50
    +     * `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values
    +     * above 1000 will be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `MobileDeviceSubmodels` to return. The
    +     * service may return fewer than this value. If unspecified, at most 50
    +     * `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values
    +     * above 1000 will be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous
    +     * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent
    +     * page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListMobileDeviceSubmodels` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. A page token, received from a previous
    +     * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent
    +     * page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListMobileDeviceSubmodels` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. A page token, received from a previous
    +     * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent
    +     * page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListMobileDeviceSubmodels` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. A page token, received from a previous
    +     * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent
    +     * page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListMobileDeviceSubmodels` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. A page token, received from a previous
    +     * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent
    +     * page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListMobileDeviceSubmodels` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest) + private static final com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest(); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMobileDeviceSubmodelsRequest 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.admanager.v1.ListMobileDeviceSubmodelsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsRequestOrBuilder.java new file mode 100644 index 000000000000..88f2eea287a9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsRequestOrBuilder.java @@ -0,0 +1,185 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListMobileDeviceSubmodelsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of MobileDeviceSubmodels.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of MobileDeviceSubmodels.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `MobileDeviceSubmodels` to return. The
    +   * service may return fewer than this value. If unspecified, at most 50
    +   * `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values
    +   * above 1000 will be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous
    +   * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent
    +   * page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListMobileDeviceSubmodels` must match the call that provided the page
    +   * token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous
    +   * `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent
    +   * page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListMobileDeviceSubmodels` must match the call that provided the page
    +   * token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsResponse.java new file mode 100644 index 000000000000..79a19f7fef01 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsResponse.java @@ -0,0 +1,1343 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListMobileDeviceSubmodelsRequest` containing matching
    + * `MobileDeviceSubmodel` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse} + */ +public final class ListMobileDeviceSubmodelsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse) + ListMobileDeviceSubmodelsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMobileDeviceSubmodelsResponse.newBuilder() to construct. + private ListMobileDeviceSubmodelsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMobileDeviceSubmodelsResponse() { + mobileDeviceSubmodels_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMobileDeviceSubmodelsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse.class, + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse.Builder.class); + } + + public static final int MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mobileDeviceSubmodels_; + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + @java.lang.Override + public java.util.List + getMobileDeviceSubmodelsList() { + return mobileDeviceSubmodels_; + } + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + @java.lang.Override + public java.util.List + getMobileDeviceSubmodelsOrBuilderList() { + return mobileDeviceSubmodels_; + } + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + @java.lang.Override + public int getMobileDeviceSubmodelsCount() { + return mobileDeviceSubmodels_.size(); + } + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileDeviceSubmodel getMobileDeviceSubmodels(int index) { + return mobileDeviceSubmodels_.get(index); + } + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileDeviceSubmodelOrBuilder + getMobileDeviceSubmodelsOrBuilder(int index) { + return mobileDeviceSubmodels_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `MobileDeviceSubmodel` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < mobileDeviceSubmodels_.size(); i++) { + output.writeMessage(1, mobileDeviceSubmodels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mobileDeviceSubmodels_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, mobileDeviceSubmodels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListMobileDeviceSubmodelsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse other = + (com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse) obj; + + if (!getMobileDeviceSubmodelsList().equals(other.getMobileDeviceSubmodelsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getMobileDeviceSubmodelsCount() > 0) { + hash = (37 * hash) + MOBILE_DEVICE_SUBMODELS_FIELD_NUMBER; + hash = (53 * hash) + getMobileDeviceSubmodelsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse 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.admanager.v1.ListMobileDeviceSubmodelsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse 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.admanager.v1.ListMobileDeviceSubmodelsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListMobileDeviceSubmodelsRequest` containing matching
    +   * `MobileDeviceSubmodel` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse) + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse.class, + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mobileDeviceSubmodelsBuilder_ == null) { + mobileDeviceSubmodels_ = java.util.Collections.emptyList(); + } else { + mobileDeviceSubmodels_ = null; + mobileDeviceSubmodelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse build() { + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse buildPartial() { + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse result = + new com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse result) { + if (mobileDeviceSubmodelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mobileDeviceSubmodels_ = java.util.Collections.unmodifiableList(mobileDeviceSubmodels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mobileDeviceSubmodels_ = mobileDeviceSubmodels_; + } else { + result.mobileDeviceSubmodels_ = mobileDeviceSubmodelsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse other) { + if (other + == com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse.getDefaultInstance()) + return this; + if (mobileDeviceSubmodelsBuilder_ == null) { + if (!other.mobileDeviceSubmodels_.isEmpty()) { + if (mobileDeviceSubmodels_.isEmpty()) { + mobileDeviceSubmodels_ = other.mobileDeviceSubmodels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMobileDeviceSubmodelsIsMutable(); + mobileDeviceSubmodels_.addAll(other.mobileDeviceSubmodels_); + } + onChanged(); + } + } else { + if (!other.mobileDeviceSubmodels_.isEmpty()) { + if (mobileDeviceSubmodelsBuilder_.isEmpty()) { + mobileDeviceSubmodelsBuilder_.dispose(); + mobileDeviceSubmodelsBuilder_ = null; + mobileDeviceSubmodels_ = other.mobileDeviceSubmodels_; + bitField0_ = (bitField0_ & ~0x00000001); + mobileDeviceSubmodelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMobileDeviceSubmodelsFieldBuilder() + : null; + } else { + mobileDeviceSubmodelsBuilder_.addAllMessages(other.mobileDeviceSubmodels_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.MobileDeviceSubmodel m = + input.readMessage( + com.google.ads.admanager.v1.MobileDeviceSubmodel.parser(), + extensionRegistry); + if (mobileDeviceSubmodelsBuilder_ == null) { + ensureMobileDeviceSubmodelsIsMutable(); + mobileDeviceSubmodels_.add(m); + } else { + mobileDeviceSubmodelsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 + mobileDeviceSubmodels_ = java.util.Collections.emptyList(); + + private void ensureMobileDeviceSubmodelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mobileDeviceSubmodels_ = + new java.util.ArrayList( + mobileDeviceSubmodels_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.MobileDeviceSubmodel, + com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder, + com.google.ads.admanager.v1.MobileDeviceSubmodelOrBuilder> + mobileDeviceSubmodelsBuilder_; + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public java.util.List + getMobileDeviceSubmodelsList() { + if (mobileDeviceSubmodelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mobileDeviceSubmodels_); + } else { + return mobileDeviceSubmodelsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public int getMobileDeviceSubmodelsCount() { + if (mobileDeviceSubmodelsBuilder_ == null) { + return mobileDeviceSubmodels_.size(); + } else { + return mobileDeviceSubmodelsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public com.google.ads.admanager.v1.MobileDeviceSubmodel getMobileDeviceSubmodels(int index) { + if (mobileDeviceSubmodelsBuilder_ == null) { + return mobileDeviceSubmodels_.get(index); + } else { + return mobileDeviceSubmodelsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public Builder setMobileDeviceSubmodels( + int index, com.google.ads.admanager.v1.MobileDeviceSubmodel value) { + if (mobileDeviceSubmodelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMobileDeviceSubmodelsIsMutable(); + mobileDeviceSubmodels_.set(index, value); + onChanged(); + } else { + mobileDeviceSubmodelsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public Builder setMobileDeviceSubmodels( + int index, com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder builderForValue) { + if (mobileDeviceSubmodelsBuilder_ == null) { + ensureMobileDeviceSubmodelsIsMutable(); + mobileDeviceSubmodels_.set(index, builderForValue.build()); + onChanged(); + } else { + mobileDeviceSubmodelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public Builder addMobileDeviceSubmodels( + com.google.ads.admanager.v1.MobileDeviceSubmodel value) { + if (mobileDeviceSubmodelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMobileDeviceSubmodelsIsMutable(); + mobileDeviceSubmodels_.add(value); + onChanged(); + } else { + mobileDeviceSubmodelsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public Builder addMobileDeviceSubmodels( + int index, com.google.ads.admanager.v1.MobileDeviceSubmodel value) { + if (mobileDeviceSubmodelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMobileDeviceSubmodelsIsMutable(); + mobileDeviceSubmodels_.add(index, value); + onChanged(); + } else { + mobileDeviceSubmodelsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public Builder addMobileDeviceSubmodels( + com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder builderForValue) { + if (mobileDeviceSubmodelsBuilder_ == null) { + ensureMobileDeviceSubmodelsIsMutable(); + mobileDeviceSubmodels_.add(builderForValue.build()); + onChanged(); + } else { + mobileDeviceSubmodelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public Builder addMobileDeviceSubmodels( + int index, com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder builderForValue) { + if (mobileDeviceSubmodelsBuilder_ == null) { + ensureMobileDeviceSubmodelsIsMutable(); + mobileDeviceSubmodels_.add(index, builderForValue.build()); + onChanged(); + } else { + mobileDeviceSubmodelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public Builder addAllMobileDeviceSubmodels( + java.lang.Iterable values) { + if (mobileDeviceSubmodelsBuilder_ == null) { + ensureMobileDeviceSubmodelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mobileDeviceSubmodels_); + onChanged(); + } else { + mobileDeviceSubmodelsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public Builder clearMobileDeviceSubmodels() { + if (mobileDeviceSubmodelsBuilder_ == null) { + mobileDeviceSubmodels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mobileDeviceSubmodelsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public Builder removeMobileDeviceSubmodels(int index) { + if (mobileDeviceSubmodelsBuilder_ == null) { + ensureMobileDeviceSubmodelsIsMutable(); + mobileDeviceSubmodels_.remove(index); + onChanged(); + } else { + mobileDeviceSubmodelsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder getMobileDeviceSubmodelsBuilder( + int index) { + return getMobileDeviceSubmodelsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public com.google.ads.admanager.v1.MobileDeviceSubmodelOrBuilder + getMobileDeviceSubmodelsOrBuilder(int index) { + if (mobileDeviceSubmodelsBuilder_ == null) { + return mobileDeviceSubmodels_.get(index); + } else { + return mobileDeviceSubmodelsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public java.util.List + getMobileDeviceSubmodelsOrBuilderList() { + if (mobileDeviceSubmodelsBuilder_ != null) { + return mobileDeviceSubmodelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mobileDeviceSubmodels_); + } + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder + addMobileDeviceSubmodelsBuilder() { + return getMobileDeviceSubmodelsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.MobileDeviceSubmodel.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder addMobileDeviceSubmodelsBuilder( + int index) { + return getMobileDeviceSubmodelsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.MobileDeviceSubmodel.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `MobileDeviceSubmodel` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + public java.util.List + getMobileDeviceSubmodelsBuilderList() { + return getMobileDeviceSubmodelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.MobileDeviceSubmodel, + com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder, + com.google.ads.admanager.v1.MobileDeviceSubmodelOrBuilder> + getMobileDeviceSubmodelsFieldBuilder() { + if (mobileDeviceSubmodelsBuilder_ == null) { + mobileDeviceSubmodelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.MobileDeviceSubmodel, + com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder, + com.google.ads.admanager.v1.MobileDeviceSubmodelOrBuilder>( + mobileDeviceSubmodels_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mobileDeviceSubmodels_ = null; + } + return mobileDeviceSubmodelsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `MobileDeviceSubmodel` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `MobileDeviceSubmodel` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `MobileDeviceSubmodel` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse) + private static final com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse(); + } + + public static com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMobileDeviceSubmodelsResponse 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.admanager.v1.ListMobileDeviceSubmodelsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsResponseOrBuilder.java new file mode 100644 index 000000000000..a9d2028eed09 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDeviceSubmodelsResponseOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListMobileDeviceSubmodelsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + java.util.List getMobileDeviceSubmodelsList(); + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + com.google.ads.admanager.v1.MobileDeviceSubmodel getMobileDeviceSubmodels(int index); + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + int getMobileDeviceSubmodelsCount(); + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + java.util.List + getMobileDeviceSubmodelsOrBuilderList(); + + /** + * + * + *
    +   * The `MobileDeviceSubmodel` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1; + * + */ + com.google.ads.admanager.v1.MobileDeviceSubmodelOrBuilder getMobileDeviceSubmodelsOrBuilder( + int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `MobileDeviceSubmodel` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesRequest.java new file mode 100644 index 000000000000..4ecab0379617 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesRequest.java @@ -0,0 +1,1484 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListMobileDevices` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileDevicesRequest} + */ +public final class ListMobileDevicesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListMobileDevicesRequest) + ListMobileDevicesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMobileDevicesRequest.newBuilder() to construct. + private ListMobileDevicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMobileDevicesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMobileDevicesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileDevicesRequest.class, + com.google.ads.admanager.v1.ListMobileDevicesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of MobileDevices.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of MobileDevices.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `MobileDevices` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `MobileDevices`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListMobileDevices` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMobileDevices` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListMobileDevices` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMobileDevices` must
    +   * match the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListMobileDevicesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListMobileDevicesRequest other = + (com.google.ads.admanager.v1.ListMobileDevicesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest 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.admanager.v1.ListMobileDevicesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest 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.admanager.v1.ListMobileDevicesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListMobileDevicesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListMobileDevices` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileDevicesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListMobileDevicesRequest) + com.google.ads.admanager.v1.ListMobileDevicesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileDevicesRequest.class, + com.google.ads.admanager.v1.ListMobileDevicesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListMobileDevicesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDevicesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListMobileDevicesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDevicesRequest build() { + com.google.ads.admanager.v1.ListMobileDevicesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDevicesRequest buildPartial() { + com.google.ads.admanager.v1.ListMobileDevicesRequest result = + new com.google.ads.admanager.v1.ListMobileDevicesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListMobileDevicesRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListMobileDevicesRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListMobileDevicesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListMobileDevicesRequest other) { + if (other == com.google.ads.admanager.v1.ListMobileDevicesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of MobileDevices.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileDevices.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileDevices.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileDevices.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of MobileDevices.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `MobileDevices` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `MobileDevices`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `MobileDevices` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `MobileDevices`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of `MobileDevices` to return. The service may
    +     * return fewer than this value. If unspecified, at most 50 `MobileDevices`
    +     * will be returned. The maximum value is 1000; values greater than 1000 will
    +     * be coerced to 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileDevices` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileDevices` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileDevices` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileDevices` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileDevices` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileDevices` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileDevices` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileDevices` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListMobileDevices` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListMobileDevices` must
    +     * match the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListMobileDevicesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListMobileDevicesRequest) + private static final com.google.ads.admanager.v1.ListMobileDevicesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListMobileDevicesRequest(); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMobileDevicesRequest 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.admanager.v1.ListMobileDevicesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesRequestOrBuilder.java new file mode 100644 index 000000000000..b58131a24205 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListMobileDevicesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListMobileDevicesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of MobileDevices.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of MobileDevices.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `MobileDevices` to return. The service may
    +   * return fewer than this value. If unspecified, at most 50 `MobileDevices`
    +   * will be returned. The maximum value is 1000; values greater than 1000 will
    +   * be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListMobileDevices` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMobileDevices` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListMobileDevices` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListMobileDevices` must
    +   * match the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesResponse.java new file mode 100644 index 000000000000..86a13817d02a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesResponse.java @@ -0,0 +1,1301 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListMobileDevicesRequest` containing matching
    + * `MobileDevice` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileDevicesResponse} + */ +public final class ListMobileDevicesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListMobileDevicesResponse) + ListMobileDevicesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMobileDevicesResponse.newBuilder() to construct. + private ListMobileDevicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMobileDevicesResponse() { + mobileDevices_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMobileDevicesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileDevicesResponse.class, + com.google.ads.admanager.v1.ListMobileDevicesResponse.Builder.class); + } + + public static final int MOBILE_DEVICES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mobileDevices_; + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + @java.lang.Override + public java.util.List getMobileDevicesList() { + return mobileDevices_; + } + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + @java.lang.Override + public java.util.List + getMobileDevicesOrBuilderList() { + return mobileDevices_; + } + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + @java.lang.Override + public int getMobileDevicesCount() { + return mobileDevices_.size(); + } + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileDevice getMobileDevices(int index) { + return mobileDevices_.get(index); + } + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileDeviceOrBuilder getMobileDevicesOrBuilder(int index) { + return mobileDevices_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `MobileDevice` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < mobileDevices_.size(); i++) { + output.writeMessage(1, mobileDevices_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mobileDevices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mobileDevices_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListMobileDevicesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListMobileDevicesResponse other = + (com.google.ads.admanager.v1.ListMobileDevicesResponse) obj; + + if (!getMobileDevicesList().equals(other.getMobileDevicesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getMobileDevicesCount() > 0) { + hash = (37 * hash) + MOBILE_DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getMobileDevicesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse 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.admanager.v1.ListMobileDevicesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse 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.admanager.v1.ListMobileDevicesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ListMobileDevicesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListMobileDevicesRequest` containing matching
    +   * `MobileDevice` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListMobileDevicesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListMobileDevicesResponse) + com.google.ads.admanager.v1.ListMobileDevicesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListMobileDevicesResponse.class, + com.google.ads.admanager.v1.ListMobileDevicesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListMobileDevicesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mobileDevicesBuilder_ == null) { + mobileDevices_ = java.util.Collections.emptyList(); + } else { + mobileDevices_ = null; + mobileDevicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.MobileDeviceServiceProto + .internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDevicesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListMobileDevicesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDevicesResponse build() { + com.google.ads.admanager.v1.ListMobileDevicesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListMobileDevicesResponse buildPartial() { + com.google.ads.admanager.v1.ListMobileDevicesResponse result = + new com.google.ads.admanager.v1.ListMobileDevicesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListMobileDevicesResponse result) { + if (mobileDevicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mobileDevices_ = java.util.Collections.unmodifiableList(mobileDevices_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mobileDevices_ = mobileDevices_; + } else { + result.mobileDevices_ = mobileDevicesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListMobileDevicesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListMobileDevicesResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListMobileDevicesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListMobileDevicesResponse other) { + if (other == com.google.ads.admanager.v1.ListMobileDevicesResponse.getDefaultInstance()) + return this; + if (mobileDevicesBuilder_ == null) { + if (!other.mobileDevices_.isEmpty()) { + if (mobileDevices_.isEmpty()) { + mobileDevices_ = other.mobileDevices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMobileDevicesIsMutable(); + mobileDevices_.addAll(other.mobileDevices_); + } + onChanged(); + } + } else { + if (!other.mobileDevices_.isEmpty()) { + if (mobileDevicesBuilder_.isEmpty()) { + mobileDevicesBuilder_.dispose(); + mobileDevicesBuilder_ = null; + mobileDevices_ = other.mobileDevices_; + bitField0_ = (bitField0_ & ~0x00000001); + mobileDevicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMobileDevicesFieldBuilder() + : null; + } else { + mobileDevicesBuilder_.addAllMessages(other.mobileDevices_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.MobileDevice m = + input.readMessage( + com.google.ads.admanager.v1.MobileDevice.parser(), extensionRegistry); + if (mobileDevicesBuilder_ == null) { + ensureMobileDevicesIsMutable(); + mobileDevices_.add(m); + } else { + mobileDevicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 mobileDevices_ = + java.util.Collections.emptyList(); + + private void ensureMobileDevicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mobileDevices_ = + new java.util.ArrayList(mobileDevices_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.MobileDevice, + com.google.ads.admanager.v1.MobileDevice.Builder, + com.google.ads.admanager.v1.MobileDeviceOrBuilder> + mobileDevicesBuilder_; + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public java.util.List getMobileDevicesList() { + if (mobileDevicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(mobileDevices_); + } else { + return mobileDevicesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public int getMobileDevicesCount() { + if (mobileDevicesBuilder_ == null) { + return mobileDevices_.size(); + } else { + return mobileDevicesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public com.google.ads.admanager.v1.MobileDevice getMobileDevices(int index) { + if (mobileDevicesBuilder_ == null) { + return mobileDevices_.get(index); + } else { + return mobileDevicesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public Builder setMobileDevices(int index, com.google.ads.admanager.v1.MobileDevice value) { + if (mobileDevicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMobileDevicesIsMutable(); + mobileDevices_.set(index, value); + onChanged(); + } else { + mobileDevicesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public Builder setMobileDevices( + int index, com.google.ads.admanager.v1.MobileDevice.Builder builderForValue) { + if (mobileDevicesBuilder_ == null) { + ensureMobileDevicesIsMutable(); + mobileDevices_.set(index, builderForValue.build()); + onChanged(); + } else { + mobileDevicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public Builder addMobileDevices(com.google.ads.admanager.v1.MobileDevice value) { + if (mobileDevicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMobileDevicesIsMutable(); + mobileDevices_.add(value); + onChanged(); + } else { + mobileDevicesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public Builder addMobileDevices(int index, com.google.ads.admanager.v1.MobileDevice value) { + if (mobileDevicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMobileDevicesIsMutable(); + mobileDevices_.add(index, value); + onChanged(); + } else { + mobileDevicesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public Builder addMobileDevices( + com.google.ads.admanager.v1.MobileDevice.Builder builderForValue) { + if (mobileDevicesBuilder_ == null) { + ensureMobileDevicesIsMutable(); + mobileDevices_.add(builderForValue.build()); + onChanged(); + } else { + mobileDevicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public Builder addMobileDevices( + int index, com.google.ads.admanager.v1.MobileDevice.Builder builderForValue) { + if (mobileDevicesBuilder_ == null) { + ensureMobileDevicesIsMutable(); + mobileDevices_.add(index, builderForValue.build()); + onChanged(); + } else { + mobileDevicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public Builder addAllMobileDevices( + java.lang.Iterable values) { + if (mobileDevicesBuilder_ == null) { + ensureMobileDevicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mobileDevices_); + onChanged(); + } else { + mobileDevicesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public Builder clearMobileDevices() { + if (mobileDevicesBuilder_ == null) { + mobileDevices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mobileDevicesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public Builder removeMobileDevices(int index) { + if (mobileDevicesBuilder_ == null) { + ensureMobileDevicesIsMutable(); + mobileDevices_.remove(index); + onChanged(); + } else { + mobileDevicesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public com.google.ads.admanager.v1.MobileDevice.Builder getMobileDevicesBuilder(int index) { + return getMobileDevicesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public com.google.ads.admanager.v1.MobileDeviceOrBuilder getMobileDevicesOrBuilder(int index) { + if (mobileDevicesBuilder_ == null) { + return mobileDevices_.get(index); + } else { + return mobileDevicesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public java.util.List + getMobileDevicesOrBuilderList() { + if (mobileDevicesBuilder_ != null) { + return mobileDevicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mobileDevices_); + } + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public com.google.ads.admanager.v1.MobileDevice.Builder addMobileDevicesBuilder() { + return getMobileDevicesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.MobileDevice.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public com.google.ads.admanager.v1.MobileDevice.Builder addMobileDevicesBuilder(int index) { + return getMobileDevicesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.MobileDevice.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `MobileDevice` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + public java.util.List + getMobileDevicesBuilderList() { + return getMobileDevicesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.MobileDevice, + com.google.ads.admanager.v1.MobileDevice.Builder, + com.google.ads.admanager.v1.MobileDeviceOrBuilder> + getMobileDevicesFieldBuilder() { + if (mobileDevicesBuilder_ == null) { + mobileDevicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.MobileDevice, + com.google.ads.admanager.v1.MobileDevice.Builder, + com.google.ads.admanager.v1.MobileDeviceOrBuilder>( + mobileDevices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mobileDevices_ = null; + } + return mobileDevicesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `MobileDevice` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `MobileDevice` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `MobileDevice` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListMobileDevicesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListMobileDevicesResponse) + private static final com.google.ads.admanager.v1.ListMobileDevicesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListMobileDevicesResponse(); + } + + public static com.google.ads.admanager.v1.ListMobileDevicesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMobileDevicesResponse 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.admanager.v1.ListMobileDevicesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesResponseOrBuilder.java new file mode 100644 index 000000000000..a92a229a6154 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListMobileDevicesResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListMobileDevicesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListMobileDevicesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + java.util.List getMobileDevicesList(); + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + com.google.ads.admanager.v1.MobileDevice getMobileDevices(int index); + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + int getMobileDevicesCount(); + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + java.util.List + getMobileDevicesOrBuilderList(); + + /** + * + * + *
    +   * The `MobileDevice` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.MobileDevice mobile_devices = 1; + */ + com.google.ads.admanager.v1.MobileDeviceOrBuilder getMobileDevicesOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `MobileDevice` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequest.java index bf3f9e6b0781..d6e596ca716f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. The maximum number of `OperatingSystemVersions` to return. The * service may return fewer than this value. If unspecified, at most 50 * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -945,7 +945,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. The maximum number of `OperatingSystemVersions` to return. The * service may return fewer than this value. If unspecified, at most 50 * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -964,7 +964,7 @@ public int getPageSize() { * Optional. The maximum number of `OperatingSystemVersions` to return. The * service may return fewer than this value. If unspecified, at most 50 * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -987,7 +987,7 @@ public Builder setPageSize(int value) { * Optional. The maximum number of `OperatingSystemVersions` to return. The * service may return fewer than this value. If unspecified, at most 50 * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequestOrBuilder.java index 511f38db01a2..119737ca3737 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequestOrBuilder.java @@ -63,7 +63,7 @@ public interface ListOperatingSystemVersionsRequestOrBuilder * Optional. The maximum number of `OperatingSystemVersions` to return. The * service may return fewer than this value. If unspecified, at most 50 * `OperatingSystemVersions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponse.java index e7fdea1833a6..21a92e60184b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponse.java @@ -218,7 +218,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1210,7 +1210,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1236,7 +1236,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1266,7 +1266,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponseOrBuilder.java index b06ea9e6a08b..c654ad962e31 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponseOrBuilder.java @@ -123,7 +123,7 @@ com.google.ads.admanager.v1.OperatingSystemVersionOrBuilder getOperatingSystemVe * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequest.java index 1c2fec418700..ed0fd12ffe1f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequest.java @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. The maximum number of `OperatingSystems` to return. The service * may return fewer than this value. If unspecified, at most 50 * `OperatingSystems` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -937,7 +937,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. The maximum number of `OperatingSystems` to return. The service * may return fewer than this value. If unspecified, at most 50 * `OperatingSystems` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -956,7 +956,7 @@ public int getPageSize() { * Optional. The maximum number of `OperatingSystems` to return. The service * may return fewer than this value. If unspecified, at most 50 * `OperatingSystems` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -979,7 +979,7 @@ public Builder setPageSize(int value) { * Optional. The maximum number of `OperatingSystems` to return. The service * may return fewer than this value. If unspecified, at most 50 * `OperatingSystems` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequestOrBuilder.java index 780a7b605653..215e94f717e6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequestOrBuilder.java @@ -63,7 +63,7 @@ public interface ListOperatingSystemsRequestOrBuilder * Optional. The maximum number of `OperatingSystems` to return. The service * may return fewer than this value. If unspecified, at most 50 * `OperatingSystems` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. + * greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponse.java index 5bae4e8560f9..30bc05b52439 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponse.java @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1168,7 +1168,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1194,7 +1194,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1224,7 +1224,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponseOrBuilder.java index 953338871459..2a79f2d503ff 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListOperatingSystemsResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersRequest.java index 2a5a77044143..2c7387e1d866 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of `Orders` to return. The service may return
        * fewer than this value. If unspecified, at most 50 `Orders` will be
    -   * returned. The maximum value is 1000; values above 1000 will be coerced to
    -   * 1000.
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -934,8 +934,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of `Orders` to return. The service may return
          * fewer than this value. If unspecified, at most 50 `Orders` will be
    -     * returned. The maximum value is 1000; values above 1000 will be coerced to
    -     * 1000.
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -953,8 +953,8 @@ public int getPageSize() { *
          * Optional. The maximum number of `Orders` to return. The service may return
          * fewer than this value. If unspecified, at most 50 `Orders` will be
    -     * returned. The maximum value is 1000; values above 1000 will be coerced to
    -     * 1000.
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -976,8 +976,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of `Orders` to return. The service may return
          * fewer than this value. If unspecified, at most 50 `Orders` will be
    -     * returned. The maximum value is 1000; values above 1000 will be coerced to
    -     * 1000.
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersRequestOrBuilder.java index b59b85bb11d5..3643cf0ec194 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListOrdersRequestOrBuilder *
        * Optional. The maximum number of `Orders` to return. The service may return
        * fewer than this value. If unspecified, at most 50 `Orders` will be
    -   * returned. The maximum value is 1000; values above 1000 will be coerced to
    -   * 1000.
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersResponse.java index 355dfe9e40ec..e4d7ef71b2db 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersResponse.java @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1151,7 +1151,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1177,7 +1177,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1207,7 +1207,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersResponseOrBuilder.java index c5c04f228c59..2d19c18d42a4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOrdersResponseOrBuilder.java @@ -115,7 +115,7 @@ public interface ListOrdersResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsRequest.java index d84ade6ef9e9..2ffe87d64e7f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of `Placements` to return. The service may
        * return fewer than this value. If unspecified, at most 50 `Placements` will
    -   * be returned. The maximum value is 1000; values above 1000 will be coerced
    -   * to 1000.
    +   * be returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -935,8 +935,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of `Placements` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `Placements` will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -954,8 +954,8 @@ public int getPageSize() { *
          * Optional. The maximum number of `Placements` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `Placements` will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -977,8 +977,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of `Placements` to return. The service may
          * return fewer than this value. If unspecified, at most 50 `Placements` will
    -     * be returned. The maximum value is 1000; values above 1000 will be coerced
    -     * to 1000.
    +     * be returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsRequestOrBuilder.java index eaf1a9fc7d29..66b714fecd96 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListPlacementsRequestOrBuilder *
        * Optional. The maximum number of `Placements` to return. The service may
        * return fewer than this value. If unspecified, at most 50 `Placements` will
    -   * be returned. The maximum value is 1000; values above 1000 will be coerced
    -   * to 1000.
    +   * be returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsResponse.java index 72445d4e6a39..6aa5f08967f6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsResponse.java @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1156,7 +1156,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1182,7 +1182,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1212,7 +1212,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsResponseOrBuilder.java index 3dcefc7e8b2d..cf8aa0b1a5f5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPlacementsResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListPlacementsResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequest.java index 1ca0c4e7942e..efd311da8221 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequest.java @@ -139,7 +139,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. The maximum number of `PrivateAuctionDeals` to return. The * service may return fewer than this value. If unspecified, at most 50 * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -947,7 +947,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. The maximum number of `PrivateAuctionDeals` to return. The * service may return fewer than this value. If unspecified, at most 50 * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -966,7 +966,7 @@ public int getPageSize() { * Optional. The maximum number of `PrivateAuctionDeals` to return. The * service may return fewer than this value. If unspecified, at most 50 * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -989,7 +989,7 @@ public Builder setPageSize(int value) { * Optional. The maximum number of `PrivateAuctionDeals` to return. The * service may return fewer than this value. If unspecified, at most 50 * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequestOrBuilder.java index 56e00b2bb2a2..a7f1491685e9 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequestOrBuilder.java @@ -65,7 +65,7 @@ public interface ListPrivateAuctionDealsRequestOrBuilder * Optional. The maximum number of `PrivateAuctionDeals` to return. The * service may return fewer than this value. If unspecified, at most 50 * `PrivateAuctionDeals` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponse.java index b04c1933c40a..62cf443069c4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponse.java @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1173,7 +1173,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1199,7 +1199,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1229,7 +1229,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponseOrBuilder.java index 14301804c95d..15d1c17d78bf 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponseOrBuilder.java @@ -117,7 +117,7 @@ com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder getPrivateAuctionDealsOr * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequest.java index fc0727a784a5..ce4181c949fa 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequest.java @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. The maximum number of `PrivateAuctions` to return. The service * may return fewer than this value. If unspecified, at most 50 * `PrivateAuctions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -939,7 +939,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. The maximum number of `PrivateAuctions` to return. The service * may return fewer than this value. If unspecified, at most 50 * `PrivateAuctions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -958,7 +958,7 @@ public int getPageSize() { * Optional. The maximum number of `PrivateAuctions` to return. The service * may return fewer than this value. If unspecified, at most 50 * `PrivateAuctions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -981,7 +981,7 @@ public Builder setPageSize(int value) { * Optional. The maximum number of `PrivateAuctions` to return. The service * may return fewer than this value. If unspecified, at most 50 * `PrivateAuctions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequestOrBuilder.java index 837415f4eb59..d88cf494ab91 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequestOrBuilder.java @@ -63,7 +63,7 @@ public interface ListPrivateAuctionsRequestOrBuilder * Optional. The maximum number of `PrivateAuctions` to return. The service * may return fewer than this value. If unspecified, at most 50 * `PrivateAuctions` will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. + * values greater than 1000 will be coerced to 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponse.java index 5c8dd4d6ac0f..6707a00b2cfd 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponse.java @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1164,7 +1164,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1190,7 +1190,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1220,7 +1220,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponseOrBuilder.java index 996c1f5a939b..e1c9cb5d052a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListPrivateAuctionsResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponse.java index 091a1865d4e3..9204f5d68386 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponse.java @@ -210,7 +210,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1172,7 +1172,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1198,7 +1198,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1228,7 +1228,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponseOrBuilder.java index e65f0b2674c4..19bd3dcc88fc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListProgrammaticBuyersResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsRequest.java index 4b8cd6988815..b5dc500ce02e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of `Reports` to return. The service may return
        * fewer than this value. If unspecified, at most 50 `Reports` will be
    -   * returned. The maximum value is 1000; values above 1000 will be coerced to
    -   * 1000.
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -934,8 +934,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of `Reports` to return. The service may return
          * fewer than this value. If unspecified, at most 50 `Reports` will be
    -     * returned. The maximum value is 1000; values above 1000 will be coerced to
    -     * 1000.
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -953,8 +953,8 @@ public int getPageSize() { *
          * Optional. The maximum number of `Reports` to return. The service may return
          * fewer than this value. If unspecified, at most 50 `Reports` will be
    -     * returned. The maximum value is 1000; values above 1000 will be coerced to
    -     * 1000.
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -976,8 +976,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of `Reports` to return. The service may return
          * fewer than this value. If unspecified, at most 50 `Reports` will be
    -     * returned. The maximum value is 1000; values above 1000 will be coerced to
    -     * 1000.
    +     * returned. The maximum value is 1000; values greater than 1000 will be
    +     * coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsRequestOrBuilder.java index 1981c38afe37..124f6207a647 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListReportsRequestOrBuilder *
        * Optional. The maximum number of `Reports` to return. The service may return
        * fewer than this value. If unspecified, at most 50 `Reports` will be
    -   * returned. The maximum value is 1000; values above 1000 will be coerced to
    -   * 1000.
    +   * returned. The maximum value is 1000; values greater than 1000 will be
    +   * coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsResponse.java index 36989f699ba7..f680ee062e3c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsResponse.java @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1155,7 +1155,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1181,7 +1181,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1211,7 +1211,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsResponseOrBuilder.java index c8e01b67bfd3..898eef90c2b5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListReportsResponseOrBuilder.java @@ -115,7 +115,7 @@ public interface ListReportsResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesRequest.java index 428b0aa31968..5e08750003fa 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesRequest.java @@ -135,7 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
        * Optional. The maximum number of `Roles` to return. The service may return
        * fewer than this value. If unspecified, at most 50 `Roles` will be returned.
    -   * The maximum value is 1000; values above 1000 will be coerced to 1000.
    +   * The maximum value is 1000; values greater than 1000 will be coerced to
    +   * 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -933,7 +934,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
          * Optional. The maximum number of `Roles` to return. The service may return
          * fewer than this value. If unspecified, at most 50 `Roles` will be returned.
    -     * The maximum value is 1000; values above 1000 will be coerced to 1000.
    +     * The maximum value is 1000; values greater than 1000 will be coerced to
    +     * 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -951,7 +953,8 @@ public int getPageSize() { *
          * Optional. The maximum number of `Roles` to return. The service may return
          * fewer than this value. If unspecified, at most 50 `Roles` will be returned.
    -     * The maximum value is 1000; values above 1000 will be coerced to 1000.
    +     * The maximum value is 1000; values greater than 1000 will be coerced to
    +     * 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -973,7 +976,8 @@ public Builder setPageSize(int value) { *
          * Optional. The maximum number of `Roles` to return. The service may return
          * fewer than this value. If unspecified, at most 50 `Roles` will be returned.
    -     * The maximum value is 1000; values above 1000 will be coerced to 1000.
    +     * The maximum value is 1000; values greater than 1000 will be coerced to
    +     * 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesRequestOrBuilder.java index cb449bfdb81a..6fe25f88bad0 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesRequestOrBuilder.java @@ -62,7 +62,8 @@ public interface ListRolesRequestOrBuilder *
        * Optional. The maximum number of `Roles` to return. The service may return
        * fewer than this value. If unspecified, at most 50 `Roles` will be returned.
    -   * The maximum value is 1000; values above 1000 will be coerced to 1000.
    +   * The maximum value is 1000; values greater than 1000 will be coerced to
    +   * 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesResponse.java index 3ace6a003d14..c0fde4c928b3 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesResponse.java @@ -207,7 +207,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1148,7 +1148,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1174,7 +1174,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1204,7 +1204,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesResponseOrBuilder.java index eb0f53065755..de441ba03008 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListRolesResponseOrBuilder.java @@ -115,7 +115,7 @@ public interface ListRolesResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesRequest.java new file mode 100644 index 000000000000..9c4cff5ce9b1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesRequest.java @@ -0,0 +1,1483 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListSites` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListSitesRequest} + */ +public final class ListSitesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListSitesRequest) + ListSitesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListSitesRequest.newBuilder() to construct. + private ListSitesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSitesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSitesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListSitesRequest.class, + com.google.ads.admanager.v1.ListSitesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Sites.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of Sites.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `Sites` to return. The service may return
    +   * fewer than this value. If unspecified, at most 50 `Sites` will be returned.
    +   * The maximum value is 1000; values greater than 1000 will be coerced to
    +   * 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListSites` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListSites` must match
    +   * the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListSites` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListSites` must match
    +   * the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListSitesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListSitesRequest other = + (com.google.ads.admanager.v1.ListSitesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListSitesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListSitesRequest 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.admanager.v1.ListSitesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListSitesRequest 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.admanager.v1.ListSitesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListSitesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListSitesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListSitesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListSitesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListSitesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListSitesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListSites` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListSitesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListSitesRequest) + com.google.ads.admanager.v1.ListSitesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListSitesRequest.class, + com.google.ads.admanager.v1.ListSitesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListSitesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListSitesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListSitesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListSitesRequest build() { + com.google.ads.admanager.v1.ListSitesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListSitesRequest buildPartial() { + com.google.ads.admanager.v1.ListSitesRequest result = + new com.google.ads.admanager.v1.ListSitesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListSitesRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListSitesRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListSitesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListSitesRequest other) { + if (other == com.google.ads.admanager.v1.ListSitesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of Sites.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Sites.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Sites.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Sites.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Sites.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `Sites` to return. The service may return
    +     * fewer than this value. If unspecified, at most 50 `Sites` will be returned.
    +     * The maximum value is 1000; values greater than 1000 will be coerced to
    +     * 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `Sites` to return. The service may return
    +     * fewer than this value. If unspecified, at most 50 `Sites` will be returned.
    +     * The maximum value is 1000; values greater than 1000 will be coerced to
    +     * 1000.
    +     * 
    + * + * 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. The maximum number of `Sites` to return. The service may return
    +     * fewer than this value. If unspecified, at most 50 `Sites` will be returned.
    +     * The maximum value is 1000; values greater than 1000 will be coerced to
    +     * 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListSites` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListSites` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListSites` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListSites` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListSites` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListSites` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListSites` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListSites` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListSites` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListSites` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListSitesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListSitesRequest) + private static final com.google.ads.admanager.v1.ListSitesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListSitesRequest(); + } + + public static com.google.ads.admanager.v1.ListSitesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSitesRequest 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.admanager.v1.ListSitesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesRequestOrBuilder.java new file mode 100644 index 000000000000..b8cb9a57ffe9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListSitesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListSitesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Sites.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Sites.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `Sites` to return. The service may return
    +   * fewer than this value. If unspecified, at most 50 `Sites` will be returned.
    +   * The maximum value is 1000; values greater than 1000 will be coerced to
    +   * 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListSites` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListSites` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListSites` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListSites` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesResponse.java new file mode 100644 index 000000000000..bffd2e0022aa --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesResponse.java @@ -0,0 +1,1287 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListSitesRequest` containing matching `Site` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListSitesResponse} + */ +public final class ListSitesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListSitesResponse) + ListSitesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListSitesResponse.newBuilder() to construct. + private ListSitesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSitesResponse() { + sites_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSitesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListSitesResponse.class, + com.google.ads.admanager.v1.ListSitesResponse.Builder.class); + } + + public static final int SITES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sites_; + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public java.util.List getSitesList() { + return sites_; + } + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public java.util.List + getSitesOrBuilderList() { + return sites_; + } + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public int getSitesCount() { + return sites_.size(); + } + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Site getSites(int index) { + return sites_.get(index); + } + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.SiteOrBuilder getSitesOrBuilder(int index) { + return sites_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `Site` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < sites_.size(); i++) { + output.writeMessage(1, sites_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sites_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sites_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListSitesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListSitesResponse other = + (com.google.ads.admanager.v1.ListSitesResponse) obj; + + if (!getSitesList().equals(other.getSitesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getSitesCount() > 0) { + hash = (37 * hash) + SITES_FIELD_NUMBER; + hash = (53 * hash) + getSitesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListSitesResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListSitesResponse 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.admanager.v1.ListSitesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListSitesResponse 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.admanager.v1.ListSitesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListSitesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListSitesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListSitesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListSitesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListSitesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListSitesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListSitesRequest` containing matching `Site` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListSitesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListSitesResponse) + com.google.ads.admanager.v1.ListSitesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListSitesResponse.class, + com.google.ads.admanager.v1.ListSitesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListSitesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + } else { + sites_ = null; + sitesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_ListSitesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListSitesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListSitesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListSitesResponse build() { + com.google.ads.admanager.v1.ListSitesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListSitesResponse buildPartial() { + com.google.ads.admanager.v1.ListSitesResponse result = + new com.google.ads.admanager.v1.ListSitesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.ads.admanager.v1.ListSitesResponse result) { + if (sitesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sites_ = java.util.Collections.unmodifiableList(sites_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sites_ = sites_; + } else { + result.sites_ = sitesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListSitesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListSitesResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListSitesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListSitesResponse other) { + if (other == com.google.ads.admanager.v1.ListSitesResponse.getDefaultInstance()) return this; + if (sitesBuilder_ == null) { + if (!other.sites_.isEmpty()) { + if (sites_.isEmpty()) { + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSitesIsMutable(); + sites_.addAll(other.sites_); + } + onChanged(); + } + } else { + if (!other.sites_.isEmpty()) { + if (sitesBuilder_.isEmpty()) { + sitesBuilder_.dispose(); + sitesBuilder_ = null; + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000001); + sitesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSitesFieldBuilder() + : null; + } else { + sitesBuilder_.addAllMessages(other.sites_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.Site m = + input.readMessage(com.google.ads.admanager.v1.Site.parser(), extensionRegistry); + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(m); + } else { + sitesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 sites_ = + java.util.Collections.emptyList(); + + private void ensureSitesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sites_ = new java.util.ArrayList(sites_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + sitesBuilder_; + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public java.util.List getSitesList() { + if (sitesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sites_); + } else { + return sitesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public int getSitesCount() { + if (sitesBuilder_ == null) { + return sites_.size(); + } else { + return sitesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site getSites(int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder setSites(int index, com.google.ads.admanager.v1.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.set(index, value); + onChanged(); + } else { + sitesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder setSites(int index, com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.set(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(com.google.ads.admanager.v1.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(value); + onChanged(); + } else { + sitesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(int index, com.google.ads.admanager.v1.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(index, value); + onChanged(); + } else { + sitesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addSites(int index, com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder addAllSites( + java.lang.Iterable values) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sites_); + onChanged(); + } else { + sitesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder clearSites() { + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sitesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public Builder removeSites(int index) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.remove(index); + onChanged(); + } else { + sitesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site.Builder getSitesBuilder(int index) { + return getSitesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.SiteOrBuilder getSitesOrBuilder(int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public java.util.List + getSitesOrBuilderList() { + if (sitesBuilder_ != null) { + return sitesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sites_); + } + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site.Builder addSitesBuilder() { + return getSitesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Site.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public com.google.ads.admanager.v1.Site.Builder addSitesBuilder(int index) { + return getSitesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Site.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Site` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + public java.util.List getSitesBuilderList() { + return getSitesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + getSitesFieldBuilder() { + if (sitesBuilder_ == null) { + sitesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder>( + sites_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sites_ = null; + } + return sitesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `Site` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `Site` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `Site` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListSitesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListSitesResponse) + private static final com.google.ads.admanager.v1.ListSitesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListSitesResponse(); + } + + public static com.google.ads.admanager.v1.ListSitesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSitesResponse 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.admanager.v1.ListSitesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesResponseOrBuilder.java new file mode 100644 index 000000000000..d1f1e6286f27 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListSitesResponseOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListSitesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListSitesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + java.util.List getSitesList(); + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + com.google.ads.admanager.v1.Site getSites(int index); + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + int getSitesCount(); + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + java.util.List getSitesOrBuilderList(); + + /** + * + * + *
    +   * The `Site` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Site sites = 1; + */ + com.google.ads.admanager.v1.SiteOrBuilder getSitesOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `Site` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTaxonomyCategoriesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTaxonomyCategoriesResponse.java index 18a8ce73b4ff..604a6faff4e2 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTaxonomyCategoriesResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTaxonomyCategoriesResponse.java @@ -210,7 +210,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1172,7 +1172,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1198,7 +1198,7 @@ public int getTotalSize() { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. @@ -1228,7 +1228,7 @@ public Builder setTotalSize(int value) { * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTaxonomyCategoriesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTaxonomyCategoriesResponseOrBuilder.java index f3eb40825cdd..ecc1ecc8f03b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTaxonomyCategoriesResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTaxonomyCategoriesResponseOrBuilder.java @@ -116,7 +116,7 @@ public interface ListTaxonomyCategoriesResponseOrBuilder * If a filter was included in the request, this reflects the total number * after the filtering is applied. * - * `total_size` will not be calculated in the response unless it has been + * `total_size` won't be calculated in the response unless it has been * included in a response field mask. The response field mask can be provided * to the method by using the URL parameter `$fields` or `fields`, or by using * the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsRequest.java new file mode 100644 index 000000000000..f97d51042e71 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsRequest.java @@ -0,0 +1,1483 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `ListTeams` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListTeamsRequest} + */ +public final class ListTeamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListTeamsRequest) + ListTeamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListTeamsRequest.newBuilder() to construct. + private ListTeamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTeamsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTeamsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListTeamsRequest.class, + com.google.ads.admanager.v1.ListTeamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Teams.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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, which owns this collection of Teams.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * 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. The maximum number of `Teams` to return. The service may return
    +   * fewer than this value. If unspecified, at most 50 `Teams` will be returned.
    +   * The maximum value is 1000; values greater than 1000 will be coerced to
    +   * 1000.
    +   * 
    + * + * 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. A page token, received from a previous `ListTeams` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListTeams` must match
    +   * the call that provided the page token.
    +   * 
    + * + * 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. A page token, received from a previous `ListTeams` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListTeams` must match
    +   * the call that provided the page token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + 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.admanager.v1.ListTeamsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListTeamsRequest other = + (com.google.ads.admanager.v1.ListTeamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListTeamsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest 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.admanager.v1.ListTeamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest 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.admanager.v1.ListTeamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListTeamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `ListTeams` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListTeamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListTeamsRequest) + com.google.ads.admanager.v1.ListTeamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListTeamsRequest.class, + com.google.ads.admanager.v1.ListTeamsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListTeamsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListTeamsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListTeamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListTeamsRequest build() { + com.google.ads.admanager.v1.ListTeamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListTeamsRequest buildPartial() { + com.google.ads.admanager.v1.ListTeamsRequest result = + new com.google.ads.admanager.v1.ListTeamsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListTeamsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListTeamsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListTeamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListTeamsRequest other) { + if (other == com.google.ads.admanager.v1.ListTeamsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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, which owns this collection of Teams.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Teams.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Teams.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Teams.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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, which owns this collection of Teams.
    +     * Format: `networks/{network_code}`
    +     * 
    + * + * + * 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. The maximum number of `Teams` to return. The service may return
    +     * fewer than this value. If unspecified, at most 50 `Teams` will be returned.
    +     * The maximum value is 1000; values greater than 1000 will be coerced to
    +     * 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of `Teams` to return. The service may return
    +     * fewer than this value. If unspecified, at most 50 `Teams` will be returned.
    +     * The maximum value is 1000; values greater than 1000 will be coerced to
    +     * 1000.
    +     * 
    + * + * 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. The maximum number of `Teams` to return. The service may return
    +     * fewer than this value. If unspecified, at most 50 `Teams` will be returned.
    +     * The maximum value is 1000; values greater than 1000 will be coerced to
    +     * 1000.
    +     * 
    + * + * 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. A page token, received from a previous `ListTeams` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListTeams` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListTeams` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListTeams` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListTeams` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListTeams` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListTeams` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListTeams` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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. A page token, received from a previous `ListTeams` call.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to `ListTeams` must match
    +     * the call that provided the page token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to filter the response.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Expression to specify sorting order.
    +     * See syntax details at
    +     * https://developers.google.com/ad-manager/api/beta/filters#order
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Number of individual resources to skip while paginating.
    +     * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListTeamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListTeamsRequest) + private static final com.google.ads.admanager.v1.ListTeamsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListTeamsRequest(); + } + + public static com.google.ads.admanager.v1.ListTeamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTeamsRequest 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.admanager.v1.ListTeamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsRequestOrBuilder.java new file mode 100644 index 000000000000..9e9404728a63 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListTeamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListTeamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Teams.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of Teams.
    +   * Format: `networks/{network_code}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of `Teams` to return. The service may return
    +   * fewer than this value. If unspecified, at most 50 `Teams` will be returned.
    +   * The maximum value is 1000; values greater than 1000 will be coerced to
    +   * 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListTeams` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListTeams` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListTeams` call.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to `ListTeams` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. Expression to filter the response.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. Expression to specify sorting order.
    +   * See syntax details at
    +   * https://developers.google.com/ad-manager/api/beta/filters#order
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. Number of individual resources to skip while paginating.
    +   * 
    + * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsResponse.java new file mode 100644 index 000000000000..cf8a9c8c7da5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsResponse.java @@ -0,0 +1,1287 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `ListTeamsRequest` containing matching `Team` objects.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListTeamsResponse} + */ +public final class ListTeamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListTeamsResponse) + ListTeamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListTeamsResponse.newBuilder() to construct. + private ListTeamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTeamsResponse() { + teams_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTeamsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListTeamsResponse.class, + com.google.ads.admanager.v1.ListTeamsResponse.Builder.class); + } + + public static final int TEAMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List teams_; + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public java.util.List getTeamsList() { + return teams_; + } + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public java.util.List + getTeamsOrBuilderList() { + return teams_; + } + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public int getTeamsCount() { + return teams_.size(); + } + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.Team getTeams(int index) { + return teams_.get(index); + } + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.TeamOrBuilder getTeamsOrBuilder(int index) { + return teams_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
    +   * Total number of `Team` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < teams_.size(); i++) { + output.writeMessage(1, teams_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < teams_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, teams_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + 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.admanager.v1.ListTeamsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListTeamsResponse other = + (com.google.ads.admanager.v1.ListTeamsResponse) obj; + + if (!getTeamsList().equals(other.getTeamsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) 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 (getTeamsCount() > 0) { + hash = (37 * hash) + TEAMS_FIELD_NUMBER; + hash = (53 * hash) + getTeamsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListTeamsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse 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.admanager.v1.ListTeamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse 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.admanager.v1.ListTeamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ListTeamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `ListTeamsRequest` containing matching `Team` objects.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ListTeamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListTeamsResponse) + com.google.ads.admanager.v1.ListTeamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListTeamsResponse.class, + com.google.ads.admanager.v1.ListTeamsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListTeamsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (teamsBuilder_ == null) { + teams_ = java.util.Collections.emptyList(); + } else { + teams_ = null; + teamsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_ListTeamsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListTeamsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListTeamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListTeamsResponse build() { + com.google.ads.admanager.v1.ListTeamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListTeamsResponse buildPartial() { + com.google.ads.admanager.v1.ListTeamsResponse result = + new com.google.ads.admanager.v1.ListTeamsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.ads.admanager.v1.ListTeamsResponse result) { + if (teamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + teams_ = java.util.Collections.unmodifiableList(teams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.teams_ = teams_; + } else { + result.teams_ = teamsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListTeamsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListTeamsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListTeamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListTeamsResponse other) { + if (other == com.google.ads.admanager.v1.ListTeamsResponse.getDefaultInstance()) return this; + if (teamsBuilder_ == null) { + if (!other.teams_.isEmpty()) { + if (teams_.isEmpty()) { + teams_ = other.teams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTeamsIsMutable(); + teams_.addAll(other.teams_); + } + onChanged(); + } + } else { + if (!other.teams_.isEmpty()) { + if (teamsBuilder_.isEmpty()) { + teamsBuilder_.dispose(); + teamsBuilder_ = null; + teams_ = other.teams_; + bitField0_ = (bitField0_ & ~0x00000001); + teamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTeamsFieldBuilder() + : null; + } else { + teamsBuilder_.addAllMessages(other.teams_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.admanager.v1.Team m = + input.readMessage(com.google.ads.admanager.v1.Team.parser(), extensionRegistry); + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(m); + } else { + teamsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 teams_ = + java.util.Collections.emptyList(); + + private void ensureTeamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + teams_ = new java.util.ArrayList(teams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + teamsBuilder_; + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public java.util.List getTeamsList() { + if (teamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(teams_); + } else { + return teamsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public int getTeamsCount() { + if (teamsBuilder_ == null) { + return teams_.size(); + } else { + return teamsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team getTeams(int index) { + if (teamsBuilder_ == null) { + return teams_.get(index); + } else { + return teamsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder setTeams(int index, com.google.ads.admanager.v1.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.set(index, value); + onChanged(); + } else { + teamsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder setTeams(int index, com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.set(index, builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(com.google.ads.admanager.v1.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.add(value); + onChanged(); + } else { + teamsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(int index, com.google.ads.admanager.v1.Team value) { + if (teamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamsIsMutable(); + teams_.add(index, value); + onChanged(); + } else { + teamsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addTeams(int index, com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.add(index, builderForValue.build()); + onChanged(); + } else { + teamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder addAllTeams( + java.lang.Iterable values) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, teams_); + onChanged(); + } else { + teamsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder clearTeams() { + if (teamsBuilder_ == null) { + teams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + teamsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public Builder removeTeams(int index) { + if (teamsBuilder_ == null) { + ensureTeamsIsMutable(); + teams_.remove(index); + onChanged(); + } else { + teamsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team.Builder getTeamsBuilder(int index) { + return getTeamsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.TeamOrBuilder getTeamsOrBuilder(int index) { + if (teamsBuilder_ == null) { + return teams_.get(index); + } else { + return teamsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public java.util.List + getTeamsOrBuilderList() { + if (teamsBuilder_ != null) { + return teamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(teams_); + } + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team.Builder addTeamsBuilder() { + return getTeamsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Team.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public com.google.ads.admanager.v1.Team.Builder addTeamsBuilder(int index) { + return getTeamsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Team.getDefaultInstance()); + } + + /** + * + * + *
    +     * The `Team` objects from the specified network.
    +     * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + public java.util.List getTeamsBuilderList() { + return getTeamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + getTeamsFieldBuilder() { + if (teamsBuilder_ == null) { + teamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder>( + teams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + teams_ = null; + } + return teamsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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 int totalSize_; + + /** + * + * + *
    +     * Total number of `Team` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
    +     * Total number of `Team` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Total number of `Team` objects.
    +     * If a filter was included in the request, this reflects the total number
    +     * after the filtering is applied.
    +     *
    +     * `total_size` won't be calculated in the response unless it has been
    +     * included in a response field mask. The response field mask can be provided
    +     * to the method by using the URL parameter `$fields` or `fields`, or by using
    +     * the HTTP/gRPC header `X-Goog-FieldMask`.
    +     *
    +     * For more information, see
    +     * https://developers.google.com/ad-manager/api/beta/field-masks
    +     * 
    + * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListTeamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListTeamsResponse) + private static final com.google.ads.admanager.v1.ListTeamsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListTeamsResponse(); + } + + public static com.google.ads.admanager.v1.ListTeamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTeamsResponse 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.admanager.v1.ListTeamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsResponseOrBuilder.java new file mode 100644 index 000000000000..e00595e1f443 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListTeamsResponseOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListTeamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListTeamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + java.util.List getTeamsList(); + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + com.google.ads.admanager.v1.Team getTeams(int index); + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + int getTeamsCount(); + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + java.util.List getTeamsOrBuilderList(); + + /** + * + * + *
    +   * The `Team` objects from the specified network.
    +   * 
    + * + * repeated .google.ads.admanager.v1.Team teams = 1; + */ + com.google.ads.admanager.v1.TeamOrBuilder getTeamsOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Total number of `Team` objects.
    +   * If a filter was included in the request, this reflects the total number
    +   * after the filtering is applied.
    +   *
    +   * `total_size` won't be calculated in the response unless it has been
    +   * included in a response field mask. The response field mask can be provided
    +   * to the method by using the URL parameter `$fields` or `fields`, or by using
    +   * the HTTP/gRPC header `X-Goog-FieldMask`.
    +   *
    +   * For more information, see
    +   * https://developers.google.com/ad-manager/api/beta/field-masks
    +   * 
    + * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileApplicationTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileApplicationTargeting.java new file mode 100644 index 000000000000..c82b3f216f1a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileApplicationTargeting.java @@ -0,0 +1,871 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Mobile Application Targeting
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileApplicationTargeting} + */ +public final class MobileApplicationTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.MobileApplicationTargeting) + MobileApplicationTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MobileApplicationTargeting.newBuilder() to construct. + private MobileApplicationTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MobileApplicationTargeting() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MobileApplicationTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileApplicationTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileApplicationTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileApplicationTargeting.class, + com.google.ads.admanager.v1.MobileApplicationTargeting.Builder.class); + } + + private int targetingCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targeting_; + + public enum TargetingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIRST_PARTY_TARGETING(1), + TARGETING_NOT_SET(0); + private final int value; + + private TargetingCase(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 TargetingCase valueOf(int value) { + return forNumber(value); + } + + public static TargetingCase forNumber(int value) { + switch (value) { + case 1: + return FIRST_PARTY_TARGETING; + case 0: + return TARGETING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetingCase getTargetingCase() { + return TargetingCase.forNumber(targetingCase_); + } + + public static final int FIRST_PARTY_TARGETING_FIELD_NUMBER = 1; + + /** + * + * + *
    +   * Optional. The targeted/excluded first-party mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the firstPartyTargeting field is set. + */ + @java.lang.Override + public boolean hasFirstPartyTargeting() { + return targetingCase_ == 1; + } + + /** + * + * + *
    +   * Optional. The targeted/excluded first-party mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The firstPartyTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting getFirstPartyTargeting() { + if (targetingCase_ == 1) { + return (com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) targeting_; + } + return com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. The targeted/excluded first-party mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.FirstPartyMobileApplicationTargetingOrBuilder + getFirstPartyTargetingOrBuilder() { + if (targetingCase_ == 1) { + return (com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) targeting_; + } + return com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (targetingCase_ == 1) { + output.writeMessage( + 1, (com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) targeting_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetingCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) targeting_); + } + 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.admanager.v1.MobileApplicationTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.MobileApplicationTargeting other = + (com.google.ads.admanager.v1.MobileApplicationTargeting) obj; + + if (!getTargetingCase().equals(other.getTargetingCase())) return false; + switch (targetingCase_) { + case 1: + if (!getFirstPartyTargeting().equals(other.getFirstPartyTargeting())) 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(); + switch (targetingCase_) { + case 1: + hash = (37 * hash) + FIRST_PARTY_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getFirstPartyTargeting().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting 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.admanager.v1.MobileApplicationTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting 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.admanager.v1.MobileApplicationTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.MobileApplicationTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Mobile Application Targeting
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileApplicationTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.MobileApplicationTargeting) + com.google.ads.admanager.v1.MobileApplicationTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileApplicationTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileApplicationTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileApplicationTargeting.class, + com.google.ads.admanager.v1.MobileApplicationTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.MobileApplicationTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (firstPartyTargetingBuilder_ != null) { + firstPartyTargetingBuilder_.clear(); + } + targetingCase_ = 0; + targeting_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileApplicationTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileApplicationTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.MobileApplicationTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileApplicationTargeting build() { + com.google.ads.admanager.v1.MobileApplicationTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileApplicationTargeting buildPartial() { + com.google.ads.admanager.v1.MobileApplicationTargeting result = + new com.google.ads.admanager.v1.MobileApplicationTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.MobileApplicationTargeting result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.ads.admanager.v1.MobileApplicationTargeting result) { + result.targetingCase_ = targetingCase_; + result.targeting_ = this.targeting_; + if (targetingCase_ == 1 && firstPartyTargetingBuilder_ != null) { + result.targeting_ = firstPartyTargetingBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.MobileApplicationTargeting) { + return mergeFrom((com.google.ads.admanager.v1.MobileApplicationTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.MobileApplicationTargeting other) { + if (other == com.google.ads.admanager.v1.MobileApplicationTargeting.getDefaultInstance()) + return this; + switch (other.getTargetingCase()) { + case FIRST_PARTY_TARGETING: + { + mergeFirstPartyTargeting(other.getFirstPartyTargeting()); + break; + } + case TARGETING_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: + { + input.readMessage( + getFirstPartyTargetingFieldBuilder().getBuilder(), extensionRegistry); + targetingCase_ = 1; + 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 targetingCase_ = 0; + private java.lang.Object targeting_; + + public TargetingCase getTargetingCase() { + return TargetingCase.forNumber(targetingCase_); + } + + public Builder clearTargeting() { + targetingCase_ = 0; + targeting_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting, + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.Builder, + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargetingOrBuilder> + firstPartyTargetingBuilder_; + + /** + * + * + *
    +     * Optional. The targeted/excluded first-party mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the firstPartyTargeting field is set. + */ + @java.lang.Override + public boolean hasFirstPartyTargeting() { + return targetingCase_ == 1; + } + + /** + * + * + *
    +     * Optional. The targeted/excluded first-party mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The firstPartyTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting + getFirstPartyTargeting() { + if (firstPartyTargetingBuilder_ == null) { + if (targetingCase_ == 1) { + return (com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) targeting_; + } + return com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting + .getDefaultInstance(); + } else { + if (targetingCase_ == 1) { + return firstPartyTargetingBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. The targeted/excluded first-party mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFirstPartyTargeting( + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting value) { + if (firstPartyTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targeting_ = value; + onChanged(); + } else { + firstPartyTargetingBuilder_.setMessage(value); + } + targetingCase_ = 1; + return this; + } + + /** + * + * + *
    +     * Optional. The targeted/excluded first-party mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFirstPartyTargeting( + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.Builder builderForValue) { + if (firstPartyTargetingBuilder_ == null) { + targeting_ = builderForValue.build(); + onChanged(); + } else { + firstPartyTargetingBuilder_.setMessage(builderForValue.build()); + } + targetingCase_ = 1; + return this; + } + + /** + * + * + *
    +     * Optional. The targeted/excluded first-party mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFirstPartyTargeting( + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting value) { + if (firstPartyTargetingBuilder_ == null) { + if (targetingCase_ == 1 + && targeting_ + != com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting + .getDefaultInstance()) { + targeting_ = + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.newBuilder( + (com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) targeting_) + .mergeFrom(value) + .buildPartial(); + } else { + targeting_ = value; + } + onChanged(); + } else { + if (targetingCase_ == 1) { + firstPartyTargetingBuilder_.mergeFrom(value); + } else { + firstPartyTargetingBuilder_.setMessage(value); + } + } + targetingCase_ = 1; + return this; + } + + /** + * + * + *
    +     * Optional. The targeted/excluded first-party mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFirstPartyTargeting() { + if (firstPartyTargetingBuilder_ == null) { + if (targetingCase_ == 1) { + targetingCase_ = 0; + targeting_ = null; + onChanged(); + } + } else { + if (targetingCase_ == 1) { + targetingCase_ = 0; + targeting_ = null; + } + firstPartyTargetingBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The targeted/excluded first-party mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.Builder + getFirstPartyTargetingBuilder() { + return getFirstPartyTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The targeted/excluded first-party mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.FirstPartyMobileApplicationTargetingOrBuilder + getFirstPartyTargetingOrBuilder() { + if ((targetingCase_ == 1) && (firstPartyTargetingBuilder_ != null)) { + return firstPartyTargetingBuilder_.getMessageOrBuilder(); + } else { + if (targetingCase_ == 1) { + return (com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) targeting_; + } + return com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. The targeted/excluded first-party mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting, + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.Builder, + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargetingOrBuilder> + getFirstPartyTargetingFieldBuilder() { + if (firstPartyTargetingBuilder_ == null) { + if (!(targetingCase_ == 1)) { + targeting_ = + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.getDefaultInstance(); + } + firstPartyTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting, + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting.Builder, + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargetingOrBuilder>( + (com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting) targeting_, + getParentForChildren(), + isClean()); + targeting_ = null; + } + targetingCase_ = 1; + onChanged(); + return firstPartyTargetingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.MobileApplicationTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.MobileApplicationTargeting) + private static final com.google.ads.admanager.v1.MobileApplicationTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.MobileApplicationTargeting(); + } + + public static com.google.ads.admanager.v1.MobileApplicationTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MobileApplicationTargeting 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.admanager.v1.MobileApplicationTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileApplicationTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileApplicationTargetingOrBuilder.java new file mode 100644 index 000000000000..76fcc18b9ff2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileApplicationTargetingOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface MobileApplicationTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.MobileApplicationTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The targeted/excluded first-party mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the firstPartyTargeting field is set. + */ + boolean hasFirstPartyTargeting(); + + /** + * + * + *
    +   * Optional. The targeted/excluded first-party mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The firstPartyTargeting. + */ + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargeting getFirstPartyTargeting(); + + /** + * + * + *
    +   * Optional. The targeted/excluded first-party mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.FirstPartyMobileApplicationTargeting first_party_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.FirstPartyMobileApplicationTargetingOrBuilder + getFirstPartyTargetingOrBuilder(); + + com.google.ads.admanager.v1.MobileApplicationTargeting.TargetingCase getTargetingCase(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrier.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrier.java new file mode 100644 index 000000000000..ab0576afc2d3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrier.java @@ -0,0 +1,1095 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents a mobile carrier.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileCarrier} + */ +public final class MobileCarrier extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.MobileCarrier) + MobileCarrierOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MobileCarrier.newBuilder() to construct. + private MobileCarrier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MobileCarrier() { + name_ = ""; + displayName_ = ""; + regionCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MobileCarrier(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileCarrierMessagesProto + .internal_static_google_ads_admanager_v1_MobileCarrier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileCarrierMessagesProto + .internal_static_google_ads_admanager_v1_MobileCarrier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileCarrier.class, + com.google.ads.admanager.v1.MobileCarrier.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `MobileCarrier`.
    +   * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
    +   * 
    + * + * 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. The resource name of the `MobileCarrier`.
    +   * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Output only. The localized name of the mobile carrier.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The localized name of the mobile carrier.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The localized name of the mobile carrier.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object regionCode_ = ""; + + /** + * + * + *
    +   * Output only. The region code of the mobile carrier.
    +   * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the regionCode field is set. + */ + @java.lang.Override + public boolean hasRegionCode() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. The region code of the mobile carrier.
    +   * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
    +   * Output only. The region code of the mobile carrier.
    +   * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, regionCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, regionCode_); + } + 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.admanager.v1.MobileCarrier)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.MobileCarrier other = + (com.google.ads.admanager.v1.MobileCarrier) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasRegionCode() != other.hasRegionCode()) return false; + if (hasRegionCode()) { + if (!getRegionCode().equals(other.getRegionCode())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasRegionCode()) { + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.MobileCarrier parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileCarrier 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.admanager.v1.MobileCarrier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileCarrier 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.admanager.v1.MobileCarrier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileCarrier parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileCarrier parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileCarrier parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileCarrier parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileCarrier parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileCarrier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.MobileCarrier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a mobile carrier.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileCarrier} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.MobileCarrier) + com.google.ads.admanager.v1.MobileCarrierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileCarrierMessagesProto + .internal_static_google_ads_admanager_v1_MobileCarrier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileCarrierMessagesProto + .internal_static_google_ads_admanager_v1_MobileCarrier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileCarrier.class, + com.google.ads.admanager.v1.MobileCarrier.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.MobileCarrier.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + regionCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.MobileCarrierMessagesProto + .internal_static_google_ads_admanager_v1_MobileCarrier_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrier getDefaultInstanceForType() { + return com.google.ads.admanager.v1.MobileCarrier.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrier build() { + com.google.ads.admanager.v1.MobileCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrier buildPartial() { + com.google.ads.admanager.v1.MobileCarrier result = + new com.google.ads.admanager.v1.MobileCarrier(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.MobileCarrier result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.regionCode_ = regionCode_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.MobileCarrier) { + return mergeFrom((com.google.ads.admanager.v1.MobileCarrier) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.MobileCarrier other) { + if (other == com.google.ads.admanager.v1.MobileCarrier.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRegionCode()) { + regionCode_ = other.regionCode_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `MobileCarrier`.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
    +     * 
    + * + * 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. The resource name of the `MobileCarrier`.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
    +     * 
    + * + * 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. The resource name of the `MobileCarrier`.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `MobileCarrier`.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `MobileCarrier`.
    +     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Output only. The localized name of the mobile carrier.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile carrier.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile carrier.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile carrier.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile carrier.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile carrier.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + + /** + * + * + *
    +     * Output only. The region code of the mobile carrier.
    +     * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the regionCode field is set. + */ + public boolean hasRegionCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. The region code of the mobile carrier.
    +     * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
    +     * Output only. The region code of the mobile carrier.
    +     * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
    +     * Output only. The region code of the mobile carrier.
    +     * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The region code of the mobile carrier.
    +     * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The region code of the mobile carrier.
    +     * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.MobileCarrier) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.MobileCarrier) + private static final com.google.ads.admanager.v1.MobileCarrier DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.MobileCarrier(); + } + + public static com.google.ads.admanager.v1.MobileCarrier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MobileCarrier 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.admanager.v1.MobileCarrier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierMessagesProto.java new file mode 100644 index 000000000000..18d680c57aff --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierMessagesProto.java @@ -0,0 +1,88 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class MobileCarrierMessagesProto { + private MobileCarrierMessagesProto() {} + + 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_admanager_v1_MobileCarrier_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_MobileCarrier_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" + + "5google/ads/admanager/v1/mobile_carrier_messages.proto\022\027google.ads.admanager.v1" + + "\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\211\002\n\r" + + "MobileCarrier\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\002 \001(\tB\003\340A\003H\000\210\001\001\022\035\n" + + "\013region_code\030\004 \001(\tB\003\340A\003H\001\210\001\001:\204\001\352A\200\001\n" + + "&admanager.googleapis.com/MobileCarrier\0227networks/{network_code}/mobileC" + + "arriers/{mobile_carrier}*\016mobileCarriers2\r" + + "mobileCarrierB\017\n\r" + + "_display_nameB\016\n" + + "\014_region_codeB\316\001\n" + + "\033com.google.ads.admanager.v1B\032MobileCarrierMessagesProtoP\001Z@google.g" + + "olang.org/genproto/googleapis/ads/admana" + + "ger/v1;admanager\252\002\027Google.Ads.AdManager." + + "V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::A" + + "ds::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_MobileCarrier_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_MobileCarrier_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_MobileCarrier_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "RegionCode", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierName.java new file mode 100644 index 000000000000..046b05aed8e2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 MobileCarrierName implements ResourceName { + private static final PathTemplate NETWORK_CODE_MOBILE_CARRIER = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/mobileCarriers/{mobile_carrier}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String mobileCarrier; + + @Deprecated + protected MobileCarrierName() { + networkCode = null; + mobileCarrier = null; + } + + private MobileCarrierName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + mobileCarrier = Preconditions.checkNotNull(builder.getMobileCarrier()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getMobileCarrier() { + return mobileCarrier; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MobileCarrierName of(String networkCode, String mobileCarrier) { + return newBuilder().setNetworkCode(networkCode).setMobileCarrier(mobileCarrier).build(); + } + + public static String format(String networkCode, String mobileCarrier) { + return newBuilder() + .setNetworkCode(networkCode) + .setMobileCarrier(mobileCarrier) + .build() + .toString(); + } + + public static MobileCarrierName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_MOBILE_CARRIER.validatedMatch( + formattedString, "MobileCarrierName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("mobile_carrier")); + } + + 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 (MobileCarrierName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_MOBILE_CARRIER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (mobileCarrier != null) { + fieldMapBuilder.put("mobile_carrier", mobileCarrier); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_MOBILE_CARRIER.instantiate( + "network_code", networkCode, "mobile_carrier", mobileCarrier); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MobileCarrierName that = ((MobileCarrierName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.mobileCarrier, that.mobileCarrier); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(mobileCarrier); + return h; + } + + /** Builder for networks/{network_code}/mobileCarriers/{mobile_carrier}. */ + public static class Builder { + private String networkCode; + private String mobileCarrier; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getMobileCarrier() { + return mobileCarrier; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setMobileCarrier(String mobileCarrier) { + this.mobileCarrier = mobileCarrier; + return this; + } + + private Builder(MobileCarrierName mobileCarrierName) { + this.networkCode = mobileCarrierName.networkCode; + this.mobileCarrier = mobileCarrierName.mobileCarrier; + } + + public MobileCarrierName build() { + return new MobileCarrierName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierOrBuilder.java new file mode 100644 index 000000000000..85f74e09fdb1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface MobileCarrierOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.MobileCarrier) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `MobileCarrier`.
    +   * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `MobileCarrier`.
    +   * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The localized name of the mobile carrier.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Output only. The localized name of the mobile carrier.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Output only. The localized name of the mobile carrier.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
    +   * Output only. The region code of the mobile carrier.
    +   * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the regionCode field is set. + */ + boolean hasRegionCode(); + + /** + * + * + *
    +   * Output only. The region code of the mobile carrier.
    +   * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + + /** + * + * + *
    +   * Output only. The region code of the mobile carrier.
    +   * 
    + * + * optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceProto.java new file mode 100644 index 000000000000..4c86b652f8b4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_carrier_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class MobileCarrierServiceProto { + private MobileCarrierServiceProto() {} + + 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_admanager_v1_GetMobileCarrierRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetMobileCarrierRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_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" + + "4google/ads/admanager/v1/mobile_carrier" + + "_service.proto\022\027google.ads.admanager.v1\032" + + "5google/ads/admanager/v1/mobile_carrier_messages.proto\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resource.proto\"W\n" + + "\027GetMobileCarrierRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&admanager.googleapis.com/MobileCarrier\"\305\001\n" + + "\031ListMobileCarriersRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\212\001\n" + + "\032ListMobileCarriersResponse\022?\n" + + "\017mobile_carriers\030\001" + + " \003(\0132&.google.ads.admanager.v1.MobileCarrier\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\276\003\n" + + "\024MobileCarrierService\022\243\001\n" + + "\020GetMobileCarrier\0220.google.ads.admanager.v1.GetMobil" + + "eCarrierRequest\032&.google.ads.admanager.v" + + "1.MobileCarrier\"5\332A\004name\202\323\344\223\002(\022&/v1/{name=networks/*/mobileCarriers/*}\022\266\001\n" + + "\022ListMobileCarriers\0222.google.ads.admanager.v1." + + "ListMobileCarriersRequest\0323.google.ads.admanager.v1.ListMobileCarriersResponse\"7" + + "\332A\006parent\202\323\344\223\002(\022&/v1/{parent=networks/*}" + + "/mobileCarriers\032G\312A\030admanager.googleapis" + + ".com\322A)https://www.googleapis.com/auth/admanagerB\315\001\n" + + "\033com.google.ads.admanager.v1B\031MobileCarrierServiceProtoP\001Z@google.go" + + "lang.org/genproto/googleapis/ads/admanag" + + "er/v1;admanager\252\002\027Google.Ads.AdManager.V" + + "1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ad" + + "s::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.MobileCarrierMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetMobileCarrierRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetMobileCarrierRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetMobileCarrierRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListMobileCarriersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListMobileCarriersResponse_descriptor, + new java.lang.String[] { + "MobileCarriers", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.MobileCarrierMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierTargeting.java new file mode 100644 index 000000000000..7cff16fab6e3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierTargeting.java @@ -0,0 +1,1102 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Mobile Carrier Targeting.
    + *
    + * Can be used to target/exclude a variety of mobile carriers, such as AT&T,
    + * Verizon, or T-Mobile.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileCarrierTargeting} + */ +public final class MobileCarrierTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.MobileCarrierTargeting) + MobileCarrierTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MobileCarrierTargeting.newBuilder() to construct. + private MobileCarrierTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MobileCarrierTargeting() { + targetedMobileCarriers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedMobileCarriers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MobileCarrierTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileCarrierTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileCarrierTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileCarrierTargeting.class, + com.google.ads.admanager.v1.MobileCarrierTargeting.Builder.class); + } + + public static final int TARGETED_MOBILE_CARRIERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedMobileCarriers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedMobileCarriers. + */ + public com.google.protobuf.ProtocolStringList getTargetedMobileCarriersList() { + return targetedMobileCarriers_; + } + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedMobileCarriers. + */ + public int getTargetedMobileCarriersCount() { + return targetedMobileCarriers_.size(); + } + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedMobileCarriers at the given index. + */ + public java.lang.String getTargetedMobileCarriers(int index) { + return targetedMobileCarriers_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedMobileCarriers at the given index. + */ + public com.google.protobuf.ByteString getTargetedMobileCarriersBytes(int index) { + return targetedMobileCarriers_.getByteString(index); + } + + public static final int EXCLUDED_MOBILE_CARRIERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedMobileCarriers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedMobileCarriers. + */ + public com.google.protobuf.ProtocolStringList getExcludedMobileCarriersList() { + return excludedMobileCarriers_; + } + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedMobileCarriers. + */ + public int getExcludedMobileCarriersCount() { + return excludedMobileCarriers_.size(); + } + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedMobileCarriers at the given index. + */ + public java.lang.String getExcludedMobileCarriers(int index) { + return excludedMobileCarriers_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedMobileCarriers at the given index. + */ + public com.google.protobuf.ByteString getExcludedMobileCarriersBytes(int index) { + return excludedMobileCarriers_.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 < targetedMobileCarriers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, targetedMobileCarriers_.getRaw(i)); + } + for (int i = 0; i < excludedMobileCarriers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, excludedMobileCarriers_.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 < targetedMobileCarriers_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedMobileCarriers_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedMobileCarriersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedMobileCarriers_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedMobileCarriers_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedMobileCarriersList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.MobileCarrierTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.MobileCarrierTargeting other = + (com.google.ads.admanager.v1.MobileCarrierTargeting) obj; + + if (!getTargetedMobileCarriersList().equals(other.getTargetedMobileCarriersList())) + return false; + if (!getExcludedMobileCarriersList().equals(other.getExcludedMobileCarriersList())) + 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 (getTargetedMobileCarriersCount() > 0) { + hash = (37 * hash) + TARGETED_MOBILE_CARRIERS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedMobileCarriersList().hashCode(); + } + if (getExcludedMobileCarriersCount() > 0) { + hash = (37 * hash) + EXCLUDED_MOBILE_CARRIERS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedMobileCarriersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting 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.admanager.v1.MobileCarrierTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting 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.admanager.v1.MobileCarrierTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.MobileCarrierTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Mobile Carrier Targeting.
    +   *
    +   * Can be used to target/exclude a variety of mobile carriers, such as AT&T,
    +   * Verizon, or T-Mobile.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileCarrierTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.MobileCarrierTargeting) + com.google.ads.admanager.v1.MobileCarrierTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileCarrierTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileCarrierTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileCarrierTargeting.class, + com.google.ads.admanager.v1.MobileCarrierTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.MobileCarrierTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedMobileCarriers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedMobileCarriers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_MobileCarrierTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrierTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.MobileCarrierTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrierTargeting build() { + com.google.ads.admanager.v1.MobileCarrierTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrierTargeting buildPartial() { + com.google.ads.admanager.v1.MobileCarrierTargeting result = + new com.google.ads.admanager.v1.MobileCarrierTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.MobileCarrierTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedMobileCarriers_.makeImmutable(); + result.targetedMobileCarriers_ = targetedMobileCarriers_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedMobileCarriers_.makeImmutable(); + result.excludedMobileCarriers_ = excludedMobileCarriers_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.MobileCarrierTargeting) { + return mergeFrom((com.google.ads.admanager.v1.MobileCarrierTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.MobileCarrierTargeting other) { + if (other == com.google.ads.admanager.v1.MobileCarrierTargeting.getDefaultInstance()) + return this; + if (!other.targetedMobileCarriers_.isEmpty()) { + if (targetedMobileCarriers_.isEmpty()) { + targetedMobileCarriers_ = other.targetedMobileCarriers_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedMobileCarriersIsMutable(); + targetedMobileCarriers_.addAll(other.targetedMobileCarriers_); + } + onChanged(); + } + if (!other.excludedMobileCarriers_.isEmpty()) { + if (excludedMobileCarriers_.isEmpty()) { + excludedMobileCarriers_ = other.excludedMobileCarriers_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedMobileCarriersIsMutable(); + excludedMobileCarriers_.addAll(other.excludedMobileCarriers_); + } + 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 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedMobileCarriersIsMutable(); + targetedMobileCarriers_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedMobileCarriersIsMutable(); + excludedMobileCarriers_.add(s); + break; + } // case 34 + 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 targetedMobileCarriers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedMobileCarriersIsMutable() { + if (!targetedMobileCarriers_.isModifiable()) { + targetedMobileCarriers_ = + new com.google.protobuf.LazyStringArrayList(targetedMobileCarriers_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedMobileCarriers. + */ + public com.google.protobuf.ProtocolStringList getTargetedMobileCarriersList() { + targetedMobileCarriers_.makeImmutable(); + return targetedMobileCarriers_; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedMobileCarriers. + */ + public int getTargetedMobileCarriersCount() { + return targetedMobileCarriers_.size(); + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedMobileCarriers at the given index. + */ + public java.lang.String getTargetedMobileCarriers(int index) { + return targetedMobileCarriers_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedMobileCarriers at the given index. + */ + public com.google.protobuf.ByteString getTargetedMobileCarriersBytes(int index) { + return targetedMobileCarriers_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedMobileCarriers to set. + * @return This builder for chaining. + */ + public Builder setTargetedMobileCarriers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedMobileCarriersIsMutable(); + targetedMobileCarriers_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedMobileCarriers to add. + * @return This builder for chaining. + */ + public Builder addTargetedMobileCarriers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedMobileCarriersIsMutable(); + targetedMobileCarriers_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedMobileCarriers to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedMobileCarriers(java.lang.Iterable values) { + ensureTargetedMobileCarriersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedMobileCarriers_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedMobileCarriers() { + targetedMobileCarriers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be
    +     * targeted/included.
    +     * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedMobileCarriers to add. + * @return This builder for chaining. + */ + public Builder addTargetedMobileCarriersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedMobileCarriersIsMutable(); + targetedMobileCarriers_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedMobileCarriers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedMobileCarriersIsMutable() { + if (!excludedMobileCarriers_.isModifiable()) { + excludedMobileCarriers_ = + new com.google.protobuf.LazyStringArrayList(excludedMobileCarriers_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedMobileCarriers. + */ + public com.google.protobuf.ProtocolStringList getExcludedMobileCarriersList() { + excludedMobileCarriers_.makeImmutable(); + return excludedMobileCarriers_; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedMobileCarriers. + */ + public int getExcludedMobileCarriersCount() { + return excludedMobileCarriers_.size(); + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedMobileCarriers at the given index. + */ + public java.lang.String getExcludedMobileCarriers(int index) { + return excludedMobileCarriers_.get(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedMobileCarriers at the given index. + */ + public com.google.protobuf.ByteString getExcludedMobileCarriersBytes(int index) { + return excludedMobileCarriers_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedMobileCarriers to set. + * @return This builder for chaining. + */ + public Builder setExcludedMobileCarriers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedMobileCarriersIsMutable(); + excludedMobileCarriers_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedMobileCarriers to add. + * @return This builder for chaining. + */ + public Builder addExcludedMobileCarriers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedMobileCarriersIsMutable(); + excludedMobileCarriers_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedMobileCarriers to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedMobileCarriers(java.lang.Iterable values) { + ensureExcludedMobileCarriersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedMobileCarriers_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedMobileCarriers() { + excludedMobileCarriers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A list of mobile carrier resource names that should be excluded.
    +     * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedMobileCarriers to add. + * @return This builder for chaining. + */ + public Builder addExcludedMobileCarriersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedMobileCarriersIsMutable(); + excludedMobileCarriers_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.MobileCarrierTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.MobileCarrierTargeting) + private static final com.google.ads.admanager.v1.MobileCarrierTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.MobileCarrierTargeting(); + } + + public static com.google.ads.admanager.v1.MobileCarrierTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MobileCarrierTargeting 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.admanager.v1.MobileCarrierTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierTargetingOrBuilder.java new file mode 100644 index 000000000000..2c54b3d81c4e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierTargetingOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface MobileCarrierTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.MobileCarrierTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedMobileCarriers. + */ + java.util.List getTargetedMobileCarriersList(); + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedMobileCarriers. + */ + int getTargetedMobileCarriersCount(); + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedMobileCarriers at the given index. + */ + java.lang.String getTargetedMobileCarriers(int index); + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be
    +   * targeted/included.
    +   * 
    + * + * + * repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedMobileCarriers at the given index. + */ + com.google.protobuf.ByteString getTargetedMobileCarriersBytes(int index); + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedMobileCarriers. + */ + java.util.List getExcludedMobileCarriersList(); + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedMobileCarriers. + */ + int getExcludedMobileCarriersCount(); + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedMobileCarriers at the given index. + */ + java.lang.String getExcludedMobileCarriers(int index); + + /** + * + * + *
    +   * Optional. A list of mobile carrier resource names that should be excluded.
    +   * 
    + * + * + * repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedMobileCarriers at the given index. + */ + com.google.protobuf.ByteString getExcludedMobileCarriersBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDevice.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDevice.java new file mode 100644 index 000000000000..e7be96f057d5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDevice.java @@ -0,0 +1,1121 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents a mobile device.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileDevice} + */ +public final class MobileDevice extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.MobileDevice) + MobileDeviceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MobileDevice.newBuilder() to construct. + private MobileDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MobileDevice() { + name_ = ""; + displayName_ = ""; + manufacturer_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MobileDevice(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceMessagesProto + .internal_static_google_ads_admanager_v1_MobileDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceMessagesProto + .internal_static_google_ads_admanager_v1_MobileDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileDevice.class, + com.google.ads.admanager.v1.MobileDevice.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `MobileDevice`.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * 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. The resource name of the `MobileDevice`.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Output only. The localized name of the mobile device.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The localized name of the mobile device.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The localized name of the mobile device.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANUFACTURER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object manufacturer_ = ""; + + /** + * + * + *
    +   * Output only. The manufacturer associated with the mobile device.
    +   * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the manufacturer field is set. + */ + @java.lang.Override + public boolean hasManufacturer() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. The manufacturer associated with the mobile device.
    +   * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The manufacturer. + */ + @java.lang.Override + public java.lang.String getManufacturer() { + java.lang.Object ref = manufacturer_; + 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(); + manufacturer_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The manufacturer associated with the mobile device.
    +   * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for manufacturer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getManufacturerBytes() { + java.lang.Object ref = manufacturer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + manufacturer_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, manufacturer_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, manufacturer_); + } + 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.admanager.v1.MobileDevice)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.MobileDevice other = (com.google.ads.admanager.v1.MobileDevice) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasManufacturer() != other.hasManufacturer()) return false; + if (hasManufacturer()) { + if (!getManufacturer().equals(other.getManufacturer())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasManufacturer()) { + hash = (37 * hash) + MANUFACTURER_FIELD_NUMBER; + hash = (53 * hash) + getManufacturer().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.MobileDevice parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileDevice 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.admanager.v1.MobileDevice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileDevice 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.admanager.v1.MobileDevice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileDevice parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileDevice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileDevice parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileDevice parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileDevice parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileDevice parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileDevice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.MobileDevice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a mobile device.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileDevice} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.MobileDevice) + com.google.ads.admanager.v1.MobileDeviceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceMessagesProto + .internal_static_google_ads_admanager_v1_MobileDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceMessagesProto + .internal_static_google_ads_admanager_v1_MobileDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileDevice.class, + com.google.ads.admanager.v1.MobileDevice.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.MobileDevice.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + manufacturer_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.MobileDeviceMessagesProto + .internal_static_google_ads_admanager_v1_MobileDevice_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileDevice getDefaultInstanceForType() { + return com.google.ads.admanager.v1.MobileDevice.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileDevice build() { + com.google.ads.admanager.v1.MobileDevice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileDevice buildPartial() { + com.google.ads.admanager.v1.MobileDevice result = + new com.google.ads.admanager.v1.MobileDevice(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.MobileDevice result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.manufacturer_ = manufacturer_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.MobileDevice) { + return mergeFrom((com.google.ads.admanager.v1.MobileDevice) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.MobileDevice other) { + if (other == com.google.ads.admanager.v1.MobileDevice.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasManufacturer()) { + manufacturer_ = other.manufacturer_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + manufacturer_ = 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 name_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `MobileDevice`.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * 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. The resource name of the `MobileDevice`.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * 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. The resource name of the `MobileDevice`.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `MobileDevice`.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `MobileDevice`.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Output only. The localized name of the mobile device.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile device.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile device.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile device.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile device.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The localized name of the mobile device.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object manufacturer_ = ""; + + /** + * + * + *
    +     * Output only. The manufacturer associated with the mobile device.
    +     * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the manufacturer field is set. + */ + public boolean hasManufacturer() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. The manufacturer associated with the mobile device.
    +     * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The manufacturer. + */ + public java.lang.String getManufacturer() { + java.lang.Object ref = manufacturer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + manufacturer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The manufacturer associated with the mobile device.
    +     * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for manufacturer. + */ + public com.google.protobuf.ByteString getManufacturerBytes() { + java.lang.Object ref = manufacturer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + manufacturer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The manufacturer associated with the mobile device.
    +     * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The manufacturer to set. + * @return This builder for chaining. + */ + public Builder setManufacturer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + manufacturer_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The manufacturer associated with the mobile device.
    +     * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearManufacturer() { + manufacturer_ = getDefaultInstance().getManufacturer(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The manufacturer associated with the mobile device.
    +     * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +     * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for manufacturer to set. + * @return This builder for chaining. + */ + public Builder setManufacturerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manufacturer_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.MobileDevice) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.MobileDevice) + private static final com.google.ads.admanager.v1.MobileDevice DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.MobileDevice(); + } + + public static com.google.ads.admanager.v1.MobileDevice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MobileDevice 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.admanager.v1.MobileDevice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceMessagesProto.java new file mode 100644 index 000000000000..245467f8024f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceMessagesProto.java @@ -0,0 +1,89 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class MobileDeviceMessagesProto { + private MobileDeviceMessagesProto() {} + + 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_admanager_v1_MobileDevice_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_MobileDevice_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/ads/admanager/v1/mobile_device_" + + "messages.proto\022\027google.ads.admanager.v1\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\"\263\002\n\014MobileDevice\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\010\022\036\n\014display_name\030\002 \001(\tB\003\340" + + "A\003H\000\210\001\001\022N\n\014manufacturer\030\003 \001(\tB3\340A\003\372A-\n+a" + + "dmanager.googleapis.com/DeviceManufactur" + + "erH\001\210\001\001:~\352A{\n%admanager.googleapis.com/M" + + "obileDevice\0225networks/{network_code}/mob" + + "ileDevices/{mobile_device}*\rmobileDevice" + + "s2\014mobileDeviceB\017\n\r_display_nameB\017\n\r_man" + + "ufacturerB\315\001\n\033com.google.ads.admanager.v" + + "1B\031MobileDeviceMessagesProtoP\001Z@google.g" + + "olang.org/genproto/googleapis/ads/admana" + + "ger/v1;admanager\252\002\027Google.Ads.AdManager." + + "V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::A" + + "ds::AdManager::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(), + }); + internal_static_google_ads_admanager_v1_MobileDevice_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_MobileDevice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_MobileDevice_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Manufacturer", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceName.java new file mode 100644 index 000000000000..50d1ebdae153 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 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.admanager.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 MobileDeviceName implements ResourceName { + private static final PathTemplate NETWORK_CODE_MOBILE_DEVICE = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/mobileDevices/{mobile_device}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String mobileDevice; + + @Deprecated + protected MobileDeviceName() { + networkCode = null; + mobileDevice = null; + } + + private MobileDeviceName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + mobileDevice = Preconditions.checkNotNull(builder.getMobileDevice()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getMobileDevice() { + return mobileDevice; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MobileDeviceName of(String networkCode, String mobileDevice) { + return newBuilder().setNetworkCode(networkCode).setMobileDevice(mobileDevice).build(); + } + + public static String format(String networkCode, String mobileDevice) { + return newBuilder() + .setNetworkCode(networkCode) + .setMobileDevice(mobileDevice) + .build() + .toString(); + } + + public static MobileDeviceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_MOBILE_DEVICE.validatedMatch( + formattedString, "MobileDeviceName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("mobile_device")); + } + + 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 (MobileDeviceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_MOBILE_DEVICE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (mobileDevice != null) { + fieldMapBuilder.put("mobile_device", mobileDevice); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_MOBILE_DEVICE.instantiate( + "network_code", networkCode, "mobile_device", mobileDevice); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MobileDeviceName that = ((MobileDeviceName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.mobileDevice, that.mobileDevice); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(mobileDevice); + return h; + } + + /** Builder for networks/{network_code}/mobileDevices/{mobile_device}. */ + public static class Builder { + private String networkCode; + private String mobileDevice; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getMobileDevice() { + return mobileDevice; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setMobileDevice(String mobileDevice) { + this.mobileDevice = mobileDevice; + return this; + } + + private Builder(MobileDeviceName mobileDeviceName) { + this.networkCode = mobileDeviceName.networkCode; + this.mobileDevice = mobileDeviceName.mobileDevice; + } + + public MobileDeviceName build() { + return new MobileDeviceName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceOrBuilder.java new file mode 100644 index 000000000000..dcf051171467 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceOrBuilder.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface MobileDeviceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.MobileDevice) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `MobileDevice`.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `MobileDevice`.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The localized name of the mobile device.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Output only. The localized name of the mobile device.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Output only. The localized name of the mobile device.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
    +   * Output only. The manufacturer associated with the mobile device.
    +   * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the manufacturer field is set. + */ + boolean hasManufacturer(); + + /** + * + * + *
    +   * Output only. The manufacturer associated with the mobile device.
    +   * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The manufacturer. + */ + java.lang.String getManufacturer(); + + /** + * + * + *
    +   * Output only. The manufacturer associated with the mobile device.
    +   * Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}`
    +   * 
    + * + * + * optional string manufacturer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for manufacturer. + */ + com.google.protobuf.ByteString getManufacturerBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceProto.java new file mode 100644 index 000000000000..4ef34709f305 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceProto.java @@ -0,0 +1,140 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class MobileDeviceServiceProto { + private MobileDeviceServiceProto() {} + + 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_admanager_v1_GetMobileDeviceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetMobileDeviceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_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/ads/admanager/v1/mobile_device_" + + "service.proto\022\027google.ads.admanager.v1\0324" + + "google/ads/admanager/v1/mobile_device_messages.proto\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resource.proto\"U\n" + + "\026GetMobileDeviceRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%admanager.googleapis.com/MobileDevice\"\304\001\n" + + "\030ListMobileDevicesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\207\001\n" + + "\031ListMobileDevicesResponse\022=\n" + + "\016mobile_devices\030\001 \003(\0132%.google.ads.admanager.v1.MobileDevice\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\265\003\n" + + "\023MobileDeviceService\022\237\001\n" + + "\017GetMobileDevice\022/.google.ads.admanager.v1.GetMobileDeviceReq" + + "uest\032%.google.ads.admanager.v1.MobileDev" + + "ice\"4\332A\004name\202\323\344\223\002\'\022%/v1/{name=networks/*/mobileDevices/*}\022\262\001\n" + + "\021ListMobileDevices\0221.google.ads.admanager.v1.ListMobileDevi" + + "cesRequest\0322.google.ads.admanager.v1.Lis" + + "tMobileDevicesResponse\"6\332A\006parent\202\323\344\223\002\'\022" + + "%/v1/{parent=networks/*}/mobileDevices\032G" + + "\312A\030admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\314\001\n" + + "\033com.google.ads.admanager.v1B\030MobileDeviceSer" + + "viceProtoP\001Z@google.golang.org/genproto/" + + "googleapis/ads/admanager/v1;admanager\252\002\027" + + "Google.Ads.AdManager.V1\312\002\027Google\\Ads\\AdM" + + "anager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.MobileDeviceMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetMobileDeviceRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetMobileDeviceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetMobileDeviceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListMobileDevicesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListMobileDevicesResponse_descriptor, + new java.lang.String[] { + "MobileDevices", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.MobileDeviceMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodel.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodel.java new file mode 100644 index 000000000000..5a189df1a122 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodel.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents a mobile device submodel.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileDeviceSubmodel} + */ +public final class MobileDeviceSubmodel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.MobileDeviceSubmodel) + MobileDeviceSubmodelOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MobileDeviceSubmodel.newBuilder() to construct. + private MobileDeviceSubmodel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MobileDeviceSubmodel() { + name_ = ""; + displayName_ = ""; + mobileDevice_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MobileDeviceSubmodel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelMessagesProto + .internal_static_google_ads_admanager_v1_MobileDeviceSubmodel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelMessagesProto + .internal_static_google_ads_admanager_v1_MobileDeviceSubmodel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileDeviceSubmodel.class, + com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `MobileDeviceSubmodel`.
    +   * Format:
    +   * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}`
    +   * 
    + * + * 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. The resource name of the `MobileDeviceSubmodel`.
    +   * Format:
    +   * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}`
    +   * 
    + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Output only. The display name of the mobile device submodel.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The display name of the mobile device submodel.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The display name of the mobile device submodel.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MOBILE_DEVICE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object mobileDevice_ = ""; + + /** + * + * + *
    +   * Output only. The mobile device associated with the submodel.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the mobileDevice field is set. + */ + @java.lang.Override + public boolean hasMobileDevice() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. The mobile device associated with the submodel.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The mobileDevice. + */ + @java.lang.Override + public java.lang.String getMobileDevice() { + java.lang.Object ref = mobileDevice_; + 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(); + mobileDevice_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The mobile device associated with the submodel.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mobileDevice. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMobileDeviceBytes() { + java.lang.Object ref = mobileDevice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mobileDevice_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mobileDevice_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mobileDevice_); + } + 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.admanager.v1.MobileDeviceSubmodel)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.MobileDeviceSubmodel other = + (com.google.ads.admanager.v1.MobileDeviceSubmodel) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasMobileDevice() != other.hasMobileDevice()) return false; + if (hasMobileDevice()) { + if (!getMobileDevice().equals(other.getMobileDevice())) 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(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasMobileDevice()) { + hash = (37 * hash) + MOBILE_DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getMobileDevice().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel 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.admanager.v1.MobileDeviceSubmodel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel 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.admanager.v1.MobileDeviceSubmodel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.MobileDeviceSubmodel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a mobile device submodel.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.MobileDeviceSubmodel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.MobileDeviceSubmodel) + com.google.ads.admanager.v1.MobileDeviceSubmodelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelMessagesProto + .internal_static_google_ads_admanager_v1_MobileDeviceSubmodel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelMessagesProto + .internal_static_google_ads_admanager_v1_MobileDeviceSubmodel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.MobileDeviceSubmodel.class, + com.google.ads.admanager.v1.MobileDeviceSubmodel.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.MobileDeviceSubmodel.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + mobileDevice_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.MobileDeviceSubmodelMessagesProto + .internal_static_google_ads_admanager_v1_MobileDeviceSubmodel_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileDeviceSubmodel getDefaultInstanceForType() { + return com.google.ads.admanager.v1.MobileDeviceSubmodel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileDeviceSubmodel build() { + com.google.ads.admanager.v1.MobileDeviceSubmodel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.MobileDeviceSubmodel buildPartial() { + com.google.ads.admanager.v1.MobileDeviceSubmodel result = + new com.google.ads.admanager.v1.MobileDeviceSubmodel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.MobileDeviceSubmodel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mobileDevice_ = mobileDevice_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.MobileDeviceSubmodel) { + return mergeFrom((com.google.ads.admanager.v1.MobileDeviceSubmodel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.MobileDeviceSubmodel other) { + if (other == com.google.ads.admanager.v1.MobileDeviceSubmodel.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMobileDevice()) { + mobileDevice_ = other.mobileDevice_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + mobileDevice_ = 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 name_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `MobileDeviceSubmodel`.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}`
    +     * 
    + * + * 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. The resource name of the `MobileDeviceSubmodel`.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}`
    +     * 
    + * + * 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. The resource name of the `MobileDeviceSubmodel`.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `MobileDeviceSubmodel`.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `MobileDeviceSubmodel`.
    +     * Format:
    +     * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Output only. The display name of the mobile device submodel.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The display name of the mobile device submodel.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The display name of the mobile device submodel.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The display name of the mobile device submodel.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The display name of the mobile device submodel.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The display name of the mobile device submodel.
    +     * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object mobileDevice_ = ""; + + /** + * + * + *
    +     * Output only. The mobile device associated with the submodel.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the mobileDevice field is set. + */ + public boolean hasMobileDevice() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. The mobile device associated with the submodel.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The mobileDevice. + */ + public java.lang.String getMobileDevice() { + java.lang.Object ref = mobileDevice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mobileDevice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The mobile device associated with the submodel.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mobileDevice. + */ + public com.google.protobuf.ByteString getMobileDeviceBytes() { + java.lang.Object ref = mobileDevice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mobileDevice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The mobile device associated with the submodel.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The mobileDevice to set. + * @return This builder for chaining. + */ + public Builder setMobileDevice(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mobileDevice_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The mobile device associated with the submodel.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMobileDevice() { + mobileDevice_ = getDefaultInstance().getMobileDevice(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The mobile device associated with the submodel.
    +     * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +     * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for mobileDevice to set. + * @return This builder for chaining. + */ + public Builder setMobileDeviceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mobileDevice_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.MobileDeviceSubmodel) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.MobileDeviceSubmodel) + private static final com.google.ads.admanager.v1.MobileDeviceSubmodel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.MobileDeviceSubmodel(); + } + + public static com.google.ads.admanager.v1.MobileDeviceSubmodel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MobileDeviceSubmodel 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.admanager.v1.MobileDeviceSubmodel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelMessagesProto.java new file mode 100644 index 000000000000..ce8ee8d6a5fa --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelMessagesProto.java @@ -0,0 +1,91 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class MobileDeviceSubmodelMessagesProto { + private MobileDeviceSubmodelMessagesProto() {} + + 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_admanager_v1_MobileDeviceSubmodel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_MobileDeviceSubmodel_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/admanager/v1/mobile_device_" + + "submodel_messages.proto\022\027google.ads.adma" + + "nager.v1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\"\342\002\n\024MobileD" + + "eviceSubmodel\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\036\n\014disp" + + "lay_name\030\002 \001(\tB\003\340A\003H\000\210\001\001\022I\n\rmobile_devic" + + "e\030\003 \001(\tB-\340A\003\372A\'\n%admanager.googleapis.co" + + "m/MobileDeviceH\001\210\001\001:\250\001\352A\244\001\n-admanager.go" + + "ogleapis.com/MobileDeviceSubmodel\022Fnetwo" + + "rks/{network_code}/mobileDeviceSubmodels" + + "/{mobile_device_submodel}*\025mobileDeviceS" + + "ubmodels2\024mobileDeviceSubmodelB\017\n\r_displ" + + "ay_nameB\020\n\016_mobile_deviceB\325\001\n\033com.google" + + ".ads.admanager.v1B!MobileDeviceSubmodelM" + + "essagesProtoP\001Z@google.golang.org/genpro" + + "to/googleapis/ads/admanager/v1;admanager" + + "\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\" + + "AdManager\\V1\352\002\032Google::Ads::AdManager::V" + + "1b\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(), + }); + internal_static_google_ads_admanager_v1_MobileDeviceSubmodel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_MobileDeviceSubmodel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_MobileDeviceSubmodel_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "MobileDevice", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelName.java new file mode 100644 index 000000000000..56f7ac73df10 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelName.java @@ -0,0 +1,201 @@ +/* + * Copyright 2025 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.admanager.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 MobileDeviceSubmodelName implements ResourceName { + private static final PathTemplate NETWORK_CODE_MOBILE_DEVICE_SUBMODEL = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String mobileDeviceSubmodel; + + @Deprecated + protected MobileDeviceSubmodelName() { + networkCode = null; + mobileDeviceSubmodel = null; + } + + private MobileDeviceSubmodelName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + mobileDeviceSubmodel = Preconditions.checkNotNull(builder.getMobileDeviceSubmodel()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getMobileDeviceSubmodel() { + return mobileDeviceSubmodel; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MobileDeviceSubmodelName of(String networkCode, String mobileDeviceSubmodel) { + return newBuilder() + .setNetworkCode(networkCode) + .setMobileDeviceSubmodel(mobileDeviceSubmodel) + .build(); + } + + public static String format(String networkCode, String mobileDeviceSubmodel) { + return newBuilder() + .setNetworkCode(networkCode) + .setMobileDeviceSubmodel(mobileDeviceSubmodel) + .build() + .toString(); + } + + public static MobileDeviceSubmodelName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_MOBILE_DEVICE_SUBMODEL.validatedMatch( + formattedString, "MobileDeviceSubmodelName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("mobile_device_submodel")); + } + + 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 (MobileDeviceSubmodelName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_MOBILE_DEVICE_SUBMODEL.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (mobileDeviceSubmodel != null) { + fieldMapBuilder.put("mobile_device_submodel", mobileDeviceSubmodel); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_MOBILE_DEVICE_SUBMODEL.instantiate( + "network_code", networkCode, "mobile_device_submodel", mobileDeviceSubmodel); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MobileDeviceSubmodelName that = ((MobileDeviceSubmodelName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.mobileDeviceSubmodel, that.mobileDeviceSubmodel); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(mobileDeviceSubmodel); + return h; + } + + /** Builder for networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}. */ + public static class Builder { + private String networkCode; + private String mobileDeviceSubmodel; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getMobileDeviceSubmodel() { + return mobileDeviceSubmodel; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setMobileDeviceSubmodel(String mobileDeviceSubmodel) { + this.mobileDeviceSubmodel = mobileDeviceSubmodel; + return this; + } + + private Builder(MobileDeviceSubmodelName mobileDeviceSubmodelName) { + this.networkCode = mobileDeviceSubmodelName.networkCode; + this.mobileDeviceSubmodel = mobileDeviceSubmodelName.mobileDeviceSubmodel; + } + + public MobileDeviceSubmodelName build() { + return new MobileDeviceSubmodelName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelOrBuilder.java new file mode 100644 index 000000000000..9040533ad541 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface MobileDeviceSubmodelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.MobileDeviceSubmodel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `MobileDeviceSubmodel`.
    +   * Format:
    +   * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `MobileDeviceSubmodel`.
    +   * Format:
    +   * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The display name of the mobile device submodel.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Output only. The display name of the mobile device submodel.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Output only. The display name of the mobile device submodel.
    +   * 
    + * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
    +   * Output only. The mobile device associated with the submodel.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the mobileDevice field is set. + */ + boolean hasMobileDevice(); + + /** + * + * + *
    +   * Output only. The mobile device associated with the submodel.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The mobileDevice. + */ + java.lang.String getMobileDevice(); + + /** + * + * + *
    +   * Output only. The mobile device associated with the submodel.
    +   * Format: `networks/{network_code}/mobileDevices/{mobile_device}`
    +   * 
    + * + * + * optional string mobile_device = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mobileDevice. + */ + com.google.protobuf.ByteString getMobileDeviceBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceProto.java new file mode 100644 index 000000000000..7445971f2b95 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceProto.java @@ -0,0 +1,143 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/mobile_device_submodel_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class MobileDeviceSubmodelServiceProto { + private MobileDeviceSubmodelServiceProto() {} + + 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_admanager_v1_GetMobileDeviceSubmodelRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetMobileDeviceSubmodelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_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" + + "\332A\006pa" + + "rent\202\323\344\223\002/\022-/v1/{parent=networks/*}/mobi" + + "leDeviceSubmodels\032G\312A\030admanager.googleap" + + "is.com\322A)https://www.googleapis.com/auth/admanagerB\324\001\n" + + "\033com.google.ads.admanager.v1B MobileDeviceSubmodelServiceProtoP\001Z@" + + "google.golang.org/genproto/googleapis/ad" + + "s/admanager/v1;admanager\252\002\027Google.Ads.Ad" + + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032G" + + "oogle::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.MobileDeviceSubmodelMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetMobileDeviceSubmodelRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetMobileDeviceSubmodelRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetMobileDeviceSubmodelRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListMobileDeviceSubmodelsResponse_descriptor, + new java.lang.String[] { + "MobileDeviceSubmodels", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.MobileDeviceSubmodelMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java index b34e452be45a..a7baec6734d8 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java @@ -852,8 +852,7 @@ public com.google.protobuf.ByteString getEffectiveTeamsBytes(int index) { * *
        * Output only. The resource name of the User who created the Order on behalf
    -   * of the advertiser. This value is assigned by Google. Format:
    -   * "networks/{network_code}/users/{user_id}"
    +   * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
        * 
    * * @@ -872,8 +871,7 @@ public boolean hasCreator() { * *
        * Output only. The resource name of the User who created the Order on behalf
    -   * of the advertiser. This value is assigned by Google. Format:
    -   * "networks/{network_code}/users/{user_id}"
    +   * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
        * 
    * * @@ -900,8 +898,7 @@ public java.lang.String getCreator() { * *
        * Output only. The resource name of the User who created the Order on behalf
    -   * of the advertiser. This value is assigned by Google. Format:
    -   * "networks/{network_code}/users/{user_id}"
    +   * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
        * 
    * * @@ -1002,9 +999,9 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * are eligible to begin serving. This attribute is derived from the line item
    -   * of the order that has the earliest LineItem.start_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * are eligible to begin serving. This attribute is derived from the Line item
    +   * of the order that has the earliest `LineItem.start_time`.
        * 
    * * @@ -1022,9 +1019,9 @@ public boolean hasStartTime() { * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * are eligible to begin serving. This attribute is derived from the line item
    -   * of the order that has the earliest LineItem.start_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * are eligible to begin serving. This attribute is derived from the Line item
    +   * of the order that has the earliest `LineItem.start_time`.
        * 
    * * @@ -1042,9 +1039,9 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * are eligible to begin serving. This attribute is derived from the line item
    -   * of the order that has the earliest LineItem.start_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * are eligible to begin serving. This attribute is derived from the Line item
    +   * of the order that has the earliest `LineItem.start_time`.
        * 
    * * @@ -1063,9 +1060,9 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * stop being served. This attribute is derived from the line item of the
    -   * order that has the latest LineItem.end_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * stop being served. This attribute is derived from the Line item of the
    +   * order that has the latest `LineItem.end_time`.
        * 
    * * @@ -1083,9 +1080,9 @@ public boolean hasEndTime() { * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * stop being served. This attribute is derived from the line item of the
    -   * order that has the latest LineItem.end_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * stop being served. This attribute is derived from the Line item of the
    +   * order that has the latest `LineItem.end_time`.
        * 
    * * @@ -1103,9 +1100,9 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * stop being served. This attribute is derived from the line item of the
    -   * order that has the latest LineItem.end_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * stop being served. This attribute is derived from the Line item of the
    +   * order that has the latest `LineItem.end_time`.
        * 
    * * @@ -5123,8 +5120,7 @@ public Builder addEffectiveTeamsBytes(com.google.protobuf.ByteString value) { * *
          * Output only. The resource name of the User who created the Order on behalf
    -     * of the advertiser. This value is assigned by Google. Format:
    -     * "networks/{network_code}/users/{user_id}"
    +     * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
          * 
    * * @@ -5142,8 +5138,7 @@ public boolean hasCreator() { * *
          * Output only. The resource name of the User who created the Order on behalf
    -     * of the advertiser. This value is assigned by Google. Format:
    -     * "networks/{network_code}/users/{user_id}"
    +     * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
          * 
    * * @@ -5169,8 +5164,7 @@ public java.lang.String getCreator() { * *
          * Output only. The resource name of the User who created the Order on behalf
    -     * of the advertiser. This value is assigned by Google. Format:
    -     * "networks/{network_code}/users/{user_id}"
    +     * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
          * 
    * * @@ -5196,8 +5190,7 @@ public com.google.protobuf.ByteString getCreatorBytes() { * *
          * Output only. The resource name of the User who created the Order on behalf
    -     * of the advertiser. This value is assigned by Google. Format:
    -     * "networks/{network_code}/users/{user_id}"
    +     * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
          * 
    * * @@ -5222,8 +5215,7 @@ public Builder setCreator(java.lang.String value) { * *
          * Output only. The resource name of the User who created the Order on behalf
    -     * of the advertiser. This value is assigned by Google. Format:
    -     * "networks/{network_code}/users/{user_id}"
    +     * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
          * 
    * * @@ -5244,8 +5236,7 @@ public Builder clearCreator() { * *
          * Output only. The resource name of the User who created the Order on behalf
    -     * of the advertiser. This value is assigned by Google. Format:
    -     * "networks/{network_code}/users/{user_id}"
    +     * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
          * 
    * * @@ -5409,9 +5400,9 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * are eligible to begin serving. This attribute is derived from the line item
    -     * of the order that has the earliest LineItem.start_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * are eligible to begin serving. This attribute is derived from the Line item
    +     * of the order that has the earliest `LineItem.start_time`.
          * 
    * * @@ -5428,9 +5419,9 @@ public boolean hasStartTime() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * are eligible to begin serving. This attribute is derived from the line item
    -     * of the order that has the earliest LineItem.start_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * are eligible to begin serving. This attribute is derived from the Line item
    +     * of the order that has the earliest `LineItem.start_time`.
          * 
    * * @@ -5451,9 +5442,9 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * are eligible to begin serving. This attribute is derived from the line item
    -     * of the order that has the earliest LineItem.start_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * are eligible to begin serving. This attribute is derived from the Line item
    +     * of the order that has the earliest `LineItem.start_time`.
          * 
    * * @@ -5478,9 +5469,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * are eligible to begin serving. This attribute is derived from the line item
    -     * of the order that has the earliest LineItem.start_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * are eligible to begin serving. This attribute is derived from the Line item
    +     * of the order that has the earliest `LineItem.start_time`.
          * 
    * * @@ -5502,9 +5493,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * are eligible to begin serving. This attribute is derived from the line item
    -     * of the order that has the earliest LineItem.start_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * are eligible to begin serving. This attribute is derived from the Line item
    +     * of the order that has the earliest `LineItem.start_time`.
          * 
    * * @@ -5534,9 +5525,9 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * are eligible to begin serving. This attribute is derived from the line item
    -     * of the order that has the earliest LineItem.start_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * are eligible to begin serving. This attribute is derived from the Line item
    +     * of the order that has the earliest `LineItem.start_time`.
          * 
    * * @@ -5558,9 +5549,9 @@ public Builder clearStartTime() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * are eligible to begin serving. This attribute is derived from the line item
    -     * of the order that has the earliest LineItem.start_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * are eligible to begin serving. This attribute is derived from the Line item
    +     * of the order that has the earliest `LineItem.start_time`.
          * 
    * * @@ -5577,9 +5568,9 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * are eligible to begin serving. This attribute is derived from the line item
    -     * of the order that has the earliest LineItem.start_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * are eligible to begin serving. This attribute is derived from the Line item
    +     * of the order that has the earliest `LineItem.start_time`.
          * 
    * * @@ -5598,9 +5589,9 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * are eligible to begin serving. This attribute is derived from the line item
    -     * of the order that has the earliest LineItem.start_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * are eligible to begin serving. This attribute is derived from the Line item
    +     * of the order that has the earliest `LineItem.start_time`.
          * 
    * * @@ -5635,9 +5626,9 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * stop being served. This attribute is derived from the line item of the
    -     * order that has the latest LineItem.end_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * stop being served. This attribute is derived from the Line item of the
    +     * order that has the latest `LineItem.end_time`.
          * 
    * * @@ -5654,9 +5645,9 @@ public boolean hasEndTime() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * stop being served. This attribute is derived from the line item of the
    -     * order that has the latest LineItem.end_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * stop being served. This attribute is derived from the Line item of the
    +     * order that has the latest `LineItem.end_time`.
          * 
    * * @@ -5677,9 +5668,9 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * stop being served. This attribute is derived from the line item of the
    -     * order that has the latest LineItem.end_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * stop being served. This attribute is derived from the Line item of the
    +     * order that has the latest `LineItem.end_time`.
          * 
    * * @@ -5704,9 +5695,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * stop being served. This attribute is derived from the line item of the
    -     * order that has the latest LineItem.end_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * stop being served. This attribute is derived from the Line item of the
    +     * order that has the latest `LineItem.end_time`.
          * 
    * * @@ -5728,9 +5719,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * stop being served. This attribute is derived from the line item of the
    -     * order that has the latest LineItem.end_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * stop being served. This attribute is derived from the Line item of the
    +     * order that has the latest `LineItem.end_time`.
          * 
    * * @@ -5760,9 +5751,9 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * stop being served. This attribute is derived from the line item of the
    -     * order that has the latest LineItem.end_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * stop being served. This attribute is derived from the Line item of the
    +     * order that has the latest `LineItem.end_time`.
          * 
    * * @@ -5784,9 +5775,9 @@ public Builder clearEndTime() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * stop being served. This attribute is derived from the line item of the
    -     * order that has the latest LineItem.end_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * stop being served. This attribute is derived from the Line item of the
    +     * order that has the latest `LineItem.end_time`.
          * 
    * * @@ -5803,9 +5794,9 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * stop being served. This attribute is derived from the line item of the
    -     * order that has the latest LineItem.end_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * stop being served. This attribute is derived from the Line item of the
    +     * order that has the latest `LineItem.end_time`.
          * 
    * * @@ -5824,9 +5815,9 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
    -     * Output only. The instant at which the Order and its associated line items
    -     * stop being served. This attribute is derived from the line item of the
    -     * order that has the latest LineItem.end_time.
    +     * Output only. The instant at which the Order and its associated Line items
    +     * stop being served. This attribute is derived from the Line item of the
    +     * order that has the latest `LineItem.end_time`.
          * 
    * * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java index 5fa54fa186ac..e2305ac5e6eb 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java @@ -565,8 +565,7 @@ public interface OrderOrBuilder * *
        * Output only. The resource name of the User who created the Order on behalf
    -   * of the advertiser. This value is assigned by Google. Format:
    -   * "networks/{network_code}/users/{user_id}"
    +   * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
        * 
    * * @@ -582,8 +581,7 @@ public interface OrderOrBuilder * *
        * Output only. The resource name of the User who created the Order on behalf
    -   * of the advertiser. This value is assigned by Google. Format:
    -   * "networks/{network_code}/users/{user_id}"
    +   * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
        * 
    * * @@ -599,8 +597,7 @@ public interface OrderOrBuilder * *
        * Output only. The resource name of the User who created the Order on behalf
    -   * of the advertiser. This value is assigned by Google. Format:
    -   * "networks/{network_code}/users/{user_id}"
    +   * of the advertiser. Format: "networks/{network_code}/users/{user_id}"
        * 
    * * @@ -657,9 +654,9 @@ public interface OrderOrBuilder * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * are eligible to begin serving. This attribute is derived from the line item
    -   * of the order that has the earliest LineItem.start_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * are eligible to begin serving. This attribute is derived from the Line item
    +   * of the order that has the earliest `LineItem.start_time`.
        * 
    * * @@ -674,9 +671,9 @@ public interface OrderOrBuilder * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * are eligible to begin serving. This attribute is derived from the line item
    -   * of the order that has the earliest LineItem.start_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * are eligible to begin serving. This attribute is derived from the Line item
    +   * of the order that has the earliest `LineItem.start_time`.
        * 
    * * @@ -691,9 +688,9 @@ public interface OrderOrBuilder * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * are eligible to begin serving. This attribute is derived from the line item
    -   * of the order that has the earliest LineItem.start_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * are eligible to begin serving. This attribute is derived from the Line item
    +   * of the order that has the earliest `LineItem.start_time`.
        * 
    * * @@ -706,9 +703,9 @@ public interface OrderOrBuilder * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * stop being served. This attribute is derived from the line item of the
    -   * order that has the latest LineItem.end_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * stop being served. This attribute is derived from the Line item of the
    +   * order that has the latest `LineItem.end_time`.
        * 
    * * @@ -723,9 +720,9 @@ public interface OrderOrBuilder * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * stop being served. This attribute is derived from the line item of the
    -   * order that has the latest LineItem.end_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * stop being served. This attribute is derived from the Line item of the
    +   * order that has the latest `LineItem.end_time`.
        * 
    * * @@ -740,9 +737,9 @@ public interface OrderOrBuilder * * *
    -   * Output only. The instant at which the Order and its associated line items
    -   * stop being served. This attribute is derived from the line item of the
    -   * order that has the latest LineItem.end_time.
    +   * Output only. The instant at which the Order and its associated Line items
    +   * stop being served. This attribute is derived from the Line item of the
    +   * order that has the latest `LineItem.end_time`.
        * 
    * * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java index ada0b931975c..9a1f30cde93e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java @@ -40,6 +40,54 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_admanager_v1_ListPlacementsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_ListPlacementsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreatePlacementRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreatePlacementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdatePlacementRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdatePlacementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -55,7 +103,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/ads/admanager/v1/placement_messages.p" + "roto\032\034google/api/annotations.proto\032\027goog" + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\"O\n" + + "havior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"O\n" + "\023GetPlacementRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"admanager.googleapis.com/Placement\"\301\001\n" @@ -70,21 +119,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ListPlacementsResponse\0226\n\n" + "placements\030\001 \003(\0132\".google.ads.admanager.v1.Placement\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\232\003\n" + + "total_size\030\003 \001(\005\"\216\001\n" + + "\026CreatePlacementRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022:\n" + + "\tplacement\030\002" + + " \001(\0132\".google.ads.admanager.v1.PlacementB\003\340A\002\"\240\001\n" + + "\034BatchCreatePlacementsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022F\n" + + "\010requests\030\002" + + " \003(\0132/.google.ads.admanager.v1.CreatePlacementRequestB\003\340A\002\"W\n" + + "\035BatchCreatePlacementsResponse\0226\n\n" + + "placements\030\001 \003(\0132\".google.ads.admanager.v1.Placement\"\212\001\n" + + "\026UpdatePlacementRequest\022:\n" + + "\tplacement\030\001 \001(\013" + + "2\".google.ads.admanager.v1.PlacementB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\240\001\n" + + "\034BatchUpdatePlacementsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022F\n" + + "\010requests\030\002" + + " \003(\0132/.google.ads.admanager.v1.UpdatePlacementRequestB\003\340A\002\"W\n" + + "\035BatchUpdatePlacementsResponse\0226\n\n" + + "placements\030\001 \003(\0132\".google.ads.admanager.v1.Placement\"\225\001\n" + + "\036BatchActivatePlacementsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0229\n" + + "\005names\030\003 \003(\tB*\340A\002\372A$\n" + + "\"admanager.googleapis.com/Placement\"!\n" + + "\037BatchActivatePlacementsResponse\"\227\001\n" + + " BatchDeactivatePlacementsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0229\n" + + "\005names\030\003 \003(\tB*\340A\002\372A$\n" + + "\"admanager.googleapis.com/Placement\"#\n" + + "!BatchDeactivatePlacementsResponse\"\224\001\n" + + "\035BatchArchivePlacementsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0229\n" + + "\005names\030\003 \003(\tB*\340A\002\372A$\n" + + "\"admanager.googleapis.com/Placement\" \n" + + "\036BatchArchivePlacementsResponse2\320\016\n" + "\020PlacementService\022\223\001\n" - + "\014GetPlacement\022,.google.ads.admanager.v1.GetPlacement" - + "Request\032\".google.ads.admanager.v1.Placem" - + "ent\"1\332A\004name\202\323\344\223\002$\022\"/v1/{name=networks/*/placements/*}\022\246\001\n" - + "\016ListPlacements\022..google.ads.admanager.v1.ListPlacementsReques" - + "t\032/.google.ads.admanager.v1.ListPlacemen" - + "tsResponse\"3\332A\006parent\202\323\344\223\002$\022\"/v1/{parent" - + "=networks/*}/placements\032G\312A\030admanager.go" - + "ogleapis.com\322A)https://www.googleapis.com/auth/admanagerB\311\001\n" - + "\033com.google.ads.admanager.v1B\025PlacementServiceProtoP\001Z@googl" - + "e.golang.org/genproto/googleapis/ads/adm" - + "anager/v1;admanager\252\002\027Google.Ads.AdManag" - + "er.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google" - + "::Ads::AdManager::V1b\006proto3" + + "\014GetPlacement\022,.google.ads.admanager.v1.GetPlacementRequest\032\".goo" + + "gle.ads.admanager.v1.Placement\"1\332A\004name\202" + + "\323\344\223\002$\022\"/v1/{name=networks/*/placements/*}\022\246\001\n" + + "\016ListPlacements\022..google.ads.admanager.v1.ListPlacementsRequest\032/.google.ad" + + "s.admanager.v1.ListPlacementsResponse\"3\332" + + "A\006parent\202\323\344\223\002$\022\"/v1/{parent=networks/*}/placements\022\260\001\n" + + "\017CreatePlacement\022/.google.ads.admanager.v1.CreatePlacementRequest\032" + + "\".google.ads.admanager.v1.Placement\"H\332A\020" + + "parent,placement\202\323\344\223\002/\"\"/v1/{parent=networks/*}/placements:" + + "\tplacement\022\277\001\n" + + "\017UpdatePlacement\022/.google.ads.admanager.v1.Upda" + + "tePlacementRequest\032\".google.ads.admanage" + + "r.v1.Placement\"W\332A\025placement,update_mask" + + "\202\323\344\223\00292,/v1/{placement.name=networks/*/placements/*}:" + + "\tplacement\022\323\001\n" + + "\025BatchCreatePlacements\0225.google.ads.admanager.v1.Batc" + + "hCreatePlacementsRequest\0326.google.ads.admanager.v1.BatchCreatePlacementsResponse" + + "\"K\332A\017parent,requests\202\323\344\223\0023\"./v1/{parent=" + + "networks/*}/placements:batchCreate:\001*\022\323\001\n" + + "\025BatchUpdatePlacements\0225.google.ads.adm" + + "anager.v1.BatchUpdatePlacementsRequest\0326.google.ads.admanager.v1.BatchUpdatePlac" + + "ementsResponse\"K\332A\017parent,requests\202\323\344\223\0023" + + "\"./v1/{parent=networks/*}/placements:batchUpdate:\001*\022\330\001\n" + + "\027BatchActivatePlacements\0227.google.ads.admanager.v1.BatchActivateP" + + "lacementsRequest\0328.google.ads.admanager." + + "v1.BatchActivatePlacementsResponse\"J\332A\014p" + + "arent,names\202\323\344\223\0025\"0/v1/{parent=networks/*}/placements:batchActivate:\001*\022\340\001\n" + + "\031BatchDeactivatePlacements\0229.google.ads.admana" + + "ger.v1.BatchDeactivatePlacementsRequest\032:.google.ads.admanager.v1.BatchDeactivat" + + "ePlacementsResponse\"L\332A\014parent,names\202\323\344\223" + + "\0027\"2/v1/{parent=networks/*}/placements:batchDeactivate:\001*\022\324\001\n" + + "\026BatchArchivePlacements\0226.google.ads.admanager.v1.BatchArch" + + "ivePlacementsRequest\0327.google.ads.admana" + + "ger.v1.BatchArchivePlacementsResponse\"I\332" + + "A\014parent,names\202\323\344\223\0024\"//v1/{parent=networ" + + "ks/*}/placements:batchArchive:\001*\032G\312A\030adm" + + "anager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\311\001\n" + + "\033com.google.ads.admanager.v1B\025PlacementServiceProto" + + "P\001Z@google.golang.org/genproto/googleapi" + + "s/ads/admanager/v1;admanager\252\002\027Google.Ad" + + "s.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1" + + "\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -95,6 +215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), }); internal_static_google_ads_admanager_v1_GetPlacementRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -120,6 +241,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Placements", "NextPageToken", "TotalSize", }); + internal_static_google_ads_admanager_v1_CreatePlacementRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreatePlacementRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreatePlacementRequest_descriptor, + new java.lang.String[] { + "Parent", "Placement", + }); + internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreatePlacementsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreatePlacementsResponse_descriptor, + new java.lang.String[] { + "Placements", + }); + internal_static_google_ads_admanager_v1_UpdatePlacementRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_admanager_v1_UpdatePlacementRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdatePlacementRequest_descriptor, + new java.lang.String[] { + "Placement", "UpdateMask", + }); + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdatePlacementsResponse_descriptor, + new java.lang.String[] { + "Placements", + }); + internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivatePlacementsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivatePlacementsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivatePlacementsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchArchivePlacementsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchArchivePlacementsResponse_descriptor, + new java.lang.String[] {}); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -135,6 +346,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java index 1d4afed424d6..b375f7517e9e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java @@ -71,62 +71,45 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Valid time period columns.
    +   * The visibility of a report.
        * 
    * - * Protobuf enum {@code google.ads.admanager.v1.Report.TimePeriodColumn} + * Protobuf enum {@code google.ads.admanager.v1.Report.Visibility} */ - public enum TimePeriodColumn implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -     * Default value. Report will have no time period column.
    -     * 
    - * - * TIME_PERIOD_COLUMN_UNSPECIFIED = 0; - */ - TIME_PERIOD_COLUMN_UNSPECIFIED(0), - /** - * - * - *
    -     * A column for each date in the report.
    -     * 
    - * - * TIME_PERIOD_COLUMN_DATE = 1; - */ - TIME_PERIOD_COLUMN_DATE(1), + public enum Visibility implements com.google.protobuf.ProtocolMessageEnum { /** * * *
    -     * A column for each week in the report.
    +     * Default value. Reports with hidden visibility won't appear in the Ad
    +     * Manager UI.
          * 
    * - * TIME_PERIOD_COLUMN_WEEK = 2; + * HIDDEN = 0; */ - TIME_PERIOD_COLUMN_WEEK(2), + HIDDEN(0), /** * * *
    -     * A column for each month in the report.
    +     * Reports with draft visibility will appear in the Ad Manager UI only if
    +     * the user has configured the UI to show them.
          * 
    * - * TIME_PERIOD_COLUMN_MONTH = 3; + * DRAFT = 1; */ - TIME_PERIOD_COLUMN_MONTH(3), + DRAFT(1), /** * * *
    -     * A column for each quarter in the report.
    +     * Reports with saved visibility will appear in the Ad Manager UI by
    +     * default.
          * 
    * - * TIME_PERIOD_COLUMN_QUARTER = 4; + * SAVED = 2; */ - TIME_PERIOD_COLUMN_QUARTER(4), + SAVED(2), UNRECOGNIZED(-1), ; @@ -134,56 +117,37 @@ public enum TimePeriodColumn implements com.google.protobuf.ProtocolMessageEnum * * *
    -     * Default value. Report will have no time period column.
    -     * 
    - * - * TIME_PERIOD_COLUMN_UNSPECIFIED = 0; - */ - public static final int TIME_PERIOD_COLUMN_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
    -     * A column for each date in the report.
    -     * 
    - * - * TIME_PERIOD_COLUMN_DATE = 1; - */ - public static final int TIME_PERIOD_COLUMN_DATE_VALUE = 1; - - /** - * - * - *
    -     * A column for each week in the report.
    +     * Default value. Reports with hidden visibility won't appear in the Ad
    +     * Manager UI.
          * 
    * - * TIME_PERIOD_COLUMN_WEEK = 2; + * HIDDEN = 0; */ - public static final int TIME_PERIOD_COLUMN_WEEK_VALUE = 2; + public static final int HIDDEN_VALUE = 0; /** * * *
    -     * A column for each month in the report.
    +     * Reports with draft visibility will appear in the Ad Manager UI only if
    +     * the user has configured the UI to show them.
          * 
    * - * TIME_PERIOD_COLUMN_MONTH = 3; + * DRAFT = 1; */ - public static final int TIME_PERIOD_COLUMN_MONTH_VALUE = 3; + public static final int DRAFT_VALUE = 1; /** * * *
    -     * A column for each quarter in the report.
    +     * Reports with saved visibility will appear in the Ad Manager UI by
    +     * default.
          * 
    * - * TIME_PERIOD_COLUMN_QUARTER = 4; + * SAVED = 2; */ - public static final int TIME_PERIOD_COLUMN_QUARTER_VALUE = 4; + public static final int SAVED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -199,7 +163,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static TimePeriodColumn valueOf(int value) { + public static Visibility valueOf(int value) { return forNumber(value); } @@ -207,34 +171,29 @@ public static TimePeriodColumn valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static TimePeriodColumn forNumber(int value) { + public static Visibility forNumber(int value) { switch (value) { case 0: - return TIME_PERIOD_COLUMN_UNSPECIFIED; + return HIDDEN; case 1: - return TIME_PERIOD_COLUMN_DATE; + return DRAFT; case 2: - return TIME_PERIOD_COLUMN_WEEK; - case 3: - return TIME_PERIOD_COLUMN_MONTH; - case 4: - return TIME_PERIOD_COLUMN_QUARTER; + return SAVED; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 TimePeriodColumn findValueByNumber(int number) { - return TimePeriodColumn.forNumber(number); - } - }; + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Visibility findValueByNumber(int number) { + return Visibility.forNumber(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { @@ -252,10 +211,9 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor return com.google.ads.admanager.v1.Report.getDescriptor().getEnumTypes().get(0); } - private static final TimePeriodColumn[] VALUES = values(); + private static final Visibility[] VALUES = values(); - public static TimePeriodColumn valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Visibility valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } @@ -267,43018 +225,11 @@ public static TimePeriodColumn valueOf( private final int value; - private TimePeriodColumn(int value) { + private Visibility(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.TimePeriodColumn) - } - - /** - * - * - *
    -   * Reporting dimensions.
    -   * 
    - * - * Protobuf enum {@code google.ads.admanager.v1.Report.Dimension} - */ - public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -     * Default value. This value is unused.
    -     * 
    - * - * DIMENSION_UNSPECIFIED = 0; - */ - DIMENSION_UNSPECIFIED(0), - /** - * - * - *
    -     * The domain name of the advertiser.
    -     * 
    - * - * ADVERTISER_DOMAIN_NAME = 242; - */ - ADVERTISER_DOMAIN_NAME(242), - /** - * - * - *
    -     * The ID used in an external system for advertiser identification
    -     * 
    - * - * ADVERTISER_EXTERNAL_ID = 228; - */ - ADVERTISER_EXTERNAL_ID(228), - /** - * - * - *
    -     * The ID of an advertiser company assigned to an order
    -     * 
    - * - * ADVERTISER_ID = 131; - */ - ADVERTISER_ID(131), - /** - * - * - *
    -     * Labels applied to the advertiser
    -     * can be used for either competitive exclusion or ad exclusion
    -     * 
    - * - * ADVERTISER_LABELS = 230; - */ - ADVERTISER_LABELS(230), - /** - * - * - *
    -     * Label ids applied to the advertiser
    -     * can be used for either competitive exclusion or ad exclusion
    -     * 
    - * - * ADVERTISER_LABEL_IDS = 229; - */ - ADVERTISER_LABEL_IDS(229), - /** - * - * - *
    -     * The name of an advertiser company assigned to an order
    -     * 
    - * - * ADVERTISER_NAME = 132; - */ - ADVERTISER_NAME(132), - /** - * - * - *
    -     * The name of the contact associated with an advertiser company
    -     * 
    - * - * ADVERTISER_PRIMARY_CONTACT = 227; - */ - ADVERTISER_PRIMARY_CONTACT(227), - /** - * - * - *
    -     * Shows an ENUM value describing whether a given piece of publisher
    -     * inventory was above (ATF) or below the fold (BTF) of a page.
    -     * 
    - * - * AD_LOCATION = 390; - */ - AD_LOCATION(390), - /** - * - * - *
    -     * Shows a localized string describing whether a given piece of publisher
    -     * inventory was above (ATF) or below the fold (BTF) of a page.
    -     * 
    - * - * AD_LOCATION_NAME = 391; - */ - AD_LOCATION_NAME(391), - /** - * - * - *
    -     * The code of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_CODE = 64; - */ - AD_UNIT_CODE(64), - /** - * - * - *
    -     * The code of the first level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_1 = 65; - */ - AD_UNIT_CODE_LEVEL_1(65), - /** - * - * - *
    -     * The code of the tenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_10 = 74; - */ - AD_UNIT_CODE_LEVEL_10(74), - /** - * - * - *
    -     * The code of the eleventh level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_11 = 75; - */ - AD_UNIT_CODE_LEVEL_11(75), - /** - * - * - *
    -     * The code of the twelfth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_12 = 76; - */ - AD_UNIT_CODE_LEVEL_12(76), - /** - * - * - *
    -     * The code of the thirteenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_13 = 77; - */ - AD_UNIT_CODE_LEVEL_13(77), - /** - * - * - *
    -     * The code of the fourteenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_14 = 78; - */ - AD_UNIT_CODE_LEVEL_14(78), - /** - * - * - *
    -     * The code of the fifteenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_15 = 79; - */ - AD_UNIT_CODE_LEVEL_15(79), - /** - * - * - *
    -     * The code of the sixteenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_16 = 80; - */ - AD_UNIT_CODE_LEVEL_16(80), - /** - * - * - *
    -     * The code of the second level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_2 = 66; - */ - AD_UNIT_CODE_LEVEL_2(66), - /** - * - * - *
    -     * The code of the third level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_3 = 67; - */ - AD_UNIT_CODE_LEVEL_3(67), - /** - * - * - *
    -     * The code of the fourth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_4 = 68; - */ - AD_UNIT_CODE_LEVEL_4(68), - /** - * - * - *
    -     * The code of the fifth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_5 = 69; - */ - AD_UNIT_CODE_LEVEL_5(69), - /** - * - * - *
    -     * The code of the sixth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_6 = 70; - */ - AD_UNIT_CODE_LEVEL_6(70), - /** - * - * - *
    -     * The code of the seventh level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_7 = 71; - */ - AD_UNIT_CODE_LEVEL_7(71), - /** - * - * - *
    -     * The code of the eighth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_8 = 72; - */ - AD_UNIT_CODE_LEVEL_8(72), - /** - * - * - *
    -     * The code of the ninth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_9 = 73; - */ - AD_UNIT_CODE_LEVEL_9(73), - /** - * - * - *
    -     * The depth of the ad unit's hierarchy
    -     * 
    - * - * AD_UNIT_DEPTH = 101; - */ - AD_UNIT_DEPTH(101), - /** - * - * - *
    -     * The ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID = 25; - */ - AD_UNIT_ID(25), - /** - * - * - *
    -     * The full hierarchy of ad unit IDs where the ad was requested, from
    -     * root to leaf, excluding the root ad unit ID.
    -     * 
    - * - * AD_UNIT_ID_ALL_LEVEL = 27; - */ - AD_UNIT_ID_ALL_LEVEL(27), - /** - * - * - *
    -     * The first level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_1 = 30; - */ - AD_UNIT_ID_LEVEL_1(30), - /** - * - * - *
    -     * The tenth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_10 = 48; - */ - AD_UNIT_ID_LEVEL_10(48), - /** - * - * - *
    -     * The eleventh level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_11 = 50; - */ - AD_UNIT_ID_LEVEL_11(50), - /** - * - * - *
    -     * The twelfth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_12 = 52; - */ - AD_UNIT_ID_LEVEL_12(52), - /** - * - * - *
    -     * The thirteenth level ad unit ID of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_13 = 54; - */ - AD_UNIT_ID_LEVEL_13(54), - /** - * - * - *
    -     * The fourteenth level ad unit ID of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_14 = 56; - */ - AD_UNIT_ID_LEVEL_14(56), - /** - * - * - *
    -     * The fifteenth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_15 = 58; - */ - AD_UNIT_ID_LEVEL_15(58), - /** - * - * - *
    -     * The sixteenth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_16 = 60; - */ - AD_UNIT_ID_LEVEL_16(60), - /** - * - * - *
    -     * The second level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_2 = 32; - */ - AD_UNIT_ID_LEVEL_2(32), - /** - * - * - *
    -     * The third level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_3 = 34; - */ - AD_UNIT_ID_LEVEL_3(34), - /** - * - * - *
    -     * The fourth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_4 = 36; - */ - AD_UNIT_ID_LEVEL_4(36), - /** - * - * - *
    -     * The fifth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_5 = 38; - */ - AD_UNIT_ID_LEVEL_5(38), - /** - * - * - *
    -     * The sixth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_6 = 40; - */ - AD_UNIT_ID_LEVEL_6(40), - /** - * - * - *
    -     * The seventh level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_7 = 42; - */ - AD_UNIT_ID_LEVEL_7(42), - /** - * - * - *
    -     * The eighth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_8 = 44; - */ - AD_UNIT_ID_LEVEL_8(44), - /** - * - * - *
    -     * The ninth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_9 = 46; - */ - AD_UNIT_ID_LEVEL_9(46), - /** - * - * - *
    -     * The top-level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_TOP_LEVEL = 142; - */ - AD_UNIT_ID_TOP_LEVEL(142), - /** - * - * - *
    -     * The name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME = 26; - */ - AD_UNIT_NAME(26), - /** - * - * - *
    -     * The full hierarchy of ad unit names where the ad was requested, from
    -     * root to leaf, excluding the root ad unit name.
    -     * 
    - * - * AD_UNIT_NAME_ALL_LEVEL = 29; - */ - AD_UNIT_NAME_ALL_LEVEL(29), - /** - * - * - *
    -     * The first level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_1 = 31; - */ - AD_UNIT_NAME_LEVEL_1(31), - /** - * - * - *
    -     * The tenth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_10 = 49; - */ - AD_UNIT_NAME_LEVEL_10(49), - /** - * - * - *
    -     * The eleventh level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_11 = 51; - */ - AD_UNIT_NAME_LEVEL_11(51), - /** - * - * - *
    -     * The twelfth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_12 = 53; - */ - AD_UNIT_NAME_LEVEL_12(53), - /** - * - * - *
    -     * The thirteenth level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_13 = 55; - */ - AD_UNIT_NAME_LEVEL_13(55), - /** - * - * - *
    -     * The fourteenth level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_14 = 57; - */ - AD_UNIT_NAME_LEVEL_14(57), - /** - * - * - *
    -     * The fifteenth level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_15 = 59; - */ - AD_UNIT_NAME_LEVEL_15(59), - /** - * - * - *
    -     * The sixteenth level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_16 = 61; - */ - AD_UNIT_NAME_LEVEL_16(61), - /** - * - * - *
    -     * The second level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_2 = 33; - */ - AD_UNIT_NAME_LEVEL_2(33), - /** - * - * - *
    -     * The third level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_3 = 35; - */ - AD_UNIT_NAME_LEVEL_3(35), - /** - * - * - *
    -     * The fourth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_4 = 37; - */ - AD_UNIT_NAME_LEVEL_4(37), - /** - * - * - *
    -     * The fifth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_5 = 39; - */ - AD_UNIT_NAME_LEVEL_5(39), - /** - * - * - *
    -     * The sixth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_6 = 41; - */ - AD_UNIT_NAME_LEVEL_6(41), - /** - * - * - *
    -     * The seventh level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_7 = 43; - */ - AD_UNIT_NAME_LEVEL_7(43), - /** - * - * - *
    -     * The eighth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_8 = 45; - */ - AD_UNIT_NAME_LEVEL_8(45), - /** - * - * - *
    -     * The ninth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_9 = 47; - */ - AD_UNIT_NAME_LEVEL_9(47), - /** - * - * - *
    -     * The top-level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_TOP_LEVEL = 143; - */ - AD_UNIT_NAME_TOP_LEVEL(143), - /** - * - * - *
    -     * The reward amount of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_REWARD_AMOUNT = 63; - */ - AD_UNIT_REWARD_AMOUNT(63), - /** - * - * - *
    -     * The reward type of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_REWARD_TYPE = 62; - */ - AD_UNIT_REWARD_TYPE(62), - /** - * - * - *
    -     * The status of the ad unit
    -     * 
    - * - * AD_UNIT_STATUS = 206; - */ - AD_UNIT_STATUS(206), - /** - * - * - *
    -     * The name of the status of the ad unit
    -     * 
    - * - * AD_UNIT_STATUS_NAME = 207; - */ - AD_UNIT_STATUS_NAME(207), - /** - * - * - *
    -     * The app version.
    -     * 
    - * - * APP_VERSION = 392; - */ - APP_VERSION(392), - /** - * - * - *
    -     * The ID used in an external system for advertiser identification
    -     * 
    - * - * BACKFILL_ADVERTISER_EXTERNAL_ID = 349; - */ - BACKFILL_ADVERTISER_EXTERNAL_ID(349), - /** - * - * - *
    -     * The ID of an advertiser company assigned to a backfill order
    -     * 
    - * - * BACKFILL_ADVERTISER_ID = 346; - */ - BACKFILL_ADVERTISER_ID(346), - /** - * - * - *
    -     * Labels applied to the advertiser
    -     * can be used for either competitive exclusion or ad exclusion
    -     * 
    - * - * BACKFILL_ADVERTISER_LABELS = 351; - */ - BACKFILL_ADVERTISER_LABELS(351), - /** - * - * - *
    -     * Label ids applied to the advertiser
    -     * can be used for either competitive exclusion or ad exclusion
    -     * 
    - * - * BACKFILL_ADVERTISER_LABEL_IDS = 350; - */ - BACKFILL_ADVERTISER_LABEL_IDS(350), - /** - * - * - *
    -     * The name of an advertiser company assigned to a backfill order
    -     * 
    - * - * BACKFILL_ADVERTISER_NAME = 347; - */ - BACKFILL_ADVERTISER_NAME(347), - /** - * - * - *
    -     * The name of the contact associated with an advertiser company
    -     * 
    - * - * BACKFILL_ADVERTISER_PRIMARY_CONTACT = 348; - */ - BACKFILL_ADVERTISER_PRIMARY_CONTACT(348), - /** - * - * - *
    -     * Enum value of Backfill creative billing type
    -     * 
    - * - * BACKFILL_CREATIVE_BILLING_TYPE = 378; - */ - BACKFILL_CREATIVE_BILLING_TYPE(378), - /** - * - * - *
    -     * Localized string value of Backfill creative billing type
    -     * 
    - * - * BACKFILL_CREATIVE_BILLING_TYPE_NAME = 379; - */ - BACKFILL_CREATIVE_BILLING_TYPE_NAME(379), - /** - * - * - *
    -     * Represents the click-through URL of a Backfill creative
    -     * 
    - * - * BACKFILL_CREATIVE_CLICK_THROUGH_URL = 376; - */ - BACKFILL_CREATIVE_CLICK_THROUGH_URL(376), - /** - * - * - *
    -     * The ID of a Backfill creative
    -     * 
    - * - * BACKFILL_CREATIVE_ID = 370; - */ - BACKFILL_CREATIVE_ID(370), - /** - * - * - *
    -     * Backfill creative name
    -     * 
    - * - * BACKFILL_CREATIVE_NAME = 371; - */ - BACKFILL_CREATIVE_NAME(371), - /** - * - * - *
    -     * Third party vendor name of a Backfill creative
    -     * 
    - * - * BACKFILL_CREATIVE_THIRD_PARTY_VENDOR = 377; - */ - BACKFILL_CREATIVE_THIRD_PARTY_VENDOR(377), - /** - * - * - *
    -     * Enum value of Backfill creative type
    -     * 
    - * - * BACKFILL_CREATIVE_TYPE = 374; - */ - BACKFILL_CREATIVE_TYPE(374), - /** - * - * - *
    -     * Localized string name of Backfill creative type
    -     * 
    - * - * BACKFILL_CREATIVE_TYPE_NAME = 375; - */ - BACKFILL_CREATIVE_TYPE_NAME(375), - /** - * - * - *
    -     * Whether a Backfill line item is archived.
    -     * 
    - * - * BACKFILL_LINE_ITEM_ARCHIVED = 278; - */ - BACKFILL_LINE_ITEM_ARCHIVED(278), - /** - * - * - *
    -     * Backfill line item comanion delivery option ENUM value.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION = 258; - */ - BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION(258), - /** - * - * - *
    -     * Localized Backfill line item comanion delivery option name.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 259; - */ - BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME(259), - /** - * - * - *
    -     * The computed status of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COMPUTED_STATUS = 296; - */ - BACKFILL_LINE_ITEM_COMPUTED_STATUS(296), - /** - * - * - *
    -     * The localized name of the computed status of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME = 297; - */ - BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME(297), - /** - * - * - *
    -     * The contracted units bought for the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY = 280; - */ - BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY(280), - /** - * - * - *
    -     * The cost per unit of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COST_PER_UNIT = 272; - */ - BACKFILL_LINE_ITEM_COST_PER_UNIT(272), - /** - * - * - *
    -     * Backfill line item cost type ENUM value.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COST_TYPE = 264; - */ - BACKFILL_LINE_ITEM_COST_TYPE(264), - /** - * - * - *
    -     * Localized Backfill line item cost type name.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COST_TYPE_NAME = 265; - */ - BACKFILL_LINE_ITEM_COST_TYPE_NAME(265), - /** - * - * - *
    -     * Represent the end date of a Backfill creative associated with a Backfill
    -     * line item
    -     * 
    - * - * BACKFILL_LINE_ITEM_CREATIVE_END_DATE = 381; - */ - BACKFILL_LINE_ITEM_CREATIVE_END_DATE(381), - /** - * - * - *
    -     * The creative rotation type of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE = 290; - */ - BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE(290), - /** - * - * - *
    -     * The localized name of the creative rotation type of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 291; - */ - BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME(291), - /** - * - * - *
    -     * Represent the start date of a Backfill creative associated with a
    -     * Backfill line item
    -     * 
    - * - * BACKFILL_LINE_ITEM_CREATIVE_START_DATE = 380; - */ - BACKFILL_LINE_ITEM_CREATIVE_START_DATE(380), - /** - * - * - *
    -     * The 3 letter currency code of the Backfill line item
    -     * 
    - * - * BACKFILL_LINE_ITEM_CURRENCY_CODE = 288; - */ - BACKFILL_LINE_ITEM_CURRENCY_CODE(288), - /** - * - * - *
    -     * The progress made for the delivery of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DELIVERY_INDICATOR = 274; - */ - BACKFILL_LINE_ITEM_DELIVERY_INDICATOR(274), - /** - * - * - *
    -     * The delivery rate type of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE = 292; - */ - BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE(292), - /** - * - * - *
    -     * The localized name of the delivery rate type of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 293; - */ - BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME(293), - /** - * - * - *
    -     * The discount of the BackfillLineItem in whole units in the
    -     * BackfillLineItem's currency code, or if unspecified the Network's
    -     * currency code.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE = 294; - */ - BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE(294), - /** - * - * - *
    -     * The discount of the BackfillLineItem in percentage.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE = 295; - */ - BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE(295), - /** - * - * - *
    -     * The end date of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_END_DATE = 267; - */ - BACKFILL_LINE_ITEM_END_DATE(267), - /** - * - * - *
    -     * The end date and time of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_END_DATE_TIME = 269; - */ - BACKFILL_LINE_ITEM_END_DATE_TIME(269), - /** - * - * - *
    -     * The ENUM value of the environment a Backfill line item is targeting.
    -     * 
    - * - * BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE = 302; - */ - BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE(302), - /** - * - * - *
    -     * The localized name of the environment a Backfill line item is targeting.
    -     * 
    - * - * BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME = 257; - */ - BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME(257), - /** - * - * - *
    -     * The deal ID of the Backfill line item. Set for Programmatic Direct
    -     * campaigns.
    -     * 
    - * - * BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID = 285; - */ - BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID(285), - /** - * - * - *
    -     * The external ID of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_EXTERNAL_ID = 273; - */ - BACKFILL_LINE_ITEM_EXTERNAL_ID(273), - /** - * - * - *
    -     * The frequency cap of the Backfill line item (descriptive string).
    -     * 
    - * - * BACKFILL_LINE_ITEM_FREQUENCY_CAP = 303; - */ - BACKFILL_LINE_ITEM_FREQUENCY_CAP(303), - /** - * - * - *
    -     * Backfill line item ID.
    -     * 
    - * - * BACKFILL_LINE_ITEM_ID = 298; - */ - BACKFILL_LINE_ITEM_ID(298), - /** - * - * - *
    -     * The application that last modified the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP = 289; - */ - BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP(289), - /** - * - * - *
    -     * The total number of clicks delivered of the lifetime of the Backfill line
    -     * item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_LIFETIME_CLICKS = 283; - */ - BACKFILL_LINE_ITEM_LIFETIME_CLICKS(283), - /** - * - * - *
    -     * The total number of impressions delivered over the lifetime of the
    -     * Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS = 282; - */ - BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS(282), - /** - * - * - *
    -     * The total number of viewable impressions delivered over the lifetime of
    -     * the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 284; - */ - BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS(284), - /** - * - * - *
    -     * Whether or not the Backfill line item is Makegood. Makegood refers to
    -     * free inventory offered to buyers to compensate for mistakes or
    -     * under-delivery in the original campaigns.
    -     * 
    - * - * BACKFILL_LINE_ITEM_MAKEGOOD = 276; - */ - BACKFILL_LINE_ITEM_MAKEGOOD(276), - /** - * - * - *
    -     * Backfill line item name.
    -     * 
    - * - * BACKFILL_LINE_ITEM_NAME = 299; - */ - BACKFILL_LINE_ITEM_NAME(299), - /** - * - * - *
    -     * The cost of booking for the Backfill line item (non-CPD).
    -     * 
    - * - * BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE = 286; - */ - BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE(286), - /** - * - * - *
    -     * Whether a Backfill line item is eligible for opitimization.
    -     * 
    - * - * BACKFILL_LINE_ITEM_OPTIMIZABLE = 277; - */ - BACKFILL_LINE_ITEM_OPTIMIZABLE(277), - /** - * - * - *
    -     * Goal type ENUM value of the primary goal of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE = 262; - */ - BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE(262), - /** - * - * - *
    -     * Localized goal type name of the primary goal of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 263; - */ - BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME(263), - /** - * - * - *
    -     * Unit type ENUM value of the primary goal of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 260; - */ - BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE(260), - /** - * - * - *
    -     * Localized unit type name of the primary goal of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 261; - */ - BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME(261), - /** - * - * - *
    -     * The priority of this Backfill line item as a value between 1 and 16.
    -     * In general, a lower priority means more serving priority for the
    -     * Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIORITY = 266; - */ - BACKFILL_LINE_ITEM_PRIORITY(266), - /** - * - * - *
    -     * ENUM value describing the state of inventory reservation for the
    -     * BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_RESERVATION_STATUS = 306; - */ - BACKFILL_LINE_ITEM_RESERVATION_STATUS(306), - /** - * - * - *
    -     * Localized string describing the state of inventory reservation for the
    -     * BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME = 307; - */ - BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME(307), - /** - * - * - *
    -     * The start date of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_START_DATE = 268; - */ - BACKFILL_LINE_ITEM_START_DATE(268), - /** - * - * - *
    -     * The start date and time of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_START_DATE_TIME = 270; - */ - BACKFILL_LINE_ITEM_START_DATE_TIME(270), - /** - * - * - *
    -     * Backfill line item type ENUM value.
    -     * 
    - * - * BACKFILL_LINE_ITEM_TYPE = 300; - */ - BACKFILL_LINE_ITEM_TYPE(300), - /** - * - * - *
    -     * Localized Backfill line item type name.
    -     * 
    - * - * BACKFILL_LINE_ITEM_TYPE_NAME = 301; - */ - BACKFILL_LINE_ITEM_TYPE_NAME(301), - /** - * - * - *
    -     * Whether the Backfill line item end time and end date is set to
    -     * effectively never end.
    -     * 
    - * - * BACKFILL_LINE_ITEM_UNLIMITED_END = 271; - */ - BACKFILL_LINE_ITEM_UNLIMITED_END(271), - /** - * - * - *
    -     * The artificial cost per unit used by the Ad server to help rank
    -     * inventory.
    -     * 
    - * - * BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT = 275; - */ - BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT(275), - /** - * - * - *
    -     * The web property code used for dynamic allocation Backfill line items.
    -     * 
    - * - * BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE = 287; - */ - BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE(287), - /** - * - * - *
    -     * The ID of Backfill creative, includes regular creatives, and master and
    -     * companions in case of creative sets
    -     * 
    - * - * BACKFILL_MASTER_COMPANION_CREATIVE_ID = 372; - */ - BACKFILL_MASTER_COMPANION_CREATIVE_ID(372), - /** - * - * - *
    -     * Name of Backfill creative, includes regular creatives, and master and
    -     * companions in case of creative sets
    -     * 
    - * - * BACKFILL_MASTER_COMPANION_CREATIVE_NAME = 373; - */ - BACKFILL_MASTER_COMPANION_CREATIVE_NAME(373), - /** - * - * - *
    -     * Backfill order agency.
    -     * 
    - * - * BACKFILL_ORDER_AGENCY = 313; - */ - BACKFILL_ORDER_AGENCY(313), - /** - * - * - *
    -     * Backfill order agency ID.
    -     * 
    - * - * BACKFILL_ORDER_AGENCY_ID = 314; - */ - BACKFILL_ORDER_AGENCY_ID(314), - /** - * - * - *
    -     * Backfill order booked CPC.
    -     * 
    - * - * BACKFILL_ORDER_BOOKED_CPC = 315; - */ - BACKFILL_ORDER_BOOKED_CPC(315), - /** - * - * - *
    -     * Backfill order booked CPM.
    -     * 
    - * - * BACKFILL_ORDER_BOOKED_CPM = 316; - */ - BACKFILL_ORDER_BOOKED_CPM(316), - /** - * - * - *
    -     * Backfill order delivery status ENUM value.
    -     * 
    - * - * BACKFILL_ORDER_DELIVERY_STATUS = 340; - */ - BACKFILL_ORDER_DELIVERY_STATUS(340), - /** - * - * - *
    -     * Backfill order delivery status localized name.
    -     * 
    - * - * BACKFILL_ORDER_DELIVERY_STATUS_NAME = 341; - */ - BACKFILL_ORDER_DELIVERY_STATUS_NAME(341), - /** - * - * - *
    -     * Backfill order end date.
    -     * 
    - * - * BACKFILL_ORDER_END_DATE = 317; - */ - BACKFILL_ORDER_END_DATE(317), - /** - * - * - *
    -     * Backfill order end date and time.
    -     * 
    - * - * BACKFILL_ORDER_END_DATE_TIME = 319; - */ - BACKFILL_ORDER_END_DATE_TIME(319), - /** - * - * - *
    -     * Backfill order external ID.
    -     * 
    - * - * BACKFILL_ORDER_EXTERNAL_ID = 320; - */ - BACKFILL_ORDER_EXTERNAL_ID(320), - /** - * - * - *
    -     * Backfill order id.
    -     * 
    - * - * BACKFILL_ORDER_ID = 338; - */ - BACKFILL_ORDER_ID(338), - /** - * - * - *
    -     * Backfill order labels.
    -     * 
    - * - * BACKFILL_ORDER_LABELS = 334; - */ - BACKFILL_ORDER_LABELS(334), - /** - * - * - *
    -     * Backfill order labels IDs.
    -     * 
    - * - * BACKFILL_ORDER_LABEL_IDS = 335; - */ - BACKFILL_ORDER_LABEL_IDS(335), - /** - * - * - *
    -     * Backfill order lifetime clicks.
    -     * 
    - * - * BACKFILL_ORDER_LIFETIME_CLICKS = 322; - */ - BACKFILL_ORDER_LIFETIME_CLICKS(322), - /** - * - * - *
    -     * Backfill order lifetime impressions.
    -     * 
    - * - * BACKFILL_ORDER_LIFETIME_IMPRESSIONS = 323; - */ - BACKFILL_ORDER_LIFETIME_IMPRESSIONS(323), - /** - * - * - *
    -     * Backfill order name.
    -     * 
    - * - * BACKFILL_ORDER_NAME = 339; - */ - BACKFILL_ORDER_NAME(339), - /** - * - * - *
    -     * Backfill order PO number.
    -     * 
    - * - * BACKFILL_ORDER_PO_NUMBER = 324; - */ - BACKFILL_ORDER_PO_NUMBER(324), - /** - * - * - *
    -     * Whether the Backfill order is programmatic.
    -     * 
    - * - * BACKFILL_ORDER_PROGRAMMATIC = 321; - */ - BACKFILL_ORDER_PROGRAMMATIC(321), - /** - * - * - *
    -     * Backfill order sales person.
    -     * 
    - * - * BACKFILL_ORDER_SALESPERSON = 325; - */ - BACKFILL_ORDER_SALESPERSON(325), - /** - * - * - *
    -     * Backfill order secondary sales people.
    -     * 
    - * - * BACKFILL_ORDER_SECONDARY_SALESPEOPLE = 329; - */ - BACKFILL_ORDER_SECONDARY_SALESPEOPLE(329), - /** - * - * - *
    -     * Backfill order secondary sales people ID.
    -     * 
    - * - * BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID = 328; - */ - BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID(328), - /** - * - * - *
    -     * Backfill order secondary traffickers.
    -     * 
    - * - * BACKFILL_ORDER_SECONDARY_TRAFFICKERS = 331; - */ - BACKFILL_ORDER_SECONDARY_TRAFFICKERS(331), - /** - * - * - *
    -     * Backfill order secondary traffickers ID.
    -     * 
    - * - * BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID = 330; - */ - BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID(330), - /** - * - * - *
    -     * Backfill order start date.
    -     * 
    - * - * BACKFILL_ORDER_START_DATE = 332; - */ - BACKFILL_ORDER_START_DATE(332), - /** - * - * - *
    -     * Backfill order start date and time.
    -     * 
    - * - * BACKFILL_ORDER_START_DATE_TIME = 333; - */ - BACKFILL_ORDER_START_DATE_TIME(333), - /** - * - * - *
    -     * Backfill order trafficker.
    -     * 
    - * - * BACKFILL_ORDER_TRAFFICKER = 326; - */ - BACKFILL_ORDER_TRAFFICKER(326), - /** - * - * - *
    -     * Backfill order trafficker ID.
    -     * 
    - * - * BACKFILL_ORDER_TRAFFICKER_ID = 327; - */ - BACKFILL_ORDER_TRAFFICKER_ID(327), - /** - * - * - *
    -     * Whether the Backfill order end time and end date is set to effectively
    -     * never end.
    -     * 
    - * - * BACKFILL_ORDER_UNLIMITED_END = 318; - */ - BACKFILL_ORDER_UNLIMITED_END(318), - /** - * - * - *
    -     * The ID of the buyer on a backfill programmatic proposal.
    -     * 
    - * - * BACKFILL_PROGRAMMATIC_BUYER_ID = 336; - */ - BACKFILL_PROGRAMMATIC_BUYER_ID(336), - /** - * - * - *
    -     * The name of the buyer on a backfill programmatic proposal.
    -     * 
    - * - * BACKFILL_PROGRAMMATIC_BUYER_NAME = 337; - */ - BACKFILL_PROGRAMMATIC_BUYER_NAME(337), - /** - * - * - *
    -     * The amount of information about the Publisher's page sent to the buyer
    -     * who purchased the impressions.
    -     * 
    - * - * BRANDING_TYPE = 383; - */ - BRANDING_TYPE(383), - /** - * - * - *
    -     * The localized version of branding type, the amount of information about
    -     * the Publisher's page sent to the buyer who purchased the impressions.
    -     * 
    - * - * BRANDING_TYPE_NAME = 384; - */ - BRANDING_TYPE_NAME(384), - /** - * - * - *
    -     * Browser category.
    -     * 
    - * - * BROWSER_CATEGORY = 119; - */ - BROWSER_CATEGORY(119), - /** - * - * - *
    -     * Browser category name.
    -     * 
    - * - * BROWSER_CATEGORY_NAME = 120; - */ - BROWSER_CATEGORY_NAME(120), - /** - * - * - *
    -     * The ID of the browser.
    -     * 
    - * - * BROWSER_ID = 235; - */ - BROWSER_ID(235), - /** - * - * - *
    -     * The name of the browser.
    -     * 
    - * - * BROWSER_NAME = 236; - */ - BROWSER_NAME(236), - /** - * - * - *
    -     * Mobile carrier ID.
    -     * 
    - * - * CARRIER_ID = 369; - */ - CARRIER_ID(369), - /** - * - * - *
    -     * Name of the mobile carrier.
    -     * 
    - * - * CARRIER_NAME = 368; - */ - CARRIER_NAME(368), - /** - * - * - *
    -     * The ID of an advertiser, classified by Google, associated with a creative
    -     * transacted
    -     * 
    - * - * CLASSIFIED_ADVERTISER_ID = 133; - */ - CLASSIFIED_ADVERTISER_ID(133), - /** - * - * - *
    -     * The name of an advertiser, classified by Google, associated with a
    -     * creative transacted
    -     * 
    - * - * CLASSIFIED_ADVERTISER_NAME = 134; - */ - CLASSIFIED_ADVERTISER_NAME(134), - /** - * - * - *
    -     * ID of the brand, as classified by Google,
    -     * 
    - * - * CLASSIFIED_BRAND_ID = 243; - */ - CLASSIFIED_BRAND_ID(243), - /** - * - * - *
    -     * Name of the brand, as classified by Google,
    -     * 
    - * - * CLASSIFIED_BRAND_NAME = 244; - */ - CLASSIFIED_BRAND_NAME(244), - /** - * - * - *
    -     * ID of the video content served.
    -     * 
    - * - * CONTENT_ID = 246; - */ - CONTENT_ID(246), - /** - * - * - *
    -     * Name of the video content served.
    -     * 
    - * - * CONTENT_NAME = 247; - */ - CONTENT_NAME(247), - /** - * - * - *
    -     * The criteria ID of the country in which the ad served.
    -     * 
    - * - * COUNTRY_ID = 11; - */ - COUNTRY_ID(11), - /** - * - * - *
    -     * The name of the country in which the ad served.
    -     * 
    - * - * COUNTRY_NAME = 12; - */ - COUNTRY_NAME(12), - /** - * - * - *
    -     * Enum value of creative billing type
    -     * 
    - * - * CREATIVE_BILLING_TYPE = 366; - */ - CREATIVE_BILLING_TYPE(366), - /** - * - * - *
    -     * Localized string value of creative billing type
    -     * 
    - * - * CREATIVE_BILLING_TYPE_NAME = 367; - */ - CREATIVE_BILLING_TYPE_NAME(367), - /** - * - * - *
    -     * Represents the click-through URL of a creative
    -     * 
    - * - * CREATIVE_CLICK_THROUGH_URL = 174; - */ - CREATIVE_CLICK_THROUGH_URL(174), - /** - * - * - *
    -     * The ID of a creative
    -     * 
    - * - * CREATIVE_ID = 138; - */ - CREATIVE_ID(138), - /** - * - * - *
    -     * Creative name
    -     * 
    - * - * CREATIVE_NAME = 139; - */ - CREATIVE_NAME(139), - /** - * - * - *
    -     * Creative technology ENUM
    -     * 
    - * - * CREATIVE_TECHNOLOGY = 148; - */ - CREATIVE_TECHNOLOGY(148), - /** - * - * - *
    -     * Creative technology locallized name
    -     * 
    - * - * CREATIVE_TECHNOLOGY_NAME = 149; - */ - CREATIVE_TECHNOLOGY_NAME(149), - /** - * - * - *
    -     * Third party vendor name of a creative
    -     * 
    - * - * CREATIVE_THIRD_PARTY_VENDOR = 361; - */ - CREATIVE_THIRD_PARTY_VENDOR(361), - /** - * - * - *
    -     * Enum value of creative type
    -     * 
    - * - * CREATIVE_TYPE = 344; - */ - CREATIVE_TYPE(344), - /** - * - * - *
    -     * Localized string name of creative type
    -     * 
    - * - * CREATIVE_TYPE_NAME = 345; - */ - CREATIVE_TYPE_NAME(345), - /** - * - * - *
    -     * Breaks down reporting data by date.
    -     * 
    - * - * DATE = 3; - */ - DATE(3), - /** - * - * - *
    -     * Breaks down reporting data by day of the week. Monday is 1 and 7 is
    -     * Sunday.
    -     * 
    - * - * DAY_OF_WEEK = 4; - */ - DAY_OF_WEEK(4), - /** - * - * - *
    -     * Demand channel.
    -     * 
    - * - * DEMAND_CHANNEL = 9; - */ - DEMAND_CHANNEL(9), - /** - * - * - *
    -     * Demand channel name.
    -     * 
    - * - * DEMAND_CHANNEL_NAME = 10; - */ - DEMAND_CHANNEL_NAME(10), - /** - * - * - *
    -     * Demand subchannel.
    -     * 
    - * - * DEMAND_SUBCHANNEL = 22; - */ - DEMAND_SUBCHANNEL(22), - /** - * - * - *
    -     * Demand subchannel name.
    -     * 
    - * - * DEMAND_SUBCHANNEL_NAME = 23; - */ - DEMAND_SUBCHANNEL_NAME(23), - /** - * - * - *
    -     * The device on which an ad was served.
    -     * 
    - * - * DEVICE = 226; - */ - DEVICE(226), - /** - * - * - *
    -     * The device category to which an ad is being targeted.
    -     * 
    - * - * DEVICE_CATEGORY = 15; - */ - DEVICE_CATEGORY(15), - /** - * - * - *
    -     * The name of the category of device (smartphone, feature phone, tablet, or
    -     * desktop) to which an ad is being targeted.
    -     * 
    - * - * DEVICE_CATEGORY_NAME = 16; - */ - DEVICE_CATEGORY_NAME(16), - /** - * - * - *
    -     * The localized name of the device on which an ad was served.
    -     * 
    - * - * DEVICE_NAME = 225; - */ - DEVICE_NAME(225), - /** - * - * - *
    -     * ID of the yield partner as classified by Google
    -     * 
    - * - * EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; - */ - EXCHANGE_THIRD_PARTY_COMPANY_ID(185), - /** - * - * - *
    -     * Name of the yield partner as classified by Google
    -     * 
    - * - * EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; - */ - EXCHANGE_THIRD_PARTY_COMPANY_NAME(186), - /** - * - * - *
    -     * The ID of the first look pricing rule.
    -     * 
    - * - * FIRST_LOOK_PRICING_RULE_ID = 248; - */ - FIRST_LOOK_PRICING_RULE_ID(248), - /** - * - * - *
    -     * The name of the first look pricing rule.
    -     * 
    - * - * FIRST_LOOK_PRICING_RULE_NAME = 249; - */ - FIRST_LOOK_PRICING_RULE_NAME(249), - /** - * - * - *
    -     * Breaks down reporting data by hour in one day.
    -     * 
    - * - * HOUR = 100; - */ - HOUR(100), - /** - * - * - *
    -     * The interaction type of an ad.
    -     * 
    - * - * INTERACTION_TYPE = 223; - */ - INTERACTION_TYPE(223), - /** - * - * - *
    -     * The localized name of the interaction type of an ad.
    -     * 
    - * - * INTERACTION_TYPE_NAME = 224; - */ - INTERACTION_TYPE_NAME(224), - /** - * - * - *
    -     * Inventory format.
    -     * The format of the ad unit (e.g, banner) where the ad was requested.
    -     * 
    - * - * INVENTORY_FORMAT = 17; - */ - INVENTORY_FORMAT(17), - /** - * - * - *
    -     * Inventory format name.
    -     * The format of the ad unit (e.g, banner) where the ad was requested.
    -     * 
    - * - * INVENTORY_FORMAT_NAME = 18; - */ - INVENTORY_FORMAT_NAME(18), - /** - * - * - *
    -     * Inventory type.
    -     * The kind of web page or device where the ad was requested.
    -     * 
    - * - * INVENTORY_TYPE = 19; - */ - INVENTORY_TYPE(19), - /** - * - * - *
    -     * Inventory type name.
    -     * The kind of web page or device where the ad was requested.
    -     * 
    - * - * INVENTORY_TYPE_NAME = 20; - */ - INVENTORY_TYPE_NAME(20), - /** - * - * - *
    -     * Whether traffic is Adx Direct.
    -     * 
    - * - * IS_ADX_DIRECT = 382; - */ - IS_ADX_DIRECT(382), - /** - * - * - *
    -     * Whether traffic is First Look.
    -     * 
    - * - * IS_FIRST_LOOK_DEAL = 401; - */ - IS_FIRST_LOOK_DEAL(401), - /** - * - * - *
    -     * The Custom Targeting Value ID
    -     * 
    - * - * KEY_VALUES_ID = 214; - */ - KEY_VALUES_ID(214), - /** - * - * - *
    -     * The Custom Targeting Value formatted like <key_name>=<value_name>
    -     * 
    - * - * KEY_VALUES_NAME = 215; - */ - KEY_VALUES_NAME(215), - /** - * - * - *
    -     * Whether a Line item is archived.
    -     * 
    - * - * LINE_ITEM_ARCHIVED = 188; - */ - LINE_ITEM_ARCHIVED(188), - /** - * - * - *
    -     * Line item comanion delivery option ENUM value.
    -     * 
    - * - * LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; - */ - LINE_ITEM_COMPANION_DELIVERY_OPTION(204), - /** - * - * - *
    -     * Localized line item comanion delivery option name.
    -     * 
    - * - * LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; - */ - LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME(205), - /** - * - * - *
    -     * The computed status of the LineItem.
    -     * 
    - * - * LINE_ITEM_COMPUTED_STATUS = 250; - */ - LINE_ITEM_COMPUTED_STATUS(250), - /** - * - * - *
    -     * The localized name of the computed status of the LineItem.
    -     * 
    - * - * LINE_ITEM_COMPUTED_STATUS_NAME = 251; - */ - LINE_ITEM_COMPUTED_STATUS_NAME(251), - /** - * - * - *
    -     * The contracted units bought for the Line item.
    -     * 
    - * - * LINE_ITEM_CONTRACTED_QUANTITY = 92; - */ - LINE_ITEM_CONTRACTED_QUANTITY(92), - /** - * - * - *
    -     * The cost per unit of the Line item.
    -     * 
    - * - * LINE_ITEM_COST_PER_UNIT = 85; - */ - LINE_ITEM_COST_PER_UNIT(85), - /** - * - * - *
    -     * Line item cost type ENUM value.
    -     * 
    - * - * LINE_ITEM_COST_TYPE = 212; - */ - LINE_ITEM_COST_TYPE(212), - /** - * - * - *
    -     * Localized line item cost type name.
    -     * 
    - * - * LINE_ITEM_COST_TYPE_NAME = 213; - */ - LINE_ITEM_COST_TYPE_NAME(213), - /** - * - * - *
    -     * Represent the end date of a creative associated with line item
    -     * 
    - * - * LINE_ITEM_CREATIVE_END_DATE = 176; - */ - LINE_ITEM_CREATIVE_END_DATE(176), - /** - * - * - *
    -     * The creative rotation type of the LineItem.
    -     * 
    - * - * LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; - */ - LINE_ITEM_CREATIVE_ROTATION_TYPE(189), - /** - * - * - *
    -     * The localized name of the creative rotation type of the LineItem.
    -     * 
    - * - * LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; - */ - LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME(190), - /** - * - * - *
    -     * Represent the start date of a creative associated with line item
    -     * 
    - * - * LINE_ITEM_CREATIVE_START_DATE = 175; - */ - LINE_ITEM_CREATIVE_START_DATE(175), - /** - * - * - *
    -     * The 3 letter currency code of the Line Item
    -     * 
    - * - * LINE_ITEM_CURRENCY_CODE = 180; - */ - LINE_ITEM_CURRENCY_CODE(180), - /** - * - * - *
    -     * The progress made for the delivery of the Line item.
    -     * 
    - * - * LINE_ITEM_DELIVERY_INDICATOR = 87; - */ - LINE_ITEM_DELIVERY_INDICATOR(87), - /** - * - * - *
    -     * The delivery rate type of the LineItem.
    -     * 
    - * - * LINE_ITEM_DELIVERY_RATE_TYPE = 191; - */ - LINE_ITEM_DELIVERY_RATE_TYPE(191), - /** - * - * - *
    -     * The localized name of the delivery rate type of the LineItem.
    -     * 
    - * - * LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; - */ - LINE_ITEM_DELIVERY_RATE_TYPE_NAME(192), - /** - * - * - *
    -     * The discount of the LineItem in whole units in the LineItem's currency
    -     * code, or if unspecified the Network's currency code.
    -     * 
    - * - * LINE_ITEM_DISCOUNT_ABSOLUTE = 195; - */ - LINE_ITEM_DISCOUNT_ABSOLUTE(195), - /** - * - * - *
    -     * The discount of the LineItem in percentage.
    -     * 
    - * - * LINE_ITEM_DISCOUNT_PERCENTAGE = 196; - */ - LINE_ITEM_DISCOUNT_PERCENTAGE(196), - /** - * - * - *
    -     * The end date of the Line item.
    -     * 
    - * - * LINE_ITEM_END_DATE = 81; - */ - LINE_ITEM_END_DATE(81), - /** - * - * - *
    -     * The end date and time of the Line item.
    -     * 
    - * - * LINE_ITEM_END_DATE_TIME = 83; - */ - LINE_ITEM_END_DATE_TIME(83), - /** - * - * - *
    -     * The ENUM value of the environment a LineItem is targeting.
    -     * 
    - * - * LINE_ITEM_ENVIRONMENT_TYPE = 201; - */ - LINE_ITEM_ENVIRONMENT_TYPE(201), - /** - * - * - *
    -     * The localized name of the environment a LineItem is targeting.
    -     * 
    - * - * LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; - */ - LINE_ITEM_ENVIRONMENT_TYPE_NAME(202), - /** - * - * - *
    -     * The deal ID of the Line item. Set for Programmatic Direct campaigns.
    -     * 
    - * - * LINE_ITEM_EXTERNAL_DEAL_ID = 97; - */ - LINE_ITEM_EXTERNAL_DEAL_ID(97), - /** - * - * - *
    -     * The external ID of the Line item.
    -     * 
    - * - * LINE_ITEM_EXTERNAL_ID = 86; - */ - LINE_ITEM_EXTERNAL_ID(86), - /** - * - * - *
    -     * The frequency cap of the Line item (descriptive string).
    -     * 
    - * - * LINE_ITEM_FREQUENCY_CAP = 256; - */ - LINE_ITEM_FREQUENCY_CAP(256), - /** - * - * - *
    -     * Line item ID.
    -     * 
    - * - * LINE_ITEM_ID = 1; - */ - LINE_ITEM_ID(1), - /** - * - * - *
    -     * The application that last modified the Line Item.
    -     * 
    - * - * LINE_ITEM_LAST_MODIFIED_BY_APP = 181; - */ - LINE_ITEM_LAST_MODIFIED_BY_APP(181), - /** - * - * - *
    -     * The total number of clicks delivered of the lifetime of the Line item.
    -     * 
    - * - * LINE_ITEM_LIFETIME_CLICKS = 95; - */ - LINE_ITEM_LIFETIME_CLICKS(95), - /** - * - * - *
    -     * The total number of impressions delivered over the lifetime of the
    -     * Line item.
    -     * 
    - * - * LINE_ITEM_LIFETIME_IMPRESSIONS = 94; - */ - LINE_ITEM_LIFETIME_IMPRESSIONS(94), - /** - * - * - *
    -     * The total number of viewable impressions delivered over the lifetime of
    -     * the Line item.
    -     * 
    - * - * LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; - */ - LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS(96), - /** - * - * - *
    -     * Whether or not the Line item is Makegood. Makegood refers to free
    -     * inventory offered to buyers to compensate for mistakes or under-delivery
    -     * in the original campaigns.
    -     * 
    - * - * LINE_ITEM_MAKEGOOD = 89; - */ - LINE_ITEM_MAKEGOOD(89), - /** - * - * - *
    -     * Line item Name.
    -     * 
    - * - * LINE_ITEM_NAME = 2; - */ - LINE_ITEM_NAME(2), - /** - * - * - *
    -     * The cost of booking for the Line item (non-CPD).
    -     * 
    - * - * LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; - */ - LINE_ITEM_NON_CPD_BOOKED_REVENUE(98), - /** - * - * - *
    -     * Whether a Line item is eligible for opitimization.
    -     * 
    - * - * LINE_ITEM_OPTIMIZABLE = 90; - */ - LINE_ITEM_OPTIMIZABLE(90), - /** - * - * - *
    -     * Goal type ENUM value of the primary goal of the line item.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_TYPE = 210; - */ - LINE_ITEM_PRIMARY_GOAL_TYPE(210), - /** - * - * - *
    -     * Localized goal type name of the primary goal of the line item.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; - */ - LINE_ITEM_PRIMARY_GOAL_TYPE_NAME(211), - /** - * - * - *
    -     * The total number of impressions or clicks that are reserved for a
    -     * line item. For line items of type BULK or PRICE_PRIORITY, this represents
    -     * the number of remaining impressions reserved. If the line item has an
    -     * impression cap goal, this represents the number of impressions or
    -     * conversions that the line item will stop serving at if reached.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; - */ - LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE(93), - /** - * - * - *
    -     * The percentage of impressions or clicks that are reserved for a
    -     * line item. For line items of type SPONSORSHIP, this represents the
    -     * percentage of available impressions reserved. For line items of type
    -     * NETWORK or HOUSE, this represents the percentage of remaining impressions
    -     * reserved.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; - */ - LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE(396), - /** - * - * - *
    -     * Unit type ENUM value of the primary goal of the line item.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; - */ - LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE(208), - /** - * - * - *
    -     * Localized unit type name of the primary goal of the line item.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; - */ - LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME(209), - /** - * - * - *
    -     * The priority of this Line item as a value between 1 and 16.
    -     * In general, a lower priority means more serving priority for the
    -     * Line item.
    -     * 
    - * - * LINE_ITEM_PRIORITY = 24; - */ - LINE_ITEM_PRIORITY(24), - /** - * - * - *
    -     * ENUM value describing the state of inventory reservation for the
    -     * LineItem.
    -     * 
    - * - * LINE_ITEM_RESERVATION_STATUS = 304; - */ - LINE_ITEM_RESERVATION_STATUS(304), - /** - * - * - *
    -     * Localized string describing the state of inventory reservation for the
    -     * LineItem.
    -     * 
    - * - * LINE_ITEM_RESERVATION_STATUS_NAME = 305; - */ - LINE_ITEM_RESERVATION_STATUS_NAME(305), - /** - * - * - *
    -     * The start date of the Line item.
    -     * 
    - * - * LINE_ITEM_START_DATE = 82; - */ - LINE_ITEM_START_DATE(82), - /** - * - * - *
    -     * The start date and time of the Line item.
    -     * 
    - * - * LINE_ITEM_START_DATE_TIME = 84; - */ - LINE_ITEM_START_DATE_TIME(84), - /** - * - * - *
    -     * Line item type ENUM value.
    -     * 
    - * - * LINE_ITEM_TYPE = 193; - */ - LINE_ITEM_TYPE(193), - /** - * - * - *
    -     * Localized line item type name.
    -     * 
    - * - * LINE_ITEM_TYPE_NAME = 194; - */ - LINE_ITEM_TYPE_NAME(194), - /** - * - * - *
    -     * Whether the Line item end time and end date is set to effectively never
    -     * end.
    -     * 
    - * - * LINE_ITEM_UNLIMITED_END = 187; - */ - LINE_ITEM_UNLIMITED_END(187), - /** - * - * - *
    -     * The artificial cost per unit used by the Ad server to help rank
    -     * inventory.
    -     * 
    - * - * LINE_ITEM_VALUE_COST_PER_UNIT = 88; - */ - LINE_ITEM_VALUE_COST_PER_UNIT(88), - /** - * - * - *
    -     * The web property code used for dynamic allocation Line Items.
    -     * 
    - * - * LINE_ITEM_WEB_PROPERTY_CODE = 179; - */ - LINE_ITEM_WEB_PROPERTY_CODE(179), - /** - * - * - *
    -     * The ID of creative, includes regular creatives, and master and companions
    -     * in case of creative sets
    -     * 
    - * - * MASTER_COMPANION_CREATIVE_ID = 140; - */ - MASTER_COMPANION_CREATIVE_ID(140), - /** - * - * - *
    -     * Name of creative, includes regular creatives, and master and companions
    -     * in case of creative sets
    -     * 
    - * - * MASTER_COMPANION_CREATIVE_NAME = 141; - */ - MASTER_COMPANION_CREATIVE_NAME(141), - /** - * - * - *
    -     * Whether the mobile app is free.
    -     * 
    - * - * MOBILE_APP_FREE = 128; - */ - MOBILE_APP_FREE(128), - /** - * - * - *
    -     * URL of app icon for the mobile app.
    -     * 
    - * - * MOBILE_APP_ICON_URL = 129; - */ - MOBILE_APP_ICON_URL(129), - /** - * - * - *
    -     * The ID of the Mobile App.
    -     * 
    - * - * MOBILE_APP_ID = 123; - */ - MOBILE_APP_ID(123), - /** - * - * - *
    -     * The name of the mobile app.
    -     * 
    - * - * MOBILE_APP_NAME = 127; - */ - MOBILE_APP_NAME(127), - /** - * - * - *
    -     * Ownership status of the mobile app.
    -     * 
    - * - * MOBILE_APP_OWNERSHIP_STATUS = 311; - */ - MOBILE_APP_OWNERSHIP_STATUS(311), - /** - * - * - *
    -     * Ownership status of the mobile app.
    -     * 
    - * - * MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; - */ - MOBILE_APP_OWNERSHIP_STATUS_NAME(312), - /** - * - * - *
    -     * The App Store of the mobile app.
    -     * 
    - * - * MOBILE_APP_STORE = 125; - */ - MOBILE_APP_STORE(125), - /** - * - * - *
    -     * The localized name of the mobile app store.
    -     * 
    - * - * MOBILE_APP_STORE_NAME = 245; - */ - MOBILE_APP_STORE_NAME(245), - /** - * - * - *
    -     * Mobile inventory type.
    -     * Identifies whether a mobile ad came from a regular web page, an AMP web
    -     * page, or a mobile app.
    -     * Values match the Inventory type dimension available in the Overview Home
    -     * dashboard. Note: Video takes precedence over any other value, for
    -     * example, if there is an in-stream video impression on a desktop device,
    -     * it will be attributed to in-stream video and not desktop web.
    -     * 
    - * - * MOBILE_INVENTORY_TYPE = 99; - */ - MOBILE_INVENTORY_TYPE(99), - /** - * - * - *
    -     * Mobile inventory type name.
    -     * Identifies whether a mobile ad came from a regular web page, an AMP web
    -     * page, or a mobile app.
    -     * 
    - * - * MOBILE_INVENTORY_TYPE_NAME = 21; - */ - MOBILE_INVENTORY_TYPE_NAME(21), - /** - * - * - *
    -     * SDK version of the mobile device.
    -     * 
    - * - * MOBILE_SDK_VERSION_NAME = 130; - */ - MOBILE_SDK_VERSION_NAME(130), - /** - * - * - *
    -     * Breaks down reporting data by month and year.
    -     * 
    - * - * MONTH_YEAR = 6; - */ - MONTH_YEAR(6), - /** - * - * - *
    -     * Native ad format ID.
    -     * 
    - * - * NATIVE_AD_FORMAT_ID = 255; - */ - NATIVE_AD_FORMAT_ID(255), - /** - * - * - *
    -     * Native ad format name.
    -     * 
    - * - * NATIVE_AD_FORMAT_NAME = 254; - */ - NATIVE_AD_FORMAT_NAME(254), - /** - * - * - *
    -     * Native style ID.
    -     * 
    - * - * NATIVE_STYLE_ID = 253; - */ - NATIVE_STYLE_ID(253), - /** - * - * - *
    -     * Native style name.
    -     * 
    - * - * NATIVE_STYLE_NAME = 252; - */ - NATIVE_STYLE_NAME(252), - /** - * - * - *
    -     * Operating system category.
    -     * 
    - * - * OPERATING_SYSTEM_CATEGORY = 117; - */ - OPERATING_SYSTEM_CATEGORY(117), - /** - * - * - *
    -     * Operating system category name.
    -     * 
    - * - * OPERATING_SYSTEM_CATEGORY_NAME = 118; - */ - OPERATING_SYSTEM_CATEGORY_NAME(118), - /** - * - * - *
    -     * ID of the operating system version.
    -     * 
    - * - * OPERATING_SYSTEM_VERSION_ID = 238; - */ - OPERATING_SYSTEM_VERSION_ID(238), - /** - * - * - *
    -     * Details of the operating system, including version.
    -     * 
    - * - * OPERATING_SYSTEM_VERSION_NAME = 237; - */ - OPERATING_SYSTEM_VERSION_NAME(237), - /** - * - * - *
    -     * Order agency.
    -     * 
    - * - * ORDER_AGENCY = 150; - */ - ORDER_AGENCY(150), - /** - * - * - *
    -     * Order agency ID.
    -     * 
    - * - * ORDER_AGENCY_ID = 151; - */ - ORDER_AGENCY_ID(151), - /** - * - * - *
    -     * Order booked CPC.
    -     * 
    - * - * ORDER_BOOKED_CPC = 152; - */ - ORDER_BOOKED_CPC(152), - /** - * - * - *
    -     * Order booked CPM.
    -     * 
    - * - * ORDER_BOOKED_CPM = 153; - */ - ORDER_BOOKED_CPM(153), - /** - * - * - *
    -     * Order delivery status ENUM value.
    -     * 
    - * - * ORDER_DELIVERY_STATUS = 231; - */ - ORDER_DELIVERY_STATUS(231), - /** - * - * - *
    -     * Order delivery status localized name.
    -     * 
    - * - * ORDER_DELIVERY_STATUS_NAME = 239; - */ - ORDER_DELIVERY_STATUS_NAME(239), - /** - * - * - *
    -     * Order end date.
    -     * 
    - * - * ORDER_END_DATE = 154; - */ - ORDER_END_DATE(154), - /** - * - * - *
    -     * Order end date and time.
    -     * 
    - * - * ORDER_END_DATE_TIME = 155; - */ - ORDER_END_DATE_TIME(155), - /** - * - * - *
    -     * Order external ID.
    -     * 
    - * - * ORDER_EXTERNAL_ID = 156; - */ - ORDER_EXTERNAL_ID(156), - /** - * - * - *
    -     * Order id.
    -     * 
    - * - * ORDER_ID = 7; - */ - ORDER_ID(7), - /** - * - * - *
    -     * Order labels.
    -     * 
    - * - * ORDER_LABELS = 170; - */ - ORDER_LABELS(170), - /** - * - * - *
    -     * Order labels IDs.
    -     * 
    - * - * ORDER_LABEL_IDS = 171; - */ - ORDER_LABEL_IDS(171), - /** - * - * - *
    -     * Order lifetime clicks.
    -     * 
    - * - * ORDER_LIFETIME_CLICKS = 158; - */ - ORDER_LIFETIME_CLICKS(158), - /** - * - * - *
    -     * Order lifetime impressions.
    -     * 
    - * - * ORDER_LIFETIME_IMPRESSIONS = 159; - */ - ORDER_LIFETIME_IMPRESSIONS(159), - /** - * - * - *
    -     * Order name.
    -     * 
    - * - * ORDER_NAME = 8; - */ - ORDER_NAME(8), - /** - * - * - *
    -     * Order PO number.
    -     * 
    - * - * ORDER_PO_NUMBER = 160; - */ - ORDER_PO_NUMBER(160), - /** - * - * - *
    -     * Whether the Order is programmatic.
    -     * 
    - * - * ORDER_PROGRAMMATIC = 157; - */ - ORDER_PROGRAMMATIC(157), - /** - * - * - *
    -     * Order sales person.
    -     * 
    - * - * ORDER_SALESPERSON = 161; - */ - ORDER_SALESPERSON(161), - /** - * - * - *
    -     * Order secondary sales people.
    -     * 
    - * - * ORDER_SECONDARY_SALESPEOPLE = 164; - */ - ORDER_SECONDARY_SALESPEOPLE(164), - /** - * - * - *
    -     * Order secondary sales people ID.
    -     * 
    - * - * ORDER_SECONDARY_SALESPEOPLE_ID = 165; - */ - ORDER_SECONDARY_SALESPEOPLE_ID(165), - /** - * - * - *
    -     * Order secondary traffickers.
    -     * 
    - * - * ORDER_SECONDARY_TRAFFICKERS = 166; - */ - ORDER_SECONDARY_TRAFFICKERS(166), - /** - * - * - *
    -     * Order secondary traffickers ID.
    -     * 
    - * - * ORDER_SECONDARY_TRAFFICKERS_ID = 167; - */ - ORDER_SECONDARY_TRAFFICKERS_ID(167), - /** - * - * - *
    -     * Order start date.
    -     * 
    - * - * ORDER_START_DATE = 168; - */ - ORDER_START_DATE(168), - /** - * - * - *
    -     * Order start date and time.
    -     * 
    - * - * ORDER_START_DATE_TIME = 169; - */ - ORDER_START_DATE_TIME(169), - /** - * - * - *
    -     * Order trafficker.
    -     * 
    - * - * ORDER_TRAFFICKER = 162; - */ - ORDER_TRAFFICKER(162), - /** - * - * - *
    -     * Order trafficker ID.
    -     * 
    - * - * ORDER_TRAFFICKER_ID = 163; - */ - ORDER_TRAFFICKER_ID(163), - /** - * - * - *
    -     * Whether the Order end time and end date is set to effectively never
    -     * end.
    -     * 
    - * - * ORDER_UNLIMITED_END = 203; - */ - ORDER_UNLIMITED_END(203), - /** - * - * - *
    -     * Placement ID
    -     * 
    - * - * PLACEMENT_ID = 113; - */ - PLACEMENT_ID(113), - /** - * - * - *
    -     * The full list of placement IDs associated with the ad unit.
    -     * 
    - * - * PLACEMENT_ID_ALL = 144; - */ - PLACEMENT_ID_ALL(144), - /** - * - * - *
    -     * Placement name
    -     * 
    - * - * PLACEMENT_NAME = 114; - */ - PLACEMENT_NAME(114), - /** - * - * - *
    -     * The full list of placement names associated with the ad unit.
    -     * 
    - * - * PLACEMENT_NAME_ALL = 145; - */ - PLACEMENT_NAME_ALL(145), - /** - * - * - *
    -     * Placement status ENUM value
    -     * 
    - * - * PLACEMENT_STATUS = 362; - */ - PLACEMENT_STATUS(362), - /** - * - * - *
    -     * The full list of placement status ENUM values associated with the ad
    -     * unit.
    -     * 
    - * - * PLACEMENT_STATUS_ALL = 363; - */ - PLACEMENT_STATUS_ALL(363), - /** - * - * - *
    -     * Localized placement status name.
    -     * 
    - * - * PLACEMENT_STATUS_NAME = 364; - */ - PLACEMENT_STATUS_NAME(364), - /** - * - * - *
    -     * The full list of localized placement status names associated with the ad
    -     * unit.
    -     * 
    - * - * PLACEMENT_STATUS_NAME_ALL = 365; - */ - PLACEMENT_STATUS_NAME_ALL(365), - /** - * - * - *
    -     * The ID of the buyer on a programmatic proposal.
    -     * 
    - * - * PROGRAMMATIC_BUYER_ID = 240; - */ - PROGRAMMATIC_BUYER_ID(240), - /** - * - * - *
    -     * The name of the buyer on a programmatic proposal.
    -     * 
    - * - * PROGRAMMATIC_BUYER_NAME = 241; - */ - PROGRAMMATIC_BUYER_NAME(241), - /** - * - * - *
    -     * Programmatic channel.
    -     * The type of transaction that occurred in Ad Exchange.
    -     * 
    - * - * PROGRAMMATIC_CHANNEL = 13; - */ - PROGRAMMATIC_CHANNEL(13), - /** - * - * - *
    -     * Programmatic channel name.
    -     * The type of transaction that occurred in Ad Exchange.
    -     * 
    - * - * PROGRAMMATIC_CHANNEL_NAME = 14; - */ - PROGRAMMATIC_CHANNEL_NAME(14), - /** - * - * - *
    -     * The size of a rendered creative, It can differ with the creative's size
    -     * if a creative is shown in an ad slot of a different size.
    -     * 
    - * - * RENDERED_CREATIVE_SIZE = 343; - */ - RENDERED_CREATIVE_SIZE(343), - /** - * - * - *
    -     * Inventory Requested Ad Sizes dimension
    -     * 
    - * - * REQUESTED_AD_SIZES = 352; - */ - REQUESTED_AD_SIZES(352), - /** - * - * - *
    -     * Request type ENUM
    -     * 
    - * - * REQUEST_TYPE = 146; - */ - REQUEST_TYPE(146), - /** - * - * - *
    -     * Request type locallized name
    -     * 
    - * - * REQUEST_TYPE_NAME = 147; - */ - REQUEST_TYPE_NAME(147), - /** - * - * - *
    -     * Indicates if a request was eligible for server-side unwrapping.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; - */ - SERVER_SIDE_UNWRAPPING_ELIGIBLE(597), - /** - * - * - *
    -     * Information about domain or subdomains.
    -     * 
    - * - * SITE = 387; - */ - SITE(387), - /** - * - * - *
    -     * The ID of the browser, device or other environment into which a line item
    -     * or creative was served.
    -     * 
    - * - * TARGETING_ID = 232; - */ - TARGETING_ID(232), - /** - * - * - *
    -     * Information about the browser, device and other environments into which
    -     * a line item or creative was served.
    -     * 
    - * - * TARGETING_NAME = 233; - */ - TARGETING_NAME(233), - /** - * - * - *
    -     * The way in which advertisers targeted their ads.
    -     * 
    - * - * TARGETING_TYPE = 385; - */ - TARGETING_TYPE(385), - /** - * - * - *
    -     * The localized name of the way in which advertisers targeted their ads.
    -     * 
    - * - * TARGETING_TYPE_NAME = 386; - */ - TARGETING_TYPE_NAME(386), - /** - * - * - *
    -     * Inventory Traffic source dimension
    -     * 
    - * - * TRAFFIC_SOURCE = 388; - */ - TRAFFIC_SOURCE(388), - /** - * - * - *
    -     * Inventory Traffic source dimension name
    -     * 
    - * - * TRAFFIC_SOURCE_NAME = 389; - */ - TRAFFIC_SOURCE_NAME(389), - /** - * - * - *
    -     * Unified pricing rule ID dimension
    -     * 
    - * - * UNIFIED_PRICING_RULE_ID = 393; - */ - UNIFIED_PRICING_RULE_ID(393), - /** - * - * - *
    -     * Unified pricing rule name dimension
    -     * 
    - * - * UNIFIED_PRICING_RULE_NAME = 394; - */ - UNIFIED_PRICING_RULE_NAME(394), - /** - * - * - *
    -     * The video placement enum as defined by ADCOM 1.0-202303.
    -     * 
    - * - * VIDEO_PLCMT = 172; - */ - VIDEO_PLCMT(172), - /** - * - * - *
    -     * The localized name of the video placement as defined by ADCOM 1.0-202303.
    -     * 
    - * - * VIDEO_PLCMT_NAME = 173; - */ - VIDEO_PLCMT_NAME(173), - /** - * - * - *
    -     * Breaks down reporting data by week of the year.
    -     * 
    - * - * WEEK = 5; - */ - WEEK(5), - /** - * - * - *
    -     * Name of the company within a yield group
    -     * 
    - * - * YIELD_GROUP_BUYER_NAME = 184; - */ - YIELD_GROUP_BUYER_NAME(184), - /** - * - * - *
    -     * ID of the group of ad networks or exchanges used for Mediation and Open
    -     * Bidding
    -     * 
    - * - * YIELD_GROUP_ID = 182; - */ - YIELD_GROUP_ID(182), - /** - * - * - *
    -     * Name of the group of ad networks or exchanges used for Mediation and Open
    -     * Bidding
    -     * 
    - * - * YIELD_GROUP_NAME = 183; - */ - YIELD_GROUP_NAME(183), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; - */ - LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID(10000), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; - */ - LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID(10001), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; - */ - LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID(10002), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; - */ - LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID(10003), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; - */ - LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID(10004), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; - */ - LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID(10005), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; - */ - LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID(10006), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; - */ - LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID(10007), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; - */ - LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID(10008), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; - */ - LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID(10009), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; - */ - LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID(10010), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; - */ - LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID(10011), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; - */ - LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID(10012), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; - */ - LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID(10013), - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; - */ - LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID(10014), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 0 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; - */ - LINE_ITEM_CUSTOM_FIELD_0_VALUE(11000), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 1 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; - */ - LINE_ITEM_CUSTOM_FIELD_1_VALUE(11001), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 2 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; - */ - LINE_ITEM_CUSTOM_FIELD_2_VALUE(11002), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 3 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; - */ - LINE_ITEM_CUSTOM_FIELD_3_VALUE(11003), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 4 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; - */ - LINE_ITEM_CUSTOM_FIELD_4_VALUE(11004), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 5 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; - */ - LINE_ITEM_CUSTOM_FIELD_5_VALUE(11005), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 6 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; - */ - LINE_ITEM_CUSTOM_FIELD_6_VALUE(11006), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 7 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; - */ - LINE_ITEM_CUSTOM_FIELD_7_VALUE(11007), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 8 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; - */ - LINE_ITEM_CUSTOM_FIELD_8_VALUE(11008), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 9 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; - */ - LINE_ITEM_CUSTOM_FIELD_9_VALUE(11009), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 10 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; - */ - LINE_ITEM_CUSTOM_FIELD_10_VALUE(11010), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 11 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; - */ - LINE_ITEM_CUSTOM_FIELD_11_VALUE(11011), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 12 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; - */ - LINE_ITEM_CUSTOM_FIELD_12_VALUE(11012), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 13 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; - */ - LINE_ITEM_CUSTOM_FIELD_13_VALUE(11013), - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 14 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; - */ - LINE_ITEM_CUSTOM_FIELD_14_VALUE(11014), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; - */ - ORDER_CUSTOM_FIELD_0_OPTION_ID(12000), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; - */ - ORDER_CUSTOM_FIELD_1_OPTION_ID(12001), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; - */ - ORDER_CUSTOM_FIELD_2_OPTION_ID(12002), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; - */ - ORDER_CUSTOM_FIELD_3_OPTION_ID(12003), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; - */ - ORDER_CUSTOM_FIELD_4_OPTION_ID(12004), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; - */ - ORDER_CUSTOM_FIELD_5_OPTION_ID(12005), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; - */ - ORDER_CUSTOM_FIELD_6_OPTION_ID(12006), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; - */ - ORDER_CUSTOM_FIELD_7_OPTION_ID(12007), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; - */ - ORDER_CUSTOM_FIELD_8_OPTION_ID(12008), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; - */ - ORDER_CUSTOM_FIELD_9_OPTION_ID(12009), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; - */ - ORDER_CUSTOM_FIELD_10_OPTION_ID(12010), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; - */ - ORDER_CUSTOM_FIELD_11_OPTION_ID(12011), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; - */ - ORDER_CUSTOM_FIELD_12_OPTION_ID(12012), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; - */ - ORDER_CUSTOM_FIELD_13_OPTION_ID(12013), - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; - */ - ORDER_CUSTOM_FIELD_14_OPTION_ID(12014), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 0 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_0_VALUE = 13000; - */ - ORDER_CUSTOM_FIELD_0_VALUE(13000), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 1 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_1_VALUE = 13001; - */ - ORDER_CUSTOM_FIELD_1_VALUE(13001), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 2 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_2_VALUE = 13002; - */ - ORDER_CUSTOM_FIELD_2_VALUE(13002), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 3 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_3_VALUE = 13003; - */ - ORDER_CUSTOM_FIELD_3_VALUE(13003), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 4 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_4_VALUE = 13004; - */ - ORDER_CUSTOM_FIELD_4_VALUE(13004), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 5 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_5_VALUE = 13005; - */ - ORDER_CUSTOM_FIELD_5_VALUE(13005), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 6 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_6_VALUE = 13006; - */ - ORDER_CUSTOM_FIELD_6_VALUE(13006), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 7 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_7_VALUE = 13007; - */ - ORDER_CUSTOM_FIELD_7_VALUE(13007), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 8 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_8_VALUE = 13008; - */ - ORDER_CUSTOM_FIELD_8_VALUE(13008), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 9 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_9_VALUE = 13009; - */ - ORDER_CUSTOM_FIELD_9_VALUE(13009), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 10 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_10_VALUE = 13010; - */ - ORDER_CUSTOM_FIELD_10_VALUE(13010), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 11 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_11_VALUE = 13011; - */ - ORDER_CUSTOM_FIELD_11_VALUE(13011), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 12 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_12_VALUE = 13012; - */ - ORDER_CUSTOM_FIELD_12_VALUE(13012), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 13 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_13_VALUE = 13013; - */ - ORDER_CUSTOM_FIELD_13_VALUE(13013), - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 14 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_14_VALUE = 13014; - */ - ORDER_CUSTOM_FIELD_14_VALUE(13014), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; - */ - CREATIVE_CUSTOM_FIELD_0_OPTION_ID(14000), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; - */ - CREATIVE_CUSTOM_FIELD_1_OPTION_ID(14001), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; - */ - CREATIVE_CUSTOM_FIELD_2_OPTION_ID(14002), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; - */ - CREATIVE_CUSTOM_FIELD_3_OPTION_ID(14003), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; - */ - CREATIVE_CUSTOM_FIELD_4_OPTION_ID(14004), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; - */ - CREATIVE_CUSTOM_FIELD_5_OPTION_ID(14005), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; - */ - CREATIVE_CUSTOM_FIELD_6_OPTION_ID(14006), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; - */ - CREATIVE_CUSTOM_FIELD_7_OPTION_ID(14007), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; - */ - CREATIVE_CUSTOM_FIELD_8_OPTION_ID(14008), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; - */ - CREATIVE_CUSTOM_FIELD_9_OPTION_ID(14009), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; - */ - CREATIVE_CUSTOM_FIELD_10_OPTION_ID(14010), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; - */ - CREATIVE_CUSTOM_FIELD_11_OPTION_ID(14011), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; - */ - CREATIVE_CUSTOM_FIELD_12_OPTION_ID(14012), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; - */ - CREATIVE_CUSTOM_FIELD_13_OPTION_ID(14013), - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; - */ - CREATIVE_CUSTOM_FIELD_14_OPTION_ID(14014), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 0 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; - */ - CREATIVE_CUSTOM_FIELD_0_VALUE(15000), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 1 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; - */ - CREATIVE_CUSTOM_FIELD_1_VALUE(15001), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 2 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; - */ - CREATIVE_CUSTOM_FIELD_2_VALUE(15002), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 3 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; - */ - CREATIVE_CUSTOM_FIELD_3_VALUE(15003), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 4 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; - */ - CREATIVE_CUSTOM_FIELD_4_VALUE(15004), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 5 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; - */ - CREATIVE_CUSTOM_FIELD_5_VALUE(15005), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 6 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; - */ - CREATIVE_CUSTOM_FIELD_6_VALUE(15006), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 7 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; - */ - CREATIVE_CUSTOM_FIELD_7_VALUE(15007), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 8 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; - */ - CREATIVE_CUSTOM_FIELD_8_VALUE(15008), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 9 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; - */ - CREATIVE_CUSTOM_FIELD_9_VALUE(15009), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 10 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; - */ - CREATIVE_CUSTOM_FIELD_10_VALUE(15010), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 11 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; - */ - CREATIVE_CUSTOM_FIELD_11_VALUE(15011), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 12 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; - */ - CREATIVE_CUSTOM_FIELD_12_VALUE(15012), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 13 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; - */ - CREATIVE_CUSTOM_FIELD_13_VALUE(15013), - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 14 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; - */ - CREATIVE_CUSTOM_FIELD_14_VALUE(15014), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID(16000), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID(16001), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID(16002), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID(16003), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID(16004), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID(16005), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID(16006), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID(16007), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID(16008), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID(16009), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID(16010), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID(16011), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID(16012), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID(16013), - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID(16014), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 0 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE(17000), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 1 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE(17001), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 2 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE(17002), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 3 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE(17003), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 4 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE(17004), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 5 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE(17005), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 6 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE(17006), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 7 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE(17007), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 8 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE(17008), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 9 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE(17009), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 10 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE(17010), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 11 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE(17011), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 12 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE(17012), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 13 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE(17013), - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 14 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; - */ - BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE(17014), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 0 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; - */ - BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID(18000), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 1 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; - */ - BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID(18001), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 2 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; - */ - BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID(18002), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 3 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; - */ - BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID(18003), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 4 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; - */ - BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID(18004), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 5 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; - */ - BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID(18005), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 6 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; - */ - BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID(18006), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 7 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; - */ - BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID(18007), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 8 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; - */ - BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID(18008), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 9 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; - */ - BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID(18009), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 10 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; - */ - BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID(18010), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 11 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; - */ - BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID(18011), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 12 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; - */ - BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID(18012), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 13 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; - */ - BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID(18013), - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 14 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; - */ - BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID(18014), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID
    -     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 0 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; - */ - BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE(19000), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 1 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; - */ - BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE(19001), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 2 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; - */ - BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE(19002), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 3 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; - */ - BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE(19003), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 4 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; - */ - BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE(19004), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 5 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; - */ - BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE(19005), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 6 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; - */ - BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE(19006), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 7 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; - */ - BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE(19007), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 8 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; - */ - BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE(19008), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 9 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; - */ - BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE(19009), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 10 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; - */ - BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE(19010), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 11 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; - */ - BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE(19011), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 12 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; - */ - BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE(19012), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 13 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; - */ - BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE(19013), - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 14 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; - */ - BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE(19014), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID(20000), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID(20001), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID(20002), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID(20003), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID(20004), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID(20005), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID(20006), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID(20007), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID(20008), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID(20009), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID(20010), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID(20011), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID(20012), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID(20013), - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID(20014), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID
    -     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 0 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE(21000), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 1 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE(21001), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 2 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE(21002), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 3 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE(21003), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 4 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE(21004), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 5 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE(21005), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 6 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE(21006), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 7 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE(21007), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 8 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE(21008), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 9 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE(21009), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 10 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE(21010), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 11 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE(21011), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 12 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE(21012), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 13 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE(21013), - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 14 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; - */ - BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE(21014), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 0 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_0_VALUE_ID = 100000; - */ - CUSTOM_DIMENSION_0_VALUE_ID(100000), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 1 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_1_VALUE_ID = 100001; - */ - CUSTOM_DIMENSION_1_VALUE_ID(100001), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 2 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_2_VALUE_ID = 100002; - */ - CUSTOM_DIMENSION_2_VALUE_ID(100002), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 3 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_3_VALUE_ID = 100003; - */ - CUSTOM_DIMENSION_3_VALUE_ID(100003), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 4 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_4_VALUE_ID = 100004; - */ - CUSTOM_DIMENSION_4_VALUE_ID(100004), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 5 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_5_VALUE_ID = 100005; - */ - CUSTOM_DIMENSION_5_VALUE_ID(100005), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 6 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_6_VALUE_ID = 100006; - */ - CUSTOM_DIMENSION_6_VALUE_ID(100006), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_7_VALUE_ID = 100007; - */ - CUSTOM_DIMENSION_7_VALUE_ID(100007), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 8 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_8_VALUE_ID = 100008; - */ - CUSTOM_DIMENSION_8_VALUE_ID(100008), - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_9_VALUE_ID = 100009; - */ - CUSTOM_DIMENSION_9_VALUE_ID(100009), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 0 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_0_VALUE = 101000; - */ - CUSTOM_DIMENSION_0_VALUE(101000), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 1 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_1_VALUE = 101001; - */ - CUSTOM_DIMENSION_1_VALUE(101001), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 2 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_2_VALUE = 101002; - */ - CUSTOM_DIMENSION_2_VALUE(101002), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 3 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_3_VALUE = 101003; - */ - CUSTOM_DIMENSION_3_VALUE(101003), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 4 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_4_VALUE = 101004; - */ - CUSTOM_DIMENSION_4_VALUE(101004), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 5 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_5_VALUE = 101005; - */ - CUSTOM_DIMENSION_5_VALUE(101005), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 6 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_6_VALUE = 101006; - */ - CUSTOM_DIMENSION_6_VALUE(101006), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 7 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_7_VALUE = 101007; - */ - CUSTOM_DIMENSION_7_VALUE(101007), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 8 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_8_VALUE = 101008; - */ - CUSTOM_DIMENSION_8_VALUE(101008), - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_9_VALUE = 101009; - */ - CUSTOM_DIMENSION_9_VALUE(101009), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
    -     * Default value. This value is unused.
    -     * 
    - * - * DIMENSION_UNSPECIFIED = 0; - */ - public static final int DIMENSION_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
    -     * The domain name of the advertiser.
    -     * 
    - * - * ADVERTISER_DOMAIN_NAME = 242; - */ - public static final int ADVERTISER_DOMAIN_NAME_VALUE = 242; - - /** - * - * - *
    -     * The ID used in an external system for advertiser identification
    -     * 
    - * - * ADVERTISER_EXTERNAL_ID = 228; - */ - public static final int ADVERTISER_EXTERNAL_ID_VALUE = 228; - - /** - * - * - *
    -     * The ID of an advertiser company assigned to an order
    -     * 
    - * - * ADVERTISER_ID = 131; - */ - public static final int ADVERTISER_ID_VALUE = 131; - - /** - * - * - *
    -     * Labels applied to the advertiser
    -     * can be used for either competitive exclusion or ad exclusion
    -     * 
    - * - * ADVERTISER_LABELS = 230; - */ - public static final int ADVERTISER_LABELS_VALUE = 230; - - /** - * - * - *
    -     * Label ids applied to the advertiser
    -     * can be used for either competitive exclusion or ad exclusion
    -     * 
    - * - * ADVERTISER_LABEL_IDS = 229; - */ - public static final int ADVERTISER_LABEL_IDS_VALUE = 229; - - /** - * - * - *
    -     * The name of an advertiser company assigned to an order
    -     * 
    - * - * ADVERTISER_NAME = 132; - */ - public static final int ADVERTISER_NAME_VALUE = 132; - - /** - * - * - *
    -     * The name of the contact associated with an advertiser company
    -     * 
    - * - * ADVERTISER_PRIMARY_CONTACT = 227; - */ - public static final int ADVERTISER_PRIMARY_CONTACT_VALUE = 227; - - /** - * - * - *
    -     * Shows an ENUM value describing whether a given piece of publisher
    -     * inventory was above (ATF) or below the fold (BTF) of a page.
    -     * 
    - * - * AD_LOCATION = 390; - */ - public static final int AD_LOCATION_VALUE = 390; - - /** - * - * - *
    -     * Shows a localized string describing whether a given piece of publisher
    -     * inventory was above (ATF) or below the fold (BTF) of a page.
    -     * 
    - * - * AD_LOCATION_NAME = 391; - */ - public static final int AD_LOCATION_NAME_VALUE = 391; - - /** - * - * - *
    -     * The code of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_CODE = 64; - */ - public static final int AD_UNIT_CODE_VALUE = 64; - - /** - * - * - *
    -     * The code of the first level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_1 = 65; - */ - public static final int AD_UNIT_CODE_LEVEL_1_VALUE = 65; - - /** - * - * - *
    -     * The code of the tenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_10 = 74; - */ - public static final int AD_UNIT_CODE_LEVEL_10_VALUE = 74; - - /** - * - * - *
    -     * The code of the eleventh level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_11 = 75; - */ - public static final int AD_UNIT_CODE_LEVEL_11_VALUE = 75; - - /** - * - * - *
    -     * The code of the twelfth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_12 = 76; - */ - public static final int AD_UNIT_CODE_LEVEL_12_VALUE = 76; - - /** - * - * - *
    -     * The code of the thirteenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_13 = 77; - */ - public static final int AD_UNIT_CODE_LEVEL_13_VALUE = 77; - - /** - * - * - *
    -     * The code of the fourteenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_14 = 78; - */ - public static final int AD_UNIT_CODE_LEVEL_14_VALUE = 78; - - /** - * - * - *
    -     * The code of the fifteenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_15 = 79; - */ - public static final int AD_UNIT_CODE_LEVEL_15_VALUE = 79; - - /** - * - * - *
    -     * The code of the sixteenth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_16 = 80; - */ - public static final int AD_UNIT_CODE_LEVEL_16_VALUE = 80; - - /** - * - * - *
    -     * The code of the second level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_2 = 66; - */ - public static final int AD_UNIT_CODE_LEVEL_2_VALUE = 66; - - /** - * - * - *
    -     * The code of the third level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_3 = 67; - */ - public static final int AD_UNIT_CODE_LEVEL_3_VALUE = 67; - - /** - * - * - *
    -     * The code of the fourth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_4 = 68; - */ - public static final int AD_UNIT_CODE_LEVEL_4_VALUE = 68; - - /** - * - * - *
    -     * The code of the fifth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_5 = 69; - */ - public static final int AD_UNIT_CODE_LEVEL_5_VALUE = 69; - - /** - * - * - *
    -     * The code of the sixth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_6 = 70; - */ - public static final int AD_UNIT_CODE_LEVEL_6_VALUE = 70; - - /** - * - * - *
    -     * The code of the seventh level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_7 = 71; - */ - public static final int AD_UNIT_CODE_LEVEL_7_VALUE = 71; - - /** - * - * - *
    -     * The code of the eighth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_8 = 72; - */ - public static final int AD_UNIT_CODE_LEVEL_8_VALUE = 72; - - /** - * - * - *
    -     * The code of the ninth level ad unit of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_CODE_LEVEL_9 = 73; - */ - public static final int AD_UNIT_CODE_LEVEL_9_VALUE = 73; - - /** - * - * - *
    -     * The depth of the ad unit's hierarchy
    -     * 
    - * - * AD_UNIT_DEPTH = 101; - */ - public static final int AD_UNIT_DEPTH_VALUE = 101; - - /** - * - * - *
    -     * The ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID = 25; - */ - public static final int AD_UNIT_ID_VALUE = 25; - - /** - * - * - *
    -     * The full hierarchy of ad unit IDs where the ad was requested, from
    -     * root to leaf, excluding the root ad unit ID.
    -     * 
    - * - * AD_UNIT_ID_ALL_LEVEL = 27; - */ - public static final int AD_UNIT_ID_ALL_LEVEL_VALUE = 27; - - /** - * - * - *
    -     * The first level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_1 = 30; - */ - public static final int AD_UNIT_ID_LEVEL_1_VALUE = 30; - - /** - * - * - *
    -     * The tenth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_10 = 48; - */ - public static final int AD_UNIT_ID_LEVEL_10_VALUE = 48; - - /** - * - * - *
    -     * The eleventh level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_11 = 50; - */ - public static final int AD_UNIT_ID_LEVEL_11_VALUE = 50; - - /** - * - * - *
    -     * The twelfth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_12 = 52; - */ - public static final int AD_UNIT_ID_LEVEL_12_VALUE = 52; - - /** - * - * - *
    -     * The thirteenth level ad unit ID of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_13 = 54; - */ - public static final int AD_UNIT_ID_LEVEL_13_VALUE = 54; - - /** - * - * - *
    -     * The fourteenth level ad unit ID of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_14 = 56; - */ - public static final int AD_UNIT_ID_LEVEL_14_VALUE = 56; - - /** - * - * - *
    -     * The fifteenth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_15 = 58; - */ - public static final int AD_UNIT_ID_LEVEL_15_VALUE = 58; - - /** - * - * - *
    -     * The sixteenth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_16 = 60; - */ - public static final int AD_UNIT_ID_LEVEL_16_VALUE = 60; - - /** - * - * - *
    -     * The second level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_2 = 32; - */ - public static final int AD_UNIT_ID_LEVEL_2_VALUE = 32; - - /** - * - * - *
    -     * The third level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_3 = 34; - */ - public static final int AD_UNIT_ID_LEVEL_3_VALUE = 34; - - /** - * - * - *
    -     * The fourth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_4 = 36; - */ - public static final int AD_UNIT_ID_LEVEL_4_VALUE = 36; - - /** - * - * - *
    -     * The fifth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_5 = 38; - */ - public static final int AD_UNIT_ID_LEVEL_5_VALUE = 38; - - /** - * - * - *
    -     * The sixth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_6 = 40; - */ - public static final int AD_UNIT_ID_LEVEL_6_VALUE = 40; - - /** - * - * - *
    -     * The seventh level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_7 = 42; - */ - public static final int AD_UNIT_ID_LEVEL_7_VALUE = 42; - - /** - * - * - *
    -     * The eighth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_8 = 44; - */ - public static final int AD_UNIT_ID_LEVEL_8_VALUE = 44; - - /** - * - * - *
    -     * The ninth level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_LEVEL_9 = 46; - */ - public static final int AD_UNIT_ID_LEVEL_9_VALUE = 46; - - /** - * - * - *
    -     * The top-level ad unit ID of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_ID_TOP_LEVEL = 142; - */ - public static final int AD_UNIT_ID_TOP_LEVEL_VALUE = 142; - - /** - * - * - *
    -     * The name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME = 26; - */ - public static final int AD_UNIT_NAME_VALUE = 26; - - /** - * - * - *
    -     * The full hierarchy of ad unit names where the ad was requested, from
    -     * root to leaf, excluding the root ad unit name.
    -     * 
    - * - * AD_UNIT_NAME_ALL_LEVEL = 29; - */ - public static final int AD_UNIT_NAME_ALL_LEVEL_VALUE = 29; - - /** - * - * - *
    -     * The first level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_1 = 31; - */ - public static final int AD_UNIT_NAME_LEVEL_1_VALUE = 31; - - /** - * - * - *
    -     * The tenth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_10 = 49; - */ - public static final int AD_UNIT_NAME_LEVEL_10_VALUE = 49; - - /** - * - * - *
    -     * The eleventh level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_11 = 51; - */ - public static final int AD_UNIT_NAME_LEVEL_11_VALUE = 51; - - /** - * - * - *
    -     * The twelfth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_12 = 53; - */ - public static final int AD_UNIT_NAME_LEVEL_12_VALUE = 53; - - /** - * - * - *
    -     * The thirteenth level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_13 = 55; - */ - public static final int AD_UNIT_NAME_LEVEL_13_VALUE = 55; - - /** - * - * - *
    -     * The fourteenth level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_14 = 57; - */ - public static final int AD_UNIT_NAME_LEVEL_14_VALUE = 57; - - /** - * - * - *
    -     * The fifteenth level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_15 = 59; - */ - public static final int AD_UNIT_NAME_LEVEL_15_VALUE = 59; - - /** - * - * - *
    -     * The sixteenth level ad unit name of the ad unit where the ad was
    -     * requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_16 = 61; - */ - public static final int AD_UNIT_NAME_LEVEL_16_VALUE = 61; - - /** - * - * - *
    -     * The second level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_2 = 33; - */ - public static final int AD_UNIT_NAME_LEVEL_2_VALUE = 33; - - /** - * - * - *
    -     * The third level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_3 = 35; - */ - public static final int AD_UNIT_NAME_LEVEL_3_VALUE = 35; - - /** - * - * - *
    -     * The fourth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_4 = 37; - */ - public static final int AD_UNIT_NAME_LEVEL_4_VALUE = 37; - - /** - * - * - *
    -     * The fifth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_5 = 39; - */ - public static final int AD_UNIT_NAME_LEVEL_5_VALUE = 39; - - /** - * - * - *
    -     * The sixth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_6 = 41; - */ - public static final int AD_UNIT_NAME_LEVEL_6_VALUE = 41; - - /** - * - * - *
    -     * The seventh level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_7 = 43; - */ - public static final int AD_UNIT_NAME_LEVEL_7_VALUE = 43; - - /** - * - * - *
    -     * The eighth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_8 = 45; - */ - public static final int AD_UNIT_NAME_LEVEL_8_VALUE = 45; - - /** - * - * - *
    -     * The ninth level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_LEVEL_9 = 47; - */ - public static final int AD_UNIT_NAME_LEVEL_9_VALUE = 47; - - /** - * - * - *
    -     * The top-level ad unit name of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_NAME_TOP_LEVEL = 143; - */ - public static final int AD_UNIT_NAME_TOP_LEVEL_VALUE = 143; - - /** - * - * - *
    -     * The reward amount of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_REWARD_AMOUNT = 63; - */ - public static final int AD_UNIT_REWARD_AMOUNT_VALUE = 63; - - /** - * - * - *
    -     * The reward type of the ad unit where the ad was requested.
    -     * 
    - * - * AD_UNIT_REWARD_TYPE = 62; - */ - public static final int AD_UNIT_REWARD_TYPE_VALUE = 62; - - /** - * - * - *
    -     * The status of the ad unit
    -     * 
    - * - * AD_UNIT_STATUS = 206; - */ - public static final int AD_UNIT_STATUS_VALUE = 206; - - /** - * - * - *
    -     * The name of the status of the ad unit
    -     * 
    - * - * AD_UNIT_STATUS_NAME = 207; - */ - public static final int AD_UNIT_STATUS_NAME_VALUE = 207; - - /** - * - * - *
    -     * The app version.
    -     * 
    - * - * APP_VERSION = 392; - */ - public static final int APP_VERSION_VALUE = 392; - - /** - * - * - *
    -     * The ID used in an external system for advertiser identification
    -     * 
    - * - * BACKFILL_ADVERTISER_EXTERNAL_ID = 349; - */ - public static final int BACKFILL_ADVERTISER_EXTERNAL_ID_VALUE = 349; - - /** - * - * - *
    -     * The ID of an advertiser company assigned to a backfill order
    -     * 
    - * - * BACKFILL_ADVERTISER_ID = 346; - */ - public static final int BACKFILL_ADVERTISER_ID_VALUE = 346; - - /** - * - * - *
    -     * Labels applied to the advertiser
    -     * can be used for either competitive exclusion or ad exclusion
    -     * 
    - * - * BACKFILL_ADVERTISER_LABELS = 351; - */ - public static final int BACKFILL_ADVERTISER_LABELS_VALUE = 351; - - /** - * - * - *
    -     * Label ids applied to the advertiser
    -     * can be used for either competitive exclusion or ad exclusion
    -     * 
    - * - * BACKFILL_ADVERTISER_LABEL_IDS = 350; - */ - public static final int BACKFILL_ADVERTISER_LABEL_IDS_VALUE = 350; - - /** - * - * - *
    -     * The name of an advertiser company assigned to a backfill order
    -     * 
    - * - * BACKFILL_ADVERTISER_NAME = 347; - */ - public static final int BACKFILL_ADVERTISER_NAME_VALUE = 347; - - /** - * - * - *
    -     * The name of the contact associated with an advertiser company
    -     * 
    - * - * BACKFILL_ADVERTISER_PRIMARY_CONTACT = 348; - */ - public static final int BACKFILL_ADVERTISER_PRIMARY_CONTACT_VALUE = 348; - - /** - * - * - *
    -     * Enum value of Backfill creative billing type
    -     * 
    - * - * BACKFILL_CREATIVE_BILLING_TYPE = 378; - */ - public static final int BACKFILL_CREATIVE_BILLING_TYPE_VALUE = 378; - - /** - * - * - *
    -     * Localized string value of Backfill creative billing type
    -     * 
    - * - * BACKFILL_CREATIVE_BILLING_TYPE_NAME = 379; - */ - public static final int BACKFILL_CREATIVE_BILLING_TYPE_NAME_VALUE = 379; - - /** - * - * - *
    -     * Represents the click-through URL of a Backfill creative
    -     * 
    - * - * BACKFILL_CREATIVE_CLICK_THROUGH_URL = 376; - */ - public static final int BACKFILL_CREATIVE_CLICK_THROUGH_URL_VALUE = 376; - - /** - * - * - *
    -     * The ID of a Backfill creative
    -     * 
    - * - * BACKFILL_CREATIVE_ID = 370; - */ - public static final int BACKFILL_CREATIVE_ID_VALUE = 370; - - /** - * - * - *
    -     * Backfill creative name
    -     * 
    - * - * BACKFILL_CREATIVE_NAME = 371; - */ - public static final int BACKFILL_CREATIVE_NAME_VALUE = 371; - - /** - * - * - *
    -     * Third party vendor name of a Backfill creative
    -     * 
    - * - * BACKFILL_CREATIVE_THIRD_PARTY_VENDOR = 377; - */ - public static final int BACKFILL_CREATIVE_THIRD_PARTY_VENDOR_VALUE = 377; - - /** - * - * - *
    -     * Enum value of Backfill creative type
    -     * 
    - * - * BACKFILL_CREATIVE_TYPE = 374; - */ - public static final int BACKFILL_CREATIVE_TYPE_VALUE = 374; - - /** - * - * - *
    -     * Localized string name of Backfill creative type
    -     * 
    - * - * BACKFILL_CREATIVE_TYPE_NAME = 375; - */ - public static final int BACKFILL_CREATIVE_TYPE_NAME_VALUE = 375; - - /** - * - * - *
    -     * Whether a Backfill line item is archived.
    -     * 
    - * - * BACKFILL_LINE_ITEM_ARCHIVED = 278; - */ - public static final int BACKFILL_LINE_ITEM_ARCHIVED_VALUE = 278; - - /** - * - * - *
    -     * Backfill line item comanion delivery option ENUM value.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION = 258; - */ - public static final int BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_VALUE = 258; - - /** - * - * - *
    -     * Localized Backfill line item comanion delivery option name.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 259; - */ - public static final int BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME_VALUE = 259; - - /** - * - * - *
    -     * The computed status of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COMPUTED_STATUS = 296; - */ - public static final int BACKFILL_LINE_ITEM_COMPUTED_STATUS_VALUE = 296; - - /** - * - * - *
    -     * The localized name of the computed status of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME = 297; - */ - public static final int BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME_VALUE = 297; - - /** - * - * - *
    -     * The contracted units bought for the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY = 280; - */ - public static final int BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY_VALUE = 280; - - /** - * - * - *
    -     * The cost per unit of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COST_PER_UNIT = 272; - */ - public static final int BACKFILL_LINE_ITEM_COST_PER_UNIT_VALUE = 272; - - /** - * - * - *
    -     * Backfill line item cost type ENUM value.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COST_TYPE = 264; - */ - public static final int BACKFILL_LINE_ITEM_COST_TYPE_VALUE = 264; - - /** - * - * - *
    -     * Localized Backfill line item cost type name.
    -     * 
    - * - * BACKFILL_LINE_ITEM_COST_TYPE_NAME = 265; - */ - public static final int BACKFILL_LINE_ITEM_COST_TYPE_NAME_VALUE = 265; - - /** - * - * - *
    -     * Represent the end date of a Backfill creative associated with a Backfill
    -     * line item
    -     * 
    - * - * BACKFILL_LINE_ITEM_CREATIVE_END_DATE = 381; - */ - public static final int BACKFILL_LINE_ITEM_CREATIVE_END_DATE_VALUE = 381; - - /** - * - * - *
    -     * The creative rotation type of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE = 290; - */ - public static final int BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_VALUE = 290; - - /** - * - * - *
    -     * The localized name of the creative rotation type of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 291; - */ - public static final int BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME_VALUE = 291; - - /** - * - * - *
    -     * Represent the start date of a Backfill creative associated with a
    -     * Backfill line item
    -     * 
    - * - * BACKFILL_LINE_ITEM_CREATIVE_START_DATE = 380; - */ - public static final int BACKFILL_LINE_ITEM_CREATIVE_START_DATE_VALUE = 380; - - /** - * - * - *
    -     * The 3 letter currency code of the Backfill line item
    -     * 
    - * - * BACKFILL_LINE_ITEM_CURRENCY_CODE = 288; - */ - public static final int BACKFILL_LINE_ITEM_CURRENCY_CODE_VALUE = 288; - - /** - * - * - *
    -     * The progress made for the delivery of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DELIVERY_INDICATOR = 274; - */ - public static final int BACKFILL_LINE_ITEM_DELIVERY_INDICATOR_VALUE = 274; - - /** - * - * - *
    -     * The delivery rate type of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE = 292; - */ - public static final int BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_VALUE = 292; - - /** - * - * - *
    -     * The localized name of the delivery rate type of the BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 293; - */ - public static final int BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME_VALUE = 293; - - /** - * - * - *
    -     * The discount of the BackfillLineItem in whole units in the
    -     * BackfillLineItem's currency code, or if unspecified the Network's
    -     * currency code.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE = 294; - */ - public static final int BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE_VALUE = 294; - - /** - * - * - *
    -     * The discount of the BackfillLineItem in percentage.
    -     * 
    - * - * BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE = 295; - */ - public static final int BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE_VALUE = 295; - - /** - * - * - *
    -     * The end date of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_END_DATE = 267; - */ - public static final int BACKFILL_LINE_ITEM_END_DATE_VALUE = 267; - - /** - * - * - *
    -     * The end date and time of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_END_DATE_TIME = 269; - */ - public static final int BACKFILL_LINE_ITEM_END_DATE_TIME_VALUE = 269; - - /** - * - * - *
    -     * The ENUM value of the environment a Backfill line item is targeting.
    -     * 
    - * - * BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE = 302; - */ - public static final int BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_VALUE = 302; - - /** - * - * - *
    -     * The localized name of the environment a Backfill line item is targeting.
    -     * 
    - * - * BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME = 257; - */ - public static final int BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME_VALUE = 257; - - /** - * - * - *
    -     * The deal ID of the Backfill line item. Set for Programmatic Direct
    -     * campaigns.
    -     * 
    - * - * BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID = 285; - */ - public static final int BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID_VALUE = 285; - - /** - * - * - *
    -     * The external ID of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_EXTERNAL_ID = 273; - */ - public static final int BACKFILL_LINE_ITEM_EXTERNAL_ID_VALUE = 273; - - /** - * - * - *
    -     * The frequency cap of the Backfill line item (descriptive string).
    -     * 
    - * - * BACKFILL_LINE_ITEM_FREQUENCY_CAP = 303; - */ - public static final int BACKFILL_LINE_ITEM_FREQUENCY_CAP_VALUE = 303; - - /** - * - * - *
    -     * Backfill line item ID.
    -     * 
    - * - * BACKFILL_LINE_ITEM_ID = 298; - */ - public static final int BACKFILL_LINE_ITEM_ID_VALUE = 298; - - /** - * - * - *
    -     * The application that last modified the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP = 289; - */ - public static final int BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP_VALUE = 289; - - /** - * - * - *
    -     * The total number of clicks delivered of the lifetime of the Backfill line
    -     * item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_LIFETIME_CLICKS = 283; - */ - public static final int BACKFILL_LINE_ITEM_LIFETIME_CLICKS_VALUE = 283; - - /** - * - * - *
    -     * The total number of impressions delivered over the lifetime of the
    -     * Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS = 282; - */ - public static final int BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS_VALUE = 282; - - /** - * - * - *
    -     * The total number of viewable impressions delivered over the lifetime of
    -     * the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 284; - */ - public static final int BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS_VALUE = 284; - - /** - * - * - *
    -     * Whether or not the Backfill line item is Makegood. Makegood refers to
    -     * free inventory offered to buyers to compensate for mistakes or
    -     * under-delivery in the original campaigns.
    -     * 
    - * - * BACKFILL_LINE_ITEM_MAKEGOOD = 276; - */ - public static final int BACKFILL_LINE_ITEM_MAKEGOOD_VALUE = 276; - - /** - * - * - *
    -     * Backfill line item name.
    -     * 
    - * - * BACKFILL_LINE_ITEM_NAME = 299; - */ - public static final int BACKFILL_LINE_ITEM_NAME_VALUE = 299; - - /** - * - * - *
    -     * The cost of booking for the Backfill line item (non-CPD).
    -     * 
    - * - * BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE = 286; - */ - public static final int BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE_VALUE = 286; - - /** - * - * - *
    -     * Whether a Backfill line item is eligible for opitimization.
    -     * 
    - * - * BACKFILL_LINE_ITEM_OPTIMIZABLE = 277; - */ - public static final int BACKFILL_LINE_ITEM_OPTIMIZABLE_VALUE = 277; - - /** - * - * - *
    -     * Goal type ENUM value of the primary goal of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE = 262; - */ - public static final int BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_VALUE = 262; - - /** - * - * - *
    -     * Localized goal type name of the primary goal of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 263; - */ - public static final int BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME_VALUE = 263; - - /** - * - * - *
    -     * Unit type ENUM value of the primary goal of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 260; - */ - public static final int BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_VALUE = 260; - - /** - * - * - *
    -     * Localized unit type name of the primary goal of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 261; - */ - public static final int BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME_VALUE = 261; - - /** - * - * - *
    -     * The priority of this Backfill line item as a value between 1 and 16.
    -     * In general, a lower priority means more serving priority for the
    -     * Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_PRIORITY = 266; - */ - public static final int BACKFILL_LINE_ITEM_PRIORITY_VALUE = 266; - - /** - * - * - *
    -     * ENUM value describing the state of inventory reservation for the
    -     * BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_RESERVATION_STATUS = 306; - */ - public static final int BACKFILL_LINE_ITEM_RESERVATION_STATUS_VALUE = 306; - - /** - * - * - *
    -     * Localized string describing the state of inventory reservation for the
    -     * BackfillLineItem.
    -     * 
    - * - * BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME = 307; - */ - public static final int BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME_VALUE = 307; - - /** - * - * - *
    -     * The start date of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_START_DATE = 268; - */ - public static final int BACKFILL_LINE_ITEM_START_DATE_VALUE = 268; - - /** - * - * - *
    -     * The start date and time of the Backfill line item.
    -     * 
    - * - * BACKFILL_LINE_ITEM_START_DATE_TIME = 270; - */ - public static final int BACKFILL_LINE_ITEM_START_DATE_TIME_VALUE = 270; - - /** - * - * - *
    -     * Backfill line item type ENUM value.
    -     * 
    - * - * BACKFILL_LINE_ITEM_TYPE = 300; - */ - public static final int BACKFILL_LINE_ITEM_TYPE_VALUE = 300; - - /** - * - * - *
    -     * Localized Backfill line item type name.
    -     * 
    - * - * BACKFILL_LINE_ITEM_TYPE_NAME = 301; - */ - public static final int BACKFILL_LINE_ITEM_TYPE_NAME_VALUE = 301; - - /** - * - * - *
    -     * Whether the Backfill line item end time and end date is set to
    -     * effectively never end.
    -     * 
    - * - * BACKFILL_LINE_ITEM_UNLIMITED_END = 271; - */ - public static final int BACKFILL_LINE_ITEM_UNLIMITED_END_VALUE = 271; - - /** - * - * - *
    -     * The artificial cost per unit used by the Ad server to help rank
    -     * inventory.
    -     * 
    - * - * BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT = 275; - */ - public static final int BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT_VALUE = 275; - - /** - * - * - *
    -     * The web property code used for dynamic allocation Backfill line items.
    -     * 
    - * - * BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE = 287; - */ - public static final int BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE_VALUE = 287; - - /** - * - * - *
    -     * The ID of Backfill creative, includes regular creatives, and master and
    -     * companions in case of creative sets
    -     * 
    - * - * BACKFILL_MASTER_COMPANION_CREATIVE_ID = 372; - */ - public static final int BACKFILL_MASTER_COMPANION_CREATIVE_ID_VALUE = 372; - - /** - * - * - *
    -     * Name of Backfill creative, includes regular creatives, and master and
    -     * companions in case of creative sets
    -     * 
    - * - * BACKFILL_MASTER_COMPANION_CREATIVE_NAME = 373; - */ - public static final int BACKFILL_MASTER_COMPANION_CREATIVE_NAME_VALUE = 373; - - /** - * - * - *
    -     * Backfill order agency.
    -     * 
    - * - * BACKFILL_ORDER_AGENCY = 313; - */ - public static final int BACKFILL_ORDER_AGENCY_VALUE = 313; - - /** - * - * - *
    -     * Backfill order agency ID.
    -     * 
    - * - * BACKFILL_ORDER_AGENCY_ID = 314; - */ - public static final int BACKFILL_ORDER_AGENCY_ID_VALUE = 314; - - /** - * - * - *
    -     * Backfill order booked CPC.
    -     * 
    - * - * BACKFILL_ORDER_BOOKED_CPC = 315; - */ - public static final int BACKFILL_ORDER_BOOKED_CPC_VALUE = 315; - - /** - * - * - *
    -     * Backfill order booked CPM.
    -     * 
    - * - * BACKFILL_ORDER_BOOKED_CPM = 316; - */ - public static final int BACKFILL_ORDER_BOOKED_CPM_VALUE = 316; - - /** - * - * - *
    -     * Backfill order delivery status ENUM value.
    -     * 
    - * - * BACKFILL_ORDER_DELIVERY_STATUS = 340; - */ - public static final int BACKFILL_ORDER_DELIVERY_STATUS_VALUE = 340; - - /** - * - * - *
    -     * Backfill order delivery status localized name.
    -     * 
    - * - * BACKFILL_ORDER_DELIVERY_STATUS_NAME = 341; - */ - public static final int BACKFILL_ORDER_DELIVERY_STATUS_NAME_VALUE = 341; - - /** - * - * - *
    -     * Backfill order end date.
    -     * 
    - * - * BACKFILL_ORDER_END_DATE = 317; - */ - public static final int BACKFILL_ORDER_END_DATE_VALUE = 317; - - /** - * - * - *
    -     * Backfill order end date and time.
    -     * 
    - * - * BACKFILL_ORDER_END_DATE_TIME = 319; - */ - public static final int BACKFILL_ORDER_END_DATE_TIME_VALUE = 319; - - /** - * - * - *
    -     * Backfill order external ID.
    -     * 
    - * - * BACKFILL_ORDER_EXTERNAL_ID = 320; - */ - public static final int BACKFILL_ORDER_EXTERNAL_ID_VALUE = 320; - - /** - * - * - *
    -     * Backfill order id.
    -     * 
    - * - * BACKFILL_ORDER_ID = 338; - */ - public static final int BACKFILL_ORDER_ID_VALUE = 338; - - /** - * - * - *
    -     * Backfill order labels.
    -     * 
    - * - * BACKFILL_ORDER_LABELS = 334; - */ - public static final int BACKFILL_ORDER_LABELS_VALUE = 334; - - /** - * - * - *
    -     * Backfill order labels IDs.
    -     * 
    - * - * BACKFILL_ORDER_LABEL_IDS = 335; - */ - public static final int BACKFILL_ORDER_LABEL_IDS_VALUE = 335; - - /** - * - * - *
    -     * Backfill order lifetime clicks.
    -     * 
    - * - * BACKFILL_ORDER_LIFETIME_CLICKS = 322; - */ - public static final int BACKFILL_ORDER_LIFETIME_CLICKS_VALUE = 322; - - /** - * - * - *
    -     * Backfill order lifetime impressions.
    -     * 
    - * - * BACKFILL_ORDER_LIFETIME_IMPRESSIONS = 323; - */ - public static final int BACKFILL_ORDER_LIFETIME_IMPRESSIONS_VALUE = 323; - - /** - * - * - *
    -     * Backfill order name.
    -     * 
    - * - * BACKFILL_ORDER_NAME = 339; - */ - public static final int BACKFILL_ORDER_NAME_VALUE = 339; - - /** - * - * - *
    -     * Backfill order PO number.
    -     * 
    - * - * BACKFILL_ORDER_PO_NUMBER = 324; - */ - public static final int BACKFILL_ORDER_PO_NUMBER_VALUE = 324; - - /** - * - * - *
    -     * Whether the Backfill order is programmatic.
    -     * 
    - * - * BACKFILL_ORDER_PROGRAMMATIC = 321; - */ - public static final int BACKFILL_ORDER_PROGRAMMATIC_VALUE = 321; - - /** - * - * - *
    -     * Backfill order sales person.
    -     * 
    - * - * BACKFILL_ORDER_SALESPERSON = 325; - */ - public static final int BACKFILL_ORDER_SALESPERSON_VALUE = 325; - - /** - * - * - *
    -     * Backfill order secondary sales people.
    -     * 
    - * - * BACKFILL_ORDER_SECONDARY_SALESPEOPLE = 329; - */ - public static final int BACKFILL_ORDER_SECONDARY_SALESPEOPLE_VALUE = 329; - - /** - * - * - *
    -     * Backfill order secondary sales people ID.
    -     * 
    - * - * BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID = 328; - */ - public static final int BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID_VALUE = 328; - - /** - * - * - *
    -     * Backfill order secondary traffickers.
    -     * 
    - * - * BACKFILL_ORDER_SECONDARY_TRAFFICKERS = 331; - */ - public static final int BACKFILL_ORDER_SECONDARY_TRAFFICKERS_VALUE = 331; - - /** - * - * - *
    -     * Backfill order secondary traffickers ID.
    -     * 
    - * - * BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID = 330; - */ - public static final int BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID_VALUE = 330; - - /** - * - * - *
    -     * Backfill order start date.
    -     * 
    - * - * BACKFILL_ORDER_START_DATE = 332; - */ - public static final int BACKFILL_ORDER_START_DATE_VALUE = 332; - - /** - * - * - *
    -     * Backfill order start date and time.
    -     * 
    - * - * BACKFILL_ORDER_START_DATE_TIME = 333; - */ - public static final int BACKFILL_ORDER_START_DATE_TIME_VALUE = 333; - - /** - * - * - *
    -     * Backfill order trafficker.
    -     * 
    - * - * BACKFILL_ORDER_TRAFFICKER = 326; - */ - public static final int BACKFILL_ORDER_TRAFFICKER_VALUE = 326; - - /** - * - * - *
    -     * Backfill order trafficker ID.
    -     * 
    - * - * BACKFILL_ORDER_TRAFFICKER_ID = 327; - */ - public static final int BACKFILL_ORDER_TRAFFICKER_ID_VALUE = 327; - - /** - * - * - *
    -     * Whether the Backfill order end time and end date is set to effectively
    -     * never end.
    -     * 
    - * - * BACKFILL_ORDER_UNLIMITED_END = 318; - */ - public static final int BACKFILL_ORDER_UNLIMITED_END_VALUE = 318; - - /** - * - * - *
    -     * The ID of the buyer on a backfill programmatic proposal.
    -     * 
    - * - * BACKFILL_PROGRAMMATIC_BUYER_ID = 336; - */ - public static final int BACKFILL_PROGRAMMATIC_BUYER_ID_VALUE = 336; - - /** - * - * - *
    -     * The name of the buyer on a backfill programmatic proposal.
    -     * 
    - * - * BACKFILL_PROGRAMMATIC_BUYER_NAME = 337; - */ - public static final int BACKFILL_PROGRAMMATIC_BUYER_NAME_VALUE = 337; - - /** - * - * - *
    -     * The amount of information about the Publisher's page sent to the buyer
    -     * who purchased the impressions.
    -     * 
    - * - * BRANDING_TYPE = 383; - */ - public static final int BRANDING_TYPE_VALUE = 383; - - /** - * - * - *
    -     * The localized version of branding type, the amount of information about
    -     * the Publisher's page sent to the buyer who purchased the impressions.
    -     * 
    - * - * BRANDING_TYPE_NAME = 384; - */ - public static final int BRANDING_TYPE_NAME_VALUE = 384; - - /** - * - * - *
    -     * Browser category.
    -     * 
    - * - * BROWSER_CATEGORY = 119; - */ - public static final int BROWSER_CATEGORY_VALUE = 119; - - /** - * - * - *
    -     * Browser category name.
    -     * 
    - * - * BROWSER_CATEGORY_NAME = 120; - */ - public static final int BROWSER_CATEGORY_NAME_VALUE = 120; - - /** - * - * - *
    -     * The ID of the browser.
    -     * 
    - * - * BROWSER_ID = 235; - */ - public static final int BROWSER_ID_VALUE = 235; - - /** - * - * - *
    -     * The name of the browser.
    -     * 
    - * - * BROWSER_NAME = 236; - */ - public static final int BROWSER_NAME_VALUE = 236; - - /** - * - * - *
    -     * Mobile carrier ID.
    -     * 
    - * - * CARRIER_ID = 369; - */ - public static final int CARRIER_ID_VALUE = 369; - - /** - * - * - *
    -     * Name of the mobile carrier.
    -     * 
    - * - * CARRIER_NAME = 368; - */ - public static final int CARRIER_NAME_VALUE = 368; - - /** - * - * - *
    -     * The ID of an advertiser, classified by Google, associated with a creative
    -     * transacted
    -     * 
    - * - * CLASSIFIED_ADVERTISER_ID = 133; - */ - public static final int CLASSIFIED_ADVERTISER_ID_VALUE = 133; - - /** - * - * - *
    -     * The name of an advertiser, classified by Google, associated with a
    -     * creative transacted
    -     * 
    - * - * CLASSIFIED_ADVERTISER_NAME = 134; - */ - public static final int CLASSIFIED_ADVERTISER_NAME_VALUE = 134; - - /** - * - * - *
    -     * ID of the brand, as classified by Google,
    -     * 
    - * - * CLASSIFIED_BRAND_ID = 243; - */ - public static final int CLASSIFIED_BRAND_ID_VALUE = 243; - - /** - * - * - *
    -     * Name of the brand, as classified by Google,
    -     * 
    - * - * CLASSIFIED_BRAND_NAME = 244; - */ - public static final int CLASSIFIED_BRAND_NAME_VALUE = 244; - - /** - * - * - *
    -     * ID of the video content served.
    -     * 
    - * - * CONTENT_ID = 246; - */ - public static final int CONTENT_ID_VALUE = 246; - - /** - * - * - *
    -     * Name of the video content served.
    -     * 
    - * - * CONTENT_NAME = 247; - */ - public static final int CONTENT_NAME_VALUE = 247; - - /** - * - * - *
    -     * The criteria ID of the country in which the ad served.
    -     * 
    - * - * COUNTRY_ID = 11; - */ - public static final int COUNTRY_ID_VALUE = 11; - - /** - * - * - *
    -     * The name of the country in which the ad served.
    -     * 
    - * - * COUNTRY_NAME = 12; - */ - public static final int COUNTRY_NAME_VALUE = 12; - - /** - * - * - *
    -     * Enum value of creative billing type
    -     * 
    - * - * CREATIVE_BILLING_TYPE = 366; - */ - public static final int CREATIVE_BILLING_TYPE_VALUE = 366; - - /** - * - * - *
    -     * Localized string value of creative billing type
    -     * 
    - * - * CREATIVE_BILLING_TYPE_NAME = 367; - */ - public static final int CREATIVE_BILLING_TYPE_NAME_VALUE = 367; - - /** - * - * - *
    -     * Represents the click-through URL of a creative
    -     * 
    - * - * CREATIVE_CLICK_THROUGH_URL = 174; - */ - public static final int CREATIVE_CLICK_THROUGH_URL_VALUE = 174; - - /** - * - * - *
    -     * The ID of a creative
    -     * 
    - * - * CREATIVE_ID = 138; - */ - public static final int CREATIVE_ID_VALUE = 138; - - /** - * - * - *
    -     * Creative name
    -     * 
    - * - * CREATIVE_NAME = 139; - */ - public static final int CREATIVE_NAME_VALUE = 139; - - /** - * - * - *
    -     * Creative technology ENUM
    -     * 
    - * - * CREATIVE_TECHNOLOGY = 148; - */ - public static final int CREATIVE_TECHNOLOGY_VALUE = 148; - - /** - * - * - *
    -     * Creative technology locallized name
    -     * 
    - * - * CREATIVE_TECHNOLOGY_NAME = 149; - */ - public static final int CREATIVE_TECHNOLOGY_NAME_VALUE = 149; - - /** - * - * - *
    -     * Third party vendor name of a creative
    -     * 
    - * - * CREATIVE_THIRD_PARTY_VENDOR = 361; - */ - public static final int CREATIVE_THIRD_PARTY_VENDOR_VALUE = 361; - - /** - * - * - *
    -     * Enum value of creative type
    -     * 
    - * - * CREATIVE_TYPE = 344; - */ - public static final int CREATIVE_TYPE_VALUE = 344; - - /** - * - * - *
    -     * Localized string name of creative type
    -     * 
    - * - * CREATIVE_TYPE_NAME = 345; - */ - public static final int CREATIVE_TYPE_NAME_VALUE = 345; - - /** - * - * - *
    -     * Breaks down reporting data by date.
    -     * 
    - * - * DATE = 3; - */ - public static final int DATE_VALUE = 3; - - /** - * - * - *
    -     * Breaks down reporting data by day of the week. Monday is 1 and 7 is
    -     * Sunday.
    -     * 
    - * - * DAY_OF_WEEK = 4; - */ - public static final int DAY_OF_WEEK_VALUE = 4; - - /** - * - * - *
    -     * Demand channel.
    -     * 
    - * - * DEMAND_CHANNEL = 9; - */ - public static final int DEMAND_CHANNEL_VALUE = 9; - - /** - * - * - *
    -     * Demand channel name.
    -     * 
    - * - * DEMAND_CHANNEL_NAME = 10; - */ - public static final int DEMAND_CHANNEL_NAME_VALUE = 10; - - /** - * - * - *
    -     * Demand subchannel.
    -     * 
    - * - * DEMAND_SUBCHANNEL = 22; - */ - public static final int DEMAND_SUBCHANNEL_VALUE = 22; - - /** - * - * - *
    -     * Demand subchannel name.
    -     * 
    - * - * DEMAND_SUBCHANNEL_NAME = 23; - */ - public static final int DEMAND_SUBCHANNEL_NAME_VALUE = 23; - - /** - * - * - *
    -     * The device on which an ad was served.
    -     * 
    - * - * DEVICE = 226; - */ - public static final int DEVICE_VALUE = 226; - - /** - * - * - *
    -     * The device category to which an ad is being targeted.
    -     * 
    - * - * DEVICE_CATEGORY = 15; - */ - public static final int DEVICE_CATEGORY_VALUE = 15; - - /** - * - * - *
    -     * The name of the category of device (smartphone, feature phone, tablet, or
    -     * desktop) to which an ad is being targeted.
    -     * 
    - * - * DEVICE_CATEGORY_NAME = 16; - */ - public static final int DEVICE_CATEGORY_NAME_VALUE = 16; - - /** - * - * - *
    -     * The localized name of the device on which an ad was served.
    -     * 
    - * - * DEVICE_NAME = 225; - */ - public static final int DEVICE_NAME_VALUE = 225; - - /** - * - * - *
    -     * ID of the yield partner as classified by Google
    -     * 
    - * - * EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; - */ - public static final int EXCHANGE_THIRD_PARTY_COMPANY_ID_VALUE = 185; - - /** - * - * - *
    -     * Name of the yield partner as classified by Google
    -     * 
    - * - * EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; - */ - public static final int EXCHANGE_THIRD_PARTY_COMPANY_NAME_VALUE = 186; - - /** - * - * - *
    -     * The ID of the first look pricing rule.
    -     * 
    - * - * FIRST_LOOK_PRICING_RULE_ID = 248; - */ - public static final int FIRST_LOOK_PRICING_RULE_ID_VALUE = 248; - - /** - * - * - *
    -     * The name of the first look pricing rule.
    -     * 
    - * - * FIRST_LOOK_PRICING_RULE_NAME = 249; - */ - public static final int FIRST_LOOK_PRICING_RULE_NAME_VALUE = 249; - - /** - * - * - *
    -     * Breaks down reporting data by hour in one day.
    -     * 
    - * - * HOUR = 100; - */ - public static final int HOUR_VALUE = 100; - - /** - * - * - *
    -     * The interaction type of an ad.
    -     * 
    - * - * INTERACTION_TYPE = 223; - */ - public static final int INTERACTION_TYPE_VALUE = 223; - - /** - * - * - *
    -     * The localized name of the interaction type of an ad.
    -     * 
    - * - * INTERACTION_TYPE_NAME = 224; - */ - public static final int INTERACTION_TYPE_NAME_VALUE = 224; - - /** - * - * - *
    -     * Inventory format.
    -     * The format of the ad unit (e.g, banner) where the ad was requested.
    -     * 
    - * - * INVENTORY_FORMAT = 17; - */ - public static final int INVENTORY_FORMAT_VALUE = 17; - - /** - * - * - *
    -     * Inventory format name.
    -     * The format of the ad unit (e.g, banner) where the ad was requested.
    -     * 
    - * - * INVENTORY_FORMAT_NAME = 18; - */ - public static final int INVENTORY_FORMAT_NAME_VALUE = 18; - - /** - * - * - *
    -     * Inventory type.
    -     * The kind of web page or device where the ad was requested.
    -     * 
    - * - * INVENTORY_TYPE = 19; - */ - public static final int INVENTORY_TYPE_VALUE = 19; - - /** - * - * - *
    -     * Inventory type name.
    -     * The kind of web page or device where the ad was requested.
    -     * 
    - * - * INVENTORY_TYPE_NAME = 20; - */ - public static final int INVENTORY_TYPE_NAME_VALUE = 20; - - /** - * - * - *
    -     * Whether traffic is Adx Direct.
    -     * 
    - * - * IS_ADX_DIRECT = 382; - */ - public static final int IS_ADX_DIRECT_VALUE = 382; - - /** - * - * - *
    -     * Whether traffic is First Look.
    -     * 
    - * - * IS_FIRST_LOOK_DEAL = 401; - */ - public static final int IS_FIRST_LOOK_DEAL_VALUE = 401; - - /** - * - * - *
    -     * The Custom Targeting Value ID
    -     * 
    - * - * KEY_VALUES_ID = 214; - */ - public static final int KEY_VALUES_ID_VALUE = 214; - - /** - * - * - *
    -     * The Custom Targeting Value formatted like <key_name>=<value_name>
    -     * 
    - * - * KEY_VALUES_NAME = 215; - */ - public static final int KEY_VALUES_NAME_VALUE = 215; - - /** - * - * - *
    -     * Whether a Line item is archived.
    -     * 
    - * - * LINE_ITEM_ARCHIVED = 188; - */ - public static final int LINE_ITEM_ARCHIVED_VALUE = 188; - - /** - * - * - *
    -     * Line item comanion delivery option ENUM value.
    -     * 
    - * - * LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; - */ - public static final int LINE_ITEM_COMPANION_DELIVERY_OPTION_VALUE = 204; - - /** - * - * - *
    -     * Localized line item comanion delivery option name.
    -     * 
    - * - * LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; - */ - public static final int LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME_VALUE = 205; - - /** - * - * - *
    -     * The computed status of the LineItem.
    -     * 
    - * - * LINE_ITEM_COMPUTED_STATUS = 250; - */ - public static final int LINE_ITEM_COMPUTED_STATUS_VALUE = 250; - - /** - * - * - *
    -     * The localized name of the computed status of the LineItem.
    -     * 
    - * - * LINE_ITEM_COMPUTED_STATUS_NAME = 251; - */ - public static final int LINE_ITEM_COMPUTED_STATUS_NAME_VALUE = 251; - - /** - * - * - *
    -     * The contracted units bought for the Line item.
    -     * 
    - * - * LINE_ITEM_CONTRACTED_QUANTITY = 92; - */ - public static final int LINE_ITEM_CONTRACTED_QUANTITY_VALUE = 92; - - /** - * - * - *
    -     * The cost per unit of the Line item.
    -     * 
    - * - * LINE_ITEM_COST_PER_UNIT = 85; - */ - public static final int LINE_ITEM_COST_PER_UNIT_VALUE = 85; - - /** - * - * - *
    -     * Line item cost type ENUM value.
    -     * 
    - * - * LINE_ITEM_COST_TYPE = 212; - */ - public static final int LINE_ITEM_COST_TYPE_VALUE = 212; - - /** - * - * - *
    -     * Localized line item cost type name.
    -     * 
    - * - * LINE_ITEM_COST_TYPE_NAME = 213; - */ - public static final int LINE_ITEM_COST_TYPE_NAME_VALUE = 213; - - /** - * - * - *
    -     * Represent the end date of a creative associated with line item
    -     * 
    - * - * LINE_ITEM_CREATIVE_END_DATE = 176; - */ - public static final int LINE_ITEM_CREATIVE_END_DATE_VALUE = 176; - - /** - * - * - *
    -     * The creative rotation type of the LineItem.
    -     * 
    - * - * LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; - */ - public static final int LINE_ITEM_CREATIVE_ROTATION_TYPE_VALUE = 189; - - /** - * - * - *
    -     * The localized name of the creative rotation type of the LineItem.
    -     * 
    - * - * LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; - */ - public static final int LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME_VALUE = 190; - - /** - * - * - *
    -     * Represent the start date of a creative associated with line item
    -     * 
    - * - * LINE_ITEM_CREATIVE_START_DATE = 175; - */ - public static final int LINE_ITEM_CREATIVE_START_DATE_VALUE = 175; - - /** - * - * - *
    -     * The 3 letter currency code of the Line Item
    -     * 
    - * - * LINE_ITEM_CURRENCY_CODE = 180; - */ - public static final int LINE_ITEM_CURRENCY_CODE_VALUE = 180; - - /** - * - * - *
    -     * The progress made for the delivery of the Line item.
    -     * 
    - * - * LINE_ITEM_DELIVERY_INDICATOR = 87; - */ - public static final int LINE_ITEM_DELIVERY_INDICATOR_VALUE = 87; - - /** - * - * - *
    -     * The delivery rate type of the LineItem.
    -     * 
    - * - * LINE_ITEM_DELIVERY_RATE_TYPE = 191; - */ - public static final int LINE_ITEM_DELIVERY_RATE_TYPE_VALUE = 191; - - /** - * - * - *
    -     * The localized name of the delivery rate type of the LineItem.
    -     * 
    - * - * LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; - */ - public static final int LINE_ITEM_DELIVERY_RATE_TYPE_NAME_VALUE = 192; - - /** - * - * - *
    -     * The discount of the LineItem in whole units in the LineItem's currency
    -     * code, or if unspecified the Network's currency code.
    -     * 
    - * - * LINE_ITEM_DISCOUNT_ABSOLUTE = 195; - */ - public static final int LINE_ITEM_DISCOUNT_ABSOLUTE_VALUE = 195; - - /** - * - * - *
    -     * The discount of the LineItem in percentage.
    -     * 
    - * - * LINE_ITEM_DISCOUNT_PERCENTAGE = 196; - */ - public static final int LINE_ITEM_DISCOUNT_PERCENTAGE_VALUE = 196; - - /** - * - * - *
    -     * The end date of the Line item.
    -     * 
    - * - * LINE_ITEM_END_DATE = 81; - */ - public static final int LINE_ITEM_END_DATE_VALUE = 81; - - /** - * - * - *
    -     * The end date and time of the Line item.
    -     * 
    - * - * LINE_ITEM_END_DATE_TIME = 83; - */ - public static final int LINE_ITEM_END_DATE_TIME_VALUE = 83; - - /** - * - * - *
    -     * The ENUM value of the environment a LineItem is targeting.
    -     * 
    - * - * LINE_ITEM_ENVIRONMENT_TYPE = 201; - */ - public static final int LINE_ITEM_ENVIRONMENT_TYPE_VALUE = 201; - - /** - * - * - *
    -     * The localized name of the environment a LineItem is targeting.
    -     * 
    - * - * LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; - */ - public static final int LINE_ITEM_ENVIRONMENT_TYPE_NAME_VALUE = 202; - - /** - * - * - *
    -     * The deal ID of the Line item. Set for Programmatic Direct campaigns.
    -     * 
    - * - * LINE_ITEM_EXTERNAL_DEAL_ID = 97; - */ - public static final int LINE_ITEM_EXTERNAL_DEAL_ID_VALUE = 97; - - /** - * - * - *
    -     * The external ID of the Line item.
    -     * 
    - * - * LINE_ITEM_EXTERNAL_ID = 86; - */ - public static final int LINE_ITEM_EXTERNAL_ID_VALUE = 86; - - /** - * - * - *
    -     * The frequency cap of the Line item (descriptive string).
    -     * 
    - * - * LINE_ITEM_FREQUENCY_CAP = 256; - */ - public static final int LINE_ITEM_FREQUENCY_CAP_VALUE = 256; - - /** - * - * - *
    -     * Line item ID.
    -     * 
    - * - * LINE_ITEM_ID = 1; - */ - public static final int LINE_ITEM_ID_VALUE = 1; - - /** - * - * - *
    -     * The application that last modified the Line Item.
    -     * 
    - * - * LINE_ITEM_LAST_MODIFIED_BY_APP = 181; - */ - public static final int LINE_ITEM_LAST_MODIFIED_BY_APP_VALUE = 181; - - /** - * - * - *
    -     * The total number of clicks delivered of the lifetime of the Line item.
    -     * 
    - * - * LINE_ITEM_LIFETIME_CLICKS = 95; - */ - public static final int LINE_ITEM_LIFETIME_CLICKS_VALUE = 95; - - /** - * - * - *
    -     * The total number of impressions delivered over the lifetime of the
    -     * Line item.
    -     * 
    - * - * LINE_ITEM_LIFETIME_IMPRESSIONS = 94; - */ - public static final int LINE_ITEM_LIFETIME_IMPRESSIONS_VALUE = 94; - - /** - * - * - *
    -     * The total number of viewable impressions delivered over the lifetime of
    -     * the Line item.
    -     * 
    - * - * LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; - */ - public static final int LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS_VALUE = 96; - - /** - * - * - *
    -     * Whether or not the Line item is Makegood. Makegood refers to free
    -     * inventory offered to buyers to compensate for mistakes or under-delivery
    -     * in the original campaigns.
    -     * 
    - * - * LINE_ITEM_MAKEGOOD = 89; - */ - public static final int LINE_ITEM_MAKEGOOD_VALUE = 89; - - /** - * - * - *
    -     * Line item Name.
    -     * 
    - * - * LINE_ITEM_NAME = 2; - */ - public static final int LINE_ITEM_NAME_VALUE = 2; - - /** - * - * - *
    -     * The cost of booking for the Line item (non-CPD).
    -     * 
    - * - * LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; - */ - public static final int LINE_ITEM_NON_CPD_BOOKED_REVENUE_VALUE = 98; - - /** - * - * - *
    -     * Whether a Line item is eligible for opitimization.
    -     * 
    - * - * LINE_ITEM_OPTIMIZABLE = 90; - */ - public static final int LINE_ITEM_OPTIMIZABLE_VALUE = 90; - - /** - * - * - *
    -     * Goal type ENUM value of the primary goal of the line item.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_TYPE = 210; - */ - public static final int LINE_ITEM_PRIMARY_GOAL_TYPE_VALUE = 210; - - /** - * - * - *
    -     * Localized goal type name of the primary goal of the line item.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; - */ - public static final int LINE_ITEM_PRIMARY_GOAL_TYPE_NAME_VALUE = 211; - - /** - * - * - *
    -     * The total number of impressions or clicks that are reserved for a
    -     * line item. For line items of type BULK or PRICE_PRIORITY, this represents
    -     * the number of remaining impressions reserved. If the line item has an
    -     * impression cap goal, this represents the number of impressions or
    -     * conversions that the line item will stop serving at if reached.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; - */ - public static final int LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE_VALUE = 93; - - /** - * - * - *
    -     * The percentage of impressions or clicks that are reserved for a
    -     * line item. For line items of type SPONSORSHIP, this represents the
    -     * percentage of available impressions reserved. For line items of type
    -     * NETWORK or HOUSE, this represents the percentage of remaining impressions
    -     * reserved.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; - */ - public static final int LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE_VALUE = 396; - - /** - * - * - *
    -     * Unit type ENUM value of the primary goal of the line item.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; - */ - public static final int LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_VALUE = 208; - - /** - * - * - *
    -     * Localized unit type name of the primary goal of the line item.
    -     * 
    - * - * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; - */ - public static final int LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME_VALUE = 209; - - /** - * - * - *
    -     * The priority of this Line item as a value between 1 and 16.
    -     * In general, a lower priority means more serving priority for the
    -     * Line item.
    -     * 
    - * - * LINE_ITEM_PRIORITY = 24; - */ - public static final int LINE_ITEM_PRIORITY_VALUE = 24; - - /** - * - * - *
    -     * ENUM value describing the state of inventory reservation for the
    -     * LineItem.
    -     * 
    - * - * LINE_ITEM_RESERVATION_STATUS = 304; - */ - public static final int LINE_ITEM_RESERVATION_STATUS_VALUE = 304; - - /** - * - * - *
    -     * Localized string describing the state of inventory reservation for the
    -     * LineItem.
    -     * 
    - * - * LINE_ITEM_RESERVATION_STATUS_NAME = 305; - */ - public static final int LINE_ITEM_RESERVATION_STATUS_NAME_VALUE = 305; - - /** - * - * - *
    -     * The start date of the Line item.
    -     * 
    - * - * LINE_ITEM_START_DATE = 82; - */ - public static final int LINE_ITEM_START_DATE_VALUE = 82; - - /** - * - * - *
    -     * The start date and time of the Line item.
    -     * 
    - * - * LINE_ITEM_START_DATE_TIME = 84; - */ - public static final int LINE_ITEM_START_DATE_TIME_VALUE = 84; - - /** - * - * - *
    -     * Line item type ENUM value.
    -     * 
    - * - * LINE_ITEM_TYPE = 193; - */ - public static final int LINE_ITEM_TYPE_VALUE = 193; - - /** - * - * - *
    -     * Localized line item type name.
    -     * 
    - * - * LINE_ITEM_TYPE_NAME = 194; - */ - public static final int LINE_ITEM_TYPE_NAME_VALUE = 194; - - /** - * - * - *
    -     * Whether the Line item end time and end date is set to effectively never
    -     * end.
    -     * 
    - * - * LINE_ITEM_UNLIMITED_END = 187; - */ - public static final int LINE_ITEM_UNLIMITED_END_VALUE = 187; - - /** - * - * - *
    -     * The artificial cost per unit used by the Ad server to help rank
    -     * inventory.
    -     * 
    - * - * LINE_ITEM_VALUE_COST_PER_UNIT = 88; - */ - public static final int LINE_ITEM_VALUE_COST_PER_UNIT_VALUE = 88; - - /** - * - * - *
    -     * The web property code used for dynamic allocation Line Items.
    -     * 
    - * - * LINE_ITEM_WEB_PROPERTY_CODE = 179; - */ - public static final int LINE_ITEM_WEB_PROPERTY_CODE_VALUE = 179; - - /** - * - * - *
    -     * The ID of creative, includes regular creatives, and master and companions
    -     * in case of creative sets
    -     * 
    - * - * MASTER_COMPANION_CREATIVE_ID = 140; - */ - public static final int MASTER_COMPANION_CREATIVE_ID_VALUE = 140; - - /** - * - * - *
    -     * Name of creative, includes regular creatives, and master and companions
    -     * in case of creative sets
    -     * 
    - * - * MASTER_COMPANION_CREATIVE_NAME = 141; - */ - public static final int MASTER_COMPANION_CREATIVE_NAME_VALUE = 141; - - /** - * - * - *
    -     * Whether the mobile app is free.
    -     * 
    - * - * MOBILE_APP_FREE = 128; - */ - public static final int MOBILE_APP_FREE_VALUE = 128; - - /** - * - * - *
    -     * URL of app icon for the mobile app.
    -     * 
    - * - * MOBILE_APP_ICON_URL = 129; - */ - public static final int MOBILE_APP_ICON_URL_VALUE = 129; - - /** - * - * - *
    -     * The ID of the Mobile App.
    -     * 
    - * - * MOBILE_APP_ID = 123; - */ - public static final int MOBILE_APP_ID_VALUE = 123; - - /** - * - * - *
    -     * The name of the mobile app.
    -     * 
    - * - * MOBILE_APP_NAME = 127; - */ - public static final int MOBILE_APP_NAME_VALUE = 127; - - /** - * - * - *
    -     * Ownership status of the mobile app.
    -     * 
    - * - * MOBILE_APP_OWNERSHIP_STATUS = 311; - */ - public static final int MOBILE_APP_OWNERSHIP_STATUS_VALUE = 311; - - /** - * - * - *
    -     * Ownership status of the mobile app.
    -     * 
    - * - * MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; - */ - public static final int MOBILE_APP_OWNERSHIP_STATUS_NAME_VALUE = 312; - - /** - * - * - *
    -     * The App Store of the mobile app.
    -     * 
    - * - * MOBILE_APP_STORE = 125; - */ - public static final int MOBILE_APP_STORE_VALUE = 125; - - /** - * - * - *
    -     * The localized name of the mobile app store.
    -     * 
    - * - * MOBILE_APP_STORE_NAME = 245; - */ - public static final int MOBILE_APP_STORE_NAME_VALUE = 245; - - /** - * - * - *
    -     * Mobile inventory type.
    -     * Identifies whether a mobile ad came from a regular web page, an AMP web
    -     * page, or a mobile app.
    -     * Values match the Inventory type dimension available in the Overview Home
    -     * dashboard. Note: Video takes precedence over any other value, for
    -     * example, if there is an in-stream video impression on a desktop device,
    -     * it will be attributed to in-stream video and not desktop web.
    -     * 
    - * - * MOBILE_INVENTORY_TYPE = 99; - */ - public static final int MOBILE_INVENTORY_TYPE_VALUE = 99; - - /** - * - * - *
    -     * Mobile inventory type name.
    -     * Identifies whether a mobile ad came from a regular web page, an AMP web
    -     * page, or a mobile app.
    -     * 
    - * - * MOBILE_INVENTORY_TYPE_NAME = 21; - */ - public static final int MOBILE_INVENTORY_TYPE_NAME_VALUE = 21; - - /** - * - * - *
    -     * SDK version of the mobile device.
    -     * 
    - * - * MOBILE_SDK_VERSION_NAME = 130; - */ - public static final int MOBILE_SDK_VERSION_NAME_VALUE = 130; - - /** - * - * - *
    -     * Breaks down reporting data by month and year.
    -     * 
    - * - * MONTH_YEAR = 6; - */ - public static final int MONTH_YEAR_VALUE = 6; - - /** - * - * - *
    -     * Native ad format ID.
    -     * 
    - * - * NATIVE_AD_FORMAT_ID = 255; - */ - public static final int NATIVE_AD_FORMAT_ID_VALUE = 255; - - /** - * - * - *
    -     * Native ad format name.
    -     * 
    - * - * NATIVE_AD_FORMAT_NAME = 254; - */ - public static final int NATIVE_AD_FORMAT_NAME_VALUE = 254; - - /** - * - * - *
    -     * Native style ID.
    -     * 
    - * - * NATIVE_STYLE_ID = 253; - */ - public static final int NATIVE_STYLE_ID_VALUE = 253; - - /** - * - * - *
    -     * Native style name.
    -     * 
    - * - * NATIVE_STYLE_NAME = 252; - */ - public static final int NATIVE_STYLE_NAME_VALUE = 252; - - /** - * - * - *
    -     * Operating system category.
    -     * 
    - * - * OPERATING_SYSTEM_CATEGORY = 117; - */ - public static final int OPERATING_SYSTEM_CATEGORY_VALUE = 117; - - /** - * - * - *
    -     * Operating system category name.
    -     * 
    - * - * OPERATING_SYSTEM_CATEGORY_NAME = 118; - */ - public static final int OPERATING_SYSTEM_CATEGORY_NAME_VALUE = 118; - - /** - * - * - *
    -     * ID of the operating system version.
    -     * 
    - * - * OPERATING_SYSTEM_VERSION_ID = 238; - */ - public static final int OPERATING_SYSTEM_VERSION_ID_VALUE = 238; - - /** - * - * - *
    -     * Details of the operating system, including version.
    -     * 
    - * - * OPERATING_SYSTEM_VERSION_NAME = 237; - */ - public static final int OPERATING_SYSTEM_VERSION_NAME_VALUE = 237; - - /** - * - * - *
    -     * Order agency.
    -     * 
    - * - * ORDER_AGENCY = 150; - */ - public static final int ORDER_AGENCY_VALUE = 150; - - /** - * - * - *
    -     * Order agency ID.
    -     * 
    - * - * ORDER_AGENCY_ID = 151; - */ - public static final int ORDER_AGENCY_ID_VALUE = 151; - - /** - * - * - *
    -     * Order booked CPC.
    -     * 
    - * - * ORDER_BOOKED_CPC = 152; - */ - public static final int ORDER_BOOKED_CPC_VALUE = 152; - - /** - * - * - *
    -     * Order booked CPM.
    -     * 
    - * - * ORDER_BOOKED_CPM = 153; - */ - public static final int ORDER_BOOKED_CPM_VALUE = 153; - - /** - * - * - *
    -     * Order delivery status ENUM value.
    -     * 
    - * - * ORDER_DELIVERY_STATUS = 231; - */ - public static final int ORDER_DELIVERY_STATUS_VALUE = 231; - - /** - * - * - *
    -     * Order delivery status localized name.
    -     * 
    - * - * ORDER_DELIVERY_STATUS_NAME = 239; - */ - public static final int ORDER_DELIVERY_STATUS_NAME_VALUE = 239; - - /** - * - * - *
    -     * Order end date.
    -     * 
    - * - * ORDER_END_DATE = 154; - */ - public static final int ORDER_END_DATE_VALUE = 154; - - /** - * - * - *
    -     * Order end date and time.
    -     * 
    - * - * ORDER_END_DATE_TIME = 155; - */ - public static final int ORDER_END_DATE_TIME_VALUE = 155; - - /** - * - * - *
    -     * Order external ID.
    -     * 
    - * - * ORDER_EXTERNAL_ID = 156; - */ - public static final int ORDER_EXTERNAL_ID_VALUE = 156; - - /** - * - * - *
    -     * Order id.
    -     * 
    - * - * ORDER_ID = 7; - */ - public static final int ORDER_ID_VALUE = 7; - - /** - * - * - *
    -     * Order labels.
    -     * 
    - * - * ORDER_LABELS = 170; - */ - public static final int ORDER_LABELS_VALUE = 170; - - /** - * - * - *
    -     * Order labels IDs.
    -     * 
    - * - * ORDER_LABEL_IDS = 171; - */ - public static final int ORDER_LABEL_IDS_VALUE = 171; - - /** - * - * - *
    -     * Order lifetime clicks.
    -     * 
    - * - * ORDER_LIFETIME_CLICKS = 158; - */ - public static final int ORDER_LIFETIME_CLICKS_VALUE = 158; - - /** - * - * - *
    -     * Order lifetime impressions.
    -     * 
    - * - * ORDER_LIFETIME_IMPRESSIONS = 159; - */ - public static final int ORDER_LIFETIME_IMPRESSIONS_VALUE = 159; - - /** - * - * - *
    -     * Order name.
    -     * 
    - * - * ORDER_NAME = 8; - */ - public static final int ORDER_NAME_VALUE = 8; - - /** - * - * - *
    -     * Order PO number.
    -     * 
    - * - * ORDER_PO_NUMBER = 160; - */ - public static final int ORDER_PO_NUMBER_VALUE = 160; - - /** - * - * - *
    -     * Whether the Order is programmatic.
    -     * 
    - * - * ORDER_PROGRAMMATIC = 157; - */ - public static final int ORDER_PROGRAMMATIC_VALUE = 157; - - /** - * - * - *
    -     * Order sales person.
    -     * 
    - * - * ORDER_SALESPERSON = 161; - */ - public static final int ORDER_SALESPERSON_VALUE = 161; - - /** - * - * - *
    -     * Order secondary sales people.
    -     * 
    - * - * ORDER_SECONDARY_SALESPEOPLE = 164; - */ - public static final int ORDER_SECONDARY_SALESPEOPLE_VALUE = 164; - - /** - * - * - *
    -     * Order secondary sales people ID.
    -     * 
    - * - * ORDER_SECONDARY_SALESPEOPLE_ID = 165; - */ - public static final int ORDER_SECONDARY_SALESPEOPLE_ID_VALUE = 165; - - /** - * - * - *
    -     * Order secondary traffickers.
    -     * 
    - * - * ORDER_SECONDARY_TRAFFICKERS = 166; - */ - public static final int ORDER_SECONDARY_TRAFFICKERS_VALUE = 166; - - /** - * - * - *
    -     * Order secondary traffickers ID.
    -     * 
    - * - * ORDER_SECONDARY_TRAFFICKERS_ID = 167; - */ - public static final int ORDER_SECONDARY_TRAFFICKERS_ID_VALUE = 167; - - /** - * - * - *
    -     * Order start date.
    -     * 
    - * - * ORDER_START_DATE = 168; - */ - public static final int ORDER_START_DATE_VALUE = 168; - - /** - * - * - *
    -     * Order start date and time.
    -     * 
    - * - * ORDER_START_DATE_TIME = 169; - */ - public static final int ORDER_START_DATE_TIME_VALUE = 169; - - /** - * - * - *
    -     * Order trafficker.
    -     * 
    - * - * ORDER_TRAFFICKER = 162; - */ - public static final int ORDER_TRAFFICKER_VALUE = 162; - - /** - * - * - *
    -     * Order trafficker ID.
    -     * 
    - * - * ORDER_TRAFFICKER_ID = 163; - */ - public static final int ORDER_TRAFFICKER_ID_VALUE = 163; - - /** - * - * - *
    -     * Whether the Order end time and end date is set to effectively never
    -     * end.
    -     * 
    - * - * ORDER_UNLIMITED_END = 203; - */ - public static final int ORDER_UNLIMITED_END_VALUE = 203; - - /** - * - * - *
    -     * Placement ID
    -     * 
    - * - * PLACEMENT_ID = 113; - */ - public static final int PLACEMENT_ID_VALUE = 113; - - /** - * - * - *
    -     * The full list of placement IDs associated with the ad unit.
    -     * 
    - * - * PLACEMENT_ID_ALL = 144; - */ - public static final int PLACEMENT_ID_ALL_VALUE = 144; - - /** - * - * - *
    -     * Placement name
    -     * 
    - * - * PLACEMENT_NAME = 114; - */ - public static final int PLACEMENT_NAME_VALUE = 114; - - /** - * - * - *
    -     * The full list of placement names associated with the ad unit.
    -     * 
    - * - * PLACEMENT_NAME_ALL = 145; - */ - public static final int PLACEMENT_NAME_ALL_VALUE = 145; - - /** - * - * - *
    -     * Placement status ENUM value
    -     * 
    - * - * PLACEMENT_STATUS = 362; - */ - public static final int PLACEMENT_STATUS_VALUE = 362; - - /** - * - * - *
    -     * The full list of placement status ENUM values associated with the ad
    -     * unit.
    -     * 
    - * - * PLACEMENT_STATUS_ALL = 363; - */ - public static final int PLACEMENT_STATUS_ALL_VALUE = 363; - - /** - * - * - *
    -     * Localized placement status name.
    -     * 
    - * - * PLACEMENT_STATUS_NAME = 364; - */ - public static final int PLACEMENT_STATUS_NAME_VALUE = 364; - - /** - * - * - *
    -     * The full list of localized placement status names associated with the ad
    -     * unit.
    -     * 
    - * - * PLACEMENT_STATUS_NAME_ALL = 365; - */ - public static final int PLACEMENT_STATUS_NAME_ALL_VALUE = 365; - - /** - * - * - *
    -     * The ID of the buyer on a programmatic proposal.
    -     * 
    - * - * PROGRAMMATIC_BUYER_ID = 240; - */ - public static final int PROGRAMMATIC_BUYER_ID_VALUE = 240; - - /** - * - * - *
    -     * The name of the buyer on a programmatic proposal.
    -     * 
    - * - * PROGRAMMATIC_BUYER_NAME = 241; - */ - public static final int PROGRAMMATIC_BUYER_NAME_VALUE = 241; - - /** - * - * - *
    -     * Programmatic channel.
    -     * The type of transaction that occurred in Ad Exchange.
    -     * 
    - * - * PROGRAMMATIC_CHANNEL = 13; - */ - public static final int PROGRAMMATIC_CHANNEL_VALUE = 13; - - /** - * - * - *
    -     * Programmatic channel name.
    -     * The type of transaction that occurred in Ad Exchange.
    -     * 
    - * - * PROGRAMMATIC_CHANNEL_NAME = 14; - */ - public static final int PROGRAMMATIC_CHANNEL_NAME_VALUE = 14; - - /** - * - * - *
    -     * The size of a rendered creative, It can differ with the creative's size
    -     * if a creative is shown in an ad slot of a different size.
    -     * 
    - * - * RENDERED_CREATIVE_SIZE = 343; - */ - public static final int RENDERED_CREATIVE_SIZE_VALUE = 343; - - /** - * - * - *
    -     * Inventory Requested Ad Sizes dimension
    -     * 
    - * - * REQUESTED_AD_SIZES = 352; - */ - public static final int REQUESTED_AD_SIZES_VALUE = 352; - - /** - * - * - *
    -     * Request type ENUM
    -     * 
    - * - * REQUEST_TYPE = 146; - */ - public static final int REQUEST_TYPE_VALUE = 146; - - /** - * - * - *
    -     * Request type locallized name
    -     * 
    - * - * REQUEST_TYPE_NAME = 147; - */ - public static final int REQUEST_TYPE_NAME_VALUE = 147; - - /** - * - * - *
    -     * Indicates if a request was eligible for server-side unwrapping.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; - */ - public static final int SERVER_SIDE_UNWRAPPING_ELIGIBLE_VALUE = 597; - - /** - * - * - *
    -     * Information about domain or subdomains.
    -     * 
    - * - * SITE = 387; - */ - public static final int SITE_VALUE = 387; - - /** - * - * - *
    -     * The ID of the browser, device or other environment into which a line item
    -     * or creative was served.
    -     * 
    - * - * TARGETING_ID = 232; - */ - public static final int TARGETING_ID_VALUE = 232; - - /** - * - * - *
    -     * Information about the browser, device and other environments into which
    -     * a line item or creative was served.
    -     * 
    - * - * TARGETING_NAME = 233; - */ - public static final int TARGETING_NAME_VALUE = 233; - - /** - * - * - *
    -     * The way in which advertisers targeted their ads.
    -     * 
    - * - * TARGETING_TYPE = 385; - */ - public static final int TARGETING_TYPE_VALUE = 385; - - /** - * - * - *
    -     * The localized name of the way in which advertisers targeted their ads.
    -     * 
    - * - * TARGETING_TYPE_NAME = 386; - */ - public static final int TARGETING_TYPE_NAME_VALUE = 386; - - /** - * - * - *
    -     * Inventory Traffic source dimension
    -     * 
    - * - * TRAFFIC_SOURCE = 388; - */ - public static final int TRAFFIC_SOURCE_VALUE = 388; - - /** - * - * - *
    -     * Inventory Traffic source dimension name
    -     * 
    - * - * TRAFFIC_SOURCE_NAME = 389; - */ - public static final int TRAFFIC_SOURCE_NAME_VALUE = 389; - - /** - * - * - *
    -     * Unified pricing rule ID dimension
    -     * 
    - * - * UNIFIED_PRICING_RULE_ID = 393; - */ - public static final int UNIFIED_PRICING_RULE_ID_VALUE = 393; - - /** - * - * - *
    -     * Unified pricing rule name dimension
    -     * 
    - * - * UNIFIED_PRICING_RULE_NAME = 394; - */ - public static final int UNIFIED_PRICING_RULE_NAME_VALUE = 394; - - /** - * - * - *
    -     * The video placement enum as defined by ADCOM 1.0-202303.
    -     * 
    - * - * VIDEO_PLCMT = 172; - */ - public static final int VIDEO_PLCMT_VALUE = 172; - - /** - * - * - *
    -     * The localized name of the video placement as defined by ADCOM 1.0-202303.
    -     * 
    - * - * VIDEO_PLCMT_NAME = 173; - */ - public static final int VIDEO_PLCMT_NAME_VALUE = 173; - - /** - * - * - *
    -     * Breaks down reporting data by week of the year.
    -     * 
    - * - * WEEK = 5; - */ - public static final int WEEK_VALUE = 5; - - /** - * - * - *
    -     * Name of the company within a yield group
    -     * 
    - * - * YIELD_GROUP_BUYER_NAME = 184; - */ - public static final int YIELD_GROUP_BUYER_NAME_VALUE = 184; - - /** - * - * - *
    -     * ID of the group of ad networks or exchanges used for Mediation and Open
    -     * Bidding
    -     * 
    - * - * YIELD_GROUP_ID = 182; - */ - public static final int YIELD_GROUP_ID_VALUE = 182; - - /** - * - * - *
    -     * Name of the group of ad networks or exchanges used for Mediation and Open
    -     * Bidding
    -     * 
    - * - * YIELD_GROUP_NAME = 183; - */ - public static final int YIELD_GROUP_NAME_VALUE = 183; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID_VALUE = 10000; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID_VALUE = 10001; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID_VALUE = 10002; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID_VALUE = 10003; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID_VALUE = 10004; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID_VALUE = 10005; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID_VALUE = 10006; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID_VALUE = 10007; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID_VALUE = 10008; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID_VALUE = 10009; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID_VALUE = 10010; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID_VALUE = 10011; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID_VALUE = 10012; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID_VALUE = 10013; - - /** - * - * - *
    -     * Custom field option ID for Line Item with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID_VALUE = 10014; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 0 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_0_VALUE_VALUE = 11000; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 1 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_1_VALUE_VALUE = 11001; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 2 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_2_VALUE_VALUE = 11002; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 3 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_3_VALUE_VALUE = 11003; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 4 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_4_VALUE_VALUE = 11004; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 5 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_5_VALUE_VALUE = 11005; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 6 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_6_VALUE_VALUE = 11006; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 7 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_7_VALUE_VALUE = 11007; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 8 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_8_VALUE_VALUE = 11008; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 9 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_9_VALUE_VALUE = 11009; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 10 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_10_VALUE_VALUE = 11010; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 11 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_11_VALUE_VALUE = 11011; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 12 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_12_VALUE_VALUE = 11012; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 13 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_13_VALUE_VALUE = 11013; - - /** - * - * - *
    -     * Custom field value for Line Item with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 14 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; - */ - public static final int LINE_ITEM_CUSTOM_FIELD_14_VALUE_VALUE = 11014; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; - */ - public static final int ORDER_CUSTOM_FIELD_0_OPTION_ID_VALUE = 12000; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; - */ - public static final int ORDER_CUSTOM_FIELD_1_OPTION_ID_VALUE = 12001; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; - */ - public static final int ORDER_CUSTOM_FIELD_2_OPTION_ID_VALUE = 12002; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; - */ - public static final int ORDER_CUSTOM_FIELD_3_OPTION_ID_VALUE = 12003; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; - */ - public static final int ORDER_CUSTOM_FIELD_4_OPTION_ID_VALUE = 12004; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; - */ - public static final int ORDER_CUSTOM_FIELD_5_OPTION_ID_VALUE = 12005; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; - */ - public static final int ORDER_CUSTOM_FIELD_6_OPTION_ID_VALUE = 12006; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; - */ - public static final int ORDER_CUSTOM_FIELD_7_OPTION_ID_VALUE = 12007; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; - */ - public static final int ORDER_CUSTOM_FIELD_8_OPTION_ID_VALUE = 12008; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; - */ - public static final int ORDER_CUSTOM_FIELD_9_OPTION_ID_VALUE = 12009; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; - */ - public static final int ORDER_CUSTOM_FIELD_10_OPTION_ID_VALUE = 12010; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; - */ - public static final int ORDER_CUSTOM_FIELD_11_OPTION_ID_VALUE = 12011; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; - */ - public static final int ORDER_CUSTOM_FIELD_12_OPTION_ID_VALUE = 12012; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; - */ - public static final int ORDER_CUSTOM_FIELD_13_OPTION_ID_VALUE = 12013; - - /** - * - * - *
    -     * Custom field option ID for Order with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; - */ - public static final int ORDER_CUSTOM_FIELD_14_OPTION_ID_VALUE = 12014; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 0 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_0_VALUE = 13000; - */ - public static final int ORDER_CUSTOM_FIELD_0_VALUE_VALUE = 13000; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 1 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_1_VALUE = 13001; - */ - public static final int ORDER_CUSTOM_FIELD_1_VALUE_VALUE = 13001; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 2 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_2_VALUE = 13002; - */ - public static final int ORDER_CUSTOM_FIELD_2_VALUE_VALUE = 13002; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 3 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_3_VALUE = 13003; - */ - public static final int ORDER_CUSTOM_FIELD_3_VALUE_VALUE = 13003; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 4 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_4_VALUE = 13004; - */ - public static final int ORDER_CUSTOM_FIELD_4_VALUE_VALUE = 13004; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 5 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_5_VALUE = 13005; - */ - public static final int ORDER_CUSTOM_FIELD_5_VALUE_VALUE = 13005; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 6 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_6_VALUE = 13006; - */ - public static final int ORDER_CUSTOM_FIELD_6_VALUE_VALUE = 13006; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 7 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_7_VALUE = 13007; - */ - public static final int ORDER_CUSTOM_FIELD_7_VALUE_VALUE = 13007; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 8 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_8_VALUE = 13008; - */ - public static final int ORDER_CUSTOM_FIELD_8_VALUE_VALUE = 13008; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value
    -     * as a string. Can only be used if the custom field at index 9 is of type
    -     * STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_9_VALUE = 13009; - */ - public static final int ORDER_CUSTOM_FIELD_9_VALUE_VALUE = 13009; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 10 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_10_VALUE = 13010; - */ - public static final int ORDER_CUSTOM_FIELD_10_VALUE_VALUE = 13010; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 11 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_11_VALUE = 13011; - */ - public static final int ORDER_CUSTOM_FIELD_11_VALUE_VALUE = 13011; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 12 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_12_VALUE = 13012; - */ - public static final int ORDER_CUSTOM_FIELD_12_VALUE_VALUE = 13012; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 13 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_13_VALUE = 13013; - */ - public static final int ORDER_CUSTOM_FIELD_13_VALUE_VALUE = 13013; - - /** - * - * - *
    -     * Custom field value for Order with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 14 is of
    -     * type STRING.
    -     * 
    - * - * ORDER_CUSTOM_FIELD_14_VALUE = 13014; - */ - public static final int ORDER_CUSTOM_FIELD_14_VALUE_VALUE = 13014; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; - */ - public static final int CREATIVE_CUSTOM_FIELD_0_OPTION_ID_VALUE = 14000; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; - */ - public static final int CREATIVE_CUSTOM_FIELD_1_OPTION_ID_VALUE = 14001; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; - */ - public static final int CREATIVE_CUSTOM_FIELD_2_OPTION_ID_VALUE = 14002; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; - */ - public static final int CREATIVE_CUSTOM_FIELD_3_OPTION_ID_VALUE = 14003; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; - */ - public static final int CREATIVE_CUSTOM_FIELD_4_OPTION_ID_VALUE = 14004; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; - */ - public static final int CREATIVE_CUSTOM_FIELD_5_OPTION_ID_VALUE = 14005; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; - */ - public static final int CREATIVE_CUSTOM_FIELD_6_OPTION_ID_VALUE = 14006; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; - */ - public static final int CREATIVE_CUSTOM_FIELD_7_OPTION_ID_VALUE = 14007; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; - */ - public static final int CREATIVE_CUSTOM_FIELD_8_OPTION_ID_VALUE = 14008; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; - */ - public static final int CREATIVE_CUSTOM_FIELD_9_OPTION_ID_VALUE = 14009; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; - */ - public static final int CREATIVE_CUSTOM_FIELD_10_OPTION_ID_VALUE = 14010; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; - */ - public static final int CREATIVE_CUSTOM_FIELD_11_OPTION_ID_VALUE = 14011; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; - */ - public static final int CREATIVE_CUSTOM_FIELD_12_OPTION_ID_VALUE = 14012; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; - */ - public static final int CREATIVE_CUSTOM_FIELD_13_OPTION_ID_VALUE = 14013; - - /** - * - * - *
    -     * Custom field option ID for Creative with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; - */ - public static final int CREATIVE_CUSTOM_FIELD_14_OPTION_ID_VALUE = 14014; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 0 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; - */ - public static final int CREATIVE_CUSTOM_FIELD_0_VALUE_VALUE = 15000; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 1 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; - */ - public static final int CREATIVE_CUSTOM_FIELD_1_VALUE_VALUE = 15001; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 2 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; - */ - public static final int CREATIVE_CUSTOM_FIELD_2_VALUE_VALUE = 15002; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 3 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; - */ - public static final int CREATIVE_CUSTOM_FIELD_3_VALUE_VALUE = 15003; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 4 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; - */ - public static final int CREATIVE_CUSTOM_FIELD_4_VALUE_VALUE = 15004; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 5 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; - */ - public static final int CREATIVE_CUSTOM_FIELD_5_VALUE_VALUE = 15005; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 6 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; - */ - public static final int CREATIVE_CUSTOM_FIELD_6_VALUE_VALUE = 15006; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 7 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; - */ - public static final int CREATIVE_CUSTOM_FIELD_7_VALUE_VALUE = 15007; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 8 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; - */ - public static final int CREATIVE_CUSTOM_FIELD_8_VALUE_VALUE = 15008; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 9 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; - */ - public static final int CREATIVE_CUSTOM_FIELD_9_VALUE_VALUE = 15009; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 10 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; - */ - public static final int CREATIVE_CUSTOM_FIELD_10_VALUE_VALUE = 15010; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 11 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; - */ - public static final int CREATIVE_CUSTOM_FIELD_11_VALUE_VALUE = 15011; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 12 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; - */ - public static final int CREATIVE_CUSTOM_FIELD_12_VALUE_VALUE = 15012; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 13 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; - */ - public static final int CREATIVE_CUSTOM_FIELD_13_VALUE_VALUE = 15013; - - /** - * - * - *
    -     * Custom field value for Creative with custom field ID equal to the ID
    -     * in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 14 is of
    -     * type STRING.
    -     * 
    - * - * CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; - */ - public static final int CREATIVE_CUSTOM_FIELD_14_VALUE_VALUE = 15014; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID_VALUE = 16000; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID_VALUE = 16001; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID_VALUE = 16002; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID_VALUE = 16003; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID_VALUE = 16004; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID_VALUE = 16005; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID_VALUE = 16006; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID_VALUE = 16007; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID_VALUE = 16008; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID_VALUE = 16009; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID_VALUE = 16010; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID_VALUE = 16011; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID_VALUE = 16012; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID_VALUE = 16013; - - /** - * - * - *
    -     * Custom field option ID for Backfill line item with custom field ID equal
    -     * to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID_VALUE = 16014; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 0 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE_VALUE = 17000; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 1 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE_VALUE = 17001; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 2 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE_VALUE = 17002; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 3 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE_VALUE = 17003; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 4 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE_VALUE = 17004; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 5 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE_VALUE = 17005; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 6 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE_VALUE = 17006; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 7 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE_VALUE = 17007; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 8 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE_VALUE = 17008; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 9 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE_VALUE = 17009; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 10 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE_VALUE = 17010; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 11 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE_VALUE = 17011; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 12 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE_VALUE = 17012; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 13 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE_VALUE = 17013; - - /** - * - * - *
    -     * Custom field value for Backfill line item with custom field ID equal to
    -     * the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 14 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; - */ - public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE_VALUE = 17014; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 0 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID_VALUE = 18000; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 1 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID_VALUE = 18001; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 2 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID_VALUE = 18002; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 3 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID_VALUE = 18003; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 4 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID_VALUE = 18004; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 5 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID_VALUE = 18005; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 6 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID_VALUE = 18006; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 7 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID_VALUE = 18007; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 8 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID_VALUE = 18008; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 9 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID_VALUE = 18009; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 10 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID_VALUE = 18010; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 11 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID_VALUE = 18011; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 12 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID_VALUE = 18012; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 13 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID_VALUE = 18013; - - /** - * - * - *
    -     * Custom field option ID for Backfill order with custom field ID equal to
    -     * the ID in index 14 of `ReportDefinition.order_custom_field_ids`.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID_VALUE = 18014; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID
    -     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 0 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE_VALUE = 19000; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 1 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE_VALUE = 19001; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 2 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE_VALUE = 19002; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 3 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE_VALUE = 19003; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 4 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE_VALUE = 19004; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 5 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE_VALUE = 19005; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 6 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE_VALUE = 19006; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 7 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE_VALUE = 19007; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 8 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE_VALUE = 19008; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 9 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE_VALUE = 19009; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 10 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE_VALUE = 19010; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 11 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE_VALUE = 19011; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 12 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE_VALUE = 19012; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 13 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE_VALUE = 19013; - - /** - * - * - *
    -     * Custom field value for Backfill order with custom field ID equal to the
    -     * ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 14 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; - */ - public static final int BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE_VALUE = 19014; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID_VALUE = 20000; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID_VALUE = 20001; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID_VALUE = 20002; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID_VALUE = 20003; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID_VALUE = 20004; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID_VALUE = 20005; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID_VALUE = 20006; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID_VALUE = 20007; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID_VALUE = 20008; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID_VALUE = 20009; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID_VALUE = 20010; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID_VALUE = 20011; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID_VALUE = 20012; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID_VALUE = 20013; - - /** - * - * - *
    -     * Custom field option ID for Backfill creative with custom field ID equal
    -     * to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID_VALUE = 20014; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID
    -     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
    -     * value as a string. Can only be used if the custom field at index 0 is of
    -     * type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE_VALUE = 21000; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 1 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE_VALUE = 21001; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 2 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE_VALUE = 21002; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 3 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE_VALUE = 21003; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 4 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE_VALUE = 21004; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 5 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE_VALUE = 21005; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 6 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE_VALUE = 21006; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 7 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE_VALUE = 21007; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 8 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE_VALUE = 21008; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats
    -     * the value as a string. Can only be used if the custom field at index 9 is
    -     * of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE_VALUE = 21009; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 10 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE_VALUE = 21010; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 11 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE_VALUE = 21011; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 12 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE_VALUE = 21012; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 13 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE_VALUE = 21013; - - /** - * - * - *
    -     * Custom field value for Backfill creative with custom field ID equal to
    -     * the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
    -     * Treats the value as a string. Can only be used if the custom field at
    -     * index 14 is of type STRING or DROPDOWN.
    -     * 
    - * - * BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; - */ - public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE_VALUE = 21014; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 0 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_0_VALUE_ID = 100000; - */ - public static final int CUSTOM_DIMENSION_0_VALUE_ID_VALUE = 100000; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 1 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_1_VALUE_ID = 100001; - */ - public static final int CUSTOM_DIMENSION_1_VALUE_ID_VALUE = 100001; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 2 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_2_VALUE_ID = 100002; - */ - public static final int CUSTOM_DIMENSION_2_VALUE_ID_VALUE = 100002; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 3 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_3_VALUE_ID = 100003; - */ - public static final int CUSTOM_DIMENSION_3_VALUE_ID_VALUE = 100003; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 4 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_4_VALUE_ID = 100004; - */ - public static final int CUSTOM_DIMENSION_4_VALUE_ID_VALUE = 100004; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 5 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_5_VALUE_ID = 100005; - */ - public static final int CUSTOM_DIMENSION_5_VALUE_ID_VALUE = 100005; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 6 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_6_VALUE_ID = 100006; - */ - public static final int CUSTOM_DIMENSION_6_VALUE_ID_VALUE = 100006; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_7_VALUE_ID = 100007; - */ - public static final int CUSTOM_DIMENSION_7_VALUE_ID_VALUE = 100007; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 8 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_8_VALUE_ID = 100008; - */ - public static final int CUSTOM_DIMENSION_8_VALUE_ID_VALUE = 100008; - - /** - * - * - *
    -     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    -     * in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_9_VALUE_ID = 100009; - */ - public static final int CUSTOM_DIMENSION_9_VALUE_ID_VALUE = 100009; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 0 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_0_VALUE = 101000; - */ - public static final int CUSTOM_DIMENSION_0_VALUE_VALUE = 101000; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 1 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_1_VALUE = 101001; - */ - public static final int CUSTOM_DIMENSION_1_VALUE_VALUE = 101001; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 2 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_2_VALUE = 101002; - */ - public static final int CUSTOM_DIMENSION_2_VALUE_VALUE = 101002; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 3 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_3_VALUE = 101003; - */ - public static final int CUSTOM_DIMENSION_3_VALUE_VALUE = 101003; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 4 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_4_VALUE = 101004; - */ - public static final int CUSTOM_DIMENSION_4_VALUE_VALUE = 101004; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 5 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_5_VALUE = 101005; - */ - public static final int CUSTOM_DIMENSION_5_VALUE_VALUE = 101005; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 6 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_6_VALUE = 101006; - */ - public static final int CUSTOM_DIMENSION_6_VALUE_VALUE = 101006; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 7 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_7_VALUE = 101007; - */ - public static final int CUSTOM_DIMENSION_7_VALUE_VALUE = 101007; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 8 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_8_VALUE = 101008; - */ - public static final int CUSTOM_DIMENSION_8_VALUE_VALUE = 101008; - - /** - * - * - *
    -     * Custom Dimension Value name for Custom Dimension with key equal to the
    -     * id in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    -     * 
    - * - * CUSTOM_DIMENSION_9_VALUE = 101009; - */ - public static final int CUSTOM_DIMENSION_9_VALUE_VALUE = 101009; - - 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 Dimension 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 Dimension forNumber(int value) { - switch (value) { - case 0: - return DIMENSION_UNSPECIFIED; - case 242: - return ADVERTISER_DOMAIN_NAME; - case 228: - return ADVERTISER_EXTERNAL_ID; - case 131: - return ADVERTISER_ID; - case 230: - return ADVERTISER_LABELS; - case 229: - return ADVERTISER_LABEL_IDS; - case 132: - return ADVERTISER_NAME; - case 227: - return ADVERTISER_PRIMARY_CONTACT; - case 390: - return AD_LOCATION; - case 391: - return AD_LOCATION_NAME; - case 64: - return AD_UNIT_CODE; - case 65: - return AD_UNIT_CODE_LEVEL_1; - case 74: - return AD_UNIT_CODE_LEVEL_10; - case 75: - return AD_UNIT_CODE_LEVEL_11; - case 76: - return AD_UNIT_CODE_LEVEL_12; - case 77: - return AD_UNIT_CODE_LEVEL_13; - case 78: - return AD_UNIT_CODE_LEVEL_14; - case 79: - return AD_UNIT_CODE_LEVEL_15; - case 80: - return AD_UNIT_CODE_LEVEL_16; - case 66: - return AD_UNIT_CODE_LEVEL_2; - case 67: - return AD_UNIT_CODE_LEVEL_3; - case 68: - return AD_UNIT_CODE_LEVEL_4; - case 69: - return AD_UNIT_CODE_LEVEL_5; - case 70: - return AD_UNIT_CODE_LEVEL_6; - case 71: - return AD_UNIT_CODE_LEVEL_7; - case 72: - return AD_UNIT_CODE_LEVEL_8; - case 73: - return AD_UNIT_CODE_LEVEL_9; - case 101: - return AD_UNIT_DEPTH; - case 25: - return AD_UNIT_ID; - case 27: - return AD_UNIT_ID_ALL_LEVEL; - case 30: - return AD_UNIT_ID_LEVEL_1; - case 48: - return AD_UNIT_ID_LEVEL_10; - case 50: - return AD_UNIT_ID_LEVEL_11; - case 52: - return AD_UNIT_ID_LEVEL_12; - case 54: - return AD_UNIT_ID_LEVEL_13; - case 56: - return AD_UNIT_ID_LEVEL_14; - case 58: - return AD_UNIT_ID_LEVEL_15; - case 60: - return AD_UNIT_ID_LEVEL_16; - case 32: - return AD_UNIT_ID_LEVEL_2; - case 34: - return AD_UNIT_ID_LEVEL_3; - case 36: - return AD_UNIT_ID_LEVEL_4; - case 38: - return AD_UNIT_ID_LEVEL_5; - case 40: - return AD_UNIT_ID_LEVEL_6; - case 42: - return AD_UNIT_ID_LEVEL_7; - case 44: - return AD_UNIT_ID_LEVEL_8; - case 46: - return AD_UNIT_ID_LEVEL_9; - case 142: - return AD_UNIT_ID_TOP_LEVEL; - case 26: - return AD_UNIT_NAME; - case 29: - return AD_UNIT_NAME_ALL_LEVEL; - case 31: - return AD_UNIT_NAME_LEVEL_1; - case 49: - return AD_UNIT_NAME_LEVEL_10; - case 51: - return AD_UNIT_NAME_LEVEL_11; - case 53: - return AD_UNIT_NAME_LEVEL_12; - case 55: - return AD_UNIT_NAME_LEVEL_13; - case 57: - return AD_UNIT_NAME_LEVEL_14; - case 59: - return AD_UNIT_NAME_LEVEL_15; - case 61: - return AD_UNIT_NAME_LEVEL_16; - case 33: - return AD_UNIT_NAME_LEVEL_2; - case 35: - return AD_UNIT_NAME_LEVEL_3; - case 37: - return AD_UNIT_NAME_LEVEL_4; - case 39: - return AD_UNIT_NAME_LEVEL_5; - case 41: - return AD_UNIT_NAME_LEVEL_6; - case 43: - return AD_UNIT_NAME_LEVEL_7; - case 45: - return AD_UNIT_NAME_LEVEL_8; - case 47: - return AD_UNIT_NAME_LEVEL_9; - case 143: - return AD_UNIT_NAME_TOP_LEVEL; - case 63: - return AD_UNIT_REWARD_AMOUNT; - case 62: - return AD_UNIT_REWARD_TYPE; - case 206: - return AD_UNIT_STATUS; - case 207: - return AD_UNIT_STATUS_NAME; - case 392: - return APP_VERSION; - case 349: - return BACKFILL_ADVERTISER_EXTERNAL_ID; - case 346: - return BACKFILL_ADVERTISER_ID; - case 351: - return BACKFILL_ADVERTISER_LABELS; - case 350: - return BACKFILL_ADVERTISER_LABEL_IDS; - case 347: - return BACKFILL_ADVERTISER_NAME; - case 348: - return BACKFILL_ADVERTISER_PRIMARY_CONTACT; - case 378: - return BACKFILL_CREATIVE_BILLING_TYPE; - case 379: - return BACKFILL_CREATIVE_BILLING_TYPE_NAME; - case 376: - return BACKFILL_CREATIVE_CLICK_THROUGH_URL; - case 370: - return BACKFILL_CREATIVE_ID; - case 371: - return BACKFILL_CREATIVE_NAME; - case 377: - return BACKFILL_CREATIVE_THIRD_PARTY_VENDOR; - case 374: - return BACKFILL_CREATIVE_TYPE; - case 375: - return BACKFILL_CREATIVE_TYPE_NAME; - case 278: - return BACKFILL_LINE_ITEM_ARCHIVED; - case 258: - return BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION; - case 259: - return BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME; - case 296: - return BACKFILL_LINE_ITEM_COMPUTED_STATUS; - case 297: - return BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME; - case 280: - return BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY; - case 272: - return BACKFILL_LINE_ITEM_COST_PER_UNIT; - case 264: - return BACKFILL_LINE_ITEM_COST_TYPE; - case 265: - return BACKFILL_LINE_ITEM_COST_TYPE_NAME; - case 381: - return BACKFILL_LINE_ITEM_CREATIVE_END_DATE; - case 290: - return BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE; - case 291: - return BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME; - case 380: - return BACKFILL_LINE_ITEM_CREATIVE_START_DATE; - case 288: - return BACKFILL_LINE_ITEM_CURRENCY_CODE; - case 274: - return BACKFILL_LINE_ITEM_DELIVERY_INDICATOR; - case 292: - return BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE; - case 293: - return BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME; - case 294: - return BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE; - case 295: - return BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE; - case 267: - return BACKFILL_LINE_ITEM_END_DATE; - case 269: - return BACKFILL_LINE_ITEM_END_DATE_TIME; - case 302: - return BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE; - case 257: - return BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME; - case 285: - return BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID; - case 273: - return BACKFILL_LINE_ITEM_EXTERNAL_ID; - case 303: - return BACKFILL_LINE_ITEM_FREQUENCY_CAP; - case 298: - return BACKFILL_LINE_ITEM_ID; - case 289: - return BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP; - case 283: - return BACKFILL_LINE_ITEM_LIFETIME_CLICKS; - case 282: - return BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS; - case 284: - return BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS; - case 276: - return BACKFILL_LINE_ITEM_MAKEGOOD; - case 299: - return BACKFILL_LINE_ITEM_NAME; - case 286: - return BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE; - case 277: - return BACKFILL_LINE_ITEM_OPTIMIZABLE; - case 262: - return BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE; - case 263: - return BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME; - case 260: - return BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE; - case 261: - return BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME; - case 266: - return BACKFILL_LINE_ITEM_PRIORITY; - case 306: - return BACKFILL_LINE_ITEM_RESERVATION_STATUS; - case 307: - return BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME; - case 268: - return BACKFILL_LINE_ITEM_START_DATE; - case 270: - return BACKFILL_LINE_ITEM_START_DATE_TIME; - case 300: - return BACKFILL_LINE_ITEM_TYPE; - case 301: - return BACKFILL_LINE_ITEM_TYPE_NAME; - case 271: - return BACKFILL_LINE_ITEM_UNLIMITED_END; - case 275: - return BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT; - case 287: - return BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE; - case 372: - return BACKFILL_MASTER_COMPANION_CREATIVE_ID; - case 373: - return BACKFILL_MASTER_COMPANION_CREATIVE_NAME; - case 313: - return BACKFILL_ORDER_AGENCY; - case 314: - return BACKFILL_ORDER_AGENCY_ID; - case 315: - return BACKFILL_ORDER_BOOKED_CPC; - case 316: - return BACKFILL_ORDER_BOOKED_CPM; - case 340: - return BACKFILL_ORDER_DELIVERY_STATUS; - case 341: - return BACKFILL_ORDER_DELIVERY_STATUS_NAME; - case 317: - return BACKFILL_ORDER_END_DATE; - case 319: - return BACKFILL_ORDER_END_DATE_TIME; - case 320: - return BACKFILL_ORDER_EXTERNAL_ID; - case 338: - return BACKFILL_ORDER_ID; - case 334: - return BACKFILL_ORDER_LABELS; - case 335: - return BACKFILL_ORDER_LABEL_IDS; - case 322: - return BACKFILL_ORDER_LIFETIME_CLICKS; - case 323: - return BACKFILL_ORDER_LIFETIME_IMPRESSIONS; - case 339: - return BACKFILL_ORDER_NAME; - case 324: - return BACKFILL_ORDER_PO_NUMBER; - case 321: - return BACKFILL_ORDER_PROGRAMMATIC; - case 325: - return BACKFILL_ORDER_SALESPERSON; - case 329: - return BACKFILL_ORDER_SECONDARY_SALESPEOPLE; - case 328: - return BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID; - case 331: - return BACKFILL_ORDER_SECONDARY_TRAFFICKERS; - case 330: - return BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID; - case 332: - return BACKFILL_ORDER_START_DATE; - case 333: - return BACKFILL_ORDER_START_DATE_TIME; - case 326: - return BACKFILL_ORDER_TRAFFICKER; - case 327: - return BACKFILL_ORDER_TRAFFICKER_ID; - case 318: - return BACKFILL_ORDER_UNLIMITED_END; - case 336: - return BACKFILL_PROGRAMMATIC_BUYER_ID; - case 337: - return BACKFILL_PROGRAMMATIC_BUYER_NAME; - case 383: - return BRANDING_TYPE; - case 384: - return BRANDING_TYPE_NAME; - case 119: - return BROWSER_CATEGORY; - case 120: - return BROWSER_CATEGORY_NAME; - case 235: - return BROWSER_ID; - case 236: - return BROWSER_NAME; - case 369: - return CARRIER_ID; - case 368: - return CARRIER_NAME; - case 133: - return CLASSIFIED_ADVERTISER_ID; - case 134: - return CLASSIFIED_ADVERTISER_NAME; - case 243: - return CLASSIFIED_BRAND_ID; - case 244: - return CLASSIFIED_BRAND_NAME; - case 246: - return CONTENT_ID; - case 247: - return CONTENT_NAME; - case 11: - return COUNTRY_ID; - case 12: - return COUNTRY_NAME; - case 366: - return CREATIVE_BILLING_TYPE; - case 367: - return CREATIVE_BILLING_TYPE_NAME; - case 174: - return CREATIVE_CLICK_THROUGH_URL; - case 138: - return CREATIVE_ID; - case 139: - return CREATIVE_NAME; - case 148: - return CREATIVE_TECHNOLOGY; - case 149: - return CREATIVE_TECHNOLOGY_NAME; - case 361: - return CREATIVE_THIRD_PARTY_VENDOR; - case 344: - return CREATIVE_TYPE; - case 345: - return CREATIVE_TYPE_NAME; - case 3: - return DATE; - case 4: - return DAY_OF_WEEK; - case 9: - return DEMAND_CHANNEL; - case 10: - return DEMAND_CHANNEL_NAME; - case 22: - return DEMAND_SUBCHANNEL; - case 23: - return DEMAND_SUBCHANNEL_NAME; - case 226: - return DEVICE; - case 15: - return DEVICE_CATEGORY; - case 16: - return DEVICE_CATEGORY_NAME; - case 225: - return DEVICE_NAME; - case 185: - return EXCHANGE_THIRD_PARTY_COMPANY_ID; - case 186: - return EXCHANGE_THIRD_PARTY_COMPANY_NAME; - case 248: - return FIRST_LOOK_PRICING_RULE_ID; - case 249: - return FIRST_LOOK_PRICING_RULE_NAME; - case 100: - return HOUR; - case 223: - return INTERACTION_TYPE; - case 224: - return INTERACTION_TYPE_NAME; - case 17: - return INVENTORY_FORMAT; - case 18: - return INVENTORY_FORMAT_NAME; - case 19: - return INVENTORY_TYPE; - case 20: - return INVENTORY_TYPE_NAME; - case 382: - return IS_ADX_DIRECT; - case 401: - return IS_FIRST_LOOK_DEAL; - case 214: - return KEY_VALUES_ID; - case 215: - return KEY_VALUES_NAME; - case 188: - return LINE_ITEM_ARCHIVED; - case 204: - return LINE_ITEM_COMPANION_DELIVERY_OPTION; - case 205: - return LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME; - case 250: - return LINE_ITEM_COMPUTED_STATUS; - case 251: - return LINE_ITEM_COMPUTED_STATUS_NAME; - case 92: - return LINE_ITEM_CONTRACTED_QUANTITY; - case 85: - return LINE_ITEM_COST_PER_UNIT; - case 212: - return LINE_ITEM_COST_TYPE; - case 213: - return LINE_ITEM_COST_TYPE_NAME; - case 176: - return LINE_ITEM_CREATIVE_END_DATE; - case 189: - return LINE_ITEM_CREATIVE_ROTATION_TYPE; - case 190: - return LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME; - case 175: - return LINE_ITEM_CREATIVE_START_DATE; - case 180: - return LINE_ITEM_CURRENCY_CODE; - case 87: - return LINE_ITEM_DELIVERY_INDICATOR; - case 191: - return LINE_ITEM_DELIVERY_RATE_TYPE; - case 192: - return LINE_ITEM_DELIVERY_RATE_TYPE_NAME; - case 195: - return LINE_ITEM_DISCOUNT_ABSOLUTE; - case 196: - return LINE_ITEM_DISCOUNT_PERCENTAGE; - case 81: - return LINE_ITEM_END_DATE; - case 83: - return LINE_ITEM_END_DATE_TIME; - case 201: - return LINE_ITEM_ENVIRONMENT_TYPE; - case 202: - return LINE_ITEM_ENVIRONMENT_TYPE_NAME; - case 97: - return LINE_ITEM_EXTERNAL_DEAL_ID; - case 86: - return LINE_ITEM_EXTERNAL_ID; - case 256: - return LINE_ITEM_FREQUENCY_CAP; - case 1: - return LINE_ITEM_ID; - case 181: - return LINE_ITEM_LAST_MODIFIED_BY_APP; - case 95: - return LINE_ITEM_LIFETIME_CLICKS; - case 94: - return LINE_ITEM_LIFETIME_IMPRESSIONS; - case 96: - return LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS; - case 89: - return LINE_ITEM_MAKEGOOD; - case 2: - return LINE_ITEM_NAME; - case 98: - return LINE_ITEM_NON_CPD_BOOKED_REVENUE; - case 90: - return LINE_ITEM_OPTIMIZABLE; - case 210: - return LINE_ITEM_PRIMARY_GOAL_TYPE; - case 211: - return LINE_ITEM_PRIMARY_GOAL_TYPE_NAME; - case 93: - return LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE; - case 396: - return LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE; - case 208: - return LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE; - case 209: - return LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME; - case 24: - return LINE_ITEM_PRIORITY; - case 304: - return LINE_ITEM_RESERVATION_STATUS; - case 305: - return LINE_ITEM_RESERVATION_STATUS_NAME; - case 82: - return LINE_ITEM_START_DATE; - case 84: - return LINE_ITEM_START_DATE_TIME; - case 193: - return LINE_ITEM_TYPE; - case 194: - return LINE_ITEM_TYPE_NAME; - case 187: - return LINE_ITEM_UNLIMITED_END; - case 88: - return LINE_ITEM_VALUE_COST_PER_UNIT; - case 179: - return LINE_ITEM_WEB_PROPERTY_CODE; - case 140: - return MASTER_COMPANION_CREATIVE_ID; - case 141: - return MASTER_COMPANION_CREATIVE_NAME; - case 128: - return MOBILE_APP_FREE; - case 129: - return MOBILE_APP_ICON_URL; - case 123: - return MOBILE_APP_ID; - case 127: - return MOBILE_APP_NAME; - case 311: - return MOBILE_APP_OWNERSHIP_STATUS; - case 312: - return MOBILE_APP_OWNERSHIP_STATUS_NAME; - case 125: - return MOBILE_APP_STORE; - case 245: - return MOBILE_APP_STORE_NAME; - case 99: - return MOBILE_INVENTORY_TYPE; - case 21: - return MOBILE_INVENTORY_TYPE_NAME; - case 130: - return MOBILE_SDK_VERSION_NAME; - case 6: - return MONTH_YEAR; - case 255: - return NATIVE_AD_FORMAT_ID; - case 254: - return NATIVE_AD_FORMAT_NAME; - case 253: - return NATIVE_STYLE_ID; - case 252: - return NATIVE_STYLE_NAME; - case 117: - return OPERATING_SYSTEM_CATEGORY; - case 118: - return OPERATING_SYSTEM_CATEGORY_NAME; - case 238: - return OPERATING_SYSTEM_VERSION_ID; - case 237: - return OPERATING_SYSTEM_VERSION_NAME; - case 150: - return ORDER_AGENCY; - case 151: - return ORDER_AGENCY_ID; - case 152: - return ORDER_BOOKED_CPC; - case 153: - return ORDER_BOOKED_CPM; - case 231: - return ORDER_DELIVERY_STATUS; - case 239: - return ORDER_DELIVERY_STATUS_NAME; - case 154: - return ORDER_END_DATE; - case 155: - return ORDER_END_DATE_TIME; - case 156: - return ORDER_EXTERNAL_ID; - case 7: - return ORDER_ID; - case 170: - return ORDER_LABELS; - case 171: - return ORDER_LABEL_IDS; - case 158: - return ORDER_LIFETIME_CLICKS; - case 159: - return ORDER_LIFETIME_IMPRESSIONS; - case 8: - return ORDER_NAME; - case 160: - return ORDER_PO_NUMBER; - case 157: - return ORDER_PROGRAMMATIC; - case 161: - return ORDER_SALESPERSON; - case 164: - return ORDER_SECONDARY_SALESPEOPLE; - case 165: - return ORDER_SECONDARY_SALESPEOPLE_ID; - case 166: - return ORDER_SECONDARY_TRAFFICKERS; - case 167: - return ORDER_SECONDARY_TRAFFICKERS_ID; - case 168: - return ORDER_START_DATE; - case 169: - return ORDER_START_DATE_TIME; - case 162: - return ORDER_TRAFFICKER; - case 163: - return ORDER_TRAFFICKER_ID; - case 203: - return ORDER_UNLIMITED_END; - case 113: - return PLACEMENT_ID; - case 144: - return PLACEMENT_ID_ALL; - case 114: - return PLACEMENT_NAME; - case 145: - return PLACEMENT_NAME_ALL; - case 362: - return PLACEMENT_STATUS; - case 363: - return PLACEMENT_STATUS_ALL; - case 364: - return PLACEMENT_STATUS_NAME; - case 365: - return PLACEMENT_STATUS_NAME_ALL; - case 240: - return PROGRAMMATIC_BUYER_ID; - case 241: - return PROGRAMMATIC_BUYER_NAME; - case 13: - return PROGRAMMATIC_CHANNEL; - case 14: - return PROGRAMMATIC_CHANNEL_NAME; - case 343: - return RENDERED_CREATIVE_SIZE; - case 352: - return REQUESTED_AD_SIZES; - case 146: - return REQUEST_TYPE; - case 147: - return REQUEST_TYPE_NAME; - case 597: - return SERVER_SIDE_UNWRAPPING_ELIGIBLE; - case 387: - return SITE; - case 232: - return TARGETING_ID; - case 233: - return TARGETING_NAME; - case 385: - return TARGETING_TYPE; - case 386: - return TARGETING_TYPE_NAME; - case 388: - return TRAFFIC_SOURCE; - case 389: - return TRAFFIC_SOURCE_NAME; - case 393: - return UNIFIED_PRICING_RULE_ID; - case 394: - return UNIFIED_PRICING_RULE_NAME; - case 172: - return VIDEO_PLCMT; - case 173: - return VIDEO_PLCMT_NAME; - case 5: - return WEEK; - case 184: - return YIELD_GROUP_BUYER_NAME; - case 182: - return YIELD_GROUP_ID; - case 183: - return YIELD_GROUP_NAME; - case 10000: - return LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID; - case 10001: - return LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID; - case 10002: - return LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID; - case 10003: - return LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID; - case 10004: - return LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID; - case 10005: - return LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID; - case 10006: - return LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID; - case 10007: - return LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID; - case 10008: - return LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID; - case 10009: - return LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID; - case 10010: - return LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID; - case 10011: - return LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID; - case 10012: - return LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID; - case 10013: - return LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID; - case 10014: - return LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID; - case 11000: - return LINE_ITEM_CUSTOM_FIELD_0_VALUE; - case 11001: - return LINE_ITEM_CUSTOM_FIELD_1_VALUE; - case 11002: - return LINE_ITEM_CUSTOM_FIELD_2_VALUE; - case 11003: - return LINE_ITEM_CUSTOM_FIELD_3_VALUE; - case 11004: - return LINE_ITEM_CUSTOM_FIELD_4_VALUE; - case 11005: - return LINE_ITEM_CUSTOM_FIELD_5_VALUE; - case 11006: - return LINE_ITEM_CUSTOM_FIELD_6_VALUE; - case 11007: - return LINE_ITEM_CUSTOM_FIELD_7_VALUE; - case 11008: - return LINE_ITEM_CUSTOM_FIELD_8_VALUE; - case 11009: - return LINE_ITEM_CUSTOM_FIELD_9_VALUE; - case 11010: - return LINE_ITEM_CUSTOM_FIELD_10_VALUE; - case 11011: - return LINE_ITEM_CUSTOM_FIELD_11_VALUE; - case 11012: - return LINE_ITEM_CUSTOM_FIELD_12_VALUE; - case 11013: - return LINE_ITEM_CUSTOM_FIELD_13_VALUE; - case 11014: - return LINE_ITEM_CUSTOM_FIELD_14_VALUE; - case 12000: - return ORDER_CUSTOM_FIELD_0_OPTION_ID; - case 12001: - return ORDER_CUSTOM_FIELD_1_OPTION_ID; - case 12002: - return ORDER_CUSTOM_FIELD_2_OPTION_ID; - case 12003: - return ORDER_CUSTOM_FIELD_3_OPTION_ID; - case 12004: - return ORDER_CUSTOM_FIELD_4_OPTION_ID; - case 12005: - return ORDER_CUSTOM_FIELD_5_OPTION_ID; - case 12006: - return ORDER_CUSTOM_FIELD_6_OPTION_ID; - case 12007: - return ORDER_CUSTOM_FIELD_7_OPTION_ID; - case 12008: - return ORDER_CUSTOM_FIELD_8_OPTION_ID; - case 12009: - return ORDER_CUSTOM_FIELD_9_OPTION_ID; - case 12010: - return ORDER_CUSTOM_FIELD_10_OPTION_ID; - case 12011: - return ORDER_CUSTOM_FIELD_11_OPTION_ID; - case 12012: - return ORDER_CUSTOM_FIELD_12_OPTION_ID; - case 12013: - return ORDER_CUSTOM_FIELD_13_OPTION_ID; - case 12014: - return ORDER_CUSTOM_FIELD_14_OPTION_ID; - case 13000: - return ORDER_CUSTOM_FIELD_0_VALUE; - case 13001: - return ORDER_CUSTOM_FIELD_1_VALUE; - case 13002: - return ORDER_CUSTOM_FIELD_2_VALUE; - case 13003: - return ORDER_CUSTOM_FIELD_3_VALUE; - case 13004: - return ORDER_CUSTOM_FIELD_4_VALUE; - case 13005: - return ORDER_CUSTOM_FIELD_5_VALUE; - case 13006: - return ORDER_CUSTOM_FIELD_6_VALUE; - case 13007: - return ORDER_CUSTOM_FIELD_7_VALUE; - case 13008: - return ORDER_CUSTOM_FIELD_8_VALUE; - case 13009: - return ORDER_CUSTOM_FIELD_9_VALUE; - case 13010: - return ORDER_CUSTOM_FIELD_10_VALUE; - case 13011: - return ORDER_CUSTOM_FIELD_11_VALUE; - case 13012: - return ORDER_CUSTOM_FIELD_12_VALUE; - case 13013: - return ORDER_CUSTOM_FIELD_13_VALUE; - case 13014: - return ORDER_CUSTOM_FIELD_14_VALUE; - case 14000: - return CREATIVE_CUSTOM_FIELD_0_OPTION_ID; - case 14001: - return CREATIVE_CUSTOM_FIELD_1_OPTION_ID; - case 14002: - return CREATIVE_CUSTOM_FIELD_2_OPTION_ID; - case 14003: - return CREATIVE_CUSTOM_FIELD_3_OPTION_ID; - case 14004: - return CREATIVE_CUSTOM_FIELD_4_OPTION_ID; - case 14005: - return CREATIVE_CUSTOM_FIELD_5_OPTION_ID; - case 14006: - return CREATIVE_CUSTOM_FIELD_6_OPTION_ID; - case 14007: - return CREATIVE_CUSTOM_FIELD_7_OPTION_ID; - case 14008: - return CREATIVE_CUSTOM_FIELD_8_OPTION_ID; - case 14009: - return CREATIVE_CUSTOM_FIELD_9_OPTION_ID; - case 14010: - return CREATIVE_CUSTOM_FIELD_10_OPTION_ID; - case 14011: - return CREATIVE_CUSTOM_FIELD_11_OPTION_ID; - case 14012: - return CREATIVE_CUSTOM_FIELD_12_OPTION_ID; - case 14013: - return CREATIVE_CUSTOM_FIELD_13_OPTION_ID; - case 14014: - return CREATIVE_CUSTOM_FIELD_14_OPTION_ID; - case 15000: - return CREATIVE_CUSTOM_FIELD_0_VALUE; - case 15001: - return CREATIVE_CUSTOM_FIELD_1_VALUE; - case 15002: - return CREATIVE_CUSTOM_FIELD_2_VALUE; - case 15003: - return CREATIVE_CUSTOM_FIELD_3_VALUE; - case 15004: - return CREATIVE_CUSTOM_FIELD_4_VALUE; - case 15005: - return CREATIVE_CUSTOM_FIELD_5_VALUE; - case 15006: - return CREATIVE_CUSTOM_FIELD_6_VALUE; - case 15007: - return CREATIVE_CUSTOM_FIELD_7_VALUE; - case 15008: - return CREATIVE_CUSTOM_FIELD_8_VALUE; - case 15009: - return CREATIVE_CUSTOM_FIELD_9_VALUE; - case 15010: - return CREATIVE_CUSTOM_FIELD_10_VALUE; - case 15011: - return CREATIVE_CUSTOM_FIELD_11_VALUE; - case 15012: - return CREATIVE_CUSTOM_FIELD_12_VALUE; - case 15013: - return CREATIVE_CUSTOM_FIELD_13_VALUE; - case 15014: - return CREATIVE_CUSTOM_FIELD_14_VALUE; - case 16000: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID; - case 16001: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID; - case 16002: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID; - case 16003: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID; - case 16004: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID; - case 16005: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID; - case 16006: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID; - case 16007: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID; - case 16008: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID; - case 16009: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID; - case 16010: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID; - case 16011: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID; - case 16012: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID; - case 16013: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID; - case 16014: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID; - case 17000: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE; - case 17001: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE; - case 17002: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE; - case 17003: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE; - case 17004: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE; - case 17005: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE; - case 17006: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE; - case 17007: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE; - case 17008: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE; - case 17009: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE; - case 17010: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE; - case 17011: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE; - case 17012: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE; - case 17013: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE; - case 17014: - return BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE; - case 18000: - return BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID; - case 18001: - return BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID; - case 18002: - return BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID; - case 18003: - return BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID; - case 18004: - return BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID; - case 18005: - return BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID; - case 18006: - return BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID; - case 18007: - return BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID; - case 18008: - return BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID; - case 18009: - return BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID; - case 18010: - return BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID; - case 18011: - return BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID; - case 18012: - return BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID; - case 18013: - return BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID; - case 18014: - return BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID; - case 19000: - return BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE; - case 19001: - return BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE; - case 19002: - return BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE; - case 19003: - return BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE; - case 19004: - return BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE; - case 19005: - return BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE; - case 19006: - return BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE; - case 19007: - return BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE; - case 19008: - return BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE; - case 19009: - return BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE; - case 19010: - return BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE; - case 19011: - return BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE; - case 19012: - return BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE; - case 19013: - return BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE; - case 19014: - return BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE; - case 20000: - return BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID; - case 20001: - return BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID; - case 20002: - return BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID; - case 20003: - return BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID; - case 20004: - return BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID; - case 20005: - return BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID; - case 20006: - return BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID; - case 20007: - return BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID; - case 20008: - return BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID; - case 20009: - return BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID; - case 20010: - return BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID; - case 20011: - return BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID; - case 20012: - return BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID; - case 20013: - return BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID; - case 20014: - return BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID; - case 21000: - return BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE; - case 21001: - return BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE; - case 21002: - return BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE; - case 21003: - return BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE; - case 21004: - return BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE; - case 21005: - return BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE; - case 21006: - return BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE; - case 21007: - return BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE; - case 21008: - return BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE; - case 21009: - return BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE; - case 21010: - return BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE; - case 21011: - return BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE; - case 21012: - return BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE; - case 21013: - return BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE; - case 21014: - return BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE; - case 100000: - return CUSTOM_DIMENSION_0_VALUE_ID; - case 100001: - return CUSTOM_DIMENSION_1_VALUE_ID; - case 100002: - return CUSTOM_DIMENSION_2_VALUE_ID; - case 100003: - return CUSTOM_DIMENSION_3_VALUE_ID; - case 100004: - return CUSTOM_DIMENSION_4_VALUE_ID; - case 100005: - return CUSTOM_DIMENSION_5_VALUE_ID; - case 100006: - return CUSTOM_DIMENSION_6_VALUE_ID; - case 100007: - return CUSTOM_DIMENSION_7_VALUE_ID; - case 100008: - return CUSTOM_DIMENSION_8_VALUE_ID; - case 100009: - return CUSTOM_DIMENSION_9_VALUE_ID; - case 101000: - return CUSTOM_DIMENSION_0_VALUE; - case 101001: - return CUSTOM_DIMENSION_1_VALUE; - case 101002: - return CUSTOM_DIMENSION_2_VALUE; - case 101003: - return CUSTOM_DIMENSION_3_VALUE; - case 101004: - return CUSTOM_DIMENSION_4_VALUE; - case 101005: - return CUSTOM_DIMENSION_5_VALUE; - case 101006: - return CUSTOM_DIMENSION_6_VALUE; - case 101007: - return CUSTOM_DIMENSION_7_VALUE; - case 101008: - return CUSTOM_DIMENSION_8_VALUE; - case 101009: - return CUSTOM_DIMENSION_9_VALUE; - 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 Dimension findValueByNumber(int number) { - return Dimension.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.admanager.v1.Report.getDescriptor().getEnumTypes().get(1); - } - - private static final Dimension[] VALUES = values(); - - public static Dimension 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 Dimension(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.Dimension) - } - - /** - * - * - *
    -   * Reporting metrics.
    -   * 
    - * - * Protobuf enum {@code google.ads.admanager.v1.Report.Metric} - */ - public enum Metric implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -     * Default value. This value is unused.
    -     * 
    - * - * METRIC_UNSPECIFIED = 0; - */ - METRIC_UNSPECIFIED(0), - /** - * - * - *
    -     * Active View total average time in seconds that specific impressions are
    -     * reported as being viewable.
    -     * 
    - * - * ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; - */ - ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME(61), - /** - * - * - *
    -     * Total number of impressions that were eligible to measure viewability.
    -     * 
    - * - * ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; - */ - ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS(58), - /** - * - * - *
    -     * The total number of impressions that were sampled and measured by active
    -     * view.
    -     * 
    - * - * ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; - */ - ACTIVE_VIEW_MEASURABLE_IMPRESSIONS(57), - /** - * - * - *
    -     * The percentage of total impressions that were measurable by active view
    -     * (out of all the total impressions sampled for active view).
    -     * 
    - * - * ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; - */ - ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE(60), - /** - * - * - *
    -     * The total number of impressions viewed on the user's screen.
    -     * 
    - * - * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; - */ - ACTIVE_VIEW_VIEWABLE_IMPRESSIONS(56), - /** - * - * - *
    -     * The percentage of total impressions viewed on the user's screen (out of
    -     * the total impressions measurable by active view).
    -     * 
    - * - * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; - */ - ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE(59), - /** - * - * - *
    -     * Active View AdSense average time in seconds that specific impressions are
    -     * reported as being viewable.
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; - */ - ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME(73), - /** - * - * - *
    -     * Total number of impressions delivered by AdSense that were eligible to
    -     * measure viewability.
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; - */ - ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS(70), - /** - * - * - *
    -     * The number of impressions delivered by AdSense that were sampled, and
    -     * measurable by active view.
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; - */ - ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS(69), - /** - * - * - *
    -     * The percentage of impressions delivered by AdSense that were measurable
    -     * by active view (out of all AdSense impressions sampled for active view).
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; - */ - ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE(72), - /** - * - * - *
    -     * The number of impressions delivered by AdSense viewed on the user's
    -     * screen.
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; - */ - ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS(68), - /** - * - * - *
    -     * The percentage of impressions delivered by AdSense viewed on the user's
    -     * screen (out of AdSense impressions measurable by active view).
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; - */ - ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE(71), - /** - * - * - *
    -     * The average effective cost-per-thousand-impressions earned from the ads
    -     * delivered by AdSense through line item dynamic allocation.
    -     * 
    - * - * ADSENSE_AVERAGE_ECPM = 26; - */ - ADSENSE_AVERAGE_ECPM(26), - /** - * - * - *
    -     * Number of clicks delivered by AdSense demand channel.
    -     * 
    - * - * ADSENSE_CLICKS = 23; - */ - ADSENSE_CLICKS(23), - /** - * - * - *
    -     * The ratio of impressions served by AdSense that resulted in users
    -     * clicking on an ad. The clickthrough rate (CTR) is updated nightly. The
    -     * AdSense CTR is calculated as: (AdSense clicks / AdSense impressions).
    -     * 
    - * - * ADSENSE_CTR = 24; - */ - ADSENSE_CTR(24), - /** - * - * - *
    -     * Total impressions delivered by AdSense.
    -     * 
    - * - * ADSENSE_IMPRESSIONS = 22; - */ - ADSENSE_IMPRESSIONS(22), - /** - * - * - *
    -     * Ratio of clicks delivered by AdSense through line item dynamic allocation
    -     * in relation to the total clicks delivered.
    -     * 
    - * - * ADSENSE_PERCENT_CLICKS = 28; - */ - ADSENSE_PERCENT_CLICKS(28), - /** - * - * - *
    -     * Ratio of impressions delivered by AdSense through line item dynamic
    -     * allocation in relation to the total impressions delivered.
    -     * 
    - * - * ADSENSE_PERCENT_IMPRESSIONS = 27; - */ - ADSENSE_PERCENT_IMPRESSIONS(27), - /** - * - * - *
    -     * Ratio of revenue generated by AdSense through line item dynamic
    -     * allocation in relation to the total revenue.
    -     * 
    - * - * ADSENSE_PERCENT_REVENUE = 29; - */ - ADSENSE_PERCENT_REVENUE(29), - /** - * - * - *
    -     * Ratio of revenue generated by AdSense through line item dynamic
    -     * allocation in relation to the total revenue (excluding CPD).
    -     * 
    - * - * ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; - */ - ADSENSE_PERCENT_REVENUE_WITHOUT_CPD(30), - /** - * - * - *
    -     * The total number of times that an AdSense ad is delivered.
    -     * 
    - * - * ADSENSE_RESPONSES_SERVED = 41; - */ - ADSENSE_RESPONSES_SERVED(41), - /** - * - * - *
    -     * Revenue generated from AdSense through line item dynamic allocation,
    -     * calculated in the network's currency and time zone.
    -     * 
    - * - * ADSENSE_REVENUE = 25; - */ - ADSENSE_REVENUE(25), - /** - * - * - *
    -     * Active View AdExchange average time in seconds that specific impressions
    -     * are reported as being viewable.
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; - */ - AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME(79), - /** - * - * - *
    -     * Total number of impressions delivered by Ad Exchange that were eligible
    -     * to measure viewability.
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; - */ - AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS(76), - /** - * - * - *
    -     * The number of impressions delivered by Ad Exchange that were sampled, and
    -     * measurable by active view.
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; - */ - AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS(75), - /** - * - * - *
    -     * The percentage of impressions delivered by Ad Exchange that were
    -     * measurable by active view (out of all Ad Exchange impressions sampled for
    -     * active view).
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; - */ - AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE(78), - /** - * - * - *
    -     * The number of impressions delivered by Ad Exchange viewed on the user's
    -     * screen.
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; - */ - AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS(74), - /** - * - * - *
    -     * The percentage of impressions delivered by Ad Exchange viewed on the
    -     * user's screen (out of Ad Exchange impressions measurable by active view).
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; - */ - AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE(77), - /** - * - * - *
    -     * The average effective cost-per-thousand-impressions earned from the ads
    -     * delivered by Ad Exchange through line item dynamic allocation.
    -     * 
    - * - * AD_EXCHANGE_AVERAGE_ECPM = 18; - */ - AD_EXCHANGE_AVERAGE_ECPM(18), - /** - * - * - *
    -     * Number of clicks delivered by the Ad Exchange.
    -     * 
    - * - * AD_EXCHANGE_CLICKS = 15; - */ - AD_EXCHANGE_CLICKS(15), - /** - * - * - *
    -     * The ratio of impressions served by the Ad Exchange that resulted in users
    -     * clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad
    -     * Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange
    -     * impressions).
    -     * 
    - * - * AD_EXCHANGE_CTR = 16; - */ - AD_EXCHANGE_CTR(16), - /** - * - * - *
    -     * Total impressions delivered by the Ad Exchange.
    -     * 
    - * - * AD_EXCHANGE_IMPRESSIONS = 14; - */ - AD_EXCHANGE_IMPRESSIONS(14), - /** - * - * - *
    -     * Ratio of clicks delivered by Ad Exchange through line item dynamic
    -     * allocation in relation to the total clicks delivered.
    -     * 
    - * - * AD_EXCHANGE_PERCENT_CLICKS = 20; - */ - AD_EXCHANGE_PERCENT_CLICKS(20), - /** - * - * - *
    -     * Ratio of impressions delivered by Ad Exchange through line item dynamic
    -     * allocation in relation to the total impressions delivered.
    -     * 
    - * - * AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; - */ - AD_EXCHANGE_PERCENT_IMPRESSIONS(19), - /** - * - * - *
    -     * Ratio of revenue generated by Ad Exchange through line item dynamic
    -     * allocation in relation to the total revenue.
    -     * 
    - * - * AD_EXCHANGE_PERCENT_REVENUE = 21; - */ - AD_EXCHANGE_PERCENT_REVENUE(21), - /** - * - * - *
    -     * Ratio of revenue generated by Ad Exchange through line item dynamic
    -     * allocation in relation to the total revenue (excluding CPD).
    -     * 
    - * - * AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; - */ - AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD(31), - /** - * - * - *
    -     * The total number of times that an Ad Exchange ad is delivered.
    -     * 
    - * - * AD_EXCHANGE_RESPONSES_SERVED = 42; - */ - AD_EXCHANGE_RESPONSES_SERVED(42), - /** - * - * - *
    -     * Revenue generated from the Ad Exchange through line item dynamic
    -     * allocation, calculated in your network's currency and time zone.
    -     * 
    - * - * AD_EXCHANGE_REVENUE = 17; - */ - AD_EXCHANGE_REVENUE(17), - /** - * - * - *
    -     * The total number of times that an ad request is sent to the ad server
    -     * including dynamic allocation.
    -     * 
    - * - * AD_REQUESTS = 38; - */ - AD_REQUESTS(38), - /** - * - * - *
    -     * Active View ad server average time in seconds that specific impressions
    -     * are reported as being viewable.
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; - */ - AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME(67), - /** - * - * - *
    -     * Total number of impressions delivered by the ad server that were eligible
    -     * to measure viewability.
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; - */ - AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS(64), - /** - * - * - *
    -     * The number of impressions delivered by the ad server that were sampled,
    -     * and measurable by active view.
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; - */ - AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS(63), - /** - * - * - *
    -     * The percentage of impressions delivered by the ad server that were
    -     * measurable by active view (out of all the ad server impressions sampled
    -     * for active view).
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; - */ - AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE(66), - /** - * - * - *
    -     * The number of impressions delivered by the ad server viewed on the user's
    -     * screen.
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; - */ - AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS(62), - /** - * - * - *
    -     * The percentage of impressions delivered by the ad server viewed on the
    -     * user's screen (out of the ad server impressions measurable by active
    -     * view).
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; - */ - AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE(65), - /** - * - * - *
    -     * Average effective cost-per-thousand-impressions earned from the ads
    -     * delivered by the Google Ad Manager server.
    -     * 
    - * - * AD_SERVER_AVERAGE_ECPM = 34; - */ - AD_SERVER_AVERAGE_ECPM(34), - /** - * - * - *
    -     * Average effective cost-per-thousand-impressions earned from the ads
    -     * delivered by the Google Ad Manager server, excluding CPD value.
    -     * 
    - * - * AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; - */ - AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD(10), - /** - * - * - *
    -     * Total raw impressions counted when creative begins to render or the
    -     * first frame of a video is shown.
    -     * 
    - * - * AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; - */ - AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS(262), - /** - * - * - *
    -     * Total clicks served by the Google Ad Manager server. It usually takes
    -     * about 30 minutes for new clicks to be recorded and added to the total
    -     * displayed in reporting.
    -     * 
    - * - * AD_SERVER_CLICKS = 7; - */ - AD_SERVER_CLICKS(7), - /** - * - * - *
    -     * CPD revenue earned, calculated in your network's currency, for
    -     * the ads delivered by the Google Ad Manager server. Sum of all booked
    -     * revenue.
    -     * 
    - * - * AD_SERVER_CPD_REVENUE = 32; - */ - AD_SERVER_CPD_REVENUE(32), - /** - * - * - *
    -     * Ratio of impressions served by the Google Ad Manager server that resulted
    -     * in users clicking on an ad. The clickthrough rate (CTR) is updated
    -     * nightly. The ad server CTR is calculated as: (Ad server clicks / Ad
    -     * server impressions).
    -     * 
    - * - * AD_SERVER_CTR = 8; - */ - AD_SERVER_CTR(8), - /** - * - * - *
    -     * Total impressions delivered by the Ad Server.
    -     * 
    - * - * AD_SERVER_IMPRESSIONS = 6; - */ - AD_SERVER_IMPRESSIONS(6), - /** - * - * - *
    -     * Ratio of clicks delivered by the Google Ad Manager server in relation to
    -     * the total clicks delivered.
    -     * 
    - * - * AD_SERVER_PERCENT_CLICKS = 12; - */ - AD_SERVER_PERCENT_CLICKS(12), - /** - * - * - *
    -     * Ratio of impressions delivered by the Google Ad Manager server in
    -     * relation to the total impressions delivered.
    -     * 
    - * - * AD_SERVER_PERCENT_IMPRESSIONS = 11; - */ - AD_SERVER_PERCENT_IMPRESSIONS(11), - /** - * - * - *
    -     * Ratio of revenue generated by the Google Ad Manager server in relation
    -     * to the total revenue.
    -     * 
    - * - * AD_SERVER_PERCENT_REVENUE = 35; - */ - AD_SERVER_PERCENT_REVENUE(35), - /** - * - * - *
    -     * Ratio of revenue generated by the Google Ad Manager server (excluding
    -     * CPD) in relation to the total revenue.
    -     * 
    - * - * AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; - */ - AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD(13), - /** - * - * - *
    -     * The total number of times that an ad is served by the ad server.
    -     * 
    - * - * AD_SERVER_RESPONSES_SERVED = 40; - */ - AD_SERVER_RESPONSES_SERVED(40), - /** - * - * - *
    -     * All CPM, CPC, and CPD revenue earned, calculated in your network's
    -     * currency, for the ads delivered by the Google Ad Manager server.
    -     * Sum of all booked revenue.
    -     * 
    - * - * AD_SERVER_REVENUE = 33; - */ - AD_SERVER_REVENUE(33), - /** - * - * - *
    -     * Revenue (excluding CPD) earned, calculated in your network's currency,
    -     * for the ads delivered by the Google Ad Manager server. Sum of all booked
    -     * revenue.
    -     * 
    - * - * AD_SERVER_REVENUE_WITHOUT_CPD = 9; - */ - AD_SERVER_REVENUE_WITHOUT_CPD(9), - /** - * - * - *
    -     * The number of tracked ads delivered by the ad server.
    -     * 
    - * - * AD_SERVER_TRACKED_ADS = 264; - */ - AD_SERVER_TRACKED_ADS(264), - /** - * - * - *
    -     * Total raw impressions counted when creative begins to render or the
    -     * first frame of a video is shown, before invalid traffic filtrations by
    -     * Ad Server.
    -     * 
    - * - * AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; - */ - AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS(261), - /** - * - * - *
    -     * Total clicks delivered by the Ad Server before spam filtering.
    -     * 
    - * - * AD_SERVER_UNFILTERED_CLICKS = 259; - */ - AD_SERVER_UNFILTERED_CLICKS(259), - /** - * - * - *
    -     * Total impressions delivered by the Ad Server before spam filtering.
    -     * 
    - * - * AD_SERVER_UNFILTERED_IMPRESSIONS = 260; - */ - AD_SERVER_UNFILTERED_IMPRESSIONS(260), - /** - * - * - *
    -     * The number of tracked ads delivered by the ad server before invalid
    -     * traffic filtrations.
    -     * 
    - * - * AD_SERVER_UNFILTERED_TRACKED_ADS = 263; - */ - AD_SERVER_UNFILTERED_TRACKED_ADS(263), - /** - * - * - *
    -     * eCPM averaged across the Google Ad Manager server, AdSense,
    -     * and Ad Exchange.
    -     * 
    - * - * AVERAGE_ECPM = 37; - */ - AVERAGE_ECPM(37), - /** - * - * - *
    -     * eCPM averaged across the Google Ad Manager server (excluding CPD),
    -     * AdSense, and Ad Exchange.
    -     * 
    - * - * AVERAGE_ECPM_WITHOUT_CPD = 5; - */ - AVERAGE_ECPM_WITHOUT_CPD(5), - /** - * - * - *
    -     * The number of times a user clicked on an ad.
    -     * 
    - * - * CLICKS = 2; - */ - CLICKS(2), - /** - * - * - *
    -     * The total number of times that the code for an ad is served by the ad
    -     * server including dynamic allocation.
    -     * 
    - * - * CODE_SERVED_COUNT = 44; - */ - CODE_SERVED_COUNT(44), - /** - * - * - *
    -     * For standard ads, your ad clickthrough rate (CTR) is the number of ad
    -     * clicks divided by the number of individual ad impressions expressed as a
    -     * fraction. Ad CTR = Clicks / Ad impressions.
    -     * 
    - * - * CTR = 3; - */ - CTR(3), - /** - * - * - *
    -     * The number of coviewed impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; - */ - GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS(129), - /** - * - * - *
    -     * The number of auction impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; - */ - GOOGLE_SOLD_AUCTION_IMPRESSIONS(128), - /** - * - * - *
    -     * The number of coviewed impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; - */ - GOOGLE_SOLD_COVIEWED_IMPRESSIONS(131), - /** - * - * - *
    -     * The number of impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_IMPRESSIONS = 130; - */ - GOOGLE_SOLD_IMPRESSIONS(130), - /** - * - * - *
    -     * The number of coviewed impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; - */ - GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS(127), - /** - * - * - *
    -     * The number of reservation impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; - */ - GOOGLE_SOLD_RESERVATION_IMPRESSIONS(126), - /** - * - * - *
    -     * Total impressions from the Google Ad Manager server, AdSense,
    -     * Ad Exchange, and yield group partners.
    -     * 
    - * - * IMPRESSIONS = 1; - */ - IMPRESSIONS(1), - /** - * - * - *
    -     * The number of filled pod requests (filled by partner or Google) in
    -     * partner sales.
    -     * 
    - * - * PARTNER_SALES_FILLED_POD_REQUESTS = 135; - */ - PARTNER_SALES_FILLED_POD_REQUESTS(135), - /** - * - * - *
    -     * The percent of filled requests to total ad requests in
    -     * partner sales.
    -     * 
    - * - * PARTNER_SALES_FILL_RATE = 136; - */ - PARTNER_SALES_FILL_RATE(136), - /** - * - * - *
    -     * The percent of partner filled requests to total ad requests
    -     * in partner sales.
    -     * 
    - * - * PARTNER_SALES_PARTNER_MATCH_RATE = 137; - */ - PARTNER_SALES_PARTNER_MATCH_RATE(137), - /** - * - * - *
    -     * The number of queries eligible for partner sales.
    -     * 
    - * - * PARTNER_SALES_QUERIES = 132; - */ - PARTNER_SALES_QUERIES(132), - /** - * - * - *
    -     * The number of partner unfilled impressions in partner sales.
    -     * If a pod request is not filled by partner but filled by Google, this
    -     * metric will still count 1.
    -     * 
    - * - * PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; - */ - PARTNER_SALES_UNFILLED_IMPRESSIONS(133), - /** - * - * - *
    -     * The number of partner unmatched queries in partner sales.
    -     * If an ad request is not filled by partner but filled by Google, this
    -     * metric will still count 1.
    -     * 
    - * - * PARTNER_SALES_UNMATCHED_QUERIES = 134; - */ - PARTNER_SALES_UNMATCHED_QUERIES(134), - /** - * - * - *
    -     * The number of code served sold by partner in partner sales.
    -     * 
    - * - * PARTNER_SOLD_CODE_SERVED = 125; - */ - PARTNER_SOLD_CODE_SERVED(125), - /** - * - * - *
    -     * The number of coviewed impressions sold by partner in partner sales.
    -     * 
    - * - * PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; - */ - PARTNER_SOLD_COVIEWED_IMPRESSIONS(124), - /** - * - * - *
    -     * The number of impressions sold by partner in partner sales.
    -     * 
    - * - * PARTNER_SOLD_IMPRESSIONS = 123; - */ - PARTNER_SOLD_IMPRESSIONS(123), - /** - * - * - *
    -     * The total number of ad requests eligible for programmatic inventory,
    -     * including Programmatic Guaranteed, Preferred Deals, backfill, and open
    -     * auction.
    -     * 
    - * - * PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; - */ - PROGRAMMATIC_ELIGIBLE_AD_REQUESTS(177), - /** - * - * - *
    -     * The number of programmatic responses served divided by the number of
    -     * programmatic eligible ad requests. Includes Ad Exchange, Open Bidding,
    -     * and Preferred Deals.
    -     * 
    - * - * PROGRAMMATIC_MATCH_RATE = 178; - */ - PROGRAMMATIC_MATCH_RATE(178), - /** - * - * - *
    -     * Total number of ad responses served from programmatic demand sources.
    -     * Includes Ad Exchange, Open Bidding, and Preferred Deals.
    -     *
    -     * Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open
    -     * Bidding ad requests.
    -     * 
    - * - * PROGRAMMATIC_RESPONSES_SERVED = 176; - */ - PROGRAMMATIC_RESPONSES_SERVED(176), - /** - * - * - *
    -     * The total number of times that an ad is served by the ad server including
    -     * dynamic allocation.
    -     * 
    - * - * RESPONSES_SERVED = 39; - */ - RESPONSES_SERVED(39), - /** - * - * - *
    -     * Total amount of CPM, CPC, and CPD revenue based on the number of units
    -     * served by the Google Ad Manager server, AdSense, Ad Exchange, and
    -     * third-party Mediation networks.
    -     * 
    - * - * REVENUE = 36; - */ - REVENUE(36), - /** - * - * - *
    -     * Total amount of revenue (excluding CPD) based on the number of units
    -     * served by the Google Ad Manager server, AdSense, Ad Exchange, and
    -     * third-party Mediation networks.
    -     * 
    - * - * REVENUE_WITHOUT_CPD = 4; - */ - REVENUE_WITHOUT_CPD(4), - /** - * - * - *
    -     * The average latency in milliseconds across all server-side unwrapping
    -     * callout requests. There is no special handling for error or timeout
    -     * responses. This reflects the entire chain of a parent callout request,
    -     * which may result in multiple child callouts. This metric is not sliced by
    -     * child callout dimensions.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; - */ - SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS(434), - /** - * - * - *
    -     * The total number of server-side unwrapping callout requests.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; - */ - SERVER_SIDE_UNWRAPPING_CALLOUTS(435), - /** - * - * - *
    -     * The total number of server-side unwrapping callouts that returned an
    -     * empty response. Timeouts are not considered empty responses.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; - */ - SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES(436), - /** - * - * - *
    -     * The total number of server-side unwrapping callouts that returned an
    -     * error response. Timeouts and empty responses are not considered errors.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; - */ - SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES(437), - /** - * - * - *
    -     * The total number of successfully unwrapped, non-empty server-side
    -     * wrapping callouts. Successful unwrapping does not indicate that the
    -     * resulting creative was served.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; - */ - SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES(438), - /** - * - * - *
    -     * The total number of server-side unwrapping callouts that timed out before
    -     * returning a response.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; - */ - SERVER_SIDE_UNWRAPPING_TIMEOUTS(439), - /** - * - * - *
    -     * The total number of missed impressions due to the ad servers' inability
    -     * to find ads to serve including dynamic allocation.
    -     * 
    - * - * UNFILLED_IMPRESSIONS = 45; - */ - UNFILLED_IMPRESSIONS(45), - /** - * - * - *
    -     * The total number of times that an ad is not returned by the ad server.
    -     * 
    - * - * UNMATCHED_AD_REQUESTS = 43; - */ - UNMATCHED_AD_REQUESTS(43), - /** - * - * - *
    -     * Number of times an Offerwall message was shown to users.
    -     * 
    - * - * USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; - */ - USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN(121), - /** - * - * - *
    -     * The number of messages where the user gained an entitlement.
    -     * 
    - * - * USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; - */ - USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS(122), - /** - * - * - *
    -     * The number of user interactions with a video, on average, such as pause,
    -     * full screen, mute, etc.
    -     * 
    - * - * VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; - */ - VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE(92), - /** - * - * - *
    -     * The number of times a user collapses a video, either to its original size
    -     * or to a different size.
    -     * 
    - * - * VIDEO_INTERACTION_COLLAPSES = 93; - */ - VIDEO_INTERACTION_COLLAPSES(93), - /** - * - * - *
    -     * The number of times a user expands a video.
    -     * 
    - * - * VIDEO_INTERACTION_EXPANDS = 95; - */ - VIDEO_INTERACTION_EXPANDS(95), - /** - * - * - *
    -     * The number of times ad clip played in full screen mode.
    -     * 
    - * - * VIDEO_INTERACTION_FULL_SCREENS = 96; - */ - VIDEO_INTERACTION_FULL_SCREENS(96), - /** - * - * - *
    -     * The number of times video player was in mute state during play of ad
    -     * clip.
    -     * 
    - * - * VIDEO_INTERACTION_MUTES = 97; - */ - VIDEO_INTERACTION_MUTES(97), - /** - * - * - *
    -     * The number of times user paused ad clip.
    -     * 
    - * - * VIDEO_INTERACTION_PAUSES = 98; - */ - VIDEO_INTERACTION_PAUSES(98), - /** - * - * - *
    -     * The number of times the user unpaused the video.
    -     * 
    - * - * VIDEO_INTERACTION_RESUMES = 99; - */ - VIDEO_INTERACTION_RESUMES(99), - /** - * - * - *
    -     * The number of times a user rewinds the video.
    -     * 
    - * - * VIDEO_INTERACTION_REWINDS = 100; - */ - VIDEO_INTERACTION_REWINDS(100), - /** - * - * - *
    -     * The number of times a user unmutes the video.
    -     * 
    - * - * VIDEO_INTERACTION_UNMUTES = 101; - */ - VIDEO_INTERACTION_UNMUTES(101), - /** - * - * - *
    -     * The number of times a skippable video is skipped.
    -     * 
    - * - * VIDEO_INTERACTION_VIDEO_SKIPS = 102; - */ - VIDEO_INTERACTION_VIDEO_SKIPS(102), - /** - * - * - *
    -     * The number of total creative serves in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_CREATIVE_SERVES = 139; - */ - VIDEO_REAL_TIME_CREATIVE_SERVES(139), - /** - * - * - *
    -     * The number of errors of type 100 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_100_COUNT = 143; - */ - VIDEO_REAL_TIME_ERROR_100_COUNT(143), - /** - * - * - *
    -     * The number of errors of type 101 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_101_COUNT = 144; - */ - VIDEO_REAL_TIME_ERROR_101_COUNT(144), - /** - * - * - *
    -     * The number of errors of type 102 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_102_COUNT = 145; - */ - VIDEO_REAL_TIME_ERROR_102_COUNT(145), - /** - * - * - *
    -     * The number of errors of type 200 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_200_COUNT = 146; - */ - VIDEO_REAL_TIME_ERROR_200_COUNT(146), - /** - * - * - *
    -     * The number of errors of type 201 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_201_COUNT = 147; - */ - VIDEO_REAL_TIME_ERROR_201_COUNT(147), - /** - * - * - *
    -     * The number of errors of type 202 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_202_COUNT = 148; - */ - VIDEO_REAL_TIME_ERROR_202_COUNT(148), - /** - * - * - *
    -     * The number of errors of type 203 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_203_COUNT = 149; - */ - VIDEO_REAL_TIME_ERROR_203_COUNT(149), - /** - * - * - *
    -     * The number of errors of type 300 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_300_COUNT = 150; - */ - VIDEO_REAL_TIME_ERROR_300_COUNT(150), - /** - * - * - *
    -     * The number of errors of type 301 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_301_COUNT = 151; - */ - VIDEO_REAL_TIME_ERROR_301_COUNT(151), - /** - * - * - *
    -     * The number of errors of type 302 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_302_COUNT = 152; - */ - VIDEO_REAL_TIME_ERROR_302_COUNT(152), - /** - * - * - *
    -     * The number of errors of type 303 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_303_COUNT = 153; - */ - VIDEO_REAL_TIME_ERROR_303_COUNT(153), - /** - * - * - *
    -     * The number of errors of type 400 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_400_COUNT = 154; - */ - VIDEO_REAL_TIME_ERROR_400_COUNT(154), - /** - * - * - *
    -     * The number of errors of type 401 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_401_COUNT = 155; - */ - VIDEO_REAL_TIME_ERROR_401_COUNT(155), - /** - * - * - *
    -     * The number of errors of type 402 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_402_COUNT = 156; - */ - VIDEO_REAL_TIME_ERROR_402_COUNT(156), - /** - * - * - *
    -     * The number of errors of type 403 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_403_COUNT = 157; - */ - VIDEO_REAL_TIME_ERROR_403_COUNT(157), - /** - * - * - *
    -     * The number of errors of type 405 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_405_COUNT = 158; - */ - VIDEO_REAL_TIME_ERROR_405_COUNT(158), - /** - * - * - *
    -     * The number of errors of type 406 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_406_COUNT = 159; - */ - VIDEO_REAL_TIME_ERROR_406_COUNT(159), - /** - * - * - *
    -     * The number of errors of type 407 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_407_COUNT = 160; - */ - VIDEO_REAL_TIME_ERROR_407_COUNT(160), - /** - * - * - *
    -     * The number of errors of type 408 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_408_COUNT = 161; - */ - VIDEO_REAL_TIME_ERROR_408_COUNT(161), - /** - * - * - *
    -     * The number of errors of type 409 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_409_COUNT = 162; - */ - VIDEO_REAL_TIME_ERROR_409_COUNT(162), - /** - * - * - *
    -     * The number of errors of type 410 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_410_COUNT = 163; - */ - VIDEO_REAL_TIME_ERROR_410_COUNT(163), - /** - * - * - *
    -     * The number of errors of type 500 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_500_COUNT = 164; - */ - VIDEO_REAL_TIME_ERROR_500_COUNT(164), - /** - * - * - *
    -     * The number of errors of type 501 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_501_COUNT = 165; - */ - VIDEO_REAL_TIME_ERROR_501_COUNT(165), - /** - * - * - *
    -     * The number of errors of type 502 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_502_COUNT = 166; - */ - VIDEO_REAL_TIME_ERROR_502_COUNT(166), - /** - * - * - *
    -     * The number of errors of type 503 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_503_COUNT = 167; - */ - VIDEO_REAL_TIME_ERROR_503_COUNT(167), - /** - * - * - *
    -     * The number of errors of type 600 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_600_COUNT = 168; - */ - VIDEO_REAL_TIME_ERROR_600_COUNT(168), - /** - * - * - *
    -     * The number of errors of type 601 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_601_COUNT = 169; - */ - VIDEO_REAL_TIME_ERROR_601_COUNT(169), - /** - * - * - *
    -     * The number of errors of type 602 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_602_COUNT = 170; - */ - VIDEO_REAL_TIME_ERROR_602_COUNT(170), - /** - * - * - *
    -     * The number of errors of type 603 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_603_COUNT = 171; - */ - VIDEO_REAL_TIME_ERROR_603_COUNT(171), - /** - * - * - *
    -     * The number of errors of type 604 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_604_COUNT = 172; - */ - VIDEO_REAL_TIME_ERROR_604_COUNT(172), - /** - * - * - *
    -     * The number of errors of type 900 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_900_COUNT = 173; - */ - VIDEO_REAL_TIME_ERROR_900_COUNT(173), - /** - * - * - *
    -     * The number of errors of type 901 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_901_COUNT = 174; - */ - VIDEO_REAL_TIME_ERROR_901_COUNT(174), - /** - * - * - *
    -     * The number of total impressions in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_IMPRESSIONS = 138; - */ - VIDEO_REAL_TIME_IMPRESSIONS(138), - /** - * - * - *
    -     * The number of matched queries in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_MATCHED_QUERIES = 140; - */ - VIDEO_REAL_TIME_MATCHED_QUERIES(140), - /** - * - * - *
    -     * The number of all errors in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; - */ - VIDEO_REAL_TIME_TOTAL_ERROR_COUNT(175), - /** - * - * - *
    -     * The number of total queries in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_TOTAL_QUERIES = 142; - */ - VIDEO_REAL_TIME_TOTAL_QUERIES(142), - /** - * - * - *
    -     * The number of unmatched queries in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; - */ - VIDEO_REAL_TIME_UNMATCHED_QUERIES(141), - /** - * - * - *
    -     * Number of times that the publisher specified a video ad played
    -     * automatically.
    -     * 
    - * - * VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; - */ - VIDEO_VIEWERSHIP_AUTO_PLAYS(103), - /** - * - * - *
    -     * Average percentage of the video watched by users.
    -     * 
    - * - * VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; - */ - VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE(104), - /** - * - * - *
    -     * Average time(seconds) users watched the video.
    -     * 
    - * - * VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; - */ - VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME(105), - /** - * - * - *
    -     * Number of times that the publisher specified a video ad was clicked to
    -     * play.
    -     * 
    - * - * VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; - */ - VIDEO_VIEWERSHIP_CLICK_TO_PLAYS(106), - /** - * - * - *
    -     * The number of times the video played to completion.
    -     * 
    - * - * VIDEO_VIEWERSHIP_COMPLETES = 107; - */ - VIDEO_VIEWERSHIP_COMPLETES(107), - /** - * - * - *
    -     * Percentage of times the video played to the end.
    -     * 
    - * - * VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; - */ - VIDEO_VIEWERSHIP_COMPLETION_RATE(108), - /** - * - * - *
    -     * The number of engaged views: ad is viewed to completion or for 30s,
    -     * whichever comes first.
    -     * 
    - * - * VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; - */ - VIDEO_VIEWERSHIP_ENGAGED_VIEWS(109), - /** - * - * - *
    -     * The number of times the video played to 25% of its length.
    -     * 
    - * - * VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; - */ - VIDEO_VIEWERSHIP_FIRST_QUARTILES(110), - /** - * - * - *
    -     * The number of times the video reached its midpoint during play.
    -     * 
    - * - * VIDEO_VIEWERSHIP_MIDPOINTS = 111; - */ - VIDEO_VIEWERSHIP_MIDPOINTS(111), - /** - * - * - *
    -     * The number of times a skip button is shown in video.
    -     * 
    - * - * VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; - */ - VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN(112), - /** - * - * - *
    -     * The number of impressions where the video was played.
    -     * 
    - * - * VIDEO_VIEWERSHIP_STARTS = 113; - */ - VIDEO_VIEWERSHIP_STARTS(113), - /** - * - * - *
    -     * The number of times the video played to 75% of its length.
    -     * 
    - * - * VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; - */ - VIDEO_VIEWERSHIP_THIRD_QUARTILES(114), - /** - * - * - *
    -     * The number of times an error occurred, such as a VAST redirect error, a
    -     * video playback error, or an invalid response error.
    -     * 
    - * - * VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; - */ - VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT(115), - /** - * - * - *
    -     * The percentage of video error count.
    -     * 
    - * - * VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; - */ - VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE(94), - /** - * - * - *
    -     * Duration of the video creative.
    -     * 
    - * - * VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; - */ - VIDEO_VIEWERSHIP_VIDEO_LENGTH(116), - /** - * - * - *
    -     * View-through rate represented as a percentage.
    -     * 
    - * - * VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; - */ - VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE(117), - /** - * - * - *
    -     * Number of winning bids received from Open Bidding buyers, even when the
    -     * winning bid is placed at the end of a mediation for mobile apps chain.
    -     * 
    - * - * YIELD_GROUP_AUCTIONS_WON = 80; - */ - YIELD_GROUP_AUCTIONS_WON(80), - /** - * - * - *
    -     * Number of bids received from Open Bidding buyers, regardless of whether
    -     * the returned bid competes in an auction.
    -     * 
    - * - * YIELD_GROUP_BIDS = 81; - */ - YIELD_GROUP_BIDS(81), - /** - * - * - *
    -     * Number of bids received from Open Bidding buyers that competed in
    -     * the auction.
    -     * 
    - * - * YIELD_GROUP_BIDS_IN_AUCTION = 82; - */ - YIELD_GROUP_BIDS_IN_AUCTION(82), - /** - * - * - *
    -     * Number of times a yield partner is asked to return bid to fill
    -     * a yield group request.
    -     * 
    - * - * YIELD_GROUP_CALLOUTS = 83; - */ - YIELD_GROUP_CALLOUTS(83), - /** - * - * - *
    -     * The estimated net rate for yield groups or individual
    -     * yield group partners.
    -     * 
    - * - * YIELD_GROUP_ESTIMATED_CPM = 88; - */ - YIELD_GROUP_ESTIMATED_CPM(88), - /** - * - * - *
    -     * Total net revenue earned by a yield group, based upon the yield group
    -     * estimated CPM and yield group impressions recorded.
    -     * 
    - * - * YIELD_GROUP_ESTIMATED_REVENUE = 87; - */ - YIELD_GROUP_ESTIMATED_REVENUE(87), - /** - * - * - *
    -     * Number of matched yield group requests where a yield partner delivered
    -     * their ad to publisher inventory.
    -     * 
    - * - * YIELD_GROUP_IMPRESSIONS = 85; - */ - YIELD_GROUP_IMPRESSIONS(85), - /** - * - * - *
    -     * Yield group Mediation fill rate indicating how often a network
    -     * fills an ad request.
    -     * 
    - * - * YIELD_GROUP_MEDIATION_FILL_RATE = 89; - */ - YIELD_GROUP_MEDIATION_FILL_RATE(89), - /** - * - * - *
    -     * Total requests where a Mediation chain was served.
    -     * 
    - * - * YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; - */ - YIELD_GROUP_MEDIATION_MATCHED_QUERIES(86), - /** - * - * - *
    -     * The number of mediation chain passback across all channels.
    -     * 
    - * - * YIELD_GROUP_MEDIATION_PASSBACKS = 118; - */ - YIELD_GROUP_MEDIATION_PASSBACKS(118), - /** - * - * - *
    -     * Revenue per thousand impressions based on data collected by Ad Manager
    -     * from third-party ad network reports.
    -     * 
    - * - * YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; - */ - YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM(90), - /** - * - * - *
    -     * Number of times a yield group buyer successfully returned a bid in
    -     * response to a yield group callout.
    -     * 
    - * - * YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; - */ - YIELD_GROUP_SUCCESSFUL_RESPONSES(84), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
    -     * Default value. This value is unused.
    -     * 
    - * - * METRIC_UNSPECIFIED = 0; - */ - public static final int METRIC_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
    -     * Active View total average time in seconds that specific impressions are
    -     * reported as being viewable.
    -     * 
    - * - * ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; - */ - public static final int ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME_VALUE = 61; - - /** - * - * - *
    -     * Total number of impressions that were eligible to measure viewability.
    -     * 
    - * - * ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; - */ - public static final int ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS_VALUE = 58; - - /** - * - * - *
    -     * The total number of impressions that were sampled and measured by active
    -     * view.
    -     * 
    - * - * ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; - */ - public static final int ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_VALUE = 57; - - /** - * - * - *
    -     * The percentage of total impressions that were measurable by active view
    -     * (out of all the total impressions sampled for active view).
    -     * 
    - * - * ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; - */ - public static final int ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE_VALUE = 60; - - /** - * - * - *
    -     * The total number of impressions viewed on the user's screen.
    -     * 
    - * - * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; - */ - public static final int ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_VALUE = 56; - - /** - * - * - *
    -     * The percentage of total impressions viewed on the user's screen (out of
    -     * the total impressions measurable by active view).
    -     * 
    - * - * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; - */ - public static final int ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE_VALUE = 59; - - /** - * - * - *
    -     * Active View AdSense average time in seconds that specific impressions are
    -     * reported as being viewable.
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; - */ - public static final int ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME_VALUE = 73; - - /** - * - * - *
    -     * Total number of impressions delivered by AdSense that were eligible to
    -     * measure viewability.
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; - */ - public static final int ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS_VALUE = 70; - - /** - * - * - *
    -     * The number of impressions delivered by AdSense that were sampled, and
    -     * measurable by active view.
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; - */ - public static final int ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_VALUE = 69; - - /** - * - * - *
    -     * The percentage of impressions delivered by AdSense that were measurable
    -     * by active view (out of all AdSense impressions sampled for active view).
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; - */ - public static final int ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE_VALUE = 72; - - /** - * - * - *
    -     * The number of impressions delivered by AdSense viewed on the user's
    -     * screen.
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; - */ - public static final int ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_VALUE = 68; - - /** - * - * - *
    -     * The percentage of impressions delivered by AdSense viewed on the user's
    -     * screen (out of AdSense impressions measurable by active view).
    -     * 
    - * - * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; - */ - public static final int ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE_VALUE = 71; - - /** - * - * - *
    -     * The average effective cost-per-thousand-impressions earned from the ads
    -     * delivered by AdSense through line item dynamic allocation.
    -     * 
    - * - * ADSENSE_AVERAGE_ECPM = 26; - */ - public static final int ADSENSE_AVERAGE_ECPM_VALUE = 26; - - /** - * - * - *
    -     * Number of clicks delivered by AdSense demand channel.
    -     * 
    - * - * ADSENSE_CLICKS = 23; - */ - public static final int ADSENSE_CLICKS_VALUE = 23; - - /** - * - * - *
    -     * The ratio of impressions served by AdSense that resulted in users
    -     * clicking on an ad. The clickthrough rate (CTR) is updated nightly. The
    -     * AdSense CTR is calculated as: (AdSense clicks / AdSense impressions).
    -     * 
    - * - * ADSENSE_CTR = 24; - */ - public static final int ADSENSE_CTR_VALUE = 24; - - /** - * - * - *
    -     * Total impressions delivered by AdSense.
    -     * 
    - * - * ADSENSE_IMPRESSIONS = 22; - */ - public static final int ADSENSE_IMPRESSIONS_VALUE = 22; - - /** - * - * - *
    -     * Ratio of clicks delivered by AdSense through line item dynamic allocation
    -     * in relation to the total clicks delivered.
    -     * 
    - * - * ADSENSE_PERCENT_CLICKS = 28; - */ - public static final int ADSENSE_PERCENT_CLICKS_VALUE = 28; - - /** - * - * - *
    -     * Ratio of impressions delivered by AdSense through line item dynamic
    -     * allocation in relation to the total impressions delivered.
    -     * 
    - * - * ADSENSE_PERCENT_IMPRESSIONS = 27; - */ - public static final int ADSENSE_PERCENT_IMPRESSIONS_VALUE = 27; - - /** - * - * - *
    -     * Ratio of revenue generated by AdSense through line item dynamic
    -     * allocation in relation to the total revenue.
    -     * 
    - * - * ADSENSE_PERCENT_REVENUE = 29; - */ - public static final int ADSENSE_PERCENT_REVENUE_VALUE = 29; - - /** - * - * - *
    -     * Ratio of revenue generated by AdSense through line item dynamic
    -     * allocation in relation to the total revenue (excluding CPD).
    -     * 
    - * - * ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; - */ - public static final int ADSENSE_PERCENT_REVENUE_WITHOUT_CPD_VALUE = 30; - - /** - * - * - *
    -     * The total number of times that an AdSense ad is delivered.
    -     * 
    - * - * ADSENSE_RESPONSES_SERVED = 41; - */ - public static final int ADSENSE_RESPONSES_SERVED_VALUE = 41; - - /** - * - * - *
    -     * Revenue generated from AdSense through line item dynamic allocation,
    -     * calculated in the network's currency and time zone.
    -     * 
    - * - * ADSENSE_REVENUE = 25; - */ - public static final int ADSENSE_REVENUE_VALUE = 25; - - /** - * - * - *
    -     * Active View AdExchange average time in seconds that specific impressions
    -     * are reported as being viewable.
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; - */ - public static final int AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME_VALUE = 79; - - /** - * - * - *
    -     * Total number of impressions delivered by Ad Exchange that were eligible
    -     * to measure viewability.
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; - */ - public static final int AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS_VALUE = 76; - - /** - * - * - *
    -     * The number of impressions delivered by Ad Exchange that were sampled, and
    -     * measurable by active view.
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; - */ - public static final int AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_VALUE = 75; - - /** - * - * - *
    -     * The percentage of impressions delivered by Ad Exchange that were
    -     * measurable by active view (out of all Ad Exchange impressions sampled for
    -     * active view).
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; - */ - public static final int AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE_VALUE = 78; - - /** - * - * - *
    -     * The number of impressions delivered by Ad Exchange viewed on the user's
    -     * screen.
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; - */ - public static final int AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_VALUE = 74; - - /** - * - * - *
    -     * The percentage of impressions delivered by Ad Exchange viewed on the
    -     * user's screen (out of Ad Exchange impressions measurable by active view).
    -     * 
    - * - * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; - */ - public static final int AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE_VALUE = 77; - - /** - * - * - *
    -     * The average effective cost-per-thousand-impressions earned from the ads
    -     * delivered by Ad Exchange through line item dynamic allocation.
    -     * 
    - * - * AD_EXCHANGE_AVERAGE_ECPM = 18; - */ - public static final int AD_EXCHANGE_AVERAGE_ECPM_VALUE = 18; - - /** - * - * - *
    -     * Number of clicks delivered by the Ad Exchange.
    -     * 
    - * - * AD_EXCHANGE_CLICKS = 15; - */ - public static final int AD_EXCHANGE_CLICKS_VALUE = 15; - - /** - * - * - *
    -     * The ratio of impressions served by the Ad Exchange that resulted in users
    -     * clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad
    -     * Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange
    -     * impressions).
    -     * 
    - * - * AD_EXCHANGE_CTR = 16; - */ - public static final int AD_EXCHANGE_CTR_VALUE = 16; - - /** - * - * - *
    -     * Total impressions delivered by the Ad Exchange.
    -     * 
    - * - * AD_EXCHANGE_IMPRESSIONS = 14; - */ - public static final int AD_EXCHANGE_IMPRESSIONS_VALUE = 14; - - /** - * - * - *
    -     * Ratio of clicks delivered by Ad Exchange through line item dynamic
    -     * allocation in relation to the total clicks delivered.
    -     * 
    - * - * AD_EXCHANGE_PERCENT_CLICKS = 20; - */ - public static final int AD_EXCHANGE_PERCENT_CLICKS_VALUE = 20; - - /** - * - * - *
    -     * Ratio of impressions delivered by Ad Exchange through line item dynamic
    -     * allocation in relation to the total impressions delivered.
    -     * 
    - * - * AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; - */ - public static final int AD_EXCHANGE_PERCENT_IMPRESSIONS_VALUE = 19; - - /** - * - * - *
    -     * Ratio of revenue generated by Ad Exchange through line item dynamic
    -     * allocation in relation to the total revenue.
    -     * 
    - * - * AD_EXCHANGE_PERCENT_REVENUE = 21; - */ - public static final int AD_EXCHANGE_PERCENT_REVENUE_VALUE = 21; - - /** - * - * - *
    -     * Ratio of revenue generated by Ad Exchange through line item dynamic
    -     * allocation in relation to the total revenue (excluding CPD).
    -     * 
    - * - * AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; - */ - public static final int AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD_VALUE = 31; - - /** - * - * - *
    -     * The total number of times that an Ad Exchange ad is delivered.
    -     * 
    - * - * AD_EXCHANGE_RESPONSES_SERVED = 42; - */ - public static final int AD_EXCHANGE_RESPONSES_SERVED_VALUE = 42; - - /** - * - * - *
    -     * Revenue generated from the Ad Exchange through line item dynamic
    -     * allocation, calculated in your network's currency and time zone.
    -     * 
    - * - * AD_EXCHANGE_REVENUE = 17; - */ - public static final int AD_EXCHANGE_REVENUE_VALUE = 17; - - /** - * - * - *
    -     * The total number of times that an ad request is sent to the ad server
    -     * including dynamic allocation.
    -     * 
    - * - * AD_REQUESTS = 38; - */ - public static final int AD_REQUESTS_VALUE = 38; - - /** - * - * - *
    -     * Active View ad server average time in seconds that specific impressions
    -     * are reported as being viewable.
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; - */ - public static final int AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME_VALUE = 67; - - /** - * - * - *
    -     * Total number of impressions delivered by the ad server that were eligible
    -     * to measure viewability.
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; - */ - public static final int AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS_VALUE = 64; - - /** - * - * - *
    -     * The number of impressions delivered by the ad server that were sampled,
    -     * and measurable by active view.
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; - */ - public static final int AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_VALUE = 63; - - /** - * - * - *
    -     * The percentage of impressions delivered by the ad server that were
    -     * measurable by active view (out of all the ad server impressions sampled
    -     * for active view).
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; - */ - public static final int AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE_VALUE = 66; - - /** - * - * - *
    -     * The number of impressions delivered by the ad server viewed on the user's
    -     * screen.
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; - */ - public static final int AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_VALUE = 62; - - /** - * - * - *
    -     * The percentage of impressions delivered by the ad server viewed on the
    -     * user's screen (out of the ad server impressions measurable by active
    -     * view).
    -     * 
    - * - * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; - */ - public static final int AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE_VALUE = 65; - - /** - * - * - *
    -     * Average effective cost-per-thousand-impressions earned from the ads
    -     * delivered by the Google Ad Manager server.
    -     * 
    - * - * AD_SERVER_AVERAGE_ECPM = 34; - */ - public static final int AD_SERVER_AVERAGE_ECPM_VALUE = 34; - - /** - * - * - *
    -     * Average effective cost-per-thousand-impressions earned from the ads
    -     * delivered by the Google Ad Manager server, excluding CPD value.
    -     * 
    - * - * AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; - */ - public static final int AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD_VALUE = 10; - - /** - * - * - *
    -     * Total raw impressions counted when creative begins to render or the
    -     * first frame of a video is shown.
    -     * 
    - * - * AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; - */ - public static final int AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS_VALUE = 262; - - /** - * - * - *
    -     * Total clicks served by the Google Ad Manager server. It usually takes
    -     * about 30 minutes for new clicks to be recorded and added to the total
    -     * displayed in reporting.
    -     * 
    - * - * AD_SERVER_CLICKS = 7; - */ - public static final int AD_SERVER_CLICKS_VALUE = 7; - - /** - * - * - *
    -     * CPD revenue earned, calculated in your network's currency, for
    -     * the ads delivered by the Google Ad Manager server. Sum of all booked
    -     * revenue.
    -     * 
    - * - * AD_SERVER_CPD_REVENUE = 32; - */ - public static final int AD_SERVER_CPD_REVENUE_VALUE = 32; - - /** - * - * - *
    -     * Ratio of impressions served by the Google Ad Manager server that resulted
    -     * in users clicking on an ad. The clickthrough rate (CTR) is updated
    -     * nightly. The ad server CTR is calculated as: (Ad server clicks / Ad
    -     * server impressions).
    -     * 
    - * - * AD_SERVER_CTR = 8; - */ - public static final int AD_SERVER_CTR_VALUE = 8; - - /** - * - * - *
    -     * Total impressions delivered by the Ad Server.
    -     * 
    - * - * AD_SERVER_IMPRESSIONS = 6; - */ - public static final int AD_SERVER_IMPRESSIONS_VALUE = 6; - - /** - * - * - *
    -     * Ratio of clicks delivered by the Google Ad Manager server in relation to
    -     * the total clicks delivered.
    -     * 
    - * - * AD_SERVER_PERCENT_CLICKS = 12; - */ - public static final int AD_SERVER_PERCENT_CLICKS_VALUE = 12; - - /** - * - * - *
    -     * Ratio of impressions delivered by the Google Ad Manager server in
    -     * relation to the total impressions delivered.
    -     * 
    - * - * AD_SERVER_PERCENT_IMPRESSIONS = 11; - */ - public static final int AD_SERVER_PERCENT_IMPRESSIONS_VALUE = 11; - - /** - * - * - *
    -     * Ratio of revenue generated by the Google Ad Manager server in relation
    -     * to the total revenue.
    -     * 
    - * - * AD_SERVER_PERCENT_REVENUE = 35; - */ - public static final int AD_SERVER_PERCENT_REVENUE_VALUE = 35; - - /** - * - * - *
    -     * Ratio of revenue generated by the Google Ad Manager server (excluding
    -     * CPD) in relation to the total revenue.
    -     * 
    - * - * AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; - */ - public static final int AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD_VALUE = 13; - - /** - * - * - *
    -     * The total number of times that an ad is served by the ad server.
    -     * 
    - * - * AD_SERVER_RESPONSES_SERVED = 40; - */ - public static final int AD_SERVER_RESPONSES_SERVED_VALUE = 40; - - /** - * - * - *
    -     * All CPM, CPC, and CPD revenue earned, calculated in your network's
    -     * currency, for the ads delivered by the Google Ad Manager server.
    -     * Sum of all booked revenue.
    -     * 
    - * - * AD_SERVER_REVENUE = 33; - */ - public static final int AD_SERVER_REVENUE_VALUE = 33; - - /** - * - * - *
    -     * Revenue (excluding CPD) earned, calculated in your network's currency,
    -     * for the ads delivered by the Google Ad Manager server. Sum of all booked
    -     * revenue.
    -     * 
    - * - * AD_SERVER_REVENUE_WITHOUT_CPD = 9; - */ - public static final int AD_SERVER_REVENUE_WITHOUT_CPD_VALUE = 9; - - /** - * - * - *
    -     * The number of tracked ads delivered by the ad server.
    -     * 
    - * - * AD_SERVER_TRACKED_ADS = 264; - */ - public static final int AD_SERVER_TRACKED_ADS_VALUE = 264; - - /** - * - * - *
    -     * Total raw impressions counted when creative begins to render or the
    -     * first frame of a video is shown, before invalid traffic filtrations by
    -     * Ad Server.
    -     * 
    - * - * AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; - */ - public static final int AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS_VALUE = 261; - - /** - * - * - *
    -     * Total clicks delivered by the Ad Server before spam filtering.
    -     * 
    - * - * AD_SERVER_UNFILTERED_CLICKS = 259; - */ - public static final int AD_SERVER_UNFILTERED_CLICKS_VALUE = 259; - - /** - * - * - *
    -     * Total impressions delivered by the Ad Server before spam filtering.
    -     * 
    - * - * AD_SERVER_UNFILTERED_IMPRESSIONS = 260; - */ - public static final int AD_SERVER_UNFILTERED_IMPRESSIONS_VALUE = 260; - - /** - * - * - *
    -     * The number of tracked ads delivered by the ad server before invalid
    -     * traffic filtrations.
    -     * 
    - * - * AD_SERVER_UNFILTERED_TRACKED_ADS = 263; - */ - public static final int AD_SERVER_UNFILTERED_TRACKED_ADS_VALUE = 263; - - /** - * - * - *
    -     * eCPM averaged across the Google Ad Manager server, AdSense,
    -     * and Ad Exchange.
    -     * 
    - * - * AVERAGE_ECPM = 37; - */ - public static final int AVERAGE_ECPM_VALUE = 37; - - /** - * - * - *
    -     * eCPM averaged across the Google Ad Manager server (excluding CPD),
    -     * AdSense, and Ad Exchange.
    -     * 
    - * - * AVERAGE_ECPM_WITHOUT_CPD = 5; - */ - public static final int AVERAGE_ECPM_WITHOUT_CPD_VALUE = 5; - - /** - * - * - *
    -     * The number of times a user clicked on an ad.
    -     * 
    - * - * CLICKS = 2; - */ - public static final int CLICKS_VALUE = 2; - - /** - * - * - *
    -     * The total number of times that the code for an ad is served by the ad
    -     * server including dynamic allocation.
    -     * 
    - * - * CODE_SERVED_COUNT = 44; - */ - public static final int CODE_SERVED_COUNT_VALUE = 44; - - /** - * - * - *
    -     * For standard ads, your ad clickthrough rate (CTR) is the number of ad
    -     * clicks divided by the number of individual ad impressions expressed as a
    -     * fraction. Ad CTR = Clicks / Ad impressions.
    -     * 
    - * - * CTR = 3; - */ - public static final int CTR_VALUE = 3; - - /** - * - * - *
    -     * The number of coviewed impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; - */ - public static final int GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS_VALUE = 129; - - /** - * - * - *
    -     * The number of auction impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; - */ - public static final int GOOGLE_SOLD_AUCTION_IMPRESSIONS_VALUE = 128; - - /** - * - * - *
    -     * The number of coviewed impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; - */ - public static final int GOOGLE_SOLD_COVIEWED_IMPRESSIONS_VALUE = 131; - - /** - * - * - *
    -     * The number of impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_IMPRESSIONS = 130; - */ - public static final int GOOGLE_SOLD_IMPRESSIONS_VALUE = 130; - - /** - * - * - *
    -     * The number of coviewed impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; - */ - public static final int GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS_VALUE = 127; - - /** - * - * - *
    -     * The number of reservation impressions sold by Google in partner sales.
    -     * 
    - * - * GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; - */ - public static final int GOOGLE_SOLD_RESERVATION_IMPRESSIONS_VALUE = 126; - - /** - * - * - *
    -     * Total impressions from the Google Ad Manager server, AdSense,
    -     * Ad Exchange, and yield group partners.
    -     * 
    - * - * IMPRESSIONS = 1; - */ - public static final int IMPRESSIONS_VALUE = 1; - - /** - * - * - *
    -     * The number of filled pod requests (filled by partner or Google) in
    -     * partner sales.
    -     * 
    - * - * PARTNER_SALES_FILLED_POD_REQUESTS = 135; - */ - public static final int PARTNER_SALES_FILLED_POD_REQUESTS_VALUE = 135; - - /** - * - * - *
    -     * The percent of filled requests to total ad requests in
    -     * partner sales.
    -     * 
    - * - * PARTNER_SALES_FILL_RATE = 136; - */ - public static final int PARTNER_SALES_FILL_RATE_VALUE = 136; - - /** - * - * - *
    -     * The percent of partner filled requests to total ad requests
    -     * in partner sales.
    -     * 
    - * - * PARTNER_SALES_PARTNER_MATCH_RATE = 137; - */ - public static final int PARTNER_SALES_PARTNER_MATCH_RATE_VALUE = 137; - - /** - * - * - *
    -     * The number of queries eligible for partner sales.
    -     * 
    - * - * PARTNER_SALES_QUERIES = 132; - */ - public static final int PARTNER_SALES_QUERIES_VALUE = 132; - - /** - * - * - *
    -     * The number of partner unfilled impressions in partner sales.
    -     * If a pod request is not filled by partner but filled by Google, this
    -     * metric will still count 1.
    -     * 
    - * - * PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; - */ - public static final int PARTNER_SALES_UNFILLED_IMPRESSIONS_VALUE = 133; - - /** - * - * - *
    -     * The number of partner unmatched queries in partner sales.
    -     * If an ad request is not filled by partner but filled by Google, this
    -     * metric will still count 1.
    -     * 
    - * - * PARTNER_SALES_UNMATCHED_QUERIES = 134; - */ - public static final int PARTNER_SALES_UNMATCHED_QUERIES_VALUE = 134; - - /** - * - * - *
    -     * The number of code served sold by partner in partner sales.
    -     * 
    - * - * PARTNER_SOLD_CODE_SERVED = 125; - */ - public static final int PARTNER_SOLD_CODE_SERVED_VALUE = 125; - - /** - * - * - *
    -     * The number of coviewed impressions sold by partner in partner sales.
    -     * 
    - * - * PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; - */ - public static final int PARTNER_SOLD_COVIEWED_IMPRESSIONS_VALUE = 124; - - /** - * - * - *
    -     * The number of impressions sold by partner in partner sales.
    -     * 
    - * - * PARTNER_SOLD_IMPRESSIONS = 123; - */ - public static final int PARTNER_SOLD_IMPRESSIONS_VALUE = 123; - - /** - * - * - *
    -     * The total number of ad requests eligible for programmatic inventory,
    -     * including Programmatic Guaranteed, Preferred Deals, backfill, and open
    -     * auction.
    -     * 
    - * - * PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; - */ - public static final int PROGRAMMATIC_ELIGIBLE_AD_REQUESTS_VALUE = 177; - - /** - * - * - *
    -     * The number of programmatic responses served divided by the number of
    -     * programmatic eligible ad requests. Includes Ad Exchange, Open Bidding,
    -     * and Preferred Deals.
    -     * 
    - * - * PROGRAMMATIC_MATCH_RATE = 178; - */ - public static final int PROGRAMMATIC_MATCH_RATE_VALUE = 178; - - /** - * - * - *
    -     * Total number of ad responses served from programmatic demand sources.
    -     * Includes Ad Exchange, Open Bidding, and Preferred Deals.
    -     *
    -     * Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open
    -     * Bidding ad requests.
    -     * 
    - * - * PROGRAMMATIC_RESPONSES_SERVED = 176; - */ - public static final int PROGRAMMATIC_RESPONSES_SERVED_VALUE = 176; - - /** - * - * - *
    -     * The total number of times that an ad is served by the ad server including
    -     * dynamic allocation.
    -     * 
    - * - * RESPONSES_SERVED = 39; - */ - public static final int RESPONSES_SERVED_VALUE = 39; - - /** - * - * - *
    -     * Total amount of CPM, CPC, and CPD revenue based on the number of units
    -     * served by the Google Ad Manager server, AdSense, Ad Exchange, and
    -     * third-party Mediation networks.
    -     * 
    - * - * REVENUE = 36; - */ - public static final int REVENUE_VALUE = 36; - - /** - * - * - *
    -     * Total amount of revenue (excluding CPD) based on the number of units
    -     * served by the Google Ad Manager server, AdSense, Ad Exchange, and
    -     * third-party Mediation networks.
    -     * 
    - * - * REVENUE_WITHOUT_CPD = 4; - */ - public static final int REVENUE_WITHOUT_CPD_VALUE = 4; - - /** - * - * - *
    -     * The average latency in milliseconds across all server-side unwrapping
    -     * callout requests. There is no special handling for error or timeout
    -     * responses. This reflects the entire chain of a parent callout request,
    -     * which may result in multiple child callouts. This metric is not sliced by
    -     * child callout dimensions.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; - */ - public static final int SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS_VALUE = 434; - - /** - * - * - *
    -     * The total number of server-side unwrapping callout requests.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; - */ - public static final int SERVER_SIDE_UNWRAPPING_CALLOUTS_VALUE = 435; - - /** - * - * - *
    -     * The total number of server-side unwrapping callouts that returned an
    -     * empty response. Timeouts are not considered empty responses.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; - */ - public static final int SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES_VALUE = 436; - - /** - * - * - *
    -     * The total number of server-side unwrapping callouts that returned an
    -     * error response. Timeouts and empty responses are not considered errors.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; - */ - public static final int SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES_VALUE = 437; - - /** - * - * - *
    -     * The total number of successfully unwrapped, non-empty server-side
    -     * wrapping callouts. Successful unwrapping does not indicate that the
    -     * resulting creative was served.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; - */ - public static final int SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES_VALUE = 438; - - /** - * - * - *
    -     * The total number of server-side unwrapping callouts that timed out before
    -     * returning a response.
    -     * 
    - * - * SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; - */ - public static final int SERVER_SIDE_UNWRAPPING_TIMEOUTS_VALUE = 439; - - /** - * - * - *
    -     * The total number of missed impressions due to the ad servers' inability
    -     * to find ads to serve including dynamic allocation.
    -     * 
    - * - * UNFILLED_IMPRESSIONS = 45; - */ - public static final int UNFILLED_IMPRESSIONS_VALUE = 45; - - /** - * - * - *
    -     * The total number of times that an ad is not returned by the ad server.
    -     * 
    - * - * UNMATCHED_AD_REQUESTS = 43; - */ - public static final int UNMATCHED_AD_REQUESTS_VALUE = 43; - - /** - * - * - *
    -     * Number of times an Offerwall message was shown to users.
    -     * 
    - * - * USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; - */ - public static final int USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN_VALUE = 121; - - /** - * - * - *
    -     * The number of messages where the user gained an entitlement.
    -     * 
    - * - * USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; - */ - public static final int USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS_VALUE = 122; - - /** - * - * - *
    -     * The number of user interactions with a video, on average, such as pause,
    -     * full screen, mute, etc.
    -     * 
    - * - * VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; - */ - public static final int VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE_VALUE = 92; - - /** - * - * - *
    -     * The number of times a user collapses a video, either to its original size
    -     * or to a different size.
    -     * 
    - * - * VIDEO_INTERACTION_COLLAPSES = 93; - */ - public static final int VIDEO_INTERACTION_COLLAPSES_VALUE = 93; - - /** - * - * - *
    -     * The number of times a user expands a video.
    -     * 
    - * - * VIDEO_INTERACTION_EXPANDS = 95; - */ - public static final int VIDEO_INTERACTION_EXPANDS_VALUE = 95; - - /** - * - * - *
    -     * The number of times ad clip played in full screen mode.
    -     * 
    - * - * VIDEO_INTERACTION_FULL_SCREENS = 96; - */ - public static final int VIDEO_INTERACTION_FULL_SCREENS_VALUE = 96; - - /** - * - * - *
    -     * The number of times video player was in mute state during play of ad
    -     * clip.
    -     * 
    - * - * VIDEO_INTERACTION_MUTES = 97; - */ - public static final int VIDEO_INTERACTION_MUTES_VALUE = 97; - - /** - * - * - *
    -     * The number of times user paused ad clip.
    -     * 
    - * - * VIDEO_INTERACTION_PAUSES = 98; - */ - public static final int VIDEO_INTERACTION_PAUSES_VALUE = 98; - - /** - * - * - *
    -     * The number of times the user unpaused the video.
    -     * 
    - * - * VIDEO_INTERACTION_RESUMES = 99; - */ - public static final int VIDEO_INTERACTION_RESUMES_VALUE = 99; - - /** - * - * - *
    -     * The number of times a user rewinds the video.
    -     * 
    - * - * VIDEO_INTERACTION_REWINDS = 100; - */ - public static final int VIDEO_INTERACTION_REWINDS_VALUE = 100; - - /** - * - * - *
    -     * The number of times a user unmutes the video.
    -     * 
    - * - * VIDEO_INTERACTION_UNMUTES = 101; - */ - public static final int VIDEO_INTERACTION_UNMUTES_VALUE = 101; - - /** - * - * - *
    -     * The number of times a skippable video is skipped.
    -     * 
    - * - * VIDEO_INTERACTION_VIDEO_SKIPS = 102; - */ - public static final int VIDEO_INTERACTION_VIDEO_SKIPS_VALUE = 102; - - /** - * - * - *
    -     * The number of total creative serves in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_CREATIVE_SERVES = 139; - */ - public static final int VIDEO_REAL_TIME_CREATIVE_SERVES_VALUE = 139; - - /** - * - * - *
    -     * The number of errors of type 100 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_100_COUNT = 143; - */ - public static final int VIDEO_REAL_TIME_ERROR_100_COUNT_VALUE = 143; - - /** - * - * - *
    -     * The number of errors of type 101 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_101_COUNT = 144; - */ - public static final int VIDEO_REAL_TIME_ERROR_101_COUNT_VALUE = 144; - - /** - * - * - *
    -     * The number of errors of type 102 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_102_COUNT = 145; - */ - public static final int VIDEO_REAL_TIME_ERROR_102_COUNT_VALUE = 145; - - /** - * - * - *
    -     * The number of errors of type 200 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_200_COUNT = 146; - */ - public static final int VIDEO_REAL_TIME_ERROR_200_COUNT_VALUE = 146; - - /** - * - * - *
    -     * The number of errors of type 201 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_201_COUNT = 147; - */ - public static final int VIDEO_REAL_TIME_ERROR_201_COUNT_VALUE = 147; - - /** - * - * - *
    -     * The number of errors of type 202 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_202_COUNT = 148; - */ - public static final int VIDEO_REAL_TIME_ERROR_202_COUNT_VALUE = 148; - - /** - * - * - *
    -     * The number of errors of type 203 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_203_COUNT = 149; - */ - public static final int VIDEO_REAL_TIME_ERROR_203_COUNT_VALUE = 149; - - /** - * - * - *
    -     * The number of errors of type 300 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_300_COUNT = 150; - */ - public static final int VIDEO_REAL_TIME_ERROR_300_COUNT_VALUE = 150; - - /** - * - * - *
    -     * The number of errors of type 301 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_301_COUNT = 151; - */ - public static final int VIDEO_REAL_TIME_ERROR_301_COUNT_VALUE = 151; - - /** - * - * - *
    -     * The number of errors of type 302 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_302_COUNT = 152; - */ - public static final int VIDEO_REAL_TIME_ERROR_302_COUNT_VALUE = 152; - - /** - * - * - *
    -     * The number of errors of type 303 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_303_COUNT = 153; - */ - public static final int VIDEO_REAL_TIME_ERROR_303_COUNT_VALUE = 153; - - /** - * - * - *
    -     * The number of errors of type 400 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_400_COUNT = 154; - */ - public static final int VIDEO_REAL_TIME_ERROR_400_COUNT_VALUE = 154; - - /** - * - * - *
    -     * The number of errors of type 401 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_401_COUNT = 155; - */ - public static final int VIDEO_REAL_TIME_ERROR_401_COUNT_VALUE = 155; - - /** - * - * - *
    -     * The number of errors of type 402 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_402_COUNT = 156; - */ - public static final int VIDEO_REAL_TIME_ERROR_402_COUNT_VALUE = 156; - - /** - * - * - *
    -     * The number of errors of type 403 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_403_COUNT = 157; - */ - public static final int VIDEO_REAL_TIME_ERROR_403_COUNT_VALUE = 157; - - /** - * - * - *
    -     * The number of errors of type 405 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_405_COUNT = 158; - */ - public static final int VIDEO_REAL_TIME_ERROR_405_COUNT_VALUE = 158; - - /** - * - * - *
    -     * The number of errors of type 406 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_406_COUNT = 159; - */ - public static final int VIDEO_REAL_TIME_ERROR_406_COUNT_VALUE = 159; - - /** - * - * - *
    -     * The number of errors of type 407 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_407_COUNT = 160; - */ - public static final int VIDEO_REAL_TIME_ERROR_407_COUNT_VALUE = 160; - - /** - * - * - *
    -     * The number of errors of type 408 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_408_COUNT = 161; - */ - public static final int VIDEO_REAL_TIME_ERROR_408_COUNT_VALUE = 161; - - /** - * - * - *
    -     * The number of errors of type 409 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_409_COUNT = 162; - */ - public static final int VIDEO_REAL_TIME_ERROR_409_COUNT_VALUE = 162; - - /** - * - * - *
    -     * The number of errors of type 410 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_410_COUNT = 163; - */ - public static final int VIDEO_REAL_TIME_ERROR_410_COUNT_VALUE = 163; - - /** - * - * - *
    -     * The number of errors of type 500 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_500_COUNT = 164; - */ - public static final int VIDEO_REAL_TIME_ERROR_500_COUNT_VALUE = 164; - - /** - * - * - *
    -     * The number of errors of type 501 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_501_COUNT = 165; - */ - public static final int VIDEO_REAL_TIME_ERROR_501_COUNT_VALUE = 165; - - /** - * - * - *
    -     * The number of errors of type 502 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_502_COUNT = 166; - */ - public static final int VIDEO_REAL_TIME_ERROR_502_COUNT_VALUE = 166; - - /** - * - * - *
    -     * The number of errors of type 503 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_503_COUNT = 167; - */ - public static final int VIDEO_REAL_TIME_ERROR_503_COUNT_VALUE = 167; - - /** - * - * - *
    -     * The number of errors of type 600 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_600_COUNT = 168; - */ - public static final int VIDEO_REAL_TIME_ERROR_600_COUNT_VALUE = 168; - - /** - * - * - *
    -     * The number of errors of type 601 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_601_COUNT = 169; - */ - public static final int VIDEO_REAL_TIME_ERROR_601_COUNT_VALUE = 169; - - /** - * - * - *
    -     * The number of errors of type 602 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_602_COUNT = 170; - */ - public static final int VIDEO_REAL_TIME_ERROR_602_COUNT_VALUE = 170; - - /** - * - * - *
    -     * The number of errors of type 603 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_603_COUNT = 171; - */ - public static final int VIDEO_REAL_TIME_ERROR_603_COUNT_VALUE = 171; - - /** - * - * - *
    -     * The number of errors of type 604 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_604_COUNT = 172; - */ - public static final int VIDEO_REAL_TIME_ERROR_604_COUNT_VALUE = 172; - - /** - * - * - *
    -     * The number of errors of type 900 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_900_COUNT = 173; - */ - public static final int VIDEO_REAL_TIME_ERROR_900_COUNT_VALUE = 173; - - /** - * - * - *
    -     * The number of errors of type 901 in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_ERROR_901_COUNT = 174; - */ - public static final int VIDEO_REAL_TIME_ERROR_901_COUNT_VALUE = 174; - - /** - * - * - *
    -     * The number of total impressions in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_IMPRESSIONS = 138; - */ - public static final int VIDEO_REAL_TIME_IMPRESSIONS_VALUE = 138; - - /** - * - * - *
    -     * The number of matched queries in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_MATCHED_QUERIES = 140; - */ - public static final int VIDEO_REAL_TIME_MATCHED_QUERIES_VALUE = 140; - - /** - * - * - *
    -     * The number of all errors in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; - */ - public static final int VIDEO_REAL_TIME_TOTAL_ERROR_COUNT_VALUE = 175; - - /** - * - * - *
    -     * The number of total queries in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_TOTAL_QUERIES = 142; - */ - public static final int VIDEO_REAL_TIME_TOTAL_QUERIES_VALUE = 142; - - /** - * - * - *
    -     * The number of unmatched queries in video realtime reporting.
    -     * 
    - * - * VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; - */ - public static final int VIDEO_REAL_TIME_UNMATCHED_QUERIES_VALUE = 141; - - /** - * - * - *
    -     * Number of times that the publisher specified a video ad played
    -     * automatically.
    -     * 
    - * - * VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; - */ - public static final int VIDEO_VIEWERSHIP_AUTO_PLAYS_VALUE = 103; - - /** - * - * - *
    -     * Average percentage of the video watched by users.
    -     * 
    - * - * VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; - */ - public static final int VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE_VALUE = 104; - - /** - * - * - *
    -     * Average time(seconds) users watched the video.
    -     * 
    - * - * VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; - */ - public static final int VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME_VALUE = 105; - - /** - * - * - *
    -     * Number of times that the publisher specified a video ad was clicked to
    -     * play.
    -     * 
    - * - * VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; - */ - public static final int VIDEO_VIEWERSHIP_CLICK_TO_PLAYS_VALUE = 106; - - /** - * - * - *
    -     * The number of times the video played to completion.
    -     * 
    - * - * VIDEO_VIEWERSHIP_COMPLETES = 107; - */ - public static final int VIDEO_VIEWERSHIP_COMPLETES_VALUE = 107; - - /** - * - * - *
    -     * Percentage of times the video played to the end.
    -     * 
    - * - * VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; - */ - public static final int VIDEO_VIEWERSHIP_COMPLETION_RATE_VALUE = 108; - - /** - * - * - *
    -     * The number of engaged views: ad is viewed to completion or for 30s,
    -     * whichever comes first.
    -     * 
    - * - * VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; - */ - public static final int VIDEO_VIEWERSHIP_ENGAGED_VIEWS_VALUE = 109; - - /** - * - * - *
    -     * The number of times the video played to 25% of its length.
    -     * 
    - * - * VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; - */ - public static final int VIDEO_VIEWERSHIP_FIRST_QUARTILES_VALUE = 110; - - /** - * - * - *
    -     * The number of times the video reached its midpoint during play.
    -     * 
    - * - * VIDEO_VIEWERSHIP_MIDPOINTS = 111; - */ - public static final int VIDEO_VIEWERSHIP_MIDPOINTS_VALUE = 111; - - /** - * - * - *
    -     * The number of times a skip button is shown in video.
    -     * 
    - * - * VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; - */ - public static final int VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN_VALUE = 112; - - /** - * - * - *
    -     * The number of impressions where the video was played.
    -     * 
    - * - * VIDEO_VIEWERSHIP_STARTS = 113; - */ - public static final int VIDEO_VIEWERSHIP_STARTS_VALUE = 113; - - /** - * - * - *
    -     * The number of times the video played to 75% of its length.
    -     * 
    - * - * VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; - */ - public static final int VIDEO_VIEWERSHIP_THIRD_QUARTILES_VALUE = 114; - - /** - * - * - *
    -     * The number of times an error occurred, such as a VAST redirect error, a
    -     * video playback error, or an invalid response error.
    -     * 
    - * - * VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; - */ - public static final int VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT_VALUE = 115; - - /** - * - * - *
    -     * The percentage of video error count.
    -     * 
    - * - * VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; - */ - public static final int VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE_VALUE = 94; - - /** - * - * - *
    -     * Duration of the video creative.
    -     * 
    - * - * VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; - */ - public static final int VIDEO_VIEWERSHIP_VIDEO_LENGTH_VALUE = 116; - - /** - * - * - *
    -     * View-through rate represented as a percentage.
    -     * 
    - * - * VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; - */ - public static final int VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE_VALUE = 117; - - /** - * - * - *
    -     * Number of winning bids received from Open Bidding buyers, even when the
    -     * winning bid is placed at the end of a mediation for mobile apps chain.
    -     * 
    - * - * YIELD_GROUP_AUCTIONS_WON = 80; - */ - public static final int YIELD_GROUP_AUCTIONS_WON_VALUE = 80; - - /** - * - * - *
    -     * Number of bids received from Open Bidding buyers, regardless of whether
    -     * the returned bid competes in an auction.
    -     * 
    - * - * YIELD_GROUP_BIDS = 81; - */ - public static final int YIELD_GROUP_BIDS_VALUE = 81; - - /** - * - * - *
    -     * Number of bids received from Open Bidding buyers that competed in
    -     * the auction.
    -     * 
    - * - * YIELD_GROUP_BIDS_IN_AUCTION = 82; - */ - public static final int YIELD_GROUP_BIDS_IN_AUCTION_VALUE = 82; - - /** - * - * - *
    -     * Number of times a yield partner is asked to return bid to fill
    -     * a yield group request.
    -     * 
    - * - * YIELD_GROUP_CALLOUTS = 83; - */ - public static final int YIELD_GROUP_CALLOUTS_VALUE = 83; - - /** - * - * - *
    -     * The estimated net rate for yield groups or individual
    -     * yield group partners.
    -     * 
    - * - * YIELD_GROUP_ESTIMATED_CPM = 88; - */ - public static final int YIELD_GROUP_ESTIMATED_CPM_VALUE = 88; - - /** - * - * - *
    -     * Total net revenue earned by a yield group, based upon the yield group
    -     * estimated CPM and yield group impressions recorded.
    -     * 
    - * - * YIELD_GROUP_ESTIMATED_REVENUE = 87; - */ - public static final int YIELD_GROUP_ESTIMATED_REVENUE_VALUE = 87; - - /** - * - * - *
    -     * Number of matched yield group requests where a yield partner delivered
    -     * their ad to publisher inventory.
    -     * 
    - * - * YIELD_GROUP_IMPRESSIONS = 85; - */ - public static final int YIELD_GROUP_IMPRESSIONS_VALUE = 85; - - /** - * - * - *
    -     * Yield group Mediation fill rate indicating how often a network
    -     * fills an ad request.
    -     * 
    - * - * YIELD_GROUP_MEDIATION_FILL_RATE = 89; - */ - public static final int YIELD_GROUP_MEDIATION_FILL_RATE_VALUE = 89; - - /** - * - * - *
    -     * Total requests where a Mediation chain was served.
    -     * 
    - * - * YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; - */ - public static final int YIELD_GROUP_MEDIATION_MATCHED_QUERIES_VALUE = 86; - - /** - * - * - *
    -     * The number of mediation chain passback across all channels.
    -     * 
    - * - * YIELD_GROUP_MEDIATION_PASSBACKS = 118; - */ - public static final int YIELD_GROUP_MEDIATION_PASSBACKS_VALUE = 118; - - /** - * - * - *
    -     * Revenue per thousand impressions based on data collected by Ad Manager
    -     * from third-party ad network reports.
    -     * 
    - * - * YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; - */ - public static final int YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM_VALUE = 90; - - /** - * - * - *
    -     * Number of times a yield group buyer successfully returned a bid in
    -     * response to a yield group callout.
    -     * 
    - * - * YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; - */ - public static final int YIELD_GROUP_SUCCESSFUL_RESPONSES_VALUE = 84; - - 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 Metric 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 Metric forNumber(int value) { - switch (value) { - case 0: - return METRIC_UNSPECIFIED; - case 61: - return ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME; - case 58: - return ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS; - case 57: - return ACTIVE_VIEW_MEASURABLE_IMPRESSIONS; - case 60: - return ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE; - case 56: - return ACTIVE_VIEW_VIEWABLE_IMPRESSIONS; - case 59: - return ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE; - case 73: - return ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME; - case 70: - return ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS; - case 69: - return ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS; - case 72: - return ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE; - case 68: - return ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS; - case 71: - return ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE; - case 26: - return ADSENSE_AVERAGE_ECPM; - case 23: - return ADSENSE_CLICKS; - case 24: - return ADSENSE_CTR; - case 22: - return ADSENSE_IMPRESSIONS; - case 28: - return ADSENSE_PERCENT_CLICKS; - case 27: - return ADSENSE_PERCENT_IMPRESSIONS; - case 29: - return ADSENSE_PERCENT_REVENUE; - case 30: - return ADSENSE_PERCENT_REVENUE_WITHOUT_CPD; - case 41: - return ADSENSE_RESPONSES_SERVED; - case 25: - return ADSENSE_REVENUE; - case 79: - return AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME; - case 76: - return AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS; - case 75: - return AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS; - case 78: - return AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE; - case 74: - return AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS; - case 77: - return AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE; - case 18: - return AD_EXCHANGE_AVERAGE_ECPM; - case 15: - return AD_EXCHANGE_CLICKS; - case 16: - return AD_EXCHANGE_CTR; - case 14: - return AD_EXCHANGE_IMPRESSIONS; - case 20: - return AD_EXCHANGE_PERCENT_CLICKS; - case 19: - return AD_EXCHANGE_PERCENT_IMPRESSIONS; - case 21: - return AD_EXCHANGE_PERCENT_REVENUE; - case 31: - return AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD; - case 42: - return AD_EXCHANGE_RESPONSES_SERVED; - case 17: - return AD_EXCHANGE_REVENUE; - case 38: - return AD_REQUESTS; - case 67: - return AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME; - case 64: - return AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS; - case 63: - return AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS; - case 66: - return AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE; - case 62: - return AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS; - case 65: - return AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE; - case 34: - return AD_SERVER_AVERAGE_ECPM; - case 10: - return AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD; - case 262: - return AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS; - case 7: - return AD_SERVER_CLICKS; - case 32: - return AD_SERVER_CPD_REVENUE; - case 8: - return AD_SERVER_CTR; - case 6: - return AD_SERVER_IMPRESSIONS; - case 12: - return AD_SERVER_PERCENT_CLICKS; - case 11: - return AD_SERVER_PERCENT_IMPRESSIONS; - case 35: - return AD_SERVER_PERCENT_REVENUE; - case 13: - return AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD; - case 40: - return AD_SERVER_RESPONSES_SERVED; - case 33: - return AD_SERVER_REVENUE; - case 9: - return AD_SERVER_REVENUE_WITHOUT_CPD; - case 264: - return AD_SERVER_TRACKED_ADS; - case 261: - return AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS; - case 259: - return AD_SERVER_UNFILTERED_CLICKS; - case 260: - return AD_SERVER_UNFILTERED_IMPRESSIONS; - case 263: - return AD_SERVER_UNFILTERED_TRACKED_ADS; - case 37: - return AVERAGE_ECPM; - case 5: - return AVERAGE_ECPM_WITHOUT_CPD; - case 2: - return CLICKS; - case 44: - return CODE_SERVED_COUNT; - case 3: - return CTR; - case 129: - return GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS; - case 128: - return GOOGLE_SOLD_AUCTION_IMPRESSIONS; - case 131: - return GOOGLE_SOLD_COVIEWED_IMPRESSIONS; - case 130: - return GOOGLE_SOLD_IMPRESSIONS; - case 127: - return GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS; - case 126: - return GOOGLE_SOLD_RESERVATION_IMPRESSIONS; - case 1: - return IMPRESSIONS; - case 135: - return PARTNER_SALES_FILLED_POD_REQUESTS; - case 136: - return PARTNER_SALES_FILL_RATE; - case 137: - return PARTNER_SALES_PARTNER_MATCH_RATE; - case 132: - return PARTNER_SALES_QUERIES; - case 133: - return PARTNER_SALES_UNFILLED_IMPRESSIONS; - case 134: - return PARTNER_SALES_UNMATCHED_QUERIES; - case 125: - return PARTNER_SOLD_CODE_SERVED; - case 124: - return PARTNER_SOLD_COVIEWED_IMPRESSIONS; - case 123: - return PARTNER_SOLD_IMPRESSIONS; - case 177: - return PROGRAMMATIC_ELIGIBLE_AD_REQUESTS; - case 178: - return PROGRAMMATIC_MATCH_RATE; - case 176: - return PROGRAMMATIC_RESPONSES_SERVED; - case 39: - return RESPONSES_SERVED; - case 36: - return REVENUE; - case 4: - return REVENUE_WITHOUT_CPD; - case 434: - return SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS; - case 435: - return SERVER_SIDE_UNWRAPPING_CALLOUTS; - case 436: - return SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES; - case 437: - return SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES; - case 438: - return SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES; - case 439: - return SERVER_SIDE_UNWRAPPING_TIMEOUTS; - case 45: - return UNFILLED_IMPRESSIONS; - case 43: - return UNMATCHED_AD_REQUESTS; - case 121: - return USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN; - case 122: - return USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS; - case 92: - return VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE; - case 93: - return VIDEO_INTERACTION_COLLAPSES; - case 95: - return VIDEO_INTERACTION_EXPANDS; - case 96: - return VIDEO_INTERACTION_FULL_SCREENS; - case 97: - return VIDEO_INTERACTION_MUTES; - case 98: - return VIDEO_INTERACTION_PAUSES; - case 99: - return VIDEO_INTERACTION_RESUMES; - case 100: - return VIDEO_INTERACTION_REWINDS; - case 101: - return VIDEO_INTERACTION_UNMUTES; - case 102: - return VIDEO_INTERACTION_VIDEO_SKIPS; - case 139: - return VIDEO_REAL_TIME_CREATIVE_SERVES; - case 143: - return VIDEO_REAL_TIME_ERROR_100_COUNT; - case 144: - return VIDEO_REAL_TIME_ERROR_101_COUNT; - case 145: - return VIDEO_REAL_TIME_ERROR_102_COUNT; - case 146: - return VIDEO_REAL_TIME_ERROR_200_COUNT; - case 147: - return VIDEO_REAL_TIME_ERROR_201_COUNT; - case 148: - return VIDEO_REAL_TIME_ERROR_202_COUNT; - case 149: - return VIDEO_REAL_TIME_ERROR_203_COUNT; - case 150: - return VIDEO_REAL_TIME_ERROR_300_COUNT; - case 151: - return VIDEO_REAL_TIME_ERROR_301_COUNT; - case 152: - return VIDEO_REAL_TIME_ERROR_302_COUNT; - case 153: - return VIDEO_REAL_TIME_ERROR_303_COUNT; - case 154: - return VIDEO_REAL_TIME_ERROR_400_COUNT; - case 155: - return VIDEO_REAL_TIME_ERROR_401_COUNT; - case 156: - return VIDEO_REAL_TIME_ERROR_402_COUNT; - case 157: - return VIDEO_REAL_TIME_ERROR_403_COUNT; - case 158: - return VIDEO_REAL_TIME_ERROR_405_COUNT; - case 159: - return VIDEO_REAL_TIME_ERROR_406_COUNT; - case 160: - return VIDEO_REAL_TIME_ERROR_407_COUNT; - case 161: - return VIDEO_REAL_TIME_ERROR_408_COUNT; - case 162: - return VIDEO_REAL_TIME_ERROR_409_COUNT; - case 163: - return VIDEO_REAL_TIME_ERROR_410_COUNT; - case 164: - return VIDEO_REAL_TIME_ERROR_500_COUNT; - case 165: - return VIDEO_REAL_TIME_ERROR_501_COUNT; - case 166: - return VIDEO_REAL_TIME_ERROR_502_COUNT; - case 167: - return VIDEO_REAL_TIME_ERROR_503_COUNT; - case 168: - return VIDEO_REAL_TIME_ERROR_600_COUNT; - case 169: - return VIDEO_REAL_TIME_ERROR_601_COUNT; - case 170: - return VIDEO_REAL_TIME_ERROR_602_COUNT; - case 171: - return VIDEO_REAL_TIME_ERROR_603_COUNT; - case 172: - return VIDEO_REAL_TIME_ERROR_604_COUNT; - case 173: - return VIDEO_REAL_TIME_ERROR_900_COUNT; - case 174: - return VIDEO_REAL_TIME_ERROR_901_COUNT; - case 138: - return VIDEO_REAL_TIME_IMPRESSIONS; - case 140: - return VIDEO_REAL_TIME_MATCHED_QUERIES; - case 175: - return VIDEO_REAL_TIME_TOTAL_ERROR_COUNT; - case 142: - return VIDEO_REAL_TIME_TOTAL_QUERIES; - case 141: - return VIDEO_REAL_TIME_UNMATCHED_QUERIES; - case 103: - return VIDEO_VIEWERSHIP_AUTO_PLAYS; - case 104: - return VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE; - case 105: - return VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME; - case 106: - return VIDEO_VIEWERSHIP_CLICK_TO_PLAYS; - case 107: - return VIDEO_VIEWERSHIP_COMPLETES; - case 108: - return VIDEO_VIEWERSHIP_COMPLETION_RATE; - case 109: - return VIDEO_VIEWERSHIP_ENGAGED_VIEWS; - case 110: - return VIDEO_VIEWERSHIP_FIRST_QUARTILES; - case 111: - return VIDEO_VIEWERSHIP_MIDPOINTS; - case 112: - return VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN; - case 113: - return VIDEO_VIEWERSHIP_STARTS; - case 114: - return VIDEO_VIEWERSHIP_THIRD_QUARTILES; - case 115: - return VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT; - case 94: - return VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE; - case 116: - return VIDEO_VIEWERSHIP_VIDEO_LENGTH; - case 117: - return VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE; - case 80: - return YIELD_GROUP_AUCTIONS_WON; - case 81: - return YIELD_GROUP_BIDS; - case 82: - return YIELD_GROUP_BIDS_IN_AUCTION; - case 83: - return YIELD_GROUP_CALLOUTS; - case 88: - return YIELD_GROUP_ESTIMATED_CPM; - case 87: - return YIELD_GROUP_ESTIMATED_REVENUE; - case 85: - return YIELD_GROUP_IMPRESSIONS; - case 89: - return YIELD_GROUP_MEDIATION_FILL_RATE; - case 86: - return YIELD_GROUP_MEDIATION_MATCHED_QUERIES; - case 118: - return YIELD_GROUP_MEDIATION_PASSBACKS; - case 90: - return YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM; - case 84: - return YIELD_GROUP_SUCCESSFUL_RESPONSES; - 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 Metric findValueByNumber(int number) { - return Metric.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.admanager.v1.Report.getDescriptor().getEnumTypes().get(2); - } - - private static final Metric[] VALUES = values(); - - public static Metric 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 Metric(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.Metric) - } - - /** - * - * - *
    -   * Possible metric value types to add.
    -   * 
    - * - * Protobuf enum {@code google.ads.admanager.v1.Report.MetricValueType} - */ - public enum MetricValueType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -     * The values for the primary date_range.
    -     * 
    - * - * PRIMARY = 0; - */ - PRIMARY(0), - /** - * - * - *
    -     * Each metrics' percent of the total for the primary date_range.
    -     * 
    - * - * PRIMARY_PERCENT_OF_TOTAL = 1; - */ - PRIMARY_PERCENT_OF_TOTAL(1), - /** - * - * - *
    -     * The values for the comparison_date_range.
    -     * 
    - * - * COMPARISON = 2; - */ - COMPARISON(2), - /** - * - * - *
    -     * Each metrics' percent of the total for the comparison_date_range.
    -     * 
    - * - * COMPARISON_PERCENT_OF_TOTAL = 3; - */ - COMPARISON_PERCENT_OF_TOTAL(3), - /** - * - * - *
    -     * The absolute change between the primary and comparison date ranges.
    -     * 
    - * - * ABSOLUTE_CHANGE = 4; - */ - ABSOLUTE_CHANGE(4), - /** - * - * - *
    -     * The relative change between the primary and comparison date ranges.
    -     * 
    - * - * RELATIVE_CHANGE = 5; - */ - RELATIVE_CHANGE(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
    -     * The values for the primary date_range.
    -     * 
    - * - * PRIMARY = 0; - */ - public static final int PRIMARY_VALUE = 0; - - /** - * - * - *
    -     * Each metrics' percent of the total for the primary date_range.
    -     * 
    - * - * PRIMARY_PERCENT_OF_TOTAL = 1; - */ - public static final int PRIMARY_PERCENT_OF_TOTAL_VALUE = 1; - - /** - * - * - *
    -     * The values for the comparison_date_range.
    -     * 
    - * - * COMPARISON = 2; - */ - public static final int COMPARISON_VALUE = 2; - - /** - * - * - *
    -     * Each metrics' percent of the total for the comparison_date_range.
    -     * 
    - * - * COMPARISON_PERCENT_OF_TOTAL = 3; - */ - public static final int COMPARISON_PERCENT_OF_TOTAL_VALUE = 3; - - /** - * - * - *
    -     * The absolute change between the primary and comparison date ranges.
    -     * 
    - * - * ABSOLUTE_CHANGE = 4; - */ - public static final int ABSOLUTE_CHANGE_VALUE = 4; - - /** - * - * - *
    -     * The relative change between the primary and comparison date ranges.
    -     * 
    - * - * RELATIVE_CHANGE = 5; - */ - public static final int RELATIVE_CHANGE_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 MetricValueType 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 MetricValueType forNumber(int value) { - switch (value) { - case 0: - return PRIMARY; - case 1: - return PRIMARY_PERCENT_OF_TOTAL; - case 2: - return COMPARISON; - case 3: - return COMPARISON_PERCENT_OF_TOTAL; - case 4: - return ABSOLUTE_CHANGE; - case 5: - return RELATIVE_CHANGE; - 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 MetricValueType findValueByNumber(int number) { - return MetricValueType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.admanager.v1.Report.getDescriptor().getEnumTypes().get(3); - } - - private static final MetricValueType[] VALUES = values(); - - public static MetricValueType 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 MetricValueType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.MetricValueType) - } - - /** - * - * - *
    -   * Supported report types.
    -   * 
    - * - * Protobuf enum {@code google.ads.admanager.v1.Report.ReportType} - */ - public enum ReportType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -     * Default value. This value is unused.
    -     * 
    - * - * REPORT_TYPE_UNSPECIFIED = 0; - */ - REPORT_TYPE_UNSPECIFIED(0), - /** - * - * - *
    -     * Historical.
    -     * 
    - * - * HISTORICAL = 1; - */ - HISTORICAL(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
    -     * Default value. This value is unused.
    -     * 
    - * - * REPORT_TYPE_UNSPECIFIED = 0; - */ - public static final int REPORT_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
    -     * Historical.
    -     * 
    - * - * HISTORICAL = 1; - */ - public static final int HISTORICAL_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 ReportType 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 ReportType forNumber(int value) { - switch (value) { - case 0: - return REPORT_TYPE_UNSPECIFIED; - case 1: - return HISTORICAL; - 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 ReportType findValueByNumber(int number) { - return ReportType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.admanager.v1.Report.getDescriptor().getEnumTypes().get(4); - } - - private static final ReportType[] VALUES = values(); - - public static ReportType 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 ReportType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.ReportType) - } - - /** - * - * - *
    -   * The visibility of a report.
    -   * 
    - * - * Protobuf enum {@code google.ads.admanager.v1.Report.Visibility} - */ - public enum Visibility implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -     * Default value. Reports with hidden visibility will not appear in the Ad
    -     * Manager UI.
    -     * 
    - * - * HIDDEN = 0; - */ - HIDDEN(0), - /** - * - * - *
    -     * Reports with draft visibility will appear in the Ad Manager UI only if
    -     * the user has configured the UI to show them.
    -     * 
    - * - * DRAFT = 1; - */ - DRAFT(1), - /** - * - * - *
    -     * Reports with saved visibility will appear in the Ad Manager UI by
    -     * default.
    -     * 
    - * - * SAVED = 2; - */ - SAVED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
    -     * Default value. Reports with hidden visibility will not appear in the Ad
    -     * Manager UI.
    -     * 
    - * - * HIDDEN = 0; - */ - public static final int HIDDEN_VALUE = 0; - - /** - * - * - *
    -     * Reports with draft visibility will appear in the Ad Manager UI only if
    -     * the user has configured the UI to show them.
    -     * 
    - * - * DRAFT = 1; - */ - public static final int DRAFT_VALUE = 1; - - /** - * - * - *
    -     * Reports with saved visibility will appear in the Ad Manager UI by
    -     * default.
    -     * 
    - * - * SAVED = 2; - */ - public static final int SAVED_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 Visibility 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 Visibility forNumber(int value) { - switch (value) { - case 0: - return HIDDEN; - case 1: - return DRAFT; - case 2: - return SAVED; - 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 Visibility findValueByNumber(int number) { - return Visibility.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.admanager.v1.Report.getDescriptor().getEnumTypes().get(5); - } - - private static final Visibility[] VALUES = values(); - - public static Visibility 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 Visibility(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.Visibility) - } - - /** - * - * - *
    -   * The source to determine the time zone for the report.
    -   * 
    - * - * Protobuf enum {@code google.ads.admanager.v1.Report.TimeZoneSource} - */ - public enum TimeZoneSource implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -     * Unspecified default value.
    -     * 
    - * - * TIME_ZONE_SOURCE_UNSPECIFIED = 0; - */ - TIME_ZONE_SOURCE_UNSPECIFIED(0), - /** - * - * - *
    -     * Use the publisher's time zone in network settings.
    -     * 
    - * - * PUBLISHER = 1; - */ - PUBLISHER(1), - /** - * - * - *
    -     * Use the time zone of the ad exchange.
    -     * Only compatible with Ad Exchange dimensions and metrics.
    -     * 
    - * - * AD_EXCHANGE = 2; - */ - AD_EXCHANGE(2), - /** - * - * - *
    -     * Use UTC time zone.
    -     * Only compatible with Revenue Verification reports.
    -     * 
    - * - * UTC = 3; - */ - UTC(3), - /** - * - * - *
    -     * Use the time zone provided in the ReportDefinition.time_zone field.
    -     * Has limited dimension and metric compatibility compared with PUBLISHER,
    -     * and reports may take longer to run since the dates are dynamically
    -     * calculated at request time.
    -     * 
    - * - * PROVIDED = 4; - */ - PROVIDED(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
    -     * Unspecified default value.
    -     * 
    - * - * TIME_ZONE_SOURCE_UNSPECIFIED = 0; - */ - public static final int TIME_ZONE_SOURCE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
    -     * Use the publisher's time zone in network settings.
    -     * 
    - * - * PUBLISHER = 1; - */ - public static final int PUBLISHER_VALUE = 1; - - /** - * - * - *
    -     * Use the time zone of the ad exchange.
    -     * Only compatible with Ad Exchange dimensions and metrics.
    -     * 
    - * - * AD_EXCHANGE = 2; - */ - public static final int AD_EXCHANGE_VALUE = 2; - - /** - * - * - *
    -     * Use UTC time zone.
    -     * Only compatible with Revenue Verification reports.
    -     * 
    - * - * UTC = 3; - */ - public static final int UTC_VALUE = 3; - - /** - * - * - *
    -     * Use the time zone provided in the ReportDefinition.time_zone field.
    -     * Has limited dimension and metric compatibility compared with PUBLISHER,
    -     * and reports may take longer to run since the dates are dynamically
    -     * calculated at request time.
    -     * 
    - * - * PROVIDED = 4; - */ - public static final int PROVIDED_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 TimeZoneSource 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 TimeZoneSource forNumber(int value) { - switch (value) { - case 0: - return TIME_ZONE_SOURCE_UNSPECIFIED; - case 1: - return PUBLISHER; - case 2: - return AD_EXCHANGE; - case 3: - return UTC; - case 4: - return PROVIDED; - 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 TimeZoneSource findValueByNumber(int number) { - return TimeZoneSource.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.admanager.v1.Report.getDescriptor().getEnumTypes().get(6); - } - - private static final TimeZoneSource[] VALUES = values(); - - public static TimeZoneSource 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 TimeZoneSource(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.TimeZoneSource) - } - - public interface ValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Value) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * For integer values.
    -     * 
    - * - * int64 int_value = 1; - * - * @return Whether the intValue field is set. - */ - boolean hasIntValue(); - - /** - * - * - *
    -     * For integer values.
    -     * 
    - * - * int64 int_value = 1; - * - * @return The intValue. - */ - long getIntValue(); - - /** - * - * - *
    -     * For double values.
    -     * 
    - * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - - /** - * - * - *
    -     * For double values.
    -     * 
    - * - * double double_value = 2; - * - * @return The doubleValue. - */ - double getDoubleValue(); - - /** - * - * - *
    -     * For string values.
    -     * 
    - * - * string string_value = 3; - * - * @return Whether the stringValue field is set. - */ - boolean hasStringValue(); - - /** - * - * - *
    -     * For string values.
    -     * 
    - * - * string string_value = 3; - * - * @return The stringValue. - */ - java.lang.String getStringValue(); - - /** - * - * - *
    -     * For string values.
    -     * 
    - * - * string string_value = 3; - * - * @return The bytes for stringValue. - */ - com.google.protobuf.ByteString getStringValueBytes(); - - /** - * - * - *
    -     * For boolean values.
    -     * 
    - * - * bool bool_value = 4; - * - * @return Whether the boolValue field is set. - */ - boolean hasBoolValue(); - - /** - * - * - *
    -     * For boolean values.
    -     * 
    - * - * bool bool_value = 4; - * - * @return The boolValue. - */ - boolean getBoolValue(); - - /** - * - * - *
    -     * For lists of integer values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - * - * @return Whether the intListValue field is set. - */ - boolean hasIntListValue(); - - /** - * - * - *
    -     * For lists of integer values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - * - * @return The intListValue. - */ - com.google.ads.admanager.v1.Report.Value.IntList getIntListValue(); - - /** - * - * - *
    -     * For lists of integer values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - */ - com.google.ads.admanager.v1.Report.Value.IntListOrBuilder getIntListValueOrBuilder(); - - /** - * - * - *
    -     * For lists of string values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - * - * @return Whether the stringListValue field is set. - */ - boolean hasStringListValue(); - - /** - * - * - *
    -     * For lists of string values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - * - * @return The stringListValue. - */ - com.google.ads.admanager.v1.Report.Value.StringList getStringListValue(); - - /** - * - * - *
    -     * For lists of string values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - */ - com.google.ads.admanager.v1.Report.Value.StringListOrBuilder getStringListValueOrBuilder(); - - /** - * - * - *
    -     * For bytes values.
    -     * 
    - * - * bytes bytes_value = 8; - * - * @return Whether the bytesValue field is set. - */ - boolean hasBytesValue(); - - /** - * - * - *
    -     * For bytes values.
    -     * 
    - * - * bytes bytes_value = 8; - * - * @return The bytesValue. - */ - com.google.protobuf.ByteString getBytesValue(); - - com.google.ads.admanager.v1.Report.Value.ValueCase getValueCase(); - } - - /** - * - * - *
    -   * Represents a single value in a report.
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Value} - */ - public static final class Value extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Value) - ValueOrBuilder { - private static final long serialVersionUID = 0L; - - // Use Value.newBuilder() to construct. - private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Value() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Value(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Value.class, - com.google.ads.admanager.v1.Report.Value.Builder.class); - } - - public interface IntListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Value.IntList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated int64 values = 1; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated int64 values = 1; - * - * @return The count of values. - */ - int getValuesCount(); - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated int64 values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - long getValues(int index); - } - - /** - * - * - *
    -     * A list of integer values.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Value.IntList} - */ - public static final class IntList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Value.IntList) - IntListOrBuilder { - private static final long serialVersionUID = 0L; - - // Use IntList.newBuilder() to construct. - private IntList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private IntList() { - values_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Value.IntList.class, - com.google.ads.admanager.v1.Report.Value.IntList.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList values_ = emptyLongList(); - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated int64 values = 1; - * - * @return A list containing the values. - */ - @java.lang.Override - public java.util.List getValuesList() { - return values_; - } - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated int64 values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated int64 values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public long getValues(int index) { - return values_.getLong(index); - } - - private int valuesMemoizedSerializedSize = -1; - - 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 (getValuesList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valuesMemoizedSerializedSize); - } - for (int i = 0; i < values_.size(); i++) { - output.writeInt64NoTag(values_.getLong(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 < values_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(values_.getLong(i)); - } - size += dataSize; - if (!getValuesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); - } - valuesMemoizedSerializedSize = dataSize; - } - 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.admanager.v1.Report.Value.IntList)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Value.IntList other = - (com.google.ads.admanager.v1.Report.Value.IntList) obj; - - if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.Value.IntList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList 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.admanager.v1.Report.Value.IntList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList 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.admanager.v1.Report.Value.IntList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.Value.IntList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -       * A list of integer values.
    -       * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Value.IntList} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Value.IntList) - com.google.ads.admanager.v1.Report.Value.IntListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Value.IntList.class, - com.google.ads.admanager.v1.Report.Value.IntList.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Value.IntList.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - values_ = emptyLongList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.IntList getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Value.IntList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.IntList build() { - com.google.ads.admanager.v1.Report.Value.IntList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.IntList buildPartial() { - com.google.ads.admanager.v1.Report.Value.IntList result = - new com.google.ads.admanager.v1.Report.Value.IntList(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Value.IntList result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Value.IntList) { - return mergeFrom((com.google.ads.admanager.v1.Report.Value.IntList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Value.IntList other) { - if (other == com.google.ads.admanager.v1.Report.Value.IntList.getDefaultInstance()) - return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - values_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - 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 8: - { - long v = input.readInt64(); - ensureValuesIsMutable(); - values_.addLong(v); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValuesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - values_.addLong(input.readInt64()); - } - input.popLimit(limit); - 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.Internal.LongList values_ = emptyLongList(); - - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = makeMutableCopy(values_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated int64 values = 1; - * - * @return A list containing the values. - */ - public java.util.List getValuesList() { - values_.makeImmutable(); - return values_; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated int64 values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated int64 values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public long getValues(int index) { - return values_.getLong(index); - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated int64 values = 1; - * - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues(int index, long value) { - - ensureValuesIsMutable(); - values_.setLong(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated int64 values = 1; - * - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues(long value) { - - ensureValuesIsMutable(); - values_.addLong(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated int64 values = 1; - * - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues(java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated int64 values = 1; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Value.IntList) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Value.IntList) - private static final com.google.ads.admanager.v1.Report.Value.IntList DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Value.IntList(); - } - - public static com.google.ads.admanager.v1.Report.Value.IntList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntList 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.admanager.v1.Report.Value.IntList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface StringListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Value.StringList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated string values = 1; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated string values = 1; - * - * @return The count of values. - */ - int getValuesCount(); - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString getValuesBytes(int index); - } - - /** - * - * - *
    -     * A list of string values.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Value.StringList} - */ - public static final class StringList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Value.StringList) - StringListOrBuilder { - private static final long serialVersionUID = 0L; - - // Use StringList.newBuilder() to construct. - private StringList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StringList() { - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StringList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Value.StringList.class, - com.google.ads.admanager.v1.Report.Value.StringList.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated string values = 1; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated string values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - - /** - * - * - *
    -       * The values
    -       * 
    - * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.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 < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.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 < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.ads.admanager.v1.Report.Value.StringList)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Value.StringList other = - (com.google.ads.admanager.v1.Report.Value.StringList) obj; - - if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.Value.StringList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList 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.admanager.v1.Report.Value.StringList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList 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.admanager.v1.Report.Value.StringList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.ads.admanager.v1.Report.Value.StringList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -       * A list of string values.
    -       * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Value.StringList} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Value.StringList) - com.google.ads.admanager.v1.Report.Value.StringListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Value.StringList.class, - com.google.ads.admanager.v1.Report.Value.StringList.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Value.StringList.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.StringList getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Value.StringList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.StringList build() { - com.google.ads.admanager.v1.Report.Value.StringList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.StringList buildPartial() { - com.google.ads.admanager.v1.Report.Value.StringList result = - new com.google.ads.admanager.v1.Report.Value.StringList(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Value.StringList result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Value.StringList) { - return mergeFrom((com.google.ads.admanager.v1.Report.Value.StringList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Value.StringList other) { - if (other == com.google.ads.admanager.v1.Report.Value.StringList.getDefaultInstance()) - return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000001; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - 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(); - ensureValuesIsMutable(); - values_.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 values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated string values = 1; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - values_.makeImmutable(); - return values_; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated string values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated string values = 1; - * - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated string values = 1; - * - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated string values = 1; - * - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues(java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated string values = 1; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
    -         * The values
    -         * 
    - * - * repeated string values = 1; - * - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Value.StringList) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Value.StringList) - private static final com.google.ads.admanager.v1.Report.Value.StringList DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Value.StringList(); - } - - public static com.google.ads.admanager.v1.Report.Value.StringList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringList 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.admanager.v1.Report.Value.StringList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int valueCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object value_; - - public enum ValueCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INT_VALUE(1), - DOUBLE_VALUE(2), - STRING_VALUE(3), - BOOL_VALUE(4), - INT_LIST_VALUE(6), - STRING_LIST_VALUE(7), - BYTES_VALUE(8), - VALUE_NOT_SET(0); - private final int value; - - private ValueCase(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 ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: - return INT_VALUE; - case 2: - return DOUBLE_VALUE; - case 3: - return STRING_VALUE; - case 4: - return BOOL_VALUE; - case 6: - return INT_LIST_VALUE; - case 7: - return STRING_LIST_VALUE; - case 8: - return BYTES_VALUE; - case 0: - return VALUE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); - } - - public static final int INT_VALUE_FIELD_NUMBER = 1; - - /** - * - * - *
    -     * For integer values.
    -     * 
    - * - * int64 int_value = 1; - * - * @return Whether the intValue field is set. - */ - @java.lang.Override - public boolean hasIntValue() { - return valueCase_ == 1; - } - - /** - * - * - *
    -     * For integer values.
    -     * 
    - * - * int64 int_value = 1; - * - * @return The intValue. - */ - @java.lang.Override - public long getIntValue() { - if (valueCase_ == 1) { - return (java.lang.Long) value_; - } - return 0L; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; - - /** - * - * - *
    -     * For double values.
    -     * 
    - * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return valueCase_ == 2; - } - - /** - * - * - *
    -     * For double values.
    -     * 
    - * - * double double_value = 2; - * - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (valueCase_ == 2) { - return (java.lang.Double) value_; - } - return 0D; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 3; - - /** - * - * - *
    -     * For string values.
    -     * 
    - * - * string string_value = 3; - * - * @return Whether the stringValue field is set. - */ - public boolean hasStringValue() { - return valueCase_ == 3; - } - - /** - * - * - *
    -     * For string values.
    -     * 
    - * - * string string_value = 3; - * - * @return The stringValue. - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - 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 (valueCase_ == 3) { - value_ = s; - } - return s; - } - } - - /** - * - * - *
    -     * For string values.
    -     * 
    - * - * string string_value = 3; - * - * @return The bytes for stringValue. - */ - public com.google.protobuf.ByteString getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (valueCase_ == 3) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOL_VALUE_FIELD_NUMBER = 4; - - /** - * - * - *
    -     * For boolean values.
    -     * 
    - * - * bool bool_value = 4; - * - * @return Whether the boolValue field is set. - */ - @java.lang.Override - public boolean hasBoolValue() { - return valueCase_ == 4; - } - - /** - * - * - *
    -     * For boolean values.
    -     * 
    - * - * bool bool_value = 4; - * - * @return The boolValue. - */ - @java.lang.Override - public boolean getBoolValue() { - if (valueCase_ == 4) { - return (java.lang.Boolean) value_; - } - return false; - } - - public static final int INT_LIST_VALUE_FIELD_NUMBER = 6; - - /** - * - * - *
    -     * For lists of integer values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - * - * @return Whether the intListValue field is set. - */ - @java.lang.Override - public boolean hasIntListValue() { - return valueCase_ == 6; - } - - /** - * - * - *
    -     * For lists of integer values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - * - * @return The intListValue. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.IntList getIntListValue() { - if (valueCase_ == 6) { - return (com.google.ads.admanager.v1.Report.Value.IntList) value_; - } - return com.google.ads.admanager.v1.Report.Value.IntList.getDefaultInstance(); - } - - /** - * - * - *
    -     * For lists of integer values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.IntListOrBuilder getIntListValueOrBuilder() { - if (valueCase_ == 6) { - return (com.google.ads.admanager.v1.Report.Value.IntList) value_; - } - return com.google.ads.admanager.v1.Report.Value.IntList.getDefaultInstance(); - } - - public static final int STRING_LIST_VALUE_FIELD_NUMBER = 7; - - /** - * - * - *
    -     * For lists of string values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - * - * @return Whether the stringListValue field is set. - */ - @java.lang.Override - public boolean hasStringListValue() { - return valueCase_ == 7; - } - - /** - * - * - *
    -     * For lists of string values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - * - * @return The stringListValue. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.StringList getStringListValue() { - if (valueCase_ == 7) { - return (com.google.ads.admanager.v1.Report.Value.StringList) value_; - } - return com.google.ads.admanager.v1.Report.Value.StringList.getDefaultInstance(); - } - - /** - * - * - *
    -     * For lists of string values.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.StringListOrBuilder - getStringListValueOrBuilder() { - if (valueCase_ == 7) { - return (com.google.ads.admanager.v1.Report.Value.StringList) value_; - } - return com.google.ads.admanager.v1.Report.Value.StringList.getDefaultInstance(); - } - - public static final int BYTES_VALUE_FIELD_NUMBER = 8; - - /** - * - * - *
    -     * For bytes values.
    -     * 
    - * - * bytes bytes_value = 8; - * - * @return Whether the bytesValue field is set. - */ - @java.lang.Override - public boolean hasBytesValue() { - return valueCase_ == 8; - } - - /** - * - * - *
    -     * For bytes values.
    -     * 
    - * - * bytes bytes_value = 8; - * - * @return The bytesValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBytesValue() { - if (valueCase_ == 8) { - return (com.google.protobuf.ByteString) value_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - 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 (valueCase_ == 1) { - output.writeInt64(1, (long) ((java.lang.Long) value_)); - } - if (valueCase_ == 2) { - output.writeDouble(2, (double) ((java.lang.Double) value_)); - } - if (valueCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - if (valueCase_ == 4) { - output.writeBool(4, (boolean) ((java.lang.Boolean) value_)); - } - if (valueCase_ == 6) { - output.writeMessage(6, (com.google.ads.admanager.v1.Report.Value.IntList) value_); - } - if (valueCase_ == 7) { - output.writeMessage(7, (com.google.ads.admanager.v1.Report.Value.StringList) value_); - } - if (valueCase_ == 8) { - output.writeBytes(8, (com.google.protobuf.ByteString) value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size( - 1, (long) ((java.lang.Long) value_)); - } - if (valueCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 2, (double) ((java.lang.Double) value_)); - } - if (valueCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); - } - if (valueCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 4, (boolean) ((java.lang.Boolean) value_)); - } - if (valueCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.ads.admanager.v1.Report.Value.IntList) value_); - } - if (valueCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.ads.admanager.v1.Report.Value.StringList) value_); - } - if (valueCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 8, (com.google.protobuf.ByteString) value_); - } - 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.admanager.v1.Report.Value)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Value other = - (com.google.ads.admanager.v1.Report.Value) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (getIntValue() != other.getIntValue()) return false; - break; - case 2: - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; - break; - case 3: - if (!getStringValue().equals(other.getStringValue())) return false; - break; - case 4: - if (getBoolValue() != other.getBoolValue()) return false; - break; - case 6: - if (!getIntListValue().equals(other.getIntListValue())) return false; - break; - case 7: - if (!getStringListValue().equals(other.getStringListValue())) return false; - break; - case 8: - if (!getBytesValue().equals(other.getBytesValue())) 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(); - switch (valueCase_) { - case 1: - hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntValue()); - break; - case 2: - hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); - break; - case 3: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 4: - hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); - break; - case 6: - hash = (37 * hash) + INT_LIST_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getIntListValue().hashCode(); - break; - case 7: - hash = (37 * hash) + STRING_LIST_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringListValue().hashCode(); - break; - case 8: - hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getBytesValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.Value parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Value 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.admanager.v1.Report.Value parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Value 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.admanager.v1.Report.Value parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Value parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Value parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Value parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Value parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Value parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Value parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Value parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.Value prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * Represents a single value in a report.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Value} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Value) - com.google.ads.admanager.v1.Report.ValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Value.class, - com.google.ads.admanager.v1.Report.Value.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Value.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (intListValueBuilder_ != null) { - intListValueBuilder_.clear(); - } - if (stringListValueBuilder_ != null) { - stringListValueBuilder_.clear(); - } - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Value_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Value.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value build() { - com.google.ads.admanager.v1.Report.Value result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value buildPartial() { - com.google.ads.admanager.v1.Report.Value result = - new com.google.ads.admanager.v1.Report.Value(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Value result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.ads.admanager.v1.Report.Value result) { - result.valueCase_ = valueCase_; - result.value_ = this.value_; - if (valueCase_ == 6 && intListValueBuilder_ != null) { - result.value_ = intListValueBuilder_.build(); - } - if (valueCase_ == 7 && stringListValueBuilder_ != null) { - result.value_ = stringListValueBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Value) { - return mergeFrom((com.google.ads.admanager.v1.Report.Value) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Value other) { - if (other == com.google.ads.admanager.v1.Report.Value.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case INT_VALUE: - { - setIntValue(other.getIntValue()); - break; - } - case DOUBLE_VALUE: - { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: - { - valueCase_ = 3; - value_ = other.value_; - onChanged(); - break; - } - case BOOL_VALUE: - { - setBoolValue(other.getBoolValue()); - break; - } - case INT_LIST_VALUE: - { - mergeIntListValue(other.getIntListValue()); - break; - } - case STRING_LIST_VALUE: - { - mergeStringListValue(other.getStringListValue()); - break; - } - case BYTES_VALUE: - { - setBytesValue(other.getBytesValue()); - break; - } - case VALUE_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 8: - { - value_ = input.readInt64(); - valueCase_ = 1; - break; - } // case 8 - case 17: - { - value_ = input.readDouble(); - valueCase_ = 2; - break; - } // case 17 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 3; - value_ = s; - break; - } // case 26 - case 32: - { - value_ = input.readBool(); - valueCase_ = 4; - break; - } // case 32 - case 50: - { - input.readMessage(getIntListValueFieldBuilder().getBuilder(), extensionRegistry); - valueCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getStringListValueFieldBuilder().getBuilder(), extensionRegistry); - valueCase_ = 7; - break; - } // case 58 - case 66: - { - value_ = input.readBytes(); - valueCase_ = 8; - 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 valueCase_ = 0; - private java.lang.Object value_; - - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
    -       * For integer values.
    -       * 
    - * - * int64 int_value = 1; - * - * @return Whether the intValue field is set. - */ - public boolean hasIntValue() { - return valueCase_ == 1; - } - - /** - * - * - *
    -       * For integer values.
    -       * 
    - * - * int64 int_value = 1; - * - * @return The intValue. - */ - public long getIntValue() { - if (valueCase_ == 1) { - return (java.lang.Long) value_; - } - return 0L; - } - - /** - * - * - *
    -       * For integer values.
    -       * 
    - * - * int64 int_value = 1; - * - * @param value The intValue to set. - * @return This builder for chaining. - */ - public Builder setIntValue(long value) { - - valueCase_ = 1; - value_ = value; - onChanged(); - return this; - } - - /** - * - * - *
    -       * For integer values.
    -       * 
    - * - * int64 int_value = 1; - * - * @return This builder for chaining. - */ - public Builder clearIntValue() { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
    -       * For double values.
    -       * 
    - * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - public boolean hasDoubleValue() { - return valueCase_ == 2; - } - - /** - * - * - *
    -       * For double values.
    -       * 
    - * - * double double_value = 2; - * - * @return The doubleValue. - */ - public double getDoubleValue() { - if (valueCase_ == 2) { - return (java.lang.Double) value_; - } - return 0D; - } - - /** - * - * - *
    -       * For double values.
    -       * 
    - * - * double double_value = 2; - * - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - - /** - * - * - *
    -       * For double values.
    -       * 
    - * - * double double_value = 2; - * - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
    -       * For string values.
    -       * 
    - * - * string string_value = 3; - * - * @return Whether the stringValue field is set. - */ - @java.lang.Override - public boolean hasStringValue() { - return valueCase_ == 3; - } - - /** - * - * - *
    -       * For string values.
    -       * 
    - * - * string string_value = 3; - * - * @return The stringValue. - */ - @java.lang.Override - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 3) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
    -       * For string values.
    -       * 
    - * - * string string_value = 3; - * - * @return The bytes for stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (valueCase_ == 3) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
    -       * For string values.
    -       * 
    - * - * string string_value = 3; - * - * @param value The stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - - /** - * - * - *
    -       * For string values.
    -       * 
    - * - * string string_value = 3; - * - * @return This builder for chaining. - */ - public Builder clearStringValue() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
    -       * For string values.
    -       * 
    - * - * string string_value = 3; - * - * @param value The bytes for stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - - /** - * - * - *
    -       * For boolean values.
    -       * 
    - * - * bool bool_value = 4; - * - * @return Whether the boolValue field is set. - */ - public boolean hasBoolValue() { - return valueCase_ == 4; - } - - /** - * - * - *
    -       * For boolean values.
    -       * 
    - * - * bool bool_value = 4; - * - * @return The boolValue. - */ - public boolean getBoolValue() { - if (valueCase_ == 4) { - return (java.lang.Boolean) value_; - } - return false; - } - - /** - * - * - *
    -       * For boolean values.
    -       * 
    - * - * bool bool_value = 4; - * - * @param value The boolValue to set. - * @return This builder for chaining. - */ - public Builder setBoolValue(boolean value) { - - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - - /** - * - * - *
    -       * For boolean values.
    -       * 
    - * - * bool bool_value = 4; - * - * @return This builder for chaining. - */ - public Builder clearBoolValue() { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value.IntList, - com.google.ads.admanager.v1.Report.Value.IntList.Builder, - com.google.ads.admanager.v1.Report.Value.IntListOrBuilder> - intListValueBuilder_; - - /** - * - * - *
    -       * For lists of integer values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - * - * @return Whether the intListValue field is set. - */ - @java.lang.Override - public boolean hasIntListValue() { - return valueCase_ == 6; - } - - /** - * - * - *
    -       * For lists of integer values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - * - * @return The intListValue. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.IntList getIntListValue() { - if (intListValueBuilder_ == null) { - if (valueCase_ == 6) { - return (com.google.ads.admanager.v1.Report.Value.IntList) value_; - } - return com.google.ads.admanager.v1.Report.Value.IntList.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return intListValueBuilder_.getMessage(); - } - return com.google.ads.admanager.v1.Report.Value.IntList.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * For lists of integer values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - */ - public Builder setIntListValue(com.google.ads.admanager.v1.Report.Value.IntList value) { - if (intListValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - intListValueBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - - /** - * - * - *
    -       * For lists of integer values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - */ - public Builder setIntListValue( - com.google.ads.admanager.v1.Report.Value.IntList.Builder builderForValue) { - if (intListValueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - intListValueBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - - /** - * - * - *
    -       * For lists of integer values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - */ - public Builder mergeIntListValue(com.google.ads.admanager.v1.Report.Value.IntList value) { - if (intListValueBuilder_ == null) { - if (valueCase_ == 6 - && value_ != com.google.ads.admanager.v1.Report.Value.IntList.getDefaultInstance()) { - value_ = - com.google.ads.admanager.v1.Report.Value.IntList.newBuilder( - (com.google.ads.admanager.v1.Report.Value.IntList) value_) - .mergeFrom(value) - .buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - intListValueBuilder_.mergeFrom(value); - } else { - intListValueBuilder_.setMessage(value); - } - } - valueCase_ = 6; - return this; - } - - /** - * - * - *
    -       * For lists of integer values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - */ - public Builder clearIntListValue() { - if (intListValueBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - intListValueBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -       * For lists of integer values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - */ - public com.google.ads.admanager.v1.Report.Value.IntList.Builder getIntListValueBuilder() { - return getIntListValueFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * For lists of integer values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.IntListOrBuilder getIntListValueOrBuilder() { - if ((valueCase_ == 6) && (intListValueBuilder_ != null)) { - return intListValueBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (com.google.ads.admanager.v1.Report.Value.IntList) value_; - } - return com.google.ads.admanager.v1.Report.Value.IntList.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * For lists of integer values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value.IntList, - com.google.ads.admanager.v1.Report.Value.IntList.Builder, - com.google.ads.admanager.v1.Report.Value.IntListOrBuilder> - getIntListValueFieldBuilder() { - if (intListValueBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = com.google.ads.admanager.v1.Report.Value.IntList.getDefaultInstance(); - } - intListValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value.IntList, - com.google.ads.admanager.v1.Report.Value.IntList.Builder, - com.google.ads.admanager.v1.Report.Value.IntListOrBuilder>( - (com.google.ads.admanager.v1.Report.Value.IntList) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged(); - return intListValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value.StringList, - com.google.ads.admanager.v1.Report.Value.StringList.Builder, - com.google.ads.admanager.v1.Report.Value.StringListOrBuilder> - stringListValueBuilder_; - - /** - * - * - *
    -       * For lists of string values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - * - * @return Whether the stringListValue field is set. - */ - @java.lang.Override - public boolean hasStringListValue() { - return valueCase_ == 7; - } - - /** - * - * - *
    -       * For lists of string values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - * - * @return The stringListValue. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.StringList getStringListValue() { - if (stringListValueBuilder_ == null) { - if (valueCase_ == 7) { - return (com.google.ads.admanager.v1.Report.Value.StringList) value_; - } - return com.google.ads.admanager.v1.Report.Value.StringList.getDefaultInstance(); - } else { - if (valueCase_ == 7) { - return stringListValueBuilder_.getMessage(); - } - return com.google.ads.admanager.v1.Report.Value.StringList.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * For lists of string values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - */ - public Builder setStringListValue(com.google.ads.admanager.v1.Report.Value.StringList value) { - if (stringListValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - stringListValueBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - - /** - * - * - *
    -       * For lists of string values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - */ - public Builder setStringListValue( - com.google.ads.admanager.v1.Report.Value.StringList.Builder builderForValue) { - if (stringListValueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - stringListValueBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 7; - return this; - } - - /** - * - * - *
    -       * For lists of string values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - */ - public Builder mergeStringListValue( - com.google.ads.admanager.v1.Report.Value.StringList value) { - if (stringListValueBuilder_ == null) { - if (valueCase_ == 7 - && value_ - != com.google.ads.admanager.v1.Report.Value.StringList.getDefaultInstance()) { - value_ = - com.google.ads.admanager.v1.Report.Value.StringList.newBuilder( - (com.google.ads.admanager.v1.Report.Value.StringList) value_) - .mergeFrom(value) - .buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 7) { - stringListValueBuilder_.mergeFrom(value); - } else { - stringListValueBuilder_.setMessage(value); - } - } - valueCase_ = 7; - return this; - } - - /** - * - * - *
    -       * For lists of string values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - */ - public Builder clearStringListValue() { - if (stringListValueBuilder_ == null) { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - } - stringListValueBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -       * For lists of string values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - */ - public com.google.ads.admanager.v1.Report.Value.StringList.Builder - getStringListValueBuilder() { - return getStringListValueFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * For lists of string values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value.StringListOrBuilder - getStringListValueOrBuilder() { - if ((valueCase_ == 7) && (stringListValueBuilder_ != null)) { - return stringListValueBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 7) { - return (com.google.ads.admanager.v1.Report.Value.StringList) value_; - } - return com.google.ads.admanager.v1.Report.Value.StringList.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * For lists of string values.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value.StringList, - com.google.ads.admanager.v1.Report.Value.StringList.Builder, - com.google.ads.admanager.v1.Report.Value.StringListOrBuilder> - getStringListValueFieldBuilder() { - if (stringListValueBuilder_ == null) { - if (!(valueCase_ == 7)) { - value_ = com.google.ads.admanager.v1.Report.Value.StringList.getDefaultInstance(); - } - stringListValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value.StringList, - com.google.ads.admanager.v1.Report.Value.StringList.Builder, - com.google.ads.admanager.v1.Report.Value.StringListOrBuilder>( - (com.google.ads.admanager.v1.Report.Value.StringList) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 7; - onChanged(); - return stringListValueBuilder_; - } - - /** - * - * - *
    -       * For bytes values.
    -       * 
    - * - * bytes bytes_value = 8; - * - * @return Whether the bytesValue field is set. - */ - public boolean hasBytesValue() { - return valueCase_ == 8; - } - - /** - * - * - *
    -       * For bytes values.
    -       * 
    - * - * bytes bytes_value = 8; - * - * @return The bytesValue. - */ - public com.google.protobuf.ByteString getBytesValue() { - if (valueCase_ == 8) { - return (com.google.protobuf.ByteString) value_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - /** - * - * - *
    -       * For bytes values.
    -       * 
    - * - * bytes bytes_value = 8; - * - * @param value The bytesValue to set. - * @return This builder for chaining. - */ - public Builder setBytesValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 8; - value_ = value; - onChanged(); - return this; - } - - /** - * - * - *
    -       * For bytes values.
    -       * 
    - * - * bytes bytes_value = 8; - * - * @return This builder for chaining. - */ - public Builder clearBytesValue() { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Value) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Value) - private static final com.google.ads.admanager.v1.Report.Value DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Value(); - } - - public static com.google.ads.admanager.v1.Report.Value getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Value 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.admanager.v1.Report.Value getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface SortOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Sort) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * Required. A field (dimension or metric) to sort by.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the field field is set. - */ - boolean hasField(); - - /** - * - * - *
    -     * Required. A field (dimension or metric) to sort by.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The field. - */ - com.google.ads.admanager.v1.Report.Field getField(); - - /** - * - * - *
    -     * Required. A field (dimension or metric) to sort by.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.ads.admanager.v1.Report.FieldOrBuilder getFieldOrBuilder(); - - /** - * - * - *
    -     * Optional. The sort order. If true the sort will be descending.
    -     * 
    - * - * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The descending. - */ - boolean getDescending(); - - /** - * - * - *
    -     * Optional. Use to sort on a specific slice of data.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the slice field is set. - */ - boolean hasSlice(); - - /** - * - * - *
    -     * Optional. Use to sort on a specific slice of data.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The slice. - */ - com.google.ads.admanager.v1.Report.Slice getSlice(); - - /** - * - * - *
    -     * Optional. Use to sort on a specific slice of data.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.ads.admanager.v1.Report.SliceOrBuilder getSliceOrBuilder(); - - /** - * - * - *
    -     * Optional. When using time period columns, use this to sort on a specific
    -     * column.
    -     * 
    - * - * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the timePeriodIndex field is set. - */ - boolean hasTimePeriodIndex(); - - /** - * - * - *
    -     * Optional. When using time period columns, use this to sort on a specific
    -     * column.
    -     * 
    - * - * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The timePeriodIndex. - */ - int getTimePeriodIndex(); - - /** - * - * - *
    -     * Optional. Use to specify which metric value type to sort on. Defaults to
    -     * PRIMARY.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metricValueType field is set. - */ - boolean hasMetricValueType(); - - /** - * - * - *
    -     * Optional. Use to specify which metric value type to sort on. Defaults to
    -     * PRIMARY.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for metricValueType. - */ - int getMetricValueTypeValue(); - - /** - * - * - *
    -     * Optional. Use to specify which metric value type to sort on. Defaults to
    -     * PRIMARY.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metricValueType. - */ - com.google.ads.admanager.v1.Report.MetricValueType getMetricValueType(); - } - - /** - * - * - *
    -   * Represents a sorting in a report.
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Sort} - */ - public static final class Sort extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Sort) - SortOrBuilder { - private static final long serialVersionUID = 0L; - - // Use Sort.newBuilder() to construct. - private Sort(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Sort() { - metricValueType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Sort(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Sort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Sort.class, - com.google.ads.admanager.v1.Report.Sort.Builder.class); - } - - private int bitField0_; - public static final int FIELD_FIELD_NUMBER = 1; - private com.google.ads.admanager.v1.Report.Field field_; - - /** - * - * - *
    -     * Required. A field (dimension or metric) to sort by.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the field field is set. - */ - @java.lang.Override - public boolean hasField() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -     * Required. A field (dimension or metric) to sort by.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The field. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Field getField() { - return field_ == null - ? com.google.ads.admanager.v1.Report.Field.getDefaultInstance() - : field_; - } - - /** - * - * - *
    -     * Required. A field (dimension or metric) to sort by.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.FieldOrBuilder getFieldOrBuilder() { - return field_ == null - ? com.google.ads.admanager.v1.Report.Field.getDefaultInstance() - : field_; - } - - public static final int DESCENDING_FIELD_NUMBER = 2; - private boolean descending_ = false; - - /** - * - * - *
    -     * Optional. The sort order. If true the sort will be descending.
    -     * 
    - * - * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The descending. - */ - @java.lang.Override - public boolean getDescending() { - return descending_; - } - - public static final int SLICE_FIELD_NUMBER = 3; - private com.google.ads.admanager.v1.Report.Slice slice_; - - /** - * - * - *
    -     * Optional. Use to sort on a specific slice of data.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the slice field is set. - */ - @java.lang.Override - public boolean hasSlice() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
    -     * Optional. Use to sort on a specific slice of data.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The slice. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Slice getSlice() { - return slice_ == null - ? com.google.ads.admanager.v1.Report.Slice.getDefaultInstance() - : slice_; - } - - /** - * - * - *
    -     * Optional. Use to sort on a specific slice of data.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.SliceOrBuilder getSliceOrBuilder() { - return slice_ == null - ? com.google.ads.admanager.v1.Report.Slice.getDefaultInstance() - : slice_; - } - - public static final int TIME_PERIOD_INDEX_FIELD_NUMBER = 4; - private int timePeriodIndex_ = 0; - - /** - * - * - *
    -     * Optional. When using time period columns, use this to sort on a specific
    -     * column.
    -     * 
    - * - * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the timePeriodIndex field is set. - */ - @java.lang.Override - public boolean hasTimePeriodIndex() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
    -     * Optional. When using time period columns, use this to sort on a specific
    -     * column.
    -     * 
    - * - * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The timePeriodIndex. - */ - @java.lang.Override - public int getTimePeriodIndex() { - return timePeriodIndex_; - } - - public static final int METRIC_VALUE_TYPE_FIELD_NUMBER = 5; - private int metricValueType_ = 0; - - /** - * - * - *
    -     * Optional. Use to specify which metric value type to sort on. Defaults to
    -     * PRIMARY.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metricValueType field is set. - */ - @java.lang.Override - public boolean hasMetricValueType() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
    -     * Optional. Use to specify which metric value type to sort on. Defaults to
    -     * PRIMARY.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for metricValueType. - */ - @java.lang.Override - public int getMetricValueTypeValue() { - return metricValueType_; - } - - /** - * - * - *
    -     * Optional. Use to specify which metric value type to sort on. Defaults to
    -     * PRIMARY.
    -     * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metricValueType. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.MetricValueType getMetricValueType() { - com.google.ads.admanager.v1.Report.MetricValueType result = - com.google.ads.admanager.v1.Report.MetricValueType.forNumber(metricValueType_); - return result == null - ? com.google.ads.admanager.v1.Report.MetricValueType.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getField()); - } - if (descending_ != false) { - output.writeBool(2, descending_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getSlice()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt32(4, timePeriodIndex_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeEnum(5, metricValueType_); - } - 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, getField()); - } - if (descending_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, descending_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSlice()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, timePeriodIndex_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, metricValueType_); - } - 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.admanager.v1.Report.Sort)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Sort other = (com.google.ads.admanager.v1.Report.Sort) obj; - - if (hasField() != other.hasField()) return false; - if (hasField()) { - if (!getField().equals(other.getField())) return false; - } - if (getDescending() != other.getDescending()) return false; - if (hasSlice() != other.hasSlice()) return false; - if (hasSlice()) { - if (!getSlice().equals(other.getSlice())) return false; - } - if (hasTimePeriodIndex() != other.hasTimePeriodIndex()) return false; - if (hasTimePeriodIndex()) { - if (getTimePeriodIndex() != other.getTimePeriodIndex()) return false; - } - if (hasMetricValueType() != other.hasMetricValueType()) return false; - if (hasMetricValueType()) { - if (metricValueType_ != other.metricValueType_) 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 (hasField()) { - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - } - hash = (37 * hash) + DESCENDING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDescending()); - if (hasSlice()) { - hash = (37 * hash) + SLICE_FIELD_NUMBER; - hash = (53 * hash) + getSlice().hashCode(); - } - if (hasTimePeriodIndex()) { - hash = (37 * hash) + TIME_PERIOD_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getTimePeriodIndex(); - } - if (hasMetricValueType()) { - hash = (37 * hash) + METRIC_VALUE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + metricValueType_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.Sort parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Sort 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.admanager.v1.Report.Sort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Sort 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.admanager.v1.Report.Sort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Sort parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Sort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Sort parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Sort parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Sort parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Sort parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Sort parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.Sort prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * Represents a sorting in a report.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Sort} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Sort) - com.google.ads.admanager.v1.Report.SortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Sort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Sort.class, - com.google.ads.admanager.v1.Report.Sort.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Sort.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFieldFieldBuilder(); - getSliceFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - field_ = null; - if (fieldBuilder_ != null) { - fieldBuilder_.dispose(); - fieldBuilder_ = null; - } - descending_ = false; - slice_ = null; - if (sliceBuilder_ != null) { - sliceBuilder_.dispose(); - sliceBuilder_ = null; - } - timePeriodIndex_ = 0; - metricValueType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Sort_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Sort getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Sort.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Sort build() { - com.google.ads.admanager.v1.Report.Sort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Sort buildPartial() { - com.google.ads.admanager.v1.Report.Sort result = - new com.google.ads.admanager.v1.Report.Sort(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Sort result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.descending_ = descending_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.slice_ = sliceBuilder_ == null ? slice_ : sliceBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.timePeriodIndex_ = timePeriodIndex_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.metricValueType_ = metricValueType_; - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Sort) { - return mergeFrom((com.google.ads.admanager.v1.Report.Sort) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Sort other) { - if (other == com.google.ads.admanager.v1.Report.Sort.getDefaultInstance()) return this; - if (other.hasField()) { - mergeField(other.getField()); - } - if (other.getDescending() != false) { - setDescending(other.getDescending()); - } - if (other.hasSlice()) { - mergeSlice(other.getSlice()); - } - if (other.hasTimePeriodIndex()) { - setTimePeriodIndex(other.getTimePeriodIndex()); - } - if (other.hasMetricValueType()) { - setMetricValueType(other.getMetricValueType()); - } - 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(getFieldFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - descending_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getSliceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - timePeriodIndex_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - metricValueType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - 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.ads.admanager.v1.Report.Field field_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Field, - com.google.ads.admanager.v1.Report.Field.Builder, - com.google.ads.admanager.v1.Report.FieldOrBuilder> - fieldBuilder_; - - /** - * - * - *
    -       * Required. A field (dimension or metric) to sort by.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the field field is set. - */ - public boolean hasField() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -       * Required. A field (dimension or metric) to sort by.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The field. - */ - public com.google.ads.admanager.v1.Report.Field getField() { - if (fieldBuilder_ == null) { - return field_ == null - ? com.google.ads.admanager.v1.Report.Field.getDefaultInstance() - : field_; - } else { - return fieldBuilder_.getMessage(); - } - } - - /** - * - * - *
    -       * Required. A field (dimension or metric) to sort by.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setField(com.google.ads.admanager.v1.Report.Field value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - field_ = value; - } else { - fieldBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. A field (dimension or metric) to sort by.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setField(com.google.ads.admanager.v1.Report.Field.Builder builderForValue) { - if (fieldBuilder_ == null) { - field_ = builderForValue.build(); - } else { - fieldBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. A field (dimension or metric) to sort by.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeField(com.google.ads.admanager.v1.Report.Field value) { - if (fieldBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && field_ != null - && field_ != com.google.ads.admanager.v1.Report.Field.getDefaultInstance()) { - getFieldBuilder().mergeFrom(value); - } else { - field_ = value; - } - } else { - fieldBuilder_.mergeFrom(value); - } - if (field_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
    -       * Required. A field (dimension or metric) to sort by.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearField() { - bitField0_ = (bitField0_ & ~0x00000001); - field_ = null; - if (fieldBuilder_ != null) { - fieldBuilder_.dispose(); - fieldBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. A field (dimension or metric) to sort by.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Field.Builder getFieldBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getFieldFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * Required. A field (dimension or metric) to sort by.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.FieldOrBuilder getFieldOrBuilder() { - if (fieldBuilder_ != null) { - return fieldBuilder_.getMessageOrBuilder(); - } else { - return field_ == null - ? com.google.ads.admanager.v1.Report.Field.getDefaultInstance() - : field_; - } - } - - /** - * - * - *
    -       * Required. A field (dimension or metric) to sort by.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Field, - com.google.ads.admanager.v1.Report.Field.Builder, - com.google.ads.admanager.v1.Report.FieldOrBuilder> - getFieldFieldBuilder() { - if (fieldBuilder_ == null) { - fieldBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Field, - com.google.ads.admanager.v1.Report.Field.Builder, - com.google.ads.admanager.v1.Report.FieldOrBuilder>( - getField(), getParentForChildren(), isClean()); - field_ = null; - } - return fieldBuilder_; - } - - private boolean descending_; - - /** - * - * - *
    -       * Optional. The sort order. If true the sort will be descending.
    -       * 
    - * - * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The descending. - */ - @java.lang.Override - public boolean getDescending() { - return descending_; - } - - /** - * - * - *
    -       * Optional. The sort order. If true the sort will be descending.
    -       * 
    - * - * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The descending to set. - * @return This builder for chaining. - */ - public Builder setDescending(boolean value) { - - descending_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. The sort order. If true the sort will be descending.
    -       * 
    - * - * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescending() { - bitField0_ = (bitField0_ & ~0x00000002); - descending_ = false; - onChanged(); - return this; - } - - private com.google.ads.admanager.v1.Report.Slice slice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Slice, - com.google.ads.admanager.v1.Report.Slice.Builder, - com.google.ads.admanager.v1.Report.SliceOrBuilder> - sliceBuilder_; - - /** - * - * - *
    -       * Optional. Use to sort on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the slice field is set. - */ - public boolean hasSlice() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
    -       * Optional. Use to sort on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The slice. - */ - public com.google.ads.admanager.v1.Report.Slice getSlice() { - if (sliceBuilder_ == null) { - return slice_ == null - ? com.google.ads.admanager.v1.Report.Slice.getDefaultInstance() - : slice_; - } else { - return sliceBuilder_.getMessage(); - } - } - - /** - * - * - *
    -       * Optional. Use to sort on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSlice(com.google.ads.admanager.v1.Report.Slice value) { - if (sliceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - slice_ = value; - } else { - sliceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Use to sort on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSlice(com.google.ads.admanager.v1.Report.Slice.Builder builderForValue) { - if (sliceBuilder_ == null) { - slice_ = builderForValue.build(); - } else { - sliceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Use to sort on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSlice(com.google.ads.admanager.v1.Report.Slice value) { - if (sliceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && slice_ != null - && slice_ != com.google.ads.admanager.v1.Report.Slice.getDefaultInstance()) { - getSliceBuilder().mergeFrom(value); - } else { - slice_ = value; - } - } else { - sliceBuilder_.mergeFrom(value); - } - if (slice_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
    -       * Optional. Use to sort on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSlice() { - bitField0_ = (bitField0_ & ~0x00000004); - slice_ = null; - if (sliceBuilder_ != null) { - sliceBuilder_.dispose(); - sliceBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Use to sort on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.ads.admanager.v1.Report.Slice.Builder getSliceBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getSliceFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * Optional. Use to sort on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.ads.admanager.v1.Report.SliceOrBuilder getSliceOrBuilder() { - if (sliceBuilder_ != null) { - return sliceBuilder_.getMessageOrBuilder(); - } else { - return slice_ == null - ? com.google.ads.admanager.v1.Report.Slice.getDefaultInstance() - : slice_; - } - } - - /** - * - * - *
    -       * Optional. Use to sort on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Slice, - com.google.ads.admanager.v1.Report.Slice.Builder, - com.google.ads.admanager.v1.Report.SliceOrBuilder> - getSliceFieldBuilder() { - if (sliceBuilder_ == null) { - sliceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Slice, - com.google.ads.admanager.v1.Report.Slice.Builder, - com.google.ads.admanager.v1.Report.SliceOrBuilder>( - getSlice(), getParentForChildren(), isClean()); - slice_ = null; - } - return sliceBuilder_; - } - - private int timePeriodIndex_; - - /** - * - * - *
    -       * Optional. When using time period columns, use this to sort on a specific
    -       * column.
    -       * 
    - * - * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the timePeriodIndex field is set. - */ - @java.lang.Override - public boolean hasTimePeriodIndex() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
    -       * Optional. When using time period columns, use this to sort on a specific
    -       * column.
    -       * 
    - * - * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The timePeriodIndex. - */ - @java.lang.Override - public int getTimePeriodIndex() { - return timePeriodIndex_; - } - - /** - * - * - *
    -       * Optional. When using time period columns, use this to sort on a specific
    -       * column.
    -       * 
    - * - * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The timePeriodIndex to set. - * @return This builder for chaining. - */ - public Builder setTimePeriodIndex(int value) { - - timePeriodIndex_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. When using time period columns, use this to sort on a specific
    -       * column.
    -       * 
    - * - * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearTimePeriodIndex() { - bitField0_ = (bitField0_ & ~0x00000008); - timePeriodIndex_ = 0; - onChanged(); - return this; - } - - private int metricValueType_ = 0; - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to sort on. Defaults to
    -       * PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metricValueType field is set. - */ - @java.lang.Override - public boolean hasMetricValueType() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to sort on. Defaults to
    -       * PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for metricValueType. - */ - @java.lang.Override - public int getMetricValueTypeValue() { - return metricValueType_; - } - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to sort on. Defaults to
    -       * PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for metricValueType to set. - * @return This builder for chaining. - */ - public Builder setMetricValueTypeValue(int value) { - metricValueType_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to sort on. Defaults to
    -       * PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metricValueType. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.MetricValueType getMetricValueType() { - com.google.ads.admanager.v1.Report.MetricValueType result = - com.google.ads.admanager.v1.Report.MetricValueType.forNumber(metricValueType_); - return result == null - ? com.google.ads.admanager.v1.Report.MetricValueType.UNRECOGNIZED - : result; - } - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to sort on. Defaults to
    -       * PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The metricValueType to set. - * @return This builder for chaining. - */ - public Builder setMetricValueType(com.google.ads.admanager.v1.Report.MetricValueType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - metricValueType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to sort on. Defaults to
    -       * PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearMetricValueType() { - bitField0_ = (bitField0_ & ~0x00000010); - metricValueType_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Sort) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Sort) - private static final com.google.ads.admanager.v1.Report.Sort DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Sort(); - } - - public static com.google.ads.admanager.v1.Report.Sort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Sort 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.admanager.v1.Report.Sort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DataTableOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.DataTable) - com.google.protobuf.MessageOrBuilder {} - - /** - * - * - *
    -   * A table containing report data including dimension and metric values.
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DataTable} - */ - public static final class DataTable extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.DataTable) - DataTableOrBuilder { - private static final long serialVersionUID = 0L; - - // Use DataTable.newBuilder() to construct. - private DataTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DataTable() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DataTable(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DataTable.class, - com.google.ads.admanager.v1.Report.DataTable.Builder.class); - } - - public interface RowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.DataTable.Row) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - java.util.List getDimensionValuesList(); - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - com.google.ads.admanager.v1.Report.Value getDimensionValues(int index); - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - int getDimensionValuesCount(); - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - java.util.List - getDimensionValuesOrBuilderList(); - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - com.google.ads.admanager.v1.Report.ValueOrBuilder getDimensionValuesOrBuilder(int index); - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - java.util.List - getMetricValueGroupsList(); - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup getMetricValueGroups(int index); - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - int getMetricValueGroupsCount(); - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - java.util.List< - ? extends com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder> - getMetricValueGroupsOrBuilderList(); - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder - getMetricValueGroupsOrBuilder(int index); - } - - /** - * - * - *
    -     * A row of report data.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DataTable.Row} - */ - public static final class Row extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.DataTable.Row) - RowOrBuilder { - private static final long serialVersionUID = 0L; - - // Use Row.newBuilder() to construct. - private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Row() { - dimensionValues_ = java.util.Collections.emptyList(); - metricValueGroups_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Row(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DataTable.Row.class, - com.google.ads.admanager.v1.Report.DataTable.Row.Builder.class); - } - - public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List dimensionValues_; - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - @java.lang.Override - public java.util.List getDimensionValuesList() { - return dimensionValues_; - } - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - @java.lang.Override - public java.util.List - getDimensionValuesOrBuilderList() { - return dimensionValues_; - } - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - @java.lang.Override - public int getDimensionValuesCount() { - return dimensionValues_.size(); - } - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getDimensionValues(int index) { - return dimensionValues_.get(index); - } - - /** - * - * - *
    -       * The order of the dimension values is the same as the order of the
    -       * dimensions specified in the request.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.ValueOrBuilder getDimensionValuesOrBuilder( - int index) { - return dimensionValues_.get(index); - } - - public static final int METRIC_VALUE_GROUPS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List - metricValueGroups_; - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - @java.lang.Override - public java.util.List - getMetricValueGroupsList() { - return metricValueGroups_; - } - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder> - getMetricValueGroupsOrBuilderList() { - return metricValueGroups_; - } - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - @java.lang.Override - public int getMetricValueGroupsCount() { - return metricValueGroups_.size(); - } - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup getMetricValueGroups( - int index) { - return metricValueGroups_.get(index); - } - - /** - * - * - *
    -       *
    -       * The length of the metric_value_groups
    -       * field will be equal to the length of the date_ranges field in the
    -       * fetch response. The metric_value_groups field is
    -       * ordered such that each index corresponds to the date_range at the same
    -       * index. For example, given date_ranges [x, y], metric_value_groups will
    -       * have a length of two. The first entry in metric_value_groups represents
    -       * the metrics for date x and the second entry in metric_value_groups
    -       * represents the metrics for date y.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder - getMetricValueGroupsOrBuilder(int index) { - return metricValueGroups_.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 < dimensionValues_.size(); i++) { - output.writeMessage(1, dimensionValues_.get(i)); - } - for (int i = 0; i < metricValueGroups_.size(); i++) { - output.writeMessage(2, metricValueGroups_.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 < dimensionValues_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionValues_.get(i)); - } - for (int i = 0; i < metricValueGroups_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, metricValueGroups_.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.admanager.v1.Report.DataTable.Row)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.DataTable.Row other = - (com.google.ads.admanager.v1.Report.DataTable.Row) obj; - - if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; - if (!getMetricValueGroupsList().equals(other.getMetricValueGroupsList())) 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 (getDimensionValuesCount() > 0) { - hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getDimensionValuesList().hashCode(); - } - if (getMetricValueGroupsCount() > 0) { - hash = (37 * hash) + METRIC_VALUE_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getMetricValueGroupsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row 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.admanager.v1.Report.DataTable.Row parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row 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.admanager.v1.Report.DataTable.Row parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.DataTable.Row prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -       * A row of report data.
    -       * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DataTable.Row} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DataTable.Row) - com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DataTable.Row.class, - com.google.ads.admanager.v1.Report.DataTable.Row.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.DataTable.Row.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - } else { - dimensionValues_ = null; - dimensionValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricValueGroupsBuilder_ == null) { - metricValueGroups_ = java.util.Collections.emptyList(); - } else { - metricValueGroups_ = null; - metricValueGroupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.Row getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.DataTable.Row.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.Row build() { - com.google.ads.admanager.v1.Report.DataTable.Row result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.Row buildPartial() { - com.google.ads.admanager.v1.Report.DataTable.Row result = - new com.google.ads.admanager.v1.Report.DataTable.Row(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.ads.admanager.v1.Report.DataTable.Row result) { - if (dimensionValuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionValues_ = dimensionValues_; - } else { - result.dimensionValues_ = dimensionValuesBuilder_.build(); - } - if (metricValueGroupsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricValueGroups_ = java.util.Collections.unmodifiableList(metricValueGroups_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricValueGroups_ = metricValueGroups_; - } else { - result.metricValueGroups_ = metricValueGroupsBuilder_.build(); - } - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.DataTable.Row result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.DataTable.Row) { - return mergeFrom((com.google.ads.admanager.v1.Report.DataTable.Row) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.DataTable.Row other) { - if (other == com.google.ads.admanager.v1.Report.DataTable.Row.getDefaultInstance()) - return this; - if (dimensionValuesBuilder_ == null) { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValues_.isEmpty()) { - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionValuesIsMutable(); - dimensionValues_.addAll(other.dimensionValues_); - } - onChanged(); - } - } else { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValuesBuilder_.isEmpty()) { - dimensionValuesBuilder_.dispose(); - dimensionValuesBuilder_ = null; - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionValuesFieldBuilder() - : null; - } else { - dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); - } - } - } - if (metricValueGroupsBuilder_ == null) { - if (!other.metricValueGroups_.isEmpty()) { - if (metricValueGroups_.isEmpty()) { - metricValueGroups_ = other.metricValueGroups_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricValueGroupsIsMutable(); - metricValueGroups_.addAll(other.metricValueGroups_); - } - onChanged(); - } - } else { - if (!other.metricValueGroups_.isEmpty()) { - if (metricValueGroupsBuilder_.isEmpty()) { - metricValueGroupsBuilder_.dispose(); - metricValueGroupsBuilder_ = null; - metricValueGroups_ = other.metricValueGroups_; - bitField0_ = (bitField0_ & ~0x00000002); - metricValueGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricValueGroupsFieldBuilder() - : null; - } else { - metricValueGroupsBuilder_.addAllMessages(other.metricValueGroups_); - } - } - } - 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.admanager.v1.Report.Value m = - input.readMessage( - com.google.ads.admanager.v1.Report.Value.parser(), extensionRegistry); - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(m); - } else { - dimensionValuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup m = - input.readMessage( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.parser(), - extensionRegistry); - if (metricValueGroupsBuilder_ == null) { - ensureMetricValueGroupsIsMutable(); - metricValueGroups_.add(m); - } else { - metricValueGroupsBuilder_.addMessage(m); - } - 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.util.List dimensionValues_ = - java.util.Collections.emptyList(); - - private void ensureDimensionValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = - new java.util.ArrayList(dimensionValues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - dimensionValuesBuilder_; - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public java.util.List getDimensionValuesList() { - if (dimensionValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionValues_); - } else { - return dimensionValuesBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public int getDimensionValuesCount() { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.size(); - } else { - return dimensionValuesBuilder_.getCount(); - } - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public com.google.ads.admanager.v1.Report.Value getDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); - } else { - return dimensionValuesBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public Builder addDimensionValues(com.google.ads.admanager.v1.Report.Value value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public Builder addDimensionValues( - com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public Builder addAllDimensionValues( - java.lang.Iterable values) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionValues_); - onChanged(); - } else { - dimensionValuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public Builder clearDimensionValues() { - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionValuesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public Builder removeDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.remove(index); - onChanged(); - } else { - dimensionValuesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public com.google.ads.admanager.v1.Report.Value.Builder getDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public com.google.ads.admanager.v1.Report.ValueOrBuilder getDimensionValuesOrBuilder( - int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); - } else { - return dimensionValuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public java.util.List - getDimensionValuesOrBuilderList() { - if (dimensionValuesBuilder_ != null) { - return dimensionValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionValues_); - } - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addDimensionValuesBuilder() { - return getDimensionValuesFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * The order of the dimension values is the same as the order of the
    -         * dimensions specified in the request.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - public java.util.List - getDimensionValuesBuilderList() { - return getDimensionValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - getDimensionValuesFieldBuilder() { - if (dimensionValuesBuilder_ == null) { - dimensionValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder>( - dimensionValues_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionValues_ = null; - } - return dimensionValuesBuilder_; - } - - private java.util.List - metricValueGroups_ = java.util.Collections.emptyList(); - - private void ensureMetricValueGroupsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metricValueGroups_ = - new java.util.ArrayList< - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup>( - metricValueGroups_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder> - metricValueGroupsBuilder_; - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public java.util.List - getMetricValueGroupsList() { - if (metricValueGroupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricValueGroups_); - } else { - return metricValueGroupsBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public int getMetricValueGroupsCount() { - if (metricValueGroupsBuilder_ == null) { - return metricValueGroups_.size(); - } else { - return metricValueGroupsBuilder_.getCount(); - } - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup getMetricValueGroups( - int index) { - if (metricValueGroupsBuilder_ == null) { - return metricValueGroups_.get(index); - } else { - return metricValueGroupsBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public Builder setMetricValueGroups( - int index, com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup value) { - if (metricValueGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValueGroupsIsMutable(); - metricValueGroups_.set(index, value); - onChanged(); - } else { - metricValueGroupsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public Builder setMetricValueGroups( - int index, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder builderForValue) { - if (metricValueGroupsBuilder_ == null) { - ensureMetricValueGroupsIsMutable(); - metricValueGroups_.set(index, builderForValue.build()); - onChanged(); - } else { - metricValueGroupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public Builder addMetricValueGroups( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup value) { - if (metricValueGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValueGroupsIsMutable(); - metricValueGroups_.add(value); - onChanged(); - } else { - metricValueGroupsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public Builder addMetricValueGroups( - int index, com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup value) { - if (metricValueGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValueGroupsIsMutable(); - metricValueGroups_.add(index, value); - onChanged(); - } else { - metricValueGroupsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public Builder addMetricValueGroups( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder builderForValue) { - if (metricValueGroupsBuilder_ == null) { - ensureMetricValueGroupsIsMutable(); - metricValueGroups_.add(builderForValue.build()); - onChanged(); - } else { - metricValueGroupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public Builder addMetricValueGroups( - int index, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder builderForValue) { - if (metricValueGroupsBuilder_ == null) { - ensureMetricValueGroupsIsMutable(); - metricValueGroups_.add(index, builderForValue.build()); - onChanged(); - } else { - metricValueGroupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public Builder addAllMetricValueGroups( - java.lang.Iterable< - ? extends com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup> - values) { - if (metricValueGroupsBuilder_ == null) { - ensureMetricValueGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricValueGroups_); - onChanged(); - } else { - metricValueGroupsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public Builder clearMetricValueGroups() { - if (metricValueGroupsBuilder_ == null) { - metricValueGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricValueGroupsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public Builder removeMetricValueGroups(int index) { - if (metricValueGroupsBuilder_ == null) { - ensureMetricValueGroupsIsMutable(); - metricValueGroups_.remove(index); - onChanged(); - } else { - metricValueGroupsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder - getMetricValueGroupsBuilder(int index) { - return getMetricValueGroupsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder - getMetricValueGroupsOrBuilder(int index) { - if (metricValueGroupsBuilder_ == null) { - return metricValueGroups_.get(index); - } else { - return metricValueGroupsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public java.util.List< - ? extends com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder> - getMetricValueGroupsOrBuilderList() { - if (metricValueGroupsBuilder_ != null) { - return metricValueGroupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricValueGroups_); - } - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder - addMetricValueGroupsBuilder() { - return getMetricValueGroupsFieldBuilder() - .addBuilder( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup - .getDefaultInstance()); - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder - addMetricValueGroupsBuilder(int index) { - return getMetricValueGroupsFieldBuilder() - .addBuilder( - index, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup - .getDefaultInstance()); - } - - /** - * - * - *
    -         *
    -         * The length of the metric_value_groups
    -         * field will be equal to the length of the date_ranges field in the
    -         * fetch response. The metric_value_groups field is
    -         * ordered such that each index corresponds to the date_range at the same
    -         * index. For example, given date_ranges [x, y], metric_value_groups will
    -         * have a length of two. The first entry in metric_value_groups represents
    -         * the metrics for date x and the second entry in metric_value_groups
    -         * represents the metrics for date y.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * - */ - public java.util.List - getMetricValueGroupsBuilderList() { - return getMetricValueGroupsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder> - getMetricValueGroupsFieldBuilder() { - if (metricValueGroupsBuilder_ == null) { - metricValueGroupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder>( - metricValueGroups_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metricValueGroups_ = null; - } - return metricValueGroupsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.DataTable.Row) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.DataTable.Row) - private static final com.google.ads.admanager.v1.Report.DataTable.Row DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.DataTable.Row(); - } - - public static com.google.ads.admanager.v1.Report.DataTable.Row getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Row 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.admanager.v1.Report.DataTable.Row getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface MetricValueGroupOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.DataTable.MetricValueGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - java.util.List getPrimaryValuesList(); - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - com.google.ads.admanager.v1.Report.Value getPrimaryValues(int index); - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - int getPrimaryValuesCount(); - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - java.util.List - getPrimaryValuesOrBuilderList(); - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - com.google.ads.admanager.v1.Report.ValueOrBuilder getPrimaryValuesOrBuilder(int index); - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - java.util.List getPrimaryPercentOfTotalValuesList(); - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - com.google.ads.admanager.v1.Report.Value getPrimaryPercentOfTotalValues(int index); - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - int getPrimaryPercentOfTotalValuesCount(); - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - java.util.List - getPrimaryPercentOfTotalValuesOrBuilderList(); - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - com.google.ads.admanager.v1.Report.ValueOrBuilder getPrimaryPercentOfTotalValuesOrBuilder( - int index); - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - java.util.List getComparisonValuesList(); - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - com.google.ads.admanager.v1.Report.Value getComparisonValues(int index); - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - int getComparisonValuesCount(); - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - java.util.List - getComparisonValuesOrBuilderList(); - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - com.google.ads.admanager.v1.Report.ValueOrBuilder getComparisonValuesOrBuilder(int index); - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - java.util.List - getComparisonPercentOfTotalValuesList(); - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - com.google.ads.admanager.v1.Report.Value getComparisonPercentOfTotalValues(int index); - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - int getComparisonPercentOfTotalValuesCount(); - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - java.util.List - getComparisonPercentOfTotalValuesOrBuilderList(); - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - com.google.ads.admanager.v1.Report.ValueOrBuilder getComparisonPercentOfTotalValuesOrBuilder( - int index); - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - java.util.List getAbsoluteChangeValuesList(); - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - com.google.ads.admanager.v1.Report.Value getAbsoluteChangeValues(int index); - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - int getAbsoluteChangeValuesCount(); - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - java.util.List - getAbsoluteChangeValuesOrBuilderList(); - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - com.google.ads.admanager.v1.Report.ValueOrBuilder getAbsoluteChangeValuesOrBuilder(int index); - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - java.util.List getRelativeChangeValuesList(); - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - com.google.ads.admanager.v1.Report.Value getRelativeChangeValues(int index); - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - int getRelativeChangeValuesCount(); - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - java.util.List - getRelativeChangeValuesOrBuilderList(); - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - com.google.ads.admanager.v1.Report.ValueOrBuilder getRelativeChangeValuesOrBuilder(int index); - - /** - * - * - *
    -       * If true, the flag's conditions are met. If false, the flag's
    -       * conditions are not met. flag_values has the same length as
    -       * flags and index i of flag_values represents the flag at index i
    -       * of flags.
    -       * 
    - * - * repeated bool flag_values = 7; - * - * @return A list containing the flagValues. - */ - java.util.List getFlagValuesList(); - - /** - * - * - *
    -       * If true, the flag's conditions are met. If false, the flag's
    -       * conditions are not met. flag_values has the same length as
    -       * flags and index i of flag_values represents the flag at index i
    -       * of flags.
    -       * 
    - * - * repeated bool flag_values = 7; - * - * @return The count of flagValues. - */ - int getFlagValuesCount(); - - /** - * - * - *
    -       * If true, the flag's conditions are met. If false, the flag's
    -       * conditions are not met. flag_values has the same length as
    -       * flags and index i of flag_values represents the flag at index i
    -       * of flags.
    -       * 
    - * - * repeated bool flag_values = 7; - * - * @param index The index of the element to return. - * @return The flagValues at the given index. - */ - boolean getFlagValues(int index); - } - - /** - * - * - *
    -     * Contains all metric values requested for a single date range and set of
    -     * column dimension values (returned in the columns field of the response).
    -     * The order of the metrics in each field corresponds to the order of the
    -     * metrics specified in the request.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DataTable.MetricValueGroup} - */ - public static final class MetricValueGroup extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.DataTable.MetricValueGroup) - MetricValueGroupOrBuilder { - private static final long serialVersionUID = 0L; - - // Use MetricValueGroup.newBuilder() to construct. - private MetricValueGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MetricValueGroup() { - primaryValues_ = java.util.Collections.emptyList(); - primaryPercentOfTotalValues_ = java.util.Collections.emptyList(); - comparisonValues_ = java.util.Collections.emptyList(); - comparisonPercentOfTotalValues_ = java.util.Collections.emptyList(); - absoluteChangeValues_ = java.util.Collections.emptyList(); - relativeChangeValues_ = java.util.Collections.emptyList(); - flagValues_ = emptyBooleanList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MetricValueGroup(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.class, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder.class); - } - - public static final int PRIMARY_VALUES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List primaryValues_; - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - @java.lang.Override - public java.util.List getPrimaryValuesList() { - return primaryValues_; - } - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - @java.lang.Override - public java.util.List - getPrimaryValuesOrBuilderList() { - return primaryValues_; - } - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - @java.lang.Override - public int getPrimaryValuesCount() { - return primaryValues_.size(); - } - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getPrimaryValues(int index) { - return primaryValues_.get(index); - } - - /** - * - * - *
    -       * Data for the PRIMARY MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.ValueOrBuilder getPrimaryValuesOrBuilder( - int index) { - return primaryValues_.get(index); - } - - public static final int PRIMARY_PERCENT_OF_TOTAL_VALUES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List primaryPercentOfTotalValues_; - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - @java.lang.Override - public java.util.List - getPrimaryPercentOfTotalValuesList() { - return primaryPercentOfTotalValues_; - } - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - @java.lang.Override - public java.util.List - getPrimaryPercentOfTotalValuesOrBuilderList() { - return primaryPercentOfTotalValues_; - } - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - @java.lang.Override - public int getPrimaryPercentOfTotalValuesCount() { - return primaryPercentOfTotalValues_.size(); - } - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getPrimaryPercentOfTotalValues(int index) { - return primaryPercentOfTotalValues_.get(index); - } - - /** - * - * - *
    -       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.ValueOrBuilder - getPrimaryPercentOfTotalValuesOrBuilder(int index) { - return primaryPercentOfTotalValues_.get(index); - } - - public static final int COMPARISON_VALUES_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List comparisonValues_; - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - @java.lang.Override - public java.util.List getComparisonValuesList() { - return comparisonValues_; - } - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - @java.lang.Override - public java.util.List - getComparisonValuesOrBuilderList() { - return comparisonValues_; - } - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - @java.lang.Override - public int getComparisonValuesCount() { - return comparisonValues_.size(); - } - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getComparisonValues(int index) { - return comparisonValues_.get(index); - } - - /** - * - * - *
    -       * Data for the COMPARISON MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.ValueOrBuilder getComparisonValuesOrBuilder( - int index) { - return comparisonValues_.get(index); - } - - public static final int COMPARISON_PERCENT_OF_TOTAL_VALUES_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List - comparisonPercentOfTotalValues_; - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - @java.lang.Override - public java.util.List - getComparisonPercentOfTotalValuesList() { - return comparisonPercentOfTotalValues_; - } - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - @java.lang.Override - public java.util.List - getComparisonPercentOfTotalValuesOrBuilderList() { - return comparisonPercentOfTotalValues_; - } - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - @java.lang.Override - public int getComparisonPercentOfTotalValuesCount() { - return comparisonPercentOfTotalValues_.size(); - } - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getComparisonPercentOfTotalValues(int index) { - return comparisonPercentOfTotalValues_.get(index); - } - - /** - * - * - *
    -       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.ValueOrBuilder - getComparisonPercentOfTotalValuesOrBuilder(int index) { - return comparisonPercentOfTotalValues_.get(index); - } - - public static final int ABSOLUTE_CHANGE_VALUES_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private java.util.List absoluteChangeValues_; - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - @java.lang.Override - public java.util.List - getAbsoluteChangeValuesList() { - return absoluteChangeValues_; - } - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - @java.lang.Override - public java.util.List - getAbsoluteChangeValuesOrBuilderList() { - return absoluteChangeValues_; - } - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - @java.lang.Override - public int getAbsoluteChangeValuesCount() { - return absoluteChangeValues_.size(); - } - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getAbsoluteChangeValues(int index) { - return absoluteChangeValues_.get(index); - } - - /** - * - * - *
    -       * Data for the ABSOLUTE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.ValueOrBuilder getAbsoluteChangeValuesOrBuilder( - int index) { - return absoluteChangeValues_.get(index); - } - - public static final int RELATIVE_CHANGE_VALUES_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private java.util.List relativeChangeValues_; - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - @java.lang.Override - public java.util.List - getRelativeChangeValuesList() { - return relativeChangeValues_; - } - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - @java.lang.Override - public java.util.List - getRelativeChangeValuesOrBuilderList() { - return relativeChangeValues_; - } - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - @java.lang.Override - public int getRelativeChangeValuesCount() { - return relativeChangeValues_.size(); - } - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getRelativeChangeValues(int index) { - return relativeChangeValues_.get(index); - } - - /** - * - * - *
    -       * Data for the RELATIVE_CHANGE MetricValueType.
    -       * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.ValueOrBuilder getRelativeChangeValuesOrBuilder( - int index) { - return relativeChangeValues_.get(index); - } - - public static final int FLAG_VALUES_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.BooleanList flagValues_ = emptyBooleanList(); - - /** - * - * - *
    -       * If true, the flag's conditions are met. If false, the flag's
    -       * conditions are not met. flag_values has the same length as
    -       * flags and index i of flag_values represents the flag at index i
    -       * of flags.
    -       * 
    - * - * repeated bool flag_values = 7; - * - * @return A list containing the flagValues. - */ - @java.lang.Override - public java.util.List getFlagValuesList() { - return flagValues_; - } - - /** - * - * - *
    -       * If true, the flag's conditions are met. If false, the flag's
    -       * conditions are not met. flag_values has the same length as
    -       * flags and index i of flag_values represents the flag at index i
    -       * of flags.
    -       * 
    - * - * repeated bool flag_values = 7; - * - * @return The count of flagValues. - */ - public int getFlagValuesCount() { - return flagValues_.size(); - } - - /** - * - * - *
    -       * If true, the flag's conditions are met. If false, the flag's
    -       * conditions are not met. flag_values has the same length as
    -       * flags and index i of flag_values represents the flag at index i
    -       * of flags.
    -       * 
    - * - * repeated bool flag_values = 7; - * - * @param index The index of the element to return. - * @return The flagValues at the given index. - */ - public boolean getFlagValues(int index) { - return flagValues_.getBoolean(index); - } - - private int flagValuesMemoizedSerializedSize = -1; - - 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(); - for (int i = 0; i < primaryValues_.size(); i++) { - output.writeMessage(1, primaryValues_.get(i)); - } - for (int i = 0; i < primaryPercentOfTotalValues_.size(); i++) { - output.writeMessage(2, primaryPercentOfTotalValues_.get(i)); - } - for (int i = 0; i < comparisonValues_.size(); i++) { - output.writeMessage(3, comparisonValues_.get(i)); - } - for (int i = 0; i < comparisonPercentOfTotalValues_.size(); i++) { - output.writeMessage(4, comparisonPercentOfTotalValues_.get(i)); - } - for (int i = 0; i < absoluteChangeValues_.size(); i++) { - output.writeMessage(5, absoluteChangeValues_.get(i)); - } - for (int i = 0; i < relativeChangeValues_.size(); i++) { - output.writeMessage(6, relativeChangeValues_.get(i)); - } - if (getFlagValuesList().size() > 0) { - output.writeUInt32NoTag(58); - output.writeUInt32NoTag(flagValuesMemoizedSerializedSize); - } - for (int i = 0; i < flagValues_.size(); i++) { - output.writeBoolNoTag(flagValues_.getBoolean(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 < primaryValues_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, primaryValues_.get(i)); - } - for (int i = 0; i < primaryPercentOfTotalValues_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, primaryPercentOfTotalValues_.get(i)); - } - for (int i = 0; i < comparisonValues_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, comparisonValues_.get(i)); - } - for (int i = 0; i < comparisonPercentOfTotalValues_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, comparisonPercentOfTotalValues_.get(i)); - } - for (int i = 0; i < absoluteChangeValues_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, absoluteChangeValues_.get(i)); - } - for (int i = 0; i < relativeChangeValues_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, relativeChangeValues_.get(i)); - } - { - int dataSize = 0; - dataSize = 1 * getFlagValuesList().size(); - size += dataSize; - if (!getFlagValuesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); - } - flagValuesMemoizedSerializedSize = dataSize; - } - 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.admanager.v1.Report.DataTable.MetricValueGroup)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup other = - (com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup) obj; - - if (!getPrimaryValuesList().equals(other.getPrimaryValuesList())) return false; - if (!getPrimaryPercentOfTotalValuesList() - .equals(other.getPrimaryPercentOfTotalValuesList())) return false; - if (!getComparisonValuesList().equals(other.getComparisonValuesList())) return false; - if (!getComparisonPercentOfTotalValuesList() - .equals(other.getComparisonPercentOfTotalValuesList())) return false; - if (!getAbsoluteChangeValuesList().equals(other.getAbsoluteChangeValuesList())) - return false; - if (!getRelativeChangeValuesList().equals(other.getRelativeChangeValuesList())) - return false; - if (!getFlagValuesList().equals(other.getFlagValuesList())) 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 (getPrimaryValuesCount() > 0) { - hash = (37 * hash) + PRIMARY_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getPrimaryValuesList().hashCode(); - } - if (getPrimaryPercentOfTotalValuesCount() > 0) { - hash = (37 * hash) + PRIMARY_PERCENT_OF_TOTAL_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getPrimaryPercentOfTotalValuesList().hashCode(); - } - if (getComparisonValuesCount() > 0) { - hash = (37 * hash) + COMPARISON_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getComparisonValuesList().hashCode(); - } - if (getComparisonPercentOfTotalValuesCount() > 0) { - hash = (37 * hash) + COMPARISON_PERCENT_OF_TOTAL_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getComparisonPercentOfTotalValuesList().hashCode(); - } - if (getAbsoluteChangeValuesCount() > 0) { - hash = (37 * hash) + ABSOLUTE_CHANGE_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getAbsoluteChangeValuesList().hashCode(); - } - if (getRelativeChangeValuesCount() > 0) { - hash = (37 * hash) + RELATIVE_CHANGE_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getRelativeChangeValuesList().hashCode(); - } - if (getFlagValuesCount() > 0) { - hash = (37 * hash) + FLAG_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getFlagValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup 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.admanager.v1.Report.DataTable.MetricValueGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup 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.admanager.v1.Report.DataTable.MetricValueGroup parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -       * Contains all metric values requested for a single date range and set of
    -       * column dimension values (returned in the columns field of the response).
    -       * The order of the metrics in each field corresponds to the order of the
    -       * metrics specified in the request.
    -       * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DataTable.MetricValueGroup} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DataTable.MetricValueGroup) - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.class, - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.Builder.class); - } - - // Construct using - // com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (primaryValuesBuilder_ == null) { - primaryValues_ = java.util.Collections.emptyList(); - } else { - primaryValues_ = null; - primaryValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (primaryPercentOfTotalValuesBuilder_ == null) { - primaryPercentOfTotalValues_ = java.util.Collections.emptyList(); - } else { - primaryPercentOfTotalValues_ = null; - primaryPercentOfTotalValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (comparisonValuesBuilder_ == null) { - comparisonValues_ = java.util.Collections.emptyList(); - } else { - comparisonValues_ = null; - comparisonValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (comparisonPercentOfTotalValuesBuilder_ == null) { - comparisonPercentOfTotalValues_ = java.util.Collections.emptyList(); - } else { - comparisonPercentOfTotalValues_ = null; - comparisonPercentOfTotalValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (absoluteChangeValuesBuilder_ == null) { - absoluteChangeValues_ = java.util.Collections.emptyList(); - } else { - absoluteChangeValues_ = null; - absoluteChangeValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (relativeChangeValuesBuilder_ == null) { - relativeChangeValues_ = java.util.Collections.emptyList(); - } else { - relativeChangeValues_ = null; - relativeChangeValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - flagValues_ = emptyBooleanList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup - getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup build() { - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup buildPartial() { - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup result = - new com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup result) { - if (primaryValuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - primaryValues_ = java.util.Collections.unmodifiableList(primaryValues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.primaryValues_ = primaryValues_; - } else { - result.primaryValues_ = primaryValuesBuilder_.build(); - } - if (primaryPercentOfTotalValuesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - primaryPercentOfTotalValues_ = - java.util.Collections.unmodifiableList(primaryPercentOfTotalValues_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.primaryPercentOfTotalValues_ = primaryPercentOfTotalValues_; - } else { - result.primaryPercentOfTotalValues_ = primaryPercentOfTotalValuesBuilder_.build(); - } - if (comparisonValuesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - comparisonValues_ = java.util.Collections.unmodifiableList(comparisonValues_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.comparisonValues_ = comparisonValues_; - } else { - result.comparisonValues_ = comparisonValuesBuilder_.build(); - } - if (comparisonPercentOfTotalValuesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - comparisonPercentOfTotalValues_ = - java.util.Collections.unmodifiableList(comparisonPercentOfTotalValues_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.comparisonPercentOfTotalValues_ = comparisonPercentOfTotalValues_; - } else { - result.comparisonPercentOfTotalValues_ = comparisonPercentOfTotalValuesBuilder_.build(); - } - if (absoluteChangeValuesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - absoluteChangeValues_ = java.util.Collections.unmodifiableList(absoluteChangeValues_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.absoluteChangeValues_ = absoluteChangeValues_; - } else { - result.absoluteChangeValues_ = absoluteChangeValuesBuilder_.build(); - } - if (relativeChangeValuesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - relativeChangeValues_ = java.util.Collections.unmodifiableList(relativeChangeValues_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.relativeChangeValues_ = relativeChangeValues_; - } else { - result.relativeChangeValues_ = relativeChangeValuesBuilder_.build(); - } - } - - private void buildPartial0( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000040) != 0)) { - flagValues_.makeImmutable(); - result.flagValues_ = flagValues_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup) { - return mergeFrom((com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup other) { - if (other - == com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.getDefaultInstance()) - return this; - if (primaryValuesBuilder_ == null) { - if (!other.primaryValues_.isEmpty()) { - if (primaryValues_.isEmpty()) { - primaryValues_ = other.primaryValues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePrimaryValuesIsMutable(); - primaryValues_.addAll(other.primaryValues_); - } - onChanged(); - } - } else { - if (!other.primaryValues_.isEmpty()) { - if (primaryValuesBuilder_.isEmpty()) { - primaryValuesBuilder_.dispose(); - primaryValuesBuilder_ = null; - primaryValues_ = other.primaryValues_; - bitField0_ = (bitField0_ & ~0x00000001); - primaryValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPrimaryValuesFieldBuilder() - : null; - } else { - primaryValuesBuilder_.addAllMessages(other.primaryValues_); - } - } - } - if (primaryPercentOfTotalValuesBuilder_ == null) { - if (!other.primaryPercentOfTotalValues_.isEmpty()) { - if (primaryPercentOfTotalValues_.isEmpty()) { - primaryPercentOfTotalValues_ = other.primaryPercentOfTotalValues_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePrimaryPercentOfTotalValuesIsMutable(); - primaryPercentOfTotalValues_.addAll(other.primaryPercentOfTotalValues_); - } - onChanged(); - } - } else { - if (!other.primaryPercentOfTotalValues_.isEmpty()) { - if (primaryPercentOfTotalValuesBuilder_.isEmpty()) { - primaryPercentOfTotalValuesBuilder_.dispose(); - primaryPercentOfTotalValuesBuilder_ = null; - primaryPercentOfTotalValues_ = other.primaryPercentOfTotalValues_; - bitField0_ = (bitField0_ & ~0x00000002); - primaryPercentOfTotalValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPrimaryPercentOfTotalValuesFieldBuilder() - : null; - } else { - primaryPercentOfTotalValuesBuilder_.addAllMessages( - other.primaryPercentOfTotalValues_); - } - } - } - if (comparisonValuesBuilder_ == null) { - if (!other.comparisonValues_.isEmpty()) { - if (comparisonValues_.isEmpty()) { - comparisonValues_ = other.comparisonValues_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureComparisonValuesIsMutable(); - comparisonValues_.addAll(other.comparisonValues_); - } - onChanged(); - } - } else { - if (!other.comparisonValues_.isEmpty()) { - if (comparisonValuesBuilder_.isEmpty()) { - comparisonValuesBuilder_.dispose(); - comparisonValuesBuilder_ = null; - comparisonValues_ = other.comparisonValues_; - bitField0_ = (bitField0_ & ~0x00000004); - comparisonValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getComparisonValuesFieldBuilder() - : null; - } else { - comparisonValuesBuilder_.addAllMessages(other.comparisonValues_); - } - } - } - if (comparisonPercentOfTotalValuesBuilder_ == null) { - if (!other.comparisonPercentOfTotalValues_.isEmpty()) { - if (comparisonPercentOfTotalValues_.isEmpty()) { - comparisonPercentOfTotalValues_ = other.comparisonPercentOfTotalValues_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureComparisonPercentOfTotalValuesIsMutable(); - comparisonPercentOfTotalValues_.addAll(other.comparisonPercentOfTotalValues_); - } - onChanged(); - } - } else { - if (!other.comparisonPercentOfTotalValues_.isEmpty()) { - if (comparisonPercentOfTotalValuesBuilder_.isEmpty()) { - comparisonPercentOfTotalValuesBuilder_.dispose(); - comparisonPercentOfTotalValuesBuilder_ = null; - comparisonPercentOfTotalValues_ = other.comparisonPercentOfTotalValues_; - bitField0_ = (bitField0_ & ~0x00000008); - comparisonPercentOfTotalValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getComparisonPercentOfTotalValuesFieldBuilder() - : null; - } else { - comparisonPercentOfTotalValuesBuilder_.addAllMessages( - other.comparisonPercentOfTotalValues_); - } - } - } - if (absoluteChangeValuesBuilder_ == null) { - if (!other.absoluteChangeValues_.isEmpty()) { - if (absoluteChangeValues_.isEmpty()) { - absoluteChangeValues_ = other.absoluteChangeValues_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAbsoluteChangeValuesIsMutable(); - absoluteChangeValues_.addAll(other.absoluteChangeValues_); - } - onChanged(); - } - } else { - if (!other.absoluteChangeValues_.isEmpty()) { - if (absoluteChangeValuesBuilder_.isEmpty()) { - absoluteChangeValuesBuilder_.dispose(); - absoluteChangeValuesBuilder_ = null; - absoluteChangeValues_ = other.absoluteChangeValues_; - bitField0_ = (bitField0_ & ~0x00000010); - absoluteChangeValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAbsoluteChangeValuesFieldBuilder() - : null; - } else { - absoluteChangeValuesBuilder_.addAllMessages(other.absoluteChangeValues_); - } - } - } - if (relativeChangeValuesBuilder_ == null) { - if (!other.relativeChangeValues_.isEmpty()) { - if (relativeChangeValues_.isEmpty()) { - relativeChangeValues_ = other.relativeChangeValues_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureRelativeChangeValuesIsMutable(); - relativeChangeValues_.addAll(other.relativeChangeValues_); - } - onChanged(); - } - } else { - if (!other.relativeChangeValues_.isEmpty()) { - if (relativeChangeValuesBuilder_.isEmpty()) { - relativeChangeValuesBuilder_.dispose(); - relativeChangeValuesBuilder_ = null; - relativeChangeValues_ = other.relativeChangeValues_; - bitField0_ = (bitField0_ & ~0x00000020); - relativeChangeValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRelativeChangeValuesFieldBuilder() - : null; - } else { - relativeChangeValuesBuilder_.addAllMessages(other.relativeChangeValues_); - } - } - } - if (!other.flagValues_.isEmpty()) { - if (flagValues_.isEmpty()) { - flagValues_ = other.flagValues_; - flagValues_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureFlagValuesIsMutable(); - flagValues_.addAll(other.flagValues_); - } - 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.ads.admanager.v1.Report.Value m = - input.readMessage( - com.google.ads.admanager.v1.Report.Value.parser(), extensionRegistry); - if (primaryValuesBuilder_ == null) { - ensurePrimaryValuesIsMutable(); - primaryValues_.add(m); - } else { - primaryValuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.ads.admanager.v1.Report.Value m = - input.readMessage( - com.google.ads.admanager.v1.Report.Value.parser(), extensionRegistry); - if (primaryPercentOfTotalValuesBuilder_ == null) { - ensurePrimaryPercentOfTotalValuesIsMutable(); - primaryPercentOfTotalValues_.add(m); - } else { - primaryPercentOfTotalValuesBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.ads.admanager.v1.Report.Value m = - input.readMessage( - com.google.ads.admanager.v1.Report.Value.parser(), extensionRegistry); - if (comparisonValuesBuilder_ == null) { - ensureComparisonValuesIsMutable(); - comparisonValues_.add(m); - } else { - comparisonValuesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - com.google.ads.admanager.v1.Report.Value m = - input.readMessage( - com.google.ads.admanager.v1.Report.Value.parser(), extensionRegistry); - if (comparisonPercentOfTotalValuesBuilder_ == null) { - ensureComparisonPercentOfTotalValuesIsMutable(); - comparisonPercentOfTotalValues_.add(m); - } else { - comparisonPercentOfTotalValuesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - com.google.ads.admanager.v1.Report.Value m = - input.readMessage( - com.google.ads.admanager.v1.Report.Value.parser(), extensionRegistry); - if (absoluteChangeValuesBuilder_ == null) { - ensureAbsoluteChangeValuesIsMutable(); - absoluteChangeValues_.add(m); - } else { - absoluteChangeValuesBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - com.google.ads.admanager.v1.Report.Value m = - input.readMessage( - com.google.ads.admanager.v1.Report.Value.parser(), extensionRegistry); - if (relativeChangeValuesBuilder_ == null) { - ensureRelativeChangeValuesIsMutable(); - relativeChangeValues_.add(m); - } else { - relativeChangeValuesBuilder_.addMessage(m); - } - break; - } // case 50 - case 56: - { - boolean v = input.readBool(); - ensureFlagValuesIsMutable(); - flagValues_.addBoolean(v); - break; - } // case 56 - case 58: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureFlagValuesIsMutable(alloc / 1); - while (input.getBytesUntilLimit() > 0) { - flagValues_.addBoolean(input.readBool()); - } - input.popLimit(limit); - break; - } // case 58 - 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 primaryValues_ = - java.util.Collections.emptyList(); - - private void ensurePrimaryValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - primaryValues_ = - new java.util.ArrayList(primaryValues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - primaryValuesBuilder_; - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public java.util.List getPrimaryValuesList() { - if (primaryValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(primaryValues_); - } else { - return primaryValuesBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public int getPrimaryValuesCount() { - if (primaryValuesBuilder_ == null) { - return primaryValues_.size(); - } else { - return primaryValuesBuilder_.getCount(); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public com.google.ads.admanager.v1.Report.Value getPrimaryValues(int index) { - if (primaryValuesBuilder_ == null) { - return primaryValues_.get(index); - } else { - return primaryValuesBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public Builder setPrimaryValues(int index, com.google.ads.admanager.v1.Report.Value value) { - if (primaryValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrimaryValuesIsMutable(); - primaryValues_.set(index, value); - onChanged(); - } else { - primaryValuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public Builder setPrimaryValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (primaryValuesBuilder_ == null) { - ensurePrimaryValuesIsMutable(); - primaryValues_.set(index, builderForValue.build()); - onChanged(); - } else { - primaryValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public Builder addPrimaryValues(com.google.ads.admanager.v1.Report.Value value) { - if (primaryValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrimaryValuesIsMutable(); - primaryValues_.add(value); - onChanged(); - } else { - primaryValuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public Builder addPrimaryValues(int index, com.google.ads.admanager.v1.Report.Value value) { - if (primaryValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrimaryValuesIsMutable(); - primaryValues_.add(index, value); - onChanged(); - } else { - primaryValuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public Builder addPrimaryValues( - com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (primaryValuesBuilder_ == null) { - ensurePrimaryValuesIsMutable(); - primaryValues_.add(builderForValue.build()); - onChanged(); - } else { - primaryValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public Builder addPrimaryValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (primaryValuesBuilder_ == null) { - ensurePrimaryValuesIsMutable(); - primaryValues_.add(index, builderForValue.build()); - onChanged(); - } else { - primaryValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public Builder addAllPrimaryValues( - java.lang.Iterable values) { - if (primaryValuesBuilder_ == null) { - ensurePrimaryValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, primaryValues_); - onChanged(); - } else { - primaryValuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public Builder clearPrimaryValues() { - if (primaryValuesBuilder_ == null) { - primaryValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - primaryValuesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public Builder removePrimaryValues(int index) { - if (primaryValuesBuilder_ == null) { - ensurePrimaryValuesIsMutable(); - primaryValues_.remove(index); - onChanged(); - } else { - primaryValuesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public com.google.ads.admanager.v1.Report.Value.Builder getPrimaryValuesBuilder(int index) { - return getPrimaryValuesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public com.google.ads.admanager.v1.Report.ValueOrBuilder getPrimaryValuesOrBuilder( - int index) { - if (primaryValuesBuilder_ == null) { - return primaryValues_.get(index); - } else { - return primaryValuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public java.util.List - getPrimaryValuesOrBuilderList() { - if (primaryValuesBuilder_ != null) { - return primaryValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(primaryValues_); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addPrimaryValuesBuilder() { - return getPrimaryValuesFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addPrimaryValuesBuilder(int index) { - return getPrimaryValuesFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the PRIMARY MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - public java.util.List - getPrimaryValuesBuilderList() { - return getPrimaryValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - getPrimaryValuesFieldBuilder() { - if (primaryValuesBuilder_ == null) { - primaryValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder>( - primaryValues_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - primaryValues_ = null; - } - return primaryValuesBuilder_; - } - - private java.util.List - primaryPercentOfTotalValues_ = java.util.Collections.emptyList(); - - private void ensurePrimaryPercentOfTotalValuesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - primaryPercentOfTotalValues_ = - new java.util.ArrayList( - primaryPercentOfTotalValues_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - primaryPercentOfTotalValuesBuilder_; - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public java.util.List - getPrimaryPercentOfTotalValuesList() { - if (primaryPercentOfTotalValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(primaryPercentOfTotalValues_); - } else { - return primaryPercentOfTotalValuesBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public int getPrimaryPercentOfTotalValuesCount() { - if (primaryPercentOfTotalValuesBuilder_ == null) { - return primaryPercentOfTotalValues_.size(); - } else { - return primaryPercentOfTotalValuesBuilder_.getCount(); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public com.google.ads.admanager.v1.Report.Value getPrimaryPercentOfTotalValues(int index) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - return primaryPercentOfTotalValues_.get(index); - } else { - return primaryPercentOfTotalValuesBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public Builder setPrimaryPercentOfTotalValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrimaryPercentOfTotalValuesIsMutable(); - primaryPercentOfTotalValues_.set(index, value); - onChanged(); - } else { - primaryPercentOfTotalValuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public Builder setPrimaryPercentOfTotalValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - ensurePrimaryPercentOfTotalValuesIsMutable(); - primaryPercentOfTotalValues_.set(index, builderForValue.build()); - onChanged(); - } else { - primaryPercentOfTotalValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public Builder addPrimaryPercentOfTotalValues( - com.google.ads.admanager.v1.Report.Value value) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrimaryPercentOfTotalValuesIsMutable(); - primaryPercentOfTotalValues_.add(value); - onChanged(); - } else { - primaryPercentOfTotalValuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public Builder addPrimaryPercentOfTotalValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrimaryPercentOfTotalValuesIsMutable(); - primaryPercentOfTotalValues_.add(index, value); - onChanged(); - } else { - primaryPercentOfTotalValuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public Builder addPrimaryPercentOfTotalValues( - com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - ensurePrimaryPercentOfTotalValuesIsMutable(); - primaryPercentOfTotalValues_.add(builderForValue.build()); - onChanged(); - } else { - primaryPercentOfTotalValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public Builder addPrimaryPercentOfTotalValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - ensurePrimaryPercentOfTotalValuesIsMutable(); - primaryPercentOfTotalValues_.add(index, builderForValue.build()); - onChanged(); - } else { - primaryPercentOfTotalValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public Builder addAllPrimaryPercentOfTotalValues( - java.lang.Iterable values) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - ensurePrimaryPercentOfTotalValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, primaryPercentOfTotalValues_); - onChanged(); - } else { - primaryPercentOfTotalValuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public Builder clearPrimaryPercentOfTotalValues() { - if (primaryPercentOfTotalValuesBuilder_ == null) { - primaryPercentOfTotalValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - primaryPercentOfTotalValuesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public Builder removePrimaryPercentOfTotalValues(int index) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - ensurePrimaryPercentOfTotalValuesIsMutable(); - primaryPercentOfTotalValues_.remove(index); - onChanged(); - } else { - primaryPercentOfTotalValuesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder - getPrimaryPercentOfTotalValuesBuilder(int index) { - return getPrimaryPercentOfTotalValuesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public com.google.ads.admanager.v1.Report.ValueOrBuilder - getPrimaryPercentOfTotalValuesOrBuilder(int index) { - if (primaryPercentOfTotalValuesBuilder_ == null) { - return primaryPercentOfTotalValues_.get(index); - } else { - return primaryPercentOfTotalValuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public java.util.List - getPrimaryPercentOfTotalValuesOrBuilderList() { - if (primaryPercentOfTotalValuesBuilder_ != null) { - return primaryPercentOfTotalValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(primaryPercentOfTotalValues_); - } - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder - addPrimaryPercentOfTotalValuesBuilder() { - return getPrimaryPercentOfTotalValuesFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder - addPrimaryPercentOfTotalValuesBuilder(int index) { - return getPrimaryPercentOfTotalValuesFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * - */ - public java.util.List - getPrimaryPercentOfTotalValuesBuilderList() { - return getPrimaryPercentOfTotalValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - getPrimaryPercentOfTotalValuesFieldBuilder() { - if (primaryPercentOfTotalValuesBuilder_ == null) { - primaryPercentOfTotalValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder>( - primaryPercentOfTotalValues_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - primaryPercentOfTotalValues_ = null; - } - return primaryPercentOfTotalValuesBuilder_; - } - - private java.util.List comparisonValues_ = - java.util.Collections.emptyList(); - - private void ensureComparisonValuesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - comparisonValues_ = - new java.util.ArrayList( - comparisonValues_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - comparisonValuesBuilder_; - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public java.util.List getComparisonValuesList() { - if (comparisonValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(comparisonValues_); - } else { - return comparisonValuesBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public int getComparisonValuesCount() { - if (comparisonValuesBuilder_ == null) { - return comparisonValues_.size(); - } else { - return comparisonValuesBuilder_.getCount(); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public com.google.ads.admanager.v1.Report.Value getComparisonValues(int index) { - if (comparisonValuesBuilder_ == null) { - return comparisonValues_.get(index); - } else { - return comparisonValuesBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public Builder setComparisonValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (comparisonValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComparisonValuesIsMutable(); - comparisonValues_.set(index, value); - onChanged(); - } else { - comparisonValuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public Builder setComparisonValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (comparisonValuesBuilder_ == null) { - ensureComparisonValuesIsMutable(); - comparisonValues_.set(index, builderForValue.build()); - onChanged(); - } else { - comparisonValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public Builder addComparisonValues(com.google.ads.admanager.v1.Report.Value value) { - if (comparisonValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComparisonValuesIsMutable(); - comparisonValues_.add(value); - onChanged(); - } else { - comparisonValuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public Builder addComparisonValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (comparisonValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComparisonValuesIsMutable(); - comparisonValues_.add(index, value); - onChanged(); - } else { - comparisonValuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public Builder addComparisonValues( - com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (comparisonValuesBuilder_ == null) { - ensureComparisonValuesIsMutable(); - comparisonValues_.add(builderForValue.build()); - onChanged(); - } else { - comparisonValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public Builder addComparisonValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (comparisonValuesBuilder_ == null) { - ensureComparisonValuesIsMutable(); - comparisonValues_.add(index, builderForValue.build()); - onChanged(); - } else { - comparisonValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public Builder addAllComparisonValues( - java.lang.Iterable values) { - if (comparisonValuesBuilder_ == null) { - ensureComparisonValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, comparisonValues_); - onChanged(); - } else { - comparisonValuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public Builder clearComparisonValues() { - if (comparisonValuesBuilder_ == null) { - comparisonValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - comparisonValuesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public Builder removeComparisonValues(int index) { - if (comparisonValuesBuilder_ == null) { - ensureComparisonValuesIsMutable(); - comparisonValues_.remove(index); - onChanged(); - } else { - comparisonValuesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public com.google.ads.admanager.v1.Report.Value.Builder getComparisonValuesBuilder( - int index) { - return getComparisonValuesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public com.google.ads.admanager.v1.Report.ValueOrBuilder getComparisonValuesOrBuilder( - int index) { - if (comparisonValuesBuilder_ == null) { - return comparisonValues_.get(index); - } else { - return comparisonValuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public java.util.List - getComparisonValuesOrBuilderList() { - if (comparisonValuesBuilder_ != null) { - return comparisonValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(comparisonValues_); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addComparisonValuesBuilder() { - return getComparisonValuesFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addComparisonValuesBuilder( - int index) { - return getComparisonValuesFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the COMPARISON MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - public java.util.List - getComparisonValuesBuilderList() { - return getComparisonValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - getComparisonValuesFieldBuilder() { - if (comparisonValuesBuilder_ == null) { - comparisonValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder>( - comparisonValues_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - comparisonValues_ = null; - } - return comparisonValuesBuilder_; - } - - private java.util.List - comparisonPercentOfTotalValues_ = java.util.Collections.emptyList(); - - private void ensureComparisonPercentOfTotalValuesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - comparisonPercentOfTotalValues_ = - new java.util.ArrayList( - comparisonPercentOfTotalValues_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - comparisonPercentOfTotalValuesBuilder_; - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public java.util.List - getComparisonPercentOfTotalValuesList() { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(comparisonPercentOfTotalValues_); - } else { - return comparisonPercentOfTotalValuesBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public int getComparisonPercentOfTotalValuesCount() { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - return comparisonPercentOfTotalValues_.size(); - } else { - return comparisonPercentOfTotalValuesBuilder_.getCount(); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public com.google.ads.admanager.v1.Report.Value getComparisonPercentOfTotalValues( - int index) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - return comparisonPercentOfTotalValues_.get(index); - } else { - return comparisonPercentOfTotalValuesBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public Builder setComparisonPercentOfTotalValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComparisonPercentOfTotalValuesIsMutable(); - comparisonPercentOfTotalValues_.set(index, value); - onChanged(); - } else { - comparisonPercentOfTotalValuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public Builder setComparisonPercentOfTotalValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - ensureComparisonPercentOfTotalValuesIsMutable(); - comparisonPercentOfTotalValues_.set(index, builderForValue.build()); - onChanged(); - } else { - comparisonPercentOfTotalValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public Builder addComparisonPercentOfTotalValues( - com.google.ads.admanager.v1.Report.Value value) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComparisonPercentOfTotalValuesIsMutable(); - comparisonPercentOfTotalValues_.add(value); - onChanged(); - } else { - comparisonPercentOfTotalValuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public Builder addComparisonPercentOfTotalValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComparisonPercentOfTotalValuesIsMutable(); - comparisonPercentOfTotalValues_.add(index, value); - onChanged(); - } else { - comparisonPercentOfTotalValuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public Builder addComparisonPercentOfTotalValues( - com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - ensureComparisonPercentOfTotalValuesIsMutable(); - comparisonPercentOfTotalValues_.add(builderForValue.build()); - onChanged(); - } else { - comparisonPercentOfTotalValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public Builder addComparisonPercentOfTotalValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - ensureComparisonPercentOfTotalValuesIsMutable(); - comparisonPercentOfTotalValues_.add(index, builderForValue.build()); - onChanged(); - } else { - comparisonPercentOfTotalValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public Builder addAllComparisonPercentOfTotalValues( - java.lang.Iterable values) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - ensureComparisonPercentOfTotalValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, comparisonPercentOfTotalValues_); - onChanged(); - } else { - comparisonPercentOfTotalValuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public Builder clearComparisonPercentOfTotalValues() { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - comparisonPercentOfTotalValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - comparisonPercentOfTotalValuesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public Builder removeComparisonPercentOfTotalValues(int index) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - ensureComparisonPercentOfTotalValuesIsMutable(); - comparisonPercentOfTotalValues_.remove(index); - onChanged(); - } else { - comparisonPercentOfTotalValuesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder - getComparisonPercentOfTotalValuesBuilder(int index) { - return getComparisonPercentOfTotalValuesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public com.google.ads.admanager.v1.Report.ValueOrBuilder - getComparisonPercentOfTotalValuesOrBuilder(int index) { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - return comparisonPercentOfTotalValues_.get(index); - } else { - return comparisonPercentOfTotalValuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public java.util.List - getComparisonPercentOfTotalValuesOrBuilderList() { - if (comparisonPercentOfTotalValuesBuilder_ != null) { - return comparisonPercentOfTotalValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(comparisonPercentOfTotalValues_); - } - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder - addComparisonPercentOfTotalValuesBuilder() { - return getComparisonPercentOfTotalValuesFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder - addComparisonPercentOfTotalValuesBuilder(int index) { - return getComparisonPercentOfTotalValuesFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * - */ - public java.util.List - getComparisonPercentOfTotalValuesBuilderList() { - return getComparisonPercentOfTotalValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - getComparisonPercentOfTotalValuesFieldBuilder() { - if (comparisonPercentOfTotalValuesBuilder_ == null) { - comparisonPercentOfTotalValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder>( - comparisonPercentOfTotalValues_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - comparisonPercentOfTotalValues_ = null; - } - return comparisonPercentOfTotalValuesBuilder_; - } - - private java.util.List absoluteChangeValues_ = - java.util.Collections.emptyList(); - - private void ensureAbsoluteChangeValuesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - absoluteChangeValues_ = - new java.util.ArrayList( - absoluteChangeValues_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - absoluteChangeValuesBuilder_; - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public java.util.List - getAbsoluteChangeValuesList() { - if (absoluteChangeValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(absoluteChangeValues_); - } else { - return absoluteChangeValuesBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public int getAbsoluteChangeValuesCount() { - if (absoluteChangeValuesBuilder_ == null) { - return absoluteChangeValues_.size(); - } else { - return absoluteChangeValuesBuilder_.getCount(); - } - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public com.google.ads.admanager.v1.Report.Value getAbsoluteChangeValues(int index) { - if (absoluteChangeValuesBuilder_ == null) { - return absoluteChangeValues_.get(index); - } else { - return absoluteChangeValuesBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public Builder setAbsoluteChangeValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (absoluteChangeValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAbsoluteChangeValuesIsMutable(); - absoluteChangeValues_.set(index, value); - onChanged(); - } else { - absoluteChangeValuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public Builder setAbsoluteChangeValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (absoluteChangeValuesBuilder_ == null) { - ensureAbsoluteChangeValuesIsMutable(); - absoluteChangeValues_.set(index, builderForValue.build()); - onChanged(); - } else { - absoluteChangeValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public Builder addAbsoluteChangeValues(com.google.ads.admanager.v1.Report.Value value) { - if (absoluteChangeValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAbsoluteChangeValuesIsMutable(); - absoluteChangeValues_.add(value); - onChanged(); - } else { - absoluteChangeValuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public Builder addAbsoluteChangeValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (absoluteChangeValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAbsoluteChangeValuesIsMutable(); - absoluteChangeValues_.add(index, value); - onChanged(); - } else { - absoluteChangeValuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public Builder addAbsoluteChangeValues( - com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (absoluteChangeValuesBuilder_ == null) { - ensureAbsoluteChangeValuesIsMutable(); - absoluteChangeValues_.add(builderForValue.build()); - onChanged(); - } else { - absoluteChangeValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public Builder addAbsoluteChangeValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (absoluteChangeValuesBuilder_ == null) { - ensureAbsoluteChangeValuesIsMutable(); - absoluteChangeValues_.add(index, builderForValue.build()); - onChanged(); - } else { - absoluteChangeValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public Builder addAllAbsoluteChangeValues( - java.lang.Iterable values) { - if (absoluteChangeValuesBuilder_ == null) { - ensureAbsoluteChangeValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, absoluteChangeValues_); - onChanged(); - } else { - absoluteChangeValuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public Builder clearAbsoluteChangeValues() { - if (absoluteChangeValuesBuilder_ == null) { - absoluteChangeValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - absoluteChangeValuesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public Builder removeAbsoluteChangeValues(int index) { - if (absoluteChangeValuesBuilder_ == null) { - ensureAbsoluteChangeValuesIsMutable(); - absoluteChangeValues_.remove(index); - onChanged(); - } else { - absoluteChangeValuesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public com.google.ads.admanager.v1.Report.Value.Builder getAbsoluteChangeValuesBuilder( - int index) { - return getAbsoluteChangeValuesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public com.google.ads.admanager.v1.Report.ValueOrBuilder getAbsoluteChangeValuesOrBuilder( - int index) { - if (absoluteChangeValuesBuilder_ == null) { - return absoluteChangeValues_.get(index); - } else { - return absoluteChangeValuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public java.util.List - getAbsoluteChangeValuesOrBuilderList() { - if (absoluteChangeValuesBuilder_ != null) { - return absoluteChangeValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(absoluteChangeValues_); - } - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addAbsoluteChangeValuesBuilder() { - return getAbsoluteChangeValuesFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addAbsoluteChangeValuesBuilder( - int index) { - return getAbsoluteChangeValuesFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the ABSOLUTE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - public java.util.List - getAbsoluteChangeValuesBuilderList() { - return getAbsoluteChangeValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - getAbsoluteChangeValuesFieldBuilder() { - if (absoluteChangeValuesBuilder_ == null) { - absoluteChangeValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder>( - absoluteChangeValues_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - absoluteChangeValues_ = null; - } - return absoluteChangeValuesBuilder_; - } - - private java.util.List relativeChangeValues_ = - java.util.Collections.emptyList(); - - private void ensureRelativeChangeValuesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - relativeChangeValues_ = - new java.util.ArrayList( - relativeChangeValues_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - relativeChangeValuesBuilder_; - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public java.util.List - getRelativeChangeValuesList() { - if (relativeChangeValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(relativeChangeValues_); - } else { - return relativeChangeValuesBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public int getRelativeChangeValuesCount() { - if (relativeChangeValuesBuilder_ == null) { - return relativeChangeValues_.size(); - } else { - return relativeChangeValuesBuilder_.getCount(); - } - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public com.google.ads.admanager.v1.Report.Value getRelativeChangeValues(int index) { - if (relativeChangeValuesBuilder_ == null) { - return relativeChangeValues_.get(index); - } else { - return relativeChangeValuesBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public Builder setRelativeChangeValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (relativeChangeValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRelativeChangeValuesIsMutable(); - relativeChangeValues_.set(index, value); - onChanged(); - } else { - relativeChangeValuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public Builder setRelativeChangeValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (relativeChangeValuesBuilder_ == null) { - ensureRelativeChangeValuesIsMutable(); - relativeChangeValues_.set(index, builderForValue.build()); - onChanged(); - } else { - relativeChangeValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public Builder addRelativeChangeValues(com.google.ads.admanager.v1.Report.Value value) { - if (relativeChangeValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRelativeChangeValuesIsMutable(); - relativeChangeValues_.add(value); - onChanged(); - } else { - relativeChangeValuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public Builder addRelativeChangeValues( - int index, com.google.ads.admanager.v1.Report.Value value) { - if (relativeChangeValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRelativeChangeValuesIsMutable(); - relativeChangeValues_.add(index, value); - onChanged(); - } else { - relativeChangeValuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public Builder addRelativeChangeValues( - com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (relativeChangeValuesBuilder_ == null) { - ensureRelativeChangeValuesIsMutable(); - relativeChangeValues_.add(builderForValue.build()); - onChanged(); - } else { - relativeChangeValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public Builder addRelativeChangeValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (relativeChangeValuesBuilder_ == null) { - ensureRelativeChangeValuesIsMutable(); - relativeChangeValues_.add(index, builderForValue.build()); - onChanged(); - } else { - relativeChangeValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public Builder addAllRelativeChangeValues( - java.lang.Iterable values) { - if (relativeChangeValuesBuilder_ == null) { - ensureRelativeChangeValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relativeChangeValues_); - onChanged(); - } else { - relativeChangeValuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public Builder clearRelativeChangeValues() { - if (relativeChangeValuesBuilder_ == null) { - relativeChangeValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - relativeChangeValuesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public Builder removeRelativeChangeValues(int index) { - if (relativeChangeValuesBuilder_ == null) { - ensureRelativeChangeValuesIsMutable(); - relativeChangeValues_.remove(index); - onChanged(); - } else { - relativeChangeValuesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public com.google.ads.admanager.v1.Report.Value.Builder getRelativeChangeValuesBuilder( - int index) { - return getRelativeChangeValuesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public com.google.ads.admanager.v1.Report.ValueOrBuilder getRelativeChangeValuesOrBuilder( - int index) { - if (relativeChangeValuesBuilder_ == null) { - return relativeChangeValues_.get(index); - } else { - return relativeChangeValuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public java.util.List - getRelativeChangeValuesOrBuilderList() { - if (relativeChangeValuesBuilder_ != null) { - return relativeChangeValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(relativeChangeValues_); - } - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addRelativeChangeValuesBuilder() { - return getRelativeChangeValuesFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public com.google.ads.admanager.v1.Report.Value.Builder addRelativeChangeValuesBuilder( - int index) { - return getRelativeChangeValuesFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Data for the RELATIVE_CHANGE MetricValueType.
    -         * 
    - * - * repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - public java.util.List - getRelativeChangeValuesBuilderList() { - return getRelativeChangeValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - getRelativeChangeValuesFieldBuilder() { - if (relativeChangeValuesBuilder_ == null) { - relativeChangeValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder>( - relativeChangeValues_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - relativeChangeValues_ = null; - } - return relativeChangeValuesBuilder_; - } - - private com.google.protobuf.Internal.BooleanList flagValues_ = emptyBooleanList(); - - private void ensureFlagValuesIsMutable() { - if (!flagValues_.isModifiable()) { - flagValues_ = makeMutableCopy(flagValues_); - } - bitField0_ |= 0x00000040; - } - - private void ensureFlagValuesIsMutable(int capacity) { - if (!flagValues_.isModifiable()) { - flagValues_ = makeMutableCopy(flagValues_, capacity); - } - bitField0_ |= 0x00000040; - } - - /** - * - * - *
    -         * If true, the flag's conditions are met. If false, the flag's
    -         * conditions are not met. flag_values has the same length as
    -         * flags and index i of flag_values represents the flag at index i
    -         * of flags.
    -         * 
    - * - * repeated bool flag_values = 7; - * - * @return A list containing the flagValues. - */ - public java.util.List getFlagValuesList() { - flagValues_.makeImmutable(); - return flagValues_; - } - - /** - * - * - *
    -         * If true, the flag's conditions are met. If false, the flag's
    -         * conditions are not met. flag_values has the same length as
    -         * flags and index i of flag_values represents the flag at index i
    -         * of flags.
    -         * 
    - * - * repeated bool flag_values = 7; - * - * @return The count of flagValues. - */ - public int getFlagValuesCount() { - return flagValues_.size(); - } - - /** - * - * - *
    -         * If true, the flag's conditions are met. If false, the flag's
    -         * conditions are not met. flag_values has the same length as
    -         * flags and index i of flag_values represents the flag at index i
    -         * of flags.
    -         * 
    - * - * repeated bool flag_values = 7; - * - * @param index The index of the element to return. - * @return The flagValues at the given index. - */ - public boolean getFlagValues(int index) { - return flagValues_.getBoolean(index); - } - - /** - * - * - *
    -         * If true, the flag's conditions are met. If false, the flag's
    -         * conditions are not met. flag_values has the same length as
    -         * flags and index i of flag_values represents the flag at index i
    -         * of flags.
    -         * 
    - * - * repeated bool flag_values = 7; - * - * @param index The index to set the value at. - * @param value The flagValues to set. - * @return This builder for chaining. - */ - public Builder setFlagValues(int index, boolean value) { - - ensureFlagValuesIsMutable(); - flagValues_.setBoolean(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
    -         * If true, the flag's conditions are met. If false, the flag's
    -         * conditions are not met. flag_values has the same length as
    -         * flags and index i of flag_values represents the flag at index i
    -         * of flags.
    -         * 
    - * - * repeated bool flag_values = 7; - * - * @param value The flagValues to add. - * @return This builder for chaining. - */ - public Builder addFlagValues(boolean value) { - - ensureFlagValuesIsMutable(); - flagValues_.addBoolean(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
    -         * If true, the flag's conditions are met. If false, the flag's
    -         * conditions are not met. flag_values has the same length as
    -         * flags and index i of flag_values represents the flag at index i
    -         * of flags.
    -         * 
    - * - * repeated bool flag_values = 7; - * - * @param values The flagValues to add. - * @return This builder for chaining. - */ - public Builder addAllFlagValues(java.lang.Iterable values) { - ensureFlagValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, flagValues_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
    -         * If true, the flag's conditions are met. If false, the flag's
    -         * conditions are not met. flag_values has the same length as
    -         * flags and index i of flag_values represents the flag at index i
    -         * of flags.
    -         * 
    - * - * repeated bool flag_values = 7; - * - * @return This builder for chaining. - */ - public Builder clearFlagValues() { - flagValues_ = emptyBooleanList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.DataTable.MetricValueGroup) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.DataTable.MetricValueGroup) - private static final com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup(); - } - - public static com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricValueGroup 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.admanager.v1.Report.DataTable.MetricValueGroup - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - 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.admanager.v1.Report.DataTable)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.DataTable other = - (com.google.ads.admanager.v1.Report.DataTable) 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.admanager.v1.Report.DataTable parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DataTable 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.admanager.v1.Report.DataTable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DataTable 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.admanager.v1.Report.DataTable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DataTable parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DataTable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DataTable parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DataTable parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DataTable parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DataTable parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DataTable parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.DataTable prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * A table containing report data including dimension and metric values.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DataTable} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DataTable) - com.google.ads.admanager.v1.Report.DataTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DataTable.class, - com.google.ads.admanager.v1.Report.DataTable.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.DataTable.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DataTable_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.DataTable.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable build() { - com.google.ads.admanager.v1.Report.DataTable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DataTable buildPartial() { - com.google.ads.admanager.v1.Report.DataTable result = - new com.google.ads.admanager.v1.Report.DataTable(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.DataTable) { - return mergeFrom((com.google.ads.admanager.v1.Report.DataTable) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.DataTable other) { - if (other == com.google.ads.admanager.v1.Report.DataTable.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; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.DataTable) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.DataTable) - private static final com.google.ads.admanager.v1.Report.DataTable DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.DataTable(); - } - - public static com.google.ads.admanager.v1.Report.DataTable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataTable 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.admanager.v1.Report.DataTable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface FieldOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Field) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * The dimension this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return Whether the dimension field is set. - */ - boolean hasDimension(); - - /** - * - * - *
    -     * The dimension this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return The enum numeric value on the wire for dimension. - */ - int getDimensionValue(); - - /** - * - * - *
    -     * The dimension this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return The dimension. - */ - com.google.ads.admanager.v1.Report.Dimension getDimension(); - - /** - * - * - *
    -     * The metric this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return Whether the metric field is set. - */ - boolean hasMetric(); - - /** - * - * - *
    -     * The metric this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return The enum numeric value on the wire for metric. - */ - int getMetricValue(); - - /** - * - * - *
    -     * The metric this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return The metric. - */ - com.google.ads.admanager.v1.Report.Metric getMetric(); - - com.google.ads.admanager.v1.Report.Field.FieldCase getFieldCase(); - } - - /** - * - * - *
    -   * A dimension or a metric in a report.
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Field} - */ - public static final class Field extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Field) - FieldOrBuilder { - private static final long serialVersionUID = 0L; - - // Use Field.newBuilder() to construct. - private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Field() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Field(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Field_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Field.class, - com.google.ads.admanager.v1.Report.Field.Builder.class); - } - - private int fieldCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object field_; - - public enum FieldCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DIMENSION(1), - METRIC(2), - FIELD_NOT_SET(0); - private final int value; - - private FieldCase(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 FieldCase valueOf(int value) { - return forNumber(value); - } - - public static FieldCase forNumber(int value) { - switch (value) { - case 1: - return DIMENSION; - case 2: - return METRIC; - case 0: - return FIELD_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public FieldCase getFieldCase() { - return FieldCase.forNumber(fieldCase_); - } - - public static final int DIMENSION_FIELD_NUMBER = 1; - - /** - * - * - *
    -     * The dimension this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return Whether the dimension field is set. - */ - public boolean hasDimension() { - return fieldCase_ == 1; - } - - /** - * - * - *
    -     * The dimension this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return The enum numeric value on the wire for dimension. - */ - public int getDimensionValue() { - if (fieldCase_ == 1) { - return (java.lang.Integer) field_; - } - return 0; - } - - /** - * - * - *
    -     * The dimension this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return The dimension. - */ - public com.google.ads.admanager.v1.Report.Dimension getDimension() { - if (fieldCase_ == 1) { - com.google.ads.admanager.v1.Report.Dimension result = - com.google.ads.admanager.v1.Report.Dimension.forNumber((java.lang.Integer) field_); - return result == null ? com.google.ads.admanager.v1.Report.Dimension.UNRECOGNIZED : result; - } - return com.google.ads.admanager.v1.Report.Dimension.DIMENSION_UNSPECIFIED; - } - - public static final int METRIC_FIELD_NUMBER = 2; - - /** - * - * - *
    -     * The metric this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return Whether the metric field is set. - */ - public boolean hasMetric() { - return fieldCase_ == 2; - } - - /** - * - * - *
    -     * The metric this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return The enum numeric value on the wire for metric. - */ - public int getMetricValue() { - if (fieldCase_ == 2) { - return (java.lang.Integer) field_; - } - return 0; - } - - /** - * - * - *
    -     * The metric this field represents.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return The metric. - */ - public com.google.ads.admanager.v1.Report.Metric getMetric() { - if (fieldCase_ == 2) { - com.google.ads.admanager.v1.Report.Metric result = - com.google.ads.admanager.v1.Report.Metric.forNumber((java.lang.Integer) field_); - return result == null ? com.google.ads.admanager.v1.Report.Metric.UNRECOGNIZED : result; - } - return com.google.ads.admanager.v1.Report.Metric.METRIC_UNSPECIFIED; - } - - 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 (fieldCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) field_)); - } - if (fieldCase_ == 2) { - output.writeEnum(2, ((java.lang.Integer) field_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fieldCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) field_)); - } - if (fieldCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(2, ((java.lang.Integer) field_)); - } - 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.admanager.v1.Report.Field)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Field other = - (com.google.ads.admanager.v1.Report.Field) obj; - - if (!getFieldCase().equals(other.getFieldCase())) return false; - switch (fieldCase_) { - case 1: - if (getDimensionValue() != other.getDimensionValue()) return false; - break; - case 2: - if (getMetricValue() != other.getMetricValue()) 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(); - switch (fieldCase_) { - case 1: - hash = (37 * hash) + DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getDimensionValue(); - break; - case 2: - hash = (37 * hash) + METRIC_FIELD_NUMBER; - hash = (53 * hash) + getMetricValue(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.Field parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Field 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.admanager.v1.Report.Field parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Field 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.admanager.v1.Report.Field parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Field parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Field parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Field parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Field parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Field parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Field parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Field parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.Field prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * A dimension or a metric in a report.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Field} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Field) - com.google.ads.admanager.v1.Report.FieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Field_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Field.class, - com.google.ads.admanager.v1.Report.Field.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Field.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fieldCase_ = 0; - field_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Field_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Field getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Field.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Field build() { - com.google.ads.admanager.v1.Report.Field result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Field buildPartial() { - com.google.ads.admanager.v1.Report.Field result = - new com.google.ads.admanager.v1.Report.Field(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Field result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.ads.admanager.v1.Report.Field result) { - result.fieldCase_ = fieldCase_; - result.field_ = this.field_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Field) { - return mergeFrom((com.google.ads.admanager.v1.Report.Field) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Field other) { - if (other == com.google.ads.admanager.v1.Report.Field.getDefaultInstance()) return this; - switch (other.getFieldCase()) { - case DIMENSION: - { - setDimensionValue(other.getDimensionValue()); - break; - } - case METRIC: - { - setMetricValue(other.getMetricValue()); - break; - } - case FIELD_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 8: - { - int rawValue = input.readEnum(); - fieldCase_ = 1; - field_ = rawValue; - break; - } // case 8 - case 16: - { - int rawValue = input.readEnum(); - fieldCase_ = 2; - field_ = rawValue; - break; - } // case 16 - 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 fieldCase_ = 0; - private java.lang.Object field_; - - public FieldCase getFieldCase() { - return FieldCase.forNumber(fieldCase_); - } - - public Builder clearField() { - fieldCase_ = 0; - field_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
    -       * The dimension this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return Whether the dimension field is set. - */ - @java.lang.Override - public boolean hasDimension() { - return fieldCase_ == 1; - } - - /** - * - * - *
    -       * The dimension this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return The enum numeric value on the wire for dimension. - */ - @java.lang.Override - public int getDimensionValue() { - if (fieldCase_ == 1) { - return ((java.lang.Integer) field_).intValue(); - } - return 0; - } - - /** - * - * - *
    -       * The dimension this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @param value The enum numeric value on the wire for dimension to set. - * @return This builder for chaining. - */ - public Builder setDimensionValue(int value) { - fieldCase_ = 1; - field_ = value; - onChanged(); - return this; - } - - /** - * - * - *
    -       * The dimension this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return The dimension. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Dimension getDimension() { - if (fieldCase_ == 1) { - com.google.ads.admanager.v1.Report.Dimension result = - com.google.ads.admanager.v1.Report.Dimension.forNumber((java.lang.Integer) field_); - return result == null - ? com.google.ads.admanager.v1.Report.Dimension.UNRECOGNIZED - : result; - } - return com.google.ads.admanager.v1.Report.Dimension.DIMENSION_UNSPECIFIED; - } - - /** - * - * - *
    -       * The dimension this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @param value The dimension to set. - * @return This builder for chaining. - */ - public Builder setDimension(com.google.ads.admanager.v1.Report.Dimension value) { - if (value == null) { - throw new NullPointerException(); - } - fieldCase_ = 1; - field_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
    -       * The dimension this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1; - * - * @return This builder for chaining. - */ - public Builder clearDimension() { - if (fieldCase_ == 1) { - fieldCase_ = 0; - field_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
    -       * The metric this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return Whether the metric field is set. - */ - @java.lang.Override - public boolean hasMetric() { - return fieldCase_ == 2; - } - - /** - * - * - *
    -       * The metric this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return The enum numeric value on the wire for metric. - */ - @java.lang.Override - public int getMetricValue() { - if (fieldCase_ == 2) { - return ((java.lang.Integer) field_).intValue(); - } - return 0; - } - - /** - * - * - *
    -       * The metric this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @param value The enum numeric value on the wire for metric to set. - * @return This builder for chaining. - */ - public Builder setMetricValue(int value) { - fieldCase_ = 2; - field_ = value; - onChanged(); - return this; - } - - /** - * - * - *
    -       * The metric this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return The metric. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Metric getMetric() { - if (fieldCase_ == 2) { - com.google.ads.admanager.v1.Report.Metric result = - com.google.ads.admanager.v1.Report.Metric.forNumber((java.lang.Integer) field_); - return result == null ? com.google.ads.admanager.v1.Report.Metric.UNRECOGNIZED : result; - } - return com.google.ads.admanager.v1.Report.Metric.METRIC_UNSPECIFIED; - } - - /** - * - * - *
    -       * The metric this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @param value The metric to set. - * @return This builder for chaining. - */ - public Builder setMetric(com.google.ads.admanager.v1.Report.Metric value) { - if (value == null) { - throw new NullPointerException(); - } - fieldCase_ = 2; - field_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
    -       * The metric this field represents.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Metric metric = 2; - * - * @return This builder for chaining. - */ - public Builder clearMetric() { - if (fieldCase_ == 2) { - fieldCase_ = 0; - field_ = null; - onChanged(); - } - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Field) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Field) - private static final com.google.ads.admanager.v1.Report.Field DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Field(); - } - - public static com.google.ads.admanager.v1.Report.Field getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Field 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.admanager.v1.Report.Field getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface SliceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Slice) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * Required. The dimension to slice on.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dimension. - */ - int getDimensionValue(); - - /** - * - * - *
    -     * Required. The dimension to slice on.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dimension. - */ - com.google.ads.admanager.v1.Report.Dimension getDimension(); - - /** - * - * - *
    -     * Required. The value of the dimension.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the value field is set. - */ - boolean hasValue(); - - /** - * - * - *
    -     * Required. The value of the dimension.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The value. - */ - com.google.ads.admanager.v1.Report.Value getValue(); - - /** - * - * - *
    -     * Required. The value of the dimension.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.ads.admanager.v1.Report.ValueOrBuilder getValueOrBuilder(); - } - - /** - * - * - *
    -   * Use to specify a slice of data.
    -   *
    -   * For example, in a report, to focus on just data from the US, specify
    -   * `COUNTRY_NAME` for dimension and value: `"United States"`.
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Slice} - */ - public static final class Slice extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Slice) - SliceOrBuilder { - private static final long serialVersionUID = 0L; - - // Use Slice.newBuilder() to construct. - private Slice(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Slice() { - dimension_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Slice(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Slice_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Slice.class, - com.google.ads.admanager.v1.Report.Slice.Builder.class); - } - - private int bitField0_; - public static final int DIMENSION_FIELD_NUMBER = 1; - private int dimension_ = 0; - - /** - * - * - *
    -     * Required. The dimension to slice on.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dimension. - */ - @java.lang.Override - public int getDimensionValue() { - return dimension_; - } - - /** - * - * - *
    -     * Required. The dimension to slice on.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dimension. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Dimension getDimension() { - com.google.ads.admanager.v1.Report.Dimension result = - com.google.ads.admanager.v1.Report.Dimension.forNumber(dimension_); - return result == null ? com.google.ads.admanager.v1.Report.Dimension.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.ads.admanager.v1.Report.Value value_; - - /** - * - * - *
    -     * Required. The value of the dimension.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -     * Required. The value of the dimension.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The value. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getValue() { - return value_ == null - ? com.google.ads.admanager.v1.Report.Value.getDefaultInstance() - : value_; - } - - /** - * - * - *
    -     * Required. The value of the dimension.
    -     * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.ValueOrBuilder getValueOrBuilder() { - return value_ == null - ? com.google.ads.admanager.v1.Report.Value.getDefaultInstance() - : value_; - } - - 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 (dimension_ - != com.google.ads.admanager.v1.Report.Dimension.DIMENSION_UNSPECIFIED.getNumber()) { - output.writeEnum(1, dimension_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dimension_ - != com.google.ads.admanager.v1.Report.Dimension.DIMENSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, dimension_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); - } - 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.admanager.v1.Report.Slice)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Slice other = - (com.google.ads.admanager.v1.Report.Slice) obj; - - if (dimension_ != other.dimension_) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue().equals(other.getValue())) 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) + DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + dimension_; - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.Slice parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Slice 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.admanager.v1.Report.Slice parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Slice 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.admanager.v1.Report.Slice parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Slice parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Slice parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Slice parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Slice parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Slice parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Slice parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Slice parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.Slice prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * Use to specify a slice of data.
    -     *
    -     * For example, in a report, to focus on just data from the US, specify
    -     * `COUNTRY_NAME` for dimension and value: `"United States"`.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Slice} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Slice) - com.google.ads.admanager.v1.Report.SliceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Slice_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Slice.class, - com.google.ads.admanager.v1.Report.Slice.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Slice.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getValueFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dimension_ = 0; - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Slice_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Slice getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Slice.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Slice build() { - com.google.ads.admanager.v1.Report.Slice result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Slice buildPartial() { - com.google.ads.admanager.v1.Report.Slice result = - new com.google.ads.admanager.v1.Report.Slice(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Slice result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dimension_ = dimension_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Slice) { - return mergeFrom((com.google.ads.admanager.v1.Report.Slice) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Slice other) { - if (other == com.google.ads.admanager.v1.Report.Slice.getDefaultInstance()) return this; - if (other.dimension_ != 0) { - setDimensionValue(other.getDimensionValue()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - 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: - { - dimension_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getValueFieldBuilder().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 int dimension_ = 0; - - /** - * - * - *
    -       * Required. The dimension to slice on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for dimension. - */ - @java.lang.Override - public int getDimensionValue() { - return dimension_; - } - - /** - * - * - *
    -       * Required. The dimension to slice on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for dimension to set. - * @return This builder for chaining. - */ - public Builder setDimensionValue(int value) { - dimension_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. The dimension to slice on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dimension. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Dimension getDimension() { - com.google.ads.admanager.v1.Report.Dimension result = - com.google.ads.admanager.v1.Report.Dimension.forNumber(dimension_); - return result == null ? com.google.ads.admanager.v1.Report.Dimension.UNRECOGNIZED : result; - } - - /** - * - * - *
    -       * Required. The dimension to slice on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The dimension to set. - * @return This builder for chaining. - */ - public Builder setDimension(com.google.ads.admanager.v1.Report.Dimension value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - dimension_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. The dimension to slice on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearDimension() { - bitField0_ = (bitField0_ & ~0x00000001); - dimension_ = 0; - onChanged(); - return this; - } - - private com.google.ads.admanager.v1.Report.Value value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - valueBuilder_; - - /** - * - * - *
    -       * Required. The value of the dimension.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the value field is set. - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
    -       * Required. The value of the dimension.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The value. - */ - public com.google.ads.admanager.v1.Report.Value getValue() { - if (valueBuilder_ == null) { - return value_ == null - ? com.google.ads.admanager.v1.Report.Value.getDefaultInstance() - : value_; - } else { - return valueBuilder_.getMessage(); - } - } - - /** - * - * - *
    -       * Required. The value of the dimension.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setValue(com.google.ads.admanager.v1.Report.Value value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - } else { - valueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. The value of the dimension.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setValue(com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. The value of the dimension.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeValue(com.google.ads.admanager.v1.Report.Value value) { - if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && value_ != null - && value_ != com.google.ads.admanager.v1.Report.Value.getDefaultInstance()) { - getValueBuilder().mergeFrom(value); - } else { - value_ = value; - } - } else { - valueBuilder_.mergeFrom(value); - } - if (value_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
    -       * Required. The value of the dimension.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. The value of the dimension.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder getValueBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * Required. The value of the dimension.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.ValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null - ? com.google.ads.admanager.v1.Report.Value.getDefaultInstance() - : value_; - } - } - - /** - * - * - *
    -       * Required. The value of the dimension.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder>( - getValue(), getParentForChildren(), isClean()); - value_ = null; - } - return valueBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Slice) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Slice) - private static final com.google.ads.admanager.v1.Report.Slice DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Slice(); - } - - public static com.google.ads.admanager.v1.Report.Slice getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Slice 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.admanager.v1.Report.Slice getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface FilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Filter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * A filter on a single field.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - * - * @return Whether the fieldFilter field is set. - */ - boolean hasFieldFilter(); - - /** - * - * - *
    -     * A filter on a single field.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - * - * @return The fieldFilter. - */ - com.google.ads.admanager.v1.Report.Filter.FieldFilter getFieldFilter(); - - /** - * - * - *
    -     * A filter on a single field.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - */ - com.google.ads.admanager.v1.Report.Filter.FieldFilterOrBuilder getFieldFilterOrBuilder(); - - /** - * - * - *
    -     * A filter whose result is negated.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - * - * @return Whether the notFilter field is set. - */ - boolean hasNotFilter(); - - /** - * - * - *
    -     * A filter whose result is negated.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - * - * @return The notFilter. - */ - com.google.ads.admanager.v1.Report.Filter getNotFilter(); - - /** - * - * - *
    -     * A filter whose result is negated.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - */ - com.google.ads.admanager.v1.Report.FilterOrBuilder getNotFilterOrBuilder(); - - /** - * - * - *
    -     * A list of filters whose results are AND-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - * - * @return Whether the andFilter field is set. - */ - boolean hasAndFilter(); - - /** - * - * - *
    -     * A list of filters whose results are AND-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - * - * @return The andFilter. - */ - com.google.ads.admanager.v1.Report.Filter.FilterList getAndFilter(); - - /** - * - * - *
    -     * A list of filters whose results are AND-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - */ - com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder getAndFilterOrBuilder(); - - /** - * - * - *
    -     * A list of filters whose results are OR-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - * - * @return Whether the orFilter field is set. - */ - boolean hasOrFilter(); - - /** - * - * - *
    -     * A list of filters whose results are OR-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - * - * @return The orFilter. - */ - com.google.ads.admanager.v1.Report.Filter.FilterList getOrFilter(); - - /** - * - * - *
    -     * A list of filters whose results are OR-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - */ - com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder getOrFilterOrBuilder(); - - com.google.ads.admanager.v1.Report.Filter.TypeCase getTypeCase(); - } - - /** - * - * - *
    -   * A filter over one or more fields.
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Filter} - */ - public static final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Filter) - FilterOrBuilder { - private static final long serialVersionUID = 0L; - - // Use Filter.newBuilder() to construct. - private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Filter() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Filter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Filter.class, - com.google.ads.admanager.v1.Report.Filter.Builder.class); - } - - /** - * - * - *
    -     * Supported filter operations.
    -     * 
    - * - * Protobuf enum {@code google.ads.admanager.v1.Report.Filter.Operation} - */ - public enum Operation implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -       * For scalar operands, checks if the operand is in the set of provided
    -       * filter values.
    -       *
    -       * For list operands, checks if any element in the operand is in the set
    -       * of provided filter values.
    -       *
    -       * Default value.
    -       * 
    - * - * IN = 0; - */ - IN(0), - /** - * - * - *
    -       * For scalar operands, checks that the operand is not in the set of
    -       * provided filter values.
    -       *
    -       * For list operands, checks that none of the elements in the operand
    -       * is in the set of provided filter values.
    -       * 
    - * - * NOT_IN = 1; - */ - NOT_IN(1), - /** - * - * - *
    -       * For scalar string operands, checks if the operand contains any of the
    -       * provided filter substrings.
    -       *
    -       * For string list operands, checks if any string in the operand contains
    -       * any of the provided filter substrings.
    -       * 
    - * - * CONTAINS = 2; - */ - CONTAINS(2), - /** - * - * - *
    -       * For scalar string operands, checks that the operand contains none of
    -       * the provided filter substrings.
    -       *
    -       * For string list operands, checks that none of the strings in the
    -       * operand contain none of the provided filter substrings.
    -       * 
    - * - * NOT_CONTAINS = 3; - */ - NOT_CONTAINS(3), - /** - * - * - *
    -       * Operand is less than the provided filter value.
    -       * 
    - * - * LESS_THAN = 4; - */ - LESS_THAN(4), - /** - * - * - *
    -       * Operand is less than or equal to provided filter value.
    -       * 
    - * - * LESS_THAN_EQUALS = 5; - */ - LESS_THAN_EQUALS(5), - /** - * - * - *
    -       * Operand is greater than provided filter value.
    -       * 
    - * - * GREATER_THAN = 6; - */ - GREATER_THAN(6), - /** - * - * - *
    -       * Operand is greater than or equal to provided filter value.
    -       * 
    - * - * GREATER_THAN_EQUALS = 7; - */ - GREATER_THAN_EQUALS(7), - /** - * - * - *
    -       * Operand is between provided filter values.
    -       * 
    - * - * BETWEEN = 8; - */ - BETWEEN(8), - /** - * - * - *
    -       * Operand matches against a regex or set of regexes (one must match)
    -       * 
    - * - * MATCHES = 9; - */ - MATCHES(9), - /** - * - * - *
    -       * Operand negative matches against a regex or set of regexes (none must
    -       * match)
    -       * 
    - * - * NOT_MATCHES = 10; - */ - NOT_MATCHES(10), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
    -       * For scalar operands, checks if the operand is in the set of provided
    -       * filter values.
    -       *
    -       * For list operands, checks if any element in the operand is in the set
    -       * of provided filter values.
    -       *
    -       * Default value.
    -       * 
    - * - * IN = 0; - */ - public static final int IN_VALUE = 0; - - /** - * - * - *
    -       * For scalar operands, checks that the operand is not in the set of
    -       * provided filter values.
    -       *
    -       * For list operands, checks that none of the elements in the operand
    -       * is in the set of provided filter values.
    -       * 
    - * - * NOT_IN = 1; - */ - public static final int NOT_IN_VALUE = 1; - - /** - * - * - *
    -       * For scalar string operands, checks if the operand contains any of the
    -       * provided filter substrings.
    -       *
    -       * For string list operands, checks if any string in the operand contains
    -       * any of the provided filter substrings.
    -       * 
    - * - * CONTAINS = 2; - */ - public static final int CONTAINS_VALUE = 2; - - /** - * - * - *
    -       * For scalar string operands, checks that the operand contains none of
    -       * the provided filter substrings.
    -       *
    -       * For string list operands, checks that none of the strings in the
    -       * operand contain none of the provided filter substrings.
    -       * 
    - * - * NOT_CONTAINS = 3; - */ - public static final int NOT_CONTAINS_VALUE = 3; - - /** - * - * - *
    -       * Operand is less than the provided filter value.
    -       * 
    - * - * LESS_THAN = 4; - */ - public static final int LESS_THAN_VALUE = 4; - - /** - * - * - *
    -       * Operand is less than or equal to provided filter value.
    -       * 
    - * - * LESS_THAN_EQUALS = 5; - */ - public static final int LESS_THAN_EQUALS_VALUE = 5; - - /** - * - * - *
    -       * Operand is greater than provided filter value.
    -       * 
    - * - * GREATER_THAN = 6; - */ - public static final int GREATER_THAN_VALUE = 6; - - /** - * - * - *
    -       * Operand is greater than or equal to provided filter value.
    -       * 
    - * - * GREATER_THAN_EQUALS = 7; - */ - public static final int GREATER_THAN_EQUALS_VALUE = 7; - - /** - * - * - *
    -       * Operand is between provided filter values.
    -       * 
    - * - * BETWEEN = 8; - */ - public static final int BETWEEN_VALUE = 8; - - /** - * - * - *
    -       * Operand matches against a regex or set of regexes (one must match)
    -       * 
    - * - * MATCHES = 9; - */ - public static final int MATCHES_VALUE = 9; - - /** - * - * - *
    -       * Operand negative matches against a regex or set of regexes (none must
    -       * match)
    -       * 
    - * - * NOT_MATCHES = 10; - */ - public static final int NOT_MATCHES_VALUE = 10; - - 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 Operation 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 Operation forNumber(int value) { - switch (value) { - case 0: - return IN; - case 1: - return NOT_IN; - case 2: - return CONTAINS; - case 3: - return NOT_CONTAINS; - case 4: - return LESS_THAN; - case 5: - return LESS_THAN_EQUALS; - case 6: - return GREATER_THAN; - case 7: - return GREATER_THAN_EQUALS; - case 8: - return BETWEEN; - case 9: - return MATCHES; - case 10: - return NOT_MATCHES; - 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 Operation findValueByNumber(int number) { - return Operation.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.admanager.v1.Report.Filter.getDescriptor().getEnumTypes().get(0); - } - - private static final Operation[] VALUES = values(); - - public static Operation 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 Operation(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.Filter.Operation) - } - - public interface FieldFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Filter.FieldFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -       * Required. The field to filter on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the field field is set. - */ - boolean hasField(); - - /** - * - * - *
    -       * Required. The field to filter on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The field. - */ - com.google.ads.admanager.v1.Report.Field getField(); - - /** - * - * - *
    -       * Required. The field to filter on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.ads.admanager.v1.Report.FieldOrBuilder getFieldOrBuilder(); - - /** - * - * - *
    -       * Required. The operation of this filter.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for operation. - */ - int getOperationValue(); - - /** - * - * - *
    -       * Required. The operation of this filter.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The operation. - */ - com.google.ads.admanager.v1.Report.Filter.Operation getOperation(); - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getValuesList(); - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.ads.admanager.v1.Report.Value getValues(int index); - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getValuesCount(); - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getValuesOrBuilderList(); - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.ads.admanager.v1.Report.ValueOrBuilder getValuesOrBuilder(int index); - - /** - * - * - *
    -       * Optional. Use to filter on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the slice field is set. - */ - boolean hasSlice(); - - /** - * - * - *
    -       * Optional. Use to filter on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The slice. - */ - com.google.ads.admanager.v1.Report.Slice getSlice(); - - /** - * - * - *
    -       * Optional. Use to filter on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.ads.admanager.v1.Report.SliceOrBuilder getSliceOrBuilder(); - - /** - * - * - *
    -       * Optional. When using time period columns, use this to filter on a
    -       * specific column.
    -       * 
    - * - * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the timePeriodIndex field is set. - */ - boolean hasTimePeriodIndex(); - - /** - * - * - *
    -       * Optional. When using time period columns, use this to filter on a
    -       * specific column.
    -       * 
    - * - * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The timePeriodIndex. - */ - int getTimePeriodIndex(); - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to filter on. Defaults
    -       * to PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metricValueType field is set. - */ - boolean hasMetricValueType(); - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to filter on. Defaults
    -       * to PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for metricValueType. - */ - int getMetricValueTypeValue(); - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to filter on. Defaults
    -       * to PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metricValueType. - */ - com.google.ads.admanager.v1.Report.MetricValueType getMetricValueType(); - } - - /** - * - * - *
    -     * A filter on a specific field.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Filter.FieldFilter} - */ - public static final class FieldFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Filter.FieldFilter) - FieldFilterOrBuilder { - private static final long serialVersionUID = 0L; - - // Use FieldFilter.newBuilder() to construct. - private FieldFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FieldFilter() { - operation_ = 0; - values_ = java.util.Collections.emptyList(); - metricValueType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FieldFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Filter.FieldFilter.class, - com.google.ads.admanager.v1.Report.Filter.FieldFilter.Builder.class); - } - - private int bitField0_; - public static final int FIELD_FIELD_NUMBER = 1; - private com.google.ads.admanager.v1.Report.Field field_; - - /** - * - * - *
    -       * Required. The field to filter on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the field field is set. - */ - @java.lang.Override - public boolean hasField() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -       * Required. The field to filter on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The field. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Field getField() { - return field_ == null - ? com.google.ads.admanager.v1.Report.Field.getDefaultInstance() - : field_; - } - - /** - * - * - *
    -       * Required. The field to filter on.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.FieldOrBuilder getFieldOrBuilder() { - return field_ == null - ? com.google.ads.admanager.v1.Report.Field.getDefaultInstance() - : field_; - } - - public static final int OPERATION_FIELD_NUMBER = 2; - private int operation_ = 0; - - /** - * - * - *
    -       * Required. The operation of this filter.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override - public int getOperationValue() { - return operation_; - } - - /** - * - * - *
    -       * Required. The operation of this filter.
    -       * 
    - * - * - * .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The operation. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.Operation getOperation() { - com.google.ads.admanager.v1.Report.Filter.Operation result = - com.google.ads.admanager.v1.Report.Filter.Operation.forNumber(operation_); - return result == null - ? com.google.ads.admanager.v1.Report.Filter.Operation.UNRECOGNIZED - : result; - } - - public static final int VALUES_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List values_; - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getValuesList() { - return values_; - } - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getValuesOrBuilderList() { - return values_; - } - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getValuesCount() { - return values_.size(); - } - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Value getValues(int index) { - return values_.get(index); - } - - /** - * - * - *
    -       * Required. Values to filter to.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.ValueOrBuilder getValuesOrBuilder(int index) { - return values_.get(index); - } - - public static final int SLICE_FIELD_NUMBER = 4; - private com.google.ads.admanager.v1.Report.Slice slice_; - - /** - * - * - *
    -       * Optional. Use to filter on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the slice field is set. - */ - @java.lang.Override - public boolean hasSlice() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
    -       * Optional. Use to filter on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The slice. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Slice getSlice() { - return slice_ == null - ? com.google.ads.admanager.v1.Report.Slice.getDefaultInstance() - : slice_; - } - - /** - * - * - *
    -       * Optional. Use to filter on a specific slice of data.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.SliceOrBuilder getSliceOrBuilder() { - return slice_ == null - ? com.google.ads.admanager.v1.Report.Slice.getDefaultInstance() - : slice_; - } - - public static final int TIME_PERIOD_INDEX_FIELD_NUMBER = 5; - private int timePeriodIndex_ = 0; - - /** - * - * - *
    -       * Optional. When using time period columns, use this to filter on a
    -       * specific column.
    -       * 
    - * - * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the timePeriodIndex field is set. - */ - @java.lang.Override - public boolean hasTimePeriodIndex() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
    -       * Optional. When using time period columns, use this to filter on a
    -       * specific column.
    -       * 
    - * - * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The timePeriodIndex. - */ - @java.lang.Override - public int getTimePeriodIndex() { - return timePeriodIndex_; - } - - public static final int METRIC_VALUE_TYPE_FIELD_NUMBER = 6; - private int metricValueType_ = 0; - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to filter on. Defaults
    -       * to PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metricValueType field is set. - */ - @java.lang.Override - public boolean hasMetricValueType() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to filter on. Defaults
    -       * to PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for metricValueType. - */ - @java.lang.Override - public int getMetricValueTypeValue() { - return metricValueType_; - } - - /** - * - * - *
    -       * Optional. Use to specify which metric value type to filter on. Defaults
    -       * to PRIMARY.
    -       * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metricValueType. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.MetricValueType getMetricValueType() { - com.google.ads.admanager.v1.Report.MetricValueType result = - com.google.ads.admanager.v1.Report.MetricValueType.forNumber(metricValueType_); - return result == null - ? com.google.ads.admanager.v1.Report.MetricValueType.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getField()); - } - if (operation_ != com.google.ads.admanager.v1.Report.Filter.Operation.IN.getNumber()) { - output.writeEnum(2, operation_); - } - for (int i = 0; i < values_.size(); i++) { - output.writeMessage(3, values_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getSlice()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt32(5, timePeriodIndex_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeEnum(6, metricValueType_); - } - 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, getField()); - } - if (operation_ != com.google.ads.admanager.v1.Report.Filter.Operation.IN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, operation_); - } - for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, values_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSlice()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, timePeriodIndex_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, metricValueType_); - } - 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.admanager.v1.Report.Filter.FieldFilter)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Filter.FieldFilter other = - (com.google.ads.admanager.v1.Report.Filter.FieldFilter) obj; - - if (hasField() != other.hasField()) return false; - if (hasField()) { - if (!getField().equals(other.getField())) return false; - } - if (operation_ != other.operation_) return false; - if (!getValuesList().equals(other.getValuesList())) return false; - if (hasSlice() != other.hasSlice()) return false; - if (hasSlice()) { - if (!getSlice().equals(other.getSlice())) return false; - } - if (hasTimePeriodIndex() != other.hasTimePeriodIndex()) return false; - if (hasTimePeriodIndex()) { - if (getTimePeriodIndex() != other.getTimePeriodIndex()) return false; - } - if (hasMetricValueType() != other.hasMetricValueType()) return false; - if (hasMetricValueType()) { - if (metricValueType_ != other.metricValueType_) 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 (hasField()) { - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - } - hash = (37 * hash) + OPERATION_FIELD_NUMBER; - hash = (53 * hash) + operation_; - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - if (hasSlice()) { - hash = (37 * hash) + SLICE_FIELD_NUMBER; - hash = (53 * hash) + getSlice().hashCode(); - } - if (hasTimePeriodIndex()) { - hash = (37 * hash) + TIME_PERIOD_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getTimePeriodIndex(); - } - if (hasMetricValueType()) { - hash = (37 * hash) + METRIC_VALUE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + metricValueType_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter 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.admanager.v1.Report.Filter.FieldFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter 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.admanager.v1.Report.Filter.FieldFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.ads.admanager.v1.Report.Filter.FieldFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -       * A filter on a specific field.
    -       * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Filter.FieldFilter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Filter.FieldFilter) - com.google.ads.admanager.v1.Report.Filter.FieldFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Filter.FieldFilter.class, - com.google.ads.admanager.v1.Report.Filter.FieldFilter.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Filter.FieldFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFieldFieldBuilder(); - getValuesFieldBuilder(); - getSliceFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - field_ = null; - if (fieldBuilder_ != null) { - fieldBuilder_.dispose(); - fieldBuilder_ = null; - } - operation_ = 0; - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - } else { - values_ = null; - valuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - slice_ = null; - if (sliceBuilder_ != null) { - sliceBuilder_.dispose(); - sliceBuilder_ = null; - } - timePeriodIndex_ = 0; - metricValueType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FieldFilter getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Filter.FieldFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FieldFilter build() { - com.google.ads.admanager.v1.Report.Filter.FieldFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FieldFilter buildPartial() { - com.google.ads.admanager.v1.Report.Filter.FieldFilter result = - new com.google.ads.admanager.v1.Report.Filter.FieldFilter(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.ads.admanager.v1.Report.Filter.FieldFilter result) { - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.build(); - } - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Filter.FieldFilter result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.operation_ = operation_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.slice_ = sliceBuilder_ == null ? slice_ : sliceBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.timePeriodIndex_ = timePeriodIndex_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.metricValueType_ = metricValueType_; - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Filter.FieldFilter) { - return mergeFrom((com.google.ads.admanager.v1.Report.Filter.FieldFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Filter.FieldFilter other) { - if (other == com.google.ads.admanager.v1.Report.Filter.FieldFilter.getDefaultInstance()) - return this; - if (other.hasField()) { - mergeField(other.getField()); - } - if (other.operation_ != 0) { - setOperationValue(other.getOperationValue()); - } - if (valuesBuilder_ == null) { - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - } else { - if (!other.values_.isEmpty()) { - if (valuesBuilder_.isEmpty()) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000004); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValuesFieldBuilder() - : null; - } else { - valuesBuilder_.addAllMessages(other.values_); - } - } - } - if (other.hasSlice()) { - mergeSlice(other.getSlice()); - } - if (other.hasTimePeriodIndex()) { - setTimePeriodIndex(other.getTimePeriodIndex()); - } - if (other.hasMetricValueType()) { - setMetricValueType(other.getMetricValueType()); - } - 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(getFieldFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - operation_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.ads.admanager.v1.Report.Value m = - input.readMessage( - com.google.ads.admanager.v1.Report.Value.parser(), extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - input.readMessage(getSliceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - timePeriodIndex_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - metricValueType_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - 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.ads.admanager.v1.Report.Field field_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Field, - com.google.ads.admanager.v1.Report.Field.Builder, - com.google.ads.admanager.v1.Report.FieldOrBuilder> - fieldBuilder_; - - /** - * - * - *
    -         * Required. The field to filter on.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the field field is set. - */ - public boolean hasField() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -         * Required. The field to filter on.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The field. - */ - public com.google.ads.admanager.v1.Report.Field getField() { - if (fieldBuilder_ == null) { - return field_ == null - ? com.google.ads.admanager.v1.Report.Field.getDefaultInstance() - : field_; - } else { - return fieldBuilder_.getMessage(); - } - } - - /** - * - * - *
    -         * Required. The field to filter on.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setField(com.google.ads.admanager.v1.Report.Field value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - field_ = value; - } else { - fieldBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The field to filter on.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setField(com.google.ads.admanager.v1.Report.Field.Builder builderForValue) { - if (fieldBuilder_ == null) { - field_ = builderForValue.build(); - } else { - fieldBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The field to filter on.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeField(com.google.ads.admanager.v1.Report.Field value) { - if (fieldBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && field_ != null - && field_ != com.google.ads.admanager.v1.Report.Field.getDefaultInstance()) { - getFieldBuilder().mergeFrom(value); - } else { - field_ = value; - } - } else { - fieldBuilder_.mergeFrom(value); - } - if (field_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
    -         * Required. The field to filter on.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearField() { - bitField0_ = (bitField0_ & ~0x00000001); - field_ = null; - if (fieldBuilder_ != null) { - fieldBuilder_.dispose(); - fieldBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The field to filter on.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Field.Builder getFieldBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getFieldFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -         * Required. The field to filter on.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.FieldOrBuilder getFieldOrBuilder() { - if (fieldBuilder_ != null) { - return fieldBuilder_.getMessageOrBuilder(); - } else { - return field_ == null - ? com.google.ads.admanager.v1.Report.Field.getDefaultInstance() - : field_; - } - } - - /** - * - * - *
    -         * Required. The field to filter on.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Field, - com.google.ads.admanager.v1.Report.Field.Builder, - com.google.ads.admanager.v1.Report.FieldOrBuilder> - getFieldFieldBuilder() { - if (fieldBuilder_ == null) { - fieldBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Field, - com.google.ads.admanager.v1.Report.Field.Builder, - com.google.ads.admanager.v1.Report.FieldOrBuilder>( - getField(), getParentForChildren(), isClean()); - field_ = null; - } - return fieldBuilder_; - } - - private int operation_ = 0; - - /** - * - * - *
    -         * Required. The operation of this filter.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override - public int getOperationValue() { - return operation_; - } - - /** - * - * - *
    -         * Required. The operation of this filter.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationValue(int value) { - operation_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The operation of this filter.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The operation. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.Operation getOperation() { - com.google.ads.admanager.v1.Report.Filter.Operation result = - com.google.ads.admanager.v1.Report.Filter.Operation.forNumber(operation_); - return result == null - ? com.google.ads.admanager.v1.Report.Filter.Operation.UNRECOGNIZED - : result; - } - - /** - * - * - *
    -         * Required. The operation of this filter.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation(com.google.ads.admanager.v1.Report.Filter.Operation value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - operation_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The operation of this filter.
    -         * 
    - * - * - * .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearOperation() { - bitField0_ = (bitField0_ & ~0x00000002); - operation_ = 0; - onChanged(); - return this; - } - - private java.util.List values_ = - java.util.Collections.emptyList(); - - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - values_ = new java.util.ArrayList(values_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - valuesBuilder_; - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List getValuesList() { - if (valuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(values_); - } else { - return valuesBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getValuesCount() { - if (valuesBuilder_ == null) { - return values_.size(); - } else { - return valuesBuilder_.getCount(); - } - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Value getValues(int index) { - if (valuesBuilder_ == null) { - return values_.get(index); - } else { - return valuesBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setValues(int index, com.google.ads.admanager.v1.Report.Value value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - } else { - valuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.set(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addValues(com.google.ads.admanager.v1.Report.Value value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - } else { - valuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addValues(int index, com.google.ads.admanager.v1.Report.Value value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(index, value); - onChanged(); - } else { - valuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addValues(com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addValues( - int index, com.google.ads.admanager.v1.Report.Value.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllValues( - java.lang.Iterable values) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); - onChanged(); - } else { - valuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - valuesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeValues(int index) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.remove(index); - onChanged(); - } else { - valuesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder getValuesBuilder(int index) { - return getValuesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.ValueOrBuilder getValuesOrBuilder(int index) { - if (valuesBuilder_ == null) { - return values_.get(index); - } else { - return valuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getValuesOrBuilderList() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(values_); - } - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder addValuesBuilder() { - return getValuesFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Value.Builder addValuesBuilder(int index) { - return getValuesFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Value.getDefaultInstance()); - } - - /** - * - * - *
    -         * Required. Values to filter to.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getValuesBuilderList() { - return getValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Value, - com.google.ads.admanager.v1.Report.Value.Builder, - com.google.ads.admanager.v1.Report.ValueOrBuilder>( - values_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - values_ = null; - } - return valuesBuilder_; - } - - private com.google.ads.admanager.v1.Report.Slice slice_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Slice, - com.google.ads.admanager.v1.Report.Slice.Builder, - com.google.ads.admanager.v1.Report.SliceOrBuilder> - sliceBuilder_; - - /** - * - * - *
    -         * Optional. Use to filter on a specific slice of data.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the slice field is set. - */ - public boolean hasSlice() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
    -         * Optional. Use to filter on a specific slice of data.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The slice. - */ - public com.google.ads.admanager.v1.Report.Slice getSlice() { - if (sliceBuilder_ == null) { - return slice_ == null - ? com.google.ads.admanager.v1.Report.Slice.getDefaultInstance() - : slice_; - } else { - return sliceBuilder_.getMessage(); - } - } - - /** - * - * - *
    -         * Optional. Use to filter on a specific slice of data.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSlice(com.google.ads.admanager.v1.Report.Slice value) { - if (sliceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - slice_ = value; - } else { - sliceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Optional. Use to filter on a specific slice of data.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSlice(com.google.ads.admanager.v1.Report.Slice.Builder builderForValue) { - if (sliceBuilder_ == null) { - slice_ = builderForValue.build(); - } else { - sliceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Optional. Use to filter on a specific slice of data.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSlice(com.google.ads.admanager.v1.Report.Slice value) { - if (sliceBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && slice_ != null - && slice_ != com.google.ads.admanager.v1.Report.Slice.getDefaultInstance()) { - getSliceBuilder().mergeFrom(value); - } else { - slice_ = value; - } - } else { - sliceBuilder_.mergeFrom(value); - } - if (slice_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
    -         * Optional. Use to filter on a specific slice of data.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSlice() { - bitField0_ = (bitField0_ & ~0x00000008); - slice_ = null; - if (sliceBuilder_ != null) { - sliceBuilder_.dispose(); - sliceBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -         * Optional. Use to filter on a specific slice of data.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.ads.admanager.v1.Report.Slice.Builder getSliceBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getSliceFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -         * Optional. Use to filter on a specific slice of data.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.ads.admanager.v1.Report.SliceOrBuilder getSliceOrBuilder() { - if (sliceBuilder_ != null) { - return sliceBuilder_.getMessageOrBuilder(); - } else { - return slice_ == null - ? com.google.ads.admanager.v1.Report.Slice.getDefaultInstance() - : slice_; - } - } - - /** - * - * - *
    -         * Optional. Use to filter on a specific slice of data.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Slice, - com.google.ads.admanager.v1.Report.Slice.Builder, - com.google.ads.admanager.v1.Report.SliceOrBuilder> - getSliceFieldBuilder() { - if (sliceBuilder_ == null) { - sliceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Slice, - com.google.ads.admanager.v1.Report.Slice.Builder, - com.google.ads.admanager.v1.Report.SliceOrBuilder>( - getSlice(), getParentForChildren(), isClean()); - slice_ = null; - } - return sliceBuilder_; - } - - private int timePeriodIndex_; - - /** - * - * - *
    -         * Optional. When using time period columns, use this to filter on a
    -         * specific column.
    -         * 
    - * - * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the timePeriodIndex field is set. - */ - @java.lang.Override - public boolean hasTimePeriodIndex() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
    -         * Optional. When using time period columns, use this to filter on a
    -         * specific column.
    -         * 
    - * - * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The timePeriodIndex. - */ - @java.lang.Override - public int getTimePeriodIndex() { - return timePeriodIndex_; - } - - /** - * - * - *
    -         * Optional. When using time period columns, use this to filter on a
    -         * specific column.
    -         * 
    - * - * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The timePeriodIndex to set. - * @return This builder for chaining. - */ - public Builder setTimePeriodIndex(int value) { - - timePeriodIndex_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Optional. When using time period columns, use this to filter on a
    -         * specific column.
    -         * 
    - * - * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearTimePeriodIndex() { - bitField0_ = (bitField0_ & ~0x00000010); - timePeriodIndex_ = 0; - onChanged(); - return this; - } - - private int metricValueType_ = 0; - - /** - * - * - *
    -         * Optional. Use to specify which metric value type to filter on. Defaults
    -         * to PRIMARY.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metricValueType field is set. - */ - @java.lang.Override - public boolean hasMetricValueType() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
    -         * Optional. Use to specify which metric value type to filter on. Defaults
    -         * to PRIMARY.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for metricValueType. - */ - @java.lang.Override - public int getMetricValueTypeValue() { - return metricValueType_; - } - - /** - * - * - *
    -         * Optional. Use to specify which metric value type to filter on. Defaults
    -         * to PRIMARY.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for metricValueType to set. - * @return This builder for chaining. - */ - public Builder setMetricValueTypeValue(int value) { - metricValueType_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Optional. Use to specify which metric value type to filter on. Defaults
    -         * to PRIMARY.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metricValueType. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.MetricValueType getMetricValueType() { - com.google.ads.admanager.v1.Report.MetricValueType result = - com.google.ads.admanager.v1.Report.MetricValueType.forNumber(metricValueType_); - return result == null - ? com.google.ads.admanager.v1.Report.MetricValueType.UNRECOGNIZED - : result; - } - - /** - * - * - *
    -         * Optional. Use to specify which metric value type to filter on. Defaults
    -         * to PRIMARY.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The metricValueType to set. - * @return This builder for chaining. - */ - public Builder setMetricValueType( - com.google.ads.admanager.v1.Report.MetricValueType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - metricValueType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
    -         * Optional. Use to specify which metric value type to filter on. Defaults
    -         * to PRIMARY.
    -         * 
    - * - * - * optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearMetricValueType() { - bitField0_ = (bitField0_ & ~0x00000020); - metricValueType_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Filter.FieldFilter) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Filter.FieldFilter) - private static final com.google.ads.admanager.v1.Report.Filter.FieldFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Filter.FieldFilter(); - } - - public static com.google.ads.admanager.v1.Report.Filter.FieldFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldFilter 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.admanager.v1.Report.Filter.FieldFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface FilterListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Filter.FilterList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getFiltersList(); - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.ads.admanager.v1.Report.Filter getFilters(int index); - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getFiltersCount(); - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getFiltersOrBuilderList(); - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(int index); - } - - /** - * - * - *
    -     * A list of filters.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Filter.FilterList} - */ - public static final class FilterList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Filter.FilterList) - FilterListOrBuilder { - private static final long serialVersionUID = 0L; - - // Use FilterList.newBuilder() to construct. - private FilterList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FilterList() { - filters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FilterList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Filter.FilterList.class, - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder.class); - } - - public static final int FILTERS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List filters_; - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getFiltersList() { - return filters_; - } - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getFiltersOrBuilderList() { - return filters_; - } - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getFiltersCount() { - return filters_.size(); - } - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter getFilters(int index) { - return filters_.get(index); - } - - /** - * - * - *
    -       * Required. A list of filters.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(int index) { - return filters_.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 < filters_.size(); i++) { - output.writeMessage(1, filters_.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 < filters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, filters_.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.admanager.v1.Report.Filter.FilterList)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Filter.FilterList other = - (com.google.ads.admanager.v1.Report.Filter.FilterList) obj; - - if (!getFiltersList().equals(other.getFiltersList())) 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 (getFiltersCount() > 0) { - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFiltersList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList 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.admanager.v1.Report.Filter.FilterList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList 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.admanager.v1.Report.Filter.FilterList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.ads.admanager.v1.Report.Filter.FilterList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -       * A list of filters.
    -       * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Filter.FilterList} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Filter.FilterList) - com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Filter.FilterList.class, - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Filter.FilterList.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (filtersBuilder_ == null) { - filters_ = java.util.Collections.emptyList(); - } else { - filters_ = null; - filtersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterList getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterList build() { - com.google.ads.admanager.v1.Report.Filter.FilterList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterList buildPartial() { - com.google.ads.admanager.v1.Report.Filter.FilterList result = - new com.google.ads.admanager.v1.Report.Filter.FilterList(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.ads.admanager.v1.Report.Filter.FilterList result) { - if (filtersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - filters_ = java.util.Collections.unmodifiableList(filters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filters_ = filters_; - } else { - result.filters_ = filtersBuilder_.build(); - } - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Filter.FilterList result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Filter.FilterList) { - return mergeFrom((com.google.ads.admanager.v1.Report.Filter.FilterList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Filter.FilterList other) { - if (other == com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance()) - return this; - if (filtersBuilder_ == null) { - if (!other.filters_.isEmpty()) { - if (filters_.isEmpty()) { - filters_ = other.filters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFiltersIsMutable(); - filters_.addAll(other.filters_); - } - onChanged(); - } - } else { - if (!other.filters_.isEmpty()) { - if (filtersBuilder_.isEmpty()) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - filters_ = other.filters_; - bitField0_ = (bitField0_ & ~0x00000001); - filtersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFiltersFieldBuilder() - : null; - } else { - filtersBuilder_.addAllMessages(other.filters_); - } - } - } - 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.admanager.v1.Report.Filter m = - input.readMessage( - com.google.ads.admanager.v1.Report.Filter.parser(), extensionRegistry); - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.add(m); - } else { - filtersBuilder_.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 filters_ = - java.util.Collections.emptyList(); - - private void ensureFiltersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - filters_ = new java.util.ArrayList(filters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder> - filtersBuilder_; - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List getFiltersList() { - if (filtersBuilder_ == null) { - return java.util.Collections.unmodifiableList(filters_); - } else { - return filtersBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getFiltersCount() { - if (filtersBuilder_ == null) { - return filters_.size(); - } else { - return filtersBuilder_.getCount(); - } - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Filter getFilters(int index) { - if (filtersBuilder_ == null) { - return filters_.get(index); - } else { - return filtersBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFilters(int index, com.google.ads.admanager.v1.Report.Filter value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFiltersIsMutable(); - filters_.set(index, value); - onChanged(); - } else { - filtersBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFilters( - int index, com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.set(index, builderForValue.build()); - onChanged(); - } else { - filtersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addFilters(com.google.ads.admanager.v1.Report.Filter value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFiltersIsMutable(); - filters_.add(value); - onChanged(); - } else { - filtersBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addFilters(int index, com.google.ads.admanager.v1.Report.Filter value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFiltersIsMutable(); - filters_.add(index, value); - onChanged(); - } else { - filtersBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addFilters( - com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.add(builderForValue.build()); - onChanged(); - } else { - filtersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addFilters( - int index, com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.add(index, builderForValue.build()); - onChanged(); - } else { - filtersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllFilters( - java.lang.Iterable values) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filters_); - onChanged(); - } else { - filtersBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearFilters() { - if (filtersBuilder_ == null) { - filters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - filtersBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeFilters(int index) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.remove(index); - onChanged(); - } else { - filtersBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Filter.Builder getFiltersBuilder(int index) { - return getFiltersFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(int index) { - if (filtersBuilder_ == null) { - return filters_.get(index); - } else { - return filtersBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getFiltersOrBuilderList() { - if (filtersBuilder_ != null) { - return filtersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filters_); - } - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder() { - return getFiltersFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Filter.getDefaultInstance()); - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder(int index) { - return getFiltersFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Filter.getDefaultInstance()); - } - - /** - * - * - *
    -         * Required. A list of filters.
    -         * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getFiltersBuilderList() { - return getFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder> - getFiltersFieldBuilder() { - if (filtersBuilder_ == null) { - filtersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder>( - filters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - filters_ = null; - } - return filtersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Filter.FilterList) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Filter.FilterList) - private static final com.google.ads.admanager.v1.Report.Filter.FilterList DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Filter.FilterList(); - } - - public static com.google.ads.admanager.v1.Report.Filter.FilterList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FilterList 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.admanager.v1.Report.Filter.FilterList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int typeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object type_; - - public enum TypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - FIELD_FILTER(1), - NOT_FILTER(2), - AND_FILTER(3), - OR_FILTER(4), - TYPE_NOT_SET(0); - private final int value; - - private TypeCase(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 TypeCase valueOf(int value) { - return forNumber(value); - } - - public static TypeCase forNumber(int value) { - switch (value) { - case 1: - return FIELD_FILTER; - case 2: - return NOT_FILTER; - case 3: - return AND_FILTER; - case 4: - return OR_FILTER; - case 0: - return TYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); - } - - public static final int FIELD_FILTER_FIELD_NUMBER = 1; - - /** - * - * - *
    -     * A filter on a single field.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - * - * @return Whether the fieldFilter field is set. - */ - @java.lang.Override - public boolean hasFieldFilter() { - return typeCase_ == 1; - } - - /** - * - * - *
    -     * A filter on a single field.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - * - * @return The fieldFilter. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FieldFilter getFieldFilter() { - if (typeCase_ == 1) { - return (com.google.ads.admanager.v1.Report.Filter.FieldFilter) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FieldFilter.getDefaultInstance(); - } - - /** - * - * - *
    -     * A filter on a single field.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FieldFilterOrBuilder - getFieldFilterOrBuilder() { - if (typeCase_ == 1) { - return (com.google.ads.admanager.v1.Report.Filter.FieldFilter) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FieldFilter.getDefaultInstance(); - } - - public static final int NOT_FILTER_FIELD_NUMBER = 2; - - /** - * - * - *
    -     * A filter whose result is negated.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - * - * @return Whether the notFilter field is set. - */ - @java.lang.Override - public boolean hasNotFilter() { - return typeCase_ == 2; - } - - /** - * - * - *
    -     * A filter whose result is negated.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - * - * @return The notFilter. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter getNotFilter() { - if (typeCase_ == 2) { - return (com.google.ads.admanager.v1.Report.Filter) type_; - } - return com.google.ads.admanager.v1.Report.Filter.getDefaultInstance(); - } - - /** - * - * - *
    -     * A filter whose result is negated.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.FilterOrBuilder getNotFilterOrBuilder() { - if (typeCase_ == 2) { - return (com.google.ads.admanager.v1.Report.Filter) type_; - } - return com.google.ads.admanager.v1.Report.Filter.getDefaultInstance(); - } - - public static final int AND_FILTER_FIELD_NUMBER = 3; - - /** - * - * - *
    -     * A list of filters whose results are AND-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - * - * @return Whether the andFilter field is set. - */ - @java.lang.Override - public boolean hasAndFilter() { - return typeCase_ == 3; - } - - /** - * - * - *
    -     * A list of filters whose results are AND-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - * - * @return The andFilter. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterList getAndFilter() { - if (typeCase_ == 3) { - return (com.google.ads.admanager.v1.Report.Filter.FilterList) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - - /** - * - * - *
    -     * A list of filters whose results are AND-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder getAndFilterOrBuilder() { - if (typeCase_ == 3) { - return (com.google.ads.admanager.v1.Report.Filter.FilterList) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - - public static final int OR_FILTER_FIELD_NUMBER = 4; - - /** - * - * - *
    -     * A list of filters whose results are OR-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - * - * @return Whether the orFilter field is set. - */ - @java.lang.Override - public boolean hasOrFilter() { - return typeCase_ == 4; - } - - /** - * - * - *
    -     * A list of filters whose results are OR-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - * - * @return The orFilter. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterList getOrFilter() { - if (typeCase_ == 4) { - return (com.google.ads.admanager.v1.Report.Filter.FilterList) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - - /** - * - * - *
    -     * A list of filters whose results are OR-ed.
    -     * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder getOrFilterOrBuilder() { - if (typeCase_ == 4) { - return (com.google.ads.admanager.v1.Report.Filter.FilterList) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (typeCase_ == 1) { - output.writeMessage(1, (com.google.ads.admanager.v1.Report.Filter.FieldFilter) type_); - } - if (typeCase_ == 2) { - output.writeMessage(2, (com.google.ads.admanager.v1.Report.Filter) type_); - } - if (typeCase_ == 3) { - output.writeMessage(3, (com.google.ads.admanager.v1.Report.Filter.FilterList) type_); - } - if (typeCase_ == 4) { - output.writeMessage(4, (com.google.ads.admanager.v1.Report.Filter.FilterList) type_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.ads.admanager.v1.Report.Filter.FieldFilter) type_); - } - if (typeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.ads.admanager.v1.Report.Filter) type_); - } - if (typeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.ads.admanager.v1.Report.Filter.FilterList) type_); - } - if (typeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.ads.admanager.v1.Report.Filter.FilterList) type_); - } - 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.admanager.v1.Report.Filter)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Filter other = - (com.google.ads.admanager.v1.Report.Filter) obj; - - if (!getTypeCase().equals(other.getTypeCase())) return false; - switch (typeCase_) { - case 1: - if (!getFieldFilter().equals(other.getFieldFilter())) return false; - break; - case 2: - if (!getNotFilter().equals(other.getNotFilter())) return false; - break; - case 3: - if (!getAndFilter().equals(other.getAndFilter())) return false; - break; - case 4: - if (!getOrFilter().equals(other.getOrFilter())) 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(); - switch (typeCase_) { - case 1: - hash = (37 * hash) + FIELD_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFieldFilter().hashCode(); - break; - case 2: - hash = (37 * hash) + NOT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNotFilter().hashCode(); - break; - case 3: - hash = (37 * hash) + AND_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getAndFilter().hashCode(); - break; - case 4: - hash = (37 * hash) + OR_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getOrFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.Filter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Filter 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.admanager.v1.Report.Filter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Filter 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.admanager.v1.Report.Filter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Filter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Filter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Filter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Filter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Filter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Filter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.Filter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * A filter over one or more fields.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Filter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Filter) - com.google.ads.admanager.v1.Report.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Filter.class, - com.google.ads.admanager.v1.Report.Filter.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Filter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (fieldFilterBuilder_ != null) { - fieldFilterBuilder_.clear(); - } - if (notFilterBuilder_ != null) { - notFilterBuilder_.clear(); - } - if (andFilterBuilder_ != null) { - andFilterBuilder_.clear(); - } - if (orFilterBuilder_ != null) { - orFilterBuilder_.clear(); - } - typeCase_ = 0; - type_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Filter_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter build() { - com.google.ads.admanager.v1.Report.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter buildPartial() { - com.google.ads.admanager.v1.Report.Filter result = - new com.google.ads.admanager.v1.Report.Filter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Filter result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.ads.admanager.v1.Report.Filter result) { - result.typeCase_ = typeCase_; - result.type_ = this.type_; - if (typeCase_ == 1 && fieldFilterBuilder_ != null) { - result.type_ = fieldFilterBuilder_.build(); - } - if (typeCase_ == 2 && notFilterBuilder_ != null) { - result.type_ = notFilterBuilder_.build(); - } - if (typeCase_ == 3 && andFilterBuilder_ != null) { - result.type_ = andFilterBuilder_.build(); - } - if (typeCase_ == 4 && orFilterBuilder_ != null) { - result.type_ = orFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Filter) { - return mergeFrom((com.google.ads.admanager.v1.Report.Filter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Filter other) { - if (other == com.google.ads.admanager.v1.Report.Filter.getDefaultInstance()) return this; - switch (other.getTypeCase()) { - case FIELD_FILTER: - { - mergeFieldFilter(other.getFieldFilter()); - break; - } - case NOT_FILTER: - { - mergeNotFilter(other.getNotFilter()); - break; - } - case AND_FILTER: - { - mergeAndFilter(other.getAndFilter()); - break; - } - case OR_FILTER: - { - mergeOrFilter(other.getOrFilter()); - break; - } - case TYPE_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: - { - input.readMessage(getFieldFilterFieldBuilder().getBuilder(), extensionRegistry); - typeCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getNotFilterFieldBuilder().getBuilder(), extensionRegistry); - typeCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getAndFilterFieldBuilder().getBuilder(), extensionRegistry); - typeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getOrFilterFieldBuilder().getBuilder(), extensionRegistry); - typeCase_ = 4; - break; - } // case 34 - 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 typeCase_ = 0; - private java.lang.Object type_; - - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); - } - - public Builder clearType() { - typeCase_ = 0; - type_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter.FieldFilter, - com.google.ads.admanager.v1.Report.Filter.FieldFilter.Builder, - com.google.ads.admanager.v1.Report.Filter.FieldFilterOrBuilder> - fieldFilterBuilder_; - - /** - * - * - *
    -       * A filter on a single field.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - * - * @return Whether the fieldFilter field is set. - */ - @java.lang.Override - public boolean hasFieldFilter() { - return typeCase_ == 1; - } - - /** - * - * - *
    -       * A filter on a single field.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - * - * @return The fieldFilter. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FieldFilter getFieldFilter() { - if (fieldFilterBuilder_ == null) { - if (typeCase_ == 1) { - return (com.google.ads.admanager.v1.Report.Filter.FieldFilter) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FieldFilter.getDefaultInstance(); - } else { - if (typeCase_ == 1) { - return fieldFilterBuilder_.getMessage(); - } - return com.google.ads.admanager.v1.Report.Filter.FieldFilter.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A filter on a single field.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - */ - public Builder setFieldFilter(com.google.ads.admanager.v1.Report.Filter.FieldFilter value) { - if (fieldFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - fieldFilterBuilder_.setMessage(value); - } - typeCase_ = 1; - return this; - } - - /** - * - * - *
    -       * A filter on a single field.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - */ - public Builder setFieldFilter( - com.google.ads.admanager.v1.Report.Filter.FieldFilter.Builder builderForValue) { - if (fieldFilterBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - fieldFilterBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 1; - return this; - } - - /** - * - * - *
    -       * A filter on a single field.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - */ - public Builder mergeFieldFilter(com.google.ads.admanager.v1.Report.Filter.FieldFilter value) { - if (fieldFilterBuilder_ == null) { - if (typeCase_ == 1 - && type_ - != com.google.ads.admanager.v1.Report.Filter.FieldFilter.getDefaultInstance()) { - type_ = - com.google.ads.admanager.v1.Report.Filter.FieldFilter.newBuilder( - (com.google.ads.admanager.v1.Report.Filter.FieldFilter) type_) - .mergeFrom(value) - .buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 1) { - fieldFilterBuilder_.mergeFrom(value); - } else { - fieldFilterBuilder_.setMessage(value); - } - } - typeCase_ = 1; - return this; - } - - /** - * - * - *
    -       * A filter on a single field.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - */ - public Builder clearFieldFilter() { - if (fieldFilterBuilder_ == null) { - if (typeCase_ == 1) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 1) { - typeCase_ = 0; - type_ = null; - } - fieldFilterBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -       * A filter on a single field.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - */ - public com.google.ads.admanager.v1.Report.Filter.FieldFilter.Builder getFieldFilterBuilder() { - return getFieldFilterFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * A filter on a single field.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FieldFilterOrBuilder - getFieldFilterOrBuilder() { - if ((typeCase_ == 1) && (fieldFilterBuilder_ != null)) { - return fieldFilterBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 1) { - return (com.google.ads.admanager.v1.Report.Filter.FieldFilter) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FieldFilter.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A filter on a single field.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter.FieldFilter, - com.google.ads.admanager.v1.Report.Filter.FieldFilter.Builder, - com.google.ads.admanager.v1.Report.Filter.FieldFilterOrBuilder> - getFieldFilterFieldBuilder() { - if (fieldFilterBuilder_ == null) { - if (!(typeCase_ == 1)) { - type_ = com.google.ads.admanager.v1.Report.Filter.FieldFilter.getDefaultInstance(); - } - fieldFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter.FieldFilter, - com.google.ads.admanager.v1.Report.Filter.FieldFilter.Builder, - com.google.ads.admanager.v1.Report.Filter.FieldFilterOrBuilder>( - (com.google.ads.admanager.v1.Report.Filter.FieldFilter) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 1; - onChanged(); - return fieldFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder> - notFilterBuilder_; - - /** - * - * - *
    -       * A filter whose result is negated.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - * - * @return Whether the notFilter field is set. - */ - @java.lang.Override - public boolean hasNotFilter() { - return typeCase_ == 2; - } - - /** - * - * - *
    -       * A filter whose result is negated.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - * - * @return The notFilter. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter getNotFilter() { - if (notFilterBuilder_ == null) { - if (typeCase_ == 2) { - return (com.google.ads.admanager.v1.Report.Filter) type_; - } - return com.google.ads.admanager.v1.Report.Filter.getDefaultInstance(); - } else { - if (typeCase_ == 2) { - return notFilterBuilder_.getMessage(); - } - return com.google.ads.admanager.v1.Report.Filter.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A filter whose result is negated.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - */ - public Builder setNotFilter(com.google.ads.admanager.v1.Report.Filter value) { - if (notFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - notFilterBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - - /** - * - * - *
    -       * A filter whose result is negated.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - */ - public Builder setNotFilter( - com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { - if (notFilterBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - notFilterBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 2; - return this; - } - - /** - * - * - *
    -       * A filter whose result is negated.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - */ - public Builder mergeNotFilter(com.google.ads.admanager.v1.Report.Filter value) { - if (notFilterBuilder_ == null) { - if (typeCase_ == 2 - && type_ != com.google.ads.admanager.v1.Report.Filter.getDefaultInstance()) { - type_ = - com.google.ads.admanager.v1.Report.Filter.newBuilder( - (com.google.ads.admanager.v1.Report.Filter) type_) - .mergeFrom(value) - .buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 2) { - notFilterBuilder_.mergeFrom(value); - } else { - notFilterBuilder_.setMessage(value); - } - } - typeCase_ = 2; - return this; - } - - /** - * - * - *
    -       * A filter whose result is negated.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - */ - public Builder clearNotFilter() { - if (notFilterBuilder_ == null) { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - } - notFilterBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -       * A filter whose result is negated.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - */ - public com.google.ads.admanager.v1.Report.Filter.Builder getNotFilterBuilder() { - return getNotFilterFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * A filter whose result is negated.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.FilterOrBuilder getNotFilterOrBuilder() { - if ((typeCase_ == 2) && (notFilterBuilder_ != null)) { - return notFilterBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 2) { - return (com.google.ads.admanager.v1.Report.Filter) type_; - } - return com.google.ads.admanager.v1.Report.Filter.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A filter whose result is negated.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter not_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder> - getNotFilterFieldBuilder() { - if (notFilterBuilder_ == null) { - if (!(typeCase_ == 2)) { - type_ = com.google.ads.admanager.v1.Report.Filter.getDefaultInstance(); - } - notFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder>( - (com.google.ads.admanager.v1.Report.Filter) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 2; - onChanged(); - return notFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter.FilterList, - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder, - com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder> - andFilterBuilder_; - - /** - * - * - *
    -       * A list of filters whose results are AND-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - * - * @return Whether the andFilter field is set. - */ - @java.lang.Override - public boolean hasAndFilter() { - return typeCase_ == 3; - } - - /** - * - * - *
    -       * A list of filters whose results are AND-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - * - * @return The andFilter. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterList getAndFilter() { - if (andFilterBuilder_ == null) { - if (typeCase_ == 3) { - return (com.google.ads.admanager.v1.Report.Filter.FilterList) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } else { - if (typeCase_ == 3) { - return andFilterBuilder_.getMessage(); - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A list of filters whose results are AND-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - */ - public Builder setAndFilter(com.google.ads.admanager.v1.Report.Filter.FilterList value) { - if (andFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - andFilterBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - - /** - * - * - *
    -       * A list of filters whose results are AND-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - */ - public Builder setAndFilter( - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder builderForValue) { - if (andFilterBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - andFilterBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 3; - return this; - } - - /** - * - * - *
    -       * A list of filters whose results are AND-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - */ - public Builder mergeAndFilter(com.google.ads.admanager.v1.Report.Filter.FilterList value) { - if (andFilterBuilder_ == null) { - if (typeCase_ == 3 - && type_ - != com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance()) { - type_ = - com.google.ads.admanager.v1.Report.Filter.FilterList.newBuilder( - (com.google.ads.admanager.v1.Report.Filter.FilterList) type_) - .mergeFrom(value) - .buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 3) { - andFilterBuilder_.mergeFrom(value); - } else { - andFilterBuilder_.setMessage(value); - } - } - typeCase_ = 3; - return this; - } - - /** - * - * - *
    -       * A list of filters whose results are AND-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - */ - public Builder clearAndFilter() { - if (andFilterBuilder_ == null) { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - } - andFilterBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -       * A list of filters whose results are AND-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - */ - public com.google.ads.admanager.v1.Report.Filter.FilterList.Builder getAndFilterBuilder() { - return getAndFilterFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * A list of filters whose results are AND-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder getAndFilterOrBuilder() { - if ((typeCase_ == 3) && (andFilterBuilder_ != null)) { - return andFilterBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 3) { - return (com.google.ads.admanager.v1.Report.Filter.FilterList) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A list of filters whose results are AND-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter.FilterList, - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder, - com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder> - getAndFilterFieldBuilder() { - if (andFilterBuilder_ == null) { - if (!(typeCase_ == 3)) { - type_ = com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - andFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter.FilterList, - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder, - com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder>( - (com.google.ads.admanager.v1.Report.Filter.FilterList) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 3; - onChanged(); - return andFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter.FilterList, - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder, - com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder> - orFilterBuilder_; - - /** - * - * - *
    -       * A list of filters whose results are OR-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - * - * @return Whether the orFilter field is set. - */ - @java.lang.Override - public boolean hasOrFilter() { - return typeCase_ == 4; - } - - /** - * - * - *
    -       * A list of filters whose results are OR-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - * - * @return The orFilter. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterList getOrFilter() { - if (orFilterBuilder_ == null) { - if (typeCase_ == 4) { - return (com.google.ads.admanager.v1.Report.Filter.FilterList) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } else { - if (typeCase_ == 4) { - return orFilterBuilder_.getMessage(); - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A list of filters whose results are OR-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - */ - public Builder setOrFilter(com.google.ads.admanager.v1.Report.Filter.FilterList value) { - if (orFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - orFilterBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - - /** - * - * - *
    -       * A list of filters whose results are OR-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - */ - public Builder setOrFilter( - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder builderForValue) { - if (orFilterBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - orFilterBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 4; - return this; - } - - /** - * - * - *
    -       * A list of filters whose results are OR-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - */ - public Builder mergeOrFilter(com.google.ads.admanager.v1.Report.Filter.FilterList value) { - if (orFilterBuilder_ == null) { - if (typeCase_ == 4 - && type_ - != com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance()) { - type_ = - com.google.ads.admanager.v1.Report.Filter.FilterList.newBuilder( - (com.google.ads.admanager.v1.Report.Filter.FilterList) type_) - .mergeFrom(value) - .buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 4) { - orFilterBuilder_.mergeFrom(value); - } else { - orFilterBuilder_.setMessage(value); - } - } - typeCase_ = 4; - return this; - } - - /** - * - * - *
    -       * A list of filters whose results are OR-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - */ - public Builder clearOrFilter() { - if (orFilterBuilder_ == null) { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - } - orFilterBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -       * A list of filters whose results are OR-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - */ - public com.google.ads.admanager.v1.Report.Filter.FilterList.Builder getOrFilterBuilder() { - return getOrFilterFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * A list of filters whose results are OR-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder getOrFilterOrBuilder() { - if ((typeCase_ == 4) && (orFilterBuilder_ != null)) { - return orFilterBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 4) { - return (com.google.ads.admanager.v1.Report.Filter.FilterList) type_; - } - return com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A list of filters whose results are OR-ed.
    -       * 
    - * - * .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter.FilterList, - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder, - com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder> - getOrFilterFieldBuilder() { - if (orFilterBuilder_ == null) { - if (!(typeCase_ == 4)) { - type_ = com.google.ads.admanager.v1.Report.Filter.FilterList.getDefaultInstance(); - } - orFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter.FilterList, - com.google.ads.admanager.v1.Report.Filter.FilterList.Builder, - com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder>( - (com.google.ads.admanager.v1.Report.Filter.FilterList) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 4; - onChanged(); - return orFilterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Filter) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Filter) - private static final com.google.ads.admanager.v1.Report.Filter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Filter(); - } - - public static com.google.ads.admanager.v1.Report.Filter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter 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.admanager.v1.Report.Filter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface FlagOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Flag) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getFiltersList(); - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.ads.admanager.v1.Report.Filter getFilters(int index); - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getFiltersCount(); - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getFiltersOrBuilderList(); - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(int index); - - /** - * - * - *
    -     * Optional. Name of the flag.
    -     * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    -     * the colored flags that appear in the UI. The UI will not display flags
    -     * with other names, but they are available for use by API clients.
    -     * 
    - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
    -     * Optional. Name of the flag.
    -     * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    -     * the colored flags that appear in the UI. The UI will not display flags
    -     * with other names, but they are available for use by API clients.
    -     * 
    - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - } - - /** - * - * - *
    -   * A flag for a report. Flags are used show if certain thresholds are met.
    -   * Result rows that match the filter will have the corresponding
    -   * [MetricValueGroup.flagValues][MetricValueGroup] index set to true.
    -   * For more information about flags see:
    -   * https://support.google.com/admanager/answer/15079975
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Flag} - */ - public static final class Flag extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.Flag) - FlagOrBuilder { - private static final long serialVersionUID = 0L; - - // Use Flag.newBuilder() to construct. - private Flag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Flag() { - filters_ = java.util.Collections.emptyList(); - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Flag(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Flag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Flag.class, - com.google.ads.admanager.v1.Report.Flag.Builder.class); - } - - public static final int FILTERS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List filters_; - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getFiltersList() { - return filters_; - } - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getFiltersOrBuilderList() { - return filters_; - } - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getFiltersCount() { - return filters_.size(); - } - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter getFilters(int index) { - return filters_.get(index); - } - - /** - * - * - *
    -     * Required. Filters to apply for the flag.
    -     * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(int index) { - return filters_.get(index); - } - - public static final int NAME_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
    -     * Optional. Name of the flag.
    -     * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    -     * the colored flags that appear in the UI. The UI will not display flags
    -     * with other names, but they are available for use by API clients.
    -     * 
    - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
    -     * Optional. Name of the flag.
    -     * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    -     * the colored flags that appear in the UI. The UI will not display flags
    -     * with other names, but they are available for use by API clients.
    -     * 
    - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 { - for (int i = 0; i < filters_.size(); i++) { - output.writeMessage(1, filters_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < filters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, filters_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.ads.admanager.v1.Report.Flag)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.Flag other = (com.google.ads.admanager.v1.Report.Flag) obj; - - if (!getFiltersList().equals(other.getFiltersList())) return false; - 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(); - if (getFiltersCount() > 0) { - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFiltersList().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.ads.admanager.v1.Report.Flag parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Flag 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.admanager.v1.Report.Flag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Flag 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.admanager.v1.Report.Flag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.Flag parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Flag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Flag parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Flag parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Flag parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.Flag parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.Flag parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.Flag prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * A flag for a report. Flags are used show if certain thresholds are met.
    -     * Result rows that match the filter will have the corresponding
    -     * [MetricValueGroup.flagValues][MetricValueGroup] index set to true.
    -     * For more information about flags see:
    -     * https://support.google.com/admanager/answer/15079975
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.Flag} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Flag) - com.google.ads.admanager.v1.Report.FlagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Flag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.Flag.class, - com.google.ads.admanager.v1.Report.Flag.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.Flag.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (filtersBuilder_ == null) { - filters_ = java.util.Collections.emptyList(); - } else { - filters_ = null; - filtersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_Flag_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Flag getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.Flag.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Flag build() { - com.google.ads.admanager.v1.Report.Flag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.Flag buildPartial() { - com.google.ads.admanager.v1.Report.Flag result = - new com.google.ads.admanager.v1.Report.Flag(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.ads.admanager.v1.Report.Flag result) { - if (filtersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - filters_ = java.util.Collections.unmodifiableList(filters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filters_ = filters_; - } else { - result.filters_ = filtersBuilder_.build(); - } - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.Flag result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.Flag) { - return mergeFrom((com.google.ads.admanager.v1.Report.Flag) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.Flag other) { - if (other == com.google.ads.admanager.v1.Report.Flag.getDefaultInstance()) return this; - if (filtersBuilder_ == null) { - if (!other.filters_.isEmpty()) { - if (filters_.isEmpty()) { - filters_ = other.filters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFiltersIsMutable(); - filters_.addAll(other.filters_); - } - onChanged(); - } - } else { - if (!other.filters_.isEmpty()) { - if (filtersBuilder_.isEmpty()) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - filters_ = other.filters_; - bitField0_ = (bitField0_ & ~0x00000001); - filtersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFiltersFieldBuilder() - : null; - } else { - filtersBuilder_.addAllMessages(other.filters_); - } - } - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - 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: - { - com.google.ads.admanager.v1.Report.Filter m = - input.readMessage( - com.google.ads.admanager.v1.Report.Filter.parser(), extensionRegistry); - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.add(m); - } else { - filtersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - name_ = 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.util.List filters_ = - java.util.Collections.emptyList(); - - private void ensureFiltersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - filters_ = new java.util.ArrayList(filters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder> - filtersBuilder_; - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List getFiltersList() { - if (filtersBuilder_ == null) { - return java.util.Collections.unmodifiableList(filters_); - } else { - return filtersBuilder_.getMessageList(); - } - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getFiltersCount() { - if (filtersBuilder_ == null) { - return filters_.size(); - } else { - return filtersBuilder_.getCount(); - } - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Filter getFilters(int index) { - if (filtersBuilder_ == null) { - return filters_.get(index); - } else { - return filtersBuilder_.getMessage(index); - } - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFilters(int index, com.google.ads.admanager.v1.Report.Filter value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFiltersIsMutable(); - filters_.set(index, value); - onChanged(); - } else { - filtersBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFilters( - int index, com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.set(index, builderForValue.build()); - onChanged(); - } else { - filtersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addFilters(com.google.ads.admanager.v1.Report.Filter value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFiltersIsMutable(); - filters_.add(value); - onChanged(); - } else { - filtersBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addFilters(int index, com.google.ads.admanager.v1.Report.Filter value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFiltersIsMutable(); - filters_.add(index, value); - onChanged(); - } else { - filtersBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addFilters(com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.add(builderForValue.build()); - onChanged(); - } else { - filtersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addFilters( - int index, com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.add(index, builderForValue.build()); - onChanged(); - } else { - filtersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllFilters( - java.lang.Iterable values) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filters_); - onChanged(); - } else { - filtersBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearFilters() { - if (filtersBuilder_ == null) { - filters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - filtersBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeFilters(int index) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.remove(index); - onChanged(); - } else { - filtersBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Filter.Builder getFiltersBuilder(int index) { - return getFiltersFieldBuilder().getBuilder(index); - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(int index) { - if (filtersBuilder_ == null) { - return filters_.get(index); - } else { - return filtersBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getFiltersOrBuilderList() { - if (filtersBuilder_ != null) { - return filtersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filters_); - } - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder() { - return getFiltersFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Filter.getDefaultInstance()); - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder(int index) { - return getFiltersFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Filter.getDefaultInstance()); - } - - /** - * - * - *
    -       * Required. Filters to apply for the flag.
    -       * 
    - * - * - * repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getFiltersBuilderList() { - return getFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder> - getFiltersFieldBuilder() { - if (filtersBuilder_ == null) { - filtersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder>( - filters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - filters_ = null; - } - return filtersBuilder_; - } - - private java.lang.Object name_ = ""; - - /** - * - * - *
    -       * Optional. Name of the flag.
    -       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    -       * the colored flags that appear in the UI. The UI will not display flags
    -       * with other names, but they are available for use by API clients.
    -       * 
    - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
    -       * Optional. Name of the flag.
    -       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    -       * the colored flags that appear in the UI. The UI will not display flags
    -       * with other names, but they are available for use by API clients.
    -       * 
    - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
    -       * Optional. Name of the flag.
    -       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    -       * the colored flags that appear in the UI. The UI will not display flags
    -       * with other names, but they are available for use by API clients.
    -       * 
    - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Name of the flag.
    -       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    -       * the colored flags that appear in the UI. The UI will not display flags
    -       * with other names, but they are available for use by API clients.
    -       * 
    - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Name of the flag.
    -       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    -       * the colored flags that appear in the UI. The UI will not display flags
    -       * with other names, but they are available for use by API clients.
    -       * 
    - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.Flag) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.Flag) - private static final com.google.ads.admanager.v1.Report.Flag DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.Flag(); - } - - public static com.google.ads.admanager.v1.Report.Flag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Flag 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.admanager.v1.Report.Flag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DateRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.DateRange) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * A fixed date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - * - * @return Whether the fixed field is set. - */ - boolean hasFixed(); - - /** - * - * - *
    -     * A fixed date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - * - * @return The fixed. - */ - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getFixed(); - - /** - * - * - *
    -     * A fixed date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - */ - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder getFixedOrBuilder(); - - /** - * - * - *
    -     * A relative date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return Whether the relative field is set. - */ - boolean hasRelative(); - - /** - * - * - *
    -     * A relative date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return The enum numeric value on the wire for relative. - */ - int getRelativeValue(); - - /** - * - * - *
    -     * A relative date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return The relative. - */ - com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange getRelative(); - - com.google.ads.admanager.v1.Report.DateRange.DateRangeTypeCase getDateRangeTypeCase(); - } - - /** - * - * - *
    -   * A date range for a report.
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DateRange} - */ - public static final class DateRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.DateRange) - DateRangeOrBuilder { - private static final long serialVersionUID = 0L; - - // Use DateRange.newBuilder() to construct. - private DateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DateRange() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DateRange(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DateRange.class, - com.google.ads.admanager.v1.Report.DateRange.Builder.class); - } - - /** - * - * - *
    -     * Options for relative date ranges.
    -     * 
    - * - * Protobuf enum {@code google.ads.admanager.v1.Report.DateRange.RelativeDateRange} - */ - public enum RelativeDateRange implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -       * Default value. This value is unused.
    -       * 
    - * - * RELATIVE_DATE_RANGE_UNSPECIFIED = 0; - */ - RELATIVE_DATE_RANGE_UNSPECIFIED(0), - /** - * - * - *
    -       * The date the report is run.
    -       * 
    - * - * TODAY = 1; - */ - TODAY(1), - /** - * - * - *
    -       * The date a day before the date that the report is run.
    -       * 
    - * - * YESTERDAY = 2; - */ - YESTERDAY(2), - /** - * - * - *
    -       * The full week in which this report is run. Could include dates in
    -       * the future.
    -       * 
    - * - * THIS_WEEK = 3; - */ - THIS_WEEK(3), - /** - * - * - *
    -       * From the beginning of the calendar week (Monday to Sunday) in which the
    -       * up to and including the day the report is run.
    -       * 
    - * - * THIS_WEEK_TO_DATE = 29; - */ - THIS_WEEK_TO_DATE(29), - /** - * - * - *
    -       * The full month in which this report is run. Could include dates in
    -       * the future.
    -       * 
    - * - * THIS_MONTH = 4; - */ - THIS_MONTH(4), - /** - * - * - *
    -       * From the beginning of the calendar month in which the report is run, to
    -       * up to and including the day the report is run.
    -       * 
    - * - * THIS_MONTH_TO_DATE = 26; - */ - THIS_MONTH_TO_DATE(26), - /** - * - * - *
    -       * The full quarter in which this report is run. Could include dates
    -       * in the future.
    -       * 
    - * - * THIS_QUARTER = 5; - */ - THIS_QUARTER(5), - /** - * - * - *
    -       * From the beginning of the calendar quarter in which the report is run,
    -       * up to and including the day the report is run.
    -       * 
    - * - * THIS_QUARTER_TO_DATE = 27; - */ - THIS_QUARTER_TO_DATE(27), - /** - * - * - *
    -       * The full year in which this report is run. Could include dates in
    -       * the future.
    -       * 
    - * - * THIS_YEAR = 6; - */ - THIS_YEAR(6), - /** - * - * - *
    -       * From the beginning of the calendar year in which the report is run, to
    -       * up to and including the day the report is run.
    -       * 
    - * - * THIS_YEAR_TO_DATE = 28; - */ - THIS_YEAR_TO_DATE(28), - /** - * - * - *
    -       * The entire previous calendar week, Monday to Sunday (inclusive),
    -       * preceding the calendar week the report is run.
    -       * 
    - * - * LAST_WEEK = 7; - */ - LAST_WEEK(7), - /** - * - * - *
    -       * The entire previous calendar month preceding the calendar month the
    -       * report is run.
    -       * 
    - * - * LAST_MONTH = 8; - */ - LAST_MONTH(8), - /** - * - * - *
    -       * The entire previous calendar quarter preceding the calendar quarter the
    -       * report is run.
    -       * 
    - * - * LAST_QUARTER = 9; - */ - LAST_QUARTER(9), - /** - * - * - *
    -       * The entire previous calendar year preceding the calendar year the
    -       * report is run.
    -       * 
    - * - * LAST_YEAR = 10; - */ - LAST_YEAR(10), - /** - * - * - *
    -       * The 7 days preceding the day the report is run.
    -       * 
    - * - * LAST_7_DAYS = 11; - */ - LAST_7_DAYS(11), - /** - * - * - *
    -       * The 30 days preceding the day the report is run.
    -       * 
    - * - * LAST_30_DAYS = 12; - */ - LAST_30_DAYS(12), - /** - * - * - *
    -       * The 60 days preceding the day the report is run.
    -       * 
    - * - * LAST_60_DAYS = 13; - */ - LAST_60_DAYS(13), - /** - * - * - *
    -       * The 90 days preceding the day the report is run.
    -       * 
    - * - * LAST_90_DAYS = 14; - */ - LAST_90_DAYS(14), - /** - * - * - *
    -       * The 180 days preceding the day the report is run.
    -       * 
    - * - * LAST_180_DAYS = 15; - */ - LAST_180_DAYS(15), - /** - * - * - *
    -       * The 360 days preceding the day the report is run.
    -       * 
    - * - * LAST_360_DAYS = 16; - */ - LAST_360_DAYS(16), - /** - * - * - *
    -       * The 365 days preceding the day the report is run.
    -       * 
    - * - * LAST_365_DAYS = 17; - */ - LAST_365_DAYS(17), - /** - * - * - *
    -       * The entire previous 3 calendar months preceding the calendar month the
    -       * report is run.
    -       * 
    - * - * LAST_3_MONTHS = 18; - */ - LAST_3_MONTHS(18), - /** - * - * - *
    -       * The entire previous 6 calendar months preceding the calendar month the
    -       * report is run.
    -       * 
    - * - * LAST_6_MONTHS = 19; - */ - LAST_6_MONTHS(19), - /** - * - * - *
    -       * The entire previous 6 calendar months preceding the calendar month the
    -       * report is run.
    -       * 
    - * - * LAST_12_MONTHS = 20; - */ - LAST_12_MONTHS(20), - /** - * - * - *
    -       * From 3 years before the report is run, to the day before the report is
    -       * run, inclusive.
    -       * 
    - * - * ALL_AVAILABLE = 21; - */ - ALL_AVAILABLE(21), - /** - * - * - *
    -       * Only valid when used in the comparison_date_range field. The complete
    -       * period preceding the date period provided in date_range.
    -       *
    -       * In the case where date_range is a FixedDateRange of N days, this will
    -       * be a period of N days where the end date is the date preceding the
    -       * start date of the date_range.
    -       *
    -       * In the case where date_range is a RelativeDateRange, this will be a
    -       * period of the same time frame preceding the date_range. In the case
    -       * where the date_range does not capture the full period because a report
    -       * is run in the middle of that period, this will still be the full
    -       * preceding period. For example, if date_range is THIS_WEEK, but the
    -       * report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but
    -       * PREVIOUS_PERIOD will be Monday - Sunday.
    -       * 
    - * - * PREVIOUS_PERIOD = 22; - */ - PREVIOUS_PERIOD(22), - /** - * - * - *
    -       * Only valid when used in the comparison_date_range field. The period
    -       * starting 1 year prior to the date period provided in date_range.
    -       *
    -       * In the case where date_range is a FixedDateRange, this will be a date
    -       * range starting 1 year prior to the date_range start date and ending 1
    -       * year prior to the date_range end date.
    -       *
    -       * In the case where date_range is a RelativeDateRange, this will be a
    -       * period of the same time frame exactly 1 year prior to the date_range.
    -       * In the case where the date_range does not capture the full period
    -       * because a report is run in the middle of that period, this will still
    -       * be the full period 1 year prior. For example, if date range is
    -       * THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be
    -       * Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday -
    -       * Sunday.
    -       * 
    - * - * SAME_PERIOD_PREVIOUS_YEAR = 24; - */ - SAME_PERIOD_PREVIOUS_YEAR(24), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
    -       * Default value. This value is unused.
    -       * 
    - * - * RELATIVE_DATE_RANGE_UNSPECIFIED = 0; - */ - public static final int RELATIVE_DATE_RANGE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
    -       * The date the report is run.
    -       * 
    - * - * TODAY = 1; - */ - public static final int TODAY_VALUE = 1; - - /** - * - * - *
    -       * The date a day before the date that the report is run.
    -       * 
    - * - * YESTERDAY = 2; - */ - public static final int YESTERDAY_VALUE = 2; - - /** - * - * - *
    -       * The full week in which this report is run. Could include dates in
    -       * the future.
    -       * 
    - * - * THIS_WEEK = 3; - */ - public static final int THIS_WEEK_VALUE = 3; - - /** - * - * - *
    -       * From the beginning of the calendar week (Monday to Sunday) in which the
    -       * up to and including the day the report is run.
    -       * 
    - * - * THIS_WEEK_TO_DATE = 29; - */ - public static final int THIS_WEEK_TO_DATE_VALUE = 29; - - /** - * - * - *
    -       * The full month in which this report is run. Could include dates in
    -       * the future.
    -       * 
    - * - * THIS_MONTH = 4; - */ - public static final int THIS_MONTH_VALUE = 4; - - /** - * - * - *
    -       * From the beginning of the calendar month in which the report is run, to
    -       * up to and including the day the report is run.
    -       * 
    - * - * THIS_MONTH_TO_DATE = 26; - */ - public static final int THIS_MONTH_TO_DATE_VALUE = 26; - - /** - * - * - *
    -       * The full quarter in which this report is run. Could include dates
    -       * in the future.
    -       * 
    - * - * THIS_QUARTER = 5; - */ - public static final int THIS_QUARTER_VALUE = 5; - - /** - * - * - *
    -       * From the beginning of the calendar quarter in which the report is run,
    -       * up to and including the day the report is run.
    -       * 
    - * - * THIS_QUARTER_TO_DATE = 27; - */ - public static final int THIS_QUARTER_TO_DATE_VALUE = 27; - - /** - * - * - *
    -       * The full year in which this report is run. Could include dates in
    -       * the future.
    -       * 
    - * - * THIS_YEAR = 6; - */ - public static final int THIS_YEAR_VALUE = 6; - - /** - * - * - *
    -       * From the beginning of the calendar year in which the report is run, to
    -       * up to and including the day the report is run.
    -       * 
    - * - * THIS_YEAR_TO_DATE = 28; - */ - public static final int THIS_YEAR_TO_DATE_VALUE = 28; - - /** - * - * - *
    -       * The entire previous calendar week, Monday to Sunday (inclusive),
    -       * preceding the calendar week the report is run.
    -       * 
    - * - * LAST_WEEK = 7; - */ - public static final int LAST_WEEK_VALUE = 7; - - /** - * - * - *
    -       * The entire previous calendar month preceding the calendar month the
    -       * report is run.
    -       * 
    - * - * LAST_MONTH = 8; - */ - public static final int LAST_MONTH_VALUE = 8; - - /** - * - * - *
    -       * The entire previous calendar quarter preceding the calendar quarter the
    -       * report is run.
    -       * 
    - * - * LAST_QUARTER = 9; - */ - public static final int LAST_QUARTER_VALUE = 9; - - /** - * - * - *
    -       * The entire previous calendar year preceding the calendar year the
    -       * report is run.
    -       * 
    - * - * LAST_YEAR = 10; - */ - public static final int LAST_YEAR_VALUE = 10; - - /** - * - * - *
    -       * The 7 days preceding the day the report is run.
    -       * 
    - * - * LAST_7_DAYS = 11; - */ - public static final int LAST_7_DAYS_VALUE = 11; - - /** - * - * - *
    -       * The 30 days preceding the day the report is run.
    -       * 
    - * - * LAST_30_DAYS = 12; - */ - public static final int LAST_30_DAYS_VALUE = 12; - - /** - * - * - *
    -       * The 60 days preceding the day the report is run.
    -       * 
    - * - * LAST_60_DAYS = 13; - */ - public static final int LAST_60_DAYS_VALUE = 13; - - /** - * - * - *
    -       * The 90 days preceding the day the report is run.
    -       * 
    - * - * LAST_90_DAYS = 14; - */ - public static final int LAST_90_DAYS_VALUE = 14; - - /** - * - * - *
    -       * The 180 days preceding the day the report is run.
    -       * 
    - * - * LAST_180_DAYS = 15; - */ - public static final int LAST_180_DAYS_VALUE = 15; - - /** - * - * - *
    -       * The 360 days preceding the day the report is run.
    -       * 
    - * - * LAST_360_DAYS = 16; - */ - public static final int LAST_360_DAYS_VALUE = 16; - - /** - * - * - *
    -       * The 365 days preceding the day the report is run.
    -       * 
    - * - * LAST_365_DAYS = 17; - */ - public static final int LAST_365_DAYS_VALUE = 17; - - /** - * - * - *
    -       * The entire previous 3 calendar months preceding the calendar month the
    -       * report is run.
    -       * 
    - * - * LAST_3_MONTHS = 18; - */ - public static final int LAST_3_MONTHS_VALUE = 18; - - /** - * - * - *
    -       * The entire previous 6 calendar months preceding the calendar month the
    -       * report is run.
    -       * 
    - * - * LAST_6_MONTHS = 19; - */ - public static final int LAST_6_MONTHS_VALUE = 19; - - /** - * - * - *
    -       * The entire previous 6 calendar months preceding the calendar month the
    -       * report is run.
    -       * 
    - * - * LAST_12_MONTHS = 20; - */ - public static final int LAST_12_MONTHS_VALUE = 20; - - /** - * - * - *
    -       * From 3 years before the report is run, to the day before the report is
    -       * run, inclusive.
    -       * 
    - * - * ALL_AVAILABLE = 21; - */ - public static final int ALL_AVAILABLE_VALUE = 21; - - /** - * - * - *
    -       * Only valid when used in the comparison_date_range field. The complete
    -       * period preceding the date period provided in date_range.
    -       *
    -       * In the case where date_range is a FixedDateRange of N days, this will
    -       * be a period of N days where the end date is the date preceding the
    -       * start date of the date_range.
    -       *
    -       * In the case where date_range is a RelativeDateRange, this will be a
    -       * period of the same time frame preceding the date_range. In the case
    -       * where the date_range does not capture the full period because a report
    -       * is run in the middle of that period, this will still be the full
    -       * preceding period. For example, if date_range is THIS_WEEK, but the
    -       * report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but
    -       * PREVIOUS_PERIOD will be Monday - Sunday.
    -       * 
    - * - * PREVIOUS_PERIOD = 22; - */ - public static final int PREVIOUS_PERIOD_VALUE = 22; - - /** - * - * - *
    -       * Only valid when used in the comparison_date_range field. The period
    -       * starting 1 year prior to the date period provided in date_range.
    -       *
    -       * In the case where date_range is a FixedDateRange, this will be a date
    -       * range starting 1 year prior to the date_range start date and ending 1
    -       * year prior to the date_range end date.
    -       *
    -       * In the case where date_range is a RelativeDateRange, this will be a
    -       * period of the same time frame exactly 1 year prior to the date_range.
    -       * In the case where the date_range does not capture the full period
    -       * because a report is run in the middle of that period, this will still
    -       * be the full period 1 year prior. For example, if date range is
    -       * THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be
    -       * Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday -
    -       * Sunday.
    -       * 
    - * - * SAME_PERIOD_PREVIOUS_YEAR = 24; - */ - public static final int SAME_PERIOD_PREVIOUS_YEAR_VALUE = 24; - - 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 RelativeDateRange 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 RelativeDateRange forNumber(int value) { - switch (value) { - case 0: - return RELATIVE_DATE_RANGE_UNSPECIFIED; - case 1: - return TODAY; - case 2: - return YESTERDAY; - case 3: - return THIS_WEEK; - case 29: - return THIS_WEEK_TO_DATE; - case 4: - return THIS_MONTH; - case 26: - return THIS_MONTH_TO_DATE; - case 5: - return THIS_QUARTER; - case 27: - return THIS_QUARTER_TO_DATE; - case 6: - return THIS_YEAR; - case 28: - return THIS_YEAR_TO_DATE; - case 7: - return LAST_WEEK; - case 8: - return LAST_MONTH; - case 9: - return LAST_QUARTER; - case 10: - return LAST_YEAR; - case 11: - return LAST_7_DAYS; - case 12: - return LAST_30_DAYS; - case 13: - return LAST_60_DAYS; - case 14: - return LAST_90_DAYS; - case 15: - return LAST_180_DAYS; - case 16: - return LAST_360_DAYS; - case 17: - return LAST_365_DAYS; - case 18: - return LAST_3_MONTHS; - case 19: - return LAST_6_MONTHS; - case 20: - return LAST_12_MONTHS; - case 21: - return ALL_AVAILABLE; - case 22: - return PREVIOUS_PERIOD; - case 24: - return SAME_PERIOD_PREVIOUS_YEAR; - 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 RelativeDateRange findValueByNumber(int number) { - return RelativeDateRange.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.admanager.v1.Report.DateRange.getDescriptor().getEnumTypes().get(0); - } - - private static final RelativeDateRange[] VALUES = values(); - - public static RelativeDateRange 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 RelativeDateRange(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.DateRange.RelativeDateRange) - } - - public interface FixedDateRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.DateRange.FixedDateRange) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -       * Required. The start date of this date range.
    -       * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the startDate field is set. - */ - boolean hasStartDate(); - - /** - * - * - *
    -       * Required. The start date of this date range.
    -       * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The startDate. - */ - com.google.type.Date getStartDate(); - - /** - * - * - *
    -       * Required. The start date of this date range.
    -       * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.type.DateOrBuilder getStartDateOrBuilder(); - - /** - * - * - *
    -       * Required. The end date (inclusive) of this date range.
    -       * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the endDate field is set. - */ - boolean hasEndDate(); - - /** - * - * - *
    -       * Required. The end date (inclusive) of this date range.
    -       * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The endDate. - */ - com.google.type.Date getEndDate(); - - /** - * - * - *
    -       * Required. The end date (inclusive) of this date range.
    -       * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.type.DateOrBuilder getEndDateOrBuilder(); - } - - /** - * - * - *
    -     * A date range between two fixed dates (inclusive of end date).
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DateRange.FixedDateRange} - */ - public static final class FixedDateRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Report.DateRange.FixedDateRange) - FixedDateRangeOrBuilder { - private static final long serialVersionUID = 0L; - - // Use FixedDateRange.newBuilder() to construct. - private FixedDateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FixedDateRange() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FixedDateRange(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.class, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder.class); - } - - private int bitField0_; - public static final int START_DATE_FIELD_NUMBER = 1; - private com.google.type.Date startDate_; - - /** - * - * - *
    -       * Required. The start date of this date range.
    -       * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the startDate field is set. - */ - @java.lang.Override - public boolean hasStartDate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -       * Required. The start date of this date range.
    -       * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The startDate. - */ - @java.lang.Override - public com.google.type.Date getStartDate() { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - - /** - * - * - *
    -       * Required. The start date of this date range.
    -       * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - - public static final int END_DATE_FIELD_NUMBER = 2; - private com.google.type.Date endDate_; - - /** - * - * - *
    -       * Required. The end date (inclusive) of this date range.
    -       * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the endDate field is set. - */ - @java.lang.Override - public boolean hasEndDate() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
    -       * Required. The end date (inclusive) of this date range.
    -       * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The endDate. - */ - @java.lang.Override - public com.google.type.Date getEndDate() { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - - /** - * - * - *
    -       * Required. The end date (inclusive) of this date range.
    -       * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - - 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, getStartDate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getEndDate()); - } - 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, getStartDate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); - } - 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.admanager.v1.Report.DateRange.FixedDateRange)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange other = - (com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) obj; - - if (hasStartDate() != other.hasStartDate()) return false; - if (hasStartDate()) { - if (!getStartDate().equals(other.getStartDate())) return false; - } - if (hasEndDate() != other.hasEndDate()) return false; - if (hasEndDate()) { - if (!getEndDate().equals(other.getEndDate())) 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 (hasStartDate()) { - hash = (37 * hash) + START_DATE_FIELD_NUMBER; - hash = (53 * hash) + getStartDate().hashCode(); - } - if (hasEndDate()) { - hash = (37 * hash) + END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getEndDate().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange 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.admanager.v1.Report.DateRange.FixedDateRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange 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.admanager.v1.Report.DateRange.FixedDateRange parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -       * A date range between two fixed dates (inclusive of end date).
    -       * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DateRange.FixedDateRange} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DateRange.FixedDateRange) - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.class, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStartDateFieldBuilder(); - getEndDateFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - startDate_ = null; - if (startDateBuilder_ != null) { - startDateBuilder_.dispose(); - startDateBuilder_ = null; - } - endDate_ = null; - if (endDateBuilder_ != null) { - endDateBuilder_.dispose(); - endDateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange - getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange build() { - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange buildPartial() { - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange result = - new com.google.ads.admanager.v1.Report.DateRange.FixedDateRange(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) { - return mergeFrom((com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange other) { - if (other - == com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance()) - return this; - if (other.hasStartDate()) { - mergeStartDate(other.getStartDate()); - } - if (other.hasEndDate()) { - mergeEndDate(other.getEndDate()); - } - 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(getStartDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndDateFieldBuilder().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.type.Date startDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - startDateBuilder_; - - /** - * - * - *
    -         * Required. The start date of this date range.
    -         * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the startDate field is set. - */ - public boolean hasStartDate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -         * Required. The start date of this date range.
    -         * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The startDate. - */ - public com.google.type.Date getStartDate() { - if (startDateBuilder_ == null) { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } else { - return startDateBuilder_.getMessage(); - } - } - - /** - * - * - *
    -         * Required. The start date of this date range.
    -         * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startDate_ = value; - } else { - startDateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The start date of this date range.
    -         * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setStartDate(com.google.type.Date.Builder builderForValue) { - if (startDateBuilder_ == null) { - startDate_ = builderForValue.build(); - } else { - startDateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The start date of this date range.
    -         * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startDate_ != null - && startDate_ != com.google.type.Date.getDefaultInstance()) { - getStartDateBuilder().mergeFrom(value); - } else { - startDate_ = value; - } - } else { - startDateBuilder_.mergeFrom(value); - } - if (startDate_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
    -         * Required. The start date of this date range.
    -         * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearStartDate() { - bitField0_ = (bitField0_ & ~0x00000001); - startDate_ = null; - if (startDateBuilder_ != null) { - startDateBuilder_.dispose(); - startDateBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The start date of this date range.
    -         * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.Date.Builder getStartDateBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getStartDateFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -         * Required. The start date of this date range.
    -         * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - if (startDateBuilder_ != null) { - return startDateBuilder_.getMessageOrBuilder(); - } else { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - } - - /** - * - * - *
    -         * Required. The start date of this date range.
    -         * 
    - * - * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getStartDateFieldBuilder() { - if (startDateBuilder_ == null) { - startDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, - com.google.type.Date.Builder, - com.google.type.DateOrBuilder>( - getStartDate(), getParentForChildren(), isClean()); - startDate_ = null; - } - return startDateBuilder_; - } - - private com.google.type.Date endDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - endDateBuilder_; - - /** - * - * - *
    -         * Required. The end date (inclusive) of this date range.
    -         * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the endDate field is set. - */ - public boolean hasEndDate() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
    -         * Required. The end date (inclusive) of this date range.
    -         * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The endDate. - */ - public com.google.type.Date getEndDate() { - if (endDateBuilder_ == null) { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } else { - return endDateBuilder_.getMessage(); - } - } - - /** - * - * - *
    -         * Required. The end date (inclusive) of this date range.
    -         * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endDate_ = value; - } else { - endDateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The end date (inclusive) of this date range.
    -         * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEndDate(com.google.type.Date.Builder builderForValue) { - if (endDateBuilder_ == null) { - endDate_ = builderForValue.build(); - } else { - endDateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The end date (inclusive) of this date range.
    -         * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endDate_ != null - && endDate_ != com.google.type.Date.getDefaultInstance()) { - getEndDateBuilder().mergeFrom(value); - } else { - endDate_ = value; - } - } else { - endDateBuilder_.mergeFrom(value); - } - if (endDate_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
    -         * Required. The end date (inclusive) of this date range.
    -         * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearEndDate() { - bitField0_ = (bitField0_ & ~0x00000002); - endDate_ = null; - if (endDateBuilder_ != null) { - endDateBuilder_.dispose(); - endDateBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -         * Required. The end date (inclusive) of this date range.
    -         * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.Date.Builder getEndDateBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getEndDateFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -         * Required. The end date (inclusive) of this date range.
    -         * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - if (endDateBuilder_ != null) { - return endDateBuilder_.getMessageOrBuilder(); - } else { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - } - - /** - * - * - *
    -         * Required. The end date (inclusive) of this date range.
    -         * 
    - * - * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getEndDateFieldBuilder() { - if (endDateBuilder_ == null) { - endDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, - com.google.type.Date.Builder, - com.google.type.DateOrBuilder>(getEndDate(), getParentForChildren(), isClean()); - endDate_ = null; - } - return endDateBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.DateRange.FixedDateRange) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.DateRange.FixedDateRange) - private static final com.google.ads.admanager.v1.Report.DateRange.FixedDateRange - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.DateRange.FixedDateRange(); - } - - public static com.google.ads.admanager.v1.Report.DateRange.FixedDateRange - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FixedDateRange 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.admanager.v1.Report.DateRange.FixedDateRange - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int dateRangeTypeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object dateRangeType_; - - public enum DateRangeTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - FIXED(1), - RELATIVE(2), - DATERANGETYPE_NOT_SET(0); - private final int value; - - private DateRangeTypeCase(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 DateRangeTypeCase valueOf(int value) { - return forNumber(value); - } - - public static DateRangeTypeCase forNumber(int value) { - switch (value) { - case 1: - return FIXED; - case 2: - return RELATIVE; - case 0: - return DATERANGETYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DateRangeTypeCase getDateRangeTypeCase() { - return DateRangeTypeCase.forNumber(dateRangeTypeCase_); - } - - public static final int FIXED_FIELD_NUMBER = 1; - - /** - * - * - *
    -     * A fixed date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - * - * @return Whether the fixed field is set. - */ - @java.lang.Override - public boolean hasFixed() { - return dateRangeTypeCase_ == 1; - } - - /** - * - * - *
    -     * A fixed date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - * - * @return The fixed. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getFixed() { - if (dateRangeTypeCase_ == 1) { - return (com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) dateRangeType_; - } - return com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance(); - } - - /** - * - * - *
    -     * A fixed date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder - getFixedOrBuilder() { - if (dateRangeTypeCase_ == 1) { - return (com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) dateRangeType_; - } - return com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance(); - } - - public static final int RELATIVE_FIELD_NUMBER = 2; - - /** - * - * - *
    -     * A relative date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return Whether the relative field is set. - */ - public boolean hasRelative() { - return dateRangeTypeCase_ == 2; - } - - /** - * - * - *
    -     * A relative date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return The enum numeric value on the wire for relative. - */ - public int getRelativeValue() { - if (dateRangeTypeCase_ == 2) { - return (java.lang.Integer) dateRangeType_; - } - return 0; - } - - /** - * - * - *
    -     * A relative date range.
    -     * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return The relative. - */ - public com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange getRelative() { - if (dateRangeTypeCase_ == 2) { - com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange result = - com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange.forNumber( - (java.lang.Integer) dateRangeType_); - return result == null - ? com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange.UNRECOGNIZED - : result; - } - return com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange - .RELATIVE_DATE_RANGE_UNSPECIFIED; - } - - 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 (dateRangeTypeCase_ == 1) { - output.writeMessage( - 1, (com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) dateRangeType_); - } - if (dateRangeTypeCase_ == 2) { - output.writeEnum(2, ((java.lang.Integer) dateRangeType_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dateRangeTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) dateRangeType_); - } - if (dateRangeTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, ((java.lang.Integer) dateRangeType_)); - } - 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.admanager.v1.Report.DateRange)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Report.DateRange other = - (com.google.ads.admanager.v1.Report.DateRange) obj; - - if (!getDateRangeTypeCase().equals(other.getDateRangeTypeCase())) return false; - switch (dateRangeTypeCase_) { - case 1: - if (!getFixed().equals(other.getFixed())) return false; - break; - case 2: - if (getRelativeValue() != other.getRelativeValue()) 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(); - switch (dateRangeTypeCase_) { - case 1: - hash = (37 * hash) + FIXED_FIELD_NUMBER; - hash = (53 * hash) + getFixed().hashCode(); - break; - case 2: - hash = (37 * hash) + RELATIVE_FIELD_NUMBER; - hash = (53 * hash) + getRelativeValue(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Report.DateRange parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DateRange 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.admanager.v1.Report.DateRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DateRange 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.admanager.v1.Report.DateRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Report.DateRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DateRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DateRange parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DateRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DateRange parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Report.DateRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Report.DateRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Report.DateRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * A date range for a report.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Report.DateRange} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DateRange) - com.google.ads.admanager.v1.Report.DateRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Report.DateRange.class, - com.google.ads.admanager.v1.Report.DateRange.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Report.DateRange.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (fixedBuilder_ != null) { - fixedBuilder_.clear(); - } - dateRangeTypeCase_ = 0; - dateRangeType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Report_DateRange_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange build() { - com.google.ads.admanager.v1.Report.DateRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange buildPartial() { - com.google.ads.admanager.v1.Report.DateRange result = - new com.google.ads.admanager.v1.Report.DateRange(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Report.DateRange result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.ads.admanager.v1.Report.DateRange result) { - result.dateRangeTypeCase_ = dateRangeTypeCase_; - result.dateRangeType_ = this.dateRangeType_; - if (dateRangeTypeCase_ == 1 && fixedBuilder_ != null) { - result.dateRangeType_ = fixedBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Report.DateRange) { - return mergeFrom((com.google.ads.admanager.v1.Report.DateRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Report.DateRange other) { - if (other == com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance()) return this; - switch (other.getDateRangeTypeCase()) { - case FIXED: - { - mergeFixed(other.getFixed()); - break; - } - case RELATIVE: - { - setRelativeValue(other.getRelativeValue()); - break; - } - case DATERANGETYPE_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: - { - input.readMessage(getFixedFieldBuilder().getBuilder(), extensionRegistry); - dateRangeTypeCase_ = 1; - break; - } // case 10 - case 16: - { - int rawValue = input.readEnum(); - dateRangeTypeCase_ = 2; - dateRangeType_ = rawValue; - break; - } // case 16 - 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 dateRangeTypeCase_ = 0; - private java.lang.Object dateRangeType_; - - public DateRangeTypeCase getDateRangeTypeCase() { - return DateRangeTypeCase.forNumber(dateRangeTypeCase_); - } - - public Builder clearDateRangeType() { - dateRangeTypeCase_ = 0; - dateRangeType_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> - fixedBuilder_; - - /** - * - * - *
    -       * A fixed date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - * - * @return Whether the fixed field is set. - */ - @java.lang.Override - public boolean hasFixed() { - return dateRangeTypeCase_ == 1; - } - - /** - * - * - *
    -       * A fixed date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - * - * @return The fixed. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange getFixed() { - if (fixedBuilder_ == null) { - if (dateRangeTypeCase_ == 1) { - return (com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) dateRangeType_; - } - return com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance(); - } else { - if (dateRangeTypeCase_ == 1) { - return fixedBuilder_.getMessage(); - } - return com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A fixed date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - */ - public Builder setFixed(com.google.ads.admanager.v1.Report.DateRange.FixedDateRange value) { - if (fixedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dateRangeType_ = value; - onChanged(); - } else { - fixedBuilder_.setMessage(value); - } - dateRangeTypeCase_ = 1; - return this; - } - - /** - * - * - *
    -       * A fixed date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - */ - public Builder setFixed( - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder builderForValue) { - if (fixedBuilder_ == null) { - dateRangeType_ = builderForValue.build(); - onChanged(); - } else { - fixedBuilder_.setMessage(builderForValue.build()); - } - dateRangeTypeCase_ = 1; - return this; - } - - /** - * - * - *
    -       * A fixed date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - */ - public Builder mergeFixed(com.google.ads.admanager.v1.Report.DateRange.FixedDateRange value) { - if (fixedBuilder_ == null) { - if (dateRangeTypeCase_ == 1 - && dateRangeType_ - != com.google.ads.admanager.v1.Report.DateRange.FixedDateRange - .getDefaultInstance()) { - dateRangeType_ = - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.newBuilder( - (com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) - dateRangeType_) - .mergeFrom(value) - .buildPartial(); - } else { - dateRangeType_ = value; - } - onChanged(); - } else { - if (dateRangeTypeCase_ == 1) { - fixedBuilder_.mergeFrom(value); - } else { - fixedBuilder_.setMessage(value); - } - } - dateRangeTypeCase_ = 1; - return this; - } - - /** - * - * - *
    -       * A fixed date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - */ - public Builder clearFixed() { - if (fixedBuilder_ == null) { - if (dateRangeTypeCase_ == 1) { - dateRangeTypeCase_ = 0; - dateRangeType_ = null; - onChanged(); - } - } else { - if (dateRangeTypeCase_ == 1) { - dateRangeTypeCase_ = 0; - dateRangeType_ = null; - } - fixedBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -       * A fixed date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - */ - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder getFixedBuilder() { - return getFixedFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * A fixed date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder - getFixedOrBuilder() { - if ((dateRangeTypeCase_ == 1) && (fixedBuilder_ != null)) { - return fixedBuilder_.getMessageOrBuilder(); - } else { - if (dateRangeTypeCase_ == 1) { - return (com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) dateRangeType_; - } - return com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance(); - } - } - - /** - * - * - *
    -       * A fixed date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder> - getFixedFieldBuilder() { - if (fixedBuilder_ == null) { - if (!(dateRangeTypeCase_ == 1)) { - dateRangeType_ = - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.getDefaultInstance(); - } - fixedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.Builder, - com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder>( - (com.google.ads.admanager.v1.Report.DateRange.FixedDateRange) dateRangeType_, - getParentForChildren(), - isClean()); - dateRangeType_ = null; - } - dateRangeTypeCase_ = 1; - onChanged(); - return fixedBuilder_; - } - - /** - * - * - *
    -       * A relative date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return Whether the relative field is set. - */ - @java.lang.Override - public boolean hasRelative() { - return dateRangeTypeCase_ == 2; - } - - /** - * - * - *
    -       * A relative date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return The enum numeric value on the wire for relative. - */ - @java.lang.Override - public int getRelativeValue() { - if (dateRangeTypeCase_ == 2) { - return ((java.lang.Integer) dateRangeType_).intValue(); - } - return 0; - } - - /** - * - * - *
    -       * A relative date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @param value The enum numeric value on the wire for relative to set. - * @return This builder for chaining. - */ - public Builder setRelativeValue(int value) { - dateRangeTypeCase_ = 2; - dateRangeType_ = value; - onChanged(); - return this; - } - - /** - * - * - *
    -       * A relative date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return The relative. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange getRelative() { - if (dateRangeTypeCase_ == 2) { - com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange result = - com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange.forNumber( - (java.lang.Integer) dateRangeType_); - return result == null - ? com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange.UNRECOGNIZED - : result; - } - return com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange - .RELATIVE_DATE_RANGE_UNSPECIFIED; - } - - /** - * - * - *
    -       * A relative date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @param value The relative to set. - * @return This builder for chaining. - */ - public Builder setRelative( - com.google.ads.admanager.v1.Report.DateRange.RelativeDateRange value) { - if (value == null) { - throw new NullPointerException(); - } - dateRangeTypeCase_ = 2; - dateRangeType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
    -       * A relative date range.
    -       * 
    - * - * .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * - * @return This builder for chaining. - */ - public Builder clearRelative() { - if (dateRangeTypeCase_ == 2) { - dateRangeTypeCase_ = 0; - dateRangeType_ = null; - onChanged(); - } - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Report.DateRange) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Report.DateRange) - private static final com.google.ads.admanager.v1.Report.DateRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Report.DateRange(); - } - - public static com.google.ads.admanager.v1.Report.DateRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DateRange 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.admanager.v1.Report.DateRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.Visibility) } private int bitField0_; @@ -43625,7 +576,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * *
        * Output only. The locale of this report. Locale is set from the user's
    -   * locale at the time of the request. Locale can not be modified.
    +   * locale at the time of the request. Locale can't be modified.
        * 
    * * string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -43650,7 +601,7 @@ public java.lang.String getLocale() { * *
        * Output only. The locale of this report. Locale is set from the user's
    -   * locale at the time of the request. Locale can not be modified.
    +   * locale at the time of the request. Locale can't be modified.
        * 
    * * string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -45343,7 +2294,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * *
          * Output only. The locale of this report. Locale is set from the user's
    -     * locale at the time of the request. Locale can not be modified.
    +     * locale at the time of the request. Locale can't be modified.
          * 
    * * string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -45367,7 +2318,7 @@ public java.lang.String getLocale() { * *
          * Output only. The locale of this report. Locale is set from the user's
    -     * locale at the time of the request. Locale can not be modified.
    +     * locale at the time of the request. Locale can't be modified.
          * 
    * * string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -45391,7 +2342,7 @@ public com.google.protobuf.ByteString getLocaleBytes() { * *
          * Output only. The locale of this report. Locale is set from the user's
    -     * locale at the time of the request. Locale can not be modified.
    +     * locale at the time of the request. Locale can't be modified.
          * 
    * * string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -45414,7 +2365,7 @@ public Builder setLocale(java.lang.String value) { * *
          * Output only. The locale of this report. Locale is set from the user's
    -     * locale at the time of the request. Locale can not be modified.
    +     * locale at the time of the request. Locale can't be modified.
          * 
    * * string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -45433,7 +2384,7 @@ public Builder clearLocale() { * *
          * Output only. The locale of this report. Locale is set from the user's
    -     * locale at the time of the request. Locale can not be modified.
    +     * locale at the time of the request. Locale can't be modified.
          * 
    * * string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDataTable.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDataTable.java new file mode 100644 index 000000000000..f8f9658095cd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDataTable.java @@ -0,0 +1,6682 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/report_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * A table containing report data including dimension and metric values.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDataTable} + */ +public final class ReportDataTable extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDataTable) + ReportDataTableOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReportDataTable.newBuilder() to construct. + private ReportDataTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReportDataTable() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportDataTable(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDataTable.class, + com.google.ads.admanager.v1.ReportDataTable.Builder.class); + } + + public interface RowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDataTable.Row) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + java.util.List getDimensionValuesList(); + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + com.google.ads.admanager.v1.ReportValue getDimensionValues(int index); + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + int getDimensionValuesCount(); + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + java.util.List + getDimensionValuesOrBuilderList(); + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + com.google.ads.admanager.v1.ReportValueOrBuilder getDimensionValuesOrBuilder(int index); + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + java.util.List + getMetricValueGroupsList(); + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup getMetricValueGroups(int index); + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + int getMetricValueGroupsCount(); + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + java.util.List + getMetricValueGroupsOrBuilderList(); + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroupOrBuilder + getMetricValueGroupsOrBuilder(int index); + } + + /** + * + * + *
    +   * A row of report data.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDataTable.Row} + */ + public static final class Row extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDataTable.Row) + RowOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Row.newBuilder() to construct. + private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Row() { + dimensionValues_ = java.util.Collections.emptyList(); + metricValueGroups_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Row(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDataTable.Row.class, + com.google.ads.admanager.v1.ReportDataTable.Row.Builder.class); + } + + public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dimensionValues_; + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + @java.lang.Override + public java.util.List getDimensionValuesList() { + return dimensionValues_; + } + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + @java.lang.Override + public java.util.List + getDimensionValuesOrBuilderList() { + return dimensionValues_; + } + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + @java.lang.Override + public int getDimensionValuesCount() { + return dimensionValues_.size(); + } + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getDimensionValues(int index) { + return dimensionValues_.get(index); + } + + /** + * + * + *
    +     * The order of the dimension values is the same as the order of the
    +     * dimensions specified in the request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValueOrBuilder getDimensionValuesOrBuilder(int index) { + return dimensionValues_.get(index); + } + + public static final int METRIC_VALUE_GROUPS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + metricValueGroups_; + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + @java.lang.Override + public java.util.List + getMetricValueGroupsList() { + return metricValueGroups_; + } + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.ads.admanager.v1.ReportDataTable.MetricValueGroupOrBuilder> + getMetricValueGroupsOrBuilderList() { + return metricValueGroups_; + } + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + @java.lang.Override + public int getMetricValueGroupsCount() { + return metricValueGroups_.size(); + } + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup getMetricValueGroups( + int index) { + return metricValueGroups_.get(index); + } + + /** + * + * + *
    +     *
    +     * The length of the metric_value_groups
    +     * field will be equal to the length of the date_ranges field in the
    +     * fetch response. The metric_value_groups field is
    +     * ordered such that each index corresponds to the date_range at the same
    +     * index. For example, given date_ranges [x, y], metric_value_groups will
    +     * have a length of two. The first entry in metric_value_groups represents
    +     * the metrics for date x and the second entry in metric_value_groups
    +     * represents the metrics for date y.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroupOrBuilder + getMetricValueGroupsOrBuilder(int index) { + return metricValueGroups_.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 < dimensionValues_.size(); i++) { + output.writeMessage(1, dimensionValues_.get(i)); + } + for (int i = 0; i < metricValueGroups_.size(); i++) { + output.writeMessage(2, metricValueGroups_.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 < dimensionValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionValues_.get(i)); + } + for (int i = 0; i < metricValueGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricValueGroups_.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.admanager.v1.ReportDataTable.Row)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDataTable.Row other = + (com.google.ads.admanager.v1.ReportDataTable.Row) obj; + + if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; + if (!getMetricValueGroupsList().equals(other.getMetricValueGroupsList())) 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 (getDimensionValuesCount() > 0) { + hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getDimensionValuesList().hashCode(); + } + if (getMetricValueGroupsCount() > 0) { + hash = (37 * hash) + METRIC_VALUE_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getMetricValueGroupsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row 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.admanager.v1.ReportDataTable.Row parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row 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.admanager.v1.ReportDataTable.Row parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportDataTable.Row prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A row of report data.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDataTable.Row} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDataTable.Row) + com.google.ads.admanager.v1.ReportDataTable.RowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDataTable.Row.class, + com.google.ads.admanager.v1.ReportDataTable.Row.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportDataTable.Row.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dimensionValuesBuilder_ == null) { + dimensionValues_ = java.util.Collections.emptyList(); + } else { + dimensionValues_ = null; + dimensionValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (metricValueGroupsBuilder_ == null) { + metricValueGroups_ = java.util.Collections.emptyList(); + } else { + metricValueGroups_ = null; + metricValueGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_Row_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable.Row getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDataTable.Row.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable.Row build() { + com.google.ads.admanager.v1.ReportDataTable.Row result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable.Row buildPartial() { + com.google.ads.admanager.v1.ReportDataTable.Row result = + new com.google.ads.admanager.v1.ReportDataTable.Row(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ReportDataTable.Row result) { + if (dimensionValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensionValues_ = dimensionValues_; + } else { + result.dimensionValues_ = dimensionValuesBuilder_.build(); + } + if (metricValueGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metricValueGroups_ = java.util.Collections.unmodifiableList(metricValueGroups_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metricValueGroups_ = metricValueGroups_; + } else { + result.metricValueGroups_ = metricValueGroupsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportDataTable.Row result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDataTable.Row) { + return mergeFrom((com.google.ads.admanager.v1.ReportDataTable.Row) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportDataTable.Row other) { + if (other == com.google.ads.admanager.v1.ReportDataTable.Row.getDefaultInstance()) + return this; + if (dimensionValuesBuilder_ == null) { + if (!other.dimensionValues_.isEmpty()) { + if (dimensionValues_.isEmpty()) { + dimensionValues_ = other.dimensionValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionValuesIsMutable(); + dimensionValues_.addAll(other.dimensionValues_); + } + onChanged(); + } + } else { + if (!other.dimensionValues_.isEmpty()) { + if (dimensionValuesBuilder_.isEmpty()) { + dimensionValuesBuilder_.dispose(); + dimensionValuesBuilder_ = null; + dimensionValues_ = other.dimensionValues_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionValuesFieldBuilder() + : null; + } else { + dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); + } + } + } + if (metricValueGroupsBuilder_ == null) { + if (!other.metricValueGroups_.isEmpty()) { + if (metricValueGroups_.isEmpty()) { + metricValueGroups_ = other.metricValueGroups_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetricValueGroupsIsMutable(); + metricValueGroups_.addAll(other.metricValueGroups_); + } + onChanged(); + } + } else { + if (!other.metricValueGroups_.isEmpty()) { + if (metricValueGroupsBuilder_.isEmpty()) { + metricValueGroupsBuilder_.dispose(); + metricValueGroupsBuilder_ = null; + metricValueGroups_ = other.metricValueGroups_; + bitField0_ = (bitField0_ & ~0x00000002); + metricValueGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricValueGroupsFieldBuilder() + : null; + } else { + metricValueGroupsBuilder_.addAllMessages(other.metricValueGroups_); + } + } + } + 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.admanager.v1.ReportValue m = + input.readMessage( + com.google.ads.admanager.v1.ReportValue.parser(), extensionRegistry); + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(m); + } else { + dimensionValuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup m = + input.readMessage( + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.parser(), + extensionRegistry); + if (metricValueGroupsBuilder_ == null) { + ensureMetricValueGroupsIsMutable(); + metricValueGroups_.add(m); + } else { + metricValueGroupsBuilder_.addMessage(m); + } + 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.util.List dimensionValues_ = + java.util.Collections.emptyList(); + + private void ensureDimensionValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = + new java.util.ArrayList(dimensionValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + dimensionValuesBuilder_; + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public java.util.List getDimensionValuesList() { + if (dimensionValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensionValues_); + } else { + return dimensionValuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public int getDimensionValuesCount() { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.size(); + } else { + return dimensionValuesBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public com.google.ads.admanager.v1.ReportValue getDimensionValues(int index) { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.get(index); + } else { + return dimensionValuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public Builder setDimensionValues(int index, com.google.ads.admanager.v1.ReportValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.set(index, value); + onChanged(); + } else { + dimensionValuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public Builder setDimensionValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public Builder addDimensionValues(com.google.ads.admanager.v1.ReportValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.add(value); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public Builder addDimensionValues(int index, com.google.ads.admanager.v1.ReportValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.add(index, value); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public Builder addDimensionValues( + com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public Builder addDimensionValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public Builder addAllDimensionValues( + java.lang.Iterable values) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionValues_); + onChanged(); + } else { + dimensionValuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public Builder clearDimensionValues() { + if (dimensionValuesBuilder_ == null) { + dimensionValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionValuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public Builder removeDimensionValues(int index) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.remove(index); + onChanged(); + } else { + dimensionValuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public com.google.ads.admanager.v1.ReportValue.Builder getDimensionValuesBuilder(int index) { + return getDimensionValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public com.google.ads.admanager.v1.ReportValueOrBuilder getDimensionValuesOrBuilder( + int index) { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.get(index); + } else { + return dimensionValuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public java.util.List + getDimensionValuesOrBuilderList() { + if (dimensionValuesBuilder_ != null) { + return dimensionValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensionValues_); + } + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addDimensionValuesBuilder() { + return getDimensionValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addDimensionValuesBuilder(int index) { + return getDimensionValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * The order of the dimension values is the same as the order of the
    +       * dimensions specified in the request.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue dimension_values = 1; + */ + public java.util.List + getDimensionValuesBuilderList() { + return getDimensionValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + getDimensionValuesFieldBuilder() { + if (dimensionValuesBuilder_ == null) { + dimensionValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder>( + dimensionValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dimensionValues_ = null; + } + return dimensionValuesBuilder_; + } + + private java.util.List + metricValueGroups_ = java.util.Collections.emptyList(); + + private void ensureMetricValueGroupsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metricValueGroups_ = + new java.util.ArrayList( + metricValueGroups_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroupOrBuilder> + metricValueGroupsBuilder_; + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public java.util.List + getMetricValueGroupsList() { + if (metricValueGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricValueGroups_); + } else { + return metricValueGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public int getMetricValueGroupsCount() { + if (metricValueGroupsBuilder_ == null) { + return metricValueGroups_.size(); + } else { + return metricValueGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup getMetricValueGroups( + int index) { + if (metricValueGroupsBuilder_ == null) { + return metricValueGroups_.get(index); + } else { + return metricValueGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public Builder setMetricValueGroups( + int index, com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup value) { + if (metricValueGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValueGroupsIsMutable(); + metricValueGroups_.set(index, value); + onChanged(); + } else { + metricValueGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public Builder setMetricValueGroups( + int index, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder builderForValue) { + if (metricValueGroupsBuilder_ == null) { + ensureMetricValueGroupsIsMutable(); + metricValueGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + metricValueGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public Builder addMetricValueGroups( + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup value) { + if (metricValueGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValueGroupsIsMutable(); + metricValueGroups_.add(value); + onChanged(); + } else { + metricValueGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public Builder addMetricValueGroups( + int index, com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup value) { + if (metricValueGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValueGroupsIsMutable(); + metricValueGroups_.add(index, value); + onChanged(); + } else { + metricValueGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public Builder addMetricValueGroups( + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder builderForValue) { + if (metricValueGroupsBuilder_ == null) { + ensureMetricValueGroupsIsMutable(); + metricValueGroups_.add(builderForValue.build()); + onChanged(); + } else { + metricValueGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public Builder addMetricValueGroups( + int index, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder builderForValue) { + if (metricValueGroupsBuilder_ == null) { + ensureMetricValueGroupsIsMutable(); + metricValueGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + metricValueGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public Builder addAllMetricValueGroups( + java.lang.Iterable + values) { + if (metricValueGroupsBuilder_ == null) { + ensureMetricValueGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricValueGroups_); + onChanged(); + } else { + metricValueGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public Builder clearMetricValueGroups() { + if (metricValueGroupsBuilder_ == null) { + metricValueGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metricValueGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public Builder removeMetricValueGroups(int index) { + if (metricValueGroupsBuilder_ == null) { + ensureMetricValueGroupsIsMutable(); + metricValueGroups_.remove(index); + onChanged(); + } else { + metricValueGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder + getMetricValueGroupsBuilder(int index) { + return getMetricValueGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroupOrBuilder + getMetricValueGroupsOrBuilder(int index) { + if (metricValueGroupsBuilder_ == null) { + return metricValueGroups_.get(index); + } else { + return metricValueGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public java.util.List< + ? extends com.google.ads.admanager.v1.ReportDataTable.MetricValueGroupOrBuilder> + getMetricValueGroupsOrBuilderList() { + if (metricValueGroupsBuilder_ != null) { + return metricValueGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricValueGroups_); + } + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder + addMetricValueGroupsBuilder() { + return getMetricValueGroupsFieldBuilder() + .addBuilder( + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.getDefaultInstance()); + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder + addMetricValueGroupsBuilder(int index) { + return getMetricValueGroupsFieldBuilder() + .addBuilder( + index, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.getDefaultInstance()); + } + + /** + * + * + *
    +       *
    +       * The length of the metric_value_groups
    +       * field will be equal to the length of the date_ranges field in the
    +       * fetch response. The metric_value_groups field is
    +       * ordered such that each index corresponds to the date_range at the same
    +       * index. For example, given date_ranges [x, y], metric_value_groups will
    +       * have a length of two. The first entry in metric_value_groups represents
    +       * the metrics for date x and the second entry in metric_value_groups
    +       * represents the metrics for date y.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDataTable.MetricValueGroup metric_value_groups = 2; + * + */ + public java.util.List + getMetricValueGroupsBuilderList() { + return getMetricValueGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroupOrBuilder> + getMetricValueGroupsFieldBuilder() { + if (metricValueGroupsBuilder_ == null) { + metricValueGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroupOrBuilder>( + metricValueGroups_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + metricValueGroups_ = null; + } + return metricValueGroupsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDataTable.Row) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDataTable.Row) + private static final com.google.ads.admanager.v1.ReportDataTable.Row DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDataTable.Row(); + } + + public static com.google.ads.admanager.v1.ReportDataTable.Row getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Row 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.admanager.v1.ReportDataTable.Row getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MetricValueGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDataTable.MetricValueGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + java.util.List getPrimaryValuesList(); + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + com.google.ads.admanager.v1.ReportValue getPrimaryValues(int index); + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + int getPrimaryValuesCount(); + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + java.util.List + getPrimaryValuesOrBuilderList(); + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + com.google.ads.admanager.v1.ReportValueOrBuilder getPrimaryValuesOrBuilder(int index); + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + java.util.List getPrimaryPercentOfTotalValuesList(); + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + com.google.ads.admanager.v1.ReportValue getPrimaryPercentOfTotalValues(int index); + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + int getPrimaryPercentOfTotalValuesCount(); + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + java.util.List + getPrimaryPercentOfTotalValuesOrBuilderList(); + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + com.google.ads.admanager.v1.ReportValueOrBuilder getPrimaryPercentOfTotalValuesOrBuilder( + int index); + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + java.util.List getComparisonValuesList(); + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + com.google.ads.admanager.v1.ReportValue getComparisonValues(int index); + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + int getComparisonValuesCount(); + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + java.util.List + getComparisonValuesOrBuilderList(); + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + com.google.ads.admanager.v1.ReportValueOrBuilder getComparisonValuesOrBuilder(int index); + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + java.util.List getComparisonPercentOfTotalValuesList(); + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + com.google.ads.admanager.v1.ReportValue getComparisonPercentOfTotalValues(int index); + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + int getComparisonPercentOfTotalValuesCount(); + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + java.util.List + getComparisonPercentOfTotalValuesOrBuilderList(); + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + com.google.ads.admanager.v1.ReportValueOrBuilder getComparisonPercentOfTotalValuesOrBuilder( + int index); + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + java.util.List getAbsoluteChangeValuesList(); + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + com.google.ads.admanager.v1.ReportValue getAbsoluteChangeValues(int index); + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + int getAbsoluteChangeValuesCount(); + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + java.util.List + getAbsoluteChangeValuesOrBuilderList(); + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + com.google.ads.admanager.v1.ReportValueOrBuilder getAbsoluteChangeValuesOrBuilder(int index); + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + java.util.List getRelativeChangeValuesList(); + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + com.google.ads.admanager.v1.ReportValue getRelativeChangeValues(int index); + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + int getRelativeChangeValuesCount(); + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + java.util.List + getRelativeChangeValuesOrBuilderList(); + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + com.google.ads.admanager.v1.ReportValueOrBuilder getRelativeChangeValuesOrBuilder(int index); + + /** + * + * + *
    +     * If true, the flag's conditions are met. If false, the flag's
    +     * conditions are not met. flag_values has the same length as
    +     * flags and index i of flag_values represents the flag at index i
    +     * of flags.
    +     * 
    + * + * repeated bool flag_values = 7; + * + * @return A list containing the flagValues. + */ + java.util.List getFlagValuesList(); + + /** + * + * + *
    +     * If true, the flag's conditions are met. If false, the flag's
    +     * conditions are not met. flag_values has the same length as
    +     * flags and index i of flag_values represents the flag at index i
    +     * of flags.
    +     * 
    + * + * repeated bool flag_values = 7; + * + * @return The count of flagValues. + */ + int getFlagValuesCount(); + + /** + * + * + *
    +     * If true, the flag's conditions are met. If false, the flag's
    +     * conditions are not met. flag_values has the same length as
    +     * flags and index i of flag_values represents the flag at index i
    +     * of flags.
    +     * 
    + * + * repeated bool flag_values = 7; + * + * @param index The index of the element to return. + * @return The flagValues at the given index. + */ + boolean getFlagValues(int index); + } + + /** + * + * + *
    +   * Contains all metric values requested for a single date range and set of
    +   * column dimension values (returned in the columns field of the response).
    +   * The order of the metrics in each field corresponds to the order of the
    +   * metrics specified in the request.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDataTable.MetricValueGroup} + */ + public static final class MetricValueGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDataTable.MetricValueGroup) + MetricValueGroupOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MetricValueGroup.newBuilder() to construct. + private MetricValueGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetricValueGroup() { + primaryValues_ = java.util.Collections.emptyList(); + primaryPercentOfTotalValues_ = java.util.Collections.emptyList(); + comparisonValues_ = java.util.Collections.emptyList(); + comparisonPercentOfTotalValues_ = java.util.Collections.emptyList(); + absoluteChangeValues_ = java.util.Collections.emptyList(); + relativeChangeValues_ = java.util.Collections.emptyList(); + flagValues_ = emptyBooleanList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricValueGroup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.class, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder.class); + } + + public static final int PRIMARY_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List primaryValues_; + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + @java.lang.Override + public java.util.List getPrimaryValuesList() { + return primaryValues_; + } + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + @java.lang.Override + public java.util.List + getPrimaryValuesOrBuilderList() { + return primaryValues_; + } + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + @java.lang.Override + public int getPrimaryValuesCount() { + return primaryValues_.size(); + } + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getPrimaryValues(int index) { + return primaryValues_.get(index); + } + + /** + * + * + *
    +     * Data for the PRIMARY MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValueOrBuilder getPrimaryValuesOrBuilder(int index) { + return primaryValues_.get(index); + } + + public static final int PRIMARY_PERCENT_OF_TOTAL_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List primaryPercentOfTotalValues_; + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + @java.lang.Override + public java.util.List + getPrimaryPercentOfTotalValuesList() { + return primaryPercentOfTotalValues_; + } + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + @java.lang.Override + public java.util.List + getPrimaryPercentOfTotalValuesOrBuilderList() { + return primaryPercentOfTotalValues_; + } + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + @java.lang.Override + public int getPrimaryPercentOfTotalValuesCount() { + return primaryPercentOfTotalValues_.size(); + } + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getPrimaryPercentOfTotalValues(int index) { + return primaryPercentOfTotalValues_.get(index); + } + + /** + * + * + *
    +     * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValueOrBuilder getPrimaryPercentOfTotalValuesOrBuilder( + int index) { + return primaryPercentOfTotalValues_.get(index); + } + + public static final int COMPARISON_VALUES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List comparisonValues_; + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + @java.lang.Override + public java.util.List getComparisonValuesList() { + return comparisonValues_; + } + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + @java.lang.Override + public java.util.List + getComparisonValuesOrBuilderList() { + return comparisonValues_; + } + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + @java.lang.Override + public int getComparisonValuesCount() { + return comparisonValues_.size(); + } + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getComparisonValues(int index) { + return comparisonValues_.get(index); + } + + /** + * + * + *
    +     * Data for the COMPARISON MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValueOrBuilder getComparisonValuesOrBuilder( + int index) { + return comparisonValues_.get(index); + } + + public static final int COMPARISON_PERCENT_OF_TOTAL_VALUES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List comparisonPercentOfTotalValues_; + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + @java.lang.Override + public java.util.List + getComparisonPercentOfTotalValuesList() { + return comparisonPercentOfTotalValues_; + } + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + @java.lang.Override + public java.util.List + getComparisonPercentOfTotalValuesOrBuilderList() { + return comparisonPercentOfTotalValues_; + } + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + @java.lang.Override + public int getComparisonPercentOfTotalValuesCount() { + return comparisonPercentOfTotalValues_.size(); + } + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getComparisonPercentOfTotalValues(int index) { + return comparisonPercentOfTotalValues_.get(index); + } + + /** + * + * + *
    +     * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValueOrBuilder + getComparisonPercentOfTotalValuesOrBuilder(int index) { + return comparisonPercentOfTotalValues_.get(index); + } + + public static final int ABSOLUTE_CHANGE_VALUES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List absoluteChangeValues_; + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + @java.lang.Override + public java.util.List getAbsoluteChangeValuesList() { + return absoluteChangeValues_; + } + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + @java.lang.Override + public java.util.List + getAbsoluteChangeValuesOrBuilderList() { + return absoluteChangeValues_; + } + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + @java.lang.Override + public int getAbsoluteChangeValuesCount() { + return absoluteChangeValues_.size(); + } + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getAbsoluteChangeValues(int index) { + return absoluteChangeValues_.get(index); + } + + /** + * + * + *
    +     * Data for the ABSOLUTE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValueOrBuilder getAbsoluteChangeValuesOrBuilder( + int index) { + return absoluteChangeValues_.get(index); + } + + public static final int RELATIVE_CHANGE_VALUES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List relativeChangeValues_; + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + @java.lang.Override + public java.util.List getRelativeChangeValuesList() { + return relativeChangeValues_; + } + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + @java.lang.Override + public java.util.List + getRelativeChangeValuesOrBuilderList() { + return relativeChangeValues_; + } + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + @java.lang.Override + public int getRelativeChangeValuesCount() { + return relativeChangeValues_.size(); + } + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getRelativeChangeValues(int index) { + return relativeChangeValues_.get(index); + } + + /** + * + * + *
    +     * Data for the RELATIVE_CHANGE MetricValueType.
    +     * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValueOrBuilder getRelativeChangeValuesOrBuilder( + int index) { + return relativeChangeValues_.get(index); + } + + public static final int FLAG_VALUES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.BooleanList flagValues_ = emptyBooleanList(); + + /** + * + * + *
    +     * If true, the flag's conditions are met. If false, the flag's
    +     * conditions are not met. flag_values has the same length as
    +     * flags and index i of flag_values represents the flag at index i
    +     * of flags.
    +     * 
    + * + * repeated bool flag_values = 7; + * + * @return A list containing the flagValues. + */ + @java.lang.Override + public java.util.List getFlagValuesList() { + return flagValues_; + } + + /** + * + * + *
    +     * If true, the flag's conditions are met. If false, the flag's
    +     * conditions are not met. flag_values has the same length as
    +     * flags and index i of flag_values represents the flag at index i
    +     * of flags.
    +     * 
    + * + * repeated bool flag_values = 7; + * + * @return The count of flagValues. + */ + public int getFlagValuesCount() { + return flagValues_.size(); + } + + /** + * + * + *
    +     * If true, the flag's conditions are met. If false, the flag's
    +     * conditions are not met. flag_values has the same length as
    +     * flags and index i of flag_values represents the flag at index i
    +     * of flags.
    +     * 
    + * + * repeated bool flag_values = 7; + * + * @param index The index of the element to return. + * @return The flagValues at the given index. + */ + public boolean getFlagValues(int index) { + return flagValues_.getBoolean(index); + } + + private int flagValuesMemoizedSerializedSize = -1; + + 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(); + for (int i = 0; i < primaryValues_.size(); i++) { + output.writeMessage(1, primaryValues_.get(i)); + } + for (int i = 0; i < primaryPercentOfTotalValues_.size(); i++) { + output.writeMessage(2, primaryPercentOfTotalValues_.get(i)); + } + for (int i = 0; i < comparisonValues_.size(); i++) { + output.writeMessage(3, comparisonValues_.get(i)); + } + for (int i = 0; i < comparisonPercentOfTotalValues_.size(); i++) { + output.writeMessage(4, comparisonPercentOfTotalValues_.get(i)); + } + for (int i = 0; i < absoluteChangeValues_.size(); i++) { + output.writeMessage(5, absoluteChangeValues_.get(i)); + } + for (int i = 0; i < relativeChangeValues_.size(); i++) { + output.writeMessage(6, relativeChangeValues_.get(i)); + } + if (getFlagValuesList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(flagValuesMemoizedSerializedSize); + } + for (int i = 0; i < flagValues_.size(); i++) { + output.writeBoolNoTag(flagValues_.getBoolean(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 < primaryValues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, primaryValues_.get(i)); + } + for (int i = 0; i < primaryPercentOfTotalValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, primaryPercentOfTotalValues_.get(i)); + } + for (int i = 0; i < comparisonValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, comparisonValues_.get(i)); + } + for (int i = 0; i < comparisonPercentOfTotalValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, comparisonPercentOfTotalValues_.get(i)); + } + for (int i = 0; i < absoluteChangeValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, absoluteChangeValues_.get(i)); + } + for (int i = 0; i < relativeChangeValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, relativeChangeValues_.get(i)); + } + { + int dataSize = 0; + dataSize = 1 * getFlagValuesList().size(); + size += dataSize; + if (!getFlagValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + flagValuesMemoizedSerializedSize = dataSize; + } + 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.admanager.v1.ReportDataTable.MetricValueGroup)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup other = + (com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup) obj; + + if (!getPrimaryValuesList().equals(other.getPrimaryValuesList())) return false; + if (!getPrimaryPercentOfTotalValuesList().equals(other.getPrimaryPercentOfTotalValuesList())) + return false; + if (!getComparisonValuesList().equals(other.getComparisonValuesList())) return false; + if (!getComparisonPercentOfTotalValuesList() + .equals(other.getComparisonPercentOfTotalValuesList())) return false; + if (!getAbsoluteChangeValuesList().equals(other.getAbsoluteChangeValuesList())) return false; + if (!getRelativeChangeValuesList().equals(other.getRelativeChangeValuesList())) return false; + if (!getFlagValuesList().equals(other.getFlagValuesList())) 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 (getPrimaryValuesCount() > 0) { + hash = (37 * hash) + PRIMARY_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryValuesList().hashCode(); + } + if (getPrimaryPercentOfTotalValuesCount() > 0) { + hash = (37 * hash) + PRIMARY_PERCENT_OF_TOTAL_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryPercentOfTotalValuesList().hashCode(); + } + if (getComparisonValuesCount() > 0) { + hash = (37 * hash) + COMPARISON_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getComparisonValuesList().hashCode(); + } + if (getComparisonPercentOfTotalValuesCount() > 0) { + hash = (37 * hash) + COMPARISON_PERCENT_OF_TOTAL_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getComparisonPercentOfTotalValuesList().hashCode(); + } + if (getAbsoluteChangeValuesCount() > 0) { + hash = (37 * hash) + ABSOLUTE_CHANGE_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getAbsoluteChangeValuesList().hashCode(); + } + if (getRelativeChangeValuesCount() > 0) { + hash = (37 * hash) + RELATIVE_CHANGE_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getRelativeChangeValuesList().hashCode(); + } + if (getFlagValuesCount() > 0) { + hash = (37 * hash) + FLAG_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getFlagValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup 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.admanager.v1.ReportDataTable.MetricValueGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup 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.admanager.v1.ReportDataTable.MetricValueGroup parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Contains all metric values requested for a single date range and set of
    +     * column dimension values (returned in the columns field of the response).
    +     * The order of the metrics in each field corresponds to the order of the
    +     * metrics specified in the request.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDataTable.MetricValueGroup} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDataTable.MetricValueGroup) + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.class, + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (primaryValuesBuilder_ == null) { + primaryValues_ = java.util.Collections.emptyList(); + } else { + primaryValues_ = null; + primaryValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (primaryPercentOfTotalValuesBuilder_ == null) { + primaryPercentOfTotalValues_ = java.util.Collections.emptyList(); + } else { + primaryPercentOfTotalValues_ = null; + primaryPercentOfTotalValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (comparisonValuesBuilder_ == null) { + comparisonValues_ = java.util.Collections.emptyList(); + } else { + comparisonValues_ = null; + comparisonValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (comparisonPercentOfTotalValuesBuilder_ == null) { + comparisonPercentOfTotalValues_ = java.util.Collections.emptyList(); + } else { + comparisonPercentOfTotalValues_ = null; + comparisonPercentOfTotalValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (absoluteChangeValuesBuilder_ == null) { + absoluteChangeValues_ = java.util.Collections.emptyList(); + } else { + absoluteChangeValues_ = null; + absoluteChangeValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (relativeChangeValuesBuilder_ == null) { + relativeChangeValues_ = java.util.Collections.emptyList(); + } else { + relativeChangeValues_ = null; + relativeChangeValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + flagValues_ = emptyBooleanList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup build() { + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup buildPartial() { + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup result = + new com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup result) { + if (primaryValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + primaryValues_ = java.util.Collections.unmodifiableList(primaryValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.primaryValues_ = primaryValues_; + } else { + result.primaryValues_ = primaryValuesBuilder_.build(); + } + if (primaryPercentOfTotalValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + primaryPercentOfTotalValues_ = + java.util.Collections.unmodifiableList(primaryPercentOfTotalValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.primaryPercentOfTotalValues_ = primaryPercentOfTotalValues_; + } else { + result.primaryPercentOfTotalValues_ = primaryPercentOfTotalValuesBuilder_.build(); + } + if (comparisonValuesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + comparisonValues_ = java.util.Collections.unmodifiableList(comparisonValues_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.comparisonValues_ = comparisonValues_; + } else { + result.comparisonValues_ = comparisonValuesBuilder_.build(); + } + if (comparisonPercentOfTotalValuesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + comparisonPercentOfTotalValues_ = + java.util.Collections.unmodifiableList(comparisonPercentOfTotalValues_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.comparisonPercentOfTotalValues_ = comparisonPercentOfTotalValues_; + } else { + result.comparisonPercentOfTotalValues_ = comparisonPercentOfTotalValuesBuilder_.build(); + } + if (absoluteChangeValuesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + absoluteChangeValues_ = java.util.Collections.unmodifiableList(absoluteChangeValues_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.absoluteChangeValues_ = absoluteChangeValues_; + } else { + result.absoluteChangeValues_ = absoluteChangeValuesBuilder_.build(); + } + if (relativeChangeValuesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + relativeChangeValues_ = java.util.Collections.unmodifiableList(relativeChangeValues_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.relativeChangeValues_ = relativeChangeValues_; + } else { + result.relativeChangeValues_ = relativeChangeValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000040) != 0)) { + flagValues_.makeImmutable(); + result.flagValues_ = flagValues_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup) { + return mergeFrom((com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup other) { + if (other + == com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup.getDefaultInstance()) + return this; + if (primaryValuesBuilder_ == null) { + if (!other.primaryValues_.isEmpty()) { + if (primaryValues_.isEmpty()) { + primaryValues_ = other.primaryValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrimaryValuesIsMutable(); + primaryValues_.addAll(other.primaryValues_); + } + onChanged(); + } + } else { + if (!other.primaryValues_.isEmpty()) { + if (primaryValuesBuilder_.isEmpty()) { + primaryValuesBuilder_.dispose(); + primaryValuesBuilder_ = null; + primaryValues_ = other.primaryValues_; + bitField0_ = (bitField0_ & ~0x00000001); + primaryValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrimaryValuesFieldBuilder() + : null; + } else { + primaryValuesBuilder_.addAllMessages(other.primaryValues_); + } + } + } + if (primaryPercentOfTotalValuesBuilder_ == null) { + if (!other.primaryPercentOfTotalValues_.isEmpty()) { + if (primaryPercentOfTotalValues_.isEmpty()) { + primaryPercentOfTotalValues_ = other.primaryPercentOfTotalValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePrimaryPercentOfTotalValuesIsMutable(); + primaryPercentOfTotalValues_.addAll(other.primaryPercentOfTotalValues_); + } + onChanged(); + } + } else { + if (!other.primaryPercentOfTotalValues_.isEmpty()) { + if (primaryPercentOfTotalValuesBuilder_.isEmpty()) { + primaryPercentOfTotalValuesBuilder_.dispose(); + primaryPercentOfTotalValuesBuilder_ = null; + primaryPercentOfTotalValues_ = other.primaryPercentOfTotalValues_; + bitField0_ = (bitField0_ & ~0x00000002); + primaryPercentOfTotalValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrimaryPercentOfTotalValuesFieldBuilder() + : null; + } else { + primaryPercentOfTotalValuesBuilder_.addAllMessages( + other.primaryPercentOfTotalValues_); + } + } + } + if (comparisonValuesBuilder_ == null) { + if (!other.comparisonValues_.isEmpty()) { + if (comparisonValues_.isEmpty()) { + comparisonValues_ = other.comparisonValues_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureComparisonValuesIsMutable(); + comparisonValues_.addAll(other.comparisonValues_); + } + onChanged(); + } + } else { + if (!other.comparisonValues_.isEmpty()) { + if (comparisonValuesBuilder_.isEmpty()) { + comparisonValuesBuilder_.dispose(); + comparisonValuesBuilder_ = null; + comparisonValues_ = other.comparisonValues_; + bitField0_ = (bitField0_ & ~0x00000004); + comparisonValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getComparisonValuesFieldBuilder() + : null; + } else { + comparisonValuesBuilder_.addAllMessages(other.comparisonValues_); + } + } + } + if (comparisonPercentOfTotalValuesBuilder_ == null) { + if (!other.comparisonPercentOfTotalValues_.isEmpty()) { + if (comparisonPercentOfTotalValues_.isEmpty()) { + comparisonPercentOfTotalValues_ = other.comparisonPercentOfTotalValues_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureComparisonPercentOfTotalValuesIsMutable(); + comparisonPercentOfTotalValues_.addAll(other.comparisonPercentOfTotalValues_); + } + onChanged(); + } + } else { + if (!other.comparisonPercentOfTotalValues_.isEmpty()) { + if (comparisonPercentOfTotalValuesBuilder_.isEmpty()) { + comparisonPercentOfTotalValuesBuilder_.dispose(); + comparisonPercentOfTotalValuesBuilder_ = null; + comparisonPercentOfTotalValues_ = other.comparisonPercentOfTotalValues_; + bitField0_ = (bitField0_ & ~0x00000008); + comparisonPercentOfTotalValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getComparisonPercentOfTotalValuesFieldBuilder() + : null; + } else { + comparisonPercentOfTotalValuesBuilder_.addAllMessages( + other.comparisonPercentOfTotalValues_); + } + } + } + if (absoluteChangeValuesBuilder_ == null) { + if (!other.absoluteChangeValues_.isEmpty()) { + if (absoluteChangeValues_.isEmpty()) { + absoluteChangeValues_ = other.absoluteChangeValues_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAbsoluteChangeValuesIsMutable(); + absoluteChangeValues_.addAll(other.absoluteChangeValues_); + } + onChanged(); + } + } else { + if (!other.absoluteChangeValues_.isEmpty()) { + if (absoluteChangeValuesBuilder_.isEmpty()) { + absoluteChangeValuesBuilder_.dispose(); + absoluteChangeValuesBuilder_ = null; + absoluteChangeValues_ = other.absoluteChangeValues_; + bitField0_ = (bitField0_ & ~0x00000010); + absoluteChangeValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAbsoluteChangeValuesFieldBuilder() + : null; + } else { + absoluteChangeValuesBuilder_.addAllMessages(other.absoluteChangeValues_); + } + } + } + if (relativeChangeValuesBuilder_ == null) { + if (!other.relativeChangeValues_.isEmpty()) { + if (relativeChangeValues_.isEmpty()) { + relativeChangeValues_ = other.relativeChangeValues_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureRelativeChangeValuesIsMutable(); + relativeChangeValues_.addAll(other.relativeChangeValues_); + } + onChanged(); + } + } else { + if (!other.relativeChangeValues_.isEmpty()) { + if (relativeChangeValuesBuilder_.isEmpty()) { + relativeChangeValuesBuilder_.dispose(); + relativeChangeValuesBuilder_ = null; + relativeChangeValues_ = other.relativeChangeValues_; + bitField0_ = (bitField0_ & ~0x00000020); + relativeChangeValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRelativeChangeValuesFieldBuilder() + : null; + } else { + relativeChangeValuesBuilder_.addAllMessages(other.relativeChangeValues_); + } + } + } + if (!other.flagValues_.isEmpty()) { + if (flagValues_.isEmpty()) { + flagValues_ = other.flagValues_; + flagValues_.makeImmutable(); + bitField0_ |= 0x00000040; + } else { + ensureFlagValuesIsMutable(); + flagValues_.addAll(other.flagValues_); + } + 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.ads.admanager.v1.ReportValue m = + input.readMessage( + com.google.ads.admanager.v1.ReportValue.parser(), extensionRegistry); + if (primaryValuesBuilder_ == null) { + ensurePrimaryValuesIsMutable(); + primaryValues_.add(m); + } else { + primaryValuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.ads.admanager.v1.ReportValue m = + input.readMessage( + com.google.ads.admanager.v1.ReportValue.parser(), extensionRegistry); + if (primaryPercentOfTotalValuesBuilder_ == null) { + ensurePrimaryPercentOfTotalValuesIsMutable(); + primaryPercentOfTotalValues_.add(m); + } else { + primaryPercentOfTotalValuesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.ads.admanager.v1.ReportValue m = + input.readMessage( + com.google.ads.admanager.v1.ReportValue.parser(), extensionRegistry); + if (comparisonValuesBuilder_ == null) { + ensureComparisonValuesIsMutable(); + comparisonValues_.add(m); + } else { + comparisonValuesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.ads.admanager.v1.ReportValue m = + input.readMessage( + com.google.ads.admanager.v1.ReportValue.parser(), extensionRegistry); + if (comparisonPercentOfTotalValuesBuilder_ == null) { + ensureComparisonPercentOfTotalValuesIsMutable(); + comparisonPercentOfTotalValues_.add(m); + } else { + comparisonPercentOfTotalValuesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.ads.admanager.v1.ReportValue m = + input.readMessage( + com.google.ads.admanager.v1.ReportValue.parser(), extensionRegistry); + if (absoluteChangeValuesBuilder_ == null) { + ensureAbsoluteChangeValuesIsMutable(); + absoluteChangeValues_.add(m); + } else { + absoluteChangeValuesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.ads.admanager.v1.ReportValue m = + input.readMessage( + com.google.ads.admanager.v1.ReportValue.parser(), extensionRegistry); + if (relativeChangeValuesBuilder_ == null) { + ensureRelativeChangeValuesIsMutable(); + relativeChangeValues_.add(m); + } else { + relativeChangeValuesBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: + { + boolean v = input.readBool(); + ensureFlagValuesIsMutable(); + flagValues_.addBoolean(v); + break; + } // case 56 + case 58: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureFlagValuesIsMutable(alloc / 1); + while (input.getBytesUntilLimit() > 0) { + flagValues_.addBoolean(input.readBool()); + } + input.popLimit(limit); + break; + } // case 58 + 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 primaryValues_ = + java.util.Collections.emptyList(); + + private void ensurePrimaryValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + primaryValues_ = + new java.util.ArrayList(primaryValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + primaryValuesBuilder_; + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public java.util.List getPrimaryValuesList() { + if (primaryValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(primaryValues_); + } else { + return primaryValuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public int getPrimaryValuesCount() { + if (primaryValuesBuilder_ == null) { + return primaryValues_.size(); + } else { + return primaryValuesBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public com.google.ads.admanager.v1.ReportValue getPrimaryValues(int index) { + if (primaryValuesBuilder_ == null) { + return primaryValues_.get(index); + } else { + return primaryValuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public Builder setPrimaryValues(int index, com.google.ads.admanager.v1.ReportValue value) { + if (primaryValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryValuesIsMutable(); + primaryValues_.set(index, value); + onChanged(); + } else { + primaryValuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public Builder setPrimaryValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (primaryValuesBuilder_ == null) { + ensurePrimaryValuesIsMutable(); + primaryValues_.set(index, builderForValue.build()); + onChanged(); + } else { + primaryValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public Builder addPrimaryValues(com.google.ads.admanager.v1.ReportValue value) { + if (primaryValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryValuesIsMutable(); + primaryValues_.add(value); + onChanged(); + } else { + primaryValuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public Builder addPrimaryValues(int index, com.google.ads.admanager.v1.ReportValue value) { + if (primaryValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryValuesIsMutable(); + primaryValues_.add(index, value); + onChanged(); + } else { + primaryValuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public Builder addPrimaryValues( + com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (primaryValuesBuilder_ == null) { + ensurePrimaryValuesIsMutable(); + primaryValues_.add(builderForValue.build()); + onChanged(); + } else { + primaryValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public Builder addPrimaryValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (primaryValuesBuilder_ == null) { + ensurePrimaryValuesIsMutable(); + primaryValues_.add(index, builderForValue.build()); + onChanged(); + } else { + primaryValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public Builder addAllPrimaryValues( + java.lang.Iterable values) { + if (primaryValuesBuilder_ == null) { + ensurePrimaryValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, primaryValues_); + onChanged(); + } else { + primaryValuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public Builder clearPrimaryValues() { + if (primaryValuesBuilder_ == null) { + primaryValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + primaryValuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public Builder removePrimaryValues(int index) { + if (primaryValuesBuilder_ == null) { + ensurePrimaryValuesIsMutable(); + primaryValues_.remove(index); + onChanged(); + } else { + primaryValuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public com.google.ads.admanager.v1.ReportValue.Builder getPrimaryValuesBuilder(int index) { + return getPrimaryValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public com.google.ads.admanager.v1.ReportValueOrBuilder getPrimaryValuesOrBuilder(int index) { + if (primaryValuesBuilder_ == null) { + return primaryValues_.get(index); + } else { + return primaryValuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public java.util.List + getPrimaryValuesOrBuilderList() { + if (primaryValuesBuilder_ != null) { + return primaryValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(primaryValues_); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addPrimaryValuesBuilder() { + return getPrimaryValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addPrimaryValuesBuilder(int index) { + return getPrimaryValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the PRIMARY MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_values = 1; + */ + public java.util.List + getPrimaryValuesBuilderList() { + return getPrimaryValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + getPrimaryValuesFieldBuilder() { + if (primaryValuesBuilder_ == null) { + primaryValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder>( + primaryValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + primaryValues_ = null; + } + return primaryValuesBuilder_; + } + + private java.util.List primaryPercentOfTotalValues_ = + java.util.Collections.emptyList(); + + private void ensurePrimaryPercentOfTotalValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + primaryPercentOfTotalValues_ = + new java.util.ArrayList( + primaryPercentOfTotalValues_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + primaryPercentOfTotalValuesBuilder_; + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public java.util.List + getPrimaryPercentOfTotalValuesList() { + if (primaryPercentOfTotalValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(primaryPercentOfTotalValues_); + } else { + return primaryPercentOfTotalValuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public int getPrimaryPercentOfTotalValuesCount() { + if (primaryPercentOfTotalValuesBuilder_ == null) { + return primaryPercentOfTotalValues_.size(); + } else { + return primaryPercentOfTotalValuesBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public com.google.ads.admanager.v1.ReportValue getPrimaryPercentOfTotalValues(int index) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + return primaryPercentOfTotalValues_.get(index); + } else { + return primaryPercentOfTotalValuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public Builder setPrimaryPercentOfTotalValues( + int index, com.google.ads.admanager.v1.ReportValue value) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryPercentOfTotalValuesIsMutable(); + primaryPercentOfTotalValues_.set(index, value); + onChanged(); + } else { + primaryPercentOfTotalValuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public Builder setPrimaryPercentOfTotalValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + ensurePrimaryPercentOfTotalValuesIsMutable(); + primaryPercentOfTotalValues_.set(index, builderForValue.build()); + onChanged(); + } else { + primaryPercentOfTotalValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public Builder addPrimaryPercentOfTotalValues(com.google.ads.admanager.v1.ReportValue value) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryPercentOfTotalValuesIsMutable(); + primaryPercentOfTotalValues_.add(value); + onChanged(); + } else { + primaryPercentOfTotalValuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public Builder addPrimaryPercentOfTotalValues( + int index, com.google.ads.admanager.v1.ReportValue value) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrimaryPercentOfTotalValuesIsMutable(); + primaryPercentOfTotalValues_.add(index, value); + onChanged(); + } else { + primaryPercentOfTotalValuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public Builder addPrimaryPercentOfTotalValues( + com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + ensurePrimaryPercentOfTotalValuesIsMutable(); + primaryPercentOfTotalValues_.add(builderForValue.build()); + onChanged(); + } else { + primaryPercentOfTotalValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public Builder addPrimaryPercentOfTotalValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + ensurePrimaryPercentOfTotalValuesIsMutable(); + primaryPercentOfTotalValues_.add(index, builderForValue.build()); + onChanged(); + } else { + primaryPercentOfTotalValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public Builder addAllPrimaryPercentOfTotalValues( + java.lang.Iterable values) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + ensurePrimaryPercentOfTotalValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, primaryPercentOfTotalValues_); + onChanged(); + } else { + primaryPercentOfTotalValuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public Builder clearPrimaryPercentOfTotalValues() { + if (primaryPercentOfTotalValuesBuilder_ == null) { + primaryPercentOfTotalValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + primaryPercentOfTotalValuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public Builder removePrimaryPercentOfTotalValues(int index) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + ensurePrimaryPercentOfTotalValuesIsMutable(); + primaryPercentOfTotalValues_.remove(index); + onChanged(); + } else { + primaryPercentOfTotalValuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder getPrimaryPercentOfTotalValuesBuilder( + int index) { + return getPrimaryPercentOfTotalValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public com.google.ads.admanager.v1.ReportValueOrBuilder + getPrimaryPercentOfTotalValuesOrBuilder(int index) { + if (primaryPercentOfTotalValuesBuilder_ == null) { + return primaryPercentOfTotalValues_.get(index); + } else { + return primaryPercentOfTotalValuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public java.util.List + getPrimaryPercentOfTotalValuesOrBuilderList() { + if (primaryPercentOfTotalValuesBuilder_ != null) { + return primaryPercentOfTotalValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(primaryPercentOfTotalValues_); + } + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder + addPrimaryPercentOfTotalValuesBuilder() { + return getPrimaryPercentOfTotalValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder addPrimaryPercentOfTotalValuesBuilder( + int index) { + return getPrimaryPercentOfTotalValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue primary_percent_of_total_values = 2; + * + */ + public java.util.List + getPrimaryPercentOfTotalValuesBuilderList() { + return getPrimaryPercentOfTotalValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + getPrimaryPercentOfTotalValuesFieldBuilder() { + if (primaryPercentOfTotalValuesBuilder_ == null) { + primaryPercentOfTotalValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder>( + primaryPercentOfTotalValues_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + primaryPercentOfTotalValues_ = null; + } + return primaryPercentOfTotalValuesBuilder_; + } + + private java.util.List comparisonValues_ = + java.util.Collections.emptyList(); + + private void ensureComparisonValuesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + comparisonValues_ = + new java.util.ArrayList(comparisonValues_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + comparisonValuesBuilder_; + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public java.util.List getComparisonValuesList() { + if (comparisonValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(comparisonValues_); + } else { + return comparisonValuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public int getComparisonValuesCount() { + if (comparisonValuesBuilder_ == null) { + return comparisonValues_.size(); + } else { + return comparisonValuesBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public com.google.ads.admanager.v1.ReportValue getComparisonValues(int index) { + if (comparisonValuesBuilder_ == null) { + return comparisonValues_.get(index); + } else { + return comparisonValuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public Builder setComparisonValues(int index, com.google.ads.admanager.v1.ReportValue value) { + if (comparisonValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonValuesIsMutable(); + comparisonValues_.set(index, value); + onChanged(); + } else { + comparisonValuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public Builder setComparisonValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (comparisonValuesBuilder_ == null) { + ensureComparisonValuesIsMutable(); + comparisonValues_.set(index, builderForValue.build()); + onChanged(); + } else { + comparisonValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public Builder addComparisonValues(com.google.ads.admanager.v1.ReportValue value) { + if (comparisonValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonValuesIsMutable(); + comparisonValues_.add(value); + onChanged(); + } else { + comparisonValuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public Builder addComparisonValues(int index, com.google.ads.admanager.v1.ReportValue value) { + if (comparisonValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonValuesIsMutable(); + comparisonValues_.add(index, value); + onChanged(); + } else { + comparisonValuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public Builder addComparisonValues( + com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (comparisonValuesBuilder_ == null) { + ensureComparisonValuesIsMutable(); + comparisonValues_.add(builderForValue.build()); + onChanged(); + } else { + comparisonValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public Builder addComparisonValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (comparisonValuesBuilder_ == null) { + ensureComparisonValuesIsMutable(); + comparisonValues_.add(index, builderForValue.build()); + onChanged(); + } else { + comparisonValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public Builder addAllComparisonValues( + java.lang.Iterable values) { + if (comparisonValuesBuilder_ == null) { + ensureComparisonValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, comparisonValues_); + onChanged(); + } else { + comparisonValuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public Builder clearComparisonValues() { + if (comparisonValuesBuilder_ == null) { + comparisonValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + comparisonValuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public Builder removeComparisonValues(int index) { + if (comparisonValuesBuilder_ == null) { + ensureComparisonValuesIsMutable(); + comparisonValues_.remove(index); + onChanged(); + } else { + comparisonValuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public com.google.ads.admanager.v1.ReportValue.Builder getComparisonValuesBuilder(int index) { + return getComparisonValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public com.google.ads.admanager.v1.ReportValueOrBuilder getComparisonValuesOrBuilder( + int index) { + if (comparisonValuesBuilder_ == null) { + return comparisonValues_.get(index); + } else { + return comparisonValuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public java.util.List + getComparisonValuesOrBuilderList() { + if (comparisonValuesBuilder_ != null) { + return comparisonValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(comparisonValues_); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addComparisonValuesBuilder() { + return getComparisonValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addComparisonValuesBuilder(int index) { + return getComparisonValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the COMPARISON MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_values = 3; + */ + public java.util.List + getComparisonValuesBuilderList() { + return getComparisonValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + getComparisonValuesFieldBuilder() { + if (comparisonValuesBuilder_ == null) { + comparisonValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder>( + comparisonValues_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + comparisonValues_ = null; + } + return comparisonValuesBuilder_; + } + + private java.util.List + comparisonPercentOfTotalValues_ = java.util.Collections.emptyList(); + + private void ensureComparisonPercentOfTotalValuesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + comparisonPercentOfTotalValues_ = + new java.util.ArrayList( + comparisonPercentOfTotalValues_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + comparisonPercentOfTotalValuesBuilder_; + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public java.util.List + getComparisonPercentOfTotalValuesList() { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(comparisonPercentOfTotalValues_); + } else { + return comparisonPercentOfTotalValuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public int getComparisonPercentOfTotalValuesCount() { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + return comparisonPercentOfTotalValues_.size(); + } else { + return comparisonPercentOfTotalValuesBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public com.google.ads.admanager.v1.ReportValue getComparisonPercentOfTotalValues(int index) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + return comparisonPercentOfTotalValues_.get(index); + } else { + return comparisonPercentOfTotalValuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public Builder setComparisonPercentOfTotalValues( + int index, com.google.ads.admanager.v1.ReportValue value) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonPercentOfTotalValuesIsMutable(); + comparisonPercentOfTotalValues_.set(index, value); + onChanged(); + } else { + comparisonPercentOfTotalValuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public Builder setComparisonPercentOfTotalValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + ensureComparisonPercentOfTotalValuesIsMutable(); + comparisonPercentOfTotalValues_.set(index, builderForValue.build()); + onChanged(); + } else { + comparisonPercentOfTotalValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public Builder addComparisonPercentOfTotalValues( + com.google.ads.admanager.v1.ReportValue value) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonPercentOfTotalValuesIsMutable(); + comparisonPercentOfTotalValues_.add(value); + onChanged(); + } else { + comparisonPercentOfTotalValuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public Builder addComparisonPercentOfTotalValues( + int index, com.google.ads.admanager.v1.ReportValue value) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComparisonPercentOfTotalValuesIsMutable(); + comparisonPercentOfTotalValues_.add(index, value); + onChanged(); + } else { + comparisonPercentOfTotalValuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public Builder addComparisonPercentOfTotalValues( + com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + ensureComparisonPercentOfTotalValuesIsMutable(); + comparisonPercentOfTotalValues_.add(builderForValue.build()); + onChanged(); + } else { + comparisonPercentOfTotalValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public Builder addComparisonPercentOfTotalValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + ensureComparisonPercentOfTotalValuesIsMutable(); + comparisonPercentOfTotalValues_.add(index, builderForValue.build()); + onChanged(); + } else { + comparisonPercentOfTotalValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public Builder addAllComparisonPercentOfTotalValues( + java.lang.Iterable values) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + ensureComparisonPercentOfTotalValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, comparisonPercentOfTotalValues_); + onChanged(); + } else { + comparisonPercentOfTotalValuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public Builder clearComparisonPercentOfTotalValues() { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + comparisonPercentOfTotalValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + comparisonPercentOfTotalValuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public Builder removeComparisonPercentOfTotalValues(int index) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + ensureComparisonPercentOfTotalValuesIsMutable(); + comparisonPercentOfTotalValues_.remove(index); + onChanged(); + } else { + comparisonPercentOfTotalValuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder + getComparisonPercentOfTotalValuesBuilder(int index) { + return getComparisonPercentOfTotalValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public com.google.ads.admanager.v1.ReportValueOrBuilder + getComparisonPercentOfTotalValuesOrBuilder(int index) { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + return comparisonPercentOfTotalValues_.get(index); + } else { + return comparisonPercentOfTotalValuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public java.util.List + getComparisonPercentOfTotalValuesOrBuilderList() { + if (comparisonPercentOfTotalValuesBuilder_ != null) { + return comparisonPercentOfTotalValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(comparisonPercentOfTotalValues_); + } + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder + addComparisonPercentOfTotalValuesBuilder() { + return getComparisonPercentOfTotalValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder + addComparisonPercentOfTotalValuesBuilder(int index) { + return getComparisonPercentOfTotalValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue comparison_percent_of_total_values = 4; + * + */ + public java.util.List + getComparisonPercentOfTotalValuesBuilderList() { + return getComparisonPercentOfTotalValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + getComparisonPercentOfTotalValuesFieldBuilder() { + if (comparisonPercentOfTotalValuesBuilder_ == null) { + comparisonPercentOfTotalValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder>( + comparisonPercentOfTotalValues_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + comparisonPercentOfTotalValues_ = null; + } + return comparisonPercentOfTotalValuesBuilder_; + } + + private java.util.List absoluteChangeValues_ = + java.util.Collections.emptyList(); + + private void ensureAbsoluteChangeValuesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + absoluteChangeValues_ = + new java.util.ArrayList( + absoluteChangeValues_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + absoluteChangeValuesBuilder_; + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public java.util.List getAbsoluteChangeValuesList() { + if (absoluteChangeValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(absoluteChangeValues_); + } else { + return absoluteChangeValuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public int getAbsoluteChangeValuesCount() { + if (absoluteChangeValuesBuilder_ == null) { + return absoluteChangeValues_.size(); + } else { + return absoluteChangeValuesBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public com.google.ads.admanager.v1.ReportValue getAbsoluteChangeValues(int index) { + if (absoluteChangeValuesBuilder_ == null) { + return absoluteChangeValues_.get(index); + } else { + return absoluteChangeValuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public Builder setAbsoluteChangeValues( + int index, com.google.ads.admanager.v1.ReportValue value) { + if (absoluteChangeValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAbsoluteChangeValuesIsMutable(); + absoluteChangeValues_.set(index, value); + onChanged(); + } else { + absoluteChangeValuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public Builder setAbsoluteChangeValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (absoluteChangeValuesBuilder_ == null) { + ensureAbsoluteChangeValuesIsMutable(); + absoluteChangeValues_.set(index, builderForValue.build()); + onChanged(); + } else { + absoluteChangeValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public Builder addAbsoluteChangeValues(com.google.ads.admanager.v1.ReportValue value) { + if (absoluteChangeValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAbsoluteChangeValuesIsMutable(); + absoluteChangeValues_.add(value); + onChanged(); + } else { + absoluteChangeValuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public Builder addAbsoluteChangeValues( + int index, com.google.ads.admanager.v1.ReportValue value) { + if (absoluteChangeValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAbsoluteChangeValuesIsMutable(); + absoluteChangeValues_.add(index, value); + onChanged(); + } else { + absoluteChangeValuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public Builder addAbsoluteChangeValues( + com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (absoluteChangeValuesBuilder_ == null) { + ensureAbsoluteChangeValuesIsMutable(); + absoluteChangeValues_.add(builderForValue.build()); + onChanged(); + } else { + absoluteChangeValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public Builder addAbsoluteChangeValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (absoluteChangeValuesBuilder_ == null) { + ensureAbsoluteChangeValuesIsMutable(); + absoluteChangeValues_.add(index, builderForValue.build()); + onChanged(); + } else { + absoluteChangeValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public Builder addAllAbsoluteChangeValues( + java.lang.Iterable values) { + if (absoluteChangeValuesBuilder_ == null) { + ensureAbsoluteChangeValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, absoluteChangeValues_); + onChanged(); + } else { + absoluteChangeValuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public Builder clearAbsoluteChangeValues() { + if (absoluteChangeValuesBuilder_ == null) { + absoluteChangeValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + absoluteChangeValuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public Builder removeAbsoluteChangeValues(int index) { + if (absoluteChangeValuesBuilder_ == null) { + ensureAbsoluteChangeValuesIsMutable(); + absoluteChangeValues_.remove(index); + onChanged(); + } else { + absoluteChangeValuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public com.google.ads.admanager.v1.ReportValue.Builder getAbsoluteChangeValuesBuilder( + int index) { + return getAbsoluteChangeValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public com.google.ads.admanager.v1.ReportValueOrBuilder getAbsoluteChangeValuesOrBuilder( + int index) { + if (absoluteChangeValuesBuilder_ == null) { + return absoluteChangeValues_.get(index); + } else { + return absoluteChangeValuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public java.util.List + getAbsoluteChangeValuesOrBuilderList() { + if (absoluteChangeValuesBuilder_ != null) { + return absoluteChangeValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(absoluteChangeValues_); + } + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addAbsoluteChangeValuesBuilder() { + return getAbsoluteChangeValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addAbsoluteChangeValuesBuilder( + int index) { + return getAbsoluteChangeValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the ABSOLUTE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue absolute_change_values = 5; + */ + public java.util.List + getAbsoluteChangeValuesBuilderList() { + return getAbsoluteChangeValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + getAbsoluteChangeValuesFieldBuilder() { + if (absoluteChangeValuesBuilder_ == null) { + absoluteChangeValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder>( + absoluteChangeValues_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + absoluteChangeValues_ = null; + } + return absoluteChangeValuesBuilder_; + } + + private java.util.List relativeChangeValues_ = + java.util.Collections.emptyList(); + + private void ensureRelativeChangeValuesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + relativeChangeValues_ = + new java.util.ArrayList( + relativeChangeValues_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + relativeChangeValuesBuilder_; + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public java.util.List getRelativeChangeValuesList() { + if (relativeChangeValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(relativeChangeValues_); + } else { + return relativeChangeValuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public int getRelativeChangeValuesCount() { + if (relativeChangeValuesBuilder_ == null) { + return relativeChangeValues_.size(); + } else { + return relativeChangeValuesBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public com.google.ads.admanager.v1.ReportValue getRelativeChangeValues(int index) { + if (relativeChangeValuesBuilder_ == null) { + return relativeChangeValues_.get(index); + } else { + return relativeChangeValuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public Builder setRelativeChangeValues( + int index, com.google.ads.admanager.v1.ReportValue value) { + if (relativeChangeValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelativeChangeValuesIsMutable(); + relativeChangeValues_.set(index, value); + onChanged(); + } else { + relativeChangeValuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public Builder setRelativeChangeValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (relativeChangeValuesBuilder_ == null) { + ensureRelativeChangeValuesIsMutable(); + relativeChangeValues_.set(index, builderForValue.build()); + onChanged(); + } else { + relativeChangeValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public Builder addRelativeChangeValues(com.google.ads.admanager.v1.ReportValue value) { + if (relativeChangeValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelativeChangeValuesIsMutable(); + relativeChangeValues_.add(value); + onChanged(); + } else { + relativeChangeValuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public Builder addRelativeChangeValues( + int index, com.google.ads.admanager.v1.ReportValue value) { + if (relativeChangeValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelativeChangeValuesIsMutable(); + relativeChangeValues_.add(index, value); + onChanged(); + } else { + relativeChangeValuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public Builder addRelativeChangeValues( + com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (relativeChangeValuesBuilder_ == null) { + ensureRelativeChangeValuesIsMutable(); + relativeChangeValues_.add(builderForValue.build()); + onChanged(); + } else { + relativeChangeValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public Builder addRelativeChangeValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (relativeChangeValuesBuilder_ == null) { + ensureRelativeChangeValuesIsMutable(); + relativeChangeValues_.add(index, builderForValue.build()); + onChanged(); + } else { + relativeChangeValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public Builder addAllRelativeChangeValues( + java.lang.Iterable values) { + if (relativeChangeValuesBuilder_ == null) { + ensureRelativeChangeValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relativeChangeValues_); + onChanged(); + } else { + relativeChangeValuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public Builder clearRelativeChangeValues() { + if (relativeChangeValuesBuilder_ == null) { + relativeChangeValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + relativeChangeValuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public Builder removeRelativeChangeValues(int index) { + if (relativeChangeValuesBuilder_ == null) { + ensureRelativeChangeValuesIsMutable(); + relativeChangeValues_.remove(index); + onChanged(); + } else { + relativeChangeValuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public com.google.ads.admanager.v1.ReportValue.Builder getRelativeChangeValuesBuilder( + int index) { + return getRelativeChangeValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public com.google.ads.admanager.v1.ReportValueOrBuilder getRelativeChangeValuesOrBuilder( + int index) { + if (relativeChangeValuesBuilder_ == null) { + return relativeChangeValues_.get(index); + } else { + return relativeChangeValuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public java.util.List + getRelativeChangeValuesOrBuilderList() { + if (relativeChangeValuesBuilder_ != null) { + return relativeChangeValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(relativeChangeValues_); + } + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addRelativeChangeValuesBuilder() { + return getRelativeChangeValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public com.google.ads.admanager.v1.ReportValue.Builder addRelativeChangeValuesBuilder( + int index) { + return getRelativeChangeValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +       * Data for the RELATIVE_CHANGE MetricValueType.
    +       * 
    + * + * repeated .google.ads.admanager.v1.ReportValue relative_change_values = 6; + */ + public java.util.List + getRelativeChangeValuesBuilderList() { + return getRelativeChangeValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + getRelativeChangeValuesFieldBuilder() { + if (relativeChangeValuesBuilder_ == null) { + relativeChangeValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder>( + relativeChangeValues_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + relativeChangeValues_ = null; + } + return relativeChangeValuesBuilder_; + } + + private com.google.protobuf.Internal.BooleanList flagValues_ = emptyBooleanList(); + + private void ensureFlagValuesIsMutable() { + if (!flagValues_.isModifiable()) { + flagValues_ = makeMutableCopy(flagValues_); + } + bitField0_ |= 0x00000040; + } + + private void ensureFlagValuesIsMutable(int capacity) { + if (!flagValues_.isModifiable()) { + flagValues_ = makeMutableCopy(flagValues_, capacity); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
    +       * If true, the flag's conditions are met. If false, the flag's
    +       * conditions are not met. flag_values has the same length as
    +       * flags and index i of flag_values represents the flag at index i
    +       * of flags.
    +       * 
    + * + * repeated bool flag_values = 7; + * + * @return A list containing the flagValues. + */ + public java.util.List getFlagValuesList() { + flagValues_.makeImmutable(); + return flagValues_; + } + + /** + * + * + *
    +       * If true, the flag's conditions are met. If false, the flag's
    +       * conditions are not met. flag_values has the same length as
    +       * flags and index i of flag_values represents the flag at index i
    +       * of flags.
    +       * 
    + * + * repeated bool flag_values = 7; + * + * @return The count of flagValues. + */ + public int getFlagValuesCount() { + return flagValues_.size(); + } + + /** + * + * + *
    +       * If true, the flag's conditions are met. If false, the flag's
    +       * conditions are not met. flag_values has the same length as
    +       * flags and index i of flag_values represents the flag at index i
    +       * of flags.
    +       * 
    + * + * repeated bool flag_values = 7; + * + * @param index The index of the element to return. + * @return The flagValues at the given index. + */ + public boolean getFlagValues(int index) { + return flagValues_.getBoolean(index); + } + + /** + * + * + *
    +       * If true, the flag's conditions are met. If false, the flag's
    +       * conditions are not met. flag_values has the same length as
    +       * flags and index i of flag_values represents the flag at index i
    +       * of flags.
    +       * 
    + * + * repeated bool flag_values = 7; + * + * @param index The index to set the value at. + * @param value The flagValues to set. + * @return This builder for chaining. + */ + public Builder setFlagValues(int index, boolean value) { + + ensureFlagValuesIsMutable(); + flagValues_.setBoolean(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +       * If true, the flag's conditions are met. If false, the flag's
    +       * conditions are not met. flag_values has the same length as
    +       * flags and index i of flag_values represents the flag at index i
    +       * of flags.
    +       * 
    + * + * repeated bool flag_values = 7; + * + * @param value The flagValues to add. + * @return This builder for chaining. + */ + public Builder addFlagValues(boolean value) { + + ensureFlagValuesIsMutable(); + flagValues_.addBoolean(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +       * If true, the flag's conditions are met. If false, the flag's
    +       * conditions are not met. flag_values has the same length as
    +       * flags and index i of flag_values represents the flag at index i
    +       * of flags.
    +       * 
    + * + * repeated bool flag_values = 7; + * + * @param values The flagValues to add. + * @return This builder for chaining. + */ + public Builder addAllFlagValues(java.lang.Iterable values) { + ensureFlagValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, flagValues_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +       * If true, the flag's conditions are met. If false, the flag's
    +       * conditions are not met. flag_values has the same length as
    +       * flags and index i of flag_values represents the flag at index i
    +       * of flags.
    +       * 
    + * + * repeated bool flag_values = 7; + * + * @return This builder for chaining. + */ + public Builder clearFlagValues() { + flagValues_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDataTable.MetricValueGroup) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDataTable.MetricValueGroup) + private static final com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup(); + } + + public static com.google.ads.admanager.v1.ReportDataTable.MetricValueGroup + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricValueGroup 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.admanager.v1.ReportDataTable.MetricValueGroup + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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.admanager.v1.ReportDataTable)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDataTable other = + (com.google.ads.admanager.v1.ReportDataTable) 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.admanager.v1.ReportDataTable parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDataTable 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.admanager.v1.ReportDataTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDataTable 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.admanager.v1.ReportDataTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDataTable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDataTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDataTable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDataTable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDataTable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDataTable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDataTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportDataTable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A table containing report data including dimension and metric values.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDataTable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDataTable) + com.google.ads.admanager.v1.ReportDataTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDataTable.class, + com.google.ads.admanager.v1.ReportDataTable.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportDataTable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ReportDataTable_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDataTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable build() { + com.google.ads.admanager.v1.ReportDataTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDataTable buildPartial() { + com.google.ads.admanager.v1.ReportDataTable result = + new com.google.ads.admanager.v1.ReportDataTable(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDataTable) { + return mergeFrom((com.google.ads.admanager.v1.ReportDataTable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportDataTable other) { + if (other == com.google.ads.admanager.v1.ReportDataTable.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDataTable) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDataTable) + private static final com.google.ads.admanager.v1.ReportDataTable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDataTable(); + } + + public static com.google.ads.admanager.v1.ReportDataTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportDataTable 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.admanager.v1.ReportDataTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDataTableOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDataTableOrBuilder.java new file mode 100644 index 000000000000..75adcc291aad --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDataTableOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/report_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ReportDataTableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDataTable) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java index 508002f015bd..f77187cae8ee 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_messages.proto +// source: google/ads/admanager/v1/report_definition.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; @@ -63,20 +63,59511 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto + return com.google.ads.admanager.v1.ReportDefinitionProto .internal_static_google_ads_admanager_v1_ReportDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto + return com.google.ads.admanager.v1.ReportDefinitionProto .internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.ReportDefinition.class, com.google.ads.admanager.v1.ReportDefinition.Builder.class); } + /** + * + * + *
    +   * Supported report types.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ReportDefinition.ReportType} + */ + public enum ReportType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * REPORT_TYPE_UNSPECIFIED = 0; + */ + REPORT_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Historical.
    +     * 
    + * + * HISTORICAL = 1; + */ + HISTORICAL(1), + /** + * + * + *
    +     * Reach.
    +     * 
    + * + * REACH = 5; + */ + REACH(5), + /** + * + * + *
    +     * Privacy and messaging.
    +     * 
    + * + * PRIVACY_AND_MESSAGING = 6; + */ + PRIVACY_AND_MESSAGING(6), + /** + * + * + *
    +     * Ad speed.
    +     * 
    + * + * AD_SPEED = 13; + */ + AD_SPEED(13), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * REPORT_TYPE_UNSPECIFIED = 0; + */ + public static final int REPORT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Historical.
    +     * 
    + * + * HISTORICAL = 1; + */ + public static final int HISTORICAL_VALUE = 1; + + /** + * + * + *
    +     * Reach.
    +     * 
    + * + * REACH = 5; + */ + public static final int REACH_VALUE = 5; + + /** + * + * + *
    +     * Privacy and messaging.
    +     * 
    + * + * PRIVACY_AND_MESSAGING = 6; + */ + public static final int PRIVACY_AND_MESSAGING_VALUE = 6; + + /** + * + * + *
    +     * Ad speed.
    +     * 
    + * + * AD_SPEED = 13; + */ + public static final int AD_SPEED_VALUE = 13; + + 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 ReportType 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 ReportType forNumber(int value) { + switch (value) { + case 0: + return REPORT_TYPE_UNSPECIFIED; + case 1: + return HISTORICAL; + case 5: + return REACH; + case 6: + return PRIVACY_AND_MESSAGING; + case 13: + return AD_SPEED; + 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 ReportType findValueByNumber(int number) { + return ReportType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinition.getDescriptor().getEnumTypes().get(0); + } + + private static final ReportType[] VALUES = values(); + + public static ReportType 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 ReportType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ReportDefinition.ReportType) + } + + /** + * + * + *
    +   * Reporting dimensions.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ReportDefinition.Dimension} + */ + public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * DIMENSION_UNSPECIFIED = 0; + */ + DIMENSION_UNSPECIFIED(0, 0), + /** + * + * + *
    +     *  The measurement source of a video ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View measurement source value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ACTIVE_VIEW_MEASUREMENT_SOURCE = 575; + */ + ACTIVE_VIEW_MEASUREMENT_SOURCE(1, 575), + /** + * + * + *
    +     * Active View measurement source localized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View measurement source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME = 576; + */ + ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME(2, 576), + /** + * + * + *
    +     * Advertiser credit status ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser credit status value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ADVERTISER_CREDIT_STATUS = 475; + */ + ADVERTISER_CREDIT_STATUS(3, 475), + /** + * + * + *
    +     * Advertiser credit status locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser credit status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_CREDIT_STATUS_NAME = 476; + */ + ADVERTISER_CREDIT_STATUS_NAME(4, 476), + /** + * + * + *
    +     * The domain name of the advertiser.
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser domain" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_DOMAIN_NAME = 242; + */ + ADVERTISER_DOMAIN_NAME(5, 242), + /** + * + * + *
    +     * The ID used in an external system for advertiser identification
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser external ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_EXTERNAL_ID = 228; + */ + ADVERTISER_EXTERNAL_ID(6, 228), + /** + * + * + *
    +     * The ID of an advertiser company assigned to an order
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ADVERTISER_ID = 131; + */ + ADVERTISER_ID(7, 131), + /** + * + * + *
    +     * Labels applied to the advertiser
    +     *  can be used for either competitive exclusion or ad exclusion
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser labels" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * ADVERTISER_LABELS = 230; + */ + ADVERTISER_LABELS(8, 230), + /** + * + * + *
    +     * Label ids applied to the advertiser
    +     *  can be used for either competitive exclusion or ad exclusion
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser label IDs" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * ADVERTISER_LABEL_IDS = 229; + */ + ADVERTISER_LABEL_IDS(9, 229), + /** + * + * + *
    +     * The name of an advertiser company assigned to an order
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_NAME = 132; + */ + ADVERTISER_NAME(10, 132), + /** + * + * + *
    +     * The name of the contact associated with an advertiser company
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser primary contact" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_PRIMARY_CONTACT = 227; + */ + ADVERTISER_PRIMARY_CONTACT(11, 227), + /** + * + * + *
    +     * Advertiser status ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ADVERTISER_STATUS = 471; + */ + ADVERTISER_STATUS(12, 471), + /** + * + * + *
    +     * Advertiser status locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_STATUS_NAME = 472; + */ + ADVERTISER_STATUS_NAME(13, 472), + /** + * + * + *
    +     * Advertiser type ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ADVERTISER_TYPE = 473; + */ + ADVERTISER_TYPE(14, 473), + /** + * + * + *
    +     * Advertiser type locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_TYPE_NAME = 474; + */ + ADVERTISER_TYPE_NAME(15, 474), + /** + * + * + *
    +     * The category of an advertiser, such as Arts & Entertainment or Travel &
    +     *  Tourism.
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser vertical" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_VERTICAL = 580; + */ + ADVERTISER_VERTICAL(16, 580), + /** + * + * + *
    +     * Classification of different Ad Exchange products.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange product value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ADX_PRODUCT = 499; + */ + ADX_PRODUCT(17, 499), + /** + * + * + *
    +     * Localized name of the classification of different Ad Exchange
    +     *  products.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange product" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADX_PRODUCT_NAME = 500; + */ + ADX_PRODUCT_NAME(18, 500), + /** + * + * + *
    +     * Ad experiences type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad experiences value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AD_EXPERIENCES_TYPE = 641; + */ + AD_EXPERIENCES_TYPE(19, 641), + /** + * + * + *
    +     * Localized name of the Ad experiences type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad experiences" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_EXPERIENCES_TYPE_NAME = 642; + */ + AD_EXPERIENCES_TYPE_NAME(20, 642), + /** + * + * + *
    +     * Shows an ENUM value describing whether a given piece of publisher
    +     *  inventory was above (ATF) or below the fold (BTF) of a page.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad location value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AD_LOCATION = 390; + */ + AD_LOCATION(21, 390), + /** + * + * + *
    +     * Shows a localized string describing whether a given piece of publisher
    +     *  inventory was above (ATF) or below the fold (BTF) of a page.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad location" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_LOCATION_NAME = 391; + */ + AD_LOCATION_NAME(22, 391), + /** + * + * + *
    +     * The domain of the ad technology provider associated with the bid.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad technology provider domain" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_TECHNOLOGY_PROVIDER_DOMAIN = 620; + */ + AD_TECHNOLOGY_PROVIDER_DOMAIN(23, 620), + /** + * + * + *
    +     * The ID of the ad technology provider associated with the bid.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad technology provider ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_TECHNOLOGY_PROVIDER_ID = 621; + */ + AD_TECHNOLOGY_PROVIDER_ID(24, 621), + /** + * + * + *
    +     * The name of the ad technology provider associated with the bid.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad technology provider" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_TECHNOLOGY_PROVIDER_NAME = 622; + */ + AD_TECHNOLOGY_PROVIDER_NAME(25, 622), + /** + * + * + *
    +     * Segmentation of ad types.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad type value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AD_TYPE = 497; + */ + AD_TYPE(26, 497), + /** + * + * + *
    +     * Localized name of the ad type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_TYPE_NAME = 498; + */ + AD_TYPE_NAME(27, 498), + /** + * + * + *
    +     * The code of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE = 64; + */ + AD_UNIT_CODE(28, 64), + /** + * + * + *
    +     * The code of the first level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 1" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_1 = 65; + */ + AD_UNIT_CODE_LEVEL_1(29, 65), + /** + * + * + *
    +     * The code of the tenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 10" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_10 = 74; + */ + AD_UNIT_CODE_LEVEL_10(30, 74), + /** + * + * + *
    +     * The code of the eleventh level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 11" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_11 = 75; + */ + AD_UNIT_CODE_LEVEL_11(31, 75), + /** + * + * + *
    +     * The code of the twelfth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 12" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_12 = 76; + */ + AD_UNIT_CODE_LEVEL_12(32, 76), + /** + * + * + *
    +     * The code of the thirteenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 13" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_13 = 77; + */ + AD_UNIT_CODE_LEVEL_13(33, 77), + /** + * + * + *
    +     * The code of the fourteenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 14" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_14 = 78; + */ + AD_UNIT_CODE_LEVEL_14(34, 78), + /** + * + * + *
    +     * The code of the fifteenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 15" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_15 = 79; + */ + AD_UNIT_CODE_LEVEL_15(35, 79), + /** + * + * + *
    +     * The code of the sixteenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 16" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_16 = 80; + */ + AD_UNIT_CODE_LEVEL_16(36, 80), + /** + * + * + *
    +     * The code of the second level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 2" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_2 = 66; + */ + AD_UNIT_CODE_LEVEL_2(37, 66), + /** + * + * + *
    +     * The code of the third level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 3" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_3 = 67; + */ + AD_UNIT_CODE_LEVEL_3(38, 67), + /** + * + * + *
    +     * The code of the fourth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 4" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_4 = 68; + */ + AD_UNIT_CODE_LEVEL_4(39, 68), + /** + * + * + *
    +     * The code of the fifth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 5" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_5 = 69; + */ + AD_UNIT_CODE_LEVEL_5(40, 69), + /** + * + * + *
    +     * The code of the sixth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 6" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_6 = 70; + */ + AD_UNIT_CODE_LEVEL_6(41, 70), + /** + * + * + *
    +     * The code of the seventh level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 7" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_7 = 71; + */ + AD_UNIT_CODE_LEVEL_7(42, 71), + /** + * + * + *
    +     * The code of the eighth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 8" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_8 = 72; + */ + AD_UNIT_CODE_LEVEL_8(43, 72), + /** + * + * + *
    +     * The code of the ninth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 9" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_9 = 73; + */ + AD_UNIT_CODE_LEVEL_9(44, 73), + /** + * + * + *
    +     * The ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID = 25; + */ + AD_UNIT_ID(45, 25), + /** + * + * + *
    +     * The full hierarchy of ad unit IDs where the ad was requested, from
    +     *  root to leaf, excluding the root ad unit ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID (all levels)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * AD_UNIT_ID_ALL_LEVEL = 27; + */ + AD_UNIT_ID_ALL_LEVEL(46, 27), + /** + * + * + *
    +     * The first level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 1" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_1 = 30; + */ + AD_UNIT_ID_LEVEL_1(47, 30), + /** + * + * + *
    +     * The tenth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 10" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_10 = 48; + */ + AD_UNIT_ID_LEVEL_10(48, 48), + /** + * + * + *
    +     * The eleventh level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 11" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_11 = 50; + */ + AD_UNIT_ID_LEVEL_11(49, 50), + /** + * + * + *
    +     * The twelfth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 12" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_12 = 52; + */ + AD_UNIT_ID_LEVEL_12(50, 52), + /** + * + * + *
    +     * The thirteenth level ad unit ID of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 13" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_13 = 54; + */ + AD_UNIT_ID_LEVEL_13(51, 54), + /** + * + * + *
    +     * The fourteenth level ad unit ID of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 14" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_14 = 56; + */ + AD_UNIT_ID_LEVEL_14(52, 56), + /** + * + * + *
    +     * The fifteenth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 15" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_15 = 58; + */ + AD_UNIT_ID_LEVEL_15(53, 58), + /** + * + * + *
    +     * The sixteenth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 16" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_16 = 60; + */ + AD_UNIT_ID_LEVEL_16(54, 60), + /** + * + * + *
    +     * The second level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 2" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_2 = 32; + */ + AD_UNIT_ID_LEVEL_2(55, 32), + /** + * + * + *
    +     * The third level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 3" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_3 = 34; + */ + AD_UNIT_ID_LEVEL_3(56, 34), + /** + * + * + *
    +     * The fourth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 4" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_4 = 36; + */ + AD_UNIT_ID_LEVEL_4(57, 36), + /** + * + * + *
    +     * The fifth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 5" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_5 = 38; + */ + AD_UNIT_ID_LEVEL_5(58, 38), + /** + * + * + *
    +     * The sixth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 6" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_6 = 40; + */ + AD_UNIT_ID_LEVEL_6(59, 40), + /** + * + * + *
    +     * The seventh level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 7" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_7 = 42; + */ + AD_UNIT_ID_LEVEL_7(60, 42), + /** + * + * + *
    +     * The eighth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 8" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_8 = 44; + */ + AD_UNIT_ID_LEVEL_8(61, 44), + /** + * + * + *
    +     * The ninth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 9" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_9 = 46; + */ + AD_UNIT_ID_LEVEL_9(62, 46), + /** + * + * + *
    +     * The top-level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID (top level)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_TOP_LEVEL = 142; + */ + AD_UNIT_ID_TOP_LEVEL(63, 142), + /** + * + * + *
    +     * The name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME = 26; + */ + AD_UNIT_NAME(64, 26), + /** + * + * + *
    +     * The full hierarchy of ad unit names where the ad was requested, from
    +     *  root to leaf, excluding the root ad unit name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit (all levels)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * AD_UNIT_NAME_ALL_LEVEL = 29; + */ + AD_UNIT_NAME_ALL_LEVEL(65, 29), + /** + * + * + *
    +     * The first level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 1" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_1 = 31; + */ + AD_UNIT_NAME_LEVEL_1(66, 31), + /** + * + * + *
    +     * The tenth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 10" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_10 = 49; + */ + AD_UNIT_NAME_LEVEL_10(67, 49), + /** + * + * + *
    +     * The eleventh level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 11" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_11 = 51; + */ + AD_UNIT_NAME_LEVEL_11(68, 51), + /** + * + * + *
    +     * The twelfth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 12" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_12 = 53; + */ + AD_UNIT_NAME_LEVEL_12(69, 53), + /** + * + * + *
    +     * The thirteenth level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 13" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_13 = 55; + */ + AD_UNIT_NAME_LEVEL_13(70, 55), + /** + * + * + *
    +     * The fourteenth level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 14" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_14 = 57; + */ + AD_UNIT_NAME_LEVEL_14(71, 57), + /** + * + * + *
    +     * The fifteenth level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 15" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_15 = 59; + */ + AD_UNIT_NAME_LEVEL_15(72, 59), + /** + * + * + *
    +     * The sixteenth level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 16" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_16 = 61; + */ + AD_UNIT_NAME_LEVEL_16(73, 61), + /** + * + * + *
    +     * The second level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 2" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_2 = 33; + */ + AD_UNIT_NAME_LEVEL_2(74, 33), + /** + * + * + *
    +     * The third level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 3" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_3 = 35; + */ + AD_UNIT_NAME_LEVEL_3(75, 35), + /** + * + * + *
    +     * The fourth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 4" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_4 = 37; + */ + AD_UNIT_NAME_LEVEL_4(76, 37), + /** + * + * + *
    +     * The fifth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 5" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_5 = 39; + */ + AD_UNIT_NAME_LEVEL_5(77, 39), + /** + * + * + *
    +     * The sixth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 6" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_6 = 41; + */ + AD_UNIT_NAME_LEVEL_6(78, 41), + /** + * + * + *
    +     * The seventh level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 7" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_7 = 43; + */ + AD_UNIT_NAME_LEVEL_7(79, 43), + /** + * + * + *
    +     * The eighth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 8" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_8 = 45; + */ + AD_UNIT_NAME_LEVEL_8(80, 45), + /** + * + * + *
    +     * The ninth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 9" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_9 = 47; + */ + AD_UNIT_NAME_LEVEL_9(81, 47), + /** + * + * + *
    +     * The top-level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit (top level)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_TOP_LEVEL = 143; + */ + AD_UNIT_NAME_TOP_LEVEL(82, 143), + /** + * + * + *
    +     * The reward amount of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit reward amount" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_UNIT_REWARD_AMOUNT = 63; + */ + AD_UNIT_REWARD_AMOUNT(83, 63), + /** + * + * + *
    +     * The reward type of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit reward type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_REWARD_TYPE = 62; + */ + AD_UNIT_REWARD_TYPE(84, 62), + /** + * + * + *
    +     * The status of the ad unit
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit status value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AD_UNIT_STATUS = 206; + */ + AD_UNIT_STATUS(85, 206), + /** + * + * + *
    +     * The name of the status of the ad unit
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_STATUS_NAME = 207; + */ + AD_UNIT_STATUS_NAME(86, 207), + /** + * + * + *
    +     * The ID of an agency at level 1 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency ID (Level 1)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AGENCY_LEVEL_1_ID = 565; + */ + AGENCY_LEVEL_1_ID(87, 565), + /** + * + * + *
    +     * The name of an agency at level 1 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency (Level 1)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AGENCY_LEVEL_1_NAME = 566; + */ + AGENCY_LEVEL_1_NAME(88, 566), + /** + * + * + *
    +     * The ID of an agency at level 2 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency ID (Level 2)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AGENCY_LEVEL_2_ID = 567; + */ + AGENCY_LEVEL_2_ID(89, 567), + /** + * + * + *
    +     * The name of an agency at level 2 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency (Level 2)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AGENCY_LEVEL_2_NAME = 568; + */ + AGENCY_LEVEL_2_NAME(90, 568), + /** + * + * + *
    +     * The ID of an agency at level 3 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency ID (Level 3)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AGENCY_LEVEL_3_ID = 569; + */ + AGENCY_LEVEL_3_ID(91, 569), + /** + * + * + *
    +     * The name of an agency at level 3 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency (Level 3)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AGENCY_LEVEL_3_NAME = 570; + */ + AGENCY_LEVEL_3_NAME(92, 570), + /** + * + * + *
    +     * User age bracket enum.
    +     *
    +     *
    +     *
    +     * Corresponds to "Age bracket value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AGE_BRACKET = 508; + */ + AGE_BRACKET(93, 508), + /** + * + * + *
    +     * Localized user age bracket returned from Google Analytics. For example,
    +     *  "18-24", "25-34", "35-44", "45-54", "55-64", "65+".
    +     *
    +     *
    +     *
    +     * Corresponds to "Age bracket" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AGE_BRACKET_NAME = 582; + */ + AGE_BRACKET_NAME(94, 582), + /** + * + * + *
    +     * Enum value for App Tracking Transparency consent status.
    +     *
    +     *
    +     *
    +     * Corresponds to "App Tracking Transparency consent status value" in the Ad
    +     * Manager UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * APP_TRACKING_TRANSPARENCY_CONSENT_STATUS = 442; + */ + APP_TRACKING_TRANSPARENCY_CONSENT_STATUS(95, 442), + /** + * + * + *
    +     * Localized string value for App Tracking Transparency consent status.
    +     *
    +     *
    +     *
    +     * Corresponds to "App Tracking Transparency consent status" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME = 443; + */ + APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME(96, 443), + /** + * + * + *
    +     * The app version.
    +     *
    +     *
    +     *
    +     * Corresponds to "App version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * APP_VERSION = 392; + */ + APP_VERSION(97, 392), + /** + * + * + *
    +     * The name of Auction Package deal
    +     *
    +     *
    +     *
    +     * Corresponds to "Auction package deal" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AUCTION_PACKAGE_DEAL = 579; + */ + AUCTION_PACKAGE_DEAL(98, 579), + /** + * + * + *
    +     * The ID of Auction Package deal
    +     *
    +     *
    +     *
    +     * Corresponds to "Auction package deal ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AUCTION_PACKAGE_DEAL_ID = 571; + */ + AUCTION_PACKAGE_DEAL_ID(99, 571), + /** + * + * + *
    +     * ID of targeted audience segment, including all first-party and
    +     *  third-party segments that matched the user on the winning line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Audience segment ID (targeted)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AUDIENCE_SEGMENT_ID_TARGETED = 584; + */ + AUDIENCE_SEGMENT_ID_TARGETED(100, 584), + /** + * + * + *
    +     * Name of targeted audience segment, including all first-party and
    +     *  third-party segments that matched the user on the winning line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Audience segment (targeted)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AUDIENCE_SEGMENT_TARGETED = 585; + */ + AUDIENCE_SEGMENT_TARGETED(101, 585), + /** + * + * + *
    +     * Enum value of Auto refreshed traffic.
    +     *
    +     *
    +     *
    +     * Corresponds to "Auto refreshed traffic value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AUTO_REFRESHED_TRAFFIC = 421; + */ + AUTO_REFRESHED_TRAFFIC(102, 421), + /** + * + * + *
    +     * Indicates if the traffic is from auto-refreshed ad requests.
    +     *
    +     *
    +     *
    +     * Corresponds to "Auto refreshed traffic" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AUTO_REFRESHED_TRAFFIC_NAME = 422; + */ + AUTO_REFRESHED_TRAFFIC_NAME(103, 422), + /** + * + * + *
    +     * The encrypted version of BIDDER_ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bidder encrypted ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BIDDER_ENCRYPTED_ID = 493; + */ + BIDDER_ENCRYPTED_ID(104, 493), + /** + * + * + *
    +     * The name of the bidder.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bidder" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BIDDER_NAME = 494; + */ + BIDDER_NAME(105, 494), + /** + * + * + *
    +     * The cpm range within which a bid falls.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid Range" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BID_RANGE`
    +     * 
    + * + * BID_RANGE = 679; + */ + BID_RANGE(106, 679), + /** + * + * + *
    +     * The reason a bid was rejected.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid rejection reason value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * BID_REJECTION_REASON = 599; + */ + BID_REJECTION_REASON(107, 599), + /** + * + * + *
    +     * The localized name of the reason a bid was rejected.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid rejection reason" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BID_REJECTION_REASON_NAME = 600; + */ + BID_REJECTION_REASON_NAME(108, 600), + /** + * + * + *
    +     * The amount of information about the Publisher's page sent to the buyer
    +     *  who purchased the impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Branding type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * BRANDING_TYPE = 383; + */ + BRANDING_TYPE(109, 383), + /** + * + * + *
    +     * The localized version of branding type, the amount of information about
    +     *  the Publisher's page sent to the buyer who purchased the impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Branding type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BRANDING_TYPE_NAME = 384; + */ + BRANDING_TYPE_NAME(110, 384), + /** + * + * + *
    +     * Browser category.
    +     *
    +     *
    +     *
    +     * Corresponds to "Browser category value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * BROWSER_CATEGORY = 119; + */ + BROWSER_CATEGORY(111, 119), + /** + * + * + *
    +     * Browser category name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Browser category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BROWSER_CATEGORY_NAME = 120; + */ + BROWSER_CATEGORY_NAME(112, 120), + /** + * + * + *
    +     * The ID of the browser.
    +     *
    +     *
    +     *
    +     * Corresponds to "Browser ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * BROWSER_ID = 235; + */ + BROWSER_ID(113, 235), + /** + * + * + *
    +     * The name of the browser.
    +     *
    +     *
    +     *
    +     * Corresponds to "Browser" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BROWSER_NAME = 236; + */ + BROWSER_NAME(114, 236), + /** + * + * + *
    +     * The ID of the buyer network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Buyer network ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BUYER_NETWORK_ID = 448; + */ + BUYER_NETWORK_ID(115, 448), + /** + * + * + *
    +     * The name of the buyer network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Buyer network" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BUYER_NETWORK_NAME = 449; + */ + BUYER_NETWORK_NAME(116, 449), + /** + * + * + *
    +     * The callout status category in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Callout status category value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CALLOUT_STATUS_CATEGORY = 588; + */ + CALLOUT_STATUS_CATEGORY(117, 588), + /** + * + * + *
    +     * The callout status category name in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Callout status category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CALLOUT_STATUS_CATEGORY_NAME = 589; + */ + CALLOUT_STATUS_CATEGORY_NAME(118, 589), + /** + * + * + *
    +     * Mobile carrier ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Carrier ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CARRIER_ID = 369; + */ + CARRIER_ID(119, 369), + /** + * + * + *
    +     * Name of the mobile carrier.
    +     *
    +     *
    +     *
    +     * Corresponds to "Carrier" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CARRIER_NAME = 368; + */ + CARRIER_NAME(120, 368), + /** + * + * + *
    +     * Inventory segmentation by channel.
    +     *
    +     *
    +     *
    +     * Corresponds to "Channel" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CHANNEL = 501; + */ + CHANNEL(121, 501), + /** + * + * + *
    +     * Child Publisher Network Code
    +     *
    +     *
    +     *
    +     * Corresponds to "Child network code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CHILD_NETWORK_CODE = 542; + */ + CHILD_NETWORK_CODE(122, 542), + /** + * + * + *
    +     * Child Publisher Network ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Child network ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CHILD_NETWORK_ID = 544; + */ + CHILD_NETWORK_ID(123, 544), + /** + * + * + *
    +     * Child Partner Network Name
    +     *
    +     *
    +     *
    +     * Corresponds to "Child network" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CHILD_PARTNER_NAME = 543; + */ + CHILD_PARTNER_NAME(124, 543), + /** + * + * + *
    +     * The criteria ID of the city in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "City ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CITY_ID = 459; + */ + CITY_ID(125, 459), + /** + * + * + *
    +     * The name of the city in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "City" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CITY_NAME = 452; + */ + CITY_NAME(126, 452), + /** + * + * + *
    +     * The ID of an advertiser, classified by Google, associated with a creative
    +     *  transacted
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser ID (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CLASSIFIED_ADVERTISER_ID = 133; + */ + CLASSIFIED_ADVERTISER_ID(127, 133), + /** + * + * + *
    +     * The name of an advertiser, classified by Google, associated with a
    +     *  creative transacted
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CLASSIFIED_ADVERTISER_NAME = 134; + */ + CLASSIFIED_ADVERTISER_NAME(128, 134), + /** + * + * + *
    +     * ID of the brand, as classified by Google,
    +     *
    +     *
    +     *
    +     * Corresponds to "Brand ID (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CLASSIFIED_BRAND_ID = 243; + */ + CLASSIFIED_BRAND_ID(129, 243), + /** + * + * + *
    +     * Name of the brand, as classified by Google,
    +     *
    +     *
    +     *
    +     * Corresponds to "Brand (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CLASSIFIED_BRAND_NAME = 244; + */ + CLASSIFIED_BRAND_NAME(130, 244), + /** + * + * + *
    +     * The display name of the CMS content.
    +     *
    +     *
    +     *
    +     * Corresponds to "Content source name" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTENT_CMS_NAME = 643; + */ + CONTENT_CMS_NAME(131, 643), + /** + * + * + *
    +     * The CMS content ID of the video content.
    +     *
    +     *
    +     *
    +     * Corresponds to "ID of the video in the content source" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTENT_CMS_VIDEO_ID = 644; + */ + CONTENT_CMS_VIDEO_ID(132, 644), + /** + * + * + *
    +     * ID of the video content served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Content ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CONTENT_ID = 246; + */ + CONTENT_ID(133, 246), + /** + * + * + *
    +     * Content mapping presence ENUM value
    +     *
    +     *
    +     *
    +     * Corresponds to "Content mapping presence value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CONTENT_MAPPING_PRESENCE = 731; + */ + CONTENT_MAPPING_PRESENCE(134, 731), + /** + * + * + *
    +     * Content mapping presence name
    +     *
    +     *
    +     *
    +     * Corresponds to "Content mapping presence" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTENT_MAPPING_PRESENCE_NAME = 732; + */ + CONTENT_MAPPING_PRESENCE_NAME(135, 732), + /** + * + * + *
    +     * Name of the video content served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Content" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTENT_NAME = 247; + */ + CONTENT_NAME(136, 247), + /** + * + * + *
    +     * The continent in which the ad served (derived from country).
    +     *
    +     *
    +     *
    +     * Corresponds to "Continent value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CONTINENT = 469; + */ + CONTINENT(137, 469), + /** + * + * + *
    +     * The name of the continent in which the ad served (derived from country).
    +     *
    +     *
    +     *
    +     * Corresponds to "Continent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTINENT_NAME = 470; + */ + CONTINENT_NAME(138, 470), + /** + * + * + *
    +     * The ISO code of the country in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Country code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * COUNTRY_CODE = 466; + */ + COUNTRY_CODE(139, 466), + /** + * + * + *
    +     * The criteria ID of the country in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Country ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * COUNTRY_ID = 11; + */ + COUNTRY_ID(140, 11), + /** + * + * + *
    +     * The name of the country in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Country" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * COUNTRY_NAME = 12; + */ + COUNTRY_NAME(141, 12), + /** + * + * + *
    +     * Enum value of creative billing type
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative billing type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_BILLING_TYPE = 366; + */ + CREATIVE_BILLING_TYPE(142, 366), + /** + * + * + *
    +     * Localized string value of creative billing type
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative billing type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_BILLING_TYPE_NAME = 367; + */ + CREATIVE_BILLING_TYPE_NAME(143, 367), + /** + * + * + *
    +     * Represents the click-through URL of a creative
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative click through url" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_CLICK_THROUGH_URL = 174; + */ + CREATIVE_CLICK_THROUGH_URL(144, 174), + /** + * + * + *
    +     * The ID of a creative
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CREATIVE_ID = 138; + */ + CREATIVE_ID(145, 138), + /** + * + * + *
    +     * Creative name
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_NAME = 139; + */ + CREATIVE_NAME(146, 139), + /** + * + * + *
    +     * Creative Policies filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative policies filtering value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_POLICIES_FILTERING = 711; + */ + CREATIVE_POLICIES_FILTERING(147, 711), + /** + * + * + *
    +     * Localized name of the Creative Policies filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative policies filtering" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_POLICIES_FILTERING_NAME = 712; + */ + CREATIVE_POLICIES_FILTERING_NAME(148, 712), + /** + * + * + *
    +     * Creative Protections filtering (Publisher Blocks Enforcement).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative protections filtering value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_PROTECTIONS_FILTERING = 704; + */ + CREATIVE_PROTECTIONS_FILTERING(149, 704), + /** + * + * + *
    +     * Localized name of the Creative Protections filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative protections filtering" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_PROTECTIONS_FILTERING_NAME = 705; + */ + CREATIVE_PROTECTIONS_FILTERING_NAME(150, 705), + /** + * + * + *
    +     * ENUM describing whether the creative is part of a creative set and if so,
    +     *  what its role in the creative set is.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative set role type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_SET_ROLE_TYPE = 686; + */ + CREATIVE_SET_ROLE_TYPE(151, 686), + /** + * + * + *
    +     * Localized name describing whether the creative is part of a creative set
    +     *  and if so, what its role in the creative set is.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative set role type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_SET_ROLE_TYPE_NAME = 687; + */ + CREATIVE_SET_ROLE_TYPE_NAME(152, 687), + /** + * + * + *
    +     * Creative technology ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative technology value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_TECHNOLOGY = 148; + */ + CREATIVE_TECHNOLOGY(153, 148), + /** + * + * + *
    +     * Creative technology locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative technology" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_TECHNOLOGY_NAME = 149; + */ + CREATIVE_TECHNOLOGY_NAME(154, 149), + /** + * + * + *
    +     * Third party vendor name of a creative
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative third party vendor" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_THIRD_PARTY_VENDOR = 361; + */ + CREATIVE_THIRD_PARTY_VENDOR(155, 361), + /** + * + * + *
    +     * Enum value of creative type
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_TYPE = 344; + */ + CREATIVE_TYPE(156, 344), + /** + * + * + *
    +     * Localized string name of creative type
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_TYPE_NAME = 345; + */ + CREATIVE_TYPE_NAME(157, 345), + /** + * + * + *
    +     * Creative vendor ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative vendor ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CREATIVE_VENDOR_ID = 706; + */ + CREATIVE_VENDOR_ID(158, 706), + /** + * + * + *
    +     * Name of the Creative vendor.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative vendor" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_VENDOR_NAME = 707; + */ + CREATIVE_VENDOR_NAME(159, 707), + /** + * + * + *
    +     * The third party where Google Ad Manager was redirected for the creative,
    +     *  based on the domain.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative video redirect third party" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_VIDEO_REDIRECT_THIRD_PARTY = 562; + */ + CREATIVE_VIDEO_REDIRECT_THIRD_PARTY(160, 562), + /** + * + * + *
    +     * The ID of a Curation partner
    +     *
    +     *
    +     *
    +     * Corresponds to "Curation partner ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CURATOR_ID = 572; + */ + CURATOR_ID(161, 572), + /** + * + * + *
    +     * The name of a Curation partner
    +     *
    +     *
    +     *
    +     * Corresponds to "Curation partner" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CURATOR_NAME = 573; + */ + CURATOR_NAME(162, 573), + /** + * + * + *
    +     * Custom event ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event id" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CUSTOM_EVENT_ID = 737; + */ + CUSTOM_EVENT_ID(163, 737), + /** + * + * + *
    +     * Custom event name
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CUSTOM_EVENT_NAME = 735; + */ + CUSTOM_EVENT_NAME(164, 735), + /** + * + * + *
    +     * Custom event type
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CUSTOM_EVENT_TYPE = 736; + */ + CUSTOM_EVENT_TYPE(165, 736), + /** + * + * + *
    +     * Localized name of the custom event type
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CUSTOM_EVENT_TYPE_NAME = 738; + */ + CUSTOM_EVENT_TYPE_NAME(166, 738), + /** + * + * + *
    +     * The ID of an ad spot. An ad spot can be added to an ad break template, as
    +     *  well as directly targeted by a video line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom spot ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CUSTOM_SPOT_ID = 423; + */ + CUSTOM_SPOT_ID(167, 423), + /** + * + * + *
    +     * The name of an ad spot. An ad spot can be added to an ad break
    +     *  template, as well as directly targeted by a video line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom spot" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CUSTOM_SPOT_NAME = 424; + */ + CUSTOM_SPOT_NAME(168, 424), + /** + * + * + *
    +     * Breaks down reporting data by date.
    +     *
    +     *
    +     *
    +     * Corresponds to "Date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * DATE = 3; + */ + DATE(169, 3), + /** + * + * + *
    +     * Breaks down reporting data by day of the week. Monday is 1 and 7 is
    +     *  Sunday.
    +     *
    +     *
    +     *
    +     * Corresponds to "Day of week" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * DAY_OF_WEEK = 4; + */ + DAY_OF_WEEK(170, 4), + /** + * + * + *
    +     * The ID of the buyer of a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deal buyer ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * DEAL_BUYER_ID = 240; + */ + DEAL_BUYER_ID(171, 240), + /** + * + * + *
    +     * The name of the buyer of a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deal buyer" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEAL_BUYER_NAME = 241; + */ + DEAL_BUYER_NAME(172, 241), + /** + * + * + *
    +     * Deal ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Deal ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEAL_ID = 436; + */ + DEAL_ID(173, 436), + /** + * + * + *
    +     * Deal name
    +     *
    +     *
    +     *
    +     * Corresponds to "Deal" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEAL_NAME = 437; + */ + DEAL_NAME(174, 437), + /** + * + * + *
    +     * The ID of the secure signals that were sent to the bidder who won the
    +     *  impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal ID (delivered)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * DELIVERED_SECURE_SIGNAL_ID = 309; + */ + DELIVERED_SECURE_SIGNAL_ID(175, 309), + /** + * + * + *
    +     * The name of the secure signals that were sent to the bidder who won the
    +     *  impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal name (delivered)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DELIVERED_SECURE_SIGNAL_NAME = 310; + */ + DELIVERED_SECURE_SIGNAL_NAME(176, 310), + /** + * + * + *
    +     * Demand channel.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand channel value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEMAND_CHANNEL = 9; + */ + DEMAND_CHANNEL(177, 9), + /** + * + * + *
    +     * Demand channel name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand channel" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEMAND_CHANNEL_NAME = 10; + */ + DEMAND_CHANNEL_NAME(178, 10), + /** + * + * + *
    +     * Demand source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand source value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEMAND_SOURCE = 592; + */ + DEMAND_SOURCE(179, 592), + /** + * + * + *
    +     * Demand source name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEMAND_SOURCE_NAME = 593; + */ + DEMAND_SOURCE_NAME(180, 593), + /** + * + * + *
    +     * Demand subchannel.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand subchannel value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEMAND_SUBCHANNEL = 22; + */ + DEMAND_SUBCHANNEL(181, 22), + /** + * + * + *
    +     * Demand subchannel name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand subchannel" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEMAND_SUBCHANNEL_NAME = 23; + */ + DEMAND_SUBCHANNEL_NAME(182, 23), + /** + * + * + *
    +     * The device on which an ad was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Device value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEVICE = 226; + */ + DEVICE(183, 226), + /** + * + * + *
    +     * The device category to which an ad is being targeted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Device category value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEVICE_CATEGORY = 15; + */ + DEVICE_CATEGORY(184, 15), + /** + * + * + *
    +     * The name of the category of device (smartphone, feature phone, tablet, or
    +     *  desktop) to which an ad is being targeted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Device category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEVICE_CATEGORY_NAME = 16; + */ + DEVICE_CATEGORY_NAME(185, 16), + /** + * + * + *
    +     * Device manufacturer ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Device manufacturer ID" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * DEVICE_MANUFACTURER_ID = 525; + */ + DEVICE_MANUFACTURER_ID(186, 525), + /** + * + * + *
    +     * Device manufacturer name
    +     *
    +     *
    +     *
    +     * Corresponds to "Device manufacturer" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEVICE_MANUFACTURER_NAME = 526; + */ + DEVICE_MANUFACTURER_NAME(187, 526), + /** + * + * + *
    +     * Device model ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Device model ID" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * DEVICE_MODEL_ID = 527; + */ + DEVICE_MODEL_ID(188, 527), + /** + * + * + *
    +     * Device model name
    +     *
    +     *
    +     *
    +     * Corresponds to "Device model" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEVICE_MODEL_NAME = 528; + */ + DEVICE_MODEL_NAME(189, 528), + /** + * + * + *
    +     * The localized name of the device on which an ad was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Device" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEVICE_NAME = 225; + */ + DEVICE_NAME(190, 225), + /** + * + * + *
    +     * The ID of DSP Seat
    +     *
    +     *
    +     *
    +     * Corresponds to "DSP seat ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DSP_SEAT_ID = 564; + */ + DSP_SEAT_ID(191, 564), + /** + * + * + *
    +     * Categorization of inventory sources based on AdX dynamic allocation
    +     *  backfill type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Dynamic allocation value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DYNAMIC_ALLOCATION_TYPE = 502; + */ + DYNAMIC_ALLOCATION_TYPE(192, 502), + /** + * + * + *
    +     * Localized name of the dynamic allocation type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Dynamic allocation" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DYNAMIC_ALLOCATION_TYPE_NAME = 503; + */ + DYNAMIC_ALLOCATION_TYPE_NAME(193, 503), + /** + * + * + *
    +     * Status of Encrypted Signals for Publishers delivery.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal delivery value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ESP_DELIVERY = 623; + */ + ESP_DELIVERY(194, 623), + /** + * + * + *
    +     * Localized name of the ESP delivery status.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal delivery" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ESP_DELIVERY_NAME = 624; + */ + ESP_DELIVERY_NAME(195, 624), + /** + * + * + *
    +     * Whether Encrypted Signals for Publishers are present on the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal presence value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ESP_PRESENCE = 625; + */ + ESP_PRESENCE(196, 625), + /** + * + * + *
    +     * Localized name of the ESP presence status.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal presence" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ESP_PRESENCE_NAME = 626; + */ + ESP_PRESENCE_NAME(197, 626), + /** + * + * + *
    +     * Exchange bidding deal ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Exchange bidding deal id" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * EXCHANGE_BIDDING_DEAL_ID = 715; + */ + EXCHANGE_BIDDING_DEAL_ID(198, 715), + /** + * + * + *
    +     * Exchange bidding deal type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Exchange bidding deal type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * EXCHANGE_BIDDING_DEAL_TYPE = 714; + */ + EXCHANGE_BIDDING_DEAL_TYPE(199, 714), + /** + * + * + *
    +     * Localized name of the exchange bidding deal type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Exchange bidding deal type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * EXCHANGE_BIDDING_DEAL_TYPE_NAME = 723; + */ + EXCHANGE_BIDDING_DEAL_TYPE_NAME(200, 723), + /** + * + * + *
    +     * ID of the yield partner as classified by Google
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner ID (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; + */ + EXCHANGE_THIRD_PARTY_COMPANY_ID(201, 185), + /** + * + * + *
    +     * Name of the yield partner as classified by Google
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; + */ + EXCHANGE_THIRD_PARTY_COMPANY_NAME(202, 186), + /** + * + * + *
    +     * The ID of the first look pricing rule.
    +     *
    +     *
    +     *
    +     * Corresponds to "First look pricing rule ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * FIRST_LOOK_PRICING_RULE_ID = 248; + */ + FIRST_LOOK_PRICING_RULE_ID(203, 248), + /** + * + * + *
    +     * The name of the first look pricing rule.
    +     *
    +     *
    +     *
    +     * Corresponds to "First look pricing rule" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * FIRST_LOOK_PRICING_RULE_NAME = 249; + */ + FIRST_LOOK_PRICING_RULE_NAME(204, 249), + /** + * + * + *
    +     * Whether a first-party user identifier was present on a given
    +     *  ad-request.
    +     *
    +     *
    +     *
    +     * Corresponds to "First-party ID status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * FIRST_PARTY_ID_STATUS = 404; + */ + FIRST_PARTY_ID_STATUS(205, 404), + /** + * + * + *
    +     * The localized name of whether a first-party user identifier was present
    +     *  on a given ad-request.
    +     *
    +     *
    +     *
    +     * Corresponds to "First-party ID status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * FIRST_PARTY_ID_STATUS_NAME = 405; + */ + FIRST_PARTY_ID_STATUS_NAME(206, 405), + /** + * + * + *
    +     * User gender enum value returned from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Gender value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * GENDER = 509; + */ + GENDER(207, 509), + /** + * + * + *
    +     * Localized user gender returned from Google Analytics. For example,
    +     *  "male", "female".
    +     *
    +     *
    +     *
    +     * Corresponds to "Gender" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * GENDER_NAME = 583; + */ + GENDER_NAME(208, 583), + /** + * + * + *
    +     * The ID of a Google Analytics stream. For example, web site or mobile app
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics stream ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * GOOGLE_ANALYTICS_STREAM_ID = 519; + */ + GOOGLE_ANALYTICS_STREAM_ID(209, 519), + /** + * + * + *
    +     * The name of a Google Analytics stream. For example,
    +     *  web site or mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics stream" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * GOOGLE_ANALYTICS_STREAM_NAME = 520; + */ + GOOGLE_ANALYTICS_STREAM_NAME(210, 520), + /** + * + * + *
    +     * The ID of the header bidding trafficking yield partner.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner ID (header bidding trafficking)" in the Ad
    +     * Manager UI (when showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * HBT_YIELD_PARTNER_ID = 659; + */ + HBT_YIELD_PARTNER_ID(211, 659), + /** + * + * + *
    +     * The name of the header bidding trafficking yield partner.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner (header bidding trafficking)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * HBT_YIELD_PARTNER_NAME = 660; + */ + HBT_YIELD_PARTNER_NAME(212, 660), + /** + * + * + *
    +     * Header Bidder integration type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidder integration type value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * HEADER_BIDDER_INTEGRATION_TYPE = 718; + */ + HEADER_BIDDER_INTEGRATION_TYPE(213, 718), + /** + * + * + *
    +     * Localized name of the Header Bidder integration type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidder integration type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * HEADER_BIDDER_INTEGRATION_TYPE_NAME = 719; + */ + HEADER_BIDDER_INTEGRATION_TYPE_NAME(214, 719), + /** + * + * + *
    +     * Breaks down reporting data by hour in one day.
    +     *
    +     *
    +     *
    +     * Corresponds to "Hour" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * HOUR = 100; + */ + HOUR(215, 100), + /** + * + * + *
    +     * Impression Counting Method ENUM.
    +     *
    +     *
    +     *
    +     * Corresponds to "Impression counting method value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * IMPRESSION_COUNTING_METHOD = 577; + */ + IMPRESSION_COUNTING_METHOD(216, 577), + /** + * + * + *
    +     * Localized impression counting method name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Impression counting method" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * IMPRESSION_COUNTING_METHOD_NAME = 578; + */ + IMPRESSION_COUNTING_METHOD_NAME(217, 578), + /** + * + * + *
    +     * The interaction type of an ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interaction type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INTERACTION_TYPE = 223; + */ + INTERACTION_TYPE(218, 223), + /** + * + * + *
    +     * The localized name of the interaction type of an ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interaction type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INTERACTION_TYPE_NAME = 224; + */ + INTERACTION_TYPE_NAME(219, 224), + /** + * + * + *
    +     * User interest returned from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INTEREST = 510; + */ + INTEREST(220, 510), + /** + * + * + *
    +     * Inventory format.
    +     *  The format of the ad unit (e.g, banner) where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory format value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_FORMAT = 17; + */ + INVENTORY_FORMAT(221, 17), + /** + * + * + *
    +     * Inventory format name.
    +     *  The format of the ad unit (e.g, banner) where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory format" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_FORMAT_NAME = 18; + */ + INVENTORY_FORMAT_NAME(222, 18), + /** + * + * + *
    +     * The ID of the inventory share assignment.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share assignment ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * INVENTORY_SHARE_ASSIGNMENT_ID = 648; + */ + INVENTORY_SHARE_ASSIGNMENT_ID(223, 648), + /** + * + * + *
    +     * The name of the inventory share assignment.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share assignment" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_SHARE_ASSIGNMENT_NAME = 649; + */ + INVENTORY_SHARE_ASSIGNMENT_NAME(224, 649), + /** + * + * + *
    +     * The result of an inventory share.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share outcome value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_SHARE_OUTCOME = 603; + */ + INVENTORY_SHARE_OUTCOME(225, 603), + /** + * + * + *
    +     * The localized name of the result of an inventory share.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share outcome" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_SHARE_OUTCOME_NAME = 604; + */ + INVENTORY_SHARE_OUTCOME_NAME(226, 604), + /** + * + * + *
    +     * The partner ad server of the inventory share.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share partner ad server value" in the Ad
    +     * Manager UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_SHARE_PARTNER_AD_SERVER = 652; + */ + INVENTORY_SHARE_PARTNER_AD_SERVER(227, 652), + /** + * + * + *
    +     * The localized name of the partner ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share partner ad server" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_SHARE_PARTNER_AD_SERVER_NAME = 653; + */ + INVENTORY_SHARE_PARTNER_AD_SERVER_NAME(228, 653), + /** + * + * + *
    +     * The target share percent of the inventory share assignment
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner target share percent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * INVENTORY_SHARE_TARGET_SHARE_PERCENT = 654; + */ + INVENTORY_SHARE_TARGET_SHARE_PERCENT(229, 654), + /** + * + * + *
    +     * The type of the inventory share.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_SHARE_TYPE = 650; + */ + INVENTORY_SHARE_TYPE(230, 650), + /** + * + * + *
    +     * The localized name of the inventory share type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_SHARE_TYPE_NAME = 651; + */ + INVENTORY_SHARE_TYPE_NAME(231, 651), + /** + * + * + *
    +     * Inventory type.
    +     *  The kind of web page or device where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory type (expanded) value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_TYPE = 19; + */ + INVENTORY_TYPE(232, 19), + /** + * + * + *
    +     * Inventory type name.
    +     *  The kind of web page or device where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory type (expanded)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_TYPE_NAME = 20; + */ + INVENTORY_TYPE_NAME(233, 20), + /** + * + * + *
    +     * Whether traffic is Adx Direct.
    +     *
    +     *
    +     *
    +     * Corresponds to "Is AdX Direct" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * IS_ADX_DIRECT = 382; + */ + IS_ADX_DIRECT(234, 382), + /** + * + * + *
    +     * If curation was targeted by the buyer when buying the impression
    +     *
    +     *
    +     *
    +     * Corresponds to "Is curation targeted" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * IS_CURATION_TARGETED = 574; + */ + IS_CURATION_TARGETED(235, 574), + /** + * + * + *
    +     * Whether the query was dropped.
    +     *
    +     *
    +     *
    +     * Corresponds to "Is Dropped" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * IS_DROPPED = 464; + */ + IS_DROPPED(236, 464), + /** + * + * + *
    +     * Whether traffic is First Look.
    +     *
    +     *
    +     *
    +     * Corresponds to "Is First Look" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * IS_FIRST_LOOK_DEAL = 401; + */ + IS_FIRST_LOOK_DEAL(237, 401), + /** + * + * + *
    +     * The Custom Targeting Value ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Key-values ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * KEY_VALUES_ID = 214; + */ + KEY_VALUES_ID(238, 214), + /** + * + * + *
    +     * The Custom Targeting Value formatted like `{keyName}={valueName}`
    +     *
    +     *
    +     *
    +     * Corresponds to "Key-values" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * KEY_VALUES_NAME = 215; + */ + KEY_VALUES_NAME(239, 215), + /** + * + * + *
    +     * The agency of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item agency" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_AGENCY = 663; + */ + LINE_ITEM_AGENCY(240, 663), + /** + * + * + *
    +     * Whether a Line item is archived.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item is archived" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * LINE_ITEM_ARCHIVED = 188; + */ + LINE_ITEM_ARCHIVED(241, 188), + /** + * + * + *
    +     * Line item comanion delivery option ENUM value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item companion delivery option value" in the Ad
    +     * Manager UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; + */ + LINE_ITEM_COMPANION_DELIVERY_OPTION(242, 204), + /** + * + * + *
    +     * Localized line item comanion delivery option name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item companion delivery option" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; + */ + LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME(243, 205), + /** + * + * + *
    +     * The computed status of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item computed status value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_COMPUTED_STATUS = 250; + */ + LINE_ITEM_COMPUTED_STATUS(244, 250), + /** + * + * + *
    +     * The localized name of the computed status of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item computed status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_COMPUTED_STATUS_NAME = 251; + */ + LINE_ITEM_COMPUTED_STATUS_NAME(245, 251), + /** + * + * + *
    +     * The contracted units bought for the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item contracted quantity" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_CONTRACTED_QUANTITY = 92; + */ + LINE_ITEM_CONTRACTED_QUANTITY(246, 92), + /** + * + * + *
    +     * The cost per unit of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * LINE_ITEM_COST_PER_UNIT = 85; + */ + LINE_ITEM_COST_PER_UNIT(247, 85), + /** + * + * + *
    +     * Line item cost type ENUM value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item cost type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_COST_TYPE = 212; + */ + LINE_ITEM_COST_TYPE(248, 212), + /** + * + * + *
    +     * Localized line item cost type name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item cost type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_COST_TYPE_NAME = 213; + */ + LINE_ITEM_COST_TYPE_NAME(249, 213), + /** + * + * + *
    +     * Represent the end date of a creative associated with line item
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item creative end date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * LINE_ITEM_CREATIVE_END_DATE = 176; + */ + LINE_ITEM_CREATIVE_END_DATE(250, 176), + /** + * + * + *
    +     * The creative rotation type of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item creative rotation type value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; + */ + LINE_ITEM_CREATIVE_ROTATION_TYPE(251, 189), + /** + * + * + *
    +     * The localized name of the creative rotation type of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item creative rotation type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; + */ + LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME(252, 190), + /** + * + * + *
    +     * Represent the start date of a creative associated with line item
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item creative start date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * LINE_ITEM_CREATIVE_START_DATE = 175; + */ + LINE_ITEM_CREATIVE_START_DATE(253, 175), + /** + * + * + *
    +     * The 3 letter currency code of the Line Item
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item currency code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_CURRENCY_CODE = 180; + */ + LINE_ITEM_CURRENCY_CODE(254, 180), + /** + * + * + *
    +     * The progress made for the delivery of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item delivery indicator" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * LINE_ITEM_DELIVERY_INDICATOR = 87; + */ + LINE_ITEM_DELIVERY_INDICATOR(255, 87), + /** + * + * + *
    +     * The delivery rate type of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item delivery rate type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_DELIVERY_RATE_TYPE = 191; + */ + LINE_ITEM_DELIVERY_RATE_TYPE(256, 191), + /** + * + * + *
    +     * The localized name of the delivery rate type of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item delivery rate type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; + */ + LINE_ITEM_DELIVERY_RATE_TYPE_NAME(257, 192), + /** + * + * + *
    +     * The discount of the LineItem in whole units in the LineItem's currency
    +     *  code, or if unspecified the Network's currency code.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item discount (absolute)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * LINE_ITEM_DISCOUNT_ABSOLUTE = 195; + */ + LINE_ITEM_DISCOUNT_ABSOLUTE(258, 195), + /** + * + * + *
    +     * The discount of the LineItem in percentage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item discount (percentage)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `WHOLE_PERCENT`
    +     * 
    + * + * LINE_ITEM_DISCOUNT_PERCENTAGE = 196; + */ + LINE_ITEM_DISCOUNT_PERCENTAGE(259, 196), + /** + * + * + *
    +     * The end date of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item end date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * LINE_ITEM_END_DATE = 81; + */ + LINE_ITEM_END_DATE(260, 81), + /** + * + * + *
    +     * The end date and time of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item end time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `TIMESTAMP`
    +     * 
    + * + * LINE_ITEM_END_DATE_TIME = 83; + */ + LINE_ITEM_END_DATE_TIME(261, 83), + /** + * + * + *
    +     * The ENUM value of the environment a LineItem is targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item environment type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_ENVIRONMENT_TYPE = 201; + */ + LINE_ITEM_ENVIRONMENT_TYPE(262, 201), + /** + * + * + *
    +     * The localized name of the environment a LineItem is targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item environment type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; + */ + LINE_ITEM_ENVIRONMENT_TYPE_NAME(263, 202), + /** + * + * + *
    +     * The deal ID of the Line item. Set for Programmatic Direct campaigns.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item deal ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * LINE_ITEM_EXTERNAL_DEAL_ID = 97; + */ + LINE_ITEM_EXTERNAL_DEAL_ID(264, 97), + /** + * + * + *
    +     * The external ID of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item external ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_EXTERNAL_ID = 86; + */ + LINE_ITEM_EXTERNAL_ID(265, 86), + /** + * + * + *
    +     * The frequency cap of the Line item (descriptive string).
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item frequency cap" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_FREQUENCY_CAP = 256; + */ + LINE_ITEM_FREQUENCY_CAP(266, 256), + /** + * + * + *
    +     * Line item ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * LINE_ITEM_ID = 1; + */ + LINE_ITEM_ID(267, 1), + /** + * + * + *
    +     * Line item labels.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item labels" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * LINE_ITEM_LABELS = 667; + */ + LINE_ITEM_LABELS(268, 667), + /** + * + * + *
    +     * Line item label IDs.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item label IDs" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * LINE_ITEM_LABEL_IDS = 665; + */ + LINE_ITEM_LABEL_IDS(269, 665), + /** + * + * + *
    +     * The application that last modified the Line Item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item last modified by app" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_LAST_MODIFIED_BY_APP = 181; + */ + LINE_ITEM_LAST_MODIFIED_BY_APP(270, 181), + /** + * + * + *
    +     * The total number of clicks delivered of the lifetime of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item lifetime clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_LIFETIME_CLICKS = 95; + */ + LINE_ITEM_LIFETIME_CLICKS(271, 95), + /** + * + * + *
    +     * The total number of impressions delivered over the lifetime of the
    +     *  Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item lifetime impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_LIFETIME_IMPRESSIONS = 94; + */ + LINE_ITEM_LIFETIME_IMPRESSIONS(272, 94), + /** + * + * + *
    +     * The total number of viewable impressions delivered over the lifetime of
    +     *  the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item lifetime viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; + */ + LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS(273, 96), + /** + * + * + *
    +     * Whether or not the Line item is Makegood. Makegood refers to free
    +     *  inventory offered to buyers to compensate for mistakes or under-delivery
    +     *  in the original campaigns.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item is makegood" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * LINE_ITEM_MAKEGOOD = 89; + */ + LINE_ITEM_MAKEGOOD(274, 89), + /** + * + * + *
    +     * Line item Name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_NAME = 2; + */ + LINE_ITEM_NAME(275, 2), + /** + * + * + *
    +     * The cost of booking for the Line item (non-CPD).
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item booked revenue (exclude CPD)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; + */ + LINE_ITEM_NON_CPD_BOOKED_REVENUE(276, 98), + /** + * + * + *
    +     * Whether a Line item is eligible for opitimization.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item is optimizable" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * LINE_ITEM_OPTIMIZABLE = 90; + */ + LINE_ITEM_OPTIMIZABLE(277, 90), + /** + * + * + *
    +     * The PO number of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item PO number" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_PO_NUMBER = 669; + */ + LINE_ITEM_PO_NUMBER(278, 669), + /** + * + * + *
    +     * Goal type ENUM value of the primary goal of the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_TYPE = 210; + */ + LINE_ITEM_PRIMARY_GOAL_TYPE(279, 210), + /** + * + * + *
    +     * Localized goal type name of the primary goal of the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; + */ + LINE_ITEM_PRIMARY_GOAL_TYPE_NAME(280, 211), + /** + * + * + *
    +     * The total number of impressions or clicks that are reserved for a
    +     *  line item. For line items of type BULK or PRICE_PRIORITY, this
    +     *  represents the number of remaining impressions reserved. If the line
    +     *  item has an impression cap goal, this represents the number of
    +     *  impressions or conversions that the line item will stop serving at if
    +     *  reached.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal units (absolute)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; + */ + LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE(281, 93), + /** + * + * + *
    +     * The percentage of impressions or clicks that are reserved for a
    +     *  line item. For line items of type SPONSORSHIP, this represents the
    +     *  percentage of available impressions reserved. For line items of type
    +     *  NETWORK or HOUSE, this represents the percentage of remaining
    +     *  impressions reserved.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal units (percentage)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `WHOLE_PERCENT`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; + */ + LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE(282, 396), + /** + * + * + *
    +     * Unit type ENUM value of the primary goal of the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal unit type value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; + */ + LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE(283, 208), + /** + * + * + *
    +     * Localized unit type name of the primary goal of the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal unit type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; + */ + LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME(284, 209), + /** + * + * + *
    +     * The priority of this Line item as a value between 1 and 16.
    +     *  In general, a lower priority means more serving priority for the
    +     *  Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item priority" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_PRIORITY = 24; + */ + LINE_ITEM_PRIORITY(285, 24), + /** + * + * + *
    +     * ENUM value describing the state of inventory reservation for the
    +     *  LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item reservation status value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_RESERVATION_STATUS = 304; + */ + LINE_ITEM_RESERVATION_STATUS(286, 304), + /** + * + * + *
    +     * Localized string describing the state of inventory reservation for the
    +     *  LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item reservation status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_RESERVATION_STATUS_NAME = 305; + */ + LINE_ITEM_RESERVATION_STATUS_NAME(287, 305), + /** + * + * + *
    +     * The sales person of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item salesperson" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_SALESPERSON = 671; + */ + LINE_ITEM_SALESPERSON(288, 671), + /** + * + * + *
    +     * The secondary sales people of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item secondary salespeople" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * LINE_ITEM_SECONDARY_SALESPEOPLE = 673; + */ + LINE_ITEM_SECONDARY_SALESPEOPLE(289, 673), + /** + * + * + *
    +     * The secondary traffickers of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item secondary traffickers" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * LINE_ITEM_SECONDARY_TRAFFICKERS = 675; + */ + LINE_ITEM_SECONDARY_TRAFFICKERS(290, 675), + /** + * + * + *
    +     * The start date of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item start date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * LINE_ITEM_START_DATE = 82; + */ + LINE_ITEM_START_DATE(291, 82), + /** + * + * + *
    +     * The start date and time of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item start time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `TIMESTAMP`
    +     * 
    + * + * LINE_ITEM_START_DATE_TIME = 84; + */ + LINE_ITEM_START_DATE_TIME(292, 84), + /** + * + * + *
    +     * The trafficker of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item trafficker" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_TRAFFICKER = 677; + */ + LINE_ITEM_TRAFFICKER(293, 677), + /** + * + * + *
    +     * Line item type ENUM value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_TYPE = 193; + */ + LINE_ITEM_TYPE(294, 193), + /** + * + * + *
    +     * Localized line item type name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_TYPE_NAME = 194; + */ + LINE_ITEM_TYPE_NAME(295, 194), + /** + * + * + *
    +     * Whether the Line item end time and end date is set to effectively never
    +     *  end.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item is unlimited end time" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * LINE_ITEM_UNLIMITED_END = 187; + */ + LINE_ITEM_UNLIMITED_END(296, 187), + /** + * + * + *
    +     * The artificial cost per unit used by the Ad server to help rank
    +     *  inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item value cost per unit" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * LINE_ITEM_VALUE_COST_PER_UNIT = 88; + */ + LINE_ITEM_VALUE_COST_PER_UNIT(297, 88), + /** + * + * + *
    +     * The web property code used for dynamic allocation Line Items.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item web property code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_WEB_PROPERTY_CODE = 179; + */ + LINE_ITEM_WEB_PROPERTY_CODE(298, 179), + /** + * + * + *
    +     * The ID of creative, includes regular creatives, and master and companions
    +     *  in case of creative sets
    +     *
    +     *
    +     *
    +     * Corresponds to "Master and Companion creative ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * MASTER_COMPANION_CREATIVE_ID = 140; + */ + MASTER_COMPANION_CREATIVE_ID(299, 140), + /** + * + * + *
    +     * Name of creative, includes regular creatives, and master and companions
    +     *  in case of creative sets
    +     *
    +     *
    +     *
    +     * Corresponds to "Master and Companion creative" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MASTER_COMPANION_CREATIVE_NAME = 141; + */ + MASTER_COMPANION_CREATIVE_NAME(300, 141), + /** + * + * + *
    +     * Mediation type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mediation type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MEDIATION_TYPE = 701; + */ + MEDIATION_TYPE(301, 701), + /** + * + * + *
    +     * Localized mediation type name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mediation type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MEDIATION_TYPE_NAME = 754; + */ + MEDIATION_TYPE_NAME(302, 754), + /** + * + * + *
    +     * The ID of the yield partner for Mediation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner ID (mediation)" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * MEDIATION_YIELD_PARTNER_ID = 661; + */ + MEDIATION_YIELD_PARTNER_ID(303, 661), + /** + * + * + *
    +     * The name of the yield partner for Mediation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner (mediation)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MEDIATION_YIELD_PARTNER_NAME = 662; + */ + MEDIATION_YIELD_PARTNER_NAME(304, 662), + /** + * + * + *
    +     * The criteria ID of the metro area in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Metro ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * METRO_ID = 453; + */ + METRO_ID(305, 453), + /** + * + * + *
    +     * The name of the metro area in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Metro" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * METRO_NAME = 454; + */ + METRO_NAME(306, 454), + /** + * + * + *
    +     * Whether the mobile app is free.
    +     *
    +     *
    +     *
    +     * Corresponds to "App is free" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * MOBILE_APP_FREE = 128; + */ + MOBILE_APP_FREE(307, 128), + /** + * + * + *
    +     * URL of app icon for the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App icon URL" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_ICON_URL = 129; + */ + MOBILE_APP_ICON_URL(308, 129), + /** + * + * + *
    +     * The ID of the Mobile App.
    +     *
    +     *
    +     *
    +     * Corresponds to "App ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_ID = 123; + */ + MOBILE_APP_ID(309, 123), + /** + * + * + *
    +     * The name of the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_NAME = 127; + */ + MOBILE_APP_NAME(310, 127), + /** + * + * + *
    +     * Ownership status of the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App ownership status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MOBILE_APP_OWNERSHIP_STATUS = 311; + */ + MOBILE_APP_OWNERSHIP_STATUS(311, 311), + /** + * + * + *
    +     * Ownership status of the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App ownership status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; + */ + MOBILE_APP_OWNERSHIP_STATUS_NAME(312, 312), + /** + * + * + *
    +     * The App Store of the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App store value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MOBILE_APP_STORE = 125; + */ + MOBILE_APP_STORE(313, 125), + /** + * + * + *
    +     * The localized name of the mobile app store.
    +     *
    +     *
    +     *
    +     * Corresponds to "App store" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_STORE_NAME = 245; + */ + MOBILE_APP_STORE_NAME(314, 245), + /** + * + * + *
    +     * Mobile inventory type.
    +     *  Identifies whether a mobile ad came from a regular web page, an AMP web
    +     *  page, or a mobile app.
    +     *  Values match the Inventory type dimension available in the Overview Home
    +     *  dashboard. Note: Video takes precedence over any other value, for
    +     *  example, if there is an in-stream video impression on a desktop device,
    +     *  it will be attributed to in-stream video and not desktop web.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MOBILE_INVENTORY_TYPE = 99; + */ + MOBILE_INVENTORY_TYPE(315, 99), + /** + * + * + *
    +     * Mobile inventory type name.
    +     *  Identifies whether a mobile ad came from a regular web page, an AMP web
    +     *  page, or a mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_INVENTORY_TYPE_NAME = 21; + */ + MOBILE_INVENTORY_TYPE_NAME(316, 21), + /** + * + * + *
    +     * Mobile rendering SDK.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rendering SDK value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MOBILE_RENDERING_SDK = 646; + */ + MOBILE_RENDERING_SDK(317, 646), + /** + * + * + *
    +     * Localized name of the Mobile rendering SDK.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rendering SDK" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_RENDERING_SDK_NAME = 647; + */ + MOBILE_RENDERING_SDK_NAME(318, 647), + /** + * + * + *
    +     * The major version of the mobile SDK.
    +     *
    +     *
    +     *
    +     * Corresponds to "App SDK major version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MOBILE_SDK_MAJOR_VERSION = 692; + */ + MOBILE_SDK_MAJOR_VERSION(319, 692), + /** + * + * + *
    +     * The minor version of the mobile SDK.
    +     *
    +     *
    +     *
    +     * Corresponds to "App SDK minor version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MOBILE_SDK_MINOR_VERSION = 693; + */ + MOBILE_SDK_MINOR_VERSION(320, 693), + /** + * + * + *
    +     * SDK version of the mobile device.
    +     *
    +     *
    +     *
    +     * Corresponds to "App SDK version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_SDK_VERSION_NAME = 130; + */ + MOBILE_SDK_VERSION_NAME(321, 130), + /** + * + * + *
    +     * Breaks down reporting data by month and year.
    +     *
    +     *
    +     *
    +     * Corresponds to "Month and year" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MONTH_YEAR = 6; + */ + MONTH_YEAR(322, 6), + /** + * + * + *
    +     * Native ad format ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Native ad format ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * NATIVE_AD_FORMAT_ID = 255; + */ + NATIVE_AD_FORMAT_ID(323, 255), + /** + * + * + *
    +     * Native ad format name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Native ad format" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * NATIVE_AD_FORMAT_NAME = 254; + */ + NATIVE_AD_FORMAT_NAME(324, 254), + /** + * + * + *
    +     * Native style ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Native style ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * NATIVE_STYLE_ID = 253; + */ + NATIVE_STYLE_ID(325, 253), + /** + * + * + *
    +     * Native style name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Native style" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * NATIVE_STYLE_NAME = 252; + */ + NATIVE_STYLE_NAME(326, 252), + /** + * + * + *
    +     * No fill reason category in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "No fill reason category value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * NO_FILL_REASON_CATEGORY = 586; + */ + NO_FILL_REASON_CATEGORY(327, 586), + /** + * + * + *
    +     * No fill reason category name in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "No fill reason category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * NO_FILL_REASON_CATEGORY_NAME = 587; + */ + NO_FILL_REASON_CATEGORY_NAME(328, 587), + /** + * + * + *
    +     * Operating system category.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system category value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * OPERATING_SYSTEM_CATEGORY = 117; + */ + OPERATING_SYSTEM_CATEGORY(329, 117), + /** + * + * + *
    +     * Operating system category name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * OPERATING_SYSTEM_CATEGORY_NAME = 118; + */ + OPERATING_SYSTEM_CATEGORY_NAME(330, 118), + /** + * + * + *
    +     * ID of the operating system version.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * OPERATING_SYSTEM_VERSION_ID = 238; + */ + OPERATING_SYSTEM_VERSION_ID(331, 238), + /** + * + * + *
    +     * Details of the operating system, including version.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * OPERATING_SYSTEM_VERSION_NAME = 237; + */ + OPERATING_SYSTEM_VERSION_NAME(332, 237), + /** + * + * + *
    +     * Enum value of the optimization type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Optimization type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * OPTIMIZATION_TYPE = 639; + */ + OPTIMIZATION_TYPE(333, 639), + /** + * + * + *
    +     * Localized name of the optimization type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Optimization type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * OPTIMIZATION_TYPE_NAME = 640; + */ + OPTIMIZATION_TYPE_NAME(334, 640), + /** + * + * + *
    +     * Order agency.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order agency" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_AGENCY = 150; + */ + ORDER_AGENCY(335, 150), + /** + * + * + *
    +     * Order agency ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order agency ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_AGENCY_ID = 151; + */ + ORDER_AGENCY_ID(336, 151), + /** + * + * + *
    +     * Order booked CPC.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order booked CPC" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ORDER_BOOKED_CPC = 152; + */ + ORDER_BOOKED_CPC(337, 152), + /** + * + * + *
    +     * Order booked CPM.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order booked CPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ORDER_BOOKED_CPM = 153; + */ + ORDER_BOOKED_CPM(338, 153), + /** + * + * + *
    +     * Order delivery status ENUM value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order delivery status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ORDER_DELIVERY_STATUS = 231; + */ + ORDER_DELIVERY_STATUS(339, 231), + /** + * + * + *
    +     * Order delivery status localized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order delivery status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_DELIVERY_STATUS_NAME = 239; + */ + ORDER_DELIVERY_STATUS_NAME(340, 239), + /** + * + * + *
    +     * Order end date.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order end date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * ORDER_END_DATE = 154; + */ + ORDER_END_DATE(341, 154), + /** + * + * + *
    +     * Order end date and time.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order end time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `TIMESTAMP`
    +     * 
    + * + * ORDER_END_DATE_TIME = 155; + */ + ORDER_END_DATE_TIME(342, 155), + /** + * + * + *
    +     * Order external ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order external ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_EXTERNAL_ID = 156; + */ + ORDER_EXTERNAL_ID(343, 156), + /** + * + * + *
    +     * Order ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_ID = 7; + */ + ORDER_ID(344, 7), + /** + * + * + *
    +     * Order labels.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order labels" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * ORDER_LABELS = 170; + */ + ORDER_LABELS(345, 170), + /** + * + * + *
    +     * Order labels IDs.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order label IDs" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * ORDER_LABEL_IDS = 171; + */ + ORDER_LABEL_IDS(346, 171), + /** + * + * + *
    +     * Order lifetime clicks.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order lifetime clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ORDER_LIFETIME_CLICKS = 158; + */ + ORDER_LIFETIME_CLICKS(347, 158), + /** + * + * + *
    +     * Order lifetime impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order lifetime impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ORDER_LIFETIME_IMPRESSIONS = 159; + */ + ORDER_LIFETIME_IMPRESSIONS(348, 159), + /** + * + * + *
    +     * Order name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_NAME = 8; + */ + ORDER_NAME(349, 8), + /** + * + * + *
    +     * Order PO number.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order PO number" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_PO_NUMBER = 160; + */ + ORDER_PO_NUMBER(350, 160), + /** + * + * + *
    +     * Whether the Order is programmatic.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order is programmatic" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * ORDER_PROGRAMMATIC = 157; + */ + ORDER_PROGRAMMATIC(351, 157), + /** + * + * + *
    +     * Order sales person.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order salesperson" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_SALESPERSON = 161; + */ + ORDER_SALESPERSON(352, 161), + /** + * + * + *
    +     * Order sales person ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order salesperson ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_SALESPERSON_ID = 629; + */ + ORDER_SALESPERSON_ID(353, 629), + /** + * + * + *
    +     * Order secondary sales people.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order secondary salespeople" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * ORDER_SECONDARY_SALESPEOPLE = 164; + */ + ORDER_SECONDARY_SALESPEOPLE(354, 164), + /** + * + * + *
    +     * Order secondary sales people ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order secondary salespeople ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * ORDER_SECONDARY_SALESPEOPLE_ID = 165; + */ + ORDER_SECONDARY_SALESPEOPLE_ID(355, 165), + /** + * + * + *
    +     * Order secondary traffickers.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order secondary traffickers" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * ORDER_SECONDARY_TRAFFICKERS = 166; + */ + ORDER_SECONDARY_TRAFFICKERS(356, 166), + /** + * + * + *
    +     * Order secondary traffickers ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order secondary trafficker IDs" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * ORDER_SECONDARY_TRAFFICKERS_ID = 167; + */ + ORDER_SECONDARY_TRAFFICKERS_ID(357, 167), + /** + * + * + *
    +     * Order start date.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order start date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * ORDER_START_DATE = 168; + */ + ORDER_START_DATE(358, 168), + /** + * + * + *
    +     * Order start date and time.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order start time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `TIMESTAMP`
    +     * 
    + * + * ORDER_START_DATE_TIME = 169; + */ + ORDER_START_DATE_TIME(359, 169), + /** + * + * + *
    +     * Order trafficker.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order trafficker" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_TRAFFICKER = 162; + */ + ORDER_TRAFFICKER(360, 162), + /** + * + * + *
    +     * Order trafficker ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order trafficker ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_TRAFFICKER_ID = 163; + */ + ORDER_TRAFFICKER_ID(361, 163), + /** + * + * + *
    +     * Whether the Order end time and end date is set to effectively never
    +     *  end.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order is unlimited end time" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * ORDER_UNLIMITED_END = 203; + */ + ORDER_UNLIMITED_END(362, 203), + /** + * + * + *
    +     * Page path is the part of a page URL that comes after the domain but
    +     *  before the query strings from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page path" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PAGE_PATH = 511; + */ + PAGE_PATH(363, 511), + /** + * + * + *
    +     * Page title (web) and screen class (mobile) returned from Google
    +     *  Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page title and screen class" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PAGE_TITLE_AND_SCREEN_CLASS = 512; + */ + PAGE_TITLE_AND_SCREEN_CLASS(364, 512), + /** + * + * + *
    +     * Page title (web) and screen name (mobile) returned from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page title and screen name" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PAGE_TITLE_AND_SCREEN_NAME = 513; + */ + PAGE_TITLE_AND_SCREEN_NAME(365, 513), + /** + * + * + *
    +     * Placement ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * PLACEMENT_ID = 113; + */ + PLACEMENT_ID(366, 113), + /** + * + * + *
    +     * The full list of placement IDs associated with the ad unit.
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement ID (all)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * PLACEMENT_ID_ALL = 144; + */ + PLACEMENT_ID_ALL(367, 144), + /** + * + * + *
    +     * Placement name
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PLACEMENT_NAME = 114; + */ + PLACEMENT_NAME(368, 114), + /** + * + * + *
    +     * The full list of placement names associated with the ad unit.
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement (all)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PLACEMENT_NAME_ALL = 145; + */ + PLACEMENT_NAME_ALL(369, 145), + /** + * + * + *
    +     * Placement status ENUM value
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PLACEMENT_STATUS = 362; + */ + PLACEMENT_STATUS(370, 362), + /** + * + * + *
    +     * Localized placement status name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PLACEMENT_STATUS_NAME = 364; + */ + PLACEMENT_STATUS_NAME(371, 364), + /** + * + * + *
    +     * The full list of localized placement status names associated with the ad
    +     *  unit.
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement status (all)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PLACEMENT_STATUS_NAME_ALL = 365; + */ + PLACEMENT_STATUS_NAME_ALL(372, 365), + /** + * + * + *
    +     * The criteria ID of the postal code in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Postal code ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * POSTAL_CODE_ID = 455; + */ + POSTAL_CODE_ID(373, 455), + /** + * + * + *
    +     * The name of the postal code in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Postal code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * POSTAL_CODE_NAME = 456; + */ + POSTAL_CODE_NAME(374, 456), + /** + * + * + *
    +     * Indicates the valid PPID (Publisher provided identifier) status on a
    +     *  given ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "PPID status value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PPID_STATUS = 406; + */ + PPID_STATUS(375, 406), + /** + * + * + *
    +     * The localized name of that indicates the valid PPID (Publisher provided
    +     *  identifier) status on a given ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "PPID status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PPID_STATUS_NAME = 407; + */ + PPID_STATUS_NAME(376, 407), + /** + * + * + *
    +     * Predicted viewability score bucket.
    +     *
    +     *
    +     *
    +     * Corresponds to "Predicted viewability bucket value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PREDICTED_VIEWABILITY_BUCKET = 633; + */ + PREDICTED_VIEWABILITY_BUCKET(377, 633), + /** + * + * + *
    +     * The localized name of the predicted viewability score bucket.
    +     *
    +     *
    +     *
    +     * Corresponds to "Predicted viewability bucket" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PREDICTED_VIEWABILITY_BUCKET_NAME = 634; + */ + PREDICTED_VIEWABILITY_BUCKET_NAME(378, 634), + /** + * + * + *
    +     * The ID of the secure signals sent in the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal ID (presented)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * PRESENTED_SECURE_SIGNAL_ID = 495; + */ + PRESENTED_SECURE_SIGNAL_ID(379, 495), + /** + * + * + *
    +     * The name of the secure signals sent in the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal name (presented)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PRESENTED_SECURE_SIGNAL_NAME = 496; + */ + PRESENTED_SECURE_SIGNAL_NAME(380, 496), + /** + * + * + *
    +     * The ID type selected for personalization.
    +     *
    +     *
    +     *
    +     * Corresponds to "Primary personalization ID type value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PRIMARY_PERSONALIZATION_ID_TYPE = 408; + */ + PRIMARY_PERSONALIZATION_ID_TYPE(381, 408), + /** + * + * + *
    +     * The localized name of the ID type selected for personalization.
    +     *
    +     *
    +     *
    +     * Corresponds to "Primary personalization ID type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PRIMARY_PERSONALIZATION_ID_TYPE_NAME = 409; + */ + PRIMARY_PERSONALIZATION_ID_TYPE_NAME(382, 409), + /** + * + * + *
    +     * Programmatic channel.
    +     *  The type of transaction that occurred in Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic channel value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PROGRAMMATIC_CHANNEL = 13; + */ + PROGRAMMATIC_CHANNEL(385, 13), + /** + * + * + *
    +     * Programmatic channel name.
    +     *  The type of transaction that occurred in Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic channel" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PROGRAMMATIC_CHANNEL_NAME = 14; + */ + PROGRAMMATIC_CHANNEL_NAME(386, 14), + /** + * + * + *
    +     * External code ID of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals external code (all levels)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE = 410; + */ + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE(387, 410), + /** + * + * + *
    +     * The ancestor chain of IDs of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals ID (all levels)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS = 546; + */ + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS(388, 546), + /** + * + * + *
    +     * The ancestor chain of names of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (all levels)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME = 412; + */ + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME(389, 412), + /** + * + * + *
    +     * Tier of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals tier (all levels)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER = 413; + */ + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER(390, 413), + /** + * + * + *
    +     * Type of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals type (all levels)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE = 414; + */ + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE(391, 414), + /** + * + * + *
    +     * External code ID of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals external code (delivered)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE = 425; + */ + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE(392, 425), + /** + * + * + *
    +     * The ancestor chain of IDs of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals ID (delivered)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS = 545; + */ + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS(393, 545), + /** + * + * + *
    +     * The ancestor chain of names of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (delivered)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME = 427; + */ + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME(394, 427), + /** + * + * + *
    +     * Tier of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals tier (delivered)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER = 428; + */ + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER(395, 428), + /** + * + * + *
    +     * Type of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals type (delivered)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE = 429; + */ + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE(396, 429), + /** + * + * + *
    +     * External code ID of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals external code (top level)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE = 415; + */ + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE(397, 415), + /** + * + * + *
    +     * ID of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals ID (top level)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID = 416; + */ + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID(398, 416), + /** + * + * + *
    +     * Name of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (top level)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME = 417; + */ + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME(399, 417), + /** + * + * + *
    +     * Tier of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals tier (top level)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER = 418; + */ + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER(400, 418), + /** + * + * + *
    +     * Type of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals type (top level)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE = 419; + */ + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE(401, 419), + /** + * + * + *
    +     * Data provider ID associated with a publisher provided signal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (data provider ID)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID = 136; + */ + PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID(402, 136), + /** + * + * + *
    +     * Data provider name associated with a publisher provided signal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (data provider)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME = 137; + */ + PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME(403, 137), + /** + * + * + *
    +     * The criteria ID of the region (for example, US state) in which the ad
    +     *  served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Region ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * REGION_ID = 457; + */ + REGION_ID(404, 457), + /** + * + * + *
    +     * The name of the region (for example, US state) in which the ad
    +     *  served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Region" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * REGION_NAME = 458; + */ + REGION_NAME(405, 458), + /** + * + * + *
    +     * The rejection class category in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejection class category value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * REJECTION_CLASS_CATEGORY = 590; + */ + REJECTION_CLASS_CATEGORY(406, 590), + /** + * + * + *
    +     * The rejection class category name in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejection class category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * REJECTION_CLASS_CATEGORY_NAME = 591; + */ + REJECTION_CLASS_CATEGORY_NAME(407, 591), + /** + * + * + *
    +     * The size of a rendered creative, It can differ with the creative's size
    +     *  if a creative is shown in an ad slot of a different size.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rendered creative size" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * RENDERED_CREATIVE_SIZE = 343; + */ + RENDERED_CREATIVE_SIZE(408, 343), + /** + * + * + *
    +     * Inventory Requested Ad Sizes dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Requested ad sizes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * REQUESTED_AD_SIZES = 352; + */ + REQUESTED_AD_SIZES(409, 352), + /** + * + * + *
    +     * Request type ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Request type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * REQUEST_TYPE = 146; + */ + REQUEST_TYPE(410, 146), + /** + * + * + *
    +     * Request type locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Request type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * REQUEST_TYPE_NAME = 147; + */ + REQUEST_TYPE_NAME(411, 147), + /** + * + * + *
    +     * Indicates if a request was eligible for server-side unwrapping.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping eligible" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; + */ + SERVER_SIDE_UNWRAPPING_ELIGIBLE(412, 597), + /** + * + * + *
    +     * The serving restriction mode for privacy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Serving restriction value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * SERVING_RESTRICTION = 631; + */ + SERVING_RESTRICTION(413, 631), + /** + * + * + *
    +     * The localized name of the serving restriction mode for privacy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Serving restriction" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * SERVING_RESTRICTION_NAME = 632; + */ + SERVING_RESTRICTION_NAME(414, 632), + /** + * + * + *
    +     * Information about domain or subdomains.
    +     *
    +     *
    +     *
    +     * Corresponds to "Site" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * SITE = 387; + */ + SITE(415, 387), + /** + * + * + *
    +     * The ID of the browser, device or other environment into which a line item
    +     *  or creative was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeting ID" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * TARGETING_ID = 232; + */ + TARGETING_ID(416, 232), + /** + * + * + *
    +     * Information about the browser, device and other environments into which
    +     *  a line item or creative was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeting" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TARGETING_NAME = 233; + */ + TARGETING_NAME(417, 233), + /** + * + * + *
    +     * The way in which advertisers targeted their ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeting type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * TARGETING_TYPE = 385; + */ + TARGETING_TYPE(418, 385), + /** + * + * + *
    +     * The localized name of the way in which advertisers targeted their ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeting type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TARGETING_TYPE_NAME = 386; + */ + TARGETING_TYPE_NAME(419, 386), + /** + * + * + *
    +     * Whether a third-party cookie or device ID was present on a given ad
    +     *  request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Third-party ID status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * THIRD_PARTY_ID_STATUS = 402; + */ + THIRD_PARTY_ID_STATUS(420, 402), + /** + * + * + *
    +     * The localized name of whether a third-party cookie or device ID was
    +     *  present on a given ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Third-party ID status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * THIRD_PARTY_ID_STATUS_NAME = 403; + */ + THIRD_PARTY_ID_STATUS_NAME(421, 403), + /** + * + * + *
    +     * Reports the status of Topics in the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Topics status value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * TOPICS_STATUS = 504; + */ + TOPICS_STATUS(422, 504), + /** + * + * + *
    +     * The localized name of the status of Topics in the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Topics status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TOPICS_STATUS_NAME = 505; + */ + TOPICS_STATUS_NAME(423, 505), + /** + * + * + *
    +     * Inventory top private domain dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Domain" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TOP_PRIVATE_DOMAIN = 444; + */ + TOP_PRIVATE_DOMAIN(424, 444), + /** + * + * + *
    +     * Inventory Traffic source dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Traffic source value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * TRAFFIC_SOURCE = 388; + */ + TRAFFIC_SOURCE(425, 388), + /** + * + * + *
    +     * Inventory Traffic source dimension name
    +     *
    +     *
    +     *
    +     * Corresponds to "Traffic source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TRAFFIC_SOURCE_NAME = 389; + */ + TRAFFIC_SOURCE_NAME(426, 389), + /** + * + * + *
    +     * Unified pricing rule ID dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Unified pricing rule ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * UNIFIED_PRICING_RULE_ID = 393; + */ + UNIFIED_PRICING_RULE_ID(427, 393), + /** + * + * + *
    +     * Unified pricing rule name dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Unified pricing rule" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * UNIFIED_PRICING_RULE_NAME = 394; + */ + UNIFIED_PRICING_RULE_NAME(428, 394), + /** + * + * + *
    +     * A URL defined under a publisher's inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "URL" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * URL = 506; + */ + URL(429, 506), + /** + * + * + *
    +     * A URL defined under a publisher's inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "URL ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * URL_ID = 507; + */ + URL_ID(430, 507), + /** + * + * + *
    +     * Enum value for the entitlement source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Entitlement source value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * USER_MESSAGES_ENTITLEMENT_SOURCE = 635; + */ + USER_MESSAGES_ENTITLEMENT_SOURCE(431, 635), + /** + * + * + *
    +     * The localized name of the entitlement source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Entitlement source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * USER_MESSAGES_ENTITLEMENT_SOURCE_NAME = 636; + */ + USER_MESSAGES_ENTITLEMENT_SOURCE_NAME(432, 636), + /** + * + * + *
    +     * Targeting criteria ID for the operating system group. Used for User
    +     *  Messages reports.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system group ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID = 637; + */ + USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID(433, 637), + /** + * + * + *
    +     * The name of the operating system group. Used for User Messages reports.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system group" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME = 638; + */ + USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME(434, 638), + /** + * + * + *
    +     * The VAST version of the creative that is returned for an ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Vast version value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VAST_VERSION = 554; + */ + VAST_VERSION(435, 554), + /** + * + * + *
    +     * The localized name of the VAST version of the creative that is returned
    +     *  for an ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Vast version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VAST_VERSION_NAME = 555; + */ + VAST_VERSION_NAME(436, 555), + /** + * + * + *
    +     * The break type of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad break type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_AD_BREAK_TYPE = 556; + */ + VIDEO_AD_BREAK_TYPE(437, 556), + /** + * + * + *
    +     * The localized name of the break type of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad break type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_BREAK_TYPE_NAME = 557; + */ + VIDEO_AD_BREAK_TYPE_NAME(438, 557), + /** + * + * + *
    +     * Video ad duration
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad duration" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_DURATION = 450; + */ + VIDEO_AD_DURATION(439, 450), + /** + * + * + *
    +     * The name of the video ad formats rule used to control the ad formats
    +     *  eligible for your inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad formats rule" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_FORMATS_RULE = 561; + */ + VIDEO_AD_FORMATS_RULE(440, 561), + /** + * + * + *
    +     * The ID of the video ad formats rule used to control the ad formats
    +     *  eligible for your inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad formats rule ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * VIDEO_AD_FORMATS_RULE_ID = 560; + */ + VIDEO_AD_FORMATS_RULE_ID(441, 560), + /** + * + * + *
    +     * The duration of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad request duration value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_AD_REQUEST_DURATION = 558; + */ + VIDEO_AD_REQUEST_DURATION(442, 558), + /** + * + * + *
    +     * The localized name of the midpoint of the duration of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad request duration midpoint" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME = 751; + */ + VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME(443, 751), + /** + * + * + *
    +     * The localized name of the duration of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad request duration" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_REQUEST_DURATION_NAME = 559; + */ + VIDEO_AD_REQUEST_DURATION_NAME(444, 559), + /** + * + * + *
    +     * The video ad request source enum.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad request source value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_AD_REQUEST_SOURCE = 438; + */ + VIDEO_AD_REQUEST_SOURCE(445, 438), + /** + * + * + *
    +     * The localized name of the video ad request source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad request source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_REQUEST_SOURCE_NAME = 439; + */ + VIDEO_AD_REQUEST_SOURCE_NAME(446, 439), + /** + * + * + *
    +     * Video ad type
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_AD_TYPE = 432; + */ + VIDEO_AD_TYPE(447, 432), + /** + * + * + *
    +     * Video ad type localized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_TYPE_NAME = 433; + */ + VIDEO_AD_TYPE_NAME(448, 433), + /** + * + * + *
    +     * The continuous play type of the video ad impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video continuous play type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_CONTINUOUS_PLAY_TYPE = 721; + */ + VIDEO_CONTINUOUS_PLAY_TYPE(449, 721), + /** + * + * + *
    +     * Video continuous play type localized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video continuous play type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_CONTINUOUS_PLAY_TYPE_NAME = 722; + */ + VIDEO_CONTINUOUS_PLAY_TYPE_NAME(450, 722), + /** + * + * + *
    +     * Fallback position of the video ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Fallback position" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_FALLBACK_POSITION = 530; + */ + VIDEO_FALLBACK_POSITION(451, 530), + /** + * + * + *
    +     * The performance of the video ad inventory broken out by source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video measurement source value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_MEASUREMENT_SOURCE = 601; + */ + VIDEO_MEASUREMENT_SOURCE(452, 601), + /** + * + * + *
    +     * Video measurement source localized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video measurement source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_MEASUREMENT_SOURCE_NAME = 602; + */ + VIDEO_MEASUREMENT_SOURCE_NAME(453, 602), + /** + * + * + *
    +     * The video placement enum as defined by ADCOM 1.0-202303.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video placement value (new)" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_PLCMT = 172; + */ + VIDEO_PLCMT(454, 172), + /** + * + * + *
    +     * The localized name of the video placement as defined by ADCOM 1.0-202303.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video placement (new)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_PLCMT_NAME = 173; + */ + VIDEO_PLCMT_NAME(455, 173), + /** + * + * + *
    +     * The position in the video pod. For example 0, 1, 2, etc.
    +     *
    +     *
    +     *
    +     * Corresponds to "Position in pod" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_POSITION_IN_POD = 538; + */ + VIDEO_POSITION_IN_POD(456, 538), + /** + * + * + *
    +     * The position of the pod in the video stream. For example pre-roll,
    +     *  mid-roll, post-roll.
    +     *
    +     *
    +     *
    +     * Corresponds to "Position of pod" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_POSITION_OF_POD = 539; + */ + VIDEO_POSITION_OF_POD(457, 539), + /** + * + * + *
    +     * The video SDK version enum.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video SDK version value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_SDK_VERSION = 440; + */ + VIDEO_SDK_VERSION(458, 440), + /** + * + * + *
    +     * The localized name of the video SDK version.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video SDK version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_SDK_VERSION_NAME = 441; + */ + VIDEO_SDK_VERSION_NAME(459, 441), + /** + * + * + *
    +     * Video stitcher type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video stitcher type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_STITCHER_TYPE = 752; + */ + VIDEO_STITCHER_TYPE(460, 752), + /** + * + * + *
    +     * Localized name of the video stitcher type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video stitcher type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_STITCHER_TYPE_NAME = 753; + */ + VIDEO_STITCHER_TYPE_NAME(461, 753), + /** + * + * + *
    +     * Breaks down reporting data by week of the year.
    +     *
    +     *
    +     *
    +     * Corresponds to "Week" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * WEEK = 5; + */ + WEEK(462, 5), + /** + * + * + *
    +     * Name of the company within a yield group
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YIELD_GROUP_BUYER_NAME = 184; + */ + YIELD_GROUP_BUYER_NAME(463, 184), + /** + * + * + *
    +     * Tag of the company within a yield group.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group buyer tag" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YIELD_GROUP_BUYER_TAG_NAME = 627; + */ + YIELD_GROUP_BUYER_TAG_NAME(464, 627), + /** + * + * + *
    +     * ID of the group of ad networks or exchanges used for Mediation and Open
    +     *  Bidding
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * YIELD_GROUP_ID = 182; + */ + YIELD_GROUP_ID(465, 182), + /** + * + * + *
    +     * Name of the group of ad networks or exchanges used for Mediation and Open
    +     *  Bidding
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YIELD_GROUP_NAME = 183; + */ + YIELD_GROUP_NAME(466, 183), + /** + * + * + *
    +     * YouTube instream ad duration bucket.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad duration value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * YOUTUBE_AD_DURATION_BUCKET = 430; + */ + YOUTUBE_AD_DURATION_BUCKET(467, 430), + /** + * + * + *
    +     * YouTube instream ad duration bucket name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad duration" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YOUTUBE_AD_DURATION_BUCKET_NAME = 431; + */ + YOUTUBE_AD_DURATION_BUCKET_NAME(468, 431), + /** + * + * + *
    +     * YouTube instream Ad Type.
    +     *
    +     *
    +     *
    +     * Corresponds to "YouTube ad type ID" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * YOUTUBE_AD_TYPE = 399; + */ + YOUTUBE_AD_TYPE(469, 399), + /** + * + * + *
    +     * YouTube instream Ad Type locallized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "YouTube ad type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YOUTUBE_AD_TYPE_NAME = 400; + */ + YOUTUBE_AD_TYPE_NAME(470, 400), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; + */ + LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID(471, 10000), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; + */ + LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID(472, 10001), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; + */ + LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID(473, 10002), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; + */ + LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID(474, 10003), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; + */ + LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID(475, 10004), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; + */ + LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID(476, 10005), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; + */ + LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID(477, 10006), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; + */ + LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID(478, 10007), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; + */ + LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID(479, 10008), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; + */ + LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID(480, 10009), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; + */ + LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID(481, 10010), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; + */ + LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID(482, 10011), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; + */ + LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID(483, 10012), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; + */ + LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID(484, 10013), + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; + */ + LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID(485, 10014), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 0 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; + */ + LINE_ITEM_CUSTOM_FIELD_0_VALUE(486, 11000), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 1 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; + */ + LINE_ITEM_CUSTOM_FIELD_1_VALUE(487, 11001), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 2 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; + */ + LINE_ITEM_CUSTOM_FIELD_2_VALUE(488, 11002), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 3 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; + */ + LINE_ITEM_CUSTOM_FIELD_3_VALUE(489, 11003), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 4 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; + */ + LINE_ITEM_CUSTOM_FIELD_4_VALUE(490, 11004), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 5 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; + */ + LINE_ITEM_CUSTOM_FIELD_5_VALUE(491, 11005), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 6 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; + */ + LINE_ITEM_CUSTOM_FIELD_6_VALUE(492, 11006), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 7 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; + */ + LINE_ITEM_CUSTOM_FIELD_7_VALUE(493, 11007), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 8 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; + */ + LINE_ITEM_CUSTOM_FIELD_8_VALUE(494, 11008), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 9 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; + */ + LINE_ITEM_CUSTOM_FIELD_9_VALUE(495, 11009), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 10 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; + */ + LINE_ITEM_CUSTOM_FIELD_10_VALUE(496, 11010), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 11 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; + */ + LINE_ITEM_CUSTOM_FIELD_11_VALUE(497, 11011), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 12 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; + */ + LINE_ITEM_CUSTOM_FIELD_12_VALUE(498, 11012), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 13 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; + */ + LINE_ITEM_CUSTOM_FIELD_13_VALUE(499, 11013), + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 14 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; + */ + LINE_ITEM_CUSTOM_FIELD_14_VALUE(500, 11014), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; + */ + ORDER_CUSTOM_FIELD_0_OPTION_ID(501, 12000), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; + */ + ORDER_CUSTOM_FIELD_1_OPTION_ID(502, 12001), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; + */ + ORDER_CUSTOM_FIELD_2_OPTION_ID(503, 12002), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; + */ + ORDER_CUSTOM_FIELD_3_OPTION_ID(504, 12003), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; + */ + ORDER_CUSTOM_FIELD_4_OPTION_ID(505, 12004), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; + */ + ORDER_CUSTOM_FIELD_5_OPTION_ID(506, 12005), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; + */ + ORDER_CUSTOM_FIELD_6_OPTION_ID(507, 12006), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; + */ + ORDER_CUSTOM_FIELD_7_OPTION_ID(508, 12007), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; + */ + ORDER_CUSTOM_FIELD_8_OPTION_ID(509, 12008), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; + */ + ORDER_CUSTOM_FIELD_9_OPTION_ID(510, 12009), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; + */ + ORDER_CUSTOM_FIELD_10_OPTION_ID(511, 12010), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; + */ + ORDER_CUSTOM_FIELD_11_OPTION_ID(512, 12011), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; + */ + ORDER_CUSTOM_FIELD_12_OPTION_ID(513, 12012), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; + */ + ORDER_CUSTOM_FIELD_13_OPTION_ID(514, 12013), + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; + */ + ORDER_CUSTOM_FIELD_14_OPTION_ID(515, 12014), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 0 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_0_VALUE = 13000; + */ + ORDER_CUSTOM_FIELD_0_VALUE(516, 13000), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 1 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_1_VALUE = 13001; + */ + ORDER_CUSTOM_FIELD_1_VALUE(517, 13001), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 2 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_2_VALUE = 13002; + */ + ORDER_CUSTOM_FIELD_2_VALUE(518, 13002), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 3 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_3_VALUE = 13003; + */ + ORDER_CUSTOM_FIELD_3_VALUE(519, 13003), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 4 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_4_VALUE = 13004; + */ + ORDER_CUSTOM_FIELD_4_VALUE(520, 13004), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 5 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_5_VALUE = 13005; + */ + ORDER_CUSTOM_FIELD_5_VALUE(521, 13005), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 6 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_6_VALUE = 13006; + */ + ORDER_CUSTOM_FIELD_6_VALUE(522, 13006), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 7 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_7_VALUE = 13007; + */ + ORDER_CUSTOM_FIELD_7_VALUE(523, 13007), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 8 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_8_VALUE = 13008; + */ + ORDER_CUSTOM_FIELD_8_VALUE(524, 13008), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 9 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_9_VALUE = 13009; + */ + ORDER_CUSTOM_FIELD_9_VALUE(525, 13009), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 10 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_10_VALUE = 13010; + */ + ORDER_CUSTOM_FIELD_10_VALUE(526, 13010), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 11 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_11_VALUE = 13011; + */ + ORDER_CUSTOM_FIELD_11_VALUE(527, 13011), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 12 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_12_VALUE = 13012; + */ + ORDER_CUSTOM_FIELD_12_VALUE(528, 13012), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 13 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_13_VALUE = 13013; + */ + ORDER_CUSTOM_FIELD_13_VALUE(529, 13013), + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 14 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_14_VALUE = 13014; + */ + ORDER_CUSTOM_FIELD_14_VALUE(530, 13014), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; + */ + CREATIVE_CUSTOM_FIELD_0_OPTION_ID(531, 14000), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; + */ + CREATIVE_CUSTOM_FIELD_1_OPTION_ID(532, 14001), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; + */ + CREATIVE_CUSTOM_FIELD_2_OPTION_ID(533, 14002), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; + */ + CREATIVE_CUSTOM_FIELD_3_OPTION_ID(534, 14003), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; + */ + CREATIVE_CUSTOM_FIELD_4_OPTION_ID(535, 14004), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; + */ + CREATIVE_CUSTOM_FIELD_5_OPTION_ID(536, 14005), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; + */ + CREATIVE_CUSTOM_FIELD_6_OPTION_ID(537, 14006), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; + */ + CREATIVE_CUSTOM_FIELD_7_OPTION_ID(538, 14007), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; + */ + CREATIVE_CUSTOM_FIELD_8_OPTION_ID(539, 14008), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; + */ + CREATIVE_CUSTOM_FIELD_9_OPTION_ID(540, 14009), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; + */ + CREATIVE_CUSTOM_FIELD_10_OPTION_ID(541, 14010), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; + */ + CREATIVE_CUSTOM_FIELD_11_OPTION_ID(542, 14011), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; + */ + CREATIVE_CUSTOM_FIELD_12_OPTION_ID(543, 14012), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; + */ + CREATIVE_CUSTOM_FIELD_13_OPTION_ID(544, 14013), + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; + */ + CREATIVE_CUSTOM_FIELD_14_OPTION_ID(545, 14014), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 0 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; + */ + CREATIVE_CUSTOM_FIELD_0_VALUE(546, 15000), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 1 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; + */ + CREATIVE_CUSTOM_FIELD_1_VALUE(547, 15001), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 2 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; + */ + CREATIVE_CUSTOM_FIELD_2_VALUE(548, 15002), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 3 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; + */ + CREATIVE_CUSTOM_FIELD_3_VALUE(549, 15003), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 4 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; + */ + CREATIVE_CUSTOM_FIELD_4_VALUE(550, 15004), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 5 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; + */ + CREATIVE_CUSTOM_FIELD_5_VALUE(551, 15005), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 6 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; + */ + CREATIVE_CUSTOM_FIELD_6_VALUE(552, 15006), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 7 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; + */ + CREATIVE_CUSTOM_FIELD_7_VALUE(553, 15007), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 8 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; + */ + CREATIVE_CUSTOM_FIELD_8_VALUE(554, 15008), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 9 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; + */ + CREATIVE_CUSTOM_FIELD_9_VALUE(555, 15009), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 10 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; + */ + CREATIVE_CUSTOM_FIELD_10_VALUE(556, 15010), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 11 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; + */ + CREATIVE_CUSTOM_FIELD_11_VALUE(557, 15011), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 12 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; + */ + CREATIVE_CUSTOM_FIELD_12_VALUE(558, 15012), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 13 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; + */ + CREATIVE_CUSTOM_FIELD_13_VALUE(559, 15013), + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 14 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; + */ + CREATIVE_CUSTOM_FIELD_14_VALUE(560, 15014), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID(561, 16000), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID(562, 16001), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID(563, 16002), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID(564, 16003), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID(565, 16004), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID(566, 16005), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID(567, 16006), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID(568, 16007), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID(569, 16008), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID(570, 16009), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID(571, 16010), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID(572, 16011), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID(573, 16012), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID(574, 16013), + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID(575, 16014), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 0 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE(576, 17000), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 1 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE(577, 17001), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 2 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE(578, 17002), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 3 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE(579, 17003), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 4 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE(580, 17004), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 5 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE(581, 17005), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 6 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE(582, 17006), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 7 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE(583, 17007), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 8 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE(584, 17008), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 9 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE(585, 17009), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 10 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE(586, 17010), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 11 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE(587, 17011), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 12 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE(588, 17012), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 13 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE(589, 17013), + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 14 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; + */ + BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE(590, 17014), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 0 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; + */ + BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID(591, 18000), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 1 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; + */ + BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID(592, 18001), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 2 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; + */ + BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID(593, 18002), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 3 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; + */ + BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID(594, 18003), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 4 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; + */ + BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID(595, 18004), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 5 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; + */ + BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID(596, 18005), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 6 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; + */ + BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID(597, 18006), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 7 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; + */ + BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID(598, 18007), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 8 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; + */ + BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID(599, 18008), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 9 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; + */ + BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID(600, 18009), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 10 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; + */ + BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID(601, 18010), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 11 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; + */ + BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID(602, 18011), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 12 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; + */ + BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID(603, 18012), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 13 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; + */ + BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID(604, 18013), + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 14 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; + */ + BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID(605, 18014), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID
    +     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 0 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; + */ + BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE(606, 19000), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 1 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; + */ + BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE(607, 19001), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 2 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; + */ + BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE(608, 19002), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 3 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; + */ + BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE(609, 19003), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 4 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; + */ + BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE(610, 19004), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 5 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; + */ + BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE(611, 19005), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 6 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; + */ + BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE(612, 19006), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 7 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; + */ + BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE(613, 19007), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 8 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; + */ + BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE(614, 19008), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 9 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; + */ + BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE(615, 19009), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 10 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; + */ + BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE(616, 19010), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 11 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; + */ + BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE(617, 19011), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 12 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; + */ + BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE(618, 19012), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 13 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; + */ + BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE(619, 19013), + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 14 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; + */ + BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE(620, 19014), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID(621, 20000), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID(622, 20001), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID(623, 20002), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID(624, 20003), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID(625, 20004), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID(626, 20005), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID(627, 20006), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID(628, 20007), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID(629, 20008), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID(630, 20009), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID(631, 20010), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID(632, 20011), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID(633, 20012), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID(634, 20013), + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID(635, 20014), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID
    +     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 0 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE(636, 21000), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 1 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE(637, 21001), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 2 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE(638, 21002), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 3 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE(639, 21003), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 4 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE(640, 21004), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 5 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE(641, 21005), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 6 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE(642, 21006), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 7 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE(643, 21007), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 8 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE(644, 21008), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 9 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE(645, 21009), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 10 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE(646, 21010), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 11 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE(647, 21011), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 12 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE(648, 21012), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 13 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE(649, 21013), + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 14 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; + */ + BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE(650, 21014), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 0 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_0_VALUE_ID = 100000; + */ + CUSTOM_DIMENSION_0_VALUE_ID(651, 100000), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 1 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_1_VALUE_ID = 100001; + */ + CUSTOM_DIMENSION_1_VALUE_ID(652, 100001), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 2 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_2_VALUE_ID = 100002; + */ + CUSTOM_DIMENSION_2_VALUE_ID(653, 100002), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 3 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_3_VALUE_ID = 100003; + */ + CUSTOM_DIMENSION_3_VALUE_ID(654, 100003), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 4 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_4_VALUE_ID = 100004; + */ + CUSTOM_DIMENSION_4_VALUE_ID(655, 100004), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 5 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_5_VALUE_ID = 100005; + */ + CUSTOM_DIMENSION_5_VALUE_ID(656, 100005), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 6 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_6_VALUE_ID = 100006; + */ + CUSTOM_DIMENSION_6_VALUE_ID(657, 100006), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_7_VALUE_ID = 100007; + */ + CUSTOM_DIMENSION_7_VALUE_ID(658, 100007), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 8 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_8_VALUE_ID = 100008; + */ + CUSTOM_DIMENSION_8_VALUE_ID(659, 100008), + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_9_VALUE_ID = 100009; + */ + CUSTOM_DIMENSION_9_VALUE_ID(660, 100009), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 0 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_0_VALUE = 101000; + */ + CUSTOM_DIMENSION_0_VALUE(661, 101000), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 1 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_1_VALUE = 101001; + */ + CUSTOM_DIMENSION_1_VALUE(662, 101001), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 2 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_2_VALUE = 101002; + */ + CUSTOM_DIMENSION_2_VALUE(663, 101002), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 3 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_3_VALUE = 101003; + */ + CUSTOM_DIMENSION_3_VALUE(664, 101003), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 4 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_4_VALUE = 101004; + */ + CUSTOM_DIMENSION_4_VALUE(665, 101004), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 5 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_5_VALUE = 101005; + */ + CUSTOM_DIMENSION_5_VALUE(666, 101005), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 6 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_6_VALUE = 101006; + */ + CUSTOM_DIMENSION_6_VALUE(667, 101006), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 7 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_7_VALUE = 101007; + */ + CUSTOM_DIMENSION_7_VALUE(668, 101007), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 8 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_8_VALUE = 101008; + */ + CUSTOM_DIMENSION_8_VALUE(669, 101008), + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_9_VALUE = 101009; + */ + CUSTOM_DIMENSION_9_VALUE(670, 101009), + UNRECOGNIZED(-1, -1), + ; + + /** + * + * + *
    +     * Deprecated. Dimension has been renamed to `DEAL_BUYER_ID`.
    +     * The server will normalize any requests using this value to
    +     * `DEAL_BUYER_ID`.
    +     * This value will be removed on or after October 10, 2025.
    +     * 
    + * + * PROGRAMMATIC_BUYER_ID = 240 [deprecated = true]; + */ + public static final Dimension PROGRAMMATIC_BUYER_ID = DEAL_BUYER_ID; + + /** + * + * + *
    +     * Deprecated. Dimension has been renamed to `DEAL_BUYER_NAME`.
    +     * The server will normalize any requests using this value to
    +     * `DEAL_BUYER_NAME`.
    +     * This value will be removed on or after October 10, 2025.
    +     * 
    + * + * PROGRAMMATIC_BUYER_NAME = 241 [deprecated = true]; + */ + public static final Dimension PROGRAMMATIC_BUYER_NAME = DEAL_BUYER_NAME; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * DIMENSION_UNSPECIFIED = 0; + */ + public static final int DIMENSION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     *  The measurement source of a video ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View measurement source value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ACTIVE_VIEW_MEASUREMENT_SOURCE = 575; + */ + public static final int ACTIVE_VIEW_MEASUREMENT_SOURCE_VALUE = 575; + + /** + * + * + *
    +     * Active View measurement source localized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View measurement source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME = 576; + */ + public static final int ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME_VALUE = 576; + + /** + * + * + *
    +     * Advertiser credit status ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser credit status value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ADVERTISER_CREDIT_STATUS = 475; + */ + public static final int ADVERTISER_CREDIT_STATUS_VALUE = 475; + + /** + * + * + *
    +     * Advertiser credit status locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser credit status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_CREDIT_STATUS_NAME = 476; + */ + public static final int ADVERTISER_CREDIT_STATUS_NAME_VALUE = 476; + + /** + * + * + *
    +     * The domain name of the advertiser.
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser domain" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_DOMAIN_NAME = 242; + */ + public static final int ADVERTISER_DOMAIN_NAME_VALUE = 242; + + /** + * + * + *
    +     * The ID used in an external system for advertiser identification
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser external ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_EXTERNAL_ID = 228; + */ + public static final int ADVERTISER_EXTERNAL_ID_VALUE = 228; + + /** + * + * + *
    +     * The ID of an advertiser company assigned to an order
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ADVERTISER_ID = 131; + */ + public static final int ADVERTISER_ID_VALUE = 131; + + /** + * + * + *
    +     * Labels applied to the advertiser
    +     *  can be used for either competitive exclusion or ad exclusion
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser labels" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * ADVERTISER_LABELS = 230; + */ + public static final int ADVERTISER_LABELS_VALUE = 230; + + /** + * + * + *
    +     * Label ids applied to the advertiser
    +     *  can be used for either competitive exclusion or ad exclusion
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser label IDs" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * ADVERTISER_LABEL_IDS = 229; + */ + public static final int ADVERTISER_LABEL_IDS_VALUE = 229; + + /** + * + * + *
    +     * The name of an advertiser company assigned to an order
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_NAME = 132; + */ + public static final int ADVERTISER_NAME_VALUE = 132; + + /** + * + * + *
    +     * The name of the contact associated with an advertiser company
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser primary contact" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_PRIMARY_CONTACT = 227; + */ + public static final int ADVERTISER_PRIMARY_CONTACT_VALUE = 227; + + /** + * + * + *
    +     * Advertiser status ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ADVERTISER_STATUS = 471; + */ + public static final int ADVERTISER_STATUS_VALUE = 471; + + /** + * + * + *
    +     * Advertiser status locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_STATUS_NAME = 472; + */ + public static final int ADVERTISER_STATUS_NAME_VALUE = 472; + + /** + * + * + *
    +     * Advertiser type ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ADVERTISER_TYPE = 473; + */ + public static final int ADVERTISER_TYPE_VALUE = 473; + + /** + * + * + *
    +     * Advertiser type locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_TYPE_NAME = 474; + */ + public static final int ADVERTISER_TYPE_NAME_VALUE = 474; + + /** + * + * + *
    +     * The category of an advertiser, such as Arts & Entertainment or Travel &
    +     *  Tourism.
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser vertical" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADVERTISER_VERTICAL = 580; + */ + public static final int ADVERTISER_VERTICAL_VALUE = 580; + + /** + * + * + *
    +     * Classification of different Ad Exchange products.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange product value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ADX_PRODUCT = 499; + */ + public static final int ADX_PRODUCT_VALUE = 499; + + /** + * + * + *
    +     * Localized name of the classification of different Ad Exchange
    +     *  products.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange product" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ADX_PRODUCT_NAME = 500; + */ + public static final int ADX_PRODUCT_NAME_VALUE = 500; + + /** + * + * + *
    +     * Ad experiences type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad experiences value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AD_EXPERIENCES_TYPE = 641; + */ + public static final int AD_EXPERIENCES_TYPE_VALUE = 641; + + /** + * + * + *
    +     * Localized name of the Ad experiences type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad experiences" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_EXPERIENCES_TYPE_NAME = 642; + */ + public static final int AD_EXPERIENCES_TYPE_NAME_VALUE = 642; + + /** + * + * + *
    +     * Shows an ENUM value describing whether a given piece of publisher
    +     *  inventory was above (ATF) or below the fold (BTF) of a page.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad location value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AD_LOCATION = 390; + */ + public static final int AD_LOCATION_VALUE = 390; + + /** + * + * + *
    +     * Shows a localized string describing whether a given piece of publisher
    +     *  inventory was above (ATF) or below the fold (BTF) of a page.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad location" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_LOCATION_NAME = 391; + */ + public static final int AD_LOCATION_NAME_VALUE = 391; + + /** + * + * + *
    +     * The domain of the ad technology provider associated with the bid.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad technology provider domain" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_TECHNOLOGY_PROVIDER_DOMAIN = 620; + */ + public static final int AD_TECHNOLOGY_PROVIDER_DOMAIN_VALUE = 620; + + /** + * + * + *
    +     * The ID of the ad technology provider associated with the bid.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad technology provider ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_TECHNOLOGY_PROVIDER_ID = 621; + */ + public static final int AD_TECHNOLOGY_PROVIDER_ID_VALUE = 621; + + /** + * + * + *
    +     * The name of the ad technology provider associated with the bid.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad technology provider" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_TECHNOLOGY_PROVIDER_NAME = 622; + */ + public static final int AD_TECHNOLOGY_PROVIDER_NAME_VALUE = 622; + + /** + * + * + *
    +     * Segmentation of ad types.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad type value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AD_TYPE = 497; + */ + public static final int AD_TYPE_VALUE = 497; + + /** + * + * + *
    +     * Localized name of the ad type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_TYPE_NAME = 498; + */ + public static final int AD_TYPE_NAME_VALUE = 498; + + /** + * + * + *
    +     * The code of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE = 64; + */ + public static final int AD_UNIT_CODE_VALUE = 64; + + /** + * + * + *
    +     * The code of the first level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 1" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_1 = 65; + */ + public static final int AD_UNIT_CODE_LEVEL_1_VALUE = 65; + + /** + * + * + *
    +     * The code of the tenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 10" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_10 = 74; + */ + public static final int AD_UNIT_CODE_LEVEL_10_VALUE = 74; + + /** + * + * + *
    +     * The code of the eleventh level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 11" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_11 = 75; + */ + public static final int AD_UNIT_CODE_LEVEL_11_VALUE = 75; + + /** + * + * + *
    +     * The code of the twelfth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 12" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_12 = 76; + */ + public static final int AD_UNIT_CODE_LEVEL_12_VALUE = 76; + + /** + * + * + *
    +     * The code of the thirteenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 13" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_13 = 77; + */ + public static final int AD_UNIT_CODE_LEVEL_13_VALUE = 77; + + /** + * + * + *
    +     * The code of the fourteenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 14" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_14 = 78; + */ + public static final int AD_UNIT_CODE_LEVEL_14_VALUE = 78; + + /** + * + * + *
    +     * The code of the fifteenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 15" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_15 = 79; + */ + public static final int AD_UNIT_CODE_LEVEL_15_VALUE = 79; + + /** + * + * + *
    +     * The code of the sixteenth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 16" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_16 = 80; + */ + public static final int AD_UNIT_CODE_LEVEL_16_VALUE = 80; + + /** + * + * + *
    +     * The code of the second level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 2" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_2 = 66; + */ + public static final int AD_UNIT_CODE_LEVEL_2_VALUE = 66; + + /** + * + * + *
    +     * The code of the third level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 3" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_3 = 67; + */ + public static final int AD_UNIT_CODE_LEVEL_3_VALUE = 67; + + /** + * + * + *
    +     * The code of the fourth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 4" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_4 = 68; + */ + public static final int AD_UNIT_CODE_LEVEL_4_VALUE = 68; + + /** + * + * + *
    +     * The code of the fifth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 5" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_5 = 69; + */ + public static final int AD_UNIT_CODE_LEVEL_5_VALUE = 69; + + /** + * + * + *
    +     * The code of the sixth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 6" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_6 = 70; + */ + public static final int AD_UNIT_CODE_LEVEL_6_VALUE = 70; + + /** + * + * + *
    +     * The code of the seventh level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 7" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_7 = 71; + */ + public static final int AD_UNIT_CODE_LEVEL_7_VALUE = 71; + + /** + * + * + *
    +     * The code of the eighth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 8" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_8 = 72; + */ + public static final int AD_UNIT_CODE_LEVEL_8_VALUE = 72; + + /** + * + * + *
    +     * The code of the ninth level ad unit of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit code level 9" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_CODE_LEVEL_9 = 73; + */ + public static final int AD_UNIT_CODE_LEVEL_9_VALUE = 73; + + /** + * + * + *
    +     * The ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID = 25; + */ + public static final int AD_UNIT_ID_VALUE = 25; + + /** + * + * + *
    +     * The full hierarchy of ad unit IDs where the ad was requested, from
    +     *  root to leaf, excluding the root ad unit ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID (all levels)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * AD_UNIT_ID_ALL_LEVEL = 27; + */ + public static final int AD_UNIT_ID_ALL_LEVEL_VALUE = 27; + + /** + * + * + *
    +     * The first level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 1" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_1 = 30; + */ + public static final int AD_UNIT_ID_LEVEL_1_VALUE = 30; + + /** + * + * + *
    +     * The tenth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 10" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_10 = 48; + */ + public static final int AD_UNIT_ID_LEVEL_10_VALUE = 48; + + /** + * + * + *
    +     * The eleventh level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 11" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_11 = 50; + */ + public static final int AD_UNIT_ID_LEVEL_11_VALUE = 50; + + /** + * + * + *
    +     * The twelfth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 12" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_12 = 52; + */ + public static final int AD_UNIT_ID_LEVEL_12_VALUE = 52; + + /** + * + * + *
    +     * The thirteenth level ad unit ID of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 13" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_13 = 54; + */ + public static final int AD_UNIT_ID_LEVEL_13_VALUE = 54; + + /** + * + * + *
    +     * The fourteenth level ad unit ID of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 14" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_14 = 56; + */ + public static final int AD_UNIT_ID_LEVEL_14_VALUE = 56; + + /** + * + * + *
    +     * The fifteenth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 15" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_15 = 58; + */ + public static final int AD_UNIT_ID_LEVEL_15_VALUE = 58; + + /** + * + * + *
    +     * The sixteenth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 16" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_16 = 60; + */ + public static final int AD_UNIT_ID_LEVEL_16_VALUE = 60; + + /** + * + * + *
    +     * The second level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 2" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_2 = 32; + */ + public static final int AD_UNIT_ID_LEVEL_2_VALUE = 32; + + /** + * + * + *
    +     * The third level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 3" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_3 = 34; + */ + public static final int AD_UNIT_ID_LEVEL_3_VALUE = 34; + + /** + * + * + *
    +     * The fourth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 4" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_4 = 36; + */ + public static final int AD_UNIT_ID_LEVEL_4_VALUE = 36; + + /** + * + * + *
    +     * The fifth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 5" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_5 = 38; + */ + public static final int AD_UNIT_ID_LEVEL_5_VALUE = 38; + + /** + * + * + *
    +     * The sixth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 6" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_6 = 40; + */ + public static final int AD_UNIT_ID_LEVEL_6_VALUE = 40; + + /** + * + * + *
    +     * The seventh level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 7" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_7 = 42; + */ + public static final int AD_UNIT_ID_LEVEL_7_VALUE = 42; + + /** + * + * + *
    +     * The eighth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 8" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_8 = 44; + */ + public static final int AD_UNIT_ID_LEVEL_8_VALUE = 44; + + /** + * + * + *
    +     * The ninth level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID level 9" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_LEVEL_9 = 46; + */ + public static final int AD_UNIT_ID_LEVEL_9_VALUE = 46; + + /** + * + * + *
    +     * The top-level ad unit ID of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit ID (top level)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AD_UNIT_ID_TOP_LEVEL = 142; + */ + public static final int AD_UNIT_ID_TOP_LEVEL_VALUE = 142; + + /** + * + * + *
    +     * The name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME = 26; + */ + public static final int AD_UNIT_NAME_VALUE = 26; + + /** + * + * + *
    +     * The full hierarchy of ad unit names where the ad was requested, from
    +     *  root to leaf, excluding the root ad unit name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit (all levels)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * AD_UNIT_NAME_ALL_LEVEL = 29; + */ + public static final int AD_UNIT_NAME_ALL_LEVEL_VALUE = 29; + + /** + * + * + *
    +     * The first level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 1" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_1 = 31; + */ + public static final int AD_UNIT_NAME_LEVEL_1_VALUE = 31; + + /** + * + * + *
    +     * The tenth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 10" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_10 = 49; + */ + public static final int AD_UNIT_NAME_LEVEL_10_VALUE = 49; + + /** + * + * + *
    +     * The eleventh level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 11" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_11 = 51; + */ + public static final int AD_UNIT_NAME_LEVEL_11_VALUE = 51; + + /** + * + * + *
    +     * The twelfth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 12" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_12 = 53; + */ + public static final int AD_UNIT_NAME_LEVEL_12_VALUE = 53; + + /** + * + * + *
    +     * The thirteenth level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 13" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_13 = 55; + */ + public static final int AD_UNIT_NAME_LEVEL_13_VALUE = 55; + + /** + * + * + *
    +     * The fourteenth level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 14" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_14 = 57; + */ + public static final int AD_UNIT_NAME_LEVEL_14_VALUE = 57; + + /** + * + * + *
    +     * The fifteenth level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 15" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_15 = 59; + */ + public static final int AD_UNIT_NAME_LEVEL_15_VALUE = 59; + + /** + * + * + *
    +     * The sixteenth level ad unit name of the ad unit where the ad was
    +     *  requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 16" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_16 = 61; + */ + public static final int AD_UNIT_NAME_LEVEL_16_VALUE = 61; + + /** + * + * + *
    +     * The second level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 2" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_2 = 33; + */ + public static final int AD_UNIT_NAME_LEVEL_2_VALUE = 33; + + /** + * + * + *
    +     * The third level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 3" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_3 = 35; + */ + public static final int AD_UNIT_NAME_LEVEL_3_VALUE = 35; + + /** + * + * + *
    +     * The fourth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 4" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_4 = 37; + */ + public static final int AD_UNIT_NAME_LEVEL_4_VALUE = 37; + + /** + * + * + *
    +     * The fifth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 5" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_5 = 39; + */ + public static final int AD_UNIT_NAME_LEVEL_5_VALUE = 39; + + /** + * + * + *
    +     * The sixth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 6" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_6 = 41; + */ + public static final int AD_UNIT_NAME_LEVEL_6_VALUE = 41; + + /** + * + * + *
    +     * The seventh level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 7" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_7 = 43; + */ + public static final int AD_UNIT_NAME_LEVEL_7_VALUE = 43; + + /** + * + * + *
    +     * The eighth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 8" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_8 = 45; + */ + public static final int AD_UNIT_NAME_LEVEL_8_VALUE = 45; + + /** + * + * + *
    +     * The ninth level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit level 9" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_LEVEL_9 = 47; + */ + public static final int AD_UNIT_NAME_LEVEL_9_VALUE = 47; + + /** + * + * + *
    +     * The top-level ad unit name of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit (top level)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_NAME_TOP_LEVEL = 143; + */ + public static final int AD_UNIT_NAME_TOP_LEVEL_VALUE = 143; + + /** + * + * + *
    +     * The reward amount of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit reward amount" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_UNIT_REWARD_AMOUNT = 63; + */ + public static final int AD_UNIT_REWARD_AMOUNT_VALUE = 63; + + /** + * + * + *
    +     * The reward type of the ad unit where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit reward type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`,
    +     * `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_REWARD_TYPE = 62; + */ + public static final int AD_UNIT_REWARD_TYPE_VALUE = 62; + + /** + * + * + *
    +     * The status of the ad unit
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit status value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AD_UNIT_STATUS = 206; + */ + public static final int AD_UNIT_STATUS_VALUE = 206; + + /** + * + * + *
    +     * The name of the status of the ad unit
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AD_UNIT_STATUS_NAME = 207; + */ + public static final int AD_UNIT_STATUS_NAME_VALUE = 207; + + /** + * + * + *
    +     * The ID of an agency at level 1 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency ID (Level 1)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AGENCY_LEVEL_1_ID = 565; + */ + public static final int AGENCY_LEVEL_1_ID_VALUE = 565; + + /** + * + * + *
    +     * The name of an agency at level 1 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency (Level 1)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AGENCY_LEVEL_1_NAME = 566; + */ + public static final int AGENCY_LEVEL_1_NAME_VALUE = 566; + + /** + * + * + *
    +     * The ID of an agency at level 2 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency ID (Level 2)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AGENCY_LEVEL_2_ID = 567; + */ + public static final int AGENCY_LEVEL_2_ID_VALUE = 567; + + /** + * + * + *
    +     * The name of an agency at level 2 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency (Level 2)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AGENCY_LEVEL_2_NAME = 568; + */ + public static final int AGENCY_LEVEL_2_NAME_VALUE = 568; + + /** + * + * + *
    +     * The ID of an agency at level 3 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency ID (Level 3)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AGENCY_LEVEL_3_ID = 569; + */ + public static final int AGENCY_LEVEL_3_ID_VALUE = 569; + + /** + * + * + *
    +     * The name of an agency at level 3 of agency hierarchy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Agency (Level 3)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AGENCY_LEVEL_3_NAME = 570; + */ + public static final int AGENCY_LEVEL_3_NAME_VALUE = 570; + + /** + * + * + *
    +     * User age bracket enum.
    +     *
    +     *
    +     *
    +     * Corresponds to "Age bracket value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AGE_BRACKET = 508; + */ + public static final int AGE_BRACKET_VALUE = 508; + + /** + * + * + *
    +     * Localized user age bracket returned from Google Analytics. For example,
    +     *  "18-24", "25-34", "35-44", "45-54", "55-64", "65+".
    +     *
    +     *
    +     *
    +     * Corresponds to "Age bracket" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AGE_BRACKET_NAME = 582; + */ + public static final int AGE_BRACKET_NAME_VALUE = 582; + + /** + * + * + *
    +     * Enum value for App Tracking Transparency consent status.
    +     *
    +     *
    +     *
    +     * Corresponds to "App Tracking Transparency consent status value" in the Ad
    +     * Manager UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * APP_TRACKING_TRANSPARENCY_CONSENT_STATUS = 442; + */ + public static final int APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_VALUE = 442; + + /** + * + * + *
    +     * Localized string value for App Tracking Transparency consent status.
    +     *
    +     *
    +     *
    +     * Corresponds to "App Tracking Transparency consent status" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME = 443; + */ + public static final int APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME_VALUE = 443; + + /** + * + * + *
    +     * The app version.
    +     *
    +     *
    +     *
    +     * Corresponds to "App version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * APP_VERSION = 392; + */ + public static final int APP_VERSION_VALUE = 392; + + /** + * + * + *
    +     * The name of Auction Package deal
    +     *
    +     *
    +     *
    +     * Corresponds to "Auction package deal" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AUCTION_PACKAGE_DEAL = 579; + */ + public static final int AUCTION_PACKAGE_DEAL_VALUE = 579; + + /** + * + * + *
    +     * The ID of Auction Package deal
    +     *
    +     *
    +     *
    +     * Corresponds to "Auction package deal ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AUCTION_PACKAGE_DEAL_ID = 571; + */ + public static final int AUCTION_PACKAGE_DEAL_ID_VALUE = 571; + + /** + * + * + *
    +     * ID of targeted audience segment, including all first-party and
    +     *  third-party segments that matched the user on the winning line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Audience segment ID (targeted)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * AUDIENCE_SEGMENT_ID_TARGETED = 584; + */ + public static final int AUDIENCE_SEGMENT_ID_TARGETED_VALUE = 584; + + /** + * + * + *
    +     * Name of targeted audience segment, including all first-party and
    +     *  third-party segments that matched the user on the winning line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Audience segment (targeted)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AUDIENCE_SEGMENT_TARGETED = 585; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_VALUE = 585; + + /** + * + * + *
    +     * Enum value of Auto refreshed traffic.
    +     *
    +     *
    +     *
    +     * Corresponds to "Auto refreshed traffic value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * AUTO_REFRESHED_TRAFFIC = 421; + */ + public static final int AUTO_REFRESHED_TRAFFIC_VALUE = 421; + + /** + * + * + *
    +     * Indicates if the traffic is from auto-refreshed ad requests.
    +     *
    +     *
    +     *
    +     * Corresponds to "Auto refreshed traffic" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * AUTO_REFRESHED_TRAFFIC_NAME = 422; + */ + public static final int AUTO_REFRESHED_TRAFFIC_NAME_VALUE = 422; + + /** + * + * + *
    +     * The encrypted version of BIDDER_ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bidder encrypted ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BIDDER_ENCRYPTED_ID = 493; + */ + public static final int BIDDER_ENCRYPTED_ID_VALUE = 493; + + /** + * + * + *
    +     * The name of the bidder.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bidder" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BIDDER_NAME = 494; + */ + public static final int BIDDER_NAME_VALUE = 494; + + /** + * + * + *
    +     * The cpm range within which a bid falls.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid Range" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BID_RANGE`
    +     * 
    + * + * BID_RANGE = 679; + */ + public static final int BID_RANGE_VALUE = 679; + + /** + * + * + *
    +     * The reason a bid was rejected.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid rejection reason value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * BID_REJECTION_REASON = 599; + */ + public static final int BID_REJECTION_REASON_VALUE = 599; + + /** + * + * + *
    +     * The localized name of the reason a bid was rejected.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid rejection reason" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BID_REJECTION_REASON_NAME = 600; + */ + public static final int BID_REJECTION_REASON_NAME_VALUE = 600; + + /** + * + * + *
    +     * The amount of information about the Publisher's page sent to the buyer
    +     *  who purchased the impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Branding type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * BRANDING_TYPE = 383; + */ + public static final int BRANDING_TYPE_VALUE = 383; + + /** + * + * + *
    +     * The localized version of branding type, the amount of information about
    +     *  the Publisher's page sent to the buyer who purchased the impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Branding type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BRANDING_TYPE_NAME = 384; + */ + public static final int BRANDING_TYPE_NAME_VALUE = 384; + + /** + * + * + *
    +     * Browser category.
    +     *
    +     *
    +     *
    +     * Corresponds to "Browser category value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * BROWSER_CATEGORY = 119; + */ + public static final int BROWSER_CATEGORY_VALUE = 119; + + /** + * + * + *
    +     * Browser category name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Browser category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BROWSER_CATEGORY_NAME = 120; + */ + public static final int BROWSER_CATEGORY_NAME_VALUE = 120; + + /** + * + * + *
    +     * The ID of the browser.
    +     *
    +     *
    +     *
    +     * Corresponds to "Browser ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * BROWSER_ID = 235; + */ + public static final int BROWSER_ID_VALUE = 235; + + /** + * + * + *
    +     * The name of the browser.
    +     *
    +     *
    +     *
    +     * Corresponds to "Browser" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BROWSER_NAME = 236; + */ + public static final int BROWSER_NAME_VALUE = 236; + + /** + * + * + *
    +     * The ID of the buyer network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Buyer network ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BUYER_NETWORK_ID = 448; + */ + public static final int BUYER_NETWORK_ID_VALUE = 448; + + /** + * + * + *
    +     * The name of the buyer network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Buyer network" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * BUYER_NETWORK_NAME = 449; + */ + public static final int BUYER_NETWORK_NAME_VALUE = 449; + + /** + * + * + *
    +     * The callout status category in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Callout status category value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CALLOUT_STATUS_CATEGORY = 588; + */ + public static final int CALLOUT_STATUS_CATEGORY_VALUE = 588; + + /** + * + * + *
    +     * The callout status category name in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Callout status category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CALLOUT_STATUS_CATEGORY_NAME = 589; + */ + public static final int CALLOUT_STATUS_CATEGORY_NAME_VALUE = 589; + + /** + * + * + *
    +     * Mobile carrier ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Carrier ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CARRIER_ID = 369; + */ + public static final int CARRIER_ID_VALUE = 369; + + /** + * + * + *
    +     * Name of the mobile carrier.
    +     *
    +     *
    +     *
    +     * Corresponds to "Carrier" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CARRIER_NAME = 368; + */ + public static final int CARRIER_NAME_VALUE = 368; + + /** + * + * + *
    +     * Inventory segmentation by channel.
    +     *
    +     *
    +     *
    +     * Corresponds to "Channel" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CHANNEL = 501; + */ + public static final int CHANNEL_VALUE = 501; + + /** + * + * + *
    +     * Child Publisher Network Code
    +     *
    +     *
    +     *
    +     * Corresponds to "Child network code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CHILD_NETWORK_CODE = 542; + */ + public static final int CHILD_NETWORK_CODE_VALUE = 542; + + /** + * + * + *
    +     * Child Publisher Network ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Child network ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CHILD_NETWORK_ID = 544; + */ + public static final int CHILD_NETWORK_ID_VALUE = 544; + + /** + * + * + *
    +     * Child Partner Network Name
    +     *
    +     *
    +     *
    +     * Corresponds to "Child network" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CHILD_PARTNER_NAME = 543; + */ + public static final int CHILD_PARTNER_NAME_VALUE = 543; + + /** + * + * + *
    +     * The criteria ID of the city in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "City ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CITY_ID = 459; + */ + public static final int CITY_ID_VALUE = 459; + + /** + * + * + *
    +     * The name of the city in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "City" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CITY_NAME = 452; + */ + public static final int CITY_NAME_VALUE = 452; + + /** + * + * + *
    +     * The ID of an advertiser, classified by Google, associated with a creative
    +     *  transacted
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser ID (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CLASSIFIED_ADVERTISER_ID = 133; + */ + public static final int CLASSIFIED_ADVERTISER_ID_VALUE = 133; + + /** + * + * + *
    +     * The name of an advertiser, classified by Google, associated with a
    +     *  creative transacted
    +     *
    +     *
    +     *
    +     * Corresponds to "Advertiser (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CLASSIFIED_ADVERTISER_NAME = 134; + */ + public static final int CLASSIFIED_ADVERTISER_NAME_VALUE = 134; + + /** + * + * + *
    +     * ID of the brand, as classified by Google,
    +     *
    +     *
    +     *
    +     * Corresponds to "Brand ID (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CLASSIFIED_BRAND_ID = 243; + */ + public static final int CLASSIFIED_BRAND_ID_VALUE = 243; + + /** + * + * + *
    +     * Name of the brand, as classified by Google,
    +     *
    +     *
    +     *
    +     * Corresponds to "Brand (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CLASSIFIED_BRAND_NAME = 244; + */ + public static final int CLASSIFIED_BRAND_NAME_VALUE = 244; + + /** + * + * + *
    +     * The display name of the CMS content.
    +     *
    +     *
    +     *
    +     * Corresponds to "Content source name" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTENT_CMS_NAME = 643; + */ + public static final int CONTENT_CMS_NAME_VALUE = 643; + + /** + * + * + *
    +     * The CMS content ID of the video content.
    +     *
    +     *
    +     *
    +     * Corresponds to "ID of the video in the content source" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTENT_CMS_VIDEO_ID = 644; + */ + public static final int CONTENT_CMS_VIDEO_ID_VALUE = 644; + + /** + * + * + *
    +     * ID of the video content served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Content ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CONTENT_ID = 246; + */ + public static final int CONTENT_ID_VALUE = 246; + + /** + * + * + *
    +     * Content mapping presence ENUM value
    +     *
    +     *
    +     *
    +     * Corresponds to "Content mapping presence value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CONTENT_MAPPING_PRESENCE = 731; + */ + public static final int CONTENT_MAPPING_PRESENCE_VALUE = 731; + + /** + * + * + *
    +     * Content mapping presence name
    +     *
    +     *
    +     *
    +     * Corresponds to "Content mapping presence" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTENT_MAPPING_PRESENCE_NAME = 732; + */ + public static final int CONTENT_MAPPING_PRESENCE_NAME_VALUE = 732; + + /** + * + * + *
    +     * Name of the video content served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Content" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTENT_NAME = 247; + */ + public static final int CONTENT_NAME_VALUE = 247; + + /** + * + * + *
    +     * The continent in which the ad served (derived from country).
    +     *
    +     *
    +     *
    +     * Corresponds to "Continent value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CONTINENT = 469; + */ + public static final int CONTINENT_VALUE = 469; + + /** + * + * + *
    +     * The name of the continent in which the ad served (derived from country).
    +     *
    +     *
    +     *
    +     * Corresponds to "Continent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CONTINENT_NAME = 470; + */ + public static final int CONTINENT_NAME_VALUE = 470; + + /** + * + * + *
    +     * The ISO code of the country in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Country code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * COUNTRY_CODE = 466; + */ + public static final int COUNTRY_CODE_VALUE = 466; + + /** + * + * + *
    +     * The criteria ID of the country in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Country ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * COUNTRY_ID = 11; + */ + public static final int COUNTRY_ID_VALUE = 11; + + /** + * + * + *
    +     * The name of the country in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Country" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * COUNTRY_NAME = 12; + */ + public static final int COUNTRY_NAME_VALUE = 12; + + /** + * + * + *
    +     * Enum value of creative billing type
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative billing type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_BILLING_TYPE = 366; + */ + public static final int CREATIVE_BILLING_TYPE_VALUE = 366; + + /** + * + * + *
    +     * Localized string value of creative billing type
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative billing type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_BILLING_TYPE_NAME = 367; + */ + public static final int CREATIVE_BILLING_TYPE_NAME_VALUE = 367; + + /** + * + * + *
    +     * Represents the click-through URL of a creative
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative click through url" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_CLICK_THROUGH_URL = 174; + */ + public static final int CREATIVE_CLICK_THROUGH_URL_VALUE = 174; + + /** + * + * + *
    +     * The ID of a creative
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CREATIVE_ID = 138; + */ + public static final int CREATIVE_ID_VALUE = 138; + + /** + * + * + *
    +     * Creative name
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_NAME = 139; + */ + public static final int CREATIVE_NAME_VALUE = 139; + + /** + * + * + *
    +     * Creative Policies filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative policies filtering value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_POLICIES_FILTERING = 711; + */ + public static final int CREATIVE_POLICIES_FILTERING_VALUE = 711; + + /** + * + * + *
    +     * Localized name of the Creative Policies filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative policies filtering" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_POLICIES_FILTERING_NAME = 712; + */ + public static final int CREATIVE_POLICIES_FILTERING_NAME_VALUE = 712; + + /** + * + * + *
    +     * Creative Protections filtering (Publisher Blocks Enforcement).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative protections filtering value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_PROTECTIONS_FILTERING = 704; + */ + public static final int CREATIVE_PROTECTIONS_FILTERING_VALUE = 704; + + /** + * + * + *
    +     * Localized name of the Creative Protections filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative protections filtering" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_PROTECTIONS_FILTERING_NAME = 705; + */ + public static final int CREATIVE_PROTECTIONS_FILTERING_NAME_VALUE = 705; + + /** + * + * + *
    +     * ENUM describing whether the creative is part of a creative set and if so,
    +     *  what its role in the creative set is.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative set role type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_SET_ROLE_TYPE = 686; + */ + public static final int CREATIVE_SET_ROLE_TYPE_VALUE = 686; + + /** + * + * + *
    +     * Localized name describing whether the creative is part of a creative set
    +     *  and if so, what its role in the creative set is.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative set role type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_SET_ROLE_TYPE_NAME = 687; + */ + public static final int CREATIVE_SET_ROLE_TYPE_NAME_VALUE = 687; + + /** + * + * + *
    +     * Creative technology ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative technology value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_TECHNOLOGY = 148; + */ + public static final int CREATIVE_TECHNOLOGY_VALUE = 148; + + /** + * + * + *
    +     * Creative technology locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative technology" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_TECHNOLOGY_NAME = 149; + */ + public static final int CREATIVE_TECHNOLOGY_NAME_VALUE = 149; + + /** + * + * + *
    +     * Third party vendor name of a creative
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative third party vendor" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_THIRD_PARTY_VENDOR = 361; + */ + public static final int CREATIVE_THIRD_PARTY_VENDOR_VALUE = 361; + + /** + * + * + *
    +     * Enum value of creative type
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CREATIVE_TYPE = 344; + */ + public static final int CREATIVE_TYPE_VALUE = 344; + + /** + * + * + *
    +     * Localized string name of creative type
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_TYPE_NAME = 345; + */ + public static final int CREATIVE_TYPE_NAME_VALUE = 345; + + /** + * + * + *
    +     * Creative vendor ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative vendor ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CREATIVE_VENDOR_ID = 706; + */ + public static final int CREATIVE_VENDOR_ID_VALUE = 706; + + /** + * + * + *
    +     * Name of the Creative vendor.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative vendor" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_VENDOR_NAME = 707; + */ + public static final int CREATIVE_VENDOR_NAME_VALUE = 707; + + /** + * + * + *
    +     * The third party where Google Ad Manager was redirected for the creative,
    +     *  based on the domain.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative video redirect third party" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CREATIVE_VIDEO_REDIRECT_THIRD_PARTY = 562; + */ + public static final int CREATIVE_VIDEO_REDIRECT_THIRD_PARTY_VALUE = 562; + + /** + * + * + *
    +     * The ID of a Curation partner
    +     *
    +     *
    +     *
    +     * Corresponds to "Curation partner ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CURATOR_ID = 572; + */ + public static final int CURATOR_ID_VALUE = 572; + + /** + * + * + *
    +     * The name of a Curation partner
    +     *
    +     *
    +     *
    +     * Corresponds to "Curation partner" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CURATOR_NAME = 573; + */ + public static final int CURATOR_NAME_VALUE = 573; + + /** + * + * + *
    +     * Custom event ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event id" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CUSTOM_EVENT_ID = 737; + */ + public static final int CUSTOM_EVENT_ID_VALUE = 737; + + /** + * + * + *
    +     * Custom event name
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CUSTOM_EVENT_NAME = 735; + */ + public static final int CUSTOM_EVENT_NAME_VALUE = 735; + + /** + * + * + *
    +     * Custom event type
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * CUSTOM_EVENT_TYPE = 736; + */ + public static final int CUSTOM_EVENT_TYPE_VALUE = 736; + + /** + * + * + *
    +     * Localized name of the custom event type
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CUSTOM_EVENT_TYPE_NAME = 738; + */ + public static final int CUSTOM_EVENT_TYPE_NAME_VALUE = 738; + + /** + * + * + *
    +     * The ID of an ad spot. An ad spot can be added to an ad break template, as
    +     *  well as directly targeted by a video line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom spot ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * CUSTOM_SPOT_ID = 423; + */ + public static final int CUSTOM_SPOT_ID_VALUE = 423; + + /** + * + * + *
    +     * The name of an ad spot. An ad spot can be added to an ad break
    +     *  template, as well as directly targeted by a video line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom spot" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * CUSTOM_SPOT_NAME = 424; + */ + public static final int CUSTOM_SPOT_NAME_VALUE = 424; + + /** + * + * + *
    +     * Breaks down reporting data by date.
    +     *
    +     *
    +     *
    +     * Corresponds to "Date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * DATE = 3; + */ + public static final int DATE_VALUE = 3; + + /** + * + * + *
    +     * Breaks down reporting data by day of the week. Monday is 1 and 7 is
    +     *  Sunday.
    +     *
    +     *
    +     *
    +     * Corresponds to "Day of week" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * DAY_OF_WEEK = 4; + */ + public static final int DAY_OF_WEEK_VALUE = 4; + + /** + * + * + *
    +     * The ID of the buyer of a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deal buyer ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * DEAL_BUYER_ID = 240; + */ + public static final int DEAL_BUYER_ID_VALUE = 240; + + /** + * + * + *
    +     * The name of the buyer of a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deal buyer" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEAL_BUYER_NAME = 241; + */ + public static final int DEAL_BUYER_NAME_VALUE = 241; + + /** + * + * + *
    +     * Deal ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Deal ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEAL_ID = 436; + */ + public static final int DEAL_ID_VALUE = 436; + + /** + * + * + *
    +     * Deal name
    +     *
    +     *
    +     *
    +     * Corresponds to "Deal" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEAL_NAME = 437; + */ + public static final int DEAL_NAME_VALUE = 437; + + /** + * + * + *
    +     * The ID of the secure signals that were sent to the bidder who won the
    +     *  impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal ID (delivered)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * DELIVERED_SECURE_SIGNAL_ID = 309; + */ + public static final int DELIVERED_SECURE_SIGNAL_ID_VALUE = 309; + + /** + * + * + *
    +     * The name of the secure signals that were sent to the bidder who won the
    +     *  impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal name (delivered)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DELIVERED_SECURE_SIGNAL_NAME = 310; + */ + public static final int DELIVERED_SECURE_SIGNAL_NAME_VALUE = 310; + + /** + * + * + *
    +     * Demand channel.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand channel value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEMAND_CHANNEL = 9; + */ + public static final int DEMAND_CHANNEL_VALUE = 9; + + /** + * + * + *
    +     * Demand channel name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand channel" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEMAND_CHANNEL_NAME = 10; + */ + public static final int DEMAND_CHANNEL_NAME_VALUE = 10; + + /** + * + * + *
    +     * Demand source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand source value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEMAND_SOURCE = 592; + */ + public static final int DEMAND_SOURCE_VALUE = 592; + + /** + * + * + *
    +     * Demand source name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEMAND_SOURCE_NAME = 593; + */ + public static final int DEMAND_SOURCE_NAME_VALUE = 593; + + /** + * + * + *
    +     * Demand subchannel.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand subchannel value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEMAND_SUBCHANNEL = 22; + */ + public static final int DEMAND_SUBCHANNEL_VALUE = 22; + + /** + * + * + *
    +     * Demand subchannel name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Demand subchannel" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEMAND_SUBCHANNEL_NAME = 23; + */ + public static final int DEMAND_SUBCHANNEL_NAME_VALUE = 23; + + /** + * + * + *
    +     * The device on which an ad was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Device value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEVICE = 226; + */ + public static final int DEVICE_VALUE = 226; + + /** + * + * + *
    +     * The device category to which an ad is being targeted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Device category value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DEVICE_CATEGORY = 15; + */ + public static final int DEVICE_CATEGORY_VALUE = 15; + + /** + * + * + *
    +     * The name of the category of device (smartphone, feature phone, tablet, or
    +     *  desktop) to which an ad is being targeted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Device category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEVICE_CATEGORY_NAME = 16; + */ + public static final int DEVICE_CATEGORY_NAME_VALUE = 16; + + /** + * + * + *
    +     * Device manufacturer ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Device manufacturer ID" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * DEVICE_MANUFACTURER_ID = 525; + */ + public static final int DEVICE_MANUFACTURER_ID_VALUE = 525; + + /** + * + * + *
    +     * Device manufacturer name
    +     *
    +     *
    +     *
    +     * Corresponds to "Device manufacturer" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEVICE_MANUFACTURER_NAME = 526; + */ + public static final int DEVICE_MANUFACTURER_NAME_VALUE = 526; + + /** + * + * + *
    +     * Device model ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Device model ID" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * DEVICE_MODEL_ID = 527; + */ + public static final int DEVICE_MODEL_ID_VALUE = 527; + + /** + * + * + *
    +     * Device model name
    +     *
    +     *
    +     *
    +     * Corresponds to "Device model" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEVICE_MODEL_NAME = 528; + */ + public static final int DEVICE_MODEL_NAME_VALUE = 528; + + /** + * + * + *
    +     * The localized name of the device on which an ad was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Device" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DEVICE_NAME = 225; + */ + public static final int DEVICE_NAME_VALUE = 225; + + /** + * + * + *
    +     * The ID of DSP Seat
    +     *
    +     *
    +     *
    +     * Corresponds to "DSP seat ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DSP_SEAT_ID = 564; + */ + public static final int DSP_SEAT_ID_VALUE = 564; + + /** + * + * + *
    +     * Categorization of inventory sources based on AdX dynamic allocation
    +     *  backfill type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Dynamic allocation value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * DYNAMIC_ALLOCATION_TYPE = 502; + */ + public static final int DYNAMIC_ALLOCATION_TYPE_VALUE = 502; + + /** + * + * + *
    +     * Localized name of the dynamic allocation type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Dynamic allocation" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * DYNAMIC_ALLOCATION_TYPE_NAME = 503; + */ + public static final int DYNAMIC_ALLOCATION_TYPE_NAME_VALUE = 503; + + /** + * + * + *
    +     * Status of Encrypted Signals for Publishers delivery.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal delivery value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ESP_DELIVERY = 623; + */ + public static final int ESP_DELIVERY_VALUE = 623; + + /** + * + * + *
    +     * Localized name of the ESP delivery status.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal delivery" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ESP_DELIVERY_NAME = 624; + */ + public static final int ESP_DELIVERY_NAME_VALUE = 624; + + /** + * + * + *
    +     * Whether Encrypted Signals for Publishers are present on the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal presence value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ESP_PRESENCE = 625; + */ + public static final int ESP_PRESENCE_VALUE = 625; + + /** + * + * + *
    +     * Localized name of the ESP presence status.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal presence" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ESP_PRESENCE_NAME = 626; + */ + public static final int ESP_PRESENCE_NAME_VALUE = 626; + + /** + * + * + *
    +     * Exchange bidding deal ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Exchange bidding deal id" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * EXCHANGE_BIDDING_DEAL_ID = 715; + */ + public static final int EXCHANGE_BIDDING_DEAL_ID_VALUE = 715; + + /** + * + * + *
    +     * Exchange bidding deal type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Exchange bidding deal type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * EXCHANGE_BIDDING_DEAL_TYPE = 714; + */ + public static final int EXCHANGE_BIDDING_DEAL_TYPE_VALUE = 714; + + /** + * + * + *
    +     * Localized name of the exchange bidding deal type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Exchange bidding deal type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * EXCHANGE_BIDDING_DEAL_TYPE_NAME = 723; + */ + public static final int EXCHANGE_BIDDING_DEAL_TYPE_NAME_VALUE = 723; + + /** + * + * + *
    +     * ID of the yield partner as classified by Google
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner ID (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; + */ + public static final int EXCHANGE_THIRD_PARTY_COMPANY_ID_VALUE = 185; + + /** + * + * + *
    +     * Name of the yield partner as classified by Google
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner (classified)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; + */ + public static final int EXCHANGE_THIRD_PARTY_COMPANY_NAME_VALUE = 186; + + /** + * + * + *
    +     * The ID of the first look pricing rule.
    +     *
    +     *
    +     *
    +     * Corresponds to "First look pricing rule ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * FIRST_LOOK_PRICING_RULE_ID = 248; + */ + public static final int FIRST_LOOK_PRICING_RULE_ID_VALUE = 248; + + /** + * + * + *
    +     * The name of the first look pricing rule.
    +     *
    +     *
    +     *
    +     * Corresponds to "First look pricing rule" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * FIRST_LOOK_PRICING_RULE_NAME = 249; + */ + public static final int FIRST_LOOK_PRICING_RULE_NAME_VALUE = 249; + + /** + * + * + *
    +     * Whether a first-party user identifier was present on a given
    +     *  ad-request.
    +     *
    +     *
    +     *
    +     * Corresponds to "First-party ID status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * FIRST_PARTY_ID_STATUS = 404; + */ + public static final int FIRST_PARTY_ID_STATUS_VALUE = 404; + + /** + * + * + *
    +     * The localized name of whether a first-party user identifier was present
    +     *  on a given ad-request.
    +     *
    +     *
    +     *
    +     * Corresponds to "First-party ID status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * FIRST_PARTY_ID_STATUS_NAME = 405; + */ + public static final int FIRST_PARTY_ID_STATUS_NAME_VALUE = 405; + + /** + * + * + *
    +     * User gender enum value returned from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Gender value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * GENDER = 509; + */ + public static final int GENDER_VALUE = 509; + + /** + * + * + *
    +     * Localized user gender returned from Google Analytics. For example,
    +     *  "male", "female".
    +     *
    +     *
    +     *
    +     * Corresponds to "Gender" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * GENDER_NAME = 583; + */ + public static final int GENDER_NAME_VALUE = 583; + + /** + * + * + *
    +     * The ID of a Google Analytics stream. For example, web site or mobile app
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics stream ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * GOOGLE_ANALYTICS_STREAM_ID = 519; + */ + public static final int GOOGLE_ANALYTICS_STREAM_ID_VALUE = 519; + + /** + * + * + *
    +     * The name of a Google Analytics stream. For example,
    +     *  web site or mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics stream" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * GOOGLE_ANALYTICS_STREAM_NAME = 520; + */ + public static final int GOOGLE_ANALYTICS_STREAM_NAME_VALUE = 520; + + /** + * + * + *
    +     * The ID of the header bidding trafficking yield partner.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner ID (header bidding trafficking)" in the Ad
    +     * Manager UI (when showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * HBT_YIELD_PARTNER_ID = 659; + */ + public static final int HBT_YIELD_PARTNER_ID_VALUE = 659; + + /** + * + * + *
    +     * The name of the header bidding trafficking yield partner.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner (header bidding trafficking)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * HBT_YIELD_PARTNER_NAME = 660; + */ + public static final int HBT_YIELD_PARTNER_NAME_VALUE = 660; + + /** + * + * + *
    +     * Header Bidder integration type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidder integration type value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * HEADER_BIDDER_INTEGRATION_TYPE = 718; + */ + public static final int HEADER_BIDDER_INTEGRATION_TYPE_VALUE = 718; + + /** + * + * + *
    +     * Localized name of the Header Bidder integration type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidder integration type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * HEADER_BIDDER_INTEGRATION_TYPE_NAME = 719; + */ + public static final int HEADER_BIDDER_INTEGRATION_TYPE_NAME_VALUE = 719; + + /** + * + * + *
    +     * Breaks down reporting data by hour in one day.
    +     *
    +     *
    +     *
    +     * Corresponds to "Hour" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * HOUR = 100; + */ + public static final int HOUR_VALUE = 100; + + /** + * + * + *
    +     * Impression Counting Method ENUM.
    +     *
    +     *
    +     *
    +     * Corresponds to "Impression counting method value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * IMPRESSION_COUNTING_METHOD = 577; + */ + public static final int IMPRESSION_COUNTING_METHOD_VALUE = 577; + + /** + * + * + *
    +     * Localized impression counting method name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Impression counting method" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * IMPRESSION_COUNTING_METHOD_NAME = 578; + */ + public static final int IMPRESSION_COUNTING_METHOD_NAME_VALUE = 578; + + /** + * + * + *
    +     * The interaction type of an ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interaction type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INTERACTION_TYPE = 223; + */ + public static final int INTERACTION_TYPE_VALUE = 223; + + /** + * + * + *
    +     * The localized name of the interaction type of an ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interaction type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INTERACTION_TYPE_NAME = 224; + */ + public static final int INTERACTION_TYPE_NAME_VALUE = 224; + + /** + * + * + *
    +     * User interest returned from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INTEREST = 510; + */ + public static final int INTEREST_VALUE = 510; + + /** + * + * + *
    +     * Inventory format.
    +     *  The format of the ad unit (e.g, banner) where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory format value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_FORMAT = 17; + */ + public static final int INVENTORY_FORMAT_VALUE = 17; + + /** + * + * + *
    +     * Inventory format name.
    +     *  The format of the ad unit (e.g, banner) where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory format" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_FORMAT_NAME = 18; + */ + public static final int INVENTORY_FORMAT_NAME_VALUE = 18; + + /** + * + * + *
    +     * The ID of the inventory share assignment.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share assignment ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * INVENTORY_SHARE_ASSIGNMENT_ID = 648; + */ + public static final int INVENTORY_SHARE_ASSIGNMENT_ID_VALUE = 648; + + /** + * + * + *
    +     * The name of the inventory share assignment.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share assignment" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_SHARE_ASSIGNMENT_NAME = 649; + */ + public static final int INVENTORY_SHARE_ASSIGNMENT_NAME_VALUE = 649; + + /** + * + * + *
    +     * The result of an inventory share.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share outcome value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_SHARE_OUTCOME = 603; + */ + public static final int INVENTORY_SHARE_OUTCOME_VALUE = 603; + + /** + * + * + *
    +     * The localized name of the result of an inventory share.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share outcome" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_SHARE_OUTCOME_NAME = 604; + */ + public static final int INVENTORY_SHARE_OUTCOME_NAME_VALUE = 604; + + /** + * + * + *
    +     * The partner ad server of the inventory share.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share partner ad server value" in the Ad
    +     * Manager UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_SHARE_PARTNER_AD_SERVER = 652; + */ + public static final int INVENTORY_SHARE_PARTNER_AD_SERVER_VALUE = 652; + + /** + * + * + *
    +     * The localized name of the partner ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share partner ad server" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_SHARE_PARTNER_AD_SERVER_NAME = 653; + */ + public static final int INVENTORY_SHARE_PARTNER_AD_SERVER_NAME_VALUE = 653; + + /** + * + * + *
    +     * The target share percent of the inventory share assignment
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner target share percent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * INVENTORY_SHARE_TARGET_SHARE_PERCENT = 654; + */ + public static final int INVENTORY_SHARE_TARGET_SHARE_PERCENT_VALUE = 654; + + /** + * + * + *
    +     * The type of the inventory share.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_SHARE_TYPE = 650; + */ + public static final int INVENTORY_SHARE_TYPE_VALUE = 650; + + /** + * + * + *
    +     * The localized name of the inventory share type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_SHARE_TYPE_NAME = 651; + */ + public static final int INVENTORY_SHARE_TYPE_NAME_VALUE = 651; + + /** + * + * + *
    +     * Inventory type.
    +     *  The kind of web page or device where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory type (expanded) value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * INVENTORY_TYPE = 19; + */ + public static final int INVENTORY_TYPE_VALUE = 19; + + /** + * + * + *
    +     * Inventory type name.
    +     *  The kind of web page or device where the ad was requested.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory type (expanded)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * INVENTORY_TYPE_NAME = 20; + */ + public static final int INVENTORY_TYPE_NAME_VALUE = 20; + + /** + * + * + *
    +     * Whether traffic is Adx Direct.
    +     *
    +     *
    +     *
    +     * Corresponds to "Is AdX Direct" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * IS_ADX_DIRECT = 382; + */ + public static final int IS_ADX_DIRECT_VALUE = 382; + + /** + * + * + *
    +     * If curation was targeted by the buyer when buying the impression
    +     *
    +     *
    +     *
    +     * Corresponds to "Is curation targeted" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * IS_CURATION_TARGETED = 574; + */ + public static final int IS_CURATION_TARGETED_VALUE = 574; + + /** + * + * + *
    +     * Whether the query was dropped.
    +     *
    +     *
    +     *
    +     * Corresponds to "Is Dropped" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * IS_DROPPED = 464; + */ + public static final int IS_DROPPED_VALUE = 464; + + /** + * + * + *
    +     * Whether traffic is First Look.
    +     *
    +     *
    +     *
    +     * Corresponds to "Is First Look" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * IS_FIRST_LOOK_DEAL = 401; + */ + public static final int IS_FIRST_LOOK_DEAL_VALUE = 401; + + /** + * + * + *
    +     * The Custom Targeting Value ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Key-values ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * KEY_VALUES_ID = 214; + */ + public static final int KEY_VALUES_ID_VALUE = 214; + + /** + * + * + *
    +     * The Custom Targeting Value formatted like `{keyName}={valueName}`
    +     *
    +     *
    +     *
    +     * Corresponds to "Key-values" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * KEY_VALUES_NAME = 215; + */ + public static final int KEY_VALUES_NAME_VALUE = 215; + + /** + * + * + *
    +     * The agency of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item agency" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_AGENCY = 663; + */ + public static final int LINE_ITEM_AGENCY_VALUE = 663; + + /** + * + * + *
    +     * Whether a Line item is archived.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item is archived" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * LINE_ITEM_ARCHIVED = 188; + */ + public static final int LINE_ITEM_ARCHIVED_VALUE = 188; + + /** + * + * + *
    +     * Line item comanion delivery option ENUM value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item companion delivery option value" in the Ad
    +     * Manager UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; + */ + public static final int LINE_ITEM_COMPANION_DELIVERY_OPTION_VALUE = 204; + + /** + * + * + *
    +     * Localized line item comanion delivery option name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item companion delivery option" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; + */ + public static final int LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME_VALUE = 205; + + /** + * + * + *
    +     * The computed status of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item computed status value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_COMPUTED_STATUS = 250; + */ + public static final int LINE_ITEM_COMPUTED_STATUS_VALUE = 250; + + /** + * + * + *
    +     * The localized name of the computed status of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item computed status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_COMPUTED_STATUS_NAME = 251; + */ + public static final int LINE_ITEM_COMPUTED_STATUS_NAME_VALUE = 251; + + /** + * + * + *
    +     * The contracted units bought for the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item contracted quantity" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_CONTRACTED_QUANTITY = 92; + */ + public static final int LINE_ITEM_CONTRACTED_QUANTITY_VALUE = 92; + + /** + * + * + *
    +     * The cost per unit of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * LINE_ITEM_COST_PER_UNIT = 85; + */ + public static final int LINE_ITEM_COST_PER_UNIT_VALUE = 85; + + /** + * + * + *
    +     * Line item cost type ENUM value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item cost type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_COST_TYPE = 212; + */ + public static final int LINE_ITEM_COST_TYPE_VALUE = 212; + + /** + * + * + *
    +     * Localized line item cost type name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item cost type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_COST_TYPE_NAME = 213; + */ + public static final int LINE_ITEM_COST_TYPE_NAME_VALUE = 213; + + /** + * + * + *
    +     * Represent the end date of a creative associated with line item
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item creative end date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * LINE_ITEM_CREATIVE_END_DATE = 176; + */ + public static final int LINE_ITEM_CREATIVE_END_DATE_VALUE = 176; + + /** + * + * + *
    +     * The creative rotation type of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item creative rotation type value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; + */ + public static final int LINE_ITEM_CREATIVE_ROTATION_TYPE_VALUE = 189; + + /** + * + * + *
    +     * The localized name of the creative rotation type of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item creative rotation type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; + */ + public static final int LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME_VALUE = 190; + + /** + * + * + *
    +     * Represent the start date of a creative associated with line item
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item creative start date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * LINE_ITEM_CREATIVE_START_DATE = 175; + */ + public static final int LINE_ITEM_CREATIVE_START_DATE_VALUE = 175; + + /** + * + * + *
    +     * The 3 letter currency code of the Line Item
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item currency code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_CURRENCY_CODE = 180; + */ + public static final int LINE_ITEM_CURRENCY_CODE_VALUE = 180; + + /** + * + * + *
    +     * The progress made for the delivery of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item delivery indicator" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * LINE_ITEM_DELIVERY_INDICATOR = 87; + */ + public static final int LINE_ITEM_DELIVERY_INDICATOR_VALUE = 87; + + /** + * + * + *
    +     * The delivery rate type of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item delivery rate type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_DELIVERY_RATE_TYPE = 191; + */ + public static final int LINE_ITEM_DELIVERY_RATE_TYPE_VALUE = 191; + + /** + * + * + *
    +     * The localized name of the delivery rate type of the LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item delivery rate type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; + */ + public static final int LINE_ITEM_DELIVERY_RATE_TYPE_NAME_VALUE = 192; + + /** + * + * + *
    +     * The discount of the LineItem in whole units in the LineItem's currency
    +     *  code, or if unspecified the Network's currency code.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item discount (absolute)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * LINE_ITEM_DISCOUNT_ABSOLUTE = 195; + */ + public static final int LINE_ITEM_DISCOUNT_ABSOLUTE_VALUE = 195; + + /** + * + * + *
    +     * The discount of the LineItem in percentage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item discount (percentage)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `WHOLE_PERCENT`
    +     * 
    + * + * LINE_ITEM_DISCOUNT_PERCENTAGE = 196; + */ + public static final int LINE_ITEM_DISCOUNT_PERCENTAGE_VALUE = 196; + + /** + * + * + *
    +     * The end date of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item end date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * LINE_ITEM_END_DATE = 81; + */ + public static final int LINE_ITEM_END_DATE_VALUE = 81; + + /** + * + * + *
    +     * The end date and time of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item end time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `TIMESTAMP`
    +     * 
    + * + * LINE_ITEM_END_DATE_TIME = 83; + */ + public static final int LINE_ITEM_END_DATE_TIME_VALUE = 83; + + /** + * + * + *
    +     * The ENUM value of the environment a LineItem is targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item environment type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_ENVIRONMENT_TYPE = 201; + */ + public static final int LINE_ITEM_ENVIRONMENT_TYPE_VALUE = 201; + + /** + * + * + *
    +     * The localized name of the environment a LineItem is targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item environment type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; + */ + public static final int LINE_ITEM_ENVIRONMENT_TYPE_NAME_VALUE = 202; + + /** + * + * + *
    +     * The deal ID of the Line item. Set for Programmatic Direct campaigns.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item deal ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * LINE_ITEM_EXTERNAL_DEAL_ID = 97; + */ + public static final int LINE_ITEM_EXTERNAL_DEAL_ID_VALUE = 97; + + /** + * + * + *
    +     * The external ID of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item external ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_EXTERNAL_ID = 86; + */ + public static final int LINE_ITEM_EXTERNAL_ID_VALUE = 86; + + /** + * + * + *
    +     * The frequency cap of the Line item (descriptive string).
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item frequency cap" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_FREQUENCY_CAP = 256; + */ + public static final int LINE_ITEM_FREQUENCY_CAP_VALUE = 256; + + /** + * + * + *
    +     * Line item ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * LINE_ITEM_ID = 1; + */ + public static final int LINE_ITEM_ID_VALUE = 1; + + /** + * + * + *
    +     * Line item labels.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item labels" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * LINE_ITEM_LABELS = 667; + */ + public static final int LINE_ITEM_LABELS_VALUE = 667; + + /** + * + * + *
    +     * Line item label IDs.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item label IDs" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * LINE_ITEM_LABEL_IDS = 665; + */ + public static final int LINE_ITEM_LABEL_IDS_VALUE = 665; + + /** + * + * + *
    +     * The application that last modified the Line Item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item last modified by app" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_LAST_MODIFIED_BY_APP = 181; + */ + public static final int LINE_ITEM_LAST_MODIFIED_BY_APP_VALUE = 181; + + /** + * + * + *
    +     * The total number of clicks delivered of the lifetime of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item lifetime clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_LIFETIME_CLICKS = 95; + */ + public static final int LINE_ITEM_LIFETIME_CLICKS_VALUE = 95; + + /** + * + * + *
    +     * The total number of impressions delivered over the lifetime of the
    +     *  Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item lifetime impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_LIFETIME_IMPRESSIONS = 94; + */ + public static final int LINE_ITEM_LIFETIME_IMPRESSIONS_VALUE = 94; + + /** + * + * + *
    +     * The total number of viewable impressions delivered over the lifetime of
    +     *  the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item lifetime viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; + */ + public static final int LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS_VALUE = 96; + + /** + * + * + *
    +     * Whether or not the Line item is Makegood. Makegood refers to free
    +     *  inventory offered to buyers to compensate for mistakes or under-delivery
    +     *  in the original campaigns.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item is makegood" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * LINE_ITEM_MAKEGOOD = 89; + */ + public static final int LINE_ITEM_MAKEGOOD_VALUE = 89; + + /** + * + * + *
    +     * Line item Name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_NAME = 2; + */ + public static final int LINE_ITEM_NAME_VALUE = 2; + + /** + * + * + *
    +     * The cost of booking for the Line item (non-CPD).
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item booked revenue (exclude CPD)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; + */ + public static final int LINE_ITEM_NON_CPD_BOOKED_REVENUE_VALUE = 98; + + /** + * + * + *
    +     * Whether a Line item is eligible for opitimization.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item is optimizable" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * LINE_ITEM_OPTIMIZABLE = 90; + */ + public static final int LINE_ITEM_OPTIMIZABLE_VALUE = 90; + + /** + * + * + *
    +     * The PO number of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item PO number" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_PO_NUMBER = 669; + */ + public static final int LINE_ITEM_PO_NUMBER_VALUE = 669; + + /** + * + * + *
    +     * Goal type ENUM value of the primary goal of the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_TYPE = 210; + */ + public static final int LINE_ITEM_PRIMARY_GOAL_TYPE_VALUE = 210; + + /** + * + * + *
    +     * Localized goal type name of the primary goal of the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; + */ + public static final int LINE_ITEM_PRIMARY_GOAL_TYPE_NAME_VALUE = 211; + + /** + * + * + *
    +     * The total number of impressions or clicks that are reserved for a
    +     *  line item. For line items of type BULK or PRICE_PRIORITY, this
    +     *  represents the number of remaining impressions reserved. If the line
    +     *  item has an impression cap goal, this represents the number of
    +     *  impressions or conversions that the line item will stop serving at if
    +     *  reached.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal units (absolute)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; + */ + public static final int LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE_VALUE = 93; + + /** + * + * + *
    +     * The percentage of impressions or clicks that are reserved for a
    +     *  line item. For line items of type SPONSORSHIP, this represents the
    +     *  percentage of available impressions reserved. For line items of type
    +     *  NETWORK or HOUSE, this represents the percentage of remaining
    +     *  impressions reserved.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal units (percentage)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `WHOLE_PERCENT`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; + */ + public static final int LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE_VALUE = 396; + + /** + * + * + *
    +     * Unit type ENUM value of the primary goal of the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal unit type value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; + */ + public static final int LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_VALUE = 208; + + /** + * + * + *
    +     * Localized unit type name of the primary goal of the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item primary goal unit type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; + */ + public static final int LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME_VALUE = 209; + + /** + * + * + *
    +     * The priority of this Line item as a value between 1 and 16.
    +     *  In general, a lower priority means more serving priority for the
    +     *  Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item priority" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * LINE_ITEM_PRIORITY = 24; + */ + public static final int LINE_ITEM_PRIORITY_VALUE = 24; + + /** + * + * + *
    +     * ENUM value describing the state of inventory reservation for the
    +     *  LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item reservation status value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_RESERVATION_STATUS = 304; + */ + public static final int LINE_ITEM_RESERVATION_STATUS_VALUE = 304; + + /** + * + * + *
    +     * Localized string describing the state of inventory reservation for the
    +     *  LineItem.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item reservation status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_RESERVATION_STATUS_NAME = 305; + */ + public static final int LINE_ITEM_RESERVATION_STATUS_NAME_VALUE = 305; + + /** + * + * + *
    +     * The sales person of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item salesperson" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_SALESPERSON = 671; + */ + public static final int LINE_ITEM_SALESPERSON_VALUE = 671; + + /** + * + * + *
    +     * The secondary sales people of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item secondary salespeople" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * LINE_ITEM_SECONDARY_SALESPEOPLE = 673; + */ + public static final int LINE_ITEM_SECONDARY_SALESPEOPLE_VALUE = 673; + + /** + * + * + *
    +     * The secondary traffickers of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item secondary traffickers" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * LINE_ITEM_SECONDARY_TRAFFICKERS = 675; + */ + public static final int LINE_ITEM_SECONDARY_TRAFFICKERS_VALUE = 675; + + /** + * + * + *
    +     * The start date of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item start date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * LINE_ITEM_START_DATE = 82; + */ + public static final int LINE_ITEM_START_DATE_VALUE = 82; + + /** + * + * + *
    +     * The start date and time of the Line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item start time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `TIMESTAMP`
    +     * 
    + * + * LINE_ITEM_START_DATE_TIME = 84; + */ + public static final int LINE_ITEM_START_DATE_TIME_VALUE = 84; + + /** + * + * + *
    +     * The trafficker of the order associated with the line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item trafficker" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_TRAFFICKER = 677; + */ + public static final int LINE_ITEM_TRAFFICKER_VALUE = 677; + + /** + * + * + *
    +     * Line item type ENUM value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * LINE_ITEM_TYPE = 193; + */ + public static final int LINE_ITEM_TYPE_VALUE = 193; + + /** + * + * + *
    +     * Localized line item type name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_TYPE_NAME = 194; + */ + public static final int LINE_ITEM_TYPE_NAME_VALUE = 194; + + /** + * + * + *
    +     * Whether the Line item end time and end date is set to effectively never
    +     *  end.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item is unlimited end time" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * LINE_ITEM_UNLIMITED_END = 187; + */ + public static final int LINE_ITEM_UNLIMITED_END_VALUE = 187; + + /** + * + * + *
    +     * The artificial cost per unit used by the Ad server to help rank
    +     *  inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item value cost per unit" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * LINE_ITEM_VALUE_COST_PER_UNIT = 88; + */ + public static final int LINE_ITEM_VALUE_COST_PER_UNIT_VALUE = 88; + + /** + * + * + *
    +     * The web property code used for dynamic allocation Line Items.
    +     *
    +     *
    +     *
    +     * Corresponds to "Line item web property code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * LINE_ITEM_WEB_PROPERTY_CODE = 179; + */ + public static final int LINE_ITEM_WEB_PROPERTY_CODE_VALUE = 179; + + /** + * + * + *
    +     * The ID of creative, includes regular creatives, and master and companions
    +     *  in case of creative sets
    +     *
    +     *
    +     *
    +     * Corresponds to "Master and Companion creative ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * MASTER_COMPANION_CREATIVE_ID = 140; + */ + public static final int MASTER_COMPANION_CREATIVE_ID_VALUE = 140; + + /** + * + * + *
    +     * Name of creative, includes regular creatives, and master and companions
    +     *  in case of creative sets
    +     *
    +     *
    +     *
    +     * Corresponds to "Master and Companion creative" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MASTER_COMPANION_CREATIVE_NAME = 141; + */ + public static final int MASTER_COMPANION_CREATIVE_NAME_VALUE = 141; + + /** + * + * + *
    +     * Mediation type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mediation type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MEDIATION_TYPE = 701; + */ + public static final int MEDIATION_TYPE_VALUE = 701; + + /** + * + * + *
    +     * Localized mediation type name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mediation type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MEDIATION_TYPE_NAME = 754; + */ + public static final int MEDIATION_TYPE_NAME_VALUE = 754; + + /** + * + * + *
    +     * The ID of the yield partner for Mediation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner ID (mediation)" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * MEDIATION_YIELD_PARTNER_ID = 661; + */ + public static final int MEDIATION_YIELD_PARTNER_ID_VALUE = 661; + + /** + * + * + *
    +     * The name of the yield partner for Mediation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner (mediation)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MEDIATION_YIELD_PARTNER_NAME = 662; + */ + public static final int MEDIATION_YIELD_PARTNER_NAME_VALUE = 662; + + /** + * + * + *
    +     * The criteria ID of the metro area in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Metro ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * METRO_ID = 453; + */ + public static final int METRO_ID_VALUE = 453; + + /** + * + * + *
    +     * The name of the metro area in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Metro" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * METRO_NAME = 454; + */ + public static final int METRO_NAME_VALUE = 454; + + /** + * + * + *
    +     * Whether the mobile app is free.
    +     *
    +     *
    +     *
    +     * Corresponds to "App is free" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * MOBILE_APP_FREE = 128; + */ + public static final int MOBILE_APP_FREE_VALUE = 128; + + /** + * + * + *
    +     * URL of app icon for the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App icon URL" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_ICON_URL = 129; + */ + public static final int MOBILE_APP_ICON_URL_VALUE = 129; + + /** + * + * + *
    +     * The ID of the Mobile App.
    +     *
    +     *
    +     *
    +     * Corresponds to "App ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_ID = 123; + */ + public static final int MOBILE_APP_ID_VALUE = 123; + + /** + * + * + *
    +     * The name of the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_NAME = 127; + */ + public static final int MOBILE_APP_NAME_VALUE = 127; + + /** + * + * + *
    +     * Ownership status of the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App ownership status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MOBILE_APP_OWNERSHIP_STATUS = 311; + */ + public static final int MOBILE_APP_OWNERSHIP_STATUS_VALUE = 311; + + /** + * + * + *
    +     * Ownership status of the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App ownership status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; + */ + public static final int MOBILE_APP_OWNERSHIP_STATUS_NAME_VALUE = 312; + + /** + * + * + *
    +     * The App Store of the mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "App store value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MOBILE_APP_STORE = 125; + */ + public static final int MOBILE_APP_STORE_VALUE = 125; + + /** + * + * + *
    +     * The localized name of the mobile app store.
    +     *
    +     *
    +     *
    +     * Corresponds to "App store" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_APP_STORE_NAME = 245; + */ + public static final int MOBILE_APP_STORE_NAME_VALUE = 245; + + /** + * + * + *
    +     * Mobile inventory type.
    +     *  Identifies whether a mobile ad came from a regular web page, an AMP web
    +     *  page, or a mobile app.
    +     *  Values match the Inventory type dimension available in the Overview Home
    +     *  dashboard. Note: Video takes precedence over any other value, for
    +     *  example, if there is an in-stream video impression on a desktop device,
    +     *  it will be attributed to in-stream video and not desktop web.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MOBILE_INVENTORY_TYPE = 99; + */ + public static final int MOBILE_INVENTORY_TYPE_VALUE = 99; + + /** + * + * + *
    +     * Mobile inventory type name.
    +     *  Identifies whether a mobile ad came from a regular web page, an AMP web
    +     *  page, or a mobile app.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_INVENTORY_TYPE_NAME = 21; + */ + public static final int MOBILE_INVENTORY_TYPE_NAME_VALUE = 21; + + /** + * + * + *
    +     * Mobile rendering SDK.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rendering SDK value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * MOBILE_RENDERING_SDK = 646; + */ + public static final int MOBILE_RENDERING_SDK_VALUE = 646; + + /** + * + * + *
    +     * Localized name of the Mobile rendering SDK.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rendering SDK" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_RENDERING_SDK_NAME = 647; + */ + public static final int MOBILE_RENDERING_SDK_NAME_VALUE = 647; + + /** + * + * + *
    +     * The major version of the mobile SDK.
    +     *
    +     *
    +     *
    +     * Corresponds to "App SDK major version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MOBILE_SDK_MAJOR_VERSION = 692; + */ + public static final int MOBILE_SDK_MAJOR_VERSION_VALUE = 692; + + /** + * + * + *
    +     * The minor version of the mobile SDK.
    +     *
    +     *
    +     *
    +     * Corresponds to "App SDK minor version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MOBILE_SDK_MINOR_VERSION = 693; + */ + public static final int MOBILE_SDK_MINOR_VERSION_VALUE = 693; + + /** + * + * + *
    +     * SDK version of the mobile device.
    +     *
    +     *
    +     *
    +     * Corresponds to "App SDK version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * MOBILE_SDK_VERSION_NAME = 130; + */ + public static final int MOBILE_SDK_VERSION_NAME_VALUE = 130; + + /** + * + * + *
    +     * Breaks down reporting data by month and year.
    +     *
    +     *
    +     *
    +     * Corresponds to "Month and year" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MONTH_YEAR = 6; + */ + public static final int MONTH_YEAR_VALUE = 6; + + /** + * + * + *
    +     * Native ad format ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Native ad format ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * NATIVE_AD_FORMAT_ID = 255; + */ + public static final int NATIVE_AD_FORMAT_ID_VALUE = 255; + + /** + * + * + *
    +     * Native ad format name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Native ad format" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * NATIVE_AD_FORMAT_NAME = 254; + */ + public static final int NATIVE_AD_FORMAT_NAME_VALUE = 254; + + /** + * + * + *
    +     * Native style ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Native style ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * NATIVE_STYLE_ID = 253; + */ + public static final int NATIVE_STYLE_ID_VALUE = 253; + + /** + * + * + *
    +     * Native style name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Native style" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * NATIVE_STYLE_NAME = 252; + */ + public static final int NATIVE_STYLE_NAME_VALUE = 252; + + /** + * + * + *
    +     * No fill reason category in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "No fill reason category value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * NO_FILL_REASON_CATEGORY = 586; + */ + public static final int NO_FILL_REASON_CATEGORY_VALUE = 586; + + /** + * + * + *
    +     * No fill reason category name in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "No fill reason category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * NO_FILL_REASON_CATEGORY_NAME = 587; + */ + public static final int NO_FILL_REASON_CATEGORY_NAME_VALUE = 587; + + /** + * + * + *
    +     * Operating system category.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system category value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * OPERATING_SYSTEM_CATEGORY = 117; + */ + public static final int OPERATING_SYSTEM_CATEGORY_VALUE = 117; + + /** + * + * + *
    +     * Operating system category name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * OPERATING_SYSTEM_CATEGORY_NAME = 118; + */ + public static final int OPERATING_SYSTEM_CATEGORY_NAME_VALUE = 118; + + /** + * + * + *
    +     * ID of the operating system version.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * OPERATING_SYSTEM_VERSION_ID = 238; + */ + public static final int OPERATING_SYSTEM_VERSION_ID_VALUE = 238; + + /** + * + * + *
    +     * Details of the operating system, including version.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * OPERATING_SYSTEM_VERSION_NAME = 237; + */ + public static final int OPERATING_SYSTEM_VERSION_NAME_VALUE = 237; + + /** + * + * + *
    +     * Enum value of the optimization type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Optimization type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * OPTIMIZATION_TYPE = 639; + */ + public static final int OPTIMIZATION_TYPE_VALUE = 639; + + /** + * + * + *
    +     * Localized name of the optimization type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Optimization type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * OPTIMIZATION_TYPE_NAME = 640; + */ + public static final int OPTIMIZATION_TYPE_NAME_VALUE = 640; + + /** + * + * + *
    +     * Order agency.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order agency" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_AGENCY = 150; + */ + public static final int ORDER_AGENCY_VALUE = 150; + + /** + * + * + *
    +     * Order agency ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order agency ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_AGENCY_ID = 151; + */ + public static final int ORDER_AGENCY_ID_VALUE = 151; + + /** + * + * + *
    +     * Order booked CPC.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order booked CPC" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ORDER_BOOKED_CPC = 152; + */ + public static final int ORDER_BOOKED_CPC_VALUE = 152; + + /** + * + * + *
    +     * Order booked CPM.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order booked CPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ORDER_BOOKED_CPM = 153; + */ + public static final int ORDER_BOOKED_CPM_VALUE = 153; + + /** + * + * + *
    +     * Order delivery status ENUM value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order delivery status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * ORDER_DELIVERY_STATUS = 231; + */ + public static final int ORDER_DELIVERY_STATUS_VALUE = 231; + + /** + * + * + *
    +     * Order delivery status localized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order delivery status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_DELIVERY_STATUS_NAME = 239; + */ + public static final int ORDER_DELIVERY_STATUS_NAME_VALUE = 239; + + /** + * + * + *
    +     * Order end date.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order end date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * ORDER_END_DATE = 154; + */ + public static final int ORDER_END_DATE_VALUE = 154; + + /** + * + * + *
    +     * Order end date and time.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order end time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `TIMESTAMP`
    +     * 
    + * + * ORDER_END_DATE_TIME = 155; + */ + public static final int ORDER_END_DATE_TIME_VALUE = 155; + + /** + * + * + *
    +     * Order external ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order external ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_EXTERNAL_ID = 156; + */ + public static final int ORDER_EXTERNAL_ID_VALUE = 156; + + /** + * + * + *
    +     * Order ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_ID = 7; + */ + public static final int ORDER_ID_VALUE = 7; + + /** + * + * + *
    +     * Order labels.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order labels" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * ORDER_LABELS = 170; + */ + public static final int ORDER_LABELS_VALUE = 170; + + /** + * + * + *
    +     * Order labels IDs.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order label IDs" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * ORDER_LABEL_IDS = 171; + */ + public static final int ORDER_LABEL_IDS_VALUE = 171; + + /** + * + * + *
    +     * Order lifetime clicks.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order lifetime clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ORDER_LIFETIME_CLICKS = 158; + */ + public static final int ORDER_LIFETIME_CLICKS_VALUE = 158; + + /** + * + * + *
    +     * Order lifetime impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order lifetime impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ORDER_LIFETIME_IMPRESSIONS = 159; + */ + public static final int ORDER_LIFETIME_IMPRESSIONS_VALUE = 159; + + /** + * + * + *
    +     * Order name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_NAME = 8; + */ + public static final int ORDER_NAME_VALUE = 8; + + /** + * + * + *
    +     * Order PO number.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order PO number" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_PO_NUMBER = 160; + */ + public static final int ORDER_PO_NUMBER_VALUE = 160; + + /** + * + * + *
    +     * Whether the Order is programmatic.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order is programmatic" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * ORDER_PROGRAMMATIC = 157; + */ + public static final int ORDER_PROGRAMMATIC_VALUE = 157; + + /** + * + * + *
    +     * Order sales person.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order salesperson" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_SALESPERSON = 161; + */ + public static final int ORDER_SALESPERSON_VALUE = 161; + + /** + * + * + *
    +     * Order sales person ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order salesperson ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_SALESPERSON_ID = 629; + */ + public static final int ORDER_SALESPERSON_ID_VALUE = 629; + + /** + * + * + *
    +     * Order secondary sales people.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order secondary salespeople" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * ORDER_SECONDARY_SALESPEOPLE = 164; + */ + public static final int ORDER_SECONDARY_SALESPEOPLE_VALUE = 164; + + /** + * + * + *
    +     * Order secondary sales people ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order secondary salespeople ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * ORDER_SECONDARY_SALESPEOPLE_ID = 165; + */ + public static final int ORDER_SECONDARY_SALESPEOPLE_ID_VALUE = 165; + + /** + * + * + *
    +     * Order secondary traffickers.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order secondary traffickers" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * ORDER_SECONDARY_TRAFFICKERS = 166; + */ + public static final int ORDER_SECONDARY_TRAFFICKERS_VALUE = 166; + + /** + * + * + *
    +     * Order secondary traffickers ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order secondary trafficker IDs" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * ORDER_SECONDARY_TRAFFICKERS_ID = 167; + */ + public static final int ORDER_SECONDARY_TRAFFICKERS_ID_VALUE = 167; + + /** + * + * + *
    +     * Order start date.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order start date" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `DATE`
    +     * 
    + * + * ORDER_START_DATE = 168; + */ + public static final int ORDER_START_DATE_VALUE = 168; + + /** + * + * + *
    +     * Order start date and time.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order start time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `AD_SPEED`
    +     *
    +     * Data format: `TIMESTAMP`
    +     * 
    + * + * ORDER_START_DATE_TIME = 169; + */ + public static final int ORDER_START_DATE_TIME_VALUE = 169; + + /** + * + * + *
    +     * Order trafficker.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order trafficker" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * ORDER_TRAFFICKER = 162; + */ + public static final int ORDER_TRAFFICKER_VALUE = 162; + + /** + * + * + *
    +     * Order trafficker ID.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order trafficker ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * ORDER_TRAFFICKER_ID = 163; + */ + public static final int ORDER_TRAFFICKER_ID_VALUE = 163; + + /** + * + * + *
    +     * Whether the Order end time and end date is set to effectively never
    +     *  end.
    +     *
    +     *
    +     *
    +     * Corresponds to "Order is unlimited end time" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * ORDER_UNLIMITED_END = 203; + */ + public static final int ORDER_UNLIMITED_END_VALUE = 203; + + /** + * + * + *
    +     * Page path is the part of a page URL that comes after the domain but
    +     *  before the query strings from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page path" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PAGE_PATH = 511; + */ + public static final int PAGE_PATH_VALUE = 511; + + /** + * + * + *
    +     * Page title (web) and screen class (mobile) returned from Google
    +     *  Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page title and screen class" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PAGE_TITLE_AND_SCREEN_CLASS = 512; + */ + public static final int PAGE_TITLE_AND_SCREEN_CLASS_VALUE = 512; + + /** + * + * + *
    +     * Page title (web) and screen name (mobile) returned from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page title and screen name" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PAGE_TITLE_AND_SCREEN_NAME = 513; + */ + public static final int PAGE_TITLE_AND_SCREEN_NAME_VALUE = 513; + + /** + * + * + *
    +     * Placement ID
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * PLACEMENT_ID = 113; + */ + public static final int PLACEMENT_ID_VALUE = 113; + + /** + * + * + *
    +     * The full list of placement IDs associated with the ad unit.
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement ID (all)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * PLACEMENT_ID_ALL = 144; + */ + public static final int PLACEMENT_ID_ALL_VALUE = 144; + + /** + * + * + *
    +     * Placement name
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PLACEMENT_NAME = 114; + */ + public static final int PLACEMENT_NAME_VALUE = 114; + + /** + * + * + *
    +     * The full list of placement names associated with the ad unit.
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement (all)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PLACEMENT_NAME_ALL = 145; + */ + public static final int PLACEMENT_NAME_ALL_VALUE = 145; + + /** + * + * + *
    +     * Placement status ENUM value
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PLACEMENT_STATUS = 362; + */ + public static final int PLACEMENT_STATUS_VALUE = 362; + + /** + * + * + *
    +     * Localized placement status name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PLACEMENT_STATUS_NAME = 364; + */ + public static final int PLACEMENT_STATUS_NAME_VALUE = 364; + + /** + * + * + *
    +     * The full list of localized placement status names associated with the ad
    +     *  unit.
    +     *
    +     *
    +     *
    +     * Corresponds to "Placement status (all)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PLACEMENT_STATUS_NAME_ALL = 365; + */ + public static final int PLACEMENT_STATUS_NAME_ALL_VALUE = 365; + + /** + * + * + *
    +     * The criteria ID of the postal code in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Postal code ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * POSTAL_CODE_ID = 455; + */ + public static final int POSTAL_CODE_ID_VALUE = 455; + + /** + * + * + *
    +     * The name of the postal code in which the ad served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Postal code" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * POSTAL_CODE_NAME = 456; + */ + public static final int POSTAL_CODE_NAME_VALUE = 456; + + /** + * + * + *
    +     * Indicates the valid PPID (Publisher provided identifier) status on a
    +     *  given ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "PPID status value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PPID_STATUS = 406; + */ + public static final int PPID_STATUS_VALUE = 406; + + /** + * + * + *
    +     * The localized name of that indicates the valid PPID (Publisher provided
    +     *  identifier) status on a given ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "PPID status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PPID_STATUS_NAME = 407; + */ + public static final int PPID_STATUS_NAME_VALUE = 407; + + /** + * + * + *
    +     * Predicted viewability score bucket.
    +     *
    +     *
    +     *
    +     * Corresponds to "Predicted viewability bucket value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PREDICTED_VIEWABILITY_BUCKET = 633; + */ + public static final int PREDICTED_VIEWABILITY_BUCKET_VALUE = 633; + + /** + * + * + *
    +     * The localized name of the predicted viewability score bucket.
    +     *
    +     *
    +     *
    +     * Corresponds to "Predicted viewability bucket" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PREDICTED_VIEWABILITY_BUCKET_NAME = 634; + */ + public static final int PREDICTED_VIEWABILITY_BUCKET_NAME_VALUE = 634; + + /** + * + * + *
    +     * The ID of the secure signals sent in the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal ID (presented)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * PRESENTED_SECURE_SIGNAL_ID = 495; + */ + public static final int PRESENTED_SECURE_SIGNAL_ID_VALUE = 495; + + /** + * + * + *
    +     * The name of the secure signals sent in the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Secure signal name (presented)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PRESENTED_SECURE_SIGNAL_NAME = 496; + */ + public static final int PRESENTED_SECURE_SIGNAL_NAME_VALUE = 496; + + /** + * + * + *
    +     * The ID type selected for personalization.
    +     *
    +     *
    +     *
    +     * Corresponds to "Primary personalization ID type value" in the Ad Manager
    +     * UI (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PRIMARY_PERSONALIZATION_ID_TYPE = 408; + */ + public static final int PRIMARY_PERSONALIZATION_ID_TYPE_VALUE = 408; + + /** + * + * + *
    +     * The localized name of the ID type selected for personalization.
    +     *
    +     *
    +     *
    +     * Corresponds to "Primary personalization ID type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PRIMARY_PERSONALIZATION_ID_TYPE_NAME = 409; + */ + public static final int PRIMARY_PERSONALIZATION_ID_TYPE_NAME_VALUE = 409; + + /** + * + * + *
    +     * Deprecated. Dimension has been renamed to `DEAL_BUYER_ID`.
    +     * The server will normalize any requests using this value to
    +     * `DEAL_BUYER_ID`.
    +     * This value will be removed on or after October 10, 2025.
    +     * 
    + * + * PROGRAMMATIC_BUYER_ID = 240 [deprecated = true]; + */ + @java.lang.Deprecated public static final int PROGRAMMATIC_BUYER_ID_VALUE = 240; + + /** + * + * + *
    +     * Deprecated. Dimension has been renamed to `DEAL_BUYER_NAME`.
    +     * The server will normalize any requests using this value to
    +     * `DEAL_BUYER_NAME`.
    +     * This value will be removed on or after October 10, 2025.
    +     * 
    + * + * PROGRAMMATIC_BUYER_NAME = 241 [deprecated = true]; + */ + @java.lang.Deprecated public static final int PROGRAMMATIC_BUYER_NAME_VALUE = 241; + + /** + * + * + *
    +     * Programmatic channel.
    +     *  The type of transaction that occurred in Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic channel value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * PROGRAMMATIC_CHANNEL = 13; + */ + public static final int PROGRAMMATIC_CHANNEL_VALUE = 13; + + /** + * + * + *
    +     * Programmatic channel name.
    +     *  The type of transaction that occurred in Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic channel" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PROGRAMMATIC_CHANNEL_NAME = 14; + */ + public static final int PROGRAMMATIC_CHANNEL_NAME_VALUE = 14; + + /** + * + * + *
    +     * External code ID of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals external code (all levels)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE = 410; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE_VALUE = 410; + + /** + * + * + *
    +     * The ancestor chain of IDs of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals ID (all levels)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS = 546; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS_VALUE = 546; + + /** + * + * + *
    +     * The ancestor chain of names of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (all levels)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME = 412; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME_VALUE = 412; + + /** + * + * + *
    +     * Tier of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals tier (all levels)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER = 413; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER_VALUE = 413; + + /** + * + * + *
    +     * Type of a publisher provided signal (all levels).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals type (all levels)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE = 414; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE_VALUE = 414; + + /** + * + * + *
    +     * External code ID of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals external code (delivered)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE = 425; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE_VALUE = 425; + + /** + * + * + *
    +     * The ancestor chain of IDs of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals ID (delivered)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS = 545; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS_VALUE = 545; + + /** + * + * + *
    +     * The ancestor chain of names of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (delivered)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME = 427; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME_VALUE = 427; + + /** + * + * + *
    +     * Tier of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals tier (delivered)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER = 428; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER_VALUE = 428; + + /** + * + * + *
    +     * Type of a publisher provided signal (delivered).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals type (delivered)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE = 429; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE_VALUE = 429; + + /** + * + * + *
    +     * External code ID of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals external code (top level)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE = 415; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE_VALUE = 415; + + /** + * + * + *
    +     * ID of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals ID (top level)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID = 416; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID_VALUE = 416; + + /** + * + * + *
    +     * Name of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (top level)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING_LIST`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME = 417; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME_VALUE = 417; + + /** + * + * + *
    +     * Tier of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals tier (top level)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER = 418; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER_VALUE = 418; + + /** + * + * + *
    +     * Type of a publisher provided signal (top level).
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals type (top level)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE = 419; + */ + public static final int PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE_VALUE = 419; + + /** + * + * + *
    +     * Data provider ID associated with a publisher provided signal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (data provider ID)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID = 136; + */ + public static final int PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID_VALUE = 136; + + /** + * + * + *
    +     * Data provider name associated with a publisher provided signal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Publisher provided signals (data provider)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME = 137; + */ + public static final int PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME_VALUE = 137; + + /** + * + * + *
    +     * The criteria ID of the region (for example, US state) in which the ad
    +     *  served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Region ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * REGION_ID = 457; + */ + public static final int REGION_ID_VALUE = 457; + + /** + * + * + *
    +     * The name of the region (for example, US state) in which the ad
    +     *  served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Region" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * REGION_NAME = 458; + */ + public static final int REGION_NAME_VALUE = 458; + + /** + * + * + *
    +     * The rejection class category in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejection class category value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * REJECTION_CLASS_CATEGORY = 590; + */ + public static final int REJECTION_CLASS_CATEGORY_VALUE = 590; + + /** + * + * + *
    +     * The rejection class category name in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejection class category" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * REJECTION_CLASS_CATEGORY_NAME = 591; + */ + public static final int REJECTION_CLASS_CATEGORY_NAME_VALUE = 591; + + /** + * + * + *
    +     * The size of a rendered creative, It can differ with the creative's size
    +     *  if a creative is shown in an ad slot of a different size.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rendered creative size" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * RENDERED_CREATIVE_SIZE = 343; + */ + public static final int RENDERED_CREATIVE_SIZE_VALUE = 343; + + /** + * + * + *
    +     * Inventory Requested Ad Sizes dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Requested ad sizes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * REQUESTED_AD_SIZES = 352; + */ + public static final int REQUESTED_AD_SIZES_VALUE = 352; + + /** + * + * + *
    +     * Request type ENUM
    +     *
    +     *
    +     *
    +     * Corresponds to "Request type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * REQUEST_TYPE = 146; + */ + public static final int REQUEST_TYPE_VALUE = 146; + + /** + * + * + *
    +     * Request type locallized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Request type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * REQUEST_TYPE_NAME = 147; + */ + public static final int REQUEST_TYPE_NAME_VALUE = 147; + + /** + * + * + *
    +     * Indicates if a request was eligible for server-side unwrapping.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping eligible" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `BOOLEAN`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; + */ + public static final int SERVER_SIDE_UNWRAPPING_ELIGIBLE_VALUE = 597; + + /** + * + * + *
    +     * The serving restriction mode for privacy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Serving restriction value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * SERVING_RESTRICTION = 631; + */ + public static final int SERVING_RESTRICTION_VALUE = 631; + + /** + * + * + *
    +     * The localized name of the serving restriction mode for privacy.
    +     *
    +     *
    +     *
    +     * Corresponds to "Serving restriction" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * SERVING_RESTRICTION_NAME = 632; + */ + public static final int SERVING_RESTRICTION_NAME_VALUE = 632; + + /** + * + * + *
    +     * Information about domain or subdomains.
    +     *
    +     *
    +     *
    +     * Corresponds to "Site" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * SITE = 387; + */ + public static final int SITE_VALUE = 387; + + /** + * + * + *
    +     * The ID of the browser, device or other environment into which a line item
    +     *  or creative was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeting ID" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * TARGETING_ID = 232; + */ + public static final int TARGETING_ID_VALUE = 232; + + /** + * + * + *
    +     * Information about the browser, device and other environments into which
    +     *  a line item or creative was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeting" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TARGETING_NAME = 233; + */ + public static final int TARGETING_NAME_VALUE = 233; + + /** + * + * + *
    +     * The way in which advertisers targeted their ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeting type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * TARGETING_TYPE = 385; + */ + public static final int TARGETING_TYPE_VALUE = 385; + + /** + * + * + *
    +     * The localized name of the way in which advertisers targeted their ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeting type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TARGETING_TYPE_NAME = 386; + */ + public static final int TARGETING_TYPE_NAME_VALUE = 386; + + /** + * + * + *
    +     * Whether a third-party cookie or device ID was present on a given ad
    +     *  request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Third-party ID status value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * THIRD_PARTY_ID_STATUS = 402; + */ + public static final int THIRD_PARTY_ID_STATUS_VALUE = 402; + + /** + * + * + *
    +     * The localized name of whether a third-party cookie or device ID was
    +     *  present on a given ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Third-party ID status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * THIRD_PARTY_ID_STATUS_NAME = 403; + */ + public static final int THIRD_PARTY_ID_STATUS_NAME_VALUE = 403; + + /** + * + * + *
    +     * Reports the status of Topics in the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Topics status value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * TOPICS_STATUS = 504; + */ + public static final int TOPICS_STATUS_VALUE = 504; + + /** + * + * + *
    +     * The localized name of the status of Topics in the ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Topics status" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TOPICS_STATUS_NAME = 505; + */ + public static final int TOPICS_STATUS_NAME_VALUE = 505; + + /** + * + * + *
    +     * Inventory top private domain dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Domain" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TOP_PRIVATE_DOMAIN = 444; + */ + public static final int TOP_PRIVATE_DOMAIN_VALUE = 444; + + /** + * + * + *
    +     * Inventory Traffic source dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Traffic source value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * TRAFFIC_SOURCE = 388; + */ + public static final int TRAFFIC_SOURCE_VALUE = 388; + + /** + * + * + *
    +     * Inventory Traffic source dimension name
    +     *
    +     *
    +     *
    +     * Corresponds to "Traffic source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * TRAFFIC_SOURCE_NAME = 389; + */ + public static final int TRAFFIC_SOURCE_NAME_VALUE = 389; + + /** + * + * + *
    +     * Unified pricing rule ID dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Unified pricing rule ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * UNIFIED_PRICING_RULE_ID = 393; + */ + public static final int UNIFIED_PRICING_RULE_ID_VALUE = 393; + + /** + * + * + *
    +     * Unified pricing rule name dimension
    +     *
    +     *
    +     *
    +     * Corresponds to "Unified pricing rule" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * UNIFIED_PRICING_RULE_NAME = 394; + */ + public static final int UNIFIED_PRICING_RULE_NAME_VALUE = 394; + + /** + * + * + *
    +     * A URL defined under a publisher's inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "URL" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * URL = 506; + */ + public static final int URL_VALUE = 506; + + /** + * + * + *
    +     * A URL defined under a publisher's inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "URL ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * URL_ID = 507; + */ + public static final int URL_ID_VALUE = 507; + + /** + * + * + *
    +     * Enum value for the entitlement source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Entitlement source value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * USER_MESSAGES_ENTITLEMENT_SOURCE = 635; + */ + public static final int USER_MESSAGES_ENTITLEMENT_SOURCE_VALUE = 635; + + /** + * + * + *
    +     * The localized name of the entitlement source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Entitlement source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * USER_MESSAGES_ENTITLEMENT_SOURCE_NAME = 636; + */ + public static final int USER_MESSAGES_ENTITLEMENT_SOURCE_NAME_VALUE = 636; + + /** + * + * + *
    +     * Targeting criteria ID for the operating system group. Used for User
    +     *  Messages reports.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system group ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID = 637; + */ + public static final int USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID_VALUE = 637; + + /** + * + * + *
    +     * The name of the operating system group. Used for User Messages reports.
    +     *
    +     *
    +     *
    +     * Corresponds to "Operating system group" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME = 638; + */ + public static final int USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME_VALUE = 638; + + /** + * + * + *
    +     * The VAST version of the creative that is returned for an ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Vast version value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VAST_VERSION = 554; + */ + public static final int VAST_VERSION_VALUE = 554; + + /** + * + * + *
    +     * The localized name of the VAST version of the creative that is returned
    +     *  for an ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Vast version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VAST_VERSION_NAME = 555; + */ + public static final int VAST_VERSION_NAME_VALUE = 555; + + /** + * + * + *
    +     * The break type of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad break type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_AD_BREAK_TYPE = 556; + */ + public static final int VIDEO_AD_BREAK_TYPE_VALUE = 556; + + /** + * + * + *
    +     * The localized name of the break type of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad break type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_BREAK_TYPE_NAME = 557; + */ + public static final int VIDEO_AD_BREAK_TYPE_NAME_VALUE = 557; + + /** + * + * + *
    +     * Video ad duration
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad duration" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_DURATION = 450; + */ + public static final int VIDEO_AD_DURATION_VALUE = 450; + + /** + * + * + *
    +     * The name of the video ad formats rule used to control the ad formats
    +     *  eligible for your inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad formats rule" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_FORMATS_RULE = 561; + */ + public static final int VIDEO_AD_FORMATS_RULE_VALUE = 561; + + /** + * + * + *
    +     * The ID of the video ad formats rule used to control the ad formats
    +     *  eligible for your inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad formats rule ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * VIDEO_AD_FORMATS_RULE_ID = 560; + */ + public static final int VIDEO_AD_FORMATS_RULE_ID_VALUE = 560; + + /** + * + * + *
    +     * The duration of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad request duration value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_AD_REQUEST_DURATION = 558; + */ + public static final int VIDEO_AD_REQUEST_DURATION_VALUE = 558; + + /** + * + * + *
    +     * The localized name of the midpoint of the duration of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad request duration midpoint" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME = 751; + */ + public static final int VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME_VALUE = 751; + + /** + * + * + *
    +     * The localized name of the duration of a video ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad request duration" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_REQUEST_DURATION_NAME = 559; + */ + public static final int VIDEO_AD_REQUEST_DURATION_NAME_VALUE = 559; + + /** + * + * + *
    +     * The video ad request source enum.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad request source value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_AD_REQUEST_SOURCE = 438; + */ + public static final int VIDEO_AD_REQUEST_SOURCE_VALUE = 438; + + /** + * + * + *
    +     * The localized name of the video ad request source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad request source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_REQUEST_SOURCE_NAME = 439; + */ + public static final int VIDEO_AD_REQUEST_SOURCE_NAME_VALUE = 439; + + /** + * + * + *
    +     * Video ad type
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad type value" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_AD_TYPE = 432; + */ + public static final int VIDEO_AD_TYPE_VALUE = 432; + + /** + * + * + *
    +     * Video ad type localized name
    +     *
    +     *
    +     *
    +     * Corresponds to "Video ad type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_AD_TYPE_NAME = 433; + */ + public static final int VIDEO_AD_TYPE_NAME_VALUE = 433; + + /** + * + * + *
    +     * The continuous play type of the video ad impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video continuous play type value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_CONTINUOUS_PLAY_TYPE = 721; + */ + public static final int VIDEO_CONTINUOUS_PLAY_TYPE_VALUE = 721; + + /** + * + * + *
    +     * Video continuous play type localized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video continuous play type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_CONTINUOUS_PLAY_TYPE_NAME = 722; + */ + public static final int VIDEO_CONTINUOUS_PLAY_TYPE_NAME_VALUE = 722; + + /** + * + * + *
    +     * Fallback position of the video ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Fallback position" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_FALLBACK_POSITION = 530; + */ + public static final int VIDEO_FALLBACK_POSITION_VALUE = 530; + + /** + * + * + *
    +     * The performance of the video ad inventory broken out by source.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video measurement source value" in the Ad Manager UI
    +     * (when showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_MEASUREMENT_SOURCE = 601; + */ + public static final int VIDEO_MEASUREMENT_SOURCE_VALUE = 601; + + /** + * + * + *
    +     * Video measurement source localized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video measurement source" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_MEASUREMENT_SOURCE_NAME = 602; + */ + public static final int VIDEO_MEASUREMENT_SOURCE_NAME_VALUE = 602; + + /** + * + * + *
    +     * The video placement enum as defined by ADCOM 1.0-202303.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video placement value (new)" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_PLCMT = 172; + */ + public static final int VIDEO_PLCMT_VALUE = 172; + + /** + * + * + *
    +     * The localized name of the video placement as defined by ADCOM 1.0-202303.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video placement (new)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_PLCMT_NAME = 173; + */ + public static final int VIDEO_PLCMT_NAME_VALUE = 173; + + /** + * + * + *
    +     * The position in the video pod. For example 0, 1, 2, etc.
    +     *
    +     *
    +     *
    +     * Corresponds to "Position in pod" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_POSITION_IN_POD = 538; + */ + public static final int VIDEO_POSITION_IN_POD_VALUE = 538; + + /** + * + * + *
    +     * The position of the pod in the video stream. For example pre-roll,
    +     *  mid-roll, post-roll.
    +     *
    +     *
    +     *
    +     * Corresponds to "Position of pod" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_POSITION_OF_POD = 539; + */ + public static final int VIDEO_POSITION_OF_POD_VALUE = 539; + + /** + * + * + *
    +     * The video SDK version enum.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video SDK version value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_SDK_VERSION = 440; + */ + public static final int VIDEO_SDK_VERSION_VALUE = 440; + + /** + * + * + *
    +     * The localized name of the video SDK version.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video SDK version" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_SDK_VERSION_NAME = 441; + */ + public static final int VIDEO_SDK_VERSION_NAME_VALUE = 441; + + /** + * + * + *
    +     * Video stitcher type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video stitcher type value" in the Ad Manager UI (when
    +     * showing API fields).
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * VIDEO_STITCHER_TYPE = 752; + */ + public static final int VIDEO_STITCHER_TYPE_VALUE = 752; + + /** + * + * + *
    +     * Localized name of the video stitcher type.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video stitcher type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * VIDEO_STITCHER_TYPE_NAME = 753; + */ + public static final int VIDEO_STITCHER_TYPE_NAME_VALUE = 753; + + /** + * + * + *
    +     * Breaks down reporting data by week of the year.
    +     *
    +     *
    +     *
    +     * Corresponds to "Week" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`, `REACH`,
    +     * `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * WEEK = 5; + */ + public static final int WEEK_VALUE = 5; + + /** + * + * + *
    +     * Name of the company within a yield group
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield partner" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YIELD_GROUP_BUYER_NAME = 184; + */ + public static final int YIELD_GROUP_BUYER_NAME_VALUE = 184; + + /** + * + * + *
    +     * Tag of the company within a yield group.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group buyer tag" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YIELD_GROUP_BUYER_TAG_NAME = 627; + */ + public static final int YIELD_GROUP_BUYER_TAG_NAME_VALUE = 627; + + /** + * + * + *
    +     * ID of the group of ad networks or exchanges used for Mediation and Open
    +     *  Bidding
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group ID" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `IDENTIFIER`
    +     * 
    + * + * YIELD_GROUP_ID = 182; + */ + public static final int YIELD_GROUP_ID_VALUE = 182; + + /** + * + * + *
    +     * Name of the group of ad networks or exchanges used for Mediation and Open
    +     *  Bidding
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YIELD_GROUP_NAME = 183; + */ + public static final int YIELD_GROUP_NAME_VALUE = 183; + + /** + * + * + *
    +     * YouTube instream ad duration bucket.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad duration value" in the Ad Manager UI (when showing API
    +     * fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * YOUTUBE_AD_DURATION_BUCKET = 430; + */ + public static final int YOUTUBE_AD_DURATION_BUCKET_VALUE = 430; + + /** + * + * + *
    +     * YouTube instream ad duration bucket name.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad duration" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YOUTUBE_AD_DURATION_BUCKET_NAME = 431; + */ + public static final int YOUTUBE_AD_DURATION_BUCKET_NAME_VALUE = 431; + + /** + * + * + *
    +     * YouTube instream Ad Type.
    +     *
    +     *
    +     *
    +     * Corresponds to "YouTube ad type ID" in the Ad Manager UI (when showing
    +     * API fields).
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `ENUM`
    +     * 
    + * + * YOUTUBE_AD_TYPE = 399; + */ + public static final int YOUTUBE_AD_TYPE_VALUE = 399; + + /** + * + * + *
    +     * YouTube instream Ad Type locallized name.
    +     *
    +     *
    +     *
    +     * Corresponds to "YouTube ad type" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `STRING`
    +     * 
    + * + * YOUTUBE_AD_TYPE_NAME = 400; + */ + public static final int YOUTUBE_AD_TYPE_NAME_VALUE = 400; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID_VALUE = 10000; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID_VALUE = 10001; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID_VALUE = 10002; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID_VALUE = 10003; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID_VALUE = 10004; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID_VALUE = 10005; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID_VALUE = 10006; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID_VALUE = 10007; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID_VALUE = 10008; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID_VALUE = 10009; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID_VALUE = 10010; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID_VALUE = 10011; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID_VALUE = 10012; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID_VALUE = 10013; + + /** + * + * + *
    +     * Custom field option ID for Line Item with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID_VALUE = 10014; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 0 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_0_VALUE_VALUE = 11000; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 1 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_1_VALUE_VALUE = 11001; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 2 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_2_VALUE_VALUE = 11002; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 3 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_3_VALUE_VALUE = 11003; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 4 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_4_VALUE_VALUE = 11004; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 5 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_5_VALUE_VALUE = 11005; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 6 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_6_VALUE_VALUE = 11006; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 7 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_7_VALUE_VALUE = 11007; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 8 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_8_VALUE_VALUE = 11008; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 9 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_9_VALUE_VALUE = 11009; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 10 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_10_VALUE_VALUE = 11010; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 11 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_11_VALUE_VALUE = 11011; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 12 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_12_VALUE_VALUE = 11012; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 13 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_13_VALUE_VALUE = 11013; + + /** + * + * + *
    +     * Custom field value for Line Item with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 14 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; + */ + public static final int LINE_ITEM_CUSTOM_FIELD_14_VALUE_VALUE = 11014; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; + */ + public static final int ORDER_CUSTOM_FIELD_0_OPTION_ID_VALUE = 12000; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; + */ + public static final int ORDER_CUSTOM_FIELD_1_OPTION_ID_VALUE = 12001; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; + */ + public static final int ORDER_CUSTOM_FIELD_2_OPTION_ID_VALUE = 12002; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; + */ + public static final int ORDER_CUSTOM_FIELD_3_OPTION_ID_VALUE = 12003; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; + */ + public static final int ORDER_CUSTOM_FIELD_4_OPTION_ID_VALUE = 12004; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; + */ + public static final int ORDER_CUSTOM_FIELD_5_OPTION_ID_VALUE = 12005; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; + */ + public static final int ORDER_CUSTOM_FIELD_6_OPTION_ID_VALUE = 12006; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; + */ + public static final int ORDER_CUSTOM_FIELD_7_OPTION_ID_VALUE = 12007; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; + */ + public static final int ORDER_CUSTOM_FIELD_8_OPTION_ID_VALUE = 12008; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; + */ + public static final int ORDER_CUSTOM_FIELD_9_OPTION_ID_VALUE = 12009; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; + */ + public static final int ORDER_CUSTOM_FIELD_10_OPTION_ID_VALUE = 12010; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; + */ + public static final int ORDER_CUSTOM_FIELD_11_OPTION_ID_VALUE = 12011; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; + */ + public static final int ORDER_CUSTOM_FIELD_12_OPTION_ID_VALUE = 12012; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; + */ + public static final int ORDER_CUSTOM_FIELD_13_OPTION_ID_VALUE = 12013; + + /** + * + * + *
    +     * Custom field option ID for Order with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; + */ + public static final int ORDER_CUSTOM_FIELD_14_OPTION_ID_VALUE = 12014; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 0 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_0_VALUE = 13000; + */ + public static final int ORDER_CUSTOM_FIELD_0_VALUE_VALUE = 13000; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 1 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_1_VALUE = 13001; + */ + public static final int ORDER_CUSTOM_FIELD_1_VALUE_VALUE = 13001; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 2 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_2_VALUE = 13002; + */ + public static final int ORDER_CUSTOM_FIELD_2_VALUE_VALUE = 13002; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 3 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_3_VALUE = 13003; + */ + public static final int ORDER_CUSTOM_FIELD_3_VALUE_VALUE = 13003; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 4 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_4_VALUE = 13004; + */ + public static final int ORDER_CUSTOM_FIELD_4_VALUE_VALUE = 13004; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 5 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_5_VALUE = 13005; + */ + public static final int ORDER_CUSTOM_FIELD_5_VALUE_VALUE = 13005; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 6 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_6_VALUE = 13006; + */ + public static final int ORDER_CUSTOM_FIELD_6_VALUE_VALUE = 13006; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 7 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_7_VALUE = 13007; + */ + public static final int ORDER_CUSTOM_FIELD_7_VALUE_VALUE = 13007; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 8 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_8_VALUE = 13008; + */ + public static final int ORDER_CUSTOM_FIELD_8_VALUE_VALUE = 13008; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value
    +     * as a string. Can only be used if the custom field at index 9 is of type
    +     * STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_9_VALUE = 13009; + */ + public static final int ORDER_CUSTOM_FIELD_9_VALUE_VALUE = 13009; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 10 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_10_VALUE = 13010; + */ + public static final int ORDER_CUSTOM_FIELD_10_VALUE_VALUE = 13010; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 11 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_11_VALUE = 13011; + */ + public static final int ORDER_CUSTOM_FIELD_11_VALUE_VALUE = 13011; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 12 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_12_VALUE = 13012; + */ + public static final int ORDER_CUSTOM_FIELD_12_VALUE_VALUE = 13012; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 13 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_13_VALUE = 13013; + */ + public static final int ORDER_CUSTOM_FIELD_13_VALUE_VALUE = 13013; + + /** + * + * + *
    +     * Custom field value for Order with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 14 is of
    +     * type STRING.
    +     * 
    + * + * ORDER_CUSTOM_FIELD_14_VALUE = 13014; + */ + public static final int ORDER_CUSTOM_FIELD_14_VALUE_VALUE = 13014; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; + */ + public static final int CREATIVE_CUSTOM_FIELD_0_OPTION_ID_VALUE = 14000; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; + */ + public static final int CREATIVE_CUSTOM_FIELD_1_OPTION_ID_VALUE = 14001; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; + */ + public static final int CREATIVE_CUSTOM_FIELD_2_OPTION_ID_VALUE = 14002; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; + */ + public static final int CREATIVE_CUSTOM_FIELD_3_OPTION_ID_VALUE = 14003; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; + */ + public static final int CREATIVE_CUSTOM_FIELD_4_OPTION_ID_VALUE = 14004; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; + */ + public static final int CREATIVE_CUSTOM_FIELD_5_OPTION_ID_VALUE = 14005; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; + */ + public static final int CREATIVE_CUSTOM_FIELD_6_OPTION_ID_VALUE = 14006; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; + */ + public static final int CREATIVE_CUSTOM_FIELD_7_OPTION_ID_VALUE = 14007; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; + */ + public static final int CREATIVE_CUSTOM_FIELD_8_OPTION_ID_VALUE = 14008; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; + */ + public static final int CREATIVE_CUSTOM_FIELD_9_OPTION_ID_VALUE = 14009; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; + */ + public static final int CREATIVE_CUSTOM_FIELD_10_OPTION_ID_VALUE = 14010; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; + */ + public static final int CREATIVE_CUSTOM_FIELD_11_OPTION_ID_VALUE = 14011; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; + */ + public static final int CREATIVE_CUSTOM_FIELD_12_OPTION_ID_VALUE = 14012; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; + */ + public static final int CREATIVE_CUSTOM_FIELD_13_OPTION_ID_VALUE = 14013; + + /** + * + * + *
    +     * Custom field option ID for Creative with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; + */ + public static final int CREATIVE_CUSTOM_FIELD_14_OPTION_ID_VALUE = 14014; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 0 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; + */ + public static final int CREATIVE_CUSTOM_FIELD_0_VALUE_VALUE = 15000; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 1 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; + */ + public static final int CREATIVE_CUSTOM_FIELD_1_VALUE_VALUE = 15001; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 2 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; + */ + public static final int CREATIVE_CUSTOM_FIELD_2_VALUE_VALUE = 15002; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 3 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; + */ + public static final int CREATIVE_CUSTOM_FIELD_3_VALUE_VALUE = 15003; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 4 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; + */ + public static final int CREATIVE_CUSTOM_FIELD_4_VALUE_VALUE = 15004; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 5 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; + */ + public static final int CREATIVE_CUSTOM_FIELD_5_VALUE_VALUE = 15005; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 6 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; + */ + public static final int CREATIVE_CUSTOM_FIELD_6_VALUE_VALUE = 15006; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 7 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; + */ + public static final int CREATIVE_CUSTOM_FIELD_7_VALUE_VALUE = 15007; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 8 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; + */ + public static final int CREATIVE_CUSTOM_FIELD_8_VALUE_VALUE = 15008; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 9 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; + */ + public static final int CREATIVE_CUSTOM_FIELD_9_VALUE_VALUE = 15009; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 10 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; + */ + public static final int CREATIVE_CUSTOM_FIELD_10_VALUE_VALUE = 15010; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 11 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; + */ + public static final int CREATIVE_CUSTOM_FIELD_11_VALUE_VALUE = 15011; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 12 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; + */ + public static final int CREATIVE_CUSTOM_FIELD_12_VALUE_VALUE = 15012; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 13 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; + */ + public static final int CREATIVE_CUSTOM_FIELD_13_VALUE_VALUE = 15013; + + /** + * + * + *
    +     * Custom field value for Creative with custom field ID equal to the ID
    +     * in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 14 is of
    +     * type STRING.
    +     * 
    + * + * CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; + */ + public static final int CREATIVE_CUSTOM_FIELD_14_VALUE_VALUE = 15014; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID_VALUE = 16000; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID_VALUE = 16001; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID_VALUE = 16002; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID_VALUE = 16003; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID_VALUE = 16004; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID_VALUE = 16005; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID_VALUE = 16006; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID_VALUE = 16007; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID_VALUE = 16008; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID_VALUE = 16009; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID_VALUE = 16010; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID_VALUE = 16011; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID_VALUE = 16012; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID_VALUE = 16013; + + /** + * + * + *
    +     * Custom field option ID for Backfill line item with custom field ID equal
    +     * to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID_VALUE = 16014; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 0 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE_VALUE = 17000; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 1 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE_VALUE = 17001; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 2 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE_VALUE = 17002; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 3 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE_VALUE = 17003; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 4 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE_VALUE = 17004; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 5 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE_VALUE = 17005; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 6 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE_VALUE = 17006; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 7 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE_VALUE = 17007; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 8 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE_VALUE = 17008; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 9 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE_VALUE = 17009; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 10 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE_VALUE = 17010; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 11 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE_VALUE = 17011; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 12 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE_VALUE = 17012; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 13 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE_VALUE = 17013; + + /** + * + * + *
    +     * Custom field value for Backfill line item with custom field ID equal to
    +     * the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 14 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; + */ + public static final int BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE_VALUE = 17014; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 0 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID_VALUE = 18000; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 1 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID_VALUE = 18001; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 2 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID_VALUE = 18002; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 3 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID_VALUE = 18003; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 4 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID_VALUE = 18004; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 5 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID_VALUE = 18005; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 6 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID_VALUE = 18006; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 7 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID_VALUE = 18007; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 8 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID_VALUE = 18008; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 9 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID_VALUE = 18009; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 10 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID_VALUE = 18010; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 11 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID_VALUE = 18011; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 12 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID_VALUE = 18012; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 13 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID_VALUE = 18013; + + /** + * + * + *
    +     * Custom field option ID for Backfill order with custom field ID equal to
    +     * the ID in index 14 of `ReportDefinition.order_custom_field_ids`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID_VALUE = 18014; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID
    +     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 0 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE_VALUE = 19000; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 1 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE_VALUE = 19001; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 2 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE_VALUE = 19002; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 3 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE_VALUE = 19003; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 4 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE_VALUE = 19004; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 5 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE_VALUE = 19005; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 6 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE_VALUE = 19006; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 7 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE_VALUE = 19007; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 8 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE_VALUE = 19008; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 9 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE_VALUE = 19009; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 10 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE_VALUE = 19010; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 11 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE_VALUE = 19011; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 12 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE_VALUE = 19012; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 13 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE_VALUE = 19013; + + /** + * + * + *
    +     * Custom field value for Backfill order with custom field ID equal to the
    +     * ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 14 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; + */ + public static final int BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE_VALUE = 19014; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID_VALUE = 20000; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID_VALUE = 20001; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID_VALUE = 20002; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID_VALUE = 20003; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID_VALUE = 20004; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID_VALUE = 20005; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID_VALUE = 20006; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID_VALUE = 20007; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID_VALUE = 20008; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID_VALUE = 20009; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID_VALUE = 20010; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID_VALUE = 20011; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID_VALUE = 20012; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID_VALUE = 20013; + + /** + * + * + *
    +     * Custom field option ID for Backfill creative with custom field ID equal
    +     * to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID_VALUE = 20014; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID
    +     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
    +     * value as a string. Can only be used if the custom field at index 0 is of
    +     * type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE_VALUE = 21000; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 1 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE_VALUE = 21001; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 2 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE_VALUE = 21002; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 3 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE_VALUE = 21003; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 4 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE_VALUE = 21004; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 5 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE_VALUE = 21005; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 6 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE_VALUE = 21006; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 7 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE_VALUE = 21007; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 8 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE_VALUE = 21008; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats
    +     * the value as a string. Can only be used if the custom field at index 9 is
    +     * of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE_VALUE = 21009; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 10 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE_VALUE = 21010; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 11 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE_VALUE = 21011; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 12 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE_VALUE = 21012; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 13 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE_VALUE = 21013; + + /** + * + * + *
    +     * Custom field value for Backfill creative with custom field ID equal to
    +     * the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
    +     * Treats the value as a string. Can only be used if the custom field at
    +     * index 14 is of type `STRING` or `DROPDOWN`.
    +     * 
    + * + * BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; + */ + public static final int BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE_VALUE = 21014; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 0 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_0_VALUE_ID = 100000; + */ + public static final int CUSTOM_DIMENSION_0_VALUE_ID_VALUE = 100000; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 1 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_1_VALUE_ID = 100001; + */ + public static final int CUSTOM_DIMENSION_1_VALUE_ID_VALUE = 100001; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 2 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_2_VALUE_ID = 100002; + */ + public static final int CUSTOM_DIMENSION_2_VALUE_ID_VALUE = 100002; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 3 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_3_VALUE_ID = 100003; + */ + public static final int CUSTOM_DIMENSION_3_VALUE_ID_VALUE = 100003; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 4 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_4_VALUE_ID = 100004; + */ + public static final int CUSTOM_DIMENSION_4_VALUE_ID_VALUE = 100004; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 5 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_5_VALUE_ID = 100005; + */ + public static final int CUSTOM_DIMENSION_5_VALUE_ID_VALUE = 100005; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 6 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_6_VALUE_ID = 100006; + */ + public static final int CUSTOM_DIMENSION_6_VALUE_ID_VALUE = 100006; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_7_VALUE_ID = 100007; + */ + public static final int CUSTOM_DIMENSION_7_VALUE_ID_VALUE = 100007; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 8 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_8_VALUE_ID = 100008; + */ + public static final int CUSTOM_DIMENSION_8_VALUE_ID_VALUE = 100008; + + /** + * + * + *
    +     * Custom Dimension Value ID for Custom Dimension with key equal to the key
    +     * in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_9_VALUE_ID = 100009; + */ + public static final int CUSTOM_DIMENSION_9_VALUE_ID_VALUE = 100009; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 0 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_0_VALUE = 101000; + */ + public static final int CUSTOM_DIMENSION_0_VALUE_VALUE = 101000; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 1 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_1_VALUE = 101001; + */ + public static final int CUSTOM_DIMENSION_1_VALUE_VALUE = 101001; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 2 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_2_VALUE = 101002; + */ + public static final int CUSTOM_DIMENSION_2_VALUE_VALUE = 101002; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 3 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_3_VALUE = 101003; + */ + public static final int CUSTOM_DIMENSION_3_VALUE_VALUE = 101003; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 4 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_4_VALUE = 101004; + */ + public static final int CUSTOM_DIMENSION_4_VALUE_VALUE = 101004; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 5 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_5_VALUE = 101005; + */ + public static final int CUSTOM_DIMENSION_5_VALUE_VALUE = 101005; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 6 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_6_VALUE = 101006; + */ + public static final int CUSTOM_DIMENSION_6_VALUE_VALUE = 101006; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 7 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_7_VALUE = 101007; + */ + public static final int CUSTOM_DIMENSION_7_VALUE_VALUE = 101007; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 8 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_8_VALUE = 101008; + */ + public static final int CUSTOM_DIMENSION_8_VALUE_VALUE = 101008; + + /** + * + * + *
    +     * Custom Dimension Value name for Custom Dimension with key equal to the
    +     * ID in index 9 of `ReportDefinition.custom_dimension_key_ids`.
    +     * 
    + * + * CUSTOM_DIMENSION_9_VALUE = 101009; + */ + public static final int CUSTOM_DIMENSION_9_VALUE_VALUE = 101009; + + public final int getNumber() { + if (index == -1) { + 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 Dimension 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 Dimension forNumber(int value) { + switch (value) { + case 0: + return DIMENSION_UNSPECIFIED; + case 575: + return ACTIVE_VIEW_MEASUREMENT_SOURCE; + case 576: + return ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME; + case 475: + return ADVERTISER_CREDIT_STATUS; + case 476: + return ADVERTISER_CREDIT_STATUS_NAME; + case 242: + return ADVERTISER_DOMAIN_NAME; + case 228: + return ADVERTISER_EXTERNAL_ID; + case 131: + return ADVERTISER_ID; + case 230: + return ADVERTISER_LABELS; + case 229: + return ADVERTISER_LABEL_IDS; + case 132: + return ADVERTISER_NAME; + case 227: + return ADVERTISER_PRIMARY_CONTACT; + case 471: + return ADVERTISER_STATUS; + case 472: + return ADVERTISER_STATUS_NAME; + case 473: + return ADVERTISER_TYPE; + case 474: + return ADVERTISER_TYPE_NAME; + case 580: + return ADVERTISER_VERTICAL; + case 499: + return ADX_PRODUCT; + case 500: + return ADX_PRODUCT_NAME; + case 641: + return AD_EXPERIENCES_TYPE; + case 642: + return AD_EXPERIENCES_TYPE_NAME; + case 390: + return AD_LOCATION; + case 391: + return AD_LOCATION_NAME; + case 620: + return AD_TECHNOLOGY_PROVIDER_DOMAIN; + case 621: + return AD_TECHNOLOGY_PROVIDER_ID; + case 622: + return AD_TECHNOLOGY_PROVIDER_NAME; + case 497: + return AD_TYPE; + case 498: + return AD_TYPE_NAME; + case 64: + return AD_UNIT_CODE; + case 65: + return AD_UNIT_CODE_LEVEL_1; + case 74: + return AD_UNIT_CODE_LEVEL_10; + case 75: + return AD_UNIT_CODE_LEVEL_11; + case 76: + return AD_UNIT_CODE_LEVEL_12; + case 77: + return AD_UNIT_CODE_LEVEL_13; + case 78: + return AD_UNIT_CODE_LEVEL_14; + case 79: + return AD_UNIT_CODE_LEVEL_15; + case 80: + return AD_UNIT_CODE_LEVEL_16; + case 66: + return AD_UNIT_CODE_LEVEL_2; + case 67: + return AD_UNIT_CODE_LEVEL_3; + case 68: + return AD_UNIT_CODE_LEVEL_4; + case 69: + return AD_UNIT_CODE_LEVEL_5; + case 70: + return AD_UNIT_CODE_LEVEL_6; + case 71: + return AD_UNIT_CODE_LEVEL_7; + case 72: + return AD_UNIT_CODE_LEVEL_8; + case 73: + return AD_UNIT_CODE_LEVEL_9; + case 25: + return AD_UNIT_ID; + case 27: + return AD_UNIT_ID_ALL_LEVEL; + case 30: + return AD_UNIT_ID_LEVEL_1; + case 48: + return AD_UNIT_ID_LEVEL_10; + case 50: + return AD_UNIT_ID_LEVEL_11; + case 52: + return AD_UNIT_ID_LEVEL_12; + case 54: + return AD_UNIT_ID_LEVEL_13; + case 56: + return AD_UNIT_ID_LEVEL_14; + case 58: + return AD_UNIT_ID_LEVEL_15; + case 60: + return AD_UNIT_ID_LEVEL_16; + case 32: + return AD_UNIT_ID_LEVEL_2; + case 34: + return AD_UNIT_ID_LEVEL_3; + case 36: + return AD_UNIT_ID_LEVEL_4; + case 38: + return AD_UNIT_ID_LEVEL_5; + case 40: + return AD_UNIT_ID_LEVEL_6; + case 42: + return AD_UNIT_ID_LEVEL_7; + case 44: + return AD_UNIT_ID_LEVEL_8; + case 46: + return AD_UNIT_ID_LEVEL_9; + case 142: + return AD_UNIT_ID_TOP_LEVEL; + case 26: + return AD_UNIT_NAME; + case 29: + return AD_UNIT_NAME_ALL_LEVEL; + case 31: + return AD_UNIT_NAME_LEVEL_1; + case 49: + return AD_UNIT_NAME_LEVEL_10; + case 51: + return AD_UNIT_NAME_LEVEL_11; + case 53: + return AD_UNIT_NAME_LEVEL_12; + case 55: + return AD_UNIT_NAME_LEVEL_13; + case 57: + return AD_UNIT_NAME_LEVEL_14; + case 59: + return AD_UNIT_NAME_LEVEL_15; + case 61: + return AD_UNIT_NAME_LEVEL_16; + case 33: + return AD_UNIT_NAME_LEVEL_2; + case 35: + return AD_UNIT_NAME_LEVEL_3; + case 37: + return AD_UNIT_NAME_LEVEL_4; + case 39: + return AD_UNIT_NAME_LEVEL_5; + case 41: + return AD_UNIT_NAME_LEVEL_6; + case 43: + return AD_UNIT_NAME_LEVEL_7; + case 45: + return AD_UNIT_NAME_LEVEL_8; + case 47: + return AD_UNIT_NAME_LEVEL_9; + case 143: + return AD_UNIT_NAME_TOP_LEVEL; + case 63: + return AD_UNIT_REWARD_AMOUNT; + case 62: + return AD_UNIT_REWARD_TYPE; + case 206: + return AD_UNIT_STATUS; + case 207: + return AD_UNIT_STATUS_NAME; + case 565: + return AGENCY_LEVEL_1_ID; + case 566: + return AGENCY_LEVEL_1_NAME; + case 567: + return AGENCY_LEVEL_2_ID; + case 568: + return AGENCY_LEVEL_2_NAME; + case 569: + return AGENCY_LEVEL_3_ID; + case 570: + return AGENCY_LEVEL_3_NAME; + case 508: + return AGE_BRACKET; + case 582: + return AGE_BRACKET_NAME; + case 442: + return APP_TRACKING_TRANSPARENCY_CONSENT_STATUS; + case 443: + return APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME; + case 392: + return APP_VERSION; + case 579: + return AUCTION_PACKAGE_DEAL; + case 571: + return AUCTION_PACKAGE_DEAL_ID; + case 584: + return AUDIENCE_SEGMENT_ID_TARGETED; + case 585: + return AUDIENCE_SEGMENT_TARGETED; + case 421: + return AUTO_REFRESHED_TRAFFIC; + case 422: + return AUTO_REFRESHED_TRAFFIC_NAME; + case 493: + return BIDDER_ENCRYPTED_ID; + case 494: + return BIDDER_NAME; + case 679: + return BID_RANGE; + case 599: + return BID_REJECTION_REASON; + case 600: + return BID_REJECTION_REASON_NAME; + case 383: + return BRANDING_TYPE; + case 384: + return BRANDING_TYPE_NAME; + case 119: + return BROWSER_CATEGORY; + case 120: + return BROWSER_CATEGORY_NAME; + case 235: + return BROWSER_ID; + case 236: + return BROWSER_NAME; + case 448: + return BUYER_NETWORK_ID; + case 449: + return BUYER_NETWORK_NAME; + case 588: + return CALLOUT_STATUS_CATEGORY; + case 589: + return CALLOUT_STATUS_CATEGORY_NAME; + case 369: + return CARRIER_ID; + case 368: + return CARRIER_NAME; + case 501: + return CHANNEL; + case 542: + return CHILD_NETWORK_CODE; + case 544: + return CHILD_NETWORK_ID; + case 543: + return CHILD_PARTNER_NAME; + case 459: + return CITY_ID; + case 452: + return CITY_NAME; + case 133: + return CLASSIFIED_ADVERTISER_ID; + case 134: + return CLASSIFIED_ADVERTISER_NAME; + case 243: + return CLASSIFIED_BRAND_ID; + case 244: + return CLASSIFIED_BRAND_NAME; + case 643: + return CONTENT_CMS_NAME; + case 644: + return CONTENT_CMS_VIDEO_ID; + case 246: + return CONTENT_ID; + case 731: + return CONTENT_MAPPING_PRESENCE; + case 732: + return CONTENT_MAPPING_PRESENCE_NAME; + case 247: + return CONTENT_NAME; + case 469: + return CONTINENT; + case 470: + return CONTINENT_NAME; + case 466: + return COUNTRY_CODE; + case 11: + return COUNTRY_ID; + case 12: + return COUNTRY_NAME; + case 366: + return CREATIVE_BILLING_TYPE; + case 367: + return CREATIVE_BILLING_TYPE_NAME; + case 174: + return CREATIVE_CLICK_THROUGH_URL; + case 138: + return CREATIVE_ID; + case 139: + return CREATIVE_NAME; + case 711: + return CREATIVE_POLICIES_FILTERING; + case 712: + return CREATIVE_POLICIES_FILTERING_NAME; + case 704: + return CREATIVE_PROTECTIONS_FILTERING; + case 705: + return CREATIVE_PROTECTIONS_FILTERING_NAME; + case 686: + return CREATIVE_SET_ROLE_TYPE; + case 687: + return CREATIVE_SET_ROLE_TYPE_NAME; + case 148: + return CREATIVE_TECHNOLOGY; + case 149: + return CREATIVE_TECHNOLOGY_NAME; + case 361: + return CREATIVE_THIRD_PARTY_VENDOR; + case 344: + return CREATIVE_TYPE; + case 345: + return CREATIVE_TYPE_NAME; + case 706: + return CREATIVE_VENDOR_ID; + case 707: + return CREATIVE_VENDOR_NAME; + case 562: + return CREATIVE_VIDEO_REDIRECT_THIRD_PARTY; + case 572: + return CURATOR_ID; + case 573: + return CURATOR_NAME; + case 737: + return CUSTOM_EVENT_ID; + case 735: + return CUSTOM_EVENT_NAME; + case 736: + return CUSTOM_EVENT_TYPE; + case 738: + return CUSTOM_EVENT_TYPE_NAME; + case 423: + return CUSTOM_SPOT_ID; + case 424: + return CUSTOM_SPOT_NAME; + case 3: + return DATE; + case 4: + return DAY_OF_WEEK; + case 240: + return DEAL_BUYER_ID; + case 241: + return DEAL_BUYER_NAME; + case 436: + return DEAL_ID; + case 437: + return DEAL_NAME; + case 309: + return DELIVERED_SECURE_SIGNAL_ID; + case 310: + return DELIVERED_SECURE_SIGNAL_NAME; + case 9: + return DEMAND_CHANNEL; + case 10: + return DEMAND_CHANNEL_NAME; + case 592: + return DEMAND_SOURCE; + case 593: + return DEMAND_SOURCE_NAME; + case 22: + return DEMAND_SUBCHANNEL; + case 23: + return DEMAND_SUBCHANNEL_NAME; + case 226: + return DEVICE; + case 15: + return DEVICE_CATEGORY; + case 16: + return DEVICE_CATEGORY_NAME; + case 525: + return DEVICE_MANUFACTURER_ID; + case 526: + return DEVICE_MANUFACTURER_NAME; + case 527: + return DEVICE_MODEL_ID; + case 528: + return DEVICE_MODEL_NAME; + case 225: + return DEVICE_NAME; + case 564: + return DSP_SEAT_ID; + case 502: + return DYNAMIC_ALLOCATION_TYPE; + case 503: + return DYNAMIC_ALLOCATION_TYPE_NAME; + case 623: + return ESP_DELIVERY; + case 624: + return ESP_DELIVERY_NAME; + case 625: + return ESP_PRESENCE; + case 626: + return ESP_PRESENCE_NAME; + case 715: + return EXCHANGE_BIDDING_DEAL_ID; + case 714: + return EXCHANGE_BIDDING_DEAL_TYPE; + case 723: + return EXCHANGE_BIDDING_DEAL_TYPE_NAME; + case 185: + return EXCHANGE_THIRD_PARTY_COMPANY_ID; + case 186: + return EXCHANGE_THIRD_PARTY_COMPANY_NAME; + case 248: + return FIRST_LOOK_PRICING_RULE_ID; + case 249: + return FIRST_LOOK_PRICING_RULE_NAME; + case 404: + return FIRST_PARTY_ID_STATUS; + case 405: + return FIRST_PARTY_ID_STATUS_NAME; + case 509: + return GENDER; + case 583: + return GENDER_NAME; + case 519: + return GOOGLE_ANALYTICS_STREAM_ID; + case 520: + return GOOGLE_ANALYTICS_STREAM_NAME; + case 659: + return HBT_YIELD_PARTNER_ID; + case 660: + return HBT_YIELD_PARTNER_NAME; + case 718: + return HEADER_BIDDER_INTEGRATION_TYPE; + case 719: + return HEADER_BIDDER_INTEGRATION_TYPE_NAME; + case 100: + return HOUR; + case 577: + return IMPRESSION_COUNTING_METHOD; + case 578: + return IMPRESSION_COUNTING_METHOD_NAME; + case 223: + return INTERACTION_TYPE; + case 224: + return INTERACTION_TYPE_NAME; + case 510: + return INTEREST; + case 17: + return INVENTORY_FORMAT; + case 18: + return INVENTORY_FORMAT_NAME; + case 648: + return INVENTORY_SHARE_ASSIGNMENT_ID; + case 649: + return INVENTORY_SHARE_ASSIGNMENT_NAME; + case 603: + return INVENTORY_SHARE_OUTCOME; + case 604: + return INVENTORY_SHARE_OUTCOME_NAME; + case 652: + return INVENTORY_SHARE_PARTNER_AD_SERVER; + case 653: + return INVENTORY_SHARE_PARTNER_AD_SERVER_NAME; + case 654: + return INVENTORY_SHARE_TARGET_SHARE_PERCENT; + case 650: + return INVENTORY_SHARE_TYPE; + case 651: + return INVENTORY_SHARE_TYPE_NAME; + case 19: + return INVENTORY_TYPE; + case 20: + return INVENTORY_TYPE_NAME; + case 382: + return IS_ADX_DIRECT; + case 574: + return IS_CURATION_TARGETED; + case 464: + return IS_DROPPED; + case 401: + return IS_FIRST_LOOK_DEAL; + case 214: + return KEY_VALUES_ID; + case 215: + return KEY_VALUES_NAME; + case 663: + return LINE_ITEM_AGENCY; + case 188: + return LINE_ITEM_ARCHIVED; + case 204: + return LINE_ITEM_COMPANION_DELIVERY_OPTION; + case 205: + return LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME; + case 250: + return LINE_ITEM_COMPUTED_STATUS; + case 251: + return LINE_ITEM_COMPUTED_STATUS_NAME; + case 92: + return LINE_ITEM_CONTRACTED_QUANTITY; + case 85: + return LINE_ITEM_COST_PER_UNIT; + case 212: + return LINE_ITEM_COST_TYPE; + case 213: + return LINE_ITEM_COST_TYPE_NAME; + case 176: + return LINE_ITEM_CREATIVE_END_DATE; + case 189: + return LINE_ITEM_CREATIVE_ROTATION_TYPE; + case 190: + return LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME; + case 175: + return LINE_ITEM_CREATIVE_START_DATE; + case 180: + return LINE_ITEM_CURRENCY_CODE; + case 87: + return LINE_ITEM_DELIVERY_INDICATOR; + case 191: + return LINE_ITEM_DELIVERY_RATE_TYPE; + case 192: + return LINE_ITEM_DELIVERY_RATE_TYPE_NAME; + case 195: + return LINE_ITEM_DISCOUNT_ABSOLUTE; + case 196: + return LINE_ITEM_DISCOUNT_PERCENTAGE; + case 81: + return LINE_ITEM_END_DATE; + case 83: + return LINE_ITEM_END_DATE_TIME; + case 201: + return LINE_ITEM_ENVIRONMENT_TYPE; + case 202: + return LINE_ITEM_ENVIRONMENT_TYPE_NAME; + case 97: + return LINE_ITEM_EXTERNAL_DEAL_ID; + case 86: + return LINE_ITEM_EXTERNAL_ID; + case 256: + return LINE_ITEM_FREQUENCY_CAP; + case 1: + return LINE_ITEM_ID; + case 667: + return LINE_ITEM_LABELS; + case 665: + return LINE_ITEM_LABEL_IDS; + case 181: + return LINE_ITEM_LAST_MODIFIED_BY_APP; + case 95: + return LINE_ITEM_LIFETIME_CLICKS; + case 94: + return LINE_ITEM_LIFETIME_IMPRESSIONS; + case 96: + return LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS; + case 89: + return LINE_ITEM_MAKEGOOD; + case 2: + return LINE_ITEM_NAME; + case 98: + return LINE_ITEM_NON_CPD_BOOKED_REVENUE; + case 90: + return LINE_ITEM_OPTIMIZABLE; + case 669: + return LINE_ITEM_PO_NUMBER; + case 210: + return LINE_ITEM_PRIMARY_GOAL_TYPE; + case 211: + return LINE_ITEM_PRIMARY_GOAL_TYPE_NAME; + case 93: + return LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE; + case 396: + return LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE; + case 208: + return LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE; + case 209: + return LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME; + case 24: + return LINE_ITEM_PRIORITY; + case 304: + return LINE_ITEM_RESERVATION_STATUS; + case 305: + return LINE_ITEM_RESERVATION_STATUS_NAME; + case 671: + return LINE_ITEM_SALESPERSON; + case 673: + return LINE_ITEM_SECONDARY_SALESPEOPLE; + case 675: + return LINE_ITEM_SECONDARY_TRAFFICKERS; + case 82: + return LINE_ITEM_START_DATE; + case 84: + return LINE_ITEM_START_DATE_TIME; + case 677: + return LINE_ITEM_TRAFFICKER; + case 193: + return LINE_ITEM_TYPE; + case 194: + return LINE_ITEM_TYPE_NAME; + case 187: + return LINE_ITEM_UNLIMITED_END; + case 88: + return LINE_ITEM_VALUE_COST_PER_UNIT; + case 179: + return LINE_ITEM_WEB_PROPERTY_CODE; + case 140: + return MASTER_COMPANION_CREATIVE_ID; + case 141: + return MASTER_COMPANION_CREATIVE_NAME; + case 701: + return MEDIATION_TYPE; + case 754: + return MEDIATION_TYPE_NAME; + case 661: + return MEDIATION_YIELD_PARTNER_ID; + case 662: + return MEDIATION_YIELD_PARTNER_NAME; + case 453: + return METRO_ID; + case 454: + return METRO_NAME; + case 128: + return MOBILE_APP_FREE; + case 129: + return MOBILE_APP_ICON_URL; + case 123: + return MOBILE_APP_ID; + case 127: + return MOBILE_APP_NAME; + case 311: + return MOBILE_APP_OWNERSHIP_STATUS; + case 312: + return MOBILE_APP_OWNERSHIP_STATUS_NAME; + case 125: + return MOBILE_APP_STORE; + case 245: + return MOBILE_APP_STORE_NAME; + case 99: + return MOBILE_INVENTORY_TYPE; + case 21: + return MOBILE_INVENTORY_TYPE_NAME; + case 646: + return MOBILE_RENDERING_SDK; + case 647: + return MOBILE_RENDERING_SDK_NAME; + case 692: + return MOBILE_SDK_MAJOR_VERSION; + case 693: + return MOBILE_SDK_MINOR_VERSION; + case 130: + return MOBILE_SDK_VERSION_NAME; + case 6: + return MONTH_YEAR; + case 255: + return NATIVE_AD_FORMAT_ID; + case 254: + return NATIVE_AD_FORMAT_NAME; + case 253: + return NATIVE_STYLE_ID; + case 252: + return NATIVE_STYLE_NAME; + case 586: + return NO_FILL_REASON_CATEGORY; + case 587: + return NO_FILL_REASON_CATEGORY_NAME; + case 117: + return OPERATING_SYSTEM_CATEGORY; + case 118: + return OPERATING_SYSTEM_CATEGORY_NAME; + case 238: + return OPERATING_SYSTEM_VERSION_ID; + case 237: + return OPERATING_SYSTEM_VERSION_NAME; + case 639: + return OPTIMIZATION_TYPE; + case 640: + return OPTIMIZATION_TYPE_NAME; + case 150: + return ORDER_AGENCY; + case 151: + return ORDER_AGENCY_ID; + case 152: + return ORDER_BOOKED_CPC; + case 153: + return ORDER_BOOKED_CPM; + case 231: + return ORDER_DELIVERY_STATUS; + case 239: + return ORDER_DELIVERY_STATUS_NAME; + case 154: + return ORDER_END_DATE; + case 155: + return ORDER_END_DATE_TIME; + case 156: + return ORDER_EXTERNAL_ID; + case 7: + return ORDER_ID; + case 170: + return ORDER_LABELS; + case 171: + return ORDER_LABEL_IDS; + case 158: + return ORDER_LIFETIME_CLICKS; + case 159: + return ORDER_LIFETIME_IMPRESSIONS; + case 8: + return ORDER_NAME; + case 160: + return ORDER_PO_NUMBER; + case 157: + return ORDER_PROGRAMMATIC; + case 161: + return ORDER_SALESPERSON; + case 629: + return ORDER_SALESPERSON_ID; + case 164: + return ORDER_SECONDARY_SALESPEOPLE; + case 165: + return ORDER_SECONDARY_SALESPEOPLE_ID; + case 166: + return ORDER_SECONDARY_TRAFFICKERS; + case 167: + return ORDER_SECONDARY_TRAFFICKERS_ID; + case 168: + return ORDER_START_DATE; + case 169: + return ORDER_START_DATE_TIME; + case 162: + return ORDER_TRAFFICKER; + case 163: + return ORDER_TRAFFICKER_ID; + case 203: + return ORDER_UNLIMITED_END; + case 511: + return PAGE_PATH; + case 512: + return PAGE_TITLE_AND_SCREEN_CLASS; + case 513: + return PAGE_TITLE_AND_SCREEN_NAME; + case 113: + return PLACEMENT_ID; + case 144: + return PLACEMENT_ID_ALL; + case 114: + return PLACEMENT_NAME; + case 145: + return PLACEMENT_NAME_ALL; + case 362: + return PLACEMENT_STATUS; + case 364: + return PLACEMENT_STATUS_NAME; + case 365: + return PLACEMENT_STATUS_NAME_ALL; + case 455: + return POSTAL_CODE_ID; + case 456: + return POSTAL_CODE_NAME; + case 406: + return PPID_STATUS; + case 407: + return PPID_STATUS_NAME; + case 633: + return PREDICTED_VIEWABILITY_BUCKET; + case 634: + return PREDICTED_VIEWABILITY_BUCKET_NAME; + case 495: + return PRESENTED_SECURE_SIGNAL_ID; + case 496: + return PRESENTED_SECURE_SIGNAL_NAME; + case 408: + return PRIMARY_PERSONALIZATION_ID_TYPE; + case 409: + return PRIMARY_PERSONALIZATION_ID_TYPE_NAME; + case 13: + return PROGRAMMATIC_CHANNEL; + case 14: + return PROGRAMMATIC_CHANNEL_NAME; + case 410: + return PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE; + case 546: + return PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS; + case 412: + return PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME; + case 413: + return PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER; + case 414: + return PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE; + case 425: + return PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE; + case 545: + return PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS; + case 427: + return PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME; + case 428: + return PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER; + case 429: + return PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE; + case 415: + return PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE; + case 416: + return PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID; + case 417: + return PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME; + case 418: + return PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER; + case 419: + return PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE; + case 136: + return PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID; + case 137: + return PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME; + case 457: + return REGION_ID; + case 458: + return REGION_NAME; + case 590: + return REJECTION_CLASS_CATEGORY; + case 591: + return REJECTION_CLASS_CATEGORY_NAME; + case 343: + return RENDERED_CREATIVE_SIZE; + case 352: + return REQUESTED_AD_SIZES; + case 146: + return REQUEST_TYPE; + case 147: + return REQUEST_TYPE_NAME; + case 597: + return SERVER_SIDE_UNWRAPPING_ELIGIBLE; + case 631: + return SERVING_RESTRICTION; + case 632: + return SERVING_RESTRICTION_NAME; + case 387: + return SITE; + case 232: + return TARGETING_ID; + case 233: + return TARGETING_NAME; + case 385: + return TARGETING_TYPE; + case 386: + return TARGETING_TYPE_NAME; + case 402: + return THIRD_PARTY_ID_STATUS; + case 403: + return THIRD_PARTY_ID_STATUS_NAME; + case 504: + return TOPICS_STATUS; + case 505: + return TOPICS_STATUS_NAME; + case 444: + return TOP_PRIVATE_DOMAIN; + case 388: + return TRAFFIC_SOURCE; + case 389: + return TRAFFIC_SOURCE_NAME; + case 393: + return UNIFIED_PRICING_RULE_ID; + case 394: + return UNIFIED_PRICING_RULE_NAME; + case 506: + return URL; + case 507: + return URL_ID; + case 635: + return USER_MESSAGES_ENTITLEMENT_SOURCE; + case 636: + return USER_MESSAGES_ENTITLEMENT_SOURCE_NAME; + case 637: + return USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID; + case 638: + return USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME; + case 554: + return VAST_VERSION; + case 555: + return VAST_VERSION_NAME; + case 556: + return VIDEO_AD_BREAK_TYPE; + case 557: + return VIDEO_AD_BREAK_TYPE_NAME; + case 450: + return VIDEO_AD_DURATION; + case 561: + return VIDEO_AD_FORMATS_RULE; + case 560: + return VIDEO_AD_FORMATS_RULE_ID; + case 558: + return VIDEO_AD_REQUEST_DURATION; + case 751: + return VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME; + case 559: + return VIDEO_AD_REQUEST_DURATION_NAME; + case 438: + return VIDEO_AD_REQUEST_SOURCE; + case 439: + return VIDEO_AD_REQUEST_SOURCE_NAME; + case 432: + return VIDEO_AD_TYPE; + case 433: + return VIDEO_AD_TYPE_NAME; + case 721: + return VIDEO_CONTINUOUS_PLAY_TYPE; + case 722: + return VIDEO_CONTINUOUS_PLAY_TYPE_NAME; + case 530: + return VIDEO_FALLBACK_POSITION; + case 601: + return VIDEO_MEASUREMENT_SOURCE; + case 602: + return VIDEO_MEASUREMENT_SOURCE_NAME; + case 172: + return VIDEO_PLCMT; + case 173: + return VIDEO_PLCMT_NAME; + case 538: + return VIDEO_POSITION_IN_POD; + case 539: + return VIDEO_POSITION_OF_POD; + case 440: + return VIDEO_SDK_VERSION; + case 441: + return VIDEO_SDK_VERSION_NAME; + case 752: + return VIDEO_STITCHER_TYPE; + case 753: + return VIDEO_STITCHER_TYPE_NAME; + case 5: + return WEEK; + case 184: + return YIELD_GROUP_BUYER_NAME; + case 627: + return YIELD_GROUP_BUYER_TAG_NAME; + case 182: + return YIELD_GROUP_ID; + case 183: + return YIELD_GROUP_NAME; + case 430: + return YOUTUBE_AD_DURATION_BUCKET; + case 431: + return YOUTUBE_AD_DURATION_BUCKET_NAME; + case 399: + return YOUTUBE_AD_TYPE; + case 400: + return YOUTUBE_AD_TYPE_NAME; + case 10000: + return LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID; + case 10001: + return LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID; + case 10002: + return LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID; + case 10003: + return LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID; + case 10004: + return LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID; + case 10005: + return LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID; + case 10006: + return LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID; + case 10007: + return LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID; + case 10008: + return LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID; + case 10009: + return LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID; + case 10010: + return LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID; + case 10011: + return LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID; + case 10012: + return LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID; + case 10013: + return LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID; + case 10014: + return LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID; + case 11000: + return LINE_ITEM_CUSTOM_FIELD_0_VALUE; + case 11001: + return LINE_ITEM_CUSTOM_FIELD_1_VALUE; + case 11002: + return LINE_ITEM_CUSTOM_FIELD_2_VALUE; + case 11003: + return LINE_ITEM_CUSTOM_FIELD_3_VALUE; + case 11004: + return LINE_ITEM_CUSTOM_FIELD_4_VALUE; + case 11005: + return LINE_ITEM_CUSTOM_FIELD_5_VALUE; + case 11006: + return LINE_ITEM_CUSTOM_FIELD_6_VALUE; + case 11007: + return LINE_ITEM_CUSTOM_FIELD_7_VALUE; + case 11008: + return LINE_ITEM_CUSTOM_FIELD_8_VALUE; + case 11009: + return LINE_ITEM_CUSTOM_FIELD_9_VALUE; + case 11010: + return LINE_ITEM_CUSTOM_FIELD_10_VALUE; + case 11011: + return LINE_ITEM_CUSTOM_FIELD_11_VALUE; + case 11012: + return LINE_ITEM_CUSTOM_FIELD_12_VALUE; + case 11013: + return LINE_ITEM_CUSTOM_FIELD_13_VALUE; + case 11014: + return LINE_ITEM_CUSTOM_FIELD_14_VALUE; + case 12000: + return ORDER_CUSTOM_FIELD_0_OPTION_ID; + case 12001: + return ORDER_CUSTOM_FIELD_1_OPTION_ID; + case 12002: + return ORDER_CUSTOM_FIELD_2_OPTION_ID; + case 12003: + return ORDER_CUSTOM_FIELD_3_OPTION_ID; + case 12004: + return ORDER_CUSTOM_FIELD_4_OPTION_ID; + case 12005: + return ORDER_CUSTOM_FIELD_5_OPTION_ID; + case 12006: + return ORDER_CUSTOM_FIELD_6_OPTION_ID; + case 12007: + return ORDER_CUSTOM_FIELD_7_OPTION_ID; + case 12008: + return ORDER_CUSTOM_FIELD_8_OPTION_ID; + case 12009: + return ORDER_CUSTOM_FIELD_9_OPTION_ID; + case 12010: + return ORDER_CUSTOM_FIELD_10_OPTION_ID; + case 12011: + return ORDER_CUSTOM_FIELD_11_OPTION_ID; + case 12012: + return ORDER_CUSTOM_FIELD_12_OPTION_ID; + case 12013: + return ORDER_CUSTOM_FIELD_13_OPTION_ID; + case 12014: + return ORDER_CUSTOM_FIELD_14_OPTION_ID; + case 13000: + return ORDER_CUSTOM_FIELD_0_VALUE; + case 13001: + return ORDER_CUSTOM_FIELD_1_VALUE; + case 13002: + return ORDER_CUSTOM_FIELD_2_VALUE; + case 13003: + return ORDER_CUSTOM_FIELD_3_VALUE; + case 13004: + return ORDER_CUSTOM_FIELD_4_VALUE; + case 13005: + return ORDER_CUSTOM_FIELD_5_VALUE; + case 13006: + return ORDER_CUSTOM_FIELD_6_VALUE; + case 13007: + return ORDER_CUSTOM_FIELD_7_VALUE; + case 13008: + return ORDER_CUSTOM_FIELD_8_VALUE; + case 13009: + return ORDER_CUSTOM_FIELD_9_VALUE; + case 13010: + return ORDER_CUSTOM_FIELD_10_VALUE; + case 13011: + return ORDER_CUSTOM_FIELD_11_VALUE; + case 13012: + return ORDER_CUSTOM_FIELD_12_VALUE; + case 13013: + return ORDER_CUSTOM_FIELD_13_VALUE; + case 13014: + return ORDER_CUSTOM_FIELD_14_VALUE; + case 14000: + return CREATIVE_CUSTOM_FIELD_0_OPTION_ID; + case 14001: + return CREATIVE_CUSTOM_FIELD_1_OPTION_ID; + case 14002: + return CREATIVE_CUSTOM_FIELD_2_OPTION_ID; + case 14003: + return CREATIVE_CUSTOM_FIELD_3_OPTION_ID; + case 14004: + return CREATIVE_CUSTOM_FIELD_4_OPTION_ID; + case 14005: + return CREATIVE_CUSTOM_FIELD_5_OPTION_ID; + case 14006: + return CREATIVE_CUSTOM_FIELD_6_OPTION_ID; + case 14007: + return CREATIVE_CUSTOM_FIELD_7_OPTION_ID; + case 14008: + return CREATIVE_CUSTOM_FIELD_8_OPTION_ID; + case 14009: + return CREATIVE_CUSTOM_FIELD_9_OPTION_ID; + case 14010: + return CREATIVE_CUSTOM_FIELD_10_OPTION_ID; + case 14011: + return CREATIVE_CUSTOM_FIELD_11_OPTION_ID; + case 14012: + return CREATIVE_CUSTOM_FIELD_12_OPTION_ID; + case 14013: + return CREATIVE_CUSTOM_FIELD_13_OPTION_ID; + case 14014: + return CREATIVE_CUSTOM_FIELD_14_OPTION_ID; + case 15000: + return CREATIVE_CUSTOM_FIELD_0_VALUE; + case 15001: + return CREATIVE_CUSTOM_FIELD_1_VALUE; + case 15002: + return CREATIVE_CUSTOM_FIELD_2_VALUE; + case 15003: + return CREATIVE_CUSTOM_FIELD_3_VALUE; + case 15004: + return CREATIVE_CUSTOM_FIELD_4_VALUE; + case 15005: + return CREATIVE_CUSTOM_FIELD_5_VALUE; + case 15006: + return CREATIVE_CUSTOM_FIELD_6_VALUE; + case 15007: + return CREATIVE_CUSTOM_FIELD_7_VALUE; + case 15008: + return CREATIVE_CUSTOM_FIELD_8_VALUE; + case 15009: + return CREATIVE_CUSTOM_FIELD_9_VALUE; + case 15010: + return CREATIVE_CUSTOM_FIELD_10_VALUE; + case 15011: + return CREATIVE_CUSTOM_FIELD_11_VALUE; + case 15012: + return CREATIVE_CUSTOM_FIELD_12_VALUE; + case 15013: + return CREATIVE_CUSTOM_FIELD_13_VALUE; + case 15014: + return CREATIVE_CUSTOM_FIELD_14_VALUE; + case 16000: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID; + case 16001: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID; + case 16002: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID; + case 16003: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID; + case 16004: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID; + case 16005: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID; + case 16006: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID; + case 16007: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID; + case 16008: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID; + case 16009: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID; + case 16010: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID; + case 16011: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID; + case 16012: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID; + case 16013: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID; + case 16014: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID; + case 17000: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE; + case 17001: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE; + case 17002: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE; + case 17003: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE; + case 17004: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE; + case 17005: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE; + case 17006: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE; + case 17007: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE; + case 17008: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE; + case 17009: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE; + case 17010: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE; + case 17011: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE; + case 17012: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE; + case 17013: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE; + case 17014: + return BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE; + case 18000: + return BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID; + case 18001: + return BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID; + case 18002: + return BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID; + case 18003: + return BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID; + case 18004: + return BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID; + case 18005: + return BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID; + case 18006: + return BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID; + case 18007: + return BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID; + case 18008: + return BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID; + case 18009: + return BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID; + case 18010: + return BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID; + case 18011: + return BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID; + case 18012: + return BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID; + case 18013: + return BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID; + case 18014: + return BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID; + case 19000: + return BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE; + case 19001: + return BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE; + case 19002: + return BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE; + case 19003: + return BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE; + case 19004: + return BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE; + case 19005: + return BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE; + case 19006: + return BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE; + case 19007: + return BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE; + case 19008: + return BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE; + case 19009: + return BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE; + case 19010: + return BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE; + case 19011: + return BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE; + case 19012: + return BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE; + case 19013: + return BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE; + case 19014: + return BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE; + case 20000: + return BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID; + case 20001: + return BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID; + case 20002: + return BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID; + case 20003: + return BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID; + case 20004: + return BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID; + case 20005: + return BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID; + case 20006: + return BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID; + case 20007: + return BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID; + case 20008: + return BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID; + case 20009: + return BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID; + case 20010: + return BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID; + case 20011: + return BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID; + case 20012: + return BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID; + case 20013: + return BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID; + case 20014: + return BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID; + case 21000: + return BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE; + case 21001: + return BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE; + case 21002: + return BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE; + case 21003: + return BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE; + case 21004: + return BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE; + case 21005: + return BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE; + case 21006: + return BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE; + case 21007: + return BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE; + case 21008: + return BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE; + case 21009: + return BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE; + case 21010: + return BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE; + case 21011: + return BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE; + case 21012: + return BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE; + case 21013: + return BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE; + case 21014: + return BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE; + case 100000: + return CUSTOM_DIMENSION_0_VALUE_ID; + case 100001: + return CUSTOM_DIMENSION_1_VALUE_ID; + case 100002: + return CUSTOM_DIMENSION_2_VALUE_ID; + case 100003: + return CUSTOM_DIMENSION_3_VALUE_ID; + case 100004: + return CUSTOM_DIMENSION_4_VALUE_ID; + case 100005: + return CUSTOM_DIMENSION_5_VALUE_ID; + case 100006: + return CUSTOM_DIMENSION_6_VALUE_ID; + case 100007: + return CUSTOM_DIMENSION_7_VALUE_ID; + case 100008: + return CUSTOM_DIMENSION_8_VALUE_ID; + case 100009: + return CUSTOM_DIMENSION_9_VALUE_ID; + case 101000: + return CUSTOM_DIMENSION_0_VALUE; + case 101001: + return CUSTOM_DIMENSION_1_VALUE; + case 101002: + return CUSTOM_DIMENSION_2_VALUE; + case 101003: + return CUSTOM_DIMENSION_3_VALUE; + case 101004: + return CUSTOM_DIMENSION_4_VALUE; + case 101005: + return CUSTOM_DIMENSION_5_VALUE; + case 101006: + return CUSTOM_DIMENSION_6_VALUE; + case 101007: + return CUSTOM_DIMENSION_7_VALUE; + case 101008: + return CUSTOM_DIMENSION_8_VALUE; + case 101009: + return CUSTOM_DIMENSION_9_VALUE; + 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 Dimension findValueByNumber(int number) { + return Dimension.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (index == -1) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(index); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinition.getDescriptor().getEnumTypes().get(1); + } + + private static final Dimension[] VALUES = getStaticValuesArray(); + + private static Dimension[] getStaticValuesArray() { + return new Dimension[] { + DIMENSION_UNSPECIFIED, + ACTIVE_VIEW_MEASUREMENT_SOURCE, + ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME, + ADVERTISER_CREDIT_STATUS, + ADVERTISER_CREDIT_STATUS_NAME, + ADVERTISER_DOMAIN_NAME, + ADVERTISER_EXTERNAL_ID, + ADVERTISER_ID, + ADVERTISER_LABELS, + ADVERTISER_LABEL_IDS, + ADVERTISER_NAME, + ADVERTISER_PRIMARY_CONTACT, + ADVERTISER_STATUS, + ADVERTISER_STATUS_NAME, + ADVERTISER_TYPE, + ADVERTISER_TYPE_NAME, + ADVERTISER_VERTICAL, + ADX_PRODUCT, + ADX_PRODUCT_NAME, + AD_EXPERIENCES_TYPE, + AD_EXPERIENCES_TYPE_NAME, + AD_LOCATION, + AD_LOCATION_NAME, + AD_TECHNOLOGY_PROVIDER_DOMAIN, + AD_TECHNOLOGY_PROVIDER_ID, + AD_TECHNOLOGY_PROVIDER_NAME, + AD_TYPE, + AD_TYPE_NAME, + AD_UNIT_CODE, + AD_UNIT_CODE_LEVEL_1, + AD_UNIT_CODE_LEVEL_10, + AD_UNIT_CODE_LEVEL_11, + AD_UNIT_CODE_LEVEL_12, + AD_UNIT_CODE_LEVEL_13, + AD_UNIT_CODE_LEVEL_14, + AD_UNIT_CODE_LEVEL_15, + AD_UNIT_CODE_LEVEL_16, + AD_UNIT_CODE_LEVEL_2, + AD_UNIT_CODE_LEVEL_3, + AD_UNIT_CODE_LEVEL_4, + AD_UNIT_CODE_LEVEL_5, + AD_UNIT_CODE_LEVEL_6, + AD_UNIT_CODE_LEVEL_7, + AD_UNIT_CODE_LEVEL_8, + AD_UNIT_CODE_LEVEL_9, + AD_UNIT_ID, + AD_UNIT_ID_ALL_LEVEL, + AD_UNIT_ID_LEVEL_1, + AD_UNIT_ID_LEVEL_10, + AD_UNIT_ID_LEVEL_11, + AD_UNIT_ID_LEVEL_12, + AD_UNIT_ID_LEVEL_13, + AD_UNIT_ID_LEVEL_14, + AD_UNIT_ID_LEVEL_15, + AD_UNIT_ID_LEVEL_16, + AD_UNIT_ID_LEVEL_2, + AD_UNIT_ID_LEVEL_3, + AD_UNIT_ID_LEVEL_4, + AD_UNIT_ID_LEVEL_5, + AD_UNIT_ID_LEVEL_6, + AD_UNIT_ID_LEVEL_7, + AD_UNIT_ID_LEVEL_8, + AD_UNIT_ID_LEVEL_9, + AD_UNIT_ID_TOP_LEVEL, + AD_UNIT_NAME, + AD_UNIT_NAME_ALL_LEVEL, + AD_UNIT_NAME_LEVEL_1, + AD_UNIT_NAME_LEVEL_10, + AD_UNIT_NAME_LEVEL_11, + AD_UNIT_NAME_LEVEL_12, + AD_UNIT_NAME_LEVEL_13, + AD_UNIT_NAME_LEVEL_14, + AD_UNIT_NAME_LEVEL_15, + AD_UNIT_NAME_LEVEL_16, + AD_UNIT_NAME_LEVEL_2, + AD_UNIT_NAME_LEVEL_3, + AD_UNIT_NAME_LEVEL_4, + AD_UNIT_NAME_LEVEL_5, + AD_UNIT_NAME_LEVEL_6, + AD_UNIT_NAME_LEVEL_7, + AD_UNIT_NAME_LEVEL_8, + AD_UNIT_NAME_LEVEL_9, + AD_UNIT_NAME_TOP_LEVEL, + AD_UNIT_REWARD_AMOUNT, + AD_UNIT_REWARD_TYPE, + AD_UNIT_STATUS, + AD_UNIT_STATUS_NAME, + AGENCY_LEVEL_1_ID, + AGENCY_LEVEL_1_NAME, + AGENCY_LEVEL_2_ID, + AGENCY_LEVEL_2_NAME, + AGENCY_LEVEL_3_ID, + AGENCY_LEVEL_3_NAME, + AGE_BRACKET, + AGE_BRACKET_NAME, + APP_TRACKING_TRANSPARENCY_CONSENT_STATUS, + APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME, + APP_VERSION, + AUCTION_PACKAGE_DEAL, + AUCTION_PACKAGE_DEAL_ID, + AUDIENCE_SEGMENT_ID_TARGETED, + AUDIENCE_SEGMENT_TARGETED, + AUTO_REFRESHED_TRAFFIC, + AUTO_REFRESHED_TRAFFIC_NAME, + BIDDER_ENCRYPTED_ID, + BIDDER_NAME, + BID_RANGE, + BID_REJECTION_REASON, + BID_REJECTION_REASON_NAME, + BRANDING_TYPE, + BRANDING_TYPE_NAME, + BROWSER_CATEGORY, + BROWSER_CATEGORY_NAME, + BROWSER_ID, + BROWSER_NAME, + BUYER_NETWORK_ID, + BUYER_NETWORK_NAME, + CALLOUT_STATUS_CATEGORY, + CALLOUT_STATUS_CATEGORY_NAME, + CARRIER_ID, + CARRIER_NAME, + CHANNEL, + CHILD_NETWORK_CODE, + CHILD_NETWORK_ID, + CHILD_PARTNER_NAME, + CITY_ID, + CITY_NAME, + CLASSIFIED_ADVERTISER_ID, + CLASSIFIED_ADVERTISER_NAME, + CLASSIFIED_BRAND_ID, + CLASSIFIED_BRAND_NAME, + CONTENT_CMS_NAME, + CONTENT_CMS_VIDEO_ID, + CONTENT_ID, + CONTENT_MAPPING_PRESENCE, + CONTENT_MAPPING_PRESENCE_NAME, + CONTENT_NAME, + CONTINENT, + CONTINENT_NAME, + COUNTRY_CODE, + COUNTRY_ID, + COUNTRY_NAME, + CREATIVE_BILLING_TYPE, + CREATIVE_BILLING_TYPE_NAME, + CREATIVE_CLICK_THROUGH_URL, + CREATIVE_ID, + CREATIVE_NAME, + CREATIVE_POLICIES_FILTERING, + CREATIVE_POLICIES_FILTERING_NAME, + CREATIVE_PROTECTIONS_FILTERING, + CREATIVE_PROTECTIONS_FILTERING_NAME, + CREATIVE_SET_ROLE_TYPE, + CREATIVE_SET_ROLE_TYPE_NAME, + CREATIVE_TECHNOLOGY, + CREATIVE_TECHNOLOGY_NAME, + CREATIVE_THIRD_PARTY_VENDOR, + CREATIVE_TYPE, + CREATIVE_TYPE_NAME, + CREATIVE_VENDOR_ID, + CREATIVE_VENDOR_NAME, + CREATIVE_VIDEO_REDIRECT_THIRD_PARTY, + CURATOR_ID, + CURATOR_NAME, + CUSTOM_EVENT_ID, + CUSTOM_EVENT_NAME, + CUSTOM_EVENT_TYPE, + CUSTOM_EVENT_TYPE_NAME, + CUSTOM_SPOT_ID, + CUSTOM_SPOT_NAME, + DATE, + DAY_OF_WEEK, + DEAL_BUYER_ID, + DEAL_BUYER_NAME, + DEAL_ID, + DEAL_NAME, + DELIVERED_SECURE_SIGNAL_ID, + DELIVERED_SECURE_SIGNAL_NAME, + DEMAND_CHANNEL, + DEMAND_CHANNEL_NAME, + DEMAND_SOURCE, + DEMAND_SOURCE_NAME, + DEMAND_SUBCHANNEL, + DEMAND_SUBCHANNEL_NAME, + DEVICE, + DEVICE_CATEGORY, + DEVICE_CATEGORY_NAME, + DEVICE_MANUFACTURER_ID, + DEVICE_MANUFACTURER_NAME, + DEVICE_MODEL_ID, + DEVICE_MODEL_NAME, + DEVICE_NAME, + DSP_SEAT_ID, + DYNAMIC_ALLOCATION_TYPE, + DYNAMIC_ALLOCATION_TYPE_NAME, + ESP_DELIVERY, + ESP_DELIVERY_NAME, + ESP_PRESENCE, + ESP_PRESENCE_NAME, + EXCHANGE_BIDDING_DEAL_ID, + EXCHANGE_BIDDING_DEAL_TYPE, + EXCHANGE_BIDDING_DEAL_TYPE_NAME, + EXCHANGE_THIRD_PARTY_COMPANY_ID, + EXCHANGE_THIRD_PARTY_COMPANY_NAME, + FIRST_LOOK_PRICING_RULE_ID, + FIRST_LOOK_PRICING_RULE_NAME, + FIRST_PARTY_ID_STATUS, + FIRST_PARTY_ID_STATUS_NAME, + GENDER, + GENDER_NAME, + GOOGLE_ANALYTICS_STREAM_ID, + GOOGLE_ANALYTICS_STREAM_NAME, + HBT_YIELD_PARTNER_ID, + HBT_YIELD_PARTNER_NAME, + HEADER_BIDDER_INTEGRATION_TYPE, + HEADER_BIDDER_INTEGRATION_TYPE_NAME, + HOUR, + IMPRESSION_COUNTING_METHOD, + IMPRESSION_COUNTING_METHOD_NAME, + INTERACTION_TYPE, + INTERACTION_TYPE_NAME, + INTEREST, + INVENTORY_FORMAT, + INVENTORY_FORMAT_NAME, + INVENTORY_SHARE_ASSIGNMENT_ID, + INVENTORY_SHARE_ASSIGNMENT_NAME, + INVENTORY_SHARE_OUTCOME, + INVENTORY_SHARE_OUTCOME_NAME, + INVENTORY_SHARE_PARTNER_AD_SERVER, + INVENTORY_SHARE_PARTNER_AD_SERVER_NAME, + INVENTORY_SHARE_TARGET_SHARE_PERCENT, + INVENTORY_SHARE_TYPE, + INVENTORY_SHARE_TYPE_NAME, + INVENTORY_TYPE, + INVENTORY_TYPE_NAME, + IS_ADX_DIRECT, + IS_CURATION_TARGETED, + IS_DROPPED, + IS_FIRST_LOOK_DEAL, + KEY_VALUES_ID, + KEY_VALUES_NAME, + LINE_ITEM_AGENCY, + LINE_ITEM_ARCHIVED, + LINE_ITEM_COMPANION_DELIVERY_OPTION, + LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME, + LINE_ITEM_COMPUTED_STATUS, + LINE_ITEM_COMPUTED_STATUS_NAME, + LINE_ITEM_CONTRACTED_QUANTITY, + LINE_ITEM_COST_PER_UNIT, + LINE_ITEM_COST_TYPE, + LINE_ITEM_COST_TYPE_NAME, + LINE_ITEM_CREATIVE_END_DATE, + LINE_ITEM_CREATIVE_ROTATION_TYPE, + LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME, + LINE_ITEM_CREATIVE_START_DATE, + LINE_ITEM_CURRENCY_CODE, + LINE_ITEM_DELIVERY_INDICATOR, + LINE_ITEM_DELIVERY_RATE_TYPE, + LINE_ITEM_DELIVERY_RATE_TYPE_NAME, + LINE_ITEM_DISCOUNT_ABSOLUTE, + LINE_ITEM_DISCOUNT_PERCENTAGE, + LINE_ITEM_END_DATE, + LINE_ITEM_END_DATE_TIME, + LINE_ITEM_ENVIRONMENT_TYPE, + LINE_ITEM_ENVIRONMENT_TYPE_NAME, + LINE_ITEM_EXTERNAL_DEAL_ID, + LINE_ITEM_EXTERNAL_ID, + LINE_ITEM_FREQUENCY_CAP, + LINE_ITEM_ID, + LINE_ITEM_LABELS, + LINE_ITEM_LABEL_IDS, + LINE_ITEM_LAST_MODIFIED_BY_APP, + LINE_ITEM_LIFETIME_CLICKS, + LINE_ITEM_LIFETIME_IMPRESSIONS, + LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS, + LINE_ITEM_MAKEGOOD, + LINE_ITEM_NAME, + LINE_ITEM_NON_CPD_BOOKED_REVENUE, + LINE_ITEM_OPTIMIZABLE, + LINE_ITEM_PO_NUMBER, + LINE_ITEM_PRIMARY_GOAL_TYPE, + LINE_ITEM_PRIMARY_GOAL_TYPE_NAME, + LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE, + LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE, + LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE, + LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME, + LINE_ITEM_PRIORITY, + LINE_ITEM_RESERVATION_STATUS, + LINE_ITEM_RESERVATION_STATUS_NAME, + LINE_ITEM_SALESPERSON, + LINE_ITEM_SECONDARY_SALESPEOPLE, + LINE_ITEM_SECONDARY_TRAFFICKERS, + LINE_ITEM_START_DATE, + LINE_ITEM_START_DATE_TIME, + LINE_ITEM_TRAFFICKER, + LINE_ITEM_TYPE, + LINE_ITEM_TYPE_NAME, + LINE_ITEM_UNLIMITED_END, + LINE_ITEM_VALUE_COST_PER_UNIT, + LINE_ITEM_WEB_PROPERTY_CODE, + MASTER_COMPANION_CREATIVE_ID, + MASTER_COMPANION_CREATIVE_NAME, + MEDIATION_TYPE, + MEDIATION_TYPE_NAME, + MEDIATION_YIELD_PARTNER_ID, + MEDIATION_YIELD_PARTNER_NAME, + METRO_ID, + METRO_NAME, + MOBILE_APP_FREE, + MOBILE_APP_ICON_URL, + MOBILE_APP_ID, + MOBILE_APP_NAME, + MOBILE_APP_OWNERSHIP_STATUS, + MOBILE_APP_OWNERSHIP_STATUS_NAME, + MOBILE_APP_STORE, + MOBILE_APP_STORE_NAME, + MOBILE_INVENTORY_TYPE, + MOBILE_INVENTORY_TYPE_NAME, + MOBILE_RENDERING_SDK, + MOBILE_RENDERING_SDK_NAME, + MOBILE_SDK_MAJOR_VERSION, + MOBILE_SDK_MINOR_VERSION, + MOBILE_SDK_VERSION_NAME, + MONTH_YEAR, + NATIVE_AD_FORMAT_ID, + NATIVE_AD_FORMAT_NAME, + NATIVE_STYLE_ID, + NATIVE_STYLE_NAME, + NO_FILL_REASON_CATEGORY, + NO_FILL_REASON_CATEGORY_NAME, + OPERATING_SYSTEM_CATEGORY, + OPERATING_SYSTEM_CATEGORY_NAME, + OPERATING_SYSTEM_VERSION_ID, + OPERATING_SYSTEM_VERSION_NAME, + OPTIMIZATION_TYPE, + OPTIMIZATION_TYPE_NAME, + ORDER_AGENCY, + ORDER_AGENCY_ID, + ORDER_BOOKED_CPC, + ORDER_BOOKED_CPM, + ORDER_DELIVERY_STATUS, + ORDER_DELIVERY_STATUS_NAME, + ORDER_END_DATE, + ORDER_END_DATE_TIME, + ORDER_EXTERNAL_ID, + ORDER_ID, + ORDER_LABELS, + ORDER_LABEL_IDS, + ORDER_LIFETIME_CLICKS, + ORDER_LIFETIME_IMPRESSIONS, + ORDER_NAME, + ORDER_PO_NUMBER, + ORDER_PROGRAMMATIC, + ORDER_SALESPERSON, + ORDER_SALESPERSON_ID, + ORDER_SECONDARY_SALESPEOPLE, + ORDER_SECONDARY_SALESPEOPLE_ID, + ORDER_SECONDARY_TRAFFICKERS, + ORDER_SECONDARY_TRAFFICKERS_ID, + ORDER_START_DATE, + ORDER_START_DATE_TIME, + ORDER_TRAFFICKER, + ORDER_TRAFFICKER_ID, + ORDER_UNLIMITED_END, + PAGE_PATH, + PAGE_TITLE_AND_SCREEN_CLASS, + PAGE_TITLE_AND_SCREEN_NAME, + PLACEMENT_ID, + PLACEMENT_ID_ALL, + PLACEMENT_NAME, + PLACEMENT_NAME_ALL, + PLACEMENT_STATUS, + PLACEMENT_STATUS_NAME, + PLACEMENT_STATUS_NAME_ALL, + POSTAL_CODE_ID, + POSTAL_CODE_NAME, + PPID_STATUS, + PPID_STATUS_NAME, + PREDICTED_VIEWABILITY_BUCKET, + PREDICTED_VIEWABILITY_BUCKET_NAME, + PRESENTED_SECURE_SIGNAL_ID, + PRESENTED_SECURE_SIGNAL_NAME, + PRIMARY_PERSONALIZATION_ID_TYPE, + PRIMARY_PERSONALIZATION_ID_TYPE_NAME, + PROGRAMMATIC_BUYER_ID, + PROGRAMMATIC_BUYER_NAME, + PROGRAMMATIC_CHANNEL, + PROGRAMMATIC_CHANNEL_NAME, + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE, + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS, + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME, + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER, + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE, + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE, + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS, + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME, + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER, + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE, + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE, + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID, + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME, + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER, + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE, + PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID, + PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME, + REGION_ID, + REGION_NAME, + REJECTION_CLASS_CATEGORY, + REJECTION_CLASS_CATEGORY_NAME, + RENDERED_CREATIVE_SIZE, + REQUESTED_AD_SIZES, + REQUEST_TYPE, + REQUEST_TYPE_NAME, + SERVER_SIDE_UNWRAPPING_ELIGIBLE, + SERVING_RESTRICTION, + SERVING_RESTRICTION_NAME, + SITE, + TARGETING_ID, + TARGETING_NAME, + TARGETING_TYPE, + TARGETING_TYPE_NAME, + THIRD_PARTY_ID_STATUS, + THIRD_PARTY_ID_STATUS_NAME, + TOPICS_STATUS, + TOPICS_STATUS_NAME, + TOP_PRIVATE_DOMAIN, + TRAFFIC_SOURCE, + TRAFFIC_SOURCE_NAME, + UNIFIED_PRICING_RULE_ID, + UNIFIED_PRICING_RULE_NAME, + URL, + URL_ID, + USER_MESSAGES_ENTITLEMENT_SOURCE, + USER_MESSAGES_ENTITLEMENT_SOURCE_NAME, + USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID, + USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME, + VAST_VERSION, + VAST_VERSION_NAME, + VIDEO_AD_BREAK_TYPE, + VIDEO_AD_BREAK_TYPE_NAME, + VIDEO_AD_DURATION, + VIDEO_AD_FORMATS_RULE, + VIDEO_AD_FORMATS_RULE_ID, + VIDEO_AD_REQUEST_DURATION, + VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME, + VIDEO_AD_REQUEST_DURATION_NAME, + VIDEO_AD_REQUEST_SOURCE, + VIDEO_AD_REQUEST_SOURCE_NAME, + VIDEO_AD_TYPE, + VIDEO_AD_TYPE_NAME, + VIDEO_CONTINUOUS_PLAY_TYPE, + VIDEO_CONTINUOUS_PLAY_TYPE_NAME, + VIDEO_FALLBACK_POSITION, + VIDEO_MEASUREMENT_SOURCE, + VIDEO_MEASUREMENT_SOURCE_NAME, + VIDEO_PLCMT, + VIDEO_PLCMT_NAME, + VIDEO_POSITION_IN_POD, + VIDEO_POSITION_OF_POD, + VIDEO_SDK_VERSION, + VIDEO_SDK_VERSION_NAME, + VIDEO_STITCHER_TYPE, + VIDEO_STITCHER_TYPE_NAME, + WEEK, + YIELD_GROUP_BUYER_NAME, + YIELD_GROUP_BUYER_TAG_NAME, + YIELD_GROUP_ID, + YIELD_GROUP_NAME, + YOUTUBE_AD_DURATION_BUCKET, + YOUTUBE_AD_DURATION_BUCKET_NAME, + YOUTUBE_AD_TYPE, + YOUTUBE_AD_TYPE_NAME, + LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID, + LINE_ITEM_CUSTOM_FIELD_0_VALUE, + LINE_ITEM_CUSTOM_FIELD_1_VALUE, + LINE_ITEM_CUSTOM_FIELD_2_VALUE, + LINE_ITEM_CUSTOM_FIELD_3_VALUE, + LINE_ITEM_CUSTOM_FIELD_4_VALUE, + LINE_ITEM_CUSTOM_FIELD_5_VALUE, + LINE_ITEM_CUSTOM_FIELD_6_VALUE, + LINE_ITEM_CUSTOM_FIELD_7_VALUE, + LINE_ITEM_CUSTOM_FIELD_8_VALUE, + LINE_ITEM_CUSTOM_FIELD_9_VALUE, + LINE_ITEM_CUSTOM_FIELD_10_VALUE, + LINE_ITEM_CUSTOM_FIELD_11_VALUE, + LINE_ITEM_CUSTOM_FIELD_12_VALUE, + LINE_ITEM_CUSTOM_FIELD_13_VALUE, + LINE_ITEM_CUSTOM_FIELD_14_VALUE, + ORDER_CUSTOM_FIELD_0_OPTION_ID, + ORDER_CUSTOM_FIELD_1_OPTION_ID, + ORDER_CUSTOM_FIELD_2_OPTION_ID, + ORDER_CUSTOM_FIELD_3_OPTION_ID, + ORDER_CUSTOM_FIELD_4_OPTION_ID, + ORDER_CUSTOM_FIELD_5_OPTION_ID, + ORDER_CUSTOM_FIELD_6_OPTION_ID, + ORDER_CUSTOM_FIELD_7_OPTION_ID, + ORDER_CUSTOM_FIELD_8_OPTION_ID, + ORDER_CUSTOM_FIELD_9_OPTION_ID, + ORDER_CUSTOM_FIELD_10_OPTION_ID, + ORDER_CUSTOM_FIELD_11_OPTION_ID, + ORDER_CUSTOM_FIELD_12_OPTION_ID, + ORDER_CUSTOM_FIELD_13_OPTION_ID, + ORDER_CUSTOM_FIELD_14_OPTION_ID, + ORDER_CUSTOM_FIELD_0_VALUE, + ORDER_CUSTOM_FIELD_1_VALUE, + ORDER_CUSTOM_FIELD_2_VALUE, + ORDER_CUSTOM_FIELD_3_VALUE, + ORDER_CUSTOM_FIELD_4_VALUE, + ORDER_CUSTOM_FIELD_5_VALUE, + ORDER_CUSTOM_FIELD_6_VALUE, + ORDER_CUSTOM_FIELD_7_VALUE, + ORDER_CUSTOM_FIELD_8_VALUE, + ORDER_CUSTOM_FIELD_9_VALUE, + ORDER_CUSTOM_FIELD_10_VALUE, + ORDER_CUSTOM_FIELD_11_VALUE, + ORDER_CUSTOM_FIELD_12_VALUE, + ORDER_CUSTOM_FIELD_13_VALUE, + ORDER_CUSTOM_FIELD_14_VALUE, + CREATIVE_CUSTOM_FIELD_0_OPTION_ID, + CREATIVE_CUSTOM_FIELD_1_OPTION_ID, + CREATIVE_CUSTOM_FIELD_2_OPTION_ID, + CREATIVE_CUSTOM_FIELD_3_OPTION_ID, + CREATIVE_CUSTOM_FIELD_4_OPTION_ID, + CREATIVE_CUSTOM_FIELD_5_OPTION_ID, + CREATIVE_CUSTOM_FIELD_6_OPTION_ID, + CREATIVE_CUSTOM_FIELD_7_OPTION_ID, + CREATIVE_CUSTOM_FIELD_8_OPTION_ID, + CREATIVE_CUSTOM_FIELD_9_OPTION_ID, + CREATIVE_CUSTOM_FIELD_10_OPTION_ID, + CREATIVE_CUSTOM_FIELD_11_OPTION_ID, + CREATIVE_CUSTOM_FIELD_12_OPTION_ID, + CREATIVE_CUSTOM_FIELD_13_OPTION_ID, + CREATIVE_CUSTOM_FIELD_14_OPTION_ID, + CREATIVE_CUSTOM_FIELD_0_VALUE, + CREATIVE_CUSTOM_FIELD_1_VALUE, + CREATIVE_CUSTOM_FIELD_2_VALUE, + CREATIVE_CUSTOM_FIELD_3_VALUE, + CREATIVE_CUSTOM_FIELD_4_VALUE, + CREATIVE_CUSTOM_FIELD_5_VALUE, + CREATIVE_CUSTOM_FIELD_6_VALUE, + CREATIVE_CUSTOM_FIELD_7_VALUE, + CREATIVE_CUSTOM_FIELD_8_VALUE, + CREATIVE_CUSTOM_FIELD_9_VALUE, + CREATIVE_CUSTOM_FIELD_10_VALUE, + CREATIVE_CUSTOM_FIELD_11_VALUE, + CREATIVE_CUSTOM_FIELD_12_VALUE, + CREATIVE_CUSTOM_FIELD_13_VALUE, + CREATIVE_CUSTOM_FIELD_14_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE, + BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID, + BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE, + BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID, + BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE, + BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE, + CUSTOM_DIMENSION_0_VALUE_ID, + CUSTOM_DIMENSION_1_VALUE_ID, + CUSTOM_DIMENSION_2_VALUE_ID, + CUSTOM_DIMENSION_3_VALUE_ID, + CUSTOM_DIMENSION_4_VALUE_ID, + CUSTOM_DIMENSION_5_VALUE_ID, + CUSTOM_DIMENSION_6_VALUE_ID, + CUSTOM_DIMENSION_7_VALUE_ID, + CUSTOM_DIMENSION_8_VALUE_ID, + CUSTOM_DIMENSION_9_VALUE_ID, + CUSTOM_DIMENSION_0_VALUE, + CUSTOM_DIMENSION_1_VALUE, + CUSTOM_DIMENSION_2_VALUE, + CUSTOM_DIMENSION_3_VALUE, + CUSTOM_DIMENSION_4_VALUE, + CUSTOM_DIMENSION_5_VALUE, + CUSTOM_DIMENSION_6_VALUE, + CUSTOM_DIMENSION_7_VALUE, + CUSTOM_DIMENSION_8_VALUE, + CUSTOM_DIMENSION_9_VALUE, + }; + } + + public static Dimension 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 index; + private final int value; + + private Dimension(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ReportDefinition.Dimension) + } + + /** + * + * + *
    +   * Reporting metrics.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ReportDefinition.Metric} + */ + public enum Metric implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * METRIC_UNSPECIFIED = 0; + */ + METRIC_UNSPECIFIED(0, 0), + /** + * + * + *
    +     * The number of people who engaged with your site or app in the specified
    +     *  date range from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active users" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_USERS = 223; + */ + ACTIVE_USERS(1, 223), + /** + * + * + *
    +     * Number of impressions with unmuted playback at start.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible at start" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT = 445; + */ + ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT(2, 445), + /** + * + * + *
    +     * Total Active View audible impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View audible impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_IMPRESSIONS = 659; + */ + ACTIVE_VIEW_AUDIBLE_IMPRESSIONS(3, 659), + /** + * + * + *
    +     * Number of impressions with unmuted playback through the entire stream.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible through completion" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT = 446; + */ + ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT(4, 446), + /** + * + * + *
    +     * Number of impressions with unmuted playback through at least 25%.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible through first quartile" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT = 447; + */ + ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT(5, 447), + /** + * + * + *
    +     * Number of impressions with unmuted playback through at least 50%.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible through midpoint" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT = 448; + */ + ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT(6, 448), + /** + * + * + *
    +     * Number of impressions with unmuted playback through at least 75%.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible through third quartile" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT = 449; + */ + ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT(7, 449), + /** + * + * + *
    +     * Total Active View audio enabled impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View audio eligible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS = 660; + */ + ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS(8, 660), + /** + * + * + *
    +     * Total Active View audio measurable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View audio measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS = 661; + */ + ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS(9, 661), + /** + * + * + *
    +     * Active View total average time in seconds that specific impressions are
    +     *  reported as being viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View average viewable time (seconds)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; + */ + ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME(10, 61), + /** + * + * + *
    +     * Total number of impressions that were eligible to measure viewability.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View eligible impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; + */ + ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS(11, 58), + /** + * + * + *
    +     * Number of impressions where the ad player is in the background at any
    +     *  point during playback with volume > 0.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % ever audible while backgrounded" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT = 450; + */ + ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT(12, 450), + /** + * + * + *
    +     * Number of impressions where volume > 0 at any point.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % ever audible" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_EVER_AUDIBLE_PERCENT = 451; + */ + ACTIVE_VIEW_EVER_AUDIBLE_PERCENT(13, 451), + /** + * + * + *
    +     * Number of impressions where the ad player is in the background at any
    +     *  point during playback.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % ever backgrounded" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT = 452; + */ + ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT(14, 452), + /** + * + * + *
    +     * Number of impressions where volume = 0 at any point.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % ever muted" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_EVER_MUTED_PERCENT = 453; + */ + ACTIVE_VIEW_EVER_MUTED_PERCENT(15, 453), + /** + * + * + *
    +     * The number of measurable impressions that were played to video
    +     *  completion, and also audible and visible at the time of completion.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View impressions audible and visible at
    +     * completion" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION = 411; + */ + ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION(16, 411), + /** + * + * + *
    +     * The total number of impressions that were sampled and measured by active
    +     *  view.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; + */ + ACTIVE_VIEW_MEASURABLE_IMPRESSIONS(17, 57), + /** + * + * + *
    +     * The percentage of total impressions that were measurable by active view
    +     *  (out of all the total impressions sampled for active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View % measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; + */ + ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE(18, 60), + /** + * + * + *
    +     * Total Active View non-measurable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View non-measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 662; + */ + ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS(19, 662), + /** + * + * + *
    +     * Total Active View non-viewable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View non-viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 663; + */ + ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS(20, 663), + /** + * + * + *
    +     * Total Active View non-viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View non-viewable impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 664; + */ + ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION(21, 664), + /** + * + * + *
    +     * Total Active View percent audible impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View % audible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS = 665; + */ + ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS(22, 665), + /** + * + * + *
    +     * Number of impressions where we were able to collect Active View+ signals.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View+ measurable impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_PLUS_MEASURABLE_COUNT = 454; + */ + ACTIVE_VIEW_PLUS_MEASURABLE_COUNT(23, 454), + /** + * + * + *
    +     * Revenue generated from Active View impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * ACTIVE_VIEW_REVENUE = 414; + */ + ACTIVE_VIEW_REVENUE(24, 414), + /** + * + * + *
    +     * Total Active View undetermined impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View undetermined impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 666; + */ + ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION(25, 666), + /** + * + * + *
    +     * The total number of impressions viewed on the user's screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View viewable impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; + */ + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS(26, 56), + /** + * + * + *
    +     * Total Active View viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View viewable impression distribution" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 667; + */ + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION(27, 667), + /** + * + * + *
    +     * The percentage of total impressions viewed on the user's screen (out of
    +     *  the total impressions measurable by active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View % viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; + */ + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE(28, 59), + /** + * + * + *
    +     * Active View AdSense average time in seconds that specific impressions are
    +     *  reported as being viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View average viewable time (seconds)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; + */ + ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME(29, 73), + /** + * + * + *
    +     * Total number of impressions delivered by AdSense that were eligible to
    +     *  measure viewability.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View eligible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; + */ + ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS(30, 70), + /** + * + * + *
    +     * The number of impressions delivered by AdSense that were sampled, and
    +     *  measurable by active view.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; + */ + ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS(31, 69), + /** + * + * + *
    +     * The percentage of impressions delivered by AdSense that were measurable
    +     *  by active view (out of all AdSense impressions sampled for active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View % measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; + */ + ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE(32, 72), + /** + * + * + *
    +     * AdSense Active View non-measurable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View non-measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 642; + */ + ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS(33, 642), + /** + * + * + *
    +     * AdSense Active View non-viewable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View non-viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 643; + */ + ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS(34, 643), + /** + * + * + *
    +     * AdSense Active View non-viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View non-viewable impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 644; + */ + ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION(35, 644), + /** + * + * + *
    +     * AdSense Active View undetermined impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View undetermined impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 645; + */ + ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION(36, 645), + /** + * + * + *
    +     * The number of impressions delivered by AdSense viewed on the user's
    +     *  screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; + */ + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS(37, 68), + /** + * + * + *
    +     * AdSense Active View viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View viewable impression distribution" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 646; + */ + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION(38, 646), + /** + * + * + *
    +     * The percentage of impressions delivered by AdSense viewed on the user's
    +     *  screen (out of AdSense impressions measurable by active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View % viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; + */ + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE(39, 71), + /** + * + * + *
    +     * The average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by AdSense through line item dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense average eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * ADSENSE_AVERAGE_ECPM = 26; + */ + ADSENSE_AVERAGE_ECPM(40, 26), + /** + * + * + *
    +     * Number of clicks delivered by AdSense demand channel.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_CLICKS = 23; + */ + ADSENSE_CLICKS(41, 23), + /** + * + * + *
    +     * The ratio of impressions served by AdSense that resulted in users
    +     *  clicking on an ad. The clickthrough rate (CTR) is updated nightly. The
    +     *  AdSense CTR is calculated as: (AdSense clicks / AdSense impressions).
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_CTR = 24; + */ + ADSENSE_CTR(42, 24), + /** + * + * + *
    +     * Total impressions delivered by AdSense.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_IMPRESSIONS = 22; + */ + ADSENSE_IMPRESSIONS(43, 22), + /** + * + * + *
    +     * Ratio of clicks delivered by AdSense through line item dynamic allocation
    +     *  in relation to the total clicks delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense clicks (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_PERCENT_CLICKS = 28; + */ + ADSENSE_PERCENT_CLICKS(44, 28), + /** + * + * + *
    +     * Ratio of impressions delivered by AdSense through line item dynamic
    +     *  allocation in relation to the total impressions delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense impressions (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_PERCENT_IMPRESSIONS = 27; + */ + ADSENSE_PERCENT_IMPRESSIONS(45, 27), + /** + * + * + *
    +     * Ratio of revenue generated by AdSense through line item dynamic
    +     *  allocation in relation to the total revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense revenue (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_PERCENT_REVENUE = 29; + */ + ADSENSE_PERCENT_REVENUE(46, 29), + /** + * + * + *
    +     * Ratio of revenue generated by AdSense through line item dynamic
    +     *  allocation in relation to the total revenue (excluding CPD).
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense revenue w/o CPD (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; + */ + ADSENSE_PERCENT_REVENUE_WITHOUT_CPD(47, 30), + /** + * + * + *
    +     * The total number of times that an AdSense ad is delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_RESPONSES_SERVED = 41; + */ + ADSENSE_RESPONSES_SERVED(48, 41), + /** + * + * + *
    +     * Revenue generated from AdSense through line item dynamic allocation,
    +     *  calculated in the network's currency and time zone.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * ADSENSE_REVENUE = 25; + */ + ADSENSE_REVENUE(49, 25), + /** + * + * + *
    +     * Active View AdExchange average time in seconds that specific impressions
    +     *  are reported as being viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View average viewable time (seconds)"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; + */ + AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME(50, 79), + /** + * + * + *
    +     * Total number of impressions delivered by Ad Exchange that were eligible
    +     *  to measure viewability.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View eligible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; + */ + AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS(51, 76), + /** + * + * + *
    +     * The number of impressions delivered by Ad Exchange that were sampled, and
    +     *  measurable by active view.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; + */ + AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS(52, 75), + /** + * + * + *
    +     * The percentage of impressions delivered by Ad Exchange that were
    +     *  measurable by active view (out of all Ad Exchange impressions sampled
    +     *  for active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View % measurable impressions" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; + */ + AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE(53, 78), + /** + * + * + *
    +     * Ad Exchange Active View non-measurable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View non-measurable impressions" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 654; + */ + AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS(54, 654), + /** + * + * + *
    +     * Ad Exchange Active View non-viewable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View non-viewable impressions" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 655; + */ + AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS(55, 655), + /** + * + * + *
    +     * Ad Exchange Active View non-viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View non-viewable impression
    +     * distribution" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 656; + */ + AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION(56, 656), + /** + * + * + *
    +     * Ad Exchange Active View undetermined impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View undetermined impression
    +     * distribution" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 657; + */ + AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION(57, 657), + /** + * + * + *
    +     * The number of impressions delivered by Ad Exchange viewed on the user's
    +     *  screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; + */ + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS(58, 74), + /** + * + * + *
    +     * Ad Exchange Active View viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View viewable impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 658; + */ + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION(59, 658), + /** + * + * + *
    +     * The percentage of impressions delivered by Ad Exchange viewed on the
    +     *  user's screen (out of Ad Exchange impressions measurable by active
    +     *  view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View % viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; + */ + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE(60, 77), + /** + * + * + *
    +     * The average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by Ad Exchange through line item dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange average eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_AVERAGE_ECPM = 18; + */ + AD_EXCHANGE_AVERAGE_ECPM(61, 18), + /** + * + * + *
    +     * Number of clicks delivered by the Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_CLICKS = 15; + */ + AD_EXCHANGE_CLICKS(62, 15), + /** + * + * + *
    +     * The average effective cost-per-click earned from the ads delivered by Ad
    +     *  Exchange through line item dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange CPC" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_CPC = 244; + */ + AD_EXCHANGE_CPC(63, 244), + /** + * + * + *
    +     * The ratio of impressions served by the Ad Exchange that resulted in users
    +     *  clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad
    +     *  Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange
    +     *  impressions).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_CTR = 16; + */ + AD_EXCHANGE_CTR(64, 16), + /** + * + * + *
    +     * Ratio of impressions delivered by Ad Exchange through line item dynamic
    +     *  allocation to ad requests.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange delivery rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_DELIVERY_RATE = 245; + */ + AD_EXCHANGE_DELIVERY_RATE(65, 245), + /** + * + * + *
    +     * Total impressions delivered by the Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_IMPRESSIONS = 14; + */ + AD_EXCHANGE_IMPRESSIONS(66, 14), + /** + * + * + *
    +     * The total number of impressions based on the number of ad viewers.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange impressions per ad viewer" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER = 427; + */ + AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER(67, 427), + /** + * + * + *
    +     * The total number of impressions based on the number of sessions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange impressions per session" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_EXCHANGE_IMPRESSIONS_PER_SESSION = 428; + */ + AD_EXCHANGE_IMPRESSIONS_PER_SESSION(68, 428), + /** + * + * + *
    +     * The increase in revenue gained for won impressions over the applicable
    +     *  third party price (the minimum CPM or the best price specified during
    +     *  dynamic allocation),
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange lift earnings" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_LIFT = 246; + */ + AD_EXCHANGE_LIFT(69, 246), + /** + * + * + *
    +     * The ratio of matched ad requests served by the Ad Exchange that
    +     *  resulted in users clicking on an ad. The clickthrough rate (CTR) is
    +     *  updated nightly. Ad Exchange Matched Request CTR is calculated as:
    +     *  (Ad Exchange clicks / Ad Exchange Macthed Ad Requests).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange matched request CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_MATCHED_REQUEST_CTR = 247; + */ + AD_EXCHANGE_MATCHED_REQUEST_CTR(70, 247), + /** + * + * + *
    +     * The average effective cost per thousand matched ad requests earned from
    +     *  the ads delivered by Ad Exchange through line item dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange matched request eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_MATCHED_REQUEST_ECPM = 248; + */ + AD_EXCHANGE_MATCHED_REQUEST_ECPM(71, 248), + /** + * + * + *
    +     * The number of responses served divided by the number of queries eligible
    +     *  in ad exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange match rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_MATCH_RATE = 249; + */ + AD_EXCHANGE_MATCH_RATE(72, 249), + /** + * + * + *
    +     * Total opportunities from video VAST error within the waterfall for
    +     *  backfill ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange opportunities from errors" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS = 250; + */ + AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS(73, 250), + /** + * + * + *
    +     * Number of opportunities from impressions within the waterfall for
    +     *  backfill ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange opportunities from impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS = 251; + */ + AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS(74, 251), + /** + * + * + *
    +     * Ratio of clicks delivered by Ad Exchange through line item dynamic
    +     *  allocation in relation to the total clicks delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange clicks (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_PERCENT_CLICKS = 20; + */ + AD_EXCHANGE_PERCENT_CLICKS(75, 20), + /** + * + * + *
    +     * Ratio of impressions delivered by Ad Exchange through line item dynamic
    +     *  allocation in relation to the total impressions delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange impressions (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; + */ + AD_EXCHANGE_PERCENT_IMPRESSIONS(76, 19), + /** + * + * + *
    +     * Ratio of revenue generated by Ad Exchange through line item dynamic
    +     *  allocation in relation to the total revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_PERCENT_REVENUE = 21; + */ + AD_EXCHANGE_PERCENT_REVENUE(77, 21), + /** + * + * + *
    +     * Ratio of revenue generated by Ad Exchange through line item dynamic
    +     *  allocation in relation to the total revenue (excluding CPD).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue w/o CPD (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; + */ + AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD(78, 31), + /** + * + * + *
    +     * The average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by Ad Exchange through line item dynamic allocation and yield
    +     *  group partners.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange plus yield group eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM = 252; + */ + AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM(79, 252), + /** + * + * + *
    +     * Total impressions delivered by the Ad Exchange and third-party networks.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange plus yield group impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS = 253; + */ + AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS(80, 253), + /** + * + * + *
    +     * Revenue generated from the Ad Exchange and Yield Group, calculated in
    +     *   your network's currency and time zone.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange plus yield group revenue" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE = 254; + */ + AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE(81, 254), + /** + * + * + *
    +     * The total number of times that an Ad Exchange ad is delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_RESPONSES_SERVED = 42; + */ + AD_EXCHANGE_RESPONSES_SERVED(82, 42), + /** + * + * + *
    +     * Revenue generated from the Ad Exchange through line item dynamic
    +     *  allocation, calculated in your network's currency and time zone.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_REVENUE = 17; + */ + AD_EXCHANGE_REVENUE(83, 17), + /** + * + * + *
    +     * The Ad Exchange revenue accrued in the child network's own account but
    +     *  paid to their parent network through auto-payment. This metric is only
    +     *  relevant for a "Manage Account" child network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue paid through MCM auto-payment" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 212; + */ + AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(84, 212), + /** + * + * + *
    +     * The total amount of Ad Exchange revenue based on the
    +     *  number of ad viewers.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue per ad viewer" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_REVENUE_PER_AD_VIEWER = 429; + */ + AD_EXCHANGE_REVENUE_PER_AD_VIEWER(85, 429), + /** + * + * + *
    +     * The number of programmatic eligible queries in Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange total requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_TOTAL_REQUESTS = 255; + */ + AD_EXCHANGE_TOTAL_REQUESTS(86, 255), + /** + * + * + *
    +     * The ratio of total ad requests served by the Ad Exchange that
    +     *  resulted in users clicking on an ad. The clickthrough rate (CTR) is
    +     *  updated nightly. Ad Exchange Total Request CTR is calculated as:
    +     *  (Ad Exchange clicks / Ad Exchange Total Ad Requests).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange total request CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_TOTAL_REQUEST_CTR = 256; + */ + AD_EXCHANGE_TOTAL_REQUEST_CTR(87, 256), + /** + * + * + *
    +     * The average effective cost per thousand ad requests earned from the ads
    +     *  delivered by Ad Exchange through line item dynamic allocation and yield
    +     *   group partners.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange total request eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_TOTAL_REQUEST_ECPM = 257; + */ + AD_EXCHANGE_TOTAL_REQUEST_ECPM(88, 257), + /** + * + * + *
    +     * Length of time in seconds that an ad is visible on the user's screen from
    +     *  Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad exposure (seconds)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_EXPOSURE_SECONDS = 241; + */ + AD_EXPOSURE_SECONDS(89, 241), + /** + * + * + *
    +     * The total number of times that an ad request is sent to the ad server
    +     *  including dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_REQUESTS = 38; + */ + AD_REQUESTS(90, 38), + /** + * + * + *
    +     * Active View ad server average time in seconds that specific impressions
    +     *  are reported as being viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View average viewable time (seconds)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; + */ + AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME(91, 67), + /** + * + * + *
    +     * Total number of impressions delivered by the ad server that were eligible
    +     *  to measure viewability.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View eligible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; + */ + AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS(92, 64), + /** + * + * + *
    +     * The number of impressions delivered by the ad server that were sampled,
    +     *  and measurable by active view.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; + */ + AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS(93, 63), + /** + * + * + *
    +     * The percentage of impressions delivered by the ad server that were
    +     *  measurable by active view (out of all the ad server impressions sampled
    +     *  for active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View % measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; + */ + AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE(94, 66), + /** + * + * + *
    +     * The number of impressions delivered by Ad Server that were not measured.
    +     *  For example, impressions where measurement was attempted but failed.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View non-measurable impressions" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 332; + */ + AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS(95, 332), + /** + * + * + *
    +     * The number of impressions delivered by Ad Server that were measured by
    +     *  active view, but deemed not viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View non-viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 331; + */ + AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS(96, 331), + /** + * + * + *
    +     * The fraction of non-viewable impressions among eligible impressions from
    +     *  Ad Server in Active View reporting."
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View non-viewable impression
    +     * distribution" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 334; + */ + AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION(97, 334), + /** + * + * + *
    +     * The fraction of non-eligible impressions among eligible impressions from
    +     *  Ad Server in Active View reporting."
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View undetermined impression
    +     * distribution" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 335; + */ + AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION(98, 335), + /** + * + * + *
    +     * The number of impressions delivered by the ad server viewed on the user's
    +     *  screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; + */ + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS(99, 62), + /** + * + * + *
    +     * The fraction of viewable impressions among eligible impressions from Ad
    +     *  Server in Active View reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View viewable impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 333; + */ + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION(100, 333), + /** + * + * + *
    +     * The percentage of impressions delivered by the ad server viewed on the
    +     *  user's screen (out of the ad server impressions measurable by active
    +     *  view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View % viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; + */ + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE(101, 65), + /** + * + * + *
    +     * Average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by the Google Ad Manager server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server average eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_AVERAGE_ECPM = 34; + */ + AD_SERVER_AVERAGE_ECPM(102, 34), + /** + * + * + *
    +     * Average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by the Google Ad Manager server, excluding CPD value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server average eCPM w/o CPD" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; + */ + AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD(103, 10), + /** + * + * + *
    +     * Total raw impressions counted when creative begins to render or the
    +     *  first frame of a video is shown.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server begin to render impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; + */ + AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS(104, 262), + /** + * + * + *
    +     * Total clicks served by the Google Ad Manager server. It usually takes
    +     *  about 30 minutes for new clicks to be recorded and added to the total
    +     *  displayed in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_CLICKS = 7; + */ + AD_SERVER_CLICKS(105, 7), + /** + * + * + *
    +     * The number of completed views for ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server completed views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_COMPLETED_VIEWS = 431; + */ + AD_SERVER_COMPLETED_VIEWS(106, 431), + /** + * + * + *
    +     * Total coviewed impressions delivered by the Ad Server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server impressions (co-viewed)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_COVIEWED_IMPRESSIONS = 554; + */ + AD_SERVER_COVIEWED_IMPRESSIONS(107, 554), + /** + * + * + *
    +     * CPD revenue earned, calculated in your network's currency, for
    +     *  the ads delivered by the Google Ad Manager server. Sum of all booked
    +     *  revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server CPD revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_CPD_REVENUE = 32; + */ + AD_SERVER_CPD_REVENUE(108, 32), + /** + * + * + *
    +     * Ratio of impressions served by the Google Ad Manager server that resulted
    +     *  in users clicking on an ad. The clickthrough rate (CTR) is updated
    +     *  nightly. The ad server CTR is calculated as: (Ad server clicks / Ad
    +     *  server impressions).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_CTR = 8; + */ + AD_SERVER_CTR(109, 8), + /** + * + * + *
    +     * Gross revenue earned, calculated in your network's currency, for the ads
    +     *  delivered by the Google Ad Manager server.  This includes pre-rev-share
    +     *  revenue for Programmatic traffic. This metric is to help with the
    +     *  transition from gross to net revenue reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server total revenue (gross)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_GROSS_REVENUE = 483; + */ + AD_SERVER_GROSS_REVENUE(110, 483), + /** + * + * + *
    +     * Gross revenue earned, calculated in your network's currency, for the ads
    +     *  delivered by the Google Ad Manager server, excluding CPD revenue. This
    +     *  includes pre-rev-share revenue for Programmatic traffic. This metric is
    +     *  to help with the transition from gross to net revenue reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server CPM and CPC revenue (gross)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_GROSS_REVENUE_WITHOUT_CPD = 484; + */ + AD_SERVER_GROSS_REVENUE_WITHOUT_CPD(111, 484), + /** + * + * + *
    +     * Total impressions delivered by the Ad Server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_IMPRESSIONS = 6; + */ + AD_SERVER_IMPRESSIONS(112, 6), + /** + * + * + *
    +     * Total impressions delivered by the Ad Server with companion impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server impressions with companion" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_IMPRESSIONS_WITH_COMPANION = 222; + */ + AD_SERVER_IMPRESSIONS_WITH_COMPANION(113, 222), + /** + * + * + *
    +     * Impressions (via begin to render methodology) delivered by the Google Ad
    +     *  Manager server considered inactive, as defined by served to a device
    +     *  receiving ad or bid requests continuously for a session of greater than
    +     *  16 hours without a "reset" event.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server inactive begin to render impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 338; + */ + AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS(114, 338), + /** + * + * + *
    +     * Ratio of clicks delivered by the Google Ad Manager server in relation to
    +     *  the total clicks delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server clicks (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_PERCENT_CLICKS = 12; + */ + AD_SERVER_PERCENT_CLICKS(115, 12), + /** + * + * + *
    +     * Ratio of impressions delivered by the Google Ad Manager server in
    +     *  relation to the total impressions delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server impressions (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_PERCENT_IMPRESSIONS = 11; + */ + AD_SERVER_PERCENT_IMPRESSIONS(116, 11), + /** + * + * + *
    +     * Ratio of revenue generated by the Google Ad Manager server in relation
    +     *  to the total revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server revenue (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_PERCENT_REVENUE = 35; + */ + AD_SERVER_PERCENT_REVENUE(117, 35), + /** + * + * + *
    +     * Ratio of revenue generated by the Google Ad Manager server (excluding
    +     *  CPD) in relation to the total revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server revenue w/o CPD (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; + */ + AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD(118, 13), + /** + * + * + *
    +     * The total number of times that an ad is served by the ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_RESPONSES_SERVED = 40; + */ + AD_SERVER_RESPONSES_SERVED(119, 40), + /** + * + * + *
    +     * All CPM, CPC, and CPD revenue earned, calculated in your network's
    +     *  currency, for the ads delivered by the Google Ad Manager server.
    +     *  Sum of all booked revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server total revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_REVENUE = 33; + */ + AD_SERVER_REVENUE(120, 33), + /** + * + * + *
    +     * The Google Ad Manager server revenue accrued in the child network's own
    +     *  account but paid to their parent network through auto-payment. This
    +     *  metric is only relevant for a "Manage Account" child network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server revenue paid through MCM auto-payment" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 213; + */ + AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(121, 213), + /** + * + * + *
    +     * Revenue (excluding CPD) earned, calculated in your network's currency,
    +     *  for the ads delivered by the Google Ad Manager server. Sum of all booked
    +     *  revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server CPM and CPC revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_REVENUE_WITHOUT_CPD = 9; + */ + AD_SERVER_REVENUE_WITHOUT_CPD(122, 9), + /** + * + * + *
    +     * The number of clicks delivered by the ad server by explicit custom
    +     *  criteria targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server targeted clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_TARGETED_CLICKS = 274; + */ + AD_SERVER_TARGETED_CLICKS(123, 274), + /** + * + * + *
    +     * The number of impressions delivered by the ad server by explicit custom
    +     *  criteria targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server targeted impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_TARGETED_IMPRESSIONS = 275; + */ + AD_SERVER_TARGETED_IMPRESSIONS(124, 275), + /** + * + * + *
    +     * The number of tracked ads delivered by the ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server tracked ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_TRACKED_ADS = 264; + */ + AD_SERVER_TRACKED_ADS(125, 264), + /** + * + * + *
    +     * Total raw impressions counted when creative begins to render or the
    +     *  first frame of a video is shown, before invalid traffic filtrations by
    +     *  Ad Server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server unfiltered begin to render impressions" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; + */ + AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS(126, 261), + /** + * + * + *
    +     * Total clicks delivered by the Ad Server before spam filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server unfiltered clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_UNFILTERED_CLICKS = 259; + */ + AD_SERVER_UNFILTERED_CLICKS(127, 259), + /** + * + * + *
    +     * Total downloaded impressions delivered by the Ad Server before spam
    +     *  filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server unfiltered downloaded impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS = 260; + */ + AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS(128, 260), + /** + * + * + *
    +     * The number of tracked ads delivered by the ad server before invalid
    +     *  traffic filtrations.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server unfiltered tracked ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_UNFILTERED_TRACKED_ADS = 263; + */ + AD_SERVER_UNFILTERED_TRACKED_ADS(130, 263), + /** + * + * + *
    +     * Length of time in seconds that an ad unit is visible on the user's screen
    +     *  from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit exposure (seconds)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_UNIT_EXPOSURE_SECONDS = 242; + */ + AD_UNIT_EXPOSURE_SECONDS(131, 242), + /** + * + * + *
    +     * The number of users who viewed an ads on your site or app in the
    +     *  specified date range from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad viewers" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_VIEWERS = 425; + */ + AD_VIEWERS(132, 425), + /** + * + * + *
    +     * Number of ads that Ad Manager failed to render in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ads failed to render" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_ADS_FAILED_TO_RENDER = 430; + */ + ATN_ADS_FAILED_TO_RENDER(133, 430), + /** + * + * + *
    +     * Number of line items that matched an ad request in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Eligible line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_ELIGIBLE_LINE_ITEMS = 342; + */ + ATN_ELIGIBLE_LINE_ITEMS(134, 342), + /** + * + * + *
    +     * Number of ad requests that contain eligible line items for the auction in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with eligible line items" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS = 343; + */ + ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS(135, 343), + /** + * + * + *
    +     * Number of ad requests that have header bidding trafficking demand in the
    +     *  Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests allowing header bidding trafficking" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_ALLOWED_AD_REQUESTS = 344; + */ + ATN_HBT_ALLOWED_AD_REQUESTS(136, 344), + /** + * + * + *
    +     * Number of header bidding trafficking bids that are able to match an ad
    +     *  request and enter the auction in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Competing header bidding trafficking bids" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_BIDS_IN_AUCTION = 345; + */ + ATN_HBT_BIDS_IN_AUCTION(137, 345), + /** + * + * + *
    +     * Number of header bidding trafficking ad requests with bids in auction in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with competing header bidding trafficking
    +     * bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS = 346; + */ + ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS(138, 346), + /** + * + * + *
    +     * Number of header bidding trafficking candidate bids that match an ad
    +     *  request in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidding trafficking bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_CANDIDATE_BIDS = 347; + */ + ATN_HBT_CANDIDATE_BIDS(139, 347), + /** + * + * + *
    +     * Number of invalid header bidding trafficking ad requests in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invalid ad requests allowing header bidding trafficking"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_INVALID_AD_REQUESTS = 348; + */ + ATN_HBT_INVALID_AD_REQUESTS(140, 348), + /** + * + * + *
    +     * Number of header bidding trafficking ad requests with no bids in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidding trafficking ad requests with no bids" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_NO_BIDS_AD_REQUESTS = 472; + */ + ATN_HBT_NO_BIDS_AD_REQUESTS(141, 472), + /** + * + * + *
    +     * Number of header bidding trafficking bids that didn't match the ad
    +     *  request in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejected header bidding trafficking bids" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_REJECTED_BIDS = 349; + */ + ATN_HBT_REJECTED_BIDS(142, 349), + /** + * + * + *
    +     * Number of ad requests with the header bidding trafficking demand that are
    +     *  valid in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Valid header bidding trafficking ad requests" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_VALID_AD_REQUESTS = 350; + */ + ATN_HBT_VALID_AD_REQUESTS(143, 350), + /** + * + * + *
    +     * Number of header bidding trafficking ad requests with bids in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidding trafficking ad requests with bids" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_WITH_BIDS_AD_REQUESTS = 473; + */ + ATN_HBT_WITH_BIDS_AD_REQUESTS(144, 473), + /** + * + * + *
    +     * Ad requests that are not valid in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invalid ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_INVALID_AD_REQUESTS = 351; + */ + ATN_INVALID_AD_REQUESTS(145, 351), + /** + * + * + *
    +     * Number of line items with no creative retrieved in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative not retrieved" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED = 476; + */ + ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED(146, 476), + /** + * + * + *
    +     * Number of line items that matched an ad request and entered in auction in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Competing line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEMS_IN_AUCTION = 352; + */ + ATN_LINE_ITEMS_IN_AUCTION(147, 352), + /** + * + * + *
    +     * Number of line items that were ranked but did not compete in auction in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Non-competing line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEMS_NOT_COMPETING = 515; + */ + ATN_LINE_ITEMS_NOT_COMPETING(148, 515), + /** + * + * + *
    +     * Number of line items that matched an ad request but were not selected to
    +     *  compete in the auction in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Not selected to compete" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEMS_NOT_SELECTED = 353; + */ + ATN_LINE_ITEMS_NOT_SELECTED(149, 353), + /** + * + * + *
    +     * Number of line item ad requests in auction in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with competing line items" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS = 354; + */ + ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS(150, 354), + /** + * + * + *
    +     * Number of line item targeted ad requests in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with targeted line items" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEM_TARGETED_AD_REQUESTS = 355; + */ + ATN_LINE_ITEM_TARGETED_AD_REQUESTS(151, 355), + /** + * + * + *
    +     * Number of ad requests with the mediation demand in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests allowing mediation" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_ALLOWED_AD_REQUESTS = 356; + */ + ATN_MEDIATION_ALLOWED_AD_REQUESTS(152, 356), + /** + * + * + *
    +     * Number of invalid mediation ad requests in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invalid ad requests allowing mediation" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_INVALID_AD_REQUESTS = 357; + */ + ATN_MEDIATION_INVALID_AD_REQUESTS(153, 357), + /** + * + * + *
    +     * Number of times the Yield Partner's ad was loaded in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Loaded ads from chains" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_LOADED_ADS_FROM_CHAINS = 358; + */ + ATN_MEDIATION_LOADED_ADS_FROM_CHAINS(154, 358), + /** + * + * + *
    +     * Number of ad requests with mediation demand having no partners in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mediation requests with no partners" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_NO_PARTNER_AD_REQUESTS = 474; + */ + ATN_MEDIATION_NO_PARTNER_AD_REQUESTS(155, 474), + /** + * + * + *
    +     * Number of mediation yield partners in auction in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Competing mediation partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_PARTNERS_IN_AUCTION = 359; + */ + ATN_MEDIATION_PARTNERS_IN_AUCTION(156, 359), + /** + * + * + *
    +     * Number of ad requests in auction that serve mediation chains in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with competing mediation partners" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS = 360; + */ + ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS(157, 360), + /** + * + * + *
    +     * Number of mediation partners that didn't match an ad request in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejected partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_REJECTED_PARTNERS = 361; + */ + ATN_MEDIATION_REJECTED_PARTNERS(158, 361), + /** + * + * + *
    +     * Number of mediation partners that have targeted an ad request and are
    +     *  able to match it in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeted mediation partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_TARGETED_PARTNERS = 362; + */ + ATN_MEDIATION_TARGETED_PARTNERS(159, 362), + /** + * + * + *
    +     * Number of partners on served mediation chains in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total yield partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_TOTAL_YIELD_PARTNERS = 442; + */ + ATN_MEDIATION_TOTAL_YIELD_PARTNERS(160, 442), + /** + * + * + *
    +     * Number of ads from mediation chains that Ad Manager won't serve in the
    +     *  Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Unloaded ads from chains" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS = 363; + */ + ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS(161, 363), + /** + * + * + *
    +     * Number of times the Yield Partner's mediation chain ad was not reached
    +     *  in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Unused bids or partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS = 364; + */ + ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS(162, 364), + /** + * + * + *
    +     * Number of ad requests that have mediation demand in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Valid mediation ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_VALID_AD_REQUESTS = 365; + */ + ATN_MEDIATION_VALID_AD_REQUESTS(163, 365), + /** + * + * + *
    +     * Number of ad requests with mediation demand having partners in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with targeted mediation partners" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS = 475; + */ + ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS(164, 475), + /** + * + * + *
    +     * Number of ad requests with programmatic demand that have received a bid
    +     *  in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS = 366; + */ + ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS(165, 366), + /** + * + * + *
    +     * Number of ad requests with programmatic demand that have sent a bid to at
    +     *  least one buyer in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with bid requests sent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT = 367; + */ + ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT(166, 367), + /** + * + * + *
    +     * Number of ad requests with programmatic demand in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests allowing programmatic" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS = 368; + */ + ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS(167, 368), + /** + * + * + *
    +     * Number of ads with programmatic bids that entered the auction
    +     *  in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Competing programmatic bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BIDS_IN_AUCTION = 369; + */ + ATN_PROGRAMMATIC_BIDS_IN_AUCTION(168, 369), + /** + * + * + *
    +     * Number of ad requests that have received eligible programmatic bids to
    +     *  compete in the auction in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with competing programmatic bids" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS = 370; + */ + ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS(169, 370), + /** + * + * + *
    +     * Number of programmatic callout bid requests sent to buyers in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid requests sent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_REQUESTS_SENT = 371; + */ + ATN_PROGRAMMATIC_BID_REQUESTS_SENT(170, 371), + /** + * + * + *
    +     * Number of programmatic callout bid requests that resulted with a response
    +     *  in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid requests with response" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE = 372; + */ + ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE(171, 372), + /** + * + * + *
    +     * All buyers that Ad Manager could potentially send a programmatic bid
    +     *  request to in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid request candidates" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES = 373; + */ + ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES(172, 373), + /** + * + * + *
    +     * Number of programmatic callout bid requests with errors in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid request errors" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_REQUEST_ERRORS = 374; + */ + ATN_PROGRAMMATIC_BID_REQUEST_ERRORS(173, 374), + /** + * + * + *
    +     * Number of ad requests that are ineligible for programmatic in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invalid ad requests allowing programmatic" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS = 375; + */ + ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS(174, 375), + /** + * + * + *
    +     * Number of programmatic callout bids rejected in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejected bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_REJECTED_BIDS = 376; + */ + ATN_PROGRAMMATIC_REJECTED_BIDS(175, 376), + /** + * + * + *
    +     * Number of programmatic callout bid requests Ad Manager won't send to
    +     *  buyers in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Skipped bid requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS = 377; + */ + ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS(176, 377), + /** + * + * + *
    +     * Number of programmatic bids that Ad Manager received from buyers in the
    +     *  Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total programmatic bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_TOTAL_BIDS = 378; + */ + ATN_PROGRAMMATIC_TOTAL_BIDS(177, 378), + /** + * + * + *
    +     * Number of ad requests that allow programmatic in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Valid ad requests allowing programmatic" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_VALID_AD_REQUESTS = 379; + */ + ATN_PROGRAMMATIC_VALID_AD_REQUESTS(178, 379), + /** + * + * + *
    +     * Number of line items targeted that didn't match an ad request in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejected line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_REJECTED_LINE_ITEMS = 380; + */ + ATN_REJECTED_LINE_ITEMS(179, 380), + /** + * + * + *
    +     * Number of mediation chains Ad Manager serves in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Served mediation chains" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_SERVED_MEDIATION_CHAINS = 381; + */ + ATN_SERVED_MEDIATION_CHAINS(180, 381), + /** + * + * + *
    +     * Number of single ads served in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Served single ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_SERVED_SINGLE_ADS = 382; + */ + ATN_SERVED_SINGLE_ADS(181, 382), + /** + * + * + *
    +     * Number of line items with targeting that matches an ad request in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeted line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_TARGETED_LINE_ITEMS = 383; + */ + ATN_TARGETED_LINE_ITEMS(182, 383), + /** + * + * + *
    +     * Total number of ad requests which counts optimized pod request as a
    +     *  single request in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total ad requests (ATN)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_TOTAL_AD_REQUESTS = 384; + */ + ATN_TOTAL_AD_REQUESTS(183, 384), + /** + * + * + *
    +     * Number of competing ads in auction in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total competing ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_TOTAL_COMPETING_ADS_IN_AUCTION = 385; + */ + ATN_TOTAL_COMPETING_ADS_IN_AUCTION(184, 385), + /** + * + * + *
    +     * Total number of ads loaded in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total loaded ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_TOTAL_LOADED_ADS = 387; + */ + ATN_TOTAL_LOADED_ADS(185, 387), + /** + * + * + *
    +     * Ad requests that are valid in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Valid ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_VALID_AD_REQUESTS = 389; + */ + ATN_VALID_AD_REQUESTS(186, 389), + /** + * + * + *
    +     * Number of times the Yield Partner passed-back on a Mediation chain ad in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation passbacks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_YIELD_GROUP_MEDIATION_PASSBACKS = 390; + */ + ATN_YIELD_GROUP_MEDIATION_PASSBACKS(187, 390), + /** + * + * + *
    +     * eCPM averaged across the Google Ad Manager server, AdSense,
    +     *  and Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total average eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AVERAGE_ECPM = 37; + */ + AVERAGE_ECPM(188, 37), + /** + * + * + *
    +     * eCPM averaged across the Google Ad Manager server (excluding CPD),
    +     *  AdSense, and Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total average eCPM w/o CPD" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AVERAGE_ECPM_WITHOUT_CPD = 5; + */ + AVERAGE_ECPM_WITHOUT_CPD(189, 5), + /** + * + * + *
    +     * Average user engagement seconds per session in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average engagement time per session (seconds)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION = 224; + */ + AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION(190, 224), + /** + * + * + *
    +     * Average user engagement seconds per user in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average engagement time per user (seconds)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AVERAGE_ENGAGEMENT_SECONDS_PER_USER = 225; + */ + AVERAGE_ENGAGEMENT_SECONDS_PER_USER(191, 225), + /** + * + * + *
    +     * The average number of unique users reached per ad impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average impressions/unique visitor" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `REACH`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR = 418; + */ + AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR(192, 418), + /** + * + * + *
    +     * Average total purchase revenue per user in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "ARPPU" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER = 226; + */ + AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER(193, 226), + /** + * + * + *
    +     * Average revenue earned from each active user in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "ARPU" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AVERAGE_REVENUE_PER_USER = 227; + */ + AVERAGE_REVENUE_PER_USER(194, 227), + /** + * + * + *
    +     * Average length of a session in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average session duration (seconds)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AVERAGE_SESSION_SECONDS = 228; + */ + AVERAGE_SESSION_SECONDS(195, 228), + /** + * + * + *
    +     * The number of bids.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * BIDS = 443; + */ + BIDS(196, 443), + /** + * + * + *
    +     * The average CPM of the bids submitted by bidders.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average bid CPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * BID_AVERAGE_CPM = 444; + */ + BID_AVERAGE_CPM(197, 444), + /** + * + * + *
    +     * The ratio of (sessions - engaged sessions) / sessions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bounce rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * BOUNCE_RATE = 433; + */ + BOUNCE_RATE(198, 433), + /** + * + * + *
    +     * The number of times a user clicked on an ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * CLICKS = 2; + */ + CLICKS(199, 2), + /** + * + * + *
    +     * The total number of times that the code for an ad is served by the ad
    +     *  server including dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total code served count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * CODE_SERVED_COUNT = 44; + */ + CODE_SERVED_COUNT(200, 44), + /** + * + * + *
    +     * Total amount of CPC revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "CPC revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * CPC_REVENUE = 440; + */ + CPC_REVENUE(201, 440), + /** + * + * + *
    +     * Total amount of CPM revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "CPM revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * CPM_REVENUE = 441; + */ + CPM_REVENUE(202, 441), + /** + * + * + *
    +     * Percent of creatives whose load time is between [0, 500ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 0 - 500ms (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_0_500_PERCENT = 324; + */ + CREATIVE_LOAD_TIME_0_500_PERCENT(203, 324), + /** + * + * + *
    +     * Percent of creatives whose load time is between [1000, 2000ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 1s - 2s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_1000_2000_PERCENT = 326; + */ + CREATIVE_LOAD_TIME_1000_2000_PERCENT(204, 326), + /** + * + * + *
    +     * Percent of creatives whose load time is between [2000, 4000ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 2s - 4s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_2000_4000_PERCENT = 327; + */ + CREATIVE_LOAD_TIME_2000_4000_PERCENT(205, 327), + /** + * + * + *
    +     * Percent of creatives whose load time is between [4000, 8000ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 4s - 8s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_4000_8000_PERCENT = 328; + */ + CREATIVE_LOAD_TIME_4000_8000_PERCENT(206, 328), + /** + * + * + *
    +     * Percent of creatives whose load time is between [500, 1000ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 500ms - 1s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_500_1000_PERCENT = 325; + */ + CREATIVE_LOAD_TIME_500_1000_PERCENT(207, 325), + /** + * + * + *
    +     * Percent of creatives load time is greater than 8000ms.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time >8s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_GT_8000_PERCENT = 329; + */ + CREATIVE_LOAD_TIME_GT_8000_PERCENT(208, 329), + /** + * + * + *
    +     * For standard ads, your ad clickthrough rate (CTR) is the number of ad
    +     *  clicks divided by the number of individual ad impressions expressed as a
    +     *  fraction. Ad CTR = Clicks / Ad impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CTR = 3; + */ + CTR(209, 3), + /** + * + * + *
    +     * Number of bids received for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * DEALS_BIDS = 542; + */ + DEALS_BIDS(210, 542), + /** + * + * + *
    +     * Bid rate for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals bid rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DEALS_BID_RATE = 543; + */ + DEALS_BID_RATE(211, 543), + /** + * + * + *
    +     * Number of bid requests sent for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals bid requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * DEALS_BID_REQUESTS = 544; + */ + DEALS_BID_REQUESTS(212, 544), + /** + * + * + *
    +     * Number of winning bids for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals winning bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * DEALS_WINNING_BIDS = 545; + */ + DEALS_WINNING_BIDS(213, 545), + /** + * + * + *
    +     * Bid win rate for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals win rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DEALS_WIN_RATE = 546; + */ + DEALS_WIN_RATE(214, 546), + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [0, 500ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 0 - 500ms (%)"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 521; + */ + DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT(215, 521), + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [1000ms, 2000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 1s - 2s (%)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 522; + */ + DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT(216, 522), + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [2000ms, 4000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 2s - 4s (%)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 523; + */ + DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT(217, 523), + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [4000ms, 8000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 4s - 8s (%)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 524; + */ + DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT(218, 524), + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [500ms, 1000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 500ms - 1s (%)"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 525; + */ + DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT(219, 525), + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [8000ms, +inf) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time >8s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 520; + */ + DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT(220, 520), + /** + * + * + *
    +     * Percent of dom load time to tag load time in [0, 500ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 0 - 500ms (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT = 526; + */ + DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT(221, 526), + /** + * + * + *
    +     * Percent of dom load time to tag load time in [1000ms, 2000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 1s - 2s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT = 527; + */ + DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT(222, 527), + /** + * + * + *
    +     * Percent of dom load time to tag load time in [2000ms, 4000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 2s - 4s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT = 528; + */ + DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT(223, 528), + /** + * + * + *
    +     * Percent of dom load time to tag load time in [4000ms, 8000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 4s - 8s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT = 529; + */ + DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT(224, 529), + /** + * + * + *
    +     * Percent of dom load time to tag load time in [500ms, 1000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 500ms - 1s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT = 531; + */ + DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT(225, 531), + /** + * + * + *
    +     * Percent of dom load time to tag load time in [8000ms, +inf) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time >8s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT = 530; + */ + DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT(226, 530), + /** + * + * + *
    +     * Percentage of ad responses that didn't result in an impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Drop-off rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DROPOFF_RATE = 415; + */ + DROPOFF_RATE(227, 415), + /** + * + * + *
    +     * Engaged session count from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Engaged sessions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ENGAGED_SESSIONS = 229; + */ + ENGAGED_SESSIONS(228, 229), + /** + * + * + *
    +     * Engaged sessions per user from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Engaged sessions per user" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * ENGAGED_SESSIONS_PER_USER = 230; + */ + ENGAGED_SESSIONS_PER_USER(229, 230), + /** + * + * + *
    +     * The ratio of engaged sessions to sessions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Engagement rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ENGAGEMENT_RATE = 426; + */ + ENGAGEMENT_RATE(230, 426), + /** + * + * + *
    +     * Percentage of European regulations messages where the user consented to
    +     *  all of the purposes and vendors.
    +     *
    +     *
    +     *
    +     * Corresponds to "European regulations consent rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * EUROPEAN_REGULATIONS_CONSENT_RATE = 270; + */ + EUROPEAN_REGULATIONS_CONSENT_RATE(231, 270), + /** + * + * + *
    +     * Percentage of European regulations messages where users made a consent
    +     *  choice after selecting "Manage options".
    +     *
    +     *
    +     *
    +     * Corresponds to "European regulations custom consent rate" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE = 271; + */ + EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE(232, 271), + /** + * + * + *
    +     * Number of times a European regulations message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "European regulations messages shown" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * EUROPEAN_REGULATIONS_MESSAGES_SHOWN = 272; + */ + EUROPEAN_REGULATIONS_MESSAGES_SHOWN(233, 272), + /** + * + * + *
    +     * Percentage of European regulations messages where the user rejected all
    +     *  purposes and vendors.
    +     *
    +     *
    +     *
    +     * Corresponds to "European regulations no consent rate" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * EUROPEAN_REGULATIONS_NO_CONSENT_RATE = 273; + */ + EUROPEAN_REGULATIONS_NO_CONSENT_RATE(234, 273), + /** + * + * + *
    +     * The rate at which an ad request is filled by the ad server including
    +     *  dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total fill rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * FILL_RATE = 258; + */ + FILL_RATE(235, 258), + /** + * + * + *
    +     * The number of clicks joined with Google Analytics data.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_ANALYTICS_CLICKS = 231; + */ + GOOGLE_ANALYTICS_CLICKS(236, 231), + /** + * + * + *
    +     * The click-through rate from Google Analytics data.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * GOOGLE_ANALYTICS_CTR = 232; + */ + GOOGLE_ANALYTICS_CTR(237, 232), + /** + * + * + *
    +     * The eCPM revenue data from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * GOOGLE_ANALYTICS_ECPM = 233; + */ + GOOGLE_ANALYTICS_ECPM(238, 233), + /** + * + * + *
    +     * The number of impressions joined with Google Analytics data.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_ANALYTICS_IMPRESSIONS = 234; + */ + GOOGLE_ANALYTICS_IMPRESSIONS(239, 234), + /** + * + * + *
    +     * The amount of revenue joined with Google Analytics data.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * GOOGLE_ANALYTICS_REVENUE = 235; + */ + GOOGLE_ANALYTICS_REVENUE(240, 235), + /** + * + * + *
    +     * Number of views of a web site or mobile screen from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_ANALYTICS_VIEWS = 236; + */ + GOOGLE_ANALYTICS_VIEWS(241, 236), + /** + * + * + *
    +     * Number of views per user from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Views per user" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * GOOGLE_ANALYTICS_VIEWS_PER_USER = 237; + */ + GOOGLE_ANALYTICS_VIEWS_PER_USER(242, 237), + /** + * + * + *
    +     * The number of coviewed impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold auction impressions (co-viewed)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; + */ + GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS(243, 129), + /** + * + * + *
    +     * The number of auction impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold auction impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; + */ + GOOGLE_SOLD_AUCTION_IMPRESSIONS(244, 128), + /** + * + * + *
    +     * The number of coviewed impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold impressions (co-viewed)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; + */ + GOOGLE_SOLD_COVIEWED_IMPRESSIONS(245, 131), + /** + * + * + *
    +     * The number of impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_IMPRESSIONS = 130; + */ + GOOGLE_SOLD_IMPRESSIONS(246, 130), + /** + * + * + *
    +     * The number of coviewed impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold reservation impressions (co-viewed)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; + */ + GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS(247, 127), + /** + * + * + *
    +     * The number of reservation impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold reservation impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; + */ + GOOGLE_SOLD_RESERVATION_IMPRESSIONS(248, 126), + /** + * + * + *
    +     * Total impressions from the Google Ad Manager server, AdSense,
    +     *  Ad Exchange, and yield group partners.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * IMPRESSIONS = 1; + */ + IMPRESSIONS(249, 1), + /** + * + * + *
    +     * The number of impressions (via begin to render methodology) considered
    +     *  inactive, as defined by served to a device receiving ad or bid requests
    +     *  continuously for a session of greater than 16 hours without a "reset"
    +     *  event. Only applied to CTV ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inactive begin to render impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 407; + */ + INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS(250, 407), + /** + * + * + *
    +     * The total number of inventory shares
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory shares" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INVENTORY_SHARES = 547; + */ + INVENTORY_SHARES(251, 547), + /** + * + * + *
    +     * The total number of partner unfilled opportunities from an inventory
    +     *  share
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share partner unfilled opportunities" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES = 548; + */ + INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES(252, 548), + /** + * + * + *
    +     * The number of invoiced impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invoiced impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INVOICED_IMPRESSIONS = 404; + */ + INVOICED_IMPRESSIONS(253, 404), + /** + * + * + *
    +     * The number of invoiced unfilled impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invoiced unfilled impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INVOICED_UNFILLED_IMPRESSIONS = 405; + */ + INVOICED_UNFILLED_IMPRESSIONS(254, 405), + /** + * + * + *
    +     * The number of mediation chains that were filled.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mediation chains filled" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MEDIATION_CHAINS_FILLED = 584; + */ + MEDIATION_CHAINS_FILLED(255, 584), + /** + * + * + *
    +     * The number of impressions where the user chose to mute the ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total muted impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MUTED_IMPRESSIONS = 412; + */ + MUTED_IMPRESSIONS(256, 412), + /** + * + * + *
    +     * The number of impressions that had the "Mute This Ad" overlay applied.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total mute eligible impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MUTE_ELIGIBLE_IMPRESSIONS = 409; + */ + MUTE_ELIGIBLE_IMPRESSIONS(257, 409), + /** + * + * + *
    +     * The total number of opportunities from impressions and errors.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total opportunities" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * OPPORTUNITIES = 463; + */ + OPPORTUNITIES(258, 463), + /** + * + * + *
    +     * The number of impressions that were overdelivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total overdelivered impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * OVERDELIVERED_IMPRESSIONS = 432; + */ + OVERDELIVERED_IMPRESSIONS(259, 432), + /** + * + * + *
    +     * The number of filled pod requests (filled by partner or Google) in
    +     *  partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Filled pod requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SALES_FILLED_POD_REQUESTS = 135; + */ + PARTNER_SALES_FILLED_POD_REQUESTS(260, 135), + /** + * + * + *
    +     * The percent of filled requests to total ad requests in
    +     *  partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Fill rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * PARTNER_SALES_FILL_RATE = 136; + */ + PARTNER_SALES_FILL_RATE(261, 136), + /** + * + * + *
    +     * The percent of partner filled requests to total ad requests
    +     *  in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner match rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * PARTNER_SALES_PARTNER_MATCH_RATE = 137; + */ + PARTNER_SALES_PARTNER_MATCH_RATE(262, 137), + /** + * + * + *
    +     * The number of queries eligible for partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total partner sales ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SALES_QUERIES = 132; + */ + PARTNER_SALES_QUERIES(263, 132), + /** + * + * + *
    +     * The number of partner unfilled impressions in partner sales.
    +     *  If a pod request is not filled by partner but filled by Google, this
    +     *  metric will still count 1.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner unfilled impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; + */ + PARTNER_SALES_UNFILLED_IMPRESSIONS(264, 133), + /** + * + * + *
    +     * The number of partner unmatched queries in partner sales.
    +     *  If an ad request is not filled by partner but filled by Google, this
    +     *  metric will still count 1.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner unmatched ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SALES_UNMATCHED_QUERIES = 134; + */ + PARTNER_SALES_UNMATCHED_QUERIES(265, 134), + /** + * + * + *
    +     * The number of code served sold by partner in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner-sold code served count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SOLD_CODE_SERVED = 125; + */ + PARTNER_SOLD_CODE_SERVED(266, 125), + /** + * + * + *
    +     * The number of coviewed impressions sold by partner in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner-sold impressions (co-viewed)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; + */ + PARTNER_SOLD_COVIEWED_IMPRESSIONS(267, 124), + /** + * + * + *
    +     * The number of impressions sold by partner in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner-sold impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SOLD_IMPRESSIONS = 123; + */ + PARTNER_SOLD_IMPRESSIONS(268, 123), + /** + * + * + *
    +     * The total number of ad requests eligible for programmatic inventory,
    +     *  including Programmatic Guaranteed, Preferred Deals, backfill, and open
    +     *  auction.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic eligible ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; + */ + PROGRAMMATIC_ELIGIBLE_AD_REQUESTS(269, 177), + /** + * + * + *
    +     * The number of programmatic responses served divided by the number of
    +     *  programmatic eligible ad requests. Includes Ad Exchange, Open Bidding,
    +     *  and Preferred Deals.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic match rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * PROGRAMMATIC_MATCH_RATE = 178; + */ + PROGRAMMATIC_MATCH_RATE(270, 178), + /** + * + * + *
    +     * Total number of ad responses served from programmatic demand sources.
    +     *  Includes Ad Exchange, Open Bidding, and Preferred Deals.
    +     *
    +     *  Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open
    +     *  Bidding ad requests.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PROGRAMMATIC_RESPONSES_SERVED = 176; + */ + PROGRAMMATIC_RESPONSES_SERVED(271, 176), + /** + * + * + *
    +     * Number of impressions for reach reports.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total reach impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * REACH_IMPRESSIONS = 416; + */ + REACH_IMPRESSIONS(272, 416), + /** + * + * + *
    +     * The total number of times that an ad is served by the ad server including
    +     *  dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RESPONSES_SERVED = 39; + */ + RESPONSES_SERVED(273, 39), + /** + * + * + *
    +     * Retention of users in Google Analytics
    +     *
    +     *
    +     *
    +     * Corresponds to "Retention" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * RETENTION = 238; + */ + RETENTION(274, 238), + /** + * + * + *
    +     * Total amount of CPM, CPC, and CPD revenue based on the number of units
    +     *  served by the Google Ad Manager server, AdSense, Ad Exchange, and
    +     *  third-party Mediation networks.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * REVENUE = 36; + */ + REVENUE(275, 36), + /** + * + * + *
    +     * The total revenue accrued in the child network's own account but paid to
    +     *  their parent network through auto-payment. This metric is only relevant
    +     *  for a "Manage Account" child network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total revenue paid through MCM auto-payment" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 214; + */ + REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(276, 214), + /** + * + * + *
    +     * Total amount of revenue (excluding CPD) based on the number of units
    +     *  served by the Google Ad Manager server, AdSense, Ad Exchange, and
    +     *  third-party Mediation networks.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total CPM and CPC revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * REVENUE_WITHOUT_CPD = 4; + */ + REVENUE_WITHOUT_CPD(277, 4), + /** + * + * + *
    +     * The number of rewards granted to users from watching ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total rewards granted" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * REWARDS_GRANTED = 413; + */ + REWARDS_GRANTED(278, 413), + /** + * + * + *
    +     * The average amount of time (in seconds) that each rich media ad is
    +     *  displayed to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average display time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_AVERAGE_DISPLAY_TIME = 587; + */ + RICH_MEDIA_AVERAGE_DISPLAY_TIME(279, 587), + /** + * + * + *
    +     * The average amount of time (in seconds) that a user interacts with a rich
    +     *  media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average interaction time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_AVERAGE_INTERACTION_TIME = 588; + */ + RICH_MEDIA_AVERAGE_INTERACTION_TIME(280, 588), + /** + * + * + *
    +     * The total number of times a backup image is served in place of a rich
    +     *  media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Backup image impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_BACKUP_IMAGES = 589; + */ + RICH_MEDIA_BACKUP_IMAGES(281, 589), + /** + * + * + *
    +     * The number of times a user interacts with a specific part of a rich media
    +     *  ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event - count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_CUSTOM_EVENT_COUNT = 599; + */ + RICH_MEDIA_CUSTOM_EVENT_COUNT(282, 599), + /** + * + * + *
    +     * The amount of time (in seconds) that a user interacts with a specific
    +     *  part of a rich media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event - time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_CUSTOM_EVENT_TIME = 600; + */ + RICH_MEDIA_CUSTOM_EVENT_TIME(283, 600), + /** + * + * + *
    +     * The amount of time (in seconds) that each rich media ad is displayed to
    +     *  users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total display time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_DISPLAY_TIME = 590; + */ + RICH_MEDIA_DISPLAY_TIME(284, 590), + /** + * + * + *
    +     * The average amount of time (in seconds) that an expanding ad is viewed in
    +     *  an expanded state.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average expanding time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_EXPANDING_TIME = 591; + */ + RICH_MEDIA_EXPANDING_TIME(285, 591), + /** + * + * + *
    +     * The number of times an expanding ad was expanded.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total expansions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_EXPANSIONS = 592; + */ + RICH_MEDIA_EXPANSIONS(286, 592), + /** + * + * + *
    +     * The number of times a user opens a rich media ad in full screen mode.
    +     *
    +     *
    +     *
    +     * Corresponds to "Full-screen impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_FULL_SCREEN_IMPRESSIONS = 593; + */ + RICH_MEDIA_FULL_SCREEN_IMPRESSIONS(287, 593), + /** + * + * + *
    +     * The number of times that a user interacts with a rich media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total interactions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_INTERACTION_COUNT = 594; + */ + RICH_MEDIA_INTERACTION_COUNT(288, 594), + /** + * + * + *
    +     * The ratio of rich media ad interactions to the number of times the ad
    +     *  was displayed.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interaction rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * RICH_MEDIA_INTERACTION_RATE = 595; + */ + RICH_MEDIA_INTERACTION_RATE(289, 595), + /** + * + * + *
    +     * The total amount of time (in seconds) that a user interacts with a rich
    +     *  media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interaction time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_INTERACTION_TIME = 596; + */ + RICH_MEDIA_INTERACTION_TIME(290, 596), + /** + * + * + *
    +     * The number of impressions where a user interacted with a rich media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interactive impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_INTERACTIVE_IMPRESSIONS = 597; + */ + RICH_MEDIA_INTERACTIVE_IMPRESSIONS(291, 597), + /** + * + * + *
    +     * The number of times that a user manually closes a rich media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Manual closes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_MANUAL_CLOSES = 598; + */ + RICH_MEDIA_MANUAL_CLOSES(292, 598), + /** + * + * + *
    +     * The number of times a rich media video was fully played.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video completes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_COMPLETES = 503; + */ + RICH_MEDIA_VIDEO_COMPLETES(293, 503), + /** + * + * + *
    +     * The number of times a user clicked on the graphical controls of a video
    +     *  player.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media total video interactions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_INTERACTIONS = 505; + */ + RICH_MEDIA_VIDEO_INTERACTIONS(294, 505), + /** + * + * + *
    +     * The ratio of video interactions to video plays. Represented as a
    +     *  percentage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video interaction rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * RICH_MEDIA_VIDEO_INTERACTION_RATE = 504; + */ + RICH_MEDIA_VIDEO_INTERACTION_RATE(295, 504), + /** + * + * + *
    +     * The number of times a rich media video was played up to midpoint.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video midpoints" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_MIDPOINTS = 506; + */ + RICH_MEDIA_VIDEO_MIDPOINTS(296, 506), + /** + * + * + *
    +     * The number of times a rich media video was muted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video mutes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_MUTES = 507; + */ + RICH_MEDIA_VIDEO_MUTES(297, 507), + /** + * + * + *
    +     * The number of times a rich media video was paused.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video pauses" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_PAUSES = 508; + */ + RICH_MEDIA_VIDEO_PAUSES(298, 508), + /** + * + * + *
    +     * The number of times a rich media video was played.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video plays" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_PLAYS = 509; + */ + RICH_MEDIA_VIDEO_PLAYS(299, 509), + /** + * + * + *
    +     * The number of times a rich media video was restarted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video replays" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_REPLAYS = 510; + */ + RICH_MEDIA_VIDEO_REPLAYS(300, 510), + /** + * + * + *
    +     * The number of times a rich media video was stopped.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video stops" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_STOPS = 511; + */ + RICH_MEDIA_VIDEO_STOPS(301, 511), + /** + * + * + *
    +     * The number of times a rich media video was unmuted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video unmutes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_UNMUTES = 512; + */ + RICH_MEDIA_VIDEO_UNMUTES(302, 512), + /** + * + * + *
    +     * The percentage of a video watched by a user.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video view rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * RICH_MEDIA_VIDEO_VIEW_RATE = 513; + */ + RICH_MEDIA_VIDEO_VIEW_RATE(303, 513), + /** + * + * + *
    +     * The average amount of time(seconds) that a rich media video was viewed
    +     *  per view.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video average view time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_VIDEO_VIEW_TIME = 514; + */ + RICH_MEDIA_VIDEO_VIEW_TIME(304, 514), + /** + * + * + *
    +     * The number of forecasted impressions not reserved by any line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Available impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SELL_THROUGH_AVAILABLE_IMPRESSIONS = 477; + */ + SELL_THROUGH_AVAILABLE_IMPRESSIONS(305, 477), + /** + * + * + *
    +     * The total number of forecasted impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Forecasted impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SELL_THROUGH_FORECASTED_IMPRESSIONS = 478; + */ + SELL_THROUGH_FORECASTED_IMPRESSIONS(306, 478), + /** + * + * + *
    +     * The number of forecasted impressions reserved by line items.
    +     *
    +     *
    +     *
    +     * Corresponds to "Reserved impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SELL_THROUGH_RESERVED_IMPRESSIONS = 479; + */ + SELL_THROUGH_RESERVED_IMPRESSIONS(307, 479), + /** + * + * + *
    +     * The fraction of forecasted impressions reserved by line items.
    +     *
    +     *
    +     *
    +     * Corresponds to "Sell-through rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * SELL_THROUGH_SELL_THROUGH_RATE = 480; + */ + SELL_THROUGH_SELL_THROUGH_RATE(308, 480), + /** + * + * + *
    +     * The average latency in milliseconds across all server-side unwrapping
    +     *  callout requests. There is no special handling for error or timeout
    +     *  responses. This reflects the entire chain of a parent callout request,
    +     *  which may result in multiple child callouts. This metric is not sliced
    +     *  by child callout dimensions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping average latency (milliseconds)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; + */ + SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS(309, 434), + /** + * + * + *
    +     * The total number of server-side unwrapping callout requests.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping callouts" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; + */ + SERVER_SIDE_UNWRAPPING_CALLOUTS(310, 435), + /** + * + * + *
    +     * The total number of server-side unwrapping callouts that returned an
    +     *  empty response. Timeouts are not considered empty responses.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping empty responses" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; + */ + SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES(311, 436), + /** + * + * + *
    +     * The total number of server-side unwrapping callouts that returned an
    +     *  error response. Timeouts and empty responses are not considered errors.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping error responses" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; + */ + SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES(312, 437), + /** + * + * + *
    +     * The total number of successfully unwrapped, non-empty server-side
    +     *  wrapping callouts. Successful unwrapping does not indicate that the
    +     *  resulting creative was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping successful responses" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; + */ + SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES(313, 438), + /** + * + * + *
    +     * The total number of server-side unwrapping callouts that timed out before
    +     *  returning a response.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping timeouts" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; + */ + SERVER_SIDE_UNWRAPPING_TIMEOUTS(314, 439), + /** + * + * + *
    +     * Count of sessions from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Sessions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SESSIONS = 239; + */ + SESSIONS(315, 239), + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [0, 500ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 0 - 500ms (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 455; + */ + TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT(316, 455), + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [1000ms, 2000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 1s - 2s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 457; + */ + TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT(317, 457), + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [2000ms, 4000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 2s - 4s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 458; + */ + TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT(318, 458), + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [4000ms, 8000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 4s - 8s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 459; + */ + TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT(319, 459), + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [500ms, 1000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 500ms - 1s (%)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 456; + */ + TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT(320, 456), + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [8000ms, +inf) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time >8s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 460; + */ + TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT(321, 460), + /** + * + * + *
    +     * The total number of clicks delivered including line item-level dynamic
    +     *  allocation by explicit custom criteria targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total targeted clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * TARGETED_CLICKS = 276; + */ + TARGETED_CLICKS(322, 276), + /** + * + * + *
    +     * The total number of impressions delivered including line item-level
    +     *  dynamic allocation by explicit custom criteria targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total targeted impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * TARGETED_IMPRESSIONS = 277; + */ + TARGETED_IMPRESSIONS(323, 277), + /** + * + * + *
    +     * The total number of missed impressions due to the ad servers' inability
    +     *  to find ads to serve including dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Unfilled impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNFILLED_IMPRESSIONS = 45; + */ + UNFILLED_IMPRESSIONS(324, 45), + /** + * + * + *
    +     * The total number of unique users who viewed the ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unique visitors" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNIQUE_VISITORS = 417; + */ + UNIQUE_VISITORS(325, 417), + /** + * + * + *
    +     * The number of impressions impacted by Chrome Ads Intervention due to CPU
    +     *  usage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unloaded impressions due to CPU" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNLOADED_IMPRESSIONS_DUE_TO_CPU = 408; + */ + UNLOADED_IMPRESSIONS_DUE_TO_CPU(326, 408), + /** + * + * + *
    +     * The number of impressions impacted by Chrome Ads Intervention due to
    +     *  network usage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unloaded impressions due to Network" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNLOADED_IMPRESSIONS_DUE_TO_NETWORK = 406; + */ + UNLOADED_IMPRESSIONS_DUE_TO_NETWORK(327, 406), + /** + * + * + *
    +     * The total number of times that an ad is not returned by the ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unmatched ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNMATCHED_AD_REQUESTS = 43; + */ + UNMATCHED_AD_REQUESTS(328, 43), + /** + * + * + *
    +     * The percentage of unviewed impressions due to other reasons.
    +     *
    +     *
    +     *
    +     * Corresponds to "Other non-viewable impression reasons (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_OTHER_PERCENT = 550; + */ + UNVIEWED_REASON_OTHER_PERCENT(329, 550), + /** + * + * + *
    +     * The percentage of unviewed impressions due to slot never entered
    +     *  viewport.
    +     *
    +     *
    +     *
    +     * Corresponds to "Slot never entered viewport (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT = 553; + */ + UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT(330, 553), + /** + * + * + *
    +     * The percentage of unviewed impressions due to scrolled past before ad
    +     *  filled.
    +     *
    +     *
    +     *
    +     * Corresponds to "User scrolled before ad filled (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT = 551; + */ + UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT(331, 551), + /** + * + * + *
    +     * The percentage of unviewed impressions due to scrolled past before ad
    +     *  loaded.
    +     *
    +     *
    +     *
    +     * Corresponds to "User scrolled/navigated before ad loaded (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT = 552; + */ + UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT(332, 552), + /** + * + * + *
    +     * The percentage of unviewed impressions due to insufficient time on
    +     *  screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "User scrolled/navigated before 1 second (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT = 549; + */ + UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT(333, 549), + /** + * + * + *
    +     * Time of users interacting with web site or mobile app from Google
    +     *  Analytics in seconds.
    +     *
    +     *
    +     *
    +     * Corresponds to "User engagement duration (seconds)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_ENGAGEMENT_DURATION_IN_SECONDS = 240; + */ + USER_ENGAGEMENT_DURATION_IN_SECONDS(334, 240), + /** + * + * + *
    +     * Fraction of page views where users had ad blocker extensions installed.
    +     *  Includes only Desktop page views.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad blocking extension rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE = 486; + */ + USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE(335, 486), + /** + * + * + *
    +     * Number of ad-blocking messages shown in the selected date range that
    +     *  resulted in users adding the site to their allowlist to view ads
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad blocking recovery message conversions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT = 487; + */ + USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT(336, 487), + /** + * + * + *
    +     * Number of times an ad blocking recovery message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad blocking recovery messages shown" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN = 488; + */ + USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN(337, 488), + /** + * + * + *
    +     * The number of page views generated by users with an ad blocking extension
    +     *  installed who were shown the ad blocking recovery message and later
    +     *  allowed ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Allow-ads page views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_ALLOW_ADS_PAGEVIEWS = 489; + */ + USER_MESSAGES_ALLOW_ADS_PAGEVIEWS(338, 489), + /** + * + * + *
    +     * Number of times a US state regulations message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "US states messages shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_CCPA_MESSAGES_SHOWN = 490; + */ + USER_MESSAGES_CCPA_MESSAGES_SHOWN(339, 490), + /** + * + * + *
    +     * Number of iOS ATT alerts that were triggered by an IDFA message (IDFA
    +     *  messages can be IDFA explainers or GDPR messages).
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT alerts shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN = 491; + */ + USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN(340, 491), + /** + * + * + *
    +     * Number of iOS ATT alerts triggered by the IDFA message where the user
    +     *  chose to allow tracking.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT consent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_CONSENT = 492; + */ + USER_MESSAGES_IDFA_ATT_CONSENT(341, 492), + /** + * + * + *
    +     * Percentage of iOS ATT alerts triggered by the IDFA message where the
    +     *  outcome was to allow tracking.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT consent rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_CONSENT_RATE = 493; + */ + USER_MESSAGES_IDFA_ATT_CONSENT_RATE(342, 493), + /** + * + * + *
    +     * Number of iOS ATT alerts triggered by the IDFA message where the user
    +     *  chose to deny tracking.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT decline consent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT = 494; + */ + USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT(343, 494), + /** + * + * + *
    +     * Percentage of iOS ATT alerts triggered by the IDFA message where the user
    +     *  chose to deny tracking.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT decline rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_DECLINE_RATE = 495; + */ + USER_MESSAGES_IDFA_ATT_DECLINE_RATE(344, 495), + /** + * + * + *
    +     * Number of times an IDFA explainer message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA explainers shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_EXPLAINERS_SHOWN = 496; + */ + USER_MESSAGES_IDFA_EXPLAINERS_SHOWN(345, 496), + /** + * + * + *
    +     * Number of times a European regulations message was shown immediately
    +     *  before the iOS ATT alert.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA IAB messages shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN = 497; + */ + USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN(346, 497), + /** + * + * + *
    +     * Number of IDFA explainer messages where the user didn't choose anything.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA no decision" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_NO_DECISION = 498; + */ + USER_MESSAGES_IDFA_NO_DECISION(347, 498), + /** + * + * + *
    +     * Number of times an Offerwall message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Offerwall messages shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; + */ + USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN(348, 121), + /** + * + * + *
    +     * The number of messages where the user gained an entitlement.
    +     *
    +     *
    +     *
    +     * Corresponds to "Monetized Offerwall engagements" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; + */ + USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS(349, 122), + /** + * + * + *
    +     * The number of pages viewed by users after gaining an entitlement. Only
    +     *  counts pages included for Offerwall.
    +     *
    +     *
    +     *
    +     * Corresponds to "Post-offerwall page views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS = 499; + */ + USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS(350, 499), + /** + * + * + *
    +     * Revenue earned through Offerwall, including Rewarded ad revenue and
    +     *  third-party integrations.
    +     *
    +     *
    +     *
    +     * Corresponds to "Estimated Offerwall revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * USER_MESSAGES_TOTAL_ESTIMATED_REVENUE = 500; + */ + USER_MESSAGES_TOTAL_ESTIMATED_REVENUE(351, 500), + /** + * + * + *
    +     * Number of times an ads personalization controls message was shown to
    +     *  users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ads personalization messages shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_UPTC_MESSAGES_SHOWN = 501; + */ + USER_MESSAGES_UPTC_MESSAGES_SHOWN(352, 501), + /** + * + * + *
    +     * Percentage of ads personalization controls messages where users chose the
    +     *  opt-out option.
    +     *
    +     *
    +     *
    +     * Corresponds to "Personalization opt-out ratio" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO = 502; + */ + USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO(353, 502), + /** + * + * + *
    +     * The number of errors of type 100 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 100 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_100_COUNT = 180; + */ + VIDEO_ERROR_100_COUNT(354, 180), + /** + * + * + *
    +     * The number of errors of type 101 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 101 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_101_COUNT = 181; + */ + VIDEO_ERROR_101_COUNT(355, 181), + /** + * + * + *
    +     * The number of errors of type 102 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 102 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_102_COUNT = 182; + */ + VIDEO_ERROR_102_COUNT(356, 182), + /** + * + * + *
    +     * The number of errors of type 200 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 200 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_200_COUNT = 183; + */ + VIDEO_ERROR_200_COUNT(357, 183), + /** + * + * + *
    +     * The number of errors of type 201 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 201 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_201_COUNT = 184; + */ + VIDEO_ERROR_201_COUNT(358, 184), + /** + * + * + *
    +     * The number of errors of type 202 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 202 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_202_COUNT = 185; + */ + VIDEO_ERROR_202_COUNT(359, 185), + /** + * + * + *
    +     * The number of errors of type 203 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 203 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_203_COUNT = 186; + */ + VIDEO_ERROR_203_COUNT(360, 186), + /** + * + * + *
    +     * The number of errors of type 300 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 300 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_300_COUNT = 187; + */ + VIDEO_ERROR_300_COUNT(361, 187), + /** + * + * + *
    +     * The number of errors of type 301 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 301 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_301_COUNT = 188; + */ + VIDEO_ERROR_301_COUNT(362, 188), + /** + * + * + *
    +     * The number of errors of type 302 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 302 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_302_COUNT = 189; + */ + VIDEO_ERROR_302_COUNT(363, 189), + /** + * + * + *
    +     * The number of errors of type 303 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 303 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_303_COUNT = 190; + */ + VIDEO_ERROR_303_COUNT(364, 190), + /** + * + * + *
    +     * The number of errors of type 400 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 400 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_400_COUNT = 191; + */ + VIDEO_ERROR_400_COUNT(365, 191), + /** + * + * + *
    +     * The number of errors of type 401 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 401 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_401_COUNT = 192; + */ + VIDEO_ERROR_401_COUNT(366, 192), + /** + * + * + *
    +     * The number of errors of type 402 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 402 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_402_COUNT = 193; + */ + VIDEO_ERROR_402_COUNT(367, 193), + /** + * + * + *
    +     * The number of errors of type 403 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 403 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_403_COUNT = 194; + */ + VIDEO_ERROR_403_COUNT(368, 194), + /** + * + * + *
    +     * The number of errors of type 405 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 405 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_405_COUNT = 195; + */ + VIDEO_ERROR_405_COUNT(369, 195), + /** + * + * + *
    +     * The number of errors of type 406 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 406 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_406_COUNT = 196; + */ + VIDEO_ERROR_406_COUNT(370, 196), + /** + * + * + *
    +     * The number of errors of type 407 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 407 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_407_COUNT = 197; + */ + VIDEO_ERROR_407_COUNT(371, 197), + /** + * + * + *
    +     * The number of errors of type 408 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 408 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_408_COUNT = 198; + */ + VIDEO_ERROR_408_COUNT(372, 198), + /** + * + * + *
    +     * The number of errors of type 409 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 409 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_409_COUNT = 199; + */ + VIDEO_ERROR_409_COUNT(373, 199), + /** + * + * + *
    +     * The number of errors of type 410 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 410 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_410_COUNT = 200; + */ + VIDEO_ERROR_410_COUNT(374, 200), + /** + * + * + *
    +     * The number of errors of type 500 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 500 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_500_COUNT = 201; + */ + VIDEO_ERROR_500_COUNT(375, 201), + /** + * + * + *
    +     * The number of errors of type 501 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 501 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_501_COUNT = 202; + */ + VIDEO_ERROR_501_COUNT(376, 202), + /** + * + * + *
    +     * The number of errors of type 502 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 502 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_502_COUNT = 203; + */ + VIDEO_ERROR_502_COUNT(377, 203), + /** + * + * + *
    +     * The number of errors of type 503 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 503 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_503_COUNT = 204; + */ + VIDEO_ERROR_503_COUNT(378, 204), + /** + * + * + *
    +     * The number of errors of type 600 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 600 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_600_COUNT = 205; + */ + VIDEO_ERROR_600_COUNT(379, 205), + /** + * + * + *
    +     * The number of errors of type 601 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 601 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_601_COUNT = 206; + */ + VIDEO_ERROR_601_COUNT(380, 206), + /** + * + * + *
    +     * The number of errors of type 602 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 602 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_602_COUNT = 207; + */ + VIDEO_ERROR_602_COUNT(381, 207), + /** + * + * + *
    +     * The number of errors of type 603 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 603 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_603_COUNT = 208; + */ + VIDEO_ERROR_603_COUNT(382, 208), + /** + * + * + *
    +     * The number of errors of type 604 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 604 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_604_COUNT = 209; + */ + VIDEO_ERROR_604_COUNT(383, 209), + /** + * + * + *
    +     * The number of errors of type 900 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 900 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_900_COUNT = 210; + */ + VIDEO_ERROR_900_COUNT(384, 210), + /** + * + * + *
    +     * The number of errors of type 901 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 901 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_901_COUNT = 211; + */ + VIDEO_ERROR_901_COUNT(385, 211), + /** + * + * + *
    +     * The number of user interactions with a video, on average, such as pause,
    +     *  full screen, mute, etc.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average interaction rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; + */ + VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE(386, 92), + /** + * + * + *
    +     * The number of times a user collapses a video, either to its original size
    +     *  or to a different size.
    +     *
    +     *
    +     *
    +     * Corresponds to "Collapses" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_COLLAPSES = 93; + */ + VIDEO_INTERACTION_COLLAPSES(387, 93), + /** + * + * + *
    +     * The number of times a user expands a video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Expands" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_EXPANDS = 95; + */ + VIDEO_INTERACTION_EXPANDS(388, 95), + /** + * + * + *
    +     * The number of times ad clip played in full screen mode.
    +     *
    +     *
    +     *
    +     * Corresponds to "Full screens" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_FULL_SCREENS = 96; + */ + VIDEO_INTERACTION_FULL_SCREENS(389, 96), + /** + * + * + *
    +     * The number of times video player was in mute state during play of ad
    +     *  clip.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mutes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_MUTES = 97; + */ + VIDEO_INTERACTION_MUTES(390, 97), + /** + * + * + *
    +     * The number of times user paused ad clip.
    +     *
    +     *
    +     *
    +     * Corresponds to "Pauses" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_PAUSES = 98; + */ + VIDEO_INTERACTION_PAUSES(391, 98), + /** + * + * + *
    +     * The number of times the user unpaused the video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Resumes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_RESUMES = 99; + */ + VIDEO_INTERACTION_RESUMES(392, 99), + /** + * + * + *
    +     * The number of times a user rewinds the video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rewinds" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_REWINDS = 100; + */ + VIDEO_INTERACTION_REWINDS(393, 100), + /** + * + * + *
    +     * The number of times a user unmutes the video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Unmutes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_UNMUTES = 101; + */ + VIDEO_INTERACTION_UNMUTES(394, 101), + /** + * + * + *
    +     * The number of times a skippable video is skipped.
    +     *
    +     *
    +     *
    +     * Corresponds to "Skips" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_VIDEO_SKIPS = 102; + */ + VIDEO_INTERACTION_VIDEO_SKIPS(395, 102), + /** + * + * + *
    +     * The number of views for monetizable video content.
    +     *
    +     *
    +     *
    +     * Corresponds to "Monetizable content views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_MONETIZABLE_CONTENT_VIEWS = 601; + */ + VIDEO_MONETIZABLE_CONTENT_VIEWS(396, 601), + /** + * + * + *
    +     * The number of total creative serves in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total creative serves" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_CREATIVE_SERVES = 139; + */ + VIDEO_REAL_TIME_CREATIVE_SERVES(397, 139), + /** + * + * + *
    +     * The number of errors of type 100 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 100 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_100_COUNT = 143; + */ + VIDEO_REAL_TIME_ERROR_100_COUNT(398, 143), + /** + * + * + *
    +     * The number of errors of type 101 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 101 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_101_COUNT = 144; + */ + VIDEO_REAL_TIME_ERROR_101_COUNT(399, 144), + /** + * + * + *
    +     * The number of errors of type 102 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 102 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_102_COUNT = 145; + */ + VIDEO_REAL_TIME_ERROR_102_COUNT(400, 145), + /** + * + * + *
    +     * The number of errors of type 200 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 200 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_200_COUNT = 146; + */ + VIDEO_REAL_TIME_ERROR_200_COUNT(401, 146), + /** + * + * + *
    +     * The number of errors of type 201 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 201 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_201_COUNT = 147; + */ + VIDEO_REAL_TIME_ERROR_201_COUNT(402, 147), + /** + * + * + *
    +     * The number of errors of type 202 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 202 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_202_COUNT = 148; + */ + VIDEO_REAL_TIME_ERROR_202_COUNT(403, 148), + /** + * + * + *
    +     * The number of errors of type 203 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 203 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_203_COUNT = 149; + */ + VIDEO_REAL_TIME_ERROR_203_COUNT(404, 149), + /** + * + * + *
    +     * The number of errors of type 300 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 300 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_300_COUNT = 150; + */ + VIDEO_REAL_TIME_ERROR_300_COUNT(405, 150), + /** + * + * + *
    +     * The number of errors of type 301 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 301 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_301_COUNT = 151; + */ + VIDEO_REAL_TIME_ERROR_301_COUNT(406, 151), + /** + * + * + *
    +     * The number of errors of type 302 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 302 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_302_COUNT = 152; + */ + VIDEO_REAL_TIME_ERROR_302_COUNT(407, 152), + /** + * + * + *
    +     * The number of errors of type 303 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 303 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_303_COUNT = 153; + */ + VIDEO_REAL_TIME_ERROR_303_COUNT(408, 153), + /** + * + * + *
    +     * The number of errors of type 400 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 400 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_400_COUNT = 154; + */ + VIDEO_REAL_TIME_ERROR_400_COUNT(409, 154), + /** + * + * + *
    +     * The number of errors of type 401 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 401 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_401_COUNT = 155; + */ + VIDEO_REAL_TIME_ERROR_401_COUNT(410, 155), + /** + * + * + *
    +     * The number of errors of type 402 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 402 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_402_COUNT = 156; + */ + VIDEO_REAL_TIME_ERROR_402_COUNT(411, 156), + /** + * + * + *
    +     * The number of errors of type 403 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 403 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_403_COUNT = 157; + */ + VIDEO_REAL_TIME_ERROR_403_COUNT(412, 157), + /** + * + * + *
    +     * The number of errors of type 405 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 405 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_405_COUNT = 158; + */ + VIDEO_REAL_TIME_ERROR_405_COUNT(413, 158), + /** + * + * + *
    +     * The number of errors of type 406 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 406 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_406_COUNT = 159; + */ + VIDEO_REAL_TIME_ERROR_406_COUNT(414, 159), + /** + * + * + *
    +     * The number of errors of type 407 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 407 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_407_COUNT = 160; + */ + VIDEO_REAL_TIME_ERROR_407_COUNT(415, 160), + /** + * + * + *
    +     * The number of errors of type 408 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 408 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_408_COUNT = 161; + */ + VIDEO_REAL_TIME_ERROR_408_COUNT(416, 161), + /** + * + * + *
    +     * The number of errors of type 409 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 409 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_409_COUNT = 162; + */ + VIDEO_REAL_TIME_ERROR_409_COUNT(417, 162), + /** + * + * + *
    +     * The number of errors of type 410 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 410 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_410_COUNT = 163; + */ + VIDEO_REAL_TIME_ERROR_410_COUNT(418, 163), + /** + * + * + *
    +     * The number of errors of type 500 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 500 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_500_COUNT = 164; + */ + VIDEO_REAL_TIME_ERROR_500_COUNT(419, 164), + /** + * + * + *
    +     * The number of errors of type 501 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 501 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_501_COUNT = 165; + */ + VIDEO_REAL_TIME_ERROR_501_COUNT(420, 165), + /** + * + * + *
    +     * The number of errors of type 502 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 502 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_502_COUNT = 166; + */ + VIDEO_REAL_TIME_ERROR_502_COUNT(421, 166), + /** + * + * + *
    +     * The number of errors of type 503 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 503 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_503_COUNT = 167; + */ + VIDEO_REAL_TIME_ERROR_503_COUNT(422, 167), + /** + * + * + *
    +     * The number of errors of type 600 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 600 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_600_COUNT = 168; + */ + VIDEO_REAL_TIME_ERROR_600_COUNT(423, 168), + /** + * + * + *
    +     * The number of errors of type 601 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 601 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_601_COUNT = 169; + */ + VIDEO_REAL_TIME_ERROR_601_COUNT(424, 169), + /** + * + * + *
    +     * The number of errors of type 602 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 602 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_602_COUNT = 170; + */ + VIDEO_REAL_TIME_ERROR_602_COUNT(425, 170), + /** + * + * + *
    +     * The number of errors of type 603 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 603 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_603_COUNT = 171; + */ + VIDEO_REAL_TIME_ERROR_603_COUNT(426, 171), + /** + * + * + *
    +     * The number of errors of type 604 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 604 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_604_COUNT = 172; + */ + VIDEO_REAL_TIME_ERROR_604_COUNT(427, 172), + /** + * + * + *
    +     * The number of errors of type 900 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 900 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_900_COUNT = 173; + */ + VIDEO_REAL_TIME_ERROR_900_COUNT(428, 173), + /** + * + * + *
    +     * The number of errors of type 901 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 901 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_901_COUNT = 174; + */ + VIDEO_REAL_TIME_ERROR_901_COUNT(429, 174), + /** + * + * + *
    +     * The number of total impressions in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_IMPRESSIONS = 138; + */ + VIDEO_REAL_TIME_IMPRESSIONS(430, 138), + /** + * + * + *
    +     * The number of matched queries in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_MATCHED_QUERIES = 140; + */ + VIDEO_REAL_TIME_MATCHED_QUERIES(431, 140), + /** + * + * + *
    +     * The number of all errors in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total error count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; + */ + VIDEO_REAL_TIME_TOTAL_ERROR_COUNT(432, 175), + /** + * + * + *
    +     * The number of total queries in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_TOTAL_QUERIES = 142; + */ + VIDEO_REAL_TIME_TOTAL_QUERIES(433, 142), + /** + * + * + *
    +     * The number of unmatched queries in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unmatched ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; + */ + VIDEO_REAL_TIME_UNMATCHED_QUERIES(434, 141), + /** + * + * + *
    +     * Number of times that the publisher specified a video ad played
    +     *  automatically.
    +     *
    +     *
    +     *
    +     * Corresponds to "Auto-plays" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; + */ + VIDEO_VIEWERSHIP_AUTO_PLAYS(435, 103), + /** + * + * + *
    +     * Average percentage of the video watched by users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average view rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; + */ + VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE(436, 104), + /** + * + * + *
    +     * Average time(seconds) users watched the video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average view time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; + */ + VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME(437, 105), + /** + * + * + *
    +     * Number of times that the publisher specified a video ad was clicked to
    +     *  play.
    +     *
    +     *
    +     *
    +     * Corresponds to "Click-to-plays" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; + */ + VIDEO_VIEWERSHIP_CLICK_TO_PLAYS(438, 106), + /** + * + * + *
    +     * The number of times the video played to completion.
    +     *
    +     *
    +     *
    +     * Corresponds to "Completes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_COMPLETES = 107; + */ + VIDEO_VIEWERSHIP_COMPLETES(439, 107), + /** + * + * + *
    +     * Percentage of times the video played to the end.
    +     *
    +     *
    +     *
    +     * Corresponds to "Completion rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; + */ + VIDEO_VIEWERSHIP_COMPLETION_RATE(440, 108), + /** + * + * + *
    +     * The number of engaged views: ad is viewed to completion or for 30s,
    +     *  whichever comes first.
    +     *
    +     *
    +     *
    +     * Corresponds to "Engaged views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; + */ + VIDEO_VIEWERSHIP_ENGAGED_VIEWS(441, 109), + /** + * + * + *
    +     * The number of times the video played to 25% of its length.
    +     *
    +     *
    +     *
    +     * Corresponds to "First quartiles" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; + */ + VIDEO_VIEWERSHIP_FIRST_QUARTILES(442, 110), + /** + * + * + *
    +     * The number of times the video reached its midpoint during play.
    +     *
    +     *
    +     *
    +     * Corresponds to "Midpoints" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_MIDPOINTS = 111; + */ + VIDEO_VIEWERSHIP_MIDPOINTS(443, 111), + /** + * + * + *
    +     * The number of times a skip button is shown in video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Skip buttons shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; + */ + VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN(444, 112), + /** + * + * + *
    +     * The number of impressions where the video was played.
    +     *
    +     *
    +     *
    +     * Corresponds to "Starts" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_STARTS = 113; + */ + VIDEO_VIEWERSHIP_STARTS(445, 113), + /** + * + * + *
    +     * The number of times the video played to 75% of its length.
    +     *
    +     *
    +     *
    +     * Corresponds to "Third quartiles" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; + */ + VIDEO_VIEWERSHIP_THIRD_QUARTILES(446, 114), + /** + * + * + *
    +     * The number of times an error occurred, such as a VAST redirect error, a
    +     *  video playback error, or an invalid response error.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total error count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; + */ + VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT(447, 115), + /** + * + * + *
    +     * The percentage of video error count.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total error rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; + */ + VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE(448, 94), + /** + * + * + *
    +     * Duration of the video creative.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video length" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; + */ + VIDEO_VIEWERSHIP_VIDEO_LENGTH(449, 116), + /** + * + * + *
    +     * View-through rate represented as a percentage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video view through rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; + */ + VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE(450, 117), + /** + * + * + *
    +     * Number of winning bids received from Open Bidding buyers, even when the
    +     *  winning bid is placed at the end of a mediation for mobile apps chain.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group auctions won" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_AUCTIONS_WON = 80; + */ + YIELD_GROUP_AUCTIONS_WON(451, 80), + /** + * + * + *
    +     * Number of bids received from Open Bidding buyers, regardless of whether
    +     *  the returned bid competes in an auction.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_BIDS = 81; + */ + YIELD_GROUP_BIDS(452, 81), + /** + * + * + *
    +     * Number of bids received from Open Bidding buyers that competed in
    +     *  the auction.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group bids in auction" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_BIDS_IN_AUCTION = 82; + */ + YIELD_GROUP_BIDS_IN_AUCTION(453, 82), + /** + * + * + *
    +     * Number of times a yield partner is asked to return bid to fill
    +     *  a yield group request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group callouts" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_CALLOUTS = 83; + */ + YIELD_GROUP_CALLOUTS(454, 83), + /** + * + * + *
    +     * The estimated net rate for yield groups or individual
    +     *  yield group partners.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group estimated CPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * YIELD_GROUP_ESTIMATED_CPM = 88; + */ + YIELD_GROUP_ESTIMATED_CPM(455, 88), + /** + * + * + *
    +     * Total net revenue earned by a yield group, based upon the yield group
    +     *  estimated CPM and yield group impressions recorded.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group estimated revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * YIELD_GROUP_ESTIMATED_REVENUE = 87; + */ + YIELD_GROUP_ESTIMATED_REVENUE(456, 87), + /** + * + * + *
    +     * Number of matched yield group requests where a yield partner delivered
    +     *  their ad to publisher inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_IMPRESSIONS = 85; + */ + YIELD_GROUP_IMPRESSIONS(457, 85), + /** + * + * + *
    +     * Yield group Mediation fill rate indicating how often a network
    +     *  fills an ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation fill rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * YIELD_GROUP_MEDIATION_FILL_RATE = 89; + */ + YIELD_GROUP_MEDIATION_FILL_RATE(458, 89), + /** + * + * + *
    +     * Total requests where a Mediation chain was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation matched queries" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; + */ + YIELD_GROUP_MEDIATION_MATCHED_QUERIES(459, 86), + /** + * + * + *
    +     * The number of mediation chain passback across all channels.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation passbacks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_MEDIATION_PASSBACKS = 118; + */ + YIELD_GROUP_MEDIATION_PASSBACKS(460, 118), + /** + * + * + *
    +     * Revenue per thousand impressions based on data collected by Ad Manager
    +     *  from third-party ad network reports.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation third party ECPM" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; + */ + YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM(461, 90), + /** + * + * + *
    +     * The yield group revenue accrued in the child network's own account but
    +     *  paid to their parent network through auto-payment. This metric is only
    +     *  relevant for a "Manage Account" child network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group revenue paid through MCM auto-payment" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 215; + */ + YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(462, 215), + /** + * + * + *
    +     * Number of times a yield group buyer successfully returned a bid in
    +     *  response to a yield group callout.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group successful responses" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; + */ + YIELD_GROUP_SUCCESSFUL_RESPONSES(463, 84), + UNRECOGNIZED(-1, -1), + ; + + /** + * + * + *
    +     * Deprecated. This metric has been renamed to
    +     * `AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS`.
    +     * The server will normalize any requests using this value to
    +     * `AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS`.
    +     * This value will be removed on or after October 1, 2025.
    +     * 
    + * + * AD_SERVER_UNFILTERED_IMPRESSIONS = 260 [deprecated = true]; + */ + public static final Metric AD_SERVER_UNFILTERED_IMPRESSIONS = + AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * METRIC_UNSPECIFIED = 0; + */ + public static final int METRIC_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The number of people who engaged with your site or app in the specified
    +     *  date range from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active users" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_USERS = 223; + */ + public static final int ACTIVE_USERS_VALUE = 223; + + /** + * + * + *
    +     * Number of impressions with unmuted playback at start.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible at start" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT = 445; + */ + public static final int ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT_VALUE = 445; + + /** + * + * + *
    +     * Total Active View audible impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View audible impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_IMPRESSIONS = 659; + */ + public static final int ACTIVE_VIEW_AUDIBLE_IMPRESSIONS_VALUE = 659; + + /** + * + * + *
    +     * Number of impressions with unmuted playback through the entire stream.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible through completion" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT = 446; + */ + public static final int ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT_VALUE = 446; + + /** + * + * + *
    +     * Number of impressions with unmuted playback through at least 25%.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible through first quartile" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT = 447; + */ + public static final int ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT_VALUE = 447; + + /** + * + * + *
    +     * Number of impressions with unmuted playback through at least 50%.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible through midpoint" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT = 448; + */ + public static final int ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT_VALUE = 448; + + /** + * + * + *
    +     * Number of impressions with unmuted playback through at least 75%.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % audible through third quartile" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT = 449; + */ + public static final int ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT_VALUE = 449; + + /** + * + * + *
    +     * Total Active View audio enabled impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View audio eligible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS = 660; + */ + public static final int ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS_VALUE = 660; + + /** + * + * + *
    +     * Total Active View audio measurable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View audio measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS = 661; + */ + public static final int ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS_VALUE = 661; + + /** + * + * + *
    +     * Active View total average time in seconds that specific impressions are
    +     *  reported as being viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View average viewable time (seconds)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; + */ + public static final int ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME_VALUE = 61; + + /** + * + * + *
    +     * Total number of impressions that were eligible to measure viewability.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View eligible impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; + */ + public static final int ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS_VALUE = 58; + + /** + * + * + *
    +     * Number of impressions where the ad player is in the background at any
    +     *  point during playback with volume > 0.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % ever audible while backgrounded" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT = 450; + */ + public static final int ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT_VALUE = 450; + + /** + * + * + *
    +     * Number of impressions where volume > 0 at any point.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % ever audible" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_EVER_AUDIBLE_PERCENT = 451; + */ + public static final int ACTIVE_VIEW_EVER_AUDIBLE_PERCENT_VALUE = 451; + + /** + * + * + *
    +     * Number of impressions where the ad player is in the background at any
    +     *  point during playback.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % ever backgrounded" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT = 452; + */ + public static final int ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT_VALUE = 452; + + /** + * + * + *
    +     * Number of impressions where volume = 0 at any point.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View % ever muted" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_EVER_MUTED_PERCENT = 453; + */ + public static final int ACTIVE_VIEW_EVER_MUTED_PERCENT_VALUE = 453; + + /** + * + * + *
    +     * The number of measurable impressions that were played to video
    +     *  completion, and also audible and visible at the time of completion.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View impressions audible and visible at
    +     * completion" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION = 411; + */ + public static final int ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION_VALUE = 411; + + /** + * + * + *
    +     * The total number of impressions that were sampled and measured by active
    +     *  view.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; + */ + public static final int ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_VALUE = 57; + + /** + * + * + *
    +     * The percentage of total impressions that were measurable by active view
    +     *  (out of all the total impressions sampled for active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View % measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; + */ + public static final int ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE_VALUE = 60; + + /** + * + * + *
    +     * Total Active View non-measurable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View non-measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 662; + */ + public static final int ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS_VALUE = 662; + + /** + * + * + *
    +     * Total Active View non-viewable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View non-viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 663; + */ + public static final int ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_VALUE = 663; + + /** + * + * + *
    +     * Total Active View non-viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View non-viewable impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 664; + */ + public static final int ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION_VALUE = 664; + + /** + * + * + *
    +     * Total Active View percent audible impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View % audible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS = 665; + */ + public static final int ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS_VALUE = 665; + + /** + * + * + *
    +     * Number of impressions where we were able to collect Active View+ signals.
    +     *
    +     *
    +     *
    +     * Corresponds to "Active View+ measurable impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_PLUS_MEASURABLE_COUNT = 454; + */ + public static final int ACTIVE_VIEW_PLUS_MEASURABLE_COUNT_VALUE = 454; + + /** + * + * + *
    +     * Revenue generated from Active View impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * ACTIVE_VIEW_REVENUE = 414; + */ + public static final int ACTIVE_VIEW_REVENUE_VALUE = 414; + + /** + * + * + *
    +     * Total Active View undetermined impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View undetermined impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 666; + */ + public static final int ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION_VALUE = 666; + + /** + * + * + *
    +     * The total number of impressions viewed on the user's screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View viewable impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; + */ + public static final int ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_VALUE = 56; + + /** + * + * + *
    +     * Total Active View viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View viewable impression distribution" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 667; + */ + public static final int ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION_VALUE = 667; + + /** + * + * + *
    +     * The percentage of total impressions viewed on the user's screen (out of
    +     *  the total impressions measurable by active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Total Active View % viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; + */ + public static final int ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE_VALUE = 59; + + /** + * + * + *
    +     * Active View AdSense average time in seconds that specific impressions are
    +     *  reported as being viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View average viewable time (seconds)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; + */ + public static final int ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME_VALUE = 73; + + /** + * + * + *
    +     * Total number of impressions delivered by AdSense that were eligible to
    +     *  measure viewability.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View eligible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; + */ + public static final int ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS_VALUE = 70; + + /** + * + * + *
    +     * The number of impressions delivered by AdSense that were sampled, and
    +     *  measurable by active view.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; + */ + public static final int ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_VALUE = 69; + + /** + * + * + *
    +     * The percentage of impressions delivered by AdSense that were measurable
    +     *  by active view (out of all AdSense impressions sampled for active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View % measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; + */ + public static final int ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE_VALUE = 72; + + /** + * + * + *
    +     * AdSense Active View non-measurable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View non-measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 642; + */ + public static final int ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS_VALUE = 642; + + /** + * + * + *
    +     * AdSense Active View non-viewable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View non-viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 643; + */ + public static final int ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_VALUE = 643; + + /** + * + * + *
    +     * AdSense Active View non-viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View non-viewable impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 644; + */ + public static final int ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION_VALUE = 644; + + /** + * + * + *
    +     * AdSense Active View undetermined impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View undetermined impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 645; + */ + public static final int ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION_VALUE = 645; + + /** + * + * + *
    +     * The number of impressions delivered by AdSense viewed on the user's
    +     *  screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; + */ + public static final int ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_VALUE = 68; + + /** + * + * + *
    +     * AdSense Active View viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View viewable impression distribution" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 646; + */ + public static final int ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION_VALUE = 646; + + /** + * + * + *
    +     * The percentage of impressions delivered by AdSense viewed on the user's
    +     *  screen (out of AdSense impressions measurable by active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense Active View % viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; + */ + public static final int ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE_VALUE = 71; + + /** + * + * + *
    +     * The average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by AdSense through line item dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense average eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * ADSENSE_AVERAGE_ECPM = 26; + */ + public static final int ADSENSE_AVERAGE_ECPM_VALUE = 26; + + /** + * + * + *
    +     * Number of clicks delivered by AdSense demand channel.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_CLICKS = 23; + */ + public static final int ADSENSE_CLICKS_VALUE = 23; + + /** + * + * + *
    +     * The ratio of impressions served by AdSense that resulted in users
    +     *  clicking on an ad. The clickthrough rate (CTR) is updated nightly. The
    +     *  AdSense CTR is calculated as: (AdSense clicks / AdSense impressions).
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_CTR = 24; + */ + public static final int ADSENSE_CTR_VALUE = 24; + + /** + * + * + *
    +     * Total impressions delivered by AdSense.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_IMPRESSIONS = 22; + */ + public static final int ADSENSE_IMPRESSIONS_VALUE = 22; + + /** + * + * + *
    +     * Ratio of clicks delivered by AdSense through line item dynamic allocation
    +     *  in relation to the total clicks delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense clicks (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_PERCENT_CLICKS = 28; + */ + public static final int ADSENSE_PERCENT_CLICKS_VALUE = 28; + + /** + * + * + *
    +     * Ratio of impressions delivered by AdSense through line item dynamic
    +     *  allocation in relation to the total impressions delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense impressions (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_PERCENT_IMPRESSIONS = 27; + */ + public static final int ADSENSE_PERCENT_IMPRESSIONS_VALUE = 27; + + /** + * + * + *
    +     * Ratio of revenue generated by AdSense through line item dynamic
    +     *  allocation in relation to the total revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense revenue (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_PERCENT_REVENUE = 29; + */ + public static final int ADSENSE_PERCENT_REVENUE_VALUE = 29; + + /** + * + * + *
    +     * Ratio of revenue generated by AdSense through line item dynamic
    +     *  allocation in relation to the total revenue (excluding CPD).
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense revenue w/o CPD (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; + */ + public static final int ADSENSE_PERCENT_REVENUE_WITHOUT_CPD_VALUE = 30; + + /** + * + * + *
    +     * The total number of times that an AdSense ad is delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ADSENSE_RESPONSES_SERVED = 41; + */ + public static final int ADSENSE_RESPONSES_SERVED_VALUE = 41; + + /** + * + * + *
    +     * Revenue generated from AdSense through line item dynamic allocation,
    +     *  calculated in the network's currency and time zone.
    +     *
    +     *
    +     *
    +     * Corresponds to "AdSense revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * ADSENSE_REVENUE = 25; + */ + public static final int ADSENSE_REVENUE_VALUE = 25; + + /** + * + * + *
    +     * Active View AdExchange average time in seconds that specific impressions
    +     *  are reported as being viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View average viewable time (seconds)"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME_VALUE = 79; + + /** + * + * + *
    +     * Total number of impressions delivered by Ad Exchange that were eligible
    +     *  to measure viewability.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View eligible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS_VALUE = 76; + + /** + * + * + *
    +     * The number of impressions delivered by Ad Exchange that were sampled, and
    +     *  measurable by active view.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_VALUE = 75; + + /** + * + * + *
    +     * The percentage of impressions delivered by Ad Exchange that were
    +     *  measurable by active view (out of all Ad Exchange impressions sampled
    +     *  for active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View % measurable impressions" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE_VALUE = 78; + + /** + * + * + *
    +     * Ad Exchange Active View non-measurable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View non-measurable impressions" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 654; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS_VALUE = 654; + + /** + * + * + *
    +     * Ad Exchange Active View non-viewable impressions
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View non-viewable impressions" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 655; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_VALUE = 655; + + /** + * + * + *
    +     * Ad Exchange Active View non-viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View non-viewable impression
    +     * distribution" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 656; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION_VALUE = + 656; + + /** + * + * + *
    +     * Ad Exchange Active View undetermined impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View undetermined impression
    +     * distribution" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 657; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION_VALUE = + 657; + + /** + * + * + *
    +     * The number of impressions delivered by Ad Exchange viewed on the user's
    +     *  screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_VALUE = 74; + + /** + * + * + *
    +     * Ad Exchange Active View viewable impressions distribution
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View viewable impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 658; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION_VALUE = 658; + + /** + * + * + *
    +     * The percentage of impressions delivered by Ad Exchange viewed on the
    +     *  user's screen (out of Ad Exchange impressions measurable by active
    +     *  view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange Active View % viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; + */ + public static final int AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE_VALUE = 77; + + /** + * + * + *
    +     * The average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by Ad Exchange through line item dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange average eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_AVERAGE_ECPM = 18; + */ + public static final int AD_EXCHANGE_AVERAGE_ECPM_VALUE = 18; + + /** + * + * + *
    +     * Number of clicks delivered by the Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_CLICKS = 15; + */ + public static final int AD_EXCHANGE_CLICKS_VALUE = 15; + + /** + * + * + *
    +     * The average effective cost-per-click earned from the ads delivered by Ad
    +     *  Exchange through line item dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange CPC" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_CPC = 244; + */ + public static final int AD_EXCHANGE_CPC_VALUE = 244; + + /** + * + * + *
    +     * The ratio of impressions served by the Ad Exchange that resulted in users
    +     *  clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad
    +     *  Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange
    +     *  impressions).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_CTR = 16; + */ + public static final int AD_EXCHANGE_CTR_VALUE = 16; + + /** + * + * + *
    +     * Ratio of impressions delivered by Ad Exchange through line item dynamic
    +     *  allocation to ad requests.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange delivery rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_DELIVERY_RATE = 245; + */ + public static final int AD_EXCHANGE_DELIVERY_RATE_VALUE = 245; + + /** + * + * + *
    +     * Total impressions delivered by the Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_IMPRESSIONS = 14; + */ + public static final int AD_EXCHANGE_IMPRESSIONS_VALUE = 14; + + /** + * + * + *
    +     * The total number of impressions based on the number of ad viewers.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange impressions per ad viewer" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER = 427; + */ + public static final int AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER_VALUE = 427; + + /** + * + * + *
    +     * The total number of impressions based on the number of sessions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange impressions per session" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_EXCHANGE_IMPRESSIONS_PER_SESSION = 428; + */ + public static final int AD_EXCHANGE_IMPRESSIONS_PER_SESSION_VALUE = 428; + + /** + * + * + *
    +     * The increase in revenue gained for won impressions over the applicable
    +     *  third party price (the minimum CPM or the best price specified during
    +     *  dynamic allocation),
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange lift earnings" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_LIFT = 246; + */ + public static final int AD_EXCHANGE_LIFT_VALUE = 246; + + /** + * + * + *
    +     * The ratio of matched ad requests served by the Ad Exchange that
    +     *  resulted in users clicking on an ad. The clickthrough rate (CTR) is
    +     *  updated nightly. Ad Exchange Matched Request CTR is calculated as:
    +     *  (Ad Exchange clicks / Ad Exchange Macthed Ad Requests).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange matched request CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_MATCHED_REQUEST_CTR = 247; + */ + public static final int AD_EXCHANGE_MATCHED_REQUEST_CTR_VALUE = 247; + + /** + * + * + *
    +     * The average effective cost per thousand matched ad requests earned from
    +     *  the ads delivered by Ad Exchange through line item dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange matched request eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_MATCHED_REQUEST_ECPM = 248; + */ + public static final int AD_EXCHANGE_MATCHED_REQUEST_ECPM_VALUE = 248; + + /** + * + * + *
    +     * The number of responses served divided by the number of queries eligible
    +     *  in ad exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange match rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_MATCH_RATE = 249; + */ + public static final int AD_EXCHANGE_MATCH_RATE_VALUE = 249; + + /** + * + * + *
    +     * Total opportunities from video VAST error within the waterfall for
    +     *  backfill ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange opportunities from errors" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS = 250; + */ + public static final int AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS_VALUE = 250; + + /** + * + * + *
    +     * Number of opportunities from impressions within the waterfall for
    +     *  backfill ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange opportunities from impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS = 251; + */ + public static final int AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS_VALUE = 251; + + /** + * + * + *
    +     * Ratio of clicks delivered by Ad Exchange through line item dynamic
    +     *  allocation in relation to the total clicks delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange clicks (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_PERCENT_CLICKS = 20; + */ + public static final int AD_EXCHANGE_PERCENT_CLICKS_VALUE = 20; + + /** + * + * + *
    +     * Ratio of impressions delivered by Ad Exchange through line item dynamic
    +     *  allocation in relation to the total impressions delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange impressions (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; + */ + public static final int AD_EXCHANGE_PERCENT_IMPRESSIONS_VALUE = 19; + + /** + * + * + *
    +     * Ratio of revenue generated by Ad Exchange through line item dynamic
    +     *  allocation in relation to the total revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_PERCENT_REVENUE = 21; + */ + public static final int AD_EXCHANGE_PERCENT_REVENUE_VALUE = 21; + + /** + * + * + *
    +     * Ratio of revenue generated by Ad Exchange through line item dynamic
    +     *  allocation in relation to the total revenue (excluding CPD).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue w/o CPD (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; + */ + public static final int AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD_VALUE = 31; + + /** + * + * + *
    +     * The average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by Ad Exchange through line item dynamic allocation and yield
    +     *  group partners.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange plus yield group eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM = 252; + */ + public static final int AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM_VALUE = 252; + + /** + * + * + *
    +     * Total impressions delivered by the Ad Exchange and third-party networks.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange plus yield group impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS = 253; + */ + public static final int AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS_VALUE = 253; + + /** + * + * + *
    +     * Revenue generated from the Ad Exchange and Yield Group, calculated in
    +     *   your network's currency and time zone.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange plus yield group revenue" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE = 254; + */ + public static final int AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE_VALUE = 254; + + /** + * + * + *
    +     * The total number of times that an Ad Exchange ad is delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_RESPONSES_SERVED = 42; + */ + public static final int AD_EXCHANGE_RESPONSES_SERVED_VALUE = 42; + + /** + * + * + *
    +     * Revenue generated from the Ad Exchange through line item dynamic
    +     *  allocation, calculated in your network's currency and time zone.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_REVENUE = 17; + */ + public static final int AD_EXCHANGE_REVENUE_VALUE = 17; + + /** + * + * + *
    +     * The Ad Exchange revenue accrued in the child network's own account but
    +     *  paid to their parent network through auto-payment. This metric is only
    +     *  relevant for a "Manage Account" child network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue paid through MCM auto-payment" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 212; + */ + public static final int AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT_VALUE = 212; + + /** + * + * + *
    +     * The total amount of Ad Exchange revenue based on the
    +     *  number of ad viewers.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange revenue per ad viewer" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_REVENUE_PER_AD_VIEWER = 429; + */ + public static final int AD_EXCHANGE_REVENUE_PER_AD_VIEWER_VALUE = 429; + + /** + * + * + *
    +     * The number of programmatic eligible queries in Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange total requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_EXCHANGE_TOTAL_REQUESTS = 255; + */ + public static final int AD_EXCHANGE_TOTAL_REQUESTS_VALUE = 255; + + /** + * + * + *
    +     * The ratio of total ad requests served by the Ad Exchange that
    +     *  resulted in users clicking on an ad. The clickthrough rate (CTR) is
    +     *  updated nightly. Ad Exchange Total Request CTR is calculated as:
    +     *  (Ad Exchange clicks / Ad Exchange Total Ad Requests).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange total request CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_EXCHANGE_TOTAL_REQUEST_CTR = 256; + */ + public static final int AD_EXCHANGE_TOTAL_REQUEST_CTR_VALUE = 256; + + /** + * + * + *
    +     * The average effective cost per thousand ad requests earned from the ads
    +     *  delivered by Ad Exchange through line item dynamic allocation and yield
    +     *   group partners.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad Exchange total request eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_EXCHANGE_TOTAL_REQUEST_ECPM = 257; + */ + public static final int AD_EXCHANGE_TOTAL_REQUEST_ECPM_VALUE = 257; + + /** + * + * + *
    +     * Length of time in seconds that an ad is visible on the user's screen from
    +     *  Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad exposure (seconds)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_EXPOSURE_SECONDS = 241; + */ + public static final int AD_EXPOSURE_SECONDS_VALUE = 241; + + /** + * + * + *
    +     * The total number of times that an ad request is sent to the ad server
    +     *  including dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_REQUESTS = 38; + */ + public static final int AD_REQUESTS_VALUE = 38; + + /** + * + * + *
    +     * Active View ad server average time in seconds that specific impressions
    +     *  are reported as being viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View average viewable time (seconds)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; + */ + public static final int AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME_VALUE = 67; + + /** + * + * + *
    +     * Total number of impressions delivered by the ad server that were eligible
    +     *  to measure viewability.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View eligible impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; + */ + public static final int AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS_VALUE = 64; + + /** + * + * + *
    +     * The number of impressions delivered by the ad server that were sampled,
    +     *  and measurable by active view.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; + */ + public static final int AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_VALUE = 63; + + /** + * + * + *
    +     * The percentage of impressions delivered by the ad server that were
    +     *  measurable by active view (out of all the ad server impressions sampled
    +     *  for active view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View % measurable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; + */ + public static final int AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE_VALUE = 66; + + /** + * + * + *
    +     * The number of impressions delivered by Ad Server that were not measured.
    +     *  For example, impressions where measurement was attempted but failed.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View non-measurable impressions" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 332; + */ + public static final int AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS_VALUE = 332; + + /** + * + * + *
    +     * The number of impressions delivered by Ad Server that were measured by
    +     *  active view, but deemed not viewable.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View non-viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 331; + */ + public static final int AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_VALUE = 331; + + /** + * + * + *
    +     * The fraction of non-viewable impressions among eligible impressions from
    +     *  Ad Server in Active View reporting."
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View non-viewable impression
    +     * distribution" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 334; + */ + public static final int AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION_VALUE = 334; + + /** + * + * + *
    +     * The fraction of non-eligible impressions among eligible impressions from
    +     *  Ad Server in Active View reporting."
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View undetermined impression
    +     * distribution" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 335; + */ + public static final int AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION_VALUE = 335; + + /** + * + * + *
    +     * The number of impressions delivered by the ad server viewed on the user's
    +     *  screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; + */ + public static final int AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_VALUE = 62; + + /** + * + * + *
    +     * The fraction of viewable impressions among eligible impressions from Ad
    +     *  Server in Active View reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View viewable impression distribution"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 333; + */ + public static final int AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION_VALUE = 333; + + /** + * + * + *
    +     * The percentage of impressions delivered by the ad server viewed on the
    +     *  user's screen (out of the ad server impressions measurable by active
    +     *  view).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server Active View % viewable impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; + */ + public static final int AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE_VALUE = 65; + + /** + * + * + *
    +     * Average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by the Google Ad Manager server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server average eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_AVERAGE_ECPM = 34; + */ + public static final int AD_SERVER_AVERAGE_ECPM_VALUE = 34; + + /** + * + * + *
    +     * Average effective cost-per-thousand-impressions earned from the ads
    +     *  delivered by the Google Ad Manager server, excluding CPD value.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server average eCPM w/o CPD" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; + */ + public static final int AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD_VALUE = 10; + + /** + * + * + *
    +     * Total raw impressions counted when creative begins to render or the
    +     *  first frame of a video is shown.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server begin to render impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; + */ + public static final int AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS_VALUE = 262; + + /** + * + * + *
    +     * Total clicks served by the Google Ad Manager server. It usually takes
    +     *  about 30 minutes for new clicks to be recorded and added to the total
    +     *  displayed in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_CLICKS = 7; + */ + public static final int AD_SERVER_CLICKS_VALUE = 7; + + /** + * + * + *
    +     * The number of completed views for ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server completed views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_COMPLETED_VIEWS = 431; + */ + public static final int AD_SERVER_COMPLETED_VIEWS_VALUE = 431; + + /** + * + * + *
    +     * Total coviewed impressions delivered by the Ad Server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server impressions (co-viewed)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_COVIEWED_IMPRESSIONS = 554; + */ + public static final int AD_SERVER_COVIEWED_IMPRESSIONS_VALUE = 554; + + /** + * + * + *
    +     * CPD revenue earned, calculated in your network's currency, for
    +     *  the ads delivered by the Google Ad Manager server. Sum of all booked
    +     *  revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server CPD revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_CPD_REVENUE = 32; + */ + public static final int AD_SERVER_CPD_REVENUE_VALUE = 32; + + /** + * + * + *
    +     * Ratio of impressions served by the Google Ad Manager server that resulted
    +     *  in users clicking on an ad. The clickthrough rate (CTR) is updated
    +     *  nightly. The ad server CTR is calculated as: (Ad server clicks / Ad
    +     *  server impressions).
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_CTR = 8; + */ + public static final int AD_SERVER_CTR_VALUE = 8; + + /** + * + * + *
    +     * Gross revenue earned, calculated in your network's currency, for the ads
    +     *  delivered by the Google Ad Manager server.  This includes pre-rev-share
    +     *  revenue for Programmatic traffic. This metric is to help with the
    +     *  transition from gross to net revenue reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server total revenue (gross)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_GROSS_REVENUE = 483; + */ + public static final int AD_SERVER_GROSS_REVENUE_VALUE = 483; + + /** + * + * + *
    +     * Gross revenue earned, calculated in your network's currency, for the ads
    +     *  delivered by the Google Ad Manager server, excluding CPD revenue. This
    +     *  includes pre-rev-share revenue for Programmatic traffic. This metric is
    +     *  to help with the transition from gross to net revenue reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server CPM and CPC revenue (gross)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_GROSS_REVENUE_WITHOUT_CPD = 484; + */ + public static final int AD_SERVER_GROSS_REVENUE_WITHOUT_CPD_VALUE = 484; + + /** + * + * + *
    +     * Total impressions delivered by the Ad Server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_IMPRESSIONS = 6; + */ + public static final int AD_SERVER_IMPRESSIONS_VALUE = 6; + + /** + * + * + *
    +     * Total impressions delivered by the Ad Server with companion impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server impressions with companion" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_IMPRESSIONS_WITH_COMPANION = 222; + */ + public static final int AD_SERVER_IMPRESSIONS_WITH_COMPANION_VALUE = 222; + + /** + * + * + *
    +     * Impressions (via begin to render methodology) delivered by the Google Ad
    +     *  Manager server considered inactive, as defined by served to a device
    +     *  receiving ad or bid requests continuously for a session of greater than
    +     *  16 hours without a "reset" event.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server inactive begin to render impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 338; + */ + public static final int AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS_VALUE = 338; + + /** + * + * + *
    +     * Ratio of clicks delivered by the Google Ad Manager server in relation to
    +     *  the total clicks delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server clicks (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_PERCENT_CLICKS = 12; + */ + public static final int AD_SERVER_PERCENT_CLICKS_VALUE = 12; + + /** + * + * + *
    +     * Ratio of impressions delivered by the Google Ad Manager server in
    +     *  relation to the total impressions delivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server impressions (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_PERCENT_IMPRESSIONS = 11; + */ + public static final int AD_SERVER_PERCENT_IMPRESSIONS_VALUE = 11; + + /** + * + * + *
    +     * Ratio of revenue generated by the Google Ad Manager server in relation
    +     *  to the total revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server revenue (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_PERCENT_REVENUE = 35; + */ + public static final int AD_SERVER_PERCENT_REVENUE_VALUE = 35; + + /** + * + * + *
    +     * Ratio of revenue generated by the Google Ad Manager server (excluding
    +     *  CPD) in relation to the total revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server revenue w/o CPD (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; + */ + public static final int AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD_VALUE = 13; + + /** + * + * + *
    +     * The total number of times that an ad is served by the ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_RESPONSES_SERVED = 40; + */ + public static final int AD_SERVER_RESPONSES_SERVED_VALUE = 40; + + /** + * + * + *
    +     * All CPM, CPC, and CPD revenue earned, calculated in your network's
    +     *  currency, for the ads delivered by the Google Ad Manager server.
    +     *  Sum of all booked revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server total revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_REVENUE = 33; + */ + public static final int AD_SERVER_REVENUE_VALUE = 33; + + /** + * + * + *
    +     * The Google Ad Manager server revenue accrued in the child network's own
    +     *  account but paid to their parent network through auto-payment. This
    +     *  metric is only relevant for a "Manage Account" child network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server revenue paid through MCM auto-payment" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 213; + */ + public static final int AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT_VALUE = 213; + + /** + * + * + *
    +     * Revenue (excluding CPD) earned, calculated in your network's currency,
    +     *  for the ads delivered by the Google Ad Manager server. Sum of all booked
    +     *  revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server CPM and CPC revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AD_SERVER_REVENUE_WITHOUT_CPD = 9; + */ + public static final int AD_SERVER_REVENUE_WITHOUT_CPD_VALUE = 9; + + /** + * + * + *
    +     * The number of clicks delivered by the ad server by explicit custom
    +     *  criteria targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server targeted clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_TARGETED_CLICKS = 274; + */ + public static final int AD_SERVER_TARGETED_CLICKS_VALUE = 274; + + /** + * + * + *
    +     * The number of impressions delivered by the ad server by explicit custom
    +     *  criteria targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server targeted impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_TARGETED_IMPRESSIONS = 275; + */ + public static final int AD_SERVER_TARGETED_IMPRESSIONS_VALUE = 275; + + /** + * + * + *
    +     * The number of tracked ads delivered by the ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server tracked ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_TRACKED_ADS = 264; + */ + public static final int AD_SERVER_TRACKED_ADS_VALUE = 264; + + /** + * + * + *
    +     * Total raw impressions counted when creative begins to render or the
    +     *  first frame of a video is shown, before invalid traffic filtrations by
    +     *  Ad Server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server unfiltered begin to render impressions" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; + */ + public static final int AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS_VALUE = 261; + + /** + * + * + *
    +     * Total clicks delivered by the Ad Server before spam filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server unfiltered clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_UNFILTERED_CLICKS = 259; + */ + public static final int AD_SERVER_UNFILTERED_CLICKS_VALUE = 259; + + /** + * + * + *
    +     * Total downloaded impressions delivered by the Ad Server before spam
    +     *  filtering.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server unfiltered downloaded impressions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS = 260; + */ + public static final int AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS_VALUE = 260; + + /** + * + * + *
    +     * Deprecated. This metric has been renamed to
    +     * `AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS`.
    +     * The server will normalize any requests using this value to
    +     * `AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS`.
    +     * This value will be removed on or after October 1, 2025.
    +     * 
    + * + * AD_SERVER_UNFILTERED_IMPRESSIONS = 260 [deprecated = true]; + */ + @java.lang.Deprecated public static final int AD_SERVER_UNFILTERED_IMPRESSIONS_VALUE = 260; + + /** + * + * + *
    +     * The number of tracked ads delivered by the ad server before invalid
    +     *  traffic filtrations.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad server unfiltered tracked ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_SERVER_UNFILTERED_TRACKED_ADS = 263; + */ + public static final int AD_SERVER_UNFILTERED_TRACKED_ADS_VALUE = 263; + + /** + * + * + *
    +     * Length of time in seconds that an ad unit is visible on the user's screen
    +     *  from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad unit exposure (seconds)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AD_UNIT_EXPOSURE_SECONDS = 242; + */ + public static final int AD_UNIT_EXPOSURE_SECONDS_VALUE = 242; + + /** + * + * + *
    +     * The number of users who viewed an ads on your site or app in the
    +     *  specified date range from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad viewers" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * AD_VIEWERS = 425; + */ + public static final int AD_VIEWERS_VALUE = 425; + + /** + * + * + *
    +     * Number of ads that Ad Manager failed to render in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ads failed to render" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_ADS_FAILED_TO_RENDER = 430; + */ + public static final int ATN_ADS_FAILED_TO_RENDER_VALUE = 430; + + /** + * + * + *
    +     * Number of line items that matched an ad request in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Eligible line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_ELIGIBLE_LINE_ITEMS = 342; + */ + public static final int ATN_ELIGIBLE_LINE_ITEMS_VALUE = 342; + + /** + * + * + *
    +     * Number of ad requests that contain eligible line items for the auction in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with eligible line items" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS = 343; + */ + public static final int ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS_VALUE = 343; + + /** + * + * + *
    +     * Number of ad requests that have header bidding trafficking demand in the
    +     *  Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests allowing header bidding trafficking" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_ALLOWED_AD_REQUESTS = 344; + */ + public static final int ATN_HBT_ALLOWED_AD_REQUESTS_VALUE = 344; + + /** + * + * + *
    +     * Number of header bidding trafficking bids that are able to match an ad
    +     *  request and enter the auction in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Competing header bidding trafficking bids" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_BIDS_IN_AUCTION = 345; + */ + public static final int ATN_HBT_BIDS_IN_AUCTION_VALUE = 345; + + /** + * + * + *
    +     * Number of header bidding trafficking ad requests with bids in auction in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with competing header bidding trafficking
    +     * bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS = 346; + */ + public static final int ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS_VALUE = 346; + + /** + * + * + *
    +     * Number of header bidding trafficking candidate bids that match an ad
    +     *  request in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidding trafficking bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_CANDIDATE_BIDS = 347; + */ + public static final int ATN_HBT_CANDIDATE_BIDS_VALUE = 347; + + /** + * + * + *
    +     * Number of invalid header bidding trafficking ad requests in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invalid ad requests allowing header bidding trafficking"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_INVALID_AD_REQUESTS = 348; + */ + public static final int ATN_HBT_INVALID_AD_REQUESTS_VALUE = 348; + + /** + * + * + *
    +     * Number of header bidding trafficking ad requests with no bids in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidding trafficking ad requests with no bids" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_NO_BIDS_AD_REQUESTS = 472; + */ + public static final int ATN_HBT_NO_BIDS_AD_REQUESTS_VALUE = 472; + + /** + * + * + *
    +     * Number of header bidding trafficking bids that didn't match the ad
    +     *  request in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejected header bidding trafficking bids" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_REJECTED_BIDS = 349; + */ + public static final int ATN_HBT_REJECTED_BIDS_VALUE = 349; + + /** + * + * + *
    +     * Number of ad requests with the header bidding trafficking demand that are
    +     *  valid in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Valid header bidding trafficking ad requests" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_VALID_AD_REQUESTS = 350; + */ + public static final int ATN_HBT_VALID_AD_REQUESTS_VALUE = 350; + + /** + * + * + *
    +     * Number of header bidding trafficking ad requests with bids in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Header bidding trafficking ad requests with bids" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_HBT_WITH_BIDS_AD_REQUESTS = 473; + */ + public static final int ATN_HBT_WITH_BIDS_AD_REQUESTS_VALUE = 473; + + /** + * + * + *
    +     * Ad requests that are not valid in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invalid ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_INVALID_AD_REQUESTS = 351; + */ + public static final int ATN_INVALID_AD_REQUESTS_VALUE = 351; + + /** + * + * + *
    +     * Number of line items with no creative retrieved in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative not retrieved" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED = 476; + */ + public static final int ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED_VALUE = 476; + + /** + * + * + *
    +     * Number of line items that matched an ad request and entered in auction in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Competing line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEMS_IN_AUCTION = 352; + */ + public static final int ATN_LINE_ITEMS_IN_AUCTION_VALUE = 352; + + /** + * + * + *
    +     * Number of line items that were ranked but did not compete in auction in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Non-competing line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEMS_NOT_COMPETING = 515; + */ + public static final int ATN_LINE_ITEMS_NOT_COMPETING_VALUE = 515; + + /** + * + * + *
    +     * Number of line items that matched an ad request but were not selected to
    +     *  compete in the auction in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Not selected to compete" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEMS_NOT_SELECTED = 353; + */ + public static final int ATN_LINE_ITEMS_NOT_SELECTED_VALUE = 353; + + /** + * + * + *
    +     * Number of line item ad requests in auction in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with competing line items" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS = 354; + */ + public static final int ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS_VALUE = 354; + + /** + * + * + *
    +     * Number of line item targeted ad requests in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with targeted line items" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_LINE_ITEM_TARGETED_AD_REQUESTS = 355; + */ + public static final int ATN_LINE_ITEM_TARGETED_AD_REQUESTS_VALUE = 355; + + /** + * + * + *
    +     * Number of ad requests with the mediation demand in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests allowing mediation" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_ALLOWED_AD_REQUESTS = 356; + */ + public static final int ATN_MEDIATION_ALLOWED_AD_REQUESTS_VALUE = 356; + + /** + * + * + *
    +     * Number of invalid mediation ad requests in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invalid ad requests allowing mediation" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_INVALID_AD_REQUESTS = 357; + */ + public static final int ATN_MEDIATION_INVALID_AD_REQUESTS_VALUE = 357; + + /** + * + * + *
    +     * Number of times the Yield Partner's ad was loaded in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Loaded ads from chains" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_LOADED_ADS_FROM_CHAINS = 358; + */ + public static final int ATN_MEDIATION_LOADED_ADS_FROM_CHAINS_VALUE = 358; + + /** + * + * + *
    +     * Number of ad requests with mediation demand having no partners in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mediation requests with no partners" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_NO_PARTNER_AD_REQUESTS = 474; + */ + public static final int ATN_MEDIATION_NO_PARTNER_AD_REQUESTS_VALUE = 474; + + /** + * + * + *
    +     * Number of mediation yield partners in auction in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Competing mediation partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_PARTNERS_IN_AUCTION = 359; + */ + public static final int ATN_MEDIATION_PARTNERS_IN_AUCTION_VALUE = 359; + + /** + * + * + *
    +     * Number of ad requests in auction that serve mediation chains in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with competing mediation partners" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS = 360; + */ + public static final int ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS_VALUE = 360; + + /** + * + * + *
    +     * Number of mediation partners that didn't match an ad request in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejected partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_REJECTED_PARTNERS = 361; + */ + public static final int ATN_MEDIATION_REJECTED_PARTNERS_VALUE = 361; + + /** + * + * + *
    +     * Number of mediation partners that have targeted an ad request and are
    +     *  able to match it in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeted mediation partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_TARGETED_PARTNERS = 362; + */ + public static final int ATN_MEDIATION_TARGETED_PARTNERS_VALUE = 362; + + /** + * + * + *
    +     * Number of partners on served mediation chains in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total yield partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_TOTAL_YIELD_PARTNERS = 442; + */ + public static final int ATN_MEDIATION_TOTAL_YIELD_PARTNERS_VALUE = 442; + + /** + * + * + *
    +     * Number of ads from mediation chains that Ad Manager won't serve in the
    +     *  Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Unloaded ads from chains" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS = 363; + */ + public static final int ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS_VALUE = 363; + + /** + * + * + *
    +     * Number of times the Yield Partner's mediation chain ad was not reached
    +     *  in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Unused bids or partners" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS = 364; + */ + public static final int ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS_VALUE = 364; + + /** + * + * + *
    +     * Number of ad requests that have mediation demand in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Valid mediation ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_VALID_AD_REQUESTS = 365; + */ + public static final int ATN_MEDIATION_VALID_AD_REQUESTS_VALUE = 365; + + /** + * + * + *
    +     * Number of ad requests with mediation demand having partners in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with targeted mediation partners" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS = 475; + */ + public static final int ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS_VALUE = 475; + + /** + * + * + *
    +     * Number of ad requests with programmatic demand that have received a bid
    +     *  in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS = 366; + */ + public static final int ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS_VALUE = 366; + + /** + * + * + *
    +     * Number of ad requests with programmatic demand that have sent a bid to at
    +     *  least one buyer in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with bid requests sent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT = 367; + */ + public static final int ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT_VALUE = 367; + + /** + * + * + *
    +     * Number of ad requests with programmatic demand in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests allowing programmatic" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS = 368; + */ + public static final int ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS_VALUE = 368; + + /** + * + * + *
    +     * Number of ads with programmatic bids that entered the auction
    +     *  in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Competing programmatic bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BIDS_IN_AUCTION = 369; + */ + public static final int ATN_PROGRAMMATIC_BIDS_IN_AUCTION_VALUE = 369; + + /** + * + * + *
    +     * Number of ad requests that have received eligible programmatic bids to
    +     *  compete in the auction in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad requests with competing programmatic bids" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS = 370; + */ + public static final int ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS_VALUE = 370; + + /** + * + * + *
    +     * Number of programmatic callout bid requests sent to buyers in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid requests sent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_REQUESTS_SENT = 371; + */ + public static final int ATN_PROGRAMMATIC_BID_REQUESTS_SENT_VALUE = 371; + + /** + * + * + *
    +     * Number of programmatic callout bid requests that resulted with a response
    +     *  in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid requests with response" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE = 372; + */ + public static final int ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE_VALUE = 372; + + /** + * + * + *
    +     * All buyers that Ad Manager could potentially send a programmatic bid
    +     *  request to in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid request candidates" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES = 373; + */ + public static final int ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES_VALUE = 373; + + /** + * + * + *
    +     * Number of programmatic callout bid requests with errors in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bid request errors" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_BID_REQUEST_ERRORS = 374; + */ + public static final int ATN_PROGRAMMATIC_BID_REQUEST_ERRORS_VALUE = 374; + + /** + * + * + *
    +     * Number of ad requests that are ineligible for programmatic in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invalid ad requests allowing programmatic" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS = 375; + */ + public static final int ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS_VALUE = 375; + + /** + * + * + *
    +     * Number of programmatic callout bids rejected in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejected bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_REJECTED_BIDS = 376; + */ + public static final int ATN_PROGRAMMATIC_REJECTED_BIDS_VALUE = 376; + + /** + * + * + *
    +     * Number of programmatic callout bid requests Ad Manager won't send to
    +     *  buyers in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Skipped bid requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS = 377; + */ + public static final int ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS_VALUE = 377; + + /** + * + * + *
    +     * Number of programmatic bids that Ad Manager received from buyers in the
    +     *  Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total programmatic bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_TOTAL_BIDS = 378; + */ + public static final int ATN_PROGRAMMATIC_TOTAL_BIDS_VALUE = 378; + + /** + * + * + *
    +     * Number of ad requests that allow programmatic in the Ads traffic
    +     *  navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Valid ad requests allowing programmatic" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_PROGRAMMATIC_VALID_AD_REQUESTS = 379; + */ + public static final int ATN_PROGRAMMATIC_VALID_AD_REQUESTS_VALUE = 379; + + /** + * + * + *
    +     * Number of line items targeted that didn't match an ad request in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rejected line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_REJECTED_LINE_ITEMS = 380; + */ + public static final int ATN_REJECTED_LINE_ITEMS_VALUE = 380; + + /** + * + * + *
    +     * Number of mediation chains Ad Manager serves in the Ads traffic navigator
    +     *  report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Served mediation chains" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_SERVED_MEDIATION_CHAINS = 381; + */ + public static final int ATN_SERVED_MEDIATION_CHAINS_VALUE = 381; + + /** + * + * + *
    +     * Number of single ads served in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Served single ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_SERVED_SINGLE_ADS = 382; + */ + public static final int ATN_SERVED_SINGLE_ADS_VALUE = 382; + + /** + * + * + *
    +     * Number of line items with targeting that matches an ad request in the Ads
    +     *  traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Targeted line items" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_TARGETED_LINE_ITEMS = 383; + */ + public static final int ATN_TARGETED_LINE_ITEMS_VALUE = 383; + + /** + * + * + *
    +     * Total number of ad requests which counts optimized pod request as a
    +     *  single request in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total ad requests (ATN)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_TOTAL_AD_REQUESTS = 384; + */ + public static final int ATN_TOTAL_AD_REQUESTS_VALUE = 384; + + /** + * + * + *
    +     * Number of competing ads in auction in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total competing ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_TOTAL_COMPETING_ADS_IN_AUCTION = 385; + */ + public static final int ATN_TOTAL_COMPETING_ADS_IN_AUCTION_VALUE = 385; + + /** + * + * + *
    +     * Total number of ads loaded in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total loaded ads" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_TOTAL_LOADED_ADS = 387; + */ + public static final int ATN_TOTAL_LOADED_ADS_VALUE = 387; + + /** + * + * + *
    +     * Ad requests that are valid in the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Valid ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_VALID_AD_REQUESTS = 389; + */ + public static final int ATN_VALID_AD_REQUESTS_VALUE = 389; + + /** + * + * + *
    +     * Number of times the Yield Partner passed-back on a Mediation chain ad in
    +     *  the Ads traffic navigator report.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation passbacks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ATN_YIELD_GROUP_MEDIATION_PASSBACKS = 390; + */ + public static final int ATN_YIELD_GROUP_MEDIATION_PASSBACKS_VALUE = 390; + + /** + * + * + *
    +     * eCPM averaged across the Google Ad Manager server, AdSense,
    +     *  and Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total average eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AVERAGE_ECPM = 37; + */ + public static final int AVERAGE_ECPM_VALUE = 37; + + /** + * + * + *
    +     * eCPM averaged across the Google Ad Manager server (excluding CPD),
    +     *  AdSense, and Ad Exchange.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total average eCPM w/o CPD" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AVERAGE_ECPM_WITHOUT_CPD = 5; + */ + public static final int AVERAGE_ECPM_WITHOUT_CPD_VALUE = 5; + + /** + * + * + *
    +     * Average user engagement seconds per session in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average engagement time per session (seconds)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION = 224; + */ + public static final int AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION_VALUE = 224; + + /** + * + * + *
    +     * Average user engagement seconds per user in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average engagement time per user (seconds)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AVERAGE_ENGAGEMENT_SECONDS_PER_USER = 225; + */ + public static final int AVERAGE_ENGAGEMENT_SECONDS_PER_USER_VALUE = 225; + + /** + * + * + *
    +     * The average number of unique users reached per ad impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average impressions/unique visitor" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `REACH`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR = 418; + */ + public static final int AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR_VALUE = 418; + + /** + * + * + *
    +     * Average total purchase revenue per user in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "ARPPU" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER = 226; + */ + public static final int AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER_VALUE = 226; + + /** + * + * + *
    +     * Average revenue earned from each active user in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "ARPU" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * AVERAGE_REVENUE_PER_USER = 227; + */ + public static final int AVERAGE_REVENUE_PER_USER_VALUE = 227; + + /** + * + * + *
    +     * Average length of a session in Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average session duration (seconds)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * AVERAGE_SESSION_SECONDS = 228; + */ + public static final int AVERAGE_SESSION_SECONDS_VALUE = 228; + + /** + * + * + *
    +     * The number of bids.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * BIDS = 443; + */ + public static final int BIDS_VALUE = 443; + + /** + * + * + *
    +     * The average CPM of the bids submitted by bidders.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average bid CPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * BID_AVERAGE_CPM = 444; + */ + public static final int BID_AVERAGE_CPM_VALUE = 444; + + /** + * + * + *
    +     * The ratio of (sessions - engaged sessions) / sessions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Bounce rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * BOUNCE_RATE = 433; + */ + public static final int BOUNCE_RATE_VALUE = 433; + + /** + * + * + *
    +     * The number of times a user clicked on an ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * CLICKS = 2; + */ + public static final int CLICKS_VALUE = 2; + + /** + * + * + *
    +     * The total number of times that the code for an ad is served by the ad
    +     *  server including dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total code served count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * CODE_SERVED_COUNT = 44; + */ + public static final int CODE_SERVED_COUNT_VALUE = 44; + + /** + * + * + *
    +     * Total amount of CPC revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "CPC revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * CPC_REVENUE = 440; + */ + public static final int CPC_REVENUE_VALUE = 440; + + /** + * + * + *
    +     * Total amount of CPM revenue.
    +     *
    +     *
    +     *
    +     * Corresponds to "CPM revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * CPM_REVENUE = 441; + */ + public static final int CPM_REVENUE_VALUE = 441; + + /** + * + * + *
    +     * Percent of creatives whose load time is between [0, 500ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 0 - 500ms (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_0_500_PERCENT = 324; + */ + public static final int CREATIVE_LOAD_TIME_0_500_PERCENT_VALUE = 324; + + /** + * + * + *
    +     * Percent of creatives whose load time is between [1000, 2000ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 1s - 2s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_1000_2000_PERCENT = 326; + */ + public static final int CREATIVE_LOAD_TIME_1000_2000_PERCENT_VALUE = 326; + + /** + * + * + *
    +     * Percent of creatives whose load time is between [2000, 4000ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 2s - 4s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_2000_4000_PERCENT = 327; + */ + public static final int CREATIVE_LOAD_TIME_2000_4000_PERCENT_VALUE = 327; + + /** + * + * + *
    +     * Percent of creatives whose load time is between [4000, 8000ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 4s - 8s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_4000_8000_PERCENT = 328; + */ + public static final int CREATIVE_LOAD_TIME_4000_8000_PERCENT_VALUE = 328; + + /** + * + * + *
    +     * Percent of creatives whose load time is between [500, 1000ms).
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time 500ms - 1s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_500_1000_PERCENT = 325; + */ + public static final int CREATIVE_LOAD_TIME_500_1000_PERCENT_VALUE = 325; + + /** + * + * + *
    +     * Percent of creatives load time is greater than 8000ms.
    +     *
    +     *
    +     *
    +     * Corresponds to "Creative load time >8s (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CREATIVE_LOAD_TIME_GT_8000_PERCENT = 329; + */ + public static final int CREATIVE_LOAD_TIME_GT_8000_PERCENT_VALUE = 329; + + /** + * + * + *
    +     * For standard ads, your ad clickthrough rate (CTR) is the number of ad
    +     *  clicks divided by the number of individual ad impressions expressed as a
    +     *  fraction. Ad CTR = Clicks / Ad impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * CTR = 3; + */ + public static final int CTR_VALUE = 3; + + /** + * + * + *
    +     * Number of bids received for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * DEALS_BIDS = 542; + */ + public static final int DEALS_BIDS_VALUE = 542; + + /** + * + * + *
    +     * Bid rate for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals bid rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DEALS_BID_RATE = 543; + */ + public static final int DEALS_BID_RATE_VALUE = 543; + + /** + * + * + *
    +     * Number of bid requests sent for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals bid requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * DEALS_BID_REQUESTS = 544; + */ + public static final int DEALS_BID_REQUESTS_VALUE = 544; + + /** + * + * + *
    +     * Number of winning bids for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals winning bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * DEALS_WINNING_BIDS = 545; + */ + public static final int DEALS_WINNING_BIDS_VALUE = 545; + + /** + * + * + *
    +     * Bid win rate for a deal.
    +     *
    +     *
    +     *
    +     * Corresponds to "Deals win rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DEALS_WIN_RATE = 546; + */ + public static final int DEALS_WIN_RATE_VALUE = 546; + + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [0, 500ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 0 - 500ms (%)"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 521; + */ + public static final int DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT_VALUE = 521; + + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [1000ms, 2000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 1s - 2s (%)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 522; + */ + public static final int DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT_VALUE = 522; + + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [2000ms, 4000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 2s - 4s (%)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 523; + */ + public static final int DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT_VALUE = 523; + + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [4000ms, 8000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 4s - 8s (%)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 524; + */ + public static final int DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT_VALUE = 524; + + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [500ms, 1000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time 500ms - 1s (%)"
    +     * in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 525; + */ + public static final int DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT_VALUE = 525; + + /** + * + * + *
    +     * Percent of dom load time to 1st ad request in [8000ms, +inf) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to first ad request time >8s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 520; + */ + public static final int DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT_VALUE = 520; + + /** + * + * + *
    +     * Percent of dom load time to tag load time in [0, 500ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 0 - 500ms (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT = 526; + */ + public static final int DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT_VALUE = 526; + + /** + * + * + *
    +     * Percent of dom load time to tag load time in [1000ms, 2000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 1s - 2s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT = 527; + */ + public static final int DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT_VALUE = 527; + + /** + * + * + *
    +     * Percent of dom load time to tag load time in [2000ms, 4000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 2s - 4s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT = 528; + */ + public static final int DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT_VALUE = 528; + + /** + * + * + *
    +     * Percent of dom load time to tag load time in [4000ms, 8000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 4s - 8s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT = 529; + */ + public static final int DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT_VALUE = 529; + + /** + * + * + *
    +     * Percent of dom load time to tag load time in [500ms, 1000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time 500ms - 1s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT = 531; + */ + public static final int DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT_VALUE = 531; + + /** + * + * + *
    +     * Percent of dom load time to tag load time in [8000ms, +inf) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Page navigation to tag loaded time >8s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT = 530; + */ + public static final int DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT_VALUE = 530; + + /** + * + * + *
    +     * Percentage of ad responses that didn't result in an impression.
    +     *
    +     *
    +     *
    +     * Corresponds to "Drop-off rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * DROPOFF_RATE = 415; + */ + public static final int DROPOFF_RATE_VALUE = 415; + + /** + * + * + *
    +     * Engaged session count from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Engaged sessions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * ENGAGED_SESSIONS = 229; + */ + public static final int ENGAGED_SESSIONS_VALUE = 229; + + /** + * + * + *
    +     * Engaged sessions per user from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Engaged sessions per user" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * ENGAGED_SESSIONS_PER_USER = 230; + */ + public static final int ENGAGED_SESSIONS_PER_USER_VALUE = 230; + + /** + * + * + *
    +     * The ratio of engaged sessions to sessions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Engagement rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * ENGAGEMENT_RATE = 426; + */ + public static final int ENGAGEMENT_RATE_VALUE = 426; + + /** + * + * + *
    +     * Percentage of European regulations messages where the user consented to
    +     *  all of the purposes and vendors.
    +     *
    +     *
    +     *
    +     * Corresponds to "European regulations consent rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * EUROPEAN_REGULATIONS_CONSENT_RATE = 270; + */ + public static final int EUROPEAN_REGULATIONS_CONSENT_RATE_VALUE = 270; + + /** + * + * + *
    +     * Percentage of European regulations messages where users made a consent
    +     *  choice after selecting "Manage options".
    +     *
    +     *
    +     *
    +     * Corresponds to "European regulations custom consent rate" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE = 271; + */ + public static final int EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE_VALUE = 271; + + /** + * + * + *
    +     * Number of times a European regulations message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "European regulations messages shown" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * EUROPEAN_REGULATIONS_MESSAGES_SHOWN = 272; + */ + public static final int EUROPEAN_REGULATIONS_MESSAGES_SHOWN_VALUE = 272; + + /** + * + * + *
    +     * Percentage of European regulations messages where the user rejected all
    +     *  purposes and vendors.
    +     *
    +     *
    +     *
    +     * Corresponds to "European regulations no consent rate" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * EUROPEAN_REGULATIONS_NO_CONSENT_RATE = 273; + */ + public static final int EUROPEAN_REGULATIONS_NO_CONSENT_RATE_VALUE = 273; + + /** + * + * + *
    +     * The rate at which an ad request is filled by the ad server including
    +     *  dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total fill rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * FILL_RATE = 258; + */ + public static final int FILL_RATE_VALUE = 258; + + /** + * + * + *
    +     * The number of clicks joined with Google Analytics data.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_ANALYTICS_CLICKS = 231; + */ + public static final int GOOGLE_ANALYTICS_CLICKS_VALUE = 231; + + /** + * + * + *
    +     * The click-through rate from Google Analytics data.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics CTR" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * GOOGLE_ANALYTICS_CTR = 232; + */ + public static final int GOOGLE_ANALYTICS_CTR_VALUE = 232; + + /** + * + * + *
    +     * The eCPM revenue data from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics eCPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * GOOGLE_ANALYTICS_ECPM = 233; + */ + public static final int GOOGLE_ANALYTICS_ECPM_VALUE = 233; + + /** + * + * + *
    +     * The number of impressions joined with Google Analytics data.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_ANALYTICS_IMPRESSIONS = 234; + */ + public static final int GOOGLE_ANALYTICS_IMPRESSIONS_VALUE = 234; + + /** + * + * + *
    +     * The amount of revenue joined with Google Analytics data.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google Analytics revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * GOOGLE_ANALYTICS_REVENUE = 235; + */ + public static final int GOOGLE_ANALYTICS_REVENUE_VALUE = 235; + + /** + * + * + *
    +     * Number of views of a web site or mobile screen from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_ANALYTICS_VIEWS = 236; + */ + public static final int GOOGLE_ANALYTICS_VIEWS_VALUE = 236; + + /** + * + * + *
    +     * Number of views per user from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Views per user" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * GOOGLE_ANALYTICS_VIEWS_PER_USER = 237; + */ + public static final int GOOGLE_ANALYTICS_VIEWS_PER_USER_VALUE = 237; + + /** + * + * + *
    +     * The number of coviewed impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold auction impressions (co-viewed)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; + */ + public static final int GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS_VALUE = 129; + + /** + * + * + *
    +     * The number of auction impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold auction impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; + */ + public static final int GOOGLE_SOLD_AUCTION_IMPRESSIONS_VALUE = 128; + + /** + * + * + *
    +     * The number of coviewed impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold impressions (co-viewed)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; + */ + public static final int GOOGLE_SOLD_COVIEWED_IMPRESSIONS_VALUE = 131; + + /** + * + * + *
    +     * The number of impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_IMPRESSIONS = 130; + */ + public static final int GOOGLE_SOLD_IMPRESSIONS_VALUE = 130; + + /** + * + * + *
    +     * The number of coviewed impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold reservation impressions (co-viewed)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; + */ + public static final int GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS_VALUE = 127; + + /** + * + * + *
    +     * The number of reservation impressions sold by Google in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Google-sold reservation impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; + */ + public static final int GOOGLE_SOLD_RESERVATION_IMPRESSIONS_VALUE = 126; + + /** + * + * + *
    +     * Total impressions from the Google Ad Manager server, AdSense,
    +     *  Ad Exchange, and yield group partners.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * IMPRESSIONS = 1; + */ + public static final int IMPRESSIONS_VALUE = 1; + + /** + * + * + *
    +     * The number of impressions (via begin to render methodology) considered
    +     *  inactive, as defined by served to a device receiving ad or bid requests
    +     *  continuously for a session of greater than 16 hours without a "reset"
    +     *  event. Only applied to CTV ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Inactive begin to render impressions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 407; + */ + public static final int INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS_VALUE = 407; + + /** + * + * + *
    +     * The total number of inventory shares
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory shares" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INVENTORY_SHARES = 547; + */ + public static final int INVENTORY_SHARES_VALUE = 547; + + /** + * + * + *
    +     * The total number of partner unfilled opportunities from an inventory
    +     *  share
    +     *
    +     *
    +     *
    +     * Corresponds to "Inventory share partner unfilled opportunities" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES = 548; + */ + public static final int INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES_VALUE = 548; + + /** + * + * + *
    +     * The number of invoiced impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invoiced impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INVOICED_IMPRESSIONS = 404; + */ + public static final int INVOICED_IMPRESSIONS_VALUE = 404; + + /** + * + * + *
    +     * The number of invoiced unfilled impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Invoiced unfilled impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * INVOICED_UNFILLED_IMPRESSIONS = 405; + */ + public static final int INVOICED_UNFILLED_IMPRESSIONS_VALUE = 405; + + /** + * + * + *
    +     * The number of mediation chains that were filled.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mediation chains filled" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MEDIATION_CHAINS_FILLED = 584; + */ + public static final int MEDIATION_CHAINS_FILLED_VALUE = 584; + + /** + * + * + *
    +     * The number of impressions where the user chose to mute the ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total muted impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MUTED_IMPRESSIONS = 412; + */ + public static final int MUTED_IMPRESSIONS_VALUE = 412; + + /** + * + * + *
    +     * The number of impressions that had the "Mute This Ad" overlay applied.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total mute eligible impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * MUTE_ELIGIBLE_IMPRESSIONS = 409; + */ + public static final int MUTE_ELIGIBLE_IMPRESSIONS_VALUE = 409; + + /** + * + * + *
    +     * The total number of opportunities from impressions and errors.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total opportunities" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * OPPORTUNITIES = 463; + */ + public static final int OPPORTUNITIES_VALUE = 463; + + /** + * + * + *
    +     * The number of impressions that were overdelivered.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total overdelivered impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * OVERDELIVERED_IMPRESSIONS = 432; + */ + public static final int OVERDELIVERED_IMPRESSIONS_VALUE = 432; + + /** + * + * + *
    +     * The number of filled pod requests (filled by partner or Google) in
    +     *  partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Filled pod requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SALES_FILLED_POD_REQUESTS = 135; + */ + public static final int PARTNER_SALES_FILLED_POD_REQUESTS_VALUE = 135; + + /** + * + * + *
    +     * The percent of filled requests to total ad requests in
    +     *  partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Fill rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * PARTNER_SALES_FILL_RATE = 136; + */ + public static final int PARTNER_SALES_FILL_RATE_VALUE = 136; + + /** + * + * + *
    +     * The percent of partner filled requests to total ad requests
    +     *  in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner match rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * PARTNER_SALES_PARTNER_MATCH_RATE = 137; + */ + public static final int PARTNER_SALES_PARTNER_MATCH_RATE_VALUE = 137; + + /** + * + * + *
    +     * The number of queries eligible for partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total partner sales ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SALES_QUERIES = 132; + */ + public static final int PARTNER_SALES_QUERIES_VALUE = 132; + + /** + * + * + *
    +     * The number of partner unfilled impressions in partner sales.
    +     *  If a pod request is not filled by partner but filled by Google, this
    +     *  metric will still count 1.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner unfilled impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; + */ + public static final int PARTNER_SALES_UNFILLED_IMPRESSIONS_VALUE = 133; + + /** + * + * + *
    +     * The number of partner unmatched queries in partner sales.
    +     *  If an ad request is not filled by partner but filled by Google, this
    +     *  metric will still count 1.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner unmatched ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SALES_UNMATCHED_QUERIES = 134; + */ + public static final int PARTNER_SALES_UNMATCHED_QUERIES_VALUE = 134; + + /** + * + * + *
    +     * The number of code served sold by partner in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner-sold code served count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SOLD_CODE_SERVED = 125; + */ + public static final int PARTNER_SOLD_CODE_SERVED_VALUE = 125; + + /** + * + * + *
    +     * The number of coviewed impressions sold by partner in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner-sold impressions (co-viewed)" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; + */ + public static final int PARTNER_SOLD_COVIEWED_IMPRESSIONS_VALUE = 124; + + /** + * + * + *
    +     * The number of impressions sold by partner in partner sales.
    +     *
    +     *
    +     *
    +     * Corresponds to "Partner-sold impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PARTNER_SOLD_IMPRESSIONS = 123; + */ + public static final int PARTNER_SOLD_IMPRESSIONS_VALUE = 123; + + /** + * + * + *
    +     * The total number of ad requests eligible for programmatic inventory,
    +     *  including Programmatic Guaranteed, Preferred Deals, backfill, and open
    +     *  auction.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic eligible ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; + */ + public static final int PROGRAMMATIC_ELIGIBLE_AD_REQUESTS_VALUE = 177; + + /** + * + * + *
    +     * The number of programmatic responses served divided by the number of
    +     *  programmatic eligible ad requests. Includes Ad Exchange, Open Bidding,
    +     *  and Preferred Deals.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic match rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * PROGRAMMATIC_MATCH_RATE = 178; + */ + public static final int PROGRAMMATIC_MATCH_RATE_VALUE = 178; + + /** + * + * + *
    +     * Total number of ad responses served from programmatic demand sources.
    +     *  Includes Ad Exchange, Open Bidding, and Preferred Deals.
    +     *
    +     *  Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open
    +     *  Bidding ad requests.
    +     *
    +     *
    +     *
    +     * Corresponds to "Programmatic responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * PROGRAMMATIC_RESPONSES_SERVED = 176; + */ + public static final int PROGRAMMATIC_RESPONSES_SERVED_VALUE = 176; + + /** + * + * + *
    +     * Number of impressions for reach reports.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total reach impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * REACH_IMPRESSIONS = 416; + */ + public static final int REACH_IMPRESSIONS_VALUE = 416; + + /** + * + * + *
    +     * The total number of times that an ad is served by the ad server including
    +     *  dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RESPONSES_SERVED = 39; + */ + public static final int RESPONSES_SERVED_VALUE = 39; + + /** + * + * + *
    +     * Retention of users in Google Analytics
    +     *
    +     *
    +     *
    +     * Corresponds to "Retention" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * RETENTION = 238; + */ + public static final int RETENTION_VALUE = 238; + + /** + * + * + *
    +     * Total amount of CPM, CPC, and CPD revenue based on the number of units
    +     *  served by the Google Ad Manager server, AdSense, Ad Exchange, and
    +     *  third-party Mediation networks.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * REVENUE = 36; + */ + public static final int REVENUE_VALUE = 36; + + /** + * + * + *
    +     * The total revenue accrued in the child network's own account but paid to
    +     *  their parent network through auto-payment. This metric is only relevant
    +     *  for a "Manage Account" child network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total revenue paid through MCM auto-payment" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 214; + */ + public static final int REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT_VALUE = 214; + + /** + * + * + *
    +     * Total amount of revenue (excluding CPD) based on the number of units
    +     *  served by the Google Ad Manager server, AdSense, Ad Exchange, and
    +     *  third-party Mediation networks.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total CPM and CPC revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * REVENUE_WITHOUT_CPD = 4; + */ + public static final int REVENUE_WITHOUT_CPD_VALUE = 4; + + /** + * + * + *
    +     * The number of rewards granted to users from watching ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total rewards granted" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * REWARDS_GRANTED = 413; + */ + public static final int REWARDS_GRANTED_VALUE = 413; + + /** + * + * + *
    +     * The average amount of time (in seconds) that each rich media ad is
    +     *  displayed to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average display time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_AVERAGE_DISPLAY_TIME = 587; + */ + public static final int RICH_MEDIA_AVERAGE_DISPLAY_TIME_VALUE = 587; + + /** + * + * + *
    +     * The average amount of time (in seconds) that a user interacts with a rich
    +     *  media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average interaction time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_AVERAGE_INTERACTION_TIME = 588; + */ + public static final int RICH_MEDIA_AVERAGE_INTERACTION_TIME_VALUE = 588; + + /** + * + * + *
    +     * The total number of times a backup image is served in place of a rich
    +     *  media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Backup image impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_BACKUP_IMAGES = 589; + */ + public static final int RICH_MEDIA_BACKUP_IMAGES_VALUE = 589; + + /** + * + * + *
    +     * The number of times a user interacts with a specific part of a rich media
    +     *  ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event - count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_CUSTOM_EVENT_COUNT = 599; + */ + public static final int RICH_MEDIA_CUSTOM_EVENT_COUNT_VALUE = 599; + + /** + * + * + *
    +     * The amount of time (in seconds) that a user interacts with a specific
    +     *  part of a rich media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Custom event - time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_CUSTOM_EVENT_TIME = 600; + */ + public static final int RICH_MEDIA_CUSTOM_EVENT_TIME_VALUE = 600; + + /** + * + * + *
    +     * The amount of time (in seconds) that each rich media ad is displayed to
    +     *  users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total display time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_DISPLAY_TIME = 590; + */ + public static final int RICH_MEDIA_DISPLAY_TIME_VALUE = 590; + + /** + * + * + *
    +     * The average amount of time (in seconds) that an expanding ad is viewed in
    +     *  an expanded state.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average expanding time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_EXPANDING_TIME = 591; + */ + public static final int RICH_MEDIA_EXPANDING_TIME_VALUE = 591; + + /** + * + * + *
    +     * The number of times an expanding ad was expanded.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total expansions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_EXPANSIONS = 592; + */ + public static final int RICH_MEDIA_EXPANSIONS_VALUE = 592; + + /** + * + * + *
    +     * The number of times a user opens a rich media ad in full screen mode.
    +     *
    +     *
    +     *
    +     * Corresponds to "Full-screen impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_FULL_SCREEN_IMPRESSIONS = 593; + */ + public static final int RICH_MEDIA_FULL_SCREEN_IMPRESSIONS_VALUE = 593; + + /** + * + * + *
    +     * The number of times that a user interacts with a rich media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total interactions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_INTERACTION_COUNT = 594; + */ + public static final int RICH_MEDIA_INTERACTION_COUNT_VALUE = 594; + + /** + * + * + *
    +     * The ratio of rich media ad interactions to the number of times the ad
    +     *  was displayed.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interaction rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * RICH_MEDIA_INTERACTION_RATE = 595; + */ + public static final int RICH_MEDIA_INTERACTION_RATE_VALUE = 595; + + /** + * + * + *
    +     * The total amount of time (in seconds) that a user interacts with a rich
    +     *  media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interaction time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_INTERACTION_TIME = 596; + */ + public static final int RICH_MEDIA_INTERACTION_TIME_VALUE = 596; + + /** + * + * + *
    +     * The number of impressions where a user interacted with a rich media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Interactive impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_INTERACTIVE_IMPRESSIONS = 597; + */ + public static final int RICH_MEDIA_INTERACTIVE_IMPRESSIONS_VALUE = 597; + + /** + * + * + *
    +     * The number of times that a user manually closes a rich media ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Manual closes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_MANUAL_CLOSES = 598; + */ + public static final int RICH_MEDIA_MANUAL_CLOSES_VALUE = 598; + + /** + * + * + *
    +     * The number of times a rich media video was fully played.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video completes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_COMPLETES = 503; + */ + public static final int RICH_MEDIA_VIDEO_COMPLETES_VALUE = 503; + + /** + * + * + *
    +     * The number of times a user clicked on the graphical controls of a video
    +     *  player.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media total video interactions" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_INTERACTIONS = 505; + */ + public static final int RICH_MEDIA_VIDEO_INTERACTIONS_VALUE = 505; + + /** + * + * + *
    +     * The ratio of video interactions to video plays. Represented as a
    +     *  percentage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video interaction rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * RICH_MEDIA_VIDEO_INTERACTION_RATE = 504; + */ + public static final int RICH_MEDIA_VIDEO_INTERACTION_RATE_VALUE = 504; + + /** + * + * + *
    +     * The number of times a rich media video was played up to midpoint.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video midpoints" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_MIDPOINTS = 506; + */ + public static final int RICH_MEDIA_VIDEO_MIDPOINTS_VALUE = 506; + + /** + * + * + *
    +     * The number of times a rich media video was muted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video mutes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_MUTES = 507; + */ + public static final int RICH_MEDIA_VIDEO_MUTES_VALUE = 507; + + /** + * + * + *
    +     * The number of times a rich media video was paused.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video pauses" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_PAUSES = 508; + */ + public static final int RICH_MEDIA_VIDEO_PAUSES_VALUE = 508; + + /** + * + * + *
    +     * The number of times a rich media video was played.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video plays" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_PLAYS = 509; + */ + public static final int RICH_MEDIA_VIDEO_PLAYS_VALUE = 509; + + /** + * + * + *
    +     * The number of times a rich media video was restarted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video replays" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_REPLAYS = 510; + */ + public static final int RICH_MEDIA_VIDEO_REPLAYS_VALUE = 510; + + /** + * + * + *
    +     * The number of times a rich media video was stopped.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video stops" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_STOPS = 511; + */ + public static final int RICH_MEDIA_VIDEO_STOPS_VALUE = 511; + + /** + * + * + *
    +     * The number of times a rich media video was unmuted.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video unmutes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * RICH_MEDIA_VIDEO_UNMUTES = 512; + */ + public static final int RICH_MEDIA_VIDEO_UNMUTES_VALUE = 512; + + /** + * + * + *
    +     * The percentage of a video watched by a user.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video view rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * RICH_MEDIA_VIDEO_VIEW_RATE = 513; + */ + public static final int RICH_MEDIA_VIDEO_VIEW_RATE_VALUE = 513; + + /** + * + * + *
    +     * The average amount of time(seconds) that a rich media video was viewed
    +     *  per view.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rich media video average view time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * RICH_MEDIA_VIDEO_VIEW_TIME = 514; + */ + public static final int RICH_MEDIA_VIDEO_VIEW_TIME_VALUE = 514; + + /** + * + * + *
    +     * The number of forecasted impressions not reserved by any line item.
    +     *
    +     *
    +     *
    +     * Corresponds to "Available impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SELL_THROUGH_AVAILABLE_IMPRESSIONS = 477; + */ + public static final int SELL_THROUGH_AVAILABLE_IMPRESSIONS_VALUE = 477; + + /** + * + * + *
    +     * The total number of forecasted impressions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Forecasted impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SELL_THROUGH_FORECASTED_IMPRESSIONS = 478; + */ + public static final int SELL_THROUGH_FORECASTED_IMPRESSIONS_VALUE = 478; + + /** + * + * + *
    +     * The number of forecasted impressions reserved by line items.
    +     *
    +     *
    +     *
    +     * Corresponds to "Reserved impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SELL_THROUGH_RESERVED_IMPRESSIONS = 479; + */ + public static final int SELL_THROUGH_RESERVED_IMPRESSIONS_VALUE = 479; + + /** + * + * + *
    +     * The fraction of forecasted impressions reserved by line items.
    +     *
    +     *
    +     *
    +     * Corresponds to "Sell-through rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * SELL_THROUGH_SELL_THROUGH_RATE = 480; + */ + public static final int SELL_THROUGH_SELL_THROUGH_RATE_VALUE = 480; + + /** + * + * + *
    +     * The average latency in milliseconds across all server-side unwrapping
    +     *  callout requests. There is no special handling for error or timeout
    +     *  responses. This reflects the entire chain of a parent callout request,
    +     *  which may result in multiple child callouts. This metric is not sliced
    +     *  by child callout dimensions.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping average latency (milliseconds)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; + */ + public static final int SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS_VALUE = 434; + + /** + * + * + *
    +     * The total number of server-side unwrapping callout requests.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping callouts" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; + */ + public static final int SERVER_SIDE_UNWRAPPING_CALLOUTS_VALUE = 435; + + /** + * + * + *
    +     * The total number of server-side unwrapping callouts that returned an
    +     *  empty response. Timeouts are not considered empty responses.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping empty responses" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; + */ + public static final int SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES_VALUE = 436; + + /** + * + * + *
    +     * The total number of server-side unwrapping callouts that returned an
    +     *  error response. Timeouts and empty responses are not considered errors.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping error responses" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; + */ + public static final int SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES_VALUE = 437; + + /** + * + * + *
    +     * The total number of successfully unwrapped, non-empty server-side
    +     *  wrapping callouts. Successful unwrapping does not indicate that the
    +     *  resulting creative was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping successful responses" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; + */ + public static final int SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES_VALUE = 438; + + /** + * + * + *
    +     * The total number of server-side unwrapping callouts that timed out before
    +     *  returning a response.
    +     *
    +     *
    +     *
    +     * Corresponds to "Server-side unwrapping timeouts" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; + */ + public static final int SERVER_SIDE_UNWRAPPING_TIMEOUTS_VALUE = 439; + + /** + * + * + *
    +     * Count of sessions from Google Analytics.
    +     *
    +     *
    +     *
    +     * Corresponds to "Sessions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * SESSIONS = 239; + */ + public static final int SESSIONS_VALUE = 239; + + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [0, 500ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 0 - 500ms (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 455; + */ + public static final int TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT_VALUE = 455; + + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [1000ms, 2000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 1s - 2s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 457; + */ + public static final int TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT_VALUE = 457; + + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [2000ms, 4000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 2s - 4s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 458; + */ + public static final int TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT_VALUE = 458; + + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [4000ms, 8000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 4s - 8s (%)" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 459; + */ + public static final int TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT_VALUE = 459; + + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [500ms, 1000ms) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time 500ms - 1s (%)" in
    +     * the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 456; + */ + public static final int TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT_VALUE = 456; + + /** + * + * + *
    +     * Percent of tag load time to 1st ad request in [8000ms, +inf) range.
    +     *
    +     *
    +     *
    +     * Corresponds to "Tag loaded to first ad request time >8s (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 460; + */ + public static final int TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT_VALUE = 460; + + /** + * + * + *
    +     * The total number of clicks delivered including line item-level dynamic
    +     *  allocation by explicit custom criteria targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total targeted clicks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * TARGETED_CLICKS = 276; + */ + public static final int TARGETED_CLICKS_VALUE = 276; + + /** + * + * + *
    +     * The total number of impressions delivered including line item-level
    +     *  dynamic allocation by explicit custom criteria targeting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total targeted impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * TARGETED_IMPRESSIONS = 277; + */ + public static final int TARGETED_IMPRESSIONS_VALUE = 277; + + /** + * + * + *
    +     * The total number of missed impressions due to the ad servers' inability
    +     *  to find ads to serve including dynamic allocation.
    +     *
    +     *
    +     *
    +     * Corresponds to "Unfilled impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNFILLED_IMPRESSIONS = 45; + */ + public static final int UNFILLED_IMPRESSIONS_VALUE = 45; + + /** + * + * + *
    +     * The total number of unique users who viewed the ad.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unique visitors" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `REACH`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNIQUE_VISITORS = 417; + */ + public static final int UNIQUE_VISITORS_VALUE = 417; + + /** + * + * + *
    +     * The number of impressions impacted by Chrome Ads Intervention due to CPU
    +     *  usage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unloaded impressions due to CPU" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNLOADED_IMPRESSIONS_DUE_TO_CPU = 408; + */ + public static final int UNLOADED_IMPRESSIONS_DUE_TO_CPU_VALUE = 408; + + /** + * + * + *
    +     * The number of impressions impacted by Chrome Ads Intervention due to
    +     *  network usage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unloaded impressions due to Network" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNLOADED_IMPRESSIONS_DUE_TO_NETWORK = 406; + */ + public static final int UNLOADED_IMPRESSIONS_DUE_TO_NETWORK_VALUE = 406; + + /** + * + * + *
    +     * The total number of times that an ad is not returned by the ad server.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unmatched ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * UNMATCHED_AD_REQUESTS = 43; + */ + public static final int UNMATCHED_AD_REQUESTS_VALUE = 43; + + /** + * + * + *
    +     * The percentage of unviewed impressions due to other reasons.
    +     *
    +     *
    +     *
    +     * Corresponds to "Other non-viewable impression reasons (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_OTHER_PERCENT = 550; + */ + public static final int UNVIEWED_REASON_OTHER_PERCENT_VALUE = 550; + + /** + * + * + *
    +     * The percentage of unviewed impressions due to slot never entered
    +     *  viewport.
    +     *
    +     *
    +     *
    +     * Corresponds to "Slot never entered viewport (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT = 553; + */ + public static final int UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT_VALUE = 553; + + /** + * + * + *
    +     * The percentage of unviewed impressions due to scrolled past before ad
    +     *  filled.
    +     *
    +     *
    +     *
    +     * Corresponds to "User scrolled before ad filled (%)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT = 551; + */ + public static final int UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT_VALUE = 551; + + /** + * + * + *
    +     * The percentage of unviewed impressions due to scrolled past before ad
    +     *  loaded.
    +     *
    +     *
    +     *
    +     * Corresponds to "User scrolled/navigated before ad loaded (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT = 552; + */ + public static final int UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT_VALUE = 552; + + /** + * + * + *
    +     * The percentage of unviewed impressions due to insufficient time on
    +     *  screen.
    +     *
    +     *
    +     *
    +     * Corresponds to "User scrolled/navigated before 1 second (%)" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `AD_SPEED`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT = 549; + */ + public static final int UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT_VALUE = 549; + + /** + * + * + *
    +     * Time of users interacting with web site or mobile app from Google
    +     *  Analytics in seconds.
    +     *
    +     *
    +     *
    +     * Corresponds to "User engagement duration (seconds)" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_ENGAGEMENT_DURATION_IN_SECONDS = 240; + */ + public static final int USER_ENGAGEMENT_DURATION_IN_SECONDS_VALUE = 240; + + /** + * + * + *
    +     * Fraction of page views where users had ad blocker extensions installed.
    +     *  Includes only Desktop page views.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad blocking extension rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE = 486; + */ + public static final int USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE_VALUE = 486; + + /** + * + * + *
    +     * Number of ad-blocking messages shown in the selected date range that
    +     *  resulted in users adding the site to their allowlist to view ads
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad blocking recovery message conversions" in the Ad
    +     * Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT = 487; + */ + public static final int USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT_VALUE = 487; + + /** + * + * + *
    +     * Number of times an ad blocking recovery message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ad blocking recovery messages shown" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN = 488; + */ + public static final int USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN_VALUE = 488; + + /** + * + * + *
    +     * The number of page views generated by users with an ad blocking extension
    +     *  installed who were shown the ad blocking recovery message and later
    +     *  allowed ads.
    +     *
    +     *
    +     *
    +     * Corresponds to "Allow-ads page views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_ALLOW_ADS_PAGEVIEWS = 489; + */ + public static final int USER_MESSAGES_ALLOW_ADS_PAGEVIEWS_VALUE = 489; + + /** + * + * + *
    +     * Number of times a US state regulations message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "US states messages shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_CCPA_MESSAGES_SHOWN = 490; + */ + public static final int USER_MESSAGES_CCPA_MESSAGES_SHOWN_VALUE = 490; + + /** + * + * + *
    +     * Number of iOS ATT alerts that were triggered by an IDFA message (IDFA
    +     *  messages can be IDFA explainers or GDPR messages).
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT alerts shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN = 491; + */ + public static final int USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN_VALUE = 491; + + /** + * + * + *
    +     * Number of iOS ATT alerts triggered by the IDFA message where the user
    +     *  chose to allow tracking.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT consent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_CONSENT = 492; + */ + public static final int USER_MESSAGES_IDFA_ATT_CONSENT_VALUE = 492; + + /** + * + * + *
    +     * Percentage of iOS ATT alerts triggered by the IDFA message where the
    +     *  outcome was to allow tracking.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT consent rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_CONSENT_RATE = 493; + */ + public static final int USER_MESSAGES_IDFA_ATT_CONSENT_RATE_VALUE = 493; + + /** + * + * + *
    +     * Number of iOS ATT alerts triggered by the IDFA message where the user
    +     *  chose to deny tracking.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT decline consent" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT = 494; + */ + public static final int USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT_VALUE = 494; + + /** + * + * + *
    +     * Percentage of iOS ATT alerts triggered by the IDFA message where the user
    +     *  chose to deny tracking.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA ATT decline rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * USER_MESSAGES_IDFA_ATT_DECLINE_RATE = 495; + */ + public static final int USER_MESSAGES_IDFA_ATT_DECLINE_RATE_VALUE = 495; + + /** + * + * + *
    +     * Number of times an IDFA explainer message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA explainers shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_EXPLAINERS_SHOWN = 496; + */ + public static final int USER_MESSAGES_IDFA_EXPLAINERS_SHOWN_VALUE = 496; + + /** + * + * + *
    +     * Number of times a European regulations message was shown immediately
    +     *  before the iOS ATT alert.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA IAB messages shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN = 497; + */ + public static final int USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN_VALUE = 497; + + /** + * + * + *
    +     * Number of IDFA explainer messages where the user didn't choose anything.
    +     *
    +     *
    +     *
    +     * Corresponds to "IDFA no decision" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_IDFA_NO_DECISION = 498; + */ + public static final int USER_MESSAGES_IDFA_NO_DECISION_VALUE = 498; + + /** + * + * + *
    +     * Number of times an Offerwall message was shown to users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Offerwall messages shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; + */ + public static final int USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN_VALUE = 121; + + /** + * + * + *
    +     * The number of messages where the user gained an entitlement.
    +     *
    +     *
    +     *
    +     * Corresponds to "Monetized Offerwall engagements" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; + */ + public static final int USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS_VALUE = 122; + + /** + * + * + *
    +     * The number of pages viewed by users after gaining an entitlement. Only
    +     *  counts pages included for Offerwall.
    +     *
    +     *
    +     *
    +     * Corresponds to "Post-offerwall page views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS = 499; + */ + public static final int USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS_VALUE = 499; + + /** + * + * + *
    +     * Revenue earned through Offerwall, including Rewarded ad revenue and
    +     *  third-party integrations.
    +     *
    +     *
    +     *
    +     * Corresponds to "Estimated Offerwall revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * USER_MESSAGES_TOTAL_ESTIMATED_REVENUE = 500; + */ + public static final int USER_MESSAGES_TOTAL_ESTIMATED_REVENUE_VALUE = 500; + + /** + * + * + *
    +     * Number of times an ads personalization controls message was shown to
    +     *  users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Ads personalization messages shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * USER_MESSAGES_UPTC_MESSAGES_SHOWN = 501; + */ + public static final int USER_MESSAGES_UPTC_MESSAGES_SHOWN_VALUE = 501; + + /** + * + * + *
    +     * Percentage of ads personalization controls messages where users chose the
    +     *  opt-out option.
    +     *
    +     *
    +     *
    +     * Corresponds to "Personalization opt-out ratio" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO = 502; + */ + public static final int USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO_VALUE = 502; + + /** + * + * + *
    +     * The number of errors of type 100 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 100 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_100_COUNT = 180; + */ + public static final int VIDEO_ERROR_100_COUNT_VALUE = 180; + + /** + * + * + *
    +     * The number of errors of type 101 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 101 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_101_COUNT = 181; + */ + public static final int VIDEO_ERROR_101_COUNT_VALUE = 181; + + /** + * + * + *
    +     * The number of errors of type 102 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 102 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_102_COUNT = 182; + */ + public static final int VIDEO_ERROR_102_COUNT_VALUE = 182; + + /** + * + * + *
    +     * The number of errors of type 200 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 200 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_200_COUNT = 183; + */ + public static final int VIDEO_ERROR_200_COUNT_VALUE = 183; + + /** + * + * + *
    +     * The number of errors of type 201 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 201 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_201_COUNT = 184; + */ + public static final int VIDEO_ERROR_201_COUNT_VALUE = 184; + + /** + * + * + *
    +     * The number of errors of type 202 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 202 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_202_COUNT = 185; + */ + public static final int VIDEO_ERROR_202_COUNT_VALUE = 185; + + /** + * + * + *
    +     * The number of errors of type 203 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 203 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_203_COUNT = 186; + */ + public static final int VIDEO_ERROR_203_COUNT_VALUE = 186; + + /** + * + * + *
    +     * The number of errors of type 300 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 300 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_300_COUNT = 187; + */ + public static final int VIDEO_ERROR_300_COUNT_VALUE = 187; + + /** + * + * + *
    +     * The number of errors of type 301 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 301 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_301_COUNT = 188; + */ + public static final int VIDEO_ERROR_301_COUNT_VALUE = 188; + + /** + * + * + *
    +     * The number of errors of type 302 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 302 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_302_COUNT = 189; + */ + public static final int VIDEO_ERROR_302_COUNT_VALUE = 189; + + /** + * + * + *
    +     * The number of errors of type 303 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 303 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_303_COUNT = 190; + */ + public static final int VIDEO_ERROR_303_COUNT_VALUE = 190; + + /** + * + * + *
    +     * The number of errors of type 400 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 400 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_400_COUNT = 191; + */ + public static final int VIDEO_ERROR_400_COUNT_VALUE = 191; + + /** + * + * + *
    +     * The number of errors of type 401 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 401 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_401_COUNT = 192; + */ + public static final int VIDEO_ERROR_401_COUNT_VALUE = 192; + + /** + * + * + *
    +     * The number of errors of type 402 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 402 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_402_COUNT = 193; + */ + public static final int VIDEO_ERROR_402_COUNT_VALUE = 193; + + /** + * + * + *
    +     * The number of errors of type 403 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 403 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_403_COUNT = 194; + */ + public static final int VIDEO_ERROR_403_COUNT_VALUE = 194; + + /** + * + * + *
    +     * The number of errors of type 405 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 405 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_405_COUNT = 195; + */ + public static final int VIDEO_ERROR_405_COUNT_VALUE = 195; + + /** + * + * + *
    +     * The number of errors of type 406 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 406 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_406_COUNT = 196; + */ + public static final int VIDEO_ERROR_406_COUNT_VALUE = 196; + + /** + * + * + *
    +     * The number of errors of type 407 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 407 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_407_COUNT = 197; + */ + public static final int VIDEO_ERROR_407_COUNT_VALUE = 197; + + /** + * + * + *
    +     * The number of errors of type 408 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 408 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_408_COUNT = 198; + */ + public static final int VIDEO_ERROR_408_COUNT_VALUE = 198; + + /** + * + * + *
    +     * The number of errors of type 409 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 409 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_409_COUNT = 199; + */ + public static final int VIDEO_ERROR_409_COUNT_VALUE = 199; + + /** + * + * + *
    +     * The number of errors of type 410 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 410 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_410_COUNT = 200; + */ + public static final int VIDEO_ERROR_410_COUNT_VALUE = 200; + + /** + * + * + *
    +     * The number of errors of type 500 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 500 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_500_COUNT = 201; + */ + public static final int VIDEO_ERROR_500_COUNT_VALUE = 201; + + /** + * + * + *
    +     * The number of errors of type 501 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 501 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_501_COUNT = 202; + */ + public static final int VIDEO_ERROR_501_COUNT_VALUE = 202; + + /** + * + * + *
    +     * The number of errors of type 502 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 502 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_502_COUNT = 203; + */ + public static final int VIDEO_ERROR_502_COUNT_VALUE = 203; + + /** + * + * + *
    +     * The number of errors of type 503 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 503 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_503_COUNT = 204; + */ + public static final int VIDEO_ERROR_503_COUNT_VALUE = 204; + + /** + * + * + *
    +     * The number of errors of type 600 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 600 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_600_COUNT = 205; + */ + public static final int VIDEO_ERROR_600_COUNT_VALUE = 205; + + /** + * + * + *
    +     * The number of errors of type 601 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 601 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_601_COUNT = 206; + */ + public static final int VIDEO_ERROR_601_COUNT_VALUE = 206; + + /** + * + * + *
    +     * The number of errors of type 602 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 602 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_602_COUNT = 207; + */ + public static final int VIDEO_ERROR_602_COUNT_VALUE = 207; + + /** + * + * + *
    +     * The number of errors of type 603 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 603 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_603_COUNT = 208; + */ + public static final int VIDEO_ERROR_603_COUNT_VALUE = 208; + + /** + * + * + *
    +     * The number of errors of type 604 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 604 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_604_COUNT = 209; + */ + public static final int VIDEO_ERROR_604_COUNT_VALUE = 209; + + /** + * + * + *
    +     * The number of errors of type 900 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 900 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_900_COUNT = 210; + */ + public static final int VIDEO_ERROR_900_COUNT_VALUE = 210; + + /** + * + * + *
    +     * The number of errors of type 901 in reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 901 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_ERROR_901_COUNT = 211; + */ + public static final int VIDEO_ERROR_901_COUNT_VALUE = 211; + + /** + * + * + *
    +     * The number of user interactions with a video, on average, such as pause,
    +     *  full screen, mute, etc.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average interaction rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; + */ + public static final int VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE_VALUE = 92; + + /** + * + * + *
    +     * The number of times a user collapses a video, either to its original size
    +     *  or to a different size.
    +     *
    +     *
    +     *
    +     * Corresponds to "Collapses" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_COLLAPSES = 93; + */ + public static final int VIDEO_INTERACTION_COLLAPSES_VALUE = 93; + + /** + * + * + *
    +     * The number of times a user expands a video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Expands" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_EXPANDS = 95; + */ + public static final int VIDEO_INTERACTION_EXPANDS_VALUE = 95; + + /** + * + * + *
    +     * The number of times ad clip played in full screen mode.
    +     *
    +     *
    +     *
    +     * Corresponds to "Full screens" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_FULL_SCREENS = 96; + */ + public static final int VIDEO_INTERACTION_FULL_SCREENS_VALUE = 96; + + /** + * + * + *
    +     * The number of times video player was in mute state during play of ad
    +     *  clip.
    +     *
    +     *
    +     *
    +     * Corresponds to "Mutes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_MUTES = 97; + */ + public static final int VIDEO_INTERACTION_MUTES_VALUE = 97; + + /** + * + * + *
    +     * The number of times user paused ad clip.
    +     *
    +     *
    +     *
    +     * Corresponds to "Pauses" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_PAUSES = 98; + */ + public static final int VIDEO_INTERACTION_PAUSES_VALUE = 98; + + /** + * + * + *
    +     * The number of times the user unpaused the video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Resumes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_RESUMES = 99; + */ + public static final int VIDEO_INTERACTION_RESUMES_VALUE = 99; + + /** + * + * + *
    +     * The number of times a user rewinds the video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Rewinds" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_REWINDS = 100; + */ + public static final int VIDEO_INTERACTION_REWINDS_VALUE = 100; + + /** + * + * + *
    +     * The number of times a user unmutes the video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Unmutes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_UNMUTES = 101; + */ + public static final int VIDEO_INTERACTION_UNMUTES_VALUE = 101; + + /** + * + * + *
    +     * The number of times a skippable video is skipped.
    +     *
    +     *
    +     *
    +     * Corresponds to "Skips" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_INTERACTION_VIDEO_SKIPS = 102; + */ + public static final int VIDEO_INTERACTION_VIDEO_SKIPS_VALUE = 102; + + /** + * + * + *
    +     * The number of views for monetizable video content.
    +     *
    +     *
    +     *
    +     * Corresponds to "Monetizable content views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_MONETIZABLE_CONTENT_VIEWS = 601; + */ + public static final int VIDEO_MONETIZABLE_CONTENT_VIEWS_VALUE = 601; + + /** + * + * + *
    +     * The number of total creative serves in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total creative serves" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_CREATIVE_SERVES = 139; + */ + public static final int VIDEO_REAL_TIME_CREATIVE_SERVES_VALUE = 139; + + /** + * + * + *
    +     * The number of errors of type 100 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 100 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_100_COUNT = 143; + */ + public static final int VIDEO_REAL_TIME_ERROR_100_COUNT_VALUE = 143; + + /** + * + * + *
    +     * The number of errors of type 101 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 101 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_101_COUNT = 144; + */ + public static final int VIDEO_REAL_TIME_ERROR_101_COUNT_VALUE = 144; + + /** + * + * + *
    +     * The number of errors of type 102 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 102 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_102_COUNT = 145; + */ + public static final int VIDEO_REAL_TIME_ERROR_102_COUNT_VALUE = 145; + + /** + * + * + *
    +     * The number of errors of type 200 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 200 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_200_COUNT = 146; + */ + public static final int VIDEO_REAL_TIME_ERROR_200_COUNT_VALUE = 146; + + /** + * + * + *
    +     * The number of errors of type 201 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 201 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_201_COUNT = 147; + */ + public static final int VIDEO_REAL_TIME_ERROR_201_COUNT_VALUE = 147; + + /** + * + * + *
    +     * The number of errors of type 202 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 202 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_202_COUNT = 148; + */ + public static final int VIDEO_REAL_TIME_ERROR_202_COUNT_VALUE = 148; + + /** + * + * + *
    +     * The number of errors of type 203 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 203 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_203_COUNT = 149; + */ + public static final int VIDEO_REAL_TIME_ERROR_203_COUNT_VALUE = 149; + + /** + * + * + *
    +     * The number of errors of type 300 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 300 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_300_COUNT = 150; + */ + public static final int VIDEO_REAL_TIME_ERROR_300_COUNT_VALUE = 150; + + /** + * + * + *
    +     * The number of errors of type 301 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 301 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_301_COUNT = 151; + */ + public static final int VIDEO_REAL_TIME_ERROR_301_COUNT_VALUE = 151; + + /** + * + * + *
    +     * The number of errors of type 302 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 302 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_302_COUNT = 152; + */ + public static final int VIDEO_REAL_TIME_ERROR_302_COUNT_VALUE = 152; + + /** + * + * + *
    +     * The number of errors of type 303 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 303 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_303_COUNT = 153; + */ + public static final int VIDEO_REAL_TIME_ERROR_303_COUNT_VALUE = 153; + + /** + * + * + *
    +     * The number of errors of type 400 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 400 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_400_COUNT = 154; + */ + public static final int VIDEO_REAL_TIME_ERROR_400_COUNT_VALUE = 154; + + /** + * + * + *
    +     * The number of errors of type 401 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 401 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_401_COUNT = 155; + */ + public static final int VIDEO_REAL_TIME_ERROR_401_COUNT_VALUE = 155; + + /** + * + * + *
    +     * The number of errors of type 402 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 402 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_402_COUNT = 156; + */ + public static final int VIDEO_REAL_TIME_ERROR_402_COUNT_VALUE = 156; + + /** + * + * + *
    +     * The number of errors of type 403 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 403 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_403_COUNT = 157; + */ + public static final int VIDEO_REAL_TIME_ERROR_403_COUNT_VALUE = 157; + + /** + * + * + *
    +     * The number of errors of type 405 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 405 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_405_COUNT = 158; + */ + public static final int VIDEO_REAL_TIME_ERROR_405_COUNT_VALUE = 158; + + /** + * + * + *
    +     * The number of errors of type 406 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 406 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_406_COUNT = 159; + */ + public static final int VIDEO_REAL_TIME_ERROR_406_COUNT_VALUE = 159; + + /** + * + * + *
    +     * The number of errors of type 407 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 407 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_407_COUNT = 160; + */ + public static final int VIDEO_REAL_TIME_ERROR_407_COUNT_VALUE = 160; + + /** + * + * + *
    +     * The number of errors of type 408 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 408 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_408_COUNT = 161; + */ + public static final int VIDEO_REAL_TIME_ERROR_408_COUNT_VALUE = 161; + + /** + * + * + *
    +     * The number of errors of type 409 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 409 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_409_COUNT = 162; + */ + public static final int VIDEO_REAL_TIME_ERROR_409_COUNT_VALUE = 162; + + /** + * + * + *
    +     * The number of errors of type 410 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 410 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_410_COUNT = 163; + */ + public static final int VIDEO_REAL_TIME_ERROR_410_COUNT_VALUE = 163; + + /** + * + * + *
    +     * The number of errors of type 500 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 500 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_500_COUNT = 164; + */ + public static final int VIDEO_REAL_TIME_ERROR_500_COUNT_VALUE = 164; + + /** + * + * + *
    +     * The number of errors of type 501 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 501 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_501_COUNT = 165; + */ + public static final int VIDEO_REAL_TIME_ERROR_501_COUNT_VALUE = 165; + + /** + * + * + *
    +     * The number of errors of type 502 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 502 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_502_COUNT = 166; + */ + public static final int VIDEO_REAL_TIME_ERROR_502_COUNT_VALUE = 166; + + /** + * + * + *
    +     * The number of errors of type 503 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 503 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_503_COUNT = 167; + */ + public static final int VIDEO_REAL_TIME_ERROR_503_COUNT_VALUE = 167; + + /** + * + * + *
    +     * The number of errors of type 600 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 600 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_600_COUNT = 168; + */ + public static final int VIDEO_REAL_TIME_ERROR_600_COUNT_VALUE = 168; + + /** + * + * + *
    +     * The number of errors of type 601 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 601 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_601_COUNT = 169; + */ + public static final int VIDEO_REAL_TIME_ERROR_601_COUNT_VALUE = 169; + + /** + * + * + *
    +     * The number of errors of type 602 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 602 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_602_COUNT = 170; + */ + public static final int VIDEO_REAL_TIME_ERROR_602_COUNT_VALUE = 170; + + /** + * + * + *
    +     * The number of errors of type 603 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 603 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_603_COUNT = 171; + */ + public static final int VIDEO_REAL_TIME_ERROR_603_COUNT_VALUE = 171; + + /** + * + * + *
    +     * The number of errors of type 604 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 604 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_604_COUNT = 172; + */ + public static final int VIDEO_REAL_TIME_ERROR_604_COUNT_VALUE = 172; + + /** + * + * + *
    +     * The number of errors of type 900 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 900 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_900_COUNT = 173; + */ + public static final int VIDEO_REAL_TIME_ERROR_900_COUNT_VALUE = 173; + + /** + * + * + *
    +     * The number of errors of type 901 in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "VAST error 901 count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_ERROR_901_COUNT = 174; + */ + public static final int VIDEO_REAL_TIME_ERROR_901_COUNT_VALUE = 174; + + /** + * + * + *
    +     * The number of total impressions in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_IMPRESSIONS = 138; + */ + public static final int VIDEO_REAL_TIME_IMPRESSIONS_VALUE = 138; + + /** + * + * + *
    +     * The number of matched queries in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total responses served" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_MATCHED_QUERIES = 140; + */ + public static final int VIDEO_REAL_TIME_MATCHED_QUERIES_VALUE = 140; + + /** + * + * + *
    +     * The number of all errors in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total error count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; + */ + public static final int VIDEO_REAL_TIME_TOTAL_ERROR_COUNT_VALUE = 175; + + /** + * + * + *
    +     * The number of total queries in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_TOTAL_QUERIES = 142; + */ + public static final int VIDEO_REAL_TIME_TOTAL_QUERIES_VALUE = 142; + + /** + * + * + *
    +     * The number of unmatched queries in video realtime reporting.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total unmatched ad requests" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types:
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; + */ + public static final int VIDEO_REAL_TIME_UNMATCHED_QUERIES_VALUE = 141; + + /** + * + * + *
    +     * Number of times that the publisher specified a video ad played
    +     *  automatically.
    +     *
    +     *
    +     *
    +     * Corresponds to "Auto-plays" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; + */ + public static final int VIDEO_VIEWERSHIP_AUTO_PLAYS_VALUE = 103; + + /** + * + * + *
    +     * Average percentage of the video watched by users.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average view rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; + */ + public static final int VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE_VALUE = 104; + + /** + * + * + *
    +     * Average time(seconds) users watched the video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Average view time" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; + */ + public static final int VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME_VALUE = 105; + + /** + * + * + *
    +     * Number of times that the publisher specified a video ad was clicked to
    +     *  play.
    +     *
    +     *
    +     *
    +     * Corresponds to "Click-to-plays" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; + */ + public static final int VIDEO_VIEWERSHIP_CLICK_TO_PLAYS_VALUE = 106; + + /** + * + * + *
    +     * The number of times the video played to completion.
    +     *
    +     *
    +     *
    +     * Corresponds to "Completes" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_COMPLETES = 107; + */ + public static final int VIDEO_VIEWERSHIP_COMPLETES_VALUE = 107; + + /** + * + * + *
    +     * Percentage of times the video played to the end.
    +     *
    +     *
    +     *
    +     * Corresponds to "Completion rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; + */ + public static final int VIDEO_VIEWERSHIP_COMPLETION_RATE_VALUE = 108; + + /** + * + * + *
    +     * The number of engaged views: ad is viewed to completion or for 30s,
    +     *  whichever comes first.
    +     *
    +     *
    +     *
    +     * Corresponds to "Engaged views" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; + */ + public static final int VIDEO_VIEWERSHIP_ENGAGED_VIEWS_VALUE = 109; + + /** + * + * + *
    +     * The number of times the video played to 25% of its length.
    +     *
    +     *
    +     *
    +     * Corresponds to "First quartiles" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; + */ + public static final int VIDEO_VIEWERSHIP_FIRST_QUARTILES_VALUE = 110; + + /** + * + * + *
    +     * The number of times the video reached its midpoint during play.
    +     *
    +     *
    +     *
    +     * Corresponds to "Midpoints" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_MIDPOINTS = 111; + */ + public static final int VIDEO_VIEWERSHIP_MIDPOINTS_VALUE = 111; + + /** + * + * + *
    +     * The number of times a skip button is shown in video.
    +     *
    +     *
    +     *
    +     * Corresponds to "Skip buttons shown" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; + */ + public static final int VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN_VALUE = 112; + + /** + * + * + *
    +     * The number of impressions where the video was played.
    +     *
    +     *
    +     *
    +     * Corresponds to "Starts" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_STARTS = 113; + */ + public static final int VIDEO_VIEWERSHIP_STARTS_VALUE = 113; + + /** + * + * + *
    +     * The number of times the video played to 75% of its length.
    +     *
    +     *
    +     *
    +     * Corresponds to "Third quartiles" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; + */ + public static final int VIDEO_VIEWERSHIP_THIRD_QUARTILES_VALUE = 114; + + /** + * + * + *
    +     * The number of times an error occurred, such as a VAST redirect error, a
    +     *  video playback error, or an invalid response error.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total error count" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; + */ + public static final int VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT_VALUE = 115; + + /** + * + * + *
    +     * The percentage of video error count.
    +     *
    +     *
    +     *
    +     * Corresponds to "Total error rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; + */ + public static final int VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE_VALUE = 94; + + /** + * + * + *
    +     * Duration of the video creative.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video length" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; + */ + public static final int VIDEO_VIEWERSHIP_VIDEO_LENGTH_VALUE = 116; + + /** + * + * + *
    +     * View-through rate represented as a percentage.
    +     *
    +     *
    +     *
    +     * Corresponds to "Video view through rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `PERCENT`
    +     * 
    + * + * VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; + */ + public static final int VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE_VALUE = 117; + + /** + * + * + *
    +     * Number of winning bids received from Open Bidding buyers, even when the
    +     *  winning bid is placed at the end of a mediation for mobile apps chain.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group auctions won" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_AUCTIONS_WON = 80; + */ + public static final int YIELD_GROUP_AUCTIONS_WON_VALUE = 80; + + /** + * + * + *
    +     * Number of bids received from Open Bidding buyers, regardless of whether
    +     *  the returned bid competes in an auction.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group bids" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_BIDS = 81; + */ + public static final int YIELD_GROUP_BIDS_VALUE = 81; + + /** + * + * + *
    +     * Number of bids received from Open Bidding buyers that competed in
    +     *  the auction.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group bids in auction" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_BIDS_IN_AUCTION = 82; + */ + public static final int YIELD_GROUP_BIDS_IN_AUCTION_VALUE = 82; + + /** + * + * + *
    +     * Number of times a yield partner is asked to return bid to fill
    +     *  a yield group request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group callouts" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_CALLOUTS = 83; + */ + public static final int YIELD_GROUP_CALLOUTS_VALUE = 83; + + /** + * + * + *
    +     * The estimated net rate for yield groups or individual
    +     *  yield group partners.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group estimated CPM" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * YIELD_GROUP_ESTIMATED_CPM = 88; + */ + public static final int YIELD_GROUP_ESTIMATED_CPM_VALUE = 88; + + /** + * + * + *
    +     * Total net revenue earned by a yield group, based upon the yield group
    +     *  estimated CPM and yield group impressions recorded.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group estimated revenue" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * YIELD_GROUP_ESTIMATED_REVENUE = 87; + */ + public static final int YIELD_GROUP_ESTIMATED_REVENUE_VALUE = 87; + + /** + * + * + *
    +     * Number of matched yield group requests where a yield partner delivered
    +     *  their ad to publisher inventory.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group impressions" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_IMPRESSIONS = 85; + */ + public static final int YIELD_GROUP_IMPRESSIONS_VALUE = 85; + + /** + * + * + *
    +     * Yield group Mediation fill rate indicating how often a network
    +     *  fills an ad request.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation fill rate" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * YIELD_GROUP_MEDIATION_FILL_RATE = 89; + */ + public static final int YIELD_GROUP_MEDIATION_FILL_RATE_VALUE = 89; + + /** + * + * + *
    +     * Total requests where a Mediation chain was served.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation matched queries" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; + */ + public static final int YIELD_GROUP_MEDIATION_MATCHED_QUERIES_VALUE = 86; + + /** + * + * + *
    +     * The number of mediation chain passback across all channels.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation passbacks" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_MEDIATION_PASSBACKS = 118; + */ + public static final int YIELD_GROUP_MEDIATION_PASSBACKS_VALUE = 118; + + /** + * + * + *
    +     * Revenue per thousand impressions based on data collected by Ad Manager
    +     *  from third-party ad network reports.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group mediation third party ECPM" in the Ad Manager
    +     * UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `DOUBLE`
    +     * 
    + * + * YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; + */ + public static final int YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM_VALUE = 90; + + /** + * + * + *
    +     * The yield group revenue accrued in the child network's own account but
    +     *  paid to their parent network through auto-payment. This metric is only
    +     *  relevant for a "Manage Account" child network.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group revenue paid through MCM auto-payment" in the
    +     * Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `MONEY`
    +     * 
    + * + * YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 215; + */ + public static final int YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT_VALUE = 215; + + /** + * + * + *
    +     * Number of times a yield group buyer successfully returned a bid in
    +     *  response to a yield group callout.
    +     *
    +     *
    +     *
    +     * Corresponds to "Yield group successful responses" in the Ad Manager UI.
    +     *
    +     * Compatible with the following report types: `HISTORICAL`
    +     *
    +     * Data format: `INTEGER`
    +     * 
    + * + * YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; + */ + public static final int YIELD_GROUP_SUCCESSFUL_RESPONSES_VALUE = 84; + + public final int getNumber() { + if (index == -1) { + 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 Metric 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 Metric forNumber(int value) { + switch (value) { + case 0: + return METRIC_UNSPECIFIED; + case 223: + return ACTIVE_USERS; + case 445: + return ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT; + case 659: + return ACTIVE_VIEW_AUDIBLE_IMPRESSIONS; + case 446: + return ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT; + case 447: + return ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT; + case 448: + return ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT; + case 449: + return ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT; + case 660: + return ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS; + case 661: + return ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS; + case 61: + return ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME; + case 58: + return ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS; + case 450: + return ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT; + case 451: + return ACTIVE_VIEW_EVER_AUDIBLE_PERCENT; + case 452: + return ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT; + case 453: + return ACTIVE_VIEW_EVER_MUTED_PERCENT; + case 411: + return ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION; + case 57: + return ACTIVE_VIEW_MEASURABLE_IMPRESSIONS; + case 60: + return ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE; + case 662: + return ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS; + case 663: + return ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS; + case 664: + return ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION; + case 665: + return ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS; + case 454: + return ACTIVE_VIEW_PLUS_MEASURABLE_COUNT; + case 414: + return ACTIVE_VIEW_REVENUE; + case 666: + return ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION; + case 56: + return ACTIVE_VIEW_VIEWABLE_IMPRESSIONS; + case 667: + return ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION; + case 59: + return ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE; + case 73: + return ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME; + case 70: + return ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS; + case 69: + return ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS; + case 72: + return ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE; + case 642: + return ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS; + case 643: + return ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS; + case 644: + return ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION; + case 645: + return ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION; + case 68: + return ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS; + case 646: + return ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION; + case 71: + return ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE; + case 26: + return ADSENSE_AVERAGE_ECPM; + case 23: + return ADSENSE_CLICKS; + case 24: + return ADSENSE_CTR; + case 22: + return ADSENSE_IMPRESSIONS; + case 28: + return ADSENSE_PERCENT_CLICKS; + case 27: + return ADSENSE_PERCENT_IMPRESSIONS; + case 29: + return ADSENSE_PERCENT_REVENUE; + case 30: + return ADSENSE_PERCENT_REVENUE_WITHOUT_CPD; + case 41: + return ADSENSE_RESPONSES_SERVED; + case 25: + return ADSENSE_REVENUE; + case 79: + return AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME; + case 76: + return AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS; + case 75: + return AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS; + case 78: + return AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE; + case 654: + return AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS; + case 655: + return AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS; + case 656: + return AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION; + case 657: + return AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION; + case 74: + return AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS; + case 658: + return AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION; + case 77: + return AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE; + case 18: + return AD_EXCHANGE_AVERAGE_ECPM; + case 15: + return AD_EXCHANGE_CLICKS; + case 244: + return AD_EXCHANGE_CPC; + case 16: + return AD_EXCHANGE_CTR; + case 245: + return AD_EXCHANGE_DELIVERY_RATE; + case 14: + return AD_EXCHANGE_IMPRESSIONS; + case 427: + return AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER; + case 428: + return AD_EXCHANGE_IMPRESSIONS_PER_SESSION; + case 246: + return AD_EXCHANGE_LIFT; + case 247: + return AD_EXCHANGE_MATCHED_REQUEST_CTR; + case 248: + return AD_EXCHANGE_MATCHED_REQUEST_ECPM; + case 249: + return AD_EXCHANGE_MATCH_RATE; + case 250: + return AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS; + case 251: + return AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS; + case 20: + return AD_EXCHANGE_PERCENT_CLICKS; + case 19: + return AD_EXCHANGE_PERCENT_IMPRESSIONS; + case 21: + return AD_EXCHANGE_PERCENT_REVENUE; + case 31: + return AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD; + case 252: + return AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM; + case 253: + return AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS; + case 254: + return AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE; + case 42: + return AD_EXCHANGE_RESPONSES_SERVED; + case 17: + return AD_EXCHANGE_REVENUE; + case 212: + return AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT; + case 429: + return AD_EXCHANGE_REVENUE_PER_AD_VIEWER; + case 255: + return AD_EXCHANGE_TOTAL_REQUESTS; + case 256: + return AD_EXCHANGE_TOTAL_REQUEST_CTR; + case 257: + return AD_EXCHANGE_TOTAL_REQUEST_ECPM; + case 241: + return AD_EXPOSURE_SECONDS; + case 38: + return AD_REQUESTS; + case 67: + return AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME; + case 64: + return AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS; + case 63: + return AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS; + case 66: + return AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE; + case 332: + return AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS; + case 331: + return AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS; + case 334: + return AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION; + case 335: + return AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION; + case 62: + return AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS; + case 333: + return AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION; + case 65: + return AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE; + case 34: + return AD_SERVER_AVERAGE_ECPM; + case 10: + return AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD; + case 262: + return AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS; + case 7: + return AD_SERVER_CLICKS; + case 431: + return AD_SERVER_COMPLETED_VIEWS; + case 554: + return AD_SERVER_COVIEWED_IMPRESSIONS; + case 32: + return AD_SERVER_CPD_REVENUE; + case 8: + return AD_SERVER_CTR; + case 483: + return AD_SERVER_GROSS_REVENUE; + case 484: + return AD_SERVER_GROSS_REVENUE_WITHOUT_CPD; + case 6: + return AD_SERVER_IMPRESSIONS; + case 222: + return AD_SERVER_IMPRESSIONS_WITH_COMPANION; + case 338: + return AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS; + case 12: + return AD_SERVER_PERCENT_CLICKS; + case 11: + return AD_SERVER_PERCENT_IMPRESSIONS; + case 35: + return AD_SERVER_PERCENT_REVENUE; + case 13: + return AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD; + case 40: + return AD_SERVER_RESPONSES_SERVED; + case 33: + return AD_SERVER_REVENUE; + case 213: + return AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT; + case 9: + return AD_SERVER_REVENUE_WITHOUT_CPD; + case 274: + return AD_SERVER_TARGETED_CLICKS; + case 275: + return AD_SERVER_TARGETED_IMPRESSIONS; + case 264: + return AD_SERVER_TRACKED_ADS; + case 261: + return AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS; + case 259: + return AD_SERVER_UNFILTERED_CLICKS; + case 260: + return AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS; + case 263: + return AD_SERVER_UNFILTERED_TRACKED_ADS; + case 242: + return AD_UNIT_EXPOSURE_SECONDS; + case 425: + return AD_VIEWERS; + case 430: + return ATN_ADS_FAILED_TO_RENDER; + case 342: + return ATN_ELIGIBLE_LINE_ITEMS; + case 343: + return ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS; + case 344: + return ATN_HBT_ALLOWED_AD_REQUESTS; + case 345: + return ATN_HBT_BIDS_IN_AUCTION; + case 346: + return ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS; + case 347: + return ATN_HBT_CANDIDATE_BIDS; + case 348: + return ATN_HBT_INVALID_AD_REQUESTS; + case 472: + return ATN_HBT_NO_BIDS_AD_REQUESTS; + case 349: + return ATN_HBT_REJECTED_BIDS; + case 350: + return ATN_HBT_VALID_AD_REQUESTS; + case 473: + return ATN_HBT_WITH_BIDS_AD_REQUESTS; + case 351: + return ATN_INVALID_AD_REQUESTS; + case 476: + return ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED; + case 352: + return ATN_LINE_ITEMS_IN_AUCTION; + case 515: + return ATN_LINE_ITEMS_NOT_COMPETING; + case 353: + return ATN_LINE_ITEMS_NOT_SELECTED; + case 354: + return ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS; + case 355: + return ATN_LINE_ITEM_TARGETED_AD_REQUESTS; + case 356: + return ATN_MEDIATION_ALLOWED_AD_REQUESTS; + case 357: + return ATN_MEDIATION_INVALID_AD_REQUESTS; + case 358: + return ATN_MEDIATION_LOADED_ADS_FROM_CHAINS; + case 474: + return ATN_MEDIATION_NO_PARTNER_AD_REQUESTS; + case 359: + return ATN_MEDIATION_PARTNERS_IN_AUCTION; + case 360: + return ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS; + case 361: + return ATN_MEDIATION_REJECTED_PARTNERS; + case 362: + return ATN_MEDIATION_TARGETED_PARTNERS; + case 442: + return ATN_MEDIATION_TOTAL_YIELD_PARTNERS; + case 363: + return ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS; + case 364: + return ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS; + case 365: + return ATN_MEDIATION_VALID_AD_REQUESTS; + case 475: + return ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS; + case 366: + return ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS; + case 367: + return ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT; + case 368: + return ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS; + case 369: + return ATN_PROGRAMMATIC_BIDS_IN_AUCTION; + case 370: + return ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS; + case 371: + return ATN_PROGRAMMATIC_BID_REQUESTS_SENT; + case 372: + return ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE; + case 373: + return ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES; + case 374: + return ATN_PROGRAMMATIC_BID_REQUEST_ERRORS; + case 375: + return ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS; + case 376: + return ATN_PROGRAMMATIC_REJECTED_BIDS; + case 377: + return ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS; + case 378: + return ATN_PROGRAMMATIC_TOTAL_BIDS; + case 379: + return ATN_PROGRAMMATIC_VALID_AD_REQUESTS; + case 380: + return ATN_REJECTED_LINE_ITEMS; + case 381: + return ATN_SERVED_MEDIATION_CHAINS; + case 382: + return ATN_SERVED_SINGLE_ADS; + case 383: + return ATN_TARGETED_LINE_ITEMS; + case 384: + return ATN_TOTAL_AD_REQUESTS; + case 385: + return ATN_TOTAL_COMPETING_ADS_IN_AUCTION; + case 387: + return ATN_TOTAL_LOADED_ADS; + case 389: + return ATN_VALID_AD_REQUESTS; + case 390: + return ATN_YIELD_GROUP_MEDIATION_PASSBACKS; + case 37: + return AVERAGE_ECPM; + case 5: + return AVERAGE_ECPM_WITHOUT_CPD; + case 224: + return AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION; + case 225: + return AVERAGE_ENGAGEMENT_SECONDS_PER_USER; + case 418: + return AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR; + case 226: + return AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER; + case 227: + return AVERAGE_REVENUE_PER_USER; + case 228: + return AVERAGE_SESSION_SECONDS; + case 443: + return BIDS; + case 444: + return BID_AVERAGE_CPM; + case 433: + return BOUNCE_RATE; + case 2: + return CLICKS; + case 44: + return CODE_SERVED_COUNT; + case 440: + return CPC_REVENUE; + case 441: + return CPM_REVENUE; + case 324: + return CREATIVE_LOAD_TIME_0_500_PERCENT; + case 326: + return CREATIVE_LOAD_TIME_1000_2000_PERCENT; + case 327: + return CREATIVE_LOAD_TIME_2000_4000_PERCENT; + case 328: + return CREATIVE_LOAD_TIME_4000_8000_PERCENT; + case 325: + return CREATIVE_LOAD_TIME_500_1000_PERCENT; + case 329: + return CREATIVE_LOAD_TIME_GT_8000_PERCENT; + case 3: + return CTR; + case 542: + return DEALS_BIDS; + case 543: + return DEALS_BID_RATE; + case 544: + return DEALS_BID_REQUESTS; + case 545: + return DEALS_WINNING_BIDS; + case 546: + return DEALS_WIN_RATE; + case 521: + return DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT; + case 522: + return DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT; + case 523: + return DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT; + case 524: + return DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT; + case 525: + return DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT; + case 520: + return DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT; + case 526: + return DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT; + case 527: + return DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT; + case 528: + return DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT; + case 529: + return DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT; + case 531: + return DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT; + case 530: + return DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT; + case 415: + return DROPOFF_RATE; + case 229: + return ENGAGED_SESSIONS; + case 230: + return ENGAGED_SESSIONS_PER_USER; + case 426: + return ENGAGEMENT_RATE; + case 270: + return EUROPEAN_REGULATIONS_CONSENT_RATE; + case 271: + return EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE; + case 272: + return EUROPEAN_REGULATIONS_MESSAGES_SHOWN; + case 273: + return EUROPEAN_REGULATIONS_NO_CONSENT_RATE; + case 258: + return FILL_RATE; + case 231: + return GOOGLE_ANALYTICS_CLICKS; + case 232: + return GOOGLE_ANALYTICS_CTR; + case 233: + return GOOGLE_ANALYTICS_ECPM; + case 234: + return GOOGLE_ANALYTICS_IMPRESSIONS; + case 235: + return GOOGLE_ANALYTICS_REVENUE; + case 236: + return GOOGLE_ANALYTICS_VIEWS; + case 237: + return GOOGLE_ANALYTICS_VIEWS_PER_USER; + case 129: + return GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS; + case 128: + return GOOGLE_SOLD_AUCTION_IMPRESSIONS; + case 131: + return GOOGLE_SOLD_COVIEWED_IMPRESSIONS; + case 130: + return GOOGLE_SOLD_IMPRESSIONS; + case 127: + return GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS; + case 126: + return GOOGLE_SOLD_RESERVATION_IMPRESSIONS; + case 1: + return IMPRESSIONS; + case 407: + return INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS; + case 547: + return INVENTORY_SHARES; + case 548: + return INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES; + case 404: + return INVOICED_IMPRESSIONS; + case 405: + return INVOICED_UNFILLED_IMPRESSIONS; + case 584: + return MEDIATION_CHAINS_FILLED; + case 412: + return MUTED_IMPRESSIONS; + case 409: + return MUTE_ELIGIBLE_IMPRESSIONS; + case 463: + return OPPORTUNITIES; + case 432: + return OVERDELIVERED_IMPRESSIONS; + case 135: + return PARTNER_SALES_FILLED_POD_REQUESTS; + case 136: + return PARTNER_SALES_FILL_RATE; + case 137: + return PARTNER_SALES_PARTNER_MATCH_RATE; + case 132: + return PARTNER_SALES_QUERIES; + case 133: + return PARTNER_SALES_UNFILLED_IMPRESSIONS; + case 134: + return PARTNER_SALES_UNMATCHED_QUERIES; + case 125: + return PARTNER_SOLD_CODE_SERVED; + case 124: + return PARTNER_SOLD_COVIEWED_IMPRESSIONS; + case 123: + return PARTNER_SOLD_IMPRESSIONS; + case 177: + return PROGRAMMATIC_ELIGIBLE_AD_REQUESTS; + case 178: + return PROGRAMMATIC_MATCH_RATE; + case 176: + return PROGRAMMATIC_RESPONSES_SERVED; + case 416: + return REACH_IMPRESSIONS; + case 39: + return RESPONSES_SERVED; + case 238: + return RETENTION; + case 36: + return REVENUE; + case 214: + return REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT; + case 4: + return REVENUE_WITHOUT_CPD; + case 413: + return REWARDS_GRANTED; + case 587: + return RICH_MEDIA_AVERAGE_DISPLAY_TIME; + case 588: + return RICH_MEDIA_AVERAGE_INTERACTION_TIME; + case 589: + return RICH_MEDIA_BACKUP_IMAGES; + case 599: + return RICH_MEDIA_CUSTOM_EVENT_COUNT; + case 600: + return RICH_MEDIA_CUSTOM_EVENT_TIME; + case 590: + return RICH_MEDIA_DISPLAY_TIME; + case 591: + return RICH_MEDIA_EXPANDING_TIME; + case 592: + return RICH_MEDIA_EXPANSIONS; + case 593: + return RICH_MEDIA_FULL_SCREEN_IMPRESSIONS; + case 594: + return RICH_MEDIA_INTERACTION_COUNT; + case 595: + return RICH_MEDIA_INTERACTION_RATE; + case 596: + return RICH_MEDIA_INTERACTION_TIME; + case 597: + return RICH_MEDIA_INTERACTIVE_IMPRESSIONS; + case 598: + return RICH_MEDIA_MANUAL_CLOSES; + case 503: + return RICH_MEDIA_VIDEO_COMPLETES; + case 505: + return RICH_MEDIA_VIDEO_INTERACTIONS; + case 504: + return RICH_MEDIA_VIDEO_INTERACTION_RATE; + case 506: + return RICH_MEDIA_VIDEO_MIDPOINTS; + case 507: + return RICH_MEDIA_VIDEO_MUTES; + case 508: + return RICH_MEDIA_VIDEO_PAUSES; + case 509: + return RICH_MEDIA_VIDEO_PLAYS; + case 510: + return RICH_MEDIA_VIDEO_REPLAYS; + case 511: + return RICH_MEDIA_VIDEO_STOPS; + case 512: + return RICH_MEDIA_VIDEO_UNMUTES; + case 513: + return RICH_MEDIA_VIDEO_VIEW_RATE; + case 514: + return RICH_MEDIA_VIDEO_VIEW_TIME; + case 477: + return SELL_THROUGH_AVAILABLE_IMPRESSIONS; + case 478: + return SELL_THROUGH_FORECASTED_IMPRESSIONS; + case 479: + return SELL_THROUGH_RESERVED_IMPRESSIONS; + case 480: + return SELL_THROUGH_SELL_THROUGH_RATE; + case 434: + return SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS; + case 435: + return SERVER_SIDE_UNWRAPPING_CALLOUTS; + case 436: + return SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES; + case 437: + return SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES; + case 438: + return SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES; + case 439: + return SERVER_SIDE_UNWRAPPING_TIMEOUTS; + case 239: + return SESSIONS; + case 455: + return TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT; + case 457: + return TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT; + case 458: + return TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT; + case 459: + return TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT; + case 456: + return TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT; + case 460: + return TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT; + case 276: + return TARGETED_CLICKS; + case 277: + return TARGETED_IMPRESSIONS; + case 45: + return UNFILLED_IMPRESSIONS; + case 417: + return UNIQUE_VISITORS; + case 408: + return UNLOADED_IMPRESSIONS_DUE_TO_CPU; + case 406: + return UNLOADED_IMPRESSIONS_DUE_TO_NETWORK; + case 43: + return UNMATCHED_AD_REQUESTS; + case 550: + return UNVIEWED_REASON_OTHER_PERCENT; + case 553: + return UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT; + case 551: + return UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT; + case 552: + return UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT; + case 549: + return UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT; + case 240: + return USER_ENGAGEMENT_DURATION_IN_SECONDS; + case 486: + return USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE; + case 487: + return USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT; + case 488: + return USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN; + case 489: + return USER_MESSAGES_ALLOW_ADS_PAGEVIEWS; + case 490: + return USER_MESSAGES_CCPA_MESSAGES_SHOWN; + case 491: + return USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN; + case 492: + return USER_MESSAGES_IDFA_ATT_CONSENT; + case 493: + return USER_MESSAGES_IDFA_ATT_CONSENT_RATE; + case 494: + return USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT; + case 495: + return USER_MESSAGES_IDFA_ATT_DECLINE_RATE; + case 496: + return USER_MESSAGES_IDFA_EXPLAINERS_SHOWN; + case 497: + return USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN; + case 498: + return USER_MESSAGES_IDFA_NO_DECISION; + case 121: + return USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN; + case 122: + return USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS; + case 499: + return USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS; + case 500: + return USER_MESSAGES_TOTAL_ESTIMATED_REVENUE; + case 501: + return USER_MESSAGES_UPTC_MESSAGES_SHOWN; + case 502: + return USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO; + case 180: + return VIDEO_ERROR_100_COUNT; + case 181: + return VIDEO_ERROR_101_COUNT; + case 182: + return VIDEO_ERROR_102_COUNT; + case 183: + return VIDEO_ERROR_200_COUNT; + case 184: + return VIDEO_ERROR_201_COUNT; + case 185: + return VIDEO_ERROR_202_COUNT; + case 186: + return VIDEO_ERROR_203_COUNT; + case 187: + return VIDEO_ERROR_300_COUNT; + case 188: + return VIDEO_ERROR_301_COUNT; + case 189: + return VIDEO_ERROR_302_COUNT; + case 190: + return VIDEO_ERROR_303_COUNT; + case 191: + return VIDEO_ERROR_400_COUNT; + case 192: + return VIDEO_ERROR_401_COUNT; + case 193: + return VIDEO_ERROR_402_COUNT; + case 194: + return VIDEO_ERROR_403_COUNT; + case 195: + return VIDEO_ERROR_405_COUNT; + case 196: + return VIDEO_ERROR_406_COUNT; + case 197: + return VIDEO_ERROR_407_COUNT; + case 198: + return VIDEO_ERROR_408_COUNT; + case 199: + return VIDEO_ERROR_409_COUNT; + case 200: + return VIDEO_ERROR_410_COUNT; + case 201: + return VIDEO_ERROR_500_COUNT; + case 202: + return VIDEO_ERROR_501_COUNT; + case 203: + return VIDEO_ERROR_502_COUNT; + case 204: + return VIDEO_ERROR_503_COUNT; + case 205: + return VIDEO_ERROR_600_COUNT; + case 206: + return VIDEO_ERROR_601_COUNT; + case 207: + return VIDEO_ERROR_602_COUNT; + case 208: + return VIDEO_ERROR_603_COUNT; + case 209: + return VIDEO_ERROR_604_COUNT; + case 210: + return VIDEO_ERROR_900_COUNT; + case 211: + return VIDEO_ERROR_901_COUNT; + case 92: + return VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE; + case 93: + return VIDEO_INTERACTION_COLLAPSES; + case 95: + return VIDEO_INTERACTION_EXPANDS; + case 96: + return VIDEO_INTERACTION_FULL_SCREENS; + case 97: + return VIDEO_INTERACTION_MUTES; + case 98: + return VIDEO_INTERACTION_PAUSES; + case 99: + return VIDEO_INTERACTION_RESUMES; + case 100: + return VIDEO_INTERACTION_REWINDS; + case 101: + return VIDEO_INTERACTION_UNMUTES; + case 102: + return VIDEO_INTERACTION_VIDEO_SKIPS; + case 601: + return VIDEO_MONETIZABLE_CONTENT_VIEWS; + case 139: + return VIDEO_REAL_TIME_CREATIVE_SERVES; + case 143: + return VIDEO_REAL_TIME_ERROR_100_COUNT; + case 144: + return VIDEO_REAL_TIME_ERROR_101_COUNT; + case 145: + return VIDEO_REAL_TIME_ERROR_102_COUNT; + case 146: + return VIDEO_REAL_TIME_ERROR_200_COUNT; + case 147: + return VIDEO_REAL_TIME_ERROR_201_COUNT; + case 148: + return VIDEO_REAL_TIME_ERROR_202_COUNT; + case 149: + return VIDEO_REAL_TIME_ERROR_203_COUNT; + case 150: + return VIDEO_REAL_TIME_ERROR_300_COUNT; + case 151: + return VIDEO_REAL_TIME_ERROR_301_COUNT; + case 152: + return VIDEO_REAL_TIME_ERROR_302_COUNT; + case 153: + return VIDEO_REAL_TIME_ERROR_303_COUNT; + case 154: + return VIDEO_REAL_TIME_ERROR_400_COUNT; + case 155: + return VIDEO_REAL_TIME_ERROR_401_COUNT; + case 156: + return VIDEO_REAL_TIME_ERROR_402_COUNT; + case 157: + return VIDEO_REAL_TIME_ERROR_403_COUNT; + case 158: + return VIDEO_REAL_TIME_ERROR_405_COUNT; + case 159: + return VIDEO_REAL_TIME_ERROR_406_COUNT; + case 160: + return VIDEO_REAL_TIME_ERROR_407_COUNT; + case 161: + return VIDEO_REAL_TIME_ERROR_408_COUNT; + case 162: + return VIDEO_REAL_TIME_ERROR_409_COUNT; + case 163: + return VIDEO_REAL_TIME_ERROR_410_COUNT; + case 164: + return VIDEO_REAL_TIME_ERROR_500_COUNT; + case 165: + return VIDEO_REAL_TIME_ERROR_501_COUNT; + case 166: + return VIDEO_REAL_TIME_ERROR_502_COUNT; + case 167: + return VIDEO_REAL_TIME_ERROR_503_COUNT; + case 168: + return VIDEO_REAL_TIME_ERROR_600_COUNT; + case 169: + return VIDEO_REAL_TIME_ERROR_601_COUNT; + case 170: + return VIDEO_REAL_TIME_ERROR_602_COUNT; + case 171: + return VIDEO_REAL_TIME_ERROR_603_COUNT; + case 172: + return VIDEO_REAL_TIME_ERROR_604_COUNT; + case 173: + return VIDEO_REAL_TIME_ERROR_900_COUNT; + case 174: + return VIDEO_REAL_TIME_ERROR_901_COUNT; + case 138: + return VIDEO_REAL_TIME_IMPRESSIONS; + case 140: + return VIDEO_REAL_TIME_MATCHED_QUERIES; + case 175: + return VIDEO_REAL_TIME_TOTAL_ERROR_COUNT; + case 142: + return VIDEO_REAL_TIME_TOTAL_QUERIES; + case 141: + return VIDEO_REAL_TIME_UNMATCHED_QUERIES; + case 103: + return VIDEO_VIEWERSHIP_AUTO_PLAYS; + case 104: + return VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE; + case 105: + return VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME; + case 106: + return VIDEO_VIEWERSHIP_CLICK_TO_PLAYS; + case 107: + return VIDEO_VIEWERSHIP_COMPLETES; + case 108: + return VIDEO_VIEWERSHIP_COMPLETION_RATE; + case 109: + return VIDEO_VIEWERSHIP_ENGAGED_VIEWS; + case 110: + return VIDEO_VIEWERSHIP_FIRST_QUARTILES; + case 111: + return VIDEO_VIEWERSHIP_MIDPOINTS; + case 112: + return VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN; + case 113: + return VIDEO_VIEWERSHIP_STARTS; + case 114: + return VIDEO_VIEWERSHIP_THIRD_QUARTILES; + case 115: + return VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT; + case 94: + return VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE; + case 116: + return VIDEO_VIEWERSHIP_VIDEO_LENGTH; + case 117: + return VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE; + case 80: + return YIELD_GROUP_AUCTIONS_WON; + case 81: + return YIELD_GROUP_BIDS; + case 82: + return YIELD_GROUP_BIDS_IN_AUCTION; + case 83: + return YIELD_GROUP_CALLOUTS; + case 88: + return YIELD_GROUP_ESTIMATED_CPM; + case 87: + return YIELD_GROUP_ESTIMATED_REVENUE; + case 85: + return YIELD_GROUP_IMPRESSIONS; + case 89: + return YIELD_GROUP_MEDIATION_FILL_RATE; + case 86: + return YIELD_GROUP_MEDIATION_MATCHED_QUERIES; + case 118: + return YIELD_GROUP_MEDIATION_PASSBACKS; + case 90: + return YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM; + case 215: + return YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT; + case 84: + return YIELD_GROUP_SUCCESSFUL_RESPONSES; + 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 Metric findValueByNumber(int number) { + return Metric.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (index == -1) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(index); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinition.getDescriptor().getEnumTypes().get(2); + } + + private static final Metric[] VALUES = getStaticValuesArray(); + + private static Metric[] getStaticValuesArray() { + return new Metric[] { + METRIC_UNSPECIFIED, + ACTIVE_USERS, + ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT, + ACTIVE_VIEW_AUDIBLE_IMPRESSIONS, + ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT, + ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT, + ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT, + ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT, + ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS, + ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS, + ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME, + ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS, + ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT, + ACTIVE_VIEW_EVER_AUDIBLE_PERCENT, + ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT, + ACTIVE_VIEW_EVER_MUTED_PERCENT, + ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION, + ACTIVE_VIEW_MEASURABLE_IMPRESSIONS, + ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE, + ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS, + ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS, + ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION, + ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS, + ACTIVE_VIEW_PLUS_MEASURABLE_COUNT, + ACTIVE_VIEW_REVENUE, + ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION, + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS, + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION, + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE, + ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME, + ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS, + ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS, + ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE, + ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS, + ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS, + ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION, + ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION, + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS, + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION, + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE, + ADSENSE_AVERAGE_ECPM, + ADSENSE_CLICKS, + ADSENSE_CTR, + ADSENSE_IMPRESSIONS, + ADSENSE_PERCENT_CLICKS, + ADSENSE_PERCENT_IMPRESSIONS, + ADSENSE_PERCENT_REVENUE, + ADSENSE_PERCENT_REVENUE_WITHOUT_CPD, + ADSENSE_RESPONSES_SERVED, + ADSENSE_REVENUE, + AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME, + AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS, + AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS, + AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE, + AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS, + AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS, + AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION, + AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION, + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS, + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION, + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE, + AD_EXCHANGE_AVERAGE_ECPM, + AD_EXCHANGE_CLICKS, + AD_EXCHANGE_CPC, + AD_EXCHANGE_CTR, + AD_EXCHANGE_DELIVERY_RATE, + AD_EXCHANGE_IMPRESSIONS, + AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER, + AD_EXCHANGE_IMPRESSIONS_PER_SESSION, + AD_EXCHANGE_LIFT, + AD_EXCHANGE_MATCHED_REQUEST_CTR, + AD_EXCHANGE_MATCHED_REQUEST_ECPM, + AD_EXCHANGE_MATCH_RATE, + AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS, + AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS, + AD_EXCHANGE_PERCENT_CLICKS, + AD_EXCHANGE_PERCENT_IMPRESSIONS, + AD_EXCHANGE_PERCENT_REVENUE, + AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD, + AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM, + AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS, + AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE, + AD_EXCHANGE_RESPONSES_SERVED, + AD_EXCHANGE_REVENUE, + AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT, + AD_EXCHANGE_REVENUE_PER_AD_VIEWER, + AD_EXCHANGE_TOTAL_REQUESTS, + AD_EXCHANGE_TOTAL_REQUEST_CTR, + AD_EXCHANGE_TOTAL_REQUEST_ECPM, + AD_EXPOSURE_SECONDS, + AD_REQUESTS, + AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME, + AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS, + AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS, + AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE, + AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS, + AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS, + AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION, + AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION, + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS, + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION, + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE, + AD_SERVER_AVERAGE_ECPM, + AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD, + AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS, + AD_SERVER_CLICKS, + AD_SERVER_COMPLETED_VIEWS, + AD_SERVER_COVIEWED_IMPRESSIONS, + AD_SERVER_CPD_REVENUE, + AD_SERVER_CTR, + AD_SERVER_GROSS_REVENUE, + AD_SERVER_GROSS_REVENUE_WITHOUT_CPD, + AD_SERVER_IMPRESSIONS, + AD_SERVER_IMPRESSIONS_WITH_COMPANION, + AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS, + AD_SERVER_PERCENT_CLICKS, + AD_SERVER_PERCENT_IMPRESSIONS, + AD_SERVER_PERCENT_REVENUE, + AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD, + AD_SERVER_RESPONSES_SERVED, + AD_SERVER_REVENUE, + AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT, + AD_SERVER_REVENUE_WITHOUT_CPD, + AD_SERVER_TARGETED_CLICKS, + AD_SERVER_TARGETED_IMPRESSIONS, + AD_SERVER_TRACKED_ADS, + AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS, + AD_SERVER_UNFILTERED_CLICKS, + AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS, + AD_SERVER_UNFILTERED_IMPRESSIONS, + AD_SERVER_UNFILTERED_TRACKED_ADS, + AD_UNIT_EXPOSURE_SECONDS, + AD_VIEWERS, + ATN_ADS_FAILED_TO_RENDER, + ATN_ELIGIBLE_LINE_ITEMS, + ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS, + ATN_HBT_ALLOWED_AD_REQUESTS, + ATN_HBT_BIDS_IN_AUCTION, + ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS, + ATN_HBT_CANDIDATE_BIDS, + ATN_HBT_INVALID_AD_REQUESTS, + ATN_HBT_NO_BIDS_AD_REQUESTS, + ATN_HBT_REJECTED_BIDS, + ATN_HBT_VALID_AD_REQUESTS, + ATN_HBT_WITH_BIDS_AD_REQUESTS, + ATN_INVALID_AD_REQUESTS, + ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED, + ATN_LINE_ITEMS_IN_AUCTION, + ATN_LINE_ITEMS_NOT_COMPETING, + ATN_LINE_ITEMS_NOT_SELECTED, + ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS, + ATN_LINE_ITEM_TARGETED_AD_REQUESTS, + ATN_MEDIATION_ALLOWED_AD_REQUESTS, + ATN_MEDIATION_INVALID_AD_REQUESTS, + ATN_MEDIATION_LOADED_ADS_FROM_CHAINS, + ATN_MEDIATION_NO_PARTNER_AD_REQUESTS, + ATN_MEDIATION_PARTNERS_IN_AUCTION, + ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS, + ATN_MEDIATION_REJECTED_PARTNERS, + ATN_MEDIATION_TARGETED_PARTNERS, + ATN_MEDIATION_TOTAL_YIELD_PARTNERS, + ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS, + ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS, + ATN_MEDIATION_VALID_AD_REQUESTS, + ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS, + ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS, + ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT, + ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS, + ATN_PROGRAMMATIC_BIDS_IN_AUCTION, + ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS, + ATN_PROGRAMMATIC_BID_REQUESTS_SENT, + ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE, + ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES, + ATN_PROGRAMMATIC_BID_REQUEST_ERRORS, + ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS, + ATN_PROGRAMMATIC_REJECTED_BIDS, + ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS, + ATN_PROGRAMMATIC_TOTAL_BIDS, + ATN_PROGRAMMATIC_VALID_AD_REQUESTS, + ATN_REJECTED_LINE_ITEMS, + ATN_SERVED_MEDIATION_CHAINS, + ATN_SERVED_SINGLE_ADS, + ATN_TARGETED_LINE_ITEMS, + ATN_TOTAL_AD_REQUESTS, + ATN_TOTAL_COMPETING_ADS_IN_AUCTION, + ATN_TOTAL_LOADED_ADS, + ATN_VALID_AD_REQUESTS, + ATN_YIELD_GROUP_MEDIATION_PASSBACKS, + AVERAGE_ECPM, + AVERAGE_ECPM_WITHOUT_CPD, + AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION, + AVERAGE_ENGAGEMENT_SECONDS_PER_USER, + AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR, + AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER, + AVERAGE_REVENUE_PER_USER, + AVERAGE_SESSION_SECONDS, + BIDS, + BID_AVERAGE_CPM, + BOUNCE_RATE, + CLICKS, + CODE_SERVED_COUNT, + CPC_REVENUE, + CPM_REVENUE, + CREATIVE_LOAD_TIME_0_500_PERCENT, + CREATIVE_LOAD_TIME_1000_2000_PERCENT, + CREATIVE_LOAD_TIME_2000_4000_PERCENT, + CREATIVE_LOAD_TIME_4000_8000_PERCENT, + CREATIVE_LOAD_TIME_500_1000_PERCENT, + CREATIVE_LOAD_TIME_GT_8000_PERCENT, + CTR, + DEALS_BIDS, + DEALS_BID_RATE, + DEALS_BID_REQUESTS, + DEALS_WINNING_BIDS, + DEALS_WIN_RATE, + DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT, + DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT, + DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT, + DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT, + DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT, + DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT, + DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT, + DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT, + DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT, + DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT, + DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT, + DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT, + DROPOFF_RATE, + ENGAGED_SESSIONS, + ENGAGED_SESSIONS_PER_USER, + ENGAGEMENT_RATE, + EUROPEAN_REGULATIONS_CONSENT_RATE, + EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE, + EUROPEAN_REGULATIONS_MESSAGES_SHOWN, + EUROPEAN_REGULATIONS_NO_CONSENT_RATE, + FILL_RATE, + GOOGLE_ANALYTICS_CLICKS, + GOOGLE_ANALYTICS_CTR, + GOOGLE_ANALYTICS_ECPM, + GOOGLE_ANALYTICS_IMPRESSIONS, + GOOGLE_ANALYTICS_REVENUE, + GOOGLE_ANALYTICS_VIEWS, + GOOGLE_ANALYTICS_VIEWS_PER_USER, + GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS, + GOOGLE_SOLD_AUCTION_IMPRESSIONS, + GOOGLE_SOLD_COVIEWED_IMPRESSIONS, + GOOGLE_SOLD_IMPRESSIONS, + GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS, + GOOGLE_SOLD_RESERVATION_IMPRESSIONS, + IMPRESSIONS, + INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS, + INVENTORY_SHARES, + INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES, + INVOICED_IMPRESSIONS, + INVOICED_UNFILLED_IMPRESSIONS, + MEDIATION_CHAINS_FILLED, + MUTED_IMPRESSIONS, + MUTE_ELIGIBLE_IMPRESSIONS, + OPPORTUNITIES, + OVERDELIVERED_IMPRESSIONS, + PARTNER_SALES_FILLED_POD_REQUESTS, + PARTNER_SALES_FILL_RATE, + PARTNER_SALES_PARTNER_MATCH_RATE, + PARTNER_SALES_QUERIES, + PARTNER_SALES_UNFILLED_IMPRESSIONS, + PARTNER_SALES_UNMATCHED_QUERIES, + PARTNER_SOLD_CODE_SERVED, + PARTNER_SOLD_COVIEWED_IMPRESSIONS, + PARTNER_SOLD_IMPRESSIONS, + PROGRAMMATIC_ELIGIBLE_AD_REQUESTS, + PROGRAMMATIC_MATCH_RATE, + PROGRAMMATIC_RESPONSES_SERVED, + REACH_IMPRESSIONS, + RESPONSES_SERVED, + RETENTION, + REVENUE, + REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT, + REVENUE_WITHOUT_CPD, + REWARDS_GRANTED, + RICH_MEDIA_AVERAGE_DISPLAY_TIME, + RICH_MEDIA_AVERAGE_INTERACTION_TIME, + RICH_MEDIA_BACKUP_IMAGES, + RICH_MEDIA_CUSTOM_EVENT_COUNT, + RICH_MEDIA_CUSTOM_EVENT_TIME, + RICH_MEDIA_DISPLAY_TIME, + RICH_MEDIA_EXPANDING_TIME, + RICH_MEDIA_EXPANSIONS, + RICH_MEDIA_FULL_SCREEN_IMPRESSIONS, + RICH_MEDIA_INTERACTION_COUNT, + RICH_MEDIA_INTERACTION_RATE, + RICH_MEDIA_INTERACTION_TIME, + RICH_MEDIA_INTERACTIVE_IMPRESSIONS, + RICH_MEDIA_MANUAL_CLOSES, + RICH_MEDIA_VIDEO_COMPLETES, + RICH_MEDIA_VIDEO_INTERACTIONS, + RICH_MEDIA_VIDEO_INTERACTION_RATE, + RICH_MEDIA_VIDEO_MIDPOINTS, + RICH_MEDIA_VIDEO_MUTES, + RICH_MEDIA_VIDEO_PAUSES, + RICH_MEDIA_VIDEO_PLAYS, + RICH_MEDIA_VIDEO_REPLAYS, + RICH_MEDIA_VIDEO_STOPS, + RICH_MEDIA_VIDEO_UNMUTES, + RICH_MEDIA_VIDEO_VIEW_RATE, + RICH_MEDIA_VIDEO_VIEW_TIME, + SELL_THROUGH_AVAILABLE_IMPRESSIONS, + SELL_THROUGH_FORECASTED_IMPRESSIONS, + SELL_THROUGH_RESERVED_IMPRESSIONS, + SELL_THROUGH_SELL_THROUGH_RATE, + SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS, + SERVER_SIDE_UNWRAPPING_CALLOUTS, + SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES, + SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES, + SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES, + SERVER_SIDE_UNWRAPPING_TIMEOUTS, + SESSIONS, + TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT, + TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT, + TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT, + TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT, + TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT, + TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT, + TARGETED_CLICKS, + TARGETED_IMPRESSIONS, + UNFILLED_IMPRESSIONS, + UNIQUE_VISITORS, + UNLOADED_IMPRESSIONS_DUE_TO_CPU, + UNLOADED_IMPRESSIONS_DUE_TO_NETWORK, + UNMATCHED_AD_REQUESTS, + UNVIEWED_REASON_OTHER_PERCENT, + UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT, + UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT, + UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT, + UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT, + USER_ENGAGEMENT_DURATION_IN_SECONDS, + USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE, + USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT, + USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN, + USER_MESSAGES_ALLOW_ADS_PAGEVIEWS, + USER_MESSAGES_CCPA_MESSAGES_SHOWN, + USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN, + USER_MESSAGES_IDFA_ATT_CONSENT, + USER_MESSAGES_IDFA_ATT_CONSENT_RATE, + USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT, + USER_MESSAGES_IDFA_ATT_DECLINE_RATE, + USER_MESSAGES_IDFA_EXPLAINERS_SHOWN, + USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN, + USER_MESSAGES_IDFA_NO_DECISION, + USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN, + USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS, + USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS, + USER_MESSAGES_TOTAL_ESTIMATED_REVENUE, + USER_MESSAGES_UPTC_MESSAGES_SHOWN, + USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO, + VIDEO_ERROR_100_COUNT, + VIDEO_ERROR_101_COUNT, + VIDEO_ERROR_102_COUNT, + VIDEO_ERROR_200_COUNT, + VIDEO_ERROR_201_COUNT, + VIDEO_ERROR_202_COUNT, + VIDEO_ERROR_203_COUNT, + VIDEO_ERROR_300_COUNT, + VIDEO_ERROR_301_COUNT, + VIDEO_ERROR_302_COUNT, + VIDEO_ERROR_303_COUNT, + VIDEO_ERROR_400_COUNT, + VIDEO_ERROR_401_COUNT, + VIDEO_ERROR_402_COUNT, + VIDEO_ERROR_403_COUNT, + VIDEO_ERROR_405_COUNT, + VIDEO_ERROR_406_COUNT, + VIDEO_ERROR_407_COUNT, + VIDEO_ERROR_408_COUNT, + VIDEO_ERROR_409_COUNT, + VIDEO_ERROR_410_COUNT, + VIDEO_ERROR_500_COUNT, + VIDEO_ERROR_501_COUNT, + VIDEO_ERROR_502_COUNT, + VIDEO_ERROR_503_COUNT, + VIDEO_ERROR_600_COUNT, + VIDEO_ERROR_601_COUNT, + VIDEO_ERROR_602_COUNT, + VIDEO_ERROR_603_COUNT, + VIDEO_ERROR_604_COUNT, + VIDEO_ERROR_900_COUNT, + VIDEO_ERROR_901_COUNT, + VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE, + VIDEO_INTERACTION_COLLAPSES, + VIDEO_INTERACTION_EXPANDS, + VIDEO_INTERACTION_FULL_SCREENS, + VIDEO_INTERACTION_MUTES, + VIDEO_INTERACTION_PAUSES, + VIDEO_INTERACTION_RESUMES, + VIDEO_INTERACTION_REWINDS, + VIDEO_INTERACTION_UNMUTES, + VIDEO_INTERACTION_VIDEO_SKIPS, + VIDEO_MONETIZABLE_CONTENT_VIEWS, + VIDEO_REAL_TIME_CREATIVE_SERVES, + VIDEO_REAL_TIME_ERROR_100_COUNT, + VIDEO_REAL_TIME_ERROR_101_COUNT, + VIDEO_REAL_TIME_ERROR_102_COUNT, + VIDEO_REAL_TIME_ERROR_200_COUNT, + VIDEO_REAL_TIME_ERROR_201_COUNT, + VIDEO_REAL_TIME_ERROR_202_COUNT, + VIDEO_REAL_TIME_ERROR_203_COUNT, + VIDEO_REAL_TIME_ERROR_300_COUNT, + VIDEO_REAL_TIME_ERROR_301_COUNT, + VIDEO_REAL_TIME_ERROR_302_COUNT, + VIDEO_REAL_TIME_ERROR_303_COUNT, + VIDEO_REAL_TIME_ERROR_400_COUNT, + VIDEO_REAL_TIME_ERROR_401_COUNT, + VIDEO_REAL_TIME_ERROR_402_COUNT, + VIDEO_REAL_TIME_ERROR_403_COUNT, + VIDEO_REAL_TIME_ERROR_405_COUNT, + VIDEO_REAL_TIME_ERROR_406_COUNT, + VIDEO_REAL_TIME_ERROR_407_COUNT, + VIDEO_REAL_TIME_ERROR_408_COUNT, + VIDEO_REAL_TIME_ERROR_409_COUNT, + VIDEO_REAL_TIME_ERROR_410_COUNT, + VIDEO_REAL_TIME_ERROR_500_COUNT, + VIDEO_REAL_TIME_ERROR_501_COUNT, + VIDEO_REAL_TIME_ERROR_502_COUNT, + VIDEO_REAL_TIME_ERROR_503_COUNT, + VIDEO_REAL_TIME_ERROR_600_COUNT, + VIDEO_REAL_TIME_ERROR_601_COUNT, + VIDEO_REAL_TIME_ERROR_602_COUNT, + VIDEO_REAL_TIME_ERROR_603_COUNT, + VIDEO_REAL_TIME_ERROR_604_COUNT, + VIDEO_REAL_TIME_ERROR_900_COUNT, + VIDEO_REAL_TIME_ERROR_901_COUNT, + VIDEO_REAL_TIME_IMPRESSIONS, + VIDEO_REAL_TIME_MATCHED_QUERIES, + VIDEO_REAL_TIME_TOTAL_ERROR_COUNT, + VIDEO_REAL_TIME_TOTAL_QUERIES, + VIDEO_REAL_TIME_UNMATCHED_QUERIES, + VIDEO_VIEWERSHIP_AUTO_PLAYS, + VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE, + VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME, + VIDEO_VIEWERSHIP_CLICK_TO_PLAYS, + VIDEO_VIEWERSHIP_COMPLETES, + VIDEO_VIEWERSHIP_COMPLETION_RATE, + VIDEO_VIEWERSHIP_ENGAGED_VIEWS, + VIDEO_VIEWERSHIP_FIRST_QUARTILES, + VIDEO_VIEWERSHIP_MIDPOINTS, + VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN, + VIDEO_VIEWERSHIP_STARTS, + VIDEO_VIEWERSHIP_THIRD_QUARTILES, + VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT, + VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE, + VIDEO_VIEWERSHIP_VIDEO_LENGTH, + VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE, + YIELD_GROUP_AUCTIONS_WON, + YIELD_GROUP_BIDS, + YIELD_GROUP_BIDS_IN_AUCTION, + YIELD_GROUP_CALLOUTS, + YIELD_GROUP_ESTIMATED_CPM, + YIELD_GROUP_ESTIMATED_REVENUE, + YIELD_GROUP_IMPRESSIONS, + YIELD_GROUP_MEDIATION_FILL_RATE, + YIELD_GROUP_MEDIATION_MATCHED_QUERIES, + YIELD_GROUP_MEDIATION_PASSBACKS, + YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM, + YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT, + YIELD_GROUP_SUCCESSFUL_RESPONSES, + }; + } + + public static Metric 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 index; + private final int value; + + private Metric(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ReportDefinition.Metric) + } + + /** + * + * + *
    +   * Valid time period columns.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ReportDefinition.TimePeriodColumn} + */ + public enum TimePeriodColumn implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. Report will have no time period column.
    +     * 
    + * + * TIME_PERIOD_COLUMN_UNSPECIFIED = 0; + */ + TIME_PERIOD_COLUMN_UNSPECIFIED(0), + /** + * + * + *
    +     * A column for each date in the report.
    +     * 
    + * + * TIME_PERIOD_COLUMN_DATE = 1; + */ + TIME_PERIOD_COLUMN_DATE(1), + /** + * + * + *
    +     * A column for each week in the report.
    +     * 
    + * + * TIME_PERIOD_COLUMN_WEEK = 2; + */ + TIME_PERIOD_COLUMN_WEEK(2), + /** + * + * + *
    +     * A column for each month in the report.
    +     * 
    + * + * TIME_PERIOD_COLUMN_MONTH = 3; + */ + TIME_PERIOD_COLUMN_MONTH(3), + /** + * + * + *
    +     * A column for each quarter in the report.
    +     * 
    + * + * TIME_PERIOD_COLUMN_QUARTER = 4; + */ + TIME_PERIOD_COLUMN_QUARTER(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. Report will have no time period column.
    +     * 
    + * + * TIME_PERIOD_COLUMN_UNSPECIFIED = 0; + */ + public static final int TIME_PERIOD_COLUMN_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * A column for each date in the report.
    +     * 
    + * + * TIME_PERIOD_COLUMN_DATE = 1; + */ + public static final int TIME_PERIOD_COLUMN_DATE_VALUE = 1; + + /** + * + * + *
    +     * A column for each week in the report.
    +     * 
    + * + * TIME_PERIOD_COLUMN_WEEK = 2; + */ + public static final int TIME_PERIOD_COLUMN_WEEK_VALUE = 2; + + /** + * + * + *
    +     * A column for each month in the report.
    +     * 
    + * + * TIME_PERIOD_COLUMN_MONTH = 3; + */ + public static final int TIME_PERIOD_COLUMN_MONTH_VALUE = 3; + + /** + * + * + *
    +     * A column for each quarter in the report.
    +     * 
    + * + * TIME_PERIOD_COLUMN_QUARTER = 4; + */ + public static final int TIME_PERIOD_COLUMN_QUARTER_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 TimePeriodColumn 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 TimePeriodColumn forNumber(int value) { + switch (value) { + case 0: + return TIME_PERIOD_COLUMN_UNSPECIFIED; + case 1: + return TIME_PERIOD_COLUMN_DATE; + case 2: + return TIME_PERIOD_COLUMN_WEEK; + case 3: + return TIME_PERIOD_COLUMN_MONTH; + case 4: + return TIME_PERIOD_COLUMN_QUARTER; + 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 TimePeriodColumn findValueByNumber(int number) { + return TimePeriodColumn.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinition.getDescriptor().getEnumTypes().get(3); + } + + private static final TimePeriodColumn[] VALUES = values(); + + public static TimePeriodColumn 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 TimePeriodColumn(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ReportDefinition.TimePeriodColumn) + } + + /** + * + * + *
    +   * Possible metric value types to add.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ReportDefinition.MetricValueType} + */ + public enum MetricValueType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The values for the primary date_range.
    +     * 
    + * + * PRIMARY = 0; + */ + PRIMARY(0), + /** + * + * + *
    +     * Each metrics' percent of the total for the primary date_range.
    +     * 
    + * + * PRIMARY_PERCENT_OF_TOTAL = 1; + */ + PRIMARY_PERCENT_OF_TOTAL(1), + /** + * + * + *
    +     * The values for the comparison_date_range.
    +     * 
    + * + * COMPARISON = 2; + */ + COMPARISON(2), + /** + * + * + *
    +     * Each metrics' percent of the total for the comparison_date_range.
    +     * 
    + * + * COMPARISON_PERCENT_OF_TOTAL = 3; + */ + COMPARISON_PERCENT_OF_TOTAL(3), + /** + * + * + *
    +     * The absolute change between the primary and comparison date ranges.
    +     * 
    + * + * ABSOLUTE_CHANGE = 4; + */ + ABSOLUTE_CHANGE(4), + /** + * + * + *
    +     * The relative change between the primary and comparison date ranges.
    +     * 
    + * + * RELATIVE_CHANGE = 5; + */ + RELATIVE_CHANGE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The values for the primary date_range.
    +     * 
    + * + * PRIMARY = 0; + */ + public static final int PRIMARY_VALUE = 0; + + /** + * + * + *
    +     * Each metrics' percent of the total for the primary date_range.
    +     * 
    + * + * PRIMARY_PERCENT_OF_TOTAL = 1; + */ + public static final int PRIMARY_PERCENT_OF_TOTAL_VALUE = 1; + + /** + * + * + *
    +     * The values for the comparison_date_range.
    +     * 
    + * + * COMPARISON = 2; + */ + public static final int COMPARISON_VALUE = 2; + + /** + * + * + *
    +     * Each metrics' percent of the total for the comparison_date_range.
    +     * 
    + * + * COMPARISON_PERCENT_OF_TOTAL = 3; + */ + public static final int COMPARISON_PERCENT_OF_TOTAL_VALUE = 3; + + /** + * + * + *
    +     * The absolute change between the primary and comparison date ranges.
    +     * 
    + * + * ABSOLUTE_CHANGE = 4; + */ + public static final int ABSOLUTE_CHANGE_VALUE = 4; + + /** + * + * + *
    +     * The relative change between the primary and comparison date ranges.
    +     * 
    + * + * RELATIVE_CHANGE = 5; + */ + public static final int RELATIVE_CHANGE_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 MetricValueType 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 MetricValueType forNumber(int value) { + switch (value) { + case 0: + return PRIMARY; + case 1: + return PRIMARY_PERCENT_OF_TOTAL; + case 2: + return COMPARISON; + case 3: + return COMPARISON_PERCENT_OF_TOTAL; + case 4: + return ABSOLUTE_CHANGE; + case 5: + return RELATIVE_CHANGE; + 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 MetricValueType findValueByNumber(int number) { + return MetricValueType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinition.getDescriptor().getEnumTypes().get(4); + } + + private static final MetricValueType[] VALUES = values(); + + public static MetricValueType 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 MetricValueType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ReportDefinition.MetricValueType) + } + + /** + * + * + *
    +   * The source to determine the time zone for the report.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ReportDefinition.TimeZoneSource} + */ + public enum TimeZoneSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified default value.
    +     * 
    + * + * TIME_ZONE_SOURCE_UNSPECIFIED = 0; + */ + TIME_ZONE_SOURCE_UNSPECIFIED(0), + /** + * + * + *
    +     * Use the publisher's time zone in network settings.
    +     * 
    + * + * PUBLISHER = 1; + */ + PUBLISHER(1), + /** + * + * + *
    +     * Use the time zone of the ad exchange.
    +     * Only compatible with Ad Exchange dimensions and metrics.
    +     * 
    + * + * AD_EXCHANGE = 2; + */ + AD_EXCHANGE(2), + /** + * + * + *
    +     * Use UTC time zone.
    +     * Only compatible with Revenue Verification reports.
    +     * 
    + * + * UTC = 3; + */ + UTC(3), + /** + * + * + *
    +     * Use the time zone provided in the ReportDefinition.time_zone field.
    +     * Has limited dimension and metric compatibility compared with PUBLISHER,
    +     * and reports may take longer to run since the dates are dynamically
    +     * calculated at request time.
    +     * 
    + * + * PROVIDED = 4; + */ + PROVIDED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified default value.
    +     * 
    + * + * TIME_ZONE_SOURCE_UNSPECIFIED = 0; + */ + public static final int TIME_ZONE_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Use the publisher's time zone in network settings.
    +     * 
    + * + * PUBLISHER = 1; + */ + public static final int PUBLISHER_VALUE = 1; + + /** + * + * + *
    +     * Use the time zone of the ad exchange.
    +     * Only compatible with Ad Exchange dimensions and metrics.
    +     * 
    + * + * AD_EXCHANGE = 2; + */ + public static final int AD_EXCHANGE_VALUE = 2; + + /** + * + * + *
    +     * Use UTC time zone.
    +     * Only compatible with Revenue Verification reports.
    +     * 
    + * + * UTC = 3; + */ + public static final int UTC_VALUE = 3; + + /** + * + * + *
    +     * Use the time zone provided in the ReportDefinition.time_zone field.
    +     * Has limited dimension and metric compatibility compared with PUBLISHER,
    +     * and reports may take longer to run since the dates are dynamically
    +     * calculated at request time.
    +     * 
    + * + * PROVIDED = 4; + */ + public static final int PROVIDED_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 TimeZoneSource 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 TimeZoneSource forNumber(int value) { + switch (value) { + case 0: + return TIME_ZONE_SOURCE_UNSPECIFIED; + case 1: + return PUBLISHER; + case 2: + return AD_EXCHANGE; + case 3: + return UTC; + case 4: + return PROVIDED; + 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 TimeZoneSource findValueByNumber(int number) { + return TimeZoneSource.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinition.getDescriptor().getEnumTypes().get(5); + } + + private static final TimeZoneSource[] VALUES = values(); + + public static TimeZoneSource 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 TimeZoneSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ReportDefinition.TimeZoneSource) + } + + public interface FieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDefinition.Field) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The dimension this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return Whether the dimension field is set. + */ + boolean hasDimension(); + + /** + * + * + *
    +     * The dimension this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return The enum numeric value on the wire for dimension. + */ + int getDimensionValue(); + + /** + * + * + *
    +     * The dimension this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return The dimension. + */ + com.google.ads.admanager.v1.ReportDefinition.Dimension getDimension(); + + /** + * + * + *
    +     * The metric this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return Whether the metric field is set. + */ + boolean hasMetric(); + + /** + * + * + *
    +     * The metric this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return The enum numeric value on the wire for metric. + */ + int getMetricValue(); + + /** + * + * + *
    +     * The metric this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return The metric. + */ + com.google.ads.admanager.v1.ReportDefinition.Metric getMetric(); + + com.google.ads.admanager.v1.ReportDefinition.Field.FieldCase getFieldCase(); + } + + /** + * + * + *
    +   * A dimension or a metric in a report.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Field} + */ + public static final class Field extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDefinition.Field) + FieldOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Field.newBuilder() to construct. + private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Field() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Field(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Field.class, + com.google.ads.admanager.v1.ReportDefinition.Field.Builder.class); + } + + private int fieldCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object field_; + + public enum FieldCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DIMENSION(1), + METRIC(2), + FIELD_NOT_SET(0); + private final int value; + + private FieldCase(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 FieldCase valueOf(int value) { + return forNumber(value); + } + + public static FieldCase forNumber(int value) { + switch (value) { + case 1: + return DIMENSION; + case 2: + return METRIC; + case 0: + return FIELD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FieldCase getFieldCase() { + return FieldCase.forNumber(fieldCase_); + } + + public static final int DIMENSION_FIELD_NUMBER = 1; + + /** + * + * + *
    +     * The dimension this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return Whether the dimension field is set. + */ + public boolean hasDimension() { + return fieldCase_ == 1; + } + + /** + * + * + *
    +     * The dimension this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return The enum numeric value on the wire for dimension. + */ + public int getDimensionValue() { + if (fieldCase_ == 1) { + return (java.lang.Integer) field_; + } + return 0; + } + + /** + * + * + *
    +     * The dimension this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return The dimension. + */ + public com.google.ads.admanager.v1.ReportDefinition.Dimension getDimension() { + if (fieldCase_ == 1) { + com.google.ads.admanager.v1.ReportDefinition.Dimension result = + com.google.ads.admanager.v1.ReportDefinition.Dimension.forNumber( + (java.lang.Integer) field_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.Dimension.UNRECOGNIZED + : result; + } + return com.google.ads.admanager.v1.ReportDefinition.Dimension.DIMENSION_UNSPECIFIED; + } + + public static final int METRIC_FIELD_NUMBER = 2; + + /** + * + * + *
    +     * The metric this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return Whether the metric field is set. + */ + public boolean hasMetric() { + return fieldCase_ == 2; + } + + /** + * + * + *
    +     * The metric this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return The enum numeric value on the wire for metric. + */ + public int getMetricValue() { + if (fieldCase_ == 2) { + return (java.lang.Integer) field_; + } + return 0; + } + + /** + * + * + *
    +     * The metric this field represents.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return The metric. + */ + public com.google.ads.admanager.v1.ReportDefinition.Metric getMetric() { + if (fieldCase_ == 2) { + com.google.ads.admanager.v1.ReportDefinition.Metric result = + com.google.ads.admanager.v1.ReportDefinition.Metric.forNumber( + (java.lang.Integer) field_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.Metric.UNRECOGNIZED + : result; + } + return com.google.ads.admanager.v1.ReportDefinition.Metric.METRIC_UNSPECIFIED; + } + + 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 (fieldCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) field_)); + } + if (fieldCase_ == 2) { + output.writeEnum(2, ((java.lang.Integer) field_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fieldCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) field_)); + } + if (fieldCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(2, ((java.lang.Integer) field_)); + } + 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.admanager.v1.ReportDefinition.Field)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDefinition.Field other = + (com.google.ads.admanager.v1.ReportDefinition.Field) obj; + + if (!getFieldCase().equals(other.getFieldCase())) return false; + switch (fieldCase_) { + case 1: + if (getDimensionValue() != other.getDimensionValue()) return false; + break; + case 2: + if (getMetricValue() != other.getMetricValue()) 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(); + switch (fieldCase_) { + case 1: + hash = (37 * hash) + DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getDimensionValue(); + break; + case 2: + hash = (37 * hash) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetricValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field 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.admanager.v1.ReportDefinition.Field parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field 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.admanager.v1.ReportDefinition.Field parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportDefinition.Field prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A dimension or a metric in a report.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Field} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition.Field) + com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Field.class, + com.google.ads.admanager.v1.ReportDefinition.Field.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportDefinition.Field.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldCase_ = 0; + field_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Field_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Field getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Field build() { + com.google.ads.admanager.v1.ReportDefinition.Field result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Field buildPartial() { + com.google.ads.admanager.v1.ReportDefinition.Field result = + new com.google.ads.admanager.v1.ReportDefinition.Field(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportDefinition.Field result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.ads.admanager.v1.ReportDefinition.Field result) { + result.fieldCase_ = fieldCase_; + result.field_ = this.field_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDefinition.Field) { + return mergeFrom((com.google.ads.admanager.v1.ReportDefinition.Field) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition.Field other) { + if (other == com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance()) + return this; + switch (other.getFieldCase()) { + case DIMENSION: + { + setDimensionValue(other.getDimensionValue()); + break; + } + case METRIC: + { + setMetricValue(other.getMetricValue()); + break; + } + case FIELD_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 8: + { + int rawValue = input.readEnum(); + fieldCase_ = 1; + field_ = rawValue; + break; + } // case 8 + case 16: + { + int rawValue = input.readEnum(); + fieldCase_ = 2; + field_ = rawValue; + break; + } // case 16 + 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 fieldCase_ = 0; + private java.lang.Object field_; + + public FieldCase getFieldCase() { + return FieldCase.forNumber(fieldCase_); + } + + public Builder clearField() { + fieldCase_ = 0; + field_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +       * The dimension this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return Whether the dimension field is set. + */ + @java.lang.Override + public boolean hasDimension() { + return fieldCase_ == 1; + } + + /** + * + * + *
    +       * The dimension this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return The enum numeric value on the wire for dimension. + */ + @java.lang.Override + public int getDimensionValue() { + if (fieldCase_ == 1) { + return ((java.lang.Integer) field_).intValue(); + } + return 0; + } + + /** + * + * + *
    +       * The dimension this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @param value The enum numeric value on the wire for dimension to set. + * @return This builder for chaining. + */ + public Builder setDimensionValue(int value) { + fieldCase_ = 1; + field_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The dimension this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return The dimension. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Dimension getDimension() { + if (fieldCase_ == 1) { + com.google.ads.admanager.v1.ReportDefinition.Dimension result = + com.google.ads.admanager.v1.ReportDefinition.Dimension.forNumber( + (java.lang.Integer) field_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.Dimension.UNRECOGNIZED + : result; + } + return com.google.ads.admanager.v1.ReportDefinition.Dimension.DIMENSION_UNSPECIFIED; + } + + /** + * + * + *
    +       * The dimension this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @param value The dimension to set. + * @return This builder for chaining. + */ + public Builder setDimension(com.google.ads.admanager.v1.ReportDefinition.Dimension value) { + if (value == null) { + throw new NullPointerException(); + } + fieldCase_ = 1; + field_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * The dimension this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimension() { + if (fieldCase_ == 1) { + fieldCase_ = 0; + field_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * The metric this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return fieldCase_ == 2; + } + + /** + * + * + *
    +       * The metric this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return The enum numeric value on the wire for metric. + */ + @java.lang.Override + public int getMetricValue() { + if (fieldCase_ == 2) { + return ((java.lang.Integer) field_).intValue(); + } + return 0; + } + + /** + * + * + *
    +       * The metric this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @param value The enum numeric value on the wire for metric to set. + * @return This builder for chaining. + */ + public Builder setMetricValue(int value) { + fieldCase_ = 2; + field_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The metric this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return The metric. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Metric getMetric() { + if (fieldCase_ == 2) { + com.google.ads.admanager.v1.ReportDefinition.Metric result = + com.google.ads.admanager.v1.ReportDefinition.Metric.forNumber( + (java.lang.Integer) field_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.Metric.UNRECOGNIZED + : result; + } + return com.google.ads.admanager.v1.ReportDefinition.Metric.METRIC_UNSPECIFIED; + } + + /** + * + * + *
    +       * The metric this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @param value The metric to set. + * @return This builder for chaining. + */ + public Builder setMetric(com.google.ads.admanager.v1.ReportDefinition.Metric value) { + if (value == null) { + throw new NullPointerException(); + } + fieldCase_ = 2; + field_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * The metric this field represents.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Metric metric = 2; + * + * @return This builder for chaining. + */ + public Builder clearMetric() { + if (fieldCase_ == 2) { + fieldCase_ = 0; + field_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDefinition.Field) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDefinition.Field) + private static final com.google.ads.admanager.v1.ReportDefinition.Field DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDefinition.Field(); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Field getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Field 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.admanager.v1.ReportDefinition.Field getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DateRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDefinition.DateRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * A fixed date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + * + * @return Whether the fixed field is set. + */ + boolean hasFixed(); + + /** + * + * + *
    +     * A fixed date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + * + * @return The fixed. + */ + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange getFixed(); + + /** + * + * + *
    +     * A fixed date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + */ + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder + getFixedOrBuilder(); + + /** + * + * + *
    +     * A relative date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return Whether the relative field is set. + */ + boolean hasRelative(); + + /** + * + * + *
    +     * A relative date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return The enum numeric value on the wire for relative. + */ + int getRelativeValue(); + + /** + * + * + *
    +     * A relative date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return The relative. + */ + com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange getRelative(); + + com.google.ads.admanager.v1.ReportDefinition.DateRange.DateRangeTypeCase getDateRangeTypeCase(); + } + + /** + * + * + *
    +   * A date range for a report.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.DateRange} + */ + public static final class DateRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDefinition.DateRange) + DateRangeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DateRange.newBuilder() to construct. + private DateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DateRange() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DateRange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.DateRange.class, + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder.class); + } + + /** + * + * + *
    +     * Options for relative date ranges.
    +     * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange} + */ + public enum RelativeDateRange implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * RELATIVE_DATE_RANGE_UNSPECIFIED = 0; + */ + RELATIVE_DATE_RANGE_UNSPECIFIED(0), + /** + * + * + *
    +       * The date the report is run.
    +       * 
    + * + * TODAY = 1; + */ + TODAY(1), + /** + * + * + *
    +       * The date a day before the date that the report is run.
    +       * 
    + * + * YESTERDAY = 2; + */ + YESTERDAY(2), + /** + * + * + *
    +       * The full week in which this report is run. Could include dates in
    +       * the future.
    +       * 
    + * + * THIS_WEEK = 3; + */ + THIS_WEEK(3), + /** + * + * + *
    +       * From the beginning of the calendar week (Monday to Sunday) in which the
    +       * up to and including the day the report is run.
    +       * 
    + * + * THIS_WEEK_TO_DATE = 29; + */ + THIS_WEEK_TO_DATE(29), + /** + * + * + *
    +       * The full month in which this report is run. Could include dates in
    +       * the future.
    +       * 
    + * + * THIS_MONTH = 4; + */ + THIS_MONTH(4), + /** + * + * + *
    +       * From the beginning of the calendar month in which the report is run, to
    +       * up to and including the day the report is run.
    +       * 
    + * + * THIS_MONTH_TO_DATE = 26; + */ + THIS_MONTH_TO_DATE(26), + /** + * + * + *
    +       * The full quarter in which this report is run. Could include dates
    +       * in the future.
    +       * 
    + * + * THIS_QUARTER = 5; + */ + THIS_QUARTER(5), + /** + * + * + *
    +       * From the beginning of the calendar quarter in which the report is run,
    +       * up to and including the day the report is run.
    +       * 
    + * + * THIS_QUARTER_TO_DATE = 27; + */ + THIS_QUARTER_TO_DATE(27), + /** + * + * + *
    +       * The full year in which this report is run. Could include dates in
    +       * the future.
    +       * 
    + * + * THIS_YEAR = 6; + */ + THIS_YEAR(6), + /** + * + * + *
    +       * From the beginning of the calendar year in which the report is run, to
    +       * up to and including the day the report is run.
    +       * 
    + * + * THIS_YEAR_TO_DATE = 28; + */ + THIS_YEAR_TO_DATE(28), + /** + * + * + *
    +       * The entire previous calendar week, Monday to Sunday (inclusive),
    +       * preceding the calendar week the report is run.
    +       * 
    + * + * LAST_WEEK = 7; + */ + LAST_WEEK(7), + /** + * + * + *
    +       * The entire previous calendar month preceding the calendar month the
    +       * report is run.
    +       * 
    + * + * LAST_MONTH = 8; + */ + LAST_MONTH(8), + /** + * + * + *
    +       * The entire previous calendar quarter preceding the calendar quarter the
    +       * report is run.
    +       * 
    + * + * LAST_QUARTER = 9; + */ + LAST_QUARTER(9), + /** + * + * + *
    +       * The entire previous calendar year preceding the calendar year the
    +       * report is run.
    +       * 
    + * + * LAST_YEAR = 10; + */ + LAST_YEAR(10), + /** + * + * + *
    +       * The 7 days preceding the day the report is run.
    +       * 
    + * + * LAST_7_DAYS = 11; + */ + LAST_7_DAYS(11), + /** + * + * + *
    +       * The 30 days preceding the day the report is run.
    +       * 
    + * + * LAST_30_DAYS = 12; + */ + LAST_30_DAYS(12), + /** + * + * + *
    +       * The 60 days preceding the day the report is run.
    +       * 
    + * + * LAST_60_DAYS = 13; + */ + LAST_60_DAYS(13), + /** + * + * + *
    +       * The 90 days preceding the day the report is run.
    +       * 
    + * + * LAST_90_DAYS = 14; + */ + LAST_90_DAYS(14), + /** + * + * + *
    +       * The 180 days preceding the day the report is run.
    +       * 
    + * + * LAST_180_DAYS = 15; + */ + LAST_180_DAYS(15), + /** + * + * + *
    +       * The 360 days preceding the day the report is run.
    +       * 
    + * + * LAST_360_DAYS = 16; + */ + LAST_360_DAYS(16), + /** + * + * + *
    +       * The 365 days preceding the day the report is run.
    +       * 
    + * + * LAST_365_DAYS = 17; + */ + LAST_365_DAYS(17), + /** + * + * + *
    +       * The entire previous 3 calendar months preceding the calendar month the
    +       * report is run.
    +       * 
    + * + * LAST_3_MONTHS = 18; + */ + LAST_3_MONTHS(18), + /** + * + * + *
    +       * The entire previous 6 calendar months preceding the calendar month the
    +       * report is run.
    +       * 
    + * + * LAST_6_MONTHS = 19; + */ + LAST_6_MONTHS(19), + /** + * + * + *
    +       * The entire previous 6 calendar months preceding the calendar month the
    +       * report is run.
    +       * 
    + * + * LAST_12_MONTHS = 20; + */ + LAST_12_MONTHS(20), + /** + * + * + *
    +       * From 3 years before the report is run, to the day before the report is
    +       * run, inclusive.
    +       * 
    + * + * ALL_AVAILABLE = 21; + */ + ALL_AVAILABLE(21), + /** + * + * + *
    +       * The date a day after the date that the report is run.
    +       * 
    + * + * TOMORROW = 30; + */ + TOMORROW(30), + /** + * + * + *
    +       * The 90 days following the day the report is run.
    +       * 
    + * + * NEXT_90_DAYS = 31; + */ + NEXT_90_DAYS(31), + /** + * + * + *
    +       * The entire calendar month following the calendar month the report is
    +       * run.
    +       * 
    + * + * NEXT_MONTH = 32; + */ + NEXT_MONTH(32), + /** + * + * + *
    +       * The entire 3 calendar months following the calendar month the report
    +       * is run.
    +       * 
    + * + * NEXT_3_MONTHS = 33; + */ + NEXT_3_MONTHS(33), + /** + * + * + *
    +       * The entire 12 calendar months following the calendar month the report
    +       * is run.
    +       * 
    + * + * NEXT_12_MONTHS = 34; + */ + NEXT_12_MONTHS(34), + /** + * + * + *
    +       * The entire calendar week, Monday to Sunday (inclusive), following the
    +       * calendar week the report is run.
    +       * 
    + * + * NEXT_WEEK = 35; + */ + NEXT_WEEK(35), + /** + * + * + *
    +       * The entire calendar quarter following the calendar quarter the report
    +       * is run.
    +       * 
    + * + * NEXT_QUARTER = 36; + */ + NEXT_QUARTER(36), + /** + * + * + *
    +       * From the date a day after the date that the report is run, to the end
    +       * of the calendar month following the calendar month the report is run.
    +       * 
    + * + * TO_END_OF_NEXT_MONTH = 37; + */ + TO_END_OF_NEXT_MONTH(37), + /** + * + * + *
    +       * Only valid when used in the comparison_date_range field. The complete
    +       * period preceding the date period provided in date_range.
    +       *
    +       * In the case where date_range is a FixedDateRange of N days, this will
    +       * be a period of N days where the end date is the date preceding the
    +       * start date of the date_range.
    +       *
    +       * In the case where date_range is a RelativeDateRange, this will be a
    +       * period of the same timeframe preceding the date_range. In the case
    +       * where the date_range does not capture the full period because a report
    +       * is run in the middle of that period, this will still be the full
    +       * preceding period. For example, if date_range is THIS_WEEK, but the
    +       * report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but
    +       * PREVIOUS_PERIOD will be Monday - Sunday.
    +       * 
    + * + * PREVIOUS_PERIOD = 22; + */ + PREVIOUS_PERIOD(22), + /** + * + * + *
    +       * Only valid when used in the comparison_date_range field. The period
    +       * starting 1 year prior to the date period provided in date_range.
    +       *
    +       * In the case where date_range is a FixedDateRange, this will be a date
    +       * range starting 1 year prior to the date_range start date and ending 1
    +       * year prior to the date_range end date.
    +       *
    +       * In the case where date_range is a RelativeDateRange, this will be a
    +       * period of the same timeframe exactly 1 year prior to the date_range.
    +       * In the case where the date_range does not capture the full period
    +       * because a report is run in the middle of that period, this will still
    +       * be the full period 1 year prior. For example, if date range is
    +       * THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be
    +       * Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday -
    +       * Sunday.
    +       * 
    + * + * SAME_PERIOD_PREVIOUS_YEAR = 24; + */ + SAME_PERIOD_PREVIOUS_YEAR(24), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * RELATIVE_DATE_RANGE_UNSPECIFIED = 0; + */ + public static final int RELATIVE_DATE_RANGE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +       * The date the report is run.
    +       * 
    + * + * TODAY = 1; + */ + public static final int TODAY_VALUE = 1; + + /** + * + * + *
    +       * The date a day before the date that the report is run.
    +       * 
    + * + * YESTERDAY = 2; + */ + public static final int YESTERDAY_VALUE = 2; + + /** + * + * + *
    +       * The full week in which this report is run. Could include dates in
    +       * the future.
    +       * 
    + * + * THIS_WEEK = 3; + */ + public static final int THIS_WEEK_VALUE = 3; + + /** + * + * + *
    +       * From the beginning of the calendar week (Monday to Sunday) in which the
    +       * up to and including the day the report is run.
    +       * 
    + * + * THIS_WEEK_TO_DATE = 29; + */ + public static final int THIS_WEEK_TO_DATE_VALUE = 29; + + /** + * + * + *
    +       * The full month in which this report is run. Could include dates in
    +       * the future.
    +       * 
    + * + * THIS_MONTH = 4; + */ + public static final int THIS_MONTH_VALUE = 4; + + /** + * + * + *
    +       * From the beginning of the calendar month in which the report is run, to
    +       * up to and including the day the report is run.
    +       * 
    + * + * THIS_MONTH_TO_DATE = 26; + */ + public static final int THIS_MONTH_TO_DATE_VALUE = 26; + + /** + * + * + *
    +       * The full quarter in which this report is run. Could include dates
    +       * in the future.
    +       * 
    + * + * THIS_QUARTER = 5; + */ + public static final int THIS_QUARTER_VALUE = 5; + + /** + * + * + *
    +       * From the beginning of the calendar quarter in which the report is run,
    +       * up to and including the day the report is run.
    +       * 
    + * + * THIS_QUARTER_TO_DATE = 27; + */ + public static final int THIS_QUARTER_TO_DATE_VALUE = 27; + + /** + * + * + *
    +       * The full year in which this report is run. Could include dates in
    +       * the future.
    +       * 
    + * + * THIS_YEAR = 6; + */ + public static final int THIS_YEAR_VALUE = 6; + + /** + * + * + *
    +       * From the beginning of the calendar year in which the report is run, to
    +       * up to and including the day the report is run.
    +       * 
    + * + * THIS_YEAR_TO_DATE = 28; + */ + public static final int THIS_YEAR_TO_DATE_VALUE = 28; + + /** + * + * + *
    +       * The entire previous calendar week, Monday to Sunday (inclusive),
    +       * preceding the calendar week the report is run.
    +       * 
    + * + * LAST_WEEK = 7; + */ + public static final int LAST_WEEK_VALUE = 7; + + /** + * + * + *
    +       * The entire previous calendar month preceding the calendar month the
    +       * report is run.
    +       * 
    + * + * LAST_MONTH = 8; + */ + public static final int LAST_MONTH_VALUE = 8; + + /** + * + * + *
    +       * The entire previous calendar quarter preceding the calendar quarter the
    +       * report is run.
    +       * 
    + * + * LAST_QUARTER = 9; + */ + public static final int LAST_QUARTER_VALUE = 9; + + /** + * + * + *
    +       * The entire previous calendar year preceding the calendar year the
    +       * report is run.
    +       * 
    + * + * LAST_YEAR = 10; + */ + public static final int LAST_YEAR_VALUE = 10; + + /** + * + * + *
    +       * The 7 days preceding the day the report is run.
    +       * 
    + * + * LAST_7_DAYS = 11; + */ + public static final int LAST_7_DAYS_VALUE = 11; + + /** + * + * + *
    +       * The 30 days preceding the day the report is run.
    +       * 
    + * + * LAST_30_DAYS = 12; + */ + public static final int LAST_30_DAYS_VALUE = 12; + + /** + * + * + *
    +       * The 60 days preceding the day the report is run.
    +       * 
    + * + * LAST_60_DAYS = 13; + */ + public static final int LAST_60_DAYS_VALUE = 13; + + /** + * + * + *
    +       * The 90 days preceding the day the report is run.
    +       * 
    + * + * LAST_90_DAYS = 14; + */ + public static final int LAST_90_DAYS_VALUE = 14; + + /** + * + * + *
    +       * The 180 days preceding the day the report is run.
    +       * 
    + * + * LAST_180_DAYS = 15; + */ + public static final int LAST_180_DAYS_VALUE = 15; + + /** + * + * + *
    +       * The 360 days preceding the day the report is run.
    +       * 
    + * + * LAST_360_DAYS = 16; + */ + public static final int LAST_360_DAYS_VALUE = 16; + + /** + * + * + *
    +       * The 365 days preceding the day the report is run.
    +       * 
    + * + * LAST_365_DAYS = 17; + */ + public static final int LAST_365_DAYS_VALUE = 17; + + /** + * + * + *
    +       * The entire previous 3 calendar months preceding the calendar month the
    +       * report is run.
    +       * 
    + * + * LAST_3_MONTHS = 18; + */ + public static final int LAST_3_MONTHS_VALUE = 18; + + /** + * + * + *
    +       * The entire previous 6 calendar months preceding the calendar month the
    +       * report is run.
    +       * 
    + * + * LAST_6_MONTHS = 19; + */ + public static final int LAST_6_MONTHS_VALUE = 19; + + /** + * + * + *
    +       * The entire previous 6 calendar months preceding the calendar month the
    +       * report is run.
    +       * 
    + * + * LAST_12_MONTHS = 20; + */ + public static final int LAST_12_MONTHS_VALUE = 20; + + /** + * + * + *
    +       * From 3 years before the report is run, to the day before the report is
    +       * run, inclusive.
    +       * 
    + * + * ALL_AVAILABLE = 21; + */ + public static final int ALL_AVAILABLE_VALUE = 21; + + /** + * + * + *
    +       * The date a day after the date that the report is run.
    +       * 
    + * + * TOMORROW = 30; + */ + public static final int TOMORROW_VALUE = 30; + + /** + * + * + *
    +       * The 90 days following the day the report is run.
    +       * 
    + * + * NEXT_90_DAYS = 31; + */ + public static final int NEXT_90_DAYS_VALUE = 31; + + /** + * + * + *
    +       * The entire calendar month following the calendar month the report is
    +       * run.
    +       * 
    + * + * NEXT_MONTH = 32; + */ + public static final int NEXT_MONTH_VALUE = 32; + + /** + * + * + *
    +       * The entire 3 calendar months following the calendar month the report
    +       * is run.
    +       * 
    + * + * NEXT_3_MONTHS = 33; + */ + public static final int NEXT_3_MONTHS_VALUE = 33; + + /** + * + * + *
    +       * The entire 12 calendar months following the calendar month the report
    +       * is run.
    +       * 
    + * + * NEXT_12_MONTHS = 34; + */ + public static final int NEXT_12_MONTHS_VALUE = 34; + + /** + * + * + *
    +       * The entire calendar week, Monday to Sunday (inclusive), following the
    +       * calendar week the report is run.
    +       * 
    + * + * NEXT_WEEK = 35; + */ + public static final int NEXT_WEEK_VALUE = 35; + + /** + * + * + *
    +       * The entire calendar quarter following the calendar quarter the report
    +       * is run.
    +       * 
    + * + * NEXT_QUARTER = 36; + */ + public static final int NEXT_QUARTER_VALUE = 36; + + /** + * + * + *
    +       * From the date a day after the date that the report is run, to the end
    +       * of the calendar month following the calendar month the report is run.
    +       * 
    + * + * TO_END_OF_NEXT_MONTH = 37; + */ + public static final int TO_END_OF_NEXT_MONTH_VALUE = 37; + + /** + * + * + *
    +       * Only valid when used in the comparison_date_range field. The complete
    +       * period preceding the date period provided in date_range.
    +       *
    +       * In the case where date_range is a FixedDateRange of N days, this will
    +       * be a period of N days where the end date is the date preceding the
    +       * start date of the date_range.
    +       *
    +       * In the case where date_range is a RelativeDateRange, this will be a
    +       * period of the same timeframe preceding the date_range. In the case
    +       * where the date_range does not capture the full period because a report
    +       * is run in the middle of that period, this will still be the full
    +       * preceding period. For example, if date_range is THIS_WEEK, but the
    +       * report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but
    +       * PREVIOUS_PERIOD will be Monday - Sunday.
    +       * 
    + * + * PREVIOUS_PERIOD = 22; + */ + public static final int PREVIOUS_PERIOD_VALUE = 22; + + /** + * + * + *
    +       * Only valid when used in the comparison_date_range field. The period
    +       * starting 1 year prior to the date period provided in date_range.
    +       *
    +       * In the case where date_range is a FixedDateRange, this will be a date
    +       * range starting 1 year prior to the date_range start date and ending 1
    +       * year prior to the date_range end date.
    +       *
    +       * In the case where date_range is a RelativeDateRange, this will be a
    +       * period of the same timeframe exactly 1 year prior to the date_range.
    +       * In the case where the date_range does not capture the full period
    +       * because a report is run in the middle of that period, this will still
    +       * be the full period 1 year prior. For example, if date range is
    +       * THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be
    +       * Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday -
    +       * Sunday.
    +       * 
    + * + * SAME_PERIOD_PREVIOUS_YEAR = 24; + */ + public static final int SAME_PERIOD_PREVIOUS_YEAR_VALUE = 24; + + 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 RelativeDateRange 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 RelativeDateRange forNumber(int value) { + switch (value) { + case 0: + return RELATIVE_DATE_RANGE_UNSPECIFIED; + case 1: + return TODAY; + case 2: + return YESTERDAY; + case 3: + return THIS_WEEK; + case 29: + return THIS_WEEK_TO_DATE; + case 4: + return THIS_MONTH; + case 26: + return THIS_MONTH_TO_DATE; + case 5: + return THIS_QUARTER; + case 27: + return THIS_QUARTER_TO_DATE; + case 6: + return THIS_YEAR; + case 28: + return THIS_YEAR_TO_DATE; + case 7: + return LAST_WEEK; + case 8: + return LAST_MONTH; + case 9: + return LAST_QUARTER; + case 10: + return LAST_YEAR; + case 11: + return LAST_7_DAYS; + case 12: + return LAST_30_DAYS; + case 13: + return LAST_60_DAYS; + case 14: + return LAST_90_DAYS; + case 15: + return LAST_180_DAYS; + case 16: + return LAST_360_DAYS; + case 17: + return LAST_365_DAYS; + case 18: + return LAST_3_MONTHS; + case 19: + return LAST_6_MONTHS; + case 20: + return LAST_12_MONTHS; + case 21: + return ALL_AVAILABLE; + case 30: + return TOMORROW; + case 31: + return NEXT_90_DAYS; + case 32: + return NEXT_MONTH; + case 33: + return NEXT_3_MONTHS; + case 34: + return NEXT_12_MONTHS; + case 35: + return NEXT_WEEK; + case 36: + return NEXT_QUARTER; + case 37: + return TO_END_OF_NEXT_MONTH; + case 22: + return PREVIOUS_PERIOD; + case 24: + return SAME_PERIOD_PREVIOUS_YEAR; + 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 RelativeDateRange findValueByNumber(int number) { + return RelativeDateRange.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinition.DateRange.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RelativeDateRange[] VALUES = values(); + + public static RelativeDateRange 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 RelativeDateRange(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange) + } + + public interface FixedDateRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Required. The start date of this date range.
    +       * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startDate field is set. + */ + boolean hasStartDate(); + + /** + * + * + *
    +       * Required. The start date of this date range.
    +       * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startDate. + */ + com.google.type.Date getStartDate(); + + /** + * + * + *
    +       * Required. The start date of this date range.
    +       * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
    +       * Required. The end date (inclusive) of this date range.
    +       * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endDate field is set. + */ + boolean hasEndDate(); + + /** + * + * + *
    +       * Required. The end date (inclusive) of this date range.
    +       * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endDate. + */ + com.google.type.Date getEndDate(); + + /** + * + * + *
    +       * Required. The end date (inclusive) of this date range.
    +       * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + } + + /** + * + * + *
    +     * A date range between two fixed dates (inclusive of end date).
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange} + */ + public static final class FixedDateRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + FixedDateRangeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FixedDateRange.newBuilder() to construct. + private FixedDateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FixedDateRange() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FixedDateRange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.class, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + .class); + } + + private int bitField0_; + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + + /** + * + * + *
    +       * Required. The start date of this date range.
    +       * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startDate field is set. + */ + @java.lang.Override + public boolean hasStartDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Required. The start date of this date range.
    +       * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startDate. + */ + @java.lang.Override + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + /** + * + * + *
    +       * Required. The start date of this date range.
    +       * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + + /** + * + * + *
    +       * Required. The end date (inclusive) of this date range.
    +       * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endDate field is set. + */ + @java.lang.Override + public boolean hasEndDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Required. The end date (inclusive) of this date range.
    +       * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endDate. + */ + @java.lang.Override + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + /** + * + * + *
    +       * Required. The end date (inclusive) of this date range.
    +       * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + 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, getStartDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndDate()); + } + 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, getStartDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + 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.admanager.v1.ReportDefinition.DateRange.FixedDateRange)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange other = + (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) obj; + + if (hasStartDate() != other.hasStartDate()) return false; + if (hasStartDate()) { + if (!getStartDate().equals(other.getStartDate())) return false; + } + if (hasEndDate() != other.hasEndDate()) return false; + if (hasEndDate()) { + if (!getEndDate().equals(other.getEndDate())) 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 (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange 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.admanager.v1.ReportDefinition.DateRange.FixedDateRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange 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.admanager.v1.ReportDefinition.DateRange.FixedDateRange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +       * A date range between two fixed dates (inclusive of end date).
    +       * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.class, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + .class); + } + + // Construct using + // com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartDateFieldBuilder(); + getEndDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange build() { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + buildPartial() { + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange result = + new com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) { + return mergeFrom( + (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange other) { + if (other + == com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance()) return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + 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(getStartDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndDateFieldBuilder().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.type.Date startDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + + /** + * + * + *
    +         * Required. The start date of this date range.
    +         * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startDate field is set. + */ + public boolean hasStartDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +         * Required. The start date of this date range.
    +         * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startDate. + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Required. The start date of this date range.
    +         * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + } else { + startDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The start date of this date range.
    +         * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The start date of this date range.
    +         * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startDate_ != null + && startDate_ != com.google.type.Date.getDefaultInstance()) { + getStartDateBuilder().mergeFrom(value); + } else { + startDate_ = value; + } + } else { + startDateBuilder_.mergeFrom(value); + } + if (startDate_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Required. The start date of this date range.
    +         * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearStartDate() { + bitField0_ = (bitField0_ & ~0x00000001); + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The start date of this date range.
    +         * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Required. The start date of this date range.
    +         * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + + /** + * + * + *
    +         * Required. The start date of this date range.
    +         * 
    + * + * .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, + com.google.type.Date.Builder, + com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + + /** + * + * + *
    +         * Required. The end date (inclusive) of this date range.
    +         * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endDate field is set. + */ + public boolean hasEndDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +         * Required. The end date (inclusive) of this date range.
    +         * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endDate. + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Required. The end date (inclusive) of this date range.
    +         * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + } else { + endDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The end date (inclusive) of this date range.
    +         * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The end date (inclusive) of this date range.
    +         * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endDate_ != null + && endDate_ != com.google.type.Date.getDefaultInstance()) { + getEndDateBuilder().mergeFrom(value); + } else { + endDate_ = value; + } + } else { + endDateBuilder_.mergeFrom(value); + } + if (endDate_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Required. The end date (inclusive) of this date range.
    +         * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearEndDate() { + bitField0_ = (bitField0_ & ~0x00000002); + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The end date (inclusive) of this date range.
    +         * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Required. The end date (inclusive) of this date range.
    +         * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + + /** + * + * + *
    +         * Required. The end date (inclusive) of this date range.
    +         * 
    + * + * .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, + com.google.type.Date.Builder, + com.google.type.DateOrBuilder>(getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + private static final com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange(); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FixedDateRange 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.admanager.v1.ReportDefinition.DateRange.FixedDateRange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int dateRangeTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object dateRangeType_; + + public enum DateRangeTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIXED(1), + RELATIVE(2), + DATERANGETYPE_NOT_SET(0); + private final int value; + + private DateRangeTypeCase(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 DateRangeTypeCase valueOf(int value) { + return forNumber(value); + } + + public static DateRangeTypeCase forNumber(int value) { + switch (value) { + case 1: + return FIXED; + case 2: + return RELATIVE; + case 0: + return DATERANGETYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DateRangeTypeCase getDateRangeTypeCase() { + return DateRangeTypeCase.forNumber(dateRangeTypeCase_); + } + + public static final int FIXED_FIELD_NUMBER = 1; + + /** + * + * + *
    +     * A fixed date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + * + * @return Whether the fixed field is set. + */ + @java.lang.Override + public boolean hasFixed() { + return dateRangeTypeCase_ == 1; + } + + /** + * + * + *
    +     * A fixed date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + * + * @return The fixed. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange getFixed() { + if (dateRangeTypeCase_ == 1) { + return (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + dateRangeType_; + } + return com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance(); + } + + /** + * + * + *
    +     * A fixed date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder + getFixedOrBuilder() { + if (dateRangeTypeCase_ == 1) { + return (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + dateRangeType_; + } + return com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance(); + } + + public static final int RELATIVE_FIELD_NUMBER = 2; + + /** + * + * + *
    +     * A relative date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return Whether the relative field is set. + */ + public boolean hasRelative() { + return dateRangeTypeCase_ == 2; + } + + /** + * + * + *
    +     * A relative date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return The enum numeric value on the wire for relative. + */ + public int getRelativeValue() { + if (dateRangeTypeCase_ == 2) { + return (java.lang.Integer) dateRangeType_; + } + return 0; + } + + /** + * + * + *
    +     * A relative date range.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return The relative. + */ + public com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange getRelative() { + if (dateRangeTypeCase_ == 2) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange result = + com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange.forNumber( + (java.lang.Integer) dateRangeType_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange.UNRECOGNIZED + : result; + } + return com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange + .RELATIVE_DATE_RANGE_UNSPECIFIED; + } + + 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 (dateRangeTypeCase_ == 1) { + output.writeMessage( + 1, + (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) dateRangeType_); + } + if (dateRangeTypeCase_ == 2) { + output.writeEnum(2, ((java.lang.Integer) dateRangeType_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dateRangeTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + dateRangeType_); + } + if (dateRangeTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, ((java.lang.Integer) dateRangeType_)); + } + 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.admanager.v1.ReportDefinition.DateRange)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDefinition.DateRange other = + (com.google.ads.admanager.v1.ReportDefinition.DateRange) obj; + + if (!getDateRangeTypeCase().equals(other.getDateRangeTypeCase())) return false; + switch (dateRangeTypeCase_) { + case 1: + if (!getFixed().equals(other.getFixed())) return false; + break; + case 2: + if (getRelativeValue() != other.getRelativeValue()) 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(); + switch (dateRangeTypeCase_) { + case 1: + hash = (37 * hash) + FIXED_FIELD_NUMBER; + hash = (53 * hash) + getFixed().hashCode(); + break; + case 2: + hash = (37 * hash) + RELATIVE_FIELD_NUMBER; + hash = (53 * hash) + getRelativeValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange 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.admanager.v1.ReportDefinition.DateRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange 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.admanager.v1.ReportDefinition.DateRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ReportDefinition.DateRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A date range for a report.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.DateRange} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition.DateRange) + com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.DateRange.class, + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportDefinition.DateRange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fixedBuilder_ != null) { + fixedBuilder_.clear(); + } + dateRangeTypeCase_ = 0; + dateRangeType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange build() { + com.google.ads.admanager.v1.ReportDefinition.DateRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange buildPartial() { + com.google.ads.admanager.v1.ReportDefinition.DateRange result = + new com.google.ads.admanager.v1.ReportDefinition.DateRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportDefinition.DateRange result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.ads.admanager.v1.ReportDefinition.DateRange result) { + result.dateRangeTypeCase_ = dateRangeTypeCase_; + result.dateRangeType_ = this.dateRangeType_; + if (dateRangeTypeCase_ == 1 && fixedBuilder_ != null) { + result.dateRangeType_ = fixedBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDefinition.DateRange) { + return mergeFrom((com.google.ads.admanager.v1.ReportDefinition.DateRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition.DateRange other) { + if (other == com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance()) + return this; + switch (other.getDateRangeTypeCase()) { + case FIXED: + { + mergeFixed(other.getFixed()); + break; + } + case RELATIVE: + { + setRelativeValue(other.getRelativeValue()); + break; + } + case DATERANGETYPE_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: + { + input.readMessage(getFixedFieldBuilder().getBuilder(), extensionRegistry); + dateRangeTypeCase_ = 1; + break; + } // case 10 + case 16: + { + int rawValue = input.readEnum(); + dateRangeTypeCase_ = 2; + dateRangeType_ = rawValue; + break; + } // case 16 + 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 dateRangeTypeCase_ = 0; + private java.lang.Object dateRangeType_; + + public DateRangeTypeCase getDateRangeTypeCase() { + return DateRangeTypeCase.forNumber(dateRangeTypeCase_); + } + + public Builder clearDateRangeType() { + dateRangeTypeCase_ = 0; + dateRangeType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> + fixedBuilder_; + + /** + * + * + *
    +       * A fixed date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + * + * @return Whether the fixed field is set. + */ + @java.lang.Override + public boolean hasFixed() { + return dateRangeTypeCase_ == 1; + } + + /** + * + * + *
    +       * A fixed date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + * + * @return The fixed. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange getFixed() { + if (fixedBuilder_ == null) { + if (dateRangeTypeCase_ == 1) { + return (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + dateRangeType_; + } + return com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance(); + } else { + if (dateRangeTypeCase_ == 1) { + return fixedBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A fixed date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + */ + public Builder setFixed( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange value) { + if (fixedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dateRangeType_ = value; + onChanged(); + } else { + fixedBuilder_.setMessage(value); + } + dateRangeTypeCase_ = 1; + return this; + } + + /** + * + * + *
    +       * A fixed date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + */ + public Builder setFixed( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + builderForValue) { + if (fixedBuilder_ == null) { + dateRangeType_ = builderForValue.build(); + onChanged(); + } else { + fixedBuilder_.setMessage(builderForValue.build()); + } + dateRangeTypeCase_ = 1; + return this; + } + + /** + * + * + *
    +       * A fixed date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + */ + public Builder mergeFixed( + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange value) { + if (fixedBuilder_ == null) { + if (dateRangeTypeCase_ == 1 + && dateRangeType_ + != com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance()) { + dateRangeType_ = + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.newBuilder( + (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + dateRangeType_) + .mergeFrom(value) + .buildPartial(); + } else { + dateRangeType_ = value; + } + onChanged(); + } else { + if (dateRangeTypeCase_ == 1) { + fixedBuilder_.mergeFrom(value); + } else { + fixedBuilder_.setMessage(value); + } + } + dateRangeTypeCase_ = 1; + return this; + } + + /** + * + * + *
    +       * A fixed date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + */ + public Builder clearFixed() { + if (fixedBuilder_ == null) { + if (dateRangeTypeCase_ == 1) { + dateRangeTypeCase_ = 0; + dateRangeType_ = null; + onChanged(); + } + } else { + if (dateRangeTypeCase_ == 1) { + dateRangeTypeCase_ = 0; + dateRangeType_ = null; + } + fixedBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * A fixed date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + */ + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder + getFixedBuilder() { + return getFixedFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * A fixed date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder + getFixedOrBuilder() { + if ((dateRangeTypeCase_ == 1) && (fixedBuilder_ != null)) { + return fixedBuilder_.getMessageOrBuilder(); + } else { + if (dateRangeTypeCase_ == 1) { + return (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + dateRangeType_; + } + return com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A fixed date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange fixed = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder> + getFixedFieldBuilder() { + if (fixedBuilder_ == null) { + if (!(dateRangeTypeCase_ == 1)) { + dateRangeType_ = + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange + .getDefaultInstance(); + } + fixedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeOrBuilder>( + (com.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange) + dateRangeType_, + getParentForChildren(), + isClean()); + dateRangeType_ = null; + } + dateRangeTypeCase_ = 1; + onChanged(); + return fixedBuilder_; + } + + /** + * + * + *
    +       * A relative date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return Whether the relative field is set. + */ + @java.lang.Override + public boolean hasRelative() { + return dateRangeTypeCase_ == 2; + } + + /** + * + * + *
    +       * A relative date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return The enum numeric value on the wire for relative. + */ + @java.lang.Override + public int getRelativeValue() { + if (dateRangeTypeCase_ == 2) { + return ((java.lang.Integer) dateRangeType_).intValue(); + } + return 0; + } + + /** + * + * + *
    +       * A relative date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @param value The enum numeric value on the wire for relative to set. + * @return This builder for chaining. + */ + public Builder setRelativeValue(int value) { + dateRangeTypeCase_ = 2; + dateRangeType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * A relative date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return The relative. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange + getRelative() { + if (dateRangeTypeCase_ == 2) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange result = + com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange.forNumber( + (java.lang.Integer) dateRangeType_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange + .UNRECOGNIZED + : result; + } + return com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange + .RELATIVE_DATE_RANGE_UNSPECIFIED; + } + + /** + * + * + *
    +       * A relative date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @param value The relative to set. + * @return This builder for chaining. + */ + public Builder setRelative( + com.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange value) { + if (value == null) { + throw new NullPointerException(); + } + dateRangeTypeCase_ = 2; + dateRangeType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * A relative date range.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRange relative = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearRelative() { + if (dateRangeTypeCase_ == 2) { + dateRangeTypeCase_ = 0; + dateRangeType_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDefinition.DateRange) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDefinition.DateRange) + private static final com.google.ads.admanager.v1.ReportDefinition.DateRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDefinition.DateRange(); + } + + public static com.google.ads.admanager.v1.ReportDefinition.DateRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DateRange 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.admanager.v1.ReportDefinition.DateRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDefinition.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * A filter on a single field.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + * + * @return Whether the fieldFilter field is set. + */ + boolean hasFieldFilter(); + + /** + * + * + *
    +     * A filter on a single field.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + * + * @return The fieldFilter. + */ + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter getFieldFilter(); + + /** + * + * + *
    +     * A filter on a single field.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + */ + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilterOrBuilder + getFieldFilterOrBuilder(); + + /** + * + * + *
    +     * A filter whose result is negated.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + * + * @return Whether the notFilter field is set. + */ + boolean hasNotFilter(); + + /** + * + * + *
    +     * A filter whose result is negated.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + * + * @return The notFilter. + */ + com.google.ads.admanager.v1.ReportDefinition.Filter getNotFilter(); + + /** + * + * + *
    +     * A filter whose result is negated.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + */ + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getNotFilterOrBuilder(); + + /** + * + * + *
    +     * A list of filters whose results are AND-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + * + * @return Whether the andFilter field is set. + */ + boolean hasAndFilter(); + + /** + * + * + *
    +     * A list of filters whose results are AND-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + * + * @return The andFilter. + */ + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList getAndFilter(); + + /** + * + * + *
    +     * A list of filters whose results are AND-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + */ + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder getAndFilterOrBuilder(); + + /** + * + * + *
    +     * A list of filters whose results are OR-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + * + * @return Whether the orFilter field is set. + */ + boolean hasOrFilter(); + + /** + * + * + *
    +     * A list of filters whose results are OR-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + * + * @return The orFilter. + */ + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList getOrFilter(); + + /** + * + * + *
    +     * A list of filters whose results are OR-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + */ + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder getOrFilterOrBuilder(); + + com.google.ads.admanager.v1.ReportDefinition.Filter.TypeCase getTypeCase(); + } + + /** + * + * + *
    +   * A filter over one or more fields.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Filter} + */ + public static final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDefinition.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Filter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Filter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Filter.class, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder.class); + } + + /** + * + * + *
    +     * Supported filter operations.
    +     * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ReportDefinition.Filter.Operation} + */ + public enum Operation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * For scalar operands, checks if the operand is in the set of provided
    +       * filter values.
    +       *
    +       * For list operands, checks if any element in the operand is in the set
    +       * of provided filter values.
    +       *
    +       * Default value.
    +       * 
    + * + * IN = 0; + */ + IN(0), + /** + * + * + *
    +       * For scalar operands, checks that the operand is not in the set of
    +       * provided filter values.
    +       *
    +       * For list operands, checks that none of the elements in the operand
    +       * is in the set of provided filter values.
    +       * 
    + * + * NOT_IN = 1; + */ + NOT_IN(1), + /** + * + * + *
    +       * For scalar string operands, checks if the operand contains any of the
    +       * provided filter substrings.
    +       *
    +       * For string list operands, checks if any string in the operand contains
    +       * any of the provided filter substrings.
    +       * 
    + * + * CONTAINS = 2; + */ + CONTAINS(2), + /** + * + * + *
    +       * For scalar string operands, checks that the operand contains none of
    +       * the provided filter substrings.
    +       *
    +       * For string list operands, checks that none of the strings in the
    +       * operand contain none of the provided filter substrings.
    +       * 
    + * + * NOT_CONTAINS = 3; + */ + NOT_CONTAINS(3), + /** + * + * + *
    +       * Operand is less than the provided filter value.
    +       * 
    + * + * LESS_THAN = 4; + */ + LESS_THAN(4), + /** + * + * + *
    +       * Operand is less than or equal to provided filter value.
    +       * 
    + * + * LESS_THAN_EQUALS = 5; + */ + LESS_THAN_EQUALS(5), + /** + * + * + *
    +       * Operand is greater than provided filter value.
    +       * 
    + * + * GREATER_THAN = 6; + */ + GREATER_THAN(6), + /** + * + * + *
    +       * Operand is greater than or equal to provided filter value.
    +       * 
    + * + * GREATER_THAN_EQUALS = 7; + */ + GREATER_THAN_EQUALS(7), + /** + * + * + *
    +       * Operand is between provided filter values.
    +       * 
    + * + * BETWEEN = 8; + */ + BETWEEN(8), + /** + * + * + *
    +       * Operand matches against a regular expression or set of regular
    +       * expressions (one must match).
    +       * 
    + * + * MATCHES = 9; + */ + MATCHES(9), + /** + * + * + *
    +       * Operand negative matches against a regular expression or set of regular
    +       * expressions (none must match).
    +       * 
    + * + * NOT_MATCHES = 10; + */ + NOT_MATCHES(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * For scalar operands, checks if the operand is in the set of provided
    +       * filter values.
    +       *
    +       * For list operands, checks if any element in the operand is in the set
    +       * of provided filter values.
    +       *
    +       * Default value.
    +       * 
    + * + * IN = 0; + */ + public static final int IN_VALUE = 0; + + /** + * + * + *
    +       * For scalar operands, checks that the operand is not in the set of
    +       * provided filter values.
    +       *
    +       * For list operands, checks that none of the elements in the operand
    +       * is in the set of provided filter values.
    +       * 
    + * + * NOT_IN = 1; + */ + public static final int NOT_IN_VALUE = 1; + + /** + * + * + *
    +       * For scalar string operands, checks if the operand contains any of the
    +       * provided filter substrings.
    +       *
    +       * For string list operands, checks if any string in the operand contains
    +       * any of the provided filter substrings.
    +       * 
    + * + * CONTAINS = 2; + */ + public static final int CONTAINS_VALUE = 2; + + /** + * + * + *
    +       * For scalar string operands, checks that the operand contains none of
    +       * the provided filter substrings.
    +       *
    +       * For string list operands, checks that none of the strings in the
    +       * operand contain none of the provided filter substrings.
    +       * 
    + * + * NOT_CONTAINS = 3; + */ + public static final int NOT_CONTAINS_VALUE = 3; + + /** + * + * + *
    +       * Operand is less than the provided filter value.
    +       * 
    + * + * LESS_THAN = 4; + */ + public static final int LESS_THAN_VALUE = 4; + + /** + * + * + *
    +       * Operand is less than or equal to provided filter value.
    +       * 
    + * + * LESS_THAN_EQUALS = 5; + */ + public static final int LESS_THAN_EQUALS_VALUE = 5; + + /** + * + * + *
    +       * Operand is greater than provided filter value.
    +       * 
    + * + * GREATER_THAN = 6; + */ + public static final int GREATER_THAN_VALUE = 6; + + /** + * + * + *
    +       * Operand is greater than or equal to provided filter value.
    +       * 
    + * + * GREATER_THAN_EQUALS = 7; + */ + public static final int GREATER_THAN_EQUALS_VALUE = 7; + + /** + * + * + *
    +       * Operand is between provided filter values.
    +       * 
    + * + * BETWEEN = 8; + */ + public static final int BETWEEN_VALUE = 8; + + /** + * + * + *
    +       * Operand matches against a regular expression or set of regular
    +       * expressions (one must match).
    +       * 
    + * + * MATCHES = 9; + */ + public static final int MATCHES_VALUE = 9; + + /** + * + * + *
    +       * Operand negative matches against a regular expression or set of regular
    +       * expressions (none must match).
    +       * 
    + * + * NOT_MATCHES = 10; + */ + public static final int NOT_MATCHES_VALUE = 10; + + 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 Operation 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 Operation forNumber(int value) { + switch (value) { + case 0: + return IN; + case 1: + return NOT_IN; + case 2: + return CONTAINS; + case 3: + return NOT_CONTAINS; + case 4: + return LESS_THAN; + case 5: + return LESS_THAN_EQUALS; + case 6: + return GREATER_THAN; + case 7: + return GREATER_THAN_EQUALS; + case 8: + return BETWEEN; + case 9: + return MATCHES; + case 10: + return NOT_MATCHES; + 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 Operation findValueByNumber(int number) { + return Operation.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinition.Filter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Operation[] VALUES = values(); + + public static Operation 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 Operation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ReportDefinition.Filter.Operation) + } + + public interface FieldFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Required. The field to filter on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the field field is set. + */ + boolean hasField(); + + /** + * + * + *
    +       * Required. The field to filter on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The field. + */ + com.google.ads.admanager.v1.ReportDefinition.Field getField(); + + /** + * + * + *
    +       * Required. The field to filter on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder getFieldOrBuilder(); + + /** + * + * + *
    +       * Required. The operation of this filter.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + int getOperationValue(); + + /** + * + * + *
    +       * Required. The operation of this filter.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + com.google.ads.admanager.v1.ReportDefinition.Filter.Operation getOperation(); + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getValuesList(); + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ReportValue getValues(int index); + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getValuesCount(); + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getValuesOrBuilderList(); + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ReportValueOrBuilder getValuesOrBuilder(int index); + + /** + * + * + *
    +       * Optional. Use to filter on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the slice field is set. + */ + boolean hasSlice(); + + /** + * + * + *
    +       * Optional. Use to filter on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The slice. + */ + com.google.ads.admanager.v1.ReportDefinition.Slice getSlice(); + + /** + * + * + *
    +       * Optional. Use to filter on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder getSliceOrBuilder(); + + /** + * + * + *
    +       * Optional. When using time period columns, use this to filter on a
    +       * specific column.
    +       * 
    + * + * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the timePeriodIndex field is set. + */ + boolean hasTimePeriodIndex(); + + /** + * + * + *
    +       * Optional. When using time period columns, use this to filter on a
    +       * specific column.
    +       * 
    + * + * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timePeriodIndex. + */ + int getTimePeriodIndex(); + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to filter on. Defaults
    +       * to PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricValueType field is set. + */ + boolean hasMetricValueType(); + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to filter on. Defaults
    +       * to PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metricValueType. + */ + int getMetricValueTypeValue(); + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to filter on. Defaults
    +       * to PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricValueType. + */ + com.google.ads.admanager.v1.ReportDefinition.MetricValueType getMetricValueType(); + } + + /** + * + * + *
    +     * A filter on a specific field.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter} + */ + public static final class FieldFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) + FieldFilterOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FieldFilter.newBuilder() to construct. + private FieldFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FieldFilter() { + operation_ = 0; + values_ = java.util.Collections.emptyList(); + metricValueType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FieldFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.class, + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.Builder.class); + } + + private int bitField0_; + public static final int FIELD_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.ReportDefinition.Field field_; + + /** + * + * + *
    +       * Required. The field to filter on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the field field is set. + */ + @java.lang.Override + public boolean hasField() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Required. The field to filter on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The field. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Field getField() { + return field_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance() + : field_; + } + + /** + * + * + *
    +       * Required. The field to filter on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder getFieldOrBuilder() { + return field_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance() + : field_; + } + + public static final int OPERATION_FIELD_NUMBER = 2; + private int operation_ = 0; + + /** + * + * + *
    +       * Required. The operation of this filter.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + + /** + * + * + *
    +       * Required. The operation of this filter.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.Operation getOperation() { + com.google.ads.admanager.v1.ReportDefinition.Filter.Operation result = + com.google.ads.admanager.v1.ReportDefinition.Filter.Operation.forNumber(operation_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.Filter.Operation.UNRECOGNIZED + : result; + } + + public static final int VALUES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List values_; + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
    +       * Required. Values to filter to.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValueOrBuilder getValuesOrBuilder(int index) { + return values_.get(index); + } + + public static final int SLICE_FIELD_NUMBER = 4; + private com.google.ads.admanager.v1.ReportDefinition.Slice slice_; + + /** + * + * + *
    +       * Optional. Use to filter on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the slice field is set. + */ + @java.lang.Override + public boolean hasSlice() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. Use to filter on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The slice. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Slice getSlice() { + return slice_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance() + : slice_; + } + + /** + * + * + *
    +       * Optional. Use to filter on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder getSliceOrBuilder() { + return slice_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance() + : slice_; + } + + public static final int TIME_PERIOD_INDEX_FIELD_NUMBER = 5; + private int timePeriodIndex_ = 0; + + /** + * + * + *
    +       * Optional. When using time period columns, use this to filter on a
    +       * specific column.
    +       * 
    + * + * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the timePeriodIndex field is set. + */ + @java.lang.Override + public boolean hasTimePeriodIndex() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +       * Optional. When using time period columns, use this to filter on a
    +       * specific column.
    +       * 
    + * + * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timePeriodIndex. + */ + @java.lang.Override + public int getTimePeriodIndex() { + return timePeriodIndex_; + } + + public static final int METRIC_VALUE_TYPE_FIELD_NUMBER = 6; + private int metricValueType_ = 0; + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to filter on. Defaults
    +       * to PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricValueType field is set. + */ + @java.lang.Override + public boolean hasMetricValueType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to filter on. Defaults
    +       * to PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metricValueType. + */ + @java.lang.Override + public int getMetricValueTypeValue() { + return metricValueType_; + } + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to filter on. Defaults
    +       * to PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricValueType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.MetricValueType getMetricValueType() { + com.google.ads.admanager.v1.ReportDefinition.MetricValueType result = + com.google.ads.admanager.v1.ReportDefinition.MetricValueType.forNumber( + metricValueType_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.MetricValueType.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getField()); + } + if (operation_ + != com.google.ads.admanager.v1.ReportDefinition.Filter.Operation.IN.getNumber()) { + output.writeEnum(2, operation_); + } + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(3, values_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getSlice()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(5, timePeriodIndex_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(6, metricValueType_); + } + 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, getField()); + } + if (operation_ + != com.google.ads.admanager.v1.ReportDefinition.Filter.Operation.IN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, operation_); + } + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, values_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSlice()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, timePeriodIndex_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, metricValueType_); + } + 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.admanager.v1.ReportDefinition.Filter.FieldFilter)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter other = + (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) obj; + + if (hasField() != other.hasField()) return false; + if (hasField()) { + if (!getField().equals(other.getField())) return false; + } + if (operation_ != other.operation_) return false; + if (!getValuesList().equals(other.getValuesList())) return false; + if (hasSlice() != other.hasSlice()) return false; + if (hasSlice()) { + if (!getSlice().equals(other.getSlice())) return false; + } + if (hasTimePeriodIndex() != other.hasTimePeriodIndex()) return false; + if (hasTimePeriodIndex()) { + if (getTimePeriodIndex() != other.getTimePeriodIndex()) return false; + } + if (hasMetricValueType() != other.hasMetricValueType()) return false; + if (hasMetricValueType()) { + if (metricValueType_ != other.metricValueType_) 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 (hasField()) { + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + } + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + operation_; + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + if (hasSlice()) { + hash = (37 * hash) + SLICE_FIELD_NUMBER; + hash = (53 * hash) + getSlice().hashCode(); + } + if (hasTimePeriodIndex()) { + hash = (37 * hash) + TIME_PERIOD_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTimePeriodIndex(); + } + if (hasMetricValueType()) { + hash = (37 * hash) + METRIC_VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + metricValueType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter 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.admanager.v1.ReportDefinition.Filter.FieldFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter 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.admanager.v1.ReportDefinition.Filter.FieldFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +       * A filter on a specific field.
    +       * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.class, + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFieldFieldBuilder(); + getValuesFieldBuilder(); + getSliceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = null; + if (fieldBuilder_ != null) { + fieldBuilder_.dispose(); + fieldBuilder_ = null; + } + operation_ = 0; + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + } else { + values_ = null; + valuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + slice_ = null; + if (sliceBuilder_ != null) { + sliceBuilder_.dispose(); + sliceBuilder_ = null; + } + timePeriodIndex_ = 0; + metricValueType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter build() { + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter buildPartial() { + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter result = + new com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter result) { + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operation_ = operation_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.slice_ = sliceBuilder_ == null ? slice_ : sliceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timePeriodIndex_ = timePeriodIndex_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.metricValueType_ = metricValueType_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) { + return mergeFrom( + (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter other) { + if (other + == com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + .getDefaultInstance()) return this; + if (other.hasField()) { + mergeField(other.getField()); + } + if (other.operation_ != 0) { + setOperationValue(other.getOperationValue()); + } + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000004); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + if (other.hasSlice()) { + mergeSlice(other.getSlice()); + } + if (other.hasTimePeriodIndex()) { + setTimePeriodIndex(other.getTimePeriodIndex()); + } + if (other.hasMetricValueType()) { + setMetricValueType(other.getMetricValueType()); + } + 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(getFieldFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + operation_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.ads.admanager.v1.ReportValue m = + input.readMessage( + com.google.ads.admanager.v1.ReportValue.parser(), extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getSliceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + timePeriodIndex_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + metricValueType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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.ads.admanager.v1.ReportDefinition.Field field_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Field, + com.google.ads.admanager.v1.ReportDefinition.Field.Builder, + com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder> + fieldBuilder_; + + /** + * + * + *
    +         * Required. The field to filter on.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the field field is set. + */ + public boolean hasField() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +         * Required. The field to filter on.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The field. + */ + public com.google.ads.admanager.v1.ReportDefinition.Field getField() { + if (fieldBuilder_ == null) { + return field_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance() + : field_; + } else { + return fieldBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Required. The field to filter on.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setField(com.google.ads.admanager.v1.ReportDefinition.Field value) { + if (fieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + } else { + fieldBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The field to filter on.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setField( + com.google.ads.admanager.v1.ReportDefinition.Field.Builder builderForValue) { + if (fieldBuilder_ == null) { + field_ = builderForValue.build(); + } else { + fieldBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The field to filter on.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeField(com.google.ads.admanager.v1.ReportDefinition.Field value) { + if (fieldBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && field_ != null + && field_ + != com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance()) { + getFieldBuilder().mergeFrom(value); + } else { + field_ = value; + } + } else { + fieldBuilder_.mergeFrom(value); + } + if (field_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Required. The field to filter on.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearField() { + bitField0_ = (bitField0_ & ~0x00000001); + field_ = null; + if (fieldBuilder_ != null) { + fieldBuilder_.dispose(); + fieldBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The field to filter on.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Field.Builder getFieldBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFieldFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Required. The field to filter on.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder getFieldOrBuilder() { + if (fieldBuilder_ != null) { + return fieldBuilder_.getMessageOrBuilder(); + } else { + return field_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance() + : field_; + } + } + + /** + * + * + *
    +         * Required. The field to filter on.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Field, + com.google.ads.admanager.v1.ReportDefinition.Field.Builder, + com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder> + getFieldFieldBuilder() { + if (fieldBuilder_ == null) { + fieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Field, + com.google.ads.admanager.v1.ReportDefinition.Field.Builder, + com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder>( + getField(), getParentForChildren(), isClean()); + field_ = null; + } + return fieldBuilder_; + } + + private int operation_ = 0; + + /** + * + * + *
    +         * Required. The operation of this filter.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + + /** + * + * + *
    +         * Required. The operation of this filter.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationValue(int value) { + operation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The operation of this filter.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.Operation getOperation() { + com.google.ads.admanager.v1.ReportDefinition.Filter.Operation result = + com.google.ads.admanager.v1.ReportDefinition.Filter.Operation.forNumber(operation_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.Filter.Operation.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +         * Required. The operation of this filter.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + com.google.ads.admanager.v1.ReportDefinition.Filter.Operation value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + operation_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +         * Required. The operation of this filter.
    +         * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + bitField0_ = (bitField0_ & ~0x00000002); + operation_ = 0; + onChanged(); + return this; + } + + private java.util.List values_ = + java.util.Collections.emptyList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + valuesBuilder_; + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportValue getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValues(int index, com.google.ads.admanager.v1.ReportValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addValues(com.google.ads.admanager.v1.ReportValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addValues(int index, com.google.ads.admanager.v1.ReportValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addValues(com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addValues( + int index, com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder getValuesBuilder(int index) { + return getValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportValueOrBuilder getValuesOrBuilder(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder addValuesBuilder() { + return getValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder addValuesBuilder(int index) { + return getValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ReportValue.getDefaultInstance()); + } + + /** + * + * + *
    +         * Required. Values to filter to.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportValue values = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder>( + values_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + values_ = null; + } + return valuesBuilder_; + } + + private com.google.ads.admanager.v1.ReportDefinition.Slice slice_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Slice, + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder, + com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder> + sliceBuilder_; + + /** + * + * + *
    +         * Optional. Use to filter on a specific slice of data.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the slice field is set. + */ + public boolean hasSlice() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +         * Optional. Use to filter on a specific slice of data.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The slice. + */ + public com.google.ads.admanager.v1.ReportDefinition.Slice getSlice() { + if (sliceBuilder_ == null) { + return slice_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance() + : slice_; + } else { + return sliceBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Optional. Use to filter on a specific slice of data.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSlice(com.google.ads.admanager.v1.ReportDefinition.Slice value) { + if (sliceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + slice_ = value; + } else { + sliceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. Use to filter on a specific slice of data.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSlice( + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder builderForValue) { + if (sliceBuilder_ == null) { + slice_ = builderForValue.build(); + } else { + sliceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. Use to filter on a specific slice of data.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSlice(com.google.ads.admanager.v1.ReportDefinition.Slice value) { + if (sliceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && slice_ != null + && slice_ + != com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance()) { + getSliceBuilder().mergeFrom(value); + } else { + slice_ = value; + } + } else { + sliceBuilder_.mergeFrom(value); + } + if (slice_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Optional. Use to filter on a specific slice of data.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSlice() { + bitField0_ = (bitField0_ & ~0x00000008); + slice_ = null; + if (sliceBuilder_ != null) { + sliceBuilder_.dispose(); + sliceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. Use to filter on a specific slice of data.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Slice.Builder getSliceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getSliceFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Optional. Use to filter on a specific slice of data.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder getSliceOrBuilder() { + if (sliceBuilder_ != null) { + return sliceBuilder_.getMessageOrBuilder(); + } else { + return slice_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance() + : slice_; + } + } + + /** + * + * + *
    +         * Optional. Use to filter on a specific slice of data.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Slice, + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder, + com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder> + getSliceFieldBuilder() { + if (sliceBuilder_ == null) { + sliceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Slice, + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder, + com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder>( + getSlice(), getParentForChildren(), isClean()); + slice_ = null; + } + return sliceBuilder_; + } + + private int timePeriodIndex_; + + /** + * + * + *
    +         * Optional. When using time period columns, use this to filter on a
    +         * specific column.
    +         * 
    + * + * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the timePeriodIndex field is set. + */ + @java.lang.Override + public boolean hasTimePeriodIndex() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +         * Optional. When using time period columns, use this to filter on a
    +         * specific column.
    +         * 
    + * + * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timePeriodIndex. + */ + @java.lang.Override + public int getTimePeriodIndex() { + return timePeriodIndex_; + } + + /** + * + * + *
    +         * Optional. When using time period columns, use this to filter on a
    +         * specific column.
    +         * 
    + * + * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The timePeriodIndex to set. + * @return This builder for chaining. + */ + public Builder setTimePeriodIndex(int value) { + + timePeriodIndex_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. When using time period columns, use this to filter on a
    +         * specific column.
    +         * 
    + * + * optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTimePeriodIndex() { + bitField0_ = (bitField0_ & ~0x00000010); + timePeriodIndex_ = 0; + onChanged(); + return this; + } + + private int metricValueType_ = 0; + + /** + * + * + *
    +         * Optional. Use to specify which metric value type to filter on. Defaults
    +         * to PRIMARY.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricValueType field is set. + */ + @java.lang.Override + public boolean hasMetricValueType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +         * Optional. Use to specify which metric value type to filter on. Defaults
    +         * to PRIMARY.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metricValueType. + */ + @java.lang.Override + public int getMetricValueTypeValue() { + return metricValueType_; + } + + /** + * + * + *
    +         * Optional. Use to specify which metric value type to filter on. Defaults
    +         * to PRIMARY.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for metricValueType to set. + * @return This builder for chaining. + */ + public Builder setMetricValueTypeValue(int value) { + metricValueType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. Use to specify which metric value type to filter on. Defaults
    +         * to PRIMARY.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricValueType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.MetricValueType getMetricValueType() { + com.google.ads.admanager.v1.ReportDefinition.MetricValueType result = + com.google.ads.admanager.v1.ReportDefinition.MetricValueType.forNumber( + metricValueType_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.MetricValueType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +         * Optional. Use to specify which metric value type to filter on. Defaults
    +         * to PRIMARY.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The metricValueType to set. + * @return This builder for chaining. + */ + public Builder setMetricValueType( + com.google.ads.admanager.v1.ReportDefinition.MetricValueType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + metricValueType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. Use to specify which metric value type to filter on. Defaults
    +         * to PRIMARY.
    +         * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMetricValueType() { + bitField0_ = (bitField0_ & ~0x00000020); + metricValueType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) + private static final com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter(); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldFilter 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.admanager.v1.ReportDefinition.Filter.FieldFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FilterListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDefinition.Filter.FilterList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getFiltersList(); + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ReportDefinition.Filter getFilters(int index); + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getFiltersCount(); + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getFiltersOrBuilderList(); + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getFiltersOrBuilder(int index); + } + + /** + * + * + *
    +     * A list of filters.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Filter.FilterList} + */ + public static final class FilterList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDefinition.Filter.FilterList) + FilterListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FilterList.newBuilder() to construct. + private FilterList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FilterList() { + filters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FilterList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.class, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder.class); + } + + public static final int FILTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List filters_; + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getFiltersList() { + return filters_; + } + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getFiltersOrBuilderList() { + return filters_; + } + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getFiltersCount() { + return filters_.size(); + } + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter getFilters(int index) { + return filters_.get(index); + } + + /** + * + * + *
    +       * Required. A list of filters.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getFiltersOrBuilder( + int index) { + return filters_.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 < filters_.size(); i++) { + output.writeMessage(1, filters_.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 < filters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, filters_.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.admanager.v1.ReportDefinition.Filter.FilterList)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList other = + (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) obj; + + if (!getFiltersList().equals(other.getFiltersList())) 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 (getFiltersCount() > 0) { + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFiltersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList 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.admanager.v1.ReportDefinition.Filter.FilterList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList 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.admanager.v1.ReportDefinition.Filter.FilterList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +       * A list of filters.
    +       * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Filter.FilterList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition.Filter.FilterList) + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.class, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + } else { + filters_ = null; + filtersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList build() { + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList buildPartial() { + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList result = + new com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList result) { + if (filtersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filters_ = java.util.Collections.unmodifiableList(filters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filters_ = filters_; + } else { + result.filters_ = filtersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) { + return mergeFrom( + (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList other) { + if (other + == com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance()) return this; + if (filtersBuilder_ == null) { + if (!other.filters_.isEmpty()) { + if (filters_.isEmpty()) { + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFiltersIsMutable(); + filters_.addAll(other.filters_); + } + onChanged(); + } + } else { + if (!other.filters_.isEmpty()) { + if (filtersBuilder_.isEmpty()) { + filtersBuilder_.dispose(); + filtersBuilder_ = null; + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000001); + filtersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFiltersFieldBuilder() + : null; + } else { + filtersBuilder_.addAllMessages(other.filters_); + } + } + } + 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.admanager.v1.ReportDefinition.Filter m = + input.readMessage( + com.google.ads.admanager.v1.ReportDefinition.Filter.parser(), + extensionRegistry); + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(m); + } else { + filtersBuilder_.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 filters_ = + java.util.Collections.emptyList(); + + private void ensureFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filters_ = + new java.util.ArrayList( + filters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder> + filtersBuilder_; + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getFiltersList() { + if (filtersBuilder_ == null) { + return java.util.Collections.unmodifiableList(filters_); + } else { + return filtersBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getFiltersCount() { + if (filtersBuilder_ == null) { + return filters_.size(); + } else { + return filtersBuilder_.getCount(); + } + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter getFilters(int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); + } else { + return filtersBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilters( + int index, com.google.ads.admanager.v1.ReportDefinition.Filter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.set(index, value); + onChanged(); + } else { + filtersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilters( + int index, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.set(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFilters(com.google.ads.admanager.v1.ReportDefinition.Filter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(value); + onChanged(); + } else { + filtersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFilters( + int index, com.google.ads.admanager.v1.ReportDefinition.Filter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(index, value); + onChanged(); + } else { + filtersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFilters( + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFilters( + int index, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllFilters( + java.lang.Iterable + values) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filters_); + onChanged(); + } else { + filtersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFilters() { + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filtersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeFilters(int index) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.remove(index); + onChanged(); + } else { + filtersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder getFiltersBuilder( + int index) { + return getFiltersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getFiltersOrBuilder( + int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); + } else { + return filtersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder> + getFiltersOrBuilderList() { + if (filtersBuilder_ != null) { + return filtersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filters_); + } + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder addFiltersBuilder() { + return getFiltersFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance()); + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder addFiltersBuilder( + int index) { + return getFiltersFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance()); + } + + /** + * + * + *
    +         * Required. A list of filters.
    +         * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getFiltersBuilderList() { + return getFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder> + getFiltersFieldBuilder() { + if (filtersBuilder_ == null) { + filtersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder>( + filters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + filters_ = null; + } + return filtersBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDefinition.Filter.FilterList) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDefinition.Filter.FilterList) + private static final com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList(); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilterList 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.admanager.v1.ReportDefinition.Filter.FilterList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int typeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object type_; + + public enum TypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIELD_FILTER(1), + NOT_FILTER(2), + AND_FILTER(3), + OR_FILTER(4), + TYPE_NOT_SET(0); + private final int value; + + private TypeCase(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 TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: + return FIELD_FILTER; + case 2: + return NOT_FILTER; + case 3: + return AND_FILTER; + case 4: + return OR_FILTER; + case 0: + return TYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public static final int FIELD_FILTER_FIELD_NUMBER = 1; + + /** + * + * + *
    +     * A filter on a single field.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + * + * @return Whether the fieldFilter field is set. + */ + @java.lang.Override + public boolean hasFieldFilter() { + return typeCase_ == 1; + } + + /** + * + * + *
    +     * A filter on a single field.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + * + * @return The fieldFilter. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter getFieldFilter() { + if (typeCase_ == 1) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.getDefaultInstance(); + } + + /** + * + * + *
    +     * A filter on a single field.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilterOrBuilder + getFieldFilterOrBuilder() { + if (typeCase_ == 1) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.getDefaultInstance(); + } + + public static final int NOT_FILTER_FIELD_NUMBER = 2; + + /** + * + * + *
    +     * A filter whose result is negated.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + * + * @return Whether the notFilter field is set. + */ + @java.lang.Override + public boolean hasNotFilter() { + return typeCase_ == 2; + } + + /** + * + * + *
    +     * A filter whose result is negated.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + * + * @return The notFilter. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter getNotFilter() { + if (typeCase_ == 2) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance(); + } + + /** + * + * + *
    +     * A filter whose result is negated.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getNotFilterOrBuilder() { + if (typeCase_ == 2) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance(); + } + + public static final int AND_FILTER_FIELD_NUMBER = 3; + + /** + * + * + *
    +     * A list of filters whose results are AND-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + * + * @return Whether the andFilter field is set. + */ + @java.lang.Override + public boolean hasAndFilter() { + return typeCase_ == 3; + } + + /** + * + * + *
    +     * A list of filters whose results are AND-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + * + * @return The andFilter. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList getAndFilter() { + if (typeCase_ == 3) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.getDefaultInstance(); + } + + /** + * + * + *
    +     * A list of filters whose results are AND-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder + getAndFilterOrBuilder() { + if (typeCase_ == 3) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.getDefaultInstance(); + } + + public static final int OR_FILTER_FIELD_NUMBER = 4; + + /** + * + * + *
    +     * A list of filters whose results are OR-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + * + * @return Whether the orFilter field is set. + */ + @java.lang.Override + public boolean hasOrFilter() { + return typeCase_ == 4; + } + + /** + * + * + *
    +     * A list of filters whose results are OR-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + * + * @return The orFilter. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList getOrFilter() { + if (typeCase_ == 4) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.getDefaultInstance(); + } + + /** + * + * + *
    +     * A list of filters whose results are OR-ed.
    +     * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder + getOrFilterOrBuilder() { + if (typeCase_ == 4) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (typeCase_ == 1) { + output.writeMessage( + 1, (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) type_); + } + if (typeCase_ == 2) { + output.writeMessage(2, (com.google.ads.admanager.v1.ReportDefinition.Filter) type_); + } + if (typeCase_ == 3) { + output.writeMessage( + 3, (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_); + } + if (typeCase_ == 4) { + output.writeMessage( + 4, (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) type_); + } + if (typeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.ads.admanager.v1.ReportDefinition.Filter) type_); + } + if (typeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_); + } + if (typeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_); + } + 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.admanager.v1.ReportDefinition.Filter)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDefinition.Filter other = + (com.google.ads.admanager.v1.ReportDefinition.Filter) obj; + + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (!getFieldFilter().equals(other.getFieldFilter())) return false; + break; + case 2: + if (!getNotFilter().equals(other.getNotFilter())) return false; + break; + case 3: + if (!getAndFilter().equals(other.getAndFilter())) return false; + break; + case 4: + if (!getOrFilter().equals(other.getOrFilter())) 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(); + switch (typeCase_) { + case 1: + hash = (37 * hash) + FIELD_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFieldFilter().hashCode(); + break; + case 2: + hash = (37 * hash) + NOT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNotFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + AND_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAndFilter().hashCode(); + break; + case 4: + hash = (37 * hash) + OR_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getOrFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter 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.admanager.v1.ReportDefinition.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter 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.admanager.v1.ReportDefinition.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ReportDefinition.Filter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A filter over one or more fields.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Filter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition.Filter) + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Filter.class, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportDefinition.Filter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fieldFilterBuilder_ != null) { + fieldFilterBuilder_.clear(); + } + if (notFilterBuilder_ != null) { + notFilterBuilder_.clear(); + } + if (andFilterBuilder_ != null) { + andFilterBuilder_.clear(); + } + if (orFilterBuilder_ != null) { + orFilterBuilder_.clear(); + } + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Filter_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter build() { + com.google.ads.admanager.v1.ReportDefinition.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter buildPartial() { + com.google.ads.admanager.v1.ReportDefinition.Filter result = + new com.google.ads.admanager.v1.ReportDefinition.Filter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportDefinition.Filter result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.ads.admanager.v1.ReportDefinition.Filter result) { + result.typeCase_ = typeCase_; + result.type_ = this.type_; + if (typeCase_ == 1 && fieldFilterBuilder_ != null) { + result.type_ = fieldFilterBuilder_.build(); + } + if (typeCase_ == 2 && notFilterBuilder_ != null) { + result.type_ = notFilterBuilder_.build(); + } + if (typeCase_ == 3 && andFilterBuilder_ != null) { + result.type_ = andFilterBuilder_.build(); + } + if (typeCase_ == 4 && orFilterBuilder_ != null) { + result.type_ = orFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDefinition.Filter) { + return mergeFrom((com.google.ads.admanager.v1.ReportDefinition.Filter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition.Filter other) { + if (other == com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance()) + return this; + switch (other.getTypeCase()) { + case FIELD_FILTER: + { + mergeFieldFilter(other.getFieldFilter()); + break; + } + case NOT_FILTER: + { + mergeNotFilter(other.getNotFilter()); + break; + } + case AND_FILTER: + { + mergeAndFilter(other.getAndFilter()); + break; + } + case OR_FILTER: + { + mergeOrFilter(other.getOrFilter()); + break; + } + case TYPE_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: + { + input.readMessage(getFieldFilterFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getNotFilterFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getAndFilterFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getOrFilterFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 4; + break; + } // case 34 + 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 typeCase_ = 0; + private java.lang.Object type_; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter, + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.Builder, + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilterOrBuilder> + fieldFilterBuilder_; + + /** + * + * + *
    +       * A filter on a single field.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + * + * @return Whether the fieldFilter field is set. + */ + @java.lang.Override + public boolean hasFieldFilter() { + return typeCase_ == 1; + } + + /** + * + * + *
    +       * A filter on a single field.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + * + * @return The fieldFilter. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter getFieldFilter() { + if (fieldFilterBuilder_ == null) { + if (typeCase_ == 1) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + .getDefaultInstance(); + } else { + if (typeCase_ == 1) { + return fieldFilterBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A filter on a single field.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + */ + public Builder setFieldFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter value) { + if (fieldFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + fieldFilterBuilder_.setMessage(value); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
    +       * A filter on a single field.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + */ + public Builder setFieldFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.Builder builderForValue) { + if (fieldFilterBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + fieldFilterBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
    +       * A filter on a single field.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + */ + public Builder mergeFieldFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter value) { + if (fieldFilterBuilder_ == null) { + if (typeCase_ == 1 + && type_ + != com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + .getDefaultInstance()) { + type_ = + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.newBuilder( + (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 1) { + fieldFilterBuilder_.mergeFrom(value); + } else { + fieldFilterBuilder_.setMessage(value); + } + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
    +       * A filter on a single field.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + */ + public Builder clearFieldFilter() { + if (fieldFilterBuilder_ == null) { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + } + fieldFilterBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * A filter on a single field.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.Builder + getFieldFilterBuilder() { + return getFieldFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * A filter on a single field.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilterOrBuilder + getFieldFilterOrBuilder() { + if ((typeCase_ == 1) && (fieldFilterBuilder_ != null)) { + return fieldFilterBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 1) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A filter on a single field.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter field_filter = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter, + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.Builder, + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilterOrBuilder> + getFieldFilterFieldBuilder() { + if (fieldFilterBuilder_ == null) { + if (!(typeCase_ == 1)) { + type_ = + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter + .getDefaultInstance(); + } + fieldFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter, + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter.Builder, + com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilterOrBuilder>( + (com.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilter) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 1; + onChanged(); + return fieldFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder> + notFilterBuilder_; + + /** + * + * + *
    +       * A filter whose result is negated.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + * + * @return Whether the notFilter field is set. + */ + @java.lang.Override + public boolean hasNotFilter() { + return typeCase_ == 2; + } + + /** + * + * + *
    +       * A filter whose result is negated.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + * + * @return The notFilter. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter getNotFilter() { + if (notFilterBuilder_ == null) { + if (typeCase_ == 2) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return notFilterBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A filter whose result is negated.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + */ + public Builder setNotFilter(com.google.ads.admanager.v1.ReportDefinition.Filter value) { + if (notFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + notFilterBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
    +       * A filter whose result is negated.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + */ + public Builder setNotFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { + if (notFilterBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + notFilterBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
    +       * A filter whose result is negated.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + */ + public Builder mergeNotFilter(com.google.ads.admanager.v1.ReportDefinition.Filter value) { + if (notFilterBuilder_ == null) { + if (typeCase_ == 2 + && type_ + != com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance()) { + type_ = + com.google.ads.admanager.v1.ReportDefinition.Filter.newBuilder( + (com.google.ads.admanager.v1.ReportDefinition.Filter) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + notFilterBuilder_.mergeFrom(value); + } else { + notFilterBuilder_.setMessage(value); + } + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
    +       * A filter whose result is negated.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + */ + public Builder clearNotFilter() { + if (notFilterBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + notFilterBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * A filter whose result is negated.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder getNotFilterBuilder() { + return getNotFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * A filter whose result is negated.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getNotFilterOrBuilder() { + if ((typeCase_ == 2) && (notFilterBuilder_ != null)) { + return notFilterBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A filter whose result is negated.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter not_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder> + getNotFilterFieldBuilder() { + if (notFilterBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance(); + } + notFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder>( + (com.google.ads.admanager.v1.ReportDefinition.Filter) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged(); + return notFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder> + andFilterBuilder_; + + /** + * + * + *
    +       * A list of filters whose results are AND-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + * + * @return Whether the andFilter field is set. + */ + @java.lang.Override + public boolean hasAndFilter() { + return typeCase_ == 3; + } + + /** + * + * + *
    +       * A list of filters whose results are AND-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + * + * @return The andFilter. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList getAndFilter() { + if (andFilterBuilder_ == null) { + if (typeCase_ == 3) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return andFilterBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A list of filters whose results are AND-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + */ + public Builder setAndFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList value) { + if (andFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + andFilterBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + + /** + * + * + *
    +       * A list of filters whose results are AND-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + */ + public Builder setAndFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder builderForValue) { + if (andFilterBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + andFilterBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + + /** + * + * + *
    +       * A list of filters whose results are AND-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + */ + public Builder mergeAndFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList value) { + if (andFilterBuilder_ == null) { + if (typeCase_ == 3 + && type_ + != com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance()) { + type_ = + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.newBuilder( + (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + andFilterBuilder_.mergeFrom(value); + } else { + andFilterBuilder_.setMessage(value); + } + } + typeCase_ = 3; + return this; + } + + /** + * + * + *
    +       * A list of filters whose results are AND-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + */ + public Builder clearAndFilter() { + if (andFilterBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + andFilterBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * A list of filters whose results are AND-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder + getAndFilterBuilder() { + return getAndFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * A list of filters whose results are AND-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder + getAndFilterOrBuilder() { + if ((typeCase_ == 3) && (andFilterBuilder_ != null)) { + return andFilterBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A list of filters whose results are AND-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList and_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder> + getAndFilterFieldBuilder() { + if (andFilterBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.getDefaultInstance(); + } + andFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder>( + (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged(); + return andFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder> + orFilterBuilder_; + + /** + * + * + *
    +       * A list of filters whose results are OR-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + * + * @return Whether the orFilter field is set. + */ + @java.lang.Override + public boolean hasOrFilter() { + return typeCase_ == 4; + } + + /** + * + * + *
    +       * A list of filters whose results are OR-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + * + * @return The orFilter. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList getOrFilter() { + if (orFilterBuilder_ == null) { + if (typeCase_ == 4) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return orFilterBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A list of filters whose results are OR-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + */ + public Builder setOrFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList value) { + if (orFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + orFilterBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + + /** + * + * + *
    +       * A list of filters whose results are OR-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + */ + public Builder setOrFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder builderForValue) { + if (orFilterBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + orFilterBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + + /** + * + * + *
    +       * A list of filters whose results are OR-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + */ + public Builder mergeOrFilter( + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList value) { + if (orFilterBuilder_ == null) { + if (typeCase_ == 4 + && type_ + != com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance()) { + type_ = + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.newBuilder( + (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + orFilterBuilder_.mergeFrom(value); + } else { + orFilterBuilder_.setMessage(value); + } + } + typeCase_ = 4; + return this; + } + + /** + * + * + *
    +       * A list of filters whose results are OR-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + */ + public Builder clearOrFilter() { + if (orFilterBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + orFilterBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * A list of filters whose results are OR-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder + getOrFilterBuilder() { + return getOrFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * A list of filters whose results are OR-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder + getOrFilterOrBuilder() { + if ((typeCase_ == 4) && (orFilterBuilder_ != null)) { + return orFilterBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_; + } + return com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A list of filters whose results are OR-ed.
    +       * 
    + * + * .google.ads.admanager.v1.ReportDefinition.Filter.FilterList or_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder> + getOrFilterFieldBuilder() { + if (orFilterBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.getDefaultInstance(); + } + orFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList.Builder, + com.google.ads.admanager.v1.ReportDefinition.Filter.FilterListOrBuilder>( + (com.google.ads.admanager.v1.ReportDefinition.Filter.FilterList) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged(); + return orFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDefinition.Filter) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDefinition.Filter) + private static final com.google.ads.admanager.v1.ReportDefinition.Filter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDefinition.Filter(); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter 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.admanager.v1.ReportDefinition.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SortOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDefinition.Sort) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Required. A field (dimension or metric) to sort by.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the field field is set. + */ + boolean hasField(); + + /** + * + * + *
    +     * Required. A field (dimension or metric) to sort by.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The field. + */ + com.google.ads.admanager.v1.ReportDefinition.Field getField(); + + /** + * + * + *
    +     * Required. A field (dimension or metric) to sort by.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder getFieldOrBuilder(); + + /** + * + * + *
    +     * Optional. The sort order. If true the sort will be descending.
    +     * 
    + * + * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The descending. + */ + boolean getDescending(); + + /** + * + * + *
    +     * Optional. Use to sort on a specific slice of data.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the slice field is set. + */ + boolean hasSlice(); + + /** + * + * + *
    +     * Optional. Use to sort on a specific slice of data.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The slice. + */ + com.google.ads.admanager.v1.ReportDefinition.Slice getSlice(); + + /** + * + * + *
    +     * Optional. Use to sort on a specific slice of data.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder getSliceOrBuilder(); + + /** + * + * + *
    +     * Optional. When using time period columns, use this to sort on a specific
    +     * column.
    +     * 
    + * + * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timePeriodIndex field is set. + */ + boolean hasTimePeriodIndex(); + + /** + * + * + *
    +     * Optional. When using time period columns, use this to sort on a specific
    +     * column.
    +     * 
    + * + * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timePeriodIndex. + */ + int getTimePeriodIndex(); + + /** + * + * + *
    +     * Optional. Use to specify which metric value type to sort on. Defaults to
    +     * PRIMARY.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricValueType field is set. + */ + boolean hasMetricValueType(); + + /** + * + * + *
    +     * Optional. Use to specify which metric value type to sort on. Defaults to
    +     * PRIMARY.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metricValueType. + */ + int getMetricValueTypeValue(); + + /** + * + * + *
    +     * Optional. Use to specify which metric value type to sort on. Defaults to
    +     * PRIMARY.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricValueType. + */ + com.google.ads.admanager.v1.ReportDefinition.MetricValueType getMetricValueType(); + } + + /** + * + * + *
    +   * Represents a sorting in a report.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Sort} + */ + public static final class Sort extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDefinition.Sort) + SortOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Sort.newBuilder() to construct. + private Sort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Sort() { + metricValueType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Sort(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Sort.class, + com.google.ads.admanager.v1.ReportDefinition.Sort.Builder.class); + } + + private int bitField0_; + public static final int FIELD_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.ReportDefinition.Field field_; + + /** + * + * + *
    +     * Required. A field (dimension or metric) to sort by.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the field field is set. + */ + @java.lang.Override + public boolean hasField() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. A field (dimension or metric) to sort by.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The field. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Field getField() { + return field_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance() + : field_; + } + + /** + * + * + *
    +     * Required. A field (dimension or metric) to sort by.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder getFieldOrBuilder() { + return field_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance() + : field_; + } + + public static final int DESCENDING_FIELD_NUMBER = 2; + private boolean descending_ = false; + + /** + * + * + *
    +     * Optional. The sort order. If true the sort will be descending.
    +     * 
    + * + * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The descending. + */ + @java.lang.Override + public boolean getDescending() { + return descending_; + } + + public static final int SLICE_FIELD_NUMBER = 3; + private com.google.ads.admanager.v1.ReportDefinition.Slice slice_; + + /** + * + * + *
    +     * Optional. Use to sort on a specific slice of data.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the slice field is set. + */ + @java.lang.Override + public boolean hasSlice() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. Use to sort on a specific slice of data.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The slice. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Slice getSlice() { + return slice_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance() + : slice_; + } + + /** + * + * + *
    +     * Optional. Use to sort on a specific slice of data.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder getSliceOrBuilder() { + return slice_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance() + : slice_; + } + + public static final int TIME_PERIOD_INDEX_FIELD_NUMBER = 4; + private int timePeriodIndex_ = 0; + + /** + * + * + *
    +     * Optional. When using time period columns, use this to sort on a specific
    +     * column.
    +     * 
    + * + * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timePeriodIndex field is set. + */ + @java.lang.Override + public boolean hasTimePeriodIndex() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. When using time period columns, use this to sort on a specific
    +     * column.
    +     * 
    + * + * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timePeriodIndex. + */ + @java.lang.Override + public int getTimePeriodIndex() { + return timePeriodIndex_; + } + + public static final int METRIC_VALUE_TYPE_FIELD_NUMBER = 5; + private int metricValueType_ = 0; + + /** + * + * + *
    +     * Optional. Use to specify which metric value type to sort on. Defaults to
    +     * PRIMARY.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricValueType field is set. + */ + @java.lang.Override + public boolean hasMetricValueType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Optional. Use to specify which metric value type to sort on. Defaults to
    +     * PRIMARY.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metricValueType. + */ + @java.lang.Override + public int getMetricValueTypeValue() { + return metricValueType_; + } + + /** + * + * + *
    +     * Optional. Use to specify which metric value type to sort on. Defaults to
    +     * PRIMARY.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricValueType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.MetricValueType getMetricValueType() { + com.google.ads.admanager.v1.ReportDefinition.MetricValueType result = + com.google.ads.admanager.v1.ReportDefinition.MetricValueType.forNumber(metricValueType_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.MetricValueType.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getField()); + } + if (descending_ != false) { + output.writeBool(2, descending_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getSlice()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(4, timePeriodIndex_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(5, metricValueType_); + } + 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, getField()); + } + if (descending_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, descending_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSlice()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, timePeriodIndex_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, metricValueType_); + } + 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.admanager.v1.ReportDefinition.Sort)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDefinition.Sort other = + (com.google.ads.admanager.v1.ReportDefinition.Sort) obj; + + if (hasField() != other.hasField()) return false; + if (hasField()) { + if (!getField().equals(other.getField())) return false; + } + if (getDescending() != other.getDescending()) return false; + if (hasSlice() != other.hasSlice()) return false; + if (hasSlice()) { + if (!getSlice().equals(other.getSlice())) return false; + } + if (hasTimePeriodIndex() != other.hasTimePeriodIndex()) return false; + if (hasTimePeriodIndex()) { + if (getTimePeriodIndex() != other.getTimePeriodIndex()) return false; + } + if (hasMetricValueType() != other.hasMetricValueType()) return false; + if (hasMetricValueType()) { + if (metricValueType_ != other.metricValueType_) 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 (hasField()) { + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + } + hash = (37 * hash) + DESCENDING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDescending()); + if (hasSlice()) { + hash = (37 * hash) + SLICE_FIELD_NUMBER; + hash = (53 * hash) + getSlice().hashCode(); + } + if (hasTimePeriodIndex()) { + hash = (37 * hash) + TIME_PERIOD_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTimePeriodIndex(); + } + if (hasMetricValueType()) { + hash = (37 * hash) + METRIC_VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + metricValueType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort 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.admanager.v1.ReportDefinition.Sort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort 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.admanager.v1.ReportDefinition.Sort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportDefinition.Sort prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Represents a sorting in a report.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Sort} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition.Sort) + com.google.ads.admanager.v1.ReportDefinition.SortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Sort.class, + com.google.ads.admanager.v1.ReportDefinition.Sort.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportDefinition.Sort.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFieldFieldBuilder(); + getSliceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = null; + if (fieldBuilder_ != null) { + fieldBuilder_.dispose(); + fieldBuilder_ = null; + } + descending_ = false; + slice_ = null; + if (sliceBuilder_ != null) { + sliceBuilder_.dispose(); + sliceBuilder_ = null; + } + timePeriodIndex_ = 0; + metricValueType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Sort_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Sort getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDefinition.Sort.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Sort build() { + com.google.ads.admanager.v1.ReportDefinition.Sort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Sort buildPartial() { + com.google.ads.admanager.v1.ReportDefinition.Sort result = + new com.google.ads.admanager.v1.ReportDefinition.Sort(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportDefinition.Sort result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.descending_ = descending_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.slice_ = sliceBuilder_ == null ? slice_ : sliceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timePeriodIndex_ = timePeriodIndex_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metricValueType_ = metricValueType_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDefinition.Sort) { + return mergeFrom((com.google.ads.admanager.v1.ReportDefinition.Sort) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition.Sort other) { + if (other == com.google.ads.admanager.v1.ReportDefinition.Sort.getDefaultInstance()) + return this; + if (other.hasField()) { + mergeField(other.getField()); + } + if (other.getDescending() != false) { + setDescending(other.getDescending()); + } + if (other.hasSlice()) { + mergeSlice(other.getSlice()); + } + if (other.hasTimePeriodIndex()) { + setTimePeriodIndex(other.getTimePeriodIndex()); + } + if (other.hasMetricValueType()) { + setMetricValueType(other.getMetricValueType()); + } + 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(getFieldFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + descending_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getSliceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + timePeriodIndex_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + metricValueType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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.ads.admanager.v1.ReportDefinition.Field field_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Field, + com.google.ads.admanager.v1.ReportDefinition.Field.Builder, + com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder> + fieldBuilder_; + + /** + * + * + *
    +       * Required. A field (dimension or metric) to sort by.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the field field is set. + */ + public boolean hasField() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Required. A field (dimension or metric) to sort by.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The field. + */ + public com.google.ads.admanager.v1.ReportDefinition.Field getField() { + if (fieldBuilder_ == null) { + return field_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance() + : field_; + } else { + return fieldBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Required. A field (dimension or metric) to sort by.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setField(com.google.ads.admanager.v1.ReportDefinition.Field value) { + if (fieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + } else { + fieldBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. A field (dimension or metric) to sort by.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setField( + com.google.ads.admanager.v1.ReportDefinition.Field.Builder builderForValue) { + if (fieldBuilder_ == null) { + field_ = builderForValue.build(); + } else { + fieldBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. A field (dimension or metric) to sort by.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeField(com.google.ads.admanager.v1.ReportDefinition.Field value) { + if (fieldBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && field_ != null + && field_ + != com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance()) { + getFieldBuilder().mergeFrom(value); + } else { + field_ = value; + } + } else { + fieldBuilder_.mergeFrom(value); + } + if (field_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Required. A field (dimension or metric) to sort by.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearField() { + bitField0_ = (bitField0_ & ~0x00000001); + field_ = null; + if (fieldBuilder_ != null) { + fieldBuilder_.dispose(); + fieldBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. A field (dimension or metric) to sort by.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Field.Builder getFieldBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFieldFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Required. A field (dimension or metric) to sort by.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder getFieldOrBuilder() { + if (fieldBuilder_ != null) { + return fieldBuilder_.getMessageOrBuilder(); + } else { + return field_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Field.getDefaultInstance() + : field_; + } + } + + /** + * + * + *
    +       * Required. A field (dimension or metric) to sort by.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Field, + com.google.ads.admanager.v1.ReportDefinition.Field.Builder, + com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder> + getFieldFieldBuilder() { + if (fieldBuilder_ == null) { + fieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Field, + com.google.ads.admanager.v1.ReportDefinition.Field.Builder, + com.google.ads.admanager.v1.ReportDefinition.FieldOrBuilder>( + getField(), getParentForChildren(), isClean()); + field_ = null; + } + return fieldBuilder_; + } + + private boolean descending_; + + /** + * + * + *
    +       * Optional. The sort order. If true the sort will be descending.
    +       * 
    + * + * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The descending. + */ + @java.lang.Override + public boolean getDescending() { + return descending_; + } + + /** + * + * + *
    +       * Optional. The sort order. If true the sort will be descending.
    +       * 
    + * + * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The descending to set. + * @return This builder for chaining. + */ + public Builder setDescending(boolean value) { + + descending_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The sort order. If true the sort will be descending.
    +       * 
    + * + * bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescending() { + bitField0_ = (bitField0_ & ~0x00000002); + descending_ = false; + onChanged(); + return this; + } + + private com.google.ads.admanager.v1.ReportDefinition.Slice slice_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Slice, + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder, + com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder> + sliceBuilder_; + + /** + * + * + *
    +       * Optional. Use to sort on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the slice field is set. + */ + public boolean hasSlice() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +       * Optional. Use to sort on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The slice. + */ + public com.google.ads.admanager.v1.ReportDefinition.Slice getSlice() { + if (sliceBuilder_ == null) { + return slice_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance() + : slice_; + } else { + return sliceBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Optional. Use to sort on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSlice(com.google.ads.admanager.v1.ReportDefinition.Slice value) { + if (sliceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + slice_ = value; + } else { + sliceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Use to sort on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSlice( + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder builderForValue) { + if (sliceBuilder_ == null) { + slice_ = builderForValue.build(); + } else { + sliceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Use to sort on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSlice(com.google.ads.admanager.v1.ReportDefinition.Slice value) { + if (sliceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && slice_ != null + && slice_ + != com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance()) { + getSliceBuilder().mergeFrom(value); + } else { + slice_ = value; + } + } else { + sliceBuilder_.mergeFrom(value); + } + if (slice_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Optional. Use to sort on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSlice() { + bitField0_ = (bitField0_ & ~0x00000004); + slice_ = null; + if (sliceBuilder_ != null) { + sliceBuilder_.dispose(); + sliceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Use to sort on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Slice.Builder getSliceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSliceFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. Use to sort on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder getSliceOrBuilder() { + if (sliceBuilder_ != null) { + return sliceBuilder_.getMessageOrBuilder(); + } else { + return slice_ == null + ? com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance() + : slice_; + } + } + + /** + * + * + *
    +       * Optional. Use to sort on a specific slice of data.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Slice, + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder, + com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder> + getSliceFieldBuilder() { + if (sliceBuilder_ == null) { + sliceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Slice, + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder, + com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder>( + getSlice(), getParentForChildren(), isClean()); + slice_ = null; + } + return sliceBuilder_; + } + + private int timePeriodIndex_; + + /** + * + * + *
    +       * Optional. When using time period columns, use this to sort on a specific
    +       * column.
    +       * 
    + * + * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the timePeriodIndex field is set. + */ + @java.lang.Override + public boolean hasTimePeriodIndex() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +       * Optional. When using time period columns, use this to sort on a specific
    +       * column.
    +       * 
    + * + * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timePeriodIndex. + */ + @java.lang.Override + public int getTimePeriodIndex() { + return timePeriodIndex_; + } + + /** + * + * + *
    +       * Optional. When using time period columns, use this to sort on a specific
    +       * column.
    +       * 
    + * + * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The timePeriodIndex to set. + * @return This builder for chaining. + */ + public Builder setTimePeriodIndex(int value) { + + timePeriodIndex_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. When using time period columns, use this to sort on a specific
    +       * column.
    +       * 
    + * + * optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTimePeriodIndex() { + bitField0_ = (bitField0_ & ~0x00000008); + timePeriodIndex_ = 0; + onChanged(); + return this; + } + + private int metricValueType_ = 0; + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to sort on. Defaults to
    +       * PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricValueType field is set. + */ + @java.lang.Override + public boolean hasMetricValueType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to sort on. Defaults to
    +       * PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metricValueType. + */ + @java.lang.Override + public int getMetricValueTypeValue() { + return metricValueType_; + } + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to sort on. Defaults to
    +       * PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for metricValueType to set. + * @return This builder for chaining. + */ + public Builder setMetricValueTypeValue(int value) { + metricValueType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to sort on. Defaults to
    +       * PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricValueType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.MetricValueType getMetricValueType() { + com.google.ads.admanager.v1.ReportDefinition.MetricValueType result = + com.google.ads.admanager.v1.ReportDefinition.MetricValueType.forNumber( + metricValueType_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.MetricValueType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to sort on. Defaults to
    +       * PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The metricValueType to set. + * @return This builder for chaining. + */ + public Builder setMetricValueType( + com.google.ads.admanager.v1.ReportDefinition.MetricValueType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + metricValueType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Use to specify which metric value type to sort on. Defaults to
    +       * PRIMARY.
    +       * 
    + * + * + * optional .google.ads.admanager.v1.ReportDefinition.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMetricValueType() { + bitField0_ = (bitField0_ & ~0x00000010); + metricValueType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDefinition.Sort) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDefinition.Sort) + private static final com.google.ads.admanager.v1.ReportDefinition.Sort DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDefinition.Sort(); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Sort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sort 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.admanager.v1.ReportDefinition.Sort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SliceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDefinition.Slice) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Required. The dimension to slice on.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dimension. + */ + int getDimensionValue(); + + /** + * + * + *
    +     * Required. The dimension to slice on.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dimension. + */ + com.google.ads.admanager.v1.ReportDefinition.Dimension getDimension(); + + /** + * + * + *
    +     * Required. The value of the dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the value field is set. + */ + boolean hasValue(); + + /** + * + * + *
    +     * Required. The value of the dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The value. + */ + com.google.ads.admanager.v1.ReportValue getValue(); + + /** + * + * + *
    +     * Required. The value of the dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ReportValueOrBuilder getValueOrBuilder(); + } + + /** + * + * + *
    +   * Use to specify a slice of data.
    +   *
    +   * For example, in a report, to focus on just data from the US, specify
    +   * `COUNTRY_NAME` for dimension and value: `"United States"`.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Slice} + */ + public static final class Slice extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDefinition.Slice) + SliceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Slice.newBuilder() to construct. + private Slice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Slice() { + dimension_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Slice(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Slice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Slice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Slice.class, + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder.class); + } + + private int bitField0_; + public static final int DIMENSION_FIELD_NUMBER = 1; + private int dimension_ = 0; + + /** + * + * + *
    +     * Required. The dimension to slice on.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dimension. + */ + @java.lang.Override + public int getDimensionValue() { + return dimension_; + } + + /** + * + * + *
    +     * Required. The dimension to slice on.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dimension. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Dimension getDimension() { + com.google.ads.admanager.v1.ReportDefinition.Dimension result = + com.google.ads.admanager.v1.ReportDefinition.Dimension.forNumber(dimension_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.Dimension.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.ReportValue value_; + + /** + * + * + *
    +     * Required. The value of the dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The value of the dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The value. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getValue() { + return value_ == null ? com.google.ads.admanager.v1.ReportValue.getDefaultInstance() : value_; + } + + /** + * + * + *
    +     * Required. The value of the dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValueOrBuilder getValueOrBuilder() { + return value_ == null ? com.google.ads.admanager.v1.ReportValue.getDefaultInstance() : value_; + } + + 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 (dimension_ + != com.google.ads.admanager.v1.ReportDefinition.Dimension.DIMENSION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, dimension_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dimension_ + != com.google.ads.admanager.v1.ReportDefinition.Dimension.DIMENSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, dimension_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + 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.admanager.v1.ReportDefinition.Slice)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDefinition.Slice other = + (com.google.ads.admanager.v1.ReportDefinition.Slice) obj; + + if (dimension_ != other.dimension_) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) 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) + DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + dimension_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice 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.admanager.v1.ReportDefinition.Slice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice 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.admanager.v1.ReportDefinition.Slice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportDefinition.Slice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Use to specify a slice of data.
    +     *
    +     * For example, in a report, to focus on just data from the US, specify
    +     * `COUNTRY_NAME` for dimension and value: `"United States"`.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Slice} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition.Slice) + com.google.ads.admanager.v1.ReportDefinition.SliceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Slice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Slice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Slice.class, + com.google.ads.admanager.v1.ReportDefinition.Slice.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportDefinition.Slice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dimension_ = 0; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Slice_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Slice getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Slice build() { + com.google.ads.admanager.v1.ReportDefinition.Slice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Slice buildPartial() { + com.google.ads.admanager.v1.ReportDefinition.Slice result = + new com.google.ads.admanager.v1.ReportDefinition.Slice(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportDefinition.Slice result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dimension_ = dimension_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDefinition.Slice) { + return mergeFrom((com.google.ads.admanager.v1.ReportDefinition.Slice) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition.Slice other) { + if (other == com.google.ads.admanager.v1.ReportDefinition.Slice.getDefaultInstance()) + return this; + if (other.dimension_ != 0) { + setDimensionValue(other.getDimensionValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + 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: + { + dimension_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getValueFieldBuilder().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 int dimension_ = 0; + + /** + * + * + *
    +       * Required. The dimension to slice on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dimension. + */ + @java.lang.Override + public int getDimensionValue() { + return dimension_; + } + + /** + * + * + *
    +       * Required. The dimension to slice on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for dimension to set. + * @return This builder for chaining. + */ + public Builder setDimensionValue(int value) { + dimension_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The dimension to slice on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dimension. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Dimension getDimension() { + com.google.ads.admanager.v1.ReportDefinition.Dimension result = + com.google.ads.admanager.v1.ReportDefinition.Dimension.forNumber(dimension_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.Dimension.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Required. The dimension to slice on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The dimension to set. + * @return This builder for chaining. + */ + public Builder setDimension(com.google.ads.admanager.v1.ReportDefinition.Dimension value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + dimension_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The dimension to slice on.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDimension() { + bitField0_ = (bitField0_ & ~0x00000001); + dimension_ = 0; + onChanged(); + return this; + } + + private com.google.ads.admanager.v1.ReportValue value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + valueBuilder_; + + /** + * + * + *
    +       * Required. The value of the dimension.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Required. The value of the dimension.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The value. + */ + public com.google.ads.admanager.v1.ReportValue getValue() { + if (valueBuilder_ == null) { + return value_ == null + ? com.google.ads.admanager.v1.ReportValue.getDefaultInstance() + : value_; + } else { + return valueBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Required. The value of the dimension.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValue(com.google.ads.admanager.v1.ReportValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The value of the dimension.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValue(com.google.ads.admanager.v1.ReportValue.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The value of the dimension.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeValue(com.google.ads.admanager.v1.ReportValue value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.ads.admanager.v1.ReportValue.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + if (value_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Required. The value of the dimension.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The value of the dimension.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportValue.Builder getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Required. The value of the dimension.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null + ? com.google.ads.admanager.v1.ReportValue.getDefaultInstance() + : value_; + } + } + + /** + * + * + *
    +       * Required. The value of the dimension.
    +       * 
    + * + * + * .google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue, + com.google.ads.admanager.v1.ReportValue.Builder, + com.google.ads.admanager.v1.ReportValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDefinition.Slice) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDefinition.Slice) + private static final com.google.ads.admanager.v1.ReportDefinition.Slice DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDefinition.Slice(); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Slice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Slice 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.admanager.v1.ReportDefinition.Slice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FlagOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportDefinition.Flag) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getFiltersList(); + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ReportDefinition.Filter getFilters(int index); + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getFiltersCount(); + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getFiltersOrBuilderList(); + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getFiltersOrBuilder(int index); + + /** + * + * + *
    +     * Optional. Name of the flag.
    +     * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    +     * the colored flags that appear in the UI. The UI won't display flags
    +     * with other names, but they are available for use by API clients.
    +     * 
    + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +     * Optional. Name of the flag.
    +     * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    +     * the colored flags that appear in the UI. The UI won't display flags
    +     * with other names, but they are available for use by API clients.
    +     * 
    + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + } + + /** + * + * + *
    +   * A flag for a report. Flags are used show if certain thresholds are met.
    +   * Result rows that match the filter will have the corresponding
    +   * [MetricValueGroup.flagValues][MetricValueGroup] index set to true.
    +   * For more information about flags see:
    +   * https://support.google.com/admanager/answer/15079975
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Flag} + */ + public static final class Flag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportDefinition.Flag) + FlagOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Flag.newBuilder() to construct. + private Flag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Flag() { + filters_ = java.util.Collections.emptyList(); + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Flag(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Flag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Flag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Flag.class, + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder.class); + } + + public static final int FILTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List filters_; + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getFiltersList() { + return filters_; + } + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getFiltersOrBuilderList() { + return filters_; + } + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getFiltersCount() { + return filters_.size(); + } + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Filter getFilters(int index) { + return filters_.get(index); + } + + /** + * + * + *
    +     * Required. Filters to apply for the flag.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getFiltersOrBuilder( + int index) { + return filters_.get(index); + } + + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Optional. Name of the flag.
    +     * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    +     * the colored flags that appear in the UI. The UI won't display flags
    +     * with other names, but they are available for use by API clients.
    +     * 
    + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
    +     * Optional. Name of the flag.
    +     * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    +     * the colored flags that appear in the UI. The UI won't display flags
    +     * with other names, but they are available for use by API clients.
    +     * 
    + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 { + for (int i = 0; i < filters_.size(); i++) { + output.writeMessage(1, filters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < filters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, filters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.ads.admanager.v1.ReportDefinition.Flag)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportDefinition.Flag other = + (com.google.ads.admanager.v1.ReportDefinition.Flag) obj; + + if (!getFiltersList().equals(other.getFiltersList())) return false; + 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(); + if (getFiltersCount() > 0) { + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFiltersList().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.ads.admanager.v1.ReportDefinition.Flag parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag 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.admanager.v1.ReportDefinition.Flag parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag 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.admanager.v1.ReportDefinition.Flag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportDefinition.Flag prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A flag for a report. Flags are used show if certain thresholds are met.
    +     * Result rows that match the filter will have the corresponding
    +     * [MetricValueGroup.flagValues][MetricValueGroup] index set to true.
    +     * For more information about flags see:
    +     * https://support.google.com/admanager/answer/15079975
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportDefinition.Flag} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition.Flag) + com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Flag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Flag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportDefinition.Flag.class, + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportDefinition.Flag.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + } else { + filters_ = null; + filtersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportDefinitionProto + .internal_static_google_ads_admanager_v1_ReportDefinition_Flag_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Flag getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportDefinition.Flag.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Flag build() { + com.google.ads.admanager.v1.ReportDefinition.Flag result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportDefinition.Flag buildPartial() { + com.google.ads.admanager.v1.ReportDefinition.Flag result = + new com.google.ads.admanager.v1.ReportDefinition.Flag(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ReportDefinition.Flag result) { + if (filtersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filters_ = java.util.Collections.unmodifiableList(filters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filters_ = filters_; + } else { + result.filters_ = filtersBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportDefinition.Flag result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportDefinition.Flag) { + return mergeFrom((com.google.ads.admanager.v1.ReportDefinition.Flag) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition.Flag other) { + if (other == com.google.ads.admanager.v1.ReportDefinition.Flag.getDefaultInstance()) + return this; + if (filtersBuilder_ == null) { + if (!other.filters_.isEmpty()) { + if (filters_.isEmpty()) { + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFiltersIsMutable(); + filters_.addAll(other.filters_); + } + onChanged(); + } + } else { + if (!other.filters_.isEmpty()) { + if (filtersBuilder_.isEmpty()) { + filtersBuilder_.dispose(); + filtersBuilder_ = null; + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000001); + filtersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFiltersFieldBuilder() + : null; + } else { + filtersBuilder_.addAllMessages(other.filters_); + } + } + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + com.google.ads.admanager.v1.ReportDefinition.Filter m = + input.readMessage( + com.google.ads.admanager.v1.ReportDefinition.Filter.parser(), + extensionRegistry); + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(m); + } else { + filtersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + name_ = 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.util.List filters_ = + java.util.Collections.emptyList(); + + private void ensureFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filters_ = + new java.util.ArrayList( + filters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder> + filtersBuilder_; + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getFiltersList() { + if (filtersBuilder_ == null) { + return java.util.Collections.unmodifiableList(filters_); + } else { + return filtersBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getFiltersCount() { + if (filtersBuilder_ == null) { + return filters_.size(); + } else { + return filtersBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter getFilters(int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); + } else { + return filtersBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilters( + int index, com.google.ads.admanager.v1.ReportDefinition.Filter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.set(index, value); + onChanged(); + } else { + filtersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilters( + int index, com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.set(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFilters(com.google.ads.admanager.v1.ReportDefinition.Filter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(value); + onChanged(); + } else { + filtersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFilters( + int index, com.google.ads.admanager.v1.ReportDefinition.Filter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(index, value); + onChanged(); + } else { + filtersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFilters( + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFilters( + int index, com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllFilters( + java.lang.Iterable + values) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filters_); + onChanged(); + } else { + filtersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFilters() { + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filtersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeFilters(int index) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.remove(index); + onChanged(); + } else { + filtersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder getFiltersBuilder( + int index) { + return getFiltersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getFiltersOrBuilder( + int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); + } else { + return filtersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getFiltersOrBuilderList() { + if (filtersBuilder_ != null) { + return filtersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filters_); + } + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder addFiltersBuilder() { + return getFiltersFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance()); + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder addFiltersBuilder( + int index) { + return getFiltersFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance()); + } + + /** + * + * + *
    +       * Required. Filters to apply for the flag.
    +       * 
    + * + * + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getFiltersBuilderList() { + return getFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder> + getFiltersFieldBuilder() { + if (filtersBuilder_ == null) { + filtersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder>( + filters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + filters_ = null; + } + return filtersBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +       * Optional. Name of the flag.
    +       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    +       * the colored flags that appear in the UI. The UI won't display flags
    +       * with other names, but they are available for use by API clients.
    +       * 
    + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
    +       * Optional. Name of the flag.
    +       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    +       * the colored flags that appear in the UI. The UI won't display flags
    +       * with other names, but they are available for use by API clients.
    +       * 
    + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
    +       * Optional. Name of the flag.
    +       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    +       * the colored flags that appear in the UI. The UI won't display flags
    +       * with other names, but they are available for use by API clients.
    +       * 
    + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the flag.
    +       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    +       * the colored flags that appear in the UI. The UI won't display flags
    +       * with other names, but they are available for use by API clients.
    +       * 
    + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the flag.
    +       * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to
    +       * the colored flags that appear in the UI. The UI won't display flags
    +       * with other names, but they are available for use by API clients.
    +       * 
    + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportDefinition.Flag) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportDefinition.Flag) + private static final com.google.ads.admanager.v1.ReportDefinition.Flag DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportDefinition.Flag(); + } + + public static com.google.ads.admanager.v1.ReportDefinition.Flag getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Flag 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.admanager.v1.ReportDefinition.Flag getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int DIMENSIONS_FIELD_NUMBER = 1; @@ -84,15 +59575,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private java.util.List dimensions_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.ads.admanager.v1.Report.Dimension> + java.lang.Integer, com.google.ads.admanager.v1.ReportDefinition.Dimension> dimensions_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.ads.admanager.v1.Report.Dimension>() { - public com.google.ads.admanager.v1.Report.Dimension convert(java.lang.Integer from) { - com.google.ads.admanager.v1.Report.Dimension result = - com.google.ads.admanager.v1.Report.Dimension.forNumber(from); + java.lang.Integer, com.google.ads.admanager.v1.ReportDefinition.Dimension>() { + public com.google.ads.admanager.v1.ReportDefinition.Dimension convert( + java.lang.Integer from) { + com.google.ads.admanager.v1.ReportDefinition.Dimension result = + com.google.ads.admanager.v1.ReportDefinition.Dimension.forNumber(from); return result == null - ? com.google.ads.admanager.v1.Report.Dimension.UNRECOGNIZED + ? com.google.ads.admanager.v1.ReportDefinition.Dimension.UNRECOGNIZED : result; } }; @@ -106,15 +59598,16 @@ public com.google.ads.admanager.v1.Report.Dimension convert(java.lang.Integer fr * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the dimensions. */ @java.lang.Override - public java.util.List getDimensionsList() { + public java.util.List + getDimensionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.ads.admanager.v1.Report.Dimension>( + java.lang.Integer, com.google.ads.admanager.v1.ReportDefinition.Dimension>( dimensions_, dimensions_converter_); } @@ -127,7 +59620,7 @@ public java.util.List getDimension * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return The count of dimensions. @@ -146,14 +59639,14 @@ public int getDimensionsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the element to return. * @return The dimensions at the given index. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.Dimension getDimensions(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Dimension getDimensions(int index) { return dimensions_converter_.convert(dimensions_.get(index)); } @@ -166,7 +59659,7 @@ public com.google.ads.admanager.v1.Report.Dimension getDimensions(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the enum numeric values on the wire for dimensions. @@ -185,7 +59678,7 @@ public java.util.List getDimensionsValueList() { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the value to return. @@ -204,15 +59697,16 @@ public int getDimensionsValue(int index) { private java.util.List metrics_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.ads.admanager.v1.Report.Metric> + java.lang.Integer, com.google.ads.admanager.v1.ReportDefinition.Metric> metrics_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.ads.admanager.v1.Report.Metric>() { - public com.google.ads.admanager.v1.Report.Metric convert(java.lang.Integer from) { - com.google.ads.admanager.v1.Report.Metric result = - com.google.ads.admanager.v1.Report.Metric.forNumber(from); + java.lang.Integer, com.google.ads.admanager.v1.ReportDefinition.Metric>() { + public com.google.ads.admanager.v1.ReportDefinition.Metric convert( + java.lang.Integer from) { + com.google.ads.admanager.v1.ReportDefinition.Metric result = + com.google.ads.admanager.v1.ReportDefinition.Metric.forNumber(from); return result == null - ? com.google.ads.admanager.v1.Report.Metric.UNRECOGNIZED + ? com.google.ads.admanager.v1.ReportDefinition.Metric.UNRECOGNIZED : result; } }; @@ -226,15 +59720,16 @@ public com.google.ads.admanager.v1.Report.Metric convert(java.lang.Integer from) * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the metrics. */ @java.lang.Override - public java.util.List getMetricsList() { + public java.util.List getMetricsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.ads.admanager.v1.Report.Metric>(metrics_, metrics_converter_); + java.lang.Integer, com.google.ads.admanager.v1.ReportDefinition.Metric>( + metrics_, metrics_converter_); } /** @@ -246,7 +59741,7 @@ public java.util.List getMetricsList( * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The count of metrics. @@ -265,14 +59760,14 @@ public int getMetricsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the element to return. * @return The metrics at the given index. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.Metric getMetrics(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Metric getMetrics(int index) { return metrics_converter_.convert(metrics_.get(index)); } @@ -285,7 +59780,7 @@ public com.google.ads.admanager.v1.Report.Metric getMetrics(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the enum numeric values on the wire for metrics. @@ -304,7 +59799,7 @@ public java.util.List getMetricsValueList() { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the value to return. @@ -320,7 +59815,7 @@ public int getMetricsValue(int index) { public static final int FILTERS_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private java.util.List filters_; + private java.util.List filters_; /** * @@ -330,11 +59825,11 @@ public int getMetricsValue(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public java.util.List getFiltersList() { + public java.util.List getFiltersList() { return filters_; } @@ -346,11 +59841,11 @@ public java.util.List getFiltersList( * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public java.util.List + public java.util.List getFiltersOrBuilderList() { return filters_; } @@ -363,7 +59858,7 @@ public java.util.List getFiltersList( * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -379,11 +59874,11 @@ public int getFiltersCount() { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.Filter getFilters(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Filter getFilters(int index) { return filters_.get(index); } @@ -395,11 +59890,12 @@ public com.google.ads.admanager.v1.Report.Filter getFilters(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getFiltersOrBuilder( + int index) { return filters_.get(index); } @@ -412,12 +59908,11 @@ public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(in *
        * Optional. Where to get the time zone for this report. Defaults to using the
        * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
    -   * field in the report definition must also be provided with the desired time
    -   * zone.
    +   * field in the report definition must also set a time zone.
        * 
    * * - * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for timeZoneSource. @@ -433,21 +59928,22 @@ public int getTimeZoneSourceValue() { *
        * Optional. Where to get the time zone for this report. Defaults to using the
        * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
    -   * field in the report definition must also be provided with the desired time
    -   * zone.
    +   * field in the report definition must also set a time zone.
        * 
    * * - * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The timeZoneSource. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.TimeZoneSource getTimeZoneSource() { - com.google.ads.admanager.v1.Report.TimeZoneSource result = - com.google.ads.admanager.v1.Report.TimeZoneSource.forNumber(timeZoneSource_); - return result == null ? com.google.ads.admanager.v1.Report.TimeZoneSource.UNRECOGNIZED : result; + public com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource getTimeZoneSource() { + com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource result = + com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource.forNumber(timeZoneSource_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource.UNRECOGNIZED + : result; } public static final int TIME_ZONE_FIELD_NUMBER = 4; @@ -461,7 +59957,7 @@ public com.google.ads.admanager.v1.Report.TimeZoneSource getTimeZoneSource() { *
        * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
        * this report. Leave empty for any other time zone source. Time zone in IANA
    -   * format (e.g. "America/New_York").
    +   * format. For example, "America/New_York".
        * 
    * * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -487,7 +59983,7 @@ public java.lang.String getTimeZone() { *
        * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
        * this report. Leave empty for any other time zone source. Time zone in IANA
    -   * format (e.g. "America/New_York").
    +   * format. For example, "America/New_York".
        * 
    * * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -563,7 +60059,7 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } public static final int DATE_RANGE_FIELD_NUMBER = 6; - private com.google.ads.admanager.v1.Report.DateRange dateRange_; + private com.google.ads.admanager.v1.ReportDefinition.DateRange dateRange_; /** * @@ -573,7 +60069,7 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the dateRange field is set. @@ -591,15 +60087,15 @@ public boolean hasDateRange() { * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * * * @return The dateRange. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange getDateRange() { + public com.google.ads.admanager.v1.ReportDefinition.DateRange getDateRange() { return dateRange_ == null - ? com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance() + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance() : dateRange_; } @@ -611,29 +60107,29 @@ public com.google.ads.admanager.v1.Report.DateRange getDateRange() { * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRangeOrBuilder getDateRangeOrBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder getDateRangeOrBuilder() { return dateRange_ == null - ? com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance() + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance() : dateRange_; } public static final int COMPARISON_DATE_RANGE_FIELD_NUMBER = 9; - private com.google.ads.admanager.v1.Report.DateRange comparisonDateRange_; + private com.google.ads.admanager.v1.ReportDefinition.DateRange comparisonDateRange_; /** * * *
        * Optional. The comparison date range of this report. If unspecified, the
    -   * report will not have any comparison metrics.
    +   * report won't have any comparison metrics.
        * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the comparisonDateRange field is set. @@ -648,19 +60144,19 @@ public boolean hasComparisonDateRange() { * *
        * Optional. The comparison date range of this report. If unspecified, the
    -   * report will not have any comparison metrics.
    +   * report won't have any comparison metrics.
        * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The comparisonDateRange. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRange getComparisonDateRange() { + public com.google.ads.admanager.v1.ReportDefinition.DateRange getComparisonDateRange() { return comparisonDateRange_ == null - ? com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance() + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance() : comparisonDateRange_; } @@ -669,17 +60165,18 @@ public com.google.ads.admanager.v1.Report.DateRange getComparisonDateRange() { * *
        * Optional. The comparison date range of this report. If unspecified, the
    -   * report will not have any comparison metrics.
    +   * report won't have any comparison metrics.
        * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.DateRangeOrBuilder getComparisonDateRangeOrBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder + getComparisonDateRangeOrBuilder() { return comparisonDateRange_ == null - ? com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance() + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance() : comparisonDateRange_; } @@ -958,7 +60455,7 @@ public long getCreativeCustomFieldIds(int index) { * * * - * .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for reportType. @@ -976,16 +60473,18 @@ public int getReportTypeValue() { * * * - * .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The reportType. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.ReportType getReportType() { - com.google.ads.admanager.v1.Report.ReportType result = - com.google.ads.admanager.v1.Report.ReportType.forNumber(reportType_); - return result == null ? com.google.ads.admanager.v1.Report.ReportType.UNRECOGNIZED : result; + public com.google.ads.admanager.v1.ReportDefinition.ReportType getReportType() { + com.google.ads.admanager.v1.ReportDefinition.ReportType result = + com.google.ads.admanager.v1.ReportDefinition.ReportType.forNumber(reportType_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.ReportType.UNRECOGNIZED + : result; } public static final int TIME_PERIOD_COLUMN_FIELD_NUMBER = 10; @@ -1004,7 +60503,7 @@ public com.google.ads.admanager.v1.Report.ReportType getReportType() { * * * - * .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for timePeriodColumn. @@ -1027,24 +60526,24 @@ public int getTimePeriodColumnValue() { * * * - * .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The timePeriodColumn. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.TimePeriodColumn getTimePeriodColumn() { - com.google.ads.admanager.v1.Report.TimePeriodColumn result = - com.google.ads.admanager.v1.Report.TimePeriodColumn.forNumber(timePeriodColumn_); + public com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn getTimePeriodColumn() { + com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn result = + com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn.forNumber(timePeriodColumn_); return result == null - ? com.google.ads.admanager.v1.Report.TimePeriodColumn.UNRECOGNIZED + ? com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn.UNRECOGNIZED : result; } public static final int FLAGS_FIELD_NUMBER = 14; @SuppressWarnings("serial") - private java.util.List flags_; + private java.util.List flags_; /** * @@ -1055,11 +60554,11 @@ public com.google.ads.admanager.v1.Report.TimePeriodColumn getTimePeriodColumn() * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public java.util.List getFlagsList() { + public java.util.List getFlagsList() { return flags_; } @@ -1072,11 +60571,11 @@ public java.util.List getFlagsList() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public java.util.List + public java.util.List getFlagsOrBuilderList() { return flags_; } @@ -1090,7 +60589,7 @@ public java.util.List getFlagsList() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1107,11 +60606,11 @@ public int getFlagsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.Flag getFlags(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Flag getFlags(int index) { return flags_.get(index); } @@ -1124,18 +60623,18 @@ public com.google.ads.admanager.v1.Report.Flag getFlags(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder getFlagsOrBuilder(int index) { return flags_.get(index); } public static final int SORTS_FIELD_NUMBER = 15; @SuppressWarnings("serial") - private java.util.List sorts_; + private java.util.List sorts_; /** * @@ -1145,11 +60644,11 @@ public com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int in * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public java.util.List getSortsList() { + public java.util.List getSortsList() { return sorts_; } @@ -1161,11 +60660,11 @@ public java.util.List getSortsList() { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public java.util.List + public java.util.List getSortsOrBuilderList() { return sorts_; } @@ -1178,7 +60677,7 @@ public java.util.List getSortsList() { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1194,11 +60693,11 @@ public int getSortsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.Sort getSorts(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Sort getSorts(int index) { return sorts_.get(index); } @@ -1210,11 +60709,11 @@ public com.google.ads.admanager.v1.Report.Sort getSorts(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.SortOrBuilder getSortsOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.SortOrBuilder getSortsOrBuilder(int index) { return sorts_.get(index); } @@ -1267,14 +60766,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt64NoTag(customDimensionKeyIds_.getLong(i)); } if (reportType_ - != com.google.ads.admanager.v1.Report.ReportType.REPORT_TYPE_UNSPECIFIED.getNumber()) { + != com.google.ads.admanager.v1.ReportDefinition.ReportType.REPORT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(8, reportType_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getComparisonDateRange()); } if (timePeriodColumn_ - != com.google.ads.admanager.v1.Report.TimePeriodColumn.TIME_PERIOD_COLUMN_UNSPECIFIED + != com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn + .TIME_PERIOD_COLUMN_UNSPECIFIED .getNumber()) { output.writeEnum(10, timePeriodColumn_); } @@ -1306,7 +60807,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(15, sorts_.get(i)); } if (timeZoneSource_ - != com.google.ads.admanager.v1.Report.TimeZoneSource.TIME_ZONE_SOURCE_UNSPECIFIED + != com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource.TIME_ZONE_SOURCE_UNSPECIFIED .getNumber()) { output.writeEnum(20, timeZoneSource_); } @@ -1370,14 +60871,16 @@ public int getSerializedSize() { customDimensionKeyIdsMemoizedSerializedSize = dataSize; } if (reportType_ - != com.google.ads.admanager.v1.Report.ReportType.REPORT_TYPE_UNSPECIFIED.getNumber()) { + != com.google.ads.admanager.v1.ReportDefinition.ReportType.REPORT_TYPE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, reportType_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getComparisonDateRange()); } if (timePeriodColumn_ - != com.google.ads.admanager.v1.Report.TimePeriodColumn.TIME_PERIOD_COLUMN_UNSPECIFIED + != com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn + .TIME_PERIOD_COLUMN_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, timePeriodColumn_); } @@ -1430,7 +60933,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, sorts_.get(i)); } if (timeZoneSource_ - != com.google.ads.admanager.v1.Report.TimeZoneSource.TIME_ZONE_SOURCE_UNSPECIFIED + != com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource.TIME_ZONE_SOURCE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, timeZoneSource_); } @@ -1654,14 +61157,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition) com.google.ads.admanager.v1.ReportDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto + return com.google.ads.admanager.v1.ReportDefinitionProto .internal_static_google_ads_admanager_v1_ReportDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto + return com.google.ads.admanager.v1.ReportDefinitionProto .internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.ReportDefinition.class, @@ -1741,7 +61244,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto + return com.google.ads.admanager.v1.ReportDefinitionProto .internal_static_google_ads_admanager_v1_ReportDefinition_descriptor; } @@ -2140,9 +61643,10 @@ public Builder mergeFrom( } // case 18 case 26: { - com.google.ads.admanager.v1.Report.Filter m = + com.google.ads.admanager.v1.ReportDefinition.Filter m = input.readMessage( - com.google.ads.admanager.v1.Report.Filter.parser(), extensionRegistry); + com.google.ads.admanager.v1.ReportDefinition.Filter.parser(), + extensionRegistry); if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.add(m); @@ -2262,9 +61766,10 @@ public Builder mergeFrom( } // case 106 case 114: { - com.google.ads.admanager.v1.Report.Flag m = + com.google.ads.admanager.v1.ReportDefinition.Flag m = input.readMessage( - com.google.ads.admanager.v1.Report.Flag.parser(), extensionRegistry); + com.google.ads.admanager.v1.ReportDefinition.Flag.parser(), + extensionRegistry); if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(m); @@ -2275,9 +61780,10 @@ public Builder mergeFrom( } // case 114 case 122: { - com.google.ads.admanager.v1.Report.Sort m = + com.google.ads.admanager.v1.ReportDefinition.Sort m = input.readMessage( - com.google.ads.admanager.v1.Report.Sort.parser(), extensionRegistry); + com.google.ads.admanager.v1.ReportDefinition.Sort.parser(), + extensionRegistry); if (sortsBuilder_ == null) { ensureSortsIsMutable(); sorts_.add(m); @@ -2329,14 +61835,15 @@ private void ensureDimensionsIsMutable() { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the dimensions. */ - public java.util.List getDimensionsList() { + public java.util.List + getDimensionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.ads.admanager.v1.Report.Dimension>( + java.lang.Integer, com.google.ads.admanager.v1.ReportDefinition.Dimension>( dimensions_, dimensions_converter_); } @@ -2349,7 +61856,7 @@ public java.util.List getDimension * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return The count of dimensions. @@ -2367,13 +61874,13 @@ public int getDimensionsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the element to return. * @return The dimensions at the given index. */ - public com.google.ads.admanager.v1.Report.Dimension getDimensions(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Dimension getDimensions(int index) { return dimensions_converter_.convert(dimensions_.get(index)); } @@ -2386,14 +61893,15 @@ public com.google.ads.admanager.v1.Report.Dimension getDimensions(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index to set the value at. * @param value The dimensions to set. * @return This builder for chaining. */ - public Builder setDimensions(int index, com.google.ads.admanager.v1.Report.Dimension value) { + public Builder setDimensions( + int index, com.google.ads.admanager.v1.ReportDefinition.Dimension value) { if (value == null) { throw new NullPointerException(); } @@ -2412,13 +61920,13 @@ public Builder setDimensions(int index, com.google.ads.admanager.v1.Report.Dimen * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The dimensions to add. * @return This builder for chaining. */ - public Builder addDimensions(com.google.ads.admanager.v1.Report.Dimension value) { + public Builder addDimensions(com.google.ads.admanager.v1.ReportDefinition.Dimension value) { if (value == null) { throw new NullPointerException(); } @@ -2437,16 +61945,17 @@ public Builder addDimensions(com.google.ads.admanager.v1.Report.Dimension value) * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param values The dimensions to add. * @return This builder for chaining. */ public Builder addAllDimensions( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureDimensionsIsMutable(); - for (com.google.ads.admanager.v1.Report.Dimension value : values) { + for (com.google.ads.admanager.v1.ReportDefinition.Dimension value : values) { dimensions_.add(value.getNumber()); } onChanged(); @@ -2462,7 +61971,7 @@ public Builder addAllDimensions( * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. @@ -2483,7 +61992,7 @@ public Builder clearDimensions() { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the enum numeric values on the wire for dimensions. @@ -2501,7 +62010,7 @@ public java.util.List getDimensionsValueList() { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the value to return. @@ -2520,7 +62029,7 @@ public int getDimensionsValue(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index to set the value at. @@ -2543,7 +62052,7 @@ public Builder setDimensionsValue(int index, int value) { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for dimensions to add. @@ -2565,7 +62074,7 @@ public Builder addDimensionsValue(int value) { * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param values The enum numeric values on the wire for dimensions to add. @@ -2598,14 +62107,14 @@ private void ensureMetricsIsMutable() { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the metrics. */ - public java.util.List getMetricsList() { + public java.util.List getMetricsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.ads.admanager.v1.Report.Metric>( + java.lang.Integer, com.google.ads.admanager.v1.ReportDefinition.Metric>( metrics_, metrics_converter_); } @@ -2618,7 +62127,7 @@ public java.util.List getMetricsList( * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The count of metrics. @@ -2636,13 +62145,13 @@ public int getMetricsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the element to return. * @return The metrics at the given index. */ - public com.google.ads.admanager.v1.Report.Metric getMetrics(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Metric getMetrics(int index) { return metrics_converter_.convert(metrics_.get(index)); } @@ -2655,14 +62164,15 @@ public com.google.ads.admanager.v1.Report.Metric getMetrics(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index to set the value at. * @param value The metrics to set. * @return This builder for chaining. */ - public Builder setMetrics(int index, com.google.ads.admanager.v1.Report.Metric value) { + public Builder setMetrics( + int index, com.google.ads.admanager.v1.ReportDefinition.Metric value) { if (value == null) { throw new NullPointerException(); } @@ -2681,13 +62191,13 @@ public Builder setMetrics(int index, com.google.ads.admanager.v1.Report.Metric v * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The metrics to add. * @return This builder for chaining. */ - public Builder addMetrics(com.google.ads.admanager.v1.Report.Metric value) { + public Builder addMetrics(com.google.ads.admanager.v1.ReportDefinition.Metric value) { if (value == null) { throw new NullPointerException(); } @@ -2706,16 +62216,16 @@ public Builder addMetrics(com.google.ads.admanager.v1.Report.Metric value) { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param values The metrics to add. * @return This builder for chaining. */ public Builder addAllMetrics( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureMetricsIsMutable(); - for (com.google.ads.admanager.v1.Report.Metric value : values) { + for (com.google.ads.admanager.v1.ReportDefinition.Metric value : values) { metrics_.add(value.getNumber()); } onChanged(); @@ -2731,7 +62241,7 @@ public Builder addAllMetrics( * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. @@ -2752,7 +62262,7 @@ public Builder clearMetrics() { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the enum numeric values on the wire for metrics. @@ -2770,7 +62280,7 @@ public java.util.List getMetricsValueList() { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the value to return. @@ -2789,7 +62299,7 @@ public int getMetricsValue(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index to set the value at. @@ -2812,7 +62322,7 @@ public Builder setMetricsValue(int index, int value) { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for metrics to add. @@ -2834,7 +62344,7 @@ public Builder addMetricsValue(int value) { * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param values The enum numeric values on the wire for metrics to add. @@ -2849,20 +62359,21 @@ public Builder addAllMetricsValue(java.lang.Iterable values) return this; } - private java.util.List filters_ = + private java.util.List filters_ = java.util.Collections.emptyList(); private void ensureFiltersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - filters_ = new java.util.ArrayList(filters_); + filters_ = + new java.util.ArrayList(filters_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder> filtersBuilder_; /** @@ -2873,10 +62384,10 @@ private void ensureFiltersIsMutable() { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List getFiltersList() { + public java.util.List getFiltersList() { if (filtersBuilder_ == null) { return java.util.Collections.unmodifiableList(filters_); } else { @@ -2892,7 +62403,7 @@ public java.util.List getFiltersList( * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getFiltersCount() { @@ -2911,10 +62422,10 @@ public int getFiltersCount() { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Filter getFilters(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Filter getFilters(int index) { if (filtersBuilder_ == null) { return filters_.get(index); } else { @@ -2930,10 +62441,11 @@ public com.google.ads.admanager.v1.Report.Filter getFilters(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setFilters(int index, com.google.ads.admanager.v1.Report.Filter value) { + public Builder setFilters( + int index, com.google.ads.admanager.v1.ReportDefinition.Filter value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2955,11 +62467,11 @@ public Builder setFilters(int index, com.google.ads.admanager.v1.Report.Filter v * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setFilters( - int index, com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.set(index, builderForValue.build()); @@ -2978,10 +62490,10 @@ public Builder setFilters( * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addFilters(com.google.ads.admanager.v1.Report.Filter value) { + public Builder addFilters(com.google.ads.admanager.v1.ReportDefinition.Filter value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3003,10 +62515,11 @@ public Builder addFilters(com.google.ads.admanager.v1.Report.Filter value) { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addFilters(int index, com.google.ads.admanager.v1.Report.Filter value) { + public Builder addFilters( + int index, com.google.ads.admanager.v1.ReportDefinition.Filter value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3028,10 +62541,11 @@ public Builder addFilters(int index, com.google.ads.admanager.v1.Report.Filter v * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addFilters(com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { + public Builder addFilters( + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.add(builderForValue.build()); @@ -3050,11 +62564,11 @@ public Builder addFilters(com.google.ads.admanager.v1.Report.Filter.Builder buil * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addFilters( - int index, com.google.ads.admanager.v1.Report.Filter.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDefinition.Filter.Builder builderForValue) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.add(index, builderForValue.build()); @@ -3073,11 +62587,11 @@ public Builder addFilters( * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllFilters( - java.lang.Iterable values) { + java.lang.Iterable values) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filters_); @@ -3096,7 +62610,7 @@ public Builder addAllFilters( * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearFilters() { @@ -3118,7 +62632,7 @@ public Builder clearFilters() { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeFilters(int index) { @@ -3140,10 +62654,11 @@ public Builder removeFilters(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Filter.Builder getFiltersBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder getFiltersBuilder( + int index) { return getFiltersFieldBuilder().getBuilder(index); } @@ -3155,10 +62670,11 @@ public com.google.ads.admanager.v1.Report.Filter.Builder getFiltersBuilder(int i * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getFiltersOrBuilder( + int index) { if (filtersBuilder_ == null) { return filters_.get(index); } else { @@ -3174,10 +62690,10 @@ public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(in * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List + public java.util.List getFiltersOrBuilderList() { if (filtersBuilder_ != null) { return filtersBuilder_.getMessageOrBuilderList(); @@ -3194,12 +62710,12 @@ public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(in * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder addFiltersBuilder() { return getFiltersFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Filter.getDefaultInstance()); + .addBuilder(com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance()); } /** @@ -3210,12 +62726,14 @@ public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder() { * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Filter.Builder addFiltersBuilder( + int index) { return getFiltersFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Filter.getDefaultInstance()); + .addBuilder( + index, com.google.ads.admanager.v1.ReportDefinition.Filter.getDefaultInstance()); } /** @@ -3226,25 +62744,25 @@ public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder(int i * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List + public java.util.List getFiltersBuilderList() { return getFiltersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder> getFiltersFieldBuilder() { if (filtersBuilder_ == null) { filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Filter, - com.google.ads.admanager.v1.Report.Filter.Builder, - com.google.ads.admanager.v1.Report.FilterOrBuilder>( + com.google.ads.admanager.v1.ReportDefinition.Filter, + com.google.ads.admanager.v1.ReportDefinition.Filter.Builder, + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder>( filters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); filters_ = null; } @@ -3259,12 +62777,11 @@ public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder(int i *
          * Optional. Where to get the time zone for this report. Defaults to using the
          * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
    -     * field in the report definition must also be provided with the desired time
    -     * zone.
    +     * field in the report definition must also set a time zone.
          * 
    * * - * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for timeZoneSource. @@ -3280,12 +62797,11 @@ public int getTimeZoneSourceValue() { *
          * Optional. Where to get the time zone for this report. Defaults to using the
          * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
    -     * field in the report definition must also be provided with the desired time
    -     * zone.
    +     * field in the report definition must also set a time zone.
          * 
    * * - * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for timeZoneSource to set. @@ -3304,22 +62820,21 @@ public Builder setTimeZoneSourceValue(int value) { *
          * Optional. Where to get the time zone for this report. Defaults to using the
          * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
    -     * field in the report definition must also be provided with the desired time
    -     * zone.
    +     * field in the report definition must also set a time zone.
          * 
    * * - * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The timeZoneSource. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.TimeZoneSource getTimeZoneSource() { - com.google.ads.admanager.v1.Report.TimeZoneSource result = - com.google.ads.admanager.v1.Report.TimeZoneSource.forNumber(timeZoneSource_); + public com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource getTimeZoneSource() { + com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource result = + com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource.forNumber(timeZoneSource_); return result == null - ? com.google.ads.admanager.v1.Report.TimeZoneSource.UNRECOGNIZED + ? com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource.UNRECOGNIZED : result; } @@ -3329,18 +62844,18 @@ public com.google.ads.admanager.v1.Report.TimeZoneSource getTimeZoneSource() { *
          * Optional. Where to get the time zone for this report. Defaults to using the
          * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
    -     * field in the report definition must also be provided with the desired time
    -     * zone.
    +     * field in the report definition must also set a time zone.
          * 
    * * - * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The timeZoneSource to set. * @return This builder for chaining. */ - public Builder setTimeZoneSource(com.google.ads.admanager.v1.Report.TimeZoneSource value) { + public Builder setTimeZoneSource( + com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource value) { if (value == null) { throw new NullPointerException(); } @@ -3356,12 +62871,11 @@ public Builder setTimeZoneSource(com.google.ads.admanager.v1.Report.TimeZoneSour *
          * Optional. Where to get the time zone for this report. Defaults to using the
          * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
    -     * field in the report definition must also be provided with the desired time
    -     * zone.
    +     * field in the report definition must also set a time zone.
          * 
    * * - * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -3381,7 +62895,7 @@ public Builder clearTimeZoneSource() { *
          * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
          * this report. Leave empty for any other time zone source. Time zone in IANA
    -     * format (e.g. "America/New_York").
    +     * format. For example, "America/New_York".
          * 
    * * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3406,7 +62920,7 @@ public java.lang.String getTimeZone() { *
          * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
          * this report. Leave empty for any other time zone source. Time zone in IANA
    -     * format (e.g. "America/New_York").
    +     * format. For example, "America/New_York".
          * 
    * * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3431,7 +62945,7 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { *
          * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
          * this report. Leave empty for any other time zone source. Time zone in IANA
    -     * format (e.g. "America/New_York").
    +     * format. For example, "America/New_York".
          * 
    * * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3455,7 +62969,7 @@ public Builder setTimeZone(java.lang.String value) { *
          * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
          * this report. Leave empty for any other time zone source. Time zone in IANA
    -     * format (e.g. "America/New_York").
    +     * format. For example, "America/New_York".
          * 
    * * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3475,7 +62989,7 @@ public Builder clearTimeZone() { *
          * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
          * this report. Leave empty for any other time zone source. Time zone in IANA
    -     * format (e.g. "America/New_York").
    +     * format. For example, "America/New_York".
          * 
    * * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3610,11 +63124,11 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.ads.admanager.v1.Report.DateRange dateRange_; + private com.google.ads.admanager.v1.ReportDefinition.DateRange dateRange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange, - com.google.ads.admanager.v1.Report.DateRange.Builder, - com.google.ads.admanager.v1.Report.DateRangeOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.DateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder> dateRangeBuilder_; /** @@ -3625,7 +63139,7 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the dateRange field is set. @@ -3642,15 +63156,15 @@ public boolean hasDateRange() { * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * * * @return The dateRange. */ - public com.google.ads.admanager.v1.Report.DateRange getDateRange() { + public com.google.ads.admanager.v1.ReportDefinition.DateRange getDateRange() { if (dateRangeBuilder_ == null) { return dateRange_ == null - ? com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance() + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance() : dateRange_; } else { return dateRangeBuilder_.getMessage(); @@ -3665,10 +63179,10 @@ public com.google.ads.admanager.v1.Report.DateRange getDateRange() { * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder setDateRange(com.google.ads.admanager.v1.Report.DateRange value) { + public Builder setDateRange(com.google.ads.admanager.v1.ReportDefinition.DateRange value) { if (dateRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3690,11 +63204,11 @@ public Builder setDateRange(com.google.ads.admanager.v1.Report.DateRange value) * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setDateRange( - com.google.ads.admanager.v1.Report.DateRange.Builder builderForValue) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder builderForValue) { if (dateRangeBuilder_ == null) { dateRange_ = builderForValue.build(); } else { @@ -3713,14 +63227,15 @@ public Builder setDateRange( * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder mergeDateRange(com.google.ads.admanager.v1.Report.DateRange value) { + public Builder mergeDateRange(com.google.ads.admanager.v1.ReportDefinition.DateRange value) { if (dateRangeBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && dateRange_ != null - && dateRange_ != com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance()) { + && dateRange_ + != com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance()) { getDateRangeBuilder().mergeFrom(value); } else { dateRange_ = value; @@ -3743,7 +63258,7 @@ public Builder mergeDateRange(com.google.ads.admanager.v1.Report.DateRange value * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearDateRange() { @@ -3765,10 +63280,10 @@ public Builder clearDateRange() { * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * */ - public com.google.ads.admanager.v1.Report.DateRange.Builder getDateRangeBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder getDateRangeBuilder() { bitField0_ |= 0x00000040; onChanged(); return getDateRangeFieldBuilder().getBuilder(); @@ -3782,15 +63297,15 @@ public com.google.ads.admanager.v1.Report.DateRange.Builder getDateRangeBuilder( * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * */ - public com.google.ads.admanager.v1.Report.DateRangeOrBuilder getDateRangeOrBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder getDateRangeOrBuilder() { if (dateRangeBuilder_ != null) { return dateRangeBuilder_.getMessageOrBuilder(); } else { return dateRange_ == null - ? com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance() + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance() : dateRange_; } } @@ -3803,31 +63318,31 @@ public com.google.ads.admanager.v1.Report.DateRangeOrBuilder getDateRangeOrBuild * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange, - com.google.ads.admanager.v1.Report.DateRange.Builder, - com.google.ads.admanager.v1.Report.DateRangeOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.DateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder> getDateRangeFieldBuilder() { if (dateRangeBuilder_ == null) { dateRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange, - com.google.ads.admanager.v1.Report.DateRange.Builder, - com.google.ads.admanager.v1.Report.DateRangeOrBuilder>( + com.google.ads.admanager.v1.ReportDefinition.DateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder>( getDateRange(), getParentForChildren(), isClean()); dateRange_ = null; } return dateRangeBuilder_; } - private com.google.ads.admanager.v1.Report.DateRange comparisonDateRange_; + private com.google.ads.admanager.v1.ReportDefinition.DateRange comparisonDateRange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange, - com.google.ads.admanager.v1.Report.DateRange.Builder, - com.google.ads.admanager.v1.Report.DateRangeOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.DateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder> comparisonDateRangeBuilder_; /** @@ -3835,11 +63350,11 @@ public com.google.ads.admanager.v1.Report.DateRangeOrBuilder getDateRangeOrBuild * *
          * Optional. The comparison date range of this report. If unspecified, the
    -     * report will not have any comparison metrics.
    +     * report won't have any comparison metrics.
          * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the comparisonDateRange field is set. @@ -3853,19 +63368,19 @@ public boolean hasComparisonDateRange() { * *
          * Optional. The comparison date range of this report. If unspecified, the
    -     * report will not have any comparison metrics.
    +     * report won't have any comparison metrics.
          * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The comparisonDateRange. */ - public com.google.ads.admanager.v1.Report.DateRange getComparisonDateRange() { + public com.google.ads.admanager.v1.ReportDefinition.DateRange getComparisonDateRange() { if (comparisonDateRangeBuilder_ == null) { return comparisonDateRange_ == null - ? com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance() + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance() : comparisonDateRange_; } else { return comparisonDateRangeBuilder_.getMessage(); @@ -3877,14 +63392,15 @@ public com.google.ads.admanager.v1.Report.DateRange getComparisonDateRange() { * *
          * Optional. The comparison date range of this report. If unspecified, the
    -     * report will not have any comparison metrics.
    +     * report won't have any comparison metrics.
          * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setComparisonDateRange(com.google.ads.admanager.v1.Report.DateRange value) { + public Builder setComparisonDateRange( + com.google.ads.admanager.v1.ReportDefinition.DateRange value) { if (comparisonDateRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3903,15 +63419,15 @@ public Builder setComparisonDateRange(com.google.ads.admanager.v1.Report.DateRan * *
          * Optional. The comparison date range of this report. If unspecified, the
    -     * report will not have any comparison metrics.
    +     * report won't have any comparison metrics.
          * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setComparisonDateRange( - com.google.ads.admanager.v1.Report.DateRange.Builder builderForValue) { + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder builderForValue) { if (comparisonDateRangeBuilder_ == null) { comparisonDateRange_ = builderForValue.build(); } else { @@ -3927,19 +63443,20 @@ public Builder setComparisonDateRange( * *
          * Optional. The comparison date range of this report. If unspecified, the
    -     * report will not have any comparison metrics.
    +     * report won't have any comparison metrics.
          * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeComparisonDateRange(com.google.ads.admanager.v1.Report.DateRange value) { + public Builder mergeComparisonDateRange( + com.google.ads.admanager.v1.ReportDefinition.DateRange value) { if (comparisonDateRangeBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && comparisonDateRange_ != null && comparisonDateRange_ - != com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance()) { + != com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance()) { getComparisonDateRangeBuilder().mergeFrom(value); } else { comparisonDateRange_ = value; @@ -3959,11 +63476,11 @@ public Builder mergeComparisonDateRange(com.google.ads.admanager.v1.Report.DateR * *
          * Optional. The comparison date range of this report. If unspecified, the
    -     * report will not have any comparison metrics.
    +     * report won't have any comparison metrics.
          * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearComparisonDateRange() { @@ -3982,14 +63499,15 @@ public Builder clearComparisonDateRange() { * *
          * Optional. The comparison date range of this report. If unspecified, the
    -     * report will not have any comparison metrics.
    +     * report won't have any comparison metrics.
          * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.DateRange.Builder getComparisonDateRangeBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder + getComparisonDateRangeBuilder() { bitField0_ |= 0x00000080; onChanged(); return getComparisonDateRangeFieldBuilder().getBuilder(); @@ -4000,19 +63518,20 @@ public com.google.ads.admanager.v1.Report.DateRange.Builder getComparisonDateRan * *
          * Optional. The comparison date range of this report. If unspecified, the
    -     * report will not have any comparison metrics.
    +     * report won't have any comparison metrics.
          * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.DateRangeOrBuilder getComparisonDateRangeOrBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder + getComparisonDateRangeOrBuilder() { if (comparisonDateRangeBuilder_ != null) { return comparisonDateRangeBuilder_.getMessageOrBuilder(); } else { return comparisonDateRange_ == null - ? com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance() + ? com.google.ads.admanager.v1.ReportDefinition.DateRange.getDefaultInstance() : comparisonDateRange_; } } @@ -4022,24 +63541,24 @@ public com.google.ads.admanager.v1.Report.DateRangeOrBuilder getComparisonDateRa * *
          * Optional. The comparison date range of this report. If unspecified, the
    -     * report will not have any comparison metrics.
    +     * report won't have any comparison metrics.
          * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange, - com.google.ads.admanager.v1.Report.DateRange.Builder, - com.google.ads.admanager.v1.Report.DateRangeOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.DateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder> getComparisonDateRangeFieldBuilder() { if (comparisonDateRangeBuilder_ == null) { comparisonDateRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Report.DateRange, - com.google.ads.admanager.v1.Report.DateRange.Builder, - com.google.ads.admanager.v1.Report.DateRangeOrBuilder>( + com.google.ads.admanager.v1.ReportDefinition.DateRange, + com.google.ads.admanager.v1.ReportDefinition.DateRange.Builder, + com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder>( getComparisonDateRange(), getParentForChildren(), isClean()); comparisonDateRange_ = null; } @@ -4733,7 +64252,7 @@ public Builder clearCreativeCustomFieldIds() { * * * - * .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for reportType. @@ -4751,7 +64270,7 @@ public int getReportTypeValue() { * * * - * .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for reportType to set. @@ -4772,16 +64291,18 @@ public Builder setReportTypeValue(int value) { * * * - * .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The reportType. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.ReportType getReportType() { - com.google.ads.admanager.v1.Report.ReportType result = - com.google.ads.admanager.v1.Report.ReportType.forNumber(reportType_); - return result == null ? com.google.ads.admanager.v1.Report.ReportType.UNRECOGNIZED : result; + public com.google.ads.admanager.v1.ReportDefinition.ReportType getReportType() { + com.google.ads.admanager.v1.ReportDefinition.ReportType result = + com.google.ads.admanager.v1.ReportDefinition.ReportType.forNumber(reportType_); + return result == null + ? com.google.ads.admanager.v1.ReportDefinition.ReportType.UNRECOGNIZED + : result; } /** @@ -4792,13 +64313,13 @@ public com.google.ads.admanager.v1.Report.ReportType getReportType() { * * * - * .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The reportType to set. * @return This builder for chaining. */ - public Builder setReportType(com.google.ads.admanager.v1.Report.ReportType value) { + public Builder setReportType(com.google.ads.admanager.v1.ReportDefinition.ReportType value) { if (value == null) { throw new NullPointerException(); } @@ -4816,7 +64337,7 @@ public Builder setReportType(com.google.ads.admanager.v1.Report.ReportType value * * * - * .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. @@ -4843,7 +64364,7 @@ public Builder clearReportType() { * * * - * .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for timePeriodColumn. @@ -4866,7 +64387,7 @@ public int getTimePeriodColumnValue() { * * * - * .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for timePeriodColumn to set. @@ -4892,17 +64413,18 @@ public Builder setTimePeriodColumnValue(int value) { * * * - * .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The timePeriodColumn. */ @java.lang.Override - public com.google.ads.admanager.v1.Report.TimePeriodColumn getTimePeriodColumn() { - com.google.ads.admanager.v1.Report.TimePeriodColumn result = - com.google.ads.admanager.v1.Report.TimePeriodColumn.forNumber(timePeriodColumn_); + public com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn getTimePeriodColumn() { + com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn result = + com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn.forNumber( + timePeriodColumn_); return result == null - ? com.google.ads.admanager.v1.Report.TimePeriodColumn.UNRECOGNIZED + ? com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn.UNRECOGNIZED : result; } @@ -4919,13 +64441,14 @@ public com.google.ads.admanager.v1.Report.TimePeriodColumn getTimePeriodColumn() * * * - * .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The timePeriodColumn to set. * @return This builder for chaining. */ - public Builder setTimePeriodColumn(com.google.ads.admanager.v1.Report.TimePeriodColumn value) { + public Builder setTimePeriodColumn( + com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn value) { if (value == null) { throw new NullPointerException(); } @@ -4948,7 +64471,7 @@ public Builder setTimePeriodColumn(com.google.ads.admanager.v1.Report.TimePeriod * * * - * .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -4960,20 +64483,20 @@ public Builder clearTimePeriodColumn() { return this; } - private java.util.List flags_ = + private java.util.List flags_ = java.util.Collections.emptyList(); private void ensureFlagsIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { - flags_ = new java.util.ArrayList(flags_); + flags_ = new java.util.ArrayList(flags_); bitField0_ |= 0x00004000; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Flag, - com.google.ads.admanager.v1.Report.Flag.Builder, - com.google.ads.admanager.v1.Report.FlagOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.Flag, + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder, + com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder> flagsBuilder_; /** @@ -4985,10 +64508,10 @@ private void ensureFlagsIsMutable() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List getFlagsList() { + public java.util.List getFlagsList() { if (flagsBuilder_ == null) { return java.util.Collections.unmodifiableList(flags_); } else { @@ -5005,7 +64528,7 @@ public java.util.List getFlagsList() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getFlagsCount() { @@ -5025,10 +64548,10 @@ public int getFlagsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Flag getFlags(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Flag getFlags(int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { @@ -5045,10 +64568,10 @@ public com.google.ads.admanager.v1.Report.Flag getFlags(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setFlags(int index, com.google.ads.admanager.v1.Report.Flag value) { + public Builder setFlags(int index, com.google.ads.admanager.v1.ReportDefinition.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5071,11 +64594,11 @@ public Builder setFlags(int index, com.google.ads.admanager.v1.Report.Flag value * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setFlags( - int index, com.google.ads.admanager.v1.Report.Flag.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDefinition.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.set(index, builderForValue.build()); @@ -5095,10 +64618,10 @@ public Builder setFlags( * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addFlags(com.google.ads.admanager.v1.Report.Flag value) { + public Builder addFlags(com.google.ads.admanager.v1.ReportDefinition.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5121,10 +64644,10 @@ public Builder addFlags(com.google.ads.admanager.v1.Report.Flag value) { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addFlags(int index, com.google.ads.admanager.v1.Report.Flag value) { + public Builder addFlags(int index, com.google.ads.admanager.v1.ReportDefinition.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5147,10 +64670,11 @@ public Builder addFlags(int index, com.google.ads.admanager.v1.Report.Flag value * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addFlags(com.google.ads.admanager.v1.Report.Flag.Builder builderForValue) { + public Builder addFlags( + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(builderForValue.build()); @@ -5170,11 +64694,11 @@ public Builder addFlags(com.google.ads.admanager.v1.Report.Flag.Builder builderF * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addFlags( - int index, com.google.ads.admanager.v1.Report.Flag.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDefinition.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(index, builderForValue.build()); @@ -5194,11 +64718,11 @@ public Builder addFlags( * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllFlags( - java.lang.Iterable values) { + java.lang.Iterable values) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, flags_); @@ -5218,7 +64742,7 @@ public Builder addAllFlags( * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearFlags() { @@ -5241,7 +64765,7 @@ public Builder clearFlags() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeFlags(int index) { @@ -5264,10 +64788,10 @@ public Builder removeFlags(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Flag.Builder getFlagsBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Flag.Builder getFlagsBuilder(int index) { return getFlagsFieldBuilder().getBuilder(index); } @@ -5280,10 +64804,10 @@ public com.google.ads.admanager.v1.Report.Flag.Builder getFlagsBuilder(int index * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder getFlagsOrBuilder(int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { @@ -5300,10 +64824,10 @@ public com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int in * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List + public java.util.List getFlagsOrBuilderList() { if (flagsBuilder_ != null) { return flagsBuilder_.getMessageOrBuilderList(); @@ -5321,12 +64845,12 @@ public com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int in * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Flag.Builder addFlagsBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.Flag.Builder addFlagsBuilder() { return getFlagsFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Flag.getDefaultInstance()); + .addBuilder(com.google.ads.admanager.v1.ReportDefinition.Flag.getDefaultInstance()); } /** @@ -5338,12 +64862,13 @@ public com.google.ads.admanager.v1.Report.Flag.Builder addFlagsBuilder() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Flag.Builder addFlagsBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Flag.Builder addFlagsBuilder(int index) { return getFlagsFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Flag.getDefaultInstance()); + .addBuilder( + index, com.google.ads.admanager.v1.ReportDefinition.Flag.getDefaultInstance()); } /** @@ -5355,44 +64880,45 @@ public com.google.ads.admanager.v1.Report.Flag.Builder addFlagsBuilder(int index * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List getFlagsBuilderList() { + public java.util.List + getFlagsBuilderList() { return getFlagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Flag, - com.google.ads.admanager.v1.Report.Flag.Builder, - com.google.ads.admanager.v1.Report.FlagOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.Flag, + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder, + com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder> getFlagsFieldBuilder() { if (flagsBuilder_ == null) { flagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Flag, - com.google.ads.admanager.v1.Report.Flag.Builder, - com.google.ads.admanager.v1.Report.FlagOrBuilder>( + com.google.ads.admanager.v1.ReportDefinition.Flag, + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder, + com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder>( flags_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); flags_ = null; } return flagsBuilder_; } - private java.util.List sorts_ = + private java.util.List sorts_ = java.util.Collections.emptyList(); private void ensureSortsIsMutable() { if (!((bitField0_ & 0x00008000) != 0)) { - sorts_ = new java.util.ArrayList(sorts_); + sorts_ = new java.util.ArrayList(sorts_); bitField0_ |= 0x00008000; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Sort, - com.google.ads.admanager.v1.Report.Sort.Builder, - com.google.ads.admanager.v1.Report.SortOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.Sort, + com.google.ads.admanager.v1.ReportDefinition.Sort.Builder, + com.google.ads.admanager.v1.ReportDefinition.SortOrBuilder> sortsBuilder_; /** @@ -5403,10 +64929,10 @@ private void ensureSortsIsMutable() { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List getSortsList() { + public java.util.List getSortsList() { if (sortsBuilder_ == null) { return java.util.Collections.unmodifiableList(sorts_); } else { @@ -5422,7 +64948,7 @@ public java.util.List getSortsList() { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getSortsCount() { @@ -5441,10 +64967,10 @@ public int getSortsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Sort getSorts(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Sort getSorts(int index) { if (sortsBuilder_ == null) { return sorts_.get(index); } else { @@ -5460,10 +64986,10 @@ public com.google.ads.admanager.v1.Report.Sort getSorts(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSorts(int index, com.google.ads.admanager.v1.Report.Sort value) { + public Builder setSorts(int index, com.google.ads.admanager.v1.ReportDefinition.Sort value) { if (sortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5485,11 +65011,11 @@ public Builder setSorts(int index, com.google.ads.admanager.v1.Report.Sort value * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSorts( - int index, com.google.ads.admanager.v1.Report.Sort.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDefinition.Sort.Builder builderForValue) { if (sortsBuilder_ == null) { ensureSortsIsMutable(); sorts_.set(index, builderForValue.build()); @@ -5508,10 +65034,10 @@ public Builder setSorts( * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addSorts(com.google.ads.admanager.v1.Report.Sort value) { + public Builder addSorts(com.google.ads.admanager.v1.ReportDefinition.Sort value) { if (sortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5533,10 +65059,10 @@ public Builder addSorts(com.google.ads.admanager.v1.Report.Sort value) { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addSorts(int index, com.google.ads.admanager.v1.Report.Sort value) { + public Builder addSorts(int index, com.google.ads.admanager.v1.ReportDefinition.Sort value) { if (sortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5558,10 +65084,11 @@ public Builder addSorts(int index, com.google.ads.admanager.v1.Report.Sort value * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addSorts(com.google.ads.admanager.v1.Report.Sort.Builder builderForValue) { + public Builder addSorts( + com.google.ads.admanager.v1.ReportDefinition.Sort.Builder builderForValue) { if (sortsBuilder_ == null) { ensureSortsIsMutable(); sorts_.add(builderForValue.build()); @@ -5580,11 +65107,11 @@ public Builder addSorts(com.google.ads.admanager.v1.Report.Sort.Builder builderF * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addSorts( - int index, com.google.ads.admanager.v1.Report.Sort.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDefinition.Sort.Builder builderForValue) { if (sortsBuilder_ == null) { ensureSortsIsMutable(); sorts_.add(index, builderForValue.build()); @@ -5603,11 +65130,11 @@ public Builder addSorts( * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllSorts( - java.lang.Iterable values) { + java.lang.Iterable values) { if (sortsBuilder_ == null) { ensureSortsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sorts_); @@ -5626,7 +65153,7 @@ public Builder addAllSorts( * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSorts() { @@ -5648,7 +65175,7 @@ public Builder clearSorts() { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeSorts(int index) { @@ -5670,10 +65197,10 @@ public Builder removeSorts(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Sort.Builder getSortsBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Sort.Builder getSortsBuilder(int index) { return getSortsFieldBuilder().getBuilder(index); } @@ -5685,10 +65212,10 @@ public com.google.ads.admanager.v1.Report.Sort.Builder getSortsBuilder(int index * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.SortOrBuilder getSortsOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.SortOrBuilder getSortsOrBuilder(int index) { if (sortsBuilder_ == null) { return sorts_.get(index); } else { @@ -5704,10 +65231,10 @@ public com.google.ads.admanager.v1.Report.SortOrBuilder getSortsOrBuilder(int in * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List + public java.util.List getSortsOrBuilderList() { if (sortsBuilder_ != null) { return sortsBuilder_.getMessageOrBuilderList(); @@ -5724,12 +65251,12 @@ public com.google.ads.admanager.v1.Report.SortOrBuilder getSortsOrBuilder(int in * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Sort.Builder addSortsBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.Sort.Builder addSortsBuilder() { return getSortsFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Sort.getDefaultInstance()); + .addBuilder(com.google.ads.admanager.v1.ReportDefinition.Sort.getDefaultInstance()); } /** @@ -5740,12 +65267,13 @@ public com.google.ads.admanager.v1.Report.Sort.Builder addSortsBuilder() { * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Sort.Builder addSortsBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Sort.Builder addSortsBuilder(int index) { return getSortsFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Sort.getDefaultInstance()); + .addBuilder( + index, com.google.ads.admanager.v1.ReportDefinition.Sort.getDefaultInstance()); } /** @@ -5756,24 +65284,25 @@ public com.google.ads.admanager.v1.Report.Sort.Builder addSortsBuilder(int index * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List getSortsBuilderList() { + public java.util.List + getSortsBuilderList() { return getSortsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Sort, - com.google.ads.admanager.v1.Report.Sort.Builder, - com.google.ads.admanager.v1.Report.SortOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.Sort, + com.google.ads.admanager.v1.ReportDefinition.Sort.Builder, + com.google.ads.admanager.v1.ReportDefinition.SortOrBuilder> getSortsFieldBuilder() { if (sortsBuilder_ == null) { sortsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Sort, - com.google.ads.admanager.v1.Report.Sort.Builder, - com.google.ads.admanager.v1.Report.SortOrBuilder>( + com.google.ads.admanager.v1.ReportDefinition.Sort, + com.google.ads.admanager.v1.ReportDefinition.Sort.Builder, + com.google.ads.admanager.v1.ReportDefinition.SortOrBuilder>( sorts_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); sorts_ = null; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionOrBuilder.java index 2779f064d7ee..9b3fadf07cfc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionOrBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_messages.proto +// source: google/ads/admanager/v1/report_definition.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; @@ -33,12 +33,12 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the dimensions. */ - java.util.List getDimensionsList(); + java.util.List getDimensionsList(); /** * @@ -49,7 +49,7 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return The count of dimensions. @@ -65,13 +65,13 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the element to return. * @return The dimensions at the given index. */ - com.google.ads.admanager.v1.Report.Dimension getDimensions(int index); + com.google.ads.admanager.v1.ReportDefinition.Dimension getDimensions(int index); /** * @@ -82,7 +82,7 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the enum numeric values on the wire for dimensions. @@ -98,7 +98,7 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the value to return. @@ -115,12 +115,12 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the metrics. */ - java.util.List getMetricsList(); + java.util.List getMetricsList(); /** * @@ -131,7 +131,7 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The count of metrics. @@ -147,13 +147,13 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the element to return. * @return The metrics at the given index. */ - com.google.ads.admanager.v1.Report.Metric getMetrics(int index); + com.google.ads.admanager.v1.ReportDefinition.Metric getMetrics(int index); /** * @@ -164,7 +164,7 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the enum numeric values on the wire for metrics. @@ -180,7 +180,7 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.ads.admanager.v1.ReportDefinition.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the value to return. @@ -196,10 +196,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List getFiltersList(); + java.util.List getFiltersList(); /** * @@ -209,10 +209,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.ads.admanager.v1.Report.Filter getFilters(int index); + com.google.ads.admanager.v1.ReportDefinition.Filter getFilters(int index); /** * @@ -222,7 +222,7 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ int getFiltersCount(); @@ -235,10 +235,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List + java.util.List getFiltersOrBuilderList(); /** @@ -249,10 +249,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(int index); + com.google.ads.admanager.v1.ReportDefinition.FilterOrBuilder getFiltersOrBuilder(int index); /** * @@ -260,12 +260,11 @@ public interface ReportDefinitionOrBuilder *
        * Optional. Where to get the time zone for this report. Defaults to using the
        * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
    -   * field in the report definition must also be provided with the desired time
    -   * zone.
    +   * field in the report definition must also set a time zone.
        * 
    * * - * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for timeZoneSource. @@ -278,17 +277,16 @@ public interface ReportDefinitionOrBuilder *
        * Optional. Where to get the time zone for this report. Defaults to using the
        * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
    -   * field in the report definition must also be provided with the desired time
    -   * zone.
    +   * field in the report definition must also set a time zone.
        * 
    * * - * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The timeZoneSource. */ - com.google.ads.admanager.v1.Report.TimeZoneSource getTimeZoneSource(); + com.google.ads.admanager.v1.ReportDefinition.TimeZoneSource getTimeZoneSource(); /** * @@ -296,7 +294,7 @@ public interface ReportDefinitionOrBuilder *
        * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
        * this report. Leave empty for any other time zone source. Time zone in IANA
    -   * format (e.g. "America/New_York").
    +   * format. For example, "America/New_York".
        * 
    * * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -311,7 +309,7 @@ public interface ReportDefinitionOrBuilder *
        * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
        * this report. Leave empty for any other time zone source. Time zone in IANA
    -   * format (e.g. "America/New_York").
    +   * format. For example, "America/New_York".
        * 
    * * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -356,7 +354,7 @@ public interface ReportDefinitionOrBuilder * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the dateRange field is set. @@ -371,12 +369,12 @@ public interface ReportDefinitionOrBuilder * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * * * @return The dateRange. */ - com.google.ads.admanager.v1.Report.DateRange getDateRange(); + com.google.ads.admanager.v1.ReportDefinition.DateRange getDateRange(); /** * @@ -386,21 +384,21 @@ public interface ReportDefinitionOrBuilder * * * - * .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; * */ - com.google.ads.admanager.v1.Report.DateRangeOrBuilder getDateRangeOrBuilder(); + com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder getDateRangeOrBuilder(); /** * * *
        * Optional. The comparison date range of this report. If unspecified, the
    -   * report will not have any comparison metrics.
    +   * report won't have any comparison metrics.
        * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the comparisonDateRange field is set. @@ -412,30 +410,30 @@ public interface ReportDefinitionOrBuilder * *
        * Optional. The comparison date range of this report. If unspecified, the
    -   * report will not have any comparison metrics.
    +   * report won't have any comparison metrics.
        * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The comparisonDateRange. */ - com.google.ads.admanager.v1.Report.DateRange getComparisonDateRange(); + com.google.ads.admanager.v1.ReportDefinition.DateRange getComparisonDateRange(); /** * * *
        * Optional. The comparison date range of this report. If unspecified, the
    -   * report will not have any comparison metrics.
    +   * report won't have any comparison metrics.
        * 
    * * - * optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.ReportDefinition.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.ads.admanager.v1.Report.DateRangeOrBuilder getComparisonDateRangeOrBuilder(); + com.google.ads.admanager.v1.ReportDefinition.DateRangeOrBuilder getComparisonDateRangeOrBuilder(); /** * @@ -653,7 +651,7 @@ public interface ReportDefinitionOrBuilder * * * - * .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for reportType. @@ -668,12 +666,12 @@ public interface ReportDefinitionOrBuilder * * * - * .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.ReportDefinition.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The reportType. */ - com.google.ads.admanager.v1.Report.ReportType getReportType(); + com.google.ads.admanager.v1.ReportDefinition.ReportType getReportType(); /** * @@ -688,7 +686,7 @@ public interface ReportDefinitionOrBuilder * * * - * .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for timePeriodColumn. @@ -708,12 +706,12 @@ public interface ReportDefinitionOrBuilder * * * - * .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.ReportDefinition.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The timePeriodColumn. */ - com.google.ads.admanager.v1.Report.TimePeriodColumn getTimePeriodColumn(); + com.google.ads.admanager.v1.ReportDefinition.TimePeriodColumn getTimePeriodColumn(); /** * @@ -724,10 +722,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List getFlagsList(); + java.util.List getFlagsList(); /** * @@ -738,10 +736,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.ads.admanager.v1.Report.Flag getFlags(int index); + com.google.ads.admanager.v1.ReportDefinition.Flag getFlags(int index); /** * @@ -752,7 +750,7 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ int getFlagsCount(); @@ -766,10 +764,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List + java.util.List getFlagsOrBuilderList(); /** @@ -781,10 +779,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int index); + com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder getFlagsOrBuilder(int index); /** * @@ -794,10 +792,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List getSortsList(); + java.util.List getSortsList(); /** * @@ -807,10 +805,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.ads.admanager.v1.Report.Sort getSorts(int index); + com.google.ads.admanager.v1.ReportDefinition.Sort getSorts(int index); /** * @@ -820,7 +818,7 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ int getSortsCount(); @@ -833,10 +831,10 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List + java.util.List getSortsOrBuilderList(); /** @@ -847,8 +845,8 @@ public interface ReportDefinitionOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.ads.admanager.v1.Report.SortOrBuilder getSortsOrBuilder(int index); + com.google.ads.admanager.v1.ReportDefinition.SortOrBuilder getSortsOrBuilder(int index); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionProto.java new file mode 100644 index 000000000000..49946304197e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionProto.java @@ -0,0 +1,1525 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/report_definition.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ReportDefinitionProto { + private ReportDefinitionProto() {} + + 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_admanager_v1_ReportDefinition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_Field_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_Field_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_Sort_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_Sort_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_Slice_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_Slice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_Flag_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_Flag_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/admanager/v1/report_definit" + + "ion.proto\022\027google.ads.admanager.v1\032*goog" + + "le/ads/admanager/v1/report_value.proto\032\037" + + "google/api/field_behavior.proto\032\026google/type/date.proto\"\350\324\002\n" + + "\020ReportDefinition\022L\n" + + "\n" + + "dimensions\030\001" + + " \003(\01623.google.ads.admanager.v1.ReportDefinition.DimensionB\003\340A\002\022F\n" + + "\007metrics\030\002" + + " \003(\01620.google.ads.admanager.v1.ReportDefinition.MetricB\003\340A\002\022F\n" + + "\007filters\030\003" + + " \003(\01320.google.ads.admanager.v1.ReportDefinition.FilterB\003\340A\001\022W\n" + + "\020time_zone_source\030\024" + + " \001(\01628.google.ads.admanager.v1.ReportDefinition.TimeZoneSourceB\003\340A\001\022\026\n" + + "\ttime_zone\030\004 \001(\tB\003\340A\001\022\032\n\r" + + "currency_code\030\005 \001(\tB\003\340A\001\022L\n\n" + + "date_range\030\006 \001(\01323.google.ads.admana" + + "ger.v1.ReportDefinition.DateRangeB\003\340A\002\022\\\n" + + "\025comparison_date_range\030\t \001(\01323.google.a" + + "ds.admanager.v1.ReportDefinition.DateRangeB\003\340A\001H\000\210\001\001\022%\n" + + "\030custom_dimension_key_ids\030\007 \003(\003B\003\340A\001\022\'\n" + + "\032line_item_custom_field_ids\030\013 \003(\003B\003\340A\001\022#\n" + + "\026order_custom_field_ids\030\014 \003(\003B\003\340A\001\022&\n" + + "\031creative_custom_field_ids\030\r" + + " \003(\003B\003\340A\001\022N\n" + + "\013report_type\030\010 \001(\01624.google." + + "ads.admanager.v1.ReportDefinition.ReportTypeB\003\340A\002\022[\n" + + "\022time_period_column\030\n" + + " \001(\0162:." + + "google.ads.admanager.v1.ReportDefinition.TimePeriodColumnB\003\340A\001\022B\n" + + "\005flags\030\016 \003(\0132.." + + "google.ads.admanager.v1.ReportDefinition.FlagB\003\340A\001\022B\n" + + "\005sorts\030\017 \003(\0132..google.ads.a" + + "dmanager.v1.ReportDefinition.SortB\003\340A\001\032\236\001\n" + + "\005Field\022H\n" + + "\tdimension\030\001 \001(\01623.google.ads" + + ".admanager.v1.ReportDefinition.DimensionH\000\022B\n" + + "\006metric\030\002" + + " \001(\01620.google.ads.admanager.v1.ReportDefinition.MetricH\000B\007\n" + + "\005field\032\376\007\n" + + "\tDateRange\022S\n" + + "\005fixed\030\001 \001(\0132B.google.ad" + + "s.admanager.v1.ReportDefinition.DateRange.FixedDateRangeH\000\022Y\n" + + "\010relative\030\002 \001(\0162E.g" + + "oogle.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRangeH\000\032f\n" + + "\016FixedDateRange\022*\n\n" + + "start_date\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022(\n" + + "\010end_date\030\002 \001(\0132\021.google.type.DateB\003\340A\002\"\305\005\n" + + "\021RelativeDateRange\022#\n" + + "\037RELATIVE_DATE_RANGE_UNSPECIFIED\020\000\022\t\n" + + "\005TODAY\020\001\022\r\n" + + "\tYESTERDAY\020\002\022\r\n" + + "\tTHIS_WEEK\020\003\022\025\n" + + "\021THIS_WEEK_TO_DATE\020\035\022\016\n\n" + + "THIS_MONTH\020\004\022\026\n" + + "\022THIS_MONTH_TO_DATE\020\032\022\020\n" + + "\014THIS_QUARTER\020\005\022\030\n" + + "\024THIS_QUARTER_TO_DATE\020\033\022\r\n" + + "\tTHIS_YEAR\020\006\022\025\n" + + "\021THIS_YEAR_TO_DATE\020\034\022\r\n" + + "\tLAST_WEEK\020\007\022\016\n\n" + + "LAST_MONTH\020\010\022\020\n" + + "\014LAST_QUARTER\020\t\022\r\n" + + "\tLAST_YEAR\020\n" + + "\022\017\n" + + "\013LAST_7_DAYS\020\013\022\020\n" + + "\014LAST_30_DAYS\020\014\022\020\n" + + "\014LAST_60_DAYS\020\r" + + "\022\020\n" + + "\014LAST_90_DAYS\020\016\022\021\n\r" + + "LAST_180_DAYS\020\017\022\021\n\r" + + "LAST_360_DAYS\020\020\022\021\n\r" + + "LAST_365_DAYS\020\021\022\021\n\r" + + "LAST_3_MONTHS\020\022\022\021\n\r" + + "LAST_6_MONTHS\020\023\022\022\n" + + "\016LAST_12_MONTHS\020\024\022\021\n\r" + + "ALL_AVAILABLE\020\025\022\014\n" + + "\010TOMORROW\020\036\022\020\n" + + "\014NEXT_90_DAYS\020\037\022\016\n\n" + + "NEXT_MONTH\020 \022\021\n\r" + + "NEXT_3_MONTHS\020!\022\022\n" + + "\016NEXT_12_MONTHS\020\"\022\r\n" + + "\tNEXT_WEEK\020#\022\020\n" + + "\014NEXT_QUARTER\020$\022\030\n" + + "\024TO_END_OF_NEXT_MONTH\020%\022\023\n" + + "\017PREVIOUS_PERIOD\020\026\022\035\n" + + "\031SAME_PERIOD_PREVIOUS_YEAR\020\030B\021\n" + + "\017date_range_type\032\317\010\n" + + "\006Filter\022T\n" + + "\014field_filter\030\001 \001(\0132<.google.ads.admanager" + + ".v1.ReportDefinition.Filter.FieldFilterH\000\022F\n\n" + + "not_filter\030\002" + + " \001(\01320.google.ads.admanager.v1.ReportDefinition.FilterH\000\022Q\n\n" + + "and_filter\030\003" + + " \001(\0132;.google.ads.admanager.v1.ReportDefinition.Filter.FilterListH\000\022P\n" + + "\tor_filter\030\004 \001(\0132;.google.ads.admanager.v" + + "1.ReportDefinition.Filter.FilterListH\000\032\346\003\n" + + "\013FieldFilter\022C\n" + + "\005field\030\001 \001(\0132/.google.a" + + "ds.admanager.v1.ReportDefinition.FieldB\003\340A\002\022R\n" + + "\toperation\030\002 \001(\0162:.google.ads.adma" + + "nager.v1.ReportDefinition.Filter.OperationB\003\340A\002\0229\n" + + "\006values\030\003" + + " \003(\0132$.google.ads.admanager.v1.ReportValueB\003\340A\002\022H\n" + + "\005slice\030\004 \001(" + + "\0132/.google.ads.admanager.v1.ReportDefinition.SliceB\003\340A\001H\000\210\001\001\022#\n" + + "\021time_period_index\030\005 \001(\005B\003\340A\001H\001\210\001\001\022^\n" + + "\021metric_value_type\030\006" + + " \001(\01629.google.ads.admanager.v1.ReportDefinition.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" + + "\006_sliceB\024\n" + + "\022_time_period_indexB\024\n" + + "\022_metric_value_type\032T\n\n" + + "FilterList\022F\n" + + "\007filters\030\001 \003(\01320" + + ".google.ads.admanager.v1.ReportDefinition.FilterB\003\340A\002\"\272\001\n" + + "\tOperation\022\006\n" + + "\002IN\020\000\022\n\n" + + "\006NOT_IN\020\001\022\014\n" + + "\010CONTAINS\020\002\022\020\n" + + "\014NOT_CONTAINS\020\003\022\r\n" + + "\tLESS_THAN\020\004\022\024\n" + + "\020LESS_THAN_EQUALS\020\005\022\020\n" + + "\014GREATER_THAN\020\006\022\027\n" + + "\023GREATER_THAN_EQUALS\020\007\022\013\n" + + "\007BETWEEN\020\010\022\013\n" + + "\007MATCHES\020\t\022\017\n" + + "\013NOT_MATCHES\020\n" + + "B\006\n" + + "\004type\032\351\002\n" + + "\004Sort\022C\n" + + "\005field\030\001 \001(\0132/.goo" + + "gle.ads.admanager.v1.ReportDefinition.FieldB\003\340A\002\022\027\n\n" + + "descending\030\002 \001(\010B\003\340A\001\022H\n" + + "\005slice\030\003" + + " \001(\0132/.google.ads.admanager.v1.ReportDefinition.SliceB\003\340A\001H\000\210\001\001\022#\n" + + "\021time_period_index\030\004 \001(\005B\003\340A\001H\001\210\001\001\022^\n" + + "\021metric_value_type\030\005 \001(\01629.google.ads.admanager.v1.Re" + + "portDefinition.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" + + "\006_sliceB\024\n" + + "\022_time_period_indexB\024\n" + + "\022_metric_value_type\032\216\001\n" + + "\005Slice\022K\n" + + "\tdimension\030\001 " + + "\001(\01623.google.ads.admanager.v1.ReportDefinition.DimensionB\003\340A\002\0228\n" + + "\005value\030\002 \001(\0132$.google.ads.admanager.v1.ReportValueB\003\340A\002\032a\n" + + "\004Flag\022F\n" + + "\007filters\030\001 \003(\01320.google.ads.ad" + + "manager.v1.ReportDefinition.FilterB\003\340A\002\022\021\n" + + "\004name\030\002 \001(\tB\003\340A\001\"m\n\n" + + "ReportType\022\033\n" + + "\027REPORT_TYPE_UNSPECIFIED\020\000\022\016\n\n" + + "HISTORICAL\020\001\022\t\n" + + "\005REACH\020\005\022\031\n" + + "\025PRIVACY_AND_MESSAGING\020\006\022\014\n" + + "\010AD_SPEED\020\r" + + "\"\263\251\001\n" + + "\tDimension\022\031\n" + + "\025DIMENSION_UNSPECIFIED\020\000\022#\n" + + "\036ACTIVE_VIEW_MEASUREMENT_SOURCE\020\277\004\022(\n" + + "#ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME\020\300\004\022\035\n" + + "\030ADVERTISER_CREDIT_STATUS\020\333\003\022\"\n" + + "\035ADVERTISER_CREDIT_STATUS_NAME\020\334\003\022\033\n" + + "\026ADVERTISER_DOMAIN_NAME\020\362\001\022\033\n" + + "\026ADVERTISER_EXTERNAL_ID\020\344\001\022\022\n\r" + + "ADVERTISER_ID\020\203\001\022\026\n" + + "\021ADVERTISER_LABELS\020\346\001\022\031\n" + + "\024ADVERTISER_LABEL_IDS\020\345\001\022\024\n" + + "\017ADVERTISER_NAME\020\204\001\022\037\n" + + "\032ADVERTISER_PRIMARY_CONTACT\020\343\001\022\026\n" + + "\021ADVERTISER_STATUS\020\327\003\022\033\n" + + "\026ADVERTISER_STATUS_NAME\020\330\003\022\024\n" + + "\017ADVERTISER_TYPE\020\331\003\022\031\n" + + "\024ADVERTISER_TYPE_NAME\020\332\003\022\030\n" + + "\023ADVERTISER_VERTICAL\020\304\004\022\020\n" + + "\013ADX_PRODUCT\020\363\003\022\025\n" + + "\020ADX_PRODUCT_NAME\020\364\003\022\030\n" + + "\023AD_EXPERIENCES_TYPE\020\201\005\022\035\n" + + "\030AD_EXPERIENCES_TYPE_NAME\020\202\005\022\020\n" + + "\013AD_LOCATION\020\206\003\022\025\n" + + "\020AD_LOCATION_NAME\020\207\003\022\"\n" + + "\035AD_TECHNOLOGY_PROVIDER_DOMAIN\020\354\004\022\036\n" + + "\031AD_TECHNOLOGY_PROVIDER_ID\020\355\004\022 \n" + + "\033AD_TECHNOLOGY_PROVIDER_NAME\020\356\004\022\014\n" + + "\007AD_TYPE\020\361\003\022\021\n" + + "\014AD_TYPE_NAME\020\362\003\022\020\n" + + "\014AD_UNIT_CODE\020@\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_1\020A\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_10\020J\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_11\020K\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_12\020L\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_13\020M\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_14\020N\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_15\020O\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_16\020P\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_2\020B\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_3\020C\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_4\020D\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_5\020E\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_6\020F\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_7\020G\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_8\020H\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_9\020I\022\016\n\n" + + "AD_UNIT_ID\020\031\022\030\n" + + "\024AD_UNIT_ID_ALL_LEVEL\020\033\022\026\n" + + "\022AD_UNIT_ID_LEVEL_1\020\036\022\027\n" + + "\023AD_UNIT_ID_LEVEL_10\0200\022\027\n" + + "\023AD_UNIT_ID_LEVEL_11\0202\022\027\n" + + "\023AD_UNIT_ID_LEVEL_12\0204\022\027\n" + + "\023AD_UNIT_ID_LEVEL_13\0206\022\027\n" + + "\023AD_UNIT_ID_LEVEL_14\0208\022\027\n" + + "\023AD_UNIT_ID_LEVEL_15\020:\022\027\n" + + "\023AD_UNIT_ID_LEVEL_16\020<\022\026\n" + + "\022AD_UNIT_ID_LEVEL_2\020 \022\026\n" + + "\022AD_UNIT_ID_LEVEL_3\020\"\022\026\n" + + "\022AD_UNIT_ID_LEVEL_4\020$\022\026\n" + + "\022AD_UNIT_ID_LEVEL_5\020&\022\026\n" + + "\022AD_UNIT_ID_LEVEL_6\020(\022\026\n" + + "\022AD_UNIT_ID_LEVEL_7\020*\022\026\n" + + "\022AD_UNIT_ID_LEVEL_8\020,\022\026\n" + + "\022AD_UNIT_ID_LEVEL_9\020.\022\031\n" + + "\024AD_UNIT_ID_TOP_LEVEL\020\216\001\022\020\n" + + "\014AD_UNIT_NAME\020\032\022\032\n" + + "\026AD_UNIT_NAME_ALL_LEVEL\020\035\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_1\020\037\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_10\0201\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_11\0203\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_12\0205\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_13\0207\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_14\0209\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_15\020;\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_16\020=\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_2\020!\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_3\020#\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_4\020%\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_5\020\'\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_6\020)\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_7\020+\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_8\020-\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_9\020/\022\033\n" + + "\026AD_UNIT_NAME_TOP_LEVEL\020\217\001\022\031\n" + + "\025AD_UNIT_REWARD_AMOUNT\020?\022\027\n" + + "\023AD_UNIT_REWARD_TYPE\020>\022\023\n" + + "\016AD_UNIT_STATUS\020\316\001\022\030\n" + + "\023AD_UNIT_STATUS_NAME\020\317\001\022\026\n" + + "\021AGENCY_LEVEL_1_ID\020\265\004\022\030\n" + + "\023AGENCY_LEVEL_1_NAME\020\266\004\022\026\n" + + "\021AGENCY_LEVEL_2_ID\020\267\004\022\030\n" + + "\023AGENCY_LEVEL_2_NAME\020\270\004\022\026\n" + + "\021AGENCY_LEVEL_3_ID\020\271\004\022\030\n" + + "\023AGENCY_LEVEL_3_NAME\020\272\004\022\020\n" + + "\013AGE_BRACKET\020\374\003\022\025\n" + + "\020AGE_BRACKET_NAME\020\306\004\022-\n" + + "(APP_TRACKING_TRANSPARENCY_CONSENT_STATUS\020\272\003\0222\n" + + "-APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME\020\273\003\022\020\n" + + "\013APP_VERSION\020\210\003\022\031\n" + + "\024AUCTION_PACKAGE_DEAL\020\303\004\022\034\n" + + "\027AUCTION_PACKAGE_DEAL_ID\020\273\004\022!\n" + + "\034AUDIENCE_SEGMENT_ID_TARGETED\020\310\004\022\036\n" + + "\031AUDIENCE_SEGMENT_TARGETED\020\311\004\022\033\n" + + "\026AUTO_REFRESHED_TRAFFIC\020\245\003\022 \n" + + "\033AUTO_REFRESHED_TRAFFIC_NAME\020\246\003\022\030\n" + + "\023BIDDER_ENCRYPTED_ID\020\355\003\022\020\n" + + "\013BIDDER_NAME\020\356\003\022\016\n" + + "\tBID_RANGE\020\247\005\022\031\n" + + "\024BID_REJECTION_REASON\020\327\004\022\036\n" + + "\031BID_REJECTION_REASON_NAME\020\330\004\022\022\n\r" + + "BRANDING_TYPE\020\377\002\022\027\n" + + "\022BRANDING_TYPE_NAME\020\200\003\022\024\n" + + "\020BROWSER_CATEGORY\020w\022\031\n" + + "\025BROWSER_CATEGORY_NAME\020x\022\017\n\n" + + "BROWSER_ID\020\353\001\022\021\n" + + "\014BROWSER_NAME\020\354\001\022\025\n" + + "\020BUYER_NETWORK_ID\020\300\003\022\027\n" + + "\022BUYER_NETWORK_NAME\020\301\003\022\034\n" + + "\027CALLOUT_STATUS_CATEGORY\020\314\004\022!\n" + + "\034CALLOUT_STATUS_CATEGORY_NAME\020\315\004\022\017\n\n" + + "CARRIER_ID\020\361\002\022\021\n" + + "\014CARRIER_NAME\020\360\002\022\014\n" + + "\007CHANNEL\020\365\003\022\027\n" + + "\022CHILD_NETWORK_CODE\020\236\004\022\025\n" + + "\020CHILD_NETWORK_ID\020\240\004\022\027\n" + + "\022CHILD_PARTNER_NAME\020\237\004\022\014\n" + + "\007CITY_ID\020\313\003\022\016\n" + + "\tCITY_NAME\020\304\003\022\035\n" + + "\030CLASSIFIED_ADVERTISER_ID\020\205\001\022\037\n" + + "\032CLASSIFIED_ADVERTISER_NAME\020\206\001\022\030\n" + + "\023CLASSIFIED_BRAND_ID\020\363\001\022\032\n" + + "\025CLASSIFIED_BRAND_NAME\020\364\001\022\025\n" + + "\020CONTENT_CMS_NAME\020\203\005\022\031\n" + + "\024CONTENT_CMS_VIDEO_ID\020\204\005\022\017\n\n" + + "CONTENT_ID\020\366\001\022\035\n" + + "\030CONTENT_MAPPING_PRESENCE\020\333\005\022\"\n" + + "\035CONTENT_MAPPING_PRESENCE_NAME\020\334\005\022\021\n" + + "\014CONTENT_NAME\020\367\001\022\016\n" + + "\tCONTINENT\020\325\003\022\023\n" + + "\016CONTINENT_NAME\020\326\003\022\021\n" + + "\014COUNTRY_CODE\020\322\003\022\016\n\n" + + "COUNTRY_ID\020\013\022\020\n" + + "\014COUNTRY_NAME\020\014\022\032\n" + + "\025CREATIVE_BILLING_TYPE\020\356\002\022\037\n" + + "\032CREATIVE_BILLING_TYPE_NAME\020\357\002\022\037\n" + + "\032CREATIVE_CLICK_THROUGH_URL\020\256\001\022\020\n" + + "\013CREATIVE_ID\020\212\001\022\022\n\r" + + "CREATIVE_NAME\020\213\001\022 \n" + + "\033CREATIVE_POLICIES_FILTERING\020\307\005\022%\n" + + " CREATIVE_POLICIES_FILTERING_NAME\020\310\005\022#\n" + + "\036CREATIVE_PROTECTIONS_FILTERING\020\300\005\022(\n" + + "#CREATIVE_PROTECTIONS_FILTERING_NAME\020\301\005\022\033\n" + + "\026CREATIVE_SET_ROLE_TYPE\020\256\005\022 \n" + + "\033CREATIVE_SET_ROLE_TYPE_NAME\020\257\005\022\030\n" + + "\023CREATIVE_TECHNOLOGY\020\224\001\022\035\n" + + "\030CREATIVE_TECHNOLOGY_NAME\020\225\001\022 \n" + + "\033CREATIVE_THIRD_PARTY_VENDOR\020\351\002\022\022\n\r" + + "CREATIVE_TYPE\020\330\002\022\027\n" + + "\022CREATIVE_TYPE_NAME\020\331\002\022\027\n" + + "\022CREATIVE_VENDOR_ID\020\302\005\022\031\n" + + "\024CREATIVE_VENDOR_NAME\020\303\005\022(\n" + + "#CREATIVE_VIDEO_REDIRECT_THIRD_PARTY\020\262\004\022\017\n\n" + + "CURATOR_ID\020\274\004\022\021\n" + + "\014CURATOR_NAME\020\275\004\022\024\n" + + "\017CUSTOM_EVENT_ID\020\341\005\022\026\n" + + "\021CUSTOM_EVENT_NAME\020\337\005\022\026\n" + + "\021CUSTOM_EVENT_TYPE\020\340\005\022\033\n" + + "\026CUSTOM_EVENT_TYPE_NAME\020\342\005\022\023\n" + + "\016CUSTOM_SPOT_ID\020\247\003\022\025\n" + + "\020CUSTOM_SPOT_NAME\020\250\003\022\010\n" + + "\004DATE\020\003\022\017\n" + + "\013DAY_OF_WEEK\020\004\022\022\n\r" + + "DEAL_BUYER_ID\020\360\001\022\024\n" + + "\017DEAL_BUYER_NAME\020\361\001\022\014\n" + + "\007DEAL_ID\020\264\003\022\016\n" + + "\tDEAL_NAME\020\265\003\022\037\n" + + "\032DELIVERED_SECURE_SIGNAL_ID\020\265\002\022!\n" + + "\034DELIVERED_SECURE_SIGNAL_NAME\020\266\002\022\022\n" + + "\016DEMAND_CHANNEL\020\t\022\027\n" + + "\023DEMAND_CHANNEL_NAME\020\n" + + "\022\022\n\r" + + "DEMAND_SOURCE\020\320\004\022\027\n" + + "\022DEMAND_SOURCE_NAME\020\321\004\022\025\n" + + "\021DEMAND_SUBCHANNEL\020\026\022\032\n" + + "\026DEMAND_SUBCHANNEL_NAME\020\027\022\013\n" + + "\006DEVICE\020\342\001\022\023\n" + + "\017DEVICE_CATEGORY\020\017\022\030\n" + + "\024DEVICE_CATEGORY_NAME\020\020\022\033\n" + + "\026DEVICE_MANUFACTURER_ID\020\215\004\022\035\n" + + "\030DEVICE_MANUFACTURER_NAME\020\216\004\022\024\n" + + "\017DEVICE_MODEL_ID\020\217\004\022\026\n" + + "\021DEVICE_MODEL_NAME\020\220\004\022\020\n" + + "\013DEVICE_NAME\020\341\001\022\020\n" + + "\013DSP_SEAT_ID\020\264\004\022\034\n" + + "\027DYNAMIC_ALLOCATION_TYPE\020\366\003\022!\n" + + "\034DYNAMIC_ALLOCATION_TYPE_NAME\020\367\003\022\021\n" + + "\014ESP_DELIVERY\020\357\004\022\026\n" + + "\021ESP_DELIVERY_NAME\020\360\004\022\021\n" + + "\014ESP_PRESENCE\020\361\004\022\026\n" + + "\021ESP_PRESENCE_NAME\020\362\004\022\035\n" + + "\030EXCHANGE_BIDDING_DEAL_ID\020\313\005\022\037\n" + + "\032EXCHANGE_BIDDING_DEAL_TYPE\020\312\005\022$\n" + + "\037EXCHANGE_BIDDING_DEAL_TYPE_NAME\020\323\005\022$\n" + + "\037EXCHANGE_THIRD_PARTY_COMPANY_ID\020\271\001\022&\n" + + "!EXCHANGE_THIRD_PARTY_COMPANY_NAME\020\272\001\022\037\n" + + "\032FIRST_LOOK_PRICING_RULE_ID\020\370\001\022!\n" + + "\034FIRST_LOOK_PRICING_RULE_NAME\020\371\001\022\032\n" + + "\025FIRST_PARTY_ID_STATUS\020\224\003\022\037\n" + + "\032FIRST_PARTY_ID_STATUS_NAME\020\225\003\022\013\n" + + "\006GENDER\020\375\003\022\020\n" + + "\013GENDER_NAME\020\307\004\022\037\n" + + "\032GOOGLE_ANALYTICS_STREAM_ID\020\207\004\022!\n" + + "\034GOOGLE_ANALYTICS_STREAM_NAME\020\210\004\022\031\n" + + "\024HBT_YIELD_PARTNER_ID\020\223\005\022\033\n" + + "\026HBT_YIELD_PARTNER_NAME\020\224\005\022#\n" + + "\036HEADER_BIDDER_INTEGRATION_TYPE\020\316\005\022(\n" + + "#HEADER_BIDDER_INTEGRATION_TYPE_NAME\020\317\005\022\010\n" + + "\004HOUR\020d\022\037\n" + + "\032IMPRESSION_COUNTING_METHOD\020\301\004\022$\n" + + "\037IMPRESSION_COUNTING_METHOD_NAME\020\302\004\022\025\n" + + "\020INTERACTION_TYPE\020\337\001\022\032\n" + + "\025INTERACTION_TYPE_NAME\020\340\001\022\r\n" + + "\010INTEREST\020\376\003\022\024\n" + + "\020INVENTORY_FORMAT\020\021\022\031\n" + + "\025INVENTORY_FORMAT_NAME\020\022\022\"\n" + + "\035INVENTORY_SHARE_ASSIGNMENT_ID\020\210\005\022$\n" + + "\037INVENTORY_SHARE_ASSIGNMENT_NAME\020\211\005\022\034\n" + + "\027INVENTORY_SHARE_OUTCOME\020\333\004\022!\n" + + "\034INVENTORY_SHARE_OUTCOME_NAME\020\334\004\022&\n" + + "!INVENTORY_SHARE_PARTNER_AD_SERVER\020\214\005\022+\n" + + "&INVENTORY_SHARE_PARTNER_AD_SERVER_NAME\020\215\005\022)\n" + + "$INVENTORY_SHARE_TARGET_SHARE_PERCENT\020\216\005\022\031\n" + + "\024INVENTORY_SHARE_TYPE\020\212\005\022\036\n" + + "\031INVENTORY_SHARE_TYPE_NAME\020\213\005\022\022\n" + + "\016INVENTORY_TYPE\020\023\022\027\n" + + "\023INVENTORY_TYPE_NAME\020\024\022\022\n\r" + + "IS_ADX_DIRECT\020\376\002\022\031\n" + + "\024IS_CURATION_TARGETED\020\276\004\022\017\n\n" + + "IS_DROPPED\020\320\003\022\027\n" + + "\022IS_FIRST_LOOK_DEAL\020\221\003\022\022\n\r" + + "KEY_VALUES_ID\020\326\001\022\024\n" + + "\017KEY_VALUES_NAME\020\327\001\022\025\n" + + "\020LINE_ITEM_AGENCY\020\227\005\022\027\n" + + "\022LINE_ITEM_ARCHIVED\020\274\001\022(\n" + + "#LINE_ITEM_COMPANION_DELIVERY_OPTION\020\314\001\022-\n" + + "(LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\020\315\001\022\036\n" + + "\031LINE_ITEM_COMPUTED_STATUS\020\372\001\022#\n" + + "\036LINE_ITEM_COMPUTED_STATUS_NAME\020\373\001\022!\n" + + "\035LINE_ITEM_CONTRACTED_QUANTITY\020\\\022\033\n" + + "\027LINE_ITEM_COST_PER_UNIT\020U\022\030\n" + + "\023LINE_ITEM_COST_TYPE\020\324\001\022\035\n" + + "\030LINE_ITEM_COST_TYPE_NAME\020\325\001\022 \n" + + "\033LINE_ITEM_CREATIVE_END_DATE\020\260\001\022%\n" + + " LINE_ITEM_CREATIVE_ROTATION_TYPE\020\275\001\022*\n" + + "%LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\020\276\001\022\"\n" + + "\035LINE_ITEM_CREATIVE_START_DATE\020\257\001\022\034\n" + + "\027LINE_ITEM_CURRENCY_CODE\020\264\001\022 \n" + + "\034LINE_ITEM_DELIVERY_INDICATOR\020W\022!\n" + + "\034LINE_ITEM_DELIVERY_RATE_TYPE\020\277\001\022&\n" + + "!LINE_ITEM_DELIVERY_RATE_TYPE_NAME\020\300\001\022 \n" + + "\033LINE_ITEM_DISCOUNT_ABSOLUTE\020\303\001\022\"\n" + + "\035LINE_ITEM_DISCOUNT_PERCENTAGE\020\304\001\022\026\n" + + "\022LINE_ITEM_END_DATE\020Q\022\033\n" + + "\027LINE_ITEM_END_DATE_TIME\020S\022\037\n" + + "\032LINE_ITEM_ENVIRONMENT_TYPE\020\311\001\022$\n" + + "\037LINE_ITEM_ENVIRONMENT_TYPE_NAME\020\312\001\022\036\n" + + "\032LINE_ITEM_EXTERNAL_DEAL_ID\020a\022\031\n" + + "\025LINE_ITEM_EXTERNAL_ID\020V\022\034\n" + + "\027LINE_ITEM_FREQUENCY_CAP\020\200\002\022\020\n" + + "\014LINE_ITEM_ID\020\001\022\025\n" + + "\020LINE_ITEM_LABELS\020\233\005\022\030\n" + + "\023LINE_ITEM_LABEL_IDS\020\231\005\022#\n" + + "\036LINE_ITEM_LAST_MODIFIED_BY_APP\020\265\001\022\035\n" + + "\031LINE_ITEM_LIFETIME_CLICKS\020_\022\"\n" + + "\036LINE_ITEM_LIFETIME_IMPRESSIONS\020^\022+\n" + + "\'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\020`\022\026\n" + + "\022LINE_ITEM_MAKEGOOD\020Y\022\022\n" + + "\016LINE_ITEM_NAME\020\002\022$\n" + + " LINE_ITEM_NON_CPD_BOOKED_REVENUE\020b\022\031\n" + + "\025LINE_ITEM_OPTIMIZABLE\020Z\022\030\n" + + "\023LINE_ITEM_PO_NUMBER\020\235\005\022 \n" + + "\033LINE_ITEM_PRIMARY_GOAL_TYPE\020\322\001\022%\n" + + " LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\020\323\001\022)\n" + + "%LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE\020]\022,\n" + + "\'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE\020\214\003\022%\n" + + " LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\020\320\001\022*\n" + + "%LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\020\321\001\022\026\n" + + "\022LINE_ITEM_PRIORITY\020\030\022!\n" + + "\034LINE_ITEM_RESERVATION_STATUS\020\260\002\022&\n" + + "!LINE_ITEM_RESERVATION_STATUS_NAME\020\261\002\022\032\n" + + "\025LINE_ITEM_SALESPERSON\020\237\005\022$\n" + + "\037LINE_ITEM_SECONDARY_SALESPEOPLE\020\241\005\022$\n" + + "\037LINE_ITEM_SECONDARY_TRAFFICKERS\020\243\005\022\030\n" + + "\024LINE_ITEM_START_DATE\020R\022\035\n" + + "\031LINE_ITEM_START_DATE_TIME\020T\022\031\n" + + "\024LINE_ITEM_TRAFFICKER\020\245\005\022\023\n" + + "\016LINE_ITEM_TYPE\020\301\001\022\030\n" + + "\023LINE_ITEM_TYPE_NAME\020\302\001\022\034\n" + + "\027LINE_ITEM_UNLIMITED_END\020\273\001\022!\n" + + "\035LINE_ITEM_VALUE_COST_PER_UNIT\020X\022 \n" + + "\033LINE_ITEM_WEB_PROPERTY_CODE\020\263\001\022!\n" + + "\034MASTER_COMPANION_CREATIVE_ID\020\214\001\022#\n" + + "\036MASTER_COMPANION_CREATIVE_NAME\020\215\001\022\023\n" + + "\016MEDIATION_TYPE\020\275\005\022\030\n" + + "\023MEDIATION_TYPE_NAME\020\362\005\022\037\n" + + "\032MEDIATION_YIELD_PARTNER_ID\020\225\005\022!\n" + + "\034MEDIATION_YIELD_PARTNER_NAME\020\226\005\022\r\n" + + "\010METRO_ID\020\305\003\022\017\n\n" + + "METRO_NAME\020\306\003\022\024\n" + + "\017MOBILE_APP_FREE\020\200\001\022\030\n" + + "\023MOBILE_APP_ICON_URL\020\201\001\022\021\n\r" + + "MOBILE_APP_ID\020{\022\023\n" + + "\017MOBILE_APP_NAME\020\177\022 \n" + + "\033MOBILE_APP_OWNERSHIP_STATUS\020\267\002\022%\n" + + " MOBILE_APP_OWNERSHIP_STATUS_NAME\020\270\002\022\024\n" + + "\020MOBILE_APP_STORE\020}\022\032\n" + + "\025MOBILE_APP_STORE_NAME\020\365\001\022\031\n" + + "\025MOBILE_INVENTORY_TYPE\020c\022\036\n" + + "\032MOBILE_INVENTORY_TYPE_NAME\020\025\022\031\n" + + "\024MOBILE_RENDERING_SDK\020\206\005\022\036\n" + + "\031MOBILE_RENDERING_SDK_NAME\020\207\005\022\035\n" + + "\030MOBILE_SDK_MAJOR_VERSION\020\264\005\022\035\n" + + "\030MOBILE_SDK_MINOR_VERSION\020\265\005\022\034\n" + + "\027MOBILE_SDK_VERSION_NAME\020\202\001\022\016\n\n" + + "MONTH_YEAR\020\006\022\030\n" + + "\023NATIVE_AD_FORMAT_ID\020\377\001\022\032\n" + + "\025NATIVE_AD_FORMAT_NAME\020\376\001\022\024\n" + + "\017NATIVE_STYLE_ID\020\375\001\022\026\n" + + "\021NATIVE_STYLE_NAME\020\374\001\022\034\n" + + "\027NO_FILL_REASON_CATEGORY\020\312\004\022!\n" + + "\034NO_FILL_REASON_CATEGORY_NAME\020\313\004\022\035\n" + + "\031OPERATING_SYSTEM_CATEGORY\020u\022\"\n" + + "\036OPERATING_SYSTEM_CATEGORY_NAME\020v\022 \n" + + "\033OPERATING_SYSTEM_VERSION_ID\020\356\001\022\"\n" + + "\035OPERATING_SYSTEM_VERSION_NAME\020\355\001\022\026\n" + + "\021OPTIMIZATION_TYPE\020\377\004\022\033\n" + + "\026OPTIMIZATION_TYPE_NAME\020\200\005\022\021\n" + + "\014ORDER_AGENCY\020\226\001\022\024\n" + + "\017ORDER_AGENCY_ID\020\227\001\022\025\n" + + "\020ORDER_BOOKED_CPC\020\230\001\022\025\n" + + "\020ORDER_BOOKED_CPM\020\231\001\022\032\n" + + "\025ORDER_DELIVERY_STATUS\020\347\001\022\037\n" + + "\032ORDER_DELIVERY_STATUS_NAME\020\357\001\022\023\n" + + "\016ORDER_END_DATE\020\232\001\022\030\n" + + "\023ORDER_END_DATE_TIME\020\233\001\022\026\n" + + "\021ORDER_EXTERNAL_ID\020\234\001\022\014\n" + + "\010ORDER_ID\020\007\022\021\n" + + "\014ORDER_LABELS\020\252\001\022\024\n" + + "\017ORDER_LABEL_IDS\020\253\001\022\032\n" + + "\025ORDER_LIFETIME_CLICKS\020\236\001\022\037\n" + + "\032ORDER_LIFETIME_IMPRESSIONS\020\237\001\022\016\n\n" + + "ORDER_NAME\020\010\022\024\n" + + "\017ORDER_PO_NUMBER\020\240\001\022\027\n" + + "\022ORDER_PROGRAMMATIC\020\235\001\022\026\n" + + "\021ORDER_SALESPERSON\020\241\001\022\031\n" + + "\024ORDER_SALESPERSON_ID\020\365\004\022 \n" + + "\033ORDER_SECONDARY_SALESPEOPLE\020\244\001\022#\n" + + "\036ORDER_SECONDARY_SALESPEOPLE_ID\020\245\001\022 \n" + + "\033ORDER_SECONDARY_TRAFFICKERS\020\246\001\022#\n" + + "\036ORDER_SECONDARY_TRAFFICKERS_ID\020\247\001\022\025\n" + + "\020ORDER_START_DATE\020\250\001\022\032\n" + + "\025ORDER_START_DATE_TIME\020\251\001\022\025\n" + + "\020ORDER_TRAFFICKER\020\242\001\022\030\n" + + "\023ORDER_TRAFFICKER_ID\020\243\001\022\030\n" + + "\023ORDER_UNLIMITED_END\020\313\001\022\016\n" + + "\tPAGE_PATH\020\377\003\022 \n" + + "\033PAGE_TITLE_AND_SCREEN_CLASS\020\200\004\022\037\n" + + "\032PAGE_TITLE_AND_SCREEN_NAME\020\201\004\022\020\n" + + "\014PLACEMENT_ID\020q\022\025\n" + + "\020PLACEMENT_ID_ALL\020\220\001\022\022\n" + + "\016PLACEMENT_NAME\020r\022\027\n" + + "\022PLACEMENT_NAME_ALL\020\221\001\022\025\n" + + "\020PLACEMENT_STATUS\020\352\002\022\032\n" + + "\025PLACEMENT_STATUS_NAME\020\354\002\022\036\n" + + "\031PLACEMENT_STATUS_NAME_ALL\020\355\002\022\023\n" + + "\016POSTAL_CODE_ID\020\307\003\022\025\n" + + "\020POSTAL_CODE_NAME\020\310\003\022\020\n" + + "\013PPID_STATUS\020\226\003\022\025\n" + + "\020PPID_STATUS_NAME\020\227\003\022!\n" + + "\034PREDICTED_VIEWABILITY_BUCKET\020\371\004\022&\n" + + "!PREDICTED_VIEWABILITY_BUCKET_NAME\020\372\004\022\037\n" + + "\032PRESENTED_SECURE_SIGNAL_ID\020\357\003\022!\n" + + "\034PRESENTED_SECURE_SIGNAL_NAME\020\360\003\022$\n" + + "\037PRIMARY_PERSONALIZATION_ID_TYPE\020\230\003\022)\n" + + "$PRIMARY_PERSONALIZATION_ID_TYPE_NAME\020\231\003\022\036\n" + + "\025PROGRAMMATIC_BUYER_ID\020\360\001\032\002\010\001\022 \n" + + "\027PROGRAMMATIC_BUYER_NAME\020\361\001\032\002\010\001\022\030\n" + + "\024PROGRAMMATIC_CHANNEL\020\r" + + "\022\035\n" + + "\031PROGRAMMATIC_CHANNEL_NAME\020\016\0228\n" + + "3PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE\020\232\003\022.\n" + + ")PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS\020\242\004\022/\n" + + "*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME\020\234\003\022/\n" + + "*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER\020\235\003\022/\n" + + "*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE\020\236\003\0227\n" + + "2PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE\020\251\003\022-\n" + + "(PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS\020\241\004\022.\n" + + ")PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME\020\253\003\022.\n" + + ")PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER\020\254\003\022.\n" + + ")PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE\020\255\003\0227\n" + + "2PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE\020\237\003\022,\n" + + "\'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID\020\240\003\022.\n" + + ")PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME\020\241\003\022.\n" + + ")PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER\020\242\003\022.\n" + + ")PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE\020\243\003\022/\n" + + "*PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID\020\210\001\0221\n" + + ",PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME\020\211\001\022\016\n" + + "\tREGION_ID\020\311\003\022\020\n" + + "\013REGION_NAME\020\312\003\022\035\n" + + "\030REJECTION_CLASS_CATEGORY\020\316\004\022\"\n" + + "\035REJECTION_CLASS_CATEGORY_NAME\020\317\004\022\033\n" + + "\026RENDERED_CREATIVE_SIZE\020\327\002\022\027\n" + + "\022REQUESTED_AD_SIZES\020\340\002\022\021\n" + + "\014REQUEST_TYPE\020\222\001\022\026\n" + + "\021REQUEST_TYPE_NAME\020\223\001\022$\n" + + "\037SERVER_SIDE_UNWRAPPING_ELIGIBLE\020\325\004\022\030\n" + + "\023SERVING_RESTRICTION\020\367\004\022\035\n" + + "\030SERVING_RESTRICTION_NAME\020\370\004\022\t\n" + + "\004SI", + "TE\020\203\003\022\021\n" + + "\014TARGETING_ID\020\350\001\022\023\n" + + "\016TARGETING_NAME\020\351\001\022\023\n" + + "\016TARGETING_TYPE\020\201\003\022\030\n" + + "\023TARGETING_TYPE_NAME\020\202\003\022\032\n" + + "\025THIRD_PARTY_ID_STATUS\020\222\003\022\037\n" + + "\032THIRD_PARTY_ID_STATUS_NAME\020\223\003\022\022\n\r" + + "TOPICS_STATUS\020\370\003\022\027\n" + + "\022TOPICS_STATUS_NAME\020\371\003\022\027\n" + + "\022TOP_PRIVATE_DOMAIN\020\274\003\022\023\n" + + "\016TRAFFIC_SOURCE\020\204\003\022\030\n" + + "\023TRAFFIC_SOURCE_NAME\020\205\003\022\034\n" + + "\027UNIFIED_PRICING_RULE_ID\020\211\003\022\036\n" + + "\031UNIFIED_PRICING_RULE_NAME\020\212\003\022\010\n" + + "\003URL\020\372\003\022\013\n" + + "\006URL_ID\020\373\003\022%\n" + + " USER_MESSAGES_ENTITLEMENT_SOURCE\020\373\004\022*\n" + + "%USER_MESSAGES_ENTITLEMENT_SOURCE_NAME\020\374\004\022/\n" + + "*USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID\020\375\004\0221\n" + + ",USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME\020\376\004\022\021\n" + + "\014VAST_VERSION\020\252\004\022\026\n" + + "\021VAST_VERSION_NAME\020\253\004\022\030\n" + + "\023VIDEO_AD_BREAK_TYPE\020\254\004\022\035\n" + + "\030VIDEO_AD_BREAK_TYPE_NAME\020\255\004\022\026\n" + + "\021VIDEO_AD_DURATION\020\302\003\022\032\n" + + "\025VIDEO_AD_FORMATS_RULE\020\261\004\022\035\n" + + "\030VIDEO_AD_FORMATS_RULE_ID\020\260\004\022\036\n" + + "\031VIDEO_AD_REQUEST_DURATION\020\256\004\022,\n" + + "\'VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME\020\357\005\022#\n" + + "\036VIDEO_AD_REQUEST_DURATION_NAME\020\257\004\022\034\n" + + "\027VIDEO_AD_REQUEST_SOURCE\020\266\003\022!\n" + + "\034VIDEO_AD_REQUEST_SOURCE_NAME\020\267\003\022\022\n\r" + + "VIDEO_AD_TYPE\020\260\003\022\027\n" + + "\022VIDEO_AD_TYPE_NAME\020\261\003\022\037\n" + + "\032VIDEO_CONTINUOUS_PLAY_TYPE\020\321\005\022$\n" + + "\037VIDEO_CONTINUOUS_PLAY_TYPE_NAME\020\322\005\022\034\n" + + "\027VIDEO_FALLBACK_POSITION\020\222\004\022\035\n" + + "\030VIDEO_MEASUREMENT_SOURCE\020\331\004\022\"\n" + + "\035VIDEO_MEASUREMENT_SOURCE_NAME\020\332\004\022\020\n" + + "\013VIDEO_PLCMT\020\254\001\022\025\n" + + "\020VIDEO_PLCMT_NAME\020\255\001\022\032\n" + + "\025VIDEO_POSITION_IN_POD\020\232\004\022\032\n" + + "\025VIDEO_POSITION_OF_POD\020\233\004\022\026\n" + + "\021VIDEO_SDK_VERSION\020\270\003\022\033\n" + + "\026VIDEO_SDK_VERSION_NAME\020\271\003\022\030\n" + + "\023VIDEO_STITCHER_TYPE\020\360\005\022\035\n" + + "\030VIDEO_STITCHER_TYPE_NAME\020\361\005\022\010\n" + + "\004WEEK\020\005\022\033\n" + + "\026YIELD_GROUP_BUYER_NAME\020\270\001\022\037\n" + + "\032YIELD_GROUP_BUYER_TAG_NAME\020\363\004\022\023\n" + + "\016YIELD_GROUP_ID\020\266\001\022\025\n" + + "\020YIELD_GROUP_NAME\020\267\001\022\037\n" + + "\032YOUTUBE_AD_DURATION_BUCKET\020\256\003\022$\n" + + "\037YOUTUBE_AD_DURATION_BUCKET_NAME\020\257\003\022\024\n" + + "\017YOUTUBE_AD_TYPE\020\217\003\022\031\n" + + "\024YOUTUBE_AD_TYPE_NAME\020\220\003\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\020\220N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\020\221N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\020\222N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\020\223N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\020\224N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\020\225N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\020\226N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\020\227N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\020\230N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\020\231N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\020\232N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\020\233N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\020\234N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\020\235N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\020\236N\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_0_VALUE\020\370U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_1_VALUE\020\371U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_2_VALUE\020\372U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_3_VALUE\020\373U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_4_VALUE\020\374U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_5_VALUE\020\375U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_6_VALUE\020\376U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_7_VALUE\020\377U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_8_VALUE\020\200V\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_9_VALUE\020\201V\022$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_10_VALUE\020\202V\022$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_11_VALUE\020\203V\022$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_12_VALUE\020\204V\022$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_13_VALUE\020\205V\022$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_14_VALUE\020\206V\022#\n" + + "\036ORDER_CUSTOM_FIELD_0_OPTION_ID\020\340]\022#\n" + + "\036ORDER_CUSTOM_FIELD_1_OPTION_ID\020\341]\022#\n" + + "\036ORDER_CUSTOM_FIELD_2_OPTION_ID\020\342]\022#\n" + + "\036ORDER_CUSTOM_FIELD_3_OPTION_ID\020\343]\022#\n" + + "\036ORDER_CUSTOM_FIELD_4_OPTION_ID\020\344]\022#\n" + + "\036ORDER_CUSTOM_FIELD_5_OPTION_ID\020\345]\022#\n" + + "\036ORDER_CUSTOM_FIELD_6_OPTION_ID\020\346]\022#\n" + + "\036ORDER_CUSTOM_FIELD_7_OPTION_ID\020\347]\022#\n" + + "\036ORDER_CUSTOM_FIELD_8_OPTION_ID\020\350]\022#\n" + + "\036ORDER_CUSTOM_FIELD_9_OPTION_ID\020\351]\022$\n" + + "\037ORDER_CUSTOM_FIELD_10_OPTION_ID\020\352]\022$\n" + + "\037ORDER_CUSTOM_FIELD_11_OPTION_ID\020\353]\022$\n" + + "\037ORDER_CUSTOM_FIELD_12_OPTION_ID\020\354]\022$\n" + + "\037ORDER_CUSTOM_FIELD_13_OPTION_ID\020\355]\022$\n" + + "\037ORDER_CUSTOM_FIELD_14_OPTION_ID\020\356]\022\037\n" + + "\032ORDER_CUSTOM_FIELD_0_VALUE\020\310e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_1_VALUE\020\311e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_2_VALUE\020\312e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_3_VALUE\020\313e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_4_VALUE\020\314e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_5_VALUE\020\315e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_6_VALUE\020\316e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_7_VALUE\020\317e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_8_VALUE\020\320e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_9_VALUE\020\321e\022 \n" + + "\033ORDER_CUSTOM_FIELD_10_VALUE\020\322e\022 \n" + + "\033ORDER_CUSTOM_FIELD_11_VALUE\020\323e\022 \n" + + "\033ORDER_CUSTOM_FIELD_12_VALUE\020\324e\022 \n" + + "\033ORDER_CUSTOM_FIELD_13_VALUE\020\325e\022 \n" + + "\033ORDER_CUSTOM_FIELD_14_VALUE\020\326e\022&\n" + + "!CREATIVE_CUSTOM_FIELD_0_OPTION_ID\020\260m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_1_OPTION_ID\020\261m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_2_OPTION_ID\020\262m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_3_OPTION_ID\020\263m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_4_OPTION_ID\020\264m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_5_OPTION_ID\020\265m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_6_OPTION_ID\020\266m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_7_OPTION_ID\020\267m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_8_OPTION_ID\020\270m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_9_OPTION_ID\020\271m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_10_OPTION_ID\020\272m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_11_OPTION_ID\020\273m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_12_OPTION_ID\020\274m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_13_OPTION_ID\020\275m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_14_OPTION_ID\020\276m\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_0_VALUE\020\230u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_1_VALUE\020\231u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_2_VALUE\020\232u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_3_VALUE\020\233u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_4_VALUE\020\234u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_5_VALUE\020\235u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_6_VALUE\020\236u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_7_VALUE\020\237u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_8_VALUE\020\240u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_9_VALUE\020\241u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_10_VALUE\020\242u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_11_VALUE\020\243u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_12_VALUE\020\244u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_13_VALUE\020\245u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_14_VALUE\020\246u\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\020\200}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\020\201}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\020\202}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\020\203}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\020\204}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\020\205}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\020\206}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\020\207}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\020\210}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\020\211}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\020\212}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\020\213}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\020\214}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\020\215}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\020\216}\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE\020\350\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE\020\351\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE\020\352\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE\020\353\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE\020\354\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE\020\355\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE\020\356\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE\020\357\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE\020\360\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE\020\361\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE\020\362\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE\020\363\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE\020\364\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE\020\365\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE\020\366\204\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID\020\320\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID\020\321\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID\020\322\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID\020\323\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID\020\324\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID\020\325\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID\020\326\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID\020\327\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID\020\330\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID\020\331\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID\020\332\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID\020\333\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID\020\334\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID\020\335\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID\020\336\214\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE\020\270\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE\020\271\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE\020\272\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE\020\273\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE\020\274\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE\020\275\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE\020\276\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE\020\277\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE\020\300\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE\020\301\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE\020\302\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE\020\303\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE\020\304\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE\020\305\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE\020\306\224\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID\020\240\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID\020\241\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID\020\242\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID\020\243\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID\020\244\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID\020\245\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID\020\246\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID\020\247\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID\020\250\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID\020\251\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID\020\252\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID\020\253\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID\020\254\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID\020\255\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID\020\256\234\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE\020\210\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE\020\211\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE\020\212\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE\020\213\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE\020\214\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE\020\215\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE\020\216\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE\020\217\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE\020\220\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE\020\221\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE\020\222\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE\020\223\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE\020\224\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE\020\225\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE\020\226\244\001\022!\n" + + "\033CUSTOM_DIMENSION_0_VALUE_ID\020\240\215\006\022!\n" + + "\033CUSTOM_DIMENSION_1_VALUE_ID\020\241\215\006\022!\n" + + "\033CUSTOM_DIMENSION_2_VALUE_ID\020\242\215\006\022!\n" + + "\033CUSTOM_DIMENSION_3_VALUE_ID\020\243\215\006\022!\n" + + "\033CUSTOM_DIMENSION_4_VALUE_ID\020\244\215\006\022!\n" + + "\033CUSTOM_DIMENSION_5_VALUE_ID\020\245\215\006\022!\n" + + "\033CUSTOM_DIMENSION_6_VALUE_ID\020\246\215\006\022!\n" + + "\033CUSTOM_DIMENSION_7_VALUE_ID\020\247\215\006\022!\n" + + "\033CUSTOM_DIMENSION_8_VALUE_ID\020\250\215\006\022!\n" + + "\033CUSTOM_DIMENSION_9_VALUE_ID\020\251\215\006\022\036\n" + + "\030CUSTOM_DIMENSION_0_VALUE\020\210\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_1_VALUE\020\211\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_2_VALUE\020\212\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_3_VALUE\020\213\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_4_VALUE\020\214\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_5_VALUE\020\215\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_6_VALUE\020\216\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_7_VALUE\020\217\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_8_VALUE\020\220\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_9_VALUE\020\221\225\006\032\002\020\001\"\237\210\001\n" + + "\006Metric\022\026\n" + + "\022METRIC_UNSPECIFIED\020\000\022\021\n" + + "\014ACTIVE_USERS\020\337\001\022)\n" + + "$ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT\020\275\003\022$\n" + + "\037ACTIVE_VIEW_AUDIBLE_IMPRESSIONS\020\223\005\0223\n" + + ".ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT\020\276\003\0227\n" + + "2ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT\020\277\003\0221\n" + + ",ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT\020\300\003\0227\n" + + "2ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT\020\301\003\022*\n" + + "%ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS\020\224\005\022-\n" + + "(ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS\020\225\005\022%\n" + + "!ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020=\022$\n" + + " ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020:\0222\n" + + "-ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT\020\302\003\022%\n" + + " ACTIVE_VIEW_EVER_AUDIBLE_PERCENT\020\303\003\022*\n" + + "%ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT\020\304\003\022#\n" + + "\036ACTIVE_VIEW_EVER_MUTED_PERCENT\020\305\003\022?\n" + + ":ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION\020\233\003\022&\n" + + "\"ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\0209\022+\n" + + "\'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020<\022+\n" + + "&ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\020\226\005\022)\n" + + "$ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\020\227\005\0226\n" + + "1ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\020\230\005\022,\n" + + "\'ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS\020\231\005\022&\n" + + "!ACTIVE_VIEW_PLUS_MEASURABLE_COUNT\020\306\003\022\030\n" + + "\023ACTIVE_VIEW_REVENUE\020\236\003\0226\n" + + "1ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\020\232\005\022$\n" + + " ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\0208\0222\n" + + "-ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\020\233\005\022)\n" + + "%ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020;\022-\n" + + ")ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020I\022,\n" + + "(ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020F\022.\n" + + "*ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020E\0223\n" + + "/ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020H\0223\n" + + ".ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\020\202\005\0221\n" + + ",ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\020\203\005\022>\n" + + "9ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\020\204\005\022>\n" + + "9ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\020\205\005\022,\n" + + "(ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020D\022:\n" + + "5ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\020\206\005\0221\n" + + "-ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020G\022\030\n" + + "\024ADSENSE_AVERAGE_ECPM\020\032\022\022\n" + + "\016ADSENSE_CLICKS\020\027\022\017\n" + + "\013ADSENSE_CTR\020\030\022\027\n" + + "\023ADSENSE_IMPRESSIONS\020\026\022\032\n" + + "\026ADSENSE_PERCENT_CLICKS\020\034\022\037\n" + + "\033ADSENSE_PERCENT_IMPRESSIONS\020\033\022\033\n" + + "\027ADSENSE_PERCENT_REVENUE\020\035\022\'\n" + + "#ADSENSE_PERCENT_REVENUE_WITHOUT_CPD\020\036\022\034\n" + + "\030ADSENSE_RESPONSES_SERVED\020)\022\023\n" + + "\017ADSENSE_REVENUE\020\031\0221\n" + + "-AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020O\0220\n" + + ",AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020L\0222\n" + + ".AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020K\0227\n" + + "3AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020N\0227\n" + + "2AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\020\216\005\0225\n" + + "0AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\020\217\005\022B\n" + + "=AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\020\220\005\022B\n" + + "=AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\020\221\005\0220\n" + + ",AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020J\022>\n" + + "9AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\020\222\005\0225\n" + + "1AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020M\022\034\n" + + "\030AD_EXCHANGE_AVERAGE_ECPM\020\022\022\026\n" + + "\022AD_EXCHANGE_CLICKS\020\017\022\024\n" + + "\017AD_EXCHANGE_CPC\020\364\001\022\023\n" + + "\017AD_EXCHANGE_CTR\020\020\022\036\n" + + "\031AD_EXCHANGE_DELIVERY_RATE\020\365\001\022\033\n" + + "\027AD_EXCHANGE_IMPRESSIONS\020\016\022*\n" + + "%AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER\020\253\003\022(\n" + + "#AD_EXCHANGE_IMPRESSIONS_PER_SESSION\020\254\003\022\025\n" + + "\020AD_EXCHANGE_LIFT\020\366\001\022$\n" + + "\037AD_EXCHANGE_MATCHED_REQUEST_CTR\020\367\001\022%\n" + + " AD_EXCHANGE_MATCHED_REQUEST_ECPM\020\370\001\022\033\n" + + "\026AD_EXCHANGE_MATCH_RATE\020\371\001\022*\n" + + "%AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS\020\372\001\022/\n" + + "*AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS\020\373\001\022\036\n" + + "\032AD_EXCHANGE_PERCENT_CLICKS\020\024\022#\n" + + "\037AD_EXCHANGE_PERCENT_IMPRESSIONS\020\023\022\037\n" + + "\033AD_EXCHANGE_PERCENT_REVENUE\020\025\022+\n" + + "\'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD\020\037\022&\n" + + "!AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM\020\374\001\022-\n" + + "(AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS\020\375\001\022)\n" + + "$AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE\020\376\001\022 \n" + + "\034AD_EXCHANGE_RESPONSES_SERVED\020*\022\027\n" + + "\023AD_EXCHANGE_REVENUE\020\021\0225\n" + + "0AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\020\324\001\022&\n" + + "!AD_EXCHANGE_REVENUE_PER_AD_VIEWER\020\255\003\022\037\n" + + "\032AD_EXCHANGE_TOTAL_REQUESTS\020\377\001\022\"\n" + + "\035AD_EXCHANGE_TOTAL_REQUEST_CTR\020\200\002\022#\n" + + "\036AD_EXCHANGE_TOTAL_REQUEST_ECPM\020\201\002\022\030\n" + + "\023AD_EXPOSURE_SECONDS\020\361\001\022\017\n" + + "\013AD_REQUESTS\020&\022/\n" + + "+AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020C\022.\n" + + "*AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020@\0220\n" + + ",AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020?\0225\n" + + "1AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020B\0225\n" + + "0AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\020\314\002\0223\n" + + ".AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\020\313\002\022@\n" + + ";AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\020\316\002\022@\n" + + ";AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\020\317\002\022.\n" + + "*AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020>\022<\n" + + "7AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\020\315\002\0223\n" + + "/AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020A\022\032\n" + + "\026AD_SERVER_AVERAGE_ECPM\020\"\022&\n" + + "\"AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD\020\n" + + "\022*\n" + + "%AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS\020\206\002\022\024\n" + + "\020AD_SERVER_CLICKS\020\007\022\036\n" + + "\031AD_SERVER_COMPLETED_VIEWS\020\257\003\022#\n" + + "\036AD_SERVER_COVIEWED_IMPRESSIONS\020\252\004\022\031\n" + + "\025AD_SERVER_CPD_REVENUE\020 \022\021\n\r" + + "AD_SERVER_CTR\020\010\022\034\n" + + "\027AD_SERVER_GROSS_REVENUE\020\343\003\022(\n" + + "#AD_SERVER_GROSS_REVENUE_WITHOUT_CPD\020\344\003\022\031\n" + + "\025AD_SERVER_IMPRESSIONS\020\006\022)\n" + + "$AD_SERVER_IMPRESSIONS_WITH_COMPANION\020\336\001\0223\n" + + ".AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\020\322\002\022\034\n" + + "\030AD_SERVER_PERCENT_CLICKS\020\014\022!\n" + + "\035AD_SERVER_PERCENT_IMPRESSIONS\020\013\022\035\n" + + "\031AD_SERVER_PERCENT_REVENUE\020#\022)\n" + + "%AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD\020\r" + + "\022\036\n" + + "\032AD_SERVER_RESPONSES_SERVED\020(\022\025\n" + + "\021AD_SERVER_REVENUE\020!\0223\n" + + ".AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\020\325\001\022!\n" + + "\035AD_SERVER_REVENUE_WITHOUT_CPD\020\t\022\036\n" + + "\031AD_SERVER_TARGETED_CLICKS\020\222\002\022#\n" + + "\036AD_SERVER_TARGETED_IMPRESSIONS\020\223\002\022\032\n" + + "\025AD_SERVER_TRACKED_ADS\020\210\002\0225\n" + + "0AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS\020\205\002\022 \n" + + "\033AD_SERVER_UNFILTERED_CLICKS\020\203\002\0220\n" + + "+AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS\020\204\002\022)\n" + + " AD_SERVER_UNFILTERED_IMPRESSIONS\020\204\002\032\002\010\001\022%\n" + + " AD_SERVER_UNFILTERED_TRACKED_ADS\020\207\002\022\035\n" + + "\030AD_UNIT_EXPOSURE_SECONDS\020\362\001\022\017\n\n" + + "AD_VIEWERS\020\251\003\022\035\n" + + "\030ATN_ADS_FAILED_TO_RENDER\020\256\003\022\034\n" + + "\027ATN_ELIGIBLE_LINE_ITEMS\020\326\002\022(\n" + + "#ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS\020\327\002\022 \n" + + "\033ATN_HBT_ALLOWED_AD_REQUESTS\020\330\002\022\034\n" + + "\027ATN_HBT_BIDS_IN_AUCTION\020\331\002\022(\n" + + "#ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS\020\332\002\022\033\n" + + "\026ATN_HBT_CANDIDATE_BIDS\020\333\002\022 \n" + + "\033ATN_HBT_INVALID_AD_REQUESTS\020\334\002\022 \n" + + "\033ATN_HBT_NO_BIDS_AD_REQUESTS\020\330\003\022\032\n" + + "\025ATN_HBT_REJECTED_BIDS\020\335\002\022\036\n" + + "\031ATN_HBT_VALID_AD_REQUESTS\020\336\002\022\"\n" + + "\035ATN_HBT_WITH_BIDS_AD_REQUESTS\020\331\003\022\034\n" + + "\027ATN_INVALID_AD_REQUESTS\020\337\002\022*\n" + + "%ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED\020\334\003\022\036\n" + + "\031ATN_LINE_ITEMS_IN_AUCTION\020\340\002\022!\n" + + "\034ATN_LINE_ITEMS_NOT_COMPETING\020\203\004\022 \n" + + "\033ATN_LINE_ITEMS_NOT_SELECTED\020\341\002\022)\n" + + "$ATN_LINE_IT", + "EM_IN_AUCTION_AD_REQUESTS\020\342\002\022\'\n" + + "\"ATN_LINE_ITEM_TARGETED_AD_REQUESTS\020\343\002\022&\n" + + "!ATN_MEDIATION_ALLOWED_AD_REQUESTS\020\344\002\022&\n" + + "!ATN_MEDIATION_INVALID_AD_REQUESTS\020\345\002\022)\n" + + "$ATN_MEDIATION_LOADED_ADS_FROM_CHAINS\020\346\002\022)\n" + + "$ATN_MEDIATION_NO_PARTNER_AD_REQUESTS\020\332\003\022&\n" + + "!ATN_MEDIATION_PARTNERS_IN_AUCTION\020\347\002\0222\n" + + "-ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS\020\350\002\022$\n" + + "\037ATN_MEDIATION_REJECTED_PARTNERS\020\351\002\022$\n" + + "\037ATN_MEDIATION_TARGETED_PARTNERS\020\352\002\022\'\n" + + "\"ATN_MEDIATION_TOTAL_YIELD_PARTNERS\020\272\003\022+\n" + + "&ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS\020\353\002\022*\n" + + "%ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS\020\354\002\022$\n" + + "\037ATN_MEDIATION_VALID_AD_REQUESTS\020\355\002\022,\n" + + "\'ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS\020\333\003\022+\n" + + "&ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS\020\356\002\0228\n" + + "3ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT\020\357\002\022)\n" + + "$ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS\020\360\002\022%\n" + + " ATN_PROGRAMMATIC_BIDS_IN_AUCTION\020\361\002\0220\n" + + "+ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS\020\362\002\022\'\n" + + "\"ATN_PROGRAMMATIC_BID_REQUESTS_SENT\020\363\002\0220\n" + + "+ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE\020\364\002\022,\n" + + "\'ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES\020\365\002\022(\n" + + "#ATN_PROGRAMMATIC_BID_REQUEST_ERRORS\020\366\002\022,\n" + + "\'ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS\020\367\002\022#\n" + + "\036ATN_PROGRAMMATIC_REJECTED_BIDS\020\370\002\022*\n" + + "%ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS\020\371\002\022 \n" + + "\033ATN_PROGRAMMATIC_TOTAL_BIDS\020\372\002\022\'\n" + + "\"ATN_PROGRAMMATIC_VALID_AD_REQUESTS\020\373\002\022\034\n" + + "\027ATN_REJECTED_LINE_ITEMS\020\374\002\022 \n" + + "\033ATN_SERVED_MEDIATION_CHAINS\020\375\002\022\032\n" + + "\025ATN_SERVED_SINGLE_ADS\020\376\002\022\034\n" + + "\027ATN_TARGETED_LINE_ITEMS\020\377\002\022\032\n" + + "\025ATN_TOTAL_AD_REQUESTS\020\200\003\022\'\n" + + "\"ATN_TOTAL_COMPETING_ADS_IN_AUCTION\020\201\003\022\031\n" + + "\024ATN_TOTAL_LOADED_ADS\020\203\003\022\032\n" + + "\025ATN_VALID_AD_REQUESTS\020\205\003\022(\n" + + "#ATN_YIELD_GROUP_MEDIATION_PASSBACKS\020\206\003\022\020\n" + + "\014AVERAGE_ECPM\020%\022\034\n" + + "\030AVERAGE_ECPM_WITHOUT_CPD\020\005\022+\n" + + "&AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION\020\340\001\022(\n" + + "#AVERAGE_ENGAGEMENT_SECONDS_PER_USER\020\341\001\022+\n" + + "&AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR\020\242\003\022-\n" + + "(AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER\020\342\001\022\035\n" + + "\030AVERAGE_REVENUE_PER_USER\020\343\001\022\034\n" + + "\027AVERAGE_SESSION_SECONDS\020\344\001\022\t\n" + + "\004BIDS\020\273\003\022\024\n" + + "\017BID_AVERAGE_CPM\020\274\003\022\020\n" + + "\013BOUNCE_RATE\020\261\003\022\n\n" + + "\006CLICKS\020\002\022\025\n" + + "\021CODE_SERVED_COUNT\020,\022\020\n" + + "\013CPC_REVENUE\020\270\003\022\020\n" + + "\013CPM_REVENUE\020\271\003\022%\n" + + " CREATIVE_LOAD_TIME_0_500_PERCENT\020\304\002\022)\n" + + "$CREATIVE_LOAD_TIME_1000_2000_PERCENT\020\306\002\022)\n" + + "$CREATIVE_LOAD_TIME_2000_4000_PERCENT\020\307\002\022)\n" + + "$CREATIVE_LOAD_TIME_4000_8000_PERCENT\020\310\002\022(\n" + + "#CREATIVE_LOAD_TIME_500_1000_PERCENT\020\305\002\022\'\n" + + "\"CREATIVE_LOAD_TIME_GT_8000_PERCENT\020\311\002\022\007\n" + + "\003CTR\020\003\022\017\n\n" + + "DEALS_BIDS\020\236\004\022\023\n" + + "\016DEALS_BID_RATE\020\237\004\022\027\n" + + "\022DEALS_BID_REQUESTS\020\240\004\022\027\n" + + "\022DEALS_WINNING_BIDS\020\241\004\022\023\n" + + "\016DEALS_WIN_RATE\020\242\004\022/\n" + + "*DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\020\211\004\0223\n" + + ".DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\020\212\004\0223\n" + + ".DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\020\213\004\0223\n" + + ".DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\020\214\004\0222\n" + + "-DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\020\215\004\0221\n" + + ",DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\020\210\004\022,\n" + + "\'DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT\020\216\004\0220\n" + + "+DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT\020\217\004\0220\n" + + "+DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT\020\220\004\0220\n" + + "+DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT\020\221\004\022/\n" + + "*DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT\020\223\004\022.\n" + + ")DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT\020\222\004\022\021\n" + + "\014DROPOFF_RATE\020\237\003\022\025\n" + + "\020ENGAGED_SESSIONS\020\345\001\022\036\n" + + "\031ENGAGED_SESSIONS_PER_USER\020\346\001\022\024\n" + + "\017ENGAGEMENT_RATE\020\252\003\022&\n" + + "!EUROPEAN_REGULATIONS_CONSENT_RATE\020\216\002\022-\n" + + "(EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE\020\217\002\022(\n" + + "#EUROPEAN_REGULATIONS_MESSAGES_SHOWN\020\220\002\022)\n" + + "$EUROPEAN_REGULATIONS_NO_CONSENT_RATE\020\221\002\022\016\n" + + "\tFILL_RATE\020\202\002\022\034\n" + + "\027GOOGLE_ANALYTICS_CLICKS\020\347\001\022\031\n" + + "\024GOOGLE_ANALYTICS_CTR\020\350\001\022\032\n" + + "\025GOOGLE_ANALYTICS_ECPM\020\351\001\022!\n" + + "\034GOOGLE_ANALYTICS_IMPRESSIONS\020\352\001\022\035\n" + + "\030GOOGLE_ANALYTICS_REVENUE\020\353\001\022\033\n" + + "\026GOOGLE_ANALYTICS_VIEWS\020\354\001\022$\n" + + "\037GOOGLE_ANALYTICS_VIEWS_PER_USER\020\355\001\022-\n" + + "(GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS\020\201\001\022$\n" + + "\037GOOGLE_SOLD_AUCTION_IMPRESSIONS\020\200\001\022%\n" + + " GOOGLE_SOLD_COVIEWED_IMPRESSIONS\020\203\001\022\034\n" + + "\027GOOGLE_SOLD_IMPRESSIONS\020\202\001\0220\n" + + ",GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS\020\177\022\'\n" + + "#GOOGLE_SOLD_RESERVATION_IMPRESSIONS\020~\022\017\n" + + "\013IMPRESSIONS\020\001\022)\n" + + "$INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\020\227\003\022\025\n" + + "\020INVENTORY_SHARES\020\243\004\0223\n" + + ".INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES\020\244\004\022\031\n" + + "\024INVOICED_IMPRESSIONS\020\224\003\022\"\n" + + "\035INVOICED_UNFILLED_IMPRESSIONS\020\225\003\022\034\n" + + "\027MEDIATION_CHAINS_FILLED\020\310\004\022\026\n" + + "\021MUTED_IMPRESSIONS\020\234\003\022\036\n" + + "\031MUTE_ELIGIBLE_IMPRESSIONS\020\231\003\022\022\n\r" + + "OPPORTUNITIES\020\317\003\022\036\n" + + "\031OVERDELIVERED_IMPRESSIONS\020\260\003\022&\n" + + "!PARTNER_SALES_FILLED_POD_REQUESTS\020\207\001\022\034\n" + + "\027PARTNER_SALES_FILL_RATE\020\210\001\022%\n" + + " PARTNER_SALES_PARTNER_MATCH_RATE\020\211\001\022\032\n" + + "\025PARTNER_SALES_QUERIES\020\204\001\022\'\n" + + "\"PARTNER_SALES_UNFILLED_IMPRESSIONS\020\205\001\022$\n" + + "\037PARTNER_SALES_UNMATCHED_QUERIES\020\206\001\022\034\n" + + "\030PARTNER_SOLD_CODE_SERVED\020}\022%\n" + + "!PARTNER_SOLD_COVIEWED_IMPRESSIONS\020|\022\034\n" + + "\030PARTNER_SOLD_IMPRESSIONS\020{\022&\n" + + "!PROGRAMMATIC_ELIGIBLE_AD_REQUESTS\020\261\001\022\034\n" + + "\027PROGRAMMATIC_MATCH_RATE\020\262\001\022\"\n" + + "\035PROGRAMMATIC_RESPONSES_SERVED\020\260\001\022\026\n" + + "\021REACH_IMPRESSIONS\020\240\003\022\024\n" + + "\020RESPONSES_SERVED\020\'\022\016\n" + + "\tRETENTION\020\356\001\022\013\n" + + "\007REVENUE\020$\022)\n" + + "$REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\020\326\001\022\027\n" + + "\023REVENUE_WITHOUT_CPD\020\004\022\024\n" + + "\017REWARDS_GRANTED\020\235\003\022$\n" + + "\037RICH_MEDIA_AVERAGE_DISPLAY_TIME\020\313\004\022(\n" + + "#RICH_MEDIA_AVERAGE_INTERACTION_TIME\020\314\004\022\035\n" + + "\030RICH_MEDIA_BACKUP_IMAGES\020\315\004\022\"\n" + + "\035RICH_MEDIA_CUSTOM_EVENT_COUNT\020\327\004\022!\n" + + "\034RICH_MEDIA_CUSTOM_EVENT_TIME\020\330\004\022\034\n" + + "\027RICH_MEDIA_DISPLAY_TIME\020\316\004\022\036\n" + + "\031RICH_MEDIA_EXPANDING_TIME\020\317\004\022\032\n" + + "\025RICH_MEDIA_EXPANSIONS\020\320\004\022\'\n" + + "\"RICH_MEDIA_FULL_SCREEN_IMPRESSIONS\020\321\004\022!\n" + + "\034RICH_MEDIA_INTERACTION_COUNT\020\322\004\022 \n" + + "\033RICH_MEDIA_INTERACTION_RATE\020\323\004\022 \n" + + "\033RICH_MEDIA_INTERACTION_TIME\020\324\004\022\'\n" + + "\"RICH_MEDIA_INTERACTIVE_IMPRESSIONS\020\325\004\022\035\n" + + "\030RICH_MEDIA_MANUAL_CLOSES\020\326\004\022\037\n" + + "\032RICH_MEDIA_VIDEO_COMPLETES\020\367\003\022\"\n" + + "\035RICH_MEDIA_VIDEO_INTERACTIONS\020\371\003\022&\n" + + "!RICH_MEDIA_VIDEO_INTERACTION_RATE\020\370\003\022\037\n" + + "\032RICH_MEDIA_VIDEO_MIDPOINTS\020\372\003\022\033\n" + + "\026RICH_MEDIA_VIDEO_MUTES\020\373\003\022\034\n" + + "\027RICH_MEDIA_VIDEO_PAUSES\020\374\003\022\033\n" + + "\026RICH_MEDIA_VIDEO_PLAYS\020\375\003\022\035\n" + + "\030RICH_MEDIA_VIDEO_REPLAYS\020\376\003\022\033\n" + + "\026RICH_MEDIA_VIDEO_STOPS\020\377\003\022\035\n" + + "\030RICH_MEDIA_VIDEO_UNMUTES\020\200\004\022\037\n" + + "\032RICH_MEDIA_VIDEO_VIEW_RATE\020\201\004\022\037\n" + + "\032RICH_MEDIA_VIDEO_VIEW_TIME\020\202\004\022\'\n" + + "\"SELL_THROUGH_AVAILABLE_IMPRESSIONS\020\335\003\022(\n" + + "#SELL_THROUGH_FORECASTED_IMPRESSIONS\020\336\003\022&\n" + + "!SELL_THROUGH_RESERVED_IMPRESSIONS\020\337\003\022#\n" + + "\036SELL_THROUGH_SELL_THROUGH_RATE\020\340\003\022.\n" + + ")SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS\020\262\003\022$\n" + + "\037SERVER_SIDE_UNWRAPPING_CALLOUTS\020\263\003\022+\n" + + "&SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES\020\264\003\022+\n" + + "&SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES\020\265\003\0220\n" + + "+SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES\020\266\003\022$\n" + + "\037SERVER_SIDE_UNWRAPPING_TIMEOUTS\020\267\003\022\r\n" + + "\010SESSIONS\020\357\001\022/\n" + + "*TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\020\307\003\0223\n" + + ".TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\020\311\003\0223\n" + + ".TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\020\312\003\0223\n" + + ".TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\020\313\003\0222\n" + + "-TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\020\310\003\0221\n" + + ",TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\020\314\003\022\024\n" + + "\017TARGETED_CLICKS\020\224\002\022\031\n" + + "\024TARGETED_IMPRESSIONS\020\225\002\022\030\n" + + "\024UNFILLED_IMPRESSIONS\020-\022\024\n" + + "\017UNIQUE_VISITORS\020\241\003\022$\n" + + "\037UNLOADED_IMPRESSIONS_DUE_TO_CPU\020\230\003\022(\n" + + "#UNLOADED_IMPRESSIONS_DUE_TO_NETWORK\020\226\003\022\031\n" + + "\025UNMATCHED_AD_REQUESTS\020+\022\"\n" + + "\035UNVIEWED_REASON_OTHER_PERCENT\020\246\004\0228\n" + + "3UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT\020\251\004\022;\n" + + "6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT\020\247\004\022;\n" + + "6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT\020\250\004\022<\n" + + "7UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT\020\245\004\022(\n" + + "#USER_ENGAGEMENT_DURATION_IN_SECONDS\020\360\001\022-\n" + + "(USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE\020\346\003\0229\n" + + "4USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT\020\347\003\0226\n" + + "1USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN\020\350\003\022&\n" + + "!USER_MESSAGES_ALLOW_ADS_PAGEVIEWS\020\351\003\022&\n" + + "!USER_MESSAGES_CCPA_MESSAGES_SHOWN\020\352\003\022(\n" + + "#USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN\020\353\003\022#\n" + + "\036USER_MESSAGES_IDFA_ATT_CONSENT\020\354\003\022(\n" + + "#USER_MESSAGES_IDFA_ATT_CONSENT_RATE\020\355\003\022+\n" + + "&USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT\020\356\003\022(\n" + + "#USER_MESSAGES_IDFA_ATT_DECLINE_RATE\020\357\003\022(\n" + + "#USER_MESSAGES_IDFA_EXPLAINERS_SHOWN\020\360\003\022*\n" + + "%USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN\020\361\003\022#\n" + + "\036USER_MESSAGES_IDFA_NO_DECISION\020\362\003\022*\n" + + "&USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN\020y\0222\n" + + ".USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS\020z\022+\n" + + "&USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS\020\363\003\022*\n" + + "%USER_MESSAGES_TOTAL_ESTIMATED_REVENUE\020\364\003\022&\n" + + "!USER_MESSAGES_UPTC_MESSAGES_SHOWN\020\365\003\0225\n" + + "0USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO\020\366\003\022\032\n" + + "\025VIDEO_ERROR_100_COUNT\020\264\001\022\032\n" + + "\025VIDEO_ERROR_101_COUNT\020\265\001\022\032\n" + + "\025VIDEO_ERROR_102_COUNT\020\266\001\022\032\n" + + "\025VIDEO_ERROR_200_COUNT\020\267\001\022\032\n" + + "\025VIDEO_ERROR_201_COUNT\020\270\001\022\032\n" + + "\025VIDEO_ERROR_202_COUNT\020\271\001\022\032\n" + + "\025VIDEO_ERROR_203_COUNT\020\272\001\022\032\n" + + "\025VIDEO_ERROR_300_COUNT\020\273\001\022\032\n" + + "\025VIDEO_ERROR_301_COUNT\020\274\001\022\032\n" + + "\025VIDEO_ERROR_302_COUNT\020\275\001\022\032\n" + + "\025VIDEO_ERROR_303_COUNT\020\276\001\022\032\n" + + "\025VIDEO_ERROR_400_COUNT\020\277\001\022\032\n" + + "\025VIDEO_ERROR_401_COUNT\020\300\001\022\032\n" + + "\025VIDEO_ERROR_402_COUNT\020\301\001\022\032\n" + + "\025VIDEO_ERROR_403_COUNT\020\302\001\022\032\n" + + "\025VIDEO_ERROR_405_COUNT\020\303\001\022\032\n" + + "\025VIDEO_ERROR_406_COUNT\020\304\001\022\032\n" + + "\025VIDEO_ERROR_407_COUNT\020\305\001\022\032\n" + + "\025VIDEO_ERROR_408_COUNT\020\306\001\022\032\n" + + "\025VIDEO_ERROR_409_COUNT\020\307\001\022\032\n" + + "\025VIDEO_ERROR_410_COUNT\020\310\001\022\032\n" + + "\025VIDEO_ERROR_500_COUNT\020\311\001\022\032\n" + + "\025VIDEO_ERROR_501_COUNT\020\312\001\022\032\n" + + "\025VIDEO_ERROR_502_COUNT\020\313\001\022\032\n" + + "\025VIDEO_ERROR_503_COUNT\020\314\001\022\032\n" + + "\025VIDEO_ERROR_600_COUNT\020\315\001\022\032\n" + + "\025VIDEO_ERROR_601_COUNT\020\316\001\022\032\n" + + "\025VIDEO_ERROR_602_COUNT\020\317\001\022\032\n" + + "\025VIDEO_ERROR_603_COUNT\020\320\001\022\032\n" + + "\025VIDEO_ERROR_604_COUNT\020\321\001\022\032\n" + + "\025VIDEO_ERROR_900_COUNT\020\322\001\022\032\n" + + "\025VIDEO_ERROR_901_COUNT\020\323\001\022.\n" + + "*VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE\020\\\022\037\n" + + "\033VIDEO_INTERACTION_COLLAPSES\020]\022\035\n" + + "\031VIDEO_INTERACTION_EXPANDS\020_\022\"\n" + + "\036VIDEO_INTERACTION_FULL_SCREENS\020`\022\033\n" + + "\027VIDEO_INTERACTION_MUTES\020a\022\034\n" + + "\030VIDEO_INTERACTION_PAUSES\020b\022\035\n" + + "\031VIDEO_INTERACTION_RESUMES\020c\022\035\n" + + "\031VIDEO_INTERACTION_REWINDS\020d\022\035\n" + + "\031VIDEO_INTERACTION_UNMUTES\020e\022!\n" + + "\035VIDEO_INTERACTION_VIDEO_SKIPS\020f\022$\n" + + "\037VIDEO_MONETIZABLE_CONTENT_VIEWS\020\331\004\022$\n" + + "\037VIDEO_REAL_TIME_CREATIVE_SERVES\020\213\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_100_COUNT\020\217\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_101_COUNT\020\220\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_102_COUNT\020\221\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_200_COUNT\020\222\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_201_COUNT\020\223\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_202_COUNT\020\224\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_203_COUNT\020\225\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_300_COUNT\020\226\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_301_COUNT\020\227\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_302_COUNT\020\230\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_303_COUNT\020\231\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_400_COUNT\020\232\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_401_COUNT\020\233\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_402_COUNT\020\234\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_403_COUNT\020\235\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_405_COUNT\020\236\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_406_COUNT\020\237\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_407_COUNT\020\240\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_408_COUNT\020\241\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_409_COUNT\020\242\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_410_COUNT\020\243\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_500_COUNT\020\244\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_501_COUNT\020\245\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_502_COUNT\020\246\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_503_COUNT\020\247\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_600_COUNT\020\250\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_601_COUNT\020\251\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_602_COUNT\020\252\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_603_COUNT\020\253\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_604_COUNT\020\254\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_900_COUNT\020\255\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_901_COUNT\020\256\001\022 \n" + + "\033VIDEO_REAL_TIME_IMPRESSIONS\020\212\001\022$\n" + + "\037VIDEO_REAL_TIME_MATCHED_QUERIES\020\214\001\022&\n" + + "!VIDEO_REAL_TIME_TOTAL_ERROR_COUNT\020\257\001\022\"\n" + + "\035VIDEO_REAL_TIME_TOTAL_QUERIES\020\216\001\022&\n" + + "!VIDEO_REAL_TIME_UNMATCHED_QUERIES\020\215\001\022\037\n" + + "\033VIDEO_VIEWERSHIP_AUTO_PLAYS\020g\022&\n" + + "\"VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE\020h\022&\n" + + "\"VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME\020i\022#\n" + + "\037VIDEO_VIEWERSHIP_CLICK_TO_PLAYS\020j\022\036\n" + + "\032VIDEO_VIEWERSHIP_COMPLETES\020k\022$\n" + + " VIDEO_VIEWERSHIP_COMPLETION_RATE\020l\022\"\n" + + "\036VIDEO_VIEWERSHIP_ENGAGED_VIEWS\020m\022$\n" + + " VIDEO_VIEWERSHIP_FIRST_QUARTILES\020n\022\036\n" + + "\032VIDEO_VIEWERSHIP_MIDPOINTS\020o\022\'\n" + + "#VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN\020p\022\033\n" + + "\027VIDEO_VIEWERSHIP_STARTS\020q\022$\n" + + " VIDEO_VIEWERSHIP_THIRD_QUARTILES\020r\022&\n" + + "\"VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT\020s\022%\n" + + "!VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE\020^\022!\n" + + "\035VIDEO_VIEWERSHIP_VIDEO_LENGTH\020t\022&\n" + + "\"VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE\020u\022\034\n" + + "\030YIELD_GROUP_AUCTIONS_WON\020P\022\024\n" + + "\020YIELD_GROUP_BIDS\020Q\022\037\n" + + "\033YIELD_GROUP_BIDS_IN_AUCTION\020R\022\030\n" + + "\024YIELD_GROUP_CALLOUTS\020S\022\035\n" + + "\031YIELD_GROUP_ESTIMATED_CPM\020X\022!\n" + + "\035YIELD_GROUP_ESTIMATED_REVENUE\020W\022\033\n" + + "\027YIELD_GROUP_IMPRESSIONS\020U\022#\n" + + "\037YIELD_GROUP_MEDIATION_FILL_RATE\020Y\022)\n" + + "%YIELD_GROUP_MEDIATION_MATCHED_QUERIES\020V\022#\n" + + "\037YIELD_GROUP_MEDIATION_PASSBACKS\020v\022*\n" + + "&YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM\020Z\0225\n" + + "0YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\020\327\001\022$\n" + + " YIELD_GROUP_SUCCESSFUL_RESPONSES\020T\032\002\020\001\"\256\001\n" + + "\020TimePeriodColumn\022\"\n" + + "\036TIME_PERIOD_COLUMN_UNSPECIFIED\020\000\022\033\n" + + "\027TIME_PERIOD_COLUMN_DATE\020\001\022\033\n" + + "\027TIME_PERIOD_COLUMN_WEEK\020\002\022\034\n" + + "\030TIME_PERIOD_COLUMN_MONTH\020\003\022\036\n" + + "\032TIME_PERIOD_COLUMN_QUARTER\020\004\"\227\001\n" + + "\017MetricValueType\022\013\n" + + "\007PRIMARY\020\000\022\034\n" + + "\030PRIMARY_PERCENT_OF_TOTAL\020\001\022\016\n\n" + + "COMPARISON\020\002\022\037\n" + + "\033COMPARISON_PERCENT_OF_TOTAL\020\003\022\023\n" + + "\017ABSOLUTE_CHANGE\020\004\022\023\n" + + "\017RELATIVE_CHANGE\020\005\"i\n" + + "\016TimeZoneSource\022 \n" + + "\034TIME_ZONE_SOURCE_UNSPECIFIED\020\000\022\r\n" + + "\tPUBLISHER\020\001\022\017\n" + + "\013AD_EXCHANGE\020\002\022\007\n" + + "\003UTC\020\003\022\014\n" + + "\010PROVIDED\020\004B\030\n" + + "\026_comparison_date_rangeB\311\001\n" + + "\033com.google.ads.admanager.v1B\025ReportDefinitionProtoP\001Z@google.golang.org/" + + "genproto/googleapis/ads/admanager/v1;adm" + + "anager\252\002\027Google.Ads.AdManager.V1\312\002\027Googl" + + "e\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ReportValueProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor, + new java.lang.String[] { + "Dimensions", + "Metrics", + "Filters", + "TimeZoneSource", + "TimeZone", + "CurrencyCode", + "DateRange", + "ComparisonDateRange", + "CustomDimensionKeyIds", + "LineItemCustomFieldIds", + "OrderCustomFieldIds", + "CreativeCustomFieldIds", + "ReportType", + "TimePeriodColumn", + "Flags", + "Sorts", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_Field_descriptor = + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_ReportDefinition_Field_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_Field_descriptor, + new java.lang.String[] { + "Dimension", "Metric", "Field", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_descriptor = + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor.getNestedTypes().get(1); + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_descriptor, + new java.lang.String[] { + "Fixed", "Relative", "DateRangeType", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_descriptor = + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_descriptor + .getNestedTypes() + .get(0); + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_DateRange_FixedDateRange_descriptor, + new java.lang.String[] { + "StartDate", "EndDate", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_descriptor = + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor.getNestedTypes().get(2); + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_descriptor, + new java.lang.String[] { + "FieldFilter", "NotFilter", "AndFilter", "OrFilter", "Type", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_descriptor = + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FieldFilter_descriptor, + new java.lang.String[] { + "Field", "Operation", "Values", "Slice", "TimePeriodIndex", "MetricValueType", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_descriptor = + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_descriptor + .getNestedTypes() + .get(1); + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_Filter_FilterList_descriptor, + new java.lang.String[] { + "Filters", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_Sort_descriptor = + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor.getNestedTypes().get(3); + internal_static_google_ads_admanager_v1_ReportDefinition_Sort_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_Sort_descriptor, + new java.lang.String[] { + "Field", "Descending", "Slice", "TimePeriodIndex", "MetricValueType", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_Slice_descriptor = + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor.getNestedTypes().get(4); + internal_static_google_ads_admanager_v1_ReportDefinition_Slice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_Slice_descriptor, + new java.lang.String[] { + "Dimension", "Value", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_Flag_descriptor = + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor.getNestedTypes().get(5); + internal_static_google_ads_admanager_v1_ReportDefinition_Flag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_Flag_descriptor, + new java.lang.String[] { + "Filters", "Name", + }); + 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); + com.google.ads.admanager.v1.ReportValueProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportMessagesProto.java index 93c972922862..de064cda3985 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportMessagesProto.java @@ -33,85 +33,33 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_Report_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Value_descriptor; + internal_static_google_ads_admanager_v1_ReportDataTable_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable; + internal_static_google_ads_admanager_v1_ReportDataTable_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor; + internal_static_google_ads_admanager_v1_ReportDataTable_Row_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable; + internal_static_google_ads_admanager_v1_ReportDataTable_Row_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor; + internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Sort_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Field_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Slice_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Flag_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DateRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_ReportDefinition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable; + internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_ScheduleOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Schedule_descriptor; + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable; + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor; + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable; + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor; + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_fieldAccessorTable; + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -123,967 +71,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "-google/ads/admanager/v1/report_message" - + "s.proto\022\027google.ads.admanager.v1\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\032\037google/protobuf/timestamp." - + "proto\032\026google/type/date.proto\032\033google/ty" - + "pe/dayofweek.proto\032\033google/type/timeofday.proto\"\265\351\001\n" + + "s.proto\022\027google.ads.admanager.v1\032/google" + + "/ads/admanager/v1/report_definition.proto\032*google/ads/admanager/v1/report_value." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032\037google/protob" + + "uf/timestamp.proto\032\026google/type/date.pro" + + "to\032\033google/type/dayofweek.proto\032\033google/type/timeofday.proto\"\271\004\n" + "\006Report\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" + "\treport_id\030\003 \001(\003B\003\340A\003\022C\n\n" - + "visibility\030\002 \001" - + "(\0162*.google.ads.admanager.v1.Report.VisibilityB\003\340A\001\022I\n" - + "\021report_definition\030\004 \001(\0132)" - + ".google.ads.admanager.v1.ReportDefinitionB\003\340A\002\022\031\n" + + "visibility\030\002" + + " \001(\0162*.google.ads.admanager.v1.Report.VisibilityB\003\340A\001\022I\n" + + "\021report_definition\030\004" + + " \001(\0132).google.ads.admanager.v1.ReportDefinitionB\003\340A\002\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\001\0224\n" + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013create_time\030\007" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\006locale\030\010 \001(\tB\003\340A\003\022G\n" - + "\020schedule_options\030\t" - + " \001(\0132(.google.ads.admanager.v1.ScheduleOptionsB\003\340A\001\032\323\002\n" - + "\005Value\022\023\n" - + "\tint_value\030\001 \001(\003H\000\022\026\n" - + "\014double_value\030\002 \001(\001H\000\022\026\n" - + "\014string_value\030\003 \001(\tH\000\022\024\n\n" - + "bool_value\030\004 \001(\010H\000\022G\n" - + "\016int_list_value\030\006 \001(\013" - + "2-.google.ads.admanager.v1.Report.Value.IntListH\000\022M\n" - + "\021string_list_value\030\007 \001(\01320.g" - + "oogle.ads.admanager.v1.Report.Value.StringListH\000\022\025\n" - + "\013bytes_value\030\010 \001(\014H\000\032\031\n" - + "\007IntList\022\016\n" - + "\006values\030\001 \003(\003\032\034\n\n" - + "StringList\022\016\n" - + "\006values\030\001 \003(\tB\007\n" - + "\005value\032\313\002\n" - + "\004Sort\0229\n" - + "\005field\030\001 \001(" - + "\0132%.google.ads.admanager.v1.Report.FieldB\003\340A\002\022\027\n\n" - + "descending\030\002 \001(\010B\003\340A\001\022>\n" - + "\005slice\030\003" - + " \001(\0132%.google.ads.admanager.v1.Report.SliceB\003\340A\001H\000\210\001\001\022#\n" - + "\021time_period_index\030\004 \001(\005B\003\340A\001H\001\210\001\001\022T\n" - + "\021metric_value_type\030\005 \001(\0162/" - + ".google.ads.admanager.v1.Report.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" - + "\006_sliceB\024\n" - + "\022_time_period_indexB\024\n" - + "\022_metric_value_type\032\211\005\n" - + "\tDataTable\032\237\001\n" - + "\003Row\022?\n" - + "\020dimension_values\030\001 \003(\0132%.google.ads.admanager.v1.Report.Value\022W\n" - + "\023metric_value_groups\030\002 \003(\0132:.google.ads" - + ".admanager.v1.Report.DataTable.MetricValueGroup\032\331\003\n" - + "\020MetricValueGroup\022=\n" - + "\016primary_values\030\001 \003(\0132%.google.ads.admanager.v1.Report.Value\022N\n" - + "\037primary_percent_of_total_values\030\002" - + " \003(\0132%.google.ads.admanager.v1.Report.Value\022@\n" - + "\021comparison_values\030\003 \003(\0132%.google.ads.admanager.v1.Report.Value\022Q\n" - + "\"comparison_percent_of_total_values\030\004 \003(" - + "\0132%.google.ads.admanager.v1.Report.Value\022E\n" - + "\026absolute_change_values\030\005" - + " \003(\0132%.google.ads.admanager.v1.Report.Value\022E\n" - + "\026relative_change_values\030\006" - + " \003(\0132%.google.ads.admanager.v1.Report.Value\022\023\n" - + "\013flag_values\030\007 \003(\010\032\212\001\n" - + "\005Field\022>\n" - + "\tdimension\030\001 \001(\0162).google.ads.admanager.v1.Report.DimensionH\000\0228\n" - + "\006metric\030\002 \001(\0162&.google.ads.admanager.v1.Report.MetricH\000B\007\n" - + "\005field\032\205\001\n" - + "\005Slice\022A\n" - + "\tdimension\030\001" - + " \001(\0162).google.ads.admanager.v1.Report.DimensionB\003\340A\002\0229\n" - + "\005value\030\002 \001(\0132%.g" - + "oogle.ads.admanager.v1.Report.ValueB\003\340A\002\032\366\007\n" - + "\006Filter\022J\n" - + "\014field_filter\030\001 \001(\01322.goog" - + "le.ads.admanager.v1.Report.Filter.FieldFilterH\000\022<\n\n" - + "not_filter\030\002 \001(\0132&.google.ads.admanager.v1.Report.FilterH\000\022G\n\n" - + "and_filter\030\003" - + " \001(\01321.google.ads.admanager.v1.Report.Filter.FilterListH\000\022F\n" - + "\tor_filter\030\004 \001(" - + "\01321.google.ads.admanager.v1.Report.Filter.FilterListH\000\032\277\003\n" - + "\013FieldFilter\0229\n" - + "\005field\030\001" - + " \001(\0132%.google.ads.admanager.v1.Report.FieldB\003\340A\002\022H\n" - + "\toperation\030\002 \001(\01620.google.ad" - + "s.admanager.v1.Report.Filter.OperationB\003\340A\002\022:\n" - + "\006values\030\003" - + " \003(\0132%.google.ads.admanager.v1.Report.ValueB\003\340A\002\022>\n" - + "\005slice\030\004 \001(\0132%" - + ".google.ads.admanager.v1.Report.SliceB\003\340A\001H\000\210\001\001\022#\n" - + "\021time_period_index\030\005 \001(\005B\003\340A\001H\001\210\001\001\022T\n" - + "\021metric_value_type\030\006 \001(\0162/.google" - + ".ads.admanager.v1.Report.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" - + "\006_sliceB\024\n" - + "\022_time_period_indexB\024\n" - + "\022_metric_value_type\032J\n\n" - + "FilterList\022<\n" - + "\007filters\030\001" - + " \003(\0132&.google.ads.admanager.v1.Report.FilterB\003\340A\002\"\272\001\n" - + "\tOperation\022\006\n" - + "\002IN\020\000\022\n\n" - + "\006NOT_IN\020\001\022\014\n" - + "\010CONTAINS\020\002\022\020\n" - + "\014NOT_CONTAINS\020\003\022\r\n" - + "\tLESS_THAN\020\004\022\024\n" - + "\020LESS_THAN_EQUALS\020\005\022\020\n" - + "\014GREATER_THAN\020\006\022\027\n" - + "\023GREATER_THAN_EQUALS\020\007\022\013\n" - + "\007BETWEEN\020\010\022\013\n" - + "\007MATCHES\020\t\022\017\n" - + "\013NOT_MATCHES\020\n" - + "B\006\n" - + "\004type\032W\n" - + "\004Flag\022<\n" - + "\007filters\030\001 \003" - + "(\0132&.google.ads.admanager.v1.Report.FilterB\003\340A\002\022\021\n" - + "\004name\030\002 \001(\tB\003\340A\001\032\330\006\n" - + "\tDateRange\022I\n" - + "\005fixed\030\001" - + " \001(\01328.google.ads.admanager.v1.Report.DateRange.FixedDateRangeH\000\022O\n" - + "\010relative\030\002" - + " \001(\0162;.google.ads.admanager.v1.Report.DateRange.RelativeDateRangeH\000\032f\n" - + "\016FixedDateRange\022*\n\n" - + "start_date\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022(\n" - + "\010end_date\030\002 \001(\0132\021.google.type.DateB\003\340A\002\"\263\004\n" - + "\021RelativeDateRange\022#\n" - + "\037RELATIVE_DATE_RANGE_UNSPECIFIED\020\000\022\t\n" - + "\005TODAY\020\001\022\r\n" - + "\tYESTERDAY\020\002\022\r\n" - + "\tTHIS_WEEK\020\003\022\025\n" - + "\021THIS_WEEK_TO_DATE\020\035\022\016\n\n" - + "THIS_MONTH\020\004\022\026\n" - + "\022THIS_MONTH_TO_DATE\020\032\022\020\n" - + "\014THIS_QUARTER\020\005\022\030\n" - + "\024THIS_QUARTER_TO_DATE\020\033\022\r\n" - + "\tTHIS_YEAR\020\006\022\025\n" - + "\021THIS_YEAR_TO_DATE\020\034\022\r\n" - + "\tLAST_WEEK\020\007\022\016\n\n" - + "LAST_MONTH\020\010\022\020\n" - + "\014LAST_QUARTER\020\t\022\r\n" - + "\tLAST_YEAR\020\n" - + "\022\017\n" - + "\013LAST_7_DAYS\020\013\022\020\n" - + "\014LAST_30_DAYS\020\014\022\020\n" - + "\014LAST_60_DAYS\020\r" - + "\022\020\n" - + "\014LAST_90_DAYS\020\016\022\021\n\r" - + "LAST_180_DAYS\020\017\022\021\n\r" - + "LAST_360_DAYS\020\020\022\021\n\r" - + "LAST_365_DAYS\020\021\022\021\n\r" - + "LAST_3_MONTHS\020\022\022\021\n\r" - + "LAST_6_MONTHS\020\023\022\022\n" - + "\016LAST_12_MONTHS\020\024\022\021\n\r" - + "ALL_AVAILABLE\020\025\022\023\n" - + "\017PREVIOUS_PERIOD\020\026\022\035\n" - + "\031SAME_PERIOD_PREVIOUS_YEAR\020\030B\021\n" - + "\017date_range_type\"\256\001\n" - + "\020TimePeriodColumn\022\"\n" - + "\036TIME_PERIOD_COLUMN_UNSPECIFIED\020\000\022\033\n" - + "\027TIME_PERIOD_COLUMN_DATE\020\001\022\033\n" - + "\027TIME_PERIOD_COLUMN_WEEK\020\002\022\034\n" - + "\030TIME_PERIOD_COLUMN_MONTH\020\003\022\036\n" - + "\032TIME_PERIOD_COLUMN_QUARTER\020\004\"\364\222\001\n" - + "\tDimension\022\031\n" - + "\025DIMENSION_UNSPECIFIED\020\000\022\033\n" - + "\026ADVERTISER_DOMAIN_NAME\020\362\001\022\033\n" - + "\026ADVERTISER_EXTERNAL_ID\020\344\001\022\022\n\r" - + "ADVERTISER_ID\020\203\001\022\026\n" - + "\021ADVERTISER_LABELS\020\346\001\022\031\n" - + "\024ADVERTISER_LABEL_IDS\020\345\001\022\024\n" - + "\017ADVERTISER_NAME\020\204\001\022\037\n" - + "\032ADVERTISER_PRIMARY_CONTACT\020\343\001\022\020\n" - + "\013AD_LOCATION\020\206\003\022\025\n" - + "\020AD_LOCATION_NAME\020\207\003\022\020\n" - + "\014AD_UNIT_CODE\020@\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_1\020A\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_10\020J\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_11\020K\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_12\020L\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_13\020M\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_14\020N\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_15\020O\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_16\020P\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_2\020B\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_3\020C\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_4\020D\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_5\020E\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_6\020F\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_7\020G\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_8\020H\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_9\020I\022\021\n\r" - + "AD_UNIT_DEPTH\020e\022\016\n\n" - + "AD_UNIT_ID\020\031\022\030\n" - + "\024AD_UNIT_ID_ALL_LEVEL\020\033\022\026\n" - + "\022AD_UNIT_ID_LEVEL_1\020\036\022\027\n" - + "\023AD_UNIT_ID_LEVEL_10\0200\022\027\n" - + "\023AD_UNIT_ID_LEVEL_11\0202\022\027\n" - + "\023AD_UNIT_ID_LEVEL_12\0204\022\027\n" - + "\023AD_UNIT_ID_LEVEL_13\0206\022\027\n" - + "\023AD_UNIT_ID_LEVEL_14\0208\022\027\n" - + "\023AD_UNIT_ID_LEVEL_15\020:\022\027\n" - + "\023AD_UNIT_ID_LEVEL_16\020<\022\026\n" - + "\022AD_UNIT_ID_LEVEL_2\020 \022\026\n" - + "\022AD_UNIT_ID_LEVEL_3\020\"\022\026\n" - + "\022AD_UNIT_ID_LEVEL_4\020$\022\026\n" - + "\022AD_UNIT_ID_LEVEL_5\020&\022\026\n" - + "\022AD_UNIT_ID_LEVEL_6\020(\022\026\n" - + "\022AD_UNIT_ID_LEVEL_7\020*\022\026\n" - + "\022AD_UNIT_ID_LEVEL_8\020,\022\026\n" - + "\022AD_UNIT_ID_LEVEL_9\020.\022\031\n" - + "\024AD_UNIT_ID_TOP_LEVEL\020\216\001\022\020\n" - + "\014AD_UNIT_NAME\020\032\022\032\n" - + "\026AD_UNIT_NAME_ALL_LEVEL\020\035\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_1\020\037\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_10\0201\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_11\0203\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_12\0205\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_13\0207\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_14\0209\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_15\020;\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_16\020=\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_2\020!\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_3\020#\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_4\020%\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_5\020\'\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_6\020)\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_7\020+\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_8\020-\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_9\020/\022\033\n" - + "\026AD_UNIT_NAME_TOP_LEVEL\020\217\001\022\031\n" - + "\025AD_UNIT_REWARD_AMOUNT\020?\022\027\n" - + "\023AD_UNIT_REWARD_TYPE\020>\022\023\n" - + "\016AD_UNIT_STATUS\020\316\001\022\030\n" - + "\023AD_UNIT_STATUS_NAME\020\317\001\022\020\n" - + "\013APP_VERSION\020\210\003\022$\n" - + "\037BACKFILL_ADVERTISER_EXTERNAL_ID\020\335\002\022\033\n" - + "\026BACKFILL_ADVERTISER_ID\020\332\002\022\037\n" - + "\032BACKFILL_ADVERTISER_LABELS\020\337\002\022\"\n" - + "\035BACKFILL_ADVERTISER_LABEL_IDS\020\336\002\022\035\n" - + "\030BACKFILL_ADVERTISER_NAME\020\333\002\022(\n" - + "#BACKFILL_ADVERTISER_PRIMARY_CONTACT\020\334\002\022#\n" - + "\036BACKFILL_CREATIVE_BILLING_TYPE\020\372\002\022(\n" - + "#BACKFILL_CREATIVE_BILLING_TYPE_NAME\020\373\002\022(\n" - + "#BACKFILL_CREATIVE_CLICK_THROUGH_URL\020\370\002\022\031\n" - + "\024BACKFILL_CREATIVE_ID\020\362\002\022\033\n" - + "\026BACKFILL_CREATIVE_NAME\020\363\002\022)\n" - + "$BACKFILL_CREATIVE_THIRD_PARTY_VENDOR\020\371\002\022\033\n" - + "\026BACKFILL_CREATIVE_TYPE\020\366\002\022 \n" - + "\033BACKFILL_CREATIVE_TYPE_NAME\020\367\002\022 \n" - + "\033BACKFILL_LINE_ITEM_ARCHIVED\020\226\002\0221\n" - + ",BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION\020\202\002\0226\n" - + "1BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\020\203\002\022\'\n" - + "\"BACKFILL_LINE_ITEM_COMPUTED_STATUS\020\250\002\022,\n" - + "\'BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME\020\251\002\022+\n" - + "&BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY\020\230\002\022%\n" - + " BACKFILL_LINE_ITEM_COST_PER_UNIT\020\220\002\022!\n" - + "\034BACKFILL_LINE_ITEM_COST_TYPE\020\210\002\022&\n" - + "!BACKFILL_LINE_ITEM_COST_TYPE_NAME\020\211\002\022)\n" - + "$BACKFILL_LINE_ITEM_CREATIVE_END_DATE\020\375\002\022.\n" - + ")BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE\020\242\002\0223\n" - + ".BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\020\243\002\022+\n" - + "&BACKFILL_LINE_ITEM_CREATIVE_START_DATE\020\374\002\022%\n" - + " BACKFILL_LINE_ITEM_CURRENCY_CODE\020\240\002\022*\n" - + "%BACKFILL_LINE_ITEM_DELIVERY_INDICATOR\020\222\002\022*\n" - + "%BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE\020\244\002\022/\n" - + "*BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME\020\245\002\022)\n" - + "$BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE\020\246\002\022+\n" - + "&BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE\020\247\002\022 \n" - + "\033BACKFILL_LINE_ITEM_END_DATE\020\213\002\022%\n" - + " BACKFILL_LINE_ITEM_END_DATE_TIME\020\215\002\022(\n" - + "#BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE\020\256\002\022-\n" - + "(BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME\020\201\002\022(\n" - + "#BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID\020\235\002\022#\n" - + "\036BACKFILL_LINE_ITEM_EXTERNAL_ID\020\221\002\022%\n" - + " BACKFILL_LINE_ITEM_FREQUENCY_CAP\020\257\002\022\032\n" - + "\025BACKFILL_LINE_ITEM_ID\020\252\002\022,\n" - + "\'BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP\020\241\002\022\'\n" - + "\"BACKFILL_LINE_ITEM_LIFETIME_CLICKS\020\233\002\022,\n" - + "\'BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS\020\232\002\0225\n" - + "0BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\020\234\002\022 \n" - + "\033BACKFILL_LINE_ITEM_MAKEGOOD\020\224\002\022\034\n" - + "\027BACKFILL_LINE_ITEM_NAME\020\253\002\022.\n" - + ")BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE\020\236\002\022#\n" - + "\036BACKFILL_LINE_ITEM_OPTIMIZABLE\020\225\002\022)\n" - + "$BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE\020\206\002\022.\n" - + ")BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\020\207\002\022.\n" - + ")BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\020\204\002\0223\n" - + ".BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\020\205\002\022 \n" - + "\033BACKFILL_LINE_ITEM_PRIORITY\020\212\002\022*\n" - + "%BACKFILL_LINE_ITEM_RESERVATION_STATUS\020\262\002\022/\n" - + "*BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME\020\263\002\022\"\n" - + "\035BACKFILL_LINE_ITEM_START_DATE\020\214\002\022\'\n" - + "\"BACKFILL_LINE_ITEM_START_DATE_TIME\020\216\002\022\034\n" - + "\027BACKFILL_LINE_ITEM_TYPE\020\254\002\022!\n" - + "\034BACKFILL_LINE_ITEM_TYPE_NAME\020\255\002\022%\n" - + " BACKFILL_LINE_ITEM_UNLIMITED_END\020\217\002\022+\n" - + "&BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT\020\223\002\022)\n" - + "$BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE\020\237\002\022*\n" - + "%BACKFILL_MASTER_COMPANION_CREATIVE_ID\020\364\002\022,\n" - + "\'BACKFILL_MASTER_COMPANION_CREATIVE_NAME\020\365\002\022\032\n" - + "\025BACKFILL_ORDER_AGENCY\020\271\002\022\035\n" - + "\030BACKFILL_ORDER_AGENCY_ID\020\272\002\022\036\n" - + "\031BACKFILL_ORDER_BOOKED_CPC\020\273\002\022\036\n" - + "\031BACKFILL_ORDER_BOOKED_CPM\020\274\002\022#\n" - + "\036BACKFILL_ORDER_DELIVERY_STATUS\020\324\002\022(\n" - + "#BACKFILL_ORDER_DELIVERY_STATUS_NAME\020\325\002\022\034\n" - + "\027BACKFILL_ORDER_END_DATE\020\275\002\022!\n" - + "\034BACKFILL_ORDER_END_DATE_TIME\020\277\002\022\037\n" - + "\032BACKFILL_ORDER_EXTERNAL_ID\020\300\002\022\026\n" - + "\021BACKFILL_ORDER_ID\020\322\002\022\032\n" - + "\025BACKFILL_ORDER_LABELS\020\316\002\022\035\n" - + "\030BACKFILL_ORDER_LABEL_IDS\020\317\002\022#\n" - + "\036BACKFILL_ORDER_LIFETIME_CLICKS\020\302\002\022(\n" - + "#BACKFILL_ORDER_LIFETIME_IMPRESSIONS\020\303\002\022\030\n" - + "\023BACKFILL_ORDER_NAME\020\323\002\022\035\n" - + "\030BACKFILL_ORDER_PO_NUMBER\020\304\002\022 \n" - + "\033BACKFILL_ORDER_PROGRAMMATIC\020\301\002\022\037\n" - + "\032BACKFILL_ORDER_SALESPERSON\020\305\002\022)\n" - + "$BACKFILL_ORDER_SECONDARY_SALESPEOPLE\020\311\002\022,\n" - + "\'BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID\020\310\002\022)\n" - + "$BACKFILL_ORDER_SECONDARY_TRAFFICKERS\020\313\002\022,\n" - + "\'BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID\020\312\002\022\036\n" - + "\031BACKFILL_ORDER_START_DATE\020\314\002\022#\n" - + "\036BACKFILL_ORDER_START_DATE_TIME\020\315\002\022\036\n" - + "\031BACKFILL_ORDER_TRAFFICKER\020\306\002\022!\n" - + "\034BACKFILL_ORDER_TRAFFICKER_ID\020\307\002\022!\n" - + "\034BACKFILL_ORDER_UNLIMITED_END\020\276\002\022#\n" - + "\036BACKFILL_PROGRAMMATIC_BUYER_ID\020\320\002\022%\n" - + " BACKFILL_PROGRAMMATIC_BUYER_NAME\020\321\002\022\022\n\r" - + "BRANDING_TYPE\020\377\002\022\027\n" - + "\022BRANDING_TYPE_NAME\020\200\003\022\024\n" - + "\020BROWSER_CATEGORY\020w\022\031\n" - + "\025BROWSER_CATEGORY_NAME\020x\022\017\n\n" - + "BROWSER_ID\020\353\001\022\021\n" - + "\014BROWSER_NAME\020\354\001\022\017\n\n" - + "CARRIER_ID\020\361\002\022\021\n" - + "\014CARRIER_NAME\020\360\002\022\035\n" - + "\030CLASSIFIED_ADVERTISER_ID\020\205\001\022\037\n" - + "\032CLASSIFIED_ADVERTISER_NAME\020\206\001\022\030\n" - + "\023CLASSIFIED_BRAND_ID\020\363\001\022\032\n" - + "\025CLASSIFIED_BRAND_NAME\020\364\001\022\017\n\n" - + "CONTENT_ID\020\366\001\022\021\n" - + "\014CONTENT_NAME\020\367\001\022\016\n\n" - + "COUNTRY_ID\020\013\022\020\n" - + "\014COUNTRY_NAME\020\014\022\032\n" - + "\025CREATIVE_BILLING_TYPE\020\356\002\022\037\n" - + "\032CREATIVE_BILLING_TYPE_NAME\020\357\002\022\037\n" - + "\032CREATIVE_CLICK_THROUGH_URL\020\256\001\022\020\n" - + "\013CREATIVE_ID\020\212\001\022\022\n\r" - + "CREATIVE_NAME\020\213\001\022\030\n" - + "\023CREATIVE_TECHNOLOGY\020\224\001\022\035\n" - + "\030CREATIVE_TECHNOLOGY_NAME\020\225\001\022 \n" - + "\033CREATIVE_THIRD_PARTY_VENDOR\020\351\002\022\022\n\r" - + "CREATIVE_TYPE\020\330\002\022\027\n" - + "\022CREATIVE_TYPE_NAME\020\331\002\022\010\n" - + "\004DATE\020\003\022\017\n" - + "\013DAY_OF_WEEK\020\004\022\022\n" - + "\016DEMAND_CHANNEL\020\t\022\027\n" - + "\023DEMAND_CHANNEL_NAME\020\n" - + "\022\025\n" - + "\021DEMAND_SUBCHANNEL\020\026\022\032\n" - + "\026DEMAND_SUBCHANNEL_NAME\020\027\022\013\n" - + "\006DEVICE\020\342\001\022\023\n" - + "\017DEVICE_CATEGORY\020\017\022\030\n" - + "\024DEVICE_CATEGORY_NAME\020\020\022\020\n" - + "\013DEVICE_NAME\020\341\001\022$\n" - + "\037EXCHANGE_THIRD_PARTY_COMPANY_ID\020\271\001\022&\n" - + "!EXCHANGE_THIRD_PARTY_COMPANY_NAME\020\272\001\022\037\n" - + "\032FIRST_LOOK_PRICING_RULE_ID\020\370\001\022!\n" - + "\034FIRST_LOOK_PRICING_RULE_NAME\020\371\001\022\010\n" - + "\004HOUR\020d\022\025\n" - + "\020INTERACTION_TYPE\020\337\001\022\032\n" - + "\025INTERACTION_TYPE_NAME\020\340\001\022\024\n" - + "\020INVENTORY_FORMAT\020\021\022\031\n" - + "\025INVENTORY_FORMAT_NAME\020\022\022\022\n" - + "\016INVENTORY_TYPE\020\023\022\027\n" - + "\023INVENTORY_TYPE_NAME\020\024\022\022\n\r" - + "IS_ADX_DIRECT\020\376\002\022\027\n" - + "\022IS_FIRST_LOOK_DEAL\020\221\003\022\022\n\r" - + "KEY_VALUES_ID\020\326\001\022\024\n" - + "\017KEY_VALUES_NAME\020\327\001\022\027\n" - + "\022LINE_ITEM_ARCHIVED\020\274\001\022(\n" - + "#LINE_ITEM_COMPANION_DELIVERY_OPTION\020\314\001\022-\n" - + "(LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\020\315\001\022\036\n" - + "\031LINE_ITEM_COMPUTED_STATUS\020\372\001\022#\n" - + "\036LINE_ITEM_COMPUTED_STATUS_NAME\020\373\001\022!\n" - + "\035LINE_ITEM_CONTRACTED_QUANTITY\020\\\022\033\n" - + "\027LINE_ITEM_COST_PER_UNIT\020U\022\030\n" - + "\023LINE_ITEM_COST_TYPE\020\324\001\022\035\n" - + "\030LINE_ITEM_COST_TYPE_NAME\020\325\001\022 \n" - + "\033LINE_ITEM_CREATIVE_END_DATE\020\260\001\022%\n" - + " LINE_ITEM_CREATIVE_ROTATION_TYPE\020\275\001\022*\n" - + "%LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\020\276\001\022\"\n" - + "\035LINE_ITEM_CREATIVE_START_DATE\020\257\001\022\034\n" - + "\027LINE_ITEM_CURRENCY_CODE\020\264\001\022 \n" - + "\034LINE_ITEM_DELIVERY_INDICATOR\020W\022!\n" - + "\034LINE_ITEM_DELIVERY_RATE_TYPE\020\277\001\022&\n" - + "!LINE_ITEM_DELIVERY_RATE_TYPE_NAME\020\300\001\022 \n" - + "\033LINE_ITEM_DISCOUNT_ABSOLUTE\020\303\001\022\"\n" - + "\035LINE_ITEM_DISCOUNT_PERCENTAGE\020\304\001\022\026\n" - + "\022LINE_ITEM_END_DATE\020Q\022\033\n" - + "\027LINE_ITEM_END_DATE_TIME\020S\022\037\n" - + "\032LINE_ITEM_ENVIRONMENT_TYPE\020\311\001\022$\n" - + "\037LINE_ITEM_ENVIRONMENT_TYPE_NAME\020\312\001\022\036\n" - + "\032LINE_ITEM_EXTERNAL_DEAL_ID\020a\022\031\n" - + "\025LINE_ITEM_EXTERNAL_ID\020V\022\034\n" - + "\027LINE_ITEM_FREQUENCY_CAP\020\200\002\022\020\n" - + "\014LINE_ITEM_ID\020\001\022#\n" - + "\036LINE_ITEM_LAST_MODIFIED_BY_APP\020\265\001\022\035\n" - + "\031LINE_ITEM_LIFETIME_CLICKS\020_\022\"\n" - + "\036LINE_ITEM_LIFETIME_IMPRESSIONS\020^\022+\n" - + "\'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\020`\022\026\n" - + "\022LINE_ITEM_MAKEGOOD\020Y\022\022\n" - + "\016LINE_ITEM_NAME\020\002\022$\n" - + " LINE_ITEM_NON_CPD_BOOKED_REVENUE\020b\022\031\n" - + "\025LINE_ITEM_OPTIMIZABLE\020Z\022 \n" - + "\033LINE_ITEM_PRIMARY_GOAL_TYPE\020\322\001\022%\n" - + " LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\020\323\001\022)\n" - + "%LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE\020]\022,\n" - + "\'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE\020\214\003\022%\n" - + " LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\020\320\001\022*\n" - + "%LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\020\321\001\022\026\n" - + "\022LINE_ITEM_PRIORITY\020\030\022!\n" - + "\034LINE_ITEM_RESERVATION_STATUS\020\260\002\022&\n" - + "!LINE_ITEM_RESERVATION_STATUS_NAME\020\261\002\022\030\n" - + "\024LINE_ITEM_START_DATE\020R\022\035\n" - + "\031LINE_ITEM_START_DATE_TIME\020T\022\023\n" - + "\016LINE_ITEM_TYPE\020\301\001\022\030\n" - + "\023LINE_ITEM_TYPE_NAME\020\302\001\022\034\n" - + "\027LINE_ITEM_UNLIMITED_END\020\273\001\022!\n" - + "\035LINE_ITEM_VALUE_COST_PER_UNIT\020X\022 \n" - + "\033LINE_ITEM_WEB_PROPERTY_CODE\020\263\001\022!\n" - + "\034MASTER_COMPANION_CREATIVE_ID\020\214\001\022#\n" - + "\036MASTER_COMPANION_CREATIVE_NAME\020\215\001\022\024\n" - + "\017MOBILE_APP_FREE\020\200\001\022\030\n" - + "\023MOBILE_APP_ICON_URL\020\201\001\022\021\n\r" - + "MOBILE_APP_ID\020{\022\023\n" - + "\017MOBILE_APP_NAME\020\177\022 \n" - + "\033MOBILE_APP_OWNERSHIP_STATUS\020\267\002\022%\n" - + " MOBILE_APP_OWNERSHIP_STATUS_NAME\020\270\002\022\024\n" - + "\020MOBILE_APP_STORE\020}\022\032\n" - + "\025MOBILE_APP_STORE_NAME\020\365\001\022\031\n" - + "\025MOBILE_INVENTORY_TYPE\020c\022\036\n" - + "\032MOBILE_INVENTORY_TYPE_NAME\020\025\022\034\n" - + "\027MOBILE_SDK_VERSION_NAME\020\202\001\022\016\n\n" - + "MONTH_YEAR\020\006\022\030\n" - + "\023NATIVE_AD_FORMAT_ID\020\377\001\022\032\n" - + "\025NATIVE_AD_FORMAT_NAME\020\376\001\022\024\n" - + "\017NATIVE_STYLE_ID\020\375\001\022\026\n" - + "\021NATIVE_STYLE_NAME\020\374\001\022\035\n" - + "\031OPERATING_SYSTEM_CATEGORY\020u\022\"\n" - + "\036OPERATING_SYSTEM_CATEGORY_NAME\020v\022 \n" - + "\033OPERATING_SYSTEM_VERSION_ID\020\356\001\022\"\n" - + "\035OPERATING_SYSTEM_VERSION_NAME\020\355\001\022\021\n" - + "\014ORDER_AGENCY\020\226\001\022\024\n" - + "\017ORDER_AGENCY_ID\020\227\001\022\025\n" - + "\020ORDER_BOOKED_CPC\020\230\001\022\025\n" - + "\020ORDER_BOOKED_CPM\020\231\001\022\032\n" - + "\025ORDER_DELIVERY_STATUS\020\347\001\022\037\n" - + "\032ORDER_DELIVERY_STATUS_NAME\020\357\001\022\023\n" - + "\016ORDER_END_DATE\020\232\001\022\030\n" - + "\023ORDER_END_DATE_TIME\020\233\001\022\026\n" - + "\021ORDER_EXTERNAL_ID\020\234\001\022\014\n" - + "\010ORDER_ID\020\007\022\021\n" - + "\014ORDER_LABELS\020\252\001\022\024\n" - + "\017ORDER_LABEL_IDS\020\253\001\022\032\n" - + "\025ORDER_LIFETIME_CLICKS\020\236\001\022\037\n" - + "\032ORDER_LIFETIME_IMPRESSIONS\020\237\001\022\016\n\n" - + "ORDER_NAME\020\010\022\024\n" - + "\017ORDER_PO_NUMBER\020\240\001\022\027\n" - + "\022ORDER_PROGRAMMATIC\020\235\001\022\026\n" - + "\021ORDER_SALESPERSON\020\241\001\022 \n" - + "\033ORDER_SECONDARY_SALESPEOPLE\020\244\001\022#\n" - + "\036ORDER_SECONDARY_SALESPEOPLE_ID\020\245\001\022 \n" - + "\033ORDER_SECONDARY_TRAFFICKERS\020\246\001\022#\n" - + "\036ORDER_SECONDARY_TRAFFICKERS_ID\020\247\001\022\025\n" - + "\020ORDER_START_DATE\020\250\001\022\032\n" - + "\025ORDER_START_DATE_TIME\020\251\001\022\025\n" - + "\020ORDER_TRAFFICKER\020\242\001\022\030\n" - + "\023ORDER_TRAFFICKER_ID\020\243\001\022\030\n" - + "\023ORDER_UNLIMITED_END\020\313\001\022\020\n" - + "\014PLACEMENT_ID\020q\022\025\n" - + "\020PLACEMENT_ID_ALL\020\220\001\022\022\n" - + "\016PLACEMENT_NAME\020r\022\027\n" - + "\022PLACEMENT_NAME_ALL\020\221\001\022\025\n" - + "\020PLACEMENT_STATUS\020\352\002\022\031\n" - + "\024PLACEMENT_STATUS_ALL\020\353\002\022\032\n" - + "\025PLACEMENT_STATUS_NAME\020\354\002\022\036\n" - + "\031PLACEMENT_STATUS_NAME_ALL\020\355\002\022\032\n" - + "\025PROGRAMMATIC_BUYER_ID\020\360\001\022\034\n" - + "\027PROGRAMMATIC_BUYER_NAME\020\361\001\022\030\n" - + "\024PROGRAMMATIC_CHANNEL\020\r" - + "\022\035\n" - + "\031PROGRAMMATIC_CHANNEL_NAME\020\016\022\033\n" - + "\026RENDERED_CREATIVE_SIZE\020\327\002\022\027\n" - + "\022REQUESTED_AD_SIZES\020\340\002\022\021\n" - + "\014REQUEST_TYPE\020\222\001\022\026\n" - + "\021REQUEST_TYPE_NAME\020\223\001\022$\n" - + "\037SERVER_SIDE_UNWRAPPING_ELIGIBLE\020\325\004\022\t\n" - + "\004SITE\020\203\003\022\021\n" - + "\014TARGETING_ID\020\350\001\022\023\n" - + "\016TARGETING_NAME\020\351\001\022\023\n" - + "\016TARGETING_TYPE\020\201\003\022\030\n" - + "\023TARGETING_TYPE_NAME\020\202\003\022\023\n" - + "\016TRAFFIC_SOURCE\020\204\003\022\030\n" - + "\023TRAFFIC_SOURCE_NAME\020\205\003\022\034\n" - + "\027UNIFIED_PRICING_RULE_ID\020\211\003\022\036\n" - + "\031UNIFIED_PRICING_RULE_NAME\020\212\003\022\020\n" - + "\013VIDEO_PLCMT\020\254\001\022\025\n" - + "\020VIDEO_PLCMT_NAME\020\255\001\022\010\n" - + "\004WEEK\020\005\022\033\n" - + "\026YIELD_GROUP_BUYER_NAME\020\270\001\022\023\n" - + "\016YIELD_GROUP_ID\020\266\001\022\025\n" - + "\020YIELD_GROUP_NAME\020\267\001\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\020\220N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\020\221N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\020\222N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\020\223N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\020\224N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\020\225N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\020\226N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\020\227N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\020\230N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\020\231N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\020\232N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\020\233N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\020\234N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\020\235N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\020\236N\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_0_VALUE\020\370U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_1_VALUE\020\371U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_2_VALUE\020\372U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_3_VALUE\020\373U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_4_VALUE\020\374U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_5_VALUE\020\375U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_6_VALUE\020\376U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_7_VALUE\020\377U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_8_VALUE\020\200V\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_9_VALUE\020\201V\022$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_10_VALUE\020\202V\022$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_11_VALUE\020\203V\022$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_12_VALUE\020\204V\022", - "$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_13_VALUE\020\205V\022$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_14_VALUE\020\206V\022#\n" - + "\036ORDER_CUSTOM_FIELD_0_OPTION_ID\020\340]\022#\n" - + "\036ORDER_CUSTOM_FIELD_1_OPTION_ID\020\341]\022#\n" - + "\036ORDER_CUSTOM_FIELD_2_OPTION_ID\020\342]\022#\n" - + "\036ORDER_CUSTOM_FIELD_3_OPTION_ID\020\343]\022#\n" - + "\036ORDER_CUSTOM_FIELD_4_OPTION_ID\020\344]\022#\n" - + "\036ORDER_CUSTOM_FIELD_5_OPTION_ID\020\345]\022#\n" - + "\036ORDER_CUSTOM_FIELD_6_OPTION_ID\020\346]\022#\n" - + "\036ORDER_CUSTOM_FIELD_7_OPTION_ID\020\347]\022#\n" - + "\036ORDER_CUSTOM_FIELD_8_OPTION_ID\020\350]\022#\n" - + "\036ORDER_CUSTOM_FIELD_9_OPTION_ID\020\351]\022$\n" - + "\037ORDER_CUSTOM_FIELD_10_OPTION_ID\020\352]\022$\n" - + "\037ORDER_CUSTOM_FIELD_11_OPTION_ID\020\353]\022$\n" - + "\037ORDER_CUSTOM_FIELD_12_OPTION_ID\020\354]\022$\n" - + "\037ORDER_CUSTOM_FIELD_13_OPTION_ID\020\355]\022$\n" - + "\037ORDER_CUSTOM_FIELD_14_OPTION_ID\020\356]\022\037\n" - + "\032ORDER_CUSTOM_FIELD_0_VALUE\020\310e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_1_VALUE\020\311e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_2_VALUE\020\312e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_3_VALUE\020\313e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_4_VALUE\020\314e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_5_VALUE\020\315e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_6_VALUE\020\316e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_7_VALUE\020\317e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_8_VALUE\020\320e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_9_VALUE\020\321e\022 \n" - + "\033ORDER_CUSTOM_FIELD_10_VALUE\020\322e\022 \n" - + "\033ORDER_CUSTOM_FIELD_11_VALUE\020\323e\022 \n" - + "\033ORDER_CUSTOM_FIELD_12_VALUE\020\324e\022 \n" - + "\033ORDER_CUSTOM_FIELD_13_VALUE\020\325e\022 \n" - + "\033ORDER_CUSTOM_FIELD_14_VALUE\020\326e\022&\n" - + "!CREATIVE_CUSTOM_FIELD_0_OPTION_ID\020\260m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_1_OPTION_ID\020\261m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_2_OPTION_ID\020\262m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_3_OPTION_ID\020\263m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_4_OPTION_ID\020\264m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_5_OPTION_ID\020\265m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_6_OPTION_ID\020\266m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_7_OPTION_ID\020\267m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_8_OPTION_ID\020\270m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_9_OPTION_ID\020\271m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_10_OPTION_ID\020\272m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_11_OPTION_ID\020\273m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_12_OPTION_ID\020\274m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_13_OPTION_ID\020\275m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_14_OPTION_ID\020\276m\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_0_VALUE\020\230u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_1_VALUE\020\231u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_2_VALUE\020\232u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_3_VALUE\020\233u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_4_VALUE\020\234u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_5_VALUE\020\235u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_6_VALUE\020\236u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_7_VALUE\020\237u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_8_VALUE\020\240u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_9_VALUE\020\241u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_10_VALUE\020\242u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_11_VALUE\020\243u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_12_VALUE\020\244u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_13_VALUE\020\245u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_14_VALUE\020\246u\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\020\200}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\020\201}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\020\202}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\020\203}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\020\204}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\020\205}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\020\206}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\020\207}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\020\210}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\020\211}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\020\212}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\020\213}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\020\214}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\020\215}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\020\216}\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE\020\350\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE\020\351\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE\020\352\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE\020\353\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE\020\354\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE\020\355\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE\020\356\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE\020\357\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE\020\360\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE\020\361\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE\020\362\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE\020\363\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE\020\364\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE\020\365\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE\020\366\204\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID\020\320\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID\020\321\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID\020\322\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID\020\323\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID\020\324\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID\020\325\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID\020\326\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID\020\327\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID\020\330\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID\020\331\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID\020\332\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID\020\333\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID\020\334\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID\020\335\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID\020\336\214\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE\020\270\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE\020\271\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE\020\272\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE\020\273\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE\020\274\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE\020\275\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE\020\276\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE\020\277\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE\020\300\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE\020\301\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE\020\302\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE\020\303\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE\020\304\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE\020\305\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE\020\306\224\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID\020\240\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID\020\241\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID\020\242\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID\020\243\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID\020\244\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID\020\245\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID\020\246\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID\020\247\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID\020\250\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID\020\251\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID\020\252\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID\020\253\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID\020\254\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID\020\255\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID\020\256\234\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE\020\210\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE\020\211\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE\020\212\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE\020\213\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE\020\214\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE\020\215\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE\020\216\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE\020\217\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE\020\220\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE\020\221\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE\020\222\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE\020\223\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE\020\224\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE\020\225\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE\020\226\244\001\022!\n" - + "\033CUSTOM_DIMENSION_0_VALUE_ID\020\240\215\006\022!\n" - + "\033CUSTOM_DIMENSION_1_VALUE_ID\020\241\215\006\022!\n" - + "\033CUSTOM_DIMENSION_2_VALUE_ID\020\242\215\006\022!\n" - + "\033CUSTOM_DIMENSION_3_VALUE_ID\020\243\215\006\022!\n" - + "\033CUSTOM_DIMENSION_4_VALUE_ID\020\244\215\006\022!\n" - + "\033CUSTOM_DIMENSION_5_VALUE_ID\020\245\215\006\022!\n" - + "\033CUSTOM_DIMENSION_6_VALUE_ID\020\246\215\006\022!\n" - + "\033CUSTOM_DIMENSION_7_VALUE_ID\020\247\215\006\022!\n" - + "\033CUSTOM_DIMENSION_8_VALUE_ID\020\250\215\006\022!\n" - + "\033CUSTOM_DIMENSION_9_VALUE_ID\020\251\215\006\022\036\n" - + "\030CUSTOM_DIMENSION_0_VALUE\020\210\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_1_VALUE\020\211\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_2_VALUE\020\212\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_3_VALUE\020\213\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_4_VALUE\020\214\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_5_VALUE\020\215\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_6_VALUE\020\216\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_7_VALUE\020\217\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_8_VALUE\020\220\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_9_VALUE\020\221\225\006\"\2362\n" - + "\006Metric\022\026\n" - + "\022METRIC_UNSPECIFIED\020\000\022%\n" - + "!ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020=\022$\n" - + " ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020:\022&\n" - + "\"ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\0209\022+\n" - + "\'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020<\022$\n" - + " ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\0208\022)\n" - + "%ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020;\022-\n" - + ")ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020I\022,\n" - + "(ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020F\022.\n" - + "*ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020E\0223\n" - + "/ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020H\022,\n" - + "(ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020D\0221\n" - + "-ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020G\022\030\n" - + "\024ADSENSE_AVERAGE_ECPM\020\032\022\022\n" - + "\016ADSENSE_CLICKS\020\027\022\017\n" - + "\013ADSENSE_CTR\020\030\022\027\n" - + "\023ADSENSE_IMPRESSIONS\020\026\022\032\n" - + "\026ADSENSE_PERCENT_CLICKS\020\034\022\037\n" - + "\033ADSENSE_PERCENT_IMPRESSIONS\020\033\022\033\n" - + "\027ADSENSE_PERCENT_REVENUE\020\035\022\'\n" - + "#ADSENSE_PERCENT_REVENUE_WITHOUT_CPD\020\036\022\034\n" - + "\030ADSENSE_RESPONSES_SERVED\020)\022\023\n" - + "\017ADSENSE_REVENUE\020\031\0221\n" - + "-AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020O\0220\n" - + ",AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020L\0222\n" - + ".AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020K\0227\n" - + "3AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020N\0220\n" - + ",AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020J\0225\n" - + "1AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020M\022\034\n" - + "\030AD_EXCHANGE_AVERAGE_ECPM\020\022\022\026\n" - + "\022AD_EXCHANGE_CLICKS\020\017\022\023\n" - + "\017AD_EXCHANGE_CTR\020\020\022\033\n" - + "\027AD_EXCHANGE_IMPRESSIONS\020\016\022\036\n" - + "\032AD_EXCHANGE_PERCENT_CLICKS\020\024\022#\n" - + "\037AD_EXCHANGE_PERCENT_IMPRESSIONS\020\023\022\037\n" - + "\033AD_EXCHANGE_PERCENT_REVENUE\020\025\022+\n" - + "\'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD\020\037\022 \n" - + "\034AD_EXCHANGE_RESPONSES_SERVED\020*\022\027\n" - + "\023AD_EXCHANGE_REVENUE\020\021\022\017\n" - + "\013AD_REQUESTS\020&\022/\n" - + "+AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020C\022.\n" - + "*AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020@\0220\n" - + ",AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020?\0225\n" - + "1AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020B\022.\n" - + "*AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020>\0223\n" - + "/AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020A\022\032\n" - + "\026AD_SERVER_AVERAGE_ECPM\020\"\022&\n" - + "\"AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD\020\n" - + "\022*\n" - + "%AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS\020\206\002\022\024\n" - + "\020AD_SERVER_CLICKS\020\007\022\031\n" - + "\025AD_SERVER_CPD_REVENUE\020 \022\021\n\r" - + "AD_SERVER_CTR\020\010\022\031\n" - + "\025AD_SERVER_IMPRESSIONS\020\006\022\034\n" - + "\030AD_SERVER_PERCENT_CLICKS\020\014\022!\n" - + "\035AD_SERVER_PERCENT_IMPRESSIONS\020\013\022\035\n" - + "\031AD_SERVER_PERCENT_REVENUE\020#\022)\n" - + "%AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD\020\r" - + "\022\036\n" - + "\032AD_SERVER_RESPONSES_SERVED\020(\022\025\n" - + "\021AD_SERVER_REVENUE\020!\022!\n" - + "\035AD_SERVER_REVENUE_WITHOUT_CPD\020\t\022\032\n" - + "\025AD_SERVER_TRACKED_ADS\020\210\002\0225\n" - + "0AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS\020\205\002\022 \n" - + "\033AD_SERVER_UNFILTERED_CLICKS\020\203\002\022%\n" - + " AD_SERVER_UNFILTERED_IMPRESSIONS\020\204\002\022%\n" - + " AD_SERVER_UNFILTERED_TRACKED_ADS\020\207\002\022\020\n" - + "\014AVERAGE_ECPM\020%\022\034\n" - + "\030AVERAGE_ECPM_WITHOUT_CPD\020\005\022\n\n" - + "\006CLICKS\020\002\022\025\n" - + "\021CODE_SERVED_COUNT\020,\022\007\n" - + "\003CTR\020\003\022-\n" - + "(GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS\020\201\001\022$\n" - + "\037GOOGLE_SOLD_AUCTION_IMPRESSIONS\020\200\001\022%\n" - + " GOOGLE_SOLD_COVIEWED_IMPRESSIONS\020\203\001\022\034\n" - + "\027GOOGLE_SOLD_IMPRESSIONS\020\202\001\0220\n" - + ",GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS\020\177\022\'\n" - + "#GOOGLE_SOLD_RESERVATION_IMPRESSIONS\020~\022\017\n" - + "\013IMPRESSIONS\020\001\022&\n" - + "!PARTNER_SALES_FILLED_POD_REQUESTS\020\207\001\022\034\n" - + "\027PARTNER_SALES_FILL_RATE\020\210\001\022%\n" - + " PARTNER_SALES_PARTNER_MATCH_RATE\020\211\001\022\032\n" - + "\025PARTNER_SALES_QUERIES\020\204\001\022\'\n" - + "\"PARTNER_SALES_UNFILLED_IMPRESSIONS\020\205\001\022$\n" - + "\037PARTNER_SALES_UNMATCHED_QUERIES\020\206\001\022\034\n" - + "\030PARTNER_SOLD_CODE_SERVED\020}\022%\n" - + "!PARTNER_SOLD_COVIEWED_IMPRESSIONS\020|\022\034\n" - + "\030PARTNER_SOLD_IMPRESSIONS\020{\022&\n" - + "!PROGRAMMATIC_ELIGIBLE_AD_REQUESTS\020\261\001\022\034\n" - + "\027PROGRAMMATIC_MATCH_RATE\020\262\001\022\"\n" - + "\035PROGRAMMATIC_RESPONSES_SERVED\020\260\001\022\024\n" - + "\020RESPONSES_SERVED\020\'\022\013\n" - + "\007REVENUE\020$\022\027\n" - + "\023REVENUE_WITHOUT_CPD\020\004\022.\n" - + ")SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS\020\262\003\022$\n" - + "\037SERVER_SIDE_UNWRAPPING_CALLOUTS\020\263\003\022+\n" - + "&SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES\020\264\003\022+\n" - + "&SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES\020\265\003\0220\n" - + "+SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES\020\266\003\022$\n" - + "\037SERVER_SIDE_UNWRAPPING_TIMEOUTS\020\267\003\022\030\n" - + "\024UNFILLED_IMPRESSIONS\020-\022\031\n" - + "\025UNMATCHED_AD_REQUESTS\020+\022*\n" - + "&USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN\020y\0222\n" - + ".USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS\020z\022.\n" - + "*VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE\020\\\022\037\n" - + "\033VIDEO_INTERACTION_COLLAPSES\020]\022\035\n" - + "\031VIDEO_INTERACTION_EXPANDS\020_\022\"\n" - + "\036VIDEO_INTERACTION_FULL_SCREENS\020`\022\033\n" - + "\027VIDEO_INTERACTION_MUTES\020a\022\034\n" - + "\030VIDEO_INTERACTION_PAUSES\020b\022\035\n" - + "\031VIDEO_INTERACTION_RESUMES\020c\022\035\n" - + "\031VIDEO_INTERACTION_REWINDS\020d\022\035\n" - + "\031VIDEO_INTERACTION_UNMUTES\020e\022!\n" - + "\035VIDEO_INTERACTION_VIDEO_SKIPS\020f\022$\n" - + "\037VIDEO_REAL_TIME_CREATIVE_SERVES\020\213\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_100_COUNT\020\217\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_101_COUNT\020\220\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_102_COUNT\020\221\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_200_COUNT\020\222\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_201_COUNT\020\223\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_202_COUNT\020\224\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_203_COUNT\020\225\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_300_COUNT\020\226\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_301_COUNT\020\227\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_302_COUNT\020\230\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_303_COUNT\020\231\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_400_COUNT\020\232\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_401_COUNT\020\233\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_402_COUNT\020\234\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_403_COUNT\020\235\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_405_COUNT\020\236\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_406_COUNT\020\237\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_407_COUNT\020\240\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_408_COUNT\020\241\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_409_COUNT\020\242\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_410_COUNT\020\243\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_500_COUNT\020\244\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_501_COUNT\020\245\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_502_COUNT\020\246\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_503_COUNT\020\247\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_600_COUNT\020\250\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_601_COUNT\020\251\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_602_COUNT\020\252\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_603_COUNT\020\253\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_604_COUNT\020\254\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_900_COUNT\020\255\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_901_COUNT\020\256\001\022 \n" - + "\033VIDEO_REAL_TIME_IMPRESSIONS\020\212\001\022$\n" - + "\037VIDEO_REAL_TIME_MATCHED_QUERIES\020\214\001\022&\n" - + "!VIDEO_REAL_TIME_TOTAL_ERROR_COUNT\020\257\001\022\"\n" - + "\035VIDEO_REAL_TIME_TOTAL_QUERIES\020\216\001\022&\n" - + "!VIDEO_REAL_TIME_UNMATCHED_QUERIES\020\215\001\022\037\n" - + "\033VIDEO_VIEWERSHIP_AUTO_PLAYS\020g\022&\n" - + "\"VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE\020h\022&\n" - + "\"VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME\020i\022#\n" - + "\037VIDEO_VIEWERSHIP_CLICK_TO_PLAYS\020j\022\036\n" - + "\032VIDEO_VIEWERSHIP_COMPLETES\020k\022$\n" - + " VIDEO_VIEWERSHIP_COMPLETION_RATE\020l\022\"\n" - + "\036VIDEO_VIEWERSHIP_ENGAGED_VIEWS\020m\022$\n" - + " VIDEO_VIEWERSHIP_FIRST_QUARTILES\020n\022\036\n" - + "\032VIDEO_VIEWERSHIP_MIDPOINTS\020o\022\'\n" - + "#VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN\020p\022\033\n" - + "\027VIDEO_VIEWERSHIP_STARTS\020q\022$\n" - + " VIDEO_VIEWERSHIP_THIRD_QUARTILES\020r\022&\n" - + "\"VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT\020s\022%\n" - + "!VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE\020^\022!\n" - + "\035VIDEO_VIEWERSHIP_VIDEO_LENGTH\020t\022&\n" - + "\"VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE\020u\022\034\n" - + "\030YIELD_GROUP_AUCTIONS_WON\020P\022\024\n" - + "\020YIELD_GROUP_BIDS\020Q\022\037\n" - + "\033YIELD_GROUP_BIDS_IN_AUCTION\020R\022\030\n" - + "\024YIELD_GROUP_CALLOUTS\020S\022\035\n" - + "\031YIELD_GROUP_ESTIMATED_CPM\020X\022!\n" - + "\035YIELD_GROUP_ESTIMATED_REVENUE\020W\022\033\n" - + "\027YIELD_GROUP_IMPRESSIONS\020U\022#\n" - + "\037YIELD_GROUP_MEDIATION_FILL_RATE\020Y\022)\n" - + "%YIELD_GROUP_MEDIATION_MATCHED_QUERIES\020V\022#\n" - + "\037YIELD_GROUP_MEDIATION_PASSBACKS\020v\022*\n" - + "&YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM\020Z\022$\n" - + " YIELD_GROUP_SUCCESSFUL_RESPONSES\020T\"\227\001\n" - + "\017MetricValueType\022\013\n" - + "\007PRIMARY\020\000\022\034\n" - + "\030PRIMARY_PERCENT_OF_TOTAL\020\001\022\016\n\n" - + "COMPARISON\020\002\022\037\n" - + "\033COMPARISON_PERCENT_OF_TOTAL\020\003\022\023\n" - + "\017ABSOLUTE_CHANGE\020\004\022\023\n" - + "\017RELATIVE_CHANGE\020\005\"9\n\n" - + "ReportType\022\033\n" - + "\027REPORT_TYPE_UNSPECIFIED\020\000\022\016\n\n" - + "HISTORICAL\020\001\".\n\n" + + "\020schedule_options\030\t \001(\013" + + "2(.google.ads.admanager.v1.ScheduleOptionsB\003\340A\001\".\n\n" + "Visibility\022\n\n" + "\006HIDDEN\020\000\022\t\n" + "\005DRAFT\020\001\022\t\n" - + "\005SAVED\020\002\"i\n" - + "\016TimeZoneSource\022 \n" - + "\034TIME_ZONE_SOURCE_UNSPECIFIED\020\000\022\r\n" - + "\tPUBLISHER\020\001\022\017\n" - + "\013AD_EXCHANGE\020\002\022\007\n" - + "\003UTC\020\003\022\014\n" - + "\010PROVIDED\020\004:_\352A\\\n" - + "\037admanager.googleapis.com/Report\022(networks/" - + "{network_code}/reports/{report}*\007reports2\006report\"\261\007\n" - + "\020ReportDefinition\022B\n\n" - + "dimensions\030\001" - + " \003(\0162).google.ads.admanager.v1.Report.DimensionB\003\340A\002\022<\n" - + "\007metrics\030\002 \003(\0162&.goo" - + "gle.ads.admanager.v1.Report.MetricB\003\340A\002\022<\n" - + "\007filters\030\003" - + " \003(\0132&.google.ads.admanager.v1.Report.FilterB\003\340A\001\022M\n" - + "\020time_zone_source\030\024" - + " \001(\0162..google.ads.admanager.v1.Report.TimeZoneSourceB\003\340A\001\022\026\n" - + "\ttime_zone\030\004 \001(\tB\003\340A\001\022\032\n\r" - + "currency_code\030\005 \001(\tB\003\340A\001\022B\n\n" - + "date_range\030\006" - + " \001(\0132).google.ads.admanager.v1.Report.DateRangeB\003\340A\002\022R\n" - + "\025comparison_date_range\030\t" - + " \001(\0132).google.ads.admanager.v1.Report.DateRangeB\003\340A\001H\000\210\001\001\022%\n" - + "\030custom_dimension_key_ids\030\007 \003(\003B\003\340A\001\022\'\n" - + "\032line_item_custom_field_ids\030\013 \003(\003B\003\340A\001\022#\n" - + "\026order_custom_field_ids\030\014 \003(\003B\003\340A\001\022&\n" - + "\031creative_custom_field_ids\030\r" - + " \003(\003B\003\340A\001\022D\n" - + "\013report_type\030\010 \001" - + "(\0162*.google.ads.admanager.v1.Report.ReportTypeB\003\340A\002\022Q\n" - + "\022time_period_column\030\n" - + " \001(\01620.google.ads.admanager.v1.Report.TimePeriodColumnB\003\340A\001\0228\n" - + "\005flags\030\016 \003(\0132$.google.ads.admanager.v1.Report.FlagB\003\340A\001\0228\n" - + "\005sorts\030\017 \003(\0132$.google.ads.admanager.v1.Report.SortB\003\340A\001B\030\n" - + "\026_comparison_date_range\"\242\002\n" - + "\017ScheduleOptions\0223\n" - + "\010schedule\030\001 \001(\0132!.google.ads.admanager.v1.Schedule\022V\n" - + "\022delivery_condition\030\002" - + " \001(\0162:.google.ads.admanager.v1.ScheduleOptions.DeliveryCondition\0228\n" - + "\005flags\030\003 \003(\0132$.google.ads.admanager.v1.Report.FlagB\003\340A\001\"H\n" - + "\021DeliveryCondition\022\t\n" - + "\005NEVER\020\000\022\n\n" - + "\006ALWAYS\020\001\022\034\n" - + "\030WHEN_FLAG_CONDITIONS_MET\020\002\"\213\005\n" - + "\010Schedule\022K\n" + + "\005SAVED\020\002:_\352A\\\n" + + "\037admanager.googleap" + + "is.com/Report\022(networks/{network_code}/reports/{report}*\007reports2\006report\"\207\005\n" + + "\017ReportDataTable\032\235\001\n" + + "\003Row\022>\n" + + "\020dimension_values\030\001 \003(\0132$.google.ads.admanager.v1.ReportValue\022V\n" + + "\023metric_value_groups\030\002 \003(\01329.goog" + + "le.ads.admanager.v1.ReportDataTable.MetricValueGroup\032\323\003\n" + + "\020MetricValueGroup\022<\n" + + "\016primary_values\030\001 \003(\0132$.google.ads.admanager.v1.ReportValue\022M\n" + + "\037primary_percent_of_total_values\030\002" + + " \003(\0132$.google.ads.admanager.v1.ReportValue\022?\n" + + "\021comparison_values\030\003 \003(\0132$.google.ads.admanager.v1.ReportValue\022P\n" + + "\"comparison_percent_of_total_values\030\004 " + + "\003(\0132$.google.ads.admanager.v1.ReportValue\022D\n" + + "\026absolute_change_values\030\005" + + " \003(\0132$.google.ads.admanager.v1.ReportValue\022D\n" + + "\026relative_change_values\030\006" + + " \003(\0132$.google.ads.admanager.v1.ReportValue\022\023\n" + + "\013flag_values\030\007 \003(\010\"\372\007\n" + + "\017ScheduleOptions\022C\n" + + "\010schedule\030\001 \001(\013" + + "21.google.ads.admanager.v1.ScheduleOptions.Schedule\022V\n" + + "\022delivery_condition\030\002 \001(\0162" + + ":.google.ads.admanager.v1.ScheduleOptions.DeliveryCondition\022B\n" + + "\005flags\030\003 \003(\0132..goo" + + "gle.ads.admanager.v1.ReportDefinition.FlagB\003\340A\001\032\273\005\n" + + "\010Schedule\022[\n" + "\017weekly_schedule\030\006" - + " \001(\01320.google.ads.admanager.v1.Schedule.WeeklyScheduleH\000\022M\n" - + "\020monthly_schedule\030\007" - + " \001(\01321.google.ads.admanager.v1.Schedule.MonthlyScheduleH\000\022%\n\n" + + " \001(\0132@.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleH\000\022]\n" + + "\020monthly_schedule\030\007 \001(\0132A.google.ads.admanag" + + "er.v1.ScheduleOptions.Schedule.MonthlyScheduleH\000\022%\n\n" + "start_date\030\001 \001(\0132\021.google.type.Date\022#\n" - + "\010end_date\030\002 \001(\0132\021.google.type.Date\022>\n" - + "\tfrequency\030\003 \001(\0162+.google.ads.admanager.v1.Schedule.Frequency\022*\n\n" + + "\010end_date\030\002 \001(\0132\021.google.type.Date\022N\n" + + "\tfrequency\030\003 \001(\0162;.google.ads.adm" + + "anager.v1.ScheduleOptions.Schedule.Frequency\022*\n\n" + "start_time\030\004 \001(\0132\026.google.type.TimeOfDay\032G\n" + "\016WeeklySchedule\0225\n" + "\025weekly_scheduled_days\030\001 \003(\0162\026.google.type.DayOfWeek\0321\n" @@ -1097,9 +143,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020FOUR_TIMES_DAILY\020\004\022\t\n" + "\005DAILY\020\005\022\n\n" + "\006WEEKLY\020\006\022\013\n" - + "\007MONTHLY\020", - "\007B\024\n\022frequency_scheduleB\307\001\n\033com.google.a" - + "ds.admanager.v1B\023ReportMessagesProtoP\001Z@" + + "\007MONTHLY\020\007B\024\n" + + "\022frequency_schedule\"H\n" + + "\021DeliveryCondition\022\t\n" + + "\005NEVER\020\000\022\n\n" + + "\006ALWAYS\020\001\022\034\n" + + "\030WHEN_FLAG_CONDITIONS_MET\020\002B\307\001\n" + + "\033com.google.ads.admanager.v1B\023ReportMessagesProtoP\001Z@" + "google.golang.org/genproto/googleapis/ad" + "s/admanager/v1;admanager\252\002\027Google.Ads.Ad" + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032G" @@ -1109,6 +159,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ReportDefinitionProto.getDescriptor(), + com.google.ads.admanager.v1.ReportValueProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -1132,64 +184,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Locale", "ScheduleOptions", }); - internal_static_google_ads_admanager_v1_Report_Value_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Value_descriptor, - new java.lang.String[] { - "IntValue", - "DoubleValue", - "StringValue", - "BoolValue", - "IntListValue", - "StringListValue", - "BytesValue", - "Value", - }); - internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor = - internal_static_google_ads_admanager_v1_Report_Value_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor = - internal_static_google_ads_admanager_v1_Report_Value_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_ads_admanager_v1_Report_Sort_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Sort_descriptor, - new java.lang.String[] { - "Field", "Descending", "Slice", "TimePeriodIndex", "MetricValueType", - }); - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(2); - internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable = + internal_static_google_ads_admanager_v1_ReportDataTable_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ReportDataTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor, + internal_static_google_ads_admanager_v1_ReportDataTable_descriptor, new java.lang.String[] {}); - internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor = - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable = + internal_static_google_ads_admanager_v1_ReportDataTable_Row_descriptor = + internal_static_google_ads_admanager_v1_ReportDataTable_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_ReportDataTable_Row_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor, + internal_static_google_ads_admanager_v1_ReportDataTable_Row_descriptor, new java.lang.String[] { "DimensionValues", "MetricValueGroups", }); - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor = - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable = + internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_descriptor = + internal_static_google_ads_admanager_v1_ReportDataTable_descriptor.getNestedTypes().get(1); + internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor, + internal_static_google_ads_admanager_v1_ReportDataTable_MetricValueGroup_descriptor, new java.lang.String[] { "PrimaryValues", "PrimaryPercentOfTotalValues", @@ -1199,93 +212,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RelativeChangeValues", "FlagValues", }); - internal_static_google_ads_admanager_v1_Report_Field_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(3); - internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Field_descriptor, - new java.lang.String[] { - "Dimension", "Metric", "Field", - }); - internal_static_google_ads_admanager_v1_Report_Slice_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(4); - internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Slice_descriptor, - new java.lang.String[] { - "Dimension", "Value", - }); - internal_static_google_ads_admanager_v1_Report_Filter_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(5); - internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Filter_descriptor, - new java.lang.String[] { - "FieldFilter", "NotFilter", "AndFilter", "OrFilter", "Type", - }); - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor = - internal_static_google_ads_admanager_v1_Report_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor, - new java.lang.String[] { - "Field", "Operation", "Values", "Slice", "TimePeriodIndex", "MetricValueType", - }); - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor = - internal_static_google_ads_admanager_v1_Report_Filter_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor, - new java.lang.String[] { - "Filters", - }); - internal_static_google_ads_admanager_v1_Report_Flag_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(6); - internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Flag_descriptor, - new java.lang.String[] { - "Filters", "Name", - }); - internal_static_google_ads_admanager_v1_Report_DateRange_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(7); - internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DateRange_descriptor, - new java.lang.String[] { - "Fixed", "Relative", "DateRangeType", - }); - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor = - internal_static_google_ads_admanager_v1_Report_DateRange_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", - }); - internal_static_google_ads_admanager_v1_ReportDefinition_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_ReportDefinition_descriptor, - new java.lang.String[] { - "Dimensions", - "Metrics", - "Filters", - "TimeZoneSource", - "TimeZone", - "CurrencyCode", - "DateRange", - "ComparisonDateRange", - "CustomDimensionKeyIds", - "LineItemCustomFieldIds", - "OrderCustomFieldIds", - "CreativeCustomFieldIds", - "ReportType", - "TimePeriodColumn", - "Flags", - "Sorts", - }); internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_admanager_v1_ScheduleOptions_fieldAccessorTable = @@ -1294,11 +220,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Schedule", "DeliveryCondition", "Flags", }); - internal_static_google_ads_admanager_v1_Schedule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable = + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_descriptor = + internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Schedule_descriptor, + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_descriptor, new java.lang.String[] { "WeeklySchedule", "MonthlySchedule", @@ -1308,19 +234,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "FrequencySchedule", }); - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor = - internal_static_google_ads_admanager_v1_Schedule_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable = + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_descriptor = + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_descriptor + .getNestedTypes() + .get(0); + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor, + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_descriptor, new java.lang.String[] { "WeeklyScheduledDays", }); - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor = - internal_static_google_ads_admanager_v1_Schedule_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_fieldAccessorTable = + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_descriptor = + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_descriptor + .getNestedTypes() + .get(1); + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor, + internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_descriptor, new java.lang.String[] { "MonthlyScheduledDays", }); @@ -1330,6 +260,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.ads.admanager.v1.ReportDefinitionProto.getDescriptor(); + com.google.ads.admanager.v1.ReportValueProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportOrBuilder.java index 63e65fa8096f..a09366ab354b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportOrBuilder.java @@ -251,7 +251,7 @@ public interface ReportOrBuilder * *
        * Output only. The locale of this report. Locale is set from the user's
    -   * locale at the time of the request. Locale can not be modified.
    +   * locale at the time of the request. Locale can't be modified.
        * 
    * * string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -265,7 +265,7 @@ public interface ReportOrBuilder * *
        * Output only. The locale of this report. Locale is set from the user's
    -   * locale at the time of the request. Locale can not be modified.
    +   * locale at the time of the request. Locale can't be modified.
        * 
    * * string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java index fce5564fc9c5..d6cc50c59edf 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java @@ -79,11 +79,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + ",google/ads/admanager/v1/report_service" - + ".proto\022\027google.ads.admanager.v1\032-google/" - + "ads/admanager/v1/report_messages.proto\032\034" - + "google/api/annotations.proto\032\027google/api" - + "/client.proto\032\037google/api/field_behavior" - + ".proto\032\031google/api/resource.proto\032#google/longrunning/operations.proto\032" + + ".proto\022\027google.ads.admanager.v1\032/google/" + + "ads/admanager/v1/report_definition.proto\032-google/ads/admanager/v1/report_message" + + "s.proto\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032#google/longrunning/operations.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"I\n" + "\020RunReportRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" @@ -112,56 +113,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023CreateReportRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + " admanager.googleapis.com/Network\0224\n" - + "\006report\030\002 \001(" - + "\0132\037.google.ads.admanager.v1.ReportB\003\340A\002\"\201\001\n" + + "\006report\030\002" + + " \001(\0132\037.google.ads.admanager.v1.ReportB\003\340A\002\"\201\001\n" + "\023UpdateReportRequest\0224\n" + "\006report\030\001 \001(\0132\037.google.ads.admanager.v1.ReportB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" + "\034FetchReportResultRowsRequest\022\014\n" + "\004name\030\001 \001(\t\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\"\345\002\n" - + "\035FetchReportResultRowsResponse\022;\n" - + "\004rows\030\001 \003(\0132-.google.ads.admanager.v1.Report.DataTable.Row\022,\n" - + "\010run_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022M\n" - + "\013date_ranges\030\003 \003(\01328.google.ad" - + "s.admanager.v1.Report.DateRange.FixedDateRange\022X\n" - + "\026comparison_date_ranges\030\004 \003(\01328" - + ".google.ads.admanager.v1.Report.DateRange.FixedDateRange\022\027\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\370\002\n" + + "\035FetchReportResultRowsResponse\022:\n" + + "\004rows\030\001 \003(\0132,.google.ads.admanager.v1.ReportDataTable.Row\022,\n" + + "\010run_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022W\n" + + "\013date_ranges\030\003 \003(\0132B.g" + + "oogle.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRange\022b\n" + + "\026comparison_date_ranges\030\004 \003(\0132B.google.ads.admanager." + + "v1.ReportDefinition.DateRange.FixedDateRange\022\027\n" + "\017total_row_count\030\005 \001(\005\022\027\n" + "\017next_page_token\030\006 \001(\t2\322\010\n\r" + "ReportService\022\207\001\n" - + "\tGetReport\022).google.ads.admanager.v1.GetReportRequest\032\037.google.ads.adman" - + "ager.v1.Report\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=networks/*/reports/*}\022\232\001\n" - + "\013ListReports\022+.google.ads.admanager.v1.ListReportsRequ" - + "est\032,.google.ads.admanager.v1.ListReport" - + "sResponse\"0\332A\006parent\202\323\344\223\002!\022\037/v1/{parent=networks/*}/reports\022\236\001\n" - + "\014CreateReport\022,.g" - + "oogle.ads.admanager.v1.CreateReportRequest\032\037.google.ads.admanager.v1.Report\"?\332A\r" - + "parent,report\202\323\344\223\002)\"\037/v1/{parent=networks/*}/reports:\006report\022\252\001\n" - + "\014UpdateReport\022,.google.ads.admanager.v1.UpdateReportRequ" - + "est\032\037.google.ads.admanager.v1.Report\"K\332A" - + "\022report,update_mask\202\323\344\223\00202&/v1/{report.name=networks/*/reports/*}:\006report\022\265\001\n" - + "\tRunReport\022).google.ads.admanager.v1.RunRep" - + "ortRequest\032\035.google.longrunning.Operation\"^\312A&\n" - + "\021RunReportResponse\022\021RunReportMeta" - + "data\332A\004name\202\323\344\223\002(\"#/v1/{name=networks/*/reports/*}:run:\001*\022\312\001\n" - + "\025FetchReportResultRows\0225.google.ads.admanager.v1.FetchRepor" - + "tResultRowsRequest\0326.google.ads.admanage" - + "r.v1.FetchReportResultRowsResponse\"B\332A\004n" - + "ame\202\323\344\223\0025\0223/v1/{name=networks/*/reports/" - + "*/results/*}:fetchRows\032G\312A\030admanager.goo" - + "gleapis.com\322A)https://www.googleapis.com/auth/admanagerB\306\001\n" - + "\033com.google.ads.admanager.v1B\022ReportServiceProtoP\001Z@google.go" - + "lang.org/genproto/googleapis/ads/admanag" - + "er/v1;admanager\252\002\027Google.Ads.AdManager.V" - + "1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ad" - + "s::AdManager::V1b\006proto3" + + "\tGetReport\022).google.ads.admanager.v1.GetRepo" + + "rtRequest\032\037.google.ads.admanager.v1.Repo" + + "rt\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=networks/*/reports/*}\022\232\001\n" + + "\013ListReports\022+.google.ads.admanager.v1.ListReportsRequest\032,.google" + + ".ads.admanager.v1.ListReportsResponse\"0\332" + + "A\006parent\202\323\344\223\002!\022\037/v1/{parent=networks/*}/reports\022\236\001\n" + + "\014CreateReport\022,.google.ads.ad" + + "manager.v1.CreateReportRequest\032\037.google.ads.admanager.v1.Report\"?\332A\r" + + "parent,repor" + + "t\202\323\344\223\002)\"\037/v1/{parent=networks/*}/reports:\006report\022\252\001\n" + + "\014UpdateReport\022,.google.ads.admanager.v1.UpdateReportRequest\032\037.google" + + ".ads.admanager.v1.Report\"K\332A\022report,upda" + + "te_mask\202\323\344\223\00202&/v1/{report.name=networks/*/reports/*}:\006report\022\265\001\n" + + "\tRunReport\022).go" + + "ogle.ads.admanager.v1.RunReportRequest\032\035.google.longrunning.Operation\"^\312A&\n" + + "\021RunReportResponse\022\021RunReportMetadata\332A\004name\202" + + "\323\344\223\002(\"#/v1/{name=networks/*/reports/*}:run:\001*\022\312\001\n" + + "\025FetchReportResultRows\0225.google.ads.admanager.v1.FetchReportResultRowsR" + + "equest\0326.google.ads.admanager.v1.FetchRe" + + "portResultRowsResponse\"B\332A\004name\202\323\344\223\0025\0223/" + + "v1/{name=networks/*/reports/*/results/*}" + + ":fetchRows\032G\312A\030admanager.googleapis.com\322" + + "A)https://www.googleapis.com/auth/admanagerB\306\001\n" + + "\033com.google.ads.admanager.v1B\022ReportServiceProtoP\001Z@google.golang.org/gen" + + "proto/googleapis/ads/admanager/v1;admana" + + "ger\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\A" + + "ds\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ReportDefinitionProto.getDescriptor(), com.google.ads.admanager.v1.ReportMessagesProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), @@ -267,6 +270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.ads.admanager.v1.ReportDefinitionProto.getDescriptor(); com.google.ads.admanager.v1.ReportMessagesProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportValue.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportValue.java new file mode 100644 index 000000000000..6ae8c0876a9a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportValue.java @@ -0,0 +1,4494 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/report_value.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents a single value in a report.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportValue} + */ +public final class ReportValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportValue) + ReportValueOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReportValue.newBuilder() to construct. + private ReportValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReportValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportValue.class, + com.google.ads.admanager.v1.ReportValue.Builder.class); + } + + public interface IntListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportValue.IntList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated int64 values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated int64 values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated int64 values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + long getValues(int index); + } + + /** + * + * + *
    +   * A list of integer values.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportValue.IntList} + */ + public static final class IntList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportValue.IntList) + IntListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IntList.newBuilder() to construct. + private IntList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IntList() { + values_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_IntList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_IntList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportValue.IntList.class, + com.google.ads.admanager.v1.ReportValue.IntList.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList values_ = emptyLongList(); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated int64 values = 1; + * + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated int64 values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated int64 values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public long getValues(int index) { + return values_.getLong(index); + } + + private int valuesMemoizedSerializedSize = -1; + + 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 (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeInt64NoTag(values_.getLong(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 < values_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(values_.getLong(i)); + } + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.admanager.v1.ReportValue.IntList)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportValue.IntList other = + (com.google.ads.admanager.v1.ReportValue.IntList) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportValue.IntList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList 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.admanager.v1.ReportValue.IntList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList 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.admanager.v1.ReportValue.IntList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportValue.IntList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A list of integer values.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportValue.IntList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportValue.IntList) + com.google.ads.admanager.v1.ReportValue.IntListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_IntList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_IntList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportValue.IntList.class, + com.google.ads.admanager.v1.ReportValue.IntList.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportValue.IntList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyLongList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_IntList_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.IntList getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportValue.IntList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.IntList build() { + com.google.ads.admanager.v1.ReportValue.IntList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.IntList buildPartial() { + com.google.ads.admanager.v1.ReportValue.IntList result = + new com.google.ads.admanager.v1.ReportValue.IntList(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportValue.IntList result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportValue.IntList) { + return mergeFrom((com.google.ads.admanager.v1.ReportValue.IntList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportValue.IntList other) { + if (other == com.google.ads.admanager.v1.ReportValue.IntList.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 8: + { + long v = input.readInt64(); + ensureValuesIsMutable(); + values_.addLong(v); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValuesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + values_.addLong(input.readInt64()); + } + input.popLimit(limit); + 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.Internal.LongList values_ = emptyLongList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated int64 values = 1; + * + * @return A list containing the values. + */ + public java.util.List getValuesList() { + values_.makeImmutable(); + return values_; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated int64 values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated int64 values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public long getValues(int index) { + return values_.getLong(index); + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated int64 values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, long value) { + + ensureValuesIsMutable(); + values_.setLong(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated int64 values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(long value) { + + ensureValuesIsMutable(); + values_.addLong(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated int64 values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated int64 values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportValue.IntList) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportValue.IntList) + private static final com.google.ads.admanager.v1.ReportValue.IntList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportValue.IntList(); + } + + public static com.google.ads.admanager.v1.ReportValue.IntList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntList 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.admanager.v1.ReportValue.IntList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface StringListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportValue.StringList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + } + + /** + * + * + *
    +   * A list of string values.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportValue.StringList} + */ + public static final class StringList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportValue.StringList) + StringListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StringList.newBuilder() to construct. + private StringList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringList() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_StringList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_StringList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportValue.StringList.class, + com.google.ads.admanager.v1.ReportValue.StringList.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.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 < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.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 < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.ReportValue.StringList)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportValue.StringList other = + (com.google.ads.admanager.v1.ReportValue.StringList) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportValue.StringList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList 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.admanager.v1.ReportValue.StringList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList 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.admanager.v1.ReportValue.StringList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportValue.StringList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A list of string values.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportValue.StringList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportValue.StringList) + com.google.ads.admanager.v1.ReportValue.StringListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_StringList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_StringList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportValue.StringList.class, + com.google.ads.admanager.v1.ReportValue.StringList.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportValue.StringList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_StringList_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.StringList getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportValue.StringList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.StringList build() { + com.google.ads.admanager.v1.ReportValue.StringList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.StringList buildPartial() { + com.google.ads.admanager.v1.ReportValue.StringList result = + new com.google.ads.admanager.v1.ReportValue.StringList(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportValue.StringList result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportValue.StringList) { + return mergeFrom((com.google.ads.admanager.v1.ReportValue.StringList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportValue.StringList other) { + if (other == com.google.ads.admanager.v1.ReportValue.StringList.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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(); + ensureValuesIsMutable(); + values_.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 values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportValue.StringList) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportValue.StringList) + private static final com.google.ads.admanager.v1.ReportValue.StringList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportValue.StringList(); + } + + public static com.google.ads.admanager.v1.ReportValue.StringList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringList 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.admanager.v1.ReportValue.StringList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DoubleListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportValue.DoubleList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated double values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated double values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated double values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + double getValues(int index); + } + + /** + * + * + *
    +   * A list of double values.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportValue.DoubleList} + */ + public static final class DoubleList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ReportValue.DoubleList) + DoubleListOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DoubleList.newBuilder() to construct. + private DoubleList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DoubleList() { + values_ = emptyDoubleList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DoubleList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_DoubleList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_DoubleList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportValue.DoubleList.class, + com.google.ads.admanager.v1.ReportValue.DoubleList.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.DoubleList values_ = emptyDoubleList(); + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated double values = 1; + * + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated double values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +     * The values
    +     * 
    + * + * repeated double values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + + private int valuesMemoizedSerializedSize = -1; + + 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 (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeDoubleNoTag(values_.getDouble(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 8 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.admanager.v1.ReportValue.DoubleList)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportValue.DoubleList other = + (com.google.ads.admanager.v1.ReportValue.DoubleList) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList 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.admanager.v1.ReportValue.DoubleList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList 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.admanager.v1.ReportValue.DoubleList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportValue.DoubleList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A list of double values.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportValue.DoubleList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportValue.DoubleList) + com.google.ads.admanager.v1.ReportValue.DoubleListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_DoubleList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_DoubleList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportValue.DoubleList.class, + com.google.ads.admanager.v1.ReportValue.DoubleList.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportValue.DoubleList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyDoubleList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_DoubleList_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.DoubleList getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportValue.DoubleList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.DoubleList build() { + com.google.ads.admanager.v1.ReportValue.DoubleList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.DoubleList buildPartial() { + com.google.ads.admanager.v1.ReportValue.DoubleList result = + new com.google.ads.admanager.v1.ReportValue.DoubleList(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportValue.DoubleList result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportValue.DoubleList) { + return mergeFrom((com.google.ads.admanager.v1.ReportValue.DoubleList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportValue.DoubleList other) { + if (other == com.google.ads.admanager.v1.ReportValue.DoubleList.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 9: + { + double v = input.readDouble(); + ensureValuesIsMutable(); + values_.addDouble(v); + break; + } // case 9 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureValuesIsMutable(alloc / 8); + while (input.getBytesUntilLimit() > 0) { + values_.addDouble(input.readDouble()); + } + input.popLimit(limit); + 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.Internal.DoubleList values_ = emptyDoubleList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + + private void ensureValuesIsMutable(int capacity) { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_, capacity); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated double values = 1; + * + * @return A list containing the values. + */ + public java.util.List getValuesList() { + values_.makeImmutable(); + return values_; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated double values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated double values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated double values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, double value) { + + ensureValuesIsMutable(); + values_.setDouble(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated double values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(double value) { + + ensureValuesIsMutable(); + values_.addDouble(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated double values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The values
    +       * 
    + * + * repeated double values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportValue.DoubleList) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportValue.DoubleList) + private static final com.google.ads.admanager.v1.ReportValue.DoubleList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportValue.DoubleList(); + } + + public static com.google.ads.admanager.v1.ReportValue.DoubleList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DoubleList 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.admanager.v1.ReportValue.DoubleList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int valueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT_VALUE(1), + DOUBLE_VALUE(2), + STRING_VALUE(3), + BOOL_VALUE(4), + INT_LIST_VALUE(6), + STRING_LIST_VALUE(7), + DOUBLE_LIST_VALUE(9), + BYTES_VALUE(8), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(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 ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return INT_VALUE; + case 2: + return DOUBLE_VALUE; + case 3: + return STRING_VALUE; + case 4: + return BOOL_VALUE; + case 6: + return INT_LIST_VALUE; + case 7: + return STRING_LIST_VALUE; + case 9: + return DOUBLE_LIST_VALUE; + case 8: + return BYTES_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int INT_VALUE_FIELD_NUMBER = 1; + + /** + * + * + *
    +   * For integer values.
    +   * 
    + * + * int64 int_value = 1; + * + * @return Whether the intValue field is set. + */ + @java.lang.Override + public boolean hasIntValue() { + return valueCase_ == 1; + } + + /** + * + * + *
    +   * For integer values.
    +   * 
    + * + * int64 int_value = 1; + * + * @return The intValue. + */ + @java.lang.Override + public long getIntValue() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; + + /** + * + * + *
    +   * For double values.
    +   * 
    + * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return valueCase_ == 2; + } + + /** + * + * + *
    +   * For double values.
    +   * 
    + * + * double double_value = 2; + * + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 3; + + /** + * + * + *
    +   * For string values.
    +   * 
    + * + * string string_value = 3; + * + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return valueCase_ == 3; + } + + /** + * + * + *
    +   * For string values.
    +   * 
    + * + * string string_value = 3; + * + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + 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 (valueCase_ == 3) { + value_ = s; + } + return s; + } + } + + /** + * + * + *
    +   * For string values.
    +   * 
    + * + * string string_value = 3; + * + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOL_VALUE_FIELD_NUMBER = 4; + + /** + * + * + *
    +   * For boolean values.
    +   * 
    + * + * bool bool_value = 4; + * + * @return Whether the boolValue field is set. + */ + @java.lang.Override + public boolean hasBoolValue() { + return valueCase_ == 4; + } + + /** + * + * + *
    +   * For boolean values.
    +   * 
    + * + * bool bool_value = 4; + * + * @return The boolValue. + */ + @java.lang.Override + public boolean getBoolValue() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + + public static final int INT_LIST_VALUE_FIELD_NUMBER = 6; + + /** + * + * + *
    +   * For lists of integer values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + * + * @return Whether the intListValue field is set. + */ + @java.lang.Override + public boolean hasIntListValue() { + return valueCase_ == 6; + } + + /** + * + * + *
    +   * For lists of integer values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + * + * @return The intListValue. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.IntList getIntListValue() { + if (valueCase_ == 6) { + return (com.google.ads.admanager.v1.ReportValue.IntList) value_; + } + return com.google.ads.admanager.v1.ReportValue.IntList.getDefaultInstance(); + } + + /** + * + * + *
    +   * For lists of integer values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.IntListOrBuilder getIntListValueOrBuilder() { + if (valueCase_ == 6) { + return (com.google.ads.admanager.v1.ReportValue.IntList) value_; + } + return com.google.ads.admanager.v1.ReportValue.IntList.getDefaultInstance(); + } + + public static final int STRING_LIST_VALUE_FIELD_NUMBER = 7; + + /** + * + * + *
    +   * For lists of string values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + * + * @return Whether the stringListValue field is set. + */ + @java.lang.Override + public boolean hasStringListValue() { + return valueCase_ == 7; + } + + /** + * + * + *
    +   * For lists of string values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + * + * @return The stringListValue. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.StringList getStringListValue() { + if (valueCase_ == 7) { + return (com.google.ads.admanager.v1.ReportValue.StringList) value_; + } + return com.google.ads.admanager.v1.ReportValue.StringList.getDefaultInstance(); + } + + /** + * + * + *
    +   * For lists of string values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.StringListOrBuilder getStringListValueOrBuilder() { + if (valueCase_ == 7) { + return (com.google.ads.admanager.v1.ReportValue.StringList) value_; + } + return com.google.ads.admanager.v1.ReportValue.StringList.getDefaultInstance(); + } + + public static final int DOUBLE_LIST_VALUE_FIELD_NUMBER = 9; + + /** + * + * + *
    +   * For lists of double values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + * + * @return Whether the doubleListValue field is set. + */ + @java.lang.Override + public boolean hasDoubleListValue() { + return valueCase_ == 9; + } + + /** + * + * + *
    +   * For lists of double values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + * + * @return The doubleListValue. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.DoubleList getDoubleListValue() { + if (valueCase_ == 9) { + return (com.google.ads.admanager.v1.ReportValue.DoubleList) value_; + } + return com.google.ads.admanager.v1.ReportValue.DoubleList.getDefaultInstance(); + } + + /** + * + * + *
    +   * For lists of double values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.DoubleListOrBuilder getDoubleListValueOrBuilder() { + if (valueCase_ == 9) { + return (com.google.ads.admanager.v1.ReportValue.DoubleList) value_; + } + return com.google.ads.admanager.v1.ReportValue.DoubleList.getDefaultInstance(); + } + + public static final int BYTES_VALUE_FIELD_NUMBER = 8; + + /** + * + * + *
    +   * For bytes values.
    +   * 
    + * + * bytes bytes_value = 8; + * + * @return Whether the bytesValue field is set. + */ + @java.lang.Override + public boolean hasBytesValue() { + return valueCase_ == 8; + } + + /** + * + * + *
    +   * For bytes values.
    +   * 
    + * + * bytes bytes_value = 8; + * + * @return The bytesValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBytesValue() { + if (valueCase_ == 8) { + return (com.google.protobuf.ByteString) value_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + 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 (valueCase_ == 1) { + output.writeInt64(1, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + if (valueCase_ == 4) { + output.writeBool(4, (boolean) ((java.lang.Boolean) value_)); + } + if (valueCase_ == 6) { + output.writeMessage(6, (com.google.ads.admanager.v1.ReportValue.IntList) value_); + } + if (valueCase_ == 7) { + output.writeMessage(7, (com.google.ads.admanager.v1.ReportValue.StringList) value_); + } + if (valueCase_ == 8) { + output.writeBytes(8, (com.google.protobuf.ByteString) value_); + } + if (valueCase_ == 9) { + output.writeMessage(9, (com.google.ads.admanager.v1.ReportValue.DoubleList) value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 1, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + if (valueCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, (boolean) ((java.lang.Boolean) value_)); + } + if (valueCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.ads.admanager.v1.ReportValue.IntList) value_); + } + if (valueCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.ads.admanager.v1.ReportValue.StringList) value_); + } + if (valueCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 8, (com.google.protobuf.ByteString) value_); + } + if (valueCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.ads.admanager.v1.ReportValue.DoubleList) value_); + } + 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.admanager.v1.ReportValue)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ReportValue other = (com.google.ads.admanager.v1.ReportValue) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (getIntValue() != other.getIntValue()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 3: + if (!getStringValue().equals(other.getStringValue())) return false; + break; + case 4: + if (getBoolValue() != other.getBoolValue()) return false; + break; + case 6: + if (!getIntListValue().equals(other.getIntListValue())) return false; + break; + case 7: + if (!getStringListValue().equals(other.getStringListValue())) return false; + break; + case 9: + if (!getDoubleListValue().equals(other.getDoubleListValue())) return false; + break; + case 8: + if (!getBytesValue().equals(other.getBytesValue())) 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(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntValue()); + break; + case 2: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 3: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 4: + hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); + break; + case 6: + hash = (37 * hash) + INT_LIST_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getIntListValue().hashCode(); + break; + case 7: + hash = (37 * hash) + STRING_LIST_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringListValue().hashCode(); + break; + case 9: + hash = (37 * hash) + DOUBLE_LIST_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDoubleListValue().hashCode(); + break; + case 8: + hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getBytesValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ReportValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue 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.admanager.v1.ReportValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue 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.admanager.v1.ReportValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ReportValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ReportValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ReportValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.ReportValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a single value in a report.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ReportValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportValue) + com.google.ads.admanager.v1.ReportValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ReportValue.class, + com.google.ads.admanager.v1.ReportValue.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ReportValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (intListValueBuilder_ != null) { + intListValueBuilder_.clear(); + } + if (stringListValueBuilder_ != null) { + stringListValueBuilder_.clear(); + } + if (doubleListValueBuilder_ != null) { + doubleListValueBuilder_.clear(); + } + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportValueProto + .internal_static_google_ads_admanager_v1_ReportValue_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ReportValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue build() { + com.google.ads.admanager.v1.ReportValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue buildPartial() { + com.google.ads.admanager.v1.ReportValue result = + new com.google.ads.admanager.v1.ReportValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ReportValue result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.ads.admanager.v1.ReportValue result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + if (valueCase_ == 6 && intListValueBuilder_ != null) { + result.value_ = intListValueBuilder_.build(); + } + if (valueCase_ == 7 && stringListValueBuilder_ != null) { + result.value_ = stringListValueBuilder_.build(); + } + if (valueCase_ == 9 && doubleListValueBuilder_ != null) { + result.value_ = doubleListValueBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ReportValue) { + return mergeFrom((com.google.ads.admanager.v1.ReportValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ReportValue other) { + if (other == com.google.ads.admanager.v1.ReportValue.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case INT_VALUE: + { + setIntValue(other.getIntValue()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: + { + valueCase_ = 3; + value_ = other.value_; + onChanged(); + break; + } + case BOOL_VALUE: + { + setBoolValue(other.getBoolValue()); + break; + } + case INT_LIST_VALUE: + { + mergeIntListValue(other.getIntListValue()); + break; + } + case STRING_LIST_VALUE: + { + mergeStringListValue(other.getStringListValue()); + break; + } + case DOUBLE_LIST_VALUE: + { + mergeDoubleListValue(other.getDoubleListValue()); + break; + } + case BYTES_VALUE: + { + setBytesValue(other.getBytesValue()); + break; + } + case VALUE_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 8: + { + value_ = input.readInt64(); + valueCase_ = 1; + break; + } // case 8 + case 17: + { + value_ = input.readDouble(); + valueCase_ = 2; + break; + } // case 17 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 3; + value_ = s; + break; + } // case 26 + case 32: + { + value_ = input.readBool(); + valueCase_ = 4; + break; + } // case 32 + case 50: + { + input.readMessage(getIntListValueFieldBuilder().getBuilder(), extensionRegistry); + valueCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getStringListValueFieldBuilder().getBuilder(), extensionRegistry); + valueCase_ = 7; + break; + } // case 58 + case 66: + { + value_ = input.readBytes(); + valueCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getDoubleListValueFieldBuilder().getBuilder(), extensionRegistry); + valueCase_ = 9; + break; + } // case 74 + 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 valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +     * For integer values.
    +     * 
    + * + * int64 int_value = 1; + * + * @return Whether the intValue field is set. + */ + public boolean hasIntValue() { + return valueCase_ == 1; + } + + /** + * + * + *
    +     * For integer values.
    +     * 
    + * + * int64 int_value = 1; + * + * @return The intValue. + */ + public long getIntValue() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + + /** + * + * + *
    +     * For integer values.
    +     * 
    + * + * int64 int_value = 1; + * + * @param value The intValue to set. + * @return This builder for chaining. + */ + public Builder setIntValue(long value) { + + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * For integer values.
    +     * 
    + * + * int64 int_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearIntValue() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * For double values.
    +     * 
    + * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return valueCase_ == 2; + } + + /** + * + * + *
    +     * For double values.
    +     * 
    + * + * double double_value = 2; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + + /** + * + * + *
    +     * For double values.
    +     * 
    + * + * double double_value = 2; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * For double values.
    +     * 
    + * + * double double_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * For string values.
    +     * 
    + * + * string string_value = 3; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return valueCase_ == 3; + } + + /** + * + * + *
    +     * For string values.
    +     * 
    + * + * string string_value = 3; + * + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * For string values.
    +     * 
    + * + * string string_value = 3; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * For string values.
    +     * 
    + * + * string string_value = 3; + * + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * For string values.
    +     * 
    + * + * string string_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * For string values.
    +     * 
    + * + * string string_value = 3; + * + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * For boolean values.
    +     * 
    + * + * bool bool_value = 4; + * + * @return Whether the boolValue field is set. + */ + public boolean hasBoolValue() { + return valueCase_ == 4; + } + + /** + * + * + *
    +     * For boolean values.
    +     * 
    + * + * bool bool_value = 4; + * + * @return The boolValue. + */ + public boolean getBoolValue() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + + /** + * + * + *
    +     * For boolean values.
    +     * 
    + * + * bool bool_value = 4; + * + * @param value The boolValue to set. + * @return This builder for chaining. + */ + public Builder setBoolValue(boolean value) { + + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * For boolean values.
    +     * 
    + * + * bool bool_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearBoolValue() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue.IntList, + com.google.ads.admanager.v1.ReportValue.IntList.Builder, + com.google.ads.admanager.v1.ReportValue.IntListOrBuilder> + intListValueBuilder_; + + /** + * + * + *
    +     * For lists of integer values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + * + * @return Whether the intListValue field is set. + */ + @java.lang.Override + public boolean hasIntListValue() { + return valueCase_ == 6; + } + + /** + * + * + *
    +     * For lists of integer values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + * + * @return The intListValue. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.IntList getIntListValue() { + if (intListValueBuilder_ == null) { + if (valueCase_ == 6) { + return (com.google.ads.admanager.v1.ReportValue.IntList) value_; + } + return com.google.ads.admanager.v1.ReportValue.IntList.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return intListValueBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ReportValue.IntList.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * For lists of integer values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + */ + public Builder setIntListValue(com.google.ads.admanager.v1.ReportValue.IntList value) { + if (intListValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + intListValueBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + + /** + * + * + *
    +     * For lists of integer values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + */ + public Builder setIntListValue( + com.google.ads.admanager.v1.ReportValue.IntList.Builder builderForValue) { + if (intListValueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + intListValueBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + + /** + * + * + *
    +     * For lists of integer values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + */ + public Builder mergeIntListValue(com.google.ads.admanager.v1.ReportValue.IntList value) { + if (intListValueBuilder_ == null) { + if (valueCase_ == 6 + && value_ != com.google.ads.admanager.v1.ReportValue.IntList.getDefaultInstance()) { + value_ = + com.google.ads.admanager.v1.ReportValue.IntList.newBuilder( + (com.google.ads.admanager.v1.ReportValue.IntList) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + intListValueBuilder_.mergeFrom(value); + } else { + intListValueBuilder_.setMessage(value); + } + } + valueCase_ = 6; + return this; + } + + /** + * + * + *
    +     * For lists of integer values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + */ + public Builder clearIntListValue() { + if (intListValueBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + intListValueBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * For lists of integer values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + */ + public com.google.ads.admanager.v1.ReportValue.IntList.Builder getIntListValueBuilder() { + return getIntListValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * For lists of integer values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.IntListOrBuilder getIntListValueOrBuilder() { + if ((valueCase_ == 6) && (intListValueBuilder_ != null)) { + return intListValueBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (com.google.ads.admanager.v1.ReportValue.IntList) value_; + } + return com.google.ads.admanager.v1.ReportValue.IntList.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * For lists of integer values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue.IntList, + com.google.ads.admanager.v1.ReportValue.IntList.Builder, + com.google.ads.admanager.v1.ReportValue.IntListOrBuilder> + getIntListValueFieldBuilder() { + if (intListValueBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = com.google.ads.admanager.v1.ReportValue.IntList.getDefaultInstance(); + } + intListValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue.IntList, + com.google.ads.admanager.v1.ReportValue.IntList.Builder, + com.google.ads.admanager.v1.ReportValue.IntListOrBuilder>( + (com.google.ads.admanager.v1.ReportValue.IntList) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged(); + return intListValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue.StringList, + com.google.ads.admanager.v1.ReportValue.StringList.Builder, + com.google.ads.admanager.v1.ReportValue.StringListOrBuilder> + stringListValueBuilder_; + + /** + * + * + *
    +     * For lists of string values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + * + * @return Whether the stringListValue field is set. + */ + @java.lang.Override + public boolean hasStringListValue() { + return valueCase_ == 7; + } + + /** + * + * + *
    +     * For lists of string values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + * + * @return The stringListValue. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.StringList getStringListValue() { + if (stringListValueBuilder_ == null) { + if (valueCase_ == 7) { + return (com.google.ads.admanager.v1.ReportValue.StringList) value_; + } + return com.google.ads.admanager.v1.ReportValue.StringList.getDefaultInstance(); + } else { + if (valueCase_ == 7) { + return stringListValueBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ReportValue.StringList.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * For lists of string values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + */ + public Builder setStringListValue(com.google.ads.admanager.v1.ReportValue.StringList value) { + if (stringListValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + stringListValueBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + + /** + * + * + *
    +     * For lists of string values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + */ + public Builder setStringListValue( + com.google.ads.admanager.v1.ReportValue.StringList.Builder builderForValue) { + if (stringListValueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + stringListValueBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 7; + return this; + } + + /** + * + * + *
    +     * For lists of string values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + */ + public Builder mergeStringListValue(com.google.ads.admanager.v1.ReportValue.StringList value) { + if (stringListValueBuilder_ == null) { + if (valueCase_ == 7 + && value_ != com.google.ads.admanager.v1.ReportValue.StringList.getDefaultInstance()) { + value_ = + com.google.ads.admanager.v1.ReportValue.StringList.newBuilder( + (com.google.ads.admanager.v1.ReportValue.StringList) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 7) { + stringListValueBuilder_.mergeFrom(value); + } else { + stringListValueBuilder_.setMessage(value); + } + } + valueCase_ = 7; + return this; + } + + /** + * + * + *
    +     * For lists of string values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + */ + public Builder clearStringListValue() { + if (stringListValueBuilder_ == null) { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + } + stringListValueBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * For lists of string values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + */ + public com.google.ads.admanager.v1.ReportValue.StringList.Builder getStringListValueBuilder() { + return getStringListValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * For lists of string values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.StringListOrBuilder + getStringListValueOrBuilder() { + if ((valueCase_ == 7) && (stringListValueBuilder_ != null)) { + return stringListValueBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 7) { + return (com.google.ads.admanager.v1.ReportValue.StringList) value_; + } + return com.google.ads.admanager.v1.ReportValue.StringList.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * For lists of string values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue.StringList, + com.google.ads.admanager.v1.ReportValue.StringList.Builder, + com.google.ads.admanager.v1.ReportValue.StringListOrBuilder> + getStringListValueFieldBuilder() { + if (stringListValueBuilder_ == null) { + if (!(valueCase_ == 7)) { + value_ = com.google.ads.admanager.v1.ReportValue.StringList.getDefaultInstance(); + } + stringListValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue.StringList, + com.google.ads.admanager.v1.ReportValue.StringList.Builder, + com.google.ads.admanager.v1.ReportValue.StringListOrBuilder>( + (com.google.ads.admanager.v1.ReportValue.StringList) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 7; + onChanged(); + return stringListValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue.DoubleList, + com.google.ads.admanager.v1.ReportValue.DoubleList.Builder, + com.google.ads.admanager.v1.ReportValue.DoubleListOrBuilder> + doubleListValueBuilder_; + + /** + * + * + *
    +     * For lists of double values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + * + * @return Whether the doubleListValue field is set. + */ + @java.lang.Override + public boolean hasDoubleListValue() { + return valueCase_ == 9; + } + + /** + * + * + *
    +     * For lists of double values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + * + * @return The doubleListValue. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.DoubleList getDoubleListValue() { + if (doubleListValueBuilder_ == null) { + if (valueCase_ == 9) { + return (com.google.ads.admanager.v1.ReportValue.DoubleList) value_; + } + return com.google.ads.admanager.v1.ReportValue.DoubleList.getDefaultInstance(); + } else { + if (valueCase_ == 9) { + return doubleListValueBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ReportValue.DoubleList.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * For lists of double values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + */ + public Builder setDoubleListValue(com.google.ads.admanager.v1.ReportValue.DoubleList value) { + if (doubleListValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + doubleListValueBuilder_.setMessage(value); + } + valueCase_ = 9; + return this; + } + + /** + * + * + *
    +     * For lists of double values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + */ + public Builder setDoubleListValue( + com.google.ads.admanager.v1.ReportValue.DoubleList.Builder builderForValue) { + if (doubleListValueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + doubleListValueBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 9; + return this; + } + + /** + * + * + *
    +     * For lists of double values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + */ + public Builder mergeDoubleListValue(com.google.ads.admanager.v1.ReportValue.DoubleList value) { + if (doubleListValueBuilder_ == null) { + if (valueCase_ == 9 + && value_ != com.google.ads.admanager.v1.ReportValue.DoubleList.getDefaultInstance()) { + value_ = + com.google.ads.admanager.v1.ReportValue.DoubleList.newBuilder( + (com.google.ads.admanager.v1.ReportValue.DoubleList) value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 9) { + doubleListValueBuilder_.mergeFrom(value); + } else { + doubleListValueBuilder_.setMessage(value); + } + } + valueCase_ = 9; + return this; + } + + /** + * + * + *
    +     * For lists of double values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + */ + public Builder clearDoubleListValue() { + if (doubleListValueBuilder_ == null) { + if (valueCase_ == 9) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 9) { + valueCase_ = 0; + value_ = null; + } + doubleListValueBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * For lists of double values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + */ + public com.google.ads.admanager.v1.ReportValue.DoubleList.Builder getDoubleListValueBuilder() { + return getDoubleListValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * For lists of double values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ReportValue.DoubleListOrBuilder + getDoubleListValueOrBuilder() { + if ((valueCase_ == 9) && (doubleListValueBuilder_ != null)) { + return doubleListValueBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 9) { + return (com.google.ads.admanager.v1.ReportValue.DoubleList) value_; + } + return com.google.ads.admanager.v1.ReportValue.DoubleList.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * For lists of double values.
    +     * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue.DoubleList, + com.google.ads.admanager.v1.ReportValue.DoubleList.Builder, + com.google.ads.admanager.v1.ReportValue.DoubleListOrBuilder> + getDoubleListValueFieldBuilder() { + if (doubleListValueBuilder_ == null) { + if (!(valueCase_ == 9)) { + value_ = com.google.ads.admanager.v1.ReportValue.DoubleList.getDefaultInstance(); + } + doubleListValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ReportValue.DoubleList, + com.google.ads.admanager.v1.ReportValue.DoubleList.Builder, + com.google.ads.admanager.v1.ReportValue.DoubleListOrBuilder>( + (com.google.ads.admanager.v1.ReportValue.DoubleList) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 9; + onChanged(); + return doubleListValueBuilder_; + } + + /** + * + * + *
    +     * For bytes values.
    +     * 
    + * + * bytes bytes_value = 8; + * + * @return Whether the bytesValue field is set. + */ + public boolean hasBytesValue() { + return valueCase_ == 8; + } + + /** + * + * + *
    +     * For bytes values.
    +     * 
    + * + * bytes bytes_value = 8; + * + * @return The bytesValue. + */ + public com.google.protobuf.ByteString getBytesValue() { + if (valueCase_ == 8) { + return (com.google.protobuf.ByteString) value_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
    +     * For bytes values.
    +     * 
    + * + * bytes bytes_value = 8; + * + * @param value The bytesValue to set. + * @return This builder for chaining. + */ + public Builder setBytesValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 8; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * For bytes values.
    +     * 
    + * + * bytes bytes_value = 8; + * + * @return This builder for chaining. + */ + public Builder clearBytesValue() { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ReportValue) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ReportValue) + private static final com.google.ads.admanager.v1.ReportValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ReportValue(); + } + + public static com.google.ads.admanager.v1.ReportValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportValue 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.admanager.v1.ReportValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportValueOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportValueOrBuilder.java new file mode 100644 index 000000000000..7e240a5a487a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportValueOrBuilder.java @@ -0,0 +1,282 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/report_value.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ReportValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ReportValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * For integer values.
    +   * 
    + * + * int64 int_value = 1; + * + * @return Whether the intValue field is set. + */ + boolean hasIntValue(); + + /** + * + * + *
    +   * For integer values.
    +   * 
    + * + * int64 int_value = 1; + * + * @return The intValue. + */ + long getIntValue(); + + /** + * + * + *
    +   * For double values.
    +   * 
    + * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + + /** + * + * + *
    +   * For double values.
    +   * 
    + * + * double double_value = 2; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + /** + * + * + *
    +   * For string values.
    +   * 
    + * + * string string_value = 3; + * + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + + /** + * + * + *
    +   * For string values.
    +   * 
    + * + * string string_value = 3; + * + * @return The stringValue. + */ + java.lang.String getStringValue(); + + /** + * + * + *
    +   * For string values.
    +   * 
    + * + * string string_value = 3; + * + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString getStringValueBytes(); + + /** + * + * + *
    +   * For boolean values.
    +   * 
    + * + * bool bool_value = 4; + * + * @return Whether the boolValue field is set. + */ + boolean hasBoolValue(); + + /** + * + * + *
    +   * For boolean values.
    +   * 
    + * + * bool bool_value = 4; + * + * @return The boolValue. + */ + boolean getBoolValue(); + + /** + * + * + *
    +   * For lists of integer values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + * + * @return Whether the intListValue field is set. + */ + boolean hasIntListValue(); + + /** + * + * + *
    +   * For lists of integer values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + * + * @return The intListValue. + */ + com.google.ads.admanager.v1.ReportValue.IntList getIntListValue(); + + /** + * + * + *
    +   * For lists of integer values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.IntList int_list_value = 6; + */ + com.google.ads.admanager.v1.ReportValue.IntListOrBuilder getIntListValueOrBuilder(); + + /** + * + * + *
    +   * For lists of string values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + * + * @return Whether the stringListValue field is set. + */ + boolean hasStringListValue(); + + /** + * + * + *
    +   * For lists of string values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + * + * @return The stringListValue. + */ + com.google.ads.admanager.v1.ReportValue.StringList getStringListValue(); + + /** + * + * + *
    +   * For lists of string values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.StringList string_list_value = 7; + */ + com.google.ads.admanager.v1.ReportValue.StringListOrBuilder getStringListValueOrBuilder(); + + /** + * + * + *
    +   * For lists of double values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + * + * @return Whether the doubleListValue field is set. + */ + boolean hasDoubleListValue(); + + /** + * + * + *
    +   * For lists of double values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + * + * @return The doubleListValue. + */ + com.google.ads.admanager.v1.ReportValue.DoubleList getDoubleListValue(); + + /** + * + * + *
    +   * For lists of double values.
    +   * 
    + * + * .google.ads.admanager.v1.ReportValue.DoubleList double_list_value = 9; + */ + com.google.ads.admanager.v1.ReportValue.DoubleListOrBuilder getDoubleListValueOrBuilder(); + + /** + * + * + *
    +   * For bytes values.
    +   * 
    + * + * bytes bytes_value = 8; + * + * @return Whether the bytesValue field is set. + */ + boolean hasBytesValue(); + + /** + * + * + *
    +   * For bytes values.
    +   * 
    + * + * bytes bytes_value = 8; + * + * @return The bytesValue. + */ + com.google.protobuf.ByteString getBytesValue(); + + com.google.ads.admanager.v1.ReportValue.ValueCase getValueCase(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportValueProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportValueProto.java new file mode 100644 index 000000000000..ac44a73ad454 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportValueProto.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/report_value.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ReportValueProto { + private ReportValueProto() {} + + 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_admanager_v1_ReportValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportValue_IntList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportValue_IntList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportValue_StringList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportValue_StringList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportValue_DoubleList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportValue_DoubleList_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/admanager/v1/report_value.p" + + "roto\022\027google.ads.admanager.v1\"\303\003\n\013Report" + + "Value\022\023\n\tint_value\030\001 \001(\003H\000\022\026\n\014double_val" + + "ue\030\002 \001(\001H\000\022\026\n\014string_value\030\003 \001(\tH\000\022\024\n\nbo" + + "ol_value\030\004 \001(\010H\000\022F\n\016int_list_value\030\006 \001(\013" + + "2,.google.ads.admanager.v1.ReportValue.I" + + "ntListH\000\022L\n\021string_list_value\030\007 \001(\0132/.go" + + "ogle.ads.admanager.v1.ReportValue.String" + + "ListH\000\022L\n\021double_list_value\030\t \001(\0132/.goog" + + "le.ads.admanager.v1.ReportValue.DoubleLi" + + "stH\000\022\025\n\013bytes_value\030\010 \001(\014H\000\032\031\n\007IntList\022\016" + + "\n\006values\030\001 \003(\003\032\034\n\nStringList\022\016\n\006values\030\001" + + " \003(\t\032\034\n\nDoubleList\022\016\n\006values\030\001 \003(\001B\007\n\005va" + + "lueB\304\001\n\033com.google.ads.admanager.v1B\020Rep" + + "ortValueProtoP\001Z@google.golang.org/genpr" + + "oto/googleapis/ads/admanager/v1;admanage" + + "r\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads" + + "\\AdManager\\V1\352\002\032Google::Ads::AdManager::" + + "V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_ReportValue_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_ReportValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportValue_descriptor, + new java.lang.String[] { + "IntValue", + "DoubleValue", + "StringValue", + "BoolValue", + "IntListValue", + "StringListValue", + "DoubleListValue", + "BytesValue", + "Value", + }); + internal_static_google_ads_admanager_v1_ReportValue_IntList_descriptor = + internal_static_google_ads_admanager_v1_ReportValue_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_ReportValue_IntList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportValue_IntList_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_ads_admanager_v1_ReportValue_StringList_descriptor = + internal_static_google_ads_admanager_v1_ReportValue_descriptor.getNestedTypes().get(1); + internal_static_google_ads_admanager_v1_ReportValue_StringList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportValue_StringList_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_ads_admanager_v1_ReportValue_DoubleList_descriptor = + internal_static_google_ads_admanager_v1_ReportValue_descriptor.getNestedTypes().get(2); + internal_static_google_ads_admanager_v1_ReportValue_DoubleList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportValue_DoubleList_descriptor, + new java.lang.String[] { + "Values", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Schedule.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Schedule.java deleted file mode 100644 index c1c615da7e18..000000000000 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Schedule.java +++ /dev/null @@ -1,4156 +0,0 @@ -/* - * Copyright 2025 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! -// source: google/ads/admanager/v1/report_messages.proto - -// Protobuf Java Version: 3.25.8 -package com.google.ads.admanager.v1; - -/** - * - * - *
    - * The schedule for the report
    - * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Schedule} - */ -public final class Schedule extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Schedule) - ScheduleOrBuilder { - private static final long serialVersionUID = 0L; - - // Use Schedule.newBuilder() to construct. - private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Schedule() { - frequency_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Schedule(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Schedule.class, - com.google.ads.admanager.v1.Schedule.Builder.class); - } - - /** - * - * - *
    -   * Frequency to run report.
    -   * 
    - * - * Protobuf enum {@code google.ads.admanager.v1.Schedule.Frequency} - */ - public enum Frequency implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
    -     * No Frequency specified.
    -     * 
    - * - * FREQUENCY_UNSPECIFIED = 0; - */ - FREQUENCY_UNSPECIFIED(0), - /** - * - * - *
    -     * Schedule report to run every hour.
    -     * 
    - * - * HOURLY = 1; - */ - HOURLY(1), - /** - * - * - *
    -     * Schedule report to run twice a day (every 12 hours).
    -     * 
    - * - * TWO_TIMES_DAILY = 2; - */ - TWO_TIMES_DAILY(2), - /** - * - * - *
    -     * Schedule report to run three times a day (every 8 hours).
    -     * 
    - * - * THREE_TIMES_DAILY = 3; - */ - THREE_TIMES_DAILY(3), - /** - * - * - *
    -     * Schedule report to run four times a day (every 6 hours).
    -     * 
    - * - * FOUR_TIMES_DAILY = 4; - */ - FOUR_TIMES_DAILY(4), - /** - * - * - *
    -     * Schedule report to run on a daily basis.
    -     * 
    - * - * DAILY = 5; - */ - DAILY(5), - /** - * - * - *
    -     * Schedule report to run on a weekly basis.
    -     * 
    - * - * WEEKLY = 6; - */ - WEEKLY(6), - /** - * - * - *
    -     * Schedule report to run on a monthly basis.
    -     * 
    - * - * MONTHLY = 7; - */ - MONTHLY(7), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
    -     * No Frequency specified.
    -     * 
    - * - * FREQUENCY_UNSPECIFIED = 0; - */ - public static final int FREQUENCY_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
    -     * Schedule report to run every hour.
    -     * 
    - * - * HOURLY = 1; - */ - public static final int HOURLY_VALUE = 1; - - /** - * - * - *
    -     * Schedule report to run twice a day (every 12 hours).
    -     * 
    - * - * TWO_TIMES_DAILY = 2; - */ - public static final int TWO_TIMES_DAILY_VALUE = 2; - - /** - * - * - *
    -     * Schedule report to run three times a day (every 8 hours).
    -     * 
    - * - * THREE_TIMES_DAILY = 3; - */ - public static final int THREE_TIMES_DAILY_VALUE = 3; - - /** - * - * - *
    -     * Schedule report to run four times a day (every 6 hours).
    -     * 
    - * - * FOUR_TIMES_DAILY = 4; - */ - public static final int FOUR_TIMES_DAILY_VALUE = 4; - - /** - * - * - *
    -     * Schedule report to run on a daily basis.
    -     * 
    - * - * DAILY = 5; - */ - public static final int DAILY_VALUE = 5; - - /** - * - * - *
    -     * Schedule report to run on a weekly basis.
    -     * 
    - * - * WEEKLY = 6; - */ - public static final int WEEKLY_VALUE = 6; - - /** - * - * - *
    -     * Schedule report to run on a monthly basis.
    -     * 
    - * - * MONTHLY = 7; - */ - public static final int MONTHLY_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 Frequency 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 Frequency forNumber(int value) { - switch (value) { - case 0: - return FREQUENCY_UNSPECIFIED; - case 1: - return HOURLY; - case 2: - return TWO_TIMES_DAILY; - case 3: - return THREE_TIMES_DAILY; - case 4: - return FOUR_TIMES_DAILY; - case 5: - return DAILY; - case 6: - return WEEKLY; - case 7: - return MONTHLY; - 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 Frequency findValueByNumber(int number) { - return Frequency.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.admanager.v1.Schedule.getDescriptor().getEnumTypes().get(0); - } - - private static final Frequency[] VALUES = values(); - - public static Frequency 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 Frequency(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Schedule.Frequency) - } - - public interface WeeklyScheduleOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Schedule.WeeklySchedule) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return A list containing the weeklyScheduledDays. - */ - java.util.List getWeeklyScheduledDaysList(); - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return The count of weeklyScheduledDays. - */ - int getWeeklyScheduledDaysCount(); - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param index The index of the element to return. - * @return The weeklyScheduledDays at the given index. - */ - com.google.type.DayOfWeek getWeeklyScheduledDays(int index); - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return A list containing the enum numeric values on the wire for weeklyScheduledDays. - */ - java.util.List getWeeklyScheduledDaysValueList(); - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of weeklyScheduledDays at the given index. - */ - int getWeeklyScheduledDaysValue(int index); - } - - /** - * - * - *
    -   * Days of week to schedule report run.
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Schedule.WeeklySchedule} - */ - public static final class WeeklySchedule extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Schedule.WeeklySchedule) - WeeklyScheduleOrBuilder { - private static final long serialVersionUID = 0L; - - // Use WeeklySchedule.newBuilder() to construct. - private WeeklySchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WeeklySchedule() { - weeklyScheduledDays_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WeeklySchedule(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Schedule.WeeklySchedule.class, - com.google.ads.admanager.v1.Schedule.WeeklySchedule.Builder.class); - } - - public static final int WEEKLY_SCHEDULED_DAYS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List weeklyScheduledDays_; - - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.type.DayOfWeek> - weeklyScheduledDays_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.type.DayOfWeek>() { - public com.google.type.DayOfWeek convert(java.lang.Integer from) { - com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(from); - return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; - } - }; - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return A list containing the weeklyScheduledDays. - */ - @java.lang.Override - public java.util.List getWeeklyScheduledDaysList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.type.DayOfWeek>( - weeklyScheduledDays_, weeklyScheduledDays_converter_); - } - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return The count of weeklyScheduledDays. - */ - @java.lang.Override - public int getWeeklyScheduledDaysCount() { - return weeklyScheduledDays_.size(); - } - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param index The index of the element to return. - * @return The weeklyScheduledDays at the given index. - */ - @java.lang.Override - public com.google.type.DayOfWeek getWeeklyScheduledDays(int index) { - return weeklyScheduledDays_converter_.convert(weeklyScheduledDays_.get(index)); - } - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return A list containing the enum numeric values on the wire for weeklyScheduledDays. - */ - @java.lang.Override - public java.util.List getWeeklyScheduledDaysValueList() { - return weeklyScheduledDays_; - } - - /** - * - * - *
    -     * Specifies days of the week on which to run report.
    -     * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of weeklyScheduledDays at the given index. - */ - @java.lang.Override - public int getWeeklyScheduledDaysValue(int index) { - return weeklyScheduledDays_.get(index); - } - - private int weeklyScheduledDaysMemoizedSerializedSize; - - 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 (getWeeklyScheduledDaysList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(weeklyScheduledDaysMemoizedSerializedSize); - } - for (int i = 0; i < weeklyScheduledDays_.size(); i++) { - output.writeEnumNoTag(weeklyScheduledDays_.get(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 < weeklyScheduledDays_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - weeklyScheduledDays_.get(i)); - } - size += dataSize; - if (!getWeeklyScheduledDaysList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - weeklyScheduledDaysMemoizedSerializedSize = dataSize; - } - 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.admanager.v1.Schedule.WeeklySchedule)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Schedule.WeeklySchedule other = - (com.google.ads.admanager.v1.Schedule.WeeklySchedule) obj; - - if (!weeklyScheduledDays_.equals(other.weeklyScheduledDays_)) 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 (getWeeklyScheduledDaysCount() > 0) { - hash = (37 * hash) + WEEKLY_SCHEDULED_DAYS_FIELD_NUMBER; - hash = (53 * hash) + weeklyScheduledDays_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule 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.admanager.v1.Schedule.WeeklySchedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule 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.admanager.v1.Schedule.WeeklySchedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.ads.admanager.v1.Schedule.WeeklySchedule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Schedule.WeeklySchedule} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Schedule.WeeklySchedule) - com.google.ads.admanager.v1.Schedule.WeeklyScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Schedule.WeeklySchedule.class, - com.google.ads.admanager.v1.Schedule.WeeklySchedule.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Schedule.WeeklySchedule.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - weeklyScheduledDays_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.WeeklySchedule getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Schedule.WeeklySchedule.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.WeeklySchedule build() { - com.google.ads.admanager.v1.Schedule.WeeklySchedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.WeeklySchedule buildPartial() { - com.google.ads.admanager.v1.Schedule.WeeklySchedule result = - new com.google.ads.admanager.v1.Schedule.WeeklySchedule(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.ads.admanager.v1.Schedule.WeeklySchedule result) { - if (((bitField0_ & 0x00000001) != 0)) { - weeklyScheduledDays_ = java.util.Collections.unmodifiableList(weeklyScheduledDays_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.weeklyScheduledDays_ = weeklyScheduledDays_; - } - - private void buildPartial0(com.google.ads.admanager.v1.Schedule.WeeklySchedule result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Schedule.WeeklySchedule) { - return mergeFrom((com.google.ads.admanager.v1.Schedule.WeeklySchedule) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Schedule.WeeklySchedule other) { - if (other == com.google.ads.admanager.v1.Schedule.WeeklySchedule.getDefaultInstance()) - return this; - if (!other.weeklyScheduledDays_.isEmpty()) { - if (weeklyScheduledDays_.isEmpty()) { - weeklyScheduledDays_ = other.weeklyScheduledDays_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWeeklyScheduledDaysIsMutable(); - weeklyScheduledDays_.addAll(other.weeklyScheduledDays_); - } - 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 8: - { - int tmpRaw = input.readEnum(); - ensureWeeklyScheduledDaysIsMutable(); - weeklyScheduledDays_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureWeeklyScheduledDaysIsMutable(); - weeklyScheduledDays_.add(tmpRaw); - } - input.popLimit(oldLimit); - 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 weeklyScheduledDays_ = - java.util.Collections.emptyList(); - - private void ensureWeeklyScheduledDaysIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - weeklyScheduledDays_ = new java.util.ArrayList(weeklyScheduledDays_); - bitField0_ |= 0x00000001; - } - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return A list containing the weeklyScheduledDays. - */ - public java.util.List getWeeklyScheduledDaysList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.type.DayOfWeek>( - weeklyScheduledDays_, weeklyScheduledDays_converter_); - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return The count of weeklyScheduledDays. - */ - public int getWeeklyScheduledDaysCount() { - return weeklyScheduledDays_.size(); - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param index The index of the element to return. - * @return The weeklyScheduledDays at the given index. - */ - public com.google.type.DayOfWeek getWeeklyScheduledDays(int index) { - return weeklyScheduledDays_converter_.convert(weeklyScheduledDays_.get(index)); - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param index The index to set the value at. - * @param value The weeklyScheduledDays to set. - * @return This builder for chaining. - */ - public Builder setWeeklyScheduledDays(int index, com.google.type.DayOfWeek value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWeeklyScheduledDaysIsMutable(); - weeklyScheduledDays_.set(index, value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param value The weeklyScheduledDays to add. - * @return This builder for chaining. - */ - public Builder addWeeklyScheduledDays(com.google.type.DayOfWeek value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWeeklyScheduledDaysIsMutable(); - weeklyScheduledDays_.add(value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param values The weeklyScheduledDays to add. - * @return This builder for chaining. - */ - public Builder addAllWeeklyScheduledDays( - java.lang.Iterable values) { - ensureWeeklyScheduledDaysIsMutable(); - for (com.google.type.DayOfWeek value : values) { - weeklyScheduledDays_.add(value.getNumber()); - } - onChanged(); - return this; - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return This builder for chaining. - */ - public Builder clearWeeklyScheduledDays() { - weeklyScheduledDays_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @return A list containing the enum numeric values on the wire for weeklyScheduledDays. - */ - public java.util.List getWeeklyScheduledDaysValueList() { - return java.util.Collections.unmodifiableList(weeklyScheduledDays_); - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of weeklyScheduledDays at the given index. - */ - public int getWeeklyScheduledDaysValue(int index) { - return weeklyScheduledDays_.get(index); - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for weeklyScheduledDays to set. - * @return This builder for chaining. - */ - public Builder setWeeklyScheduledDaysValue(int index, int value) { - ensureWeeklyScheduledDaysIsMutable(); - weeklyScheduledDays_.set(index, value); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param value The enum numeric value on the wire for weeklyScheduledDays to add. - * @return This builder for chaining. - */ - public Builder addWeeklyScheduledDaysValue(int value) { - ensureWeeklyScheduledDaysIsMutable(); - weeklyScheduledDays_.add(value); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Specifies days of the week on which to run report.
    -       * 
    - * - * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * - * @param values The enum numeric values on the wire for weeklyScheduledDays to add. - * @return This builder for chaining. - */ - public Builder addAllWeeklyScheduledDaysValue(java.lang.Iterable values) { - ensureWeeklyScheduledDaysIsMutable(); - for (int value : values) { - weeklyScheduledDays_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Schedule.WeeklySchedule) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Schedule.WeeklySchedule) - private static final com.google.ads.admanager.v1.Schedule.WeeklySchedule DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Schedule.WeeklySchedule(); - } - - public static com.google.ads.admanager.v1.Schedule.WeeklySchedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WeeklySchedule 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.admanager.v1.Schedule.WeeklySchedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface MonthlyScheduleOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Schedule.MonthlySchedule) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * Specifies days of the month to run report. Range is from 1-31.
    -     * Will ignore days that are not valid for the given month.
    -     * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @return A list containing the monthlyScheduledDays. - */ - java.util.List getMonthlyScheduledDaysList(); - - /** - * - * - *
    -     * Specifies days of the month to run report. Range is from 1-31.
    -     * Will ignore days that are not valid for the given month.
    -     * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @return The count of monthlyScheduledDays. - */ - int getMonthlyScheduledDaysCount(); - - /** - * - * - *
    -     * Specifies days of the month to run report. Range is from 1-31.
    -     * Will ignore days that are not valid for the given month.
    -     * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @param index The index of the element to return. - * @return The monthlyScheduledDays at the given index. - */ - int getMonthlyScheduledDays(int index); - } - - /** - * - * - *
    -   * Days of Month to schedule report run.
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Schedule.MonthlySchedule} - */ - public static final class MonthlySchedule extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Schedule.MonthlySchedule) - MonthlyScheduleOrBuilder { - private static final long serialVersionUID = 0L; - - // Use MonthlySchedule.newBuilder() to construct. - private MonthlySchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MonthlySchedule() { - monthlyScheduledDays_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MonthlySchedule(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Schedule.MonthlySchedule.class, - com.google.ads.admanager.v1.Schedule.MonthlySchedule.Builder.class); - } - - public static final int MONTHLY_SCHEDULED_DAYS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList monthlyScheduledDays_ = emptyIntList(); - - /** - * - * - *
    -     * Specifies days of the month to run report. Range is from 1-31.
    -     * Will ignore days that are not valid for the given month.
    -     * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @return A list containing the monthlyScheduledDays. - */ - @java.lang.Override - public java.util.List getMonthlyScheduledDaysList() { - return monthlyScheduledDays_; - } - - /** - * - * - *
    -     * Specifies days of the month to run report. Range is from 1-31.
    -     * Will ignore days that are not valid for the given month.
    -     * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @return The count of monthlyScheduledDays. - */ - public int getMonthlyScheduledDaysCount() { - return monthlyScheduledDays_.size(); - } - - /** - * - * - *
    -     * Specifies days of the month to run report. Range is from 1-31.
    -     * Will ignore days that are not valid for the given month.
    -     * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @param index The index of the element to return. - * @return The monthlyScheduledDays at the given index. - */ - public int getMonthlyScheduledDays(int index) { - return monthlyScheduledDays_.getInt(index); - } - - private int monthlyScheduledDaysMemoizedSerializedSize = -1; - - 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 (getMonthlyScheduledDaysList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(monthlyScheduledDaysMemoizedSerializedSize); - } - for (int i = 0; i < monthlyScheduledDays_.size(); i++) { - output.writeInt32NoTag(monthlyScheduledDays_.getInt(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 < monthlyScheduledDays_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - monthlyScheduledDays_.getInt(i)); - } - size += dataSize; - if (!getMonthlyScheduledDaysList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); - } - monthlyScheduledDaysMemoizedSerializedSize = dataSize; - } - 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.admanager.v1.Schedule.MonthlySchedule)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Schedule.MonthlySchedule other = - (com.google.ads.admanager.v1.Schedule.MonthlySchedule) obj; - - if (!getMonthlyScheduledDaysList().equals(other.getMonthlyScheduledDaysList())) 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 (getMonthlyScheduledDaysCount() > 0) { - hash = (37 * hash) + MONTHLY_SCHEDULED_DAYS_FIELD_NUMBER; - hash = (53 * hash) + getMonthlyScheduledDaysList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule 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.admanager.v1.Schedule.MonthlySchedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule 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.admanager.v1.Schedule.MonthlySchedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.ads.admanager.v1.Schedule.MonthlySchedule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * Days of Month to schedule report run.
    -     * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Schedule.MonthlySchedule} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Schedule.MonthlySchedule) - com.google.ads.admanager.v1.Schedule.MonthlyScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Schedule.MonthlySchedule.class, - com.google.ads.admanager.v1.Schedule.MonthlySchedule.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Schedule.MonthlySchedule.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - monthlyScheduledDays_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.MonthlySchedule getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Schedule.MonthlySchedule.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.MonthlySchedule build() { - com.google.ads.admanager.v1.Schedule.MonthlySchedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.MonthlySchedule buildPartial() { - com.google.ads.admanager.v1.Schedule.MonthlySchedule result = - new com.google.ads.admanager.v1.Schedule.MonthlySchedule(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Schedule.MonthlySchedule result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - monthlyScheduledDays_.makeImmutable(); - result.monthlyScheduledDays_ = monthlyScheduledDays_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Schedule.MonthlySchedule) { - return mergeFrom((com.google.ads.admanager.v1.Schedule.MonthlySchedule) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Schedule.MonthlySchedule other) { - if (other == com.google.ads.admanager.v1.Schedule.MonthlySchedule.getDefaultInstance()) - return this; - if (!other.monthlyScheduledDays_.isEmpty()) { - if (monthlyScheduledDays_.isEmpty()) { - monthlyScheduledDays_ = other.monthlyScheduledDays_; - monthlyScheduledDays_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureMonthlyScheduledDaysIsMutable(); - monthlyScheduledDays_.addAll(other.monthlyScheduledDays_); - } - 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 8: - { - int v = input.readInt32(); - ensureMonthlyScheduledDaysIsMutable(); - monthlyScheduledDays_.addInt(v); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureMonthlyScheduledDaysIsMutable(); - while (input.getBytesUntilLimit() > 0) { - monthlyScheduledDays_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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.Internal.IntList monthlyScheduledDays_ = emptyIntList(); - - private void ensureMonthlyScheduledDaysIsMutable() { - if (!monthlyScheduledDays_.isModifiable()) { - monthlyScheduledDays_ = makeMutableCopy(monthlyScheduledDays_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
    -       * Specifies days of the month to run report. Range is from 1-31.
    -       * Will ignore days that are not valid for the given month.
    -       * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @return A list containing the monthlyScheduledDays. - */ - public java.util.List getMonthlyScheduledDaysList() { - monthlyScheduledDays_.makeImmutable(); - return monthlyScheduledDays_; - } - - /** - * - * - *
    -       * Specifies days of the month to run report. Range is from 1-31.
    -       * Will ignore days that are not valid for the given month.
    -       * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @return The count of monthlyScheduledDays. - */ - public int getMonthlyScheduledDaysCount() { - return monthlyScheduledDays_.size(); - } - - /** - * - * - *
    -       * Specifies days of the month to run report. Range is from 1-31.
    -       * Will ignore days that are not valid for the given month.
    -       * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @param index The index of the element to return. - * @return The monthlyScheduledDays at the given index. - */ - public int getMonthlyScheduledDays(int index) { - return monthlyScheduledDays_.getInt(index); - } - - /** - * - * - *
    -       * Specifies days of the month to run report. Range is from 1-31.
    -       * Will ignore days that are not valid for the given month.
    -       * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @param index The index to set the value at. - * @param value The monthlyScheduledDays to set. - * @return This builder for chaining. - */ - public Builder setMonthlyScheduledDays(int index, int value) { - - ensureMonthlyScheduledDaysIsMutable(); - monthlyScheduledDays_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Specifies days of the month to run report. Range is from 1-31.
    -       * Will ignore days that are not valid for the given month.
    -       * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @param value The monthlyScheduledDays to add. - * @return This builder for chaining. - */ - public Builder addMonthlyScheduledDays(int value) { - - ensureMonthlyScheduledDaysIsMutable(); - monthlyScheduledDays_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Specifies days of the month to run report. Range is from 1-31.
    -       * Will ignore days that are not valid for the given month.
    -       * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @param values The monthlyScheduledDays to add. - * @return This builder for chaining. - */ - public Builder addAllMonthlyScheduledDays( - java.lang.Iterable values) { - ensureMonthlyScheduledDaysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monthlyScheduledDays_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Specifies days of the month to run report. Range is from 1-31.
    -       * Will ignore days that are not valid for the given month.
    -       * 
    - * - * repeated int32 monthly_scheduled_days = 1; - * - * @return This builder for chaining. - */ - public Builder clearMonthlyScheduledDays() { - monthlyScheduledDays_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Schedule.MonthlySchedule) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Schedule.MonthlySchedule) - private static final com.google.ads.admanager.v1.Schedule.MonthlySchedule DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Schedule.MonthlySchedule(); - } - - public static com.google.ads.admanager.v1.Schedule.MonthlySchedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MonthlySchedule 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.admanager.v1.Schedule.MonthlySchedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - private int frequencyScheduleCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object frequencySchedule_; - - public enum FrequencyScheduleCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - WEEKLY_SCHEDULE(6), - MONTHLY_SCHEDULE(7), - FREQUENCYSCHEDULE_NOT_SET(0); - private final int value; - - private FrequencyScheduleCase(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 FrequencyScheduleCase valueOf(int value) { - return forNumber(value); - } - - public static FrequencyScheduleCase forNumber(int value) { - switch (value) { - case 6: - return WEEKLY_SCHEDULE; - case 7: - return MONTHLY_SCHEDULE; - case 0: - return FREQUENCYSCHEDULE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public FrequencyScheduleCase getFrequencyScheduleCase() { - return FrequencyScheduleCase.forNumber(frequencyScheduleCase_); - } - - public static final int WEEKLY_SCHEDULE_FIELD_NUMBER = 6; - - /** - * - * - *
    -   * Days of week to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - * - * @return Whether the weeklySchedule field is set. - */ - @java.lang.Override - public boolean hasWeeklySchedule() { - return frequencyScheduleCase_ == 6; - } - - /** - * - * - *
    -   * Days of week to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - * - * @return The weeklySchedule. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.WeeklySchedule getWeeklySchedule() { - if (frequencyScheduleCase_ == 6) { - return (com.google.ads.admanager.v1.Schedule.WeeklySchedule) frequencySchedule_; - } - return com.google.ads.admanager.v1.Schedule.WeeklySchedule.getDefaultInstance(); - } - - /** - * - * - *
    -   * Days of week to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder() { - if (frequencyScheduleCase_ == 6) { - return (com.google.ads.admanager.v1.Schedule.WeeklySchedule) frequencySchedule_; - } - return com.google.ads.admanager.v1.Schedule.WeeklySchedule.getDefaultInstance(); - } - - public static final int MONTHLY_SCHEDULE_FIELD_NUMBER = 7; - - /** - * - * - *
    -   * Days of month to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - * - * @return Whether the monthlySchedule field is set. - */ - @java.lang.Override - public boolean hasMonthlySchedule() { - return frequencyScheduleCase_ == 7; - } - - /** - * - * - *
    -   * Days of month to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - * - * @return The monthlySchedule. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.MonthlySchedule getMonthlySchedule() { - if (frequencyScheduleCase_ == 7) { - return (com.google.ads.admanager.v1.Schedule.MonthlySchedule) frequencySchedule_; - } - return com.google.ads.admanager.v1.Schedule.MonthlySchedule.getDefaultInstance(); - } - - /** - * - * - *
    -   * Days of month to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.MonthlyScheduleOrBuilder - getMonthlyScheduleOrBuilder() { - if (frequencyScheduleCase_ == 7) { - return (com.google.ads.admanager.v1.Schedule.MonthlySchedule) frequencySchedule_; - } - return com.google.ads.admanager.v1.Schedule.MonthlySchedule.getDefaultInstance(); - } - - public static final int START_DATE_FIELD_NUMBER = 1; - private com.google.type.Date startDate_; - - /** - * - * - *
    -   * Date for the first run of the report.
    -   * 
    - * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - @java.lang.Override - public boolean hasStartDate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -   * Date for the first run of the report.
    -   * 
    - * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - @java.lang.Override - public com.google.type.Date getStartDate() { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - - /** - * - * - *
    -   * Date for the first run of the report.
    -   * 
    - * - * .google.type.Date start_date = 1; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - - public static final int END_DATE_FIELD_NUMBER = 2; - private com.google.type.Date endDate_; - - /** - * - * - *
    -   * Date for the final run of the report.
    -   * 
    - * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - @java.lang.Override - public boolean hasEndDate() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
    -   * Date for the final run of the report.
    -   * 
    - * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - @java.lang.Override - public com.google.type.Date getEndDate() { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - - /** - * - * - *
    -   * Date for the final run of the report.
    -   * 
    - * - * .google.type.Date end_date = 2; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - - public static final int FREQUENCY_FIELD_NUMBER = 3; - private int frequency_ = 0; - - /** - * - * - *
    -   * Frequency to run report.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * - * @return The enum numeric value on the wire for frequency. - */ - @java.lang.Override - public int getFrequencyValue() { - return frequency_; - } - - /** - * - * - *
    -   * Frequency to run report.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * - * @return The frequency. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.Frequency getFrequency() { - com.google.ads.admanager.v1.Schedule.Frequency result = - com.google.ads.admanager.v1.Schedule.Frequency.forNumber(frequency_); - return result == null ? com.google.ads.admanager.v1.Schedule.Frequency.UNRECOGNIZED : result; - } - - public static final int START_TIME_FIELD_NUMBER = 4; - private com.google.type.TimeOfDay startTime_; - - /** - * - * - *
    -   * Indicates start time for schedule to run
    -   * Will use the time_zone from `ReportDefinition`. Defaults
    -   * to the publisher's time zone if not specified.
    -   *
    -   * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -   * will be the time of day that the first report will run on the first day.
    -   * For example, if the start time is 2:00 PM, and the frequency is
    -   * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -   * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -   * 2:00 PM, 10:00 PM.
    -   * 
    - * - * .google.type.TimeOfDay start_time = 4; - * - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
    -   * Indicates start time for schedule to run
    -   * Will use the time_zone from `ReportDefinition`. Defaults
    -   * to the publisher's time zone if not specified.
    -   *
    -   * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -   * will be the time of day that the first report will run on the first day.
    -   * For example, if the start time is 2:00 PM, and the frequency is
    -   * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -   * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -   * 2:00 PM, 10:00 PM.
    -   * 
    - * - * .google.type.TimeOfDay start_time = 4; - * - * @return The startTime. - */ - @java.lang.Override - public com.google.type.TimeOfDay getStartTime() { - return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; - } - - /** - * - * - *
    -   * Indicates start time for schedule to run
    -   * Will use the time_zone from `ReportDefinition`. Defaults
    -   * to the publisher's time zone if not specified.
    -   *
    -   * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -   * will be the time of day that the first report will run on the first day.
    -   * For example, if the start time is 2:00 PM, and the frequency is
    -   * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -   * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -   * 2:00 PM, 10:00 PM.
    -   * 
    - * - * .google.type.TimeOfDay start_time = 4; - */ - @java.lang.Override - public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { - return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; - } - - 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, getStartDate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getEndDate()); - } - if (frequency_ - != com.google.ads.admanager.v1.Schedule.Frequency.FREQUENCY_UNSPECIFIED.getNumber()) { - output.writeEnum(3, frequency_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(4, getStartTime()); - } - if (frequencyScheduleCase_ == 6) { - output.writeMessage( - 6, (com.google.ads.admanager.v1.Schedule.WeeklySchedule) frequencySchedule_); - } - if (frequencyScheduleCase_ == 7) { - output.writeMessage( - 7, (com.google.ads.admanager.v1.Schedule.MonthlySchedule) frequencySchedule_); - } - 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, getStartDate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); - } - if (frequency_ - != com.google.ads.admanager.v1.Schedule.Frequency.FREQUENCY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, frequency_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); - } - if (frequencyScheduleCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.ads.admanager.v1.Schedule.WeeklySchedule) frequencySchedule_); - } - if (frequencyScheduleCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.ads.admanager.v1.Schedule.MonthlySchedule) frequencySchedule_); - } - 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.admanager.v1.Schedule)) { - return super.equals(obj); - } - com.google.ads.admanager.v1.Schedule other = (com.google.ads.admanager.v1.Schedule) obj; - - if (hasStartDate() != other.hasStartDate()) return false; - if (hasStartDate()) { - if (!getStartDate().equals(other.getStartDate())) return false; - } - if (hasEndDate() != other.hasEndDate()) return false; - if (hasEndDate()) { - if (!getEndDate().equals(other.getEndDate())) return false; - } - if (frequency_ != other.frequency_) return false; - if (hasStartTime() != other.hasStartTime()) return false; - if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; - } - if (!getFrequencyScheduleCase().equals(other.getFrequencyScheduleCase())) return false; - switch (frequencyScheduleCase_) { - case 6: - if (!getWeeklySchedule().equals(other.getWeeklySchedule())) return false; - break; - case 7: - if (!getMonthlySchedule().equals(other.getMonthlySchedule())) 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(); - if (hasStartDate()) { - hash = (37 * hash) + START_DATE_FIELD_NUMBER; - hash = (53 * hash) + getStartDate().hashCode(); - } - if (hasEndDate()) { - hash = (37 * hash) + END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getEndDate().hashCode(); - } - hash = (37 * hash) + FREQUENCY_FIELD_NUMBER; - hash = (53 * hash) + frequency_; - if (hasStartTime()) { - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - } - switch (frequencyScheduleCase_) { - case 6: - hash = (37 * hash) + WEEKLY_SCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + getWeeklySchedule().hashCode(); - break; - case 7: - hash = (37 * hash) + MONTHLY_SCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + getMonthlySchedule().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.admanager.v1.Schedule parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Schedule 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.admanager.v1.Schedule parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Schedule 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.admanager.v1.Schedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.ads.admanager.v1.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Schedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Schedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Schedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.ads.admanager.v1.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.ads.admanager.v1.Schedule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.ads.admanager.v1.Schedule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -   * The schedule for the report
    -   * 
    - * - * Protobuf type {@code google.ads.admanager.v1.Schedule} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Schedule) - com.google.ads.admanager.v1.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.admanager.v1.Schedule.class, - com.google.ads.admanager.v1.Schedule.Builder.class); - } - - // Construct using com.google.ads.admanager.v1.Schedule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStartDateFieldBuilder(); - getEndDateFieldBuilder(); - getStartTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (weeklyScheduleBuilder_ != null) { - weeklyScheduleBuilder_.clear(); - } - if (monthlyScheduleBuilder_ != null) { - monthlyScheduleBuilder_.clear(); - } - startDate_ = null; - if (startDateBuilder_ != null) { - startDateBuilder_.dispose(); - startDateBuilder_ = null; - } - endDate_ = null; - if (endDateBuilder_ != null) { - endDateBuilder_.dispose(); - endDateBuilder_ = null; - } - frequency_ = 0; - startTime_ = null; - if (startTimeBuilder_ != null) { - startTimeBuilder_.dispose(); - startTimeBuilder_ = null; - } - frequencyScheduleCase_ = 0; - frequencySchedule_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportMessagesProto - .internal_static_google_ads_admanager_v1_Schedule_descriptor; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Schedule getDefaultInstanceForType() { - return com.google.ads.admanager.v1.Schedule.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.admanager.v1.Schedule build() { - com.google.ads.admanager.v1.Schedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.admanager.v1.Schedule buildPartial() { - com.google.ads.admanager.v1.Schedule result = new com.google.ads.admanager.v1.Schedule(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.ads.admanager.v1.Schedule result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.frequency_ = frequency_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.ads.admanager.v1.Schedule result) { - result.frequencyScheduleCase_ = frequencyScheduleCase_; - result.frequencySchedule_ = this.frequencySchedule_; - if (frequencyScheduleCase_ == 6 && weeklyScheduleBuilder_ != null) { - result.frequencySchedule_ = weeklyScheduleBuilder_.build(); - } - if (frequencyScheduleCase_ == 7 && monthlyScheduleBuilder_ != null) { - result.frequencySchedule_ = monthlyScheduleBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.admanager.v1.Schedule) { - return mergeFrom((com.google.ads.admanager.v1.Schedule) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.admanager.v1.Schedule other) { - if (other == com.google.ads.admanager.v1.Schedule.getDefaultInstance()) return this; - if (other.hasStartDate()) { - mergeStartDate(other.getStartDate()); - } - if (other.hasEndDate()) { - mergeEndDate(other.getEndDate()); - } - if (other.frequency_ != 0) { - setFrequencyValue(other.getFrequencyValue()); - } - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - switch (other.getFrequencyScheduleCase()) { - case WEEKLY_SCHEDULE: - { - mergeWeeklySchedule(other.getWeeklySchedule()); - break; - } - case MONTHLY_SCHEDULE: - { - mergeMonthlySchedule(other.getMonthlySchedule()); - break; - } - case FREQUENCYSCHEDULE_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: - { - input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: - { - input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 24: - { - frequency_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 24 - case 34: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 50: - { - input.readMessage(getWeeklyScheduleFieldBuilder().getBuilder(), extensionRegistry); - frequencyScheduleCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getMonthlyScheduleFieldBuilder().getBuilder(), extensionRegistry); - frequencyScheduleCase_ = 7; - break; - } // case 58 - 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 frequencyScheduleCase_ = 0; - private java.lang.Object frequencySchedule_; - - public FrequencyScheduleCase getFrequencyScheduleCase() { - return FrequencyScheduleCase.forNumber(frequencyScheduleCase_); - } - - public Builder clearFrequencySchedule() { - frequencyScheduleCase_ = 0; - frequencySchedule_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Schedule.WeeklySchedule, - com.google.ads.admanager.v1.Schedule.WeeklySchedule.Builder, - com.google.ads.admanager.v1.Schedule.WeeklyScheduleOrBuilder> - weeklyScheduleBuilder_; - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - * - * @return Whether the weeklySchedule field is set. - */ - @java.lang.Override - public boolean hasWeeklySchedule() { - return frequencyScheduleCase_ == 6; - } - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - * - * @return The weeklySchedule. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.WeeklySchedule getWeeklySchedule() { - if (weeklyScheduleBuilder_ == null) { - if (frequencyScheduleCase_ == 6) { - return (com.google.ads.admanager.v1.Schedule.WeeklySchedule) frequencySchedule_; - } - return com.google.ads.admanager.v1.Schedule.WeeklySchedule.getDefaultInstance(); - } else { - if (frequencyScheduleCase_ == 6) { - return weeklyScheduleBuilder_.getMessage(); - } - return com.google.ads.admanager.v1.Schedule.WeeklySchedule.getDefaultInstance(); - } - } - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - */ - public Builder setWeeklySchedule(com.google.ads.admanager.v1.Schedule.WeeklySchedule value) { - if (weeklyScheduleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - frequencySchedule_ = value; - onChanged(); - } else { - weeklyScheduleBuilder_.setMessage(value); - } - frequencyScheduleCase_ = 6; - return this; - } - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - */ - public Builder setWeeklySchedule( - com.google.ads.admanager.v1.Schedule.WeeklySchedule.Builder builderForValue) { - if (weeklyScheduleBuilder_ == null) { - frequencySchedule_ = builderForValue.build(); - onChanged(); - } else { - weeklyScheduleBuilder_.setMessage(builderForValue.build()); - } - frequencyScheduleCase_ = 6; - return this; - } - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - */ - public Builder mergeWeeklySchedule(com.google.ads.admanager.v1.Schedule.WeeklySchedule value) { - if (weeklyScheduleBuilder_ == null) { - if (frequencyScheduleCase_ == 6 - && frequencySchedule_ - != com.google.ads.admanager.v1.Schedule.WeeklySchedule.getDefaultInstance()) { - frequencySchedule_ = - com.google.ads.admanager.v1.Schedule.WeeklySchedule.newBuilder( - (com.google.ads.admanager.v1.Schedule.WeeklySchedule) frequencySchedule_) - .mergeFrom(value) - .buildPartial(); - } else { - frequencySchedule_ = value; - } - onChanged(); - } else { - if (frequencyScheduleCase_ == 6) { - weeklyScheduleBuilder_.mergeFrom(value); - } else { - weeklyScheduleBuilder_.setMessage(value); - } - } - frequencyScheduleCase_ = 6; - return this; - } - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - */ - public Builder clearWeeklySchedule() { - if (weeklyScheduleBuilder_ == null) { - if (frequencyScheduleCase_ == 6) { - frequencyScheduleCase_ = 0; - frequencySchedule_ = null; - onChanged(); - } - } else { - if (frequencyScheduleCase_ == 6) { - frequencyScheduleCase_ = 0; - frequencySchedule_ = null; - } - weeklyScheduleBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - */ - public com.google.ads.admanager.v1.Schedule.WeeklySchedule.Builder getWeeklyScheduleBuilder() { - return getWeeklyScheduleFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.WeeklyScheduleOrBuilder - getWeeklyScheduleOrBuilder() { - if ((frequencyScheduleCase_ == 6) && (weeklyScheduleBuilder_ != null)) { - return weeklyScheduleBuilder_.getMessageOrBuilder(); - } else { - if (frequencyScheduleCase_ == 6) { - return (com.google.ads.admanager.v1.Schedule.WeeklySchedule) frequencySchedule_; - } - return com.google.ads.admanager.v1.Schedule.WeeklySchedule.getDefaultInstance(); - } - } - - /** - * - * - *
    -     * Days of week to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Schedule.WeeklySchedule, - com.google.ads.admanager.v1.Schedule.WeeklySchedule.Builder, - com.google.ads.admanager.v1.Schedule.WeeklyScheduleOrBuilder> - getWeeklyScheduleFieldBuilder() { - if (weeklyScheduleBuilder_ == null) { - if (!(frequencyScheduleCase_ == 6)) { - frequencySchedule_ = - com.google.ads.admanager.v1.Schedule.WeeklySchedule.getDefaultInstance(); - } - weeklyScheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Schedule.WeeklySchedule, - com.google.ads.admanager.v1.Schedule.WeeklySchedule.Builder, - com.google.ads.admanager.v1.Schedule.WeeklyScheduleOrBuilder>( - (com.google.ads.admanager.v1.Schedule.WeeklySchedule) frequencySchedule_, - getParentForChildren(), - isClean()); - frequencySchedule_ = null; - } - frequencyScheduleCase_ = 6; - onChanged(); - return weeklyScheduleBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Schedule.MonthlySchedule, - com.google.ads.admanager.v1.Schedule.MonthlySchedule.Builder, - com.google.ads.admanager.v1.Schedule.MonthlyScheduleOrBuilder> - monthlyScheduleBuilder_; - - /** - * - * - *
    -     * Days of month to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - * - * @return Whether the monthlySchedule field is set. - */ - @java.lang.Override - public boolean hasMonthlySchedule() { - return frequencyScheduleCase_ == 7; - } - - /** - * - * - *
    -     * Days of month to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - * - * @return The monthlySchedule. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.MonthlySchedule getMonthlySchedule() { - if (monthlyScheduleBuilder_ == null) { - if (frequencyScheduleCase_ == 7) { - return (com.google.ads.admanager.v1.Schedule.MonthlySchedule) frequencySchedule_; - } - return com.google.ads.admanager.v1.Schedule.MonthlySchedule.getDefaultInstance(); - } else { - if (frequencyScheduleCase_ == 7) { - return monthlyScheduleBuilder_.getMessage(); - } - return com.google.ads.admanager.v1.Schedule.MonthlySchedule.getDefaultInstance(); - } - } - - /** - * - * - *
    -     * Days of month to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - */ - public Builder setMonthlySchedule(com.google.ads.admanager.v1.Schedule.MonthlySchedule value) { - if (monthlyScheduleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - frequencySchedule_ = value; - onChanged(); - } else { - monthlyScheduleBuilder_.setMessage(value); - } - frequencyScheduleCase_ = 7; - return this; - } - - /** - * - * - *
    -     * Days of month to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - */ - public Builder setMonthlySchedule( - com.google.ads.admanager.v1.Schedule.MonthlySchedule.Builder builderForValue) { - if (monthlyScheduleBuilder_ == null) { - frequencySchedule_ = builderForValue.build(); - onChanged(); - } else { - monthlyScheduleBuilder_.setMessage(builderForValue.build()); - } - frequencyScheduleCase_ = 7; - return this; - } - - /** - * - * - *
    -     * Days of month to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - */ - public Builder mergeMonthlySchedule( - com.google.ads.admanager.v1.Schedule.MonthlySchedule value) { - if (monthlyScheduleBuilder_ == null) { - if (frequencyScheduleCase_ == 7 - && frequencySchedule_ - != com.google.ads.admanager.v1.Schedule.MonthlySchedule.getDefaultInstance()) { - frequencySchedule_ = - com.google.ads.admanager.v1.Schedule.MonthlySchedule.newBuilder( - (com.google.ads.admanager.v1.Schedule.MonthlySchedule) frequencySchedule_) - .mergeFrom(value) - .buildPartial(); - } else { - frequencySchedule_ = value; - } - onChanged(); - } else { - if (frequencyScheduleCase_ == 7) { - monthlyScheduleBuilder_.mergeFrom(value); - } else { - monthlyScheduleBuilder_.setMessage(value); - } - } - frequencyScheduleCase_ = 7; - return this; - } - - /** - * - * - *
    -     * Days of month to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - */ - public Builder clearMonthlySchedule() { - if (monthlyScheduleBuilder_ == null) { - if (frequencyScheduleCase_ == 7) { - frequencyScheduleCase_ = 0; - frequencySchedule_ = null; - onChanged(); - } - } else { - if (frequencyScheduleCase_ == 7) { - frequencyScheduleCase_ = 0; - frequencySchedule_ = null; - } - monthlyScheduleBuilder_.clear(); - } - return this; - } - - /** - * - * - *
    -     * Days of month to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - */ - public com.google.ads.admanager.v1.Schedule.MonthlySchedule.Builder - getMonthlyScheduleBuilder() { - return getMonthlyScheduleFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -     * Days of month to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.MonthlyScheduleOrBuilder - getMonthlyScheduleOrBuilder() { - if ((frequencyScheduleCase_ == 7) && (monthlyScheduleBuilder_ != null)) { - return monthlyScheduleBuilder_.getMessageOrBuilder(); - } else { - if (frequencyScheduleCase_ == 7) { - return (com.google.ads.admanager.v1.Schedule.MonthlySchedule) frequencySchedule_; - } - return com.google.ads.admanager.v1.Schedule.MonthlySchedule.getDefaultInstance(); - } - } - - /** - * - * - *
    -     * Days of month to schedule report run.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Schedule.MonthlySchedule, - com.google.ads.admanager.v1.Schedule.MonthlySchedule.Builder, - com.google.ads.admanager.v1.Schedule.MonthlyScheduleOrBuilder> - getMonthlyScheduleFieldBuilder() { - if (monthlyScheduleBuilder_ == null) { - if (!(frequencyScheduleCase_ == 7)) { - frequencySchedule_ = - com.google.ads.admanager.v1.Schedule.MonthlySchedule.getDefaultInstance(); - } - monthlyScheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Schedule.MonthlySchedule, - com.google.ads.admanager.v1.Schedule.MonthlySchedule.Builder, - com.google.ads.admanager.v1.Schedule.MonthlyScheduleOrBuilder>( - (com.google.ads.admanager.v1.Schedule.MonthlySchedule) frequencySchedule_, - getParentForChildren(), - isClean()); - frequencySchedule_ = null; - } - frequencyScheduleCase_ = 7; - onChanged(); - return monthlyScheduleBuilder_; - } - - private com.google.type.Date startDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - startDateBuilder_; - - /** - * - * - *
    -     * Date for the first run of the report.
    -     * 
    - * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - public boolean hasStartDate() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
    -     * Date for the first run of the report.
    -     * 
    - * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - public com.google.type.Date getStartDate() { - if (startDateBuilder_ == null) { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } else { - return startDateBuilder_.getMessage(); - } - } - - /** - * - * - *
    -     * Date for the first run of the report.
    -     * 
    - * - * .google.type.Date start_date = 1; - */ - public Builder setStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startDate_ = value; - } else { - startDateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
    -     * Date for the first run of the report.
    -     * 
    - * - * .google.type.Date start_date = 1; - */ - public Builder setStartDate(com.google.type.Date.Builder builderForValue) { - if (startDateBuilder_ == null) { - startDate_ = builderForValue.build(); - } else { - startDateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
    -     * Date for the first run of the report.
    -     * 
    - * - * .google.type.Date start_date = 1; - */ - public Builder mergeStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && startDate_ != null - && startDate_ != com.google.type.Date.getDefaultInstance()) { - getStartDateBuilder().mergeFrom(value); - } else { - startDate_ = value; - } - } else { - startDateBuilder_.mergeFrom(value); - } - if (startDate_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
    -     * Date for the first run of the report.
    -     * 
    - * - * .google.type.Date start_date = 1; - */ - public Builder clearStartDate() { - bitField0_ = (bitField0_ & ~0x00000004); - startDate_ = null; - if (startDateBuilder_ != null) { - startDateBuilder_.dispose(); - startDateBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -     * Date for the first run of the report.
    -     * 
    - * - * .google.type.Date start_date = 1; - */ - public com.google.type.Date.Builder getStartDateBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getStartDateFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -     * Date for the first run of the report.
    -     * 
    - * - * .google.type.Date start_date = 1; - */ - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - if (startDateBuilder_ != null) { - return startDateBuilder_.getMessageOrBuilder(); - } else { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - } - - /** - * - * - *
    -     * Date for the first run of the report.
    -     * 
    - * - * .google.type.Date start_date = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getStartDateFieldBuilder() { - if (startDateBuilder_ == null) { - startDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), getParentForChildren(), isClean()); - startDate_ = null; - } - return startDateBuilder_; - } - - private com.google.type.Date endDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - endDateBuilder_; - - /** - * - * - *
    -     * Date for the final run of the report.
    -     * 
    - * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - public boolean hasEndDate() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
    -     * Date for the final run of the report.
    -     * 
    - * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - public com.google.type.Date getEndDate() { - if (endDateBuilder_ == null) { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } else { - return endDateBuilder_.getMessage(); - } - } - - /** - * - * - *
    -     * Date for the final run of the report.
    -     * 
    - * - * .google.type.Date end_date = 2; - */ - public Builder setEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endDate_ = value; - } else { - endDateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
    -     * Date for the final run of the report.
    -     * 
    - * - * .google.type.Date end_date = 2; - */ - public Builder setEndDate(com.google.type.Date.Builder builderForValue) { - if (endDateBuilder_ == null) { - endDate_ = builderForValue.build(); - } else { - endDateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
    -     * Date for the final run of the report.
    -     * 
    - * - * .google.type.Date end_date = 2; - */ - public Builder mergeEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && endDate_ != null - && endDate_ != com.google.type.Date.getDefaultInstance()) { - getEndDateBuilder().mergeFrom(value); - } else { - endDate_ = value; - } - } else { - endDateBuilder_.mergeFrom(value); - } - if (endDate_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
    -     * Date for the final run of the report.
    -     * 
    - * - * .google.type.Date end_date = 2; - */ - public Builder clearEndDate() { - bitField0_ = (bitField0_ & ~0x00000008); - endDate_ = null; - if (endDateBuilder_ != null) { - endDateBuilder_.dispose(); - endDateBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -     * Date for the final run of the report.
    -     * 
    - * - * .google.type.Date end_date = 2; - */ - public com.google.type.Date.Builder getEndDateBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getEndDateFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -     * Date for the final run of the report.
    -     * 
    - * - * .google.type.Date end_date = 2; - */ - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - if (endDateBuilder_ != null) { - return endDateBuilder_.getMessageOrBuilder(); - } else { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - } - - /** - * - * - *
    -     * Date for the final run of the report.
    -     * 
    - * - * .google.type.Date end_date = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getEndDateFieldBuilder() { - if (endDateBuilder_ == null) { - endDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getEndDate(), getParentForChildren(), isClean()); - endDate_ = null; - } - return endDateBuilder_; - } - - private int frequency_ = 0; - - /** - * - * - *
    -     * Frequency to run report.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * - * @return The enum numeric value on the wire for frequency. - */ - @java.lang.Override - public int getFrequencyValue() { - return frequency_; - } - - /** - * - * - *
    -     * Frequency to run report.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * - * @param value The enum numeric value on the wire for frequency to set. - * @return This builder for chaining. - */ - public Builder setFrequencyValue(int value) { - frequency_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
    -     * Frequency to run report.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * - * @return The frequency. - */ - @java.lang.Override - public com.google.ads.admanager.v1.Schedule.Frequency getFrequency() { - com.google.ads.admanager.v1.Schedule.Frequency result = - com.google.ads.admanager.v1.Schedule.Frequency.forNumber(frequency_); - return result == null ? com.google.ads.admanager.v1.Schedule.Frequency.UNRECOGNIZED : result; - } - - /** - * - * - *
    -     * Frequency to run report.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * - * @param value The frequency to set. - * @return This builder for chaining. - */ - public Builder setFrequency(com.google.ads.admanager.v1.Schedule.Frequency value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - frequency_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
    -     * Frequency to run report.
    -     * 
    - * - * .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * - * @return This builder for chaining. - */ - public Builder clearFrequency() { - bitField0_ = (bitField0_ & ~0x00000010); - frequency_ = 0; - onChanged(); - return this; - } - - private com.google.type.TimeOfDay startTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, - com.google.type.TimeOfDay.Builder, - com.google.type.TimeOfDayOrBuilder> - startTimeBuilder_; - - /** - * - * - *
    -     * Indicates start time for schedule to run
    -     * Will use the time_zone from `ReportDefinition`. Defaults
    -     * to the publisher's time zone if not specified.
    -     *
    -     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -     * will be the time of day that the first report will run on the first day.
    -     * For example, if the start time is 2:00 PM, and the frequency is
    -     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -     * 2:00 PM, 10:00 PM.
    -     * 
    - * - * .google.type.TimeOfDay start_time = 4; - * - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
    -     * Indicates start time for schedule to run
    -     * Will use the time_zone from `ReportDefinition`. Defaults
    -     * to the publisher's time zone if not specified.
    -     *
    -     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -     * will be the time of day that the first report will run on the first day.
    -     * For example, if the start time is 2:00 PM, and the frequency is
    -     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -     * 2:00 PM, 10:00 PM.
    -     * 
    - * - * .google.type.TimeOfDay start_time = 4; - * - * @return The startTime. - */ - public com.google.type.TimeOfDay getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - - /** - * - * - *
    -     * Indicates start time for schedule to run
    -     * Will use the time_zone from `ReportDefinition`. Defaults
    -     * to the publisher's time zone if not specified.
    -     *
    -     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -     * will be the time of day that the first report will run on the first day.
    -     * For example, if the start time is 2:00 PM, and the frequency is
    -     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -     * 2:00 PM, 10:00 PM.
    -     * 
    - * - * .google.type.TimeOfDay start_time = 4; - */ - public Builder setStartTime(com.google.type.TimeOfDay value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - } else { - startTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
    -     * Indicates start time for schedule to run
    -     * Will use the time_zone from `ReportDefinition`. Defaults
    -     * to the publisher's time zone if not specified.
    -     *
    -     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -     * will be the time of day that the first report will run on the first day.
    -     * For example, if the start time is 2:00 PM, and the frequency is
    -     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -     * 2:00 PM, 10:00 PM.
    -     * 
    - * - * .google.type.TimeOfDay start_time = 4; - */ - public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
    -     * Indicates start time for schedule to run
    -     * Will use the time_zone from `ReportDefinition`. Defaults
    -     * to the publisher's time zone if not specified.
    -     *
    -     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -     * will be the time of day that the first report will run on the first day.
    -     * For example, if the start time is 2:00 PM, and the frequency is
    -     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -     * 2:00 PM, 10:00 PM.
    -     * 
    - * - * .google.type.TimeOfDay start_time = 4; - */ - public Builder mergeStartTime(com.google.type.TimeOfDay value) { - if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && startTime_ != null - && startTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { - getStartTimeBuilder().mergeFrom(value); - } else { - startTime_ = value; - } - } else { - startTimeBuilder_.mergeFrom(value); - } - if (startTime_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - - /** - * - * - *
    -     * Indicates start time for schedule to run
    -     * Will use the time_zone from `ReportDefinition`. Defaults
    -     * to the publisher's time zone if not specified.
    -     *
    -     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -     * will be the time of day that the first report will run on the first day.
    -     * For example, if the start time is 2:00 PM, and the frequency is
    -     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -     * 2:00 PM, 10:00 PM.
    -     * 
    - * - * .google.type.TimeOfDay start_time = 4; - */ - public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00000020); - startTime_ = null; - if (startTimeBuilder_ != null) { - startTimeBuilder_.dispose(); - startTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -     * Indicates start time for schedule to run
    -     * Will use the time_zone from `ReportDefinition`. Defaults
    -     * to the publisher's time zone if not specified.
    -     *
    -     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -     * will be the time of day that the first report will run on the first day.
    -     * For example, if the start time is 2:00 PM, and the frequency is
    -     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -     * 2:00 PM, 10:00 PM.
    -     * 
    - * - * .google.type.TimeOfDay start_time = 4; - */ - public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -     * Indicates start time for schedule to run
    -     * Will use the time_zone from `ReportDefinition`. Defaults
    -     * to the publisher's time zone if not specified.
    -     *
    -     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -     * will be the time of day that the first report will run on the first day.
    -     * For example, if the start time is 2:00 PM, and the frequency is
    -     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -     * 2:00 PM, 10:00 PM.
    -     * 
    - * - * .google.type.TimeOfDay start_time = 4; - */ - public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; - } - } - - /** - * - * - *
    -     * Indicates start time for schedule to run
    -     * Will use the time_zone from `ReportDefinition`. Defaults
    -     * to the publisher's time zone if not specified.
    -     *
    -     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -     * will be the time of day that the first report will run on the first day.
    -     * For example, if the start time is 2:00 PM, and the frequency is
    -     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -     * 2:00 PM, 10:00 PM.
    -     * 
    - * - * .google.type.TimeOfDay start_time = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, - com.google.type.TimeOfDay.Builder, - com.google.type.TimeOfDayOrBuilder> - getStartTimeFieldBuilder() { - if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeOfDay, - com.google.type.TimeOfDay.Builder, - com.google.type.TimeOfDayOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); - startTime_ = null; - } - return startTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Schedule) - } - - // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Schedule) - private static final com.google.ads.admanager.v1.Schedule DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Schedule(); - } - - public static com.google.ads.admanager.v1.Schedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule 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.admanager.v1.Schedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptions.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptions.java index c2ea9cc8a7ad..afdf6859b559 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptions.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptions.java @@ -227,9 +227,4536 @@ private DeliveryCondition(int value) { // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ScheduleOptions.DeliveryCondition) } + public interface ScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ScheduleOptions.Schedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Days of week to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + * + * @return Whether the weeklySchedule field is set. + */ + boolean hasWeeklySchedule(); + + /** + * + * + *
    +     * Days of week to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + * + * @return The weeklySchedule. + */ + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule getWeeklySchedule(); + + /** + * + * + *
    +     * Days of week to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + */ + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleOrBuilder + getWeeklyScheduleOrBuilder(); + + /** + * + * + *
    +     * Days of month to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + * + * @return Whether the monthlySchedule field is set. + */ + boolean hasMonthlySchedule(); + + /** + * + * + *
    +     * Days of month to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + * + * @return The monthlySchedule. + */ + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule getMonthlySchedule(); + + /** + * + * + *
    +     * Days of month to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + */ + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlyScheduleOrBuilder + getMonthlyScheduleOrBuilder(); + + /** + * + * + *
    +     * Date for the first run of the report.
    +     * 
    + * + * .google.type.Date start_date = 1; + * + * @return Whether the startDate field is set. + */ + boolean hasStartDate(); + + /** + * + * + *
    +     * Date for the first run of the report.
    +     * 
    + * + * .google.type.Date start_date = 1; + * + * @return The startDate. + */ + com.google.type.Date getStartDate(); + + /** + * + * + *
    +     * Date for the first run of the report.
    +     * 
    + * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
    +     * Date for the final run of the report.
    +     * 
    + * + * .google.type.Date end_date = 2; + * + * @return Whether the endDate field is set. + */ + boolean hasEndDate(); + + /** + * + * + *
    +     * Date for the final run of the report.
    +     * 
    + * + * .google.type.Date end_date = 2; + * + * @return The endDate. + */ + com.google.type.Date getEndDate(); + + /** + * + * + *
    +     * Date for the final run of the report.
    +     * 
    + * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + + /** + * + * + *
    +     * Frequency to run report.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * + * @return The enum numeric value on the wire for frequency. + */ + int getFrequencyValue(); + + /** + * + * + *
    +     * Frequency to run report.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * + * @return The frequency. + */ + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency getFrequency(); + + /** + * + * + *
    +     * Indicates start time for schedule to run
    +     * Will use the time_zone from `ReportDefinition`. Defaults
    +     * to the publisher's time zone if not specified.
    +     *
    +     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +     * will be the time of day that the first report will run on the first day.
    +     * For example, if the start time is 2:00 PM, and the frequency is
    +     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +     * 2:00 PM, 10:00 PM.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 4; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
    +     * Indicates start time for schedule to run
    +     * Will use the time_zone from `ReportDefinition`. Defaults
    +     * to the publisher's time zone if not specified.
    +     *
    +     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +     * will be the time of day that the first report will run on the first day.
    +     * For example, if the start time is 2:00 PM, and the frequency is
    +     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +     * 2:00 PM, 10:00 PM.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 4; + * + * @return The startTime. + */ + com.google.type.TimeOfDay getStartTime(); + + /** + * + * + *
    +     * Indicates start time for schedule to run
    +     * Will use the time_zone from `ReportDefinition`. Defaults
    +     * to the publisher's time zone if not specified.
    +     *
    +     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +     * will be the time of day that the first report will run on the first day.
    +     * For example, if the start time is 2:00 PM, and the frequency is
    +     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +     * 2:00 PM, 10:00 PM.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 4; + */ + com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); + + com.google.ads.admanager.v1.ScheduleOptions.Schedule.FrequencyScheduleCase + getFrequencyScheduleCase(); + } + + /** + * + * + *
    +   * The schedule for the report
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ScheduleOptions.Schedule} + */ + public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ScheduleOptions.Schedule) + ScheduleOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Schedule.newBuilder() to construct. + private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Schedule() { + frequency_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Schedule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.class, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Builder.class); + } + + /** + * + * + *
    +     * Frequency to run report.
    +     * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency} + */ + public enum Frequency implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * No Frequency specified.
    +       * 
    + * + * FREQUENCY_UNSPECIFIED = 0; + */ + FREQUENCY_UNSPECIFIED(0), + /** + * + * + *
    +       * Schedule report to run every hour.
    +       * 
    + * + * HOURLY = 1; + */ + HOURLY(1), + /** + * + * + *
    +       * Schedule report to run twice a day (every 12 hours).
    +       * 
    + * + * TWO_TIMES_DAILY = 2; + */ + TWO_TIMES_DAILY(2), + /** + * + * + *
    +       * Schedule report to run three times a day (every 8 hours).
    +       * 
    + * + * THREE_TIMES_DAILY = 3; + */ + THREE_TIMES_DAILY(3), + /** + * + * + *
    +       * Schedule report to run four times a day (every 6 hours).
    +       * 
    + * + * FOUR_TIMES_DAILY = 4; + */ + FOUR_TIMES_DAILY(4), + /** + * + * + *
    +       * Schedule report to run on a daily basis.
    +       * 
    + * + * DAILY = 5; + */ + DAILY(5), + /** + * + * + *
    +       * Schedule report to run on a weekly basis.
    +       * 
    + * + * WEEKLY = 6; + */ + WEEKLY(6), + /** + * + * + *
    +       * Schedule report to run on a monthly basis.
    +       * 
    + * + * MONTHLY = 7; + */ + MONTHLY(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * No Frequency specified.
    +       * 
    + * + * FREQUENCY_UNSPECIFIED = 0; + */ + public static final int FREQUENCY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +       * Schedule report to run every hour.
    +       * 
    + * + * HOURLY = 1; + */ + public static final int HOURLY_VALUE = 1; + + /** + * + * + *
    +       * Schedule report to run twice a day (every 12 hours).
    +       * 
    + * + * TWO_TIMES_DAILY = 2; + */ + public static final int TWO_TIMES_DAILY_VALUE = 2; + + /** + * + * + *
    +       * Schedule report to run three times a day (every 8 hours).
    +       * 
    + * + * THREE_TIMES_DAILY = 3; + */ + public static final int THREE_TIMES_DAILY_VALUE = 3; + + /** + * + * + *
    +       * Schedule report to run four times a day (every 6 hours).
    +       * 
    + * + * FOUR_TIMES_DAILY = 4; + */ + public static final int FOUR_TIMES_DAILY_VALUE = 4; + + /** + * + * + *
    +       * Schedule report to run on a daily basis.
    +       * 
    + * + * DAILY = 5; + */ + public static final int DAILY_VALUE = 5; + + /** + * + * + *
    +       * Schedule report to run on a weekly basis.
    +       * 
    + * + * WEEKLY = 6; + */ + public static final int WEEKLY_VALUE = 6; + + /** + * + * + *
    +       * Schedule report to run on a monthly basis.
    +       * 
    + * + * MONTHLY = 7; + */ + public static final int MONTHLY_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 Frequency 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 Frequency forNumber(int value) { + switch (value) { + case 0: + return FREQUENCY_UNSPECIFIED; + case 1: + return HOURLY; + case 2: + return TWO_TIMES_DAILY; + case 3: + return THREE_TIMES_DAILY; + case 4: + return FOUR_TIMES_DAILY; + case 5: + return DAILY; + case 6: + return WEEKLY; + case 7: + return MONTHLY; + 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 Frequency findValueByNumber(int number) { + return Frequency.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Frequency[] VALUES = values(); + + public static Frequency 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 Frequency(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency) + } + + public interface WeeklyScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return A list containing the weeklyScheduledDays. + */ + java.util.List getWeeklyScheduledDaysList(); + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return The count of weeklyScheduledDays. + */ + int getWeeklyScheduledDaysCount(); + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param index The index of the element to return. + * @return The weeklyScheduledDays at the given index. + */ + com.google.type.DayOfWeek getWeeklyScheduledDays(int index); + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return A list containing the enum numeric values on the wire for weeklyScheduledDays. + */ + java.util.List getWeeklyScheduledDaysValueList(); + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of weeklyScheduledDays at the given index. + */ + int getWeeklyScheduledDaysValue(int index); + } + + /** + * + * + *
    +     * Days of week to schedule report run.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule} + */ + public static final class WeeklySchedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + WeeklyScheduleOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WeeklySchedule.newBuilder() to construct. + private WeeklySchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WeeklySchedule() { + weeklyScheduledDays_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WeeklySchedule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.class, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.Builder.class); + } + + public static final int WEEKLY_SCHEDULED_DAYS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List weeklyScheduledDays_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.type.DayOfWeek> + weeklyScheduledDays_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.type.DayOfWeek>() { + public com.google.type.DayOfWeek convert(java.lang.Integer from) { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(from); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + }; + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return A list containing the weeklyScheduledDays. + */ + @java.lang.Override + public java.util.List getWeeklyScheduledDaysList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.type.DayOfWeek>( + weeklyScheduledDays_, weeklyScheduledDays_converter_); + } + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return The count of weeklyScheduledDays. + */ + @java.lang.Override + public int getWeeklyScheduledDaysCount() { + return weeklyScheduledDays_.size(); + } + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param index The index of the element to return. + * @return The weeklyScheduledDays at the given index. + */ + @java.lang.Override + public com.google.type.DayOfWeek getWeeklyScheduledDays(int index) { + return weeklyScheduledDays_converter_.convert(weeklyScheduledDays_.get(index)); + } + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return A list containing the enum numeric values on the wire for weeklyScheduledDays. + */ + @java.lang.Override + public java.util.List getWeeklyScheduledDaysValueList() { + return weeklyScheduledDays_; + } + + /** + * + * + *
    +       * Specifies days of the week on which to run report.
    +       * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of weeklyScheduledDays at the given index. + */ + @java.lang.Override + public int getWeeklyScheduledDaysValue(int index) { + return weeklyScheduledDays_.get(index); + } + + private int weeklyScheduledDaysMemoizedSerializedSize; + + 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 (getWeeklyScheduledDaysList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(weeklyScheduledDaysMemoizedSerializedSize); + } + for (int i = 0; i < weeklyScheduledDays_.size(); i++) { + output.writeEnumNoTag(weeklyScheduledDays_.get(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 < weeklyScheduledDays_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + weeklyScheduledDays_.get(i)); + } + size += dataSize; + if (!getWeeklyScheduledDaysList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + weeklyScheduledDaysMemoizedSerializedSize = dataSize; + } + 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.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule other = + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) obj; + + if (!weeklyScheduledDays_.equals(other.weeklyScheduledDays_)) 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 (getWeeklyScheduledDaysCount() > 0) { + hash = (37 * hash) + WEEKLY_SCHEDULED_DAYS_FIELD_NUMBER; + hash = (53 * hash) + weeklyScheduledDays_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule 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.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule 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.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.class, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.Builder + .class); + } + + // Construct using + // com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + weeklyScheduledDays_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_WeeklySchedule_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule build() { + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule buildPartial() { + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule result = + new com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule result) { + if (((bitField0_ & 0x00000001) != 0)) { + weeklyScheduledDays_ = java.util.Collections.unmodifiableList(weeklyScheduledDays_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.weeklyScheduledDays_ = weeklyScheduledDays_; + } + + private void buildPartial0( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) { + return mergeFrom( + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule other) { + if (other + == com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + .getDefaultInstance()) return this; + if (!other.weeklyScheduledDays_.isEmpty()) { + if (weeklyScheduledDays_.isEmpty()) { + weeklyScheduledDays_ = other.weeklyScheduledDays_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWeeklyScheduledDaysIsMutable(); + weeklyScheduledDays_.addAll(other.weeklyScheduledDays_); + } + 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 8: + { + int tmpRaw = input.readEnum(); + ensureWeeklyScheduledDaysIsMutable(); + weeklyScheduledDays_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureWeeklyScheduledDaysIsMutable(); + weeklyScheduledDays_.add(tmpRaw); + } + input.popLimit(oldLimit); + 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 weeklyScheduledDays_ = + java.util.Collections.emptyList(); + + private void ensureWeeklyScheduledDaysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + weeklyScheduledDays_ = new java.util.ArrayList(weeklyScheduledDays_); + bitField0_ |= 0x00000001; + } + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return A list containing the weeklyScheduledDays. + */ + public java.util.List getWeeklyScheduledDaysList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.type.DayOfWeek>( + weeklyScheduledDays_, weeklyScheduledDays_converter_); + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return The count of weeklyScheduledDays. + */ + public int getWeeklyScheduledDaysCount() { + return weeklyScheduledDays_.size(); + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param index The index of the element to return. + * @return The weeklyScheduledDays at the given index. + */ + public com.google.type.DayOfWeek getWeeklyScheduledDays(int index) { + return weeklyScheduledDays_converter_.convert(weeklyScheduledDays_.get(index)); + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param index The index to set the value at. + * @param value The weeklyScheduledDays to set. + * @return This builder for chaining. + */ + public Builder setWeeklyScheduledDays(int index, com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeeklyScheduledDaysIsMutable(); + weeklyScheduledDays_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param value The weeklyScheduledDays to add. + * @return This builder for chaining. + */ + public Builder addWeeklyScheduledDays(com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeeklyScheduledDaysIsMutable(); + weeklyScheduledDays_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param values The weeklyScheduledDays to add. + * @return This builder for chaining. + */ + public Builder addAllWeeklyScheduledDays( + java.lang.Iterable values) { + ensureWeeklyScheduledDaysIsMutable(); + for (com.google.type.DayOfWeek value : values) { + weeklyScheduledDays_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return This builder for chaining. + */ + public Builder clearWeeklyScheduledDays() { + weeklyScheduledDays_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @return A list containing the enum numeric values on the wire for weeklyScheduledDays. + */ + public java.util.List getWeeklyScheduledDaysValueList() { + return java.util.Collections.unmodifiableList(weeklyScheduledDays_); + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of weeklyScheduledDays at the given index. + */ + public int getWeeklyScheduledDaysValue(int index) { + return weeklyScheduledDays_.get(index); + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for weeklyScheduledDays to set. + * @return This builder for chaining. + */ + public Builder setWeeklyScheduledDaysValue(int index, int value) { + ensureWeeklyScheduledDaysIsMutable(); + weeklyScheduledDays_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param value The enum numeric value on the wire for weeklyScheduledDays to add. + * @return This builder for chaining. + */ + public Builder addWeeklyScheduledDaysValue(int value) { + ensureWeeklyScheduledDaysIsMutable(); + weeklyScheduledDays_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
    +         * Specifies days of the week on which to run report.
    +         * 
    + * + * repeated .google.type.DayOfWeek weekly_scheduled_days = 1; + * + * @param values The enum numeric values on the wire for weeklyScheduledDays to add. + * @return This builder for chaining. + */ + public Builder addAllWeeklyScheduledDaysValue( + java.lang.Iterable values) { + ensureWeeklyScheduledDaysIsMutable(); + for (int value : values) { + weeklyScheduledDays_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + private static final com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule(); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WeeklySchedule 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.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MonthlyScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Specifies days of the month to run report. Range is from 1-31.
    +       * Will ignore days that are not valid for the given month.
    +       * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @return A list containing the monthlyScheduledDays. + */ + java.util.List getMonthlyScheduledDaysList(); + + /** + * + * + *
    +       * Specifies days of the month to run report. Range is from 1-31.
    +       * Will ignore days that are not valid for the given month.
    +       * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @return The count of monthlyScheduledDays. + */ + int getMonthlyScheduledDaysCount(); + + /** + * + * + *
    +       * Specifies days of the month to run report. Range is from 1-31.
    +       * Will ignore days that are not valid for the given month.
    +       * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @param index The index of the element to return. + * @return The monthlyScheduledDays at the given index. + */ + int getMonthlyScheduledDays(int index); + } + + /** + * + * + *
    +     * Days of Month to schedule report run.
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule} + */ + public static final class MonthlySchedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + MonthlyScheduleOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MonthlySchedule.newBuilder() to construct. + private MonthlySchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MonthlySchedule() { + monthlyScheduledDays_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MonthlySchedule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.class, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.Builder.class); + } + + public static final int MONTHLY_SCHEDULED_DAYS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList monthlyScheduledDays_ = emptyIntList(); + + /** + * + * + *
    +       * Specifies days of the month to run report. Range is from 1-31.
    +       * Will ignore days that are not valid for the given month.
    +       * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @return A list containing the monthlyScheduledDays. + */ + @java.lang.Override + public java.util.List getMonthlyScheduledDaysList() { + return monthlyScheduledDays_; + } + + /** + * + * + *
    +       * Specifies days of the month to run report. Range is from 1-31.
    +       * Will ignore days that are not valid for the given month.
    +       * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @return The count of monthlyScheduledDays. + */ + public int getMonthlyScheduledDaysCount() { + return monthlyScheduledDays_.size(); + } + + /** + * + * + *
    +       * Specifies days of the month to run report. Range is from 1-31.
    +       * Will ignore days that are not valid for the given month.
    +       * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @param index The index of the element to return. + * @return The monthlyScheduledDays at the given index. + */ + public int getMonthlyScheduledDays(int index) { + return monthlyScheduledDays_.getInt(index); + } + + private int monthlyScheduledDaysMemoizedSerializedSize = -1; + + 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 (getMonthlyScheduledDaysList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(monthlyScheduledDaysMemoizedSerializedSize); + } + for (int i = 0; i < monthlyScheduledDays_.size(); i++) { + output.writeInt32NoTag(monthlyScheduledDays_.getInt(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 < monthlyScheduledDays_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + monthlyScheduledDays_.getInt(i)); + } + size += dataSize; + if (!getMonthlyScheduledDaysList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + monthlyScheduledDaysMemoizedSerializedSize = dataSize; + } + 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.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule other = + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) obj; + + if (!getMonthlyScheduledDaysList().equals(other.getMonthlyScheduledDaysList())) + 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 (getMonthlyScheduledDaysCount() > 0) { + hash = (37 * hash) + MONTHLY_SCHEDULED_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getMonthlyScheduledDaysList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule 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.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule 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.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +       * Days of Month to schedule report run.
    +       * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlyScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.class, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.Builder + .class); + } + + // Construct using + // com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + monthlyScheduledDays_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_MonthlySchedule_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule build() { + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule buildPartial() { + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule result = + new com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + monthlyScheduledDays_.makeImmutable(); + result.monthlyScheduledDays_ = monthlyScheduledDays_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) { + return mergeFrom( + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule other) { + if (other + == com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + .getDefaultInstance()) return this; + if (!other.monthlyScheduledDays_.isEmpty()) { + if (monthlyScheduledDays_.isEmpty()) { + monthlyScheduledDays_ = other.monthlyScheduledDays_; + monthlyScheduledDays_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureMonthlyScheduledDaysIsMutable(); + monthlyScheduledDays_.addAll(other.monthlyScheduledDays_); + } + 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 8: + { + int v = input.readInt32(); + ensureMonthlyScheduledDaysIsMutable(); + monthlyScheduledDays_.addInt(v); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureMonthlyScheduledDaysIsMutable(); + while (input.getBytesUntilLimit() > 0) { + monthlyScheduledDays_.addInt(input.readInt32()); + } + input.popLimit(limit); + 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.Internal.IntList monthlyScheduledDays_ = emptyIntList(); + + private void ensureMonthlyScheduledDaysIsMutable() { + if (!monthlyScheduledDays_.isModifiable()) { + monthlyScheduledDays_ = makeMutableCopy(monthlyScheduledDays_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +         * Specifies days of the month to run report. Range is from 1-31.
    +         * Will ignore days that are not valid for the given month.
    +         * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @return A list containing the monthlyScheduledDays. + */ + public java.util.List getMonthlyScheduledDaysList() { + monthlyScheduledDays_.makeImmutable(); + return monthlyScheduledDays_; + } + + /** + * + * + *
    +         * Specifies days of the month to run report. Range is from 1-31.
    +         * Will ignore days that are not valid for the given month.
    +         * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @return The count of monthlyScheduledDays. + */ + public int getMonthlyScheduledDaysCount() { + return monthlyScheduledDays_.size(); + } + + /** + * + * + *
    +         * Specifies days of the month to run report. Range is from 1-31.
    +         * Will ignore days that are not valid for the given month.
    +         * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @param index The index of the element to return. + * @return The monthlyScheduledDays at the given index. + */ + public int getMonthlyScheduledDays(int index) { + return monthlyScheduledDays_.getInt(index); + } + + /** + * + * + *
    +         * Specifies days of the month to run report. Range is from 1-31.
    +         * Will ignore days that are not valid for the given month.
    +         * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @param index The index to set the value at. + * @param value The monthlyScheduledDays to set. + * @return This builder for chaining. + */ + public Builder setMonthlyScheduledDays(int index, int value) { + + ensureMonthlyScheduledDaysIsMutable(); + monthlyScheduledDays_.setInt(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Specifies days of the month to run report. Range is from 1-31.
    +         * Will ignore days that are not valid for the given month.
    +         * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @param value The monthlyScheduledDays to add. + * @return This builder for chaining. + */ + public Builder addMonthlyScheduledDays(int value) { + + ensureMonthlyScheduledDaysIsMutable(); + monthlyScheduledDays_.addInt(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Specifies days of the month to run report. Range is from 1-31.
    +         * Will ignore days that are not valid for the given month.
    +         * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @param values The monthlyScheduledDays to add. + * @return This builder for chaining. + */ + public Builder addAllMonthlyScheduledDays( + java.lang.Iterable values) { + ensureMonthlyScheduledDaysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monthlyScheduledDays_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Specifies days of the month to run report. Range is from 1-31.
    +         * Will ignore days that are not valid for the given month.
    +         * 
    + * + * repeated int32 monthly_scheduled_days = 1; + * + * @return This builder for chaining. + */ + public Builder clearMonthlyScheduledDays() { + monthlyScheduledDays_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + private static final com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule(); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonthlySchedule 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.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int frequencyScheduleCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object frequencySchedule_; + + public enum FrequencyScheduleCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WEEKLY_SCHEDULE(6), + MONTHLY_SCHEDULE(7), + FREQUENCYSCHEDULE_NOT_SET(0); + private final int value; + + private FrequencyScheduleCase(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 FrequencyScheduleCase valueOf(int value) { + return forNumber(value); + } + + public static FrequencyScheduleCase forNumber(int value) { + switch (value) { + case 6: + return WEEKLY_SCHEDULE; + case 7: + return MONTHLY_SCHEDULE; + case 0: + return FREQUENCYSCHEDULE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FrequencyScheduleCase getFrequencyScheduleCase() { + return FrequencyScheduleCase.forNumber(frequencyScheduleCase_); + } + + public static final int WEEKLY_SCHEDULE_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * Days of week to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + * + * @return Whether the weeklySchedule field is set. + */ + @java.lang.Override + public boolean hasWeeklySchedule() { + return frequencyScheduleCase_ == 6; + } + + /** + * + * + *
    +     * Days of week to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + * + * @return The weeklySchedule. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule getWeeklySchedule() { + if (frequencyScheduleCase_ == 6) { + return (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + frequencySchedule_; + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + .getDefaultInstance(); + } + + /** + * + * + *
    +     * Days of week to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleOrBuilder + getWeeklyScheduleOrBuilder() { + if (frequencyScheduleCase_ == 6) { + return (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + frequencySchedule_; + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + .getDefaultInstance(); + } + + public static final int MONTHLY_SCHEDULE_FIELD_NUMBER = 7; + + /** + * + * + *
    +     * Days of month to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + * + * @return Whether the monthlySchedule field is set. + */ + @java.lang.Override + public boolean hasMonthlySchedule() { + return frequencyScheduleCase_ == 7; + } + + /** + * + * + *
    +     * Days of month to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + * + * @return The monthlySchedule. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + getMonthlySchedule() { + if (frequencyScheduleCase_ == 7) { + return (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + frequencySchedule_; + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + .getDefaultInstance(); + } + + /** + * + * + *
    +     * Days of month to schedule report run.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlyScheduleOrBuilder + getMonthlyScheduleOrBuilder() { + if (frequencyScheduleCase_ == 7) { + return (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + frequencySchedule_; + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + .getDefaultInstance(); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + + /** + * + * + *
    +     * Date for the first run of the report.
    +     * 
    + * + * .google.type.Date start_date = 1; + * + * @return Whether the startDate field is set. + */ + @java.lang.Override + public boolean hasStartDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Date for the first run of the report.
    +     * 
    + * + * .google.type.Date start_date = 1; + * + * @return The startDate. + */ + @java.lang.Override + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + /** + * + * + *
    +     * Date for the first run of the report.
    +     * 
    + * + * .google.type.Date start_date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + + /** + * + * + *
    +     * Date for the final run of the report.
    +     * 
    + * + * .google.type.Date end_date = 2; + * + * @return Whether the endDate field is set. + */ + @java.lang.Override + public boolean hasEndDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Date for the final run of the report.
    +     * 
    + * + * .google.type.Date end_date = 2; + * + * @return The endDate. + */ + @java.lang.Override + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + /** + * + * + *
    +     * Date for the final run of the report.
    +     * 
    + * + * .google.type.Date end_date = 2; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + public static final int FREQUENCY_FIELD_NUMBER = 3; + private int frequency_ = 0; + + /** + * + * + *
    +     * Frequency to run report.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * + * @return The enum numeric value on the wire for frequency. + */ + @java.lang.Override + public int getFrequencyValue() { + return frequency_; + } + + /** + * + * + *
    +     * Frequency to run report.
    +     * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * + * @return The frequency. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency getFrequency() { + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency result = + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency.forNumber(frequency_); + return result == null + ? com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency.UNRECOGNIZED + : result; + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.type.TimeOfDay startTime_; + + /** + * + * + *
    +     * Indicates start time for schedule to run
    +     * Will use the time_zone from `ReportDefinition`. Defaults
    +     * to the publisher's time zone if not specified.
    +     *
    +     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +     * will be the time of day that the first report will run on the first day.
    +     * For example, if the start time is 2:00 PM, and the frequency is
    +     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +     * 2:00 PM, 10:00 PM.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 4; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Indicates start time for schedule to run
    +     * Will use the time_zone from `ReportDefinition`. Defaults
    +     * to the publisher's time zone if not specified.
    +     *
    +     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +     * will be the time of day that the first report will run on the first day.
    +     * For example, if the start time is 2:00 PM, and the frequency is
    +     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +     * 2:00 PM, 10:00 PM.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 4; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getStartTime() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + + /** + * + * + *
    +     * Indicates start time for schedule to run
    +     * Will use the time_zone from `ReportDefinition`. Defaults
    +     * to the publisher's time zone if not specified.
    +     *
    +     * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +     * will be the time of day that the first report will run on the first day.
    +     * For example, if the start time is 2:00 PM, and the frequency is
    +     * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +     * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +     * 2:00 PM, 10:00 PM.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 4; + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + + 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, getStartDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndDate()); + } + if (frequency_ + != com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency.FREQUENCY_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, frequency_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getStartTime()); + } + if (frequencyScheduleCase_ == 6) { + output.writeMessage( + 6, + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + frequencySchedule_); + } + if (frequencyScheduleCase_ == 7) { + output.writeMessage( + 7, + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + frequencySchedule_); + } + 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, getStartDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + if (frequency_ + != com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency.FREQUENCY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, frequency_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (frequencyScheduleCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + frequencySchedule_); + } + if (frequencyScheduleCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + frequencySchedule_); + } + 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.admanager.v1.ScheduleOptions.Schedule)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ScheduleOptions.Schedule other = + (com.google.ads.admanager.v1.ScheduleOptions.Schedule) obj; + + if (hasStartDate() != other.hasStartDate()) return false; + if (hasStartDate()) { + if (!getStartDate().equals(other.getStartDate())) return false; + } + if (hasEndDate() != other.hasEndDate()) return false; + if (hasEndDate()) { + if (!getEndDate().equals(other.getEndDate())) return false; + } + if (frequency_ != other.frequency_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getFrequencyScheduleCase().equals(other.getFrequencyScheduleCase())) return false; + switch (frequencyScheduleCase_) { + case 6: + if (!getWeeklySchedule().equals(other.getWeeklySchedule())) return false; + break; + case 7: + if (!getMonthlySchedule().equals(other.getMonthlySchedule())) 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(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (37 * hash) + FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + frequency_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + switch (frequencyScheduleCase_) { + case 6: + hash = (37 * hash) + WEEKLY_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getWeeklySchedule().hashCode(); + break; + case 7: + hash = (37 * hash) + MONTHLY_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getMonthlySchedule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule 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.admanager.v1.ScheduleOptions.Schedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule 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.admanager.v1.ScheduleOptions.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.ScheduleOptions.Schedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * The schedule for the report
    +     * 
    + * + * Protobuf type {@code google.ads.admanager.v1.ScheduleOptions.Schedule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ScheduleOptions.Schedule) + com.google.ads.admanager.v1.ScheduleOptions.ScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.class, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ScheduleOptions.Schedule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartDateFieldBuilder(); + getEndDateFieldBuilder(); + getStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (weeklyScheduleBuilder_ != null) { + weeklyScheduleBuilder_.clear(); + } + if (monthlyScheduleBuilder_ != null) { + monthlyScheduleBuilder_.clear(); + } + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + frequency_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + frequencyScheduleCase_ = 0; + frequencySchedule_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ReportMessagesProto + .internal_static_google_ads_admanager_v1_ScheduleOptions_Schedule_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule build() { + com.google.ads.admanager.v1.ScheduleOptions.Schedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule buildPartial() { + com.google.ads.admanager.v1.ScheduleOptions.Schedule result = + new com.google.ads.admanager.v1.ScheduleOptions.Schedule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ScheduleOptions.Schedule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.frequency_ = frequency_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.ads.admanager.v1.ScheduleOptions.Schedule result) { + result.frequencyScheduleCase_ = frequencyScheduleCase_; + result.frequencySchedule_ = this.frequencySchedule_; + if (frequencyScheduleCase_ == 6 && weeklyScheduleBuilder_ != null) { + result.frequencySchedule_ = weeklyScheduleBuilder_.build(); + } + if (frequencyScheduleCase_ == 7 && monthlyScheduleBuilder_ != null) { + result.frequencySchedule_ = monthlyScheduleBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ScheduleOptions.Schedule) { + return mergeFrom((com.google.ads.admanager.v1.ScheduleOptions.Schedule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ScheduleOptions.Schedule other) { + if (other == com.google.ads.admanager.v1.ScheduleOptions.Schedule.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + if (other.frequency_ != 0) { + setFrequencyValue(other.getFrequencyValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + switch (other.getFrequencyScheduleCase()) { + case WEEKLY_SCHEDULE: + { + mergeWeeklySchedule(other.getWeeklySchedule()); + break; + } + case MONTHLY_SCHEDULE: + { + mergeMonthlySchedule(other.getMonthlySchedule()); + break; + } + case FREQUENCYSCHEDULE_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: + { + input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getEndDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 24: + { + frequency_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 24 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 50: + { + input.readMessage( + getWeeklyScheduleFieldBuilder().getBuilder(), extensionRegistry); + frequencyScheduleCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getMonthlyScheduleFieldBuilder().getBuilder(), extensionRegistry); + frequencyScheduleCase_ = 7; + break; + } // case 58 + 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 frequencyScheduleCase_ = 0; + private java.lang.Object frequencySchedule_; + + public FrequencyScheduleCase getFrequencyScheduleCase() { + return FrequencyScheduleCase.forNumber(frequencyScheduleCase_); + } + + public Builder clearFrequencySchedule() { + frequencyScheduleCase_ = 0; + frequencySchedule_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.Builder, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleOrBuilder> + weeklyScheduleBuilder_; + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + * + * @return Whether the weeklySchedule field is set. + */ + @java.lang.Override + public boolean hasWeeklySchedule() { + return frequencyScheduleCase_ == 6; + } + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + * + * @return The weeklySchedule. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + getWeeklySchedule() { + if (weeklyScheduleBuilder_ == null) { + if (frequencyScheduleCase_ == 6) { + return (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + frequencySchedule_; + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + .getDefaultInstance(); + } else { + if (frequencyScheduleCase_ == 6) { + return weeklyScheduleBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + */ + public Builder setWeeklySchedule( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule value) { + if (weeklyScheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + frequencySchedule_ = value; + onChanged(); + } else { + weeklyScheduleBuilder_.setMessage(value); + } + frequencyScheduleCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + */ + public Builder setWeeklySchedule( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.Builder + builderForValue) { + if (weeklyScheduleBuilder_ == null) { + frequencySchedule_ = builderForValue.build(); + onChanged(); + } else { + weeklyScheduleBuilder_.setMessage(builderForValue.build()); + } + frequencyScheduleCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + */ + public Builder mergeWeeklySchedule( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule value) { + if (weeklyScheduleBuilder_ == null) { + if (frequencyScheduleCase_ == 6 + && frequencySchedule_ + != com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + .getDefaultInstance()) { + frequencySchedule_ = + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.newBuilder( + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + frequencySchedule_) + .mergeFrom(value) + .buildPartial(); + } else { + frequencySchedule_ = value; + } + onChanged(); + } else { + if (frequencyScheduleCase_ == 6) { + weeklyScheduleBuilder_.mergeFrom(value); + } else { + weeklyScheduleBuilder_.setMessage(value); + } + } + frequencyScheduleCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + */ + public Builder clearWeeklySchedule() { + if (weeklyScheduleBuilder_ == null) { + if (frequencyScheduleCase_ == 6) { + frequencyScheduleCase_ = 0; + frequencySchedule_ = null; + onChanged(); + } + } else { + if (frequencyScheduleCase_ == 6) { + frequencyScheduleCase_ = 0; + frequencySchedule_ = null; + } + weeklyScheduleBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + */ + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.Builder + getWeeklyScheduleBuilder() { + return getWeeklyScheduleFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleOrBuilder + getWeeklyScheduleOrBuilder() { + if ((frequencyScheduleCase_ == 6) && (weeklyScheduleBuilder_ != null)) { + return weeklyScheduleBuilder_.getMessageOrBuilder(); + } else { + if (frequencyScheduleCase_ == 6) { + return (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + frequencySchedule_; + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Days of week to schedule report run.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule weekly_schedule = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.Builder, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleOrBuilder> + getWeeklyScheduleFieldBuilder() { + if (weeklyScheduleBuilder_ == null) { + if (!(frequencyScheduleCase_ == 6)) { + frequencySchedule_ = + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule + .getDefaultInstance(); + } + weeklyScheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule.Builder, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleOrBuilder>( + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklySchedule) + frequencySchedule_, + getParentForChildren(), + isClean()); + frequencySchedule_ = null; + } + frequencyScheduleCase_ = 6; + onChanged(); + return weeklyScheduleBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.Builder, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlyScheduleOrBuilder> + monthlyScheduleBuilder_; + + /** + * + * + *
    +       * Days of month to schedule report run.
    +       * 
    + * + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + * + * @return Whether the monthlySchedule field is set. + */ + @java.lang.Override + public boolean hasMonthlySchedule() { + return frequencyScheduleCase_ == 7; + } + + /** + * + * + *
    +       * Days of month to schedule report run.
    +       * 
    + * + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + * + * @return The monthlySchedule. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + getMonthlySchedule() { + if (monthlyScheduleBuilder_ == null) { + if (frequencyScheduleCase_ == 7) { + return (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + frequencySchedule_; + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + .getDefaultInstance(); + } else { + if (frequencyScheduleCase_ == 7) { + return monthlyScheduleBuilder_.getMessage(); + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Days of month to schedule report run.
    +       * 
    + * + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + */ + public Builder setMonthlySchedule( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule value) { + if (monthlyScheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + frequencySchedule_ = value; + onChanged(); + } else { + monthlyScheduleBuilder_.setMessage(value); + } + frequencyScheduleCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Days of month to schedule report run.
    +       * 
    + * + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + */ + public Builder setMonthlySchedule( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.Builder + builderForValue) { + if (monthlyScheduleBuilder_ == null) { + frequencySchedule_ = builderForValue.build(); + onChanged(); + } else { + monthlyScheduleBuilder_.setMessage(builderForValue.build()); + } + frequencyScheduleCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Days of month to schedule report run.
    +       * 
    + * + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + */ + public Builder mergeMonthlySchedule( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule value) { + if (monthlyScheduleBuilder_ == null) { + if (frequencyScheduleCase_ == 7 + && frequencySchedule_ + != com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + .getDefaultInstance()) { + frequencySchedule_ = + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.newBuilder( + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + frequencySchedule_) + .mergeFrom(value) + .buildPartial(); + } else { + frequencySchedule_ = value; + } + onChanged(); + } else { + if (frequencyScheduleCase_ == 7) { + monthlyScheduleBuilder_.mergeFrom(value); + } else { + monthlyScheduleBuilder_.setMessage(value); + } + } + frequencyScheduleCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Days of month to schedule report run.
    +       * 
    + * + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + */ + public Builder clearMonthlySchedule() { + if (monthlyScheduleBuilder_ == null) { + if (frequencyScheduleCase_ == 7) { + frequencyScheduleCase_ = 0; + frequencySchedule_ = null; + onChanged(); + } + } else { + if (frequencyScheduleCase_ == 7) { + frequencyScheduleCase_ = 0; + frequencySchedule_ = null; + } + monthlyScheduleBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Days of month to schedule report run.
    +       * 
    + * + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + */ + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.Builder + getMonthlyScheduleBuilder() { + return getMonthlyScheduleFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Days of month to schedule report run.
    +       * 
    + * + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlyScheduleOrBuilder + getMonthlyScheduleOrBuilder() { + if ((frequencyScheduleCase_ == 7) && (monthlyScheduleBuilder_ != null)) { + return monthlyScheduleBuilder_.getMessageOrBuilder(); + } else { + if (frequencyScheduleCase_ == 7) { + return (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + frequencySchedule_; + } + return com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Days of month to schedule report run.
    +       * 
    + * + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule monthly_schedule = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.Builder, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlyScheduleOrBuilder> + getMonthlyScheduleFieldBuilder() { + if (monthlyScheduleBuilder_ == null) { + if (!(frequencyScheduleCase_ == 7)) { + frequencySchedule_ = + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule + .getDefaultInstance(); + } + monthlyScheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule.Builder, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlyScheduleOrBuilder>( + (com.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlySchedule) + frequencySchedule_, + getParentForChildren(), + isClean()); + frequencySchedule_ = null; + } + frequencyScheduleCase_ = 7; + onChanged(); + return monthlyScheduleBuilder_; + } + + private com.google.type.Date startDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + + /** + * + * + *
    +       * Date for the first run of the report.
    +       * 
    + * + * .google.type.Date start_date = 1; + * + * @return Whether the startDate field is set. + */ + public boolean hasStartDate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +       * Date for the first run of the report.
    +       * 
    + * + * .google.type.Date start_date = 1; + * + * @return The startDate. + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Date for the first run of the report.
    +       * 
    + * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + } else { + startDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Date for the first run of the report.
    +       * 
    + * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Date for the first run of the report.
    +       * 
    + * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startDate_ != null + && startDate_ != com.google.type.Date.getDefaultInstance()) { + getStartDateBuilder().mergeFrom(value); + } else { + startDate_ = value; + } + } else { + startDateBuilder_.mergeFrom(value); + } + if (startDate_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Date for the first run of the report.
    +       * 
    + * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + bitField0_ = (bitField0_ & ~0x00000004); + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Date for the first run of the report.
    +       * 
    + * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Date for the first run of the report.
    +       * 
    + * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + + /** + * + * + *
    +       * Date for the first run of the report.
    +       * 
    + * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, + com.google.type.Date.Builder, + com.google.type.DateOrBuilder>(getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + + /** + * + * + *
    +       * Date for the final run of the report.
    +       * 
    + * + * .google.type.Date end_date = 2; + * + * @return Whether the endDate field is set. + */ + public boolean hasEndDate() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +       * Date for the final run of the report.
    +       * 
    + * + * .google.type.Date end_date = 2; + * + * @return The endDate. + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Date for the final run of the report.
    +       * 
    + * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + } else { + endDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Date for the final run of the report.
    +       * 
    + * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Date for the final run of the report.
    +       * 
    + * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && endDate_ != null + && endDate_ != com.google.type.Date.getDefaultInstance()) { + getEndDateBuilder().mergeFrom(value); + } else { + endDate_ = value; + } + } else { + endDateBuilder_.mergeFrom(value); + } + if (endDate_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Date for the final run of the report.
    +       * 
    + * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + bitField0_ = (bitField0_ & ~0x00000008); + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Date for the final run of the report.
    +       * 
    + * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Date for the final run of the report.
    +       * 
    + * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + + /** + * + * + *
    +       * Date for the final run of the report.
    +       * 
    + * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, + com.google.type.Date.Builder, + com.google.type.DateOrBuilder>(getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + private int frequency_ = 0; + + /** + * + * + *
    +       * Frequency to run report.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * + * @return The enum numeric value on the wire for frequency. + */ + @java.lang.Override + public int getFrequencyValue() { + return frequency_; + } + + /** + * + * + *
    +       * Frequency to run report.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * + * @param value The enum numeric value on the wire for frequency to set. + * @return This builder for chaining. + */ + public Builder setFrequencyValue(int value) { + frequency_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Frequency to run report.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * + * @return The frequency. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency getFrequency() { + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency result = + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency.forNumber(frequency_); + return result == null + ? com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Frequency to run report.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * + * @param value The frequency to set. + * @return This builder for chaining. + */ + public Builder setFrequency( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + frequency_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Frequency to run report.
    +       * 
    + * + * .google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency frequency = 3; + * + * @return This builder for chaining. + */ + public Builder clearFrequency() { + bitField0_ = (bitField0_ & ~0x00000010); + frequency_ = 0; + onChanged(); + return this; + } + + private com.google.type.TimeOfDay startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; + + /** + * + * + *
    +       * Indicates start time for schedule to run
    +       * Will use the time_zone from `ReportDefinition`. Defaults
    +       * to the publisher's time zone if not specified.
    +       *
    +       * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +       * will be the time of day that the first report will run on the first day.
    +       * For example, if the start time is 2:00 PM, and the frequency is
    +       * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +       * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +       * 2:00 PM, 10:00 PM.
    +       * 
    + * + * .google.type.TimeOfDay start_time = 4; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +       * Indicates start time for schedule to run
    +       * Will use the time_zone from `ReportDefinition`. Defaults
    +       * to the publisher's time zone if not specified.
    +       *
    +       * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +       * will be the time of day that the first report will run on the first day.
    +       * For example, if the start time is 2:00 PM, and the frequency is
    +       * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +       * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +       * 2:00 PM, 10:00 PM.
    +       * 
    + * + * .google.type.TimeOfDay start_time = 4; + * + * @return The startTime. + */ + public com.google.type.TimeOfDay getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Indicates start time for schedule to run
    +       * Will use the time_zone from `ReportDefinition`. Defaults
    +       * to the publisher's time zone if not specified.
    +       *
    +       * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +       * will be the time of day that the first report will run on the first day.
    +       * For example, if the start time is 2:00 PM, and the frequency is
    +       * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +       * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +       * 2:00 PM, 10:00 PM.
    +       * 
    + * + * .google.type.TimeOfDay start_time = 4; + */ + public Builder setStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Indicates start time for schedule to run
    +       * Will use the time_zone from `ReportDefinition`. Defaults
    +       * to the publisher's time zone if not specified.
    +       *
    +       * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +       * will be the time of day that the first report will run on the first day.
    +       * For example, if the start time is 2:00 PM, and the frequency is
    +       * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +       * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +       * 2:00 PM, 10:00 PM.
    +       * 
    + * + * .google.type.TimeOfDay start_time = 4; + */ + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Indicates start time for schedule to run
    +       * Will use the time_zone from `ReportDefinition`. Defaults
    +       * to the publisher's time zone if not specified.
    +       *
    +       * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +       * will be the time of day that the first report will run on the first day.
    +       * For example, if the start time is 2:00 PM, and the frequency is
    +       * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +       * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +       * 2:00 PM, 10:00 PM.
    +       * 
    + * + * .google.type.TimeOfDay start_time = 4; + */ + public Builder mergeStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && startTime_ != null + && startTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Indicates start time for schedule to run
    +       * Will use the time_zone from `ReportDefinition`. Defaults
    +       * to the publisher's time zone if not specified.
    +       *
    +       * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +       * will be the time of day that the first report will run on the first day.
    +       * For example, if the start time is 2:00 PM, and the frequency is
    +       * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +       * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +       * 2:00 PM, 10:00 PM.
    +       * 
    + * + * .google.type.TimeOfDay start_time = 4; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Indicates start time for schedule to run
    +       * Will use the time_zone from `ReportDefinition`. Defaults
    +       * to the publisher's time zone if not specified.
    +       *
    +       * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +       * will be the time of day that the first report will run on the first day.
    +       * For example, if the start time is 2:00 PM, and the frequency is
    +       * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +       * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +       * 2:00 PM, 10:00 PM.
    +       * 
    + * + * .google.type.TimeOfDay start_time = 4; + */ + public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Indicates start time for schedule to run
    +       * Will use the time_zone from `ReportDefinition`. Defaults
    +       * to the publisher's time zone if not specified.
    +       *
    +       * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +       * will be the time of day that the first report will run on the first day.
    +       * For example, if the start time is 2:00 PM, and the frequency is
    +       * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +       * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +       * 2:00 PM, 10:00 PM.
    +       * 
    + * + * .google.type.TimeOfDay start_time = 4; + */ + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
    +       * Indicates start time for schedule to run
    +       * Will use the time_zone from `ReportDefinition`. Defaults
    +       * to the publisher's time zone if not specified.
    +       *
    +       * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    +       * will be the time of day that the first report will run on the first day.
    +       * For example, if the start time is 2:00 PM, and the frequency is
    +       * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    +       * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    +       * 2:00 PM, 10:00 PM.
    +       * 
    + * + * .google.type.TimeOfDay start_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ScheduleOptions.Schedule) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ScheduleOptions.Schedule) + private static final com.google.ads.admanager.v1.ScheduleOptions.Schedule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ScheduleOptions.Schedule(); + } + + public static com.google.ads.admanager.v1.ScheduleOptions.Schedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule 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.admanager.v1.ScheduleOptions.Schedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int SCHEDULE_FIELD_NUMBER = 1; - private com.google.ads.admanager.v1.Schedule schedule_; + private com.google.ads.admanager.v1.ScheduleOptions.Schedule schedule_; /** * @@ -238,7 +4765,7 @@ private DeliveryCondition(int value) { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; * * @return Whether the schedule field is set. */ @@ -254,14 +4781,14 @@ public boolean hasSchedule() { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; * * @return The schedule. */ @java.lang.Override - public com.google.ads.admanager.v1.Schedule getSchedule() { + public com.google.ads.admanager.v1.ScheduleOptions.Schedule getSchedule() { return schedule_ == null - ? com.google.ads.admanager.v1.Schedule.getDefaultInstance() + ? com.google.ads.admanager.v1.ScheduleOptions.Schedule.getDefaultInstance() : schedule_; } @@ -272,12 +4799,12 @@ public com.google.ads.admanager.v1.Schedule getSchedule() { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ @java.lang.Override - public com.google.ads.admanager.v1.ScheduleOrBuilder getScheduleOrBuilder() { + public com.google.ads.admanager.v1.ScheduleOptions.ScheduleOrBuilder getScheduleOrBuilder() { return schedule_ == null - ? com.google.ads.admanager.v1.Schedule.getDefaultInstance() + ? com.google.ads.admanager.v1.ScheduleOptions.Schedule.getDefaultInstance() : schedule_; } @@ -323,7 +4850,7 @@ public com.google.ads.admanager.v1.ScheduleOptions.DeliveryCondition getDelivery public static final int FLAGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private java.util.List flags_; + private java.util.List flags_; /** * @@ -334,11 +4861,11 @@ public com.google.ads.admanager.v1.ScheduleOptions.DeliveryCondition getDelivery * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public java.util.List getFlagsList() { + public java.util.List getFlagsList() { return flags_; } @@ -351,11 +4878,11 @@ public java.util.List getFlagsList() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public java.util.List + public java.util.List getFlagsOrBuilderList() { return flags_; } @@ -369,7 +4896,7 @@ public java.util.List getFlagsList() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -386,11 +4913,11 @@ public int getFlagsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.Flag getFlags(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Flag getFlags(int index) { return flags_.get(index); } @@ -403,11 +4930,11 @@ public com.google.ads.admanager.v1.Report.Flag getFlags(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder getFlagsOrBuilder(int index) { return flags_.get(index); } @@ -838,9 +5365,10 @@ public Builder mergeFrom( } // case 16 case 26: { - com.google.ads.admanager.v1.Report.Flag m = + com.google.ads.admanager.v1.ReportDefinition.Flag m = input.readMessage( - com.google.ads.admanager.v1.Report.Flag.parser(), extensionRegistry); + com.google.ads.admanager.v1.ReportDefinition.Flag.parser(), + extensionRegistry); if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(m); @@ -868,11 +5396,11 @@ public Builder mergeFrom( private int bitField0_; - private com.google.ads.admanager.v1.Schedule schedule_; + private com.google.ads.admanager.v1.ScheduleOptions.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Schedule, - com.google.ads.admanager.v1.Schedule.Builder, - com.google.ads.admanager.v1.ScheduleOrBuilder> + com.google.ads.admanager.v1.ScheduleOptions.Schedule, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Builder, + com.google.ads.admanager.v1.ScheduleOptions.ScheduleOrBuilder> scheduleBuilder_; /** @@ -882,7 +5410,7 @@ public Builder mergeFrom( * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; * * @return Whether the schedule field is set. */ @@ -897,14 +5425,14 @@ public boolean hasSchedule() { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; * * @return The schedule. */ - public com.google.ads.admanager.v1.Schedule getSchedule() { + public com.google.ads.admanager.v1.ScheduleOptions.Schedule getSchedule() { if (scheduleBuilder_ == null) { return schedule_ == null - ? com.google.ads.admanager.v1.Schedule.getDefaultInstance() + ? com.google.ads.admanager.v1.ScheduleOptions.Schedule.getDefaultInstance() : schedule_; } else { return scheduleBuilder_.getMessage(); @@ -918,9 +5446,9 @@ public com.google.ads.admanager.v1.Schedule getSchedule() { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ - public Builder setSchedule(com.google.ads.admanager.v1.Schedule value) { + public Builder setSchedule(com.google.ads.admanager.v1.ScheduleOptions.Schedule value) { if (scheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -941,9 +5469,10 @@ public Builder setSchedule(com.google.ads.admanager.v1.Schedule value) { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ - public Builder setSchedule(com.google.ads.admanager.v1.Schedule.Builder builderForValue) { + public Builder setSchedule( + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Builder builderForValue) { if (scheduleBuilder_ == null) { schedule_ = builderForValue.build(); } else { @@ -961,13 +5490,14 @@ public Builder setSchedule(com.google.ads.admanager.v1.Schedule.Builder builderF * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ - public Builder mergeSchedule(com.google.ads.admanager.v1.Schedule value) { + public Builder mergeSchedule(com.google.ads.admanager.v1.ScheduleOptions.Schedule value) { if (scheduleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && schedule_ != null - && schedule_ != com.google.ads.admanager.v1.Schedule.getDefaultInstance()) { + && schedule_ + != com.google.ads.admanager.v1.ScheduleOptions.Schedule.getDefaultInstance()) { getScheduleBuilder().mergeFrom(value); } else { schedule_ = value; @@ -989,7 +5519,7 @@ public Builder mergeSchedule(com.google.ads.admanager.v1.Schedule value) { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ public Builder clearSchedule() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1009,9 +5539,9 @@ public Builder clearSchedule() { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ - public com.google.ads.admanager.v1.Schedule.Builder getScheduleBuilder() { + public com.google.ads.admanager.v1.ScheduleOptions.Schedule.Builder getScheduleBuilder() { bitField0_ |= 0x00000001; onChanged(); return getScheduleFieldBuilder().getBuilder(); @@ -1024,14 +5554,14 @@ public com.google.ads.admanager.v1.Schedule.Builder getScheduleBuilder() { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ - public com.google.ads.admanager.v1.ScheduleOrBuilder getScheduleOrBuilder() { + public com.google.ads.admanager.v1.ScheduleOptions.ScheduleOrBuilder getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { return schedule_ == null - ? com.google.ads.admanager.v1.Schedule.getDefaultInstance() + ? com.google.ads.admanager.v1.ScheduleOptions.Schedule.getDefaultInstance() : schedule_; } } @@ -1043,19 +5573,19 @@ public com.google.ads.admanager.v1.ScheduleOrBuilder getScheduleOrBuilder() { * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Schedule, - com.google.ads.admanager.v1.Schedule.Builder, - com.google.ads.admanager.v1.ScheduleOrBuilder> + com.google.ads.admanager.v1.ScheduleOptions.Schedule, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Builder, + com.google.ads.admanager.v1.ScheduleOptions.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.Schedule, - com.google.ads.admanager.v1.Schedule.Builder, - com.google.ads.admanager.v1.ScheduleOrBuilder>( + com.google.ads.admanager.v1.ScheduleOptions.Schedule, + com.google.ads.admanager.v1.ScheduleOptions.Schedule.Builder, + com.google.ads.admanager.v1.ScheduleOptions.ScheduleOrBuilder>( getSchedule(), getParentForChildren(), isClean()); schedule_ = null; } @@ -1166,20 +5696,20 @@ public Builder clearDeliveryCondition() { return this; } - private java.util.List flags_ = + private java.util.List flags_ = java.util.Collections.emptyList(); private void ensureFlagsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - flags_ = new java.util.ArrayList(flags_); + flags_ = new java.util.ArrayList(flags_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Flag, - com.google.ads.admanager.v1.Report.Flag.Builder, - com.google.ads.admanager.v1.Report.FlagOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.Flag, + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder, + com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder> flagsBuilder_; /** @@ -1191,10 +5721,10 @@ private void ensureFlagsIsMutable() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List getFlagsList() { + public java.util.List getFlagsList() { if (flagsBuilder_ == null) { return java.util.Collections.unmodifiableList(flags_); } else { @@ -1211,7 +5741,7 @@ public java.util.List getFlagsList() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getFlagsCount() { @@ -1231,10 +5761,10 @@ public int getFlagsCount() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Flag getFlags(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Flag getFlags(int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { @@ -1251,10 +5781,10 @@ public com.google.ads.admanager.v1.Report.Flag getFlags(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setFlags(int index, com.google.ads.admanager.v1.Report.Flag value) { + public Builder setFlags(int index, com.google.ads.admanager.v1.ReportDefinition.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1277,11 +5807,11 @@ public Builder setFlags(int index, com.google.ads.admanager.v1.Report.Flag value * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setFlags( - int index, com.google.ads.admanager.v1.Report.Flag.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDefinition.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.set(index, builderForValue.build()); @@ -1301,10 +5831,10 @@ public Builder setFlags( * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addFlags(com.google.ads.admanager.v1.Report.Flag value) { + public Builder addFlags(com.google.ads.admanager.v1.ReportDefinition.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1327,10 +5857,10 @@ public Builder addFlags(com.google.ads.admanager.v1.Report.Flag value) { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addFlags(int index, com.google.ads.admanager.v1.Report.Flag value) { + public Builder addFlags(int index, com.google.ads.admanager.v1.ReportDefinition.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1353,10 +5883,11 @@ public Builder addFlags(int index, com.google.ads.admanager.v1.Report.Flag value * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addFlags(com.google.ads.admanager.v1.Report.Flag.Builder builderForValue) { + public Builder addFlags( + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(builderForValue.build()); @@ -1376,11 +5907,11 @@ public Builder addFlags(com.google.ads.admanager.v1.Report.Flag.Builder builderF * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addFlags( - int index, com.google.ads.admanager.v1.Report.Flag.Builder builderForValue) { + int index, com.google.ads.admanager.v1.ReportDefinition.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(index, builderForValue.build()); @@ -1400,11 +5931,11 @@ public Builder addFlags( * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllFlags( - java.lang.Iterable values) { + java.lang.Iterable values) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, flags_); @@ -1424,7 +5955,7 @@ public Builder addAllFlags( * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearFlags() { @@ -1447,7 +5978,7 @@ public Builder clearFlags() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeFlags(int index) { @@ -1470,10 +6001,10 @@ public Builder removeFlags(int index) { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Flag.Builder getFlagsBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Flag.Builder getFlagsBuilder(int index) { return getFlagsFieldBuilder().getBuilder(index); } @@ -1486,10 +6017,10 @@ public com.google.ads.admanager.v1.Report.Flag.Builder getFlagsBuilder(int index * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder getFlagsOrBuilder(int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { @@ -1506,10 +6037,10 @@ public com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int in * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List + public java.util.List getFlagsOrBuilderList() { if (flagsBuilder_ != null) { return flagsBuilder_.getMessageOrBuilderList(); @@ -1527,12 +6058,12 @@ public com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int in * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Flag.Builder addFlagsBuilder() { + public com.google.ads.admanager.v1.ReportDefinition.Flag.Builder addFlagsBuilder() { return getFlagsFieldBuilder() - .addBuilder(com.google.ads.admanager.v1.Report.Flag.getDefaultInstance()); + .addBuilder(com.google.ads.admanager.v1.ReportDefinition.Flag.getDefaultInstance()); } /** @@ -1544,12 +6075,13 @@ public com.google.ads.admanager.v1.Report.Flag.Builder addFlagsBuilder() { * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.Report.Flag.Builder addFlagsBuilder(int index) { + public com.google.ads.admanager.v1.ReportDefinition.Flag.Builder addFlagsBuilder(int index) { return getFlagsFieldBuilder() - .addBuilder(index, com.google.ads.admanager.v1.Report.Flag.getDefaultInstance()); + .addBuilder( + index, com.google.ads.admanager.v1.ReportDefinition.Flag.getDefaultInstance()); } /** @@ -1561,24 +6093,25 @@ public com.google.ads.admanager.v1.Report.Flag.Builder addFlagsBuilder(int index * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List getFlagsBuilderList() { + public java.util.List + getFlagsBuilderList() { return getFlagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Flag, - com.google.ads.admanager.v1.Report.Flag.Builder, - com.google.ads.admanager.v1.Report.FlagOrBuilder> + com.google.ads.admanager.v1.ReportDefinition.Flag, + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder, + com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder> getFlagsFieldBuilder() { if (flagsBuilder_ == null) { flagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.admanager.v1.Report.Flag, - com.google.ads.admanager.v1.Report.Flag.Builder, - com.google.ads.admanager.v1.Report.FlagOrBuilder>( + com.google.ads.admanager.v1.ReportDefinition.Flag, + com.google.ads.admanager.v1.ReportDefinition.Flag.Builder, + com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder>( flags_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); flags_ = null; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptionsOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptionsOrBuilder.java index 545c3c0c7479..91263846d3c5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptionsOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptionsOrBuilder.java @@ -31,7 +31,7 @@ public interface ScheduleOptionsOrBuilder * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; * * @return Whether the schedule field is set. */ @@ -44,11 +44,11 @@ public interface ScheduleOptionsOrBuilder * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; * * @return The schedule. */ - com.google.ads.admanager.v1.Schedule getSchedule(); + com.google.ads.admanager.v1.ScheduleOptions.Schedule getSchedule(); /** * @@ -57,9 +57,9 @@ public interface ScheduleOptionsOrBuilder * Information pertaining to schedule itself. * * - * .google.ads.admanager.v1.Schedule schedule = 1; + * .google.ads.admanager.v1.ScheduleOptions.Schedule schedule = 1; */ - com.google.ads.admanager.v1.ScheduleOrBuilder getScheduleOrBuilder(); + com.google.ads.admanager.v1.ScheduleOptions.ScheduleOrBuilder getScheduleOrBuilder(); /** * @@ -96,10 +96,10 @@ public interface ScheduleOptionsOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List getFlagsList(); + java.util.List getFlagsList(); /** * @@ -110,10 +110,10 @@ public interface ScheduleOptionsOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.ads.admanager.v1.Report.Flag getFlags(int index); + com.google.ads.admanager.v1.ReportDefinition.Flag getFlags(int index); /** * @@ -124,7 +124,7 @@ public interface ScheduleOptionsOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ int getFlagsCount(); @@ -138,10 +138,10 @@ public interface ScheduleOptionsOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List + java.util.List getFlagsOrBuilderList(); /** @@ -153,8 +153,8 @@ public interface ScheduleOptionsOrBuilder * * * - * repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.ads.admanager.v1.ReportDefinition.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.ads.admanager.v1.Report.FlagOrBuilder getFlagsOrBuilder(int index); + com.google.ads.admanager.v1.ReportDefinition.FlagOrBuilder getFlagsOrBuilder(int index); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOrBuilder.java deleted file mode 100644 index ca46afb27cf3..000000000000 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOrBuilder.java +++ /dev/null @@ -1,266 +0,0 @@ -/* - * Copyright 2025 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! -// source: google/ads/admanager/v1/report_messages.proto - -// Protobuf Java Version: 3.25.8 -package com.google.ads.admanager.v1; - -public interface ScheduleOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Schedule) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -   * Days of week to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - * - * @return Whether the weeklySchedule field is set. - */ - boolean hasWeeklySchedule(); - - /** - * - * - *
    -   * Days of week to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - * - * @return The weeklySchedule. - */ - com.google.ads.admanager.v1.Schedule.WeeklySchedule getWeeklySchedule(); - - /** - * - * - *
    -   * Days of week to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - */ - com.google.ads.admanager.v1.Schedule.WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder(); - - /** - * - * - *
    -   * Days of month to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - * - * @return Whether the monthlySchedule field is set. - */ - boolean hasMonthlySchedule(); - - /** - * - * - *
    -   * Days of month to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - * - * @return The monthlySchedule. - */ - com.google.ads.admanager.v1.Schedule.MonthlySchedule getMonthlySchedule(); - - /** - * - * - *
    -   * Days of month to schedule report run.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - */ - com.google.ads.admanager.v1.Schedule.MonthlyScheduleOrBuilder getMonthlyScheduleOrBuilder(); - - /** - * - * - *
    -   * Date for the first run of the report.
    -   * 
    - * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - boolean hasStartDate(); - - /** - * - * - *
    -   * Date for the first run of the report.
    -   * 
    - * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - com.google.type.Date getStartDate(); - - /** - * - * - *
    -   * Date for the first run of the report.
    -   * 
    - * - * .google.type.Date start_date = 1; - */ - com.google.type.DateOrBuilder getStartDateOrBuilder(); - - /** - * - * - *
    -   * Date for the final run of the report.
    -   * 
    - * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - boolean hasEndDate(); - - /** - * - * - *
    -   * Date for the final run of the report.
    -   * 
    - * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - com.google.type.Date getEndDate(); - - /** - * - * - *
    -   * Date for the final run of the report.
    -   * 
    - * - * .google.type.Date end_date = 2; - */ - com.google.type.DateOrBuilder getEndDateOrBuilder(); - - /** - * - * - *
    -   * Frequency to run report.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * - * @return The enum numeric value on the wire for frequency. - */ - int getFrequencyValue(); - - /** - * - * - *
    -   * Frequency to run report.
    -   * 
    - * - * .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * - * @return The frequency. - */ - com.google.ads.admanager.v1.Schedule.Frequency getFrequency(); - - /** - * - * - *
    -   * Indicates start time for schedule to run
    -   * Will use the time_zone from `ReportDefinition`. Defaults
    -   * to the publisher's time zone if not specified.
    -   *
    -   * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -   * will be the time of day that the first report will run on the first day.
    -   * For example, if the start time is 2:00 PM, and the frequency is
    -   * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -   * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -   * 2:00 PM, 10:00 PM.
    -   * 
    - * - * .google.type.TimeOfDay start_time = 4; - * - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - - /** - * - * - *
    -   * Indicates start time for schedule to run
    -   * Will use the time_zone from `ReportDefinition`. Defaults
    -   * to the publisher's time zone if not specified.
    -   *
    -   * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -   * will be the time of day that the first report will run on the first day.
    -   * For example, if the start time is 2:00 PM, and the frequency is
    -   * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -   * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -   * 2:00 PM, 10:00 PM.
    -   * 
    - * - * .google.type.TimeOfDay start_time = 4; - * - * @return The startTime. - */ - com.google.type.TimeOfDay getStartTime(); - - /** - * - * - *
    -   * Indicates start time for schedule to run
    -   * Will use the time_zone from `ReportDefinition`. Defaults
    -   * to the publisher's time zone if not specified.
    -   *
    -   * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this
    -   * will be the time of day that the first report will run on the first day.
    -   * For example, if the start time is 2:00 PM, and the frequency is
    -   * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM,
    -   * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM,
    -   * 2:00 PM, 10:00 PM.
    -   * 
    - * - * .google.type.TimeOfDay start_time = 4; - */ - com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); - - com.google.ads.admanager.v1.Schedule.FrequencyScheduleCase getFrequencyScheduleCase(); -} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequest.java new file mode 100644 index 000000000000..affa06fe5b58 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequest.java @@ -0,0 +1,2471 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `SearchAdReviewCenterAds` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.SearchAdReviewCenterAdsRequest} + */ +public final class SearchAdReviewCenterAdsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.SearchAdReviewCenterAdsRequest) + SearchAdReviewCenterAdsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SearchAdReviewCenterAdsRequest.newBuilder() to construct. + private SearchAdReviewCenterAdsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchAdReviewCenterAdsRequest() { + parent_ = ""; + pageToken_ = ""; + status_ = 0; + adReviewCenterAdId_ = com.google.protobuf.LazyStringArrayList.emptyList(); + searchText_ = com.google.protobuf.LazyStringArrayList.emptyList(); + buyerAccountId_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchAdReviewCenterAdsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest.class, + com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * 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. The maximum number of AdReviewCenterAds to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * AdReviewCenterAds will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * 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 page token to fetch the next page of AdReviewCenterAds. This
    +   * is the value returned from a previous Search request, or empty.
    +   * 
    + * + * 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 page token to fetch the next page of AdReviewCenterAds. This
    +   * is the value returned from a previous Search request, or empty.
    +   * 
    + * + * 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 STATUS_FIELD_NUMBER = 4; + private int status_ = 0; + + /** + * + * + *
    +   * Required. Only return ads with the given status.
    +   * 
    + * + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +   * Required. Only return ads with the given status.
    +   * 
    + * + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus getStatus() { + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus result = + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus.UNRECOGNIZED + : result; + } + + public static final int AD_REVIEW_CENTER_AD_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList adReviewCenterAdId_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +   * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the adReviewCenterAdId. + */ + public com.google.protobuf.ProtocolStringList getAdReviewCenterAdIdList() { + return adReviewCenterAdId_; + } + + /** + * + * + *
    +   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +   * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of adReviewCenterAdId. + */ + public int getAdReviewCenterAdIdCount() { + return adReviewCenterAdId_.size(); + } + + /** + * + * + *
    +   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +   * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The adReviewCenterAdId at the given index. + */ + public java.lang.String getAdReviewCenterAdId(int index) { + return adReviewCenterAdId_.get(index); + } + + /** + * + * + *
    +   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +   * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the adReviewCenterAdId at the given index. + */ + public com.google.protobuf.ByteString getAdReviewCenterAdIdBytes(int index) { + return adReviewCenterAdId_.getByteString(index); + } + + public static final int DATE_TIME_RANGE_FIELD_NUMBER = 6; + private com.google.type.Interval dateTimeRange_; + + /** + * + * + *
    +   * Optional. If provided, only return ads that served within the given date
    +   * range (inclusive). The  date range must be within the last 30 days. If not
    +   * provided, the date range will be the last 30 days.
    +   * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dateTimeRange field is set. + */ + @java.lang.Override + public boolean hasDateTimeRange() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. If provided, only return ads that served within the given date
    +   * range (inclusive). The  date range must be within the last 30 days. If not
    +   * provided, the date range will be the last 30 days.
    +   * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dateTimeRange. + */ + @java.lang.Override + public com.google.type.Interval getDateTimeRange() { + return dateTimeRange_ == null ? com.google.type.Interval.getDefaultInstance() : dateTimeRange_; + } + + /** + * + * + *
    +   * Optional. If provided, only return ads that served within the given date
    +   * range (inclusive). The  date range must be within the last 30 days. If not
    +   * provided, the date range will be the last 30 days.
    +   * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getDateTimeRangeOrBuilder() { + return dateTimeRange_ == null ? com.google.type.Interval.getDefaultInstance() : dateTimeRange_; + } + + public static final int SEARCH_TEXT_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList searchText_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +   * with the text (including any text on the ad or in the destination URL). If
    +   * more than one value is provided, the search will combine them in a logical
    +   * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +   * and "blue", but not an ad that only contains "car".
    +   * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the searchText. + */ + public com.google.protobuf.ProtocolStringList getSearchTextList() { + return searchText_; + } + + /** + * + * + *
    +   * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +   * with the text (including any text on the ad or in the destination URL). If
    +   * more than one value is provided, the search will combine them in a logical
    +   * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +   * and "blue", but not an ad that only contains "car".
    +   * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of searchText. + */ + public int getSearchTextCount() { + return searchText_.size(); + } + + /** + * + * + *
    +   * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +   * with the text (including any text on the ad or in the destination URL). If
    +   * more than one value is provided, the search will combine them in a logical
    +   * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +   * and "blue", but not an ad that only contains "car".
    +   * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The searchText at the given index. + */ + public java.lang.String getSearchText(int index) { + return searchText_.get(index); + } + + /** + * + * + *
    +   * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +   * with the text (including any text on the ad or in the destination URL). If
    +   * more than one value is provided, the search will combine them in a logical
    +   * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +   * and "blue", but not an ad that only contains "car".
    +   * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the searchText at the given index. + */ + public com.google.protobuf.ByteString getSearchTextBytes(int index) { + return searchText_.getByteString(index); + } + + public static final int BUYER_ACCOUNT_ID_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList buyerAccountId_ = emptyLongList(); + + /** + * + * + *
    +   * Optional. If provided, restrict the search to creatives belonging to one of
    +   * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +   * buyer account IDs can be found via the ProgrammaticBuyerService.
    +   * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the buyerAccountId. + */ + @java.lang.Override + public java.util.List getBuyerAccountIdList() { + return buyerAccountId_; + } + + /** + * + * + *
    +   * Optional. If provided, restrict the search to creatives belonging to one of
    +   * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +   * buyer account IDs can be found via the ProgrammaticBuyerService.
    +   * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of buyerAccountId. + */ + public int getBuyerAccountIdCount() { + return buyerAccountId_.size(); + } + + /** + * + * + *
    +   * Optional. If provided, restrict the search to creatives belonging to one of
    +   * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +   * buyer account IDs can be found via the ProgrammaticBuyerService.
    +   * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The buyerAccountId at the given index. + */ + public long getBuyerAccountId(int index) { + return buyerAccountId_.getLong(index); + } + + private int buyerAccountIdMemoizedSerializedSize = -1; + + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (status_ + != com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus + .AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, status_); + } + for (int i = 0; i < adReviewCenterAdId_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, adReviewCenterAdId_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getDateTimeRange()); + } + for (int i = 0; i < searchText_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, searchText_.getRaw(i)); + } + if (getBuyerAccountIdList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(buyerAccountIdMemoizedSerializedSize); + } + for (int i = 0; i < buyerAccountId_.size(); i++) { + output.writeInt64NoTag(buyerAccountId_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (status_ + != com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus + .AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, status_); + } + { + int dataSize = 0; + for (int i = 0; i < adReviewCenterAdId_.size(); i++) { + dataSize += computeStringSizeNoTag(adReviewCenterAdId_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdReviewCenterAdIdList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDateTimeRange()); + } + { + int dataSize = 0; + for (int i = 0; i < searchText_.size(); i++) { + dataSize += computeStringSizeNoTag(searchText_.getRaw(i)); + } + size += dataSize; + size += 1 * getSearchTextList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < buyerAccountId_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(buyerAccountId_.getLong(i)); + } + size += dataSize; + if (!getBuyerAccountIdList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + buyerAccountIdMemoizedSerializedSize = dataSize; + } + 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.admanager.v1.SearchAdReviewCenterAdsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest other = + (com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (status_ != other.status_) return false; + if (!getAdReviewCenterAdIdList().equals(other.getAdReviewCenterAdIdList())) return false; + if (hasDateTimeRange() != other.hasDateTimeRange()) return false; + if (hasDateTimeRange()) { + if (!getDateTimeRange().equals(other.getDateTimeRange())) return false; + } + if (!getSearchTextList().equals(other.getSearchTextList())) return false; + if (!getBuyerAccountIdList().equals(other.getBuyerAccountIdList())) 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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (getAdReviewCenterAdIdCount() > 0) { + hash = (37 * hash) + AD_REVIEW_CENTER_AD_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdReviewCenterAdIdList().hashCode(); + } + if (hasDateTimeRange()) { + hash = (37 * hash) + DATE_TIME_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getDateTimeRange().hashCode(); + } + if (getSearchTextCount() > 0) { + hash = (37 * hash) + SEARCH_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getSearchTextList().hashCode(); + } + if (getBuyerAccountIdCount() > 0) { + hash = (37 * hash) + BUYER_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getBuyerAccountIdList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest 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.admanager.v1.SearchAdReviewCenterAdsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest 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.admanager.v1.SearchAdReviewCenterAdsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `SearchAdReviewCenterAds` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.SearchAdReviewCenterAdsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.SearchAdReviewCenterAdsRequest) + com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest.class, + com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateTimeRangeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + status_ = 0; + adReviewCenterAdId_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dateTimeRange_ = null; + if (dateTimeRangeBuilder_ != null) { + dateTimeRangeBuilder_.dispose(); + dateTimeRangeBuilder_ = null; + } + searchText_ = com.google.protobuf.LazyStringArrayList.emptyList(); + buyerAccountId_ = emptyLongList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest build() { + com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest buildPartial() { + com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest result = + new com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest 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.status_ = status_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + adReviewCenterAdId_.makeImmutable(); + result.adReviewCenterAdId_ = adReviewCenterAdId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dateTimeRange_ = + dateTimeRangeBuilder_ == null ? dateTimeRange_ : dateTimeRangeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + searchText_.makeImmutable(); + result.searchText_ = searchText_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + buyerAccountId_.makeImmutable(); + result.buyerAccountId_ = buyerAccountId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest) { + return mergeFrom((com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest other) { + if (other == com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest.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.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.adReviewCenterAdId_.isEmpty()) { + if (adReviewCenterAdId_.isEmpty()) { + adReviewCenterAdId_ = other.adReviewCenterAdId_; + bitField0_ |= 0x00000010; + } else { + ensureAdReviewCenterAdIdIsMutable(); + adReviewCenterAdId_.addAll(other.adReviewCenterAdId_); + } + onChanged(); + } + if (other.hasDateTimeRange()) { + mergeDateTimeRange(other.getDateTimeRange()); + } + if (!other.searchText_.isEmpty()) { + if (searchText_.isEmpty()) { + searchText_ = other.searchText_; + bitField0_ |= 0x00000040; + } else { + ensureSearchTextIsMutable(); + searchText_.addAll(other.searchText_); + } + onChanged(); + } + if (!other.buyerAccountId_.isEmpty()) { + if (buyerAccountId_.isEmpty()) { + buyerAccountId_ = other.buyerAccountId_; + buyerAccountId_.makeImmutable(); + bitField0_ |= 0x00000080; + } else { + ensureBuyerAccountIdIsMutable(); + buyerAccountId_.addAll(other.buyerAccountId_); + } + 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: + { + 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: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAdReviewCenterAdIdIsMutable(); + adReviewCenterAdId_.add(s); + break; + } // case 42 + case 50: + { + input.readMessage(getDateTimeRangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSearchTextIsMutable(); + searchText_.add(s); + break; + } // case 58 + case 64: + { + long v = input.readInt64(); + ensureBuyerAccountIdIsMutable(); + buyerAccountId_.addLong(v); + break; + } // case 64 + case 66: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBuyerAccountIdIsMutable(); + while (input.getBytesUntilLimit() > 0) { + buyerAccountId_.addLong(input.readInt64()); + } + input.popLimit(limit); + 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 java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The parent, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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, which owns this collection of AdReviewCenterAds.
    +     * Format: networks/{network_code}/webProperties/{web_property_code}
    +     *
    +     * Since a network can only have a single web property of each
    +     * `ExchangeSyndicationProduct`, you can use the
    +     * `ExchangeSyndicationProduct` as an alias for the web property code:
    +     *
    +     * `networks/{network_code}/webProperties/display`
    +     *
    +     * `networks/{network_code}/webProperties/videoAndAudio`
    +     *
    +     * `networks/{network_code}/webProperties/mobileApp`
    +     *
    +     * `networks/{network_code}/webProperties/games`
    +     * 
    + * + * + * 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. The maximum number of AdReviewCenterAds to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * AdReviewCenterAds will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of AdReviewCenterAds to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * AdReviewCenterAds will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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. The maximum number of AdReviewCenterAds to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * AdReviewCenterAds will be returned. The maximum value is 1000; values
    +     * greater than 1000 will be coerced to 1000.
    +     * 
    + * + * 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 page token to fetch the next page of AdReviewCenterAds. This
    +     * is the value returned from a previous Search request, or empty.
    +     * 
    + * + * 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 page token to fetch the next page of AdReviewCenterAds. This
    +     * is the value returned from a previous Search request, or empty.
    +     * 
    + * + * 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 page token to fetch the next page of AdReviewCenterAds. This
    +     * is the value returned from a previous Search request, or empty.
    +     * 
    + * + * 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 page token to fetch the next page of AdReviewCenterAds. This
    +     * is the value returned from a previous Search request, or empty.
    +     * 
    + * + * 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 page token to fetch the next page of AdReviewCenterAds. This
    +     * is the value returned from a previous Search request, or empty.
    +     * 
    + * + * 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 int status_ = 0; + + /** + * + * + *
    +     * Required. Only return ads with the given status.
    +     * 
    + * + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +     * Required. Only return ads with the given status.
    +     * 
    + * + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Only return ads with the given status.
    +     * 
    + * + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus + getStatus() { + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus result = + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus.forNumber( + status_); + return result == null + ? com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Required. Only return ads with the given status.
    +     * 
    + * + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Only return ads with the given status.
    +     * 
    + * + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList adReviewCenterAdId_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAdReviewCenterAdIdIsMutable() { + if (!adReviewCenterAdId_.isModifiable()) { + adReviewCenterAdId_ = new com.google.protobuf.LazyStringArrayList(adReviewCenterAdId_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +     * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the adReviewCenterAdId. + */ + public com.google.protobuf.ProtocolStringList getAdReviewCenterAdIdList() { + adReviewCenterAdId_.makeImmutable(); + return adReviewCenterAdId_; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +     * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of adReviewCenterAdId. + */ + public int getAdReviewCenterAdIdCount() { + return adReviewCenterAdId_.size(); + } + + /** + * + * + *
    +     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +     * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The adReviewCenterAdId at the given index. + */ + public java.lang.String getAdReviewCenterAdId(int index) { + return adReviewCenterAdId_.get(index); + } + + /** + * + * + *
    +     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +     * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the adReviewCenterAdId at the given index. + */ + public com.google.protobuf.ByteString getAdReviewCenterAdIdBytes(int index) { + return adReviewCenterAdId_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +     * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The adReviewCenterAdId to set. + * @return This builder for chaining. + */ + public Builder setAdReviewCenterAdId(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdReviewCenterAdIdIsMutable(); + adReviewCenterAdId_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +     * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The adReviewCenterAdId to add. + * @return This builder for chaining. + */ + public Builder addAdReviewCenterAdId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdReviewCenterAdIdIsMutable(); + adReviewCenterAdId_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +     * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The adReviewCenterAdId to add. + * @return This builder for chaining. + */ + public Builder addAllAdReviewCenterAdId(java.lang.Iterable values) { + ensureAdReviewCenterAdIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adReviewCenterAdId_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +     * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdReviewCenterAdId() { + adReviewCenterAdId_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +     * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the adReviewCenterAdId to add. + * @return This builder for chaining. + */ + public Builder addAdReviewCenterAdIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdReviewCenterAdIdIsMutable(); + adReviewCenterAdId_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.type.Interval dateTimeRange_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + dateTimeRangeBuilder_; + + /** + * + * + *
    +     * Optional. If provided, only return ads that served within the given date
    +     * range (inclusive). The  date range must be within the last 30 days. If not
    +     * provided, the date range will be the last 30 days.
    +     * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dateTimeRange field is set. + */ + public boolean hasDateTimeRange() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. If provided, only return ads that served within the given date
    +     * range (inclusive). The  date range must be within the last 30 days. If not
    +     * provided, the date range will be the last 30 days.
    +     * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dateTimeRange. + */ + public com.google.type.Interval getDateTimeRange() { + if (dateTimeRangeBuilder_ == null) { + return dateTimeRange_ == null + ? com.google.type.Interval.getDefaultInstance() + : dateTimeRange_; + } else { + return dateTimeRangeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. If provided, only return ads that served within the given date
    +     * range (inclusive). The  date range must be within the last 30 days. If not
    +     * provided, the date range will be the last 30 days.
    +     * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDateTimeRange(com.google.type.Interval value) { + if (dateTimeRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dateTimeRange_ = value; + } else { + dateTimeRangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads that served within the given date
    +     * range (inclusive). The  date range must be within the last 30 days. If not
    +     * provided, the date range will be the last 30 days.
    +     * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDateTimeRange(com.google.type.Interval.Builder builderForValue) { + if (dateTimeRangeBuilder_ == null) { + dateTimeRange_ = builderForValue.build(); + } else { + dateTimeRangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads that served within the given date
    +     * range (inclusive). The  date range must be within the last 30 days. If not
    +     * provided, the date range will be the last 30 days.
    +     * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDateTimeRange(com.google.type.Interval value) { + if (dateTimeRangeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && dateTimeRange_ != null + && dateTimeRange_ != com.google.type.Interval.getDefaultInstance()) { + getDateTimeRangeBuilder().mergeFrom(value); + } else { + dateTimeRange_ = value; + } + } else { + dateTimeRangeBuilder_.mergeFrom(value); + } + if (dateTimeRange_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads that served within the given date
    +     * range (inclusive). The  date range must be within the last 30 days. If not
    +     * provided, the date range will be the last 30 days.
    +     * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDateTimeRange() { + bitField0_ = (bitField0_ & ~0x00000020); + dateTimeRange_ = null; + if (dateTimeRangeBuilder_ != null) { + dateTimeRangeBuilder_.dispose(); + dateTimeRangeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, only return ads that served within the given date
    +     * range (inclusive). The  date range must be within the last 30 days. If not
    +     * provided, the date range will be the last 30 days.
    +     * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.Interval.Builder getDateTimeRangeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDateTimeRangeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. If provided, only return ads that served within the given date
    +     * range (inclusive). The  date range must be within the last 30 days. If not
    +     * provided, the date range will be the last 30 days.
    +     * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.IntervalOrBuilder getDateTimeRangeOrBuilder() { + if (dateTimeRangeBuilder_ != null) { + return dateTimeRangeBuilder_.getMessageOrBuilder(); + } else { + return dateTimeRange_ == null + ? com.google.type.Interval.getDefaultInstance() + : dateTimeRange_; + } + } + + /** + * + * + *
    +     * Optional. If provided, only return ads that served within the given date
    +     * range (inclusive). The  date range must be within the last 30 days. If not
    +     * provided, the date range will be the last 30 days.
    +     * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + getDateTimeRangeFieldBuilder() { + if (dateTimeRangeBuilder_ == null) { + dateTimeRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getDateTimeRange(), getParentForChildren(), isClean()); + dateTimeRange_ = null; + } + return dateTimeRangeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList searchText_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSearchTextIsMutable() { + if (!searchText_.isModifiable()) { + searchText_ = new com.google.protobuf.LazyStringArrayList(searchText_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +     * with the text (including any text on the ad or in the destination URL). If
    +     * more than one value is provided, the search will combine them in a logical
    +     * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +     * and "blue", but not an ad that only contains "car".
    +     * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the searchText. + */ + public com.google.protobuf.ProtocolStringList getSearchTextList() { + searchText_.makeImmutable(); + return searchText_; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +     * with the text (including any text on the ad or in the destination URL). If
    +     * more than one value is provided, the search will combine them in a logical
    +     * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +     * and "blue", but not an ad that only contains "car".
    +     * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of searchText. + */ + public int getSearchTextCount() { + return searchText_.size(); + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +     * with the text (including any text on the ad or in the destination URL). If
    +     * more than one value is provided, the search will combine them in a logical
    +     * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +     * and "blue", but not an ad that only contains "car".
    +     * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The searchText at the given index. + */ + public java.lang.String getSearchText(int index) { + return searchText_.get(index); + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +     * with the text (including any text on the ad or in the destination URL). If
    +     * more than one value is provided, the search will combine them in a logical
    +     * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +     * and "blue", but not an ad that only contains "car".
    +     * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the searchText at the given index. + */ + public com.google.protobuf.ByteString getSearchTextBytes(int index) { + return searchText_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +     * with the text (including any text on the ad or in the destination URL). If
    +     * more than one value is provided, the search will combine them in a logical
    +     * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +     * and "blue", but not an ad that only contains "car".
    +     * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The searchText to set. + * @return This builder for chaining. + */ + public Builder setSearchText(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchTextIsMutable(); + searchText_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +     * with the text (including any text on the ad or in the destination URL). If
    +     * more than one value is provided, the search will combine them in a logical
    +     * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +     * and "blue", but not an ad that only contains "car".
    +     * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The searchText to add. + * @return This builder for chaining. + */ + public Builder addSearchText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchTextIsMutable(); + searchText_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +     * with the text (including any text on the ad or in the destination URL). If
    +     * more than one value is provided, the search will combine them in a logical
    +     * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +     * and "blue", but not an ad that only contains "car".
    +     * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The searchText to add. + * @return This builder for chaining. + */ + public Builder addAllSearchText(java.lang.Iterable values) { + ensureSearchTextIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchText_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +     * with the text (including any text on the ad or in the destination URL). If
    +     * more than one value is provided, the search will combine them in a logical
    +     * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +     * and "blue", but not an ad that only contains "car".
    +     * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSearchText() { + searchText_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +     * with the text (including any text on the ad or in the destination URL). If
    +     * more than one value is provided, the search will combine them in a logical
    +     * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +     * and "blue", but not an ad that only contains "car".
    +     * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the searchText to add. + * @return This builder for chaining. + */ + public Builder addSearchTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSearchTextIsMutable(); + searchText_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList buyerAccountId_ = emptyLongList(); + + private void ensureBuyerAccountIdIsMutable() { + if (!buyerAccountId_.isModifiable()) { + buyerAccountId_ = makeMutableCopy(buyerAccountId_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to creatives belonging to one of
    +     * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +     * buyer account IDs can be found via the ProgrammaticBuyerService.
    +     * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the buyerAccountId. + */ + public java.util.List getBuyerAccountIdList() { + buyerAccountId_.makeImmutable(); + return buyerAccountId_; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to creatives belonging to one of
    +     * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +     * buyer account IDs can be found via the ProgrammaticBuyerService.
    +     * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of buyerAccountId. + */ + public int getBuyerAccountIdCount() { + return buyerAccountId_.size(); + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to creatives belonging to one of
    +     * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +     * buyer account IDs can be found via the ProgrammaticBuyerService.
    +     * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The buyerAccountId at the given index. + */ + public long getBuyerAccountId(int index) { + return buyerAccountId_.getLong(index); + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to creatives belonging to one of
    +     * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +     * buyer account IDs can be found via the ProgrammaticBuyerService.
    +     * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The buyerAccountId to set. + * @return This builder for chaining. + */ + public Builder setBuyerAccountId(int index, long value) { + + ensureBuyerAccountIdIsMutable(); + buyerAccountId_.setLong(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to creatives belonging to one of
    +     * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +     * buyer account IDs can be found via the ProgrammaticBuyerService.
    +     * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The buyerAccountId to add. + * @return This builder for chaining. + */ + public Builder addBuyerAccountId(long value) { + + ensureBuyerAccountIdIsMutable(); + buyerAccountId_.addLong(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to creatives belonging to one of
    +     * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +     * buyer account IDs can be found via the ProgrammaticBuyerService.
    +     * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The buyerAccountId to add. + * @return This builder for chaining. + */ + public Builder addAllBuyerAccountId(java.lang.Iterable values) { + ensureBuyerAccountIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buyerAccountId_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If provided, restrict the search to creatives belonging to one of
    +     * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +     * buyer account IDs can be found via the ProgrammaticBuyerService.
    +     * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBuyerAccountId() { + buyerAccountId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.SearchAdReviewCenterAdsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.SearchAdReviewCenterAdsRequest) + private static final com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest(); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAdReviewCenterAdsRequest 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.admanager.v1.SearchAdReviewCenterAdsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequestOrBuilder.java new file mode 100644 index 000000000000..4aa24e3d9cbc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequestOrBuilder.java @@ -0,0 +1,376 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface SearchAdReviewCenterAdsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.SearchAdReviewCenterAdsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent, which owns this collection of AdReviewCenterAds.
    +   * Format: networks/{network_code}/webProperties/{web_property_code}
    +   *
    +   * Since a network can only have a single web property of each
    +   * `ExchangeSyndicationProduct`, you can use the
    +   * `ExchangeSyndicationProduct` as an alias for the web property code:
    +   *
    +   * `networks/{network_code}/webProperties/display`
    +   *
    +   * `networks/{network_code}/webProperties/videoAndAudio`
    +   *
    +   * `networks/{network_code}/webProperties/mobileApp`
    +   *
    +   * `networks/{network_code}/webProperties/games`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of AdReviewCenterAds to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * AdReviewCenterAds will be returned. The maximum value is 1000; values
    +   * greater than 1000 will be coerced to 1000.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. The page token to fetch the next page of AdReviewCenterAds. This
    +   * is the value returned from a previous Search request, or empty.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. The page token to fetch the next page of AdReviewCenterAds. This
    +   * is the value returned from a previous Search request, or empty.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Required. Only return ads with the given status.
    +   * 
    + * + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
    +   * Required. Only return ads with the given status.
    +   * 
    + * + * + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The status. + */ + com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus getStatus(); + + /** + * + * + *
    +   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +   * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the adReviewCenterAdId. + */ + java.util.List getAdReviewCenterAdIdList(); + + /** + * + * + *
    +   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +   * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of adReviewCenterAdId. + */ + int getAdReviewCenterAdIdCount(); + + /** + * + * + *
    +   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +   * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The adReviewCenterAdId at the given index. + */ + java.lang.String getAdReviewCenterAdId(int index); + + /** + * + * + *
    +   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
    +   * 
    + * + * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the adReviewCenterAdId at the given index. + */ + com.google.protobuf.ByteString getAdReviewCenterAdIdBytes(int index); + + /** + * + * + *
    +   * Optional. If provided, only return ads that served within the given date
    +   * range (inclusive). The  date range must be within the last 30 days. If not
    +   * provided, the date range will be the last 30 days.
    +   * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dateTimeRange field is set. + */ + boolean hasDateTimeRange(); + + /** + * + * + *
    +   * Optional. If provided, only return ads that served within the given date
    +   * range (inclusive). The  date range must be within the last 30 days. If not
    +   * provided, the date range will be the last 30 days.
    +   * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dateTimeRange. + */ + com.google.type.Interval getDateTimeRange(); + + /** + * + * + *
    +   * Optional. If provided, only return ads that served within the given date
    +   * range (inclusive). The  date range must be within the last 30 days. If not
    +   * provided, the date range will be the last 30 days.
    +   * 
    + * + * .google.type.Interval date_time_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.type.IntervalOrBuilder getDateTimeRangeOrBuilder(); + + /** + * + * + *
    +   * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +   * with the text (including any text on the ad or in the destination URL). If
    +   * more than one value is provided, the search will combine them in a logical
    +   * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +   * and "blue", but not an ad that only contains "car".
    +   * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the searchText. + */ + java.util.List getSearchTextList(); + + /** + * + * + *
    +   * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +   * with the text (including any text on the ad or in the destination URL). If
    +   * more than one value is provided, the search will combine them in a logical
    +   * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +   * and "blue", but not an ad that only contains "car".
    +   * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of searchText. + */ + int getSearchTextCount(); + + /** + * + * + *
    +   * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +   * with the text (including any text on the ad or in the destination URL). If
    +   * more than one value is provided, the search will combine them in a logical
    +   * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +   * and "blue", but not an ad that only contains "car".
    +   * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The searchText at the given index. + */ + java.lang.String getSearchText(int index); + + /** + * + * + *
    +   * Optional. If provided, restrict the search to AdReviewCenterAds associated
    +   * with the text (including any text on the ad or in the destination URL). If
    +   * more than one value is provided, the search will combine them in a logical
    +   * AND. For example, ['car', 'blue'] will match ads that contain both "car"
    +   * and "blue", but not an ad that only contains "car".
    +   * 
    + * + * repeated string search_text = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the searchText at the given index. + */ + com.google.protobuf.ByteString getSearchTextBytes(int index); + + /** + * + * + *
    +   * Optional. If provided, restrict the search to creatives belonging to one of
    +   * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +   * buyer account IDs can be found via the ProgrammaticBuyerService.
    +   * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the buyerAccountId. + */ + java.util.List getBuyerAccountIdList(); + + /** + * + * + *
    +   * Optional. If provided, restrict the search to creatives belonging to one of
    +   * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +   * buyer account IDs can be found via the ProgrammaticBuyerService.
    +   * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of buyerAccountId. + */ + int getBuyerAccountIdCount(); + + /** + * + * + *
    +   * Optional. If provided, restrict the search to creatives belonging to one of
    +   * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
    +   * buyer account IDs can be found via the ProgrammaticBuyerService.
    +   * 
    + * + * repeated int64 buyer_account_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The buyerAccountId at the given index. + */ + long getBuyerAccountId(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsResponse.java new file mode 100644 index 000000000000..66cb1d920827 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsResponse.java @@ -0,0 +1,1171 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Response object for `SearchAdReviewCenterAds` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.SearchAdReviewCenterAdsResponse} + */ +public final class SearchAdReviewCenterAdsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.SearchAdReviewCenterAdsResponse) + SearchAdReviewCenterAdsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SearchAdReviewCenterAdsResponse.newBuilder() to construct. + private SearchAdReviewCenterAdsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchAdReviewCenterAdsResponse() { + adReviewCenterAds_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchAdReviewCenterAdsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse.class, + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse.Builder.class); + } + + public static final int AD_REVIEW_CENTER_ADS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List adReviewCenterAds_; + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + @java.lang.Override + public java.util.List getAdReviewCenterAdsList() { + return adReviewCenterAds_; + } + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + @java.lang.Override + public java.util.List + getAdReviewCenterAdsOrBuilderList() { + return adReviewCenterAds_; + } + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + @java.lang.Override + public int getAdReviewCenterAdsCount() { + return adReviewCenterAds_.size(); + } + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAd getAdReviewCenterAds(int index) { + return adReviewCenterAds_.get(index); + } + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdReviewCenterAdOrBuilder getAdReviewCenterAdsOrBuilder( + int index) { + return adReviewCenterAds_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + 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 < adReviewCenterAds_.size(); i++) { + output.writeMessage(1, adReviewCenterAds_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < adReviewCenterAds_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, adReviewCenterAds_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admanager.v1.SearchAdReviewCenterAdsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse other = + (com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse) obj; + + if (!getAdReviewCenterAdsList().equals(other.getAdReviewCenterAdsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAdReviewCenterAdsCount() > 0) { + hash = (37 * hash) + AD_REVIEW_CENTER_ADS_FIELD_NUMBER; + hash = (53 * hash) + getAdReviewCenterAdsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse 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.admanager.v1.SearchAdReviewCenterAdsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse 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.admanager.v1.SearchAdReviewCenterAdsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response object for `SearchAdReviewCenterAds` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.SearchAdReviewCenterAdsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.SearchAdReviewCenterAdsResponse) + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse.class, + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (adReviewCenterAdsBuilder_ == null) { + adReviewCenterAds_ = java.util.Collections.emptyList(); + } else { + adReviewCenterAds_ = null; + adReviewCenterAdsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdReviewCenterAdServiceProto + .internal_static_google_ads_admanager_v1_SearchAdReviewCenterAdsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse build() { + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse buildPartial() { + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse result = + new com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse result) { + if (adReviewCenterAdsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + adReviewCenterAds_ = java.util.Collections.unmodifiableList(adReviewCenterAds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.adReviewCenterAds_ = adReviewCenterAds_; + } else { + result.adReviewCenterAds_ = adReviewCenterAdsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse) { + return mergeFrom((com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse other) { + if (other == com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse.getDefaultInstance()) + return this; + if (adReviewCenterAdsBuilder_ == null) { + if (!other.adReviewCenterAds_.isEmpty()) { + if (adReviewCenterAds_.isEmpty()) { + adReviewCenterAds_ = other.adReviewCenterAds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdReviewCenterAdsIsMutable(); + adReviewCenterAds_.addAll(other.adReviewCenterAds_); + } + onChanged(); + } + } else { + if (!other.adReviewCenterAds_.isEmpty()) { + if (adReviewCenterAdsBuilder_.isEmpty()) { + adReviewCenterAdsBuilder_.dispose(); + adReviewCenterAdsBuilder_ = null; + adReviewCenterAds_ = other.adReviewCenterAds_; + bitField0_ = (bitField0_ & ~0x00000001); + adReviewCenterAdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdReviewCenterAdsFieldBuilder() + : null; + } else { + adReviewCenterAdsBuilder_.addAllMessages(other.adReviewCenterAds_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.ads.admanager.v1.AdReviewCenterAd m = + input.readMessage( + com.google.ads.admanager.v1.AdReviewCenterAd.parser(), extensionRegistry); + if (adReviewCenterAdsBuilder_ == null) { + ensureAdReviewCenterAdsIsMutable(); + adReviewCenterAds_.add(m); + } else { + adReviewCenterAdsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List adReviewCenterAds_ = + java.util.Collections.emptyList(); + + private void ensureAdReviewCenterAdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + adReviewCenterAds_ = + new java.util.ArrayList( + adReviewCenterAds_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdReviewCenterAd, + com.google.ads.admanager.v1.AdReviewCenterAd.Builder, + com.google.ads.admanager.v1.AdReviewCenterAdOrBuilder> + adReviewCenterAdsBuilder_; + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public java.util.List getAdReviewCenterAdsList() { + if (adReviewCenterAdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(adReviewCenterAds_); + } else { + return adReviewCenterAdsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public int getAdReviewCenterAdsCount() { + if (adReviewCenterAdsBuilder_ == null) { + return adReviewCenterAds_.size(); + } else { + return adReviewCenterAdsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public com.google.ads.admanager.v1.AdReviewCenterAd getAdReviewCenterAds(int index) { + if (adReviewCenterAdsBuilder_ == null) { + return adReviewCenterAds_.get(index); + } else { + return adReviewCenterAdsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public Builder setAdReviewCenterAds( + int index, com.google.ads.admanager.v1.AdReviewCenterAd value) { + if (adReviewCenterAdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdReviewCenterAdsIsMutable(); + adReviewCenterAds_.set(index, value); + onChanged(); + } else { + adReviewCenterAdsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public Builder setAdReviewCenterAds( + int index, com.google.ads.admanager.v1.AdReviewCenterAd.Builder builderForValue) { + if (adReviewCenterAdsBuilder_ == null) { + ensureAdReviewCenterAdsIsMutable(); + adReviewCenterAds_.set(index, builderForValue.build()); + onChanged(); + } else { + adReviewCenterAdsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public Builder addAdReviewCenterAds(com.google.ads.admanager.v1.AdReviewCenterAd value) { + if (adReviewCenterAdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdReviewCenterAdsIsMutable(); + adReviewCenterAds_.add(value); + onChanged(); + } else { + adReviewCenterAdsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public Builder addAdReviewCenterAds( + int index, com.google.ads.admanager.v1.AdReviewCenterAd value) { + if (adReviewCenterAdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdReviewCenterAdsIsMutable(); + adReviewCenterAds_.add(index, value); + onChanged(); + } else { + adReviewCenterAdsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public Builder addAdReviewCenterAds( + com.google.ads.admanager.v1.AdReviewCenterAd.Builder builderForValue) { + if (adReviewCenterAdsBuilder_ == null) { + ensureAdReviewCenterAdsIsMutable(); + adReviewCenterAds_.add(builderForValue.build()); + onChanged(); + } else { + adReviewCenterAdsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public Builder addAdReviewCenterAds( + int index, com.google.ads.admanager.v1.AdReviewCenterAd.Builder builderForValue) { + if (adReviewCenterAdsBuilder_ == null) { + ensureAdReviewCenterAdsIsMutable(); + adReviewCenterAds_.add(index, builderForValue.build()); + onChanged(); + } else { + adReviewCenterAdsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public Builder addAllAdReviewCenterAds( + java.lang.Iterable values) { + if (adReviewCenterAdsBuilder_ == null) { + ensureAdReviewCenterAdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adReviewCenterAds_); + onChanged(); + } else { + adReviewCenterAdsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public Builder clearAdReviewCenterAds() { + if (adReviewCenterAdsBuilder_ == null) { + adReviewCenterAds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + adReviewCenterAdsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public Builder removeAdReviewCenterAds(int index) { + if (adReviewCenterAdsBuilder_ == null) { + ensureAdReviewCenterAdsIsMutable(); + adReviewCenterAds_.remove(index); + onChanged(); + } else { + adReviewCenterAdsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public com.google.ads.admanager.v1.AdReviewCenterAd.Builder getAdReviewCenterAdsBuilder( + int index) { + return getAdReviewCenterAdsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public com.google.ads.admanager.v1.AdReviewCenterAdOrBuilder getAdReviewCenterAdsOrBuilder( + int index) { + if (adReviewCenterAdsBuilder_ == null) { + return adReviewCenterAds_.get(index); + } else { + return adReviewCenterAdsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public java.util.List + getAdReviewCenterAdsOrBuilderList() { + if (adReviewCenterAdsBuilder_ != null) { + return adReviewCenterAdsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(adReviewCenterAds_); + } + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public com.google.ads.admanager.v1.AdReviewCenterAd.Builder addAdReviewCenterAdsBuilder() { + return getAdReviewCenterAdsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.AdReviewCenterAd.getDefaultInstance()); + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public com.google.ads.admanager.v1.AdReviewCenterAd.Builder addAdReviewCenterAdsBuilder( + int index) { + return getAdReviewCenterAdsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.AdReviewCenterAd.getDefaultInstance()); + } + + /** + * + * + *
    +     * The AdReviewCenterAds that match the search request.
    +     * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + public java.util.List + getAdReviewCenterAdsBuilderList() { + return getAdReviewCenterAdsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdReviewCenterAd, + com.google.ads.admanager.v1.AdReviewCenterAd.Builder, + com.google.ads.admanager.v1.AdReviewCenterAdOrBuilder> + getAdReviewCenterAdsFieldBuilder() { + if (adReviewCenterAdsBuilder_ == null) { + adReviewCenterAdsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdReviewCenterAd, + com.google.ads.admanager.v1.AdReviewCenterAd.Builder, + com.google.ads.admanager.v1.AdReviewCenterAdOrBuilder>( + adReviewCenterAds_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + adReviewCenterAds_ = null; + } + return adReviewCenterAdsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.SearchAdReviewCenterAdsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.SearchAdReviewCenterAdsResponse) + private static final com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse(); + } + + public static com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAdReviewCenterAdsResponse 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.admanager.v1.SearchAdReviewCenterAdsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsResponseOrBuilder.java new file mode 100644 index 000000000000..2c381fdb643c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/ad_review_center_ad_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface SearchAdReviewCenterAdsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.SearchAdReviewCenterAdsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + java.util.List getAdReviewCenterAdsList(); + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + com.google.ads.admanager.v1.AdReviewCenterAd getAdReviewCenterAds(int index); + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + int getAdReviewCenterAdsCount(); + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + java.util.List + getAdReviewCenterAdsOrBuilderList(); + + /** + * + * + *
    +   * The AdReviewCenterAds that match the search request.
    +   * 
    + * + * repeated .google.ads.admanager.v1.AdReviewCenterAd ad_review_center_ads = 1; + */ + com.google.ads.admanager.v1.AdReviewCenterAdOrBuilder getAdReviewCenterAdsOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Site.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Site.java new file mode 100644 index 000000000000..1e2f5f94cee9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Site.java @@ -0,0 +1,2246 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * A Site represents a domain owned or represented by a network. For a parent
    + * network managing other networks as part of Multiple Customer Management
    + * "Manage Inventory" model, it could be the child's domain.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.Site} + */ +public final class Site extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Site) + SiteOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Site.newBuilder() to construct. + private Site(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Site() { + name_ = ""; + url_ = ""; + childNetworkCode_ = ""; + approvalStatus_ = 0; + disapprovalReasons_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Site(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_Site_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_Site_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Site.class, com.google.ads.admanager.v1.Site.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the `Site`.
    +   * Format: `networks/{network_code}/sites/{site_id}`
    +   * 
    + * + * 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. The resource name of the `Site`.
    +   * Format: `networks/{network_code}/sites/{site_id}`
    +   * 
    + * + * 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 URL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * + * + *
    +   * Required. The URL of the Site.
    +   * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the url field is set. + */ + @java.lang.Override + public boolean hasUrl() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The URL of the Site.
    +   * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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(); + url_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The URL of the Site.
    +   * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHILD_NETWORK_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object childNetworkCode_ = ""; + + /** + * + * + *
    +   * Optional. The network code of the child if the Site is being managed for an
    +   * MCM child network, or null if owned by this network.
    +   * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the childNetworkCode field is set. + */ + @java.lang.Override + public boolean hasChildNetworkCode() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. The network code of the child if the Site is being managed for an
    +   * MCM child network, or null if owned by this network.
    +   * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The childNetworkCode. + */ + @java.lang.Override + public java.lang.String getChildNetworkCode() { + java.lang.Object ref = childNetworkCode_; + 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(); + childNetworkCode_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The network code of the child if the Site is being managed for an
    +   * MCM child network, or null if owned by this network.
    +   * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for childNetworkCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChildNetworkCodeBytes() { + java.lang.Object ref = childNetworkCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + childNetworkCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPROVAL_STATUS_FIELD_NUMBER = 5; + private int approvalStatus_ = 0; + + /** + * + * + *
    +   * Output only. Status of the review performed on the Site by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the approvalStatus field is set. + */ + @java.lang.Override + public boolean hasApprovalStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Output only. Status of the review performed on the Site by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for approvalStatus. + */ + @java.lang.Override + public int getApprovalStatusValue() { + return approvalStatus_; + } + + /** + * + * + *
    +   * Output only. Status of the review performed on the Site by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalStatus. + */ + @java.lang.Override + public com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus getApprovalStatus() { + com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus result = + com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus.forNumber( + approvalStatus_); + return result == null + ? com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus.UNRECOGNIZED + : result; + } + + public static final int APPROVAL_STATUS_UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp approvalStatusUpdateTime_; + + /** + * + * + *
    +   * Output only. The latest Site approval status change time.
    +   * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the approvalStatusUpdateTime field is set. + */ + @java.lang.Override + public boolean hasApprovalStatusUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Output only. The latest Site approval status change time.
    +   * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalStatusUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getApprovalStatusUpdateTime() { + return approvalStatusUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : approvalStatusUpdateTime_; + } + + /** + * + * + *
    +   * Output only. The latest Site approval status change time.
    +   * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getApprovalStatusUpdateTimeOrBuilder() { + return approvalStatusUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : approvalStatusUpdateTime_; + } + + public static final int DISAPPROVAL_REASONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List disapprovalReasons_; + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getDisapprovalReasonsList() { + return disapprovalReasons_; + } + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDisapprovalReasonsOrBuilderList() { + return disapprovalReasons_; + } + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDisapprovalReasonsCount() { + return disapprovalReasons_.size(); + } + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.DisapprovalReason getDisapprovalReasons(int index) { + return disapprovalReasons_.get(index); + } + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.DisapprovalReasonOrBuilder getDisapprovalReasonsOrBuilder( + int index) { + return disapprovalReasons_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, url_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, childNetworkCode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(5, approvalStatus_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getApprovalStatusUpdateTime()); + } + for (int i = 0; i < disapprovalReasons_.size(); i++) { + output.writeMessage(7, disapprovalReasons_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, url_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, childNetworkCode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, approvalStatus_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getApprovalStatusUpdateTime()); + } + for (int i = 0; i < disapprovalReasons_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, disapprovalReasons_.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.admanager.v1.Site)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.Site other = (com.google.ads.admanager.v1.Site) obj; + + if (!getName().equals(other.getName())) return false; + if (hasUrl() != other.hasUrl()) return false; + if (hasUrl()) { + if (!getUrl().equals(other.getUrl())) return false; + } + if (hasChildNetworkCode() != other.hasChildNetworkCode()) return false; + if (hasChildNetworkCode()) { + if (!getChildNetworkCode().equals(other.getChildNetworkCode())) return false; + } + if (hasApprovalStatus() != other.hasApprovalStatus()) return false; + if (hasApprovalStatus()) { + if (approvalStatus_ != other.approvalStatus_) return false; + } + if (hasApprovalStatusUpdateTime() != other.hasApprovalStatusUpdateTime()) return false; + if (hasApprovalStatusUpdateTime()) { + if (!getApprovalStatusUpdateTime().equals(other.getApprovalStatusUpdateTime())) return false; + } + if (!getDisapprovalReasonsList().equals(other.getDisapprovalReasonsList())) 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(); + if (hasUrl()) { + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + } + if (hasChildNetworkCode()) { + hash = (37 * hash) + CHILD_NETWORK_CODE_FIELD_NUMBER; + hash = (53 * hash) + getChildNetworkCode().hashCode(); + } + if (hasApprovalStatus()) { + hash = (37 * hash) + APPROVAL_STATUS_FIELD_NUMBER; + hash = (53 * hash) + approvalStatus_; + } + if (hasApprovalStatusUpdateTime()) { + hash = (37 * hash) + APPROVAL_STATUS_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getApprovalStatusUpdateTime().hashCode(); + } + if (getDisapprovalReasonsCount() > 0) { + hash = (37 * hash) + DISAPPROVAL_REASONS_FIELD_NUMBER; + hash = (53 * hash) + getDisapprovalReasonsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.Site parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Site 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.admanager.v1.Site parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Site 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.admanager.v1.Site parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Site parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Site parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Site parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Site parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Site parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Site parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Site parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.Site prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A Site represents a domain owned or represented by a network. For a parent
    +   * network managing other networks as part of Multiple Customer Management
    +   * "Manage Inventory" model, it could be the child's domain.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.Site} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Site) + com.google.ads.admanager.v1.SiteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_Site_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_Site_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Site.class, + com.google.ads.admanager.v1.Site.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.Site.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getApprovalStatusUpdateTimeFieldBuilder(); + getDisapprovalReasonsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + url_ = ""; + childNetworkCode_ = ""; + approvalStatus_ = 0; + approvalStatusUpdateTime_ = null; + if (approvalStatusUpdateTimeBuilder_ != null) { + approvalStatusUpdateTimeBuilder_.dispose(); + approvalStatusUpdateTimeBuilder_ = null; + } + if (disapprovalReasonsBuilder_ == null) { + disapprovalReasons_ = java.util.Collections.emptyList(); + } else { + disapprovalReasons_ = null; + disapprovalReasonsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteMessagesProto + .internal_static_google_ads_admanager_v1_Site_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Site getDefaultInstanceForType() { + return com.google.ads.admanager.v1.Site.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.Site build() { + com.google.ads.admanager.v1.Site result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Site buildPartial() { + com.google.ads.admanager.v1.Site result = new com.google.ads.admanager.v1.Site(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.ads.admanager.v1.Site result) { + if (disapprovalReasonsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + disapprovalReasons_ = java.util.Collections.unmodifiableList(disapprovalReasons_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.disapprovalReasons_ = disapprovalReasons_; + } else { + result.disapprovalReasons_ = disapprovalReasonsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.Site result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.url_ = url_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.childNetworkCode_ = childNetworkCode_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.approvalStatus_ = approvalStatus_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.approvalStatusUpdateTime_ = + approvalStatusUpdateTimeBuilder_ == null + ? approvalStatusUpdateTime_ + : approvalStatusUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.Site) { + return mergeFrom((com.google.ads.admanager.v1.Site) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.Site other) { + if (other == com.google.ads.admanager.v1.Site.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasUrl()) { + url_ = other.url_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasChildNetworkCode()) { + childNetworkCode_ = other.childNetworkCode_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasApprovalStatus()) { + setApprovalStatus(other.getApprovalStatus()); + } + if (other.hasApprovalStatusUpdateTime()) { + mergeApprovalStatusUpdateTime(other.getApprovalStatusUpdateTime()); + } + if (disapprovalReasonsBuilder_ == null) { + if (!other.disapprovalReasons_.isEmpty()) { + if (disapprovalReasons_.isEmpty()) { + disapprovalReasons_ = other.disapprovalReasons_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureDisapprovalReasonsIsMutable(); + disapprovalReasons_.addAll(other.disapprovalReasons_); + } + onChanged(); + } + } else { + if (!other.disapprovalReasons_.isEmpty()) { + if (disapprovalReasonsBuilder_.isEmpty()) { + disapprovalReasonsBuilder_.dispose(); + disapprovalReasonsBuilder_ = null; + disapprovalReasons_ = other.disapprovalReasons_; + bitField0_ = (bitField0_ & ~0x00000020); + disapprovalReasonsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisapprovalReasonsFieldBuilder() + : null; + } else { + disapprovalReasonsBuilder_.addAllMessages(other.disapprovalReasons_); + } + } + } + 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 26: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + childNetworkCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + approvalStatus_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 50: + { + input.readMessage( + getApprovalStatusUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + com.google.ads.admanager.v1.DisapprovalReason m = + input.readMessage( + com.google.ads.admanager.v1.DisapprovalReason.parser(), extensionRegistry); + if (disapprovalReasonsBuilder_ == null) { + ensureDisapprovalReasonsIsMutable(); + disapprovalReasons_.add(m); + } else { + disapprovalReasonsBuilder_.addMessage(m); + } + break; + } // case 58 + 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_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the `Site`.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * 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. The resource name of the `Site`.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * 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. The resource name of the `Site`.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Site`.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the `Site`.
    +     * Format: `networks/{network_code}/sites/{site_id}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + + /** + * + * + *
    +     * Required. The URL of the Site.
    +     * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the url field is set. + */ + public boolean hasUrl() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The URL of the Site.
    +     * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The URL of the Site.
    +     * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The URL of the Site.
    +     * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The URL of the Site.
    +     * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The URL of the Site.
    +     * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object childNetworkCode_ = ""; + + /** + * + * + *
    +     * Optional. The network code of the child if the Site is being managed for an
    +     * MCM child network, or null if owned by this network.
    +     * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the childNetworkCode field is set. + */ + public boolean hasChildNetworkCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. The network code of the child if the Site is being managed for an
    +     * MCM child network, or null if owned by this network.
    +     * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The childNetworkCode. + */ + public java.lang.String getChildNetworkCode() { + java.lang.Object ref = childNetworkCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + childNetworkCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The network code of the child if the Site is being managed for an
    +     * MCM child network, or null if owned by this network.
    +     * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for childNetworkCode. + */ + public com.google.protobuf.ByteString getChildNetworkCodeBytes() { + java.lang.Object ref = childNetworkCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + childNetworkCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The network code of the child if the Site is being managed for an
    +     * MCM child network, or null if owned by this network.
    +     * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The childNetworkCode to set. + * @return This builder for chaining. + */ + public Builder setChildNetworkCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + childNetworkCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The network code of the child if the Site is being managed for an
    +     * MCM child network, or null if owned by this network.
    +     * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearChildNetworkCode() { + childNetworkCode_ = getDefaultInstance().getChildNetworkCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The network code of the child if the Site is being managed for an
    +     * MCM child network, or null if owned by this network.
    +     * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for childNetworkCode to set. + * @return This builder for chaining. + */ + public Builder setChildNetworkCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + childNetworkCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int approvalStatus_ = 0; + + /** + * + * + *
    +     * Output only. Status of the review performed on the Site by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the approvalStatus field is set. + */ + @java.lang.Override + public boolean hasApprovalStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Output only. Status of the review performed on the Site by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for approvalStatus. + */ + @java.lang.Override + public int getApprovalStatusValue() { + return approvalStatus_; + } + + /** + * + * + *
    +     * Output only. Status of the review performed on the Site by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for approvalStatus to set. + * @return This builder for chaining. + */ + public Builder setApprovalStatusValue(int value) { + approvalStatus_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Status of the review performed on the Site by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalStatus. + */ + @java.lang.Override + public com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus + getApprovalStatus() { + com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus result = + com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus.forNumber( + approvalStatus_); + return result == null + ? com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. Status of the review performed on the Site by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The approvalStatus to set. + * @return This builder for chaining. + */ + public Builder setApprovalStatus( + com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + approvalStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Status of the review performed on the Site by Google.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearApprovalStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + approvalStatus_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp approvalStatusUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + approvalStatusUpdateTimeBuilder_; + + /** + * + * + *
    +     * Output only. The latest Site approval status change time.
    +     * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the approvalStatusUpdateTime field is set. + */ + public boolean hasApprovalStatusUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Output only. The latest Site approval status change time.
    +     * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalStatusUpdateTime. + */ + public com.google.protobuf.Timestamp getApprovalStatusUpdateTime() { + if (approvalStatusUpdateTimeBuilder_ == null) { + return approvalStatusUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : approvalStatusUpdateTime_; + } else { + return approvalStatusUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The latest Site approval status change time.
    +     * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApprovalStatusUpdateTime(com.google.protobuf.Timestamp value) { + if (approvalStatusUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + approvalStatusUpdateTime_ = value; + } else { + approvalStatusUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The latest Site approval status change time.
    +     * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApprovalStatusUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (approvalStatusUpdateTimeBuilder_ == null) { + approvalStatusUpdateTime_ = builderForValue.build(); + } else { + approvalStatusUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The latest Site approval status change time.
    +     * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeApprovalStatusUpdateTime(com.google.protobuf.Timestamp value) { + if (approvalStatusUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && approvalStatusUpdateTime_ != null + && approvalStatusUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getApprovalStatusUpdateTimeBuilder().mergeFrom(value); + } else { + approvalStatusUpdateTime_ = value; + } + } else { + approvalStatusUpdateTimeBuilder_.mergeFrom(value); + } + if (approvalStatusUpdateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The latest Site approval status change time.
    +     * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearApprovalStatusUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + approvalStatusUpdateTime_ = null; + if (approvalStatusUpdateTimeBuilder_ != null) { + approvalStatusUpdateTimeBuilder_.dispose(); + approvalStatusUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The latest Site approval status change time.
    +     * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getApprovalStatusUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getApprovalStatusUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The latest Site approval status change time.
    +     * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getApprovalStatusUpdateTimeOrBuilder() { + if (approvalStatusUpdateTimeBuilder_ != null) { + return approvalStatusUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return approvalStatusUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : approvalStatusUpdateTime_; + } + } + + /** + * + * + *
    +     * Output only. The latest Site approval status change time.
    +     * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getApprovalStatusUpdateTimeFieldBuilder() { + if (approvalStatusUpdateTimeBuilder_ == null) { + approvalStatusUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getApprovalStatusUpdateTime(), getParentForChildren(), isClean()); + approvalStatusUpdateTime_ = null; + } + return approvalStatusUpdateTimeBuilder_; + } + + private java.util.List disapprovalReasons_ = + java.util.Collections.emptyList(); + + private void ensureDisapprovalReasonsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + disapprovalReasons_ = + new java.util.ArrayList( + disapprovalReasons_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DisapprovalReason, + com.google.ads.admanager.v1.DisapprovalReason.Builder, + com.google.ads.admanager.v1.DisapprovalReasonOrBuilder> + disapprovalReasonsBuilder_; + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDisapprovalReasonsList() { + if (disapprovalReasonsBuilder_ == null) { + return java.util.Collections.unmodifiableList(disapprovalReasons_); + } else { + return disapprovalReasonsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDisapprovalReasonsCount() { + if (disapprovalReasonsBuilder_ == null) { + return disapprovalReasons_.size(); + } else { + return disapprovalReasonsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.ads.admanager.v1.DisapprovalReason getDisapprovalReasons(int index) { + if (disapprovalReasonsBuilder_ == null) { + return disapprovalReasons_.get(index); + } else { + return disapprovalReasonsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisapprovalReasons( + int index, com.google.ads.admanager.v1.DisapprovalReason value) { + if (disapprovalReasonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisapprovalReasonsIsMutable(); + disapprovalReasons_.set(index, value); + onChanged(); + } else { + disapprovalReasonsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisapprovalReasons( + int index, com.google.ads.admanager.v1.DisapprovalReason.Builder builderForValue) { + if (disapprovalReasonsBuilder_ == null) { + ensureDisapprovalReasonsIsMutable(); + disapprovalReasons_.set(index, builderForValue.build()); + onChanged(); + } else { + disapprovalReasonsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisapprovalReasons(com.google.ads.admanager.v1.DisapprovalReason value) { + if (disapprovalReasonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisapprovalReasonsIsMutable(); + disapprovalReasons_.add(value); + onChanged(); + } else { + disapprovalReasonsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisapprovalReasons( + int index, com.google.ads.admanager.v1.DisapprovalReason value) { + if (disapprovalReasonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisapprovalReasonsIsMutable(); + disapprovalReasons_.add(index, value); + onChanged(); + } else { + disapprovalReasonsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisapprovalReasons( + com.google.ads.admanager.v1.DisapprovalReason.Builder builderForValue) { + if (disapprovalReasonsBuilder_ == null) { + ensureDisapprovalReasonsIsMutable(); + disapprovalReasons_.add(builderForValue.build()); + onChanged(); + } else { + disapprovalReasonsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisapprovalReasons( + int index, com.google.ads.admanager.v1.DisapprovalReason.Builder builderForValue) { + if (disapprovalReasonsBuilder_ == null) { + ensureDisapprovalReasonsIsMutable(); + disapprovalReasons_.add(index, builderForValue.build()); + onChanged(); + } else { + disapprovalReasonsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDisapprovalReasons( + java.lang.Iterable values) { + if (disapprovalReasonsBuilder_ == null) { + ensureDisapprovalReasonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disapprovalReasons_); + onChanged(); + } else { + disapprovalReasonsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDisapprovalReasons() { + if (disapprovalReasonsBuilder_ == null) { + disapprovalReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + disapprovalReasonsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDisapprovalReasons(int index) { + if (disapprovalReasonsBuilder_ == null) { + ensureDisapprovalReasonsIsMutable(); + disapprovalReasons_.remove(index); + onChanged(); + } else { + disapprovalReasonsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.ads.admanager.v1.DisapprovalReason.Builder getDisapprovalReasonsBuilder( + int index) { + return getDisapprovalReasonsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.ads.admanager.v1.DisapprovalReasonOrBuilder getDisapprovalReasonsOrBuilder( + int index) { + if (disapprovalReasonsBuilder_ == null) { + return disapprovalReasons_.get(index); + } else { + return disapprovalReasonsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDisapprovalReasonsOrBuilderList() { + if (disapprovalReasonsBuilder_ != null) { + return disapprovalReasonsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(disapprovalReasons_); + } + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.ads.admanager.v1.DisapprovalReason.Builder addDisapprovalReasonsBuilder() { + return getDisapprovalReasonsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.DisapprovalReason.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.ads.admanager.v1.DisapprovalReason.Builder addDisapprovalReasonsBuilder( + int index) { + return getDisapprovalReasonsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.DisapprovalReason.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. Provides reasons for disapproving the Site. It is null when
    +     * the Site is not disapproved.
    +     * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDisapprovalReasonsBuilderList() { + return getDisapprovalReasonsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DisapprovalReason, + com.google.ads.admanager.v1.DisapprovalReason.Builder, + com.google.ads.admanager.v1.DisapprovalReasonOrBuilder> + getDisapprovalReasonsFieldBuilder() { + if (disapprovalReasonsBuilder_ == null) { + disapprovalReasonsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DisapprovalReason, + com.google.ads.admanager.v1.DisapprovalReason.Builder, + com.google.ads.admanager.v1.DisapprovalReasonOrBuilder>( + disapprovalReasons_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + disapprovalReasons_ = null; + } + return disapprovalReasonsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Site) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Site) + private static final com.google.ads.admanager.v1.Site DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Site(); + } + + public static com.google.ads.admanager.v1.Site getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Site 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.admanager.v1.Site getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteApprovalStatusEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteApprovalStatusEnum.java new file mode 100644 index 000000000000..89bfe0c51afa --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteApprovalStatusEnum.java @@ -0,0 +1,675 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [SiteApprovalStatus][google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.SiteApprovalStatusEnum} + */ +public final class SiteApprovalStatusEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.SiteApprovalStatusEnum) + SiteApprovalStatusEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SiteApprovalStatusEnum.newBuilder() to construct. + private SiteApprovalStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SiteApprovalStatusEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SiteApprovalStatusEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.SiteApprovalStatusEnum.class, + com.google.ads.admanager.v1.SiteApprovalStatusEnum.Builder.class); + } + + /** + * + * + *
    +   * Represents the approval status of a site.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus} + */ + public enum SiteApprovalStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * SITE_APPROVAL_STATUS_UNSPECIFIED = 0; + */ + SITE_APPROVAL_STATUS_UNSPECIFIED(0), + /** + * + * + *
    +     * The site has been approved to serve ads.
    +     * 
    + * + * APPROVED = 1; + */ + APPROVED(1), + /** + * + * + *
    +     * The site has been disapproved from serving ads.
    +     * 
    + * + * DISAPPROVED = 2; + */ + DISAPPROVED(2), + /** + * + * + *
    +     * The default status with which a site is created.
    +     * 
    + * + * DRAFT = 3; + */ + DRAFT(3), + /** + * + * + *
    +     * The site has been deactivated and is not serving ads due to dormancy. It
    +     * must be resubmitted for approval.
    +     * 
    + * + * REQUIRES_REVIEW = 4; + */ + REQUIRES_REVIEW(4), + /** + * + * + *
    +     * Once the site is submitted for approval, its status changes from draft to
    +     * unchecked. It will be reviwed with an estimated turn-around time of 24h.
    +     * Such a site cannot serve ads.
    +     * 
    + * + * UNCHECKED = 5; + */ + UNCHECKED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * SITE_APPROVAL_STATUS_UNSPECIFIED = 0; + */ + public static final int SITE_APPROVAL_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The site has been approved to serve ads.
    +     * 
    + * + * APPROVED = 1; + */ + public static final int APPROVED_VALUE = 1; + + /** + * + * + *
    +     * The site has been disapproved from serving ads.
    +     * 
    + * + * DISAPPROVED = 2; + */ + public static final int DISAPPROVED_VALUE = 2; + + /** + * + * + *
    +     * The default status with which a site is created.
    +     * 
    + * + * DRAFT = 3; + */ + public static final int DRAFT_VALUE = 3; + + /** + * + * + *
    +     * The site has been deactivated and is not serving ads due to dormancy. It
    +     * must be resubmitted for approval.
    +     * 
    + * + * REQUIRES_REVIEW = 4; + */ + public static final int REQUIRES_REVIEW_VALUE = 4; + + /** + * + * + *
    +     * Once the site is submitted for approval, its status changes from draft to
    +     * unchecked. It will be reviwed with an estimated turn-around time of 24h.
    +     * Such a site cannot serve ads.
    +     * 
    + * + * UNCHECKED = 5; + */ + public static final int UNCHECKED_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 SiteApprovalStatus 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 SiteApprovalStatus forNumber(int value) { + switch (value) { + case 0: + return SITE_APPROVAL_STATUS_UNSPECIFIED; + case 1: + return APPROVED; + case 2: + return DISAPPROVED; + case 3: + return DRAFT; + case 4: + return REQUIRES_REVIEW; + case 5: + return UNCHECKED; + 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 SiteApprovalStatus findValueByNumber(int number) { + return SiteApprovalStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteApprovalStatusEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SiteApprovalStatus[] VALUES = values(); + + public static SiteApprovalStatus 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 SiteApprovalStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus) + } + + 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.admanager.v1.SiteApprovalStatusEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.SiteApprovalStatusEnum other = + (com.google.ads.admanager.v1.SiteApprovalStatusEnum) 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.admanager.v1.SiteApprovalStatusEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum 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.admanager.v1.SiteApprovalStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum 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.admanager.v1.SiteApprovalStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.SiteApprovalStatusEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [SiteApprovalStatus][google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.SiteApprovalStatusEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.SiteApprovalStatusEnum) + com.google.ads.admanager.v1.SiteApprovalStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.SiteApprovalStatusEnum.class, + com.google.ads.admanager.v1.SiteApprovalStatusEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.SiteApprovalStatusEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.SiteApprovalStatusEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.SiteApprovalStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.SiteApprovalStatusEnum build() { + com.google.ads.admanager.v1.SiteApprovalStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.SiteApprovalStatusEnum buildPartial() { + com.google.ads.admanager.v1.SiteApprovalStatusEnum result = + new com.google.ads.admanager.v1.SiteApprovalStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.SiteApprovalStatusEnum) { + return mergeFrom((com.google.ads.admanager.v1.SiteApprovalStatusEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.SiteApprovalStatusEnum other) { + if (other == com.google.ads.admanager.v1.SiteApprovalStatusEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.SiteApprovalStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.SiteApprovalStatusEnum) + private static final com.google.ads.admanager.v1.SiteApprovalStatusEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.SiteApprovalStatusEnum(); + } + + public static com.google.ads.admanager.v1.SiteApprovalStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SiteApprovalStatusEnum 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.admanager.v1.SiteApprovalStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteApprovalStatusEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteApprovalStatusEnumOrBuilder.java new file mode 100644 index 000000000000..9d275b26403b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteApprovalStatusEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface SiteApprovalStatusEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.SiteApprovalStatusEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteDisapprovalReasonEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteDisapprovalReasonEnum.java new file mode 100644 index 000000000000..0a06b603b9ea --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteDisapprovalReasonEnum.java @@ -0,0 +1,624 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [SiteDisapprovalReason][google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.SiteDisapprovalReasonEnum} + */ +public final class SiteDisapprovalReasonEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.SiteDisapprovalReasonEnum) + SiteDisapprovalReasonEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SiteDisapprovalReasonEnum.newBuilder() to construct. + private SiteDisapprovalReasonEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SiteDisapprovalReasonEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SiteDisapprovalReasonEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteDisapprovalReasonEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteDisapprovalReasonEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.class, + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.Builder.class); + } + + /** + * + * + *
    +   * The list of possible policy violation types for a Site.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason} + */ + public enum SiteDisapprovalReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * SITE_DISAPPROVAL_REASON_UNSPECIFIED = 0; + */ + SITE_DISAPPROVAL_REASON_UNSPECIFIED(0), + /** + * + * + *
    +     * The site has content that violates policy.
    +     * 
    + * + * CONTENT = 1; + */ + CONTENT(1), + /** + * + * + *
    +     * Generic error type.
    +     * 
    + * + * OTHER = 2; + */ + OTHER(2), + /** + * + * + *
    +     * The parent must be an authorized seller of the child network's inventory.
    +     * 
    + * + * OWNERSHIP = 3; + */ + OWNERSHIP(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * SITE_DISAPPROVAL_REASON_UNSPECIFIED = 0; + */ + public static final int SITE_DISAPPROVAL_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The site has content that violates policy.
    +     * 
    + * + * CONTENT = 1; + */ + public static final int CONTENT_VALUE = 1; + + /** + * + * + *
    +     * Generic error type.
    +     * 
    + * + * OTHER = 2; + */ + public static final int OTHER_VALUE = 2; + + /** + * + * + *
    +     * The parent must be an authorized seller of the child network's inventory.
    +     * 
    + * + * OWNERSHIP = 3; + */ + public static final int OWNERSHIP_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 SiteDisapprovalReason 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 SiteDisapprovalReason forNumber(int value) { + switch (value) { + case 0: + return SITE_DISAPPROVAL_REASON_UNSPECIFIED; + case 1: + return CONTENT; + case 2: + return OTHER; + case 3: + return OWNERSHIP; + 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 SiteDisapprovalReason findValueByNumber(int number) { + return SiteDisapprovalReason.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SiteDisapprovalReason[] VALUES = values(); + + public static SiteDisapprovalReason 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 SiteDisapprovalReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason) + } + + 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.admanager.v1.SiteDisapprovalReasonEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum other = + (com.google.ads.admanager.v1.SiteDisapprovalReasonEnum) 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.admanager.v1.SiteDisapprovalReasonEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum 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.admanager.v1.SiteDisapprovalReasonEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum 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.admanager.v1.SiteDisapprovalReasonEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [SiteDisapprovalReason][google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.SiteDisapprovalReasonEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.SiteDisapprovalReasonEnum) + com.google.ads.admanager.v1.SiteDisapprovalReasonEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteDisapprovalReasonEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteDisapprovalReasonEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.class, + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.SiteEnumsProto + .internal_static_google_ads_admanager_v1_SiteDisapprovalReasonEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.SiteDisapprovalReasonEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.SiteDisapprovalReasonEnum build() { + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.SiteDisapprovalReasonEnum buildPartial() { + com.google.ads.admanager.v1.SiteDisapprovalReasonEnum result = + new com.google.ads.admanager.v1.SiteDisapprovalReasonEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.SiteDisapprovalReasonEnum) { + return mergeFrom((com.google.ads.admanager.v1.SiteDisapprovalReasonEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.SiteDisapprovalReasonEnum other) { + if (other == com.google.ads.admanager.v1.SiteDisapprovalReasonEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.SiteDisapprovalReasonEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.SiteDisapprovalReasonEnum) + private static final com.google.ads.admanager.v1.SiteDisapprovalReasonEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.SiteDisapprovalReasonEnum(); + } + + public static com.google.ads.admanager.v1.SiteDisapprovalReasonEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SiteDisapprovalReasonEnum 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.admanager.v1.SiteDisapprovalReasonEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteDisapprovalReasonEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteDisapprovalReasonEnumOrBuilder.java new file mode 100644 index 000000000000..c52521d936ff --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteDisapprovalReasonEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface SiteDisapprovalReasonEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.SiteDisapprovalReasonEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteEnumsProto.java new file mode 100644 index 000000000000..769829cdf9ce --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteEnumsProto.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class SiteEnumsProto { + private SiteEnumsProto() {} + + 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_admanager_v1_SiteDisapprovalReasonEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_SiteDisapprovalReasonEnum_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_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/admanager/v1/site_enums.pro" + + "to\022\027google.ads.admanager.v1\"\204\001\n\031SiteDisa" + + "pprovalReasonEnum\"g\n\025SiteDisapprovalReas" + + "on\022\'\n#SITE_DISAPPROVAL_REASON_UNSPECIFIE" + + "D\020\000\022\013\n\007CONTENT\020\001\022\t\n\005OTHER\020\002\022\r\n\tOWNERSHIP" + + "\020\003\"\243\001\n\026SiteApprovalStatusEnum\"\210\001\n\022SiteAp" + + "provalStatus\022$\n SITE_APPROVAL_STATUS_UNS" + + "PECIFIED\020\000\022\014\n\010APPROVED\020\001\022\017\n\013DISAPPROVED\020" + + "\002\022\t\n\005DRAFT\020\003\022\023\n\017REQUIRES_REVIEW\020\004\022\r\n\tUNC" + + "HECKED\020\005B\302\001\n\033com.google.ads.admanager.v1" + + "B\016SiteEnumsProtoP\001Z@google.golang.org/ge" + + "nproto/googleapis/ads/admanager/v1;adman" + + "ager\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\" + + "Ads\\AdManager\\V1\352\002\032Google::Ads::AdManage" + + "r::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_SiteDisapprovalReasonEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_SiteDisapprovalReasonEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_SiteDisapprovalReasonEnum_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_SiteApprovalStatusEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteMessagesProto.java new file mode 100644 index 000000000000..cfe0fdb2375d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteMessagesProto.java @@ -0,0 +1,124 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class SiteMessagesProto { + private SiteMessagesProto() {} + + 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_admanager_v1_Site_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Site_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_DisapprovalReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DisapprovalReason_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/admanager/v1/site_messages." + + "proto\022\027google.ads.admanager.v1\032(google/a" + + "ds/admanager/v1/site_enums.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032\037google/protobuf/timestamp.proto\"\200\004\n" + + "\004Site\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\025\n" + + "\003url\030\003 \001(\tB\003\340A\002H\000\210\001\001\022$\n" + + "\022child_network_code\030\004 \001(\tB\003\340A\001H\001\210\001\001\022e\n" + + "\017approval_status\030\005 \001(\0162" + + "B.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatusB\003\340A\003H\002\210\001\001\022I\n" + + "\033approval_status_update_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\003\210\001\001\022L\n" + + "\023disapproval_reasons\030\007" + + " \003(\0132*.google.ads.admanager.v1.DisapprovalReasonB\003\340A\003:U\352AR\n" + + "\035adm" + + "anager.googleapis.com/Site\022$networks/{network_code}/sites/{site}*\005sites2\004siteB\006\n" + + "\004_urlB\025\n" + + "\023_child_network_codeB\022\n" + + "\020_approval_statusB\036\n" + + "\034_approval_status_update_time\"\245\001\n" + + "\021DisapprovalReason\022`\n" + + "\004type\030\001 \001(\0162H.google.ads.admanager.v1.SiteDisapprovalRe" + + "asonEnum.SiteDisapprovalReasonB\003\340A\003H\000\210\001\001\022\031\n" + + "\007details\030\002 \001(\tB\003\340A\003H\001\210\001\001B\007\n" + + "\005_typeB\n\n" + + "\010_detailsB\305\001\n" + + "\033com.google.ads.admanager.v1B\021SiteMessagesProtoP\001Z@google.golang.org" + + "/genproto/googleapis/ads/admanager/v1;ad" + + "manager\252\002\027Google.Ads.AdManager.V1\312\002\027Goog" + + "le\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.SiteEnumsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_Site_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_Site_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Site_descriptor, + new java.lang.String[] { + "Name", + "Url", + "ChildNetworkCode", + "ApprovalStatus", + "ApprovalStatusUpdateTime", + "DisapprovalReasons", + }); + internal_static_google_ads_admanager_v1_DisapprovalReason_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_DisapprovalReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DisapprovalReason_descriptor, + new java.lang.String[] { + "Type", "Details", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.SiteEnumsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteName.java new file mode 100644 index 000000000000..836326a63cba --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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.admanager.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 SiteName implements ResourceName { + private static final PathTemplate NETWORK_CODE_SITE = + PathTemplate.createWithoutUrlEncoding("networks/{network_code}/sites/{site}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String site; + + @Deprecated + protected SiteName() { + networkCode = null; + site = null; + } + + private SiteName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + site = Preconditions.checkNotNull(builder.getSite()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getSite() { + return site; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SiteName of(String networkCode, String site) { + return newBuilder().setNetworkCode(networkCode).setSite(site).build(); + } + + public static String format(String networkCode, String site) { + return newBuilder().setNetworkCode(networkCode).setSite(site).build().toString(); + } + + public static SiteName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_SITE.validatedMatch( + formattedString, "SiteName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("site")); + } + + 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 (SiteName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_SITE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (site != null) { + fieldMapBuilder.put("site", site); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_SITE.instantiate("network_code", networkCode, "site", site); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SiteName that = ((SiteName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.site, that.site); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(site); + return h; + } + + /** Builder for networks/{network_code}/sites/{site}. */ + public static class Builder { + private String networkCode; + private String site; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getSite() { + return site; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setSite(String site) { + this.site = site; + return this; + } + + private Builder(SiteName siteName) { + this.networkCode = siteName.networkCode; + this.site = siteName.site; + } + + public SiteName build() { + return new SiteName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteOrBuilder.java new file mode 100644 index 000000000000..2aba3e63a3e8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteOrBuilder.java @@ -0,0 +1,294 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface SiteOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Site) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the `Site`.
    +   * Format: `networks/{network_code}/sites/{site_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the `Site`.
    +   * Format: `networks/{network_code}/sites/{site_id}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The URL of the Site.
    +   * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the url field is set. + */ + boolean hasUrl(); + + /** + * + * + *
    +   * Required. The URL of the Site.
    +   * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + java.lang.String getUrl(); + + /** + * + * + *
    +   * Required. The URL of the Site.
    +   * 
    + * + * optional string url = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
    +   * Optional. The network code of the child if the Site is being managed for an
    +   * MCM child network, or null if owned by this network.
    +   * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the childNetworkCode field is set. + */ + boolean hasChildNetworkCode(); + + /** + * + * + *
    +   * Optional. The network code of the child if the Site is being managed for an
    +   * MCM child network, or null if owned by this network.
    +   * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The childNetworkCode. + */ + java.lang.String getChildNetworkCode(); + + /** + * + * + *
    +   * Optional. The network code of the child if the Site is being managed for an
    +   * MCM child network, or null if owned by this network.
    +   * 
    + * + * optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for childNetworkCode. + */ + com.google.protobuf.ByteString getChildNetworkCodeBytes(); + + /** + * + * + *
    +   * Output only. Status of the review performed on the Site by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the approvalStatus field is set. + */ + boolean hasApprovalStatus(); + + /** + * + * + *
    +   * Output only. Status of the review performed on the Site by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for approvalStatus. + */ + int getApprovalStatusValue(); + + /** + * + * + *
    +   * Output only. Status of the review performed on the Site by Google.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalStatus. + */ + com.google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus getApprovalStatus(); + + /** + * + * + *
    +   * Output only. The latest Site approval status change time.
    +   * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the approvalStatusUpdateTime field is set. + */ + boolean hasApprovalStatusUpdateTime(); + + /** + * + * + *
    +   * Output only. The latest Site approval status change time.
    +   * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalStatusUpdateTime. + */ + com.google.protobuf.Timestamp getApprovalStatusUpdateTime(); + + /** + * + * + *
    +   * Output only. The latest Site approval status change time.
    +   * 
    + * + * + * optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getApprovalStatusUpdateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getDisapprovalReasonsList(); + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.ads.admanager.v1.DisapprovalReason getDisapprovalReasons(int index); + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDisapprovalReasonsCount(); + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDisapprovalReasonsOrBuilderList(); + + /** + * + * + *
    +   * Output only. Provides reasons for disapproving the Site. It is null when
    +   * the Site is not disapproved.
    +   * 
    + * + * + * repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.ads.admanager.v1.DisapprovalReasonOrBuilder getDisapprovalReasonsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteServiceProto.java new file mode 100644 index 000000000000..ef46199815f7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteServiceProto.java @@ -0,0 +1,312 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class SiteServiceProto { + private SiteServiceProto() {} + + 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_admanager_v1_GetSiteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetSiteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListSitesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListSitesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListSitesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListSitesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreateSiteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreateSiteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdateSiteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdateSiteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_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/admanager/v1/site_service.p" + + "roto\022\027google.ads.admanager.v1\032+google/ad" + + "s/admanager/v1/site_messages.proto\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"E\n" + + "\016GetSiteRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035admanager.googleapis.com/Site\"\274\001\n" + + "\020ListSitesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"n\n" + + "\021ListSitesResponse\022,\n" + + "\005sites\030\001 \003(\0132\035.google.ads.admanager.v1.Site\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\005\"\177\n" + + "\021CreateSiteRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0220\n" + + "\004site\030\002 \001(\0132\035.google.ads.admanager.v1.SiteB\003\340A\002\"\226\001\n" + + "\027BatchCreateSitesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022A\n" + + "\010requests\030\002 \003(\0132*.google." + + "ads.admanager.v1.CreateSiteRequestB\003\340A\002\"H\n" + + "\030BatchCreateSitesResponse\022,\n" + + "\005sites\030\001 \003(\0132\035.google.ads.admanager.v1.Site\"{\n" + + "\021UpdateSiteRequest\0220\n" + + "\004site\030\001 \001(\0132\035.google.ads.admanager.v1.SiteB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\226\001\n" + + "\027BatchUpdateSitesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022A\n" + + "\010requests\030\002" + + " \003(\0132*.google.ads.admanager.v1.UpdateSiteRequestB\003\340A\002\"H\n" + + "\030BatchUpdateSitesResponse\022,\n" + + "\005sites\030\001 \003(\0132\035.google.ads.admanager.v1.Site\"k\n" + + "\033BatchDeactivateSitesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022\022\n" + + "\005names\030\002 \003(\tB\003\340A\002\"\036\n" + + "\034BatchDeactivateSitesResponse\"r\n" + + "\"BatchSubmitSitesForApprovalRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022\022\n" + + "\005names\030\002 \003(\tB\003\340A\002\"%\n" + + "#BatchSubmitSitesForApprovalResponse2\336\013\n" + + "\013SiteService\022\177\n" + + "\007GetSite\022\'.google.ads.admanager.v1.GetSiteRequest\032\035.google.a" + + "ds.admanager.v1.Site\",\332A\004name\202\323\344\223\002\037\022\035/v1/{name=networks/*/sites/*}\022\222\001\n" + + "\tListSites\022).google.ads.admanager.v1.ListSitesRequ" + + "est\032*.google.ads.admanager.v1.ListSitesR" + + "esponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent=networks/*}/sites\022\222\001\n\n" + + "CreateSite\022*.google.ads.admanager.v1.CreateSiteRequest\032\035.goo" + + "gle.ads.admanager.v1.Site\"9\332A\013parent,sit" + + "e\202\323\344\223\002%\"\035/v1/{parent=networks/*}/sites:\004site\022\277\001\n" + + "\020BatchCreateSites\0220.google.ads.admanager.v1.BatchCreateSitesRequest\0321.go" + + "ogle.ads.admanager.v1.BatchCreateSitesRe" + + "sponse\"F\332A\017parent,requests\202\323\344\223\002.\")/v1/{p" + + "arent=networks/*}/sites:batchCreate:\001*\022\234\001\n\n" + + "UpdateSite\022*.google.ads.admanager.v1.UpdateSiteRequest\032\035.google.ads.admanager" + + ".v1.Site\"C\332A\020site,update_mask\202\323\344\223\002*2\"/v1" + + "/{site.name=networks/*/sites/*}:\004site\022\277\001\n" + + "\020BatchUpdateSites\0220.google.ads.admanage" + + "r.v1.BatchUpdateSitesRequest\0321.google.ads.admanager.v1.BatchUpdateSitesResponse\"" + + "F\332A\017parent,requests\202\323\344\223\002.\")/v1/{parent=networks/*}/sites:batchUpdate:\001*\022\314\001\n" + + "\024BatchDeactivateSites\0224.google.ads.admanager." + + "v1.BatchDeactivateSitesRequest\0325.google.ads.admanager.v1.BatchDeactivateSitesRes" + + "ponse\"G\332A\014parent,names\202\323\344\223\0022\"-/v1/{paren" + + "t=networks/*}/sites:batchDeactivate:\001*\022\350\001\n" + + "\033BatchSubmitSitesForApproval\022;.google.ads.admanager.v1.BatchSubmitSitesForAppr" + + "ovalRequest\032<.google.ads.admanager.v1.Ba" + + "tchSubmitSitesForApprovalResponse\"N\332A\014pa" + + "rent,names\202\323\344\223\0029\"4/v1/{parent=networks/*" + + "}/sites:batchSubmitForApproval:\001*\032G\312A\030ad" + + "manager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\304\001\n" + + "\033com.google.ads.admanager.v1B\020SiteServiceProtoP\001Z@" + + "google.golang.org/genproto/googleapis/ad" + + "s/admanager/v1;admanager\252\002\027Google.Ads.Ad" + + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032G" + + "oogle::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.SiteMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetSiteRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetSiteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetSiteRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListSitesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListSitesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListSitesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListSitesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListSitesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListSitesResponse_descriptor, + new java.lang.String[] { + "Sites", "NextPageToken", "TotalSize", + }); + internal_static_google_ads_admanager_v1_CreateSiteRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreateSiteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreateSiteRequest_descriptor, + new java.lang.String[] { + "Parent", "Site", + }); + internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateSitesRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateSitesResponse_descriptor, + new java.lang.String[] { + "Sites", + }); + internal_static_google_ads_admanager_v1_UpdateSiteRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_admanager_v1_UpdateSiteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdateSiteRequest_descriptor, + new java.lang.String[] { + "Site", "UpdateMask", + }); + internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateSitesRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateSitesResponse_descriptor, + new java.lang.String[] { + "Sites", + }); + internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateSitesRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateSitesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchSubmitSitesForApprovalResponse_descriptor, + new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.SiteMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Targeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Targeting.java index 17520831676a..9566e9d94536 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Targeting.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Targeting.java @@ -543,6 +543,125 @@ public com.google.ads.admanager.v1.DataSegmentTargeting getDataSegmentTargeting( : dataSegmentTargeting_; } + public static final int CONTENT_TARGETING_FIELD_NUMBER = 15; + private com.google.ads.admanager.v1.ContentTargeting contentTargeting_; + + /** + * + * + *
    +   * Optional. Used to target content.
    +   * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the contentTargeting field is set. + */ + @java.lang.Override + public boolean hasContentTargeting() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +   * Optional. Used to target content.
    +   * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contentTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContentTargeting getContentTargeting() { + return contentTargeting_ == null + ? com.google.ads.admanager.v1.ContentTargeting.getDefaultInstance() + : contentTargeting_; + } + + /** + * + * + *
    +   * Optional. Used to target content.
    +   * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContentTargetingOrBuilder getContentTargetingOrBuilder() { + return contentTargeting_ == null + ? com.google.ads.admanager.v1.ContentTargeting.getDefaultInstance() + : contentTargeting_; + } + + public static final int MOBILE_APPLICATION_TARGETING_FIELD_NUMBER = 18; + private com.google.ads.admanager.v1.MobileApplicationTargeting mobileApplicationTargeting_; + + /** + * + * + *
    +   * Optional. Used to target mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mobileApplicationTargeting field is set. + */ + @java.lang.Override + public boolean hasMobileApplicationTargeting() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
    +   * Optional. Used to target mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mobileApplicationTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileApplicationTargeting getMobileApplicationTargeting() { + return mobileApplicationTargeting_ == null + ? com.google.ads.admanager.v1.MobileApplicationTargeting.getDefaultInstance() + : mobileApplicationTargeting_; + } + + /** + * + * + *
    +   * Optional. Used to target mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileApplicationTargetingOrBuilder + getMobileApplicationTargetingOrBuilder() { + return mobileApplicationTargeting_ == null + ? com.google.ads.admanager.v1.MobileApplicationTargeting.getDefaultInstance() + : mobileApplicationTargeting_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -581,6 +700,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(13, getDataSegmentTargeting()); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(15, getContentTargeting()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(18, getMobileApplicationTargeting()); + } getUnknownFields().writeTo(output); } @@ -619,6 +744,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDataSegmentTargeting()); } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getContentTargeting()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, getMobileApplicationTargeting()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -666,6 +799,15 @@ public boolean equals(final java.lang.Object obj) { if (hasDataSegmentTargeting()) { if (!getDataSegmentTargeting().equals(other.getDataSegmentTargeting())) return false; } + if (hasContentTargeting() != other.hasContentTargeting()) return false; + if (hasContentTargeting()) { + if (!getContentTargeting().equals(other.getContentTargeting())) return false; + } + if (hasMobileApplicationTargeting() != other.hasMobileApplicationTargeting()) return false; + if (hasMobileApplicationTargeting()) { + if (!getMobileApplicationTargeting().equals(other.getMobileApplicationTargeting())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -709,6 +851,14 @@ public int hashCode() { hash = (37 * hash) + DATA_SEGMENT_TARGETING_FIELD_NUMBER; hash = (53 * hash) + getDataSegmentTargeting().hashCode(); } + if (hasContentTargeting()) { + hash = (37 * hash) + CONTENT_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getContentTargeting().hashCode(); + } + if (hasMobileApplicationTargeting()) { + hash = (37 * hash) + MOBILE_APPLICATION_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getMobileApplicationTargeting().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -857,6 +1007,8 @@ private void maybeForceBuilderInitialization() { getUserDomainTargetingFieldBuilder(); getVideoPositionTargetingFieldBuilder(); getDataSegmentTargetingFieldBuilder(); + getContentTargetingFieldBuilder(); + getMobileApplicationTargetingFieldBuilder(); } } @@ -904,6 +1056,16 @@ public Builder clear() { dataSegmentTargetingBuilder_.dispose(); dataSegmentTargetingBuilder_ = null; } + contentTargeting_ = null; + if (contentTargetingBuilder_ != null) { + contentTargetingBuilder_.dispose(); + contentTargetingBuilder_ = null; + } + mobileApplicationTargeting_ = null; + if (mobileApplicationTargetingBuilder_ != null) { + mobileApplicationTargetingBuilder_.dispose(); + mobileApplicationTargetingBuilder_ = null; + } return this; } @@ -993,6 +1155,18 @@ private void buildPartial0(com.google.ads.admanager.v1.Targeting result) { : dataSegmentTargetingBuilder_.build(); to_bitField0_ |= 0x00000080; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.contentTargeting_ = + contentTargetingBuilder_ == null ? contentTargeting_ : contentTargetingBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.mobileApplicationTargeting_ = + mobileApplicationTargetingBuilder_ == null + ? mobileApplicationTargeting_ + : mobileApplicationTargetingBuilder_.build(); + to_bitField0_ |= 0x00000200; + } result.bitField0_ |= to_bitField0_; } @@ -1065,6 +1239,12 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Targeting other) { if (other.hasDataSegmentTargeting()) { mergeDataSegmentTargeting(other.getDataSegmentTargeting()); } + if (other.hasContentTargeting()) { + mergeContentTargeting(other.getContentTargeting()); + } + if (other.hasMobileApplicationTargeting()) { + mergeMobileApplicationTargeting(other.getMobileApplicationTargeting()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1145,6 +1325,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 106 + case 122: + { + input.readMessage( + getContentTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 122 + case 146: + { + input.readMessage( + getMobileApplicationTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2898,6 +3092,438 @@ public Builder clearDataSegmentTargeting() { return dataSegmentTargetingBuilder_; } + private com.google.ads.admanager.v1.ContentTargeting contentTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ContentTargeting, + com.google.ads.admanager.v1.ContentTargeting.Builder, + com.google.ads.admanager.v1.ContentTargetingOrBuilder> + contentTargetingBuilder_; + + /** + * + * + *
    +     * Optional. Used to target content.
    +     * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the contentTargeting field is set. + */ + public boolean hasContentTargeting() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +     * Optional. Used to target content.
    +     * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contentTargeting. + */ + public com.google.ads.admanager.v1.ContentTargeting getContentTargeting() { + if (contentTargetingBuilder_ == null) { + return contentTargeting_ == null + ? com.google.ads.admanager.v1.ContentTargeting.getDefaultInstance() + : contentTargeting_; + } else { + return contentTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Used to target content.
    +     * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContentTargeting(com.google.ads.admanager.v1.ContentTargeting value) { + if (contentTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contentTargeting_ = value; + } else { + contentTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Used to target content.
    +     * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContentTargeting( + com.google.ads.admanager.v1.ContentTargeting.Builder builderForValue) { + if (contentTargetingBuilder_ == null) { + contentTargeting_ = builderForValue.build(); + } else { + contentTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Used to target content.
    +     * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeContentTargeting(com.google.ads.admanager.v1.ContentTargeting value) { + if (contentTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && contentTargeting_ != null + && contentTargeting_ + != com.google.ads.admanager.v1.ContentTargeting.getDefaultInstance()) { + getContentTargetingBuilder().mergeFrom(value); + } else { + contentTargeting_ = value; + } + } else { + contentTargetingBuilder_.mergeFrom(value); + } + if (contentTargeting_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Used to target content.
    +     * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContentTargeting() { + bitField0_ = (bitField0_ & ~0x00000100); + contentTargeting_ = null; + if (contentTargetingBuilder_ != null) { + contentTargetingBuilder_.dispose(); + contentTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Used to target content.
    +     * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.ContentTargeting.Builder getContentTargetingBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getContentTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Used to target content.
    +     * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.ContentTargetingOrBuilder getContentTargetingOrBuilder() { + if (contentTargetingBuilder_ != null) { + return contentTargetingBuilder_.getMessageOrBuilder(); + } else { + return contentTargeting_ == null + ? com.google.ads.admanager.v1.ContentTargeting.getDefaultInstance() + : contentTargeting_; + } + } + + /** + * + * + *
    +     * Optional. Used to target content.
    +     * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ContentTargeting, + com.google.ads.admanager.v1.ContentTargeting.Builder, + com.google.ads.admanager.v1.ContentTargetingOrBuilder> + getContentTargetingFieldBuilder() { + if (contentTargetingBuilder_ == null) { + contentTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.ContentTargeting, + com.google.ads.admanager.v1.ContentTargeting.Builder, + com.google.ads.admanager.v1.ContentTargetingOrBuilder>( + getContentTargeting(), getParentForChildren(), isClean()); + contentTargeting_ = null; + } + return contentTargetingBuilder_; + } + + private com.google.ads.admanager.v1.MobileApplicationTargeting mobileApplicationTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.MobileApplicationTargeting, + com.google.ads.admanager.v1.MobileApplicationTargeting.Builder, + com.google.ads.admanager.v1.MobileApplicationTargetingOrBuilder> + mobileApplicationTargetingBuilder_; + + /** + * + * + *
    +     * Optional. Used to target mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mobileApplicationTargeting field is set. + */ + public boolean hasMobileApplicationTargeting() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
    +     * Optional. Used to target mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mobileApplicationTargeting. + */ + public com.google.ads.admanager.v1.MobileApplicationTargeting getMobileApplicationTargeting() { + if (mobileApplicationTargetingBuilder_ == null) { + return mobileApplicationTargeting_ == null + ? com.google.ads.admanager.v1.MobileApplicationTargeting.getDefaultInstance() + : mobileApplicationTargeting_; + } else { + return mobileApplicationTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Used to target mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMobileApplicationTargeting( + com.google.ads.admanager.v1.MobileApplicationTargeting value) { + if (mobileApplicationTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mobileApplicationTargeting_ = value; + } else { + mobileApplicationTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Used to target mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMobileApplicationTargeting( + com.google.ads.admanager.v1.MobileApplicationTargeting.Builder builderForValue) { + if (mobileApplicationTargetingBuilder_ == null) { + mobileApplicationTargeting_ = builderForValue.build(); + } else { + mobileApplicationTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Used to target mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMobileApplicationTargeting( + com.google.ads.admanager.v1.MobileApplicationTargeting value) { + if (mobileApplicationTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && mobileApplicationTargeting_ != null + && mobileApplicationTargeting_ + != com.google.ads.admanager.v1.MobileApplicationTargeting.getDefaultInstance()) { + getMobileApplicationTargetingBuilder().mergeFrom(value); + } else { + mobileApplicationTargeting_ = value; + } + } else { + mobileApplicationTargetingBuilder_.mergeFrom(value); + } + if (mobileApplicationTargeting_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Used to target mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMobileApplicationTargeting() { + bitField0_ = (bitField0_ & ~0x00000200); + mobileApplicationTargeting_ = null; + if (mobileApplicationTargetingBuilder_ != null) { + mobileApplicationTargetingBuilder_.dispose(); + mobileApplicationTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Used to target mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.MobileApplicationTargeting.Builder + getMobileApplicationTargetingBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getMobileApplicationTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Used to target mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.MobileApplicationTargetingOrBuilder + getMobileApplicationTargetingOrBuilder() { + if (mobileApplicationTargetingBuilder_ != null) { + return mobileApplicationTargetingBuilder_.getMessageOrBuilder(); + } else { + return mobileApplicationTargeting_ == null + ? com.google.ads.admanager.v1.MobileApplicationTargeting.getDefaultInstance() + : mobileApplicationTargeting_; + } + } + + /** + * + * + *
    +     * Optional. Used to target mobile applications.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.MobileApplicationTargeting, + com.google.ads.admanager.v1.MobileApplicationTargeting.Builder, + com.google.ads.admanager.v1.MobileApplicationTargetingOrBuilder> + getMobileApplicationTargetingFieldBuilder() { + if (mobileApplicationTargetingBuilder_ == null) { + mobileApplicationTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.MobileApplicationTargeting, + com.google.ads.admanager.v1.MobileApplicationTargeting.Builder, + com.google.ads.admanager.v1.MobileApplicationTargetingOrBuilder>( + getMobileApplicationTargeting(), getParentForChildren(), isClean()); + mobileApplicationTargeting_ = null; + } + return mobileApplicationTargetingBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingOrBuilder.java index dfbae296d3ec..693d39dea3f5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingOrBuilder.java @@ -371,4 +371,91 @@ public interface TargetingOrBuilder *
    */ com.google.ads.admanager.v1.DataSegmentTargetingOrBuilder getDataSegmentTargetingOrBuilder(); + + /** + * + * + *
    +   * Optional. Used to target content.
    +   * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the contentTargeting field is set. + */ + boolean hasContentTargeting(); + + /** + * + * + *
    +   * Optional. Used to target content.
    +   * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contentTargeting. + */ + com.google.ads.admanager.v1.ContentTargeting getContentTargeting(); + + /** + * + * + *
    +   * Optional. Used to target content.
    +   * 
    + * + * + * .google.ads.admanager.v1.ContentTargeting content_targeting = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.ContentTargetingOrBuilder getContentTargetingOrBuilder(); + + /** + * + * + *
    +   * Optional. Used to target mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mobileApplicationTargeting field is set. + */ + boolean hasMobileApplicationTargeting(); + + /** + * + * + *
    +   * Optional. Used to target mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mobileApplicationTargeting. + */ + com.google.ads.admanager.v1.MobileApplicationTargeting getMobileApplicationTargeting(); + + /** + * + * + *
    +   * Optional. Used to target mobile applications.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileApplicationTargeting mobile_application_targeting = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.MobileApplicationTargetingOrBuilder + getMobileApplicationTargetingOrBuilder(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingProto.java index 85c45cf4c7b3..ad56f7b36434 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingProto.java @@ -44,10 +44,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_admanager_v1_BandwidthTargeting_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_BandwidthTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BrowserTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BrowserTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_MobileCarrierTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_MobileCarrierTargeting_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_admanager_v1_OperatingSystemTargeting_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -76,6 +96,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_admanager_v1_CustomTargetingLiteral_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_CustomTargetingLiteral_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CmsMetadataTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CmsMetadataTargeting_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_admanager_v1_UserDomainTargeting_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -92,6 +120,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_admanager_v1_DataSegmentTargeting_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_DataSegmentTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ContentTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ContentTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_MobileApplicationTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_MobileApplicationTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -107,7 +147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dmanager/v1/request_platform_enum.proto\032=google/ads/admanager/v1/targeted_video_" + "bumper_type_enum.proto\0321google/ads/adman" + "ager/v1/video_position_enum.proto\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/resource.proto\"\221\005\n" + + "e/api/field_behavior.proto\032\031google/api/resource.proto\"\274\006\n" + "\tTargeting\022A\n\r" + "geo_targeting\030\002" + " \001(\0132%.google.ads.admanager.v1.GeoTargetingB\003\340A\001\022O\n" @@ -124,30 +164,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030video_position_targeting\030\014" + " \001(\0132/.google.ads.admanager.v1.VideoPositionTargetingB\003\340A\001\022R\n" + "\026data_segment_targeting\030\r" - + " \001(\0132-.google.ads.admanager.v1.DataSegmentTargetingB\003\340A\001\"\224\001\n" + + " \001(\0132-.google.ads.admanager.v1.DataSegmentTargetingB\003\340A\001\022I\n" + + "\021content_targeting\030\017" + + " \001(\0132).google.ads.admanager.v1.ContentTargetingB\003\340A\001\022^\n" + + "\034mobile_application_targeting\030\022 \001(\01323.google.ads." + + "admanager.v1.MobileApplicationTargetingB\003\340A\001\"\224\001\n" + "\014GeoTargeting\022A\n\r" + "targeted_geos\030\003 \003(\tB*\340A\001\372A$\n" - + "\"admanager.googleapis.com/GeoTarget\022A\n" - + "\r" + + "\"admanager.googleapis.com/GeoTarget\022A\n\r" + "excluded_geos\030\004 \003(\tB*\340A\001\372A$\n" - + "\"admanager.googleapis.com/GeoTarget\"\232\002\n" + + "\"admanager.googleapis.com/GeoTarget\"\331\005\n" + "\023TechnologyTargeting\022M\n" - + "\023bandwidth_targeting\030\003 \001(\0132+." - + "google.ads.admanager.v1.BandwidthTargetingB\003\340A\001\022X\n" - + "\031device_category_targeting\030\001 \001" - + "(\01320.google.ads.admanager.v1.DeviceCategoryTargetingB\003\340A\001\022Z\n" - + "\032operating_system_targeting\030\002" - + " \001(\01321.google.ads.admanager.v1.OperatingSystemTargetingB\003\340A\001\"\274\001\n" + + "\023bandwidth_targeting\030\003" + + " \001(\0132+.google.ads.admanager.v1.BandwidthTargetingB\003\340A\001\022I\n" + + "\021browser_targeting\030\004" + + " \001(\0132).google.ads.admanager.v1.BrowserTargetingB\003\340A\001\022Z\n" + + "\032browser_language_targeting\030\005" + + " \001(\01321.google.ads.admanager.v1.BrowserLanguageTargetingB\003\340A\001\022\\\n" + + "\033device_capability_targeting\030\006 \001(\01322.google.ads.adma" + + "nager.v1.DeviceCapabilityTargetingB\003\340A\001\022X\n" + + "\031device_category_targeting\030\001 \001(\01320.goo" + + "gle.ads.admanager.v1.DeviceCategoryTargetingB\003\340A\001\022`\n" + + "\035device_manufacturer_targeting\030\007" + + " \001(\01324.google.ads.admanager.v1.DeviceManufacturerTargetingB\003\340A\001\022V\n" + + "\030mobile_carrier_targeting\030\010" + + " \001(\0132/.google.ads.admanager.v1.MobileCarrierTargetingB\003\340A\001\022Z\n" + + "\032operating_system_targeting\030\002 \001(\01321.google" + + ".ads.admanager.v1.OperatingSystemTargetingB\003\340A\001\"\274\001\n" + "\022BandwidthTargeting\022R\n" + "\031targeted_bandwidth_groups\030\003 \003(\tB/\340A\001\372A)\n" + "\'admanager.googleapis.com/BandwidthGroup\022R\n" + "\031excluded_bandwidth_groups\030\004 \003(\tB/\340A\001\372A)\n" - + "\'admanager.googleapis.com/BandwidthGroup\"\265\001\n" + + "\'admanager.googleapis.com/BandwidthGroup\"\234\001\n" + + "\020BrowserTargeting\022C\n" + + "\021targeted_browsers\030\003 \003(\tB(\340A\001\372A\"\n" + + " admanager.googleapis.com/Browser\022C\n" + + "\021excluded_browsers\030\004 \003(\tB(\340A\001\372A\"\n" + + " admanager.googleapis.com/Browser\"\306\001\n" + + "\030BrowserLanguageTargeting\022T\n" + + "\032targeted_browser_languages\030\003 \003(\tB0\340A\001\372A*\n" + + "(admanager.googleapis.com/BrowserLanguage\022T\n" + + "\032excluded_browser_languages\030\004 \003(\tB0\340A\001\372A*\n" + + "(admanager.googleapis.com/BrowserLanguage\"\265\001\n" + "\027DeviceCategoryTargeting\022L\n" + "\023targeted_categories\030\003 \003(\tB/\340A\001\372A)\n" + "\'admanager.googleapis.com/DeviceCategory\022L\n" + "\023excluded_categories\030\004 \003(\tB/\340A\001\372A)\n" - + "\'admanager.googleapis.com/DeviceCategory\"\220\003\n" + + "\'admanager.googleapis.com/DeviceCategory\"\277\001\n" + + "\031DeviceCapabilityTargeting\022P\n" + + "\025targeted_capabilities\030\003 \003(\tB1\340A\001\372A+\n" + + ")admanager.googleapis.com/DeviceCapability\022P\n" + + "\025excluded_capabilities\030\004 \003(\tB1\340A\001\372A+\n" + + ")admanager.googleapis.com/DeviceCapability\"\267\004\n" + + "\033DeviceManufacturerTargeting\022Z\n" + + "\035targeted_device_manufacturers\030\007 \003(\tB3\340A\001\372A-\n" + + "+admanager.googleapis.com/DeviceManufacturer\022Z\n" + + "\035excluded_device_manufacturers\030\010 \003(\tB3\340A\001\372A-\n" + + "+admanager.googleapis.com/DeviceManufacturer\022N\n" + + "\027targeted_mobile_devices\030\t \003(\tB-\340A\001\372A\'\n" + + "%admanager.googleapis.com/MobileDevice\022N\n" + + "\027excluded_mobile_devices\030\n" + + " \003(\tB-\340A\001\372A\'\n" + + "%admanager.googleapis.com/MobileDevice\022_\n" + + " targeted_mobile_device_submodels\030\013 \003(\tB5\340A\001\372A/\n" + + "-admanager.googleapis.com/MobileDeviceSubmodel\022_\n" + + " excluded_mobile_device_submodels\030\014 \003(\tB5\340A\001\372A/\n" + + "-admanager.googleapis.com/MobileDeviceSubmodel\"\274\001\n" + + "\026MobileCarrierTargeting\022P\n" + + "\030targeted_mobile_carriers\030\003 \003(\tB.\340A\001\372A(\n" + + "&admanager.googleapis.com/MobileCarrier\022P\n" + + "\030excluded_mobile_carriers\030\004 \003(\tB.\340A\001\372A(\n" + + "&admanager.googleapis.com/MobileCarrier\"\220\003\n" + "\030OperatingSystemTargeting\022T\n" + "\032targeted_operating_systems\030\005 \003(\tB0\340A\001\372A*\n" + "(admanager.googleapis.com/OperatingSystem\022T\n" @@ -171,14 +258,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_include_descendantsB\n\n" + "\010_ad_unit\"x\n" + "\030RequestPlatformTargeting\022\\\n" - + "\021request_platforms\030\001 \003(\0162<.google.ads.admanag" - + "er.v1.RequestPlatformEnum.RequestPlatformB\003\340A\001\"h\n" + + "\021request_platforms\030\001 \003(\0162<.googl" + + "e.ads.admanager.v1.RequestPlatformEnum.RequestPlatformB\003\340A\001\"h\n" + "\017CustomTargeting\022U\n" - + "\030custom_targeting_clauses\030\001" - + " \003(\0132..google.ads.admanager.v1.CustomTargetingClauseB\003\340A\001\"p\n" + + "\030custom_targeting_clauses\030\001 \003(\0132..googl" + + "e.ads.admanager.v1.CustomTargetingClauseB\003\340A\001\"\242\002\n" + "\025CustomTargetingClause\022W\n" - + "\031custom_targeting_literals\030\001" - + " \003(\0132/.google.ads.admanager.v1.CustomTargetingLiteralB\003\340A\001\"\205\002\n" + + "\031custom_targeting_literals\030\001 \003(\0132/.google.ads." + + "admanager.v1.CustomTargetingLiteralB\003\340A\001\022[\n" + + "\033audience_segment_targetings\030\002 \003(\01321." + + "google.ads.admanager.v1.AudienceSegmentTargetingB\003\340A\001\022S\n" + + "\027cms_metadata_targetings\030\003" + + " \003(\0132-.google.ads.admanager.v1.CmsMetadataTargetingB\003\340A\001\"\205\002\n" + "\026CustomTargetingLiteral\022\025\n" + "\010negative\030\001 \001(\010H\000\210\001\001\022V\n" + "\024custom_targeting_key\030\004 \001(\tB3\340A\001\372A-\n" @@ -186,32 +277,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027custom_targeting_values\030\005 \003(\tB5\340A\001\372A/\n" + "-admanager.googleapis.com/CustomTargetingValueB\013\n" + "\t_negativeB\027\n" - + "\025_custom_targeting_key\"]\n" + + "\025_custom_targeting_key\"\213\001\n" + + "\030AudienceSegmentTargeting\022\025\n" + + "\010negative\030\001 \001(\010H\000\210\001\001\022K\n" + + "\021audience_segments\030\003 \003(\tB0\340A\001\372A*\n" + + "(admanager.googleapis.com/AudienceSegmentB\013\n" + + "\t_negative\"\212\001\n" + + "\024CmsMetadataTargeting\022\025\n" + + "\010negative\030\001 \001(\010H\000\210\001\001\022N\n" + + "\023cms_metadata_values\030\003 \003(\tB1\340A\001\372A+\n" + + ")admanager.googleapis.com/CmsMetadataValueB\013\n" + + "\t_negative\"]\n" + "\023UserDomainTargeting\022\"\n" + "\025targeted_user_domains\030\001 \003(\tB\003\340A\001\022\"\n" + "\025excluded_user_domains\030\002 \003(\tB\003\340A\001\"^\n" + "\026VideoPositionTargeting\022D\n" - + "\017video_positions\030\001 \003(\0132&.g" - + "oogle.ads.admanager.v1.VideoPositionB\003\340A\001\"\240\003\n\r" + + "\017video_positions\030\001" + + " \003(\0132&.google.ads.admanager.v1.VideoPositionB\003\340A\001\"\240\003\n" + + "\r" + "VideoPosition\022\037\n\r" + "midroll_index\030\001 \001(\003B\003\340A\001H\000\210\001\001\022\'\n" + "\025reverse_midroll_index\030\002 \001(\003B\003\340A\001H\001\210\001\001\022\036\n" + "\014pod_position\030\003 \001(\003B\003\340A\001H\002\210\001\001\022Y\n\r" - + "position_type\030\005 \001(\01628.google.ad" - + "s.admanager.v1.VideoPositionEnum.VideoPositionB\003\340A\001H\003\210\001\001\022k\n" - + "\013bumper_type\030\006 \001(\0162L.google.ads.admanager.v1.TargetedVideoBum" - + "perTypeEnum.TargetedVideoBumperTypeB\003\340A\001H\004\210\001\001B\020\n" + + "position_type\030\005 \001(\01628.google.ads.adm" + + "anager.v1.VideoPositionEnum.VideoPositionB\003\340A\001H\003\210\001\001\022k\n" + + "\013bumper_type\030\006 \001(\0162L.google.ads.admanager.v1.TargetedVideoBumperTy" + + "peEnum.TargetedVideoBumperTypeB\003\340A\001H\004\210\001\001B\020\n" + "\016_midroll_indexB\030\n" + "\026_reverse_midroll_indexB\017\n\r" + "_pod_positionB\020\n" + "\016_position_typeB\016\n" + "\014_bumper_type\"?\n" + "\024DataSegmentTargeting\022\'\n" - + "\032has_data_segment_targeting\030\002 \001(\010B\003\340A\003B\302\001\n" - + "\033com.google.ads.admanager.v1B\016TargetingProtoP\001Z@google.golang.org/genpr" - + "oto/googleapis/ads/admanager/v1;admanage" - + "r\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads" - + "\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\032has_data_segment_targeting\030\002 \001(\010B\003\340A\003\"\276\002\n" + + "\020ContentTargeting\022B\n" + + "\020targeted_content\030\005 \003(\tB(\340A\001\372A\"\n" + + " admanager.googleapis.com/Content\022B\n" + + "\020excluded_content\030\006 \003(\tB(\340A\001\372A\"\n" + + " admanager.googleapis.com/Content\022P\n" + + "\030targeted_content_bundles\030\007 \003(\tB.\340A\001\372A(\n" + + "&admanager.googleapis.com/ContentBundle\022P\n" + + "\030excluded_content_bundles\030\010 \003(\tB.\340A\001\372A(\n" + + "&admanager.googleapis.com/ContentBundle\"\216\001\n" + + "\032MobileApplicationTargeting\022c\n" + + "\025first_party_targeting\030\001 \001(\0132=.google.ads.adm" + + "anager.v1.FirstPartyMobileApplicationTargetingB\003\340A\001H\000B\013\n" + + "\ttargeting\"\300\001\n" + + "$FirstPartyMobileApplicationTargeting\022K\n" + + "\025targeted_applications\030\003 \003(\tB,\340A\001\372A&\n" + + "$admanager.googleapis.com/Application\022K\n" + + "\025excluded_applications\030\004 \003(\tB,\340A\001\372A&\n" + + "$admanager.googleapis.com/ApplicationB\302\001\n" + + "\033com.google.ads.admanager.v1B\016TargetingProtoP\001Z@google." + + "golang.org/genproto/googleapis/ads/adman" + + "ager/v1;admanager\252\002\027Google.Ads.AdManager" + + ".V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::" + + "Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -237,6 +358,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserDomainTargeting", "VideoPositionTargeting", "DataSegmentTargeting", + "ContentTargeting", + "MobileApplicationTargeting", }); internal_static_google_ads_admanager_v1_GeoTargeting_descriptor = getDescriptor().getMessageTypes().get(1); @@ -252,7 +375,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_TechnologyTargeting_descriptor, new java.lang.String[] { - "BandwidthTargeting", "DeviceCategoryTargeting", "OperatingSystemTargeting", + "BandwidthTargeting", + "BrowserTargeting", + "BrowserLanguageTargeting", + "DeviceCapabilityTargeting", + "DeviceCategoryTargeting", + "DeviceManufacturerTargeting", + "MobileCarrierTargeting", + "OperatingSystemTargeting", }); internal_static_google_ads_admanager_v1_BandwidthTargeting_descriptor = getDescriptor().getMessageTypes().get(3); @@ -262,16 +392,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TargetedBandwidthGroups", "ExcludedBandwidthGroups", }); - internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor = + internal_static_google_ads_admanager_v1_BrowserTargeting_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_BrowserTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BrowserTargeting_descriptor, + new java.lang.String[] { + "TargetedBrowsers", "ExcludedBrowsers", + }); + internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BrowserLanguageTargeting_descriptor, + new java.lang.String[] { + "TargetedBrowserLanguages", "ExcludedBrowserLanguages", + }); + internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor, new java.lang.String[] { "TargetedCategories", "ExcludedCategories", }); + internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DeviceCapabilityTargeting_descriptor, + new java.lang.String[] { + "TargetedCapabilities", "ExcludedCapabilities", + }); + internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DeviceManufacturerTargeting_descriptor, + new java.lang.String[] { + "TargetedDeviceManufacturers", + "ExcludedDeviceManufacturers", + "TargetedMobileDevices", + "ExcludedMobileDevices", + "TargetedMobileDeviceSubmodels", + "ExcludedMobileDeviceSubmodels", + }); + internal_static_google_ads_admanager_v1_MobileCarrierTargeting_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_ads_admanager_v1_MobileCarrierTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_MobileCarrierTargeting_descriptor, + new java.lang.String[] { + "TargetedMobileCarriers", "ExcludedMobileCarriers", + }); internal_static_google_ads_admanager_v1_OperatingSystemTargeting_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(10); internal_static_google_ads_admanager_v1_OperatingSystemTargeting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_OperatingSystemTargeting_descriptor, @@ -282,7 +457,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExcludedOperatingSystemVersions", }); internal_static_google_ads_admanager_v1_InventoryTargeting_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(11); internal_static_google_ads_admanager_v1_InventoryTargeting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_InventoryTargeting_descriptor, @@ -290,7 +465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetedAdUnits", "ExcludedAdUnits", "TargetedPlacements", }); internal_static_google_ads_admanager_v1_AdUnitTargeting_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(12); internal_static_google_ads_admanager_v1_AdUnitTargeting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_AdUnitTargeting_descriptor, @@ -298,7 +473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeDescendants", "AdUnit", }); internal_static_google_ads_admanager_v1_RequestPlatformTargeting_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(13); internal_static_google_ads_admanager_v1_RequestPlatformTargeting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_RequestPlatformTargeting_descriptor, @@ -306,7 +481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestPlatforms", }); internal_static_google_ads_admanager_v1_CustomTargeting_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(14); internal_static_google_ads_admanager_v1_CustomTargeting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_CustomTargeting_descriptor, @@ -314,23 +489,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomTargetingClauses", }); internal_static_google_ads_admanager_v1_CustomTargetingClause_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(15); internal_static_google_ads_admanager_v1_CustomTargetingClause_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_CustomTargetingClause_descriptor, new java.lang.String[] { - "CustomTargetingLiterals", + "CustomTargetingLiterals", "AudienceSegmentTargetings", "CmsMetadataTargetings", }); internal_static_google_ads_admanager_v1_CustomTargetingLiteral_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(16); internal_static_google_ads_admanager_v1_CustomTargetingLiteral_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_CustomTargetingLiteral_descriptor, new java.lang.String[] { "Negative", "CustomTargetingKey", "CustomTargetingValues", }); + internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_AudienceSegmentTargeting_descriptor, + new java.lang.String[] { + "Negative", "AudienceSegments", + }); + internal_static_google_ads_admanager_v1_CmsMetadataTargeting_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_ads_admanager_v1_CmsMetadataTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CmsMetadataTargeting_descriptor, + new java.lang.String[] { + "Negative", "CmsMetadataValues", + }); internal_static_google_ads_admanager_v1_UserDomainTargeting_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(19); internal_static_google_ads_admanager_v1_UserDomainTargeting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_UserDomainTargeting_descriptor, @@ -338,7 +529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetedUserDomains", "ExcludedUserDomains", }); internal_static_google_ads_admanager_v1_VideoPositionTargeting_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(20); internal_static_google_ads_admanager_v1_VideoPositionTargeting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_VideoPositionTargeting_descriptor, @@ -346,7 +537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VideoPositions", }); internal_static_google_ads_admanager_v1_VideoPosition_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(21); internal_static_google_ads_admanager_v1_VideoPosition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_VideoPosition_descriptor, @@ -354,13 +545,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MidrollIndex", "ReverseMidrollIndex", "PodPosition", "PositionType", "BumperType", }); internal_static_google_ads_admanager_v1_DataSegmentTargeting_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(22); internal_static_google_ads_admanager_v1_DataSegmentTargeting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_DataSegmentTargeting_descriptor, new java.lang.String[] { "HasDataSegmentTargeting", }); + internal_static_google_ads_admanager_v1_ContentTargeting_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_ads_admanager_v1_ContentTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ContentTargeting_descriptor, + new java.lang.String[] { + "TargetedContent", + "ExcludedContent", + "TargetedContentBundles", + "ExcludedContentBundles", + }); + internal_static_google_ads_admanager_v1_MobileApplicationTargeting_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_ads_admanager_v1_MobileApplicationTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_MobileApplicationTargeting_descriptor, + new java.lang.String[] { + "FirstPartyTargeting", "Targeting", + }); + internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_FirstPartyMobileApplicationTargeting_descriptor, + new java.lang.String[] { + "TargetedApplications", "ExcludedApplications", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnum.java index 366569118886..d1530f9261e3 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnum.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnum.java @@ -94,6 +94,16 @@ public enum TaxonomyType implements com.google.protobuf.ProtocolMessageEnum { * TAXONOMY_IAB_AUDIENCE_1_1 = 3; */ TAXONOMY_IAB_AUDIENCE_1_1(3), + /** + * + * + *
    +     * The IAB Content Taxonomy v1.0.
    +     * 
    + * + * TAXONOMY_IAB_CONTENT_1_0 = 8; + */ + TAXONOMY_IAB_CONTENT_1_0(8), /** * * @@ -159,6 +169,17 @@ public enum TaxonomyType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TAXONOMY_IAB_AUDIENCE_1_1_VALUE = 3; + /** + * + * + *
    +     * The IAB Content Taxonomy v1.0.
    +     * 
    + * + * TAXONOMY_IAB_CONTENT_1_0 = 8; + */ + public static final int TAXONOMY_IAB_CONTENT_1_0_VALUE = 8; + /** * * @@ -231,6 +252,8 @@ public static TaxonomyType forNumber(int value) { return TAXONOMY_TYPE_UNSPECIFIED; case 3: return TAXONOMY_IAB_AUDIENCE_1_1; + case 8: + return TAXONOMY_IAB_CONTENT_1_0; case 4: return TAXONOMY_IAB_CONTENT_2_1; case 6: diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnumProto.java index be31f5325010..f5e00bf6abc4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnumProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyTypeEnumProto.java @@ -42,18 +42,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n0google/ads/admanager/v1/taxonomy_type_" - + "enum.proto\022\027google.ads.admanager.v1\"\345\001\n\020" - + "TaxonomyTypeEnum\"\320\001\n\014TaxonomyType\022\035\n\031TAX" + + "enum.proto\022\027google.ads.admanager.v1\"\203\002\n\020" + + "TaxonomyTypeEnum\"\356\001\n\014TaxonomyType\022\035\n\031TAX" + "ONOMY_TYPE_UNSPECIFIED\020\000\022\035\n\031TAXONOMY_IAB" + "_AUDIENCE_1_1\020\003\022\034\n\030TAXONOMY_IAB_CONTENT_" - + "2_1\020\004\022\034\n\030TAXONOMY_IAB_CONTENT_2_2\020\006\022\034\n\030T" - + "AXONOMY_IAB_CONTENT_3_0\020\005\022(\n$TAXONOMY_GO" - + "OGLE_STRUCTURED_VIDEO_1_0\020\007B\311\001\n\033com.goog" - + "le.ads.admanager.v1B\025TaxonomyTypeEnumPro" - + "toP\001Z@google.golang.org/genproto/googlea" - + "pis/ads/admanager/v1;admanager\252\002\027Google." - + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" - + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "1_0\020\010\022\034\n\030TAXONOMY_IAB_CONTENT_2_1\020\004\022\034\n\030T" + + "AXONOMY_IAB_CONTENT_2_2\020\006\022\034\n\030TAXONOMY_IA" + + "B_CONTENT_3_0\020\005\022(\n$TAXONOMY_GOOGLE_STRUC" + + "TURED_VIDEO_1_0\020\007B\311\001\n\033com.google.ads.adm" + + "anager.v1B\025TaxonomyTypeEnumProtoP\001Z@goog" + + "le.golang.org/genproto/googleapis/ads/ad" + + "manager/v1;admanager\252\002\027Google.Ads.AdMana" + + "ger.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Googl" + + "e::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Team.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Team.java index e482c820d112..408f7117fcac 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Team.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Team.java @@ -41,6 +41,10 @@ private Team(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Team() { name_ = ""; + displayName_ = ""; + description_ = ""; + status_ = 0; + accessType_ = 0; } @java.lang.Override @@ -63,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.Team.class, com.google.ads.admanager.v1.Team.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -118,6 +123,353 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Required. The name of the Team. This value has a maximum length of 127
    +   * characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The name of the Team. This value has a maximum length of 127
    +   * characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the Team. This value has a maximum length of 127
    +   * characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
    +   * Optional. The description of the Team. This value has a maximum length of
    +   * 255 characters.
    +   * 
    + * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. The description of the Team. This value has a maximum length of
    +   * 255 characters.
    +   * 
    + * + * optional string description = 4 [(.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. The description of the Team. This value has a maximum length of
    +   * 255 characters.
    +   * 
    + * + * optional string description = 4 [(.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 STATUS_FIELD_NUMBER = 5; + private int status_ = 0; + + /** + * + * + *
    +   * Output only. The status of the Team. This value determines the visibility
    +   * of the team in the UI.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Output only. The status of the Team. This value determines the visibility
    +   * of the team in the UI.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +   * Output only. The status of the Team. This value determines the visibility
    +   * of the team in the UI.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus getStatus() { + com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus result = + com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus.forNumber(status_); + return result == null + ? com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus.UNRECOGNIZED + : result; + } + + public static final int ALL_COMPANIES_ACCESS_FIELD_NUMBER = 6; + private boolean allCompaniesAccess_ = false; + + /** + * + * + *
    +   * Optional. Whether or not users on this team have access to all companies.
    +   * If this value is true, then an error will be thrown if an attempt is made
    +   * to associate this team with a Company.
    +   * 
    + * + * optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the allCompaniesAccess field is set. + */ + @java.lang.Override + public boolean hasAllCompaniesAccess() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Optional. Whether or not users on this team have access to all companies.
    +   * If this value is true, then an error will be thrown if an attempt is made
    +   * to associate this team with a Company.
    +   * 
    + * + * optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allCompaniesAccess. + */ + @java.lang.Override + public boolean getAllCompaniesAccess() { + return allCompaniesAccess_; + } + + public static final int ALL_INVENTORY_ACCESS_FIELD_NUMBER = 7; + private boolean allInventoryAccess_ = false; + + /** + * + * + *
    +   * Optional. Whether or not users on this team have access to all inventory.
    +   * If this value is true, then an error will be thrown if an attempt is made
    +   * to associate this team with an AdUnit.
    +   * 
    + * + * optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the allInventoryAccess field is set. + */ + @java.lang.Override + public boolean hasAllInventoryAccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Optional. Whether or not users on this team have access to all inventory.
    +   * If this value is true, then an error will be thrown if an attempt is made
    +   * to associate this team with an AdUnit.
    +   * 
    + * + * optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allInventoryAccess. + */ + @java.lang.Override + public boolean getAllInventoryAccess() { + return allInventoryAccess_; + } + + public static final int ACCESS_TYPE_FIELD_NUMBER = 8; + private int accessType_ = 0; + + /** + * + * + *
    +   * Optional. The default access to orders for users on this team.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the accessType field is set. + */ + @java.lang.Override + public boolean hasAccessType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +   * Optional. The default access to orders for users on this team.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for accessType. + */ + @java.lang.Override + public int getAccessTypeValue() { + return accessType_; + } + + /** + * + * + *
    +   * Optional. The default access to orders for users on this team.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The accessType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType getAccessType() { + com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType result = + com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType.forNumber(accessType_); + return result == null + ? com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -135,6 +487,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(5, status_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(6, allCompaniesAccess_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(7, allInventoryAccess_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(8, accessType_); + } getUnknownFields().writeTo(output); } @@ -147,6 +517,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, status_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allCompaniesAccess_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, allInventoryAccess_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, accessType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -163,6 +551,30 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.Team other = (com.google.ads.admanager.v1.Team) obj; if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasAllCompaniesAccess() != other.hasAllCompaniesAccess()) return false; + if (hasAllCompaniesAccess()) { + if (getAllCompaniesAccess() != other.getAllCompaniesAccess()) return false; + } + if (hasAllInventoryAccess() != other.hasAllInventoryAccess()) return false; + if (hasAllInventoryAccess()) { + if (getAllInventoryAccess() != other.getAllInventoryAccess()) return false; + } + if (hasAccessType() != other.hasAccessType()) return false; + if (hasAccessType()) { + if (accessType_ != other.accessType_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,6 +588,30 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasAllCompaniesAccess()) { + hash = (37 * hash) + ALL_COMPANIES_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllCompaniesAccess()); + } + if (hasAllInventoryAccess()) { + hash = (37 * hash) + ALL_INVENTORY_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllInventoryAccess()); + } + if (hasAccessType()) { + hash = (37 * hash) + ACCESS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + accessType_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -316,6 +752,12 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + displayName_ = ""; + description_ = ""; + status_ = 0; + allCompaniesAccess_ = false; + allInventoryAccess_ = false; + accessType_ = 0; return this; } @@ -354,6 +796,32 @@ private void buildPartial0(com.google.ads.admanager.v1.Team result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.allCompaniesAccess_ = allCompaniesAccess_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.allInventoryAccess_ = allInventoryAccess_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.accessType_ = accessType_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -406,6 +874,28 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Team other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasStatus()) { + setStatus(other.getStatus()); + } + if (other.hasAllCompaniesAccess()) { + setAllCompaniesAccess(other.getAllCompaniesAccess()); + } + if (other.hasAllInventoryAccess()) { + setAllInventoryAccess(other.getAllInventoryAccess()); + } + if (other.hasAccessType()) { + setAccessType(other.getAccessType()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -438,11 +928,47 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - default: + case 26: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + allCompaniesAccess_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + allInventoryAccess_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + accessType_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } break; } // default: } // switch (tag) @@ -573,6 +1099,695 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Required. The name of the Team. This value has a maximum length of 127
    +     * characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The name of the Team. This value has a maximum length of 127
    +     * characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the Team. This value has a maximum length of 127
    +     * characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the Team. This value has a maximum length of 127
    +     * characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the Team. This value has a maximum length of 127
    +     * characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the Team. This value has a maximum length of 127
    +     * characters.
    +     * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
    +     * Optional. The description of the Team. This value has a maximum length of
    +     * 255 characters.
    +     * 
    + * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. The description of the Team. This value has a maximum length of
    +     * 255 characters.
    +     * 
    + * + * optional string description = 4 [(.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. The description of the Team. This value has a maximum length of
    +     * 255 characters.
    +     * 
    + * + * optional string description = 4 [(.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. The description of the Team. This value has a maximum length of
    +     * 255 characters.
    +     * 
    + * + * optional string description = 4 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The description of the Team. This value has a maximum length of
    +     * 255 characters.
    +     * 
    + * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The description of the Team. This value has a maximum length of
    +     * 255 characters.
    +     * 
    + * + * optional string description = 4 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
    +     * Output only. The status of the Team. This value determines the visibility
    +     * of the team in the UI.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Output only. The status of the Team. This value determines the visibility
    +     * of the team in the UI.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
    +     * Output only. The status of the Team. This value determines the visibility
    +     * of the team in the UI.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of the Team. This value determines the visibility
    +     * of the team in the UI.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus getStatus() { + com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus result = + com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus.forNumber(status_); + return result == null + ? com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The status of the Team. This value determines the visibility
    +     * of the team in the UI.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The status of the Team. This value determines the visibility
    +     * of the team in the UI.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = 0; + onChanged(); + return this; + } + + private boolean allCompaniesAccess_; + + /** + * + * + *
    +     * Optional. Whether or not users on this team have access to all companies.
    +     * If this value is true, then an error will be thrown if an attempt is made
    +     * to associate this team with a Company.
    +     * 
    + * + * optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allCompaniesAccess field is set. + */ + @java.lang.Override + public boolean hasAllCompaniesAccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Optional. Whether or not users on this team have access to all companies.
    +     * If this value is true, then an error will be thrown if an attempt is made
    +     * to associate this team with a Company.
    +     * 
    + * + * optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allCompaniesAccess. + */ + @java.lang.Override + public boolean getAllCompaniesAccess() { + return allCompaniesAccess_; + } + + /** + * + * + *
    +     * Optional. Whether or not users on this team have access to all companies.
    +     * If this value is true, then an error will be thrown if an attempt is made
    +     * to associate this team with a Company.
    +     * 
    + * + * optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allCompaniesAccess to set. + * @return This builder for chaining. + */ + public Builder setAllCompaniesAccess(boolean value) { + + allCompaniesAccess_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Whether or not users on this team have access to all companies.
    +     * If this value is true, then an error will be thrown if an attempt is made
    +     * to associate this team with a Company.
    +     * 
    + * + * optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllCompaniesAccess() { + bitField0_ = (bitField0_ & ~0x00000010); + allCompaniesAccess_ = false; + onChanged(); + return this; + } + + private boolean allInventoryAccess_; + + /** + * + * + *
    +     * Optional. Whether or not users on this team have access to all inventory.
    +     * If this value is true, then an error will be thrown if an attempt is made
    +     * to associate this team with an AdUnit.
    +     * 
    + * + * optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allInventoryAccess field is set. + */ + @java.lang.Override + public boolean hasAllInventoryAccess() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. Whether or not users on this team have access to all inventory.
    +     * If this value is true, then an error will be thrown if an attempt is made
    +     * to associate this team with an AdUnit.
    +     * 
    + * + * optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allInventoryAccess. + */ + @java.lang.Override + public boolean getAllInventoryAccess() { + return allInventoryAccess_; + } + + /** + * + * + *
    +     * Optional. Whether or not users on this team have access to all inventory.
    +     * If this value is true, then an error will be thrown if an attempt is made
    +     * to associate this team with an AdUnit.
    +     * 
    + * + * optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allInventoryAccess to set. + * @return This builder for chaining. + */ + public Builder setAllInventoryAccess(boolean value) { + + allInventoryAccess_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Whether or not users on this team have access to all inventory.
    +     * If this value is true, then an error will be thrown if an attempt is made
    +     * to associate this team with an AdUnit.
    +     * 
    + * + * optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllInventoryAccess() { + bitField0_ = (bitField0_ & ~0x00000020); + allInventoryAccess_ = false; + onChanged(); + return this; + } + + private int accessType_ = 0; + + /** + * + * + *
    +     * Optional. The default access to orders for users on this team.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the accessType field is set. + */ + @java.lang.Override + public boolean hasAccessType() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +     * Optional. The default access to orders for users on this team.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for accessType. + */ + @java.lang.Override + public int getAccessTypeValue() { + return accessType_; + } + + /** + * + * + *
    +     * Optional. The default access to orders for users on this team.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for accessType to set. + * @return This builder for chaining. + */ + public Builder setAccessTypeValue(int value) { + accessType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The default access to orders for users on this team.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The accessType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType getAccessType() { + com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType result = + com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType.forNumber(accessType_); + return result == null + ? com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. The default access to orders for users on this team.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The accessType to set. + * @return This builder for chaining. + */ + public Builder setAccessType( + com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + accessType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The default access to orders for users on this team.
    +     * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAccessType() { + bitField0_ = (bitField0_ & ~0x00000040); + accessType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamAccessTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamAccessTypeEnum.java new file mode 100644 index 000000000000..944e94f5aa9a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamAccessTypeEnum.java @@ -0,0 +1,621 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [TeamAccessType][google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.TeamAccessTypeEnum} + */ +public final class TeamAccessTypeEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.TeamAccessTypeEnum) + TeamAccessTypeEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TeamAccessTypeEnum.newBuilder() to construct. + private TeamAccessTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TeamAccessTypeEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TeamAccessTypeEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.TeamAccessTypeEnum.class, + com.google.ads.admanager.v1.TeamAccessTypeEnum.Builder.class); + } + + /** + * + * + *
    +   * Represents the types of team access supported for orders.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType} + */ + public enum TeamAccessType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * TEAM_ACCESS_TYPE_UNSPECIFIED = 0; + */ + TEAM_ACCESS_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * The level of access in which team members can't view or edit a team's
    +     * orders.
    +     * 
    + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
    +     * The level of access in which team members can only view a team's orders.
    +     * 
    + * + * READ_ONLY = 2; + */ + READ_ONLY(2), + /** + * + * + *
    +     * The level of access in which team members can view and edit a team's
    +     * orders.
    +     * 
    + * + * READ_WRITE = 3; + */ + READ_WRITE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * TEAM_ACCESS_TYPE_UNSPECIFIED = 0; + */ + public static final int TEAM_ACCESS_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The level of access in which team members can't view or edit a team's
    +     * orders.
    +     * 
    + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
    +     * The level of access in which team members can only view a team's orders.
    +     * 
    + * + * READ_ONLY = 2; + */ + public static final int READ_ONLY_VALUE = 2; + + /** + * + * + *
    +     * The level of access in which team members can view and edit a team's
    +     * orders.
    +     * 
    + * + * READ_WRITE = 3; + */ + public static final int READ_WRITE_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 TeamAccessType 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 TeamAccessType forNumber(int value) { + switch (value) { + case 0: + return TEAM_ACCESS_TYPE_UNSPECIFIED; + case 1: + return NONE; + case 2: + return READ_ONLY; + case 3: + return READ_WRITE; + 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 TeamAccessType findValueByNumber(int number) { + return TeamAccessType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamAccessTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final TeamAccessType[] VALUES = values(); + + public static TeamAccessType 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 TeamAccessType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType) + } + + 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.admanager.v1.TeamAccessTypeEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.TeamAccessTypeEnum other = + (com.google.ads.admanager.v1.TeamAccessTypeEnum) 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.admanager.v1.TeamAccessTypeEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum 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.admanager.v1.TeamAccessTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum 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.admanager.v1.TeamAccessTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.TeamAccessTypeEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [TeamAccessType][google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.TeamAccessTypeEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.TeamAccessTypeEnum) + com.google.ads.admanager.v1.TeamAccessTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.TeamAccessTypeEnum.class, + com.google.ads.admanager.v1.TeamAccessTypeEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.TeamAccessTypeEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.TeamAccessTypeEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.TeamAccessTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.TeamAccessTypeEnum build() { + com.google.ads.admanager.v1.TeamAccessTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.TeamAccessTypeEnum buildPartial() { + com.google.ads.admanager.v1.TeamAccessTypeEnum result = + new com.google.ads.admanager.v1.TeamAccessTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.TeamAccessTypeEnum) { + return mergeFrom((com.google.ads.admanager.v1.TeamAccessTypeEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.TeamAccessTypeEnum other) { + if (other == com.google.ads.admanager.v1.TeamAccessTypeEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.TeamAccessTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.TeamAccessTypeEnum) + private static final com.google.ads.admanager.v1.TeamAccessTypeEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.TeamAccessTypeEnum(); + } + + public static com.google.ads.admanager.v1.TeamAccessTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamAccessTypeEnum 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.admanager.v1.TeamAccessTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamAccessTypeEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamAccessTypeEnumOrBuilder.java new file mode 100644 index 000000000000..b63f60b69feb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamAccessTypeEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface TeamAccessTypeEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.TeamAccessTypeEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamEnumsProto.java new file mode 100644 index 000000000000..42ce96941518 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamEnumsProto.java @@ -0,0 +1,79 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class TeamEnumsProto { + private TeamEnumsProto() {} + + 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_admanager_v1_TeamStatusEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_TeamStatusEnum_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_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/admanager/v1/team_enums.pro" + + "to\022\027google.ads.admanager.v1\"U\n\016TeamStatu" + + "sEnum\"C\n\nTeamStatus\022\033\n\027TEAM_STATUS_UNSPE" + + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"q\n\022Te" + + "amAccessTypeEnum\"[\n\016TeamAccessType\022 \n\034TE" + + "AM_ACCESS_TYPE_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\r" + + "\n\tREAD_ONLY\020\002\022\016\n\nREAD_WRITE\020\003B\302\001\n\033com.go" + + "ogle.ads.admanager.v1B\016TeamEnumsProtoP\001Z" + + "@google.golang.org/genproto/googleapis/a" + + "ds/admanager/v1;admanager\252\002\027Google.Ads.A" + + "dManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032" + + "Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_TeamStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_TeamStatusEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_TeamStatusEnum_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_TeamAccessTypeEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java index d9f9f3f749ce..8bb7d0f7b1bc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java @@ -41,23 +41,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n+google/ads/admanager/v1/team_messages." - + "proto\022\027google.ads.admanager.v1\032\037google/a" - + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\"p\n\004Team\022\021\n\004name\030\001 \001(\tB\003\340A\010:U\352" - + "AR\n\035admanager.googleapis.com/Team\022$netwo" - + "rks/{network_code}/teams/{team}*\005teams2\004" - + "teamB\305\001\n\033com.google.ads.admanager.v1B\021Te" - + "amMessagesProtoP\001Z@google.golang.org/gen" - + "proto/googleapis/ads/admanager/v1;admana" - + "ger\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\A" - + "ds\\AdManager\\V1\352\002\032Google::Ads::AdManager" - + "::V1b\006proto3" + "\n" + + "+google/ads/admanager/v1/team_messages." + + "proto\022\027google.ads.admanager.v1\032(google/a" + + "ds/admanager/v1/team_enums.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/resource.proto\"\226\004\n" + + "\004Team\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\003 \001(\tB\003\340A\002H\000\210\001\001\022\035\n" + + "\013description\030\004 \001(\tB\003\340A\001H\001\210\001\001\022L\n" + + "\006status\030\005 \001(\0162" + + "2.google.ads.admanager.v1.TeamStatusEnum.TeamStatusB\003\340A\003H\002\210\001\001\022&\n" + + "\024all_companies_access\030\006 \001(\010B\003\340A\001H\003\210\001\001\022&\n" + + "\024all_inventory_access\030\007 \001(\010B\003\340A\001H\004\210\001\001\022Y\n" + + "\013access_type\030\010 \001" + + "(\0162:.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessTypeB\003\340A\001H\005\210\001\001:U\352AR\n" + + "\035admanager.googleapis.com/Team\022$networks/{" + + "network_code}/teams/{team}*\005teams2\004teamB\017\n\r" + + "_display_nameB\016\n" + + "\014_descriptionB\t\n" + + "\007_statusB\027\n" + + "\025_all_companies_accessB\027\n" + + "\025_all_inventory_accessB\016\n" + + "\014_access_typeB\305\001\n" + + "\033com.google.ads.admanager.v1B\021TeamMessagesProto" + + "P\001Z@google.golang.org/genproto/googleapi" + + "s/ads/admanager/v1;admanager\252\002\027Google.Ad" + + "s.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1" + + "\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.TeamEnumsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), }); @@ -68,6 +85,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_ads_admanager_v1_Team_descriptor, new java.lang.String[] { "Name", + "DisplayName", + "Description", + "Status", + "AllCompaniesAccess", + "AllInventoryAccess", + "AccessType", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -75,6 +98,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.ads.admanager.v1.TeamEnumsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamName.java new file mode 100644 index 000000000000..1c8ae16a6f18 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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.admanager.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 TeamName implements ResourceName { + private static final PathTemplate NETWORK_CODE_TEAM = + PathTemplate.createWithoutUrlEncoding("networks/{network_code}/teams/{team}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String team; + + @Deprecated + protected TeamName() { + networkCode = null; + team = null; + } + + private TeamName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + team = Preconditions.checkNotNull(builder.getTeam()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getTeam() { + return team; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TeamName of(String networkCode, String team) { + return newBuilder().setNetworkCode(networkCode).setTeam(team).build(); + } + + public static String format(String networkCode, String team) { + return newBuilder().setNetworkCode(networkCode).setTeam(team).build().toString(); + } + + public static TeamName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_TEAM.validatedMatch( + formattedString, "TeamName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("team")); + } + + 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 (TeamName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_TEAM.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (team != null) { + fieldMapBuilder.put("team", team); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_TEAM.instantiate("network_code", networkCode, "team", team); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TeamName that = ((TeamName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.team, that.team); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(team); + return h; + } + + /** Builder for networks/{network_code}/teams/{team}. */ + public static class Builder { + private String networkCode; + private String team; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getTeam() { + return team; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setTeam(String team) { + this.team = team; + return this; + } + + private Builder(TeamName teamName) { + this.networkCode = teamName.networkCode; + this.team = teamName.team; + } + + public TeamName build() { + return new TeamName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamOrBuilder.java index 879fcb7af326..80a1d3c66106 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamOrBuilder.java @@ -51,4 +51,241 @@ public interface TeamOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The name of the Team. This value has a maximum length of 127
    +   * characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
    +   * Required. The name of the Team. This value has a maximum length of 127
    +   * characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Required. The name of the Team. This value has a maximum length of 127
    +   * characters.
    +   * 
    + * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
    +   * Optional. The description of the Team. This value has a maximum length of
    +   * 255 characters.
    +   * 
    + * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
    +   * Optional. The description of the Team. This value has a maximum length of
    +   * 255 characters.
    +   * 
    + * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
    +   * Optional. The description of the Team. This value has a maximum length of
    +   * 255 characters.
    +   * 
    + * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
    +   * Output only. The status of the Team. This value determines the visibility
    +   * of the team in the UI.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
    +   * Output only. The status of the Team. This value determines the visibility
    +   * of the team in the UI.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
    +   * Output only. The status of the Team. This value determines the visibility
    +   * of the team in the UI.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.ads.admanager.v1.TeamStatusEnum.TeamStatus getStatus(); + + /** + * + * + *
    +   * Optional. Whether or not users on this team have access to all companies.
    +   * If this value is true, then an error will be thrown if an attempt is made
    +   * to associate this team with a Company.
    +   * 
    + * + * optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the allCompaniesAccess field is set. + */ + boolean hasAllCompaniesAccess(); + + /** + * + * + *
    +   * Optional. Whether or not users on this team have access to all companies.
    +   * If this value is true, then an error will be thrown if an attempt is made
    +   * to associate this team with a Company.
    +   * 
    + * + * optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allCompaniesAccess. + */ + boolean getAllCompaniesAccess(); + + /** + * + * + *
    +   * Optional. Whether or not users on this team have access to all inventory.
    +   * If this value is true, then an error will be thrown if an attempt is made
    +   * to associate this team with an AdUnit.
    +   * 
    + * + * optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the allInventoryAccess field is set. + */ + boolean hasAllInventoryAccess(); + + /** + * + * + *
    +   * Optional. Whether or not users on this team have access to all inventory.
    +   * If this value is true, then an error will be thrown if an attempt is made
    +   * to associate this team with an AdUnit.
    +   * 
    + * + * optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allInventoryAccess. + */ + boolean getAllInventoryAccess(); + + /** + * + * + *
    +   * Optional. The default access to orders for users on this team.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the accessType field is set. + */ + boolean hasAccessType(); + + /** + * + * + *
    +   * Optional. The default access to orders for users on this team.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for accessType. + */ + int getAccessTypeValue(); + + /** + * + * + *
    +   * Optional. The default access to orders for users on this team.
    +   * 
    + * + * + * optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The accessType. + */ + com.google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType getAccessType(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamServiceProto.java new file mode 100644 index 000000000000..d59ff562b6b3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamServiceProto.java @@ -0,0 +1,314 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class TeamServiceProto { + private TeamServiceProto() {} + + 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_admanager_v1_GetTeamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetTeamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListTeamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListTeamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListTeamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListTeamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreateTeamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreateTeamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdateTeamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdateTeamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_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/admanager/v1/team_service.p" + + "roto\022\027google.ads.admanager.v1\032+google/ad" + + "s/admanager/v1/team_messages.proto\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"E\n" + + "\016GetTeamRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035admanager.googleapis.com/Team\"\274\001\n" + + "\020ListTeamsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"n\n" + + "\021ListTeamsResponse\022,\n" + + "\005teams\030\001 \003(\0132\035.google.ads.admanager.v1.Team\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\005\"\177\n" + + "\021CreateTeamRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0220\n" + + "\004team\030\002 \001(\0132\035.google.ads.admanager.v1.TeamB\003\340A\002\"\226\001\n" + + "\027BatchCreateTeamsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022A\n" + + "\010requests\030\002 \003(\0132*.google." + + "ads.admanager.v1.CreateTeamRequestB\003\340A\002\"H\n" + + "\030BatchCreateTeamsResponse\022,\n" + + "\005teams\030\001 \003(\0132\035.google.ads.admanager.v1.Team\"{\n" + + "\021UpdateTeamRequest\0220\n" + + "\004team\030\001 \001(\0132\035.google.ads.admanager.v1.TeamB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\226\001\n" + + "\027BatchUpdateTeamsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022A\n" + + "\010requests\030\002" + + " \003(\0132*.google.ads.admanager.v1.UpdateTeamRequestB\003\340A\002\"H\n" + + "\030BatchUpdateTeamsResponse\022,\n" + + "\005teams\030\001 \003(\0132\035.google.ads.admanager.v1.Team\"\213\001\n" + + "\031BatchActivateTeamsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0224\n" + + "\005names\030\002 \003(\tB%\340A\002\372A\037\n" + + "\035admanager.googleapis.com/Team\"\034\n" + + "\032BatchActivateTeamsResponse\"\215\001\n" + + "\033BatchDeactivateTeamsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0224\n" + + "\005names\030\002 \003(\tB%\340A\002\372A\037\n" + + "\035admanager.googleapis.com/Team\"\036\n" + + "\034BatchDeactivateTeamsResponse2\272\013\n" + + "\013TeamService\022\177\n" + + "\007GetTeam\022\'.google.ads.admanager.v1.GetTeamReques" + + "t\032\035.google.ads.admanager.v1.Team\",\332A\004nam" + + "e\202\323\344\223\002\037\022\035/v1/{name=networks/*/teams/*}\022\222\001\n" + + "\tListTeams\022).google.ads.admanager.v1.ListTeamsRequest\032*.google.ads.admanager.v" + + "1.ListTeamsResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent=networks/*}/teams\022\222\001\n\n" + + "CreateTeam\022*.google.ads.admanager.v1.CreateTeamR" + + "equest\032\035.google.ads.admanager.v1.Team\"9\332" + + "A\013parent,team\202\323\344\223\002%\"\035/v1/{parent=networks/*}/teams:\004team\022\277\001\n" + + "\020BatchCreateTeams\0220.google.ads.admanager.v1.BatchCreateTeams" + + "Request\0321.google.ads.admanager.v1.BatchC" + + "reateTeamsResponse\"F\332A\017parent,requests\202\323" + + "\344\223\002.\")/v1/{parent=networks/*}/teams:batchCreate:\001*\022\234\001\n\n" + + "UpdateTeam\022*.google.ads.admanager.v1.UpdateTeamRequest\032\035.google.a" + + "ds.admanager.v1.Team\"C\332A\020team,update_mas" + + "k\202\323\344\223\002*2\"/v1/{team.name=networks/*/teams/*}:\004team\022\277\001\n" + + "\020BatchUpdateTeams\0220.google.ads.admanager.v1.BatchUpdateTeamsRequest" + + "\0321.google.ads.admanager.v1.BatchUpdateTe" + + "amsResponse\"F\332A\017parent,requests\202\323\344\223\002.\")/" + + "v1/{parent=networks/*}/teams:batchUpdate:\001*\022\304\001\n" + + "\022BatchActivateTeams\0222.google.ads.admanager.v1.BatchActivateTeamsRequest\0323" + + ".google.ads.admanager.v1.BatchActivateTe" + + "amsResponse\"E\332A\014parent,names\202\323\344\223\0020\"+/v1/" + + "{parent=networks/*}/teams:batchActivate:\001*\022\314\001\n" + + "\024BatchDeactivateTeams\0224.google.ads.admanager.v1.BatchDeactivateTeamsReques" + + "t\0325.google.ads.admanager.v1.BatchDeactiv" + + "ateTeamsResponse\"G\332A\014parent,names\202\323\344\223\0022\"" + + "-/v1/{parent=networks/*}/teams:batchDeac" + + "tivate:\001*\032G\312A\030admanager.googleapis.com\322A" + + ")https://www.googleapis.com/auth/admanagerB\304\001\n" + + "\033com.google.ads.admanager.v1B\020TeamServiceProtoP\001Z@google.golang.org/genpro" + + "to/googleapis/ads/admanager/v1;admanager" + + "\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\" + + "AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.TeamMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetTeamRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetTeamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetTeamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListTeamsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListTeamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListTeamsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListTeamsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListTeamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListTeamsResponse_descriptor, + new java.lang.String[] { + "Teams", "NextPageToken", "TotalSize", + }); + internal_static_google_ads_admanager_v1_CreateTeamRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreateTeamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreateTeamRequest_descriptor, + new java.lang.String[] { + "Parent", "Team", + }); + internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateTeamsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateTeamsResponse_descriptor, + new java.lang.String[] { + "Teams", + }); + internal_static_google_ads_admanager_v1_UpdateTeamRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_admanager_v1_UpdateTeamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdateTeamRequest_descriptor, + new java.lang.String[] { + "Team", "UpdateMask", + }); + internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateTeamsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateTeamsResponse_descriptor, + new java.lang.String[] { + "Teams", + }); + internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivateTeamsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivateTeamsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateTeamsResponse_descriptor, + new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.TeamMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamStatusEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamStatusEnum.java new file mode 100644 index 000000000000..0ed9fc763860 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamStatusEnum.java @@ -0,0 +1,594 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Wrapper message for
    + * [TeamStatus][google.ads.admanager.v1.TeamStatusEnum.TeamStatus]
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.TeamStatusEnum} + */ +public final class TeamStatusEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.TeamStatusEnum) + TeamStatusEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TeamStatusEnum.newBuilder() to construct. + private TeamStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TeamStatusEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TeamStatusEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.TeamStatusEnum.class, + com.google.ads.admanager.v1.TeamStatusEnum.Builder.class); + } + + /** + * + * + *
    +   * Represents the status of a team, whether it is active or inactive.
    +   * 
    + * + * Protobuf enum {@code google.ads.admanager.v1.TeamStatusEnum.TeamStatus} + */ + public enum TeamStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * TEAM_STATUS_UNSPECIFIED = 0; + */ + TEAM_STATUS_UNSPECIFIED(0), + /** + * + * + *
    +     * The status of an active team.
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * The status of an inactive team.
    +     * 
    + * + * INACTIVE = 2; + */ + INACTIVE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * TEAM_STATUS_UNSPECIFIED = 0; + */ + public static final int TEAM_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The status of an active team.
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
    +     * The status of an inactive team.
    +     * 
    + * + * INACTIVE = 2; + */ + public static final int INACTIVE_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 TeamStatus 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 TeamStatus forNumber(int value) { + switch (value) { + case 0: + return TEAM_STATUS_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return INACTIVE; + 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 TeamStatus findValueByNumber(int number) { + return TeamStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamStatusEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final TeamStatus[] VALUES = values(); + + public static TeamStatus 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 TeamStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.TeamStatusEnum.TeamStatus) + } + + 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.admanager.v1.TeamStatusEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.TeamStatusEnum other = + (com.google.ads.admanager.v1.TeamStatusEnum) 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.admanager.v1.TeamStatusEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum 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.admanager.v1.TeamStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum 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.admanager.v1.TeamStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.TeamStatusEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Wrapper message for
    +   * [TeamStatus][google.ads.admanager.v1.TeamStatusEnum.TeamStatus]
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.TeamStatusEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.TeamStatusEnum) + com.google.ads.admanager.v1.TeamStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.TeamStatusEnum.class, + com.google.ads.admanager.v1.TeamStatusEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.TeamStatusEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.admanager.v1.TeamEnumsProto + .internal_static_google_ads_admanager_v1_TeamStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.TeamStatusEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.TeamStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.TeamStatusEnum build() { + com.google.ads.admanager.v1.TeamStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.TeamStatusEnum buildPartial() { + com.google.ads.admanager.v1.TeamStatusEnum result = + new com.google.ads.admanager.v1.TeamStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.TeamStatusEnum) { + return mergeFrom((com.google.ads.admanager.v1.TeamStatusEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.TeamStatusEnum other) { + if (other == com.google.ads.admanager.v1.TeamStatusEnum.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.TeamStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.TeamStatusEnum) + private static final com.google.ads.admanager.v1.TeamStatusEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.TeamStatusEnum(); + } + + public static com.google.ads.admanager.v1.TeamStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamStatusEnum 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.admanager.v1.TeamStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamStatusEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamStatusEnumOrBuilder.java new file mode 100644 index 000000000000..eecbc816d7a0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamStatusEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface TeamStatusEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.TeamStatusEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargeting.java index 59f611a9153e..9af397b6457f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargeting.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargeting.java @@ -123,6 +123,185 @@ public com.google.ads.admanager.v1.BandwidthTargetingOrBuilder getBandwidthTarge : bandwidthTargeting_; } + public static final int BROWSER_TARGETING_FIELD_NUMBER = 4; + private com.google.ads.admanager.v1.BrowserTargeting browserTargeting_; + + /** + * + * + *
    +   * Optional. Browser targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the browserTargeting field is set. + */ + @java.lang.Override + public boolean hasBrowserTargeting() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. Browser targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The browserTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.BrowserTargeting getBrowserTargeting() { + return browserTargeting_ == null + ? com.google.ads.admanager.v1.BrowserTargeting.getDefaultInstance() + : browserTargeting_; + } + + /** + * + * + *
    +   * Optional. Browser targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.BrowserTargetingOrBuilder getBrowserTargetingOrBuilder() { + return browserTargeting_ == null + ? com.google.ads.admanager.v1.BrowserTargeting.getDefaultInstance() + : browserTargeting_; + } + + public static final int BROWSER_LANGUAGE_TARGETING_FIELD_NUMBER = 5; + private com.google.ads.admanager.v1.BrowserLanguageTargeting browserLanguageTargeting_; + + /** + * + * + *
    +   * Optional. Browser language targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the browserLanguageTargeting field is set. + */ + @java.lang.Override + public boolean hasBrowserLanguageTargeting() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. Browser language targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The browserLanguageTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguageTargeting getBrowserLanguageTargeting() { + return browserLanguageTargeting_ == null + ? com.google.ads.admanager.v1.BrowserLanguageTargeting.getDefaultInstance() + : browserLanguageTargeting_; + } + + /** + * + * + *
    +   * Optional. Browser language targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.BrowserLanguageTargetingOrBuilder + getBrowserLanguageTargetingOrBuilder() { + return browserLanguageTargeting_ == null + ? com.google.ads.admanager.v1.BrowserLanguageTargeting.getDefaultInstance() + : browserLanguageTargeting_; + } + + public static final int DEVICE_CAPABILITY_TARGETING_FIELD_NUMBER = 6; + private com.google.ads.admanager.v1.DeviceCapabilityTargeting deviceCapabilityTargeting_; + + /** + * + * + *
    +   * Optional. Device capability targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceCapabilityTargeting field is set. + */ + @java.lang.Override + public boolean hasDeviceCapabilityTargeting() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Optional. Device capability targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceCapabilityTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapabilityTargeting getDeviceCapabilityTargeting() { + return deviceCapabilityTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCapabilityTargeting.getDefaultInstance() + : deviceCapabilityTargeting_; + } + + /** + * + * + *
    +   * Optional. Device capability targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCapabilityTargetingOrBuilder + getDeviceCapabilityTargetingOrBuilder() { + return deviceCapabilityTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCapabilityTargeting.getDefaultInstance() + : deviceCapabilityTargeting_; + } + public static final int DEVICE_CATEGORY_TARGETING_FIELD_NUMBER = 1; private com.google.ads.admanager.v1.DeviceCategoryTargeting deviceCategoryTargeting_; @@ -141,7 +320,7 @@ public com.google.ads.admanager.v1.BandwidthTargetingOrBuilder getBandwidthTarge */ @java.lang.Override public boolean hasDeviceCategoryTargeting() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -183,6 +362,126 @@ public com.google.ads.admanager.v1.DeviceCategoryTargeting getDeviceCategoryTarg : deviceCategoryTargeting_; } + public static final int DEVICE_MANUFACTURER_TARGETING_FIELD_NUMBER = 7; + private com.google.ads.admanager.v1.DeviceManufacturerTargeting deviceManufacturerTargeting_; + + /** + * + * + *
    +   * Optional. Device manufacturer targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceManufacturerTargeting field is set. + */ + @java.lang.Override + public boolean hasDeviceManufacturerTargeting() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +   * Optional. Device manufacturer targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceManufacturerTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturerTargeting getDeviceManufacturerTargeting() { + return deviceManufacturerTargeting_ == null + ? com.google.ads.admanager.v1.DeviceManufacturerTargeting.getDefaultInstance() + : deviceManufacturerTargeting_; + } + + /** + * + * + *
    +   * Optional. Device manufacturer targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceManufacturerTargetingOrBuilder + getDeviceManufacturerTargetingOrBuilder() { + return deviceManufacturerTargeting_ == null + ? com.google.ads.admanager.v1.DeviceManufacturerTargeting.getDefaultInstance() + : deviceManufacturerTargeting_; + } + + public static final int MOBILE_CARRIER_TARGETING_FIELD_NUMBER = 8; + private com.google.ads.admanager.v1.MobileCarrierTargeting mobileCarrierTargeting_; + + /** + * + * + *
    +   * Optional. Mobile carrier targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mobileCarrierTargeting field is set. + */ + @java.lang.Override + public boolean hasMobileCarrierTargeting() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +   * Optional. Mobile carrier targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mobileCarrierTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrierTargeting getMobileCarrierTargeting() { + return mobileCarrierTargeting_ == null + ? com.google.ads.admanager.v1.MobileCarrierTargeting.getDefaultInstance() + : mobileCarrierTargeting_; + } + + /** + * + * + *
    +   * Optional. Mobile carrier targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.MobileCarrierTargetingOrBuilder + getMobileCarrierTargetingOrBuilder() { + return mobileCarrierTargeting_ == null + ? com.google.ads.admanager.v1.MobileCarrierTargeting.getDefaultInstance() + : mobileCarrierTargeting_; + } + public static final int OPERATING_SYSTEM_TARGETING_FIELD_NUMBER = 2; private com.google.ads.admanager.v1.OperatingSystemTargeting operatingSystemTargeting_; @@ -201,7 +500,7 @@ public com.google.ads.admanager.v1.DeviceCategoryTargeting getDeviceCategoryTarg */ @java.lang.Override public boolean hasOperatingSystemTargeting() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -257,15 +556,30 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(1, getDeviceCategoryTargeting()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(2, getOperatingSystemTargeting()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getBandwidthTargeting()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getBrowserTargeting()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getBrowserLanguageTargeting()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getDeviceCapabilityTargeting()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(7, getDeviceManufacturerTargeting()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(8, getMobileCarrierTargeting()); + } getUnknownFields().writeTo(output); } @@ -275,11 +589,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeviceCategoryTargeting()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getOperatingSystemTargeting()); @@ -287,6 +601,28 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBandwidthTargeting()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBrowserTargeting()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getBrowserLanguageTargeting()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getDeviceCapabilityTargeting()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getDeviceManufacturerTargeting()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMobileCarrierTargeting()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -307,10 +643,32 @@ public boolean equals(final java.lang.Object obj) { if (hasBandwidthTargeting()) { if (!getBandwidthTargeting().equals(other.getBandwidthTargeting())) return false; } + if (hasBrowserTargeting() != other.hasBrowserTargeting()) return false; + if (hasBrowserTargeting()) { + if (!getBrowserTargeting().equals(other.getBrowserTargeting())) return false; + } + if (hasBrowserLanguageTargeting() != other.hasBrowserLanguageTargeting()) return false; + if (hasBrowserLanguageTargeting()) { + if (!getBrowserLanguageTargeting().equals(other.getBrowserLanguageTargeting())) return false; + } + if (hasDeviceCapabilityTargeting() != other.hasDeviceCapabilityTargeting()) return false; + if (hasDeviceCapabilityTargeting()) { + if (!getDeviceCapabilityTargeting().equals(other.getDeviceCapabilityTargeting())) + return false; + } if (hasDeviceCategoryTargeting() != other.hasDeviceCategoryTargeting()) return false; if (hasDeviceCategoryTargeting()) { if (!getDeviceCategoryTargeting().equals(other.getDeviceCategoryTargeting())) return false; } + if (hasDeviceManufacturerTargeting() != other.hasDeviceManufacturerTargeting()) return false; + if (hasDeviceManufacturerTargeting()) { + if (!getDeviceManufacturerTargeting().equals(other.getDeviceManufacturerTargeting())) + return false; + } + if (hasMobileCarrierTargeting() != other.hasMobileCarrierTargeting()) return false; + if (hasMobileCarrierTargeting()) { + if (!getMobileCarrierTargeting().equals(other.getMobileCarrierTargeting())) return false; + } if (hasOperatingSystemTargeting() != other.hasOperatingSystemTargeting()) return false; if (hasOperatingSystemTargeting()) { if (!getOperatingSystemTargeting().equals(other.getOperatingSystemTargeting())) return false; @@ -330,10 +688,30 @@ public int hashCode() { hash = (37 * hash) + BANDWIDTH_TARGETING_FIELD_NUMBER; hash = (53 * hash) + getBandwidthTargeting().hashCode(); } + if (hasBrowserTargeting()) { + hash = (37 * hash) + BROWSER_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getBrowserTargeting().hashCode(); + } + if (hasBrowserLanguageTargeting()) { + hash = (37 * hash) + BROWSER_LANGUAGE_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getBrowserLanguageTargeting().hashCode(); + } + if (hasDeviceCapabilityTargeting()) { + hash = (37 * hash) + DEVICE_CAPABILITY_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getDeviceCapabilityTargeting().hashCode(); + } if (hasDeviceCategoryTargeting()) { hash = (37 * hash) + DEVICE_CATEGORY_TARGETING_FIELD_NUMBER; hash = (53 * hash) + getDeviceCategoryTargeting().hashCode(); } + if (hasDeviceManufacturerTargeting()) { + hash = (37 * hash) + DEVICE_MANUFACTURER_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getDeviceManufacturerTargeting().hashCode(); + } + if (hasMobileCarrierTargeting()) { + hash = (37 * hash) + MOBILE_CARRIER_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getMobileCarrierTargeting().hashCode(); + } if (hasOperatingSystemTargeting()) { hash = (37 * hash) + OPERATING_SYSTEM_TARGETING_FIELD_NUMBER; hash = (53 * hash) + getOperatingSystemTargeting().hashCode(); @@ -481,7 +859,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBandwidthTargetingFieldBuilder(); + getBrowserTargetingFieldBuilder(); + getBrowserLanguageTargetingFieldBuilder(); + getDeviceCapabilityTargetingFieldBuilder(); getDeviceCategoryTargetingFieldBuilder(); + getDeviceManufacturerTargetingFieldBuilder(); + getMobileCarrierTargetingFieldBuilder(); getOperatingSystemTargetingFieldBuilder(); } } @@ -495,11 +878,36 @@ public Builder clear() { bandwidthTargetingBuilder_.dispose(); bandwidthTargetingBuilder_ = null; } + browserTargeting_ = null; + if (browserTargetingBuilder_ != null) { + browserTargetingBuilder_.dispose(); + browserTargetingBuilder_ = null; + } + browserLanguageTargeting_ = null; + if (browserLanguageTargetingBuilder_ != null) { + browserLanguageTargetingBuilder_.dispose(); + browserLanguageTargetingBuilder_ = null; + } + deviceCapabilityTargeting_ = null; + if (deviceCapabilityTargetingBuilder_ != null) { + deviceCapabilityTargetingBuilder_.dispose(); + deviceCapabilityTargetingBuilder_ = null; + } deviceCategoryTargeting_ = null; if (deviceCategoryTargetingBuilder_ != null) { deviceCategoryTargetingBuilder_.dispose(); deviceCategoryTargetingBuilder_ = null; } + deviceManufacturerTargeting_ = null; + if (deviceManufacturerTargetingBuilder_ != null) { + deviceManufacturerTargetingBuilder_.dispose(); + deviceManufacturerTargetingBuilder_ = null; + } + mobileCarrierTargeting_ = null; + if (mobileCarrierTargetingBuilder_ != null) { + mobileCarrierTargetingBuilder_.dispose(); + mobileCarrierTargetingBuilder_ = null; + } operatingSystemTargeting_ = null; if (operatingSystemTargetingBuilder_ != null) { operatingSystemTargetingBuilder_.dispose(); @@ -550,18 +958,51 @@ private void buildPartial0(com.google.ads.admanager.v1.TechnologyTargeting resul to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { + result.browserTargeting_ = + browserTargetingBuilder_ == null ? browserTargeting_ : browserTargetingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.browserLanguageTargeting_ = + browserLanguageTargetingBuilder_ == null + ? browserLanguageTargeting_ + : browserLanguageTargetingBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deviceCapabilityTargeting_ = + deviceCapabilityTargetingBuilder_ == null + ? deviceCapabilityTargeting_ + : deviceCapabilityTargetingBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.deviceCategoryTargeting_ = deviceCategoryTargetingBuilder_ == null ? deviceCategoryTargeting_ : deviceCategoryTargetingBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deviceManufacturerTargeting_ = + deviceManufacturerTargetingBuilder_ == null + ? deviceManufacturerTargeting_ + : deviceManufacturerTargetingBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.mobileCarrierTargeting_ = + mobileCarrierTargetingBuilder_ == null + ? mobileCarrierTargeting_ + : mobileCarrierTargetingBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.operatingSystemTargeting_ = operatingSystemTargetingBuilder_ == null ? operatingSystemTargeting_ : operatingSystemTargetingBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000080; } result.bitField0_ |= to_bitField0_; } @@ -615,9 +1056,24 @@ public Builder mergeFrom(com.google.ads.admanager.v1.TechnologyTargeting other) if (other.hasBandwidthTargeting()) { mergeBandwidthTargeting(other.getBandwidthTargeting()); } + if (other.hasBrowserTargeting()) { + mergeBrowserTargeting(other.getBrowserTargeting()); + } + if (other.hasBrowserLanguageTargeting()) { + mergeBrowserLanguageTargeting(other.getBrowserLanguageTargeting()); + } + if (other.hasDeviceCapabilityTargeting()) { + mergeDeviceCapabilityTargeting(other.getDeviceCapabilityTargeting()); + } if (other.hasDeviceCategoryTargeting()) { mergeDeviceCategoryTargeting(other.getDeviceCategoryTargeting()); } + if (other.hasDeviceManufacturerTargeting()) { + mergeDeviceManufacturerTargeting(other.getDeviceManufacturerTargeting()); + } + if (other.hasMobileCarrierTargeting()) { + mergeMobileCarrierTargeting(other.getMobileCarrierTargeting()); + } if (other.hasOperatingSystemTargeting()) { mergeOperatingSystemTargeting(other.getOperatingSystemTargeting()); } @@ -651,14 +1107,14 @@ public Builder mergeFrom( { input.readMessage( getDeviceCategoryTargetingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; break; } // case 10 case 18: { input.readMessage( getOperatingSystemTargetingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000080; break; } // case 18 case 26: @@ -668,6 +1124,41 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 26 + case 34: + { + input.readMessage( + getBrowserTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + input.readMessage( + getBrowserLanguageTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + input.readMessage( + getDeviceCapabilityTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: + { + input.readMessage( + getDeviceManufacturerTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + getMobileCarrierTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -902,27 +1393,27 @@ public com.google.ads.admanager.v1.BandwidthTargeting.Builder getBandwidthTarget return bandwidthTargetingBuilder_; } - private com.google.ads.admanager.v1.DeviceCategoryTargeting deviceCategoryTargeting_; + private com.google.ads.admanager.v1.BrowserTargeting browserTargeting_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.DeviceCategoryTargeting, - com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder, - com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder> - deviceCategoryTargetingBuilder_; + com.google.ads.admanager.v1.BrowserTargeting, + com.google.ads.admanager.v1.BrowserTargeting.Builder, + com.google.ads.admanager.v1.BrowserTargetingOrBuilder> + browserTargetingBuilder_; /** * * *
    -     * Optional. Device category targeting dimension.
    +     * Optional. Browser targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the deviceCategoryTargeting field is set. + * @return Whether the browserTargeting field is set. */ - public boolean hasDeviceCategoryTargeting() { + public boolean hasBrowserTargeting() { return ((bitField0_ & 0x00000002) != 0); } @@ -930,22 +1421,22 @@ public boolean hasDeviceCategoryTargeting() { * * *
    -     * Optional. Device category targeting dimension.
    +     * Optional. Browser targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The deviceCategoryTargeting. + * @return The browserTargeting. */ - public com.google.ads.admanager.v1.DeviceCategoryTargeting getDeviceCategoryTargeting() { - if (deviceCategoryTargetingBuilder_ == null) { - return deviceCategoryTargeting_ == null - ? com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance() - : deviceCategoryTargeting_; + public com.google.ads.admanager.v1.BrowserTargeting getBrowserTargeting() { + if (browserTargetingBuilder_ == null) { + return browserTargeting_ == null + ? com.google.ads.admanager.v1.BrowserTargeting.getDefaultInstance() + : browserTargeting_; } else { - return deviceCategoryTargetingBuilder_.getMessage(); + return browserTargetingBuilder_.getMessage(); } } @@ -953,22 +1444,21 @@ public com.google.ads.admanager.v1.DeviceCategoryTargeting getDeviceCategoryTarg * * *
    -     * Optional. Device category targeting dimension.
    +     * Optional. Browser targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setDeviceCategoryTargeting( - com.google.ads.admanager.v1.DeviceCategoryTargeting value) { - if (deviceCategoryTargetingBuilder_ == null) { + public Builder setBrowserTargeting(com.google.ads.admanager.v1.BrowserTargeting value) { + if (browserTargetingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - deviceCategoryTargeting_ = value; + browserTargeting_ = value; } else { - deviceCategoryTargetingBuilder_.setMessage(value); + browserTargetingBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); @@ -979,19 +1469,19 @@ public Builder setDeviceCategoryTargeting( * * *
    -     * Optional. Device category targeting dimension.
    +     * Optional. Browser targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setDeviceCategoryTargeting( - com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder builderForValue) { - if (deviceCategoryTargetingBuilder_ == null) { - deviceCategoryTargeting_ = builderForValue.build(); + public Builder setBrowserTargeting( + com.google.ads.admanager.v1.BrowserTargeting.Builder builderForValue) { + if (browserTargetingBuilder_ == null) { + browserTargeting_ = builderForValue.build(); } else { - deviceCategoryTargetingBuilder_.setMessage(builderForValue.build()); + browserTargetingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); @@ -1002,28 +1492,27 @@ public Builder setDeviceCategoryTargeting( * * *
    -     * Optional. Device category targeting dimension.
    +     * Optional. Browser targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeDeviceCategoryTargeting( - com.google.ads.admanager.v1.DeviceCategoryTargeting value) { - if (deviceCategoryTargetingBuilder_ == null) { + public Builder mergeBrowserTargeting(com.google.ads.admanager.v1.BrowserTargeting value) { + if (browserTargetingBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) - && deviceCategoryTargeting_ != null - && deviceCategoryTargeting_ - != com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance()) { - getDeviceCategoryTargetingBuilder().mergeFrom(value); + && browserTargeting_ != null + && browserTargeting_ + != com.google.ads.admanager.v1.BrowserTargeting.getDefaultInstance()) { + getBrowserTargetingBuilder().mergeFrom(value); } else { - deviceCategoryTargeting_ = value; + browserTargeting_ = value; } } else { - deviceCategoryTargetingBuilder_.mergeFrom(value); + browserTargetingBuilder_.mergeFrom(value); } - if (deviceCategoryTargeting_ != null) { + if (browserTargeting_ != null) { bitField0_ |= 0x00000002; onChanged(); } @@ -1034,19 +1523,19 @@ public Builder mergeDeviceCategoryTargeting( * * *
    -     * Optional. Device category targeting dimension.
    +     * Optional. Browser targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearDeviceCategoryTargeting() { + public Builder clearBrowserTargeting() { bitField0_ = (bitField0_ & ~0x00000002); - deviceCategoryTargeting_ = null; - if (deviceCategoryTargetingBuilder_ != null) { - deviceCategoryTargetingBuilder_.dispose(); - deviceCategoryTargetingBuilder_ = null; + browserTargeting_ = null; + if (browserTargetingBuilder_ != null) { + browserTargetingBuilder_.dispose(); + browserTargetingBuilder_ = null; } onChanged(); return this; @@ -1056,39 +1545,37 @@ public Builder clearDeviceCategoryTargeting() { * * *
    -     * Optional. Device category targeting dimension.
    +     * Optional. Browser targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder - getDeviceCategoryTargetingBuilder() { + public com.google.ads.admanager.v1.BrowserTargeting.Builder getBrowserTargetingBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getDeviceCategoryTargetingFieldBuilder().getBuilder(); + return getBrowserTargetingFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Device category targeting dimension.
    +     * Optional. Browser targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder - getDeviceCategoryTargetingOrBuilder() { - if (deviceCategoryTargetingBuilder_ != null) { - return deviceCategoryTargetingBuilder_.getMessageOrBuilder(); + public com.google.ads.admanager.v1.BrowserTargetingOrBuilder getBrowserTargetingOrBuilder() { + if (browserTargetingBuilder_ != null) { + return browserTargetingBuilder_.getMessageOrBuilder(); } else { - return deviceCategoryTargeting_ == null - ? com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance() - : deviceCategoryTargeting_; + return browserTargeting_ == null + ? com.google.ads.admanager.v1.BrowserTargeting.getDefaultInstance() + : browserTargeting_; } } @@ -1096,51 +1583,51 @@ public Builder clearDeviceCategoryTargeting() { * * *
    -     * Optional. Device category targeting dimension.
    +     * Optional. Browser targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.DeviceCategoryTargeting, - com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder, - com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder> - getDeviceCategoryTargetingFieldBuilder() { - if (deviceCategoryTargetingBuilder_ == null) { - deviceCategoryTargetingBuilder_ = + com.google.ads.admanager.v1.BrowserTargeting, + com.google.ads.admanager.v1.BrowserTargeting.Builder, + com.google.ads.admanager.v1.BrowserTargetingOrBuilder> + getBrowserTargetingFieldBuilder() { + if (browserTargetingBuilder_ == null) { + browserTargetingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.DeviceCategoryTargeting, - com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder, - com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder>( - getDeviceCategoryTargeting(), getParentForChildren(), isClean()); - deviceCategoryTargeting_ = null; + com.google.ads.admanager.v1.BrowserTargeting, + com.google.ads.admanager.v1.BrowserTargeting.Builder, + com.google.ads.admanager.v1.BrowserTargetingOrBuilder>( + getBrowserTargeting(), getParentForChildren(), isClean()); + browserTargeting_ = null; } - return deviceCategoryTargetingBuilder_; + return browserTargetingBuilder_; } - private com.google.ads.admanager.v1.OperatingSystemTargeting operatingSystemTargeting_; + private com.google.ads.admanager.v1.BrowserLanguageTargeting browserLanguageTargeting_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.admanager.v1.OperatingSystemTargeting, - com.google.ads.admanager.v1.OperatingSystemTargeting.Builder, - com.google.ads.admanager.v1.OperatingSystemTargetingOrBuilder> - operatingSystemTargetingBuilder_; + com.google.ads.admanager.v1.BrowserLanguageTargeting, + com.google.ads.admanager.v1.BrowserLanguageTargeting.Builder, + com.google.ads.admanager.v1.BrowserLanguageTargetingOrBuilder> + browserLanguageTargetingBuilder_; /** * * *
    -     * Optional. Operating system targeting dimension.
    +     * Optional. Browser language targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the operatingSystemTargeting field is set. + * @return Whether the browserLanguageTargeting field is set. */ - public boolean hasOperatingSystemTargeting() { + public boolean hasBrowserLanguageTargeting() { return ((bitField0_ & 0x00000004) != 0); } @@ -1148,22 +1635,22 @@ public boolean hasOperatingSystemTargeting() { * * *
    -     * Optional. Operating system targeting dimension.
    +     * Optional. Browser language targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The operatingSystemTargeting. + * @return The browserLanguageTargeting. */ - public com.google.ads.admanager.v1.OperatingSystemTargeting getOperatingSystemTargeting() { - if (operatingSystemTargetingBuilder_ == null) { - return operatingSystemTargeting_ == null - ? com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance() - : operatingSystemTargeting_; + public com.google.ads.admanager.v1.BrowserLanguageTargeting getBrowserLanguageTargeting() { + if (browserLanguageTargetingBuilder_ == null) { + return browserLanguageTargeting_ == null + ? com.google.ads.admanager.v1.BrowserLanguageTargeting.getDefaultInstance() + : browserLanguageTargeting_; } else { - return operatingSystemTargetingBuilder_.getMessage(); + return browserLanguageTargetingBuilder_.getMessage(); } } @@ -1171,22 +1658,22 @@ public com.google.ads.admanager.v1.OperatingSystemTargeting getOperatingSystemTa * * *
    -     * Optional. Operating system targeting dimension.
    +     * Optional. Browser language targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setOperatingSystemTargeting( - com.google.ads.admanager.v1.OperatingSystemTargeting value) { - if (operatingSystemTargetingBuilder_ == null) { + public Builder setBrowserLanguageTargeting( + com.google.ads.admanager.v1.BrowserLanguageTargeting value) { + if (browserLanguageTargetingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - operatingSystemTargeting_ = value; + browserLanguageTargeting_ = value; } else { - operatingSystemTargetingBuilder_.setMessage(value); + browserLanguageTargetingBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); @@ -1197,19 +1684,19 @@ public Builder setOperatingSystemTargeting( * * *
    -     * Optional. Operating system targeting dimension.
    +     * Optional. Browser language targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setOperatingSystemTargeting( - com.google.ads.admanager.v1.OperatingSystemTargeting.Builder builderForValue) { - if (operatingSystemTargetingBuilder_ == null) { - operatingSystemTargeting_ = builderForValue.build(); + public Builder setBrowserLanguageTargeting( + com.google.ads.admanager.v1.BrowserLanguageTargeting.Builder builderForValue) { + if (browserLanguageTargetingBuilder_ == null) { + browserLanguageTargeting_ = builderForValue.build(); } else { - operatingSystemTargetingBuilder_.setMessage(builderForValue.build()); + browserLanguageTargetingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); @@ -1220,28 +1707,28 @@ public Builder setOperatingSystemTargeting( * * *
    -     * Optional. Operating system targeting dimension.
    +     * Optional. Browser language targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeOperatingSystemTargeting( - com.google.ads.admanager.v1.OperatingSystemTargeting value) { - if (operatingSystemTargetingBuilder_ == null) { + public Builder mergeBrowserLanguageTargeting( + com.google.ads.admanager.v1.BrowserLanguageTargeting value) { + if (browserLanguageTargetingBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) - && operatingSystemTargeting_ != null - && operatingSystemTargeting_ - != com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance()) { - getOperatingSystemTargetingBuilder().mergeFrom(value); + && browserLanguageTargeting_ != null + && browserLanguageTargeting_ + != com.google.ads.admanager.v1.BrowserLanguageTargeting.getDefaultInstance()) { + getBrowserLanguageTargetingBuilder().mergeFrom(value); } else { - operatingSystemTargeting_ = value; + browserLanguageTargeting_ = value; } } else { - operatingSystemTargetingBuilder_.mergeFrom(value); + browserLanguageTargetingBuilder_.mergeFrom(value); } - if (operatingSystemTargeting_ != null) { + if (browserLanguageTargeting_ != null) { bitField0_ |= 0x00000004; onChanged(); } @@ -1252,19 +1739,19 @@ public Builder mergeOperatingSystemTargeting( * * *
    -     * Optional. Operating system targeting dimension.
    +     * Optional. Browser language targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearOperatingSystemTargeting() { + public Builder clearBrowserLanguageTargeting() { bitField0_ = (bitField0_ & ~0x00000004); - operatingSystemTargeting_ = null; - if (operatingSystemTargetingBuilder_ != null) { - operatingSystemTargetingBuilder_.dispose(); - operatingSystemTargetingBuilder_ = null; + browserLanguageTargeting_ = null; + if (browserLanguageTargetingBuilder_ != null) { + browserLanguageTargetingBuilder_.dispose(); + browserLanguageTargetingBuilder_ = null; } onChanged(); return this; @@ -1274,17 +1761,1108 @@ public Builder clearOperatingSystemTargeting() { * * *
    -     * Optional. Operating system targeting dimension.
    +     * Optional. Browser language targeting dimension.
          * 
    * * - * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.ads.admanager.v1.OperatingSystemTargeting.Builder - getOperatingSystemTargetingBuilder() { + public com.google.ads.admanager.v1.BrowserLanguageTargeting.Builder + getBrowserLanguageTargetingBuilder() { bitField0_ |= 0x00000004; onChanged(); + return getBrowserLanguageTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Browser language targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.BrowserLanguageTargetingOrBuilder + getBrowserLanguageTargetingOrBuilder() { + if (browserLanguageTargetingBuilder_ != null) { + return browserLanguageTargetingBuilder_.getMessageOrBuilder(); + } else { + return browserLanguageTargeting_ == null + ? com.google.ads.admanager.v1.BrowserLanguageTargeting.getDefaultInstance() + : browserLanguageTargeting_; + } + } + + /** + * + * + *
    +     * Optional. Browser language targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.BrowserLanguageTargeting, + com.google.ads.admanager.v1.BrowserLanguageTargeting.Builder, + com.google.ads.admanager.v1.BrowserLanguageTargetingOrBuilder> + getBrowserLanguageTargetingFieldBuilder() { + if (browserLanguageTargetingBuilder_ == null) { + browserLanguageTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.BrowserLanguageTargeting, + com.google.ads.admanager.v1.BrowserLanguageTargeting.Builder, + com.google.ads.admanager.v1.BrowserLanguageTargetingOrBuilder>( + getBrowserLanguageTargeting(), getParentForChildren(), isClean()); + browserLanguageTargeting_ = null; + } + return browserLanguageTargetingBuilder_; + } + + private com.google.ads.admanager.v1.DeviceCapabilityTargeting deviceCapabilityTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCapabilityTargeting, + com.google.ads.admanager.v1.DeviceCapabilityTargeting.Builder, + com.google.ads.admanager.v1.DeviceCapabilityTargetingOrBuilder> + deviceCapabilityTargetingBuilder_; + + /** + * + * + *
    +     * Optional. Device capability targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceCapabilityTargeting field is set. + */ + public boolean hasDeviceCapabilityTargeting() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Optional. Device capability targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceCapabilityTargeting. + */ + public com.google.ads.admanager.v1.DeviceCapabilityTargeting getDeviceCapabilityTargeting() { + if (deviceCapabilityTargetingBuilder_ == null) { + return deviceCapabilityTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCapabilityTargeting.getDefaultInstance() + : deviceCapabilityTargeting_; + } else { + return deviceCapabilityTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Device capability targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceCapabilityTargeting( + com.google.ads.admanager.v1.DeviceCapabilityTargeting value) { + if (deviceCapabilityTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceCapabilityTargeting_ = value; + } else { + deviceCapabilityTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Device capability targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceCapabilityTargeting( + com.google.ads.admanager.v1.DeviceCapabilityTargeting.Builder builderForValue) { + if (deviceCapabilityTargetingBuilder_ == null) { + deviceCapabilityTargeting_ = builderForValue.build(); + } else { + deviceCapabilityTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Device capability targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeviceCapabilityTargeting( + com.google.ads.admanager.v1.DeviceCapabilityTargeting value) { + if (deviceCapabilityTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && deviceCapabilityTargeting_ != null + && deviceCapabilityTargeting_ + != com.google.ads.admanager.v1.DeviceCapabilityTargeting.getDefaultInstance()) { + getDeviceCapabilityTargetingBuilder().mergeFrom(value); + } else { + deviceCapabilityTargeting_ = value; + } + } else { + deviceCapabilityTargetingBuilder_.mergeFrom(value); + } + if (deviceCapabilityTargeting_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Device capability targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeviceCapabilityTargeting() { + bitField0_ = (bitField0_ & ~0x00000008); + deviceCapabilityTargeting_ = null; + if (deviceCapabilityTargetingBuilder_ != null) { + deviceCapabilityTargetingBuilder_.dispose(); + deviceCapabilityTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Device capability targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DeviceCapabilityTargeting.Builder + getDeviceCapabilityTargetingBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDeviceCapabilityTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Device capability targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DeviceCapabilityTargetingOrBuilder + getDeviceCapabilityTargetingOrBuilder() { + if (deviceCapabilityTargetingBuilder_ != null) { + return deviceCapabilityTargetingBuilder_.getMessageOrBuilder(); + } else { + return deviceCapabilityTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCapabilityTargeting.getDefaultInstance() + : deviceCapabilityTargeting_; + } + } + + /** + * + * + *
    +     * Optional. Device capability targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCapabilityTargeting, + com.google.ads.admanager.v1.DeviceCapabilityTargeting.Builder, + com.google.ads.admanager.v1.DeviceCapabilityTargetingOrBuilder> + getDeviceCapabilityTargetingFieldBuilder() { + if (deviceCapabilityTargetingBuilder_ == null) { + deviceCapabilityTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCapabilityTargeting, + com.google.ads.admanager.v1.DeviceCapabilityTargeting.Builder, + com.google.ads.admanager.v1.DeviceCapabilityTargetingOrBuilder>( + getDeviceCapabilityTargeting(), getParentForChildren(), isClean()); + deviceCapabilityTargeting_ = null; + } + return deviceCapabilityTargetingBuilder_; + } + + private com.google.ads.admanager.v1.DeviceCategoryTargeting deviceCategoryTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCategoryTargeting, + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder, + com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder> + deviceCategoryTargetingBuilder_; + + /** + * + * + *
    +     * Optional. Device category targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceCategoryTargeting field is set. + */ + public boolean hasDeviceCategoryTargeting() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Optional. Device category targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceCategoryTargeting. + */ + public com.google.ads.admanager.v1.DeviceCategoryTargeting getDeviceCategoryTargeting() { + if (deviceCategoryTargetingBuilder_ == null) { + return deviceCategoryTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance() + : deviceCategoryTargeting_; + } else { + return deviceCategoryTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Device category targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceCategoryTargeting( + com.google.ads.admanager.v1.DeviceCategoryTargeting value) { + if (deviceCategoryTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceCategoryTargeting_ = value; + } else { + deviceCategoryTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Device category targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceCategoryTargeting( + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder builderForValue) { + if (deviceCategoryTargetingBuilder_ == null) { + deviceCategoryTargeting_ = builderForValue.build(); + } else { + deviceCategoryTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Device category targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeviceCategoryTargeting( + com.google.ads.admanager.v1.DeviceCategoryTargeting value) { + if (deviceCategoryTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && deviceCategoryTargeting_ != null + && deviceCategoryTargeting_ + != com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance()) { + getDeviceCategoryTargetingBuilder().mergeFrom(value); + } else { + deviceCategoryTargeting_ = value; + } + } else { + deviceCategoryTargetingBuilder_.mergeFrom(value); + } + if (deviceCategoryTargeting_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Device category targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeviceCategoryTargeting() { + bitField0_ = (bitField0_ & ~0x00000010); + deviceCategoryTargeting_ = null; + if (deviceCategoryTargetingBuilder_ != null) { + deviceCategoryTargetingBuilder_.dispose(); + deviceCategoryTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Device category targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder + getDeviceCategoryTargetingBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getDeviceCategoryTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Device category targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder + getDeviceCategoryTargetingOrBuilder() { + if (deviceCategoryTargetingBuilder_ != null) { + return deviceCategoryTargetingBuilder_.getMessageOrBuilder(); + } else { + return deviceCategoryTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance() + : deviceCategoryTargeting_; + } + } + + /** + * + * + *
    +     * Optional. Device category targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCategoryTargeting, + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder, + com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder> + getDeviceCategoryTargetingFieldBuilder() { + if (deviceCategoryTargetingBuilder_ == null) { + deviceCategoryTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCategoryTargeting, + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder, + com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder>( + getDeviceCategoryTargeting(), getParentForChildren(), isClean()); + deviceCategoryTargeting_ = null; + } + return deviceCategoryTargetingBuilder_; + } + + private com.google.ads.admanager.v1.DeviceManufacturerTargeting deviceManufacturerTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceManufacturerTargeting, + com.google.ads.admanager.v1.DeviceManufacturerTargeting.Builder, + com.google.ads.admanager.v1.DeviceManufacturerTargetingOrBuilder> + deviceManufacturerTargetingBuilder_; + + /** + * + * + *
    +     * Optional. Device manufacturer targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceManufacturerTargeting field is set. + */ + public boolean hasDeviceManufacturerTargeting() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. Device manufacturer targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceManufacturerTargeting. + */ + public com.google.ads.admanager.v1.DeviceManufacturerTargeting + getDeviceManufacturerTargeting() { + if (deviceManufacturerTargetingBuilder_ == null) { + return deviceManufacturerTargeting_ == null + ? com.google.ads.admanager.v1.DeviceManufacturerTargeting.getDefaultInstance() + : deviceManufacturerTargeting_; + } else { + return deviceManufacturerTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Device manufacturer targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceManufacturerTargeting( + com.google.ads.admanager.v1.DeviceManufacturerTargeting value) { + if (deviceManufacturerTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceManufacturerTargeting_ = value; + } else { + deviceManufacturerTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Device manufacturer targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceManufacturerTargeting( + com.google.ads.admanager.v1.DeviceManufacturerTargeting.Builder builderForValue) { + if (deviceManufacturerTargetingBuilder_ == null) { + deviceManufacturerTargeting_ = builderForValue.build(); + } else { + deviceManufacturerTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Device manufacturer targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeviceManufacturerTargeting( + com.google.ads.admanager.v1.DeviceManufacturerTargeting value) { + if (deviceManufacturerTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && deviceManufacturerTargeting_ != null + && deviceManufacturerTargeting_ + != com.google.ads.admanager.v1.DeviceManufacturerTargeting.getDefaultInstance()) { + getDeviceManufacturerTargetingBuilder().mergeFrom(value); + } else { + deviceManufacturerTargeting_ = value; + } + } else { + deviceManufacturerTargetingBuilder_.mergeFrom(value); + } + if (deviceManufacturerTargeting_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Device manufacturer targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeviceManufacturerTargeting() { + bitField0_ = (bitField0_ & ~0x00000020); + deviceManufacturerTargeting_ = null; + if (deviceManufacturerTargetingBuilder_ != null) { + deviceManufacturerTargetingBuilder_.dispose(); + deviceManufacturerTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Device manufacturer targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DeviceManufacturerTargeting.Builder + getDeviceManufacturerTargetingBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDeviceManufacturerTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Device manufacturer targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DeviceManufacturerTargetingOrBuilder + getDeviceManufacturerTargetingOrBuilder() { + if (deviceManufacturerTargetingBuilder_ != null) { + return deviceManufacturerTargetingBuilder_.getMessageOrBuilder(); + } else { + return deviceManufacturerTargeting_ == null + ? com.google.ads.admanager.v1.DeviceManufacturerTargeting.getDefaultInstance() + : deviceManufacturerTargeting_; + } + } + + /** + * + * + *
    +     * Optional. Device manufacturer targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceManufacturerTargeting, + com.google.ads.admanager.v1.DeviceManufacturerTargeting.Builder, + com.google.ads.admanager.v1.DeviceManufacturerTargetingOrBuilder> + getDeviceManufacturerTargetingFieldBuilder() { + if (deviceManufacturerTargetingBuilder_ == null) { + deviceManufacturerTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceManufacturerTargeting, + com.google.ads.admanager.v1.DeviceManufacturerTargeting.Builder, + com.google.ads.admanager.v1.DeviceManufacturerTargetingOrBuilder>( + getDeviceManufacturerTargeting(), getParentForChildren(), isClean()); + deviceManufacturerTargeting_ = null; + } + return deviceManufacturerTargetingBuilder_; + } + + private com.google.ads.admanager.v1.MobileCarrierTargeting mobileCarrierTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.MobileCarrierTargeting, + com.google.ads.admanager.v1.MobileCarrierTargeting.Builder, + com.google.ads.admanager.v1.MobileCarrierTargetingOrBuilder> + mobileCarrierTargetingBuilder_; + + /** + * + * + *
    +     * Optional. Mobile carrier targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mobileCarrierTargeting field is set. + */ + public boolean hasMobileCarrierTargeting() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +     * Optional. Mobile carrier targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mobileCarrierTargeting. + */ + public com.google.ads.admanager.v1.MobileCarrierTargeting getMobileCarrierTargeting() { + if (mobileCarrierTargetingBuilder_ == null) { + return mobileCarrierTargeting_ == null + ? com.google.ads.admanager.v1.MobileCarrierTargeting.getDefaultInstance() + : mobileCarrierTargeting_; + } else { + return mobileCarrierTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Mobile carrier targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMobileCarrierTargeting( + com.google.ads.admanager.v1.MobileCarrierTargeting value) { + if (mobileCarrierTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mobileCarrierTargeting_ = value; + } else { + mobileCarrierTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Mobile carrier targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMobileCarrierTargeting( + com.google.ads.admanager.v1.MobileCarrierTargeting.Builder builderForValue) { + if (mobileCarrierTargetingBuilder_ == null) { + mobileCarrierTargeting_ = builderForValue.build(); + } else { + mobileCarrierTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Mobile carrier targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMobileCarrierTargeting( + com.google.ads.admanager.v1.MobileCarrierTargeting value) { + if (mobileCarrierTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && mobileCarrierTargeting_ != null + && mobileCarrierTargeting_ + != com.google.ads.admanager.v1.MobileCarrierTargeting.getDefaultInstance()) { + getMobileCarrierTargetingBuilder().mergeFrom(value); + } else { + mobileCarrierTargeting_ = value; + } + } else { + mobileCarrierTargetingBuilder_.mergeFrom(value); + } + if (mobileCarrierTargeting_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Mobile carrier targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMobileCarrierTargeting() { + bitField0_ = (bitField0_ & ~0x00000040); + mobileCarrierTargeting_ = null; + if (mobileCarrierTargetingBuilder_ != null) { + mobileCarrierTargetingBuilder_.dispose(); + mobileCarrierTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Mobile carrier targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.MobileCarrierTargeting.Builder + getMobileCarrierTargetingBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getMobileCarrierTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Mobile carrier targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.MobileCarrierTargetingOrBuilder + getMobileCarrierTargetingOrBuilder() { + if (mobileCarrierTargetingBuilder_ != null) { + return mobileCarrierTargetingBuilder_.getMessageOrBuilder(); + } else { + return mobileCarrierTargeting_ == null + ? com.google.ads.admanager.v1.MobileCarrierTargeting.getDefaultInstance() + : mobileCarrierTargeting_; + } + } + + /** + * + * + *
    +     * Optional. Mobile carrier targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.MobileCarrierTargeting, + com.google.ads.admanager.v1.MobileCarrierTargeting.Builder, + com.google.ads.admanager.v1.MobileCarrierTargetingOrBuilder> + getMobileCarrierTargetingFieldBuilder() { + if (mobileCarrierTargetingBuilder_ == null) { + mobileCarrierTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.MobileCarrierTargeting, + com.google.ads.admanager.v1.MobileCarrierTargeting.Builder, + com.google.ads.admanager.v1.MobileCarrierTargetingOrBuilder>( + getMobileCarrierTargeting(), getParentForChildren(), isClean()); + mobileCarrierTargeting_ = null; + } + return mobileCarrierTargetingBuilder_; + } + + private com.google.ads.admanager.v1.OperatingSystemTargeting operatingSystemTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystemTargeting, + com.google.ads.admanager.v1.OperatingSystemTargeting.Builder, + com.google.ads.admanager.v1.OperatingSystemTargetingOrBuilder> + operatingSystemTargetingBuilder_; + + /** + * + * + *
    +     * Optional. Operating system targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the operatingSystemTargeting field is set. + */ + public boolean hasOperatingSystemTargeting() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +     * Optional. Operating system targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The operatingSystemTargeting. + */ + public com.google.ads.admanager.v1.OperatingSystemTargeting getOperatingSystemTargeting() { + if (operatingSystemTargetingBuilder_ == null) { + return operatingSystemTargeting_ == null + ? com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance() + : operatingSystemTargeting_; + } else { + return operatingSystemTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Operating system targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOperatingSystemTargeting( + com.google.ads.admanager.v1.OperatingSystemTargeting value) { + if (operatingSystemTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operatingSystemTargeting_ = value; + } else { + operatingSystemTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Operating system targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOperatingSystemTargeting( + com.google.ads.admanager.v1.OperatingSystemTargeting.Builder builderForValue) { + if (operatingSystemTargetingBuilder_ == null) { + operatingSystemTargeting_ = builderForValue.build(); + } else { + operatingSystemTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Operating system targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOperatingSystemTargeting( + com.google.ads.admanager.v1.OperatingSystemTargeting value) { + if (operatingSystemTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && operatingSystemTargeting_ != null + && operatingSystemTargeting_ + != com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance()) { + getOperatingSystemTargetingBuilder().mergeFrom(value); + } else { + operatingSystemTargeting_ = value; + } + } else { + operatingSystemTargetingBuilder_.mergeFrom(value); + } + if (operatingSystemTargeting_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Operating system targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOperatingSystemTargeting() { + bitField0_ = (bitField0_ & ~0x00000080); + operatingSystemTargeting_ = null; + if (operatingSystemTargetingBuilder_ != null) { + operatingSystemTargetingBuilder_.dispose(); + operatingSystemTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Operating system targeting dimension.
    +     * 
    + * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.OperatingSystemTargeting.Builder + getOperatingSystemTargetingBuilder() { + bitField0_ |= 0x00000080; + onChanged(); return getOperatingSystemTargetingFieldBuilder().getBuilder(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargetingOrBuilder.java index 29651d1f9d23..d7971ebd45e4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargetingOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargetingOrBuilder.java @@ -67,6 +67,137 @@ public interface TechnologyTargetingOrBuilder */ com.google.ads.admanager.v1.BandwidthTargetingOrBuilder getBandwidthTargetingOrBuilder(); + /** + * + * + *
    +   * Optional. Browser targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the browserTargeting field is set. + */ + boolean hasBrowserTargeting(); + + /** + * + * + *
    +   * Optional. Browser targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The browserTargeting. + */ + com.google.ads.admanager.v1.BrowserTargeting getBrowserTargeting(); + + /** + * + * + *
    +   * Optional. Browser targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserTargeting browser_targeting = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.BrowserTargetingOrBuilder getBrowserTargetingOrBuilder(); + + /** + * + * + *
    +   * Optional. Browser language targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the browserLanguageTargeting field is set. + */ + boolean hasBrowserLanguageTargeting(); + + /** + * + * + *
    +   * Optional. Browser language targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The browserLanguageTargeting. + */ + com.google.ads.admanager.v1.BrowserLanguageTargeting getBrowserLanguageTargeting(); + + /** + * + * + *
    +   * Optional. Browser language targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.BrowserLanguageTargeting browser_language_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.BrowserLanguageTargetingOrBuilder + getBrowserLanguageTargetingOrBuilder(); + + /** + * + * + *
    +   * Optional. Device capability targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceCapabilityTargeting field is set. + */ + boolean hasDeviceCapabilityTargeting(); + + /** + * + * + *
    +   * Optional. Device capability targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceCapabilityTargeting. + */ + com.google.ads.admanager.v1.DeviceCapabilityTargeting getDeviceCapabilityTargeting(); + + /** + * + * + *
    +   * Optional. Device capability targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceCapabilityTargeting device_capability_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.DeviceCapabilityTargetingOrBuilder + getDeviceCapabilityTargetingOrBuilder(); + /** * * @@ -111,6 +242,93 @@ public interface TechnologyTargetingOrBuilder com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder getDeviceCategoryTargetingOrBuilder(); + /** + * + * + *
    +   * Optional. Device manufacturer targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceManufacturerTargeting field is set. + */ + boolean hasDeviceManufacturerTargeting(); + + /** + * + * + *
    +   * Optional. Device manufacturer targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceManufacturerTargeting. + */ + com.google.ads.admanager.v1.DeviceManufacturerTargeting getDeviceManufacturerTargeting(); + + /** + * + * + *
    +   * Optional. Device manufacturer targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.DeviceManufacturerTargeting device_manufacturer_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.DeviceManufacturerTargetingOrBuilder + getDeviceManufacturerTargetingOrBuilder(); + + /** + * + * + *
    +   * Optional. Mobile carrier targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mobileCarrierTargeting field is set. + */ + boolean hasMobileCarrierTargeting(); + + /** + * + * + *
    +   * Optional. Mobile carrier targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mobileCarrierTargeting. + */ + com.google.ads.admanager.v1.MobileCarrierTargeting getMobileCarrierTargeting(); + + /** + * + * + *
    +   * Optional. Mobile carrier targeting dimension.
    +   * 
    + * + * + * .google.ads.admanager.v1.MobileCarrierTargeting mobile_carrier_targeting = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.MobileCarrierTargetingOrBuilder getMobileCarrierTargetingOrBuilder(); + /** * * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateContactRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateContactRequest.java new file mode 100644 index 000000000000..a4c000069463 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateContactRequest.java @@ -0,0 +1,1055 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `UpdateContact` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdateContactRequest} + */ +public final class UpdateContactRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdateContactRequest) + UpdateContactRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateContactRequest.newBuilder() to construct. + private UpdateContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateContactRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateContactRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_UpdateContactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_UpdateContactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateContactRequest.class, + com.google.ads.admanager.v1.UpdateContactRequest.Builder.class); + } + + private int bitField0_; + public static final int CONTACT_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.Contact contact_; + + /** + * + * + *
    +   * Required. The `Contact` to update.
    +   *
    +   * The `Contact`'s `name` is used to identify the `Contact` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the contact field is set. + */ + @java.lang.Override + public boolean hasContact() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `Contact` to update.
    +   *
    +   * The `Contact`'s `name` is used to identify the `Contact` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The contact. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Contact getContact() { + return contact_ == null ? com.google.ads.admanager.v1.Contact.getDefaultInstance() : contact_; + } + + /** + * + * + *
    +   * Required. The `Contact` to update.
    +   *
    +   * The `Contact`'s `name` is used to identify the `Contact` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.ContactOrBuilder getContactOrBuilder() { + return contact_ == null ? com.google.ads.admanager.v1.Contact.getDefaultInstance() : contact_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getContact()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getContact()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admanager.v1.UpdateContactRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdateContactRequest other = + (com.google.ads.admanager.v1.UpdateContactRequest) obj; + + if (hasContact() != other.hasContact()) return false; + if (hasContact()) { + if (!getContact().equals(other.getContact())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasContact()) { + hash = (37 * hash) + CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getContact().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdateContactRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest 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.admanager.v1.UpdateContactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest 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.admanager.v1.UpdateContactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.UpdateContactRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `UpdateContact` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdateContactRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdateContactRequest) + com.google.ads.admanager.v1.UpdateContactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_UpdateContactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_UpdateContactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateContactRequest.class, + com.google.ads.admanager.v1.UpdateContactRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdateContactRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContactFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contact_ = null; + if (contactBuilder_ != null) { + contactBuilder_.dispose(); + contactBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ContactServiceProto + .internal_static_google_ads_admanager_v1_UpdateContactRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateContactRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdateContactRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateContactRequest build() { + com.google.ads.admanager.v1.UpdateContactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateContactRequest buildPartial() { + com.google.ads.admanager.v1.UpdateContactRequest result = + new com.google.ads.admanager.v1.UpdateContactRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdateContactRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contact_ = contactBuilder_ == null ? contact_ : contactBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdateContactRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdateContactRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdateContactRequest other) { + if (other == com.google.ads.admanager.v1.UpdateContactRequest.getDefaultInstance()) + return this; + if (other.hasContact()) { + mergeContact(other.getContact()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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(getContactFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.ads.admanager.v1.Contact contact_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + contactBuilder_; + + /** + * + * + *
    +     * Required. The `Contact` to update.
    +     *
    +     * The `Contact`'s `name` is used to identify the `Contact` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the contact field is set. + */ + public boolean hasContact() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The `Contact` to update.
    +     *
    +     * The `Contact`'s `name` is used to identify the `Contact` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The contact. + */ + public com.google.ads.admanager.v1.Contact getContact() { + if (contactBuilder_ == null) { + return contact_ == null + ? com.google.ads.admanager.v1.Contact.getDefaultInstance() + : contact_; + } else { + return contactBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Contact` to update.
    +     *
    +     * The `Contact`'s `name` is used to identify the `Contact` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContact(com.google.ads.admanager.v1.Contact value) { + if (contactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contact_ = value; + } else { + contactBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` to update.
    +     *
    +     * The `Contact`'s `name` is used to identify the `Contact` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContact(com.google.ads.admanager.v1.Contact.Builder builderForValue) { + if (contactBuilder_ == null) { + contact_ = builderForValue.build(); + } else { + contactBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` to update.
    +     *
    +     * The `Contact`'s `name` is used to identify the `Contact` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeContact(com.google.ads.admanager.v1.Contact value) { + if (contactBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && contact_ != null + && contact_ != com.google.ads.admanager.v1.Contact.getDefaultInstance()) { + getContactBuilder().mergeFrom(value); + } else { + contact_ = value; + } + } else { + contactBuilder_.mergeFrom(value); + } + if (contact_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` to update.
    +     *
    +     * The `Contact`'s `name` is used to identify the `Contact` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContact() { + bitField0_ = (bitField0_ & ~0x00000001); + contact_ = null; + if (contactBuilder_ != null) { + contactBuilder_.dispose(); + contactBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Contact` to update.
    +     *
    +     * The `Contact`'s `name` is used to identify the `Contact` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.Contact.Builder getContactBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getContactFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Contact` to update.
    +     *
    +     * The `Contact`'s `name` is used to identify the `Contact` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.ContactOrBuilder getContactOrBuilder() { + if (contactBuilder_ != null) { + return contactBuilder_.getMessageOrBuilder(); + } else { + return contact_ == null + ? com.google.ads.admanager.v1.Contact.getDefaultInstance() + : contact_; + } + } + + /** + * + * + *
    +     * Required. The `Contact` to update.
    +     *
    +     * The `Contact`'s `name` is used to identify the `Contact` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder> + getContactFieldBuilder() { + if (contactBuilder_ == null) { + contactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Contact, + com.google.ads.admanager.v1.Contact.Builder, + com.google.ads.admanager.v1.ContactOrBuilder>( + getContact(), getParentForChildren(), isClean()); + contact_ = null; + } + return contactBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.UpdateContactRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdateContactRequest) + private static final com.google.ads.admanager.v1.UpdateContactRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdateContactRequest(); + } + + public static com.google.ads.admanager.v1.UpdateContactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateContactRequest 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.admanager.v1.UpdateContactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateContactRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateContactRequestOrBuilder.java new file mode 100644 index 000000000000..0dbf82f0a432 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateContactRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/contact_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdateContactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdateContactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The `Contact` to update.
    +   *
    +   * The `Contact`'s `name` is used to identify the `Contact` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the contact field is set. + */ + boolean hasContact(); + + /** + * + * + *
    +   * Required. The `Contact` to update.
    +   *
    +   * The `Contact`'s `name` is used to identify the `Contact` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The contact. + */ + com.google.ads.admanager.v1.Contact getContact(); + + /** + * + * + *
    +   * Required. The `Contact` to update.
    +   *
    +   * The `Contact`'s `name` is used to identify the `Contact` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Contact contact = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.ContactOrBuilder getContactOrBuilder(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomFieldRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomFieldRequest.java new file mode 100644 index 000000000000..7994a9fb869a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomFieldRequest.java @@ -0,0 +1,1072 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `UpdateCustomField` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdateCustomFieldRequest} + */ +public final class UpdateCustomFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdateCustomFieldRequest) + UpdateCustomFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateCustomFieldRequest.newBuilder() to construct. + private UpdateCustomFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomFieldRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomFieldRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateCustomFieldRequest.class, + com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder.class); + } + + private int bitField0_; + public static final int CUSTOM_FIELD_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.CustomField customField_; + + /** + * + * + *
    +   * Required. The `CustomField` to update.
    +   *
    +   * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customField field is set. + */ + @java.lang.Override + public boolean hasCustomField() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `CustomField` to update.
    +   *
    +   * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customField. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomField getCustomField() { + return customField_ == null + ? com.google.ads.admanager.v1.CustomField.getDefaultInstance() + : customField_; + } + + /** + * + * + *
    +   * Required. The `CustomField` to update.
    +   *
    +   * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldOrBuilder() { + return customField_ == null + ? com.google.ads.admanager.v1.CustomField.getDefaultInstance() + : customField_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getCustomField()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getCustomField()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admanager.v1.UpdateCustomFieldRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdateCustomFieldRequest other = + (com.google.ads.admanager.v1.UpdateCustomFieldRequest) obj; + + if (hasCustomField() != other.hasCustomField()) return false; + if (hasCustomField()) { + if (!getCustomField().equals(other.getCustomField())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasCustomField()) { + hash = (37 * hash) + CUSTOM_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getCustomField().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest 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.admanager.v1.UpdateCustomFieldRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest 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.admanager.v1.UpdateCustomFieldRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.UpdateCustomFieldRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `UpdateCustomField` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdateCustomFieldRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdateCustomFieldRequest) + com.google.ads.admanager.v1.UpdateCustomFieldRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateCustomFieldRequest.class, + com.google.ads.admanager.v1.UpdateCustomFieldRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdateCustomFieldRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomFieldFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customField_ = null; + if (customFieldBuilder_ != null) { + customFieldBuilder_.dispose(); + customFieldBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomFieldServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomFieldRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomFieldRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdateCustomFieldRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomFieldRequest build() { + com.google.ads.admanager.v1.UpdateCustomFieldRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomFieldRequest buildPartial() { + com.google.ads.admanager.v1.UpdateCustomFieldRequest result = + new com.google.ads.admanager.v1.UpdateCustomFieldRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdateCustomFieldRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customField_ = + customFieldBuilder_ == null ? customField_ : customFieldBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdateCustomFieldRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdateCustomFieldRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdateCustomFieldRequest other) { + if (other == com.google.ads.admanager.v1.UpdateCustomFieldRequest.getDefaultInstance()) + return this; + if (other.hasCustomField()) { + mergeCustomField(other.getCustomField()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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(getCustomFieldFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.ads.admanager.v1.CustomField customField_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder> + customFieldBuilder_; + + /** + * + * + *
    +     * Required. The `CustomField` to update.
    +     *
    +     * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customField field is set. + */ + public boolean hasCustomField() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The `CustomField` to update.
    +     *
    +     * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customField. + */ + public com.google.ads.admanager.v1.CustomField getCustomField() { + if (customFieldBuilder_ == null) { + return customField_ == null + ? com.google.ads.admanager.v1.CustomField.getDefaultInstance() + : customField_; + } else { + return customFieldBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `CustomField` to update.
    +     *
    +     * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomField(com.google.ads.admanager.v1.CustomField value) { + if (customFieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customField_ = value; + } else { + customFieldBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` to update.
    +     *
    +     * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomField(com.google.ads.admanager.v1.CustomField.Builder builderForValue) { + if (customFieldBuilder_ == null) { + customField_ = builderForValue.build(); + } else { + customFieldBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` to update.
    +     *
    +     * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomField(com.google.ads.admanager.v1.CustomField value) { + if (customFieldBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customField_ != null + && customField_ != com.google.ads.admanager.v1.CustomField.getDefaultInstance()) { + getCustomFieldBuilder().mergeFrom(value); + } else { + customField_ = value; + } + } else { + customFieldBuilder_.mergeFrom(value); + } + if (customField_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` to update.
    +     *
    +     * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomField() { + bitField0_ = (bitField0_ & ~0x00000001); + customField_ = null; + if (customFieldBuilder_ != null) { + customFieldBuilder_.dispose(); + customFieldBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `CustomField` to update.
    +     *
    +     * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CustomField.Builder getCustomFieldBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomFieldFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `CustomField` to update.
    +     *
    +     * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldOrBuilder() { + if (customFieldBuilder_ != null) { + return customFieldBuilder_.getMessageOrBuilder(); + } else { + return customField_ == null + ? com.google.ads.admanager.v1.CustomField.getDefaultInstance() + : customField_; + } + } + + /** + * + * + *
    +     * Required. The `CustomField` to update.
    +     *
    +     * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +     * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder> + getCustomFieldFieldBuilder() { + if (customFieldBuilder_ == null) { + customFieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomField, + com.google.ads.admanager.v1.CustomField.Builder, + com.google.ads.admanager.v1.CustomFieldOrBuilder>( + getCustomField(), getParentForChildren(), isClean()); + customField_ = null; + } + return customFieldBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.UpdateCustomFieldRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdateCustomFieldRequest) + private static final com.google.ads.admanager.v1.UpdateCustomFieldRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdateCustomFieldRequest(); + } + + public static com.google.ads.admanager.v1.UpdateCustomFieldRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomFieldRequest 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.admanager.v1.UpdateCustomFieldRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomFieldRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomFieldRequestOrBuilder.java new file mode 100644 index 000000000000..4365c3fa0415 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomFieldRequestOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/custom_field_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdateCustomFieldRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdateCustomFieldRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The `CustomField` to update.
    +   *
    +   * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customField field is set. + */ + boolean hasCustomField(); + + /** + * + * + *
    +   * Required. The `CustomField` to update.
    +   *
    +   * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customField. + */ + com.google.ads.admanager.v1.CustomField getCustomField(); + + /** + * + * + *
    +   * Required. The `CustomField` to update.
    +   *
    +   * The `CustomField`'s `name` is used to identify the `CustomField` to update.
    +   * 
    + * + * + * .google.ads.admanager.v1.CustomField custom_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CustomFieldOrBuilder getCustomFieldOrBuilder(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePlacementRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePlacementRequest.java new file mode 100644 index 000000000000..a10d2627508f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePlacementRequest.java @@ -0,0 +1,1095 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `UpdatePlacement` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdatePlacementRequest} + */ +public final class UpdatePlacementRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdatePlacementRequest) + UpdatePlacementRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdatePlacementRequest.newBuilder() to construct. + private UpdatePlacementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePlacementRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePlacementRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_UpdatePlacementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_UpdatePlacementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdatePlacementRequest.class, + com.google.ads.admanager.v1.UpdatePlacementRequest.Builder.class); + } + + private int bitField0_; + public static final int PLACEMENT_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.Placement placement_; + + /** + * + * + *
    +   * Required. The `Placement` to update.
    +   *
    +   * The `Placement`'s name is used to identify the `Placement` to
    +   * update. Format:
    +   * `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the placement field is set. + */ + @java.lang.Override + public boolean hasPlacement() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `Placement` to update.
    +   *
    +   * The `Placement`'s name is used to identify the `Placement` to
    +   * update. Format:
    +   * `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The placement. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Placement getPlacement() { + return placement_ == null + ? com.google.ads.admanager.v1.Placement.getDefaultInstance() + : placement_; + } + + /** + * + * + *
    +   * Required. The `Placement` to update.
    +   *
    +   * The `Placement`'s name is used to identify the `Placement` to
    +   * update. Format:
    +   * `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.PlacementOrBuilder getPlacementOrBuilder() { + return placement_ == null + ? com.google.ads.admanager.v1.Placement.getDefaultInstance() + : placement_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getPlacement()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getPlacement()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admanager.v1.UpdatePlacementRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdatePlacementRequest other = + (com.google.ads.admanager.v1.UpdatePlacementRequest) obj; + + if (hasPlacement() != other.hasPlacement()) return false; + if (hasPlacement()) { + if (!getPlacement().equals(other.getPlacement())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasPlacement()) { + hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; + hash = (53 * hash) + getPlacement().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest 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.admanager.v1.UpdatePlacementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest 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.admanager.v1.UpdatePlacementRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.UpdatePlacementRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `UpdatePlacement` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdatePlacementRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdatePlacementRequest) + com.google.ads.admanager.v1.UpdatePlacementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_UpdatePlacementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_UpdatePlacementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdatePlacementRequest.class, + com.google.ads.admanager.v1.UpdatePlacementRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdatePlacementRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPlacementFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + placement_ = null; + if (placementBuilder_ != null) { + placementBuilder_.dispose(); + placementBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PlacementServiceProto + .internal_static_google_ads_admanager_v1_UpdatePlacementRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePlacementRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdatePlacementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePlacementRequest build() { + com.google.ads.admanager.v1.UpdatePlacementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePlacementRequest buildPartial() { + com.google.ads.admanager.v1.UpdatePlacementRequest result = + new com.google.ads.admanager.v1.UpdatePlacementRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdatePlacementRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.placement_ = placementBuilder_ == null ? placement_ : placementBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdatePlacementRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdatePlacementRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdatePlacementRequest other) { + if (other == com.google.ads.admanager.v1.UpdatePlacementRequest.getDefaultInstance()) + return this; + if (other.hasPlacement()) { + mergePlacement(other.getPlacement()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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(getPlacementFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.ads.admanager.v1.Placement placement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder> + placementBuilder_; + + /** + * + * + *
    +     * Required. The `Placement` to update.
    +     *
    +     * The `Placement`'s name is used to identify the `Placement` to
    +     * update. Format:
    +     * `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the placement field is set. + */ + public boolean hasPlacement() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The `Placement` to update.
    +     *
    +     * The `Placement`'s name is used to identify the `Placement` to
    +     * update. Format:
    +     * `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The placement. + */ + public com.google.ads.admanager.v1.Placement getPlacement() { + if (placementBuilder_ == null) { + return placement_ == null + ? com.google.ads.admanager.v1.Placement.getDefaultInstance() + : placement_; + } else { + return placementBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Placement` to update.
    +     *
    +     * The `Placement`'s name is used to identify the `Placement` to
    +     * update. Format:
    +     * `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPlacement(com.google.ads.admanager.v1.Placement value) { + if (placementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + placement_ = value; + } else { + placementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` to update.
    +     *
    +     * The `Placement`'s name is used to identify the `Placement` to
    +     * update. Format:
    +     * `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPlacement(com.google.ads.admanager.v1.Placement.Builder builderForValue) { + if (placementBuilder_ == null) { + placement_ = builderForValue.build(); + } else { + placementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` to update.
    +     *
    +     * The `Placement`'s name is used to identify the `Placement` to
    +     * update. Format:
    +     * `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePlacement(com.google.ads.admanager.v1.Placement value) { + if (placementBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && placement_ != null + && placement_ != com.google.ads.admanager.v1.Placement.getDefaultInstance()) { + getPlacementBuilder().mergeFrom(value); + } else { + placement_ = value; + } + } else { + placementBuilder_.mergeFrom(value); + } + if (placement_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` to update.
    +     *
    +     * The `Placement`'s name is used to identify the `Placement` to
    +     * update. Format:
    +     * `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPlacement() { + bitField0_ = (bitField0_ & ~0x00000001); + placement_ = null; + if (placementBuilder_ != null) { + placementBuilder_.dispose(); + placementBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Placement` to update.
    +     *
    +     * The `Placement`'s name is used to identify the `Placement` to
    +     * update. Format:
    +     * `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.Placement.Builder getPlacementBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPlacementFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Placement` to update.
    +     *
    +     * The `Placement`'s name is used to identify the `Placement` to
    +     * update. Format:
    +     * `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PlacementOrBuilder getPlacementOrBuilder() { + if (placementBuilder_ != null) { + return placementBuilder_.getMessageOrBuilder(); + } else { + return placement_ == null + ? com.google.ads.admanager.v1.Placement.getDefaultInstance() + : placement_; + } + } + + /** + * + * + *
    +     * Required. The `Placement` to update.
    +     *
    +     * The `Placement`'s name is used to identify the `Placement` to
    +     * update. Format:
    +     * `networks/{network_code}/placements/{placement_id}`
    +     * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder> + getPlacementFieldBuilder() { + if (placementBuilder_ == null) { + placementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Placement, + com.google.ads.admanager.v1.Placement.Builder, + com.google.ads.admanager.v1.PlacementOrBuilder>( + getPlacement(), getParentForChildren(), isClean()); + placement_ = null; + } + return placementBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.UpdatePlacementRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdatePlacementRequest) + private static final com.google.ads.admanager.v1.UpdatePlacementRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdatePlacementRequest(); + } + + public static com.google.ads.admanager.v1.UpdatePlacementRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePlacementRequest 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.admanager.v1.UpdatePlacementRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePlacementRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePlacementRequestOrBuilder.java new file mode 100644 index 000000000000..1ddb11765140 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePlacementRequestOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/placement_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdatePlacementRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdatePlacementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The `Placement` to update.
    +   *
    +   * The `Placement`'s name is used to identify the `Placement` to
    +   * update. Format:
    +   * `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the placement field is set. + */ + boolean hasPlacement(); + + /** + * + * + *
    +   * Required. The `Placement` to update.
    +   *
    +   * The `Placement`'s name is used to identify the `Placement` to
    +   * update. Format:
    +   * `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The placement. + */ + com.google.ads.admanager.v1.Placement getPlacement(); + + /** + * + * + *
    +   * Required. The `Placement` to update.
    +   *
    +   * The `Placement`'s name is used to identify the `Placement` to
    +   * update. Format:
    +   * `networks/{network_code}/placements/{placement_id}`
    +   * 
    + * + * + * .google.ads.admanager.v1.Placement placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.PlacementOrBuilder getPlacementOrBuilder(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateSiteRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateSiteRequest.java new file mode 100644 index 000000000000..e871edd34098 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateSiteRequest.java @@ -0,0 +1,1047 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `UpdateSite` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdateSiteRequest} + */ +public final class UpdateSiteRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdateSiteRequest) + UpdateSiteRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateSiteRequest.newBuilder() to construct. + private UpdateSiteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSiteRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSiteRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_UpdateSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_UpdateSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateSiteRequest.class, + com.google.ads.admanager.v1.UpdateSiteRequest.Builder.class); + } + + private int bitField0_; + public static final int SITE_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.Site site_; + + /** + * + * + *
    +   * Required. The `Site` to update.
    +   *
    +   * The `Site`'s `name` is used to identify the `Site` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the site field is set. + */ + @java.lang.Override + public boolean hasSite() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `Site` to update.
    +   *
    +   * The `Site`'s `name` is used to identify the `Site` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The site. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Site getSite() { + return site_ == null ? com.google.ads.admanager.v1.Site.getDefaultInstance() : site_; + } + + /** + * + * + *
    +   * Required. The `Site` to update.
    +   *
    +   * The `Site`'s `name` is used to identify the `Site` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.ads.admanager.v1.SiteOrBuilder getSiteOrBuilder() { + return site_ == null ? com.google.ads.admanager.v1.Site.getDefaultInstance() : site_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getSite()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getSite()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admanager.v1.UpdateSiteRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdateSiteRequest other = + (com.google.ads.admanager.v1.UpdateSiteRequest) obj; + + if (hasSite() != other.hasSite()) return false; + if (hasSite()) { + if (!getSite().equals(other.getSite())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasSite()) { + hash = (37 * hash) + SITE_FIELD_NUMBER; + hash = (53 * hash) + getSite().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest 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.admanager.v1.UpdateSiteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest 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.admanager.v1.UpdateSiteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.UpdateSiteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `UpdateSite` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdateSiteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdateSiteRequest) + com.google.ads.admanager.v1.UpdateSiteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_UpdateSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_UpdateSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateSiteRequest.class, + com.google.ads.admanager.v1.UpdateSiteRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdateSiteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSiteFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + site_ = null; + if (siteBuilder_ != null) { + siteBuilder_.dispose(); + siteBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.SiteServiceProto + .internal_static_google_ads_admanager_v1_UpdateSiteRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateSiteRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdateSiteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateSiteRequest build() { + com.google.ads.admanager.v1.UpdateSiteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateSiteRequest buildPartial() { + com.google.ads.admanager.v1.UpdateSiteRequest result = + new com.google.ads.admanager.v1.UpdateSiteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdateSiteRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.site_ = siteBuilder_ == null ? site_ : siteBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdateSiteRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdateSiteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdateSiteRequest other) { + if (other == com.google.ads.admanager.v1.UpdateSiteRequest.getDefaultInstance()) return this; + if (other.hasSite()) { + mergeSite(other.getSite()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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(getSiteFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.ads.admanager.v1.Site site_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + siteBuilder_; + + /** + * + * + *
    +     * Required. The `Site` to update.
    +     *
    +     * The `Site`'s `name` is used to identify the `Site` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the site field is set. + */ + public boolean hasSite() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The `Site` to update.
    +     *
    +     * The `Site`'s `name` is used to identify the `Site` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The site. + */ + public com.google.ads.admanager.v1.Site getSite() { + if (siteBuilder_ == null) { + return site_ == null ? com.google.ads.admanager.v1.Site.getDefaultInstance() : site_; + } else { + return siteBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Site` to update.
    +     *
    +     * The `Site`'s `name` is used to identify the `Site` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSite(com.google.ads.admanager.v1.Site value) { + if (siteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + site_ = value; + } else { + siteBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Site` to update.
    +     *
    +     * The `Site`'s `name` is used to identify the `Site` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSite(com.google.ads.admanager.v1.Site.Builder builderForValue) { + if (siteBuilder_ == null) { + site_ = builderForValue.build(); + } else { + siteBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Site` to update.
    +     *
    +     * The `Site`'s `name` is used to identify the `Site` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSite(com.google.ads.admanager.v1.Site value) { + if (siteBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && site_ != null + && site_ != com.google.ads.admanager.v1.Site.getDefaultInstance()) { + getSiteBuilder().mergeFrom(value); + } else { + site_ = value; + } + } else { + siteBuilder_.mergeFrom(value); + } + if (site_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Site` to update.
    +     *
    +     * The `Site`'s `name` is used to identify the `Site` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSite() { + bitField0_ = (bitField0_ & ~0x00000001); + site_ = null; + if (siteBuilder_ != null) { + siteBuilder_.dispose(); + siteBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Site` to update.
    +     *
    +     * The `Site`'s `name` is used to identify the `Site` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.Site.Builder getSiteBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSiteFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Site` to update.
    +     *
    +     * The `Site`'s `name` is used to identify the `Site` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.SiteOrBuilder getSiteOrBuilder() { + if (siteBuilder_ != null) { + return siteBuilder_.getMessageOrBuilder(); + } else { + return site_ == null ? com.google.ads.admanager.v1.Site.getDefaultInstance() : site_; + } + } + + /** + * + * + *
    +     * Required. The `Site` to update.
    +     *
    +     * The `Site`'s `name` is used to identify the `Site` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder> + getSiteFieldBuilder() { + if (siteBuilder_ == null) { + siteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Site, + com.google.ads.admanager.v1.Site.Builder, + com.google.ads.admanager.v1.SiteOrBuilder>( + getSite(), getParentForChildren(), isClean()); + site_ = null; + } + return siteBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.UpdateSiteRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdateSiteRequest) + private static final com.google.ads.admanager.v1.UpdateSiteRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdateSiteRequest(); + } + + public static com.google.ads.admanager.v1.UpdateSiteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSiteRequest 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.admanager.v1.UpdateSiteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateSiteRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateSiteRequestOrBuilder.java new file mode 100644 index 000000000000..c422d3f1bb26 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateSiteRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/site_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdateSiteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdateSiteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The `Site` to update.
    +   *
    +   * The `Site`'s `name` is used to identify the `Site` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the site field is set. + */ + boolean hasSite(); + + /** + * + * + *
    +   * Required. The `Site` to update.
    +   *
    +   * The `Site`'s `name` is used to identify the `Site` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The site. + */ + com.google.ads.admanager.v1.Site getSite(); + + /** + * + * + *
    +   * Required. The `Site` to update.
    +   *
    +   * The `Site`'s `name` is used to identify the `Site` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Site site = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.ads.admanager.v1.SiteOrBuilder getSiteOrBuilder(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateTeamRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateTeamRequest.java new file mode 100644 index 000000000000..c46a7ab59937 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateTeamRequest.java @@ -0,0 +1,1047 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Request object for `UpdateTeam` method.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdateTeamRequest} + */ +public final class UpdateTeamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdateTeamRequest) + UpdateTeamRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateTeamRequest.newBuilder() to construct. + private UpdateTeamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTeamRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTeamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_UpdateTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_UpdateTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateTeamRequest.class, + com.google.ads.admanager.v1.UpdateTeamRequest.Builder.class); + } + + private int bitField0_; + public static final int TEAM_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.Team team_; + + /** + * + * + *
    +   * Required. The `Team` to update.
    +   *
    +   * The `Team`'s `name` is used to identify the `Team` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the team field is set. + */ + @java.lang.Override + public boolean hasTeam() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `Team` to update.
    +   *
    +   * The `Team`'s `name` is used to identify the `Team` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The team. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Team getTeam() { + return team_ == null ? com.google.ads.admanager.v1.Team.getDefaultInstance() : team_; + } + + /** + * + * + *
    +   * Required. The `Team` to update.
    +   *
    +   * The `Team`'s `name` is used to identify the `Team` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.ads.admanager.v1.TeamOrBuilder getTeamOrBuilder() { + return team_ == null ? com.google.ads.admanager.v1.Team.getDefaultInstance() : team_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getTeam()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getTeam()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admanager.v1.UpdateTeamRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdateTeamRequest other = + (com.google.ads.admanager.v1.UpdateTeamRequest) obj; + + if (hasTeam() != other.hasTeam()) return false; + if (hasTeam()) { + if (!getTeam().equals(other.getTeam())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasTeam()) { + hash = (37 * hash) + TEAM_FIELD_NUMBER; + hash = (53 * hash) + getTeam().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest 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.admanager.v1.UpdateTeamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest 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.admanager.v1.UpdateTeamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.UpdateTeamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request object for `UpdateTeam` method.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.UpdateTeamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdateTeamRequest) + com.google.ads.admanager.v1.UpdateTeamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_UpdateTeamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_UpdateTeamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateTeamRequest.class, + com.google.ads.admanager.v1.UpdateTeamRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdateTeamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTeamFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TeamServiceProto + .internal_static_google_ads_admanager_v1_UpdateTeamRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateTeamRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdateTeamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateTeamRequest build() { + com.google.ads.admanager.v1.UpdateTeamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateTeamRequest buildPartial() { + com.google.ads.admanager.v1.UpdateTeamRequest result = + new com.google.ads.admanager.v1.UpdateTeamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdateTeamRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.team_ = teamBuilder_ == null ? team_ : teamBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdateTeamRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdateTeamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdateTeamRequest other) { + if (other == com.google.ads.admanager.v1.UpdateTeamRequest.getDefaultInstance()) return this; + if (other.hasTeam()) { + mergeTeam(other.getTeam()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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(getTeamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.ads.admanager.v1.Team team_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + teamBuilder_; + + /** + * + * + *
    +     * Required. The `Team` to update.
    +     *
    +     * The `Team`'s `name` is used to identify the `Team` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the team field is set. + */ + public boolean hasTeam() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The `Team` to update.
    +     *
    +     * The `Team`'s `name` is used to identify the `Team` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The team. + */ + public com.google.ads.admanager.v1.Team getTeam() { + if (teamBuilder_ == null) { + return team_ == null ? com.google.ads.admanager.v1.Team.getDefaultInstance() : team_; + } else { + return teamBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Team` to update.
    +     *
    +     * The `Team`'s `name` is used to identify the `Team` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeam(com.google.ads.admanager.v1.Team value) { + if (teamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + team_ = value; + } else { + teamBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Team` to update.
    +     *
    +     * The `Team`'s `name` is used to identify the `Team` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeam(com.google.ads.admanager.v1.Team.Builder builderForValue) { + if (teamBuilder_ == null) { + team_ = builderForValue.build(); + } else { + teamBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Team` to update.
    +     *
    +     * The `Team`'s `name` is used to identify the `Team` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTeam(com.google.ads.admanager.v1.Team value) { + if (teamBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && team_ != null + && team_ != com.google.ads.admanager.v1.Team.getDefaultInstance()) { + getTeamBuilder().mergeFrom(value); + } else { + team_ = value; + } + } else { + teamBuilder_.mergeFrom(value); + } + if (team_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Team` to update.
    +     *
    +     * The `Team`'s `name` is used to identify the `Team` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTeam() { + bitField0_ = (bitField0_ & ~0x00000001); + team_ = null; + if (teamBuilder_ != null) { + teamBuilder_.dispose(); + teamBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Team` to update.
    +     *
    +     * The `Team`'s `name` is used to identify the `Team` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.Team.Builder getTeamBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTeamFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Team` to update.
    +     *
    +     * The `Team`'s `name` is used to identify the `Team` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.TeamOrBuilder getTeamOrBuilder() { + if (teamBuilder_ != null) { + return teamBuilder_.getMessageOrBuilder(); + } else { + return team_ == null ? com.google.ads.admanager.v1.Team.getDefaultInstance() : team_; + } + } + + /** + * + * + *
    +     * Required. The `Team` to update.
    +     *
    +     * The `Team`'s `name` is used to identify the `Team` to update.
    +     * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder> + getTeamFieldBuilder() { + if (teamBuilder_ == null) { + teamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Team, + com.google.ads.admanager.v1.Team.Builder, + com.google.ads.admanager.v1.TeamOrBuilder>( + getTeam(), getParentForChildren(), isClean()); + team_ = null; + } + return teamBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
    +     * Required. The list of fields to update.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.UpdateTeamRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdateTeamRequest) + private static final com.google.ads.admanager.v1.UpdateTeamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdateTeamRequest(); + } + + public static com.google.ads.admanager.v1.UpdateTeamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTeamRequest 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.admanager.v1.UpdateTeamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateTeamRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateTeamRequestOrBuilder.java new file mode 100644 index 000000000000..463baceea77e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateTeamRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/team_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdateTeamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdateTeamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The `Team` to update.
    +   *
    +   * The `Team`'s `name` is used to identify the `Team` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the team field is set. + */ + boolean hasTeam(); + + /** + * + * + *
    +   * Required. The `Team` to update.
    +   *
    +   * The `Team`'s `name` is used to identify the `Team` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The team. + */ + com.google.ads.admanager.v1.Team getTeam(); + + /** + * + * + *
    +   * Required. The `Team` to update.
    +   *
    +   * The `Team`'s `name` is used to identify the `Team` to update.
    +   * 
    + * + * .google.ads.admanager.v1.Team team = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.ads.admanager.v1.TeamOrBuilder getTeamOrBuilder(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
    +   * Required. The list of fields to update.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebProperty.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebProperty.java new file mode 100644 index 000000000000..acad1b2ca25f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebProperty.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/web_property.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
    + * Represents a web property.
    + * 
    + * + * Protobuf type {@code google.ads.admanager.v1.WebProperty} + */ +public final class WebProperty extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.WebProperty) + WebPropertyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WebProperty.newBuilder() to construct. + private WebProperty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WebProperty() { + name_ = ""; + webPropertyCode_ = ""; + productType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WebProperty(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.WebPropertyProto + .internal_static_google_ads_admanager_v1_WebProperty_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.WebPropertyProto + .internal_static_google_ads_admanager_v1_WebProperty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.WebProperty.class, + com.google.ads.admanager.v1.WebProperty.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The resource name of the WebProperty.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}`
    +   * 
    + * + * 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. The resource name of the WebProperty.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}`
    +   * 
    + * + * 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 WEB_PROPERTY_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object webPropertyCode_ = ""; + + /** + * + * + *
    +   * Required. The `WebProperty` code.
    +   * 
    + * + * string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The webPropertyCode. + */ + @java.lang.Override + public java.lang.String getWebPropertyCode() { + java.lang.Object ref = webPropertyCode_; + 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(); + webPropertyCode_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The `WebProperty` code.
    +   * 
    + * + * string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for webPropertyCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebPropertyCodeBytes() { + java.lang.Object ref = webPropertyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webPropertyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_FIELD_NUMBER = 3; + private int productType_ = 0; + + /** + * + * + *
    +   * Required. The ExchangeSyndicationProduct associated with this WebProperty.
    +   * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for productType. + */ + @java.lang.Override + public int getProductTypeValue() { + return productType_; + } + + /** + * + * + *
    +   * Required. The ExchangeSyndicationProduct associated with this WebProperty.
    +   * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The productType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + getProductType() { + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct result = + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .forNumber(productType_); + return result == null + ? com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .UNRECOGNIZED + : result; + } + + public static final int WEB_PROPERTY_ID_FIELD_NUMBER = 4; + private long webPropertyId_ = 0L; + + /** + * + * + *
    +   * Optional. The `WebProperty` ID.
    +   * 
    + * + * int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The webPropertyId. + */ + @java.lang.Override + public long getWebPropertyId() { + return webPropertyId_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webPropertyCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, webPropertyCode_); + } + if (productType_ + != com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, productType_); + } + if (webPropertyId_ != 0L) { + output.writeInt64(4, webPropertyId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webPropertyCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, webPropertyCode_); + } + if (productType_ + != com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, productType_); + } + if (webPropertyId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, webPropertyId_); + } + 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.admanager.v1.WebProperty)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.WebProperty other = (com.google.ads.admanager.v1.WebProperty) obj; + + if (!getName().equals(other.getName())) return false; + if (!getWebPropertyCode().equals(other.getWebPropertyCode())) return false; + if (productType_ != other.productType_) return false; + if (getWebPropertyId() != other.getWebPropertyId()) 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) + WEB_PROPERTY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getWebPropertyCode().hashCode(); + hash = (37 * hash) + PRODUCT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + productType_; + hash = (37 * hash) + WEB_PROPERTY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWebPropertyId()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.WebProperty parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.WebProperty 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.admanager.v1.WebProperty parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.WebProperty 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.admanager.v1.WebProperty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.WebProperty parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.WebProperty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.WebProperty parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.WebProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.WebProperty parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.WebProperty parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.WebProperty parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.admanager.v1.WebProperty prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Represents a web property.
    +   * 
    + * + * Protobuf type {@code google.ads.admanager.v1.WebProperty} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.WebProperty) + com.google.ads.admanager.v1.WebPropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.WebPropertyProto + .internal_static_google_ads_admanager_v1_WebProperty_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.WebPropertyProto + .internal_static_google_ads_admanager_v1_WebProperty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.WebProperty.class, + com.google.ads.admanager.v1.WebProperty.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.WebProperty.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + webPropertyCode_ = ""; + productType_ = 0; + webPropertyId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.WebPropertyProto + .internal_static_google_ads_admanager_v1_WebProperty_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.WebProperty getDefaultInstanceForType() { + return com.google.ads.admanager.v1.WebProperty.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.WebProperty build() { + com.google.ads.admanager.v1.WebProperty result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.WebProperty buildPartial() { + com.google.ads.admanager.v1.WebProperty result = + new com.google.ads.admanager.v1.WebProperty(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.WebProperty result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.webPropertyCode_ = webPropertyCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.productType_ = productType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.webPropertyId_ = webPropertyId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.WebProperty) { + return mergeFrom((com.google.ads.admanager.v1.WebProperty) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.WebProperty other) { + if (other == com.google.ads.admanager.v1.WebProperty.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWebPropertyCode().isEmpty()) { + webPropertyCode_ = other.webPropertyCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.productType_ != 0) { + setProductTypeValue(other.getProductTypeValue()); + } + if (other.getWebPropertyId() != 0L) { + setWebPropertyId(other.getWebPropertyId()); + } + 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: + { + webPropertyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + productType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + webPropertyId_ = input.readInt64(); + 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 name_ = ""; + + /** + * + * + *
    +     * Identifier. The resource name of the WebProperty.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}`
    +     * 
    + * + * 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. The resource name of the WebProperty.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}`
    +     * 
    + * + * 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. The resource name of the WebProperty.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the WebProperty.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The resource name of the WebProperty.
    +     * Format:
    +     * `networks/{network_code}/webProperties/{web_property_code}`
    +     * 
    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object webPropertyCode_ = ""; + + /** + * + * + *
    +     * Required. The `WebProperty` code.
    +     * 
    + * + * string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The webPropertyCode. + */ + public java.lang.String getWebPropertyCode() { + java.lang.Object ref = webPropertyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webPropertyCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The `WebProperty` code.
    +     * 
    + * + * string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for webPropertyCode. + */ + public com.google.protobuf.ByteString getWebPropertyCodeBytes() { + java.lang.Object ref = webPropertyCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webPropertyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The `WebProperty` code.
    +     * 
    + * + * string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The webPropertyCode to set. + * @return This builder for chaining. + */ + public Builder setWebPropertyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webPropertyCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `WebProperty` code.
    +     * 
    + * + * string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearWebPropertyCode() { + webPropertyCode_ = getDefaultInstance().getWebPropertyCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `WebProperty` code.
    +     * 
    + * + * string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for webPropertyCode to set. + * @return This builder for chaining. + */ + public Builder setWebPropertyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webPropertyCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int productType_ = 0; + + /** + * + * + *
    +     * Required. The ExchangeSyndicationProduct associated with this WebProperty.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for productType. + */ + @java.lang.Override + public int getProductTypeValue() { + return productType_; + } + + /** + * + * + *
    +     * Required. The ExchangeSyndicationProduct associated with this WebProperty.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for productType to set. + * @return This builder for chaining. + */ + public Builder setProductTypeValue(int value) { + productType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The ExchangeSyndicationProduct associated with this WebProperty.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The productType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + getProductType() { + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct result = + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .forNumber(productType_); + return result == null + ? com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Required. The ExchangeSyndicationProduct associated with this WebProperty.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The productType to set. + * @return This builder for chaining. + */ + public Builder setProductType( + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + productType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The ExchangeSyndicationProduct associated with this WebProperty.
    +     * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearProductType() { + bitField0_ = (bitField0_ & ~0x00000004); + productType_ = 0; + onChanged(); + return this; + } + + private long webPropertyId_; + + /** + * + * + *
    +     * Optional. The `WebProperty` ID.
    +     * 
    + * + * int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The webPropertyId. + */ + @java.lang.Override + public long getWebPropertyId() { + return webPropertyId_; + } + + /** + * + * + *
    +     * Optional. The `WebProperty` ID.
    +     * 
    + * + * int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The webPropertyId to set. + * @return This builder for chaining. + */ + public Builder setWebPropertyId(long value) { + + webPropertyId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The `WebProperty` ID.
    +     * 
    + * + * int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWebPropertyId() { + bitField0_ = (bitField0_ & ~0x00000008); + webPropertyId_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.WebProperty) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.WebProperty) + private static final com.google.ads.admanager.v1.WebProperty DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.WebProperty(); + } + + public static com.google.ads.admanager.v1.WebProperty getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebProperty 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.admanager.v1.WebProperty getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyName.java new file mode 100644 index 000000000000..b9b1a8a3a5ef --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyName.java @@ -0,0 +1,193 @@ +/* + * Copyright 2025 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.admanager.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 WebPropertyName implements ResourceName { + private static final PathTemplate NETWORK_CODE_WEB_PROPERTY = + PathTemplate.createWithoutUrlEncoding("networks/{network_code}/webProperties/{web_property}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String webProperty; + + @Deprecated + protected WebPropertyName() { + networkCode = null; + webProperty = null; + } + + private WebPropertyName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + webProperty = Preconditions.checkNotNull(builder.getWebProperty()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getWebProperty() { + return webProperty; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static WebPropertyName of(String networkCode, String webProperty) { + return newBuilder().setNetworkCode(networkCode).setWebProperty(webProperty).build(); + } + + public static String format(String networkCode, String webProperty) { + return newBuilder().setNetworkCode(networkCode).setWebProperty(webProperty).build().toString(); + } + + public static WebPropertyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_WEB_PROPERTY.validatedMatch( + formattedString, "WebPropertyName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("web_property")); + } + + 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 (WebPropertyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_WEB_PROPERTY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (webProperty != null) { + fieldMapBuilder.put("web_property", webProperty); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_WEB_PROPERTY.instantiate( + "network_code", networkCode, "web_property", webProperty); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + WebPropertyName that = ((WebPropertyName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.webProperty, that.webProperty); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(webProperty); + return h; + } + + /** Builder for networks/{network_code}/webProperties/{web_property}. */ + public static class Builder { + private String networkCode; + private String webProperty; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getWebProperty() { + return webProperty; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setWebProperty(String webProperty) { + this.webProperty = webProperty; + return this; + } + + private Builder(WebPropertyName webPropertyName) { + this.networkCode = webPropertyName.networkCode; + this.webProperty = webPropertyName.webProperty; + } + + public WebPropertyName build() { + return new WebPropertyName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyOrBuilder.java new file mode 100644 index 000000000000..647997c00a73 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/web_property.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface WebPropertyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.WebProperty) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The resource name of the WebProperty.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The resource name of the WebProperty.
    +   * Format:
    +   * `networks/{network_code}/webProperties/{web_property_code}`
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The `WebProperty` code.
    +   * 
    + * + * string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The webPropertyCode. + */ + java.lang.String getWebPropertyCode(); + + /** + * + * + *
    +   * Required. The `WebProperty` code.
    +   * 
    + * + * string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for webPropertyCode. + */ + com.google.protobuf.ByteString getWebPropertyCodeBytes(); + + /** + * + * + *
    +   * Required. The ExchangeSyndicationProduct associated with this WebProperty.
    +   * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for productType. + */ + int getProductTypeValue(); + + /** + * + * + *
    +   * Required. The ExchangeSyndicationProduct associated with this WebProperty.
    +   * 
    + * + * + * .google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The productType. + */ + com.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct + getProductType(); + + /** + * + * + *
    +   * Optional. The `WebProperty` ID.
    +   * 
    + * + * int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The webPropertyId. + */ + long getWebPropertyId(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyProto.java new file mode 100644 index 000000000000..fd098233c3d5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2025 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! +// source: google/ads/admanager/v1/web_property.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class WebPropertyProto { + private WebPropertyProto() {} + + 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_admanager_v1_WebProperty_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_WebProperty_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/admanager/v1/web_property.p" + + "roto\022\027google.ads.admanager.v1\032?google/ad" + + "s/admanager/v1/exchange_syndication_prod" + + "uct_enum.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\"\312\002\n\013W" + + "ebProperty\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\036\n\021web_pro" + + "perty_code\030\002 \001(\tB\003\340A\002\022m\n\014product_type\030\003 " + + "\001(\0162R.google.ads.admanager.v1.ExchangeSy" + + "ndicationProductEnum.ExchangeSyndication" + + "ProductB\003\340A\002\022\034\n\017web_property_id\030\004 \001(\003B\003\340" + + "A\001:{\352Ax\n$admanager.googleapis.com/WebPro" + + "perty\0224networks/{network_code}/webProper" + + "ties/{web_property}*\rwebProperties2\013webP" + + "ropertyB\304\001\n\033com.google.ads.admanager.v1B" + + "\020WebPropertyProtoP\001Z@google.golang.org/g" + + "enproto/googleapis/ads/admanager/v1;adma" + + "nager\252\002\027Google.Ads.AdManager.V1\312\002\027Google" + + "\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManag" + + "er::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ExchangeSyndicationProductEnumProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_WebProperty_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_WebProperty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_WebProperty_descriptor, + new java.lang.String[] { + "Name", "WebPropertyCode", "ProductType", "WebPropertyId", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.ExchangeSyndicationProductEnumProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_service.proto index 1070a036876a..d3aa8c0e0dfe 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_service.proto @@ -213,7 +213,7 @@ message ListAdBreaksResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_enums.proto new file mode 100644 index 000000000000..cb4db5dfb743 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_enums.proto @@ -0,0 +1,44 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "AdReviewCenterAdEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [AdReviewCenterAdStatus][google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus] +message AdReviewCenterAdStatusEnum { + // Specifies the status of an AdReviewCenterAd. + enum AdReviewCenterAdStatus { + // Not specified value + AD_REVIEW_CENTER_AD_STATUS_UNSPECIFIED = 0; + + // This ad has been explicitly allowed to serve. + ALLOWED = 1; + + // This ad has been explicitly blocked from serving. + BLOCKED = 2; + + // This ad is allowed to serve by default and has not been reviewed. + UNREVIEWED = 3; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_messages.proto new file mode 100644 index 000000000000..cc3886900427 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_messages.proto @@ -0,0 +1,62 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/ad_review_center_ad_enums.proto"; +import "google/ads/admanager/v1/exchange_syndication_product_enum.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "AdReviewCenterAdMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents an ad that can be acted on or viewed in the Ad Review Center. +// [AdReviewCenterAd][google.ads.admanager.v1.AdReviewCenterAd]. +message AdReviewCenterAd { + option (google.api.resource) = { + type: "admanager.googleapis.com/AdReviewCenterAd" + pattern: "networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}" + plural: "adReviewCenterAds" + singular: "adReviewCenterAd" + }; + + // Identifier. The resource name of the AdReviewCenterAd. + // Format: + // `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. `AdReviewCenterAd` ID. + string ad_review_center_ad_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the ExchangeSyndicationProduct for this + // AdReviewCenterAd. + ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The status of the AdReviewCenterAd. + AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4; + + // Output only. The preview URL that can be embedded or accessed directly + // which will present the rendered contents of the ad. (This URL expires 72 + // hours after being retrieved.). + optional string preview_url = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_service.proto new file mode 100644 index 000000000000..c1b4255cbfc9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_service.proto @@ -0,0 +1,237 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/ad_review_center_ad_enums.proto"; +import "google/ads/admanager/v1/ad_review_center_ad_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/rpc/status.proto"; +import "google/type/interval.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "AdReviewCenterAdServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling AdReviewCenterAd objects. +service AdReviewCenterAdService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to search for AdReviewCenterAds. + rpc SearchAdReviewCenterAds(SearchAdReviewCenterAdsRequest) + returns (SearchAdReviewCenterAdsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:search" + }; + option (google.api.method_signature) = "parent"; + } + + // API to batch allow AdReviewCenterAds. + // This method supports partial success. Some operations may succeed while + // others fail. Callers should check the failedRequests field in the response + // to determine which operations failed. + rpc BatchAllowAdReviewCenterAds(BatchAllowAdReviewCenterAdsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:batchAllow" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "BatchAllowAdReviewCenterAdsResponse" + metadata_type: "BatchAdReviewCenterAdsOperationMetadata" + }; + } + + // API to batch block AdReviewCenterAds. + // This method supports partial success. Some operations may succeed while + // others fail. Callers should check the failedRequests field in the response + // to determine which operations failed. + rpc BatchBlockAdReviewCenterAds(BatchBlockAdReviewCenterAdsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:batchBlock" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "BatchBlockAdReviewCenterAdsResponse" + metadata_type: "BatchAdReviewCenterAdsOperationMetadata" + }; + } +} + +// Request object for `SearchAdReviewCenterAds` method. +message SearchAdReviewCenterAdsRequest { + // Required. The parent, which owns this collection of AdReviewCenterAds. + // Format: networks/{network_code}/webProperties/{web_property_code} + // + // Since a network can only have a single web property of each + // `ExchangeSyndicationProduct`, you can use the + // `ExchangeSyndicationProduct` as an alias for the web property code: + // + // `networks/{network_code}/webProperties/display` + // + // `networks/{network_code}/webProperties/videoAndAudio` + // + // `networks/{network_code}/webProperties/mobileApp` + // + // `networks/{network_code}/webProperties/games` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/WebProperty" + } + ]; + + // Optional. The maximum number of AdReviewCenterAds to return. The service + // may return fewer than this value. If unspecified, at most 50 + // AdReviewCenterAds will be returned. The maximum value is 1000; values + // greater than 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token to fetch the next page of AdReviewCenterAds. This + // is the value returned from a previous Search request, or empty. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Only return ads with the given status. + AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. If provided, only return ads with the given AdReviewCenterAd IDs. + repeated string ad_review_center_ad_id = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If provided, only return ads that served within the given date + // range (inclusive). The date range must be within the last 30 days. If not + // provided, the date range will be the last 30 days. + google.type.Interval date_time_range = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If provided, restrict the search to AdReviewCenterAds associated + // with the text (including any text on the ad or in the destination URL). If + // more than one value is provided, the search will combine them in a logical + // AND. For example, ['car', 'blue'] will match ads that contain both "car" + // and "blue", but not an ad that only contains "car". + repeated string search_text = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If provided, restrict the search to creatives belonging to one of + // the given Adx buyer account IDs. Only applicable to RTB creatives. Adx + // buyer account IDs can be found via the ProgrammaticBuyerService. + repeated int64 buyer_account_id = 8 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `SearchAdReviewCenterAds` method. +message SearchAdReviewCenterAdsResponse { + // The AdReviewCenterAds that match the search request. + repeated AdReviewCenterAd ad_review_center_ads = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `BatchAllowAdReviewCenterAds` method. +message BatchAllowAdReviewCenterAdsRequest { + // Required. The parent, which owns this collection of AdReviewCenterAds. + // Format: networks/{network_code}/webProperties/{web_property_code} + // + // Since a network can only have a single web property of each + // `ExchangeSyndicationProduct`, you can use the + // `ExchangeSyndicationProduct` as an alias for the web property code: + // + // `networks/{network_code}/webProperties/display` + // + // `networks/{network_code}/webProperties/videoAndAudio` + // + // `networks/{network_code}/webProperties/mobileApp` + // + // `networks/{network_code}/webProperties/games` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/WebProperty" + } + ]; + + // Required. The resource names of the `AdReviewCenterAd`s to allow. + // Format: + // `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AdReviewCenterAd" + } + ]; +} + +// Response object for `BatchAllowAdReviewCenterAds` method. +message BatchAllowAdReviewCenterAdsResponse {} + +// Request object for `BatchBlockAdReviewCenterAds` method. +message BatchBlockAdReviewCenterAdsRequest { + // Required. The parent, which owns this collection of AdReviewCenterAds. + // Format: networks/{network_code}/webProperties/{web_property_code} + // + // Since a network can only have a single web property of each + // `ExchangeSyndicationProduct`, you can use the + // `ExchangeSyndicationProduct` as an alias for the web property code: + // + // `networks/{network_code}/webProperties/display` + // + // `networks/{network_code}/webProperties/videoAndAudio` + // + // `networks/{network_code}/webProperties/mobileApp` + // + // `networks/{network_code}/webProperties/games` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/WebProperty" + } + ]; + + // Required. The resource names of the `AdReviewCenterAd`s to block. + // Format: + // `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AdReviewCenterAd" + } + ]; +} + +// Response object for `BatchBlockAdReviewCenterAds` method. +message BatchBlockAdReviewCenterAdsResponse {} + +// Metadata object for `BatchAllowAdReviewCenterAds` and +// `BatchBlockAdReviewCenterAds` methods. +message BatchAdReviewCenterAdsOperationMetadata { + // The status of each failed request, keyed by the index of the corresponding + // request in the batch request. + map failed_requests = 1; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto index 6de8c3a2d81f..33abec9d745a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto @@ -191,10 +191,10 @@ message AdUnit { // Represents the size, environment, and companions of an ad in an ad unit. message AdUnitSize { // Required. The Size of the AdUnit. - Size size = 1 [(google.api.field_behavior) = REQUIRED]; + optional Size size = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The EnvironmentType of the AdUnit - EnvironmentTypeEnum.EnvironmentType environment_type = 2 + optional EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(google.api.field_behavior) = REQUIRED]; // The companions for this ad unit size. Companions are only valid if the @@ -207,7 +207,7 @@ message AdUnitSize { message AdUnitParent { // Output only. The parent of the current AdUnit // Format: `networks/{network_code}/adUnits/{ad_unit_id}` - string parent_ad_unit = 1 [ + optional string parent_ad_unit = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "admanager.googleapis.com/AdUnit" @@ -215,22 +215,22 @@ message AdUnitParent { ]; // Output only. The display name of the parent AdUnit. - string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. A string used to uniquely identify the ad unit for the // purposes of serving the ad. - string ad_unit_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string ad_unit_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Frequency cap using a label. message LabelFrequencyCap { // Required. The label to used for frequency capping. // Format: "networks/{network_code}/labels/{label_id}" - string label = 1 [ + optional string label = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "admanager.googleapis.com/Label" } ]; // The frequency cap. - FrequencyCap frequency_cap = 2; + optional FrequencyCap frequency_cap = 2; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto index 34151a3023d0..00843ea20407 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto @@ -87,8 +87,8 @@ message ListAdUnitsRequest { // Optional. The maximum number of AdUnits to return. The service may return // fewer than this value. If unspecified, at most 50 ad units will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. + // returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListAdUnits` call. @@ -125,7 +125,7 @@ message ListAdUnitsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. @@ -148,8 +148,8 @@ message ListAdUnitSizesRequest { // Optional. The maximum number of AdUnitSizes to return. The service may // return fewer than this value. If unspecified, at most 50 ad unit sizes will - // be returned. The maximum value is 1000; values above 1000 will be coerced - // to 1000. + // be returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListAdUnitSizes` call. @@ -186,7 +186,7 @@ message ListAdUnitSizesResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/application_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/application_messages.proto new file mode 100644 index 000000000000..03f762b8adc2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/application_messages.proto @@ -0,0 +1,47 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ApplicationMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// An application that has been added to or "claimed" by the network to be used +// for targeting purposes. These mobile apps can come from various app stores. +message Application { + option (google.api.resource) = { + type: "admanager.googleapis.com/Application" + pattern: "networks/{network_code}/applications/{application}" + plural: "applications" + singular: "application" + }; + + // Identifier. The resource name of the `Application`. + // Format: `networks/{network_code}/applications/{application_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The display name of the application. This attribute is required + // and has a maximum length of 80 characters. + optional string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/application_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/application_service.proto new file mode 100644 index 000000000000..f0bfb1e7b25d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/application_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/application_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ApplicationServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `Application` objects. +service ApplicationService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `Application` object. + rpc GetApplication(GetApplicationRequest) returns (Application) { + option (google.api.http) = { + get: "/v1/{name=networks/*/applications/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `Application` objects. + rpc ListApplications(ListApplicationsRequest) + returns (ListApplicationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/applications" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetApplication` method. +message GetApplicationRequest { + // Required. The resource name of the Application. + // Format: `networks/{network_code}/applications/{application_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Application" + } + ]; +} + +// Request object for `ListApplications` method. +message ListApplicationsRequest { + // Required. The parent, which owns this collection of Applications. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `Applications` to return. The service may + // return fewer than this value. If unspecified, at most 50 `Applications` + // will be returned. The maximum value is 1000; values greater than 1000 will + // be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListApplications` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListApplications` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListApplicationsRequest` containing matching +// `Application` objects. +message ListApplicationsResponse { + // The `Application` objects from the specified network. + repeated Application applications = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `Application` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/audience_segment_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/audience_segment_messages.proto new file mode 100644 index 000000000000..f6e63efa8f4a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/audience_segment_messages.proto @@ -0,0 +1,49 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "AudienceSegmentMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// The `AudienceSegment` resource. +message AudienceSegment { + option (google.api.resource) = { + type: "admanager.googleapis.com/AudienceSegment" + pattern: "networks/{network_code}/audienceSegments/{audience_segment}" + plural: "audienceSegments" + singular: "audienceSegment" + }; + + // Identifier. The resource name of the `AudienceSegment`. + // Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + // The `audience_segment_id` may have up to 1 of the following suffixes: + // - `~direct` for directly licensed third-party segments + // - `~global` for globally licensed third-party segments + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Display name of the `AudienceSegment`. The attribute has a + // maximum length of 255 characters. + optional string display_name = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/audience_segment_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/audience_segment_service.proto new file mode 100644 index 000000000000..ebcf751263f0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/audience_segment_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/audience_segment_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "AudienceSegmentServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `AudienceSegment` objects. +service AudienceSegmentService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve an `AudienceSegment` object. + rpc GetAudienceSegment(GetAudienceSegmentRequest) returns (AudienceSegment) { + option (google.api.http) = { + get: "/v1/{name=networks/*/audienceSegments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `AudienceSegment` objects. + rpc ListAudienceSegments(ListAudienceSegmentsRequest) + returns (ListAudienceSegmentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/audienceSegments" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetAudienceSegment` method. +message GetAudienceSegmentRequest { + // Required. The resource name of the AudienceSegment. + // Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AudienceSegment" + } + ]; +} + +// Request object for `ListAudienceSegments` method. +message ListAudienceSegmentsRequest { + // Required. The parent publisher network associated with these audience + // segments. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `AudienceSegments` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `AudienceSegments` will be returned. The maximum value is 1000; values + // greater than 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListAudienceSegments` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListAudienceSegments` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListAudienceSegmentsRequest` containing matching +// `AudienceSegment` objects. +message ListAudienceSegmentsResponse { + // The `AudienceSegment` objects from the specified network. + repeated AudienceSegment audience_segments = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `AudienceSegment` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_service.proto index 10b305b6616c..34fac5579433 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_service.proto @@ -79,8 +79,8 @@ message ListBandwidthGroupsRequest { // Optional. The maximum number of `BandwidthGroups` to return. The service // may return fewer than this value. If unspecified, at most 50 - // `BandwidthGroups` will be returned. The maximum value is 1000; values above - // 1000 will be coerced to 1000. + // `BandwidthGroups` will be returned. The maximum value is 1000; values + // greater than 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListBandwidthGroups` @@ -118,7 +118,7 @@ message ListBandwidthGroupsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_language_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_language_messages.proto new file mode 100644 index 000000000000..014e2ee31360 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_language_messages.proto @@ -0,0 +1,45 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "BrowserLanguageMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents the language of a browser. +message BrowserLanguage { + option (google.api.resource) = { + type: "admanager.googleapis.com/BrowserLanguage" + pattern: "networks/{network_code}/browserLanguages/{browser_language}" + plural: "browserLanguages" + singular: "browserLanguage" + }; + + // Identifier. The resource name of the `BrowserLanguage`. + // Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The name of the browser language, localized. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_language_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_language_service.proto new file mode 100644 index 000000000000..f2fef5344abc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_language_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/browser_language_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "BrowserLanguageServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `BrowserLanguage` objects. +service BrowserLanguageService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `BrowserLanguage` object. + rpc GetBrowserLanguage(GetBrowserLanguageRequest) returns (BrowserLanguage) { + option (google.api.http) = { + get: "/v1/{name=networks/*/browserLanguages/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `BrowserLanguage` objects. + rpc ListBrowserLanguages(ListBrowserLanguagesRequest) + returns (ListBrowserLanguagesResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/browserLanguages" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetBrowserLanguage` method. +message GetBrowserLanguageRequest { + // Required. The resource name of the BrowserLanguage. + // Format: `networks/{network_code}/browserLanguages/{browser_language_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/BrowserLanguage" + } + ]; +} + +// Request object for `ListBrowserLanguages` method. +message ListBrowserLanguagesRequest { + // Required. The parent, which owns this collection of BrowserLanguages. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `BrowserLanguages` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `BrowserLanguages` will be returned. The maximum value is 1000; values + // greater than 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListBrowserLanguages` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListBrowserLanguages` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListBrowserLanguagesRequest` containing matching +// `BrowserLanguage` objects. +message ListBrowserLanguagesResponse { + // The `BrowserLanguage` objects from the specified network. + repeated BrowserLanguage browser_languages = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `BrowserLanguage` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_messages.proto new file mode 100644 index 000000000000..9832c9a7fb29 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_messages.proto @@ -0,0 +1,51 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "BrowserMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a browser, including its version. +message Browser { + option (google.api.resource) = { + type: "admanager.googleapis.com/Browser" + pattern: "networks/{network_code}/browsers/{browser}" + plural: "browsers" + singular: "browser" + }; + + // Identifier. The resource name of the `Browser`. + // Format: `networks/{network_code}/browsers/{browser}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The display name of the browser, including version info. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The major version of the browser. + optional string major_version = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The minor version of the browser. + optional string minor_version = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_service.proto new file mode 100644 index 000000000000..dd7ec45a3c7e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/browser_service.proto @@ -0,0 +1,128 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/browser_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "BrowserServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `Browser` objects. +service BrowserService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `Browser` object. + rpc GetBrowser(GetBrowserRequest) returns (Browser) { + option (google.api.http) = { + get: "/v1/{name=networks/*/browsers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `Browser` objects. + rpc ListBrowsers(ListBrowsersRequest) returns (ListBrowsersResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/browsers" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetBrowser` method. +message GetBrowserRequest { + // Required. The resource name of the Browser. + // Format: `networks/{network_code}/browsers/{browser_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Browser" + } + ]; +} + +// Request object for `ListBrowsers` method. +message ListBrowsersRequest { + // Required. The parent, which owns this collection of Browsers. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `Browsers` to return. The service may + // return fewer than this value. If unspecified, at most 50 `Browsers` will be + // returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListBrowsers` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListBrowsers` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListBrowsersRequest` containing matching `Browser` +// objects. +message ListBrowsersResponse { + // The `Browser` objects from the specified network. + repeated Browser browsers = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `Browser` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_key_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_key_enums.proto new file mode 100644 index 000000000000..808075813438 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_key_enums.proto @@ -0,0 +1,41 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CmsMetadataKeyEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [CmsMetadataKeyStatus][google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus] +message CmsMetadataKeyStatusEnum { + // Status for CmsMetadataKey objects. + enum CmsMetadataKeyStatus { + // Default value. This value is unused. + CMS_METADATA_KEY_STATUS_UNSPECIFIED = 0; + + // The key is active. + ACTIVE = 1; + + // The key is not active. + INACTIVE = 2; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_key_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_key_messages.proto new file mode 100644 index 000000000000..4d36eca5b372 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_key_messages.proto @@ -0,0 +1,50 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/cms_metadata_key_enums.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CmsMetadataKeyMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Key associated with a piece of content from a publisher's CMS. +message CmsMetadataKey { + option (google.api.resource) = { + type: "admanager.googleapis.com/CmsMetadataKey" + pattern: "networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}" + plural: "cmsMetadataKeys" + singular: "cmsMetadataKey" + }; + + // Identifier. The resource name of the `CmsMetadataKey`. + // Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The key of a key-value pair. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The status of this CMS metadata key. + CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_key_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_key_service.proto new file mode 100644 index 000000000000..9195a7c91017 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_key_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/cms_metadata_key_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CmsMetadataKeyServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `CmsMetadataKey` objects. +service CmsMetadataKeyService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `CmsMetadataKey` object. + rpc GetCmsMetadataKey(GetCmsMetadataKeyRequest) returns (CmsMetadataKey) { + option (google.api.http) = { + get: "/v1/{name=networks/*/cmsMetadataKeys/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `CmsMetadataKey` objects. + rpc ListCmsMetadataKeys(ListCmsMetadataKeysRequest) + returns (ListCmsMetadataKeysResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/cmsMetadataKeys" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetCmsMetadataKey` method. +message GetCmsMetadataKeyRequest { + // Required. The resource name of the CmsMetadataKey. + // Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CmsMetadataKey" + } + ]; +} + +// Request object for `ListCmsMetadataKeys` method. +message ListCmsMetadataKeysRequest { + // Required. The parent, which owns this collection of CmsMetadataKeys. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `CmsMetadataKeys` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `CmsMetadataKeys` will be returned. The maximum value is 1000; values + // greater than 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListCmsMetadataKeys` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCmsMetadataKeys` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListCmsMetadataKeysRequest` containing matching +// `CmsMetadataKey` objects. +message ListCmsMetadataKeysResponse { + // The `CmsMetadataKey` objects from the specified network. + repeated CmsMetadataKey cms_metadata_keys = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `CmsMetadataKey` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_enums.proto new file mode 100644 index 000000000000..703869979f97 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_enums.proto @@ -0,0 +1,44 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CmsMetadataValueEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [CmsMetadataValueStatus][google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus] +message CmsMetadataValueStatusEnum { + // Status for CmsMetadataValue objects. + enum CmsMetadataValueStatus { + // Default value. This value is unused. + CMS_METADATA_VALUE_STATUS_UNSPECIFIED = 0; + + // The value is active. + ACTIVE = 1; + + // The value is archived. + ARCHIVED = 2; + + // The value is not active. + INACTIVE = 3; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_messages.proto new file mode 100644 index 000000000000..bcf9e7d64a4e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_messages.proto @@ -0,0 +1,61 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/cms_metadata_value_enums.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CmsMetadataValueMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Key value pair associated with a piece of content from a publisher's CMS. +message CmsMetadataValue { + option (google.api.resource) = { + type: "admanager.googleapis.com/CmsMetadataValue" + pattern: "networks/{network_code}/cmsMetadataValues/{cms_metadata_value}" + plural: "cmsMetadataValues" + singular: "cmsMetadataValue" + }; + + // Identifier. The resource name of the `CmsMetadataValue`. + // Format: + // `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // The value of this key-value pair. + string display_name = 3; + + // Required. Immutable. The resource name of the CmsMetadataKey. + // Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}" + string key = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CmsMetadataKey" + } + ]; + + // Output only. The status of this CMS metadata value. + CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_service.proto new file mode 100644 index 000000000000..8e85a34443e4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_service.proto @@ -0,0 +1,130 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/cms_metadata_value_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CmsMetadataValueServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `CmsMetadataValue` objects. +service CmsMetadataValueService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `CmsMetadataKey` object. + rpc GetCmsMetadataValue(GetCmsMetadataValueRequest) + returns (CmsMetadataValue) { + option (google.api.http) = { + get: "/v1/{name=networks/*/cmsMetadataValues/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `CmsMetadataValue` objects. + rpc ListCmsMetadataValues(ListCmsMetadataValuesRequest) + returns (ListCmsMetadataValuesResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/cmsMetadataValues" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetCmsMetadataValue` method. +message GetCmsMetadataValueRequest { + // Required. The resource name of the CmsMetadataKey. + // Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CmsMetadataValue" + } + ]; +} + +// Request object for `ListCmsMetadataValues` method. +message ListCmsMetadataValuesRequest { + // Required. The parent, which owns this collection of CmsMetadataValues. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `CmsMetadataValues` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `CmsMetadataValues` will be returned. The maximum value is 1000; values + // greater than 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListCmsMetadataValues` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCmsMetadataValues` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListCmsMetadataValuesRequest` containing matching +// `CmsMetadataValue` objects. +message ListCmsMetadataValuesResponse { + // The `CmsMetadataValue` objects from the specified network. + repeated CmsMetadataValue cms_metadata_values = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `CmsMetadataValue` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto index ae2b839338f4..e3ceebaea39b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto @@ -44,51 +44,52 @@ message Company { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. `Company` ID. - int64 company_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional int64 company_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the `Company`. // // This value has a maximum length of 127 characters. - string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + optional string display_name = 3 [(google.api.field_behavior) = REQUIRED]; // Required. The type of the `Company`. - CompanyTypeEnum.CompanyType type = 4 [(google.api.field_behavior) = REQUIRED]; + optional CompanyTypeEnum.CompanyType type = 4 + [(google.api.field_behavior) = REQUIRED]; // Optional. The address for the `Company`. // // This value has a maximum length of 1024 characters. - string address = 5 [(google.api.field_behavior) = OPTIONAL]; + optional string address = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. The email for the `Company`. // // This value has a maximum length of 128 characters. - string email = 6 [(google.api.field_behavior) = OPTIONAL]; + optional string email = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. The fax number for the `Company`. // // This value has a maximum length of 63 characters. - string fax = 7 [(google.api.field_behavior) = OPTIONAL]; + optional string fax = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. The phone number for the `Company`. // // This value has a maximum length of 63 characters. - string phone = 8 [(google.api.field_behavior) = OPTIONAL]; + optional string phone = 8 [(google.api.field_behavior) = OPTIONAL]; // Optional. The external ID for the `Company`. // // This value has a maximum length of 255 characters. - string external_id = 9 [(google.api.field_behavior) = OPTIONAL]; + optional string external_id = 9 [(google.api.field_behavior) = OPTIONAL]; // Optional. Comments about the `Company`. // // This value has a maximum length of 1024 characters. - string comment = 10 [(google.api.field_behavior) = OPTIONAL]; + optional string comment = 10 [(google.api.field_behavior) = OPTIONAL]; // Optional. The credit status of the `Company`. // // This attribute defaults to `ACTIVE` if basic settings are enabled and // `ON_HOLD` if advance settings are enabled. - CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 + optional CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(google.api.field_behavior) = OPTIONAL]; // Optional. The labels that are directly applied to the `Company`. @@ -113,9 +114,10 @@ message Company { // Optional. The ID of the Google-recognized canonicalized form of the // `Company`. - int64 third_party_company_id = 16 [(google.api.field_behavior) = OPTIONAL]; + optional int64 third_party_company_id = 16 + [(google.api.field_behavior) = OPTIONAL]; // Output only. The time the `Company` was last modified. - google.protobuf.Timestamp update_time = 15 + optional google.protobuf.Timestamp update_time = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto index e58a965cf6c5..2ea49655f716 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto @@ -78,8 +78,8 @@ message ListCompaniesRequest { // Optional. The maximum number of `Companies` to return. The service may // return fewer than this value. If unspecified, at most 50 `Companies` will - // be returned. The maximum value is 1000; values above 1000 will be coerced - // to 1000. + // be returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListCompanies` call. @@ -117,7 +117,7 @@ message ListCompaniesResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_enums.proto new file mode 100644 index 000000000000..d614d05eef9a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_enums.proto @@ -0,0 +1,57 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ContactEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [ContactStatus][google.ads.admanager.v1.ContactStatusEnum.ContactStatus] +message ContactStatusEnum { + // Describes the contact statuses. + enum ContactStatus { + // Default value. This value is unused. + CONTACT_STATUS_UNSPECIFIED = 0; + + // The contact was invited to see their orders, but the invitation was + // cancelled. + INVITE_CANCELED = 1; + + // The contact has been invited to see their orders, but the invitation has + // already expired. + INVITE_EXPIRED = 2; + + // The contact has been invited to see their orders, but has not yet + // accepted the invitation. + INVITE_PENDING = 3; + + // The contact has not been invited to see their orders. + UNINVITED = 4; + + // The contact has access to login and view their orders. + USER_ACTIVE = 5; + + // The contact accepted an invitation to see their orders, but their access + // was later revoked. + USER_DISABLED = 6; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto index cb298ad092ca..7cd654dc50b1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.ads.admanager.v1; +import "google/ads/admanager/v1/contact_enums.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; @@ -43,7 +44,49 @@ message Contact { // Format: `networks/{network_code}/contacts/{contact_id}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Output only. The display name of the Company. - optional string company_display_name = 19 + // Required. The name of the contact. This attribute has a maximum length of + // 127 characters. + optional string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Immutable. The resource name of the Company. + // Format: "networks/{network_code}/companies/{company_id}" + optional string company = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Company" + } + ]; + + // Output only. The status of the contact. This attribute is assigned by + // Google. + optional ContactStatusEnum.ContactStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The address of the contact. This attribute has a maximum length + // of 1024 characters. + optional string address = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The cell phone number where the contact can be reached. + optional string cell_phone = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A free-form text comment for the contact. This attribute has a + // maximum length of 1024 characters. + optional string comment = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The e-mail address where the contact can be reached. This + // attribute has a maximum length of 128 characters. + optional string email = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The fax number where the contact can be reached. This attribute + // has a maximum length of 1024 characters. + optional string fax = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The job title of the contact. This attribute has a maximum length + // of 1024 characters. + optional string title = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The work phone number where the contact can be reached. This + // attribute has a maximum length of 1024 characters. + optional string work_phone = 13 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_service.proto new file mode 100644 index 000000000000..8c5e14d0f7ff --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_service.proto @@ -0,0 +1,244 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/contact_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ContactServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `Contact` objects. +service ContactService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `Contact` object. + rpc GetContact(GetContactRequest) returns (Contact) { + option (google.api.http) = { + get: "/v1/{name=networks/*/contacts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `Contact` objects. + rpc ListContacts(ListContactsRequest) returns (ListContactsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/contacts" + }; + option (google.api.method_signature) = "parent"; + } + + // API to create a `Contact` object. + rpc CreateContact(CreateContactRequest) returns (Contact) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/contacts" + body: "contact" + }; + option (google.api.method_signature) = "parent,contact"; + } + + // API to batch create `Contact` objects. + rpc BatchCreateContacts(BatchCreateContactsRequest) + returns (BatchCreateContactsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/contacts:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to update a `Contact` object. + rpc UpdateContact(UpdateContactRequest) returns (Contact) { + option (google.api.http) = { + patch: "/v1/{contact.name=networks/*/contacts/*}" + body: "contact" + }; + option (google.api.method_signature) = "contact,update_mask"; + } + + // API to batch update `Contact` objects. + rpc BatchUpdateContacts(BatchUpdateContactsRequest) + returns (BatchUpdateContactsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/contacts:batchUpdate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } +} + +// Request object for `GetContact` method. +message GetContactRequest { + // Required. The resource name of the Contact. + // Format: `networks/{network_code}/contacts/{contact_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Contact" + } + ]; +} + +// Request object for `ListContacts` method. +message ListContactsRequest { + // Required. The parent, which owns this collection of Contacts. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `Contacts` to return. The service may + // return fewer than this value. If unspecified, at most 50 `Contacts` will be + // returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListContacts` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListContacts` must match + // the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListContactsRequest` containing matching `Contact` +// objects. +message ListContactsResponse { + // The `Contact` objects from the specified network. + repeated Contact contacts = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `Contact` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} + +// Request object for `CreateContact` method. +message CreateContactRequest { + // Required. The parent resource where this `Contact` will be created. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Contact` to create. + Contact contact = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchCreateContacts` method. +message BatchCreateContactsRequest { + // Required. The parent resource where `Contacts` will be created. + // Format: `networks/{network_code}` + // The parent field in the CreateContactRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Contact` objects to create. + // A maximum of 100 objects can be created in a batch. + repeated CreateContactRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchCreateContacts` method. +message BatchCreateContactsResponse { + // The `Contact` objects created. + repeated Contact contacts = 1; +} + +// Request object for `UpdateContact` method. +message UpdateContactRequest { + // Required. The `Contact` to update. + // + // The `Contact`'s `name` is used to identify the `Contact` to update. + Contact contact = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchUpdateContacts` method. +message BatchUpdateContactsRequest { + // Required. The parent resource where `Contacts` will be updated. + // Format: `networks/{network_code}` + // The parent field in the UpdateContactRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Contact` objects to update. + // A maximum of 100 objects can be updated in a batch. + repeated UpdateContactRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchUpdateContacts` method. +message BatchUpdateContactsResponse { + // The `Contact` objects updated. + repeated Contact contacts = 1; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_bundle_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_bundle_messages.proto new file mode 100644 index 000000000000..4d4e367caa5e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_bundle_messages.proto @@ -0,0 +1,53 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ContentBundleMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// A [ContentBundle][google.ads.admanager.v1.ContentBundle] is a grouping of +// individual [Content][google.ads.admanager.v1.Content]. A +// [ContentBundle][google.ads.admanager.v1.ContentBundle] is defined as +// including the [Content][google.ads.admanager.v1.Content] that match certain +// filter rules along with the option to explicitly include or exclude certain +// Content IDs. +message ContentBundle { + option (google.api.resource) = { + type: "admanager.googleapis.com/ContentBundle" + pattern: "networks/{network_code}/contentBundles/{content_bundle}" + plural: "contentBundles" + singular: "contentBundle" + }; + + // Identifier. The resource name of the + // [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format: + // `networks/{network_code}/contentBundles/{content_bundle_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The name of the + // [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is + // required and has a maximum length of 255 characters. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_bundle_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_bundle_service.proto new file mode 100644 index 000000000000..e98409d5ea31 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_bundle_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/content_bundle_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ContentBundleServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `ContentBundle` objects. +service ContentBundleService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `ContentBundle` object. + rpc GetContentBundle(GetContentBundleRequest) returns (ContentBundle) { + option (google.api.http) = { + get: "/v1/{name=networks/*/contentBundles/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `ContentBundle` objects. + rpc ListContentBundles(ListContentBundlesRequest) + returns (ListContentBundlesResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/contentBundles" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetContentBundle` method. +message GetContentBundleRequest { + // Required. The resource name of the ContentBundle. + // Format: `networks/{network_code}/contentBundles/{content_bundle_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/ContentBundle" + } + ]; +} + +// Request object for `ListContentBundles` method. +message ListContentBundlesRequest { + // Required. The parent, which owns this collection of ContentBundles. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `ContentBundles` to return. The service may + // return fewer than this value. If unspecified, at most 50 `ContentBundles` + // will be returned. The maximum value is 1000; values greater than 1000 will + // be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListContentBundles` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListContentBundles` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListContentBundlesRequest` containing matching +// `ContentBundle` objects. +message ListContentBundlesResponse { + // The `ContentBundle` objects from the specified network. + repeated ContentBundle content_bundles = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `ContentBundle` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_label_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_label_messages.proto new file mode 100644 index 000000000000..b70ff07eda7e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_label_messages.proto @@ -0,0 +1,45 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ContentLabelMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// A content label. +message ContentLabel { + option (google.api.resource) = { + type: "admanager.googleapis.com/ContentLabel" + pattern: "networks/{network_code}/contentLabels/{content_label}" + plural: "contentLabels" + singular: "contentLabel" + }; + + // Identifier. The resource name of the `ContentLabel`. + // Format: `networks/{network_code}/contentLabels/{content_label_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The display name of the `ContentLabel`. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_label_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_label_service.proto new file mode 100644 index 000000000000..4e9e76a79f84 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_label_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/content_label_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ContentLabelServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `ContentLabel` objects. +service ContentLabelService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `ContentLabel` object. + rpc GetContentLabel(GetContentLabelRequest) returns (ContentLabel) { + option (google.api.http) = { + get: "/v1/{name=networks/*/contentLabels/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `ContentLabel` objects. + rpc ListContentLabels(ListContentLabelsRequest) + returns (ListContentLabelsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/contentLabels" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetContentLabel` method. +message GetContentLabelRequest { + // Required. The resource name of the ContentLabel. + // Format: `networks/{network_code}/contentLabels/{content_label_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/ContentLabel" + } + ]; +} + +// Request object for `ListContentLabels` method. +message ListContentLabelsRequest { + // Required. The parent, which owns this collection of ContentLabels. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `ContentLabels` to return. The service may + // return fewer than this value. If unspecified, at most 50 `ContentLabels` + // will be returned. The maximum value is 1000; values greater than 1000 will + // be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListContentLabels` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListContentLabels` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListContentLabelsRequest` containing matching +// `ContentLabel` objects. +message ListContentLabelsResponse { + // The `ContentLabel` objects from the specified network. + repeated ContentLabel content_labels = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `ContentLabel` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_messages.proto new file mode 100644 index 000000000000..0bdf49d68fb2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_messages.proto @@ -0,0 +1,45 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ContentMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// A piece of content from a Publisher's CMS. +message Content { + option (google.api.resource) = { + type: "admanager.googleapis.com/Content" + pattern: "networks/{network_code}/content/{content}" + plural: "content" + singular: "content" + }; + + // Identifier. The resource name of the `Content`. + // Format: `networks/{network_code}/content/{content_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The name of the `Content`. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_service.proto new file mode 100644 index 000000000000..a3b0cbb8fb47 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/content_service.proto @@ -0,0 +1,128 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/content_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ContentServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `Content` objects. +service ContentService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `Content` object. + rpc GetContent(GetContentRequest) returns (Content) { + option (google.api.http) = { + get: "/v1/{name=networks/*/content/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `Content` objects. + rpc ListContent(ListContentRequest) returns (ListContentResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/content" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetContent` method. +message GetContentRequest { + // Required. The resource name of the Content. + // Format: `networks/{network_code}/content/{content_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Content" + } + ]; +} + +// Request object for `ListContent` method. +message ListContentRequest { + // Required. The parent, which owns this collection of Content. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `Content` to return. The service may return + // fewer than this value. If unspecified, at most 50 `Content` will be + // returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListContent` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListContent` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListContentRequest` containing matching `Content` +// objects. +message ListContentResponse { + // The `Content` objects from the specified network. + repeated Content content = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `Content` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_enums.proto new file mode 100644 index 000000000000..b527bc0b1ce0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_enums.proto @@ -0,0 +1,63 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CreativeTemplateEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [CreativeTemplateType][google.ads.admanager.v1.CreativeTemplateTypeEnum.CreativeTemplateType] +message CreativeTemplateTypeEnum { + // Describes type of the creative template. + enum CreativeTemplateType { + // Default value. This value is unused. + CREATIVE_TEMPLATE_TYPE_UNSPECIFIED = 0; + + // Creative templates that are included in Ad Manager by default. + STANDARD = 1; + + // Creative templates created by an administrator or other user in the + // network. + CUSTOM = 2; + } +} + +// Wrapper message for +// [CreativeTemplateStatus][google.ads.admanager.v1.CreativeTemplateStatusEnum.CreativeTemplateStatus] +message CreativeTemplateStatusEnum { + // Describes status of the creative template + enum CreativeTemplateStatus { + // Default value. This value is unused. + CREATIVE_TEMPLATE_STATUS_UNSPECIFIED = 0; + + // The CreativeTemplate is active + ACTIVE = 1; + + // The CreativeTemplate is deleted. Creatives created from this + // CreativeTemplate can no longer serve. + DELETED = 2; + + // The CreativeTemplate is inactive. Users cannot create new creatives + // from this template, but existing ones can be edited and continue to serve + INACTIVE = 3; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_messages.proto new file mode 100644 index 000000000000..35cd155fde6f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_messages.proto @@ -0,0 +1,253 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/creative_template_enums.proto"; +import "google/ads/admanager/v1/creative_template_variable_url_type_enum.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CreativeTemplateMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// A template that can be used to create a [TemplateCreative][]. +message CreativeTemplate { + option (google.api.resource) = { + type: "admanager.googleapis.com/CreativeTemplate" + pattern: "networks/{network_code}/creativeTemplates/{creative_template}" + plural: "creativeTemplates" + singular: "creativeTemplate" + }; + + // Identifier. The resource name of the creative template. + // Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The display name of the creative template. This has a maximum + // length of 255 characters. + optional string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the creative template. + optional string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The code snippet of the creative template, with placeholders for + // the associated variables. + optional string snippet = 4 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The status of the creative template. This attribute is + // assigned by Google. + optional CreativeTemplateStatusEnum.CreativeTemplateStatus status = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The type of the creative template. Users can only create or + // update `CreativeTemplateType.CUSTOM` templates. + optional CreativeTemplateTypeEnum.CreativeTemplateType type = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. `True` if this creative template produces out-of-page creatives. + // Creative templates with this setting enabled must include the viewed + // impression macro. + optional bool interstitial = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. `True` if this creative template produces native-eligible + // creatives. + optional bool native_eligible = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. `True` if this creative template produces native video-eligible + // creatives. + optional bool native_video_eligible = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the Creative produced is compatible for SafeFrame + // rendering. This attribute defaults to `True`. + optional bool safe_frame_compatible = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The list of creative template variables. + repeated CreativeTemplateVariable variables = 14 + [(google.api.field_behavior) = REQUIRED]; +} + +// Represents a variable defined in a creative template. +message CreativeTemplateVariable { + // Represents a file asset variable defined in a creative template. + // + // Use [AssetCreativeTemplateVariableValue][] to specify the value for this + // variable when creating a [TemplateCreative][] from a + // [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate]. + message AssetCreativeTemplateVariable { + // Different MIME types that the asset variable supports. + enum MimeType { + // Default value. This value is unused. + MIME_TYPE_UNSPECIFIED = 0; + + // The `image/jpeg` MIME type. + JPG = 1; + + // The `image/png` MIME type. + PNG = 2; + + // The `image/gif` MIME type. + GIF = 3; + } + + // Optional. The set of allowed MIME types. If unspecified, all MIME types + // are allowed. + repeated MimeType mime_types = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents a list variable defined in a creative template. This is similar + // to + // [StringCreativeTemplateVariable][google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable], + // except that there are possible choices to choose from. + // + // Use [StringCreativeTemplateVariableValue][] to specify the value + // for this variable when creating a [TemplateCreative][] from a + // [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate]. + message ListStringCreativeTemplateVariable { + // Stores variable choices selectable by users. + message VariableChoice { + // Required. A label is displayed to users when creating a + // [TemplateCreative][]. This attribute is intended to be more descriptive + // than value. This attribute has a maximum length of 255 characters. + optional string label = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. When creating a [TemplateCreative][], the value in + // [StringCreativeTemplateVariableValue][] should match this value, if you + // intend to select this value. This attribute has a maximum length of 255 + // characters. + optional string value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. Default value to be filled in when creating creatives from the + // creative template. + optional string default_value = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sample value that is used when previewing the template in the + // UI. + optional string sample_value = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The selectable values that the user can choose from. + repeated VariableChoice choices = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. `True` if a user can specify an 'other' value. For example, if + // a variable called backgroundColor is defined as a list with values: red, + // green, blue, this boolean can be set to allow a user to enter a value not + // on the list such as purple. + optional bool allow_other_choice = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents a long variable defined in a creative template. + // + // Use [LongCreativeTemplateVariableValue][] to specify the value + // for this variable when creating [TemplateCreative][] from a + // [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate]. + message LongCreativeTemplateVariable { + // Optional. Default value to be filled in when creating creatives from the + // creative template. + optional int64 default_value = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sample value that is used when previewing the template in the + // UI. + optional int64 sample_value = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents a string variable defined in a creative template. + // + // Use [StringCreativeTemplateVariableValue][] to specify the value + // for this variable when creating [TemplateCreative][] from a + // [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate]. + message StringCreativeTemplateVariable { + // Optional. Default value to be filled in when creating creatives from the + // creative template. + optional string default_value = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sample value that is used when previewing the template in the + // UI. + optional string sample_value = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents a url variable defined in a creative template. + // + // Use [UrlCreativeTemplateVariableValue][] to specify the value for this + // variable when creating a [TemplateCreative][] from a + // [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate]. + message UrlCreativeTemplateVariable { + // Optional. Default value to be filled in when creating creatives from the + // creative template. + optional string default_value = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sample value that is used when previewing the template in the + // UI. + optional string sample_value = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of URL that this variable represents. Different types + // of URLs may be handled differently at rendering time. + optional CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType + url_type = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // The specific type of variable represented by this + // [CreativeTemplateVariable][google.ads.admanager.v1.CreativeTemplateVariable]. + // Exactly one must be set. + oneof SubType { + // Optional. Represents a file asset variable defined in a creative + // template. + AssetCreativeTemplateVariable asset_variable = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents a list variable defined in a creative template. + ListStringCreativeTemplateVariable list_string_variable = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents a long variable defined in a creative template. + LongCreativeTemplateVariable long_variable = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents a string variable defined in a creative template. + StringCreativeTemplateVariable string_variable = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents a url variable defined in a creative template. + UrlCreativeTemplateVariable url_variable = 10 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Label that is displayed to users when creating from the creative + // template. This has a maximum length of 127 characters. + optional string label = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Unique name used to identify the variable. This attribute is + // assigned by Google when a creative template variable is created. + optional string unique_display_name = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. A descriptive help text that is displayed to users along with the + // label. This attribute has a maximum length of 255 characters. + optional string description = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. `True` if this variable is required to be filled in by users when + // creating a creative from the creative template. + optional bool required = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_service.proto new file mode 100644 index 000000000000..eb41eee91c0d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_service.proto @@ -0,0 +1,130 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/creative_template_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CreativeTemplateServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `CreativeTemplate` objects. +service CreativeTemplateService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `CreativeTemplate` object. + rpc GetCreativeTemplate(GetCreativeTemplateRequest) + returns (CreativeTemplate) { + option (google.api.http) = { + get: "/v1/{name=networks/*/creativeTemplates/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `CreativeTemplate` objects. + rpc ListCreativeTemplates(ListCreativeTemplatesRequest) + returns (ListCreativeTemplatesResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/creativeTemplates" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetCreativeTemplate` method. +message GetCreativeTemplateRequest { + // Required. The resource name of the CreativeTemplate. + // Format: `networks/{network_code}/creativeTemplates/{creative_template_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CreativeTemplate" + } + ]; +} + +// Request object for `ListCreativeTemplates` method. +message ListCreativeTemplatesRequest { + // Required. The parent, which owns this collection of CreativeTemplates. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `CreativeTemplates` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `CreativeTemplates` will be returned. The maximum value is 1000; values + // greater than 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListCreativeTemplates` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCreativeTemplates` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListCreativeTemplatesRequest` containing matching +// `CreativeTemplate` objects. +message ListCreativeTemplatesResponse { + // The `CreativeTemplate` objects from the specified network. + repeated CreativeTemplate creative_templates = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `CreativeTemplate` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto new file mode 100644 index 000000000000..047dc52233bc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto @@ -0,0 +1,47 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "CreativeTemplateVariableUrlTypeEnumProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [CreativeTemplateVariableUrlType][google.ads.admanager.v1.CreativeTemplateVariableUrlTypeEnum.CreativeTemplateVariableUrlType] +message CreativeTemplateVariableUrlTypeEnum { + // Types of URLs that a UrlCreativeTemplateVariable can represent. + enum CreativeTemplateVariableUrlType { + // Default value. This value is unused. + CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED = 0; + + // Click tracking URL. + CLICK_TRACKER = 1; + + // Deep-link URL. + DEEPLINK = 2; + + // Impression tracking URL. + IMPRESSION_TRACKER = 3; + + // Standard HTTP URL. + STANDARD_HTTP = 4; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto index 5eb700ba3fd7..28adb97f68ca 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto @@ -78,8 +78,11 @@ message CustomField { // An option for a drop-down `CustomField`. message CustomFieldOption { - // Output only. `CustomFieldOption` ID. - int64 custom_field_option_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Non-empty default. `CustomFieldOption` ID. + int64 custom_field_option_id = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = NON_EMPTY_DEFAULT + ]; // Required. The display name of the `CustomFieldOption`. // diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto index 635299f00c38..75dd5190088b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto @@ -21,6 +21,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Ads.AdManager.V1"; option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; @@ -52,6 +53,64 @@ service CustomFieldService { }; option (google.api.method_signature) = "parent"; } + + // API to create a `CustomField` object. + rpc CreateCustomField(CreateCustomFieldRequest) returns (CustomField) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customFields" + body: "custom_field" + }; + option (google.api.method_signature) = "parent,custom_field"; + } + + // API to batch create `CustomField` objects. + rpc BatchCreateCustomFields(BatchCreateCustomFieldsRequest) + returns (BatchCreateCustomFieldsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customFields:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to update a `CustomField` object. + rpc UpdateCustomField(UpdateCustomFieldRequest) returns (CustomField) { + option (google.api.http) = { + patch: "/v1/{custom_field.name=networks/*/customFields/*}" + body: "custom_field" + }; + option (google.api.method_signature) = "custom_field,update_mask"; + } + + // API to batch update `CustomField` objects. + rpc BatchUpdateCustomFields(BatchUpdateCustomFieldsRequest) + returns (BatchUpdateCustomFieldsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customFields:batchUpdate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // Activates a list of `CustomField` objects. + rpc BatchActivateCustomFields(BatchActivateCustomFieldsRequest) + returns (BatchActivateCustomFieldsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customFields:batchActivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } + + // Deactivates a list of `CustomField` objects. + rpc BatchDeactivateCustomFields(BatchDeactivateCustomFieldsRequest) + returns (BatchDeactivateCustomFieldsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customFields:batchDeactivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } } // Request object for `GetCustomField` method. @@ -79,8 +138,8 @@ message ListCustomFieldsRequest { // Optional. The maximum number of `CustomFields` to return. The service may // return fewer than this value. If unspecified, at most 50 `CustomFields` - // will be returned. The maximum value is 1000; values above 1000 will be - // coerced to 1000. + // will be returned. The maximum value is 1000; values greater than 1000 will + // be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListCustomFields` call. @@ -118,7 +177,7 @@ message ListCustomFieldsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. @@ -127,3 +186,126 @@ message ListCustomFieldsResponse { // https://developers.google.com/ad-manager/api/beta/field-masks int32 total_size = 3; } + +// Request object for `CreateCustomField` method. +message CreateCustomFieldRequest { + // Required. The parent resource where this `CustomField` will be created. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `CustomField` to create. + CustomField custom_field = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchCreateCustomFields` method. +message BatchCreateCustomFieldsRequest { + // Required. The parent resource where `CustomFields` will be created. + // Format: `networks/{network_code}` + // The parent field in the CreateCustomFieldRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `CustomField` objects to create. + // A maximum of 100 objects can be created in a batch. + repeated CreateCustomFieldRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchCreateCustomFields` method. +message BatchCreateCustomFieldsResponse { + // The `CustomField` objects created. + repeated CustomField custom_fields = 1; +} + +// Request object for `UpdateCustomField` method. +message UpdateCustomFieldRequest { + // Required. The `CustomField` to update. + // + // The `CustomField`'s `name` is used to identify the `CustomField` to update. + CustomField custom_field = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchUpdateCustomFields` method. +message BatchUpdateCustomFieldsRequest { + // Required. The parent resource where `CustomFields` will be updated. + // Format: `networks/{network_code}` + // The parent field in the UpdateCustomFieldRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `CustomField` objects to update. + // A maximum of 100 objects can be updated in a batch. + repeated UpdateCustomFieldRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchUpdateCustomFields` method. +message BatchUpdateCustomFieldsResponse { + // The `CustomField` objects updated. + repeated CustomField custom_fields = 1; +} + +// Request message for `BatchActivateCustomFields` method. +message BatchActivateCustomFieldsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `CustomField` objects to activate. + // Format: `networks/{network_code}/customFields/{custom_field_id}` + repeated string names = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CustomField" + } + ]; +} + +// Response object for `BatchActivateCustomFields` method. +message BatchActivateCustomFieldsResponse {} + +// Request message for `BatchDeactivateCustomFields` method. +message BatchDeactivateCustomFieldsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `CustomField` objects to deactivate. + // Format: `networks/{network_code}/customFields/{custom_field_id}` + repeated string names = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CustomField" + } + ]; +} + +// Response object for `BatchDeactivateCustomFields` method. +message BatchDeactivateCustomFieldsResponse {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto index 274f074b169d..1aefb852467c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto @@ -43,27 +43,28 @@ message CustomTargetingKey { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. `CustomTargetingKey` ID. - int64 custom_targeting_key_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional int64 custom_targeting_key_id = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. Name of the key. Keys can contain up to 10 characters each. You // can use alphanumeric characters and symbols other than the following: // ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. - string ad_tag_name = 3 [(google.api.field_behavior) = IMMUTABLE]; + optional string ad_tag_name = 3 [(google.api.field_behavior) = IMMUTABLE]; // Optional. Descriptive name for the `CustomTargetingKey`. - string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; + optional string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; // Required. Indicates whether users will select from predefined values or // create new targeting values, while specifying targeting criteria for a line // item. - CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 + optional CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(google.api.field_behavior) = REQUIRED]; // Output only. Status of the `CustomTargetingKey`. - CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 + optional CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Reportable state of the `CustomTargetingKey`. - CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType + optional CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto index b89df8e135d1..d211d674992b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto @@ -120,7 +120,7 @@ message ListCustomTargetingKeysResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto index a99484d6e7a5..e5cfc36627c5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto @@ -45,7 +45,7 @@ message CustomTargetingValue { // Required. Immutable. The resource name of the `CustomTargetingKey`. // Format: // `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - string custom_targeting_key = 8 [ + optional string custom_targeting_key = 8 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { @@ -58,20 +58,20 @@ message CustomTargetingValue { // the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are // not data-specific; all values are treated as strings. For example, instead // of using "age>=18 AND <=34", try "18-34" - string ad_tag_name = 4 [(google.api.field_behavior) = IMMUTABLE]; + optional string ad_tag_name = 4 [(google.api.field_behavior) = IMMUTABLE]; // Optional. Descriptive name for the `CustomTargetingValue`. - string display_name = 5 [(google.api.field_behavior) = OPTIONAL]; + optional string display_name = 5 [(google.api.field_behavior) = OPTIONAL]; // Required. Immutable. The way in which the CustomTargetingValue.name strings // will be matched. - CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 - [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.field_behavior) = REQUIRED - ]; + optional CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType + match_type = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; // Output only. Status of the `CustomTargetingValue`. - CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 + optional CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto index 177e0c8c60f5..6b6759f633b1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto @@ -129,7 +129,7 @@ message ListCustomTargetingValuesResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_capability_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_capability_messages.proto new file mode 100644 index 000000000000..cc8540dc539c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_capability_messages.proto @@ -0,0 +1,45 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "DeviceCapabilityMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a device capability. +message DeviceCapability { + option (google.api.resource) = { + type: "admanager.googleapis.com/DeviceCapability" + pattern: "networks/{network_code}/deviceCapabilities/{device_capability}" + plural: "deviceCapabilities" + singular: "deviceCapability" + }; + + // Identifier. The resource name of the `DeviceCapability`. + // Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The localized name of the device capability. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_capability_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_capability_service.proto new file mode 100644 index 000000000000..0846ba2d61d7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_capability_service.proto @@ -0,0 +1,130 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/device_capability_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "DeviceCapabilityServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `DeviceCapability` objects. +service DeviceCapabilityService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `DeviceCapability` object. + rpc GetDeviceCapability(GetDeviceCapabilityRequest) + returns (DeviceCapability) { + option (google.api.http) = { + get: "/v1/{name=networks/*/deviceCapabilities/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `DeviceCapability` objects. + rpc ListDeviceCapabilities(ListDeviceCapabilitiesRequest) + returns (ListDeviceCapabilitiesResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/deviceCapabilities" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetDeviceCapability` method. +message GetDeviceCapabilityRequest { + // Required. The resource name of the DeviceCapability. + // Format: `networks/{network_code}/deviceCapabilities/{device_capability_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceCapability" + } + ]; +} + +// Request object for `ListDeviceCapabilities` method. +message ListDeviceCapabilitiesRequest { + // Required. The parent, which owns this collection of DeviceCapabilities. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `DeviceCapabilities` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `DeviceCapabilities` will be returned. The maximum value is 1000; values + // above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListDeviceCapabilities` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListDeviceCapabilities` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListDeviceCapabilitiesRequest` containing matching +// `DeviceCapability` objects. +message ListDeviceCapabilitiesResponse { + // The `DeviceCapability` objects from the specified network. + repeated DeviceCapability device_capabilities = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `DeviceCapability` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_service.proto index 18cfd6c365eb..50f98f28408e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_service.proto @@ -80,7 +80,7 @@ message ListDeviceCategoriesRequest { // Optional. The maximum number of `DeviceCategories` to return. The service // may return fewer than this value. If unspecified, at most 50 // `DeviceCategories` will be returned. The maximum value is 1000; values - // above 1000 will be coerced to 1000. + // greater than 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListDeviceCategories` @@ -118,7 +118,7 @@ message ListDeviceCategoriesResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_manufacturer_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_manufacturer_messages.proto new file mode 100644 index 000000000000..4721509a2711 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_manufacturer_messages.proto @@ -0,0 +1,46 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "DeviceManufacturerMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a device manufacturer. +message DeviceManufacturer { + option (google.api.resource) = { + type: "admanager.googleapis.com/DeviceManufacturer" + pattern: "networks/{network_code}/deviceManufacturers/{device_manufacturer}" + plural: "deviceManufacturers" + singular: "deviceManufacturer" + }; + + // Identifier. The resource name of the `DeviceManufacturer`. + // Format: + // `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The localized name of the device manufacturer. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_manufacturer_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_manufacturer_service.proto new file mode 100644 index 000000000000..68762f4f11a6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_manufacturer_service.proto @@ -0,0 +1,131 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/device_manufacturer_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "DeviceManufacturerServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `DeviceManufacturer` objects. +service DeviceManufacturerService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `DeviceManufacturer` object. + rpc GetDeviceManufacturer(GetDeviceManufacturerRequest) + returns (DeviceManufacturer) { + option (google.api.http) = { + get: "/v1/{name=networks/*/deviceManufacturers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `DeviceManufacturer` objects. + rpc ListDeviceManufacturers(ListDeviceManufacturersRequest) + returns (ListDeviceManufacturersResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/deviceManufacturers" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetDeviceManufacturer` method. +message GetDeviceManufacturerRequest { + // Required. The resource name of the DeviceManufacturer. + // Format: + // `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceManufacturer" + } + ]; +} + +// Request object for `ListDeviceManufacturers` method. +message ListDeviceManufacturersRequest { + // Required. The parent, which owns this collection of DeviceManufacturers. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `DeviceManufacturers` to return. The + // service may return fewer than this value. If unspecified, at most 50 + // `DeviceManufacturers` will be returned. The maximum value is 1000; values + // above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListDeviceManufacturers` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListDeviceManufacturers` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListDeviceManufacturersRequest` containing matching +// `DeviceManufacturer` objects. +message ListDeviceManufacturersResponse { + // The `DeviceManufacturer` objects from the specified network. + repeated DeviceManufacturer device_manufacturers = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `DeviceManufacturer` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto index 0eaa475b9e88..d5b8a3ca1dba 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto @@ -195,7 +195,7 @@ message ListEntitySignalsMappingsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/exchange_syndication_product_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/exchange_syndication_product_enum.proto new file mode 100644 index 000000000000..9233674de448 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/exchange_syndication_product_enum.proto @@ -0,0 +1,47 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ExchangeSyndicationProductEnumProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [ExchangeSyndicationProduct][google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct] +message ExchangeSyndicationProductEnum { + // Ad Exchange syndication product. + enum ExchangeSyndicationProduct { + // No value specified + EXCHANGE_SYNDICATION_PRODUCT_UNSPECIFIED = 0; + + // Property serves in-browser. + DISPLAY = 1; + + // Property serves on mobile applications (includes JS and SDK). + MOBILE_APP = 2; + + // Property serves video (includes audio). + VIDEO_AND_AUDIO = 3; + + // Property serves for games. + GAMES = 4; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_service.proto index 88f22a973369..bc062638365f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_service.proto @@ -78,8 +78,8 @@ message ListGeoTargetsRequest { // Optional. The maximum number of `GeoTargets` to return. The service may // return fewer than this value. If unspecified, at most 50 `GeoTargets` will - // be returned. The maximum value is 1000; values above 1000 will be coerced - // to 1000. + // be returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListGeoTargets` call. @@ -117,7 +117,7 @@ message ListGeoTargetsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_carrier_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_carrier_messages.proto new file mode 100644 index 000000000000..d2e64e788017 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_carrier_messages.proto @@ -0,0 +1,48 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "MobileCarrierMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a mobile carrier. +message MobileCarrier { + option (google.api.resource) = { + type: "admanager.googleapis.com/MobileCarrier" + pattern: "networks/{network_code}/mobileCarriers/{mobile_carrier}" + plural: "mobileCarriers" + singular: "mobileCarrier" + }; + + // Identifier. The resource name of the `MobileCarrier`. + // Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The localized name of the mobile carrier. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The region code of the mobile carrier. + optional string region_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_carrier_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_carrier_service.proto new file mode 100644 index 000000000000..b4754130cd67 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_carrier_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/mobile_carrier_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "MobileCarrierServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `MobileCarrier` objects. +service MobileCarrierService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `MobileCarrier` object. + rpc GetMobileCarrier(GetMobileCarrierRequest) returns (MobileCarrier) { + option (google.api.http) = { + get: "/v1/{name=networks/*/mobileCarriers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `MobileCarrier` objects. + rpc ListMobileCarriers(ListMobileCarriersRequest) + returns (ListMobileCarriersResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/mobileCarriers" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetMobileCarrier` method. +message GetMobileCarrierRequest { + // Required. The resource name of the MobileCarrier. + // Format: `networks/{network_code}/mobileCarriers/{mobile_carrier_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileCarrier" + } + ]; +} + +// Request object for `ListMobileCarriers` method. +message ListMobileCarriersRequest { + // Required. The parent, which owns this collection of MobileCarriers. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `MobileCarriers` to return. The service may + // return fewer than this value. If unspecified, at most 50 `MobileCarriers` + // will be returned. The maximum value is 1000; values greater than 1000 will + // be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListMobileCarriers` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListMobileCarriers` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListMobileCarriersRequest` containing matching +// `MobileCarrier` objects. +message ListMobileCarriersResponse { + // The `MobileCarrier` objects from the specified network. + repeated MobileCarrier mobile_carriers = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `MobileCarrier` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_messages.proto new file mode 100644 index 000000000000..478534b116b3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_messages.proto @@ -0,0 +1,54 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "MobileDeviceMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a mobile device. +message MobileDevice { + option (google.api.resource) = { + type: "admanager.googleapis.com/MobileDevice" + pattern: "networks/{network_code}/mobileDevices/{mobile_device}" + plural: "mobileDevices" + singular: "mobileDevice" + }; + + // Identifier. The resource name of the `MobileDevice`. + // Format: `networks/{network_code}/mobileDevices/{mobile_device}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The localized name of the mobile device. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The manufacturer associated with the mobile device. + // Format: `networks/{network_code}/deviceManufacturers/{device_manufacturer}` + optional string manufacturer = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceManufacturer" + } + ]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_service.proto new file mode 100644 index 000000000000..d78870fe1d18 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/mobile_device_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "MobileDeviceServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `MobileDevice` objects. +service MobileDeviceService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `MobileDevice` object. + rpc GetMobileDevice(GetMobileDeviceRequest) returns (MobileDevice) { + option (google.api.http) = { + get: "/v1/{name=networks/*/mobileDevices/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `MobileDevice` objects. + rpc ListMobileDevices(ListMobileDevicesRequest) + returns (ListMobileDevicesResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/mobileDevices" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetMobileDevice` method. +message GetMobileDeviceRequest { + // Required. The resource name of the MobileDevice. + // Format: `networks/{network_code}/mobileDevices/{mobile_device_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileDevice" + } + ]; +} + +// Request object for `ListMobileDevices` method. +message ListMobileDevicesRequest { + // Required. The parent, which owns this collection of MobileDevices. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `MobileDevices` to return. The service may + // return fewer than this value. If unspecified, at most 50 `MobileDevices` + // will be returned. The maximum value is 1000; values greater than 1000 will + // be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListMobileDevices` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListMobileDevices` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListMobileDevicesRequest` containing matching +// `MobileDevice` objects. +message ListMobileDevicesResponse { + // The `MobileDevice` objects from the specified network. + repeated MobileDevice mobile_devices = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `MobileDevice` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_submodel_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_submodel_messages.proto new file mode 100644 index 000000000000..bbcaf480913f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_submodel_messages.proto @@ -0,0 +1,55 @@ +// Copyright 2025 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.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "MobileDeviceSubmodelMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a mobile device submodel. +message MobileDeviceSubmodel { + option (google.api.resource) = { + type: "admanager.googleapis.com/MobileDeviceSubmodel" + pattern: "networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}" + plural: "mobileDeviceSubmodels" + singular: "mobileDeviceSubmodel" + }; + + // Identifier. The resource name of the `MobileDeviceSubmodel`. + // Format: + // `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The display name of the mobile device submodel. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The mobile device associated with the submodel. + // Format: `networks/{network_code}/mobileDevices/{mobile_device}` + optional string mobile_device = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileDevice" + } + ]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_submodel_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_submodel_service.proto new file mode 100644 index 000000000000..1a498c5701dd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/mobile_device_submodel_service.proto @@ -0,0 +1,133 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/mobile_device_submodel_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "MobileDeviceSubmodelServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `MobileDeviceSubmodel` objects. +service MobileDeviceSubmodelService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `MobileDeviceSubmodel` object. + rpc GetMobileDeviceSubmodel(GetMobileDeviceSubmodelRequest) + returns (MobileDeviceSubmodel) { + option (google.api.http) = { + get: "/v1/{name=networks/*/mobileDeviceSubmodels/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `MobileDeviceSubmodel` objects. + rpc ListMobileDeviceSubmodels(ListMobileDeviceSubmodelsRequest) + returns (ListMobileDeviceSubmodelsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/mobileDeviceSubmodels" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetMobileDeviceSubmodel` method. +message GetMobileDeviceSubmodelRequest { + // Required. The resource name of the MobileDeviceSubmodel. + // Format: + // `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileDeviceSubmodel" + } + ]; +} + +// Request object for `ListMobileDeviceSubmodels` method. +message ListMobileDeviceSubmodelsRequest { + // Required. The parent, which owns this collection of MobileDeviceSubmodels. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `MobileDeviceSubmodels` to return. The + // service may return fewer than this value. If unspecified, at most 50 + // `MobileDeviceSubmodels` will be returned. The maximum value is 1000; values + // above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListMobileDeviceSubmodels` call. Provide this to retrieve the subsequent + // page. + // + // When paginating, all other parameters provided to + // `ListMobileDeviceSubmodels` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListMobileDeviceSubmodelsRequest` containing matching +// `MobileDeviceSubmodel` objects. +message ListMobileDeviceSubmodelsResponse { + // The `MobileDeviceSubmodel` objects from the specified network. + repeated MobileDeviceSubmodel mobile_device_submodels = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `MobileDeviceSubmodel` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_service.proto index dddc6015063b..262e92faff6f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_service.proto @@ -80,7 +80,7 @@ message ListOperatingSystemsRequest { // Optional. The maximum number of `OperatingSystems` to return. The service // may return fewer than this value. If unspecified, at most 50 // `OperatingSystems` will be returned. The maximum value is 1000; values - // above 1000 will be coerced to 1000. + // greater than 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListOperatingSystems` @@ -118,7 +118,7 @@ message ListOperatingSystemsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_service.proto index 2b4576dec5c8..c1eab639a330 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_service.proto @@ -82,7 +82,7 @@ message ListOperatingSystemVersionsRequest { // Optional. The maximum number of `OperatingSystemVersions` to return. The // service may return fewer than this value. If unspecified, at most 50 // `OperatingSystemVersions` will be returned. The maximum value is 1000; - // values above 1000 will be coerced to 1000. + // values greater than 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous @@ -122,7 +122,7 @@ message ListOperatingSystemVersionsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto index 0e19658863b7..88b9115f2020 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto @@ -114,8 +114,7 @@ message Order { ]; // Output only. The resource name of the User who created the Order on behalf - // of the advertiser. This value is assigned by Google. Format: - // "networks/{network_code}/users/{user_id}" + // of the advertiser. Format: "networks/{network_code}/users/{user_id}" optional string creator = 10 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "admanager.googleapis.com/User" } @@ -126,15 +125,15 @@ message Order { optional string currency_code = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The instant at which the Order and its associated line items - // are eligible to begin serving. This attribute is derived from the line item - // of the order that has the earliest LineItem.start_time. + // Output only. The instant at which the Order and its associated Line items + // are eligible to begin serving. This attribute is derived from the Line item + // of the order that has the earliest `LineItem.start_time`. optional google.protobuf.Timestamp start_time = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The instant at which the Order and its associated line items - // stop being served. This attribute is derived from the line item of the - // order that has the latest LineItem.end_time. + // Output only. The instant at which the Order and its associated Line items + // stop being served. This attribute is derived from the Line item of the + // order that has the latest `LineItem.end_time`. optional google.protobuf.Timestamp end_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto index d86a8524f96b..ce4b6836b6a7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto @@ -81,8 +81,8 @@ message ListOrdersRequest { // Optional. The maximum number of `Orders` to return. The service may return // fewer than this value. If unspecified, at most 50 `Orders` will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. + // returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListOrders` call. @@ -120,7 +120,7 @@ message ListOrdersResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto index 9fc6b91420af..d60dcceab271 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto @@ -21,6 +21,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Ads.AdManager.V1"; option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; @@ -51,6 +52,74 @@ service PlacementService { }; option (google.api.method_signature) = "parent"; } + + // API to create an `Placement` object. + rpc CreatePlacement(CreatePlacementRequest) returns (Placement) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/placements" + body: "placement" + }; + option (google.api.method_signature) = "parent,placement"; + } + + // API to update an `Placement` object. + rpc UpdatePlacement(UpdatePlacementRequest) returns (Placement) { + option (google.api.http) = { + patch: "/v1/{placement.name=networks/*/placements/*}" + body: "placement" + }; + option (google.api.method_signature) = "placement,update_mask"; + } + + // API to batch create `Placement` objects. + rpc BatchCreatePlacements(BatchCreatePlacementsRequest) + returns (BatchCreatePlacementsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/placements:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to batch update `Placement` objects. + rpc BatchUpdatePlacements(BatchUpdatePlacementsRequest) + returns (BatchUpdatePlacementsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/placements:batchUpdate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // Activates a list of `Placement` objects. + rpc BatchActivatePlacements(BatchActivatePlacementsRequest) + returns (BatchActivatePlacementsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/placements:batchActivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } + + // Deactivates a list of `Placement` objects. + rpc BatchDeactivatePlacements(BatchDeactivatePlacementsRequest) + returns (BatchDeactivatePlacementsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/placements:batchDeactivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } + + // Archives a list of `Placement` objects. + rpc BatchArchivePlacements(BatchArchivePlacementsRequest) + returns (BatchArchivePlacementsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/placements:batchArchive" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } } // Request object for `GetPlacement` method. @@ -78,8 +147,8 @@ message ListPlacementsRequest { // Optional. The maximum number of `Placements` to return. The service may // return fewer than this value. If unspecified, at most 50 `Placements` will - // be returned. The maximum value is 1000; values above 1000 will be coerced - // to 1000. + // be returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListPlacements` call. @@ -117,7 +186,7 @@ message ListPlacementsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. @@ -126,3 +195,151 @@ message ListPlacementsResponse { // https://developers.google.com/ad-manager/api/beta/field-masks int32 total_size = 3; } + +// Request object for `CreatePlacement` method. +message CreatePlacementRequest { + // Required. The parent resource where this `Placement` will be created. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Placement` to create. + Placement placement = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchCreatePlacements` method. +message BatchCreatePlacementsRequest { + // Required. The parent resource where the `Placement`s will be created. + // Format: `networks/{network_code}` + // The parent field in the CreatePlacementRequest messages match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Placement` objects to create. + // A maximum of 100 objects can be created in a batch. + repeated CreatePlacementRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchCreatePlacements` method. +message BatchCreatePlacementsResponse { + // The `Placement` objects created. + repeated Placement placements = 1; +} + +// Request object for `UpdatePlacement` method. +message UpdatePlacementRequest { + // Required. The `Placement` to update. + // + // The `Placement`'s name is used to identify the `Placement` to + // update. Format: + // `networks/{network_code}/placements/{placement_id}` + Placement placement = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchUpdatePlacements` method. +message BatchUpdatePlacementsRequest { + // Required. The parent resource where `Placements` will be updated. + // Format: `networks/{network_code}` + // The parent field in the UpdatePlacementsRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Placement` objects to update. + // A maximum of 100 objects can be updated in a batch. + repeated UpdatePlacementRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchUpdatePlacements` method. +message BatchUpdatePlacementsResponse { + // The `Placement` objects updated. + repeated Placement placements = 1; +} + +// Request message for `BatchActivatePlacements` method. +message BatchActivatePlacementsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The names of the `Placement` objects to activate. + // Format: `networks/{network_code}/placements/{placement_id}` + repeated string names = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Placement" + } + ]; +} + +// Response object for `BatchActivatePlacements` method. +message BatchActivatePlacementsResponse {} + +// Request message for `BatchDeactivatePlacements` method. +message BatchDeactivatePlacementsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The names of the `Placement` objects to deactivate. + // Format: `networks/{network_code}/placements/{placement_id}` + repeated string names = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Placement" + } + ]; +} + +// Response object for `BatchDeactivatePlacements` method. +message BatchDeactivatePlacementsResponse {} + +// Request message for `BatchArchivePlacements` method. +message BatchArchivePlacementsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The names of the `Placement` objects to archive. + // Format: `networks/{network_code}/placements/{placement_id}` + repeated string names = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Placement" + } + ]; +} + +// Response object for `BatchArchivePlacements` method. +message BatchArchivePlacementsResponse {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_service.proto index 94a8c8ee7731..5287da2a3434 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_service.proto @@ -104,7 +104,7 @@ message ListPrivateAuctionDealsRequest { // Optional. The maximum number of `PrivateAuctionDeals` to return. The // service may return fewer than this value. If unspecified, at most 50 // `PrivateAuctionDeals` will be returned. The maximum value is 1000; - // values above 1000 will be coerced to 1000. + // values greater than 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListPrivateAuctionDeals` @@ -143,7 +143,7 @@ message ListPrivateAuctionDealsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_service.proto index 4518537fef9a..4851b55fc4bd 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_service.proto @@ -102,7 +102,7 @@ message ListPrivateAuctionsRequest { // Optional. The maximum number of `PrivateAuctions` to return. The service // may return fewer than this value. If unspecified, at most 50 // `PrivateAuctions` will be returned. The maximum value is 1000; - // values above 1000 will be coerced to 1000. + // values greater than 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListPrivateAuctions` @@ -141,7 +141,7 @@ message ListPrivateAuctionsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_service.proto index 8b33e36e6aea..27b9a7e83f40 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_service.proto @@ -120,7 +120,7 @@ message ListProgrammaticBuyersResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_definition.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_definition.proto new file mode 100644 index 000000000000..5e8640ff5f4c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_definition.proto @@ -0,0 +1,12478 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/report_value.proto"; +import "google/api/field_behavior.proto"; +import "google/type/date.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ReportDefinitionProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// The definition of how a report should be run. +message ReportDefinition { + // A dimension or a metric in a report. + message Field { + // Either a dimension or a metric. + oneof field { + // The dimension this field represents. + Dimension dimension = 1; + + // The metric this field represents. + Metric metric = 2; + } + } + + // A date range for a report. + message DateRange { + // A date range between two fixed dates (inclusive of end date). + message FixedDateRange { + // Required. The start date of this date range. + google.type.Date start_date = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The end date (inclusive) of this date range. + google.type.Date end_date = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Options for relative date ranges. + enum RelativeDateRange { + // Default value. This value is unused. + RELATIVE_DATE_RANGE_UNSPECIFIED = 0; + + // The date the report is run. + TODAY = 1; + + // The date a day before the date that the report is run. + YESTERDAY = 2; + + // The full week in which this report is run. Could include dates in + // the future. + THIS_WEEK = 3; + + // From the beginning of the calendar week (Monday to Sunday) in which the + // up to and including the day the report is run. + THIS_WEEK_TO_DATE = 29; + + // The full month in which this report is run. Could include dates in + // the future. + THIS_MONTH = 4; + + // From the beginning of the calendar month in which the report is run, to + // up to and including the day the report is run. + THIS_MONTH_TO_DATE = 26; + + // The full quarter in which this report is run. Could include dates + // in the future. + THIS_QUARTER = 5; + + // From the beginning of the calendar quarter in which the report is run, + // up to and including the day the report is run. + THIS_QUARTER_TO_DATE = 27; + + // The full year in which this report is run. Could include dates in + // the future. + THIS_YEAR = 6; + + // From the beginning of the calendar year in which the report is run, to + // up to and including the day the report is run. + THIS_YEAR_TO_DATE = 28; + + // The entire previous calendar week, Monday to Sunday (inclusive), + // preceding the calendar week the report is run. + LAST_WEEK = 7; + + // The entire previous calendar month preceding the calendar month the + // report is run. + LAST_MONTH = 8; + + // The entire previous calendar quarter preceding the calendar quarter the + // report is run. + LAST_QUARTER = 9; + + // The entire previous calendar year preceding the calendar year the + // report is run. + LAST_YEAR = 10; + + // The 7 days preceding the day the report is run. + LAST_7_DAYS = 11; + + // The 30 days preceding the day the report is run. + LAST_30_DAYS = 12; + + // The 60 days preceding the day the report is run. + LAST_60_DAYS = 13; + + // The 90 days preceding the day the report is run. + LAST_90_DAYS = 14; + + // The 180 days preceding the day the report is run. + LAST_180_DAYS = 15; + + // The 360 days preceding the day the report is run. + LAST_360_DAYS = 16; + + // The 365 days preceding the day the report is run. + LAST_365_DAYS = 17; + + // The entire previous 3 calendar months preceding the calendar month the + // report is run. + LAST_3_MONTHS = 18; + + // The entire previous 6 calendar months preceding the calendar month the + // report is run. + LAST_6_MONTHS = 19; + + // The entire previous 6 calendar months preceding the calendar month the + // report is run. + LAST_12_MONTHS = 20; + + // From 3 years before the report is run, to the day before the report is + // run, inclusive. + ALL_AVAILABLE = 21; + + // The date a day after the date that the report is run. + TOMORROW = 30; + + // The 90 days following the day the report is run. + NEXT_90_DAYS = 31; + + // The entire calendar month following the calendar month the report is + // run. + NEXT_MONTH = 32; + + // The entire 3 calendar months following the calendar month the report + // is run. + NEXT_3_MONTHS = 33; + + // The entire 12 calendar months following the calendar month the report + // is run. + NEXT_12_MONTHS = 34; + + // The entire calendar week, Monday to Sunday (inclusive), following the + // calendar week the report is run. + NEXT_WEEK = 35; + + // The entire calendar quarter following the calendar quarter the report + // is run. + NEXT_QUARTER = 36; + + // From the date a day after the date that the report is run, to the end + // of the calendar month following the calendar month the report is run. + TO_END_OF_NEXT_MONTH = 37; + + // Only valid when used in the comparison_date_range field. The complete + // period preceding the date period provided in date_range. + // + // In the case where date_range is a FixedDateRange of N days, this will + // be a period of N days where the end date is the date preceding the + // start date of the date_range. + // + // In the case where date_range is a RelativeDateRange, this will be a + // period of the same timeframe preceding the date_range. In the case + // where the date_range does not capture the full period because a report + // is run in the middle of that period, this will still be the full + // preceding period. For example, if date_range is THIS_WEEK, but the + // report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but + // PREVIOUS_PERIOD will be Monday - Sunday. + PREVIOUS_PERIOD = 22; + + // Only valid when used in the comparison_date_range field. The period + // starting 1 year prior to the date period provided in date_range. + // + // In the case where date_range is a FixedDateRange, this will be a date + // range starting 1 year prior to the date_range start date and ending 1 + // year prior to the date_range end date. + // + // In the case where date_range is a RelativeDateRange, this will be a + // period of the same timeframe exactly 1 year prior to the date_range. + // In the case where the date_range does not capture the full period + // because a report is run in the middle of that period, this will still + // be the full period 1 year prior. For example, if date range is + // THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be + // Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday - + // Sunday. + SAME_PERIOD_PREVIOUS_YEAR = 24; + } + + // Either a fixed or relative date range. + oneof date_range_type { + // A fixed date range. + FixedDateRange fixed = 1; + + // A relative date range. + RelativeDateRange relative = 2; + } + } + + // A filter over one or more fields. + message Filter { + // A filter on a specific field. + message FieldFilter { + // Required. The field to filter on. + Field field = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation of this filter. + Operation operation = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Values to filter to. + repeated ReportValue values = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Use to filter on a specific slice of data. + optional Slice slice = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When using time period columns, use this to filter on a + // specific column. + optional int32 time_period_index = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use to specify which metric value type to filter on. Defaults + // to PRIMARY. + optional MetricValueType metric_value_type = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + + // A list of filters. + message FilterList { + // Required. A list of filters. + repeated Filter filters = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Supported filter operations. + enum Operation { + // For scalar operands, checks if the operand is in the set of provided + // filter values. + // + // For list operands, checks if any element in the operand is in the set + // of provided filter values. + // + // Default value. + IN = 0; + + // For scalar operands, checks that the operand is not in the set of + // provided filter values. + // + // For list operands, checks that none of the elements in the operand + // is in the set of provided filter values. + NOT_IN = 1; + + // For scalar string operands, checks if the operand contains any of the + // provided filter substrings. + // + // For string list operands, checks if any string in the operand contains + // any of the provided filter substrings. + CONTAINS = 2; + + // For scalar string operands, checks that the operand contains none of + // the provided filter substrings. + // + // For string list operands, checks that none of the strings in the + // operand contain none of the provided filter substrings. + NOT_CONTAINS = 3; + + // Operand is less than the provided filter value. + LESS_THAN = 4; + + // Operand is less than or equal to provided filter value. + LESS_THAN_EQUALS = 5; + + // Operand is greater than provided filter value. + GREATER_THAN = 6; + + // Operand is greater than or equal to provided filter value. + GREATER_THAN_EQUALS = 7; + + // Operand is between provided filter values. + BETWEEN = 8; + + // Operand matches against a regular expression or set of regular + // expressions (one must match). + MATCHES = 9; + + // Operand negative matches against a regular expression or set of regular + // expressions (none must match). + NOT_MATCHES = 10; + } + + // The type determines how the underlying filters are combined. + oneof type { + // A filter on a single field. + FieldFilter field_filter = 1; + + // A filter whose result is negated. + Filter not_filter = 2; + + // A list of filters whose results are AND-ed. + FilterList and_filter = 3; + + // A list of filters whose results are OR-ed. + FilterList or_filter = 4; + } + } + + // Represents a sorting in a report. + message Sort { + // Required. A field (dimension or metric) to sort by. + Field field = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The sort order. If true the sort will be descending. + bool descending = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use to sort on a specific slice of data. + optional Slice slice = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When using time period columns, use this to sort on a specific + // column. + optional int32 time_period_index = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use to specify which metric value type to sort on. Defaults to + // PRIMARY. + optional MetricValueType metric_value_type = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Use to specify a slice of data. + // + // For example, in a report, to focus on just data from the US, specify + // `COUNTRY_NAME` for dimension and value: `"United States"`. + message Slice { + // Required. The dimension to slice on. + Dimension dimension = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The value of the dimension. + ReportValue value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // A flag for a report. Flags are used show if certain thresholds are met. + // Result rows that match the filter will have the corresponding + // [MetricValueGroup.flagValues][MetricValueGroup] index set to true. + // For more information about flags see: + // https://support.google.com/admanager/answer/15079975 + message Flag { + // Required. Filters to apply for the flag. + repeated Filter filters = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Name of the flag. + // The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to + // the colored flags that appear in the UI. The UI won't display flags + // with other names, but they are available for use by API clients. + string name = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Supported report types. + enum ReportType { + // Default value. This value is unused. + REPORT_TYPE_UNSPECIFIED = 0; + + // Historical. + HISTORICAL = 1; + + // Reach. + REACH = 5; + + // Privacy and messaging. + PRIVACY_AND_MESSAGING = 6; + + // Ad speed. + AD_SPEED = 13; + } + + // Reporting dimensions. + enum Dimension { + option allow_alias = true; + + // Default value. This value is unused. + DIMENSION_UNSPECIFIED = 0; + + // The measurement source of a video ad. + // + // + // + // Corresponds to "Active View measurement source value" in the Ad Manager + // UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + ACTIVE_VIEW_MEASUREMENT_SOURCE = 575; + + // Active View measurement source localized name. + // + // + // + // Corresponds to "Active View measurement source" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME = 576; + + // Advertiser credit status ENUM + // + // + // + // Corresponds to "Advertiser credit status value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `ENUM` + ADVERTISER_CREDIT_STATUS = 475; + + // Advertiser credit status locallized name + // + // + // + // Corresponds to "Advertiser credit status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + ADVERTISER_CREDIT_STATUS_NAME = 476; + + // The domain name of the advertiser. + // + // + // + // Corresponds to "Advertiser domain" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + ADVERTISER_DOMAIN_NAME = 242; + + // The ID used in an external system for advertiser identification + // + // + // + // Corresponds to "Advertiser external ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + ADVERTISER_EXTERNAL_ID = 228; + + // The ID of an advertiser company assigned to an order + // + // + // + // Corresponds to "Advertiser ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `IDENTIFIER` + ADVERTISER_ID = 131; + + // Labels applied to the advertiser + // can be used for either competitive exclusion or ad exclusion + // + // + // + // Corresponds to "Advertiser labels" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING_LIST` + ADVERTISER_LABELS = 230; + + // Label ids applied to the advertiser + // can be used for either competitive exclusion or ad exclusion + // + // + // + // Corresponds to "Advertiser label IDs" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER_LIST` + ADVERTISER_LABEL_IDS = 229; + + // The name of an advertiser company assigned to an order + // + // + // + // Corresponds to "Advertiser" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + ADVERTISER_NAME = 132; + + // The name of the contact associated with an advertiser company + // + // + // + // Corresponds to "Advertiser primary contact" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + ADVERTISER_PRIMARY_CONTACT = 227; + + // Advertiser status ENUM + // + // + // + // Corresponds to "Advertiser status value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + ADVERTISER_STATUS = 471; + + // Advertiser status locallized name + // + // + // + // Corresponds to "Advertiser status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + ADVERTISER_STATUS_NAME = 472; + + // Advertiser type ENUM + // + // + // + // Corresponds to "Advertiser type value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `ENUM` + ADVERTISER_TYPE = 473; + + // Advertiser type locallized name + // + // + // + // Corresponds to "Advertiser type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + ADVERTISER_TYPE_NAME = 474; + + // The category of an advertiser, such as Arts & Entertainment or Travel & + // Tourism. + // + // + // + // Corresponds to "Advertiser vertical" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + ADVERTISER_VERTICAL = 580; + + // Classification of different Ad Exchange products. + // + // + // + // Corresponds to "Ad Exchange product value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + ADX_PRODUCT = 499; + + // Localized name of the classification of different Ad Exchange + // products. + // + // + // + // Corresponds to "Ad Exchange product" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + ADX_PRODUCT_NAME = 500; + + // Ad experiences type. + // + // + // + // Corresponds to "Ad experiences value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + AD_EXPERIENCES_TYPE = 641; + + // Localized name of the Ad experiences type. + // + // + // + // Corresponds to "Ad experiences" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AD_EXPERIENCES_TYPE_NAME = 642; + + // Shows an ENUM value describing whether a given piece of publisher + // inventory was above (ATF) or below the fold (BTF) of a page. + // + // + // + // Corresponds to "Ad location value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + AD_LOCATION = 390; + + // Shows a localized string describing whether a given piece of publisher + // inventory was above (ATF) or below the fold (BTF) of a page. + // + // + // + // Corresponds to "Ad location" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AD_LOCATION_NAME = 391; + + // The domain of the ad technology provider associated with the bid. + // + // + // + // Corresponds to "Ad technology provider domain" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AD_TECHNOLOGY_PROVIDER_DOMAIN = 620; + + // The ID of the ad technology provider associated with the bid. + // + // + // + // Corresponds to "Ad technology provider ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + AD_TECHNOLOGY_PROVIDER_ID = 621; + + // The name of the ad technology provider associated with the bid. + // + // + // + // Corresponds to "Ad technology provider" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AD_TECHNOLOGY_PROVIDER_NAME = 622; + + // Segmentation of ad types. + // + // + // + // Corresponds to "Ad type value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + AD_TYPE = 497; + + // Localized name of the ad type. + // + // + // + // Corresponds to "Ad type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AD_TYPE_NAME = 498; + + // The code of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit code" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + // `REACH` + // + // Data format: `STRING` + AD_UNIT_CODE = 64; + + // The code of the first level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 1" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_1 = 65; + + // The code of the tenth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 10" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_10 = 74; + + // The code of the eleventh level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 11" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_11 = 75; + + // The code of the twelfth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 12" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_12 = 76; + + // The code of the thirteenth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 13" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_13 = 77; + + // The code of the fourteenth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 14" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_14 = 78; + + // The code of the fifteenth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 15" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_15 = 79; + + // The code of the sixteenth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 16" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_16 = 80; + + // The code of the second level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 2" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_2 = 66; + + // The code of the third level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 3" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_3 = 67; + + // The code of the fourth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 4" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_4 = 68; + + // The code of the fifth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 5" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_5 = 69; + + // The code of the sixth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 6" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_6 = 70; + + // The code of the seventh level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 7" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_7 = 71; + + // The code of the eighth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 8" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_8 = 72; + + // The code of the ninth level ad unit of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit code level 9" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_CODE_LEVEL_9 = 73; + + // The ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + // `REACH` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID = 25; + + // The full hierarchy of ad unit IDs where the ad was requested, from + // root to leaf, excluding the root ad unit ID. + // + // + // + // Corresponds to "Ad unit ID (all levels)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + // `REACH` + // + // Data format: `IDENTIFIER_LIST` + AD_UNIT_ID_ALL_LEVEL = 27; + + // The first level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 1" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_1 = 30; + + // The tenth level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 10" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_10 = 48; + + // The eleventh level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 11" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_11 = 50; + + // The twelfth level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 12" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_12 = 52; + + // The thirteenth level ad unit ID of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit ID level 13" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_13 = 54; + + // The fourteenth level ad unit ID of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit ID level 14" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_14 = 56; + + // The fifteenth level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 15" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_15 = 58; + + // The sixteenth level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 16" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_16 = 60; + + // The second level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 2" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_2 = 32; + + // The third level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 3" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_3 = 34; + + // The fourth level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 4" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_4 = 36; + + // The fifth level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 5" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_5 = 38; + + // The sixth level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 6" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_6 = 40; + + // The seventh level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 7" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_7 = 42; + + // The eighth level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 8" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_8 = 44; + + // The ninth level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID level 9" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_LEVEL_9 = 46; + + // The top-level ad unit ID of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit ID (top level)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + AD_UNIT_ID_TOP_LEVEL = 142; + + // The name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + // `REACH` + // + // Data format: `STRING` + AD_UNIT_NAME = 26; + + // The full hierarchy of ad unit names where the ad was requested, from + // root to leaf, excluding the root ad unit name. + // + // + // + // Corresponds to "Ad unit (all levels)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + // `REACH` + // + // Data format: `STRING_LIST` + AD_UNIT_NAME_ALL_LEVEL = 29; + + // The first level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 1" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_1 = 31; + + // The tenth level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 10" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_10 = 49; + + // The eleventh level ad unit name of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit level 11" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_11 = 51; + + // The twelfth level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 12" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_12 = 53; + + // The thirteenth level ad unit name of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit level 13" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_13 = 55; + + // The fourteenth level ad unit name of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit level 14" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_14 = 57; + + // The fifteenth level ad unit name of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit level 15" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_15 = 59; + + // The sixteenth level ad unit name of the ad unit where the ad was + // requested. + // + // + // + // Corresponds to "Ad unit level 16" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_16 = 61; + + // The second level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 2" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_2 = 33; + + // The third level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 3" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_3 = 35; + + // The fourth level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 4" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_4 = 37; + + // The fifth level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 5" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_5 = 39; + + // The sixth level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 6" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_6 = 41; + + // The seventh level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 7" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_7 = 43; + + // The eighth level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 8" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_8 = 45; + + // The ninth level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit level 9" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_LEVEL_9 = 47; + + // The top-level ad unit name of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit (top level)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_NAME_TOP_LEVEL = 143; + + // The reward amount of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit reward amount" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + // `REACH` + // + // Data format: `INTEGER` + AD_UNIT_REWARD_AMOUNT = 63; + + // The reward type of the ad unit where the ad was requested. + // + // + // + // Corresponds to "Ad unit reward type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + // `REACH` + // + // Data format: `STRING` + AD_UNIT_REWARD_TYPE = 62; + + // The status of the ad unit + // + // + // + // Corresponds to "Ad unit status value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `ENUM` + AD_UNIT_STATUS = 206; + + // The name of the status of the ad unit + // + // + // + // Corresponds to "Ad unit status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + AD_UNIT_STATUS_NAME = 207; + + // The ID of an agency at level 1 of agency hierarchy. + // + // + // + // Corresponds to "Agency ID (Level 1)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + AGENCY_LEVEL_1_ID = 565; + + // The name of an agency at level 1 of agency hierarchy. + // + // + // + // Corresponds to "Agency (Level 1)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AGENCY_LEVEL_1_NAME = 566; + + // The ID of an agency at level 2 of agency hierarchy. + // + // + // + // Corresponds to "Agency ID (Level 2)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + AGENCY_LEVEL_2_ID = 567; + + // The name of an agency at level 2 of agency hierarchy. + // + // + // + // Corresponds to "Agency (Level 2)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AGENCY_LEVEL_2_NAME = 568; + + // The ID of an agency at level 3 of agency hierarchy. + // + // + // + // Corresponds to "Agency ID (Level 3)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + AGENCY_LEVEL_3_ID = 569; + + // The name of an agency at level 3 of agency hierarchy. + // + // + // + // Corresponds to "Agency (Level 3)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AGENCY_LEVEL_3_NAME = 570; + + // User age bracket enum. + // + // + // + // Corresponds to "Age bracket value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + AGE_BRACKET = 508; + + // Localized user age bracket returned from Google Analytics. For example, + // "18-24", "25-34", "35-44", "45-54", "55-64", "65+". + // + // + // + // Corresponds to "Age bracket" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AGE_BRACKET_NAME = 582; + + // Enum value for App Tracking Transparency consent status. + // + // + // + // Corresponds to "App Tracking Transparency consent status value" in the Ad + // Manager UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + APP_TRACKING_TRANSPARENCY_CONSENT_STATUS = 442; + + // Localized string value for App Tracking Transparency consent status. + // + // + // + // Corresponds to "App Tracking Transparency consent status" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME = 443; + + // The app version. + // + // + // + // Corresponds to "App version" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + APP_VERSION = 392; + + // The name of Auction Package deal + // + // + // + // Corresponds to "Auction package deal" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AUCTION_PACKAGE_DEAL = 579; + + // The ID of Auction Package deal + // + // + // + // Corresponds to "Auction package deal ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + AUCTION_PACKAGE_DEAL_ID = 571; + + // ID of targeted audience segment, including all first-party and + // third-party segments that matched the user on the winning line item. + // + // + // + // Corresponds to "Audience segment ID (targeted)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + AUDIENCE_SEGMENT_ID_TARGETED = 584; + + // Name of targeted audience segment, including all first-party and + // third-party segments that matched the user on the winning line item. + // + // + // + // Corresponds to "Audience segment (targeted)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AUDIENCE_SEGMENT_TARGETED = 585; + + // Enum value of Auto refreshed traffic. + // + // + // + // Corresponds to "Auto refreshed traffic value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + AUTO_REFRESHED_TRAFFIC = 421; + + // Indicates if the traffic is from auto-refreshed ad requests. + // + // + // + // Corresponds to "Auto refreshed traffic" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AUTO_REFRESHED_TRAFFIC_NAME = 422; + + // The encrypted version of BIDDER_ID. + // + // + // + // Corresponds to "Bidder encrypted ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + BIDDER_ENCRYPTED_ID = 493; + + // The name of the bidder. + // + // + // + // Corresponds to "Bidder" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + BIDDER_NAME = 494; + + // The cpm range within which a bid falls. + // + // + // + // Corresponds to "Bid Range" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `BID_RANGE` + BID_RANGE = 679; + + // The reason a bid was rejected. + // + // + // + // Corresponds to "Bid rejection reason value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + BID_REJECTION_REASON = 599; + + // The localized name of the reason a bid was rejected. + // + // + // + // Corresponds to "Bid rejection reason" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + BID_REJECTION_REASON_NAME = 600; + + // The amount of information about the Publisher's page sent to the buyer + // who purchased the impressions. + // + // + // + // Corresponds to "Branding type value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + BRANDING_TYPE = 383; + + // The localized version of branding type, the amount of information about + // the Publisher's page sent to the buyer who purchased the impressions. + // + // + // + // Corresponds to "Branding type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + BRANDING_TYPE_NAME = 384; + + // Browser category. + // + // + // + // Corresponds to "Browser category value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `ENUM` + BROWSER_CATEGORY = 119; + + // Browser category name. + // + // + // + // Corresponds to "Browser category" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + BROWSER_CATEGORY_NAME = 120; + + // The ID of the browser. + // + // + // + // Corresponds to "Browser ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + BROWSER_ID = 235; + + // The name of the browser. + // + // + // + // Corresponds to "Browser" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + BROWSER_NAME = 236; + + // The ID of the buyer network. + // + // + // + // Corresponds to "Buyer network ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + BUYER_NETWORK_ID = 448; + + // The name of the buyer network. + // + // + // + // Corresponds to "Buyer network" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + BUYER_NETWORK_NAME = 449; + + // The callout status category in the Ads traffic navigator report. + // + // + // + // Corresponds to "Callout status category value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: + // + // Data format: `ENUM` + CALLOUT_STATUS_CATEGORY = 588; + + // The callout status category name in the Ads traffic navigator report. + // + // + // + // Corresponds to "Callout status category" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING` + CALLOUT_STATUS_CATEGORY_NAME = 589; + + // Mobile carrier ID. + // + // + // + // Corresponds to "Carrier ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + CARRIER_ID = 369; + + // Name of the mobile carrier. + // + // + // + // Corresponds to "Carrier" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CARRIER_NAME = 368; + + // Inventory segmentation by channel. + // + // + // + // Corresponds to "Channel" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CHANNEL = 501; + + // Child Publisher Network Code + // + // + // + // Corresponds to "Child network code" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CHILD_NETWORK_CODE = 542; + + // Child Publisher Network ID + // + // + // + // Corresponds to "Child network ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + CHILD_NETWORK_ID = 544; + + // Child Partner Network Name + // + // + // + // Corresponds to "Child network" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CHILD_PARTNER_NAME = 543; + + // The criteria ID of the city in which the ad served. + // + // + // + // Corresponds to "City ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + CITY_ID = 459; + + // The name of the city in which the ad served. + // + // + // + // Corresponds to "City" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + CITY_NAME = 452; + + // The ID of an advertiser, classified by Google, associated with a creative + // transacted + // + // + // + // Corresponds to "Advertiser ID (classified)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + CLASSIFIED_ADVERTISER_ID = 133; + + // The name of an advertiser, classified by Google, associated with a + // creative transacted + // + // + // + // Corresponds to "Advertiser (classified)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + CLASSIFIED_ADVERTISER_NAME = 134; + + // ID of the brand, as classified by Google, + // + // + // + // Corresponds to "Brand ID (classified)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + CLASSIFIED_BRAND_ID = 243; + + // Name of the brand, as classified by Google, + // + // + // + // Corresponds to "Brand (classified)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + CLASSIFIED_BRAND_NAME = 244; + + // The display name of the CMS content. + // + // + // + // Corresponds to "Content source name" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CONTENT_CMS_NAME = 643; + + // The CMS content ID of the video content. + // + // + // + // Corresponds to "ID of the video in the content source" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CONTENT_CMS_VIDEO_ID = 644; + + // ID of the video content served. + // + // + // + // Corresponds to "Content ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + CONTENT_ID = 246; + + // Content mapping presence ENUM value + // + // + // + // Corresponds to "Content mapping presence value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + CONTENT_MAPPING_PRESENCE = 731; + + // Content mapping presence name + // + // + // + // Corresponds to "Content mapping presence" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CONTENT_MAPPING_PRESENCE_NAME = 732; + + // Name of the video content served. + // + // + // + // Corresponds to "Content" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CONTENT_NAME = 247; + + // The continent in which the ad served (derived from country). + // + // + // + // Corresponds to "Continent value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + CONTINENT = 469; + + // The name of the continent in which the ad served (derived from country). + // + // + // + // Corresponds to "Continent" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CONTINENT_NAME = 470; + + // The ISO code of the country in which the ad served. + // + // + // + // Corresponds to "Country code" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `STRING` + COUNTRY_CODE = 466; + + // The criteria ID of the country in which the ad served. + // + // + // + // Corresponds to "Country ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + COUNTRY_ID = 11; + + // The name of the country in which the ad served. + // + // + // + // Corresponds to "Country" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `STRING` + COUNTRY_NAME = 12; + + // Enum value of creative billing type + // + // + // + // Corresponds to "Creative billing type value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + CREATIVE_BILLING_TYPE = 366; + + // Localized string value of creative billing type + // + // + // + // Corresponds to "Creative billing type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CREATIVE_BILLING_TYPE_NAME = 367; + + // Represents the click-through URL of a creative + // + // + // + // Corresponds to "Creative click through url" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CREATIVE_CLICK_THROUGH_URL = 174; + + // The ID of a creative + // + // + // + // Corresponds to "Creative ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + CREATIVE_ID = 138; + + // Creative name + // + // + // + // Corresponds to "Creative" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + CREATIVE_NAME = 139; + + // Creative Policies filtering. + // + // + // + // Corresponds to "Creative policies filtering value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + CREATIVE_POLICIES_FILTERING = 711; + + // Localized name of the Creative Policies filtering. + // + // + // + // Corresponds to "Creative policies filtering" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CREATIVE_POLICIES_FILTERING_NAME = 712; + + // Creative Protections filtering (Publisher Blocks Enforcement). + // + // + // + // Corresponds to "Creative protections filtering value" in the Ad Manager + // UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + CREATIVE_PROTECTIONS_FILTERING = 704; + + // Localized name of the Creative Protections filtering. + // + // + // + // Corresponds to "Creative protections filtering" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CREATIVE_PROTECTIONS_FILTERING_NAME = 705; + + // ENUM describing whether the creative is part of a creative set and if so, + // what its role in the creative set is. + // + // + // + // Corresponds to "Creative set role type value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + CREATIVE_SET_ROLE_TYPE = 686; + + // Localized name describing whether the creative is part of a creative set + // and if so, what its role in the creative set is. + // + // + // + // Corresponds to "Creative set role type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CREATIVE_SET_ROLE_TYPE_NAME = 687; + + // Creative technology ENUM + // + // + // + // Corresponds to "Creative technology value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + CREATIVE_TECHNOLOGY = 148; + + // Creative technology locallized name + // + // + // + // Corresponds to "Creative technology" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CREATIVE_TECHNOLOGY_NAME = 149; + + // Third party vendor name of a creative + // + // + // + // Corresponds to "Creative third party vendor" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CREATIVE_THIRD_PARTY_VENDOR = 361; + + // Enum value of creative type + // + // + // + // Corresponds to "Creative type value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `ENUM` + CREATIVE_TYPE = 344; + + // Localized string name of creative type + // + // + // + // Corresponds to "Creative type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + CREATIVE_TYPE_NAME = 345; + + // Creative vendor ID. + // + // + // + // Corresponds to "Creative vendor ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + CREATIVE_VENDOR_ID = 706; + + // Name of the Creative vendor. + // + // + // + // Corresponds to "Creative vendor" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CREATIVE_VENDOR_NAME = 707; + + // The third party where Google Ad Manager was redirected for the creative, + // based on the domain. + // + // + // + // Corresponds to "Creative video redirect third party" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CREATIVE_VIDEO_REDIRECT_THIRD_PARTY = 562; + + // The ID of a Curation partner + // + // + // + // Corresponds to "Curation partner ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + CURATOR_ID = 572; + + // The name of a Curation partner + // + // + // + // Corresponds to "Curation partner" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CURATOR_NAME = 573; + + // Custom event ID + // + // + // + // Corresponds to "Custom event id" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + CUSTOM_EVENT_ID = 737; + + // Custom event name + // + // + // + // Corresponds to "Custom event" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CUSTOM_EVENT_NAME = 735; + + // Custom event type + // + // + // + // Corresponds to "Custom event type value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + CUSTOM_EVENT_TYPE = 736; + + // Localized name of the custom event type + // + // + // + // Corresponds to "Custom event type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CUSTOM_EVENT_TYPE_NAME = 738; + + // The ID of an ad spot. An ad spot can be added to an ad break template, as + // well as directly targeted by a video line item. + // + // + // + // Corresponds to "Custom spot ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + CUSTOM_SPOT_ID = 423; + + // The name of an ad spot. An ad spot can be added to an ad break + // template, as well as directly targeted by a video line item. + // + // + // + // Corresponds to "Custom spot" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CUSTOM_SPOT_NAME = 424; + + // Breaks down reporting data by date. + // + // + // + // Corresponds to "Date" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `DATE` + DATE = 3; + + // Breaks down reporting data by day of the week. Monday is 1 and 7 is + // Sunday. + // + // + // + // Corresponds to "Day of week" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + DAY_OF_WEEK = 4; + + // The ID of the buyer of a deal. + // + // + // + // Corresponds to "Deal buyer ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + DEAL_BUYER_ID = 240; + + // The name of the buyer of a deal. + // + // + // + // Corresponds to "Deal buyer" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DEAL_BUYER_NAME = 241; + + // Deal ID + // + // + // + // Corresponds to "Deal ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DEAL_ID = 436; + + // Deal name + // + // + // + // Corresponds to "Deal" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DEAL_NAME = 437; + + // The ID of the secure signals that were sent to the bidder who won the + // impression. + // + // + // + // Corresponds to "Secure signal ID (delivered)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + DELIVERED_SECURE_SIGNAL_ID = 309; + + // The name of the secure signals that were sent to the bidder who won the + // impression. + // + // + // + // Corresponds to "Secure signal name (delivered)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DELIVERED_SECURE_SIGNAL_NAME = 310; + + // Demand channel. + // + // + // + // Corresponds to "Demand channel value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `ENUM` + DEMAND_CHANNEL = 9; + + // Demand channel name. + // + // + // + // Corresponds to "Demand channel" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + DEMAND_CHANNEL_NAME = 10; + + // Demand source. + // + // + // + // Corresponds to "Demand source value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: + // + // Data format: `ENUM` + DEMAND_SOURCE = 592; + + // Demand source name. + // + // + // + // Corresponds to "Demand source" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING` + DEMAND_SOURCE_NAME = 593; + + // Demand subchannel. + // + // + // + // Corresponds to "Demand subchannel value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + DEMAND_SUBCHANNEL = 22; + + // Demand subchannel name. + // + // + // + // Corresponds to "Demand subchannel" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DEMAND_SUBCHANNEL_NAME = 23; + + // The device on which an ad was served. + // + // + // + // Corresponds to "Device value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + DEVICE = 226; + + // The device category to which an ad is being targeted. + // + // + // + // Corresponds to "Device category value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `ENUM` + DEVICE_CATEGORY = 15; + + // The name of the category of device (smartphone, feature phone, tablet, or + // desktop) to which an ad is being targeted. + // + // + // + // Corresponds to "Device category" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `STRING` + DEVICE_CATEGORY_NAME = 16; + + // Device manufacturer ID + // + // + // + // Corresponds to "Device manufacturer ID" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + DEVICE_MANUFACTURER_ID = 525; + + // Device manufacturer name + // + // + // + // Corresponds to "Device manufacturer" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DEVICE_MANUFACTURER_NAME = 526; + + // Device model ID + // + // + // + // Corresponds to "Device model ID" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + DEVICE_MODEL_ID = 527; + + // Device model name + // + // + // + // Corresponds to "Device model" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DEVICE_MODEL_NAME = 528; + + // The localized name of the device on which an ad was served. + // + // + // + // Corresponds to "Device" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DEVICE_NAME = 225; + + // The ID of DSP Seat + // + // + // + // Corresponds to "DSP seat ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DSP_SEAT_ID = 564; + + // Categorization of inventory sources based on AdX dynamic allocation + // backfill type. + // + // + // + // Corresponds to "Dynamic allocation value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + DYNAMIC_ALLOCATION_TYPE = 502; + + // Localized name of the dynamic allocation type. + // + // + // + // Corresponds to "Dynamic allocation" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + DYNAMIC_ALLOCATION_TYPE_NAME = 503; + + // Status of Encrypted Signals for Publishers delivery. + // + // + // + // Corresponds to "Secure signal delivery value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + ESP_DELIVERY = 623; + + // Localized name of the ESP delivery status. + // + // + // + // Corresponds to "Secure signal delivery" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + ESP_DELIVERY_NAME = 624; + + // Whether Encrypted Signals for Publishers are present on the ad request. + // + // + // + // Corresponds to "Secure signal presence value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + ESP_PRESENCE = 625; + + // Localized name of the ESP presence status. + // + // + // + // Corresponds to "Secure signal presence" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + ESP_PRESENCE_NAME = 626; + + // Exchange bidding deal ID. + // + // + // + // Corresponds to "Exchange bidding deal id" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + EXCHANGE_BIDDING_DEAL_ID = 715; + + // Exchange bidding deal type. + // + // + // + // Corresponds to "Exchange bidding deal type value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + EXCHANGE_BIDDING_DEAL_TYPE = 714; + + // Localized name of the exchange bidding deal type. + // + // + // + // Corresponds to "Exchange bidding deal type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + EXCHANGE_BIDDING_DEAL_TYPE_NAME = 723; + + // ID of the yield partner as classified by Google + // + // + // + // Corresponds to "Yield partner ID (classified)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; + + // Name of the yield partner as classified by Google + // + // + // + // Corresponds to "Yield partner (classified)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; + + // The ID of the first look pricing rule. + // + // + // + // Corresponds to "First look pricing rule ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + FIRST_LOOK_PRICING_RULE_ID = 248; + + // The name of the first look pricing rule. + // + // + // + // Corresponds to "First look pricing rule" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + FIRST_LOOK_PRICING_RULE_NAME = 249; + + // Whether a first-party user identifier was present on a given + // ad-request. + // + // + // + // Corresponds to "First-party ID status value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + FIRST_PARTY_ID_STATUS = 404; + + // The localized name of whether a first-party user identifier was present + // on a given ad-request. + // + // + // + // Corresponds to "First-party ID status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + FIRST_PARTY_ID_STATUS_NAME = 405; + + // User gender enum value returned from Google Analytics. + // + // + // + // Corresponds to "Gender value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + GENDER = 509; + + // Localized user gender returned from Google Analytics. For example, + // "male", "female". + // + // + // + // Corresponds to "Gender" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + GENDER_NAME = 583; + + // The ID of a Google Analytics stream. For example, web site or mobile app + // + // + // + // Corresponds to "Google Analytics stream ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + GOOGLE_ANALYTICS_STREAM_ID = 519; + + // The name of a Google Analytics stream. For example, + // web site or mobile app. + // + // + // + // Corresponds to "Google Analytics stream" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + GOOGLE_ANALYTICS_STREAM_NAME = 520; + + // The ID of the header bidding trafficking yield partner. + // + // + // + // Corresponds to "Yield partner ID (header bidding trafficking)" in the Ad + // Manager UI (when showing API fields). + // + // Compatible with the following report types: + // + // Data format: `IDENTIFIER` + HBT_YIELD_PARTNER_ID = 659; + + // The name of the header bidding trafficking yield partner. + // + // + // + // Corresponds to "Yield partner (header bidding trafficking)" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING` + HBT_YIELD_PARTNER_NAME = 660; + + // Header Bidder integration type. + // + // + // + // Corresponds to "Header bidder integration type value" in the Ad Manager + // UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + HEADER_BIDDER_INTEGRATION_TYPE = 718; + + // Localized name of the Header Bidder integration type. + // + // + // + // Corresponds to "Header bidder integration type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + HEADER_BIDDER_INTEGRATION_TYPE_NAME = 719; + + // Breaks down reporting data by hour in one day. + // + // + // + // Corresponds to "Hour" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + HOUR = 100; + + // Impression Counting Method ENUM. + // + // + // + // Corresponds to "Impression counting method value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + IMPRESSION_COUNTING_METHOD = 577; + + // Localized impression counting method name. + // + // + // + // Corresponds to "Impression counting method" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + IMPRESSION_COUNTING_METHOD_NAME = 578; + + // The interaction type of an ad. + // + // + // + // Corresponds to "Interaction type value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + INTERACTION_TYPE = 223; + + // The localized name of the interaction type of an ad. + // + // + // + // Corresponds to "Interaction type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + INTERACTION_TYPE_NAME = 224; + + // User interest returned from Google Analytics. + // + // + // + // Corresponds to "Interests" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + INTEREST = 510; + + // Inventory format. + // The format of the ad unit (e.g, banner) where the ad was requested. + // + // + // + // Corresponds to "Inventory format value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + INVENTORY_FORMAT = 17; + + // Inventory format name. + // The format of the ad unit (e.g, banner) where the ad was requested. + // + // + // + // Corresponds to "Inventory format" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + INVENTORY_FORMAT_NAME = 18; + + // The ID of the inventory share assignment. + // + // + // + // Corresponds to "Inventory share assignment ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + INVENTORY_SHARE_ASSIGNMENT_ID = 648; + + // The name of the inventory share assignment. + // + // + // + // Corresponds to "Inventory share assignment" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + INVENTORY_SHARE_ASSIGNMENT_NAME = 649; + + // The result of an inventory share. + // + // + // + // Corresponds to "Inventory share outcome value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + INVENTORY_SHARE_OUTCOME = 603; + + // The localized name of the result of an inventory share. + // + // + // + // Corresponds to "Inventory share outcome" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + INVENTORY_SHARE_OUTCOME_NAME = 604; + + // The partner ad server of the inventory share. + // + // + // + // Corresponds to "Inventory share partner ad server value" in the Ad + // Manager UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + INVENTORY_SHARE_PARTNER_AD_SERVER = 652; + + // The localized name of the partner ad server. + // + // + // + // Corresponds to "Inventory share partner ad server" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + INVENTORY_SHARE_PARTNER_AD_SERVER_NAME = 653; + + // The target share percent of the inventory share assignment + // + // + // + // Corresponds to "Partner target share percent" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + INVENTORY_SHARE_TARGET_SHARE_PERCENT = 654; + + // The type of the inventory share. + // + // + // + // Corresponds to "Inventory share type value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + INVENTORY_SHARE_TYPE = 650; + + // The localized name of the inventory share type. + // + // + // + // Corresponds to "Inventory share type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + INVENTORY_SHARE_TYPE_NAME = 651; + + // Inventory type. + // The kind of web page or device where the ad was requested. + // + // + // + // Corresponds to "Inventory type (expanded) value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + INVENTORY_TYPE = 19; + + // Inventory type name. + // The kind of web page or device where the ad was requested. + // + // + // + // Corresponds to "Inventory type (expanded)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + INVENTORY_TYPE_NAME = 20; + + // Whether traffic is Adx Direct. + // + // + // + // Corresponds to "Is AdX Direct" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `BOOLEAN` + IS_ADX_DIRECT = 382; + + // If curation was targeted by the buyer when buying the impression + // + // + // + // Corresponds to "Is curation targeted" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `BOOLEAN` + IS_CURATION_TARGETED = 574; + + // Whether the query was dropped. + // + // + // + // Corresponds to "Is Dropped" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `BOOLEAN` + IS_DROPPED = 464; + + // Whether traffic is First Look. + // + // + // + // Corresponds to "Is First Look" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `BOOLEAN` + IS_FIRST_LOOK_DEAL = 401; + + // The Custom Targeting Value ID + // + // + // + // Corresponds to "Key-values ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + KEY_VALUES_ID = 214; + + // The Custom Targeting Value formatted like `{keyName}={valueName}` + // + // + // + // Corresponds to "Key-values" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + KEY_VALUES_NAME = 215; + + // The agency of the order associated with the line item. + // + // + // + // Corresponds to "Line item agency" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_AGENCY = 663; + + // Whether a Line item is archived. + // + // + // + // Corresponds to "Line item is archived" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `BOOLEAN` + LINE_ITEM_ARCHIVED = 188; + + // Line item comanion delivery option ENUM value. + // + // + // + // Corresponds to "Line item companion delivery option value" in the Ad + // Manager UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `ENUM` + LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; + + // Localized line item comanion delivery option name. + // + // + // + // Corresponds to "Line item companion delivery option" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; + + // The computed status of the LineItem. + // + // + // + // Corresponds to "Line item computed status value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `ENUM` + LINE_ITEM_COMPUTED_STATUS = 250; + + // The localized name of the computed status of the LineItem. + // + // + // + // Corresponds to "Line item computed status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + LINE_ITEM_COMPUTED_STATUS_NAME = 251; + + // The contracted units bought for the Line item. + // + // + // + // Corresponds to "Line item contracted quantity" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `INTEGER` + LINE_ITEM_CONTRACTED_QUANTITY = 92; + + // The cost per unit of the Line item. + // + // + // + // Corresponds to "Line item rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `MONEY` + LINE_ITEM_COST_PER_UNIT = 85; + + // Line item cost type ENUM value. + // + // + // + // Corresponds to "Line item cost type value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `ENUM` + LINE_ITEM_COST_TYPE = 212; + + // Localized line item cost type name. + // + // + // + // Corresponds to "Line item cost type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + LINE_ITEM_COST_TYPE_NAME = 213; + + // Represent the end date of a creative associated with line item + // + // + // + // Corresponds to "Line item creative end date" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DATE` + LINE_ITEM_CREATIVE_END_DATE = 176; + + // The creative rotation type of the LineItem. + // + // + // + // Corresponds to "Line item creative rotation type value" in the Ad Manager + // UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `ENUM` + LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; + + // The localized name of the creative rotation type of the LineItem. + // + // + // + // Corresponds to "Line item creative rotation type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; + + // Represent the start date of a creative associated with line item + // + // + // + // Corresponds to "Line item creative start date" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DATE` + LINE_ITEM_CREATIVE_START_DATE = 175; + + // The 3 letter currency code of the Line Item + // + // + // + // Corresponds to "Line item currency code" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + LINE_ITEM_CURRENCY_CODE = 180; + + // The progress made for the delivery of the Line item. + // + // + // + // Corresponds to "Line item delivery indicator" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `PERCENT` + LINE_ITEM_DELIVERY_INDICATOR = 87; + + // The delivery rate type of the LineItem. + // + // + // + // Corresponds to "Line item delivery rate type value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `ENUM` + LINE_ITEM_DELIVERY_RATE_TYPE = 191; + + // The localized name of the delivery rate type of the LineItem. + // + // + // + // Corresponds to "Line item delivery rate type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; + + // The discount of the LineItem in whole units in the LineItem's currency + // code, or if unspecified the Network's currency code. + // + // + // + // Corresponds to "Line item discount (absolute)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `MONEY` + LINE_ITEM_DISCOUNT_ABSOLUTE = 195; + + // The discount of the LineItem in percentage. + // + // + // + // Corresponds to "Line item discount (percentage)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `WHOLE_PERCENT` + LINE_ITEM_DISCOUNT_PERCENTAGE = 196; + + // The end date of the Line item. + // + // + // + // Corresponds to "Line item end date" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `DATE` + LINE_ITEM_END_DATE = 81; + + // The end date and time of the Line item. + // + // + // + // Corresponds to "Line item end time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `TIMESTAMP` + LINE_ITEM_END_DATE_TIME = 83; + + // The ENUM value of the environment a LineItem is targeting. + // + // + // + // Corresponds to "Line item environment type value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `ENUM` + LINE_ITEM_ENVIRONMENT_TYPE = 201; + + // The localized name of the environment a LineItem is targeting. + // + // + // + // Corresponds to "Line item environment type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; + + // The deal ID of the Line item. Set for Programmatic Direct campaigns. + // + // + // + // Corresponds to "Line item deal ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER` + LINE_ITEM_EXTERNAL_DEAL_ID = 97; + + // The external ID of the Line item. + // + // + // + // Corresponds to "Line item external ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_EXTERNAL_ID = 86; + + // The frequency cap of the Line item (descriptive string). + // + // + // + // Corresponds to "Line item frequency cap" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_FREQUENCY_CAP = 256; + + // Line item ID. + // + // + // + // Corresponds to "Line item ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `IDENTIFIER` + LINE_ITEM_ID = 1; + + // Line item labels. + // + // + // + // Corresponds to "Line item labels" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING_LIST` + LINE_ITEM_LABELS = 667; + + // Line item label IDs. + // + // + // + // Corresponds to "Line item label IDs" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER_LIST` + LINE_ITEM_LABEL_IDS = 665; + + // The application that last modified the Line Item. + // + // + // + // Corresponds to "Line item last modified by app" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_LAST_MODIFIED_BY_APP = 181; + + // The total number of clicks delivered of the lifetime of the Line item. + // + // + // + // Corresponds to "Line item lifetime clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `INTEGER` + LINE_ITEM_LIFETIME_CLICKS = 95; + + // The total number of impressions delivered over the lifetime of the + // Line item. + // + // + // + // Corresponds to "Line item lifetime impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `INTEGER` + LINE_ITEM_LIFETIME_IMPRESSIONS = 94; + + // The total number of viewable impressions delivered over the lifetime of + // the Line item. + // + // + // + // Corresponds to "Line item lifetime viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `INTEGER` + LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; + + // Whether or not the Line item is Makegood. Makegood refers to free + // inventory offered to buyers to compensate for mistakes or under-delivery + // in the original campaigns. + // + // + // + // Corresponds to "Line item is makegood" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `BOOLEAN` + LINE_ITEM_MAKEGOOD = 89; + + // Line item Name. + // + // + // + // Corresponds to "Line item" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + LINE_ITEM_NAME = 2; + + // The cost of booking for the Line item (non-CPD). + // + // + // + // Corresponds to "Line item booked revenue (exclude CPD)" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `MONEY` + LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; + + // Whether a Line item is eligible for opitimization. + // + // + // + // Corresponds to "Line item is optimizable" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `BOOLEAN` + LINE_ITEM_OPTIMIZABLE = 90; + + // The PO number of the order associated with the line item. + // + // + // + // Corresponds to "Line item PO number" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + LINE_ITEM_PO_NUMBER = 669; + + // Goal type ENUM value of the primary goal of the line item. + // + // + // + // Corresponds to "Line item primary goal type value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `ENUM` + LINE_ITEM_PRIMARY_GOAL_TYPE = 210; + + // Localized goal type name of the primary goal of the line item. + // + // + // + // Corresponds to "Line item primary goal type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; + + // The total number of impressions or clicks that are reserved for a + // line item. For line items of type BULK or PRICE_PRIORITY, this + // represents the number of remaining impressions reserved. If the line + // item has an impression cap goal, this represents the number of + // impressions or conversions that the line item will stop serving at if + // reached. + // + // + // + // Corresponds to "Line item primary goal units (absolute)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `INTEGER` + LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; + + // The percentage of impressions or clicks that are reserved for a + // line item. For line items of type SPONSORSHIP, this represents the + // percentage of available impressions reserved. For line items of type + // NETWORK or HOUSE, this represents the percentage of remaining + // impressions reserved. + // + // + // + // Corresponds to "Line item primary goal units (percentage)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `WHOLE_PERCENT` + LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; + + // Unit type ENUM value of the primary goal of the line item. + // + // + // + // Corresponds to "Line item primary goal unit type value" in the Ad Manager + // UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `ENUM` + LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; + + // Localized unit type name of the primary goal of the line item. + // + // + // + // Corresponds to "Line item primary goal unit type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; + + // The priority of this Line item as a value between 1 and 16. + // In general, a lower priority means more serving priority for the + // Line item. + // + // + // + // Corresponds to "Line item priority" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `INTEGER` + LINE_ITEM_PRIORITY = 24; + + // ENUM value describing the state of inventory reservation for the + // LineItem. + // + // + // + // Corresponds to "Line item reservation status value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `ENUM` + LINE_ITEM_RESERVATION_STATUS = 304; + + // Localized string describing the state of inventory reservation for the + // LineItem. + // + // + // + // Corresponds to "Line item reservation status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_RESERVATION_STATUS_NAME = 305; + + // The sales person of the order associated with the line item. + // + // + // + // Corresponds to "Line item salesperson" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_SALESPERSON = 671; + + // The secondary sales people of the order associated with the line item. + // + // + // + // Corresponds to "Line item secondary salespeople" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING_LIST` + LINE_ITEM_SECONDARY_SALESPEOPLE = 673; + + // The secondary traffickers of the order associated with the line item. + // + // + // + // Corresponds to "Line item secondary traffickers" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING_LIST` + LINE_ITEM_SECONDARY_TRAFFICKERS = 675; + + // The start date of the Line item. + // + // + // + // Corresponds to "Line item start date" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `DATE` + LINE_ITEM_START_DATE = 82; + + // The start date and time of the Line item. + // + // + // + // Corresponds to "Line item start time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `TIMESTAMP` + LINE_ITEM_START_DATE_TIME = 84; + + // The trafficker of the order associated with the line item. + // + // + // + // Corresponds to "Line item trafficker" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_TRAFFICKER = 677; + + // Line item type ENUM value. + // + // + // + // Corresponds to "Line item type value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `ENUM` + LINE_ITEM_TYPE = 193; + + // Localized line item type name. + // + // + // + // Corresponds to "Line item type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + LINE_ITEM_TYPE_NAME = 194; + + // Whether the Line item end time and end date is set to effectively never + // end. + // + // + // + // Corresponds to "Line item is unlimited end time" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `BOOLEAN` + LINE_ITEM_UNLIMITED_END = 187; + + // The artificial cost per unit used by the Ad server to help rank + // inventory. + // + // + // + // Corresponds to "Line item value cost per unit" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `MONEY` + LINE_ITEM_VALUE_COST_PER_UNIT = 88; + + // The web property code used for dynamic allocation Line Items. + // + // + // + // Corresponds to "Line item web property code" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + LINE_ITEM_WEB_PROPERTY_CODE = 179; + + // The ID of creative, includes regular creatives, and master and companions + // in case of creative sets + // + // + // + // Corresponds to "Master and Companion creative ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + MASTER_COMPANION_CREATIVE_ID = 140; + + // Name of creative, includes regular creatives, and master and companions + // in case of creative sets + // + // + // + // Corresponds to "Master and Companion creative" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + MASTER_COMPANION_CREATIVE_NAME = 141; + + // Mediation type. + // + // + // + // Corresponds to "Mediation type value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + MEDIATION_TYPE = 701; + + // Localized mediation type name. + // + // + // + // Corresponds to "Mediation type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + MEDIATION_TYPE_NAME = 754; + + // The ID of the yield partner for Mediation. + // + // + // + // Corresponds to "Yield partner ID (mediation)" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: + // + // Data format: `IDENTIFIER` + MEDIATION_YIELD_PARTNER_ID = 661; + + // The name of the yield partner for Mediation. + // + // + // + // Corresponds to "Yield partner (mediation)" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING` + MEDIATION_YIELD_PARTNER_NAME = 662; + + // The criteria ID of the metro area in which the ad served. + // + // + // + // Corresponds to "Metro ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + METRO_ID = 453; + + // The name of the metro area in which the ad served. + // + // + // + // Corresponds to "Metro" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + METRO_NAME = 454; + + // Whether the mobile app is free. + // + // + // + // Corresponds to "App is free" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `BOOLEAN` + MOBILE_APP_FREE = 128; + + // URL of app icon for the mobile app. + // + // + // + // Corresponds to "App icon URL" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + MOBILE_APP_ICON_URL = 129; + + // The ID of the Mobile App. + // + // + // + // Corresponds to "App ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING` + // + // Data format: `STRING` + MOBILE_APP_ID = 123; + + // The name of the mobile app. + // + // + // + // Corresponds to "App" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING` + // + // Data format: `STRING` + MOBILE_APP_NAME = 127; + + // Ownership status of the mobile app. + // + // + // + // Corresponds to "App ownership status value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + MOBILE_APP_OWNERSHIP_STATUS = 311; + + // Ownership status of the mobile app. + // + // + // + // Corresponds to "App ownership status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; + + // The App Store of the mobile app. + // + // + // + // Corresponds to "App store value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + MOBILE_APP_STORE = 125; + + // The localized name of the mobile app store. + // + // + // + // Corresponds to "App store" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + MOBILE_APP_STORE_NAME = 245; + + // Mobile inventory type. + // Identifies whether a mobile ad came from a regular web page, an AMP web + // page, or a mobile app. + // Values match the Inventory type dimension available in the Overview Home + // dashboard. Note: Video takes precedence over any other value, for + // example, if there is an in-stream video impression on a desktop device, + // it will be attributed to in-stream video and not desktop web. + // + // + // + // Corresponds to "Inventory type value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `ENUM` + MOBILE_INVENTORY_TYPE = 99; + + // Mobile inventory type name. + // Identifies whether a mobile ad came from a regular web page, an AMP web + // page, or a mobile app. + // + // + // + // Corresponds to "Inventory type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `STRING` + MOBILE_INVENTORY_TYPE_NAME = 21; + + // Mobile rendering SDK. + // + // + // + // Corresponds to "Rendering SDK value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + MOBILE_RENDERING_SDK = 646; + + // Localized name of the Mobile rendering SDK. + // + // + // + // Corresponds to "Rendering SDK" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + MOBILE_RENDERING_SDK_NAME = 647; + + // The major version of the mobile SDK. + // + // + // + // Corresponds to "App SDK major version" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + MOBILE_SDK_MAJOR_VERSION = 692; + + // The minor version of the mobile SDK. + // + // + // + // Corresponds to "App SDK minor version" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + MOBILE_SDK_MINOR_VERSION = 693; + + // SDK version of the mobile device. + // + // + // + // Corresponds to "App SDK version" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + MOBILE_SDK_VERSION_NAME = 130; + + // Breaks down reporting data by month and year. + // + // + // + // Corresponds to "Month and year" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + MONTH_YEAR = 6; + + // Native ad format ID. + // + // + // + // Corresponds to "Native ad format ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + NATIVE_AD_FORMAT_ID = 255; + + // Native ad format name. + // + // + // + // Corresponds to "Native ad format" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + NATIVE_AD_FORMAT_NAME = 254; + + // Native style ID. + // + // + // + // Corresponds to "Native style ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + NATIVE_STYLE_ID = 253; + + // Native style name. + // + // + // + // Corresponds to "Native style" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + NATIVE_STYLE_NAME = 252; + + // No fill reason category in the Ads traffic navigator report. + // + // + // + // Corresponds to "No fill reason category value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: + // + // Data format: `ENUM` + NO_FILL_REASON_CATEGORY = 586; + + // No fill reason category name in the Ads traffic navigator report. + // + // + // + // Corresponds to "No fill reason category" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING` + NO_FILL_REASON_CATEGORY_NAME = 587; + + // Operating system category. + // + // + // + // Corresponds to "Operating system category value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `ENUM` + OPERATING_SYSTEM_CATEGORY = 117; + + // Operating system category name. + // + // + // + // Corresponds to "Operating system category" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + OPERATING_SYSTEM_CATEGORY_NAME = 118; + + // ID of the operating system version. + // + // + // + // Corresponds to "Operating system ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + OPERATING_SYSTEM_VERSION_ID = 238; + + // Details of the operating system, including version. + // + // + // + // Corresponds to "Operating system" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + OPERATING_SYSTEM_VERSION_NAME = 237; + + // Enum value of the optimization type. + // + // + // + // Corresponds to "Optimization type value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + OPTIMIZATION_TYPE = 639; + + // Localized name of the optimization type. + // + // + // + // Corresponds to "Optimization type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + OPTIMIZATION_TYPE_NAME = 640; + + // Order agency. + // + // + // + // Corresponds to "Order agency" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + ORDER_AGENCY = 150; + + // Order agency ID. + // + // + // + // Corresponds to "Order agency ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER` + ORDER_AGENCY_ID = 151; + + // Order booked CPC. + // + // + // + // Corresponds to "Order booked CPC" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `INTEGER` + ORDER_BOOKED_CPC = 152; + + // Order booked CPM. + // + // + // + // Corresponds to "Order booked CPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `INTEGER` + ORDER_BOOKED_CPM = 153; + + // Order delivery status ENUM value. + // + // + // + // Corresponds to "Order delivery status value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + ORDER_DELIVERY_STATUS = 231; + + // Order delivery status localized name. + // + // + // + // Corresponds to "Order delivery status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + ORDER_DELIVERY_STATUS_NAME = 239; + + // Order end date. + // + // + // + // Corresponds to "Order end date" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `DATE` + ORDER_END_DATE = 154; + + // Order end date and time. + // + // + // + // Corresponds to "Order end time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `TIMESTAMP` + ORDER_END_DATE_TIME = 155; + + // Order external ID. + // + // + // + // Corresponds to "Order external ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER` + ORDER_EXTERNAL_ID = 156; + + // Order ID. + // + // + // + // Corresponds to "Order ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `IDENTIFIER` + ORDER_ID = 7; + + // Order labels. + // + // + // + // Corresponds to "Order labels" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING_LIST` + ORDER_LABELS = 170; + + // Order labels IDs. + // + // + // + // Corresponds to "Order label IDs" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER_LIST` + ORDER_LABEL_IDS = 171; + + // Order lifetime clicks. + // + // + // + // Corresponds to "Order lifetime clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `INTEGER` + ORDER_LIFETIME_CLICKS = 158; + + // Order lifetime impressions. + // + // + // + // Corresponds to "Order lifetime impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `INTEGER` + ORDER_LIFETIME_IMPRESSIONS = 159; + + // Order name. + // + // + // + // Corresponds to "Order" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + ORDER_NAME = 8; + + // Order PO number. + // + // + // + // Corresponds to "Order PO number" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `STRING` + ORDER_PO_NUMBER = 160; + + // Whether the Order is programmatic. + // + // + // + // Corresponds to "Order is programmatic" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `BOOLEAN` + ORDER_PROGRAMMATIC = 157; + + // Order sales person. + // + // + // + // Corresponds to "Order salesperson" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + ORDER_SALESPERSON = 161; + + // Order sales person ID. + // + // + // + // Corresponds to "Order salesperson ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER` + ORDER_SALESPERSON_ID = 629; + + // Order secondary sales people. + // + // + // + // Corresponds to "Order secondary salespeople" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING_LIST` + ORDER_SECONDARY_SALESPEOPLE = 164; + + // Order secondary sales people ID. + // + // + // + // Corresponds to "Order secondary salespeople ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER_LIST` + ORDER_SECONDARY_SALESPEOPLE_ID = 165; + + // Order secondary traffickers. + // + // + // + // Corresponds to "Order secondary traffickers" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING_LIST` + ORDER_SECONDARY_TRAFFICKERS = 166; + + // Order secondary traffickers ID. + // + // + // + // Corresponds to "Order secondary trafficker IDs" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER_LIST` + ORDER_SECONDARY_TRAFFICKERS_ID = 167; + + // Order start date. + // + // + // + // Corresponds to "Order start date" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `DATE` + ORDER_START_DATE = 168; + + // Order start date and time. + // + // + // + // Corresponds to "Order start time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `AD_SPEED` + // + // Data format: `TIMESTAMP` + ORDER_START_DATE_TIME = 169; + + // Order trafficker. + // + // + // + // Corresponds to "Order trafficker" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + ORDER_TRAFFICKER = 162; + + // Order trafficker ID. + // + // + // + // Corresponds to "Order trafficker ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER` + ORDER_TRAFFICKER_ID = 163; + + // Whether the Order end time and end date is set to effectively never + // end. + // + // + // + // Corresponds to "Order is unlimited end time" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `BOOLEAN` + ORDER_UNLIMITED_END = 203; + + // Page path is the part of a page URL that comes after the domain but + // before the query strings from Google Analytics. + // + // + // + // Corresponds to "Page path" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PAGE_PATH = 511; + + // Page title (web) and screen class (mobile) returned from Google + // Analytics. + // + // + // + // Corresponds to "Page title and screen class" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PAGE_TITLE_AND_SCREEN_CLASS = 512; + + // Page title (web) and screen name (mobile) returned from Google Analytics. + // + // + // + // Corresponds to "Page title and screen name" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PAGE_TITLE_AND_SCREEN_NAME = 513; + + // Placement ID + // + // + // + // Corresponds to "Placement ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER` + PLACEMENT_ID = 113; + + // The full list of placement IDs associated with the ad unit. + // + // + // + // Corresponds to "Placement ID (all)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER_LIST` + PLACEMENT_ID_ALL = 144; + + // Placement name + // + // + // + // Corresponds to "Placement" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + PLACEMENT_NAME = 114; + + // The full list of placement names associated with the ad unit. + // + // + // + // Corresponds to "Placement (all)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING_LIST` + PLACEMENT_NAME_ALL = 145; + + // Placement status ENUM value + // + // + // + // Corresponds to "Placement status value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + PLACEMENT_STATUS = 362; + + // Localized placement status name. + // + // + // + // Corresponds to "Placement status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PLACEMENT_STATUS_NAME = 364; + + // The full list of localized placement status names associated with the ad + // unit. + // + // + // + // Corresponds to "Placement status (all)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING_LIST` + PLACEMENT_STATUS_NAME_ALL = 365; + + // The criteria ID of the postal code in which the ad served. + // + // + // + // Corresponds to "Postal code ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + POSTAL_CODE_ID = 455; + + // The name of the postal code in which the ad served. + // + // + // + // Corresponds to "Postal code" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + POSTAL_CODE_NAME = 456; + + // Indicates the valid PPID (Publisher provided identifier) status on a + // given ad request. + // + // + // + // Corresponds to "PPID status value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + PPID_STATUS = 406; + + // The localized name of that indicates the valid PPID (Publisher provided + // identifier) status on a given ad request. + // + // + // + // Corresponds to "PPID status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PPID_STATUS_NAME = 407; + + // Predicted viewability score bucket. + // + // + // + // Corresponds to "Predicted viewability bucket value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + PREDICTED_VIEWABILITY_BUCKET = 633; + + // The localized name of the predicted viewability score bucket. + // + // + // + // Corresponds to "Predicted viewability bucket" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PREDICTED_VIEWABILITY_BUCKET_NAME = 634; + + // The ID of the secure signals sent in the ad request. + // + // + // + // Corresponds to "Secure signal ID (presented)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + PRESENTED_SECURE_SIGNAL_ID = 495; + + // The name of the secure signals sent in the ad request. + // + // + // + // Corresponds to "Secure signal name (presented)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PRESENTED_SECURE_SIGNAL_NAME = 496; + + // The ID type selected for personalization. + // + // + // + // Corresponds to "Primary personalization ID type value" in the Ad Manager + // UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + PRIMARY_PERSONALIZATION_ID_TYPE = 408; + + // The localized name of the ID type selected for personalization. + // + // + // + // Corresponds to "Primary personalization ID type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PRIMARY_PERSONALIZATION_ID_TYPE_NAME = 409; + + // Deprecated. Dimension has been renamed to `DEAL_BUYER_ID`. + // The server will normalize any requests using this value to + // `DEAL_BUYER_ID`. + // This value will be removed on or after October 10, 2025. + PROGRAMMATIC_BUYER_ID = 240 [deprecated = true]; + + // Deprecated. Dimension has been renamed to `DEAL_BUYER_NAME`. + // The server will normalize any requests using this value to + // `DEAL_BUYER_NAME`. + // This value will be removed on or after October 10, 2025. + PROGRAMMATIC_BUYER_NAME = 241 [deprecated = true]; + + // Programmatic channel. + // The type of transaction that occurred in Ad Exchange. + // + // + // + // Corresponds to "Programmatic channel value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + PROGRAMMATIC_CHANNEL = 13; + + // Programmatic channel name. + // The type of transaction that occurred in Ad Exchange. + // + // + // + // Corresponds to "Programmatic channel" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `STRING` + PROGRAMMATIC_CHANNEL_NAME = 14; + + // External code ID of a publisher provided signal (all levels). + // + // + // + // Corresponds to "Publisher provided signals external code (all levels)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE = 410; + + // The ancestor chain of IDs of a publisher provided signal (all levels). + // + // + // + // Corresponds to "Publisher provided signals ID (all levels)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER_LIST` + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS = 546; + + // The ancestor chain of names of a publisher provided signal (all levels). + // + // + // + // Corresponds to "Publisher provided signals (all levels)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING_LIST` + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME = 412; + + // Tier of a publisher provided signal (all levels). + // + // + // + // Corresponds to "Publisher provided signals tier (all levels)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER = 413; + + // Type of a publisher provided signal (all levels). + // + // + // + // Corresponds to "Publisher provided signals type (all levels)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE = 414; + + // External code ID of a publisher provided signal (delivered). + // + // + // + // Corresponds to "Publisher provided signals external code (delivered)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE = 425; + + // The ancestor chain of IDs of a publisher provided signal (delivered). + // + // + // + // Corresponds to "Publisher provided signals ID (delivered)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER_LIST` + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS = 545; + + // The ancestor chain of names of a publisher provided signal (delivered). + // + // + // + // Corresponds to "Publisher provided signals (delivered)" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING_LIST` + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME = 427; + + // Tier of a publisher provided signal (delivered). + // + // + // + // Corresponds to "Publisher provided signals tier (delivered)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER = 428; + + // Type of a publisher provided signal (delivered). + // + // + // + // Corresponds to "Publisher provided signals type (delivered)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE = 429; + + // External code ID of a publisher provided signal (top level). + // + // + // + // Corresponds to "Publisher provided signals external code (top level)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE = 415; + + // ID of a publisher provided signal (top level). + // + // + // + // Corresponds to "Publisher provided signals ID (top level)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID = 416; + + // Name of a publisher provided signal (top level). + // + // + // + // Corresponds to "Publisher provided signals (top level)" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING_LIST` + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME = 417; + + // Tier of a publisher provided signal (top level). + // + // + // + // Corresponds to "Publisher provided signals tier (top level)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER = 418; + + // Type of a publisher provided signal (top level). + // + // + // + // Corresponds to "Publisher provided signals type (top level)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE = 419; + + // Data provider ID associated with a publisher provided signal. + // + // + // + // Corresponds to "Publisher provided signals (data provider ID)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID = 136; + + // Data provider name associated with a publisher provided signal. + // + // + // + // Corresponds to "Publisher provided signals (data provider)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME = 137; + + // The criteria ID of the region (for example, US state) in which the ad + // served. + // + // + // + // Corresponds to "Region ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `IDENTIFIER` + REGION_ID = 457; + + // The name of the region (for example, US state) in which the ad + // served. + // + // + // + // Corresponds to "Region" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // + // Data format: `STRING` + REGION_NAME = 458; + + // The rejection class category in the Ads traffic navigator report. + // + // + // + // Corresponds to "Rejection class category value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: + // + // Data format: `ENUM` + REJECTION_CLASS_CATEGORY = 590; + + // The rejection class category name in the Ads traffic navigator report. + // + // + // + // Corresponds to "Rejection class category" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING` + REJECTION_CLASS_CATEGORY_NAME = 591; + + // The size of a rendered creative, It can differ with the creative's size + // if a creative is shown in an ad slot of a different size. + // + // + // + // Corresponds to "Rendered creative size" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + RENDERED_CREATIVE_SIZE = 343; + + // Inventory Requested Ad Sizes dimension + // + // + // + // Corresponds to "Requested ad sizes" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + REQUESTED_AD_SIZES = 352; + + // Request type ENUM + // + // + // + // Corresponds to "Request type value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `ENUM` + REQUEST_TYPE = 146; + + // Request type locallized name + // + // + // + // Corresponds to "Request type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + // + // Data format: `STRING` + REQUEST_TYPE_NAME = 147; + + // Indicates if a request was eligible for server-side unwrapping. + // + // + // + // Corresponds to "Server-side unwrapping eligible" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `BOOLEAN` + SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; + + // The serving restriction mode for privacy. + // + // + // + // Corresponds to "Serving restriction value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + SERVING_RESTRICTION = 631; + + // The localized name of the serving restriction mode for privacy. + // + // + // + // Corresponds to "Serving restriction" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + SERVING_RESTRICTION_NAME = 632; + + // Information about domain or subdomains. + // + // + // + // Corresponds to "Site" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING` + // + // Data format: `STRING` + SITE = 387; + + // The ID of the browser, device or other environment into which a line item + // or creative was served. + // + // + // + // Corresponds to "Targeting ID" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + TARGETING_ID = 232; + + // Information about the browser, device and other environments into which + // a line item or creative was served. + // + // + // + // Corresponds to "Targeting" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + TARGETING_NAME = 233; + + // The way in which advertisers targeted their ads. + // + // + // + // Corresponds to "Targeting type value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + TARGETING_TYPE = 385; + + // The localized name of the way in which advertisers targeted their ads. + // + // + // + // Corresponds to "Targeting type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + TARGETING_TYPE_NAME = 386; + + // Whether a third-party cookie or device ID was present on a given ad + // request. + // + // + // + // Corresponds to "Third-party ID status value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + THIRD_PARTY_ID_STATUS = 402; + + // The localized name of whether a third-party cookie or device ID was + // present on a given ad request. + // + // + // + // Corresponds to "Third-party ID status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + THIRD_PARTY_ID_STATUS_NAME = 403; + + // Reports the status of Topics in the ad request. + // + // + // + // Corresponds to "Topics status value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + TOPICS_STATUS = 504; + + // The localized name of the status of Topics in the ad request. + // + // + // + // Corresponds to "Topics status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + TOPICS_STATUS_NAME = 505; + + // Inventory top private domain dimension + // + // + // + // Corresponds to "Domain" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PRIVACY_AND_MESSAGING` + // + // Data format: `STRING` + TOP_PRIVATE_DOMAIN = 444; + + // Inventory Traffic source dimension + // + // + // + // Corresponds to "Traffic source value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + TRAFFIC_SOURCE = 388; + + // Inventory Traffic source dimension name + // + // + // + // Corresponds to "Traffic source" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + TRAFFIC_SOURCE_NAME = 389; + + // Unified pricing rule ID dimension + // + // + // + // Corresponds to "Unified pricing rule ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + UNIFIED_PRICING_RULE_ID = 393; + + // Unified pricing rule name dimension + // + // + // + // Corresponds to "Unified pricing rule" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + UNIFIED_PRICING_RULE_NAME = 394; + + // A URL defined under a publisher's inventory. + // + // + // + // Corresponds to "URL" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + URL = 506; + + // A URL defined under a publisher's inventory. + // + // + // + // Corresponds to "URL ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + URL_ID = 507; + + // Enum value for the entitlement source. + // + // + // + // Corresponds to "Entitlement source value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `ENUM` + USER_MESSAGES_ENTITLEMENT_SOURCE = 635; + + // The localized name of the entitlement source. + // + // + // + // Corresponds to "Entitlement source" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `STRING` + USER_MESSAGES_ENTITLEMENT_SOURCE_NAME = 636; + + // Targeting criteria ID for the operating system group. Used for User + // Messages reports. + // + // + // + // Corresponds to "Operating system group ID" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID = 637; + + // The name of the operating system group. Used for User Messages reports. + // + // + // + // Corresponds to "Operating system group" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `STRING` + USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME = 638; + + // The VAST version of the creative that is returned for an ad request. + // + // + // + // Corresponds to "Vast version value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VAST_VERSION = 554; + + // The localized name of the VAST version of the creative that is returned + // for an ad request. + // + // + // + // Corresponds to "Vast version" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VAST_VERSION_NAME = 555; + + // The break type of a video ad request. + // + // + // + // Corresponds to "Video ad break type value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VIDEO_AD_BREAK_TYPE = 556; + + // The localized name of the break type of a video ad request. + // + // + // + // Corresponds to "Video ad break type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_AD_BREAK_TYPE_NAME = 557; + + // Video ad duration + // + // + // + // Corresponds to "Video ad duration" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_AD_DURATION = 450; + + // The name of the video ad formats rule used to control the ad formats + // eligible for your inventory. + // + // + // + // Corresponds to "Video ad formats rule" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_AD_FORMATS_RULE = 561; + + // The ID of the video ad formats rule used to control the ad formats + // eligible for your inventory. + // + // + // + // Corresponds to "Video ad formats rule ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + VIDEO_AD_FORMATS_RULE_ID = 560; + + // The duration of a video ad request. + // + // + // + // Corresponds to "Video ad request duration value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VIDEO_AD_REQUEST_DURATION = 558; + + // The localized name of the midpoint of the duration of a video ad request. + // + // + // + // Corresponds to "Video ad request duration midpoint" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME = 751; + + // The localized name of the duration of a video ad request. + // + // + // + // Corresponds to "Video ad request duration" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_AD_REQUEST_DURATION_NAME = 559; + + // The video ad request source enum. + // + // + // + // Corresponds to "Ad request source value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VIDEO_AD_REQUEST_SOURCE = 438; + + // The localized name of the video ad request source. + // + // + // + // Corresponds to "Ad request source" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_AD_REQUEST_SOURCE_NAME = 439; + + // Video ad type + // + // + // + // Corresponds to "Video ad type value" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VIDEO_AD_TYPE = 432; + + // Video ad type localized name + // + // + // + // Corresponds to "Video ad type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_AD_TYPE_NAME = 433; + + // The continuous play type of the video ad impression. + // + // + // + // Corresponds to "Video continuous play type value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VIDEO_CONTINUOUS_PLAY_TYPE = 721; + + // Video continuous play type localized name. + // + // + // + // Corresponds to "Video continuous play type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_CONTINUOUS_PLAY_TYPE_NAME = 722; + + // Fallback position of the video ad. + // + // + // + // Corresponds to "Fallback position" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_FALLBACK_POSITION = 530; + + // The performance of the video ad inventory broken out by source. + // + // + // + // Corresponds to "Video measurement source value" in the Ad Manager UI + // (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VIDEO_MEASUREMENT_SOURCE = 601; + + // Video measurement source localized name. + // + // + // + // Corresponds to "Video measurement source" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_MEASUREMENT_SOURCE_NAME = 602; + + // The video placement enum as defined by ADCOM 1.0-202303. + // + // + // + // Corresponds to "Video placement value (new)" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VIDEO_PLCMT = 172; + + // The localized name of the video placement as defined by ADCOM 1.0-202303. + // + // + // + // Corresponds to "Video placement (new)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_PLCMT_NAME = 173; + + // The position in the video pod. For example 0, 1, 2, etc. + // + // + // + // Corresponds to "Position in pod" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_POSITION_IN_POD = 538; + + // The position of the pod in the video stream. For example pre-roll, + // mid-roll, post-roll. + // + // + // + // Corresponds to "Position of pod" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_POSITION_OF_POD = 539; + + // The video SDK version enum. + // + // + // + // Corresponds to "Video SDK version value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VIDEO_SDK_VERSION = 440; + + // The localized name of the video SDK version. + // + // + // + // Corresponds to "Video SDK version" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_SDK_VERSION_NAME = 441; + + // Video stitcher type. + // + // + // + // Corresponds to "Video stitcher type value" in the Ad Manager UI (when + // showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + VIDEO_STITCHER_TYPE = 752; + + // Localized name of the video stitcher type. + // + // + // + // Corresponds to "Video stitcher type" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_STITCHER_TYPE_NAME = 753; + + // Breaks down reporting data by week of the year. + // + // + // + // Corresponds to "Week" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + WEEK = 5; + + // Name of the company within a yield group + // + // + // + // Corresponds to "Yield partner" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + YIELD_GROUP_BUYER_NAME = 184; + + // Tag of the company within a yield group. + // + // + // + // Corresponds to "Yield group buyer tag" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + YIELD_GROUP_BUYER_TAG_NAME = 627; + + // ID of the group of ad networks or exchanges used for Mediation and Open + // Bidding + // + // + // + // Corresponds to "Yield group ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + YIELD_GROUP_ID = 182; + + // Name of the group of ad networks or exchanges used for Mediation and Open + // Bidding + // + // + // + // Corresponds to "Yield group" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + YIELD_GROUP_NAME = 183; + + // YouTube instream ad duration bucket. + // + // + // + // Corresponds to "Ad duration value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: + // + // Data format: `ENUM` + YOUTUBE_AD_DURATION_BUCKET = 430; + + // YouTube instream ad duration bucket name. + // + // + // + // Corresponds to "Ad duration" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING` + YOUTUBE_AD_DURATION_BUCKET_NAME = 431; + + // YouTube instream Ad Type. + // + // + // + // Corresponds to "YouTube ad type ID" in the Ad Manager UI (when showing + // API fields). + // + // Compatible with the following report types: + // + // Data format: `ENUM` + YOUTUBE_AD_TYPE = 399; + + // YouTube instream Ad Type locallized name. + // + // + // + // Corresponds to "YouTube ad type" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING` + YOUTUBE_AD_TYPE_NAME = 400; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 0 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 1 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 2 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 3 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 4 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 5 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 6 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 7 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 8 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 9 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 10 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 11 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 12 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 13 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 14 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 0 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 1 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 2 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 3 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 4 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 5 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 6 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 7 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 8 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 9 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 10 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 11 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 12 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 13 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 14 is of + // type `STRING` or `DROPDOWN`. + LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 0 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 1 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 2 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 3 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 4 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 5 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 6 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 7 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 8 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 9 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 10 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 11 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 12 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 13 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 14 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; + + // Custom field value for Order with custom field ID equal to the ID + // in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 0 is of type + // STRING. + ORDER_CUSTOM_FIELD_0_VALUE = 13000; + + // Custom field value for Order with custom field ID equal to the ID + // in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 1 is of type + // STRING. + ORDER_CUSTOM_FIELD_1_VALUE = 13001; + + // Custom field value for Order with custom field ID equal to the ID + // in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 2 is of type + // STRING. + ORDER_CUSTOM_FIELD_2_VALUE = 13002; + + // Custom field value for Order with custom field ID equal to the ID + // in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 3 is of type + // STRING. + ORDER_CUSTOM_FIELD_3_VALUE = 13003; + + // Custom field value for Order with custom field ID equal to the ID + // in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 4 is of type + // STRING. + ORDER_CUSTOM_FIELD_4_VALUE = 13004; + + // Custom field value for Order with custom field ID equal to the ID + // in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 5 is of type + // STRING. + ORDER_CUSTOM_FIELD_5_VALUE = 13005; + + // Custom field value for Order with custom field ID equal to the ID + // in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 6 is of type + // STRING. + ORDER_CUSTOM_FIELD_6_VALUE = 13006; + + // Custom field value for Order with custom field ID equal to the ID + // in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 7 is of type + // STRING. + ORDER_CUSTOM_FIELD_7_VALUE = 13007; + + // Custom field value for Order with custom field ID equal to the ID + // in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 8 is of type + // STRING. + ORDER_CUSTOM_FIELD_8_VALUE = 13008; + + // Custom field value for Order with custom field ID equal to the ID + // in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 9 is of type + // STRING. + ORDER_CUSTOM_FIELD_9_VALUE = 13009; + + // Custom field value for Order with custom field ID equal to the ID + // in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 10 is of + // type STRING. + ORDER_CUSTOM_FIELD_10_VALUE = 13010; + + // Custom field value for Order with custom field ID equal to the ID + // in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 11 is of + // type STRING. + ORDER_CUSTOM_FIELD_11_VALUE = 13011; + + // Custom field value for Order with custom field ID equal to the ID + // in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 12 is of + // type STRING. + ORDER_CUSTOM_FIELD_12_VALUE = 13012; + + // Custom field value for Order with custom field ID equal to the ID + // in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 13 is of + // type STRING. + ORDER_CUSTOM_FIELD_13_VALUE = 13013; + + // Custom field value for Order with custom field ID equal to the ID + // in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 14 is of + // type STRING. + ORDER_CUSTOM_FIELD_14_VALUE = 13014; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 0 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 1 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 2 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 3 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 4 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 5 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 6 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 7 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 8 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 9 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 10 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 11 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 12 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 13 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 14 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 0 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 1 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 2 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 3 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 4 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 5 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 6 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 7 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 8 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 9 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 10 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 11 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 12 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 13 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 14 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 0 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 1 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 2 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 3 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 4 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 5 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 6 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 7 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 8 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 9 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 10 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 11 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 12 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 13 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 14 is of type `STRING` or `DROPDOWN`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 0 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 1 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 2 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 3 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 4 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 5 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 6 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 7 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 8 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 9 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 10 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 11 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 12 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 13 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 14 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; + + // Custom field value for Backfill order with custom field ID equal to the + // ID + // in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 0 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 1 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 2 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 3 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 4 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 5 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 6 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 7 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 8 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 9 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 10 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 11 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 12 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 13 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 14 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID + // in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 0 is of + // type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 1 is + // of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 2 is + // of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 3 is + // of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 4 is + // of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 5 is + // of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 6 is + // of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 7 is + // of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 8 is + // of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 9 is + // of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 10 is of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 11 is of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 12 is of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 13 is of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 14 is of type `STRING` or `DROPDOWN`. + BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 0 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_0_VALUE_ID = 100000; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 1 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_1_VALUE_ID = 100001; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 2 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_2_VALUE_ID = 100002; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 3 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_3_VALUE_ID = 100003; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 4 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_4_VALUE_ID = 100004; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 5 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_5_VALUE_ID = 100005; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 6 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_6_VALUE_ID = 100006; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 9 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_7_VALUE_ID = 100007; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 8 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_8_VALUE_ID = 100008; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 9 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_9_VALUE_ID = 100009; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 0 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_0_VALUE = 101000; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 1 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_1_VALUE = 101001; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 2 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_2_VALUE = 101002; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 3 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_3_VALUE = 101003; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 4 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_4_VALUE = 101004; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 5 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_5_VALUE = 101005; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 6 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_6_VALUE = 101006; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 7 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_7_VALUE = 101007; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 8 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_8_VALUE = 101008; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // ID in index 9 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_9_VALUE = 101009; + } + + // Reporting metrics. + enum Metric { + option allow_alias = true; + + // Default value. This value is unused. + METRIC_UNSPECIFIED = 0; + + // The number of people who engaged with your site or app in the specified + // date range from Google Analytics. + // + // + // + // Corresponds to "Active users" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_USERS = 223; + + // Number of impressions with unmuted playback at start. + // + // + // + // Corresponds to "Active View % audible at start" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT = 445; + + // Total Active View audible impressions + // + // + // + // Corresponds to "Total Active View audible impressions" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_AUDIBLE_IMPRESSIONS = 659; + + // Number of impressions with unmuted playback through the entire stream. + // + // + // + // Corresponds to "Active View % audible through completion" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT = 446; + + // Number of impressions with unmuted playback through at least 25%. + // + // + // + // Corresponds to "Active View % audible through first quartile" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT = 447; + + // Number of impressions with unmuted playback through at least 50%. + // + // + // + // Corresponds to "Active View % audible through midpoint" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT = 448; + + // Number of impressions with unmuted playback through at least 75%. + // + // + // + // Corresponds to "Active View % audible through third quartile" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT = 449; + + // Total Active View audio enabled impressions + // + // + // + // Corresponds to "Total Active View audio eligible impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS = 660; + + // Total Active View audio measurable impressions + // + // + // + // Corresponds to "Total Active View audio measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS = 661; + + // Active View total average time in seconds that specific impressions are + // reported as being viewable. + // + // + // + // Corresponds to "Total Active View average viewable time (seconds)" in the + // Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; + + // Total number of impressions that were eligible to measure viewability. + // + // + // + // Corresponds to "Total Active View eligible impressions" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; + + // Number of impressions where the ad player is in the background at any + // point during playback with volume > 0. + // + // + // + // Corresponds to "Active View % ever audible while backgrounded" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT = 450; + + // Number of impressions where volume > 0 at any point. + // + // + // + // Corresponds to "Active View % ever audible" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_EVER_AUDIBLE_PERCENT = 451; + + // Number of impressions where the ad player is in the background at any + // point during playback. + // + // + // + // Corresponds to "Active View % ever backgrounded" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT = 452; + + // Number of impressions where volume = 0 at any point. + // + // + // + // Corresponds to "Active View % ever muted" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_EVER_MUTED_PERCENT = 453; + + // The number of measurable impressions that were played to video + // completion, and also audible and visible at the time of completion. + // + // + // + // Corresponds to "Total Active View impressions audible and visible at + // completion" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION = 411; + + // The total number of impressions that were sampled and measured by active + // view. + // + // + // + // Corresponds to "Total Active View measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; + + // The percentage of total impressions that were measurable by active view + // (out of all the total impressions sampled for active view). + // + // + // + // Corresponds to "Total Active View % measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; + + // Total Active View non-measurable impressions + // + // + // + // Corresponds to "Total Active View non-measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 662; + + // Total Active View non-viewable impressions + // + // + // + // Corresponds to "Total Active View non-viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 663; + + // Total Active View non-viewable impressions distribution + // + // + // + // Corresponds to "Total Active View non-viewable impression distribution" + // in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 664; + + // Total Active View percent audible impressions + // + // + // + // Corresponds to "Total Active View % audible impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS = 665; + + // Number of impressions where we were able to collect Active View+ signals. + // + // + // + // Corresponds to "Active View+ measurable impressions" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_PLUS_MEASURABLE_COUNT = 454; + + // Revenue generated from Active View impressions. + // + // + // + // Corresponds to "Total Active View revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + ACTIVE_VIEW_REVENUE = 414; + + // Total Active View undetermined impressions distribution + // + // + // + // Corresponds to "Total Active View undetermined impression distribution" + // in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 666; + + // The total number of impressions viewed on the user's screen. + // + // + // + // Corresponds to "Total Active View viewable impressions" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; + + // Total Active View viewable impressions distribution + // + // + // + // Corresponds to "Total Active View viewable impression distribution" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 667; + + // The percentage of total impressions viewed on the user's screen (out of + // the total impressions measurable by active view). + // + // + // + // Corresponds to "Total Active View % viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; + + // Active View AdSense average time in seconds that specific impressions are + // reported as being viewable. + // + // + // + // Corresponds to "AdSense Active View average viewable time (seconds)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; + + // Total number of impressions delivered by AdSense that were eligible to + // measure viewability. + // + // + // + // Corresponds to "AdSense Active View eligible impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; + + // The number of impressions delivered by AdSense that were sampled, and + // measurable by active view. + // + // + // + // Corresponds to "AdSense Active View measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; + + // The percentage of impressions delivered by AdSense that were measurable + // by active view (out of all AdSense impressions sampled for active view). + // + // + // + // Corresponds to "AdSense Active View % measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; + + // AdSense Active View non-measurable impressions + // + // + // + // Corresponds to "AdSense Active View non-measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 642; + + // AdSense Active View non-viewable impressions + // + // + // + // Corresponds to "AdSense Active View non-viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 643; + + // AdSense Active View non-viewable impressions distribution + // + // + // + // Corresponds to "AdSense Active View non-viewable impression distribution" + // in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 644; + + // AdSense Active View undetermined impressions distribution + // + // + // + // Corresponds to "AdSense Active View undetermined impression distribution" + // in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 645; + + // The number of impressions delivered by AdSense viewed on the user's + // screen. + // + // + // + // Corresponds to "AdSense Active View viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; + + // AdSense Active View viewable impressions distribution + // + // + // + // Corresponds to "AdSense Active View viewable impression distribution" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 646; + + // The percentage of impressions delivered by AdSense viewed on the user's + // screen (out of AdSense impressions measurable by active view). + // + // + // + // Corresponds to "AdSense Active View % viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; + + // The average effective cost-per-thousand-impressions earned from the ads + // delivered by AdSense through line item dynamic allocation. + // + // + // + // Corresponds to "AdSense average eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + ADSENSE_AVERAGE_ECPM = 26; + + // Number of clicks delivered by AdSense demand channel. + // + // + // + // Corresponds to "AdSense clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ADSENSE_CLICKS = 23; + + // The ratio of impressions served by AdSense that resulted in users + // clicking on an ad. The clickthrough rate (CTR) is updated nightly. The + // AdSense CTR is calculated as: (AdSense clicks / AdSense impressions). + // + // + // + // Corresponds to "AdSense CTR" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_CTR = 24; + + // Total impressions delivered by AdSense. + // + // + // + // Corresponds to "AdSense impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ADSENSE_IMPRESSIONS = 22; + + // Ratio of clicks delivered by AdSense through line item dynamic allocation + // in relation to the total clicks delivered. + // + // + // + // Corresponds to "AdSense clicks (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_PERCENT_CLICKS = 28; + + // Ratio of impressions delivered by AdSense through line item dynamic + // allocation in relation to the total impressions delivered. + // + // + // + // Corresponds to "AdSense impressions (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_PERCENT_IMPRESSIONS = 27; + + // Ratio of revenue generated by AdSense through line item dynamic + // allocation in relation to the total revenue. + // + // + // + // Corresponds to "AdSense revenue (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_PERCENT_REVENUE = 29; + + // Ratio of revenue generated by AdSense through line item dynamic + // allocation in relation to the total revenue (excluding CPD). + // + // + // + // Corresponds to "AdSense revenue w/o CPD (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; + + // The total number of times that an AdSense ad is delivered. + // + // + // + // Corresponds to "AdSense responses served" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ADSENSE_RESPONSES_SERVED = 41; + + // Revenue generated from AdSense through line item dynamic allocation, + // calculated in the network's currency and time zone. + // + // + // + // Corresponds to "AdSense revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + ADSENSE_REVENUE = 25; + + // Active View AdExchange average time in seconds that specific impressions + // are reported as being viewable. + // + // + // + // Corresponds to "Ad Exchange Active View average viewable time (seconds)" + // in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; + + // Total number of impressions delivered by Ad Exchange that were eligible + // to measure viewability. + // + // + // + // Corresponds to "Ad Exchange Active View eligible impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; + + // The number of impressions delivered by Ad Exchange that were sampled, and + // measurable by active view. + // + // + // + // Corresponds to "Ad Exchange Active View measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; + + // The percentage of impressions delivered by Ad Exchange that were + // measurable by active view (out of all Ad Exchange impressions sampled + // for active view). + // + // + // + // Corresponds to "Ad Exchange Active View % measurable impressions" in the + // Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; + + // Ad Exchange Active View non-measurable impressions + // + // + // + // Corresponds to "Ad Exchange Active View non-measurable impressions" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 654; + + // Ad Exchange Active View non-viewable impressions + // + // + // + // Corresponds to "Ad Exchange Active View non-viewable impressions" in the + // Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 655; + + // Ad Exchange Active View non-viewable impressions distribution + // + // + // + // Corresponds to "Ad Exchange Active View non-viewable impression + // distribution" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 656; + + // Ad Exchange Active View undetermined impressions distribution + // + // + // + // Corresponds to "Ad Exchange Active View undetermined impression + // distribution" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 657; + + // The number of impressions delivered by Ad Exchange viewed on the user's + // screen. + // + // + // + // Corresponds to "Ad Exchange Active View viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; + + // Ad Exchange Active View viewable impressions distribution + // + // + // + // Corresponds to "Ad Exchange Active View viewable impression distribution" + // in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 658; + + // The percentage of impressions delivered by Ad Exchange viewed on the + // user's screen (out of Ad Exchange impressions measurable by active + // view). + // + // + // + // Corresponds to "Ad Exchange Active View % viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; + + // The average effective cost-per-thousand-impressions earned from the ads + // delivered by Ad Exchange through line item dynamic allocation. + // + // + // + // Corresponds to "Ad Exchange average eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_EXCHANGE_AVERAGE_ECPM = 18; + + // Number of clicks delivered by the Ad Exchange. + // + // + // + // Corresponds to "Ad Exchange clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_CLICKS = 15; + + // The average effective cost-per-click earned from the ads delivered by Ad + // Exchange through line item dynamic allocation. + // + // + // + // Corresponds to "Ad Exchange CPC" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_EXCHANGE_CPC = 244; + + // The ratio of impressions served by the Ad Exchange that resulted in users + // clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad + // Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange + // impressions). + // + // + // + // Corresponds to "Ad Exchange CTR" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_CTR = 16; + + // Ratio of impressions delivered by Ad Exchange through line item dynamic + // allocation to ad requests. + // + // + // + // Corresponds to "Ad Exchange delivery rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_DELIVERY_RATE = 245; + + // Total impressions delivered by the Ad Exchange. + // + // + // + // Corresponds to "Ad Exchange impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_IMPRESSIONS = 14; + + // The total number of impressions based on the number of ad viewers. + // + // + // + // Corresponds to "Ad Exchange impressions per ad viewer" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER = 427; + + // The total number of impressions based on the number of sessions. + // + // + // + // Corresponds to "Ad Exchange impressions per session" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + AD_EXCHANGE_IMPRESSIONS_PER_SESSION = 428; + + // The increase in revenue gained for won impressions over the applicable + // third party price (the minimum CPM or the best price specified during + // dynamic allocation), + // + // + // + // Corresponds to "Ad Exchange lift earnings" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_LIFT = 246; + + // The ratio of matched ad requests served by the Ad Exchange that + // resulted in users clicking on an ad. The clickthrough rate (CTR) is + // updated nightly. Ad Exchange Matched Request CTR is calculated as: + // (Ad Exchange clicks / Ad Exchange Macthed Ad Requests). + // + // + // + // Corresponds to "Ad Exchange matched request CTR" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_MATCHED_REQUEST_CTR = 247; + + // The average effective cost per thousand matched ad requests earned from + // the ads delivered by Ad Exchange through line item dynamic allocation. + // + // + // + // Corresponds to "Ad Exchange matched request eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_EXCHANGE_MATCHED_REQUEST_ECPM = 248; + + // The number of responses served divided by the number of queries eligible + // in ad exchange. + // + // + // + // Corresponds to "Ad Exchange match rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_MATCH_RATE = 249; + + // Total opportunities from video VAST error within the waterfall for + // backfill ads. + // + // + // + // Corresponds to "Ad Exchange opportunities from errors" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS = 250; + + // Number of opportunities from impressions within the waterfall for + // backfill ads. + // + // + // + // Corresponds to "Ad Exchange opportunities from impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS = 251; + + // Ratio of clicks delivered by Ad Exchange through line item dynamic + // allocation in relation to the total clicks delivered. + // + // + // + // Corresponds to "Ad Exchange clicks (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_PERCENT_CLICKS = 20; + + // Ratio of impressions delivered by Ad Exchange through line item dynamic + // allocation in relation to the total impressions delivered. + // + // + // + // Corresponds to "Ad Exchange impressions (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; + + // Ratio of revenue generated by Ad Exchange through line item dynamic + // allocation in relation to the total revenue. + // + // + // + // Corresponds to "Ad Exchange revenue (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_PERCENT_REVENUE = 21; + + // Ratio of revenue generated by Ad Exchange through line item dynamic + // allocation in relation to the total revenue (excluding CPD). + // + // + // + // Corresponds to "Ad Exchange revenue w/o CPD (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; + + // The average effective cost-per-thousand-impressions earned from the ads + // delivered by Ad Exchange through line item dynamic allocation and yield + // group partners. + // + // + // + // Corresponds to "Ad Exchange plus yield group eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM = 252; + + // Total impressions delivered by the Ad Exchange and third-party networks. + // + // + // + // Corresponds to "Ad Exchange plus yield group impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS = 253; + + // Revenue generated from the Ad Exchange and Yield Group, calculated in + // your network's currency and time zone. + // + // + // + // Corresponds to "Ad Exchange plus yield group revenue" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE = 254; + + // The total number of times that an Ad Exchange ad is delivered. + // + // + // + // Corresponds to "Ad Exchange responses served" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_RESPONSES_SERVED = 42; + + // Revenue generated from the Ad Exchange through line item dynamic + // allocation, calculated in your network's currency and time zone. + // + // + // + // Corresponds to "Ad Exchange revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_EXCHANGE_REVENUE = 17; + + // The Ad Exchange revenue accrued in the child network's own account but + // paid to their parent network through auto-payment. This metric is only + // relevant for a "Manage Account" child network. + // + // + // + // Corresponds to "Ad Exchange revenue paid through MCM auto-payment" in the + // Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 212; + + // The total amount of Ad Exchange revenue based on the + // number of ad viewers. + // + // + // + // Corresponds to "Ad Exchange revenue per ad viewer" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_EXCHANGE_REVENUE_PER_AD_VIEWER = 429; + + // The number of programmatic eligible queries in Ad Exchange. + // + // + // + // Corresponds to "Ad Exchange total requests" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_EXCHANGE_TOTAL_REQUESTS = 255; + + // The ratio of total ad requests served by the Ad Exchange that + // resulted in users clicking on an ad. The clickthrough rate (CTR) is + // updated nightly. Ad Exchange Total Request CTR is calculated as: + // (Ad Exchange clicks / Ad Exchange Total Ad Requests). + // + // + // + // Corresponds to "Ad Exchange total request CTR" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_EXCHANGE_TOTAL_REQUEST_CTR = 256; + + // The average effective cost per thousand ad requests earned from the ads + // delivered by Ad Exchange through line item dynamic allocation and yield + // group partners. + // + // + // + // Corresponds to "Ad Exchange total request eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_EXCHANGE_TOTAL_REQUEST_ECPM = 257; + + // Length of time in seconds that an ad is visible on the user's screen from + // Google Analytics. + // + // + // + // Corresponds to "Ad exposure (seconds)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + AD_EXPOSURE_SECONDS = 241; + + // The total number of times that an ad request is sent to the ad server + // including dynamic allocation. + // + // + // + // Corresponds to "Total ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_REQUESTS = 38; + + // Active View ad server average time in seconds that specific impressions + // are reported as being viewable. + // + // + // + // Corresponds to "Ad server Active View average viewable time (seconds)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; + + // Total number of impressions delivered by the ad server that were eligible + // to measure viewability. + // + // + // + // Corresponds to "Ad server Active View eligible impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; + + // The number of impressions delivered by the ad server that were sampled, + // and measurable by active view. + // + // + // + // Corresponds to "Ad server Active View measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; + + // The percentage of impressions delivered by the ad server that were + // measurable by active view (out of all the ad server impressions sampled + // for active view). + // + // + // + // Corresponds to "Ad server Active View % measurable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; + + // The number of impressions delivered by Ad Server that were not measured. + // For example, impressions where measurement was attempted but failed. + // + // + // + // Corresponds to "Ad server Active View non-measurable impressions" in the + // Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS = 332; + + // The number of impressions delivered by Ad Server that were measured by + // active view, but deemed not viewable. + // + // + // + // Corresponds to "Ad server Active View non-viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS = 331; + + // The fraction of non-viewable impressions among eligible impressions from + // Ad Server in Active View reporting." + // + // + // + // Corresponds to "Ad server Active View non-viewable impression + // distribution" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 334; + + // The fraction of non-eligible impressions among eligible impressions from + // Ad Server in Active View reporting." + // + // + // + // Corresponds to "Ad server Active View undetermined impression + // distribution" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION = 335; + + // The number of impressions delivered by the ad server viewed on the user's + // screen. + // + // + // + // Corresponds to "Ad server Active View viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; + + // The fraction of viewable impressions among eligible impressions from Ad + // Server in Active View reporting. + // + // + // + // Corresponds to "Ad server Active View viewable impression distribution" + // in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION = 333; + + // The percentage of impressions delivered by the ad server viewed on the + // user's screen (out of the ad server impressions measurable by active + // view). + // + // + // + // Corresponds to "Ad server Active View % viewable impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; + + // Average effective cost-per-thousand-impressions earned from the ads + // delivered by the Google Ad Manager server. + // + // + // + // Corresponds to "Ad server average eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_SERVER_AVERAGE_ECPM = 34; + + // Average effective cost-per-thousand-impressions earned from the ads + // delivered by the Google Ad Manager server, excluding CPD value. + // + // + // + // Corresponds to "Ad server average eCPM w/o CPD" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; + + // Total raw impressions counted when creative begins to render or the + // first frame of a video is shown. + // + // + // + // Corresponds to "Ad server begin to render impressions" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; + + // Total clicks served by the Google Ad Manager server. It usually takes + // about 30 minutes for new clicks to be recorded and added to the total + // displayed in reporting. + // + // + // + // Corresponds to "Ad server clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_CLICKS = 7; + + // The number of completed views for ad server. + // + // + // + // Corresponds to "Ad server completed views" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_COMPLETED_VIEWS = 431; + + // Total coviewed impressions delivered by the Ad Server. + // + // + // + // Corresponds to "Ad server impressions (co-viewed)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_COVIEWED_IMPRESSIONS = 554; + + // CPD revenue earned, calculated in your network's currency, for + // the ads delivered by the Google Ad Manager server. Sum of all booked + // revenue. + // + // + // + // Corresponds to "Ad server CPD revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_SERVER_CPD_REVENUE = 32; + + // Ratio of impressions served by the Google Ad Manager server that resulted + // in users clicking on an ad. The clickthrough rate (CTR) is updated + // nightly. The ad server CTR is calculated as: (Ad server clicks / Ad + // server impressions). + // + // + // + // Corresponds to "Ad server CTR" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_CTR = 8; + + // Gross revenue earned, calculated in your network's currency, for the ads + // delivered by the Google Ad Manager server. This includes pre-rev-share + // revenue for Programmatic traffic. This metric is to help with the + // transition from gross to net revenue reporting. + // + // + // + // Corresponds to "Ad server total revenue (gross)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_SERVER_GROSS_REVENUE = 483; + + // Gross revenue earned, calculated in your network's currency, for the ads + // delivered by the Google Ad Manager server, excluding CPD revenue. This + // includes pre-rev-share revenue for Programmatic traffic. This metric is + // to help with the transition from gross to net revenue reporting. + // + // + // + // Corresponds to "Ad server CPM and CPC revenue (gross)" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_SERVER_GROSS_REVENUE_WITHOUT_CPD = 484; + + // Total impressions delivered by the Ad Server. + // + // + // + // Corresponds to "Ad server impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_IMPRESSIONS = 6; + + // Total impressions delivered by the Ad Server with companion impressions. + // + // + // + // Corresponds to "Ad server impressions with companion" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_IMPRESSIONS_WITH_COMPANION = 222; + + // Impressions (via begin to render methodology) delivered by the Google Ad + // Manager server considered inactive, as defined by served to a device + // receiving ad or bid requests continuously for a session of greater than + // 16 hours without a "reset" event. + // + // + // + // Corresponds to "Ad server inactive begin to render impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 338; + + // Ratio of clicks delivered by the Google Ad Manager server in relation to + // the total clicks delivered. + // + // + // + // Corresponds to "Ad server clicks (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_PERCENT_CLICKS = 12; + + // Ratio of impressions delivered by the Google Ad Manager server in + // relation to the total impressions delivered. + // + // + // + // Corresponds to "Ad server impressions (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_PERCENT_IMPRESSIONS = 11; + + // Ratio of revenue generated by the Google Ad Manager server in relation + // to the total revenue. + // + // + // + // Corresponds to "Ad server revenue (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_PERCENT_REVENUE = 35; + + // Ratio of revenue generated by the Google Ad Manager server (excluding + // CPD) in relation to the total revenue. + // + // + // + // Corresponds to "Ad server revenue w/o CPD (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; + + // The total number of times that an ad is served by the ad server. + // + // + // + // Corresponds to "Ad server responses served" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_RESPONSES_SERVED = 40; + + // All CPM, CPC, and CPD revenue earned, calculated in your network's + // currency, for the ads delivered by the Google Ad Manager server. + // Sum of all booked revenue. + // + // + // + // Corresponds to "Ad server total revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_SERVER_REVENUE = 33; + + // The Google Ad Manager server revenue accrued in the child network's own + // account but paid to their parent network through auto-payment. This + // metric is only relevant for a "Manage Account" child network. + // + // + // + // Corresponds to "Ad server revenue paid through MCM auto-payment" in the + // Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 213; + + // Revenue (excluding CPD) earned, calculated in your network's currency, + // for the ads delivered by the Google Ad Manager server. Sum of all booked + // revenue. + // + // + // + // Corresponds to "Ad server CPM and CPC revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AD_SERVER_REVENUE_WITHOUT_CPD = 9; + + // The number of clicks delivered by the ad server by explicit custom + // criteria targeting. + // + // + // + // Corresponds to "Ad server targeted clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_TARGETED_CLICKS = 274; + + // The number of impressions delivered by the ad server by explicit custom + // criteria targeting. + // + // + // + // Corresponds to "Ad server targeted impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_TARGETED_IMPRESSIONS = 275; + + // The number of tracked ads delivered by the ad server. + // + // + // + // Corresponds to "Ad server tracked ads" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_TRACKED_ADS = 264; + + // Total raw impressions counted when creative begins to render or the + // first frame of a video is shown, before invalid traffic filtrations by + // Ad Server. + // + // + // + // Corresponds to "Ad server unfiltered begin to render impressions" in the + // Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; + + // Total clicks delivered by the Ad Server before spam filtering. + // + // + // + // Corresponds to "Ad server unfiltered clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_UNFILTERED_CLICKS = 259; + + // Total downloaded impressions delivered by the Ad Server before spam + // filtering. + // + // + // + // Corresponds to "Ad server unfiltered downloaded impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS = 260; + + // Deprecated. This metric has been renamed to + // `AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS`. + // The server will normalize any requests using this value to + // `AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS`. + // This value will be removed on or after October 1, 2025. + AD_SERVER_UNFILTERED_IMPRESSIONS = 260 [deprecated = true]; + + // The number of tracked ads delivered by the ad server before invalid + // traffic filtrations. + // + // + // + // Corresponds to "Ad server unfiltered tracked ads" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_UNFILTERED_TRACKED_ADS = 263; + + // Length of time in seconds that an ad unit is visible on the user's screen + // from Google Analytics. + // + // + // + // Corresponds to "Ad unit exposure (seconds)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + AD_UNIT_EXPOSURE_SECONDS = 242; + + // The number of users who viewed an ads on your site or app in the + // specified date range from Google Analytics. + // + // + // + // Corresponds to "Ad viewers" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_VIEWERS = 425; + + // Number of ads that Ad Manager failed to render in the Ads traffic + // navigator report. + // + // + // + // Corresponds to "Ads failed to render" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_ADS_FAILED_TO_RENDER = 430; + + // Number of line items that matched an ad request in the Ads traffic + // navigator report. + // + // + // + // Corresponds to "Eligible line items" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_ELIGIBLE_LINE_ITEMS = 342; + + // Number of ad requests that contain eligible line items for the auction in + // the Ads traffic navigator report. + // + // + // + // Corresponds to "Ad requests with eligible line items" in the Ad Manager + // UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS = 343; + + // Number of ad requests that have header bidding trafficking demand in the + // Ads traffic navigator report. + // + // + // + // Corresponds to "Ad requests allowing header bidding trafficking" in the + // Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_HBT_ALLOWED_AD_REQUESTS = 344; + + // Number of header bidding trafficking bids that are able to match an ad + // request and enter the auction in the Ads traffic navigator report. + // + // + // + // Corresponds to "Competing header bidding trafficking bids" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_HBT_BIDS_IN_AUCTION = 345; + + // Number of header bidding trafficking ad requests with bids in auction in + // the Ads traffic navigator report. + // + // + // + // Corresponds to "Ad requests with competing header bidding trafficking + // bids" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS = 346; + + // Number of header bidding trafficking candidate bids that match an ad + // request in the Ads traffic navigator report. + // + // + // + // Corresponds to "Header bidding trafficking bids" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_HBT_CANDIDATE_BIDS = 347; + + // Number of invalid header bidding trafficking ad requests in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Invalid ad requests allowing header bidding trafficking" + // in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_HBT_INVALID_AD_REQUESTS = 348; + + // Number of header bidding trafficking ad requests with no bids in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Header bidding trafficking ad requests with no bids" in + // the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_HBT_NO_BIDS_AD_REQUESTS = 472; + + // Number of header bidding trafficking bids that didn't match the ad + // request in the Ads traffic navigator report. + // + // + // + // Corresponds to "Rejected header bidding trafficking bids" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_HBT_REJECTED_BIDS = 349; + + // Number of ad requests with the header bidding trafficking demand that are + // valid in the Ads traffic navigator report. + // + // + // + // Corresponds to "Valid header bidding trafficking ad requests" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_HBT_VALID_AD_REQUESTS = 350; + + // Number of header bidding trafficking ad requests with bids in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Header bidding trafficking ad requests with bids" in the + // Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_HBT_WITH_BIDS_AD_REQUESTS = 473; + + // Ad requests that are not valid in the Ads traffic navigator report. + // + // + // + // Corresponds to "Invalid ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_INVALID_AD_REQUESTS = 351; + + // Number of line items with no creative retrieved in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Creative not retrieved" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED = 476; + + // Number of line items that matched an ad request and entered in auction in + // the Ads traffic navigator report. + // + // + // + // Corresponds to "Competing line items" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_LINE_ITEMS_IN_AUCTION = 352; + + // Number of line items that were ranked but did not compete in auction in + // the Ads traffic navigator report. + // + // + // + // Corresponds to "Non-competing line items" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_LINE_ITEMS_NOT_COMPETING = 515; + + // Number of line items that matched an ad request but were not selected to + // compete in the auction in the Ads traffic navigator report. + // + // + // + // Corresponds to "Not selected to compete" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_LINE_ITEMS_NOT_SELECTED = 353; + + // Number of line item ad requests in auction in the Ads traffic navigator + // report. + // + // + // + // Corresponds to "Ad requests with competing line items" in the Ad Manager + // UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS = 354; + + // Number of line item targeted ad requests in the Ads traffic navigator + // report. + // + // + // + // Corresponds to "Ad requests with targeted line items" in the Ad Manager + // UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_LINE_ITEM_TARGETED_AD_REQUESTS = 355; + + // Number of ad requests with the mediation demand in the Ads traffic + // navigator report. + // + // + // + // Corresponds to "Ad requests allowing mediation" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_ALLOWED_AD_REQUESTS = 356; + + // Number of invalid mediation ad requests in the Ads traffic navigator + // report. + // + // + // + // Corresponds to "Invalid ad requests allowing mediation" in the Ad Manager + // UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_INVALID_AD_REQUESTS = 357; + + // Number of times the Yield Partner's ad was loaded in the Ads traffic + // navigator report. + // + // + // + // Corresponds to "Loaded ads from chains" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_LOADED_ADS_FROM_CHAINS = 358; + + // Number of ad requests with mediation demand having no partners in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Mediation requests with no partners" in the Ad Manager + // UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_NO_PARTNER_AD_REQUESTS = 474; + + // Number of mediation yield partners in auction in the Ads traffic + // navigator report. + // + // + // + // Corresponds to "Competing mediation partners" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_PARTNERS_IN_AUCTION = 359; + + // Number of ad requests in auction that serve mediation chains in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Ad requests with competing mediation partners" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS = 360; + + // Number of mediation partners that didn't match an ad request in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Rejected partners" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_REJECTED_PARTNERS = 361; + + // Number of mediation partners that have targeted an ad request and are + // able to match it in the Ads traffic navigator report. + // + // + // + // Corresponds to "Targeted mediation partners" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_TARGETED_PARTNERS = 362; + + // Number of partners on served mediation chains in the Ads traffic + // navigator report. + // + // + // + // Corresponds to "Total yield partners" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_TOTAL_YIELD_PARTNERS = 442; + + // Number of ads from mediation chains that Ad Manager won't serve in the + // Ads traffic navigator report. + // + // + // + // Corresponds to "Unloaded ads from chains" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS = 363; + + // Number of times the Yield Partner's mediation chain ad was not reached + // in the Ads traffic navigator report. + // + // + // + // Corresponds to "Unused bids or partners" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS = 364; + + // Number of ad requests that have mediation demand in the Ads traffic + // navigator report. + // + // + // + // Corresponds to "Valid mediation ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_VALID_AD_REQUESTS = 365; + + // Number of ad requests with mediation demand having partners in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Ad requests with targeted mediation partners" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS = 475; + + // Number of ad requests with programmatic demand that have received a bid + // in the Ads traffic navigator report. + // + // + // + // Corresponds to "Ad requests with bids" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS = 366; + + // Number of ad requests with programmatic demand that have sent a bid to at + // least one buyer in the Ads traffic navigator report. + // + // + // + // Corresponds to "Ad requests with bid requests sent" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT = 367; + + // Number of ad requests with programmatic demand in the Ads traffic + // navigator report. + // + // + // + // Corresponds to "Ad requests allowing programmatic" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS = 368; + + // Number of ads with programmatic bids that entered the auction + // in the Ads traffic navigator report. + // + // + // + // Corresponds to "Competing programmatic bids" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_BIDS_IN_AUCTION = 369; + + // Number of ad requests that have received eligible programmatic bids to + // compete in the auction in the Ads traffic navigator report. + // + // + // + // Corresponds to "Ad requests with competing programmatic bids" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS = 370; + + // Number of programmatic callout bid requests sent to buyers in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Bid requests sent" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_BID_REQUESTS_SENT = 371; + + // Number of programmatic callout bid requests that resulted with a response + // in the Ads traffic navigator report. + // + // + // + // Corresponds to "Bid requests with response" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE = 372; + + // All buyers that Ad Manager could potentially send a programmatic bid + // request to in the Ads traffic navigator report. + // + // + // + // Corresponds to "Bid request candidates" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES = 373; + + // Number of programmatic callout bid requests with errors in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Bid request errors" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_BID_REQUEST_ERRORS = 374; + + // Number of ad requests that are ineligible for programmatic in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Invalid ad requests allowing programmatic" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS = 375; + + // Number of programmatic callout bids rejected in the Ads traffic navigator + // report. + // + // + // + // Corresponds to "Rejected bids" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_REJECTED_BIDS = 376; + + // Number of programmatic callout bid requests Ad Manager won't send to + // buyers in the Ads traffic navigator report. + // + // + // + // Corresponds to "Skipped bid requests" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS = 377; + + // Number of programmatic bids that Ad Manager received from buyers in the + // Ads traffic navigator report. + // + // + // + // Corresponds to "Total programmatic bids" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_TOTAL_BIDS = 378; + + // Number of ad requests that allow programmatic in the Ads traffic + // navigator report. + // + // + // + // Corresponds to "Valid ad requests allowing programmatic" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_PROGRAMMATIC_VALID_AD_REQUESTS = 379; + + // Number of line items targeted that didn't match an ad request in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Rejected line items" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_REJECTED_LINE_ITEMS = 380; + + // Number of mediation chains Ad Manager serves in the Ads traffic navigator + // report. + // + // + // + // Corresponds to "Served mediation chains" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_SERVED_MEDIATION_CHAINS = 381; + + // Number of single ads served in the Ads traffic navigator report. + // + // + // + // Corresponds to "Served single ads" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_SERVED_SINGLE_ADS = 382; + + // Number of line items with targeting that matches an ad request in the Ads + // traffic navigator report. + // + // + // + // Corresponds to "Targeted line items" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_TARGETED_LINE_ITEMS = 383; + + // Total number of ad requests which counts optimized pod request as a + // single request in the Ads traffic navigator report. + // + // + // + // Corresponds to "Total ad requests (ATN)" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_TOTAL_AD_REQUESTS = 384; + + // Number of competing ads in auction in the Ads traffic navigator report. + // + // + // + // Corresponds to "Total competing ads" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_TOTAL_COMPETING_ADS_IN_AUCTION = 385; + + // Total number of ads loaded in the Ads traffic navigator report. + // + // + // + // Corresponds to "Total loaded ads" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_TOTAL_LOADED_ADS = 387; + + // Ad requests that are valid in the Ads traffic navigator report. + // + // + // + // Corresponds to "Valid ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_VALID_AD_REQUESTS = 389; + + // Number of times the Yield Partner passed-back on a Mediation chain ad in + // the Ads traffic navigator report. + // + // + // + // Corresponds to "Yield group mediation passbacks" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + ATN_YIELD_GROUP_MEDIATION_PASSBACKS = 390; + + // eCPM averaged across the Google Ad Manager server, AdSense, + // and Ad Exchange. + // + // + // + // Corresponds to "Total average eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AVERAGE_ECPM = 37; + + // eCPM averaged across the Google Ad Manager server (excluding CPD), + // AdSense, and Ad Exchange. + // + // + // + // Corresponds to "Total average eCPM w/o CPD" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AVERAGE_ECPM_WITHOUT_CPD = 5; + + // Average user engagement seconds per session in Google Analytics. + // + // + // + // Corresponds to "Average engagement time per session (seconds)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION = 224; + + // Average user engagement seconds per user in Google Analytics. + // + // + // + // Corresponds to "Average engagement time per user (seconds)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + AVERAGE_ENGAGEMENT_SECONDS_PER_USER = 225; + + // The average number of unique users reached per ad impression. + // + // + // + // Corresponds to "Average impressions/unique visitor" in the Ad Manager UI. + // + // Compatible with the following report types: `REACH` + // + // Data format: `DOUBLE` + AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR = 418; + + // Average total purchase revenue per user in Google Analytics. + // + // + // + // Corresponds to "ARPPU" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER = 226; + + // Average revenue earned from each active user in Google Analytics. + // + // + // + // Corresponds to "ARPU" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AVERAGE_REVENUE_PER_USER = 227; + + // Average length of a session in Google Analytics. + // + // + // + // Corresponds to "Average session duration (seconds)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + AVERAGE_SESSION_SECONDS = 228; + + // The number of bids. + // + // + // + // Corresponds to "Bids" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + BIDS = 443; + + // The average CPM of the bids submitted by bidders. + // + // + // + // Corresponds to "Average bid CPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + BID_AVERAGE_CPM = 444; + + // The ratio of (sessions - engaged sessions) / sessions. + // + // + // + // Corresponds to "Bounce rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + BOUNCE_RATE = 433; + + // The number of times a user clicked on an ad. + // + // + // + // Corresponds to "Total clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + CLICKS = 2; + + // The total number of times that the code for an ad is served by the ad + // server including dynamic allocation. + // + // + // + // Corresponds to "Total code served count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + CODE_SERVED_COUNT = 44; + + // Total amount of CPC revenue. + // + // + // + // Corresponds to "CPC revenue" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `MONEY` + CPC_REVENUE = 440; + + // Total amount of CPM revenue. + // + // + // + // Corresponds to "CPM revenue" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `MONEY` + CPM_REVENUE = 441; + + // Percent of creatives whose load time is between [0, 500ms). + // + // + // + // Corresponds to "Creative load time 0 - 500ms (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + CREATIVE_LOAD_TIME_0_500_PERCENT = 324; + + // Percent of creatives whose load time is between [1000, 2000ms). + // + // + // + // Corresponds to "Creative load time 1s - 2s (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + CREATIVE_LOAD_TIME_1000_2000_PERCENT = 326; + + // Percent of creatives whose load time is between [2000, 4000ms). + // + // + // + // Corresponds to "Creative load time 2s - 4s (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + CREATIVE_LOAD_TIME_2000_4000_PERCENT = 327; + + // Percent of creatives whose load time is between [4000, 8000ms). + // + // + // + // Corresponds to "Creative load time 4s - 8s (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + CREATIVE_LOAD_TIME_4000_8000_PERCENT = 328; + + // Percent of creatives whose load time is between [500, 1000ms). + // + // + // + // Corresponds to "Creative load time 500ms - 1s (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + CREATIVE_LOAD_TIME_500_1000_PERCENT = 325; + + // Percent of creatives load time is greater than 8000ms. + // + // + // + // Corresponds to "Creative load time >8s (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + CREATIVE_LOAD_TIME_GT_8000_PERCENT = 329; + + // For standard ads, your ad clickthrough rate (CTR) is the number of ad + // clicks divided by the number of individual ad impressions expressed as a + // fraction. Ad CTR = Clicks / Ad impressions. + // + // + // + // Corresponds to "Total CTR" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + CTR = 3; + + // Number of bids received for a deal. + // + // + // + // Corresponds to "Deals bids" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + DEALS_BIDS = 542; + + // Bid rate for a deal. + // + // + // + // Corresponds to "Deals bid rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + DEALS_BID_RATE = 543; + + // Number of bid requests sent for a deal. + // + // + // + // Corresponds to "Deals bid requests" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + DEALS_BID_REQUESTS = 544; + + // Number of winning bids for a deal. + // + // + // + // Corresponds to "Deals winning bids" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + DEALS_WINNING_BIDS = 545; + + // Bid win rate for a deal. + // + // + // + // Corresponds to "Deals win rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + DEALS_WIN_RATE = 546; + + // Percent of dom load time to 1st ad request in [0, 500ms) range. + // + // + // + // Corresponds to "Page navigation to first ad request time 0 - 500ms (%)" + // in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 521; + + // Percent of dom load time to 1st ad request in [1000ms, 2000ms) range. + // + // + // + // Corresponds to "Page navigation to first ad request time 1s - 2s (%)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 522; + + // Percent of dom load time to 1st ad request in [2000ms, 4000ms) range. + // + // + // + // Corresponds to "Page navigation to first ad request time 2s - 4s (%)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 523; + + // Percent of dom load time to 1st ad request in [4000ms, 8000ms) range. + // + // + // + // Corresponds to "Page navigation to first ad request time 4s - 8s (%)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 524; + + // Percent of dom load time to 1st ad request in [500ms, 1000ms) range. + // + // + // + // Corresponds to "Page navigation to first ad request time 500ms - 1s (%)" + // in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 525; + + // Percent of dom load time to 1st ad request in [8000ms, +inf) range. + // + // + // + // Corresponds to "Page navigation to first ad request time >8s (%)" in the + // Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 520; + + // Percent of dom load time to tag load time in [0, 500ms) range. + // + // + // + // Corresponds to "Page navigation to tag loaded time 0 - 500ms (%)" in the + // Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT = 526; + + // Percent of dom load time to tag load time in [1000ms, 2000ms) range. + // + // + // + // Corresponds to "Page navigation to tag loaded time 1s - 2s (%)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT = 527; + + // Percent of dom load time to tag load time in [2000ms, 4000ms) range. + // + // + // + // Corresponds to "Page navigation to tag loaded time 2s - 4s (%)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT = 528; + + // Percent of dom load time to tag load time in [4000ms, 8000ms) range. + // + // + // + // Corresponds to "Page navigation to tag loaded time 4s - 8s (%)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT = 529; + + // Percent of dom load time to tag load time in [500ms, 1000ms) range. + // + // + // + // Corresponds to "Page navigation to tag loaded time 500ms - 1s (%)" in the + // Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT = 531; + + // Percent of dom load time to tag load time in [8000ms, +inf) range. + // + // + // + // Corresponds to "Page navigation to tag loaded time >8s (%)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT = 530; + + // Percentage of ad responses that didn't result in an impression. + // + // + // + // Corresponds to "Drop-off rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + DROPOFF_RATE = 415; + + // Engaged session count from Google Analytics. + // + // + // + // Corresponds to "Engaged sessions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + ENGAGED_SESSIONS = 229; + + // Engaged sessions per user from Google Analytics. + // + // + // + // Corresponds to "Engaged sessions per user" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + ENGAGED_SESSIONS_PER_USER = 230; + + // The ratio of engaged sessions to sessions. + // + // + // + // Corresponds to "Engagement rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + ENGAGEMENT_RATE = 426; + + // Percentage of European regulations messages where the user consented to + // all of the purposes and vendors. + // + // + // + // Corresponds to "European regulations consent rate" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `PERCENT` + EUROPEAN_REGULATIONS_CONSENT_RATE = 270; + + // Percentage of European regulations messages where users made a consent + // choice after selecting "Manage options". + // + // + // + // Corresponds to "European regulations custom consent rate" in the Ad + // Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `PERCENT` + EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE = 271; + + // Number of times a European regulations message was shown to users. + // + // + // + // Corresponds to "European regulations messages shown" in the Ad Manager + // UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + EUROPEAN_REGULATIONS_MESSAGES_SHOWN = 272; + + // Percentage of European regulations messages where the user rejected all + // purposes and vendors. + // + // + // + // Corresponds to "European regulations no consent rate" in the Ad Manager + // UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `PERCENT` + EUROPEAN_REGULATIONS_NO_CONSENT_RATE = 273; + + // The rate at which an ad request is filled by the ad server including + // dynamic allocation. + // + // + // + // Corresponds to "Total fill rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + FILL_RATE = 258; + + // The number of clicks joined with Google Analytics data. + // + // + // + // Corresponds to "Google Analytics clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + GOOGLE_ANALYTICS_CLICKS = 231; + + // The click-through rate from Google Analytics data. + // + // + // + // Corresponds to "Google Analytics CTR" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + GOOGLE_ANALYTICS_CTR = 232; + + // The eCPM revenue data from Google Analytics. + // + // + // + // Corresponds to "Google Analytics eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + GOOGLE_ANALYTICS_ECPM = 233; + + // The number of impressions joined with Google Analytics data. + // + // + // + // Corresponds to "Google Analytics impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + GOOGLE_ANALYTICS_IMPRESSIONS = 234; + + // The amount of revenue joined with Google Analytics data. + // + // + // + // Corresponds to "Google Analytics revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + GOOGLE_ANALYTICS_REVENUE = 235; + + // Number of views of a web site or mobile screen from Google Analytics. + // + // + // + // Corresponds to "Views" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + GOOGLE_ANALYTICS_VIEWS = 236; + + // Number of views per user from Google Analytics. + // + // + // + // Corresponds to "Views per user" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + GOOGLE_ANALYTICS_VIEWS_PER_USER = 237; + + // The number of coviewed impressions sold by Google in partner sales. + // + // + // + // Corresponds to "Google-sold auction impressions (co-viewed)" in the Ad + // Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; + + // The number of auction impressions sold by Google in partner sales. + // + // + // + // Corresponds to "Google-sold auction impressions" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; + + // The number of coviewed impressions sold by Google in partner sales. + // + // + // + // Corresponds to "Google-sold impressions (co-viewed)" in the Ad Manager + // UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; + + // The number of impressions sold by Google in partner sales. + // + // + // + // Corresponds to "Google-sold impressions" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + GOOGLE_SOLD_IMPRESSIONS = 130; + + // The number of coviewed impressions sold by Google in partner sales. + // + // + // + // Corresponds to "Google-sold reservation impressions (co-viewed)" in the + // Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; + + // The number of reservation impressions sold by Google in partner sales. + // + // + // + // Corresponds to "Google-sold reservation impressions" in the Ad Manager + // UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; + + // Total impressions from the Google Ad Manager server, AdSense, + // Ad Exchange, and yield group partners. + // + // + // + // Corresponds to "Total impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + IMPRESSIONS = 1; + + // The number of impressions (via begin to render methodology) considered + // inactive, as defined by served to a device receiving ad or bid requests + // continuously for a session of greater than 16 hours without a "reset" + // event. Only applied to CTV ads. + // + // + // + // Corresponds to "Inactive begin to render impressions" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 407; + + // The total number of inventory shares + // + // + // + // Corresponds to "Inventory shares" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + INVENTORY_SHARES = 547; + + // The total number of partner unfilled opportunities from an inventory + // share + // + // + // + // Corresponds to "Inventory share partner unfilled opportunities" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES = 548; + + // The number of invoiced impressions. + // + // + // + // Corresponds to "Invoiced impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + INVOICED_IMPRESSIONS = 404; + + // The number of invoiced unfilled impressions. + // + // + // + // Corresponds to "Invoiced unfilled impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + INVOICED_UNFILLED_IMPRESSIONS = 405; + + // The number of mediation chains that were filled. + // + // + // + // Corresponds to "Mediation chains filled" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + MEDIATION_CHAINS_FILLED = 584; + + // The number of impressions where the user chose to mute the ad. + // + // + // + // Corresponds to "Total muted impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + MUTED_IMPRESSIONS = 412; + + // The number of impressions that had the "Mute This Ad" overlay applied. + // + // + // + // Corresponds to "Total mute eligible impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + MUTE_ELIGIBLE_IMPRESSIONS = 409; + + // The total number of opportunities from impressions and errors. + // + // + // + // Corresponds to "Total opportunities" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + OPPORTUNITIES = 463; + + // The number of impressions that were overdelivered. + // + // + // + // Corresponds to "Total overdelivered impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + OVERDELIVERED_IMPRESSIONS = 432; + + // The number of filled pod requests (filled by partner or Google) in + // partner sales. + // + // + // + // Corresponds to "Filled pod requests" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + PARTNER_SALES_FILLED_POD_REQUESTS = 135; + + // The percent of filled requests to total ad requests in + // partner sales. + // + // + // + // Corresponds to "Fill rate" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `PERCENT` + PARTNER_SALES_FILL_RATE = 136; + + // The percent of partner filled requests to total ad requests + // in partner sales. + // + // + // + // Corresponds to "Partner match rate" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `PERCENT` + PARTNER_SALES_PARTNER_MATCH_RATE = 137; + + // The number of queries eligible for partner sales. + // + // + // + // Corresponds to "Total partner sales ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + PARTNER_SALES_QUERIES = 132; + + // The number of partner unfilled impressions in partner sales. + // If a pod request is not filled by partner but filled by Google, this + // metric will still count 1. + // + // + // + // Corresponds to "Partner unfilled impressions" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; + + // The number of partner unmatched queries in partner sales. + // If an ad request is not filled by partner but filled by Google, this + // metric will still count 1. + // + // + // + // Corresponds to "Partner unmatched ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + PARTNER_SALES_UNMATCHED_QUERIES = 134; + + // The number of code served sold by partner in partner sales. + // + // + // + // Corresponds to "Partner-sold code served count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + PARTNER_SOLD_CODE_SERVED = 125; + + // The number of coviewed impressions sold by partner in partner sales. + // + // + // + // Corresponds to "Partner-sold impressions (co-viewed)" in the Ad Manager + // UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; + + // The number of impressions sold by partner in partner sales. + // + // + // + // Corresponds to "Partner-sold impressions" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + PARTNER_SOLD_IMPRESSIONS = 123; + + // The total number of ad requests eligible for programmatic inventory, + // including Programmatic Guaranteed, Preferred Deals, backfill, and open + // auction. + // + // + // + // Corresponds to "Programmatic eligible ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; + + // The number of programmatic responses served divided by the number of + // programmatic eligible ad requests. Includes Ad Exchange, Open Bidding, + // and Preferred Deals. + // + // + // + // Corresponds to "Programmatic match rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + PROGRAMMATIC_MATCH_RATE = 178; + + // Total number of ad responses served from programmatic demand sources. + // Includes Ad Exchange, Open Bidding, and Preferred Deals. + // + // Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open + // Bidding ad requests. + // + // + // + // Corresponds to "Programmatic responses served" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PROGRAMMATIC_RESPONSES_SERVED = 176; + + // Number of impressions for reach reports. + // + // + // + // Corresponds to "Total reach impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `REACH` + // + // Data format: `INTEGER` + REACH_IMPRESSIONS = 416; + + // The total number of times that an ad is served by the ad server including + // dynamic allocation. + // + // + // + // Corresponds to "Total responses served" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RESPONSES_SERVED = 39; + + // Retention of users in Google Analytics + // + // + // + // Corresponds to "Retention" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + RETENTION = 238; + + // Total amount of CPM, CPC, and CPD revenue based on the number of units + // served by the Google Ad Manager server, AdSense, Ad Exchange, and + // third-party Mediation networks. + // + // + // + // Corresponds to "Total revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + REVENUE = 36; + + // The total revenue accrued in the child network's own account but paid to + // their parent network through auto-payment. This metric is only relevant + // for a "Manage Account" child network. + // + // + // + // Corresponds to "Total revenue paid through MCM auto-payment" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 214; + + // Total amount of revenue (excluding CPD) based on the number of units + // served by the Google Ad Manager server, AdSense, Ad Exchange, and + // third-party Mediation networks. + // + // + // + // Corresponds to "Total CPM and CPC revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + REVENUE_WITHOUT_CPD = 4; + + // The number of rewards granted to users from watching ads. + // + // + // + // Corresponds to "Total rewards granted" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + REWARDS_GRANTED = 413; + + // The average amount of time (in seconds) that each rich media ad is + // displayed to users. + // + // + // + // Corresponds to "Average display time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + RICH_MEDIA_AVERAGE_DISPLAY_TIME = 587; + + // The average amount of time (in seconds) that a user interacts with a rich + // media ad. + // + // + // + // Corresponds to "Average interaction time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + RICH_MEDIA_AVERAGE_INTERACTION_TIME = 588; + + // The total number of times a backup image is served in place of a rich + // media ad. + // + // + // + // Corresponds to "Backup image impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_BACKUP_IMAGES = 589; + + // The number of times a user interacts with a specific part of a rich media + // ad. + // + // + // + // Corresponds to "Custom event - count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_CUSTOM_EVENT_COUNT = 599; + + // The amount of time (in seconds) that a user interacts with a specific + // part of a rich media ad. + // + // + // + // Corresponds to "Custom event - time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + RICH_MEDIA_CUSTOM_EVENT_TIME = 600; + + // The amount of time (in seconds) that each rich media ad is displayed to + // users. + // + // + // + // Corresponds to "Total display time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + RICH_MEDIA_DISPLAY_TIME = 590; + + // The average amount of time (in seconds) that an expanding ad is viewed in + // an expanded state. + // + // + // + // Corresponds to "Average expanding time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + RICH_MEDIA_EXPANDING_TIME = 591; + + // The number of times an expanding ad was expanded. + // + // + // + // Corresponds to "Total expansions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_EXPANSIONS = 592; + + // The number of times a user opens a rich media ad in full screen mode. + // + // + // + // Corresponds to "Full-screen impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_FULL_SCREEN_IMPRESSIONS = 593; + + // The number of times that a user interacts with a rich media ad. + // + // + // + // Corresponds to "Total interactions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_INTERACTION_COUNT = 594; + + // The ratio of rich media ad interactions to the number of times the ad + // was displayed. + // + // + // + // Corresponds to "Interaction rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + RICH_MEDIA_INTERACTION_RATE = 595; + + // The total amount of time (in seconds) that a user interacts with a rich + // media ad. + // + // + // + // Corresponds to "Interaction time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + RICH_MEDIA_INTERACTION_TIME = 596; + + // The number of impressions where a user interacted with a rich media ad. + // + // + // + // Corresponds to "Interactive impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_INTERACTIVE_IMPRESSIONS = 597; + + // The number of times that a user manually closes a rich media ad. + // + // + // + // Corresponds to "Manual closes" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_MANUAL_CLOSES = 598; + + // The number of times a rich media video was fully played. + // + // + // + // Corresponds to "Rich media video completes" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_VIDEO_COMPLETES = 503; + + // The number of times a user clicked on the graphical controls of a video + // player. + // + // + // + // Corresponds to "Rich media total video interactions" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_VIDEO_INTERACTIONS = 505; + + // The ratio of video interactions to video plays. Represented as a + // percentage. + // + // + // + // Corresponds to "Rich media video interaction rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + RICH_MEDIA_VIDEO_INTERACTION_RATE = 504; + + // The number of times a rich media video was played up to midpoint. + // + // + // + // Corresponds to "Rich media video midpoints" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_VIDEO_MIDPOINTS = 506; + + // The number of times a rich media video was muted. + // + // + // + // Corresponds to "Rich media video mutes" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_VIDEO_MUTES = 507; + + // The number of times a rich media video was paused. + // + // + // + // Corresponds to "Rich media video pauses" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_VIDEO_PAUSES = 508; + + // The number of times a rich media video was played. + // + // + // + // Corresponds to "Rich media video plays" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_VIDEO_PLAYS = 509; + + // The number of times a rich media video was restarted. + // + // + // + // Corresponds to "Rich media video replays" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_VIDEO_REPLAYS = 510; + + // The number of times a rich media video was stopped. + // + // + // + // Corresponds to "Rich media video stops" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_VIDEO_STOPS = 511; + + // The number of times a rich media video was unmuted. + // + // + // + // Corresponds to "Rich media video unmutes" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + RICH_MEDIA_VIDEO_UNMUTES = 512; + + // The percentage of a video watched by a user. + // + // + // + // Corresponds to "Rich media video view rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + RICH_MEDIA_VIDEO_VIEW_RATE = 513; + + // The average amount of time(seconds) that a rich media video was viewed + // per view. + // + // + // + // Corresponds to "Rich media video average view time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + RICH_MEDIA_VIDEO_VIEW_TIME = 514; + + // The number of forecasted impressions not reserved by any line item. + // + // + // + // Corresponds to "Available impressions" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + SELL_THROUGH_AVAILABLE_IMPRESSIONS = 477; + + // The total number of forecasted impressions. + // + // + // + // Corresponds to "Forecasted impressions" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + SELL_THROUGH_FORECASTED_IMPRESSIONS = 478; + + // The number of forecasted impressions reserved by line items. + // + // + // + // Corresponds to "Reserved impressions" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + SELL_THROUGH_RESERVED_IMPRESSIONS = 479; + + // The fraction of forecasted impressions reserved by line items. + // + // + // + // Corresponds to "Sell-through rate" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `PERCENT` + SELL_THROUGH_SELL_THROUGH_RATE = 480; + + // The average latency in milliseconds across all server-side unwrapping + // callout requests. There is no special handling for error or timeout + // responses. This reflects the entire chain of a parent callout request, + // which may result in multiple child callouts. This metric is not sliced + // by child callout dimensions. + // + // + // + // Corresponds to "Server-side unwrapping average latency (milliseconds)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; + + // The total number of server-side unwrapping callout requests. + // + // + // + // Corresponds to "Server-side unwrapping callouts" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; + + // The total number of server-side unwrapping callouts that returned an + // empty response. Timeouts are not considered empty responses. + // + // + // + // Corresponds to "Server-side unwrapping empty responses" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; + + // The total number of server-side unwrapping callouts that returned an + // error response. Timeouts and empty responses are not considered errors. + // + // + // + // Corresponds to "Server-side unwrapping error responses" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; + + // The total number of successfully unwrapped, non-empty server-side + // wrapping callouts. Successful unwrapping does not indicate that the + // resulting creative was served. + // + // + // + // Corresponds to "Server-side unwrapping successful responses" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; + + // The total number of server-side unwrapping callouts that timed out before + // returning a response. + // + // + // + // Corresponds to "Server-side unwrapping timeouts" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; + + // Count of sessions from Google Analytics. + // + // + // + // Corresponds to "Sessions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + SESSIONS = 239; + + // Percent of tag load time to 1st ad request in [0, 500ms) range. + // + // + // + // Corresponds to "Tag loaded to first ad request time 0 - 500ms (%)" in the + // Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 455; + + // Percent of tag load time to 1st ad request in [1000ms, 2000ms) range. + // + // + // + // Corresponds to "Tag loaded to first ad request time 1s - 2s (%)" in the + // Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 457; + + // Percent of tag load time to 1st ad request in [2000ms, 4000ms) range. + // + // + // + // Corresponds to "Tag loaded to first ad request time 2s - 4s (%)" in the + // Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 458; + + // Percent of tag load time to 1st ad request in [4000ms, 8000ms) range. + // + // + // + // Corresponds to "Tag loaded to first ad request time 4s - 8s (%)" in the + // Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 459; + + // Percent of tag load time to 1st ad request in [500ms, 1000ms) range. + // + // + // + // Corresponds to "Tag loaded to first ad request time 500ms - 1s (%)" in + // the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 456; + + // Percent of tag load time to 1st ad request in [8000ms, +inf) range. + // + // + // + // Corresponds to "Tag loaded to first ad request time >8s (%)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 460; + + // The total number of clicks delivered including line item-level dynamic + // allocation by explicit custom criteria targeting. + // + // + // + // Corresponds to "Total targeted clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + TARGETED_CLICKS = 276; + + // The total number of impressions delivered including line item-level + // dynamic allocation by explicit custom criteria targeting. + // + // + // + // Corresponds to "Total targeted impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + TARGETED_IMPRESSIONS = 277; + + // The total number of missed impressions due to the ad servers' inability + // to find ads to serve including dynamic allocation. + // + // + // + // Corresponds to "Unfilled impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + UNFILLED_IMPRESSIONS = 45; + + // The total number of unique users who viewed the ad. + // + // + // + // Corresponds to "Total unique visitors" in the Ad Manager UI. + // + // Compatible with the following report types: `REACH` + // + // Data format: `INTEGER` + UNIQUE_VISITORS = 417; + + // The number of impressions impacted by Chrome Ads Intervention due to CPU + // usage. + // + // + // + // Corresponds to "Total unloaded impressions due to CPU" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + UNLOADED_IMPRESSIONS_DUE_TO_CPU = 408; + + // The number of impressions impacted by Chrome Ads Intervention due to + // network usage. + // + // + // + // Corresponds to "Total unloaded impressions due to Network" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + UNLOADED_IMPRESSIONS_DUE_TO_NETWORK = 406; + + // The total number of times that an ad is not returned by the ad server. + // + // + // + // Corresponds to "Total unmatched ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + UNMATCHED_AD_REQUESTS = 43; + + // The percentage of unviewed impressions due to other reasons. + // + // + // + // Corresponds to "Other non-viewable impression reasons (%)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + UNVIEWED_REASON_OTHER_PERCENT = 550; + + // The percentage of unviewed impressions due to slot never entered + // viewport. + // + // + // + // Corresponds to "Slot never entered viewport (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT = 553; + + // The percentage of unviewed impressions due to scrolled past before ad + // filled. + // + // + // + // Corresponds to "User scrolled before ad filled (%)" in the Ad Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT = 551; + + // The percentage of unviewed impressions due to scrolled past before ad + // loaded. + // + // + // + // Corresponds to "User scrolled/navigated before ad loaded (%)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT = 552; + + // The percentage of unviewed impressions due to insufficient time on + // screen. + // + // + // + // Corresponds to "User scrolled/navigated before 1 second (%)" in the Ad + // Manager UI. + // + // Compatible with the following report types: `AD_SPEED` + // + // Data format: `PERCENT` + UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT = 549; + + // Time of users interacting with web site or mobile app from Google + // Analytics in seconds. + // + // + // + // Corresponds to "User engagement duration (seconds)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + USER_ENGAGEMENT_DURATION_IN_SECONDS = 240; + + // Fraction of page views where users had ad blocker extensions installed. + // Includes only Desktop page views. + // + // + // + // Corresponds to "Ad blocking extension rate" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `PERCENT` + USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE = 486; + + // Number of ad-blocking messages shown in the selected date range that + // resulted in users adding the site to their allowlist to view ads + // + // + // + // Corresponds to "Ad blocking recovery message conversions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT = 487; + + // Number of times an ad blocking recovery message was shown to users. + // + // + // + // Corresponds to "Ad blocking recovery messages shown" in the Ad Manager + // UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN = 488; + + // The number of page views generated by users with an ad blocking extension + // installed who were shown the ad blocking recovery message and later + // allowed ads. + // + // + // + // Corresponds to "Allow-ads page views" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_ALLOW_ADS_PAGEVIEWS = 489; + + // Number of times a US state regulations message was shown to users. + // + // + // + // Corresponds to "US states messages shown" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_CCPA_MESSAGES_SHOWN = 490; + + // Number of iOS ATT alerts that were triggered by an IDFA message (IDFA + // messages can be IDFA explainers or GDPR messages). + // + // + // + // Corresponds to "IDFA ATT alerts shown" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN = 491; + + // Number of iOS ATT alerts triggered by the IDFA message where the user + // chose to allow tracking. + // + // + // + // Corresponds to "IDFA ATT consent" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_IDFA_ATT_CONSENT = 492; + + // Percentage of iOS ATT alerts triggered by the IDFA message where the + // outcome was to allow tracking. + // + // + // + // Corresponds to "IDFA ATT consent rate" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `PERCENT` + USER_MESSAGES_IDFA_ATT_CONSENT_RATE = 493; + + // Number of iOS ATT alerts triggered by the IDFA message where the user + // chose to deny tracking. + // + // + // + // Corresponds to "IDFA ATT decline consent" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT = 494; + + // Percentage of iOS ATT alerts triggered by the IDFA message where the user + // chose to deny tracking. + // + // + // + // Corresponds to "IDFA ATT decline rate" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `PERCENT` + USER_MESSAGES_IDFA_ATT_DECLINE_RATE = 495; + + // Number of times an IDFA explainer message was shown to users. + // + // + // + // Corresponds to "IDFA explainers shown" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_IDFA_EXPLAINERS_SHOWN = 496; + + // Number of times a European regulations message was shown immediately + // before the iOS ATT alert. + // + // + // + // Corresponds to "IDFA IAB messages shown" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN = 497; + + // Number of IDFA explainer messages where the user didn't choose anything. + // + // + // + // Corresponds to "IDFA no decision" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_IDFA_NO_DECISION = 498; + + // Number of times an Offerwall message was shown to users. + // + // + // + // Corresponds to "Offerwall messages shown" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; + + // The number of messages where the user gained an entitlement. + // + // + // + // Corresponds to "Monetized Offerwall engagements" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; + + // The number of pages viewed by users after gaining an entitlement. Only + // counts pages included for Offerwall. + // + // + // + // Corresponds to "Post-offerwall page views" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS = 499; + + // Revenue earned through Offerwall, including Rewarded ad revenue and + // third-party integrations. + // + // + // + // Corresponds to "Estimated Offerwall revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `MONEY` + USER_MESSAGES_TOTAL_ESTIMATED_REVENUE = 500; + + // Number of times an ads personalization controls message was shown to + // users. + // + // + // + // Corresponds to "Ads personalization messages shown" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_UPTC_MESSAGES_SHOWN = 501; + + // Percentage of ads personalization controls messages where users chose the + // opt-out option. + // + // + // + // Corresponds to "Personalization opt-out ratio" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `PERCENT` + USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO = 502; + + // The number of errors of type 100 in reporting. + // + // + // + // Corresponds to "VAST error 100 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_100_COUNT = 180; + + // The number of errors of type 101 in reporting. + // + // + // + // Corresponds to "VAST error 101 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_101_COUNT = 181; + + // The number of errors of type 102 in reporting. + // + // + // + // Corresponds to "VAST error 102 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_102_COUNT = 182; + + // The number of errors of type 200 in reporting. + // + // + // + // Corresponds to "VAST error 200 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_200_COUNT = 183; + + // The number of errors of type 201 in reporting. + // + // + // + // Corresponds to "VAST error 201 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_201_COUNT = 184; + + // The number of errors of type 202 in reporting. + // + // + // + // Corresponds to "VAST error 202 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_202_COUNT = 185; + + // The number of errors of type 203 in reporting. + // + // + // + // Corresponds to "VAST error 203 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_203_COUNT = 186; + + // The number of errors of type 300 in reporting. + // + // + // + // Corresponds to "VAST error 300 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_300_COUNT = 187; + + // The number of errors of type 301 in reporting. + // + // + // + // Corresponds to "VAST error 301 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_301_COUNT = 188; + + // The number of errors of type 302 in reporting. + // + // + // + // Corresponds to "VAST error 302 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_302_COUNT = 189; + + // The number of errors of type 303 in reporting. + // + // + // + // Corresponds to "VAST error 303 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_303_COUNT = 190; + + // The number of errors of type 400 in reporting. + // + // + // + // Corresponds to "VAST error 400 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_400_COUNT = 191; + + // The number of errors of type 401 in reporting. + // + // + // + // Corresponds to "VAST error 401 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_401_COUNT = 192; + + // The number of errors of type 402 in reporting. + // + // + // + // Corresponds to "VAST error 402 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_402_COUNT = 193; + + // The number of errors of type 403 in reporting. + // + // + // + // Corresponds to "VAST error 403 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_403_COUNT = 194; + + // The number of errors of type 405 in reporting. + // + // + // + // Corresponds to "VAST error 405 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_405_COUNT = 195; + + // The number of errors of type 406 in reporting. + // + // + // + // Corresponds to "VAST error 406 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_406_COUNT = 196; + + // The number of errors of type 407 in reporting. + // + // + // + // Corresponds to "VAST error 407 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_407_COUNT = 197; + + // The number of errors of type 408 in reporting. + // + // + // + // Corresponds to "VAST error 408 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_408_COUNT = 198; + + // The number of errors of type 409 in reporting. + // + // + // + // Corresponds to "VAST error 409 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_409_COUNT = 199; + + // The number of errors of type 410 in reporting. + // + // + // + // Corresponds to "VAST error 410 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_410_COUNT = 200; + + // The number of errors of type 500 in reporting. + // + // + // + // Corresponds to "VAST error 500 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_500_COUNT = 201; + + // The number of errors of type 501 in reporting. + // + // + // + // Corresponds to "VAST error 501 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_501_COUNT = 202; + + // The number of errors of type 502 in reporting. + // + // + // + // Corresponds to "VAST error 502 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_502_COUNT = 203; + + // The number of errors of type 503 in reporting. + // + // + // + // Corresponds to "VAST error 503 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_503_COUNT = 204; + + // The number of errors of type 600 in reporting. + // + // + // + // Corresponds to "VAST error 600 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_600_COUNT = 205; + + // The number of errors of type 601 in reporting. + // + // + // + // Corresponds to "VAST error 601 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_601_COUNT = 206; + + // The number of errors of type 602 in reporting. + // + // + // + // Corresponds to "VAST error 602 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_602_COUNT = 207; + + // The number of errors of type 603 in reporting. + // + // + // + // Corresponds to "VAST error 603 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_603_COUNT = 208; + + // The number of errors of type 604 in reporting. + // + // + // + // Corresponds to "VAST error 604 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_604_COUNT = 209; + + // The number of errors of type 900 in reporting. + // + // + // + // Corresponds to "VAST error 900 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_900_COUNT = 210; + + // The number of errors of type 901 in reporting. + // + // + // + // Corresponds to "VAST error 901 count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_ERROR_901_COUNT = 211; + + // The number of user interactions with a video, on average, such as pause, + // full screen, mute, etc. + // + // + // + // Corresponds to "Average interaction rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; + + // The number of times a user collapses a video, either to its original size + // or to a different size. + // + // + // + // Corresponds to "Collapses" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_INTERACTION_COLLAPSES = 93; + + // The number of times a user expands a video. + // + // + // + // Corresponds to "Expands" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_INTERACTION_EXPANDS = 95; + + // The number of times ad clip played in full screen mode. + // + // + // + // Corresponds to "Full screens" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_INTERACTION_FULL_SCREENS = 96; + + // The number of times video player was in mute state during play of ad + // clip. + // + // + // + // Corresponds to "Mutes" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_INTERACTION_MUTES = 97; + + // The number of times user paused ad clip. + // + // + // + // Corresponds to "Pauses" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_INTERACTION_PAUSES = 98; + + // The number of times the user unpaused the video. + // + // + // + // Corresponds to "Resumes" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_INTERACTION_RESUMES = 99; + + // The number of times a user rewinds the video. + // + // + // + // Corresponds to "Rewinds" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_INTERACTION_REWINDS = 100; + + // The number of times a user unmutes the video. + // + // + // + // Corresponds to "Unmutes" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_INTERACTION_UNMUTES = 101; + + // The number of times a skippable video is skipped. + // + // + // + // Corresponds to "Skips" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_INTERACTION_VIDEO_SKIPS = 102; + + // The number of views for monetizable video content. + // + // + // + // Corresponds to "Monetizable content views" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_MONETIZABLE_CONTENT_VIEWS = 601; + + // The number of total creative serves in video realtime reporting. + // + // + // + // Corresponds to "Total creative serves" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_CREATIVE_SERVES = 139; + + // The number of errors of type 100 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 100 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_100_COUNT = 143; + + // The number of errors of type 101 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 101 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_101_COUNT = 144; + + // The number of errors of type 102 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 102 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_102_COUNT = 145; + + // The number of errors of type 200 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 200 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_200_COUNT = 146; + + // The number of errors of type 201 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 201 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_201_COUNT = 147; + + // The number of errors of type 202 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 202 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_202_COUNT = 148; + + // The number of errors of type 203 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 203 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_203_COUNT = 149; + + // The number of errors of type 300 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 300 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_300_COUNT = 150; + + // The number of errors of type 301 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 301 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_301_COUNT = 151; + + // The number of errors of type 302 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 302 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_302_COUNT = 152; + + // The number of errors of type 303 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 303 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_303_COUNT = 153; + + // The number of errors of type 400 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 400 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_400_COUNT = 154; + + // The number of errors of type 401 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 401 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_401_COUNT = 155; + + // The number of errors of type 402 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 402 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_402_COUNT = 156; + + // The number of errors of type 403 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 403 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_403_COUNT = 157; + + // The number of errors of type 405 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 405 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_405_COUNT = 158; + + // The number of errors of type 406 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 406 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_406_COUNT = 159; + + // The number of errors of type 407 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 407 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_407_COUNT = 160; + + // The number of errors of type 408 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 408 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_408_COUNT = 161; + + // The number of errors of type 409 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 409 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_409_COUNT = 162; + + // The number of errors of type 410 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 410 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_410_COUNT = 163; + + // The number of errors of type 500 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 500 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_500_COUNT = 164; + + // The number of errors of type 501 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 501 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_501_COUNT = 165; + + // The number of errors of type 502 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 502 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_502_COUNT = 166; + + // The number of errors of type 503 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 503 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_503_COUNT = 167; + + // The number of errors of type 600 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 600 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_600_COUNT = 168; + + // The number of errors of type 601 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 601 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_601_COUNT = 169; + + // The number of errors of type 602 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 602 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_602_COUNT = 170; + + // The number of errors of type 603 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 603 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_603_COUNT = 171; + + // The number of errors of type 604 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 604 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_604_COUNT = 172; + + // The number of errors of type 900 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 900 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_900_COUNT = 173; + + // The number of errors of type 901 in video realtime reporting. + // + // + // + // Corresponds to "VAST error 901 count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_ERROR_901_COUNT = 174; + + // The number of total impressions in video realtime reporting. + // + // + // + // Corresponds to "Total impressions" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_IMPRESSIONS = 138; + + // The number of matched queries in video realtime reporting. + // + // + // + // Corresponds to "Total responses served" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_MATCHED_QUERIES = 140; + + // The number of all errors in video realtime reporting. + // + // + // + // Corresponds to "Total error count" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; + + // The number of total queries in video realtime reporting. + // + // + // + // Corresponds to "Total ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_TOTAL_QUERIES = 142; + + // The number of unmatched queries in video realtime reporting. + // + // + // + // Corresponds to "Total unmatched ad requests" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `INTEGER` + VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; + + // Number of times that the publisher specified a video ad played + // automatically. + // + // + // + // Corresponds to "Auto-plays" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; + + // Average percentage of the video watched by users. + // + // + // + // Corresponds to "Average view rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; + + // Average time(seconds) users watched the video. + // + // + // + // Corresponds to "Average view time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; + + // Number of times that the publisher specified a video ad was clicked to + // play. + // + // + // + // Corresponds to "Click-to-plays" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; + + // The number of times the video played to completion. + // + // + // + // Corresponds to "Completes" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_COMPLETES = 107; + + // Percentage of times the video played to the end. + // + // + // + // Corresponds to "Completion rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; + + // The number of engaged views: ad is viewed to completion or for 30s, + // whichever comes first. + // + // + // + // Corresponds to "Engaged views" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; + + // The number of times the video played to 25% of its length. + // + // + // + // Corresponds to "First quartiles" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; + + // The number of times the video reached its midpoint during play. + // + // + // + // Corresponds to "Midpoints" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_MIDPOINTS = 111; + + // The number of times a skip button is shown in video. + // + // + // + // Corresponds to "Skip buttons shown" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; + + // The number of impressions where the video was played. + // + // + // + // Corresponds to "Starts" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_STARTS = 113; + + // The number of times the video played to 75% of its length. + // + // + // + // Corresponds to "Third quartiles" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; + + // The number of times an error occurred, such as a VAST redirect error, a + // video playback error, or an invalid response error. + // + // + // + // Corresponds to "Total error count" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; + + // The percentage of video error count. + // + // + // + // Corresponds to "Total error rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; + + // Duration of the video creative. + // + // + // + // Corresponds to "Video length" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; + + // View-through rate represented as a percentage. + // + // + // + // Corresponds to "Video view through rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; + + // Number of winning bids received from Open Bidding buyers, even when the + // winning bid is placed at the end of a mediation for mobile apps chain. + // + // + // + // Corresponds to "Yield group auctions won" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + YIELD_GROUP_AUCTIONS_WON = 80; + + // Number of bids received from Open Bidding buyers, regardless of whether + // the returned bid competes in an auction. + // + // + // + // Corresponds to "Yield group bids" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + YIELD_GROUP_BIDS = 81; + + // Number of bids received from Open Bidding buyers that competed in + // the auction. + // + // + // + // Corresponds to "Yield group bids in auction" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + YIELD_GROUP_BIDS_IN_AUCTION = 82; + + // Number of times a yield partner is asked to return bid to fill + // a yield group request. + // + // + // + // Corresponds to "Yield group callouts" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + YIELD_GROUP_CALLOUTS = 83; + + // The estimated net rate for yield groups or individual + // yield group partners. + // + // + // + // Corresponds to "Yield group estimated CPM" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + YIELD_GROUP_ESTIMATED_CPM = 88; + + // Total net revenue earned by a yield group, based upon the yield group + // estimated CPM and yield group impressions recorded. + // + // + // + // Corresponds to "Yield group estimated revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + YIELD_GROUP_ESTIMATED_REVENUE = 87; + + // Number of matched yield group requests where a yield partner delivered + // their ad to publisher inventory. + // + // + // + // Corresponds to "Yield group impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + YIELD_GROUP_IMPRESSIONS = 85; + + // Yield group Mediation fill rate indicating how often a network + // fills an ad request. + // + // + // + // Corresponds to "Yield group mediation fill rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + YIELD_GROUP_MEDIATION_FILL_RATE = 89; + + // Total requests where a Mediation chain was served. + // + // + // + // Corresponds to "Yield group mediation matched queries" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; + + // The number of mediation chain passback across all channels. + // + // + // + // Corresponds to "Yield group mediation passbacks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + YIELD_GROUP_MEDIATION_PASSBACKS = 118; + + // Revenue per thousand impressions based on data collected by Ad Manager + // from third-party ad network reports. + // + // + // + // Corresponds to "Yield group mediation third party ECPM" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `DOUBLE` + YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; + + // The yield group revenue accrued in the child network's own account but + // paid to their parent network through auto-payment. This metric is only + // relevant for a "Manage Account" child network. + // + // + // + // Corresponds to "Yield group revenue paid through MCM auto-payment" in the + // Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 215; + + // Number of times a yield group buyer successfully returned a bid in + // response to a yield group callout. + // + // + // + // Corresponds to "Yield group successful responses" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; + } + + // Valid time period columns. + enum TimePeriodColumn { + // Default value. Report will have no time period column. + TIME_PERIOD_COLUMN_UNSPECIFIED = 0; + + // A column for each date in the report. + TIME_PERIOD_COLUMN_DATE = 1; + + // A column for each week in the report. + TIME_PERIOD_COLUMN_WEEK = 2; + + // A column for each month in the report. + TIME_PERIOD_COLUMN_MONTH = 3; + + // A column for each quarter in the report. + TIME_PERIOD_COLUMN_QUARTER = 4; + } + + // Possible metric value types to add. + enum MetricValueType { + // The values for the primary date_range. + PRIMARY = 0; + + // Each metrics' percent of the total for the primary date_range. + PRIMARY_PERCENT_OF_TOTAL = 1; + + // The values for the comparison_date_range. + COMPARISON = 2; + + // Each metrics' percent of the total for the comparison_date_range. + COMPARISON_PERCENT_OF_TOTAL = 3; + + // The absolute change between the primary and comparison date ranges. + ABSOLUTE_CHANGE = 4; + + // The relative change between the primary and comparison date ranges. + RELATIVE_CHANGE = 5; + } + + // The source to determine the time zone for the report. + enum TimeZoneSource { + // Unspecified default value. + TIME_ZONE_SOURCE_UNSPECIFIED = 0; + + // Use the publisher's time zone in network settings. + PUBLISHER = 1; + + // Use the time zone of the ad exchange. + // Only compatible with Ad Exchange dimensions and metrics. + AD_EXCHANGE = 2; + + // Use UTC time zone. + // Only compatible with Revenue Verification reports. + UTC = 3; + + // Use the time zone provided in the ReportDefinition.time_zone field. + // Has limited dimension and metric compatibility compared with PUBLISHER, + // and reports may take longer to run since the dates are dynamically + // calculated at request time. + PROVIDED = 4; + } + + // Required. The list of dimensions to report on. If empty, the report will + // have no dimensions, and any metrics will be totals. + repeated Dimension dimensions = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of metrics to report on. If empty, the report will have + // no metrics. + repeated Metric metrics = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The filters for this report. + repeated Filter filters = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Where to get the time zone for this report. Defaults to using the + // network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone + // field in the report definition must also set a time zone. + TimeZoneSource time_zone_source = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If time_zone_source is PROVIDED, this is the time zone to use for + // this report. Leave empty for any other time zone source. Time zone in IANA + // format. For example, "America/New_York". + string time_zone = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ISO 4217 currency code for this report. Defaults to publisher + // currency code if not specified. + string currency_code = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The primary date range of this report. + DateRange date_range = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The comparison date range of this report. If unspecified, the + // report won't have any comparison metrics. + optional DateRange comparison_date_range = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* + // dimensions. The index of this repeated field corresponds to the index on + // each dimension. For example, custom_dimension_key_ids[0] describes + // CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. + repeated int64 custom_dimension_key_ids = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* + // dimensions. The index of this repeated field corresponds to the index on + // each dimension. For example, line_item_custom_field_ids[0] describes + // LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. + repeated int64 line_item_custom_field_ids = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* + // dimensions. The index of this repeated field corresponds to the index on + // each dimension. For example, order_custom_field_ids[0] describes + // ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. + repeated int64 order_custom_field_ids = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* + // dimensions. The index of this repeated field corresponds to the index on + // each dimension. For example, creative_custom_field_ids[0] describes + // CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. + repeated int64 creative_custom_field_ids = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The type of this report. + ReportType report_type = 8 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Include a time period column to introduce comparison columns in + // the report for each generated period. For example, set to "QUARTERS" here + // to have a column for each quarter present in the primary date range. If + // "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter + // column will also include comparison values for its relative previous + // quarter. + TimePeriodColumn time_period_column = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of flags for this report. Used to flag rows in a result set + // based on a set of defined filters. + repeated Flag flags = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Default sorts to apply to this report. + repeated Sort sorts = 15 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto index d75f1e517d89..76f1cd167e65 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package google.ads.admanager.v1; +import "google/ads/admanager/v1/report_definition.proto"; +import "google/ads/admanager/v1/report_value.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; @@ -40,3246 +42,9 @@ message Report { singular: "report" }; - // Represents a single value in a report. - message Value { - // A list of integer values. - message IntList { - // The values - repeated int64 values = 1; - } - - // A list of string values. - message StringList { - // The values - repeated string values = 1; - } - - // The value of the field, depends on the field's data format. - oneof value { - // For integer values. - int64 int_value = 1; - - // For double values. - double double_value = 2; - - // For string values. - string string_value = 3; - - // For boolean values. - bool bool_value = 4; - - // For lists of integer values. - IntList int_list_value = 6; - - // For lists of string values. - StringList string_list_value = 7; - - // For bytes values. - bytes bytes_value = 8; - } - } - - // Represents a sorting in a report. - message Sort { - // Required. A field (dimension or metric) to sort by. - Field field = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The sort order. If true the sort will be descending. - bool descending = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Use to sort on a specific slice of data. - optional Slice slice = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. When using time period columns, use this to sort on a specific - // column. - optional int32 time_period_index = 4 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Use to specify which metric value type to sort on. Defaults to - // PRIMARY. - optional MetricValueType metric_value_type = 5 - [(google.api.field_behavior) = OPTIONAL]; - } - - // A table containing report data including dimension and metric values. - message DataTable { - // A row of report data. - message Row { - // The order of the dimension values is the same as the order of the - // dimensions specified in the request. - repeated Value dimension_values = 1; - - // - // The length of the metric_value_groups - // field will be equal to the length of the date_ranges field in the - // fetch response. The metric_value_groups field is - // ordered such that each index corresponds to the date_range at the same - // index. For example, given date_ranges [x, y], metric_value_groups will - // have a length of two. The first entry in metric_value_groups represents - // the metrics for date x and the second entry in metric_value_groups - // represents the metrics for date y. - repeated MetricValueGroup metric_value_groups = 2; - } - - // Contains all metric values requested for a single date range and set of - // column dimension values (returned in the columns field of the response). - // The order of the metrics in each field corresponds to the order of the - // metrics specified in the request. - message MetricValueGroup { - // Data for the PRIMARY MetricValueType. - repeated Value primary_values = 1; - - // Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. - repeated Value primary_percent_of_total_values = 2; - - // Data for the COMPARISON MetricValueType. - repeated Value comparison_values = 3; - - // Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. - repeated Value comparison_percent_of_total_values = 4; - - // Data for the ABSOLUTE_CHANGE MetricValueType. - repeated Value absolute_change_values = 5; - - // Data for the RELATIVE_CHANGE MetricValueType. - repeated Value relative_change_values = 6; - - // If true, the flag's conditions are met. If false, the flag's - // conditions are not met. flag_values has the same length as - // flags and index i of flag_values represents the flag at index i - // of flags. - repeated bool flag_values = 7; - } - } - - // A dimension or a metric in a report. - message Field { - // Either a dimension or a metric. - oneof field { - // The dimension this field represents. - Dimension dimension = 1; - - // The metric this field represents. - Metric metric = 2; - } - } - - // Use to specify a slice of data. - // - // For example, in a report, to focus on just data from the US, specify - // `COUNTRY_NAME` for dimension and value: `"United States"`. - message Slice { - // Required. The dimension to slice on. - Dimension dimension = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The value of the dimension. - Value value = 2 [(google.api.field_behavior) = REQUIRED]; - } - - // A filter over one or more fields. - message Filter { - // A filter on a specific field. - message FieldFilter { - // Required. The field to filter on. - Field field = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation of this filter. - Operation operation = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. Values to filter to. - repeated Value values = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Use to filter on a specific slice of data. - optional Slice slice = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. When using time period columns, use this to filter on a - // specific column. - optional int32 time_period_index = 5 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Use to specify which metric value type to filter on. Defaults - // to PRIMARY. - optional MetricValueType metric_value_type = 6 - [(google.api.field_behavior) = OPTIONAL]; - } - - // A list of filters. - message FilterList { - // Required. A list of filters. - repeated Filter filters = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // Supported filter operations. - enum Operation { - // For scalar operands, checks if the operand is in the set of provided - // filter values. - // - // For list operands, checks if any element in the operand is in the set - // of provided filter values. - // - // Default value. - IN = 0; - - // For scalar operands, checks that the operand is not in the set of - // provided filter values. - // - // For list operands, checks that none of the elements in the operand - // is in the set of provided filter values. - NOT_IN = 1; - - // For scalar string operands, checks if the operand contains any of the - // provided filter substrings. - // - // For string list operands, checks if any string in the operand contains - // any of the provided filter substrings. - CONTAINS = 2; - - // For scalar string operands, checks that the operand contains none of - // the provided filter substrings. - // - // For string list operands, checks that none of the strings in the - // operand contain none of the provided filter substrings. - NOT_CONTAINS = 3; - - // Operand is less than the provided filter value. - LESS_THAN = 4; - - // Operand is less than or equal to provided filter value. - LESS_THAN_EQUALS = 5; - - // Operand is greater than provided filter value. - GREATER_THAN = 6; - - // Operand is greater than or equal to provided filter value. - GREATER_THAN_EQUALS = 7; - - // Operand is between provided filter values. - BETWEEN = 8; - - // Operand matches against a regex or set of regexes (one must match) - MATCHES = 9; - - // Operand negative matches against a regex or set of regexes (none must - // match) - NOT_MATCHES = 10; - } - - // The type determines how the underlying filters are combined. - oneof type { - // A filter on a single field. - FieldFilter field_filter = 1; - - // A filter whose result is negated. - Filter not_filter = 2; - - // A list of filters whose results are AND-ed. - FilterList and_filter = 3; - - // A list of filters whose results are OR-ed. - FilterList or_filter = 4; - } - } - - // A flag for a report. Flags are used show if certain thresholds are met. - // Result rows that match the filter will have the corresponding - // [MetricValueGroup.flagValues][MetricValueGroup] index set to true. - // For more information about flags see: - // https://support.google.com/admanager/answer/15079975 - message Flag { - // Required. Filters to apply for the flag. - repeated Filter filters = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Name of the flag. - // The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to - // the colored flags that appear in the UI. The UI will not display flags - // with other names, but they are available for use by API clients. - string name = 2 [(google.api.field_behavior) = OPTIONAL]; - } - - // A date range for a report. - message DateRange { - // A date range between two fixed dates (inclusive of end date). - message FixedDateRange { - // Required. The start date of this date range. - google.type.Date start_date = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The end date (inclusive) of this date range. - google.type.Date end_date = 2 [(google.api.field_behavior) = REQUIRED]; - } - - // Options for relative date ranges. - enum RelativeDateRange { - // Default value. This value is unused. - RELATIVE_DATE_RANGE_UNSPECIFIED = 0; - - // The date the report is run. - TODAY = 1; - - // The date a day before the date that the report is run. - YESTERDAY = 2; - - // The full week in which this report is run. Could include dates in - // the future. - THIS_WEEK = 3; - - // From the beginning of the calendar week (Monday to Sunday) in which the - // up to and including the day the report is run. - THIS_WEEK_TO_DATE = 29; - - // The full month in which this report is run. Could include dates in - // the future. - THIS_MONTH = 4; - - // From the beginning of the calendar month in which the report is run, to - // up to and including the day the report is run. - THIS_MONTH_TO_DATE = 26; - - // The full quarter in which this report is run. Could include dates - // in the future. - THIS_QUARTER = 5; - - // From the beginning of the calendar quarter in which the report is run, - // up to and including the day the report is run. - THIS_QUARTER_TO_DATE = 27; - - // The full year in which this report is run. Could include dates in - // the future. - THIS_YEAR = 6; - - // From the beginning of the calendar year in which the report is run, to - // up to and including the day the report is run. - THIS_YEAR_TO_DATE = 28; - - // The entire previous calendar week, Monday to Sunday (inclusive), - // preceding the calendar week the report is run. - LAST_WEEK = 7; - - // The entire previous calendar month preceding the calendar month the - // report is run. - LAST_MONTH = 8; - - // The entire previous calendar quarter preceding the calendar quarter the - // report is run. - LAST_QUARTER = 9; - - // The entire previous calendar year preceding the calendar year the - // report is run. - LAST_YEAR = 10; - - // The 7 days preceding the day the report is run. - LAST_7_DAYS = 11; - - // The 30 days preceding the day the report is run. - LAST_30_DAYS = 12; - - // The 60 days preceding the day the report is run. - LAST_60_DAYS = 13; - - // The 90 days preceding the day the report is run. - LAST_90_DAYS = 14; - - // The 180 days preceding the day the report is run. - LAST_180_DAYS = 15; - - // The 360 days preceding the day the report is run. - LAST_360_DAYS = 16; - - // The 365 days preceding the day the report is run. - LAST_365_DAYS = 17; - - // The entire previous 3 calendar months preceding the calendar month the - // report is run. - LAST_3_MONTHS = 18; - - // The entire previous 6 calendar months preceding the calendar month the - // report is run. - LAST_6_MONTHS = 19; - - // The entire previous 6 calendar months preceding the calendar month the - // report is run. - LAST_12_MONTHS = 20; - - // From 3 years before the report is run, to the day before the report is - // run, inclusive. - ALL_AVAILABLE = 21; - - // Only valid when used in the comparison_date_range field. The complete - // period preceding the date period provided in date_range. - // - // In the case where date_range is a FixedDateRange of N days, this will - // be a period of N days where the end date is the date preceding the - // start date of the date_range. - // - // In the case where date_range is a RelativeDateRange, this will be a - // period of the same time frame preceding the date_range. In the case - // where the date_range does not capture the full period because a report - // is run in the middle of that period, this will still be the full - // preceding period. For example, if date_range is THIS_WEEK, but the - // report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but - // PREVIOUS_PERIOD will be Monday - Sunday. - PREVIOUS_PERIOD = 22; - - // Only valid when used in the comparison_date_range field. The period - // starting 1 year prior to the date period provided in date_range. - // - // In the case where date_range is a FixedDateRange, this will be a date - // range starting 1 year prior to the date_range start date and ending 1 - // year prior to the date_range end date. - // - // In the case where date_range is a RelativeDateRange, this will be a - // period of the same time frame exactly 1 year prior to the date_range. - // In the case where the date_range does not capture the full period - // because a report is run in the middle of that period, this will still - // be the full period 1 year prior. For example, if date range is - // THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be - // Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday - - // Sunday. - SAME_PERIOD_PREVIOUS_YEAR = 24; - } - - // Either a fixed or relative date range. - oneof date_range_type { - // A fixed date range. - FixedDateRange fixed = 1; - - // A relative date range. - RelativeDateRange relative = 2; - } - } - - // Valid time period columns. - enum TimePeriodColumn { - // Default value. Report will have no time period column. - TIME_PERIOD_COLUMN_UNSPECIFIED = 0; - - // A column for each date in the report. - TIME_PERIOD_COLUMN_DATE = 1; - - // A column for each week in the report. - TIME_PERIOD_COLUMN_WEEK = 2; - - // A column for each month in the report. - TIME_PERIOD_COLUMN_MONTH = 3; - - // A column for each quarter in the report. - TIME_PERIOD_COLUMN_QUARTER = 4; - } - - // Reporting dimensions. - enum Dimension { - // Default value. This value is unused. - DIMENSION_UNSPECIFIED = 0; - - // The domain name of the advertiser. - ADVERTISER_DOMAIN_NAME = 242; - - // The ID used in an external system for advertiser identification - ADVERTISER_EXTERNAL_ID = 228; - - // The ID of an advertiser company assigned to an order - ADVERTISER_ID = 131; - - // Labels applied to the advertiser - // can be used for either competitive exclusion or ad exclusion - ADVERTISER_LABELS = 230; - - // Label ids applied to the advertiser - // can be used for either competitive exclusion or ad exclusion - ADVERTISER_LABEL_IDS = 229; - - // The name of an advertiser company assigned to an order - ADVERTISER_NAME = 132; - - // The name of the contact associated with an advertiser company - ADVERTISER_PRIMARY_CONTACT = 227; - - // Shows an ENUM value describing whether a given piece of publisher - // inventory was above (ATF) or below the fold (BTF) of a page. - AD_LOCATION = 390; - - // Shows a localized string describing whether a given piece of publisher - // inventory was above (ATF) or below the fold (BTF) of a page. - AD_LOCATION_NAME = 391; - - // The code of the ad unit where the ad was requested. - AD_UNIT_CODE = 64; - - // The code of the first level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_1 = 65; - - // The code of the tenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_10 = 74; - - // The code of the eleventh level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_11 = 75; - - // The code of the twelfth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_12 = 76; - - // The code of the thirteenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_13 = 77; - - // The code of the fourteenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_14 = 78; - - // The code of the fifteenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_15 = 79; - - // The code of the sixteenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_16 = 80; - - // The code of the second level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_2 = 66; - - // The code of the third level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_3 = 67; - - // The code of the fourth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_4 = 68; - - // The code of the fifth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_5 = 69; - - // The code of the sixth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_6 = 70; - - // The code of the seventh level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_7 = 71; - - // The code of the eighth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_8 = 72; - - // The code of the ninth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_9 = 73; - - // The depth of the ad unit's hierarchy - AD_UNIT_DEPTH = 101; - - // The ID of the ad unit where the ad was requested. - AD_UNIT_ID = 25; - - // The full hierarchy of ad unit IDs where the ad was requested, from - // root to leaf, excluding the root ad unit ID. - AD_UNIT_ID_ALL_LEVEL = 27; - - // The first level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_1 = 30; - - // The tenth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_10 = 48; - - // The eleventh level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_11 = 50; - - // The twelfth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_12 = 52; - - // The thirteenth level ad unit ID of the ad unit where the ad was - // requested. - AD_UNIT_ID_LEVEL_13 = 54; - - // The fourteenth level ad unit ID of the ad unit where the ad was - // requested. - AD_UNIT_ID_LEVEL_14 = 56; - - // The fifteenth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_15 = 58; - - // The sixteenth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_16 = 60; - - // The second level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_2 = 32; - - // The third level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_3 = 34; - - // The fourth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_4 = 36; - - // The fifth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_5 = 38; - - // The sixth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_6 = 40; - - // The seventh level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_7 = 42; - - // The eighth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_8 = 44; - - // The ninth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_9 = 46; - - // The top-level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_TOP_LEVEL = 142; - - // The name of the ad unit where the ad was requested. - AD_UNIT_NAME = 26; - - // The full hierarchy of ad unit names where the ad was requested, from - // root to leaf, excluding the root ad unit name. - AD_UNIT_NAME_ALL_LEVEL = 29; - - // The first level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_1 = 31; - - // The tenth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_10 = 49; - - // The eleventh level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_11 = 51; - - // The twelfth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_12 = 53; - - // The thirteenth level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_13 = 55; - - // The fourteenth level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_14 = 57; - - // The fifteenth level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_15 = 59; - - // The sixteenth level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_16 = 61; - - // The second level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_2 = 33; - - // The third level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_3 = 35; - - // The fourth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_4 = 37; - - // The fifth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_5 = 39; - - // The sixth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_6 = 41; - - // The seventh level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_7 = 43; - - // The eighth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_8 = 45; - - // The ninth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_9 = 47; - - // The top-level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_TOP_LEVEL = 143; - - // The reward amount of the ad unit where the ad was requested. - AD_UNIT_REWARD_AMOUNT = 63; - - // The reward type of the ad unit where the ad was requested. - AD_UNIT_REWARD_TYPE = 62; - - // The status of the ad unit - AD_UNIT_STATUS = 206; - - // The name of the status of the ad unit - AD_UNIT_STATUS_NAME = 207; - - // The app version. - APP_VERSION = 392; - - // The ID used in an external system for advertiser identification - BACKFILL_ADVERTISER_EXTERNAL_ID = 349; - - // The ID of an advertiser company assigned to a backfill order - BACKFILL_ADVERTISER_ID = 346; - - // Labels applied to the advertiser - // can be used for either competitive exclusion or ad exclusion - BACKFILL_ADVERTISER_LABELS = 351; - - // Label ids applied to the advertiser - // can be used for either competitive exclusion or ad exclusion - BACKFILL_ADVERTISER_LABEL_IDS = 350; - - // The name of an advertiser company assigned to a backfill order - BACKFILL_ADVERTISER_NAME = 347; - - // The name of the contact associated with an advertiser company - BACKFILL_ADVERTISER_PRIMARY_CONTACT = 348; - - // Enum value of Backfill creative billing type - BACKFILL_CREATIVE_BILLING_TYPE = 378; - - // Localized string value of Backfill creative billing type - BACKFILL_CREATIVE_BILLING_TYPE_NAME = 379; - - // Represents the click-through URL of a Backfill creative - BACKFILL_CREATIVE_CLICK_THROUGH_URL = 376; - - // The ID of a Backfill creative - BACKFILL_CREATIVE_ID = 370; - - // Backfill creative name - BACKFILL_CREATIVE_NAME = 371; - - // Third party vendor name of a Backfill creative - BACKFILL_CREATIVE_THIRD_PARTY_VENDOR = 377; - - // Enum value of Backfill creative type - BACKFILL_CREATIVE_TYPE = 374; - - // Localized string name of Backfill creative type - BACKFILL_CREATIVE_TYPE_NAME = 375; - - // Whether a Backfill line item is archived. - BACKFILL_LINE_ITEM_ARCHIVED = 278; - - // Backfill line item comanion delivery option ENUM value. - BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION = 258; - - // Localized Backfill line item comanion delivery option name. - BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 259; - - // The computed status of the BackfillLineItem. - BACKFILL_LINE_ITEM_COMPUTED_STATUS = 296; - - // The localized name of the computed status of the BackfillLineItem. - BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME = 297; - - // The contracted units bought for the Backfill line item. - BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY = 280; - - // The cost per unit of the Backfill line item. - BACKFILL_LINE_ITEM_COST_PER_UNIT = 272; - - // Backfill line item cost type ENUM value. - BACKFILL_LINE_ITEM_COST_TYPE = 264; - - // Localized Backfill line item cost type name. - BACKFILL_LINE_ITEM_COST_TYPE_NAME = 265; - - // Represent the end date of a Backfill creative associated with a Backfill - // line item - BACKFILL_LINE_ITEM_CREATIVE_END_DATE = 381; - - // The creative rotation type of the BackfillLineItem. - BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE = 290; - - // The localized name of the creative rotation type of the BackfillLineItem. - BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 291; - - // Represent the start date of a Backfill creative associated with a - // Backfill line item - BACKFILL_LINE_ITEM_CREATIVE_START_DATE = 380; - - // The 3 letter currency code of the Backfill line item - BACKFILL_LINE_ITEM_CURRENCY_CODE = 288; - - // The progress made for the delivery of the Backfill line item. - BACKFILL_LINE_ITEM_DELIVERY_INDICATOR = 274; - - // The delivery rate type of the BackfillLineItem. - BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE = 292; - - // The localized name of the delivery rate type of the BackfillLineItem. - BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 293; - - // The discount of the BackfillLineItem in whole units in the - // BackfillLineItem's currency code, or if unspecified the Network's - // currency code. - BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE = 294; - - // The discount of the BackfillLineItem in percentage. - BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE = 295; - - // The end date of the Backfill line item. - BACKFILL_LINE_ITEM_END_DATE = 267; - - // The end date and time of the Backfill line item. - BACKFILL_LINE_ITEM_END_DATE_TIME = 269; - - // The ENUM value of the environment a Backfill line item is targeting. - BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE = 302; - - // The localized name of the environment a Backfill line item is targeting. - BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME = 257; - - // The deal ID of the Backfill line item. Set for Programmatic Direct - // campaigns. - BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID = 285; - - // The external ID of the Backfill line item. - BACKFILL_LINE_ITEM_EXTERNAL_ID = 273; - - // The frequency cap of the Backfill line item (descriptive string). - BACKFILL_LINE_ITEM_FREQUENCY_CAP = 303; - - // Backfill line item ID. - BACKFILL_LINE_ITEM_ID = 298; - - // The application that last modified the Backfill line item. - BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP = 289; - - // The total number of clicks delivered of the lifetime of the Backfill line - // item. - BACKFILL_LINE_ITEM_LIFETIME_CLICKS = 283; - - // The total number of impressions delivered over the lifetime of the - // Backfill line item. - BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS = 282; - - // The total number of viewable impressions delivered over the lifetime of - // the Backfill line item. - BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 284; - - // Whether or not the Backfill line item is Makegood. Makegood refers to - // free inventory offered to buyers to compensate for mistakes or - // under-delivery in the original campaigns. - BACKFILL_LINE_ITEM_MAKEGOOD = 276; - - // Backfill line item name. - BACKFILL_LINE_ITEM_NAME = 299; - - // The cost of booking for the Backfill line item (non-CPD). - BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE = 286; - - // Whether a Backfill line item is eligible for opitimization. - BACKFILL_LINE_ITEM_OPTIMIZABLE = 277; - - // Goal type ENUM value of the primary goal of the Backfill line item. - BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE = 262; - - // Localized goal type name of the primary goal of the Backfill line item. - BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 263; - - // Unit type ENUM value of the primary goal of the Backfill line item. - BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 260; - - // Localized unit type name of the primary goal of the Backfill line item. - BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 261; - - // The priority of this Backfill line item as a value between 1 and 16. - // In general, a lower priority means more serving priority for the - // Backfill line item. - BACKFILL_LINE_ITEM_PRIORITY = 266; - - // ENUM value describing the state of inventory reservation for the - // BackfillLineItem. - BACKFILL_LINE_ITEM_RESERVATION_STATUS = 306; - - // Localized string describing the state of inventory reservation for the - // BackfillLineItem. - BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME = 307; - - // The start date of the Backfill line item. - BACKFILL_LINE_ITEM_START_DATE = 268; - - // The start date and time of the Backfill line item. - BACKFILL_LINE_ITEM_START_DATE_TIME = 270; - - // Backfill line item type ENUM value. - BACKFILL_LINE_ITEM_TYPE = 300; - - // Localized Backfill line item type name. - BACKFILL_LINE_ITEM_TYPE_NAME = 301; - - // Whether the Backfill line item end time and end date is set to - // effectively never end. - BACKFILL_LINE_ITEM_UNLIMITED_END = 271; - - // The artificial cost per unit used by the Ad server to help rank - // inventory. - BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT = 275; - - // The web property code used for dynamic allocation Backfill line items. - BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE = 287; - - // The ID of Backfill creative, includes regular creatives, and master and - // companions in case of creative sets - BACKFILL_MASTER_COMPANION_CREATIVE_ID = 372; - - // Name of Backfill creative, includes regular creatives, and master and - // companions in case of creative sets - BACKFILL_MASTER_COMPANION_CREATIVE_NAME = 373; - - // Backfill order agency. - BACKFILL_ORDER_AGENCY = 313; - - // Backfill order agency ID. - BACKFILL_ORDER_AGENCY_ID = 314; - - // Backfill order booked CPC. - BACKFILL_ORDER_BOOKED_CPC = 315; - - // Backfill order booked CPM. - BACKFILL_ORDER_BOOKED_CPM = 316; - - // Backfill order delivery status ENUM value. - BACKFILL_ORDER_DELIVERY_STATUS = 340; - - // Backfill order delivery status localized name. - BACKFILL_ORDER_DELIVERY_STATUS_NAME = 341; - - // Backfill order end date. - BACKFILL_ORDER_END_DATE = 317; - - // Backfill order end date and time. - BACKFILL_ORDER_END_DATE_TIME = 319; - - // Backfill order external ID. - BACKFILL_ORDER_EXTERNAL_ID = 320; - - // Backfill order id. - BACKFILL_ORDER_ID = 338; - - // Backfill order labels. - BACKFILL_ORDER_LABELS = 334; - - // Backfill order labels IDs. - BACKFILL_ORDER_LABEL_IDS = 335; - - // Backfill order lifetime clicks. - BACKFILL_ORDER_LIFETIME_CLICKS = 322; - - // Backfill order lifetime impressions. - BACKFILL_ORDER_LIFETIME_IMPRESSIONS = 323; - - // Backfill order name. - BACKFILL_ORDER_NAME = 339; - - // Backfill order PO number. - BACKFILL_ORDER_PO_NUMBER = 324; - - // Whether the Backfill order is programmatic. - BACKFILL_ORDER_PROGRAMMATIC = 321; - - // Backfill order sales person. - BACKFILL_ORDER_SALESPERSON = 325; - - // Backfill order secondary sales people. - BACKFILL_ORDER_SECONDARY_SALESPEOPLE = 329; - - // Backfill order secondary sales people ID. - BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID = 328; - - // Backfill order secondary traffickers. - BACKFILL_ORDER_SECONDARY_TRAFFICKERS = 331; - - // Backfill order secondary traffickers ID. - BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID = 330; - - // Backfill order start date. - BACKFILL_ORDER_START_DATE = 332; - - // Backfill order start date and time. - BACKFILL_ORDER_START_DATE_TIME = 333; - - // Backfill order trafficker. - BACKFILL_ORDER_TRAFFICKER = 326; - - // Backfill order trafficker ID. - BACKFILL_ORDER_TRAFFICKER_ID = 327; - - // Whether the Backfill order end time and end date is set to effectively - // never end. - BACKFILL_ORDER_UNLIMITED_END = 318; - - // The ID of the buyer on a backfill programmatic proposal. - BACKFILL_PROGRAMMATIC_BUYER_ID = 336; - - // The name of the buyer on a backfill programmatic proposal. - BACKFILL_PROGRAMMATIC_BUYER_NAME = 337; - - // The amount of information about the Publisher's page sent to the buyer - // who purchased the impressions. - BRANDING_TYPE = 383; - - // The localized version of branding type, the amount of information about - // the Publisher's page sent to the buyer who purchased the impressions. - BRANDING_TYPE_NAME = 384; - - // Browser category. - BROWSER_CATEGORY = 119; - - // Browser category name. - BROWSER_CATEGORY_NAME = 120; - - // The ID of the browser. - BROWSER_ID = 235; - - // The name of the browser. - BROWSER_NAME = 236; - - // Mobile carrier ID. - CARRIER_ID = 369; - - // Name of the mobile carrier. - CARRIER_NAME = 368; - - // The ID of an advertiser, classified by Google, associated with a creative - // transacted - CLASSIFIED_ADVERTISER_ID = 133; - - // The name of an advertiser, classified by Google, associated with a - // creative transacted - CLASSIFIED_ADVERTISER_NAME = 134; - - // ID of the brand, as classified by Google, - CLASSIFIED_BRAND_ID = 243; - - // Name of the brand, as classified by Google, - CLASSIFIED_BRAND_NAME = 244; - - // ID of the video content served. - CONTENT_ID = 246; - - // Name of the video content served. - CONTENT_NAME = 247; - - // The criteria ID of the country in which the ad served. - COUNTRY_ID = 11; - - // The name of the country in which the ad served. - COUNTRY_NAME = 12; - - // Enum value of creative billing type - CREATIVE_BILLING_TYPE = 366; - - // Localized string value of creative billing type - CREATIVE_BILLING_TYPE_NAME = 367; - - // Represents the click-through URL of a creative - CREATIVE_CLICK_THROUGH_URL = 174; - - // The ID of a creative - CREATIVE_ID = 138; - - // Creative name - CREATIVE_NAME = 139; - - // Creative technology ENUM - CREATIVE_TECHNOLOGY = 148; - - // Creative technology locallized name - CREATIVE_TECHNOLOGY_NAME = 149; - - // Third party vendor name of a creative - CREATIVE_THIRD_PARTY_VENDOR = 361; - - // Enum value of creative type - CREATIVE_TYPE = 344; - - // Localized string name of creative type - CREATIVE_TYPE_NAME = 345; - - // Breaks down reporting data by date. - DATE = 3; - - // Breaks down reporting data by day of the week. Monday is 1 and 7 is - // Sunday. - DAY_OF_WEEK = 4; - - // Demand channel. - DEMAND_CHANNEL = 9; - - // Demand channel name. - DEMAND_CHANNEL_NAME = 10; - - // Demand subchannel. - DEMAND_SUBCHANNEL = 22; - - // Demand subchannel name. - DEMAND_SUBCHANNEL_NAME = 23; - - // The device on which an ad was served. - DEVICE = 226; - - // The device category to which an ad is being targeted. - DEVICE_CATEGORY = 15; - - // The name of the category of device (smartphone, feature phone, tablet, or - // desktop) to which an ad is being targeted. - DEVICE_CATEGORY_NAME = 16; - - // The localized name of the device on which an ad was served. - DEVICE_NAME = 225; - - // ID of the yield partner as classified by Google - EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; - - // Name of the yield partner as classified by Google - EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; - - // The ID of the first look pricing rule. - FIRST_LOOK_PRICING_RULE_ID = 248; - - // The name of the first look pricing rule. - FIRST_LOOK_PRICING_RULE_NAME = 249; - - // Breaks down reporting data by hour in one day. - HOUR = 100; - - // The interaction type of an ad. - INTERACTION_TYPE = 223; - - // The localized name of the interaction type of an ad. - INTERACTION_TYPE_NAME = 224; - - // Inventory format. - // The format of the ad unit (e.g, banner) where the ad was requested. - INVENTORY_FORMAT = 17; - - // Inventory format name. - // The format of the ad unit (e.g, banner) where the ad was requested. - INVENTORY_FORMAT_NAME = 18; - - // Inventory type. - // The kind of web page or device where the ad was requested. - INVENTORY_TYPE = 19; - - // Inventory type name. - // The kind of web page or device where the ad was requested. - INVENTORY_TYPE_NAME = 20; - - // Whether traffic is Adx Direct. - IS_ADX_DIRECT = 382; - - // Whether traffic is First Look. - IS_FIRST_LOOK_DEAL = 401; - - // The Custom Targeting Value ID - KEY_VALUES_ID = 214; - - // The Custom Targeting Value formatted like = - KEY_VALUES_NAME = 215; - - // Whether a Line item is archived. - LINE_ITEM_ARCHIVED = 188; - - // Line item comanion delivery option ENUM value. - LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; - - // Localized line item comanion delivery option name. - LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; - - // The computed status of the LineItem. - LINE_ITEM_COMPUTED_STATUS = 250; - - // The localized name of the computed status of the LineItem. - LINE_ITEM_COMPUTED_STATUS_NAME = 251; - - // The contracted units bought for the Line item. - LINE_ITEM_CONTRACTED_QUANTITY = 92; - - // The cost per unit of the Line item. - LINE_ITEM_COST_PER_UNIT = 85; - - // Line item cost type ENUM value. - LINE_ITEM_COST_TYPE = 212; - - // Localized line item cost type name. - LINE_ITEM_COST_TYPE_NAME = 213; - - // Represent the end date of a creative associated with line item - LINE_ITEM_CREATIVE_END_DATE = 176; - - // The creative rotation type of the LineItem. - LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; - - // The localized name of the creative rotation type of the LineItem. - LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; - - // Represent the start date of a creative associated with line item - LINE_ITEM_CREATIVE_START_DATE = 175; - - // The 3 letter currency code of the Line Item - LINE_ITEM_CURRENCY_CODE = 180; - - // The progress made for the delivery of the Line item. - LINE_ITEM_DELIVERY_INDICATOR = 87; - - // The delivery rate type of the LineItem. - LINE_ITEM_DELIVERY_RATE_TYPE = 191; - - // The localized name of the delivery rate type of the LineItem. - LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; - - // The discount of the LineItem in whole units in the LineItem's currency - // code, or if unspecified the Network's currency code. - LINE_ITEM_DISCOUNT_ABSOLUTE = 195; - - // The discount of the LineItem in percentage. - LINE_ITEM_DISCOUNT_PERCENTAGE = 196; - - // The end date of the Line item. - LINE_ITEM_END_DATE = 81; - - // The end date and time of the Line item. - LINE_ITEM_END_DATE_TIME = 83; - - // The ENUM value of the environment a LineItem is targeting. - LINE_ITEM_ENVIRONMENT_TYPE = 201; - - // The localized name of the environment a LineItem is targeting. - LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; - - // The deal ID of the Line item. Set for Programmatic Direct campaigns. - LINE_ITEM_EXTERNAL_DEAL_ID = 97; - - // The external ID of the Line item. - LINE_ITEM_EXTERNAL_ID = 86; - - // The frequency cap of the Line item (descriptive string). - LINE_ITEM_FREQUENCY_CAP = 256; - - // Line item ID. - LINE_ITEM_ID = 1; - - // The application that last modified the Line Item. - LINE_ITEM_LAST_MODIFIED_BY_APP = 181; - - // The total number of clicks delivered of the lifetime of the Line item. - LINE_ITEM_LIFETIME_CLICKS = 95; - - // The total number of impressions delivered over the lifetime of the - // Line item. - LINE_ITEM_LIFETIME_IMPRESSIONS = 94; - - // The total number of viewable impressions delivered over the lifetime of - // the Line item. - LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; - - // Whether or not the Line item is Makegood. Makegood refers to free - // inventory offered to buyers to compensate for mistakes or under-delivery - // in the original campaigns. - LINE_ITEM_MAKEGOOD = 89; - - // Line item Name. - LINE_ITEM_NAME = 2; - - // The cost of booking for the Line item (non-CPD). - LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; - - // Whether a Line item is eligible for opitimization. - LINE_ITEM_OPTIMIZABLE = 90; - - // Goal type ENUM value of the primary goal of the line item. - LINE_ITEM_PRIMARY_GOAL_TYPE = 210; - - // Localized goal type name of the primary goal of the line item. - LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; - - // The total number of impressions or clicks that are reserved for a - // line item. For line items of type BULK or PRICE_PRIORITY, this represents - // the number of remaining impressions reserved. If the line item has an - // impression cap goal, this represents the number of impressions or - // conversions that the line item will stop serving at if reached. - LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; - - // The percentage of impressions or clicks that are reserved for a - // line item. For line items of type SPONSORSHIP, this represents the - // percentage of available impressions reserved. For line items of type - // NETWORK or HOUSE, this represents the percentage of remaining impressions - // reserved. - LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; - - // Unit type ENUM value of the primary goal of the line item. - LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; - - // Localized unit type name of the primary goal of the line item. - LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; - - // The priority of this Line item as a value between 1 and 16. - // In general, a lower priority means more serving priority for the - // Line item. - LINE_ITEM_PRIORITY = 24; - - // ENUM value describing the state of inventory reservation for the - // LineItem. - LINE_ITEM_RESERVATION_STATUS = 304; - - // Localized string describing the state of inventory reservation for the - // LineItem. - LINE_ITEM_RESERVATION_STATUS_NAME = 305; - - // The start date of the Line item. - LINE_ITEM_START_DATE = 82; - - // The start date and time of the Line item. - LINE_ITEM_START_DATE_TIME = 84; - - // Line item type ENUM value. - LINE_ITEM_TYPE = 193; - - // Localized line item type name. - LINE_ITEM_TYPE_NAME = 194; - - // Whether the Line item end time and end date is set to effectively never - // end. - LINE_ITEM_UNLIMITED_END = 187; - - // The artificial cost per unit used by the Ad server to help rank - // inventory. - LINE_ITEM_VALUE_COST_PER_UNIT = 88; - - // The web property code used for dynamic allocation Line Items. - LINE_ITEM_WEB_PROPERTY_CODE = 179; - - // The ID of creative, includes regular creatives, and master and companions - // in case of creative sets - MASTER_COMPANION_CREATIVE_ID = 140; - - // Name of creative, includes regular creatives, and master and companions - // in case of creative sets - MASTER_COMPANION_CREATIVE_NAME = 141; - - // Whether the mobile app is free. - MOBILE_APP_FREE = 128; - - // URL of app icon for the mobile app. - MOBILE_APP_ICON_URL = 129; - - // The ID of the Mobile App. - MOBILE_APP_ID = 123; - - // The name of the mobile app. - MOBILE_APP_NAME = 127; - - // Ownership status of the mobile app. - MOBILE_APP_OWNERSHIP_STATUS = 311; - - // Ownership status of the mobile app. - MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; - - // The App Store of the mobile app. - MOBILE_APP_STORE = 125; - - // The localized name of the mobile app store. - MOBILE_APP_STORE_NAME = 245; - - // Mobile inventory type. - // Identifies whether a mobile ad came from a regular web page, an AMP web - // page, or a mobile app. - // Values match the Inventory type dimension available in the Overview Home - // dashboard. Note: Video takes precedence over any other value, for - // example, if there is an in-stream video impression on a desktop device, - // it will be attributed to in-stream video and not desktop web. - MOBILE_INVENTORY_TYPE = 99; - - // Mobile inventory type name. - // Identifies whether a mobile ad came from a regular web page, an AMP web - // page, or a mobile app. - MOBILE_INVENTORY_TYPE_NAME = 21; - - // SDK version of the mobile device. - MOBILE_SDK_VERSION_NAME = 130; - - // Breaks down reporting data by month and year. - MONTH_YEAR = 6; - - // Native ad format ID. - NATIVE_AD_FORMAT_ID = 255; - - // Native ad format name. - NATIVE_AD_FORMAT_NAME = 254; - - // Native style ID. - NATIVE_STYLE_ID = 253; - - // Native style name. - NATIVE_STYLE_NAME = 252; - - // Operating system category. - OPERATING_SYSTEM_CATEGORY = 117; - - // Operating system category name. - OPERATING_SYSTEM_CATEGORY_NAME = 118; - - // ID of the operating system version. - OPERATING_SYSTEM_VERSION_ID = 238; - - // Details of the operating system, including version. - OPERATING_SYSTEM_VERSION_NAME = 237; - - // Order agency. - ORDER_AGENCY = 150; - - // Order agency ID. - ORDER_AGENCY_ID = 151; - - // Order booked CPC. - ORDER_BOOKED_CPC = 152; - - // Order booked CPM. - ORDER_BOOKED_CPM = 153; - - // Order delivery status ENUM value. - ORDER_DELIVERY_STATUS = 231; - - // Order delivery status localized name. - ORDER_DELIVERY_STATUS_NAME = 239; - - // Order end date. - ORDER_END_DATE = 154; - - // Order end date and time. - ORDER_END_DATE_TIME = 155; - - // Order external ID. - ORDER_EXTERNAL_ID = 156; - - // Order id. - ORDER_ID = 7; - - // Order labels. - ORDER_LABELS = 170; - - // Order labels IDs. - ORDER_LABEL_IDS = 171; - - // Order lifetime clicks. - ORDER_LIFETIME_CLICKS = 158; - - // Order lifetime impressions. - ORDER_LIFETIME_IMPRESSIONS = 159; - - // Order name. - ORDER_NAME = 8; - - // Order PO number. - ORDER_PO_NUMBER = 160; - - // Whether the Order is programmatic. - ORDER_PROGRAMMATIC = 157; - - // Order sales person. - ORDER_SALESPERSON = 161; - - // Order secondary sales people. - ORDER_SECONDARY_SALESPEOPLE = 164; - - // Order secondary sales people ID. - ORDER_SECONDARY_SALESPEOPLE_ID = 165; - - // Order secondary traffickers. - ORDER_SECONDARY_TRAFFICKERS = 166; - - // Order secondary traffickers ID. - ORDER_SECONDARY_TRAFFICKERS_ID = 167; - - // Order start date. - ORDER_START_DATE = 168; - - // Order start date and time. - ORDER_START_DATE_TIME = 169; - - // Order trafficker. - ORDER_TRAFFICKER = 162; - - // Order trafficker ID. - ORDER_TRAFFICKER_ID = 163; - - // Whether the Order end time and end date is set to effectively never - // end. - ORDER_UNLIMITED_END = 203; - - // Placement ID - PLACEMENT_ID = 113; - - // The full list of placement IDs associated with the ad unit. - PLACEMENT_ID_ALL = 144; - - // Placement name - PLACEMENT_NAME = 114; - - // The full list of placement names associated with the ad unit. - PLACEMENT_NAME_ALL = 145; - - // Placement status ENUM value - PLACEMENT_STATUS = 362; - - // The full list of placement status ENUM values associated with the ad - // unit. - PLACEMENT_STATUS_ALL = 363; - - // Localized placement status name. - PLACEMENT_STATUS_NAME = 364; - - // The full list of localized placement status names associated with the ad - // unit. - PLACEMENT_STATUS_NAME_ALL = 365; - - // The ID of the buyer on a programmatic proposal. - PROGRAMMATIC_BUYER_ID = 240; - - // The name of the buyer on a programmatic proposal. - PROGRAMMATIC_BUYER_NAME = 241; - - // Programmatic channel. - // The type of transaction that occurred in Ad Exchange. - PROGRAMMATIC_CHANNEL = 13; - - // Programmatic channel name. - // The type of transaction that occurred in Ad Exchange. - PROGRAMMATIC_CHANNEL_NAME = 14; - - // The size of a rendered creative, It can differ with the creative's size - // if a creative is shown in an ad slot of a different size. - RENDERED_CREATIVE_SIZE = 343; - - // Inventory Requested Ad Sizes dimension - REQUESTED_AD_SIZES = 352; - - // Request type ENUM - REQUEST_TYPE = 146; - - // Request type locallized name - REQUEST_TYPE_NAME = 147; - - // Indicates if a request was eligible for server-side unwrapping. - SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; - - // Information about domain or subdomains. - SITE = 387; - - // The ID of the browser, device or other environment into which a line item - // or creative was served. - TARGETING_ID = 232; - - // Information about the browser, device and other environments into which - // a line item or creative was served. - TARGETING_NAME = 233; - - // The way in which advertisers targeted their ads. - TARGETING_TYPE = 385; - - // The localized name of the way in which advertisers targeted their ads. - TARGETING_TYPE_NAME = 386; - - // Inventory Traffic source dimension - TRAFFIC_SOURCE = 388; - - // Inventory Traffic source dimension name - TRAFFIC_SOURCE_NAME = 389; - - // Unified pricing rule ID dimension - UNIFIED_PRICING_RULE_ID = 393; - - // Unified pricing rule name dimension - UNIFIED_PRICING_RULE_NAME = 394; - - // The video placement enum as defined by ADCOM 1.0-202303. - VIDEO_PLCMT = 172; - - // The localized name of the video placement as defined by ADCOM 1.0-202303. - VIDEO_PLCMT_NAME = 173; - - // Breaks down reporting data by week of the year. - WEEK = 5; - - // Name of the company within a yield group - YIELD_GROUP_BUYER_NAME = 184; - - // ID of the group of ad networks or exchanges used for Mediation and Open - // Bidding - YIELD_GROUP_ID = 182; - - // Name of the group of ad networks or exchanges used for Mediation and Open - // Bidding - YIELD_GROUP_NAME = 183; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 0 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 1 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 2 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 3 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 4 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 5 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 6 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 7 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 8 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 9 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 10 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 11 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 12 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 13 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 14 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 0 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 1 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 2 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 3 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 4 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 5 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 6 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 7 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 8 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 9 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 10 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 11 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 12 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 13 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 14 is of - // type STRING or DROPDOWN. - LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 0 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 1 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 2 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 3 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 4 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 5 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 6 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 7 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 8 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 9 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 10 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 11 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 12 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 13 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 14 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; - - // Custom field value for Order with custom field ID equal to the ID - // in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 0 is of type - // STRING. - ORDER_CUSTOM_FIELD_0_VALUE = 13000; - - // Custom field value for Order with custom field ID equal to the ID - // in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 1 is of type - // STRING. - ORDER_CUSTOM_FIELD_1_VALUE = 13001; - - // Custom field value for Order with custom field ID equal to the ID - // in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 2 is of type - // STRING. - ORDER_CUSTOM_FIELD_2_VALUE = 13002; - - // Custom field value for Order with custom field ID equal to the ID - // in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 3 is of type - // STRING. - ORDER_CUSTOM_FIELD_3_VALUE = 13003; - - // Custom field value for Order with custom field ID equal to the ID - // in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 4 is of type - // STRING. - ORDER_CUSTOM_FIELD_4_VALUE = 13004; - - // Custom field value for Order with custom field ID equal to the ID - // in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 5 is of type - // STRING. - ORDER_CUSTOM_FIELD_5_VALUE = 13005; - - // Custom field value for Order with custom field ID equal to the ID - // in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 6 is of type - // STRING. - ORDER_CUSTOM_FIELD_6_VALUE = 13006; - - // Custom field value for Order with custom field ID equal to the ID - // in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 7 is of type - // STRING. - ORDER_CUSTOM_FIELD_7_VALUE = 13007; - - // Custom field value for Order with custom field ID equal to the ID - // in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 8 is of type - // STRING. - ORDER_CUSTOM_FIELD_8_VALUE = 13008; - - // Custom field value for Order with custom field ID equal to the ID - // in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value - // as a string. Can only be used if the custom field at index 9 is of type - // STRING. - ORDER_CUSTOM_FIELD_9_VALUE = 13009; - - // Custom field value for Order with custom field ID equal to the ID - // in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 10 is of - // type STRING. - ORDER_CUSTOM_FIELD_10_VALUE = 13010; - - // Custom field value for Order with custom field ID equal to the ID - // in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 11 is of - // type STRING. - ORDER_CUSTOM_FIELD_11_VALUE = 13011; - - // Custom field value for Order with custom field ID equal to the ID - // in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 12 is of - // type STRING. - ORDER_CUSTOM_FIELD_12_VALUE = 13012; - - // Custom field value for Order with custom field ID equal to the ID - // in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 13 is of - // type STRING. - ORDER_CUSTOM_FIELD_13_VALUE = 13013; - - // Custom field value for Order with custom field ID equal to the ID - // in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 14 is of - // type STRING. - ORDER_CUSTOM_FIELD_14_VALUE = 13014; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 0 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 1 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 2 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 3 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 4 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 5 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 6 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 7 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 8 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 9 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 10 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 11 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 12 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 13 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 14 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 0 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 1 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 2 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 3 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 4 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 5 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 6 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 7 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 8 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 9 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 10 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 11 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 12 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 13 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 14 is of - // type STRING. - CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 0 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 1 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 2 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 3 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 4 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 5 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 6 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 7 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 8 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 9 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 10 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 11 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 12 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 13 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 14 is of type STRING or DROPDOWN. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 0 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 1 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 2 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 3 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 4 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 5 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 6 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 7 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 8 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 9 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 10 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 11 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 12 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 13 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 14 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; - - // Custom field value for Backfill order with custom field ID equal to the - // ID - // in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 0 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 1 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 2 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 3 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 4 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 5 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 6 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 7 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 8 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 9 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 10 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 11 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 12 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 13 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 14 is of - // type STRING or DROPDOWN. - BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID - // in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the - // value as a string. Can only be used if the custom field at index 0 is of - // type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats - // the value as a string. Can only be used if the custom field at index 1 is - // of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats - // the value as a string. Can only be used if the custom field at index 2 is - // of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats - // the value as a string. Can only be used if the custom field at index 3 is - // of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats - // the value as a string. Can only be used if the custom field at index 4 is - // of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats - // the value as a string. Can only be used if the custom field at index 5 is - // of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats - // the value as a string. Can only be used if the custom field at index 6 is - // of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats - // the value as a string. Can only be used if the custom field at index 7 is - // of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats - // the value as a string. Can only be used if the custom field at index 8 is - // of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats - // the value as a string. Can only be used if the custom field at index 9 is - // of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 10 is of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 11 is of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 12 is of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 13 is of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. - // Treats the value as a string. Can only be used if the custom field at - // index 14 is of type STRING or DROPDOWN. - BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 0 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_0_VALUE_ID = 100000; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 1 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_1_VALUE_ID = 100001; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 2 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_2_VALUE_ID = 100002; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 3 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_3_VALUE_ID = 100003; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 4 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_4_VALUE_ID = 100004; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 5 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_5_VALUE_ID = 100005; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 6 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_6_VALUE_ID = 100006; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 9 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_7_VALUE_ID = 100007; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 8 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_8_VALUE_ID = 100008; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 9 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_9_VALUE_ID = 100009; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 0 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_0_VALUE = 101000; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 1 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_1_VALUE = 101001; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 2 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_2_VALUE = 101002; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 3 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_3_VALUE = 101003; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 4 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_4_VALUE = 101004; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 5 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_5_VALUE = 101005; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 6 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_6_VALUE = 101006; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 7 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_7_VALUE = 101007; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 8 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_8_VALUE = 101008; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 9 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_9_VALUE = 101009; - } - - // Reporting metrics. - enum Metric { - // Default value. This value is unused. - METRIC_UNSPECIFIED = 0; - - // Active View total average time in seconds that specific impressions are - // reported as being viewable. - ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; - - // Total number of impressions that were eligible to measure viewability. - ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; - - // The total number of impressions that were sampled and measured by active - // view. - ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; - - // The percentage of total impressions that were measurable by active view - // (out of all the total impressions sampled for active view). - ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; - - // The total number of impressions viewed on the user's screen. - ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; - - // The percentage of total impressions viewed on the user's screen (out of - // the total impressions measurable by active view). - ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; - - // Active View AdSense average time in seconds that specific impressions are - // reported as being viewable. - ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; - - // Total number of impressions delivered by AdSense that were eligible to - // measure viewability. - ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; - - // The number of impressions delivered by AdSense that were sampled, and - // measurable by active view. - ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; - - // The percentage of impressions delivered by AdSense that were measurable - // by active view (out of all AdSense impressions sampled for active view). - ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; - - // The number of impressions delivered by AdSense viewed on the user's - // screen. - ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; - - // The percentage of impressions delivered by AdSense viewed on the user's - // screen (out of AdSense impressions measurable by active view). - ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; - - // The average effective cost-per-thousand-impressions earned from the ads - // delivered by AdSense through line item dynamic allocation. - ADSENSE_AVERAGE_ECPM = 26; - - // Number of clicks delivered by AdSense demand channel. - ADSENSE_CLICKS = 23; - - // The ratio of impressions served by AdSense that resulted in users - // clicking on an ad. The clickthrough rate (CTR) is updated nightly. The - // AdSense CTR is calculated as: (AdSense clicks / AdSense impressions). - ADSENSE_CTR = 24; - - // Total impressions delivered by AdSense. - ADSENSE_IMPRESSIONS = 22; - - // Ratio of clicks delivered by AdSense through line item dynamic allocation - // in relation to the total clicks delivered. - ADSENSE_PERCENT_CLICKS = 28; - - // Ratio of impressions delivered by AdSense through line item dynamic - // allocation in relation to the total impressions delivered. - ADSENSE_PERCENT_IMPRESSIONS = 27; - - // Ratio of revenue generated by AdSense through line item dynamic - // allocation in relation to the total revenue. - ADSENSE_PERCENT_REVENUE = 29; - - // Ratio of revenue generated by AdSense through line item dynamic - // allocation in relation to the total revenue (excluding CPD). - ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; - - // The total number of times that an AdSense ad is delivered. - ADSENSE_RESPONSES_SERVED = 41; - - // Revenue generated from AdSense through line item dynamic allocation, - // calculated in the network's currency and time zone. - ADSENSE_REVENUE = 25; - - // Active View AdExchange average time in seconds that specific impressions - // are reported as being viewable. - AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; - - // Total number of impressions delivered by Ad Exchange that were eligible - // to measure viewability. - AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; - - // The number of impressions delivered by Ad Exchange that were sampled, and - // measurable by active view. - AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; - - // The percentage of impressions delivered by Ad Exchange that were - // measurable by active view (out of all Ad Exchange impressions sampled for - // active view). - AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; - - // The number of impressions delivered by Ad Exchange viewed on the user's - // screen. - AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; - - // The percentage of impressions delivered by Ad Exchange viewed on the - // user's screen (out of Ad Exchange impressions measurable by active view). - AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; - - // The average effective cost-per-thousand-impressions earned from the ads - // delivered by Ad Exchange through line item dynamic allocation. - AD_EXCHANGE_AVERAGE_ECPM = 18; - - // Number of clicks delivered by the Ad Exchange. - AD_EXCHANGE_CLICKS = 15; - - // The ratio of impressions served by the Ad Exchange that resulted in users - // clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad - // Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange - // impressions). - AD_EXCHANGE_CTR = 16; - - // Total impressions delivered by the Ad Exchange. - AD_EXCHANGE_IMPRESSIONS = 14; - - // Ratio of clicks delivered by Ad Exchange through line item dynamic - // allocation in relation to the total clicks delivered. - AD_EXCHANGE_PERCENT_CLICKS = 20; - - // Ratio of impressions delivered by Ad Exchange through line item dynamic - // allocation in relation to the total impressions delivered. - AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; - - // Ratio of revenue generated by Ad Exchange through line item dynamic - // allocation in relation to the total revenue. - AD_EXCHANGE_PERCENT_REVENUE = 21; - - // Ratio of revenue generated by Ad Exchange through line item dynamic - // allocation in relation to the total revenue (excluding CPD). - AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; - - // The total number of times that an Ad Exchange ad is delivered. - AD_EXCHANGE_RESPONSES_SERVED = 42; - - // Revenue generated from the Ad Exchange through line item dynamic - // allocation, calculated in your network's currency and time zone. - AD_EXCHANGE_REVENUE = 17; - - // The total number of times that an ad request is sent to the ad server - // including dynamic allocation. - AD_REQUESTS = 38; - - // Active View ad server average time in seconds that specific impressions - // are reported as being viewable. - AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; - - // Total number of impressions delivered by the ad server that were eligible - // to measure viewability. - AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; - - // The number of impressions delivered by the ad server that were sampled, - // and measurable by active view. - AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; - - // The percentage of impressions delivered by the ad server that were - // measurable by active view (out of all the ad server impressions sampled - // for active view). - AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; - - // The number of impressions delivered by the ad server viewed on the user's - // screen. - AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; - - // The percentage of impressions delivered by the ad server viewed on the - // user's screen (out of the ad server impressions measurable by active - // view). - AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; - - // Average effective cost-per-thousand-impressions earned from the ads - // delivered by the Google Ad Manager server. - AD_SERVER_AVERAGE_ECPM = 34; - - // Average effective cost-per-thousand-impressions earned from the ads - // delivered by the Google Ad Manager server, excluding CPD value. - AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; - - // Total raw impressions counted when creative begins to render or the - // first frame of a video is shown. - AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; - - // Total clicks served by the Google Ad Manager server. It usually takes - // about 30 minutes for new clicks to be recorded and added to the total - // displayed in reporting. - AD_SERVER_CLICKS = 7; - - // CPD revenue earned, calculated in your network's currency, for - // the ads delivered by the Google Ad Manager server. Sum of all booked - // revenue. - AD_SERVER_CPD_REVENUE = 32; - - // Ratio of impressions served by the Google Ad Manager server that resulted - // in users clicking on an ad. The clickthrough rate (CTR) is updated - // nightly. The ad server CTR is calculated as: (Ad server clicks / Ad - // server impressions). - AD_SERVER_CTR = 8; - - // Total impressions delivered by the Ad Server. - AD_SERVER_IMPRESSIONS = 6; - - // Ratio of clicks delivered by the Google Ad Manager server in relation to - // the total clicks delivered. - AD_SERVER_PERCENT_CLICKS = 12; - - // Ratio of impressions delivered by the Google Ad Manager server in - // relation to the total impressions delivered. - AD_SERVER_PERCENT_IMPRESSIONS = 11; - - // Ratio of revenue generated by the Google Ad Manager server in relation - // to the total revenue. - AD_SERVER_PERCENT_REVENUE = 35; - - // Ratio of revenue generated by the Google Ad Manager server (excluding - // CPD) in relation to the total revenue. - AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; - - // The total number of times that an ad is served by the ad server. - AD_SERVER_RESPONSES_SERVED = 40; - - // All CPM, CPC, and CPD revenue earned, calculated in your network's - // currency, for the ads delivered by the Google Ad Manager server. - // Sum of all booked revenue. - AD_SERVER_REVENUE = 33; - - // Revenue (excluding CPD) earned, calculated in your network's currency, - // for the ads delivered by the Google Ad Manager server. Sum of all booked - // revenue. - AD_SERVER_REVENUE_WITHOUT_CPD = 9; - - // The number of tracked ads delivered by the ad server. - AD_SERVER_TRACKED_ADS = 264; - - // Total raw impressions counted when creative begins to render or the - // first frame of a video is shown, before invalid traffic filtrations by - // Ad Server. - AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; - - // Total clicks delivered by the Ad Server before spam filtering. - AD_SERVER_UNFILTERED_CLICKS = 259; - - // Total impressions delivered by the Ad Server before spam filtering. - AD_SERVER_UNFILTERED_IMPRESSIONS = 260; - - // The number of tracked ads delivered by the ad server before invalid - // traffic filtrations. - AD_SERVER_UNFILTERED_TRACKED_ADS = 263; - - // eCPM averaged across the Google Ad Manager server, AdSense, - // and Ad Exchange. - AVERAGE_ECPM = 37; - - // eCPM averaged across the Google Ad Manager server (excluding CPD), - // AdSense, and Ad Exchange. - AVERAGE_ECPM_WITHOUT_CPD = 5; - - // The number of times a user clicked on an ad. - CLICKS = 2; - - // The total number of times that the code for an ad is served by the ad - // server including dynamic allocation. - CODE_SERVED_COUNT = 44; - - // For standard ads, your ad clickthrough rate (CTR) is the number of ad - // clicks divided by the number of individual ad impressions expressed as a - // fraction. Ad CTR = Clicks / Ad impressions. - CTR = 3; - - // The number of coviewed impressions sold by Google in partner sales. - GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; - - // The number of auction impressions sold by Google in partner sales. - GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; - - // The number of coviewed impressions sold by Google in partner sales. - GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; - - // The number of impressions sold by Google in partner sales. - GOOGLE_SOLD_IMPRESSIONS = 130; - - // The number of coviewed impressions sold by Google in partner sales. - GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; - - // The number of reservation impressions sold by Google in partner sales. - GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; - - // Total impressions from the Google Ad Manager server, AdSense, - // Ad Exchange, and yield group partners. - IMPRESSIONS = 1; - - // The number of filled pod requests (filled by partner or Google) in - // partner sales. - PARTNER_SALES_FILLED_POD_REQUESTS = 135; - - // The percent of filled requests to total ad requests in - // partner sales. - PARTNER_SALES_FILL_RATE = 136; - - // The percent of partner filled requests to total ad requests - // in partner sales. - PARTNER_SALES_PARTNER_MATCH_RATE = 137; - - // The number of queries eligible for partner sales. - PARTNER_SALES_QUERIES = 132; - - // The number of partner unfilled impressions in partner sales. - // If a pod request is not filled by partner but filled by Google, this - // metric will still count 1. - PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; - - // The number of partner unmatched queries in partner sales. - // If an ad request is not filled by partner but filled by Google, this - // metric will still count 1. - PARTNER_SALES_UNMATCHED_QUERIES = 134; - - // The number of code served sold by partner in partner sales. - PARTNER_SOLD_CODE_SERVED = 125; - - // The number of coviewed impressions sold by partner in partner sales. - PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; - - // The number of impressions sold by partner in partner sales. - PARTNER_SOLD_IMPRESSIONS = 123; - - // The total number of ad requests eligible for programmatic inventory, - // including Programmatic Guaranteed, Preferred Deals, backfill, and open - // auction. - PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; - - // The number of programmatic responses served divided by the number of - // programmatic eligible ad requests. Includes Ad Exchange, Open Bidding, - // and Preferred Deals. - PROGRAMMATIC_MATCH_RATE = 178; - - // Total number of ad responses served from programmatic demand sources. - // Includes Ad Exchange, Open Bidding, and Preferred Deals. - // - // Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open - // Bidding ad requests. - PROGRAMMATIC_RESPONSES_SERVED = 176; - - // The total number of times that an ad is served by the ad server including - // dynamic allocation. - RESPONSES_SERVED = 39; - - // Total amount of CPM, CPC, and CPD revenue based on the number of units - // served by the Google Ad Manager server, AdSense, Ad Exchange, and - // third-party Mediation networks. - REVENUE = 36; - - // Total amount of revenue (excluding CPD) based on the number of units - // served by the Google Ad Manager server, AdSense, Ad Exchange, and - // third-party Mediation networks. - REVENUE_WITHOUT_CPD = 4; - - // The average latency in milliseconds across all server-side unwrapping - // callout requests. There is no special handling for error or timeout - // responses. This reflects the entire chain of a parent callout request, - // which may result in multiple child callouts. This metric is not sliced by - // child callout dimensions. - SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; - - // The total number of server-side unwrapping callout requests. - SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; - - // The total number of server-side unwrapping callouts that returned an - // empty response. Timeouts are not considered empty responses. - SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; - - // The total number of server-side unwrapping callouts that returned an - // error response. Timeouts and empty responses are not considered errors. - SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; - - // The total number of successfully unwrapped, non-empty server-side - // wrapping callouts. Successful unwrapping does not indicate that the - // resulting creative was served. - SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; - - // The total number of server-side unwrapping callouts that timed out before - // returning a response. - SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; - - // The total number of missed impressions due to the ad servers' inability - // to find ads to serve including dynamic allocation. - UNFILLED_IMPRESSIONS = 45; - - // The total number of times that an ad is not returned by the ad server. - UNMATCHED_AD_REQUESTS = 43; - - // Number of times an Offerwall message was shown to users. - USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; - - // The number of messages where the user gained an entitlement. - USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; - - // The number of user interactions with a video, on average, such as pause, - // full screen, mute, etc. - VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; - - // The number of times a user collapses a video, either to its original size - // or to a different size. - VIDEO_INTERACTION_COLLAPSES = 93; - - // The number of times a user expands a video. - VIDEO_INTERACTION_EXPANDS = 95; - - // The number of times ad clip played in full screen mode. - VIDEO_INTERACTION_FULL_SCREENS = 96; - - // The number of times video player was in mute state during play of ad - // clip. - VIDEO_INTERACTION_MUTES = 97; - - // The number of times user paused ad clip. - VIDEO_INTERACTION_PAUSES = 98; - - // The number of times the user unpaused the video. - VIDEO_INTERACTION_RESUMES = 99; - - // The number of times a user rewinds the video. - VIDEO_INTERACTION_REWINDS = 100; - - // The number of times a user unmutes the video. - VIDEO_INTERACTION_UNMUTES = 101; - - // The number of times a skippable video is skipped. - VIDEO_INTERACTION_VIDEO_SKIPS = 102; - - // The number of total creative serves in video realtime reporting. - VIDEO_REAL_TIME_CREATIVE_SERVES = 139; - - // The number of errors of type 100 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_100_COUNT = 143; - - // The number of errors of type 101 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_101_COUNT = 144; - - // The number of errors of type 102 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_102_COUNT = 145; - - // The number of errors of type 200 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_200_COUNT = 146; - - // The number of errors of type 201 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_201_COUNT = 147; - - // The number of errors of type 202 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_202_COUNT = 148; - - // The number of errors of type 203 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_203_COUNT = 149; - - // The number of errors of type 300 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_300_COUNT = 150; - - // The number of errors of type 301 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_301_COUNT = 151; - - // The number of errors of type 302 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_302_COUNT = 152; - - // The number of errors of type 303 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_303_COUNT = 153; - - // The number of errors of type 400 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_400_COUNT = 154; - - // The number of errors of type 401 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_401_COUNT = 155; - - // The number of errors of type 402 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_402_COUNT = 156; - - // The number of errors of type 403 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_403_COUNT = 157; - - // The number of errors of type 405 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_405_COUNT = 158; - - // The number of errors of type 406 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_406_COUNT = 159; - - // The number of errors of type 407 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_407_COUNT = 160; - - // The number of errors of type 408 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_408_COUNT = 161; - - // The number of errors of type 409 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_409_COUNT = 162; - - // The number of errors of type 410 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_410_COUNT = 163; - - // The number of errors of type 500 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_500_COUNT = 164; - - // The number of errors of type 501 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_501_COUNT = 165; - - // The number of errors of type 502 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_502_COUNT = 166; - - // The number of errors of type 503 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_503_COUNT = 167; - - // The number of errors of type 600 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_600_COUNT = 168; - - // The number of errors of type 601 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_601_COUNT = 169; - - // The number of errors of type 602 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_602_COUNT = 170; - - // The number of errors of type 603 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_603_COUNT = 171; - - // The number of errors of type 604 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_604_COUNT = 172; - - // The number of errors of type 900 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_900_COUNT = 173; - - // The number of errors of type 901 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_901_COUNT = 174; - - // The number of total impressions in video realtime reporting. - VIDEO_REAL_TIME_IMPRESSIONS = 138; - - // The number of matched queries in video realtime reporting. - VIDEO_REAL_TIME_MATCHED_QUERIES = 140; - - // The number of all errors in video realtime reporting. - VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; - - // The number of total queries in video realtime reporting. - VIDEO_REAL_TIME_TOTAL_QUERIES = 142; - - // The number of unmatched queries in video realtime reporting. - VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; - - // Number of times that the publisher specified a video ad played - // automatically. - VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; - - // Average percentage of the video watched by users. - VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; - - // Average time(seconds) users watched the video. - VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; - - // Number of times that the publisher specified a video ad was clicked to - // play. - VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; - - // The number of times the video played to completion. - VIDEO_VIEWERSHIP_COMPLETES = 107; - - // Percentage of times the video played to the end. - VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; - - // The number of engaged views: ad is viewed to completion or for 30s, - // whichever comes first. - VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; - - // The number of times the video played to 25% of its length. - VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; - - // The number of times the video reached its midpoint during play. - VIDEO_VIEWERSHIP_MIDPOINTS = 111; - - // The number of times a skip button is shown in video. - VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; - - // The number of impressions where the video was played. - VIDEO_VIEWERSHIP_STARTS = 113; - - // The number of times the video played to 75% of its length. - VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; - - // The number of times an error occurred, such as a VAST redirect error, a - // video playback error, or an invalid response error. - VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; - - // The percentage of video error count. - VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; - - // Duration of the video creative. - VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; - - // View-through rate represented as a percentage. - VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; - - // Number of winning bids received from Open Bidding buyers, even when the - // winning bid is placed at the end of a mediation for mobile apps chain. - YIELD_GROUP_AUCTIONS_WON = 80; - - // Number of bids received from Open Bidding buyers, regardless of whether - // the returned bid competes in an auction. - YIELD_GROUP_BIDS = 81; - - // Number of bids received from Open Bidding buyers that competed in - // the auction. - YIELD_GROUP_BIDS_IN_AUCTION = 82; - - // Number of times a yield partner is asked to return bid to fill - // a yield group request. - YIELD_GROUP_CALLOUTS = 83; - - // The estimated net rate for yield groups or individual - // yield group partners. - YIELD_GROUP_ESTIMATED_CPM = 88; - - // Total net revenue earned by a yield group, based upon the yield group - // estimated CPM and yield group impressions recorded. - YIELD_GROUP_ESTIMATED_REVENUE = 87; - - // Number of matched yield group requests where a yield partner delivered - // their ad to publisher inventory. - YIELD_GROUP_IMPRESSIONS = 85; - - // Yield group Mediation fill rate indicating how often a network - // fills an ad request. - YIELD_GROUP_MEDIATION_FILL_RATE = 89; - - // Total requests where a Mediation chain was served. - YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; - - // The number of mediation chain passback across all channels. - YIELD_GROUP_MEDIATION_PASSBACKS = 118; - - // Revenue per thousand impressions based on data collected by Ad Manager - // from third-party ad network reports. - YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; - - // Number of times a yield group buyer successfully returned a bid in - // response to a yield group callout. - YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; - } - - // Possible metric value types to add. - enum MetricValueType { - // The values for the primary date_range. - PRIMARY = 0; - - // Each metrics' percent of the total for the primary date_range. - PRIMARY_PERCENT_OF_TOTAL = 1; - - // The values for the comparison_date_range. - COMPARISON = 2; - - // Each metrics' percent of the total for the comparison_date_range. - COMPARISON_PERCENT_OF_TOTAL = 3; - - // The absolute change between the primary and comparison date ranges. - ABSOLUTE_CHANGE = 4; - - // The relative change between the primary and comparison date ranges. - RELATIVE_CHANGE = 5; - } - - // Supported report types. - enum ReportType { - // Default value. This value is unused. - REPORT_TYPE_UNSPECIFIED = 0; - - // Historical. - HISTORICAL = 1; - } - // The visibility of a report. enum Visibility { - // Default value. Reports with hidden visibility will not appear in the Ad + // Default value. Reports with hidden visibility won't appear in the Ad // Manager UI. HIDDEN = 0; @@ -3292,29 +57,6 @@ message Report { SAVED = 2; } - // The source to determine the time zone for the report. - enum TimeZoneSource { - // Unspecified default value. - TIME_ZONE_SOURCE_UNSPECIFIED = 0; - - // Use the publisher's time zone in network settings. - PUBLISHER = 1; - - // Use the time zone of the ad exchange. - // Only compatible with Ad Exchange dimensions and metrics. - AD_EXCHANGE = 2; - - // Use UTC time zone. - // Only compatible with Revenue Verification reports. - UTC = 3; - - // Use the time zone provided in the ReportDefinition.time_zone field. - // Has limited dimension and metric compatibility compared with PUBLISHER, - // and reports may take longer to run since the dates are dynamically - // calculated at request time. - PROVIDED = 4; - } - // Identifier. The resource name of the report. // Report resource name have the form: // `networks/{network_code}/reports/{report_id}` @@ -3342,101 +84,141 @@ message Report { [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The locale of this report. Locale is set from the user's - // locale at the time of the request. Locale can not be modified. + // locale at the time of the request. Locale can't be modified. string locale = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The schedule options of this report. ScheduleOptions schedule_options = 9 [(google.api.field_behavior) = OPTIONAL]; } -// The definition of how a report should be run. -message ReportDefinition { - // Required. The list of dimensions to report on. If empty, the report will - // have no dimensions, and any metrics will be totals. - repeated Report.Dimension dimensions = 1 - [(google.api.field_behavior) = REQUIRED]; +// A table containing report data including dimension and metric values. +message ReportDataTable { + // A row of report data. + message Row { + // The order of the dimension values is the same as the order of the + // dimensions specified in the request. + repeated ReportValue dimension_values = 1; - // Required. The list of metrics to report on. If empty, the report will have - // no metrics. - repeated Report.Metric metrics = 2 [(google.api.field_behavior) = REQUIRED]; + // + // The length of the metric_value_groups + // field will be equal to the length of the date_ranges field in the + // fetch response. The metric_value_groups field is + // ordered such that each index corresponds to the date_range at the same + // index. For example, given date_ranges [x, y], metric_value_groups will + // have a length of two. The first entry in metric_value_groups represents + // the metrics for date x and the second entry in metric_value_groups + // represents the metrics for date y. + repeated MetricValueGroup metric_value_groups = 2; + } + + // Contains all metric values requested for a single date range and set of + // column dimension values (returned in the columns field of the response). + // The order of the metrics in each field corresponds to the order of the + // metrics specified in the request. + message MetricValueGroup { + // Data for the PRIMARY MetricValueType. + repeated ReportValue primary_values = 1; + + // Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. + repeated ReportValue primary_percent_of_total_values = 2; + + // Data for the COMPARISON MetricValueType. + repeated ReportValue comparison_values = 3; + + // Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. + repeated ReportValue comparison_percent_of_total_values = 4; + + // Data for the ABSOLUTE_CHANGE MetricValueType. + repeated ReportValue absolute_change_values = 5; + + // Data for the RELATIVE_CHANGE MetricValueType. + repeated ReportValue relative_change_values = 6; + + // If true, the flag's conditions are met. If false, the flag's + // conditions are not met. flag_values has the same length as + // flags and index i of flag_values represents the flag at index i + // of flags. + repeated bool flag_values = 7; + } +} - // Optional. The filters for this report. - repeated Report.Filter filters = 3 [(google.api.field_behavior) = OPTIONAL]; +// The options for a scheduled report. +message ScheduleOptions { + // The schedule for the report + message Schedule { + // Days of week to schedule report run. + message WeeklySchedule { + // Specifies days of the week on which to run report. + repeated google.type.DayOfWeek weekly_scheduled_days = 1; + } - // Optional. Where to get the time zone for this report. Defaults to using the - // network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone - // field in the report definition must also be provided with the desired time - // zone. - Report.TimeZoneSource time_zone_source = 20 - [(google.api.field_behavior) = OPTIONAL]; + // Days of Month to schedule report run. + message MonthlySchedule { + // Specifies days of the month to run report. Range is from 1-31. + // Will ignore days that are not valid for the given month. + repeated int32 monthly_scheduled_days = 1; + } - // Optional. If time_zone_source is PROVIDED, this is the time zone to use for - // this report. Leave empty for any other time zone source. Time zone in IANA - // format (e.g. "America/New_York"). - string time_zone = 4 [(google.api.field_behavior) = OPTIONAL]; + // Frequency to run report. + enum Frequency { + // No Frequency specified. + FREQUENCY_UNSPECIFIED = 0; - // Optional. The ISO 4217 currency code for this report. Defaults to publisher - // currency code if not specified. - string currency_code = 5 [(google.api.field_behavior) = OPTIONAL]; + // Schedule report to run every hour. + HOURLY = 1; - // Required. The primary date range of this report. - Report.DateRange date_range = 6 [(google.api.field_behavior) = REQUIRED]; + // Schedule report to run twice a day (every 12 hours). + TWO_TIMES_DAILY = 2; - // Optional. The comparison date range of this report. If unspecified, the - // report will not have any comparison metrics. - optional Report.DateRange comparison_date_range = 9 - [(google.api.field_behavior) = OPTIONAL]; + // Schedule report to run three times a day (every 8 hours). + THREE_TIMES_DAILY = 3; - // Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - // dimensions. The index of this repeated field corresponds to the index on - // each dimension. For example, custom_dimension_key_ids[0] describes - // CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - repeated int64 custom_dimension_key_ids = 7 - [(google.api.field_behavior) = OPTIONAL]; + // Schedule report to run four times a day (every 6 hours). + FOUR_TIMES_DAILY = 4; - // Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - // dimensions. The index of this repeated field corresponds to the index on - // each dimension. For example, line_item_custom_field_ids[0] describes - // LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - repeated int64 line_item_custom_field_ids = 11 - [(google.api.field_behavior) = OPTIONAL]; + // Schedule report to run on a daily basis. + DAILY = 5; - // Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - // dimensions. The index of this repeated field corresponds to the index on - // each dimension. For example, order_custom_field_ids[0] describes - // ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - repeated int64 order_custom_field_ids = 12 - [(google.api.field_behavior) = OPTIONAL]; + // Schedule report to run on a weekly basis. + WEEKLY = 6; - // Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - // dimensions. The index of this repeated field corresponds to the index on - // each dimension. For example, creative_custom_field_ids[0] describes - // CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - repeated int64 creative_custom_field_ids = 13 - [(google.api.field_behavior) = OPTIONAL]; + // Schedule report to run on a monthly basis. + MONTHLY = 7; + } - // Required. The type of this report. - Report.ReportType report_type = 8 [(google.api.field_behavior) = REQUIRED]; + // The scheduled values based on the frequency selected. + // WEEKLY - uses WeeklySchedule + // MONTHLY - uses MonthlySchedule + oneof frequency_schedule { + // Days of week to schedule report run. + WeeklySchedule weekly_schedule = 6; - // Optional. Include a time period column to introduce comparison columns in - // the report for each generated period. For example, set to "QUARTERS" here - // to have a column for each quarter present in the primary date range. If - // "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - // column will also include comparison values for its relative previous - // quarter. - Report.TimePeriodColumn time_period_column = 10 - [(google.api.field_behavior) = OPTIONAL]; + // Days of month to schedule report run. + MonthlySchedule monthly_schedule = 7; + } - // Optional. List of flags for this report. Used to flag rows in a result set - // based on a set of defined filters. - repeated Report.Flag flags = 14 [(google.api.field_behavior) = OPTIONAL]; + // Date for the first run of the report. + google.type.Date start_date = 1; - // Optional. Default sorts to apply to this report. - repeated Report.Sort sorts = 15 [(google.api.field_behavior) = OPTIONAL]; -} + // Date for the final run of the report. + google.type.Date end_date = 2; + + // Frequency to run report. + Frequency frequency = 3; + + // Indicates start time for schedule to run + // Will use the time_zone from `ReportDefinition`. Defaults + // to the publisher's time zone if not specified. + // + // For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this + // will be the time of day that the first report will run on the first day. + // For example, if the start time is 2:00 PM, and the frequency is + // THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, + // 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, + // 2:00 PM, 10:00 PM. + google.type.TimeOfDay start_time = 4; + } -// The options for a scheduled report. -message ScheduleOptions { // Condition for when to email the scheduled report. enum DeliveryCondition { // Never deliver report. @@ -3457,80 +239,6 @@ message ScheduleOptions { // Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT // is specified. - repeated Report.Flag flags = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// The schedule for the report -message Schedule { - // Days of week to schedule report run. - message WeeklySchedule { - // Specifies days of the week on which to run report. - repeated google.type.DayOfWeek weekly_scheduled_days = 1; - } - - // Days of Month to schedule report run. - message MonthlySchedule { - // Specifies days of the month to run report. Range is from 1-31. - // Will ignore days that are not valid for the given month. - repeated int32 monthly_scheduled_days = 1; - } - - // Frequency to run report. - enum Frequency { - // No Frequency specified. - FREQUENCY_UNSPECIFIED = 0; - - // Schedule report to run every hour. - HOURLY = 1; - - // Schedule report to run twice a day (every 12 hours). - TWO_TIMES_DAILY = 2; - - // Schedule report to run three times a day (every 8 hours). - THREE_TIMES_DAILY = 3; - - // Schedule report to run four times a day (every 6 hours). - FOUR_TIMES_DAILY = 4; - - // Schedule report to run on a daily basis. - DAILY = 5; - - // Schedule report to run on a weekly basis. - WEEKLY = 6; - - // Schedule report to run on a monthly basis. - MONTHLY = 7; - } - - // The scheduled values based on the frequency selected. - // WEEKLY - uses WeeklySchedule - // MONTHLY - uses MonthlySchedule - oneof frequency_schedule { - // Days of week to schedule report run. - WeeklySchedule weekly_schedule = 6; - - // Days of month to schedule report run. - MonthlySchedule monthly_schedule = 7; - } - - // Date for the first run of the report. - google.type.Date start_date = 1; - - // Date for the final run of the report. - google.type.Date end_date = 2; - - // Frequency to run report. - Frequency frequency = 3; - - // Indicates start time for schedule to run - // Will use the time_zone from `ReportDefinition`. Defaults - // to the publisher's time zone if not specified. - // - // For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this - // will be the time of day that the first report will run on the first day. - // For example, if the start time is 2:00 PM, and the frequency is - // THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, - // 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, - // 2:00 PM, 10:00 PM. - google.type.TimeOfDay start_time = 4; + repeated ReportDefinition.Flag flags = 3 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto index 1c072e680887..ee3a831d2a94 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.ads.admanager.v1; +import "google/ads/admanager/v1/report_definition.proto"; import "google/ads/admanager/v1/report_messages.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; @@ -74,7 +75,7 @@ service ReportService { } // Initiates the execution of an existing report asynchronously. Users can - // get the report by polling this operation via + // get the report by polling this operation using // `OperationsService.GetOperation`. // Poll every 5 seconds initially, with an exponential // backoff. Once a report is complete, the operation will contain a @@ -162,8 +163,8 @@ message ListReportsRequest { // Optional. The maximum number of `Reports` to return. The service may return // fewer than this value. If unspecified, at most 50 `Reports` will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. + // returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListReports` call. @@ -201,7 +202,7 @@ message ListReportsResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. @@ -245,7 +246,8 @@ message FetchReportResultRowsRequest { // Optional. The maximum number of rows to return. The service may return // fewer than this value. If unspecified, at most 1,000 rows will be returned. - // The maximum value is 10,000; values above 10,000 will be reduced to 10,000. + // The maximum value is 10,000; values greater than 10,000 will be reduced to + // 10,000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `FetchReportResultRows` @@ -256,7 +258,7 @@ message FetchReportResultRowsRequest { // The response message for the fetch report result rows endpoint. message FetchReportResultRowsResponse { // Up to `page_size` rows of report data. - repeated Report.DataTable.Row rows = 1; + repeated ReportDataTable.Row rows = 1; // The time at which the report was scheduled to run. For non-scheduled // reports, this is the time at which the report was requested to be run. @@ -265,12 +267,12 @@ message FetchReportResultRowsResponse { // The computed fixed date ranges this report includes. // Only returned with the first page of results (when page_token is not // included in the request). - repeated Report.DateRange.FixedDateRange date_ranges = 3; + repeated ReportDefinition.DateRange.FixedDateRange date_ranges = 3; // The computed comparison fixed date ranges this report includes. // Only returned with the first page of results (when page_token is not // included in the request). - repeated Report.DateRange.FixedDateRange comparison_date_ranges = 4; + repeated ReportDefinition.DateRange.FixedDateRange comparison_date_ranges = 4; // The total number of rows available from this report. Useful for // pagination. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_value.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_value.proto new file mode 100644 index 000000000000..63a19e3155ca --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_value.proto @@ -0,0 +1,73 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ReportValueProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a single value in a report. +message ReportValue { + // A list of integer values. + message IntList { + // The values + repeated int64 values = 1; + } + + // A list of string values. + message StringList { + // The values + repeated string values = 1; + } + + // A list of double values. + message DoubleList { + // The values + repeated double values = 1; + } + + // The value of the field, depends on the field's data format. + oneof value { + // For integer values. + int64 int_value = 1; + + // For double values. + double double_value = 2; + + // For string values. + string string_value = 3; + + // For boolean values. + bool bool_value = 4; + + // For lists of integer values. + IntList int_list_value = 6; + + // For lists of string values. + StringList string_list_value = 7; + + // For lists of double values. + DoubleList double_list_value = 9; + + // For bytes values. + bytes bytes_value = 8; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto index 5d454c96a2b9..c3ecafa15e35 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto @@ -76,7 +76,8 @@ message ListRolesRequest { // Optional. The maximum number of `Roles` to return. The service may return // fewer than this value. If unspecified, at most 50 `Roles` will be returned. - // The maximum value is 1000; values above 1000 will be coerced to 1000. + // The maximum value is 1000; values greater than 1000 will be coerced to + // 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListRoles` call. @@ -113,7 +114,7 @@ message ListRolesResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/site_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/site_enums.proto new file mode 100644 index 000000000000..290ebf837085 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/site_enums.proto @@ -0,0 +1,72 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "SiteEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [SiteDisapprovalReason][google.ads.admanager.v1.SiteDisapprovalReasonEnum.SiteDisapprovalReason] +message SiteDisapprovalReasonEnum { + // The list of possible policy violation types for a Site. + enum SiteDisapprovalReason { + // Default value. This value is unused. + SITE_DISAPPROVAL_REASON_UNSPECIFIED = 0; + + // The site has content that violates policy. + CONTENT = 1; + + // Generic error type. + OTHER = 2; + + // The parent must be an authorized seller of the child network's inventory. + OWNERSHIP = 3; + } +} + +// Wrapper message for +// [SiteApprovalStatus][google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus] +message SiteApprovalStatusEnum { + // Represents the approval status of a site. + enum SiteApprovalStatus { + // Default value. This value is unused. + SITE_APPROVAL_STATUS_UNSPECIFIED = 0; + + // The site has been approved to serve ads. + APPROVED = 1; + + // The site has been disapproved from serving ads. + DISAPPROVED = 2; + + // The default status with which a site is created. + DRAFT = 3; + + // The site has been deactivated and is not serving ads due to dormancy. It + // must be resubmitted for approval. + REQUIRES_REVIEW = 4; + + // Once the site is submitted for approval, its status changes from draft to + // unchecked. It will be reviwed with an estimated turn-around time of 24h. + // Such a site cannot serve ads. + UNCHECKED = 5; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/site_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/site_messages.proto new file mode 100644 index 000000000000..7e5f127792ad --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/site_messages.proto @@ -0,0 +1,77 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/site_enums.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "SiteMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// A Site represents a domain owned or represented by a network. For a parent +// network managing other networks as part of Multiple Customer Management +// "Manage Inventory" model, it could be the child's domain. +message Site { + option (google.api.resource) = { + type: "admanager.googleapis.com/Site" + pattern: "networks/{network_code}/sites/{site}" + plural: "sites" + singular: "site" + }; + + // Identifier. The resource name of the `Site`. + // Format: `networks/{network_code}/sites/{site_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The URL of the Site. + optional string url = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The network code of the child if the Site is being managed for an + // MCM child network, or null if owned by this network. + optional string child_network_code = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Status of the review performed on the Site by Google. + optional SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The latest Site approval status change time. + optional google.protobuf.Timestamp approval_status_update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provides reasons for disapproving the Site. It is null when + // the Site is not disapproved. + repeated DisapprovalReason disapproval_reasons = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents the reason for which Google disapproved the Site. +message DisapprovalReason { + // Output only. The type of policy violation found for the Site. + optional SiteDisapprovalReasonEnum.SiteDisapprovalReason type = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Additional details for the disapproval of the Site. + optional string details = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/site_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/site_service.proto new file mode 100644 index 000000000000..a5a49cd9cd12 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/site_service.proto @@ -0,0 +1,295 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/site_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "SiteServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `Site` objects. +service SiteService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `Site` object. + rpc GetSite(GetSiteRequest) returns (Site) { + option (google.api.http) = { + get: "/v1/{name=networks/*/sites/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `Site` objects. + rpc ListSites(ListSitesRequest) returns (ListSitesResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/sites" + }; + option (google.api.method_signature) = "parent"; + } + + // API to create a `Site` object. + rpc CreateSite(CreateSiteRequest) returns (Site) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/sites" + body: "site" + }; + option (google.api.method_signature) = "parent,site"; + } + + // API to batch create `Site` objects. + rpc BatchCreateSites(BatchCreateSitesRequest) + returns (BatchCreateSitesResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/sites:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to update a `Site` object. + rpc UpdateSite(UpdateSiteRequest) returns (Site) { + option (google.api.http) = { + patch: "/v1/{site.name=networks/*/sites/*}" + body: "site" + }; + option (google.api.method_signature) = "site,update_mask"; + } + + // API to batch update `Site` objects. + rpc BatchUpdateSites(BatchUpdateSitesRequest) + returns (BatchUpdateSitesResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/sites:batchUpdate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // Deactivates a list of `Site` objects. + rpc BatchDeactivateSites(BatchDeactivateSitesRequest) + returns (BatchDeactivateSitesResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/sites:batchDeactivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } + + // Submits a list of `Site` objects for approval. + rpc BatchSubmitSitesForApproval(BatchSubmitSitesForApprovalRequest) + returns (BatchSubmitSitesForApprovalResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/sites:batchSubmitForApproval" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } +} + +// Request object for `GetSite` method. +message GetSiteRequest { + // Required. The resource name of the Site. + // Format: `networks/{network_code}/sites/{site_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "admanager.googleapis.com/Site" } + ]; +} + +// Request object for `ListSites` method. +message ListSitesRequest { + // Required. The parent, which owns this collection of Sites. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `Sites` to return. The service may return + // fewer than this value. If unspecified, at most 50 `Sites` will be returned. + // The maximum value is 1000; values greater than 1000 will be coerced to + // 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListSites` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListSites` must match + // the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListSitesRequest` containing matching `Site` objects. +message ListSitesResponse { + // The `Site` objects from the specified network. + repeated Site sites = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `Site` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} + +// Request object for `CreateSite` method. +message CreateSiteRequest { + // Required. The parent resource where this `Site` will be created. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Site` to create. + Site site = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchCreateSites` method. +message BatchCreateSitesRequest { + // Required. The parent resource where `Sites` will be created. + // Format: `networks/{network_code}` + // The parent field in the CreateSiteRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Site` objects to create. + // A maximum of 100 objects can be created in a batch. + repeated CreateSiteRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchCreateSites` method. +message BatchCreateSitesResponse { + // The `Site` objects created. + repeated Site sites = 1; +} + +// Request object for `UpdateSite` method. +message UpdateSiteRequest { + // Required. The `Site` to update. + // + // The `Site`'s `name` is used to identify the `Site` to update. + Site site = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchUpdateSites` method. +message BatchUpdateSitesRequest { + // Required. The parent resource where `Sites` will be updated. + // Format: `networks/{network_code}` + // The parent field in the UpdateSiteRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Site` objects to update. + // A maximum of 100 objects can be updated in a batch. + repeated UpdateSiteRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchUpdateSites` method. +message BatchUpdateSitesResponse { + // The `Site` objects updated. + repeated Site sites = 1; +} + +// Request message for `BatchDeactivateSites` method. +message BatchDeactivateSitesRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `Site` objects to deactivate. + repeated string names = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchDeactivateSites` method. +message BatchDeactivateSitesResponse {} + +// Request message for `BatchSubmitSitesForApproval` method. +message BatchSubmitSitesForApprovalRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `Site` objects to submit for approval. + repeated string names = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchSubmitSitesForApproval` method. +message BatchSubmitSitesForApprovalResponse {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeting.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeting.proto index 4fe9c9a67a52..308b0c98514a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeting.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeting.proto @@ -63,6 +63,14 @@ message Targeting { // Optional. Used to target data segments. DataSegmentTargeting data_segment_targeting = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to target content. + ContentTargeting content_targeting = 15 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to target mobile applications. + MobileApplicationTargeting mobile_application_targeting = 18 + [(google.api.field_behavior) = OPTIONAL]; } // Represents a list of targeted and excluded geos. @@ -91,10 +99,30 @@ message TechnologyTargeting { BandwidthTargeting bandwidth_targeting = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Browser targeting dimension. + BrowserTargeting browser_targeting = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Browser language targeting dimension. + BrowserLanguageTargeting browser_language_targeting = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Device capability targeting dimension. + DeviceCapabilityTargeting device_capability_targeting = 6 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Device category targeting dimension. DeviceCategoryTargeting device_category_targeting = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Device manufacturer targeting dimension. + DeviceManufacturerTargeting device_manufacturer_targeting = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mobile carrier targeting dimension. + MobileCarrierTargeting mobile_carrier_targeting = 8 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Operating system targeting dimension. OperatingSystemTargeting operating_system_targeting = 2 [(google.api.field_behavior) = OPTIONAL]; @@ -125,6 +153,57 @@ message BandwidthTargeting { ]; } +// Browser Targeting. +// +// Allows publishers to target/exclude a browser type (e.g. Chrome, Firefox, +// Safari). For more information, see +// https://support.google.com/admanager/answer/2884033 (Targeting types > +// Browser). +message BrowserTargeting { + // Optional. A list of browser resource names that should be + // targeted/included. + repeated string targeted_browsers = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Browser" + } + ]; + + // Optional. A list of browser resource names that should be excluded. + repeated string excluded_browsers = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Browser" + } + ]; +} + +// Browser Language Targeting. +// +// For ads targeting mobile apps and their associated WebViews, the language +// used is based on the language specified by the user in their mobile device +// settings. If a browser has more than one language assigned to it, each +// language generates an impression. +message BrowserLanguageTargeting { + // Optional. A list of browser language resource names that should be + // targeted/included. + repeated string targeted_browser_languages = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/BrowserLanguage" + } + ]; + + // Optional. A list of browser language resource names that should be + // excluded. + repeated string excluded_browser_languages = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/BrowserLanguage" + } + ]; +} + // Represents a list of targeted and excluded device categories. message DeviceCategoryTargeting { // Optional. A list of device category resource names that should be @@ -145,6 +224,116 @@ message DeviceCategoryTargeting { ]; } +// Device Capability Targeting. +// +// Can be used to target/exclude users using mobile apps, ad requests resulting +// from apps built on the MRAID standard, or users on devices that are able to +// make phone calls versus devices that aren't able to make phone calls, such as +// tablets. +message DeviceCapabilityTargeting { + // Optional. A list of device capability resource names that should be + // targeted/included. + repeated string targeted_capabilities = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceCapability" + } + ]; + + // Optional. A list of device capability resource names that should be + // excluded. + repeated string excluded_capabilities = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceCapability" + } + ]; +} + +// Device Manufacturer Targeting. +// +// Can be used to target/exclude users on devices made by specific brands or +// companies, such as Apple, Google, Samsung and others. For more information, +// see https://support.google.com/admanager/answer/2884033 ("Targeting types > +// Device manufacturer"). +message DeviceManufacturerTargeting { + // Optional. A list of device manufacturer resource names that should be + // targeted/included. + repeated string targeted_device_manufacturers = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceManufacturer" + } + ]; + + // Optional. A list of device manufacturer resource names that should be + // excluded. + repeated string excluded_device_manufacturers = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceManufacturer" + } + ]; + + // Optional. A list of mobile device resource names that should be + // targeted/included. + repeated string targeted_mobile_devices = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileDevice" + } + ]; + + // Optional. A list of mobile device resource names that should be excluded. + repeated string excluded_mobile_devices = 10 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileDevice" + } + ]; + + // Optional. A list of mobile device submodel resource names that should be + // targeted/included. + repeated string targeted_mobile_device_submodels = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileDeviceSubmodel" + } + ]; + + // Optional. A list of mobile device submodel resource names that should be + // excluded. + repeated string excluded_mobile_device_submodels = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileDeviceSubmodel" + } + ]; +} + +// Mobile Carrier Targeting. +// +// Can be used to target/exclude a variety of mobile carriers, such as AT&T, +// Verizon, or T-Mobile. +message MobileCarrierTargeting { + // Optional. A list of mobile carrier resource names that should be + // targeted/included. + repeated string targeted_mobile_carriers = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileCarrier" + } + ]; + + // Optional. A list of mobile carrier resource names that should be excluded. + repeated string excluded_mobile_carriers = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/MobileCarrier" + } + ]; +} + // Operating System Targeting message OperatingSystemTargeting { // Optional. A list of operating system resource names that should be @@ -245,6 +434,14 @@ message CustomTargetingClause { // Optional. Leaf targeting expressions for custom key/values. repeated CustomTargetingLiteral custom_targeting_literals = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Leaf targeting expressions for audience segments. + repeated AudienceSegmentTargeting audience_segment_targetings = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Leaf targeting expressions for cms metadata. + repeated CmsMetadataTargeting cms_metadata_targetings = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Represents targeting for custom key/values. The values are ORed together. @@ -270,6 +467,43 @@ message CustomTargetingLiteral { ]; } +// Represents targeting for audience segments. The values are combined in a +// logical `OR`. +message AudienceSegmentTargeting { + // Whether this expression is negatively targeted, meaning it matches + // ad requests that exclude the below values. + optional bool negative = 1; + + // Optional. The targeted audience segments. + // + // This is either the resource name of a first-party audience segment or an + // alias to the effective third-party audience segment. Third-party audience + // segment resource names containing `~direct` or `~global` will be normalized + // by the server. For example, `networks/1234/audienceSegments/4567~direct` + // will be normalized to `networks/1234/audienceSegments/4567`. + repeated string audience_segments = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AudienceSegment" + } + ]; +} + +// Represents targeting for CMS metadata. The values are ORed together. +message CmsMetadataTargeting { + // Whether this expression is negatively targeted, meaning it matches + // ad requests that exclude the below values. + optional bool negative = 1; + + // Optional. The resource names of the targeted CMS metadata values. + repeated string cms_metadata_values = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CmsMetadataValue" + } + ]; +} + // User Domain Targeting message UserDomainTargeting { // Optional. A list of user domains that should be targeted/included. @@ -326,3 +560,80 @@ message DataSegmentTargeting { bool has_data_segment_targeting = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Content Targeting +// +// Targeted/excluded content entities and bundles. +// +message ContentTargeting { + // Optional. The resource names of the + // [Content][google.ads.admanager.v1.Content] that should be + // targeted/included. + repeated string targeted_content = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Content" + } + ]; + + // Optional. The resource names of the + // [Content][google.ads.admanager.v1.Content] that should be + // excluded. + repeated string excluded_content = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Content" + } + ]; + + // Optional. The resource names of the + // [ContentBundles][google.ads.admanager.v1.ContentBundle] that + // should be targeted/included. + repeated string targeted_content_bundles = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/ContentBundle" + } + ]; + + // Optional. The resource names of the + // [ContentBundles][google.ads.admanager.v1.ContentBundle] that + // should be excluded. + repeated string excluded_content_bundles = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/ContentBundle" + } + ]; +} + +// Mobile Application Targeting +message MobileApplicationTargeting { + // The mobile application targeting. + oneof targeting { + // Optional. The targeted/excluded first-party mobile applications. + FirstPartyMobileApplicationTargeting first_party_targeting = 1 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// First-party mobile application targeting. +message FirstPartyMobileApplicationTargeting { + // Optional. The resource names of the first-party applications that should be + // targeted. + repeated string targeted_applications = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Application" + } + ]; + + // Optional. The resource names of the first-party applications that should be + // excluded. + repeated string excluded_applications = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Application" + } + ]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto index df2e77d06888..0fdb3710e2fd 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto @@ -119,7 +119,7 @@ message ListTaxonomyCategoriesResponse { // If a filter was included in the request, this reflects the total number // after the filtering is applied. // - // `total_size` will not be calculated in the response unless it has been + // `total_size` won't be calculated in the response unless it has been // included in a response field mask. The response field mask can be provided // to the method by using the URL parameter `$fields` or `fields`, or by using // the HTTP/gRPC header `X-Goog-FieldMask`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto index f27d2c42b7c8..5e5bb4f3420e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto @@ -36,6 +36,9 @@ message TaxonomyTypeEnum { // The IAB Audience Taxonomy v1.1. TAXONOMY_IAB_AUDIENCE_1_1 = 3; + // The IAB Content Taxonomy v1.0. + TAXONOMY_IAB_CONTENT_1_0 = 8; + // The IAB Content Taxonomy v2.1. TAXONOMY_IAB_CONTENT_2_1 = 4; diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_enums.proto new file mode 100644 index 000000000000..c2cc4f578afe --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_enums.proto @@ -0,0 +1,62 @@ +// Copyright 2025 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.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "TeamEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [TeamStatus][google.ads.admanager.v1.TeamStatusEnum.TeamStatus] +message TeamStatusEnum { + // Represents the status of a team, whether it is active or inactive. + enum TeamStatus { + // Default value. This value is unused. + TEAM_STATUS_UNSPECIFIED = 0; + + // The status of an active team. + ACTIVE = 1; + + // The status of an inactive team. + INACTIVE = 2; + } +} + +// Wrapper message for +// [TeamAccessType][google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType] +message TeamAccessTypeEnum { + // Represents the types of team access supported for orders. + enum TeamAccessType { + // Default value. This value is unused. + TEAM_ACCESS_TYPE_UNSPECIFIED = 0; + + // The level of access in which team members can't view or edit a team's + // orders. + NONE = 1; + + // The level of access in which team members can only view a team's orders. + READ_ONLY = 2; + + // The level of access in which team members can view and edit a team's + // orders. + READ_WRITE = 3; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto index 7eb220921bb5..a2fe7e2a474e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.ads.admanager.v1; +import "google/ads/admanager/v1/team_enums.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; @@ -39,4 +40,33 @@ message Team { // Identifier. The resource name of the `Team`. // Format: `networks/{network_code}/teams/{team_id}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The name of the Team. This value has a maximum length of 127 + // characters. + optional string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the Team. This value has a maximum length of + // 255 characters. + optional string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The status of the Team. This value determines the visibility + // of the team in the UI. + optional TeamStatusEnum.TeamStatus status = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether or not users on this team have access to all companies. + // If this value is true, then an error will be thrown if an attempt is made + // to associate this team with a Company. + optional bool all_companies_access = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not users on this team have access to all inventory. + // If this value is true, then an error will be thrown if an attempt is made + // to associate this team with an AdUnit. + optional bool all_inventory_access = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default access to orders for users on this team. + optional TeamAccessTypeEnum.TeamAccessType access_type = 8 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_service.proto new file mode 100644 index 000000000000..54347c7eb933 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_service.proto @@ -0,0 +1,303 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/team_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "TeamServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `Team` objects. +service TeamService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `Team` object. + rpc GetTeam(GetTeamRequest) returns (Team) { + option (google.api.http) = { + get: "/v1/{name=networks/*/teams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `Team` objects. + rpc ListTeams(ListTeamsRequest) returns (ListTeamsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/teams" + }; + option (google.api.method_signature) = "parent"; + } + + // API to create a `Team` object. + rpc CreateTeam(CreateTeamRequest) returns (Team) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/teams" + body: "team" + }; + option (google.api.method_signature) = "parent,team"; + } + + // API to batch create `Team` objects. + rpc BatchCreateTeams(BatchCreateTeamsRequest) + returns (BatchCreateTeamsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/teams:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to update a `Team` object. + rpc UpdateTeam(UpdateTeamRequest) returns (Team) { + option (google.api.http) = { + patch: "/v1/{team.name=networks/*/teams/*}" + body: "team" + }; + option (google.api.method_signature) = "team,update_mask"; + } + + // API to batch update `Team` objects. + rpc BatchUpdateTeams(BatchUpdateTeamsRequest) + returns (BatchUpdateTeamsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/teams:batchUpdate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to batch activate `Team` objects. + rpc BatchActivateTeams(BatchActivateTeamsRequest) + returns (BatchActivateTeamsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/teams:batchActivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } + + // API to batch deactivate `Team` objects. + rpc BatchDeactivateTeams(BatchDeactivateTeamsRequest) + returns (BatchDeactivateTeamsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/teams:batchDeactivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } +} + +// Request object for `GetTeam` method. +message GetTeamRequest { + // Required. The resource name of the Team. + // Format: `networks/{network_code}/teams/{team_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "admanager.googleapis.com/Team" } + ]; +} + +// Request object for `ListTeams` method. +message ListTeamsRequest { + // Required. The parent, which owns this collection of Teams. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `Teams` to return. The service may return + // fewer than this value. If unspecified, at most 50 `Teams` will be returned. + // The maximum value is 1000; values greater than 1000 will be coerced to + // 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListTeams` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListTeams` must match + // the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListTeamsRequest` containing matching `Team` objects. +message ListTeamsResponse { + // The `Team` objects from the specified network. + repeated Team teams = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `Team` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} + +// Request object for `CreateTeam` method. +message CreateTeamRequest { + // Required. The parent resource where this `Team` will be created. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Team` to create. + Team team = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchCreateTeams` method. +message BatchCreateTeamsRequest { + // Required. The parent resource where `Teams` will be created. + // Format: `networks/{network_code}` + // The parent field in the CreateTeamRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Team` objects to create. + // A maximum of 100 objects can be created in a batch. + repeated CreateTeamRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchCreateTeams` method. +message BatchCreateTeamsResponse { + // The `Team` objects created. + repeated Team teams = 1; +} + +// Request object for `UpdateTeam` method. +message UpdateTeamRequest { + // Required. The `Team` to update. + // + // The `Team`'s `name` is used to identify the `Team` to update. + Team team = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchUpdateTeams` method. +message BatchUpdateTeamsRequest { + // Required. The parent resource where `Teams` will be updated. + // Format: `networks/{network_code}` + // The parent field in the UpdateTeamRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `Team` objects to update. + // A maximum of 100 objects can be updated in a batch. + repeated UpdateTeamRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchUpdateTeams` method. +message BatchUpdateTeamsResponse { + // The `Team` objects updated. + repeated Team teams = 1; +} + +// Request message for `BatchActivateTeams` method. +message BatchActivateTeamsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `Team`s to activate. + // Format: `networks/{network_code}/teams/{team_id}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "admanager.googleapis.com/Team" } + ]; +} + +// Response object for `BatchActivateTeams` method. +message BatchActivateTeamsResponse {} + +// Request message for `BatchDeactivateTeams` method. +message BatchDeactivateTeamsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `Team`s to deactivate. + // Format: `networks/{network_code}/teams/{team_id}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "admanager.googleapis.com/Team" } + ]; +} + +// Response object for `BatchDeactivateTeams` method. +message BatchDeactivateTeamsResponse {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/web_property.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/web_property.proto new file mode 100644 index 000000000000..3935c949281d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/web_property.proto @@ -0,0 +1,54 @@ +// Copyright 2025 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.admanager.v1; + +import "google/ads/admanager/v1/exchange_syndication_product_enum.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "WebPropertyProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a web property. +message WebProperty { + option (google.api.resource) = { + type: "admanager.googleapis.com/WebProperty" + pattern: "networks/{network_code}/webProperties/{web_property}" + plural: "webProperties" + singular: "webProperty" + }; + + // Identifier. The resource name of the WebProperty. + // Format: + // `networks/{network_code}/webProperties/{web_property_code}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The `WebProperty` code. + string web_property_code = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ExchangeSyndicationProduct associated with this WebProperty. + ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The `WebProperty` ID. + int64 web_property_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/AsyncBatchAllowAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/AsyncBatchAllowAdReviewCenterAds.java new file mode 100644 index 000000000000..52a04811a036 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/AsyncBatchAllowAdReviewCenterAds.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_async] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.WebPropertyName; +import com.google.api.core.ApiFuture; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncBatchAllowAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + asyncBatchAllowAdReviewCenterAds(); + } + + public static void asyncBatchAllowAdReviewCenterAds() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + BatchAllowAdReviewCenterAdsRequest request = + BatchAllowAdReviewCenterAdsRequest.newBuilder() + .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/AsyncBatchAllowAdReviewCenterAdsLRO.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/AsyncBatchAllowAdReviewCenterAdsLRO.java new file mode 100644 index 000000000000..0461805caed2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/AsyncBatchAllowAdReviewCenterAdsLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_LRO_async] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.WebPropertyName; +import com.google.api.gax.longrunning.OperationFuture; +import java.util.ArrayList; + +public class AsyncBatchAllowAdReviewCenterAdsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchAllowAdReviewCenterAdsLRO(); + } + + public static void asyncBatchAllowAdReviewCenterAdsLRO() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + BatchAllowAdReviewCenterAdsRequest request = + BatchAllowAdReviewCenterAdsRequest.newBuilder() + .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString()) + .addAllNames(new ArrayList()) + .build(); + OperationFuture + future = + adReviewCenterAdServiceClient + .batchAllowAdReviewCenterAdsOperationCallable() + .futureCall(request); + // Do something. + BatchAllowAdReviewCenterAdsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_LRO_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAds.java new file mode 100644 index 000000000000..d95f6b4f0a2c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAds.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.WebPropertyName; +import java.util.ArrayList; + +public class SyncBatchAllowAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + syncBatchAllowAdReviewCenterAds(); + } + + public static void syncBatchAllowAdReviewCenterAds() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + BatchAllowAdReviewCenterAdsRequest request = + BatchAllowAdReviewCenterAdsRequest.newBuilder() + .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchAllowAdReviewCenterAdsResponse response = + adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsAsync(request).get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAdsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAdsString.java new file mode 100644 index 000000000000..613317aff47a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAdsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_String_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.WebPropertyName; + +public class SyncBatchAllowAdReviewCenterAdsString { + + public static void main(String[] args) throws Exception { + syncBatchAllowAdReviewCenterAdsString(); + } + + public static void syncBatchAllowAdReviewCenterAdsString() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + String parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString(); + BatchAllowAdReviewCenterAdsResponse response = + adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsAsync(parent).get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAdsWebpropertyname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAdsWebpropertyname.java new file mode 100644 index 000000000000..ff0e22e7a592 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAdsWebpropertyname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_Webpropertyname_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.WebPropertyName; + +public class SyncBatchAllowAdReviewCenterAdsWebpropertyname { + + public static void main(String[] args) throws Exception { + syncBatchAllowAdReviewCenterAdsWebpropertyname(); + } + + public static void syncBatchAllowAdReviewCenterAdsWebpropertyname() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]"); + BatchAllowAdReviewCenterAdsResponse response = + adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsAsync(parent).get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_Webpropertyname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/AsyncBatchBlockAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/AsyncBatchBlockAdReviewCenterAds.java new file mode 100644 index 000000000000..63f48bc9ec4b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/AsyncBatchBlockAdReviewCenterAds.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_async] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.WebPropertyName; +import com.google.api.core.ApiFuture; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncBatchBlockAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + asyncBatchBlockAdReviewCenterAds(); + } + + public static void asyncBatchBlockAdReviewCenterAds() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + BatchBlockAdReviewCenterAdsRequest request = + BatchBlockAdReviewCenterAdsRequest.newBuilder() + .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/AsyncBatchBlockAdReviewCenterAdsLRO.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/AsyncBatchBlockAdReviewCenterAdsLRO.java new file mode 100644 index 000000000000..6c1eb5350918 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/AsyncBatchBlockAdReviewCenterAdsLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_LRO_async] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.WebPropertyName; +import com.google.api.gax.longrunning.OperationFuture; +import java.util.ArrayList; + +public class AsyncBatchBlockAdReviewCenterAdsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchBlockAdReviewCenterAdsLRO(); + } + + public static void asyncBatchBlockAdReviewCenterAdsLRO() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + BatchBlockAdReviewCenterAdsRequest request = + BatchBlockAdReviewCenterAdsRequest.newBuilder() + .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString()) + .addAllNames(new ArrayList()) + .build(); + OperationFuture + future = + adReviewCenterAdServiceClient + .batchBlockAdReviewCenterAdsOperationCallable() + .futureCall(request); + // Do something. + BatchBlockAdReviewCenterAdsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_LRO_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/SyncBatchBlockAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/SyncBatchBlockAdReviewCenterAds.java new file mode 100644 index 000000000000..1217821da18d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/SyncBatchBlockAdReviewCenterAds.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.WebPropertyName; +import java.util.ArrayList; + +public class SyncBatchBlockAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + syncBatchBlockAdReviewCenterAds(); + } + + public static void syncBatchBlockAdReviewCenterAds() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + BatchBlockAdReviewCenterAdsRequest request = + BatchBlockAdReviewCenterAdsRequest.newBuilder() + .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchBlockAdReviewCenterAdsResponse response = + adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsAsync(request).get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/SyncBatchBlockAdReviewCenterAdsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/SyncBatchBlockAdReviewCenterAdsString.java new file mode 100644 index 000000000000..e0c9d4bbe6fa --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/SyncBatchBlockAdReviewCenterAdsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_String_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.WebPropertyName; + +public class SyncBatchBlockAdReviewCenterAdsString { + + public static void main(String[] args) throws Exception { + syncBatchBlockAdReviewCenterAdsString(); + } + + public static void syncBatchBlockAdReviewCenterAdsString() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + String parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString(); + BatchBlockAdReviewCenterAdsResponse response = + adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsAsync(parent).get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/SyncBatchBlockAdReviewCenterAdsWebpropertyname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/SyncBatchBlockAdReviewCenterAdsWebpropertyname.java new file mode 100644 index 000000000000..5ef7412d96fc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/batchblockadreviewcenterads/SyncBatchBlockAdReviewCenterAdsWebpropertyname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_Webpropertyname_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.WebPropertyName; + +public class SyncBatchBlockAdReviewCenterAdsWebpropertyname { + + public static void main(String[] args) throws Exception { + syncBatchBlockAdReviewCenterAdsWebpropertyname(); + } + + public static void syncBatchBlockAdReviewCenterAdsWebpropertyname() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]"); + BatchBlockAdReviewCenterAdsResponse response = + adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsAsync(parent).get(); + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_Webpropertyname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..2578c72e14de --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.AdReviewCenterAdServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + AdReviewCenterAdServiceSettings adReviewCenterAdServiceSettings = + AdReviewCenterAdServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create(adReviewCenterAdServiceSettings); + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..839e11f90618 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.AdReviewCenterAdServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + AdReviewCenterAdServiceSettings adReviewCenterAdServiceSettings = + AdReviewCenterAdServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create(adReviewCenterAdServiceSettings); + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/AsyncSearchAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/AsyncSearchAdReviewCenterAds.java new file mode 100644 index 000000000000..b927d8bc8363 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/AsyncSearchAdReviewCenterAds.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_async] +import com.google.ads.admanager.v1.AdReviewCenterAd; +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.WebPropertyName; +import com.google.api.core.ApiFuture; +import com.google.type.Interval; +import java.util.ArrayList; + +public class AsyncSearchAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + asyncSearchAdReviewCenterAds(); + } + + public static void asyncSearchAdReviewCenterAds() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + SearchAdReviewCenterAdsRequest request = + SearchAdReviewCenterAdsRequest.newBuilder() + .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .addAllAdReviewCenterAdId(new ArrayList()) + .setDateTimeRange(Interval.newBuilder().build()) + .addAllSearchText(new ArrayList()) + .addAllBuyerAccountId(new ArrayList()) + .build(); + ApiFuture future = + adReviewCenterAdServiceClient.searchAdReviewCenterAdsPagedCallable().futureCall(request); + // Do something. + for (AdReviewCenterAd element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/AsyncSearchAdReviewCenterAdsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/AsyncSearchAdReviewCenterAdsPaged.java new file mode 100644 index 000000000000..70dc954f1b01 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/AsyncSearchAdReviewCenterAdsPaged.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_Paged_async] +import com.google.ads.admanager.v1.AdReviewCenterAd; +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsResponse; +import com.google.ads.admanager.v1.WebPropertyName; +import com.google.common.base.Strings; +import com.google.type.Interval; +import java.util.ArrayList; + +public class AsyncSearchAdReviewCenterAdsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchAdReviewCenterAdsPaged(); + } + + public static void asyncSearchAdReviewCenterAdsPaged() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + SearchAdReviewCenterAdsRequest request = + SearchAdReviewCenterAdsRequest.newBuilder() + .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .addAllAdReviewCenterAdId(new ArrayList()) + .setDateTimeRange(Interval.newBuilder().build()) + .addAllSearchText(new ArrayList()) + .addAllBuyerAccountId(new ArrayList()) + .build(); + while (true) { + SearchAdReviewCenterAdsResponse response = + adReviewCenterAdServiceClient.searchAdReviewCenterAdsCallable().call(request); + for (AdReviewCenterAd element : response.getAdReviewCenterAdsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/SyncSearchAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/SyncSearchAdReviewCenterAds.java new file mode 100644 index 000000000000..dfe5d05d87dd --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/SyncSearchAdReviewCenterAds.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_sync] +import com.google.ads.admanager.v1.AdReviewCenterAd; +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.SearchAdReviewCenterAdsRequest; +import com.google.ads.admanager.v1.WebPropertyName; +import com.google.type.Interval; +import java.util.ArrayList; + +public class SyncSearchAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + syncSearchAdReviewCenterAds(); + } + + public static void syncSearchAdReviewCenterAds() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + SearchAdReviewCenterAdsRequest request = + SearchAdReviewCenterAdsRequest.newBuilder() + .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .addAllAdReviewCenterAdId(new ArrayList()) + .setDateTimeRange(Interval.newBuilder().build()) + .addAllSearchText(new ArrayList()) + .addAllBuyerAccountId(new ArrayList()) + .build(); + for (AdReviewCenterAd element : + adReviewCenterAdServiceClient.searchAdReviewCenterAds(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/SyncSearchAdReviewCenterAdsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/SyncSearchAdReviewCenterAdsString.java new file mode 100644 index 000000000000..8d70767cdc23 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/SyncSearchAdReviewCenterAdsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_String_sync] +import com.google.ads.admanager.v1.AdReviewCenterAd; +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.WebPropertyName; + +public class SyncSearchAdReviewCenterAdsString { + + public static void main(String[] args) throws Exception { + syncSearchAdReviewCenterAdsString(); + } + + public static void syncSearchAdReviewCenterAdsString() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + String parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString(); + for (AdReviewCenterAd element : + adReviewCenterAdServiceClient.searchAdReviewCenterAds(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/SyncSearchAdReviewCenterAdsWebpropertyname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/SyncSearchAdReviewCenterAdsWebpropertyname.java new file mode 100644 index 000000000000..a71e5c7d2477 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservice/searchadreviewcenterads/SyncSearchAdReviewCenterAdsWebpropertyname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_Webpropertyname_sync] +import com.google.ads.admanager.v1.AdReviewCenterAd; +import com.google.ads.admanager.v1.AdReviewCenterAdServiceClient; +import com.google.ads.admanager.v1.WebPropertyName; + +public class SyncSearchAdReviewCenterAdsWebpropertyname { + + public static void main(String[] args) throws Exception { + syncSearchAdReviewCenterAdsWebpropertyname(); + } + + public static void syncSearchAdReviewCenterAdsWebpropertyname() 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = + AdReviewCenterAdServiceClient.create()) { + WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]"); + for (AdReviewCenterAd element : + adReviewCenterAdServiceClient.searchAdReviewCenterAds(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_Webpropertyname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservicesettings/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservicesettings/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAds.java new file mode 100644 index 000000000000..67ea9cdfaf60 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservicesettings/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAds.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdServiceSettings_BatchAllowAdReviewCenterAds_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceSettings; +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import java.time.Duration; + +public class SyncBatchAllowAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + syncBatchAllowAdReviewCenterAds(); + } + + public static void syncBatchAllowAdReviewCenterAds() 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 + AdReviewCenterAdServiceSettings.Builder adReviewCenterAdServiceSettingsBuilder = + AdReviewCenterAdServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + adReviewCenterAdServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END admanager_v1_generated_AdReviewCenterAdServiceSettings_BatchAllowAdReviewCenterAds_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservicesettings/searchadreviewcenterads/SyncSearchAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservicesettings/searchadreviewcenterads/SyncSearchAdReviewCenterAds.java new file mode 100644 index 000000000000..1aef3b87b5a4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adreviewcenteradservicesettings/searchadreviewcenterads/SyncSearchAdReviewCenterAds.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdReviewCenterAdServiceSettings_SearchAdReviewCenterAds_sync] +import com.google.ads.admanager.v1.AdReviewCenterAdServiceSettings; +import java.time.Duration; + +public class SyncSearchAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + syncSearchAdReviewCenterAds(); + } + + public static void syncSearchAdReviewCenterAds() 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 + AdReviewCenterAdServiceSettings.Builder adReviewCenterAdServiceSettingsBuilder = + AdReviewCenterAdServiceSettings.newBuilder(); + adReviewCenterAdServiceSettingsBuilder + .searchAdReviewCenterAdsSettings() + .setRetrySettings( + adReviewCenterAdServiceSettingsBuilder + .searchAdReviewCenterAdsSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AdReviewCenterAdServiceSettings adReviewCenterAdServiceSettings = + adReviewCenterAdServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_AdReviewCenterAdServiceSettings_SearchAdReviewCenterAds_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..361f8b90252f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.ApplicationServiceClient; +import com.google.ads.admanager.v1.ApplicationServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + ApplicationServiceSettings applicationServiceSettings = + ApplicationServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ApplicationServiceClient applicationServiceClient = + ApplicationServiceClient.create(applicationServiceSettings); + } +} +// [END admanager_v1_generated_ApplicationService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..c178fe73341c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.ApplicationServiceClient; +import com.google.ads.admanager.v1.ApplicationServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + ApplicationServiceSettings applicationServiceSettings = + ApplicationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ApplicationServiceClient applicationServiceClient = + ApplicationServiceClient.create(applicationServiceSettings); + } +} +// [END admanager_v1_generated_ApplicationService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/AsyncGetApplication.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/AsyncGetApplication.java new file mode 100644 index 000000000000..8a4e3ef98bef --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/AsyncGetApplication.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_GetApplication_async] +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.ApplicationName; +import com.google.ads.admanager.v1.ApplicationServiceClient; +import com.google.ads.admanager.v1.GetApplicationRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetApplication { + + public static void main(String[] args) throws Exception { + asyncGetApplication(); + } + + public static void asyncGetApplication() 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) { + GetApplicationRequest request = + GetApplicationRequest.newBuilder() + .setName(ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString()) + .build(); + ApiFuture future = + applicationServiceClient.getApplicationCallable().futureCall(request); + // Do something. + Application response = future.get(); + } + } +} +// [END admanager_v1_generated_ApplicationService_GetApplication_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/SyncGetApplication.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/SyncGetApplication.java new file mode 100644 index 000000000000..d850eba47112 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/SyncGetApplication.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_GetApplication_sync] +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.ApplicationName; +import com.google.ads.admanager.v1.ApplicationServiceClient; +import com.google.ads.admanager.v1.GetApplicationRequest; + +public class SyncGetApplication { + + public static void main(String[] args) throws Exception { + syncGetApplication(); + } + + public static void syncGetApplication() 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) { + GetApplicationRequest request = + GetApplicationRequest.newBuilder() + .setName(ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString()) + .build(); + Application response = applicationServiceClient.getApplication(request); + } + } +} +// [END admanager_v1_generated_ApplicationService_GetApplication_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/SyncGetApplicationApplicationname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/SyncGetApplicationApplicationname.java new file mode 100644 index 000000000000..8b15aa7d2cae --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/SyncGetApplicationApplicationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_GetApplication_Applicationname_sync] +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.ApplicationName; +import com.google.ads.admanager.v1.ApplicationServiceClient; + +public class SyncGetApplicationApplicationname { + + public static void main(String[] args) throws Exception { + syncGetApplicationApplicationname(); + } + + public static void syncGetApplicationApplicationname() 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) { + ApplicationName name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]"); + Application response = applicationServiceClient.getApplication(name); + } + } +} +// [END admanager_v1_generated_ApplicationService_GetApplication_Applicationname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/SyncGetApplicationString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/SyncGetApplicationString.java new file mode 100644 index 000000000000..d521abb4adee --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/getapplication/SyncGetApplicationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_GetApplication_String_sync] +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.ApplicationName; +import com.google.ads.admanager.v1.ApplicationServiceClient; + +public class SyncGetApplicationString { + + public static void main(String[] args) throws Exception { + syncGetApplicationString(); + } + + public static void syncGetApplicationString() 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) { + String name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString(); + Application response = applicationServiceClient.getApplication(name); + } + } +} +// [END admanager_v1_generated_ApplicationService_GetApplication_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/AsyncListApplications.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/AsyncListApplications.java new file mode 100644 index 000000000000..d589e3c1729e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/AsyncListApplications.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_ListApplications_async] +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.ApplicationServiceClient; +import com.google.ads.admanager.v1.ListApplicationsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListApplications { + + public static void main(String[] args) throws Exception { + asyncListApplications(); + } + + public static void asyncListApplications() 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + applicationServiceClient.listApplicationsPagedCallable().futureCall(request); + // Do something. + for (Application element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ApplicationService_ListApplications_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/AsyncListApplicationsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/AsyncListApplicationsPaged.java new file mode 100644 index 000000000000..7bb180f6129f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/AsyncListApplicationsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_ListApplications_Paged_async] +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.ApplicationServiceClient; +import com.google.ads.admanager.v1.ListApplicationsRequest; +import com.google.ads.admanager.v1.ListApplicationsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListApplicationsPaged { + + public static void main(String[] args) throws Exception { + asyncListApplicationsPaged(); + } + + public static void asyncListApplicationsPaged() 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListApplicationsResponse response = + applicationServiceClient.listApplicationsCallable().call(request); + for (Application element : response.getApplicationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_ApplicationService_ListApplications_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/SyncListApplications.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/SyncListApplications.java new file mode 100644 index 000000000000..588ac41bc783 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/SyncListApplications.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_ListApplications_sync] +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.ApplicationServiceClient; +import com.google.ads.admanager.v1.ListApplicationsRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListApplications { + + public static void main(String[] args) throws Exception { + syncListApplications(); + } + + public static void syncListApplications() 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (Application element : applicationServiceClient.listApplications(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ApplicationService_ListApplications_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/SyncListApplicationsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/SyncListApplicationsNetworkname.java new file mode 100644 index 000000000000..d6f551065f41 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/SyncListApplicationsNetworkname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_ListApplications_Networkname_sync] +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.ApplicationServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListApplicationsNetworkname { + + public static void main(String[] args) throws Exception { + syncListApplicationsNetworkname(); + } + + public static void syncListApplicationsNetworkname() 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (Application element : applicationServiceClient.listApplications(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ApplicationService_ListApplications_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/SyncListApplicationsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/SyncListApplicationsString.java new file mode 100644 index 000000000000..ae30f4458828 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservice/listapplications/SyncListApplicationsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationService_ListApplications_String_sync] +import com.google.ads.admanager.v1.Application; +import com.google.ads.admanager.v1.ApplicationServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListApplicationsString { + + public static void main(String[] args) throws Exception { + syncListApplicationsString(); + } + + public static void syncListApplicationsString() 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (Application element : applicationServiceClient.listApplications(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ApplicationService_ListApplications_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservicesettings/getapplication/SyncGetApplication.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservicesettings/getapplication/SyncGetApplication.java new file mode 100644 index 000000000000..1918b01ffcc8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/applicationservicesettings/getapplication/SyncGetApplication.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ApplicationServiceSettings_GetApplication_sync] +import com.google.ads.admanager.v1.ApplicationServiceSettings; +import java.time.Duration; + +public class SyncGetApplication { + + public static void main(String[] args) throws Exception { + syncGetApplication(); + } + + public static void syncGetApplication() 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 + ApplicationServiceSettings.Builder applicationServiceSettingsBuilder = + ApplicationServiceSettings.newBuilder(); + applicationServiceSettingsBuilder + .getApplicationSettings() + .setRetrySettings( + applicationServiceSettingsBuilder + .getApplicationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ApplicationServiceSettings applicationServiceSettings = + applicationServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ApplicationServiceSettings_GetApplication_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b1c4692f89d3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; +import com.google.ads.admanager.v1.AudienceSegmentServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + AudienceSegmentServiceSettings audienceSegmentServiceSettings = + AudienceSegmentServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create(audienceSegmentServiceSettings); + } +} +// [END admanager_v1_generated_AudienceSegmentService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..4617f2a9ba01 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; +import com.google.ads.admanager.v1.AudienceSegmentServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + AudienceSegmentServiceSettings audienceSegmentServiceSettings = + AudienceSegmentServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create(audienceSegmentServiceSettings); + } +} +// [END admanager_v1_generated_AudienceSegmentService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/AsyncGetAudienceSegment.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/AsyncGetAudienceSegment.java new file mode 100644 index 000000000000..553915265587 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/AsyncGetAudienceSegment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_async] +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.AudienceSegmentName; +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; +import com.google.ads.admanager.v1.GetAudienceSegmentRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetAudienceSegment { + + public static void main(String[] args) throws Exception { + asyncGetAudienceSegment(); + } + + public static void asyncGetAudienceSegment() 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 (AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create()) { + GetAudienceSegmentRequest request = + GetAudienceSegmentRequest.newBuilder() + .setName(AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString()) + .build(); + ApiFuture future = + audienceSegmentServiceClient.getAudienceSegmentCallable().futureCall(request); + // Do something. + AudienceSegment response = future.get(); + } + } +} +// [END admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/SyncGetAudienceSegment.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/SyncGetAudienceSegment.java new file mode 100644 index 000000000000..e825db5e925f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/SyncGetAudienceSegment.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_sync] +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.AudienceSegmentName; +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; +import com.google.ads.admanager.v1.GetAudienceSegmentRequest; + +public class SyncGetAudienceSegment { + + public static void main(String[] args) throws Exception { + syncGetAudienceSegment(); + } + + public static void syncGetAudienceSegment() 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 (AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create()) { + GetAudienceSegmentRequest request = + GetAudienceSegmentRequest.newBuilder() + .setName(AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString()) + .build(); + AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(request); + } + } +} +// [END admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/SyncGetAudienceSegmentAudiencesegmentname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/SyncGetAudienceSegmentAudiencesegmentname.java new file mode 100644 index 000000000000..018784b2be03 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/SyncGetAudienceSegmentAudiencesegmentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_Audiencesegmentname_sync] +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.AudienceSegmentName; +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; + +public class SyncGetAudienceSegmentAudiencesegmentname { + + public static void main(String[] args) throws Exception { + syncGetAudienceSegmentAudiencesegmentname(); + } + + public static void syncGetAudienceSegmentAudiencesegmentname() 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 (AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create()) { + AudienceSegmentName name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]"); + AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(name); + } + } +} +// [END admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_Audiencesegmentname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/SyncGetAudienceSegmentString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/SyncGetAudienceSegmentString.java new file mode 100644 index 000000000000..84a941a12921 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/getaudiencesegment/SyncGetAudienceSegmentString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_String_sync] +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.AudienceSegmentName; +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; + +public class SyncGetAudienceSegmentString { + + public static void main(String[] args) throws Exception { + syncGetAudienceSegmentString(); + } + + public static void syncGetAudienceSegmentString() 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 (AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create()) { + String name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString(); + AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(name); + } + } +} +// [END admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/AsyncListAudienceSegments.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/AsyncListAudienceSegments.java new file mode 100644 index 000000000000..6f713b66c507 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/AsyncListAudienceSegments.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_async] +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; +import com.google.ads.admanager.v1.ListAudienceSegmentsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListAudienceSegments { + + public static void main(String[] args) throws Exception { + asyncListAudienceSegments(); + } + + public static void asyncListAudienceSegments() 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 (AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create()) { + ListAudienceSegmentsRequest request = + ListAudienceSegmentsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + audienceSegmentServiceClient.listAudienceSegmentsPagedCallable().futureCall(request); + // Do something. + for (AudienceSegment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/AsyncListAudienceSegmentsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/AsyncListAudienceSegmentsPaged.java new file mode 100644 index 000000000000..1cdedcb9970c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/AsyncListAudienceSegmentsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_Paged_async] +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; +import com.google.ads.admanager.v1.ListAudienceSegmentsRequest; +import com.google.ads.admanager.v1.ListAudienceSegmentsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListAudienceSegmentsPaged { + + public static void main(String[] args) throws Exception { + asyncListAudienceSegmentsPaged(); + } + + public static void asyncListAudienceSegmentsPaged() 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 (AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create()) { + ListAudienceSegmentsRequest request = + ListAudienceSegmentsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListAudienceSegmentsResponse response = + audienceSegmentServiceClient.listAudienceSegmentsCallable().call(request); + for (AudienceSegment element : response.getAudienceSegmentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/SyncListAudienceSegments.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/SyncListAudienceSegments.java new file mode 100644 index 000000000000..ba3d6671e852 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/SyncListAudienceSegments.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_sync] +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; +import com.google.ads.admanager.v1.ListAudienceSegmentsRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListAudienceSegments { + + public static void main(String[] args) throws Exception { + syncListAudienceSegments(); + } + + public static void syncListAudienceSegments() 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 (AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create()) { + ListAudienceSegmentsRequest request = + ListAudienceSegmentsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (AudienceSegment element : + audienceSegmentServiceClient.listAudienceSegments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/SyncListAudienceSegmentsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/SyncListAudienceSegmentsNetworkname.java new file mode 100644 index 000000000000..adf0478b0740 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/SyncListAudienceSegmentsNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_Networkname_sync] +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListAudienceSegmentsNetworkname { + + public static void main(String[] args) throws Exception { + syncListAudienceSegmentsNetworkname(); + } + + public static void syncListAudienceSegmentsNetworkname() 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 (AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (AudienceSegment element : + audienceSegmentServiceClient.listAudienceSegments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/SyncListAudienceSegmentsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/SyncListAudienceSegmentsString.java new file mode 100644 index 000000000000..9933bdac343e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservice/listaudiencesegments/SyncListAudienceSegmentsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_String_sync] +import com.google.ads.admanager.v1.AudienceSegment; +import com.google.ads.admanager.v1.AudienceSegmentServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListAudienceSegmentsString { + + public static void main(String[] args) throws Exception { + syncListAudienceSegmentsString(); + } + + public static void syncListAudienceSegmentsString() 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 (AudienceSegmentServiceClient audienceSegmentServiceClient = + AudienceSegmentServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (AudienceSegment element : + audienceSegmentServiceClient.listAudienceSegments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservicesettings/getaudiencesegment/SyncGetAudienceSegment.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservicesettings/getaudiencesegment/SyncGetAudienceSegment.java new file mode 100644 index 000000000000..1a8d3b7ccfbf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/audiencesegmentservicesettings/getaudiencesegment/SyncGetAudienceSegment.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_AudienceSegmentServiceSettings_GetAudienceSegment_sync] +import com.google.ads.admanager.v1.AudienceSegmentServiceSettings; +import java.time.Duration; + +public class SyncGetAudienceSegment { + + public static void main(String[] args) throws Exception { + syncGetAudienceSegment(); + } + + public static void syncGetAudienceSegment() 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 + AudienceSegmentServiceSettings.Builder audienceSegmentServiceSettingsBuilder = + AudienceSegmentServiceSettings.newBuilder(); + audienceSegmentServiceSettingsBuilder + .getAudienceSegmentSettings() + .setRetrySettings( + audienceSegmentServiceSettingsBuilder + .getAudienceSegmentSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AudienceSegmentServiceSettings audienceSegmentServiceSettings = + audienceSegmentServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_AudienceSegmentServiceSettings_GetAudienceSegment_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..62a17980ddf9 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; +import com.google.ads.admanager.v1.BrowserLanguageServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + BrowserLanguageServiceSettings browserLanguageServiceSettings = + BrowserLanguageServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create(browserLanguageServiceSettings); + } +} +// [END admanager_v1_generated_BrowserLanguageService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..6680dc67b20e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; +import com.google.ads.admanager.v1.BrowserLanguageServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + BrowserLanguageServiceSettings browserLanguageServiceSettings = + BrowserLanguageServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create(browserLanguageServiceSettings); + } +} +// [END admanager_v1_generated_BrowserLanguageService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/AsyncGetBrowserLanguage.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/AsyncGetBrowserLanguage.java new file mode 100644 index 000000000000..c9a09f031724 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/AsyncGetBrowserLanguage.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_async] +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.BrowserLanguageName; +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; +import com.google.ads.admanager.v1.GetBrowserLanguageRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetBrowserLanguage { + + public static void main(String[] args) throws Exception { + asyncGetBrowserLanguage(); + } + + public static void asyncGetBrowserLanguage() 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 (BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create()) { + GetBrowserLanguageRequest request = + GetBrowserLanguageRequest.newBuilder() + .setName(BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString()) + .build(); + ApiFuture future = + browserLanguageServiceClient.getBrowserLanguageCallable().futureCall(request); + // Do something. + BrowserLanguage response = future.get(); + } + } +} +// [END admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/SyncGetBrowserLanguage.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/SyncGetBrowserLanguage.java new file mode 100644 index 000000000000..278152521b4a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/SyncGetBrowserLanguage.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_sync] +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.BrowserLanguageName; +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; +import com.google.ads.admanager.v1.GetBrowserLanguageRequest; + +public class SyncGetBrowserLanguage { + + public static void main(String[] args) throws Exception { + syncGetBrowserLanguage(); + } + + public static void syncGetBrowserLanguage() 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 (BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create()) { + GetBrowserLanguageRequest request = + GetBrowserLanguageRequest.newBuilder() + .setName(BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString()) + .build(); + BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(request); + } + } +} +// [END admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/SyncGetBrowserLanguageBrowserlanguagename.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/SyncGetBrowserLanguageBrowserlanguagename.java new file mode 100644 index 000000000000..6ae49d85094c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/SyncGetBrowserLanguageBrowserlanguagename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_Browserlanguagename_sync] +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.BrowserLanguageName; +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; + +public class SyncGetBrowserLanguageBrowserlanguagename { + + public static void main(String[] args) throws Exception { + syncGetBrowserLanguageBrowserlanguagename(); + } + + public static void syncGetBrowserLanguageBrowserlanguagename() 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 (BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create()) { + BrowserLanguageName name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]"); + BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(name); + } + } +} +// [END admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_Browserlanguagename_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/SyncGetBrowserLanguageString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/SyncGetBrowserLanguageString.java new file mode 100644 index 000000000000..a87236b9b172 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/getbrowserlanguage/SyncGetBrowserLanguageString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_String_sync] +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.BrowserLanguageName; +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; + +public class SyncGetBrowserLanguageString { + + public static void main(String[] args) throws Exception { + syncGetBrowserLanguageString(); + } + + public static void syncGetBrowserLanguageString() 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 (BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create()) { + String name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString(); + BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(name); + } + } +} +// [END admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/AsyncListBrowserLanguages.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/AsyncListBrowserLanguages.java new file mode 100644 index 000000000000..bfa05099cdb6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/AsyncListBrowserLanguages.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_async] +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; +import com.google.ads.admanager.v1.ListBrowserLanguagesRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListBrowserLanguages { + + public static void main(String[] args) throws Exception { + asyncListBrowserLanguages(); + } + + public static void asyncListBrowserLanguages() 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 (BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create()) { + ListBrowserLanguagesRequest request = + ListBrowserLanguagesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + browserLanguageServiceClient.listBrowserLanguagesPagedCallable().futureCall(request); + // Do something. + for (BrowserLanguage element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/AsyncListBrowserLanguagesPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/AsyncListBrowserLanguagesPaged.java new file mode 100644 index 000000000000..364177ab3065 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/AsyncListBrowserLanguagesPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_Paged_async] +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; +import com.google.ads.admanager.v1.ListBrowserLanguagesRequest; +import com.google.ads.admanager.v1.ListBrowserLanguagesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListBrowserLanguagesPaged { + + public static void main(String[] args) throws Exception { + asyncListBrowserLanguagesPaged(); + } + + public static void asyncListBrowserLanguagesPaged() 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 (BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create()) { + ListBrowserLanguagesRequest request = + ListBrowserLanguagesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListBrowserLanguagesResponse response = + browserLanguageServiceClient.listBrowserLanguagesCallable().call(request); + for (BrowserLanguage element : response.getBrowserLanguagesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/SyncListBrowserLanguages.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/SyncListBrowserLanguages.java new file mode 100644 index 000000000000..7a60a09246be --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/SyncListBrowserLanguages.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_sync] +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; +import com.google.ads.admanager.v1.ListBrowserLanguagesRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListBrowserLanguages { + + public static void main(String[] args) throws Exception { + syncListBrowserLanguages(); + } + + public static void syncListBrowserLanguages() 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 (BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create()) { + ListBrowserLanguagesRequest request = + ListBrowserLanguagesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (BrowserLanguage element : + browserLanguageServiceClient.listBrowserLanguages(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/SyncListBrowserLanguagesNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/SyncListBrowserLanguagesNetworkname.java new file mode 100644 index 000000000000..356d772f5b52 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/SyncListBrowserLanguagesNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_Networkname_sync] +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListBrowserLanguagesNetworkname { + + public static void main(String[] args) throws Exception { + syncListBrowserLanguagesNetworkname(); + } + + public static void syncListBrowserLanguagesNetworkname() 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 (BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (BrowserLanguage element : + browserLanguageServiceClient.listBrowserLanguages(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/SyncListBrowserLanguagesString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/SyncListBrowserLanguagesString.java new file mode 100644 index 000000000000..88a0a46de8d3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservice/listbrowserlanguages/SyncListBrowserLanguagesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_String_sync] +import com.google.ads.admanager.v1.BrowserLanguage; +import com.google.ads.admanager.v1.BrowserLanguageServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListBrowserLanguagesString { + + public static void main(String[] args) throws Exception { + syncListBrowserLanguagesString(); + } + + public static void syncListBrowserLanguagesString() 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 (BrowserLanguageServiceClient browserLanguageServiceClient = + BrowserLanguageServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (BrowserLanguage element : + browserLanguageServiceClient.listBrowserLanguages(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservicesettings/getbrowserlanguage/SyncGetBrowserLanguage.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservicesettings/getbrowserlanguage/SyncGetBrowserLanguage.java new file mode 100644 index 000000000000..fcffc1a31b74 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserlanguageservicesettings/getbrowserlanguage/SyncGetBrowserLanguage.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserLanguageServiceSettings_GetBrowserLanguage_sync] +import com.google.ads.admanager.v1.BrowserLanguageServiceSettings; +import java.time.Duration; + +public class SyncGetBrowserLanguage { + + public static void main(String[] args) throws Exception { + syncGetBrowserLanguage(); + } + + public static void syncGetBrowserLanguage() 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 + BrowserLanguageServiceSettings.Builder browserLanguageServiceSettingsBuilder = + BrowserLanguageServiceSettings.newBuilder(); + browserLanguageServiceSettingsBuilder + .getBrowserLanguageSettings() + .setRetrySettings( + browserLanguageServiceSettingsBuilder + .getBrowserLanguageSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + BrowserLanguageServiceSettings browserLanguageServiceSettings = + browserLanguageServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_BrowserLanguageServiceSettings_GetBrowserLanguage_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..4d85cb495e95 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.BrowserServiceClient; +import com.google.ads.admanager.v1.BrowserServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + BrowserServiceSettings browserServiceSettings = + BrowserServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + BrowserServiceClient browserServiceClient = BrowserServiceClient.create(browserServiceSettings); + } +} +// [END admanager_v1_generated_BrowserService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..5942296cc1cb --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.BrowserServiceClient; +import com.google.ads.admanager.v1.BrowserServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + BrowserServiceSettings browserServiceSettings = + BrowserServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + BrowserServiceClient browserServiceClient = BrowserServiceClient.create(browserServiceSettings); + } +} +// [END admanager_v1_generated_BrowserService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/AsyncGetBrowser.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/AsyncGetBrowser.java new file mode 100644 index 000000000000..9b8680ead34f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/AsyncGetBrowser.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_GetBrowser_async] +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.BrowserName; +import com.google.ads.admanager.v1.BrowserServiceClient; +import com.google.ads.admanager.v1.GetBrowserRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetBrowser { + + public static void main(String[] args) throws Exception { + asyncGetBrowser(); + } + + public static void asyncGetBrowser() 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) { + GetBrowserRequest request = + GetBrowserRequest.newBuilder() + .setName(BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString()) + .build(); + ApiFuture future = browserServiceClient.getBrowserCallable().futureCall(request); + // Do something. + Browser response = future.get(); + } + } +} +// [END admanager_v1_generated_BrowserService_GetBrowser_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/SyncGetBrowser.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/SyncGetBrowser.java new file mode 100644 index 000000000000..aa94beeaaca2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/SyncGetBrowser.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_GetBrowser_sync] +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.BrowserName; +import com.google.ads.admanager.v1.BrowserServiceClient; +import com.google.ads.admanager.v1.GetBrowserRequest; + +public class SyncGetBrowser { + + public static void main(String[] args) throws Exception { + syncGetBrowser(); + } + + public static void syncGetBrowser() 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) { + GetBrowserRequest request = + GetBrowserRequest.newBuilder() + .setName(BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString()) + .build(); + Browser response = browserServiceClient.getBrowser(request); + } + } +} +// [END admanager_v1_generated_BrowserService_GetBrowser_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/SyncGetBrowserBrowsername.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/SyncGetBrowserBrowsername.java new file mode 100644 index 000000000000..42500a9bfe02 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/SyncGetBrowserBrowsername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_GetBrowser_Browsername_sync] +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.BrowserName; +import com.google.ads.admanager.v1.BrowserServiceClient; + +public class SyncGetBrowserBrowsername { + + public static void main(String[] args) throws Exception { + syncGetBrowserBrowsername(); + } + + public static void syncGetBrowserBrowsername() 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) { + BrowserName name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]"); + Browser response = browserServiceClient.getBrowser(name); + } + } +} +// [END admanager_v1_generated_BrowserService_GetBrowser_Browsername_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/SyncGetBrowserString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/SyncGetBrowserString.java new file mode 100644 index 000000000000..1f1cc678cfa6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/getbrowser/SyncGetBrowserString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_GetBrowser_String_sync] +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.BrowserName; +import com.google.ads.admanager.v1.BrowserServiceClient; + +public class SyncGetBrowserString { + + public static void main(String[] args) throws Exception { + syncGetBrowserString(); + } + + public static void syncGetBrowserString() 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) { + String name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString(); + Browser response = browserServiceClient.getBrowser(name); + } + } +} +// [END admanager_v1_generated_BrowserService_GetBrowser_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/AsyncListBrowsers.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/AsyncListBrowsers.java new file mode 100644 index 000000000000..7080446ea18b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/AsyncListBrowsers.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_ListBrowsers_async] +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.BrowserServiceClient; +import com.google.ads.admanager.v1.ListBrowsersRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListBrowsers { + + public static void main(String[] args) throws Exception { + asyncListBrowsers(); + } + + public static void asyncListBrowsers() 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) { + ListBrowsersRequest request = + ListBrowsersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + browserServiceClient.listBrowsersPagedCallable().futureCall(request); + // Do something. + for (Browser element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BrowserService_ListBrowsers_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/AsyncListBrowsersPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/AsyncListBrowsersPaged.java new file mode 100644 index 000000000000..65a5927ffae7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/AsyncListBrowsersPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_ListBrowsers_Paged_async] +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.BrowserServiceClient; +import com.google.ads.admanager.v1.ListBrowsersRequest; +import com.google.ads.admanager.v1.ListBrowsersResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListBrowsersPaged { + + public static void main(String[] args) throws Exception { + asyncListBrowsersPaged(); + } + + public static void asyncListBrowsersPaged() 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) { + ListBrowsersRequest request = + ListBrowsersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListBrowsersResponse response = browserServiceClient.listBrowsersCallable().call(request); + for (Browser element : response.getBrowsersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_BrowserService_ListBrowsers_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/SyncListBrowsers.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/SyncListBrowsers.java new file mode 100644 index 000000000000..48efdd81b182 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/SyncListBrowsers.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_ListBrowsers_sync] +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.BrowserServiceClient; +import com.google.ads.admanager.v1.ListBrowsersRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListBrowsers { + + public static void main(String[] args) throws Exception { + syncListBrowsers(); + } + + public static void syncListBrowsers() 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) { + ListBrowsersRequest request = + ListBrowsersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (Browser element : browserServiceClient.listBrowsers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BrowserService_ListBrowsers_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/SyncListBrowsersNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/SyncListBrowsersNetworkname.java new file mode 100644 index 000000000000..c40a03f1d8f9 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/SyncListBrowsersNetworkname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_ListBrowsers_Networkname_sync] +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.BrowserServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListBrowsersNetworkname { + + public static void main(String[] args) throws Exception { + syncListBrowsersNetworkname(); + } + + public static void syncListBrowsersNetworkname() 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (Browser element : browserServiceClient.listBrowsers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BrowserService_ListBrowsers_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/SyncListBrowsersString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/SyncListBrowsersString.java new file mode 100644 index 000000000000..dc37edbec2f5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservice/listbrowsers/SyncListBrowsersString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserService_ListBrowsers_String_sync] +import com.google.ads.admanager.v1.Browser; +import com.google.ads.admanager.v1.BrowserServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListBrowsersString { + + public static void main(String[] args) throws Exception { + syncListBrowsersString(); + } + + public static void syncListBrowsersString() 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (Browser element : browserServiceClient.listBrowsers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BrowserService_ListBrowsers_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservicesettings/getbrowser/SyncGetBrowser.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservicesettings/getbrowser/SyncGetBrowser.java new file mode 100644 index 000000000000..a7d777ce2897 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/browserservicesettings/getbrowser/SyncGetBrowser.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_BrowserServiceSettings_GetBrowser_sync] +import com.google.ads.admanager.v1.BrowserServiceSettings; +import java.time.Duration; + +public class SyncGetBrowser { + + public static void main(String[] args) throws Exception { + syncGetBrowser(); + } + + public static void syncGetBrowser() 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 + BrowserServiceSettings.Builder browserServiceSettingsBuilder = + BrowserServiceSettings.newBuilder(); + browserServiceSettingsBuilder + .getBrowserSettings() + .setRetrySettings( + browserServiceSettingsBuilder + .getBrowserSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + BrowserServiceSettings browserServiceSettings = browserServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_BrowserServiceSettings_GetBrowser_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..1b21008b4148 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + CmsMetadataKeyServiceSettings cmsMetadataKeyServiceSettings = + CmsMetadataKeyServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create(cmsMetadataKeyServiceSettings); + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..f3417759c2a2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + CmsMetadataKeyServiceSettings cmsMetadataKeyServiceSettings = + CmsMetadataKeyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create(cmsMetadataKeyServiceSettings); + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/AsyncGetCmsMetadataKey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/AsyncGetCmsMetadataKey.java new file mode 100644 index 000000000000..24168463abbc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/AsyncGetCmsMetadataKey.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_async] +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.CmsMetadataKeyName; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; +import com.google.ads.admanager.v1.GetCmsMetadataKeyRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetCmsMetadataKey { + + public static void main(String[] args) throws Exception { + asyncGetCmsMetadataKey(); + } + + public static void asyncGetCmsMetadataKey() 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create()) { + GetCmsMetadataKeyRequest request = + GetCmsMetadataKeyRequest.newBuilder() + .setName(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString()) + .build(); + ApiFuture future = + cmsMetadataKeyServiceClient.getCmsMetadataKeyCallable().futureCall(request); + // Do something. + CmsMetadataKey response = future.get(); + } + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/SyncGetCmsMetadataKey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/SyncGetCmsMetadataKey.java new file mode 100644 index 000000000000..810852e4cbb6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/SyncGetCmsMetadataKey.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_sync] +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.CmsMetadataKeyName; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; +import com.google.ads.admanager.v1.GetCmsMetadataKeyRequest; + +public class SyncGetCmsMetadataKey { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataKey(); + } + + public static void syncGetCmsMetadataKey() 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create()) { + GetCmsMetadataKeyRequest request = + GetCmsMetadataKeyRequest.newBuilder() + .setName(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString()) + .build(); + CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(request); + } + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/SyncGetCmsMetadataKeyCmsmetadatakeyname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/SyncGetCmsMetadataKeyCmsmetadatakeyname.java new file mode 100644 index 000000000000..1a81e4728f6f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/SyncGetCmsMetadataKeyCmsmetadatakeyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_Cmsmetadatakeyname_sync] +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.CmsMetadataKeyName; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; + +public class SyncGetCmsMetadataKeyCmsmetadatakeyname { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataKeyCmsmetadatakeyname(); + } + + public static void syncGetCmsMetadataKeyCmsmetadatakeyname() 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create()) { + CmsMetadataKeyName name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]"); + CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(name); + } + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_Cmsmetadatakeyname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/SyncGetCmsMetadataKeyString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/SyncGetCmsMetadataKeyString.java new file mode 100644 index 000000000000..ff8c50162a06 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/getcmsmetadatakey/SyncGetCmsMetadataKeyString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_String_sync] +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.CmsMetadataKeyName; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; + +public class SyncGetCmsMetadataKeyString { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataKeyString(); + } + + public static void syncGetCmsMetadataKeyString() 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create()) { + String name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString(); + CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(name); + } + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/AsyncListCmsMetadataKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/AsyncListCmsMetadataKeys.java new file mode 100644 index 000000000000..9761338a2309 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/AsyncListCmsMetadataKeys.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_async] +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; +import com.google.ads.admanager.v1.ListCmsMetadataKeysRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListCmsMetadataKeys { + + public static void main(String[] args) throws Exception { + asyncListCmsMetadataKeys(); + } + + public static void asyncListCmsMetadataKeys() 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create()) { + ListCmsMetadataKeysRequest request = + ListCmsMetadataKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + cmsMetadataKeyServiceClient.listCmsMetadataKeysPagedCallable().futureCall(request); + // Do something. + for (CmsMetadataKey element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/AsyncListCmsMetadataKeysPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/AsyncListCmsMetadataKeysPaged.java new file mode 100644 index 000000000000..d16221d5e21d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/AsyncListCmsMetadataKeysPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_Paged_async] +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; +import com.google.ads.admanager.v1.ListCmsMetadataKeysRequest; +import com.google.ads.admanager.v1.ListCmsMetadataKeysResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListCmsMetadataKeysPaged { + + public static void main(String[] args) throws Exception { + asyncListCmsMetadataKeysPaged(); + } + + public static void asyncListCmsMetadataKeysPaged() 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create()) { + ListCmsMetadataKeysRequest request = + ListCmsMetadataKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListCmsMetadataKeysResponse response = + cmsMetadataKeyServiceClient.listCmsMetadataKeysCallable().call(request); + for (CmsMetadataKey element : response.getCmsMetadataKeysList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/SyncListCmsMetadataKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/SyncListCmsMetadataKeys.java new file mode 100644 index 000000000000..ff4bf0a252f8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/SyncListCmsMetadataKeys.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_sync] +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; +import com.google.ads.admanager.v1.ListCmsMetadataKeysRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListCmsMetadataKeys { + + public static void main(String[] args) throws Exception { + syncListCmsMetadataKeys(); + } + + public static void syncListCmsMetadataKeys() 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create()) { + ListCmsMetadataKeysRequest request = + ListCmsMetadataKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (CmsMetadataKey element : + cmsMetadataKeyServiceClient.listCmsMetadataKeys(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/SyncListCmsMetadataKeysNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/SyncListCmsMetadataKeysNetworkname.java new file mode 100644 index 000000000000..831d52980ac1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/SyncListCmsMetadataKeysNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_Networkname_sync] +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListCmsMetadataKeysNetworkname { + + public static void main(String[] args) throws Exception { + syncListCmsMetadataKeysNetworkname(); + } + + public static void syncListCmsMetadataKeysNetworkname() 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (CmsMetadataKey element : + cmsMetadataKeyServiceClient.listCmsMetadataKeys(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/SyncListCmsMetadataKeysString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/SyncListCmsMetadataKeysString.java new file mode 100644 index 000000000000..bb41f5c4252b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservice/listcmsmetadatakeys/SyncListCmsMetadataKeysString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_String_sync] +import com.google.ads.admanager.v1.CmsMetadataKey; +import com.google.ads.admanager.v1.CmsMetadataKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListCmsMetadataKeysString { + + public static void main(String[] args) throws Exception { + syncListCmsMetadataKeysString(); + } + + public static void syncListCmsMetadataKeysString() 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient = + CmsMetadataKeyServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (CmsMetadataKey element : + cmsMetadataKeyServiceClient.listCmsMetadataKeys(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservicesettings/getcmsmetadatakey/SyncGetCmsMetadataKey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservicesettings/getcmsmetadatakey/SyncGetCmsMetadataKey.java new file mode 100644 index 000000000000..13dfd946ae7c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatakeyservicesettings/getcmsmetadatakey/SyncGetCmsMetadataKey.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataKeyServiceSettings_GetCmsMetadataKey_sync] +import com.google.ads.admanager.v1.CmsMetadataKeyServiceSettings; +import java.time.Duration; + +public class SyncGetCmsMetadataKey { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataKey(); + } + + public static void syncGetCmsMetadataKey() 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 + CmsMetadataKeyServiceSettings.Builder cmsMetadataKeyServiceSettingsBuilder = + CmsMetadataKeyServiceSettings.newBuilder(); + cmsMetadataKeyServiceSettingsBuilder + .getCmsMetadataKeySettings() + .setRetrySettings( + cmsMetadataKeyServiceSettingsBuilder + .getCmsMetadataKeySettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CmsMetadataKeyServiceSettings cmsMetadataKeyServiceSettings = + cmsMetadataKeyServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_CmsMetadataKeyServiceSettings_GetCmsMetadataKey_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..ddf015fab177 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; +import com.google.ads.admanager.v1.CmsMetadataValueServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + CmsMetadataValueServiceSettings cmsMetadataValueServiceSettings = + CmsMetadataValueServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create(cmsMetadataValueServiceSettings); + } +} +// [END admanager_v1_generated_CmsMetadataValueService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..8d74d9e14b3d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; +import com.google.ads.admanager.v1.CmsMetadataValueServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + CmsMetadataValueServiceSettings cmsMetadataValueServiceSettings = + CmsMetadataValueServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create(cmsMetadataValueServiceSettings); + } +} +// [END admanager_v1_generated_CmsMetadataValueService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/AsyncGetCmsMetadataValue.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/AsyncGetCmsMetadataValue.java new file mode 100644 index 000000000000..222c2ca938e0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/AsyncGetCmsMetadataValue.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_async] +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.CmsMetadataValueName; +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; +import com.google.ads.admanager.v1.GetCmsMetadataValueRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetCmsMetadataValue { + + public static void main(String[] args) throws Exception { + asyncGetCmsMetadataValue(); + } + + public static void asyncGetCmsMetadataValue() 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create()) { + GetCmsMetadataValueRequest request = + GetCmsMetadataValueRequest.newBuilder() + .setName(CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString()) + .build(); + ApiFuture future = + cmsMetadataValueServiceClient.getCmsMetadataValueCallable().futureCall(request); + // Do something. + CmsMetadataValue response = future.get(); + } + } +} +// [END admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/SyncGetCmsMetadataValue.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/SyncGetCmsMetadataValue.java new file mode 100644 index 000000000000..7b8c1932da79 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/SyncGetCmsMetadataValue.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_sync] +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.CmsMetadataValueName; +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; +import com.google.ads.admanager.v1.GetCmsMetadataValueRequest; + +public class SyncGetCmsMetadataValue { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataValue(); + } + + public static void syncGetCmsMetadataValue() 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create()) { + GetCmsMetadataValueRequest request = + GetCmsMetadataValueRequest.newBuilder() + .setName(CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString()) + .build(); + CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(request); + } + } +} +// [END admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/SyncGetCmsMetadataValueCmsmetadatavaluename.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/SyncGetCmsMetadataValueCmsmetadatavaluename.java new file mode 100644 index 000000000000..767d2cfcd301 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/SyncGetCmsMetadataValueCmsmetadatavaluename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_Cmsmetadatavaluename_sync] +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.CmsMetadataValueName; +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; + +public class SyncGetCmsMetadataValueCmsmetadatavaluename { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataValueCmsmetadatavaluename(); + } + + public static void syncGetCmsMetadataValueCmsmetadatavaluename() 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create()) { + CmsMetadataValueName name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]"); + CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(name); + } + } +} +// [END admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_Cmsmetadatavaluename_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/SyncGetCmsMetadataValueString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/SyncGetCmsMetadataValueString.java new file mode 100644 index 000000000000..99caa793ffa8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/getcmsmetadatavalue/SyncGetCmsMetadataValueString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_String_sync] +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.CmsMetadataValueName; +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; + +public class SyncGetCmsMetadataValueString { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataValueString(); + } + + public static void syncGetCmsMetadataValueString() 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create()) { + String name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString(); + CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(name); + } + } +} +// [END admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/AsyncListCmsMetadataValues.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/AsyncListCmsMetadataValues.java new file mode 100644 index 000000000000..1d579be20b30 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/AsyncListCmsMetadataValues.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_async] +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; +import com.google.ads.admanager.v1.ListCmsMetadataValuesRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListCmsMetadataValues { + + public static void main(String[] args) throws Exception { + asyncListCmsMetadataValues(); + } + + public static void asyncListCmsMetadataValues() 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create()) { + ListCmsMetadataValuesRequest request = + ListCmsMetadataValuesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + cmsMetadataValueServiceClient.listCmsMetadataValuesPagedCallable().futureCall(request); + // Do something. + for (CmsMetadataValue element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/AsyncListCmsMetadataValuesPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/AsyncListCmsMetadataValuesPaged.java new file mode 100644 index 000000000000..3594ac18ce6e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/AsyncListCmsMetadataValuesPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_Paged_async] +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; +import com.google.ads.admanager.v1.ListCmsMetadataValuesRequest; +import com.google.ads.admanager.v1.ListCmsMetadataValuesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListCmsMetadataValuesPaged { + + public static void main(String[] args) throws Exception { + asyncListCmsMetadataValuesPaged(); + } + + public static void asyncListCmsMetadataValuesPaged() 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create()) { + ListCmsMetadataValuesRequest request = + ListCmsMetadataValuesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListCmsMetadataValuesResponse response = + cmsMetadataValueServiceClient.listCmsMetadataValuesCallable().call(request); + for (CmsMetadataValue element : response.getCmsMetadataValuesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/SyncListCmsMetadataValues.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/SyncListCmsMetadataValues.java new file mode 100644 index 000000000000..45c2413ec9d8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/SyncListCmsMetadataValues.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_sync] +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; +import com.google.ads.admanager.v1.ListCmsMetadataValuesRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListCmsMetadataValues { + + public static void main(String[] args) throws Exception { + syncListCmsMetadataValues(); + } + + public static void syncListCmsMetadataValues() 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create()) { + ListCmsMetadataValuesRequest request = + ListCmsMetadataValuesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (CmsMetadataValue element : + cmsMetadataValueServiceClient.listCmsMetadataValues(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/SyncListCmsMetadataValuesNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/SyncListCmsMetadataValuesNetworkname.java new file mode 100644 index 000000000000..d9ebdb1ba88c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/SyncListCmsMetadataValuesNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_Networkname_sync] +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListCmsMetadataValuesNetworkname { + + public static void main(String[] args) throws Exception { + syncListCmsMetadataValuesNetworkname(); + } + + public static void syncListCmsMetadataValuesNetworkname() 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (CmsMetadataValue element : + cmsMetadataValueServiceClient.listCmsMetadataValues(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/SyncListCmsMetadataValuesString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/SyncListCmsMetadataValuesString.java new file mode 100644 index 000000000000..6517a7462243 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservice/listcmsmetadatavalues/SyncListCmsMetadataValuesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_String_sync] +import com.google.ads.admanager.v1.CmsMetadataValue; +import com.google.ads.admanager.v1.CmsMetadataValueServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListCmsMetadataValuesString { + + public static void main(String[] args) throws Exception { + syncListCmsMetadataValuesString(); + } + + public static void syncListCmsMetadataValuesString() 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient = + CmsMetadataValueServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (CmsMetadataValue element : + cmsMetadataValueServiceClient.listCmsMetadataValues(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservicesettings/getcmsmetadatavalue/SyncGetCmsMetadataValue.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservicesettings/getcmsmetadatavalue/SyncGetCmsMetadataValue.java new file mode 100644 index 000000000000..599c64254c52 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/cmsmetadatavalueservicesettings/getcmsmetadatavalue/SyncGetCmsMetadataValue.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CmsMetadataValueServiceSettings_GetCmsMetadataValue_sync] +import com.google.ads.admanager.v1.CmsMetadataValueServiceSettings; +import java.time.Duration; + +public class SyncGetCmsMetadataValue { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataValue(); + } + + public static void syncGetCmsMetadataValue() 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 + CmsMetadataValueServiceSettings.Builder cmsMetadataValueServiceSettingsBuilder = + CmsMetadataValueServiceSettings.newBuilder(); + cmsMetadataValueServiceSettingsBuilder + .getCmsMetadataValueSettings() + .setRetrySettings( + cmsMetadataValueServiceSettingsBuilder + .getCmsMetadataValueSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CmsMetadataValueServiceSettings cmsMetadataValueServiceSettings = + cmsMetadataValueServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_CmsMetadataValueServiceSettings_GetCmsMetadataValue_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/AsyncBatchCreateContacts.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/AsyncBatchCreateContacts.java new file mode 100644 index 000000000000..0b23bc17eb26 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/AsyncBatchCreateContacts.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_BatchCreateContacts_async] +import com.google.ads.admanager.v1.BatchCreateContactsRequest; +import com.google.ads.admanager.v1.BatchCreateContactsResponse; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.CreateContactRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchCreateContacts { + + public static void main(String[] args) throws Exception { + asyncBatchCreateContacts(); + } + + public static void asyncBatchCreateContacts() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + BatchCreateContactsRequest request = + BatchCreateContactsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + contactServiceClient.batchCreateContactsCallable().futureCall(request); + // Do something. + BatchCreateContactsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_ContactService_BatchCreateContacts_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/SyncBatchCreateContacts.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/SyncBatchCreateContacts.java new file mode 100644 index 000000000000..99ebcda87bc4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/SyncBatchCreateContacts.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_BatchCreateContacts_sync] +import com.google.ads.admanager.v1.BatchCreateContactsRequest; +import com.google.ads.admanager.v1.BatchCreateContactsResponse; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.CreateContactRequest; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchCreateContacts { + + public static void main(String[] args) throws Exception { + syncBatchCreateContacts(); + } + + public static void syncBatchCreateContacts() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + BatchCreateContactsRequest request = + BatchCreateContactsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchCreateContactsResponse response = contactServiceClient.batchCreateContacts(request); + } + } +} +// [END admanager_v1_generated_ContactService_BatchCreateContacts_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/SyncBatchCreateContactsNetworknameListcreatecontactrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/SyncBatchCreateContactsNetworknameListcreatecontactrequest.java new file mode 100644 index 000000000000..4212fdf1abc0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/SyncBatchCreateContactsNetworknameListcreatecontactrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_BatchCreateContacts_NetworknameListcreatecontactrequest_sync] +import com.google.ads.admanager.v1.BatchCreateContactsResponse; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.CreateContactRequest; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateContactsNetworknameListcreatecontactrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateContactsNetworknameListcreatecontactrequest(); + } + + public static void syncBatchCreateContactsNetworknameListcreatecontactrequest() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchCreateContactsResponse response = + contactServiceClient.batchCreateContacts(parent, requests); + } + } +} +// [END admanager_v1_generated_ContactService_BatchCreateContacts_NetworknameListcreatecontactrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/SyncBatchCreateContactsStringListcreatecontactrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/SyncBatchCreateContactsStringListcreatecontactrequest.java new file mode 100644 index 000000000000..7e8eac3e8690 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchcreatecontacts/SyncBatchCreateContactsStringListcreatecontactrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_BatchCreateContacts_StringListcreatecontactrequest_sync] +import com.google.ads.admanager.v1.BatchCreateContactsResponse; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.CreateContactRequest; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateContactsStringListcreatecontactrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateContactsStringListcreatecontactrequest(); + } + + public static void syncBatchCreateContactsStringListcreatecontactrequest() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchCreateContactsResponse response = + contactServiceClient.batchCreateContacts(parent, requests); + } + } +} +// [END admanager_v1_generated_ContactService_BatchCreateContacts_StringListcreatecontactrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/AsyncBatchUpdateContacts.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/AsyncBatchUpdateContacts.java new file mode 100644 index 000000000000..9d63f727de92 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/AsyncBatchUpdateContacts.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_BatchUpdateContacts_async] +import com.google.ads.admanager.v1.BatchUpdateContactsRequest; +import com.google.ads.admanager.v1.BatchUpdateContactsResponse; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateContactRequest; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchUpdateContacts { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateContacts(); + } + + public static void asyncBatchUpdateContacts() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + BatchUpdateContactsRequest request = + BatchUpdateContactsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + contactServiceClient.batchUpdateContactsCallable().futureCall(request); + // Do something. + BatchUpdateContactsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_ContactService_BatchUpdateContacts_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/SyncBatchUpdateContacts.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/SyncBatchUpdateContacts.java new file mode 100644 index 000000000000..ccd683df1455 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/SyncBatchUpdateContacts.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_BatchUpdateContacts_sync] +import com.google.ads.admanager.v1.BatchUpdateContactsRequest; +import com.google.ads.admanager.v1.BatchUpdateContactsResponse; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateContactRequest; +import java.util.ArrayList; + +public class SyncBatchUpdateContacts { + + public static void main(String[] args) throws Exception { + syncBatchUpdateContacts(); + } + + public static void syncBatchUpdateContacts() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + BatchUpdateContactsRequest request = + BatchUpdateContactsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchUpdateContactsResponse response = contactServiceClient.batchUpdateContacts(request); + } + } +} +// [END admanager_v1_generated_ContactService_BatchUpdateContacts_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/SyncBatchUpdateContactsNetworknameListupdatecontactrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/SyncBatchUpdateContactsNetworknameListupdatecontactrequest.java new file mode 100644 index 000000000000..f89e64e18735 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/SyncBatchUpdateContactsNetworknameListupdatecontactrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_BatchUpdateContacts_NetworknameListupdatecontactrequest_sync] +import com.google.ads.admanager.v1.BatchUpdateContactsResponse; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateContactRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateContactsNetworknameListupdatecontactrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateContactsNetworknameListupdatecontactrequest(); + } + + public static void syncBatchUpdateContactsNetworknameListupdatecontactrequest() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchUpdateContactsResponse response = + contactServiceClient.batchUpdateContacts(parent, requests); + } + } +} +// [END admanager_v1_generated_ContactService_BatchUpdateContacts_NetworknameListupdatecontactrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/SyncBatchUpdateContactsStringListupdatecontactrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/SyncBatchUpdateContactsStringListupdatecontactrequest.java new file mode 100644 index 000000000000..5e06d776bb78 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/batchupdatecontacts/SyncBatchUpdateContactsStringListupdatecontactrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_BatchUpdateContacts_StringListupdatecontactrequest_sync] +import com.google.ads.admanager.v1.BatchUpdateContactsResponse; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateContactRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateContactsStringListupdatecontactrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateContactsStringListupdatecontactrequest(); + } + + public static void syncBatchUpdateContactsStringListupdatecontactrequest() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchUpdateContactsResponse response = + contactServiceClient.batchUpdateContacts(parent, requests); + } + } +} +// [END admanager_v1_generated_ContactService_BatchUpdateContacts_StringListupdatecontactrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..6af32ba486d3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.ContactServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + ContactServiceSettings contactServiceSettings = + ContactServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ContactServiceClient contactServiceClient = ContactServiceClient.create(contactServiceSettings); + } +} +// [END admanager_v1_generated_ContactService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..f460a70fff8b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.ContactServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + ContactServiceSettings contactServiceSettings = + ContactServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ContactServiceClient contactServiceClient = ContactServiceClient.create(contactServiceSettings); + } +} +// [END admanager_v1_generated_ContactService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/AsyncCreateContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/AsyncCreateContact.java new file mode 100644 index 000000000000..2e03aff66de0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/AsyncCreateContact.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_CreateContact_async] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.CreateContactRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncCreateContact { + + public static void main(String[] args) throws Exception { + asyncCreateContact(); + } + + public static void asyncCreateContact() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + CreateContactRequest request = + CreateContactRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setContact(Contact.newBuilder().build()) + .build(); + ApiFuture future = contactServiceClient.createContactCallable().futureCall(request); + // Do something. + Contact response = future.get(); + } + } +} +// [END admanager_v1_generated_ContactService_CreateContact_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/SyncCreateContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/SyncCreateContact.java new file mode 100644 index 000000000000..abaa16248c28 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/SyncCreateContact.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_CreateContact_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.CreateContactRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateContact { + + public static void main(String[] args) throws Exception { + syncCreateContact(); + } + + public static void syncCreateContact() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + CreateContactRequest request = + CreateContactRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setContact(Contact.newBuilder().build()) + .build(); + Contact response = contactServiceClient.createContact(request); + } + } +} +// [END admanager_v1_generated_ContactService_CreateContact_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/SyncCreateContactNetworknameContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/SyncCreateContactNetworknameContact.java new file mode 100644 index 000000000000..8f9c7bbbfa00 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/SyncCreateContactNetworknameContact.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_CreateContact_NetworknameContact_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateContactNetworknameContact { + + public static void main(String[] args) throws Exception { + syncCreateContactNetworknameContact(); + } + + public static void syncCreateContactNetworknameContact() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Contact contact = Contact.newBuilder().build(); + Contact response = contactServiceClient.createContact(parent, contact); + } + } +} +// [END admanager_v1_generated_ContactService_CreateContact_NetworknameContact_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/SyncCreateContactStringContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/SyncCreateContactStringContact.java new file mode 100644 index 000000000000..2b455f65ebaf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/createcontact/SyncCreateContactStringContact.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_CreateContact_StringContact_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateContactStringContact { + + public static void main(String[] args) throws Exception { + syncCreateContactStringContact(); + } + + public static void syncCreateContactStringContact() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + Contact contact = Contact.newBuilder().build(); + Contact response = contactServiceClient.createContact(parent, contact); + } + } +} +// [END admanager_v1_generated_ContactService_CreateContact_StringContact_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/AsyncGetContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/AsyncGetContact.java new file mode 100644 index 000000000000..3811ee6ccac6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/AsyncGetContact.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_GetContact_async] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactName; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.GetContactRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetContact { + + public static void main(String[] args) throws Exception { + asyncGetContact(); + } + + public static void asyncGetContact() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + GetContactRequest request = + GetContactRequest.newBuilder() + .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) + .build(); + ApiFuture future = contactServiceClient.getContactCallable().futureCall(request); + // Do something. + Contact response = future.get(); + } + } +} +// [END admanager_v1_generated_ContactService_GetContact_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/SyncGetContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/SyncGetContact.java new file mode 100644 index 000000000000..b911440d32ef --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/SyncGetContact.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_GetContact_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactName; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.GetContactRequest; + +public class SyncGetContact { + + public static void main(String[] args) throws Exception { + syncGetContact(); + } + + public static void syncGetContact() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + GetContactRequest request = + GetContactRequest.newBuilder() + .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString()) + .build(); + Contact response = contactServiceClient.getContact(request); + } + } +} +// [END admanager_v1_generated_ContactService_GetContact_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/SyncGetContactContactname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/SyncGetContactContactname.java new file mode 100644 index 000000000000..f0fb69d23c25 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/SyncGetContactContactname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_GetContact_Contactname_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactName; +import com.google.ads.admanager.v1.ContactServiceClient; + +public class SyncGetContactContactname { + + public static void main(String[] args) throws Exception { + syncGetContactContactname(); + } + + public static void syncGetContactContactname() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + ContactName name = ContactName.of("[NETWORK_CODE]", "[CONTACT]"); + Contact response = contactServiceClient.getContact(name); + } + } +} +// [END admanager_v1_generated_ContactService_GetContact_Contactname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/SyncGetContactString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/SyncGetContactString.java new file mode 100644 index 000000000000..abc742cfa0ba --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/getcontact/SyncGetContactString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_GetContact_String_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactName; +import com.google.ads.admanager.v1.ContactServiceClient; + +public class SyncGetContactString { + + public static void main(String[] args) throws Exception { + syncGetContactString(); + } + + public static void syncGetContactString() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + String name = ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString(); + Contact response = contactServiceClient.getContact(name); + } + } +} +// [END admanager_v1_generated_ContactService_GetContact_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/AsyncListContacts.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/AsyncListContacts.java new file mode 100644 index 000000000000..328c8aea5b2c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/AsyncListContacts.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_ListContacts_async] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.ListContactsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListContacts { + + public static void main(String[] args) throws Exception { + asyncListContacts(); + } + + public static void asyncListContacts() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + ListContactsRequest request = + ListContactsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + contactServiceClient.listContactsPagedCallable().futureCall(request); + // Do something. + for (Contact element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContactService_ListContacts_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/AsyncListContactsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/AsyncListContactsPaged.java new file mode 100644 index 000000000000..0671cbb6ff2c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/AsyncListContactsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_ListContacts_Paged_async] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.ListContactsRequest; +import com.google.ads.admanager.v1.ListContactsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListContactsPaged { + + public static void main(String[] args) throws Exception { + asyncListContactsPaged(); + } + + public static void asyncListContactsPaged() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + ListContactsRequest request = + ListContactsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListContactsResponse response = contactServiceClient.listContactsCallable().call(request); + for (Contact element : response.getContactsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_ContactService_ListContacts_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/SyncListContacts.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/SyncListContacts.java new file mode 100644 index 000000000000..7394ae0059f1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/SyncListContacts.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_ListContacts_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.ListContactsRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContacts { + + public static void main(String[] args) throws Exception { + syncListContacts(); + } + + public static void syncListContacts() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + ListContactsRequest request = + ListContactsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (Contact element : contactServiceClient.listContacts(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContactService_ListContacts_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/SyncListContactsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/SyncListContactsNetworkname.java new file mode 100644 index 000000000000..1d42f2f9bdf8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/SyncListContactsNetworkname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_ListContacts_Networkname_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContactsNetworkname { + + public static void main(String[] args) throws Exception { + syncListContactsNetworkname(); + } + + public static void syncListContactsNetworkname() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (Contact element : contactServiceClient.listContacts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContactService_ListContacts_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/SyncListContactsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/SyncListContactsString.java new file mode 100644 index 000000000000..dae599ed4f5d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/listcontacts/SyncListContactsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_ListContacts_String_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContactsString { + + public static void main(String[] args) throws Exception { + syncListContactsString(); + } + + public static void syncListContactsString() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (Contact element : contactServiceClient.listContacts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContactService_ListContacts_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/updatecontact/AsyncUpdateContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/updatecontact/AsyncUpdateContact.java new file mode 100644 index 000000000000..074412f04e76 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/updatecontact/AsyncUpdateContact.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_UpdateContact_async] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.UpdateContactRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateContact { + + public static void main(String[] args) throws Exception { + asyncUpdateContact(); + } + + public static void asyncUpdateContact() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + UpdateContactRequest request = + UpdateContactRequest.newBuilder() + .setContact(Contact.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = contactServiceClient.updateContactCallable().futureCall(request); + // Do something. + Contact response = future.get(); + } + } +} +// [END admanager_v1_generated_ContactService_UpdateContact_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/updatecontact/SyncUpdateContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/updatecontact/SyncUpdateContact.java new file mode 100644 index 000000000000..9f10085c8ef4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/updatecontact/SyncUpdateContact.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_UpdateContact_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.ads.admanager.v1.UpdateContactRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateContact { + + public static void main(String[] args) throws Exception { + syncUpdateContact(); + } + + public static void syncUpdateContact() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + UpdateContactRequest request = + UpdateContactRequest.newBuilder() + .setContact(Contact.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Contact response = contactServiceClient.updateContact(request); + } + } +} +// [END admanager_v1_generated_ContactService_UpdateContact_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/updatecontact/SyncUpdateContactContactFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/updatecontact/SyncUpdateContactContactFieldmask.java new file mode 100644 index 000000000000..039056b23891 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservice/updatecontact/SyncUpdateContactContactFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactService_UpdateContact_ContactFieldmask_sync] +import com.google.ads.admanager.v1.Contact; +import com.google.ads.admanager.v1.ContactServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateContactContactFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateContactContactFieldmask(); + } + + public static void syncUpdateContactContactFieldmask() 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) { + Contact contact = Contact.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Contact response = contactServiceClient.updateContact(contact, updateMask); + } + } +} +// [END admanager_v1_generated_ContactService_UpdateContact_ContactFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservicesettings/getcontact/SyncGetContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservicesettings/getcontact/SyncGetContact.java new file mode 100644 index 000000000000..22f33919cb7b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contactservicesettings/getcontact/SyncGetContact.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContactServiceSettings_GetContact_sync] +import com.google.ads.admanager.v1.ContactServiceSettings; +import java.time.Duration; + +public class SyncGetContact { + + public static void main(String[] args) throws Exception { + syncGetContact(); + } + + public static void syncGetContact() 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 + ContactServiceSettings.Builder contactServiceSettingsBuilder = + ContactServiceSettings.newBuilder(); + contactServiceSettingsBuilder + .getContactSettings() + .setRetrySettings( + contactServiceSettingsBuilder + .getContactSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ContactServiceSettings contactServiceSettings = contactServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ContactServiceSettings_GetContact_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..2fb912d7142d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.ContentBundleServiceClient; +import com.google.ads.admanager.v1.ContentBundleServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + ContentBundleServiceSettings contentBundleServiceSettings = + ContentBundleServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create(contentBundleServiceSettings); + } +} +// [END admanager_v1_generated_ContentBundleService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..5cf84ed23dce --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.ContentBundleServiceClient; +import com.google.ads.admanager.v1.ContentBundleServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + ContentBundleServiceSettings contentBundleServiceSettings = + ContentBundleServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create(contentBundleServiceSettings); + } +} +// [END admanager_v1_generated_ContentBundleService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/AsyncGetContentBundle.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/AsyncGetContentBundle.java new file mode 100644 index 000000000000..23d3feaafd8d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/AsyncGetContentBundle.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_GetContentBundle_async] +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.ContentBundleName; +import com.google.ads.admanager.v1.ContentBundleServiceClient; +import com.google.ads.admanager.v1.GetContentBundleRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetContentBundle { + + public static void main(String[] args) throws Exception { + asyncGetContentBundle(); + } + + public static void asyncGetContentBundle() 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 (ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create()) { + GetContentBundleRequest request = + GetContentBundleRequest.newBuilder() + .setName(ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString()) + .build(); + ApiFuture future = + contentBundleServiceClient.getContentBundleCallable().futureCall(request); + // Do something. + ContentBundle response = future.get(); + } + } +} +// [END admanager_v1_generated_ContentBundleService_GetContentBundle_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/SyncGetContentBundle.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/SyncGetContentBundle.java new file mode 100644 index 000000000000..addf70ea3ad7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/SyncGetContentBundle.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_GetContentBundle_sync] +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.ContentBundleName; +import com.google.ads.admanager.v1.ContentBundleServiceClient; +import com.google.ads.admanager.v1.GetContentBundleRequest; + +public class SyncGetContentBundle { + + public static void main(String[] args) throws Exception { + syncGetContentBundle(); + } + + public static void syncGetContentBundle() 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 (ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create()) { + GetContentBundleRequest request = + GetContentBundleRequest.newBuilder() + .setName(ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString()) + .build(); + ContentBundle response = contentBundleServiceClient.getContentBundle(request); + } + } +} +// [END admanager_v1_generated_ContentBundleService_GetContentBundle_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/SyncGetContentBundleContentbundlename.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/SyncGetContentBundleContentbundlename.java new file mode 100644 index 000000000000..7a8e4a78306e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/SyncGetContentBundleContentbundlename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_GetContentBundle_Contentbundlename_sync] +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.ContentBundleName; +import com.google.ads.admanager.v1.ContentBundleServiceClient; + +public class SyncGetContentBundleContentbundlename { + + public static void main(String[] args) throws Exception { + syncGetContentBundleContentbundlename(); + } + + public static void syncGetContentBundleContentbundlename() 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 (ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create()) { + ContentBundleName name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]"); + ContentBundle response = contentBundleServiceClient.getContentBundle(name); + } + } +} +// [END admanager_v1_generated_ContentBundleService_GetContentBundle_Contentbundlename_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/SyncGetContentBundleString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/SyncGetContentBundleString.java new file mode 100644 index 000000000000..54112d505e98 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/getcontentbundle/SyncGetContentBundleString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_GetContentBundle_String_sync] +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.ContentBundleName; +import com.google.ads.admanager.v1.ContentBundleServiceClient; + +public class SyncGetContentBundleString { + + public static void main(String[] args) throws Exception { + syncGetContentBundleString(); + } + + public static void syncGetContentBundleString() 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 (ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create()) { + String name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString(); + ContentBundle response = contentBundleServiceClient.getContentBundle(name); + } + } +} +// [END admanager_v1_generated_ContentBundleService_GetContentBundle_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/AsyncListContentBundles.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/AsyncListContentBundles.java new file mode 100644 index 000000000000..07c8222dee92 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/AsyncListContentBundles.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_ListContentBundles_async] +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.ContentBundleServiceClient; +import com.google.ads.admanager.v1.ListContentBundlesRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListContentBundles { + + public static void main(String[] args) throws Exception { + asyncListContentBundles(); + } + + public static void asyncListContentBundles() 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 (ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create()) { + ListContentBundlesRequest request = + ListContentBundlesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + contentBundleServiceClient.listContentBundlesPagedCallable().futureCall(request); + // Do something. + for (ContentBundle element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentBundleService_ListContentBundles_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/AsyncListContentBundlesPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/AsyncListContentBundlesPaged.java new file mode 100644 index 000000000000..b8736b952724 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/AsyncListContentBundlesPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_ListContentBundles_Paged_async] +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.ContentBundleServiceClient; +import com.google.ads.admanager.v1.ListContentBundlesRequest; +import com.google.ads.admanager.v1.ListContentBundlesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListContentBundlesPaged { + + public static void main(String[] args) throws Exception { + asyncListContentBundlesPaged(); + } + + public static void asyncListContentBundlesPaged() 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 (ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create()) { + ListContentBundlesRequest request = + ListContentBundlesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListContentBundlesResponse response = + contentBundleServiceClient.listContentBundlesCallable().call(request); + for (ContentBundle element : response.getContentBundlesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_ContentBundleService_ListContentBundles_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/SyncListContentBundles.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/SyncListContentBundles.java new file mode 100644 index 000000000000..c22841531153 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/SyncListContentBundles.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_ListContentBundles_sync] +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.ContentBundleServiceClient; +import com.google.ads.admanager.v1.ListContentBundlesRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContentBundles { + + public static void main(String[] args) throws Exception { + syncListContentBundles(); + } + + public static void syncListContentBundles() 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 (ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create()) { + ListContentBundlesRequest request = + ListContentBundlesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (ContentBundle element : + contentBundleServiceClient.listContentBundles(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentBundleService_ListContentBundles_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/SyncListContentBundlesNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/SyncListContentBundlesNetworkname.java new file mode 100644 index 000000000000..115579c1ad53 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/SyncListContentBundlesNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_ListContentBundles_Networkname_sync] +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.ContentBundleServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContentBundlesNetworkname { + + public static void main(String[] args) throws Exception { + syncListContentBundlesNetworkname(); + } + + public static void syncListContentBundlesNetworkname() 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 (ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (ContentBundle element : + contentBundleServiceClient.listContentBundles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentBundleService_ListContentBundles_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/SyncListContentBundlesString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/SyncListContentBundlesString.java new file mode 100644 index 000000000000..a6e9a6d02171 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservice/listcontentbundles/SyncListContentBundlesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleService_ListContentBundles_String_sync] +import com.google.ads.admanager.v1.ContentBundle; +import com.google.ads.admanager.v1.ContentBundleServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContentBundlesString { + + public static void main(String[] args) throws Exception { + syncListContentBundlesString(); + } + + public static void syncListContentBundlesString() 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 (ContentBundleServiceClient contentBundleServiceClient = + ContentBundleServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (ContentBundle element : + contentBundleServiceClient.listContentBundles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentBundleService_ListContentBundles_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservicesettings/getcontentbundle/SyncGetContentBundle.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservicesettings/getcontentbundle/SyncGetContentBundle.java new file mode 100644 index 000000000000..e00befabf68b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentbundleservicesettings/getcontentbundle/SyncGetContentBundle.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentBundleServiceSettings_GetContentBundle_sync] +import com.google.ads.admanager.v1.ContentBundleServiceSettings; +import java.time.Duration; + +public class SyncGetContentBundle { + + public static void main(String[] args) throws Exception { + syncGetContentBundle(); + } + + public static void syncGetContentBundle() 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 + ContentBundleServiceSettings.Builder contentBundleServiceSettingsBuilder = + ContentBundleServiceSettings.newBuilder(); + contentBundleServiceSettingsBuilder + .getContentBundleSettings() + .setRetrySettings( + contentBundleServiceSettingsBuilder + .getContentBundleSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ContentBundleServiceSettings contentBundleServiceSettings = + contentBundleServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ContentBundleServiceSettings_GetContentBundle_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..4f48b07f19c7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.ContentLabelServiceClient; +import com.google.ads.admanager.v1.ContentLabelServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + ContentLabelServiceSettings contentLabelServiceSettings = + ContentLabelServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ContentLabelServiceClient contentLabelServiceClient = + ContentLabelServiceClient.create(contentLabelServiceSettings); + } +} +// [END admanager_v1_generated_ContentLabelService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..31dfc0942e10 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.ContentLabelServiceClient; +import com.google.ads.admanager.v1.ContentLabelServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + ContentLabelServiceSettings contentLabelServiceSettings = + ContentLabelServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ContentLabelServiceClient contentLabelServiceClient = + ContentLabelServiceClient.create(contentLabelServiceSettings); + } +} +// [END admanager_v1_generated_ContentLabelService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/AsyncGetContentLabel.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/AsyncGetContentLabel.java new file mode 100644 index 000000000000..209749f99d31 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/AsyncGetContentLabel.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_GetContentLabel_async] +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.ContentLabelName; +import com.google.ads.admanager.v1.ContentLabelServiceClient; +import com.google.ads.admanager.v1.GetContentLabelRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetContentLabel { + + public static void main(String[] args) throws Exception { + asyncGetContentLabel(); + } + + public static void asyncGetContentLabel() 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) { + GetContentLabelRequest request = + GetContentLabelRequest.newBuilder() + .setName(ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString()) + .build(); + ApiFuture future = + contentLabelServiceClient.getContentLabelCallable().futureCall(request); + // Do something. + ContentLabel response = future.get(); + } + } +} +// [END admanager_v1_generated_ContentLabelService_GetContentLabel_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/SyncGetContentLabel.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/SyncGetContentLabel.java new file mode 100644 index 000000000000..be8dec1fae8c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/SyncGetContentLabel.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_GetContentLabel_sync] +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.ContentLabelName; +import com.google.ads.admanager.v1.ContentLabelServiceClient; +import com.google.ads.admanager.v1.GetContentLabelRequest; + +public class SyncGetContentLabel { + + public static void main(String[] args) throws Exception { + syncGetContentLabel(); + } + + public static void syncGetContentLabel() 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) { + GetContentLabelRequest request = + GetContentLabelRequest.newBuilder() + .setName(ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString()) + .build(); + ContentLabel response = contentLabelServiceClient.getContentLabel(request); + } + } +} +// [END admanager_v1_generated_ContentLabelService_GetContentLabel_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/SyncGetContentLabelContentlabelname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/SyncGetContentLabelContentlabelname.java new file mode 100644 index 000000000000..3e9859a61620 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/SyncGetContentLabelContentlabelname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_GetContentLabel_Contentlabelname_sync] +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.ContentLabelName; +import com.google.ads.admanager.v1.ContentLabelServiceClient; + +public class SyncGetContentLabelContentlabelname { + + public static void main(String[] args) throws Exception { + syncGetContentLabelContentlabelname(); + } + + public static void syncGetContentLabelContentlabelname() 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) { + ContentLabelName name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]"); + ContentLabel response = contentLabelServiceClient.getContentLabel(name); + } + } +} +// [END admanager_v1_generated_ContentLabelService_GetContentLabel_Contentlabelname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/SyncGetContentLabelString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/SyncGetContentLabelString.java new file mode 100644 index 000000000000..b594aece85c7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/getcontentlabel/SyncGetContentLabelString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_GetContentLabel_String_sync] +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.ContentLabelName; +import com.google.ads.admanager.v1.ContentLabelServiceClient; + +public class SyncGetContentLabelString { + + public static void main(String[] args) throws Exception { + syncGetContentLabelString(); + } + + public static void syncGetContentLabelString() 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) { + String name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString(); + ContentLabel response = contentLabelServiceClient.getContentLabel(name); + } + } +} +// [END admanager_v1_generated_ContentLabelService_GetContentLabel_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/AsyncListContentLabels.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/AsyncListContentLabels.java new file mode 100644 index 000000000000..e1e9d8200e30 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/AsyncListContentLabels.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_ListContentLabels_async] +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.ContentLabelServiceClient; +import com.google.ads.admanager.v1.ListContentLabelsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListContentLabels { + + public static void main(String[] args) throws Exception { + asyncListContentLabels(); + } + + public static void asyncListContentLabels() 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) { + ListContentLabelsRequest request = + ListContentLabelsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + contentLabelServiceClient.listContentLabelsPagedCallable().futureCall(request); + // Do something. + for (ContentLabel element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentLabelService_ListContentLabels_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/AsyncListContentLabelsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/AsyncListContentLabelsPaged.java new file mode 100644 index 000000000000..4cd348d0592b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/AsyncListContentLabelsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_ListContentLabels_Paged_async] +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.ContentLabelServiceClient; +import com.google.ads.admanager.v1.ListContentLabelsRequest; +import com.google.ads.admanager.v1.ListContentLabelsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListContentLabelsPaged { + + public static void main(String[] args) throws Exception { + asyncListContentLabelsPaged(); + } + + public static void asyncListContentLabelsPaged() 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) { + ListContentLabelsRequest request = + ListContentLabelsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListContentLabelsResponse response = + contentLabelServiceClient.listContentLabelsCallable().call(request); + for (ContentLabel element : response.getContentLabelsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_ContentLabelService_ListContentLabels_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/SyncListContentLabels.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/SyncListContentLabels.java new file mode 100644 index 000000000000..8b386a3c155f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/SyncListContentLabels.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_ListContentLabels_sync] +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.ContentLabelServiceClient; +import com.google.ads.admanager.v1.ListContentLabelsRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContentLabels { + + public static void main(String[] args) throws Exception { + syncListContentLabels(); + } + + public static void syncListContentLabels() 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) { + ListContentLabelsRequest request = + ListContentLabelsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (ContentLabel element : + contentLabelServiceClient.listContentLabels(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentLabelService_ListContentLabels_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/SyncListContentLabelsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/SyncListContentLabelsNetworkname.java new file mode 100644 index 000000000000..371ac98c0307 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/SyncListContentLabelsNetworkname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_ListContentLabels_Networkname_sync] +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.ContentLabelServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContentLabelsNetworkname { + + public static void main(String[] args) throws Exception { + syncListContentLabelsNetworkname(); + } + + public static void syncListContentLabelsNetworkname() 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (ContentLabel element : + contentLabelServiceClient.listContentLabels(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentLabelService_ListContentLabels_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/SyncListContentLabelsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/SyncListContentLabelsString.java new file mode 100644 index 000000000000..e1a034671151 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservice/listcontentlabels/SyncListContentLabelsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelService_ListContentLabels_String_sync] +import com.google.ads.admanager.v1.ContentLabel; +import com.google.ads.admanager.v1.ContentLabelServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContentLabelsString { + + public static void main(String[] args) throws Exception { + syncListContentLabelsString(); + } + + public static void syncListContentLabelsString() 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (ContentLabel element : + contentLabelServiceClient.listContentLabels(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentLabelService_ListContentLabels_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservicesettings/getcontentlabel/SyncGetContentLabel.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservicesettings/getcontentlabel/SyncGetContentLabel.java new file mode 100644 index 000000000000..682037af85a5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentlabelservicesettings/getcontentlabel/SyncGetContentLabel.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentLabelServiceSettings_GetContentLabel_sync] +import com.google.ads.admanager.v1.ContentLabelServiceSettings; +import java.time.Duration; + +public class SyncGetContentLabel { + + public static void main(String[] args) throws Exception { + syncGetContentLabel(); + } + + public static void syncGetContentLabel() 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 + ContentLabelServiceSettings.Builder contentLabelServiceSettingsBuilder = + ContentLabelServiceSettings.newBuilder(); + contentLabelServiceSettingsBuilder + .getContentLabelSettings() + .setRetrySettings( + contentLabelServiceSettingsBuilder + .getContentLabelSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ContentLabelServiceSettings contentLabelServiceSettings = + contentLabelServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ContentLabelServiceSettings_GetContentLabel_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..e5ebe6fed876 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.ContentServiceClient; +import com.google.ads.admanager.v1.ContentServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + ContentServiceSettings contentServiceSettings = + ContentServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ContentServiceClient contentServiceClient = ContentServiceClient.create(contentServiceSettings); + } +} +// [END admanager_v1_generated_ContentService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..5881da20034a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.ContentServiceClient; +import com.google.ads.admanager.v1.ContentServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + ContentServiceSettings contentServiceSettings = + ContentServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ContentServiceClient contentServiceClient = ContentServiceClient.create(contentServiceSettings); + } +} +// [END admanager_v1_generated_ContentService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/AsyncGetContent.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/AsyncGetContent.java new file mode 100644 index 000000000000..9e3f3def2ced --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/AsyncGetContent.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_GetContent_async] +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.ContentName; +import com.google.ads.admanager.v1.ContentServiceClient; +import com.google.ads.admanager.v1.GetContentRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetContent { + + public static void main(String[] args) throws Exception { + asyncGetContent(); + } + + public static void asyncGetContent() 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) { + GetContentRequest request = + GetContentRequest.newBuilder() + .setName(ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString()) + .build(); + ApiFuture future = contentServiceClient.getContentCallable().futureCall(request); + // Do something. + Content response = future.get(); + } + } +} +// [END admanager_v1_generated_ContentService_GetContent_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/SyncGetContent.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/SyncGetContent.java new file mode 100644 index 000000000000..57501d3c99b7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/SyncGetContent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_GetContent_sync] +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.ContentName; +import com.google.ads.admanager.v1.ContentServiceClient; +import com.google.ads.admanager.v1.GetContentRequest; + +public class SyncGetContent { + + public static void main(String[] args) throws Exception { + syncGetContent(); + } + + public static void syncGetContent() 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) { + GetContentRequest request = + GetContentRequest.newBuilder() + .setName(ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString()) + .build(); + Content response = contentServiceClient.getContent(request); + } + } +} +// [END admanager_v1_generated_ContentService_GetContent_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/SyncGetContentContentname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/SyncGetContentContentname.java new file mode 100644 index 000000000000..45c5cd42ede5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/SyncGetContentContentname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_GetContent_Contentname_sync] +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.ContentName; +import com.google.ads.admanager.v1.ContentServiceClient; + +public class SyncGetContentContentname { + + public static void main(String[] args) throws Exception { + syncGetContentContentname(); + } + + public static void syncGetContentContentname() 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) { + ContentName name = ContentName.of("[NETWORK_CODE]", "[CONTENT]"); + Content response = contentServiceClient.getContent(name); + } + } +} +// [END admanager_v1_generated_ContentService_GetContent_Contentname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/SyncGetContentString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/SyncGetContentString.java new file mode 100644 index 000000000000..137026cecc1f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/getcontent/SyncGetContentString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_GetContent_String_sync] +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.ContentName; +import com.google.ads.admanager.v1.ContentServiceClient; + +public class SyncGetContentString { + + public static void main(String[] args) throws Exception { + syncGetContentString(); + } + + public static void syncGetContentString() 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) { + String name = ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString(); + Content response = contentServiceClient.getContent(name); + } + } +} +// [END admanager_v1_generated_ContentService_GetContent_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/AsyncListContent.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/AsyncListContent.java new file mode 100644 index 000000000000..6e7e091fa73c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/AsyncListContent.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_ListContent_async] +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.ContentServiceClient; +import com.google.ads.admanager.v1.ListContentRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListContent { + + public static void main(String[] args) throws Exception { + asyncListContent(); + } + + public static void asyncListContent() 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) { + ListContentRequest request = + ListContentRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + contentServiceClient.listContentPagedCallable().futureCall(request); + // Do something. + for (Content element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentService_ListContent_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/AsyncListContentPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/AsyncListContentPaged.java new file mode 100644 index 000000000000..c03b0f24bf90 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/AsyncListContentPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_ListContent_Paged_async] +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.ContentServiceClient; +import com.google.ads.admanager.v1.ListContentRequest; +import com.google.ads.admanager.v1.ListContentResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListContentPaged { + + public static void main(String[] args) throws Exception { + asyncListContentPaged(); + } + + public static void asyncListContentPaged() 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) { + ListContentRequest request = + ListContentRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListContentResponse response = contentServiceClient.listContentCallable().call(request); + for (Content element : response.getContentList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_ContentService_ListContent_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/SyncListContent.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/SyncListContent.java new file mode 100644 index 000000000000..9f9c9cc5e1f0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/SyncListContent.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_ListContent_sync] +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.ContentServiceClient; +import com.google.ads.admanager.v1.ListContentRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContent { + + public static void main(String[] args) throws Exception { + syncListContent(); + } + + public static void syncListContent() 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) { + ListContentRequest request = + ListContentRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (Content element : contentServiceClient.listContent(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentService_ListContent_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/SyncListContentNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/SyncListContentNetworkname.java new file mode 100644 index 000000000000..ffe0b76e7ad3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/SyncListContentNetworkname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_ListContent_Networkname_sync] +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.ContentServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContentNetworkname { + + public static void main(String[] args) throws Exception { + syncListContentNetworkname(); + } + + public static void syncListContentNetworkname() 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (Content element : contentServiceClient.listContent(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentService_ListContent_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/SyncListContentString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/SyncListContentString.java new file mode 100644 index 000000000000..f152c8f72e1a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservice/listcontent/SyncListContentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentService_ListContent_String_sync] +import com.google.ads.admanager.v1.Content; +import com.google.ads.admanager.v1.ContentServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListContentString { + + public static void main(String[] args) throws Exception { + syncListContentString(); + } + + public static void syncListContentString() 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (Content element : contentServiceClient.listContent(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ContentService_ListContent_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservicesettings/getcontent/SyncGetContent.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservicesettings/getcontent/SyncGetContent.java new file mode 100644 index 000000000000..530580663026 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/contentservicesettings/getcontent/SyncGetContent.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_ContentServiceSettings_GetContent_sync] +import com.google.ads.admanager.v1.ContentServiceSettings; +import java.time.Duration; + +public class SyncGetContent { + + public static void main(String[] args) throws Exception { + syncGetContent(); + } + + public static void syncGetContent() 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 + ContentServiceSettings.Builder contentServiceSettingsBuilder = + ContentServiceSettings.newBuilder(); + contentServiceSettingsBuilder + .getContentSettings() + .setRetrySettings( + contentServiceSettingsBuilder + .getContentSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ContentServiceSettings contentServiceSettings = contentServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ContentServiceSettings_GetContent_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..dd49eb62880a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; +import com.google.ads.admanager.v1.CreativeTemplateServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + CreativeTemplateServiceSettings creativeTemplateServiceSettings = + CreativeTemplateServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create(creativeTemplateServiceSettings); + } +} +// [END admanager_v1_generated_CreativeTemplateService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..fd236e42037a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; +import com.google.ads.admanager.v1.CreativeTemplateServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + CreativeTemplateServiceSettings creativeTemplateServiceSettings = + CreativeTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create(creativeTemplateServiceSettings); + } +} +// [END admanager_v1_generated_CreativeTemplateService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/AsyncGetCreativeTemplate.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/AsyncGetCreativeTemplate.java new file mode 100644 index 000000000000..88ae14c7eecb --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/AsyncGetCreativeTemplate.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_async] +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.CreativeTemplateName; +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; +import com.google.ads.admanager.v1.GetCreativeTemplateRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetCreativeTemplate { + + public static void main(String[] args) throws Exception { + asyncGetCreativeTemplate(); + } + + public static void asyncGetCreativeTemplate() 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 (CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create()) { + GetCreativeTemplateRequest request = + GetCreativeTemplateRequest.newBuilder() + .setName(CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]").toString()) + .build(); + ApiFuture future = + creativeTemplateServiceClient.getCreativeTemplateCallable().futureCall(request); + // Do something. + CreativeTemplate response = future.get(); + } + } +} +// [END admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/SyncGetCreativeTemplate.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/SyncGetCreativeTemplate.java new file mode 100644 index 000000000000..ac918c6125fc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/SyncGetCreativeTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_sync] +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.CreativeTemplateName; +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; +import com.google.ads.admanager.v1.GetCreativeTemplateRequest; + +public class SyncGetCreativeTemplate { + + public static void main(String[] args) throws Exception { + syncGetCreativeTemplate(); + } + + public static void syncGetCreativeTemplate() 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 (CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create()) { + GetCreativeTemplateRequest request = + GetCreativeTemplateRequest.newBuilder() + .setName(CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]").toString()) + .build(); + CreativeTemplate response = creativeTemplateServiceClient.getCreativeTemplate(request); + } + } +} +// [END admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/SyncGetCreativeTemplateCreativetemplatename.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/SyncGetCreativeTemplateCreativetemplatename.java new file mode 100644 index 000000000000..84491f90d098 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/SyncGetCreativeTemplateCreativetemplatename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_Creativetemplatename_sync] +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.CreativeTemplateName; +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; + +public class SyncGetCreativeTemplateCreativetemplatename { + + public static void main(String[] args) throws Exception { + syncGetCreativeTemplateCreativetemplatename(); + } + + public static void syncGetCreativeTemplateCreativetemplatename() 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 (CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create()) { + CreativeTemplateName name = CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]"); + CreativeTemplate response = creativeTemplateServiceClient.getCreativeTemplate(name); + } + } +} +// [END admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_Creativetemplatename_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/SyncGetCreativeTemplateString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/SyncGetCreativeTemplateString.java new file mode 100644 index 000000000000..fa01ce9ecf17 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/getcreativetemplate/SyncGetCreativeTemplateString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_String_sync] +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.CreativeTemplateName; +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; + +public class SyncGetCreativeTemplateString { + + public static void main(String[] args) throws Exception { + syncGetCreativeTemplateString(); + } + + public static void syncGetCreativeTemplateString() 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 (CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create()) { + String name = CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]").toString(); + CreativeTemplate response = creativeTemplateServiceClient.getCreativeTemplate(name); + } + } +} +// [END admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/AsyncListCreativeTemplates.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/AsyncListCreativeTemplates.java new file mode 100644 index 000000000000..2c472866b21f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/AsyncListCreativeTemplates.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_async] +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; +import com.google.ads.admanager.v1.ListCreativeTemplatesRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListCreativeTemplates { + + public static void main(String[] args) throws Exception { + asyncListCreativeTemplates(); + } + + public static void asyncListCreativeTemplates() 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 (CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create()) { + ListCreativeTemplatesRequest request = + ListCreativeTemplatesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + creativeTemplateServiceClient.listCreativeTemplatesPagedCallable().futureCall(request); + // Do something. + for (CreativeTemplate element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/AsyncListCreativeTemplatesPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/AsyncListCreativeTemplatesPaged.java new file mode 100644 index 000000000000..62dc25979e8a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/AsyncListCreativeTemplatesPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_Paged_async] +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; +import com.google.ads.admanager.v1.ListCreativeTemplatesRequest; +import com.google.ads.admanager.v1.ListCreativeTemplatesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListCreativeTemplatesPaged { + + public static void main(String[] args) throws Exception { + asyncListCreativeTemplatesPaged(); + } + + public static void asyncListCreativeTemplatesPaged() 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 (CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create()) { + ListCreativeTemplatesRequest request = + ListCreativeTemplatesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListCreativeTemplatesResponse response = + creativeTemplateServiceClient.listCreativeTemplatesCallable().call(request); + for (CreativeTemplate element : response.getCreativeTemplatesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/SyncListCreativeTemplates.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/SyncListCreativeTemplates.java new file mode 100644 index 000000000000..540b62754cdc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/SyncListCreativeTemplates.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_sync] +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; +import com.google.ads.admanager.v1.ListCreativeTemplatesRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListCreativeTemplates { + + public static void main(String[] args) throws Exception { + syncListCreativeTemplates(); + } + + public static void syncListCreativeTemplates() 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 (CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create()) { + ListCreativeTemplatesRequest request = + ListCreativeTemplatesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (CreativeTemplate element : + creativeTemplateServiceClient.listCreativeTemplates(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/SyncListCreativeTemplatesNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/SyncListCreativeTemplatesNetworkname.java new file mode 100644 index 000000000000..9973e6728884 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/SyncListCreativeTemplatesNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_Networkname_sync] +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListCreativeTemplatesNetworkname { + + public static void main(String[] args) throws Exception { + syncListCreativeTemplatesNetworkname(); + } + + public static void syncListCreativeTemplatesNetworkname() 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 (CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (CreativeTemplate element : + creativeTemplateServiceClient.listCreativeTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/SyncListCreativeTemplatesString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/SyncListCreativeTemplatesString.java new file mode 100644 index 000000000000..2fafbab563ac --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservice/listcreativetemplates/SyncListCreativeTemplatesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_String_sync] +import com.google.ads.admanager.v1.CreativeTemplate; +import com.google.ads.admanager.v1.CreativeTemplateServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListCreativeTemplatesString { + + public static void main(String[] args) throws Exception { + syncListCreativeTemplatesString(); + } + + public static void syncListCreativeTemplatesString() 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 (CreativeTemplateServiceClient creativeTemplateServiceClient = + CreativeTemplateServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (CreativeTemplate element : + creativeTemplateServiceClient.listCreativeTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservicesettings/getcreativetemplate/SyncGetCreativeTemplate.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservicesettings/getcreativetemplate/SyncGetCreativeTemplate.java new file mode 100644 index 000000000000..32160243fa7d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/creativetemplateservicesettings/getcreativetemplate/SyncGetCreativeTemplate.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CreativeTemplateServiceSettings_GetCreativeTemplate_sync] +import com.google.ads.admanager.v1.CreativeTemplateServiceSettings; +import java.time.Duration; + +public class SyncGetCreativeTemplate { + + public static void main(String[] args) throws Exception { + syncGetCreativeTemplate(); + } + + public static void syncGetCreativeTemplate() 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 + CreativeTemplateServiceSettings.Builder creativeTemplateServiceSettingsBuilder = + CreativeTemplateServiceSettings.newBuilder(); + creativeTemplateServiceSettingsBuilder + .getCreativeTemplateSettings() + .setRetrySettings( + creativeTemplateServiceSettingsBuilder + .getCreativeTemplateSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CreativeTemplateServiceSettings creativeTemplateServiceSettings = + creativeTemplateServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_CreativeTemplateServiceSettings_GetCreativeTemplate_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/AsyncBatchActivateCustomFields.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/AsyncBatchActivateCustomFields.java new file mode 100644 index 000000000000..e20d3c172d98 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/AsyncBatchActivateCustomFields.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_async] +import com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchActivateCustomFields { + + public static void main(String[] args) throws Exception { + asyncBatchActivateCustomFields(); + } + + public static void asyncBatchActivateCustomFields() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + BatchActivateCustomFieldsRequest request = + BatchActivateCustomFieldsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + customFieldServiceClient.batchActivateCustomFieldsCallable().futureCall(request); + // Do something. + BatchActivateCustomFieldsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/SyncBatchActivateCustomFields.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/SyncBatchActivateCustomFields.java new file mode 100644 index 000000000000..d0267c9f0d6a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/SyncBatchActivateCustomFields.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_sync] +import com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchActivateCustomFields { + + public static void main(String[] args) throws Exception { + syncBatchActivateCustomFields(); + } + + public static void syncBatchActivateCustomFields() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + BatchActivateCustomFieldsRequest request = + BatchActivateCustomFieldsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchActivateCustomFieldsResponse response = + customFieldServiceClient.batchActivateCustomFields(request); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/SyncBatchActivateCustomFieldsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/SyncBatchActivateCustomFieldsNetworknameListstring.java new file mode 100644 index 000000000000..5bb3b279cfc4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/SyncBatchActivateCustomFieldsNetworknameListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivateCustomFieldsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivateCustomFieldsNetworknameListstring(); + } + + public static void syncBatchActivateCustomFieldsNetworknameListstring() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchActivateCustomFieldsResponse response = + customFieldServiceClient.batchActivateCustomFields(parent, names); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/SyncBatchActivateCustomFieldsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/SyncBatchActivateCustomFieldsStringListstring.java new file mode 100644 index 000000000000..5e5b092bba39 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchactivatecustomfields/SyncBatchActivateCustomFieldsStringListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_StringListstring_sync] +import com.google.ads.admanager.v1.BatchActivateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivateCustomFieldsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivateCustomFieldsStringListstring(); + } + + public static void syncBatchActivateCustomFieldsStringListstring() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchActivateCustomFieldsResponse response = + customFieldServiceClient.batchActivateCustomFields(parent, names); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/AsyncBatchCreateCustomFields.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/AsyncBatchCreateCustomFields.java new file mode 100644 index 000000000000..9e073cf485bb --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/AsyncBatchCreateCustomFields.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_async] +import com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse; +import com.google.ads.admanager.v1.CreateCustomFieldRequest; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchCreateCustomFields { + + public static void main(String[] args) throws Exception { + asyncBatchCreateCustomFields(); + } + + public static void asyncBatchCreateCustomFields() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + BatchCreateCustomFieldsRequest request = + BatchCreateCustomFieldsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + customFieldServiceClient.batchCreateCustomFieldsCallable().futureCall(request); + // Do something. + BatchCreateCustomFieldsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/SyncBatchCreateCustomFields.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/SyncBatchCreateCustomFields.java new file mode 100644 index 000000000000..f0e73f20b97c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/SyncBatchCreateCustomFields.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_sync] +import com.google.ads.admanager.v1.BatchCreateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse; +import com.google.ads.admanager.v1.CreateCustomFieldRequest; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchCreateCustomFields { + + public static void main(String[] args) throws Exception { + syncBatchCreateCustomFields(); + } + + public static void syncBatchCreateCustomFields() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + BatchCreateCustomFieldsRequest request = + BatchCreateCustomFieldsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchCreateCustomFieldsResponse response = + customFieldServiceClient.batchCreateCustomFields(request); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/SyncBatchCreateCustomFieldsNetworknameListcreatecustomfieldrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/SyncBatchCreateCustomFieldsNetworknameListcreatecustomfieldrequest.java new file mode 100644 index 000000000000..07e39e355339 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/SyncBatchCreateCustomFieldsNetworknameListcreatecustomfieldrequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_NetworknameListcreatecustomfieldrequest_sync] +import com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse; +import com.google.ads.admanager.v1.CreateCustomFieldRequest; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateCustomFieldsNetworknameListcreatecustomfieldrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateCustomFieldsNetworknameListcreatecustomfieldrequest(); + } + + public static void syncBatchCreateCustomFieldsNetworknameListcreatecustomfieldrequest() + 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchCreateCustomFieldsResponse response = + customFieldServiceClient.batchCreateCustomFields(parent, requests); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_NetworknameListcreatecustomfieldrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/SyncBatchCreateCustomFieldsStringListcreatecustomfieldrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/SyncBatchCreateCustomFieldsStringListcreatecustomfieldrequest.java new file mode 100644 index 000000000000..fea97bd37e93 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchcreatecustomfields/SyncBatchCreateCustomFieldsStringListcreatecustomfieldrequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_StringListcreatecustomfieldrequest_sync] +import com.google.ads.admanager.v1.BatchCreateCustomFieldsResponse; +import com.google.ads.admanager.v1.CreateCustomFieldRequest; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateCustomFieldsStringListcreatecustomfieldrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateCustomFieldsStringListcreatecustomfieldrequest(); + } + + public static void syncBatchCreateCustomFieldsStringListcreatecustomfieldrequest() + 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchCreateCustomFieldsResponse response = + customFieldServiceClient.batchCreateCustomFields(parent, requests); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_StringListcreatecustomfieldrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/AsyncBatchDeactivateCustomFields.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/AsyncBatchDeactivateCustomFields.java new file mode 100644 index 000000000000..1cdd5b365148 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/AsyncBatchDeactivateCustomFields.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_async] +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchDeactivateCustomFields { + + public static void main(String[] args) throws Exception { + asyncBatchDeactivateCustomFields(); + } + + public static void asyncBatchDeactivateCustomFields() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + BatchDeactivateCustomFieldsRequest request = + BatchDeactivateCustomFieldsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + customFieldServiceClient.batchDeactivateCustomFieldsCallable().futureCall(request); + // Do something. + BatchDeactivateCustomFieldsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/SyncBatchDeactivateCustomFields.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/SyncBatchDeactivateCustomFields.java new file mode 100644 index 000000000000..55b5307f59da --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/SyncBatchDeactivateCustomFields.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_sync] +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchDeactivateCustomFields { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateCustomFields(); + } + + public static void syncBatchDeactivateCustomFields() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + BatchDeactivateCustomFieldsRequest request = + BatchDeactivateCustomFieldsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchDeactivateCustomFieldsResponse response = + customFieldServiceClient.batchDeactivateCustomFields(request); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/SyncBatchDeactivateCustomFieldsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/SyncBatchDeactivateCustomFieldsNetworknameListstring.java new file mode 100644 index 000000000000..128d8a6fbad6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/SyncBatchDeactivateCustomFieldsNetworknameListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateCustomFieldsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateCustomFieldsNetworknameListstring(); + } + + public static void syncBatchDeactivateCustomFieldsNetworknameListstring() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchDeactivateCustomFieldsResponse response = + customFieldServiceClient.batchDeactivateCustomFields(parent, names); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/SyncBatchDeactivateCustomFieldsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/SyncBatchDeactivateCustomFieldsStringListstring.java new file mode 100644 index 000000000000..9ac92a34987c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchdeactivatecustomfields/SyncBatchDeactivateCustomFieldsStringListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_StringListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateCustomFieldsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateCustomFieldsStringListstring(); + } + + public static void syncBatchDeactivateCustomFieldsStringListstring() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchDeactivateCustomFieldsResponse response = + customFieldServiceClient.batchDeactivateCustomFields(parent, names); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/AsyncBatchUpdateCustomFields.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/AsyncBatchUpdateCustomFields.java new file mode 100644 index 000000000000..b8acafcc0b37 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/AsyncBatchUpdateCustomFields.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_async] +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateCustomFieldRequest; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchUpdateCustomFields { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateCustomFields(); + } + + public static void asyncBatchUpdateCustomFields() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + BatchUpdateCustomFieldsRequest request = + BatchUpdateCustomFieldsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + customFieldServiceClient.batchUpdateCustomFieldsCallable().futureCall(request); + // Do something. + BatchUpdateCustomFieldsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/SyncBatchUpdateCustomFields.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/SyncBatchUpdateCustomFields.java new file mode 100644 index 000000000000..df410d200a43 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/SyncBatchUpdateCustomFields.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_sync] +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateCustomFieldRequest; +import java.util.ArrayList; + +public class SyncBatchUpdateCustomFields { + + public static void main(String[] args) throws Exception { + syncBatchUpdateCustomFields(); + } + + public static void syncBatchUpdateCustomFields() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + BatchUpdateCustomFieldsRequest request = + BatchUpdateCustomFieldsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchUpdateCustomFieldsResponse response = + customFieldServiceClient.batchUpdateCustomFields(request); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/SyncBatchUpdateCustomFieldsNetworknameListupdatecustomfieldrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/SyncBatchUpdateCustomFieldsNetworknameListupdatecustomfieldrequest.java new file mode 100644 index 000000000000..ab0f3fadd22f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/SyncBatchUpdateCustomFieldsNetworknameListupdatecustomfieldrequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_NetworknameListupdatecustomfieldrequest_sync] +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateCustomFieldRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateCustomFieldsNetworknameListupdatecustomfieldrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateCustomFieldsNetworknameListupdatecustomfieldrequest(); + } + + public static void syncBatchUpdateCustomFieldsNetworknameListupdatecustomfieldrequest() + 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchUpdateCustomFieldsResponse response = + customFieldServiceClient.batchUpdateCustomFields(parent, requests); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_NetworknameListupdatecustomfieldrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/SyncBatchUpdateCustomFieldsStringListupdatecustomfieldrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/SyncBatchUpdateCustomFieldsStringListupdatecustomfieldrequest.java new file mode 100644 index 000000000000..001cbc66a8bb --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/batchupdatecustomfields/SyncBatchUpdateCustomFieldsStringListupdatecustomfieldrequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_StringListupdatecustomfieldrequest_sync] +import com.google.ads.admanager.v1.BatchUpdateCustomFieldsResponse; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateCustomFieldRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateCustomFieldsStringListupdatecustomfieldrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateCustomFieldsStringListupdatecustomfieldrequest(); + } + + public static void syncBatchUpdateCustomFieldsStringListupdatecustomfieldrequest() + 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchUpdateCustomFieldsResponse response = + customFieldServiceClient.batchUpdateCustomFields(parent, requests); + } + } +} +// [END admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_StringListupdatecustomfieldrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/AsyncCreateCustomField.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/AsyncCreateCustomField.java new file mode 100644 index 000000000000..fb1bf8b975cc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/AsyncCreateCustomField.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_CreateCustomField_async] +import com.google.ads.admanager.v1.CreateCustomFieldRequest; +import com.google.ads.admanager.v1.CustomField; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncCreateCustomField { + + public static void main(String[] args) throws Exception { + asyncCreateCustomField(); + } + + public static void asyncCreateCustomField() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + CreateCustomFieldRequest request = + CreateCustomFieldRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setCustomField(CustomField.newBuilder().build()) + .build(); + ApiFuture future = + customFieldServiceClient.createCustomFieldCallable().futureCall(request); + // Do something. + CustomField response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomFieldService_CreateCustomField_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/SyncCreateCustomField.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/SyncCreateCustomField.java new file mode 100644 index 000000000000..a363358dc3f8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/SyncCreateCustomField.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_CreateCustomField_sync] +import com.google.ads.admanager.v1.CreateCustomFieldRequest; +import com.google.ads.admanager.v1.CustomField; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateCustomField { + + public static void main(String[] args) throws Exception { + syncCreateCustomField(); + } + + public static void syncCreateCustomField() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + CreateCustomFieldRequest request = + CreateCustomFieldRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setCustomField(CustomField.newBuilder().build()) + .build(); + CustomField response = customFieldServiceClient.createCustomField(request); + } + } +} +// [END admanager_v1_generated_CustomFieldService_CreateCustomField_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/SyncCreateCustomFieldNetworknameCustomfield.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/SyncCreateCustomFieldNetworknameCustomfield.java new file mode 100644 index 000000000000..3a258ded9692 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/SyncCreateCustomFieldNetworknameCustomfield.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_CreateCustomField_NetworknameCustomfield_sync] +import com.google.ads.admanager.v1.CustomField; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateCustomFieldNetworknameCustomfield { + + public static void main(String[] args) throws Exception { + syncCreateCustomFieldNetworknameCustomfield(); + } + + public static void syncCreateCustomFieldNetworknameCustomfield() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + CustomField customField = CustomField.newBuilder().build(); + CustomField response = customFieldServiceClient.createCustomField(parent, customField); + } + } +} +// [END admanager_v1_generated_CustomFieldService_CreateCustomField_NetworknameCustomfield_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/SyncCreateCustomFieldStringCustomfield.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/SyncCreateCustomFieldStringCustomfield.java new file mode 100644 index 000000000000..3cc35285c7b9 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/createcustomfield/SyncCreateCustomFieldStringCustomfield.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_CreateCustomField_StringCustomfield_sync] +import com.google.ads.admanager.v1.CustomField; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateCustomFieldStringCustomfield { + + public static void main(String[] args) throws Exception { + syncCreateCustomFieldStringCustomfield(); + } + + public static void syncCreateCustomFieldStringCustomfield() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + CustomField customField = CustomField.newBuilder().build(); + CustomField response = customFieldServiceClient.createCustomField(parent, customField); + } + } +} +// [END admanager_v1_generated_CustomFieldService_CreateCustomField_StringCustomfield_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/updatecustomfield/AsyncUpdateCustomField.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/updatecustomfield/AsyncUpdateCustomField.java new file mode 100644 index 000000000000..a89228a5004b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/updatecustomfield/AsyncUpdateCustomField.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_UpdateCustomField_async] +import com.google.ads.admanager.v1.CustomField; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.UpdateCustomFieldRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCustomField { + + public static void main(String[] args) throws Exception { + asyncUpdateCustomField(); + } + + public static void asyncUpdateCustomField() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + UpdateCustomFieldRequest request = + UpdateCustomFieldRequest.newBuilder() + .setCustomField(CustomField.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + customFieldServiceClient.updateCustomFieldCallable().futureCall(request); + // Do something. + CustomField response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomFieldService_UpdateCustomField_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/updatecustomfield/SyncUpdateCustomField.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/updatecustomfield/SyncUpdateCustomField.java new file mode 100644 index 000000000000..e195c6055dbf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/updatecustomfield/SyncUpdateCustomField.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_UpdateCustomField_sync] +import com.google.ads.admanager.v1.CustomField; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.ads.admanager.v1.UpdateCustomFieldRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomField { + + public static void main(String[] args) throws Exception { + syncUpdateCustomField(); + } + + public static void syncUpdateCustomField() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + UpdateCustomFieldRequest request = + UpdateCustomFieldRequest.newBuilder() + .setCustomField(CustomField.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CustomField response = customFieldServiceClient.updateCustomField(request); + } + } +} +// [END admanager_v1_generated_CustomFieldService_UpdateCustomField_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/updatecustomfield/SyncUpdateCustomFieldCustomfieldFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/updatecustomfield/SyncUpdateCustomFieldCustomfieldFieldmask.java new file mode 100644 index 000000000000..dc49c25ea0c2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customfieldservice/updatecustomfield/SyncUpdateCustomFieldCustomfieldFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_CustomFieldService_UpdateCustomField_CustomfieldFieldmask_sync] +import com.google.ads.admanager.v1.CustomField; +import com.google.ads.admanager.v1.CustomFieldServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomFieldCustomfieldFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCustomFieldCustomfieldFieldmask(); + } + + public static void syncUpdateCustomFieldCustomfieldFieldmask() 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 (CustomFieldServiceClient customFieldServiceClient = CustomFieldServiceClient.create()) { + CustomField customField = CustomField.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CustomField response = customFieldServiceClient.updateCustomField(customField, updateMask); + } + } +} +// [END admanager_v1_generated_CustomFieldService_UpdateCustomField_CustomfieldFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..79ecdcd00fe1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; +import com.google.ads.admanager.v1.DeviceCapabilityServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + DeviceCapabilityServiceSettings deviceCapabilityServiceSettings = + DeviceCapabilityServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create(deviceCapabilityServiceSettings); + } +} +// [END admanager_v1_generated_DeviceCapabilityService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..b96db8db9732 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; +import com.google.ads.admanager.v1.DeviceCapabilityServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + DeviceCapabilityServiceSettings deviceCapabilityServiceSettings = + DeviceCapabilityServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create(deviceCapabilityServiceSettings); + } +} +// [END admanager_v1_generated_DeviceCapabilityService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/AsyncGetDeviceCapability.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/AsyncGetDeviceCapability.java new file mode 100644 index 000000000000..d4ca0ac72766 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/AsyncGetDeviceCapability.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_async] +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.DeviceCapabilityName; +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; +import com.google.ads.admanager.v1.GetDeviceCapabilityRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetDeviceCapability { + + public static void main(String[] args) throws Exception { + asyncGetDeviceCapability(); + } + + public static void asyncGetDeviceCapability() 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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create()) { + GetDeviceCapabilityRequest request = + GetDeviceCapabilityRequest.newBuilder() + .setName(DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]").toString()) + .build(); + ApiFuture future = + deviceCapabilityServiceClient.getDeviceCapabilityCallable().futureCall(request); + // Do something. + DeviceCapability response = future.get(); + } + } +} +// [END admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/SyncGetDeviceCapability.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/SyncGetDeviceCapability.java new file mode 100644 index 000000000000..b8ac1edae276 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/SyncGetDeviceCapability.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_sync] +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.DeviceCapabilityName; +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; +import com.google.ads.admanager.v1.GetDeviceCapabilityRequest; + +public class SyncGetDeviceCapability { + + public static void main(String[] args) throws Exception { + syncGetDeviceCapability(); + } + + public static void syncGetDeviceCapability() 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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create()) { + GetDeviceCapabilityRequest request = + GetDeviceCapabilityRequest.newBuilder() + .setName(DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]").toString()) + .build(); + DeviceCapability response = deviceCapabilityServiceClient.getDeviceCapability(request); + } + } +} +// [END admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/SyncGetDeviceCapabilityDevicecapabilityname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/SyncGetDeviceCapabilityDevicecapabilityname.java new file mode 100644 index 000000000000..e4ea207a1376 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/SyncGetDeviceCapabilityDevicecapabilityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_Devicecapabilityname_sync] +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.DeviceCapabilityName; +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; + +public class SyncGetDeviceCapabilityDevicecapabilityname { + + public static void main(String[] args) throws Exception { + syncGetDeviceCapabilityDevicecapabilityname(); + } + + public static void syncGetDeviceCapabilityDevicecapabilityname() 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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create()) { + DeviceCapabilityName name = DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]"); + DeviceCapability response = deviceCapabilityServiceClient.getDeviceCapability(name); + } + } +} +// [END admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_Devicecapabilityname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/SyncGetDeviceCapabilityString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/SyncGetDeviceCapabilityString.java new file mode 100644 index 000000000000..72d0e69984a2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/getdevicecapability/SyncGetDeviceCapabilityString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_String_sync] +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.DeviceCapabilityName; +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; + +public class SyncGetDeviceCapabilityString { + + public static void main(String[] args) throws Exception { + syncGetDeviceCapabilityString(); + } + + public static void syncGetDeviceCapabilityString() 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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create()) { + String name = DeviceCapabilityName.of("[NETWORK_CODE]", "[DEVICE_CAPABILITY]").toString(); + DeviceCapability response = deviceCapabilityServiceClient.getDeviceCapability(name); + } + } +} +// [END admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/AsyncListDeviceCapabilities.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/AsyncListDeviceCapabilities.java new file mode 100644 index 000000000000..46367375e8c7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/AsyncListDeviceCapabilities.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_async] +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListDeviceCapabilities { + + public static void main(String[] args) throws Exception { + asyncListDeviceCapabilities(); + } + + public static void asyncListDeviceCapabilities() 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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create()) { + ListDeviceCapabilitiesRequest request = + ListDeviceCapabilitiesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + deviceCapabilityServiceClient.listDeviceCapabilitiesPagedCallable().futureCall(request); + // Do something. + for (DeviceCapability element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/AsyncListDeviceCapabilitiesPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/AsyncListDeviceCapabilitiesPaged.java new file mode 100644 index 000000000000..7812a4e0a5e7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/AsyncListDeviceCapabilitiesPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_Paged_async] +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListDeviceCapabilitiesPaged { + + public static void main(String[] args) throws Exception { + asyncListDeviceCapabilitiesPaged(); + } + + public static void asyncListDeviceCapabilitiesPaged() 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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create()) { + ListDeviceCapabilitiesRequest request = + ListDeviceCapabilitiesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListDeviceCapabilitiesResponse response = + deviceCapabilityServiceClient.listDeviceCapabilitiesCallable().call(request); + for (DeviceCapability element : response.getDeviceCapabilitiesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/SyncListDeviceCapabilities.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/SyncListDeviceCapabilities.java new file mode 100644 index 000000000000..8d1d0edd6e4a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/SyncListDeviceCapabilities.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_sync] +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; +import com.google.ads.admanager.v1.ListDeviceCapabilitiesRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListDeviceCapabilities { + + public static void main(String[] args) throws Exception { + syncListDeviceCapabilities(); + } + + public static void syncListDeviceCapabilities() 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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create()) { + ListDeviceCapabilitiesRequest request = + ListDeviceCapabilitiesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (DeviceCapability element : + deviceCapabilityServiceClient.listDeviceCapabilities(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/SyncListDeviceCapabilitiesNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/SyncListDeviceCapabilitiesNetworkname.java new file mode 100644 index 000000000000..48cb4b116a57 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/SyncListDeviceCapabilitiesNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_Networkname_sync] +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListDeviceCapabilitiesNetworkname { + + public static void main(String[] args) throws Exception { + syncListDeviceCapabilitiesNetworkname(); + } + + public static void syncListDeviceCapabilitiesNetworkname() 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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (DeviceCapability element : + deviceCapabilityServiceClient.listDeviceCapabilities(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/SyncListDeviceCapabilitiesString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/SyncListDeviceCapabilitiesString.java new file mode 100644 index 000000000000..051d47d0f5f2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservice/listdevicecapabilities/SyncListDeviceCapabilitiesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_String_sync] +import com.google.ads.admanager.v1.DeviceCapability; +import com.google.ads.admanager.v1.DeviceCapabilityServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListDeviceCapabilitiesString { + + public static void main(String[] args) throws Exception { + syncListDeviceCapabilitiesString(); + } + + public static void syncListDeviceCapabilitiesString() 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 (DeviceCapabilityServiceClient deviceCapabilityServiceClient = + DeviceCapabilityServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (DeviceCapability element : + deviceCapabilityServiceClient.listDeviceCapabilities(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservicesettings/getdevicecapability/SyncGetDeviceCapability.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservicesettings/getdevicecapability/SyncGetDeviceCapability.java new file mode 100644 index 000000000000..0fca72d4d903 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecapabilityservicesettings/getdevicecapability/SyncGetDeviceCapability.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCapabilityServiceSettings_GetDeviceCapability_sync] +import com.google.ads.admanager.v1.DeviceCapabilityServiceSettings; +import java.time.Duration; + +public class SyncGetDeviceCapability { + + public static void main(String[] args) throws Exception { + syncGetDeviceCapability(); + } + + public static void syncGetDeviceCapability() 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 + DeviceCapabilityServiceSettings.Builder deviceCapabilityServiceSettingsBuilder = + DeviceCapabilityServiceSettings.newBuilder(); + deviceCapabilityServiceSettingsBuilder + .getDeviceCapabilitySettings() + .setRetrySettings( + deviceCapabilityServiceSettingsBuilder + .getDeviceCapabilitySettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DeviceCapabilityServiceSettings deviceCapabilityServiceSettings = + deviceCapabilityServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_DeviceCapabilityServiceSettings_GetDeviceCapability_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..dd228f2facd5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; +import com.google.ads.admanager.v1.DeviceManufacturerServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + DeviceManufacturerServiceSettings deviceManufacturerServiceSettings = + DeviceManufacturerServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create(deviceManufacturerServiceSettings); + } +} +// [END admanager_v1_generated_DeviceManufacturerService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..13bb19923f8d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; +import com.google.ads.admanager.v1.DeviceManufacturerServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + DeviceManufacturerServiceSettings deviceManufacturerServiceSettings = + DeviceManufacturerServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create(deviceManufacturerServiceSettings); + } +} +// [END admanager_v1_generated_DeviceManufacturerService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/AsyncGetDeviceManufacturer.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/AsyncGetDeviceManufacturer.java new file mode 100644 index 000000000000..86c887a04c4d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/AsyncGetDeviceManufacturer.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_async] +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.DeviceManufacturerName; +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; +import com.google.ads.admanager.v1.GetDeviceManufacturerRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetDeviceManufacturer { + + public static void main(String[] args) throws Exception { + asyncGetDeviceManufacturer(); + } + + public static void asyncGetDeviceManufacturer() 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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create()) { + GetDeviceManufacturerRequest request = + GetDeviceManufacturerRequest.newBuilder() + .setName( + DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString()) + .build(); + ApiFuture future = + deviceManufacturerServiceClient.getDeviceManufacturerCallable().futureCall(request); + // Do something. + DeviceManufacturer response = future.get(); + } + } +} +// [END admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/SyncGetDeviceManufacturer.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/SyncGetDeviceManufacturer.java new file mode 100644 index 000000000000..5713a9301f23 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/SyncGetDeviceManufacturer.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_sync] +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.DeviceManufacturerName; +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; +import com.google.ads.admanager.v1.GetDeviceManufacturerRequest; + +public class SyncGetDeviceManufacturer { + + public static void main(String[] args) throws Exception { + syncGetDeviceManufacturer(); + } + + public static void syncGetDeviceManufacturer() 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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create()) { + GetDeviceManufacturerRequest request = + GetDeviceManufacturerRequest.newBuilder() + .setName( + DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString()) + .build(); + DeviceManufacturer response = deviceManufacturerServiceClient.getDeviceManufacturer(request); + } + } +} +// [END admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/SyncGetDeviceManufacturerDevicemanufacturername.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/SyncGetDeviceManufacturerDevicemanufacturername.java new file mode 100644 index 000000000000..ab7c64e64190 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/SyncGetDeviceManufacturerDevicemanufacturername.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_Devicemanufacturername_sync] +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.DeviceManufacturerName; +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; + +public class SyncGetDeviceManufacturerDevicemanufacturername { + + public static void main(String[] args) throws Exception { + syncGetDeviceManufacturerDevicemanufacturername(); + } + + public static void syncGetDeviceManufacturerDevicemanufacturername() 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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create()) { + DeviceManufacturerName name = + DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]"); + DeviceManufacturer response = deviceManufacturerServiceClient.getDeviceManufacturer(name); + } + } +} +// [END admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_Devicemanufacturername_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/SyncGetDeviceManufacturerString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/SyncGetDeviceManufacturerString.java new file mode 100644 index 000000000000..5c1ef0ab95e6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/getdevicemanufacturer/SyncGetDeviceManufacturerString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_String_sync] +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.DeviceManufacturerName; +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; + +public class SyncGetDeviceManufacturerString { + + public static void main(String[] args) throws Exception { + syncGetDeviceManufacturerString(); + } + + public static void syncGetDeviceManufacturerString() 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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create()) { + String name = DeviceManufacturerName.of("[NETWORK_CODE]", "[DEVICE_MANUFACTURER]").toString(); + DeviceManufacturer response = deviceManufacturerServiceClient.getDeviceManufacturer(name); + } + } +} +// [END admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/AsyncListDeviceManufacturers.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/AsyncListDeviceManufacturers.java new file mode 100644 index 000000000000..d134a624cd1a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/AsyncListDeviceManufacturers.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_async] +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; +import com.google.ads.admanager.v1.ListDeviceManufacturersRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListDeviceManufacturers { + + public static void main(String[] args) throws Exception { + asyncListDeviceManufacturers(); + } + + public static void asyncListDeviceManufacturers() 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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create()) { + ListDeviceManufacturersRequest request = + ListDeviceManufacturersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + deviceManufacturerServiceClient + .listDeviceManufacturersPagedCallable() + .futureCall(request); + // Do something. + for (DeviceManufacturer element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/AsyncListDeviceManufacturersPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/AsyncListDeviceManufacturersPaged.java new file mode 100644 index 000000000000..83213d01dc45 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/AsyncListDeviceManufacturersPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_Paged_async] +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; +import com.google.ads.admanager.v1.ListDeviceManufacturersRequest; +import com.google.ads.admanager.v1.ListDeviceManufacturersResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListDeviceManufacturersPaged { + + public static void main(String[] args) throws Exception { + asyncListDeviceManufacturersPaged(); + } + + public static void asyncListDeviceManufacturersPaged() 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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create()) { + ListDeviceManufacturersRequest request = + ListDeviceManufacturersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListDeviceManufacturersResponse response = + deviceManufacturerServiceClient.listDeviceManufacturersCallable().call(request); + for (DeviceManufacturer element : response.getDeviceManufacturersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/SyncListDeviceManufacturers.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/SyncListDeviceManufacturers.java new file mode 100644 index 000000000000..78977c4a9cf9 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/SyncListDeviceManufacturers.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_sync] +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; +import com.google.ads.admanager.v1.ListDeviceManufacturersRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListDeviceManufacturers { + + public static void main(String[] args) throws Exception { + syncListDeviceManufacturers(); + } + + public static void syncListDeviceManufacturers() 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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create()) { + ListDeviceManufacturersRequest request = + ListDeviceManufacturersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (DeviceManufacturer element : + deviceManufacturerServiceClient.listDeviceManufacturers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/SyncListDeviceManufacturersNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/SyncListDeviceManufacturersNetworkname.java new file mode 100644 index 000000000000..87e99c7e65af --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/SyncListDeviceManufacturersNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_Networkname_sync] +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListDeviceManufacturersNetworkname { + + public static void main(String[] args) throws Exception { + syncListDeviceManufacturersNetworkname(); + } + + public static void syncListDeviceManufacturersNetworkname() 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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (DeviceManufacturer element : + deviceManufacturerServiceClient.listDeviceManufacturers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/SyncListDeviceManufacturersString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/SyncListDeviceManufacturersString.java new file mode 100644 index 000000000000..2b7b9651ab3b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservice/listdevicemanufacturers/SyncListDeviceManufacturersString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_String_sync] +import com.google.ads.admanager.v1.DeviceManufacturer; +import com.google.ads.admanager.v1.DeviceManufacturerServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListDeviceManufacturersString { + + public static void main(String[] args) throws Exception { + syncListDeviceManufacturersString(); + } + + public static void syncListDeviceManufacturersString() 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 (DeviceManufacturerServiceClient deviceManufacturerServiceClient = + DeviceManufacturerServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (DeviceManufacturer element : + deviceManufacturerServiceClient.listDeviceManufacturers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservicesettings/getdevicemanufacturer/SyncGetDeviceManufacturer.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservicesettings/getdevicemanufacturer/SyncGetDeviceManufacturer.java new file mode 100644 index 000000000000..74d6988ea21e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicemanufacturerservicesettings/getdevicemanufacturer/SyncGetDeviceManufacturer.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceManufacturerServiceSettings_GetDeviceManufacturer_sync] +import com.google.ads.admanager.v1.DeviceManufacturerServiceSettings; +import java.time.Duration; + +public class SyncGetDeviceManufacturer { + + public static void main(String[] args) throws Exception { + syncGetDeviceManufacturer(); + } + + public static void syncGetDeviceManufacturer() 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 + DeviceManufacturerServiceSettings.Builder deviceManufacturerServiceSettingsBuilder = + DeviceManufacturerServiceSettings.newBuilder(); + deviceManufacturerServiceSettingsBuilder + .getDeviceManufacturerSettings() + .setRetrySettings( + deviceManufacturerServiceSettingsBuilder + .getDeviceManufacturerSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DeviceManufacturerServiceSettings deviceManufacturerServiceSettings = + deviceManufacturerServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_DeviceManufacturerServiceSettings_GetDeviceManufacturer_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b17ea1455e58 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.MobileCarrierServiceClient; +import com.google.ads.admanager.v1.MobileCarrierServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + MobileCarrierServiceSettings mobileCarrierServiceSettings = + MobileCarrierServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create(mobileCarrierServiceSettings); + } +} +// [END admanager_v1_generated_MobileCarrierService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..a7aa345a2c01 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.MobileCarrierServiceClient; +import com.google.ads.admanager.v1.MobileCarrierServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + MobileCarrierServiceSettings mobileCarrierServiceSettings = + MobileCarrierServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create(mobileCarrierServiceSettings); + } +} +// [END admanager_v1_generated_MobileCarrierService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/AsyncGetMobileCarrier.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/AsyncGetMobileCarrier.java new file mode 100644 index 000000000000..e74d451d519f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/AsyncGetMobileCarrier.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_GetMobileCarrier_async] +import com.google.ads.admanager.v1.GetMobileCarrierRequest; +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.ads.admanager.v1.MobileCarrierName; +import com.google.ads.admanager.v1.MobileCarrierServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetMobileCarrier { + + public static void main(String[] args) throws Exception { + asyncGetMobileCarrier(); + } + + public static void asyncGetMobileCarrier() 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 (MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create()) { + GetMobileCarrierRequest request = + GetMobileCarrierRequest.newBuilder() + .setName(MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]").toString()) + .build(); + ApiFuture future = + mobileCarrierServiceClient.getMobileCarrierCallable().futureCall(request); + // Do something. + MobileCarrier response = future.get(); + } + } +} +// [END admanager_v1_generated_MobileCarrierService_GetMobileCarrier_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/SyncGetMobileCarrier.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/SyncGetMobileCarrier.java new file mode 100644 index 000000000000..fbafcf528829 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/SyncGetMobileCarrier.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_GetMobileCarrier_sync] +import com.google.ads.admanager.v1.GetMobileCarrierRequest; +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.ads.admanager.v1.MobileCarrierName; +import com.google.ads.admanager.v1.MobileCarrierServiceClient; + +public class SyncGetMobileCarrier { + + public static void main(String[] args) throws Exception { + syncGetMobileCarrier(); + } + + public static void syncGetMobileCarrier() 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 (MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create()) { + GetMobileCarrierRequest request = + GetMobileCarrierRequest.newBuilder() + .setName(MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]").toString()) + .build(); + MobileCarrier response = mobileCarrierServiceClient.getMobileCarrier(request); + } + } +} +// [END admanager_v1_generated_MobileCarrierService_GetMobileCarrier_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/SyncGetMobileCarrierMobilecarriername.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/SyncGetMobileCarrierMobilecarriername.java new file mode 100644 index 000000000000..430fe8fda9d4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/SyncGetMobileCarrierMobilecarriername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_GetMobileCarrier_Mobilecarriername_sync] +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.ads.admanager.v1.MobileCarrierName; +import com.google.ads.admanager.v1.MobileCarrierServiceClient; + +public class SyncGetMobileCarrierMobilecarriername { + + public static void main(String[] args) throws Exception { + syncGetMobileCarrierMobilecarriername(); + } + + public static void syncGetMobileCarrierMobilecarriername() 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 (MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create()) { + MobileCarrierName name = MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]"); + MobileCarrier response = mobileCarrierServiceClient.getMobileCarrier(name); + } + } +} +// [END admanager_v1_generated_MobileCarrierService_GetMobileCarrier_Mobilecarriername_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/SyncGetMobileCarrierString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/SyncGetMobileCarrierString.java new file mode 100644 index 000000000000..5c7512bcf68d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/getmobilecarrier/SyncGetMobileCarrierString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_GetMobileCarrier_String_sync] +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.ads.admanager.v1.MobileCarrierName; +import com.google.ads.admanager.v1.MobileCarrierServiceClient; + +public class SyncGetMobileCarrierString { + + public static void main(String[] args) throws Exception { + syncGetMobileCarrierString(); + } + + public static void syncGetMobileCarrierString() 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 (MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create()) { + String name = MobileCarrierName.of("[NETWORK_CODE]", "[MOBILE_CARRIER]").toString(); + MobileCarrier response = mobileCarrierServiceClient.getMobileCarrier(name); + } + } +} +// [END admanager_v1_generated_MobileCarrierService_GetMobileCarrier_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/AsyncListMobileCarriers.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/AsyncListMobileCarriers.java new file mode 100644 index 000000000000..1299caa1df41 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/AsyncListMobileCarriers.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_ListMobileCarriers_async] +import com.google.ads.admanager.v1.ListMobileCarriersRequest; +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.ads.admanager.v1.MobileCarrierServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListMobileCarriers { + + public static void main(String[] args) throws Exception { + asyncListMobileCarriers(); + } + + public static void asyncListMobileCarriers() 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 (MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create()) { + ListMobileCarriersRequest request = + ListMobileCarriersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + mobileCarrierServiceClient.listMobileCarriersPagedCallable().futureCall(request); + // Do something. + for (MobileCarrier element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileCarrierService_ListMobileCarriers_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/AsyncListMobileCarriersPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/AsyncListMobileCarriersPaged.java new file mode 100644 index 000000000000..4099d97e31db --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/AsyncListMobileCarriersPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_ListMobileCarriers_Paged_async] +import com.google.ads.admanager.v1.ListMobileCarriersRequest; +import com.google.ads.admanager.v1.ListMobileCarriersResponse; +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.ads.admanager.v1.MobileCarrierServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListMobileCarriersPaged { + + public static void main(String[] args) throws Exception { + asyncListMobileCarriersPaged(); + } + + public static void asyncListMobileCarriersPaged() 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 (MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create()) { + ListMobileCarriersRequest request = + ListMobileCarriersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListMobileCarriersResponse response = + mobileCarrierServiceClient.listMobileCarriersCallable().call(request); + for (MobileCarrier element : response.getMobileCarriersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_MobileCarrierService_ListMobileCarriers_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/SyncListMobileCarriers.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/SyncListMobileCarriers.java new file mode 100644 index 000000000000..c8e8d921bf6d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/SyncListMobileCarriers.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_ListMobileCarriers_sync] +import com.google.ads.admanager.v1.ListMobileCarriersRequest; +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.ads.admanager.v1.MobileCarrierServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListMobileCarriers { + + public static void main(String[] args) throws Exception { + syncListMobileCarriers(); + } + + public static void syncListMobileCarriers() 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 (MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create()) { + ListMobileCarriersRequest request = + ListMobileCarriersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (MobileCarrier element : + mobileCarrierServiceClient.listMobileCarriers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileCarrierService_ListMobileCarriers_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/SyncListMobileCarriersNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/SyncListMobileCarriersNetworkname.java new file mode 100644 index 000000000000..acc80f77796c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/SyncListMobileCarriersNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_ListMobileCarriers_Networkname_sync] +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.ads.admanager.v1.MobileCarrierServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListMobileCarriersNetworkname { + + public static void main(String[] args) throws Exception { + syncListMobileCarriersNetworkname(); + } + + public static void syncListMobileCarriersNetworkname() 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 (MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (MobileCarrier element : + mobileCarrierServiceClient.listMobileCarriers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileCarrierService_ListMobileCarriers_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/SyncListMobileCarriersString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/SyncListMobileCarriersString.java new file mode 100644 index 000000000000..07f013024a8a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservice/listmobilecarriers/SyncListMobileCarriersString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierService_ListMobileCarriers_String_sync] +import com.google.ads.admanager.v1.MobileCarrier; +import com.google.ads.admanager.v1.MobileCarrierServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListMobileCarriersString { + + public static void main(String[] args) throws Exception { + syncListMobileCarriersString(); + } + + public static void syncListMobileCarriersString() 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 (MobileCarrierServiceClient mobileCarrierServiceClient = + MobileCarrierServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (MobileCarrier element : + mobileCarrierServiceClient.listMobileCarriers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileCarrierService_ListMobileCarriers_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservicesettings/getmobilecarrier/SyncGetMobileCarrier.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservicesettings/getmobilecarrier/SyncGetMobileCarrier.java new file mode 100644 index 000000000000..54eb4f3a0d20 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobilecarrierservicesettings/getmobilecarrier/SyncGetMobileCarrier.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileCarrierServiceSettings_GetMobileCarrier_sync] +import com.google.ads.admanager.v1.MobileCarrierServiceSettings; +import java.time.Duration; + +public class SyncGetMobileCarrier { + + public static void main(String[] args) throws Exception { + syncGetMobileCarrier(); + } + + public static void syncGetMobileCarrier() 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 + MobileCarrierServiceSettings.Builder mobileCarrierServiceSettingsBuilder = + MobileCarrierServiceSettings.newBuilder(); + mobileCarrierServiceSettingsBuilder + .getMobileCarrierSettings() + .setRetrySettings( + mobileCarrierServiceSettingsBuilder + .getMobileCarrierSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MobileCarrierServiceSettings mobileCarrierServiceSettings = + mobileCarrierServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_MobileCarrierServiceSettings_GetMobileCarrier_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..82bc001d09cc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.MobileDeviceServiceClient; +import com.google.ads.admanager.v1.MobileDeviceServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + MobileDeviceServiceSettings mobileDeviceServiceSettings = + MobileDeviceServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + MobileDeviceServiceClient mobileDeviceServiceClient = + MobileDeviceServiceClient.create(mobileDeviceServiceSettings); + } +} +// [END admanager_v1_generated_MobileDeviceService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..69a68b604da0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.MobileDeviceServiceClient; +import com.google.ads.admanager.v1.MobileDeviceServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + MobileDeviceServiceSettings mobileDeviceServiceSettings = + MobileDeviceServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + MobileDeviceServiceClient mobileDeviceServiceClient = + MobileDeviceServiceClient.create(mobileDeviceServiceSettings); + } +} +// [END admanager_v1_generated_MobileDeviceService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/AsyncGetMobileDevice.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/AsyncGetMobileDevice.java new file mode 100644 index 000000000000..97f95524b897 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/AsyncGetMobileDevice.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_GetMobileDevice_async] +import com.google.ads.admanager.v1.GetMobileDeviceRequest; +import com.google.ads.admanager.v1.MobileDevice; +import com.google.ads.admanager.v1.MobileDeviceName; +import com.google.ads.admanager.v1.MobileDeviceServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetMobileDevice { + + public static void main(String[] args) throws Exception { + asyncGetMobileDevice(); + } + + public static void asyncGetMobileDevice() 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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) { + GetMobileDeviceRequest request = + GetMobileDeviceRequest.newBuilder() + .setName(MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString()) + .build(); + ApiFuture future = + mobileDeviceServiceClient.getMobileDeviceCallable().futureCall(request); + // Do something. + MobileDevice response = future.get(); + } + } +} +// [END admanager_v1_generated_MobileDeviceService_GetMobileDevice_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/SyncGetMobileDevice.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/SyncGetMobileDevice.java new file mode 100644 index 000000000000..0e1be7e46105 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/SyncGetMobileDevice.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_GetMobileDevice_sync] +import com.google.ads.admanager.v1.GetMobileDeviceRequest; +import com.google.ads.admanager.v1.MobileDevice; +import com.google.ads.admanager.v1.MobileDeviceName; +import com.google.ads.admanager.v1.MobileDeviceServiceClient; + +public class SyncGetMobileDevice { + + public static void main(String[] args) throws Exception { + syncGetMobileDevice(); + } + + public static void syncGetMobileDevice() 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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) { + GetMobileDeviceRequest request = + GetMobileDeviceRequest.newBuilder() + .setName(MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString()) + .build(); + MobileDevice response = mobileDeviceServiceClient.getMobileDevice(request); + } + } +} +// [END admanager_v1_generated_MobileDeviceService_GetMobileDevice_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/SyncGetMobileDeviceMobiledevicename.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/SyncGetMobileDeviceMobiledevicename.java new file mode 100644 index 000000000000..74618fe1b1f4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/SyncGetMobileDeviceMobiledevicename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_GetMobileDevice_Mobiledevicename_sync] +import com.google.ads.admanager.v1.MobileDevice; +import com.google.ads.admanager.v1.MobileDeviceName; +import com.google.ads.admanager.v1.MobileDeviceServiceClient; + +public class SyncGetMobileDeviceMobiledevicename { + + public static void main(String[] args) throws Exception { + syncGetMobileDeviceMobiledevicename(); + } + + public static void syncGetMobileDeviceMobiledevicename() 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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) { + MobileDeviceName name = MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]"); + MobileDevice response = mobileDeviceServiceClient.getMobileDevice(name); + } + } +} +// [END admanager_v1_generated_MobileDeviceService_GetMobileDevice_Mobiledevicename_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/SyncGetMobileDeviceString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/SyncGetMobileDeviceString.java new file mode 100644 index 000000000000..ff61a2e3b8c5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/getmobiledevice/SyncGetMobileDeviceString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_GetMobileDevice_String_sync] +import com.google.ads.admanager.v1.MobileDevice; +import com.google.ads.admanager.v1.MobileDeviceName; +import com.google.ads.admanager.v1.MobileDeviceServiceClient; + +public class SyncGetMobileDeviceString { + + public static void main(String[] args) throws Exception { + syncGetMobileDeviceString(); + } + + public static void syncGetMobileDeviceString() 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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) { + String name = MobileDeviceName.of("[NETWORK_CODE]", "[MOBILE_DEVICE]").toString(); + MobileDevice response = mobileDeviceServiceClient.getMobileDevice(name); + } + } +} +// [END admanager_v1_generated_MobileDeviceService_GetMobileDevice_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/AsyncListMobileDevices.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/AsyncListMobileDevices.java new file mode 100644 index 000000000000..ab5ce62cdbc0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/AsyncListMobileDevices.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_ListMobileDevices_async] +import com.google.ads.admanager.v1.ListMobileDevicesRequest; +import com.google.ads.admanager.v1.MobileDevice; +import com.google.ads.admanager.v1.MobileDeviceServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListMobileDevices { + + public static void main(String[] args) throws Exception { + asyncListMobileDevices(); + } + + public static void asyncListMobileDevices() 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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) { + ListMobileDevicesRequest request = + ListMobileDevicesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + mobileDeviceServiceClient.listMobileDevicesPagedCallable().futureCall(request); + // Do something. + for (MobileDevice element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileDeviceService_ListMobileDevices_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/AsyncListMobileDevicesPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/AsyncListMobileDevicesPaged.java new file mode 100644 index 000000000000..f80ae4c68e9c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/AsyncListMobileDevicesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_ListMobileDevices_Paged_async] +import com.google.ads.admanager.v1.ListMobileDevicesRequest; +import com.google.ads.admanager.v1.ListMobileDevicesResponse; +import com.google.ads.admanager.v1.MobileDevice; +import com.google.ads.admanager.v1.MobileDeviceServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListMobileDevicesPaged { + + public static void main(String[] args) throws Exception { + asyncListMobileDevicesPaged(); + } + + public static void asyncListMobileDevicesPaged() 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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) { + ListMobileDevicesRequest request = + ListMobileDevicesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListMobileDevicesResponse response = + mobileDeviceServiceClient.listMobileDevicesCallable().call(request); + for (MobileDevice element : response.getMobileDevicesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_MobileDeviceService_ListMobileDevices_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/SyncListMobileDevices.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/SyncListMobileDevices.java new file mode 100644 index 000000000000..ee548957e1ab --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/SyncListMobileDevices.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_ListMobileDevices_sync] +import com.google.ads.admanager.v1.ListMobileDevicesRequest; +import com.google.ads.admanager.v1.MobileDevice; +import com.google.ads.admanager.v1.MobileDeviceServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListMobileDevices { + + public static void main(String[] args) throws Exception { + syncListMobileDevices(); + } + + public static void syncListMobileDevices() 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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) { + ListMobileDevicesRequest request = + ListMobileDevicesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (MobileDevice element : + mobileDeviceServiceClient.listMobileDevices(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileDeviceService_ListMobileDevices_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/SyncListMobileDevicesNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/SyncListMobileDevicesNetworkname.java new file mode 100644 index 000000000000..822aba6bcd70 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/SyncListMobileDevicesNetworkname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_ListMobileDevices_Networkname_sync] +import com.google.ads.admanager.v1.MobileDevice; +import com.google.ads.admanager.v1.MobileDeviceServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListMobileDevicesNetworkname { + + public static void main(String[] args) throws Exception { + syncListMobileDevicesNetworkname(); + } + + public static void syncListMobileDevicesNetworkname() 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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (MobileDevice element : + mobileDeviceServiceClient.listMobileDevices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileDeviceService_ListMobileDevices_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/SyncListMobileDevicesString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/SyncListMobileDevicesString.java new file mode 100644 index 000000000000..2c1a84945a7d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservice/listmobiledevices/SyncListMobileDevicesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceService_ListMobileDevices_String_sync] +import com.google.ads.admanager.v1.MobileDevice; +import com.google.ads.admanager.v1.MobileDeviceServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListMobileDevicesString { + + public static void main(String[] args) throws Exception { + syncListMobileDevicesString(); + } + + public static void syncListMobileDevicesString() 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 (MobileDeviceServiceClient mobileDeviceServiceClient = MobileDeviceServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (MobileDevice element : + mobileDeviceServiceClient.listMobileDevices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileDeviceService_ListMobileDevices_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservicesettings/getmobiledevice/SyncGetMobileDevice.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservicesettings/getmobiledevice/SyncGetMobileDevice.java new file mode 100644 index 000000000000..8d7729f75e2e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledeviceservicesettings/getmobiledevice/SyncGetMobileDevice.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceServiceSettings_GetMobileDevice_sync] +import com.google.ads.admanager.v1.MobileDeviceServiceSettings; +import java.time.Duration; + +public class SyncGetMobileDevice { + + public static void main(String[] args) throws Exception { + syncGetMobileDevice(); + } + + public static void syncGetMobileDevice() 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 + MobileDeviceServiceSettings.Builder mobileDeviceServiceSettingsBuilder = + MobileDeviceServiceSettings.newBuilder(); + mobileDeviceServiceSettingsBuilder + .getMobileDeviceSettings() + .setRetrySettings( + mobileDeviceServiceSettingsBuilder + .getMobileDeviceSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MobileDeviceServiceSettings mobileDeviceServiceSettings = + mobileDeviceServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_MobileDeviceServiceSettings_GetMobileDevice_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..3fdf7d750e4d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + MobileDeviceSubmodelServiceSettings mobileDeviceSubmodelServiceSettings = + MobileDeviceSubmodelServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create(mobileDeviceSubmodelServiceSettings); + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..66e2d9e52cf0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + MobileDeviceSubmodelServiceSettings mobileDeviceSubmodelServiceSettings = + MobileDeviceSubmodelServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create(mobileDeviceSubmodelServiceSettings); + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/AsyncGetMobileDeviceSubmodel.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/AsyncGetMobileDeviceSubmodel.java new file mode 100644 index 000000000000..31ee802c0ed4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/AsyncGetMobileDeviceSubmodel.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_async] +import com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest; +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.ads.admanager.v1.MobileDeviceSubmodelName; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetMobileDeviceSubmodel { + + public static void main(String[] args) throws Exception { + asyncGetMobileDeviceSubmodel(); + } + + public static void asyncGetMobileDeviceSubmodel() 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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create()) { + GetMobileDeviceSubmodelRequest request = + GetMobileDeviceSubmodelRequest.newBuilder() + .setName( + MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]") + .toString()) + .build(); + ApiFuture future = + mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodelCallable().futureCall(request); + // Do something. + MobileDeviceSubmodel response = future.get(); + } + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodel.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodel.java new file mode 100644 index 000000000000..4596e4f131bf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodel.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_sync] +import com.google.ads.admanager.v1.GetMobileDeviceSubmodelRequest; +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.ads.admanager.v1.MobileDeviceSubmodelName; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; + +public class SyncGetMobileDeviceSubmodel { + + public static void main(String[] args) throws Exception { + syncGetMobileDeviceSubmodel(); + } + + public static void syncGetMobileDeviceSubmodel() 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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create()) { + GetMobileDeviceSubmodelRequest request = + GetMobileDeviceSubmodelRequest.newBuilder() + .setName( + MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]") + .toString()) + .build(); + MobileDeviceSubmodel response = + mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodel(request); + } + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodelMobiledevicesubmodelname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodelMobiledevicesubmodelname.java new file mode 100644 index 000000000000..8c3566df1ce1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodelMobiledevicesubmodelname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_Mobiledevicesubmodelname_sync] +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.ads.admanager.v1.MobileDeviceSubmodelName; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; + +public class SyncGetMobileDeviceSubmodelMobiledevicesubmodelname { + + public static void main(String[] args) throws Exception { + syncGetMobileDeviceSubmodelMobiledevicesubmodelname(); + } + + public static void syncGetMobileDeviceSubmodelMobiledevicesubmodelname() 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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create()) { + MobileDeviceSubmodelName name = + MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]"); + MobileDeviceSubmodel response = + mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodel(name); + } + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_Mobiledevicesubmodelname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodelString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodelString.java new file mode 100644 index 000000000000..432b1e79d9ad --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodelString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_String_sync] +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.ads.admanager.v1.MobileDeviceSubmodelName; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; + +public class SyncGetMobileDeviceSubmodelString { + + public static void main(String[] args) throws Exception { + syncGetMobileDeviceSubmodelString(); + } + + public static void syncGetMobileDeviceSubmodelString() 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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create()) { + String name = + MobileDeviceSubmodelName.of("[NETWORK_CODE]", "[MOBILE_DEVICE_SUBMODEL]").toString(); + MobileDeviceSubmodel response = + mobileDeviceSubmodelServiceClient.getMobileDeviceSubmodel(name); + } + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/AsyncListMobileDeviceSubmodels.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/AsyncListMobileDeviceSubmodels.java new file mode 100644 index 000000000000..1900a1eb641f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/AsyncListMobileDeviceSubmodels.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_async] +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest; +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListMobileDeviceSubmodels { + + public static void main(String[] args) throws Exception { + asyncListMobileDeviceSubmodels(); + } + + public static void asyncListMobileDeviceSubmodels() 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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create()) { + ListMobileDeviceSubmodelsRequest request = + ListMobileDeviceSubmodelsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + mobileDeviceSubmodelServiceClient + .listMobileDeviceSubmodelsPagedCallable() + .futureCall(request); + // Do something. + for (MobileDeviceSubmodel element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/AsyncListMobileDeviceSubmodelsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/AsyncListMobileDeviceSubmodelsPaged.java new file mode 100644 index 000000000000..6f6c19f6663d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/AsyncListMobileDeviceSubmodelsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_Paged_async] +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest; +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse; +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListMobileDeviceSubmodelsPaged { + + public static void main(String[] args) throws Exception { + asyncListMobileDeviceSubmodelsPaged(); + } + + public static void asyncListMobileDeviceSubmodelsPaged() 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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create()) { + ListMobileDeviceSubmodelsRequest request = + ListMobileDeviceSubmodelsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListMobileDeviceSubmodelsResponse response = + mobileDeviceSubmodelServiceClient.listMobileDeviceSubmodelsCallable().call(request); + for (MobileDeviceSubmodel element : response.getMobileDeviceSubmodelsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/SyncListMobileDeviceSubmodels.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/SyncListMobileDeviceSubmodels.java new file mode 100644 index 000000000000..a9e9416c1e0b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/SyncListMobileDeviceSubmodels.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_sync] +import com.google.ads.admanager.v1.ListMobileDeviceSubmodelsRequest; +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListMobileDeviceSubmodels { + + public static void main(String[] args) throws Exception { + syncListMobileDeviceSubmodels(); + } + + public static void syncListMobileDeviceSubmodels() 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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create()) { + ListMobileDeviceSubmodelsRequest request = + ListMobileDeviceSubmodelsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (MobileDeviceSubmodel element : + mobileDeviceSubmodelServiceClient.listMobileDeviceSubmodels(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/SyncListMobileDeviceSubmodelsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/SyncListMobileDeviceSubmodelsNetworkname.java new file mode 100644 index 000000000000..600b2fd070a8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/SyncListMobileDeviceSubmodelsNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_Networkname_sync] +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListMobileDeviceSubmodelsNetworkname { + + public static void main(String[] args) throws Exception { + syncListMobileDeviceSubmodelsNetworkname(); + } + + public static void syncListMobileDeviceSubmodelsNetworkname() 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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (MobileDeviceSubmodel element : + mobileDeviceSubmodelServiceClient.listMobileDeviceSubmodels(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/SyncListMobileDeviceSubmodelsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/SyncListMobileDeviceSubmodelsString.java new file mode 100644 index 000000000000..9cca11a60b14 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservice/listmobiledevicesubmodels/SyncListMobileDeviceSubmodelsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_String_sync] +import com.google.ads.admanager.v1.MobileDeviceSubmodel; +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListMobileDeviceSubmodelsString { + + public static void main(String[] args) throws Exception { + syncListMobileDeviceSubmodelsString(); + } + + public static void syncListMobileDeviceSubmodelsString() 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 (MobileDeviceSubmodelServiceClient mobileDeviceSubmodelServiceClient = + MobileDeviceSubmodelServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (MobileDeviceSubmodel element : + mobileDeviceSubmodelServiceClient.listMobileDeviceSubmodels(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservicesettings/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodel.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservicesettings/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodel.java new file mode 100644 index 000000000000..f6f6337f6923 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/mobiledevicesubmodelservicesettings/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodel.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelServiceSettings_GetMobileDeviceSubmodel_sync] +import com.google.ads.admanager.v1.MobileDeviceSubmodelServiceSettings; +import java.time.Duration; + +public class SyncGetMobileDeviceSubmodel { + + public static void main(String[] args) throws Exception { + syncGetMobileDeviceSubmodel(); + } + + public static void syncGetMobileDeviceSubmodel() 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 + MobileDeviceSubmodelServiceSettings.Builder mobileDeviceSubmodelServiceSettingsBuilder = + MobileDeviceSubmodelServiceSettings.newBuilder(); + mobileDeviceSubmodelServiceSettingsBuilder + .getMobileDeviceSubmodelSettings() + .setRetrySettings( + mobileDeviceSubmodelServiceSettingsBuilder + .getMobileDeviceSubmodelSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MobileDeviceSubmodelServiceSettings mobileDeviceSubmodelServiceSettings = + mobileDeviceSubmodelServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelServiceSettings_GetMobileDeviceSubmodel_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/AsyncBatchActivatePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/AsyncBatchActivatePlacements.java new file mode 100644 index 000000000000..a392fc4601ba --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/AsyncBatchActivatePlacements.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchActivatePlacements_async] +import com.google.ads.admanager.v1.BatchActivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchActivatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchActivatePlacements { + + public static void main(String[] args) throws Exception { + asyncBatchActivatePlacements(); + } + + public static void asyncBatchActivatePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchActivatePlacementsRequest request = + BatchActivatePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + placementServiceClient.batchActivatePlacementsCallable().futureCall(request); + // Do something. + BatchActivatePlacementsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchActivatePlacements_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/SyncBatchActivatePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/SyncBatchActivatePlacements.java new file mode 100644 index 000000000000..f293a64db626 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/SyncBatchActivatePlacements.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchActivatePlacements_sync] +import com.google.ads.admanager.v1.BatchActivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchActivatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; + +public class SyncBatchActivatePlacements { + + public static void main(String[] args) throws Exception { + syncBatchActivatePlacements(); + } + + public static void syncBatchActivatePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchActivatePlacementsRequest request = + BatchActivatePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchActivatePlacementsResponse response = + placementServiceClient.batchActivatePlacements(request); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchActivatePlacements_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/SyncBatchActivatePlacementsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/SyncBatchActivatePlacementsNetworknameListstring.java new file mode 100644 index 000000000000..cd297bb33c12 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/SyncBatchActivatePlacementsNetworknameListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchActivatePlacements_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchActivatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivatePlacementsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivatePlacementsNetworknameListstring(); + } + + public static void syncBatchActivatePlacementsNetworknameListstring() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchActivatePlacementsResponse response = + placementServiceClient.batchActivatePlacements(parent, names); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchActivatePlacements_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/SyncBatchActivatePlacementsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/SyncBatchActivatePlacementsStringListstring.java new file mode 100644 index 000000000000..1c5ddd23e100 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchactivateplacements/SyncBatchActivatePlacementsStringListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchActivatePlacements_StringListstring_sync] +import com.google.ads.admanager.v1.BatchActivatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivatePlacementsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivatePlacementsStringListstring(); + } + + public static void syncBatchActivatePlacementsStringListstring() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchActivatePlacementsResponse response = + placementServiceClient.batchActivatePlacements(parent, names); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchActivatePlacements_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/AsyncBatchArchivePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/AsyncBatchArchivePlacements.java new file mode 100644 index 000000000000..1679f79c6379 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/AsyncBatchArchivePlacements.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchArchivePlacements_async] +import com.google.ads.admanager.v1.BatchArchivePlacementsRequest; +import com.google.ads.admanager.v1.BatchArchivePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchArchivePlacements { + + public static void main(String[] args) throws Exception { + asyncBatchArchivePlacements(); + } + + public static void asyncBatchArchivePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchArchivePlacementsRequest request = + BatchArchivePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + placementServiceClient.batchArchivePlacementsCallable().futureCall(request); + // Do something. + BatchArchivePlacementsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchArchivePlacements_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/SyncBatchArchivePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/SyncBatchArchivePlacements.java new file mode 100644 index 000000000000..5a9eb0ffe53e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/SyncBatchArchivePlacements.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchArchivePlacements_sync] +import com.google.ads.admanager.v1.BatchArchivePlacementsRequest; +import com.google.ads.admanager.v1.BatchArchivePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; + +public class SyncBatchArchivePlacements { + + public static void main(String[] args) throws Exception { + syncBatchArchivePlacements(); + } + + public static void syncBatchArchivePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchArchivePlacementsRequest request = + BatchArchivePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchArchivePlacementsResponse response = + placementServiceClient.batchArchivePlacements(request); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchArchivePlacements_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/SyncBatchArchivePlacementsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/SyncBatchArchivePlacementsNetworknameListstring.java new file mode 100644 index 000000000000..dcc24612bc4c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/SyncBatchArchivePlacementsNetworknameListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchArchivePlacements_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchArchivePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchArchivePlacementsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchArchivePlacementsNetworknameListstring(); + } + + public static void syncBatchArchivePlacementsNetworknameListstring() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchArchivePlacementsResponse response = + placementServiceClient.batchArchivePlacements(parent, names); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchArchivePlacements_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/SyncBatchArchivePlacementsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/SyncBatchArchivePlacementsStringListstring.java new file mode 100644 index 000000000000..bcbdd550f020 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batcharchiveplacements/SyncBatchArchivePlacementsStringListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchArchivePlacements_StringListstring_sync] +import com.google.ads.admanager.v1.BatchArchivePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchArchivePlacementsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchArchivePlacementsStringListstring(); + } + + public static void syncBatchArchivePlacementsStringListstring() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchArchivePlacementsResponse response = + placementServiceClient.batchArchivePlacements(parent, names); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchArchivePlacements_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/AsyncBatchCreatePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/AsyncBatchCreatePlacements.java new file mode 100644 index 000000000000..377b6a5063b0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/AsyncBatchCreatePlacements.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchCreatePlacements_async] +import com.google.ads.admanager.v1.BatchCreatePlacementsRequest; +import com.google.ads.admanager.v1.BatchCreatePlacementsResponse; +import com.google.ads.admanager.v1.CreatePlacementRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchCreatePlacements { + + public static void main(String[] args) throws Exception { + asyncBatchCreatePlacements(); + } + + public static void asyncBatchCreatePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchCreatePlacementsRequest request = + BatchCreatePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + placementServiceClient.batchCreatePlacementsCallable().futureCall(request); + // Do something. + BatchCreatePlacementsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchCreatePlacements_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/SyncBatchCreatePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/SyncBatchCreatePlacements.java new file mode 100644 index 000000000000..beb173918070 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/SyncBatchCreatePlacements.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchCreatePlacements_sync] +import com.google.ads.admanager.v1.BatchCreatePlacementsRequest; +import com.google.ads.admanager.v1.BatchCreatePlacementsResponse; +import com.google.ads.admanager.v1.CreatePlacementRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; + +public class SyncBatchCreatePlacements { + + public static void main(String[] args) throws Exception { + syncBatchCreatePlacements(); + } + + public static void syncBatchCreatePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchCreatePlacementsRequest request = + BatchCreatePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchCreatePlacementsResponse response = + placementServiceClient.batchCreatePlacements(request); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchCreatePlacements_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/SyncBatchCreatePlacementsNetworknameListcreateplacementrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/SyncBatchCreatePlacementsNetworknameListcreateplacementrequest.java new file mode 100644 index 000000000000..cc43b3e7286c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/SyncBatchCreatePlacementsNetworknameListcreateplacementrequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchCreatePlacements_NetworknameListcreateplacementrequest_sync] +import com.google.ads.admanager.v1.BatchCreatePlacementsResponse; +import com.google.ads.admanager.v1.CreatePlacementRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreatePlacementsNetworknameListcreateplacementrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreatePlacementsNetworknameListcreateplacementrequest(); + } + + public static void syncBatchCreatePlacementsNetworknameListcreateplacementrequest() + 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchCreatePlacementsResponse response = + placementServiceClient.batchCreatePlacements(parent, requests); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchCreatePlacements_NetworknameListcreateplacementrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/SyncBatchCreatePlacementsStringListcreateplacementrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/SyncBatchCreatePlacementsStringListcreateplacementrequest.java new file mode 100644 index 000000000000..0d735d282ecd --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchcreateplacements/SyncBatchCreatePlacementsStringListcreateplacementrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchCreatePlacements_StringListcreateplacementrequest_sync] +import com.google.ads.admanager.v1.BatchCreatePlacementsResponse; +import com.google.ads.admanager.v1.CreatePlacementRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreatePlacementsStringListcreateplacementrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreatePlacementsStringListcreateplacementrequest(); + } + + public static void syncBatchCreatePlacementsStringListcreateplacementrequest() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchCreatePlacementsResponse response = + placementServiceClient.batchCreatePlacements(parent, requests); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchCreatePlacements_StringListcreateplacementrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/AsyncBatchDeactivatePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/AsyncBatchDeactivatePlacements.java new file mode 100644 index 000000000000..4f52f396df30 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/AsyncBatchDeactivatePlacements.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchDeactivatePlacements_async] +import com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchDeactivatePlacements { + + public static void main(String[] args) throws Exception { + asyncBatchDeactivatePlacements(); + } + + public static void asyncBatchDeactivatePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchDeactivatePlacementsRequest request = + BatchDeactivatePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + placementServiceClient.batchDeactivatePlacementsCallable().futureCall(request); + // Do something. + BatchDeactivatePlacementsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchDeactivatePlacements_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/SyncBatchDeactivatePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/SyncBatchDeactivatePlacements.java new file mode 100644 index 000000000000..9914d7a9e909 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/SyncBatchDeactivatePlacements.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchDeactivatePlacements_sync] +import com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest; +import com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; + +public class SyncBatchDeactivatePlacements { + + public static void main(String[] args) throws Exception { + syncBatchDeactivatePlacements(); + } + + public static void syncBatchDeactivatePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchDeactivatePlacementsRequest request = + BatchDeactivatePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchDeactivatePlacementsResponse response = + placementServiceClient.batchDeactivatePlacements(request); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchDeactivatePlacements_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/SyncBatchDeactivatePlacementsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/SyncBatchDeactivatePlacementsNetworknameListstring.java new file mode 100644 index 000000000000..e2f6f6378222 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/SyncBatchDeactivatePlacementsNetworknameListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchDeactivatePlacements_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivatePlacementsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivatePlacementsNetworknameListstring(); + } + + public static void syncBatchDeactivatePlacementsNetworknameListstring() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchDeactivatePlacementsResponse response = + placementServiceClient.batchDeactivatePlacements(parent, names); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchDeactivatePlacements_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/SyncBatchDeactivatePlacementsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/SyncBatchDeactivatePlacementsStringListstring.java new file mode 100644 index 000000000000..4d846c04b4b9 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchdeactivateplacements/SyncBatchDeactivatePlacementsStringListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchDeactivatePlacements_StringListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivatePlacementsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivatePlacementsStringListstring(); + } + + public static void syncBatchDeactivatePlacementsStringListstring() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchDeactivatePlacementsResponse response = + placementServiceClient.batchDeactivatePlacements(parent, names); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchDeactivatePlacements_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/AsyncBatchUpdatePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/AsyncBatchUpdatePlacements.java new file mode 100644 index 000000000000..047da8ff63cc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/AsyncBatchUpdatePlacements.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchUpdatePlacements_async] +import com.google.ads.admanager.v1.BatchUpdatePlacementsRequest; +import com.google.ads.admanager.v1.BatchUpdatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.ads.admanager.v1.UpdatePlacementRequest; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchUpdatePlacements { + + public static void main(String[] args) throws Exception { + asyncBatchUpdatePlacements(); + } + + public static void asyncBatchUpdatePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchUpdatePlacementsRequest request = + BatchUpdatePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + placementServiceClient.batchUpdatePlacementsCallable().futureCall(request); + // Do something. + BatchUpdatePlacementsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchUpdatePlacements_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/SyncBatchUpdatePlacements.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/SyncBatchUpdatePlacements.java new file mode 100644 index 000000000000..7668fb08dad4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/SyncBatchUpdatePlacements.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchUpdatePlacements_sync] +import com.google.ads.admanager.v1.BatchUpdatePlacementsRequest; +import com.google.ads.admanager.v1.BatchUpdatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.ads.admanager.v1.UpdatePlacementRequest; +import java.util.ArrayList; + +public class SyncBatchUpdatePlacements { + + public static void main(String[] args) throws Exception { + syncBatchUpdatePlacements(); + } + + public static void syncBatchUpdatePlacements() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + BatchUpdatePlacementsRequest request = + BatchUpdatePlacementsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchUpdatePlacementsResponse response = + placementServiceClient.batchUpdatePlacements(request); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchUpdatePlacements_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/SyncBatchUpdatePlacementsNetworknameListupdateplacementrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/SyncBatchUpdatePlacementsNetworknameListupdateplacementrequest.java new file mode 100644 index 000000000000..fec07a259b22 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/SyncBatchUpdatePlacementsNetworknameListupdateplacementrequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchUpdatePlacements_NetworknameListupdateplacementrequest_sync] +import com.google.ads.admanager.v1.BatchUpdatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.ads.admanager.v1.UpdatePlacementRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdatePlacementsNetworknameListupdateplacementrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdatePlacementsNetworknameListupdateplacementrequest(); + } + + public static void syncBatchUpdatePlacementsNetworknameListupdateplacementrequest() + 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchUpdatePlacementsResponse response = + placementServiceClient.batchUpdatePlacements(parent, requests); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchUpdatePlacements_NetworknameListupdateplacementrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/SyncBatchUpdatePlacementsStringListupdateplacementrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/SyncBatchUpdatePlacementsStringListupdateplacementrequest.java new file mode 100644 index 000000000000..0b5519d0f654 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/batchupdateplacements/SyncBatchUpdatePlacementsStringListupdateplacementrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_BatchUpdatePlacements_StringListupdateplacementrequest_sync] +import com.google.ads.admanager.v1.BatchUpdatePlacementsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.ads.admanager.v1.UpdatePlacementRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdatePlacementsStringListupdateplacementrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdatePlacementsStringListupdateplacementrequest(); + } + + public static void syncBatchUpdatePlacementsStringListupdateplacementrequest() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchUpdatePlacementsResponse response = + placementServiceClient.batchUpdatePlacements(parent, requests); + } + } +} +// [END admanager_v1_generated_PlacementService_BatchUpdatePlacements_StringListupdateplacementrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/AsyncCreatePlacement.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/AsyncCreatePlacement.java new file mode 100644 index 000000000000..ea8709249f3a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/AsyncCreatePlacement.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_CreatePlacement_async] +import com.google.ads.admanager.v1.CreatePlacementRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncCreatePlacement { + + public static void main(String[] args) throws Exception { + asyncCreatePlacement(); + } + + public static void asyncCreatePlacement() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + CreatePlacementRequest request = + CreatePlacementRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPlacement(Placement.newBuilder().build()) + .build(); + ApiFuture future = + placementServiceClient.createPlacementCallable().futureCall(request); + // Do something. + Placement response = future.get(); + } + } +} +// [END admanager_v1_generated_PlacementService_CreatePlacement_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/SyncCreatePlacement.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/SyncCreatePlacement.java new file mode 100644 index 000000000000..6aabf846c601 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/SyncCreatePlacement.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_CreatePlacement_sync] +import com.google.ads.admanager.v1.CreatePlacementRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.PlacementServiceClient; + +public class SyncCreatePlacement { + + public static void main(String[] args) throws Exception { + syncCreatePlacement(); + } + + public static void syncCreatePlacement() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + CreatePlacementRequest request = + CreatePlacementRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPlacement(Placement.newBuilder().build()) + .build(); + Placement response = placementServiceClient.createPlacement(request); + } + } +} +// [END admanager_v1_generated_PlacementService_CreatePlacement_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/SyncCreatePlacementNetworknamePlacement.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/SyncCreatePlacementNetworknamePlacement.java new file mode 100644 index 000000000000..836b793f13b5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/SyncCreatePlacementNetworknamePlacement.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_CreatePlacement_NetworknamePlacement_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.PlacementServiceClient; + +public class SyncCreatePlacementNetworknamePlacement { + + public static void main(String[] args) throws Exception { + syncCreatePlacementNetworknamePlacement(); + } + + public static void syncCreatePlacementNetworknamePlacement() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Placement placement = Placement.newBuilder().build(); + Placement response = placementServiceClient.createPlacement(parent, placement); + } + } +} +// [END admanager_v1_generated_PlacementService_CreatePlacement_NetworknamePlacement_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/SyncCreatePlacementStringPlacement.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/SyncCreatePlacementStringPlacement.java new file mode 100644 index 000000000000..a8913cf5089c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/createplacement/SyncCreatePlacementStringPlacement.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_CreatePlacement_StringPlacement_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.PlacementServiceClient; + +public class SyncCreatePlacementStringPlacement { + + public static void main(String[] args) throws Exception { + syncCreatePlacementStringPlacement(); + } + + public static void syncCreatePlacementStringPlacement() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + Placement placement = Placement.newBuilder().build(); + Placement response = placementServiceClient.createPlacement(parent, placement); + } + } +} +// [END admanager_v1_generated_PlacementService_CreatePlacement_StringPlacement_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/updateplacement/AsyncUpdatePlacement.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/updateplacement/AsyncUpdatePlacement.java new file mode 100644 index 000000000000..3315aaf4f782 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/updateplacement/AsyncUpdatePlacement.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_UpdatePlacement_async] +import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.ads.admanager.v1.UpdatePlacementRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePlacement { + + public static void main(String[] args) throws Exception { + asyncUpdatePlacement(); + } + + public static void asyncUpdatePlacement() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + UpdatePlacementRequest request = + UpdatePlacementRequest.newBuilder() + .setPlacement(Placement.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + placementServiceClient.updatePlacementCallable().futureCall(request); + // Do something. + Placement response = future.get(); + } + } +} +// [END admanager_v1_generated_PlacementService_UpdatePlacement_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/updateplacement/SyncUpdatePlacement.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/updateplacement/SyncUpdatePlacement.java new file mode 100644 index 000000000000..91b0ecbfc444 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/updateplacement/SyncUpdatePlacement.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_UpdatePlacement_sync] +import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.ads.admanager.v1.UpdatePlacementRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePlacement { + + public static void main(String[] args) throws Exception { + syncUpdatePlacement(); + } + + public static void syncUpdatePlacement() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + UpdatePlacementRequest request = + UpdatePlacementRequest.newBuilder() + .setPlacement(Placement.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Placement response = placementServiceClient.updatePlacement(request); + } + } +} +// [END admanager_v1_generated_PlacementService_UpdatePlacement_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/updateplacement/SyncUpdatePlacementPlacementFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/updateplacement/SyncUpdatePlacementPlacementFieldmask.java new file mode 100644 index 000000000000..816c7f359420 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/placementservice/updateplacement/SyncUpdatePlacementPlacementFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_PlacementService_UpdatePlacement_PlacementFieldmask_sync] +import com.google.ads.admanager.v1.Placement; +import com.google.ads.admanager.v1.PlacementServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePlacementPlacementFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdatePlacementPlacementFieldmask(); + } + + public static void syncUpdatePlacementPlacementFieldmask() 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 (PlacementServiceClient placementServiceClient = PlacementServiceClient.create()) { + Placement placement = Placement.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Placement response = placementServiceClient.updatePlacement(placement, updateMask); + } + } +} +// [END admanager_v1_generated_PlacementService_UpdatePlacement_PlacementFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/AsyncFetchReportResultRows.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/AsyncFetchReportResultRows.java index 4d465987d8c1..26fe75e7b2a8 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/AsyncFetchReportResultRows.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/AsyncFetchReportResultRows.java @@ -18,7 +18,7 @@ // [START admanager_v1_generated_ReportService_FetchReportResultRows_async] import com.google.ads.admanager.v1.FetchReportResultRowsRequest; -import com.google.ads.admanager.v1.Report; +import com.google.ads.admanager.v1.ReportDataTable; import com.google.ads.admanager.v1.ReportServiceClient; import com.google.api.core.ApiFuture; @@ -41,10 +41,10 @@ public static void asyncFetchReportResultRows() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); - ApiFuture future = + ApiFuture future = reportServiceClient.fetchReportResultRowsPagedCallable().futureCall(request); // Do something. - for (Report.DataTable.Row element : future.get().iterateAll()) { + for (ReportDataTable.Row element : future.get().iterateAll()) { // doThingsWith(element); } } diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/AsyncFetchReportResultRowsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/AsyncFetchReportResultRowsPaged.java index fad3e84ff47d..3123cad074bd 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/AsyncFetchReportResultRowsPaged.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/AsyncFetchReportResultRowsPaged.java @@ -19,7 +19,7 @@ // [START admanager_v1_generated_ReportService_FetchReportResultRows_Paged_async] import com.google.ads.admanager.v1.FetchReportResultRowsRequest; import com.google.ads.admanager.v1.FetchReportResultRowsResponse; -import com.google.ads.admanager.v1.Report; +import com.google.ads.admanager.v1.ReportDataTable; import com.google.ads.admanager.v1.ReportServiceClient; import com.google.common.base.Strings; @@ -45,7 +45,7 @@ public static void asyncFetchReportResultRowsPaged() throws Exception { while (true) { FetchReportResultRowsResponse response = reportServiceClient.fetchReportResultRowsCallable().call(request); - for (Report.DataTable.Row element : response.getRowsList()) { + for (ReportDataTable.Row element : response.getRowsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/SyncFetchReportResultRows.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/SyncFetchReportResultRows.java index 8f7bfa64e6e0..d554dfbcc224 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/SyncFetchReportResultRows.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/SyncFetchReportResultRows.java @@ -18,7 +18,7 @@ // [START admanager_v1_generated_ReportService_FetchReportResultRows_sync] import com.google.ads.admanager.v1.FetchReportResultRowsRequest; -import com.google.ads.admanager.v1.Report; +import com.google.ads.admanager.v1.ReportDataTable; import com.google.ads.admanager.v1.ReportServiceClient; public class SyncFetchReportResultRows { @@ -40,7 +40,7 @@ public static void syncFetchReportResultRows() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); - for (Report.DataTable.Row element : + for (ReportDataTable.Row element : reportServiceClient.fetchReportResultRows(request).iterateAll()) { // doThingsWith(element); } diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/SyncFetchReportResultRowsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/SyncFetchReportResultRowsString.java index 65aa1cda57df..73875178425d 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/SyncFetchReportResultRowsString.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/reportservice/fetchreportresultrows/SyncFetchReportResultRowsString.java @@ -17,7 +17,7 @@ package com.google.ads.admanager.v1.samples; // [START admanager_v1_generated_ReportService_FetchReportResultRows_String_sync] -import com.google.ads.admanager.v1.Report; +import com.google.ads.admanager.v1.ReportDataTable; import com.google.ads.admanager.v1.ReportServiceClient; public class SyncFetchReportResultRowsString { @@ -34,7 +34,7 @@ public static void syncFetchReportResultRowsString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ReportServiceClient reportServiceClient = ReportServiceClient.create()) { String name = "name3373707"; - for (Report.DataTable.Row element : + for (ReportDataTable.Row element : reportServiceClient.fetchReportResultRows(name).iterateAll()) { // doThingsWith(element); } diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/AsyncBatchCreateSites.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/AsyncBatchCreateSites.java new file mode 100644 index 000000000000..afdb21a01534 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/AsyncBatchCreateSites.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchCreateSites_async] +import com.google.ads.admanager.v1.BatchCreateSitesRequest; +import com.google.ads.admanager.v1.BatchCreateSitesResponse; +import com.google.ads.admanager.v1.CreateSiteRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchCreateSites { + + public static void main(String[] args) throws Exception { + asyncBatchCreateSites(); + } + + public static void asyncBatchCreateSites() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + BatchCreateSitesRequest request = + BatchCreateSitesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + siteServiceClient.batchCreateSitesCallable().futureCall(request); + // Do something. + BatchCreateSitesResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_SiteService_BatchCreateSites_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/SyncBatchCreateSites.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/SyncBatchCreateSites.java new file mode 100644 index 000000000000..35bddf62450e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/SyncBatchCreateSites.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchCreateSites_sync] +import com.google.ads.admanager.v1.BatchCreateSitesRequest; +import com.google.ads.admanager.v1.BatchCreateSitesResponse; +import com.google.ads.admanager.v1.CreateSiteRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import java.util.ArrayList; + +public class SyncBatchCreateSites { + + public static void main(String[] args) throws Exception { + syncBatchCreateSites(); + } + + public static void syncBatchCreateSites() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + BatchCreateSitesRequest request = + BatchCreateSitesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchCreateSitesResponse response = siteServiceClient.batchCreateSites(request); + } + } +} +// [END admanager_v1_generated_SiteService_BatchCreateSites_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/SyncBatchCreateSitesNetworknameListcreatesiterequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/SyncBatchCreateSitesNetworknameListcreatesiterequest.java new file mode 100644 index 000000000000..be449c5d5715 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/SyncBatchCreateSitesNetworknameListcreatesiterequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchCreateSites_NetworknameListcreatesiterequest_sync] +import com.google.ads.admanager.v1.BatchCreateSitesResponse; +import com.google.ads.admanager.v1.CreateSiteRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateSitesNetworknameListcreatesiterequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateSitesNetworknameListcreatesiterequest(); + } + + public static void syncBatchCreateSitesNetworknameListcreatesiterequest() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchCreateSitesResponse response = siteServiceClient.batchCreateSites(parent, requests); + } + } +} +// [END admanager_v1_generated_SiteService_BatchCreateSites_NetworknameListcreatesiterequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/SyncBatchCreateSitesStringListcreatesiterequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/SyncBatchCreateSitesStringListcreatesiterequest.java new file mode 100644 index 000000000000..96246f798e5c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchcreatesites/SyncBatchCreateSitesStringListcreatesiterequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchCreateSites_StringListcreatesiterequest_sync] +import com.google.ads.admanager.v1.BatchCreateSitesResponse; +import com.google.ads.admanager.v1.CreateSiteRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateSitesStringListcreatesiterequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateSitesStringListcreatesiterequest(); + } + + public static void syncBatchCreateSitesStringListcreatesiterequest() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchCreateSitesResponse response = siteServiceClient.batchCreateSites(parent, requests); + } + } +} +// [END admanager_v1_generated_SiteService_BatchCreateSites_StringListcreatesiterequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/AsyncBatchDeactivateSites.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/AsyncBatchDeactivateSites.java new file mode 100644 index 000000000000..6d5fe6316e7f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/AsyncBatchDeactivateSites.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchDeactivateSites_async] +import com.google.ads.admanager.v1.BatchDeactivateSitesRequest; +import com.google.ads.admanager.v1.BatchDeactivateSitesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchDeactivateSites { + + public static void main(String[] args) throws Exception { + asyncBatchDeactivateSites(); + } + + public static void asyncBatchDeactivateSites() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + BatchDeactivateSitesRequest request = + BatchDeactivateSitesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + siteServiceClient.batchDeactivateSitesCallable().futureCall(request); + // Do something. + BatchDeactivateSitesResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_SiteService_BatchDeactivateSites_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/SyncBatchDeactivateSites.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/SyncBatchDeactivateSites.java new file mode 100644 index 000000000000..5efa5f0c551e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/SyncBatchDeactivateSites.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchDeactivateSites_sync] +import com.google.ads.admanager.v1.BatchDeactivateSitesRequest; +import com.google.ads.admanager.v1.BatchDeactivateSitesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import java.util.ArrayList; + +public class SyncBatchDeactivateSites { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateSites(); + } + + public static void syncBatchDeactivateSites() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + BatchDeactivateSitesRequest request = + BatchDeactivateSitesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchDeactivateSitesResponse response = siteServiceClient.batchDeactivateSites(request); + } + } +} +// [END admanager_v1_generated_SiteService_BatchDeactivateSites_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/SyncBatchDeactivateSitesNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/SyncBatchDeactivateSitesNetworknameListstring.java new file mode 100644 index 000000000000..e795243084f1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/SyncBatchDeactivateSitesNetworknameListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchDeactivateSites_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivateSitesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateSitesNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateSitesNetworknameListstring(); + } + + public static void syncBatchDeactivateSitesNetworknameListstring() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchDeactivateSitesResponse response = siteServiceClient.batchDeactivateSites(parent, names); + } + } +} +// [END admanager_v1_generated_SiteService_BatchDeactivateSites_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/SyncBatchDeactivateSitesStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/SyncBatchDeactivateSitesStringListstring.java new file mode 100644 index 000000000000..8720c8f1acee --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchdeactivatesites/SyncBatchDeactivateSitesStringListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchDeactivateSites_StringListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivateSitesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateSitesStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateSitesStringListstring(); + } + + public static void syncBatchDeactivateSitesStringListstring() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchDeactivateSitesResponse response = siteServiceClient.batchDeactivateSites(parent, names); + } + } +} +// [END admanager_v1_generated_SiteService_BatchDeactivateSites_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/AsyncBatchSubmitSitesForApproval.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/AsyncBatchSubmitSitesForApproval.java new file mode 100644 index 000000000000..ef60733b9a96 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/AsyncBatchSubmitSitesForApproval.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_async] +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest; +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchSubmitSitesForApproval { + + public static void main(String[] args) throws Exception { + asyncBatchSubmitSitesForApproval(); + } + + public static void asyncBatchSubmitSitesForApproval() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + BatchSubmitSitesForApprovalRequest request = + BatchSubmitSitesForApprovalRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + siteServiceClient.batchSubmitSitesForApprovalCallable().futureCall(request); + // Do something. + BatchSubmitSitesForApprovalResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/SyncBatchSubmitSitesForApproval.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/SyncBatchSubmitSitesForApproval.java new file mode 100644 index 000000000000..301f0bfc2f55 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/SyncBatchSubmitSitesForApproval.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_sync] +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalRequest; +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import java.util.ArrayList; + +public class SyncBatchSubmitSitesForApproval { + + public static void main(String[] args) throws Exception { + syncBatchSubmitSitesForApproval(); + } + + public static void syncBatchSubmitSitesForApproval() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + BatchSubmitSitesForApprovalRequest request = + BatchSubmitSitesForApprovalRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchSubmitSitesForApprovalResponse response = + siteServiceClient.batchSubmitSitesForApproval(request); + } + } +} +// [END admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/SyncBatchSubmitSitesForApprovalNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/SyncBatchSubmitSitesForApprovalNetworknameListstring.java new file mode 100644 index 000000000000..6c604735f29e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/SyncBatchSubmitSitesForApprovalNetworknameListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchSubmitSitesForApprovalNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchSubmitSitesForApprovalNetworknameListstring(); + } + + public static void syncBatchSubmitSitesForApprovalNetworknameListstring() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchSubmitSitesForApprovalResponse response = + siteServiceClient.batchSubmitSitesForApproval(parent, names); + } + } +} +// [END admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/SyncBatchSubmitSitesForApprovalStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/SyncBatchSubmitSitesForApprovalStringListstring.java new file mode 100644 index 000000000000..da16e278bbf2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchsubmitsitesforapproval/SyncBatchSubmitSitesForApprovalStringListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_StringListstring_sync] +import com.google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchSubmitSitesForApprovalStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchSubmitSitesForApprovalStringListstring(); + } + + public static void syncBatchSubmitSitesForApprovalStringListstring() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchSubmitSitesForApprovalResponse response = + siteServiceClient.batchSubmitSitesForApproval(parent, names); + } + } +} +// [END admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/AsyncBatchUpdateSites.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/AsyncBatchUpdateSites.java new file mode 100644 index 000000000000..53c7990a192f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/AsyncBatchUpdateSites.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchUpdateSites_async] +import com.google.ads.admanager.v1.BatchUpdateSitesRequest; +import com.google.ads.admanager.v1.BatchUpdateSitesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.ads.admanager.v1.UpdateSiteRequest; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchUpdateSites { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateSites(); + } + + public static void asyncBatchUpdateSites() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + BatchUpdateSitesRequest request = + BatchUpdateSitesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + siteServiceClient.batchUpdateSitesCallable().futureCall(request); + // Do something. + BatchUpdateSitesResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_SiteService_BatchUpdateSites_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/SyncBatchUpdateSites.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/SyncBatchUpdateSites.java new file mode 100644 index 000000000000..451491bfcd8e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/SyncBatchUpdateSites.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchUpdateSites_sync] +import com.google.ads.admanager.v1.BatchUpdateSitesRequest; +import com.google.ads.admanager.v1.BatchUpdateSitesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.ads.admanager.v1.UpdateSiteRequest; +import java.util.ArrayList; + +public class SyncBatchUpdateSites { + + public static void main(String[] args) throws Exception { + syncBatchUpdateSites(); + } + + public static void syncBatchUpdateSites() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + BatchUpdateSitesRequest request = + BatchUpdateSitesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchUpdateSitesResponse response = siteServiceClient.batchUpdateSites(request); + } + } +} +// [END admanager_v1_generated_SiteService_BatchUpdateSites_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/SyncBatchUpdateSitesNetworknameListupdatesiterequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/SyncBatchUpdateSitesNetworknameListupdatesiterequest.java new file mode 100644 index 000000000000..53c9955edb79 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/SyncBatchUpdateSitesNetworknameListupdatesiterequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchUpdateSites_NetworknameListupdatesiterequest_sync] +import com.google.ads.admanager.v1.BatchUpdateSitesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.ads.admanager.v1.UpdateSiteRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateSitesNetworknameListupdatesiterequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateSitesNetworknameListupdatesiterequest(); + } + + public static void syncBatchUpdateSitesNetworknameListupdatesiterequest() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchUpdateSitesResponse response = siteServiceClient.batchUpdateSites(parent, requests); + } + } +} +// [END admanager_v1_generated_SiteService_BatchUpdateSites_NetworknameListupdatesiterequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/SyncBatchUpdateSitesStringListupdatesiterequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/SyncBatchUpdateSitesStringListupdatesiterequest.java new file mode 100644 index 000000000000..75d9bd8125a6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/batchupdatesites/SyncBatchUpdateSitesStringListupdatesiterequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_BatchUpdateSites_StringListupdatesiterequest_sync] +import com.google.ads.admanager.v1.BatchUpdateSitesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.ads.admanager.v1.UpdateSiteRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateSitesStringListupdatesiterequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateSitesStringListupdatesiterequest(); + } + + public static void syncBatchUpdateSitesStringListupdatesiterequest() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchUpdateSitesResponse response = siteServiceClient.batchUpdateSites(parent, requests); + } + } +} +// [END admanager_v1_generated_SiteService_BatchUpdateSites_StringListupdatesiterequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..59aeb2ebfb80 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.ads.admanager.v1.SiteServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + SiteServiceSettings siteServiceSettings = + SiteServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SiteServiceClient siteServiceClient = SiteServiceClient.create(siteServiceSettings); + } +} +// [END admanager_v1_generated_SiteService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..3cdf4bc7f87f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.ads.admanager.v1.SiteServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + SiteServiceSettings siteServiceSettings = + SiteServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SiteServiceClient siteServiceClient = SiteServiceClient.create(siteServiceSettings); + } +} +// [END admanager_v1_generated_SiteService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/AsyncCreateSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/AsyncCreateSite.java new file mode 100644 index 000000000000..c2e21babed1c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/AsyncCreateSite.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_CreateSite_async] +import com.google.ads.admanager.v1.CreateSiteRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncCreateSite { + + public static void main(String[] args) throws Exception { + asyncCreateSite(); + } + + public static void asyncCreateSite() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + CreateSiteRequest request = + CreateSiteRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setSite(Site.newBuilder().build()) + .build(); + ApiFuture future = siteServiceClient.createSiteCallable().futureCall(request); + // Do something. + Site response = future.get(); + } + } +} +// [END admanager_v1_generated_SiteService_CreateSite_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/SyncCreateSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/SyncCreateSite.java new file mode 100644 index 000000000000..3fa4b508c12a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/SyncCreateSite.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_CreateSite_sync] +import com.google.ads.admanager.v1.CreateSiteRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; + +public class SyncCreateSite { + + public static void main(String[] args) throws Exception { + syncCreateSite(); + } + + public static void syncCreateSite() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + CreateSiteRequest request = + CreateSiteRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setSite(Site.newBuilder().build()) + .build(); + Site response = siteServiceClient.createSite(request); + } + } +} +// [END admanager_v1_generated_SiteService_CreateSite_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/SyncCreateSiteNetworknameSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/SyncCreateSiteNetworknameSite.java new file mode 100644 index 000000000000..f9f63204f08f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/SyncCreateSiteNetworknameSite.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_CreateSite_NetworknameSite_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; + +public class SyncCreateSiteNetworknameSite { + + public static void main(String[] args) throws Exception { + syncCreateSiteNetworknameSite(); + } + + public static void syncCreateSiteNetworknameSite() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Site site = Site.newBuilder().build(); + Site response = siteServiceClient.createSite(parent, site); + } + } +} +// [END admanager_v1_generated_SiteService_CreateSite_NetworknameSite_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/SyncCreateSiteStringSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/SyncCreateSiteStringSite.java new file mode 100644 index 000000000000..513583a27b4e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/createsite/SyncCreateSiteStringSite.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_CreateSite_StringSite_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; + +public class SyncCreateSiteStringSite { + + public static void main(String[] args) throws Exception { + syncCreateSiteStringSite(); + } + + public static void syncCreateSiteStringSite() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + Site site = Site.newBuilder().build(); + Site response = siteServiceClient.createSite(parent, site); + } + } +} +// [END admanager_v1_generated_SiteService_CreateSite_StringSite_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/AsyncGetSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/AsyncGetSite.java new file mode 100644 index 000000000000..5f24131a4dc8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/AsyncGetSite.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_GetSite_async] +import com.google.ads.admanager.v1.GetSiteRequest; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteName; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetSite { + + public static void main(String[] args) throws Exception { + asyncGetSite(); + } + + public static void asyncGetSite() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + GetSiteRequest request = + GetSiteRequest.newBuilder() + .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString()) + .build(); + ApiFuture future = siteServiceClient.getSiteCallable().futureCall(request); + // Do something. + Site response = future.get(); + } + } +} +// [END admanager_v1_generated_SiteService_GetSite_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/SyncGetSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/SyncGetSite.java new file mode 100644 index 000000000000..a4bfc951f2d0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/SyncGetSite.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_GetSite_sync] +import com.google.ads.admanager.v1.GetSiteRequest; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteName; +import com.google.ads.admanager.v1.SiteServiceClient; + +public class SyncGetSite { + + public static void main(String[] args) throws Exception { + syncGetSite(); + } + + public static void syncGetSite() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + GetSiteRequest request = + GetSiteRequest.newBuilder() + .setName(SiteName.of("[NETWORK_CODE]", "[SITE]").toString()) + .build(); + Site response = siteServiceClient.getSite(request); + } + } +} +// [END admanager_v1_generated_SiteService_GetSite_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/SyncGetSiteSitename.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/SyncGetSiteSitename.java new file mode 100644 index 000000000000..a19b6c08ed23 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/SyncGetSiteSitename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_GetSite_Sitename_sync] +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteName; +import com.google.ads.admanager.v1.SiteServiceClient; + +public class SyncGetSiteSitename { + + public static void main(String[] args) throws Exception { + syncGetSiteSitename(); + } + + public static void syncGetSiteSitename() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + SiteName name = SiteName.of("[NETWORK_CODE]", "[SITE]"); + Site response = siteServiceClient.getSite(name); + } + } +} +// [END admanager_v1_generated_SiteService_GetSite_Sitename_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/SyncGetSiteString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/SyncGetSiteString.java new file mode 100644 index 000000000000..b60a705f5869 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/getsite/SyncGetSiteString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_GetSite_String_sync] +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteName; +import com.google.ads.admanager.v1.SiteServiceClient; + +public class SyncGetSiteString { + + public static void main(String[] args) throws Exception { + syncGetSiteString(); + } + + public static void syncGetSiteString() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + String name = SiteName.of("[NETWORK_CODE]", "[SITE]").toString(); + Site response = siteServiceClient.getSite(name); + } + } +} +// [END admanager_v1_generated_SiteService_GetSite_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/AsyncListSites.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/AsyncListSites.java new file mode 100644 index 000000000000..eda6fc89bed3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/AsyncListSites.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_ListSites_async] +import com.google.ads.admanager.v1.ListSitesRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncListSites { + + public static void main(String[] args) throws Exception { + asyncListSites(); + } + + public static void asyncListSites() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + ListSitesRequest request = + ListSitesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = siteServiceClient.listSitesPagedCallable().futureCall(request); + // Do something. + for (Site element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_SiteService_ListSites_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/AsyncListSitesPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/AsyncListSitesPaged.java new file mode 100644 index 000000000000..b6e20f85f42a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/AsyncListSitesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_ListSites_Paged_async] +import com.google.ads.admanager.v1.ListSitesRequest; +import com.google.ads.admanager.v1.ListSitesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.common.base.Strings; + +public class AsyncListSitesPaged { + + public static void main(String[] args) throws Exception { + asyncListSitesPaged(); + } + + public static void asyncListSitesPaged() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + ListSitesRequest request = + ListSitesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListSitesResponse response = siteServiceClient.listSitesCallable().call(request); + for (Site element : response.getSitesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_SiteService_ListSites_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/SyncListSites.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/SyncListSites.java new file mode 100644 index 000000000000..f27048a4d950 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/SyncListSites.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_ListSites_sync] +import com.google.ads.admanager.v1.ListSitesRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; + +public class SyncListSites { + + public static void main(String[] args) throws Exception { + syncListSites(); + } + + public static void syncListSites() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + ListSitesRequest request = + ListSitesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (Site element : siteServiceClient.listSites(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_SiteService_ListSites_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/SyncListSitesNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/SyncListSitesNetworkname.java new file mode 100644 index 000000000000..cbde2e22b867 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/SyncListSitesNetworkname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_ListSites_Networkname_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; + +public class SyncListSitesNetworkname { + + public static void main(String[] args) throws Exception { + syncListSitesNetworkname(); + } + + public static void syncListSitesNetworkname() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (Site element : siteServiceClient.listSites(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_SiteService_ListSites_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/SyncListSitesString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/SyncListSitesString.java new file mode 100644 index 000000000000..42ee886dff8a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/listsites/SyncListSitesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_ListSites_String_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; + +public class SyncListSitesString { + + public static void main(String[] args) throws Exception { + syncListSitesString(); + } + + public static void syncListSitesString() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (Site element : siteServiceClient.listSites(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_SiteService_ListSites_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/updatesite/AsyncUpdateSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/updatesite/AsyncUpdateSite.java new file mode 100644 index 000000000000..a86ed387e5c7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/updatesite/AsyncUpdateSite.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_UpdateSite_async] +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.ads.admanager.v1.UpdateSiteRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSite { + + public static void main(String[] args) throws Exception { + asyncUpdateSite(); + } + + public static void asyncUpdateSite() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + UpdateSiteRequest request = + UpdateSiteRequest.newBuilder() + .setSite(Site.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = siteServiceClient.updateSiteCallable().futureCall(request); + // Do something. + Site response = future.get(); + } + } +} +// [END admanager_v1_generated_SiteService_UpdateSite_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/updatesite/SyncUpdateSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/updatesite/SyncUpdateSite.java new file mode 100644 index 000000000000..90506d94f308 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/updatesite/SyncUpdateSite.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_UpdateSite_sync] +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.ads.admanager.v1.UpdateSiteRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSite { + + public static void main(String[] args) throws Exception { + syncUpdateSite(); + } + + public static void syncUpdateSite() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + UpdateSiteRequest request = + UpdateSiteRequest.newBuilder() + .setSite(Site.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Site response = siteServiceClient.updateSite(request); + } + } +} +// [END admanager_v1_generated_SiteService_UpdateSite_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/updatesite/SyncUpdateSiteSiteFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/updatesite/SyncUpdateSiteSiteFieldmask.java new file mode 100644 index 000000000000..187d2e13a0cb --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservice/updatesite/SyncUpdateSiteSiteFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteService_UpdateSite_SiteFieldmask_sync] +import com.google.ads.admanager.v1.Site; +import com.google.ads.admanager.v1.SiteServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSiteSiteFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSiteSiteFieldmask(); + } + + public static void syncUpdateSiteSiteFieldmask() 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 (SiteServiceClient siteServiceClient = SiteServiceClient.create()) { + Site site = Site.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Site response = siteServiceClient.updateSite(site, updateMask); + } + } +} +// [END admanager_v1_generated_SiteService_UpdateSite_SiteFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservicesettings/getsite/SyncGetSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservicesettings/getsite/SyncGetSite.java new file mode 100644 index 000000000000..e227205a3db0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/siteservicesettings/getsite/SyncGetSite.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_SiteServiceSettings_GetSite_sync] +import com.google.ads.admanager.v1.SiteServiceSettings; +import java.time.Duration; + +public class SyncGetSite { + + public static void main(String[] args) throws Exception { + syncGetSite(); + } + + public static void syncGetSite() 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 + SiteServiceSettings.Builder siteServiceSettingsBuilder = SiteServiceSettings.newBuilder(); + siteServiceSettingsBuilder + .getSiteSettings() + .setRetrySettings( + siteServiceSettingsBuilder + .getSiteSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SiteServiceSettings siteServiceSettings = siteServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_SiteServiceSettings_GetSite_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/adreviewcenteradservicestubsettings/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/adreviewcenteradservicestubsettings/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAds.java new file mode 100644 index 000000000000..df645095d81a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/adreviewcenteradservicestubsettings/batchallowadreviewcenterads/SyncBatchAllowAdReviewCenterAds.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_AdReviewCenterAdServiceStubSettings_BatchAllowAdReviewCenterAds_sync] +import com.google.ads.admanager.v1.stub.AdReviewCenterAdServiceStubSettings; +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import java.time.Duration; + +public class SyncBatchAllowAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + syncBatchAllowAdReviewCenterAds(); + } + + public static void syncBatchAllowAdReviewCenterAds() 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 + AdReviewCenterAdServiceStubSettings.Builder adReviewCenterAdServiceSettingsBuilder = + AdReviewCenterAdServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + adReviewCenterAdServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END admanager_v1_generated_AdReviewCenterAdServiceStubSettings_BatchAllowAdReviewCenterAds_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/adreviewcenteradservicestubsettings/searchadreviewcenterads/SyncSearchAdReviewCenterAds.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/adreviewcenteradservicestubsettings/searchadreviewcenterads/SyncSearchAdReviewCenterAds.java new file mode 100644 index 000000000000..c28b7e3659e7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/adreviewcenteradservicestubsettings/searchadreviewcenterads/SyncSearchAdReviewCenterAds.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_AdReviewCenterAdServiceStubSettings_SearchAdReviewCenterAds_sync] +import com.google.ads.admanager.v1.stub.AdReviewCenterAdServiceStubSettings; +import java.time.Duration; + +public class SyncSearchAdReviewCenterAds { + + public static void main(String[] args) throws Exception { + syncSearchAdReviewCenterAds(); + } + + public static void syncSearchAdReviewCenterAds() 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 + AdReviewCenterAdServiceStubSettings.Builder adReviewCenterAdServiceSettingsBuilder = + AdReviewCenterAdServiceStubSettings.newBuilder(); + adReviewCenterAdServiceSettingsBuilder + .searchAdReviewCenterAdsSettings() + .setRetrySettings( + adReviewCenterAdServiceSettingsBuilder + .searchAdReviewCenterAdsSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AdReviewCenterAdServiceStubSettings adReviewCenterAdServiceSettings = + adReviewCenterAdServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_AdReviewCenterAdServiceStubSettings_SearchAdReviewCenterAds_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/applicationservicestubsettings/getapplication/SyncGetApplication.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/applicationservicestubsettings/getapplication/SyncGetApplication.java new file mode 100644 index 000000000000..cb9e33e6c095 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/applicationservicestubsettings/getapplication/SyncGetApplication.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_ApplicationServiceStubSettings_GetApplication_sync] +import com.google.ads.admanager.v1.stub.ApplicationServiceStubSettings; +import java.time.Duration; + +public class SyncGetApplication { + + public static void main(String[] args) throws Exception { + syncGetApplication(); + } + + public static void syncGetApplication() 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 + ApplicationServiceStubSettings.Builder applicationServiceSettingsBuilder = + ApplicationServiceStubSettings.newBuilder(); + applicationServiceSettingsBuilder + .getApplicationSettings() + .setRetrySettings( + applicationServiceSettingsBuilder + .getApplicationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ApplicationServiceStubSettings applicationServiceSettings = + applicationServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ApplicationServiceStubSettings_GetApplication_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/audiencesegmentservicestubsettings/getaudiencesegment/SyncGetAudienceSegment.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/audiencesegmentservicestubsettings/getaudiencesegment/SyncGetAudienceSegment.java new file mode 100644 index 000000000000..092da3940585 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/audiencesegmentservicestubsettings/getaudiencesegment/SyncGetAudienceSegment.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_AudienceSegmentServiceStubSettings_GetAudienceSegment_sync] +import com.google.ads.admanager.v1.stub.AudienceSegmentServiceStubSettings; +import java.time.Duration; + +public class SyncGetAudienceSegment { + + public static void main(String[] args) throws Exception { + syncGetAudienceSegment(); + } + + public static void syncGetAudienceSegment() 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 + AudienceSegmentServiceStubSettings.Builder audienceSegmentServiceSettingsBuilder = + AudienceSegmentServiceStubSettings.newBuilder(); + audienceSegmentServiceSettingsBuilder + .getAudienceSegmentSettings() + .setRetrySettings( + audienceSegmentServiceSettingsBuilder + .getAudienceSegmentSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AudienceSegmentServiceStubSettings audienceSegmentServiceSettings = + audienceSegmentServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_AudienceSegmentServiceStubSettings_GetAudienceSegment_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/browserlanguageservicestubsettings/getbrowserlanguage/SyncGetBrowserLanguage.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/browserlanguageservicestubsettings/getbrowserlanguage/SyncGetBrowserLanguage.java new file mode 100644 index 000000000000..ae1962ac827c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/browserlanguageservicestubsettings/getbrowserlanguage/SyncGetBrowserLanguage.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_BrowserLanguageServiceStubSettings_GetBrowserLanguage_sync] +import com.google.ads.admanager.v1.stub.BrowserLanguageServiceStubSettings; +import java.time.Duration; + +public class SyncGetBrowserLanguage { + + public static void main(String[] args) throws Exception { + syncGetBrowserLanguage(); + } + + public static void syncGetBrowserLanguage() 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 + BrowserLanguageServiceStubSettings.Builder browserLanguageServiceSettingsBuilder = + BrowserLanguageServiceStubSettings.newBuilder(); + browserLanguageServiceSettingsBuilder + .getBrowserLanguageSettings() + .setRetrySettings( + browserLanguageServiceSettingsBuilder + .getBrowserLanguageSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + BrowserLanguageServiceStubSettings browserLanguageServiceSettings = + browserLanguageServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_BrowserLanguageServiceStubSettings_GetBrowserLanguage_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/browserservicestubsettings/getbrowser/SyncGetBrowser.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/browserservicestubsettings/getbrowser/SyncGetBrowser.java new file mode 100644 index 000000000000..96252a8dc7b0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/browserservicestubsettings/getbrowser/SyncGetBrowser.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_BrowserServiceStubSettings_GetBrowser_sync] +import com.google.ads.admanager.v1.stub.BrowserServiceStubSettings; +import java.time.Duration; + +public class SyncGetBrowser { + + public static void main(String[] args) throws Exception { + syncGetBrowser(); + } + + public static void syncGetBrowser() 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 + BrowserServiceStubSettings.Builder browserServiceSettingsBuilder = + BrowserServiceStubSettings.newBuilder(); + browserServiceSettingsBuilder + .getBrowserSettings() + .setRetrySettings( + browserServiceSettingsBuilder + .getBrowserSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + BrowserServiceStubSettings browserServiceSettings = browserServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_BrowserServiceStubSettings_GetBrowser_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/cmsmetadatakeyservicestubsettings/getcmsmetadatakey/SyncGetCmsMetadataKey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/cmsmetadatakeyservicestubsettings/getcmsmetadatakey/SyncGetCmsMetadataKey.java new file mode 100644 index 000000000000..ae9116f10ba0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/cmsmetadatakeyservicestubsettings/getcmsmetadatakey/SyncGetCmsMetadataKey.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_CmsMetadataKeyServiceStubSettings_GetCmsMetadataKey_sync] +import com.google.ads.admanager.v1.stub.CmsMetadataKeyServiceStubSettings; +import java.time.Duration; + +public class SyncGetCmsMetadataKey { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataKey(); + } + + public static void syncGetCmsMetadataKey() 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 + CmsMetadataKeyServiceStubSettings.Builder cmsMetadataKeyServiceSettingsBuilder = + CmsMetadataKeyServiceStubSettings.newBuilder(); + cmsMetadataKeyServiceSettingsBuilder + .getCmsMetadataKeySettings() + .setRetrySettings( + cmsMetadataKeyServiceSettingsBuilder + .getCmsMetadataKeySettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CmsMetadataKeyServiceStubSettings cmsMetadataKeyServiceSettings = + cmsMetadataKeyServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_CmsMetadataKeyServiceStubSettings_GetCmsMetadataKey_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/cmsmetadatavalueservicestubsettings/getcmsmetadatavalue/SyncGetCmsMetadataValue.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/cmsmetadatavalueservicestubsettings/getcmsmetadatavalue/SyncGetCmsMetadataValue.java new file mode 100644 index 000000000000..ae2889c8a8f4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/cmsmetadatavalueservicestubsettings/getcmsmetadatavalue/SyncGetCmsMetadataValue.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_CmsMetadataValueServiceStubSettings_GetCmsMetadataValue_sync] +import com.google.ads.admanager.v1.stub.CmsMetadataValueServiceStubSettings; +import java.time.Duration; + +public class SyncGetCmsMetadataValue { + + public static void main(String[] args) throws Exception { + syncGetCmsMetadataValue(); + } + + public static void syncGetCmsMetadataValue() 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 + CmsMetadataValueServiceStubSettings.Builder cmsMetadataValueServiceSettingsBuilder = + CmsMetadataValueServiceStubSettings.newBuilder(); + cmsMetadataValueServiceSettingsBuilder + .getCmsMetadataValueSettings() + .setRetrySettings( + cmsMetadataValueServiceSettingsBuilder + .getCmsMetadataValueSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CmsMetadataValueServiceStubSettings cmsMetadataValueServiceSettings = + cmsMetadataValueServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_CmsMetadataValueServiceStubSettings_GetCmsMetadataValue_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contactservicestubsettings/getcontact/SyncGetContact.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contactservicestubsettings/getcontact/SyncGetContact.java new file mode 100644 index 000000000000..dcf378969a70 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contactservicestubsettings/getcontact/SyncGetContact.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_ContactServiceStubSettings_GetContact_sync] +import com.google.ads.admanager.v1.stub.ContactServiceStubSettings; +import java.time.Duration; + +public class SyncGetContact { + + public static void main(String[] args) throws Exception { + syncGetContact(); + } + + public static void syncGetContact() 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 + ContactServiceStubSettings.Builder contactServiceSettingsBuilder = + ContactServiceStubSettings.newBuilder(); + contactServiceSettingsBuilder + .getContactSettings() + .setRetrySettings( + contactServiceSettingsBuilder + .getContactSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ContactServiceStubSettings contactServiceSettings = contactServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ContactServiceStubSettings_GetContact_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contentbundleservicestubsettings/getcontentbundle/SyncGetContentBundle.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contentbundleservicestubsettings/getcontentbundle/SyncGetContentBundle.java new file mode 100644 index 000000000000..6d76483461a5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contentbundleservicestubsettings/getcontentbundle/SyncGetContentBundle.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_ContentBundleServiceStubSettings_GetContentBundle_sync] +import com.google.ads.admanager.v1.stub.ContentBundleServiceStubSettings; +import java.time.Duration; + +public class SyncGetContentBundle { + + public static void main(String[] args) throws Exception { + syncGetContentBundle(); + } + + public static void syncGetContentBundle() 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 + ContentBundleServiceStubSettings.Builder contentBundleServiceSettingsBuilder = + ContentBundleServiceStubSettings.newBuilder(); + contentBundleServiceSettingsBuilder + .getContentBundleSettings() + .setRetrySettings( + contentBundleServiceSettingsBuilder + .getContentBundleSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ContentBundleServiceStubSettings contentBundleServiceSettings = + contentBundleServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ContentBundleServiceStubSettings_GetContentBundle_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contentlabelservicestubsettings/getcontentlabel/SyncGetContentLabel.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contentlabelservicestubsettings/getcontentlabel/SyncGetContentLabel.java new file mode 100644 index 000000000000..d9858c58ddef --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contentlabelservicestubsettings/getcontentlabel/SyncGetContentLabel.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_ContentLabelServiceStubSettings_GetContentLabel_sync] +import com.google.ads.admanager.v1.stub.ContentLabelServiceStubSettings; +import java.time.Duration; + +public class SyncGetContentLabel { + + public static void main(String[] args) throws Exception { + syncGetContentLabel(); + } + + public static void syncGetContentLabel() 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 + ContentLabelServiceStubSettings.Builder contentLabelServiceSettingsBuilder = + ContentLabelServiceStubSettings.newBuilder(); + contentLabelServiceSettingsBuilder + .getContentLabelSettings() + .setRetrySettings( + contentLabelServiceSettingsBuilder + .getContentLabelSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ContentLabelServiceStubSettings contentLabelServiceSettings = + contentLabelServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ContentLabelServiceStubSettings_GetContentLabel_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contentservicestubsettings/getcontent/SyncGetContent.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contentservicestubsettings/getcontent/SyncGetContent.java new file mode 100644 index 000000000000..51c8a4b6b28e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/contentservicestubsettings/getcontent/SyncGetContent.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_ContentServiceStubSettings_GetContent_sync] +import com.google.ads.admanager.v1.stub.ContentServiceStubSettings; +import java.time.Duration; + +public class SyncGetContent { + + public static void main(String[] args) throws Exception { + syncGetContent(); + } + + public static void syncGetContent() 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 + ContentServiceStubSettings.Builder contentServiceSettingsBuilder = + ContentServiceStubSettings.newBuilder(); + contentServiceSettingsBuilder + .getContentSettings() + .setRetrySettings( + contentServiceSettingsBuilder + .getContentSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ContentServiceStubSettings contentServiceSettings = contentServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ContentServiceStubSettings_GetContent_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/creativetemplateservicestubsettings/getcreativetemplate/SyncGetCreativeTemplate.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/creativetemplateservicestubsettings/getcreativetemplate/SyncGetCreativeTemplate.java new file mode 100644 index 000000000000..f2697bfdfc87 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/creativetemplateservicestubsettings/getcreativetemplate/SyncGetCreativeTemplate.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_CreativeTemplateServiceStubSettings_GetCreativeTemplate_sync] +import com.google.ads.admanager.v1.stub.CreativeTemplateServiceStubSettings; +import java.time.Duration; + +public class SyncGetCreativeTemplate { + + public static void main(String[] args) throws Exception { + syncGetCreativeTemplate(); + } + + public static void syncGetCreativeTemplate() 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 + CreativeTemplateServiceStubSettings.Builder creativeTemplateServiceSettingsBuilder = + CreativeTemplateServiceStubSettings.newBuilder(); + creativeTemplateServiceSettingsBuilder + .getCreativeTemplateSettings() + .setRetrySettings( + creativeTemplateServiceSettingsBuilder + .getCreativeTemplateSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CreativeTemplateServiceStubSettings creativeTemplateServiceSettings = + creativeTemplateServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_CreativeTemplateServiceStubSettings_GetCreativeTemplate_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/devicecapabilityservicestubsettings/getdevicecapability/SyncGetDeviceCapability.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/devicecapabilityservicestubsettings/getdevicecapability/SyncGetDeviceCapability.java new file mode 100644 index 000000000000..459f4b0f7c17 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/devicecapabilityservicestubsettings/getdevicecapability/SyncGetDeviceCapability.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_DeviceCapabilityServiceStubSettings_GetDeviceCapability_sync] +import com.google.ads.admanager.v1.stub.DeviceCapabilityServiceStubSettings; +import java.time.Duration; + +public class SyncGetDeviceCapability { + + public static void main(String[] args) throws Exception { + syncGetDeviceCapability(); + } + + public static void syncGetDeviceCapability() 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 + DeviceCapabilityServiceStubSettings.Builder deviceCapabilityServiceSettingsBuilder = + DeviceCapabilityServiceStubSettings.newBuilder(); + deviceCapabilityServiceSettingsBuilder + .getDeviceCapabilitySettings() + .setRetrySettings( + deviceCapabilityServiceSettingsBuilder + .getDeviceCapabilitySettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DeviceCapabilityServiceStubSettings deviceCapabilityServiceSettings = + deviceCapabilityServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_DeviceCapabilityServiceStubSettings_GetDeviceCapability_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/devicemanufacturerservicestubsettings/getdevicemanufacturer/SyncGetDeviceManufacturer.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/devicemanufacturerservicestubsettings/getdevicemanufacturer/SyncGetDeviceManufacturer.java new file mode 100644 index 000000000000..7450929b5028 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/devicemanufacturerservicestubsettings/getdevicemanufacturer/SyncGetDeviceManufacturer.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_DeviceManufacturerServiceStubSettings_GetDeviceManufacturer_sync] +import com.google.ads.admanager.v1.stub.DeviceManufacturerServiceStubSettings; +import java.time.Duration; + +public class SyncGetDeviceManufacturer { + + public static void main(String[] args) throws Exception { + syncGetDeviceManufacturer(); + } + + public static void syncGetDeviceManufacturer() 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 + DeviceManufacturerServiceStubSettings.Builder deviceManufacturerServiceSettingsBuilder = + DeviceManufacturerServiceStubSettings.newBuilder(); + deviceManufacturerServiceSettingsBuilder + .getDeviceManufacturerSettings() + .setRetrySettings( + deviceManufacturerServiceSettingsBuilder + .getDeviceManufacturerSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DeviceManufacturerServiceStubSettings deviceManufacturerServiceSettings = + deviceManufacturerServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_DeviceManufacturerServiceStubSettings_GetDeviceManufacturer_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/mobilecarrierservicestubsettings/getmobilecarrier/SyncGetMobileCarrier.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/mobilecarrierservicestubsettings/getmobilecarrier/SyncGetMobileCarrier.java new file mode 100644 index 000000000000..7e8d6817d6fe --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/mobilecarrierservicestubsettings/getmobilecarrier/SyncGetMobileCarrier.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_MobileCarrierServiceStubSettings_GetMobileCarrier_sync] +import com.google.ads.admanager.v1.stub.MobileCarrierServiceStubSettings; +import java.time.Duration; + +public class SyncGetMobileCarrier { + + public static void main(String[] args) throws Exception { + syncGetMobileCarrier(); + } + + public static void syncGetMobileCarrier() 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 + MobileCarrierServiceStubSettings.Builder mobileCarrierServiceSettingsBuilder = + MobileCarrierServiceStubSettings.newBuilder(); + mobileCarrierServiceSettingsBuilder + .getMobileCarrierSettings() + .setRetrySettings( + mobileCarrierServiceSettingsBuilder + .getMobileCarrierSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MobileCarrierServiceStubSettings mobileCarrierServiceSettings = + mobileCarrierServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_MobileCarrierServiceStubSettings_GetMobileCarrier_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/mobiledeviceservicestubsettings/getmobiledevice/SyncGetMobileDevice.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/mobiledeviceservicestubsettings/getmobiledevice/SyncGetMobileDevice.java new file mode 100644 index 000000000000..47d0d9cd4e48 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/mobiledeviceservicestubsettings/getmobiledevice/SyncGetMobileDevice.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_MobileDeviceServiceStubSettings_GetMobileDevice_sync] +import com.google.ads.admanager.v1.stub.MobileDeviceServiceStubSettings; +import java.time.Duration; + +public class SyncGetMobileDevice { + + public static void main(String[] args) throws Exception { + syncGetMobileDevice(); + } + + public static void syncGetMobileDevice() 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 + MobileDeviceServiceStubSettings.Builder mobileDeviceServiceSettingsBuilder = + MobileDeviceServiceStubSettings.newBuilder(); + mobileDeviceServiceSettingsBuilder + .getMobileDeviceSettings() + .setRetrySettings( + mobileDeviceServiceSettingsBuilder + .getMobileDeviceSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MobileDeviceServiceStubSettings mobileDeviceServiceSettings = + mobileDeviceServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_MobileDeviceServiceStubSettings_GetMobileDevice_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/mobiledevicesubmodelservicestubsettings/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodel.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/mobiledevicesubmodelservicestubsettings/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodel.java new file mode 100644 index 000000000000..bac3fc862840 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/mobiledevicesubmodelservicestubsettings/getmobiledevicesubmodel/SyncGetMobileDeviceSubmodel.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_MobileDeviceSubmodelServiceStubSettings_GetMobileDeviceSubmodel_sync] +import com.google.ads.admanager.v1.stub.MobileDeviceSubmodelServiceStubSettings; +import java.time.Duration; + +public class SyncGetMobileDeviceSubmodel { + + public static void main(String[] args) throws Exception { + syncGetMobileDeviceSubmodel(); + } + + public static void syncGetMobileDeviceSubmodel() 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 + MobileDeviceSubmodelServiceStubSettings.Builder mobileDeviceSubmodelServiceSettingsBuilder = + MobileDeviceSubmodelServiceStubSettings.newBuilder(); + mobileDeviceSubmodelServiceSettingsBuilder + .getMobileDeviceSubmodelSettings() + .setRetrySettings( + mobileDeviceSubmodelServiceSettingsBuilder + .getMobileDeviceSubmodelSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MobileDeviceSubmodelServiceStubSettings mobileDeviceSubmodelServiceSettings = + mobileDeviceSubmodelServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_MobileDeviceSubmodelServiceStubSettings_GetMobileDeviceSubmodel_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/siteservicestubsettings/getsite/SyncGetSite.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/siteservicestubsettings/getsite/SyncGetSite.java new file mode 100644 index 000000000000..3b7aeef3626c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/siteservicestubsettings/getsite/SyncGetSite.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_SiteServiceStubSettings_GetSite_sync] +import com.google.ads.admanager.v1.stub.SiteServiceStubSettings; +import java.time.Duration; + +public class SyncGetSite { + + public static void main(String[] args) throws Exception { + syncGetSite(); + } + + public static void syncGetSite() 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 + SiteServiceStubSettings.Builder siteServiceSettingsBuilder = + SiteServiceStubSettings.newBuilder(); + siteServiceSettingsBuilder + .getSiteSettings() + .setRetrySettings( + siteServiceSettingsBuilder + .getSiteSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SiteServiceStubSettings siteServiceSettings = siteServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_SiteServiceStubSettings_GetSite_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/teamservicestubsettings/getteam/SyncGetTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/teamservicestubsettings/getteam/SyncGetTeam.java new file mode 100644 index 000000000000..e5736251d8d6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/teamservicestubsettings/getteam/SyncGetTeam.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_TeamServiceStubSettings_GetTeam_sync] +import com.google.ads.admanager.v1.stub.TeamServiceStubSettings; +import java.time.Duration; + +public class SyncGetTeam { + + public static void main(String[] args) throws Exception { + syncGetTeam(); + } + + public static void syncGetTeam() 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 + TeamServiceStubSettings.Builder teamServiceSettingsBuilder = + TeamServiceStubSettings.newBuilder(); + teamServiceSettingsBuilder + .getTeamSettings() + .setRetrySettings( + teamServiceSettingsBuilder + .getTeamSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + TeamServiceStubSettings teamServiceSettings = teamServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_TeamServiceStubSettings_GetTeam_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/AsyncBatchActivateTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/AsyncBatchActivateTeams.java new file mode 100644 index 000000000000..1ec1fdc3af73 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/AsyncBatchActivateTeams.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchActivateTeams_async] +import com.google.ads.admanager.v1.BatchActivateTeamsRequest; +import com.google.ads.admanager.v1.BatchActivateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchActivateTeams { + + public static void main(String[] args) throws Exception { + asyncBatchActivateTeams(); + } + + public static void asyncBatchActivateTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + BatchActivateTeamsRequest request = + BatchActivateTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + teamServiceClient.batchActivateTeamsCallable().futureCall(request); + // Do something. + BatchActivateTeamsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_TeamService_BatchActivateTeams_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/SyncBatchActivateTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/SyncBatchActivateTeams.java new file mode 100644 index 000000000000..850b193794a2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/SyncBatchActivateTeams.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchActivateTeams_sync] +import com.google.ads.admanager.v1.BatchActivateTeamsRequest; +import com.google.ads.admanager.v1.BatchActivateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import java.util.ArrayList; + +public class SyncBatchActivateTeams { + + public static void main(String[] args) throws Exception { + syncBatchActivateTeams(); + } + + public static void syncBatchActivateTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + BatchActivateTeamsRequest request = + BatchActivateTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchActivateTeamsResponse response = teamServiceClient.batchActivateTeams(request); + } + } +} +// [END admanager_v1_generated_TeamService_BatchActivateTeams_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/SyncBatchActivateTeamsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/SyncBatchActivateTeamsNetworknameListstring.java new file mode 100644 index 000000000000..67e585f0c3b6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/SyncBatchActivateTeamsNetworknameListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchActivateTeams_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchActivateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivateTeamsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivateTeamsNetworknameListstring(); + } + + public static void syncBatchActivateTeamsNetworknameListstring() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchActivateTeamsResponse response = teamServiceClient.batchActivateTeams(parent, names); + } + } +} +// [END admanager_v1_generated_TeamService_BatchActivateTeams_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/SyncBatchActivateTeamsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/SyncBatchActivateTeamsStringListstring.java new file mode 100644 index 000000000000..80f77a3c04d1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchactivateteams/SyncBatchActivateTeamsStringListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchActivateTeams_StringListstring_sync] +import com.google.ads.admanager.v1.BatchActivateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivateTeamsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivateTeamsStringListstring(); + } + + public static void syncBatchActivateTeamsStringListstring() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchActivateTeamsResponse response = teamServiceClient.batchActivateTeams(parent, names); + } + } +} +// [END admanager_v1_generated_TeamService_BatchActivateTeams_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/AsyncBatchCreateTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/AsyncBatchCreateTeams.java new file mode 100644 index 000000000000..f97442f4320d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/AsyncBatchCreateTeams.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchCreateTeams_async] +import com.google.ads.admanager.v1.BatchCreateTeamsRequest; +import com.google.ads.admanager.v1.BatchCreateTeamsResponse; +import com.google.ads.admanager.v1.CreateTeamRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchCreateTeams { + + public static void main(String[] args) throws Exception { + asyncBatchCreateTeams(); + } + + public static void asyncBatchCreateTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + BatchCreateTeamsRequest request = + BatchCreateTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + teamServiceClient.batchCreateTeamsCallable().futureCall(request); + // Do something. + BatchCreateTeamsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_TeamService_BatchCreateTeams_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/SyncBatchCreateTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/SyncBatchCreateTeams.java new file mode 100644 index 000000000000..f3e65f0a8fd8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/SyncBatchCreateTeams.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchCreateTeams_sync] +import com.google.ads.admanager.v1.BatchCreateTeamsRequest; +import com.google.ads.admanager.v1.BatchCreateTeamsResponse; +import com.google.ads.admanager.v1.CreateTeamRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import java.util.ArrayList; + +public class SyncBatchCreateTeams { + + public static void main(String[] args) throws Exception { + syncBatchCreateTeams(); + } + + public static void syncBatchCreateTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + BatchCreateTeamsRequest request = + BatchCreateTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchCreateTeamsResponse response = teamServiceClient.batchCreateTeams(request); + } + } +} +// [END admanager_v1_generated_TeamService_BatchCreateTeams_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/SyncBatchCreateTeamsNetworknameListcreateteamrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/SyncBatchCreateTeamsNetworknameListcreateteamrequest.java new file mode 100644 index 000000000000..8351ede36ecf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/SyncBatchCreateTeamsNetworknameListcreateteamrequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchCreateTeams_NetworknameListcreateteamrequest_sync] +import com.google.ads.admanager.v1.BatchCreateTeamsResponse; +import com.google.ads.admanager.v1.CreateTeamRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateTeamsNetworknameListcreateteamrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateTeamsNetworknameListcreateteamrequest(); + } + + public static void syncBatchCreateTeamsNetworknameListcreateteamrequest() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchCreateTeamsResponse response = teamServiceClient.batchCreateTeams(parent, requests); + } + } +} +// [END admanager_v1_generated_TeamService_BatchCreateTeams_NetworknameListcreateteamrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/SyncBatchCreateTeamsStringListcreateteamrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/SyncBatchCreateTeamsStringListcreateteamrequest.java new file mode 100644 index 000000000000..c4856c52813c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchcreateteams/SyncBatchCreateTeamsStringListcreateteamrequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchCreateTeams_StringListcreateteamrequest_sync] +import com.google.ads.admanager.v1.BatchCreateTeamsResponse; +import com.google.ads.admanager.v1.CreateTeamRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateTeamsStringListcreateteamrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateTeamsStringListcreateteamrequest(); + } + + public static void syncBatchCreateTeamsStringListcreateteamrequest() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchCreateTeamsResponse response = teamServiceClient.batchCreateTeams(parent, requests); + } + } +} +// [END admanager_v1_generated_TeamService_BatchCreateTeams_StringListcreateteamrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/AsyncBatchDeactivateTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/AsyncBatchDeactivateTeams.java new file mode 100644 index 000000000000..7310ec0ee8b7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/AsyncBatchDeactivateTeams.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchDeactivateTeams_async] +import com.google.ads.admanager.v1.BatchDeactivateTeamsRequest; +import com.google.ads.admanager.v1.BatchDeactivateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchDeactivateTeams { + + public static void main(String[] args) throws Exception { + asyncBatchDeactivateTeams(); + } + + public static void asyncBatchDeactivateTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + BatchDeactivateTeamsRequest request = + BatchDeactivateTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + teamServiceClient.batchDeactivateTeamsCallable().futureCall(request); + // Do something. + BatchDeactivateTeamsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_TeamService_BatchDeactivateTeams_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/SyncBatchDeactivateTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/SyncBatchDeactivateTeams.java new file mode 100644 index 000000000000..6d0aa47cba2c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/SyncBatchDeactivateTeams.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchDeactivateTeams_sync] +import com.google.ads.admanager.v1.BatchDeactivateTeamsRequest; +import com.google.ads.admanager.v1.BatchDeactivateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import java.util.ArrayList; + +public class SyncBatchDeactivateTeams { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateTeams(); + } + + public static void syncBatchDeactivateTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + BatchDeactivateTeamsRequest request = + BatchDeactivateTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchDeactivateTeamsResponse response = teamServiceClient.batchDeactivateTeams(request); + } + } +} +// [END admanager_v1_generated_TeamService_BatchDeactivateTeams_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/SyncBatchDeactivateTeamsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/SyncBatchDeactivateTeamsNetworknameListstring.java new file mode 100644 index 000000000000..8e52ca0f47fd --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/SyncBatchDeactivateTeamsNetworknameListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchDeactivateTeams_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateTeamsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateTeamsNetworknameListstring(); + } + + public static void syncBatchDeactivateTeamsNetworknameListstring() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchDeactivateTeamsResponse response = teamServiceClient.batchDeactivateTeams(parent, names); + } + } +} +// [END admanager_v1_generated_TeamService_BatchDeactivateTeams_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/SyncBatchDeactivateTeamsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/SyncBatchDeactivateTeamsStringListstring.java new file mode 100644 index 000000000000..60fa8d35f41e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchdeactivateteams/SyncBatchDeactivateTeamsStringListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchDeactivateTeams_StringListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateTeamsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateTeamsStringListstring(); + } + + public static void syncBatchDeactivateTeamsStringListstring() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchDeactivateTeamsResponse response = teamServiceClient.batchDeactivateTeams(parent, names); + } + } +} +// [END admanager_v1_generated_TeamService_BatchDeactivateTeams_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/AsyncBatchUpdateTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/AsyncBatchUpdateTeams.java new file mode 100644 index 000000000000..b9cfc74b555c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/AsyncBatchUpdateTeams.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchUpdateTeams_async] +import com.google.ads.admanager.v1.BatchUpdateTeamsRequest; +import com.google.ads.admanager.v1.BatchUpdateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.ads.admanager.v1.UpdateTeamRequest; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchUpdateTeams { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateTeams(); + } + + public static void asyncBatchUpdateTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + BatchUpdateTeamsRequest request = + BatchUpdateTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + teamServiceClient.batchUpdateTeamsCallable().futureCall(request); + // Do something. + BatchUpdateTeamsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_TeamService_BatchUpdateTeams_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/SyncBatchUpdateTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/SyncBatchUpdateTeams.java new file mode 100644 index 000000000000..ca79324bd375 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/SyncBatchUpdateTeams.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchUpdateTeams_sync] +import com.google.ads.admanager.v1.BatchUpdateTeamsRequest; +import com.google.ads.admanager.v1.BatchUpdateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.ads.admanager.v1.UpdateTeamRequest; +import java.util.ArrayList; + +public class SyncBatchUpdateTeams { + + public static void main(String[] args) throws Exception { + syncBatchUpdateTeams(); + } + + public static void syncBatchUpdateTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + BatchUpdateTeamsRequest request = + BatchUpdateTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchUpdateTeamsResponse response = teamServiceClient.batchUpdateTeams(request); + } + } +} +// [END admanager_v1_generated_TeamService_BatchUpdateTeams_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/SyncBatchUpdateTeamsNetworknameListupdateteamrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/SyncBatchUpdateTeamsNetworknameListupdateteamrequest.java new file mode 100644 index 000000000000..b6658903f1a5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/SyncBatchUpdateTeamsNetworknameListupdateteamrequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchUpdateTeams_NetworknameListupdateteamrequest_sync] +import com.google.ads.admanager.v1.BatchUpdateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.ads.admanager.v1.UpdateTeamRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateTeamsNetworknameListupdateteamrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateTeamsNetworknameListupdateteamrequest(); + } + + public static void syncBatchUpdateTeamsNetworknameListupdateteamrequest() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchUpdateTeamsResponse response = teamServiceClient.batchUpdateTeams(parent, requests); + } + } +} +// [END admanager_v1_generated_TeamService_BatchUpdateTeams_NetworknameListupdateteamrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/SyncBatchUpdateTeamsStringListupdateteamrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/SyncBatchUpdateTeamsStringListupdateteamrequest.java new file mode 100644 index 000000000000..6bf62f019457 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/batchupdateteams/SyncBatchUpdateTeamsStringListupdateteamrequest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_BatchUpdateTeams_StringListupdateteamrequest_sync] +import com.google.ads.admanager.v1.BatchUpdateTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.ads.admanager.v1.UpdateTeamRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateTeamsStringListupdateteamrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateTeamsStringListupdateteamrequest(); + } + + public static void syncBatchUpdateTeamsStringListupdateteamrequest() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchUpdateTeamsResponse response = teamServiceClient.batchUpdateTeams(parent, requests); + } + } +} +// [END admanager_v1_generated_TeamService_BatchUpdateTeams_StringListupdateteamrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..9bb15fa3cf28 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.ads.admanager.v1.TeamServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + TeamServiceSettings teamServiceSettings = + TeamServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + TeamServiceClient teamServiceClient = TeamServiceClient.create(teamServiceSettings); + } +} +// [END admanager_v1_generated_TeamService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..4f6be6d59913 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.ads.admanager.v1.TeamServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + TeamServiceSettings teamServiceSettings = + TeamServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + TeamServiceClient teamServiceClient = TeamServiceClient.create(teamServiceSettings); + } +} +// [END admanager_v1_generated_TeamService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/AsyncCreateTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/AsyncCreateTeam.java new file mode 100644 index 000000000000..5e8a2606a9b1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/AsyncCreateTeam.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_CreateTeam_async] +import com.google.ads.admanager.v1.CreateTeamRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncCreateTeam { + + public static void main(String[] args) throws Exception { + asyncCreateTeam(); + } + + public static void asyncCreateTeam() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + CreateTeamRequest request = + CreateTeamRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setTeam(Team.newBuilder().build()) + .build(); + ApiFuture future = teamServiceClient.createTeamCallable().futureCall(request); + // Do something. + Team response = future.get(); + } + } +} +// [END admanager_v1_generated_TeamService_CreateTeam_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/SyncCreateTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/SyncCreateTeam.java new file mode 100644 index 000000000000..cc0dfadd89e9 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/SyncCreateTeam.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_CreateTeam_sync] +import com.google.ads.admanager.v1.CreateTeamRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; + +public class SyncCreateTeam { + + public static void main(String[] args) throws Exception { + syncCreateTeam(); + } + + public static void syncCreateTeam() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + CreateTeamRequest request = + CreateTeamRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setTeam(Team.newBuilder().build()) + .build(); + Team response = teamServiceClient.createTeam(request); + } + } +} +// [END admanager_v1_generated_TeamService_CreateTeam_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/SyncCreateTeamNetworknameTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/SyncCreateTeamNetworknameTeam.java new file mode 100644 index 000000000000..2e8a4a529bf3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/SyncCreateTeamNetworknameTeam.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_CreateTeam_NetworknameTeam_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; + +public class SyncCreateTeamNetworknameTeam { + + public static void main(String[] args) throws Exception { + syncCreateTeamNetworknameTeam(); + } + + public static void syncCreateTeamNetworknameTeam() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + Team team = Team.newBuilder().build(); + Team response = teamServiceClient.createTeam(parent, team); + } + } +} +// [END admanager_v1_generated_TeamService_CreateTeam_NetworknameTeam_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/SyncCreateTeamStringTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/SyncCreateTeamStringTeam.java new file mode 100644 index 000000000000..cbfa7eff57ed --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/createteam/SyncCreateTeamStringTeam.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_CreateTeam_StringTeam_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; + +public class SyncCreateTeamStringTeam { + + public static void main(String[] args) throws Exception { + syncCreateTeamStringTeam(); + } + + public static void syncCreateTeamStringTeam() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + Team team = Team.newBuilder().build(); + Team response = teamServiceClient.createTeam(parent, team); + } + } +} +// [END admanager_v1_generated_TeamService_CreateTeam_StringTeam_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/AsyncGetTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/AsyncGetTeam.java new file mode 100644 index 000000000000..0360e2f18141 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/AsyncGetTeam.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_GetTeam_async] +import com.google.ads.admanager.v1.GetTeamRequest; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamName; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetTeam { + + public static void main(String[] args) throws Exception { + asyncGetTeam(); + } + + public static void asyncGetTeam() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + GetTeamRequest request = + GetTeamRequest.newBuilder() + .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString()) + .build(); + ApiFuture future = teamServiceClient.getTeamCallable().futureCall(request); + // Do something. + Team response = future.get(); + } + } +} +// [END admanager_v1_generated_TeamService_GetTeam_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/SyncGetTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/SyncGetTeam.java new file mode 100644 index 000000000000..311b6af0c3b3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/SyncGetTeam.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_GetTeam_sync] +import com.google.ads.admanager.v1.GetTeamRequest; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamName; +import com.google.ads.admanager.v1.TeamServiceClient; + +public class SyncGetTeam { + + public static void main(String[] args) throws Exception { + syncGetTeam(); + } + + public static void syncGetTeam() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + GetTeamRequest request = + GetTeamRequest.newBuilder() + .setName(TeamName.of("[NETWORK_CODE]", "[TEAM]").toString()) + .build(); + Team response = teamServiceClient.getTeam(request); + } + } +} +// [END admanager_v1_generated_TeamService_GetTeam_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/SyncGetTeamString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/SyncGetTeamString.java new file mode 100644 index 000000000000..cc5c8ce7e8b5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/SyncGetTeamString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_GetTeam_String_sync] +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamName; +import com.google.ads.admanager.v1.TeamServiceClient; + +public class SyncGetTeamString { + + public static void main(String[] args) throws Exception { + syncGetTeamString(); + } + + public static void syncGetTeamString() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + String name = TeamName.of("[NETWORK_CODE]", "[TEAM]").toString(); + Team response = teamServiceClient.getTeam(name); + } + } +} +// [END admanager_v1_generated_TeamService_GetTeam_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/SyncGetTeamTeamname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/SyncGetTeamTeamname.java new file mode 100644 index 000000000000..defe2635f60e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/getteam/SyncGetTeamTeamname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_GetTeam_Teamname_sync] +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamName; +import com.google.ads.admanager.v1.TeamServiceClient; + +public class SyncGetTeamTeamname { + + public static void main(String[] args) throws Exception { + syncGetTeamTeamname(); + } + + public static void syncGetTeamTeamname() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + TeamName name = TeamName.of("[NETWORK_CODE]", "[TEAM]"); + Team response = teamServiceClient.getTeam(name); + } + } +} +// [END admanager_v1_generated_TeamService_GetTeam_Teamname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/AsyncListTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/AsyncListTeams.java new file mode 100644 index 000000000000..7dd23a1f9b04 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/AsyncListTeams.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_ListTeams_async] +import com.google.ads.admanager.v1.ListTeamsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncListTeams { + + public static void main(String[] args) throws Exception { + asyncListTeams(); + } + + public static void asyncListTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + ListTeamsRequest request = + ListTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = teamServiceClient.listTeamsPagedCallable().futureCall(request); + // Do something. + for (Team element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_TeamService_ListTeams_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/AsyncListTeamsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/AsyncListTeamsPaged.java new file mode 100644 index 000000000000..c180c6172949 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/AsyncListTeamsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_ListTeams_Paged_async] +import com.google.ads.admanager.v1.ListTeamsRequest; +import com.google.ads.admanager.v1.ListTeamsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.common.base.Strings; + +public class AsyncListTeamsPaged { + + public static void main(String[] args) throws Exception { + asyncListTeamsPaged(); + } + + public static void asyncListTeamsPaged() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + ListTeamsRequest request = + ListTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListTeamsResponse response = teamServiceClient.listTeamsCallable().call(request); + for (Team element : response.getTeamsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_TeamService_ListTeams_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/SyncListTeams.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/SyncListTeams.java new file mode 100644 index 000000000000..59fca2916db1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/SyncListTeams.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_ListTeams_sync] +import com.google.ads.admanager.v1.ListTeamsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; + +public class SyncListTeams { + + public static void main(String[] args) throws Exception { + syncListTeams(); + } + + public static void syncListTeams() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + ListTeamsRequest request = + ListTeamsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (Team element : teamServiceClient.listTeams(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_TeamService_ListTeams_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/SyncListTeamsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/SyncListTeamsNetworkname.java new file mode 100644 index 000000000000..f8b5e8f108c8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/SyncListTeamsNetworkname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_ListTeams_Networkname_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; + +public class SyncListTeamsNetworkname { + + public static void main(String[] args) throws Exception { + syncListTeamsNetworkname(); + } + + public static void syncListTeamsNetworkname() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (Team element : teamServiceClient.listTeams(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_TeamService_ListTeams_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/SyncListTeamsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/SyncListTeamsString.java new file mode 100644 index 000000000000..dcd93e427679 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/listteams/SyncListTeamsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_ListTeams_String_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; + +public class SyncListTeamsString { + + public static void main(String[] args) throws Exception { + syncListTeamsString(); + } + + public static void syncListTeamsString() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (Team element : teamServiceClient.listTeams(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_TeamService_ListTeams_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/updateteam/AsyncUpdateTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/updateteam/AsyncUpdateTeam.java new file mode 100644 index 000000000000..f516f8e81988 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/updateteam/AsyncUpdateTeam.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_UpdateTeam_async] +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.ads.admanager.v1.UpdateTeamRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTeam { + + public static void main(String[] args) throws Exception { + asyncUpdateTeam(); + } + + public static void asyncUpdateTeam() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + UpdateTeamRequest request = + UpdateTeamRequest.newBuilder() + .setTeam(Team.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = teamServiceClient.updateTeamCallable().futureCall(request); + // Do something. + Team response = future.get(); + } + } +} +// [END admanager_v1_generated_TeamService_UpdateTeam_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/updateteam/SyncUpdateTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/updateteam/SyncUpdateTeam.java new file mode 100644 index 000000000000..662fc63945ed --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/updateteam/SyncUpdateTeam.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_UpdateTeam_sync] +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.ads.admanager.v1.UpdateTeamRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTeam { + + public static void main(String[] args) throws Exception { + syncUpdateTeam(); + } + + public static void syncUpdateTeam() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + UpdateTeamRequest request = + UpdateTeamRequest.newBuilder() + .setTeam(Team.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Team response = teamServiceClient.updateTeam(request); + } + } +} +// [END admanager_v1_generated_TeamService_UpdateTeam_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/updateteam/SyncUpdateTeamTeamFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/updateteam/SyncUpdateTeamTeamFieldmask.java new file mode 100644 index 000000000000..8d354af8c9ad --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservice/updateteam/SyncUpdateTeamTeamFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamService_UpdateTeam_TeamFieldmask_sync] +import com.google.ads.admanager.v1.Team; +import com.google.ads.admanager.v1.TeamServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTeamTeamFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateTeamTeamFieldmask(); + } + + public static void syncUpdateTeamTeamFieldmask() 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 (TeamServiceClient teamServiceClient = TeamServiceClient.create()) { + Team team = Team.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Team response = teamServiceClient.updateTeam(team, updateMask); + } + } +} +// [END admanager_v1_generated_TeamService_UpdateTeam_TeamFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservicesettings/getteam/SyncGetTeam.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservicesettings/getteam/SyncGetTeam.java new file mode 100644 index 000000000000..756e03bf54b5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/teamservicesettings/getteam/SyncGetTeam.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.admanager.v1.samples; + +// [START admanager_v1_generated_TeamServiceSettings_GetTeam_sync] +import com.google.ads.admanager.v1.TeamServiceSettings; +import java.time.Duration; + +public class SyncGetTeam { + + public static void main(String[] args) throws Exception { + syncGetTeam(); + } + + public static void syncGetTeam() 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 + TeamServiceSettings.Builder teamServiceSettingsBuilder = TeamServiceSettings.newBuilder(); + teamServiceSettingsBuilder + .getTeamSettings() + .setRetrySettings( + teamServiceSettingsBuilder + .getTeamSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + TeamServiceSettings teamServiceSettings = teamServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_TeamServiceSettings_GetTeam_sync] diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index cd17cb00c5a9..949a7fd754bc 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.66.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java index d4e4f16472c4..8f5972d7c3de 100644 --- a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java +++ b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage Security and Privacy Notifications. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/advisorynotifications/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AdvisoryNotificationsServiceGrpc { @@ -495,8 +492,9 @@ protected AdvisoryNotificationsServiceBlockingV2Stub build( * */ public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse listNotifications( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotificationsMethod(), getCallOptions(), request); } @@ -508,8 +506,9 @@ public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse listN * */ public com.google.cloud.advisorynotifications.v1.Notification getNotification( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationMethod(), getCallOptions(), request); } @@ -521,8 +520,9 @@ public com.google.cloud.advisorynotifications.v1.Notification getNotification( * */ public com.google.cloud.advisorynotifications.v1.Settings getSettings( - com.google.cloud.advisorynotifications.v1.GetSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.advisorynotifications.v1.GetSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSettingsMethod(), getCallOptions(), request); } @@ -534,8 +534,9 @@ public com.google.cloud.advisorynotifications.v1.Settings getSettings( * */ public com.google.cloud.advisorynotifications.v1.Settings updateSettings( - com.google.cloud.advisorynotifications.v1.UpdateSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.advisorynotifications.v1.UpdateSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSettingsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 7014517a0412..1e54c8e1dec5 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.78.0 + 3.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.78.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java index b5793b8419ed..0fac8501933d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java @@ -260,6 +260,25 @@ * * * + *

    EmbedContent + *

    Embed content with multimodal inputs. + * + *

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

    + *
      + *
    • embedContent(EmbedContentRequest request) + *

    + *

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

    + *
      + *
    • embedContent(EndpointName model, Content content) + *

    • embedContent(String model, Content content) + *

    + *

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

    + *
      + *
    • embedContentCallable() + *

    + * + * + * *

    ListLocations *

    Lists information about the supported locations for this service. * @@ -1499,6 +1518,143 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ return stub.streamGenerateContentCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Embed content with multimodal inputs. + * + *

    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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    +   *   EndpointName model =
    +   *       EndpointName.ofProjectLocationPublisherModelName(
    +   *           "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]");
    +   *   Content content = Content.newBuilder().build();
    +   *   EmbedContentResponse response = predictionServiceClient.embedContent(model, content);
    +   * }
    +   * }
    + * + * @param model Required. The name of the publisher model requested to serve the prediction. + * Format: `projects/{project}/locations/{location}/publishers/*/models/*` + * @param content Required. Input content to be embedded. Required. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EmbedContentResponse embedContent(EndpointName model, Content content) { + EmbedContentRequest request = + EmbedContentRequest.newBuilder() + .setModel(model == null ? null : model.toString()) + .setContent(content) + .build(); + return embedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Embed content with multimodal inputs. + * + *

    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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    +   *   String model =
    +   *       EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]")
    +   *           .toString();
    +   *   Content content = Content.newBuilder().build();
    +   *   EmbedContentResponse response = predictionServiceClient.embedContent(model, content);
    +   * }
    +   * }
    + * + * @param model Required. The name of the publisher model requested to serve the prediction. + * Format: `projects/{project}/locations/{location}/publishers/*/models/*` + * @param content Required. Input content to be embedded. Required. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EmbedContentResponse embedContent(String model, Content content) { + EmbedContentRequest request = + EmbedContentRequest.newBuilder().setModel(model).setContent(content).build(); + return embedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Embed content with multimodal inputs. + * + *

    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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    +   *   EmbedContentRequest request =
    +   *       EmbedContentRequest.newBuilder()
    +   *           .setModel(
    +   *               EndpointName.ofProjectLocationPublisherModelName(
    +   *                       "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]")
    +   *                   .toString())
    +   *           .setContent(Content.newBuilder().build())
    +   *           .setTitle("title110371416")
    +   *           .setOutputDimensionality(-495931909)
    +   *           .setAutoTruncate(true)
    +   *           .build();
    +   *   EmbedContentResponse response = predictionServiceClient.embedContent(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 EmbedContentResponse embedContent(EmbedContentRequest request) { + return embedContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Embed content with multimodal inputs. + * + *

    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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    +   *   EmbedContentRequest request =
    +   *       EmbedContentRequest.newBuilder()
    +   *           .setModel(
    +   *               EndpointName.ofProjectLocationPublisherModelName(
    +   *                       "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]")
    +   *                   .toString())
    +   *           .setContent(Content.newBuilder().build())
    +   *           .setTitle("title110371416")
    +   *           .setOutputDimensionality(-495931909)
    +   *           .setAutoTruncate(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       predictionServiceClient.embedContentCallable().futureCall(request);
    +   *   // Do something.
    +   *   EmbedContentResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable embedContentCallable() { + return stub.embedContentCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java index ceb154d46cec..962526743de2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java @@ -171,6 +171,11 @@ public UnaryCallSettings explainSettings() { return ((PredictionServiceStubSettings) getStubSettings()).streamGenerateContentSettings(); } + /** Returns the object with the settings used for calls to embedContent. */ + public UnaryCallSettings embedContentSettings() { + return ((PredictionServiceStubSettings) getStubSettings()).embedContentSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -370,6 +375,12 @@ public UnaryCallSettings.Builder explainSetting return getStubSettingsBuilder().streamGenerateContentSettings(); } + /** Returns the builder for the settings used for calls to embedContent. */ + public UnaryCallSettings.Builder + embedContentSettings() { + return getStubSettingsBuilder().embedContentSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json index 437871aba593..61effbb3c642 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json @@ -1315,6 +1315,9 @@ "DirectRawPredict": { "methods": ["directRawPredict", "directRawPredictCallable"] }, + "EmbedContent": { + "methods": ["embedContent", "embedContent", "embedContent", "embedContentCallable"] + }, "Explain": { "methods": ["explain", "explain", "explain", "explainCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java index 79593a1cc5dd..cfb3ed487cda 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java @@ -32,6 +32,8 @@ import com.google.cloud.aiplatform.v1.DirectPredictResponse; import com.google.cloud.aiplatform.v1.DirectRawPredictRequest; import com.google.cloud.aiplatform.v1.DirectRawPredictResponse; +import com.google.cloud.aiplatform.v1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1.EmbedContentResponse; import com.google.cloud.aiplatform.v1.ExplainRequest; import com.google.cloud.aiplatform.v1.ExplainResponse; import com.google.cloud.aiplatform.v1.GenerateContentRequest; @@ -223,6 +225,17 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + embedContentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.PredictionService/EmbedContent") + .setRequestMarshaller(ProtoUtils.marshaller(EmbedContentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(EmbedContentResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -295,6 +308,7 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub { generateContentCallable; private final ServerStreamingCallable streamGenerateContentCallable; + private final UnaryCallable embedContentCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -463,6 +477,16 @@ protected GrpcPredictionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings embedContentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(embedContentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("model", String.valueOf(request.getModel())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -564,6 +588,9 @@ protected GrpcPredictionServiceStub( streamGenerateContentTransportSettings, settings.streamGenerateContentSettings(), clientContext); + this.embedContentCallable = + callableFactory.createUnaryCallable( + embedContentTransportSettings, settings.embedContentSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -665,6 +692,11 @@ public UnaryCallable generateCo return streamGenerateContentCallable; } + @Override + public UnaryCallable embedContentCallable() { + return embedContentCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java index 6bcf1ad74237..15398db05d97 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java @@ -27,6 +27,8 @@ import com.google.cloud.aiplatform.v1.DirectPredictResponse; import com.google.cloud.aiplatform.v1.DirectRawPredictRequest; import com.google.cloud.aiplatform.v1.DirectRawPredictResponse; +import com.google.cloud.aiplatform.v1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1.EmbedContentResponse; import com.google.cloud.aiplatform.v1.ExplainRequest; import com.google.cloud.aiplatform.v1.ExplainResponse; import com.google.cloud.aiplatform.v1.GenerateContentRequest; @@ -122,6 +124,10 @@ public UnaryCallable generateCo throw new UnsupportedOperationException("Not implemented: streamGenerateContentCallable()"); } + public UnaryCallable embedContentCallable() { + throw new UnsupportedOperationException("Not implemented: embedContentCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java index b2ea10fcc742..5302070e37e2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java @@ -47,6 +47,8 @@ import com.google.cloud.aiplatform.v1.DirectPredictResponse; import com.google.cloud.aiplatform.v1.DirectRawPredictRequest; import com.google.cloud.aiplatform.v1.DirectRawPredictResponse; +import com.google.cloud.aiplatform.v1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1.EmbedContentResponse; import com.google.cloud.aiplatform.v1.ExplainRequest; import com.google.cloud.aiplatform.v1.ExplainResponse; import com.google.cloud.aiplatform.v1.GenerateContentRequest; @@ -163,6 +165,7 @@ public class PredictionServiceStubSettings extends StubSettings streamGenerateContentSettings; + private final UnaryCallSettings embedContentSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -296,6 +299,11 @@ public UnaryCallSettings explainSettings() { return streamGenerateContentSettings; } + /** Returns the object with the settings used for calls to embedContent. */ + public UnaryCallSettings embedContentSettings() { + return embedContentSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -417,6 +425,7 @@ protected PredictionServiceStubSettings(Builder settingsBuilder) throws IOExcept explainSettings = settingsBuilder.explainSettings().build(); generateContentSettings = settingsBuilder.generateContentSettings().build(); streamGenerateContentSettings = settingsBuilder.streamGenerateContentSettings().build(); + embedContentSettings = settingsBuilder.embedContentSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -455,6 +464,8 @@ public static class Builder extends StubSettings.Builder streamGenerateContentSettings; + private final UnaryCallSettings.Builder + embedContentSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -503,6 +514,7 @@ protected Builder(ClientContext clientContext) { explainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); generateContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamGenerateContentSettings = ServerStreamingCallSettings.newBuilder(); + embedContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -517,6 +529,7 @@ protected Builder(ClientContext clientContext) { directRawPredictSettings, explainSettings, generateContentSettings, + embedContentSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -541,6 +554,7 @@ protected Builder(PredictionServiceStubSettings settings) { explainSettings = settings.explainSettings.toBuilder(); generateContentSettings = settings.generateContentSettings.toBuilder(); streamGenerateContentSettings = settings.streamGenerateContentSettings.toBuilder(); + embedContentSettings = settings.embedContentSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -555,6 +569,7 @@ protected Builder(PredictionServiceStubSettings settings) { directRawPredictSettings, explainSettings, generateContentSettings, + embedContentSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -620,6 +635,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .embedContentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -739,6 +759,12 @@ public UnaryCallSettings.Builder explainSetting return streamGenerateContentSettings; } + /** Returns the builder for the settings used for calls to embedContent. */ + public UnaryCallSettings.Builder + embedContentSettings() { + return embedContentSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java index 91557486a630..5632c5edd744 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java @@ -290,6 +290,25 @@ * * * + *

    EmbedContent + *

    Embed content with multimodal inputs. + * + *

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

    + *
      + *
    • embedContent(EmbedContentRequest request) + *

    + *

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

    + *
      + *
    • embedContent(EndpointName model, Content content) + *

    • embedContent(String model, Content content) + *

    + *

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

    + *
      + *
    • embedContentCallable() + *

    + * + * + * *

    ListLocations *

    Lists information about the supported locations for this service. * @@ -1715,6 +1734,143 @@ public final ServerStreamingCallable chatCompl return stub.chatCompletionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Embed content with multimodal inputs. + * + *

    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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    +   *   EndpointName model =
    +   *       EndpointName.ofProjectLocationPublisherModelName(
    +   *           "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]");
    +   *   Content content = Content.newBuilder().build();
    +   *   EmbedContentResponse response = predictionServiceClient.embedContent(model, content);
    +   * }
    +   * }
    + * + * @param model Required. The name of the publisher model requested to serve the prediction. + * Format: `projects/{project}/locations/{location}/publishers/*/models/*` + * @param content Required. Input content to be embedded. Required. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EmbedContentResponse embedContent(EndpointName model, Content content) { + EmbedContentRequest request = + EmbedContentRequest.newBuilder() + .setModel(model == null ? null : model.toString()) + .setContent(content) + .build(); + return embedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Embed content with multimodal inputs. + * + *

    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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    +   *   String model =
    +   *       EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]")
    +   *           .toString();
    +   *   Content content = Content.newBuilder().build();
    +   *   EmbedContentResponse response = predictionServiceClient.embedContent(model, content);
    +   * }
    +   * }
    + * + * @param model Required. The name of the publisher model requested to serve the prediction. + * Format: `projects/{project}/locations/{location}/publishers/*/models/*` + * @param content Required. Input content to be embedded. Required. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EmbedContentResponse embedContent(String model, Content content) { + EmbedContentRequest request = + EmbedContentRequest.newBuilder().setModel(model).setContent(content).build(); + return embedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Embed content with multimodal inputs. + * + *

    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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    +   *   EmbedContentRequest request =
    +   *       EmbedContentRequest.newBuilder()
    +   *           .setModel(
    +   *               EndpointName.ofProjectLocationPublisherModelName(
    +   *                       "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]")
    +   *                   .toString())
    +   *           .setContent(Content.newBuilder().build())
    +   *           .setTitle("title110371416")
    +   *           .setOutputDimensionality(-495931909)
    +   *           .setAutoTruncate(true)
    +   *           .build();
    +   *   EmbedContentResponse response = predictionServiceClient.embedContent(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 EmbedContentResponse embedContent(EmbedContentRequest request) { + return embedContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Embed content with multimodal inputs. + * + *

    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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    +   *   EmbedContentRequest request =
    +   *       EmbedContentRequest.newBuilder()
    +   *           .setModel(
    +   *               EndpointName.ofProjectLocationPublisherModelName(
    +   *                       "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]")
    +   *                   .toString())
    +   *           .setContent(Content.newBuilder().build())
    +   *           .setTitle("title110371416")
    +   *           .setOutputDimensionality(-495931909)
    +   *           .setAutoTruncate(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       predictionServiceClient.embedContentCallable().futureCall(request);
    +   *   // Do something.
    +   *   EmbedContentResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable embedContentCallable() { + return stub.embedContentCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java index f2c70ca83dfc..465ecb7d9232 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java @@ -183,6 +183,11 @@ public ServerStreamingCallSettings chatComplet return ((PredictionServiceStubSettings) getStubSettings()).chatCompletionsSettings(); } + /** Returns the object with the settings used for calls to embedContent. */ + public UnaryCallSettings embedContentSettings() { + return ((PredictionServiceStubSettings) getStubSettings()).embedContentSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -394,6 +399,12 @@ public UnaryCallSettings.Builder explainSetting return getStubSettingsBuilder().chatCompletionsSettings(); } + /** Returns the builder for the settings used for calls to embedContent. */ + public UnaryCallSettings.Builder + embedContentSettings() { + return getStubSettingsBuilder().embedContentSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceClient.java index 8b0080469c21..c1682a70bc3c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceClient.java @@ -1166,6 +1166,7 @@ public final ListEventsPagedResponse listEvents(String parent) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * for (SessionEvent element : sessionServiceClient.listEvents(request).iterateAll()) { * // doThingsWith(element); @@ -1201,6 +1202,7 @@ public final ListEventsPagedResponse listEvents(ListEventsRequest request) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * ApiFuture future = * sessionServiceClient.listEventsPagedCallable().futureCall(request); @@ -1236,6 +1238,7 @@ public final UnaryCallable listEvent * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { * ListEventsResponse response = sessionServiceClient.listEventsCallable().call(request); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index 377b36374352..1cf116fdf25a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -1576,6 +1576,9 @@ "DirectRawPredict": { "methods": ["directRawPredict", "directRawPredictCallable"] }, + "EmbedContent": { + "methods": ["embedContent", "embedContent", "embedContent", "embedContentCallable"] + }, "Explain": { "methods": ["explain", "explain", "explain", "explainCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java index 53bec01a756d..a0e6831ecf4d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java @@ -36,6 +36,8 @@ import com.google.cloud.aiplatform.v1beta1.DirectPredictResponse; import com.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; import com.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; +import com.google.cloud.aiplatform.v1beta1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1beta1.EmbedContentResponse; import com.google.cloud.aiplatform.v1beta1.ExplainRequest; import com.google.cloud.aiplatform.v1beta1.ExplainResponse; import com.google.cloud.aiplatform.v1beta1.GenerateContentRequest; @@ -257,6 +259,17 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + embedContentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.PredictionService/EmbedContent") + .setRequestMarshaller(ProtoUtils.marshaller(EmbedContentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(EmbedContentResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -331,6 +344,7 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub { private final ServerStreamingCallable streamGenerateContentCallable; private final ServerStreamingCallable chatCompletionsCallable; + private final UnaryCallable embedContentCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -519,6 +533,16 @@ protected GrpcPredictionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings embedContentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(embedContentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("model", String.valueOf(request.getModel())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -626,6 +650,9 @@ protected GrpcPredictionServiceStub( this.chatCompletionsCallable = callableFactory.createServerStreamingCallable( chatCompletionsTransportSettings, settings.chatCompletionsSettings(), clientContext); + this.embedContentCallable = + callableFactory.createUnaryCallable( + embedContentTransportSettings, settings.embedContentSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -737,6 +764,11 @@ public ServerStreamingCallable chatCompletions return chatCompletionsCallable; } + @Override + public UnaryCallable embedContentCallable() { + return embedContentCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java index 00eda07aef4c..489ef29b29b9 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java @@ -31,6 +31,8 @@ import com.google.cloud.aiplatform.v1beta1.DirectPredictResponse; import com.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; import com.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; +import com.google.cloud.aiplatform.v1beta1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1beta1.EmbedContentResponse; import com.google.cloud.aiplatform.v1beta1.ExplainRequest; import com.google.cloud.aiplatform.v1beta1.ExplainResponse; import com.google.cloud.aiplatform.v1beta1.GenerateContentRequest; @@ -135,6 +137,10 @@ public ServerStreamingCallable chatCompletions throw new UnsupportedOperationException("Not implemented: chatCompletionsCallable()"); } + public UnaryCallable embedContentCallable() { + throw new UnsupportedOperationException("Not implemented: embedContentCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java index c8efad7e512a..bbd6e5a76508 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java @@ -51,6 +51,8 @@ import com.google.cloud.aiplatform.v1beta1.DirectPredictResponse; import com.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest; import com.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse; +import com.google.cloud.aiplatform.v1beta1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1beta1.EmbedContentResponse; import com.google.cloud.aiplatform.v1beta1.ExplainRequest; import com.google.cloud.aiplatform.v1beta1.ExplainResponse; import com.google.cloud.aiplatform.v1beta1.GenerateContentRequest; @@ -172,6 +174,7 @@ public class PredictionServiceStubSettings extends StubSettings chatCompletionsSettings; + private final UnaryCallSettings embedContentSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -315,6 +318,11 @@ public ServerStreamingCallSettings chatComplet return chatCompletionsSettings; } + /** Returns the object with the settings used for calls to embedContent. */ + public UnaryCallSettings embedContentSettings() { + return embedContentSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -438,6 +446,7 @@ protected PredictionServiceStubSettings(Builder settingsBuilder) throws IOExcept generateContentSettings = settingsBuilder.generateContentSettings().build(); streamGenerateContentSettings = settingsBuilder.streamGenerateContentSettings().build(); chatCompletionsSettings = settingsBuilder.chatCompletionsSettings().build(); + embedContentSettings = settingsBuilder.embedContentSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -480,6 +489,8 @@ public static class Builder extends StubSettings.Builder chatCompletionsSettings; + private final UnaryCallSettings.Builder + embedContentSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -540,6 +551,7 @@ protected Builder(ClientContext clientContext) { generateContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamGenerateContentSettings = ServerStreamingCallSettings.newBuilder(); chatCompletionsSettings = ServerStreamingCallSettings.newBuilder(); + embedContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -555,6 +567,7 @@ protected Builder(ClientContext clientContext) { explainSettings, countTokensSettings, generateContentSettings, + embedContentSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -581,6 +594,7 @@ protected Builder(PredictionServiceStubSettings settings) { generateContentSettings = settings.generateContentSettings.toBuilder(); streamGenerateContentSettings = settings.streamGenerateContentSettings.toBuilder(); chatCompletionsSettings = settings.chatCompletionsSettings.toBuilder(); + embedContentSettings = settings.embedContentSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -596,6 +610,7 @@ protected Builder(PredictionServiceStubSettings settings) { explainSettings, countTokensSettings, generateContentSettings, + embedContentSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -671,6 +686,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .embedContentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -802,6 +822,12 @@ public UnaryCallSettings.Builder explainSetting return chatCompletionsSettings; } + /** Returns the builder for the settings used for calls to embedContent. */ + public UnaryCallSettings.Builder + embedContentSettings() { + return embedContentSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index 2d18f628ed03..ffada1adbf99 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -5264,6 +5264,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.EmbedContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.EmbedContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.EmbedContentRequest$EmbeddingTaskType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.EmbedContentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.EmbedContentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.EmbedContentResponse$Embedding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.EmbedContentResponse$Embedding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.EncryptionSpec", "queryAllDeclaredConstructors": true, @@ -21833,6 +21896,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.UsageMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UsageMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UsageMetadata$TrafficType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.UserActionReference", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index 7d71b832c53f..e0b20f00e330 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -6479,6 +6479,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EmbedContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EmbedContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EmbedContentRequest$EmbeddingTaskType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EmbedContentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EmbedContentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EmbedContentResponse$Embedding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.EmbedContentResponse$Embedding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.EncryptionSpec", "queryAllDeclaredConstructors": true, @@ -27665,6 +27728,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UsageMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UsageMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UsageMetadata$TrafficType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.UserActionReference", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java index 7b274640b546..291a321ea946 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java @@ -398,4 +398,25 @@ public void streamGenerateContent( Exception.class.getName()))); } } + + @Override + public void embedContent( + EmbedContentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof EmbedContentResponse) { + requests.add(request); + responseObserver.onNext(((EmbedContentResponse) 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 EmbedContent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + EmbedContentResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java index 981093fe10d0..680f8580e61c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java @@ -992,6 +992,96 @@ public void streamGenerateContentExceptionTest() throws Exception { } } + @Test + public void embedContentTest() throws Exception { + EmbedContentResponse expectedResponse = + EmbedContentResponse.newBuilder() + .setEmbedding(EmbedContentResponse.Embedding.newBuilder().build()) + .setUsageMetadata(UsageMetadata.newBuilder().build()) + .setTruncated(true) + .build(); + mockPredictionService.addResponse(expectedResponse); + + EndpointName model = + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]"); + Content content = Content.newBuilder().build(); + + EmbedContentResponse actualResponse = client.embedContent(model, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPredictionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EmbedContentRequest actualRequest = ((EmbedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(model.toString(), actualRequest.getModel()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void embedContentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPredictionService.addException(exception); + + try { + EndpointName model = + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]"); + Content content = Content.newBuilder().build(); + client.embedContent(model, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void embedContentTest2() throws Exception { + EmbedContentResponse expectedResponse = + EmbedContentResponse.newBuilder() + .setEmbedding(EmbedContentResponse.Embedding.newBuilder().build()) + .setUsageMetadata(UsageMetadata.newBuilder().build()) + .setTruncated(true) + .build(); + mockPredictionService.addResponse(expectedResponse); + + String model = "model104069929"; + Content content = Content.newBuilder().build(); + + EmbedContentResponse actualResponse = client.embedContent(model, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPredictionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EmbedContentRequest actualRequest = ((EmbedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void embedContentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPredictionService.addException(exception); + + try { + String model = "model104069929"; + Content content = Content.newBuilder().build(); + client.embedContent(model, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java index c2a1dd391ba4..028a42c4aa01 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java @@ -440,4 +440,25 @@ public void chatCompletions( Exception.class.getName()))); } } + + @Override + public void embedContent( + EmbedContentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof EmbedContentResponse) { + requests.add(request); + responseObserver.onNext(((EmbedContentResponse) 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 EmbedContent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + EmbedContentResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java index 7456860cabc1..b9a1fb2e53a6 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java @@ -1140,6 +1140,96 @@ public void chatCompletionsExceptionTest() throws Exception { } } + @Test + public void embedContentTest() throws Exception { + EmbedContentResponse expectedResponse = + EmbedContentResponse.newBuilder() + .setEmbedding(EmbedContentResponse.Embedding.newBuilder().build()) + .setUsageMetadata(UsageMetadata.newBuilder().build()) + .setTruncated(true) + .build(); + mockPredictionService.addResponse(expectedResponse); + + EndpointName model = + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]"); + Content content = Content.newBuilder().build(); + + EmbedContentResponse actualResponse = client.embedContent(model, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPredictionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EmbedContentRequest actualRequest = ((EmbedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(model.toString(), actualRequest.getModel()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void embedContentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPredictionService.addException(exception); + + try { + EndpointName model = + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]"); + Content content = Content.newBuilder().build(); + client.embedContent(model, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void embedContentTest2() throws Exception { + EmbedContentResponse expectedResponse = + EmbedContentResponse.newBuilder() + .setEmbedding(EmbedContentResponse.Embedding.newBuilder().build()) + .setUsageMetadata(UsageMetadata.newBuilder().build()) + .setTruncated(true) + .build(); + mockPredictionService.addResponse(expectedResponse); + + String model = "model104069929"; + Content content = Content.newBuilder().build(); + + EmbedContentResponse actualResponse = client.embedContent(model, content); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPredictionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EmbedContentRequest actualRequest = ((EmbedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void embedContentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPredictionService.addException(exception); + + try { + String model = "model104069929"; + Content content = Content.newBuilder().build(); + client.embedContent(model, content); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceGrpc.java index 183fef34d376..845783199f07 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceGrpc.java @@ -24,9 +24,6 @@ * Service for generating and preparing datasets for Gen AI evaluation. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/data_foundry_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataFoundryServiceGrpc { @@ -246,8 +243,9 @@ protected DataFoundryServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.GenerateSyntheticDataResponse generateSyntheticData( - com.google.cloud.aiplatform.v1.GenerateSyntheticDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GenerateSyntheticDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateSyntheticDataMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java index 458ca61cc8ae..533420d73a5e 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java @@ -24,9 +24,6 @@ * The service that manages Vertex AI Dataset and its child resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/dataset_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DatasetServiceGrpc { @@ -1619,8 +1616,9 @@ protected DatasetServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createDataset( - com.google.cloud.aiplatform.v1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } @@ -1632,8 +1630,8 @@ public com.google.longrunning.Operation createDataset( * */ public com.google.cloud.aiplatform.v1.Dataset getDataset( - com.google.cloud.aiplatform.v1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetDatasetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } @@ -1645,8 +1643,9 @@ public com.google.cloud.aiplatform.v1.Dataset getDataset( * */ public com.google.cloud.aiplatform.v1.Dataset updateDataset( - com.google.cloud.aiplatform.v1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } @@ -1658,8 +1657,8 @@ public com.google.cloud.aiplatform.v1.Dataset updateDataset( * */ public com.google.cloud.aiplatform.v1.ListDatasetsResponse listDatasets( - com.google.cloud.aiplatform.v1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListDatasetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetsMethod(), getCallOptions(), request); } @@ -1671,8 +1670,9 @@ public com.google.cloud.aiplatform.v1.ListDatasetsResponse listDatasets( * */ public com.google.longrunning.Operation deleteDataset( - com.google.cloud.aiplatform.v1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } @@ -1684,8 +1684,8 @@ public com.google.longrunning.Operation deleteDataset( * */ public com.google.longrunning.Operation importData( - com.google.cloud.aiplatform.v1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ImportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } @@ -1697,8 +1697,8 @@ public com.google.longrunning.Operation importData( * */ public com.google.longrunning.Operation exportData( - com.google.cloud.aiplatform.v1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ExportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } @@ -1710,8 +1710,9 @@ public com.google.longrunning.Operation exportData( * */ public com.google.longrunning.Operation createDatasetVersion( - com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetVersionMethod(), getCallOptions(), request); } @@ -1723,8 +1724,9 @@ public com.google.longrunning.Operation createDatasetVersion( * */ public com.google.cloud.aiplatform.v1.DatasetVersion updateDatasetVersion( - com.google.cloud.aiplatform.v1.UpdateDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetVersionMethod(), getCallOptions(), request); } @@ -1736,8 +1738,9 @@ public com.google.cloud.aiplatform.v1.DatasetVersion updateDatasetVersion( * */ public com.google.longrunning.Operation deleteDatasetVersion( - com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetVersionMethod(), getCallOptions(), request); } @@ -1749,8 +1752,9 @@ public com.google.longrunning.Operation deleteDatasetVersion( * */ public com.google.cloud.aiplatform.v1.DatasetVersion getDatasetVersion( - com.google.cloud.aiplatform.v1.GetDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetVersionMethod(), getCallOptions(), request); } @@ -1762,8 +1766,9 @@ public com.google.cloud.aiplatform.v1.DatasetVersion getDatasetVersion( * */ public com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse listDatasetVersions( - com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetVersionsMethod(), getCallOptions(), request); } @@ -1775,8 +1780,9 @@ public com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse listDatasetVer * */ public com.google.longrunning.Operation restoreDatasetVersion( - com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreDatasetVersionMethod(), getCallOptions(), request); } @@ -1788,8 +1794,9 @@ public com.google.longrunning.Operation restoreDatasetVersion( * */ public com.google.cloud.aiplatform.v1.ListDataItemsResponse listDataItems( - com.google.cloud.aiplatform.v1.ListDataItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListDataItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataItemsMethod(), getCallOptions(), request); } @@ -1801,8 +1808,9 @@ public com.google.cloud.aiplatform.v1.ListDataItemsResponse listDataItems( * */ public com.google.cloud.aiplatform.v1.SearchDataItemsResponse searchDataItems( - com.google.cloud.aiplatform.v1.SearchDataItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchDataItemsMethod(), getCallOptions(), request); } @@ -1814,8 +1822,9 @@ public com.google.cloud.aiplatform.v1.SearchDataItemsResponse searchDataItems( * */ public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse listSavedQueries( - com.google.cloud.aiplatform.v1.ListSavedQueriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSavedQueriesMethod(), getCallOptions(), request); } @@ -1827,8 +1836,9 @@ public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse listSavedQueries( * */ public com.google.longrunning.Operation deleteSavedQuery( - com.google.cloud.aiplatform.v1.DeleteSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteSavedQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSavedQueryMethod(), getCallOptions(), request); } @@ -1840,8 +1850,9 @@ public com.google.longrunning.Operation deleteSavedQuery( * */ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec( - com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); } @@ -1855,8 +1866,9 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec( * */ public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations( - com.google.cloud.aiplatform.v1.ListAnnotationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListAnnotationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnnotationsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceGrpc.java index 6cc4b6cb4b7e..75f49a5dc1a3 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceGrpc.java @@ -24,9 +24,6 @@ * A service that manages the DeploymentResourcePool resource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/deployment_resource_pool_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeploymentResourcePoolServiceGrpc { @@ -669,8 +666,9 @@ protected DeploymentResourcePoolServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createDeploymentResourcePool( - com.google.cloud.aiplatform.v1.CreateDeploymentResourcePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateDeploymentResourcePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeploymentResourcePoolMethod(), getCallOptions(), request); } @@ -682,8 +680,9 @@ public com.google.longrunning.Operation createDeploymentResourcePool( * */ public com.google.cloud.aiplatform.v1.DeploymentResourcePool getDeploymentResourcePool( - com.google.cloud.aiplatform.v1.GetDeploymentResourcePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetDeploymentResourcePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeploymentResourcePoolMethod(), getCallOptions(), request); } @@ -696,8 +695,9 @@ public com.google.cloud.aiplatform.v1.DeploymentResourcePool getDeploymentResour */ public com.google.cloud.aiplatform.v1.ListDeploymentResourcePoolsResponse listDeploymentResourcePools( - com.google.cloud.aiplatform.v1.ListDeploymentResourcePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListDeploymentResourcePoolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentResourcePoolsMethod(), getCallOptions(), request); } @@ -709,8 +709,9 @@ public com.google.cloud.aiplatform.v1.DeploymentResourcePool getDeploymentResour * */ public com.google.longrunning.Operation updateDeploymentResourcePool( - com.google.cloud.aiplatform.v1.UpdateDeploymentResourcePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateDeploymentResourcePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeploymentResourcePoolMethod(), getCallOptions(), request); } @@ -722,8 +723,9 @@ public com.google.longrunning.Operation updateDeploymentResourcePool( * */ public com.google.longrunning.Operation deleteDeploymentResourcePool( - com.google.cloud.aiplatform.v1.DeleteDeploymentResourcePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteDeploymentResourcePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeploymentResourcePoolMethod(), getCallOptions(), request); } @@ -735,8 +737,9 @@ public com.google.longrunning.Operation deleteDeploymentResourcePool( * */ public com.google.cloud.aiplatform.v1.QueryDeployedModelsResponse queryDeployedModels( - com.google.cloud.aiplatform.v1.QueryDeployedModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.QueryDeployedModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryDeployedModelsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java index d7f9193fee69..01c1d8260014 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's Endpoints. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/endpoint_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EndpointServiceGrpc { @@ -852,8 +849,9 @@ protected EndpointServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createEndpoint( - com.google.cloud.aiplatform.v1.CreateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEndpointMethod(), getCallOptions(), request); } @@ -865,8 +863,8 @@ public com.google.longrunning.Operation createEndpoint( * */ public com.google.cloud.aiplatform.v1.Endpoint getEndpoint( - com.google.cloud.aiplatform.v1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetEndpointRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEndpointMethod(), getCallOptions(), request); } @@ -878,8 +876,9 @@ public com.google.cloud.aiplatform.v1.Endpoint getEndpoint( * */ public com.google.cloud.aiplatform.v1.ListEndpointsResponse listEndpoints( - com.google.cloud.aiplatform.v1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEndpointsMethod(), getCallOptions(), request); } @@ -891,8 +890,9 @@ public com.google.cloud.aiplatform.v1.ListEndpointsResponse listEndpoints( * */ public com.google.cloud.aiplatform.v1.Endpoint updateEndpoint( - com.google.cloud.aiplatform.v1.UpdateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } @@ -904,8 +904,9 @@ public com.google.cloud.aiplatform.v1.Endpoint updateEndpoint( * */ public com.google.longrunning.Operation updateEndpointLongRunning( - com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEndpointLongRunningMethod(), getCallOptions(), request); } @@ -917,8 +918,9 @@ public com.google.longrunning.Operation updateEndpointLongRunning( * */ public com.google.longrunning.Operation deleteEndpoint( - com.google.cloud.aiplatform.v1.DeleteEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); } @@ -930,8 +932,8 @@ public com.google.longrunning.Operation deleteEndpoint( * */ public com.google.longrunning.Operation deployModel( - com.google.cloud.aiplatform.v1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeployModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployModelMethod(), getCallOptions(), request); } @@ -944,8 +946,9 @@ public com.google.longrunning.Operation deployModel( * */ public com.google.longrunning.Operation undeployModel( - com.google.cloud.aiplatform.v1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UndeployModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployModelMethod(), getCallOptions(), request); } @@ -960,8 +963,9 @@ public com.google.longrunning.Operation undeployModel( * */ public com.google.longrunning.Operation mutateDeployedModel( - com.google.cloud.aiplatform.v1.MutateDeployedModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.MutateDeployedModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMutateDeployedModelMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceGrpc.java index 1c5b939f8191..1cb8eba6d644 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceGrpc.java @@ -24,9 +24,6 @@ * Vertex AI Online Evaluation Service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/evaluation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EvaluationServiceGrpc { @@ -244,8 +241,9 @@ protected EvaluationServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.EvaluateInstancesResponse evaluateInstances( - com.google.cloud.aiplatform.v1.EvaluateInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.EvaluateInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEvaluateInstancesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceGrpc.java index b3ce5c4a792b..abf040e611b7 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceGrpc.java @@ -25,9 +25,6 @@ * FeatureOnlineStore. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/feature_online_store_admin_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeatureOnlineStoreAdminServiceGrpc { @@ -1236,8 +1233,9 @@ protected FeatureOnlineStoreAdminServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createFeatureOnlineStore( - com.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureOnlineStoreMethod(), getCallOptions(), request); } @@ -1249,8 +1247,9 @@ public com.google.longrunning.Operation createFeatureOnlineStore( * */ public com.google.cloud.aiplatform.v1.FeatureOnlineStore getFeatureOnlineStore( - com.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureOnlineStoreMethod(), getCallOptions(), request); } @@ -1262,8 +1261,9 @@ public com.google.cloud.aiplatform.v1.FeatureOnlineStore getFeatureOnlineStore( * */ public com.google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse listFeatureOnlineStores( - com.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureOnlineStoresMethod(), getCallOptions(), request); } @@ -1275,8 +1275,9 @@ public com.google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse listFeatur * */ public com.google.longrunning.Operation updateFeatureOnlineStore( - com.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureOnlineStoreMethod(), getCallOptions(), request); } @@ -1289,8 +1290,9 @@ public com.google.longrunning.Operation updateFeatureOnlineStore( * */ public com.google.longrunning.Operation deleteFeatureOnlineStore( - com.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureOnlineStoreMethod(), getCallOptions(), request); } @@ -1302,8 +1304,9 @@ public com.google.longrunning.Operation deleteFeatureOnlineStore( * */ public com.google.longrunning.Operation createFeatureView( - com.google.cloud.aiplatform.v1.CreateFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureViewMethod(), getCallOptions(), request); } @@ -1315,8 +1318,9 @@ public com.google.longrunning.Operation createFeatureView( * */ public com.google.cloud.aiplatform.v1.FeatureView getFeatureView( - com.google.cloud.aiplatform.v1.GetFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureViewMethod(), getCallOptions(), request); } @@ -1328,8 +1332,9 @@ public com.google.cloud.aiplatform.v1.FeatureView getFeatureView( * */ public com.google.cloud.aiplatform.v1.ListFeatureViewsResponse listFeatureViews( - com.google.cloud.aiplatform.v1.ListFeatureViewsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListFeatureViewsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureViewsMethod(), getCallOptions(), request); } @@ -1341,8 +1346,9 @@ public com.google.cloud.aiplatform.v1.ListFeatureViewsResponse listFeatureViews( * */ public com.google.longrunning.Operation updateFeatureView( - com.google.cloud.aiplatform.v1.UpdateFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureViewMethod(), getCallOptions(), request); } @@ -1354,8 +1360,9 @@ public com.google.longrunning.Operation updateFeatureView( * */ public com.google.longrunning.Operation deleteFeatureView( - com.google.cloud.aiplatform.v1.DeleteFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureViewMethod(), getCallOptions(), request); } @@ -1367,8 +1374,9 @@ public com.google.longrunning.Operation deleteFeatureView( * */ public com.google.cloud.aiplatform.v1.SyncFeatureViewResponse syncFeatureView( - com.google.cloud.aiplatform.v1.SyncFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.SyncFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSyncFeatureViewMethod(), getCallOptions(), request); } @@ -1380,8 +1388,9 @@ public com.google.cloud.aiplatform.v1.SyncFeatureViewResponse syncFeatureView( * */ public com.google.cloud.aiplatform.v1.FeatureViewSync getFeatureViewSync( - com.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureViewSyncMethod(), getCallOptions(), request); } @@ -1393,8 +1402,9 @@ public com.google.cloud.aiplatform.v1.FeatureViewSync getFeatureViewSync( * */ public com.google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse listFeatureViewSyncs( - com.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureViewSyncsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceGrpc.java index b40230d55ea5..226afce0d93c 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceGrpc.java @@ -24,9 +24,6 @@ * A service for fetching feature values from the online store. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/feature_online_store_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeatureOnlineStoreServiceGrpc { @@ -515,8 +512,9 @@ protected FeatureOnlineStoreServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.FetchFeatureValuesResponse fetchFeatureValues( - com.google.cloud.aiplatform.v1.FetchFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.FetchFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchFeatureValuesMethod(), getCallOptions(), request); } @@ -530,8 +528,9 @@ public com.google.cloud.aiplatform.v1.FetchFeatureValuesResponse fetchFeatureVal * */ public com.google.cloud.aiplatform.v1.SearchNearestEntitiesResponse searchNearestEntities( - com.google.cloud.aiplatform.v1.SearchNearestEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.SearchNearestEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchNearestEntitiesMethod(), getCallOptions(), request); } @@ -562,8 +561,9 @@ public com.google.cloud.aiplatform.v1.SearchNearestEntitiesResponse searchNeares * */ public com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse generateFetchAccessToken( - com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateFetchAccessTokenMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceGrpc.java index 3da1aedc2b1e..b5ee22e5cefa 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceGrpc.java @@ -25,9 +25,6 @@ * FeatureRegistry. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/feature_registry_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeatureRegistryServiceGrpc { @@ -1009,8 +1006,9 @@ protected FeatureRegistryServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createFeatureGroup( - com.google.cloud.aiplatform.v1.CreateFeatureGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateFeatureGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureGroupMethod(), getCallOptions(), request); } @@ -1022,8 +1020,9 @@ public com.google.longrunning.Operation createFeatureGroup( * */ public com.google.cloud.aiplatform.v1.FeatureGroup getFeatureGroup( - com.google.cloud.aiplatform.v1.GetFeatureGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetFeatureGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureGroupMethod(), getCallOptions(), request); } @@ -1035,8 +1034,9 @@ public com.google.cloud.aiplatform.v1.FeatureGroup getFeatureGroup( * */ public com.google.cloud.aiplatform.v1.ListFeatureGroupsResponse listFeatureGroups( - com.google.cloud.aiplatform.v1.ListFeatureGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListFeatureGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureGroupsMethod(), getCallOptions(), request); } @@ -1048,8 +1048,9 @@ public com.google.cloud.aiplatform.v1.ListFeatureGroupsResponse listFeatureGroup * */ public com.google.longrunning.Operation updateFeatureGroup( - com.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureGroupMethod(), getCallOptions(), request); } @@ -1061,8 +1062,9 @@ public com.google.longrunning.Operation updateFeatureGroup( * */ public com.google.longrunning.Operation deleteFeatureGroup( - com.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureGroupMethod(), getCallOptions(), request); } @@ -1074,8 +1076,9 @@ public com.google.longrunning.Operation deleteFeatureGroup( * */ public com.google.longrunning.Operation createFeature( - com.google.cloud.aiplatform.v1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureMethod(), getCallOptions(), request); } @@ -1087,8 +1090,9 @@ public com.google.longrunning.Operation createFeature( * */ public com.google.longrunning.Operation batchCreateFeatures( - com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateFeaturesMethod(), getCallOptions(), request); } @@ -1100,8 +1104,8 @@ public com.google.longrunning.Operation batchCreateFeatures( * */ public com.google.cloud.aiplatform.v1.Feature getFeature( - com.google.cloud.aiplatform.v1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureMethod(), getCallOptions(), request); } @@ -1113,8 +1117,8 @@ public com.google.cloud.aiplatform.v1.Feature getFeature( * */ public com.google.cloud.aiplatform.v1.ListFeaturesResponse listFeatures( - com.google.cloud.aiplatform.v1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListFeaturesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeaturesMethod(), getCallOptions(), request); } @@ -1126,8 +1130,9 @@ public com.google.cloud.aiplatform.v1.ListFeaturesResponse listFeatures( * */ public com.google.longrunning.Operation updateFeature( - com.google.cloud.aiplatform.v1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); } @@ -1139,8 +1144,9 @@ public com.google.longrunning.Operation updateFeature( * */ public com.google.longrunning.Operation deleteFeature( - com.google.cloud.aiplatform.v1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceGrpc.java index 2918ffeb7bd9..dd587c015506 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceGrpc.java @@ -24,9 +24,6 @@ * A service for serving online feature values. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/featurestore_online_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeaturestoreOnlineServingServiceGrpc { @@ -439,8 +436,9 @@ protected FeaturestoreOnlineServingServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse readFeatureValues( - com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadFeatureValuesMethod(), getCallOptions(), request); } @@ -473,8 +471,9 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse readFeatureValue * */ public com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse writeFeatureValues( - com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteFeatureValuesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceGrpc.java index 2d9cd681f8be..e5e9c9dc032a 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceGrpc.java @@ -24,9 +24,6 @@ * The service that handles CRUD and List for resources for Featurestore. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/featurestore_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeaturestoreServiceGrpc { @@ -1839,8 +1836,9 @@ protected FeaturestoreServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createFeaturestore( - com.google.cloud.aiplatform.v1.CreateFeaturestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateFeaturestoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeaturestoreMethod(), getCallOptions(), request); } @@ -1852,8 +1850,9 @@ public com.google.longrunning.Operation createFeaturestore( * */ public com.google.cloud.aiplatform.v1.Featurestore getFeaturestore( - com.google.cloud.aiplatform.v1.GetFeaturestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetFeaturestoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeaturestoreMethod(), getCallOptions(), request); } @@ -1865,8 +1864,9 @@ public com.google.cloud.aiplatform.v1.Featurestore getFeaturestore( * */ public com.google.cloud.aiplatform.v1.ListFeaturestoresResponse listFeaturestores( - com.google.cloud.aiplatform.v1.ListFeaturestoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListFeaturestoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeaturestoresMethod(), getCallOptions(), request); } @@ -1878,8 +1878,9 @@ public com.google.cloud.aiplatform.v1.ListFeaturestoresResponse listFeaturestore * */ public com.google.longrunning.Operation updateFeaturestore( - com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeaturestoreMethod(), getCallOptions(), request); } @@ -1892,8 +1893,9 @@ public com.google.longrunning.Operation updateFeaturestore( * */ public com.google.longrunning.Operation deleteFeaturestore( - com.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeaturestoreMethod(), getCallOptions(), request); } @@ -1905,8 +1907,9 @@ public com.google.longrunning.Operation deleteFeaturestore( * */ public com.google.longrunning.Operation createEntityType( - com.google.cloud.aiplatform.v1.CreateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); } @@ -1918,8 +1921,9 @@ public com.google.longrunning.Operation createEntityType( * */ public com.google.cloud.aiplatform.v1.EntityType getEntityType( - com.google.cloud.aiplatform.v1.GetEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); } @@ -1931,8 +1935,9 @@ public com.google.cloud.aiplatform.v1.EntityType getEntityType( * */ public com.google.cloud.aiplatform.v1.ListEntityTypesResponse listEntityTypes( - com.google.cloud.aiplatform.v1.ListEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntityTypesMethod(), getCallOptions(), request); } @@ -1944,8 +1949,9 @@ public com.google.cloud.aiplatform.v1.ListEntityTypesResponse listEntityTypes( * */ public com.google.cloud.aiplatform.v1.EntityType updateEntityType( - com.google.cloud.aiplatform.v1.UpdateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); } @@ -1958,8 +1964,9 @@ public com.google.cloud.aiplatform.v1.EntityType updateEntityType( * */ public com.google.longrunning.Operation deleteEntityType( - com.google.cloud.aiplatform.v1.DeleteEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); } @@ -1971,8 +1978,9 @@ public com.google.longrunning.Operation deleteEntityType( * */ public com.google.longrunning.Operation createFeature( - com.google.cloud.aiplatform.v1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureMethod(), getCallOptions(), request); } @@ -1984,8 +1992,9 @@ public com.google.longrunning.Operation createFeature( * */ public com.google.longrunning.Operation batchCreateFeatures( - com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateFeaturesMethod(), getCallOptions(), request); } @@ -1997,8 +2006,8 @@ public com.google.longrunning.Operation batchCreateFeatures( * */ public com.google.cloud.aiplatform.v1.Feature getFeature( - com.google.cloud.aiplatform.v1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureMethod(), getCallOptions(), request); } @@ -2010,8 +2019,8 @@ public com.google.cloud.aiplatform.v1.Feature getFeature( * */ public com.google.cloud.aiplatform.v1.ListFeaturesResponse listFeatures( - com.google.cloud.aiplatform.v1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListFeaturesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeaturesMethod(), getCallOptions(), request); } @@ -2023,8 +2032,9 @@ public com.google.cloud.aiplatform.v1.ListFeaturesResponse listFeatures( * */ public com.google.cloud.aiplatform.v1.Feature updateFeature( - com.google.cloud.aiplatform.v1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); } @@ -2036,8 +2046,9 @@ public com.google.cloud.aiplatform.v1.Feature updateFeature( * */ public com.google.longrunning.Operation deleteFeature( - com.google.cloud.aiplatform.v1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); } @@ -2064,8 +2075,9 @@ public com.google.longrunning.Operation deleteFeature( * */ public com.google.longrunning.Operation importFeatureValues( - com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportFeatureValuesMethod(), getCallOptions(), request); } @@ -2081,8 +2093,9 @@ public com.google.longrunning.Operation importFeatureValues( * */ public com.google.longrunning.Operation batchReadFeatureValues( - com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchReadFeatureValuesMethod(), getCallOptions(), request); } @@ -2094,8 +2107,9 @@ public com.google.longrunning.Operation batchReadFeatureValues( * */ public com.google.longrunning.Operation exportFeatureValues( - com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportFeatureValuesMethod(), getCallOptions(), request); } @@ -2114,8 +2128,9 @@ public com.google.longrunning.Operation exportFeatureValues( * */ public com.google.longrunning.Operation deleteFeatureValues( - com.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureValuesMethod(), getCallOptions(), request); } @@ -2127,8 +2142,9 @@ public com.google.longrunning.Operation deleteFeatureValues( * */ public com.google.cloud.aiplatform.v1.SearchFeaturesResponse searchFeatures( - com.google.cloud.aiplatform.v1.SearchFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.SearchFeaturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchFeaturesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceGrpc.java index 241780ccb498..9f257dce27ba 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing Vertex AI's CachedContent resource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GenAiCacheServiceGrpc { @@ -563,8 +560,9 @@ protected GenAiCacheServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.CachedContent createCachedContent( - com.google.cloud.aiplatform.v1.CreateCachedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateCachedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCachedContentMethod(), getCallOptions(), request); } @@ -576,8 +574,9 @@ public com.google.cloud.aiplatform.v1.CachedContent createCachedContent( * */ public com.google.cloud.aiplatform.v1.CachedContent getCachedContent( - com.google.cloud.aiplatform.v1.GetCachedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetCachedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCachedContentMethod(), getCallOptions(), request); } @@ -589,8 +588,9 @@ public com.google.cloud.aiplatform.v1.CachedContent getCachedContent( * */ public com.google.cloud.aiplatform.v1.CachedContent updateCachedContent( - com.google.cloud.aiplatform.v1.UpdateCachedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCachedContentMethod(), getCallOptions(), request); } @@ -602,8 +602,9 @@ public com.google.cloud.aiplatform.v1.CachedContent updateCachedContent( * */ public com.google.protobuf.Empty deleteCachedContent( - com.google.cloud.aiplatform.v1.DeleteCachedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCachedContentMethod(), getCallOptions(), request); } @@ -615,8 +616,9 @@ public com.google.protobuf.Empty deleteCachedContent( * */ public com.google.cloud.aiplatform.v1.ListCachedContentsResponse listCachedContents( - com.google.cloud.aiplatform.v1.ListCachedContentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListCachedContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCachedContentsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceGrpc.java index 21f018d7e48f..639283ad2a10 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceGrpc.java @@ -24,9 +24,6 @@ * A service for creating and managing GenAI Tuning Jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/genai_tuning_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GenAiTuningServiceGrpc { @@ -568,8 +565,9 @@ protected GenAiTuningServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.TuningJob createTuningJob( - com.google.cloud.aiplatform.v1.CreateTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTuningJobMethod(), getCallOptions(), request); } @@ -581,8 +579,8 @@ public com.google.cloud.aiplatform.v1.TuningJob createTuningJob( * */ public com.google.cloud.aiplatform.v1.TuningJob getTuningJob( - com.google.cloud.aiplatform.v1.GetTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetTuningJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTuningJobMethod(), getCallOptions(), request); } @@ -594,8 +592,9 @@ public com.google.cloud.aiplatform.v1.TuningJob getTuningJob( * */ public com.google.cloud.aiplatform.v1.ListTuningJobsResponse listTuningJobs( - com.google.cloud.aiplatform.v1.ListTuningJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListTuningJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTuningJobsMethod(), getCallOptions(), request); } @@ -618,8 +617,9 @@ public com.google.cloud.aiplatform.v1.ListTuningJobsResponse listTuningJobs( * */ public com.google.protobuf.Empty cancelTuningJob( - com.google.cloud.aiplatform.v1.CancelTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CancelTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelTuningJobMethod(), getCallOptions(), request); } @@ -631,8 +631,9 @@ public com.google.protobuf.Empty cancelTuningJob( * */ public com.google.longrunning.Operation rebaseTunedModel( - com.google.cloud.aiplatform.v1.RebaseTunedModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.RebaseTunedModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRebaseTunedModelMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceGrpc.java index 875a96fcae13..e6d5a450bb44 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's IndexEndpoints. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/index_endpoint_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IndexEndpointServiceGrpc { @@ -794,8 +791,9 @@ protected IndexEndpointServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createIndexEndpoint( - com.google.cloud.aiplatform.v1.CreateIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIndexEndpointMethod(), getCallOptions(), request); } @@ -807,8 +805,9 @@ public com.google.longrunning.Operation createIndexEndpoint( * */ public com.google.cloud.aiplatform.v1.IndexEndpoint getIndexEndpoint( - com.google.cloud.aiplatform.v1.GetIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIndexEndpointMethod(), getCallOptions(), request); } @@ -820,8 +819,9 @@ public com.google.cloud.aiplatform.v1.IndexEndpoint getIndexEndpoint( * */ public com.google.cloud.aiplatform.v1.ListIndexEndpointsResponse listIndexEndpoints( - com.google.cloud.aiplatform.v1.ListIndexEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListIndexEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIndexEndpointsMethod(), getCallOptions(), request); } @@ -833,8 +833,9 @@ public com.google.cloud.aiplatform.v1.ListIndexEndpointsResponse listIndexEndpoi * */ public com.google.cloud.aiplatform.v1.IndexEndpoint updateIndexEndpoint( - com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIndexEndpointMethod(), getCallOptions(), request); } @@ -846,8 +847,9 @@ public com.google.cloud.aiplatform.v1.IndexEndpoint updateIndexEndpoint( * */ public com.google.longrunning.Operation deleteIndexEndpoint( - com.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIndexEndpointMethod(), getCallOptions(), request); } @@ -861,8 +863,8 @@ public com.google.longrunning.Operation deleteIndexEndpoint( * */ public com.google.longrunning.Operation deployIndex( - com.google.cloud.aiplatform.v1.DeployIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeployIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployIndexMethod(), getCallOptions(), request); } @@ -875,8 +877,9 @@ public com.google.longrunning.Operation deployIndex( * */ public com.google.longrunning.Operation undeployIndex( - com.google.cloud.aiplatform.v1.UndeployIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UndeployIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployIndexMethod(), getCallOptions(), request); } @@ -888,8 +891,9 @@ public com.google.longrunning.Operation undeployIndex( * */ public com.google.longrunning.Operation mutateDeployedIndex( - com.google.cloud.aiplatform.v1.MutateDeployedIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.MutateDeployedIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMutateDeployedIndexMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceGrpc.java index c3dc2cca0915..9ce4cac93eec 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceGrpc.java @@ -24,9 +24,6 @@ * A service for creating and managing Vertex AI's Index resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/index_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IndexServiceGrpc { @@ -687,8 +684,8 @@ protected IndexServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createIndex( - com.google.cloud.aiplatform.v1.CreateIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIndexMethod(), getCallOptions(), request); } @@ -700,8 +697,8 @@ public com.google.longrunning.Operation createIndex( * */ public com.google.cloud.aiplatform.v1.Index getIndex( - com.google.cloud.aiplatform.v1.GetIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIndexMethod(), getCallOptions(), request); } @@ -713,8 +710,8 @@ public com.google.cloud.aiplatform.v1.Index getIndex( * */ public com.google.cloud.aiplatform.v1.ListIndexesResponse listIndexes( - com.google.cloud.aiplatform.v1.ListIndexesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListIndexesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIndexesMethod(), getCallOptions(), request); } @@ -726,8 +723,8 @@ public com.google.cloud.aiplatform.v1.ListIndexesResponse listIndexes( * */ public com.google.longrunning.Operation updateIndex( - com.google.cloud.aiplatform.v1.UpdateIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIndexMethod(), getCallOptions(), request); } @@ -742,8 +739,8 @@ public com.google.longrunning.Operation updateIndex( * */ public com.google.longrunning.Operation deleteIndex( - com.google.cloud.aiplatform.v1.DeleteIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIndexMethod(), getCallOptions(), request); } @@ -755,8 +752,9 @@ public com.google.longrunning.Operation deleteIndex( * */ public com.google.cloud.aiplatform.v1.UpsertDatapointsResponse upsertDatapoints( - com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpsertDatapointsMethod(), getCallOptions(), request); } @@ -768,8 +766,9 @@ public com.google.cloud.aiplatform.v1.UpsertDatapointsResponse upsertDatapoints( * */ public com.google.cloud.aiplatform.v1.RemoveDatapointsResponse removeDatapoints( - com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveDatapointsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceGrpc.java index ce597f2d8e8c..c3d94f005650 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceGrpc.java @@ -24,9 +24,6 @@ * A service for creating and managing Vertex AI's jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/job_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class JobServiceGrpc { @@ -3061,8 +3058,9 @@ protected JobServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.CustomJob createCustomJob( - com.google.cloud.aiplatform.v1.CreateCustomJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateCustomJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomJobMethod(), getCallOptions(), request); } @@ -3074,8 +3072,8 @@ public com.google.cloud.aiplatform.v1.CustomJob createCustomJob( * */ public com.google.cloud.aiplatform.v1.CustomJob getCustomJob( - com.google.cloud.aiplatform.v1.GetCustomJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetCustomJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomJobMethod(), getCallOptions(), request); } @@ -3087,8 +3085,9 @@ public com.google.cloud.aiplatform.v1.CustomJob getCustomJob( * */ public com.google.cloud.aiplatform.v1.ListCustomJobsResponse listCustomJobs( - com.google.cloud.aiplatform.v1.ListCustomJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListCustomJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomJobsMethod(), getCallOptions(), request); } @@ -3100,8 +3099,9 @@ public com.google.cloud.aiplatform.v1.ListCustomJobsResponse listCustomJobs( * */ public com.google.longrunning.Operation deleteCustomJob( - com.google.cloud.aiplatform.v1.DeleteCustomJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteCustomJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomJobMethod(), getCallOptions(), request); } @@ -3125,8 +3125,9 @@ public com.google.longrunning.Operation deleteCustomJob( * */ public com.google.protobuf.Empty cancelCustomJob( - com.google.cloud.aiplatform.v1.CancelCustomJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CancelCustomJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelCustomJobMethod(), getCallOptions(), request); } @@ -3138,8 +3139,9 @@ public com.google.protobuf.Empty cancelCustomJob( * */ public com.google.cloud.aiplatform.v1.DataLabelingJob createDataLabelingJob( - com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataLabelingJobMethod(), getCallOptions(), request); } @@ -3151,8 +3153,9 @@ public com.google.cloud.aiplatform.v1.DataLabelingJob createDataLabelingJob( * */ public com.google.cloud.aiplatform.v1.DataLabelingJob getDataLabelingJob( - com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataLabelingJobMethod(), getCallOptions(), request); } @@ -3164,8 +3167,9 @@ public com.google.cloud.aiplatform.v1.DataLabelingJob getDataLabelingJob( * */ public com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse listDataLabelingJobs( - com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataLabelingJobsMethod(), getCallOptions(), request); } @@ -3177,8 +3181,9 @@ public com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse listDataLabel * */ public com.google.longrunning.Operation deleteDataLabelingJob( - com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataLabelingJobMethod(), getCallOptions(), request); } @@ -3190,8 +3195,9 @@ public com.google.longrunning.Operation deleteDataLabelingJob( * */ public com.google.protobuf.Empty cancelDataLabelingJob( - com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelDataLabelingJobMethod(), getCallOptions(), request); } @@ -3203,8 +3209,9 @@ public com.google.protobuf.Empty cancelDataLabelingJob( * */ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob createHyperparameterTuningJob( - com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -3216,8 +3223,9 @@ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob createHyperparamet * */ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getHyperparameterTuningJob( - com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -3230,8 +3238,9 @@ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getHyperparameterT */ public com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse listHyperparameterTuningJobs( - com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHyperparameterTuningJobsMethod(), getCallOptions(), request); } @@ -3243,8 +3252,9 @@ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getHyperparameterT * */ public com.google.longrunning.Operation deleteHyperparameterTuningJob( - com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -3269,8 +3279,9 @@ public com.google.longrunning.Operation deleteHyperparameterTuningJob( * */ public com.google.protobuf.Empty cancelHyperparameterTuningJob( - com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -3282,8 +3293,8 @@ public com.google.protobuf.Empty cancelHyperparameterTuningJob( * */ public com.google.cloud.aiplatform.v1.NasJob createNasJob( - com.google.cloud.aiplatform.v1.CreateNasJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateNasJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNasJobMethod(), getCallOptions(), request); } @@ -3295,8 +3306,8 @@ public com.google.cloud.aiplatform.v1.NasJob createNasJob( * */ public com.google.cloud.aiplatform.v1.NasJob getNasJob( - com.google.cloud.aiplatform.v1.GetNasJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetNasJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNasJobMethod(), getCallOptions(), request); } @@ -3308,8 +3319,8 @@ public com.google.cloud.aiplatform.v1.NasJob getNasJob( * */ public com.google.cloud.aiplatform.v1.ListNasJobsResponse listNasJobs( - com.google.cloud.aiplatform.v1.ListNasJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListNasJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNasJobsMethod(), getCallOptions(), request); } @@ -3321,8 +3332,8 @@ public com.google.cloud.aiplatform.v1.ListNasJobsResponse listNasJobs( * */ public com.google.longrunning.Operation deleteNasJob( - com.google.cloud.aiplatform.v1.DeleteNasJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteNasJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNasJobMethod(), getCallOptions(), request); } @@ -3346,8 +3357,8 @@ public com.google.longrunning.Operation deleteNasJob( * */ public com.google.protobuf.Empty cancelNasJob( - com.google.cloud.aiplatform.v1.CancelNasJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CancelNasJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelNasJobMethod(), getCallOptions(), request); } @@ -3359,8 +3370,9 @@ public com.google.protobuf.Empty cancelNasJob( * */ public com.google.cloud.aiplatform.v1.NasTrialDetail getNasTrialDetail( - com.google.cloud.aiplatform.v1.GetNasTrialDetailRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetNasTrialDetailRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNasTrialDetailMethod(), getCallOptions(), request); } @@ -3372,8 +3384,9 @@ public com.google.cloud.aiplatform.v1.NasTrialDetail getNasTrialDetail( * */ public com.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse listNasTrialDetails( - com.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNasTrialDetailsMethod(), getCallOptions(), request); } @@ -3386,8 +3399,9 @@ public com.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse listNasTrialDe * */ public com.google.cloud.aiplatform.v1.BatchPredictionJob createBatchPredictionJob( - com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBatchPredictionJobMethod(), getCallOptions(), request); } @@ -3399,8 +3413,9 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob createBatchPredictionJo * */ public com.google.cloud.aiplatform.v1.BatchPredictionJob getBatchPredictionJob( - com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBatchPredictionJobMethod(), getCallOptions(), request); } @@ -3412,8 +3427,9 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob getBatchPredictionJob( * */ public com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse listBatchPredictionJobs( - com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBatchPredictionJobsMethod(), getCallOptions(), request); } @@ -3426,8 +3442,9 @@ public com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse listBatchP * */ public com.google.longrunning.Operation deleteBatchPredictionJob( - com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBatchPredictionJobMethod(), getCallOptions(), request); } @@ -3449,8 +3466,9 @@ public com.google.longrunning.Operation deleteBatchPredictionJob( * */ public com.google.protobuf.Empty cancelBatchPredictionJob( - com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelBatchPredictionJobMethod(), getCallOptions(), request); } @@ -3464,8 +3482,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( */ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3479,8 +3498,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( public com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse searchModelDeploymentMonitoringStatsAnomalies( com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchModelDeploymentMonitoringStatsAnomaliesMethod(), getCallOptions(), @@ -3496,8 +3516,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( */ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3510,8 +3531,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( */ public com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse listModelDeploymentMonitoringJobs( - com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelDeploymentMonitoringJobsMethod(), getCallOptions(), request); } @@ -3523,8 +3545,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( * */ public com.google.longrunning.Operation updateModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3536,8 +3559,9 @@ public com.google.longrunning.Operation updateModelDeploymentMonitoringJob( * */ public com.google.longrunning.Operation deleteModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3552,8 +3576,9 @@ public com.google.longrunning.Operation deleteModelDeploymentMonitoringJob( * */ public com.google.protobuf.Empty pauseModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3567,8 +3592,9 @@ public com.google.protobuf.Empty pauseModelDeploymentMonitoringJob( * */ public com.google.protobuf.Empty resumeModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceGrpc.java index 618397551011..58969f1a2bff 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceGrpc.java @@ -24,9 +24,6 @@ * Service for LLM related utility functions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/llm_utility_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LlmUtilityServiceGrpc { @@ -322,8 +319,8 @@ protected LlmUtilityServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.CountTokensResponse countTokens( - com.google.cloud.aiplatform.v1.CountTokensRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CountTokensRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCountTokensMethod(), getCallOptions(), request); } @@ -335,8 +332,9 @@ public com.google.cloud.aiplatform.v1.CountTokensResponse countTokens( * */ public com.google.cloud.aiplatform.v1.ComputeTokensResponse computeTokens( - com.google.cloud.aiplatform.v1.ComputeTokensRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ComputeTokensRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeTokensMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceGrpc.java index 4ade0b8edecd..e47f3d9d1712 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceGrpc.java @@ -25,9 +25,6 @@ * search at scale. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/match_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MatchServiceGrpc { @@ -328,8 +325,9 @@ protected MatchServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.FindNeighborsResponse findNeighbors( - com.google.cloud.aiplatform.v1.FindNeighborsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.FindNeighborsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFindNeighborsMethod(), getCallOptions(), request); } @@ -342,8 +340,9 @@ public com.google.cloud.aiplatform.v1.FindNeighborsResponse findNeighbors( * */ public com.google.cloud.aiplatform.v1.ReadIndexDatapointsResponse readIndexDatapoints( - com.google.cloud.aiplatform.v1.ReadIndexDatapointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ReadIndexDatapointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadIndexDatapointsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceGrpc.java index fe59582cd52c..1ed8e872e0e3 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceGrpc.java @@ -24,9 +24,6 @@ * Service for reading and writing metadata entries. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/metadata_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MetadataServiceGrpc { @@ -2683,8 +2680,9 @@ protected MetadataServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createMetadataStore( - com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMetadataStoreMethod(), getCallOptions(), request); } @@ -2696,8 +2694,9 @@ public com.google.longrunning.Operation createMetadataStore( * */ public com.google.cloud.aiplatform.v1.MetadataStore getMetadataStore( - com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetadataStoreMethod(), getCallOptions(), request); } @@ -2709,8 +2708,9 @@ public com.google.cloud.aiplatform.v1.MetadataStore getMetadataStore( * */ public com.google.cloud.aiplatform.v1.ListMetadataStoresResponse listMetadataStores( - com.google.cloud.aiplatform.v1.ListMetadataStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListMetadataStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetadataStoresMethod(), getCallOptions(), request); } @@ -2723,8 +2723,9 @@ public com.google.cloud.aiplatform.v1.ListMetadataStoresResponse listMetadataSto * */ public com.google.longrunning.Operation deleteMetadataStore( - com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMetadataStoreMethod(), getCallOptions(), request); } @@ -2736,8 +2737,9 @@ public com.google.longrunning.Operation deleteMetadataStore( * */ public com.google.cloud.aiplatform.v1.Artifact createArtifact( - com.google.cloud.aiplatform.v1.CreateArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateArtifactMethod(), getCallOptions(), request); } @@ -2749,8 +2751,8 @@ public com.google.cloud.aiplatform.v1.Artifact createArtifact( * */ public com.google.cloud.aiplatform.v1.Artifact getArtifact( - com.google.cloud.aiplatform.v1.GetArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetArtifactRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetArtifactMethod(), getCallOptions(), request); } @@ -2762,8 +2764,9 @@ public com.google.cloud.aiplatform.v1.Artifact getArtifact( * */ public com.google.cloud.aiplatform.v1.ListArtifactsResponse listArtifacts( - com.google.cloud.aiplatform.v1.ListArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListArtifactsMethod(), getCallOptions(), request); } @@ -2775,8 +2778,9 @@ public com.google.cloud.aiplatform.v1.ListArtifactsResponse listArtifacts( * */ public com.google.cloud.aiplatform.v1.Artifact updateArtifact( - com.google.cloud.aiplatform.v1.UpdateArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateArtifactMethod(), getCallOptions(), request); } @@ -2788,8 +2792,9 @@ public com.google.cloud.aiplatform.v1.Artifact updateArtifact( * */ public com.google.longrunning.Operation deleteArtifact( - com.google.cloud.aiplatform.v1.DeleteArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteArtifactMethod(), getCallOptions(), request); } @@ -2801,8 +2806,9 @@ public com.google.longrunning.Operation deleteArtifact( * */ public com.google.longrunning.Operation purgeArtifacts( - com.google.cloud.aiplatform.v1.PurgeArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.PurgeArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeArtifactsMethod(), getCallOptions(), request); } @@ -2814,8 +2820,9 @@ public com.google.longrunning.Operation purgeArtifacts( * */ public com.google.cloud.aiplatform.v1.Context createContext( - com.google.cloud.aiplatform.v1.CreateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateContextMethod(), getCallOptions(), request); } @@ -2827,8 +2834,8 @@ public com.google.cloud.aiplatform.v1.Context createContext( * */ public com.google.cloud.aiplatform.v1.Context getContext( - com.google.cloud.aiplatform.v1.GetContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetContextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetContextMethod(), getCallOptions(), request); } @@ -2840,8 +2847,8 @@ public com.google.cloud.aiplatform.v1.Context getContext( * */ public com.google.cloud.aiplatform.v1.ListContextsResponse listContexts( - com.google.cloud.aiplatform.v1.ListContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListContextsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListContextsMethod(), getCallOptions(), request); } @@ -2853,8 +2860,9 @@ public com.google.cloud.aiplatform.v1.ListContextsResponse listContexts( * */ public com.google.cloud.aiplatform.v1.Context updateContext( - com.google.cloud.aiplatform.v1.UpdateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateContextMethod(), getCallOptions(), request); } @@ -2866,8 +2874,9 @@ public com.google.cloud.aiplatform.v1.Context updateContext( * */ public com.google.longrunning.Operation deleteContext( - com.google.cloud.aiplatform.v1.DeleteContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteContextMethod(), getCallOptions(), request); } @@ -2879,8 +2888,9 @@ public com.google.longrunning.Operation deleteContext( * */ public com.google.longrunning.Operation purgeContexts( - com.google.cloud.aiplatform.v1.PurgeContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.PurgeContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeContextsMethod(), getCallOptions(), request); } @@ -2895,8 +2905,9 @@ public com.google.longrunning.Operation purgeContexts( */ public com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExecutions( - com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddContextArtifactsAndExecutionsMethod(), getCallOptions(), request); } @@ -2912,8 +2923,9 @@ public com.google.longrunning.Operation purgeContexts( * */ public com.google.cloud.aiplatform.v1.AddContextChildrenResponse addContextChildren( - com.google.cloud.aiplatform.v1.AddContextChildrenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.AddContextChildrenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddContextChildrenMethod(), getCallOptions(), request); } @@ -2927,8 +2939,9 @@ public com.google.cloud.aiplatform.v1.AddContextChildrenResponse addContextChild * */ public com.google.cloud.aiplatform.v1.RemoveContextChildrenResponse removeContextChildren( - com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveContextChildrenMethod(), getCallOptions(), request); } @@ -2941,8 +2954,9 @@ public com.google.cloud.aiplatform.v1.RemoveContextChildrenResponse removeContex * */ public com.google.cloud.aiplatform.v1.LineageSubgraph queryContextLineageSubgraph( - com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryContextLineageSubgraphMethod(), getCallOptions(), request); } @@ -2954,8 +2968,9 @@ public com.google.cloud.aiplatform.v1.LineageSubgraph queryContextLineageSubgrap * */ public com.google.cloud.aiplatform.v1.Execution createExecution( - com.google.cloud.aiplatform.v1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExecutionMethod(), getCallOptions(), request); } @@ -2967,8 +2982,8 @@ public com.google.cloud.aiplatform.v1.Execution createExecution( * */ public com.google.cloud.aiplatform.v1.Execution getExecution( - com.google.cloud.aiplatform.v1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetExecutionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExecutionMethod(), getCallOptions(), request); } @@ -2980,8 +2995,9 @@ public com.google.cloud.aiplatform.v1.Execution getExecution( * */ public com.google.cloud.aiplatform.v1.ListExecutionsResponse listExecutions( - com.google.cloud.aiplatform.v1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExecutionsMethod(), getCallOptions(), request); } @@ -2993,8 +3009,9 @@ public com.google.cloud.aiplatform.v1.ListExecutionsResponse listExecutions( * */ public com.google.cloud.aiplatform.v1.Execution updateExecution( - com.google.cloud.aiplatform.v1.UpdateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExecutionMethod(), getCallOptions(), request); } @@ -3006,8 +3023,9 @@ public com.google.cloud.aiplatform.v1.Execution updateExecution( * */ public com.google.longrunning.Operation deleteExecution( - com.google.cloud.aiplatform.v1.DeleteExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); } @@ -3019,8 +3037,9 @@ public com.google.longrunning.Operation deleteExecution( * */ public com.google.longrunning.Operation purgeExecutions( - com.google.cloud.aiplatform.v1.PurgeExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.PurgeExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeExecutionsMethod(), getCallOptions(), request); } @@ -3035,8 +3054,9 @@ public com.google.longrunning.Operation purgeExecutions( * */ public com.google.cloud.aiplatform.v1.AddExecutionEventsResponse addExecutionEvents( - com.google.cloud.aiplatform.v1.AddExecutionEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.AddExecutionEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddExecutionEventsMethod(), getCallOptions(), request); } @@ -3050,8 +3070,9 @@ public com.google.cloud.aiplatform.v1.AddExecutionEventsResponse addExecutionEve * */ public com.google.cloud.aiplatform.v1.LineageSubgraph queryExecutionInputsAndOutputs( - com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryExecutionInputsAndOutputsMethod(), getCallOptions(), request); } @@ -3063,8 +3084,9 @@ public com.google.cloud.aiplatform.v1.LineageSubgraph queryExecutionInputsAndOut * */ public com.google.cloud.aiplatform.v1.MetadataSchema createMetadataSchema( - com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMetadataSchemaMethod(), getCallOptions(), request); } @@ -3076,8 +3098,9 @@ public com.google.cloud.aiplatform.v1.MetadataSchema createMetadataSchema( * */ public com.google.cloud.aiplatform.v1.MetadataSchema getMetadataSchema( - com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetadataSchemaMethod(), getCallOptions(), request); } @@ -3089,8 +3112,9 @@ public com.google.cloud.aiplatform.v1.MetadataSchema getMetadataSchema( * */ public com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse listMetadataSchemas( - com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetadataSchemasMethod(), getCallOptions(), request); } @@ -3103,8 +3127,9 @@ public com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse listMetadataSc * */ public com.google.cloud.aiplatform.v1.LineageSubgraph queryArtifactLineageSubgraph( - com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryArtifactLineageSubgraphMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceGrpc.java index 0fe8b7595761..3563afedad8c 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceGrpc.java @@ -25,9 +25,6 @@ * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/migration_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MigrationServiceGrpc { @@ -341,8 +338,9 @@ protected MigrationServiceBlockingV2Stub build( */ public com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse searchMigratableResources( - com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMigratableResourcesMethod(), getCallOptions(), request); } @@ -355,8 +353,9 @@ protected MigrationServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation batchMigrateResources( - com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchMigrateResourcesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceGrpc.java index ab836916b75c..9aa40ba3e6f9 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceGrpc.java @@ -24,9 +24,6 @@ * The interface of Model Garden Service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/model_garden_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelGardenServiceGrpc { @@ -311,8 +308,9 @@ protected ModelGardenServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.PublisherModel getPublisherModel( - com.google.cloud.aiplatform.v1.GetPublisherModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetPublisherModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPublisherModelMethod(), getCallOptions(), request); } @@ -324,8 +322,8 @@ public com.google.cloud.aiplatform.v1.PublisherModel getPublisherModel( * */ public com.google.longrunning.Operation deploy( - com.google.cloud.aiplatform.v1.DeployRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeployRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java index 3be3139e1253..41ae23a79a00 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's machine learning Models. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/model_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelServiceGrpc { @@ -1677,8 +1674,8 @@ protected ModelServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation uploadModel( - com.google.cloud.aiplatform.v1.UploadModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UploadModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUploadModelMethod(), getCallOptions(), request); } @@ -1690,8 +1687,8 @@ public com.google.longrunning.Operation uploadModel( * */ public com.google.cloud.aiplatform.v1.Model getModel( - com.google.cloud.aiplatform.v1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } @@ -1703,8 +1700,8 @@ public com.google.cloud.aiplatform.v1.Model getModel( * */ public com.google.cloud.aiplatform.v1.ListModelsResponse listModels( - com.google.cloud.aiplatform.v1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListModelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } @@ -1716,8 +1713,9 @@ public com.google.cloud.aiplatform.v1.ListModelsResponse listModels( * */ public com.google.cloud.aiplatform.v1.ListModelVersionsResponse listModelVersions( - com.google.cloud.aiplatform.v1.ListModelVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListModelVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelVersionsMethod(), getCallOptions(), request); } @@ -1730,8 +1728,9 @@ public com.google.cloud.aiplatform.v1.ListModelVersionsResponse listModelVersion */ public com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse listModelVersionCheckpoints( - com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelVersionCheckpointsMethod(), getCallOptions(), request); } @@ -1743,8 +1742,8 @@ public com.google.cloud.aiplatform.v1.ListModelVersionsResponse listModelVersion * */ public com.google.cloud.aiplatform.v1.Model updateModel( - com.google.cloud.aiplatform.v1.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelMethod(), getCallOptions(), request); } @@ -1756,8 +1755,9 @@ public com.google.cloud.aiplatform.v1.Model updateModel( * */ public com.google.longrunning.Operation updateExplanationDataset( - com.google.cloud.aiplatform.v1.UpdateExplanationDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateExplanationDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExplanationDatasetMethod(), getCallOptions(), request); } @@ -1775,8 +1775,8 @@ public com.google.longrunning.Operation updateExplanationDataset( * */ public com.google.longrunning.Operation deleteModel( - com.google.cloud.aiplatform.v1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } @@ -1793,8 +1793,9 @@ public com.google.longrunning.Operation deleteModel( * */ public com.google.longrunning.Operation deleteModelVersion( - com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelVersionMethod(), getCallOptions(), request); } @@ -1806,8 +1807,9 @@ public com.google.longrunning.Operation deleteModelVersion( * */ public com.google.cloud.aiplatform.v1.Model mergeVersionAliases( - com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMergeVersionAliasesMethod(), getCallOptions(), request); } @@ -1822,8 +1824,8 @@ public com.google.cloud.aiplatform.v1.Model mergeVersionAliases( * */ public com.google.longrunning.Operation exportModel( - com.google.cloud.aiplatform.v1.ExportModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ExportModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportModelMethod(), getCallOptions(), request); } @@ -1840,8 +1842,8 @@ public com.google.longrunning.Operation exportModel( * */ public com.google.longrunning.Operation copyModel( - com.google.cloud.aiplatform.v1.CopyModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CopyModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCopyModelMethod(), getCallOptions(), request); } @@ -1853,8 +1855,9 @@ public com.google.longrunning.Operation copyModel( * */ public com.google.cloud.aiplatform.v1.ModelEvaluation importModelEvaluation( - com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportModelEvaluationMethod(), getCallOptions(), request); } @@ -1867,8 +1870,9 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation importModelEvaluation( */ public com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse batchImportModelEvaluationSlices( - com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchImportModelEvaluationSlicesMethod(), getCallOptions(), request); } @@ -1881,8 +1885,9 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation importModelEvaluation( */ public com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse batchImportEvaluatedAnnotations( - com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchImportEvaluatedAnnotationsMethod(), getCallOptions(), request); } @@ -1894,8 +1899,9 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation importModelEvaluation( * */ public com.google.cloud.aiplatform.v1.ModelEvaluation getModelEvaluation( - com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetModelEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); } @@ -1907,8 +1913,9 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation getModelEvaluation( * */ public com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse listModelEvaluations( - com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); } @@ -1920,8 +1927,9 @@ public com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse listModelEval * */ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice getModelEvaluationSlice( - com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelEvaluationSliceMethod(), getCallOptions(), request); } @@ -1934,8 +1942,9 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice getModelEvaluationSli */ public com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse listModelEvaluationSlices( - com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelEvaluationSlicesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceGrpc.java index dbf411aa102e..fa515cf1305d 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceGrpc.java @@ -24,9 +24,6 @@ * The interface for Vertex Notebook service (a.k.a. Colab on Workbench). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/notebook_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NotebookServiceGrpc { @@ -1470,8 +1467,9 @@ protected NotebookServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createNotebookRuntimeTemplate( - com.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotebookRuntimeTemplateMethod(), getCallOptions(), request); } @@ -1483,8 +1481,9 @@ public com.google.longrunning.Operation createNotebookRuntimeTemplate( * */ public com.google.cloud.aiplatform.v1.NotebookRuntimeTemplate getNotebookRuntimeTemplate( - com.google.cloud.aiplatform.v1.GetNotebookRuntimeTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetNotebookRuntimeTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotebookRuntimeTemplateMethod(), getCallOptions(), request); } @@ -1497,8 +1496,9 @@ public com.google.cloud.aiplatform.v1.NotebookRuntimeTemplate getNotebookRuntime */ public com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesResponse listNotebookRuntimeTemplates( - com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotebookRuntimeTemplatesMethod(), getCallOptions(), request); } @@ -1510,8 +1510,9 @@ public com.google.cloud.aiplatform.v1.NotebookRuntimeTemplate getNotebookRuntime * */ public com.google.longrunning.Operation deleteNotebookRuntimeTemplate( - com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotebookRuntimeTemplateMethod(), getCallOptions(), request); } @@ -1523,8 +1524,9 @@ public com.google.longrunning.Operation deleteNotebookRuntimeTemplate( * */ public com.google.cloud.aiplatform.v1.NotebookRuntimeTemplate updateNotebookRuntimeTemplate( - com.google.cloud.aiplatform.v1.UpdateNotebookRuntimeTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateNotebookRuntimeTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNotebookRuntimeTemplateMethod(), getCallOptions(), request); } @@ -1537,8 +1539,9 @@ public com.google.cloud.aiplatform.v1.NotebookRuntimeTemplate updateNotebookRunt * */ public com.google.longrunning.Operation assignNotebookRuntime( - com.google.cloud.aiplatform.v1.AssignNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.AssignNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAssignNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1550,8 +1553,9 @@ public com.google.longrunning.Operation assignNotebookRuntime( * */ public com.google.cloud.aiplatform.v1.NotebookRuntime getNotebookRuntime( - com.google.cloud.aiplatform.v1.GetNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1563,8 +1567,9 @@ public com.google.cloud.aiplatform.v1.NotebookRuntime getNotebookRuntime( * */ public com.google.cloud.aiplatform.v1.ListNotebookRuntimesResponse listNotebookRuntimes( - com.google.cloud.aiplatform.v1.ListNotebookRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListNotebookRuntimesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotebookRuntimesMethod(), getCallOptions(), request); } @@ -1576,8 +1581,9 @@ public com.google.cloud.aiplatform.v1.ListNotebookRuntimesResponse listNotebookR * */ public com.google.longrunning.Operation deleteNotebookRuntime( - com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1589,8 +1595,9 @@ public com.google.longrunning.Operation deleteNotebookRuntime( * */ public com.google.longrunning.Operation upgradeNotebookRuntime( - com.google.cloud.aiplatform.v1.UpgradeNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpgradeNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1602,8 +1609,9 @@ public com.google.longrunning.Operation upgradeNotebookRuntime( * */ public com.google.longrunning.Operation startNotebookRuntime( - com.google.cloud.aiplatform.v1.StartNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.StartNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1615,8 +1623,9 @@ public com.google.longrunning.Operation startNotebookRuntime( * */ public com.google.longrunning.Operation stopNotebookRuntime( - com.google.cloud.aiplatform.v1.StopNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.StopNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1628,8 +1637,9 @@ public com.google.longrunning.Operation stopNotebookRuntime( * */ public com.google.longrunning.Operation createNotebookExecutionJob( - com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotebookExecutionJobMethod(), getCallOptions(), request); } @@ -1641,8 +1651,9 @@ public com.google.longrunning.Operation createNotebookExecutionJob( * */ public com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJob( - com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetNotebookExecutionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotebookExecutionJobMethod(), getCallOptions(), request); } @@ -1655,8 +1666,9 @@ public com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJ */ public com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse listNotebookExecutionJobs( - com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotebookExecutionJobsMethod(), getCallOptions(), request); } @@ -1668,8 +1680,9 @@ public com.google.cloud.aiplatform.v1.NotebookExecutionJob getNotebookExecutionJ * */ public com.google.longrunning.Operation deleteNotebookExecutionJob( - com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteNotebookExecutionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotebookExecutionJobMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceGrpc.java index da8684f5f0aa..6d47a8ca014f 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's machine learning PersistentResource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/persistent_resource_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PersistentResourceServiceGrpc { @@ -663,8 +660,9 @@ protected PersistentResourceServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createPersistentResource( - com.google.cloud.aiplatform.v1.CreatePersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreatePersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePersistentResourceMethod(), getCallOptions(), request); } @@ -676,8 +674,9 @@ public com.google.longrunning.Operation createPersistentResource( * */ public com.google.cloud.aiplatform.v1.PersistentResource getPersistentResource( - com.google.cloud.aiplatform.v1.GetPersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetPersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPersistentResourceMethod(), getCallOptions(), request); } @@ -689,8 +688,9 @@ public com.google.cloud.aiplatform.v1.PersistentResource getPersistentResource( * */ public com.google.cloud.aiplatform.v1.ListPersistentResourcesResponse listPersistentResources( - com.google.cloud.aiplatform.v1.ListPersistentResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListPersistentResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPersistentResourcesMethod(), getCallOptions(), request); } @@ -702,8 +702,9 @@ public com.google.cloud.aiplatform.v1.ListPersistentResourcesResponse listPersis * */ public com.google.longrunning.Operation deletePersistentResource( - com.google.cloud.aiplatform.v1.DeletePersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeletePersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePersistentResourceMethod(), getCallOptions(), request); } @@ -715,8 +716,9 @@ public com.google.longrunning.Operation deletePersistentResource( * */ public com.google.longrunning.Operation updatePersistentResource( - com.google.cloud.aiplatform.v1.UpdatePersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdatePersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePersistentResourceMethod(), getCallOptions(), request); } @@ -728,8 +730,9 @@ public com.google.longrunning.Operation updatePersistentResource( * */ public com.google.longrunning.Operation rebootPersistentResource( - com.google.cloud.aiplatform.v1.RebootPersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.RebootPersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRebootPersistentResourceMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java index f8d411c785c7..d1a8a17a1f35 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java @@ -26,9 +26,6 @@ * `PipelineJob` resources (used for Vertex AI Pipelines). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/pipeline_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PipelineServiceGrpc { @@ -1177,8 +1174,9 @@ protected PipelineServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.TrainingPipeline createTrainingPipeline( - com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTrainingPipelineMethod(), getCallOptions(), request); } @@ -1190,8 +1188,9 @@ public com.google.cloud.aiplatform.v1.TrainingPipeline createTrainingPipeline( * */ public com.google.cloud.aiplatform.v1.TrainingPipeline getTrainingPipeline( - com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTrainingPipelineMethod(), getCallOptions(), request); } @@ -1203,8 +1202,9 @@ public com.google.cloud.aiplatform.v1.TrainingPipeline getTrainingPipeline( * */ public com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse listTrainingPipelines( - com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTrainingPipelinesMethod(), getCallOptions(), request); } @@ -1216,8 +1216,9 @@ public com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse listTraining * */ public com.google.longrunning.Operation deleteTrainingPipeline( - com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTrainingPipelineMethod(), getCallOptions(), request); } @@ -1242,8 +1243,9 @@ public com.google.longrunning.Operation deleteTrainingPipeline( * */ public com.google.protobuf.Empty cancelTrainingPipeline( - com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelTrainingPipelineMethod(), getCallOptions(), request); } @@ -1255,8 +1257,9 @@ public com.google.protobuf.Empty cancelTrainingPipeline( * */ public com.google.cloud.aiplatform.v1.PipelineJob createPipelineJob( - com.google.cloud.aiplatform.v1.CreatePipelineJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePipelineJobMethod(), getCallOptions(), request); } @@ -1268,8 +1271,9 @@ public com.google.cloud.aiplatform.v1.PipelineJob createPipelineJob( * */ public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJob( - com.google.cloud.aiplatform.v1.GetPipelineJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetPipelineJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPipelineJobMethod(), getCallOptions(), request); } @@ -1281,8 +1285,9 @@ public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJob( * */ public com.google.cloud.aiplatform.v1.ListPipelineJobsResponse listPipelineJobs( - com.google.cloud.aiplatform.v1.ListPipelineJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPipelineJobsMethod(), getCallOptions(), request); } @@ -1294,8 +1299,9 @@ public com.google.cloud.aiplatform.v1.ListPipelineJobsResponse listPipelineJobs( * */ public com.google.longrunning.Operation deletePipelineJob( - com.google.cloud.aiplatform.v1.DeletePipelineJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePipelineJobMethod(), getCallOptions(), request); } @@ -1309,8 +1315,9 @@ public com.google.longrunning.Operation deletePipelineJob( * */ public com.google.longrunning.Operation batchDeletePipelineJobs( - com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeletePipelineJobsMethod(), getCallOptions(), request); } @@ -1334,8 +1341,9 @@ public com.google.longrunning.Operation batchDeletePipelineJobs( * */ public com.google.protobuf.Empty cancelPipelineJob( - com.google.cloud.aiplatform.v1.CancelPipelineJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelPipelineJobMethod(), getCallOptions(), request); } @@ -1353,8 +1361,9 @@ public com.google.protobuf.Empty cancelPipelineJob( * */ public com.google.longrunning.Operation batchCancelPipelineJobs( - com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCancelPipelineJobsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceGrpc.java index bcfe2b8c9ca8..4466684da744 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceGrpc.java @@ -24,9 +24,6 @@ * A service for online predictions and explanations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/prediction_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PredictionServiceGrpc { @@ -649,6 +646,53 @@ private PredictionServiceGrpc() {} return getStreamGenerateContentMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.EmbedContentRequest, + com.google.cloud.aiplatform.v1.EmbedContentResponse> + getEmbedContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EmbedContent", + requestType = com.google.cloud.aiplatform.v1.EmbedContentRequest.class, + responseType = com.google.cloud.aiplatform.v1.EmbedContentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.EmbedContentRequest, + com.google.cloud.aiplatform.v1.EmbedContentResponse> + getEmbedContentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.EmbedContentRequest, + com.google.cloud.aiplatform.v1.EmbedContentResponse> + getEmbedContentMethod; + if ((getEmbedContentMethod = PredictionServiceGrpc.getEmbedContentMethod) == null) { + synchronized (PredictionServiceGrpc.class) { + if ((getEmbedContentMethod = PredictionServiceGrpc.getEmbedContentMethod) == null) { + PredictionServiceGrpc.getEmbedContentMethod = + getEmbedContentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EmbedContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.EmbedContentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.EmbedContentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new PredictionServiceMethodDescriptorSupplier("EmbedContent")) + .build(); + } + } + } + return getEmbedContentMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static PredictionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -925,6 +969,21 @@ default void streamGenerateContent( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getStreamGenerateContentMethod(), responseObserver); } + + /** + * + * + *
    +     * Embed content with multimodal inputs.
    +     * 
    + */ + default void embedContent( + com.google.cloud.aiplatform.v1.EmbedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEmbedContentMethod(), responseObserver); + } } /** @@ -1190,6 +1249,23 @@ public void streamGenerateContent( request, responseObserver); } + + /** + * + * + *
    +     * Embed content with multimodal inputs.
    +     * 
    + */ + public void embedContent( + com.google.cloud.aiplatform.v1.EmbedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEmbedContentMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1220,8 +1296,8 @@ protected PredictionServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.PredictResponse predict( - com.google.cloud.aiplatform.v1.PredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.PredictRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } @@ -1240,8 +1316,8 @@ public com.google.cloud.aiplatform.v1.PredictResponse predict( * */ public com.google.api.HttpBody rawPredict( - com.google.cloud.aiplatform.v1.RawPredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.RawPredictRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRawPredictMethod(), getCallOptions(), request); } @@ -1268,8 +1344,9 @@ public io.grpc.stub.BlockingClientCall streamRawPred * */ public com.google.cloud.aiplatform.v1.DirectPredictResponse directPredict( - com.google.cloud.aiplatform.v1.DirectPredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DirectPredictRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDirectPredictMethod(), getCallOptions(), request); } @@ -1282,8 +1359,9 @@ public com.google.cloud.aiplatform.v1.DirectPredictResponse directPredict( * */ public com.google.cloud.aiplatform.v1.DirectRawPredictResponse directRawPredict( - com.google.cloud.aiplatform.v1.DirectRawPredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DirectRawPredictRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDirectRawPredictMethod(), getCallOptions(), request); } @@ -1387,8 +1465,8 @@ public com.google.cloud.aiplatform.v1.DirectRawPredictResponse directRawPredict( * */ public com.google.cloud.aiplatform.v1.ExplainResponse explain( - com.google.cloud.aiplatform.v1.ExplainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ExplainRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExplainMethod(), getCallOptions(), request); } @@ -1400,8 +1478,9 @@ public com.google.cloud.aiplatform.v1.ExplainResponse explain( * */ public com.google.cloud.aiplatform.v1.GenerateContentResponse generateContent( - com.google.cloud.aiplatform.v1.GenerateContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GenerateContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateContentMethod(), getCallOptions(), request); } @@ -1419,6 +1498,19 @@ public com.google.cloud.aiplatform.v1.GenerateContentResponse generateContent( return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( getChannel(), getStreamGenerateContentMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Embed content with multimodal inputs.
    +     * 
    + */ + public com.google.cloud.aiplatform.v1.EmbedContentResponse embedContent( + com.google.cloud.aiplatform.v1.EmbedContentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getEmbedContentMethod(), getCallOptions(), request); + } } /** @@ -1576,6 +1668,19 @@ public com.google.cloud.aiplatform.v1.GenerateContentResponse generateContent( return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStreamGenerateContentMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Embed content with multimodal inputs.
    +     * 
    + */ + public com.google.cloud.aiplatform.v1.EmbedContentResponse embedContent( + com.google.cloud.aiplatform.v1.EmbedContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEmbedContentMethod(), getCallOptions(), request); + } } /** @@ -1697,6 +1802,20 @@ public com.google.common.util.concurrent.ListenableFuture + * Embed content with multimodal inputs. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.EmbedContentResponse> + embedContent(com.google.cloud.aiplatform.v1.EmbedContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEmbedContentMethod(), getCallOptions()), request); + } } private static final int METHODID_PREDICT = 0; @@ -1708,10 +1827,11 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1782,6 +1902,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EMBED_CONTENT: + serviceImpl.embedContent( + (com.google.cloud.aiplatform.v1.EmbedContentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -1911,6 +2037,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1.GenerateContentRequest, com.google.cloud.aiplatform.v1.GenerateContentResponse>( service, METHODID_STREAM_GENERATE_CONTENT))) + .addMethod( + getEmbedContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.EmbedContentRequest, + com.google.cloud.aiplatform.v1.EmbedContentResponse>( + service, METHODID_EMBED_CONTENT))) .build(); } @@ -1975,6 +2108,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getExplainMethod()) .addMethod(getGenerateContentMethod()) .addMethod(getStreamGenerateContentMethod()) + .addMethod(getEmbedContentMethod()) .build(); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java index ca2d8aa04f63..c392f546fcb9 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java @@ -24,9 +24,6 @@ * A service for executing queries on Reasoning Engine. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReasoningEngineExecutionServiceGrpc { @@ -333,8 +330,9 @@ protected ReasoningEngineExecutionServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse queryReasoningEngine( - com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryReasoningEngineMethod(), getCallOptions(), request); } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceGrpc.java index 4468411c00a3..8b88d44e9de3 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's Reasoning Engines. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/reasoning_engine_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReasoningEngineServiceGrpc { @@ -571,8 +568,9 @@ protected ReasoningEngineServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createReasoningEngine( - com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReasoningEngineMethod(), getCallOptions(), request); } @@ -584,8 +582,9 @@ public com.google.longrunning.Operation createReasoningEngine( * */ public com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngine( - com.google.cloud.aiplatform.v1.GetReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReasoningEngineMethod(), getCallOptions(), request); } @@ -597,8 +596,9 @@ public com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngine( * */ public com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse listReasoningEngines( - com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReasoningEnginesMethod(), getCallOptions(), request); } @@ -610,8 +610,9 @@ public com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse listReasoning * */ public com.google.longrunning.Operation updateReasoningEngine( - com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReasoningEngineMethod(), getCallOptions(), request); } @@ -623,8 +624,9 @@ public com.google.longrunning.Operation updateReasoningEngine( * */ public com.google.longrunning.Operation deleteReasoningEngine( - com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReasoningEngineMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceGrpc.java index e258f0fc9c51..758369caeb71 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceGrpc.java @@ -25,9 +25,6 @@ * periodically launch shceudled runs to make API calls. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/schedule_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ScheduleServiceGrpc { @@ -723,8 +720,9 @@ protected ScheduleServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.Schedule createSchedule( - com.google.cloud.aiplatform.v1.CreateScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateScheduleMethod(), getCallOptions(), request); } @@ -736,8 +734,9 @@ public com.google.cloud.aiplatform.v1.Schedule createSchedule( * */ public com.google.longrunning.Operation deleteSchedule( - com.google.cloud.aiplatform.v1.DeleteScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteScheduleMethod(), getCallOptions(), request); } @@ -749,8 +748,8 @@ public com.google.longrunning.Operation deleteSchedule( * */ public com.google.cloud.aiplatform.v1.Schedule getSchedule( - com.google.cloud.aiplatform.v1.GetScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetScheduleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetScheduleMethod(), getCallOptions(), request); } @@ -762,8 +761,9 @@ public com.google.cloud.aiplatform.v1.Schedule getSchedule( * */ public com.google.cloud.aiplatform.v1.ListSchedulesResponse listSchedules( - com.google.cloud.aiplatform.v1.ListSchedulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListSchedulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchedulesMethod(), getCallOptions(), request); } @@ -778,8 +778,9 @@ public com.google.cloud.aiplatform.v1.ListSchedulesResponse listSchedules( * */ public com.google.protobuf.Empty pauseSchedule( - com.google.cloud.aiplatform.v1.PauseScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.PauseScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseScheduleMethod(), getCallOptions(), request); } @@ -798,8 +799,9 @@ public com.google.protobuf.Empty pauseSchedule( * */ public com.google.protobuf.Empty resumeSchedule( - com.google.cloud.aiplatform.v1.ResumeScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ResumeScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeScheduleMethod(), getCallOptions(), request); } @@ -816,8 +818,9 @@ public com.google.protobuf.Empty resumeSchedule( * */ public com.google.cloud.aiplatform.v1.Schedule updateSchedule( - com.google.cloud.aiplatform.v1.UpdateScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateScheduleMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceGrpc.java index f453377c8ad3..4a29c1ce47b5 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceGrpc.java @@ -29,9 +29,6 @@ * CrowdCompute console. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/specialist_pool_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SpecialistPoolServiceGrpc { @@ -591,8 +588,9 @@ protected SpecialistPoolServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createSpecialistPool( - com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSpecialistPoolMethod(), getCallOptions(), request); } @@ -604,8 +602,9 @@ public com.google.longrunning.Operation createSpecialistPool( * */ public com.google.cloud.aiplatform.v1.SpecialistPool getSpecialistPool( - com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpecialistPoolMethod(), getCallOptions(), request); } @@ -617,8 +616,9 @@ public com.google.cloud.aiplatform.v1.SpecialistPool getSpecialistPool( * */ public com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse listSpecialistPools( - com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSpecialistPoolsMethod(), getCallOptions(), request); } @@ -630,8 +630,9 @@ public com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse listSpecialist * */ public com.google.longrunning.Operation deleteSpecialistPool( - com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSpecialistPoolMethod(), getCallOptions(), request); } @@ -643,8 +644,9 @@ public com.google.longrunning.Operation deleteSpecialistPool( * */ public com.google.longrunning.Operation updateSpecialistPool( - com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSpecialistPoolMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceGrpc.java index 50e115d7edcc..6d7e2e78a388 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceGrpc.java @@ -24,9 +24,6 @@ * TensorboardService * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/tensorboard_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TensorboardServiceGrpc { @@ -2677,8 +2674,9 @@ protected TensorboardServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createTensorboard( - com.google.cloud.aiplatform.v1.CreateTensorboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateTensorboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTensorboardMethod(), getCallOptions(), request); } @@ -2690,8 +2688,9 @@ public com.google.longrunning.Operation createTensorboard( * */ public com.google.cloud.aiplatform.v1.Tensorboard getTensorboard( - com.google.cloud.aiplatform.v1.GetTensorboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetTensorboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTensorboardMethod(), getCallOptions(), request); } @@ -2703,8 +2702,9 @@ public com.google.cloud.aiplatform.v1.Tensorboard getTensorboard( * */ public com.google.longrunning.Operation updateTensorboard( - com.google.cloud.aiplatform.v1.UpdateTensorboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateTensorboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTensorboardMethod(), getCallOptions(), request); } @@ -2716,8 +2716,9 @@ public com.google.longrunning.Operation updateTensorboard( * */ public com.google.cloud.aiplatform.v1.ListTensorboardsResponse listTensorboards( - com.google.cloud.aiplatform.v1.ListTensorboardsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListTensorboardsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTensorboardsMethod(), getCallOptions(), request); } @@ -2729,8 +2730,9 @@ public com.google.cloud.aiplatform.v1.ListTensorboardsResponse listTensorboards( * */ public com.google.longrunning.Operation deleteTensorboard( - com.google.cloud.aiplatform.v1.DeleteTensorboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteTensorboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTensorboardMethod(), getCallOptions(), request); } @@ -2742,8 +2744,9 @@ public com.google.longrunning.Operation deleteTensorboard( * */ public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse readTensorboardUsage( - com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadTensorboardUsageMethod(), getCallOptions(), request); } @@ -2755,8 +2758,9 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse readTensorboa * */ public com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse readTensorboardSize( - com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadTensorboardSizeMethod(), getCallOptions(), request); } @@ -2768,8 +2772,9 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse readTensorboar * */ public com.google.cloud.aiplatform.v1.TensorboardExperiment createTensorboardExperiment( - com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTensorboardExperimentMethod(), getCallOptions(), request); } @@ -2781,8 +2786,9 @@ public com.google.cloud.aiplatform.v1.TensorboardExperiment createTensorboardExp * */ public com.google.cloud.aiplatform.v1.TensorboardExperiment getTensorboardExperiment( - com.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTensorboardExperimentMethod(), getCallOptions(), request); } @@ -2794,8 +2800,9 @@ public com.google.cloud.aiplatform.v1.TensorboardExperiment getTensorboardExperi * */ public com.google.cloud.aiplatform.v1.TensorboardExperiment updateTensorboardExperiment( - com.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTensorboardExperimentMethod(), getCallOptions(), request); } @@ -2808,8 +2815,9 @@ public com.google.cloud.aiplatform.v1.TensorboardExperiment updateTensorboardExp */ public com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse listTensorboardExperiments( - com.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTensorboardExperimentsMethod(), getCallOptions(), request); } @@ -2821,8 +2829,9 @@ public com.google.cloud.aiplatform.v1.TensorboardExperiment updateTensorboardExp * */ public com.google.longrunning.Operation deleteTensorboardExperiment( - com.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTensorboardExperimentMethod(), getCallOptions(), request); } @@ -2834,8 +2843,9 @@ public com.google.longrunning.Operation deleteTensorboardExperiment( * */ public com.google.cloud.aiplatform.v1.TensorboardRun createTensorboardRun( - com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTensorboardRunMethod(), getCallOptions(), request); } @@ -2848,8 +2858,9 @@ public com.google.cloud.aiplatform.v1.TensorboardRun createTensorboardRun( */ public com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns( - com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateTensorboardRunsMethod(), getCallOptions(), request); } @@ -2861,8 +2872,9 @@ public com.google.cloud.aiplatform.v1.TensorboardRun createTensorboardRun( * */ public com.google.cloud.aiplatform.v1.TensorboardRun getTensorboardRun( - com.google.cloud.aiplatform.v1.GetTensorboardRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetTensorboardRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTensorboardRunMethod(), getCallOptions(), request); } @@ -2874,8 +2886,9 @@ public com.google.cloud.aiplatform.v1.TensorboardRun getTensorboardRun( * */ public com.google.cloud.aiplatform.v1.TensorboardRun updateTensorboardRun( - com.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTensorboardRunMethod(), getCallOptions(), request); } @@ -2887,8 +2900,9 @@ public com.google.cloud.aiplatform.v1.TensorboardRun updateTensorboardRun( * */ public com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse listTensorboardRuns( - com.google.cloud.aiplatform.v1.ListTensorboardRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListTensorboardRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTensorboardRunsMethod(), getCallOptions(), request); } @@ -2900,8 +2914,9 @@ public com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse listTensorboar * */ public com.google.longrunning.Operation deleteTensorboardRun( - com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTensorboardRunMethod(), getCallOptions(), request); } @@ -2914,8 +2929,9 @@ public com.google.longrunning.Operation deleteTensorboardRun( */ public com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries( - com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2927,8 +2943,9 @@ public com.google.longrunning.Operation deleteTensorboardRun( * */ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries createTensorboardTimeSeries( - com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2940,8 +2957,9 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries createTensorboardTim * */ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries getTensorboardTimeSeries( - com.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2953,8 +2971,9 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries getTensorboardTimeSe * */ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries updateTensorboardTimeSeries( - com.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2967,8 +2986,9 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries updateTensorboardTim */ public com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse listTensorboardTimeSeries( - com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2980,8 +3000,9 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries updateTensorboardTim * */ public com.google.longrunning.Operation deleteTensorboardTimeSeries( - com.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2998,8 +3019,9 @@ public com.google.longrunning.Operation deleteTensorboardTimeSeries( */ public com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData( - com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchReadTensorboardTimeSeriesDataMethod(), getCallOptions(), request); } @@ -3016,8 +3038,9 @@ public com.google.longrunning.Operation deleteTensorboardTimeSeries( */ public com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData( - com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadTensorboardTimeSeriesDataMethod(), getCallOptions(), request); } @@ -3050,8 +3073,9 @@ public com.google.longrunning.Operation deleteTensorboardTimeSeries( */ public com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse writeTensorboardExperimentData( - com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteTensorboardExperimentDataMethod(), getCallOptions(), request); } @@ -3064,8 +3088,9 @@ public com.google.longrunning.Operation deleteTensorboardTimeSeries( * */ public com.google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse writeTensorboardRunData( - com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteTensorboardRunDataMethod(), getCallOptions(), request); } @@ -3079,8 +3104,9 @@ public com.google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse writeTenso */ public com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse exportTensorboardTimeSeriesData( - com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportTensorboardTimeSeriesDataMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceGrpc.java index 958cf680a10a..e1574190d60d 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing user data for RAG. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/vertex_rag_data_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VertexRagDataServiceGrpc { @@ -1076,8 +1073,9 @@ protected VertexRagDataServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createRagCorpus( - com.google.cloud.aiplatform.v1.CreateRagCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRagCorpusMethod(), getCallOptions(), request); } @@ -1089,8 +1087,9 @@ public com.google.longrunning.Operation createRagCorpus( * */ public com.google.longrunning.Operation updateRagCorpus( - com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRagCorpusMethod(), getCallOptions(), request); } @@ -1102,8 +1101,8 @@ public com.google.longrunning.Operation updateRagCorpus( * */ public com.google.cloud.aiplatform.v1.RagCorpus getRagCorpus( - com.google.cloud.aiplatform.v1.GetRagCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetRagCorpusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRagCorpusMethod(), getCallOptions(), request); } @@ -1115,8 +1114,9 @@ public com.google.cloud.aiplatform.v1.RagCorpus getRagCorpus( * */ public com.google.cloud.aiplatform.v1.ListRagCorporaResponse listRagCorpora( - com.google.cloud.aiplatform.v1.ListRagCorporaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListRagCorporaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRagCorporaMethod(), getCallOptions(), request); } @@ -1128,8 +1128,9 @@ public com.google.cloud.aiplatform.v1.ListRagCorporaResponse listRagCorpora( * */ public com.google.longrunning.Operation deleteRagCorpus( - com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRagCorpusMethod(), getCallOptions(), request); } @@ -1141,8 +1142,9 @@ public com.google.longrunning.Operation deleteRagCorpus( * */ public com.google.cloud.aiplatform.v1.UploadRagFileResponse uploadRagFile( - com.google.cloud.aiplatform.v1.UploadRagFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UploadRagFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUploadRagFileMethod(), getCallOptions(), request); } @@ -1154,8 +1156,9 @@ public com.google.cloud.aiplatform.v1.UploadRagFileResponse uploadRagFile( * */ public com.google.longrunning.Operation importRagFiles( - com.google.cloud.aiplatform.v1.ImportRagFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ImportRagFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportRagFilesMethod(), getCallOptions(), request); } @@ -1167,8 +1170,8 @@ public com.google.longrunning.Operation importRagFiles( * */ public com.google.cloud.aiplatform.v1.RagFile getRagFile( - com.google.cloud.aiplatform.v1.GetRagFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetRagFileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRagFileMethod(), getCallOptions(), request); } @@ -1180,8 +1183,8 @@ public com.google.cloud.aiplatform.v1.RagFile getRagFile( * */ public com.google.cloud.aiplatform.v1.ListRagFilesResponse listRagFiles( - com.google.cloud.aiplatform.v1.ListRagFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListRagFilesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRagFilesMethod(), getCallOptions(), request); } @@ -1193,8 +1196,9 @@ public com.google.cloud.aiplatform.v1.ListRagFilesResponse listRagFiles( * */ public com.google.longrunning.Operation deleteRagFile( - com.google.cloud.aiplatform.v1.DeleteRagFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteRagFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRagFileMethod(), getCallOptions(), request); } @@ -1206,8 +1210,9 @@ public com.google.longrunning.Operation deleteRagFile( * */ public com.google.longrunning.Operation updateRagEngineConfig( - com.google.cloud.aiplatform.v1.UpdateRagEngineConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.UpdateRagEngineConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRagEngineConfigMethod(), getCallOptions(), request); } @@ -1219,8 +1224,9 @@ public com.google.longrunning.Operation updateRagEngineConfig( * */ public com.google.cloud.aiplatform.v1.RagEngineConfig getRagEngineConfig( - com.google.cloud.aiplatform.v1.GetRagEngineConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetRagEngineConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRagEngineConfigMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceGrpc.java index b4d2c51556f8..e1a08989cb78 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceGrpc.java @@ -24,9 +24,6 @@ * A service for retrieving relevant contexts. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/vertex_rag_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VertexRagServiceGrpc { @@ -406,8 +403,9 @@ protected VertexRagServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.RetrieveContextsResponse retrieveContexts( - com.google.cloud.aiplatform.v1.RetrieveContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveContextsMethod(), getCallOptions(), request); } @@ -420,8 +418,9 @@ public com.google.cloud.aiplatform.v1.RetrieveContextsResponse retrieveContexts( * */ public com.google.cloud.aiplatform.v1.AugmentPromptResponse augmentPrompt( - com.google.cloud.aiplatform.v1.AugmentPromptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.AugmentPromptRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAugmentPromptMethod(), getCallOptions(), request); } @@ -435,8 +434,9 @@ public com.google.cloud.aiplatform.v1.AugmentPromptResponse augmentPrompt( * */ public com.google.cloud.aiplatform.v1.CorroborateContentResponse corroborateContent( - com.google.cloud.aiplatform.v1.CorroborateContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CorroborateContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCorroborateContentMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceGrpc.java index 8d641fa95d7b..86b70691ed91 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceGrpc.java @@ -27,9 +27,6 @@ * learning architectures. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1/vizier_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VizierServiceGrpc { @@ -1307,8 +1304,8 @@ protected VizierServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1.Study createStudy( - com.google.cloud.aiplatform.v1.CreateStudyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateStudyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateStudyMethod(), getCallOptions(), request); } @@ -1320,8 +1317,8 @@ public com.google.cloud.aiplatform.v1.Study createStudy( * */ public com.google.cloud.aiplatform.v1.Study getStudy( - com.google.cloud.aiplatform.v1.GetStudyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetStudyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStudyMethod(), getCallOptions(), request); } @@ -1333,8 +1330,8 @@ public com.google.cloud.aiplatform.v1.Study getStudy( * */ public com.google.cloud.aiplatform.v1.ListStudiesResponse listStudies( - com.google.cloud.aiplatform.v1.ListStudiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListStudiesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListStudiesMethod(), getCallOptions(), request); } @@ -1346,8 +1343,8 @@ public com.google.cloud.aiplatform.v1.ListStudiesResponse listStudies( * */ public com.google.protobuf.Empty deleteStudy( - com.google.cloud.aiplatform.v1.DeleteStudyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteStudyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteStudyMethod(), getCallOptions(), request); } @@ -1360,8 +1357,8 @@ public com.google.protobuf.Empty deleteStudy( * */ public com.google.cloud.aiplatform.v1.Study lookupStudy( - com.google.cloud.aiplatform.v1.LookupStudyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.LookupStudyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupStudyMethod(), getCallOptions(), request); } @@ -1378,8 +1375,9 @@ public com.google.cloud.aiplatform.v1.Study lookupStudy( * */ public com.google.longrunning.Operation suggestTrials( - com.google.cloud.aiplatform.v1.SuggestTrialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.SuggestTrialsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestTrialsMethod(), getCallOptions(), request); } @@ -1391,8 +1389,8 @@ public com.google.longrunning.Operation suggestTrials( * */ public com.google.cloud.aiplatform.v1.Trial createTrial( - com.google.cloud.aiplatform.v1.CreateTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CreateTrialRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTrialMethod(), getCallOptions(), request); } @@ -1404,8 +1402,8 @@ public com.google.cloud.aiplatform.v1.Trial createTrial( * */ public com.google.cloud.aiplatform.v1.Trial getTrial( - com.google.cloud.aiplatform.v1.GetTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.GetTrialRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTrialMethod(), getCallOptions(), request); } @@ -1417,8 +1415,8 @@ public com.google.cloud.aiplatform.v1.Trial getTrial( * */ public com.google.cloud.aiplatform.v1.ListTrialsResponse listTrials( - com.google.cloud.aiplatform.v1.ListTrialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListTrialsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTrialsMethod(), getCallOptions(), request); } @@ -1431,8 +1429,9 @@ public com.google.cloud.aiplatform.v1.ListTrialsResponse listTrials( * */ public com.google.cloud.aiplatform.v1.Trial addTrialMeasurement( - com.google.cloud.aiplatform.v1.AddTrialMeasurementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.AddTrialMeasurementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddTrialMeasurementMethod(), getCallOptions(), request); } @@ -1444,8 +1443,9 @@ public com.google.cloud.aiplatform.v1.Trial addTrialMeasurement( * */ public com.google.cloud.aiplatform.v1.Trial completeTrial( - com.google.cloud.aiplatform.v1.CompleteTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CompleteTrialRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteTrialMethod(), getCallOptions(), request); } @@ -1457,8 +1457,8 @@ public com.google.cloud.aiplatform.v1.Trial completeTrial( * */ public com.google.protobuf.Empty deleteTrial( - com.google.cloud.aiplatform.v1.DeleteTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.DeleteTrialRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTrialMethod(), getCallOptions(), request); } @@ -1473,8 +1473,9 @@ public com.google.protobuf.Empty deleteTrial( * */ public com.google.longrunning.Operation checkTrialEarlyStoppingState( - com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckTrialEarlyStoppingStateMethod(), getCallOptions(), request); } @@ -1486,8 +1487,8 @@ public com.google.longrunning.Operation checkTrialEarlyStoppingState( * */ public com.google.cloud.aiplatform.v1.Trial stopTrial( - com.google.cloud.aiplatform.v1.StopTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.StopTrialRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopTrialMethod(), getCallOptions(), request); } @@ -1502,8 +1503,9 @@ public com.google.cloud.aiplatform.v1.Trial stopTrial( * */ public com.google.cloud.aiplatform.v1.ListOptimalTrialsResponse listOptimalTrials( - com.google.cloud.aiplatform.v1.ListOptimalTrialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1.ListOptimalTrialsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOptimalTrialsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java index 5f5f6dd2a4dd..f76a0b2c6a48 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java @@ -24,9 +24,6 @@ * The service that manages Vertex AI Dataset and its child resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/dataset_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DatasetServiceGrpc { @@ -1776,8 +1773,9 @@ protected DatasetServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createDataset( - com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } @@ -1789,8 +1787,9 @@ public com.google.longrunning.Operation createDataset( * */ public com.google.cloud.aiplatform.v1beta1.Dataset getDataset( - com.google.cloud.aiplatform.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } @@ -1802,8 +1801,9 @@ public com.google.cloud.aiplatform.v1beta1.Dataset getDataset( * */ public com.google.cloud.aiplatform.v1beta1.Dataset updateDataset( - com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } @@ -1815,8 +1815,9 @@ public com.google.cloud.aiplatform.v1beta1.Dataset updateDataset( * */ public com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse listDatasets( - com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetsMethod(), getCallOptions(), request); } @@ -1828,8 +1829,9 @@ public com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse listDatasets( * */ public com.google.longrunning.Operation deleteDataset( - com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } @@ -1841,8 +1843,9 @@ public com.google.longrunning.Operation deleteDataset( * */ public com.google.longrunning.Operation importData( - com.google.cloud.aiplatform.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ImportDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } @@ -1854,8 +1857,9 @@ public com.google.longrunning.Operation importData( * */ public com.google.longrunning.Operation exportData( - com.google.cloud.aiplatform.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ExportDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } @@ -1867,8 +1871,9 @@ public com.google.longrunning.Operation exportData( * */ public com.google.longrunning.Operation createDatasetVersion( - com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetVersionMethod(), getCallOptions(), request); } @@ -1880,8 +1885,9 @@ public com.google.longrunning.Operation createDatasetVersion( * */ public com.google.cloud.aiplatform.v1beta1.DatasetVersion updateDatasetVersion( - com.google.cloud.aiplatform.v1beta1.UpdateDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetVersionMethod(), getCallOptions(), request); } @@ -1893,8 +1899,9 @@ public com.google.cloud.aiplatform.v1beta1.DatasetVersion updateDatasetVersion( * */ public com.google.longrunning.Operation deleteDatasetVersion( - com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetVersionMethod(), getCallOptions(), request); } @@ -1906,8 +1913,9 @@ public com.google.longrunning.Operation deleteDatasetVersion( * */ public com.google.cloud.aiplatform.v1beta1.DatasetVersion getDatasetVersion( - com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetVersionMethod(), getCallOptions(), request); } @@ -1919,8 +1927,9 @@ public com.google.cloud.aiplatform.v1beta1.DatasetVersion getDatasetVersion( * */ public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse listDatasetVersions( - com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetVersionsMethod(), getCallOptions(), request); } @@ -1932,8 +1941,9 @@ public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse listDatas * */ public com.google.longrunning.Operation restoreDatasetVersion( - com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreDatasetVersionMethod(), getCallOptions(), request); } @@ -1945,8 +1955,9 @@ public com.google.longrunning.Operation restoreDatasetVersion( * */ public com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse listDataItems( - com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataItemsMethod(), getCallOptions(), request); } @@ -1958,8 +1969,9 @@ public com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse listDataItems( * */ public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse searchDataItems( - com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchDataItemsMethod(), getCallOptions(), request); } @@ -1971,8 +1983,9 @@ public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse searchDataIte * */ public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse listSavedQueries( - com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSavedQueriesMethod(), getCallOptions(), request); } @@ -1984,8 +1997,9 @@ public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse listSavedQue * */ public com.google.longrunning.Operation deleteSavedQuery( - com.google.cloud.aiplatform.v1beta1.DeleteSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteSavedQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSavedQueryMethod(), getCallOptions(), request); } @@ -1997,8 +2011,9 @@ public com.google.longrunning.Operation deleteSavedQuery( * */ public com.google.cloud.aiplatform.v1beta1.AnnotationSpec getAnnotationSpec( - com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); } @@ -2010,8 +2025,9 @@ public com.google.cloud.aiplatform.v1beta1.AnnotationSpec getAnnotationSpec( * */ public com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse listAnnotations( - com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnnotationsMethod(), getCallOptions(), request); } @@ -2024,8 +2040,9 @@ public com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse listAnnotatio * */ public com.google.longrunning.Operation assessData( - com.google.cloud.aiplatform.v1beta1.AssessDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AssessDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAssessDataMethod(), getCallOptions(), request); } @@ -2038,8 +2055,9 @@ public com.google.longrunning.Operation assessData( * */ public com.google.longrunning.Operation assembleData( - com.google.cloud.aiplatform.v1beta1.AssembleDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AssembleDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAssembleDataMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceGrpc.java index d1c7f634c584..1fa376d1a81b 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceGrpc.java @@ -24,9 +24,6 @@ * A service that manages the DeploymentResourcePool resource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeploymentResourcePoolServiceGrpc { @@ -669,8 +666,9 @@ protected DeploymentResourcePoolServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createDeploymentResourcePool( - com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeploymentResourcePoolMethod(), getCallOptions(), request); } @@ -682,8 +680,9 @@ public com.google.longrunning.Operation createDeploymentResourcePool( * */ public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentResourcePool( - com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeploymentResourcePoolMethod(), getCallOptions(), request); } @@ -696,8 +695,9 @@ public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentR */ public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse listDeploymentResourcePools( - com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentResourcePoolsMethod(), getCallOptions(), request); } @@ -709,8 +709,9 @@ public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentR * */ public com.google.longrunning.Operation updateDeploymentResourcePool( - com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeploymentResourcePoolMethod(), getCallOptions(), request); } @@ -722,8 +723,9 @@ public com.google.longrunning.Operation updateDeploymentResourcePool( * */ public com.google.longrunning.Operation deleteDeploymentResourcePool( - com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeploymentResourcePoolMethod(), getCallOptions(), request); } @@ -735,8 +737,9 @@ public com.google.longrunning.Operation deleteDeploymentResourcePool( * */ public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse queryDeployedModels( - com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryDeployedModelsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceGrpc.java index e6e90fc96935..96fef7c3f0e9 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's Endpoints. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/endpoint_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EndpointServiceGrpc { @@ -1033,8 +1030,9 @@ protected EndpointServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createEndpoint( - com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEndpointMethod(), getCallOptions(), request); } @@ -1046,8 +1044,9 @@ public com.google.longrunning.Operation createEndpoint( * */ public com.google.cloud.aiplatform.v1beta1.Endpoint getEndpoint( - com.google.cloud.aiplatform.v1beta1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEndpointMethod(), getCallOptions(), request); } @@ -1059,8 +1058,9 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint getEndpoint( * */ public com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse listEndpoints( - com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEndpointsMethod(), getCallOptions(), request); } @@ -1072,8 +1072,9 @@ public com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse listEndpoints( * */ public com.google.cloud.aiplatform.v1beta1.Endpoint updateEndpoint( - com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } @@ -1085,8 +1086,9 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint updateEndpoint( * */ public com.google.longrunning.Operation updateEndpointLongRunning( - com.google.cloud.aiplatform.v1beta1.UpdateEndpointLongRunningRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateEndpointLongRunningRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEndpointLongRunningMethod(), getCallOptions(), request); } @@ -1098,8 +1100,9 @@ public com.google.longrunning.Operation updateEndpointLongRunning( * */ public com.google.longrunning.Operation deleteEndpoint( - com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); } @@ -1111,8 +1114,9 @@ public com.google.longrunning.Operation deleteEndpoint( * */ public com.google.longrunning.Operation deployModel( - com.google.cloud.aiplatform.v1beta1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeployModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployModelMethod(), getCallOptions(), request); } @@ -1125,8 +1129,9 @@ public com.google.longrunning.Operation deployModel( * */ public com.google.longrunning.Operation undeployModel( - com.google.cloud.aiplatform.v1beta1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UndeployModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployModelMethod(), getCallOptions(), request); } @@ -1141,8 +1146,9 @@ public com.google.longrunning.Operation undeployModel( * */ public com.google.longrunning.Operation mutateDeployedModel( - com.google.cloud.aiplatform.v1beta1.MutateDeployedModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.MutateDeployedModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMutateDeployedModelMethod(), getCallOptions(), request); } @@ -1155,8 +1161,9 @@ public com.google.longrunning.Operation mutateDeployedModel( * */ public com.google.longrunning.Operation setPublisherModelConfig( - com.google.cloud.aiplatform.v1beta1.SetPublisherModelConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SetPublisherModelConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetPublisherModelConfigMethod(), getCallOptions(), request); } @@ -1168,8 +1175,9 @@ public com.google.longrunning.Operation setPublisherModelConfig( * */ public com.google.cloud.aiplatform.v1beta1.PublisherModelConfig fetchPublisherModelConfig( - com.google.cloud.aiplatform.v1beta1.FetchPublisherModelConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.FetchPublisherModelConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchPublisherModelConfigMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java index 3ca44ead55df..44106ab2ea21 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java @@ -24,9 +24,6 @@ * Vertex AI Online Evaluation Service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/evaluation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EvaluationServiceGrpc { @@ -320,8 +317,9 @@ protected EvaluationServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse evaluateInstances( - com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEvaluateInstancesMethod(), getCallOptions(), request); } @@ -333,8 +331,9 @@ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse evaluateIns * */ public com.google.longrunning.Operation evaluateDataset( - com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEvaluateDatasetMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceGrpc.java index be156037f9f5..e0236f85860c 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing and retrieving few-shot examples. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/example_store_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExampleStoreServiceGrpc { @@ -873,8 +870,9 @@ protected ExampleStoreServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createExampleStore( - com.google.cloud.aiplatform.v1beta1.CreateExampleStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateExampleStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExampleStoreMethod(), getCallOptions(), request); } @@ -886,8 +884,9 @@ public com.google.longrunning.Operation createExampleStore( * */ public com.google.cloud.aiplatform.v1beta1.ExampleStore getExampleStore( - com.google.cloud.aiplatform.v1beta1.GetExampleStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetExampleStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExampleStoreMethod(), getCallOptions(), request); } @@ -899,8 +898,9 @@ public com.google.cloud.aiplatform.v1beta1.ExampleStore getExampleStore( * */ public com.google.longrunning.Operation updateExampleStore( - com.google.cloud.aiplatform.v1beta1.UpdateExampleStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateExampleStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExampleStoreMethod(), getCallOptions(), request); } @@ -912,8 +912,9 @@ public com.google.longrunning.Operation updateExampleStore( * */ public com.google.longrunning.Operation deleteExampleStore( - com.google.cloud.aiplatform.v1beta1.DeleteExampleStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteExampleStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExampleStoreMethod(), getCallOptions(), request); } @@ -925,8 +926,9 @@ public com.google.longrunning.Operation deleteExampleStore( * */ public com.google.cloud.aiplatform.v1beta1.ListExampleStoresResponse listExampleStores( - com.google.cloud.aiplatform.v1beta1.ListExampleStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListExampleStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExampleStoresMethod(), getCallOptions(), request); } @@ -938,8 +940,9 @@ public com.google.cloud.aiplatform.v1beta1.ListExampleStoresResponse listExample * */ public com.google.cloud.aiplatform.v1beta1.UpsertExamplesResponse upsertExamples( - com.google.cloud.aiplatform.v1beta1.UpsertExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpsertExamplesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpsertExamplesMethod(), getCallOptions(), request); } @@ -951,8 +954,9 @@ public com.google.cloud.aiplatform.v1beta1.UpsertExamplesResponse upsertExamples * */ public com.google.cloud.aiplatform.v1beta1.RemoveExamplesResponse removeExamples( - com.google.cloud.aiplatform.v1beta1.RemoveExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RemoveExamplesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveExamplesMethod(), getCallOptions(), request); } @@ -964,8 +968,9 @@ public com.google.cloud.aiplatform.v1beta1.RemoveExamplesResponse removeExamples * */ public com.google.cloud.aiplatform.v1beta1.SearchExamplesResponse searchExamples( - com.google.cloud.aiplatform.v1beta1.SearchExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SearchExamplesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchExamplesMethod(), getCallOptions(), request); } @@ -977,8 +982,9 @@ public com.google.cloud.aiplatform.v1beta1.SearchExamplesResponse searchExamples * */ public com.google.cloud.aiplatform.v1beta1.FetchExamplesResponse fetchExamples( - com.google.cloud.aiplatform.v1beta1.FetchExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.FetchExamplesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchExamplesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceGrpc.java index b4da6c6612b6..34637dd52a2b 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceGrpc.java @@ -24,9 +24,6 @@ * A service for Extension execution. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/extension_execution_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExtensionExecutionServiceGrpc { @@ -326,8 +323,9 @@ protected ExtensionExecutionServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.ExecuteExtensionResponse executeExtension( - com.google.cloud.aiplatform.v1beta1.ExecuteExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ExecuteExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExecuteExtensionMethod(), getCallOptions(), request); } @@ -339,8 +337,9 @@ public com.google.cloud.aiplatform.v1beta1.ExecuteExtensionResponse executeExten * */ public com.google.cloud.aiplatform.v1beta1.QueryExtensionResponse queryExtension( - com.google.cloud.aiplatform.v1beta1.QueryExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.QueryExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryExtensionMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceGrpc.java index 6c3da8cfbd76..a3b4e51a4c92 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's Extension registry. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/extension_registry_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExtensionRegistryServiceGrpc { @@ -558,8 +555,9 @@ protected ExtensionRegistryServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation importExtension( - com.google.cloud.aiplatform.v1beta1.ImportExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ImportExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportExtensionMethod(), getCallOptions(), request); } @@ -571,8 +569,9 @@ public com.google.longrunning.Operation importExtension( * */ public com.google.cloud.aiplatform.v1beta1.Extension getExtension( - com.google.cloud.aiplatform.v1beta1.GetExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExtensionMethod(), getCallOptions(), request); } @@ -584,8 +583,9 @@ public com.google.cloud.aiplatform.v1beta1.Extension getExtension( * */ public com.google.cloud.aiplatform.v1beta1.ListExtensionsResponse listExtensions( - com.google.cloud.aiplatform.v1beta1.ListExtensionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListExtensionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExtensionsMethod(), getCallOptions(), request); } @@ -597,8 +597,9 @@ public com.google.cloud.aiplatform.v1beta1.ListExtensionsResponse listExtensions * */ public com.google.cloud.aiplatform.v1beta1.Extension updateExtension( - com.google.cloud.aiplatform.v1beta1.UpdateExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExtensionMethod(), getCallOptions(), request); } @@ -610,8 +611,9 @@ public com.google.cloud.aiplatform.v1beta1.Extension updateExtension( * */ public com.google.longrunning.Operation deleteExtension( - com.google.cloud.aiplatform.v1beta1.DeleteExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExtensionMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceGrpc.java index 34176db08a2a..8705b9ab5956 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceGrpc.java @@ -25,9 +25,6 @@ * FeatureOnlineStore. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeatureOnlineStoreAdminServiceGrpc { @@ -1249,8 +1246,9 @@ protected FeatureOnlineStoreAdminServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createFeatureOnlineStore( - com.google.cloud.aiplatform.v1beta1.CreateFeatureOnlineStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateFeatureOnlineStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureOnlineStoreMethod(), getCallOptions(), request); } @@ -1262,8 +1260,9 @@ public com.google.longrunning.Operation createFeatureOnlineStore( * */ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore getFeatureOnlineStore( - com.google.cloud.aiplatform.v1beta1.GetFeatureOnlineStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetFeatureOnlineStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureOnlineStoreMethod(), getCallOptions(), request); } @@ -1276,8 +1275,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore getFeatureOnlineSt */ public com.google.cloud.aiplatform.v1beta1.ListFeatureOnlineStoresResponse listFeatureOnlineStores( - com.google.cloud.aiplatform.v1beta1.ListFeatureOnlineStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListFeatureOnlineStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureOnlineStoresMethod(), getCallOptions(), request); } @@ -1289,8 +1289,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore getFeatureOnlineSt * */ public com.google.longrunning.Operation updateFeatureOnlineStore( - com.google.cloud.aiplatform.v1beta1.UpdateFeatureOnlineStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureOnlineStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureOnlineStoreMethod(), getCallOptions(), request); } @@ -1303,8 +1304,9 @@ public com.google.longrunning.Operation updateFeatureOnlineStore( * */ public com.google.longrunning.Operation deleteFeatureOnlineStore( - com.google.cloud.aiplatform.v1beta1.DeleteFeatureOnlineStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureOnlineStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureOnlineStoreMethod(), getCallOptions(), request); } @@ -1316,8 +1318,9 @@ public com.google.longrunning.Operation deleteFeatureOnlineStore( * */ public com.google.longrunning.Operation createFeatureView( - com.google.cloud.aiplatform.v1beta1.CreateFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureViewMethod(), getCallOptions(), request); } @@ -1329,8 +1332,9 @@ public com.google.longrunning.Operation createFeatureView( * */ public com.google.cloud.aiplatform.v1beta1.FeatureView getFeatureView( - com.google.cloud.aiplatform.v1beta1.GetFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureViewMethod(), getCallOptions(), request); } @@ -1342,8 +1346,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureView getFeatureView( * */ public com.google.cloud.aiplatform.v1beta1.ListFeatureViewsResponse listFeatureViews( - com.google.cloud.aiplatform.v1beta1.ListFeatureViewsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListFeatureViewsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureViewsMethod(), getCallOptions(), request); } @@ -1355,8 +1360,9 @@ public com.google.cloud.aiplatform.v1beta1.ListFeatureViewsResponse listFeatureV * */ public com.google.longrunning.Operation updateFeatureView( - com.google.cloud.aiplatform.v1beta1.UpdateFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureViewMethod(), getCallOptions(), request); } @@ -1368,8 +1374,9 @@ public com.google.longrunning.Operation updateFeatureView( * */ public com.google.longrunning.Operation deleteFeatureView( - com.google.cloud.aiplatform.v1beta1.DeleteFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureViewMethod(), getCallOptions(), request); } @@ -1381,8 +1388,9 @@ public com.google.longrunning.Operation deleteFeatureView( * */ public com.google.cloud.aiplatform.v1beta1.SyncFeatureViewResponse syncFeatureView( - com.google.cloud.aiplatform.v1beta1.SyncFeatureViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SyncFeatureViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSyncFeatureViewMethod(), getCallOptions(), request); } @@ -1394,8 +1402,9 @@ public com.google.cloud.aiplatform.v1beta1.SyncFeatureViewResponse syncFeatureVi * */ public com.google.cloud.aiplatform.v1beta1.FeatureViewSync getFeatureViewSync( - com.google.cloud.aiplatform.v1beta1.GetFeatureViewSyncRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetFeatureViewSyncRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureViewSyncMethod(), getCallOptions(), request); } @@ -1407,8 +1416,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureViewSync getFeatureViewSync( * */ public com.google.cloud.aiplatform.v1beta1.ListFeatureViewSyncsResponse listFeatureViewSyncs( - com.google.cloud.aiplatform.v1beta1.ListFeatureViewSyncsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListFeatureViewSyncsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureViewSyncsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceGrpc.java index 6fd09b5b2e3f..a9f8b85159d2 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceGrpc.java @@ -24,9 +24,6 @@ * A service for fetching feature values from the online store. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/feature_online_store_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeatureOnlineStoreServiceGrpc { @@ -612,8 +609,9 @@ protected FeatureOnlineStoreServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse fetchFeatureValues( - com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchFeatureValuesMethod(), getCallOptions(), request); } @@ -645,8 +643,9 @@ public com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse fetchFeatu * */ public com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse searchNearestEntities( - com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchNearestEntitiesMethod(), getCallOptions(), request); } @@ -678,8 +677,9 @@ public com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse searchN */ public com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse generateFetchAccessToken( - com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateFetchAccessTokenMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceGrpc.java index c18a7cbb5cc8..182458ac6c81 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceGrpc.java @@ -25,9 +25,6 @@ * FeatureRegistry. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/feature_registry_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeatureRegistryServiceGrpc { @@ -1685,8 +1682,9 @@ protected FeatureRegistryServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createFeatureGroup( - com.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureGroupMethod(), getCallOptions(), request); } @@ -1698,8 +1696,9 @@ public com.google.longrunning.Operation createFeatureGroup( * */ public com.google.cloud.aiplatform.v1beta1.FeatureGroup getFeatureGroup( - com.google.cloud.aiplatform.v1beta1.GetFeatureGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetFeatureGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureGroupMethod(), getCallOptions(), request); } @@ -1711,8 +1710,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureGroup getFeatureGroup( * */ public com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsResponse listFeatureGroups( - com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureGroupsMethod(), getCallOptions(), request); } @@ -1724,8 +1724,9 @@ public com.google.cloud.aiplatform.v1beta1.ListFeatureGroupsResponse listFeature * */ public com.google.longrunning.Operation updateFeatureGroup( - com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureGroupMethod(), getCallOptions(), request); } @@ -1737,8 +1738,9 @@ public com.google.longrunning.Operation updateFeatureGroup( * */ public com.google.longrunning.Operation deleteFeatureGroup( - com.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureGroupMethod(), getCallOptions(), request); } @@ -1750,8 +1752,9 @@ public com.google.longrunning.Operation deleteFeatureGroup( * */ public com.google.longrunning.Operation createFeature( - com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureMethod(), getCallOptions(), request); } @@ -1763,8 +1766,9 @@ public com.google.longrunning.Operation createFeature( * */ public com.google.longrunning.Operation batchCreateFeatures( - com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateFeaturesMethod(), getCallOptions(), request); } @@ -1776,8 +1780,9 @@ public com.google.longrunning.Operation batchCreateFeatures( * */ public com.google.cloud.aiplatform.v1beta1.Feature getFeature( - com.google.cloud.aiplatform.v1beta1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureMethod(), getCallOptions(), request); } @@ -1789,8 +1794,9 @@ public com.google.cloud.aiplatform.v1beta1.Feature getFeature( * */ public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse listFeatures( - com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeaturesMethod(), getCallOptions(), request); } @@ -1802,8 +1808,9 @@ public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse listFeatures( * */ public com.google.longrunning.Operation updateFeature( - com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); } @@ -1815,8 +1822,9 @@ public com.google.longrunning.Operation updateFeature( * */ public com.google.longrunning.Operation deleteFeature( - com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); } @@ -1828,8 +1836,9 @@ public com.google.longrunning.Operation deleteFeature( * */ public com.google.longrunning.Operation createFeatureMonitor( - com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureMonitorMethod(), getCallOptions(), request); } @@ -1841,8 +1850,9 @@ public com.google.longrunning.Operation createFeatureMonitor( * */ public com.google.cloud.aiplatform.v1beta1.FeatureMonitor getFeatureMonitor( - com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureMonitorMethod(), getCallOptions(), request); } @@ -1854,8 +1864,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureMonitor getFeatureMonitor( * */ public com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse listFeatureMonitors( - com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureMonitorsMethod(), getCallOptions(), request); } @@ -1867,8 +1878,9 @@ public com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse listFeatu * */ public com.google.longrunning.Operation updateFeatureMonitor( - com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureMonitorMethod(), getCallOptions(), request); } @@ -1880,8 +1892,9 @@ public com.google.longrunning.Operation updateFeatureMonitor( * */ public com.google.longrunning.Operation deleteFeatureMonitor( - com.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureMonitorMethod(), getCallOptions(), request); } @@ -1893,8 +1906,9 @@ public com.google.longrunning.Operation deleteFeatureMonitor( * */ public com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob createFeatureMonitorJob( - com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureMonitorJobMethod(), getCallOptions(), request); } @@ -1906,8 +1920,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob createFeatureMonito * */ public com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob getFeatureMonitorJob( - com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureMonitorJobMethod(), getCallOptions(), request); } @@ -1920,8 +1935,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureMonitorJob getFeatureMonitorJo */ public com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse listFeatureMonitorJobs( - com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeatureMonitorJobsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceGrpc.java index 2570c84f5dfd..ebb615eb2126 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceGrpc.java @@ -24,9 +24,6 @@ * A service for serving online feature values. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/featurestore_online_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeaturestoreOnlineServingServiceGrpc { @@ -439,8 +436,9 @@ protected FeaturestoreOnlineServingServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse readFeatureValues( - com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadFeatureValuesMethod(), getCallOptions(), request); } @@ -473,8 +471,9 @@ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse readFeature * */ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse writeFeatureValues( - com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteFeatureValuesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java index 47b95bcb1cd4..91685ce6e64e 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java @@ -24,9 +24,6 @@ * The service that handles CRUD and List for resources for Featurestore. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/featurestore_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeaturestoreServiceGrpc { @@ -1858,8 +1855,9 @@ protected FeaturestoreServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createFeaturestore( - com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeaturestoreMethod(), getCallOptions(), request); } @@ -1871,8 +1869,9 @@ public com.google.longrunning.Operation createFeaturestore( * */ public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore( - com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeaturestoreMethod(), getCallOptions(), request); } @@ -1884,8 +1883,9 @@ public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore( * */ public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse listFeaturestores( - com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeaturestoresMethod(), getCallOptions(), request); } @@ -1897,8 +1897,9 @@ public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse listFeature * */ public com.google.longrunning.Operation updateFeaturestore( - com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeaturestoreMethod(), getCallOptions(), request); } @@ -1911,8 +1912,9 @@ public com.google.longrunning.Operation updateFeaturestore( * */ public com.google.longrunning.Operation deleteFeaturestore( - com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeaturestoreMethod(), getCallOptions(), request); } @@ -1924,8 +1926,9 @@ public com.google.longrunning.Operation deleteFeaturestore( * */ public com.google.longrunning.Operation createEntityType( - com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); } @@ -1937,8 +1940,9 @@ public com.google.longrunning.Operation createEntityType( * */ public com.google.cloud.aiplatform.v1beta1.EntityType getEntityType( - com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); } @@ -1950,8 +1954,9 @@ public com.google.cloud.aiplatform.v1beta1.EntityType getEntityType( * */ public com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse listEntityTypes( - com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntityTypesMethod(), getCallOptions(), request); } @@ -1963,8 +1968,9 @@ public com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse listEntityTyp * */ public com.google.cloud.aiplatform.v1beta1.EntityType updateEntityType( - com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); } @@ -1977,8 +1983,9 @@ public com.google.cloud.aiplatform.v1beta1.EntityType updateEntityType( * */ public com.google.longrunning.Operation deleteEntityType( - com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); } @@ -1990,8 +1997,9 @@ public com.google.longrunning.Operation deleteEntityType( * */ public com.google.longrunning.Operation createFeature( - com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureMethod(), getCallOptions(), request); } @@ -2003,8 +2011,9 @@ public com.google.longrunning.Operation createFeature( * */ public com.google.longrunning.Operation batchCreateFeatures( - com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateFeaturesMethod(), getCallOptions(), request); } @@ -2016,8 +2025,9 @@ public com.google.longrunning.Operation batchCreateFeatures( * */ public com.google.cloud.aiplatform.v1beta1.Feature getFeature( - com.google.cloud.aiplatform.v1beta1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureMethod(), getCallOptions(), request); } @@ -2029,8 +2039,9 @@ public com.google.cloud.aiplatform.v1beta1.Feature getFeature( * */ public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse listFeatures( - com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeaturesMethod(), getCallOptions(), request); } @@ -2042,8 +2053,9 @@ public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse listFeatures( * */ public com.google.cloud.aiplatform.v1beta1.Feature updateFeature( - com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); } @@ -2055,8 +2067,9 @@ public com.google.cloud.aiplatform.v1beta1.Feature updateFeature( * */ public com.google.longrunning.Operation deleteFeature( - com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); } @@ -2083,8 +2096,9 @@ public com.google.longrunning.Operation deleteFeature( * */ public com.google.longrunning.Operation importFeatureValues( - com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportFeatureValuesMethod(), getCallOptions(), request); } @@ -2100,8 +2114,9 @@ public com.google.longrunning.Operation importFeatureValues( * */ public com.google.longrunning.Operation batchReadFeatureValues( - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchReadFeatureValuesMethod(), getCallOptions(), request); } @@ -2113,8 +2128,9 @@ public com.google.longrunning.Operation batchReadFeatureValues( * */ public com.google.longrunning.Operation exportFeatureValues( - com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportFeatureValuesMethod(), getCallOptions(), request); } @@ -2133,8 +2149,9 @@ public com.google.longrunning.Operation exportFeatureValues( * */ public com.google.longrunning.Operation deleteFeatureValues( - com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureValuesMethod(), getCallOptions(), request); } @@ -2146,8 +2163,9 @@ public com.google.longrunning.Operation deleteFeatureValues( * */ public com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse searchFeatures( - com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchFeaturesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceGrpc.java index 1ecd69266a84..d98a5026a0f5 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing Vertex AI's CachedContent resource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/gen_ai_cache_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GenAiCacheServiceGrpc { @@ -567,8 +564,9 @@ protected GenAiCacheServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.CachedContent createCachedContent( - com.google.cloud.aiplatform.v1beta1.CreateCachedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateCachedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCachedContentMethod(), getCallOptions(), request); } @@ -580,8 +578,9 @@ public com.google.cloud.aiplatform.v1beta1.CachedContent createCachedContent( * */ public com.google.cloud.aiplatform.v1beta1.CachedContent getCachedContent( - com.google.cloud.aiplatform.v1beta1.GetCachedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetCachedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCachedContentMethod(), getCallOptions(), request); } @@ -593,8 +592,9 @@ public com.google.cloud.aiplatform.v1beta1.CachedContent getCachedContent( * */ public com.google.cloud.aiplatform.v1beta1.CachedContent updateCachedContent( - com.google.cloud.aiplatform.v1beta1.UpdateCachedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateCachedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCachedContentMethod(), getCallOptions(), request); } @@ -606,8 +606,9 @@ public com.google.cloud.aiplatform.v1beta1.CachedContent updateCachedContent( * */ public com.google.protobuf.Empty deleteCachedContent( - com.google.cloud.aiplatform.v1beta1.DeleteCachedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteCachedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCachedContentMethod(), getCallOptions(), request); } @@ -619,8 +620,9 @@ public com.google.protobuf.Empty deleteCachedContent( * */ public com.google.cloud.aiplatform.v1beta1.ListCachedContentsResponse listCachedContents( - com.google.cloud.aiplatform.v1beta1.ListCachedContentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListCachedContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCachedContentsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceGrpc.java index 75d4cc922a53..4fa149de9e32 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceGrpc.java @@ -24,9 +24,6 @@ * A service for creating and managing GenAI Tuning Jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/genai_tuning_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GenAiTuningServiceGrpc { @@ -578,8 +575,9 @@ protected GenAiTuningServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.TuningJob createTuningJob( - com.google.cloud.aiplatform.v1beta1.CreateTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTuningJobMethod(), getCallOptions(), request); } @@ -591,8 +589,9 @@ public com.google.cloud.aiplatform.v1beta1.TuningJob createTuningJob( * */ public com.google.cloud.aiplatform.v1beta1.TuningJob getTuningJob( - com.google.cloud.aiplatform.v1beta1.GetTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTuningJobMethod(), getCallOptions(), request); } @@ -604,8 +603,9 @@ public com.google.cloud.aiplatform.v1beta1.TuningJob getTuningJob( * */ public com.google.cloud.aiplatform.v1beta1.ListTuningJobsResponse listTuningJobs( - com.google.cloud.aiplatform.v1beta1.ListTuningJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListTuningJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTuningJobsMethod(), getCallOptions(), request); } @@ -628,8 +628,9 @@ public com.google.cloud.aiplatform.v1beta1.ListTuningJobsResponse listTuningJobs * */ public com.google.protobuf.Empty cancelTuningJob( - com.google.cloud.aiplatform.v1beta1.CancelTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CancelTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelTuningJobMethod(), getCallOptions(), request); } @@ -643,8 +644,9 @@ public com.google.protobuf.Empty cancelTuningJob( * */ public com.google.longrunning.Operation rebaseTunedModel( - com.google.cloud.aiplatform.v1beta1.RebaseTunedModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RebaseTunedModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRebaseTunedModelMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceGrpc.java index 64ade1917574..21732ce893c7 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's IndexEndpoints. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/index_endpoint_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IndexEndpointServiceGrpc { @@ -800,8 +797,9 @@ protected IndexEndpointServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createIndexEndpoint( - com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIndexEndpointMethod(), getCallOptions(), request); } @@ -813,8 +811,9 @@ public com.google.longrunning.Operation createIndexEndpoint( * */ public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint( - com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIndexEndpointMethod(), getCallOptions(), request); } @@ -826,8 +825,9 @@ public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint( * */ public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse listIndexEndpoints( - com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIndexEndpointsMethod(), getCallOptions(), request); } @@ -839,8 +839,9 @@ public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse listIndexE * */ public com.google.cloud.aiplatform.v1beta1.IndexEndpoint updateIndexEndpoint( - com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIndexEndpointMethod(), getCallOptions(), request); } @@ -852,8 +853,9 @@ public com.google.cloud.aiplatform.v1beta1.IndexEndpoint updateIndexEndpoint( * */ public com.google.longrunning.Operation deleteIndexEndpoint( - com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIndexEndpointMethod(), getCallOptions(), request); } @@ -867,8 +869,9 @@ public com.google.longrunning.Operation deleteIndexEndpoint( * */ public com.google.longrunning.Operation deployIndex( - com.google.cloud.aiplatform.v1beta1.DeployIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeployIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployIndexMethod(), getCallOptions(), request); } @@ -881,8 +884,9 @@ public com.google.longrunning.Operation deployIndex( * */ public com.google.longrunning.Operation undeployIndex( - com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployIndexMethod(), getCallOptions(), request); } @@ -894,8 +898,9 @@ public com.google.longrunning.Operation undeployIndex( * */ public com.google.longrunning.Operation mutateDeployedIndex( - com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMutateDeployedIndexMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceGrpc.java index 972e1b78e7fe..c20df1568cbb 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceGrpc.java @@ -24,9 +24,6 @@ * A service for creating and managing Vertex AI's Index resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/index_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IndexServiceGrpc { @@ -768,8 +765,9 @@ protected IndexServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createIndex( - com.google.cloud.aiplatform.v1beta1.CreateIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIndexMethod(), getCallOptions(), request); } @@ -781,8 +779,9 @@ public com.google.longrunning.Operation createIndex( * */ public com.google.cloud.aiplatform.v1beta1.Index getIndex( - com.google.cloud.aiplatform.v1beta1.GetIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIndexMethod(), getCallOptions(), request); } @@ -794,8 +793,9 @@ public com.google.cloud.aiplatform.v1beta1.Index getIndex( * */ public com.google.longrunning.Operation importIndex( - com.google.cloud.aiplatform.v1beta1.ImportIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ImportIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportIndexMethod(), getCallOptions(), request); } @@ -807,8 +807,9 @@ public com.google.longrunning.Operation importIndex( * */ public com.google.cloud.aiplatform.v1beta1.ListIndexesResponse listIndexes( - com.google.cloud.aiplatform.v1beta1.ListIndexesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListIndexesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIndexesMethod(), getCallOptions(), request); } @@ -820,8 +821,9 @@ public com.google.cloud.aiplatform.v1beta1.ListIndexesResponse listIndexes( * */ public com.google.longrunning.Operation updateIndex( - com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIndexMethod(), getCallOptions(), request); } @@ -836,8 +838,9 @@ public com.google.longrunning.Operation updateIndex( * */ public com.google.longrunning.Operation deleteIndex( - com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIndexMethod(), getCallOptions(), request); } @@ -849,8 +852,9 @@ public com.google.longrunning.Operation deleteIndex( * */ public com.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse upsertDatapoints( - com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpsertDatapointsMethod(), getCallOptions(), request); } @@ -862,8 +866,9 @@ public com.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse upsertDatapo * */ public com.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse removeDatapoints( - com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveDatapointsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceGrpc.java index 5145f172bf52..0f2c8be0b751 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceGrpc.java @@ -24,9 +24,6 @@ * A service for creating and managing Vertex AI's jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/job_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class JobServiceGrpc { @@ -3111,8 +3108,9 @@ protected JobServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.CustomJob createCustomJob( - com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomJobMethod(), getCallOptions(), request); } @@ -3124,8 +3122,9 @@ public com.google.cloud.aiplatform.v1beta1.CustomJob createCustomJob( * */ public com.google.cloud.aiplatform.v1beta1.CustomJob getCustomJob( - com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomJobMethod(), getCallOptions(), request); } @@ -3137,8 +3136,9 @@ public com.google.cloud.aiplatform.v1beta1.CustomJob getCustomJob( * */ public com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse listCustomJobs( - com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomJobsMethod(), getCallOptions(), request); } @@ -3150,8 +3150,9 @@ public com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse listCustomJobs * */ public com.google.longrunning.Operation deleteCustomJob( - com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomJobMethod(), getCallOptions(), request); } @@ -3175,8 +3176,9 @@ public com.google.longrunning.Operation deleteCustomJob( * */ public com.google.protobuf.Empty cancelCustomJob( - com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelCustomJobMethod(), getCallOptions(), request); } @@ -3188,8 +3190,9 @@ public com.google.protobuf.Empty cancelCustomJob( * */ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob createDataLabelingJob( - com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataLabelingJobMethod(), getCallOptions(), request); } @@ -3201,8 +3204,9 @@ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob createDataLabelingJob * */ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob getDataLabelingJob( - com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataLabelingJobMethod(), getCallOptions(), request); } @@ -3214,8 +3218,9 @@ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob getDataLabelingJob( * */ public com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse listDataLabelingJobs( - com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataLabelingJobsMethod(), getCallOptions(), request); } @@ -3227,8 +3232,9 @@ public com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse listData * */ public com.google.longrunning.Operation deleteDataLabelingJob( - com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataLabelingJobMethod(), getCallOptions(), request); } @@ -3240,8 +3246,9 @@ public com.google.longrunning.Operation deleteDataLabelingJob( * */ public com.google.protobuf.Empty cancelDataLabelingJob( - com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelDataLabelingJobMethod(), getCallOptions(), request); } @@ -3254,8 +3261,9 @@ public com.google.protobuf.Empty cancelDataLabelingJob( */ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob createHyperparameterTuningJob( - com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -3267,8 +3275,9 @@ public com.google.protobuf.Empty cancelDataLabelingJob( * */ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparameterTuningJob( - com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -3281,8 +3290,9 @@ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparam */ public com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse listHyperparameterTuningJobs( - com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHyperparameterTuningJobsMethod(), getCallOptions(), request); } @@ -3294,8 +3304,9 @@ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparam * */ public com.google.longrunning.Operation deleteHyperparameterTuningJob( - com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -3320,8 +3331,9 @@ public com.google.longrunning.Operation deleteHyperparameterTuningJob( * */ public com.google.protobuf.Empty cancelHyperparameterTuningJob( - com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelHyperparameterTuningJobMethod(), getCallOptions(), request); } @@ -3333,8 +3345,9 @@ public com.google.protobuf.Empty cancelHyperparameterTuningJob( * */ public com.google.cloud.aiplatform.v1beta1.NasJob createNasJob( - com.google.cloud.aiplatform.v1beta1.CreateNasJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateNasJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNasJobMethod(), getCallOptions(), request); } @@ -3346,8 +3359,9 @@ public com.google.cloud.aiplatform.v1beta1.NasJob createNasJob( * */ public com.google.cloud.aiplatform.v1beta1.NasJob getNasJob( - com.google.cloud.aiplatform.v1beta1.GetNasJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetNasJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNasJobMethod(), getCallOptions(), request); } @@ -3359,8 +3373,9 @@ public com.google.cloud.aiplatform.v1beta1.NasJob getNasJob( * */ public com.google.cloud.aiplatform.v1beta1.ListNasJobsResponse listNasJobs( - com.google.cloud.aiplatform.v1beta1.ListNasJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListNasJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNasJobsMethod(), getCallOptions(), request); } @@ -3372,8 +3387,9 @@ public com.google.cloud.aiplatform.v1beta1.ListNasJobsResponse listNasJobs( * */ public com.google.longrunning.Operation deleteNasJob( - com.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNasJobMethod(), getCallOptions(), request); } @@ -3397,8 +3413,9 @@ public com.google.longrunning.Operation deleteNasJob( * */ public com.google.protobuf.Empty cancelNasJob( - com.google.cloud.aiplatform.v1beta1.CancelNasJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CancelNasJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelNasJobMethod(), getCallOptions(), request); } @@ -3410,8 +3427,9 @@ public com.google.protobuf.Empty cancelNasJob( * */ public com.google.cloud.aiplatform.v1beta1.NasTrialDetail getNasTrialDetail( - com.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNasTrialDetailMethod(), getCallOptions(), request); } @@ -3423,8 +3441,9 @@ public com.google.cloud.aiplatform.v1beta1.NasTrialDetail getNasTrialDetail( * */ public com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse listNasTrialDetails( - com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNasTrialDetailsMethod(), getCallOptions(), request); } @@ -3437,8 +3456,9 @@ public com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse listNasTr * */ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob createBatchPredictionJob( - com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBatchPredictionJobMethod(), getCallOptions(), request); } @@ -3450,8 +3470,9 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob createBatchPredict * */ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob getBatchPredictionJob( - com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBatchPredictionJobMethod(), getCallOptions(), request); } @@ -3464,8 +3485,9 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob getBatchPrediction */ public com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse listBatchPredictionJobs( - com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBatchPredictionJobsMethod(), getCallOptions(), request); } @@ -3478,8 +3500,9 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob getBatchPrediction * */ public com.google.longrunning.Operation deleteBatchPredictionJob( - com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBatchPredictionJobMethod(), getCallOptions(), request); } @@ -3501,8 +3524,9 @@ public com.google.longrunning.Operation deleteBatchPredictionJob( * */ public com.google.protobuf.Empty cancelBatchPredictionJob( - com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelBatchPredictionJobMethod(), getCallOptions(), request); } @@ -3516,8 +3540,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( */ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3531,8 +3556,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( public com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse searchModelDeploymentMonitoringStatsAnomalies( com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchModelDeploymentMonitoringStatsAnomaliesMethod(), getCallOptions(), @@ -3548,8 +3574,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( */ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3562,8 +3589,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( */ public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse listModelDeploymentMonitoringJobs( - com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelDeploymentMonitoringJobsMethod(), getCallOptions(), request); } @@ -3575,8 +3603,9 @@ public com.google.protobuf.Empty cancelBatchPredictionJob( * */ public com.google.longrunning.Operation updateModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3588,8 +3617,9 @@ public com.google.longrunning.Operation updateModelDeploymentMonitoringJob( * */ public com.google.longrunning.Operation deleteModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3604,8 +3634,9 @@ public com.google.longrunning.Operation deleteModelDeploymentMonitoringJob( * */ public com.google.protobuf.Empty pauseModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } @@ -3619,8 +3650,9 @@ public com.google.protobuf.Empty pauseModelDeploymentMonitoringJob( * */ public com.google.protobuf.Empty resumeModelDeploymentMonitoringJob( - com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeModelDeploymentMonitoringJobMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceGrpc.java index b6f81ff1a9c1..3f21e04154d2 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceGrpc.java @@ -24,9 +24,6 @@ * Service for LLM related utility functions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/llm_utility_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LlmUtilityServiceGrpc { @@ -243,8 +240,9 @@ protected LlmUtilityServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.ComputeTokensResponse computeTokens( - com.google.cloud.aiplatform.v1beta1.ComputeTokensRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ComputeTokensRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeTokensMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceGrpc.java index fa7cca71acbb..f16a7cbc434f 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceGrpc.java @@ -25,9 +25,6 @@ * search at scale. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/match_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MatchServiceGrpc { @@ -329,8 +326,9 @@ protected MatchServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse findNeighbors( - com.google.cloud.aiplatform.v1beta1.FindNeighborsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.FindNeighborsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFindNeighborsMethod(), getCallOptions(), request); } @@ -343,8 +341,9 @@ public com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse findNeighbors( * */ public com.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse readIndexDatapoints( - com.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ReadIndexDatapointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadIndexDatapointsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceGrpc.java index a5ac5eac3842..6a034bcad0b1 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing memories for LLM applications. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/memory_bank_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MemoryBankServiceGrpc { @@ -693,8 +690,9 @@ protected MemoryBankServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createMemory( - com.google.cloud.aiplatform.v1beta1.CreateMemoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateMemoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMemoryMethod(), getCallOptions(), request); } @@ -706,8 +704,9 @@ public com.google.longrunning.Operation createMemory( * */ public com.google.cloud.aiplatform.v1beta1.Memory getMemory( - com.google.cloud.aiplatform.v1beta1.GetMemoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetMemoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMemoryMethod(), getCallOptions(), request); } @@ -719,8 +718,9 @@ public com.google.cloud.aiplatform.v1beta1.Memory getMemory( * */ public com.google.longrunning.Operation updateMemory( - com.google.cloud.aiplatform.v1beta1.UpdateMemoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateMemoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMemoryMethod(), getCallOptions(), request); } @@ -732,8 +732,9 @@ public com.google.longrunning.Operation updateMemory( * */ public com.google.cloud.aiplatform.v1beta1.ListMemoriesResponse listMemories( - com.google.cloud.aiplatform.v1beta1.ListMemoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListMemoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMemoriesMethod(), getCallOptions(), request); } @@ -745,8 +746,9 @@ public com.google.cloud.aiplatform.v1beta1.ListMemoriesResponse listMemories( * */ public com.google.longrunning.Operation deleteMemory( - com.google.cloud.aiplatform.v1beta1.DeleteMemoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteMemoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMemoryMethod(), getCallOptions(), request); } @@ -758,8 +760,9 @@ public com.google.longrunning.Operation deleteMemory( * */ public com.google.longrunning.Operation generateMemories( - com.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateMemoriesMethod(), getCallOptions(), request); } @@ -771,8 +774,9 @@ public com.google.longrunning.Operation generateMemories( * */ public com.google.cloud.aiplatform.v1beta1.RetrieveMemoriesResponse retrieveMemories( - com.google.cloud.aiplatform.v1beta1.RetrieveMemoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RetrieveMemoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveMemoriesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceGrpc.java index 277bb97d55d0..5988bbd86f99 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceGrpc.java @@ -24,9 +24,6 @@ * Service for reading and writing metadata entries. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/metadata_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MetadataServiceGrpc { @@ -2727,8 +2724,9 @@ protected MetadataServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createMetadataStore( - com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMetadataStoreMethod(), getCallOptions(), request); } @@ -2740,8 +2738,9 @@ public com.google.longrunning.Operation createMetadataStore( * */ public com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStore( - com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetadataStoreMethod(), getCallOptions(), request); } @@ -2753,8 +2752,9 @@ public com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStore( * */ public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse listMetadataStores( - com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetadataStoresMethod(), getCallOptions(), request); } @@ -2767,8 +2767,9 @@ public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse listMetada * */ public com.google.longrunning.Operation deleteMetadataStore( - com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMetadataStoreMethod(), getCallOptions(), request); } @@ -2780,8 +2781,9 @@ public com.google.longrunning.Operation deleteMetadataStore( * */ public com.google.cloud.aiplatform.v1beta1.Artifact createArtifact( - com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateArtifactMethod(), getCallOptions(), request); } @@ -2793,8 +2795,9 @@ public com.google.cloud.aiplatform.v1beta1.Artifact createArtifact( * */ public com.google.cloud.aiplatform.v1beta1.Artifact getArtifact( - com.google.cloud.aiplatform.v1beta1.GetArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetArtifactMethod(), getCallOptions(), request); } @@ -2806,8 +2809,9 @@ public com.google.cloud.aiplatform.v1beta1.Artifact getArtifact( * */ public com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse listArtifacts( - com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListArtifactsMethod(), getCallOptions(), request); } @@ -2819,8 +2823,9 @@ public com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse listArtifacts( * */ public com.google.cloud.aiplatform.v1beta1.Artifact updateArtifact( - com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateArtifactMethod(), getCallOptions(), request); } @@ -2832,8 +2837,9 @@ public com.google.cloud.aiplatform.v1beta1.Artifact updateArtifact( * */ public com.google.longrunning.Operation deleteArtifact( - com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteArtifactMethod(), getCallOptions(), request); } @@ -2845,8 +2851,9 @@ public com.google.longrunning.Operation deleteArtifact( * */ public com.google.longrunning.Operation purgeArtifacts( - com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeArtifactsMethod(), getCallOptions(), request); } @@ -2858,8 +2865,9 @@ public com.google.longrunning.Operation purgeArtifacts( * */ public com.google.cloud.aiplatform.v1beta1.Context createContext( - com.google.cloud.aiplatform.v1beta1.CreateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateContextMethod(), getCallOptions(), request); } @@ -2871,8 +2879,9 @@ public com.google.cloud.aiplatform.v1beta1.Context createContext( * */ public com.google.cloud.aiplatform.v1beta1.Context getContext( - com.google.cloud.aiplatform.v1beta1.GetContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetContextMethod(), getCallOptions(), request); } @@ -2884,8 +2893,9 @@ public com.google.cloud.aiplatform.v1beta1.Context getContext( * */ public com.google.cloud.aiplatform.v1beta1.ListContextsResponse listContexts( - com.google.cloud.aiplatform.v1beta1.ListContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListContextsMethod(), getCallOptions(), request); } @@ -2897,8 +2907,9 @@ public com.google.cloud.aiplatform.v1beta1.ListContextsResponse listContexts( * */ public com.google.cloud.aiplatform.v1beta1.Context updateContext( - com.google.cloud.aiplatform.v1beta1.UpdateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateContextMethod(), getCallOptions(), request); } @@ -2910,8 +2921,9 @@ public com.google.cloud.aiplatform.v1beta1.Context updateContext( * */ public com.google.longrunning.Operation deleteContext( - com.google.cloud.aiplatform.v1beta1.DeleteContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteContextMethod(), getCallOptions(), request); } @@ -2923,8 +2935,9 @@ public com.google.longrunning.Operation deleteContext( * */ public com.google.longrunning.Operation purgeContexts( - com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeContextsMethod(), getCallOptions(), request); } @@ -2939,8 +2952,9 @@ public com.google.longrunning.Operation purgeContexts( */ public com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExecutions( - com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddContextArtifactsAndExecutionsMethod(), getCallOptions(), request); } @@ -2956,8 +2970,9 @@ public com.google.longrunning.Operation purgeContexts( * */ public com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse addContextChildren( - com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddContextChildrenMethod(), getCallOptions(), request); } @@ -2971,8 +2986,9 @@ public com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse addContext * */ public com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse removeContextChildren( - com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveContextChildrenMethod(), getCallOptions(), request); } @@ -2985,8 +3001,9 @@ public com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse removeC * */ public com.google.cloud.aiplatform.v1beta1.LineageSubgraph queryContextLineageSubgraph( - com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryContextLineageSubgraphMethod(), getCallOptions(), request); } @@ -2998,8 +3015,9 @@ public com.google.cloud.aiplatform.v1beta1.LineageSubgraph queryContextLineageSu * */ public com.google.cloud.aiplatform.v1beta1.Execution createExecution( - com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExecutionMethod(), getCallOptions(), request); } @@ -3011,8 +3029,9 @@ public com.google.cloud.aiplatform.v1beta1.Execution createExecution( * */ public com.google.cloud.aiplatform.v1beta1.Execution getExecution( - com.google.cloud.aiplatform.v1beta1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExecutionMethod(), getCallOptions(), request); } @@ -3024,8 +3043,9 @@ public com.google.cloud.aiplatform.v1beta1.Execution getExecution( * */ public com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse listExecutions( - com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExecutionsMethod(), getCallOptions(), request); } @@ -3037,8 +3057,9 @@ public com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse listExecutions * */ public com.google.cloud.aiplatform.v1beta1.Execution updateExecution( - com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExecutionMethod(), getCallOptions(), request); } @@ -3050,8 +3071,9 @@ public com.google.cloud.aiplatform.v1beta1.Execution updateExecution( * */ public com.google.longrunning.Operation deleteExecution( - com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); } @@ -3063,8 +3085,9 @@ public com.google.longrunning.Operation deleteExecution( * */ public com.google.longrunning.Operation purgeExecutions( - com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeExecutionsMethod(), getCallOptions(), request); } @@ -3079,8 +3102,9 @@ public com.google.longrunning.Operation purgeExecutions( * */ public com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse addExecutionEvents( - com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddExecutionEventsMethod(), getCallOptions(), request); } @@ -3094,8 +3118,9 @@ public com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse addExecuti * */ public com.google.cloud.aiplatform.v1beta1.LineageSubgraph queryExecutionInputsAndOutputs( - com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryExecutionInputsAndOutputsMethod(), getCallOptions(), request); } @@ -3107,8 +3132,9 @@ public com.google.cloud.aiplatform.v1beta1.LineageSubgraph queryExecutionInputsA * */ public com.google.cloud.aiplatform.v1beta1.MetadataSchema createMetadataSchema( - com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMetadataSchemaMethod(), getCallOptions(), request); } @@ -3120,8 +3146,9 @@ public com.google.cloud.aiplatform.v1beta1.MetadataSchema createMetadataSchema( * */ public com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchema( - com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetadataSchemaMethod(), getCallOptions(), request); } @@ -3133,8 +3160,9 @@ public com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchema( * */ public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse listMetadataSchemas( - com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetadataSchemasMethod(), getCallOptions(), request); } @@ -3147,8 +3175,9 @@ public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse listMetad * */ public com.google.cloud.aiplatform.v1beta1.LineageSubgraph queryArtifactLineageSubgraph( - com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryArtifactLineageSubgraphMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceGrpc.java index 721884b3675d..e241c9113480 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceGrpc.java @@ -25,9 +25,6 @@ * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/migration_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MigrationServiceGrpc { @@ -342,8 +339,9 @@ protected MigrationServiceBlockingV2Stub build( */ public com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse searchMigratableResources( - com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMigratableResourcesMethod(), getCallOptions(), request); } @@ -356,8 +354,9 @@ protected MigrationServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation batchMigrateResources( - com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchMigrateResourcesMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceGrpc.java index 57eefe0c5443..d02e1cb71458 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceGrpc.java @@ -24,9 +24,6 @@ * The interface of Model Garden Service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/model_garden_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelGardenServiceGrpc { @@ -731,8 +728,9 @@ protected ModelGardenServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.PublisherModel getPublisherModel( - com.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPublisherModelMethod(), getCallOptions(), request); } @@ -744,8 +742,9 @@ public com.google.cloud.aiplatform.v1beta1.PublisherModel getPublisherModel( * */ public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse listPublisherModels( - com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPublisherModelsMethod(), getCallOptions(), request); } @@ -757,8 +756,8 @@ public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse listPubli * */ public com.google.longrunning.Operation deploy( - com.google.cloud.aiplatform.v1beta1.DeployRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeployRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployMethod(), getCallOptions(), request); } @@ -771,8 +770,9 @@ public com.google.longrunning.Operation deploy( */ @java.lang.Deprecated public com.google.longrunning.Operation deployPublisherModel( - com.google.cloud.aiplatform.v1beta1.DeployPublisherModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeployPublisherModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployPublisherModelMethod(), getCallOptions(), request); } @@ -784,8 +784,9 @@ public com.google.longrunning.Operation deployPublisherModel( * */ public com.google.longrunning.Operation exportPublisherModel( - com.google.cloud.aiplatform.v1beta1.ExportPublisherModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ExportPublisherModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportPublisherModelMethod(), getCallOptions(), request); } @@ -798,8 +799,9 @@ public com.google.longrunning.Operation exportPublisherModel( */ public com.google.cloud.aiplatform.v1beta1.PublisherModelEulaAcceptance checkPublisherModelEulaAcceptance( - com.google.cloud.aiplatform.v1beta1.CheckPublisherModelEulaAcceptanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CheckPublisherModelEulaAcceptanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckPublisherModelEulaAcceptanceMethod(), getCallOptions(), request); } @@ -812,8 +814,9 @@ public com.google.longrunning.Operation exportPublisherModel( */ public com.google.cloud.aiplatform.v1beta1.PublisherModelEulaAcceptance acceptPublisherModelEula( - com.google.cloud.aiplatform.v1beta1.AcceptPublisherModelEulaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AcceptPublisherModelEulaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcceptPublisherModelEulaMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceGrpc.java index 42cb4839ec3e..f44378bb7684 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceGrpc.java @@ -25,9 +25,6 @@ * `ModelMonitor` resources, `ModelMonitoringJob` resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/model_monitoring_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelMonitoringServiceGrpc { @@ -1086,8 +1083,9 @@ protected ModelMonitoringServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createModelMonitor( - com.google.cloud.aiplatform.v1beta1.CreateModelMonitorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateModelMonitorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelMonitorMethod(), getCallOptions(), request); } @@ -1099,8 +1097,9 @@ public com.google.longrunning.Operation createModelMonitor( * */ public com.google.longrunning.Operation updateModelMonitor( - com.google.cloud.aiplatform.v1beta1.UpdateModelMonitorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateModelMonitorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelMonitorMethod(), getCallOptions(), request); } @@ -1112,8 +1111,9 @@ public com.google.longrunning.Operation updateModelMonitor( * */ public com.google.cloud.aiplatform.v1beta1.ModelMonitor getModelMonitor( - com.google.cloud.aiplatform.v1beta1.GetModelMonitorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetModelMonitorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMonitorMethod(), getCallOptions(), request); } @@ -1125,8 +1125,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitor getModelMonitor( * */ public com.google.cloud.aiplatform.v1beta1.ListModelMonitorsResponse listModelMonitors( - com.google.cloud.aiplatform.v1beta1.ListModelMonitorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListModelMonitorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelMonitorsMethod(), getCallOptions(), request); } @@ -1138,8 +1139,9 @@ public com.google.cloud.aiplatform.v1beta1.ListModelMonitorsResponse listModelMo * */ public com.google.longrunning.Operation deleteModelMonitor( - com.google.cloud.aiplatform.v1beta1.DeleteModelMonitorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteModelMonitorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMonitorMethod(), getCallOptions(), request); } @@ -1151,8 +1153,9 @@ public com.google.longrunning.Operation deleteModelMonitor( * */ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringJob createModelMonitoringJob( - com.google.cloud.aiplatform.v1beta1.CreateModelMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateModelMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelMonitoringJobMethod(), getCallOptions(), request); } @@ -1164,8 +1167,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringJob createModelMonitor * */ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringJob getModelMonitoringJob( - com.google.cloud.aiplatform.v1beta1.GetModelMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetModelMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMonitoringJobMethod(), getCallOptions(), request); } @@ -1183,8 +1187,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringJob getModelMonitoring */ public com.google.cloud.aiplatform.v1beta1.ListModelMonitoringJobsResponse listModelMonitoringJobs( - com.google.cloud.aiplatform.v1beta1.ListModelMonitoringJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListModelMonitoringJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelMonitoringJobsMethod(), getCallOptions(), request); } @@ -1196,8 +1201,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringJob getModelMonitoring * */ public com.google.longrunning.Operation deleteModelMonitoringJob( - com.google.cloud.aiplatform.v1beta1.DeleteModelMonitoringJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteModelMonitoringJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMonitoringJobMethod(), getCallOptions(), request); } @@ -1210,8 +1216,9 @@ public com.google.longrunning.Operation deleteModelMonitoringJob( */ public com.google.cloud.aiplatform.v1beta1.SearchModelMonitoringStatsResponse searchModelMonitoringStats( - com.google.cloud.aiplatform.v1beta1.SearchModelMonitoringStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SearchModelMonitoringStatsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchModelMonitoringStatsMethod(), getCallOptions(), request); } @@ -1224,8 +1231,9 @@ public com.google.longrunning.Operation deleteModelMonitoringJob( */ public com.google.cloud.aiplatform.v1beta1.SearchModelMonitoringAlertsResponse searchModelMonitoringAlerts( - com.google.cloud.aiplatform.v1beta1.SearchModelMonitoringAlertsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SearchModelMonitoringAlertsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchModelMonitoringAlertsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java index f40fd70fcad4..310fbac024bf 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's machine learning Models. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/model_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelServiceGrpc { @@ -1778,8 +1775,9 @@ protected ModelServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation uploadModel( - com.google.cloud.aiplatform.v1beta1.UploadModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UploadModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUploadModelMethod(), getCallOptions(), request); } @@ -1791,8 +1789,9 @@ public com.google.longrunning.Operation uploadModel( * */ public com.google.cloud.aiplatform.v1beta1.Model getModel( - com.google.cloud.aiplatform.v1beta1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } @@ -1804,8 +1803,9 @@ public com.google.cloud.aiplatform.v1beta1.Model getModel( * */ public com.google.cloud.aiplatform.v1beta1.ListModelsResponse listModels( - com.google.cloud.aiplatform.v1beta1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } @@ -1817,8 +1817,9 @@ public com.google.cloud.aiplatform.v1beta1.ListModelsResponse listModels( * */ public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse listModelVersions( - com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelVersionsMethod(), getCallOptions(), request); } @@ -1831,8 +1832,9 @@ public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse listModelVe */ public com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse listModelVersionCheckpoints( - com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelVersionCheckpointsMethod(), getCallOptions(), request); } @@ -1844,8 +1846,9 @@ public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse listModelVe * */ public com.google.cloud.aiplatform.v1beta1.Model updateModel( - com.google.cloud.aiplatform.v1beta1.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelMethod(), getCallOptions(), request); } @@ -1857,8 +1860,9 @@ public com.google.cloud.aiplatform.v1beta1.Model updateModel( * */ public com.google.longrunning.Operation updateExplanationDataset( - com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExplanationDatasetMethod(), getCallOptions(), request); } @@ -1876,8 +1880,9 @@ public com.google.longrunning.Operation updateExplanationDataset( * */ public com.google.longrunning.Operation deleteModel( - com.google.cloud.aiplatform.v1beta1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } @@ -1894,8 +1899,9 @@ public com.google.longrunning.Operation deleteModel( * */ public com.google.longrunning.Operation deleteModelVersion( - com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelVersionMethod(), getCallOptions(), request); } @@ -1907,8 +1913,9 @@ public com.google.longrunning.Operation deleteModelVersion( * */ public com.google.cloud.aiplatform.v1beta1.Model mergeVersionAliases( - com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMergeVersionAliasesMethod(), getCallOptions(), request); } @@ -1923,8 +1930,9 @@ public com.google.cloud.aiplatform.v1beta1.Model mergeVersionAliases( * */ public com.google.longrunning.Operation exportModel( - com.google.cloud.aiplatform.v1beta1.ExportModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ExportModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportModelMethod(), getCallOptions(), request); } @@ -1941,8 +1949,9 @@ public com.google.longrunning.Operation exportModel( * */ public com.google.longrunning.Operation copyModel( - com.google.cloud.aiplatform.v1beta1.CopyModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CopyModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCopyModelMethod(), getCallOptions(), request); } @@ -1954,8 +1963,9 @@ public com.google.longrunning.Operation copyModel( * */ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation importModelEvaluation( - com.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportModelEvaluationMethod(), getCallOptions(), request); } @@ -1968,8 +1978,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation importModelEvaluation */ public com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse batchImportModelEvaluationSlices( - com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchImportModelEvaluationSlicesMethod(), getCallOptions(), request); } @@ -1982,8 +1993,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation importModelEvaluation */ public com.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse batchImportEvaluatedAnnotations( - com.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchImportEvaluatedAnnotationsMethod(), getCallOptions(), request); } @@ -1995,8 +2007,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation importModelEvaluation * */ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation getModelEvaluation( - com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); } @@ -2008,8 +2021,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation getModelEvaluation( * */ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse listModelEvaluations( - com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); } @@ -2021,8 +2035,9 @@ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse listMode * */ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice getModelEvaluationSlice( - com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelEvaluationSliceMethod(), getCallOptions(), request); } @@ -2035,8 +2050,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice getModelEvaluati */ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse listModelEvaluationSlices( - com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelEvaluationSlicesMethod(), getCallOptions(), request); } @@ -2048,8 +2064,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice getModelEvaluati * */ public com.google.cloud.aiplatform.v1beta1.RecommendSpecResponse recommendSpec( - com.google.cloud.aiplatform.v1beta1.RecommendSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RecommendSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecommendSpecMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceGrpc.java index d0342d26765b..07209c987e40 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceGrpc.java @@ -24,9 +24,6 @@ * The interface for Vertex Notebook service (a.k.a. Colab on Workbench). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/notebook_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NotebookServiceGrpc { @@ -1474,8 +1471,9 @@ protected NotebookServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createNotebookRuntimeTemplate( - com.google.cloud.aiplatform.v1beta1.CreateNotebookRuntimeTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateNotebookRuntimeTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotebookRuntimeTemplateMethod(), getCallOptions(), request); } @@ -1487,8 +1485,9 @@ public com.google.longrunning.Operation createNotebookRuntimeTemplate( * */ public com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate getNotebookRuntimeTemplate( - com.google.cloud.aiplatform.v1beta1.GetNotebookRuntimeTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetNotebookRuntimeTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotebookRuntimeTemplateMethod(), getCallOptions(), request); } @@ -1501,8 +1500,9 @@ public com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate getNotebookRu */ public com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesResponse listNotebookRuntimeTemplates( - com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotebookRuntimeTemplatesMethod(), getCallOptions(), request); } @@ -1514,8 +1514,9 @@ public com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate getNotebookRu * */ public com.google.longrunning.Operation deleteNotebookRuntimeTemplate( - com.google.cloud.aiplatform.v1beta1.DeleteNotebookRuntimeTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteNotebookRuntimeTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotebookRuntimeTemplateMethod(), getCallOptions(), request); } @@ -1528,8 +1529,9 @@ public com.google.longrunning.Operation deleteNotebookRuntimeTemplate( */ public com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate updateNotebookRuntimeTemplate( - com.google.cloud.aiplatform.v1beta1.UpdateNotebookRuntimeTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateNotebookRuntimeTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNotebookRuntimeTemplateMethod(), getCallOptions(), request); } @@ -1542,8 +1544,9 @@ public com.google.longrunning.Operation deleteNotebookRuntimeTemplate( * */ public com.google.longrunning.Operation assignNotebookRuntime( - com.google.cloud.aiplatform.v1beta1.AssignNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AssignNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAssignNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1555,8 +1558,9 @@ public com.google.longrunning.Operation assignNotebookRuntime( * */ public com.google.cloud.aiplatform.v1beta1.NotebookRuntime getNotebookRuntime( - com.google.cloud.aiplatform.v1beta1.GetNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1568,8 +1572,9 @@ public com.google.cloud.aiplatform.v1beta1.NotebookRuntime getNotebookRuntime( * */ public com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesResponse listNotebookRuntimes( - com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotebookRuntimesMethod(), getCallOptions(), request); } @@ -1581,8 +1586,9 @@ public com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesResponse listNote * */ public com.google.longrunning.Operation deleteNotebookRuntime( - com.google.cloud.aiplatform.v1beta1.DeleteNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1594,8 +1600,9 @@ public com.google.longrunning.Operation deleteNotebookRuntime( * */ public com.google.longrunning.Operation upgradeNotebookRuntime( - com.google.cloud.aiplatform.v1beta1.UpgradeNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpgradeNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1607,8 +1614,9 @@ public com.google.longrunning.Operation upgradeNotebookRuntime( * */ public com.google.longrunning.Operation startNotebookRuntime( - com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1620,8 +1628,9 @@ public com.google.longrunning.Operation startNotebookRuntime( * */ public com.google.longrunning.Operation stopNotebookRuntime( - com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopNotebookRuntimeMethod(), getCallOptions(), request); } @@ -1633,8 +1642,9 @@ public com.google.longrunning.Operation stopNotebookRuntime( * */ public com.google.longrunning.Operation createNotebookExecutionJob( - com.google.cloud.aiplatform.v1beta1.CreateNotebookExecutionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateNotebookExecutionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotebookExecutionJobMethod(), getCallOptions(), request); } @@ -1646,8 +1656,9 @@ public com.google.longrunning.Operation createNotebookExecutionJob( * */ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob getNotebookExecutionJob( - com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotebookExecutionJobMethod(), getCallOptions(), request); } @@ -1660,8 +1671,9 @@ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob getNotebookExecu */ public com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse listNotebookExecutionJobs( - com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotebookExecutionJobsMethod(), getCallOptions(), request); } @@ -1673,8 +1685,9 @@ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob getNotebookExecu * */ public com.google.longrunning.Operation deleteNotebookExecutionJob( - com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotebookExecutionJobMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceGrpc.java index d6b1ae9c0dae..e78e6b4570f3 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's machine learning PersistentResource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/persistent_resource_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PersistentResourceServiceGrpc { @@ -665,8 +662,9 @@ protected PersistentResourceServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createPersistentResource( - com.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePersistentResourceMethod(), getCallOptions(), request); } @@ -678,8 +676,9 @@ public com.google.longrunning.Operation createPersistentResource( * */ public com.google.cloud.aiplatform.v1beta1.PersistentResource getPersistentResource( - com.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPersistentResourceMethod(), getCallOptions(), request); } @@ -692,8 +691,9 @@ public com.google.cloud.aiplatform.v1beta1.PersistentResource getPersistentResou */ public com.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse listPersistentResources( - com.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPersistentResourcesMethod(), getCallOptions(), request); } @@ -705,8 +705,9 @@ public com.google.cloud.aiplatform.v1beta1.PersistentResource getPersistentResou * */ public com.google.longrunning.Operation deletePersistentResource( - com.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePersistentResourceMethod(), getCallOptions(), request); } @@ -718,8 +719,9 @@ public com.google.longrunning.Operation deletePersistentResource( * */ public com.google.longrunning.Operation updatePersistentResource( - com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePersistentResourceMethod(), getCallOptions(), request); } @@ -731,8 +733,9 @@ public com.google.longrunning.Operation updatePersistentResource( * */ public com.google.longrunning.Operation rebootPersistentResource( - com.google.cloud.aiplatform.v1beta1.RebootPersistentResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RebootPersistentResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRebootPersistentResourceMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceGrpc.java index e1095f5ad82d..38ff17605a0d 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceGrpc.java @@ -26,9 +26,6 @@ * `PipelineJob` resources (used for Vertex AI Pipelines). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/pipeline_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PipelineServiceGrpc { @@ -1191,8 +1188,9 @@ protected PipelineServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline createTrainingPipeline( - com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTrainingPipelineMethod(), getCallOptions(), request); } @@ -1204,8 +1202,9 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline createTrainingPipeli * */ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline getTrainingPipeline( - com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTrainingPipelineMethod(), getCallOptions(), request); } @@ -1217,8 +1216,9 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline getTrainingPipeline( * */ public com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse listTrainingPipelines( - com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTrainingPipelinesMethod(), getCallOptions(), request); } @@ -1230,8 +1230,9 @@ public com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse listTra * */ public com.google.longrunning.Operation deleteTrainingPipeline( - com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTrainingPipelineMethod(), getCallOptions(), request); } @@ -1256,8 +1257,9 @@ public com.google.longrunning.Operation deleteTrainingPipeline( * */ public com.google.protobuf.Empty cancelTrainingPipeline( - com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelTrainingPipelineMethod(), getCallOptions(), request); } @@ -1269,8 +1271,9 @@ public com.google.protobuf.Empty cancelTrainingPipeline( * */ public com.google.cloud.aiplatform.v1beta1.PipelineJob createPipelineJob( - com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePipelineJobMethod(), getCallOptions(), request); } @@ -1282,8 +1285,9 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJob createPipelineJob( * */ public com.google.cloud.aiplatform.v1beta1.PipelineJob getPipelineJob( - com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPipelineJobMethod(), getCallOptions(), request); } @@ -1295,8 +1299,9 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJob getPipelineJob( * */ public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse listPipelineJobs( - com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPipelineJobsMethod(), getCallOptions(), request); } @@ -1308,8 +1313,9 @@ public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse listPipeline * */ public com.google.longrunning.Operation deletePipelineJob( - com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePipelineJobMethod(), getCallOptions(), request); } @@ -1323,8 +1329,9 @@ public com.google.longrunning.Operation deletePipelineJob( * */ public com.google.longrunning.Operation batchDeletePipelineJobs( - com.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeletePipelineJobsMethod(), getCallOptions(), request); } @@ -1348,8 +1355,9 @@ public com.google.longrunning.Operation batchDeletePipelineJobs( * */ public com.google.protobuf.Empty cancelPipelineJob( - com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelPipelineJobMethod(), getCallOptions(), request); } @@ -1367,8 +1375,9 @@ public com.google.protobuf.Empty cancelPipelineJob( * */ public com.google.longrunning.Operation batchCancelPipelineJobs( - com.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchCancelPipelineJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCancelPipelineJobsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java index 2640cb9d0b5d..baf18c039507 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java @@ -24,9 +24,6 @@ * A service for online predictions and explanations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/prediction_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PredictionServiceGrpc { @@ -744,6 +741,53 @@ private PredictionServiceGrpc() {} return getChatCompletionsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse> + getEmbedContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EmbedContent", + requestType = com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse> + getEmbedContentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse> + getEmbedContentMethod; + if ((getEmbedContentMethod = PredictionServiceGrpc.getEmbedContentMethod) == null) { + synchronized (PredictionServiceGrpc.class) { + if ((getEmbedContentMethod = PredictionServiceGrpc.getEmbedContentMethod) == null) { + PredictionServiceGrpc.getEmbedContentMethod = + getEmbedContentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EmbedContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new PredictionServiceMethodDescriptorSupplier("EmbedContent")) + .build(); + } + } + } + return getEmbedContentMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static PredictionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1054,6 +1098,21 @@ default void chatCompletions( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getChatCompletionsMethod(), responseObserver); } + + /** + * + * + *
    +     * Embed content with multimodal inputs.
    +     * 
    + */ + default void embedContent( + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEmbedContentMethod(), responseObserver); + } } /** @@ -1358,6 +1417,23 @@ public void chatCompletions( request, responseObserver); } + + /** + * + * + *
    +     * Embed content with multimodal inputs.
    +     * 
    + */ + public void embedContent( + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEmbedContentMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1388,8 +1464,8 @@ protected PredictionServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.PredictResponse predict( - com.google.cloud.aiplatform.v1beta1.PredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.PredictRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } @@ -1408,8 +1484,9 @@ public com.google.cloud.aiplatform.v1beta1.PredictResponse predict( * */ public com.google.api.HttpBody rawPredict( - com.google.cloud.aiplatform.v1beta1.RawPredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RawPredictRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRawPredictMethod(), getCallOptions(), request); } @@ -1436,8 +1513,9 @@ public io.grpc.stub.BlockingClientCall streamRawPred * */ public com.google.cloud.aiplatform.v1beta1.DirectPredictResponse directPredict( - com.google.cloud.aiplatform.v1beta1.DirectPredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DirectPredictRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDirectPredictMethod(), getCallOptions(), request); } @@ -1450,8 +1528,9 @@ public com.google.cloud.aiplatform.v1beta1.DirectPredictResponse directPredict( * */ public com.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse directRawPredict( - com.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DirectRawPredictRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDirectRawPredictMethod(), getCallOptions(), request); } @@ -1556,8 +1635,8 @@ public com.google.cloud.aiplatform.v1beta1.DirectRawPredictResponse directRawPre * */ public com.google.cloud.aiplatform.v1beta1.ExplainResponse explain( - com.google.cloud.aiplatform.v1beta1.ExplainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ExplainRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExplainMethod(), getCallOptions(), request); } @@ -1569,8 +1648,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplainResponse explain( * */ public com.google.cloud.aiplatform.v1beta1.CountTokensResponse countTokens( - com.google.cloud.aiplatform.v1beta1.CountTokensRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CountTokensRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCountTokensMethod(), getCallOptions(), request); } @@ -1582,8 +1662,9 @@ public com.google.cloud.aiplatform.v1beta1.CountTokensResponse countTokens( * */ public com.google.cloud.aiplatform.v1beta1.GenerateContentResponse generateContent( - com.google.cloud.aiplatform.v1beta1.GenerateContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GenerateContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateContentMethod(), getCallOptions(), request); } @@ -1615,6 +1696,20 @@ public io.grpc.stub.BlockingClientCall chatCompletio return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( getChannel(), getChatCompletionsMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Embed content with multimodal inputs.
    +     * 
    + */ + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse embedContent( + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getEmbedContentMethod(), getCallOptions(), request); + } } /** @@ -1799,6 +1894,19 @@ public java.util.Iterator chatCompletions( return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getChatCompletionsMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Embed content with multimodal inputs.
    +     * 
    + */ + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse embedContent( + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEmbedContentMethod(), getCallOptions(), request); + } } /** @@ -1934,6 +2042,20 @@ public com.google.common.util.concurrent.ListenableFuture + * Embed content with multimodal inputs. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse> + embedContent(com.google.cloud.aiplatform.v1beta1.EmbedContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEmbedContentMethod(), getCallOptions()), request); + } } private static final int METHODID_PREDICT = 0; @@ -1947,10 +2069,11 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2037,6 +2160,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.ChatCompletionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EMBED_CONTENT: + serviceImpl.embedContent( + (com.google.cloud.aiplatform.v1beta1.EmbedContentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -2181,6 +2311,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ChatCompletionsRequest, com.google.api.HttpBody>(service, METHODID_CHAT_COMPLETIONS))) + .addMethod( + getEmbedContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse>( + service, METHODID_EMBED_CONTENT))) .build(); } @@ -2247,6 +2384,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGenerateContentMethod()) .addMethod(getStreamGenerateContentMethod()) .addMethod(getChatCompletionsMethod()) + .addMethod(getEmbedContentMethod()) .build(); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java index f1270e91248d..b72ed3d5568f 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java @@ -24,9 +24,6 @@ * A service for executing queries on Reasoning Engine. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReasoningEngineExecutionServiceGrpc { @@ -337,8 +334,9 @@ protected ReasoningEngineExecutionServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse queryReasoningEngine( - com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryReasoningEngineMethod(), getCallOptions(), request); } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceGrpc.java index c685bac0c7ff..d17356c49596 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing Vertex AI's Reasoning Engines. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReasoningEngineServiceGrpc { @@ -574,8 +571,9 @@ protected ReasoningEngineServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createReasoningEngine( - com.google.cloud.aiplatform.v1beta1.CreateReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReasoningEngineMethod(), getCallOptions(), request); } @@ -587,8 +585,9 @@ public com.google.longrunning.Operation createReasoningEngine( * */ public com.google.cloud.aiplatform.v1beta1.ReasoningEngine getReasoningEngine( - com.google.cloud.aiplatform.v1beta1.GetReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReasoningEngineMethod(), getCallOptions(), request); } @@ -600,8 +599,9 @@ public com.google.cloud.aiplatform.v1beta1.ReasoningEngine getReasoningEngine( * */ public com.google.cloud.aiplatform.v1beta1.ListReasoningEnginesResponse listReasoningEngines( - com.google.cloud.aiplatform.v1beta1.ListReasoningEnginesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListReasoningEnginesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReasoningEnginesMethod(), getCallOptions(), request); } @@ -613,8 +613,9 @@ public com.google.cloud.aiplatform.v1beta1.ListReasoningEnginesResponse listReas * */ public com.google.longrunning.Operation updateReasoningEngine( - com.google.cloud.aiplatform.v1beta1.UpdateReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReasoningEngineMethod(), getCallOptions(), request); } @@ -626,8 +627,9 @@ public com.google.longrunning.Operation updateReasoningEngine( * */ public com.google.longrunning.Operation deleteReasoningEngine( - com.google.cloud.aiplatform.v1beta1.DeleteReasoningEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReasoningEngineMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceGrpc.java index ab7dc59cfee3..4204cf9f57f1 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceGrpc.java @@ -25,9 +25,6 @@ * periodically launch shceudled runs to make API calls. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/schedule_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ScheduleServiceGrpc { @@ -731,8 +728,9 @@ protected ScheduleServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.Schedule createSchedule( - com.google.cloud.aiplatform.v1beta1.CreateScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateScheduleMethod(), getCallOptions(), request); } @@ -744,8 +742,9 @@ public com.google.cloud.aiplatform.v1beta1.Schedule createSchedule( * */ public com.google.longrunning.Operation deleteSchedule( - com.google.cloud.aiplatform.v1beta1.DeleteScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteScheduleMethod(), getCallOptions(), request); } @@ -757,8 +756,9 @@ public com.google.longrunning.Operation deleteSchedule( * */ public com.google.cloud.aiplatform.v1beta1.Schedule getSchedule( - com.google.cloud.aiplatform.v1beta1.GetScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetScheduleMethod(), getCallOptions(), request); } @@ -770,8 +770,9 @@ public com.google.cloud.aiplatform.v1beta1.Schedule getSchedule( * */ public com.google.cloud.aiplatform.v1beta1.ListSchedulesResponse listSchedules( - com.google.cloud.aiplatform.v1beta1.ListSchedulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListSchedulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchedulesMethod(), getCallOptions(), request); } @@ -786,8 +787,9 @@ public com.google.cloud.aiplatform.v1beta1.ListSchedulesResponse listSchedules( * */ public com.google.protobuf.Empty pauseSchedule( - com.google.cloud.aiplatform.v1beta1.PauseScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.PauseScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseScheduleMethod(), getCallOptions(), request); } @@ -805,8 +807,9 @@ public com.google.protobuf.Empty pauseSchedule( * */ public com.google.protobuf.Empty resumeSchedule( - com.google.cloud.aiplatform.v1beta1.ResumeScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ResumeScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeScheduleMethod(), getCallOptions(), request); } @@ -823,8 +826,9 @@ public com.google.protobuf.Empty resumeSchedule( * */ public com.google.cloud.aiplatform.v1beta1.Schedule updateSchedule( - com.google.cloud.aiplatform.v1beta1.UpdateScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateScheduleMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceGrpc.java index b64098f3c8df..6c645ca0261d 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceGrpc.java @@ -24,9 +24,6 @@ * The service that manages Vertex Session related resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/session_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionServiceGrpc { @@ -701,8 +698,9 @@ protected SessionServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createSession( - com.google.cloud.aiplatform.v1beta1.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } @@ -715,8 +713,9 @@ public com.google.longrunning.Operation createSession( * */ public com.google.cloud.aiplatform.v1beta1.Session getSession( - com.google.cloud.aiplatform.v1beta1.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionMethod(), getCallOptions(), request); } @@ -729,8 +728,9 @@ public com.google.cloud.aiplatform.v1beta1.Session getSession( * */ public com.google.cloud.aiplatform.v1beta1.ListSessionsResponse listSessions( - com.google.cloud.aiplatform.v1beta1.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } @@ -742,8 +742,9 @@ public com.google.cloud.aiplatform.v1beta1.ListSessionsResponse listSessions( * */ public com.google.cloud.aiplatform.v1beta1.Session updateSession( - com.google.cloud.aiplatform.v1beta1.UpdateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionMethod(), getCallOptions(), request); } @@ -756,8 +757,9 @@ public com.google.cloud.aiplatform.v1beta1.Session updateSession( * */ public com.google.longrunning.Operation deleteSession( - com.google.cloud.aiplatform.v1beta1.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionMethod(), getCallOptions(), request); } @@ -769,8 +771,9 @@ public com.google.longrunning.Operation deleteSession( * */ public com.google.cloud.aiplatform.v1beta1.ListEventsResponse listEvents( - com.google.cloud.aiplatform.v1beta1.ListEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEventsMethod(), getCallOptions(), request); } @@ -782,8 +785,9 @@ public com.google.cloud.aiplatform.v1beta1.ListEventsResponse listEvents( * */ public com.google.cloud.aiplatform.v1beta1.AppendEventResponse appendEvent( - com.google.cloud.aiplatform.v1beta1.AppendEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AppendEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAppendEventMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceGrpc.java index 83df5eda8ca7..87a6667b50cb 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceGrpc.java @@ -29,9 +29,6 @@ * CrowdCompute console. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/specialist_pool_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SpecialistPoolServiceGrpc { @@ -592,8 +589,9 @@ protected SpecialistPoolServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createSpecialistPool( - com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSpecialistPoolMethod(), getCallOptions(), request); } @@ -605,8 +603,9 @@ public com.google.longrunning.Operation createSpecialistPool( * */ public com.google.cloud.aiplatform.v1beta1.SpecialistPool getSpecialistPool( - com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpecialistPoolMethod(), getCallOptions(), request); } @@ -618,8 +617,9 @@ public com.google.cloud.aiplatform.v1beta1.SpecialistPool getSpecialistPool( * */ public com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse listSpecialistPools( - com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSpecialistPoolsMethod(), getCallOptions(), request); } @@ -631,8 +631,9 @@ public com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse listSpeci * */ public com.google.longrunning.Operation deleteSpecialistPool( - com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSpecialistPoolMethod(), getCallOptions(), request); } @@ -644,8 +645,9 @@ public com.google.longrunning.Operation deleteSpecialistPool( * */ public com.google.longrunning.Operation updateSpecialistPool( - com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSpecialistPoolMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceGrpc.java index 61bb13218282..53c604aa967a 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceGrpc.java @@ -24,9 +24,6 @@ * TensorboardService * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TensorboardServiceGrpc { @@ -2706,8 +2703,9 @@ protected TensorboardServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createTensorboard( - com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTensorboardMethod(), getCallOptions(), request); } @@ -2719,8 +2717,9 @@ public com.google.longrunning.Operation createTensorboard( * */ public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard( - com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTensorboardMethod(), getCallOptions(), request); } @@ -2732,8 +2731,9 @@ public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard( * */ public com.google.longrunning.Operation updateTensorboard( - com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTensorboardMethod(), getCallOptions(), request); } @@ -2745,8 +2745,9 @@ public com.google.longrunning.Operation updateTensorboard( * */ public com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse listTensorboards( - com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTensorboardsMethod(), getCallOptions(), request); } @@ -2758,8 +2759,9 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse listTensorbo * */ public com.google.longrunning.Operation deleteTensorboard( - com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTensorboardMethod(), getCallOptions(), request); } @@ -2771,8 +2773,9 @@ public com.google.longrunning.Operation deleteTensorboard( * */ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse readTensorboardUsage( - com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadTensorboardUsageMethod(), getCallOptions(), request); } @@ -2784,8 +2787,9 @@ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse readTens * */ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardSizeResponse readTensorboardSize( - com.google.cloud.aiplatform.v1beta1.ReadTensorboardSizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardSizeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadTensorboardSizeMethod(), getCallOptions(), request); } @@ -2797,8 +2801,9 @@ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardSizeResponse readTenso * */ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment createTensorboardExperiment( - com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTensorboardExperimentMethod(), getCallOptions(), request); } @@ -2810,8 +2815,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment createTensorboa * */ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardExperiment( - com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTensorboardExperimentMethod(), getCallOptions(), request); } @@ -2823,8 +2829,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardE * */ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment updateTensorboardExperiment( - com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTensorboardExperimentMethod(), getCallOptions(), request); } @@ -2837,8 +2844,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment updateTensorboa */ public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse listTensorboardExperiments( - com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTensorboardExperimentsMethod(), getCallOptions(), request); } @@ -2850,8 +2858,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment updateTensorboa * */ public com.google.longrunning.Operation deleteTensorboardExperiment( - com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTensorboardExperimentMethod(), getCallOptions(), request); } @@ -2863,8 +2872,9 @@ public com.google.longrunning.Operation deleteTensorboardExperiment( * */ public com.google.cloud.aiplatform.v1beta1.TensorboardRun createTensorboardRun( - com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTensorboardRunMethod(), getCallOptions(), request); } @@ -2877,8 +2887,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRun createTensorboardRun( */ public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns( - com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateTensorboardRunsMethod(), getCallOptions(), request); } @@ -2890,8 +2901,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRun createTensorboardRun( * */ public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun( - com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTensorboardRunMethod(), getCallOptions(), request); } @@ -2903,8 +2915,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun( * */ public com.google.cloud.aiplatform.v1beta1.TensorboardRun updateTensorboardRun( - com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTensorboardRunMethod(), getCallOptions(), request); } @@ -2916,8 +2929,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRun updateTensorboardRun( * */ public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse listTensorboardRuns( - com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTensorboardRunsMethod(), getCallOptions(), request); } @@ -2929,8 +2943,9 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse listTenso * */ public com.google.longrunning.Operation deleteTensorboardRun( - com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTensorboardRunMethod(), getCallOptions(), request); } @@ -2943,8 +2958,9 @@ public com.google.longrunning.Operation deleteTensorboardRun( */ public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries( - com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2956,8 +2972,9 @@ public com.google.longrunning.Operation deleteTensorboardRun( * */ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries createTensorboardTimeSeries( - com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2969,8 +2986,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries createTensorboa * */ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardTimeSeries( - com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2982,8 +3000,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardT * */ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries updateTensorboardTimeSeries( - com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -2996,8 +3015,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries updateTensorboa */ public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse listTensorboardTimeSeries( - com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -3009,8 +3029,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries updateTensorboa * */ public com.google.longrunning.Operation deleteTensorboardTimeSeries( - com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTensorboardTimeSeriesMethod(), getCallOptions(), request); } @@ -3027,8 +3048,9 @@ public com.google.longrunning.Operation deleteTensorboardTimeSeries( */ public com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData( - com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchReadTensorboardTimeSeriesDataMethod(), getCallOptions(), request); } @@ -3045,8 +3067,9 @@ public com.google.longrunning.Operation deleteTensorboardTimeSeries( */ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData( - com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadTensorboardTimeSeriesDataMethod(), getCallOptions(), request); } @@ -3079,8 +3102,9 @@ public com.google.longrunning.Operation deleteTensorboardTimeSeries( */ public com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse writeTensorboardExperimentData( - com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteTensorboardExperimentDataMethod(), getCallOptions(), request); } @@ -3094,8 +3118,9 @@ public com.google.longrunning.Operation deleteTensorboardTimeSeries( */ public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse writeTensorboardRunData( - com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteTensorboardRunDataMethod(), getCallOptions(), request); } @@ -3109,8 +3134,9 @@ public com.google.longrunning.Operation deleteTensorboardTimeSeries( */ public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse exportTensorboardTimeSeriesData( - com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportTensorboardTimeSeriesDataMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceGrpc.java index ad4a29d110e7..d65e1119867e 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceGrpc.java @@ -24,9 +24,6 @@ * A service for managing user data for RAG. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VertexRagDataServiceGrpc { @@ -1096,8 +1093,9 @@ protected VertexRagDataServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createRagCorpus( - com.google.cloud.aiplatform.v1beta1.CreateRagCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateRagCorpusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRagCorpusMethod(), getCallOptions(), request); } @@ -1109,8 +1107,9 @@ public com.google.longrunning.Operation createRagCorpus( * */ public com.google.longrunning.Operation updateRagCorpus( - com.google.cloud.aiplatform.v1beta1.UpdateRagCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateRagCorpusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRagCorpusMethod(), getCallOptions(), request); } @@ -1122,8 +1121,9 @@ public com.google.longrunning.Operation updateRagCorpus( * */ public com.google.cloud.aiplatform.v1beta1.RagCorpus getRagCorpus( - com.google.cloud.aiplatform.v1beta1.GetRagCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetRagCorpusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRagCorpusMethod(), getCallOptions(), request); } @@ -1135,8 +1135,9 @@ public com.google.cloud.aiplatform.v1beta1.RagCorpus getRagCorpus( * */ public com.google.cloud.aiplatform.v1beta1.ListRagCorporaResponse listRagCorpora( - com.google.cloud.aiplatform.v1beta1.ListRagCorporaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListRagCorporaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRagCorporaMethod(), getCallOptions(), request); } @@ -1148,8 +1149,9 @@ public com.google.cloud.aiplatform.v1beta1.ListRagCorporaResponse listRagCorpora * */ public com.google.longrunning.Operation deleteRagCorpus( - com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRagCorpusMethod(), getCallOptions(), request); } @@ -1161,8 +1163,9 @@ public com.google.longrunning.Operation deleteRagCorpus( * */ public com.google.cloud.aiplatform.v1beta1.UploadRagFileResponse uploadRagFile( - com.google.cloud.aiplatform.v1beta1.UploadRagFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UploadRagFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUploadRagFileMethod(), getCallOptions(), request); } @@ -1174,8 +1177,9 @@ public com.google.cloud.aiplatform.v1beta1.UploadRagFileResponse uploadRagFile( * */ public com.google.longrunning.Operation importRagFiles( - com.google.cloud.aiplatform.v1beta1.ImportRagFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ImportRagFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportRagFilesMethod(), getCallOptions(), request); } @@ -1187,8 +1191,9 @@ public com.google.longrunning.Operation importRagFiles( * */ public com.google.cloud.aiplatform.v1beta1.RagFile getRagFile( - com.google.cloud.aiplatform.v1beta1.GetRagFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetRagFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRagFileMethod(), getCallOptions(), request); } @@ -1200,8 +1205,9 @@ public com.google.cloud.aiplatform.v1beta1.RagFile getRagFile( * */ public com.google.cloud.aiplatform.v1beta1.ListRagFilesResponse listRagFiles( - com.google.cloud.aiplatform.v1beta1.ListRagFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListRagFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRagFilesMethod(), getCallOptions(), request); } @@ -1213,8 +1219,9 @@ public com.google.cloud.aiplatform.v1beta1.ListRagFilesResponse listRagFiles( * */ public com.google.longrunning.Operation deleteRagFile( - com.google.cloud.aiplatform.v1beta1.DeleteRagFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteRagFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRagFileMethod(), getCallOptions(), request); } @@ -1226,8 +1233,9 @@ public com.google.longrunning.Operation deleteRagFile( * */ public com.google.longrunning.Operation updateRagEngineConfig( - com.google.cloud.aiplatform.v1beta1.UpdateRagEngineConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.UpdateRagEngineConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRagEngineConfigMethod(), getCallOptions(), request); } @@ -1239,8 +1247,9 @@ public com.google.longrunning.Operation updateRagEngineConfig( * */ public com.google.cloud.aiplatform.v1beta1.RagEngineConfig getRagEngineConfig( - com.google.cloud.aiplatform.v1beta1.GetRagEngineConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetRagEngineConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRagEngineConfigMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceGrpc.java index 9510a803ce24..e0089ceab749 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceGrpc.java @@ -24,9 +24,6 @@ * A service for retrieving relevant contexts. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/vertex_rag_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VertexRagServiceGrpc { @@ -407,8 +404,9 @@ protected VertexRagServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.RetrieveContextsResponse retrieveContexts( - com.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveContextsMethod(), getCallOptions(), request); } @@ -421,8 +419,9 @@ public com.google.cloud.aiplatform.v1beta1.RetrieveContextsResponse retrieveCont * */ public com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse augmentPrompt( - com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAugmentPromptMethod(), getCallOptions(), request); } @@ -436,8 +435,9 @@ public com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse augmentPrompt( * */ public com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse corroborateContent( - com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCorroborateContentMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceGrpc.java index 457600623655..3882ecbe4e2e 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceGrpc.java @@ -27,9 +27,6 @@ * learning architectures. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/aiplatform/v1beta1/vizier_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VizierServiceGrpc { @@ -1334,8 +1331,9 @@ protected VizierServiceBlockingV2Stub build( * */ public com.google.cloud.aiplatform.v1beta1.Study createStudy( - com.google.cloud.aiplatform.v1beta1.CreateStudyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateStudyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateStudyMethod(), getCallOptions(), request); } @@ -1347,8 +1345,9 @@ public com.google.cloud.aiplatform.v1beta1.Study createStudy( * */ public com.google.cloud.aiplatform.v1beta1.Study getStudy( - com.google.cloud.aiplatform.v1beta1.GetStudyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetStudyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStudyMethod(), getCallOptions(), request); } @@ -1360,8 +1359,9 @@ public com.google.cloud.aiplatform.v1beta1.Study getStudy( * */ public com.google.cloud.aiplatform.v1beta1.ListStudiesResponse listStudies( - com.google.cloud.aiplatform.v1beta1.ListStudiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListStudiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListStudiesMethod(), getCallOptions(), request); } @@ -1373,8 +1373,9 @@ public com.google.cloud.aiplatform.v1beta1.ListStudiesResponse listStudies( * */ public com.google.protobuf.Empty deleteStudy( - com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteStudyMethod(), getCallOptions(), request); } @@ -1387,8 +1388,9 @@ public com.google.protobuf.Empty deleteStudy( * */ public com.google.cloud.aiplatform.v1beta1.Study lookupStudy( - com.google.cloud.aiplatform.v1beta1.LookupStudyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.LookupStudyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupStudyMethod(), getCallOptions(), request); } @@ -1405,8 +1407,9 @@ public com.google.cloud.aiplatform.v1beta1.Study lookupStudy( * */ public com.google.longrunning.Operation suggestTrials( - com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestTrialsMethod(), getCallOptions(), request); } @@ -1418,8 +1421,9 @@ public com.google.longrunning.Operation suggestTrials( * */ public com.google.cloud.aiplatform.v1beta1.Trial createTrial( - com.google.cloud.aiplatform.v1beta1.CreateTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CreateTrialRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTrialMethod(), getCallOptions(), request); } @@ -1431,8 +1435,9 @@ public com.google.cloud.aiplatform.v1beta1.Trial createTrial( * */ public com.google.cloud.aiplatform.v1beta1.Trial getTrial( - com.google.cloud.aiplatform.v1beta1.GetTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.GetTrialRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTrialMethod(), getCallOptions(), request); } @@ -1444,8 +1449,9 @@ public com.google.cloud.aiplatform.v1beta1.Trial getTrial( * */ public com.google.cloud.aiplatform.v1beta1.ListTrialsResponse listTrials( - com.google.cloud.aiplatform.v1beta1.ListTrialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListTrialsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTrialsMethod(), getCallOptions(), request); } @@ -1458,8 +1464,9 @@ public com.google.cloud.aiplatform.v1beta1.ListTrialsResponse listTrials( * */ public com.google.cloud.aiplatform.v1beta1.Trial addTrialMeasurement( - com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddTrialMeasurementMethod(), getCallOptions(), request); } @@ -1471,8 +1478,9 @@ public com.google.cloud.aiplatform.v1beta1.Trial addTrialMeasurement( * */ public com.google.cloud.aiplatform.v1beta1.Trial completeTrial( - com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteTrialMethod(), getCallOptions(), request); } @@ -1484,8 +1492,9 @@ public com.google.cloud.aiplatform.v1beta1.Trial completeTrial( * */ public com.google.protobuf.Empty deleteTrial( - com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTrialMethod(), getCallOptions(), request); } @@ -1500,8 +1509,9 @@ public com.google.protobuf.Empty deleteTrial( * */ public com.google.longrunning.Operation checkTrialEarlyStoppingState( - com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckTrialEarlyStoppingStateMethod(), getCallOptions(), request); } @@ -1513,8 +1523,9 @@ public com.google.longrunning.Operation checkTrialEarlyStoppingState( * */ public com.google.cloud.aiplatform.v1beta1.Trial stopTrial( - com.google.cloud.aiplatform.v1beta1.StopTrialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.StopTrialRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopTrialMethod(), getCallOptions(), request); } @@ -1529,8 +1540,9 @@ public com.google.cloud.aiplatform.v1beta1.Trial stopTrial( * */ public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse listOptimalTrials( - com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOptimalTrialsMethod(), getCallOptions(), request); } } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentStage.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentStage.java index 00ffe7ac24b7..32b4a3094b5c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentStage.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentStage.java @@ -119,6 +119,26 @@ public enum DeploymentStage implements com.google.protobuf.ProtocolMessageEnum { * DEPLOYMENT_TERMINATED = 10; */ DEPLOYMENT_TERMINATED(10), + /** + * + * + *
    +   * The deployment has succeeded.
    +   * 
    + * + * SUCCESSFULLY_DEPLOYED = 11; + */ + SUCCESSFULLY_DEPLOYED(11), + /** + * + * + *
    +   * The deployment has failed.
    +   * 
    + * + * FAILED_TO_DEPLOY = 12; + */ + FAILED_TO_DEPLOY(12), UNRECOGNIZED(-1), ; @@ -221,6 +241,28 @@ public enum DeploymentStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYMENT_TERMINATED_VALUE = 10; + /** + * + * + *
    +   * The deployment has succeeded.
    +   * 
    + * + * SUCCESSFULLY_DEPLOYED = 11; + */ + public static final int SUCCESSFULLY_DEPLOYED_VALUE = 11; + + /** + * + * + *
    +   * The deployment has failed.
    +   * 
    + * + * FAILED_TO_DEPLOY = 12; + */ + public static final int FAILED_TO_DEPLOY_VALUE = 12; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -263,6 +305,10 @@ public static DeploymentStage forNumber(int value) { return FINISHING_UP; case 10: return DEPLOYMENT_TERMINATED; + case 11: + return SUCCESSFULLY_DEPLOYED; + case 12: + return FAILED_TO_DEPLOY; default: return null; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentStageProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentStageProto.java index c16944d61927..c65907fc53d5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentStageProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentStageProto.java @@ -38,18 +38,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/aiplatform/v1/deployment_" + "stage.proto\022\032google.cloud.aiplatform.v1*" - + "\201\002\n\017DeploymentStage\022 \n\034DEPLOYMENT_STAGE_" + + "\262\002\n\017DeploymentStage\022 \n\034DEPLOYMENT_STAGE_" + "UNSPECIFIED\020\000\022\027\n\023STARTING_DEPLOYMENT\020\005\022\023" + "\n\017PREPARING_MODEL\020\006\022\034\n\030CREATING_SERVING_" + "CLUSTER\020\007\022\033\n\027ADDING_NODES_TO_CLUSTER\020\010\022\033" + "\n\027GETTING_CONTAINER_IMAGE\020\t\022\031\n\025STARTING_" + "MODEL_SERVER\020\003\022\020\n\014FINISHING_UP\020\004\022\031\n\025DEPL" - + "OYMENT_TERMINATED\020\nB\322\001\n\036com.google.cloud" - + ".aiplatform.v1B\024DeploymentStageProtoP\001Z>" - + "cloud.google.com/go/aiplatform/apiv1/aip" - + "latformpb;aiplatformpb\252\002\032Google.Cloud.AI" - + "Platform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1" - + "\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "OYMENT_TERMINATED\020\n\022\031\n\025SUCCESSFULLY_DEPL" + + "OYED\020\013\022\024\n\020FAILED_TO_DEPLOY\020\014B\322\001\n\036com.goo" + + "gle.cloud.aiplatform.v1B\024DeploymentStage" + + "ProtoP\001Z>cloud.google.com/go/aiplatform/" + + "apiv1/aiplatformpb;aiplatformpb\252\002\032Google" + + ".Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPl" + + "atform\\V1\352\002\035Google::Cloud::AIPlatform::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentRequest.java new file mode 100644 index 000000000000..8d1136d9c284 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentRequest.java @@ -0,0 +1,2014 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1/prediction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
    + * Request message for
    + * [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent].
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.EmbedContentRequest} + */ +public final class EmbedContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.EmbedContentRequest) + EmbedContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EmbedContentRequest.newBuilder() to construct. + private EmbedContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmbedContentRequest() { + model_ = ""; + title_ = ""; + taskType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmbedContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.EmbedContentRequest.class, + com.google.cloud.aiplatform.v1.EmbedContentRequest.Builder.class); + } + + /** + * + * + *
    +   * Represents a downstream task the embeddings will be used for.
    +   * 
    + * + * Protobuf enum {@code google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType} + */ + public enum EmbeddingTaskType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unset value, which will default to one of the other enum values.
    +     * 
    + * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
    +     * Specifies the given text is a query in a search/retrieval setting.
    +     * 
    + * + * RETRIEVAL_QUERY = 2; + */ + RETRIEVAL_QUERY(2), + /** + * + * + *
    +     * Specifies the given text is a document from the corpus being searched.
    +     * 
    + * + * RETRIEVAL_DOCUMENT = 3; + */ + RETRIEVAL_DOCUMENT(3), + /** + * + * + *
    +     * Specifies the given text will be used for STS.
    +     * 
    + * + * SEMANTIC_SIMILARITY = 4; + */ + SEMANTIC_SIMILARITY(4), + /** + * + * + *
    +     * Specifies that the given text will be classified.
    +     * 
    + * + * CLASSIFICATION = 5; + */ + CLASSIFICATION(5), + /** + * + * + *
    +     * Specifies that the embeddings will be used for clustering.
    +     * 
    + * + * CLUSTERING = 6; + */ + CLUSTERING(6), + /** + * + * + *
    +     * Specifies that the embeddings will be used for question answering.
    +     * 
    + * + * QUESTION_ANSWERING = 7; + */ + QUESTION_ANSWERING(7), + /** + * + * + *
    +     * Specifies that the embeddings will be used for fact verification.
    +     * 
    + * + * FACT_VERIFICATION = 8; + */ + FACT_VERIFICATION(8), + /** + * + * + *
    +     * Specifies that the embeddings will be used for code retrieval.
    +     * 
    + * + * CODE_RETRIEVAL_QUERY = 9; + */ + CODE_RETRIEVAL_QUERY(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unset value, which will default to one of the other enum values.
    +     * 
    + * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Specifies the given text is a query in a search/retrieval setting.
    +     * 
    + * + * RETRIEVAL_QUERY = 2; + */ + public static final int RETRIEVAL_QUERY_VALUE = 2; + + /** + * + * + *
    +     * Specifies the given text is a document from the corpus being searched.
    +     * 
    + * + * RETRIEVAL_DOCUMENT = 3; + */ + public static final int RETRIEVAL_DOCUMENT_VALUE = 3; + + /** + * + * + *
    +     * Specifies the given text will be used for STS.
    +     * 
    + * + * SEMANTIC_SIMILARITY = 4; + */ + public static final int SEMANTIC_SIMILARITY_VALUE = 4; + + /** + * + * + *
    +     * Specifies that the given text will be classified.
    +     * 
    + * + * CLASSIFICATION = 5; + */ + public static final int CLASSIFICATION_VALUE = 5; + + /** + * + * + *
    +     * Specifies that the embeddings will be used for clustering.
    +     * 
    + * + * CLUSTERING = 6; + */ + public static final int CLUSTERING_VALUE = 6; + + /** + * + * + *
    +     * Specifies that the embeddings will be used for question answering.
    +     * 
    + * + * QUESTION_ANSWERING = 7; + */ + public static final int QUESTION_ANSWERING_VALUE = 7; + + /** + * + * + *
    +     * Specifies that the embeddings will be used for fact verification.
    +     * 
    + * + * FACT_VERIFICATION = 8; + */ + public static final int FACT_VERIFICATION_VALUE = 8; + + /** + * + * + *
    +     * Specifies that the embeddings will be used for code retrieval.
    +     * 
    + * + * CODE_RETRIEVAL_QUERY = 9; + */ + public static final int CODE_RETRIEVAL_QUERY_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 EmbeddingTaskType 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 EmbeddingTaskType forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 2: + return RETRIEVAL_QUERY; + case 3: + return RETRIEVAL_DOCUMENT; + case 4: + return SEMANTIC_SIMILARITY; + case 5: + return CLASSIFICATION; + case 6: + return CLUSTERING; + case 7: + return QUESTION_ANSWERING; + case 8: + return FACT_VERIFICATION; + case 9: + return CODE_RETRIEVAL_QUERY; + 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 EmbeddingTaskType findValueByNumber(int number) { + return EmbeddingTaskType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EmbedContentRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EmbeddingTaskType[] VALUES = values(); + + public static EmbeddingTaskType 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 EmbeddingTaskType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType) + } + + private int bitField0_; + public static final int MODEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + 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(); + model_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.Content content_; + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : content_; + } + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : content_; + } + + public static final int TITLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_TYPE_FIELD_NUMBER = 5; + private int taskType_ = 0; + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the taskType field is set. + */ + @java.lang.Override + public boolean hasTaskType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for taskType. + */ + @java.lang.Override + public int getTaskTypeValue() { + return taskType_; + } + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The taskType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType getTaskType() { + com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType result = + com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType.forNumber(taskType_); + return result == null + ? com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType.UNRECOGNIZED + : result; + } + + public static final int OUTPUT_DIMENSIONALITY_FIELD_NUMBER = 6; + private int outputDimensionality_ = 0; + + /** + * + * + *
    +   * Optional. Optional reduced dimension for the output embedding. If set,
    +   * excessive values in the output embedding are truncated from the end.
    +   * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputDimensionality field is set. + */ + @java.lang.Override + public boolean hasOutputDimensionality() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Optional. Optional reduced dimension for the output embedding. If set,
    +   * excessive values in the output embedding are truncated from the end.
    +   * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputDimensionality. + */ + @java.lang.Override + public int getOutputDimensionality() { + return outputDimensionality_; + } + + public static final int AUTO_TRUNCATE_FIELD_NUMBER = 7; + private boolean autoTruncate_ = false; + + /** + * + * + *
    +   * Optional. Whether to silently truncate the input content if it's longer
    +   * than the maximum sequence length.
    +   * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the autoTruncate field is set. + */ + @java.lang.Override + public boolean hasAutoTruncate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +   * Optional. Whether to silently truncate the input content if it's longer
    +   * than the maximum sequence length.
    +   * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoTruncate. + */ + @java.lang.Override + public boolean getAutoTruncate() { + return autoTruncate_; + } + + 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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(5, taskType_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(6, outputDimensionality_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(7, autoTruncate_); + } + 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.GeneratedMessageV3.computeStringSize(1, model_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, taskType_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, outputDimensionality_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, autoTruncate_); + } + 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.aiplatform.v1.EmbedContentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.EmbedContentRequest other = + (com.google.cloud.aiplatform.v1.EmbedContentRequest) obj; + + if (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel().equals(other.getModel())) return false; + } + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasTaskType() != other.hasTaskType()) return false; + if (hasTaskType()) { + if (taskType_ != other.taskType_) return false; + } + if (hasOutputDimensionality() != other.hasOutputDimensionality()) return false; + if (hasOutputDimensionality()) { + if (getOutputDimensionality() != other.getOutputDimensionality()) return false; + } + if (hasAutoTruncate() != other.hasAutoTruncate()) return false; + if (hasAutoTruncate()) { + if (getAutoTruncate() != other.getAutoTruncate()) 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 (hasModel()) { + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + } + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasTaskType()) { + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + taskType_; + } + if (hasOutputDimensionality()) { + hash = (37 * hash) + OUTPUT_DIMENSIONALITY_FIELD_NUMBER; + hash = (53 * hash) + getOutputDimensionality(); + } + if (hasAutoTruncate()) { + hash = (37 * hash) + AUTO_TRUNCATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoTruncate()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest 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.aiplatform.v1.EmbedContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest 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.aiplatform.v1.EmbedContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.EmbedContentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for
    +   * [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent].
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.EmbedContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.EmbedContentRequest) + com.google.cloud.aiplatform.v1.EmbedContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.EmbedContentRequest.class, + com.google.cloud.aiplatform.v1.EmbedContentRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.EmbedContentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + model_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + title_ = ""; + taskType_ = 0; + outputDimensionality_ = 0; + autoTruncate_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.EmbedContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentRequest build() { + com.google.cloud.aiplatform.v1.EmbedContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentRequest buildPartial() { + com.google.cloud.aiplatform.v1.EmbedContentRequest result = + new com.google.cloud.aiplatform.v1.EmbedContentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.EmbedContentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.taskType_ = taskType_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.outputDimensionality_ = outputDimensionality_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.autoTruncate_ = autoTruncate_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.EmbedContentRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.EmbedContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.EmbedContentRequest other) { + if (other == com.google.cloud.aiplatform.v1.EmbedContentRequest.getDefaultInstance()) + return this; + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTaskType()) { + setTaskType(other.getTaskType()); + } + if (other.hasOutputDimensionality()) { + setOutputDimensionality(other.getOutputDimensionality()); + } + if (other.hasAutoTruncate()) { + setAutoTruncate(other.getAutoTruncate()); + } + 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: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + taskType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + outputDimensionality_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + autoTruncate_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + 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 model_ = ""; + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.Content content_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + contentBuilder_; + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + */ + public Builder setContent(com.google.cloud.aiplatform.v1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + */ + public Builder setContent(com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.cloud.aiplatform.v1.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + */ + public com.google.cloud.aiplatform.v1.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + */ + public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : content_; + } + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + getContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int taskType_ = 0; + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the taskType field is set. + */ + @java.lang.Override + public boolean hasTaskType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for taskType. + */ + @java.lang.Override + public int getTaskTypeValue() { + return taskType_; + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for taskType to set. + * @return This builder for chaining. + */ + public Builder setTaskTypeValue(int value) { + taskType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The taskType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType getTaskType() { + com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType result = + com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType.forNumber(taskType_); + return result == null + ? com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The taskType to set. + * @return This builder for chaining. + */ + public Builder setTaskType( + com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + taskType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTaskType() { + bitField0_ = (bitField0_ & ~0x00000008); + taskType_ = 0; + onChanged(); + return this; + } + + private int outputDimensionality_; + + /** + * + * + *
    +     * Optional. Optional reduced dimension for the output embedding. If set,
    +     * excessive values in the output embedding are truncated from the end.
    +     * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputDimensionality field is set. + */ + @java.lang.Override + public boolean hasOutputDimensionality() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Optional. Optional reduced dimension for the output embedding. If set,
    +     * excessive values in the output embedding are truncated from the end.
    +     * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputDimensionality. + */ + @java.lang.Override + public int getOutputDimensionality() { + return outputDimensionality_; + } + + /** + * + * + *
    +     * Optional. Optional reduced dimension for the output embedding. If set,
    +     * excessive values in the output embedding are truncated from the end.
    +     * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The outputDimensionality to set. + * @return This builder for chaining. + */ + public Builder setOutputDimensionality(int value) { + + outputDimensionality_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional reduced dimension for the output embedding. If set,
    +     * excessive values in the output embedding are truncated from the end.
    +     * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearOutputDimensionality() { + bitField0_ = (bitField0_ & ~0x00000010); + outputDimensionality_ = 0; + onChanged(); + return this; + } + + private boolean autoTruncate_; + + /** + * + * + *
    +     * Optional. Whether to silently truncate the input content if it's longer
    +     * than the maximum sequence length.
    +     * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the autoTruncate field is set. + */ + @java.lang.Override + public boolean hasAutoTruncate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. Whether to silently truncate the input content if it's longer
    +     * than the maximum sequence length.
    +     * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoTruncate. + */ + @java.lang.Override + public boolean getAutoTruncate() { + return autoTruncate_; + } + + /** + * + * + *
    +     * Optional. Whether to silently truncate the input content if it's longer
    +     * than the maximum sequence length.
    +     * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The autoTruncate to set. + * @return This builder for chaining. + */ + public Builder setAutoTruncate(boolean value) { + + autoTruncate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Whether to silently truncate the input content if it's longer
    +     * than the maximum sequence length.
    +     * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAutoTruncate() { + bitField0_ = (bitField0_ & ~0x00000020); + autoTruncate_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.EmbedContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.EmbedContentRequest) + private static final com.google.cloud.aiplatform.v1.EmbedContentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.EmbedContentRequest(); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbedContentRequest 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.aiplatform.v1.EmbedContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentRequestOrBuilder.java new file mode 100644 index 000000000000..603a2f3bf287 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentRequestOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1/prediction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface EmbedContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.EmbedContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + boolean hasModel(); + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The model. + */ + java.lang.String getModel(); + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + * + * @return The content. + */ + com.google.cloud.aiplatform.v1.Content getContent(); + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1.Content content = 2; + */ + com.google.cloud.aiplatform.v1.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the taskType field is set. + */ + boolean hasTaskType(); + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for taskType. + */ + int getTaskTypeValue(); + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The taskType. + */ + com.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType getTaskType(); + + /** + * + * + *
    +   * Optional. Optional reduced dimension for the output embedding. If set,
    +   * excessive values in the output embedding are truncated from the end.
    +   * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputDimensionality field is set. + */ + boolean hasOutputDimensionality(); + + /** + * + * + *
    +   * Optional. Optional reduced dimension for the output embedding. If set,
    +   * excessive values in the output embedding are truncated from the end.
    +   * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputDimensionality. + */ + int getOutputDimensionality(); + + /** + * + * + *
    +   * Optional. Whether to silently truncate the input content if it's longer
    +   * than the maximum sequence length.
    +   * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the autoTruncate field is set. + */ + boolean hasAutoTruncate(); + + /** + * + * + *
    +   * Optional. Whether to silently truncate the input content if it's longer
    +   * than the maximum sequence length.
    +   * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoTruncate. + */ + boolean getAutoTruncate(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentResponse.java new file mode 100644 index 000000000000..9a00378b9878 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentResponse.java @@ -0,0 +1,1867 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1/prediction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
    + * Response message for
    + * [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent].
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.EmbedContentResponse} + */ +public final class EmbedContentResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.EmbedContentResponse) + EmbedContentResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EmbedContentResponse.newBuilder() to construct. + private EmbedContentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmbedContentResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmbedContentResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.EmbedContentResponse.class, + com.google.cloud.aiplatform.v1.EmbedContentResponse.Builder.class); + } + + public interface EmbeddingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.EmbedContentResponse.Embedding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + float getValues(int index); + } + + /** + * + * + *
    +   * A list of floats representing an embedding.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.EmbedContentResponse.Embedding} + */ + public static final class Embedding extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.EmbedContentResponse.Embedding) + EmbeddingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Embedding.newBuilder() to construct. + private Embedding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Embedding() { + values_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Embedding(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.class, + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList values_ = emptyFloatList(); + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public float getValues(int index) { + return values_.getFloat(index); + } + + private int valuesMemoizedSerializedSize = -1; + + 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 (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeFloatNoTag(values_.getFloat(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 4 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.aiplatform.v1.EmbedContentResponse.Embedding)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding other = + (com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding 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.aiplatform.v1.EmbedContentResponse.Embedding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding 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.aiplatform.v1.EmbedContentResponse.Embedding parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A list of floats representing an embedding.
    +     * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.EmbedContentResponse.Embedding} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.EmbedContentResponse.Embedding) + com.google.cloud.aiplatform.v1.EmbedContentResponse.EmbeddingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.class, + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyFloatList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding build() { + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding buildPartial() { + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding result = + new com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding) { + return mergeFrom((com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding other) { + if (other + == com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 13: + { + float v = input.readFloat(); + ensureValuesIsMutable(); + values_.addFloat(v); + break; + } // case 13 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureValuesIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + values_.addFloat(input.readFloat()); + } + input.popLimit(limit); + 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.Internal.FloatList values_ = emptyFloatList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + + private void ensureValuesIsMutable(int capacity) { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_, capacity); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @return A list containing the values. + */ + public java.util.List getValuesList() { + values_.makeImmutable(); + return values_; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public float getValues(int index) { + return values_.getFloat(index); + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, float value) { + + ensureValuesIsMutable(); + values_.setFloat(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(float value) { + + ensureValuesIsMutable(); + values_.addFloat(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.EmbedContentResponse.Embedding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.EmbedContentResponse.Embedding) + private static final com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding(); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Embedding 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.aiplatform.v1.EmbedContentResponse.Embedding + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EMBEDDING_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding_; + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + * + * @return Whether the embedding field is set. + */ + @java.lang.Override + public boolean hasEmbedding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + * + * @return The embedding. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding getEmbedding() { + return embedding_ == null + ? com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.getDefaultInstance() + : embedding_; + } + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentResponse.EmbeddingOrBuilder + getEmbeddingOrBuilder() { + return embedding_ == null + ? com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.getDefaultInstance() + : embedding_; + } + + public static final int USAGE_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.UsageMetadata usageMetadata_; + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + * + * @return Whether the usageMetadata field is set. + */ + @java.lang.Override + public boolean hasUsageMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + * + * @return The usageMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.UsageMetadata getUsageMetadata() { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.UsageMetadataOrBuilder getUsageMetadataOrBuilder() { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } + + public static final int TRUNCATED_FIELD_NUMBER = 4; + private boolean truncated_ = false; + + /** + * + * + *
    +   * Whether the input content was truncated before generating the embedding.
    +   * 
    + * + * bool truncated = 4; + * + * @return The truncated. + */ + @java.lang.Override + public boolean getTruncated() { + return truncated_; + } + + 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, getEmbedding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUsageMetadata()); + } + if (truncated_ != false) { + output.writeBool(4, truncated_); + } + 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, getEmbedding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUsageMetadata()); + } + if (truncated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, truncated_); + } + 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.aiplatform.v1.EmbedContentResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.EmbedContentResponse other = + (com.google.cloud.aiplatform.v1.EmbedContentResponse) obj; + + if (hasEmbedding() != other.hasEmbedding()) return false; + if (hasEmbedding()) { + if (!getEmbedding().equals(other.getEmbedding())) return false; + } + if (hasUsageMetadata() != other.hasUsageMetadata()) return false; + if (hasUsageMetadata()) { + if (!getUsageMetadata().equals(other.getUsageMetadata())) return false; + } + if (getTruncated() != other.getTruncated()) 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 (hasEmbedding()) { + hash = (37 * hash) + EMBEDDING_FIELD_NUMBER; + hash = (53 * hash) + getEmbedding().hashCode(); + } + if (hasUsageMetadata()) { + hash = (37 * hash) + USAGE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getUsageMetadata().hashCode(); + } + hash = (37 * hash) + TRUNCATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTruncated()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse 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.aiplatform.v1.EmbedContentResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse 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.aiplatform.v1.EmbedContentResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.EmbedContentResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message for
    +   * [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent].
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.EmbedContentResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.EmbedContentResponse) + com.google.cloud.aiplatform.v1.EmbedContentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.EmbedContentResponse.class, + com.google.cloud.aiplatform.v1.EmbedContentResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.EmbedContentResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEmbeddingFieldBuilder(); + getUsageMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + embedding_ = null; + if (embeddingBuilder_ != null) { + embeddingBuilder_.dispose(); + embeddingBuilder_ = null; + } + usageMetadata_ = null; + if (usageMetadataBuilder_ != null) { + usageMetadataBuilder_.dispose(); + usageMetadataBuilder_ = null; + } + truncated_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.EmbedContentResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentResponse build() { + com.google.cloud.aiplatform.v1.EmbedContentResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.EmbedContentResponse buildPartial() { + com.google.cloud.aiplatform.v1.EmbedContentResponse result = + new com.google.cloud.aiplatform.v1.EmbedContentResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.EmbedContentResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.embedding_ = embeddingBuilder_ == null ? embedding_ : embeddingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.usageMetadata_ = + usageMetadataBuilder_ == null ? usageMetadata_ : usageMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.truncated_ = truncated_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.EmbedContentResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.EmbedContentResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.EmbedContentResponse other) { + if (other == com.google.cloud.aiplatform.v1.EmbedContentResponse.getDefaultInstance()) + return this; + if (other.hasEmbedding()) { + mergeEmbedding(other.getEmbedding()); + } + if (other.hasUsageMetadata()) { + mergeUsageMetadata(other.getUsageMetadata()); + } + if (other.getTruncated() != false) { + setTruncated(other.getTruncated()); + } + 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(getEmbeddingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUsageMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + truncated_ = input.readBool(); + bitField0_ |= 0x00000004; + 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 com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding, + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.Builder, + com.google.cloud.aiplatform.v1.EmbedContentResponse.EmbeddingOrBuilder> + embeddingBuilder_; + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + * + * @return Whether the embedding field is set. + */ + public boolean hasEmbedding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + * + * @return The embedding. + */ + public com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding getEmbedding() { + if (embeddingBuilder_ == null) { + return embedding_ == null + ? com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.getDefaultInstance() + : embedding_; + } else { + return embeddingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + */ + public Builder setEmbedding( + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding value) { + if (embeddingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + embedding_ = value; + } else { + embeddingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + */ + public Builder setEmbedding( + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.Builder builderForValue) { + if (embeddingBuilder_ == null) { + embedding_ = builderForValue.build(); + } else { + embeddingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + */ + public Builder mergeEmbedding( + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding value) { + if (embeddingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && embedding_ != null + && embedding_ + != com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding + .getDefaultInstance()) { + getEmbeddingBuilder().mergeFrom(value); + } else { + embedding_ = value; + } + } else { + embeddingBuilder_.mergeFrom(value); + } + if (embedding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + */ + public Builder clearEmbedding() { + bitField0_ = (bitField0_ & ~0x00000001); + embedding_ = null; + if (embeddingBuilder_ != null) { + embeddingBuilder_.dispose(); + embeddingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + */ + public com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.Builder + getEmbeddingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEmbeddingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + */ + public com.google.cloud.aiplatform.v1.EmbedContentResponse.EmbeddingOrBuilder + getEmbeddingOrBuilder() { + if (embeddingBuilder_ != null) { + return embeddingBuilder_.getMessageOrBuilder(); + } else { + return embedding_ == null + ? com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.getDefaultInstance() + : embedding_; + } + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding, + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.Builder, + com.google.cloud.aiplatform.v1.EmbedContentResponse.EmbeddingOrBuilder> + getEmbeddingFieldBuilder() { + if (embeddingBuilder_ == null) { + embeddingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding, + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding.Builder, + com.google.cloud.aiplatform.v1.EmbedContentResponse.EmbeddingOrBuilder>( + getEmbedding(), getParentForChildren(), isClean()); + embedding_ = null; + } + return embeddingBuilder_; + } + + private com.google.cloud.aiplatform.v1.UsageMetadata usageMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.UsageMetadata, + com.google.cloud.aiplatform.v1.UsageMetadata.Builder, + com.google.cloud.aiplatform.v1.UsageMetadataOrBuilder> + usageMetadataBuilder_; + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + * + * @return Whether the usageMetadata field is set. + */ + public boolean hasUsageMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + * + * @return The usageMetadata. + */ + public com.google.cloud.aiplatform.v1.UsageMetadata getUsageMetadata() { + if (usageMetadataBuilder_ == null) { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } else { + return usageMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + */ + public Builder setUsageMetadata(com.google.cloud.aiplatform.v1.UsageMetadata value) { + if (usageMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usageMetadata_ = value; + } else { + usageMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + */ + public Builder setUsageMetadata( + com.google.cloud.aiplatform.v1.UsageMetadata.Builder builderForValue) { + if (usageMetadataBuilder_ == null) { + usageMetadata_ = builderForValue.build(); + } else { + usageMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + */ + public Builder mergeUsageMetadata(com.google.cloud.aiplatform.v1.UsageMetadata value) { + if (usageMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && usageMetadata_ != null + && usageMetadata_ + != com.google.cloud.aiplatform.v1.UsageMetadata.getDefaultInstance()) { + getUsageMetadataBuilder().mergeFrom(value); + } else { + usageMetadata_ = value; + } + } else { + usageMetadataBuilder_.mergeFrom(value); + } + if (usageMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + */ + public Builder clearUsageMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + usageMetadata_ = null; + if (usageMetadataBuilder_ != null) { + usageMetadataBuilder_.dispose(); + usageMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + */ + public com.google.cloud.aiplatform.v1.UsageMetadata.Builder getUsageMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUsageMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + */ + public com.google.cloud.aiplatform.v1.UsageMetadataOrBuilder getUsageMetadataOrBuilder() { + if (usageMetadataBuilder_ != null) { + return usageMetadataBuilder_.getMessageOrBuilder(); + } else { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.UsageMetadata, + com.google.cloud.aiplatform.v1.UsageMetadata.Builder, + com.google.cloud.aiplatform.v1.UsageMetadataOrBuilder> + getUsageMetadataFieldBuilder() { + if (usageMetadataBuilder_ == null) { + usageMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.UsageMetadata, + com.google.cloud.aiplatform.v1.UsageMetadata.Builder, + com.google.cloud.aiplatform.v1.UsageMetadataOrBuilder>( + getUsageMetadata(), getParentForChildren(), isClean()); + usageMetadata_ = null; + } + return usageMetadataBuilder_; + } + + private boolean truncated_; + + /** + * + * + *
    +     * Whether the input content was truncated before generating the embedding.
    +     * 
    + * + * bool truncated = 4; + * + * @return The truncated. + */ + @java.lang.Override + public boolean getTruncated() { + return truncated_; + } + + /** + * + * + *
    +     * Whether the input content was truncated before generating the embedding.
    +     * 
    + * + * bool truncated = 4; + * + * @param value The truncated to set. + * @return This builder for chaining. + */ + public Builder setTruncated(boolean value) { + + truncated_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Whether the input content was truncated before generating the embedding.
    +     * 
    + * + * bool truncated = 4; + * + * @return This builder for chaining. + */ + public Builder clearTruncated() { + bitField0_ = (bitField0_ & ~0x00000004); + truncated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.EmbedContentResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.EmbedContentResponse) + private static final com.google.cloud.aiplatform.v1.EmbedContentResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.EmbedContentResponse(); + } + + public static com.google.cloud.aiplatform.v1.EmbedContentResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbedContentResponse 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.aiplatform.v1.EmbedContentResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentResponseOrBuilder.java new file mode 100644 index 000000000000..fe948854af8e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EmbedContentResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1/prediction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface EmbedContentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.EmbedContentResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + * + * @return Whether the embedding field is set. + */ + boolean hasEmbedding(); + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + * + * @return The embedding. + */ + com.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding getEmbedding(); + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1.EmbedContentResponse.Embedding embedding = 1; + */ + com.google.cloud.aiplatform.v1.EmbedContentResponse.EmbeddingOrBuilder getEmbeddingOrBuilder(); + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + * + * @return Whether the usageMetadata field is set. + */ + boolean hasUsageMetadata(); + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + * + * @return The usageMetadata. + */ + com.google.cloud.aiplatform.v1.UsageMetadata getUsageMetadata(); + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; + */ + com.google.cloud.aiplatform.v1.UsageMetadataOrBuilder getUsageMetadataOrBuilder(); + + /** + * + * + *
    +   * Whether the input content was truncated before generating the embedding.
    +   * 
    + * + * bool truncated = 4; + * + * @return The truncated. + */ + boolean getTruncated(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStore.java index e3038ac31d34..d0b76f339f30 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStore.java @@ -304,10 +304,11 @@ public interface BigtableOrBuilder * * *
    -     * Optional. Whether direct access to the Bigtable instance is enabled or not.
    +     * Optional. Whether direct access to the Bigtable instance is enabled or
    +     * not.
          * 
    * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enableDirectBigtableAccess. @@ -322,7 +323,7 @@ public interface BigtableOrBuilder * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -337,7 +338,7 @@ public interface BigtableOrBuilder * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -353,7 +354,7 @@ public interface BigtableOrBuilder * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder @@ -2386,17 +2387,18 @@ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling ge : autoScaling_; } - public static final int ENABLE_DIRECT_BIGTABLE_ACCESS_FIELD_NUMBER = 2; + public static final int ENABLE_DIRECT_BIGTABLE_ACCESS_FIELD_NUMBER = 3; private boolean enableDirectBigtableAccess_ = false; /** * * *
    -     * Optional. Whether direct access to the Bigtable instance is enabled or not.
    +     * Optional. Whether direct access to the Bigtable instance is enabled or
    +     * not.
          * 
    * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enableDirectBigtableAccess. @@ -2406,7 +2408,7 @@ public boolean getEnableDirectBigtableAccess() { return enableDirectBigtableAccess_; } - public static final int BIGTABLE_METADATA_FIELD_NUMBER = 3; + public static final int BIGTABLE_METADATA_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtableMetadata_; @@ -2418,7 +2420,7 @@ public boolean getEnableDirectBigtableAccess() { * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -2436,7 +2438,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -2458,7 +2460,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -2488,10 +2490,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(1, getAutoScaling()); } if (enableDirectBigtableAccess_ != false) { - output.writeBool(2, enableDirectBigtableAccess_); + output.writeBool(3, enableDirectBigtableAccess_); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getBigtableMetadata()); + output.writeMessage(4, getBigtableMetadata()); } getUnknownFields().writeTo(output); } @@ -2507,10 +2509,10 @@ public int getSerializedSize() { } if (enableDirectBigtableAccess_ != false) { size += - com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableDirectBigtableAccess_); + com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableDirectBigtableAccess_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBigtableMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBigtableMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2862,19 +2864,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 16: + case 24: { enableDirectBigtableAccess_ = input.readBool(); bitField0_ |= 0x00000002; break; - } // case 16 - case 26: + } // case 24 + case 34: { input.readMessage( getBigtableMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; - } // case 26 + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3123,10 +3125,11 @@ public Builder clearAutoScaling() { * * *
    -       * Optional. Whether direct access to the Bigtable instance is enabled or not.
    +       * Optional. Whether direct access to the Bigtable instance is enabled or
    +       * not.
            * 
    * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enableDirectBigtableAccess. @@ -3140,10 +3143,11 @@ public boolean getEnableDirectBigtableAccess() { * * *
    -       * Optional. Whether direct access to the Bigtable instance is enabled or not.
    +       * Optional. Whether direct access to the Bigtable instance is enabled or
    +       * not.
            * 
    * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enableDirectBigtableAccess to set. @@ -3161,10 +3165,11 @@ public Builder setEnableDirectBigtableAccess(boolean value) { * * *
    -       * Optional. Whether direct access to the Bigtable instance is enabled or not.
    +       * Optional. Whether direct access to the Bigtable instance is enabled or
    +       * not.
            * 
    * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -3192,7 +3197,7 @@ public Builder clearEnableDirectBigtableAccess() { * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -3209,7 +3214,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -3234,7 +3239,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigtableMetadata( @@ -3260,7 +3265,7 @@ public Builder setBigtableMetadata( * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigtableMetadata( @@ -3284,7 +3289,7 @@ public Builder setBigtableMetadata( * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeBigtableMetadata( @@ -3317,7 +3322,7 @@ public Builder mergeBigtableMetadata( * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearBigtableMetadata() { @@ -3339,7 +3344,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata.Builder @@ -3357,7 +3362,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder @@ -3380,7 +3385,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java index 8f3d3f0a6214..77bb5efbac70 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java @@ -93,8 +93,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\003\032\304\003\n\010Bigtable\022^\n\014auto_scaling\030\001 \001(\0132C" + ".google.cloud.aiplatform.v1.FeatureOnlin" + "eStore.Bigtable.AutoScalingB\003\340A\002\022*\n\035enab" - + "le_direct_bigtable_access\030\002 \001(\010B\003\340A\001\022h\n\021" - + "bigtable_metadata\030\003 \001(\0132H.google.cloud.a" + + "le_direct_bigtable_access\030\003 \001(\010B\003\340A\001\022h\n\021" + + "bigtable_metadata\030\004 \001(\0132H.google.cloud.a" + "iplatform.v1.FeatureOnlineStore.Bigtable" + ".BigtableMetadataB\003\340A\003\032l\n\013AutoScaling\022\033\n" + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016max_node_c" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java index 4c38ddebff85..547e7ea5cb56 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java @@ -11679,7 +11679,7 @@ public boolean getSatisfiesPzi() { return satisfiesPzi_; } - public static final int BIGTABLE_METADATA_FIELD_NUMBER = 21; + public static final int BIGTABLE_METADATA_FIELD_NUMBER = 22; private com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtableMetadata_; /** @@ -11690,7 +11690,7 @@ public boolean getSatisfiesPzi() { * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -11708,7 +11708,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -11728,7 +11728,7 @@ public com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata getBigtableMe * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -11802,7 +11802,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeBool(20, satisfiesPzi_); } if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(21, getBigtableMetadata()); + output.writeMessage(22, getBigtableMetadata()); } getUnknownFields().writeTo(output); } @@ -11875,7 +11875,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_); } if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getBigtableMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getBigtableMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12567,13 +12567,13 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 160 - case 170: + case 178: { input.readMessage( getBigtableMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; - } // case 170 + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -15318,7 +15318,7 @@ public Builder clearSatisfiesPzi() { * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -15335,7 +15335,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -15358,7 +15358,7 @@ public com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata getBigtableMe * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigtableMetadata( @@ -15384,7 +15384,7 @@ public Builder setBigtableMetadata( * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigtableMetadata( @@ -15407,7 +15407,7 @@ public Builder setBigtableMetadata( * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeBigtableMetadata( @@ -15440,7 +15440,7 @@ public Builder mergeBigtableMetadata( * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearBigtableMetadata() { @@ -15462,7 +15462,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.Builder @@ -15480,7 +15480,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadataOrBuilder @@ -15502,7 +15502,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java index fca8fbcfc77c..b0de1c9c62dc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java @@ -654,7 +654,7 @@ java.lang.String getLabelsOrDefault( * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -669,7 +669,7 @@ java.lang.String getLabelsOrDefault( * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -684,7 +684,7 @@ java.lang.String getLabelsOrDefault( * * * - * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadataOrBuilder diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java index c71d81f71eee..5869f7e7a389 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java @@ -117,7 +117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\003\340A\003\022\032\n\r" + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r" + "satisfies_pzi\030\024 \001(\010B\003\340A\003\022X\n" - + "\021bigtable_metadata\030\025 \001(\01328.google." + + "\021bigtable_metadata\030\026 \001(\01328.google." + "cloud.aiplatform.v1.FeatureView.BigtableMetadataB\003\340A\003\032B\n" + "\016BigQuerySource\022\020\n" + "\003uri\030\001 \001(\tB\003\340A\002\022\036\n" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java index 1723359e5d58..76f3a68c03e3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java @@ -132,6 +132,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_GenerateContentResponse_UsageMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_GenerateContentResponse_UsageMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -148,15 +160,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ior.proto\032\031google/api/httpbody.proto\032\031go" + "ogle/api/resource.proto\032(google/cloud/aiplatform/v1/content.proto\032,google/cloud/" + "aiplatform/v1/explanation.proto\032%google/cloud/aiplatform/v1/tool.proto\032&google/c" - + "loud/aiplatform/v1/types.proto\032\034google/p" - + "rotobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\246\002\n" + + "loud/aiplatform/v1/types.proto\032/google/cloud/aiplatform/v1/usage_metadata.proto\032" + + "\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\246\002\n" + "\016PredictRequest\022<\n" + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n" + "\"aiplatform.googleapis.com/Endpoint\022.\n" + "\tinstances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\002\022*\n\n" + "parameters\030\003 \001(\0132\026.google.protobuf.Value\022K\n" - + "\006labels\030\004 \003" - + "(\01326.google.cloud.aiplatform.v1.PredictRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004" + + " \003(\01326.google.cloud.aiplatform.v1.PredictRequest.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\"\200\002\n" @@ -194,8 +206,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032StreamDirectPredictRequest\022<\n" + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n" + "\"aiplatform.googleapis.com/Endpoint\0227\n" - + "\006inputs\030\002" - + " \003(\0132\".google.cloud.aiplatform.v1.TensorB\003\340A\001\022;\n\n" + + "\006inputs\030\002 \003(" + + "\0132\".google.cloud.aiplatform.v1.TensorB\003\340A\001\022;\n\n" + "parameters\030\003" + " \001(\0132\".google.cloud.aiplatform.v1.TensorB\003\340A\001\"\212\001\n" + "\033StreamDirectPredictResponse\0223\n" @@ -228,8 +240,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"aiplatform.googleapis.com/Endpoint\022.\n" + "\tinstances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\002\022*\n\n" + "parameters\030\004 \001(\0132\026.google.protobuf.Value\022V\n" - + "\031explanation_spec_override\030\005 \001(\01323.google.clou" - + "d.aiplatform.v1.ExplanationSpecOverride\022\031\n" + + "\031explanation_spec_override\030\005 \001(\01323.go" + + "ogle.cloud.aiplatform.v1.ExplanationSpecOverride\022\031\n" + "\021deployed_model_id\030\003 \001(\t\"\230\001\n" + "\017ExplainResponse\022=\n" + "\014explanations\030\001 \003(\0132\'.google.cloud.aiplatform.v1.Explanation\022\031\n" @@ -240,35 +252,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"aiplatform.googleapis.com/Endpoint\022\022\n" + "\005model\030\003 \001(\tB\003\340A\001\022.\n" + "\tinstances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\001\022:\n" - + "\010contents\030\004" - + " \003(\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\001\022I\n" - + "\022system_instruction\030\005" - + " \001(\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\0224\n" + + "\010contents\030\004 \003(" + + "\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\001\022I\n" + + "\022system_instruction\030\005 \001(\0132#.google" + + ".cloud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\0224\n" + "\005tools\030\006 \003(\0132 .google.cloud.aiplatform.v1.ToolB\003\340A\001\022Q\n" - + "\021generation_config\030\007 \001(\0132,.google." - + "cloud.aiplatform.v1.GenerationConfigB\003\340A\001H\001\210\001\001B\025\n" + + "\021generation_config\030\007 \001(\0132" + + ",.google.cloud.aiplatform.v1.GenerationConfigB\003\340A\001H\001\210\001\001B\025\n" + "\023_system_instructionB\024\n" + "\022_generation_config\"\242\001\n" + "\023CountTokensResponse\022\024\n" + "\014total_tokens\030\001 \001(\005\022!\n" + "\031total_billable_characters\030\002 \001(\005\022R\n" - + "\025prompt_tokens_details\030\003 " - + "\003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\"\365\005\n" + + "\025prompt_tokens_details\030\003" + + " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\"\365\005\n" + "\026GenerateContentRequest\022\022\n" + "\005model\030\005 \001(\tB\003\340A\002\022:\n" - + "\010contents\030\002 \003(" - + "\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\002\022I\n" - + "\022system_instruction\030\010 \001(\0132#.google" - + ".cloud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\022G\n" + + "\010contents\030\002" + + " \003(\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\002\022I\n" + + "\022system_instruction\030\010 \001(\013" + + "2#.google.cloud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\022G\n" + "\016cached_content\030\t \001(\tB/\340A\001\372A)\n" + "\'aiplatform.googleapis.com/CachedContent\0224\n" + "\005tools\030\006 \003(\0132 .google.cloud.aiplatform.v1.ToolB\003\340A\001\022@\n" - + "\013tool_config\030\007" - + " \001(\0132&.google.cloud.aiplatform.v1.ToolConfigB\003\340A\001\022S\n" + + "\013tool_config\030\007 \001(\0132&.go" + + "ogle.cloud.aiplatform.v1.ToolConfigB\003\340A\001\022S\n" + "\006labels\030\n" - + " \003(\0132>.google.cloud.aiplatform.v1.GenerateContentRequest.LabelsEntryB\003\340A\001\022G\n" - + "\017safety_settings\030\003" - + " \003(\0132).google.cloud.aiplatform.v1.SafetySettingB\003\340A\001\022M\n" + + " \003(\0132>.google.cloud.aiplatfo" + + "rm.v1.GenerateContentRequest.LabelsEntryB\003\340A\001\022G\n" + + "\017safety_settings\030\003 \003(\0132).google." + + "cloud.aiplatform.v1.SafetySettingB\003\340A\001\022M\n" + "\022model_armor_config\030\013" + " \001(\0132,.google.cloud.aiplatform.v1.ModelArmorConfigB\003\340A\001\022L\n" + "\021generation_config\030\004" @@ -279,21 +292,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_system_instruction\"\260\t\n" + "\027GenerateContentResponse\022>\n\n" + "candidates\030\002" - + " \003(\0132%.google.cloud.aiplatform.v1.CandidateB\003\340A\003\022\032\n\r" + + " \003(\0132%.google.cloud.aiplatform.v1.CandidateB\003\340A\003\022\032\n" + + "\r" + "model_version\030\013 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\014" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013response_id\030\r" + " \001(\tB\003\340A\003\022`\n" - + "\017prompt_feedback\030\003 \001(" - + "\0132B.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedbackB\003\340A\003\022Y\n" - + "\016usage_metadata\030\004 \001(\0132A.google.cloud.aiplat" - + "form.v1.GenerateContentResponse.UsageMetadata\032\367\002\n" + + "\017prompt_feedback\030\003 \001(\0132B.google.cloud.aiplatform.v1." + + "GenerateContentResponse.PromptFeedbackB\003\340A\003\022Y\n" + + "\016usage_metadata\030\004 \001(\0132A.google.clo" + + "ud.aiplatform.v1.GenerateContentResponse.UsageMetadata\032\367\002\n" + "\016PromptFeedback\022k\n" - + "\014block_reason\030\001 \001(\0162P.google.cloud.aiplatform.v1.Gene" - + "rateContentResponse.PromptFeedback.BlockedReasonB\003\340A\003\022E\n" - + "\016safety_ratings\030\002 \003(\0132(." - + "google.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022!\n" + + "\014block_reason\030\001 \001(\0162P.google.cloud.aiplatfor" + + "m.v1.GenerateContentResponse.PromptFeedback.BlockedReasonB\003\340A\003\022E\n" + + "\016safety_ratings\030\002" + + " \003(\0132(.google.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022!\n" + "\024block_reason_message\030\003 \001(\tB\003\340A\003\"\215\001\n\r" + "BlockedReason\022\036\n" + "\032BLOCKED_REASON_UNSPECIFIED\020\000\022\n\n" @@ -309,80 +323,118 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024thoughts_token_count\030\016 \001(\005B\003\340A\003\022\031\n" + "\021total_token_count\030\003 \001(\005\022\'\n" + "\032cached_content_token_count\030\005 \001(\005B\003\340A\003\022R\n" - + "\025prompt_tokens_details\030\t \003(\0132..go" - + "ogle.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\022Q\n" + + "\025prompt_tokens_details\030\t" + + " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\022Q\n" + "\024cache_tokens_details\030\n" + " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\022V\n" + "\031candidates_tokens_details\030\013" - + " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\0032\362\031\n" + + " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\"\204\005\n" + + "\023EmbedContentRequest\022;\n" + + "\005model\030\001 \001(\tB\'\372A$\n" + + "\"aiplatform.googleapis.com/EndpointH\000\210\001\001\0229\n" + + "\007content\030\002" + + " \001(\0132#.google.cloud.aiplatform.v1.ContentH\001\210\001\001\022\027\n" + + "\005title\030\004 \001(\tB\003\340A\001H\002\210\001\001\022^\n" + + "\ttask_type\030\005 \001(\0162A.google.cloud.aiplatfo" + + "rm.v1.EmbedContentRequest.EmbeddingTaskTypeB\003\340A\001H\003\210\001\001\022\'\n" + + "\025output_dimensionality\030\006 \001(\005B\003\340A\001H\004\210\001\001\022\037\n\r" + + "auto_truncate\030\007 \001(\010B\003\340A\001H\005\210\001\001\"\327\001\n" + + "\021EmbeddingTaskType\022\017\n" + + "\013UNSPECIFIED\020\000\022\023\n" + + "\017RETRIEVAL_QUERY\020\002\022\026\n" + + "\022RETRIEVAL_DOCUMENT\020\003\022\027\n" + + "\023SEMANTIC_SIMILARITY\020\004\022\022\n" + + "\016CLASSIFICATION\020\005\022\016\n\n" + + "CLUSTERING\020\006\022\026\n" + + "\022QUESTION_ANSWERING\020\007\022\025\n" + + "\021FACT_VERIFICATION\020\010\022\030\n" + + "\024CODE_RETRIEVAL_QUERY\020\tB\010\n" + + "\006_modelB\n\n" + + "\010_contentB\010\n" + + "\006_titleB\014\n\n" + + "_task_typeB\030\n" + + "\026_output_dimensionalityB\020\n" + + "\016_auto_truncate\"\330\001\n" + + "\024EmbedContentResponse\022M\n" + + "\tembedding\030\001 \001(\0132" + + ":.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding\022A\n" + + "\016usage_metadata\030\002 " + + "\001(\0132).google.cloud.aiplatform.v1.UsageMetadata\022\021\n" + + "\ttruncated\030\004 \001(\010\032\033\n" + + "\tEmbedding\022\016\n" + + "\006values\030\001 \003(\0022\310\033\n" + "\021PredictionService\022\224\002\n" - + "\007Predict\022*.google.cloud.aiplatform.v1.PredictRequest\032+.google.cloud.aiplatf" - + "orm.v1.PredictResponse\"\257\001\332A\035endpoint,ins" - + "tances,parameters\202\323\344\223\002\210\001\"9/v1/{endpoint=" - + "projects/*/locations/*/endpoints/*}:predict:\001*ZH\"C/v1/{endpoint=projects/*/locat" - + "ions/*/publishers/*/models/*}:predict:\001*\022\376\001\n\n" - + "RawPredict\022-.google.cloud.aiplatform.v1.RawPredictRequest\032\024.google.api.Http" - + "Body\"\252\001\332A\022endpoint,http_body\202\323\344\223\002\216\001\"\"9/v1/{endpoint" - + "=projects/*/locations/*/endpoints/*}:explain:\001*\022\215\003\n" - + "\017GenerateContent\0222.google.cloud.aiplatform.v1.GenerateContentRequest\032" - + "3.google.cloud.aiplatform.v1.GenerateCon" - + "tentResponse\"\220\002\332A\016model,contents\202\323\344\223\002\370\001\"" - + ">/v1/{model=projects/*/locations/*/endpoints/*}:generateContent:\001*ZM\"H/v1/{model" - + "=projects/*/locations/*/publishers/*/models/*}:generateContent:\001*Z,\"\'/v1/{model=" - + "endpoints/*}:generateContent:\001*Z6\"1/v1/{" - + "model=publishers/*/models/*}:generateContent:\001*\022\255\003\n" - + "\025StreamGenerateContent\0222.google.cloud.aiplatform.v1.GenerateContentRe" - + "quest\0323.google.cloud.aiplatform.v1.Gener" - + "ateContentResponse\"\250\002\332A\016model,contents\202\323" - + "\344\223\002\220\002\"D/v1/{model=projects/*/locations/*" - + "/endpoints/*}:streamGenerateContent:\001*ZS\"N/v1/{model=projects/*/locations/*/publ" - + "ishers/*/models/*}:streamGenerateContent:\001*Z2\"-/v1/{model=endpoints/*}:streamGen" - + "erateContent:\001*Z<\"7/v1/{model=publishers" - + "/*/models/*}:streamGenerateContent:\001*0\001\032" - + "\206\001\312A\031aiplatform.googleapis.com\322Aghttps:/" - + "/www.googleapis.com/auth/cloud-platform," - + "https://www.googleapis.com/auth/cloud-platform.read-onlyB\324\001\n" - + "\036com.google.cloud.aiplatform.v1B\026PredictionServiceProtoP\001Z>c" - + "loud.google.com/go/aiplatform/apiv1/aipl" - + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP" - + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352" - + "\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "\007Predict\022*.google.cloud.aiplatform.v1.Pr" + + "edictRequest\032+.google.cloud.aiplatform.v" + + "1.PredictResponse\"\257\001\332A\035endpoint,instance" + + "s,parameters\202\323\344\223\002\210\001\"9/v1/{endpoint=proje" + + "cts/*/locations/*/endpoints/*}:predict:\001" + + "*ZH\"C/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict:\001*\022\376\001\n\n" + + "RawPredict\022-.google.cloud.aiplatform.v1." + + "RawPredictRequest\032\024.google.api.HttpBody\"" + + "\252\001\332A\022endpoint,http_body\202\323\344\223\002\216\001\"\"9/v1/{endpoint=proj" + + "ects/*/locations/*/endpoints/*}:explain:\001*\022\215\003\n" + + "\017GenerateContent\0222.google.cloud.aiplatform.v1.GenerateContentRequest\0323.goo" + + "gle.cloud.aiplatform.v1.GenerateContentR" + + "esponse\"\220\002\332A\016model,contents\202\323\344\223\002\370\001\">/v1/" + + "{model=projects/*/locations/*/endpoints/*}:generateContent:\001*ZM\"H/v1/{model=proj" + + "ects/*/locations/*/publishers/*/models/*}:generateContent:\001*Z,\"\'/v1/{model=endpo" + + "ints/*}:generateContent:\001*Z6\"1/v1/{model" + + "=publishers/*/models/*}:generateContent:\001*\022\255\003\n" + + "\025StreamGenerateContent\0222.google.cloud.aiplatform.v1.GenerateContentRequest" + + "\0323.google.cloud.aiplatform.v1.GenerateCo" + + "ntentResponse\"\250\002\332A\016model,contents\202\323\344\223\002\220\002" + + "\"D/v1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent:\001*ZS\"N/v1" + + "/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent:\001*Z2" + + "\"-/v1/{model=endpoints/*}:streamGenerate" + + "Content:\001*Z<\"7/v1/{model=publishers/*/models/*}:streamGenerateContent:\001*0\001\022\323\001\n" + + "\014EmbedContent\022/.google.cloud.aiplatform.v1" + + ".EmbedContentRequest\0320.google.cloud.aiplatform.v1.EmbedContentResponse\"`\332A\r" + + "model,content\202\323\344\223\002J\"E/v1/{model=projects/*/lo" + + "cations/*/publishers/*/models/*}:embedCo" + + "ntent:\001*\032\206\001\312A\031aiplatform.googleapis.com\322" + + "Aghttps://www.googleapis.com/auth/cloud-" + + "platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\324\001\n" + + "\036com.google.cloud.aiplatform.v1B\026PredictionServiceP" + + "rotoP\001Z>cloud.google.com/go/aiplatform/a" + + "piv1/aiplatformpb;aiplatformpb\252\002\032Google." + + "Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPla" + + "tform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -397,6 +449,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.ExplanationProto.getDescriptor(), com.google.cloud.aiplatform.v1.ToolProto.getDescriptor(), com.google.cloud.aiplatform.v1.TypesProto.getDescriptor(), + com.google.cloud.aiplatform.v1.UsageMetadataProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -648,6 +701,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CacheTokensDetails", "CandidatesTokensDetails", }); + internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_EmbedContentRequest_descriptor, + new java.lang.String[] { + "Model", "Content", "Title", "TaskType", "OutputDimensionality", "AutoTruncate", + }); + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_descriptor, + new java.lang.String[] { + "Embedding", "UsageMetadata", "Truncated", + }); + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_descriptor = + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_EmbedContentResponse_Embedding_descriptor, + new java.lang.String[] { + "Values", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -667,6 +746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.ExplanationProto.getDescriptor(); com.google.cloud.aiplatform.v1.ToolProto.getDescriptor(); com.google.cloud.aiplatform.v1.TypesProto.getDescriptor(); + com.google.cloud.aiplatform.v1.UsageMetadataProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UsageMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UsageMetadata.java new file mode 100644 index 000000000000..b3460b6cbaba --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UsageMetadata.java @@ -0,0 +1,3806 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1/usage_metadata.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
    + * Usage metadata about the content generation request and response.
    + * This message provides a detailed breakdown of token usage and other
    + * relevant metrics.
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.UsageMetadata} + */ +public final class UsageMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UsageMetadata) + UsageMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UsageMetadata.newBuilder() to construct. + private UsageMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsageMetadata() { + promptTokensDetails_ = java.util.Collections.emptyList(); + cacheTokensDetails_ = java.util.Collections.emptyList(); + candidatesTokensDetails_ = java.util.Collections.emptyList(); + toolUsePromptTokensDetails_ = java.util.Collections.emptyList(); + trafficType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UsageMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1_UsageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1_UsageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UsageMetadata.class, + com.google.cloud.aiplatform.v1.UsageMetadata.Builder.class); + } + + /** + * + * + *
    +   * The type of traffic that this request was processed with, indicating which
    +   * quota gets consumed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.aiplatform.v1.UsageMetadata.TrafficType} + */ + public enum TrafficType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified request traffic type.
    +     * 
    + * + * TRAFFIC_TYPE_UNSPECIFIED = 0; + */ + TRAFFIC_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Type for Pay-As-You-Go traffic.
    +     * 
    + * + * ON_DEMAND = 1; + */ + ON_DEMAND(1), + /** + * + * + *
    +     * Type for Provisioned Throughput traffic.
    +     * 
    + * + * PROVISIONED_THROUGHPUT = 2; + */ + PROVISIONED_THROUGHPUT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified request traffic type.
    +     * 
    + * + * TRAFFIC_TYPE_UNSPECIFIED = 0; + */ + public static final int TRAFFIC_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Type for Pay-As-You-Go traffic.
    +     * 
    + * + * ON_DEMAND = 1; + */ + public static final int ON_DEMAND_VALUE = 1; + + /** + * + * + *
    +     * Type for Provisioned Throughput traffic.
    +     * 
    + * + * PROVISIONED_THROUGHPUT = 2; + */ + public static final int PROVISIONED_THROUGHPUT_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 TrafficType 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 TrafficType forNumber(int value) { + switch (value) { + case 0: + return TRAFFIC_TYPE_UNSPECIFIED; + case 1: + return ON_DEMAND; + case 2: + return PROVISIONED_THROUGHPUT; + 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 TrafficType findValueByNumber(int number) { + return TrafficType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.UsageMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final TrafficType[] VALUES = values(); + + public static TrafficType 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 TrafficType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.UsageMetadata.TrafficType) + } + + public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER = 1; + private int promptTokenCount_ = 0; + + /** + * + * + *
    +   * The total number of tokens in the prompt. This includes any text, images,
    +   * or other media provided in the request. When `cached_content` is set,
    +   * this also includes the number of tokens in the cached content.
    +   * 
    + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } + + public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER = 2; + private int candidatesTokenCount_ = 0; + + /** + * + * + *
    +   * The total number of tokens in the generated candidates.
    +   * 
    + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } + + public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 3; + private int totalTokenCount_ = 0; + + /** + * + * + *
    +   * The total number of tokens for the entire request. This is the sum of
    +   * `prompt_token_count`, `candidates_token_count`,
    +   * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +   * 
    + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + + public static final int TOOL_USE_PROMPT_TOKEN_COUNT_FIELD_NUMBER = 13; + private int toolUsePromptTokenCount_ = 0; + + /** + * + * + *
    +   * Output only. The number of tokens in the results from tool executions,
    +   * which are provided back to the model as input, if applicable.
    +   * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The toolUsePromptTokenCount. + */ + @java.lang.Override + public int getToolUsePromptTokenCount() { + return toolUsePromptTokenCount_; + } + + public static final int THOUGHTS_TOKEN_COUNT_FIELD_NUMBER = 14; + private int thoughtsTokenCount_ = 0; + + /** + * + * + *
    +   * Output only. The number of tokens that were part of the model's generated
    +   * "thoughts" output, if applicable.
    +   * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thoughtsTokenCount. + */ + @java.lang.Override + public int getThoughtsTokenCount() { + return thoughtsTokenCount_; + } + + public static final int CACHED_CONTENT_TOKEN_COUNT_FIELD_NUMBER = 5; + private int cachedContentTokenCount_ = 0; + + /** + * + * + *
    +   * Output only. The number of tokens in the cached content that was used for
    +   * this request.
    +   * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cachedContentTokenCount. + */ + @java.lang.Override + public int getCachedContentTokenCount() { + return cachedContentTokenCount_; + } + + public static final int PROMPT_TOKENS_DETAILS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List promptTokensDetails_; + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPromptTokensDetailsList() { + return promptTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPromptTokensDetailsOrBuilderList() { + return promptTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPromptTokensDetailsCount() { + return promptTokensDetails_.size(); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount getPromptTokensDetails(int index) { + return promptTokensDetails_.get(index); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder( + int index) { + return promptTokensDetails_.get(index); + } + + public static final int CACHE_TOKENS_DETAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List cacheTokensDetails_; + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCacheTokensDetailsList() { + return cacheTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCacheTokensDetailsOrBuilderList() { + return cacheTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCacheTokensDetailsCount() { + return cacheTokensDetails_.size(); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount getCacheTokensDetails(int index) { + return cacheTokensDetails_.get(index); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getCacheTokensDetailsOrBuilder( + int index) { + return cacheTokensDetails_.get(index); + } + + public static final int CANDIDATES_TOKENS_DETAILS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List + candidatesTokensDetails_; + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCandidatesTokensDetailsList() { + return candidatesTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCandidatesTokensDetailsOrBuilderList() { + return candidatesTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCandidatesTokensDetailsCount() { + return candidatesTokensDetails_.size(); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount getCandidatesTokensDetails(int index) { + return candidatesTokensDetails_.get(index); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index) { + return candidatesTokensDetails_.get(index); + } + + public static final int TOOL_USE_PROMPT_TOKENS_DETAILS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List + toolUsePromptTokensDetails_; + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getToolUsePromptTokensDetailsList() { + return toolUsePromptTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getToolUsePromptTokensDetailsOrBuilderList() { + return toolUsePromptTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getToolUsePromptTokensDetailsCount() { + return toolUsePromptTokensDetails_.size(); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount getToolUsePromptTokensDetails( + int index) { + return toolUsePromptTokensDetails_.get(index); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getToolUsePromptTokensDetailsOrBuilder(int index) { + return toolUsePromptTokensDetails_.get(index); + } + + public static final int TRAFFIC_TYPE_FIELD_NUMBER = 8; + private int trafficType_ = 0; + + /** + * + * + *
    +   * Output only. The traffic type for this request.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for trafficType. + */ + @java.lang.Override + public int getTrafficTypeValue() { + return trafficType_; + } + + /** + * + * + *
    +   * Output only. The traffic type for this request.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trafficType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType getTrafficType() { + com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType result = + com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType.forNumber(trafficType_); + return result == null + ? com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType.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 (promptTokenCount_ != 0) { + output.writeInt32(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + output.writeInt32(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + output.writeInt32(3, totalTokenCount_); + } + if (cachedContentTokenCount_ != 0) { + output.writeInt32(5, cachedContentTokenCount_); + } + if (trafficType_ + != com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType.TRAFFIC_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, trafficType_); + } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + output.writeMessage(9, promptTokensDetails_.get(i)); + } + for (int i = 0; i < cacheTokensDetails_.size(); i++) { + output.writeMessage(10, cacheTokensDetails_.get(i)); + } + for (int i = 0; i < candidatesTokensDetails_.size(); i++) { + output.writeMessage(11, candidatesTokensDetails_.get(i)); + } + for (int i = 0; i < toolUsePromptTokensDetails_.size(); i++) { + output.writeMessage(12, toolUsePromptTokensDetails_.get(i)); + } + if (toolUsePromptTokenCount_ != 0) { + output.writeInt32(13, toolUsePromptTokenCount_); + } + if (thoughtsTokenCount_ != 0) { + output.writeInt32(14, thoughtsTokenCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (promptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); + } + if (cachedContentTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, cachedContentTokenCount_); + } + if (trafficType_ + != com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType.TRAFFIC_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, trafficType_); + } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, promptTokensDetails_.get(i)); + } + for (int i = 0; i < cacheTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, cacheTokensDetails_.get(i)); + } + for (int i = 0; i < candidatesTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, candidatesTokensDetails_.get(i)); + } + for (int i = 0; i < toolUsePromptTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, toolUsePromptTokensDetails_.get(i)); + } + if (toolUsePromptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, toolUsePromptTokenCount_); + } + if (thoughtsTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, thoughtsTokenCount_); + } + 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.aiplatform.v1.UsageMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UsageMetadata other = + (com.google.cloud.aiplatform.v1.UsageMetadata) obj; + + if (getPromptTokenCount() != other.getPromptTokenCount()) return false; + if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; + if (getTotalTokenCount() != other.getTotalTokenCount()) return false; + if (getToolUsePromptTokenCount() != other.getToolUsePromptTokenCount()) return false; + if (getThoughtsTokenCount() != other.getThoughtsTokenCount()) return false; + if (getCachedContentTokenCount() != other.getCachedContentTokenCount()) return false; + if (!getPromptTokensDetailsList().equals(other.getPromptTokensDetailsList())) return false; + if (!getCacheTokensDetailsList().equals(other.getCacheTokensDetailsList())) return false; + if (!getCandidatesTokensDetailsList().equals(other.getCandidatesTokensDetailsList())) + return false; + if (!getToolUsePromptTokensDetailsList().equals(other.getToolUsePromptTokensDetailsList())) + return false; + if (trafficType_ != other.trafficType_) 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) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokenCount(); + hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokenCount(); + hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokenCount(); + hash = (37 * hash) + TOOL_USE_PROMPT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getToolUsePromptTokenCount(); + hash = (37 * hash) + THOUGHTS_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getThoughtsTokenCount(); + hash = (37 * hash) + CACHED_CONTENT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCachedContentTokenCount(); + if (getPromptTokensDetailsCount() > 0) { + hash = (37 * hash) + PROMPT_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokensDetailsList().hashCode(); + } + if (getCacheTokensDetailsCount() > 0) { + hash = (37 * hash) + CACHE_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCacheTokensDetailsList().hashCode(); + } + if (getCandidatesTokensDetailsCount() > 0) { + hash = (37 * hash) + CANDIDATES_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokensDetailsList().hashCode(); + } + if (getToolUsePromptTokensDetailsCount() > 0) { + hash = (37 * hash) + TOOL_USE_PROMPT_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getToolUsePromptTokensDetailsList().hashCode(); + } + hash = (37 * hash) + TRAFFIC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + trafficType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata 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.aiplatform.v1.UsageMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata 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.aiplatform.v1.UsageMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.UsageMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Usage metadata about the content generation request and response.
    +   * This message provides a detailed breakdown of token usage and other
    +   * relevant metrics.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.UsageMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UsageMetadata) + com.google.cloud.aiplatform.v1.UsageMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1_UsageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1_UsageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UsageMetadata.class, + com.google.cloud.aiplatform.v1.UsageMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UsageMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokenCount_ = 0; + candidatesTokenCount_ = 0; + totalTokenCount_ = 0; + toolUsePromptTokenCount_ = 0; + thoughtsTokenCount_ = 0; + cachedContentTokenCount_ = 0; + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + } else { + promptTokensDetails_ = null; + promptTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetails_ = java.util.Collections.emptyList(); + } else { + cacheTokensDetails_ = null; + cacheTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetails_ = java.util.Collections.emptyList(); + } else { + candidatesTokensDetails_ = null; + candidatesTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + if (toolUsePromptTokensDetailsBuilder_ == null) { + toolUsePromptTokensDetails_ = java.util.Collections.emptyList(); + } else { + toolUsePromptTokensDetails_ = null; + toolUsePromptTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + trafficType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1_UsageMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UsageMetadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UsageMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UsageMetadata build() { + com.google.cloud.aiplatform.v1.UsageMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UsageMetadata buildPartial() { + com.google.cloud.aiplatform.v1.UsageMetadata result = + new com.google.cloud.aiplatform.v1.UsageMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.UsageMetadata result) { + if (promptTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + promptTokensDetails_ = java.util.Collections.unmodifiableList(promptTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.promptTokensDetails_ = promptTokensDetails_; + } else { + result.promptTokensDetails_ = promptTokensDetailsBuilder_.build(); + } + if (cacheTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + cacheTokensDetails_ = java.util.Collections.unmodifiableList(cacheTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.cacheTokensDetails_ = cacheTokensDetails_; + } else { + result.cacheTokensDetails_ = cacheTokensDetailsBuilder_.build(); + } + if (candidatesTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + candidatesTokensDetails_ = + java.util.Collections.unmodifiableList(candidatesTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.candidatesTokensDetails_ = candidatesTokensDetails_; + } else { + result.candidatesTokensDetails_ = candidatesTokensDetailsBuilder_.build(); + } + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + toolUsePromptTokensDetails_ = + java.util.Collections.unmodifiableList(toolUsePromptTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.toolUsePromptTokensDetails_ = toolUsePromptTokensDetails_; + } else { + result.toolUsePromptTokensDetails_ = toolUsePromptTokensDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.UsageMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokenCount_ = promptTokenCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.candidatesTokenCount_ = candidatesTokenCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokenCount_ = totalTokenCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.toolUsePromptTokenCount_ = toolUsePromptTokenCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.thoughtsTokenCount_ = thoughtsTokenCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.cachedContentTokenCount_ = cachedContentTokenCount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.trafficType_ = trafficType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.UsageMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1.UsageMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.UsageMetadata other) { + if (other == com.google.cloud.aiplatform.v1.UsageMetadata.getDefaultInstance()) return this; + if (other.getPromptTokenCount() != 0) { + setPromptTokenCount(other.getPromptTokenCount()); + } + if (other.getCandidatesTokenCount() != 0) { + setCandidatesTokenCount(other.getCandidatesTokenCount()); + } + if (other.getTotalTokenCount() != 0) { + setTotalTokenCount(other.getTotalTokenCount()); + } + if (other.getToolUsePromptTokenCount() != 0) { + setToolUsePromptTokenCount(other.getToolUsePromptTokenCount()); + } + if (other.getThoughtsTokenCount() != 0) { + setThoughtsTokenCount(other.getThoughtsTokenCount()); + } + if (other.getCachedContentTokenCount() != 0) { + setCachedContentTokenCount(other.getCachedContentTokenCount()); + } + if (promptTokensDetailsBuilder_ == null) { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetails_.isEmpty()) { + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.addAll(other.promptTokensDetails_); + } + onChanged(); + } + } else { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetailsBuilder_.isEmpty()) { + promptTokensDetailsBuilder_.dispose(); + promptTokensDetailsBuilder_ = null; + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + promptTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPromptTokensDetailsFieldBuilder() + : null; + } else { + promptTokensDetailsBuilder_.addAllMessages(other.promptTokensDetails_); + } + } + } + if (cacheTokensDetailsBuilder_ == null) { + if (!other.cacheTokensDetails_.isEmpty()) { + if (cacheTokensDetails_.isEmpty()) { + cacheTokensDetails_ = other.cacheTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.addAll(other.cacheTokensDetails_); + } + onChanged(); + } + } else { + if (!other.cacheTokensDetails_.isEmpty()) { + if (cacheTokensDetailsBuilder_.isEmpty()) { + cacheTokensDetailsBuilder_.dispose(); + cacheTokensDetailsBuilder_ = null; + cacheTokensDetails_ = other.cacheTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000080); + cacheTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCacheTokensDetailsFieldBuilder() + : null; + } else { + cacheTokensDetailsBuilder_.addAllMessages(other.cacheTokensDetails_); + } + } + } + if (candidatesTokensDetailsBuilder_ == null) { + if (!other.candidatesTokensDetails_.isEmpty()) { + if (candidatesTokensDetails_.isEmpty()) { + candidatesTokensDetails_ = other.candidatesTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.addAll(other.candidatesTokensDetails_); + } + onChanged(); + } + } else { + if (!other.candidatesTokensDetails_.isEmpty()) { + if (candidatesTokensDetailsBuilder_.isEmpty()) { + candidatesTokensDetailsBuilder_.dispose(); + candidatesTokensDetailsBuilder_ = null; + candidatesTokensDetails_ = other.candidatesTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000100); + candidatesTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCandidatesTokensDetailsFieldBuilder() + : null; + } else { + candidatesTokensDetailsBuilder_.addAllMessages(other.candidatesTokensDetails_); + } + } + } + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (!other.toolUsePromptTokensDetails_.isEmpty()) { + if (toolUsePromptTokensDetails_.isEmpty()) { + toolUsePromptTokensDetails_ = other.toolUsePromptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.addAll(other.toolUsePromptTokensDetails_); + } + onChanged(); + } + } else { + if (!other.toolUsePromptTokensDetails_.isEmpty()) { + if (toolUsePromptTokensDetailsBuilder_.isEmpty()) { + toolUsePromptTokensDetailsBuilder_.dispose(); + toolUsePromptTokensDetailsBuilder_ = null; + toolUsePromptTokensDetails_ = other.toolUsePromptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000200); + toolUsePromptTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getToolUsePromptTokensDetailsFieldBuilder() + : null; + } else { + toolUsePromptTokensDetailsBuilder_.addAllMessages(other.toolUsePromptTokensDetails_); + } + } + } + if (other.trafficType_ != 0) { + setTrafficTypeValue(other.getTrafficTypeValue()); + } + 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: + { + promptTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + candidatesTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + totalTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: + { + cachedContentTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 64: + { + trafficType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 64 + case 74: + { + com.google.cloud.aiplatform.v1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1.ModalityTokenCount.parser(), + extensionRegistry); + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(m); + } else { + promptTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + com.google.cloud.aiplatform.v1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1.ModalityTokenCount.parser(), + extensionRegistry); + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(m); + } else { + cacheTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.aiplatform.v1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1.ModalityTokenCount.parser(), + extensionRegistry); + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(m); + } else { + candidatesTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + com.google.cloud.aiplatform.v1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1.ModalityTokenCount.parser(), + extensionRegistry); + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(m); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 98 + case 104: + { + toolUsePromptTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 104 + case 112: + { + thoughtsTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 112 + 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 promptTokenCount_; + + /** + * + * + *
    +     * The total number of tokens in the prompt. This includes any text, images,
    +     * or other media provided in the request. When `cached_content` is set,
    +     * this also includes the number of tokens in the cached content.
    +     * 
    + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } + + /** + * + * + *
    +     * The total number of tokens in the prompt. This includes any text, images,
    +     * or other media provided in the request. When `cached_content` is set,
    +     * this also includes the number of tokens in the cached content.
    +     * 
    + * + * int32 prompt_token_count = 1; + * + * @param value The promptTokenCount to set. + * @return This builder for chaining. + */ + public Builder setPromptTokenCount(int value) { + + promptTokenCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The total number of tokens in the prompt. This includes any text, images,
    +     * or other media provided in the request. When `cached_content` is set,
    +     * this also includes the number of tokens in the cached content.
    +     * 
    + * + * int32 prompt_token_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokenCount_ = 0; + onChanged(); + return this; + } + + private int candidatesTokenCount_; + + /** + * + * + *
    +     * The total number of tokens in the generated candidates.
    +     * 
    + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } + + /** + * + * + *
    +     * The total number of tokens in the generated candidates.
    +     * 
    + * + * int32 candidates_token_count = 2; + * + * @param value The candidatesTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCandidatesTokenCount(int value) { + + candidatesTokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The total number of tokens in the generated candidates.
    +     * 
    + * + * int32 candidates_token_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCandidatesTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + candidatesTokenCount_ = 0; + onChanged(); + return this; + } + + private int totalTokenCount_; + + /** + * + * + *
    +     * The total number of tokens for the entire request. This is the sum of
    +     * `prompt_token_count`, `candidates_token_count`,
    +     * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +     * 
    + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + + /** + * + * + *
    +     * The total number of tokens for the entire request. This is the sum of
    +     * `prompt_token_count`, `candidates_token_count`,
    +     * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +     * 
    + * + * int32 total_token_count = 3; + * + * @param value The totalTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalTokenCount(int value) { + + totalTokenCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The total number of tokens for the entire request. This is the sum of
    +     * `prompt_token_count`, `candidates_token_count`,
    +     * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +     * 
    + * + * int32 total_token_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalTokenCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokenCount_ = 0; + onChanged(); + return this; + } + + private int toolUsePromptTokenCount_; + + /** + * + * + *
    +     * Output only. The number of tokens in the results from tool executions,
    +     * which are provided back to the model as input, if applicable.
    +     * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The toolUsePromptTokenCount. + */ + @java.lang.Override + public int getToolUsePromptTokenCount() { + return toolUsePromptTokenCount_; + } + + /** + * + * + *
    +     * Output only. The number of tokens in the results from tool executions,
    +     * which are provided back to the model as input, if applicable.
    +     * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The toolUsePromptTokenCount to set. + * @return This builder for chaining. + */ + public Builder setToolUsePromptTokenCount(int value) { + + toolUsePromptTokenCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The number of tokens in the results from tool executions,
    +     * which are provided back to the model as input, if applicable.
    +     * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearToolUsePromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000008); + toolUsePromptTokenCount_ = 0; + onChanged(); + return this; + } + + private int thoughtsTokenCount_; + + /** + * + * + *
    +     * Output only. The number of tokens that were part of the model's generated
    +     * "thoughts" output, if applicable.
    +     * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thoughtsTokenCount. + */ + @java.lang.Override + public int getThoughtsTokenCount() { + return thoughtsTokenCount_; + } + + /** + * + * + *
    +     * Output only. The number of tokens that were part of the model's generated
    +     * "thoughts" output, if applicable.
    +     * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The thoughtsTokenCount to set. + * @return This builder for chaining. + */ + public Builder setThoughtsTokenCount(int value) { + + thoughtsTokenCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The number of tokens that were part of the model's generated
    +     * "thoughts" output, if applicable.
    +     * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearThoughtsTokenCount() { + bitField0_ = (bitField0_ & ~0x00000010); + thoughtsTokenCount_ = 0; + onChanged(); + return this; + } + + private int cachedContentTokenCount_; + + /** + * + * + *
    +     * Output only. The number of tokens in the cached content that was used for
    +     * this request.
    +     * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cachedContentTokenCount. + */ + @java.lang.Override + public int getCachedContentTokenCount() { + return cachedContentTokenCount_; + } + + /** + * + * + *
    +     * Output only. The number of tokens in the cached content that was used for
    +     * this request.
    +     * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The cachedContentTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCachedContentTokenCount(int value) { + + cachedContentTokenCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The number of tokens in the cached content that was used for
    +     * this request.
    +     * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCachedContentTokenCount() { + bitField0_ = (bitField0_ & ~0x00000020); + cachedContentTokenCount_ = 0; + onChanged(); + return this; + } + + private java.util.List promptTokensDetails_ = + java.util.Collections.emptyList(); + + private void ensurePromptTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + promptTokensDetails_ = + new java.util.ArrayList( + promptTokensDetails_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + promptTokensDetailsBuilder_; + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsList() { + if (promptTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } else { + return promptTokensDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPromptTokensDetailsCount() { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.size(); + } else { + return promptTokensDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount getPromptTokensDetails(int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails(com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPromptTokensDetails( + java.lang.Iterable values) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promptTokensDetails_); + onChanged(); + } else { + promptTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPromptTokensDetails() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + promptTokensDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePromptTokensDetails(int index) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.remove(index); + onChanged(); + } else { + promptTokensDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder getPromptTokensDetailsBuilder( + int index) { + return getPromptTokensDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsOrBuilderList() { + if (promptTokensDetailsBuilder_ != null) { + return promptTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder() { + return getPromptTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder addPromptTokensDetailsBuilder( + int index) { + return getPromptTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsBuilderList() { + return getPromptTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + getPromptTokensDetailsFieldBuilder() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder>( + promptTokensDetails_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + promptTokensDetails_ = null; + } + return promptTokensDetailsBuilder_; + } + + private java.util.List cacheTokensDetails_ = + java.util.Collections.emptyList(); + + private void ensureCacheTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + cacheTokensDetails_ = + new java.util.ArrayList( + cacheTokensDetails_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + cacheTokensDetailsBuilder_; + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsList() { + if (cacheTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cacheTokensDetails_); + } else { + return cacheTokensDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCacheTokensDetailsCount() { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.size(); + } else { + return cacheTokensDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount getCacheTokensDetails(int index) { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.get(index); + } else { + return cacheTokensDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.set(index, value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails(com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(index, value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCacheTokensDetails( + java.lang.Iterable values) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cacheTokensDetails_); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCacheTokensDetails() { + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + cacheTokensDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCacheTokensDetails(int index) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.remove(index); + onChanged(); + } else { + cacheTokensDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder getCacheTokensDetailsBuilder( + int index) { + return getCacheTokensDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getCacheTokensDetailsOrBuilder(int index) { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.get(index); + } else { + return cacheTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsOrBuilderList() { + if (cacheTokensDetailsBuilder_ != null) { + return cacheTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cacheTokensDetails_); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addCacheTokensDetailsBuilder() { + return getCacheTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder addCacheTokensDetailsBuilder( + int index) { + return getCacheTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsBuilderList() { + return getCacheTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + getCacheTokensDetailsFieldBuilder() { + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder>( + cacheTokensDetails_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + cacheTokensDetails_ = null; + } + return cacheTokensDetailsBuilder_; + } + + private java.util.List + candidatesTokensDetails_ = java.util.Collections.emptyList(); + + private void ensureCandidatesTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + candidatesTokensDetails_ = + new java.util.ArrayList( + candidatesTokensDetails_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + candidatesTokensDetailsBuilder_; + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsList() { + if (candidatesTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(candidatesTokensDetails_); + } else { + return candidatesTokensDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCandidatesTokensDetailsCount() { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.size(); + } else { + return candidatesTokensDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount getCandidatesTokensDetails(int index) { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.get(index); + } else { + return candidatesTokensDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.set(index, value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(index, value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCandidatesTokensDetails( + java.lang.Iterable values) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, candidatesTokensDetails_); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCandidatesTokensDetails() { + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCandidatesTokensDetails(int index) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.remove(index); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + getCandidatesTokensDetailsBuilder(int index) { + return getCandidatesTokensDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index) { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.get(index); + } else { + return candidatesTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsOrBuilderList() { + if (candidatesTokensDetailsBuilder_ != null) { + return candidatesTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(candidatesTokensDetails_); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addCandidatesTokensDetailsBuilder() { + return getCandidatesTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addCandidatesTokensDetailsBuilder(int index) { + return getCandidatesTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsBuilderList() { + return getCandidatesTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + getCandidatesTokensDetailsFieldBuilder() { + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder>( + candidatesTokensDetails_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + candidatesTokensDetails_ = null; + } + return candidatesTokensDetailsBuilder_; + } + + private java.util.List + toolUsePromptTokensDetails_ = java.util.Collections.emptyList(); + + private void ensureToolUsePromptTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + toolUsePromptTokensDetails_ = + new java.util.ArrayList( + toolUsePromptTokensDetails_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + toolUsePromptTokensDetailsBuilder_; + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToolUsePromptTokensDetailsList() { + if (toolUsePromptTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolUsePromptTokensDetails_); + } else { + return toolUsePromptTokensDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getToolUsePromptTokensDetailsCount() { + if (toolUsePromptTokensDetailsBuilder_ == null) { + return toolUsePromptTokensDetails_.size(); + } else { + return toolUsePromptTokensDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount getToolUsePromptTokensDetails( + int index) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + return toolUsePromptTokensDetails_.get(index); + } else { + return toolUsePromptTokensDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setToolUsePromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.set(index, value); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setToolUsePromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToolUsePromptTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(value); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToolUsePromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(index, value); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToolUsePromptTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToolUsePromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllToolUsePromptTokensDetails( + java.lang.Iterable values) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolUsePromptTokensDetails_); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearToolUsePromptTokensDetails() { + if (toolUsePromptTokensDetailsBuilder_ == null) { + toolUsePromptTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeToolUsePromptTokensDetails(int index) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.remove(index); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + getToolUsePromptTokensDetailsBuilder(int index) { + return getToolUsePromptTokensDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getToolUsePromptTokensDetailsOrBuilder(int index) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + return toolUsePromptTokensDetails_.get(index); + } else { + return toolUsePromptTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToolUsePromptTokensDetailsOrBuilderList() { + if (toolUsePromptTokensDetailsBuilder_ != null) { + return toolUsePromptTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolUsePromptTokensDetails_); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addToolUsePromptTokensDetailsBuilder() { + return getToolUsePromptTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addToolUsePromptTokensDetailsBuilder(int index) { + return getToolUsePromptTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToolUsePromptTokensDetailsBuilderList() { + return getToolUsePromptTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + getToolUsePromptTokensDetailsFieldBuilder() { + if (toolUsePromptTokensDetailsBuilder_ == null) { + toolUsePromptTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder>( + toolUsePromptTokensDetails_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + toolUsePromptTokensDetails_ = null; + } + return toolUsePromptTokensDetailsBuilder_; + } + + private int trafficType_ = 0; + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for trafficType. + */ + @java.lang.Override + public int getTrafficTypeValue() { + return trafficType_; + } + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for trafficType to set. + * @return This builder for chaining. + */ + public Builder setTrafficTypeValue(int value) { + trafficType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trafficType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType getTrafficType() { + com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType result = + com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType.forNumber(trafficType_); + return result == null + ? com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The trafficType to set. + * @return This builder for chaining. + */ + public Builder setTrafficType(com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + trafficType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTrafficType() { + bitField0_ = (bitField0_ & ~0x00000400); + trafficType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.UsageMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UsageMetadata) + private static final com.google.cloud.aiplatform.v1.UsageMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UsageMetadata(); + } + + public static com.google.cloud.aiplatform.v1.UsageMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsageMetadata 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.aiplatform.v1.UsageMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UsageMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UsageMetadataOrBuilder.java new file mode 100644 index 000000000000..0783b9caf242 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UsageMetadataOrBuilder.java @@ -0,0 +1,432 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1/usage_metadata.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface UsageMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UsageMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The total number of tokens in the prompt. This includes any text, images,
    +   * or other media provided in the request. When `cached_content` is set,
    +   * this also includes the number of tokens in the cached content.
    +   * 
    + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + int getPromptTokenCount(); + + /** + * + * + *
    +   * The total number of tokens in the generated candidates.
    +   * 
    + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + int getCandidatesTokenCount(); + + /** + * + * + *
    +   * The total number of tokens for the entire request. This is the sum of
    +   * `prompt_token_count`, `candidates_token_count`,
    +   * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +   * 
    + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + int getTotalTokenCount(); + + /** + * + * + *
    +   * Output only. The number of tokens in the results from tool executions,
    +   * which are provided back to the model as input, if applicable.
    +   * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The toolUsePromptTokenCount. + */ + int getToolUsePromptTokenCount(); + + /** + * + * + *
    +   * Output only. The number of tokens that were part of the model's generated
    +   * "thoughts" output, if applicable.
    +   * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thoughtsTokenCount. + */ + int getThoughtsTokenCount(); + + /** + * + * + *
    +   * Output only. The number of tokens in the cached content that was used for
    +   * this request.
    +   * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cachedContentTokenCount. + */ + int getCachedContentTokenCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPromptTokensDetailsList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCount getPromptTokensDetails(int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPromptTokensDetailsCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPromptTokensDetailsOrBuilderList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder( + int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getCacheTokensDetailsList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCount getCacheTokensDetails(int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCacheTokensDetailsCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCacheTokensDetailsOrBuilderList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getCacheTokensDetailsOrBuilder( + int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCandidatesTokensDetailsList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCount getCandidatesTokensDetails(int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCandidatesTokensDetailsCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCandidatesTokensDetailsOrBuilderList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getCandidatesTokensDetailsOrBuilder( + int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getToolUsePromptTokensDetailsList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCount getToolUsePromptTokensDetails(int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getToolUsePromptTokensDetailsCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getToolUsePromptTokensDetailsOrBuilderList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getToolUsePromptTokensDetailsOrBuilder( + int index); + + /** + * + * + *
    +   * Output only. The traffic type for this request.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for trafficType. + */ + int getTrafficTypeValue(); + + /** + * + * + *
    +   * Output only. The traffic type for this request.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trafficType. + */ + com.google.cloud.aiplatform.v1.UsageMetadata.TrafficType getTrafficType(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UsageMetadataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UsageMetadataProto.java new file mode 100644 index 000000000000..b9d1d9286716 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UsageMetadataProto.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1/usage_metadata.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public final class UsageMetadataProto { + private UsageMetadataProto() {} + + 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_aiplatform_v1_UsageMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UsageMetadata_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/cloud/aiplatform/v1/usage_metad" + + "ata.proto\022\032google.cloud.aiplatform.v1\032\037g" + + "oogle/api/field_behavior.proto\032(google/c" + + "loud/aiplatform/v1/content.proto\"\342\005\n\rUsa" + + "geMetadata\022\032\n\022prompt_token_count\030\001 \001(\005\022\036" + + "\n\026candidates_token_count\030\002 \001(\005\022\031\n\021total_" + + "token_count\030\003 \001(\005\022(\n\033tool_use_prompt_tok" + + "en_count\030\r \001(\005B\003\340A\003\022!\n\024thoughts_token_co" + + "unt\030\016 \001(\005B\003\340A\003\022\'\n\032cached_content_token_c" + + "ount\030\005 \001(\005B\003\340A\003\022R\n\025prompt_tokens_details" + + "\030\t \003(\0132..google.cloud.aiplatform.v1.Moda" + + "lityTokenCountB\003\340A\003\022Q\n\024cache_tokens_deta" + + "ils\030\n \003(\0132..google.cloud.aiplatform.v1.M" + + "odalityTokenCountB\003\340A\003\022V\n\031candidates_tok" + + "ens_details\030\013 \003(\0132..google.cloud.aiplatf" + + "orm.v1.ModalityTokenCountB\003\340A\003\022[\n\036tool_u" + + "se_prompt_tokens_details\030\014 \003(\0132..google." + + "cloud.aiplatform.v1.ModalityTokenCountB\003" + + "\340A\003\022P\n\014traffic_type\030\010 \001(\01625.google.cloud" + + ".aiplatform.v1.UsageMetadata.TrafficType" + + "B\003\340A\003\"V\n\013TrafficType\022\034\n\030TRAFFIC_TYPE_UNS" + + "PECIFIED\020\000\022\r\n\tON_DEMAND\020\001\022\032\n\026PROVISIONED" + + "_THROUGHPUT\020\002B\320\001\n\036com.google.cloud.aipla" + + "tform.v1B\022UsageMetadataProtoP\001Z>cloud.go" + + "ogle.com/go/aiplatform/apiv1/aiplatformp" + + "b;aiplatformpb\252\002\032Google.Cloud.AIPlatform" + + ".V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Googl" + + "e::Cloud::AIPlatform::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ContentProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_UsageMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_UsageMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UsageMetadata_descriptor, + new java.lang.String[] { + "PromptTokenCount", + "CandidatesTokenCount", + "TotalTokenCount", + "ToolUsePromptTokenCount", + "ThoughtsTokenCount", + "CachedContentTokenCount", + "PromptTokensDetails", + "CacheTokensDetails", + "CandidatesTokensDetails", + "ToolUsePromptTokensDetails", + "TrafficType", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ContentProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/deployment_stage.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/deployment_stage.proto index a72eb47754c3..653ec52ec0e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/deployment_stage.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/deployment_stage.proto @@ -52,4 +52,10 @@ enum DeploymentStage { // The deployment has terminated. DEPLOYMENT_TERMINATED = 10; + + // The deployment has succeeded. + SUCCESSFULLY_DEPLOYED = 11; + + // The deployment has failed. + FAILED_TO_DEPLOY = 12; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto index 1c4c018c4160..4f75c52bb721 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto @@ -74,12 +74,13 @@ message FeatureOnlineStore { // Required. Autoscaling config applied to Bigtable Instance. AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. Whether direct access to the Bigtable instance is enabled or not. - bool enable_direct_bigtable_access = 2 + // Optional. Whether direct access to the Bigtable instance is enabled or + // not. + bool enable_direct_bigtable_access = 3 [(google.api.field_behavior) = OPTIONAL]; // Output only. Metadata of the Bigtable instance. Output only. - BigtableMetadata bigtable_metadata = 3 + BigtableMetadata bigtable_metadata = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto index e57dcb3d30d3..79929d4d2090 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto @@ -297,6 +297,6 @@ message FeatureView { } // Metadata containing information about the Cloud Bigtable. - BigtableMetadata bigtable_metadata = 21 + BigtableMetadata bigtable_metadata = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto index 5ec25c4f1136..cbd9775382f3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1/content.proto"; import "google/cloud/aiplatform/v1/explanation.proto"; import "google/cloud/aiplatform/v1/tool.proto"; import "google/cloud/aiplatform/v1/types.proto"; +import "google/cloud/aiplatform/v1/usage_metadata.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -208,6 +209,15 @@ service PredictionService { }; option (google.api.method_signature) = "model,contents"; } + + // Embed content with multimodal inputs. + rpc EmbedContent(EmbedContentRequest) returns (EmbedContentResponse) { + option (google.api.http) = { + post: "/v1/{model=projects/*/locations/*/publishers/*/models/*}:embedContent" + body: "*" + }; + option (google.api.method_signature) = "model,content"; + } } // Request message for @@ -850,3 +860,82 @@ message GenerateContentResponse { // Usage metadata about the response(s). UsageMetadata usage_metadata = 4; } + +// Request message for +// [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent]. +message EmbedContentRequest { + // Represents a downstream task the embeddings will be used for. + enum EmbeddingTaskType { + // Unset value, which will default to one of the other enum values. + UNSPECIFIED = 0; + + // Specifies the given text is a query in a search/retrieval setting. + RETRIEVAL_QUERY = 2; + + // Specifies the given text is a document from the corpus being searched. + RETRIEVAL_DOCUMENT = 3; + + // Specifies the given text will be used for STS. + SEMANTIC_SIMILARITY = 4; + + // Specifies that the given text will be classified. + CLASSIFICATION = 5; + + // Specifies that the embeddings will be used for clustering. + CLUSTERING = 6; + + // Specifies that the embeddings will be used for question answering. + QUESTION_ANSWERING = 7; + + // Specifies that the embeddings will be used for fact verification. + FACT_VERIFICATION = 8; + + // Specifies that the embeddings will be used for code retrieval. + CODE_RETRIEVAL_QUERY = 9; + } + + // Required. The name of the publisher model requested to serve the + // prediction. Format: + // `projects/{project}/locations/{location}/publishers/*/models/*` + optional string model = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + }]; + + // Required. Input content to be embedded. Required. + optional Content content = 2; + + // Optional. An optional title for the text. + optional string title = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The task type of the embedding. + optional EmbeddingTaskType task_type = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional reduced dimension for the output embedding. If set, + // excessive values in the output embedding are truncated from the end. + optional int32 output_dimensionality = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to silently truncate the input content if it's longer + // than the maximum sequence length. + optional bool auto_truncate = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [PredictionService.EmbedContent][google.cloud.aiplatform.v1.PredictionService.EmbedContent]. +message EmbedContentResponse { + // A list of floats representing an embedding. + message Embedding { + // Embedding vector values. + repeated float values = 1; + } + + // The embedding generated from the input content. + Embedding embedding = 1; + + // Metadata about the response(s). + UsageMetadata usage_metadata = 2; + + // Whether the input content was truncated before generating the embedding. + bool truncated = 4; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/usage_metadata.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/usage_metadata.proto new file mode 100644 index 000000000000..facba96da97c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/usage_metadata.proto @@ -0,0 +1,96 @@ +// Copyright 2025 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.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/aiplatform/v1/content.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "UsageMetadataProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Usage metadata about the content generation request and response. +// This message provides a detailed breakdown of token usage and other +// relevant metrics. +message UsageMetadata { + // The type of traffic that this request was processed with, indicating which + // quota gets consumed. + enum TrafficType { + // Unspecified request traffic type. + TRAFFIC_TYPE_UNSPECIFIED = 0; + + // Type for Pay-As-You-Go traffic. + ON_DEMAND = 1; + + // Type for Provisioned Throughput traffic. + PROVISIONED_THROUGHPUT = 2; + } + + // The total number of tokens in the prompt. This includes any text, images, + // or other media provided in the request. When `cached_content` is set, + // this also includes the number of tokens in the cached content. + int32 prompt_token_count = 1; + + // The total number of tokens in the generated candidates. + int32 candidates_token_count = 2; + + // The total number of tokens for the entire request. This is the sum of + // `prompt_token_count`, `candidates_token_count`, + // `tool_use_prompt_token_count`, and `thoughts_token_count`. + int32 total_token_count = 3; + + // Output only. The number of tokens in the results from tool executions, + // which are provided back to the model as input, if applicable. + int32 tool_use_prompt_token_count = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tokens that were part of the model's generated + // "thoughts" output, if applicable. + int32 thoughts_token_count = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tokens in the cached content that was used for + // this request. + int32 cached_content_token_count = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A detailed breakdown of the token count for each modality in + // the prompt. + repeated ModalityTokenCount prompt_tokens_details = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A detailed breakdown of the token count for each modality in + // the cached content. + repeated ModalityTokenCount cache_tokens_details = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A detailed breakdown of the token count for each modality in + // the generated candidates. + repeated ModalityTokenCount candidates_tokens_details = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A detailed breakdown by modality of the token counts from the + // results of tool executions, which are provided back to the model as input. + repeated ModalityTokenCount tool_use_prompt_tokens_details = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The traffic type for this request. + TrafficType traffic_type = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java index 0af229c40684..8577b3e583c1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java @@ -124,7 +124,7 @@ public interface ScaleToZeroSpecOrBuilder * *
          * Optional. Duration of no traffic before scaling to zero.
    -     * [MinValue=3600] (5 minutes)
    +     * [MinValue=300] (5 minutes)
          * [MaxValue=28800] (8 hours)
          * 
    * @@ -141,7 +141,7 @@ public interface ScaleToZeroSpecOrBuilder * *
          * Optional. Duration of no traffic before scaling to zero.
    -     * [MinValue=3600] (5 minutes)
    +     * [MinValue=300] (5 minutes)
          * [MaxValue=28800] (8 hours)
          * 
    * @@ -158,7 +158,7 @@ public interface ScaleToZeroSpecOrBuilder * *
          * Optional. Duration of no traffic before scaling to zero.
    -     * [MinValue=3600] (5 minutes)
    +     * [MinValue=300] (5 minutes)
          * [MaxValue=28800] (8 hours)
          * 
    * @@ -286,7 +286,7 @@ public com.google.protobuf.DurationOrBuilder getMinScaleupPeriodOrBuilder() { * *
          * Optional. Duration of no traffic before scaling to zero.
    -     * [MinValue=3600] (5 minutes)
    +     * [MinValue=300] (5 minutes)
          * [MaxValue=28800] (8 hours)
          * 
    * @@ -306,7 +306,7 @@ public boolean hasIdleScaledownPeriod() { * *
          * Optional. Duration of no traffic before scaling to zero.
    -     * [MinValue=3600] (5 minutes)
    +     * [MinValue=300] (5 minutes)
          * [MaxValue=28800] (8 hours)
          * 
    * @@ -328,7 +328,7 @@ public com.google.protobuf.Duration getIdleScaledownPeriod() { * *
          * Optional. Duration of no traffic before scaling to zero.
    -     * [MinValue=3600] (5 minutes)
    +     * [MinValue=300] (5 minutes)
          * [MaxValue=28800] (8 hours)
          * 
    * @@ -1006,7 +1006,7 @@ public com.google.protobuf.DurationOrBuilder getMinScaleupPeriodOrBuilder() { * *
            * Optional. Duration of no traffic before scaling to zero.
    -       * [MinValue=3600] (5 minutes)
    +       * [MinValue=300] (5 minutes)
            * [MaxValue=28800] (8 hours)
            * 
    * @@ -1025,7 +1025,7 @@ public boolean hasIdleScaledownPeriod() { * *
            * Optional. Duration of no traffic before scaling to zero.
    -       * [MinValue=3600] (5 minutes)
    +       * [MinValue=300] (5 minutes)
            * [MaxValue=28800] (8 hours)
            * 
    * @@ -1050,7 +1050,7 @@ public com.google.protobuf.Duration getIdleScaledownPeriod() { * *
            * Optional. Duration of no traffic before scaling to zero.
    -       * [MinValue=3600] (5 minutes)
    +       * [MinValue=300] (5 minutes)
            * [MaxValue=28800] (8 hours)
            * 
    * @@ -1077,7 +1077,7 @@ public Builder setIdleScaledownPeriod(com.google.protobuf.Duration value) { * *
            * Optional. Duration of no traffic before scaling to zero.
    -       * [MinValue=3600] (5 minutes)
    +       * [MinValue=300] (5 minutes)
            * [MaxValue=28800] (8 hours)
            * 
    * @@ -1101,7 +1101,7 @@ public Builder setIdleScaledownPeriod(com.google.protobuf.Duration.Builder build * *
            * Optional. Duration of no traffic before scaling to zero.
    -       * [MinValue=3600] (5 minutes)
    +       * [MinValue=300] (5 minutes)
            * [MaxValue=28800] (8 hours)
            * 
    * @@ -1133,7 +1133,7 @@ public Builder mergeIdleScaledownPeriod(com.google.protobuf.Duration value) { * *
            * Optional. Duration of no traffic before scaling to zero.
    -       * [MinValue=3600] (5 minutes)
    +       * [MinValue=300] (5 minutes)
            * [MaxValue=28800] (8 hours)
            * 
    * @@ -1157,7 +1157,7 @@ public Builder clearIdleScaledownPeriod() { * *
            * Optional. Duration of no traffic before scaling to zero.
    -       * [MinValue=3600] (5 minutes)
    +       * [MinValue=300] (5 minutes)
            * [MaxValue=28800] (8 hours)
            * 
    * @@ -1176,7 +1176,7 @@ public com.google.protobuf.Duration.Builder getIdleScaledownPeriodBuilder() { * *
            * Optional. Duration of no traffic before scaling to zero.
    -       * [MinValue=3600] (5 minutes)
    +       * [MinValue=300] (5 minutes)
            * [MaxValue=28800] (8 hours)
            * 
    * @@ -1199,7 +1199,7 @@ public com.google.protobuf.DurationOrBuilder getIdleScaledownPeriodOrBuilder() { * *
            * Optional. Duration of no traffic before scaling to zero.
    -       * [MinValue=3600] (5 minutes)
    +       * [MinValue=300] (5 minutes)
            * [MaxValue=28800] (8 hours)
            * 
    * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentStage.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentStage.java index e8ae67a429e0..c26f121ffb3b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentStage.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentStage.java @@ -119,6 +119,26 @@ public enum DeploymentStage implements com.google.protobuf.ProtocolMessageEnum { * DEPLOYMENT_TERMINATED = 10; */ DEPLOYMENT_TERMINATED(10), + /** + * + * + *
    +   * The deployment has succeeded.
    +   * 
    + * + * SUCCESSFULLY_DEPLOYED = 11; + */ + SUCCESSFULLY_DEPLOYED(11), + /** + * + * + *
    +   * The deployment has failed.
    +   * 
    + * + * FAILED_TO_DEPLOY = 12; + */ + FAILED_TO_DEPLOY(12), UNRECOGNIZED(-1), ; @@ -221,6 +241,28 @@ public enum DeploymentStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYMENT_TERMINATED_VALUE = 10; + /** + * + * + *
    +   * The deployment has succeeded.
    +   * 
    + * + * SUCCESSFULLY_DEPLOYED = 11; + */ + public static final int SUCCESSFULLY_DEPLOYED_VALUE = 11; + + /** + * + * + *
    +   * The deployment has failed.
    +   * 
    + * + * FAILED_TO_DEPLOY = 12; + */ + public static final int FAILED_TO_DEPLOY_VALUE = 12; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -263,6 +305,10 @@ public static DeploymentStage forNumber(int value) { return FINISHING_UP; case 10: return DEPLOYMENT_TERMINATED; + case 11: + return SUCCESSFULLY_DEPLOYED; + case 12: + return FAILED_TO_DEPLOY; default: return null; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentStageProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentStageProto.java index e602304d5fc9..53f7e78e90e6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentStageProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentStageProto.java @@ -38,19 +38,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/deploy" + "ment_stage.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1*\201\002\n\017DeploymentStage\022 \n\034DEPLOYM" + + "m.v1beta1*\262\002\n\017DeploymentStage\022 \n\034DEPLOYM" + "ENT_STAGE_UNSPECIFIED\020\000\022\027\n\023STARTING_DEPL" + "OYMENT\020\005\022\023\n\017PREPARING_MODEL\020\006\022\034\n\030CREATIN" + "G_SERVING_CLUSTER\020\007\022\033\n\027ADDING_NODES_TO_C" + "LUSTER\020\010\022\033\n\027GETTING_CONTAINER_IMAGE\020\t\022\031\n" + "\025STARTING_MODEL_SERVER\020\003\022\020\n\014FINISHING_UP" - + "\020\004\022\031\n\025DEPLOYMENT_TERMINATED\020\nB\353\001\n#com.go" - + "ogle.cloud.aiplatform.v1beta1B\024Deploymen" - + "tStageProtoP\001ZCcloud.google.com/go/aipla" - + "tform/apiv1beta1/aiplatformpb;aiplatform" - + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" - + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" - + ":Cloud::AIPlatform::V1beta1b\006proto3" + + "\020\004\022\031\n\025DEPLOYMENT_TERMINATED\020\n\022\031\n\025SUCCESS" + + "FULLY_DEPLOYED\020\013\022\024\n\020FAILED_TO_DEPLOY\020\014B\353" + + "\001\n#com.google.cloud.aiplatform.v1beta1B\024" + + "DeploymentStageProtoP\001ZCcloud.google.com" + + "/go/aiplatform/apiv1beta1/aiplatformpb;a" + + "iplatformpb\252\002\037Google.Cloud.AIPlatform.V1" + + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" + + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentRequest.java new file mode 100644 index 000000000000..1bdbcd94cc49 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentRequest.java @@ -0,0 +1,2017 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
    + * Request message for
    + * [PredictionService.EmbedContent][google.cloud.aiplatform.v1beta1.PredictionService.EmbedContent].
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EmbedContentRequest} + */ +public final class EmbedContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EmbedContentRequest) + EmbedContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EmbedContentRequest.newBuilder() to construct. + private EmbedContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmbedContentRequest() { + model_ = ""; + title_ = ""; + taskType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmbedContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.class, + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.Builder.class); + } + + /** + * + * + *
    +   * Represents a downstream task the embeddings will be used for.
    +   * 
    + * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType} + */ + public enum EmbeddingTaskType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unset value, which will default to one of the other enum values.
    +     * 
    + * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
    +     * Specifies the given text is a query in a search/retrieval setting.
    +     * 
    + * + * RETRIEVAL_QUERY = 2; + */ + RETRIEVAL_QUERY(2), + /** + * + * + *
    +     * Specifies the given text is a document from the corpus being searched.
    +     * 
    + * + * RETRIEVAL_DOCUMENT = 3; + */ + RETRIEVAL_DOCUMENT(3), + /** + * + * + *
    +     * Specifies the given text will be used for STS.
    +     * 
    + * + * SEMANTIC_SIMILARITY = 4; + */ + SEMANTIC_SIMILARITY(4), + /** + * + * + *
    +     * Specifies that the given text will be classified.
    +     * 
    + * + * CLASSIFICATION = 5; + */ + CLASSIFICATION(5), + /** + * + * + *
    +     * Specifies that the embeddings will be used for clustering.
    +     * 
    + * + * CLUSTERING = 6; + */ + CLUSTERING(6), + /** + * + * + *
    +     * Specifies that the embeddings will be used for question answering.
    +     * 
    + * + * QUESTION_ANSWERING = 7; + */ + QUESTION_ANSWERING(7), + /** + * + * + *
    +     * Specifies that the embeddings will be used for fact verification.
    +     * 
    + * + * FACT_VERIFICATION = 8; + */ + FACT_VERIFICATION(8), + /** + * + * + *
    +     * Specifies that the embeddings will be used for code retrieval.
    +     * 
    + * + * CODE_RETRIEVAL_QUERY = 9; + */ + CODE_RETRIEVAL_QUERY(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unset value, which will default to one of the other enum values.
    +     * 
    + * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Specifies the given text is a query in a search/retrieval setting.
    +     * 
    + * + * RETRIEVAL_QUERY = 2; + */ + public static final int RETRIEVAL_QUERY_VALUE = 2; + + /** + * + * + *
    +     * Specifies the given text is a document from the corpus being searched.
    +     * 
    + * + * RETRIEVAL_DOCUMENT = 3; + */ + public static final int RETRIEVAL_DOCUMENT_VALUE = 3; + + /** + * + * + *
    +     * Specifies the given text will be used for STS.
    +     * 
    + * + * SEMANTIC_SIMILARITY = 4; + */ + public static final int SEMANTIC_SIMILARITY_VALUE = 4; + + /** + * + * + *
    +     * Specifies that the given text will be classified.
    +     * 
    + * + * CLASSIFICATION = 5; + */ + public static final int CLASSIFICATION_VALUE = 5; + + /** + * + * + *
    +     * Specifies that the embeddings will be used for clustering.
    +     * 
    + * + * CLUSTERING = 6; + */ + public static final int CLUSTERING_VALUE = 6; + + /** + * + * + *
    +     * Specifies that the embeddings will be used for question answering.
    +     * 
    + * + * QUESTION_ANSWERING = 7; + */ + public static final int QUESTION_ANSWERING_VALUE = 7; + + /** + * + * + *
    +     * Specifies that the embeddings will be used for fact verification.
    +     * 
    + * + * FACT_VERIFICATION = 8; + */ + public static final int FACT_VERIFICATION_VALUE = 8; + + /** + * + * + *
    +     * Specifies that the embeddings will be used for code retrieval.
    +     * 
    + * + * CODE_RETRIEVAL_QUERY = 9; + */ + public static final int CODE_RETRIEVAL_QUERY_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 EmbeddingTaskType 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 EmbeddingTaskType forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 2: + return RETRIEVAL_QUERY; + case 3: + return RETRIEVAL_DOCUMENT; + case 4: + return SEMANTIC_SIMILARITY; + case 5: + return CLASSIFICATION; + case 6: + return CLUSTERING; + case 7: + return QUESTION_ANSWERING; + case 8: + return FACT_VERIFICATION; + case 9: + return CODE_RETRIEVAL_QUERY; + 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 EmbeddingTaskType findValueByNumber(int number) { + return EmbeddingTaskType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EmbeddingTaskType[] VALUES = values(); + + public static EmbeddingTaskType 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 EmbeddingTaskType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType) + } + + private int bitField0_; + public static final int MODEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + 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(); + model_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Content content_; + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + public static final int TITLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_TYPE_FIELD_NUMBER = 5; + private int taskType_ = 0; + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the taskType field is set. + */ + @java.lang.Override + public boolean hasTaskType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for taskType. + */ + @java.lang.Override + public int getTaskTypeValue() { + return taskType_; + } + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The taskType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType getTaskType() { + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType result = + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType.forNumber( + taskType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType.UNRECOGNIZED + : result; + } + + public static final int OUTPUT_DIMENSIONALITY_FIELD_NUMBER = 6; + private int outputDimensionality_ = 0; + + /** + * + * + *
    +   * Optional. Optional reduced dimension for the output embedding. If set,
    +   * excessive values in the output embedding are truncated from the end.
    +   * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputDimensionality field is set. + */ + @java.lang.Override + public boolean hasOutputDimensionality() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Optional. Optional reduced dimension for the output embedding. If set,
    +   * excessive values in the output embedding are truncated from the end.
    +   * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputDimensionality. + */ + @java.lang.Override + public int getOutputDimensionality() { + return outputDimensionality_; + } + + public static final int AUTO_TRUNCATE_FIELD_NUMBER = 7; + private boolean autoTruncate_ = false; + + /** + * + * + *
    +   * Optional. Whether to silently truncate the input content if it's longer
    +   * than the maximum sequence length.
    +   * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the autoTruncate field is set. + */ + @java.lang.Override + public boolean hasAutoTruncate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +   * Optional. Whether to silently truncate the input content if it's longer
    +   * than the maximum sequence length.
    +   * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoTruncate. + */ + @java.lang.Override + public boolean getAutoTruncate() { + return autoTruncate_; + } + + 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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(5, taskType_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(6, outputDimensionality_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(7, autoTruncate_); + } + 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.GeneratedMessageV3.computeStringSize(1, model_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, taskType_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, outputDimensionality_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, autoTruncate_); + } + 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.aiplatform.v1beta1.EmbedContentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest other = + (com.google.cloud.aiplatform.v1beta1.EmbedContentRequest) obj; + + if (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel().equals(other.getModel())) return false; + } + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasTaskType() != other.hasTaskType()) return false; + if (hasTaskType()) { + if (taskType_ != other.taskType_) return false; + } + if (hasOutputDimensionality() != other.hasOutputDimensionality()) return false; + if (hasOutputDimensionality()) { + if (getOutputDimensionality() != other.getOutputDimensionality()) return false; + } + if (hasAutoTruncate() != other.hasAutoTruncate()) return false; + if (hasAutoTruncate()) { + if (getAutoTruncate() != other.getAutoTruncate()) 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 (hasModel()) { + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + } + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasTaskType()) { + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + taskType_; + } + if (hasOutputDimensionality()) { + hash = (37 * hash) + OUTPUT_DIMENSIONALITY_FIELD_NUMBER; + hash = (53 * hash) + getOutputDimensionality(); + } + if (hasAutoTruncate()) { + hash = (37 * hash) + AUTO_TRUNCATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoTruncate()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest 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.aiplatform.v1beta1.EmbedContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest 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.aiplatform.v1beta1.EmbedContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for
    +   * [PredictionService.EmbedContent][google.cloud.aiplatform.v1beta1.PredictionService.EmbedContent].
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EmbedContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EmbedContentRequest) + com.google.cloud.aiplatform.v1beta1.EmbedContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.class, + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + model_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + title_ = ""; + taskType_ = 0; + outputDimensionality_ = 0; + autoTruncate_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentRequest build() { + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest result = + new com.google.cloud.aiplatform.v1beta1.EmbedContentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EmbedContentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.taskType_ = taskType_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.outputDimensionality_ = outputDimensionality_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.autoTruncate_ = autoTruncate_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EmbedContentRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.EmbedContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EmbedContentRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.getDefaultInstance()) + return this; + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTaskType()) { + setTaskType(other.getTaskType()); + } + if (other.hasOutputDimensionality()) { + setOutputDimensionality(other.getOutputDimensionality()); + } + if (other.hasAutoTruncate()) { + setAutoTruncate(other.getAutoTruncate()); + } + 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: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + taskType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + outputDimensionality_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + autoTruncate_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + 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 model_ = ""; + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the publisher model requested to serve the
    +     * prediction. Format:
    +     * `projects/{project}/locations/{location}/publishers/*/models/*`
    +     * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Content content_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentBuilder_; + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + } + + /** + * + * + *
    +     * Required. Input content to be embedded. Required.
    +     * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + getContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional title for the text.
    +     * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int taskType_ = 0; + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the taskType field is set. + */ + @java.lang.Override + public boolean hasTaskType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for taskType. + */ + @java.lang.Override + public int getTaskTypeValue() { + return taskType_; + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for taskType to set. + * @return This builder for chaining. + */ + public Builder setTaskTypeValue(int value) { + taskType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The taskType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType getTaskType() { + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType result = + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType.forNumber( + taskType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The taskType to set. + * @return This builder for chaining. + */ + public Builder setTaskType( + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + taskType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The task type of the embedding.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTaskType() { + bitField0_ = (bitField0_ & ~0x00000008); + taskType_ = 0; + onChanged(); + return this; + } + + private int outputDimensionality_; + + /** + * + * + *
    +     * Optional. Optional reduced dimension for the output embedding. If set,
    +     * excessive values in the output embedding are truncated from the end.
    +     * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputDimensionality field is set. + */ + @java.lang.Override + public boolean hasOutputDimensionality() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Optional. Optional reduced dimension for the output embedding. If set,
    +     * excessive values in the output embedding are truncated from the end.
    +     * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputDimensionality. + */ + @java.lang.Override + public int getOutputDimensionality() { + return outputDimensionality_; + } + + /** + * + * + *
    +     * Optional. Optional reduced dimension for the output embedding. If set,
    +     * excessive values in the output embedding are truncated from the end.
    +     * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The outputDimensionality to set. + * @return This builder for chaining. + */ + public Builder setOutputDimensionality(int value) { + + outputDimensionality_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional reduced dimension for the output embedding. If set,
    +     * excessive values in the output embedding are truncated from the end.
    +     * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearOutputDimensionality() { + bitField0_ = (bitField0_ & ~0x00000010); + outputDimensionality_ = 0; + onChanged(); + return this; + } + + private boolean autoTruncate_; + + /** + * + * + *
    +     * Optional. Whether to silently truncate the input content if it's longer
    +     * than the maximum sequence length.
    +     * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the autoTruncate field is set. + */ + @java.lang.Override + public boolean hasAutoTruncate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. Whether to silently truncate the input content if it's longer
    +     * than the maximum sequence length.
    +     * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoTruncate. + */ + @java.lang.Override + public boolean getAutoTruncate() { + return autoTruncate_; + } + + /** + * + * + *
    +     * Optional. Whether to silently truncate the input content if it's longer
    +     * than the maximum sequence length.
    +     * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The autoTruncate to set. + * @return This builder for chaining. + */ + public Builder setAutoTruncate(boolean value) { + + autoTruncate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Whether to silently truncate the input content if it's longer
    +     * than the maximum sequence length.
    +     * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAutoTruncate() { + bitField0_ = (bitField0_ & ~0x00000020); + autoTruncate_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EmbedContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EmbedContentRequest) + private static final com.google.cloud.aiplatform.v1beta1.EmbedContentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EmbedContentRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbedContentRequest 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.aiplatform.v1beta1.EmbedContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentRequestOrBuilder.java new file mode 100644 index 000000000000..0aa0af867eb4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentRequestOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface EmbedContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EmbedContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the model field is set. + */ + boolean hasModel(); + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The model. + */ + java.lang.String getModel(); + + /** + * + * + *
    +   * Required. The name of the publisher model requested to serve the
    +   * prediction. Format:
    +   * `projects/{project}/locations/{location}/publishers/*/models/*`
    +   * 
    + * + * optional string model = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + * + * @return The content. + */ + com.google.cloud.aiplatform.v1beta1.Content getContent(); + + /** + * + * + *
    +   * Required. Input content to be embedded. Required.
    +   * 
    + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2; + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
    +   * Optional. An optional title for the text.
    +   * 
    + * + * optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the taskType field is set. + */ + boolean hasTaskType(); + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for taskType. + */ + int getTaskTypeValue(); + + /** + * + * + *
    +   * Optional. The task type of the embedding.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The taskType. + */ + com.google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType getTaskType(); + + /** + * + * + *
    +   * Optional. Optional reduced dimension for the output embedding. If set,
    +   * excessive values in the output embedding are truncated from the end.
    +   * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputDimensionality field is set. + */ + boolean hasOutputDimensionality(); + + /** + * + * + *
    +   * Optional. Optional reduced dimension for the output embedding. If set,
    +   * excessive values in the output embedding are truncated from the end.
    +   * 
    + * + * optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputDimensionality. + */ + int getOutputDimensionality(); + + /** + * + * + *
    +   * Optional. Whether to silently truncate the input content if it's longer
    +   * than the maximum sequence length.
    +   * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the autoTruncate field is set. + */ + boolean hasAutoTruncate(); + + /** + * + * + *
    +   * Optional. Whether to silently truncate the input content if it's longer
    +   * than the maximum sequence length.
    +   * 
    + * + * optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoTruncate. + */ + boolean getAutoTruncate(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentResponse.java new file mode 100644 index 000000000000..d85137aaaf2c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentResponse.java @@ -0,0 +1,1875 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
    + * Response message for
    + * [PredictionService.EmbedContent][google.cloud.aiplatform.v1beta1.PredictionService.EmbedContent].
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EmbedContentResponse} + */ +public final class EmbedContentResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EmbedContentResponse) + EmbedContentResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EmbedContentResponse.newBuilder() to construct. + private EmbedContentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmbedContentResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmbedContentResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.class, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Builder.class); + } + + public interface EmbeddingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + float getValues(int index); + } + + /** + * + * + *
    +   * A list of floats representing an embedding.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding} + */ + public static final class Embedding extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding) + EmbeddingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Embedding.newBuilder() to construct. + private Embedding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Embedding() { + values_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Embedding(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_Embedding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_Embedding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.class, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList values_ = emptyFloatList(); + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +     * Embedding vector values.
    +     * 
    + * + * repeated float values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public float getValues(int index) { + return values_.getFloat(index); + } + + private int valuesMemoizedSerializedSize = -1; + + 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 (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeFloatNoTag(values_.getFloat(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 4 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + 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.aiplatform.v1beta1.EmbedContentResponse.Embedding)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding other = + (com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding 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.aiplatform.v1beta1.EmbedContentResponse.Embedding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding 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.aiplatform.v1beta1.EmbedContentResponse.Embedding parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * A list of floats representing an embedding.
    +     * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding) + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.EmbeddingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_Embedding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_Embedding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.class, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyFloatList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_Embedding_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding build() { + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding buildPartial() { + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding result = + new com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + values_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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 13: + { + float v = input.readFloat(); + ensureValuesIsMutable(); + values_.addFloat(v); + break; + } // case 13 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureValuesIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + values_.addFloat(input.readFloat()); + } + input.popLimit(limit); + 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.Internal.FloatList values_ = emptyFloatList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_); + } + bitField0_ |= 0x00000001; + } + + private void ensureValuesIsMutable(int capacity) { + if (!values_.isModifiable()) { + values_ = makeMutableCopy(values_, capacity); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @return A list containing the values. + */ + public java.util.List getValuesList() { + values_.makeImmutable(); + return values_; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public float getValues(int index) { + return values_.getFloat(index); + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, float value) { + + ensureValuesIsMutable(); + values_.setFloat(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(float value) { + + ensureValuesIsMutable(); + values_.addFloat(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Embedding vector values.
    +       * 
    + * + * repeated float values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding) + private static final com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding(); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Embedding 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.aiplatform.v1beta1.EmbedContentResponse.Embedding + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EMBEDDING_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding_; + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + * + * @return Whether the embedding field is set. + */ + @java.lang.Override + public boolean hasEmbedding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + * + * @return The embedding. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding getEmbedding() { + return embedding_ == null + ? com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.getDefaultInstance() + : embedding_; + } + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.EmbeddingOrBuilder + getEmbeddingOrBuilder() { + return embedding_ == null + ? com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.getDefaultInstance() + : embedding_; + } + + public static final int USAGE_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.UsageMetadata usageMetadata_; + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + * + * @return Whether the usageMetadata field is set. + */ + @java.lang.Override + public boolean hasUsageMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + * + * @return The usageMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UsageMetadata getUsageMetadata() { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UsageMetadataOrBuilder getUsageMetadataOrBuilder() { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } + + public static final int TRUNCATED_FIELD_NUMBER = 4; + private boolean truncated_ = false; + + /** + * + * + *
    +   * Whether the input content was truncated before generating the embedding.
    +   * 
    + * + * bool truncated = 4; + * + * @return The truncated. + */ + @java.lang.Override + public boolean getTruncated() { + return truncated_; + } + + 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, getEmbedding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUsageMetadata()); + } + if (truncated_ != false) { + output.writeBool(4, truncated_); + } + 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, getEmbedding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUsageMetadata()); + } + if (truncated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, truncated_); + } + 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.aiplatform.v1beta1.EmbedContentResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse other = + (com.google.cloud.aiplatform.v1beta1.EmbedContentResponse) obj; + + if (hasEmbedding() != other.hasEmbedding()) return false; + if (hasEmbedding()) { + if (!getEmbedding().equals(other.getEmbedding())) return false; + } + if (hasUsageMetadata() != other.hasUsageMetadata()) return false; + if (hasUsageMetadata()) { + if (!getUsageMetadata().equals(other.getUsageMetadata())) return false; + } + if (getTruncated() != other.getTruncated()) 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 (hasEmbedding()) { + hash = (37 * hash) + EMBEDDING_FIELD_NUMBER; + hash = (53 * hash) + getEmbedding().hashCode(); + } + if (hasUsageMetadata()) { + hash = (37 * hash) + USAGE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getUsageMetadata().hashCode(); + } + hash = (37 * hash) + TRUNCATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTruncated()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse 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.aiplatform.v1beta1.EmbedContentResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse 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.aiplatform.v1beta1.EmbedContentResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message for
    +   * [PredictionService.EmbedContent][google.cloud.aiplatform.v1beta1.PredictionService.EmbedContent].
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EmbedContentResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EmbedContentResponse) + com.google.cloud.aiplatform.v1beta1.EmbedContentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.class, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEmbeddingFieldBuilder(); + getUsageMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + embedding_ = null; + if (embeddingBuilder_ != null) { + embeddingBuilder_.dispose(); + embeddingBuilder_ = null; + } + usageMetadata_ = null; + if (usageMetadataBuilder_ != null) { + usageMetadataBuilder_.dispose(); + usageMetadataBuilder_ = null; + } + truncated_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse build() { + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse result = + new com.google.cloud.aiplatform.v1beta1.EmbedContentResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EmbedContentResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.embedding_ = embeddingBuilder_ == null ? embedding_ : embeddingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.usageMetadata_ = + usageMetadataBuilder_ == null ? usageMetadata_ : usageMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.truncated_ = truncated_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EmbedContentResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.EmbedContentResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EmbedContentResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.getDefaultInstance()) + return this; + if (other.hasEmbedding()) { + mergeEmbedding(other.getEmbedding()); + } + if (other.hasUsageMetadata()) { + mergeUsageMetadata(other.getUsageMetadata()); + } + if (other.getTruncated() != false) { + setTruncated(other.getTruncated()); + } + 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(getEmbeddingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUsageMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + truncated_ = input.readBool(); + bitField0_ |= 0x00000004; + 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 com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.Builder, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.EmbeddingOrBuilder> + embeddingBuilder_; + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + * + * @return Whether the embedding field is set. + */ + public boolean hasEmbedding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + * + * @return The embedding. + */ + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding getEmbedding() { + if (embeddingBuilder_ == null) { + return embedding_ == null + ? com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + .getDefaultInstance() + : embedding_; + } else { + return embeddingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + */ + public Builder setEmbedding( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding value) { + if (embeddingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + embedding_ = value; + } else { + embeddingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + */ + public Builder setEmbedding( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.Builder + builderForValue) { + if (embeddingBuilder_ == null) { + embedding_ = builderForValue.build(); + } else { + embeddingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + */ + public Builder mergeEmbedding( + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding value) { + if (embeddingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && embedding_ != null + && embedding_ + != com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + .getDefaultInstance()) { + getEmbeddingBuilder().mergeFrom(value); + } else { + embedding_ = value; + } + } else { + embeddingBuilder_.mergeFrom(value); + } + if (embedding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + */ + public Builder clearEmbedding() { + bitField0_ = (bitField0_ & ~0x00000001); + embedding_ = null; + if (embeddingBuilder_ != null) { + embeddingBuilder_.dispose(); + embeddingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + */ + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.Builder + getEmbeddingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEmbeddingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + */ + public com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.EmbeddingOrBuilder + getEmbeddingOrBuilder() { + if (embeddingBuilder_ != null) { + return embeddingBuilder_.getMessageOrBuilder(); + } else { + return embedding_ == null + ? com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding + .getDefaultInstance() + : embedding_; + } + } + + /** + * + * + *
    +     * The embedding generated from the input content.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.Builder, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.EmbeddingOrBuilder> + getEmbeddingFieldBuilder() { + if (embeddingBuilder_ == null) { + embeddingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding.Builder, + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.EmbeddingOrBuilder>( + getEmbedding(), getParentForChildren(), isClean()); + embedding_ = null; + } + return embeddingBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.UsageMetadata usageMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.UsageMetadata, + com.google.cloud.aiplatform.v1beta1.UsageMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.UsageMetadataOrBuilder> + usageMetadataBuilder_; + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + * + * @return Whether the usageMetadata field is set. + */ + public boolean hasUsageMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + * + * @return The usageMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.UsageMetadata getUsageMetadata() { + if (usageMetadataBuilder_ == null) { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } else { + return usageMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + */ + public Builder setUsageMetadata(com.google.cloud.aiplatform.v1beta1.UsageMetadata value) { + if (usageMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usageMetadata_ = value; + } else { + usageMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + */ + public Builder setUsageMetadata( + com.google.cloud.aiplatform.v1beta1.UsageMetadata.Builder builderForValue) { + if (usageMetadataBuilder_ == null) { + usageMetadata_ = builderForValue.build(); + } else { + usageMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + */ + public Builder mergeUsageMetadata(com.google.cloud.aiplatform.v1beta1.UsageMetadata value) { + if (usageMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && usageMetadata_ != null + && usageMetadata_ + != com.google.cloud.aiplatform.v1beta1.UsageMetadata.getDefaultInstance()) { + getUsageMetadataBuilder().mergeFrom(value); + } else { + usageMetadata_ = value; + } + } else { + usageMetadataBuilder_.mergeFrom(value); + } + if (usageMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + */ + public Builder clearUsageMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + usageMetadata_ = null; + if (usageMetadataBuilder_ != null) { + usageMetadataBuilder_.dispose(); + usageMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + */ + public com.google.cloud.aiplatform.v1beta1.UsageMetadata.Builder getUsageMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUsageMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + */ + public com.google.cloud.aiplatform.v1beta1.UsageMetadataOrBuilder getUsageMetadataOrBuilder() { + if (usageMetadataBuilder_ != null) { + return usageMetadataBuilder_.getMessageOrBuilder(); + } else { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } + } + + /** + * + * + *
    +     * Metadata about the response(s).
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.UsageMetadata, + com.google.cloud.aiplatform.v1beta1.UsageMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.UsageMetadataOrBuilder> + getUsageMetadataFieldBuilder() { + if (usageMetadataBuilder_ == null) { + usageMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.UsageMetadata, + com.google.cloud.aiplatform.v1beta1.UsageMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.UsageMetadataOrBuilder>( + getUsageMetadata(), getParentForChildren(), isClean()); + usageMetadata_ = null; + } + return usageMetadataBuilder_; + } + + private boolean truncated_; + + /** + * + * + *
    +     * Whether the input content was truncated before generating the embedding.
    +     * 
    + * + * bool truncated = 4; + * + * @return The truncated. + */ + @java.lang.Override + public boolean getTruncated() { + return truncated_; + } + + /** + * + * + *
    +     * Whether the input content was truncated before generating the embedding.
    +     * 
    + * + * bool truncated = 4; + * + * @param value The truncated to set. + * @return This builder for chaining. + */ + public Builder setTruncated(boolean value) { + + truncated_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Whether the input content was truncated before generating the embedding.
    +     * 
    + * + * bool truncated = 4; + * + * @return This builder for chaining. + */ + public Builder clearTruncated() { + bitField0_ = (bitField0_ & ~0x00000004); + truncated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EmbedContentResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EmbedContentResponse) + private static final com.google.cloud.aiplatform.v1beta1.EmbedContentResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EmbedContentResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.EmbedContentResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbedContentResponse 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.aiplatform.v1beta1.EmbedContentResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentResponseOrBuilder.java new file mode 100644 index 000000000000..7844350ec3a8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EmbedContentResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface EmbedContentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EmbedContentResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + * + * @return Whether the embedding field is set. + */ + boolean hasEmbedding(); + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + * + * @return The embedding. + */ + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding getEmbedding(); + + /** + * + * + *
    +   * The embedding generated from the input content.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding embedding = 1; + */ + com.google.cloud.aiplatform.v1beta1.EmbedContentResponse.EmbeddingOrBuilder + getEmbeddingOrBuilder(); + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + * + * @return Whether the usageMetadata field is set. + */ + boolean hasUsageMetadata(); + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + * + * @return The usageMetadata. + */ + com.google.cloud.aiplatform.v1beta1.UsageMetadata getUsageMetadata(); + + /** + * + * + *
    +   * Metadata about the response(s).
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata usage_metadata = 2; + */ + com.google.cloud.aiplatform.v1beta1.UsageMetadataOrBuilder getUsageMetadataOrBuilder(); + + /** + * + * + *
    +   * Whether the input content was truncated before generating the embedding.
    +   * 
    + * + * bool truncated = 4; + * + * @return The truncated. + */ + boolean getTruncated(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventActions.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventActions.java index cd79ed5409eb..6c55b151d1eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventActions.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventActions.java @@ -263,28 +263,6 @@ public int getArtifactDeltaOrThrow(java.lang.String key) { return map.get(key); } - public static final int TRANSFER_TO_AGENT_FIELD_NUMBER = 5; - private boolean transferToAgent_ = false; - - /** - * - * - *
    -   * Deprecated. If set, the event transfers to the specified agent.
    -   * 
    - * - * bool transfer_to_agent = 5 [deprecated = true]; - * - * @deprecated google.cloud.aiplatform.v1beta1.EventActions.transfer_to_agent is deprecated. See - * google/cloud/aiplatform/v1beta1/session.proto;l=176 - * @return The transferToAgent. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getTransferToAgent() { - return transferToAgent_; - } - public static final int ESCALATE_FIELD_NUMBER = 6; private boolean escalate_ = false; @@ -447,9 +425,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetArtifactDelta(), ArtifactDeltaDefaultEntryHolder.defaultEntry, 3); - if (transferToAgent_ != false) { - output.writeBool(5, transferToAgent_); - } if (escalate_ != false) { output.writeBool(6, escalate_); } @@ -484,9 +459,6 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, artifactDelta__); } - if (transferToAgent_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, transferToAgent_); - } if (escalate_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, escalate_); } @@ -519,7 +491,6 @@ public boolean equals(final java.lang.Object obj) { if (!getStateDelta().equals(other.getStateDelta())) return false; } if (!internalGetArtifactDelta().equals(other.internalGetArtifactDelta())) return false; - if (getTransferToAgent() != other.getTransferToAgent()) return false; if (getEscalate() != other.getEscalate()) return false; if (hasRequestedAuthConfigs() != other.hasRequestedAuthConfigs()) return false; if (hasRequestedAuthConfigs()) { @@ -547,8 +518,6 @@ public int hashCode() { hash = (37 * hash) + ARTIFACT_DELTA_FIELD_NUMBER; hash = (53 * hash) + internalGetArtifactDelta().hashCode(); } - hash = (37 * hash) + TRANSFER_TO_AGENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTransferToAgent()); hash = (37 * hash) + ESCALATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEscalate()); if (hasRequestedAuthConfigs()) { @@ -736,7 +705,6 @@ public Builder clear() { stateDeltaBuilder_ = null; } internalGetMutableArtifactDelta().clear(); - transferToAgent_ = false; escalate_ = false; requestedAuthConfigs_ = null; if (requestedAuthConfigsBuilder_ != null) { @@ -793,19 +761,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EventActions resu result.artifactDelta_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.transferToAgent_ = transferToAgent_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { result.escalate_ = escalate_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.requestedAuthConfigs_ = requestedAuthConfigsBuilder_ == null ? requestedAuthConfigs_ : requestedAuthConfigsBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.transferAgent_ = transferAgent_; } result.bitField0_ |= to_bitField0_; @@ -865,9 +830,6 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EventActions other) } internalGetMutableArtifactDelta().mergeFrom(other.internalGetArtifactDelta()); bitField0_ |= 0x00000004; - if (other.getTransferToAgent() != false) { - setTransferToAgent(other.getTransferToAgent()); - } if (other.getEscalate() != false) { setEscalate(other.getEscalate()); } @@ -876,7 +838,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EventActions other) } if (!other.getTransferAgent().isEmpty()) { transferAgent_ = other.transferAgent_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -929,29 +891,23 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 - case 40: - { - transferToAgent_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 40 case 48: { escalate_ = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; break; } // case 48 case 58: { input.readMessage( getRequestedAuthConfigsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; break; } // case 58 case 66: { transferAgent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; break; } // case 66 default: @@ -1424,71 +1380,6 @@ public Builder putAllArtifactDelta(java.util.Map - * Deprecated. If set, the event transfers to the specified agent. - * - * - * bool transfer_to_agent = 5 [deprecated = true]; - * - * @deprecated google.cloud.aiplatform.v1beta1.EventActions.transfer_to_agent is deprecated. See - * google/cloud/aiplatform/v1beta1/session.proto;l=176 - * @return The transferToAgent. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getTransferToAgent() { - return transferToAgent_; - } - - /** - * - * - *
    -     * Deprecated. If set, the event transfers to the specified agent.
    -     * 
    - * - * bool transfer_to_agent = 5 [deprecated = true]; - * - * @deprecated google.cloud.aiplatform.v1beta1.EventActions.transfer_to_agent is deprecated. See - * google/cloud/aiplatform/v1beta1/session.proto;l=176 - * @param value The transferToAgent to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setTransferToAgent(boolean value) { - - transferToAgent_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
    -     * Deprecated. If set, the event transfers to the specified agent.
    -     * 
    - * - * bool transfer_to_agent = 5 [deprecated = true]; - * - * @deprecated google.cloud.aiplatform.v1beta1.EventActions.transfer_to_agent is deprecated. See - * google/cloud/aiplatform/v1beta1/session.proto;l=176 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearTransferToAgent() { - bitField0_ = (bitField0_ & ~0x00000008); - transferToAgent_ = false; - onChanged(); - return this; - } - private boolean escalate_; /** @@ -1522,7 +1413,7 @@ public boolean getEscalate() { public Builder setEscalate(boolean value) { escalate_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1539,7 +1430,7 @@ public Builder setEscalate(boolean value) { * @return This builder for chaining. */ public Builder clearEscalate() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); escalate_ = false; onChanged(); return this; @@ -1569,7 +1460,7 @@ public Builder clearEscalate() { * @return Whether the requestedAuthConfigs field is set. */ public boolean hasRequestedAuthConfigs() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1621,7 +1512,7 @@ public Builder setRequestedAuthConfigs(com.google.protobuf.Struct value) { } else { requestedAuthConfigsBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1646,7 +1537,7 @@ public Builder setRequestedAuthConfigs(com.google.protobuf.Struct.Builder builde } else { requestedAuthConfigsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1667,7 +1558,7 @@ public Builder setRequestedAuthConfigs(com.google.protobuf.Struct.Builder builde */ public Builder mergeRequestedAuthConfigs(com.google.protobuf.Struct value) { if (requestedAuthConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000010) != 0) && requestedAuthConfigs_ != null && requestedAuthConfigs_ != com.google.protobuf.Struct.getDefaultInstance()) { getRequestedAuthConfigsBuilder().mergeFrom(value); @@ -1678,7 +1569,7 @@ public Builder mergeRequestedAuthConfigs(com.google.protobuf.Struct value) { requestedAuthConfigsBuilder_.mergeFrom(value); } if (requestedAuthConfigs_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1699,7 +1590,7 @@ public Builder mergeRequestedAuthConfigs(com.google.protobuf.Struct value) { *
    */ public Builder clearRequestedAuthConfigs() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); requestedAuthConfigs_ = null; if (requestedAuthConfigsBuilder_ != null) { requestedAuthConfigsBuilder_.dispose(); @@ -1724,7 +1615,7 @@ public Builder clearRequestedAuthConfigs() { *
    */ public com.google.protobuf.Struct.Builder getRequestedAuthConfigsBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return getRequestedAuthConfigsFieldBuilder().getBuilder(); } @@ -1849,7 +1740,7 @@ public Builder setTransferAgent(java.lang.String value) { throw new NullPointerException(); } transferAgent_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1867,7 +1758,7 @@ public Builder setTransferAgent(java.lang.String value) { */ public Builder clearTransferAgent() { transferAgent_ = getDefaultInstance().getTransferAgent(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1890,7 +1781,7 @@ public Builder setTransferAgentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); transferAgent_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventActionsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventActionsOrBuilder.java index 14470eb432f5..481c0ae9f687 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventActionsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventActionsOrBuilder.java @@ -147,22 +147,6 @@ public interface EventActionsOrBuilder */ int getArtifactDeltaOrThrow(java.lang.String key); - /** - * - * - *
    -   * Deprecated. If set, the event transfers to the specified agent.
    -   * 
    - * - * bool transfer_to_agent = 5 [deprecated = true]; - * - * @deprecated google.cloud.aiplatform.v1beta1.EventActions.transfer_to_agent is deprecated. See - * google/cloud/aiplatform/v1beta1/session.proto;l=176 - * @return The transferToAgent. - */ - @java.lang.Deprecated - boolean getTransferToAgent(); - /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java index cc777343eee4..38853f03451d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java @@ -307,7 +307,7 @@ public interface BigtableOrBuilder * If true, enable direct access to the Bigtable instance. * * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enableDirectBigtableAccess. @@ -322,7 +322,7 @@ public interface BigtableOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -337,7 +337,7 @@ public interface BigtableOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -353,7 +353,7 @@ public interface BigtableOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder @@ -2404,7 +2404,7 @@ public boolean hasAutoScaling() { : autoScaling_; } - public static final int ENABLE_DIRECT_BIGTABLE_ACCESS_FIELD_NUMBER = 2; + public static final int ENABLE_DIRECT_BIGTABLE_ACCESS_FIELD_NUMBER = 3; private boolean enableDirectBigtableAccess_ = false; /** @@ -2414,7 +2414,7 @@ public boolean hasAutoScaling() { * If true, enable direct access to the Bigtable instance. * * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enableDirectBigtableAccess. @@ -2424,7 +2424,7 @@ public boolean getEnableDirectBigtableAccess() { return enableDirectBigtableAccess_; } - public static final int BIGTABLE_METADATA_FIELD_NUMBER = 3; + public static final int BIGTABLE_METADATA_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtableMetadata_; @@ -2436,7 +2436,7 @@ public boolean getEnableDirectBigtableAccess() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -2454,7 +2454,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -2476,7 +2476,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -2506,10 +2506,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(1, getAutoScaling()); } if (enableDirectBigtableAccess_ != false) { - output.writeBool(2, enableDirectBigtableAccess_); + output.writeBool(3, enableDirectBigtableAccess_); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getBigtableMetadata()); + output.writeMessage(4, getBigtableMetadata()); } getUnknownFields().writeTo(output); } @@ -2525,10 +2525,10 @@ public int getSerializedSize() { } if (enableDirectBigtableAccess_ != false) { size += - com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableDirectBigtableAccess_); + com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableDirectBigtableAccess_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBigtableMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBigtableMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2883,19 +2883,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 16: + case 24: { enableDirectBigtableAccess_ = input.readBool(); bitField0_ |= 0x00000002; break; - } // case 16 - case 26: + } // case 24 + case 34: { input.readMessage( getBigtableMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; - } // case 26 + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3149,7 +3149,7 @@ public Builder clearAutoScaling() { * If true, enable direct access to the Bigtable instance. * * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enableDirectBigtableAccess. @@ -3166,7 +3166,7 @@ public boolean getEnableDirectBigtableAccess() { * If true, enable direct access to the Bigtable instance. * * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enableDirectBigtableAccess to set. @@ -3187,7 +3187,7 @@ public Builder setEnableDirectBigtableAccess(boolean value) { * If true, enable direct access to the Bigtable instance. * * - * bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_direct_bigtable_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -3217,7 +3217,7 @@ public Builder clearEnableDirectBigtableAccess() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -3234,7 +3234,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -3259,7 +3259,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigtableMetadata( @@ -3285,7 +3285,7 @@ public Builder setBigtableMetadata( * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigtableMetadata( @@ -3309,7 +3309,7 @@ public Builder setBigtableMetadata( * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeBigtableMetadata( @@ -3342,7 +3342,7 @@ public Builder mergeBigtableMetadata( * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearBigtableMetadata() { @@ -3364,7 +3364,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata @@ -3383,7 +3383,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable @@ -3407,7 +3407,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java index 3bedb436b3dc..dedc6fe90a10 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java @@ -101,8 +101,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\003\032\316\003\n\010Bigtable\022c\n\014auto_scaling\030\001 \001(\0132H" + ".google.cloud.aiplatform.v1beta1.Feature" + "OnlineStore.Bigtable.AutoScalingB\003\340A\002\022*\n" - + "\035enable_direct_bigtable_access\030\002 \001(\010B\003\340A" - + "\001\022m\n\021bigtable_metadata\030\003 \001(\0132M.google.cl" + + "\035enable_direct_bigtable_access\030\003 \001(\010B\003\340A" + + "\001\022m\n\021bigtable_metadata\030\004 \001(\0132M.google.cl" + "oud.aiplatform.v1beta1.FeatureOnlineStor" + "e.Bigtable.BigtableMetadataB\003\340A\003\032l\n\013Auto" + "Scaling\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java index dac9dab8348e..431b78b9956d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java @@ -15783,7 +15783,7 @@ public boolean getSatisfiesPzi() { return satisfiesPzi_; } - public static final int BIGTABLE_METADATA_FIELD_NUMBER = 21; + public static final int BIGTABLE_METADATA_FIELD_NUMBER = 22; private com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtableMetadata_; /** @@ -15794,7 +15794,7 @@ public boolean getSatisfiesPzi() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -15812,7 +15812,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -15832,7 +15832,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata getBigta * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -15911,7 +15911,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeBool(20, satisfiesPzi_); } if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(21, getBigtableMetadata()); + output.writeMessage(22, getBigtableMetadata()); } getUnknownFields().writeTo(output); } @@ -15987,7 +15987,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_); } if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getBigtableMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getBigtableMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16711,13 +16711,13 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 160 - case 170: + case 178: { input.readMessage( getBigtableMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00010000; break; - } // case 170 + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -19730,7 +19730,7 @@ public Builder clearSatisfiesPzi() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -19747,7 +19747,7 @@ public boolean hasBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -19770,7 +19770,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata getBigta * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigtableMetadata( @@ -19796,7 +19796,7 @@ public Builder setBigtableMetadata( * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigtableMetadata( @@ -19819,7 +19819,7 @@ public Builder setBigtableMetadata( * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeBigtableMetadata( @@ -19852,7 +19852,7 @@ public Builder mergeBigtableMetadata( * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearBigtableMetadata() { @@ -19874,7 +19874,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.Builder @@ -19892,7 +19892,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadataOrBuilder @@ -19914,7 +19914,7 @@ public Builder clearBigtableMetadata() { * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java index 22d061111a20..46af77dd7a4d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java @@ -714,7 +714,7 @@ java.lang.String getLabelsOrDefault( * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigtableMetadata field is set. @@ -729,7 +729,7 @@ java.lang.String getLabelsOrDefault( * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigtableMetadata. @@ -744,7 +744,7 @@ java.lang.String getLabelsOrDefault( * * * - * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadataOrBuilder diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java index 140bef654213..3cc34056d159 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java @@ -130,7 +130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\003\340A\003\022\032\n\r" + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r" + "satisfies_pzi\030\024 \001(\010B\003\340A\003\022]\n" - + "\021bigtable_metadata\030\025 \001(\0132=.google.clo" + + "\021bigtable_metadata\030\026 \001(\0132=.google.clo" + "ud.aiplatform.v1beta1.FeatureView.BigtableMetadataB\003\340A\003\032B\n" + "\016BigQuerySource\022\020\n" + "\003uri\030\001 \001(\tB\003\340A\002\022\036\n" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEventsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEventsRequest.java index 4bf11fbe56f7..06af55bb07d5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEventsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEventsRequest.java @@ -44,6 +44,7 @@ private ListEventsRequest() { parent_ = ""; pageToken_ = ""; filter_ = ""; + orderBy_ = ""; } @java.lang.Override @@ -273,6 +274,67 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending. Supported fields:
    +   *   * `timestamp`
    +   *
    +   * Example: `timestamp desc`.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending. Supported fields:
    +   *   * `timestamp`
    +   *
    +   * Example: `timestamp desc`.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -299,6 +361,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } getUnknownFields().writeTo(output); } @@ -320,6 +385,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -340,6 +408,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -359,6 +428,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -505,6 +576,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; filter_ = ""; + orderBy_ = ""; return this; } @@ -553,6 +625,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListEventsRequest if (((from_bitField0_ & 0x00000008) != 0)) { result.filter_ = filter_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } } @java.lang.Override @@ -619,6 +694,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListEventsRequest o bitField0_ |= 0x00000008; onChanged(); } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -669,6 +749,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1148,6 +1234,137 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending. Supported fields:
    +     *   * `timestamp`
    +     *
    +     * Example: `timestamp desc`.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending. Supported fields:
    +     *   * `timestamp`
    +     *
    +     * Example: `timestamp desc`.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending. Supported fields:
    +     *   * `timestamp`
    +     *
    +     * Example: `timestamp desc`.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending. Supported fields:
    +     *   * `timestamp`
    +     *
    +     * Example: `timestamp desc`.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending. Supported fields:
    +     *   * `timestamp`
    +     *
    +     * Example: `timestamp desc`.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEventsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEventsRequestOrBuilder.java index 3a7d0b53df61..7013e0804b1a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEventsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEventsRequestOrBuilder.java @@ -142,4 +142,38 @@ public interface ListEventsRequestOrBuilder * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending. Supported fields:
    +   *   * `timestamp`
    +   *
    +   * Example: `timestamp desc`.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending. Supported fields:
    +   *   * `timestamp`
    +   *
    +   * Example: `timestamp desc`.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSessionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSessionsRequest.java index 1a51e6c6c5d5..f1d46ccb7cfb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSessionsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSessionsRequest.java @@ -223,8 +223,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -251,8 +252,9 @@ public java.lang.String getFilter() { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1107,8 +1109,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1134,8 +1137,9 @@ public java.lang.String getFilter() { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1161,8 +1165,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1187,8 +1192,9 @@ public Builder setFilter(java.lang.String value) { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1209,8 +1215,9 @@ public Builder clearFilter() { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSessionsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSessionsRequestOrBuilder.java index fa2c633799e6..a0084821fb43 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSessionsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSessionsRequestOrBuilder.java @@ -114,8 +114,9 @@ public interface ListSessionsRequestOrBuilder * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -131,8 +132,9 @@ public interface ListSessionsRequestOrBuilder * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java index 525013a1364d..46063398b4ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java @@ -268,6 +268,12 @@ public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int i private com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig postStartupScriptConfig_; /** + * + * + *
    +   * Optional. Post-startup script config.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -280,6 +286,12 @@ public boolean hasPostStartupScriptConfig() { } /** + * + * + *
    +   * Optional. Post-startup script config.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -294,6 +306,12 @@ public com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig getPostStartu } /** + * + * + *
    +   * Optional. Post-startup script config.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1482,6 +1500,12 @@ public java.util.List getEnv postStartupScriptConfigBuilder_; /** + * + * + *
    +     * Optional. Post-startup script config.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1493,6 +1517,12 @@ public boolean hasPostStartupScriptConfig() { } /** + * + * + *
    +     * Optional. Post-startup script config.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1511,6 +1541,12 @@ public boolean hasPostStartupScriptConfig() { } /** + * + * + *
    +     * Optional. Post-startup script config.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1531,6 +1567,12 @@ public Builder setPostStartupScriptConfig( } /** + * + * + *
    +     * Optional. Post-startup script config.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1548,6 +1590,12 @@ public Builder setPostStartupScriptConfig( } /** + * + * + *
    +     * Optional. Post-startup script config.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1575,6 +1623,12 @@ public Builder mergePostStartupScriptConfig( } /** + * + * + *
    +     * Optional. Post-startup script config.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1591,6 +1645,12 @@ public Builder clearPostStartupScriptConfig() { } /** + * + * + *
    +     * Optional. Post-startup script config.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1603,6 +1663,12 @@ public Builder clearPostStartupScriptConfig() { } /** + * + * + *
    +     * Optional. Post-startup script config.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1619,6 +1685,12 @@ public Builder clearPostStartupScriptConfig() { } /** + * + * + *
    +     * Optional. Post-startup script config.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java index 20b1230fee47..153983b3149c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java @@ -139,6 +139,12 @@ public interface NotebookSoftwareConfigOrBuilder com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int index); /** + * + * + *
    +   * Optional. Post-startup script config.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -148,6 +154,12 @@ public interface NotebookSoftwareConfigOrBuilder boolean hasPostStartupScriptConfig(); /** + * + * + *
    +   * Optional. Post-startup script config.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -157,6 +169,12 @@ public interface NotebookSoftwareConfigOrBuilder com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig getPostStartupScriptConfig(); /** + * + * + *
    +   * Optional. Post-startup script config.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfig.java index 1f95ca977af9..e9a063c7f45c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfig.java @@ -19,7 +19,15 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.aiplatform.v1beta1; -/** Protobuf type {@code google.cloud.aiplatform.v1beta1.PostStartupScriptConfig} */ +/** + * + * + *
    + * Post-startup script config.
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PostStartupScriptConfig} + */ public final class PostStartupScriptConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PostStartupScriptConfig) @@ -59,31 +67,103 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } /** + * + * + *
    +   * Represents a notebook runtime post-startup script behavior.
    +   * 
    + * * Protobuf enum {@code * google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior} */ public enum PostStartupScriptBehavior implements com.google.protobuf.ProtocolMessageEnum { - /** POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; */ + /** + * + * + *
    +     * Unspecified post-startup script behavior.
    +     * 
    + * + * POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; + */ POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED(0), - /** RUN_ONCE = 1; */ + /** + * + * + *
    +     * Run the post-startup script only once, during runtime creation.
    +     * 
    + * + * RUN_ONCE = 1; + */ RUN_ONCE(1), - /** RUN_EVERY_START = 2; */ + /** + * + * + *
    +     * Run the post-startup script after every start.
    +     * 
    + * + * RUN_EVERY_START = 2; + */ RUN_EVERY_START(2), - /** DOWNLOAD_AND_RUN_EVERY_START = 3; */ + /** + * + * + *
    +     * After every start, download the post-startup script from its source and
    +     * run it.
    +     * 
    + * + * DOWNLOAD_AND_RUN_EVERY_START = 3; + */ DOWNLOAD_AND_RUN_EVERY_START(3), UNRECOGNIZED(-1), ; - /** POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; */ + /** + * + * + *
    +     * Unspecified post-startup script behavior.
    +     * 
    + * + * POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; + */ public static final int POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED_VALUE = 0; - /** RUN_ONCE = 1; */ + /** + * + * + *
    +     * Run the post-startup script only once, during runtime creation.
    +     * 
    + * + * RUN_ONCE = 1; + */ public static final int RUN_ONCE_VALUE = 1; - /** RUN_EVERY_START = 2; */ + /** + * + * + *
    +     * Run the post-startup script after every start.
    +     * 
    + * + * RUN_EVERY_START = 2; + */ public static final int RUN_EVERY_START_VALUE = 2; - /** DOWNLOAD_AND_RUN_EVERY_START = 3; */ + /** + * + * + *
    +     * After every start, download the post-startup script from its source and
    +     * run it.
    +     * 
    + * + * DOWNLOAD_AND_RUN_EVERY_START = 3; + */ public static final int DOWNLOAD_AND_RUN_EVERY_START_VALUE = 3; public final int getNumber() { @@ -182,6 +262,12 @@ private PostStartupScriptBehavior(int value) { private volatile java.lang.Object postStartupScript_ = ""; /** + * + * + *
    +   * Optional. Post-startup script to run after runtime is started.
    +   * 
    + * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScript. @@ -200,6 +286,12 @@ public java.lang.String getPostStartupScript() { } /** + * + * + *
    +   * Optional. Post-startup script to run after runtime is started.
    +   * 
    + * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScript. @@ -223,6 +315,13 @@ public com.google.protobuf.ByteString getPostStartupScriptBytes() { private volatile java.lang.Object postStartupScriptUrl_ = ""; /** + * + * + *
    +   * Optional. Post-startup script url to download. Example:
    +   * https://bucket/script.sh
    +   * 
    + * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScriptUrl. @@ -241,6 +340,13 @@ public java.lang.String getPostStartupScriptUrl() { } /** + * + * + *
    +   * Optional. Post-startup script url to download. Example:
    +   * https://bucket/script.sh
    +   * 
    + * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScriptUrl. @@ -262,6 +368,13 @@ public com.google.protobuf.ByteString getPostStartupScriptUrlBytes() { private int postStartupScriptBehavior_ = 0; /** + * + * + *
    +   * Optional. Post-startup script behavior that defines download and execution
    +   * behavior.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -274,6 +387,13 @@ public int getPostStartupScriptBehaviorValue() { } /** + * + * + *
    +   * Optional. Post-startup script behavior that defines download and execution
    +   * behavior.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -477,7 +597,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build return builder; } - /** Protobuf type {@code google.cloud.aiplatform.v1beta1.PostStartupScriptConfig} */ + /** + * + * + *
    +   * Post-startup script config.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PostStartupScriptConfig} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PostStartupScriptConfig) @@ -683,6 +811,12 @@ public Builder mergeFrom( private java.lang.Object postStartupScript_ = ""; /** + * + * + *
    +     * Optional. Post-startup script to run after runtime is started.
    +     * 
    + * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScript. @@ -700,6 +834,12 @@ public java.lang.String getPostStartupScript() { } /** + * + * + *
    +     * Optional. Post-startup script to run after runtime is started.
    +     * 
    + * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScript. @@ -717,6 +857,12 @@ public com.google.protobuf.ByteString getPostStartupScriptBytes() { } /** + * + * + *
    +     * Optional. Post-startup script to run after runtime is started.
    +     * 
    + * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The postStartupScript to set. @@ -733,6 +879,12 @@ public Builder setPostStartupScript(java.lang.String value) { } /** + * + * + *
    +     * Optional. Post-startup script to run after runtime is started.
    +     * 
    + * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. @@ -745,6 +897,12 @@ public Builder clearPostStartupScript() { } /** + * + * + *
    +     * Optional. Post-startup script to run after runtime is started.
    +     * 
    + * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for postStartupScript to set. @@ -764,6 +922,13 @@ public Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value) { private java.lang.Object postStartupScriptUrl_ = ""; /** + * + * + *
    +     * Optional. Post-startup script url to download. Example:
    +     * https://bucket/script.sh
    +     * 
    + * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScriptUrl. @@ -781,6 +946,13 @@ public java.lang.String getPostStartupScriptUrl() { } /** + * + * + *
    +     * Optional. Post-startup script url to download. Example:
    +     * https://bucket/script.sh
    +     * 
    + * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScriptUrl. @@ -798,6 +970,13 @@ public com.google.protobuf.ByteString getPostStartupScriptUrlBytes() { } /** + * + * + *
    +     * Optional. Post-startup script url to download. Example:
    +     * https://bucket/script.sh
    +     * 
    + * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The postStartupScriptUrl to set. @@ -814,6 +993,13 @@ public Builder setPostStartupScriptUrl(java.lang.String value) { } /** + * + * + *
    +     * Optional. Post-startup script url to download. Example:
    +     * https://bucket/script.sh
    +     * 
    + * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. @@ -826,6 +1012,13 @@ public Builder clearPostStartupScriptUrl() { } /** + * + * + *
    +     * Optional. Post-startup script url to download. Example:
    +     * https://bucket/script.sh
    +     * 
    + * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for postStartupScriptUrl to set. @@ -845,6 +1038,13 @@ public Builder setPostStartupScriptUrlBytes(com.google.protobuf.ByteString value private int postStartupScriptBehavior_ = 0; /** + * + * + *
    +     * Optional. Post-startup script behavior that defines download and execution
    +     * behavior.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -857,6 +1057,13 @@ public int getPostStartupScriptBehaviorValue() { } /** + * + * + *
    +     * Optional. Post-startup script behavior that defines download and execution
    +     * behavior.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -872,6 +1079,13 @@ public Builder setPostStartupScriptBehaviorValue(int value) { } /** + * + * + *
    +     * Optional. Post-startup script behavior that defines download and execution
    +     * behavior.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -891,6 +1105,13 @@ public Builder setPostStartupScriptBehaviorValue(int value) { } /** + * + * + *
    +     * Optional. Post-startup script behavior that defines download and execution
    +     * behavior.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -911,6 +1132,13 @@ public Builder setPostStartupScriptBehavior( } /** + * + * + *
    +     * Optional. Post-startup script behavior that defines download and execution
    +     * behavior.
    +     * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfigOrBuilder.java index 40365939e247..1bc06bcc099f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfigOrBuilder.java @@ -25,6 +25,12 @@ public interface PostStartupScriptConfigOrBuilder com.google.protobuf.MessageOrBuilder { /** + * + * + *
    +   * Optional. Post-startup script to run after runtime is started.
    +   * 
    + * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScript. @@ -32,6 +38,12 @@ public interface PostStartupScriptConfigOrBuilder java.lang.String getPostStartupScript(); /** + * + * + *
    +   * Optional. Post-startup script to run after runtime is started.
    +   * 
    + * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScript. @@ -39,6 +51,13 @@ public interface PostStartupScriptConfigOrBuilder com.google.protobuf.ByteString getPostStartupScriptBytes(); /** + * + * + *
    +   * Optional. Post-startup script url to download. Example:
    +   * https://bucket/script.sh
    +   * 
    + * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScriptUrl. @@ -46,6 +65,13 @@ public interface PostStartupScriptConfigOrBuilder java.lang.String getPostStartupScriptUrl(); /** + * + * + *
    +   * Optional. Post-startup script url to download. Example:
    +   * https://bucket/script.sh
    +   * 
    + * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScriptUrl. @@ -53,6 +79,13 @@ public interface PostStartupScriptConfigOrBuilder com.google.protobuf.ByteString getPostStartupScriptUrlBytes(); /** + * + * + *
    +   * Optional. Post-startup script behavior that defines download and execution
    +   * behavior.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -62,6 +95,13 @@ public interface PostStartupScriptConfigOrBuilder int getPostStartupScriptBehaviorValue(); /** + * + * + *
    +   * Optional. Post-startup script behavior that defines download and execution
    +   * behavior.
    +   * 
    + * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java index 91fa40213fc8..dc6f48621121 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java @@ -160,6 +160,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_GenerateVideoResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EmbedContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EmbedContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_Embedding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EmbedContentResponse_Embedding_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -169,295 +181,335 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n8google/cloud/aiplatform/v1beta1/predic" - + "tion_service.proto\022\037google.cloud.aiplatf" + "\n" + + "8google/cloud/aiplatform/v1beta1/prediction_service.proto\022\037google.cloud.aiplatf" + "orm.v1beta1\032\034google/api/annotations.prot" + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/httpbody" + ".proto\032\031google/api/resource.proto\032-googl" - + "e/cloud/aiplatform/v1beta1/content.proto" - + "\0321google/cloud/aiplatform/v1beta1/explan" - + "ation.proto\032*google/cloud/aiplatform/v1b" - + "eta1/tool.proto\032+google/cloud/aiplatform" - + "/v1beta1/types.proto\032\034google/protobuf/st" - + "ruct.proto\032\037google/protobuf/timestamp.pr" - + "oto\"\253\002\n\016PredictRequest\022<\n\010endpoint\030\001 \001(\t" - + "B*\340A\002\372A$\n\"aiplatform.googleapis.com/Endp" - + "oint\022.\n\tinstances\030\002 \003(\0132\026.google.protobu" - + "f.ValueB\003\340A\002\022*\n\nparameters\030\003 \001(\0132\026.googl" - + "e.protobuf.Value\022P\n\006labels\030\004 \003(\0132;.googl" - + "e.cloud.aiplatform.v1beta1.PredictReques" - + "t.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\"\200\002\n\017PredictRes" - + "ponse\022+\n\013predictions\030\001 \003(\0132\026.google.prot" - + "obuf.Value\022\031\n\021deployed_model_id\030\002 \001(\t\0226\n" - + "\005model\030\003 \001(\tB\'\340A\003\372A!\n\037aiplatform.googlea" - + "pis.com/Model\022\035\n\020model_version_id\030\005 \001(\tB" - + "\003\340A\003\022\037\n\022model_display_name\030\004 \001(\tB\003\340A\003\022-\n" - + "\010metadata\030\006 \001(\0132\026.google.protobuf.ValueB" - + "\003\340A\003\"z\n\021RawPredictRequest\022<\n\010endpoint\030\001 " - + "\001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/E" - + "ndpoint\022\'\n\thttp_body\030\002 \001(\0132\024.google.api." - + "HttpBody\"\200\001\n\027StreamRawPredictRequest\022<\n\010" - + "endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googl" - + "eapis.com/Endpoint\022\'\n\thttp_body\030\002 \001(\0132\024." - + "google.api.HttpBody\"\312\001\n\024DirectPredictReq" - + "uest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatfo" - + "rm.googleapis.com/Endpoint\0227\n\006inputs\030\002 \003" - + "(\0132\'.google.cloud.aiplatform.v1beta1.Ten" - + "sor\022;\n\nparameters\030\003 \001(\0132\'.google.cloud.a" - + "iplatform.v1beta1.Tensor\"\216\001\n\025DirectPredi" - + "ctResponse\0228\n\007outputs\030\001 \003(\0132\'.google.clo" - + "ud.aiplatform.v1beta1.Tensor\022;\n\nparamete" - + "rs\030\002 \001(\0132\'.google.cloud.aiplatform.v1bet" - + "a1.Tensor\"{\n\027DirectRawPredictRequest\022<\n\010" - + "endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googl" - + "eapis.com/Endpoint\022\023\n\013method_name\030\002 \001(\t\022" - + "\r\n\005input\030\003 \001(\014\"*\n\030DirectRawPredictRespon" - + "se\022\016\n\006output\030\001 \001(\014\"\332\001\n\032StreamDirectPredi" - + "ctRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aip" - + "latform.googleapis.com/Endpoint\022<\n\006input" - + "s\030\002 \003(\0132\'.google.cloud.aiplatform.v1beta" - + "1.TensorB\003\340A\001\022@\n\nparameters\030\003 \001(\0132\'.goog" - + "le.cloud.aiplatform.v1beta1.TensorB\003\340A\001\"" - + "\224\001\n\033StreamDirectPredictResponse\0228\n\007outpu" - + "ts\030\001 \003(\0132\'.google.cloud.aiplatform.v1bet" - + "a1.Tensor\022;\n\nparameters\030\002 \001(\0132\'.google.c" - + "loud.aiplatform.v1beta1.Tensor\"\213\001\n\035Strea" - + "mDirectRawPredictRequest\022<\n\010endpoint\030\001 \001" - + "(\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/En" - + "dpoint\022\030\n\013method_name\030\002 \001(\tB\003\340A\001\022\022\n\005inpu" - + "t\030\003 \001(\014B\003\340A\001\"0\n\036StreamDirectRawPredictRe" - + "sponse\022\016\n\006output\030\001 \001(\014\"\315\001\n\027StreamingPred" - + "ictRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"ai" - + "platform.googleapis.com/Endpoint\0227\n\006inpu" - + "ts\030\002 \003(\0132\'.google.cloud.aiplatform.v1bet" - + "a1.Tensor\022;\n\nparameters\030\003 \001(\0132\'.google.c" - + "loud.aiplatform.v1beta1.Tensor\"\221\001\n\030Strea" - + "mingPredictResponse\0228\n\007outputs\030\001 \003(\0132\'.g" - + "oogle.cloud.aiplatform.v1beta1.Tensor\022;\n" - + "\nparameters\030\002 \001(\0132\'.google.cloud.aiplatf" - + "orm.v1beta1.Tensor\"~\n\032StreamingRawPredic" - + "tRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aipl" - + "atform.googleapis.com/Endpoint\022\023\n\013method" - + "_name\030\002 \001(\t\022\r\n\005input\030\003 \001(\014\"-\n\033StreamingR" - + "awPredictResponse\022\016\n\006output\030\001 \001(\014\"\263\004\n\016Ex" - + "plainRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"" - + "aiplatform.googleapis.com/Endpoint\022.\n\tin" - + "stances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340" - + "A\002\022*\n\nparameters\030\004 \001(\0132\026.google.protobuf" - + ".Value\022[\n\031explanation_spec_override\030\005 \001(" - + "\01328.google.cloud.aiplatform.v1beta1.Expl" - + "anationSpecOverride\022\211\001\n$concurrent_expla" - + "nation_spec_override\030\006 \003(\0132V.google.clou" - + "d.aiplatform.v1beta1.ExplainRequest.Conc" - + "urrentExplanationSpecOverrideEntryB\003\340A\001\022" - + "\031\n\021deployed_model_id\030\003 \001(\t\032\202\001\n&Concurren" - + "tExplanationSpecOverrideEntry\022\013\n\003key\030\001 \001" - + "(\t\022G\n\005value\030\002 \001(\01328.google.cloud.aiplatf" - + "orm.v1beta1.ExplanationSpecOverride:\0028\001\"" - + "\361\003\n\017ExplainResponse\022B\n\014explanations\030\001 \003(" - + "\0132,.google.cloud.aiplatform.v1beta1.Expl" - + "anation\022m\n\027concurrent_explanations\030\004 \003(\013" - + "2L.google.cloud.aiplatform.v1beta1.Expla" - + "inResponse.ConcurrentExplanationsEntry\022\031" - + "\n\021deployed_model_id\030\002 \001(\t\022+\n\013predictions" - + "\030\003 \003(\0132\026.google.protobuf.Value\032[\n\025Concur" - + "rentExplanation\022B\n\014explanations\030\001 \003(\0132,." - + "google.cloud.aiplatform.v1beta1.Explanat" - + "ion\032\205\001\n\033ConcurrentExplanationsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022U\n\005value\030\002 \001(\0132F.google.cloud.a" - + "iplatform.v1beta1.ExplainResponse.Concur" - + "rentExplanation:\0028\001\"\347\003\n\022CountTokensReque" - + "st\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform" - + ".googleapis.com/Endpoint\022\022\n\005model\030\003 \001(\tB" - + "\003\340A\001\022.\n\tinstances\030\002 \003(\0132\026.google.protobu" - + "f.ValueB\003\340A\001\022?\n\010contents\030\004 \003(\0132(.google." - + "cloud.aiplatform.v1beta1.ContentB\003\340A\001\022N\n" - + "\022system_instruction\030\005 \001(\0132(.google.cloud" - + ".aiplatform.v1beta1.ContentB\003\340A\001H\000\210\001\001\0229\n" - + "\005tools\030\006 \003(\0132%.google.cloud.aiplatform.v" - + "1beta1.ToolB\003\340A\001\022V\n\021generation_config\030\007 " - + "\001(\01321.google.cloud.aiplatform.v1beta1.Ge" - + "nerationConfigB\003\340A\001H\001\210\001\001B\025\n\023_system_inst" - + "ructionB\024\n\022_generation_config\"\247\001\n\023CountT" - + "okensResponse\022\024\n\014total_tokens\030\001 \001(\005\022!\n\031t" - + "otal_billable_characters\030\002 \001(\005\022W\n\025prompt" - + "_tokens_details\030\003 \003(\01323.google.cloud.aip" - + "latform.v1beta1.ModalityTokenCountB\003\340A\003\"" - + "\235\006\n\026GenerateContentRequest\022\022\n\005model\030\005 \001(" - + "\tB\003\340A\002\022?\n\010contents\030\002 \003(\0132(.google.cloud." - + "aiplatform.v1beta1.ContentB\003\340A\002\022N\n\022syste" - + "m_instruction\030\010 \001(\0132(.google.cloud.aipla" - + "tform.v1beta1.ContentB\003\340A\001H\000\210\001\001\022G\n\016cache" - + "d_content\030\t \001(\tB/\340A\001\372A)\n\'aiplatform.goog" - + "leapis.com/CachedContent\0229\n\005tools\030\006 \003(\0132" - + "%.google.cloud.aiplatform.v1beta1.ToolB\003" - + "\340A\001\022E\n\013tool_config\030\007 \001(\0132+.google.cloud." - + "aiplatform.v1beta1.ToolConfigB\003\340A\001\022X\n\006la" - + "bels\030\n \003(\0132C.google.cloud.aiplatform.v1b" - + "eta1.GenerateContentRequest.LabelsEntryB" - + "\003\340A\001\022L\n\017safety_settings\030\003 \003(\0132..google.c" - + "loud.aiplatform.v1beta1.SafetySettingB\003\340" - + "A\001\022R\n\022model_armor_config\030\013 \001(\01321.google." - + "cloud.aiplatform.v1beta1.ModelArmorConfi" - + "gB\003\340A\001\022Q\n\021generation_config\030\004 \001(\01321.goog" - + "le.cloud.aiplatform.v1beta1.GenerationCo" - + "nfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001B\025\n\023_system_instruction\"" - + "\310\t\n\027GenerateContentResponse\022C\n\ncandidate" - + "s\030\002 \003(\0132*.google.cloud.aiplatform.v1beta" - + "1.CandidateB\003\340A\003\022\032\n\rmodel_version\030\013 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\014 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022\030\n\013response_id\030\r \001(\tB" - + "\003\340A\003\022e\n\017prompt_feedback\030\003 \001(\0132G.google.c" - + "loud.aiplatform.v1beta1.GenerateContentR" - + "esponse.PromptFeedbackB\003\340A\003\022^\n\016usage_met" - + "adata\030\004 \001(\0132F.google.cloud.aiplatform.v1" - + "beta1.GenerateContentResponse.UsageMetad" - + "ata\032\361\002\n\016PromptFeedback\022p\n\014block_reason\030\001" - + " \001(\0162U.google.cloud.aiplatform.v1beta1.G" - + "enerateContentResponse.PromptFeedback.Bl" - + "ockedReasonB\003\340A\003\022J\n\016safety_ratings\030\002 \003(\013" - + "2-.google.cloud.aiplatform.v1beta1.Safet" - + "yRatingB\003\340A\003\022!\n\024block_reason_message\030\003 \001" - + "(\tB\003\340A\003\"~\n\rBlockedReason\022\036\n\032BLOCKED_REAS" - + "ON_UNSPECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022" - + "\r\n\tBLOCKLIST\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\022\017" - + "\n\013MODEL_ARMOR\020\005\032\300\003\n\rUsageMetadata\022\032\n\022pro" - + "mpt_token_count\030\001 \001(\005\022\036\n\026candidates_toke" - + "n_count\030\002 \001(\005\022!\n\024thoughts_token_count\030\016 " - + "\001(\005B\003\340A\003\022\031\n\021total_token_count\030\003 \001(\005\022\'\n\032c" - + "ached_content_token_count\030\005 \001(\005B\003\340A\003\022W\n\025" - + "prompt_tokens_details\030\t \003(\01323.google.clo" - + "ud.aiplatform.v1beta1.ModalityTokenCount" - + "B\003\340A\003\022V\n\024cache_tokens_details\030\n \003(\01323.go" - + "ogle.cloud.aiplatform.v1beta1.ModalityTo" - + "kenCountB\003\340A\003\022[\n\031candidates_tokens_detai" - + "ls\030\013 \003(\01323.google.cloud.aiplatform.v1bet" - + "a1.ModalityTokenCountB\003\340A\003\"\204\001\n\026ChatCompl" - + "etionsRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n" - + "\"aiplatform.googleapis.com/Endpoint\022,\n\th" - + "ttp_body\030\002 \001(\0132\024.google.api.HttpBodyB\003\340A" - + "\001\"\203\001\n\032PredictLongRunningResponse\022Y\n\027gene" - + "rate_video_response\030\001 \001(\01326.google.cloud" - + ".aiplatform.v1beta1.GenerateVideoRespons" - + "eH\000B\n\n\010response\"\034\n\032PredictLongRunningMet" - + "adata\"\232\001\n\025GenerateVideoResponse\022\031\n\021gener" - + "ated_samples\030\001 \003(\t\022%\n\030rai_media_filtered" - + "_count\030\002 \001(\005H\000\210\001\001\022\"\n\032rai_media_filtered_" - + "reasons\030\003 \003(\tB\033\n\031_rai_media_filtered_cou" - + "nt2\301 \n\021PredictionService\022\250\002\n\007Predict\022/.g" - + "oogle.cloud.aiplatform.v1beta1.PredictRe" - + "quest\0320.google.cloud.aiplatform.v1beta1." - + "PredictResponse\"\271\001\332A\035endpoint,instances," - + "parameters\202\323\344\223\002\222\001\">/v1beta1/{endpoint=pr" - + "ojects/*/locations/*/endpoints/*}:predic" - + "t:\001*ZM\"H/v1beta1/{endpoint=projects/*/lo" - + "cations/*/publishers/*/models/*}:predict" - + ":\001*\022\215\002\n\nRawPredict\0222.google.cloud.aiplat" - + "form.v1beta1.RawPredictRequest\032\024.google." - + "api.HttpBody\"\264\001\332A\022endpoint,http_body\202\323\344\223" - + "\002\230\001\"A/v1beta1/{endpoint=projects/*/locat" - + "ions/*/endpoints/*}:rawPredict:\001*ZP\"K/v1" - + "beta1/{endpoint=projects/*/locations/*/p" - + "ublishers/*/models/*}:rawPredict:\001*\022\247\002\n\020" - + "StreamRawPredict\0228.google.cloud.aiplatfo" - + "rm.v1beta1.StreamRawPredictRequest\032\024.goo" - + "gle.api.HttpBody\"\300\001\332A\022endpoint,http_body" - + "\202\323\344\223\002\244\001\"G/v1beta1/{endpoint=projects/*/l" - + "ocations/*/endpoints/*}:streamRawPredict" - + ":\001*ZV\"Q/v1beta1/{endpoint=projects/*/loc" - + "ations/*/publishers/*/models/*}:streamRa" - + "wPredict:\001*0\001\022\317\001\n\rDirectPredict\0225.google" - + ".cloud.aiplatform.v1beta1.DirectPredictR" - + "equest\0326.google.cloud.aiplatform.v1beta1" - + ".DirectPredictResponse\"O\202\323\344\223\002I\"D/v1beta1" - + "/{endpoint=projects/*/locations/*/endpoi" - + "nts/*}:directPredict:\001*\022\333\001\n\020DirectRawPre" - + "dict\0228.google.cloud.aiplatform.v1beta1.D" - + "irectRawPredictRequest\0329.google.cloud.ai" - + "platform.v1beta1.DirectRawPredictRespons" - + "e\"R\202\323\344\223\002L\"G/v1beta1/{endpoint=projects/*" - + "/locations/*/endpoints/*}:directRawPredi" - + "ct:\001*\022\226\001\n\023StreamDirectPredict\022;.google.c" - + "loud.aiplatform.v1beta1.StreamDirectPred" - + "ictRequest\032<.google.cloud.aiplatform.v1b" - + "eta1.StreamDirectPredictResponse\"\000(\0010\001\022\237" - + "\001\n\026StreamDirectRawPredict\022>.google.cloud" - + ".aiplatform.v1beta1.StreamDirectRawPredi" - + "ctRequest\032?.google.cloud.aiplatform.v1be" - + "ta1.StreamDirectRawPredictResponse\"\000(\0010\001" - + "\022\215\001\n\020StreamingPredict\0228.google.cloud.aip" - + "latform.v1beta1.StreamingPredictRequest\032" - + "9.google.cloud.aiplatform.v1beta1.Stream" - + "ingPredictResponse\"\000(\0010\001\022\311\002\n\026ServerStrea" - + "mingPredict\0228.google.cloud.aiplatform.v1" - + "beta1.StreamingPredictRequest\0329.google.c" - + "loud.aiplatform.v1beta1.StreamingPredict" - + "Response\"\267\001\202\323\344\223\002\260\001\"M/v1beta1/{endpoint=p" - + "rojects/*/locations/*/endpoints/*}:serve" - + "rStreamingPredict:\001*Z\\\"W/v1beta1/{endpoi" - + "nt=projects/*/locations/*/publishers/*/m" - + "odels/*}:serverStreamingPredict:\001*0\001\022\226\001\n" - + "\023StreamingRawPredict\022;.google.cloud.aipl" - + "atform.v1beta1.StreamingRawPredictReques" - + "t\032<.google.cloud.aiplatform.v1beta1.Stre" - + "amingRawPredictResponse\"\000(\0010\001\022\351\001\n\007Explai" - + "n\022/.google.cloud.aiplatform.v1beta1.Expl" - + "ainRequest\0320.google.cloud.aiplatform.v1b" - + "eta1.ExplainResponse\"{\332A/endpoint,instan" - + "ces,parameters,deployed_model_id\202\323\344\223\002C\">" - + "/v1beta1/{endpoint=projects/*/locations/" - + "*/endpoints/*}:explain:\001*\022\237\003\n\013CountToken" - + "s\0223.google.cloud.aiplatform.v1beta1.Coun" - + "tTokensRequest\0324.google.cloud.aiplatform" - + ".v1beta1.CountTokensResponse\"\244\002\332A\022endpoi" - + "nt,instances\202\323\344\223\002\210\002\"B/v1beta1/{endpoint=" - + "projects/*/locations/*/endpoints/*}:coun" - + "tTokens:\001*ZQ\"L/v1beta1/{endpoint=project" - + "s/*/locations/*/publishers/*/models/*}:c" - + "ountTokens:\001*Z0\"+/v1beta1/{endpoint=endp" - + "oints/*}:countTokens:\001*Z:\"5/v1beta1/{end" - + "point=publishers/*/models/*}:countTokens" - + ":\001*\022\253\003\n\017GenerateContent\0227.google.cloud.a" - + "iplatform.v1beta1.GenerateContentRequest" - + "\0328.google.cloud.aiplatform.v1beta1.Gener" - + "ateContentResponse\"\244\002\332A\016model,contents\202\323" - + "\344\223\002\214\002\"C/v1beta1/{model=projects/*/locati" - + "ons/*/endpoints/*}:generateContent:\001*ZR\"" - + "M/v1beta1/{model=projects/*/locations/*/" - + "publishers/*/models/*}:generateContent:\001" - + "*Z1\",/v1beta1/{model=endpoints/*}:genera" - + "teContent:\001*Z;\"6/v1beta1/{model=publishe" - + "rs/*/models/*}:generateContent:\001*\022\313\003\n\025St" - + "reamGenerateContent\0227.google.cloud.aipla" - + "tform.v1beta1.GenerateContentRequest\0328.g" - + "oogle.cloud.aiplatform.v1beta1.GenerateC" - + "ontentResponse\"\274\002\332A\016model,contents\202\323\344\223\002\244" - + "\002\"I/v1beta1/{model=projects/*/locations/" - + "*/endpoints/*}:streamGenerateContent:\001*Z" - + "X\"S/v1beta1/{model=projects/*/locations/" - + "*/publishers/*/models/*}:streamGenerateC" - + "ontent:\001*Z7\"2/v1beta1/{model=endpoints/*" - + "}:streamGenerateContent:\001*ZA\"\n" + + "\007content\030\002 \001(\0132(" + + ".google.cloud.aiplatform.v1beta1.ContentH\001\210\001\001\022\027\n" + + "\005title\030\004 \001(\tB\003\340A\001H\002\210\001\001\022c\n" + + "\ttask_type\030\005 \001(\0162F.google.cloud.aiplatform.v1be" + + "ta1.EmbedContentRequest.EmbeddingTaskTypeB\003\340A\001H\003\210\001\001\022\'\n" + + "\025output_dimensionality\030\006 \001(\005B\003\340A\001H\004\210\001\001\022\037\n\r" + + "auto_truncate\030\007 \001(\010B\003\340A\001H\005\210\001\001\"\327\001\n" + + "\021EmbeddingTaskType\022\017\n" + + "\013UNSPECIFIED\020\000\022\023\n" + + "\017RETRIEVAL_QUERY\020\002\022\026\n" + + "\022RETRIEVAL_DOCUMENT\020\003\022\027\n" + + "\023SEMANTIC_SIMILARITY\020\004\022\022\n" + + "\016CLASSIFICATION\020\005\022\016\n\n" + + "CLUSTERING\020\006\022\026\n" + + "\022QUESTION_ANSWERING\020\007\022\025\n" + + "\021FACT_VERIFICATION\020\010\022\030\n" + + "\024CODE_RETRIEVAL_QUERY\020\tB\010\n" + + "\006_modelB\n\n" + + "\010_contentB\010\n" + + "\006_titleB\014\n\n" + + "_task_typeB\030\n" + + "\026_output_dimensionalityB\020\n" + + "\016_auto_truncate\"\342\001\n" + + "\024EmbedContentResponse\022R\n" + + "\tembedding\030\001 \001(\0132?." + + "google.cloud.aiplatform.v1beta1.EmbedContentResponse.Embedding\022F\n" + + "\016usage_metadata\030\002" + + " \001(\0132..google.cloud.aiplatform.v1beta1.UsageMetadata\022\021\n" + + "\ttruncated\030\004 \001(\010\032\033\n" + + "\tEmbedding\022\016\n" + + "\006values\030\001 \003(\0022\246\"\n" + + "\021PredictionService\022\250\002\n" + + "\007Predict\022/.google.cloud.aiplatform.v1beta1.PredictRequest\0320.google.cloud" + + ".aiplatform.v1beta1.PredictResponse\"\271\001\332A" + + "\035endpoint,instances,parameters\202\323\344\223\002\222\001\">/" + + "v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:predict:\001*ZM\"H/v1beta1/{en" + + "dpoint=projects/*/locations/*/publishers/*/models/*}:predict:\001*\022\215\002\n\n" + + "RawPredict\0222.google.cloud.aiplatform.v1beta1.RawPred" + + "ictRequest\032\024.google.api.HttpBody\"\264\001\332A\022en" + + "dpoint,http_body\202\323\344\223\002\230\001\"A/v1beta1/{endpo" + + "int=projects/*/locations/*/endpoints/*}:rawPredict:\001*ZP\"K/v1beta1/{endpoint=proj" + + "ects/*/locations/*/publishers/*/models/*}:rawPredict:\001*\022\247\002\n" + + "\020StreamRawPredict\0228.google.cloud.aiplatform.v1beta1.StreamRaw" + + "PredictRequest\032\024.google.api.HttpBody\"\300\001\332" + + "A\022endpoint,http_body\202\323\344\223\002\244\001\"G/v1beta1/{e" + + "ndpoint=projects/*/locations/*/endpoints/*}:streamRawPredict:\001*ZV\"Q/v1beta1/{end" + + "point=projects/*/locations/*/publishers/*/models/*}:streamRawPredict:\001*0\001\022\317\001\n\r" + + "DirectPredict\0225.google.cloud.aiplatform.v1" + + "beta1.DirectPredictRequest\0326.google.cloud.aiplatform.v1beta1.DirectPredictRespon" + + "se\"O\202\323\344\223\002I\"D/v1beta1/{endpoint=projects/" + + "*/locations/*/endpoints/*}:directPredict:\001*\022\333\001\n" + + "\020DirectRawPredict\0228.google.cloud.aiplatform.v1beta1.DirectRawPredictReque" + + "st\0329.google.cloud.aiplatform.v1beta1.Dir" + + "ectRawPredictResponse\"R\202\323\344\223\002L\"G/v1beta1/" + + "{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict:\001*\022\226\001\n" + + "\023StreamDirectPredict\022;.google.cloud.aiplatform.v1be" + + "ta1.StreamDirectPredictRequest\032<.google." + + "cloud.aiplatform.v1beta1.StreamDirectPredictResponse\"\000(\0010\001\022\237\001\n" + + "\026StreamDirectRawPredict\022>.google.cloud.aiplatform.v1beta1." + + "StreamDirectRawPredictRequest\032?.google.c" + + "loud.aiplatform.v1beta1.StreamDirectRawPredictResponse\"\000(\0010\001\022\215\001\n" + + "\020StreamingPredict\0228.google.cloud.aiplatform.v1beta1.Stre" + + "amingPredictRequest\0329.google.cloud.aipla" + + "tform.v1beta1.StreamingPredictResponse\"\000(\0010\001\022\311\002\n" + + "\026ServerStreamingPredict\0228.google.cloud.aiplatform.v1beta1.StreamingPredi" + + "ctRequest\0329.google.cloud.aiplatform.v1be" + + "ta1.StreamingPredictResponse\"\267\001\202\323\344\223\002\260\001\"M" + + "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:serverStreamingPredict:\001*" + + "Z\\\"W/v1beta1/{endpoint=projects/*/locati" + + "ons/*/publishers/*/models/*}:serverStreamingPredict:\001*0\001\022\226\001\n" + + "\023StreamingRawPredict\022;.google.cloud.aiplatform.v1beta1.Strea" + + "mingRawPredictRequest\032<.google.cloud.aip" + + "latform.v1beta1.StreamingRawPredictResponse\"\000(\0010\001\022\351\001\n" + + "\007Explain\022/.google.cloud.aiplatform.v1beta1.ExplainRequest\0320.google." + + "cloud.aiplatform.v1beta1.ExplainResponse\"{\332A/endpoint,instances,parameters,deplo" + + "yed_model_id\202\323\344\223\002C\">/v1beta1/{endpoint=p" + + "rojects/*/locations/*/endpoints/*}:explain:\001*\022\237\003\n" + + "\013CountTokens\0223.google.cloud.aiplatform.v1beta1.CountTokensRequest\0324.goo" + + "gle.cloud.aiplatform.v1beta1.CountTokens" + + "Response\"\244\002\332A\022endpoint,instances\202\323\344\223\002\210\002\"" + + "B/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens:\001*ZQ\"L/v1bet" + + "a1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens:\001*Z0\"+/v1" + + "beta1/{endpoint=endpoints/*}:countTokens" + + ":\001*Z:\"5/v1beta1/{endpoint=publishers/*/models/*}:countTokens:\001*\022\253\003\n" + + "\017GenerateContent\0227.google.cloud.aiplatform.v1beta1.Ge" + + "nerateContentRequest\0328.google.cloud.aipl" + + "atform.v1beta1.GenerateContentResponse\"\244" + + "\002\332A\016model,contents\202\323\344\223\002\214\002\"C/v1beta1/{mod" + + "el=projects/*/locations/*/endpoints/*}:generateContent:\001*ZR\"M/v1beta1/{model=pro" + + "jects/*/locations/*/publishers/*/models/*}:generateContent:\001*Z1\",/v1beta1/{model" + + "=endpoints/*}:generateContent:\001*Z;\"6/v1b" + + "eta1/{model=publishers/*/models/*}:generateContent:\001*\022\313\003\n" + + "\025StreamGenerateContent\0227.google.cloud.aiplatform.v1beta1.Genera" + + "teContentRequest\0328.google.cloud.aiplatfo" + + "rm.v1beta1.GenerateContentResponse\"\274\002\332A\016" + + "model,contents\202\323\344\223\002\244\002\"I/v1beta1/{model=p" + + "rojects/*/locations/*/endpoints/*}:streamGenerateContent:\001*ZX\"S/v1beta1/{model=p" + + "rojects/*/locations/*/publishers/*/models/*}:streamGenerateContent:\001*Z7\"2/v1beta" + + "1/{model=endpoints/*}:streamGenerateCont" + + "ent:\001*ZA\" + * Usage metadata about the content generation request and response. + * This message provides a detailed breakdown of token usage and other + * relevant metrics. + * + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UsageMetadata} + */ +public final class UsageMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UsageMetadata) + UsageMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UsageMetadata.newBuilder() to construct. + private UsageMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsageMetadata() { + promptTokensDetails_ = java.util.Collections.emptyList(); + cacheTokensDetails_ = java.util.Collections.emptyList(); + candidatesTokensDetails_ = java.util.Collections.emptyList(); + toolUsePromptTokensDetails_ = java.util.Collections.emptyList(); + trafficType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UsageMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_UsageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_UsageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UsageMetadata.class, + com.google.cloud.aiplatform.v1beta1.UsageMetadata.Builder.class); + } + + /** + * + * + *
    +   * The type of traffic that this request was processed with, indicating which
    +   * quota gets consumed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType} + */ + public enum TrafficType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified request traffic type.
    +     * 
    + * + * TRAFFIC_TYPE_UNSPECIFIED = 0; + */ + TRAFFIC_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Type for Pay-As-You-Go traffic.
    +     * 
    + * + * ON_DEMAND = 1; + */ + ON_DEMAND(1), + /** + * + * + *
    +     * Type for Provisioned Throughput traffic.
    +     * 
    + * + * PROVISIONED_THROUGHPUT = 2; + */ + PROVISIONED_THROUGHPUT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified request traffic type.
    +     * 
    + * + * TRAFFIC_TYPE_UNSPECIFIED = 0; + */ + public static final int TRAFFIC_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Type for Pay-As-You-Go traffic.
    +     * 
    + * + * ON_DEMAND = 1; + */ + public static final int ON_DEMAND_VALUE = 1; + + /** + * + * + *
    +     * Type for Provisioned Throughput traffic.
    +     * 
    + * + * PROVISIONED_THROUGHPUT = 2; + */ + public static final int PROVISIONED_THROUGHPUT_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 TrafficType 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 TrafficType forNumber(int value) { + switch (value) { + case 0: + return TRAFFIC_TYPE_UNSPECIFIED; + case 1: + return ON_DEMAND; + case 2: + return PROVISIONED_THROUGHPUT; + 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 TrafficType findValueByNumber(int number) { + return TrafficType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.UsageMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final TrafficType[] VALUES = values(); + + public static TrafficType 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 TrafficType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType) + } + + public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER = 1; + private int promptTokenCount_ = 0; + + /** + * + * + *
    +   * The total number of tokens in the prompt. This includes any text, images,
    +   * or other media provided in the request. When `cached_content` is set,
    +   * this also includes the number of tokens in the cached content.
    +   * 
    + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } + + public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER = 2; + private int candidatesTokenCount_ = 0; + + /** + * + * + *
    +   * The total number of tokens in the generated candidates.
    +   * 
    + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } + + public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 3; + private int totalTokenCount_ = 0; + + /** + * + * + *
    +   * The total number of tokens for the entire request. This is the sum of
    +   * `prompt_token_count`, `candidates_token_count`,
    +   * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +   * 
    + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + + public static final int TOOL_USE_PROMPT_TOKEN_COUNT_FIELD_NUMBER = 13; + private int toolUsePromptTokenCount_ = 0; + + /** + * + * + *
    +   * Output only. The number of tokens in the results from tool executions,
    +   * which are provided back to the model as input, if applicable.
    +   * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The toolUsePromptTokenCount. + */ + @java.lang.Override + public int getToolUsePromptTokenCount() { + return toolUsePromptTokenCount_; + } + + public static final int THOUGHTS_TOKEN_COUNT_FIELD_NUMBER = 14; + private int thoughtsTokenCount_ = 0; + + /** + * + * + *
    +   * Output only. The number of tokens that were part of the model's generated
    +   * "thoughts" output, if applicable.
    +   * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thoughtsTokenCount. + */ + @java.lang.Override + public int getThoughtsTokenCount() { + return thoughtsTokenCount_; + } + + public static final int CACHED_CONTENT_TOKEN_COUNT_FIELD_NUMBER = 5; + private int cachedContentTokenCount_ = 0; + + /** + * + * + *
    +   * Output only. The number of tokens in the cached content that was used for
    +   * this request.
    +   * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cachedContentTokenCount. + */ + @java.lang.Override + public int getCachedContentTokenCount() { + return cachedContentTokenCount_; + } + + public static final int PROMPT_TOKENS_DETAILS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + promptTokensDetails_; + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPromptTokensDetailsList() { + return promptTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPromptTokensDetailsOrBuilderList() { + return promptTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPromptTokensDetailsCount() { + return promptTokensDetails_.size(); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getPromptTokensDetails(int index) { + return promptTokensDetails_.get(index); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + return promptTokensDetails_.get(index); + } + + public static final int CACHE_TOKENS_DETAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + cacheTokensDetails_; + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCacheTokensDetailsList() { + return cacheTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCacheTokensDetailsOrBuilderList() { + return cacheTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCacheTokensDetailsCount() { + return cacheTokensDetails_.size(); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCacheTokensDetails(int index) { + return cacheTokensDetails_.get(index); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCacheTokensDetailsOrBuilder(int index) { + return cacheTokensDetails_.get(index); + } + + public static final int CANDIDATES_TOKENS_DETAILS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List + candidatesTokensDetails_; + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCandidatesTokensDetailsList() { + return candidatesTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCandidatesTokensDetailsOrBuilderList() { + return candidatesTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCandidatesTokensDetailsCount() { + return candidatesTokensDetails_.size(); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCandidatesTokensDetails( + int index) { + return candidatesTokensDetails_.get(index); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index) { + return candidatesTokensDetails_.get(index); + } + + public static final int TOOL_USE_PROMPT_TOKENS_DETAILS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List + toolUsePromptTokensDetails_; + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getToolUsePromptTokensDetailsList() { + return toolUsePromptTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getToolUsePromptTokensDetailsOrBuilderList() { + return toolUsePromptTokensDetails_; + } + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getToolUsePromptTokensDetailsCount() { + return toolUsePromptTokensDetails_.size(); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getToolUsePromptTokensDetails( + int index) { + return toolUsePromptTokensDetails_.get(index); + } + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getToolUsePromptTokensDetailsOrBuilder(int index) { + return toolUsePromptTokensDetails_.get(index); + } + + public static final int TRAFFIC_TYPE_FIELD_NUMBER = 8; + private int trafficType_ = 0; + + /** + * + * + *
    +   * Output only. The traffic type for this request.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for trafficType. + */ + @java.lang.Override + public int getTrafficTypeValue() { + return trafficType_; + } + + /** + * + * + *
    +   * Output only. The traffic type for this request.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trafficType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType getTrafficType() { + com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType result = + com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType.forNumber(trafficType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType.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 (promptTokenCount_ != 0) { + output.writeInt32(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + output.writeInt32(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + output.writeInt32(3, totalTokenCount_); + } + if (cachedContentTokenCount_ != 0) { + output.writeInt32(5, cachedContentTokenCount_); + } + if (trafficType_ + != com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType.TRAFFIC_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, trafficType_); + } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + output.writeMessage(9, promptTokensDetails_.get(i)); + } + for (int i = 0; i < cacheTokensDetails_.size(); i++) { + output.writeMessage(10, cacheTokensDetails_.get(i)); + } + for (int i = 0; i < candidatesTokensDetails_.size(); i++) { + output.writeMessage(11, candidatesTokensDetails_.get(i)); + } + for (int i = 0; i < toolUsePromptTokensDetails_.size(); i++) { + output.writeMessage(12, toolUsePromptTokensDetails_.get(i)); + } + if (toolUsePromptTokenCount_ != 0) { + output.writeInt32(13, toolUsePromptTokenCount_); + } + if (thoughtsTokenCount_ != 0) { + output.writeInt32(14, thoughtsTokenCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (promptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); + } + if (cachedContentTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, cachedContentTokenCount_); + } + if (trafficType_ + != com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType.TRAFFIC_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, trafficType_); + } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, promptTokensDetails_.get(i)); + } + for (int i = 0; i < cacheTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, cacheTokensDetails_.get(i)); + } + for (int i = 0; i < candidatesTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, candidatesTokensDetails_.get(i)); + } + for (int i = 0; i < toolUsePromptTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, toolUsePromptTokensDetails_.get(i)); + } + if (toolUsePromptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, toolUsePromptTokenCount_); + } + if (thoughtsTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, thoughtsTokenCount_); + } + 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.aiplatform.v1beta1.UsageMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UsageMetadata other = + (com.google.cloud.aiplatform.v1beta1.UsageMetadata) obj; + + if (getPromptTokenCount() != other.getPromptTokenCount()) return false; + if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; + if (getTotalTokenCount() != other.getTotalTokenCount()) return false; + if (getToolUsePromptTokenCount() != other.getToolUsePromptTokenCount()) return false; + if (getThoughtsTokenCount() != other.getThoughtsTokenCount()) return false; + if (getCachedContentTokenCount() != other.getCachedContentTokenCount()) return false; + if (!getPromptTokensDetailsList().equals(other.getPromptTokensDetailsList())) return false; + if (!getCacheTokensDetailsList().equals(other.getCacheTokensDetailsList())) return false; + if (!getCandidatesTokensDetailsList().equals(other.getCandidatesTokensDetailsList())) + return false; + if (!getToolUsePromptTokensDetailsList().equals(other.getToolUsePromptTokensDetailsList())) + return false; + if (trafficType_ != other.trafficType_) 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) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokenCount(); + hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokenCount(); + hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokenCount(); + hash = (37 * hash) + TOOL_USE_PROMPT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getToolUsePromptTokenCount(); + hash = (37 * hash) + THOUGHTS_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getThoughtsTokenCount(); + hash = (37 * hash) + CACHED_CONTENT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCachedContentTokenCount(); + if (getPromptTokensDetailsCount() > 0) { + hash = (37 * hash) + PROMPT_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokensDetailsList().hashCode(); + } + if (getCacheTokensDetailsCount() > 0) { + hash = (37 * hash) + CACHE_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCacheTokensDetailsList().hashCode(); + } + if (getCandidatesTokensDetailsCount() > 0) { + hash = (37 * hash) + CANDIDATES_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokensDetailsList().hashCode(); + } + if (getToolUsePromptTokensDetailsCount() > 0) { + hash = (37 * hash) + TOOL_USE_PROMPT_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getToolUsePromptTokensDetailsList().hashCode(); + } + hash = (37 * hash) + TRAFFIC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + trafficType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata 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.aiplatform.v1beta1.UsageMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata 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.aiplatform.v1beta1.UsageMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.UsageMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Usage metadata about the content generation request and response.
    +   * This message provides a detailed breakdown of token usage and other
    +   * relevant metrics.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UsageMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UsageMetadata) + com.google.cloud.aiplatform.v1beta1.UsageMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_UsageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_UsageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UsageMetadata.class, + com.google.cloud.aiplatform.v1beta1.UsageMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UsageMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokenCount_ = 0; + candidatesTokenCount_ = 0; + totalTokenCount_ = 0; + toolUsePromptTokenCount_ = 0; + thoughtsTokenCount_ = 0; + cachedContentTokenCount_ = 0; + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + } else { + promptTokensDetails_ = null; + promptTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetails_ = java.util.Collections.emptyList(); + } else { + cacheTokensDetails_ = null; + cacheTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetails_ = java.util.Collections.emptyList(); + } else { + candidatesTokensDetails_ = null; + candidatesTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + if (toolUsePromptTokensDetailsBuilder_ == null) { + toolUsePromptTokensDetails_ = java.util.Collections.emptyList(); + } else { + toolUsePromptTokensDetails_ = null; + toolUsePromptTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + trafficType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.UsageMetadataProto + .internal_static_google_cloud_aiplatform_v1beta1_UsageMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UsageMetadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UsageMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UsageMetadata build() { + com.google.cloud.aiplatform.v1beta1.UsageMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UsageMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.UsageMetadata result = + new com.google.cloud.aiplatform.v1beta1.UsageMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.UsageMetadata result) { + if (promptTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + promptTokensDetails_ = java.util.Collections.unmodifiableList(promptTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.promptTokensDetails_ = promptTokensDetails_; + } else { + result.promptTokensDetails_ = promptTokensDetailsBuilder_.build(); + } + if (cacheTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + cacheTokensDetails_ = java.util.Collections.unmodifiableList(cacheTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.cacheTokensDetails_ = cacheTokensDetails_; + } else { + result.cacheTokensDetails_ = cacheTokensDetailsBuilder_.build(); + } + if (candidatesTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + candidatesTokensDetails_ = + java.util.Collections.unmodifiableList(candidatesTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.candidatesTokensDetails_ = candidatesTokensDetails_; + } else { + result.candidatesTokensDetails_ = candidatesTokensDetailsBuilder_.build(); + } + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + toolUsePromptTokensDetails_ = + java.util.Collections.unmodifiableList(toolUsePromptTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.toolUsePromptTokensDetails_ = toolUsePromptTokensDetails_; + } else { + result.toolUsePromptTokensDetails_ = toolUsePromptTokensDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UsageMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokenCount_ = promptTokenCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.candidatesTokenCount_ = candidatesTokenCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokenCount_ = totalTokenCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.toolUsePromptTokenCount_ = toolUsePromptTokenCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.thoughtsTokenCount_ = thoughtsTokenCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.cachedContentTokenCount_ = cachedContentTokenCount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.trafficType_ = trafficType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.UsageMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UsageMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UsageMetadata other) { + if (other == com.google.cloud.aiplatform.v1beta1.UsageMetadata.getDefaultInstance()) + return this; + if (other.getPromptTokenCount() != 0) { + setPromptTokenCount(other.getPromptTokenCount()); + } + if (other.getCandidatesTokenCount() != 0) { + setCandidatesTokenCount(other.getCandidatesTokenCount()); + } + if (other.getTotalTokenCount() != 0) { + setTotalTokenCount(other.getTotalTokenCount()); + } + if (other.getToolUsePromptTokenCount() != 0) { + setToolUsePromptTokenCount(other.getToolUsePromptTokenCount()); + } + if (other.getThoughtsTokenCount() != 0) { + setThoughtsTokenCount(other.getThoughtsTokenCount()); + } + if (other.getCachedContentTokenCount() != 0) { + setCachedContentTokenCount(other.getCachedContentTokenCount()); + } + if (promptTokensDetailsBuilder_ == null) { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetails_.isEmpty()) { + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.addAll(other.promptTokensDetails_); + } + onChanged(); + } + } else { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetailsBuilder_.isEmpty()) { + promptTokensDetailsBuilder_.dispose(); + promptTokensDetailsBuilder_ = null; + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + promptTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPromptTokensDetailsFieldBuilder() + : null; + } else { + promptTokensDetailsBuilder_.addAllMessages(other.promptTokensDetails_); + } + } + } + if (cacheTokensDetailsBuilder_ == null) { + if (!other.cacheTokensDetails_.isEmpty()) { + if (cacheTokensDetails_.isEmpty()) { + cacheTokensDetails_ = other.cacheTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.addAll(other.cacheTokensDetails_); + } + onChanged(); + } + } else { + if (!other.cacheTokensDetails_.isEmpty()) { + if (cacheTokensDetailsBuilder_.isEmpty()) { + cacheTokensDetailsBuilder_.dispose(); + cacheTokensDetailsBuilder_ = null; + cacheTokensDetails_ = other.cacheTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000080); + cacheTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCacheTokensDetailsFieldBuilder() + : null; + } else { + cacheTokensDetailsBuilder_.addAllMessages(other.cacheTokensDetails_); + } + } + } + if (candidatesTokensDetailsBuilder_ == null) { + if (!other.candidatesTokensDetails_.isEmpty()) { + if (candidatesTokensDetails_.isEmpty()) { + candidatesTokensDetails_ = other.candidatesTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.addAll(other.candidatesTokensDetails_); + } + onChanged(); + } + } else { + if (!other.candidatesTokensDetails_.isEmpty()) { + if (candidatesTokensDetailsBuilder_.isEmpty()) { + candidatesTokensDetailsBuilder_.dispose(); + candidatesTokensDetailsBuilder_ = null; + candidatesTokensDetails_ = other.candidatesTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000100); + candidatesTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCandidatesTokensDetailsFieldBuilder() + : null; + } else { + candidatesTokensDetailsBuilder_.addAllMessages(other.candidatesTokensDetails_); + } + } + } + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (!other.toolUsePromptTokensDetails_.isEmpty()) { + if (toolUsePromptTokensDetails_.isEmpty()) { + toolUsePromptTokensDetails_ = other.toolUsePromptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.addAll(other.toolUsePromptTokensDetails_); + } + onChanged(); + } + } else { + if (!other.toolUsePromptTokensDetails_.isEmpty()) { + if (toolUsePromptTokensDetailsBuilder_.isEmpty()) { + toolUsePromptTokensDetailsBuilder_.dispose(); + toolUsePromptTokensDetailsBuilder_ = null; + toolUsePromptTokensDetails_ = other.toolUsePromptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000200); + toolUsePromptTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getToolUsePromptTokensDetailsFieldBuilder() + : null; + } else { + toolUsePromptTokensDetailsBuilder_.addAllMessages(other.toolUsePromptTokensDetails_); + } + } + } + if (other.trafficType_ != 0) { + setTrafficTypeValue(other.getTrafficTypeValue()); + } + 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: + { + promptTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + candidatesTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + totalTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: + { + cachedContentTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 64: + { + trafficType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 64 + case 74: + { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.parser(), + extensionRegistry); + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(m); + } else { + promptTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.parser(), + extensionRegistry); + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(m); + } else { + cacheTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.parser(), + extensionRegistry); + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(m); + } else { + candidatesTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.parser(), + extensionRegistry); + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(m); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 98 + case 104: + { + toolUsePromptTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 104 + case 112: + { + thoughtsTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 112 + 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 promptTokenCount_; + + /** + * + * + *
    +     * The total number of tokens in the prompt. This includes any text, images,
    +     * or other media provided in the request. When `cached_content` is set,
    +     * this also includes the number of tokens in the cached content.
    +     * 
    + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } + + /** + * + * + *
    +     * The total number of tokens in the prompt. This includes any text, images,
    +     * or other media provided in the request. When `cached_content` is set,
    +     * this also includes the number of tokens in the cached content.
    +     * 
    + * + * int32 prompt_token_count = 1; + * + * @param value The promptTokenCount to set. + * @return This builder for chaining. + */ + public Builder setPromptTokenCount(int value) { + + promptTokenCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The total number of tokens in the prompt. This includes any text, images,
    +     * or other media provided in the request. When `cached_content` is set,
    +     * this also includes the number of tokens in the cached content.
    +     * 
    + * + * int32 prompt_token_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokenCount_ = 0; + onChanged(); + return this; + } + + private int candidatesTokenCount_; + + /** + * + * + *
    +     * The total number of tokens in the generated candidates.
    +     * 
    + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } + + /** + * + * + *
    +     * The total number of tokens in the generated candidates.
    +     * 
    + * + * int32 candidates_token_count = 2; + * + * @param value The candidatesTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCandidatesTokenCount(int value) { + + candidatesTokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The total number of tokens in the generated candidates.
    +     * 
    + * + * int32 candidates_token_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCandidatesTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + candidatesTokenCount_ = 0; + onChanged(); + return this; + } + + private int totalTokenCount_; + + /** + * + * + *
    +     * The total number of tokens for the entire request. This is the sum of
    +     * `prompt_token_count`, `candidates_token_count`,
    +     * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +     * 
    + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + + /** + * + * + *
    +     * The total number of tokens for the entire request. This is the sum of
    +     * `prompt_token_count`, `candidates_token_count`,
    +     * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +     * 
    + * + * int32 total_token_count = 3; + * + * @param value The totalTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalTokenCount(int value) { + + totalTokenCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The total number of tokens for the entire request. This is the sum of
    +     * `prompt_token_count`, `candidates_token_count`,
    +     * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +     * 
    + * + * int32 total_token_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalTokenCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokenCount_ = 0; + onChanged(); + return this; + } + + private int toolUsePromptTokenCount_; + + /** + * + * + *
    +     * Output only. The number of tokens in the results from tool executions,
    +     * which are provided back to the model as input, if applicable.
    +     * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The toolUsePromptTokenCount. + */ + @java.lang.Override + public int getToolUsePromptTokenCount() { + return toolUsePromptTokenCount_; + } + + /** + * + * + *
    +     * Output only. The number of tokens in the results from tool executions,
    +     * which are provided back to the model as input, if applicable.
    +     * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The toolUsePromptTokenCount to set. + * @return This builder for chaining. + */ + public Builder setToolUsePromptTokenCount(int value) { + + toolUsePromptTokenCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The number of tokens in the results from tool executions,
    +     * which are provided back to the model as input, if applicable.
    +     * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearToolUsePromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000008); + toolUsePromptTokenCount_ = 0; + onChanged(); + return this; + } + + private int thoughtsTokenCount_; + + /** + * + * + *
    +     * Output only. The number of tokens that were part of the model's generated
    +     * "thoughts" output, if applicable.
    +     * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thoughtsTokenCount. + */ + @java.lang.Override + public int getThoughtsTokenCount() { + return thoughtsTokenCount_; + } + + /** + * + * + *
    +     * Output only. The number of tokens that were part of the model's generated
    +     * "thoughts" output, if applicable.
    +     * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The thoughtsTokenCount to set. + * @return This builder for chaining. + */ + public Builder setThoughtsTokenCount(int value) { + + thoughtsTokenCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The number of tokens that were part of the model's generated
    +     * "thoughts" output, if applicable.
    +     * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearThoughtsTokenCount() { + bitField0_ = (bitField0_ & ~0x00000010); + thoughtsTokenCount_ = 0; + onChanged(); + return this; + } + + private int cachedContentTokenCount_; + + /** + * + * + *
    +     * Output only. The number of tokens in the cached content that was used for
    +     * this request.
    +     * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cachedContentTokenCount. + */ + @java.lang.Override + public int getCachedContentTokenCount() { + return cachedContentTokenCount_; + } + + /** + * + * + *
    +     * Output only. The number of tokens in the cached content that was used for
    +     * this request.
    +     * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The cachedContentTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCachedContentTokenCount(int value) { + + cachedContentTokenCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The number of tokens in the cached content that was used for
    +     * this request.
    +     * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCachedContentTokenCount() { + bitField0_ = (bitField0_ & ~0x00000020); + cachedContentTokenCount_ = 0; + onChanged(); + return this; + } + + private java.util.List + promptTokensDetails_ = java.util.Collections.emptyList(); + + private void ensurePromptTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + promptTokensDetails_ = + new java.util.ArrayList( + promptTokensDetails_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + promptTokensDetailsBuilder_; + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsList() { + if (promptTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } else { + return promptTokensDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPromptTokensDetailsCount() { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.size(); + } else { + return promptTokensDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getPromptTokensDetails( + int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPromptTokensDetails( + java.lang.Iterable + values) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promptTokensDetails_); + onChanged(); + } else { + promptTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPromptTokensDetails() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + promptTokensDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePromptTokensDetails(int index) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.remove(index); + onChanged(); + } else { + promptTokensDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + getPromptTokensDetailsBuilder(int index) { + return getPromptTokensDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsOrBuilderList() { + if (promptTokensDetailsBuilder_ != null) { + return promptTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder() { + return getPromptTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder(int index) { + return getPromptTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the prompt.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsBuilderList() { + return getPromptTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getPromptTokensDetailsFieldBuilder() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder>( + promptTokensDetails_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + promptTokensDetails_ = null; + } + return promptTokensDetailsBuilder_; + } + + private java.util.List + cacheTokensDetails_ = java.util.Collections.emptyList(); + + private void ensureCacheTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + cacheTokensDetails_ = + new java.util.ArrayList( + cacheTokensDetails_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + cacheTokensDetailsBuilder_; + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsList() { + if (cacheTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cacheTokensDetails_); + } else { + return cacheTokensDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCacheTokensDetailsCount() { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.size(); + } else { + return cacheTokensDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCacheTokensDetails(int index) { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.get(index); + } else { + return cacheTokensDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.set(index, value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(index, value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCacheTokensDetails( + java.lang.Iterable + values) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cacheTokensDetails_); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCacheTokensDetails() { + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + cacheTokensDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCacheTokensDetails(int index) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.remove(index); + onChanged(); + } else { + cacheTokensDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + getCacheTokensDetailsBuilder(int index) { + return getCacheTokensDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCacheTokensDetailsOrBuilder(int index) { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.get(index); + } else { + return cacheTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsOrBuilderList() { + if (cacheTokensDetailsBuilder_ != null) { + return cacheTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cacheTokensDetails_); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addCacheTokensDetailsBuilder() { + return getCacheTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addCacheTokensDetailsBuilder(int index) { + return getCacheTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the cached content.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsBuilderList() { + return getCacheTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getCacheTokensDetailsFieldBuilder() { + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder>( + cacheTokensDetails_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + cacheTokensDetails_ = null; + } + return cacheTokensDetailsBuilder_; + } + + private java.util.List + candidatesTokensDetails_ = java.util.Collections.emptyList(); + + private void ensureCandidatesTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + candidatesTokensDetails_ = + new java.util.ArrayList( + candidatesTokensDetails_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + candidatesTokensDetailsBuilder_; + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsList() { + if (candidatesTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(candidatesTokensDetails_); + } else { + return candidatesTokensDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCandidatesTokensDetailsCount() { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.size(); + } else { + return candidatesTokensDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCandidatesTokensDetails( + int index) { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.get(index); + } else { + return candidatesTokensDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.set(index, value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(index, value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCandidatesTokensDetails( + java.lang.Iterable + values) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, candidatesTokensDetails_); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCandidatesTokensDetails() { + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCandidatesTokensDetails(int index) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.remove(index); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + getCandidatesTokensDetailsBuilder(int index) { + return getCandidatesTokensDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index) { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.get(index); + } else { + return candidatesTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsOrBuilderList() { + if (candidatesTokensDetailsBuilder_ != null) { + return candidatesTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(candidatesTokensDetails_); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addCandidatesTokensDetailsBuilder() { + return getCandidatesTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addCandidatesTokensDetailsBuilder(int index) { + return getCandidatesTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown of the token count for each modality in
    +     * the generated candidates.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsBuilderList() { + return getCandidatesTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getCandidatesTokensDetailsFieldBuilder() { + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder>( + candidatesTokensDetails_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + candidatesTokensDetails_ = null; + } + return candidatesTokensDetailsBuilder_; + } + + private java.util.List + toolUsePromptTokensDetails_ = java.util.Collections.emptyList(); + + private void ensureToolUsePromptTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + toolUsePromptTokensDetails_ = + new java.util.ArrayList( + toolUsePromptTokensDetails_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + toolUsePromptTokensDetailsBuilder_; + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToolUsePromptTokensDetailsList() { + if (toolUsePromptTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolUsePromptTokensDetails_); + } else { + return toolUsePromptTokensDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getToolUsePromptTokensDetailsCount() { + if (toolUsePromptTokensDetailsBuilder_ == null) { + return toolUsePromptTokensDetails_.size(); + } else { + return toolUsePromptTokensDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getToolUsePromptTokensDetails( + int index) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + return toolUsePromptTokensDetails_.get(index); + } else { + return toolUsePromptTokensDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setToolUsePromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.set(index, value); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setToolUsePromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToolUsePromptTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(value); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToolUsePromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(index, value); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToolUsePromptTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToolUsePromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllToolUsePromptTokensDetails( + java.lang.Iterable + values) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolUsePromptTokensDetails_); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearToolUsePromptTokensDetails() { + if (toolUsePromptTokensDetailsBuilder_ == null) { + toolUsePromptTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeToolUsePromptTokensDetails(int index) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + ensureToolUsePromptTokensDetailsIsMutable(); + toolUsePromptTokensDetails_.remove(index); + onChanged(); + } else { + toolUsePromptTokensDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + getToolUsePromptTokensDetailsBuilder(int index) { + return getToolUsePromptTokensDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getToolUsePromptTokensDetailsOrBuilder(int index) { + if (toolUsePromptTokensDetailsBuilder_ == null) { + return toolUsePromptTokensDetails_.get(index); + } else { + return toolUsePromptTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToolUsePromptTokensDetailsOrBuilderList() { + if (toolUsePromptTokensDetailsBuilder_ != null) { + return toolUsePromptTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolUsePromptTokensDetails_); + } + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addToolUsePromptTokensDetailsBuilder() { + return getToolUsePromptTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addToolUsePromptTokensDetailsBuilder(int index) { + return getToolUsePromptTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A detailed breakdown by modality of the token counts from the
    +     * results of tool executions, which are provided back to the model as input.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToolUsePromptTokensDetailsBuilderList() { + return getToolUsePromptTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getToolUsePromptTokensDetailsFieldBuilder() { + if (toolUsePromptTokensDetailsBuilder_ == null) { + toolUsePromptTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder>( + toolUsePromptTokensDetails_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + toolUsePromptTokensDetails_ = null; + } + return toolUsePromptTokensDetailsBuilder_; + } + + private int trafficType_ = 0; + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for trafficType. + */ + @java.lang.Override + public int getTrafficTypeValue() { + return trafficType_; + } + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for trafficType to set. + * @return This builder for chaining. + */ + public Builder setTrafficTypeValue(int value) { + trafficType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trafficType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType getTrafficType() { + com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType result = + com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType.forNumber(trafficType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The trafficType to set. + * @return This builder for chaining. + */ + public Builder setTrafficType( + com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + trafficType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The traffic type for this request.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTrafficType() { + bitField0_ = (bitField0_ & ~0x00000400); + trafficType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UsageMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UsageMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UsageMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UsageMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UsageMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsageMetadata 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.aiplatform.v1beta1.UsageMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UsageMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UsageMetadataOrBuilder.java new file mode 100644 index 000000000000..10f1c95bb554 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UsageMetadataOrBuilder.java @@ -0,0 +1,434 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1beta1/usage_metadata.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface UsageMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UsageMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The total number of tokens in the prompt. This includes any text, images,
    +   * or other media provided in the request. When `cached_content` is set,
    +   * this also includes the number of tokens in the cached content.
    +   * 
    + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + int getPromptTokenCount(); + + /** + * + * + *
    +   * The total number of tokens in the generated candidates.
    +   * 
    + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + int getCandidatesTokenCount(); + + /** + * + * + *
    +   * The total number of tokens for the entire request. This is the sum of
    +   * `prompt_token_count`, `candidates_token_count`,
    +   * `tool_use_prompt_token_count`, and `thoughts_token_count`.
    +   * 
    + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + int getTotalTokenCount(); + + /** + * + * + *
    +   * Output only. The number of tokens in the results from tool executions,
    +   * which are provided back to the model as input, if applicable.
    +   * 
    + * + * int32 tool_use_prompt_token_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The toolUsePromptTokenCount. + */ + int getToolUsePromptTokenCount(); + + /** + * + * + *
    +   * Output only. The number of tokens that were part of the model's generated
    +   * "thoughts" output, if applicable.
    +   * 
    + * + * int32 thoughts_token_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The thoughtsTokenCount. + */ + int getThoughtsTokenCount(); + + /** + * + * + *
    +   * Output only. The number of tokens in the cached content that was used for
    +   * this request.
    +   * 
    + * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cachedContentTokenCount. + */ + int getCachedContentTokenCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPromptTokensDetailsList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getPromptTokensDetails(int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPromptTokensDetailsCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPromptTokensDetailsOrBuilderList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the prompt.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder( + int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCacheTokensDetailsList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCacheTokensDetails(int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCacheTokensDetailsCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCacheTokensDetailsOrBuilderList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the cached content.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder getCacheTokensDetailsOrBuilder( + int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCandidatesTokensDetailsList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCandidatesTokensDetails(int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCandidatesTokensDetailsCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCandidatesTokensDetailsOrBuilderList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown of the token count for each modality in
    +   * the generated candidates.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getToolUsePromptTokensDetailsList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getToolUsePromptTokensDetails(int index); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getToolUsePromptTokensDetailsCount(); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getToolUsePromptTokensDetailsOrBuilderList(); + + /** + * + * + *
    +   * Output only. A detailed breakdown by modality of the token counts from the
    +   * results of tool executions, which are provided back to the model as input.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount tool_use_prompt_tokens_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getToolUsePromptTokensDetailsOrBuilder(int index); + + /** + * + * + *
    +   * Output only. The traffic type for this request.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for trafficType. + */ + int getTrafficTypeValue(); + + /** + * + * + *
    +   * Output only. The traffic type for this request.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType traffic_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trafficType. + */ + com.google.cloud.aiplatform.v1beta1.UsageMetadata.TrafficType getTrafficType(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UsageMetadataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UsageMetadataProto.java new file mode 100644 index 000000000000..35318fb4edd0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UsageMetadataProto.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 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! +// source: google/cloud/aiplatform/v1beta1/usage_metadata.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public final class UsageMetadataProto { + private UsageMetadataProto() {} + + 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_aiplatform_v1beta1_UsageMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UsageMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/aiplatform/v1beta1/usage_" + + "metadata.proto\022\037google.cloud.aiplatform." + + "v1beta1\032\037google/api/field_behavior.proto" + + "\032-google/cloud/aiplatform/v1beta1/conten" + + "t.proto\"\373\005\n\rUsageMetadata\022\032\n\022prompt_toke" + + "n_count\030\001 \001(\005\022\036\n\026candidates_token_count\030" + + "\002 \001(\005\022\031\n\021total_token_count\030\003 \001(\005\022(\n\033tool" + + "_use_prompt_token_count\030\r \001(\005B\003\340A\003\022!\n\024th" + + "oughts_token_count\030\016 \001(\005B\003\340A\003\022\'\n\032cached_" + + "content_token_count\030\005 \001(\005B\003\340A\003\022W\n\025prompt" + + "_tokens_details\030\t \003(\01323.google.cloud.aip" + + "latform.v1beta1.ModalityTokenCountB\003\340A\003\022" + + "V\n\024cache_tokens_details\030\n \003(\01323.google.c" + + "loud.aiplatform.v1beta1.ModalityTokenCou" + + "ntB\003\340A\003\022[\n\031candidates_tokens_details\030\013 \003" + + "(\01323.google.cloud.aiplatform.v1beta1.Mod" + + "alityTokenCountB\003\340A\003\022`\n\036tool_use_prompt_" + + "tokens_details\030\014 \003(\01323.google.cloud.aipl" + + "atform.v1beta1.ModalityTokenCountB\003\340A\003\022U" + + "\n\014traffic_type\030\010 \001(\0162:.google.cloud.aipl" + + "atform.v1beta1.UsageMetadata.TrafficType" + + "B\003\340A\003\"V\n\013TrafficType\022\034\n\030TRAFFIC_TYPE_UNS" + + "PECIFIED\020\000\022\r\n\tON_DEMAND\020\001\022\032\n\026PROVISIONED" + + "_THROUGHPUT\020\002B\351\001\n#com.google.cloud.aipla" + + "tform.v1beta1B\022UsageMetadataProtoP\001ZCclo" + + "ud.google.com/go/aiplatform/apiv1beta1/a" + + "iplatformpb;aiplatformpb\252\002\037Google.Cloud." + + "AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlat" + + "form\\V1beta1\352\002\"Google::Cloud::AIPlatform" + + "::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ContentProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_UsageMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_UsageMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UsageMetadata_descriptor, + new java.lang.String[] { + "PromptTokenCount", + "CandidatesTokenCount", + "TotalTokenCount", + "ToolUsePromptTokenCount", + "ThoughtsTokenCount", + "CachedContentTokenCount", + "PromptTokensDetails", + "CacheTokensDetails", + "CandidatesTokensDetails", + "ToolUsePromptTokensDetails", + "TrafficType", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ContentProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_stage.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_stage.proto index 7ef233a98f30..c98ce2c8b0ef 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_stage.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_stage.proto @@ -52,4 +52,10 @@ enum DeploymentStage { // The deployment has terminated. DEPLOYMENT_TERMINATED = 10; + + // The deployment has succeeded. + SUCCESSFULLY_DEPLOYED = 11; + + // The deployment has failed. + FAILED_TO_DEPLOY = 12; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto index f89d9e0eafbc..3b37af423ccd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto @@ -75,11 +75,11 @@ message FeatureOnlineStore { AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED]; // If true, enable direct access to the Bigtable instance. - bool enable_direct_bigtable_access = 2 + bool enable_direct_bigtable_access = 3 [(google.api.field_behavior) = OPTIONAL]; // Metadata of the Bigtable instance. Output only. - BigtableMetadata bigtable_metadata = 3 + BigtableMetadata bigtable_metadata = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto index e2ef1fc96891..0d1b7fd2acf9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto @@ -379,6 +379,6 @@ message FeatureView { } // Metadata containing information about the Cloud Bigtable. - BigtableMetadata bigtable_metadata = 21 + BigtableMetadata bigtable_metadata = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto index 9218beab2fa1..3b3774b6daf6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -105,7 +105,7 @@ message DedicatedResources { [(google.api.field_behavior) = OPTIONAL]; // Optional. Duration of no traffic before scaling to zero. - // [MinValue=3600] (5 minutes) + // [MinValue=300] (5 minutes) // [MaxValue=28800] (8 hours) google.protobuf.Duration idle_scaledown_period = 2 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto index e983e0a82759..5f069cbba853 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto @@ -27,21 +27,33 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; +// Post-startup script config. message PostStartupScriptConfig { + // Represents a notebook runtime post-startup script behavior. enum PostStartupScriptBehavior { + // Unspecified post-startup script behavior. POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; + // Run the post-startup script only once, during runtime creation. RUN_ONCE = 1; + // Run the post-startup script after every start. RUN_EVERY_START = 2; + // After every start, download the post-startup script from its source and + // run it. DOWNLOAD_AND_RUN_EVERY_START = 3; } + // Optional. Post-startup script to run after runtime is started. string post_startup_script = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Post-startup script url to download. Example: + // https://bucket/script.sh string post_startup_script_url = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Post-startup script behavior that defines download and execution + // behavior. PostStartupScriptBehavior post_startup_script_behavior = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -70,6 +82,8 @@ message NotebookSoftwareConfig { // Optional. Environment variables to be passed to the container. // Maximum limit is 100. repeated EnvVar env = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Post-startup script config. PostStartupScriptConfig post_startup_script_config = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto index c5b7dd890c01..9c20101a7bf4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/content.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/tool.proto"; import "google/cloud/aiplatform/v1beta1/types.proto"; +import "google/cloud/aiplatform/v1beta1/usage_metadata.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -239,6 +240,15 @@ service PredictionService { }; option (google.api.method_signature) = "endpoint,http_body"; } + + // Embed content with multimodal inputs. + rpc EmbedContent(EmbedContentRequest) returns (EmbedContentResponse) { + option (google.api.http) = { + post: "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:embedContent" + body: "*" + }; + option (google.api.method_signature) = "model,content"; + } } // Request message for @@ -950,3 +960,82 @@ message GenerateVideoResponse { // Returns rai failure reasons if any. repeated string rai_media_filtered_reasons = 3; } + +// Request message for +// [PredictionService.EmbedContent][google.cloud.aiplatform.v1beta1.PredictionService.EmbedContent]. +message EmbedContentRequest { + // Represents a downstream task the embeddings will be used for. + enum EmbeddingTaskType { + // Unset value, which will default to one of the other enum values. + UNSPECIFIED = 0; + + // Specifies the given text is a query in a search/retrieval setting. + RETRIEVAL_QUERY = 2; + + // Specifies the given text is a document from the corpus being searched. + RETRIEVAL_DOCUMENT = 3; + + // Specifies the given text will be used for STS. + SEMANTIC_SIMILARITY = 4; + + // Specifies that the given text will be classified. + CLASSIFICATION = 5; + + // Specifies that the embeddings will be used for clustering. + CLUSTERING = 6; + + // Specifies that the embeddings will be used for question answering. + QUESTION_ANSWERING = 7; + + // Specifies that the embeddings will be used for fact verification. + FACT_VERIFICATION = 8; + + // Specifies that the embeddings will be used for code retrieval. + CODE_RETRIEVAL_QUERY = 9; + } + + // Required. The name of the publisher model requested to serve the + // prediction. Format: + // `projects/{project}/locations/{location}/publishers/*/models/*` + optional string model = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + }]; + + // Required. Input content to be embedded. Required. + optional Content content = 2; + + // Optional. An optional title for the text. + optional string title = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The task type of the embedding. + optional EmbeddingTaskType task_type = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional reduced dimension for the output embedding. If set, + // excessive values in the output embedding are truncated from the end. + optional int32 output_dimensionality = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to silently truncate the input content if it's longer + // than the maximum sequence length. + optional bool auto_truncate = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [PredictionService.EmbedContent][google.cloud.aiplatform.v1beta1.PredictionService.EmbedContent]. +message EmbedContentResponse { + // A list of floats representing an embedding. + message Embedding { + // Embedding vector values. + repeated float values = 1; + } + + // The embedding generated from the input content. + Embedding embedding = 1; + + // Metadata about the response(s). + UsageMetadata usage_metadata = 2; + + // Whether the input content was truncated before generating the embedding. + bool truncated = 4; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session.proto index c64a96b2398a..8e3a7f7049e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session.proto @@ -173,9 +173,6 @@ message EventActions { map artifact_delta = 3 [(google.api.field_behavior) = OPTIONAL]; - // Deprecated. If set, the event transfers to the specified agent. - bool transfer_to_agent = 5 [deprecated = true]; - // Optional. The agent is escalating to a higher level agent. bool escalate = 6 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session_service.proto index 81435c06e217..bc29ed611af9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session_service.proto @@ -204,8 +204,9 @@ message ListSessionsRequest { // Optional. The standard list filter. // Supported fields: // * `display_name` + // * `user_id` // - // Example: `display_name=abc`. + // Example: `display_name="abc"`, `user_id="123"`. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A comma-separated list of fields to order by, sorted in ascending @@ -290,6 +291,13 @@ message ListEventsRequest { // // More detail in [AIP-160](https://google.aip.dev/160). string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. Supported fields: + // * `timestamp` + // + // Example: `timestamp desc`. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/usage_metadata.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/usage_metadata.proto new file mode 100644 index 000000000000..2bf358053c37 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/usage_metadata.proto @@ -0,0 +1,96 @@ +// Copyright 2025 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.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/cloud/aiplatform/v1beta1/content.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "UsageMetadataProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Usage metadata about the content generation request and response. +// This message provides a detailed breakdown of token usage and other +// relevant metrics. +message UsageMetadata { + // The type of traffic that this request was processed with, indicating which + // quota gets consumed. + enum TrafficType { + // Unspecified request traffic type. + TRAFFIC_TYPE_UNSPECIFIED = 0; + + // Type for Pay-As-You-Go traffic. + ON_DEMAND = 1; + + // Type for Provisioned Throughput traffic. + PROVISIONED_THROUGHPUT = 2; + } + + // The total number of tokens in the prompt. This includes any text, images, + // or other media provided in the request. When `cached_content` is set, + // this also includes the number of tokens in the cached content. + int32 prompt_token_count = 1; + + // The total number of tokens in the generated candidates. + int32 candidates_token_count = 2; + + // The total number of tokens for the entire request. This is the sum of + // `prompt_token_count`, `candidates_token_count`, + // `tool_use_prompt_token_count`, and `thoughts_token_count`. + int32 total_token_count = 3; + + // Output only. The number of tokens in the results from tool executions, + // which are provided back to the model as input, if applicable. + int32 tool_use_prompt_token_count = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tokens that were part of the model's generated + // "thoughts" output, if applicable. + int32 thoughts_token_count = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tokens in the cached content that was used for + // this request. + int32 cached_content_token_count = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A detailed breakdown of the token count for each modality in + // the prompt. + repeated ModalityTokenCount prompt_tokens_details = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A detailed breakdown of the token count for each modality in + // the cached content. + repeated ModalityTokenCount cache_tokens_details = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A detailed breakdown of the token count for each modality in + // the generated candidates. + repeated ModalityTokenCount candidates_tokens_details = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A detailed breakdown by modality of the token counts from the + // results of tool executions, which are provided back to the model as input. + repeated ModalityTokenCount tool_use_prompt_tokens_details = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The traffic type for this request. + TrafficType traffic_type = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/AsyncEmbedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/AsyncEmbedContent.java new file mode 100644 index 000000000000..e6ad673abd60 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/AsyncEmbedContent.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PredictionService_EmbedContent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1.EmbedContentResponse; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.PredictionServiceClient; + +public class AsyncEmbedContent { + + public static void main(String[] args) throws Exception { + asyncEmbedContent(); + } + + public static void asyncEmbedContent() 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + EmbedContentRequest request = + EmbedContentRequest.newBuilder() + .setModel( + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]") + .toString()) + .setContent(Content.newBuilder().build()) + .setTitle("title110371416") + .setOutputDimensionality(-495931909) + .setAutoTruncate(true) + .build(); + ApiFuture future = + predictionServiceClient.embedContentCallable().futureCall(request); + // Do something. + EmbedContentResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_PredictionService_EmbedContent_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/SyncEmbedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/SyncEmbedContent.java new file mode 100644 index 000000000000..139a14ff0f0c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/SyncEmbedContent.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PredictionService_EmbedContent_sync] +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1.EmbedContentResponse; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.PredictionServiceClient; + +public class SyncEmbedContent { + + public static void main(String[] args) throws Exception { + syncEmbedContent(); + } + + public static void syncEmbedContent() 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + EmbedContentRequest request = + EmbedContentRequest.newBuilder() + .setModel( + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]") + .toString()) + .setContent(Content.newBuilder().build()) + .setTitle("title110371416") + .setOutputDimensionality(-495931909) + .setAutoTruncate(true) + .build(); + EmbedContentResponse response = predictionServiceClient.embedContent(request); + } + } +} +// [END aiplatform_v1_generated_PredictionService_EmbedContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/SyncEmbedContentEndpointnameContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/SyncEmbedContentEndpointnameContent.java new file mode 100644 index 000000000000..6898d07e9f1c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/SyncEmbedContentEndpointnameContent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PredictionService_EmbedContent_EndpointnameContent_sync] +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.EmbedContentResponse; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.PredictionServiceClient; + +public class SyncEmbedContentEndpointnameContent { + + public static void main(String[] args) throws Exception { + syncEmbedContentEndpointnameContent(); + } + + public static void syncEmbedContentEndpointnameContent() 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + EndpointName model = + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]"); + Content content = Content.newBuilder().build(); + EmbedContentResponse response = predictionServiceClient.embedContent(model, content); + } + } +} +// [END aiplatform_v1_generated_PredictionService_EmbedContent_EndpointnameContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/SyncEmbedContentStringContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/SyncEmbedContentStringContent.java new file mode 100644 index 000000000000..d42564f6edd0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/embedcontent/SyncEmbedContentStringContent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PredictionService_EmbedContent_StringContent_sync] +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.EmbedContentResponse; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.PredictionServiceClient; + +public class SyncEmbedContentStringContent { + + public static void main(String[] args) throws Exception { + syncEmbedContentStringContent(); + } + + public static void syncEmbedContentStringContent() 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + String model = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString(); + Content content = Content.newBuilder().build(); + EmbedContentResponse response = predictionServiceClient.embedContent(model, content); + } + } +} +// [END aiplatform_v1_generated_PredictionService_EmbedContent_StringContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/AsyncEmbedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/AsyncEmbedContent.java new file mode 100644 index 000000000000..18b97df584f8 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/AsyncEmbedContent.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_PredictionService_EmbedContent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1beta1.EmbedContentResponse; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; + +public class AsyncEmbedContent { + + public static void main(String[] args) throws Exception { + asyncEmbedContent(); + } + + public static void asyncEmbedContent() 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + EmbedContentRequest request = + EmbedContentRequest.newBuilder() + .setModel( + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]") + .toString()) + .setContent(Content.newBuilder().build()) + .setTitle("title110371416") + .setOutputDimensionality(-495931909) + .setAutoTruncate(true) + .build(); + ApiFuture future = + predictionServiceClient.embedContentCallable().futureCall(request); + // Do something. + EmbedContentResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_PredictionService_EmbedContent_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/SyncEmbedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/SyncEmbedContent.java new file mode 100644 index 000000000000..a6642bbc1e83 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/SyncEmbedContent.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_PredictionService_EmbedContent_sync] +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.EmbedContentRequest; +import com.google.cloud.aiplatform.v1beta1.EmbedContentResponse; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; + +public class SyncEmbedContent { + + public static void main(String[] args) throws Exception { + syncEmbedContent(); + } + + public static void syncEmbedContent() 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + EmbedContentRequest request = + EmbedContentRequest.newBuilder() + .setModel( + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]") + .toString()) + .setContent(Content.newBuilder().build()) + .setTitle("title110371416") + .setOutputDimensionality(-495931909) + .setAutoTruncate(true) + .build(); + EmbedContentResponse response = predictionServiceClient.embedContent(request); + } + } +} +// [END aiplatform_v1beta1_generated_PredictionService_EmbedContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/SyncEmbedContentEndpointnameContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/SyncEmbedContentEndpointnameContent.java new file mode 100644 index 000000000000..f69f567400d0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/SyncEmbedContentEndpointnameContent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_PredictionService_EmbedContent_EndpointnameContent_sync] +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.EmbedContentResponse; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; + +public class SyncEmbedContentEndpointnameContent { + + public static void main(String[] args) throws Exception { + syncEmbedContentEndpointnameContent(); + } + + public static void syncEmbedContentEndpointnameContent() 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + EndpointName model = + EndpointName.ofProjectLocationPublisherModelName( + "[PROJECT]", "[LOCATION]", "[PUBLISHER]", "[MODEL]"); + Content content = Content.newBuilder().build(); + EmbedContentResponse response = predictionServiceClient.embedContent(model, content); + } + } +} +// [END aiplatform_v1beta1_generated_PredictionService_EmbedContent_EndpointnameContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/SyncEmbedContentStringContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/SyncEmbedContentStringContent.java new file mode 100644 index 000000000000..da56797b8638 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/embedcontent/SyncEmbedContentStringContent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_PredictionService_EmbedContent_StringContent_sync] +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.EmbedContentResponse; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; + +public class SyncEmbedContentStringContent { + + public static void main(String[] args) throws Exception { + syncEmbedContentStringContent(); + } + + public static void syncEmbedContentStringContent() 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + String model = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString(); + Content content = Content.newBuilder().build(); + EmbedContentResponse response = predictionServiceClient.embedContent(model, content); + } + } +} +// [END aiplatform_v1beta1_generated_PredictionService_EmbedContent_StringContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/AsyncListEvents.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/AsyncListEvents.java index 4d349887dd50..dc81735f15c8 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/AsyncListEvents.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/AsyncListEvents.java @@ -44,6 +44,7 @@ public static void asyncListEvents() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); ApiFuture future = sessionServiceClient.listEventsPagedCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/AsyncListEventsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/AsyncListEventsPaged.java index b822b7dd9549..cc4bd54413c9 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/AsyncListEventsPaged.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/AsyncListEventsPaged.java @@ -45,6 +45,7 @@ public static void asyncListEventsPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); while (true) { ListEventsResponse response = sessionServiceClient.listEventsCallable().call(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/SyncListEvents.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/SyncListEvents.java index 812e8ac749c0..54af1c36e3c2 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/SyncListEvents.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/sessionservice/listevents/SyncListEvents.java @@ -43,6 +43,7 @@ public static void syncListEvents() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); for (SessionEvent element : sessionServiceClient.listEvents(request).iterateAll()) { // doThingsWith(element); diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index c2fa03208db7..6ce24f28158b 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.55.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/README.md b/java-alloydb/README.md index b774b0309686..a989795b8e78 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.66.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java index 2c2e2e0a662f..0684f1745a19 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/alloydb/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AlloyDBAdminGrpc { @@ -2934,8 +2931,8 @@ protected AlloyDBAdminBlockingV2Stub build( * */ public com.google.cloud.alloydb.v1.ListClustersResponse listClusters( - com.google.cloud.alloydb.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.ListClustersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -2947,8 +2944,8 @@ public com.google.cloud.alloydb.v1.ListClustersResponse listClusters( * */ public com.google.cloud.alloydb.v1.Cluster getCluster( - com.google.cloud.alloydb.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.GetClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -2960,8 +2957,8 @@ public com.google.cloud.alloydb.v1.Cluster getCluster( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.alloydb.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.CreateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -2973,8 +2970,8 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.alloydb.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.UpdateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -2987,8 +2984,8 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation exportCluster( - com.google.cloud.alloydb.v1.ExportClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.ExportClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportClusterMethod(), getCallOptions(), request); } @@ -3001,8 +2998,8 @@ public com.google.longrunning.Operation exportCluster( * */ public com.google.longrunning.Operation importCluster( - com.google.cloud.alloydb.v1.ImportClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.ImportClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportClusterMethod(), getCallOptions(), request); } @@ -3015,8 +3012,8 @@ public com.google.longrunning.Operation importCluster( * */ public com.google.longrunning.Operation upgradeCluster( - com.google.cloud.alloydb.v1.UpgradeClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.UpgradeClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeClusterMethod(), getCallOptions(), request); } @@ -3028,8 +3025,8 @@ public com.google.longrunning.Operation upgradeCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.alloydb.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.DeleteClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -3044,8 +3041,8 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.longrunning.Operation promoteCluster( - com.google.cloud.alloydb.v1.PromoteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.PromoteClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPromoteClusterMethod(), getCallOptions(), request); } @@ -3059,8 +3056,9 @@ public com.google.longrunning.Operation promoteCluster( * */ public com.google.longrunning.Operation switchoverCluster( - com.google.cloud.alloydb.v1.SwitchoverClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.SwitchoverClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSwitchoverClusterMethod(), getCallOptions(), request); } @@ -3074,8 +3072,8 @@ public com.google.longrunning.Operation switchoverCluster( * */ public com.google.longrunning.Operation restoreCluster( - com.google.cloud.alloydb.v1.RestoreClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.RestoreClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreClusterMethod(), getCallOptions(), request); } @@ -3088,8 +3086,9 @@ public com.google.longrunning.Operation restoreCluster( * */ public com.google.longrunning.Operation createSecondaryCluster( - com.google.cloud.alloydb.v1.CreateSecondaryClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.CreateSecondaryClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecondaryClusterMethod(), getCallOptions(), request); } @@ -3101,8 +3100,8 @@ public com.google.longrunning.Operation createSecondaryCluster( * */ public com.google.cloud.alloydb.v1.ListInstancesResponse listInstances( - com.google.cloud.alloydb.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.ListInstancesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -3114,8 +3113,8 @@ public com.google.cloud.alloydb.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.alloydb.v1.Instance getInstance( - com.google.cloud.alloydb.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -3127,8 +3126,8 @@ public com.google.cloud.alloydb.v1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.alloydb.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.CreateInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -3140,8 +3139,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation createSecondaryInstance( - com.google.cloud.alloydb.v1.CreateSecondaryInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.CreateSecondaryInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecondaryInstanceMethod(), getCallOptions(), request); } @@ -3162,8 +3162,9 @@ public com.google.longrunning.Operation createSecondaryInstance( * */ public com.google.longrunning.Operation batchCreateInstances( - com.google.cloud.alloydb.v1.BatchCreateInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.BatchCreateInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateInstancesMethod(), getCallOptions(), request); } @@ -3175,8 +3176,8 @@ public com.google.longrunning.Operation batchCreateInstances( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.alloydb.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.UpdateInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -3188,8 +3189,8 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.alloydb.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.DeleteInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -3203,8 +3204,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation failoverInstance( - com.google.cloud.alloydb.v1.FailoverInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.FailoverInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFailoverInstanceMethod(), getCallOptions(), request); } @@ -3217,8 +3219,8 @@ public com.google.longrunning.Operation failoverInstance( * */ public com.google.longrunning.Operation injectFault( - com.google.cloud.alloydb.v1.InjectFaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.InjectFaultRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInjectFaultMethod(), getCallOptions(), request); } @@ -3231,8 +3233,8 @@ public com.google.longrunning.Operation injectFault( * */ public com.google.longrunning.Operation restartInstance( - com.google.cloud.alloydb.v1.RestartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.RestartInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestartInstanceMethod(), getCallOptions(), request); } @@ -3244,8 +3246,8 @@ public com.google.longrunning.Operation restartInstance( * */ public com.google.cloud.alloydb.v1.ExecuteSqlResponse executeSql( - com.google.cloud.alloydb.v1.ExecuteSqlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.ExecuteSqlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExecuteSqlMethod(), getCallOptions(), request); } @@ -3257,8 +3259,8 @@ public com.google.cloud.alloydb.v1.ExecuteSqlResponse executeSql( * */ public com.google.cloud.alloydb.v1.ListBackupsResponse listBackups( - com.google.cloud.alloydb.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.ListBackupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -3270,8 +3272,8 @@ public com.google.cloud.alloydb.v1.ListBackupsResponse listBackups( * */ public com.google.cloud.alloydb.v1.Backup getBackup( - com.google.cloud.alloydb.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -3283,8 +3285,8 @@ public com.google.cloud.alloydb.v1.Backup getBackup( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.alloydb.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.CreateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -3296,8 +3298,8 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.longrunning.Operation updateBackup( - com.google.cloud.alloydb.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.UpdateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } @@ -3309,8 +3311,8 @@ public com.google.longrunning.Operation updateBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.alloydb.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.DeleteBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -3323,8 +3325,9 @@ public com.google.longrunning.Operation deleteBackup( */ public com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsResponse listSupportedDatabaseFlags( - com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSupportedDatabaseFlagsMethod(), getCallOptions(), request); } @@ -3340,8 +3343,9 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.cloud.alloydb.v1.GenerateClientCertificateResponse generateClientCertificate( - com.google.cloud.alloydb.v1.GenerateClientCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.GenerateClientCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateClientCertificateMethod(), getCallOptions(), request); } @@ -3353,8 +3357,9 @@ public com.google.cloud.alloydb.v1.GenerateClientCertificateResponse generateCli * */ public com.google.cloud.alloydb.v1.ConnectionInfo getConnectionInfo( - com.google.cloud.alloydb.v1.GetConnectionInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.GetConnectionInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionInfoMethod(), getCallOptions(), request); } @@ -3366,8 +3371,8 @@ public com.google.cloud.alloydb.v1.ConnectionInfo getConnectionInfo( * */ public com.google.cloud.alloydb.v1.ListUsersResponse listUsers( - com.google.cloud.alloydb.v1.ListUsersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.ListUsersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsersMethod(), getCallOptions(), request); } @@ -3379,8 +3384,8 @@ public com.google.cloud.alloydb.v1.ListUsersResponse listUsers( * */ public com.google.cloud.alloydb.v1.User getUser( - com.google.cloud.alloydb.v1.GetUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.GetUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUserMethod(), getCallOptions(), request); } @@ -3392,8 +3397,8 @@ public com.google.cloud.alloydb.v1.User getUser( * */ public com.google.cloud.alloydb.v1.User createUser( - com.google.cloud.alloydb.v1.CreateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.CreateUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUserMethod(), getCallOptions(), request); } @@ -3405,8 +3410,8 @@ public com.google.cloud.alloydb.v1.User createUser( * */ public com.google.cloud.alloydb.v1.User updateUser( - com.google.cloud.alloydb.v1.UpdateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.UpdateUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUserMethod(), getCallOptions(), request); } @@ -3418,8 +3423,8 @@ public com.google.cloud.alloydb.v1.User updateUser( * */ public com.google.protobuf.Empty deleteUser( - com.google.cloud.alloydb.v1.DeleteUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.DeleteUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserMethod(), getCallOptions(), request); } @@ -3431,8 +3436,8 @@ public com.google.protobuf.Empty deleteUser( * */ public com.google.cloud.alloydb.v1.ListDatabasesResponse listDatabases( - com.google.cloud.alloydb.v1.ListDatabasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.ListDatabasesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatabasesMethod(), getCallOptions(), request); } } diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminGrpc.java index 6c5f444a6af1..68ce06079dd3 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminGrpc.java @@ -24,9 +24,6 @@ * Service for interactions with CloudSQL. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/alloydb/v1/csql_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AlloyDBCSQLAdminGrpc { @@ -239,8 +236,9 @@ protected AlloyDBCSQLAdminBlockingV2Stub build( * */ public com.google.longrunning.Operation restoreFromCloudSQL( - com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreFromCloudSQLMethod(), getCallOptions(), request); } } diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminGrpc.java index 6e204e2f8e74..01b48217c6fe 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/alloydb/v1alpha/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AlloyDBAdminGrpc { @@ -3060,8 +3057,9 @@ protected AlloyDBAdminBlockingV2Stub build( * */ public com.google.cloud.alloydb.v1alpha.ListClustersResponse listClusters( - com.google.cloud.alloydb.v1alpha.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.ListClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -3073,8 +3071,8 @@ public com.google.cloud.alloydb.v1alpha.ListClustersResponse listClusters( * */ public com.google.cloud.alloydb.v1alpha.Cluster getCluster( - com.google.cloud.alloydb.v1alpha.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.GetClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -3086,8 +3084,9 @@ public com.google.cloud.alloydb.v1alpha.Cluster getCluster( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.alloydb.v1alpha.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.CreateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -3099,8 +3098,9 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.alloydb.v1alpha.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.UpdateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -3113,8 +3113,9 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation exportCluster( - com.google.cloud.alloydb.v1alpha.ExportClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportClusterMethod(), getCallOptions(), request); } @@ -3127,8 +3128,9 @@ public com.google.longrunning.Operation exportCluster( * */ public com.google.longrunning.Operation importCluster( - com.google.cloud.alloydb.v1alpha.ImportClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportClusterMethod(), getCallOptions(), request); } @@ -3141,8 +3143,9 @@ public com.google.longrunning.Operation importCluster( * */ public com.google.longrunning.Operation upgradeCluster( - com.google.cloud.alloydb.v1alpha.UpgradeClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.UpgradeClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeClusterMethod(), getCallOptions(), request); } @@ -3154,8 +3157,9 @@ public com.google.longrunning.Operation upgradeCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.alloydb.v1alpha.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.DeleteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -3170,8 +3174,9 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.longrunning.Operation promoteCluster( - com.google.cloud.alloydb.v1alpha.PromoteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.PromoteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPromoteClusterMethod(), getCallOptions(), request); } @@ -3185,8 +3190,9 @@ public com.google.longrunning.Operation promoteCluster( * */ public com.google.longrunning.Operation switchoverCluster( - com.google.cloud.alloydb.v1alpha.SwitchoverClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.SwitchoverClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSwitchoverClusterMethod(), getCallOptions(), request); } @@ -3200,8 +3206,9 @@ public com.google.longrunning.Operation switchoverCluster( * */ public com.google.longrunning.Operation restoreCluster( - com.google.cloud.alloydb.v1alpha.RestoreClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.RestoreClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreClusterMethod(), getCallOptions(), request); } @@ -3214,8 +3221,9 @@ public com.google.longrunning.Operation restoreCluster( * */ public com.google.longrunning.Operation createSecondaryCluster( - com.google.cloud.alloydb.v1alpha.CreateSecondaryClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.CreateSecondaryClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecondaryClusterMethod(), getCallOptions(), request); } @@ -3227,8 +3235,9 @@ public com.google.longrunning.Operation createSecondaryCluster( * */ public com.google.cloud.alloydb.v1alpha.ListInstancesResponse listInstances( - com.google.cloud.alloydb.v1alpha.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -3240,8 +3249,9 @@ public com.google.cloud.alloydb.v1alpha.ListInstancesResponse listInstances( * */ public com.google.cloud.alloydb.v1alpha.Instance getInstance( - com.google.cloud.alloydb.v1alpha.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -3253,8 +3263,9 @@ public com.google.cloud.alloydb.v1alpha.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.alloydb.v1alpha.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -3266,8 +3277,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation createSecondaryInstance( - com.google.cloud.alloydb.v1alpha.CreateSecondaryInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.CreateSecondaryInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecondaryInstanceMethod(), getCallOptions(), request); } @@ -3288,8 +3300,9 @@ public com.google.longrunning.Operation createSecondaryInstance( * */ public com.google.longrunning.Operation batchCreateInstances( - com.google.cloud.alloydb.v1alpha.BatchCreateInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.BatchCreateInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateInstancesMethod(), getCallOptions(), request); } @@ -3301,8 +3314,9 @@ public com.google.longrunning.Operation batchCreateInstances( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.alloydb.v1alpha.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -3314,8 +3328,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.alloydb.v1alpha.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -3329,8 +3344,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation failoverInstance( - com.google.cloud.alloydb.v1alpha.FailoverInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.FailoverInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFailoverInstanceMethod(), getCallOptions(), request); } @@ -3343,8 +3359,9 @@ public com.google.longrunning.Operation failoverInstance( * */ public com.google.longrunning.Operation injectFault( - com.google.cloud.alloydb.v1alpha.InjectFaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.InjectFaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInjectFaultMethod(), getCallOptions(), request); } @@ -3357,8 +3374,9 @@ public com.google.longrunning.Operation injectFault( * */ public com.google.longrunning.Operation restartInstance( - com.google.cloud.alloydb.v1alpha.RestartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.RestartInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestartInstanceMethod(), getCallOptions(), request); } @@ -3370,8 +3388,8 @@ public com.google.longrunning.Operation restartInstance( * */ public com.google.cloud.alloydb.v1alpha.ExecuteSqlResponse executeSql( - com.google.cloud.alloydb.v1alpha.ExecuteSqlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.ExecuteSqlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExecuteSqlMethod(), getCallOptions(), request); } @@ -3383,8 +3401,9 @@ public com.google.cloud.alloydb.v1alpha.ExecuteSqlResponse executeSql( * */ public com.google.cloud.alloydb.v1alpha.ListBackupsResponse listBackups( - com.google.cloud.alloydb.v1alpha.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.ListBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -3396,8 +3415,8 @@ public com.google.cloud.alloydb.v1alpha.ListBackupsResponse listBackups( * */ public com.google.cloud.alloydb.v1alpha.Backup getBackup( - com.google.cloud.alloydb.v1alpha.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -3409,8 +3428,9 @@ public com.google.cloud.alloydb.v1alpha.Backup getBackup( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.alloydb.v1alpha.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.CreateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -3422,8 +3442,9 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.longrunning.Operation updateBackup( - com.google.cloud.alloydb.v1alpha.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.UpdateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } @@ -3435,8 +3456,9 @@ public com.google.longrunning.Operation updateBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.alloydb.v1alpha.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.DeleteBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -3449,8 +3471,9 @@ public com.google.longrunning.Operation deleteBackup( */ public com.google.cloud.alloydb.v1alpha.ListSupportedDatabaseFlagsResponse listSupportedDatabaseFlags( - com.google.cloud.alloydb.v1alpha.ListSupportedDatabaseFlagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.ListSupportedDatabaseFlagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSupportedDatabaseFlagsMethod(), getCallOptions(), request); } @@ -3467,8 +3490,9 @@ public com.google.longrunning.Operation deleteBackup( */ public com.google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse generateClientCertificate( - com.google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateClientCertificateMethod(), getCallOptions(), request); } @@ -3480,8 +3504,9 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.cloud.alloydb.v1alpha.ConnectionInfo getConnectionInfo( - com.google.cloud.alloydb.v1alpha.GetConnectionInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.GetConnectionInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionInfoMethod(), getCallOptions(), request); } @@ -3493,8 +3518,8 @@ public com.google.cloud.alloydb.v1alpha.ConnectionInfo getConnectionInfo( * */ public com.google.cloud.alloydb.v1alpha.ListUsersResponse listUsers( - com.google.cloud.alloydb.v1alpha.ListUsersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.ListUsersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsersMethod(), getCallOptions(), request); } @@ -3506,8 +3531,8 @@ public com.google.cloud.alloydb.v1alpha.ListUsersResponse listUsers( * */ public com.google.cloud.alloydb.v1alpha.User getUser( - com.google.cloud.alloydb.v1alpha.GetUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.GetUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUserMethod(), getCallOptions(), request); } @@ -3519,8 +3544,8 @@ public com.google.cloud.alloydb.v1alpha.User getUser( * */ public com.google.cloud.alloydb.v1alpha.User createUser( - com.google.cloud.alloydb.v1alpha.CreateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.CreateUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUserMethod(), getCallOptions(), request); } @@ -3532,8 +3557,8 @@ public com.google.cloud.alloydb.v1alpha.User createUser( * */ public com.google.cloud.alloydb.v1alpha.User updateUser( - com.google.cloud.alloydb.v1alpha.UpdateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.UpdateUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUserMethod(), getCallOptions(), request); } @@ -3545,8 +3570,8 @@ public com.google.cloud.alloydb.v1alpha.User updateUser( * */ public com.google.protobuf.Empty deleteUser( - com.google.cloud.alloydb.v1alpha.DeleteUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.DeleteUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserMethod(), getCallOptions(), request); } @@ -3558,8 +3583,9 @@ public com.google.protobuf.Empty deleteUser( * */ public com.google.cloud.alloydb.v1alpha.ListDatabasesResponse listDatabases( - com.google.cloud.alloydb.v1alpha.ListDatabasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.ListDatabasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatabasesMethod(), getCallOptions(), request); } @@ -3571,8 +3597,9 @@ public com.google.cloud.alloydb.v1alpha.ListDatabasesResponse listDatabases( * */ public com.google.cloud.alloydb.v1alpha.Database createDatabase( - com.google.cloud.alloydb.v1alpha.CreateDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.CreateDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatabaseMethod(), getCallOptions(), request); } } diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminGrpc.java index d5c66a32886e..6341433a358b 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminGrpc.java @@ -24,9 +24,6 @@ * Service for interactions with CloudSQL. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/alloydb/v1alpha/csql_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AlloyDBCSQLAdminGrpc { @@ -242,8 +239,9 @@ protected AlloyDBCSQLAdminBlockingV2Stub build( * */ public com.google.longrunning.Operation restoreFromCloudSQL( - com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreFromCloudSQLMethod(), getCallOptions(), request); } } diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminGrpc.java index b8f00a237908..57f21022099c 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/alloydb/v1beta/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AlloyDBAdminGrpc { @@ -3048,8 +3045,9 @@ protected AlloyDBAdminBlockingV2Stub build( * */ public com.google.cloud.alloydb.v1beta.ListClustersResponse listClusters( - com.google.cloud.alloydb.v1beta.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.ListClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -3061,8 +3059,8 @@ public com.google.cloud.alloydb.v1beta.ListClustersResponse listClusters( * */ public com.google.cloud.alloydb.v1beta.Cluster getCluster( - com.google.cloud.alloydb.v1beta.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.GetClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -3074,8 +3072,9 @@ public com.google.cloud.alloydb.v1beta.Cluster getCluster( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.alloydb.v1beta.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.CreateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -3087,8 +3086,9 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.alloydb.v1beta.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.UpdateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -3101,8 +3101,9 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation exportCluster( - com.google.cloud.alloydb.v1beta.ExportClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.ExportClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportClusterMethod(), getCallOptions(), request); } @@ -3115,8 +3116,9 @@ public com.google.longrunning.Operation exportCluster( * */ public com.google.longrunning.Operation importCluster( - com.google.cloud.alloydb.v1beta.ImportClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.ImportClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportClusterMethod(), getCallOptions(), request); } @@ -3129,8 +3131,9 @@ public com.google.longrunning.Operation importCluster( * */ public com.google.longrunning.Operation upgradeCluster( - com.google.cloud.alloydb.v1beta.UpgradeClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.UpgradeClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeClusterMethod(), getCallOptions(), request); } @@ -3142,8 +3145,9 @@ public com.google.longrunning.Operation upgradeCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.alloydb.v1beta.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.DeleteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -3158,8 +3162,9 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.longrunning.Operation promoteCluster( - com.google.cloud.alloydb.v1beta.PromoteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.PromoteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPromoteClusterMethod(), getCallOptions(), request); } @@ -3173,8 +3178,9 @@ public com.google.longrunning.Operation promoteCluster( * */ public com.google.longrunning.Operation switchoverCluster( - com.google.cloud.alloydb.v1beta.SwitchoverClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.SwitchoverClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSwitchoverClusterMethod(), getCallOptions(), request); } @@ -3188,8 +3194,9 @@ public com.google.longrunning.Operation switchoverCluster( * */ public com.google.longrunning.Operation restoreCluster( - com.google.cloud.alloydb.v1beta.RestoreClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.RestoreClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreClusterMethod(), getCallOptions(), request); } @@ -3202,8 +3209,9 @@ public com.google.longrunning.Operation restoreCluster( * */ public com.google.longrunning.Operation createSecondaryCluster( - com.google.cloud.alloydb.v1beta.CreateSecondaryClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.CreateSecondaryClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecondaryClusterMethod(), getCallOptions(), request); } @@ -3215,8 +3223,9 @@ public com.google.longrunning.Operation createSecondaryCluster( * */ public com.google.cloud.alloydb.v1beta.ListInstancesResponse listInstances( - com.google.cloud.alloydb.v1beta.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -3228,8 +3237,8 @@ public com.google.cloud.alloydb.v1beta.ListInstancesResponse listInstances( * */ public com.google.cloud.alloydb.v1beta.Instance getInstance( - com.google.cloud.alloydb.v1beta.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -3241,8 +3250,9 @@ public com.google.cloud.alloydb.v1beta.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.alloydb.v1beta.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -3254,8 +3264,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation createSecondaryInstance( - com.google.cloud.alloydb.v1beta.CreateSecondaryInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.CreateSecondaryInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecondaryInstanceMethod(), getCallOptions(), request); } @@ -3276,8 +3287,9 @@ public com.google.longrunning.Operation createSecondaryInstance( * */ public com.google.longrunning.Operation batchCreateInstances( - com.google.cloud.alloydb.v1beta.BatchCreateInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.BatchCreateInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateInstancesMethod(), getCallOptions(), request); } @@ -3289,8 +3301,9 @@ public com.google.longrunning.Operation batchCreateInstances( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.alloydb.v1beta.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -3302,8 +3315,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.alloydb.v1beta.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -3317,8 +3331,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation failoverInstance( - com.google.cloud.alloydb.v1beta.FailoverInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.FailoverInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFailoverInstanceMethod(), getCallOptions(), request); } @@ -3331,8 +3346,8 @@ public com.google.longrunning.Operation failoverInstance( * */ public com.google.longrunning.Operation injectFault( - com.google.cloud.alloydb.v1beta.InjectFaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.InjectFaultRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInjectFaultMethod(), getCallOptions(), request); } @@ -3345,8 +3360,9 @@ public com.google.longrunning.Operation injectFault( * */ public com.google.longrunning.Operation restartInstance( - com.google.cloud.alloydb.v1beta.RestartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.RestartInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestartInstanceMethod(), getCallOptions(), request); } @@ -3358,8 +3374,8 @@ public com.google.longrunning.Operation restartInstance( * */ public com.google.cloud.alloydb.v1beta.ExecuteSqlResponse executeSql( - com.google.cloud.alloydb.v1beta.ExecuteSqlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.ExecuteSqlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExecuteSqlMethod(), getCallOptions(), request); } @@ -3371,8 +3387,8 @@ public com.google.cloud.alloydb.v1beta.ExecuteSqlResponse executeSql( * */ public com.google.cloud.alloydb.v1beta.ListBackupsResponse listBackups( - com.google.cloud.alloydb.v1beta.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.ListBackupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -3384,8 +3400,8 @@ public com.google.cloud.alloydb.v1beta.ListBackupsResponse listBackups( * */ public com.google.cloud.alloydb.v1beta.Backup getBackup( - com.google.cloud.alloydb.v1beta.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -3397,8 +3413,9 @@ public com.google.cloud.alloydb.v1beta.Backup getBackup( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.alloydb.v1beta.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.CreateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -3410,8 +3427,9 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.longrunning.Operation updateBackup( - com.google.cloud.alloydb.v1beta.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.UpdateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } @@ -3423,8 +3441,9 @@ public com.google.longrunning.Operation updateBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.alloydb.v1beta.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.DeleteBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -3437,8 +3456,9 @@ public com.google.longrunning.Operation deleteBackup( */ public com.google.cloud.alloydb.v1beta.ListSupportedDatabaseFlagsResponse listSupportedDatabaseFlags( - com.google.cloud.alloydb.v1beta.ListSupportedDatabaseFlagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.ListSupportedDatabaseFlagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSupportedDatabaseFlagsMethod(), getCallOptions(), request); } @@ -3455,8 +3475,9 @@ public com.google.longrunning.Operation deleteBackup( */ public com.google.cloud.alloydb.v1beta.GenerateClientCertificateResponse generateClientCertificate( - com.google.cloud.alloydb.v1beta.GenerateClientCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.GenerateClientCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateClientCertificateMethod(), getCallOptions(), request); } @@ -3468,8 +3489,9 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.cloud.alloydb.v1beta.ConnectionInfo getConnectionInfo( - com.google.cloud.alloydb.v1beta.GetConnectionInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.GetConnectionInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionInfoMethod(), getCallOptions(), request); } @@ -3481,8 +3503,8 @@ public com.google.cloud.alloydb.v1beta.ConnectionInfo getConnectionInfo( * */ public com.google.cloud.alloydb.v1beta.ListUsersResponse listUsers( - com.google.cloud.alloydb.v1beta.ListUsersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.ListUsersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsersMethod(), getCallOptions(), request); } @@ -3494,8 +3516,8 @@ public com.google.cloud.alloydb.v1beta.ListUsersResponse listUsers( * */ public com.google.cloud.alloydb.v1beta.User getUser( - com.google.cloud.alloydb.v1beta.GetUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.GetUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUserMethod(), getCallOptions(), request); } @@ -3507,8 +3529,8 @@ public com.google.cloud.alloydb.v1beta.User getUser( * */ public com.google.cloud.alloydb.v1beta.User createUser( - com.google.cloud.alloydb.v1beta.CreateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.CreateUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUserMethod(), getCallOptions(), request); } @@ -3520,8 +3542,8 @@ public com.google.cloud.alloydb.v1beta.User createUser( * */ public com.google.cloud.alloydb.v1beta.User updateUser( - com.google.cloud.alloydb.v1beta.UpdateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.UpdateUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUserMethod(), getCallOptions(), request); } @@ -3533,8 +3555,8 @@ public com.google.cloud.alloydb.v1beta.User updateUser( * */ public com.google.protobuf.Empty deleteUser( - com.google.cloud.alloydb.v1beta.DeleteUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.DeleteUserRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserMethod(), getCallOptions(), request); } @@ -3546,8 +3568,9 @@ public com.google.protobuf.Empty deleteUser( * */ public com.google.cloud.alloydb.v1beta.ListDatabasesResponse listDatabases( - com.google.cloud.alloydb.v1beta.ListDatabasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.ListDatabasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatabasesMethod(), getCallOptions(), request); } @@ -3559,8 +3582,9 @@ public com.google.cloud.alloydb.v1beta.ListDatabasesResponse listDatabases( * */ public com.google.cloud.alloydb.v1beta.Database createDatabase( - com.google.cloud.alloydb.v1beta.CreateDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.CreateDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatabaseMethod(), getCallOptions(), request); } } diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminGrpc.java index 59410ea395b1..1d0a11b74341 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminGrpc.java @@ -24,9 +24,6 @@ * Service for interactions with CloudSQL. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/alloydb/v1beta/csql_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AlloyDBCSQLAdminGrpc { @@ -242,8 +239,9 @@ protected AlloyDBCSQLAdminBlockingV2Stub build( * */ public com.google.longrunning.Operation restoreFromCloudSQL( - com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreFromCloudSQLMethod(), getCallOptions(), request); } } diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 91469a3c9b2c..09099ac25c9e 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.87.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.87.0' +implementation 'com.google.analytics:google-analytics-admin:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.87.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.88.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.88.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index 1c58eac1a1a3..77bfd4794b3c 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -24,9 +24,6 @@ * Service Interface for the Google Analytics Admin API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/analytics/admin/v1alpha/analytics_admin.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AnalyticsAdminServiceGrpc { @@ -13076,8 +13073,9 @@ protected AnalyticsAdminServiceBlockingV2Stub build( * */ public com.google.analytics.admin.v1alpha.Account getAccount( - com.google.analytics.admin.v1alpha.GetAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccountMethod(), getCallOptions(), request); } @@ -13092,8 +13090,9 @@ public com.google.analytics.admin.v1alpha.Account getAccount( * */ public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( - com.google.analytics.admin.v1alpha.ListAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountsMethod(), getCallOptions(), request); } @@ -13112,8 +13111,9 @@ public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( * */ public com.google.protobuf.Empty deleteAccount( - com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccountMethod(), getCallOptions(), request); } @@ -13125,8 +13125,9 @@ public com.google.protobuf.Empty deleteAccount( * */ public com.google.analytics.admin.v1alpha.Account updateAccount( - com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccountMethod(), getCallOptions(), request); } @@ -13138,8 +13139,9 @@ public com.google.analytics.admin.v1alpha.Account updateAccount( * */ public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); } @@ -13151,8 +13153,9 @@ public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisi * */ public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); } @@ -13164,8 +13167,9 @@ public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccou * */ public com.google.analytics.admin.v1alpha.Property getProperty( - com.google.analytics.admin.v1alpha.GetPropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetPropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPropertyMethod(), getCallOptions(), request); } @@ -13180,8 +13184,9 @@ public com.google.analytics.admin.v1alpha.Property getProperty( * */ public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( - com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPropertiesMethod(), getCallOptions(), request); } @@ -13194,8 +13199,9 @@ public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( * */ public com.google.analytics.admin.v1alpha.Property createProperty( - com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePropertyMethod(), getCallOptions(), request); } @@ -13214,8 +13220,9 @@ public com.google.analytics.admin.v1alpha.Property createProperty( * */ public com.google.analytics.admin.v1alpha.Property deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePropertyMethod(), getCallOptions(), request); } @@ -13227,8 +13234,9 @@ public com.google.analytics.admin.v1alpha.Property deleteProperty( * */ public com.google.analytics.admin.v1alpha.Property updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); } @@ -13241,8 +13249,9 @@ public com.google.analytics.admin.v1alpha.Property updateProperty( * */ public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); } @@ -13254,8 +13263,9 @@ public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( * */ public com.google.protobuf.Empty deleteFirebaseLink( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); } @@ -13268,8 +13278,9 @@ public com.google.protobuf.Empty deleteFirebaseLink( * */ public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); } @@ -13282,8 +13293,9 @@ public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebase * */ public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGlobalSiteTagMethod(), getCallOptions(), request); } @@ -13295,8 +13307,9 @@ public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag( * */ public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); } @@ -13308,8 +13321,9 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( * */ public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); } @@ -13321,8 +13335,9 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink( * */ public com.google.protobuf.Empty deleteGoogleAdsLink( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); } @@ -13334,8 +13349,9 @@ public com.google.protobuf.Empty deleteGoogleAdsLink( * */ public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleAdsLinks( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); } @@ -13348,8 +13364,9 @@ public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleA * */ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); } @@ -13362,8 +13379,9 @@ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSett */ public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMeasurementProtocolSecretMethod(), getCallOptions(), request); } @@ -13377,8 +13395,9 @@ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSett */ public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse listMeasurementProtocolSecrets( - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMeasurementProtocolSecretsMethod(), getCallOptions(), request); } @@ -13391,8 +13410,9 @@ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSett */ public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret createMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMeasurementProtocolSecretMethod(), getCallOptions(), request); } @@ -13404,8 +13424,9 @@ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSett * */ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); } @@ -13418,8 +13439,9 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( */ public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret updateMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); } @@ -13435,8 +13457,9 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( */ public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcknowledgeUserDataCollectionMethod(), getCallOptions(), request); } @@ -13449,8 +13472,9 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( */ public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema( - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSKAdNetworkConversionValueSchemaMethod(), getCallOptions(), request); } @@ -13464,8 +13488,9 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema( com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSKAdNetworkConversionValueSchemaMethod(), getCallOptions(), @@ -13480,8 +13505,9 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( * */ public com.google.protobuf.Empty deleteSKAdNetworkConversionValueSchema( - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSKAdNetworkConversionValueSchemaMethod(), getCallOptions(), @@ -13498,8 +13524,9 @@ public com.google.protobuf.Empty deleteSKAdNetworkConversionValueSchema( public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema( com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSKAdNetworkConversionValueSchemaMethod(), getCallOptions(), @@ -13516,9 +13543,9 @@ public com.google.protobuf.Empty deleteSKAdNetworkConversionValueSchema( */ public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse listSKAdNetworkConversionValueSchemas( - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSKAdNetworkConversionValueSchemasMethod(), getCallOptions(), @@ -13537,8 +13564,9 @@ public com.google.protobuf.Empty deleteSKAdNetworkConversionValueSchema( */ public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); } @@ -13550,8 +13578,9 @@ public com.google.protobuf.Empty deleteSKAdNetworkConversionValueSchema( * */ public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGoogleSignalsSettingsMethod(), getCallOptions(), request); } @@ -13563,8 +13592,9 @@ public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignals * */ public com.google.analytics.admin.v1alpha.GoogleSignalsSettings updateGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGoogleSignalsSettingsMethod(), getCallOptions(), request); } @@ -13578,8 +13608,9 @@ public com.google.analytics.admin.v1alpha.GoogleSignalsSettings updateGoogleSign */ @java.lang.Deprecated public com.google.analytics.admin.v1alpha.ConversionEvent createConversionEvent( - com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); } @@ -13593,8 +13624,9 @@ public com.google.analytics.admin.v1alpha.ConversionEvent createConversionEvent( */ @java.lang.Deprecated public com.google.analytics.admin.v1alpha.ConversionEvent updateConversionEvent( - com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversionEventMethod(), getCallOptions(), request); } @@ -13608,8 +13640,9 @@ public com.google.analytics.admin.v1alpha.ConversionEvent updateConversionEvent( */ @java.lang.Deprecated public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent( - com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversionEventMethod(), getCallOptions(), request); } @@ -13623,8 +13656,9 @@ public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteConversionEvent( - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); } @@ -13639,8 +13673,9 @@ public com.google.protobuf.Empty deleteConversionEvent( */ @java.lang.Deprecated public com.google.analytics.admin.v1alpha.ListConversionEventsResponse listConversionEvents( - com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversionEventsMethod(), getCallOptions(), request); } @@ -13652,8 +13687,9 @@ public com.google.analytics.admin.v1alpha.ListConversionEventsResponse listConve * */ public com.google.analytics.admin.v1alpha.KeyEvent createKeyEvent( - com.google.analytics.admin.v1alpha.CreateKeyEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateKeyEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateKeyEventMethod(), getCallOptions(), request); } @@ -13665,8 +13701,9 @@ public com.google.analytics.admin.v1alpha.KeyEvent createKeyEvent( * */ public com.google.analytics.admin.v1alpha.KeyEvent updateKeyEvent( - com.google.analytics.admin.v1alpha.UpdateKeyEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateKeyEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateKeyEventMethod(), getCallOptions(), request); } @@ -13678,8 +13715,9 @@ public com.google.analytics.admin.v1alpha.KeyEvent updateKeyEvent( * */ public com.google.analytics.admin.v1alpha.KeyEvent getKeyEvent( - com.google.analytics.admin.v1alpha.GetKeyEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetKeyEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKeyEventMethod(), getCallOptions(), request); } @@ -13691,8 +13729,9 @@ public com.google.analytics.admin.v1alpha.KeyEvent getKeyEvent( * */ public com.google.protobuf.Empty deleteKeyEvent( - com.google.analytics.admin.v1alpha.DeleteKeyEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteKeyEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteKeyEventMethod(), getCallOptions(), request); } @@ -13705,8 +13744,9 @@ public com.google.protobuf.Empty deleteKeyEvent( * */ public com.google.analytics.admin.v1alpha.ListKeyEventsResponse listKeyEvents( - com.google.analytics.admin.v1alpha.ListKeyEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListKeyEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListKeyEventsMethod(), getCallOptions(), request); } @@ -13719,8 +13759,9 @@ public com.google.analytics.admin.v1alpha.ListKeyEventsResponse listKeyEvents( */ public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); } @@ -13733,8 +13774,9 @@ public com.google.analytics.admin.v1alpha.ListKeyEventsResponse listKeyEvents( */ public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse listDisplayVideo360AdvertiserLinks( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions(), request); } @@ -13751,8 +13793,9 @@ public com.google.analytics.admin.v1alpha.ListKeyEventsResponse listKeyEvents( */ public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); } @@ -13764,8 +13807,9 @@ public com.google.analytics.admin.v1alpha.ListKeyEventsResponse listKeyEvents( * */ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); } @@ -13778,8 +13822,9 @@ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLink( */ public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); } @@ -13793,8 +13838,9 @@ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLink( public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), @@ -13811,8 +13857,9 @@ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLink( public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse listDisplayVideo360AdvertiserLinkProposals( com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDisplayVideo360AdvertiserLinkProposalsMethod(), getCallOptions(), @@ -13829,8 +13876,9 @@ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLink( public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), @@ -13847,8 +13895,9 @@ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLink( */ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLinkProposal( com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), @@ -13867,8 +13916,9 @@ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLinkProposal( public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse approveDisplayVideo360AdvertiserLinkProposal( com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApproveDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), @@ -13889,8 +13939,9 @@ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLinkProposal( public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360AdvertiserLinkProposal( com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), @@ -13905,8 +13956,9 @@ public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLinkProposal( * */ public com.google.analytics.admin.v1alpha.CustomDimension createCustomDimension( - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomDimensionMethod(), getCallOptions(), request); } @@ -13918,8 +13970,9 @@ public com.google.analytics.admin.v1alpha.CustomDimension createCustomDimension( * */ public com.google.analytics.admin.v1alpha.CustomDimension updateCustomDimension( - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomDimensionMethod(), getCallOptions(), request); } @@ -13931,8 +13984,9 @@ public com.google.analytics.admin.v1alpha.CustomDimension updateCustomDimension( * */ public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse listCustomDimensions( - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomDimensionsMethod(), getCallOptions(), request); } @@ -13944,8 +13998,9 @@ public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse listCusto * */ public com.google.protobuf.Empty archiveCustomDimension( - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getArchiveCustomDimensionMethod(), getCallOptions(), request); } @@ -13957,8 +14012,9 @@ public com.google.protobuf.Empty archiveCustomDimension( * */ public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension( - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomDimensionMethod(), getCallOptions(), request); } @@ -13970,8 +14026,9 @@ public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension( * */ public com.google.analytics.admin.v1alpha.CustomMetric createCustomMetric( - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomMetricMethod(), getCallOptions(), request); } @@ -13983,8 +14040,9 @@ public com.google.analytics.admin.v1alpha.CustomMetric createCustomMetric( * */ public com.google.analytics.admin.v1alpha.CustomMetric updateCustomMetric( - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomMetricMethod(), getCallOptions(), request); } @@ -13996,8 +14054,9 @@ public com.google.analytics.admin.v1alpha.CustomMetric updateCustomMetric( * */ public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse listCustomMetrics( - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomMetricsMethod(), getCallOptions(), request); } @@ -14009,8 +14068,9 @@ public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse listCustomMe * */ public com.google.protobuf.Empty archiveCustomMetric( - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getArchiveCustomMetricMethod(), getCallOptions(), request); } @@ -14022,8 +14082,9 @@ public com.google.protobuf.Empty archiveCustomMetric( * */ public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric( - com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomMetricMethod(), getCallOptions(), request); } @@ -14035,8 +14096,9 @@ public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric( * */ public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings( - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataRetentionSettingsMethod(), getCallOptions(), request); } @@ -14048,8 +14110,9 @@ public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetention * */ public com.google.analytics.admin.v1alpha.DataRetentionSettings updateDataRetentionSettings( - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataRetentionSettingsMethod(), getCallOptions(), request); } @@ -14061,8 +14124,9 @@ public com.google.analytics.admin.v1alpha.DataRetentionSettings updateDataRetent * */ public com.google.analytics.admin.v1alpha.DataStream createDataStream( - com.google.analytics.admin.v1alpha.CreateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataStreamMethod(), getCallOptions(), request); } @@ -14074,8 +14138,9 @@ public com.google.analytics.admin.v1alpha.DataStream createDataStream( * */ public com.google.protobuf.Empty deleteDataStream( - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataStreamMethod(), getCallOptions(), request); } @@ -14087,8 +14152,9 @@ public com.google.protobuf.Empty deleteDataStream( * */ public com.google.analytics.admin.v1alpha.DataStream updateDataStream( - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataStreamMethod(), getCallOptions(), request); } @@ -14100,8 +14166,9 @@ public com.google.analytics.admin.v1alpha.DataStream updateDataStream( * */ public com.google.analytics.admin.v1alpha.ListDataStreamsResponse listDataStreams( - com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataStreamsMethod(), getCallOptions(), request); } @@ -14113,8 +14180,9 @@ public com.google.analytics.admin.v1alpha.ListDataStreamsResponse listDataStream * */ public com.google.analytics.admin.v1alpha.DataStream getDataStream( - com.google.analytics.admin.v1alpha.GetDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataStreamMethod(), getCallOptions(), request); } @@ -14128,8 +14196,9 @@ public com.google.analytics.admin.v1alpha.DataStream getDataStream( * */ public com.google.analytics.admin.v1alpha.Audience getAudience( - com.google.analytics.admin.v1alpha.GetAudienceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetAudienceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAudienceMethod(), getCallOptions(), request); } @@ -14143,8 +14212,9 @@ public com.google.analytics.admin.v1alpha.Audience getAudience( * */ public com.google.analytics.admin.v1alpha.ListAudiencesResponse listAudiences( - com.google.analytics.admin.v1alpha.ListAudiencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListAudiencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAudiencesMethod(), getCallOptions(), request); } @@ -14156,8 +14226,9 @@ public com.google.analytics.admin.v1alpha.ListAudiencesResponse listAudiences( * */ public com.google.analytics.admin.v1alpha.Audience createAudience( - com.google.analytics.admin.v1alpha.CreateAudienceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateAudienceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAudienceMethod(), getCallOptions(), request); } @@ -14169,8 +14240,9 @@ public com.google.analytics.admin.v1alpha.Audience createAudience( * */ public com.google.analytics.admin.v1alpha.Audience updateAudience( - com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAudienceMethod(), getCallOptions(), request); } @@ -14182,8 +14254,9 @@ public com.google.analytics.admin.v1alpha.Audience updateAudience( * */ public com.google.protobuf.Empty archiveAudience( - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getArchiveAudienceMethod(), getCallOptions(), request); } @@ -14195,8 +14268,9 @@ public com.google.protobuf.Empty archiveAudience( * */ public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link( - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSearchAds360LinkMethod(), getCallOptions(), request); } @@ -14208,8 +14282,9 @@ public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link( * */ public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse listSearchAds360Links( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSearchAds360LinksMethod(), getCallOptions(), request); } @@ -14221,8 +14296,9 @@ public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse listSear * */ public com.google.analytics.admin.v1alpha.SearchAds360Link createSearchAds360Link( - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSearchAds360LinkMethod(), getCallOptions(), request); } @@ -14234,8 +14310,9 @@ public com.google.analytics.admin.v1alpha.SearchAds360Link createSearchAds360Lin * */ public com.google.protobuf.Empty deleteSearchAds360Link( - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSearchAds360LinkMethod(), getCallOptions(), request); } @@ -14247,8 +14324,9 @@ public com.google.protobuf.Empty deleteSearchAds360Link( * */ public com.google.analytics.admin.v1alpha.SearchAds360Link updateSearchAds360Link( - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSearchAds360LinkMethod(), getCallOptions(), request); } @@ -14260,8 +14338,9 @@ public com.google.analytics.admin.v1alpha.SearchAds360Link updateSearchAds360Lin * */ public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings( - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttributionSettingsMethod(), getCallOptions(), request); } @@ -14273,8 +14352,9 @@ public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSett * */ public com.google.analytics.admin.v1alpha.AttributionSettings updateAttributionSettings( - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAttributionSettingsMethod(), getCallOptions(), request); } @@ -14302,8 +14382,9 @@ public com.google.analytics.admin.v1alpha.AttributionSettings updateAttributionS * */ public com.google.analytics.admin.v1alpha.RunAccessReportResponse runAccessReport( - com.google.analytics.admin.v1alpha.RunAccessReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.RunAccessReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunAccessReportMethod(), getCallOptions(), request); } @@ -14315,8 +14396,9 @@ public com.google.analytics.admin.v1alpha.RunAccessReportResponse runAccessRepor * */ public com.google.analytics.admin.v1alpha.AccessBinding createAccessBinding( - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAccessBindingMethod(), getCallOptions(), request); } @@ -14328,8 +14410,9 @@ public com.google.analytics.admin.v1alpha.AccessBinding createAccessBinding( * */ public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding( - com.google.analytics.admin.v1alpha.GetAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccessBindingMethod(), getCallOptions(), request); } @@ -14341,8 +14424,9 @@ public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding( * */ public com.google.analytics.admin.v1alpha.AccessBinding updateAccessBinding( - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccessBindingMethod(), getCallOptions(), request); } @@ -14354,8 +14438,9 @@ public com.google.analytics.admin.v1alpha.AccessBinding updateAccessBinding( * */ public com.google.protobuf.Empty deleteAccessBinding( - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccessBindingMethod(), getCallOptions(), request); } @@ -14367,8 +14452,9 @@ public com.google.protobuf.Empty deleteAccessBinding( * */ public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse listAccessBindings( - com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccessBindingsMethod(), getCallOptions(), request); } @@ -14384,8 +14470,9 @@ public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse listAccessB */ public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse batchCreateAccessBindings( - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateAccessBindingsMethod(), getCallOptions(), request); } @@ -14397,8 +14484,9 @@ public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse listAccessB * */ public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse batchGetAccessBindings( - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchGetAccessBindingsMethod(), getCallOptions(), request); } @@ -14412,8 +14500,9 @@ public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse batchGe */ public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse batchUpdateAccessBindings( - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateAccessBindingsMethod(), getCallOptions(), request); } @@ -14425,8 +14514,9 @@ public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse batchGe * */ public com.google.protobuf.Empty batchDeleteAccessBindings( - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteAccessBindingsMethod(), getCallOptions(), request); } @@ -14438,8 +14528,9 @@ public com.google.protobuf.Empty batchDeleteAccessBindings( * */ public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet( - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExpandedDataSetMethod(), getCallOptions(), request); } @@ -14451,8 +14542,9 @@ public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet( * */ public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse listExpandedDataSets( - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExpandedDataSetsMethod(), getCallOptions(), request); } @@ -14464,8 +14556,9 @@ public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse listExpan * */ public com.google.analytics.admin.v1alpha.ExpandedDataSet createExpandedDataSet( - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExpandedDataSetMethod(), getCallOptions(), request); } @@ -14477,8 +14570,9 @@ public com.google.analytics.admin.v1alpha.ExpandedDataSet createExpandedDataSet( * */ public com.google.analytics.admin.v1alpha.ExpandedDataSet updateExpandedDataSet( - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExpandedDataSetMethod(), getCallOptions(), request); } @@ -14490,8 +14584,9 @@ public com.google.analytics.admin.v1alpha.ExpandedDataSet updateExpandedDataSet( * */ public com.google.protobuf.Empty deleteExpandedDataSet( - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExpandedDataSetMethod(), getCallOptions(), request); } @@ -14503,8 +14598,9 @@ public com.google.protobuf.Empty deleteExpandedDataSet( * */ public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup( - com.google.analytics.admin.v1alpha.GetChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetChannelGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChannelGroupMethod(), getCallOptions(), request); } @@ -14516,8 +14612,9 @@ public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup( * */ public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse listChannelGroups( - com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChannelGroupsMethod(), getCallOptions(), request); } @@ -14529,8 +14626,9 @@ public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse listChannelG * */ public com.google.analytics.admin.v1alpha.ChannelGroup createChannelGroup( - com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateChannelGroupMethod(), getCallOptions(), request); } @@ -14542,8 +14640,9 @@ public com.google.analytics.admin.v1alpha.ChannelGroup createChannelGroup( * */ public com.google.analytics.admin.v1alpha.ChannelGroup updateChannelGroup( - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateChannelGroupMethod(), getCallOptions(), request); } @@ -14555,8 +14654,9 @@ public com.google.analytics.admin.v1alpha.ChannelGroup updateChannelGroup( * */ public com.google.protobuf.Empty deleteChannelGroup( - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteChannelGroupMethod(), getCallOptions(), request); } @@ -14568,8 +14668,9 @@ public com.google.protobuf.Empty deleteChannelGroup( * */ public com.google.analytics.admin.v1alpha.BigQueryLink createBigQueryLink( - com.google.analytics.admin.v1alpha.CreateBigQueryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateBigQueryLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBigQueryLinkMethod(), getCallOptions(), request); } @@ -14581,8 +14682,9 @@ public com.google.analytics.admin.v1alpha.BigQueryLink createBigQueryLink( * */ public com.google.analytics.admin.v1alpha.BigQueryLink getBigQueryLink( - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBigQueryLinkMethod(), getCallOptions(), request); } @@ -14594,8 +14696,9 @@ public com.google.analytics.admin.v1alpha.BigQueryLink getBigQueryLink( * */ public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse listBigQueryLinks( - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBigQueryLinksMethod(), getCallOptions(), request); } @@ -14607,8 +14710,9 @@ public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse listBigQuery * */ public com.google.protobuf.Empty deleteBigQueryLink( - com.google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBigQueryLinkMethod(), getCallOptions(), request); } @@ -14620,8 +14724,9 @@ public com.google.protobuf.Empty deleteBigQueryLink( * */ public com.google.analytics.admin.v1alpha.BigQueryLink updateBigQueryLink( - com.google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBigQueryLinkMethod(), getCallOptions(), request); } @@ -14636,8 +14741,9 @@ public com.google.analytics.admin.v1alpha.BigQueryLink updateBigQueryLink( */ public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); } @@ -14652,8 +14758,9 @@ public com.google.analytics.admin.v1alpha.BigQueryLink updateBigQueryLink( */ public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions(), request); } @@ -14665,8 +14772,9 @@ public com.google.analytics.admin.v1alpha.BigQueryLink updateBigQueryLink( * */ public com.google.analytics.admin.v1alpha.AdSenseLink getAdSenseLink( - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAdSenseLinkMethod(), getCallOptions(), request); } @@ -14678,8 +14786,9 @@ public com.google.analytics.admin.v1alpha.AdSenseLink getAdSenseLink( * */ public com.google.analytics.admin.v1alpha.AdSenseLink createAdSenseLink( - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAdSenseLinkMethod(), getCallOptions(), request); } @@ -14691,8 +14800,9 @@ public com.google.analytics.admin.v1alpha.AdSenseLink createAdSenseLink( * */ public com.google.protobuf.Empty deleteAdSenseLink( - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAdSenseLinkMethod(), getCallOptions(), request); } @@ -14704,8 +14814,9 @@ public com.google.protobuf.Empty deleteAdSenseLink( * */ public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse listAdSenseLinks( - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAdSenseLinksMethod(), getCallOptions(), request); } @@ -14717,8 +14828,9 @@ public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse listAdSenseLi * */ public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule( - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEventCreateRuleMethod(), getCallOptions(), request); } @@ -14730,8 +14842,9 @@ public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule( * */ public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse listEventCreateRules( - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEventCreateRulesMethod(), getCallOptions(), request); } @@ -14743,8 +14856,9 @@ public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse listEvent * */ public com.google.analytics.admin.v1alpha.EventCreateRule createEventCreateRule( - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEventCreateRuleMethod(), getCallOptions(), request); } @@ -14756,8 +14870,9 @@ public com.google.analytics.admin.v1alpha.EventCreateRule createEventCreateRule( * */ public com.google.analytics.admin.v1alpha.EventCreateRule updateEventCreateRule( - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEventCreateRuleMethod(), getCallOptions(), request); } @@ -14769,8 +14884,9 @@ public com.google.analytics.admin.v1alpha.EventCreateRule updateEventCreateRule( * */ public com.google.protobuf.Empty deleteEventCreateRule( - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEventCreateRuleMethod(), getCallOptions(), request); } @@ -14782,8 +14898,9 @@ public com.google.protobuf.Empty deleteEventCreateRule( * */ public com.google.analytics.admin.v1alpha.EventEditRule getEventEditRule( - com.google.analytics.admin.v1alpha.GetEventEditRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetEventEditRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEventEditRuleMethod(), getCallOptions(), request); } @@ -14795,8 +14912,9 @@ public com.google.analytics.admin.v1alpha.EventEditRule getEventEditRule( * */ public com.google.analytics.admin.v1alpha.ListEventEditRulesResponse listEventEditRules( - com.google.analytics.admin.v1alpha.ListEventEditRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListEventEditRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEventEditRulesMethod(), getCallOptions(), request); } @@ -14808,8 +14926,9 @@ public com.google.analytics.admin.v1alpha.ListEventEditRulesResponse listEventEd * */ public com.google.analytics.admin.v1alpha.EventEditRule createEventEditRule( - com.google.analytics.admin.v1alpha.CreateEventEditRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateEventEditRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEventEditRuleMethod(), getCallOptions(), request); } @@ -14821,8 +14940,9 @@ public com.google.analytics.admin.v1alpha.EventEditRule createEventEditRule( * */ public com.google.analytics.admin.v1alpha.EventEditRule updateEventEditRule( - com.google.analytics.admin.v1alpha.UpdateEventEditRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateEventEditRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEventEditRuleMethod(), getCallOptions(), request); } @@ -14834,8 +14954,9 @@ public com.google.analytics.admin.v1alpha.EventEditRule updateEventEditRule( * */ public com.google.protobuf.Empty deleteEventEditRule( - com.google.analytics.admin.v1alpha.DeleteEventEditRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteEventEditRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEventEditRuleMethod(), getCallOptions(), request); } @@ -14847,8 +14968,9 @@ public com.google.protobuf.Empty deleteEventEditRule( * */ public com.google.protobuf.Empty reorderEventEditRules( - com.google.analytics.admin.v1alpha.ReorderEventEditRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ReorderEventEditRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReorderEventEditRulesMethod(), getCallOptions(), request); } @@ -14860,8 +14982,9 @@ public com.google.protobuf.Empty reorderEventEditRules( * */ public com.google.analytics.admin.v1alpha.DataRedactionSettings updateDataRedactionSettings( - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataRedactionSettingsMethod(), getCallOptions(), request); } @@ -14873,8 +14996,9 @@ public com.google.analytics.admin.v1alpha.DataRedactionSettings updateDataRedact * */ public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings( - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataRedactionSettingsMethod(), getCallOptions(), request); } @@ -14886,8 +15010,9 @@ public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedaction * */ public com.google.analytics.admin.v1alpha.CalculatedMetric getCalculatedMetric( - com.google.analytics.admin.v1alpha.GetCalculatedMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetCalculatedMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCalculatedMetricMethod(), getCallOptions(), request); } @@ -14899,8 +15024,9 @@ public com.google.analytics.admin.v1alpha.CalculatedMetric getCalculatedMetric( * */ public com.google.analytics.admin.v1alpha.CalculatedMetric createCalculatedMetric( - com.google.analytics.admin.v1alpha.CreateCalculatedMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateCalculatedMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCalculatedMetricMethod(), getCallOptions(), request); } @@ -14912,8 +15038,9 @@ public com.google.analytics.admin.v1alpha.CalculatedMetric createCalculatedMetri * */ public com.google.analytics.admin.v1alpha.ListCalculatedMetricsResponse listCalculatedMetrics( - com.google.analytics.admin.v1alpha.ListCalculatedMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListCalculatedMetricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCalculatedMetricsMethod(), getCallOptions(), request); } @@ -14925,8 +15052,9 @@ public com.google.analytics.admin.v1alpha.ListCalculatedMetricsResponse listCalc * */ public com.google.analytics.admin.v1alpha.CalculatedMetric updateCalculatedMetric( - com.google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCalculatedMetricMethod(), getCallOptions(), request); } @@ -14938,8 +15066,9 @@ public com.google.analytics.admin.v1alpha.CalculatedMetric updateCalculatedMetri * */ public com.google.protobuf.Empty deleteCalculatedMetric( - com.google.analytics.admin.v1alpha.DeleteCalculatedMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteCalculatedMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCalculatedMetricMethod(), getCallOptions(), request); } @@ -14951,8 +15080,9 @@ public com.google.protobuf.Empty deleteCalculatedMetric( * */ public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse createRollupProperty( - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRollupPropertyMethod(), getCallOptions(), request); } @@ -14966,8 +15096,9 @@ public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse createRol * */ public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink( - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRollupPropertySourceLinkMethod(), getCallOptions(), request); } @@ -14982,8 +15113,9 @@ public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupProp */ public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse listRollupPropertySourceLinks( - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRollupPropertySourceLinksMethod(), getCallOptions(), request); } @@ -14998,8 +15130,9 @@ public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupProp */ public com.google.analytics.admin.v1alpha.RollupPropertySourceLink createRollupPropertySourceLink( - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRollupPropertySourceLinkMethod(), getCallOptions(), request); } @@ -15013,8 +15146,9 @@ public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupProp * */ public com.google.protobuf.Empty deleteRollupPropertySourceLink( - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRollupPropertySourceLinkMethod(), getCallOptions(), request); } @@ -15027,8 +15161,9 @@ public com.google.protobuf.Empty deleteRollupPropertySourceLink( * */ public com.google.analytics.admin.v1alpha.ProvisionSubpropertyResponse provisionSubproperty( - com.google.analytics.admin.v1alpha.ProvisionSubpropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ProvisionSubpropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProvisionSubpropertyMethod(), getCallOptions(), request); } @@ -15040,8 +15175,9 @@ public com.google.analytics.admin.v1alpha.ProvisionSubpropertyResponse provision * */ public com.google.analytics.admin.v1alpha.SubpropertyEventFilter createSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSubpropertyEventFilterMethod(), getCallOptions(), request); } @@ -15053,8 +15189,9 @@ public com.google.analytics.admin.v1alpha.SubpropertyEventFilter createSubproper * */ public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSubpropertyEventFilterMethod(), getCallOptions(), request); } @@ -15067,8 +15204,9 @@ public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyE */ public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse listSubpropertyEventFilters( - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubpropertyEventFiltersMethod(), getCallOptions(), request); } @@ -15080,8 +15218,9 @@ public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyE * */ public com.google.analytics.admin.v1alpha.SubpropertyEventFilter updateSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSubpropertyEventFilterMethod(), getCallOptions(), request); } @@ -15093,8 +15232,9 @@ public com.google.analytics.admin.v1alpha.SubpropertyEventFilter updateSubproper * */ public com.google.protobuf.Empty deleteSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSubpropertyEventFilterMethod(), getCallOptions(), request); } @@ -15106,8 +15246,9 @@ public com.google.protobuf.Empty deleteSubpropertyEventFilter( * */ public com.google.analytics.admin.v1alpha.ReportingDataAnnotation createReportingDataAnnotation( - com.google.analytics.admin.v1alpha.CreateReportingDataAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.CreateReportingDataAnnotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReportingDataAnnotationMethod(), getCallOptions(), request); } @@ -15119,8 +15260,9 @@ public com.google.analytics.admin.v1alpha.ReportingDataAnnotation createReportin * */ public com.google.analytics.admin.v1alpha.ReportingDataAnnotation getReportingDataAnnotation( - com.google.analytics.admin.v1alpha.GetReportingDataAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetReportingDataAnnotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReportingDataAnnotationMethod(), getCallOptions(), request); } @@ -15133,8 +15275,9 @@ public com.google.analytics.admin.v1alpha.ReportingDataAnnotation getReportingDa */ public com.google.analytics.admin.v1alpha.ListReportingDataAnnotationsResponse listReportingDataAnnotations( - com.google.analytics.admin.v1alpha.ListReportingDataAnnotationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListReportingDataAnnotationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReportingDataAnnotationsMethod(), getCallOptions(), request); } @@ -15146,8 +15289,9 @@ public com.google.analytics.admin.v1alpha.ReportingDataAnnotation getReportingDa * */ public com.google.analytics.admin.v1alpha.ReportingDataAnnotation updateReportingDataAnnotation( - com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReportingDataAnnotationMethod(), getCallOptions(), request); } @@ -15159,8 +15303,9 @@ public com.google.analytics.admin.v1alpha.ReportingDataAnnotation updateReportin * */ public com.google.protobuf.Empty deleteReportingDataAnnotation( - com.google.analytics.admin.v1alpha.DeleteReportingDataAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.DeleteReportingDataAnnotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReportingDataAnnotationMethod(), getCallOptions(), request); } @@ -15172,8 +15317,9 @@ public com.google.protobuf.Empty deleteReportingDataAnnotation( * */ public com.google.analytics.admin.v1alpha.SubmitUserDeletionResponse submitUserDeletion( - com.google.analytics.admin.v1alpha.SubmitUserDeletionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.SubmitUserDeletionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitUserDeletionMethod(), getCallOptions(), request); } @@ -15186,8 +15332,9 @@ public com.google.analytics.admin.v1alpha.SubmitUserDeletionResponse submitUserD */ public com.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsResponse listSubpropertySyncConfigs( - com.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubpropertySyncConfigsMethod(), getCallOptions(), request); } @@ -15199,8 +15346,9 @@ public com.google.analytics.admin.v1alpha.SubmitUserDeletionResponse submitUserD * */ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig updateSubpropertySyncConfig( - com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSubpropertySyncConfigMethod(), getCallOptions(), request); } @@ -15212,8 +15360,9 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig updateSubpropert * */ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySyncConfig( - com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSubpropertySyncConfigMethod(), getCallOptions(), request); } @@ -15226,8 +15375,9 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy */ public com.google.analytics.admin.v1alpha.ReportingIdentitySettings getReportingIdentitySettings( - com.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReportingIdentitySettingsMethod(), getCallOptions(), request); } } diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java index 421ac3d5ae4d..c2183f49f847 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java @@ -24,9 +24,6 @@ * Service Interface for the Google Analytics Admin API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/analytics/admin/v1beta/analytics_admin.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AnalyticsAdminServiceGrpc { @@ -4615,8 +4612,9 @@ protected AnalyticsAdminServiceBlockingV2Stub build( * */ public com.google.analytics.admin.v1beta.Account getAccount( - com.google.analytics.admin.v1beta.GetAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccountMethod(), getCallOptions(), request); } @@ -4631,8 +4629,9 @@ public com.google.analytics.admin.v1beta.Account getAccount( * */ public com.google.analytics.admin.v1beta.ListAccountsResponse listAccounts( - com.google.analytics.admin.v1beta.ListAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountsMethod(), getCallOptions(), request); } @@ -4651,8 +4650,9 @@ public com.google.analytics.admin.v1beta.ListAccountsResponse listAccounts( * */ public com.google.protobuf.Empty deleteAccount( - com.google.analytics.admin.v1beta.DeleteAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.DeleteAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccountMethod(), getCallOptions(), request); } @@ -4664,8 +4664,9 @@ public com.google.protobuf.Empty deleteAccount( * */ public com.google.analytics.admin.v1beta.Account updateAccount( - com.google.analytics.admin.v1beta.UpdateAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdateAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccountMethod(), getCallOptions(), request); } @@ -4677,8 +4678,9 @@ public com.google.analytics.admin.v1beta.Account updateAccount( * */ public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse provisionAccountTicket( - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); } @@ -4690,8 +4692,9 @@ public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse provisio * */ public com.google.analytics.admin.v1beta.ListAccountSummariesResponse listAccountSummaries( - com.google.analytics.admin.v1beta.ListAccountSummariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); } @@ -4703,8 +4706,9 @@ public com.google.analytics.admin.v1beta.ListAccountSummariesResponse listAccoun * */ public com.google.analytics.admin.v1beta.Property getProperty( - com.google.analytics.admin.v1beta.GetPropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetPropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPropertyMethod(), getCallOptions(), request); } @@ -4719,8 +4723,9 @@ public com.google.analytics.admin.v1beta.Property getProperty( * */ public com.google.analytics.admin.v1beta.ListPropertiesResponse listProperties( - com.google.analytics.admin.v1beta.ListPropertiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListPropertiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPropertiesMethod(), getCallOptions(), request); } @@ -4733,8 +4738,9 @@ public com.google.analytics.admin.v1beta.ListPropertiesResponse listProperties( * */ public com.google.analytics.admin.v1beta.Property createProperty( - com.google.analytics.admin.v1beta.CreatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.CreatePropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePropertyMethod(), getCallOptions(), request); } @@ -4753,8 +4759,9 @@ public com.google.analytics.admin.v1beta.Property createProperty( * */ public com.google.analytics.admin.v1beta.Property deleteProperty( - com.google.analytics.admin.v1beta.DeletePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.DeletePropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePropertyMethod(), getCallOptions(), request); } @@ -4766,8 +4773,9 @@ public com.google.analytics.admin.v1beta.Property deleteProperty( * */ public com.google.analytics.admin.v1beta.Property updateProperty( - com.google.analytics.admin.v1beta.UpdatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdatePropertyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); } @@ -4780,8 +4788,9 @@ public com.google.analytics.admin.v1beta.Property updateProperty( * */ public com.google.analytics.admin.v1beta.FirebaseLink createFirebaseLink( - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); } @@ -4793,8 +4802,9 @@ public com.google.analytics.admin.v1beta.FirebaseLink createFirebaseLink( * */ public com.google.protobuf.Empty deleteFirebaseLink( - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); } @@ -4807,8 +4817,9 @@ public com.google.protobuf.Empty deleteFirebaseLink( * */ public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse listFirebaseLinks( - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); } @@ -4820,8 +4831,9 @@ public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse listFirebaseL * */ public com.google.analytics.admin.v1beta.GoogleAdsLink createGoogleAdsLink( - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); } @@ -4833,8 +4845,9 @@ public com.google.analytics.admin.v1beta.GoogleAdsLink createGoogleAdsLink( * */ public com.google.analytics.admin.v1beta.GoogleAdsLink updateGoogleAdsLink( - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); } @@ -4846,8 +4859,9 @@ public com.google.analytics.admin.v1beta.GoogleAdsLink updateGoogleAdsLink( * */ public com.google.protobuf.Empty deleteGoogleAdsLink( - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); } @@ -4859,8 +4873,9 @@ public com.google.protobuf.Empty deleteGoogleAdsLink( * */ public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse listGoogleAdsLinks( - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); } @@ -4873,8 +4888,9 @@ public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse listGoogleAd * */ public com.google.analytics.admin.v1beta.DataSharingSettings getDataSharingSettings( - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); } @@ -4886,8 +4902,9 @@ public com.google.analytics.admin.v1beta.DataSharingSettings getDataSharingSetti * */ public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMeasurementProtocolSecretMethod(), getCallOptions(), request); } @@ -4901,8 +4918,9 @@ public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasuremen */ public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse listMeasurementProtocolSecrets( - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMeasurementProtocolSecretsMethod(), getCallOptions(), request); } @@ -4915,8 +4933,9 @@ public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasuremen */ public com.google.analytics.admin.v1beta.MeasurementProtocolSecret createMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMeasurementProtocolSecretMethod(), getCallOptions(), request); } @@ -4928,8 +4947,9 @@ public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasuremen * */ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); } @@ -4942,8 +4962,9 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( */ public com.google.analytics.admin.v1beta.MeasurementProtocolSecret updateMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); } @@ -4959,8 +4980,9 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( */ public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection( - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcknowledgeUserDataCollectionMethod(), getCallOptions(), request); } @@ -4976,8 +4998,9 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( */ public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse searchChangeHistoryEvents( - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); } @@ -4991,8 +5014,9 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( */ @java.lang.Deprecated public com.google.analytics.admin.v1beta.ConversionEvent createConversionEvent( - com.google.analytics.admin.v1beta.CreateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.CreateConversionEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); } @@ -5006,8 +5030,9 @@ public com.google.analytics.admin.v1beta.ConversionEvent createConversionEvent( */ @java.lang.Deprecated public com.google.analytics.admin.v1beta.ConversionEvent updateConversionEvent( - com.google.analytics.admin.v1beta.UpdateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversionEventMethod(), getCallOptions(), request); } @@ -5021,8 +5046,9 @@ public com.google.analytics.admin.v1beta.ConversionEvent updateConversionEvent( */ @java.lang.Deprecated public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent( - com.google.analytics.admin.v1beta.GetConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetConversionEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversionEventMethod(), getCallOptions(), request); } @@ -5036,8 +5062,9 @@ public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteConversionEvent( - com.google.analytics.admin.v1beta.DeleteConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); } @@ -5052,8 +5079,9 @@ public com.google.protobuf.Empty deleteConversionEvent( */ @java.lang.Deprecated public com.google.analytics.admin.v1beta.ListConversionEventsResponse listConversionEvents( - com.google.analytics.admin.v1beta.ListConversionEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListConversionEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversionEventsMethod(), getCallOptions(), request); } @@ -5065,8 +5093,9 @@ public com.google.analytics.admin.v1beta.ListConversionEventsResponse listConver * */ public com.google.analytics.admin.v1beta.KeyEvent createKeyEvent( - com.google.analytics.admin.v1beta.CreateKeyEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.CreateKeyEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateKeyEventMethod(), getCallOptions(), request); } @@ -5078,8 +5107,9 @@ public com.google.analytics.admin.v1beta.KeyEvent createKeyEvent( * */ public com.google.analytics.admin.v1beta.KeyEvent updateKeyEvent( - com.google.analytics.admin.v1beta.UpdateKeyEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdateKeyEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateKeyEventMethod(), getCallOptions(), request); } @@ -5091,8 +5121,9 @@ public com.google.analytics.admin.v1beta.KeyEvent updateKeyEvent( * */ public com.google.analytics.admin.v1beta.KeyEvent getKeyEvent( - com.google.analytics.admin.v1beta.GetKeyEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetKeyEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKeyEventMethod(), getCallOptions(), request); } @@ -5104,8 +5135,9 @@ public com.google.analytics.admin.v1beta.KeyEvent getKeyEvent( * */ public com.google.protobuf.Empty deleteKeyEvent( - com.google.analytics.admin.v1beta.DeleteKeyEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.DeleteKeyEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteKeyEventMethod(), getCallOptions(), request); } @@ -5118,8 +5150,9 @@ public com.google.protobuf.Empty deleteKeyEvent( * */ public com.google.analytics.admin.v1beta.ListKeyEventsResponse listKeyEvents( - com.google.analytics.admin.v1beta.ListKeyEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListKeyEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListKeyEventsMethod(), getCallOptions(), request); } @@ -5131,8 +5164,9 @@ public com.google.analytics.admin.v1beta.ListKeyEventsResponse listKeyEvents( * */ public com.google.analytics.admin.v1beta.CustomDimension createCustomDimension( - com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomDimensionMethod(), getCallOptions(), request); } @@ -5144,8 +5178,9 @@ public com.google.analytics.admin.v1beta.CustomDimension createCustomDimension( * */ public com.google.analytics.admin.v1beta.CustomDimension updateCustomDimension( - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomDimensionMethod(), getCallOptions(), request); } @@ -5157,8 +5192,9 @@ public com.google.analytics.admin.v1beta.CustomDimension updateCustomDimension( * */ public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse listCustomDimensions( - com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomDimensionsMethod(), getCallOptions(), request); } @@ -5170,8 +5206,9 @@ public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse listCustom * */ public com.google.protobuf.Empty archiveCustomDimension( - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getArchiveCustomDimensionMethod(), getCallOptions(), request); } @@ -5183,8 +5220,9 @@ public com.google.protobuf.Empty archiveCustomDimension( * */ public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension( - com.google.analytics.admin.v1beta.GetCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetCustomDimensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomDimensionMethod(), getCallOptions(), request); } @@ -5196,8 +5234,9 @@ public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension( * */ public com.google.analytics.admin.v1beta.CustomMetric createCustomMetric( - com.google.analytics.admin.v1beta.CreateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.CreateCustomMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomMetricMethod(), getCallOptions(), request); } @@ -5209,8 +5248,9 @@ public com.google.analytics.admin.v1beta.CustomMetric createCustomMetric( * */ public com.google.analytics.admin.v1beta.CustomMetric updateCustomMetric( - com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomMetricMethod(), getCallOptions(), request); } @@ -5222,8 +5262,9 @@ public com.google.analytics.admin.v1beta.CustomMetric updateCustomMetric( * */ public com.google.analytics.admin.v1beta.ListCustomMetricsResponse listCustomMetrics( - com.google.analytics.admin.v1beta.ListCustomMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListCustomMetricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomMetricsMethod(), getCallOptions(), request); } @@ -5235,8 +5276,9 @@ public com.google.analytics.admin.v1beta.ListCustomMetricsResponse listCustomMet * */ public com.google.protobuf.Empty archiveCustomMetric( - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getArchiveCustomMetricMethod(), getCallOptions(), request); } @@ -5248,8 +5290,9 @@ public com.google.protobuf.Empty archiveCustomMetric( * */ public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric( - com.google.analytics.admin.v1beta.GetCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetCustomMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomMetricMethod(), getCallOptions(), request); } @@ -5261,8 +5304,9 @@ public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric( * */ public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings( - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataRetentionSettingsMethod(), getCallOptions(), request); } @@ -5274,8 +5318,9 @@ public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionS * */ public com.google.analytics.admin.v1beta.DataRetentionSettings updateDataRetentionSettings( - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataRetentionSettingsMethod(), getCallOptions(), request); } @@ -5287,8 +5332,9 @@ public com.google.analytics.admin.v1beta.DataRetentionSettings updateDataRetenti * */ public com.google.analytics.admin.v1beta.DataStream createDataStream( - com.google.analytics.admin.v1beta.CreateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.CreateDataStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataStreamMethod(), getCallOptions(), request); } @@ -5300,8 +5346,9 @@ public com.google.analytics.admin.v1beta.DataStream createDataStream( * */ public com.google.protobuf.Empty deleteDataStream( - com.google.analytics.admin.v1beta.DeleteDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.DeleteDataStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataStreamMethod(), getCallOptions(), request); } @@ -5313,8 +5360,9 @@ public com.google.protobuf.Empty deleteDataStream( * */ public com.google.analytics.admin.v1beta.DataStream updateDataStream( - com.google.analytics.admin.v1beta.UpdateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.UpdateDataStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataStreamMethod(), getCallOptions(), request); } @@ -5326,8 +5374,9 @@ public com.google.analytics.admin.v1beta.DataStream updateDataStream( * */ public com.google.analytics.admin.v1beta.ListDataStreamsResponse listDataStreams( - com.google.analytics.admin.v1beta.ListDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.ListDataStreamsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataStreamsMethod(), getCallOptions(), request); } @@ -5339,8 +5388,9 @@ public com.google.analytics.admin.v1beta.ListDataStreamsResponse listDataStreams * */ public com.google.analytics.admin.v1beta.DataStream getDataStream( - com.google.analytics.admin.v1beta.GetDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.GetDataStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataStreamMethod(), getCallOptions(), request); } @@ -5368,8 +5418,9 @@ public com.google.analytics.admin.v1beta.DataStream getDataStream( * */ public com.google.analytics.admin.v1beta.RunAccessReportResponse runAccessReport( - com.google.analytics.admin.v1beta.RunAccessReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.admin.v1beta.RunAccessReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunAccessReportMethod(), getCallOptions(), request); } } diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 17dbc5fa4fc5..e0c0ad4f73dc 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.88.0' +implementation 'com.google.analytics:google-analytics-data:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.88.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.89.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java b/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java index 87c6aa14cf74..41d4552c61bf 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java +++ b/java-analytics-data/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java @@ -24,9 +24,6 @@ * Google Analytics reporting data service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/analytics/data/v1alpha/analytics_data_api.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AlphaAnalyticsDataGrpc { @@ -1570,8 +1567,9 @@ protected AlphaAnalyticsDataBlockingV2Stub build( * */ public com.google.analytics.data.v1alpha.RunFunnelReportResponse runFunnelReport( - com.google.analytics.data.v1alpha.RunFunnelReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.RunFunnelReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunFunnelReportMethod(), getCallOptions(), request); } @@ -1602,8 +1600,9 @@ public com.google.analytics.data.v1alpha.RunFunnelReportResponse runFunnelReport * */ public com.google.longrunning.Operation createAudienceList( - com.google.analytics.data.v1alpha.CreateAudienceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.CreateAudienceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAudienceListMethod(), getCallOptions(), request); } @@ -1629,8 +1628,9 @@ public com.google.longrunning.Operation createAudienceList( * */ public com.google.analytics.data.v1alpha.QueryAudienceListResponse queryAudienceList( - com.google.analytics.data.v1alpha.QueryAudienceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.QueryAudienceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryAudienceListMethod(), getCallOptions(), request); } @@ -1658,8 +1658,9 @@ public com.google.analytics.data.v1alpha.QueryAudienceListResponse queryAudience */ public com.google.analytics.data.v1alpha.SheetExportAudienceListResponse sheetExportAudienceList( - com.google.analytics.data.v1alpha.SheetExportAudienceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.SheetExportAudienceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSheetExportAudienceListMethod(), getCallOptions(), request); } @@ -1680,8 +1681,9 @@ public com.google.analytics.data.v1alpha.QueryAudienceListResponse queryAudience * */ public com.google.analytics.data.v1alpha.AudienceList getAudienceList( - com.google.analytics.data.v1alpha.GetAudienceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.GetAudienceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAudienceListMethod(), getCallOptions(), request); } @@ -1704,8 +1706,9 @@ public com.google.analytics.data.v1alpha.AudienceList getAudienceList( * */ public com.google.analytics.data.v1alpha.ListAudienceListsResponse listAudienceLists( - com.google.analytics.data.v1alpha.ListAudienceListsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.ListAudienceListsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAudienceListsMethod(), getCallOptions(), request); } @@ -1732,8 +1735,9 @@ public com.google.analytics.data.v1alpha.ListAudienceListsResponse listAudienceL * */ public com.google.analytics.data.v1alpha.RecurringAudienceList createRecurringAudienceList( - com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRecurringAudienceListMethod(), getCallOptions(), request); } @@ -1754,8 +1758,9 @@ public com.google.analytics.data.v1alpha.RecurringAudienceList createRecurringAu * */ public com.google.analytics.data.v1alpha.RecurringAudienceList getRecurringAudienceList( - com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRecurringAudienceListMethod(), getCallOptions(), request); } @@ -1778,8 +1783,9 @@ public com.google.analytics.data.v1alpha.RecurringAudienceList getRecurringAudie */ public com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse listRecurringAudienceLists( - com.google.analytics.data.v1alpha.ListRecurringAudienceListsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.ListRecurringAudienceListsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRecurringAudienceListsMethod(), getCallOptions(), request); } @@ -1792,8 +1798,9 @@ public com.google.analytics.data.v1alpha.RecurringAudienceList getRecurringAudie * */ public com.google.analytics.data.v1alpha.PropertyQuotasSnapshot getPropertyQuotasSnapshot( - com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPropertyQuotasSnapshotMethod(), getCallOptions(), request); } @@ -1812,8 +1819,9 @@ public com.google.analytics.data.v1alpha.PropertyQuotasSnapshot getPropertyQuota * */ public com.google.longrunning.Operation createReportTask( - com.google.analytics.data.v1alpha.CreateReportTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.CreateReportTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReportTaskMethod(), getCallOptions(), request); } @@ -1829,8 +1837,9 @@ public com.google.longrunning.Operation createReportTask( * */ public com.google.analytics.data.v1alpha.QueryReportTaskResponse queryReportTask( - com.google.analytics.data.v1alpha.QueryReportTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.QueryReportTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryReportTaskMethod(), getCallOptions(), request); } @@ -1844,8 +1853,9 @@ public com.google.analytics.data.v1alpha.QueryReportTaskResponse queryReportTask * */ public com.google.analytics.data.v1alpha.ReportTask getReportTask( - com.google.analytics.data.v1alpha.GetReportTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.GetReportTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReportTaskMethod(), getCallOptions(), request); } @@ -1857,8 +1867,9 @@ public com.google.analytics.data.v1alpha.ReportTask getReportTask( * */ public com.google.analytics.data.v1alpha.ListReportTasksResponse listReportTasks( - com.google.analytics.data.v1alpha.ListReportTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1alpha.ListReportTasksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReportTasksMethod(), getCallOptions(), request); } } diff --git a/java-analytics-data/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java b/java-analytics-data/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java index 159d6ee4276a..b00962513a4c 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java +++ b/java-analytics-data/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java @@ -24,9 +24,6 @@ * Google Analytics reporting data service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/analytics/data/v1beta/analytics_data_api.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BetaAnalyticsDataGrpc { @@ -1233,8 +1230,8 @@ protected BetaAnalyticsDataBlockingV2Stub build( * */ public com.google.analytics.data.v1beta.RunReportResponse runReport( - com.google.analytics.data.v1beta.RunReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.RunReportRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunReportMethod(), getCallOptions(), request); } @@ -1250,8 +1247,9 @@ public com.google.analytics.data.v1beta.RunReportResponse runReport( * */ public com.google.analytics.data.v1beta.RunPivotReportResponse runPivotReport( - com.google.analytics.data.v1beta.RunPivotReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.RunPivotReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunPivotReportMethod(), getCallOptions(), request); } @@ -1264,8 +1262,9 @@ public com.google.analytics.data.v1beta.RunPivotReportResponse runPivotReport( * */ public com.google.analytics.data.v1beta.BatchRunReportsResponse batchRunReports( - com.google.analytics.data.v1beta.BatchRunReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.BatchRunReportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchRunReportsMethod(), getCallOptions(), request); } @@ -1278,8 +1277,9 @@ public com.google.analytics.data.v1beta.BatchRunReportsResponse batchRunReports( * */ public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse batchRunPivotReports( - com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchRunPivotReportsMethod(), getCallOptions(), request); } @@ -1299,8 +1299,9 @@ public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse batchRunPiv * */ public com.google.analytics.data.v1beta.Metadata getMetadata( - com.google.analytics.data.v1beta.GetMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.GetMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetadataMethod(), getCallOptions(), request); } @@ -1319,8 +1320,9 @@ public com.google.analytics.data.v1beta.Metadata getMetadata( * */ public com.google.analytics.data.v1beta.RunRealtimeReportResponse runRealtimeReport( - com.google.analytics.data.v1beta.RunRealtimeReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.RunRealtimeReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunRealtimeReportMethod(), getCallOptions(), request); } @@ -1339,8 +1341,9 @@ public com.google.analytics.data.v1beta.RunRealtimeReportResponse runRealtimeRep * */ public com.google.analytics.data.v1beta.CheckCompatibilityResponse checkCompatibility( - com.google.analytics.data.v1beta.CheckCompatibilityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.CheckCompatibilityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckCompatibilityMethod(), getCallOptions(), request); } @@ -1372,8 +1375,9 @@ public com.google.analytics.data.v1beta.CheckCompatibilityResponse checkCompatib * */ public com.google.longrunning.Operation createAudienceExport( - com.google.analytics.data.v1beta.CreateAudienceExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.CreateAudienceExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAudienceExportMethod(), getCallOptions(), request); } @@ -1400,8 +1404,9 @@ public com.google.longrunning.Operation createAudienceExport( * */ public com.google.analytics.data.v1beta.QueryAudienceExportResponse queryAudienceExport( - com.google.analytics.data.v1beta.QueryAudienceExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.QueryAudienceExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryAudienceExportMethod(), getCallOptions(), request); } @@ -1422,8 +1427,9 @@ public com.google.analytics.data.v1beta.QueryAudienceExportResponse queryAudienc * */ public com.google.analytics.data.v1beta.AudienceExport getAudienceExport( - com.google.analytics.data.v1beta.GetAudienceExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.GetAudienceExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAudienceExportMethod(), getCallOptions(), request); } @@ -1447,8 +1453,9 @@ public com.google.analytics.data.v1beta.AudienceExport getAudienceExport( * */ public com.google.analytics.data.v1beta.ListAudienceExportsResponse listAudienceExports( - com.google.analytics.data.v1beta.ListAudienceExportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.analytics.data.v1beta.ListAudienceExportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAudienceExportsMethod(), getCallOptions(), request); } } diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index ae2f85726966..1969433ddd67 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.74.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.74.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.75.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json b/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json index 0bea571d8094..da5265c79376 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json +++ b/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json @@ -1628,6 +1628,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig$StoredProcedureType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest", "queryAllDeclaredConstructors": true, diff --git a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java index 3b5da5aff721..7ef77c6af325 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java +++ b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java @@ -741,6 +741,7 @@ public void getListingTest() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -802,6 +803,7 @@ public void getListingTest2() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -865,6 +867,7 @@ public void createListingTest() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -928,6 +931,7 @@ public void createListingTest2() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -992,6 +996,7 @@ public void updateListingTest() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -1015,6 +1020,7 @@ public void updateListingTest() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -1064,6 +1070,7 @@ public void updateListingExceptionTest() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) diff --git a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientTest.java b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientTest.java index f3ddf784919b..17ae4955b201 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientTest.java +++ b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientTest.java @@ -652,6 +652,7 @@ public void getListingTest() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -707,6 +708,7 @@ public void getListingTest2() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -762,6 +764,7 @@ public void createListingTest() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -820,6 +823,7 @@ public void createListingTest2() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) @@ -878,6 +882,7 @@ public void updateListingTest() throws Exception { .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) + .setStoredProcedureConfig(StoredProcedureConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) diff --git a/java-analyticshub/grpc-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceGrpc.java b/java-analyticshub/grpc-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceGrpc.java index b39c33042b3d..2af8f1dad21d 100644 --- a/java-analyticshub/grpc-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceGrpc.java +++ b/java-analyticshub/grpc-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceGrpc.java @@ -29,9 +29,6 @@ * dataset in your project. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AnalyticsHubServiceGrpc { @@ -2520,8 +2517,9 @@ protected AnalyticsHubServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse listDataExchanges( - com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataExchangesMethod(), getCallOptions(), request); } @@ -2535,8 +2533,9 @@ public com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse listD */ public com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse listOrgDataExchanges( - com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrgDataExchangesMethod(), getCallOptions(), request); } @@ -2548,8 +2547,9 @@ public com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse listD * */ public com.google.cloud.bigquery.analyticshub.v1.DataExchange getDataExchange( - com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataExchangeMethod(), getCallOptions(), request); } @@ -2561,8 +2561,9 @@ public com.google.cloud.bigquery.analyticshub.v1.DataExchange getDataExchange( * */ public com.google.cloud.bigquery.analyticshub.v1.DataExchange createDataExchange( - com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataExchangeMethod(), getCallOptions(), request); } @@ -2574,8 +2575,9 @@ public com.google.cloud.bigquery.analyticshub.v1.DataExchange createDataExchange * */ public com.google.cloud.bigquery.analyticshub.v1.DataExchange updateDataExchange( - com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataExchangeMethod(), getCallOptions(), request); } @@ -2587,8 +2589,9 @@ public com.google.cloud.bigquery.analyticshub.v1.DataExchange updateDataExchange * */ public com.google.protobuf.Empty deleteDataExchange( - com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataExchangeMethod(), getCallOptions(), request); } @@ -2600,8 +2603,9 @@ public com.google.protobuf.Empty deleteDataExchange( * */ public com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse listListings( - com.google.cloud.bigquery.analyticshub.v1.ListListingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.ListListingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListListingsMethod(), getCallOptions(), request); } @@ -2613,8 +2617,9 @@ public com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse listListin * */ public com.google.cloud.bigquery.analyticshub.v1.Listing getListing( - com.google.cloud.bigquery.analyticshub.v1.GetListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.GetListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetListingMethod(), getCallOptions(), request); } @@ -2626,8 +2631,9 @@ public com.google.cloud.bigquery.analyticshub.v1.Listing getListing( * */ public com.google.cloud.bigquery.analyticshub.v1.Listing createListing( - com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateListingMethod(), getCallOptions(), request); } @@ -2639,8 +2645,9 @@ public com.google.cloud.bigquery.analyticshub.v1.Listing createListing( * */ public com.google.cloud.bigquery.analyticshub.v1.Listing updateListing( - com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateListingMethod(), getCallOptions(), request); } @@ -2652,8 +2659,9 @@ public com.google.cloud.bigquery.analyticshub.v1.Listing updateListing( * */ public com.google.protobuf.Empty deleteListing( - com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteListingMethod(), getCallOptions(), request); } @@ -2669,8 +2677,9 @@ public com.google.protobuf.Empty deleteListing( * */ public com.google.cloud.bigquery.analyticshub.v1.SubscribeListingResponse subscribeListing( - com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubscribeListingMethod(), getCallOptions(), request); } @@ -2685,8 +2694,9 @@ public com.google.cloud.bigquery.analyticshub.v1.SubscribeListingResponse subscr * */ public com.google.longrunning.Operation subscribeDataExchange( - com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubscribeDataExchangeMethod(), getCallOptions(), request); } @@ -2700,8 +2710,9 @@ public com.google.longrunning.Operation subscribeDataExchange( * */ public com.google.longrunning.Operation refreshSubscription( - com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRefreshSubscriptionMethod(), getCallOptions(), request); } @@ -2713,8 +2724,9 @@ public com.google.longrunning.Operation refreshSubscription( * */ public com.google.cloud.bigquery.analyticshub.v1.Subscription getSubscription( - com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); } @@ -2726,8 +2738,9 @@ public com.google.cloud.bigquery.analyticshub.v1.Subscription getSubscription( * */ public com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse listSubscriptions( - com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); } @@ -2741,8 +2754,9 @@ public com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse listS public com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse listSharedResourceSubscriptions( com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSharedResourceSubscriptionsMethod(), getCallOptions(), request); } @@ -2754,8 +2768,9 @@ public com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse listS * */ public com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse revokeSubscription( - com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRevokeSubscriptionMethod(), getCallOptions(), request); } @@ -2767,8 +2782,9 @@ public com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse revo * */ public com.google.longrunning.Operation deleteSubscription( - com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); } @@ -2779,8 +2795,9 @@ public com.google.longrunning.Operation deleteSubscription( * Gets the IAM policy. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -2791,8 +2808,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -2804,8 +2822,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -2817,8 +2835,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate createQueryTemplate( - com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQueryTemplateMethod(), getCallOptions(), request); } @@ -2830,8 +2849,9 @@ public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate createQueryTempla * */ public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate( - com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQueryTemplateMethod(), getCallOptions(), request); } @@ -2843,8 +2863,9 @@ public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate( * */ public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse listQueryTemplates( - com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQueryTemplatesMethod(), getCallOptions(), request); } @@ -2856,8 +2877,9 @@ public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse list * */ public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate updateQueryTemplate( - com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQueryTemplateMethod(), getCallOptions(), request); } @@ -2869,8 +2891,9 @@ public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate updateQueryTempla * */ public com.google.protobuf.Empty deleteQueryTemplate( - com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQueryTemplateMethod(), getCallOptions(), request); } @@ -2882,8 +2905,9 @@ public com.google.protobuf.Empty deleteQueryTemplate( * */ public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate submitQueryTemplate( - com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitQueryTemplateMethod(), getCallOptions(), request); } @@ -2895,8 +2919,9 @@ public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate submitQueryTempla * */ public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate approveQueryTemplate( - com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApproveQueryTemplateMethod(), getCallOptions(), request); } } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubProto.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubProto.java index 658ff3cd6bc1..081188468446 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubProto.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubProto.java @@ -144,6 +144,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -418,8 +422,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"|\n" + "\035DestinationPubSubSubscription\022[\n" + "\023pubsub_subscription\030\001 \001" - + "(\01329.google.cloud.bigquery.analyticshub.v1.PubSubSubscriptionB\003\340A\002\"\243" - + " \n" + + "(\01329.google.cloud.bigquery.analyticshub.v1.PubSubSubscriptionB\003\340A\002\"\207!\n" + "\007Listing\022`\n" + "\020bigquery_dataset\030\006 \001(\0132D.google.cloud." + "bigquery.analyticshub.v1.Listing.BigQueryDatasetSourceH\000\022X\n" @@ -443,13 +446,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016request_access\030\014 \001(\tB\003\340A\001\022l\n" + "\030restricted_export_config\030\r" + " \001(\0132E.google.c" - + "loud.bigquery.analyticshub.v1.Listing.RestrictedExportConfigB\003\340A\001\022V\n" - + "\016discovery_type\030\016" - + " \001(\01624.google.cloud.bigquery.analyticshub.v1.DiscoveryTypeB\003\340A\001H\001\210\001\001\022U\n\r" - + "resource_type\030\017 \001(\01629.google.cloud.bigquery" - + ".analyticshub.v1.SharedResourceTypeB\003\340A\003\022`\n" - + "\017commercial_info\030\021 \001(\0132=.google.cloud" - + ".bigquery.analyticshub.v1.Listing.CommercialInfoB\003\340A\003H\002\210\001\001\0225\n" + + "loud.bigquery.analyticshub.v1.Listing.RestrictedExportConfigB\003\340A\001\022b\n" + + "\027stored_procedure_config\030\024 \001(\0132<.google.cloud.bigque" + + "ry.analyticshub.v1.StoredProcedureConfigB\003\340A\001\022V\n" + + "\016discovery_type\030\016 \001(\01624.google.c" + + "loud.bigquery.analyticshub.v1.DiscoveryTypeB\003\340A\001H\001\210\001\001\022U\n\r" + + "resource_type\030\017 \001(\01629.g" + + "oogle.cloud.bigquery.analyticshub.v1.SharedResourceTypeB\003\340A\003\022`\n" + + "\017commercial_info\030\021 \001(\0132=.google.cloud.bigquery.analyticsh" + + "ub.v1.Listing.CommercialInfoB\003\340A\003H\002\210\001\001\0225\n" + "#log_linked_dataset_query_user_email\030\022" + " \001(\010B\003\340A\001H\003\210\001\001\022-\n" + "\033allow_only_metadata_sharing\030\023" @@ -457,15 +462,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025BigQueryDatasetSource\0228\n" + "\007dataset\030\001 \001(\tB\'\340A\001\372A!\n" + "\037bigquery.googleapis.com/Dataset\022v\n" - + "\022selected_resources\030\002 \003(\0132U.googl" - + "e.cloud.bigquery.analyticshub.v1.Listing" - + ".BigQueryDatasetSource.SelectedResourceB\003\340A\001\022\202\001\n" - + "\030restricted_export_policy\030\003 \001(\0132" - + "[.google.cloud.bigquery.analyticshub.v1." - + "Listing.BigQueryDatasetSource.RestrictedExportPolicyB\003\340A\001\022\036\n" + + "\022selected_resources\030\002 \003(\0132U.google.cloud.bigquery.ana" + + "lyticshub.v1.Listing.BigQueryDatasetSource.SelectedResourceB\003\340A\001\022\202\001\n" + + "\030restricted_export_policy\030\003 \001(\0132[.google.cloud.bigqu" + + "ery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicyB\003\340A\001\022\036\n" + "\021replica_locations\030\005 \003(\tB\003\340A\001\022m\n" - + "\022effective_replicas\030\006 \003(\0132L.google.cloud.bigquery.analyticshub.v1.Li" - + "sting.BigQueryDatasetSource.ReplicaB\003\340A\003\032\222\001\n" + + "\022effective_replicas\030\006 \003(\0132L.google.cloud.bigquer" + + "y.analyticshub.v1.Listing.BigQueryDatasetSource.ReplicaB\003\340A\003\032\222\001\n" + "\020SelectedResource\0226\n" + "\005table\030\001 \001(\tB%\340A\001\372A\037\n" + "\035bigquery.googleapis.com/TableH\000\022:\n" @@ -480,11 +483,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\032\273\003\n" + "\007Replica\022\025\n" + "\010location\030\001 \001(\tB\003\340A\003\022u\n\r" - + "replica_state\030\002 \001(\0162Y.google.cloud.bigqu" - + "ery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaStateB\003\340A\003\022z\n\r" - + "primary_state\030\003 \001(\0162Y.google.cloud.bigque" - + "ry.analyticshub.v1.Listing.BigQueryDatas" - + "etSource.Replica.PrimaryStateB\003\340A\003H\000\210\001\001\"P\n" + + "replica_state\030\002 \001(\0162Y.google.cloud.bigquery.analyticshub.v1." + + "Listing.BigQueryDatasetSource.Replica.ReplicaStateB\003\340A\003\022z\n\r" + + "primary_state\030\003 \001(\0162Y.google.cloud.bigquery.analyticshub.v1.L" + + "isting.BigQueryDatasetSource.Replica.PrimaryStateB\003\340A\003H\000\210\001\001\"P\n" + "\014ReplicaState\022\035\n" + "\031REPLICA_STATE_UNSPECIFIED\020\000\022\020\n" + "\014READY_TO_USE\020\001\022\017\n" @@ -502,14 +504,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034restrict_direct_table_access\030\001 \001(\010B\003\340A\003\022\"\n" + "\025restrict_query_result\030\002 \001(\010B\003\340A\001\032\224\004\n" + "\016CommercialInfo\022}\n" - + "\021cloud_marketplace\030\001 \001(\0132X.google.cloud.bigquery.analyt" - + "icshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfoB\003\340A\003H\000\210\001\001\032\354\002\n" + + "\021cloud_marketplace\030\001 \001(\0132X.google.c" + + "loud.bigquery.analyticshub.v1.Listing.Co" + + "mmercialInfo.GoogleCloudMarketplaceInfoB\003\340A\003H\000\210\001\001\032\354\002\n" + "\032GoogleCloudMarketplaceInfo\022M\n" + "\007service\030\001 \001(\tB7\340A\003\372A1\n" + "/servicemanagement.googleapis.com/ManagedServiceH\000\210\001\001\022\214\001\n" - + "\020commercial_state\030\003 \001(\0162h.google.cloud.bigquery.analytics" - + "hub.v1.Listing.CommercialInfo.GoogleClou" - + "dMarketplaceInfo.CommercialStateB\003\340A\003H\001\210\001\001\"O\n" + + "\020commercial_state\030\003 \001(\0162h.google.clou" + + "d.bigquery.analyticshub.v1.Listing.Comme" + + "rcialInfo.GoogleCloudMarketplaceInfo.CommercialStateB\003\340A\003H\001\210\001\001\"O\n" + "\017CommercialState\022 \n" + "\034COMMERCIAL_STATE_UNSPECIFIED\020\000\022\016\n\n" + "ONBOARDING\020\001\022\n\n" @@ -544,15 +547,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%CATEGORY_TRANSPORTATION_AND_LOGISTICS\020\022\022\037\n" + "\033CATEGORY_TRAVEL_AND_TOURISM\020\023\022 \n" + "\034CATEGORY_GOOGLE_EARTH_ENGINE\020\024:\202\001\352A\177\n" - + "#analyticshub.googleapis.com/Listing\022Xprojects/" - + "{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}B\010\n" + + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/locations/" + + "{location}/dataExchanges/{data_exchange}/listings/{listing}B\010\n" + "\006sourceB\021\n" + "\017_discovery_typeB\022\n" + "\020_commercial_infoB&\n" + "$_log_linked_dataset_query_user_emailB\036\n" - + "\034_allow_only_metadata_sharing\"\230\r\n" + + "\034_allow_only_metadata_sharing\"\375\001\n" + + "\025StoredProcedureConfig\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\001\022}\n" + + "\036allowed_stored_procedure_types\030\002 \003(\0162P.google.cl" + + "oud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureTypeB\003\340A\003\"O\n" + + "\023StoredProcedureType\022%\n" + + "!STORED_PROCEDURE_TYPE_UNSPECIFIED\020\000\022\021\n\r" + + "SQL_PROCEDURE\020\001\"\230\r\n" + "\014Subscription\022\026\n" - + "\007listing\030\005 \001(\tB\003\340A\003H\000\022\034\n\r" + + "\007listing\030\005 \001(\tB\003\340A\003H\000\022\034\n" + + "\r" + "data_exchange\030\006 \001(\tB\003\340A\003H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\0226\n\r" + "creation_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0229\n" @@ -563,43 +574,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\003\340A\003\022M\n" + "\005state\030\007" + " \001(\01629.google.cloud.bigquery.analyticshub.v1.Subscription.StateB\003\340A\003\022j\n" - + "\022linked_dataset_map\030\010 \003(\0132I.google.cloud.bi" - + "gquery.analyticshub.v1.Subscription.LinkedDatasetMapEntryB\003\340A\003\022\037\n" + + "\022linked_dataset_map\030\010 \003(\0132I.google.cloud.bigque" + + "ry.analyticshub.v1.Subscription.LinkedDatasetMapEntryB\003\340A\003\022\037\n" + "\022subscriber_contact\030\t \001(\tB\003\340A\003\022a\n" - + "\020linked_resources\030\013 \003(" - + "\0132B.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceB\003\340A\003\022U\n\r" - + "resource_type\030\014 \001(\01629.google.cloud.bigquer" - + "y.analyticshub.v1.SharedResourceTypeB\003\340A\003\022`\n" + + "\020linked_resources\030\013 \003(\0132B." + + "google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceB\003\340A\003\022U\n\r" + + "resource_type\030\014" + + " \001(\01629.google.cloud.bigquery.analyticshub.v1.SharedResourceTypeB\003\340A\003\022`\n" + "\017commercial_info\030\r" - + " \001(\0132B.google.clou" - + "d.bigquery.analyticshub.v1.Subscription.CommercialInfoB\003\340A\003\0225\n" + + " \001(\0132B.google.cloud.bi" + + "gquery.analyticshub.v1.Subscription.CommercialInfoB\003\340A\003\0225\n" + "#log_linked_dataset_query_user_email\030\016" + " \001(\010B\003\340A\003H\001\210\001\001\022[\n" - + "\023destination_dataset\030\017 \001(\01329.google.cloud.b" - + "igquery.analyticshub.v1.DestinationDatasetB\003\340A\001\032}\n" + + "\023destination_dataset\030\017 \001(\01329.google.cloud.bigqu" + + "ery.analyticshub.v1.DestinationDatasetB\003\340A\001\032}\n" + "\016LinkedResource\022\035\n" + "\016linked_dataset\030\001 \001(\tB\003\340A\003H\000\022)\n" + "\032linked_pubsub_subscription\030\003 \001(\tB\003\340A\003H\000\022\024\n" + "\007listing\030\002 \001(\tB\003\340A\003B\013\n" + "\treference\032\370\001\n" + "\016CommercialInfo\022}\n" - + "\021cloud_marketplace\030\001 \001(\0132].google.cloud.bigq" - + "uery.analyticshub.v1.Subscription.Commer" - + "cialInfo.GoogleCloudMarketplaceInfoB\003\340A\003\032g\n" + + "\021cloud_marketplace\030\001 \001(\0132].google.cloud.bigquery" + + ".analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfoB\003\340A\003\032g\n" + "\032GoogleCloudMarketplaceInfo\022I\n" + "\005order\030\001 \001(\tB:\372A7\n" + "5cloudcommerceconsumerprocurement.googleapis.com/Order\032{\n" + "\025LinkedDatasetMapEntry\022\013\n" + "\003key\030\001 \001(\t\022Q\n" - + "\005value\030\002 \001(\0132B" - + ".google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource:\0028\001\"U\n" + + "\005value\030\002 \001(\0132B.goo" + + "gle.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource:\0028\001\"U\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\020\n" + "\014STATE_ACTIVE\020\001\022\017\n" + "\013STATE_STALE\020\002\022\022\n" + "\016STATE_INACTIVE\020\003:s\352Ap\n" - + "(analyticshub.googleapis.com/Subscrip" - + "tion\022Dprojects/{project}/locations/{location}/subscriptions/{subscription}B\017\n\r" + + "(analyticshub.googleapis.com/Subscription" + + "\022Dprojects/{project}/locations/{location}/subscriptions/{subscription}B\017\n\r" + "resource_nameB&\n" + "$_log_linked_dataset_query_user_email\"\203\001\n" + "\030ListDataExchangesRequest\022@\n" @@ -608,16 +618,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\201\001\n" + "\031ListDataExchangesResponse\022K\n" - + "\016data_exchanges\030\001 \003(\0132" - + "3.google.cloud.bigquery.analyticshub.v1.DataExchange\022\027\n" + + "\016data_exchanges\030\001 \003(\01323.go" + + "ogle.cloud.bigquery.analyticshub.v1.DataExchange\022\027\n" + "\017next_page_token\030\002 \001(\t\"_\n" + "\033ListOrgDataExchangesRequest\022\031\n" + "\014organization\030\001 \001(\tB\003\340A\002\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\204\001\n" + "\034ListOrgDataExchangesResponse\022K\n" - + "\016data_exchanges\030\001 \003(\01323.google" - + ".cloud.bigquery.analyticshub.v1.DataExchange\022\027\n" + + "\016data_exchanges\030\001 \003(\01323.google.clo" + + "ud.bigquery.analyticshub.v1.DataExchange\022\027\n" + "\017next_page_token\030\002 \001(\t\"X\n" + "\026GetDataExchangeRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -626,13 +636,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB0\340A\002\372A*\022(analyticshub.googleapis.com/DataExchange\022\035\n" + "\020data_exchange_id\030\002 \001(\tB\003\340A\002\022O\n\r" - + "data_exchange\030\003 \001(\01323.google.c" - + "loud.bigquery.analyticshub.v1.DataExchangeB\003\340A\002\"\242\001\n" + + "data_exchange\030\003 \001(\01323.google.cloud" + + ".bigquery.analyticshub.v1.DataExchangeB\003\340A\002\"\242\001\n" + "\031UpdateDataExchangeRequest\0224\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022O\n\r" - + "data_exchange\030\002 \001(\01323.goo" - + "gle.cloud.bigquery.analyticshub.v1.DataExchangeB\003\340A\002\"[\n" + + "data_exchange\030\002 \001(\01323.google." + + "cloud.bigquery.analyticshub.v1.DataExchangeB\003\340A\002\"[\n" + "\031DeleteDataExchangeRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticshub.googleapis.com/DataExchange\"~\n" @@ -642,8 +652,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"q\n" + "\024ListListingsResponse\022@\n" - + "\010listings\030\001 \003(\0132..go" - + "ogle.cloud.bigquery.analyticshub.v1.Listing\022\027\n" + + "\010listings\030\001 \003(\0132..google" + + ".cloud.bigquery.analyticshub.v1.Listing\022\027\n" + "\017next_page_token\030\002 \001(\t\"N\n" + "\021GetListingRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" @@ -652,35 +662,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticshub.googleapis.com/DataExchange\022\027\n\n" + "listing_id\030\002 \001(\tB\003\340A\002\022D\n" - + "\007listing\030\003 \001(" - + "\0132..google.cloud.bigquery.analyticshub.v1.ListingB\003\340A\002\"\222\001\n" + + "\007listing\030\003 \001(\0132.." + + "google.cloud.bigquery.analyticshub.v1.ListingB\003\340A\002\"\222\001\n" + "\024UpdateListingRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022D\n" - + "\007listing\030\002 \001(\0132..google." - + "cloud.bigquery.analyticshub.v1.ListingB\003\340A\002\"q\n" + + "\007listing\030\002 \001(\0132..google.clou" + + "d.bigquery.analyticshub.v1.ListingB\003\340A\002\"q\n" + "\024DeleteListingRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#analyticshub.googleapis.com/Listing\022\036\n" + "\021delete_commercial\030\002 \001(\010B\003\340A\001\"\270\002\n" + "\027SubscribeListingRequest\022]\n" - + "\023destination_dataset\030\003 \001(\01329.google.cloud.bigquery." - + "analyticshub.v1.DestinationDatasetB\003\340A\004H\000\022t\n" - + "\037destination_pubsub_subscription\030\005 \001" - + "(\0132D.google.cloud.bigquery.analyticshub." - + "v1.DestinationPubSubSubscriptionB\003\340A\004H\000\0229\n" + + "\023destination_dataset\030\003" + + " \001(\01329.google.cloud.bigquery.analyticshub.v1.DestinationDatasetB\003\340A\004H\000\022t\n" + + "\037destination_pubsub_subscription\030\005 \001(\0132D" + + ".google.cloud.bigquery.analyticshub.v1.DestinationPubSubSubscriptionB\003\340A\004H\000\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#analyticshub.googleapis.com/ListingB\r\n" + "\013destination\"e\n" + "\030SubscribeListingResponse\022I\n" - + "\014subscription\030\001 " - + "\001(\01323.google.cloud.bigquery.analyticshub.v1.Subscription\"\262\002\n" + + "\014subscription\030\001 \001(\0132" + + "3.google.cloud.bigquery.analyticshub.v1.Subscription\"\262\002\n" + "\034SubscribeDataExchangeRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticshub.googleapis.com/DataExchange\022>\n" + "\013destination\030\002 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022[\n" - + "\023destination_dataset\030\005" - + " \001(\01329.google.cloud.bigquery.analyticshub.v1.DestinationDatasetB\003\340A\001\022\031\n" + + "\023destination_dataset\030\005 \001" + + "(\01329.google.cloud.bigquery.analyticshub.v1.DestinationDatasetB\003\340A\001\022\031\n" + "\014subscription\030\004 \001(\tB\003\340A\002\022\032\n" + "\022subscriber_contact\030\003 \001(\t\"j\n" + "\035SubscribeDataExchangeResponse\022I\n" @@ -702,8 +711,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\003 \001(\005\022\022\n\n" + "page_token\030\004 \001(\t\"\200\001\n" + "\031ListSubscriptionsResponse\022J\n\r" - + "subscriptions\030\001" - + " \003(\01323.google.cloud.bigquery.analyticshub.v1.Subscription\022\027\n" + + "subscriptions\030\001 \003" + + "(\01323.google.cloud.bigquery.analyticshub.v1.Subscription\022\027\n" + "\017next_page_token\030\002 \001(\t\"\223\001\n" + "&ListSharedResourceSubscriptionsRequest\022\033\n" + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n" @@ -712,8 +721,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\003 \001(\005\022\022\n\n" + "page_token\030\004 \001(\t\"\236\001\n" + "\'ListSharedResourceSubscriptionsResponse\022Z\n" - + "\035shared_resource_subscriptions\030\001 \003(\01323." - + "google.cloud.bigquery.analyticshub.v1.Subscription\022\027\n" + + "\035shared_resource_subscriptions\030\001 \003(\01323.goog" + + "le.cloud.bigquery.analyticshub.v1.Subscription\022\027\n" + "\017next_page_token\030\002 \001(\t\"{\n" + "\031RevokeSubscriptionRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -740,196 +749,195 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020BIGQUERY_DATASET\020\001\022\020\n" + "\014PUBSUB_TOPIC\020\0022\2008\n" + "\023AnalyticsHubService\022\332\001\n" - + "\021ListDataExchanges\022?.google.cloud.bigquery.analyticshub.v1.ListDat" - + "aExchangesRequest\032@.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRespo" - + "nse\"B\332A\006parent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*}/dataExchanges\022\364\001\n" - + "\024ListOrgDataExchanges\022B.google.cloud.bigquery" - + ".analyticshub.v1.ListOrgDataExchangesRequest\032C.google.cloud.bigquery.analyticshu" - + "b.v1.ListOrgDataExchangesResponse\"S\332A\014or" - + "ganization\202\323\344\223\002>\022\022\022\022\022\022*.google" - + ".cloud.bigquery.analyticshub.v1.Subscrib" - + "eListingRequest\032?.google.cloud.bigquery." - + "analyticshub.v1.SubscribeListingResponse" - + "\"X\332A\004name\202\323\344\223\002K\"F/v1/{name=projects/*/lo" - + "cations/*/dataExchanges/*/listings/*}:su" - + "bscribe:\001*\022\200\002\n\025SubscribeDataExchange\022C.g" - + "oogle.cloud.bigquery.analyticshub.v1.Sub" - + "scribeDataExchangeRequest\032\035.google.longr" - + "unning.Operation\"\202\001\312A2\n\035SubscribeDataExc" - + "hangeResponse\022\021OperationMetadata\332A\004name\202" - + "\323\344\223\002@\";/v1/{name=projects/*/locations/*/" - + "dataExchanges/*}:subscribe:\001*\022\367\001\n\023Refres" - + "hSubscription\022A.google.cloud.bigquery.an" - + "alyticshub.v1.RefreshSubscriptionRequest" - + "\032\035.google.longrunning.Operation\"~\312A0\n\033Re" - + "freshSubscriptionResponse\022\021OperationMeta" - + "data\332A\004name\202\323\344\223\002>\"9/v1/{name=projects/*/" - + "locations/*/subscriptions/*}:refresh:\001*\022" - + "\307\001\n\017GetSubscription\022=.google.cloud.bigqu" - + "ery.analyticshub.v1.GetSubscriptionReque" - + "st\0323.google.cloud.bigquery.analyticshub." - + "v1.Subscription\"@\332A\004name\202\323\344\223\0023\0221/v1/{nam" - + "e=projects/*/locations/*/subscriptions/*" - + "}\022\332\001\n\021ListSubscriptions\022?.google.cloud.b" - + "igquery.analyticshub.v1.ListSubscription" - + "sRequest\032@.google.cloud.bigquery.analyti" - + "cshub.v1.ListSubscriptionsResponse\"B\332A\006p" - + "arent\202\323\344\223\0023\0221/v1/{parent=projects/*/loca" - + "tions/*}/subscriptions\022\364\002\n\037ListSharedRes" - + "ourceSubscriptions\022M.google.cloud.bigque" - + "ry.analyticshub.v1.ListSharedResourceSub" - + "scriptionsRequest\032N.google.cloud.bigquer" - + "y.analyticshub.v1.ListSharedResourceSubs" - + "criptionsResponse\"\261\001\332A\010resource\202\323\344\223\002\237\001\022G" - + "/v1/{resource=projects/*/locations/*/dat" - + "aExchanges/*}:listSubscriptionsZT\022R/v1/{" - + "resource=projects/*/locations/*/dataExch" - + "anges/*/listings/*}:listSubscriptions\022\345\001" - + "\n\022RevokeSubscription\022@.google.cloud.bigq" - + "uery.analyticshub.v1.RevokeSubscriptionR" - + "equest\032A.google.cloud.bigquery.analytics" - + "hub.v1.RevokeSubscriptionResponse\"J\332A\004na" - + "me\202\323\344\223\002=\"8/v1/{name=projects/*/locations" - + "/*/subscriptions/*}:revoke:\001*\022\344\001\n\022Delete" - + "Subscription\022@.google.cloud.bigquery.ana" - + "lyticshub.v1.DeleteSubscriptionRequest\032\035" - + ".google.longrunning.Operation\"m\312A*\n\025goog" - + "le.protobuf.Empty\022\021OperationMetadata\332A\004n" - + "ame\202\323\344\223\0023*1/v1/{name=projects/*/location" - + "s/*/subscriptions/*}\022\267\002\n\014GetIamPolicy\022\"." - + "google.iam.v1.GetIamPolicyRequest\032\025.goog" - + "le.iam.v1.Policy\"\353\001\202\323\344\223\002\344\001\"B/v1/{resourc" + + "cshub.v1.UpdateListingRequest\032..google.c" + + "loud.bigquery.analyticshub.v1.Listing\"k\332" + + "A\023listing,update_mask\202\323\344\223\002O2D/v1/{listin" + + "g.name=projects/*/locations/*/dataExchan" + + "ges/*/listings/*}:\007listing\022\261\001\n\rDeleteLis" + + "ting\022;.google.cloud.bigquery.analyticshu" + + "b.v1.DeleteListingRequest\032\026.google.proto" + + "buf.Empty\"K\332A\004name\202\323\344\223\002>*.google.clo" + + "ud.bigquery.analyticshub.v1.SubscribeLis" + + "tingRequest\032?.google.cloud.bigquery.anal" + + "yticshub.v1.SubscribeListingResponse\"X\332A" + + "\004name\202\323\344\223\002K\"F/v1/{name=projects/*/locati" + + "ons/*/dataExchanges/*/listings/*}:subscr" + + "ibe:\001*\022\200\002\n\025SubscribeDataExchange\022C.googl" + + "e.cloud.bigquery.analyticshub.v1.Subscri" + + "beDataExchangeRequest\032\035.google.longrunni" + + "ng.Operation\"\202\001\312A2\n\035SubscribeDataExchang" + + "eResponse\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "@\";/v1/{name=projects/*/locations/*/data" + + "Exchanges/*}:subscribe:\001*\022\367\001\n\023RefreshSub" + + "scription\022A.google.cloud.bigquery.analyt" + + "icshub.v1.RefreshSubscriptionRequest\032\035.g" + + "oogle.longrunning.Operation\"~\312A0\n\033Refres" + + "hSubscriptionResponse\022\021OperationMetadata" + + "\332A\004name\202\323\344\223\002>\"9/v1/{name=projects/*/loca" + + "tions/*/subscriptions/*}:refresh:\001*\022\307\001\n\017" + + "GetSubscription\022=.google.cloud.bigquery." + + "analyticshub.v1.GetSubscriptionRequest\0323" + + ".google.cloud.bigquery.analyticshub.v1.S" + + "ubscription\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=pr" + + "ojects/*/locations/*/subscriptions/*}\022\332\001" + + "\n\021ListSubscriptions\022?.google.cloud.bigqu" + + "ery.analyticshub.v1.ListSubscriptionsReq" + + "uest\032@.google.cloud.bigquery.analyticshu" + + "b.v1.ListSubscriptionsResponse\"B\332A\006paren" + + "t\202\323\344\223\0023\0221/v1/{parent=projects/*/location" + + "s/*}/subscriptions\022\364\002\n\037ListSharedResourc" + + "eSubscriptions\022M.google.cloud.bigquery.a" + + "nalyticshub.v1.ListSharedResourceSubscri" + + "ptionsRequest\032N.google.cloud.bigquery.an" + + "alyticshub.v1.ListSharedResourceSubscrip" + + "tionsResponse\"\261\001\332A\010resource\202\323\344\223\002\237\001\022G/v1/" + + "{resource=projects/*/locations/*/dataExc" + + "hanges/*}:listSubscriptionsZT\022R/v1/{reso" + + "urce=projects/*/locations/*/dataExchange" + + "s/*/listings/*}:listSubscriptions\022\345\001\n\022Re" + + "vokeSubscription\022@.google.cloud.bigquery" + + ".analyticshub.v1.RevokeSubscriptionReque" + + "st\032A.google.cloud.bigquery.analyticshub." + + "v1.RevokeSubscriptionResponse\"J\332A\004name\202\323" + + "\344\223\002=\"8/v1/{name=projects/*/locations/*/s" + + "ubscriptions/*}:revoke:\001*\022\344\001\n\022DeleteSubs" + + "cription\022@.google.cloud.bigquery.analyti" + + "cshub.v1.DeleteSubscriptionRequest\032\035.goo" + + "gle.longrunning.Operation\"m\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\0023*1/v1/{name=projects/*/locations/*/" + + "subscriptions/*}\022\267\002\n\014GetIamPolicy\022\".goog" + + "le.iam.v1.GetIamPolicyRequest\032\025.google.i" + + "am.v1.Policy\"\353\001\202\323\344\223\002\344\001\"B/v1/{resource=pr" + + "ojects/*/locations/*/dataExchanges/*}:ge" + + "tIamPolicy:\001*ZR\"M/v1/{resource=projects/" + + "*/locations/*/dataExchanges/*/listings/*" + + "}:getIamPolicy:\001*ZG\"B/v1/{resource=proje" + + "cts/*/locations/*/subscriptions/*}:getIa" + + "mPolicy:\001*\022\267\002\n\014SetIamPolicy\022\".google.iam" + + ".v1.SetIamPolicyRequest\032\025.google.iam.v1." + + "Policy\"\353\001\202\323\344\223\002\344\001\"B/v1/{resource=projects" + + "/*/locations/*/dataExchanges/*}:setIamPo" + + "licy:\001*ZR\"M/v1/{resource=projects/*/loca" + + "tions/*/dataExchanges/*/listings/*}:setI" + + "amPolicy:\001*ZG\"B/v1/{resource=projects/*/" + + "locations/*/subscriptions/*}:setIamPolic" + + "y:\001*\022\232\002\n\022TestIamPermissions\022(.google.iam" + + ".v1.TestIamPermissionsRequest\032).google.i" + + "am.v1.TestIamPermissionsResponse\"\256\001\202\323\344\223\002" + + "\247\001\"H/v1/{resource=projects/*/locations/*" + + "/dataExchanges/*}:testIamPermissions:\001*Z" + + "X\"S/v1/{resource=projects/*/locations/*/" + + "dataExchanges/*/listings/*}:testIamPermi" + + "ssions:\001*\022\225\002\n\023CreateQueryTemplate\022A.goog" + + "le.cloud.bigquery.analyticshub.v1.Create" + + "QueryTemplateRequest\0324.google.cloud.bigq" + + "uery.analyticshub.v1.QueryTemplate\"\204\001\332A\'" + + "parent,query_template,query_template_id\202" + + "\323\344\223\002T\"B/v1/{parent=projects/*/locations/" + + "*/dataExchanges/*}/queryTemplates:\016query" + + "_template\022\333\001\n\020GetQueryTemplate\022>.google." + + "cloud.bigquery.analyticshub.v1.GetQueryT" + + "emplateRequest\0324.google.cloud.bigquery.a" + + "nalyticshub.v1.QueryTemplate\"Q\332A\004name\202\323\344" + + "\223\002D\022B/v1/{name=projects/*/locations/*/da" + + "taExchanges/*/queryTemplates/*}\022\356\001\n\022List" + + "QueryTemplates\022@.google.cloud.bigquery.a" + + "nalyticshub.v1.ListQueryTemplatesRequest" + + "\032A.google.cloud.bigquery.analyticshub.v1" + + ".ListQueryTemplatesResponse\"S\332A\006parent\202\323" + + "\344\223\002D\022B/v1/{parent=projects/*/locations/*" + + "/dataExchanges/*}/queryTemplates\022\227\002\n\023Upd" + + "ateQueryTemplate\022A.google.cloud.bigquery" + + ".analyticshub.v1.UpdateQueryTemplateRequ" + + "est\0324.google.cloud.bigquery.analyticshub" + + ".v1.QueryTemplate\"\206\001\332A\032query_template,up" + + "date_mask\202\323\344\223\002c2Q/v1/{query_template.nam" + "e=projects/*/locations/*/dataExchanges/*" - + "}:getIamPolicy:\001*ZR\"M/v1/{resource=proje" - + "cts/*/locations/*/dataExchanges/*/listin" - + "gs/*}:getIamPolicy:\001*ZG\"B/v1/{resource=p" - + "rojects/*/locations/*/subscriptions/*}:g" - + "etIamPolicy:\001*\022\267\002\n\014SetIamPolicy\022\".google" - + ".iam.v1.SetIamPolicyRequest\032\025.google.iam" - + ".v1.Policy\"\353\001\202\323\344\223\002\344\001\"B/v1/{resource=proj" - + "ects/*/locations/*/dataExchanges/*}:setI" - + "amPolicy:\001*ZR\"M/v1/{resource=projects/*/" - + "locations/*/dataExchanges/*/listings/*}:" - + "setIamPolicy:\001*ZG\"B/v1/{resource=project" - + "s/*/locations/*/subscriptions/*}:setIamP" - + "olicy:\001*\022\232\002\n\022TestIamPermissions\022(.google" - + ".iam.v1.TestIamPermissionsRequest\032).goog" - + "le.iam.v1.TestIamPermissionsResponse\"\256\001\202" - + "\323\344\223\002\247\001\"H/v1/{resource=projects/*/locatio" - + "ns/*/dataExchanges/*}:testIamPermissions" - + ":\001*ZX\"S/v1/{resource=projects/*/location" - + "s/*/dataExchanges/*/listings/*}:testIamP" - + "ermissions:\001*\022\225\002\n\023CreateQueryTemplate\022A." - + "google.cloud.bigquery.analyticshub.v1.Cr" - + "eateQueryTemplateRequest\0324.google.cloud." - + "bigquery.analyticshub.v1.QueryTemplate\"\204" - + "\001\332A\'parent,query_template,query_template" - + "_id\202\323\344\223\002T\"B/v1/{parent=projects/*/locati" - + "ons/*/dataExchanges/*}/queryTemplates:\016q" - + "uery_template\022\333\001\n\020GetQueryTemplate\022>.goo" - + "gle.cloud.bigquery.analyticshub.v1.GetQu" - + "eryTemplateRequest\0324.google.cloud.bigque" - + "ry.analyticshub.v1.QueryTemplate\"Q\332A\004nam" - + "e\202\323\344\223\002D\022B/v1/{name=projects/*/locations/" - + "*/dataExchanges/*/queryTemplates/*}\022\356\001\n\022" - + "ListQueryTemplates\022@.google.cloud.bigque" - + "ry.analyticshub.v1.ListQueryTemplatesReq" - + "uest\032A.google.cloud.bigquery.analyticshu" - + "b.v1.ListQueryTemplatesResponse\"S\332A\006pare" - + "nt\202\323\344\223\002D\022B/v1/{parent=projects/*/locatio" - + "ns/*/dataExchanges/*}/queryTemplates\022\227\002\n" - + "\023UpdateQueryTemplate\022A.google.cloud.bigq" - + "uery.analyticshub.v1.UpdateQueryTemplate" - + "Request\0324.google.cloud.bigquery.analytic" - + "shub.v1.QueryTemplate\"\206\001\332A\032query_templat" - + "e,update_mask\202\323\344\223\002c2Q/v1/{query_template" - + ".name=projects/*/locations/*/dataExchang" - + "es/*/queryTemplates/*}:\016query_template\022\303" - + "\001\n\023DeleteQueryTemplate\022A.google.cloud.bi" - + "gquery.analyticshub.v1.DeleteQueryTempla" - + "teRequest\032\026.google.protobuf.Empty\"Q\332A\004na" - + "me\202\323\344\223\002D*B/v1/{name=projects/*/locations" - + "/*/dataExchanges/*/queryTemplates/*}\022\353\001\n" - + "\023SubmitQueryTemplate\022A.google.cloud.bigq" - + "uery.analyticshub.v1.SubmitQueryTemplate" - + "Request\0324.google.cloud.bigquery.analytic" - + "shub.v1.QueryTemplate\"[\332A\004name\202\323\344\223\002N\"I/v" - + "1/{name=projects/*/locations/*/dataExcha" - + "nges/*/queryTemplates/*}:submit:\001*\022\356\001\n\024A" - + "pproveQueryTemplate\022B.google.cloud.bigqu" - + "ery.analyticshub.v1.ApproveQueryTemplate" - + "Request\0324.google.cloud.bigquery.analytic" - + "shub.v1.QueryTemplate\"\\\332A\004name\202\323\344\223\002O\"J/v" - + "1/{name=projects/*/locations/*/dataExcha" - + "nges/*/queryTemplates/*}:approve:\001*\032x\312A\033" - + "analyticshub.googleapis.com\322AWhttps://ww" - + "w.googleapis.com/auth/bigquery,https://w" - + "ww.googleapis.com/auth/cloud-platformB\364\005" - + "\n)com.google.cloud.bigquery.analyticshub" - + ".v1B\021AnalyticsHubProtoP\001ZMcloud.google.c" - + "om/go/bigquery/analyticshub/apiv1/analyt" - + "icshubpb;analyticshubpb\252\002%Google.Cloud.B" - + "igQuery.AnalyticsHub.V1\312\002%Google\\Cloud\\B" - + "igQuery\\AnalyticsHub\\V1\352\002)Google::Cloud:" - + ":Bigquery::AnalyticsHub::V1\352AH\n\037bigquery" - + ".googleapis.com/Dataset\022%projects/{proje" - + "ct}/datasets/{dataset}\352AU\n\035bigquery.goog" - + "leapis.com/Table\0224projects/{project}/dat" - + "asets/{dataset}/tables/{table}\352A@\n\033pubsu" - + "b.googleapis.com/Topic\022!projects/{projec" - + "t}/topics/{topic}\352A[\n\037bigquery.googleapi" - + "s.com/Routine\0228projects/{project}/datase" - + "ts/{dataset}/routines/{routine}\352AE\n/serv" - + "icemanagement.googleapis.com/ManagedServ" - + "ice\022\022services/{service}\352AZ\n5cloudcommerc" - + "econsumerprocurement.googleapis.com/Orde" - + "r\022!projects/{project}/orders/{order}b\006pr" - + "oto3" + + "/queryTemplates/*}:\016query_template\022\303\001\n\023D" + + "eleteQueryTemplate\022A.google.cloud.bigque" + + "ry.analyticshub.v1.DeleteQueryTemplateRe" + + "quest\032\026.google.protobuf.Empty\"Q\332A\004name\202\323" + + "\344\223\002D*B/v1/{name=projects/*/locations/*/d" + + "ataExchanges/*/queryTemplates/*}\022\353\001\n\023Sub" + + "mitQueryTemplate\022A.google.cloud.bigquery" + + ".analyticshub.v1.SubmitQueryTemplateRequ" + + "est\0324.google.cloud.bigquery.analyticshub" + + ".v1.QueryTemplate\"[\332A\004name\202\323\344\223\002N\"I/v1/{n" + + "ame=projects/*/locations/*/dataExchanges" + + "/*/queryTemplates/*}:submit:\001*\022\356\001\n\024Appro" + + "veQueryTemplate\022B.google.cloud.bigquery." + + "analyticshub.v1.ApproveQueryTemplateRequ" + + "est\0324.google.cloud.bigquery.analyticshub" + + ".v1.QueryTemplate\"\\\332A\004name\202\323\344\223\002O\"J/v1/{n" + + "ame=projects/*/locations/*/dataExchanges" + + "/*/queryTemplates/*}:approve:\001*\032x\312A\033anal" + + "yticshub.googleapis.com\322AWhttps://www.go" + + "ogleapis.com/auth/bigquery,https://www.g" + + "oogleapis.com/auth/cloud-platformB\364\005\n)co" + + "m.google.cloud.bigquery.analyticshub.v1B" + + "\021AnalyticsHubProtoP\001ZMcloud.google.com/g" + + "o/bigquery/analyticshub/apiv1/analyticsh" + + "ubpb;analyticshubpb\252\002%Google.Cloud.BigQu" + + "ery.AnalyticsHub.V1\312\002%Google\\Cloud\\BigQu" + + "ery\\AnalyticsHub\\V1\352\002)Google::Cloud::Big" + + "query::AnalyticsHub::V1\352AH\n\037bigquery.goo" + + "gleapis.com/Dataset\022%projects/{project}/" + + "datasets/{dataset}\352AU\n\035bigquery.googleap" + + "is.com/Table\0224projects/{project}/dataset" + + "s/{dataset}/tables/{table}\352A@\n\033pubsub.go" + + "ogleapis.com/Topic\022!projects/{project}/t" + + "opics/{topic}\352A[\n\037bigquery.googleapis.co" + + "m/Routine\0228projects/{project}/datasets/{" + + "dataset}/routines/{routine}\352AE\n/servicem" + + "anagement.googleapis.com/ManagedService\022" + + "\022services/{service}\352AZ\n5cloudcommercecon" + + "sumerprocurement.googleapis.com/Order\022!p" + + "rojects/{project}/orders/{order}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1155,6 +1163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Publisher", "RequestAccess", "RestrictedExportConfig", + "StoredProcedureConfig", "DiscoveryType", "ResourceType", "CommercialInfo", @@ -1246,8 +1255,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Service", "CommercialState", }); - internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor = + internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_descriptor = getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_descriptor, + new java.lang.String[] { + "Enabled", "AllowedStoredProcedureTypes", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor, @@ -1310,7 +1327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesRequest_descriptor, @@ -1318,7 +1335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesResponse_descriptor, @@ -1326,7 +1343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataExchanges", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesRequest_descriptor, @@ -1334,7 +1351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Organization", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesResponse_descriptor, @@ -1342,7 +1359,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataExchanges", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_GetDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_bigquery_analyticshub_v1_GetDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_GetDataExchangeRequest_descriptor, @@ -1350,7 +1367,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_CreateDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_bigquery_analyticshub_v1_CreateDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_CreateDataExchangeRequest_descriptor, @@ -1358,7 +1375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DataExchangeId", "DataExchange", }); internal_static_google_cloud_bigquery_analyticshub_v1_UpdateDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_bigquery_analyticshub_v1_UpdateDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_UpdateDataExchangeRequest_descriptor, @@ -1366,7 +1383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "DataExchange", }); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DeleteDataExchangeRequest_descriptor, @@ -1374,7 +1391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsRequest_descriptor, @@ -1382,7 +1399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsResponse_descriptor, @@ -1390,7 +1407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Listings", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_GetListingRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_bigquery_analyticshub_v1_GetListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_GetListingRequest_descriptor, @@ -1398,7 +1415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_CreateListingRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_bigquery_analyticshub_v1_CreateListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_CreateListingRequest_descriptor, @@ -1406,7 +1423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ListingId", "Listing", }); internal_static_google_cloud_bigquery_analyticshub_v1_UpdateListingRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_bigquery_analyticshub_v1_UpdateListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_UpdateListingRequest_descriptor, @@ -1414,7 +1431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Listing", }); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteListingRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DeleteListingRequest_descriptor, @@ -1422,7 +1439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DeleteCommercial", }); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingRequest_descriptor, @@ -1430,7 +1447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationDataset", "DestinationPubsubSubscription", "Name", "Destination", }); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingResponse_descriptor, @@ -1438,7 +1455,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeRequest_descriptor, @@ -1446,7 +1463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Destination", "DestinationDataset", "Subscription", "SubscriberContact", }); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeResponse_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeResponse_descriptor, @@ -1454,7 +1471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionRequest_descriptor, @@ -1462,7 +1479,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionResponse_descriptor, @@ -1470,7 +1487,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_cloud_bigquery_analyticshub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_bigquery_analyticshub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_GetSubscriptionRequest_descriptor, @@ -1478,7 +1495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsRequest_descriptor, @@ -1486,7 +1503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsResponse_descriptor, @@ -1494,7 +1511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsRequest_descriptor, @@ -1502,7 +1519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Resource", "IncludeDeletedSubscriptions", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsResponse_descriptor, @@ -1510,7 +1527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SharedResourceSubscriptions", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionRequest_descriptor, @@ -1518,13 +1535,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RevokeCommercial", }); internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DeleteSubscriptionRequest_descriptor, @@ -1532,7 +1549,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_bigquery_analyticshub_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_OperationMetadata_descriptor, diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Listing.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Listing.java index 0edb37f09a24..bed599114043 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Listing.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Listing.java @@ -12765,6 +12765,70 @@ public boolean hasRestrictedExportConfig() { : restrictedExportConfig_; } + public static final int STORED_PROCEDURE_CONFIG_FIELD_NUMBER = 20; + private com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig storedProcedureConfig_; + + /** + * + * + *
    +   * Optional. If set, stored procedure configuration will be propagated and
    +   * enforced on the linked dataset.
    +   * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the storedProcedureConfig field is set. + */ + @java.lang.Override + public boolean hasStoredProcedureConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Optional. If set, stored procedure configuration will be propagated and
    +   * enforced on the linked dataset.
    +   * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The storedProcedureConfig. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + getStoredProcedureConfig() { + return storedProcedureConfig_ == null + ? com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.getDefaultInstance() + : storedProcedureConfig_; + } + + /** + * + * + *
    +   * Optional. If set, stored procedure configuration will be propagated and
    +   * enforced on the linked dataset.
    +   * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfigOrBuilder + getStoredProcedureConfigOrBuilder() { + return storedProcedureConfig_ == null + ? com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.getDefaultInstance() + : storedProcedureConfig_; + } + public static final int DISCOVERY_TYPE_FIELD_NUMBER = 14; private int discoveryType_ = 0; @@ -12783,7 +12847,7 @@ public boolean hasRestrictedExportConfig() { */ @java.lang.Override public boolean hasDiscoveryType() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -12888,7 +12952,7 @@ public com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceT */ @java.lang.Override public boolean hasCommercialInfo() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -12951,7 +13015,7 @@ public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo getComme */ @java.lang.Override public boolean hasLogLinkedDatasetQueryUserEmail() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -12991,7 +13055,7 @@ public boolean getLogLinkedDatasetQueryUserEmail() { */ @java.lang.Override public boolean hasAllowOnlyMetadataSharing() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -13072,7 +13136,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(13, getRestrictedExportConfig()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(14, discoveryType_); } if (resourceType_ @@ -13085,15 +13149,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 16, (com.google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource) source_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(17, getCommercialInfo()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(18, logLinkedDatasetQueryUserEmail_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(19, allowOnlyMetadataSharing_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(20, getStoredProcedureConfig()); + } getUnknownFields().writeTo(output); } @@ -13155,7 +13222,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getRestrictedExportConfig()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, discoveryType_); } if (resourceType_ @@ -13169,17 +13236,21 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 16, (com.google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource) source_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getCommercialInfo()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 18, logLinkedDatasetQueryUserEmail_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, allowOnlyMetadataSharing_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(20, getStoredProcedureConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -13217,6 +13288,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRestrictedExportConfig()) { if (!getRestrictedExportConfig().equals(other.getRestrictedExportConfig())) return false; } + if (hasStoredProcedureConfig() != other.hasStoredProcedureConfig()) return false; + if (hasStoredProcedureConfig()) { + if (!getStoredProcedureConfig().equals(other.getStoredProcedureConfig())) return false; + } if (hasDiscoveryType() != other.hasDiscoveryType()) return false; if (hasDiscoveryType()) { if (discoveryType_ != other.discoveryType_) return false; @@ -13290,6 +13365,10 @@ public int hashCode() { hash = (37 * hash) + RESTRICTED_EXPORT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRestrictedExportConfig().hashCode(); } + if (hasStoredProcedureConfig()) { + hash = (37 * hash) + STORED_PROCEDURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStoredProcedureConfig().hashCode(); + } if (hasDiscoveryType()) { hash = (37 * hash) + DISCOVERY_TYPE_FIELD_NUMBER; hash = (53 * hash) + discoveryType_; @@ -13469,6 +13548,7 @@ private void maybeForceBuilderInitialization() { getDataProviderFieldBuilder(); getPublisherFieldBuilder(); getRestrictedExportConfigFieldBuilder(); + getStoredProcedureConfigFieldBuilder(); getCommercialInfoFieldBuilder(); } } @@ -13508,6 +13588,11 @@ public Builder clear() { restrictedExportConfigBuilder_.dispose(); restrictedExportConfigBuilder_ = null; } + storedProcedureConfig_ = null; + if (storedProcedureConfigBuilder_ != null) { + storedProcedureConfigBuilder_.dispose(); + storedProcedureConfigBuilder_ = null; + } discoveryType_ = 0; resourceType_ = 0; commercialInfo_ = null; @@ -13608,25 +13693,32 @@ private void buildPartial0(com.google.cloud.bigquery.analyticshub.v1.Listing res to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.discoveryType_ = discoveryType_; + result.storedProcedureConfig_ = + storedProcedureConfigBuilder_ == null + ? storedProcedureConfig_ + : storedProcedureConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.resourceType_ = resourceType_; + result.discoveryType_ = discoveryType_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.commercialInfo_ = - commercialInfoBuilder_ == null ? commercialInfo_ : commercialInfoBuilder_.build(); - to_bitField0_ |= 0x00000010; + result.resourceType_ = resourceType_; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.logLinkedDatasetQueryUserEmail_ = logLinkedDatasetQueryUserEmail_; + result.commercialInfo_ = + commercialInfoBuilder_ == null ? commercialInfo_ : commercialInfoBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.allowOnlyMetadataSharing_ = allowOnlyMetadataSharing_; + result.logLinkedDatasetQueryUserEmail_ = logLinkedDatasetQueryUserEmail_; to_bitField0_ |= 0x00000040; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.allowOnlyMetadataSharing_ = allowOnlyMetadataSharing_; + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -13742,6 +13834,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.analyticshub.v1.Listing other if (other.hasRestrictedExportConfig()) { mergeRestrictedExportConfig(other.getRestrictedExportConfig()); } + if (other.hasStoredProcedureConfig()) { + mergeStoredProcedureConfig(other.getStoredProcedureConfig()); + } if (other.hasDiscoveryType()) { setDiscoveryType(other.getDiscoveryType()); } @@ -13894,13 +13989,13 @@ public Builder mergeFrom( case 112: { discoveryType_ = input.readEnum(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 112 case 120: { resourceType_ = input.readEnum(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 120 case 130: @@ -13912,21 +14007,28 @@ public Builder mergeFrom( case 138: { input.readMessage(getCommercialInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 138 case 144: { logLinkedDatasetQueryUserEmail_ = input.readBool(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 144 case 152: { allowOnlyMetadataSharing_ = input.readBool(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 152 + case 162: + { + input.readMessage( + getStoredProcedureConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -16273,6 +16375,235 @@ public Builder clearRestrictedExportConfig() { return restrictedExportConfigBuilder_; } + private com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig storedProcedureConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.Builder, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfigOrBuilder> + storedProcedureConfigBuilder_; + + /** + * + * + *
    +     * Optional. If set, stored procedure configuration will be propagated and
    +     * enforced on the linked dataset.
    +     * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the storedProcedureConfig field is set. + */ + public boolean hasStoredProcedureConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
    +     * Optional. If set, stored procedure configuration will be propagated and
    +     * enforced on the linked dataset.
    +     * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The storedProcedureConfig. + */ + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + getStoredProcedureConfig() { + if (storedProcedureConfigBuilder_ == null) { + return storedProcedureConfig_ == null + ? com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.getDefaultInstance() + : storedProcedureConfig_; + } else { + return storedProcedureConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. If set, stored procedure configuration will be propagated and
    +     * enforced on the linked dataset.
    +     * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStoredProcedureConfig( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig value) { + if (storedProcedureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storedProcedureConfig_ = value; + } else { + storedProcedureConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If set, stored procedure configuration will be propagated and
    +     * enforced on the linked dataset.
    +     * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStoredProcedureConfig( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.Builder builderForValue) { + if (storedProcedureConfigBuilder_ == null) { + storedProcedureConfig_ = builderForValue.build(); + } else { + storedProcedureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If set, stored procedure configuration will be propagated and
    +     * enforced on the linked dataset.
    +     * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStoredProcedureConfig( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig value) { + if (storedProcedureConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && storedProcedureConfig_ != null + && storedProcedureConfig_ + != com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + .getDefaultInstance()) { + getStoredProcedureConfigBuilder().mergeFrom(value); + } else { + storedProcedureConfig_ = value; + } + } else { + storedProcedureConfigBuilder_.mergeFrom(value); + } + if (storedProcedureConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. If set, stored procedure configuration will be propagated and
    +     * enforced on the linked dataset.
    +     * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStoredProcedureConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + storedProcedureConfig_ = null; + if (storedProcedureConfigBuilder_ != null) { + storedProcedureConfigBuilder_.dispose(); + storedProcedureConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If set, stored procedure configuration will be propagated and
    +     * enforced on the linked dataset.
    +     * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.Builder + getStoredProcedureConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getStoredProcedureConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. If set, stored procedure configuration will be propagated and
    +     * enforced on the linked dataset.
    +     * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfigOrBuilder + getStoredProcedureConfigOrBuilder() { + if (storedProcedureConfigBuilder_ != null) { + return storedProcedureConfigBuilder_.getMessageOrBuilder(); + } else { + return storedProcedureConfig_ == null + ? com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.getDefaultInstance() + : storedProcedureConfig_; + } + } + + /** + * + * + *
    +     * Optional. If set, stored procedure configuration will be propagated and
    +     * enforced on the linked dataset.
    +     * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.Builder, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfigOrBuilder> + getStoredProcedureConfigFieldBuilder() { + if (storedProcedureConfigBuilder_ == null) { + storedProcedureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.Builder, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfigOrBuilder>( + getStoredProcedureConfig(), getParentForChildren(), isClean()); + storedProcedureConfig_ = null; + } + return storedProcedureConfigBuilder_; + } + private int discoveryType_ = 0; /** @@ -16290,7 +16621,7 @@ public Builder clearRestrictedExportConfig() { */ @java.lang.Override public boolean hasDiscoveryType() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -16327,7 +16658,7 @@ public int getDiscoveryTypeValue() { */ public Builder setDiscoveryTypeValue(int value) { discoveryType_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -16372,7 +16703,7 @@ public Builder setDiscoveryType(com.google.cloud.bigquery.analyticshub.v1.Discov if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; discoveryType_ = value.getNumber(); onChanged(); return this; @@ -16392,7 +16723,7 @@ public Builder setDiscoveryType(com.google.cloud.bigquery.analyticshub.v1.Discov * @return This builder for chaining. */ public Builder clearDiscoveryType() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); discoveryType_ = 0; onChanged(); return this; @@ -16434,7 +16765,7 @@ public int getResourceTypeValue() { */ public Builder setResourceTypeValue(int value) { resourceType_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -16480,7 +16811,7 @@ public Builder setResourceType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; resourceType_ = value.getNumber(); onChanged(); return this; @@ -16500,7 +16831,7 @@ public Builder setResourceType( * @return This builder for chaining. */ public Builder clearResourceType() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); resourceType_ = 0; onChanged(); return this; @@ -16528,7 +16859,7 @@ public Builder clearResourceType() { * @return Whether the commercialInfo field is set. */ public boolean hasCommercialInfo() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -16577,7 +16908,7 @@ public Builder setCommercialInfo( } else { commercialInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -16601,7 +16932,7 @@ public Builder setCommercialInfo( } else { commercialInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -16621,7 +16952,7 @@ public Builder setCommercialInfo( public Builder mergeCommercialInfo( com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo value) { if (commercialInfoBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && commercialInfo_ != null && commercialInfo_ != com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo @@ -16634,7 +16965,7 @@ public Builder mergeCommercialInfo( commercialInfoBuilder_.mergeFrom(value); } if (commercialInfo_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -16653,7 +16984,7 @@ public Builder mergeCommercialInfo( *
    */ public Builder clearCommercialInfo() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); commercialInfo_ = null; if (commercialInfoBuilder_ != null) { commercialInfoBuilder_.dispose(); @@ -16677,7 +17008,7 @@ public Builder clearCommercialInfo() { */ public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.Builder getCommercialInfoBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return getCommercialInfoFieldBuilder().getBuilder(); } @@ -16752,7 +17083,7 @@ public Builder clearCommercialInfo() { */ @java.lang.Override public boolean hasLogLinkedDatasetQueryUserEmail() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -16792,7 +17123,7 @@ public boolean getLogLinkedDatasetQueryUserEmail() { public Builder setLogLinkedDatasetQueryUserEmail(boolean value) { logLinkedDatasetQueryUserEmail_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -16812,7 +17143,7 @@ public Builder setLogLinkedDatasetQueryUserEmail(boolean value) { * @return This builder for chaining. */ public Builder clearLogLinkedDatasetQueryUserEmail() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); logLinkedDatasetQueryUserEmail_ = false; onChanged(); return this; @@ -16836,7 +17167,7 @@ public Builder clearLogLinkedDatasetQueryUserEmail() { */ @java.lang.Override public boolean hasAllowOnlyMetadataSharing() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -16876,7 +17207,7 @@ public boolean getAllowOnlyMetadataSharing() { public Builder setAllowOnlyMetadataSharing(boolean value) { allowOnlyMetadataSharing_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -16896,7 +17227,7 @@ public Builder setAllowOnlyMetadataSharing(boolean value) { * @return This builder for chaining. */ public Builder clearAllowOnlyMetadataSharing() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); allowOnlyMetadataSharing_ = false; onChanged(); return this; diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingOrBuilder.java index 09f76e1e7e23..bd8368947897 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingOrBuilder.java @@ -546,6 +546,53 @@ public interface ListingOrBuilder com.google.cloud.bigquery.analyticshub.v1.Listing.RestrictedExportConfigOrBuilder getRestrictedExportConfigOrBuilder(); + /** + * + * + *
    +   * Optional. If set, stored procedure configuration will be propagated and
    +   * enforced on the linked dataset.
    +   * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the storedProcedureConfig field is set. + */ + boolean hasStoredProcedureConfig(); + + /** + * + * + *
    +   * Optional. If set, stored procedure configuration will be propagated and
    +   * enforced on the linked dataset.
    +   * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The storedProcedureConfig. + */ + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig getStoredProcedureConfig(); + + /** + * + * + *
    +   * Optional. If set, stored procedure configuration will be propagated and
    +   * enforced on the linked dataset.
    +   * 
    + * + * + * .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfigOrBuilder + getStoredProcedureConfigOrBuilder(); + /** * * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/MessageTransform.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/MessageTransform.java index 8a013ed73de8..6443a846a5db 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/MessageTransform.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/MessageTransform.java @@ -187,7 +187,7 @@ public com.google.cloud.bigquery.analyticshub.v1.JavaScriptUDF getJavascriptUdf( * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.bigquery.analyticshub.v1.MessageTransform.enabled is deprecated. See - * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=456 + * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=466 * @return The enabled. */ @java.lang.Override @@ -912,7 +912,7 @@ public Builder clearJavascriptUdf() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.bigquery.analyticshub.v1.MessageTransform.enabled is deprecated. See - * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=456 + * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=466 * @return The enabled. */ @java.lang.Override @@ -932,7 +932,7 @@ public boolean getEnabled() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.bigquery.analyticshub.v1.MessageTransform.enabled is deprecated. See - * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=456 + * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=466 * @param value The enabled to set. * @return This builder for chaining. */ @@ -956,7 +956,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.bigquery.analyticshub.v1.MessageTransform.enabled is deprecated. See - * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=456 + * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=466 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/MessageTransformOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/MessageTransformOrBuilder.java index cebf807fa647..8c175b6ea86d 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/MessageTransformOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/MessageTransformOrBuilder.java @@ -81,7 +81,7 @@ public interface MessageTransformOrBuilder * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.bigquery.analyticshub.v1.MessageTransform.enabled is deprecated. See - * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=456 + * google/cloud/bigquery/analyticshub/v1/pubsub.proto;l=466 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubSubSubscription.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubSubSubscription.java index fbf5daaea104..d9a241f28359 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubSubSubscription.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubSubSubscription.java @@ -67,6 +67,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 9: return internalGetLabels(); + case 26: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1038,6 +1040,133 @@ public com.google.cloud.bigquery.analyticshub.v1.MessageTransform getMessageTran return messageTransforms_.get(index); } + public static final int TAGS_FIELD_NUMBER = 26; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.bigquery.analyticshub.v1.PubsubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1099,6 +1228,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < messageTransforms_.size(); i++) { output.writeMessage(25, messageTransforms_.get(i)); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 26); getUnknownFields().writeTo(output); } @@ -1166,6 +1297,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, messageTransforms_.get(i)); } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, tags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1219,6 +1360,7 @@ public boolean equals(final java.lang.Object obj) { if (getDetached() != other.getDetached()) return false; if (getEnableExactlyOnceDelivery() != other.getEnableExactlyOnceDelivery()) return false; if (!getMessageTransformsList().equals(other.getMessageTransformsList())) return false; + if (!internalGetTags().equals(other.internalGetTags())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1280,6 +1422,10 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_TRANSFORMS_FIELD_NUMBER; hash = (53 * hash) + getMessageTransformsList().hashCode(); } + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1410,6 +1556,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 9: return internalGetLabels(); + case 26: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1421,6 +1569,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 9: return internalGetMutableLabels(); + case 26: + return internalGetMutableTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1513,6 +1663,7 @@ public Builder clear() { messageTransformsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); + internalGetMutableTags().clear(); return this; } @@ -1629,6 +1780,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00004000) != 0)) { result.enableExactlyOnceDelivery_ = enableExactlyOnceDelivery_; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -1754,6 +1909,8 @@ public Builder mergeFrom(com.google.cloud.bigquery.analyticshub.v1.PubSubSubscri } } } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00010000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1894,6 +2051,15 @@ public Builder mergeFrom( } break; } // case 202 + case 210: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00010000; + break; + } // case 210 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4941,6 +5107,213 @@ public Builder removeMessageTransforms(int index) { return messageTransformsBuilder_; } + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00010000; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00010000); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00010000; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00010000; + return this; + } + + /** + * + * + *
    +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +     * resource. For example:
    +     *   "123/environment": "production",
    +     *   "123/costCenter": "marketing"
    +     * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00010000; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubSubSubscriptionOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubSubSubscriptionOrBuilder.java index d6b0fc518a9c..35717172f3f3 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubSubSubscriptionOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubSubSubscriptionOrBuilder.java @@ -715,4 +715,92 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.bigquery.analyticshub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder( int index); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
    +   * resource. For example:
    +   *   "123/environment": "production",
    +   *   "123/costCenter": "marketing"
    +   * 
    + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubsubProto.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubsubProto.java index c42579f51638..e4414483bdec 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubsubProto.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/PubsubProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_analyticshub_v1_RetryPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,7 +108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "2google/cloud/bigquery/analyticshub/v1/pubsub.proto\022%google.cloud.bigquery.anal" + "yticshub.v1\032\037google/api/field_behavior.p" - + "roto\032\031google/api/resource.proto\032\036google/protobuf/duration.proto\"\226\010\n" + + "roto\032\031google/api/resource.proto\032\036google/protobuf/duration.proto\"\241\t\n" + "\022PubSubSubscription\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022K\n" + "\013push_config\030\004" @@ -131,9 +135,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010detached\030\017 \001(\010B\003\340A\001\022)\n" + "\034enable_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022X\n" + "\022message_transforms\030\031 " - + "\003(\01327.google.cloud.bigquery.analyticshub.v1.MessageTransformB\003\340A\001\032-\n" + + "\003(\01327.google.cloud.bigquery.analyticshub.v1.MessageTransformB\003\340A\001\022\\\n" + + "\004tags\030\032 \003(\0132" + + "C.google.cloud.bigquery.analyticshub.v1.PubSubSubscription.TagsEntryB" + + "\t\340A\004\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -145,15 +155,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ExpirationPolicy\022+\n" + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\356\004\n\n" + "PushConfig\022V\n\n" - + "oidc_token\030\003 \001(\0132;.google.c" - + "loud.bigquery.analyticshub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022^\n" - + "\016pubsub_wrapper\030\004 \001(" - + "\0132?.google.cloud.bigquery.analyticshub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022V\n\n" - + "no_wrapper\030\005 \001(\0132;.google.cloud.bigquery.an" - + "alyticshub.v1.PushConfig.NoWrapperB\003\340A\001H\001\022\032\n\r" + + "oidc_token\030\003" + + " \001(\0132;.google.cloud.bigquery.analyticshub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022^\n" + + "\016pubsub_wrapper\030\004 \001(\0132?.google.cloud.bigq" + + "uery.analyticshub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022V\n\n" + + "no_wrapper\030\005 \001(\0132;.googl" + + "e.cloud.bigquery.analyticshub.v1.PushConfig.NoWrapperB\003\340A\001H\001\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022Z\n\n" - + "attributes\030\002 \003(\0132A.google.cloud.bigquery.analyt" - + "icshub.v1.PushConfig.AttributesEntryB\003\340A\001\032F\n" + + "attributes\030\002 \003(\0132A.google.cl" + + "oud.bigquery.analyticshub.v1.PushConfig.AttributesEntryB\003\340A\001\032F\n" + "\tOidcToken\022\"\n" + "\025service_account_email\030\001 \001(\tB\003\340A\001\022\025\n" + "\010audience\030\002 \001(\tB\003\340A\001\032\017\n\r" @@ -173,10 +183,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\306\004\n" + "\022CloudStorageConfig\022`\n" - + "\013text_config\030\004 \001(\0132D.google.cloud.b" - + "igquery.analyticshub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022`\n" - + "\013avro_config\030\005 \001(\0132D.google.cloud.bigquery.analyticshub.v" - + "1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\022\023\n" + + "\013text_config\030\004 \001(\0132D.google.cloud.bigquery.analyticshub." + + "v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022`\n" + + "\013avro_config\030\005 \001(\0132D.google.cloud.bigq" + + "uery.analyticshub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\002\022\034\n" + "\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" @@ -193,19 +203,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020use_topic_schema\030\002 \001(\010B\003\340A\001B\017\n\r" + "output_format\"\243\001\n" + "\020MessageTransform\022S\n" - + "\016javascript_udf\030\002" - + " \001(\01324.google.cloud.bigquery.analyticshub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + + "\016javascript_udf\030\002 \001(\01324.google.cl" + + "oud.bigquery.analyticshub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" + "\ttransform\">\n\r" + "JavaScriptUDF\022\032\n\r" + "function_name\030\001 \001(\tB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002B\205\002\n" - + ")com.google.cloud.bigquery.analyticshub.v1" - + "B\013PubsubProtoP\001ZMcloud.google.com/go/bigquery/analyticshub/apiv1/analyticshubpb;" - + "analyticshubpb\252\002%Google.Cloud.BigQuery.A" - + "nalyticsHub.V1\312\002%Google\\Cloud\\BigQuery\\A" - + "nalyticsHub\\V1\352\002)Google::Cloud::Bigquery::AnalyticsHub::V1b\006proto3" + + ")com.google.cloud.bigquery.analyticshub.v1B\013PubsubProtoP\001ZMclou" + + "d.google.com/go/bigquery/analyticshub/apiv1/analyticshubpb;analyticshubpb\252\002%Goog" + + "le.Cloud.BigQuery.AnalyticsHub.V1\312\002%Goog" + + "le\\Cloud\\BigQuery\\AnalyticsHub\\V1\352\002)Goog" + + "le::Cloud::Bigquery::AnalyticsHub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -237,6 +247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Detached", "EnableExactlyOnceDelivery", "MessageTransforms", + "Tags", }); internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_LabelsEntry_descriptor = internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_descriptor @@ -248,6 +259,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_TagsEntry_descriptor = + internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_PubSubSubscription_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_bigquery_analyticshub_v1_RetryPolicy_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_bigquery_analyticshub_v1_RetryPolicy_fieldAccessorTable = diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/StoredProcedureConfig.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/StoredProcedureConfig.java new file mode 100644 index 000000000000..eff58919c563 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/StoredProcedureConfig.java @@ -0,0 +1,1165 @@ +/* + * Copyright 2025 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! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
    + * Stored procedure configuration, used to configure stored procedure sharing
    + * on linked dataset.
    + * 
    + * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig} + */ +public final class StoredProcedureConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig) + StoredProcedureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StoredProcedureConfig.newBuilder() to construct. + private StoredProcedureConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StoredProcedureConfig() { + allowedStoredProcedureTypes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StoredProcedureConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.class, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.Builder.class); + } + + /** + * + * + *
    +   * Enum to specify the type of stored procedure to share.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType} + */ + public enum StoredProcedureType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STORED_PROCEDURE_TYPE_UNSPECIFIED = 0; + */ + STORED_PROCEDURE_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * SQL stored procedure.
    +     * 
    + * + * SQL_PROCEDURE = 1; + */ + SQL_PROCEDURE(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STORED_PROCEDURE_TYPE_UNSPECIFIED = 0; + */ + public static final int STORED_PROCEDURE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * SQL stored procedure.
    +     * 
    + * + * SQL_PROCEDURE = 1; + */ + public static final int SQL_PROCEDURE_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 StoredProcedureType 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 StoredProcedureType forNumber(int value) { + switch (value) { + case 0: + return STORED_PROCEDURE_TYPE_UNSPECIFIED; + case 1: + return SQL_PROCEDURE; + 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 StoredProcedureType findValueByNumber(int number) { + return StoredProcedureType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StoredProcedureType[] VALUES = values(); + + public static StoredProcedureType 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 StoredProcedureType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType) + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
    +   * Optional. If true, enable sharing of stored procedure.
    +   * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int ALLOWED_STORED_PROCEDURE_TYPES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List allowedStoredProcedureTypes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType> + allowedStoredProcedureTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + .StoredProcedureType>() { + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + .StoredProcedureType + convert(java.lang.Integer from) { + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType + result = + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + .StoredProcedureType.forNumber(from); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + .StoredProcedureType.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the allowedStoredProcedureTypes. + */ + @java.lang.Override + public java.util.List< + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType> + getAllowedStoredProcedureTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType>( + allowedStoredProcedureTypes_, allowedStoredProcedureTypes_converter_); + } + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of allowedStoredProcedureTypes. + */ + @java.lang.Override + public int getAllowedStoredProcedureTypesCount() { + return allowedStoredProcedureTypes_.size(); + } + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The allowedStoredProcedureTypes at the given index. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType + getAllowedStoredProcedureTypes(int index) { + return allowedStoredProcedureTypes_converter_.convert(allowedStoredProcedureTypes_.get(index)); + } + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for allowedStoredProcedureTypes. + */ + @java.lang.Override + public java.util.List getAllowedStoredProcedureTypesValueList() { + return allowedStoredProcedureTypes_; + } + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of allowedStoredProcedureTypes at the given index. + */ + @java.lang.Override + public int getAllowedStoredProcedureTypesValue(int index) { + return allowedStoredProcedureTypes_.get(index); + } + + private int allowedStoredProcedureTypesMemoizedSerializedSize; + + 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 (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (getAllowedStoredProcedureTypesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(allowedStoredProcedureTypesMemoizedSerializedSize); + } + for (int i = 0; i < allowedStoredProcedureTypes_.size(); i++) { + output.writeEnumNoTag(allowedStoredProcedureTypes_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedStoredProcedureTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + allowedStoredProcedureTypes_.get(i)); + } + size += dataSize; + if (!getAllowedStoredProcedureTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + allowedStoredProcedureTypesMemoizedSerializedSize = dataSize; + } + 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.bigquery.analyticshub.v1.StoredProcedureConfig)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig other = + (com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!allowedStoredProcedureTypes_.equals(other.allowedStoredProcedureTypes_)) 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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + if (getAllowedStoredProcedureTypesCount() > 0) { + hash = (37 * hash) + ALLOWED_STORED_PROCEDURE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + allowedStoredProcedureTypes_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig 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.bigquery.analyticshub.v1.StoredProcedureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig 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.bigquery.analyticshub.v1.StoredProcedureConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Stored procedure configuration, used to configure stored procedure sharing
    +   * on linked dataset.
    +   * 
    + * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig) + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.class, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.Builder.class); + } + + // Construct using com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + allowedStoredProcedureTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_StoredProcedureConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig build() { + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig result = + new com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig result) { + if (((bitField0_ & 0x00000002) != 0)) { + allowedStoredProcedureTypes_ = + java.util.Collections.unmodifiableList(allowedStoredProcedureTypes_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.allowedStoredProcedureTypes_ = allowedStoredProcedureTypes_; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig) { + return mergeFrom((com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.allowedStoredProcedureTypes_.isEmpty()) { + if (allowedStoredProcedureTypes_.isEmpty()) { + allowedStoredProcedureTypes_ = other.allowedStoredProcedureTypes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAllowedStoredProcedureTypesIsMutable(); + allowedStoredProcedureTypes_.addAll(other.allowedStoredProcedureTypes_); + } + 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 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + int tmpRaw = input.readEnum(); + ensureAllowedStoredProcedureTypesIsMutable(); + allowedStoredProcedureTypes_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureAllowedStoredProcedureTypesIsMutable(); + allowedStoredProcedureTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + 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 boolean enabled_; + + /** + * + * + *
    +     * Optional. If true, enable sharing of stored procedure.
    +     * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
    +     * Optional. If true, enable sharing of stored procedure.
    +     * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If true, enable sharing of stored procedure.
    +     * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private java.util.List allowedStoredProcedureTypes_ = + java.util.Collections.emptyList(); + + private void ensureAllowedStoredProcedureTypesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + allowedStoredProcedureTypes_ = + new java.util.ArrayList(allowedStoredProcedureTypes_); + bitField0_ |= 0x00000002; + } + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the allowedStoredProcedureTypes. + */ + public java.util.List< + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType> + getAllowedStoredProcedureTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType>( + allowedStoredProcedureTypes_, allowedStoredProcedureTypes_converter_); + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of allowedStoredProcedureTypes. + */ + public int getAllowedStoredProcedureTypesCount() { + return allowedStoredProcedureTypes_.size(); + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The allowedStoredProcedureTypes at the given index. + */ + public com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType + getAllowedStoredProcedureTypes(int index) { + return allowedStoredProcedureTypes_converter_.convert( + allowedStoredProcedureTypes_.get(index)); + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The allowedStoredProcedureTypes to set. + * @return This builder for chaining. + */ + public Builder setAllowedStoredProcedureTypes( + int index, + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedStoredProcedureTypesIsMutable(); + allowedStoredProcedureTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The allowedStoredProcedureTypes to add. + * @return This builder for chaining. + */ + public Builder addAllowedStoredProcedureTypes( + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedStoredProcedureTypesIsMutable(); + allowedStoredProcedureTypes_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The allowedStoredProcedureTypes to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedStoredProcedureTypes( + java.lang.Iterable< + ? extends + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + .StoredProcedureType> + values) { + ensureAllowedStoredProcedureTypesIsMutable(); + for (com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType + value : values) { + allowedStoredProcedureTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedStoredProcedureTypes() { + allowedStoredProcedureTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for + * allowedStoredProcedureTypes. + */ + public java.util.List getAllowedStoredProcedureTypesValueList() { + return java.util.Collections.unmodifiableList(allowedStoredProcedureTypes_); + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of allowedStoredProcedureTypes at the given index. + */ + public int getAllowedStoredProcedureTypesValue(int index) { + return allowedStoredProcedureTypes_.get(index); + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for allowedStoredProcedureTypes to set. + * @return This builder for chaining. + */ + public Builder setAllowedStoredProcedureTypesValue(int index, int value) { + ensureAllowedStoredProcedureTypesIsMutable(); + allowedStoredProcedureTypes_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for allowedStoredProcedureTypes to add. + * @return This builder for chaining. + */ + public Builder addAllowedStoredProcedureTypesValue(int value) { + ensureAllowedStoredProcedureTypesIsMutable(); + allowedStoredProcedureTypes_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Types of stored procedure supported to share.
    +     * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for allowedStoredProcedureTypes to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedStoredProcedureTypesValue( + java.lang.Iterable values) { + ensureAllowedStoredProcedureTypesIsMutable(); + for (int value : values) { + allowedStoredProcedureTypes_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig) + private static final com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoredProcedureConfig 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.bigquery.analyticshub.v1.StoredProcedureConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/StoredProcedureConfigOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/StoredProcedureConfigOrBuilder.java new file mode 100644 index 000000000000..1b15f70f1c37 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/StoredProcedureConfigOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2025 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! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface StoredProcedureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. If true, enable sharing of stored procedure.
    +   * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the allowedStoredProcedureTypes. + */ + java.util.List< + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType> + getAllowedStoredProcedureTypesList(); + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of allowedStoredProcedureTypes. + */ + int getAllowedStoredProcedureTypesCount(); + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The allowedStoredProcedureTypes at the given index. + */ + com.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType + getAllowedStoredProcedureTypes(int index); + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for allowedStoredProcedureTypes. + */ + java.util.List getAllowedStoredProcedureTypesValueList(); + + /** + * + * + *
    +   * Output only. Types of stored procedure supported to share.
    +   * 
    + * + * + * repeated .google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType allowed_stored_procedure_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of allowedStoredProcedureTypes at the given index. + */ + int getAllowedStoredProcedureTypesValue(int index); +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/analyticshub.proto b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/analyticshub.proto index bc5f41fd0171..19c98207bdf9 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/analyticshub.proto +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/analyticshub.proto @@ -1100,6 +1100,11 @@ message Listing { RestrictedExportConfig restricted_export_config = 13 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If set, stored procedure configuration will be propagated and + // enforced on the linked dataset. + StoredProcedureConfig stored_procedure_config = 20 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Type of discovery of the listing on the discovery page. optional DiscoveryType discovery_type = 14 [(google.api.field_behavior) = OPTIONAL]; @@ -1124,6 +1129,26 @@ message Listing { [(google.api.field_behavior) = OPTIONAL]; } +// Stored procedure configuration, used to configure stored procedure sharing +// on linked dataset. +message StoredProcedureConfig { + // Enum to specify the type of stored procedure to share. + enum StoredProcedureType { + // Default value. This value is unused. + STORED_PROCEDURE_TYPE_UNSPECIFIED = 0; + + // SQL stored procedure. + SQL_PROCEDURE = 1; + } + + // Optional. If true, enable sharing of stored procedure. + bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Types of stored procedure supported to share. + repeated StoredProcedureType allowed_stored_procedure_types = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A subscription represents a subscribers' access to a particular set of // published data. It contains references to associated listings, // data exchanges, and linked datasets. diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/pubsub.proto b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/pubsub.proto index 4a92405d1b16..7d1be83a4345 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/pubsub.proto +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/pubsub.proto @@ -162,6 +162,16 @@ message PubSubSubscription { // subscribers. Transforms are applied in the order specified. repeated MessageTransform message_transforms = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // "123/environment": "production", + // "123/costCenter": "marketing" + map tags = 26 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A policy that specifies how Pub/Sub retries message delivery. diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index 350cbc0c6d95..706af3f75a38 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.77.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-api-gateway/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java b/java-api-gateway/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java index 7222788abc24..5f22633c213c 100644 --- a/java-api-gateway/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java +++ b/java-api-gateway/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java @@ -24,9 +24,6 @@ * The API Gateway Service is the interface for managing API Gateways. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/apigateway/v1/apigateway_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ApiGatewayServiceGrpc { @@ -1256,8 +1253,8 @@ protected ApiGatewayServiceBlockingV2Stub build( * */ public com.google.cloud.apigateway.v1.ListGatewaysResponse listGateways( - com.google.cloud.apigateway.v1.ListGatewaysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.ListGatewaysRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGatewaysMethod(), getCallOptions(), request); } @@ -1269,8 +1266,8 @@ public com.google.cloud.apigateway.v1.ListGatewaysResponse listGateways( * */ public com.google.cloud.apigateway.v1.Gateway getGateway( - com.google.cloud.apigateway.v1.GetGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.GetGatewayRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGatewayMethod(), getCallOptions(), request); } @@ -1282,8 +1279,9 @@ public com.google.cloud.apigateway.v1.Gateway getGateway( * */ public com.google.longrunning.Operation createGateway( - com.google.cloud.apigateway.v1.CreateGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.CreateGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGatewayMethod(), getCallOptions(), request); } @@ -1295,8 +1293,9 @@ public com.google.longrunning.Operation createGateway( * */ public com.google.longrunning.Operation updateGateway( - com.google.cloud.apigateway.v1.UpdateGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.UpdateGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGatewayMethod(), getCallOptions(), request); } @@ -1308,8 +1307,9 @@ public com.google.longrunning.Operation updateGateway( * */ public com.google.longrunning.Operation deleteGateway( - com.google.cloud.apigateway.v1.DeleteGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.DeleteGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGatewayMethod(), getCallOptions(), request); } @@ -1321,8 +1321,8 @@ public com.google.longrunning.Operation deleteGateway( * */ public com.google.cloud.apigateway.v1.ListApisResponse listApis( - com.google.cloud.apigateway.v1.ListApisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.ListApisRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApisMethod(), getCallOptions(), request); } @@ -1334,8 +1334,8 @@ public com.google.cloud.apigateway.v1.ListApisResponse listApis( * */ public com.google.cloud.apigateway.v1.Api getApi( - com.google.cloud.apigateway.v1.GetApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.GetApiRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApiMethod(), getCallOptions(), request); } @@ -1347,8 +1347,8 @@ public com.google.cloud.apigateway.v1.Api getApi( * */ public com.google.longrunning.Operation createApi( - com.google.cloud.apigateway.v1.CreateApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.CreateApiRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApiMethod(), getCallOptions(), request); } @@ -1360,8 +1360,8 @@ public com.google.longrunning.Operation createApi( * */ public com.google.longrunning.Operation updateApi( - com.google.cloud.apigateway.v1.UpdateApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.UpdateApiRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApiMethod(), getCallOptions(), request); } @@ -1373,8 +1373,8 @@ public com.google.longrunning.Operation updateApi( * */ public com.google.longrunning.Operation deleteApi( - com.google.cloud.apigateway.v1.DeleteApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.DeleteApiRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApiMethod(), getCallOptions(), request); } @@ -1386,8 +1386,9 @@ public com.google.longrunning.Operation deleteApi( * */ public com.google.cloud.apigateway.v1.ListApiConfigsResponse listApiConfigs( - com.google.cloud.apigateway.v1.ListApiConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.ListApiConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApiConfigsMethod(), getCallOptions(), request); } @@ -1399,8 +1400,8 @@ public com.google.cloud.apigateway.v1.ListApiConfigsResponse listApiConfigs( * */ public com.google.cloud.apigateway.v1.ApiConfig getApiConfig( - com.google.cloud.apigateway.v1.GetApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.GetApiConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApiConfigMethod(), getCallOptions(), request); } @@ -1412,8 +1413,9 @@ public com.google.cloud.apigateway.v1.ApiConfig getApiConfig( * */ public com.google.longrunning.Operation createApiConfig( - com.google.cloud.apigateway.v1.CreateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.CreateApiConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApiConfigMethod(), getCallOptions(), request); } @@ -1425,8 +1427,9 @@ public com.google.longrunning.Operation createApiConfig( * */ public com.google.longrunning.Operation updateApiConfig( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApiConfigMethod(), getCallOptions(), request); } @@ -1438,8 +1441,9 @@ public com.google.longrunning.Operation updateApiConfig( * */ public com.google.longrunning.Operation deleteApiConfig( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApiConfigMethod(), getCallOptions(), request); } } diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index 7b7d94df2407..7c98cc5dfcce 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.77.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java index dada220dc33a..acc2d555c745 100644 --- a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java +++ b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java @@ -24,9 +24,6 @@ * Service Interface for the Apigee Connect connection management APIs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/apigeeconnect/v1/connection.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConnectionServiceGrpc { @@ -246,8 +243,9 @@ protected ConnectionServiceBlockingV2Stub build( * */ public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse listConnections( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectionsMethod(), getCallOptions(), request); } } diff --git a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java index 5da49cc347f4..79bf550eacee 100644 --- a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java +++ b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java @@ -26,9 +26,6 @@ * requiring customers to open firewalls on their runtime plane. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/apigeeconnect/v1/tether.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TetherGrpc { diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 5cbd19308eb3..19998999e7c7 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-registry - 0.77.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.77.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/src/main/java/com/google/cloud/apigeeregistry/v1/ProvisioningGrpc.java b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/src/main/java/com/google/cloud/apigeeregistry/v1/ProvisioningGrpc.java index 6fb52375de80..44e762e1591c 100644 --- a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/src/main/java/com/google/cloud/apigeeregistry/v1/ProvisioningGrpc.java +++ b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/src/main/java/com/google/cloud/apigeeregistry/v1/ProvisioningGrpc.java @@ -25,9 +25,6 @@ * Registry. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/apigeeregistry/v1/provisioning_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProvisioningGrpc { @@ -393,8 +390,9 @@ protected ProvisioningBlockingV2Stub build( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.apigeeregistry.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -406,8 +404,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.apigeeregistry.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -419,8 +418,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.cloud.apigeeregistry.v1.Instance getInstance( - com.google.cloud.apigeeregistry.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } } diff --git a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/src/main/java/com/google/cloud/apigeeregistry/v1/RegistryGrpc.java b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/src/main/java/com/google/cloud/apigeeregistry/v1/RegistryGrpc.java index 85758d3103c6..11faff74df88 100644 --- a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/src/main/java/com/google/cloud/apigeeregistry/v1/RegistryGrpc.java +++ b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/src/main/java/com/google/cloud/apigeeregistry/v1/RegistryGrpc.java @@ -24,9 +24,6 @@ * The Registry service allows teams to manage descriptions of APIs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/apigeeregistry/v1/registry_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RegistryGrpc { @@ -2852,8 +2849,8 @@ protected RegistryBlockingV2Stub build( * */ public com.google.cloud.apigeeregistry.v1.ListApisResponse listApis( - com.google.cloud.apigeeregistry.v1.ListApisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.ListApisRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApisMethod(), getCallOptions(), request); } @@ -2865,8 +2862,8 @@ public com.google.cloud.apigeeregistry.v1.ListApisResponse listApis( * */ public com.google.cloud.apigeeregistry.v1.Api getApi( - com.google.cloud.apigeeregistry.v1.GetApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.GetApiRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApiMethod(), getCallOptions(), request); } @@ -2878,8 +2875,9 @@ public com.google.cloud.apigeeregistry.v1.Api getApi( * */ public com.google.cloud.apigeeregistry.v1.Api createApi( - com.google.cloud.apigeeregistry.v1.CreateApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.CreateApiRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApiMethod(), getCallOptions(), request); } @@ -2891,8 +2889,9 @@ public com.google.cloud.apigeeregistry.v1.Api createApi( * */ public com.google.cloud.apigeeregistry.v1.Api updateApi( - com.google.cloud.apigeeregistry.v1.UpdateApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.UpdateApiRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApiMethod(), getCallOptions(), request); } @@ -2905,8 +2904,9 @@ public com.google.cloud.apigeeregistry.v1.Api updateApi( * */ public com.google.protobuf.Empty deleteApi( - com.google.cloud.apigeeregistry.v1.DeleteApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.DeleteApiRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApiMethod(), getCallOptions(), request); } @@ -2918,8 +2918,9 @@ public com.google.protobuf.Empty deleteApi( * */ public com.google.cloud.apigeeregistry.v1.ListApiVersionsResponse listApiVersions( - com.google.cloud.apigeeregistry.v1.ListApiVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.ListApiVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApiVersionsMethod(), getCallOptions(), request); } @@ -2931,8 +2932,9 @@ public com.google.cloud.apigeeregistry.v1.ListApiVersionsResponse listApiVersion * */ public com.google.cloud.apigeeregistry.v1.ApiVersion getApiVersion( - com.google.cloud.apigeeregistry.v1.GetApiVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.GetApiVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApiVersionMethod(), getCallOptions(), request); } @@ -2944,8 +2946,9 @@ public com.google.cloud.apigeeregistry.v1.ApiVersion getApiVersion( * */ public com.google.cloud.apigeeregistry.v1.ApiVersion createApiVersion( - com.google.cloud.apigeeregistry.v1.CreateApiVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.CreateApiVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApiVersionMethod(), getCallOptions(), request); } @@ -2957,8 +2960,9 @@ public com.google.cloud.apigeeregistry.v1.ApiVersion createApiVersion( * */ public com.google.cloud.apigeeregistry.v1.ApiVersion updateApiVersion( - com.google.cloud.apigeeregistry.v1.UpdateApiVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.UpdateApiVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApiVersionMethod(), getCallOptions(), request); } @@ -2971,8 +2975,9 @@ public com.google.cloud.apigeeregistry.v1.ApiVersion updateApiVersion( * */ public com.google.protobuf.Empty deleteApiVersion( - com.google.cloud.apigeeregistry.v1.DeleteApiVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.DeleteApiVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApiVersionMethod(), getCallOptions(), request); } @@ -2984,8 +2989,9 @@ public com.google.protobuf.Empty deleteApiVersion( * */ public com.google.cloud.apigeeregistry.v1.ListApiSpecsResponse listApiSpecs( - com.google.cloud.apigeeregistry.v1.ListApiSpecsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.ListApiSpecsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApiSpecsMethod(), getCallOptions(), request); } @@ -2997,8 +3003,9 @@ public com.google.cloud.apigeeregistry.v1.ListApiSpecsResponse listApiSpecs( * */ public com.google.cloud.apigeeregistry.v1.ApiSpec getApiSpec( - com.google.cloud.apigeeregistry.v1.GetApiSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.GetApiSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApiSpecMethod(), getCallOptions(), request); } @@ -3013,8 +3020,9 @@ public com.google.cloud.apigeeregistry.v1.ApiSpec getApiSpec( * */ public com.google.api.HttpBody getApiSpecContents( - com.google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApiSpecContentsMethod(), getCallOptions(), request); } @@ -3026,8 +3034,9 @@ public com.google.api.HttpBody getApiSpecContents( * */ public com.google.cloud.apigeeregistry.v1.ApiSpec createApiSpec( - com.google.cloud.apigeeregistry.v1.CreateApiSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.CreateApiSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApiSpecMethod(), getCallOptions(), request); } @@ -3039,8 +3048,9 @@ public com.google.cloud.apigeeregistry.v1.ApiSpec createApiSpec( * */ public com.google.cloud.apigeeregistry.v1.ApiSpec updateApiSpec( - com.google.cloud.apigeeregistry.v1.UpdateApiSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.UpdateApiSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApiSpecMethod(), getCallOptions(), request); } @@ -3053,8 +3063,9 @@ public com.google.cloud.apigeeregistry.v1.ApiSpec updateApiSpec( * */ public com.google.protobuf.Empty deleteApiSpec( - com.google.cloud.apigeeregistry.v1.DeleteApiSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.DeleteApiSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApiSpecMethod(), getCallOptions(), request); } @@ -3066,8 +3077,9 @@ public com.google.protobuf.Empty deleteApiSpec( * */ public com.google.cloud.apigeeregistry.v1.ApiSpec tagApiSpecRevision( - com.google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTagApiSpecRevisionMethod(), getCallOptions(), request); } @@ -3080,8 +3092,9 @@ public com.google.cloud.apigeeregistry.v1.ApiSpec tagApiSpecRevision( * */ public com.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse listApiSpecRevisions( - com.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApiSpecRevisionsMethod(), getCallOptions(), request); } @@ -3094,8 +3107,9 @@ public com.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse listApiSp * */ public com.google.cloud.apigeeregistry.v1.ApiSpec rollbackApiSpec( - com.google.cloud.apigeeregistry.v1.RollbackApiSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.RollbackApiSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackApiSpecMethod(), getCallOptions(), request); } @@ -3107,8 +3121,9 @@ public com.google.cloud.apigeeregistry.v1.ApiSpec rollbackApiSpec( * */ public com.google.cloud.apigeeregistry.v1.ApiSpec deleteApiSpecRevision( - com.google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApiSpecRevisionMethod(), getCallOptions(), request); } @@ -3120,8 +3135,9 @@ public com.google.cloud.apigeeregistry.v1.ApiSpec deleteApiSpecRevision( * */ public com.google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse listApiDeployments( - com.google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApiDeploymentsMethod(), getCallOptions(), request); } @@ -3133,8 +3149,9 @@ public com.google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse listApiDepl * */ public com.google.cloud.apigeeregistry.v1.ApiDeployment getApiDeployment( - com.google.cloud.apigeeregistry.v1.GetApiDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.GetApiDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApiDeploymentMethod(), getCallOptions(), request); } @@ -3146,8 +3163,9 @@ public com.google.cloud.apigeeregistry.v1.ApiDeployment getApiDeployment( * */ public com.google.cloud.apigeeregistry.v1.ApiDeployment createApiDeployment( - com.google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApiDeploymentMethod(), getCallOptions(), request); } @@ -3159,8 +3177,9 @@ public com.google.cloud.apigeeregistry.v1.ApiDeployment createApiDeployment( * */ public com.google.cloud.apigeeregistry.v1.ApiDeployment updateApiDeployment( - com.google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApiDeploymentMethod(), getCallOptions(), request); } @@ -3173,8 +3192,9 @@ public com.google.cloud.apigeeregistry.v1.ApiDeployment updateApiDeployment( * */ public com.google.protobuf.Empty deleteApiDeployment( - com.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApiDeploymentMethod(), getCallOptions(), request); } @@ -3187,8 +3207,9 @@ public com.google.protobuf.Empty deleteApiDeployment( * */ public com.google.cloud.apigeeregistry.v1.ApiDeployment tagApiDeploymentRevision( - com.google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTagApiDeploymentRevisionMethod(), getCallOptions(), request); } @@ -3202,8 +3223,9 @@ public com.google.cloud.apigeeregistry.v1.ApiDeployment tagApiDeploymentRevision */ public com.google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse listApiDeploymentRevisions( - com.google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApiDeploymentRevisionsMethod(), getCallOptions(), request); } @@ -3216,8 +3238,9 @@ public com.google.cloud.apigeeregistry.v1.ApiDeployment tagApiDeploymentRevision * */ public com.google.cloud.apigeeregistry.v1.ApiDeployment rollbackApiDeployment( - com.google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackApiDeploymentMethod(), getCallOptions(), request); } @@ -3229,8 +3252,9 @@ public com.google.cloud.apigeeregistry.v1.ApiDeployment rollbackApiDeployment( * */ public com.google.cloud.apigeeregistry.v1.ApiDeployment deleteApiDeploymentRevision( - com.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApiDeploymentRevisionMethod(), getCallOptions(), request); } @@ -3242,8 +3266,9 @@ public com.google.cloud.apigeeregistry.v1.ApiDeployment deleteApiDeploymentRevis * */ public com.google.cloud.apigeeregistry.v1.ListArtifactsResponse listArtifacts( - com.google.cloud.apigeeregistry.v1.ListArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.ListArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListArtifactsMethod(), getCallOptions(), request); } @@ -3255,8 +3280,9 @@ public com.google.cloud.apigeeregistry.v1.ListArtifactsResponse listArtifacts( * */ public com.google.cloud.apigeeregistry.v1.Artifact getArtifact( - com.google.cloud.apigeeregistry.v1.GetArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.GetArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetArtifactMethod(), getCallOptions(), request); } @@ -3271,8 +3297,9 @@ public com.google.cloud.apigeeregistry.v1.Artifact getArtifact( * */ public com.google.api.HttpBody getArtifactContents( - com.google.cloud.apigeeregistry.v1.GetArtifactContentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.GetArtifactContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetArtifactContentsMethod(), getCallOptions(), request); } @@ -3284,8 +3311,9 @@ public com.google.api.HttpBody getArtifactContents( * */ public com.google.cloud.apigeeregistry.v1.Artifact createArtifact( - com.google.cloud.apigeeregistry.v1.CreateArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.CreateArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateArtifactMethod(), getCallOptions(), request); } @@ -3297,8 +3325,9 @@ public com.google.cloud.apigeeregistry.v1.Artifact createArtifact( * */ public com.google.cloud.apigeeregistry.v1.Artifact replaceArtifact( - com.google.cloud.apigeeregistry.v1.ReplaceArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.ReplaceArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReplaceArtifactMethod(), getCallOptions(), request); } @@ -3310,8 +3339,9 @@ public com.google.cloud.apigeeregistry.v1.Artifact replaceArtifact( * */ public com.google.protobuf.Empty deleteArtifact( - com.google.cloud.apigeeregistry.v1.DeleteArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apigeeregistry.v1.DeleteArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteArtifactMethod(), getCallOptions(), request); } } diff --git a/java-apihub/README.md b/java-apihub/README.md index 7df16daea2d6..b140e53d8088 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.30.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.30.0' +implementation 'com.google.cloud:google-cloud-apihub:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.31.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 8445eab509be..65e7d98ebca7 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.75.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/grpc-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/ApiKeysGrpc.java b/java-apikeys/grpc-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/ApiKeysGrpc.java index a3b115cbb48d..fd3d8833788c 100644 --- a/java-apikeys/grpc-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/ApiKeysGrpc.java +++ b/java-apikeys/grpc-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/ApiKeysGrpc.java @@ -24,9 +24,6 @@ * Manages the API keys associated with projects. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/apikeys/v2/apikeys.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ApiKeysGrpc { @@ -757,8 +754,8 @@ protected ApiKeysBlockingV2Stub build( * */ public com.google.longrunning.Operation createKey( - com.google.api.apikeys.v2.CreateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.apikeys.v2.CreateKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateKeyMethod(), getCallOptions(), request); } @@ -773,8 +770,8 @@ public com.google.longrunning.Operation createKey( * */ public com.google.api.apikeys.v2.ListKeysResponse listKeys( - com.google.api.apikeys.v2.ListKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.apikeys.v2.ListKeysRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListKeysMethod(), getCallOptions(), request); } @@ -788,8 +785,9 @@ public com.google.api.apikeys.v2.ListKeysResponse listKeys( * location is `global`. * */ - public com.google.api.apikeys.v2.Key getKey(com.google.api.apikeys.v2.GetKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.api.apikeys.v2.Key getKey(com.google.api.apikeys.v2.GetKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKeyMethod(), getCallOptions(), request); } @@ -803,8 +801,8 @@ public com.google.api.apikeys.v2.Key getKey(com.google.api.apikeys.v2.GetKeyRequ * */ public com.google.api.apikeys.v2.GetKeyStringResponse getKeyString( - com.google.api.apikeys.v2.GetKeyStringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.apikeys.v2.GetKeyStringRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKeyStringMethod(), getCallOptions(), request); } @@ -819,8 +817,8 @@ public com.google.api.apikeys.v2.GetKeyStringResponse getKeyString( * */ public com.google.longrunning.Operation updateKey( - com.google.api.apikeys.v2.UpdateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.apikeys.v2.UpdateKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateKeyMethod(), getCallOptions(), request); } @@ -835,8 +833,8 @@ public com.google.longrunning.Operation updateKey( * */ public com.google.longrunning.Operation deleteKey( - com.google.api.apikeys.v2.DeleteKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.apikeys.v2.DeleteKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteKeyMethod(), getCallOptions(), request); } @@ -850,8 +848,8 @@ public com.google.longrunning.Operation deleteKey( * */ public com.google.longrunning.Operation undeleteKey( - com.google.api.apikeys.v2.UndeleteKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.apikeys.v2.UndeleteKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteKeyMethod(), getCallOptions(), request); } @@ -867,8 +865,8 @@ public com.google.longrunning.Operation undeleteKey( * */ public com.google.api.apikeys.v2.LookupKeyResponse lookupKey( - com.google.api.apikeys.v2.LookupKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.apikeys.v2.LookupKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupKeyMethod(), getCallOptions(), request); } } diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index a40e19a4985b..6b60a959e928 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.77.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/ApplicationsGrpc.java b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/ApplicationsGrpc.java index 88203bb0f93c..f49822f71c69 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/ApplicationsGrpc.java +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/ApplicationsGrpc.java @@ -24,9 +24,6 @@ * Manages App Engine applications. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/appengine/v1/appengine.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ApplicationsGrpc { @@ -486,8 +483,8 @@ protected ApplicationsBlockingV2Stub build( * */ public com.google.appengine.v1.Application getApplication( - com.google.appengine.v1.GetApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.GetApplicationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApplicationMethod(), getCallOptions(), request); } @@ -503,8 +500,8 @@ public com.google.appengine.v1.Application getApplication( * */ public com.google.longrunning.Operation createApplication( - com.google.appengine.v1.CreateApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.CreateApplicationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApplicationMethod(), getCallOptions(), request); } @@ -520,8 +517,8 @@ public com.google.longrunning.Operation createApplication( * */ public com.google.longrunning.Operation updateApplication( - com.google.appengine.v1.UpdateApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.UpdateApplicationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApplicationMethod(), getCallOptions(), request); } @@ -542,8 +539,8 @@ public com.google.longrunning.Operation updateApplication( * */ public com.google.longrunning.Operation repairApplication( - com.google.appengine.v1.RepairApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.RepairApplicationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRepairApplicationMethod(), getCallOptions(), request); } } diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/AuthorizedCertificatesGrpc.java b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/AuthorizedCertificatesGrpc.java index da7a93897e59..2c5508eedd01 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/AuthorizedCertificatesGrpc.java +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/AuthorizedCertificatesGrpc.java @@ -25,9 +25,6 @@ * administer any SSL certificates applicable to their authorized domains. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/appengine/v1/appengine.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AuthorizedCertificatesGrpc { @@ -592,8 +589,9 @@ protected AuthorizedCertificatesBlockingV2Stub build( * */ public com.google.appengine.v1.ListAuthorizedCertificatesResponse listAuthorizedCertificates( - com.google.appengine.v1.ListAuthorizedCertificatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.ListAuthorizedCertificatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAuthorizedCertificatesMethod(), getCallOptions(), request); } @@ -605,8 +603,9 @@ public com.google.appengine.v1.ListAuthorizedCertificatesResponse listAuthorized * */ public com.google.appengine.v1.AuthorizedCertificate getAuthorizedCertificate( - com.google.appengine.v1.GetAuthorizedCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.GetAuthorizedCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAuthorizedCertificateMethod(), getCallOptions(), request); } @@ -618,8 +617,9 @@ public com.google.appengine.v1.AuthorizedCertificate getAuthorizedCertificate( * */ public com.google.appengine.v1.AuthorizedCertificate createAuthorizedCertificate( - com.google.appengine.v1.CreateAuthorizedCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.CreateAuthorizedCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAuthorizedCertificateMethod(), getCallOptions(), request); } @@ -635,8 +635,9 @@ public com.google.appengine.v1.AuthorizedCertificate createAuthorizedCertificate * */ public com.google.appengine.v1.AuthorizedCertificate updateAuthorizedCertificate( - com.google.appengine.v1.UpdateAuthorizedCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.UpdateAuthorizedCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAuthorizedCertificateMethod(), getCallOptions(), request); } @@ -648,8 +649,9 @@ public com.google.appengine.v1.AuthorizedCertificate updateAuthorizedCertificate * */ public com.google.protobuf.Empty deleteAuthorizedCertificate( - com.google.appengine.v1.DeleteAuthorizedCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.DeleteAuthorizedCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAuthorizedCertificateMethod(), getCallOptions(), request); } } diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/AuthorizedDomainsGrpc.java b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/AuthorizedDomainsGrpc.java index dc9d22bbc56e..5608cbad9c7e 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/AuthorizedDomainsGrpc.java +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/AuthorizedDomainsGrpc.java @@ -26,9 +26,6 @@ * [Webmaster Central](https://www.google.com/webmasters/verification/home). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/appengine/v1/appengine.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AuthorizedDomainsGrpc { @@ -255,8 +252,9 @@ protected AuthorizedDomainsBlockingV2Stub build( * */ public com.google.appengine.v1.ListAuthorizedDomainsResponse listAuthorizedDomains( - com.google.appengine.v1.ListAuthorizedDomainsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.ListAuthorizedDomainsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAuthorizedDomainsMethod(), getCallOptions(), request); } } diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/DomainMappingsGrpc.java b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/DomainMappingsGrpc.java index d6428cfa6908..031b2d4c0a4e 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/DomainMappingsGrpc.java +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/DomainMappingsGrpc.java @@ -24,9 +24,6 @@ * Manages domains serving an application. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/appengine/v1/appengine.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DomainMappingsGrpc { @@ -552,8 +549,8 @@ protected DomainMappingsBlockingV2Stub build( * */ public com.google.appengine.v1.ListDomainMappingsResponse listDomainMappings( - com.google.appengine.v1.ListDomainMappingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.ListDomainMappingsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDomainMappingsMethod(), getCallOptions(), request); } @@ -565,8 +562,8 @@ public com.google.appengine.v1.ListDomainMappingsResponse listDomainMappings( * */ public com.google.appengine.v1.DomainMapping getDomainMapping( - com.google.appengine.v1.GetDomainMappingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.GetDomainMappingRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDomainMappingMethod(), getCallOptions(), request); } @@ -580,8 +577,8 @@ public com.google.appengine.v1.DomainMapping getDomainMapping( * */ public com.google.longrunning.Operation createDomainMapping( - com.google.appengine.v1.CreateDomainMappingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.CreateDomainMappingRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDomainMappingMethod(), getCallOptions(), request); } @@ -596,8 +593,8 @@ public com.google.longrunning.Operation createDomainMapping( * */ public com.google.longrunning.Operation updateDomainMapping( - com.google.appengine.v1.UpdateDomainMappingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.UpdateDomainMappingRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDomainMappingMethod(), getCallOptions(), request); } @@ -611,8 +608,8 @@ public com.google.longrunning.Operation updateDomainMapping( * */ public com.google.longrunning.Operation deleteDomainMapping( - com.google.appengine.v1.DeleteDomainMappingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.DeleteDomainMappingRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDomainMappingMethod(), getCallOptions(), request); } } diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/FirewallGrpc.java b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/FirewallGrpc.java index 8eb295c2f632..116df45bb582 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/FirewallGrpc.java +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/FirewallGrpc.java @@ -32,9 +32,6 @@ * set to "allow" if not otherwise specified by the user. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/appengine/v1/appengine.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FirewallGrpc { @@ -667,8 +664,8 @@ protected FirewallBlockingV2Stub build( * */ public com.google.appengine.v1.ListIngressRulesResponse listIngressRules( - com.google.appengine.v1.ListIngressRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.ListIngressRulesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIngressRulesMethod(), getCallOptions(), request); } @@ -683,8 +680,9 @@ public com.google.appengine.v1.ListIngressRulesResponse listIngressRules( * */ public com.google.appengine.v1.BatchUpdateIngressRulesResponse batchUpdateIngressRules( - com.google.appengine.v1.BatchUpdateIngressRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.BatchUpdateIngressRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateIngressRulesMethod(), getCallOptions(), request); } @@ -696,8 +694,8 @@ public com.google.appengine.v1.BatchUpdateIngressRulesResponse batchUpdateIngres * */ public com.google.appengine.v1.firewall.FirewallRule createIngressRule( - com.google.appengine.v1.CreateIngressRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.CreateIngressRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIngressRuleMethod(), getCallOptions(), request); } @@ -709,8 +707,8 @@ public com.google.appengine.v1.firewall.FirewallRule createIngressRule( * */ public com.google.appengine.v1.firewall.FirewallRule getIngressRule( - com.google.appengine.v1.GetIngressRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.GetIngressRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIngressRuleMethod(), getCallOptions(), request); } @@ -722,8 +720,8 @@ public com.google.appengine.v1.firewall.FirewallRule getIngressRule( * */ public com.google.appengine.v1.firewall.FirewallRule updateIngressRule( - com.google.appengine.v1.UpdateIngressRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.UpdateIngressRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIngressRuleMethod(), getCallOptions(), request); } @@ -735,8 +733,8 @@ public com.google.appengine.v1.firewall.FirewallRule updateIngressRule( * */ public com.google.protobuf.Empty deleteIngressRule( - com.google.appengine.v1.DeleteIngressRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.DeleteIngressRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIngressRuleMethod(), getCallOptions(), request); } } diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/InstancesGrpc.java b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/InstancesGrpc.java index 5e059aa4d30d..e3a4477dff79 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/InstancesGrpc.java +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/InstancesGrpc.java @@ -24,9 +24,6 @@ * Manages instances of a version. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/appengine/v1/appengine.proto") @io.grpc.stub.annotations.GrpcGenerated public final class InstancesGrpc { @@ -483,8 +480,8 @@ protected InstancesBlockingV2Stub build( * */ public com.google.appengine.v1.ListInstancesResponse listInstances( - com.google.appengine.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.ListInstancesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -496,8 +493,8 @@ public com.google.appengine.v1.ListInstancesResponse listInstances( * */ public com.google.appengine.v1.Instance getInstance( - com.google.appengine.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -518,8 +515,8 @@ public com.google.appengine.v1.Instance getInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.appengine.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.DeleteInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -537,8 +534,8 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation debugInstance( - com.google.appengine.v1.DebugInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.DebugInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDebugInstanceMethod(), getCallOptions(), request); } } diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/ServicesGrpc.java b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/ServicesGrpc.java index da91ef0f422c..0f01480d4b3e 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/ServicesGrpc.java +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/ServicesGrpc.java @@ -24,9 +24,6 @@ * Manages services of an application. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/appengine/v1/appengine.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServicesGrpc { @@ -441,8 +438,8 @@ protected ServicesBlockingV2Stub build( * */ public com.google.appengine.v1.ListServicesResponse listServices( - com.google.appengine.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.ListServicesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -454,8 +451,8 @@ public com.google.appengine.v1.ListServicesResponse listServices( * */ public com.google.appengine.v1.Service getService( - com.google.appengine.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.GetServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -467,8 +464,8 @@ public com.google.appengine.v1.Service getService( * */ public com.google.longrunning.Operation updateService( - com.google.appengine.v1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.UpdateServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } @@ -480,8 +477,8 @@ public com.google.longrunning.Operation updateService( * */ public com.google.longrunning.Operation deleteService( - com.google.appengine.v1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.DeleteServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } } diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/VersionsGrpc.java b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/VersionsGrpc.java index d64a77ac6fe0..baf014af0f81 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/VersionsGrpc.java +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/src/main/java/com/google/appengine/v1/VersionsGrpc.java @@ -24,9 +24,6 @@ * Manages versions of a service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/appengine/v1/appengine.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VersionsGrpc { @@ -562,8 +559,8 @@ protected VersionsBlockingV2Stub build( * */ public com.google.appengine.v1.ListVersionsResponse listVersions( - com.google.appengine.v1.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.ListVersionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVersionsMethod(), getCallOptions(), request); } @@ -577,8 +574,8 @@ public com.google.appengine.v1.ListVersionsResponse listVersions( * */ public com.google.appengine.v1.Version getVersion( - com.google.appengine.v1.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.GetVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVersionMethod(), getCallOptions(), request); } @@ -590,8 +587,8 @@ public com.google.appengine.v1.Version getVersion( * */ public com.google.longrunning.Operation createVersion( - com.google.appengine.v1.CreateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.CreateVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVersionMethod(), getCallOptions(), request); } @@ -626,8 +623,8 @@ public com.google.longrunning.Operation createVersion( * */ public com.google.longrunning.Operation updateVersion( - com.google.appengine.v1.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.UpdateVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVersionMethod(), getCallOptions(), request); } @@ -639,8 +636,8 @@ public com.google.longrunning.Operation updateVersion( * */ public com.google.longrunning.Operation deleteVersion( - com.google.appengine.v1.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.appengine.v1.DeleteVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVersionMethod(), getCallOptions(), request); } } diff --git a/java-apphub/README.md b/java-apphub/README.md index 43b4f3028b9c..fd1687b2e261 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.41.0' +implementation 'com.google.cloud:google-cloud-apphub:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.42.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apphub/grpc-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/AppHubGrpc.java b/java-apphub/grpc-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/AppHubGrpc.java index 2e4ebe924b60..6c038b57d870 100644 --- a/java-apphub/grpc-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/AppHubGrpc.java +++ b/java-apphub/grpc-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/AppHubGrpc.java @@ -24,9 +24,6 @@ * The App Hub API allows you to manage App Hub resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/apphub/v1/apphub_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AppHubGrpc { @@ -2245,8 +2242,9 @@ protected AppHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.cloud.apphub.v1.LookupServiceProjectAttachmentResponse lookupServiceProjectAttachment( - com.google.cloud.apphub.v1.LookupServiceProjectAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.LookupServiceProjectAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupServiceProjectAttachmentMethod(), getCallOptions(), request); } @@ -2259,8 +2257,9 @@ protected AppHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.cloud.apphub.v1.ListServiceProjectAttachmentsResponse listServiceProjectAttachments( - com.google.cloud.apphub.v1.ListServiceProjectAttachmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.ListServiceProjectAttachmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceProjectAttachmentsMethod(), getCallOptions(), request); } @@ -2272,8 +2271,9 @@ protected AppHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.longrunning.Operation createServiceProjectAttachment( - com.google.cloud.apphub.v1.CreateServiceProjectAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.CreateServiceProjectAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceProjectAttachmentMethod(), getCallOptions(), request); } @@ -2285,8 +2285,9 @@ public com.google.longrunning.Operation createServiceProjectAttachment( * */ public com.google.cloud.apphub.v1.ServiceProjectAttachment getServiceProjectAttachment( - com.google.cloud.apphub.v1.GetServiceProjectAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.GetServiceProjectAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceProjectAttachmentMethod(), getCallOptions(), request); } @@ -2298,8 +2299,9 @@ public com.google.cloud.apphub.v1.ServiceProjectAttachment getServiceProjectAtta * */ public com.google.longrunning.Operation deleteServiceProjectAttachment( - com.google.cloud.apphub.v1.DeleteServiceProjectAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.DeleteServiceProjectAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceProjectAttachmentMethod(), getCallOptions(), request); } @@ -2314,8 +2316,9 @@ public com.google.longrunning.Operation deleteServiceProjectAttachment( */ public com.google.cloud.apphub.v1.DetachServiceProjectAttachmentResponse detachServiceProjectAttachment( - com.google.cloud.apphub.v1.DetachServiceProjectAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.DetachServiceProjectAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetachServiceProjectAttachmentMethod(), getCallOptions(), request); } @@ -2328,8 +2331,9 @@ public com.google.longrunning.Operation deleteServiceProjectAttachment( * */ public com.google.cloud.apphub.v1.ListDiscoveredServicesResponse listDiscoveredServices( - com.google.cloud.apphub.v1.ListDiscoveredServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.ListDiscoveredServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDiscoveredServicesMethod(), getCallOptions(), request); } @@ -2341,8 +2345,9 @@ public com.google.cloud.apphub.v1.ListDiscoveredServicesResponse listDiscoveredS * */ public com.google.cloud.apphub.v1.DiscoveredService getDiscoveredService( - com.google.cloud.apphub.v1.GetDiscoveredServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.GetDiscoveredServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDiscoveredServiceMethod(), getCallOptions(), request); } @@ -2355,8 +2360,9 @@ public com.google.cloud.apphub.v1.DiscoveredService getDiscoveredService( * */ public com.google.cloud.apphub.v1.LookupDiscoveredServiceResponse lookupDiscoveredService( - com.google.cloud.apphub.v1.LookupDiscoveredServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.LookupDiscoveredServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupDiscoveredServiceMethod(), getCallOptions(), request); } @@ -2368,8 +2374,8 @@ public com.google.cloud.apphub.v1.LookupDiscoveredServiceResponse lookupDiscover * */ public com.google.cloud.apphub.v1.ListServicesResponse listServices( - com.google.cloud.apphub.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.ListServicesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -2381,8 +2387,8 @@ public com.google.cloud.apphub.v1.ListServicesResponse listServices( * */ public com.google.longrunning.Operation createService( - com.google.cloud.apphub.v1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.CreateServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); } @@ -2394,8 +2400,8 @@ public com.google.longrunning.Operation createService( * */ public com.google.cloud.apphub.v1.Service getService( - com.google.cloud.apphub.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.GetServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -2407,8 +2413,8 @@ public com.google.cloud.apphub.v1.Service getService( * */ public com.google.longrunning.Operation updateService( - com.google.cloud.apphub.v1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.UpdateServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } @@ -2420,8 +2426,8 @@ public com.google.longrunning.Operation updateService( * */ public com.google.longrunning.Operation deleteService( - com.google.cloud.apphub.v1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.DeleteServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } @@ -2434,8 +2440,9 @@ public com.google.longrunning.Operation deleteService( * */ public com.google.cloud.apphub.v1.ListDiscoveredWorkloadsResponse listDiscoveredWorkloads( - com.google.cloud.apphub.v1.ListDiscoveredWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.ListDiscoveredWorkloadsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDiscoveredWorkloadsMethod(), getCallOptions(), request); } @@ -2447,8 +2454,9 @@ public com.google.cloud.apphub.v1.ListDiscoveredWorkloadsResponse listDiscovered * */ public com.google.cloud.apphub.v1.DiscoveredWorkload getDiscoveredWorkload( - com.google.cloud.apphub.v1.GetDiscoveredWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.GetDiscoveredWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDiscoveredWorkloadMethod(), getCallOptions(), request); } @@ -2461,8 +2469,9 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload getDiscoveredWorkload( * */ public com.google.cloud.apphub.v1.LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( - com.google.cloud.apphub.v1.LookupDiscoveredWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.LookupDiscoveredWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupDiscoveredWorkloadMethod(), getCallOptions(), request); } @@ -2474,8 +2483,8 @@ public com.google.cloud.apphub.v1.LookupDiscoveredWorkloadResponse lookupDiscove * */ public com.google.cloud.apphub.v1.ListWorkloadsResponse listWorkloads( - com.google.cloud.apphub.v1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.ListWorkloadsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkloadsMethod(), getCallOptions(), request); } @@ -2487,8 +2496,8 @@ public com.google.cloud.apphub.v1.ListWorkloadsResponse listWorkloads( * */ public com.google.longrunning.Operation createWorkload( - com.google.cloud.apphub.v1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.CreateWorkloadRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); } @@ -2500,8 +2509,8 @@ public com.google.longrunning.Operation createWorkload( * */ public com.google.cloud.apphub.v1.Workload getWorkload( - com.google.cloud.apphub.v1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.GetWorkloadRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkloadMethod(), getCallOptions(), request); } @@ -2513,8 +2522,8 @@ public com.google.cloud.apphub.v1.Workload getWorkload( * */ public com.google.longrunning.Operation updateWorkload( - com.google.cloud.apphub.v1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.UpdateWorkloadRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); } @@ -2526,8 +2535,8 @@ public com.google.longrunning.Operation updateWorkload( * */ public com.google.longrunning.Operation deleteWorkload( - com.google.cloud.apphub.v1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.DeleteWorkloadRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); } @@ -2539,8 +2548,8 @@ public com.google.longrunning.Operation deleteWorkload( * */ public com.google.cloud.apphub.v1.ListApplicationsResponse listApplications( - com.google.cloud.apphub.v1.ListApplicationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.ListApplicationsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApplicationsMethod(), getCallOptions(), request); } @@ -2552,8 +2561,9 @@ public com.google.cloud.apphub.v1.ListApplicationsResponse listApplications( * */ public com.google.longrunning.Operation createApplication( - com.google.cloud.apphub.v1.CreateApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.CreateApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApplicationMethod(), getCallOptions(), request); } @@ -2565,8 +2575,8 @@ public com.google.longrunning.Operation createApplication( * */ public com.google.cloud.apphub.v1.Application getApplication( - com.google.cloud.apphub.v1.GetApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.GetApplicationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApplicationMethod(), getCallOptions(), request); } @@ -2578,8 +2588,9 @@ public com.google.cloud.apphub.v1.Application getApplication( * */ public com.google.longrunning.Operation updateApplication( - com.google.cloud.apphub.v1.UpdateApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.UpdateApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApplicationMethod(), getCallOptions(), request); } @@ -2591,8 +2602,9 @@ public com.google.longrunning.Operation updateApplication( * */ public com.google.longrunning.Operation deleteApplication( - com.google.cloud.apphub.v1.DeleteApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.apphub.v1.DeleteApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApplicationMethod(), getCallOptions(), request); } } diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index b4c688568a9b..633fc753f297 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.81.0 + 0.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.81.0' +implementation 'com.google.area120:google-area120-tables:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.81.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.82.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-area120-tables/grpc-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/TablesServiceGrpc.java b/java-area120-tables/grpc-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/TablesServiceGrpc.java index d89f36ef19e5..703968c76ee6 100644 --- a/java-area120-tables/grpc-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/TablesServiceGrpc.java +++ b/java-area120-tables/grpc-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/TablesServiceGrpc.java @@ -32,9 +32,6 @@ * resources, named `workspaces/*`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/area120/tables/v1alpha1/tables.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TablesServiceGrpc { @@ -1095,8 +1092,8 @@ protected TablesServiceBlockingV2Stub build( * */ public com.google.area120.tables.v1alpha1.Table getTable( - com.google.area120.tables.v1alpha1.GetTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.GetTableRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTableMethod(), getCallOptions(), request); } @@ -1108,8 +1105,9 @@ public com.google.area120.tables.v1alpha1.Table getTable( * */ public com.google.area120.tables.v1alpha1.ListTablesResponse listTables( - com.google.area120.tables.v1alpha1.ListTablesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.ListTablesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTablesMethod(), getCallOptions(), request); } @@ -1121,8 +1119,9 @@ public com.google.area120.tables.v1alpha1.ListTablesResponse listTables( * */ public com.google.area120.tables.v1alpha1.Workspace getWorkspace( - com.google.area120.tables.v1alpha1.GetWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.GetWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkspaceMethod(), getCallOptions(), request); } @@ -1134,8 +1133,9 @@ public com.google.area120.tables.v1alpha1.Workspace getWorkspace( * */ public com.google.area120.tables.v1alpha1.ListWorkspacesResponse listWorkspaces( - com.google.area120.tables.v1alpha1.ListWorkspacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.ListWorkspacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkspacesMethod(), getCallOptions(), request); } @@ -1147,8 +1147,8 @@ public com.google.area120.tables.v1alpha1.ListWorkspacesResponse listWorkspaces( * */ public com.google.area120.tables.v1alpha1.Row getRow( - com.google.area120.tables.v1alpha1.GetRowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.GetRowRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRowMethod(), getCallOptions(), request); } @@ -1160,8 +1160,8 @@ public com.google.area120.tables.v1alpha1.Row getRow( * */ public com.google.area120.tables.v1alpha1.ListRowsResponse listRows( - com.google.area120.tables.v1alpha1.ListRowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.ListRowsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRowsMethod(), getCallOptions(), request); } @@ -1173,8 +1173,9 @@ public com.google.area120.tables.v1alpha1.ListRowsResponse listRows( * */ public com.google.area120.tables.v1alpha1.Row createRow( - com.google.area120.tables.v1alpha1.CreateRowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.CreateRowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRowMethod(), getCallOptions(), request); } @@ -1186,8 +1187,9 @@ public com.google.area120.tables.v1alpha1.Row createRow( * */ public com.google.area120.tables.v1alpha1.BatchCreateRowsResponse batchCreateRows( - com.google.area120.tables.v1alpha1.BatchCreateRowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.BatchCreateRowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateRowsMethod(), getCallOptions(), request); } @@ -1199,8 +1201,9 @@ public com.google.area120.tables.v1alpha1.BatchCreateRowsResponse batchCreateRow * */ public com.google.area120.tables.v1alpha1.Row updateRow( - com.google.area120.tables.v1alpha1.UpdateRowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.UpdateRowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRowMethod(), getCallOptions(), request); } @@ -1212,8 +1215,9 @@ public com.google.area120.tables.v1alpha1.Row updateRow( * */ public com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse batchUpdateRows( - com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateRowsMethod(), getCallOptions(), request); } @@ -1225,8 +1229,9 @@ public com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse batchUpdateRow * */ public com.google.protobuf.Empty deleteRow( - com.google.area120.tables.v1alpha1.DeleteRowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.DeleteRowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRowMethod(), getCallOptions(), request); } @@ -1238,8 +1243,9 @@ public com.google.protobuf.Empty deleteRow( * */ public com.google.protobuf.Empty batchDeleteRows( - com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteRowsMethod(), getCallOptions(), request); } } diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index fd81d5d22a10..8538d3a0c1ef 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.76.0 + 1.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.76.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java index 9ff6bc2d743b..cc2e67b68404 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java @@ -33,9 +33,6 @@ * or Version. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/artifactregistry/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ArtifactRegistryGrpc { @@ -3998,8 +3995,9 @@ protected ArtifactRegistryBlockingV2Stub build( * */ public com.google.devtools.artifactregistry.v1.ListDockerImagesResponse listDockerImages( - com.google.devtools.artifactregistry.v1.ListDockerImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListDockerImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDockerImagesMethod(), getCallOptions(), request); } @@ -4011,8 +4009,9 @@ public com.google.devtools.artifactregistry.v1.ListDockerImagesResponse listDock * */ public com.google.devtools.artifactregistry.v1.DockerImage getDockerImage( - com.google.devtools.artifactregistry.v1.GetDockerImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetDockerImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDockerImageMethod(), getCallOptions(), request); } @@ -4024,8 +4023,9 @@ public com.google.devtools.artifactregistry.v1.DockerImage getDockerImage( * */ public com.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse listMavenArtifacts( - com.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMavenArtifactsMethod(), getCallOptions(), request); } @@ -4037,8 +4037,9 @@ public com.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse listMa * */ public com.google.devtools.artifactregistry.v1.MavenArtifact getMavenArtifact( - com.google.devtools.artifactregistry.v1.GetMavenArtifactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetMavenArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMavenArtifactMethod(), getCallOptions(), request); } @@ -4050,8 +4051,9 @@ public com.google.devtools.artifactregistry.v1.MavenArtifact getMavenArtifact( * */ public com.google.devtools.artifactregistry.v1.ListNpmPackagesResponse listNpmPackages( - com.google.devtools.artifactregistry.v1.ListNpmPackagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListNpmPackagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNpmPackagesMethod(), getCallOptions(), request); } @@ -4063,8 +4065,9 @@ public com.google.devtools.artifactregistry.v1.ListNpmPackagesResponse listNpmPa * */ public com.google.devtools.artifactregistry.v1.NpmPackage getNpmPackage( - com.google.devtools.artifactregistry.v1.GetNpmPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetNpmPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNpmPackageMethod(), getCallOptions(), request); } @@ -4076,8 +4079,9 @@ public com.google.devtools.artifactregistry.v1.NpmPackage getNpmPackage( * */ public com.google.devtools.artifactregistry.v1.ListPythonPackagesResponse listPythonPackages( - com.google.devtools.artifactregistry.v1.ListPythonPackagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListPythonPackagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPythonPackagesMethod(), getCallOptions(), request); } @@ -4089,8 +4093,9 @@ public com.google.devtools.artifactregistry.v1.ListPythonPackagesResponse listPy * */ public com.google.devtools.artifactregistry.v1.PythonPackage getPythonPackage( - com.google.devtools.artifactregistry.v1.GetPythonPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetPythonPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPythonPackageMethod(), getCallOptions(), request); } @@ -4105,8 +4110,9 @@ public com.google.devtools.artifactregistry.v1.PythonPackage getPythonPackage( * */ public com.google.longrunning.Operation importAptArtifacts( - com.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportAptArtifactsMethod(), getCallOptions(), request); } @@ -4121,8 +4127,9 @@ public com.google.longrunning.Operation importAptArtifacts( * */ public com.google.longrunning.Operation importYumArtifacts( - com.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportYumArtifactsMethod(), getCallOptions(), request); } @@ -4134,8 +4141,9 @@ public com.google.longrunning.Operation importYumArtifacts( * */ public com.google.devtools.artifactregistry.v1.ListRepositoriesResponse listRepositories( - com.google.devtools.artifactregistry.v1.ListRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListRepositoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRepositoriesMethod(), getCallOptions(), request); } @@ -4147,8 +4155,9 @@ public com.google.devtools.artifactregistry.v1.ListRepositoriesResponse listRepo * */ public com.google.devtools.artifactregistry.v1.Repository getRepository( - com.google.devtools.artifactregistry.v1.GetRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRepositoryMethod(), getCallOptions(), request); } @@ -4161,8 +4170,9 @@ public com.google.devtools.artifactregistry.v1.Repository getRepository( * */ public com.google.longrunning.Operation createRepository( - com.google.devtools.artifactregistry.v1.CreateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.CreateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRepositoryMethod(), getCallOptions(), request); } @@ -4174,8 +4184,9 @@ public com.google.longrunning.Operation createRepository( * */ public com.google.devtools.artifactregistry.v1.Repository updateRepository( - com.google.devtools.artifactregistry.v1.UpdateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.UpdateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); } @@ -4189,8 +4200,9 @@ public com.google.devtools.artifactregistry.v1.Repository updateRepository( * */ public com.google.longrunning.Operation deleteRepository( - com.google.devtools.artifactregistry.v1.DeleteRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.DeleteRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } @@ -4202,8 +4214,9 @@ public com.google.longrunning.Operation deleteRepository( * */ public com.google.devtools.artifactregistry.v1.ListPackagesResponse listPackages( - com.google.devtools.artifactregistry.v1.ListPackagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListPackagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPackagesMethod(), getCallOptions(), request); } @@ -4215,8 +4228,9 @@ public com.google.devtools.artifactregistry.v1.ListPackagesResponse listPackages * */ public com.google.devtools.artifactregistry.v1.Package getPackage( - com.google.devtools.artifactregistry.v1.GetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPackageMethod(), getCallOptions(), request); } @@ -4229,8 +4243,9 @@ public com.google.devtools.artifactregistry.v1.Package getPackage( * */ public com.google.longrunning.Operation deletePackage( - com.google.devtools.artifactregistry.v1.DeletePackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.DeletePackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePackageMethod(), getCallOptions(), request); } @@ -4242,8 +4257,9 @@ public com.google.longrunning.Operation deletePackage( * */ public com.google.devtools.artifactregistry.v1.ListVersionsResponse listVersions( - com.google.devtools.artifactregistry.v1.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVersionsMethod(), getCallOptions(), request); } @@ -4255,8 +4271,9 @@ public com.google.devtools.artifactregistry.v1.ListVersionsResponse listVersions * */ public com.google.devtools.artifactregistry.v1.Version getVersion( - com.google.devtools.artifactregistry.v1.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVersionMethod(), getCallOptions(), request); } @@ -4269,8 +4286,9 @@ public com.google.devtools.artifactregistry.v1.Version getVersion( * */ public com.google.longrunning.Operation deleteVersion( - com.google.devtools.artifactregistry.v1.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.DeleteVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVersionMethod(), getCallOptions(), request); } @@ -4283,8 +4301,9 @@ public com.google.longrunning.Operation deleteVersion( * */ public com.google.longrunning.Operation batchDeleteVersions( - com.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteVersionsMethod(), getCallOptions(), request); } @@ -4296,8 +4315,9 @@ public com.google.longrunning.Operation batchDeleteVersions( * */ public com.google.devtools.artifactregistry.v1.Version updateVersion( - com.google.devtools.artifactregistry.v1.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.UpdateVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVersionMethod(), getCallOptions(), request); } @@ -4309,8 +4329,9 @@ public com.google.devtools.artifactregistry.v1.Version updateVersion( * */ public com.google.devtools.artifactregistry.v1.ListFilesResponse listFiles( - com.google.devtools.artifactregistry.v1.ListFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFilesMethod(), getCallOptions(), request); } @@ -4322,8 +4343,9 @@ public com.google.devtools.artifactregistry.v1.ListFilesResponse listFiles( * */ public com.google.devtools.artifactregistry.v1.File getFile( - com.google.devtools.artifactregistry.v1.GetFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFileMethod(), getCallOptions(), request); } @@ -4337,8 +4359,9 @@ public com.google.devtools.artifactregistry.v1.File getFile( * */ public com.google.longrunning.Operation deleteFile( - com.google.devtools.artifactregistry.v1.DeleteFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.DeleteFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFileMethod(), getCallOptions(), request); } @@ -4350,8 +4373,9 @@ public com.google.longrunning.Operation deleteFile( * */ public com.google.devtools.artifactregistry.v1.File updateFile( - com.google.devtools.artifactregistry.v1.UpdateFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.UpdateFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFileMethod(), getCallOptions(), request); } @@ -4363,8 +4387,9 @@ public com.google.devtools.artifactregistry.v1.File updateFile( * */ public com.google.devtools.artifactregistry.v1.ListTagsResponse listTags( - com.google.devtools.artifactregistry.v1.ListTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListTagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTagsMethod(), getCallOptions(), request); } @@ -4376,8 +4401,9 @@ public com.google.devtools.artifactregistry.v1.ListTagsResponse listTags( * */ public com.google.devtools.artifactregistry.v1.Tag getTag( - com.google.devtools.artifactregistry.v1.GetTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTagMethod(), getCallOptions(), request); } @@ -4389,8 +4415,9 @@ public com.google.devtools.artifactregistry.v1.Tag getTag( * */ public com.google.devtools.artifactregistry.v1.Tag createTag( - com.google.devtools.artifactregistry.v1.CreateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.CreateTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagMethod(), getCallOptions(), request); } @@ -4402,8 +4429,9 @@ public com.google.devtools.artifactregistry.v1.Tag createTag( * */ public com.google.devtools.artifactregistry.v1.Tag updateTag( - com.google.devtools.artifactregistry.v1.UpdateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.UpdateTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagMethod(), getCallOptions(), request); } @@ -4415,8 +4443,9 @@ public com.google.devtools.artifactregistry.v1.Tag updateTag( * */ public com.google.protobuf.Empty deleteTag( - com.google.devtools.artifactregistry.v1.DeleteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.DeleteTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagMethod(), getCallOptions(), request); } @@ -4428,8 +4457,9 @@ public com.google.protobuf.Empty deleteTag( * */ public com.google.devtools.artifactregistry.v1.Rule createRule( - com.google.devtools.artifactregistry.v1.CreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.CreateRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRuleMethod(), getCallOptions(), request); } @@ -4441,8 +4471,9 @@ public com.google.devtools.artifactregistry.v1.Rule createRule( * */ public com.google.devtools.artifactregistry.v1.ListRulesResponse listRules( - com.google.devtools.artifactregistry.v1.ListRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRulesMethod(), getCallOptions(), request); } @@ -4454,8 +4485,9 @@ public com.google.devtools.artifactregistry.v1.ListRulesResponse listRules( * */ public com.google.devtools.artifactregistry.v1.Rule getRule( - com.google.devtools.artifactregistry.v1.GetRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRuleMethod(), getCallOptions(), request); } @@ -4467,8 +4499,9 @@ public com.google.devtools.artifactregistry.v1.Rule getRule( * */ public com.google.devtools.artifactregistry.v1.Rule updateRule( - com.google.devtools.artifactregistry.v1.UpdateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.UpdateRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRuleMethod(), getCallOptions(), request); } @@ -4480,8 +4513,9 @@ public com.google.devtools.artifactregistry.v1.Rule updateRule( * */ public com.google.protobuf.Empty deleteRule( - com.google.devtools.artifactregistry.v1.DeleteRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.DeleteRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRuleMethod(), getCallOptions(), request); } @@ -4492,8 +4526,9 @@ public com.google.protobuf.Empty deleteRule( * Updates the IAM policy for a given resource. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -4504,8 +4539,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * Gets the IAM policy for a given resource. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -4517,8 +4553,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -4530,8 +4566,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.devtools.artifactregistry.v1.ProjectSettings getProjectSettings( - com.google.devtools.artifactregistry.v1.GetProjectSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetProjectSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProjectSettingsMethod(), getCallOptions(), request); } @@ -4543,8 +4580,9 @@ public com.google.devtools.artifactregistry.v1.ProjectSettings getProjectSetting * */ public com.google.devtools.artifactregistry.v1.ProjectSettings updateProjectSettings( - com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProjectSettingsMethod(), getCallOptions(), request); } @@ -4556,8 +4594,9 @@ public com.google.devtools.artifactregistry.v1.ProjectSettings updateProjectSett * */ public com.google.devtools.artifactregistry.v1.VPCSCConfig getVPCSCConfig( - com.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVPCSCConfigMethod(), getCallOptions(), request); } @@ -4569,8 +4608,9 @@ public com.google.devtools.artifactregistry.v1.VPCSCConfig getVPCSCConfig( * */ public com.google.devtools.artifactregistry.v1.VPCSCConfig updateVPCSCConfig( - com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVPCSCConfigMethod(), getCallOptions(), request); } @@ -4582,8 +4622,9 @@ public com.google.devtools.artifactregistry.v1.VPCSCConfig updateVPCSCConfig( * */ public com.google.devtools.artifactregistry.v1.Package updatePackage( - com.google.devtools.artifactregistry.v1.UpdatePackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.UpdatePackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePackageMethod(), getCallOptions(), request); } @@ -4595,8 +4636,9 @@ public com.google.devtools.artifactregistry.v1.Package updatePackage( * */ public com.google.devtools.artifactregistry.v1.ListAttachmentsResponse listAttachments( - com.google.devtools.artifactregistry.v1.ListAttachmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.ListAttachmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAttachmentsMethod(), getCallOptions(), request); } @@ -4608,8 +4650,9 @@ public com.google.devtools.artifactregistry.v1.ListAttachmentsResponse listAttac * */ public com.google.devtools.artifactregistry.v1.Attachment getAttachment( - com.google.devtools.artifactregistry.v1.GetAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.GetAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttachmentMethod(), getCallOptions(), request); } @@ -4622,8 +4665,9 @@ public com.google.devtools.artifactregistry.v1.Attachment getAttachment( * */ public com.google.longrunning.Operation createAttachment( - com.google.devtools.artifactregistry.v1.CreateAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.CreateAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAttachmentMethod(), getCallOptions(), request); } @@ -4637,8 +4681,9 @@ public com.google.longrunning.Operation createAttachment( * */ public com.google.longrunning.Operation deleteAttachment( - com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAttachmentMethod(), getCallOptions(), request); } } diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistryGrpc.java b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistryGrpc.java index 7ce01c3fa7f3..47b6cae176d3 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistryGrpc.java +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistryGrpc.java @@ -33,9 +33,6 @@ * or Version. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/artifactregistry/v1beta2/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ArtifactRegistryGrpc { @@ -2144,8 +2141,9 @@ protected ArtifactRegistryBlockingV2Stub build( * */ public com.google.longrunning.Operation importAptArtifacts( - com.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportAptArtifactsMethod(), getCallOptions(), request); } @@ -2160,8 +2158,9 @@ public com.google.longrunning.Operation importAptArtifacts( * */ public com.google.longrunning.Operation importYumArtifacts( - com.google.devtools.artifactregistry.v1beta2.ImportYumArtifactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.ImportYumArtifactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportYumArtifactsMethod(), getCallOptions(), request); } @@ -2173,8 +2172,9 @@ public com.google.longrunning.Operation importYumArtifacts( * */ public com.google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse listRepositories( - com.google.devtools.artifactregistry.v1beta2.ListRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.ListRepositoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRepositoriesMethod(), getCallOptions(), request); } @@ -2186,8 +2186,9 @@ public com.google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse lis * */ public com.google.devtools.artifactregistry.v1beta2.Repository getRepository( - com.google.devtools.artifactregistry.v1beta2.GetRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.GetRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRepositoryMethod(), getCallOptions(), request); } @@ -2200,8 +2201,9 @@ public com.google.devtools.artifactregistry.v1beta2.Repository getRepository( * */ public com.google.longrunning.Operation createRepository( - com.google.devtools.artifactregistry.v1beta2.CreateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.CreateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRepositoryMethod(), getCallOptions(), request); } @@ -2213,8 +2215,9 @@ public com.google.longrunning.Operation createRepository( * */ public com.google.devtools.artifactregistry.v1beta2.Repository updateRepository( - com.google.devtools.artifactregistry.v1beta2.UpdateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.UpdateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); } @@ -2228,8 +2231,9 @@ public com.google.devtools.artifactregistry.v1beta2.Repository updateRepository( * */ public com.google.longrunning.Operation deleteRepository( - com.google.devtools.artifactregistry.v1beta2.DeleteRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.DeleteRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } @@ -2241,8 +2245,9 @@ public com.google.longrunning.Operation deleteRepository( * */ public com.google.devtools.artifactregistry.v1beta2.ListPackagesResponse listPackages( - com.google.devtools.artifactregistry.v1beta2.ListPackagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.ListPackagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPackagesMethod(), getCallOptions(), request); } @@ -2254,8 +2259,9 @@ public com.google.devtools.artifactregistry.v1beta2.ListPackagesResponse listPac * */ public com.google.devtools.artifactregistry.v1beta2.Package getPackage( - com.google.devtools.artifactregistry.v1beta2.GetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.GetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPackageMethod(), getCallOptions(), request); } @@ -2268,8 +2274,9 @@ public com.google.devtools.artifactregistry.v1beta2.Package getPackage( * */ public com.google.longrunning.Operation deletePackage( - com.google.devtools.artifactregistry.v1beta2.DeletePackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.DeletePackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePackageMethod(), getCallOptions(), request); } @@ -2281,8 +2288,9 @@ public com.google.longrunning.Operation deletePackage( * */ public com.google.devtools.artifactregistry.v1beta2.ListVersionsResponse listVersions( - com.google.devtools.artifactregistry.v1beta2.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.ListVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVersionsMethod(), getCallOptions(), request); } @@ -2294,8 +2302,9 @@ public com.google.devtools.artifactregistry.v1beta2.ListVersionsResponse listVer * */ public com.google.devtools.artifactregistry.v1beta2.Version getVersion( - com.google.devtools.artifactregistry.v1beta2.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.GetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVersionMethod(), getCallOptions(), request); } @@ -2308,8 +2317,9 @@ public com.google.devtools.artifactregistry.v1beta2.Version getVersion( * */ public com.google.longrunning.Operation deleteVersion( - com.google.devtools.artifactregistry.v1beta2.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.DeleteVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVersionMethod(), getCallOptions(), request); } @@ -2321,8 +2331,9 @@ public com.google.longrunning.Operation deleteVersion( * */ public com.google.devtools.artifactregistry.v1beta2.ListFilesResponse listFiles( - com.google.devtools.artifactregistry.v1beta2.ListFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.ListFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFilesMethod(), getCallOptions(), request); } @@ -2334,8 +2345,9 @@ public com.google.devtools.artifactregistry.v1beta2.ListFilesResponse listFiles( * */ public com.google.devtools.artifactregistry.v1beta2.File getFile( - com.google.devtools.artifactregistry.v1beta2.GetFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.GetFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFileMethod(), getCallOptions(), request); } @@ -2347,8 +2359,9 @@ public com.google.devtools.artifactregistry.v1beta2.File getFile( * */ public com.google.devtools.artifactregistry.v1beta2.ListTagsResponse listTags( - com.google.devtools.artifactregistry.v1beta2.ListTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.ListTagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTagsMethod(), getCallOptions(), request); } @@ -2360,8 +2373,9 @@ public com.google.devtools.artifactregistry.v1beta2.ListTagsResponse listTags( * */ public com.google.devtools.artifactregistry.v1beta2.Tag getTag( - com.google.devtools.artifactregistry.v1beta2.GetTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.GetTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTagMethod(), getCallOptions(), request); } @@ -2373,8 +2387,9 @@ public com.google.devtools.artifactregistry.v1beta2.Tag getTag( * */ public com.google.devtools.artifactregistry.v1beta2.Tag createTag( - com.google.devtools.artifactregistry.v1beta2.CreateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.CreateTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagMethod(), getCallOptions(), request); } @@ -2386,8 +2401,9 @@ public com.google.devtools.artifactregistry.v1beta2.Tag createTag( * */ public com.google.devtools.artifactregistry.v1beta2.Tag updateTag( - com.google.devtools.artifactregistry.v1beta2.UpdateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.UpdateTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagMethod(), getCallOptions(), request); } @@ -2399,8 +2415,9 @@ public com.google.devtools.artifactregistry.v1beta2.Tag updateTag( * */ public com.google.protobuf.Empty deleteTag( - com.google.devtools.artifactregistry.v1beta2.DeleteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.DeleteTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagMethod(), getCallOptions(), request); } @@ -2411,8 +2428,9 @@ public com.google.protobuf.Empty deleteTag( * Updates the IAM policy for a given resource. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -2423,8 +2441,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * Gets the IAM policy for a given resource. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -2436,8 +2455,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -2449,8 +2468,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.devtools.artifactregistry.v1beta2.ProjectSettings getProjectSettings( - com.google.devtools.artifactregistry.v1beta2.GetProjectSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.GetProjectSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProjectSettingsMethod(), getCallOptions(), request); } @@ -2462,8 +2482,9 @@ public com.google.devtools.artifactregistry.v1beta2.ProjectSettings getProjectSe * */ public com.google.devtools.artifactregistry.v1beta2.ProjectSettings updateProjectSettings( - com.google.devtools.artifactregistry.v1beta2.UpdateProjectSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.artifactregistry.v1beta2.UpdateProjectSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProjectSettingsMethod(), getCallOptions(), request); } } diff --git a/java-asset/README.md b/java-asset/README.md index 119ed8cc76ed..c34b332c470d 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.81.0 + 3.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.81.0' +implementation 'com.google.cloud:google-cloud-asset:3.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.82.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java index c2ed785c5d8a..381596e10ce1 100644 --- a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java @@ -24,9 +24,6 @@ * Asset service definition. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1/asset_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AssetServiceGrpc { @@ -2096,8 +2093,8 @@ protected AssetServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation exportAssets( - com.google.cloud.asset.v1.ExportAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.ExportAssetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportAssetsMethod(), getCallOptions(), request); } @@ -2110,8 +2107,8 @@ public com.google.longrunning.Operation exportAssets( * */ public com.google.cloud.asset.v1.ListAssetsResponse listAssets( - com.google.cloud.asset.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.ListAssetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } @@ -2129,8 +2126,9 @@ public com.google.cloud.asset.v1.ListAssetsResponse listAssets( * */ public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse batchGetAssetsHistory( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchGetAssetsHistoryMethod(), getCallOptions(), request); } @@ -2143,8 +2141,8 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse batchGetAssetsHis * */ public com.google.cloud.asset.v1.Feed createFeed( - com.google.cloud.asset.v1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.CreateFeedRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeedMethod(), getCallOptions(), request); } @@ -2155,9 +2153,9 @@ public com.google.cloud.asset.v1.Feed createFeed( * Gets details about an asset feed. * */ - public com.google.cloud.asset.v1.Feed getFeed( - com.google.cloud.asset.v1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.asset.v1.Feed getFeed(com.google.cloud.asset.v1.GetFeedRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeedMethod(), getCallOptions(), request); } @@ -2169,8 +2167,8 @@ public com.google.cloud.asset.v1.Feed getFeed( * */ public com.google.cloud.asset.v1.ListFeedsResponse listFeeds( - com.google.cloud.asset.v1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.ListFeedsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeedsMethod(), getCallOptions(), request); } @@ -2182,8 +2180,8 @@ public com.google.cloud.asset.v1.ListFeedsResponse listFeeds( * */ public com.google.cloud.asset.v1.Feed updateFeed( - com.google.cloud.asset.v1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.UpdateFeedRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeedMethod(), getCallOptions(), request); } @@ -2194,9 +2192,9 @@ public com.google.cloud.asset.v1.Feed updateFeed( * Deletes an asset feed. * */ - public com.google.protobuf.Empty deleteFeed( - com.google.cloud.asset.v1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteFeed(com.google.cloud.asset.v1.DeleteFeedRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeedMethod(), getCallOptions(), request); } @@ -2211,8 +2209,9 @@ public com.google.protobuf.Empty deleteFeed( * */ public com.google.cloud.asset.v1.SearchAllResourcesResponse searchAllResources( - com.google.cloud.asset.v1.SearchAllResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.SearchAllResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchAllResourcesMethod(), getCallOptions(), request); } @@ -2227,8 +2226,9 @@ public com.google.cloud.asset.v1.SearchAllResourcesResponse searchAllResources( * */ public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse searchAllIamPolicies( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchAllIamPoliciesMethod(), getCallOptions(), request); } @@ -2241,8 +2241,8 @@ public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse searchAllIamPolici * */ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse analyzeIamPolicy( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeIamPolicyMethod(), getCallOptions(), request); } @@ -2263,8 +2263,9 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse analyzeIamPolicy( * */ public com.google.longrunning.Operation analyzeIamPolicyLongrunning( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeIamPolicyLongrunningMethod(), getCallOptions(), request); } @@ -2280,8 +2281,8 @@ public com.google.longrunning.Operation analyzeIamPolicyLongrunning( * */ public com.google.cloud.asset.v1.AnalyzeMoveResponse analyzeMove( - com.google.cloud.asset.v1.AnalyzeMoveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.AnalyzeMoveRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeMoveMethod(), getCallOptions(), request); } @@ -2301,8 +2302,8 @@ public com.google.cloud.asset.v1.AnalyzeMoveResponse analyzeMove( * */ public com.google.cloud.asset.v1.QueryAssetsResponse queryAssets( - com.google.cloud.asset.v1.QueryAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.QueryAssetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryAssetsMethod(), getCallOptions(), request); } @@ -2314,8 +2315,8 @@ public com.google.cloud.asset.v1.QueryAssetsResponse queryAssets( * */ public com.google.cloud.asset.v1.SavedQuery createSavedQuery( - com.google.cloud.asset.v1.CreateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.CreateSavedQueryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSavedQueryMethod(), getCallOptions(), request); } @@ -2327,8 +2328,8 @@ public com.google.cloud.asset.v1.SavedQuery createSavedQuery( * */ public com.google.cloud.asset.v1.SavedQuery getSavedQuery( - com.google.cloud.asset.v1.GetSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.GetSavedQueryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSavedQueryMethod(), getCallOptions(), request); } @@ -2340,8 +2341,8 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQuery( * */ public com.google.cloud.asset.v1.ListSavedQueriesResponse listSavedQueries( - com.google.cloud.asset.v1.ListSavedQueriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.ListSavedQueriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSavedQueriesMethod(), getCallOptions(), request); } @@ -2353,8 +2354,8 @@ public com.google.cloud.asset.v1.ListSavedQueriesResponse listSavedQueries( * */ public com.google.cloud.asset.v1.SavedQuery updateSavedQuery( - com.google.cloud.asset.v1.UpdateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.UpdateSavedQueryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSavedQueryMethod(), getCallOptions(), request); } @@ -2366,8 +2367,8 @@ public com.google.cloud.asset.v1.SavedQuery updateSavedQuery( * */ public com.google.protobuf.Empty deleteSavedQuery( - com.google.cloud.asset.v1.DeleteSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.DeleteSavedQueryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSavedQueryMethod(), getCallOptions(), request); } @@ -2380,8 +2381,9 @@ public com.google.protobuf.Empty deleteSavedQuery( */ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse batchGetEffectiveIamPolicies( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchGetEffectiveIamPoliciesMethod(), getCallOptions(), request); } @@ -2393,8 +2395,9 @@ public com.google.protobuf.Empty deleteSavedQuery( * */ public com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse analyzeOrgPolicies( - com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeOrgPoliciesMethod(), getCallOptions(), request); } @@ -2408,8 +2411,9 @@ public com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse analyzeOrgPolicies( */ public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse analyzeOrgPolicyGovernedContainers( - com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeOrgPolicyGovernedContainersMethod(), getCallOptions(), request); } @@ -2468,8 +2472,9 @@ public com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse analyzeOrgPolicies( */ public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse analyzeOrgPolicyGovernedAssets( - com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeOrgPolicyGovernedAssetsMethod(), getCallOptions(), request); } } diff --git a/java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java index b13adddbb4a0..5a9840710377 100644 --- a/java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java @@ -24,9 +24,6 @@ * Asset service definition. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1p1beta1/asset_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AssetServiceGrpc { @@ -346,8 +343,9 @@ protected AssetServiceBlockingV2Stub build( * */ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse searchAllResources( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchAllResourcesMethod(), getCallOptions(), request); } @@ -364,8 +362,9 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse searchAllReso * */ public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse searchAllIamPolicies( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchAllIamPoliciesMethod(), getCallOptions(), request); } } diff --git a/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java index b84e0a8a882c..78bbc070371e 100644 --- a/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java @@ -24,9 +24,6 @@ * Asset service definition. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1p2beta1/asset_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AssetServiceGrpc { @@ -516,8 +513,8 @@ protected AssetServiceBlockingV2Stub build( * */ public com.google.cloud.asset.v1p2beta1.Feed createFeed( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeedMethod(), getCallOptions(), request); } @@ -529,8 +526,8 @@ public com.google.cloud.asset.v1p2beta1.Feed createFeed( * */ public com.google.cloud.asset.v1p2beta1.Feed getFeed( - com.google.cloud.asset.v1p2beta1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1p2beta1.GetFeedRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeedMethod(), getCallOptions(), request); } @@ -542,8 +539,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed( * */ public com.google.cloud.asset.v1p2beta1.ListFeedsResponse listFeeds( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeedsMethod(), getCallOptions(), request); } @@ -555,8 +552,8 @@ public com.google.cloud.asset.v1p2beta1.ListFeedsResponse listFeeds( * */ public com.google.cloud.asset.v1p2beta1.Feed updateFeed( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeedMethod(), getCallOptions(), request); } @@ -568,8 +565,8 @@ public com.google.cloud.asset.v1p2beta1.Feed updateFeed( * */ public com.google.protobuf.Empty deleteFeed( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeedMethod(), getCallOptions(), request); } } diff --git a/java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java index 33473df543ba..05d5dc444741 100644 --- a/java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java @@ -24,9 +24,6 @@ * Asset service definition. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1p5beta1/asset_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AssetServiceGrpc { @@ -239,8 +236,8 @@ protected AssetServiceBlockingV2Stub build( * */ public com.google.cloud.asset.v1p5beta1.ListAssetsResponse listAssets( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } } diff --git a/java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java index 0e4ffbae7acb..968ab8e18a05 100644 --- a/java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java @@ -24,9 +24,6 @@ * Asset service definition. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1p7beta1/asset_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AssetServiceGrpc { @@ -263,8 +260,9 @@ protected AssetServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation exportAssets( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportAssetsMethod(), getCallOptions(), request); } } diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 97d921a7598e..3d7c66b115aa 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.77.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java index ca38521544d4..0b9539186395 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage AssuredWorkloads. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/assuredworkloads/v1/assuredworkloads.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AssuredWorkloadsServiceGrpc { @@ -916,8 +913,9 @@ protected AssuredWorkloadsServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createWorkload( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); } @@ -932,8 +930,9 @@ public com.google.longrunning.Operation createWorkload( * */ public com.google.cloud.assuredworkloads.v1.Workload updateWorkload( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); } @@ -951,8 +950,9 @@ public com.google.cloud.assuredworkloads.v1.Workload updateWorkload( */ public com.google.cloud.assuredworkloads.v1.RestrictAllowedResourcesResponse restrictAllowedResources( - com.google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestrictAllowedResourcesMethod(), getCallOptions(), request); } @@ -966,8 +966,9 @@ public com.google.cloud.assuredworkloads.v1.Workload updateWorkload( * */ public com.google.protobuf.Empty deleteWorkload( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); } @@ -979,8 +980,9 @@ public com.google.protobuf.Empty deleteWorkload( * */ public com.google.cloud.assuredworkloads.v1.Workload getWorkload( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkloadMethod(), getCallOptions(), request); } @@ -992,8 +994,9 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkload( * */ public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse listWorkloads( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkloadsMethod(), getCallOptions(), request); } @@ -1009,8 +1012,9 @@ public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse listWorkloads( * */ public com.google.cloud.assuredworkloads.v1.ListViolationsResponse listViolations( - com.google.cloud.assuredworkloads.v1.ListViolationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1.ListViolationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListViolationsMethod(), getCallOptions(), request); } @@ -1022,8 +1026,9 @@ public com.google.cloud.assuredworkloads.v1.ListViolationsResponse listViolation * */ public com.google.cloud.assuredworkloads.v1.Violation getViolation( - com.google.cloud.assuredworkloads.v1.GetViolationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1.GetViolationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetViolationMethod(), getCallOptions(), request); } @@ -1038,8 +1043,9 @@ public com.google.cloud.assuredworkloads.v1.Violation getViolation( * */ public com.google.cloud.assuredworkloads.v1.AcknowledgeViolationResponse acknowledgeViolation( - com.google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcknowledgeViolationMethod(), getCallOptions(), request); } } diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java index 9becde001bdf..2f6444ba1cb8 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage AssuredWorkloads. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AssuredWorkloadsServiceGrpc { @@ -759,8 +756,9 @@ protected AssuredWorkloadsServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createWorkload( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); } @@ -775,8 +773,9 @@ public com.google.longrunning.Operation createWorkload( * */ public com.google.cloud.assuredworkloads.v1beta1.Workload updateWorkload( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); } @@ -794,8 +793,9 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload updateWorkload( */ public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse restrictAllowedResources( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestrictAllowedResourcesMethod(), getCallOptions(), request); } @@ -812,8 +812,9 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload updateWorkload( * */ public com.google.protobuf.Empty deleteWorkload( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); } @@ -825,8 +826,9 @@ public com.google.protobuf.Empty deleteWorkload( * */ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkloadMethod(), getCallOptions(), request); } @@ -840,8 +842,9 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload( */ public com.google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveResponse analyzeWorkloadMove( - com.google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeWorkloadMoveMethod(), getCallOptions(), request); } @@ -853,8 +856,9 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload( * */ public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse listWorkloads( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkloadsMethod(), getCallOptions(), request); } } diff --git a/java-automl/README.md b/java-automl/README.md index dc8f79e8d757..058ee8fc4d85 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.77.0' +implementation 'com.google.cloud:google-cloud-automl:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.78.0" ``` ## Authentication @@ -205,7 +205,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-automl/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java b/java-automl/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java index 22cf54225444..e0b148f65930 100644 --- a/java-automl/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java +++ b/java-automl/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AutoMlGrpc.java @@ -33,9 +33,6 @@ * snake_case or dash-case, either of those cases is accepted. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/automl/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutoMlGrpc { @@ -1568,8 +1565,8 @@ protected AutoMlBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.longrunning.Operation createDataset( - com.google.cloud.automl.v1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.CreateDatasetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } @@ -1581,8 +1578,8 @@ public com.google.longrunning.Operation createDataset( * */ public com.google.cloud.automl.v1.Dataset getDataset( - com.google.cloud.automl.v1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.GetDatasetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } @@ -1594,8 +1591,8 @@ public com.google.cloud.automl.v1.Dataset getDataset( * */ public com.google.cloud.automl.v1.ListDatasetsResponse listDatasets( - com.google.cloud.automl.v1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.ListDatasetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetsMethod(), getCallOptions(), request); } @@ -1607,8 +1604,8 @@ public com.google.cloud.automl.v1.ListDatasetsResponse listDatasets( * */ public com.google.cloud.automl.v1.Dataset updateDataset( - com.google.cloud.automl.v1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.UpdateDatasetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } @@ -1624,8 +1621,8 @@ public com.google.cloud.automl.v1.Dataset updateDataset( * */ public com.google.longrunning.Operation deleteDataset( - com.google.cloud.automl.v1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.DeleteDatasetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } @@ -1644,8 +1641,8 @@ public com.google.longrunning.Operation deleteDataset( * */ public com.google.longrunning.Operation importData( - com.google.cloud.automl.v1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.ImportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } @@ -1659,8 +1656,8 @@ public com.google.longrunning.Operation importData( * */ public com.google.longrunning.Operation exportData( - com.google.cloud.automl.v1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.ExportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } @@ -1672,8 +1669,9 @@ public com.google.longrunning.Operation exportData( * */ public com.google.cloud.automl.v1.AnnotationSpec getAnnotationSpec( - com.google.cloud.automl.v1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.GetAnnotationSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); } @@ -1689,8 +1687,8 @@ public com.google.cloud.automl.v1.AnnotationSpec getAnnotationSpec( * */ public com.google.longrunning.Operation createModel( - com.google.cloud.automl.v1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.CreateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelMethod(), getCallOptions(), request); } @@ -1702,8 +1700,8 @@ public com.google.longrunning.Operation createModel( * */ public com.google.cloud.automl.v1.Model getModel( - com.google.cloud.automl.v1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.GetModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } @@ -1715,8 +1713,8 @@ public com.google.cloud.automl.v1.Model getModel( * */ public com.google.cloud.automl.v1.ListModelsResponse listModels( - com.google.cloud.automl.v1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.ListModelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } @@ -1732,8 +1730,8 @@ public com.google.cloud.automl.v1.ListModelsResponse listModels( * */ public com.google.longrunning.Operation deleteModel( - com.google.cloud.automl.v1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.DeleteModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } @@ -1745,8 +1743,8 @@ public com.google.longrunning.Operation deleteModel( * */ public com.google.cloud.automl.v1.Model updateModel( - com.google.cloud.automl.v1.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.UpdateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelMethod(), getCallOptions(), request); } @@ -1766,8 +1764,8 @@ public com.google.cloud.automl.v1.Model updateModel( * */ public com.google.longrunning.Operation deployModel( - com.google.cloud.automl.v1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.DeployModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployModelMethod(), getCallOptions(), request); } @@ -1783,8 +1781,8 @@ public com.google.longrunning.Operation deployModel( * */ public com.google.longrunning.Operation undeployModel( - com.google.cloud.automl.v1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.UndeployModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployModelMethod(), getCallOptions(), request); } @@ -1801,8 +1799,8 @@ public com.google.longrunning.Operation undeployModel( * */ public com.google.longrunning.Operation exportModel( - com.google.cloud.automl.v1.ExportModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.ExportModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportModelMethod(), getCallOptions(), request); } @@ -1814,8 +1812,9 @@ public com.google.longrunning.Operation exportModel( * */ public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation( - com.google.cloud.automl.v1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.GetModelEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); } @@ -1827,8 +1826,9 @@ public com.google.cloud.automl.v1.ModelEvaluation getModelEvaluation( * */ public com.google.cloud.automl.v1.ListModelEvaluationsResponse listModelEvaluations( - com.google.cloud.automl.v1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.ListModelEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); } } diff --git a/java-automl/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java b/java-automl/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java index c1e0576d1d9a..9c5268ab50c3 100644 --- a/java-automl/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java +++ b/java-automl/grpc-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/PredictionServiceGrpc.java @@ -26,9 +26,6 @@ * snake_case or dash-case, either of those cases is accepted. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/automl/v1/prediction_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PredictionServiceGrpc { @@ -402,8 +399,8 @@ protected PredictionServiceBlockingV2Stub build( * */ public com.google.cloud.automl.v1.PredictResponse predict( - com.google.cloud.automl.v1.PredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.PredictRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } @@ -428,8 +425,8 @@ public com.google.cloud.automl.v1.PredictResponse predict( * */ public com.google.longrunning.Operation batchPredict( - com.google.cloud.automl.v1.BatchPredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1.BatchPredictRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchPredictMethod(), getCallOptions(), request); } } diff --git a/java-automl/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java b/java-automl/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java index 64a7bc305349..3400cc2810b6 100644 --- a/java-automl/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java +++ b/java-automl/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java @@ -33,9 +33,6 @@ * snake_case or kebab-case, either of those cases is accepted. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/automl/v1beta1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutoMlGrpc { @@ -2079,8 +2076,9 @@ protected AutoMlBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.automl.v1beta1.Dataset createDataset( - com.google.cloud.automl.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.CreateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } @@ -2092,8 +2090,8 @@ public com.google.cloud.automl.v1beta1.Dataset createDataset( * */ public com.google.cloud.automl.v1beta1.Dataset getDataset( - com.google.cloud.automl.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.GetDatasetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } @@ -2105,8 +2103,9 @@ public com.google.cloud.automl.v1beta1.Dataset getDataset( * */ public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets( - com.google.cloud.automl.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.ListDatasetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetsMethod(), getCallOptions(), request); } @@ -2118,8 +2117,9 @@ public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets( * */ public com.google.cloud.automl.v1beta1.Dataset updateDataset( - com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } @@ -2135,8 +2135,9 @@ public com.google.cloud.automl.v1beta1.Dataset updateDataset( * */ public com.google.longrunning.Operation deleteDataset( - com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.DeleteDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } @@ -2155,8 +2156,8 @@ public com.google.longrunning.Operation deleteDataset( * */ public com.google.longrunning.Operation importData( - com.google.cloud.automl.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.ImportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } @@ -2170,8 +2171,8 @@ public com.google.longrunning.Operation importData( * */ public com.google.longrunning.Operation exportData( - com.google.cloud.automl.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.ExportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } @@ -2183,8 +2184,9 @@ public com.google.longrunning.Operation exportData( * */ public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec( - com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnnotationSpecMethod(), getCallOptions(), request); } @@ -2196,8 +2198,9 @@ public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec( * */ public com.google.cloud.automl.v1beta1.TableSpec getTableSpec( - com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.GetTableSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTableSpecMethod(), getCallOptions(), request); } @@ -2209,8 +2212,9 @@ public com.google.cloud.automl.v1beta1.TableSpec getTableSpec( * */ public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs( - com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTableSpecsMethod(), getCallOptions(), request); } @@ -2222,8 +2226,9 @@ public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs( * */ public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec( - com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTableSpecMethod(), getCallOptions(), request); } @@ -2235,8 +2240,9 @@ public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec( * */ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec( - com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetColumnSpecMethod(), getCallOptions(), request); } @@ -2248,8 +2254,9 @@ public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec( * */ public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse listColumnSpecs( - com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListColumnSpecsMethod(), getCallOptions(), request); } @@ -2261,8 +2268,9 @@ public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse listColumnSpecs( * */ public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec( - com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateColumnSpecMethod(), getCallOptions(), request); } @@ -2278,8 +2286,8 @@ public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec( * */ public com.google.longrunning.Operation createModel( - com.google.cloud.automl.v1beta1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.CreateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelMethod(), getCallOptions(), request); } @@ -2291,8 +2299,8 @@ public com.google.longrunning.Operation createModel( * */ public com.google.cloud.automl.v1beta1.Model getModel( - com.google.cloud.automl.v1beta1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.GetModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } @@ -2304,8 +2312,8 @@ public com.google.cloud.automl.v1beta1.Model getModel( * */ public com.google.cloud.automl.v1beta1.ListModelsResponse listModels( - com.google.cloud.automl.v1beta1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.ListModelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } @@ -2321,8 +2329,8 @@ public com.google.cloud.automl.v1beta1.ListModelsResponse listModels( * */ public com.google.longrunning.Operation deleteModel( - com.google.cloud.automl.v1beta1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.DeleteModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } @@ -2342,8 +2350,8 @@ public com.google.longrunning.Operation deleteModel( * */ public com.google.longrunning.Operation deployModel( - com.google.cloud.automl.v1beta1.DeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.DeployModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployModelMethod(), getCallOptions(), request); } @@ -2359,8 +2367,9 @@ public com.google.longrunning.Operation deployModel( * */ public com.google.longrunning.Operation undeployModel( - com.google.cloud.automl.v1beta1.UndeployModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.UndeployModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployModelMethod(), getCallOptions(), request); } @@ -2377,8 +2386,8 @@ public com.google.longrunning.Operation undeployModel( * */ public com.google.longrunning.Operation exportModel( - com.google.cloud.automl.v1beta1.ExportModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.ExportModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportModelMethod(), getCallOptions(), request); } @@ -2400,8 +2409,9 @@ public com.google.longrunning.Operation exportModel( * */ public com.google.longrunning.Operation exportEvaluatedExamples( - com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportEvaluatedExamplesMethod(), getCallOptions(), request); } @@ -2413,8 +2423,9 @@ public com.google.longrunning.Operation exportEvaluatedExamples( * */ public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation( - com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.GetModelEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelEvaluationMethod(), getCallOptions(), request); } @@ -2426,8 +2437,9 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation getModelEvaluation( * */ public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse listModelEvaluations( - com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelEvaluationsMethod(), getCallOptions(), request); } } diff --git a/java-automl/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java b/java-automl/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java index 2d891bf71b21..a7c54dba366f 100644 --- a/java-automl/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java +++ b/java-automl/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java @@ -26,9 +26,6 @@ * snake_case or kebab-case, either of those cases is accepted. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/automl/v1beta1/prediction_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PredictionServiceGrpc { @@ -393,8 +390,8 @@ protected PredictionServiceBlockingV2Stub build( * */ public com.google.cloud.automl.v1beta1.PredictResponse predict( - com.google.cloud.automl.v1beta1.PredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.PredictRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } @@ -417,8 +414,9 @@ public com.google.cloud.automl.v1beta1.PredictResponse predict( * */ public com.google.longrunning.Operation batchPredict( - com.google.cloud.automl.v1beta1.BatchPredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.automl.v1beta1.BatchPredictRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchPredictMethod(), getCallOptions(), request); } } diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 8a52cf51edb7..c8bc5f95f31e 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.36.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.37.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java index 71e5f4451a76..c5a7a7beb3eb 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java @@ -354,6 +354,26 @@ * * * + *

    FetchBackupsForResourceType + *

    Fetch Backups for a given resource type. + * + *

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

    + *
      + *
    • fetchBackupsForResourceType(FetchBackupsForResourceTypeRequest request) + *

    + *

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

    + *
      + *
    • fetchBackupsForResourceType(DataSourceName parent, String resourceType) + *

    • fetchBackupsForResourceType(String parent, String resourceType) + *

    + *

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

    + *
      + *
    • fetchBackupsForResourceTypePagedCallable() + *

    • fetchBackupsForResourceTypeCallable() + *

    + * + * + * *

    GetBackup *

    Gets details of a Backup. * @@ -726,6 +746,26 @@ * * * + *

    ListDataSourceReferences + *

    Lists DataSourceReferences for a given project and location. + * + *

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

    + *
      + *
    • listDataSourceReferences(ListDataSourceReferencesRequest request) + *

    + *

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

    + *
      + *
    • listDataSourceReferences(LocationName parent) + *

    • listDataSourceReferences(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.

    + *
      + *
    • listDataSourceReferencesPagedCallable() + *

    • listDataSourceReferencesCallable() + *

    + * + * + * *

    FetchDataSourceReferencesForResourceType *

    Fetch DataSourceReferences for a given project, location and resource type. * @@ -3167,6 +3207,210 @@ public final UnaryCallable listBackupsC return stub.listBackupsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Backups for a given resource type. + * + *

    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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   DataSourceName parent =
    +   *       DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
    +   *   String resourceType = "resourceType-384364440";
    +   *   for (Backup element :
    +   *       backupDRClient.fetchBackupsForResourceType(parent, resourceType).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. Datasources are the parent resource for the backups. Format: + * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} + * @param resourceType Required. The type of the GCP resource. Ex: + * sqladmin.googleapis.com/Instance + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchBackupsForResourceTypePagedResponse fetchBackupsForResourceType( + DataSourceName parent, String resourceType) { + FetchBackupsForResourceTypeRequest request = + FetchBackupsForResourceTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setResourceType(resourceType) + .build(); + return fetchBackupsForResourceType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Backups for a given resource type. + * + *

    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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   String parent =
    +   *       DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]").toString();
    +   *   String resourceType = "resourceType-384364440";
    +   *   for (Backup element :
    +   *       backupDRClient.fetchBackupsForResourceType(parent, resourceType).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. Datasources are the parent resource for the backups. Format: + * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} + * @param resourceType Required. The type of the GCP resource. Ex: + * sqladmin.googleapis.com/Instance + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchBackupsForResourceTypePagedResponse fetchBackupsForResourceType( + String parent, String resourceType) { + FetchBackupsForResourceTypeRequest request = + FetchBackupsForResourceTypeRequest.newBuilder() + .setParent(parent) + .setResourceType(resourceType) + .build(); + return fetchBackupsForResourceType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Backups for a given resource type. + * + *

    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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   FetchBackupsForResourceTypeRequest request =
    +   *       FetchBackupsForResourceTypeRequest.newBuilder()
    +   *           .setParent(
    +   *               DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
    +   *                   .toString())
    +   *           .setResourceType("resourceType-384364440")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setView(BackupView.forNumber(0))
    +   *           .build();
    +   *   for (Backup element : backupDRClient.fetchBackupsForResourceType(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 FetchBackupsForResourceTypePagedResponse fetchBackupsForResourceType( + FetchBackupsForResourceTypeRequest request) { + return fetchBackupsForResourceTypePagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Backups for a given resource type. + * + *

    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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   FetchBackupsForResourceTypeRequest request =
    +   *       FetchBackupsForResourceTypeRequest.newBuilder()
    +   *           .setParent(
    +   *               DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
    +   *                   .toString())
    +   *           .setResourceType("resourceType-384364440")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setView(BackupView.forNumber(0))
    +   *           .build();
    +   *   ApiFuture future =
    +   *       backupDRClient.fetchBackupsForResourceTypePagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (Backup element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypePagedResponse> + fetchBackupsForResourceTypePagedCallable() { + return stub.fetchBackupsForResourceTypePagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Backups for a given resource type. + * + *

    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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   FetchBackupsForResourceTypeRequest request =
    +   *       FetchBackupsForResourceTypeRequest.newBuilder()
    +   *           .setParent(
    +   *               DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
    +   *                   .toString())
    +   *           .setResourceType("resourceType-384364440")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setView(BackupView.forNumber(0))
    +   *           .build();
    +   *   while (true) {
    +   *     FetchBackupsForResourceTypeResponse response =
    +   *         backupDRClient.fetchBackupsForResourceTypeCallable().call(request);
    +   *     for (Backup element : response.getBackupsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse> + fetchBackupsForResourceTypeCallable() { + return stub.fetchBackupsForResourceTypeCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets details of a Backup. @@ -6038,6 +6282,183 @@ public final DataSourceReference getDataSourceReference(GetDataSourceReferenceRe return stub.getDataSourceReferenceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataSourceReferences for 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (DataSourceReference element :
    +   *       backupDRClient.listDataSourceReferences(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource name. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataSourceReferencesPagedResponse listDataSourceReferences(LocationName parent) { + ListDataSourceReferencesRequest request = + ListDataSourceReferencesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDataSourceReferences(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataSourceReferences for 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   for (DataSourceReference element :
    +   *       backupDRClient.listDataSourceReferences(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource name. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataSourceReferencesPagedResponse listDataSourceReferences(String parent) { + ListDataSourceReferencesRequest request = + ListDataSourceReferencesRequest.newBuilder().setParent(parent).build(); + return listDataSourceReferences(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataSourceReferences for 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   ListDataSourceReferencesRequest request =
    +   *       ListDataSourceReferencesRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   for (DataSourceReference element :
    +   *       backupDRClient.listDataSourceReferences(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 ListDataSourceReferencesPagedResponse listDataSourceReferences( + ListDataSourceReferencesRequest request) { + return listDataSourceReferencesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataSourceReferences for 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   ListDataSourceReferencesRequest request =
    +   *       ListDataSourceReferencesRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       backupDRClient.listDataSourceReferencesPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (DataSourceReference element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listDataSourceReferencesPagedCallable() { + return stub.listDataSourceReferencesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataSourceReferences for 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
    +   *   ListDataSourceReferencesRequest request =
    +   *       ListDataSourceReferencesRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   while (true) {
    +   *     ListDataSourceReferencesResponse response =
    +   *         backupDRClient.listDataSourceReferencesCallable().call(request);
    +   *     for (DataSourceReference element : response.getDataSourceReferencesList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listDataSourceReferencesCallable() { + return stub.listDataSourceReferencesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Fetch DataSourceReferences for a given project, location and resource type. @@ -7113,6 +7534,91 @@ protected ListBackupsFixedSizeCollection createCollection( } } + public static class FetchBackupsForResourceTypePagedResponse + extends AbstractPagedListResponse< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + Backup, + FetchBackupsForResourceTypePage, + FetchBackupsForResourceTypeFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchBackupsForResourceTypePage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchBackupsForResourceTypePagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchBackupsForResourceTypePagedResponse(FetchBackupsForResourceTypePage page) { + super(page, FetchBackupsForResourceTypeFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FetchBackupsForResourceTypePage + extends AbstractPage< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + Backup, + FetchBackupsForResourceTypePage> { + + private FetchBackupsForResourceTypePage( + PageContext + context, + FetchBackupsForResourceTypeResponse response) { + super(context, response); + } + + private static FetchBackupsForResourceTypePage createEmptyPage() { + return new FetchBackupsForResourceTypePage(null, null); + } + + @Override + protected FetchBackupsForResourceTypePage createPage( + PageContext + context, + FetchBackupsForResourceTypeResponse response) { + return new FetchBackupsForResourceTypePage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FetchBackupsForResourceTypeFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + Backup, + FetchBackupsForResourceTypePage, + FetchBackupsForResourceTypeFixedSizeCollection> { + + private FetchBackupsForResourceTypeFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchBackupsForResourceTypeFixedSizeCollection createEmptyCollection() { + return new FetchBackupsForResourceTypeFixedSizeCollection(null, 0); + } + + @Override + protected FetchBackupsForResourceTypeFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new FetchBackupsForResourceTypeFixedSizeCollection(pages, collectionSize); + } + } + public static class ListBackupPlansPagedResponse extends AbstractPagedListResponse< ListBackupPlansRequest, @@ -7476,6 +7982,102 @@ protected FetchBackupPlanAssociationsForResourceTypeFixedSizeCollection createCo } } + public static class ListDataSourceReferencesPagedResponse + extends AbstractPagedListResponse< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + DataSourceReference, + ListDataSourceReferencesPage, + ListDataSourceReferencesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + DataSourceReference> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDataSourceReferencesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDataSourceReferencesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDataSourceReferencesPagedResponse(ListDataSourceReferencesPage page) { + super(page, ListDataSourceReferencesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDataSourceReferencesPage + extends AbstractPage< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + DataSourceReference, + ListDataSourceReferencesPage> { + + private ListDataSourceReferencesPage( + PageContext< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + DataSourceReference> + context, + ListDataSourceReferencesResponse response) { + super(context, response); + } + + private static ListDataSourceReferencesPage createEmptyPage() { + return new ListDataSourceReferencesPage(null, null); + } + + @Override + protected ListDataSourceReferencesPage createPage( + PageContext< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + DataSourceReference> + context, + ListDataSourceReferencesResponse response) { + return new ListDataSourceReferencesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + DataSourceReference> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDataSourceReferencesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + DataSourceReference, + ListDataSourceReferencesPage, + ListDataSourceReferencesFixedSizeCollection> { + + private ListDataSourceReferencesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDataSourceReferencesFixedSizeCollection createEmptyCollection() { + return new ListDataSourceReferencesFixedSizeCollection(null, 0); + } + + @Override + protected ListDataSourceReferencesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDataSourceReferencesFixedSizeCollection(pages, collectionSize); + } + } + public static class FetchDataSourceReferencesForResourceTypePagedResponse extends AbstractPagedListResponse< FetchDataSourceReferencesForResourceTypeRequest, diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java index cb179964f5ee..2d11f30e881e 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.backupdr.v1; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupPlanAssociationsForResourceTypePagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListManagementServersPagedResponse; @@ -256,6 +258,15 @@ public UnaryCallSettings updateDataSourceSet return ((BackupDRStubSettings) getStubSettings()).listBackupsSettings(); } + /** Returns the object with the settings used for calls to fetchBackupsForResourceType. */ + public PagedCallSettings< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + FetchBackupsForResourceTypePagedResponse> + fetchBackupsForResourceTypeSettings() { + return ((BackupDRStubSettings) getStubSettings()).fetchBackupsForResourceTypeSettings(); + } + /** Returns the object with the settings used for calls to getBackup. */ public UnaryCallSettings getBackupSettings() { return ((BackupDRStubSettings) getStubSettings()).getBackupSettings(); @@ -440,6 +451,15 @@ public UnaryCallSettings triggerBackupSettings( return ((BackupDRStubSettings) getStubSettings()).getDataSourceReferenceSettings(); } + /** Returns the object with the settings used for calls to listDataSourceReferences. */ + public PagedCallSettings< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + ListDataSourceReferencesPagedResponse> + listDataSourceReferencesSettings() { + return ((BackupDRStubSettings) getStubSettings()).listDataSourceReferencesSettings(); + } + /** * Returns the object with the settings used for calls to * fetchDataSourceReferencesForResourceType. @@ -731,6 +751,15 @@ public UnaryCallSettings.Builder getDataSource return getStubSettingsBuilder().listBackupsSettings(); } + /** Returns the builder for the settings used for calls to fetchBackupsForResourceType. */ + public PagedCallSettings.Builder< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + FetchBackupsForResourceTypePagedResponse> + fetchBackupsForResourceTypeSettings() { + return getStubSettingsBuilder().fetchBackupsForResourceTypeSettings(); + } + /** Returns the builder for the settings used for calls to getBackup. */ public UnaryCallSettings.Builder getBackupSettings() { return getStubSettingsBuilder().getBackupSettings(); @@ -917,6 +946,15 @@ public UnaryCallSettings.Builder triggerBackupS return getStubSettingsBuilder().getDataSourceReferenceSettings(); } + /** Returns the builder for the settings used for calls to listDataSourceReferences. */ + public PagedCallSettings.Builder< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + ListDataSourceReferencesPagedResponse> + listDataSourceReferencesSettings() { + return getStubSettingsBuilder().listDataSourceReferencesSettings(); + } + /** * Returns the builder for the settings used for calls to * fetchDataSourceReferencesForResourceType. diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json index 6ce14b0441a9..0cd6d100fc20 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json @@ -40,6 +40,9 @@ "FetchBackupPlanAssociationsForResourceType": { "methods": ["fetchBackupPlanAssociationsForResourceType", "fetchBackupPlanAssociationsForResourceType", "fetchBackupPlanAssociationsForResourceType", "fetchBackupPlanAssociationsForResourceTypePagedCallable", "fetchBackupPlanAssociationsForResourceTypeCallable"] }, + "FetchBackupsForResourceType": { + "methods": ["fetchBackupsForResourceType", "fetchBackupsForResourceType", "fetchBackupsForResourceType", "fetchBackupsForResourceTypePagedCallable", "fetchBackupsForResourceTypeCallable"] + }, "FetchDataSourceReferencesForResourceType": { "methods": ["fetchDataSourceReferencesForResourceType", "fetchDataSourceReferencesForResourceType", "fetchDataSourceReferencesForResourceType", "fetchDataSourceReferencesForResourceTypePagedCallable", "fetchDataSourceReferencesForResourceTypeCallable"] }, @@ -94,6 +97,9 @@ "ListBackups": { "methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"] }, + "ListDataSourceReferences": { + "methods": ["listDataSourceReferences", "listDataSourceReferences", "listDataSourceReferences", "listDataSourceReferencesPagedCallable", "listDataSourceReferencesCallable"] + }, "ListDataSources": { "methods": ["listDataSources", "listDataSources", "listDataSources", "listDataSourcesPagedCallable", "listDataSourcesCallable"] }, diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java index a7d15edb090f..d35039bf8cc9 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java @@ -17,6 +17,7 @@ package com.google.cloud.backupdr.v1.stub; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupPlanAssociationsForResourceTypePagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListManagementServersPagedResponse; @@ -49,6 +51,8 @@ import com.google.cloud.backupdr.v1.DeleteManagementServerRequest; import com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest; import com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest; import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest; @@ -73,6 +77,8 @@ import com.google.cloud.backupdr.v1.ListBackupVaultsResponse; import com.google.cloud.backupdr.v1.ListBackupsRequest; import com.google.cloud.backupdr.v1.ListBackupsResponse; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse; import com.google.cloud.backupdr.v1.ListDataSourcesRequest; import com.google.cloud.backupdr.v1.ListDataSourcesResponse; import com.google.cloud.backupdr.v1.ListManagementServersRequest; @@ -238,6 +244,18 @@ public UnaryCallable listBackupsCallabl throw new UnsupportedOperationException("Not implemented: listBackupsCallable()"); } + public UnaryCallable + fetchBackupsForResourceTypePagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchBackupsForResourceTypePagedCallable()"); + } + + public UnaryCallable + fetchBackupsForResourceTypeCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchBackupsForResourceTypeCallable()"); + } + public UnaryCallable getBackupCallable() { throw new UnsupportedOperationException("Not implemented: getBackupCallable()"); } @@ -410,6 +428,17 @@ public UnaryCallable triggerBackupCallable() { throw new UnsupportedOperationException("Not implemented: getDataSourceReferenceCallable()"); } + public UnaryCallable + listDataSourceReferencesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDataSourceReferencesPagedCallable()"); + } + + public UnaryCallable + listDataSourceReferencesCallable() { + throw new UnsupportedOperationException("Not implemented: listDataSourceReferencesCallable()"); + } + public UnaryCallable< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypePagedResponse> diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java index b94d56160b09..4e3711821371 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.backupdr.v1.stub; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupPlanAssociationsForResourceTypePagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListManagementServersPagedResponse; @@ -76,6 +78,8 @@ import com.google.cloud.backupdr.v1.DeleteManagementServerRequest; import com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest; import com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest; import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest; @@ -100,6 +104,8 @@ import com.google.cloud.backupdr.v1.ListBackupVaultsResponse; import com.google.cloud.backupdr.v1.ListBackupsRequest; import com.google.cloud.backupdr.v1.ListBackupsResponse; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse; import com.google.cloud.backupdr.v1.ListDataSourcesRequest; import com.google.cloud.backupdr.v1.ListDataSourcesResponse; import com.google.cloud.backupdr.v1.ListManagementServersRequest; @@ -257,6 +263,11 @@ public class BackupDRStubSettings extends StubSettings { updateDataSourceOperationSettings; private final PagedCallSettings listBackupsSettings; + private final PagedCallSettings< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + FetchBackupsForResourceTypePagedResponse> + fetchBackupsForResourceTypeSettings; private final UnaryCallSettings getBackupSettings; private final UnaryCallSettings updateBackupSettings; private final OperationCallSettings @@ -320,6 +331,11 @@ public class BackupDRStubSettings extends StubSettings { triggerBackupOperationSettings; private final UnaryCallSettings getDataSourceReferenceSettings; + private final PagedCallSettings< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + ListDataSourceReferencesPagedResponse> + listDataSourceReferencesSettings; private final PagedCallSettings< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse, @@ -526,6 +542,48 @@ public Iterable extractResources(ListBackupsResponse payload) { } }; + private static final PagedListDescriptor< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse, Backup> + FETCH_BACKUPS_FOR_RESOURCE_TYPE_PAGE_STR_DESC = + new PagedListDescriptor< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse, Backup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchBackupsForResourceTypeRequest injectToken( + FetchBackupsForResourceTypeRequest payload, String token) { + return FetchBackupsForResourceTypeRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public FetchBackupsForResourceTypeRequest injectPageSize( + FetchBackupsForResourceTypeRequest payload, int pageSize) { + return FetchBackupsForResourceTypeRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(FetchBackupsForResourceTypeRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchBackupsForResourceTypeResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(FetchBackupsForResourceTypeResponse payload) { + return payload.getBackupsList(); + } + }; + private static final PagedListDescriptor< ListBackupPlansRequest, ListBackupPlansResponse, BackupPlan> LIST_BACKUP_PLANS_PAGE_STR_DESC = @@ -702,6 +760,51 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListDataSourceReferencesRequest, ListDataSourceReferencesResponse, DataSourceReference> + LIST_DATA_SOURCE_REFERENCES_PAGE_STR_DESC = + new PagedListDescriptor< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + DataSourceReference>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDataSourceReferencesRequest injectToken( + ListDataSourceReferencesRequest payload, String token) { + return ListDataSourceReferencesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListDataSourceReferencesRequest injectPageSize( + ListDataSourceReferencesRequest payload, int pageSize) { + return ListDataSourceReferencesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListDataSourceReferencesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDataSourceReferencesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListDataSourceReferencesResponse payload) { + return payload.getDataSourceReferencesList(); + } + }; + private static final PagedListDescriptor< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse, @@ -887,6 +990,38 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + FetchBackupsForResourceTypePagedResponse> + FETCH_BACKUPS_FOR_RESOURCE_TYPE_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + FetchBackupsForResourceTypePagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse> + callable, + FetchBackupsForResourceTypeRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + Backup> + pageContext = + PageContext.create( + callable, + FETCH_BACKUPS_FOR_RESOURCE_TYPE_PAGE_STR_DESC, + request, + context); + return FetchBackupsForResourceTypePagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListBackupPlansRequest, ListBackupPlansResponse, ListBackupPlansPagedResponse> LIST_BACKUP_PLANS_PAGE_STR_FACT = @@ -993,6 +1128,33 @@ public ApiFuture getFuturePagedResponse } }; + private static final PagedListResponseFactory< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + ListDataSourceReferencesPagedResponse> + LIST_DATA_SOURCE_REFERENCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + ListDataSourceReferencesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListDataSourceReferencesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + DataSourceReference> + pageContext = + PageContext.create( + callable, LIST_DATA_SOURCE_REFERENCES_PAGE_STR_DESC, request, context); + return ListDataSourceReferencesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse, @@ -1166,6 +1328,15 @@ public UnaryCallSettings updateDataSourceSet return listBackupsSettings; } + /** Returns the object with the settings used for calls to fetchBackupsForResourceType. */ + public PagedCallSettings< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + FetchBackupsForResourceTypePagedResponse> + fetchBackupsForResourceTypeSettings() { + return fetchBackupsForResourceTypeSettings; + } + /** Returns the object with the settings used for calls to getBackup. */ public UnaryCallSettings getBackupSettings() { return getBackupSettings; @@ -1346,6 +1517,15 @@ public UnaryCallSettings triggerBackupSettings( return getDataSourceReferenceSettings; } + /** Returns the object with the settings used for calls to listDataSourceReferences. */ + public PagedCallSettings< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + ListDataSourceReferencesPagedResponse> + listDataSourceReferencesSettings() { + return listDataSourceReferencesSettings; + } + /** * Returns the object with the settings used for calls to * fetchDataSourceReferencesForResourceType. @@ -1531,6 +1711,8 @@ protected BackupDRStubSettings(Builder settingsBuilder) throws IOException { updateDataSourceSettings = settingsBuilder.updateDataSourceSettings().build(); updateDataSourceOperationSettings = settingsBuilder.updateDataSourceOperationSettings().build(); listBackupsSettings = settingsBuilder.listBackupsSettings().build(); + fetchBackupsForResourceTypeSettings = + settingsBuilder.fetchBackupsForResourceTypeSettings().build(); getBackupSettings = settingsBuilder.getBackupSettings().build(); updateBackupSettings = settingsBuilder.updateBackupSettings().build(); updateBackupOperationSettings = settingsBuilder.updateBackupOperationSettings().build(); @@ -1568,6 +1750,7 @@ protected BackupDRStubSettings(Builder settingsBuilder) throws IOException { triggerBackupSettings = settingsBuilder.triggerBackupSettings().build(); triggerBackupOperationSettings = settingsBuilder.triggerBackupOperationSettings().build(); getDataSourceReferenceSettings = settingsBuilder.getDataSourceReferenceSettings().build(); + listDataSourceReferencesSettings = settingsBuilder.listDataSourceReferencesSettings().build(); fetchDataSourceReferencesForResourceTypeSettings = settingsBuilder.fetchDataSourceReferencesForResourceTypeSettings().build(); initializeServiceSettings = settingsBuilder.initializeServiceSettings().build(); @@ -1636,6 +1819,11 @@ public static class Builder extends StubSettings.Builder listBackupsSettings; + private final PagedCallSettings.Builder< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + FetchBackupsForResourceTypePagedResponse> + fetchBackupsForResourceTypeSettings; private final UnaryCallSettings.Builder getBackupSettings; private final UnaryCallSettings.Builder updateBackupSettings; private final OperationCallSettings.Builder @@ -1705,6 +1893,11 @@ public static class Builder extends StubSettings.Builder getDataSourceReferenceSettings; + private final PagedCallSettings.Builder< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + ListDataSourceReferencesPagedResponse> + listDataSourceReferencesSettings; private final PagedCallSettings.Builder< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse, @@ -1796,6 +1989,8 @@ protected Builder(ClientContext clientContext) { updateDataSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateDataSourceOperationSettings = OperationCallSettings.newBuilder(); listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT); + fetchBackupsForResourceTypeSettings = + PagedCallSettings.newBuilder(FETCH_BACKUPS_FOR_RESOURCE_TYPE_PAGE_STR_FACT); getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupOperationSettings = OperationCallSettings.newBuilder(); @@ -1829,6 +2024,8 @@ protected Builder(ClientContext clientContext) { triggerBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); triggerBackupOperationSettings = OperationCallSettings.newBuilder(); getDataSourceReferenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDataSourceReferencesSettings = + PagedCallSettings.newBuilder(LIST_DATA_SOURCE_REFERENCES_PAGE_STR_FACT); fetchDataSourceReferencesForResourceTypeSettings = PagedCallSettings.newBuilder( FETCH_DATA_SOURCE_REFERENCES_FOR_RESOURCE_TYPE_PAGE_STR_FACT); @@ -1856,6 +2053,7 @@ protected Builder(ClientContext clientContext) { getDataSourceSettings, updateDataSourceSettings, listBackupsSettings, + fetchBackupsForResourceTypeSettings, getBackupSettings, updateBackupSettings, deleteBackupSettings, @@ -1875,6 +2073,7 @@ protected Builder(ClientContext clientContext) { deleteBackupPlanAssociationSettings, triggerBackupSettings, getDataSourceReferenceSettings, + listDataSourceReferencesSettings, fetchDataSourceReferencesForResourceTypeSettings, initializeServiceSettings, listLocationsSettings, @@ -1910,6 +2109,8 @@ protected Builder(BackupDRStubSettings settings) { updateDataSourceSettings = settings.updateDataSourceSettings.toBuilder(); updateDataSourceOperationSettings = settings.updateDataSourceOperationSettings.toBuilder(); listBackupsSettings = settings.listBackupsSettings.toBuilder(); + fetchBackupsForResourceTypeSettings = + settings.fetchBackupsForResourceTypeSettings.toBuilder(); getBackupSettings = settings.getBackupSettings.toBuilder(); updateBackupSettings = settings.updateBackupSettings.toBuilder(); updateBackupOperationSettings = settings.updateBackupOperationSettings.toBuilder(); @@ -1946,6 +2147,7 @@ protected Builder(BackupDRStubSettings settings) { triggerBackupSettings = settings.triggerBackupSettings.toBuilder(); triggerBackupOperationSettings = settings.triggerBackupOperationSettings.toBuilder(); getDataSourceReferenceSettings = settings.getDataSourceReferenceSettings.toBuilder(); + listDataSourceReferencesSettings = settings.listDataSourceReferencesSettings.toBuilder(); fetchDataSourceReferencesForResourceTypeSettings = settings.fetchDataSourceReferencesForResourceTypeSettings.toBuilder(); initializeServiceSettings = settings.initializeServiceSettings.toBuilder(); @@ -1972,6 +2174,7 @@ protected Builder(BackupDRStubSettings settings) { getDataSourceSettings, updateDataSourceSettings, listBackupsSettings, + fetchBackupsForResourceTypeSettings, getBackupSettings, updateBackupSettings, deleteBackupSettings, @@ -1991,6 +2194,7 @@ protected Builder(BackupDRStubSettings settings) { deleteBackupPlanAssociationSettings, triggerBackupSettings, getDataSourceReferenceSettings, + listDataSourceReferencesSettings, fetchDataSourceReferencesForResourceTypeSettings, initializeServiceSettings, listLocationsSettings, @@ -2095,6 +2299,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .fetchBackupsForResourceTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .getBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2190,6 +2399,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .listDataSourceReferencesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .fetchDataSourceReferencesForResourceTypeSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -2783,6 +2997,15 @@ public UnaryCallSettings.Builder getDataSource return listBackupsSettings; } + /** Returns the builder for the settings used for calls to fetchBackupsForResourceType. */ + public PagedCallSettings.Builder< + FetchBackupsForResourceTypeRequest, + FetchBackupsForResourceTypeResponse, + FetchBackupsForResourceTypePagedResponse> + fetchBackupsForResourceTypeSettings() { + return fetchBackupsForResourceTypeSettings; + } + /** Returns the builder for the settings used for calls to getBackup. */ public UnaryCallSettings.Builder getBackupSettings() { return getBackupSettings; @@ -2969,6 +3192,15 @@ public UnaryCallSettings.Builder triggerBackupS return getDataSourceReferenceSettings; } + /** Returns the builder for the settings used for calls to listDataSourceReferences. */ + public PagedCallSettings.Builder< + ListDataSourceReferencesRequest, + ListDataSourceReferencesResponse, + ListDataSourceReferencesPagedResponse> + listDataSourceReferencesSettings() { + return listDataSourceReferencesSettings; + } + /** * Returns the builder for the settings used for calls to * fetchDataSourceReferencesForResourceType. diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java index b26263118ea2..35471fc570ba 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java @@ -17,6 +17,7 @@ package com.google.cloud.backupdr.v1.stub; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupPlanAssociationsForResourceTypePagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListManagementServersPagedResponse; @@ -54,6 +56,8 @@ import com.google.cloud.backupdr.v1.DeleteManagementServerRequest; import com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest; import com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest; import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest; @@ -78,6 +82,8 @@ import com.google.cloud.backupdr.v1.ListBackupVaultsResponse; import com.google.cloud.backupdr.v1.ListBackupsRequest; import com.google.cloud.backupdr.v1.ListBackupsResponse; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse; import com.google.cloud.backupdr.v1.ListDataSourcesRequest; import com.google.cloud.backupdr.v1.ListDataSourcesResponse; import com.google.cloud.backupdr.v1.ListManagementServersRequest; @@ -278,6 +284,20 @@ public class GrpcBackupDRStub extends BackupDRStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse> + fetchBackupsForResourceTypeMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/FetchBackupsForResourceType") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchBackupsForResourceTypeRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchBackupsForResourceTypeResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getBackupMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -501,6 +521,20 @@ public class GrpcBackupDRStub extends BackupDRStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + ListDataSourceReferencesRequest, ListDataSourceReferencesResponse> + listDataSourceReferencesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/ListDataSourceReferences") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDataSourceReferencesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDataSourceReferencesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse> @@ -627,6 +661,12 @@ public class GrpcBackupDRStub extends BackupDRStub { private final UnaryCallable listBackupsCallable; private final UnaryCallable listBackupsPagedCallable; + private final UnaryCallable< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse> + fetchBackupsForResourceTypeCallable; + private final UnaryCallable< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypePagedResponse> + fetchBackupsForResourceTypePagedCallable; private final UnaryCallable getBackupCallable; private final UnaryCallable updateBackupCallable; private final OperationCallable @@ -691,6 +731,11 @@ public class GrpcBackupDRStub extends BackupDRStub { triggerBackupOperationCallable; private final UnaryCallable getDataSourceReferenceCallable; + private final UnaryCallable + listDataSourceReferencesCallable; + private final UnaryCallable< + ListDataSourceReferencesRequest, ListDataSourceReferencesPagedResponse> + listDataSourceReferencesPagedCallable; private final UnaryCallable< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse> @@ -902,6 +947,19 @@ protected GrpcBackupDRStub( return builder.build(); }) .build(); + GrpcCallSettings + fetchBackupsForResourceTypeTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(fetchBackupsForResourceTypeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings getBackupTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getBackupMethodDescriptor) @@ -1112,6 +1170,18 @@ protected GrpcBackupDRStub( return builder.build(); }) .build(); + GrpcCallSettings + listDataSourceReferencesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listDataSourceReferencesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse> @@ -1303,6 +1373,16 @@ protected GrpcBackupDRStub( this.listBackupsPagedCallable = callableFactory.createPagedCallable( listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.fetchBackupsForResourceTypeCallable = + callableFactory.createUnaryCallable( + fetchBackupsForResourceTypeTransportSettings, + settings.fetchBackupsForResourceTypeSettings(), + clientContext); + this.fetchBackupsForResourceTypePagedCallable = + callableFactory.createPagedCallable( + fetchBackupsForResourceTypeTransportSettings, + settings.fetchBackupsForResourceTypeSettings(), + clientContext); this.getBackupCallable = callableFactory.createUnaryCallable( getBackupTransportSettings, settings.getBackupSettings(), clientContext); @@ -1456,6 +1536,16 @@ protected GrpcBackupDRStub( getDataSourceReferenceTransportSettings, settings.getDataSourceReferenceSettings(), clientContext); + this.listDataSourceReferencesCallable = + callableFactory.createUnaryCallable( + listDataSourceReferencesTransportSettings, + settings.listDataSourceReferencesSettings(), + clientContext); + this.listDataSourceReferencesPagedCallable = + callableFactory.createPagedCallable( + listDataSourceReferencesTransportSettings, + settings.listDataSourceReferencesSettings(), + clientContext); this.fetchDataSourceReferencesForResourceTypeCallable = callableFactory.createUnaryCallable( fetchDataSourceReferencesForResourceTypeTransportSettings, @@ -1644,6 +1734,18 @@ public UnaryCallable listBackupsPa return listBackupsPagedCallable; } + @Override + public UnaryCallable + fetchBackupsForResourceTypeCallable() { + return fetchBackupsForResourceTypeCallable; + } + + @Override + public UnaryCallable + fetchBackupsForResourceTypePagedCallable() { + return fetchBackupsForResourceTypePagedCallable; + } + @Override public UnaryCallable getBackupCallable() { return getBackupCallable; @@ -1838,6 +1940,18 @@ public UnaryCallable triggerBackupCallable() { return getDataSourceReferenceCallable; } + @Override + public UnaryCallable + listDataSourceReferencesCallable() { + return listDataSourceReferencesCallable; + } + + @Override + public UnaryCallable + listDataSourceReferencesPagedCallable() { + return listDataSourceReferencesPagedCallable; + } + @Override public UnaryCallable< FetchDataSourceReferencesForResourceTypeRequest, diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java index c49b5356bbb7..03e371a97d4a 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java @@ -17,6 +17,7 @@ package com.google.cloud.backupdr.v1.stub; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupPlanAssociationsForResourceTypePagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListManagementServersPagedResponse; @@ -62,6 +64,8 @@ import com.google.cloud.backupdr.v1.DeleteManagementServerRequest; import com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest; import com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest; import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest; @@ -86,6 +90,8 @@ import com.google.cloud.backupdr.v1.ListBackupVaultsResponse; import com.google.cloud.backupdr.v1.ListBackupsRequest; import com.google.cloud.backupdr.v1.ListBackupsResponse; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse; import com.google.cloud.backupdr.v1.ListDataSourcesRequest; import com.google.cloud.backupdr.v1.ListDataSourcesResponse; import com.google.cloud.backupdr.v1.ListManagementServersRequest; @@ -715,6 +721,49 @@ public class HttpJsonBackupDRStub extends BackupDRStub { .build()) .build(); + private static final ApiMethodDescriptor< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse> + fetchBackupsForResourceTypeMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/FetchBackupsForResourceType") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups:fetchForResourceType", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "resourceType", request.getResourceType()); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchBackupsForResourceTypeResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getBackupMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.backupdr.v1.BackupDR/GetBackup") @@ -1468,6 +1517,46 @@ public class HttpJsonBackupDRStub extends BackupDRStub { .build()) .build(); + private static final ApiMethodDescriptor< + ListDataSourceReferencesRequest, ListDataSourceReferencesResponse> + listDataSourceReferencesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/ListDataSourceReferences") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/dataSourceReferences", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDataSourceReferencesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse> @@ -1777,6 +1866,12 @@ public class HttpJsonBackupDRStub extends BackupDRStub { private final UnaryCallable listBackupsCallable; private final UnaryCallable listBackupsPagedCallable; + private final UnaryCallable< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse> + fetchBackupsForResourceTypeCallable; + private final UnaryCallable< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypePagedResponse> + fetchBackupsForResourceTypePagedCallable; private final UnaryCallable getBackupCallable; private final UnaryCallable updateBackupCallable; private final OperationCallable @@ -1841,6 +1936,11 @@ public class HttpJsonBackupDRStub extends BackupDRStub { triggerBackupOperationCallable; private final UnaryCallable getDataSourceReferenceCallable; + private final UnaryCallable + listDataSourceReferencesCallable; + private final UnaryCallable< + ListDataSourceReferencesRequest, ListDataSourceReferencesPagedResponse> + listDataSourceReferencesPagedCallable; private final UnaryCallable< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse> @@ -2096,6 +2196,20 @@ protected HttpJsonBackupDRStub( return builder.build(); }) .build(); + HttpJsonCallSettings + fetchBackupsForResourceTypeTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(fetchBackupsForResourceTypeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getBackupTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getBackupMethodDescriptor) @@ -2326,6 +2440,19 @@ protected HttpJsonBackupDRStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listDataSourceReferencesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listDataSourceReferencesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse> @@ -2525,6 +2652,16 @@ protected HttpJsonBackupDRStub( this.listBackupsPagedCallable = callableFactory.createPagedCallable( listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.fetchBackupsForResourceTypeCallable = + callableFactory.createUnaryCallable( + fetchBackupsForResourceTypeTransportSettings, + settings.fetchBackupsForResourceTypeSettings(), + clientContext); + this.fetchBackupsForResourceTypePagedCallable = + callableFactory.createPagedCallable( + fetchBackupsForResourceTypeTransportSettings, + settings.fetchBackupsForResourceTypeSettings(), + clientContext); this.getBackupCallable = callableFactory.createUnaryCallable( getBackupTransportSettings, settings.getBackupSettings(), clientContext); @@ -2678,6 +2815,16 @@ protected HttpJsonBackupDRStub( getDataSourceReferenceTransportSettings, settings.getDataSourceReferenceSettings(), clientContext); + this.listDataSourceReferencesCallable = + callableFactory.createUnaryCallable( + listDataSourceReferencesTransportSettings, + settings.listDataSourceReferencesSettings(), + clientContext); + this.listDataSourceReferencesPagedCallable = + callableFactory.createPagedCallable( + listDataSourceReferencesTransportSettings, + settings.listDataSourceReferencesSettings(), + clientContext); this.fetchDataSourceReferencesForResourceTypeCallable = callableFactory.createUnaryCallable( fetchDataSourceReferencesForResourceTypeTransportSettings, @@ -2741,6 +2888,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getDataSourceMethodDescriptor); methodDescriptors.add(updateDataSourceMethodDescriptor); methodDescriptors.add(listBackupsMethodDescriptor); + methodDescriptors.add(fetchBackupsForResourceTypeMethodDescriptor); methodDescriptors.add(getBackupMethodDescriptor); methodDescriptors.add(updateBackupMethodDescriptor); methodDescriptors.add(deleteBackupMethodDescriptor); @@ -2760,6 +2908,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(deleteBackupPlanAssociationMethodDescriptor); methodDescriptors.add(triggerBackupMethodDescriptor); methodDescriptors.add(getDataSourceReferenceMethodDescriptor); + methodDescriptors.add(listDataSourceReferencesMethodDescriptor); methodDescriptors.add(fetchDataSourceReferencesForResourceTypeMethodDescriptor); methodDescriptors.add(initializeServiceMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); @@ -2912,6 +3061,18 @@ public UnaryCallable listBackupsPa return listBackupsPagedCallable; } + @Override + public UnaryCallable + fetchBackupsForResourceTypeCallable() { + return fetchBackupsForResourceTypeCallable; + } + + @Override + public UnaryCallable + fetchBackupsForResourceTypePagedCallable() { + return fetchBackupsForResourceTypePagedCallable; + } + @Override public UnaryCallable getBackupCallable() { return getBackupCallable; @@ -3106,6 +3267,18 @@ public UnaryCallable triggerBackupCallable() { return getDataSourceReferenceCallable; } + @Override + public UnaryCallable + listDataSourceReferencesCallable() { + return listDataSourceReferencesCallable; + } + + @Override + public UnaryCallable + listDataSourceReferencesPagedCallable() { + return listDataSourceReferencesPagedCallable; + } + @Override public UnaryCallable< FetchDataSourceReferencesForResourceTypeRequest, diff --git a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json index a4ea12ed3a57..7f2583e5cd55 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json +++ b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json @@ -791,6 +791,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.BackupGcpResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.BackupGcpResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.BackupLock", "queryAllDeclaredConstructors": true, @@ -1646,6 +1664,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest", "queryAllDeclaredConstructors": true, @@ -2168,6 +2222,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.ListDataSourcesRequest", "queryAllDeclaredConstructors": true, diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java index 98b8204ebbe9..9c4cfbf7d367 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java @@ -17,6 +17,7 @@ package com.google.cloud.backupdr.v1; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupPlanAssociationsForResourceTypePagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListManagementServersPagedResponse; @@ -1607,6 +1609,116 @@ public void listBackupsExceptionTest2() throws Exception { } } + @Test + public void fetchBackupsForResourceTypeTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + FetchBackupsForResourceTypeResponse expectedResponse = + FetchBackupsForResourceTypeResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DataSourceName parent = + DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"); + String resourceType = "resourceType-384364440"; + + FetchBackupsForResourceTypePagedResponse pagedListResponse = + client.fetchBackupsForResourceType(parent, resourceType); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().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 fetchBackupsForResourceTypeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataSourceName parent = + DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"); + String resourceType = "resourceType-384364440"; + client.fetchBackupsForResourceType(parent, resourceType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchBackupsForResourceTypeTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + FetchBackupsForResourceTypeResponse expectedResponse = + FetchBackupsForResourceTypeResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-9790/locations/location-9790/backupVaults/backupVault-9790/dataSources/dataSource-9790"; + String resourceType = "resourceType-384364440"; + + FetchBackupsForResourceTypePagedResponse pagedListResponse = + client.fetchBackupsForResourceType(parent, resourceType); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().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 fetchBackupsForResourceTypeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-9790/locations/location-9790/backupVaults/backupVault-9790/dataSources/dataSource-9790"; + String resourceType = "resourceType-384364440"; + client.fetchBackupsForResourceType(parent, resourceType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getBackupTest() throws Exception { Backup expectedResponse = @@ -3607,6 +3719,7 @@ public void getDataSourceReferenceTest() throws Exception { .setDataSourceBackupCount(-1620010527) .setDataSourceBackupConfigInfo(DataSourceBackupConfigInfo.newBuilder().build()) .setDataSourceGcpResourceInfo(DataSourceGcpResourceInfo.newBuilder().build()) + .setTotalStoredBytes(1181597162) .build(); mockService.addResponse(expectedResponse); @@ -3663,6 +3776,7 @@ public void getDataSourceReferenceTest2() throws Exception { .setDataSourceBackupCount(-1620010527) .setDataSourceBackupConfigInfo(DataSourceBackupConfigInfo.newBuilder().build()) .setDataSourceGcpResourceInfo(DataSourceGcpResourceInfo.newBuilder().build()) + .setTotalStoredBytes(1181597162) .build(); mockService.addResponse(expectedResponse); @@ -3704,6 +3818,108 @@ public void getDataSourceReferenceExceptionTest2() throws Exception { } } + @Test + public void listDataSourceReferencesTest() throws Exception { + DataSourceReference responsesElement = DataSourceReference.newBuilder().build(); + ListDataSourceReferencesResponse expectedResponse = + ListDataSourceReferencesResponse.newBuilder() + .setNextPageToken("") + .addAllDataSourceReferences(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDataSourceReferencesPagedResponse pagedListResponse = + client.listDataSourceReferences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataSourceReferencesList().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 listDataSourceReferencesExceptionTest() 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.listDataSourceReferences(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataSourceReferencesTest2() throws Exception { + DataSourceReference responsesElement = DataSourceReference.newBuilder().build(); + ListDataSourceReferencesResponse expectedResponse = + ListDataSourceReferencesResponse.newBuilder() + .setNextPageToken("") + .addAllDataSourceReferences(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDataSourceReferencesPagedResponse pagedListResponse = + client.listDataSourceReferences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataSourceReferencesList().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 listDataSourceReferencesExceptionTest2() 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.listDataSourceReferences(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void fetchDataSourceReferencesForResourceTypeTest() throws Exception { DataSourceReference responsesElement = DataSourceReference.newBuilder().build(); diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java index 31019624a24c..0814316cef70 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java @@ -17,6 +17,7 @@ package com.google.cloud.backupdr.v1; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupPlanAssociationsForResourceTypePagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; @@ -24,6 +25,7 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListManagementServersPagedResponse; @@ -1441,6 +1443,106 @@ public void listBackupsExceptionTest2() throws Exception { } } + @Test + public void fetchBackupsForResourceTypeTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + FetchBackupsForResourceTypeResponse expectedResponse = + FetchBackupsForResourceTypeResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + DataSourceName parent = + DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"); + String resourceType = "resourceType-384364440"; + + FetchBackupsForResourceTypePagedResponse pagedListResponse = + client.fetchBackupsForResourceType(parent, resourceType); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchBackupsForResourceTypeRequest actualRequest = + ((FetchBackupsForResourceTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(resourceType, actualRequest.getResourceType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchBackupsForResourceTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + DataSourceName parent = + DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"); + String resourceType = "resourceType-384364440"; + client.fetchBackupsForResourceType(parent, resourceType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchBackupsForResourceTypeTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + FetchBackupsForResourceTypeResponse expectedResponse = + FetchBackupsForResourceTypeResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String resourceType = "resourceType-384364440"; + + FetchBackupsForResourceTypePagedResponse pagedListResponse = + client.fetchBackupsForResourceType(parent, resourceType); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchBackupsForResourceTypeRequest actualRequest = + ((FetchBackupsForResourceTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(resourceType, actualRequest.getResourceType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchBackupsForResourceTypeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String parent = "parent-995424086"; + String resourceType = "resourceType-384364440"; + client.fetchBackupsForResourceType(parent, resourceType); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getBackupTest() throws Exception { Backup expectedResponse = @@ -3208,6 +3310,7 @@ public void getDataSourceReferenceTest() throws Exception { .setDataSourceBackupCount(-1620010527) .setDataSourceBackupConfigInfo(DataSourceBackupConfigInfo.newBuilder().build()) .setDataSourceGcpResourceInfo(DataSourceGcpResourceInfo.newBuilder().build()) + .setTotalStoredBytes(1181597162) .build(); mockBackupDR.addResponse(expectedResponse); @@ -3259,6 +3362,7 @@ public void getDataSourceReferenceTest2() throws Exception { .setDataSourceBackupCount(-1620010527) .setDataSourceBackupConfigInfo(DataSourceBackupConfigInfo.newBuilder().build()) .setDataSourceGcpResourceInfo(DataSourceGcpResourceInfo.newBuilder().build()) + .setTotalStoredBytes(1181597162) .build(); mockBackupDR.addResponse(expectedResponse); @@ -3293,6 +3397,98 @@ public void getDataSourceReferenceExceptionTest2() throws Exception { } } + @Test + public void listDataSourceReferencesTest() throws Exception { + DataSourceReference responsesElement = DataSourceReference.newBuilder().build(); + ListDataSourceReferencesResponse expectedResponse = + ListDataSourceReferencesResponse.newBuilder() + .setNextPageToken("") + .addAllDataSourceReferences(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDataSourceReferencesPagedResponse pagedListResponse = + client.listDataSourceReferences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataSourceReferencesList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataSourceReferencesRequest actualRequest = + ((ListDataSourceReferencesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataSourceReferencesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDataSourceReferences(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataSourceReferencesTest2() throws Exception { + DataSourceReference responsesElement = DataSourceReference.newBuilder().build(); + ListDataSourceReferencesResponse expectedResponse = + ListDataSourceReferencesResponse.newBuilder() + .setNextPageToken("") + .addAllDataSourceReferences(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDataSourceReferencesPagedResponse pagedListResponse = + client.listDataSourceReferences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataSourceReferencesList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataSourceReferencesRequest actualRequest = + ((ListDataSourceReferencesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataSourceReferencesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDataSourceReferences(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void fetchDataSourceReferencesForResourceTypeTest() throws Exception { DataSourceReference responsesElement = DataSourceReference.newBuilder().build(); diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java index b17ec2363256..da577cb0f78b 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java @@ -359,6 +359,29 @@ public void listBackups( } } + @Override + public void fetchBackupsForResourceType( + FetchBackupsForResourceTypeRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchBackupsForResourceTypeResponse) { + requests.add(request); + responseObserver.onNext(((FetchBackupsForResourceTypeResponse) 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 FetchBackupsForResourceType, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchBackupsForResourceTypeResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getBackup(GetBackupRequest request, StreamObserver responseObserver) { Object response = responses.poll(); @@ -770,6 +793,29 @@ public void getDataSourceReference( } } + @Override + public void listDataSourceReferences( + ListDataSourceReferencesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDataSourceReferencesResponse) { + requests.add(request); + responseObserver.onNext(((ListDataSourceReferencesResponse) 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 ListDataSourceReferences, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListDataSourceReferencesResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void fetchDataSourceReferencesForResourceType( FetchDataSourceReferencesForResourceTypeRequest request, diff --git a/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java b/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java index 200287297467..8bc3a623a13a 100644 --- a/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java +++ b/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java @@ -24,9 +24,6 @@ * The BackupDR Service * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/backupdr/v1/backupdr.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BackupDRGrpc { @@ -675,6 +672,57 @@ private BackupDRGrpc() {} return getListBackupsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest, + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse> + getFetchBackupsForResourceTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchBackupsForResourceType", + requestType = com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.class, + responseType = com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest, + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse> + getFetchBackupsForResourceTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest, + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse> + getFetchBackupsForResourceTypeMethod; + if ((getFetchBackupsForResourceTypeMethod = BackupDRGrpc.getFetchBackupsForResourceTypeMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getFetchBackupsForResourceTypeMethod = + BackupDRGrpc.getFetchBackupsForResourceTypeMethod) + == null) { + BackupDRGrpc.getFetchBackupsForResourceTypeMethod = + getFetchBackupsForResourceTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchBackupsForResourceType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("FetchBackupsForResourceType")) + .build(); + } + } + } + return getFetchBackupsForResourceTypeMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.backupdr.v1.GetBackupRequest, com.google.cloud.backupdr.v1.Backup> getGetBackupMethod; @@ -1558,6 +1606,56 @@ private BackupDRGrpc() {} return getGetDataSourceReferenceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest, + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse> + getListDataSourceReferencesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataSourceReferences", + requestType = com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest.class, + responseType = com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest, + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse> + getListDataSourceReferencesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest, + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse> + getListDataSourceReferencesMethod; + if ((getListDataSourceReferencesMethod = BackupDRGrpc.getListDataSourceReferencesMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getListDataSourceReferencesMethod = BackupDRGrpc.getListDataSourceReferencesMethod) + == null) { + BackupDRGrpc.getListDataSourceReferencesMethod = + getListDataSourceReferencesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDataSourceReferences")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("ListDataSourceReferences")) + .build(); + } + } + } + return getListDataSourceReferencesMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest, com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse> @@ -1927,6 +2025,22 @@ default void listBackups( getListBackupsMethod(), responseObserver); } + /** + * + * + *
    +     * Fetch Backups for a given resource type.
    +     * 
    + */ + default void fetchBackupsForResourceType( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchBackupsForResourceTypeMethod(), responseObserver); + } + /** * * @@ -2200,6 +2314,21 @@ default void getDataSourceReference( getGetDataSourceReferenceMethod(), responseObserver); } + /** + * + * + *
    +     * Lists DataSourceReferences for a given project and location.
    +     * 
    + */ + default void listDataSourceReferences( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataSourceReferencesMethod(), responseObserver); + } + /** * * @@ -2495,6 +2624,24 @@ public void listBackups( responseObserver); } + /** + * + * + *
    +     * Fetch Backups for a given resource type.
    +     * 
    + */ + public void fetchBackupsForResourceType( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchBackupsForResourceTypeMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2806,6 +2953,23 @@ public void getDataSourceReference( responseObserver); } + /** + * + * + *
    +     * Lists DataSourceReferences for a given project and location.
    +     * 
    + */ + public void listDataSourceReferences( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataSourceReferencesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2869,8 +3033,9 @@ protected BackupDRBlockingV2Stub build( * */ public com.google.cloud.backupdr.v1.ListManagementServersResponse listManagementServers( - com.google.cloud.backupdr.v1.ListManagementServersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.ListManagementServersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListManagementServersMethod(), getCallOptions(), request); } @@ -2882,8 +3047,9 @@ public com.google.cloud.backupdr.v1.ListManagementServersResponse listManagement * */ public com.google.cloud.backupdr.v1.ManagementServer getManagementServer( - com.google.cloud.backupdr.v1.GetManagementServerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.GetManagementServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetManagementServerMethod(), getCallOptions(), request); } @@ -2895,8 +3061,9 @@ public com.google.cloud.backupdr.v1.ManagementServer getManagementServer( * */ public com.google.longrunning.Operation createManagementServer( - com.google.cloud.backupdr.v1.CreateManagementServerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.CreateManagementServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateManagementServerMethod(), getCallOptions(), request); } @@ -2908,8 +3075,9 @@ public com.google.longrunning.Operation createManagementServer( * */ public com.google.longrunning.Operation deleteManagementServer( - com.google.cloud.backupdr.v1.DeleteManagementServerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.DeleteManagementServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteManagementServerMethod(), getCallOptions(), request); } @@ -2921,8 +3089,9 @@ public com.google.longrunning.Operation deleteManagementServer( * */ public com.google.longrunning.Operation createBackupVault( - com.google.cloud.backupdr.v1.CreateBackupVaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.CreateBackupVaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupVaultMethod(), getCallOptions(), request); } @@ -2934,8 +3103,9 @@ public com.google.longrunning.Operation createBackupVault( * */ public com.google.cloud.backupdr.v1.ListBackupVaultsResponse listBackupVaults( - com.google.cloud.backupdr.v1.ListBackupVaultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.ListBackupVaultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupVaultsMethod(), getCallOptions(), request); } @@ -2949,8 +3119,9 @@ public com.google.cloud.backupdr.v1.ListBackupVaultsResponse listBackupVaults( * */ public com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse fetchUsableBackupVaults( - com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchUsableBackupVaultsMethod(), getCallOptions(), request); } @@ -2962,8 +3133,8 @@ public com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse fetchUsableB * */ public com.google.cloud.backupdr.v1.BackupVault getBackupVault( - com.google.cloud.backupdr.v1.GetBackupVaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.GetBackupVaultRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupVaultMethod(), getCallOptions(), request); } @@ -2975,8 +3146,9 @@ public com.google.cloud.backupdr.v1.BackupVault getBackupVault( * */ public com.google.longrunning.Operation updateBackupVault( - com.google.cloud.backupdr.v1.UpdateBackupVaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.UpdateBackupVaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupVaultMethod(), getCallOptions(), request); } @@ -2988,8 +3160,9 @@ public com.google.longrunning.Operation updateBackupVault( * */ public com.google.longrunning.Operation deleteBackupVault( - com.google.cloud.backupdr.v1.DeleteBackupVaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.DeleteBackupVaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupVaultMethod(), getCallOptions(), request); } @@ -3001,8 +3174,9 @@ public com.google.longrunning.Operation deleteBackupVault( * */ public com.google.cloud.backupdr.v1.ListDataSourcesResponse listDataSources( - com.google.cloud.backupdr.v1.ListDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.ListDataSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataSourcesMethod(), getCallOptions(), request); } @@ -3014,8 +3188,8 @@ public com.google.cloud.backupdr.v1.ListDataSourcesResponse listDataSources( * */ public com.google.cloud.backupdr.v1.DataSource getDataSource( - com.google.cloud.backupdr.v1.GetDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.GetDataSourceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataSourceMethod(), getCallOptions(), request); } @@ -3027,8 +3201,9 @@ public com.google.cloud.backupdr.v1.DataSource getDataSource( * */ public com.google.longrunning.Operation updateDataSource( - com.google.cloud.backupdr.v1.UpdateDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.UpdateDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataSourceMethod(), getCallOptions(), request); } @@ -3040,11 +3215,26 @@ public com.google.longrunning.Operation updateDataSource( * */ public com.google.cloud.backupdr.v1.ListBackupsResponse listBackups( - com.google.cloud.backupdr.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.ListBackupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Fetch Backups for a given resource type.
    +     * 
    + */ + public com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + fetchBackupsForResourceType( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchBackupsForResourceTypeMethod(), getCallOptions(), request); + } + /** * * @@ -3053,8 +3243,8 @@ public com.google.cloud.backupdr.v1.ListBackupsResponse listBackups( * */ public com.google.cloud.backupdr.v1.Backup getBackup( - com.google.cloud.backupdr.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -3066,8 +3256,8 @@ public com.google.cloud.backupdr.v1.Backup getBackup( * */ public com.google.longrunning.Operation updateBackup( - com.google.cloud.backupdr.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.UpdateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } @@ -3079,8 +3269,8 @@ public com.google.longrunning.Operation updateBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.backupdr.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.DeleteBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -3092,8 +3282,8 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.longrunning.Operation restoreBackup( - com.google.cloud.backupdr.v1.RestoreBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.RestoreBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreBackupMethod(), getCallOptions(), request); } @@ -3105,8 +3295,9 @@ public com.google.longrunning.Operation restoreBackup( * */ public com.google.longrunning.Operation createBackupPlan( - com.google.cloud.backupdr.v1.CreateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.CreateBackupPlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupPlanMethod(), getCallOptions(), request); } @@ -3118,8 +3309,9 @@ public com.google.longrunning.Operation createBackupPlan( * */ public com.google.longrunning.Operation updateBackupPlan( - com.google.cloud.backupdr.v1.UpdateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.UpdateBackupPlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupPlanMethod(), getCallOptions(), request); } @@ -3131,8 +3323,8 @@ public com.google.longrunning.Operation updateBackupPlan( * */ public com.google.cloud.backupdr.v1.BackupPlan getBackupPlan( - com.google.cloud.backupdr.v1.GetBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.GetBackupPlanRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupPlanMethod(), getCallOptions(), request); } @@ -3144,8 +3336,9 @@ public com.google.cloud.backupdr.v1.BackupPlan getBackupPlan( * */ public com.google.cloud.backupdr.v1.ListBackupPlansResponse listBackupPlans( - com.google.cloud.backupdr.v1.ListBackupPlansRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.ListBackupPlansRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupPlansMethod(), getCallOptions(), request); } @@ -3157,8 +3350,9 @@ public com.google.cloud.backupdr.v1.ListBackupPlansResponse listBackupPlans( * */ public com.google.longrunning.Operation deleteBackupPlan( - com.google.cloud.backupdr.v1.DeleteBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.DeleteBackupPlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); } @@ -3170,8 +3364,9 @@ public com.google.longrunning.Operation deleteBackupPlan( * */ public com.google.cloud.backupdr.v1.BackupPlanRevision getBackupPlanRevision( - com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupPlanRevisionMethod(), getCallOptions(), request); } @@ -3183,8 +3378,9 @@ public com.google.cloud.backupdr.v1.BackupPlanRevision getBackupPlanRevision( * */ public com.google.cloud.backupdr.v1.ListBackupPlanRevisionsResponse listBackupPlanRevisions( - com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupPlanRevisionsMethod(), getCallOptions(), request); } @@ -3196,8 +3392,9 @@ public com.google.cloud.backupdr.v1.ListBackupPlanRevisionsResponse listBackupPl * */ public com.google.longrunning.Operation createBackupPlanAssociation( - com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupPlanAssociationMethod(), getCallOptions(), request); } @@ -3209,8 +3406,9 @@ public com.google.longrunning.Operation createBackupPlanAssociation( * */ public com.google.longrunning.Operation updateBackupPlanAssociation( - com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupPlanAssociationMethod(), getCallOptions(), request); } @@ -3222,8 +3420,9 @@ public com.google.longrunning.Operation updateBackupPlanAssociation( * */ public com.google.cloud.backupdr.v1.BackupPlanAssociation getBackupPlanAssociation( - com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupPlanAssociationMethod(), getCallOptions(), request); } @@ -3236,8 +3435,9 @@ public com.google.cloud.backupdr.v1.BackupPlanAssociation getBackupPlanAssociati */ public com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse listBackupPlanAssociations( - com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupPlanAssociationsMethod(), getCallOptions(), request); } @@ -3250,9 +3450,9 @@ public com.google.cloud.backupdr.v1.BackupPlanAssociation getBackupPlanAssociati */ public com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse fetchBackupPlanAssociationsForResourceType( - com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchBackupPlanAssociationsForResourceTypeMethod(), getCallOptions(), @@ -3267,8 +3467,9 @@ public com.google.cloud.backupdr.v1.BackupPlanAssociation getBackupPlanAssociati * */ public com.google.longrunning.Operation deleteBackupPlanAssociation( - com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupPlanAssociationMethod(), getCallOptions(), request); } @@ -3280,8 +3481,8 @@ public com.google.longrunning.Operation deleteBackupPlanAssociation( * */ public com.google.longrunning.Operation triggerBackup( - com.google.cloud.backupdr.v1.TriggerBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.TriggerBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTriggerBackupMethod(), getCallOptions(), request); } @@ -3293,11 +3494,26 @@ public com.google.longrunning.Operation triggerBackup( * */ public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReference( - com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataSourceReferenceMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Lists DataSourceReferences for a given project and location.
    +     * 
    + */ + public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse listDataSourceReferences( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDataSourceReferencesMethod(), getCallOptions(), request); + } + /** * * @@ -3307,8 +3523,9 @@ public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReference( */ public com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse fetchDataSourceReferencesForResourceType( - com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchDataSourceReferencesForResourceTypeMethod(), getCallOptions(), @@ -3323,8 +3540,9 @@ public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReference( * */ public com.google.longrunning.Operation initializeService( - com.google.cloud.backupdr.v1.InitializeServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.backupdr.v1.InitializeServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInitializeServiceMethod(), getCallOptions(), request); } } @@ -3531,6 +3749,20 @@ public com.google.cloud.backupdr.v1.ListBackupsResponse listBackups( getChannel(), getListBackupsMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Fetch Backups for a given resource type.
    +     * 
    + */ + public com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + fetchBackupsForResourceType( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchBackupsForResourceTypeMethod(), getCallOptions(), request); + } + /** * * @@ -3784,6 +4016,19 @@ public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReference( getChannel(), getGetDataSourceReferenceMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Lists DataSourceReferences for a given project and location.
    +     * 
    + */ + public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse listDataSourceReferences( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataSourceReferencesMethod(), getCallOptions(), request); + } + /** * * @@ -4026,6 +4271,21 @@ protected BackupDRFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Fetch Backups for a given resource type.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse> + fetchBackupsForResourceType( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchBackupsForResourceTypeMethod(), getCallOptions()), request); + } + /** * * @@ -4291,6 +4551,21 @@ protected BackupDRFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getGetDataSourceReferenceMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Lists DataSourceReferences for a given project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse> + listDataSourceReferences( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataSourceReferencesMethod(), getCallOptions()), request); + } + /** * * @@ -4336,27 +4611,29 @@ protected BackupDRFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_GET_DATA_SOURCE = 11; private static final int METHODID_UPDATE_DATA_SOURCE = 12; private static final int METHODID_LIST_BACKUPS = 13; - private static final int METHODID_GET_BACKUP = 14; - private static final int METHODID_UPDATE_BACKUP = 15; - private static final int METHODID_DELETE_BACKUP = 16; - private static final int METHODID_RESTORE_BACKUP = 17; - private static final int METHODID_CREATE_BACKUP_PLAN = 18; - private static final int METHODID_UPDATE_BACKUP_PLAN = 19; - private static final int METHODID_GET_BACKUP_PLAN = 20; - private static final int METHODID_LIST_BACKUP_PLANS = 21; - private static final int METHODID_DELETE_BACKUP_PLAN = 22; - private static final int METHODID_GET_BACKUP_PLAN_REVISION = 23; - private static final int METHODID_LIST_BACKUP_PLAN_REVISIONS = 24; - private static final int METHODID_CREATE_BACKUP_PLAN_ASSOCIATION = 25; - private static final int METHODID_UPDATE_BACKUP_PLAN_ASSOCIATION = 26; - private static final int METHODID_GET_BACKUP_PLAN_ASSOCIATION = 27; - private static final int METHODID_LIST_BACKUP_PLAN_ASSOCIATIONS = 28; - private static final int METHODID_FETCH_BACKUP_PLAN_ASSOCIATIONS_FOR_RESOURCE_TYPE = 29; - private static final int METHODID_DELETE_BACKUP_PLAN_ASSOCIATION = 30; - private static final int METHODID_TRIGGER_BACKUP = 31; - private static final int METHODID_GET_DATA_SOURCE_REFERENCE = 32; - private static final int METHODID_FETCH_DATA_SOURCE_REFERENCES_FOR_RESOURCE_TYPE = 33; - private static final int METHODID_INITIALIZE_SERVICE = 34; + private static final int METHODID_FETCH_BACKUPS_FOR_RESOURCE_TYPE = 14; + private static final int METHODID_GET_BACKUP = 15; + private static final int METHODID_UPDATE_BACKUP = 16; + private static final int METHODID_DELETE_BACKUP = 17; + private static final int METHODID_RESTORE_BACKUP = 18; + private static final int METHODID_CREATE_BACKUP_PLAN = 19; + private static final int METHODID_UPDATE_BACKUP_PLAN = 20; + private static final int METHODID_GET_BACKUP_PLAN = 21; + private static final int METHODID_LIST_BACKUP_PLANS = 22; + private static final int METHODID_DELETE_BACKUP_PLAN = 23; + private static final int METHODID_GET_BACKUP_PLAN_REVISION = 24; + private static final int METHODID_LIST_BACKUP_PLAN_REVISIONS = 25; + private static final int METHODID_CREATE_BACKUP_PLAN_ASSOCIATION = 26; + private static final int METHODID_UPDATE_BACKUP_PLAN_ASSOCIATION = 27; + private static final int METHODID_GET_BACKUP_PLAN_ASSOCIATION = 28; + private static final int METHODID_LIST_BACKUP_PLAN_ASSOCIATIONS = 29; + private static final int METHODID_FETCH_BACKUP_PLAN_ASSOCIATIONS_FOR_RESOURCE_TYPE = 30; + private static final int METHODID_DELETE_BACKUP_PLAN_ASSOCIATION = 31; + private static final int METHODID_TRIGGER_BACKUP = 32; + private static final int METHODID_GET_DATA_SOURCE_REFERENCE = 33; + private static final int METHODID_LIST_DATA_SOURCE_REFERENCES = 34; + private static final int METHODID_FETCH_DATA_SOURCE_REFERENCES_FOR_RESOURCE_TYPE = 35; + private static final int METHODID_INITIALIZE_SERVICE = 36; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4455,6 +4732,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_FETCH_BACKUPS_FOR_RESOURCE_TYPE: + serviceImpl.fetchBackupsForResourceType( + (com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse>) + responseObserver); + break; case METHODID_GET_BACKUP: serviceImpl.getBackup( (com.google.cloud.backupdr.v1.GetBackupRequest) request, @@ -4563,6 +4847,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_DATA_SOURCE_REFERENCES: + serviceImpl.listDataSourceReferences( + (com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse>) + responseObserver); + break; case METHODID_FETCH_DATA_SOURCE_REFERENCES_FOR_RESOURCE_TYPE: serviceImpl.fetchDataSourceReferencesForResourceType( (com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest) @@ -4685,6 +4976,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.backupdr.v1.ListBackupsRequest, com.google.cloud.backupdr.v1.ListBackupsResponse>( service, METHODID_LIST_BACKUPS))) + .addMethod( + getFetchBackupsForResourceTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest, + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse>( + service, METHODID_FETCH_BACKUPS_FOR_RESOURCE_TYPE))) .addMethod( getGetBackupMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4810,6 +5108,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest, com.google.cloud.backupdr.v1.DataSourceReference>( service, METHODID_GET_DATA_SOURCE_REFERENCE))) + .addMethod( + getListDataSourceReferencesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest, + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse>( + service, METHODID_LIST_DATA_SOURCE_REFERENCES))) .addMethod( getFetchDataSourceReferencesForResourceTypeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4886,6 +5191,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetDataSourceMethod()) .addMethod(getUpdateDataSourceMethod()) .addMethod(getListBackupsMethod()) + .addMethod(getFetchBackupsForResourceTypeMethod()) .addMethod(getGetBackupMethod()) .addMethod(getUpdateBackupMethod()) .addMethod(getDeleteBackupMethod()) @@ -4905,6 +5211,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteBackupPlanAssociationMethod()) .addMethod(getTriggerBackupMethod()) .addMethod(getGetDataSourceReferenceMethod()) + .addMethod(getListDataSourceReferencesMethod()) .addMethod(getFetchDataSourceReferencesForResourceTypeMethod()) .addMethod(getInitializeServiceMethod()) .build(); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java index 4b34d1f697c6..d8dfe0784e02 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java @@ -1969,6 +1969,53 @@ public PlanInfoCase getPlanInfoCase() { return PlanInfoCase.forNumber(planInfoCase_); } + private int sourceResourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceResource_; + + public enum SourceResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCP_RESOURCE(31), + SOURCERESOURCE_NOT_SET(0); + private final int value; + + private SourceResourceCase(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 SourceResourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceResourceCase forNumber(int value) { + switch (value) { + case 31: + return GCP_RESOURCE; + case 0: + return SOURCERESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceResourceCase getSourceResourceCase() { + return SourceResourceCase.forNumber(sourceResourceCase_); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -3238,6 +3285,69 @@ public boolean getSatisfiesPzi() { return satisfiesPzi_; } + public static final int GCP_RESOURCE_FIELD_NUMBER = 31; + + /** + * + * + *
    +   * Output only. Unique identifier of the GCP resource that is being backed
    +   * up.
    +   * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcpResource field is set. + */ + @java.lang.Override + public boolean hasGcpResource() { + return sourceResourceCase_ == 31; + } + + /** + * + * + *
    +   * Output only. Unique identifier of the GCP resource that is being backed
    +   * up.
    +   * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcpResource. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupGcpResource getGcpResource() { + if (sourceResourceCase_ == 31) { + return (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_; + } + return com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance(); + } + + /** + * + * + *
    +   * Output only. Unique identifier of the GCP resource that is being backed
    +   * up.
    +   * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder getGcpResourceOrBuilder() { + if (sourceResourceCase_ == 31) { + return (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_; + } + return com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3319,6 +3429,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 28, (com.google.cloud.backupdr.v1.DiskBackupProperties) backupProperties_); } + if (sourceResourceCase_ == 31) { + output.writeMessage(31, (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_); + } getUnknownFields().writeTo(output); } @@ -3414,6 +3527,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 28, (com.google.cloud.backupdr.v1.DiskBackupProperties) backupProperties_); } + if (sourceResourceCase_ == 31) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3500,6 +3618,14 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getSourceResourceCase().equals(other.getSourceResourceCase())) return false; + switch (sourceResourceCase_) { + case 31: + if (!getGcpResource().equals(other.getGcpResource())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3595,6 +3721,14 @@ public int hashCode() { case 0: default: } + switch (sourceResourceCase_) { + case 31: + hash = (37 * hash) + GCP_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcpResource().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3834,10 +3968,15 @@ public Builder clear() { resourceSizeBytes_ = 0L; satisfiesPzs_ = false; satisfiesPzi_ = false; + if (gcpResourceBuilder_ != null) { + gcpResourceBuilder_.clear(); + } backupPropertiesCase_ = 0; backupProperties_ = null; planInfoCase_ = 0; planInfo_ = null; + sourceResourceCase_ = 0; + sourceResource_ = null; return this; } @@ -3976,6 +4115,11 @@ private void buildPartialOneofs(com.google.cloud.backupdr.v1.Backup result) { if (planInfoCase_ == 22 && gcpBackupPlanInfoBuilder_ != null) { result.planInfo_ = gcpBackupPlanInfoBuilder_.build(); } + result.sourceResourceCase_ = sourceResourceCase_; + result.sourceResource_ = this.sourceResource_; + if (sourceResourceCase_ == 31 && gcpResourceBuilder_ != null) { + result.sourceResource_ = gcpResourceBuilder_.build(); + } } @java.lang.Override @@ -4161,6 +4305,17 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) { break; } } + switch (other.getSourceResourceCase()) { + case GCP_RESOURCE: + { + mergeGcpResource(other.getGcpResource()); + break; + } + case SOURCERESOURCE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4342,6 +4497,12 @@ public Builder mergeFrom( backupPropertiesCase_ = 28; break; } // case 226 + case 250: + { + input.readMessage(getGcpResourceFieldBuilder().getBuilder(), extensionRegistry); + sourceResourceCase_ = 31; + break; + } // case 250 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4387,6 +4548,20 @@ public Builder clearPlanInfo() { return this; } + private int sourceResourceCase_ = 0; + private java.lang.Object sourceResource_; + + public SourceResourceCase getSourceResourceCase() { + return SourceResourceCase.forNumber(sourceResourceCase_); + } + + public Builder clearSourceResource() { + sourceResourceCase_ = 0; + sourceResource_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object name_ = ""; @@ -8516,6 +8691,252 @@ public Builder clearSatisfiesPzi() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.backupdr.v1.BackupGcpResource, + com.google.cloud.backupdr.v1.BackupGcpResource.Builder, + com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder> + gcpResourceBuilder_; + + /** + * + * + *
    +     * Output only. Unique identifier of the GCP resource that is being backed
    +     * up.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcpResource field is set. + */ + @java.lang.Override + public boolean hasGcpResource() { + return sourceResourceCase_ == 31; + } + + /** + * + * + *
    +     * Output only. Unique identifier of the GCP resource that is being backed
    +     * up.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcpResource. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupGcpResource getGcpResource() { + if (gcpResourceBuilder_ == null) { + if (sourceResourceCase_ == 31) { + return (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_; + } + return com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance(); + } else { + if (sourceResourceCase_ == 31) { + return gcpResourceBuilder_.getMessage(); + } + return com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Output only. Unique identifier of the GCP resource that is being backed
    +     * up.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGcpResource(com.google.cloud.backupdr.v1.BackupGcpResource value) { + if (gcpResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceResource_ = value; + onChanged(); + } else { + gcpResourceBuilder_.setMessage(value); + } + sourceResourceCase_ = 31; + return this; + } + + /** + * + * + *
    +     * Output only. Unique identifier of the GCP resource that is being backed
    +     * up.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGcpResource( + com.google.cloud.backupdr.v1.BackupGcpResource.Builder builderForValue) { + if (gcpResourceBuilder_ == null) { + sourceResource_ = builderForValue.build(); + onChanged(); + } else { + gcpResourceBuilder_.setMessage(builderForValue.build()); + } + sourceResourceCase_ = 31; + return this; + } + + /** + * + * + *
    +     * Output only. Unique identifier of the GCP resource that is being backed
    +     * up.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeGcpResource(com.google.cloud.backupdr.v1.BackupGcpResource value) { + if (gcpResourceBuilder_ == null) { + if (sourceResourceCase_ == 31 + && sourceResource_ + != com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance()) { + sourceResource_ = + com.google.cloud.backupdr.v1.BackupGcpResource.newBuilder( + (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceResource_ = value; + } + onChanged(); + } else { + if (sourceResourceCase_ == 31) { + gcpResourceBuilder_.mergeFrom(value); + } else { + gcpResourceBuilder_.setMessage(value); + } + } + sourceResourceCase_ = 31; + return this; + } + + /** + * + * + *
    +     * Output only. Unique identifier of the GCP resource that is being backed
    +     * up.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGcpResource() { + if (gcpResourceBuilder_ == null) { + if (sourceResourceCase_ == 31) { + sourceResourceCase_ = 0; + sourceResource_ = null; + onChanged(); + } + } else { + if (sourceResourceCase_ == 31) { + sourceResourceCase_ = 0; + sourceResource_ = null; + } + gcpResourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Unique identifier of the GCP resource that is being backed
    +     * up.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BackupGcpResource.Builder getGcpResourceBuilder() { + return getGcpResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Unique identifier of the GCP resource that is being backed
    +     * up.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder getGcpResourceOrBuilder() { + if ((sourceResourceCase_ == 31) && (gcpResourceBuilder_ != null)) { + return gcpResourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceResourceCase_ == 31) { + return (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_; + } + return com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Output only. Unique identifier of the GCP resource that is being backed
    +     * up.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.backupdr.v1.BackupGcpResource, + com.google.cloud.backupdr.v1.BackupGcpResource.Builder, + com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder> + getGcpResourceFieldBuilder() { + if (gcpResourceBuilder_ == null) { + if (!(sourceResourceCase_ == 31)) { + sourceResource_ = com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance(); + } + gcpResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.backupdr.v1.BackupGcpResource, + com.google.cloud.backupdr.v1.BackupGcpResource.Builder, + com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder>( + (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_, + getParentForChildren(), + isClean()); + sourceResource_ = null; + } + sourceResourceCase_ = 31; + onChanged(); + return gcpResourceBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java index b80194b9ff32..68b0fce72546 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java @@ -219,7 +219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pdr.v1.OperationMetadata.AdditionalInfoEntryB\003\340A\003\0325\n" + "\023AdditionalInfoEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\0012\332?\n" + + "\005value\030\002 \001(\t:\0028\0012\324C\n" + "\010BackupDR\022\320\001\n" + "\025ListManagementServers\0226.google.cloud.b" + "ackupdr.v1.ListManagementServersRequest\0327.google.cloud.backupdr.v1.ListManagemen" @@ -280,109 +280,120 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ListBackups\022,.google.cloud.backupdr.v1.ListBack" + "upsRequest\032-.google.cloud.backupdr.v1.Li" + "stBackupsResponse\"Y\332A\006parent\202\323\344\223\002J\022H/v1/" - + "{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups\022\262\001\n" + + "{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups\022\230\002\n" + + "\033FetchBackupsForResourceType\022<.google.cloud.back" + + "updr.v1.FetchBackupsForResourceTypeRequest\032=.google.cloud.backupdr.v1.FetchBacku" + + "psForResourceTypeResponse\"|\332A\024parent,res" + + "ource_type\202\323\344\223\002_\022]/v1/{parent=projects/*" + + "/locations/*/backupVaults/*/dataSources/*}/backups:fetchForResourceType\022\262\001\n" + "\tGetBackup\022*.google.cloud.backupdr.v1.GetBackupRequest\032" - + " .google.cloud.backupdr.v1.Backup" - + "\"W\332A\004name\202\323\344\223\002J\022H/v1/{name=projects/*/lo" - + "cations/*/backupVaults/*/dataSources/*/backups/*}\022\361\001\n" - + "\014UpdateBackup\022-.google.clou" - + "d.backupdr.v1.UpdateBackupRequest\032\035.google.longrunning.Operation\"\222\001\312A\033\n" - + "\006Backup\022\021OperationMetadata\332A\022backup,update_mask\202\323" - + "\344\223\002Y2O/v1/{backup.name=projects/*/locati" - + "ons/*/backupVaults/*/dataSources/*/backups/*}:\006backup\022\323\001\n" - + "\014DeleteBackup\022-.google." - + "cloud.backupdr.v1.DeleteBackupRequest\032\035.google.longrunning.Operation\"u\312A\033\n" - + "\006Backup\022\021OperationMetadata\332A\004name\202\323\344\223\002J*H/v1/{" - + "name=projects/*/locations/*/backupVaults/*/dataSources/*/backups/*}\022\360\001\n\r" - + "RestoreBackup\022..google.cloud.backupdr.v1.Restore" - + "BackupRequest\032\035.google.longrunning.Operation\"\217\001\312A*\n" - + "\025RestoreBackupResponse\022\021Opera" - + "tionMetadata\332A\004name\202\323\344\223\002U\"P/v1/{name=pro" - + "jects/*/locations/*/backupVaults/*/dataSources/*/backups/*}:restore:\001*\022\361\001\n" - + "\020CreateBackupPlan\0221.google.cloud.backupdr.v1.C" - + "reateBackupPlanRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" - + "BackupPlan\022\021OperationMetadata\332A!parent,backup_plan,backup_p" - + "lan_id\202\323\344\223\002>\"//v1/{parent=projects/*/locations/*}/backupPlans:\013backup_plan\022\363\001\n" - + "\020UpdateBackupPlan\0221.google.cloud.backupdr." - + "v1.UpdateBackupPlanRequest\032\035.google.longrunning.Operation\"\214\001\312A\037\n\n" - + "BackupPlan\022\021OperationMetadata\332A\027backup_plan,update_mask" - + "\202\323\344\223\002J2;/v1/{backup_plan.name=projects/*" - + "/locations/*/backupPlans/*}:\013backup_plan\022\245\001\n\r" - + "GetBackupPlan\022..google.cloud.backupdr.v1.GetBackupPlanRequest\032$.google.clou" - + "d.backupdr.v1.BackupPlan\">\332A\004name\202\323\344\223\0021\022" - + "//v1/{name=projects/*/locations/*/backupPlans/*}\022\270\001\n" - + "\017ListBackupPlans\0220.google.cloud.backupdr.v1.ListBackupPlansRequest\0321" - + ".google.cloud.backupdr.v1.ListBackupPlan" - + "sResponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/backupPlans\022\321\001\n" - + "\020DeleteBackupPlan\0221.google.cloud.backupdr" - + ".v1.DeleteBackupPlanRequest\032\035.google.longrunning.Operation\"k\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0021*/" - + "/v1/{name=projects/*/locations/*/backupPlans/*}\022\311\001\n" - + "\025GetBackupPlanRevision\0226.google.cloud.backupdr.v1.GetBackupPlanRevisi" - + "onRequest\032,.google.cloud.backupdr.v1.Bac" - + "kupPlanRevision\"J\332A\004name\202\323\344\223\002=\022;/v1/{nam" - + "e=projects/*/locations/*/backupPlans/*/revisions/*}\022\334\001\n" - + "\027ListBackupPlanRevisions\0228.google.cloud.backupdr.v1.ListBackupPla" - + "nRevisionsRequest\0329.google.cloud.backupd" - + "r.v1.ListBackupPlanRevisionsResponse\"L\332A" - + "\006parent\202\323\344\223\002=\022;/v1/{parent=projects/*/locations/*/backupPlans/*}/revisions\022\301\002\n" - + "\033CreateBackupPlanAssociation\022<.google.clou" - + "d.backupdr.v1.CreateBackupPlanAssociatio" - + "nRequest\032\035.google.longrunning.Operation\"\304\001\312A*\n" - + "\025BackupPlanAssociation\022\021OperationMetadata\332A9parent,backup_plan_association" - + ",backup_plan_association_id\202\323\344\223\002U\":/v1/{" - + "parent=projects/*/locations/*}/backupPla" - + "nAssociations:\027backup_plan_association\022\303\002\n" - + "\033UpdateBackupPlanAssociation\022<.google.cloud.backupdr.v1.UpdateBackupPlanAssoci" - + "ationRequest\032\035.google.longrunning.Operation\"\306\001\312A*\n" - + "\025BackupPlanAssociation\022\021OperationMetadata\332A#backup_plan_association,up" - + "date_mask\202\323\344\223\002m2R/v1/{backup_plan_associ" - + "ation.name=projects/*/locations/*/backup" - + "PlanAssociations/*}:\027backup_plan_association\022\321\001\n" - + "\030GetBackupPlanAssociation\0229.google.cloud.backupdr.v1.GetBackupPlanAssoci" - + "ationRequest\032/.google.cloud.backupdr.v1." - + "BackupPlanAssociation\"I\332A\004name\202\323\344\223\002<\022:/v" - + "1/{name=projects/*/locations/*/backupPlanAssociations/*}\022\344\001\n" - + "\032ListBackupPlanAssociations\022;.google.cloud.backupdr.v1.ListB" - + "ackupPlanAssociationsRequest\032<.google.cloud.backupdr.v1.ListBackupPlanAssociatio" - + "nsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent" - + "=projects/*/locations/*}/backupPlanAssociations\022\267\002\n" - + "*FetchBackupPlanAssociationsForResourceType\022K.google.cloud.backupdr.v" - + "1.FetchBackupPlanAssociationsForResourceTypeRequest\032L.google.cloud.backupdr.v1.F" - + "etchBackupPlanAssociationsForResourceTyp" - + "eResponse\"n\332A\024parent,resource_type\202\323\344\223\002Q" - + "\022O/v1/{parent=projects/*/locations/*}/ba" - + "ckupPlanAssociations:fetchForResourceType\022\362\001\n" - + "\033DeleteBackupPlanAssociation\022<.google.cloud.backupdr.v1.DeleteBackupPlanAss" - + "ociationRequest\032\035.google.longrunning.Operation\"v\312A*\n" - + "\025google.protobuf.Empty\022\021Oper" - + "ationMetadata\332A\004name\202\323\344\223\002<*:/v1/{name=pr" - + "ojects/*/locations/*/backupPlanAssociations/*}\022\360\001\n\r" - + "TriggerBackup\022..google.cloud." - + "backupdr.v1.TriggerBackupRequest\032\035.google.longrunning.Operation\"\217\001\312A*\n" - + "\025BackupPlanAssociation\022\021OperationMetadata\332A\014name,r" - + "ule_id\202\323\344\223\002M\"H/v1/{name=projects/*/locat" - + "ions/*/backupPlanAssociations/*}:triggerBackup:\001*\022\311\001\n" - + "\026GetDataSourceReference\0227.google.cloud.backupdr.v1.GetDataSourceRef" - + "erenceRequest\032-.google.cloud.backupdr.v1" - + ".DataSourceReference\"G\332A\004name\202\323\344\223\002:\0228/v1" - + "/{name=projects/*/locations/*/dataSourceReferences/*}\022\257\002\n" - + "(FetchDataSourceReferencesForResourceType\022I.google.cloud.backup" - + "dr.v1.FetchDataSourceReferencesForResourceTypeRequest\032J.google.cloud.backupdr.v1" - + ".FetchDataSourceReferencesForResourceTyp" - + "eResponse\"l\332A\024parent,resource_type\202\323\344\223\002O" - + "\022M/v1/{parent=projects/*/locations/*}/da" - + "taSourceReferences:fetchForResourceType\022\336\001\n" - + "\021InitializeService\0222.google.cloud.bac" - + "kupdr.v1.InitializeServiceRequest\032\035.google.longrunning.Operation\"v\312A.\n" - + "\031InitializeServiceResponse\022\021OperationMetadata\202\323\344\223\002" - + "?\":/v1/{name=projects/*/locations/*/serv" - + "iceConfig}:initialize:\001*\032K\312A\027backupdr.go" - + "ogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\275\001\n" + + " .google.cloud.backupdr.v1.Bac" + + "kup\"W\332A\004name\202\323\344\223\002J\022H/v1/{name=projects/*" + + "/locations/*/backupVaults/*/dataSources/*/backups/*}\022\361\001\n" + + "\014UpdateBackup\022-.google.c" + + "loud.backupdr.v1.UpdateBackupRequest\032\035.google.longrunning.Operation\"\222\001\312A\033\n" + + "\006Backup\022\021OperationMetadata\332A\022backup,update_mas" + + "k\202\323\344\223\002Y2O/v1/{backup.name=projects/*/loc" + + "ations/*/backupVaults/*/dataSources/*/backups/*}:\006backup\022\323\001\n" + + "\014DeleteBackup\022-.goog" + + "le.cloud.backupdr.v1.DeleteBackupRequest\032\035.google.longrunning.Operation\"u\312A\033\n" + + "\006Backup\022\021OperationMetadata\332A\004name\202\323\344\223\002J*H/v" + + "1/{name=projects/*/locations/*/backupVaults/*/dataSources/*/backups/*}\022\360\001\n\r" + + "RestoreBackup\022..google.cloud.backupdr.v1.Rest" + + "oreBackupRequest\032\035.google.longrunning.Operation\"\217\001\312A*\n" + + "\025RestoreBackupResponse\022\021Op" + + "erationMetadata\332A\004name\202\323\344\223\002U\"P/v1/{name=" + + "projects/*/locations/*/backupVaults/*/dataSources/*/backups/*}:restore:\001*\022\361\001\n" + + "\020CreateBackupPlan\0221.google.cloud.backupdr.v" + + "1.CreateBackupPlanRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" + + "BackupPlan\022\021OperationMetadata\332A!parent,backup_plan,backu" + + "p_plan_id\202\323\344\223\002>\"//v1/{parent=projects/*/" + + "locations/*}/backupPlans:\013backup_plan\022\363\001\n" + + "\020UpdateBackupPlan\0221.google.cloud.backup" + + "dr.v1.UpdateBackupPlanRequest\032\035.google.longrunning.Operation\"\214\001\312A\037\n\n" + + "BackupPlan\022\021OperationMetadata\332A\027backup_plan,update_m" + + "ask\202\323\344\223\002J2;/v1/{backup_plan.name=project" + + "s/*/locations/*/backupPlans/*}:\013backup_plan\022\245\001\n\r" + + "GetBackupPlan\022..google.cloud.backupdr.v1.GetBackupPlanRequest\032$.google.c" + + "loud.backupdr.v1.BackupPlan\">\332A\004name\202\323\344\223" + + "\0021\022//v1/{name=projects/*/locations/*/backupPlans/*}\022\270\001\n" + + "\017ListBackupPlans\0220.google.cloud.backupdr.v1.ListBackupPlansReques" + + "t\0321.google.cloud.backupdr.v1.ListBackupP" + + "lansResponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{pare" + + "nt=projects/*/locations/*}/backupPlans\022\321\001\n" + + "\020DeleteBackupPlan\0221.google.cloud.backu" + + "pdr.v1.DeleteBackupPlanRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "1*//v1/{name=projects/*/locations/*/backupPlans/*}\022\311\001\n" + + "\025GetBackupPlanRevision\0226.google.cloud.backupdr.v1.GetBackupPlanRev" + + "isionRequest\032,.google.cloud.backupdr.v1." + + "BackupPlanRevision\"J\332A\004name\202\323\344\223\002=\022;/v1/{" + + "name=projects/*/locations/*/backupPlans/*/revisions/*}\022\334\001\n" + + "\027ListBackupPlanRevisions\0228.google.cloud.backupdr.v1.ListBackup" + + "PlanRevisionsRequest\0329.google.cloud.backupdr.v1.ListBackupPlanRevisionsResponse\"" + + "L\332A\006parent\202\323\344\223\002=\022;/v1/{parent=projects/*" + + "/locations/*/backupPlans/*}/revisions\022\301\002\n" + + "\033CreateBackupPlanAssociation\022<.google.cloud.backupdr.v1.CreateBackupPlanAssocia" + + "tionRequest\032\035.google.longrunning.Operation\"\304\001\312A*\n" + + "\025BackupPlanAssociation\022\021OperationMetadata\332A9parent,backup_plan_associat" + + "ion,backup_plan_association_id\202\323\344\223\002U\":/v" + + "1/{parent=projects/*/locations/*}/backup" + + "PlanAssociations:\027backup_plan_association\022\303\002\n" + + "\033UpdateBackupPlanAssociation\022<.google.cloud.backupdr.v1.UpdateBackupPlanAss" + + "ociationRequest\032\035.google.longrunning.Operation\"\306\001\312A*\n" + + "\025BackupPlanAssociation\022\021OperationMetadata\332A#backup_plan_association" + + ",update_mask\202\323\344\223\002m2R/v1/{backup_plan_ass" + + "ociation.name=projects/*/locations/*/bac" + + "kupPlanAssociations/*}:\027backup_plan_association\022\321\001\n" + + "\030GetBackupPlanAssociation\0229.google.cloud.backupdr.v1.GetBackupPlanAss" + + "ociationRequest\032/.google.cloud.backupdr." + + "v1.BackupPlanAssociation\"I\332A\004name\202\323\344\223\002<\022" + + ":/v1/{name=projects/*/locations/*/backupPlanAssociations/*}\022\344\001\n" + + "\032ListBackupPlanAssociations\022;.google.cloud.backupdr.v1.Li" + + "stBackupPlanAssociationsRequest\032<.google.cloud.backupdr.v1.ListBackupPlanAssocia" + + "tionsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{par" + + "ent=projects/*/locations/*}/backupPlanAssociations\022\267\002\n" + + "*FetchBackupPlanAssociationsForResourceType\022K.google.cloud.backupd" + + "r.v1.FetchBackupPlanAssociationsForResourceTypeRequest\032L.google.cloud.backupdr.v" + + "1.FetchBackupPlanAssociationsForResource" + + "TypeResponse\"n\332A\024parent,resource_type\202\323\344" + + "\223\002Q\022O/v1/{parent=projects/*/locations/*}" + + "/backupPlanAssociations:fetchForResourceType\022\362\001\n" + + "\033DeleteBackupPlanAssociation\022<.google.cloud.backupdr.v1.DeleteBackupPlan" + + "AssociationRequest\032\035.google.longrunning.Operation\"v\312A*\n" + + "\025google.protobuf.Empty\022\021O" + + "perationMetadata\332A\004name\202\323\344\223\002<*:/v1/{name" + + "=projects/*/locations/*/backupPlanAssociations/*}\022\360\001\n\r" + + "TriggerBackup\022..google.clo" + + "ud.backupdr.v1.TriggerBackupRequest\032\035.google.longrunning.Operation\"\217\001\312A*\n" + + "\025BackupPlanAssociation\022\021OperationMetadata\332A\014nam" + + "e,rule_id\202\323\344\223\002M\"H/v1/{name=projects/*/lo" + + "cations/*/backupPlanAssociations/*}:triggerBackup:\001*\022\311\001\n" + + "\026GetDataSourceReference\0227.google.cloud.backupdr.v1.GetDataSource" + + "ReferenceRequest\032-.google.cloud.backupdr" + + ".v1.DataSourceReference\"G\332A\004name\202\323\344\223\002:\0228" + + "/v1/{name=projects/*/locations/*/dataSourceReferences/*}\022\334\001\n" + + "\030ListDataSourceReferences\0229.google.cloud.backupdr.v1.ListDat" + + "aSourceReferencesRequest\032:.google.cloud.backupdr.v1.ListDataSourceReferencesResp" + + "onse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=proje" + + "cts/*/locations/*}/dataSourceReferences\022\257\002\n" + + "(FetchDataSourceReferencesForResourceType\022I.google.cloud.backupdr.v1.FetchDat" + + "aSourceReferencesForResourceTypeRequest\032J.google.cloud.backupdr.v1.FetchDataSour" + + "ceReferencesForResourceTypeResponse\"l\332A\024" + + "parent,resource_type\202\323\344\223\002O\022M/v1/{parent=" + + "projects/*/locations/*}/dataSourceReferences:fetchForResourceType\022\336\001\n" + + "\021InitializeService\0222.google.cloud.backupdr.v1.Initi" + + "alizeServiceRequest\032\035.google.longrunning.Operation\"v\312A.\n" + + "\031InitializeServiceRespon" + + "se\022\021OperationMetadata\202\323\344\223\002?\":/v1/{name=p" + + "rojects/*/locations/*/serviceConfig}:ini" + + "tialize:\001*\032K\312A\027backupdr.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-platformB\275\001\n" + "\034com.google.cloud.backupdr.v1B\r" - + "BackupDRProtoP\001Z8cloud.google.com/go/backupdr/apiv1/backupdrpb;b" - + "ackupdrpb\252\002\030Google.Cloud.BackupDR.V1\312\002\030G" - + "oogle\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1b\006proto3" + + "BackupDRProtoP\001Z8cloud.google.com/go/b" + + "ackupdr/apiv1/backupdrpb;backupdrpb\252\002\030Go" + + "ogle.Cloud.BackupDR.V1\312\002\030Google\\Cloud\\Ba" + + "ckupDR\\V1\352\002\033Google::Cloud::BackupDR::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupGcpResource.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupGcpResource.java new file mode 100644 index 000000000000..af2c7bbaeaef --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupGcpResource.java @@ -0,0 +1,1018 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/backupvault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +/** + * + * + *
    + * Minimum details to identify a Google Cloud resource for a backup.
    + * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.BackupGcpResource} + */ +public final class BackupGcpResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.BackupGcpResource) + BackupGcpResourceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BackupGcpResource.newBuilder() to construct. + private BackupGcpResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackupGcpResource() { + gcpResourcename_ = ""; + location_ = ""; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackupGcpResource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupGcpResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupGcpResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BackupGcpResource.class, + com.google.cloud.backupdr.v1.BackupGcpResource.Builder.class); + } + + public static final int GCP_RESOURCENAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpResourcename_ = ""; + + /** + * + * + *
    +   * Name of the Google Cloud resource.
    +   * 
    + * + * string gcp_resourcename = 1; + * + * @return The gcpResourcename. + */ + @java.lang.Override + public java.lang.String getGcpResourcename() { + java.lang.Object ref = gcpResourcename_; + 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(); + gcpResourcename_ = s; + return s; + } + } + + /** + * + * + *
    +   * Name of the Google Cloud resource.
    +   * 
    + * + * string gcp_resourcename = 1; + * + * @return The bytes for gcpResourcename. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpResourcenameBytes() { + java.lang.Object ref = gcpResourcename_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpResourcename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
    +   * Location of the resource: <region>/<zone>/"global"/"unspecified".
    +   * 
    + * + * string location = 2; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + + /** + * + * + *
    +   * Location of the resource: <region>/<zone>/"global"/"unspecified".
    +   * 
    + * + * string location = 2; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
    +   * Type of the resource. Use the Unified Resource Type,
    +   * eg. compute.googleapis.com/Instance.
    +   * 
    + * + * string type = 3; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + + /** + * + * + *
    +   * Type of the resource. Use the Unified Resource Type,
    +   * eg. compute.googleapis.com/Instance.
    +   * 
    + * + * string type = 3; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = 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.GeneratedMessageV3.isStringEmpty(gcpResourcename_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcpResourcename_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpResourcename_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcpResourcename_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); + } + 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.backupdr.v1.BackupGcpResource)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.BackupGcpResource other = + (com.google.cloud.backupdr.v1.BackupGcpResource) obj; + + if (!getGcpResourcename().equals(other.getGcpResourcename())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getType().equals(other.getType())) 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) + GCP_RESOURCENAME_FIELD_NUMBER; + hash = (53 * hash) + getGcpResourcename().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource 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.backupdr.v1.BackupGcpResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource 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.backupdr.v1.BackupGcpResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.BackupGcpResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Minimum details to identify a Google Cloud resource for a backup.
    +   * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.BackupGcpResource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.BackupGcpResource) + com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupGcpResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupGcpResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BackupGcpResource.class, + com.google.cloud.backupdr.v1.BackupGcpResource.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.BackupGcpResource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcpResourcename_ = ""; + location_ = ""; + type_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupGcpResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupGcpResource getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupGcpResource build() { + com.google.cloud.backupdr.v1.BackupGcpResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupGcpResource buildPartial() { + com.google.cloud.backupdr.v1.BackupGcpResource result = + new com.google.cloud.backupdr.v1.BackupGcpResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.BackupGcpResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcpResourcename_ = gcpResourcename_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.BackupGcpResource) { + return mergeFrom((com.google.cloud.backupdr.v1.BackupGcpResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupGcpResource other) { + if (other == com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance()) return this; + if (!other.getGcpResourcename().isEmpty()) { + gcpResourcename_ = other.gcpResourcename_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + 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: + { + gcpResourcename_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + type_ = 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 gcpResourcename_ = ""; + + /** + * + * + *
    +     * Name of the Google Cloud resource.
    +     * 
    + * + * string gcp_resourcename = 1; + * + * @return The gcpResourcename. + */ + public java.lang.String getGcpResourcename() { + java.lang.Object ref = gcpResourcename_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpResourcename_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Name of the Google Cloud resource.
    +     * 
    + * + * string gcp_resourcename = 1; + * + * @return The bytes for gcpResourcename. + */ + public com.google.protobuf.ByteString getGcpResourcenameBytes() { + java.lang.Object ref = gcpResourcename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpResourcename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Name of the Google Cloud resource.
    +     * 
    + * + * string gcp_resourcename = 1; + * + * @param value The gcpResourcename to set. + * @return This builder for chaining. + */ + public Builder setGcpResourcename(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpResourcename_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Name of the Google Cloud resource.
    +     * 
    + * + * string gcp_resourcename = 1; + * + * @return This builder for chaining. + */ + public Builder clearGcpResourcename() { + gcpResourcename_ = getDefaultInstance().getGcpResourcename(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Name of the Google Cloud resource.
    +     * 
    + * + * string gcp_resourcename = 1; + * + * @param value The bytes for gcpResourcename to set. + * @return This builder for chaining. + */ + public Builder setGcpResourcenameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpResourcename_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
    +     * Location of the resource: <region>/<zone>/"global"/"unspecified".
    +     * 
    + * + * string location = 2; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Location of the resource: <region>/<zone>/"global"/"unspecified".
    +     * 
    + * + * string location = 2; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Location of the resource: <region>/<zone>/"global"/"unspecified".
    +     * 
    + * + * string location = 2; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Location of the resource: <region>/<zone>/"global"/"unspecified".
    +     * 
    + * + * string location = 2; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Location of the resource: <region>/<zone>/"global"/"unspecified".
    +     * 
    + * + * string location = 2; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
    +     * Type of the resource. Use the Unified Resource Type,
    +     * eg. compute.googleapis.com/Instance.
    +     * 
    + * + * string type = 3; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Type of the resource. Use the Unified Resource Type,
    +     * eg. compute.googleapis.com/Instance.
    +     * 
    + * + * string type = 3; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Type of the resource. Use the Unified Resource Type,
    +     * eg. compute.googleapis.com/Instance.
    +     * 
    + * + * string type = 3; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Type of the resource. Use the Unified Resource Type,
    +     * eg. compute.googleapis.com/Instance.
    +     * 
    + * + * string type = 3; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Type of the resource. Use the Unified Resource Type,
    +     * eg. compute.googleapis.com/Instance.
    +     * 
    + * + * string type = 3; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.BackupGcpResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.BackupGcpResource) + private static final com.google.cloud.backupdr.v1.BackupGcpResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.BackupGcpResource(); + } + + public static com.google.cloud.backupdr.v1.BackupGcpResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupGcpResource 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.backupdr.v1.BackupGcpResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupGcpResourceOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupGcpResourceOrBuilder.java new file mode 100644 index 000000000000..46ee765da577 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupGcpResourceOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/backupvault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +public interface BackupGcpResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.BackupGcpResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Name of the Google Cloud resource.
    +   * 
    + * + * string gcp_resourcename = 1; + * + * @return The gcpResourcename. + */ + java.lang.String getGcpResourcename(); + + /** + * + * + *
    +   * Name of the Google Cloud resource.
    +   * 
    + * + * string gcp_resourcename = 1; + * + * @return The bytes for gcpResourcename. + */ + com.google.protobuf.ByteString getGcpResourcenameBytes(); + + /** + * + * + *
    +   * Location of the resource: <region>/<zone>/"global"/"unspecified".
    +   * 
    + * + * string location = 2; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
    +   * Location of the resource: <region>/<zone>/"global"/"unspecified".
    +   * 
    + * + * string location = 2; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
    +   * Type of the resource. Use the Unified Resource Type,
    +   * eg. compute.googleapis.com/Instance.
    +   * 
    + * + * string type = 3; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
    +   * Type of the resource. Use the Unified Resource Type,
    +   * eg. compute.googleapis.com/Instance.
    +   * 
    + * + * string type = 3; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java index a9a82458e6a0..2e33a83e41f0 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java @@ -919,7 +919,55 @@ java.lang.String getLabelsOrDefault( */ boolean getSatisfiesPzi(); + /** + * + * + *
    +   * Output only. Unique identifier of the GCP resource that is being backed
    +   * up.
    +   * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcpResource field is set. + */ + boolean hasGcpResource(); + + /** + * + * + *
    +   * Output only. Unique identifier of the GCP resource that is being backed
    +   * up.
    +   * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcpResource. + */ + com.google.cloud.backupdr.v1.BackupGcpResource getGcpResource(); + + /** + * + * + *
    +   * Output only. Unique identifier of the GCP resource that is being backed
    +   * up.
    +   * 
    + * + * + * .google.cloud.backupdr.v1.BackupGcpResource gcp_resource = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder getGcpResourceOrBuilder(); + com.google.cloud.backupdr.v1.Backup.BackupPropertiesCase getBackupPropertiesCase(); com.google.cloud.backupdr.v1.Backup.PlanInfoCase getPlanInfoCase(); + + com.google.cloud.backupdr.v1.Backup.SourceResourceCase getSourceResourceCase(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java index b0d90c4a33ce..ea0a915558db 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java @@ -112,6 +112,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_backupdr_v1_FetchUsableBackupVaultsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_backupdr_v1_FetchUsableBackupVaultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_backupdr_v1_GetBackupVaultRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -176,6 +184,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_backupdr_v1_GcpResource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_backupdr_v1_GcpResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_BackupGcpResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_BackupGcpResource_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -359,23 +371,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01321.google.cloud.backupdr.v1.BackupApplianceLockInfoH\000\022K\n" + "\021service_lock_info\030\004" + " \001(\0132).google.cloud.backupdr.v1.ServiceLockInfoB\003\340A\003H\000B\020\n" - + "\016ClientLockInfo\"\337\020\n" + + "\016ClientLockInfo\"\274\021\n" + "\006Backup\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\035\n" - + "\013description\030\002 \001(\tB\003\340A\003H\002\210\001\001\0229\n" + + "\013description\030\002 \001(\tB\003\340A\003H\003\210\001\001\0229\n" + "\013create_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\003\210\001\001\0229\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\004\210\001\001\0229\n" + "\013update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\004\210\001\001\022A\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\005\210\001\001\022A\n" + "\006labels\030\005 \003(\0132,.google" + ".cloud.backupdr.v1.Backup.LabelsEntryB\003\340A\001\022I\n" + "\033enforced_retention_end_time\030\006" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\005\210\001\001\0229\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006\210\001\001\0229\n" + "\013expire_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006\210\001\001\022>\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\007\210\001\001\022>\n" + "\020consistency_time\030\t \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\007\210\001\001\022\026\n" - + "\004etag\030\013 \001(\tB\003\340A\001H\010\210\001\001\022:\n" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\010\210\001\001\022\026\n" + + "\004etag\030\013 \001(\tB\003\340A\001H\t\210\001\001\022:\n" + "\005state\030\017 \001(\0162" + "&.google.cloud.backupdr.v1.Backup.StateB\003\340A\003\022@\n\r" + "service_locks\030\021" @@ -395,9 +407,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024gcp_backup_plan_info\030\026 \001(\01322.google.clou" + "d.backupdr.v1.Backup.GCPBackupPlanInfoB\003\340A\003H\001\022 \n" + "\023resource_size_bytes\030\027 \001(\003B\003\340A\003\022\"\n\r" - + "satisfies_pzs\030\030 \001(\010B\006\340A\003\340A\001H\t\210\001\001\022\"\n\r" - + "satisfies_pzi\030\031 \001(\010B\006\340A\003\340A\001H\n" - + "\210\001\001\032\262\001\n" + + "satisfies_pzs\030\030 \001(\010B\006\340A\003\340A\001H\n" + + "\210\001\001\022\"\n\r" + + "satisfies_pzi\030\031 \001(\010B\006\340A\003\340A\001H\013\210\001\001\022H\n" + + "\014gcp_resource\030\037" + + " \001(\0132+.google.cloud.backupdr.v1.BackupGcpResourceB\003\340A\003H\002\032\262\001\n" + "\021GCPBackupPlanInfo\022<\n" + "\013backup_plan\030\001 \001(\tB\'\372A$\n" + "\"backupdr.googleapis.com/BackupPlan\022\033\n" @@ -413,18 +427,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\002\022\014\n" + "\010DELETING\020\003\022\t\n" + "\005ERROR\020\004\022\r\n" - + "\tUPLOADING\020\005\"b\n" - + "\n" + + "\tUPLOADING\020\005\"b\n\n" + "BackupType\022\033\n" + "\027BACKUP_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tSCHEDULED\020\001\022\r\n" + "\tON_DEMAND\020\002\022\031\n" + "\025ON_DEMAND_OPERATIONAL\020\003:\243\001\352A\237\001\n" - + "\036backupdr.googleapis.com/Backup\022lprojects/{project}/loc" - + "ations/{location}/backupVaults/{backupva" - + "ult}/dataSources/{datasource}/backups/{backup}*\007backups2\006backupB\023\n" + + "\036backupdr.googleapis.com/Backup\022lprojects/{project}/locations" + + "/{location}/backupVaults/{backupvault}/d" + + "ataSources/{datasource}/backups/{backup}*\007backups2\006backupB\023\n" + "\021backup_propertiesB\013\n" - + "\tplan_infoB\016\n" + + "\tplan_infoB\021\n" + + "\017source_resourceB\016\n" + "\014_descriptionB\016\n" + "\014_create_timeB\016\n" + "\014_update_timeB\036\n" @@ -435,11 +449,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_satisfies_pzsB\020\n" + "\016_satisfies_pzi\"\364\001\n" + "\030CreateBackupVaultRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\034\n" + + "\006parent\030\001 \001(\tB+\340" + + "A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\034\n" + "\017backup_vault_id\030\002 \001(\tB\003\340A\002\022@\n" - + "\014backup_vault\030\003 \001(" - + "\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n\n" + + "\014backup_vault\030\003" + + " \001(\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\r" + "validate_only\030\005 \001(\010B\003\340A\001\"\361\001\n" + "\027ListBackupVaultsRequest\022;\n" @@ -449,8 +463,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\022<\n" - + "\004view\030\006" - + " \001(\0162).google.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\206\001\n" + + "\004view\030\006 \001(\0162).go" + + "ogle.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\206\001\n" + "\030ListBackupVaultsResponse\022<\n\r" + "backup_vaults\030\001 \003(\0132%.google.cloud.backupdr.v1.BackupVault\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" @@ -465,16 +479,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037FetchUsableBackupVaultsResponse\022<\n\r" + "backup_vaults\030\001 \003(\0132%.google.cloud.backupdr.v1.BackupVault\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"\220\001\n" + + "\013unreachable\030\003 \003(\t\"\216\002\n" + + "\"FetchBackupsForResourceTypeRequest\0226\n" + + "\006parent\030\001 \001(\tB&\340A\002\372A" + + " \022\036backupdr.googleapis.com/Backup\022\032\n\r" + + "resource_type\030\002 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\006 \001(\tB\003\340A\001\0227\n" + + "\004view\030\007 \001(\0162$.google.cloud.backupdr.v1.BackupViewB\003\340A\001\"q\n" + + "#FetchBackupsForResourceTypeResponse\0221\n" + + "\007backups\030\001 \003(\0132 .google.cloud.backupdr.v1.Backup\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\220\001\n" + "\025GetBackupVaultRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#backupdr.googleapis.com/BackupVault\022<\n" - + "\004view\030\002 \001(\0162" - + ").google.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\221\002\n" + + "\004view\030\002 \001(\016" + + "2).google.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\221\002\n" + "\030UpdateBackupVaultRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022@\n" + "\014backup_vault\030\002" - + " \001(\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n\n" + + " \001(\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n" + + "\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\022\022\n" + "\005force\030\005 \001(\010B\003\340A\001\022,\n" @@ -504,8 +531,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"backupdr.googleapis.com/DataSource\"\314\001\n" + "\027UpdateDataSourceRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022>\n" - + "\013data_source\030\002 \001(\0132$." - + "google.cloud.backupdr.v1.DataSourceB\003\340A\002\022\037\n\n" + + "\013data_source\030\002 \001(\0132$" + + ".google.cloud.backupdr.v1.DataSourceB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\r" + "allow_missing\030\004 \001(\010B\003\340A\001\"\342\001\n" + "\022ListBackupsRequest\0226\n" @@ -538,16 +565,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036backupdr.googleapis.com/Backup\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022i\n" - + "#compute_instance_target_environment\030\003" - + " \001(\0132:.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironmentH\000\022R\n" - + "\027disk_target_environment\030\005 \001(\0132/.google." - + "cloud.backupdr.v1.DiskTargetEnvironmentH\000\022_\n" - + "\036region_disk_target_environment\030\006 \001(" - + "\01325.google.cloud.backupdr.v1.RegionDiskTargetEnvironmentH\000\022i\n" - + "#compute_instance_restore_properties\030\004 \001(\0132:.google.cloud.b" - + "ackupdr.v1.ComputeInstanceRestorePropertiesH\001\022R\n" - + "\027disk_restore_properties\030\007 \001(\0132/" - + ".google.cloud.backupdr.v1.DiskRestorePropertiesH\001B\024\n" + + "#compute_instance_target_environment\030\003 \001(\0132:.google.cloud.backupdr" + + ".v1.ComputeInstanceTargetEnvironmentH\000\022R\n" + + "\027disk_target_environment\030\005 \001(\0132/.google" + + ".cloud.backupdr.v1.DiskTargetEnvironmentH\000\022_\n" + + "\036region_disk_target_environment\030\006 \001" + + "(\01325.google.cloud.backupdr.v1.RegionDiskTargetEnvironmentH\000\022i\n" + + "#compute_instance_restore_properties\030\004 \001(\0132:.google.cloud." + + "backupdr.v1.ComputeInstanceRestorePropertiesH\001\022R\n" + + "\027disk_restore_properties\030\007 \001(\0132" + + "/.google.cloud.backupdr.v1.DiskRestorePropertiesH\001B\024\n" + "\022target_environmentB\025\n" + "\023instance_properties\"Z\n" + "\025RestoreBackupResponse\022A\n" @@ -558,6 +585,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013GcpResource\022\030\n" + "\020gcp_resourcename\030\001 \001(\t\022\020\n" + "\010location\030\002 \001(\t\022\014\n" + + "\004type\030\003 \001(\t\"M\n" + + "\021BackupGcpResource\022\030\n" + + "\020gcp_resourcename\030\001 \001(\t\022\020\n" + + "\010location\030\002 \001(\t\022\014\n" + "\004type\030\003 \001(\t*Q\n" + "\021BackupConfigState\022#\n" + "\037BACKUP_CONFIG_STATE_UNSPECIFIED\020\000\022\n\n" @@ -785,8 +816,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceSizeBytes", "SatisfiesPzs", "SatisfiesPzi", + "GcpResource", "BackupProperties", "PlanInfo", + "SourceResource", }); internal_static_google_cloud_backupdr_v1_Backup_GCPBackupPlanInfo_descriptor = internal_static_google_cloud_backupdr_v1_Backup_descriptor.getNestedTypes().get(0); @@ -844,8 +877,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BackupVaults", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_backupdr_v1_GetBackupVaultRequest_descriptor = + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_descriptor, + new java.lang.String[] { + "Parent", "ResourceType", "PageSize", "PageToken", "Filter", "OrderBy", "View", + }); + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_descriptor, + new java.lang.String[] { + "Backups", "NextPageToken", + }); + internal_static_google_cloud_backupdr_v1_GetBackupVaultRequest_descriptor = + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_backupdr_v1_GetBackupVaultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_GetBackupVaultRequest_descriptor, @@ -853,7 +902,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "View", }); internal_static_google_cloud_backupdr_v1_UpdateBackupVaultRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_backupdr_v1_UpdateBackupVaultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_UpdateBackupVaultRequest_descriptor, @@ -866,7 +915,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForceUpdateAccessRestriction", }); internal_static_google_cloud_backupdr_v1_DeleteBackupVaultRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_backupdr_v1_DeleteBackupVaultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_DeleteBackupVaultRequest_descriptor, @@ -880,7 +929,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IgnoreBackupPlanReferences", }); internal_static_google_cloud_backupdr_v1_ListDataSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_backupdr_v1_ListDataSourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_ListDataSourcesRequest_descriptor, @@ -888,7 +937,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_backupdr_v1_ListDataSourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_backupdr_v1_ListDataSourcesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_ListDataSourcesResponse_descriptor, @@ -896,7 +945,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataSources", "NextPageToken", "Unreachable", }); internal_static_google_cloud_backupdr_v1_GetDataSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_backupdr_v1_GetDataSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_GetDataSourceRequest_descriptor, @@ -904,7 +953,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_backupdr_v1_UpdateDataSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_backupdr_v1_UpdateDataSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_UpdateDataSourceRequest_descriptor, @@ -912,7 +961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "DataSource", "RequestId", "AllowMissing", }); internal_static_google_cloud_backupdr_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_backupdr_v1_ListBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_ListBackupsRequest_descriptor, @@ -920,7 +969,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "View", }); internal_static_google_cloud_backupdr_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_backupdr_v1_ListBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_ListBackupsResponse_descriptor, @@ -928,7 +977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Backups", "NextPageToken", "Unreachable", }); internal_static_google_cloud_backupdr_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_backupdr_v1_GetBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_GetBackupRequest_descriptor, @@ -936,7 +985,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "View", }); internal_static_google_cloud_backupdr_v1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_backupdr_v1_UpdateBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_UpdateBackupRequest_descriptor, @@ -944,7 +993,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Backup", "RequestId", }); internal_static_google_cloud_backupdr_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_backupdr_v1_DeleteBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_DeleteBackupRequest_descriptor, @@ -952,7 +1001,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_backupdr_v1_RestoreBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_backupdr_v1_RestoreBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_RestoreBackupRequest_descriptor, @@ -968,7 +1017,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceProperties", }); internal_static_google_cloud_backupdr_v1_RestoreBackupResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_backupdr_v1_RestoreBackupResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_RestoreBackupResponse_descriptor, @@ -976,7 +1025,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetResource", }); internal_static_google_cloud_backupdr_v1_TargetResource_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_backupdr_v1_TargetResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_TargetResource_descriptor, @@ -984,13 +1033,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcpResource", "TargetResourceInfo", }); internal_static_google_cloud_backupdr_v1_GcpResource_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_backupdr_v1_GcpResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_GcpResource_descriptor, new java.lang.String[] { "GcpResourcename", "Location", "Type", }); + internal_static_google_cloud_backupdr_v1_BackupGcpResource_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_backupdr_v1_BackupGcpResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_BackupGcpResource_descriptor, + new java.lang.String[] { + "GcpResourcename", "Location", "Type", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultCloudSqlProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultCloudSqlProto.java index 8b2af12324dc..b6996d990da7 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultCloudSqlProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultCloudSqlProto.java @@ -67,33 +67,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e_installed_version\030\002 \001(\tB\003\340A\003\022=\n\024instan" + "ce_create_time\030\003 \001(\0132\032.google.protobuf.T" + "imestampB\003\340A\003\022\032\n\rinstance_tier\030\005 \001(\tB\003\340A" - + "\003\"\305\001\n CloudSqlInstanceBackupProperties\022\'" + + "\003\"\303\002\n CloudSqlInstanceBackupProperties\022\'" + "\n\032database_installed_version\030\002 \001(\tB\003\340A\003\022" + "\031\n\014final_backup\030\003 \001(\010B\003\340A\003\022A\n\017source_ins" + "tance\030\004 \001(\tB(\340A\003\372A\"\n sqladmin.googleapis" - + ".com/Instance\022\032\n\rinstance_tier\030\006 \001(\tB\003\340A" - + "\003\"\353\001\n-CloudSqlInstanceDataSourceReferenc" - + "eProperties\0226\n\004name\030\001 \001(\tB(\340A\003\372A\"\n sqlad" - + "min.googleapis.com/Instance\022\'\n\032database_" - + "installed_version\030\002 \001(\tB\003\340A\003\022=\n\024instance" - + "_create_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022\032\n\rinstance_tier\030\005 \001(\tB\003\340A\003\"" - + "\315\001\n$CloudSqlInstanceInitializationConfig" - + "\022\\\n\007edition\030\001 \001(\0162F.google.cloud.backupd" - + "r.v1.CloudSqlInstanceInitializationConfi" - + "g.EditionB\003\340A\002\"G\n\007Edition\022\027\n\023EDITION_UNS" - + "PECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\023\n\017ENTERPRISE" - + "_PLUS\020\002\"p\n/CloudSqlInstanceBackupPlanAss" - + "ociationProperties\022=\n\024instance_create_ti" - + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003B\226\002\n\034com.google.cloud.backupdr.v1B\030Back" - + "upvaultCloudSqlProtoP\001Z8cloud.google.com" - + "/go/backupdr/apiv1/backupdrpb;backupdrpb" - + "\252\002\030Google.Cloud.BackupDR.V1\312\002\030Google\\Clo" - + "ud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR" - + "::V1\352AK\n sqladmin.googleapis.com/Instanc" - + "e\022\'projects/{project}/instances/{instanc" - + "e}b\006proto3" + + ".com/Instance\022=\n\024instance_create_time\030\005 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\r" + + "instance_tier\030\006 \001(\tB\003\340A\003\022=\n\024instance_del" + + "ete_time\030\010 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\"\353\001\n-CloudSqlInstanceDataSourceRe" + + "ferenceProperties\0226\n\004name\030\001 \001(\tB(\340A\003\372A\"\n" + + " sqladmin.googleapis.com/Instance\022\'\n\032dat" + + "abase_installed_version\030\002 \001(\tB\003\340A\003\022=\n\024in" + + "stance_create_time\030\003 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\032\n\rinstance_tier\030\005 \001(\t" + + "B\003\340A\003\"\315\001\n$CloudSqlInstanceInitialization" + + "Config\022\\\n\007edition\030\001 \001(\0162F.google.cloud.b" + + "ackupdr.v1.CloudSqlInstanceInitializatio" + + "nConfig.EditionB\003\340A\002\"G\n\007Edition\022\027\n\023EDITI" + + "ON_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\023\n\017ENTE" + + "RPRISE_PLUS\020\002\"p\n/CloudSqlInstanceBackupP" + + "lanAssociationProperties\022=\n\024instance_cre" + + "ate_time\030\001 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003B\226\002\n\034com.google.cloud.backupdr.v1" + + "B\030BackupvaultCloudSqlProtoP\001Z8cloud.goog" + + "le.com/go/backupdr/apiv1/backupdrpb;back" + + "updrpb\252\002\030Google.Cloud.BackupDR.V1\312\002\030Goog" + + "le\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::Ba" + + "ckupDR::V1\352AK\n sqladmin.googleapis.com/I" + + "nstance\022\'projects/{project}/instances/{i" + + "nstance}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -117,7 +120,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_CloudSqlInstanceBackupProperties_descriptor, new java.lang.String[] { - "DatabaseInstalledVersion", "FinalBackup", "SourceInstance", "InstanceTier", + "DatabaseInstalledVersion", + "FinalBackup", + "SourceInstance", + "InstanceCreateTime", + "InstanceTier", + "InstanceDeleteTime", }); internal_static_google_cloud_backupdr_v1_CloudSqlInstanceDataSourceReferenceProperties_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CloudSqlInstanceBackupProperties.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CloudSqlInstanceBackupProperties.java index 0fbe85128dfb..a5525d0b339c 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CloudSqlInstanceBackupProperties.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CloudSqlInstanceBackupProperties.java @@ -68,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties.Builder.class); } + private int bitField0_; public static final int DATABASE_INSTALLED_VERSION_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -205,6 +206,65 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() { } } + public static final int INSTANCE_CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp instanceCreateTime_; + + /** + * + * + *
    +   * Output only. The instance creation timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the instanceCreateTime field is set. + */ + @java.lang.Override + public boolean hasInstanceCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The instance creation timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The instanceCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getInstanceCreateTime() { + return instanceCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : instanceCreateTime_; + } + + /** + * + * + *
    +   * Output only. The instance creation timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getInstanceCreateTimeOrBuilder() { + return instanceCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : instanceCreateTime_; + } + public static final int INSTANCE_TIER_FIELD_NUMBER = 6; @SuppressWarnings("serial") @@ -260,6 +320,65 @@ public com.google.protobuf.ByteString getInstanceTierBytes() { } } + public static final int INSTANCE_DELETE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp instanceDeleteTime_; + + /** + * + * + *
    +   * Output only. The instance delete timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the instanceDeleteTime field is set. + */ + @java.lang.Override + public boolean hasInstanceDeleteTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. The instance delete timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The instanceDeleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getInstanceDeleteTime() { + return instanceDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : instanceDeleteTime_; + } + + /** + * + * + *
    +   * Output only. The instance delete timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getInstanceDeleteTimeOrBuilder() { + return instanceDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : instanceDeleteTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -283,9 +402,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceInstance_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getInstanceCreateTime()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceTier_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, instanceTier_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getInstanceDeleteTime()); + } getUnknownFields().writeTo(output); } @@ -305,9 +430,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceInstance_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInstanceCreateTime()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceTier_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, instanceTier_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getInstanceDeleteTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -327,7 +458,15 @@ public boolean equals(final java.lang.Object obj) { if (!getDatabaseInstalledVersion().equals(other.getDatabaseInstalledVersion())) return false; if (getFinalBackup() != other.getFinalBackup()) return false; if (!getSourceInstance().equals(other.getSourceInstance())) return false; + if (hasInstanceCreateTime() != other.hasInstanceCreateTime()) return false; + if (hasInstanceCreateTime()) { + if (!getInstanceCreateTime().equals(other.getInstanceCreateTime())) return false; + } if (!getInstanceTier().equals(other.getInstanceTier())) return false; + if (hasInstanceDeleteTime() != other.hasInstanceDeleteTime()) return false; + if (hasInstanceDeleteTime()) { + if (!getInstanceDeleteTime().equals(other.getInstanceDeleteTime())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -345,8 +484,16 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFinalBackup()); hash = (37 * hash) + SOURCE_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getSourceInstance().hashCode(); + if (hasInstanceCreateTime()) { + hash = (37 * hash) + INSTANCE_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getInstanceCreateTime().hashCode(); + } hash = (37 * hash) + INSTANCE_TIER_FIELD_NUMBER; hash = (53 * hash) + getInstanceTier().hashCode(); + if (hasInstanceDeleteTime()) { + hash = (37 * hash) + INSTANCE_DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getInstanceDeleteTime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -479,10 +626,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceCreateTimeFieldBuilder(); + getInstanceDeleteTimeFieldBuilder(); + } } @java.lang.Override @@ -492,7 +649,17 @@ public Builder clear() { databaseInstalledVersion_ = ""; finalBackup_ = false; sourceInstance_ = ""; + instanceCreateTime_ = null; + if (instanceCreateTimeBuilder_ != null) { + instanceCreateTimeBuilder_.dispose(); + instanceCreateTimeBuilder_ = null; + } instanceTier_ = ""; + instanceDeleteTime_ = null; + if (instanceDeleteTimeBuilder_ != null) { + instanceDeleteTimeBuilder_.dispose(); + instanceDeleteTimeBuilder_ = null; + } return this; } @@ -540,9 +707,25 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.sourceInstance_ = sourceInstance_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { + result.instanceCreateTime_ = + instanceCreateTimeBuilder_ == null + ? instanceCreateTime_ + : instanceCreateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.instanceTier_ = instanceTier_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.instanceDeleteTime_ = + instanceDeleteTimeBuilder_ == null + ? instanceDeleteTime_ + : instanceDeleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -605,11 +788,17 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.CloudSqlInstanceBackupProp bitField0_ |= 0x00000004; onChanged(); } + if (other.hasInstanceCreateTime()) { + mergeInstanceCreateTime(other.getInstanceCreateTime()); + } if (!other.getInstanceTier().isEmpty()) { instanceTier_ = other.instanceTier_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } + if (other.hasInstanceDeleteTime()) { + mergeInstanceDeleteTime(other.getInstanceDeleteTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -654,12 +843,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 34 + case 42: + { + input.readMessage( + getInstanceCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 case 50: { instanceTier_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 50 + case 66: + { + input.readMessage( + getInstanceDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -987,6 +1190,218 @@ public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Timestamp instanceCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + instanceCreateTimeBuilder_; + + /** + * + * + *
    +     * Output only. The instance creation timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the instanceCreateTime field is set. + */ + public boolean hasInstanceCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Output only. The instance creation timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The instanceCreateTime. + */ + public com.google.protobuf.Timestamp getInstanceCreateTime() { + if (instanceCreateTimeBuilder_ == null) { + return instanceCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : instanceCreateTime_; + } else { + return instanceCreateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The instance creation timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstanceCreateTime(com.google.protobuf.Timestamp value) { + if (instanceCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instanceCreateTime_ = value; + } else { + instanceCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The instance creation timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstanceCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (instanceCreateTimeBuilder_ == null) { + instanceCreateTime_ = builderForValue.build(); + } else { + instanceCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The instance creation timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeInstanceCreateTime(com.google.protobuf.Timestamp value) { + if (instanceCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && instanceCreateTime_ != null + && instanceCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getInstanceCreateTimeBuilder().mergeFrom(value); + } else { + instanceCreateTime_ = value; + } + } else { + instanceCreateTimeBuilder_.mergeFrom(value); + } + if (instanceCreateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The instance creation timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInstanceCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + instanceCreateTime_ = null; + if (instanceCreateTimeBuilder_ != null) { + instanceCreateTimeBuilder_.dispose(); + instanceCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The instance creation timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getInstanceCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getInstanceCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The instance creation timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getInstanceCreateTimeOrBuilder() { + if (instanceCreateTimeBuilder_ != null) { + return instanceCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return instanceCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : instanceCreateTime_; + } + } + + /** + * + * + *
    +     * Output only. The instance creation timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getInstanceCreateTimeFieldBuilder() { + if (instanceCreateTimeBuilder_ == null) { + instanceCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getInstanceCreateTime(), getParentForChildren(), isClean()); + instanceCreateTime_ = null; + } + return instanceCreateTimeBuilder_; + } + private java.lang.Object instanceTier_ = ""; /** @@ -1055,7 +1470,7 @@ public Builder setInstanceTier(java.lang.String value) { throw new NullPointerException(); } instanceTier_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1074,7 +1489,7 @@ public Builder setInstanceTier(java.lang.String value) { */ public Builder clearInstanceTier() { instanceTier_ = getDefaultInstance().getInstanceTier(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1098,11 +1513,223 @@ public Builder setInstanceTierBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); instanceTier_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } + private com.google.protobuf.Timestamp instanceDeleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + instanceDeleteTimeBuilder_; + + /** + * + * + *
    +     * Output only. The instance delete timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the instanceDeleteTime field is set. + */ + public boolean hasInstanceDeleteTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Output only. The instance delete timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The instanceDeleteTime. + */ + public com.google.protobuf.Timestamp getInstanceDeleteTime() { + if (instanceDeleteTimeBuilder_ == null) { + return instanceDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : instanceDeleteTime_; + } else { + return instanceDeleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The instance delete timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstanceDeleteTime(com.google.protobuf.Timestamp value) { + if (instanceDeleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instanceDeleteTime_ = value; + } else { + instanceDeleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The instance delete timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstanceDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (instanceDeleteTimeBuilder_ == null) { + instanceDeleteTime_ = builderForValue.build(); + } else { + instanceDeleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The instance delete timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeInstanceDeleteTime(com.google.protobuf.Timestamp value) { + if (instanceDeleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && instanceDeleteTime_ != null + && instanceDeleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getInstanceDeleteTimeBuilder().mergeFrom(value); + } else { + instanceDeleteTime_ = value; + } + } else { + instanceDeleteTimeBuilder_.mergeFrom(value); + } + if (instanceDeleteTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The instance delete timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInstanceDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000020); + instanceDeleteTime_ = null; + if (instanceDeleteTimeBuilder_ != null) { + instanceDeleteTimeBuilder_.dispose(); + instanceDeleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The instance delete timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getInstanceDeleteTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getInstanceDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The instance delete timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getInstanceDeleteTimeOrBuilder() { + if (instanceDeleteTimeBuilder_ != null) { + return instanceDeleteTimeBuilder_.getMessageOrBuilder(); + } else { + return instanceDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : instanceDeleteTime_; + } + } + + /** + * + * + *
    +     * Output only. The instance delete timestamp.
    +     * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getInstanceDeleteTimeFieldBuilder() { + if (instanceDeleteTimeBuilder_ == null) { + instanceDeleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getInstanceDeleteTime(), getParentForChildren(), isClean()); + instanceDeleteTime_ = null; + } + return instanceDeleteTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CloudSqlInstanceBackupPropertiesOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CloudSqlInstanceBackupPropertiesOrBuilder.java index 69b81d98d108..124a3bbdbbfd 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CloudSqlInstanceBackupPropertiesOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CloudSqlInstanceBackupPropertiesOrBuilder.java @@ -101,6 +101,49 @@ public interface CloudSqlInstanceBackupPropertiesOrBuilder */ com.google.protobuf.ByteString getSourceInstanceBytes(); + /** + * + * + *
    +   * Output only. The instance creation timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the instanceCreateTime field is set. + */ + boolean hasInstanceCreateTime(); + + /** + * + * + *
    +   * Output only. The instance creation timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The instanceCreateTime. + */ + com.google.protobuf.Timestamp getInstanceCreateTime(); + + /** + * + * + *
    +   * Output only. The instance creation timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getInstanceCreateTimeOrBuilder(); + /** * * @@ -128,4 +171,47 @@ public interface CloudSqlInstanceBackupPropertiesOrBuilder * @return The bytes for instanceTier. */ com.google.protobuf.ByteString getInstanceTierBytes(); + + /** + * + * + *
    +   * Output only. The instance delete timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the instanceDeleteTime field is set. + */ + boolean hasInstanceDeleteTime(); + + /** + * + * + *
    +   * Output only. The instance delete timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The instanceDeleteTime. + */ + com.google.protobuf.Timestamp getInstanceDeleteTime(); + + /** + * + * + *
    +   * Output only. The instance delete timestamp.
    +   * 
    + * + * + * .google.protobuf.Timestamp instance_delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getInstanceDeleteTimeOrBuilder(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReference.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReference.java index dde95b946172..caf00f1f8739 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReference.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReference.java @@ -417,6 +417,45 @@ public com.google.cloud.backupdr.v1.DataSourceGcpResourceInfo getDataSourceGcpRe : dataSourceGcpResourceInfo_; } + public static final int TOTAL_STORED_BYTES_FIELD_NUMBER = 8; + private long totalStoredBytes_ = 0L; + + /** + * + * + *
    +   * Output only. Total size of the storage used by all backup resources for the
    +   * referenced datasource.
    +   * 
    + * + * optional int64 total_stored_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the totalStoredBytes field is set. + */ + @java.lang.Override + public boolean hasTotalStoredBytes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Output only. Total size of the storage used by all backup resources for the
    +   * referenced datasource.
    +   * 
    + * + * optional int64 total_stored_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalStoredBytes. + */ + @java.lang.Override + public long getTotalStoredBytes() { + return totalStoredBytes_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -454,6 +493,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getDataSourceGcpResourceInfo()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(8, totalStoredBytes_); + } getUnknownFields().writeTo(output); } @@ -491,6 +533,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, getDataSourceGcpResourceInfo()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, totalStoredBytes_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -525,6 +570,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDataSourceGcpResourceInfo().equals(other.getDataSourceGcpResourceInfo())) return false; } + if (hasTotalStoredBytes() != other.hasTotalStoredBytes()) return false; + if (hasTotalStoredBytes()) { + if (getTotalStoredBytes() != other.getTotalStoredBytes()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -556,6 +605,10 @@ public int hashCode() { hash = (37 * hash) + DATA_SOURCE_GCP_RESOURCE_INFO_FIELD_NUMBER; hash = (53 * hash) + getDataSourceGcpResourceInfo().hashCode(); } + if (hasTotalStoredBytes()) { + hash = (37 * hash) + TOTAL_STORED_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalStoredBytes()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -726,6 +779,7 @@ public Builder clear() { dataSourceGcpResourceInfoBuilder_.dispose(); dataSourceGcpResourceInfoBuilder_ = null; } + totalStoredBytes_ = 0L; return this; } @@ -793,6 +847,10 @@ private void buildPartial0(com.google.cloud.backupdr.v1.DataSourceReference resu : dataSourceGcpResourceInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.totalStoredBytes_ = totalStoredBytes_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -867,6 +925,9 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.DataSourceReference other) if (other.hasDataSourceGcpResourceInfo()) { mergeDataSourceGcpResourceInfo(other.getDataSourceGcpResourceInfo()); } + if (other.hasTotalStoredBytes()) { + setTotalStoredBytes(other.getTotalStoredBytes()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -937,6 +998,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 64: + { + totalStoredBytes_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2018,6 +2085,86 @@ public Builder clearDataSourceGcpResourceInfo() { return dataSourceGcpResourceInfoBuilder_; } + private long totalStoredBytes_; + + /** + * + * + *
    +     * Output only. Total size of the storage used by all backup resources for the
    +     * referenced datasource.
    +     * 
    + * + * optional int64 total_stored_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the totalStoredBytes field is set. + */ + @java.lang.Override + public boolean hasTotalStoredBytes() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +     * Output only. Total size of the storage used by all backup resources for the
    +     * referenced datasource.
    +     * 
    + * + * optional int64 total_stored_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalStoredBytes. + */ + @java.lang.Override + public long getTotalStoredBytes() { + return totalStoredBytes_; + } + + /** + * + * + *
    +     * Output only. Total size of the storage used by all backup resources for the
    +     * referenced datasource.
    +     * 
    + * + * optional int64 total_stored_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The totalStoredBytes to set. + * @return This builder for chaining. + */ + public Builder setTotalStoredBytes(long value) { + + totalStoredBytes_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Total size of the storage used by all backup resources for the
    +     * referenced datasource.
    +     * 
    + * + * optional int64 total_stored_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTotalStoredBytes() { + bitField0_ = (bitField0_ & ~0x00000080); + totalStoredBytes_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceOrBuilder.java index 8145ecf52ffc..c4d3052a284f 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceOrBuilder.java @@ -258,4 +258,34 @@ public interface DataSourceReferenceOrBuilder */ com.google.cloud.backupdr.v1.DataSourceGcpResourceInfoOrBuilder getDataSourceGcpResourceInfoOrBuilder(); + + /** + * + * + *
    +   * Output only. Total size of the storage used by all backup resources for the
    +   * referenced datasource.
    +   * 
    + * + * optional int64 total_stored_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the totalStoredBytes field is set. + */ + boolean hasTotalStoredBytes(); + + /** + * + * + *
    +   * Output only. Total size of the storage used by all backup resources for the
    +   * referenced datasource.
    +   * 
    + * + * optional int64 total_stored_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalStoredBytes. + */ + long getTotalStoredBytes(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceProto.java index 4cef7af33872..c8568aab851d 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceProto.java @@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_backupdr_v1_GetDataSourceReferenceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_backupdr_v1_GetDataSourceReferenceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_backupdr_v1_FetchDataSourceReferencesForResourceTypeRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -66,7 +74,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "erence.proto\022\030google.cloud.backupdr.v1\032\037" + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032*google/cloud/backupdr/v1/backupvault.proto\0323google/cloud/bac" - + "kupdr/v1/backupvault_cloudsql.proto\032\037google/protobuf/timestamp.proto\"\232\005\n" + + "kupdr/v1/backupvault_cloudsql.proto\032\037google/protobuf/timestamp.proto\"\327\005\n" + "\023DataSourceReference\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022?\n" + "\013data_source\030\002 \001(\tB*\340A\003\372A$\n" @@ -77,43 +85,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030data_source_backup_count\030\005 \001(\003B\003\340A\003\022a\n" + "\036data_source_backup_config_info\030\006 \001(\013" + "24.google.cloud.backupdr.v1.DataSourceBackupConfigInfoB\003\340A\003\022_\n" - + "\035data_source_gcp_resource_info\030\007 \001(\01323.google.cloud.backup" - + "dr.v1.DataSourceGcpResourceInfoB\003\340A\003:\262\001\352A\256\001\n" - + "+backupdr.googleapis.com/DataSourceReference\022Tprojects/{project}/locations/{" - + "location}/dataSourceReferences/{data_sou" - + "rce_reference}*\024dataSourceReferences2\023dataSourceReference\"\312\001\n" + + "\035data_source_gcp_resource_info\030\007" + + " \001(\01323.google.cloud.backupdr.v1.DataSourceGcpResourceInfoB\003\340A\003\022$\n" + + "\022total_stored_bytes\030\010" + + " \001(\003B\003\340A\003H\000\210\001\001:\262\001\352A\256\001\n" + + "+backupdr.googleapis.com/DataSourceReference\022Tprojects/{project}/locations/{lo" + + "cation}/dataSourceReferences/{data_sourc" + + "e_reference}*\024dataSourceReferences2\023dataSourceReferenceB\025\n" + + "\023_total_stored_bytes\"\312\001\n" + "\032DataSourceBackupConfigInfo\022Z\n" - + "\021last_backup_state\030\001 \001(\0162:.go" - + "ogle.cloud.backupdr.v1.BackupConfigInfo.LastBackupStateB\003\340A\003\022P\n" + + "\021last_backup_state\030\001 \001(\0162:.google.cloud.backupdr" + + ".v1.BackupConfigInfo.LastBackupStateB\003\340A\003\022P\n" + "\'last_successful_backup_consistency_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\362\001\n" + "\031DataSourceGcpResourceInfo\022\035\n" + "\020gcp_resourcename\030\001 \001(\tB\003\340A\003\022\021\n" + "\004type\030\002 \001(\tB\003\340A\003\022\025\n" + "\010location\030\003 \001(\tB\003\340A\003\022u\n" - + "\035cloud_sql_instance_properties\030\004" - + " \001(\0132G.google.cloud.backupdr.v1.CloudSql" - + "InstanceDataSourceReferencePropertiesB\003\340A\003H\000B\025\n" + + "\035cloud_sql_instance_properties\030\004 \001(\0132G.google.cloud" + + ".backupdr.v1.CloudSqlInstanceDataSourceReferencePropertiesB\003\340A\003H\000B\025\n" + "\023resource_properties\"b\n" + "\035GetDataSourceReferenceRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+backupdr.googleapis.com/DataSourceReference\"\357\001\n" + + "+backupdr.googleapis.com/DataSourceReference\"\303\001\n" + + "\037ListDataSourceReferencesRequest\022C\n" + + "\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\022+backupdr.googleapis.com/DataSourceReference\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\"\237\001\n" + + " ListDataSourceReferencesResponse\022M\n" + + "\026data_source_references\030\001" + + " \003(\0132-.google.cloud.backupdr.v1.DataSourceReference\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\357\001\n" + "/FetchDataSourceReferencesForResourceTypeRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002" - + "\372A-\022+backupdr.googleapis.com/DataSourceReference\022\032\n\r" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+backupdr.googleapis.com/DataSourceReference\022\032\n\r" + "resource_type\030\002 \001(\tB\003\340A\002\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\006 \001(\tB\003\340A\001\"\232\001\n" + "0FetchDataSourceReferencesForResourceTypeResponse\022M\n" - + "\026data_source_references\030\001" - + " \003(\0132-.google.cloud.backupdr.v1.DataSourceReference\022\027\n" + + "\026data_source_references\030\001 \003(\0132-.go" + + "ogle.cloud.backupdr.v1.DataSourceReference\022\027\n" + "\017next_page_token\030\002 \001(\tB\310\001\n" - + "\034com.google.cloud.backupdr.v1B\030DataSourceReferenceProtoP\001Z8cloud.googl" - + "e.com/go/backupdr/apiv1/backupdrpb;backu" - + "pdrpb\252\002\030Google.Cloud.BackupDR.V1\312\002\030Googl" - + "e\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1b\006proto3" + + "\034com.google.cloud.backupdr.v1B\030DataSourceReferenc" + + "eProtoP\001Z8cloud.google.com/go/backupdr/a" + + "piv1/backupdrpb;backupdrpb\252\002\030Google.Clou" + + "d.BackupDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1" + + "\352\002\033Google::Cloud::BackupDR::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -138,6 +162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataSourceBackupCount", "DataSourceBackupConfigInfo", "DataSourceGcpResourceInfo", + "TotalStoredBytes", }); internal_static_google_cloud_backupdr_v1_DataSourceBackupConfigInfo_descriptor = getDescriptor().getMessageTypes().get(1); @@ -167,8 +192,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_cloud_backupdr_v1_FetchDataSourceReferencesForResourceTypeRequest_descriptor = + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_descriptor, + new java.lang.String[] { + "DataSourceReferences", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_backupdr_v1_FetchDataSourceReferencesForResourceTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_backupdr_v1_FetchDataSourceReferencesForResourceTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_FetchDataSourceReferencesForResourceTypeRequest_descriptor, @@ -176,7 +217,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ResourceType", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_backupdr_v1_FetchDataSourceReferencesForResourceTypeResponse_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_backupdr_v1_FetchDataSourceReferencesForResourceTypeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_FetchDataSourceReferencesForResourceTypeResponse_descriptor, diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeRequest.java new file mode 100644 index 000000000000..704f915e8f9c --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeRequest.java @@ -0,0 +1,1787 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/backupvault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +/** + * + * + *
    + * Request for the FetchBackupsForResourceType method.
    + * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest} + */ +public final class FetchBackupsForResourceTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) + FetchBackupsForResourceTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FetchBackupsForResourceTypeRequest.newBuilder() to construct. + private FetchBackupsForResourceTypeRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchBackupsForResourceTypeRequest() { + parent_ = ""; + resourceType_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchBackupsForResourceTypeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.class, + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. Datasources are the parent resource for the backups.
    +   * Format:
    +   * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
    +   * 
    + * + * + * 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. Datasources are the parent resource for the backups.
    +   * Format:
    +   * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
    +   * 
    + * + * + * 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 RESOURCE_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceType_ = ""; + + /** + * + * + *
    +   * Required. The type of the GCP resource.
    +   * Ex: sqladmin.googleapis.com/Instance
    +   * 
    + * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + 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(); + resourceType_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The type of the GCP resource.
    +   * Ex: sqladmin.googleapis.com/Instance
    +   * 
    + * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
    +   * Optional. The maximum number of Backups to return. The service may
    +   * return fewer than this value. If unspecified, at most 50
    +   * Backups will be returned. The maximum value is 100; values
    +   * above 100 will be coerced to 100.
    +   * 
    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +   * Optional. A page token, received from a previous call of
    +   * `FetchBackupsForResourceType`.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `FetchBackupsForResourceType` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 4 [(.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. A page token, received from a previous call of
    +   * `FetchBackupsForResourceType`.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `FetchBackupsForResourceType` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 4 [(.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 FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. A filter expression that filters the results fetched in the
    +   * response. The expression must specify the field name, a comparison
    +   * operator, and the value that you want to use for filtering. Supported
    +   * fields:
    +   * 
    + * + * 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. A filter expression that filters the results fetched in the
    +   * response. The expression must specify the field name, a comparison
    +   * operator, and the value that you want to use for filtering. Supported
    +   * fields:
    +   * 
    + * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending.
    +   * 
    + * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending.
    +   * 
    + * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 7; + private int view_ = 0; + + /** + * + * + *
    +   * Optional. This parameter is used to specify the view of the backup.
    +   * If not specified, the default view is BASIC.
    +   * 
    + * + * .google.cloud.backupdr.v1.BackupView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
    +   * Optional. This parameter is used to specify the view of the backup.
    +   * If not specified, the default view is BASIC.
    +   * 
    + * + * .google.cloud.backupdr.v1.BackupView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupView getView() { + com.google.cloud.backupdr.v1.BackupView result = + com.google.cloud.backupdr.v1.BackupView.forNumber(view_); + return result == null ? com.google.cloud.backupdr.v1.BackupView.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceType_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); + } + if (view_ != com.google.cloud.backupdr.v1.BackupView.BACKUP_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(7, view_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceType_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); + } + if (view_ != com.google.cloud.backupdr.v1.BackupView.BACKUP_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, view_); + } + 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.backupdr.v1.FetchBackupsForResourceTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest other = + (com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getResourceType().equals(other.getResourceType())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (view_ != other.view_) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest 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.backupdr.v1.FetchBackupsForResourceTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest 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.backupdr.v1.FetchBackupsForResourceTypeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request for the FetchBackupsForResourceType method.
    +   * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.class, + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + resourceType_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest build() { + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest buildPartial() { + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest result = + new com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.view_ = view_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) { + return mergeFrom((com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest other) { + if (other + == com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + 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: + { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + 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. Datasources are the parent resource for the backups.
    +     * Format:
    +     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
    +     * 
    + * + * + * 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. Datasources are the parent resource for the backups.
    +     * Format:
    +     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
    +     * 
    + * + * + * 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. Datasources are the parent resource for the backups.
    +     * Format:
    +     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
    +     * 
    + * + * + * 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. Datasources are the parent resource for the backups.
    +     * Format:
    +     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
    +     * 
    + * + * + * 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. Datasources are the parent resource for the backups.
    +     * Format:
    +     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
    +     * 
    + * + * + * 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 resourceType_ = ""; + + /** + * + * + *
    +     * Required. The type of the GCP resource.
    +     * Ex: sqladmin.googleapis.com/Instance
    +     * 
    + * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The type of the GCP resource.
    +     * Ex: sqladmin.googleapis.com/Instance
    +     * 
    + * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The type of the GCP resource.
    +     * Ex: sqladmin.googleapis.com/Instance
    +     * 
    + * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The type of the GCP resource.
    +     * Ex: sqladmin.googleapis.com/Instance
    +     * 
    + * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = getDefaultInstance().getResourceType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The type of the GCP resource.
    +     * Ex: sqladmin.googleapis.com/Instance
    +     * 
    + * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
    +     * Optional. The maximum number of Backups to return. The service may
    +     * return fewer than this value. If unspecified, at most 50
    +     * Backups will be returned. The maximum value is 100; values
    +     * above 100 will be coerced to 100.
    +     * 
    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of Backups to return. The service may
    +     * return fewer than this value. If unspecified, at most 50
    +     * Backups will be returned. The maximum value is 100; values
    +     * above 100 will be coerced to 100.
    +     * 
    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The maximum number of Backups to return. The service may
    +     * return fewer than this value. If unspecified, at most 50
    +     * Backups will be returned. The maximum value is 100; values
    +     * above 100 will be coerced to 100.
    +     * 
    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +     * Optional. A page token, received from a previous call of
    +     * `FetchBackupsForResourceType`.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `FetchBackupsForResourceType` must match
    +     * the call that provided the page token.
    +     * 
    + * + * string page_token = 4 [(.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. A page token, received from a previous call of
    +     * `FetchBackupsForResourceType`.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `FetchBackupsForResourceType` must match
    +     * the call that provided the page token.
    +     * 
    + * + * string page_token = 4 [(.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. A page token, received from a previous call of
    +     * `FetchBackupsForResourceType`.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `FetchBackupsForResourceType` must match
    +     * the call that provided the page token.
    +     * 
    + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A page token, received from a previous call of
    +     * `FetchBackupsForResourceType`.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `FetchBackupsForResourceType` must match
    +     * the call that provided the page token.
    +     * 
    + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A page token, received from a previous call of
    +     * `FetchBackupsForResourceType`.
    +     * Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `FetchBackupsForResourceType` must match
    +     * the call that provided the page token.
    +     * 
    + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. A filter expression that filters the results fetched in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering. Supported
    +     * fields:
    +     * 
    + * + * 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. A filter expression that filters the results fetched in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering. Supported
    +     * fields:
    +     * 
    + * + * 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. A filter expression that filters the results fetched in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering. Supported
    +     * fields:
    +     * 
    + * + * 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. A filter expression that filters the results fetched in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering. Supported
    +     * fields:
    +     * 
    + * + * 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. A filter expression that filters the results fetched in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering. Supported
    +     * fields:
    +     * 
    + * + * 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; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     * 
    + * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     * 
    + * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     * 
    + * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     * 
    + * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     * 
    + * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int view_ = 0; + + /** + * + * + *
    +     * Optional. This parameter is used to specify the view of the backup.
    +     * If not specified, the default view is BASIC.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
    +     * Optional. This parameter is used to specify the view of the backup.
    +     * If not specified, the default view is BASIC.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This parameter is used to specify the view of the backup.
    +     * If not specified, the default view is BASIC.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupView getView() { + com.google.cloud.backupdr.v1.BackupView result = + com.google.cloud.backupdr.v1.BackupView.forNumber(view_); + return result == null ? com.google.cloud.backupdr.v1.BackupView.UNRECOGNIZED : result; + } + + /** + * + * + *
    +     * Optional. This parameter is used to specify the view of the backup.
    +     * If not specified, the default view is BASIC.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.backupdr.v1.BackupView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This parameter is used to specify the view of the backup.
    +     * If not specified, the default view is BASIC.
    +     * 
    + * + * + * .google.cloud.backupdr.v1.BackupView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000040); + view_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) + private static final com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest(); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchBackupsForResourceTypeRequest 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.backupdr.v1.FetchBackupsForResourceTypeRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeRequestOrBuilder.java new file mode 100644 index 000000000000..d1cb3ba5b0dc --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeRequestOrBuilder.java @@ -0,0 +1,232 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/backupvault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +public interface FetchBackupsForResourceTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Datasources are the parent resource for the backups.
    +   * Format:
    +   * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. Datasources are the parent resource for the backups.
    +   * Format:
    +   * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The type of the GCP resource.
    +   * Ex: sqladmin.googleapis.com/Instance
    +   * 
    + * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceType. + */ + java.lang.String getResourceType(); + + /** + * + * + *
    +   * Required. The type of the GCP resource.
    +   * Ex: sqladmin.googleapis.com/Instance
    +   * 
    + * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceType. + */ + com.google.protobuf.ByteString getResourceTypeBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of Backups to return. The service may
    +   * return fewer than this value. If unspecified, at most 50
    +   * Backups will be returned. The maximum value is 100; values
    +   * above 100 will be coerced to 100.
    +   * 
    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous call of
    +   * `FetchBackupsForResourceType`.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `FetchBackupsForResourceType` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous call of
    +   * `FetchBackupsForResourceType`.
    +   * Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `FetchBackupsForResourceType` must match
    +   * the call that provided the page token.
    +   * 
    + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. A filter expression that filters the results fetched in the
    +   * response. The expression must specify the field name, a comparison
    +   * operator, and the value that you want to use for filtering. Supported
    +   * fields:
    +   * 
    + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. A filter expression that filters the results fetched in the
    +   * response. The expression must specify the field name, a comparison
    +   * operator, and the value that you want to use for filtering. Supported
    +   * fields:
    +   * 
    + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending.
    +   * 
    + * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending.
    +   * 
    + * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. This parameter is used to specify the view of the backup.
    +   * If not specified, the default view is BASIC.
    +   * 
    + * + * .google.cloud.backupdr.v1.BackupView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
    +   * Optional. This parameter is used to specify the view of the backup.
    +   * If not specified, the default view is BASIC.
    +   * 
    + * + * .google.cloud.backupdr.v1.BackupView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.backupdr.v1.BackupView getView(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeResponse.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeResponse.java new file mode 100644 index 000000000000..47b6a0da6319 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeResponse.java @@ -0,0 +1,1165 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/backupvault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +/** + * + * + *
    + * Response for the FetchBackupsForResourceType method.
    + * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse} + */ +public final class FetchBackupsForResourceTypeResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) + FetchBackupsForResourceTypeResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FetchBackupsForResourceTypeResponse.newBuilder() to construct. + private FetchBackupsForResourceTypeResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchBackupsForResourceTypeResponse() { + backups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchBackupsForResourceTypeResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.class, + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.Builder.class); + } + + public static final int BACKUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List backups_; + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List getBackupsList() { + return backups_; + } + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List + getBackupsOrBuilderList() { + return backups_; + } + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + @java.lang.Override + public int getBackupsCount() { + return backups_.size(); + } + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.Backup getBackups(int index) { + return backups_.get(index); + } + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + return backups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + 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 < backups_.size(); i++) { + output.writeMessage(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < backups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.backupdr.v1.FetchBackupsForResourceTypeResponse)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse other = + (com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) obj; + + if (!getBackupsList().equals(other.getBackupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getBackupsCount() > 0) { + hash = (37 * hash) + BACKUPS_FIELD_NUMBER; + hash = (53 * hash) + getBackupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse 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.backupdr.v1.FetchBackupsForResourceTypeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse 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.backupdr.v1.FetchBackupsForResourceTypeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response for the FetchBackupsForResourceType method.
    +   * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.class, + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + } else { + backups_ = null; + backupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_FetchBackupsForResourceTypeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse build() { + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse buildPartial() { + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse result = + new com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse result) { + if (backupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backups_ = java.util.Collections.unmodifiableList(backups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backups_ = backups_; + } else { + result.backups_ = backupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) { + return mergeFrom((com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse other) { + if (other + == com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.getDefaultInstance()) + return this; + if (backupsBuilder_ == null) { + if (!other.backups_.isEmpty()) { + if (backups_.isEmpty()) { + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackupsIsMutable(); + backups_.addAll(other.backups_); + } + onChanged(); + } + } else { + if (!other.backups_.isEmpty()) { + if (backupsBuilder_.isEmpty()) { + backupsBuilder_.dispose(); + backupsBuilder_ = null; + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + backupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupsFieldBuilder() + : null; + } else { + backupsBuilder_.addAllMessages(other.backups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.backupdr.v1.Backup m = + input.readMessage( + com.google.cloud.backupdr.v1.Backup.parser(), extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List backups_ = + java.util.Collections.emptyList(); + + private void ensureBackupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backups_ = new java.util.ArrayList(backups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.backupdr.v1.Backup, + com.google.cloud.backupdr.v1.Backup.Builder, + com.google.cloud.backupdr.v1.BackupOrBuilder> + backupsBuilder_; + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public java.util.List getBackupsList() { + if (backupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backups_); + } else { + return backupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public int getBackupsCount() { + if (backupsBuilder_ == null) { + return backups_.size(); + } else { + return backupsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public com.google.cloud.backupdr.v1.Backup getBackups(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public Builder setBackups(int index, com.google.cloud.backupdr.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.set(index, value); + onChanged(); + } else { + backupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public Builder setBackups( + int index, com.google.cloud.backupdr.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.set(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public Builder addBackups(com.google.cloud.backupdr.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(value); + onChanged(); + } else { + backupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public Builder addBackups(int index, com.google.cloud.backupdr.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(index, value); + onChanged(); + } else { + backupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public Builder addBackups(com.google.cloud.backupdr.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public Builder addBackups( + int index, com.google.cloud.backupdr.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public Builder addAllBackups( + java.lang.Iterable values) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_); + onChanged(); + } else { + backupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public Builder clearBackups() { + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public Builder removeBackups(int index) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.remove(index); + onChanged(); + } else { + backupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public com.google.cloud.backupdr.v1.Backup.Builder getBackupsBuilder(int index) { + return getBackupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public com.google.cloud.backupdr.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public java.util.List + getBackupsOrBuilderList() { + if (backupsBuilder_ != null) { + return backupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backups_); + } + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public com.google.cloud.backupdr.v1.Backup.Builder addBackupsBuilder() { + return getBackupsFieldBuilder() + .addBuilder(com.google.cloud.backupdr.v1.Backup.getDefaultInstance()); + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public com.google.cloud.backupdr.v1.Backup.Builder addBackupsBuilder(int index) { + return getBackupsFieldBuilder() + .addBuilder(index, com.google.cloud.backupdr.v1.Backup.getDefaultInstance()); + } + + /** + * + * + *
    +     * The Backups from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + public java.util.List getBackupsBuilderList() { + return getBackupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.backupdr.v1.Backup, + com.google.cloud.backupdr.v1.Backup.Builder, + com.google.cloud.backupdr.v1.BackupOrBuilder> + getBackupsFieldBuilder() { + if (backupsBuilder_ == null) { + backupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.backupdr.v1.Backup, + com.google.cloud.backupdr.v1.Backup.Builder, + com.google.cloud.backupdr.v1.BackupOrBuilder>( + backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + backups_ = null; + } + return backupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) + private static final com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse(); + } + + public static com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchBackupsForResourceTypeResponse 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.backupdr.v1.FetchBackupsForResourceTypeResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeResponseOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeResponseOrBuilder.java new file mode 100644 index 000000000000..cdf4473e5d72 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/FetchBackupsForResourceTypeResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/backupvault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +public interface FetchBackupsForResourceTypeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + java.util.List getBackupsList(); + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + com.google.cloud.backupdr.v1.Backup getBackups(int index); + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + int getBackupsCount(); + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + java.util.List getBackupsOrBuilderList(); + + /** + * + * + *
    +   * The Backups from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.Backup backups = 1; + */ + com.google.cloud.backupdr.v1.BackupOrBuilder getBackupsOrBuilder(int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesRequest.java new file mode 100644 index 000000000000..e3dddabcaa92 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesRequest.java @@ -0,0 +1,1463 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/datasourcereference.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +/** + * + * + *
    + * Request for the ListDataSourceReferences method.
    + * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.ListDataSourceReferencesRequest} + */ +public final class ListDataSourceReferencesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListDataSourceReferencesRequest) + ListDataSourceReferencesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDataSourceReferencesRequest.newBuilder() to construct. + private ListDataSourceReferencesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataSourceReferencesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataSourceReferencesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest.class, + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource name.
    +   * Format: projects/{project}/locations/{location}
    +   * 
    + * + * + * 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 name.
    +   * Format: projects/{project}/locations/{location}
    +   * 
    + * + * + * 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. The maximum number of DataSourceReferences to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * DataSourceReferences will be returned. The maximum value is 100; values
    +   * above 100 will be coerced to 100.
    +   * 
    + * + * 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. A page token, received from a previous `ListDataSourceReferences`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListDataSourceReferences` must match the call that provided the page
    +   * token.
    +   * 
    + * + * 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. A page token, received from a previous `ListDataSourceReferences`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListDataSourceReferences` must match the call that provided the page
    +   * token.
    +   * 
    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. A filter expression that filters the results listed in the
    +   * response. The expression must specify the field name, a comparison
    +   * operator, and the value that you want to use for filtering.
    +   *
    +   * The following field and operator combinations are supported:
    +   *
    +   * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
    +   * * data_source_gcp_resource_info.type with `=`, `!=`
    +   * 
    + * + * string filter = 4 [(.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. A filter expression that filters the results listed in the
    +   * response. The expression must specify the field name, a comparison
    +   * operator, and the value that you want to use for filtering.
    +   *
    +   * The following field and operator combinations are supported:
    +   *
    +   * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
    +   * * data_source_gcp_resource_info.type with `=`, `!=`
    +   * 
    + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending.
    +   *
    +   * Supported fields:
    +   *
    +   * * data_source
    +   * * data_source_gcp_resource_info.gcp_resourcename
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending.
    +   *
    +   * Supported fields:
    +   *
    +   * * data_source
    +   * * data_source_gcp_resource_info.gcp_resourcename
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + 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.backupdr.v1.ListDataSourceReferencesRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest other = + (com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest 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.backupdr.v1.ListDataSourceReferencesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest 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.backupdr.v1.ListDataSourceReferencesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request for the ListDataSourceReferences method.
    +   * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.ListDataSourceReferencesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListDataSourceReferencesRequest) + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest.class, + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest build() { + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest buildPartial() { + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest result = + new com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest) { + return mergeFrom((com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest other) { + if (other + == com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource name.
    +     * Format: projects/{project}/locations/{location}
    +     * 
    + * + * + * 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 name.
    +     * Format: projects/{project}/locations/{location}
    +     * 
    + * + * + * 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 name.
    +     * Format: projects/{project}/locations/{location}
    +     * 
    + * + * + * 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 name.
    +     * Format: projects/{project}/locations/{location}
    +     * 
    + * + * + * 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 name.
    +     * Format: projects/{project}/locations/{location}
    +     * 
    + * + * + * 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. The maximum number of DataSourceReferences to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * DataSourceReferences will be returned. The maximum value is 100; values
    +     * above 100 will be coerced to 100.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of DataSourceReferences to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * DataSourceReferences will be returned. The maximum value is 100; values
    +     * above 100 will be coerced to 100.
    +     * 
    + * + * 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. The maximum number of DataSourceReferences to return. The service
    +     * may return fewer than this value. If unspecified, at most 50
    +     * DataSourceReferences will be returned. The maximum value is 100; values
    +     * above 100 will be coerced to 100.
    +     * 
    + * + * 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. A page token, received from a previous `ListDataSourceReferences`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListDataSourceReferences` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDataSourceReferences`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListDataSourceReferences` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDataSourceReferences`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListDataSourceReferences` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDataSourceReferences`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListDataSourceReferences` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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. A page token, received from a previous `ListDataSourceReferences`
    +     * call. Provide this to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided to
    +     * `ListDataSourceReferences` must match the call that provided the page
    +     * token.
    +     * 
    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. A filter expression that filters the results listed in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering.
    +     *
    +     * The following field and operator combinations are supported:
    +     *
    +     * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
    +     * * data_source_gcp_resource_info.type with `=`, `!=`
    +     * 
    + * + * string filter = 4 [(.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. A filter expression that filters the results listed in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering.
    +     *
    +     * The following field and operator combinations are supported:
    +     *
    +     * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
    +     * * data_source_gcp_resource_info.type with `=`, `!=`
    +     * 
    + * + * string filter = 4 [(.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. A filter expression that filters the results listed in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering.
    +     *
    +     * The following field and operator combinations are supported:
    +     *
    +     * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
    +     * * data_source_gcp_resource_info.type with `=`, `!=`
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A filter expression that filters the results listed in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering.
    +     *
    +     * The following field and operator combinations are supported:
    +     *
    +     * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
    +     * * data_source_gcp_resource_info.type with `=`, `!=`
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A filter expression that filters the results listed in the
    +     * response. The expression must specify the field name, a comparison
    +     * operator, and the value that you want to use for filtering.
    +     *
    +     * The following field and operator combinations are supported:
    +     *
    +     * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
    +     * * data_source_gcp_resource_info.type with `=`, `!=`
    +     * 
    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     *
    +     * Supported fields:
    +     *
    +     * * data_source
    +     * * data_source_gcp_resource_info.gcp_resourcename
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     *
    +     * Supported fields:
    +     *
    +     * * data_source
    +     * * data_source_gcp_resource_info.gcp_resourcename
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     *
    +     * Supported fields:
    +     *
    +     * * data_source
    +     * * data_source_gcp_resource_info.gcp_resourcename
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     *
    +     * Supported fields:
    +     *
    +     * * data_source
    +     * * data_source_gcp_resource_info.gcp_resourcename
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A comma-separated list of fields to order by, sorted in ascending
    +     * order. Use "desc" after a field name for descending.
    +     *
    +     * Supported fields:
    +     *
    +     * * data_source
    +     * * data_source_gcp_resource_info.gcp_resourcename
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListDataSourceReferencesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListDataSourceReferencesRequest) + private static final com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest(); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataSourceReferencesRequest 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.backupdr.v1.ListDataSourceReferencesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesRequestOrBuilder.java new file mode 100644 index 000000000000..c6443f791cee --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesRequestOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/datasourcereference.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +public interface ListDataSourceReferencesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListDataSourceReferencesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource name.
    +   * Format: projects/{project}/locations/{location}
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource name.
    +   * Format: projects/{project}/locations/{location}
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of DataSourceReferences to return. The service
    +   * may return fewer than this value. If unspecified, at most 50
    +   * DataSourceReferences will be returned. The maximum value is 100; values
    +   * above 100 will be coerced to 100.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListDataSourceReferences`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListDataSourceReferences` must match the call that provided the page
    +   * token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous `ListDataSourceReferences`
    +   * call. Provide this to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided to
    +   * `ListDataSourceReferences` must match the call that provided the page
    +   * token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. A filter expression that filters the results listed in the
    +   * response. The expression must specify the field name, a comparison
    +   * operator, and the value that you want to use for filtering.
    +   *
    +   * The following field and operator combinations are supported:
    +   *
    +   * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
    +   * * data_source_gcp_resource_info.type with `=`, `!=`
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. A filter expression that filters the results listed in the
    +   * response. The expression must specify the field name, a comparison
    +   * operator, and the value that you want to use for filtering.
    +   *
    +   * The following field and operator combinations are supported:
    +   *
    +   * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
    +   * * data_source_gcp_resource_info.type with `=`, `!=`
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending.
    +   *
    +   * Supported fields:
    +   *
    +   * * data_source
    +   * * data_source_gcp_resource_info.gcp_resourcename
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. A comma-separated list of fields to order by, sorted in ascending
    +   * order. Use "desc" after a field name for descending.
    +   *
    +   * Supported fields:
    +   *
    +   * * data_source
    +   * * data_source_gcp_resource_info.gcp_resourcename
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesResponse.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesResponse.java new file mode 100644 index 000000000000..f335a413d273 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesResponse.java @@ -0,0 +1,1487 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/datasourcereference.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +/** + * + * + *
    + * Response for the ListDataSourceReferences method.
    + * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.ListDataSourceReferencesResponse} + */ +public final class ListDataSourceReferencesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListDataSourceReferencesResponse) + ListDataSourceReferencesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDataSourceReferencesResponse.newBuilder() to construct. + private ListDataSourceReferencesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataSourceReferencesResponse() { + dataSourceReferences_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataSourceReferencesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse.class, + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse.Builder.class); + } + + public static final int DATA_SOURCE_REFERENCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataSourceReferences_; + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + @java.lang.Override + public java.util.List + getDataSourceReferencesList() { + return dataSourceReferences_; + } + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + @java.lang.Override + public java.util.List + getDataSourceReferencesOrBuilderList() { + return dataSourceReferences_; + } + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + @java.lang.Override + public int getDataSourceReferencesCount() { + return dataSourceReferences_.size(); + } + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReferences(int index) { + return dataSourceReferences_.get(index); + } + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.DataSourceReferenceOrBuilder getDataSourceReferencesOrBuilder( + int index) { + return dataSourceReferences_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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; + } + } + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * 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(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * 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); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * 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 < dataSourceReferences_.size(); i++) { + output.writeMessage(1, dataSourceReferences_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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 < dataSourceReferences_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataSourceReferences_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.backupdr.v1.ListDataSourceReferencesResponse)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse other = + (com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse) obj; + + if (!getDataSourceReferencesList().equals(other.getDataSourceReferencesList())) 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 (getDataSourceReferencesCount() > 0) { + hash = (37 * hash) + DATA_SOURCE_REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getDataSourceReferencesList().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.backupdr.v1.ListDataSourceReferencesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse 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.backupdr.v1.ListDataSourceReferencesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse 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.backupdr.v1.ListDataSourceReferencesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response for the ListDataSourceReferences method.
    +   * 
    + * + * Protobuf type {@code google.cloud.backupdr.v1.ListDataSourceReferencesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListDataSourceReferencesResponse) + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse.class, + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataSourceReferencesBuilder_ == null) { + dataSourceReferences_ = java.util.Collections.emptyList(); + } else { + dataSourceReferences_ = null; + dataSourceReferencesBuilder_.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.backupdr.v1.DataSourceReferenceProto + .internal_static_google_cloud_backupdr_v1_ListDataSourceReferencesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse build() { + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse buildPartial() { + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse result = + new com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse result) { + if (dataSourceReferencesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataSourceReferences_ = java.util.Collections.unmodifiableList(dataSourceReferences_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataSourceReferences_ = dataSourceReferences_; + } else { + result.dataSourceReferences_ = dataSourceReferencesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse 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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse) { + return mergeFrom((com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse other) { + if (other + == com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse.getDefaultInstance()) + return this; + if (dataSourceReferencesBuilder_ == null) { + if (!other.dataSourceReferences_.isEmpty()) { + if (dataSourceReferences_.isEmpty()) { + dataSourceReferences_ = other.dataSourceReferences_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataSourceReferencesIsMutable(); + dataSourceReferences_.addAll(other.dataSourceReferences_); + } + onChanged(); + } + } else { + if (!other.dataSourceReferences_.isEmpty()) { + if (dataSourceReferencesBuilder_.isEmpty()) { + dataSourceReferencesBuilder_.dispose(); + dataSourceReferencesBuilder_ = null; + dataSourceReferences_ = other.dataSourceReferences_; + bitField0_ = (bitField0_ & ~0x00000001); + dataSourceReferencesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataSourceReferencesFieldBuilder() + : null; + } else { + dataSourceReferencesBuilder_.addAllMessages(other.dataSourceReferences_); + } + } + } + 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.backupdr.v1.DataSourceReference m = + input.readMessage( + com.google.cloud.backupdr.v1.DataSourceReference.parser(), + extensionRegistry); + if (dataSourceReferencesBuilder_ == null) { + ensureDataSourceReferencesIsMutable(); + dataSourceReferences_.add(m); + } else { + dataSourceReferencesBuilder_.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 dataSourceReferences_ = + java.util.Collections.emptyList(); + + private void ensureDataSourceReferencesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataSourceReferences_ = + new java.util.ArrayList( + dataSourceReferences_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.backupdr.v1.DataSourceReference, + com.google.cloud.backupdr.v1.DataSourceReference.Builder, + com.google.cloud.backupdr.v1.DataSourceReferenceOrBuilder> + dataSourceReferencesBuilder_; + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public java.util.List + getDataSourceReferencesList() { + if (dataSourceReferencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataSourceReferences_); + } else { + return dataSourceReferencesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public int getDataSourceReferencesCount() { + if (dataSourceReferencesBuilder_ == null) { + return dataSourceReferences_.size(); + } else { + return dataSourceReferencesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReferences(int index) { + if (dataSourceReferencesBuilder_ == null) { + return dataSourceReferences_.get(index); + } else { + return dataSourceReferencesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public Builder setDataSourceReferences( + int index, com.google.cloud.backupdr.v1.DataSourceReference value) { + if (dataSourceReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSourceReferencesIsMutable(); + dataSourceReferences_.set(index, value); + onChanged(); + } else { + dataSourceReferencesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public Builder setDataSourceReferences( + int index, com.google.cloud.backupdr.v1.DataSourceReference.Builder builderForValue) { + if (dataSourceReferencesBuilder_ == null) { + ensureDataSourceReferencesIsMutable(); + dataSourceReferences_.set(index, builderForValue.build()); + onChanged(); + } else { + dataSourceReferencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public Builder addDataSourceReferences(com.google.cloud.backupdr.v1.DataSourceReference value) { + if (dataSourceReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSourceReferencesIsMutable(); + dataSourceReferences_.add(value); + onChanged(); + } else { + dataSourceReferencesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public Builder addDataSourceReferences( + int index, com.google.cloud.backupdr.v1.DataSourceReference value) { + if (dataSourceReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSourceReferencesIsMutable(); + dataSourceReferences_.add(index, value); + onChanged(); + } else { + dataSourceReferencesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public Builder addDataSourceReferences( + com.google.cloud.backupdr.v1.DataSourceReference.Builder builderForValue) { + if (dataSourceReferencesBuilder_ == null) { + ensureDataSourceReferencesIsMutable(); + dataSourceReferences_.add(builderForValue.build()); + onChanged(); + } else { + dataSourceReferencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public Builder addDataSourceReferences( + int index, com.google.cloud.backupdr.v1.DataSourceReference.Builder builderForValue) { + if (dataSourceReferencesBuilder_ == null) { + ensureDataSourceReferencesIsMutable(); + dataSourceReferences_.add(index, builderForValue.build()); + onChanged(); + } else { + dataSourceReferencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public Builder addAllDataSourceReferences( + java.lang.Iterable values) { + if (dataSourceReferencesBuilder_ == null) { + ensureDataSourceReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSourceReferences_); + onChanged(); + } else { + dataSourceReferencesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public Builder clearDataSourceReferences() { + if (dataSourceReferencesBuilder_ == null) { + dataSourceReferences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataSourceReferencesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public Builder removeDataSourceReferences(int index) { + if (dataSourceReferencesBuilder_ == null) { + ensureDataSourceReferencesIsMutable(); + dataSourceReferences_.remove(index); + onChanged(); + } else { + dataSourceReferencesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public com.google.cloud.backupdr.v1.DataSourceReference.Builder getDataSourceReferencesBuilder( + int index) { + return getDataSourceReferencesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public com.google.cloud.backupdr.v1.DataSourceReferenceOrBuilder + getDataSourceReferencesOrBuilder(int index) { + if (dataSourceReferencesBuilder_ == null) { + return dataSourceReferences_.get(index); + } else { + return dataSourceReferencesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public java.util.List + getDataSourceReferencesOrBuilderList() { + if (dataSourceReferencesBuilder_ != null) { + return dataSourceReferencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataSourceReferences_); + } + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public com.google.cloud.backupdr.v1.DataSourceReference.Builder + addDataSourceReferencesBuilder() { + return getDataSourceReferencesFieldBuilder() + .addBuilder(com.google.cloud.backupdr.v1.DataSourceReference.getDefaultInstance()); + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public com.google.cloud.backupdr.v1.DataSourceReference.Builder addDataSourceReferencesBuilder( + int index) { + return getDataSourceReferencesFieldBuilder() + .addBuilder(index, com.google.cloud.backupdr.v1.DataSourceReference.getDefaultInstance()); + } + + /** + * + * + *
    +     * The DataSourceReferences from the specified parent.
    +     * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + * + */ + public java.util.List + getDataSourceReferencesBuilderList() { + return getDataSourceReferencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.backupdr.v1.DataSourceReference, + com.google.cloud.backupdr.v1.DataSourceReference.Builder, + com.google.cloud.backupdr.v1.DataSourceReferenceOrBuilder> + getDataSourceReferencesFieldBuilder() { + if (dataSourceReferencesBuilder_ == null) { + dataSourceReferencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.backupdr.v1.DataSourceReference, + com.google.cloud.backupdr.v1.DataSourceReference.Builder, + com.google.cloud.backupdr.v1.DataSourceReferenceOrBuilder>( + dataSourceReferences_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataSourceReferences_ = null; + } + return dataSourceReferencesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token, which can be sent as `page_token` to retrieve the next page.
    +     * If this field is omitted, there are no subsequent pages.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * 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); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * 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); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * 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; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListDataSourceReferencesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListDataSourceReferencesResponse) + private static final com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse(); + } + + public static com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataSourceReferencesResponse 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.backupdr.v1.ListDataSourceReferencesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesResponseOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesResponseOrBuilder.java new file mode 100644 index 000000000000..99c1d48f5bf3 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListDataSourceReferencesResponseOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2025 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! +// source: google/cloud/backupdr/v1/datasourcereference.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.backupdr.v1; + +public interface ListDataSourceReferencesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListDataSourceReferencesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + java.util.List getDataSourceReferencesList(); + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReferences(int index); + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + int getDataSourceReferencesCount(); + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + java.util.List + getDataSourceReferencesOrBuilderList(); + + /** + * + * + *
    +   * The DataSourceReferences from the specified parent.
    +   * 
    + * + * repeated .google.cloud.backupdr.v1.DataSourceReference data_source_references = 1; + */ + com.google.cloud.backupdr.v1.DataSourceReferenceOrBuilder getDataSourceReferencesOrBuilder( + int index); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token, which can be sent as `page_token` to retrieve the next page.
    +   * If this field is omitted, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * 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); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * 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-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto index bead68e09363..3624e8b2ddd8 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto @@ -200,6 +200,15 @@ service BackupDR { option (google.api.method_signature) = "parent"; } + // Fetch Backups for a given resource type. + rpc FetchBackupsForResourceType(FetchBackupsForResourceTypeRequest) + returns (FetchBackupsForResourceTypeResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups:fetchForResourceType" + }; + option (google.api.method_signature) = "parent,resource_type"; + } + // Gets details of a Backup. rpc GetBackup(GetBackupRequest) returns (Backup) { option (google.api.http) = { @@ -417,6 +426,15 @@ service BackupDR { option (google.api.method_signature) = "name"; } + // Lists DataSourceReferences for a given project and location. + rpc ListDataSourceReferences(ListDataSourceReferencesRequest) + returns (ListDataSourceReferencesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/dataSourceReferences" + }; + option (google.api.method_signature) = "parent"; + } + // Fetch DataSourceReferences for a given project, location and resource type. rpc FetchDataSourceReferencesForResourceType( FetchDataSourceReferencesForResourceTypeRequest) diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto index 45ff43b4c213..b8d17f9913b8 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto @@ -637,6 +637,14 @@ message Backup { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.field_behavior) = OPTIONAL ]; + + // Resource that is being backed up. + oneof source_resource { + // Output only. Unique identifier of the GCP resource that is being backed + // up. + BackupGcpResource gcp_resource = 31 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } } // Message for creating a BackupVault. @@ -780,6 +788,62 @@ message FetchUsableBackupVaultsResponse { repeated string unreachable = 3; } +// Request for the FetchBackupsForResourceType method. +message FetchBackupsForResourceTypeRequest { + // Required. Datasources are the parent resource for the backups. + // Format: + // projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "backupdr.googleapis.com/Backup" + } + ]; + + // Required. The type of the GCP resource. + // Ex: sqladmin.googleapis.com/Instance + string resource_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The maximum number of Backups to return. The service may + // return fewer than this value. If unspecified, at most 50 + // Backups will be returned. The maximum value is 100; values + // above 100 will be coerced to 100. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous call of + // `FetchBackupsForResourceType`. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `FetchBackupsForResourceType` must match + // the call that provided the page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter expression that filters the results fetched in the + // response. The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. Supported + // fields: + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. + string order_by = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This parameter is used to specify the view of the backup. + // If not specified, the default view is BASIC. + BackupView view = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the FetchBackupsForResourceType method. +message FetchBackupsForResourceTypeResponse { + // The Backups from the specified parent. + repeated Backup backups = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + // Request message for getting a BackupVault. message GetBackupVaultRequest { // Required. Name of the backupvault store resource name, in the format @@ -1189,6 +1253,19 @@ message GcpResource { string type = 3; } +// Minimum details to identify a Google Cloud resource for a backup. +message BackupGcpResource { + // Name of the Google Cloud resource. + string gcp_resourcename = 1; + + // Location of the resource: //"global"/"unspecified". + string location = 2; + + // Type of the resource. Use the Unified Resource Type, + // eg. compute.googleapis.com/Instance. + string type = 3; +} + // Backup configuration state. Is the resource configured for backup? enum BackupConfigState { // The possible states of backup configuration. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_cloudsql.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_cloudsql.proto index dbc9bd338e27..c50279109b45 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_cloudsql.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_cloudsql.proto @@ -79,9 +79,17 @@ message CloudSqlInstanceBackupProperties { } ]; + // Output only. The instance creation timestamp. + google.protobuf.Timestamp instance_create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The tier (or machine type) for this instance. Example: // `db-custom-1-3840` string instance_tier = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The instance delete timestamp. + google.protobuf.Timestamp instance_delete_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // CloudSqlInstanceDataSourceReferenceProperties represents the properties of a diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/datasourcereference.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/datasourcereference.proto index a84483c96fa8..706266398792 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/datasourcereference.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/datasourcereference.proto @@ -73,6 +73,11 @@ message DataSourceReference { // Output only. The GCP resource that the DataSource is associated with. DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Total size of the storage used by all backup resources for the + // referenced datasource. + optional int64 total_stored_bytes = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Information of backup configuration on the DataSource. @@ -122,6 +127,64 @@ message GetDataSourceReferenceRequest { ]; } +// Request for the ListDataSourceReferences method. +message ListDataSourceReferencesRequest { + // Required. The parent resource name. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "backupdr.googleapis.com/DataSourceReference" + } + ]; + + // Optional. The maximum number of DataSourceReferences to return. The service + // may return fewer than this value. If unspecified, at most 50 + // DataSourceReferences will be returned. The maximum value is 100; values + // above 100 will be coerced to 100. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListDataSourceReferences` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListDataSourceReferences` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter expression that filters the results listed in the + // response. The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. + // + // The following field and operator combinations are supported: + // + // * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=` + // * data_source_gcp_resource_info.type with `=`, `!=` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. + // + // Supported fields: + // + // * data_source + // * data_source_gcp_resource_info.gcp_resourcename + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the ListDataSourceReferences method. +message ListDataSourceReferencesResponse { + // The DataSourceReferences from the specified parent. + repeated DataSourceReference data_source_references = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + // Request for the FetchDataSourceReferencesForResourceType method. message FetchDataSourceReferencesForResourceTypeRequest { // Required. The parent resource name. diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/AsyncFetchBackupsForResourceType.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/AsyncFetchBackupsForResourceType.java new file mode 100644 index 000000000000..c4696d7bc273 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/AsyncFetchBackupsForResourceType.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.Backup; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.BackupView; +import com.google.cloud.backupdr.v1.DataSourceName; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; + +public class AsyncFetchBackupsForResourceType { + + public static void main(String[] args) throws Exception { + asyncFetchBackupsForResourceType(); + } + + public static void asyncFetchBackupsForResourceType() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + FetchBackupsForResourceTypeRequest request = + FetchBackupsForResourceTypeRequest.newBuilder() + .setParent( + DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]") + .toString()) + .setResourceType("resourceType-384364440") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setView(BackupView.forNumber(0)) + .build(); + ApiFuture future = + backupDRClient.fetchBackupsForResourceTypePagedCallable().futureCall(request); + // Do something. + for (Backup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/AsyncFetchBackupsForResourceTypePaged.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/AsyncFetchBackupsForResourceTypePaged.java new file mode 100644 index 000000000000..8a764d9a706c --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/AsyncFetchBackupsForResourceTypePaged.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_Paged_async] +import com.google.cloud.backupdr.v1.Backup; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.BackupView; +import com.google.cloud.backupdr.v1.DataSourceName; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse; +import com.google.common.base.Strings; + +public class AsyncFetchBackupsForResourceTypePaged { + + public static void main(String[] args) throws Exception { + asyncFetchBackupsForResourceTypePaged(); + } + + public static void asyncFetchBackupsForResourceTypePaged() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + FetchBackupsForResourceTypeRequest request = + FetchBackupsForResourceTypeRequest.newBuilder() + .setParent( + DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]") + .toString()) + .setResourceType("resourceType-384364440") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setView(BackupView.forNumber(0)) + .build(); + while (true) { + FetchBackupsForResourceTypeResponse response = + backupDRClient.fetchBackupsForResourceTypeCallable().call(request); + for (Backup element : response.getBackupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_Paged_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/SyncFetchBackupsForResourceType.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/SyncFetchBackupsForResourceType.java new file mode 100644 index 000000000000..6974609b9cb2 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/SyncFetchBackupsForResourceType.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_sync] +import com.google.cloud.backupdr.v1.Backup; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.BackupView; +import com.google.cloud.backupdr.v1.DataSourceName; +import com.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; + +public class SyncFetchBackupsForResourceType { + + public static void main(String[] args) throws Exception { + syncFetchBackupsForResourceType(); + } + + public static void syncFetchBackupsForResourceType() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + FetchBackupsForResourceTypeRequest request = + FetchBackupsForResourceTypeRequest.newBuilder() + .setParent( + DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]") + .toString()) + .setResourceType("resourceType-384364440") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setView(BackupView.forNumber(0)) + .build(); + for (Backup element : backupDRClient.fetchBackupsForResourceType(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/SyncFetchBackupsForResourceTypeDatasourcenameString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/SyncFetchBackupsForResourceTypeDatasourcenameString.java new file mode 100644 index 000000000000..a08765055373 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/SyncFetchBackupsForResourceTypeDatasourcenameString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_DatasourcenameString_sync] +import com.google.cloud.backupdr.v1.Backup; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DataSourceName; + +public class SyncFetchBackupsForResourceTypeDatasourcenameString { + + public static void main(String[] args) throws Exception { + syncFetchBackupsForResourceTypeDatasourcenameString(); + } + + public static void syncFetchBackupsForResourceTypeDatasourcenameString() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + DataSourceName parent = + DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"); + String resourceType = "resourceType-384364440"; + for (Backup element : + backupDRClient.fetchBackupsForResourceType(parent, resourceType).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_DatasourcenameString_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/SyncFetchBackupsForResourceTypeStringString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/SyncFetchBackupsForResourceTypeStringString.java new file mode 100644 index 000000000000..399c9a32ce69 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/fetchbackupsforresourcetype/SyncFetchBackupsForResourceTypeStringString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_StringString_sync] +import com.google.cloud.backupdr.v1.Backup; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DataSourceName; + +public class SyncFetchBackupsForResourceTypeStringString { + + public static void main(String[] args) throws Exception { + syncFetchBackupsForResourceTypeStringString(); + } + + public static void syncFetchBackupsForResourceTypeStringString() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + String parent = + DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]").toString(); + String resourceType = "resourceType-384364440"; + for (Backup element : + backupDRClient.fetchBackupsForResourceType(parent, resourceType).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_StringString_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/AsyncListDataSourceReferences.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/AsyncListDataSourceReferences.java new file mode 100644 index 000000000000..3f71c96a3bad --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/AsyncListDataSourceReferences.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListDataSourceReferences_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DataSourceReference; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; +import com.google.cloud.backupdr.v1.LocationName; + +public class AsyncListDataSourceReferences { + + public static void main(String[] args) throws Exception { + asyncListDataSourceReferences(); + } + + public static void asyncListDataSourceReferences() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListDataSourceReferencesRequest request = + ListDataSourceReferencesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + backupDRClient.listDataSourceReferencesPagedCallable().futureCall(request); + // Do something. + for (DataSourceReference element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListDataSourceReferences_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/AsyncListDataSourceReferencesPaged.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/AsyncListDataSourceReferencesPaged.java new file mode 100644 index 000000000000..e8b34de92e92 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/AsyncListDataSourceReferencesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListDataSourceReferences_Paged_async] +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DataSourceReference; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse; +import com.google.cloud.backupdr.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListDataSourceReferencesPaged { + + public static void main(String[] args) throws Exception { + asyncListDataSourceReferencesPaged(); + } + + public static void asyncListDataSourceReferencesPaged() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListDataSourceReferencesRequest request = + ListDataSourceReferencesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListDataSourceReferencesResponse response = + backupDRClient.listDataSourceReferencesCallable().call(request); + for (DataSourceReference element : response.getDataSourceReferencesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListDataSourceReferences_Paged_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/SyncListDataSourceReferences.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/SyncListDataSourceReferences.java new file mode 100644 index 000000000000..e6384aedcfba --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/SyncListDataSourceReferences.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListDataSourceReferences_sync] +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DataSourceReference; +import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncListDataSourceReferences { + + public static void main(String[] args) throws Exception { + syncListDataSourceReferences(); + } + + public static void syncListDataSourceReferences() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListDataSourceReferencesRequest request = + ListDataSourceReferencesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (DataSourceReference element : + backupDRClient.listDataSourceReferences(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListDataSourceReferences_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/SyncListDataSourceReferencesLocationname.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/SyncListDataSourceReferencesLocationname.java new file mode 100644 index 000000000000..87b597e7d386 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/SyncListDataSourceReferencesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListDataSourceReferences_Locationname_sync] +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DataSourceReference; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncListDataSourceReferencesLocationname { + + public static void main(String[] args) throws Exception { + syncListDataSourceReferencesLocationname(); + } + + public static void syncListDataSourceReferencesLocationname() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DataSourceReference element : + backupDRClient.listDataSourceReferences(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListDataSourceReferences_Locationname_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/SyncListDataSourceReferencesString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/SyncListDataSourceReferencesString.java new file mode 100644 index 000000000000..2f300a5c6cfe --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listdatasourcereferences/SyncListDataSourceReferencesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListDataSourceReferences_String_sync] +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DataSourceReference; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncListDataSourceReferencesString { + + public static void main(String[] args) throws Exception { + syncListDataSourceReferencesString(); + } + + public static void syncListDataSourceReferencesString() 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 (BackupDRClient backupDRClient = BackupDRClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DataSourceReference element : + backupDRClient.listDataSourceReferences(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListDataSourceReferences_String_sync] diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index b64745cb8a9a..dcaddabc165d 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.77.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.77.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java index cbf34faf8089..f218798336db 100644 --- a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java +++ b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java @@ -30,9 +30,6 @@ * upon specific servers in your Bare Metal Solution environment. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BareMetalSolutionGrpc { @@ -3665,8 +3662,9 @@ protected BareMetalSolutionBlockingV2Stub build( * */ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -3678,8 +3676,9 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances * */ public com.google.cloud.baremetalsolution.v2.Instance getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -3691,8 +3690,9 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -3705,8 +3705,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.cloud.baremetalsolution.v2.Instance renameInstance( - com.google.cloud.baremetalsolution.v2.RenameInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.RenameInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameInstanceMethod(), getCallOptions(), request); } @@ -3719,8 +3720,9 @@ public com.google.cloud.baremetalsolution.v2.Instance renameInstance( * */ public com.google.longrunning.Operation resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetInstanceMethod(), getCallOptions(), request); } @@ -3732,8 +3734,9 @@ public com.google.longrunning.Operation resetInstance( * */ public com.google.longrunning.Operation startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartInstanceMethod(), getCallOptions(), request); } @@ -3745,8 +3748,9 @@ public com.google.longrunning.Operation startInstance( * */ public com.google.longrunning.Operation stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopInstanceMethod(), getCallOptions(), request); } @@ -3758,8 +3762,9 @@ public com.google.longrunning.Operation stopInstance( * */ public com.google.longrunning.Operation enableInteractiveSerialConsole( - com.google.cloud.baremetalsolution.v2.EnableInteractiveSerialConsoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.EnableInteractiveSerialConsoleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableInteractiveSerialConsoleMethod(), getCallOptions(), request); } @@ -3771,8 +3776,9 @@ public com.google.longrunning.Operation enableInteractiveSerialConsole( * */ public com.google.longrunning.Operation disableInteractiveSerialConsole( - com.google.cloud.baremetalsolution.v2.DisableInteractiveSerialConsoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.DisableInteractiveSerialConsoleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableInteractiveSerialConsoleMethod(), getCallOptions(), request); } @@ -3784,8 +3790,9 @@ public com.google.longrunning.Operation disableInteractiveSerialConsole( * */ public com.google.longrunning.Operation detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetachLunMethod(), getCallOptions(), request); } @@ -3798,8 +3805,9 @@ public com.google.longrunning.Operation detachLun( * */ public com.google.cloud.baremetalsolution.v2.ListSSHKeysResponse listSSHKeys( - com.google.cloud.baremetalsolution.v2.ListSSHKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListSSHKeysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSSHKeysMethod(), getCallOptions(), request); } @@ -3812,8 +3820,9 @@ public com.google.cloud.baremetalsolution.v2.ListSSHKeysResponse listSSHKeys( * */ public com.google.cloud.baremetalsolution.v2.SSHKey createSSHKey( - com.google.cloud.baremetalsolution.v2.CreateSSHKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.CreateSSHKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSSHKeyMethod(), getCallOptions(), request); } @@ -3825,8 +3834,9 @@ public com.google.cloud.baremetalsolution.v2.SSHKey createSSHKey( * */ public com.google.protobuf.Empty deleteSSHKey( - com.google.cloud.baremetalsolution.v2.DeleteSSHKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.DeleteSSHKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSSHKeyMethod(), getCallOptions(), request); } @@ -3838,8 +3848,9 @@ public com.google.protobuf.Empty deleteSSHKey( * */ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVolumesMethod(), getCallOptions(), request); } @@ -3851,8 +3862,9 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes( * */ public com.google.cloud.baremetalsolution.v2.Volume getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVolumeMethod(), getCallOptions(), request); } @@ -3864,8 +3876,9 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolume( * */ public com.google.longrunning.Operation updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); } @@ -3878,8 +3891,9 @@ public com.google.longrunning.Operation updateVolume( * */ public com.google.cloud.baremetalsolution.v2.Volume renameVolume( - com.google.cloud.baremetalsolution.v2.RenameVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.RenameVolumeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameVolumeMethod(), getCallOptions(), request); } @@ -3892,8 +3906,9 @@ public com.google.cloud.baremetalsolution.v2.Volume renameVolume( * */ public com.google.longrunning.Operation evictVolume( - com.google.cloud.baremetalsolution.v2.EvictVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.EvictVolumeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEvictVolumeMethod(), getCallOptions(), request); } @@ -3905,8 +3920,9 @@ public com.google.longrunning.Operation evictVolume( * */ public com.google.longrunning.Operation resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResizeVolumeMethod(), getCallOptions(), request); } @@ -3918,8 +3934,9 @@ public com.google.longrunning.Operation resizeVolume( * */ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNetworksMethod(), getCallOptions(), request); } @@ -3932,8 +3949,9 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks( * */ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); } @@ -3945,8 +3963,9 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetwor * */ public com.google.cloud.baremetalsolution.v2.Network getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNetworkMethod(), getCallOptions(), request); } @@ -3958,8 +3977,9 @@ public com.google.cloud.baremetalsolution.v2.Network getNetwork( * */ public com.google.longrunning.Operation updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); } @@ -3972,8 +3992,9 @@ public com.google.longrunning.Operation updateNetwork( * */ public com.google.cloud.baremetalsolution.v2.VolumeSnapshot createVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVolumeSnapshotMethod(), getCallOptions(), request); } @@ -3986,8 +4007,9 @@ public com.google.cloud.baremetalsolution.v2.VolumeSnapshot createVolumeSnapshot * */ public com.google.longrunning.Operation restoreVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreVolumeSnapshotMethod(), getCallOptions(), request); } @@ -4000,8 +4022,9 @@ public com.google.longrunning.Operation restoreVolumeSnapshot( * */ public com.google.protobuf.Empty deleteVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVolumeSnapshotMethod(), getCallOptions(), request); } @@ -4014,8 +4037,9 @@ public com.google.protobuf.Empty deleteVolumeSnapshot( * */ public com.google.cloud.baremetalsolution.v2.VolumeSnapshot getVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVolumeSnapshotMethod(), getCallOptions(), request); } @@ -4029,8 +4053,9 @@ public com.google.cloud.baremetalsolution.v2.VolumeSnapshot getVolumeSnapshot( * */ public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse listVolumeSnapshots( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVolumeSnapshotsMethod(), getCallOptions(), request); } @@ -4042,8 +4067,9 @@ public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse listVol * */ public com.google.cloud.baremetalsolution.v2.Lun getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.GetLunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLunMethod(), getCallOptions(), request); } @@ -4055,8 +4081,9 @@ public com.google.cloud.baremetalsolution.v2.Lun getLun( * */ public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLunsMethod(), getCallOptions(), request); } @@ -4069,8 +4096,9 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns( * */ public com.google.longrunning.Operation evictLun( - com.google.cloud.baremetalsolution.v2.EvictLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.EvictLunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEvictLunMethod(), getCallOptions(), request); } @@ -4082,8 +4110,9 @@ public com.google.longrunning.Operation evictLun( * */ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNfsShareMethod(), getCallOptions(), request); } @@ -4095,8 +4124,9 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare( * */ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNfsSharesMethod(), getCallOptions(), request); } @@ -4108,8 +4138,9 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares * */ public com.google.longrunning.Operation updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); } @@ -4121,8 +4152,9 @@ public com.google.longrunning.Operation updateNfsShare( * */ public com.google.longrunning.Operation createNfsShare( - com.google.cloud.baremetalsolution.v2.CreateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.CreateNfsShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNfsShareMethod(), getCallOptions(), request); } @@ -4135,8 +4167,9 @@ public com.google.longrunning.Operation createNfsShare( * */ public com.google.cloud.baremetalsolution.v2.NfsShare renameNfsShare( - com.google.cloud.baremetalsolution.v2.RenameNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.RenameNfsShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameNfsShareMethod(), getCallOptions(), request); } @@ -4148,8 +4181,9 @@ public com.google.cloud.baremetalsolution.v2.NfsShare renameNfsShare( * */ public com.google.longrunning.Operation deleteNfsShare( - com.google.cloud.baremetalsolution.v2.DeleteNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.DeleteNfsShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNfsShareMethod(), getCallOptions(), request); } @@ -4162,8 +4196,9 @@ public com.google.longrunning.Operation deleteNfsShare( */ public com.google.cloud.baremetalsolution.v2.ListProvisioningQuotasResponse listProvisioningQuotas( - com.google.cloud.baremetalsolution.v2.ListProvisioningQuotasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListProvisioningQuotasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProvisioningQuotasMethod(), getCallOptions(), request); } @@ -4176,8 +4211,9 @@ public com.google.longrunning.Operation deleteNfsShare( */ public com.google.cloud.baremetalsolution.v2.SubmitProvisioningConfigResponse submitProvisioningConfig( - com.google.cloud.baremetalsolution.v2.SubmitProvisioningConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.SubmitProvisioningConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitProvisioningConfigMethod(), getCallOptions(), request); } @@ -4189,8 +4225,9 @@ public com.google.longrunning.Operation deleteNfsShare( * */ public com.google.cloud.baremetalsolution.v2.ProvisioningConfig getProvisioningConfig( - com.google.cloud.baremetalsolution.v2.GetProvisioningConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.GetProvisioningConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProvisioningConfigMethod(), getCallOptions(), request); } @@ -4202,8 +4239,9 @@ public com.google.cloud.baremetalsolution.v2.ProvisioningConfig getProvisioningC * */ public com.google.cloud.baremetalsolution.v2.ProvisioningConfig createProvisioningConfig( - com.google.cloud.baremetalsolution.v2.CreateProvisioningConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.CreateProvisioningConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProvisioningConfigMethod(), getCallOptions(), request); } @@ -4215,8 +4253,9 @@ public com.google.cloud.baremetalsolution.v2.ProvisioningConfig createProvisioni * */ public com.google.cloud.baremetalsolution.v2.ProvisioningConfig updateProvisioningConfig( - com.google.cloud.baremetalsolution.v2.UpdateProvisioningConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.UpdateProvisioningConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProvisioningConfigMethod(), getCallOptions(), request); } @@ -4229,8 +4268,9 @@ public com.google.cloud.baremetalsolution.v2.ProvisioningConfig updateProvisioni * */ public com.google.cloud.baremetalsolution.v2.Network renameNetwork( - com.google.cloud.baremetalsolution.v2.RenameNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.RenameNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameNetworkMethod(), getCallOptions(), request); } @@ -4242,8 +4282,9 @@ public com.google.cloud.baremetalsolution.v2.Network renameNetwork( * */ public com.google.cloud.baremetalsolution.v2.ListOSImagesResponse listOSImages( - com.google.cloud.baremetalsolution.v2.ListOSImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.baremetalsolution.v2.ListOSImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOSImagesMethod(), getCallOptions(), request); } } diff --git a/java-batch/README.md b/java-batch/README.md index 3bb979b4f5d1..78ba3ee21fb1 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.77.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.77.0' +implementation 'com.google.cloud:google-cloud-batch:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java b/java-batch/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java index 46d06357d5e4..a1d89286acae 100644 --- a/java-batch/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java +++ b/java-batch/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java @@ -26,9 +26,6 @@ * Engine VM instances to run the jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/batch/v1/batch.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BatchServiceGrpc { @@ -643,8 +640,8 @@ protected BatchServiceBlockingV2Stub build( * */ public com.google.cloud.batch.v1.Job createJob( - com.google.cloud.batch.v1.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1.CreateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -655,8 +652,9 @@ public com.google.cloud.batch.v1.Job createJob( * Get a Job specified by its resource name. * */ - public com.google.cloud.batch.v1.Job getJob(com.google.cloud.batch.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.batch.v1.Job getJob(com.google.cloud.batch.v1.GetJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -668,8 +666,8 @@ public com.google.cloud.batch.v1.Job getJob(com.google.cloud.batch.v1.GetJobRequ * */ public com.google.longrunning.Operation deleteJob( - com.google.cloud.batch.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1.DeleteJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } @@ -681,8 +679,8 @@ public com.google.longrunning.Operation deleteJob( * */ public com.google.longrunning.Operation cancelJob( - com.google.cloud.batch.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1.CancelJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelJobMethod(), getCallOptions(), request); } @@ -694,8 +692,8 @@ public com.google.longrunning.Operation cancelJob( * */ public com.google.cloud.batch.v1.ListJobsResponse listJobs( - com.google.cloud.batch.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -706,9 +704,9 @@ public com.google.cloud.batch.v1.ListJobsResponse listJobs( * Return a single Task. * */ - public com.google.cloud.batch.v1.Task getTask( - com.google.cloud.batch.v1.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.batch.v1.Task getTask(com.google.cloud.batch.v1.GetTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaskMethod(), getCallOptions(), request); } @@ -720,8 +718,8 @@ public com.google.cloud.batch.v1.Task getTask( * */ public com.google.cloud.batch.v1.ListTasksResponse listTasks( - com.google.cloud.batch.v1.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1.ListTasksRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTasksMethod(), getCallOptions(), request); } } diff --git a/java-batch/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java b/java-batch/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java index ab4a45ceaf7b..95c9aff6f8c0 100644 --- a/java-batch/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java +++ b/java-batch/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java @@ -26,9 +26,6 @@ * Engine VM instances to run the jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/batch/v1alpha/batch.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BatchServiceGrpc { @@ -1132,8 +1129,8 @@ protected BatchServiceBlockingV2Stub build( * */ public com.google.cloud.batch.v1alpha.Job createJob( - com.google.cloud.batch.v1alpha.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.CreateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -1145,8 +1142,8 @@ public com.google.cloud.batch.v1alpha.Job createJob( * */ public com.google.cloud.batch.v1alpha.Job getJob( - com.google.cloud.batch.v1alpha.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.GetJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -1158,8 +1155,8 @@ public com.google.cloud.batch.v1alpha.Job getJob( * */ public com.google.longrunning.Operation deleteJob( - com.google.cloud.batch.v1alpha.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.DeleteJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } @@ -1171,8 +1168,8 @@ public com.google.longrunning.Operation deleteJob( * */ public com.google.longrunning.Operation cancelJob( - com.google.cloud.batch.v1alpha.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.CancelJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelJobMethod(), getCallOptions(), request); } @@ -1184,8 +1181,8 @@ public com.google.longrunning.Operation cancelJob( * */ public com.google.cloud.batch.v1alpha.Job updateJob( - com.google.cloud.batch.v1alpha.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.UpdateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateJobMethod(), getCallOptions(), request); } @@ -1197,8 +1194,8 @@ public com.google.cloud.batch.v1alpha.Job updateJob( * */ public com.google.cloud.batch.v1alpha.ListJobsResponse listJobs( - com.google.cloud.batch.v1alpha.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -1210,8 +1207,8 @@ public com.google.cloud.batch.v1alpha.ListJobsResponse listJobs( * */ public com.google.cloud.batch.v1alpha.Task getTask( - com.google.cloud.batch.v1alpha.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.GetTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaskMethod(), getCallOptions(), request); } @@ -1223,8 +1220,8 @@ public com.google.cloud.batch.v1alpha.Task getTask( * */ public com.google.cloud.batch.v1alpha.ListTasksResponse listTasks( - com.google.cloud.batch.v1alpha.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.ListTasksRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTasksMethod(), getCallOptions(), request); } @@ -1236,8 +1233,9 @@ public com.google.cloud.batch.v1alpha.ListTasksResponse listTasks( * */ public com.google.cloud.batch.v1alpha.ResourceAllowance createResourceAllowance( - com.google.cloud.batch.v1alpha.CreateResourceAllowanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.CreateResourceAllowanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateResourceAllowanceMethod(), getCallOptions(), request); } @@ -1249,8 +1247,9 @@ public com.google.cloud.batch.v1alpha.ResourceAllowance createResourceAllowance( * */ public com.google.cloud.batch.v1alpha.ResourceAllowance getResourceAllowance( - com.google.cloud.batch.v1alpha.GetResourceAllowanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.GetResourceAllowanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetResourceAllowanceMethod(), getCallOptions(), request); } @@ -1262,8 +1261,9 @@ public com.google.cloud.batch.v1alpha.ResourceAllowance getResourceAllowance( * */ public com.google.longrunning.Operation deleteResourceAllowance( - com.google.cloud.batch.v1alpha.DeleteResourceAllowanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.DeleteResourceAllowanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteResourceAllowanceMethod(), getCallOptions(), request); } @@ -1275,8 +1275,9 @@ public com.google.longrunning.Operation deleteResourceAllowance( * */ public com.google.cloud.batch.v1alpha.ListResourceAllowancesResponse listResourceAllowances( - com.google.cloud.batch.v1alpha.ListResourceAllowancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.ListResourceAllowancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListResourceAllowancesMethod(), getCallOptions(), request); } @@ -1288,8 +1289,9 @@ public com.google.cloud.batch.v1alpha.ListResourceAllowancesResponse listResourc * */ public com.google.cloud.batch.v1alpha.ResourceAllowance updateResourceAllowance( - com.google.cloud.batch.v1alpha.UpdateResourceAllowanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.batch.v1alpha.UpdateResourceAllowanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateResourceAllowanceMethod(), getCallOptions(), request); } } diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index edc1aaa79899..35a449052b46 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.75.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceGrpc.java b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceGrpc.java index f2c8b2b597c8..2d6102ae43e6 100644 --- a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceGrpc.java +++ b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceGrpc.java @@ -32,9 +32,6 @@ * (create/read/update/delete) BeyondCorp AppConnections. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/beyondcorp/appconnections/v1/app_connections_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AppConnectionsServiceGrpc { @@ -698,8 +695,9 @@ protected AppConnectionsServiceBlockingV2Stub build( */ public com.google.cloud.beyondcorp.appconnections.v1.ListAppConnectionsResponse listAppConnections( - com.google.cloud.beyondcorp.appconnections.v1.ListAppConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnections.v1.ListAppConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAppConnectionsMethod(), getCallOptions(), request); } @@ -711,8 +709,9 @@ protected AppConnectionsServiceBlockingV2Stub build( * */ public com.google.cloud.beyondcorp.appconnections.v1.AppConnection getAppConnection( - com.google.cloud.beyondcorp.appconnections.v1.GetAppConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnections.v1.GetAppConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAppConnectionMethod(), getCallOptions(), request); } @@ -724,8 +723,9 @@ public com.google.cloud.beyondcorp.appconnections.v1.AppConnection getAppConnect * */ public com.google.longrunning.Operation createAppConnection( - com.google.cloud.beyondcorp.appconnections.v1.CreateAppConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnections.v1.CreateAppConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAppConnectionMethod(), getCallOptions(), request); } @@ -737,8 +737,9 @@ public com.google.longrunning.Operation createAppConnection( * */ public com.google.longrunning.Operation updateAppConnection( - com.google.cloud.beyondcorp.appconnections.v1.UpdateAppConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnections.v1.UpdateAppConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAppConnectionMethod(), getCallOptions(), request); } @@ -750,8 +751,9 @@ public com.google.longrunning.Operation updateAppConnection( * */ public com.google.longrunning.Operation deleteAppConnection( - com.google.cloud.beyondcorp.appconnections.v1.DeleteAppConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnections.v1.DeleteAppConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAppConnectionMethod(), getCallOptions(), request); } @@ -766,8 +768,9 @@ public com.google.longrunning.Operation deleteAppConnection( */ public com.google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsResponse resolveAppConnections( - com.google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResolveAppConnectionsMethod(), getCallOptions(), request); } } diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 4f3d357d64ab..36df0d9c4ab6 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.75.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceGrpc.java b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceGrpc.java index 067113cb320a..d82daaccc7af 100644 --- a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceGrpc.java +++ b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceGrpc.java @@ -32,9 +32,6 @@ * (create/read/update/delete) BeyondCorp AppConnectors. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AppConnectorsServiceGrpc { @@ -677,8 +674,9 @@ protected AppConnectorsServiceBlockingV2Stub build( * */ public com.google.cloud.beyondcorp.appconnectors.v1.ListAppConnectorsResponse listAppConnectors( - com.google.cloud.beyondcorp.appconnectors.v1.ListAppConnectorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnectors.v1.ListAppConnectorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAppConnectorsMethod(), getCallOptions(), request); } @@ -690,8 +688,9 @@ public com.google.cloud.beyondcorp.appconnectors.v1.ListAppConnectorsResponse li * */ public com.google.cloud.beyondcorp.appconnectors.v1.AppConnector getAppConnector( - com.google.cloud.beyondcorp.appconnectors.v1.GetAppConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnectors.v1.GetAppConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAppConnectorMethod(), getCallOptions(), request); } @@ -703,8 +702,9 @@ public com.google.cloud.beyondcorp.appconnectors.v1.AppConnector getAppConnector * */ public com.google.longrunning.Operation createAppConnector( - com.google.cloud.beyondcorp.appconnectors.v1.CreateAppConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnectors.v1.CreateAppConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAppConnectorMethod(), getCallOptions(), request); } @@ -716,8 +716,9 @@ public com.google.longrunning.Operation createAppConnector( * */ public com.google.longrunning.Operation updateAppConnector( - com.google.cloud.beyondcorp.appconnectors.v1.UpdateAppConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnectors.v1.UpdateAppConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAppConnectorMethod(), getCallOptions(), request); } @@ -729,8 +730,9 @@ public com.google.longrunning.Operation updateAppConnector( * */ public com.google.longrunning.Operation deleteAppConnector( - com.google.cloud.beyondcorp.appconnectors.v1.DeleteAppConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnectors.v1.DeleteAppConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAppConnectorMethod(), getCallOptions(), request); } @@ -742,8 +744,9 @@ public com.google.longrunning.Operation deleteAppConnector( * */ public com.google.longrunning.Operation reportStatus( - com.google.cloud.beyondcorp.appconnectors.v1.ReportStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appconnectors.v1.ReportStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportStatusMethod(), getCallOptions(), request); } } diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index 6b33416c660c..91513cc03352 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.75.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceGrpc.java b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceGrpc.java index 86793a1ead91..c35cb514ee4b 100644 --- a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceGrpc.java +++ b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceGrpc.java @@ -32,9 +32,6 @@ * (create/read/update/delete) BeyondCorp AppGateways. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/beyondcorp/appgateways/v1/app_gateways_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AppGatewaysServiceGrpc { @@ -518,8 +515,9 @@ protected AppGatewaysServiceBlockingV2Stub build( * */ public com.google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysResponse listAppGateways( - com.google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAppGatewaysMethod(), getCallOptions(), request); } @@ -531,8 +529,9 @@ public com.google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysResponse listAp * */ public com.google.cloud.beyondcorp.appgateways.v1.AppGateway getAppGateway( - com.google.cloud.beyondcorp.appgateways.v1.GetAppGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appgateways.v1.GetAppGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAppGatewayMethod(), getCallOptions(), request); } @@ -544,8 +543,9 @@ public com.google.cloud.beyondcorp.appgateways.v1.AppGateway getAppGateway( * */ public com.google.longrunning.Operation createAppGateway( - com.google.cloud.beyondcorp.appgateways.v1.CreateAppGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appgateways.v1.CreateAppGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAppGatewayMethod(), getCallOptions(), request); } @@ -557,8 +557,9 @@ public com.google.longrunning.Operation createAppGateway( * */ public com.google.longrunning.Operation deleteAppGateway( - com.google.cloud.beyondcorp.appgateways.v1.DeleteAppGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.appgateways.v1.DeleteAppGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAppGatewayMethod(), getCallOptions(), request); } } diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 848ed7fc44d3..649ea0ab1a0d 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.75.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceGrpc.java b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceGrpc.java index 540747f86325..87ad03bea636 100644 --- a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceGrpc.java +++ b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceGrpc.java @@ -30,11 +30,6 @@ * `projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = - "Source:" - + " google/cloud/beyondcorp/clientconnectorservices/v1/client_connector_services_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ClientConnectorServicesServiceGrpc { @@ -668,8 +663,9 @@ protected ClientConnectorServicesServiceBlockingV2Stub build( listClientConnectorServices( com.google.cloud.beyondcorp.clientconnectorservices.v1 .ListClientConnectorServicesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClientConnectorServicesMethod(), getCallOptions(), request); } @@ -683,8 +679,9 @@ protected ClientConnectorServicesServiceBlockingV2Stub build( public com.google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorService getClientConnectorService( com.google.cloud.beyondcorp.clientconnectorservices.v1.GetClientConnectorServiceRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClientConnectorServiceMethod(), getCallOptions(), request); } @@ -697,8 +694,9 @@ protected ClientConnectorServicesServiceBlockingV2Stub build( */ public com.google.longrunning.Operation createClientConnectorService( com.google.cloud.beyondcorp.clientconnectorservices.v1.CreateClientConnectorServiceRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClientConnectorServiceMethod(), getCallOptions(), request); } @@ -711,8 +709,9 @@ public com.google.longrunning.Operation createClientConnectorService( */ public com.google.longrunning.Operation updateClientConnectorService( com.google.cloud.beyondcorp.clientconnectorservices.v1.UpdateClientConnectorServiceRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClientConnectorServiceMethod(), getCallOptions(), request); } @@ -725,8 +724,9 @@ public com.google.longrunning.Operation updateClientConnectorService( */ public com.google.longrunning.Operation deleteClientConnectorService( com.google.cloud.beyondcorp.clientconnectorservices.v1.DeleteClientConnectorServiceRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClientConnectorServiceMethod(), getCallOptions(), request); } } diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 914e7cf1bfab..b7cfcffc570a 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.75.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceGrpc.java b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceGrpc.java index b5641bf2990a..e364e9e2a261 100644 --- a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceGrpc.java +++ b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceGrpc.java @@ -30,9 +30,6 @@ * `projects/{project_id}/locations/{location_id}/clientGateways/{client_gateway_id}`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/beyondcorp/clientgateways/v1/client_gateways_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ClientGatewaysServiceGrpc { @@ -516,8 +513,9 @@ protected ClientGatewaysServiceBlockingV2Stub build( */ public com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse listClientGateways( - com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClientGatewaysMethod(), getCallOptions(), request); } @@ -529,8 +527,9 @@ protected ClientGatewaysServiceBlockingV2Stub build( * */ public com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway getClientGateway( - com.google.cloud.beyondcorp.clientgateways.v1.GetClientGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.clientgateways.v1.GetClientGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClientGatewayMethod(), getCallOptions(), request); } @@ -542,8 +541,9 @@ public com.google.cloud.beyondcorp.clientgateways.v1.ClientGateway getClientGate * */ public com.google.longrunning.Operation createClientGateway( - com.google.cloud.beyondcorp.clientgateways.v1.CreateClientGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.clientgateways.v1.CreateClientGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClientGatewayMethod(), getCallOptions(), request); } @@ -555,8 +555,9 @@ public com.google.longrunning.Operation createClientGateway( * */ public com.google.longrunning.Operation deleteClientGateway( - com.google.cloud.beyondcorp.clientgateways.v1.DeleteClientGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.beyondcorp.clientgateways.v1.DeleteClientGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClientGatewayMethod(), getCallOptions(), request); } } diff --git a/java-biglake/README.md b/java-biglake/README.md index 7cb61d3baad9..7f4b0783ccf2 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.65.0' +implementation 'com.google.cloud:google-cloud-biglake:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.66.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.66.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceGrpc.java b/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceGrpc.java index 8b774e96066f..c732c0c14363 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceGrpc.java +++ b/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceGrpc.java @@ -48,9 +48,6 @@ * permission on the project. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/biglake/v1/iceberg_rest_catalog.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IcebergCatalogServiceGrpc { @@ -2009,8 +2006,9 @@ protected IcebergCatalogServiceBlockingV2Stub build( * */ public com.google.cloud.biglake.v1.IcebergCatalogConfig getIcebergCatalogConfig( - com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.GetIcebergCatalogConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIcebergCatalogConfigMethod(), getCallOptions(), request); } @@ -2023,8 +2021,9 @@ public com.google.cloud.biglake.v1.IcebergCatalogConfig getIcebergCatalogConfig( * */ public com.google.cloud.biglake.v1.ListIcebergNamespacesResponse listIcebergNamespaces( - com.google.cloud.biglake.v1.ListIcebergNamespacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.ListIcebergNamespacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIcebergNamespacesMethod(), getCallOptions(), request); } @@ -2036,8 +2035,9 @@ public com.google.cloud.biglake.v1.ListIcebergNamespacesResponse listIcebergName * */ public com.google.protobuf.Empty checkIcebergNamespaceExists( - com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckIcebergNamespaceExistsMethod(), getCallOptions(), request); } @@ -2050,8 +2050,9 @@ public com.google.protobuf.Empty checkIcebergNamespaceExists( * */ public com.google.cloud.biglake.v1.IcebergNamespace getIcebergNamespace( - com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.GetIcebergNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIcebergNamespaceMethod(), getCallOptions(), request); } @@ -2063,8 +2064,9 @@ public com.google.cloud.biglake.v1.IcebergNamespace getIcebergNamespace( * */ public com.google.cloud.biglake.v1.IcebergNamespace createIcebergNamespace( - com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.CreateIcebergNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIcebergNamespaceMethod(), getCallOptions(), request); } @@ -2076,8 +2078,9 @@ public com.google.cloud.biglake.v1.IcebergNamespace createIcebergNamespace( * */ public com.google.protobuf.Empty deleteIcebergNamespace( - com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.DeleteIcebergNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIcebergNamespaceMethod(), getCallOptions(), request); } @@ -2089,8 +2092,9 @@ public com.google.protobuf.Empty deleteIcebergNamespace( * */ public com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse updateIcebergNamespace( - com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.UpdateIcebergNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIcebergNamespaceMethod(), getCallOptions(), request); } @@ -2103,8 +2107,9 @@ public com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse updateIcebergN */ public com.google.cloud.biglake.v1.ListIcebergTableIdentifiersResponse listIcebergTableIdentifiers( - com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.ListIcebergTableIdentifiersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIcebergTableIdentifiersMethod(), getCallOptions(), request); } @@ -2116,8 +2121,9 @@ public com.google.cloud.biglake.v1.UpdateIcebergNamespaceResponse updateIcebergN * */ public com.google.api.HttpBody createIcebergTable( - com.google.cloud.biglake.v1.CreateIcebergTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.CreateIcebergTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIcebergTableMethod(), getCallOptions(), request); } @@ -2130,8 +2136,8 @@ public com.google.api.HttpBody createIcebergTable( * */ public com.google.protobuf.Empty checkIcebergTableExists( - com.google.cloud.biglake.v1.GetIcebergTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.GetIcebergTableRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckIcebergTableExistsMethod(), getCallOptions(), request); } @@ -2143,8 +2149,9 @@ public com.google.protobuf.Empty checkIcebergTableExists( * */ public com.google.protobuf.Empty deleteIcebergTable( - com.google.cloud.biglake.v1.DeleteIcebergTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.DeleteIcebergTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIcebergTableMethod(), getCallOptions(), request); } @@ -2156,8 +2163,8 @@ public com.google.protobuf.Empty deleteIcebergTable( * */ public com.google.api.HttpBody getIcebergTable( - com.google.cloud.biglake.v1.GetIcebergTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.GetIcebergTableRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIcebergTableMethod(), getCallOptions(), request); } @@ -2169,8 +2176,9 @@ public com.google.api.HttpBody getIcebergTable( * */ public com.google.cloud.biglake.v1.LoadIcebergTableCredentialsResponse - loadIcebergTableCredentials(com.google.cloud.biglake.v1.GetIcebergTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + loadIcebergTableCredentials(com.google.cloud.biglake.v1.GetIcebergTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLoadIcebergTableCredentialsMethod(), getCallOptions(), request); } @@ -2183,8 +2191,9 @@ public com.google.api.HttpBody getIcebergTable( * */ public com.google.api.HttpBody updateIcebergTable( - com.google.cloud.biglake.v1.UpdateIcebergTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.UpdateIcebergTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIcebergTableMethod(), getCallOptions(), request); } @@ -2196,8 +2205,9 @@ public com.google.api.HttpBody updateIcebergTable( * */ public com.google.api.HttpBody registerIcebergTable( - com.google.cloud.biglake.v1.RegisterIcebergTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.RegisterIcebergTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRegisterIcebergTableMethod(), getCallOptions(), request); } @@ -2209,8 +2219,9 @@ public com.google.api.HttpBody registerIcebergTable( * */ public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog( - com.google.cloud.biglake.v1.GetIcebergCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.GetIcebergCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIcebergCatalogMethod(), getCallOptions(), request); } @@ -2222,8 +2233,9 @@ public com.google.cloud.biglake.v1.IcebergCatalog getIcebergCatalog( * */ public com.google.cloud.biglake.v1.ListIcebergCatalogsResponse listIcebergCatalogs( - com.google.cloud.biglake.v1.ListIcebergCatalogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.ListIcebergCatalogsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIcebergCatalogsMethod(), getCallOptions(), request); } @@ -2238,8 +2250,9 @@ public com.google.cloud.biglake.v1.ListIcebergCatalogsResponse listIcebergCatalo * */ public com.google.protobuf.Empty deleteIcebergCatalog( - com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.DeleteIcebergCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIcebergCatalogMethod(), getCallOptions(), request); } @@ -2251,8 +2264,9 @@ public com.google.protobuf.Empty deleteIcebergCatalog( * */ public com.google.cloud.biglake.v1.IcebergCatalog updateIcebergCatalog( - com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.UpdateIcebergCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIcebergCatalogMethod(), getCallOptions(), request); } @@ -2269,8 +2283,9 @@ public com.google.cloud.biglake.v1.IcebergCatalog updateIcebergCatalog( * */ public com.google.cloud.biglake.v1.IcebergCatalog createIcebergCatalog( - com.google.cloud.biglake.v1.CreateIcebergCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.CreateIcebergCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIcebergCatalogMethod(), getCallOptions(), request); } @@ -2282,8 +2297,9 @@ public com.google.cloud.biglake.v1.IcebergCatalog createIcebergCatalog( * */ public com.google.cloud.biglake.v1.FailoverIcebergCatalogResponse failoverIcebergCatalog( - com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.biglake.v1.FailoverIcebergCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFailoverIcebergCatalogMethod(), getCallOptions(), request); } } diff --git a/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceGrpc.java b/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceGrpc.java index 6198ea542ff2..b3b7b8d79d62 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceGrpc.java +++ b/java-biglake/grpc-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceGrpc.java @@ -31,9 +31,6 @@ * * Each database has a collection of tables: `/tables/*` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/biglake/v1/metastore.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MetastoreServiceGrpc { @@ -1351,8 +1348,9 @@ protected MetastoreServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.biglake.v1.Catalog createCatalog( - com.google.cloud.bigquery.biglake.v1.CreateCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.CreateCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCatalogMethod(), getCallOptions(), request); } @@ -1364,8 +1362,9 @@ public com.google.cloud.bigquery.biglake.v1.Catalog createCatalog( * */ public com.google.cloud.bigquery.biglake.v1.Catalog deleteCatalog( - com.google.cloud.bigquery.biglake.v1.DeleteCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.DeleteCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCatalogMethod(), getCallOptions(), request); } @@ -1377,8 +1376,9 @@ public com.google.cloud.bigquery.biglake.v1.Catalog deleteCatalog( * */ public com.google.cloud.bigquery.biglake.v1.Catalog getCatalog( - com.google.cloud.bigquery.biglake.v1.GetCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.GetCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCatalogMethod(), getCallOptions(), request); } @@ -1390,8 +1390,9 @@ public com.google.cloud.bigquery.biglake.v1.Catalog getCatalog( * */ public com.google.cloud.bigquery.biglake.v1.ListCatalogsResponse listCatalogs( - com.google.cloud.bigquery.biglake.v1.ListCatalogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.ListCatalogsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCatalogsMethod(), getCallOptions(), request); } @@ -1403,8 +1404,9 @@ public com.google.cloud.bigquery.biglake.v1.ListCatalogsResponse listCatalogs( * */ public com.google.cloud.bigquery.biglake.v1.Database createDatabase( - com.google.cloud.bigquery.biglake.v1.CreateDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.CreateDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatabaseMethod(), getCallOptions(), request); } @@ -1416,8 +1418,9 @@ public com.google.cloud.bigquery.biglake.v1.Database createDatabase( * */ public com.google.cloud.bigquery.biglake.v1.Database deleteDatabase( - com.google.cloud.bigquery.biglake.v1.DeleteDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.DeleteDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatabaseMethod(), getCallOptions(), request); } @@ -1429,8 +1432,9 @@ public com.google.cloud.bigquery.biglake.v1.Database deleteDatabase( * */ public com.google.cloud.bigquery.biglake.v1.Database updateDatabase( - com.google.cloud.bigquery.biglake.v1.UpdateDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.UpdateDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatabaseMethod(), getCallOptions(), request); } @@ -1442,8 +1446,9 @@ public com.google.cloud.bigquery.biglake.v1.Database updateDatabase( * */ public com.google.cloud.bigquery.biglake.v1.Database getDatabase( - com.google.cloud.bigquery.biglake.v1.GetDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.GetDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatabaseMethod(), getCallOptions(), request); } @@ -1455,8 +1460,9 @@ public com.google.cloud.bigquery.biglake.v1.Database getDatabase( * */ public com.google.cloud.bigquery.biglake.v1.ListDatabasesResponse listDatabases( - com.google.cloud.bigquery.biglake.v1.ListDatabasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.ListDatabasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatabasesMethod(), getCallOptions(), request); } @@ -1468,8 +1474,9 @@ public com.google.cloud.bigquery.biglake.v1.ListDatabasesResponse listDatabases( * */ public com.google.cloud.bigquery.biglake.v1.Table createTable( - com.google.cloud.bigquery.biglake.v1.CreateTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.CreateTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTableMethod(), getCallOptions(), request); } @@ -1481,8 +1488,9 @@ public com.google.cloud.bigquery.biglake.v1.Table createTable( * */ public com.google.cloud.bigquery.biglake.v1.Table deleteTable( - com.google.cloud.bigquery.biglake.v1.DeleteTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.DeleteTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTableMethod(), getCallOptions(), request); } @@ -1494,8 +1502,9 @@ public com.google.cloud.bigquery.biglake.v1.Table deleteTable( * */ public com.google.cloud.bigquery.biglake.v1.Table updateTable( - com.google.cloud.bigquery.biglake.v1.UpdateTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.UpdateTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTableMethod(), getCallOptions(), request); } @@ -1507,8 +1516,9 @@ public com.google.cloud.bigquery.biglake.v1.Table updateTable( * */ public com.google.cloud.bigquery.biglake.v1.Table renameTable( - com.google.cloud.bigquery.biglake.v1.RenameTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.RenameTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameTableMethod(), getCallOptions(), request); } @@ -1520,8 +1530,9 @@ public com.google.cloud.bigquery.biglake.v1.Table renameTable( * */ public com.google.cloud.bigquery.biglake.v1.Table getTable( - com.google.cloud.bigquery.biglake.v1.GetTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.GetTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTableMethod(), getCallOptions(), request); } @@ -1533,8 +1544,9 @@ public com.google.cloud.bigquery.biglake.v1.Table getTable( * */ public com.google.cloud.bigquery.biglake.v1.ListTablesResponse listTables( - com.google.cloud.bigquery.biglake.v1.ListTablesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1.ListTablesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTablesMethod(), getCallOptions(), request); } } diff --git a/java-biglake/grpc-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceGrpc.java b/java-biglake/grpc-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceGrpc.java index 27b837562a95..3c22657aef44 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceGrpc.java +++ b/java-biglake/grpc-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceGrpc.java @@ -31,9 +31,6 @@ * * Each database has a collection of tables: `/tables/*` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/biglake/v1alpha1/metastore.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MetastoreServiceGrpc { @@ -1671,8 +1668,9 @@ protected MetastoreServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Catalog createCatalog( - com.google.cloud.bigquery.biglake.v1alpha1.CreateCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.CreateCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCatalogMethod(), getCallOptions(), request); } @@ -1684,8 +1682,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Catalog createCatalog( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Catalog deleteCatalog( - com.google.cloud.bigquery.biglake.v1alpha1.DeleteCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.DeleteCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCatalogMethod(), getCallOptions(), request); } @@ -1697,8 +1696,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Catalog deleteCatalog( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Catalog getCatalog( - com.google.cloud.bigquery.biglake.v1alpha1.GetCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.GetCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCatalogMethod(), getCallOptions(), request); } @@ -1710,8 +1710,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Catalog getCatalog( * */ public com.google.cloud.bigquery.biglake.v1alpha1.ListCatalogsResponse listCatalogs( - com.google.cloud.bigquery.biglake.v1alpha1.ListCatalogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.ListCatalogsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCatalogsMethod(), getCallOptions(), request); } @@ -1723,8 +1724,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.ListCatalogsResponse listCatal * */ public com.google.cloud.bigquery.biglake.v1alpha1.Database createDatabase( - com.google.cloud.bigquery.biglake.v1alpha1.CreateDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.CreateDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatabaseMethod(), getCallOptions(), request); } @@ -1736,8 +1738,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Database createDatabase( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Database deleteDatabase( - com.google.cloud.bigquery.biglake.v1alpha1.DeleteDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.DeleteDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatabaseMethod(), getCallOptions(), request); } @@ -1749,8 +1752,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Database deleteDatabase( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Database updateDatabase( - com.google.cloud.bigquery.biglake.v1alpha1.UpdateDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.UpdateDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatabaseMethod(), getCallOptions(), request); } @@ -1762,8 +1766,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Database updateDatabase( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Database getDatabase( - com.google.cloud.bigquery.biglake.v1alpha1.GetDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.GetDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatabaseMethod(), getCallOptions(), request); } @@ -1775,8 +1780,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Database getDatabase( * */ public com.google.cloud.bigquery.biglake.v1alpha1.ListDatabasesResponse listDatabases( - com.google.cloud.bigquery.biglake.v1alpha1.ListDatabasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.ListDatabasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatabasesMethod(), getCallOptions(), request); } @@ -1788,8 +1794,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.ListDatabasesResponse listData * */ public com.google.cloud.bigquery.biglake.v1alpha1.Table createTable( - com.google.cloud.bigquery.biglake.v1alpha1.CreateTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.CreateTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTableMethod(), getCallOptions(), request); } @@ -1801,8 +1808,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Table createTable( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Table deleteTable( - com.google.cloud.bigquery.biglake.v1alpha1.DeleteTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.DeleteTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTableMethod(), getCallOptions(), request); } @@ -1814,8 +1822,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Table deleteTable( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Table updateTable( - com.google.cloud.bigquery.biglake.v1alpha1.UpdateTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.UpdateTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTableMethod(), getCallOptions(), request); } @@ -1827,8 +1836,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Table updateTable( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Table renameTable( - com.google.cloud.bigquery.biglake.v1alpha1.RenameTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.RenameTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameTableMethod(), getCallOptions(), request); } @@ -1840,8 +1850,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Table renameTable( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Table getTable( - com.google.cloud.bigquery.biglake.v1alpha1.GetTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.GetTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTableMethod(), getCallOptions(), request); } @@ -1853,8 +1864,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Table getTable( * */ public com.google.cloud.bigquery.biglake.v1alpha1.ListTablesResponse listTables( - com.google.cloud.bigquery.biglake.v1alpha1.ListTablesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.ListTablesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTablesMethod(), getCallOptions(), request); } @@ -1866,8 +1878,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.ListTablesResponse listTables( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Lock createLock( - com.google.cloud.bigquery.biglake.v1alpha1.CreateLockRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.CreateLockRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateLockMethod(), getCallOptions(), request); } @@ -1879,8 +1892,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Lock createLock( * */ public com.google.protobuf.Empty deleteLock( - com.google.cloud.bigquery.biglake.v1alpha1.DeleteLockRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.DeleteLockRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLockMethod(), getCallOptions(), request); } @@ -1892,8 +1906,9 @@ public com.google.protobuf.Empty deleteLock( * */ public com.google.cloud.bigquery.biglake.v1alpha1.Lock checkLock( - com.google.cloud.bigquery.biglake.v1alpha1.CheckLockRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.CheckLockRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckLockMethod(), getCallOptions(), request); } @@ -1905,8 +1920,9 @@ public com.google.cloud.bigquery.biglake.v1alpha1.Lock checkLock( * */ public com.google.cloud.bigquery.biglake.v1alpha1.ListLocksResponse listLocks( - com.google.cloud.bigquery.biglake.v1alpha1.ListLocksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.biglake.v1alpha1.ListLocksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLocksMethod(), getCallOptions(), request); } } diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 30172df4c6e7..4adb501ea090 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.72.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.73.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.73.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java index 41d12108bad4..96ac8a4488ab 100644 --- a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java +++ b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java @@ -29,9 +29,6 @@ * dataset in your project. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AnalyticsHubServiceGrpc { @@ -1376,8 +1373,9 @@ protected AnalyticsHubServiceBlockingV2Stub build( */ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse listDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataExchangesMethod(), getCallOptions(), request); } @@ -1391,8 +1389,9 @@ protected AnalyticsHubServiceBlockingV2Stub build( */ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse listOrgDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrgDataExchangesMethod(), getCallOptions(), request); } @@ -1404,8 +1403,9 @@ protected AnalyticsHubServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataExchangeMethod(), getCallOptions(), request); } @@ -1417,8 +1417,9 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan * */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange createDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataExchangeMethod(), getCallOptions(), request); } @@ -1430,8 +1431,9 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange createDataExc * */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange updateDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataExchangeMethod(), getCallOptions(), request); } @@ -1443,8 +1445,9 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange updateDataExc * */ public com.google.protobuf.Empty deleteDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataExchangeMethod(), getCallOptions(), request); } @@ -1456,8 +1459,9 @@ public com.google.protobuf.Empty deleteDataExchange( * */ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse listListings( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListListingsMethod(), getCallOptions(), request); } @@ -1469,8 +1473,9 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse listL * */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetListingMethod(), getCallOptions(), request); } @@ -1482,8 +1487,9 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing( * */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing createListing( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateListingMethod(), getCallOptions(), request); } @@ -1495,8 +1501,9 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing createListing( * */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing updateListing( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateListingMethod(), getCallOptions(), request); } @@ -1508,8 +1515,9 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing updateListing( * */ public com.google.protobuf.Empty deleteListing( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteListingMethod(), getCallOptions(), request); } @@ -1525,8 +1533,9 @@ public com.google.protobuf.Empty deleteListing( * */ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse subscribeListing( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubscribeListingMethod(), getCallOptions(), request); } @@ -1537,8 +1546,9 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse s * Gets the IAM policy. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1549,8 +1559,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1562,8 +1573,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index dd1346d51022..eae4cfef1bea 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.79.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.79.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java index b86610f1f914..edbe75dcfe19 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java @@ -24,9 +24,6 @@ * Manages external data source connections and credentials. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1/connection.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConnectionServiceGrpc { @@ -790,8 +787,9 @@ protected ConnectionServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.connection.v1.Connection createConnection( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectionMethod(), getCallOptions(), request); } @@ -803,8 +801,9 @@ public com.google.cloud.bigquery.connection.v1.Connection createConnection( * */ public com.google.cloud.bigquery.connection.v1.Connection getConnection( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionMethod(), getCallOptions(), request); } @@ -816,8 +815,9 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnection( * */ public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConnections( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectionsMethod(), getCallOptions(), request); } @@ -830,8 +830,9 @@ public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConne * */ public com.google.cloud.bigquery.connection.v1.Connection updateConnection( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); } @@ -843,8 +844,9 @@ public com.google.cloud.bigquery.connection.v1.Connection updateConnection( * */ public com.google.protobuf.Empty deleteConnection( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); } @@ -857,8 +859,9 @@ public com.google.protobuf.Empty deleteConnection( * set. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -871,8 +874,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -889,8 +893,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java index e9ed0c45eaa5..071eabba2852 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java @@ -24,9 +24,6 @@ * Manages external data source connections and credentials. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1beta1/connection.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConnectionServiceGrpc { @@ -915,8 +912,9 @@ protected ConnectionServiceBlockingV2Stub build( */ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection createConnection( com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectionMethod(), getCallOptions(), request); } @@ -928,8 +926,9 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection c * */ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionMethod(), getCallOptions(), request); } @@ -943,8 +942,9 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse listConnections( com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectionsMethod(), getCallOptions(), request); } @@ -958,8 +958,9 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g */ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection updateConnection( com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); } @@ -973,8 +974,9 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection u public com.google.protobuf.Empty updateConnectionCredential( com.google.cloud.bigquery.connection.v1beta1.ConnectionProto .UpdateConnectionCredentialRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectionCredentialMethod(), getCallOptions(), request); } @@ -987,8 +989,9 @@ public com.google.protobuf.Empty updateConnectionCredential( */ public com.google.protobuf.Empty deleteConnection( com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); } @@ -1001,8 +1004,9 @@ public com.google.protobuf.Empty deleteConnection( * set. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1015,8 +1019,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1033,8 +1038,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index b95f634f3be8..6478399d66f4 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.74.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.74.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.75.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceGrpc.java b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceGrpc.java index 0acb050d40a5..88aa9147330d 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceGrpc.java +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceGrpc.java @@ -24,9 +24,6 @@ * Data Policy Service provides APIs for managing the label-policy bindings. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/datapolicies/v1/datapolicy.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataPolicyServiceGrpc { @@ -856,8 +853,9 @@ protected DataPolicyServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.datapolicies.v1.DataPolicy createDataPolicy( - com.google.cloud.bigquery.datapolicies.v1.CreateDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1.CreateDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataPolicyMethod(), getCallOptions(), request); } @@ -870,8 +868,9 @@ public com.google.cloud.bigquery.datapolicies.v1.DataPolicy createDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v1.DataPolicy updateDataPolicy( - com.google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataPolicyMethod(), getCallOptions(), request); } @@ -883,8 +882,9 @@ public com.google.cloud.bigquery.datapolicies.v1.DataPolicy updateDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v1.DataPolicy renameDataPolicy( - com.google.cloud.bigquery.datapolicies.v1.RenameDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1.RenameDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameDataPolicyMethod(), getCallOptions(), request); } @@ -896,8 +896,9 @@ public com.google.cloud.bigquery.datapolicies.v1.DataPolicy renameDataPolicy( * */ public com.google.protobuf.Empty deleteDataPolicy( - com.google.cloud.bigquery.datapolicies.v1.DeleteDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1.DeleteDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataPolicyMethod(), getCallOptions(), request); } @@ -909,8 +910,9 @@ public com.google.protobuf.Empty deleteDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v1.DataPolicy getDataPolicy( - com.google.cloud.bigquery.datapolicies.v1.GetDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1.GetDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataPolicyMethod(), getCallOptions(), request); } @@ -922,8 +924,9 @@ public com.google.cloud.bigquery.datapolicies.v1.DataPolicy getDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesResponse listDataPolicies( - com.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataPoliciesMethod(), getCallOptions(), request); } @@ -934,8 +937,9 @@ public com.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesResponse listDa * Gets the IAM policy for the specified data policy. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -946,8 +950,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM policy for the specified data policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -959,8 +964,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceGrpc.java b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceGrpc.java index d3153108e698..949be8a6e134 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceGrpc.java +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceGrpc.java @@ -24,9 +24,6 @@ * Data Policy Service provides APIs for managing the label-policy bindings. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataPolicyServiceGrpc { @@ -777,8 +774,9 @@ protected DataPolicyServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy createDataPolicy( - com.google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataPolicyMethod(), getCallOptions(), request); } @@ -791,8 +789,9 @@ public com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy createDataPolic * */ public com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy updateDataPolicy( - com.google.cloud.bigquery.datapolicies.v1beta1.UpdateDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1beta1.UpdateDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataPolicyMethod(), getCallOptions(), request); } @@ -804,8 +803,9 @@ public com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy updateDataPolic * */ public com.google.protobuf.Empty deleteDataPolicy( - com.google.cloud.bigquery.datapolicies.v1beta1.DeleteDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1beta1.DeleteDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataPolicyMethod(), getCallOptions(), request); } @@ -817,8 +817,9 @@ public com.google.protobuf.Empty deleteDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy getDataPolicy( - com.google.cloud.bigquery.datapolicies.v1beta1.GetDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1beta1.GetDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataPolicyMethod(), getCallOptions(), request); } @@ -830,8 +831,9 @@ public com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy getDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesResponse listDataPolicies( - com.google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataPoliciesMethod(), getCallOptions(), request); } @@ -842,8 +844,9 @@ public com.google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesResponse l * Gets the IAM policy for the specified data policy. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -854,8 +857,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM policy for the specified data policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -867,8 +871,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceGrpc.java b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceGrpc.java index 0aae42a3cdfd..419436ee6371 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceGrpc.java +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceGrpc.java @@ -24,9 +24,6 @@ * Data Policy Service provides APIs for managing the BigQuery Data Policy. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/datapolicies/v2/datapolicy.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataPolicyServiceGrpc { @@ -949,8 +946,9 @@ protected DataPolicyServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy createDataPolicy( - com.google.cloud.bigquery.datapolicies.v2.CreateDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2.CreateDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataPolicyMethod(), getCallOptions(), request); } @@ -966,8 +964,9 @@ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy createDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy addGrantees( - com.google.cloud.bigquery.datapolicies.v2.AddGranteesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2.AddGranteesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddGranteesMethod(), getCallOptions(), request); } @@ -982,8 +981,9 @@ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy addGrantees( * */ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy removeGrantees( - com.google.cloud.bigquery.datapolicies.v2.RemoveGranteesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2.RemoveGranteesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveGranteesMethod(), getCallOptions(), request); } @@ -996,8 +996,9 @@ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy removeGrantees( * */ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy updateDataPolicy( - com.google.cloud.bigquery.datapolicies.v2.UpdateDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2.UpdateDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataPolicyMethod(), getCallOptions(), request); } @@ -1009,8 +1010,9 @@ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy updateDataPolicy( * */ public com.google.protobuf.Empty deleteDataPolicy( - com.google.cloud.bigquery.datapolicies.v2.DeleteDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2.DeleteDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataPolicyMethod(), getCallOptions(), request); } @@ -1022,8 +1024,9 @@ public com.google.protobuf.Empty deleteDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy getDataPolicy( - com.google.cloud.bigquery.datapolicies.v2.GetDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2.GetDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataPolicyMethod(), getCallOptions(), request); } @@ -1035,8 +1038,9 @@ public com.google.cloud.bigquery.datapolicies.v2.DataPolicy getDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v2.ListDataPoliciesResponse listDataPolicies( - com.google.cloud.bigquery.datapolicies.v2.ListDataPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2.ListDataPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataPoliciesMethod(), getCallOptions(), request); } @@ -1047,8 +1051,9 @@ public com.google.cloud.bigquery.datapolicies.v2.ListDataPoliciesResponse listDa * Gets the IAM policy for the specified data policy. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1059,8 +1064,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM policy for the specified data policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1072,8 +1078,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceGrpc.java b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceGrpc.java index b4d0e4eab2b0..3929c748ad3c 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceGrpc.java +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceGrpc.java @@ -24,9 +24,6 @@ * Data Policy Service provides APIs for managing the BigQuery Data Policy. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataPolicyServiceGrpc { @@ -949,8 +946,9 @@ protected DataPolicyServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy createDataPolicy( - com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataPolicyMethod(), getCallOptions(), request); } @@ -966,8 +964,9 @@ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy createDataPolic * */ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy addGrantees( - com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddGranteesMethod(), getCallOptions(), request); } @@ -982,8 +981,9 @@ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy addGrantees( * */ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy removeGrantees( - com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveGranteesMethod(), getCallOptions(), request); } @@ -996,8 +996,9 @@ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy removeGrantees( * */ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy updateDataPolicy( - com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataPolicyMethod(), getCallOptions(), request); } @@ -1009,8 +1010,9 @@ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy updateDataPolic * */ public com.google.protobuf.Empty deleteDataPolicy( - com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataPolicyMethod(), getCallOptions(), request); } @@ -1022,8 +1024,9 @@ public com.google.protobuf.Empty deleteDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy( - com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataPolicyMethod(), getCallOptions(), request); } @@ -1035,8 +1038,9 @@ public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy( * */ public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse listDataPolicies( - com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataPoliciesMethod(), getCallOptions(), request); } @@ -1047,8 +1051,9 @@ public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse l * Gets the IAM policy for the specified data policy. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1059,8 +1064,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM policy for the specified data policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1072,8 +1078,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index aef9e2b7696c..15d2ac1728f8 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.77.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java index d1cc37e1dae2..cf8215ea278b 100644 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java +++ b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java @@ -24,9 +24,6 @@ * This API allows users to manage their data transfers into BigQuery. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataTransferServiceGrpc { @@ -1506,8 +1503,9 @@ protected DataTransferServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataSourceMethod(), getCallOptions(), request); } @@ -1519,8 +1517,9 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource( * */ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse listDataSources( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataSourcesMethod(), getCallOptions(), request); } @@ -1532,8 +1531,9 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse listDat * */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig createTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTransferConfigMethod(), getCallOptions(), request); } @@ -1546,8 +1546,9 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig createTransferCo * */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig updateTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTransferConfigMethod(), getCallOptions(), request); } @@ -1560,8 +1561,9 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig updateTransferCo * */ public com.google.protobuf.Empty deleteTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTransferConfigMethod(), getCallOptions(), request); } @@ -1573,8 +1575,9 @@ public com.google.protobuf.Empty deleteTransferConfig( * */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig( - com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTransferConfigMethod(), getCallOptions(), request); } @@ -1588,8 +1591,9 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi */ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse listTransferConfigs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTransferConfigsMethod(), getCallOptions(), request); } @@ -1607,8 +1611,9 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi @java.lang.Deprecated public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse scheduleTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getScheduleTransferRunsMethod(), getCallOptions(), request); } @@ -1624,8 +1629,9 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi */ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse startManualTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartManualTransferRunsMethod(), getCallOptions(), request); } @@ -1637,8 +1643,9 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi * */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRun( - com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTransferRunMethod(), getCallOptions(), request); } @@ -1650,8 +1657,9 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRun( * */ public com.google.protobuf.Empty deleteTransferRun( - com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTransferRunMethod(), getCallOptions(), request); } @@ -1663,8 +1671,9 @@ public com.google.protobuf.Empty deleteTransferRun( * */ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse listTransferRuns( - com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTransferRunsMethod(), getCallOptions(), request); } @@ -1676,8 +1685,9 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse listTr * */ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse listTransferLogs( - com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTransferLogsMethod(), getCallOptions(), request); } @@ -1690,8 +1700,9 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse listTr * */ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse checkValidCreds( - com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckValidCredsMethod(), getCallOptions(), request); } @@ -1710,8 +1721,9 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse checkVa * */ public com.google.protobuf.Empty enrollDataSources( - com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnrollDataSourcesMethod(), getCallOptions(), request); } @@ -1727,8 +1739,9 @@ public com.google.protobuf.Empty enrollDataSources( * */ public com.google.protobuf.Empty unenrollDataSources( - com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnenrollDataSourcesMethod(), getCallOptions(), request); } } diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index 50e4570bf576..d2d2ac0f0062 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.80.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.81.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java index 9707d323f765..7e7a8d49045d 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java @@ -24,9 +24,6 @@ * Service to handle EDW migrations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/migration/v2/migration_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MigrationServiceGrpc { @@ -743,8 +740,9 @@ protected MigrationServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow createMigrationWorkflow( - com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMigrationWorkflowMethod(), getCallOptions(), request); } @@ -756,8 +754,9 @@ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow createMigrationW * */ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflow( - com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMigrationWorkflowMethod(), getCallOptions(), request); } @@ -770,8 +769,9 @@ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWork */ public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse listMigrationWorkflows( - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMigrationWorkflowsMethod(), getCallOptions(), request); } @@ -783,8 +783,9 @@ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWork * */ public com.google.protobuf.Empty deleteMigrationWorkflow( - com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMigrationWorkflowMethod(), getCallOptions(), request); } @@ -799,8 +800,9 @@ public com.google.protobuf.Empty deleteMigrationWorkflow( * */ public com.google.protobuf.Empty startMigrationWorkflow( - com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartMigrationWorkflowMethod(), getCallOptions(), request); } @@ -812,8 +814,9 @@ public com.google.protobuf.Empty startMigrationWorkflow( * */ public com.google.cloud.bigquery.migration.v2.MigrationSubtask getMigrationSubtask( - com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMigrationSubtaskMethod(), getCallOptions(), request); } @@ -826,8 +829,9 @@ public com.google.cloud.bigquery.migration.v2.MigrationSubtask getMigrationSubta */ public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse listMigrationSubtasks( - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMigrationSubtasksMethod(), getCallOptions(), request); } } diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java index 6d9f7ed505c9..29a44ff76e27 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java @@ -24,9 +24,6 @@ * Service to handle EDW migrations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/migration/v2alpha/migration_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MigrationServiceGrpc { @@ -748,8 +745,9 @@ protected MigrationServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow createMigrationWorkflow( - com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMigrationWorkflowMethod(), getCallOptions(), request); } @@ -761,8 +759,9 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow createMigra * */ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflow( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMigrationWorkflowMethod(), getCallOptions(), request); } @@ -775,8 +774,9 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigratio */ public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse listMigrationWorkflows( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMigrationWorkflowsMethod(), getCallOptions(), request); } @@ -788,8 +788,9 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigratio * */ public com.google.protobuf.Empty deleteMigrationWorkflow( - com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMigrationWorkflowMethod(), getCallOptions(), request); } @@ -804,8 +805,9 @@ public com.google.protobuf.Empty deleteMigrationWorkflow( * */ public com.google.protobuf.Empty startMigrationWorkflow( - com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartMigrationWorkflowMethod(), getCallOptions(), request); } @@ -817,8 +819,9 @@ public com.google.protobuf.Empty startMigrationWorkflow( * */ public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigrationSubtask( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMigrationSubtaskMethod(), getCallOptions(), request); } @@ -831,8 +834,9 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigration */ public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse listMigrationSubtasks( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMigrationSubtasksMethod(), getCallOptions(), request); } } diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java index a6b5027a7858..d93c3bd9d415 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java @@ -24,9 +24,6 @@ * Provides other SQL dialects to GoogleSQL translation operations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/migration/v2alpha/translation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SqlTranslationServiceGrpc { @@ -245,8 +242,9 @@ protected SqlTranslationServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse translateQuery( - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTranslateQueryMethod(), getCallOptions(), request); } } diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 84c91bed9d39..3f406aabd58a 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.78.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceGrpc.java b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceGrpc.java index 294532db75b0..808c6eea7502 100644 --- a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceGrpc.java +++ b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceGrpc.java @@ -36,9 +36,6 @@ * `projects/myproject/locations/US/capacityCommitments/id`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/reservation/v1/reservation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReservationServiceGrpc { @@ -2830,8 +2827,9 @@ protected ReservationServiceBlockingV2Stub build( * */ public com.google.cloud.bigquery.reservation.v1.Reservation createReservation( - com.google.cloud.bigquery.reservation.v1.CreateReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.CreateReservationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReservationMethod(), getCallOptions(), request); } @@ -2843,8 +2841,9 @@ public com.google.cloud.bigquery.reservation.v1.Reservation createReservation( * */ public com.google.cloud.bigquery.reservation.v1.ListReservationsResponse listReservations( - com.google.cloud.bigquery.reservation.v1.ListReservationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.ListReservationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReservationsMethod(), getCallOptions(), request); } @@ -2856,8 +2855,9 @@ public com.google.cloud.bigquery.reservation.v1.ListReservationsResponse listRes * */ public com.google.cloud.bigquery.reservation.v1.Reservation getReservation( - com.google.cloud.bigquery.reservation.v1.GetReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.GetReservationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReservationMethod(), getCallOptions(), request); } @@ -2871,8 +2871,9 @@ public com.google.cloud.bigquery.reservation.v1.Reservation getReservation( * */ public com.google.protobuf.Empty deleteReservation( - com.google.cloud.bigquery.reservation.v1.DeleteReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.DeleteReservationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReservationMethod(), getCallOptions(), request); } @@ -2884,8 +2885,9 @@ public com.google.protobuf.Empty deleteReservation( * */ public com.google.cloud.bigquery.reservation.v1.Reservation updateReservation( - com.google.cloud.bigquery.reservation.v1.UpdateReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.UpdateReservationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReservationMethod(), getCallOptions(), request); } @@ -2901,8 +2903,9 @@ public com.google.cloud.bigquery.reservation.v1.Reservation updateReservation( * */ public com.google.cloud.bigquery.reservation.v1.Reservation failoverReservation( - com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFailoverReservationMethod(), getCallOptions(), request); } @@ -2914,8 +2917,9 @@ public com.google.cloud.bigquery.reservation.v1.Reservation failoverReservation( * */ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment createCapacityCommitment( - com.google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCapacityCommitmentMethod(), getCallOptions(), request); } @@ -2928,8 +2932,9 @@ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment createCapacit */ public com.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse listCapacityCommitments( - com.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCapacityCommitmentsMethod(), getCallOptions(), request); } @@ -2941,8 +2946,9 @@ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment createCapacit * */ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment getCapacityCommitment( - com.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCapacityCommitmentMethod(), getCallOptions(), request); } @@ -2956,8 +2962,9 @@ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment getCapacityCo * */ public com.google.protobuf.Empty deleteCapacityCommitment( - com.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCapacityCommitmentMethod(), getCallOptions(), request); } @@ -2973,8 +2980,9 @@ public com.google.protobuf.Empty deleteCapacityCommitment( * */ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment updateCapacityCommitment( - com.google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.UpdateCapacityCommitmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCapacityCommitmentMethod(), getCallOptions(), request); } @@ -2992,8 +3000,9 @@ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment updateCapacit */ public com.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse splitCapacityCommitment( - com.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSplitCapacityCommitmentMethod(), getCallOptions(), request); } @@ -3009,8 +3018,9 @@ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment updateCapacit * */ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment mergeCapacityCommitments( - com.google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMergeCapacityCommitmentsMethod(), getCallOptions(), request); } @@ -3048,8 +3058,9 @@ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment mergeCapacity * */ public com.google.cloud.bigquery.reservation.v1.Assignment createAssignment( - com.google.cloud.bigquery.reservation.v1.CreateAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.CreateAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAssignmentMethod(), getCallOptions(), request); } @@ -3075,8 +3086,9 @@ public com.google.cloud.bigquery.reservation.v1.Assignment createAssignment( * */ public com.google.cloud.bigquery.reservation.v1.ListAssignmentsResponse listAssignments( - com.google.cloud.bigquery.reservation.v1.ListAssignmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.ListAssignmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssignmentsMethod(), getCallOptions(), request); } @@ -3099,8 +3111,9 @@ public com.google.cloud.bigquery.reservation.v1.ListAssignmentsResponse listAssi * */ public com.google.protobuf.Empty deleteAssignment( - com.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAssignmentMethod(), getCallOptions(), request); } @@ -3129,8 +3142,9 @@ public com.google.protobuf.Empty deleteAssignment( */ @java.lang.Deprecated public com.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse searchAssignments( - com.google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchAssignmentsMethod(), getCallOptions(), request); } @@ -3157,8 +3171,9 @@ public com.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse search */ public com.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse searchAllAssignments( - com.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchAllAssignmentsMethod(), getCallOptions(), request); } @@ -3173,8 +3188,9 @@ public com.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse search * */ public com.google.cloud.bigquery.reservation.v1.Assignment moveAssignment( - com.google.cloud.bigquery.reservation.v1.MoveAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.MoveAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveAssignmentMethod(), getCallOptions(), request); } @@ -3187,8 +3203,9 @@ public com.google.cloud.bigquery.reservation.v1.Assignment moveAssignment( * */ public com.google.cloud.bigquery.reservation.v1.Assignment updateAssignment( - com.google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAssignmentMethod(), getCallOptions(), request); } @@ -3200,8 +3217,9 @@ public com.google.cloud.bigquery.reservation.v1.Assignment updateAssignment( * */ public com.google.cloud.bigquery.reservation.v1.BiReservation getBiReservation( - com.google.cloud.bigquery.reservation.v1.GetBiReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.GetBiReservationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBiReservationMethod(), getCallOptions(), request); } @@ -3218,8 +3236,9 @@ public com.google.cloud.bigquery.reservation.v1.BiReservation getBiReservation( * */ public com.google.cloud.bigquery.reservation.v1.BiReservation updateBiReservation( - com.google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.UpdateBiReservationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBiReservationMethod(), getCallOptions(), request); } @@ -3240,8 +3259,9 @@ public com.google.cloud.bigquery.reservation.v1.BiReservation updateBiReservatio * reservations. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -3258,8 +3278,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * reservations. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -3275,8 +3296,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -3288,8 +3309,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.bigquery.reservation.v1.ReservationGroup createReservationGroup( - com.google.cloud.bigquery.reservation.v1.CreateReservationGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.CreateReservationGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReservationGroupMethod(), getCallOptions(), request); } @@ -3301,8 +3323,9 @@ public com.google.cloud.bigquery.reservation.v1.ReservationGroup createReservati * */ public com.google.cloud.bigquery.reservation.v1.ReservationGroup getReservationGroup( - com.google.cloud.bigquery.reservation.v1.GetReservationGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.GetReservationGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReservationGroupMethod(), getCallOptions(), request); } @@ -3316,8 +3339,9 @@ public com.google.cloud.bigquery.reservation.v1.ReservationGroup getReservationG * */ public com.google.protobuf.Empty deleteReservationGroup( - com.google.cloud.bigquery.reservation.v1.DeleteReservationGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.DeleteReservationGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReservationGroupMethod(), getCallOptions(), request); } @@ -3330,8 +3354,9 @@ public com.google.protobuf.Empty deleteReservationGroup( */ public com.google.cloud.bigquery.reservation.v1.ListReservationGroupsResponse listReservationGroups( - com.google.cloud.bigquery.reservation.v1.ListReservationGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.bigquery.reservation.v1.ListReservationGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReservationGroupsMethod(), getCallOptions(), request); } } diff --git a/java-billing/README.md b/java-billing/README.md index 36389fc508f5..70c7bc7480f6 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.77.0' +implementation 'com.google.cloud:google-cloud-billing:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java b/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java index 29fc6e56286e..338d3d81473d 100644 --- a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java +++ b/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java @@ -25,9 +25,6 @@ * projects. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/billing/v1/cloud_billing.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudBillingGrpc { @@ -1140,8 +1137,9 @@ protected CloudBillingBlockingV2Stub build( * */ public com.google.cloud.billing.v1.BillingAccount getBillingAccount( - com.google.cloud.billing.v1.GetBillingAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.GetBillingAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBillingAccountMethod(), getCallOptions(), request); } @@ -1155,8 +1153,9 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccount( * */ public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccounts( - com.google.cloud.billing.v1.ListBillingAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.ListBillingAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBillingAccountsMethod(), getCallOptions(), request); } @@ -1173,8 +1172,9 @@ public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccoun * */ public com.google.cloud.billing.v1.BillingAccount updateBillingAccount( - com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.UpdateBillingAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBillingAccountMethod(), getCallOptions(), request); } @@ -1198,8 +1198,9 @@ public com.google.cloud.billing.v1.BillingAccount updateBillingAccount( * */ public com.google.cloud.billing.v1.BillingAccount createBillingAccount( - com.google.cloud.billing.v1.CreateBillingAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.CreateBillingAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBillingAccountMethod(), getCallOptions(), request); } @@ -1214,8 +1215,9 @@ public com.google.cloud.billing.v1.BillingAccount createBillingAccount( * */ public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBillingInfo( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProjectBillingInfoMethod(), getCallOptions(), request); } @@ -1231,8 +1233,9 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBil * */ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProjectBillingInfoMethod(), getCallOptions(), request); } @@ -1271,8 +1274,9 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo( * */ public com.google.cloud.billing.v1.ProjectBillingInfo updateProjectBillingInfo( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProjectBillingInfoMethod(), getCallOptions(), request); } @@ -1286,8 +1290,9 @@ public com.google.cloud.billing.v1.ProjectBillingInfo updateProjectBillingInfo( * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1302,8 +1307,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1317,8 +1323,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -1330,8 +1336,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.billing.v1.BillingAccount moveBillingAccount( - com.google.cloud.billing.v1.MoveBillingAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.MoveBillingAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveBillingAccountMethod(), getCallOptions(), request); } } diff --git a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java b/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java index b93542791810..bbee52e020b6 100644 --- a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java +++ b/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java @@ -26,9 +26,6 @@ * and SKUs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/billing/v1/cloud_catalog.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudCatalogGrpc { @@ -319,8 +316,8 @@ protected CloudCatalogBlockingV2Stub build( * */ public com.google.cloud.billing.v1.ListServicesResponse listServices( - com.google.cloud.billing.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.ListServicesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -332,8 +329,8 @@ public com.google.cloud.billing.v1.ListServicesResponse listServices( * */ public com.google.cloud.billing.v1.ListSkusResponse listSkus( - com.google.cloud.billing.v1.ListSkusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.v1.ListSkusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSkusMethod(), getCallOptions(), request); } } diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index ac0f060b692f..b10a86f2d700 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.77.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java index 8ba8066bf822..76a0764cad03 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceGrpc.java @@ -25,9 +25,6 @@ * budget plan and rules to execute as we track spend against that plan. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/billing/budgets/v1/budget_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BudgetServiceGrpc { @@ -570,8 +567,9 @@ protected BudgetServiceBlockingV2Stub build( * */ public com.google.cloud.billing.budgets.v1.Budget createBudget( - com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1.CreateBudgetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } @@ -586,8 +584,9 @@ public com.google.cloud.billing.budgets.v1.Budget createBudget( * */ public com.google.cloud.billing.budgets.v1.Budget updateBudget( - com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1.UpdateBudgetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } @@ -603,8 +602,9 @@ public com.google.cloud.billing.budgets.v1.Budget updateBudget( * */ public com.google.cloud.billing.budgets.v1.Budget getBudget( - com.google.cloud.billing.budgets.v1.GetBudgetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1.GetBudgetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } @@ -620,8 +620,9 @@ public com.google.cloud.billing.budgets.v1.Budget getBudget( * */ public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets( - com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1.ListBudgetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } @@ -633,8 +634,9 @@ public com.google.cloud.billing.budgets.v1.ListBudgetsResponse listBudgets( * */ public com.google.protobuf.Empty deleteBudget( - com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1.DeleteBudgetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } } diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java index abe96f222d68..29a6fdbada95 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java @@ -25,9 +25,6 @@ * budget plan and rules to execute as we track spend against that plan. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/billing/budgets/v1beta1/budget_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BudgetServiceGrpc { @@ -576,8 +573,9 @@ protected BudgetServiceBlockingV2Stub build( * */ public com.google.cloud.billing.budgets.v1beta1.Budget createBudget( - com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1beta1.CreateBudgetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBudgetMethod(), getCallOptions(), request); } @@ -592,8 +590,9 @@ public com.google.cloud.billing.budgets.v1beta1.Budget createBudget( * */ public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget( - com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1beta1.UpdateBudgetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBudgetMethod(), getCallOptions(), request); } @@ -609,8 +608,9 @@ public com.google.cloud.billing.budgets.v1beta1.Budget updateBudget( * */ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget( - com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1beta1.GetBudgetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBudgetMethod(), getCallOptions(), request); } @@ -626,8 +626,9 @@ public com.google.cloud.billing.budgets.v1beta1.Budget getBudget( * */ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets( - com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1beta1.ListBudgetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBudgetsMethod(), getCallOptions(), request); } @@ -639,8 +640,9 @@ public com.google.cloud.billing.budgets.v1beta1.ListBudgetsResponse listBudgets( * */ public com.google.protobuf.Empty deleteBudget( - com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.billing.budgets.v1beta1.DeleteBudgetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBudgetMethod(), getCallOptions(), request); } } diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 0d739b1c40bf..78d6d3f18102 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.76.0 + 1.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.76.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java index d16c14b94d89..2d1f82cb602b 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java @@ -28,9 +28,6 @@ * * [Attestor][google.cloud.binaryauthorization.v1.Attestor] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BinauthzManagementServiceV1Grpc { @@ -806,8 +803,9 @@ protected BinauthzManagementServiceV1BlockingV2Stub build( * */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPolicyMethod(), getCallOptions(), request); } @@ -823,8 +821,9 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy ge * */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy updatePolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); } @@ -839,9 +838,9 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy up * */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor createAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAttestorMethod(), getCallOptions(), request); } @@ -854,8 +853,9 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttestorMethod(), getCallOptions(), request); } @@ -868,9 +868,9 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor updateAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAttestorMethod(), getCallOptions(), request); } @@ -885,8 +885,9 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse listAttestors( com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAttestorsMethod(), getCallOptions(), request); } @@ -899,9 +900,9 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * */ public com.google.protobuf.Empty deleteAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAttestorMethod(), getCallOptions(), request); } } diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java index e52f7861e357..ab4e3e55db30 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java @@ -24,9 +24,6 @@ * API for working with the system policy. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SystemPolicyV1Grpc { @@ -249,8 +246,9 @@ protected SystemPolicyV1BlockingV2Stub build( */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getSystemPolicy( com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSystemPolicyMethod(), getCallOptions(), request); } } diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java index 7217e5d07d81..9d0521ce8ec1 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java @@ -24,9 +24,6 @@ * BinAuthz Attestor verification * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ValidationHelperV1Grpc { @@ -276,8 +273,9 @@ protected ValidationHelperV1BlockingV2Stub build( validateAttestationOccurrence( com.google.protos.google.cloud.binaryauthorization.v1.Service .ValidateAttestationOccurrenceRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateAttestationOccurrenceMethod(), getCallOptions(), request); } } diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java index 01de6a9a3adf..76908c73f9cd 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java @@ -28,9 +28,6 @@ * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1beta1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BinauthzManagementServiceV1Beta1Grpc { @@ -795,8 +792,9 @@ protected BinauthzManagementServiceV1Beta1BlockingV2Stub build( * */ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPolicyMethod(), getCallOptions(), request); } @@ -812,8 +810,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy( * */ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); } @@ -828,8 +827,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy( * */ public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAttestorMethod(), getCallOptions(), request); } @@ -842,8 +842,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor( * */ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttestorMethod(), getCallOptions(), request); } @@ -856,8 +857,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor( * */ public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAttestorMethod(), getCallOptions(), request); } @@ -870,8 +872,9 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor( * */ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAttestors( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAttestorsMethod(), getCallOptions(), request); } @@ -884,8 +887,9 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAt * */ public com.google.protobuf.Empty deleteAttestor( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAttestorMethod(), getCallOptions(), request); } } diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java index 206988d1c368..65b56535bac8 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java @@ -24,9 +24,6 @@ * API for working with the system policy. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1beta1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SystemPolicyV1Beta1Grpc { @@ -243,8 +240,9 @@ protected SystemPolicyV1Beta1BlockingV2Stub build( * */ public com.google.cloud.binaryauthorization.v1beta1.Policy getSystemPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSystemPolicyMethod(), getCallOptions(), request); } } diff --git a/java-capacityplanner/README.md b/java-capacityplanner/README.md index 0802baea0efe..86d2f7a88701 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.0.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.1.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-capacityplanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceGrpc.java b/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceGrpc.java index bbb95b497b9b..c85a7f8a300b 100644 --- a/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceGrpc.java +++ b/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceGrpc.java @@ -24,9 +24,6 @@ * Provides access to historical and forecasted usage data. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/capacityplanner/v1beta/usage_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UsageServiceGrpc { @@ -651,8 +648,9 @@ protected UsageServiceBlockingV2Stub build( * */ public com.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesResponse queryUsageHistories( - com.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryUsageHistoriesMethod(), getCallOptions(), request); } @@ -665,8 +663,9 @@ public com.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesResponse query * */ public com.google.cloud.capacityplanner.v1beta.QueryForecastsResponse queryForecasts( - com.google.cloud.capacityplanner.v1beta.QueryForecastsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.capacityplanner.v1beta.QueryForecastsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryForecastsMethod(), getCallOptions(), request); } @@ -679,8 +678,9 @@ public com.google.cloud.capacityplanner.v1beta.QueryForecastsResponse queryForec * */ public com.google.cloud.capacityplanner.v1beta.QueryReservationsResponse queryReservations( - com.google.cloud.capacityplanner.v1beta.QueryReservationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.capacityplanner.v1beta.QueryReservationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryReservationsMethod(), getCallOptions(), request); } @@ -693,8 +693,9 @@ public com.google.cloud.capacityplanner.v1beta.QueryReservationsResponse queryRe * */ public com.google.longrunning.Operation exportUsageHistories( - com.google.cloud.capacityplanner.v1beta.ExportUsageHistoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.capacityplanner.v1beta.ExportUsageHistoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportUsageHistoriesMethod(), getCallOptions(), request); } @@ -707,8 +708,9 @@ public com.google.longrunning.Operation exportUsageHistories( * */ public com.google.longrunning.Operation exportForecasts( - com.google.cloud.capacityplanner.v1beta.ExportForecastsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.capacityplanner.v1beta.ExportForecastsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportForecastsMethod(), getCallOptions(), request); } @@ -721,8 +723,9 @@ public com.google.longrunning.Operation exportForecasts( * */ public com.google.longrunning.Operation exportReservationsUsage( - com.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportReservationsUsageMethod(), getCallOptions(), request); } } diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 1019199f043f..1e8b08202569 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.80.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.81.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java index fbe629f52f87..a46d78f92a5d 100644 --- a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java +++ b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java @@ -42,9 +42,6 @@ * Provides methods to manage Cloud Certificate Manager entities. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/certificatemanager/v1/certificate_manager.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CertificateManagerGrpc { @@ -2608,8 +2605,9 @@ protected CertificateManagerBlockingV2Stub build( * */ public com.google.cloud.certificatemanager.v1.ListCertificatesResponse listCertificates( - com.google.cloud.certificatemanager.v1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.ListCertificatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificatesMethod(), getCallOptions(), request); } @@ -2621,8 +2619,9 @@ public com.google.cloud.certificatemanager.v1.ListCertificatesResponse listCerti * */ public com.google.cloud.certificatemanager.v1.Certificate getCertificate( - com.google.cloud.certificatemanager.v1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.GetCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateMethod(), getCallOptions(), request); } @@ -2634,8 +2633,9 @@ public com.google.cloud.certificatemanager.v1.Certificate getCertificate( * */ public com.google.longrunning.Operation createCertificate( - com.google.cloud.certificatemanager.v1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.CreateCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCertificateMethod(), getCallOptions(), request); } @@ -2647,8 +2647,9 @@ public com.google.longrunning.Operation createCertificate( * */ public com.google.longrunning.Operation updateCertificate( - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); } @@ -2660,8 +2661,9 @@ public com.google.longrunning.Operation updateCertificate( * */ public com.google.longrunning.Operation deleteCertificate( - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCertificateMethod(), getCallOptions(), request); } @@ -2673,8 +2675,9 @@ public com.google.longrunning.Operation deleteCertificate( * */ public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse listCertificateMaps( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificateMapsMethod(), getCallOptions(), request); } @@ -2686,8 +2689,9 @@ public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse listCe * */ public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap( - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateMapMethod(), getCallOptions(), request); } @@ -2699,8 +2703,9 @@ public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap( * */ public com.google.longrunning.Operation createCertificateMap( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCertificateMapMethod(), getCallOptions(), request); } @@ -2712,8 +2717,9 @@ public com.google.longrunning.Operation createCertificateMap( * */ public com.google.longrunning.Operation updateCertificateMap( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateMapMethod(), getCallOptions(), request); } @@ -2727,8 +2733,9 @@ public com.google.longrunning.Operation updateCertificateMap( * */ public com.google.longrunning.Operation deleteCertificateMap( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCertificateMapMethod(), getCallOptions(), request); } @@ -2741,8 +2748,9 @@ public com.google.longrunning.Operation deleteCertificateMap( */ public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse listCertificateMapEntries( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificateMapEntriesMethod(), getCallOptions(), request); } @@ -2754,8 +2762,9 @@ public com.google.longrunning.Operation deleteCertificateMap( * */ public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntry( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateMapEntryMethod(), getCallOptions(), request); } @@ -2767,8 +2776,9 @@ public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificate * */ public com.google.longrunning.Operation createCertificateMapEntry( - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCertificateMapEntryMethod(), getCallOptions(), request); } @@ -2780,8 +2790,9 @@ public com.google.longrunning.Operation createCertificateMapEntry( * */ public com.google.longrunning.Operation updateCertificateMapEntry( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateMapEntryMethod(), getCallOptions(), request); } @@ -2793,8 +2804,9 @@ public com.google.longrunning.Operation updateCertificateMapEntry( * */ public com.google.longrunning.Operation deleteCertificateMapEntry( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCertificateMapEntryMethod(), getCallOptions(), request); } @@ -2807,8 +2819,9 @@ public com.google.longrunning.Operation deleteCertificateMapEntry( */ public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse listDnsAuthorizations( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDnsAuthorizationsMethod(), getCallOptions(), request); } @@ -2820,8 +2833,9 @@ public com.google.longrunning.Operation deleteCertificateMapEntry( * */ public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorization( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDnsAuthorizationMethod(), getCallOptions(), request); } @@ -2833,8 +2847,9 @@ public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorizati * */ public com.google.longrunning.Operation createDnsAuthorization( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDnsAuthorizationMethod(), getCallOptions(), request); } @@ -2846,8 +2861,9 @@ public com.google.longrunning.Operation createDnsAuthorization( * */ public com.google.longrunning.Operation updateDnsAuthorization( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDnsAuthorizationMethod(), getCallOptions(), request); } @@ -2859,8 +2875,9 @@ public com.google.longrunning.Operation updateDnsAuthorization( * */ public com.google.longrunning.Operation deleteDnsAuthorization( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDnsAuthorizationMethod(), getCallOptions(), request); } @@ -2873,8 +2890,9 @@ public com.google.longrunning.Operation deleteDnsAuthorization( */ public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse listCertificateIssuanceConfigs( - com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificateIssuanceConfigsMethod(), getCallOptions(), request); } @@ -2887,8 +2905,9 @@ public com.google.longrunning.Operation deleteDnsAuthorization( */ public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfig( - com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateIssuanceConfigMethod(), getCallOptions(), request); } @@ -2900,8 +2919,9 @@ public com.google.longrunning.Operation deleteDnsAuthorization( * */ public com.google.longrunning.Operation createCertificateIssuanceConfig( - com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCertificateIssuanceConfigMethod(), getCallOptions(), request); } @@ -2913,8 +2933,9 @@ public com.google.longrunning.Operation createCertificateIssuanceConfig( * */ public com.google.longrunning.Operation deleteCertificateIssuanceConfig( - com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCertificateIssuanceConfigMethod(), getCallOptions(), request); } @@ -2926,8 +2947,9 @@ public com.google.longrunning.Operation deleteCertificateIssuanceConfig( * */ public com.google.cloud.certificatemanager.v1.ListTrustConfigsResponse listTrustConfigs( - com.google.cloud.certificatemanager.v1.ListTrustConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.ListTrustConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTrustConfigsMethod(), getCallOptions(), request); } @@ -2939,8 +2961,9 @@ public com.google.cloud.certificatemanager.v1.ListTrustConfigsResponse listTrust * */ public com.google.cloud.certificatemanager.v1.TrustConfig getTrustConfig( - com.google.cloud.certificatemanager.v1.GetTrustConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.GetTrustConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTrustConfigMethod(), getCallOptions(), request); } @@ -2952,8 +2975,9 @@ public com.google.cloud.certificatemanager.v1.TrustConfig getTrustConfig( * */ public com.google.longrunning.Operation createTrustConfig( - com.google.cloud.certificatemanager.v1.CreateTrustConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.CreateTrustConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTrustConfigMethod(), getCallOptions(), request); } @@ -2965,8 +2989,9 @@ public com.google.longrunning.Operation createTrustConfig( * */ public com.google.longrunning.Operation updateTrustConfig( - com.google.cloud.certificatemanager.v1.UpdateTrustConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.UpdateTrustConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTrustConfigMethod(), getCallOptions(), request); } @@ -2978,8 +3003,9 @@ public com.google.longrunning.Operation updateTrustConfig( * */ public com.google.longrunning.Operation deleteTrustConfig( - com.google.cloud.certificatemanager.v1.DeleteTrustConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.certificatemanager.v1.DeleteTrustConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTrustConfigMethod(), getCallOptions(), request); } } diff --git a/java-channel/README.md b/java-channel/README.md index 3350defa0f4d..e5d756e10a5e 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.81.0 + 3.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.81.0' +implementation 'com.google.cloud:google-cloud-channel:3.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.82.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceGrpc.java b/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceGrpc.java index 59fc926a43aa..d87913c93954 100644 --- a/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceGrpc.java +++ b/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceGrpc.java @@ -30,9 +30,6 @@ * instead. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/channel/v1/reports_service.proto") @io.grpc.stub.annotations.GrpcGenerated @java.lang.Deprecated public final class CloudChannelReportsServiceGrpc { @@ -523,8 +520,8 @@ protected CloudChannelReportsServiceBlockingV2Stub build( */ @java.lang.Deprecated public com.google.longrunning.Operation runReportJob( - com.google.cloud.channel.v1.RunReportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.RunReportJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunReportJobMethod(), getCallOptions(), request); } @@ -541,8 +538,9 @@ public com.google.longrunning.Operation runReportJob( */ @java.lang.Deprecated public com.google.cloud.channel.v1.FetchReportResultsResponse fetchReportResults( - com.google.cloud.channel.v1.FetchReportResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.FetchReportResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchReportResultsMethod(), getCallOptions(), request); } @@ -559,8 +557,8 @@ public com.google.cloud.channel.v1.FetchReportResultsResponse fetchReportResults */ @java.lang.Deprecated public com.google.cloud.channel.v1.ListReportsResponse listReports( - com.google.cloud.channel.v1.ListReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListReportsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReportsMethod(), getCallOptions(), request); } } diff --git a/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java b/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java index 3617e9bc6241..86f93e5c8cef 100644 --- a/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java +++ b/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java @@ -39,9 +39,6 @@ * resellers in a channel. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/channel/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudChannelServiceGrpc { @@ -5621,8 +5618,8 @@ protected CloudChannelServiceBlockingV2Stub build( * */ public com.google.cloud.channel.v1.ListCustomersResponse listCustomers( - com.google.cloud.channel.v1.ListCustomersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListCustomersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomersMethod(), getCallOptions(), request); } @@ -5643,8 +5640,8 @@ public com.google.cloud.channel.v1.ListCustomersResponse listCustomers( * */ public com.google.cloud.channel.v1.Customer getCustomer( - com.google.cloud.channel.v1.GetCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.GetCustomerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomerMethod(), getCallOptions(), request); } @@ -5671,8 +5668,9 @@ public com.google.cloud.channel.v1.Customer getCustomer( */ public com.google.cloud.channel.v1.CheckCloudIdentityAccountsExistResponse checkCloudIdentityAccountsExist( - com.google.cloud.channel.v1.CheckCloudIdentityAccountsExistRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.CheckCloudIdentityAccountsExistRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckCloudIdentityAccountsExistMethod(), getCallOptions(), request); } @@ -5696,8 +5694,8 @@ public com.google.cloud.channel.v1.Customer getCustomer( * */ public com.google.cloud.channel.v1.Customer createCustomer( - com.google.cloud.channel.v1.CreateCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.CreateCustomerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomerMethod(), getCallOptions(), request); } @@ -5718,8 +5716,8 @@ public com.google.cloud.channel.v1.Customer createCustomer( * */ public com.google.cloud.channel.v1.Customer updateCustomer( - com.google.cloud.channel.v1.UpdateCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.UpdateCustomerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomerMethod(), getCallOptions(), request); } @@ -5738,8 +5736,8 @@ public com.google.cloud.channel.v1.Customer updateCustomer( * */ public com.google.protobuf.Empty deleteCustomer( - com.google.cloud.channel.v1.DeleteCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.DeleteCustomerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomerMethod(), getCallOptions(), request); } @@ -5767,8 +5765,8 @@ public com.google.protobuf.Empty deleteCustomer( * */ public com.google.cloud.channel.v1.Customer importCustomer( - com.google.cloud.channel.v1.ImportCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ImportCustomerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportCustomerMethod(), getCallOptions(), request); } @@ -5799,8 +5797,9 @@ public com.google.cloud.channel.v1.Customer importCustomer( * */ public com.google.longrunning.Operation provisionCloudIdentity( - com.google.cloud.channel.v1.ProvisionCloudIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ProvisionCloudIdentityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProvisionCloudIdentityMethod(), getCallOptions(), request); } @@ -5819,8 +5818,9 @@ public com.google.longrunning.Operation provisionCloudIdentity( * */ public com.google.cloud.channel.v1.ListEntitlementsResponse listEntitlements( - com.google.cloud.channel.v1.ListEntitlementsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListEntitlementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntitlementsMethod(), getCallOptions(), request); } @@ -5846,8 +5846,9 @@ public com.google.cloud.channel.v1.ListEntitlementsResponse listEntitlements( * */ public com.google.cloud.channel.v1.ListTransferableSkusResponse listTransferableSkus( - com.google.cloud.channel.v1.ListTransferableSkusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListTransferableSkusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTransferableSkusMethod(), getCallOptions(), request); } @@ -5876,8 +5877,9 @@ public com.google.cloud.channel.v1.ListTransferableSkusResponse listTransferable * */ public com.google.cloud.channel.v1.ListTransferableOffersResponse listTransferableOffers( - com.google.cloud.channel.v1.ListTransferableOffersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListTransferableOffersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTransferableOffersMethod(), getCallOptions(), request); } @@ -5896,8 +5898,8 @@ public com.google.cloud.channel.v1.ListTransferableOffersResponse listTransferab * */ public com.google.cloud.channel.v1.Entitlement getEntitlement( - com.google.cloud.channel.v1.GetEntitlementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.GetEntitlementRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntitlementMethod(), getCallOptions(), request); } @@ -5943,8 +5945,9 @@ public com.google.cloud.channel.v1.Entitlement getEntitlement( * */ public com.google.longrunning.Operation createEntitlement( - com.google.cloud.channel.v1.CreateEntitlementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.CreateEntitlementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntitlementMethod(), getCallOptions(), request); } @@ -5973,8 +5976,9 @@ public com.google.longrunning.Operation createEntitlement( * */ public com.google.longrunning.Operation changeParameters( - com.google.cloud.channel.v1.ChangeParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ChangeParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getChangeParametersMethod(), getCallOptions(), request); } @@ -6003,8 +6007,9 @@ public com.google.longrunning.Operation changeParameters( * */ public com.google.longrunning.Operation changeRenewalSettings( - com.google.cloud.channel.v1.ChangeRenewalSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ChangeRenewalSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getChangeRenewalSettingsMethod(), getCallOptions(), request); } @@ -6031,8 +6036,8 @@ public com.google.longrunning.Operation changeRenewalSettings( * */ public com.google.longrunning.Operation changeOffer( - com.google.cloud.channel.v1.ChangeOfferRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ChangeOfferRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getChangeOfferMethod(), getCallOptions(), request); } @@ -6062,8 +6067,9 @@ public com.google.longrunning.Operation changeOffer( * */ public com.google.longrunning.Operation startPaidService( - com.google.cloud.channel.v1.StartPaidServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.StartPaidServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartPaidServiceMethod(), getCallOptions(), request); } @@ -6090,8 +6096,9 @@ public com.google.longrunning.Operation startPaidService( * */ public com.google.longrunning.Operation suspendEntitlement( - com.google.cloud.channel.v1.SuspendEntitlementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.SuspendEntitlementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuspendEntitlementMethod(), getCallOptions(), request); } @@ -6123,8 +6130,9 @@ public com.google.longrunning.Operation suspendEntitlement( * */ public com.google.longrunning.Operation cancelEntitlement( - com.google.cloud.channel.v1.CancelEntitlementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.CancelEntitlementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelEntitlementMethod(), getCallOptions(), request); } @@ -6157,8 +6165,9 @@ public com.google.longrunning.Operation cancelEntitlement( * */ public com.google.longrunning.Operation activateEntitlement( - com.google.cloud.channel.v1.ActivateEntitlementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ActivateEntitlementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getActivateEntitlementMethod(), getCallOptions(), request); } @@ -6197,8 +6206,9 @@ public com.google.longrunning.Operation activateEntitlement( * */ public com.google.longrunning.Operation transferEntitlements( - com.google.cloud.channel.v1.TransferEntitlementsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.TransferEntitlementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTransferEntitlementsMethod(), getCallOptions(), request); } @@ -6234,8 +6244,9 @@ public com.google.longrunning.Operation transferEntitlements( * */ public com.google.longrunning.Operation transferEntitlementsToGoogle( - com.google.cloud.channel.v1.TransferEntitlementsToGoogleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.TransferEntitlementsToGoogleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTransferEntitlementsToGoogleMethod(), getCallOptions(), request); } @@ -6255,8 +6266,9 @@ public com.google.longrunning.Operation transferEntitlementsToGoogle( * */ public com.google.cloud.channel.v1.ListChannelPartnerLinksResponse listChannelPartnerLinks( - com.google.cloud.channel.v1.ListChannelPartnerLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListChannelPartnerLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChannelPartnerLinksMethod(), getCallOptions(), request); } @@ -6279,8 +6291,9 @@ public com.google.cloud.channel.v1.ListChannelPartnerLinksResponse listChannelPa * */ public com.google.cloud.channel.v1.ChannelPartnerLink getChannelPartnerLink( - com.google.cloud.channel.v1.GetChannelPartnerLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.GetChannelPartnerLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChannelPartnerLinkMethod(), getCallOptions(), request); } @@ -6311,8 +6324,9 @@ public com.google.cloud.channel.v1.ChannelPartnerLink getChannelPartnerLink( * */ public com.google.cloud.channel.v1.ChannelPartnerLink createChannelPartnerLink( - com.google.cloud.channel.v1.CreateChannelPartnerLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.CreateChannelPartnerLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateChannelPartnerLinkMethod(), getCallOptions(), request); } @@ -6342,8 +6356,9 @@ public com.google.cloud.channel.v1.ChannelPartnerLink createChannelPartnerLink( * */ public com.google.cloud.channel.v1.ChannelPartnerLink updateChannelPartnerLink( - com.google.cloud.channel.v1.UpdateChannelPartnerLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.UpdateChannelPartnerLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateChannelPartnerLinkMethod(), getCallOptions(), request); } @@ -6368,8 +6383,9 @@ public com.google.cloud.channel.v1.ChannelPartnerLink updateChannelPartnerLink( * */ public com.google.cloud.channel.v1.CustomerRepricingConfig getCustomerRepricingConfig( - com.google.cloud.channel.v1.GetCustomerRepricingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.GetCustomerRepricingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomerRepricingConfigMethod(), getCallOptions(), request); } @@ -6401,8 +6417,9 @@ public com.google.cloud.channel.v1.CustomerRepricingConfig getCustomerRepricingC */ public com.google.cloud.channel.v1.ListCustomerRepricingConfigsResponse listCustomerRepricingConfigs( - com.google.cloud.channel.v1.ListCustomerRepricingConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListCustomerRepricingConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomerRepricingConfigsMethod(), getCallOptions(), request); } @@ -6449,8 +6466,9 @@ public com.google.cloud.channel.v1.CustomerRepricingConfig getCustomerRepricingC * */ public com.google.cloud.channel.v1.CustomerRepricingConfig createCustomerRepricingConfig( - com.google.cloud.channel.v1.CreateCustomerRepricingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.CreateCustomerRepricingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomerRepricingConfigMethod(), getCallOptions(), request); } @@ -6487,8 +6505,9 @@ public com.google.cloud.channel.v1.CustomerRepricingConfig createCustomerReprici * */ public com.google.cloud.channel.v1.CustomerRepricingConfig updateCustomerRepricingConfig( - com.google.cloud.channel.v1.UpdateCustomerRepricingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.UpdateCustomerRepricingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomerRepricingConfigMethod(), getCallOptions(), request); } @@ -6514,8 +6533,9 @@ public com.google.cloud.channel.v1.CustomerRepricingConfig updateCustomerReprici * */ public com.google.protobuf.Empty deleteCustomerRepricingConfig( - com.google.cloud.channel.v1.DeleteCustomerRepricingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.DeleteCustomerRepricingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomerRepricingConfigMethod(), getCallOptions(), request); } @@ -6541,8 +6561,9 @@ public com.google.protobuf.Empty deleteCustomerRepricingConfig( */ public com.google.cloud.channel.v1.ChannelPartnerRepricingConfig getChannelPartnerRepricingConfig( - com.google.cloud.channel.v1.GetChannelPartnerRepricingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.GetChannelPartnerRepricingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChannelPartnerRepricingConfigMethod(), getCallOptions(), request); } @@ -6573,8 +6594,9 @@ public com.google.protobuf.Empty deleteCustomerRepricingConfig( */ public com.google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse listChannelPartnerRepricingConfigs( - com.google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChannelPartnerRepricingConfigsMethod(), getCallOptions(), request); } @@ -6623,8 +6645,9 @@ public com.google.protobuf.Empty deleteCustomerRepricingConfig( */ public com.google.cloud.channel.v1.ChannelPartnerRepricingConfig createChannelPartnerRepricingConfig( - com.google.cloud.channel.v1.CreateChannelPartnerRepricingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.CreateChannelPartnerRepricingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateChannelPartnerRepricingConfigMethod(), getCallOptions(), request); } @@ -6662,8 +6685,9 @@ public com.google.protobuf.Empty deleteCustomerRepricingConfig( */ public com.google.cloud.channel.v1.ChannelPartnerRepricingConfig updateChannelPartnerRepricingConfig( - com.google.cloud.channel.v1.UpdateChannelPartnerRepricingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.UpdateChannelPartnerRepricingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateChannelPartnerRepricingConfigMethod(), getCallOptions(), request); } @@ -6689,8 +6713,9 @@ public com.google.protobuf.Empty deleteCustomerRepricingConfig( * */ public com.google.protobuf.Empty deleteChannelPartnerRepricingConfig( - com.google.cloud.channel.v1.DeleteChannelPartnerRepricingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.DeleteChannelPartnerRepricingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteChannelPartnerRepricingConfigMethod(), getCallOptions(), request); } @@ -6716,8 +6741,8 @@ public com.google.protobuf.Empty deleteChannelPartnerRepricingConfig( * */ public com.google.cloud.channel.v1.ListSkuGroupsResponse listSkuGroups( - com.google.cloud.channel.v1.ListSkuGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListSkuGroupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSkuGroupsMethod(), getCallOptions(), request); } @@ -6743,8 +6768,9 @@ public com.google.cloud.channel.v1.ListSkuGroupsResponse listSkuGroups( * */ public com.google.cloud.channel.v1.ListSkuGroupBillableSkusResponse listSkuGroupBillableSkus( - com.google.cloud.channel.v1.ListSkuGroupBillableSkusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListSkuGroupBillableSkusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSkuGroupBillableSkusMethod(), getCallOptions(), request); } @@ -6762,8 +6788,8 @@ public com.google.cloud.channel.v1.ListSkuGroupBillableSkusResponse listSkuGroup * */ public com.google.cloud.channel.v1.Offer lookupOffer( - com.google.cloud.channel.v1.LookupOfferRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.LookupOfferRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupOfferMethod(), getCallOptions(), request); } @@ -6777,8 +6803,8 @@ public com.google.cloud.channel.v1.Offer lookupOffer( * */ public com.google.cloud.channel.v1.ListProductsResponse listProducts( - com.google.cloud.channel.v1.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListProductsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } @@ -6792,8 +6818,8 @@ public com.google.cloud.channel.v1.ListProductsResponse listProducts( * */ public com.google.cloud.channel.v1.ListSkusResponse listSkus( - com.google.cloud.channel.v1.ListSkusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListSkusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSkusMethod(), getCallOptions(), request); } @@ -6807,8 +6833,8 @@ public com.google.cloud.channel.v1.ListSkusResponse listSkus( * */ public com.google.cloud.channel.v1.ListOffersResponse listOffers( - com.google.cloud.channel.v1.ListOffersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListOffersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOffersMethod(), getCallOptions(), request); } @@ -6825,8 +6851,9 @@ public com.google.cloud.channel.v1.ListOffersResponse listOffers( * */ public com.google.cloud.channel.v1.ListPurchasableSkusResponse listPurchasableSkus( - com.google.cloud.channel.v1.ListPurchasableSkusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListPurchasableSkusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPurchasableSkusMethod(), getCallOptions(), request); } @@ -6846,8 +6873,9 @@ public com.google.cloud.channel.v1.ListPurchasableSkusResponse listPurchasableSk * */ public com.google.cloud.channel.v1.ListPurchasableOffersResponse listPurchasableOffers( - com.google.cloud.channel.v1.ListPurchasableOffersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListPurchasableOffersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPurchasableOffersMethod(), getCallOptions(), request); } @@ -6868,8 +6896,9 @@ public com.google.cloud.channel.v1.ListPurchasableOffersResponse listPurchasable */ public com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse queryEligibleBillingAccounts( - com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryEligibleBillingAccountsMethod(), getCallOptions(), request); } @@ -6895,8 +6924,9 @@ public com.google.cloud.channel.v1.ListPurchasableOffersResponse listPurchasable * */ public com.google.cloud.channel.v1.RegisterSubscriberResponse registerSubscriber( - com.google.cloud.channel.v1.RegisterSubscriberRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.RegisterSubscriberRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRegisterSubscriberMethod(), getCallOptions(), request); } @@ -6925,8 +6955,9 @@ public com.google.cloud.channel.v1.RegisterSubscriberResponse registerSubscriber * */ public com.google.cloud.channel.v1.UnregisterSubscriberResponse unregisterSubscriber( - com.google.cloud.channel.v1.UnregisterSubscriberRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.UnregisterSubscriberRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnregisterSubscriberMethod(), getCallOptions(), request); } @@ -6951,8 +6982,8 @@ public com.google.cloud.channel.v1.UnregisterSubscriberResponse unregisterSubscr * */ public com.google.cloud.channel.v1.ListSubscribersResponse listSubscribers( - com.google.cloud.channel.v1.ListSubscribersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListSubscribersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubscribersMethod(), getCallOptions(), request); } @@ -6976,8 +7007,9 @@ public com.google.cloud.channel.v1.ListSubscribersResponse listSubscribers( * */ public com.google.cloud.channel.v1.ListEntitlementChangesResponse listEntitlementChanges( - com.google.cloud.channel.v1.ListEntitlementChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.channel.v1.ListEntitlementChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntitlementChangesMethod(), getCallOptions(), request); } } diff --git a/java-chat/README.md b/java-chat/README.md index aa5ec3a7d6a5..7952938d5c84 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.41.0' +implementation 'com.google.cloud:google-cloud-chat:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.42.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java index e09db29b16a1..eacfaab3a75e 100644 --- a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java +++ b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java @@ -25,9 +25,6 @@ * integrations on Google Chat Platform. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/chat/v1/chat_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ChatServiceGrpc { @@ -3934,9 +3931,9 @@ protected ChatServiceBlockingV2Stub build( * information that was in the request. * */ - public com.google.chat.v1.Message createMessage( - com.google.chat.v1.CreateMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.chat.v1.Message createMessage(com.google.chat.v1.CreateMessageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMessageMethod(), getCallOptions(), request); } @@ -3961,8 +3958,8 @@ public com.google.chat.v1.Message createMessage( * */ public com.google.chat.v1.ListMessagesResponse listMessages( - com.google.chat.v1.ListMessagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.ListMessagesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMessagesMethod(), getCallOptions(), request); } @@ -4004,8 +4001,8 @@ public com.google.chat.v1.ListMessagesResponse listMessages( * */ public com.google.chat.v1.ListMembershipsResponse listMemberships( - com.google.chat.v1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.ListMembershipsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMembershipsMethod(), getCallOptions(), request); } @@ -4037,8 +4034,8 @@ public com.google.chat.v1.ListMembershipsResponse listMemberships( * */ public com.google.chat.v1.Membership getMembership( - com.google.chat.v1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.GetMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMembershipMethod(), getCallOptions(), request); } @@ -4063,8 +4060,9 @@ public com.google.chat.v1.Membership getMembership( * Note: Might return a message from a blocked member or space. * */ - public com.google.chat.v1.Message getMessage(com.google.chat.v1.GetMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.chat.v1.Message getMessage(com.google.chat.v1.GetMessageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMessageMethod(), getCallOptions(), request); } @@ -4094,9 +4092,9 @@ public com.google.chat.v1.Message getMessage(com.google.chat.v1.GetMessageReques * created by the calling Chat app. * */ - public com.google.chat.v1.Message updateMessage( - com.google.chat.v1.UpdateMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.chat.v1.Message updateMessage(com.google.chat.v1.UpdateMessageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMessageMethod(), getCallOptions(), request); } @@ -4123,9 +4121,9 @@ public com.google.chat.v1.Message updateMessage( * created by the calling Chat app. * */ - public com.google.protobuf.Empty deleteMessage( - com.google.chat.v1.DeleteMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteMessage(com.google.chat.v1.DeleteMessageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMessageMethod(), getCallOptions(), request); } @@ -4147,8 +4145,8 @@ public com.google.protobuf.Empty deleteMessage( * */ public com.google.chat.v1.Attachment getAttachment( - com.google.chat.v1.GetAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.GetAttachmentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttachmentMethod(), getCallOptions(), request); } @@ -4172,8 +4170,8 @@ public com.google.chat.v1.Attachment getAttachment( * */ public com.google.chat.v1.UploadAttachmentResponse uploadAttachment( - com.google.chat.v1.UploadAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.UploadAttachmentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUploadAttachmentMethod(), getCallOptions(), request); } @@ -4202,8 +4200,8 @@ public com.google.chat.v1.UploadAttachmentResponse uploadAttachment( * */ public com.google.chat.v1.ListSpacesResponse listSpaces( - com.google.chat.v1.ListSpacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.ListSpacesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSpacesMethod(), getCallOptions(), request); } @@ -4224,8 +4222,8 @@ public com.google.chat.v1.ListSpacesResponse listSpaces( * */ public com.google.chat.v1.SearchSpacesResponse searchSpaces( - com.google.chat.v1.SearchSpacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.SearchSpacesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchSpacesMethod(), getCallOptions(), request); } @@ -4262,8 +4260,9 @@ public com.google.chat.v1.SearchSpacesResponse searchSpaces( * spaces the app created. * */ - public com.google.chat.v1.Space getSpace(com.google.chat.v1.GetSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.chat.v1.Space getSpace(com.google.chat.v1.GetSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpaceMethod(), getCallOptions(), request); } @@ -4307,8 +4306,9 @@ public com.google.chat.v1.Space getSpace(com.google.chat.v1.GetSpaceRequest requ * the Google Workspace organization might already use this display name. * */ - public com.google.chat.v1.Space createSpace(com.google.chat.v1.CreateSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.chat.v1.Space createSpace(com.google.chat.v1.CreateSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSpaceMethod(), getCallOptions(), request); } @@ -4366,8 +4366,9 @@ public com.google.chat.v1.Space createSpace(com.google.chat.v1.CreateSpaceReques * - `https://www.googleapis.com/auth/chat.spaces` * */ - public com.google.chat.v1.Space setUpSpace(com.google.chat.v1.SetUpSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.chat.v1.Space setUpSpace(com.google.chat.v1.SetUpSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetUpSpaceMethod(), getCallOptions(), request); } @@ -4405,8 +4406,9 @@ public com.google.chat.v1.Space setUpSpace(com.google.chat.v1.SetUpSpaceRequest * authentication. * */ - public com.google.chat.v1.Space updateSpace(com.google.chat.v1.UpdateSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.chat.v1.Space updateSpace(com.google.chat.v1.UpdateSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSpaceMethod(), getCallOptions(), request); } @@ -4440,8 +4442,9 @@ public com.google.chat.v1.Space updateSpace(com.google.chat.v1.UpdateSpaceReques * - `https://www.googleapis.com/auth/chat.admin.delete` * */ - public com.google.protobuf.Empty deleteSpace(com.google.chat.v1.DeleteSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteSpace(com.google.chat.v1.DeleteSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSpaceMethod(), getCallOptions(), request); } @@ -4463,8 +4466,8 @@ public com.google.protobuf.Empty deleteSpace(com.google.chat.v1.DeleteSpaceReque * */ public com.google.chat.v1.CompleteImportSpaceResponse completeImportSpace( - com.google.chat.v1.CompleteImportSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.CompleteImportSpaceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteImportSpaceMethod(), getCallOptions(), request); } @@ -4498,8 +4501,8 @@ public com.google.chat.v1.CompleteImportSpaceResponse completeImportSpace( * */ public com.google.chat.v1.Space findDirectMessage( - com.google.chat.v1.FindDirectMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.FindDirectMessageRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFindDirectMessageMethod(), getCallOptions(), request); } @@ -4547,8 +4550,8 @@ public com.google.chat.v1.Space findDirectMessage( * */ public com.google.chat.v1.Membership createMembership( - com.google.chat.v1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.CreateMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMembershipMethod(), getCallOptions(), request); } @@ -4580,8 +4583,8 @@ public com.google.chat.v1.Membership createMembership( * */ public com.google.chat.v1.Membership updateMembership( - com.google.chat.v1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.UpdateMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); } @@ -4621,8 +4624,8 @@ public com.google.chat.v1.Membership updateMembership( * */ public com.google.chat.v1.Membership deleteMembership( - com.google.chat.v1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.DeleteMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); } @@ -4644,8 +4647,8 @@ public com.google.chat.v1.Membership deleteMembership( * */ public com.google.chat.v1.Reaction createReaction( - com.google.chat.v1.CreateReactionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.CreateReactionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReactionMethod(), getCallOptions(), request); } @@ -4667,8 +4670,8 @@ public com.google.chat.v1.Reaction createReaction( * */ public com.google.chat.v1.ListReactionsResponse listReactions( - com.google.chat.v1.ListReactionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.ListReactionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReactionsMethod(), getCallOptions(), request); } @@ -4689,8 +4692,8 @@ public com.google.chat.v1.ListReactionsResponse listReactions( * */ public com.google.protobuf.Empty deleteReaction( - com.google.chat.v1.DeleteReactionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.DeleteReactionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReactionMethod(), getCallOptions(), request); } @@ -4713,8 +4716,8 @@ public com.google.protobuf.Empty deleteReaction( * */ public com.google.chat.v1.CustomEmoji createCustomEmoji( - com.google.chat.v1.CreateCustomEmojiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.CreateCustomEmojiRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomEmojiMethod(), getCallOptions(), request); } @@ -4738,8 +4741,8 @@ public com.google.chat.v1.CustomEmoji createCustomEmoji( * */ public com.google.chat.v1.CustomEmoji getCustomEmoji( - com.google.chat.v1.GetCustomEmojiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.GetCustomEmojiRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomEmojiMethod(), getCallOptions(), request); } @@ -4763,8 +4766,8 @@ public com.google.chat.v1.CustomEmoji getCustomEmoji( * */ public com.google.chat.v1.ListCustomEmojisResponse listCustomEmojis( - com.google.chat.v1.ListCustomEmojisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.ListCustomEmojisRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomEmojisMethod(), getCallOptions(), request); } @@ -4791,8 +4794,8 @@ public com.google.chat.v1.ListCustomEmojisResponse listCustomEmojis( * */ public com.google.protobuf.Empty deleteCustomEmoji( - com.google.chat.v1.DeleteCustomEmojiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.DeleteCustomEmojiRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomEmojiMethod(), getCallOptions(), request); } @@ -4813,8 +4816,8 @@ public com.google.protobuf.Empty deleteCustomEmoji( * */ public com.google.chat.v1.SpaceReadState getSpaceReadState( - com.google.chat.v1.GetSpaceReadStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.GetSpaceReadStateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpaceReadStateMethod(), getCallOptions(), request); } @@ -4833,8 +4836,8 @@ public com.google.chat.v1.SpaceReadState getSpaceReadState( * */ public com.google.chat.v1.SpaceReadState updateSpaceReadState( - com.google.chat.v1.UpdateSpaceReadStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.UpdateSpaceReadStateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSpaceReadStateMethod(), getCallOptions(), request); } @@ -4855,8 +4858,8 @@ public com.google.chat.v1.SpaceReadState updateSpaceReadState( * */ public com.google.chat.v1.ThreadReadState getThreadReadState( - com.google.chat.v1.GetThreadReadStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.GetThreadReadStateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetThreadReadStateMethod(), getCallOptions(), request); } @@ -4892,8 +4895,8 @@ public com.google.chat.v1.ThreadReadState getThreadReadState( * */ public com.google.chat.v1.SpaceEvent getSpaceEvent( - com.google.chat.v1.GetSpaceEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.GetSpaceEventRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpaceEventMethod(), getCallOptions(), request); } @@ -4927,8 +4930,8 @@ public com.google.chat.v1.SpaceEvent getSpaceEvent( * */ public com.google.chat.v1.ListSpaceEventsResponse listSpaceEvents( - com.google.chat.v1.ListSpaceEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.ListSpaceEventsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSpaceEventsMethod(), getCallOptions(), request); } @@ -4947,8 +4950,9 @@ public com.google.chat.v1.ListSpaceEventsResponse listSpaceEvents( * */ public com.google.chat.v1.SpaceNotificationSetting getSpaceNotificationSetting( - com.google.chat.v1.GetSpaceNotificationSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.GetSpaceNotificationSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpaceNotificationSettingMethod(), getCallOptions(), request); } @@ -4967,8 +4971,9 @@ public com.google.chat.v1.SpaceNotificationSetting getSpaceNotificationSetting( * */ public com.google.chat.v1.SpaceNotificationSetting updateSpaceNotificationSetting( - com.google.chat.v1.UpdateSpaceNotificationSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.chat.v1.UpdateSpaceNotificationSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSpaceNotificationSettingMethod(), getCallOptions(), request); } } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeletionMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeletionMetadata.java index 31b77efe59c1..335aa63ef03f 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeletionMetadata.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeletionMetadata.java @@ -102,7 +102,7 @@ public enum DeletionType implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * A space manager deleted the message.
    +     * An owner or manager deleted the message.
          * 
    * * SPACE_OWNER = 2; @@ -192,7 +192,7 @@ public enum DeletionType implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * A space manager deleted the message.
    +     * An owner or manager deleted the message.
          * 
    * * SPACE_OWNER = 2; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Membership.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Membership.java index dc769a73fec6..1a0ce54e23ee 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Membership.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Membership.java @@ -280,8 +280,20 @@ public enum MembershipRole implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * A member of the space. The user has basic permissions, like sending
    -     * messages to the space. In 1:1 and unnamed group conversations, everyone
    +     * A member of the space. In the Chat UI, this role is called Member.
    +     *
    +     * The user has basic permissions, like sending
    +     * messages to the space.
    +     * Managers and owners can grant members additional permissions in a space,
    +     * including:
    +     *
    +     * - Add or remove members.
    +     * - Modify space details.
    +     * - Turn history on or off.
    +     * - Mention everyone in the space with `@all`.
    +     * - Manage Chat apps and webhooks installed in the space.
    +     *
    +     * In direct messages and unnamed group conversations, everyone
          * has this role.
          * 
    * @@ -292,15 +304,60 @@ public enum MembershipRole implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * A space manager. The user has all basic permissions plus administrative
    -     * permissions that let them manage the space, like adding or removing
    -     * members. Only supported in
    -     * [SpaceType.SPACE][google.chat.v1.Space.SpaceType].
    +     * A space owner. In the Chat UI, this role is called Owner.
    +     *
    +     * The user has the complete set of space permissions to manage the space,
    +     * including:
    +     *
    +     * - Change the role of other members in the space to member, manager, or
    +     * owner.
    +     * - Delete the space.
    +     *
    +     * Only supported in
    +     * [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces).
    +     *
    +     * To learn more, see
    +     * [Learn more about your role as a space
    +     * owner or manager](https://support.google.com/chat/answer/11833441).
          * 
    * * ROLE_MANAGER = 2; */ ROLE_MANAGER(2), + /** + * + * + *
    +     * A space manager. In the Chat UI, this role is called Manager.
    +     *
    +     * The user has all basic permissions of `ROLE_MEMBER`,
    +     * and can be granted a subset of administrative permissions by an owner.
    +     * By default, managers have all the permissions of an owner except for the
    +     * ability to:
    +     *
    +     * - Delete the space.
    +     * - Make another space member an owner.
    +     * - Change an owner's role.
    +     *
    +     * By default, managers permissions include but aren't limited to:
    +     *
    +     * - Make another member a manager.
    +     * - Delete messages in the space.
    +     * - Manage space permissions.
    +     * - Receive notifications for requests to join the space if the manager
    +     *   has the "manage members" permission in the space settings.
    +     * - Make a space discoverable.
    +     *
    +     * Only supported in
    +     * [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces).
    +     *
    +     * To learn more, see
    +     * [Manage space settings](https://support.google.com/chat/answer/13340792).
    +     * 
    + * + * ROLE_ASSISTANT_MANAGER = 4; + */ + ROLE_ASSISTANT_MANAGER(4), UNRECOGNIZED(-1), ; @@ -322,8 +379,20 @@ public enum MembershipRole implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * A member of the space. The user has basic permissions, like sending
    -     * messages to the space. In 1:1 and unnamed group conversations, everyone
    +     * A member of the space. In the Chat UI, this role is called Member.
    +     *
    +     * The user has basic permissions, like sending
    +     * messages to the space.
    +     * Managers and owners can grant members additional permissions in a space,
    +     * including:
    +     *
    +     * - Add or remove members.
    +     * - Modify space details.
    +     * - Turn history on or off.
    +     * - Mention everyone in the space with `@all`.
    +     * - Manage Chat apps and webhooks installed in the space.
    +     *
    +     * In direct messages and unnamed group conversations, everyone
          * has this role.
          * 
    * @@ -335,16 +404,62 @@ public enum MembershipRole implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * A space manager. The user has all basic permissions plus administrative
    -     * permissions that let them manage the space, like adding or removing
    -     * members. Only supported in
    -     * [SpaceType.SPACE][google.chat.v1.Space.SpaceType].
    +     * A space owner. In the Chat UI, this role is called Owner.
    +     *
    +     * The user has the complete set of space permissions to manage the space,
    +     * including:
    +     *
    +     * - Change the role of other members in the space to member, manager, or
    +     * owner.
    +     * - Delete the space.
    +     *
    +     * Only supported in
    +     * [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces).
    +     *
    +     * To learn more, see
    +     * [Learn more about your role as a space
    +     * owner or manager](https://support.google.com/chat/answer/11833441).
          * 
    * * ROLE_MANAGER = 2; */ public static final int ROLE_MANAGER_VALUE = 2; + /** + * + * + *
    +     * A space manager. In the Chat UI, this role is called Manager.
    +     *
    +     * The user has all basic permissions of `ROLE_MEMBER`,
    +     * and can be granted a subset of administrative permissions by an owner.
    +     * By default, managers have all the permissions of an owner except for the
    +     * ability to:
    +     *
    +     * - Delete the space.
    +     * - Make another space member an owner.
    +     * - Change an owner's role.
    +     *
    +     * By default, managers permissions include but aren't limited to:
    +     *
    +     * - Make another member a manager.
    +     * - Delete messages in the space.
    +     * - Manage space permissions.
    +     * - Receive notifications for requests to join the space if the manager
    +     *   has the "manage members" permission in the space settings.
    +     * - Make a space discoverable.
    +     *
    +     * Only supported in
    +     * [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces).
    +     *
    +     * To learn more, see
    +     * [Manage space settings](https://support.google.com/chat/answer/13340792).
    +     * 
    + * + * ROLE_ASSISTANT_MANAGER = 4; + */ + public static final int ROLE_ASSISTANT_MANAGER_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -375,6 +490,8 @@ public static MembershipRole forNumber(int value) { return ROLE_MEMBER; case 2: return ROLE_MANAGER; + case 4: + return ROLE_ASSISTANT_MANAGER; default: return null; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipProto.java index 0683ebc437b9..381914190aa2 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipProto.java @@ -70,7 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.chat.v1\032\037google/api/field_behavior.pro" + "to\032\031google/api/resource.proto\032\032google/ch" + "at/v1/group.proto\032\031google/chat/v1/user.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\372\004\n\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\226\005\n\n" + "Membership\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022>\n" + "\005state\030\002 \001(\016" @@ -87,11 +87,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034MEMBERSHIP_STATE_UNSPECIFIED\020\000\022\n\n" + "\006JOINED\020\001\022\013\n" + "\007INVITED\020\002\022\020\n" - + "\014NOT_A_MEMBER\020\003\"T\n" + + "\014NOT_A_MEMBER\020\003\"p\n" + "\016MembershipRole\022\037\n" + "\033MEMBERSHIP_ROLE_UNSPECIFIED\020\000\022\017\n" + "\013ROLE_MEMBER\020\001\022\020\n" - + "\014ROLE_MANAGER\020\002:D\352AA\n" + + "\014ROLE_MANAGER\020\002\022\032\n" + + "\026ROLE_ASSISTANT_MANAGER\020\004:D\352AA\n" + "\036chat.googleapis.com/Membership\022\037spaces/{space}/members/{member}B\014\n\n" + "memberType\"\245\001\n" + "\027CreateMembershipRequest\0226\n" @@ -125,10 +126,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036chat.googleapis.com/Membership\022\035\n" + "\020use_admin_access\030\002 \001(\010B\003\340A\001B\250\001\n" - + "\022com.google.chat.v1B\017MembershipProtoP\001Z,cloud.google.com/go/chat/apiv1" - + "/chatpb;chatpb\242\002\013DYNAPIProto\252\002\023Google.Ap" - + "ps.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Googl" - + "e::Apps::Chat::V1b\006proto3" + + "\022com.google.chat.v1B\017MembershipProtoP\001Z,cl" + + "oud.google.com/go/chat/apiv1/chatpb;chat" + + "pb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002" + + "\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java index b2adb9e10a95..a8782b1beaba 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java @@ -6935,7 +6935,9 @@ public interface PermissionSettingOrBuilder * * *
    -     * Optional. Whether spaces managers have this permission.
    +     * Optional. Whether space owners
    +     * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER])
    +     * have this permission.
          * 
    * * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -6948,7 +6950,41 @@ public interface PermissionSettingOrBuilder * * *
    -     * Optional. Whether non-manager members have this permission.
    +     * Optional. Whether space managers
    +     * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
    +     * have this permission.
    +     * 
    + * + * optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assistantManagersAllowed field is set. + */ + boolean hasAssistantManagersAllowed(); + + /** + * + * + *
    +     * Optional. Whether space managers
    +     * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
    +     * have this permission.
    +     * 
    + * + * optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assistantManagersAllowed. + */ + boolean getAssistantManagersAllowed(); + + /** + * + * + *
    +     * Optional. Whether basic space members
    +     * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER])
    +     * have this permission.
          * 
    * * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -7001,6 +7037,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.chat.v1.Space.PermissionSetting.Builder.class); } + private int bitField0_; public static final int MANAGERS_ALLOWED_FIELD_NUMBER = 1; private boolean managersAllowed_ = false; @@ -7008,7 +7045,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Optional. Whether spaces managers have this permission.
    +     * Optional. Whether space owners
    +     * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER])
    +     * have this permission.
          * 
    * * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -7020,6 +7059,47 @@ public boolean getManagersAllowed() { return managersAllowed_; } + public static final int ASSISTANT_MANAGERS_ALLOWED_FIELD_NUMBER = 3; + private boolean assistantManagersAllowed_ = false; + + /** + * + * + *
    +     * Optional. Whether space managers
    +     * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
    +     * have this permission.
    +     * 
    + * + * optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assistantManagersAllowed field is set. + */ + @java.lang.Override + public boolean hasAssistantManagersAllowed() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. Whether space managers
    +     * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
    +     * have this permission.
    +     * 
    + * + * optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assistantManagersAllowed. + */ + @java.lang.Override + public boolean getAssistantManagersAllowed() { + return assistantManagersAllowed_; + } + public static final int MEMBERS_ALLOWED_FIELD_NUMBER = 2; private boolean membersAllowed_ = false; @@ -7027,7 +7107,9 @@ public boolean getManagersAllowed() { * * *
    -     * Optional. Whether non-manager members have this permission.
    +     * Optional. Whether basic space members
    +     * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER])
    +     * have this permission.
          * 
    * * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -7059,6 +7141,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (membersAllowed_ != false) { output.writeBool(2, membersAllowed_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, assistantManagersAllowed_); + } getUnknownFields().writeTo(output); } @@ -7074,6 +7159,9 @@ public int getSerializedSize() { if (membersAllowed_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, membersAllowed_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, assistantManagersAllowed_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7091,6 +7179,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.chat.v1.Space.PermissionSetting) obj; if (getManagersAllowed() != other.getManagersAllowed()) return false; + if (hasAssistantManagersAllowed() != other.hasAssistantManagersAllowed()) return false; + if (hasAssistantManagersAllowed()) { + if (getAssistantManagersAllowed() != other.getAssistantManagersAllowed()) return false; + } if (getMembersAllowed() != other.getMembersAllowed()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -7105,6 +7197,11 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MANAGERS_ALLOWED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagersAllowed()); + if (hasAssistantManagersAllowed()) { + hash = (37 * hash) + ASSISTANT_MANAGERS_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAssistantManagersAllowed()); + } hash = (37 * hash) + MEMBERS_ALLOWED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMembersAllowed()); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -7250,6 +7347,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; managersAllowed_ = false; + assistantManagersAllowed_ = false; membersAllowed_ = false; return this; } @@ -7290,9 +7388,15 @@ private void buildPartial0(com.google.chat.v1.Space.PermissionSetting result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.managersAllowed_ = managersAllowed_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { + result.assistantManagersAllowed_ = assistantManagersAllowed_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { result.membersAllowed_ = membersAllowed_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -7345,6 +7449,9 @@ public Builder mergeFrom(com.google.chat.v1.Space.PermissionSetting other) { if (other.getManagersAllowed() != false) { setManagersAllowed(other.getManagersAllowed()); } + if (other.hasAssistantManagersAllowed()) { + setAssistantManagersAllowed(other.getAssistantManagersAllowed()); + } if (other.getMembersAllowed() != false) { setMembersAllowed(other.getMembersAllowed()); } @@ -7383,9 +7490,15 @@ public Builder mergeFrom( case 16: { membersAllowed_ = input.readBool(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 16 + case 24: + { + assistantManagersAllowed_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7411,7 +7524,9 @@ public Builder mergeFrom( * * *
    -       * Optional. Whether spaces managers have this permission.
    +       * Optional. Whether space owners
    +       * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER])
    +       * have this permission.
            * 
    * * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -7427,7 +7542,9 @@ public boolean getManagersAllowed() { * * *
    -       * Optional. Whether spaces managers have this permission.
    +       * Optional. Whether space owners
    +       * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER])
    +       * have this permission.
            * 
    * * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -7447,7 +7564,9 @@ public Builder setManagersAllowed(boolean value) { * * *
    -       * Optional. Whether spaces managers have this permission.
    +       * Optional. Whether space owners
    +       * ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER])
    +       * have this permission.
            * 
    * * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -7461,13 +7580,103 @@ public Builder clearManagersAllowed() { return this; } + private boolean assistantManagersAllowed_; + + /** + * + * + *
    +       * Optional. Whether space managers
    +       * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
    +       * have this permission.
    +       * 
    + * + * + * optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assistantManagersAllowed field is set. + */ + @java.lang.Override + public boolean hasAssistantManagersAllowed() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. Whether space managers
    +       * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
    +       * have this permission.
    +       * 
    + * + * + * optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assistantManagersAllowed. + */ + @java.lang.Override + public boolean getAssistantManagersAllowed() { + return assistantManagersAllowed_; + } + + /** + * + * + *
    +       * Optional. Whether space managers
    +       * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
    +       * have this permission.
    +       * 
    + * + * + * optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The assistantManagersAllowed to set. + * @return This builder for chaining. + */ + public Builder setAssistantManagersAllowed(boolean value) { + + assistantManagersAllowed_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Whether space managers
    +       * [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
    +       * have this permission.
    +       * 
    + * + * + * optional bool assistant_managers_allowed = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAssistantManagersAllowed() { + bitField0_ = (bitField0_ & ~0x00000002); + assistantManagersAllowed_ = false; + onChanged(); + return this; + } + private boolean membersAllowed_; /** * * *
    -       * Optional. Whether non-manager members have this permission.
    +       * Optional. Whether basic space members
    +       * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER])
    +       * have this permission.
            * 
    * * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -7483,7 +7692,9 @@ public boolean getMembersAllowed() { * * *
    -       * Optional. Whether non-manager members have this permission.
    +       * Optional. Whether basic space members
    +       * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER])
    +       * have this permission.
            * 
    * * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -7494,7 +7705,7 @@ public boolean getMembersAllowed() { public Builder setMembersAllowed(boolean value) { membersAllowed_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7503,7 +7714,9 @@ public Builder setMembersAllowed(boolean value) { * * *
    -       * Optional. Whether non-manager members have this permission.
    +       * Optional. Whether basic space members
    +       * ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER])
    +       * have this permission.
            * 
    * * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -7511,7 +7724,7 @@ public Builder setMembersAllowed(boolean value) { * @return This builder for chaining. */ public Builder clearMembersAllowed() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); membersAllowed_ = false; onChanged(); return this; @@ -7718,7 +7931,7 @@ public com.google.protobuf.ByteString getNameBytes() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
    * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=255 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=265 * @return The enum numeric value on the wire for type. */ @java.lang.Override @@ -7739,7 +7952,7 @@ public int getTypeValue() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
    * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=255 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=265 * @return The type. */ @java.lang.Override @@ -7825,7 +8038,7 @@ public boolean getSingleUserBotDm() { * * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=267 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=277 * @return The threaded. */ @java.lang.Override @@ -9940,7 +10153,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
    * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=255 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=265 * @return The enum numeric value on the wire for type. */ @java.lang.Override @@ -9961,7 +10174,7 @@ public int getTypeValue() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
    * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=255 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=265 * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -9985,7 +10198,7 @@ public Builder setTypeValue(int value) { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
    * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=255 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=265 * @return The type. */ @java.lang.Override @@ -10007,7 +10220,7 @@ public com.google.chat.v1.Space.Type getType() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
    * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=255 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=265 * @param value The type to set. * @return This builder for chaining. */ @@ -10034,7 +10247,7 @@ public Builder setType(com.google.chat.v1.Space.Type value) { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
    * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=255 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=265 * @return This builder for chaining. */ @java.lang.Deprecated @@ -10227,7 +10440,7 @@ public Builder clearSingleUserBotDm() { * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=267 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=277 * @return The threaded. */ @java.lang.Override @@ -10247,7 +10460,7 @@ public boolean getThreaded() { * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=267 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=277 * @param value The threaded to set. * @return This builder for chaining. */ @@ -10271,7 +10484,7 @@ public Builder setThreaded(boolean value) { * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=267 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=277 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java index 4859c7c401a8..194b084dd894 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java @@ -80,7 +80,7 @@ public interface SpaceOrBuilder * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=255 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=265 * @return The enum numeric value on the wire for type. */ @java.lang.Deprecated @@ -98,7 +98,7 @@ public interface SpaceOrBuilder * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=255 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=265 * @return The type. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface SpaceOrBuilder * * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=267 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=277 * @return The threaded. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java index a3e308a476d8..2fed960cc02f 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java @@ -109,7 +109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032google/chat/v1/space.proto\022\016google.cha" + "t.v1\032\037google/api/field_behavior.proto\032\031g" + "oogle/api/resource.proto\032\"google/chat/v1/history_state.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\377\025\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\315\026\n" + "\005Space\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022/\n" + "\004type\030\002" @@ -182,18 +182,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_manage_appsB\022\n" + "\020_manage_webhooksB\020\n" + "\016_post_messagesB\021\n" - + "\017_reply_messages\032P\n" + + "\017_reply_messages\032\235\001\n" + "\021PermissionSetting\022\035\n" - + "\020managers_allowed\030\001 \001(\010B\003\340A\001\022\034\n" - + "\017members_allowed\030\002 \001(\010B\003\340A\001\".\n" + + "\020managers_allowed\030\001 \001(\010B\003\340A\001\022,\n" + + "\032assistant_managers_allowed\030\003" + + " \001(\010B\003\340A\001H\000\210\001\001\022\034\n" + + "\017members_allowed\030\002 \001(\010B\003\340A\001B\035\n" + + "\033_assistant_managers_allowed\".\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\010\n" + "\004ROOM\020\001\022\006\n" + "\002DM\020\002\"V\n" + "\tSpaceType\022\032\n" + "\026SPACE_TYPE_UNSPECIFIED\020\000\022\t\n" - + "\005SPACE\020\001\022\016\n" - + "\n" + + "\005SPACE\020\001\022\016\n\n" + "GROUP_CHAT\020\002\022\022\n" + "\016DIRECT_MESSAGE\020\003\"\202\001\n" + "\023SpaceThreadingState\022%\n" @@ -249,9 +251,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033CompleteImportSpaceResponse\022$\n" + "\005space\030\001 \001(\0132\025.google.chat.v1.SpaceB\243\001\n" + "\022com.google.chat.v1B\n" - + "SpaceProtoP\001Z,cloud.google.com/go/chat/apiv1/chatpb;chat" - + "pb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002" - + "\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "SpaceProtoP\001Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb" + + "\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023G" + + "oogle\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -336,7 +338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_chat_v1_Space_PermissionSetting_descriptor, new java.lang.String[] { - "ManagersAllowed", "MembersAllowed", + "ManagersAllowed", "AssistantManagersAllowed", "MembersAllowed", }); internal_static_google_chat_v1_CreateSpaceRequest_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto index a45b7fb2b4c5..5008e7569352 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto @@ -39,7 +39,7 @@ message DeletionMetadata { // User deleted their own message. CREATOR = 1; - // A space manager deleted the message. + // An owner or manager deleted the message. SPACE_OWNER = 2; // A Google Workspace administrator deleted the message. Administrators can diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto index 2981658cac89..8b4ba4c7d347 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto @@ -66,16 +66,66 @@ message Membership { // assigned this role (other enum values might be used in the future). MEMBERSHIP_ROLE_UNSPECIFIED = 0; - // A member of the space. The user has basic permissions, like sending - // messages to the space. In 1:1 and unnamed group conversations, everyone + // A member of the space. In the Chat UI, this role is called Member. + // + // The user has basic permissions, like sending + // messages to the space. + // Managers and owners can grant members additional permissions in a space, + // including: + // + // - Add or remove members. + // - Modify space details. + // - Turn history on or off. + // - Mention everyone in the space with `@all`. + // - Manage Chat apps and webhooks installed in the space. + // + // In direct messages and unnamed group conversations, everyone // has this role. ROLE_MEMBER = 1; - // A space manager. The user has all basic permissions plus administrative - // permissions that let them manage the space, like adding or removing - // members. Only supported in - // [SpaceType.SPACE][google.chat.v1.Space.SpaceType]. + // A space owner. In the Chat UI, this role is called Owner. + // + // The user has the complete set of space permissions to manage the space, + // including: + // + // - Change the role of other members in the space to member, manager, or + // owner. + // - Delete the space. + // + // Only supported in + // [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces). + // + // To learn more, see + // [Learn more about your role as a space + // owner or manager](https://support.google.com/chat/answer/11833441). ROLE_MANAGER = 2; + + // A space manager. In the Chat UI, this role is called Manager. + // + // The user has all basic permissions of `ROLE_MEMBER`, + // and can be granted a subset of administrative permissions by an owner. + // By default, managers have all the permissions of an owner except for the + // ability to: + // + // - Delete the space. + // - Make another space member an owner. + // - Change an owner's role. + // + // By default, managers permissions include but aren't limited to: + // + // - Make another member a manager. + // - Delete messages in the space. + // - Manage space permissions. + // - Receive notifications for requests to join the space if the manager + // has the "manage members" permission in the space settings. + // - Make a space discoverable. + // + // Only supported in + // [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces). + // + // To learn more, see + // [Manage space settings](https://support.google.com/chat/answer/13340792). + ROLE_ASSISTANT_MANAGER = 4; } // Identifier. Resource name of the membership, assigned by the server. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto index 03b533391a48..a2d010d58c06 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto @@ -232,10 +232,20 @@ message Space { // Represents a space permission setting. message PermissionSetting { - // Optional. Whether spaces managers have this permission. + // Optional. Whether space owners + // ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER]) + // have this permission. bool managers_allowed = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Whether non-manager members have this permission. + // Optional. Whether space managers + // [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER]) + // have this permission. + optional bool assistant_managers_allowed = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether basic space members + // ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER]) + // have this permission. bool members_allowed = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-chronicle/README.md b/java-chronicle/README.md index 5ef74b4df203..4f64e6dccd73 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.15.0 + 0.16.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.15.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.16.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceGrpc.java index 1317dc5fe19b..8dbb04592cc7 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceGrpc.java +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceGrpc.java @@ -25,9 +25,6 @@ * access control. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/chronicle/v1/data_access_control.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataAccessControlServiceGrpc { @@ -1022,8 +1019,9 @@ protected DataAccessControlServiceBlockingV2Stub build( * */ public com.google.cloud.chronicle.v1.DataAccessLabel createDataAccessLabel( - com.google.cloud.chronicle.v1.CreateDataAccessLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.CreateDataAccessLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataAccessLabelMethod(), getCallOptions(), request); } @@ -1035,8 +1033,9 @@ public com.google.cloud.chronicle.v1.DataAccessLabel createDataAccessLabel( * */ public com.google.cloud.chronicle.v1.DataAccessLabel getDataAccessLabel( - com.google.cloud.chronicle.v1.GetDataAccessLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.GetDataAccessLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataAccessLabelMethod(), getCallOptions(), request); } @@ -1048,8 +1047,9 @@ public com.google.cloud.chronicle.v1.DataAccessLabel getDataAccessLabel( * */ public com.google.cloud.chronicle.v1.ListDataAccessLabelsResponse listDataAccessLabels( - com.google.cloud.chronicle.v1.ListDataAccessLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.ListDataAccessLabelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataAccessLabelsMethod(), getCallOptions(), request); } @@ -1061,8 +1061,9 @@ public com.google.cloud.chronicle.v1.ListDataAccessLabelsResponse listDataAccess * */ public com.google.cloud.chronicle.v1.DataAccessLabel updateDataAccessLabel( - com.google.cloud.chronicle.v1.UpdateDataAccessLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.UpdateDataAccessLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataAccessLabelMethod(), getCallOptions(), request); } @@ -1076,8 +1077,9 @@ public com.google.cloud.chronicle.v1.DataAccessLabel updateDataAccessLabel( * */ public com.google.protobuf.Empty deleteDataAccessLabel( - com.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.DeleteDataAccessLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataAccessLabelMethod(), getCallOptions(), request); } @@ -1094,8 +1096,9 @@ public com.google.protobuf.Empty deleteDataAccessLabel( * */ public com.google.cloud.chronicle.v1.DataAccessScope createDataAccessScope( - com.google.cloud.chronicle.v1.CreateDataAccessScopeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.CreateDataAccessScopeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataAccessScopeMethod(), getCallOptions(), request); } @@ -1107,8 +1110,9 @@ public com.google.cloud.chronicle.v1.DataAccessScope createDataAccessScope( * */ public com.google.cloud.chronicle.v1.DataAccessScope getDataAccessScope( - com.google.cloud.chronicle.v1.GetDataAccessScopeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.GetDataAccessScopeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataAccessScopeMethod(), getCallOptions(), request); } @@ -1120,8 +1124,9 @@ public com.google.cloud.chronicle.v1.DataAccessScope getDataAccessScope( * */ public com.google.cloud.chronicle.v1.ListDataAccessScopesResponse listDataAccessScopes( - com.google.cloud.chronicle.v1.ListDataAccessScopesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.ListDataAccessScopesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataAccessScopesMethod(), getCallOptions(), request); } @@ -1133,8 +1138,9 @@ public com.google.cloud.chronicle.v1.ListDataAccessScopesResponse listDataAccess * */ public com.google.cloud.chronicle.v1.DataAccessScope updateDataAccessScope( - com.google.cloud.chronicle.v1.UpdateDataAccessScopeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.UpdateDataAccessScopeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataAccessScopeMethod(), getCallOptions(), request); } @@ -1146,8 +1152,9 @@ public com.google.cloud.chronicle.v1.DataAccessScope updateDataAccessScope( * */ public com.google.protobuf.Empty deleteDataAccessScope( - com.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.DeleteDataAccessScopeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataAccessScopeMethod(), getCallOptions(), request); } } diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/EntityServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/EntityServiceGrpc.java index 896cff3cd5bc..eebc8f440769 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/EntityServiceGrpc.java +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/EntityServiceGrpc.java @@ -24,9 +24,6 @@ * EntityService contains apis for finding entities. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/chronicle/v1/entity.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EntityServiceGrpc { @@ -543,8 +540,8 @@ protected EntityServiceBlockingV2Stub build( * */ public com.google.cloud.chronicle.v1.Watchlist getWatchlist( - com.google.cloud.chronicle.v1.GetWatchlistRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.GetWatchlistRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWatchlistMethod(), getCallOptions(), request); } @@ -556,8 +553,9 @@ public com.google.cloud.chronicle.v1.Watchlist getWatchlist( * */ public com.google.cloud.chronicle.v1.ListWatchlistsResponse listWatchlists( - com.google.cloud.chronicle.v1.ListWatchlistsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.ListWatchlistsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWatchlistsMethod(), getCallOptions(), request); } @@ -570,8 +568,9 @@ public com.google.cloud.chronicle.v1.ListWatchlistsResponse listWatchlists( * */ public com.google.cloud.chronicle.v1.Watchlist createWatchlist( - com.google.cloud.chronicle.v1.CreateWatchlistRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.CreateWatchlistRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWatchlistMethod(), getCallOptions(), request); } @@ -583,8 +582,9 @@ public com.google.cloud.chronicle.v1.Watchlist createWatchlist( * */ public com.google.cloud.chronicle.v1.Watchlist updateWatchlist( - com.google.cloud.chronicle.v1.UpdateWatchlistRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.UpdateWatchlistRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWatchlistMethod(), getCallOptions(), request); } @@ -596,8 +596,9 @@ public com.google.cloud.chronicle.v1.Watchlist updateWatchlist( * */ public com.google.protobuf.Empty deleteWatchlist( - com.google.cloud.chronicle.v1.DeleteWatchlistRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.DeleteWatchlistRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWatchlistMethod(), getCallOptions(), request); } } diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceGrpc.java index 09dd8574380e..94be6ddfd52e 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceGrpc.java +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceGrpc.java @@ -24,9 +24,6 @@ * InstanceService provides the entry interface for the Chronicle API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/chronicle/v1/instance.proto") @io.grpc.stub.annotations.GrpcGenerated public final class InstanceServiceGrpc { @@ -236,8 +233,8 @@ protected InstanceServiceBlockingV2Stub build( * */ public com.google.cloud.chronicle.v1.Instance getInstance( - com.google.cloud.chronicle.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } } diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceGrpc.java index fb5ab1127804..5cbe30dbdddf 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceGrpc.java +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceGrpc.java @@ -24,9 +24,6 @@ * ReferenceListService provides an interface for managing reference lists. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/chronicle/v1/reference_list.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReferenceListServiceGrpc { @@ -480,8 +477,9 @@ protected ReferenceListServiceBlockingV2Stub build( * */ public com.google.cloud.chronicle.v1.ReferenceList getReferenceList( - com.google.cloud.chronicle.v1.GetReferenceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.GetReferenceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReferenceListMethod(), getCallOptions(), request); } @@ -493,8 +491,9 @@ public com.google.cloud.chronicle.v1.ReferenceList getReferenceList( * */ public com.google.cloud.chronicle.v1.ListReferenceListsResponse listReferenceLists( - com.google.cloud.chronicle.v1.ListReferenceListsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.ListReferenceListsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReferenceListsMethod(), getCallOptions(), request); } @@ -506,8 +505,9 @@ public com.google.cloud.chronicle.v1.ListReferenceListsResponse listReferenceLis * */ public com.google.cloud.chronicle.v1.ReferenceList createReferenceList( - com.google.cloud.chronicle.v1.CreateReferenceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.CreateReferenceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReferenceListMethod(), getCallOptions(), request); } @@ -519,8 +519,9 @@ public com.google.cloud.chronicle.v1.ReferenceList createReferenceList( * */ public com.google.cloud.chronicle.v1.ReferenceList updateReferenceList( - com.google.cloud.chronicle.v1.UpdateReferenceListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.UpdateReferenceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReferenceListMethod(), getCallOptions(), request); } } diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleServiceGrpc.java index 853ca2c4e0da..ead1e4fb730b 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleServiceGrpc.java +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleServiceGrpc.java @@ -24,9 +24,6 @@ * RuleService provides interface for user-created rules. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/chronicle/v1/rule.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RuleServiceGrpc { @@ -1054,8 +1051,8 @@ protected RuleServiceBlockingV2Stub build( * */ public com.google.cloud.chronicle.v1.Rule createRule( - com.google.cloud.chronicle.v1.CreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.CreateRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRuleMethod(), getCallOptions(), request); } @@ -1067,8 +1064,8 @@ public com.google.cloud.chronicle.v1.Rule createRule( * */ public com.google.cloud.chronicle.v1.Rule getRule( - com.google.cloud.chronicle.v1.GetRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.GetRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRuleMethod(), getCallOptions(), request); } @@ -1080,8 +1077,8 @@ public com.google.cloud.chronicle.v1.Rule getRule( * */ public com.google.cloud.chronicle.v1.ListRulesResponse listRules( - com.google.cloud.chronicle.v1.ListRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.ListRulesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRulesMethod(), getCallOptions(), request); } @@ -1093,8 +1090,8 @@ public com.google.cloud.chronicle.v1.ListRulesResponse listRules( * */ public com.google.cloud.chronicle.v1.Rule updateRule( - com.google.cloud.chronicle.v1.UpdateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.UpdateRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRuleMethod(), getCallOptions(), request); } @@ -1106,8 +1103,8 @@ public com.google.cloud.chronicle.v1.Rule updateRule( * */ public com.google.protobuf.Empty deleteRule( - com.google.cloud.chronicle.v1.DeleteRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.DeleteRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRuleMethod(), getCallOptions(), request); } @@ -1119,8 +1116,9 @@ public com.google.protobuf.Empty deleteRule( * */ public com.google.cloud.chronicle.v1.ListRuleRevisionsResponse listRuleRevisions( - com.google.cloud.chronicle.v1.ListRuleRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.ListRuleRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRuleRevisionsMethod(), getCallOptions(), request); } @@ -1132,8 +1130,9 @@ public com.google.cloud.chronicle.v1.ListRuleRevisionsResponse listRuleRevisions * */ public com.google.longrunning.Operation createRetrohunt( - com.google.cloud.chronicle.v1.CreateRetrohuntRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.CreateRetrohuntRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRetrohuntMethod(), getCallOptions(), request); } @@ -1145,8 +1144,8 @@ public com.google.longrunning.Operation createRetrohunt( * */ public com.google.cloud.chronicle.v1.Retrohunt getRetrohunt( - com.google.cloud.chronicle.v1.GetRetrohuntRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.GetRetrohuntRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRetrohuntMethod(), getCallOptions(), request); } @@ -1158,8 +1157,9 @@ public com.google.cloud.chronicle.v1.Retrohunt getRetrohunt( * */ public com.google.cloud.chronicle.v1.ListRetrohuntsResponse listRetrohunts( - com.google.cloud.chronicle.v1.ListRetrohuntsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.ListRetrohuntsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRetrohuntsMethod(), getCallOptions(), request); } @@ -1171,8 +1171,9 @@ public com.google.cloud.chronicle.v1.ListRetrohuntsResponse listRetrohunts( * */ public com.google.cloud.chronicle.v1.RuleDeployment getRuleDeployment( - com.google.cloud.chronicle.v1.GetRuleDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.GetRuleDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRuleDeploymentMethod(), getCallOptions(), request); } @@ -1184,8 +1185,9 @@ public com.google.cloud.chronicle.v1.RuleDeployment getRuleDeployment( * */ public com.google.cloud.chronicle.v1.ListRuleDeploymentsResponse listRuleDeployments( - com.google.cloud.chronicle.v1.ListRuleDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.ListRuleDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRuleDeploymentsMethod(), getCallOptions(), request); } @@ -1200,8 +1202,9 @@ public com.google.cloud.chronicle.v1.ListRuleDeploymentsResponse listRuleDeploym * */ public com.google.cloud.chronicle.v1.RuleDeployment updateRuleDeployment( - com.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRuleDeploymentMethod(), getCallOptions(), request); } } diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index 9e02f9411093..b71aa72e9fbb 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.79.0 + 3.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.79.0' +implementation 'com.google.cloud:google-cloud-build:3.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudbuild/grpc-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CloudBuildGrpc.java b/java-cloudbuild/grpc-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CloudBuildGrpc.java index 2da284467b05..5946aee71947 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CloudBuildGrpc.java +++ b/java-cloudbuild/grpc-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CloudBuildGrpc.java @@ -29,9 +29,6 @@ * determine the status of the build. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/cloudbuild/v1/cloudbuild.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudBuildGrpc { @@ -1574,8 +1571,8 @@ protected CloudBuildBlockingV2Stub build( * */ public com.google.longrunning.Operation createBuild( - com.google.cloudbuild.v1.CreateBuildRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.CreateBuildRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBuildMethod(), getCallOptions(), request); } @@ -1588,9 +1585,9 @@ public com.google.longrunning.Operation createBuild( * `FAILURE`, or `WORKING`), and timing information. * */ - public com.google.cloudbuild.v1.Build getBuild( - com.google.cloudbuild.v1.GetBuildRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloudbuild.v1.Build getBuild(com.google.cloudbuild.v1.GetBuildRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBuildMethod(), getCallOptions(), request); } @@ -1604,8 +1601,8 @@ public com.google.cloudbuild.v1.Build getBuild( * */ public com.google.cloudbuild.v1.ListBuildsResponse listBuilds( - com.google.cloudbuild.v1.ListBuildsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.ListBuildsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBuildsMethod(), getCallOptions(), request); } @@ -1617,8 +1614,8 @@ public com.google.cloudbuild.v1.ListBuildsResponse listBuilds( * */ public com.google.cloudbuild.v1.Build cancelBuild( - com.google.cloudbuild.v1.CancelBuildRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.CancelBuildRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelBuildMethod(), getCallOptions(), request); } @@ -1649,8 +1646,8 @@ public com.google.cloudbuild.v1.Build cancelBuild( * */ public com.google.longrunning.Operation retryBuild( - com.google.cloudbuild.v1.RetryBuildRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.RetryBuildRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetryBuildMethod(), getCallOptions(), request); } @@ -1665,8 +1662,8 @@ public com.google.longrunning.Operation retryBuild( * */ public com.google.longrunning.Operation approveBuild( - com.google.cloudbuild.v1.ApproveBuildRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.ApproveBuildRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApproveBuildMethod(), getCallOptions(), request); } @@ -1679,8 +1676,8 @@ public com.google.longrunning.Operation approveBuild( * */ public com.google.cloudbuild.v1.BuildTrigger createBuildTrigger( - com.google.cloudbuild.v1.CreateBuildTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.CreateBuildTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBuildTriggerMethod(), getCallOptions(), request); } @@ -1693,8 +1690,8 @@ public com.google.cloudbuild.v1.BuildTrigger createBuildTrigger( * */ public com.google.cloudbuild.v1.BuildTrigger getBuildTrigger( - com.google.cloudbuild.v1.GetBuildTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.GetBuildTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBuildTriggerMethod(), getCallOptions(), request); } @@ -1707,8 +1704,8 @@ public com.google.cloudbuild.v1.BuildTrigger getBuildTrigger( * */ public com.google.cloudbuild.v1.ListBuildTriggersResponse listBuildTriggers( - com.google.cloudbuild.v1.ListBuildTriggersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.ListBuildTriggersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBuildTriggersMethod(), getCallOptions(), request); } @@ -1721,8 +1718,8 @@ public com.google.cloudbuild.v1.ListBuildTriggersResponse listBuildTriggers( * */ public com.google.protobuf.Empty deleteBuildTrigger( - com.google.cloudbuild.v1.DeleteBuildTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.DeleteBuildTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBuildTriggerMethod(), getCallOptions(), request); } @@ -1735,8 +1732,8 @@ public com.google.protobuf.Empty deleteBuildTrigger( * */ public com.google.cloudbuild.v1.BuildTrigger updateBuildTrigger( - com.google.cloudbuild.v1.UpdateBuildTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.UpdateBuildTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBuildTriggerMethod(), getCallOptions(), request); } @@ -1753,8 +1750,8 @@ public com.google.cloudbuild.v1.BuildTrigger updateBuildTrigger( * */ public com.google.longrunning.Operation runBuildTrigger( - com.google.cloudbuild.v1.RunBuildTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.RunBuildTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunBuildTriggerMethod(), getCallOptions(), request); } @@ -1767,8 +1764,9 @@ public com.google.longrunning.Operation runBuildTrigger( * */ public com.google.cloudbuild.v1.ReceiveTriggerWebhookResponse receiveTriggerWebhook( - com.google.cloudbuild.v1.ReceiveTriggerWebhookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.ReceiveTriggerWebhookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReceiveTriggerWebhookMethod(), getCallOptions(), request); } @@ -1780,8 +1778,8 @@ public com.google.cloudbuild.v1.ReceiveTriggerWebhookResponse receiveTriggerWebh * */ public com.google.longrunning.Operation createWorkerPool( - com.google.cloudbuild.v1.CreateWorkerPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.CreateWorkerPoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkerPoolMethod(), getCallOptions(), request); } @@ -1793,8 +1791,8 @@ public com.google.longrunning.Operation createWorkerPool( * */ public com.google.cloudbuild.v1.WorkerPool getWorkerPool( - com.google.cloudbuild.v1.GetWorkerPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.GetWorkerPoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkerPoolMethod(), getCallOptions(), request); } @@ -1806,8 +1804,8 @@ public com.google.cloudbuild.v1.WorkerPool getWorkerPool( * */ public com.google.longrunning.Operation deleteWorkerPool( - com.google.cloudbuild.v1.DeleteWorkerPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.DeleteWorkerPoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkerPoolMethod(), getCallOptions(), request); } @@ -1819,8 +1817,8 @@ public com.google.longrunning.Operation deleteWorkerPool( * */ public com.google.longrunning.Operation updateWorkerPool( - com.google.cloudbuild.v1.UpdateWorkerPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.UpdateWorkerPoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkerPoolMethod(), getCallOptions(), request); } @@ -1832,8 +1830,8 @@ public com.google.longrunning.Operation updateWorkerPool( * */ public com.google.cloudbuild.v1.ListWorkerPoolsResponse listWorkerPools( - com.google.cloudbuild.v1.ListWorkerPoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v1.ListWorkerPoolsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkerPoolsMethod(), getCallOptions(), request); } } diff --git a/java-cloudbuild/grpc-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/RepositoryManagerGrpc.java b/java-cloudbuild/grpc-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/RepositoryManagerGrpc.java index 3c4e22f1b2e0..75303afc897f 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/RepositoryManagerGrpc.java +++ b/java-cloudbuild/grpc-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/RepositoryManagerGrpc.java @@ -24,9 +24,6 @@ * Manages connections to source code repositories. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/cloudbuild/v2/repositories.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RepositoryManagerGrpc { @@ -1231,8 +1228,8 @@ protected RepositoryManagerBlockingV2Stub build( * */ public com.google.longrunning.Operation createConnection( - com.google.cloudbuild.v2.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.CreateConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectionMethod(), getCallOptions(), request); } @@ -1244,8 +1241,8 @@ public com.google.longrunning.Operation createConnection( * */ public com.google.cloudbuild.v2.Connection getConnection( - com.google.cloudbuild.v2.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.GetConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionMethod(), getCallOptions(), request); } @@ -1257,8 +1254,8 @@ public com.google.cloudbuild.v2.Connection getConnection( * */ public com.google.cloudbuild.v2.ListConnectionsResponse listConnections( - com.google.cloudbuild.v2.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.ListConnectionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectionsMethod(), getCallOptions(), request); } @@ -1270,8 +1267,8 @@ public com.google.cloudbuild.v2.ListConnectionsResponse listConnections( * */ public com.google.longrunning.Operation updateConnection( - com.google.cloudbuild.v2.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.UpdateConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); } @@ -1283,8 +1280,8 @@ public com.google.longrunning.Operation updateConnection( * */ public com.google.longrunning.Operation deleteConnection( - com.google.cloudbuild.v2.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.DeleteConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); } @@ -1296,8 +1293,8 @@ public com.google.longrunning.Operation deleteConnection( * */ public com.google.longrunning.Operation createRepository( - com.google.cloudbuild.v2.CreateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.CreateRepositoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRepositoryMethod(), getCallOptions(), request); } @@ -1309,8 +1306,9 @@ public com.google.longrunning.Operation createRepository( * */ public com.google.longrunning.Operation batchCreateRepositories( - com.google.cloudbuild.v2.BatchCreateRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.BatchCreateRepositoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateRepositoriesMethod(), getCallOptions(), request); } @@ -1322,8 +1320,8 @@ public com.google.longrunning.Operation batchCreateRepositories( * */ public com.google.cloudbuild.v2.Repository getRepository( - com.google.cloudbuild.v2.GetRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.GetRepositoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRepositoryMethod(), getCallOptions(), request); } @@ -1335,8 +1333,8 @@ public com.google.cloudbuild.v2.Repository getRepository( * */ public com.google.cloudbuild.v2.ListRepositoriesResponse listRepositories( - com.google.cloudbuild.v2.ListRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.ListRepositoriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRepositoriesMethod(), getCallOptions(), request); } @@ -1348,8 +1346,8 @@ public com.google.cloudbuild.v2.ListRepositoriesResponse listRepositories( * */ public com.google.longrunning.Operation deleteRepository( - com.google.cloudbuild.v2.DeleteRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.DeleteRepositoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } @@ -1361,8 +1359,9 @@ public com.google.longrunning.Operation deleteRepository( * */ public com.google.cloudbuild.v2.FetchReadWriteTokenResponse fetchReadWriteToken( - com.google.cloudbuild.v2.FetchReadWriteTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.FetchReadWriteTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchReadWriteTokenMethod(), getCallOptions(), request); } @@ -1374,8 +1373,8 @@ public com.google.cloudbuild.v2.FetchReadWriteTokenResponse fetchReadWriteToken( * */ public com.google.cloudbuild.v2.FetchReadTokenResponse fetchReadToken( - com.google.cloudbuild.v2.FetchReadTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.FetchReadTokenRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchReadTokenMethod(), getCallOptions(), request); } @@ -1388,8 +1387,9 @@ public com.google.cloudbuild.v2.FetchReadTokenResponse fetchReadToken( * */ public com.google.cloudbuild.v2.FetchLinkableRepositoriesResponse fetchLinkableRepositories( - com.google.cloudbuild.v2.FetchLinkableRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.FetchLinkableRepositoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchLinkableRepositoriesMethod(), getCallOptions(), request); } @@ -1401,8 +1401,8 @@ public com.google.cloudbuild.v2.FetchLinkableRepositoriesResponse fetchLinkableR * */ public com.google.cloudbuild.v2.FetchGitRefsResponse fetchGitRefs( - com.google.cloudbuild.v2.FetchGitRefsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloudbuild.v2.FetchGitRefsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchGitRefsMethod(), getCallOptions(), request); } } diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 5ce35b72aea9..059db50f92a8 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.75.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java index 2f11c2637393..e31698afc4a1 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java @@ -30,9 +30,6 @@ * for charging for the procured item. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/commerce/consumer/procurement/v1/procurement_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConsumerProcurementServiceGrpc { @@ -608,8 +605,9 @@ protected ConsumerProcurementServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation placeOrder( - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPlaceOrderMethod(), getCallOptions(), request); } @@ -622,8 +620,9 @@ public com.google.longrunning.Operation placeOrder( * */ public com.google.cloud.commerce.consumer.procurement.v1.Order getOrder( - com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrderMethod(), getCallOptions(), request); } @@ -637,8 +636,9 @@ public com.google.cloud.commerce.consumer.procurement.v1.Order getOrder( * */ public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse listOrders( - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrdersMethod(), getCallOptions(), request); } @@ -651,8 +651,9 @@ public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse list * */ public com.google.longrunning.Operation modifyOrder( - com.google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModifyOrderMethod(), getCallOptions(), request); } @@ -666,8 +667,9 @@ public com.google.longrunning.Operation modifyOrder( * */ public com.google.longrunning.Operation cancelOrder( - com.google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelOrderMethod(), getCallOptions(), request); } } diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceGrpc.java b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceGrpc.java index 228543115b03..9b0fef818603 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceGrpc.java +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceGrpc.java @@ -24,10 +24,6 @@ * Service for managing licenses. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = - "Source: google/cloud/commerce/consumer/procurement/v1/license_management_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LicenseManagementServiceGrpc { @@ -574,8 +570,9 @@ protected LicenseManagementServiceBlockingV2Stub build( * */ public com.google.cloud.commerce.consumer.procurement.v1.LicensePool getLicensePool( - com.google.cloud.commerce.consumer.procurement.v1.GetLicensePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.GetLicensePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLicensePoolMethod(), getCallOptions(), request); } @@ -587,8 +584,9 @@ public com.google.cloud.commerce.consumer.procurement.v1.LicensePool getLicenseP * */ public com.google.cloud.commerce.consumer.procurement.v1.LicensePool updateLicensePool( - com.google.cloud.commerce.consumer.procurement.v1.UpdateLicensePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.UpdateLicensePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateLicensePoolMethod(), getCallOptions(), request); } @@ -600,8 +598,9 @@ public com.google.cloud.commerce.consumer.procurement.v1.LicensePool updateLicen * */ public com.google.cloud.commerce.consumer.procurement.v1.AssignResponse assign( - com.google.cloud.commerce.consumer.procurement.v1.AssignRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.AssignRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAssignMethod(), getCallOptions(), request); } @@ -613,8 +612,9 @@ public com.google.cloud.commerce.consumer.procurement.v1.AssignResponse assign( * */ public com.google.cloud.commerce.consumer.procurement.v1.UnassignResponse unassign( - com.google.cloud.commerce.consumer.procurement.v1.UnassignRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.UnassignRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnassignMethod(), getCallOptions(), request); } @@ -627,9 +627,9 @@ public com.google.cloud.commerce.consumer.procurement.v1.UnassignResponse unassi */ public com.google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersResponse enumerateLicensedUsers( - com.google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnumerateLicensedUsersMethod(), getCallOptions(), request); } } diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java index 45d7f181d415..2eb7ca8d65d7 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java @@ -30,10 +30,6 @@ * for charging for the procured item. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = - "Source: google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConsumerProcurementServiceGrpc { @@ -458,8 +454,9 @@ protected ConsumerProcurementServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation placeOrder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPlaceOrderMethod(), getCallOptions(), request); } @@ -473,8 +470,9 @@ public com.google.longrunning.Operation placeOrder( * */ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getOrder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrderMethod(), getCallOptions(), request); } @@ -488,8 +486,9 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getOrder( * */ public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse listOrders( - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrdersMethod(), getCallOptions(), request); } } diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 340ce9bee1f1..3ebf2312841b 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.41.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.42.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreGrpc.java b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreGrpc.java index d070d7e521ed..0d981a9ec2b6 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreGrpc.java +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/cloudcontrolspartner/v1/core.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudControlsPartnerCoreGrpc { @@ -1053,8 +1050,9 @@ protected CloudControlsPartnerCoreBlockingV2Stub build( * */ public com.google.cloud.cloudcontrolspartner.v1.Workload getWorkload( - com.google.cloud.cloudcontrolspartner.v1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.GetWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkloadMethod(), getCallOptions(), request); } @@ -1066,8 +1064,9 @@ public com.google.cloud.cloudcontrolspartner.v1.Workload getWorkload( * */ public com.google.cloud.cloudcontrolspartner.v1.ListWorkloadsResponse listWorkloads( - com.google.cloud.cloudcontrolspartner.v1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.ListWorkloadsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkloadsMethod(), getCallOptions(), request); } @@ -1079,8 +1078,9 @@ public com.google.cloud.cloudcontrolspartner.v1.ListWorkloadsResponse listWorklo * */ public com.google.cloud.cloudcontrolspartner.v1.Customer getCustomer( - com.google.cloud.cloudcontrolspartner.v1.GetCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.GetCustomerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomerMethod(), getCallOptions(), request); } @@ -1092,8 +1092,9 @@ public com.google.cloud.cloudcontrolspartner.v1.Customer getCustomer( * */ public com.google.cloud.cloudcontrolspartner.v1.ListCustomersResponse listCustomers( - com.google.cloud.cloudcontrolspartner.v1.ListCustomersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.ListCustomersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomersMethod(), getCallOptions(), request); } @@ -1105,8 +1106,9 @@ public com.google.cloud.cloudcontrolspartner.v1.ListCustomersResponse listCustom * */ public com.google.cloud.cloudcontrolspartner.v1.EkmConnections getEkmConnections( - com.google.cloud.cloudcontrolspartner.v1.GetEkmConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.GetEkmConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEkmConnectionsMethod(), getCallOptions(), request); } @@ -1118,8 +1120,9 @@ public com.google.cloud.cloudcontrolspartner.v1.EkmConnections getEkmConnections * */ public com.google.cloud.cloudcontrolspartner.v1.PartnerPermissions getPartnerPermissions( - com.google.cloud.cloudcontrolspartner.v1.GetPartnerPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.GetPartnerPermissionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPartnerPermissionsMethod(), getCallOptions(), request); } @@ -1134,8 +1137,9 @@ public com.google.cloud.cloudcontrolspartner.v1.PartnerPermissions getPartnerPer @java.lang.Deprecated public com.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsResponse listAccessApprovalRequests( - com.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccessApprovalRequestsMethod(), getCallOptions(), request); } @@ -1147,8 +1151,9 @@ public com.google.cloud.cloudcontrolspartner.v1.PartnerPermissions getPartnerPer * */ public com.google.cloud.cloudcontrolspartner.v1.Partner getPartner( - com.google.cloud.cloudcontrolspartner.v1.GetPartnerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.GetPartnerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPartnerMethod(), getCallOptions(), request); } @@ -1160,8 +1165,9 @@ public com.google.cloud.cloudcontrolspartner.v1.Partner getPartner( * */ public com.google.cloud.cloudcontrolspartner.v1.Customer createCustomer( - com.google.cloud.cloudcontrolspartner.v1.CreateCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.CreateCustomerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomerMethod(), getCallOptions(), request); } @@ -1173,8 +1179,9 @@ public com.google.cloud.cloudcontrolspartner.v1.Customer createCustomer( * */ public com.google.cloud.cloudcontrolspartner.v1.Customer updateCustomer( - com.google.cloud.cloudcontrolspartner.v1.UpdateCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.UpdateCustomerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomerMethod(), getCallOptions(), request); } @@ -1186,8 +1193,9 @@ public com.google.cloud.cloudcontrolspartner.v1.Customer updateCustomer( * */ public com.google.protobuf.Empty deleteCustomer( - com.google.cloud.cloudcontrolspartner.v1.DeleteCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.DeleteCustomerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomerMethod(), getCallOptions(), request); } } diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringGrpc.java b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringGrpc.java index cf89b21ab06c..426272ad41d1 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringGrpc.java +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/cloudcontrolspartner/v1/monitoring.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudControlsPartnerMonitoringGrpc { @@ -349,8 +346,9 @@ protected CloudControlsPartnerMonitoringBlockingV2Stub build( * */ public com.google.cloud.cloudcontrolspartner.v1.ListViolationsResponse listViolations( - com.google.cloud.cloudcontrolspartner.v1.ListViolationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.ListViolationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListViolationsMethod(), getCallOptions(), request); } @@ -362,8 +360,9 @@ public com.google.cloud.cloudcontrolspartner.v1.ListViolationsResponse listViola * */ public com.google.cloud.cloudcontrolspartner.v1.Violation getViolation( - com.google.cloud.cloudcontrolspartner.v1.GetViolationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1.GetViolationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetViolationMethod(), getCallOptions(), request); } } diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java index cefbd7a6e429..b8ee58b4c858 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/cloudcontrolspartner/v1beta/core.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudControlsPartnerCoreGrpc { @@ -1060,8 +1057,9 @@ protected CloudControlsPartnerCoreBlockingV2Stub build( * */ public com.google.cloud.cloudcontrolspartner.v1beta.Workload getWorkload( - com.google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkloadMethod(), getCallOptions(), request); } @@ -1073,8 +1071,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.Workload getWorkload( * */ public com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse listWorkloads( - com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkloadsMethod(), getCallOptions(), request); } @@ -1086,8 +1085,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse listWo * */ public com.google.cloud.cloudcontrolspartner.v1beta.Customer getCustomer( - com.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomerMethod(), getCallOptions(), request); } @@ -1099,8 +1099,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.Customer getCustomer( * */ public com.google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse listCustomers( - com.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomersMethod(), getCallOptions(), request); } @@ -1112,8 +1113,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse listCu * */ public com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections getEkmConnections( - com.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEkmConnectionsMethod(), getCallOptions(), request); } @@ -1125,8 +1127,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections getEkmConnect * */ public com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions getPartnerPermissions( - com.google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPartnerPermissionsMethod(), getCallOptions(), request); } @@ -1141,9 +1144,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions getPartne @java.lang.Deprecated public com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse listAccessApprovalRequests( - com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccessApprovalRequestsMethod(), getCallOptions(), request); } @@ -1155,8 +1158,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions getPartne * */ public com.google.cloud.cloudcontrolspartner.v1beta.Partner getPartner( - com.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPartnerMethod(), getCallOptions(), request); } @@ -1168,8 +1172,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.Partner getPartner( * */ public com.google.cloud.cloudcontrolspartner.v1beta.Customer createCustomer( - com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomerMethod(), getCallOptions(), request); } @@ -1181,8 +1186,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.Customer createCustomer( * */ public com.google.cloud.cloudcontrolspartner.v1beta.Customer updateCustomer( - com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomerMethod(), getCallOptions(), request); } @@ -1194,8 +1200,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.Customer updateCustomer( * */ public com.google.protobuf.Empty deleteCustomer( - com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomerMethod(), getCallOptions(), request); } } diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringGrpc.java b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringGrpc.java index da6dfaac5587..feb2f55e0db4 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringGrpc.java +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/cloudcontrolspartner/v1beta/monitoring.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudControlsPartnerMonitoringGrpc { @@ -351,8 +348,9 @@ protected CloudControlsPartnerMonitoringBlockingV2Stub build( * */ public com.google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse listViolations( - com.google.cloud.cloudcontrolspartner.v1beta.ListViolationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.ListViolationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListViolationsMethod(), getCallOptions(), request); } @@ -364,8 +362,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse listV * */ public com.google.cloud.cloudcontrolspartner.v1beta.Violation getViolation( - com.google.cloud.cloudcontrolspartner.v1beta.GetViolationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudcontrolspartner.v1beta.GetViolationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetViolationMethod(), getCallOptions(), request); } } diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index 4b9c982ce86a..562b9c4c9996 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.45.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.46.0" ``` ## Authentication @@ -196,7 +196,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasGrpc.java b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasGrpc.java index d6383269674c..28cc75521a96 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasGrpc.java +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasGrpc.java @@ -29,9 +29,6 @@ * - List/Get pending and historical quota preference. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/cloudquotas/v1/cloudquotas.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudQuotasGrpc { @@ -660,8 +657,9 @@ protected CloudQuotasBlockingV2Stub build( * */ public com.google.api.cloudquotas.v1.ListQuotaInfosResponse listQuotaInfos( - com.google.api.cloudquotas.v1.ListQuotaInfosRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1.ListQuotaInfosRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQuotaInfosMethod(), getCallOptions(), request); } @@ -673,8 +671,8 @@ public com.google.api.cloudquotas.v1.ListQuotaInfosResponse listQuotaInfos( * */ public com.google.api.cloudquotas.v1.QuotaInfo getQuotaInfo( - com.google.api.cloudquotas.v1.GetQuotaInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1.GetQuotaInfoRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQuotaInfoMethod(), getCallOptions(), request); } @@ -686,8 +684,9 @@ public com.google.api.cloudquotas.v1.QuotaInfo getQuotaInfo( * */ public com.google.api.cloudquotas.v1.ListQuotaPreferencesResponse listQuotaPreferences( - com.google.api.cloudquotas.v1.ListQuotaPreferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1.ListQuotaPreferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQuotaPreferencesMethod(), getCallOptions(), request); } @@ -699,8 +698,9 @@ public com.google.api.cloudquotas.v1.ListQuotaPreferencesResponse listQuotaPrefe * */ public com.google.api.cloudquotas.v1.QuotaPreference getQuotaPreference( - com.google.api.cloudquotas.v1.GetQuotaPreferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1.GetQuotaPreferenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQuotaPreferenceMethod(), getCallOptions(), request); } @@ -712,8 +712,9 @@ public com.google.api.cloudquotas.v1.QuotaPreference getQuotaPreference( * */ public com.google.api.cloudquotas.v1.QuotaPreference createQuotaPreference( - com.google.api.cloudquotas.v1.CreateQuotaPreferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1.CreateQuotaPreferenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQuotaPreferenceMethod(), getCallOptions(), request); } @@ -726,8 +727,9 @@ public com.google.api.cloudquotas.v1.QuotaPreference createQuotaPreference( * */ public com.google.api.cloudquotas.v1.QuotaPreference updateQuotaPreference( - com.google.api.cloudquotas.v1.UpdateQuotaPreferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1.UpdateQuotaPreferenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQuotaPreferenceMethod(), getCallOptions(), request); } } diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasGrpc.java b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasGrpc.java index bd6b37cc2bec..243fa45ab789 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasGrpc.java +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasGrpc.java @@ -29,9 +29,6 @@ * - List/Get pending and historical quota preference. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/cloudquotas/v1beta/cloudquotas.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudQuotasGrpc { @@ -663,8 +660,9 @@ protected CloudQuotasBlockingV2Stub build( * */ public com.google.api.cloudquotas.v1beta.ListQuotaInfosResponse listQuotaInfos( - com.google.api.cloudquotas.v1beta.ListQuotaInfosRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1beta.ListQuotaInfosRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQuotaInfosMethod(), getCallOptions(), request); } @@ -676,8 +674,9 @@ public com.google.api.cloudquotas.v1beta.ListQuotaInfosResponse listQuotaInfos( * */ public com.google.api.cloudquotas.v1beta.QuotaInfo getQuotaInfo( - com.google.api.cloudquotas.v1beta.GetQuotaInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1beta.GetQuotaInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQuotaInfoMethod(), getCallOptions(), request); } @@ -689,8 +688,9 @@ public com.google.api.cloudquotas.v1beta.QuotaInfo getQuotaInfo( * */ public com.google.api.cloudquotas.v1beta.ListQuotaPreferencesResponse listQuotaPreferences( - com.google.api.cloudquotas.v1beta.ListQuotaPreferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1beta.ListQuotaPreferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQuotaPreferencesMethod(), getCallOptions(), request); } @@ -702,8 +702,9 @@ public com.google.api.cloudquotas.v1beta.ListQuotaPreferencesResponse listQuotaP * */ public com.google.api.cloudquotas.v1beta.QuotaPreference getQuotaPreference( - com.google.api.cloudquotas.v1beta.GetQuotaPreferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1beta.GetQuotaPreferenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQuotaPreferenceMethod(), getCallOptions(), request); } @@ -715,8 +716,9 @@ public com.google.api.cloudquotas.v1beta.QuotaPreference getQuotaPreference( * */ public com.google.api.cloudquotas.v1beta.QuotaPreference createQuotaPreference( - com.google.api.cloudquotas.v1beta.CreateQuotaPreferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1beta.CreateQuotaPreferenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQuotaPreferenceMethod(), getCallOptions(), request); } @@ -729,8 +731,9 @@ public com.google.api.cloudquotas.v1beta.QuotaPreference createQuotaPreference( * */ public com.google.api.cloudquotas.v1beta.QuotaPreference updateQuotaPreference( - com.google.api.cloudquotas.v1beta.UpdateQuotaPreferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1beta.UpdateQuotaPreferenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQuotaPreferenceMethod(), getCallOptions(), request); } } diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java index ab3292cac3bf..1161abd72cd2 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java @@ -28,9 +28,6 @@ * - Get the name of the configurations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/cloudquotas/v1beta/quota_adjuster_settings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class QuotaAdjusterSettingsManagerGrpc { @@ -356,8 +353,9 @@ protected QuotaAdjusterSettingsManagerBlockingV2Stub build( * */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjusterSettings( - com.google.api.cloudquotas.v1beta.UpdateQuotaAdjusterSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1beta.UpdateQuotaAdjusterSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQuotaAdjusterSettingsMethod(), getCallOptions(), request); } @@ -369,8 +367,9 @@ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjust * */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings getQuotaAdjusterSettings( - com.google.api.cloudquotas.v1beta.GetQuotaAdjusterSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.cloudquotas.v1beta.GetQuotaAdjusterSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQuotaAdjusterSettingsMethod(), getCallOptions(), request); } } diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index 3ffcbc18078f..3c714730b69e 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsecuritycompliance - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.4.0' +implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.5.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsecuritycompliance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.5.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java new file mode 100644 index 000000000000..0234acbd4051 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java @@ -0,0 +1,1352 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.stub.AuditStub; +import com.google.cloud.cloudsecuritycompliance.v1.stub.AuditStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service describing handlers for resources + * + *

    This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

    {@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 (AuditClient auditClient = AuditClient.create()) {
    + *   String scope = "scope109264468";
    + *   GenerateFrameworkAuditScopeReportRequest.Format reportFormat =
    + *       GenerateFrameworkAuditScopeReportRequest.Format.forNumber(0);
    + *   String complianceFramework = "complianceFramework-1808314333";
    + *   GenerateFrameworkAuditScopeReportResponse response =
    + *       auditClient.generateFrameworkAuditScopeReport(scope, reportFormat, complianceFramework);
    + * }
    + * }
    + * + *

    Note: close() needs to be called on the AuditClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Methods
    MethodDescriptionMethod Variants

    GenerateFrameworkAuditScopeReport

    Generates an audit scope report for a framework.

    + *

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

    + *
      + *
    • generateFrameworkAuditScopeReport(GenerateFrameworkAuditScopeReportRequest request) + *

    + *

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

    + *
      + *
    • generateFrameworkAuditScopeReport(String scope, GenerateFrameworkAuditScopeReportRequest.Format reportFormat, String complianceFramework) + *

    + *

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

    + *
      + *
    • generateFrameworkAuditScopeReportCallable() + *

    + *

    CreateFrameworkAudit

    Creates an audit scope report for a framework.

    + *

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

    + *
      + *
    • createFrameworkAuditAsync(CreateFrameworkAuditRequest request) + *

    + *

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

    + *
      + *
    • createFrameworkAuditAsync(LocationName parent, FrameworkAudit frameworkAudit, String frameworkAuditId) + *

    • createFrameworkAuditAsync(OrganizationLocationName parent, FrameworkAudit frameworkAudit, String frameworkAuditId) + *

    • createFrameworkAuditAsync(String parent, FrameworkAudit frameworkAudit, String frameworkAuditId) + *

    + *

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

    + *
      + *
    • createFrameworkAuditOperationCallable() + *

    • createFrameworkAuditCallable() + *

    + *

    ListFrameworkAudits

    Lists the framework audits for a given organization, folder, or project.

    + *

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

    + *
      + *
    • listFrameworkAudits(ListFrameworkAuditsRequest request) + *

    + *

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

    + *
      + *
    • listFrameworkAudits(LocationName parent) + *

    • listFrameworkAudits(OrganizationLocationName parent) + *

    • listFrameworkAudits(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.

    + *
      + *
    • listFrameworkAuditsPagedCallable() + *

    • listFrameworkAuditsCallable() + *

    + *

    GetFrameworkAudit

    Gets the details for a framework audit.

    + *

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

    + *
      + *
    • getFrameworkAudit(GetFrameworkAuditRequest request) + *

    + *

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

    + *
      + *
    • getFrameworkAudit(FrameworkAuditName name) + *

    • getFrameworkAudit(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.

    + *
      + *
    • getFrameworkAuditCallable() + *

    + *

    ListLocations

    Lists information about the supported locations for this service.

    + *

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

    + *
      + *
    • listLocations(ListLocationsRequest request) + *

    + *

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

    + *
      + *
    • listLocationsPagedCallable() + *

    • listLocationsCallable() + *

    + *

    GetLocation

    Gets information about a location.

    + *

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

    + *
      + *
    • getLocation(GetLocationRequest request) + *

    + *

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

    + *
      + *
    • getLocationCallable() + *

    + *
    + * + *

    See the individual methods for example code. + * + *

    Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

    This class can be customized by passing in a custom instance of AuditSettings to create(). For + * example: + * + *

    To customize credentials: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * AuditSettings auditSettings =
    + *     AuditSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * AuditClient auditClient = AuditClient.create(auditSettings);
    + * }
    + * + *

    To customize the endpoint: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * AuditSettings auditSettings = AuditSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * AuditClient auditClient = AuditClient.create(auditSettings);
    + * }
    + * + *

    To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * AuditSettings auditSettings = AuditSettings.newHttpJsonBuilder().build();
    + * AuditClient auditClient = AuditClient.create(auditSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AuditClient implements BackgroundResource { + private final AuditSettings settings; + private final AuditStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AuditClient with default settings. */ + public static final AuditClient create() throws IOException { + return create(AuditSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AuditClient, using the given settings. The channels are created based + * on the settings passed in, or defaults for any settings that are not set. + */ + public static final AuditClient create(AuditSettings settings) throws IOException { + return new AuditClient(settings); + } + + /** + * Constructs an instance of AuditClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(AuditSettings). + */ + public static final AuditClient create(AuditStub stub) { + return new AuditClient(stub); + } + + /** + * Constructs an instance of AuditClient, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected AuditClient(AuditSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AuditStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AuditClient(AuditStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final AuditSettings getSettings() { + return settings; + } + + public AuditStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates an audit scope report for a framework. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   String scope = "scope109264468";
    +   *   GenerateFrameworkAuditScopeReportRequest.Format reportFormat =
    +   *       GenerateFrameworkAuditScopeReportRequest.Format.forNumber(0);
    +   *   String complianceFramework = "complianceFramework-1808314333";
    +   *   GenerateFrameworkAuditScopeReportResponse response =
    +   *       auditClient.generateFrameworkAuditScopeReport(scope, reportFormat, complianceFramework);
    +   * }
    +   * }
    + * + * @param scope Required. The organization, folder or project for the audit report. + *

    Supported formats are the following: + *

      + *
    • `projects/{project_id}/locations/{location}` + *
    • `folders/{folder_id}/locations/{location}` + *
    • `organizations/{organization_id}/locations/{location}` + *
    + * + * @param reportFormat Required. The format that the scope report bytes is returned in. + * @param complianceFramework Required. The compliance framework that the scope report is + * generated for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateFrameworkAuditScopeReportResponse generateFrameworkAuditScopeReport( + String scope, + GenerateFrameworkAuditScopeReportRequest.Format reportFormat, + String complianceFramework) { + GenerateFrameworkAuditScopeReportRequest request = + GenerateFrameworkAuditScopeReportRequest.newBuilder() + .setScope(scope) + .setReportFormat(reportFormat) + .setComplianceFramework(complianceFramework) + .build(); + return generateFrameworkAuditScopeReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates an audit scope report for a framework. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   GenerateFrameworkAuditScopeReportRequest request =
    +   *       GenerateFrameworkAuditScopeReportRequest.newBuilder()
    +   *           .setScope("scope109264468")
    +   *           .setComplianceFramework("complianceFramework-1808314333")
    +   *           .build();
    +   *   GenerateFrameworkAuditScopeReportResponse response =
    +   *       auditClient.generateFrameworkAuditScopeReport(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 GenerateFrameworkAuditScopeReportResponse generateFrameworkAuditScopeReport( + GenerateFrameworkAuditScopeReportRequest request) { + return generateFrameworkAuditScopeReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates an audit scope report for a framework. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   GenerateFrameworkAuditScopeReportRequest request =
    +   *       GenerateFrameworkAuditScopeReportRequest.newBuilder()
    +   *           .setScope("scope109264468")
    +   *           .setComplianceFramework("complianceFramework-1808314333")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       auditClient.generateFrameworkAuditScopeReportCallable().futureCall(request);
    +   *   // Do something.
    +   *   GenerateFrameworkAuditScopeReportResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportCallable() { + return stub.generateFrameworkAuditScopeReportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an audit scope report for a framework. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build();
    +   *   String frameworkAuditId = "frameworkAuditId-548788616";
    +   *   FrameworkAudit response =
    +   *       auditClient.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this framework audit is created. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}` + *
    • `folders/{folder_id}/locations/{location}` + *
    • `projects/{project_id}/locations/{location}` + *
    + * + * @param frameworkAudit Required. The framework audit to create. + * @param frameworkAuditId Optional. The ID to use for the framework audit. The ID becomes the + * final component of the framework audit's full resource name. + *

    The ID must be between 4-63 characters, and valid characters are `\\[a-z][0-9]-\\`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFrameworkAuditAsync( + LocationName parent, FrameworkAudit frameworkAudit, String frameworkAuditId) { + CreateFrameworkAuditRequest request = + CreateFrameworkAuditRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFrameworkAudit(frameworkAudit) + .setFrameworkAuditId(frameworkAuditId) + .build(); + return createFrameworkAuditAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an audit scope report for a framework. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
    +   *   FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build();
    +   *   String frameworkAuditId = "frameworkAuditId-548788616";
    +   *   FrameworkAudit response =
    +   *       auditClient.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this framework audit is created. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}` + *
    • `folders/{folder_id}/locations/{location}` + *
    • `projects/{project_id}/locations/{location}` + *
    + * + * @param frameworkAudit Required. The framework audit to create. + * @param frameworkAuditId Optional. The ID to use for the framework audit. The ID becomes the + * final component of the framework audit's full resource name. + *

    The ID must be between 4-63 characters, and valid characters are `\\[a-z][0-9]-\\`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFrameworkAuditAsync( + OrganizationLocationName parent, FrameworkAudit frameworkAudit, String frameworkAuditId) { + CreateFrameworkAuditRequest request = + CreateFrameworkAuditRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFrameworkAudit(frameworkAudit) + .setFrameworkAuditId(frameworkAuditId) + .build(); + return createFrameworkAuditAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an audit scope report for a framework. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build();
    +   *   String frameworkAuditId = "frameworkAuditId-548788616";
    +   *   FrameworkAudit response =
    +   *       auditClient.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this framework audit is created. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}` + *
    • `folders/{folder_id}/locations/{location}` + *
    • `projects/{project_id}/locations/{location}` + *
    + * + * @param frameworkAudit Required. The framework audit to create. + * @param frameworkAuditId Optional. The ID to use for the framework audit. The ID becomes the + * final component of the framework audit's full resource name. + *

    The ID must be between 4-63 characters, and valid characters are `\\[a-z][0-9]-\\`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFrameworkAuditAsync( + String parent, FrameworkAudit frameworkAudit, String frameworkAuditId) { + CreateFrameworkAuditRequest request = + CreateFrameworkAuditRequest.newBuilder() + .setParent(parent) + .setFrameworkAudit(frameworkAudit) + .setFrameworkAuditId(frameworkAuditId) + .build(); + return createFrameworkAuditAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an audit scope report for a framework. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   CreateFrameworkAuditRequest request =
    +   *       CreateFrameworkAuditRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setFrameworkAuditId("frameworkAuditId-548788616")
    +   *           .setFrameworkAudit(FrameworkAudit.newBuilder().build())
    +   *           .build();
    +   *   FrameworkAudit response = auditClient.createFrameworkAuditAsync(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 createFrameworkAuditAsync( + CreateFrameworkAuditRequest request) { + return createFrameworkAuditOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an audit scope report for a framework. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   CreateFrameworkAuditRequest request =
    +   *       CreateFrameworkAuditRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setFrameworkAuditId("frameworkAuditId-548788616")
    +   *           .setFrameworkAudit(FrameworkAudit.newBuilder().build())
    +   *           .build();
    +   *   OperationFuture future =
    +   *       auditClient.createFrameworkAuditOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   FrameworkAudit response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + createFrameworkAuditOperationCallable() { + return stub.createFrameworkAuditOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an audit scope report for a framework. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   CreateFrameworkAuditRequest request =
    +   *       CreateFrameworkAuditRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setFrameworkAuditId("frameworkAuditId-548788616")
    +   *           .setFrameworkAudit(FrameworkAudit.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = auditClient.createFrameworkAuditCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + createFrameworkAuditCallable() { + return stub.createFrameworkAuditCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework audits for a given organization, folder, or project. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (FrameworkAudit element : auditClient.listFrameworkAudits(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where the framework audits are listed. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}` + *
    • `folders/{folder_id}/locations/{location}` + *
    • `projects/{project_id}/locations/{location}` + *
    + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFrameworkAuditsPagedResponse listFrameworkAudits(LocationName parent) { + ListFrameworkAuditsRequest request = + ListFrameworkAuditsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFrameworkAudits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework audits for a given organization, folder, or project. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
    +   *   for (FrameworkAudit element : auditClient.listFrameworkAudits(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where the framework audits are listed. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}` + *
    • `folders/{folder_id}/locations/{location}` + *
    • `projects/{project_id}/locations/{location}` + *
    + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFrameworkAuditsPagedResponse listFrameworkAudits( + OrganizationLocationName parent) { + ListFrameworkAuditsRequest request = + ListFrameworkAuditsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFrameworkAudits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework audits for a given organization, folder, or project. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   for (FrameworkAudit element : auditClient.listFrameworkAudits(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where the framework audits are listed. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}` + *
    • `folders/{folder_id}/locations/{location}` + *
    • `projects/{project_id}/locations/{location}` + *
    + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFrameworkAuditsPagedResponse listFrameworkAudits(String parent) { + ListFrameworkAuditsRequest request = + ListFrameworkAuditsRequest.newBuilder().setParent(parent).build(); + return listFrameworkAudits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework audits for a given organization, folder, or project. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   ListFrameworkAuditsRequest request =
    +   *       ListFrameworkAuditsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .build();
    +   *   for (FrameworkAudit element : auditClient.listFrameworkAudits(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 ListFrameworkAuditsPagedResponse listFrameworkAudits( + ListFrameworkAuditsRequest request) { + return listFrameworkAuditsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework audits for a given organization, folder, or project. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   ListFrameworkAuditsRequest request =
    +   *       ListFrameworkAuditsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       auditClient.listFrameworkAuditsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (FrameworkAudit element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listFrameworkAuditsPagedCallable() { + return stub.listFrameworkAuditsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework audits for a given organization, folder, or project. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   ListFrameworkAuditsRequest request =
    +   *       ListFrameworkAuditsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .build();
    +   *   while (true) {
    +   *     ListFrameworkAuditsResponse response =
    +   *         auditClient.listFrameworkAuditsCallable().call(request);
    +   *     for (FrameworkAudit element : response.getFrameworkAuditsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listFrameworkAuditsCallable() { + return stub.listFrameworkAuditsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details for a framework audit. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   FrameworkAuditName name =
    +   *       FrameworkAuditName.ofOrganizationLocationFrameworkAuditName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]");
    +   *   FrameworkAudit response = auditClient.getFrameworkAudit(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the framework audit to retrieve. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + *
    • `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + *
    • `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + *
    + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FrameworkAudit getFrameworkAudit(FrameworkAuditName name) { + GetFrameworkAuditRequest request = + GetFrameworkAuditRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getFrameworkAudit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details for a framework audit. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   String name =
    +   *       FrameworkAuditName.ofProjectLocationFrameworkAuditName(
    +   *               "[PROJECT]", "[LOCATION]", "[FRAMEWORK_AUDIT]")
    +   *           .toString();
    +   *   FrameworkAudit response = auditClient.getFrameworkAudit(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the framework audit to retrieve. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + *
    • `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + *
    • `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + *
    + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FrameworkAudit getFrameworkAudit(String name) { + GetFrameworkAuditRequest request = GetFrameworkAuditRequest.newBuilder().setName(name).build(); + return getFrameworkAudit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details for a framework audit. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   GetFrameworkAuditRequest request =
    +   *       GetFrameworkAuditRequest.newBuilder()
    +   *           .setName(
    +   *               FrameworkAuditName.ofOrganizationLocationFrameworkAuditName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]")
    +   *                   .toString())
    +   *           .build();
    +   *   FrameworkAudit response = auditClient.getFrameworkAudit(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 FrameworkAudit getFrameworkAudit(GetFrameworkAuditRequest request) { + return getFrameworkAuditCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details for a framework audit. + * + *

    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 (AuditClient auditClient = AuditClient.create()) {
    +   *   GetFrameworkAuditRequest request =
    +   *       GetFrameworkAuditRequest.newBuilder()
    +   *           .setName(
    +   *               FrameworkAuditName.ofOrganizationLocationFrameworkAuditName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       auditClient.getFrameworkAuditCallable().futureCall(request);
    +   *   // Do something.
    +   *   FrameworkAudit response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getFrameworkAuditCallable() { + return stub.getFrameworkAuditCallable(); + } + + // 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 (AuditClient auditClient = AuditClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Location element : auditClient.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 (AuditClient auditClient = AuditClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future = auditClient.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 (AuditClient auditClient = AuditClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListLocationsResponse response = auditClient.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 (AuditClient auditClient = AuditClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   Location response = auditClient.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 (AuditClient auditClient = AuditClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   ApiFuture future = auditClient.getLocationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Location response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListFrameworkAuditsPagedResponse + extends AbstractPagedListResponse< + ListFrameworkAuditsRequest, + ListFrameworkAuditsResponse, + FrameworkAudit, + ListFrameworkAuditsPage, + ListFrameworkAuditsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFrameworkAuditsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFrameworkAuditsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFrameworkAuditsPagedResponse(ListFrameworkAuditsPage page) { + super(page, ListFrameworkAuditsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFrameworkAuditsPage + extends AbstractPage< + ListFrameworkAuditsRequest, + ListFrameworkAuditsResponse, + FrameworkAudit, + ListFrameworkAuditsPage> { + + private ListFrameworkAuditsPage( + PageContext + context, + ListFrameworkAuditsResponse response) { + super(context, response); + } + + private static ListFrameworkAuditsPage createEmptyPage() { + return new ListFrameworkAuditsPage(null, null); + } + + @Override + protected ListFrameworkAuditsPage createPage( + PageContext + context, + ListFrameworkAuditsResponse response) { + return new ListFrameworkAuditsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFrameworkAuditsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFrameworkAuditsRequest, + ListFrameworkAuditsResponse, + FrameworkAudit, + ListFrameworkAuditsPage, + ListFrameworkAuditsFixedSizeCollection> { + + private ListFrameworkAuditsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFrameworkAuditsFixedSizeCollection createEmptyCollection() { + return new ListFrameworkAuditsFixedSizeCollection(null, 0); + } + + @Override + protected ListFrameworkAuditsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFrameworkAuditsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditSettings.java new file mode 100644 index 000000000000..872bdece4fb3 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditSettings.java @@ -0,0 +1,327 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListFrameworkAuditsPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.cloudsecuritycompliance.v1.stub.AuditStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AuditClient}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (cloudsecuritycompliance.googleapis.com) and default port (443) + * are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of generateFrameworkAuditScopeReport: + * + *

    {@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
    + * AuditSettings.Builder auditSettingsBuilder = AuditSettings.newBuilder();
    + * auditSettingsBuilder
    + *     .generateFrameworkAuditScopeReportSettings()
    + *     .setRetrySettings(
    + *         auditSettingsBuilder
    + *             .generateFrameworkAuditScopeReportSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * AuditSettings auditSettings = auditSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

    To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createFrameworkAudit: + * + *

    {@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
    + * AuditSettings.Builder auditSettingsBuilder = AuditSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * auditSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    + */ +@Generated("by gapic-generator-java") +public class AuditSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to generateFrameworkAuditScopeReport. */ + public UnaryCallSettings< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportSettings() { + return ((AuditStubSettings) getStubSettings()).generateFrameworkAuditScopeReportSettings(); + } + + /** Returns the object with the settings used for calls to createFrameworkAudit. */ + public UnaryCallSettings createFrameworkAuditSettings() { + return ((AuditStubSettings) getStubSettings()).createFrameworkAuditSettings(); + } + + /** Returns the object with the settings used for calls to createFrameworkAudit. */ + public OperationCallSettings + createFrameworkAuditOperationSettings() { + return ((AuditStubSettings) getStubSettings()).createFrameworkAuditOperationSettings(); + } + + /** Returns the object with the settings used for calls to listFrameworkAudits. */ + public PagedCallSettings< + ListFrameworkAuditsRequest, ListFrameworkAuditsResponse, ListFrameworkAuditsPagedResponse> + listFrameworkAuditsSettings() { + return ((AuditStubSettings) getStubSettings()).listFrameworkAuditsSettings(); + } + + /** Returns the object with the settings used for calls to getFrameworkAudit. */ + public UnaryCallSettings getFrameworkAuditSettings() { + return ((AuditStubSettings) getStubSettings()).getFrameworkAuditSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AuditStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AuditStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final AuditSettings create(AuditStubSettings stub) throws IOException { + return new AuditSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AuditStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AuditStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AuditStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AuditStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AuditStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AuditStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AuditStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AuditStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AuditSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AuditSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AuditStubSettings.newBuilder(clientContext)); + } + + protected Builder(AuditSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AuditStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AuditStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AuditStubSettings.newHttpJsonBuilder()); + } + + public AuditStubSettings.Builder getStubSettingsBuilder() { + return ((AuditStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to generateFrameworkAuditScopeReport. */ + public UnaryCallSettings.Builder< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportSettings() { + return getStubSettingsBuilder().generateFrameworkAuditScopeReportSettings(); + } + + /** Returns the builder for the settings used for calls to createFrameworkAudit. */ + public UnaryCallSettings.Builder + createFrameworkAuditSettings() { + return getStubSettingsBuilder().createFrameworkAuditSettings(); + } + + /** Returns the builder for the settings used for calls to createFrameworkAudit. */ + public OperationCallSettings.Builder< + CreateFrameworkAuditRequest, FrameworkAudit, OperationMetadata> + createFrameworkAuditOperationSettings() { + return getStubSettingsBuilder().createFrameworkAuditOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listFrameworkAudits. */ + public PagedCallSettings.Builder< + ListFrameworkAuditsRequest, + ListFrameworkAuditsResponse, + ListFrameworkAuditsPagedResponse> + listFrameworkAuditsSettings() { + return getStubSettingsBuilder().listFrameworkAuditsSettings(); + } + + /** Returns the builder for the settings used for calls to getFrameworkAudit. */ + public UnaryCallSettings.Builder + getFrameworkAuditSettings() { + return getStubSettingsBuilder().getFrameworkAuditSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public AuditSettings build() throws IOException { + return new AuditSettings(this); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java new file mode 100644 index 000000000000..0c748ca7a112 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java @@ -0,0 +1,753 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.stub.CmEnrollmentServiceStub; +import com.google.cloud.cloudsecuritycompliance.v1.stub.CmEnrollmentServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service describing CmEnrollment related RPCs for complianceManager. + * + *

    This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

    {@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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    + *   CmEnrollment cmEnrollment = CmEnrollment.newBuilder().build();
    + *   FieldMask updateMask = FieldMask.newBuilder().build();
    + *   CmEnrollment response =
    + *       cmEnrollmentServiceClient.updateCmEnrollment(cmEnrollment, updateMask);
    + * }
    + * }
    + * + *

    Note: close() needs to be called on the CmEnrollmentServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Methods
    MethodDescriptionMethod Variants

    UpdateCmEnrollment

    Updates the Compliance Manager enrollment for a resource to facilitate an audit. Use this method to enroll a resource in Compliance Manager or to create or update feature-specific configurations.

    + *

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

    + *
      + *
    • updateCmEnrollment(UpdateCmEnrollmentRequest request) + *

    + *

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

    + *
      + *
    • updateCmEnrollment(CmEnrollment cmEnrollment, 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.

    + *
      + *
    • updateCmEnrollmentCallable() + *

    + *

    CalculateEffectiveCmEnrollment

    Calculates the effective Compliance Manager enrollment for a resource. An effective enrollment is either a direct enrollment of a resource (if it exists), or an enrollment of the closest parent of a resource that's enrolled in Compliance Manager.

    + *

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

    + *
      + *
    • calculateEffectiveCmEnrollment(CalculateEffectiveCmEnrollmentRequest request) + *

    + *

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

    + *
      + *
    • calculateEffectiveCmEnrollment(CmEnrollmentName name) + *

    • calculateEffectiveCmEnrollment(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.

    + *
      + *
    • calculateEffectiveCmEnrollmentCallable() + *

    + *

    ListLocations

    Lists information about the supported locations for this service.

    + *

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

    + *
      + *
    • listLocations(ListLocationsRequest request) + *

    + *

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

    + *
      + *
    • listLocationsPagedCallable() + *

    • listLocationsCallable() + *

    + *

    GetLocation

    Gets information about a location.

    + *

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

    + *
      + *
    • getLocation(GetLocationRequest request) + *

    + *

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

    + *
      + *
    • getLocationCallable() + *

    + *
    + * + *

    See the individual methods for example code. + * + *

    Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

    This class can be customized by passing in a custom instance of CmEnrollmentServiceSettings to + * create(). For example: + * + *

    To customize credentials: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * CmEnrollmentServiceSettings cmEnrollmentServiceSettings =
    + *     CmEnrollmentServiceSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * CmEnrollmentServiceClient cmEnrollmentServiceClient =
    + *     CmEnrollmentServiceClient.create(cmEnrollmentServiceSettings);
    + * }
    + * + *

    To customize the endpoint: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * CmEnrollmentServiceSettings cmEnrollmentServiceSettings =
    + *     CmEnrollmentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * CmEnrollmentServiceClient cmEnrollmentServiceClient =
    + *     CmEnrollmentServiceClient.create(cmEnrollmentServiceSettings);
    + * }
    + * + *

    To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * CmEnrollmentServiceSettings cmEnrollmentServiceSettings =
    + *     CmEnrollmentServiceSettings.newHttpJsonBuilder().build();
    + * CmEnrollmentServiceClient cmEnrollmentServiceClient =
    + *     CmEnrollmentServiceClient.create(cmEnrollmentServiceSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class CmEnrollmentServiceClient implements BackgroundResource { + private final CmEnrollmentServiceSettings settings; + private final CmEnrollmentServiceStub stub; + + /** Constructs an instance of CmEnrollmentServiceClient with default settings. */ + public static final CmEnrollmentServiceClient create() throws IOException { + return create(CmEnrollmentServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CmEnrollmentServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CmEnrollmentServiceClient create(CmEnrollmentServiceSettings settings) + throws IOException { + return new CmEnrollmentServiceClient(settings); + } + + /** + * Constructs an instance of CmEnrollmentServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(CmEnrollmentServiceSettings). + */ + public static final CmEnrollmentServiceClient create(CmEnrollmentServiceStub stub) { + return new CmEnrollmentServiceClient(stub); + } + + /** + * Constructs an instance of CmEnrollmentServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected CmEnrollmentServiceClient(CmEnrollmentServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CmEnrollmentServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected CmEnrollmentServiceClient(CmEnrollmentServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CmEnrollmentServiceSettings getSettings() { + return settings; + } + + public CmEnrollmentServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Compliance Manager enrollment for a resource to facilitate an audit. Use this + * method to enroll a resource in Compliance Manager or to create or update feature-specific + * configurations. + * + *

    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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   CmEnrollment cmEnrollment = CmEnrollment.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   CmEnrollment response =
    +   *       cmEnrollmentServiceClient.updateCmEnrollment(cmEnrollment, updateMask);
    +   * }
    +   * }
    + * + * @param cmEnrollment Required. The Compliance Manager enrollment to update. The `name` field is + * used to identify the settings that you want to update. + * @param updateMask Optional. The list of fields that you want to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmEnrollment updateCmEnrollment(CmEnrollment cmEnrollment, FieldMask updateMask) { + UpdateCmEnrollmentRequest request = + UpdateCmEnrollmentRequest.newBuilder() + .setCmEnrollment(cmEnrollment) + .setUpdateMask(updateMask) + .build(); + return updateCmEnrollment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Compliance Manager enrollment for a resource to facilitate an audit. Use this + * method to enroll a resource in Compliance Manager or to create or update feature-specific + * configurations. + * + *

    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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   UpdateCmEnrollmentRequest request =
    +   *       UpdateCmEnrollmentRequest.newBuilder()
    +   *           .setCmEnrollment(CmEnrollment.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   CmEnrollment response = cmEnrollmentServiceClient.updateCmEnrollment(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 CmEnrollment updateCmEnrollment(UpdateCmEnrollmentRequest request) { + return updateCmEnrollmentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Compliance Manager enrollment for a resource to facilitate an audit. Use this + * method to enroll a resource in Compliance Manager or to create or update feature-specific + * configurations. + * + *

    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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   UpdateCmEnrollmentRequest request =
    +   *       UpdateCmEnrollmentRequest.newBuilder()
    +   *           .setCmEnrollment(CmEnrollment.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cmEnrollmentServiceClient.updateCmEnrollmentCallable().futureCall(request);
    +   *   // Do something.
    +   *   CmEnrollment response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable updateCmEnrollmentCallable() { + return stub.updateCmEnrollmentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Calculates the effective Compliance Manager enrollment for a resource. An effective enrollment + * is either a direct enrollment of a resource (if it exists), or an enrollment of the closest + * parent of a resource that's enrolled in Compliance Manager. + * + *

    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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   CmEnrollmentName name =
    +   *       CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]");
    +   *   CalculateEffectiveCmEnrollmentResponse response =
    +   *       cmEnrollmentServiceClient.calculateEffectiveCmEnrollment(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the Compliance Manager enrollment to calculate. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}/cmEnrollment` + *
    • `folders/{folder_id}/locations/{location}/cmEnrollment` + *
    • `projects/{project_id}/locations/{location}/cmEnrollment` + *
    + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CalculateEffectiveCmEnrollmentResponse calculateEffectiveCmEnrollment( + CmEnrollmentName name) { + CalculateEffectiveCmEnrollmentRequest request = + CalculateEffectiveCmEnrollmentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return calculateEffectiveCmEnrollment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Calculates the effective Compliance Manager enrollment for a resource. An effective enrollment + * is either a direct enrollment of a resource (if it exists), or an enrollment of the closest + * parent of a resource that's enrolled in Compliance Manager. + * + *

    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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   String name =
    +   *       CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]").toString();
    +   *   CalculateEffectiveCmEnrollmentResponse response =
    +   *       cmEnrollmentServiceClient.calculateEffectiveCmEnrollment(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the Compliance Manager enrollment to calculate. + *

    Supported formats are the following: + *

      + *
    • `organizations/{organization_id}/locations/{location}/cmEnrollment` + *
    • `folders/{folder_id}/locations/{location}/cmEnrollment` + *
    • `projects/{project_id}/locations/{location}/cmEnrollment` + *
    + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CalculateEffectiveCmEnrollmentResponse calculateEffectiveCmEnrollment(String name) { + CalculateEffectiveCmEnrollmentRequest request = + CalculateEffectiveCmEnrollmentRequest.newBuilder().setName(name).build(); + return calculateEffectiveCmEnrollment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Calculates the effective Compliance Manager enrollment for a resource. An effective enrollment + * is either a direct enrollment of a resource (if it exists), or an enrollment of the closest + * parent of a resource that's enrolled in Compliance Manager. + * + *

    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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   CalculateEffectiveCmEnrollmentRequest request =
    +   *       CalculateEffectiveCmEnrollmentRequest.newBuilder()
    +   *           .setName(
    +   *               CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]")
    +   *                   .toString())
    +   *           .build();
    +   *   CalculateEffectiveCmEnrollmentResponse response =
    +   *       cmEnrollmentServiceClient.calculateEffectiveCmEnrollment(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 CalculateEffectiveCmEnrollmentResponse calculateEffectiveCmEnrollment( + CalculateEffectiveCmEnrollmentRequest request) { + return calculateEffectiveCmEnrollmentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Calculates the effective Compliance Manager enrollment for a resource. An effective enrollment + * is either a direct enrollment of a resource (if it exists), or an enrollment of the closest + * parent of a resource that's enrolled in Compliance Manager. + * + *

    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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   CalculateEffectiveCmEnrollmentRequest request =
    +   *       CalculateEffectiveCmEnrollmentRequest.newBuilder()
    +   *           .setName(
    +   *               CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cmEnrollmentServiceClient.calculateEffectiveCmEnrollmentCallable().futureCall(request);
    +   *   // Do something.
    +   *   CalculateEffectiveCmEnrollmentResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentCallable() { + return stub.calculateEffectiveCmEnrollmentCallable(); + } + + // 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Location element : cmEnrollmentServiceClient.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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cmEnrollmentServiceClient.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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListLocationsResponse response =
    +   *         cmEnrollmentServiceClient.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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   Location response = cmEnrollmentServiceClient.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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   ApiFuture future =
    +   *       cmEnrollmentServiceClient.getLocationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Location response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceSettings.java new file mode 100644 index 000000000000..7ea9a8927803 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceSettings.java @@ -0,0 +1,263 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.cloudsecuritycompliance.v1.stub.CmEnrollmentServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CmEnrollmentServiceClient}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (cloudsecuritycompliance.googleapis.com) and default port (443) + * are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of updateCmEnrollment: + * + *

    {@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
    + * CmEnrollmentServiceSettings.Builder cmEnrollmentServiceSettingsBuilder =
    + *     CmEnrollmentServiceSettings.newBuilder();
    + * cmEnrollmentServiceSettingsBuilder
    + *     .updateCmEnrollmentSettings()
    + *     .setRetrySettings(
    + *         cmEnrollmentServiceSettingsBuilder
    + *             .updateCmEnrollmentSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * CmEnrollmentServiceSettings cmEnrollmentServiceSettings =
    + *     cmEnrollmentServiceSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class CmEnrollmentServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to updateCmEnrollment. */ + public UnaryCallSettings updateCmEnrollmentSettings() { + return ((CmEnrollmentServiceStubSettings) getStubSettings()).updateCmEnrollmentSettings(); + } + + /** Returns the object with the settings used for calls to calculateEffectiveCmEnrollment. */ + public UnaryCallSettings< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentSettings() { + return ((CmEnrollmentServiceStubSettings) getStubSettings()) + .calculateEffectiveCmEnrollmentSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((CmEnrollmentServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((CmEnrollmentServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final CmEnrollmentServiceSettings create(CmEnrollmentServiceStubSettings stub) + throws IOException { + return new CmEnrollmentServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CmEnrollmentServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CmEnrollmentServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CmEnrollmentServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CmEnrollmentServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CmEnrollmentServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CmEnrollmentServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CmEnrollmentServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CmEnrollmentServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CmEnrollmentServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CmEnrollmentServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(CmEnrollmentServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(CmEnrollmentServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CmEnrollmentServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(CmEnrollmentServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(CmEnrollmentServiceStubSettings.newHttpJsonBuilder()); + } + + public CmEnrollmentServiceStubSettings.Builder getStubSettingsBuilder() { + return ((CmEnrollmentServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to updateCmEnrollment. */ + public UnaryCallSettings.Builder + updateCmEnrollmentSettings() { + return getStubSettingsBuilder().updateCmEnrollmentSettings(); + } + + /** Returns the builder for the settings used for calls to calculateEffectiveCmEnrollment. */ + public UnaryCallSettings.Builder< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentSettings() { + return getStubSettingsBuilder().calculateEffectiveCmEnrollmentSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public CmEnrollmentServiceSettings build() throws IOException { + return new CmEnrollmentServiceSettings(this); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java index 32981edce59a..bee0c5b669b2 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java @@ -70,7 +70,7 @@ * * *

    ListFrameworks - *

    Lists all Frameworks (both Built-in and Custom) available within a given parent resource. This method supports pagination. The latest major version of each Framework is returned. + *

    Lists the frameworks (both built-in and custom) that are available within the parent resource. The latest major version of each framework is returned. This method supports pagination. * *

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

    *
      @@ -90,8 +90,8 @@ * * *

      GetFramework - *

      Gets details of a single Framework. This method retrieves a Framework resource, which can be either Built-in or Custom, identified by its name. - *

      By default, the latest major version of the Framework is returned. A specific major version can be retrieved by specifying the `major_revision_id` in the request. + *

      Gets details about a framework. This method retrieves the latest major version of the framework. + *

      To retrieve a specific major version, include `major_revision_id` in the request. * *

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

      *
        @@ -110,7 +110,7 @@ * * *

        CreateFramework - *

        Creates a new Framework with type `Custom` under a given parent resource. Frameworks with type `Built-in` are managed by Google and cannot be created through this API. + *

        Creates a custom framework in a given parent resource. You can't create built-in frameworks because those are managed by Google. * *

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

        *
          @@ -129,9 +129,9 @@ * * *

          UpdateFramework - *

          Updates a single Framework. This method allows for partial updates of a Framework resource. The fields to be updated are specified using the `update_mask`. - *

          - If an `update_mask` is provided, only the fields specified in the mask will be updated. - If no `update_mask` is provided, all fields present in the request's `framework` body will be used to overwrite the existing resource. - *

          This operation can only be performed on Frameworks with type `CUSTOM`. A successful update will result in a new version of the Framework. + *

          Updates a custom framework. This method allows for partial updates of a framework. Use the `update_mask` to specify which fields to update. Consider the following: + *

          - If you provide an `update_mask`, only the fields that are specified in the mask are updated. - If you don't provide an `update_mask`, all the fields that are present in the request's `framework` body are used to overwrite the existing resource. + *

          You can only update frameworks with the `CUSTOM` type. A successful update creates a new version of the framework. * *

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

          *
            @@ -149,8 +149,8 @@ * * *

            DeleteFramework - *

            Deletes a single Custom Framework, including all its minor and minor revisions. - *

            - This operation can only be performed on Frameworks with type `CUSTOM`. Built-in Frameworks cannot be deleted. - The Framework cannot be deleted if it is currently deployed on any resource. - This action is permanent and cannot be undone. + *

            Deletes a custom framework, including all its major and minor revisions. Consider the following: + *

            - You can't delete built-in frameworks. You can only delete frameworks with type `CUSTOM`. - You can't delete frameworks that are deployed to a resource. - You can't restore a deleted framework. This action is permanent. * *

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

            *
              @@ -169,7 +169,7 @@ * * *

              ListCloudControls - *

              Lists all CloudControls (both Built-in and Custom) available within a given parent resource. This method supports pagination. The latest major version of each CloudControl is returned. + *

              Lists the cloud controls (both built-in and custom) that are available in a given parent resource. The latest major version of each cloud control is returned. This method supports pagination. * *

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

              *
                @@ -189,8 +189,8 @@ * * *

                GetCloudControl - *

                Gets details of a single CloudControl. This method retrieves a CloudControl resource, which can be either Built-in or Custom, identified by its name. - *

                By default, the latest major version of the CloudControl is returned. A specific major version can be retrieved by specifying the `major_revision_id` in the request. + *

                Gets details about a cloud control. This method retrieves the latest major version of a cloud control that you identify by name. + *

                By default, the latest major version of the cloud control is returned. To retrieve a specific major version, include `major_revision_id` in the request. * *

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

                *
                  @@ -209,7 +209,7 @@ * * *

                  CreateCloudControl - *

                  Creates a new CloudControl with type `Custom` under a given parent resource. `Built-in` CloudControls are managed by Google and cannot be created through this API. + *

                  Creates a custom cloud control in a given parent resource. You can't create built-in cloud controls because those are managed by Google. * *

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

                  *
                    @@ -228,9 +228,9 @@ * * *

                    UpdateCloudControl - *

                    Updates a single CloudControl. This method allows for partial updates of a Custom CloudControl resource. Built-in CloudControls cannot be updated. - *

                    - If an `update_mask` is provided, only the fields specified in the mask will be updated. - If no `update_mask` is provided, all fields present in the request's `cloud_control` body will be used to overwrite the existing resource. - *

                    A successful update will result in a new version of the CloudControl. + *

                    Updates a custom cloud control. This method allows for partial updates of a cloud control. Use the `update_mask` to specify which fields to update. Consider the following: + *

                    - If you provide an `update_mask`, only the fields that are specified in the mask are updated. - If you don't provide an `update_mask`, all the fields that are present in the request's `cloud_control` body are used to overwrite the existing resource. + *

                    You can only update cloud controls with the `CUSTOM` type. A successful update creates a new version of the cloud control. * *

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

                    *
                      @@ -248,8 +248,8 @@ * * *

                      DeleteCloudControl - *

                      Deletes a single Custom CloudControl, including all its major and minor revisions. - *

                      - This operation can only be performed on CloudControls with type `CUSTOM`. Built-in CloudControls cannot be deleted. - The CloudControl cannot be deleted if any of its revisions are currently referenced by any Framework. - This action is permanent and cannot be undone. + *

                      Deletes a custom cloud control, including all its major and minor revisions. Consider the following: + *

                      - You can't delete built-in cloud controls. You can only delete cloud controls with type `CUSTOM`. - You can't delete cloud controls if any of the versions are referenced by a framework. - You can't restore a deleted cloud control. This action is permanent. * *

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

                      *
                        @@ -398,8 +398,8 @@ public ConfigStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all Frameworks (both Built-in and Custom) available within a given parent resource. This - * method supports pagination. The latest major version of each Framework is returned. + * Lists the frameworks (both built-in and custom) that are available within the parent resource. + * The latest major version of each framework is returned. This method supports pagination. * *

                        Sample code: * @@ -418,7 +418,8 @@ public ConfigStub getStub() { * } * * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. Only global location is supported. + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworksPagedResponse listFrameworks(OrganizationLocationName parent) { @@ -431,8 +432,8 @@ public final ListFrameworksPagedResponse listFrameworks(OrganizationLocationName // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all Frameworks (both Built-in and Custom) available within a given parent resource. This - * method supports pagination. The latest major version of each Framework is returned. + * Lists the frameworks (both built-in and custom) that are available within the parent resource. + * The latest major version of each framework is returned. This method supports pagination. * *

                        Sample code: * @@ -451,7 +452,8 @@ public final ListFrameworksPagedResponse listFrameworks(OrganizationLocationName * } * * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. Only global location is supported. + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworksPagedResponse listFrameworks(String parent) { @@ -461,8 +463,8 @@ public final ListFrameworksPagedResponse listFrameworks(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all Frameworks (both Built-in and Custom) available within a given parent resource. This - * method supports pagination. The latest major version of each Framework is returned. + * Lists the frameworks (both built-in and custom) that are available within the parent resource. + * The latest major version of each framework is returned. This method supports pagination. * *

                        Sample code: * @@ -494,8 +496,8 @@ public final ListFrameworksPagedResponse listFrameworks(ListFrameworksRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all Frameworks (both Built-in and Custom) available within a given parent resource. This - * method supports pagination. The latest major version of each Framework is returned. + * Lists the frameworks (both built-in and custom) that are available within the parent resource. + * The latest major version of each framework is returned. This method supports pagination. * *

                        Sample code: * @@ -527,8 +529,8 @@ public final ListFrameworksPagedResponse listFrameworks(ListFrameworksRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all Frameworks (both Built-in and Custom) available within a given parent resource. This - * method supports pagination. The latest major version of each Framework is returned. + * Lists the frameworks (both built-in and custom) that are available within the parent resource. + * The latest major version of each framework is returned. This method supports pagination. * *

                        Sample code: * @@ -567,11 +569,10 @@ public final ListFrameworksPagedResponse listFrameworks(ListFrameworksRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Framework. This method retrieves a Framework resource, which can be - * either Built-in or Custom, identified by its name. + * Gets details about a framework. This method retrieves the latest major version of the + * framework. * - *

                        By default, the latest major version of the Framework is returned. A specific major version - * can be retrieved by specifying the `major_revision_id` in the request. + *

                        To retrieve a specific major version, include `major_revision_id` in the request. * *

                        Sample code: * @@ -587,8 +588,9 @@ public final ListFrameworksPagedResponse listFrameworks(ListFrameworksRequest re * } * } * - * @param name Required. The name of the framework to retrieve. Format: - * organizations/{organization}/locations/{location}/frameworks/{framework_id} + * @param name Required. The name of the framework to retrieve, in the format + * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` The only + * supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Framework getFramework(FrameworkName name) { @@ -599,11 +601,10 @@ public final Framework getFramework(FrameworkName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Framework. This method retrieves a Framework resource, which can be - * either Built-in or Custom, identified by its name. + * Gets details about a framework. This method retrieves the latest major version of the + * framework. * - *

                        By default, the latest major version of the Framework is returned. A specific major version - * can be retrieved by specifying the `major_revision_id` in the request. + *

                        To retrieve a specific major version, include `major_revision_id` in the request. * *

                        Sample code: * @@ -619,8 +620,9 @@ public final Framework getFramework(FrameworkName name) { * } * } * - * @param name Required. The name of the framework to retrieve. Format: - * organizations/{organization}/locations/{location}/frameworks/{framework_id} + * @param name Required. The name of the framework to retrieve, in the format + * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` The only + * supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Framework getFramework(String name) { @@ -630,11 +632,10 @@ public final Framework getFramework(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Framework. This method retrieves a Framework resource, which can be - * either Built-in or Custom, identified by its name. + * Gets details about a framework. This method retrieves the latest major version of the + * framework. * - *

                        By default, the latest major version of the Framework is returned. A specific major version - * can be retrieved by specifying the `major_revision_id` in the request. + *

                        To retrieve a specific major version, include `major_revision_id` in the request. * *

                        Sample code: * @@ -663,11 +664,10 @@ public final Framework getFramework(GetFrameworkRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Framework. This method retrieves a Framework resource, which can be - * either Built-in or Custom, identified by its name. + * Gets details about a framework. This method retrieves the latest major version of the + * framework. * - *

                        By default, the latest major version of the Framework is returned. A specific major version - * can be retrieved by specifying the `major_revision_id` in the request. + *

                        To retrieve a specific major version, include `major_revision_id` in the request. * *

                        Sample code: * @@ -695,8 +695,8 @@ public final UnaryCallable getFrameworkCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Framework with type `Custom` under a given parent resource. Frameworks with type - * `Built-in` are managed by Google and cannot be created through this API. + * Creates a custom framework in a given parent resource. You can't create built-in frameworks + * because those are managed by Google. * *

                        Sample code: * @@ -715,10 +715,11 @@ public final UnaryCallable getFrameworkCallable( * } * * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. - * @param framework Required. The resource being created - * @param frameworkId Required. ID of the framework. This is not the full name of the framework. - * This is the last part of the full name of the framework. + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. + * @param framework Required. The resource being created. + * @param frameworkId Required. The identifier (ID) of the framework. The ID is not the full name + * of the framework; it's the last part of the full name of the framework. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Framework createFramework( @@ -734,8 +735,8 @@ public final Framework createFramework( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Framework with type `Custom` under a given parent resource. Frameworks with type - * `Built-in` are managed by Google and cannot be created through this API. + * Creates a custom framework in a given parent resource. You can't create built-in frameworks + * because those are managed by Google. * *

                        Sample code: * @@ -754,10 +755,11 @@ public final Framework createFramework( * } * * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. - * @param framework Required. The resource being created - * @param frameworkId Required. ID of the framework. This is not the full name of the framework. - * This is the last part of the full name of the framework. + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. + * @param framework Required. The resource being created. + * @param frameworkId Required. The identifier (ID) of the framework. The ID is not the full name + * of the framework; it's the last part of the full name of the framework. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Framework createFramework(String parent, Framework framework, String frameworkId) { @@ -772,8 +774,8 @@ public final Framework createFramework(String parent, Framework framework, Strin // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Framework with type `Custom` under a given parent resource. Frameworks with type - * `Built-in` are managed by Google and cannot be created through this API. + * Creates a custom framework in a given parent resource. You can't create built-in frameworks + * because those are managed by Google. * *

                        Sample code: * @@ -803,8 +805,8 @@ public final Framework createFramework(CreateFrameworkRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Framework with type `Custom` under a given parent resource. Frameworks with type - * `Built-in` are managed by Google and cannot be created through this API. + * Creates a custom framework in a given parent resource. You can't create built-in frameworks + * because those are managed by Google. * *

                        Sample code: * @@ -833,15 +835,15 @@ public final UnaryCallable createFrameworkCal // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single Framework. This method allows for partial updates of a Framework resource. The - * fields to be updated are specified using the `update_mask`. + * Updates a custom framework. This method allows for partial updates of a framework. Use the + * `update_mask` to specify which fields to update. Consider the following: * - *

                        - If an `update_mask` is provided, only the fields specified in the mask will be updated. - - * If no `update_mask` is provided, all fields present in the request's `framework` body will be - * used to overwrite the existing resource. + *

                        - If you provide an `update_mask`, only the fields that are specified in the mask are + * updated. - If you don't provide an `update_mask`, all the fields that are present in the + * request's `framework` body are used to overwrite the existing resource. * - *

                        This operation can only be performed on Frameworks with type `CUSTOM`. A successful update - * will result in a new version of the Framework. + *

                        You can only update frameworks with the `CUSTOM` type. A successful update creates a new + * version of the framework. * *

                        Sample code: * @@ -858,12 +860,11 @@ public final UnaryCallable createFrameworkCal * } * } * - * @param framework Required. The resource being updated - * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * Framework 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 present in the request will be - * overwritten. + * @param framework Required. The resource that is being updated. + * @param updateMask Optional. A field mask is used to specify the fields to be overwritten in the + * framework resource by the update. The fields specified in the `update_mask` are relative to + * the resource, not the full request. A field is overwritten if it is in the mask. If you + * don't provide a mask then all fields present in the request will be overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Framework updateFramework(Framework framework, FieldMask updateMask) { @@ -877,15 +878,15 @@ public final Framework updateFramework(Framework framework, FieldMask updateMask // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single Framework. This method allows for partial updates of a Framework resource. The - * fields to be updated are specified using the `update_mask`. + * Updates a custom framework. This method allows for partial updates of a framework. Use the + * `update_mask` to specify which fields to update. Consider the following: * - *

                        - If an `update_mask` is provided, only the fields specified in the mask will be updated. - - * If no `update_mask` is provided, all fields present in the request's `framework` body will be - * used to overwrite the existing resource. + *

                        - If you provide an `update_mask`, only the fields that are specified in the mask are + * updated. - If you don't provide an `update_mask`, all the fields that are present in the + * request's `framework` body are used to overwrite the existing resource. * - *

                        This operation can only be performed on Frameworks with type `CUSTOM`. A successful update - * will result in a new version of the Framework. + *

                        You can only update frameworks with the `CUSTOM` type. A successful update creates a new + * version of the framework. * *

                        Sample code: * @@ -915,15 +916,15 @@ public final Framework updateFramework(UpdateFrameworkRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single Framework. This method allows for partial updates of a Framework resource. The - * fields to be updated are specified using the `update_mask`. + * Updates a custom framework. This method allows for partial updates of a framework. Use the + * `update_mask` to specify which fields to update. Consider the following: * - *

                        - If an `update_mask` is provided, only the fields specified in the mask will be updated. - - * If no `update_mask` is provided, all fields present in the request's `framework` body will be - * used to overwrite the existing resource. + *

                        - If you provide an `update_mask`, only the fields that are specified in the mask are + * updated. - If you don't provide an `update_mask`, all the fields that are present in the + * request's `framework` body are used to overwrite the existing resource. * - *

                        This operation can only be performed on Frameworks with type `CUSTOM`. A successful update - * will result in a new version of the Framework. + *

                        You can only update frameworks with the `CUSTOM` type. A successful update creates a new + * version of the framework. * *

                        Sample code: * @@ -952,11 +953,12 @@ public final UnaryCallable updateFrameworkCal // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Custom Framework, including all its minor and minor revisions. + * Deletes a custom framework, including all its major and minor revisions. Consider the + * following: * - *

                        - This operation can only be performed on Frameworks with type `CUSTOM`. Built-in Frameworks - * cannot be deleted. - The Framework cannot be deleted if it is currently deployed on any - * resource. - This action is permanent and cannot be undone. + *

                        - You can't delete built-in frameworks. You can only delete frameworks with type `CUSTOM`. - + * You can't delete frameworks that are deployed to a resource. - You can't restore a deleted + * framework. This action is permanent. * *

                        Sample code: * @@ -972,8 +974,9 @@ public final UnaryCallable updateFrameworkCal * } * } * - * @param name Required. Name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. + * @param name Required. The name of the resource, in the format + * `organizations/{organization}/locations/{location}/frameworks/{framework}`. The only + * supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteFramework(FrameworkName name) { @@ -984,11 +987,12 @@ public final void deleteFramework(FrameworkName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Custom Framework, including all its minor and minor revisions. + * Deletes a custom framework, including all its major and minor revisions. Consider the + * following: * - *

                        - This operation can only be performed on Frameworks with type `CUSTOM`. Built-in Frameworks - * cannot be deleted. - The Framework cannot be deleted if it is currently deployed on any - * resource. - This action is permanent and cannot be undone. + *

                        - You can't delete built-in frameworks. You can only delete frameworks with type `CUSTOM`. - + * You can't delete frameworks that are deployed to a resource. - You can't restore a deleted + * framework. This action is permanent. * *

                        Sample code: * @@ -1004,8 +1008,9 @@ public final void deleteFramework(FrameworkName name) { * } * } * - * @param name Required. Name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. + * @param name Required. The name of the resource, in the format + * `organizations/{organization}/locations/{location}/frameworks/{framework}`. The only + * supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteFramework(String name) { @@ -1015,11 +1020,12 @@ public final void deleteFramework(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Custom Framework, including all its minor and minor revisions. + * Deletes a custom framework, including all its major and minor revisions. Consider the + * following: * - *

                        - This operation can only be performed on Frameworks with type `CUSTOM`. Built-in Frameworks - * cannot be deleted. - The Framework cannot be deleted if it is currently deployed on any - * resource. - This action is permanent and cannot be undone. + *

                        - You can't delete built-in frameworks. You can only delete frameworks with type `CUSTOM`. - + * You can't delete frameworks that are deployed to a resource. - You can't restore a deleted + * framework. This action is permanent. * *

                        Sample code: * @@ -1047,11 +1053,12 @@ public final void deleteFramework(DeleteFrameworkRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Custom Framework, including all its minor and minor revisions. + * Deletes a custom framework, including all its major and minor revisions. Consider the + * following: * - *

                        - This operation can only be performed on Frameworks with type `CUSTOM`. Built-in Frameworks - * cannot be deleted. - The Framework cannot be deleted if it is currently deployed on any - * resource. - This action is permanent and cannot be undone. + *

                        - You can't delete built-in frameworks. You can only delete frameworks with type `CUSTOM`. - + * You can't delete frameworks that are deployed to a resource. - You can't restore a deleted + * framework. This action is permanent. * *

                        Sample code: * @@ -1078,8 +1085,9 @@ public final UnaryCallable deleteFrameworkCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all CloudControls (both Built-in and Custom) available within a given parent resource. - * This method supports pagination. The latest major version of each CloudControl is returned. + * Lists the cloud controls (both built-in and custom) that are available in a given parent + * resource. The latest major version of each cloud control is returned. This method supports + * pagination. * *

                        Sample code: * @@ -1098,7 +1106,8 @@ public final UnaryCallable deleteFrameworkCallabl * } * * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlsPagedResponse listCloudControls(OrganizationLocationName parent) { @@ -1111,8 +1120,9 @@ public final ListCloudControlsPagedResponse listCloudControls(OrganizationLocati // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all CloudControls (both Built-in and Custom) available within a given parent resource. - * This method supports pagination. The latest major version of each CloudControl is returned. + * Lists the cloud controls (both built-in and custom) that are available in a given parent + * resource. The latest major version of each cloud control is returned. This method supports + * pagination. * *

                        Sample code: * @@ -1131,7 +1141,8 @@ public final ListCloudControlsPagedResponse listCloudControls(OrganizationLocati * } * * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlsPagedResponse listCloudControls(String parent) { @@ -1142,8 +1153,9 @@ public final ListCloudControlsPagedResponse listCloudControls(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all CloudControls (both Built-in and Custom) available within a given parent resource. - * This method supports pagination. The latest major version of each CloudControl is returned. + * Lists the cloud controls (both built-in and custom) that are available in a given parent + * resource. The latest major version of each cloud control is returned. This method supports + * pagination. * *

                        Sample code: * @@ -1175,8 +1187,9 @@ public final ListCloudControlsPagedResponse listCloudControls(ListCloudControlsR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all CloudControls (both Built-in and Custom) available within a given parent resource. - * This method supports pagination. The latest major version of each CloudControl is returned. + * Lists the cloud controls (both built-in and custom) that are available in a given parent + * resource. The latest major version of each cloud control is returned. This method supports + * pagination. * *

                        Sample code: * @@ -1209,8 +1222,9 @@ public final ListCloudControlsPagedResponse listCloudControls(ListCloudControlsR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all CloudControls (both Built-in and Custom) available within a given parent resource. - * This method supports pagination. The latest major version of each CloudControl is returned. + * Lists the cloud controls (both built-in and custom) that are available in a given parent + * resource. The latest major version of each cloud control is returned. This method supports + * pagination. * *

                        Sample code: * @@ -1249,11 +1263,11 @@ public final ListCloudControlsPagedResponse listCloudControls(ListCloudControlsR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single CloudControl. This method retrieves a CloudControl resource, which can - * be either Built-in or Custom, identified by its name. + * Gets details about a cloud control. This method retrieves the latest major version of a cloud + * control that you identify by name. * - *

                        By default, the latest major version of the CloudControl is returned. A specific major - * version can be retrieved by specifying the `major_revision_id` in the request. + *

                        By default, the latest major version of the cloud control is returned. To retrieve a + * specific major version, include `major_revision_id` in the request. * *

                        Sample code: * @@ -1270,8 +1284,9 @@ public final ListCloudControlsPagedResponse listCloudControls(ListCloudControlsR * } * } * - * @param name Required. The name of the cloudcontrol to retrieve in the format: - * organizations/{organization}/locations/{location}/cloudControls/{cloud_control} + * @param name Required. The name of the cloud control to retrieve, in the format + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. The only + * supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControl getCloudControl(CloudControlName name) { @@ -1282,11 +1297,11 @@ public final CloudControl getCloudControl(CloudControlName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single CloudControl. This method retrieves a CloudControl resource, which can - * be either Built-in or Custom, identified by its name. + * Gets details about a cloud control. This method retrieves the latest major version of a cloud + * control that you identify by name. * - *

                        By default, the latest major version of the CloudControl is returned. A specific major - * version can be retrieved by specifying the `major_revision_id` in the request. + *

                        By default, the latest major version of the cloud control is returned. To retrieve a + * specific major version, include `major_revision_id` in the request. * *

                        Sample code: * @@ -1303,8 +1318,9 @@ public final CloudControl getCloudControl(CloudControlName name) { * } * } * - * @param name Required. The name of the cloudcontrol to retrieve in the format: - * organizations/{organization}/locations/{location}/cloudControls/{cloud_control} + * @param name Required. The name of the cloud control to retrieve, in the format + * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. The only + * supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControl getCloudControl(String name) { @@ -1314,11 +1330,11 @@ public final CloudControl getCloudControl(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single CloudControl. This method retrieves a CloudControl resource, which can - * be either Built-in or Custom, identified by its name. + * Gets details about a cloud control. This method retrieves the latest major version of a cloud + * control that you identify by name. * - *

                        By default, the latest major version of the CloudControl is returned. A specific major - * version can be retrieved by specifying the `major_revision_id` in the request. + *

                        By default, the latest major version of the cloud control is returned. To retrieve a + * specific major version, include `major_revision_id` in the request. * *

                        Sample code: * @@ -1333,6 +1349,7 @@ public final CloudControl getCloudControl(String name) { * GetCloudControlRequest.newBuilder() * .setName( * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + * .setMajorRevisionId(612576889) * .build(); * CloudControl response = configClient.getCloudControl(request); * } @@ -1347,11 +1364,11 @@ public final CloudControl getCloudControl(GetCloudControlRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single CloudControl. This method retrieves a CloudControl resource, which can - * be either Built-in or Custom, identified by its name. + * Gets details about a cloud control. This method retrieves the latest major version of a cloud + * control that you identify by name. * - *

                        By default, the latest major version of the CloudControl is returned. A specific major - * version can be retrieved by specifying the `major_revision_id` in the request. + *

                        By default, the latest major version of the cloud control is returned. To retrieve a + * specific major version, include `major_revision_id` in the request. * *

                        Sample code: * @@ -1366,6 +1383,7 @@ public final CloudControl getCloudControl(GetCloudControlRequest request) { * GetCloudControlRequest.newBuilder() * .setName( * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + * .setMajorRevisionId(612576889) * .build(); * ApiFuture future = configClient.getCloudControlCallable().futureCall(request); * // Do something. @@ -1379,8 +1397,8 @@ public final UnaryCallable getCloudControl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CloudControl with type `Custom` under a given parent resource. `Built-in` - * CloudControls are managed by Google and cannot be created through this API. + * Creates a custom cloud control in a given parent resource. You can't create built-in cloud + * controls because those are managed by Google. * *

                        Sample code: * @@ -1399,10 +1417,11 @@ public final UnaryCallable getCloudControl * } * * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. - * @param cloudControl Required. The resource being created - * @param cloudControlId Required. ID of the CloudControl. This is the last segment of the - * CloudControl resource name. Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. + * @param cloudControl Required. The cloud control that's being created. + * @param cloudControlId Required. The identifier for the cloud control, which is the last segment + * of the cloud control name. The format is `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControl createCloudControl( @@ -1418,8 +1437,8 @@ public final CloudControl createCloudControl( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CloudControl with type `Custom` under a given parent resource. `Built-in` - * CloudControls are managed by Google and cannot be created through this API. + * Creates a custom cloud control in a given parent resource. You can't create built-in cloud + * controls because those are managed by Google. * *

                        Sample code: * @@ -1438,10 +1457,11 @@ public final CloudControl createCloudControl( * } * * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. - * @param cloudControl Required. The resource being created - * @param cloudControlId Required. ID of the CloudControl. This is the last segment of the - * CloudControl resource name. Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. + * @param cloudControl Required. The cloud control that's being created. + * @param cloudControlId Required. The identifier for the cloud control, which is the last segment + * of the cloud control name. The format is `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControl createCloudControl( @@ -1457,8 +1477,8 @@ public final CloudControl createCloudControl( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CloudControl with type `Custom` under a given parent resource. `Built-in` - * CloudControls are managed by Google and cannot be created through this API. + * Creates a custom cloud control in a given parent resource. You can't create built-in cloud + * controls because those are managed by Google. * *

                        Sample code: * @@ -1488,8 +1508,8 @@ public final CloudControl createCloudControl(CreateCloudControlRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CloudControl with type `Custom` under a given parent resource. `Built-in` - * CloudControls are managed by Google and cannot be created through this API. + * Creates a custom cloud control in a given parent resource. You can't create built-in cloud + * controls because those are managed by Google. * *

                        Sample code: * @@ -1519,14 +1539,15 @@ public final UnaryCallable createCloudC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single CloudControl. This method allows for partial updates of a Custom CloudControl - * resource. Built-in CloudControls cannot be updated. + * Updates a custom cloud control. This method allows for partial updates of a cloud control. Use + * the `update_mask` to specify which fields to update. Consider the following: * - *

                        - If an `update_mask` is provided, only the fields specified in the mask will be updated. - - * If no `update_mask` is provided, all fields present in the request's `cloud_control` body will - * be used to overwrite the existing resource. + *

                        - If you provide an `update_mask`, only the fields that are specified in the mask are + * updated. - If you don't provide an `update_mask`, all the fields that are present in the + * request's `cloud_control` body are used to overwrite the existing resource. * - *

                        A successful update will result in a new version of the CloudControl. + *

                        You can only update cloud controls with the `CUSTOM` type. A successful update creates a new + * version of the cloud control. * *

                        Sample code: * @@ -1543,13 +1564,13 @@ public final UnaryCallable createCloudC * } * } * - * @param cloudControl Required. The resource being updated - * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * CloudControl 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 present in the request will be - * overwritten. The fields that can be updated are: 1. Display_name 2. Description 3. - * Parameters 4. Rules 5. ParameterSpec. + * @param cloudControl Required. The cloud control that you're updating. + * @param updateMask Optional. Use a field mask to specify the fields to be overwritten in the + * cloud control during the update. The fields that you specify in the `update_mask` are + * relative to the cloud control, not the full request. A field is overwritten if it is in the + * mask. If you don't provide a mask, all fields in the request are updated. + *

                        You can update the following fields: + *

                        - Display name - Description - Parameters - Rules - Parameter specification * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControl updateCloudControl(CloudControl cloudControl, FieldMask updateMask) { @@ -1563,14 +1584,15 @@ public final CloudControl updateCloudControl(CloudControl cloudControl, FieldMas // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single CloudControl. This method allows for partial updates of a Custom CloudControl - * resource. Built-in CloudControls cannot be updated. + * Updates a custom cloud control. This method allows for partial updates of a cloud control. Use + * the `update_mask` to specify which fields to update. Consider the following: * - *

                        - If an `update_mask` is provided, only the fields specified in the mask will be updated. - - * If no `update_mask` is provided, all fields present in the request's `cloud_control` body will - * be used to overwrite the existing resource. + *

                        - If you provide an `update_mask`, only the fields that are specified in the mask are + * updated. - If you don't provide an `update_mask`, all the fields that are present in the + * request's `cloud_control` body are used to overwrite the existing resource. * - *

                        A successful update will result in a new version of the CloudControl. + *

                        You can only update cloud controls with the `CUSTOM` type. A successful update creates a new + * version of the cloud control. * *

                        Sample code: * @@ -1599,14 +1621,15 @@ public final CloudControl updateCloudControl(UpdateCloudControlRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single CloudControl. This method allows for partial updates of a Custom CloudControl - * resource. Built-in CloudControls cannot be updated. + * Updates a custom cloud control. This method allows for partial updates of a cloud control. Use + * the `update_mask` to specify which fields to update. Consider the following: * - *

                        - If an `update_mask` is provided, only the fields specified in the mask will be updated. - - * If no `update_mask` is provided, all fields present in the request's `cloud_control` body will - * be used to overwrite the existing resource. + *

                        - If you provide an `update_mask`, only the fields that are specified in the mask are + * updated. - If you don't provide an `update_mask`, all the fields that are present in the + * request's `cloud_control` body are used to overwrite the existing resource. * - *

                        A successful update will result in a new version of the CloudControl. + *

                        You can only update cloud controls with the `CUSTOM` type. A successful update creates a new + * version of the cloud control. * *

                        Sample code: * @@ -1635,11 +1658,12 @@ public final UnaryCallable updateCloudC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Custom CloudControl, including all its major and minor revisions. + * Deletes a custom cloud control, including all its major and minor revisions. Consider the + * following: * - *

                        - This operation can only be performed on CloudControls with type `CUSTOM`. Built-in - * CloudControls cannot be deleted. - The CloudControl cannot be deleted if any of its revisions - * are currently referenced by any Framework. - This action is permanent and cannot be undone. + *

                        - You can't delete built-in cloud controls. You can only delete cloud controls with type + * `CUSTOM`. - You can't delete cloud controls if any of the versions are referenced by a + * framework. - You can't restore a deleted cloud control. This action is permanent. * *

                        Sample code: * @@ -1656,8 +1680,9 @@ public final UnaryCallable updateCloudC * } * } * - * @param name Required. Name of the resource, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + * @param name Required. The name of the cloud control to delete, in the format + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. The only + * supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteCloudControl(CloudControlName name) { @@ -1670,11 +1695,12 @@ public final void deleteCloudControl(CloudControlName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Custom CloudControl, including all its major and minor revisions. + * Deletes a custom cloud control, including all its major and minor revisions. Consider the + * following: * - *

                        - This operation can only be performed on CloudControls with type `CUSTOM`. Built-in - * CloudControls cannot be deleted. - The CloudControl cannot be deleted if any of its revisions - * are currently referenced by any Framework. - This action is permanent and cannot be undone. + *

                        - You can't delete built-in cloud controls. You can only delete cloud controls with type + * `CUSTOM`. - You can't delete cloud controls if any of the versions are referenced by a + * framework. - You can't restore a deleted cloud control. This action is permanent. * *

                        Sample code: * @@ -1691,8 +1717,9 @@ public final void deleteCloudControl(CloudControlName name) { * } * } * - * @param name Required. Name of the resource, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + * @param name Required. The name of the cloud control to delete, in the format + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. The only + * supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteCloudControl(String name) { @@ -1703,11 +1730,12 @@ public final void deleteCloudControl(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Custom CloudControl, including all its major and minor revisions. + * Deletes a custom cloud control, including all its major and minor revisions. Consider the + * following: * - *

                        - This operation can only be performed on CloudControls with type `CUSTOM`. Built-in - * CloudControls cannot be deleted. - The CloudControl cannot be deleted if any of its revisions - * are currently referenced by any Framework. - This action is permanent and cannot be undone. + *

                        - You can't delete built-in cloud controls. You can only delete cloud controls with type + * `CUSTOM`. - You can't delete cloud controls if any of the versions are referenced by a + * framework. - You can't restore a deleted cloud control. This action is permanent. * *

                        Sample code: * @@ -1736,11 +1764,12 @@ public final void deleteCloudControl(DeleteCloudControlRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Custom CloudControl, including all its major and minor revisions. + * Deletes a custom cloud control, including all its major and minor revisions. Consider the + * following: * - *

                        - This operation can only be performed on CloudControls with type `CUSTOM`. Built-in - * CloudControls cannot be deleted. - The CloudControl cannot be deleted if any of its revisions - * are currently referenced by any Framework. - This action is permanent and cannot be undone. + *

                        - You can't delete built-in cloud controls. You can only delete cloud controls with type + * `CUSTOM`. - You can't delete cloud controls if any of the versions are referenced by a + * framework. - You can't restore a deleted cloud control. This action is permanent. * *

                        Sample code: * diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java index 2506d4e8b739..1a48318b96e9 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java @@ -75,7 +75,7 @@ * * *

                        CreateFrameworkDeployment - *

                        Creates a new FrameworkDeployment in a given parent resource. + *

                        Creates a framework deployment in a given parent resource. A framework deployment lets you assign a particular framework version to an organization, folder, or project so that you can control and monitor those resources using the framework's cloud controls. * *

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

                        *
                          @@ -95,7 +95,7 @@ * * *

                          DeleteFrameworkDeployment - *

                          Deletes a single FrameworkDeployment. + *

                          Deletes a framework deployment. * *

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

                          *
                            @@ -115,7 +115,7 @@ * * *

                            GetFrameworkDeployment - *

                            Gets details of a single FrameworkDeployment. + *

                            Gets details about a framework deployment. * *

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

                            *
                              @@ -134,7 +134,7 @@ * * *

                              ListFrameworkDeployments - *

                              Lists FrameworkDeployments in a given parent resource. + *

                              Lists the framework deployments in a given parent resource. * *

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

                              *
                                @@ -154,7 +154,7 @@ * * *

                                GetCloudControlDeployment - *

                                Gets details of a single CloudControlDeployment. + *

                                Gets details about a cloud control deployment. * *

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

                                *
                                  @@ -173,7 +173,7 @@ * * *

                                  ListCloudControlDeployments - *

                                  Lists CloudControlDeployments in a given parent resource. + *

                                  Lists the cloud conrol deployments in a given parent resource. * *

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

                                  *
                                    @@ -349,7 +349,9 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new FrameworkDeployment in a given parent resource. + * Creates a framework deployment in a given parent resource. A framework deployment lets you + * assign a particular framework version to an organization, folder, or project so that you can + * control and monitor those resources using the framework's cloud controls. * *

                                    Sample code: * @@ -370,11 +372,11 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * } * - * @param parent Required. The parent resource of the FrameworkDeployment in the format: - * organizations/{organization}/locations/{location} Only global location is supported. - * @param frameworkDeployment Required. The FrameworkDeployment to be created. - * @param frameworkDeploymentId Optional. User provided identifier. It should be unique in scope - * of a parent. This is optional and if not provided, a random UUID will be generated. + * @param parent Required. The parent resource of the framework deployment in the format + * `organizations/{organization}/locations/{location}`. Only the global location is supported. + * @param frameworkDeployment Required. The framework deployment that you're creating. + * @param frameworkDeploymentId Optional. An identifier for the framework deployment that's unique + * in scope of the parent. If you don't specify a value, then a random UUID is generated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -393,7 +395,9 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new FrameworkDeployment in a given parent resource. + * Creates a framework deployment in a given parent resource. A framework deployment lets you + * assign a particular framework version to an organization, folder, or project so that you can + * control and monitor those resources using the framework's cloud controls. * *

                                    Sample code: * @@ -414,11 +418,11 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * } * - * @param parent Required. The parent resource of the FrameworkDeployment in the format: - * organizations/{organization}/locations/{location} Only global location is supported. - * @param frameworkDeployment Required. The FrameworkDeployment to be created. - * @param frameworkDeploymentId Optional. User provided identifier. It should be unique in scope - * of a parent. This is optional and if not provided, a random UUID will be generated. + * @param parent Required. The parent resource of the framework deployment in the format + * `organizations/{organization}/locations/{location}`. Only the global location is supported. + * @param frameworkDeployment Required. The framework deployment that you're creating. + * @param frameworkDeploymentId Optional. An identifier for the framework deployment that's unique + * in scope of the parent. If you don't specify a value, then a random UUID is generated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -435,7 +439,9 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new FrameworkDeployment in a given parent resource. + * Creates a framework deployment in a given parent resource. A framework deployment lets you + * assign a particular framework version to an organization, folder, or project so that you can + * control and monitor those resources using the framework's cloud controls. * *

                                    Sample code: * @@ -466,7 +472,9 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new FrameworkDeployment in a given parent resource. + * Creates a framework deployment in a given parent resource. A framework deployment lets you + * assign a particular framework version to an organization, folder, or project so that you can + * control and monitor those resources using the framework's cloud controls. * *

                                    Sample code: * @@ -498,7 +506,9 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new FrameworkDeployment in a given parent resource. + * Creates a framework deployment in a given parent resource. A framework deployment lets you + * assign a particular framework version to an organization, folder, or project so that you can + * control and monitor those resources using the framework's cloud controls. * *

                                    Sample code: * @@ -529,7 +539,7 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single FrameworkDeployment. + * Deletes a framework deployment. * *

                                    Sample code: * @@ -546,8 +556,10 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * } * - * @param name Required. name of the FrameworkDeployment to be deleted in the following format: - * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id} + * @param name Required. The name of the framework deployment that you want to delete, in the + * format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFrameworkDeploymentAsync( @@ -561,7 +573,7 @@ public final OperationFuture deleteFrameworkDeployment // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single FrameworkDeployment. + * Deletes a framework deployment. * *

                                    Sample code: * @@ -579,8 +591,10 @@ public final OperationFuture deleteFrameworkDeployment * } * } * - * @param name Required. name of the FrameworkDeployment to be deleted in the following format: - * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id} + * @param name Required. The name of the framework deployment that you want to delete, in the + * format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFrameworkDeploymentAsync( @@ -592,7 +606,7 @@ public final OperationFuture deleteFrameworkDeployment // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single FrameworkDeployment. + * Deletes a framework deployment. * *

                                    Sample code: * @@ -625,7 +639,7 @@ public final OperationFuture deleteFrameworkDeployment // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single FrameworkDeployment. + * Deletes a framework deployment. * *

                                    Sample code: * @@ -658,7 +672,7 @@ public final OperationFuture deleteFrameworkDeployment // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single FrameworkDeployment. + * Deletes a framework deployment. * *

                                    Sample code: * @@ -691,7 +705,7 @@ public final OperationFuture deleteFrameworkDeployment // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single FrameworkDeployment. + * Gets details about a framework deployment. * *

                                    Sample code: * @@ -708,8 +722,9 @@ public final OperationFuture deleteFrameworkDeployment * } * } * - * @param name Required. FrameworkDeployment name in the following format: - * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id} + * @param name Required. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FrameworkDeployment getFrameworkDeployment(FrameworkDeploymentName name) { @@ -722,7 +737,7 @@ public final FrameworkDeployment getFrameworkDeployment(FrameworkDeploymentName // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single FrameworkDeployment. + * Gets details about a framework deployment. * *

                                    Sample code: * @@ -740,8 +755,9 @@ public final FrameworkDeployment getFrameworkDeployment(FrameworkDeploymentName * } * } * - * @param name Required. FrameworkDeployment name in the following format: - * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id} + * @param name Required. The name of the framework deployment, in the format + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FrameworkDeployment getFrameworkDeployment(String name) { @@ -752,7 +768,7 @@ public final FrameworkDeployment getFrameworkDeployment(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single FrameworkDeployment. + * Gets details about a framework deployment. * *

                                    Sample code: * @@ -783,7 +799,7 @@ public final FrameworkDeployment getFrameworkDeployment(GetFrameworkDeploymentRe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single FrameworkDeployment. + * Gets details about a framework deployment. * *

                                    Sample code: * @@ -815,7 +831,7 @@ public final FrameworkDeployment getFrameworkDeployment(GetFrameworkDeploymentRe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FrameworkDeployments in a given parent resource. + * Lists the framework deployments in a given parent resource. * *

                                    Sample code: * @@ -834,8 +850,9 @@ public final FrameworkDeployment getFrameworkDeployment(GetFrameworkDeploymentRe * } * } * - * @param parent Required. parent resource of the FrameworkDeployment in the format: - * organizations/{organization}/locations/{location} Only global location is supported. + * @param parent Required. The parent resource of the framework deployment, in the format + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( @@ -849,7 +866,7 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FrameworkDeployments in a given parent resource. + * Lists the framework deployments in a given parent resource. * *

                                    Sample code: * @@ -868,8 +885,9 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( * } * } * - * @param parent Required. parent resource of the FrameworkDeployment in the format: - * organizations/{organization}/locations/{location} Only global location is supported. + * @param parent Required. The parent resource of the framework deployment, in the format + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments(String parent) { @@ -880,7 +898,7 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments(Stri // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FrameworkDeployments in a given parent resource. + * Lists the framework deployments in a given parent resource. * *

                                    Sample code: * @@ -916,7 +934,7 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FrameworkDeployments in a given parent resource. + * Lists the framework deployments in a given parent resource. * *

                                    Sample code: * @@ -951,7 +969,7 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FrameworkDeployments in a given parent resource. + * Lists the framework deployments in a given parent resource. * *

                                    Sample code: * @@ -993,7 +1011,7 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single CloudControlDeployment. + * Gets details about a cloud control deployment. * *

                                    Sample code: * @@ -1011,8 +1029,9 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( * } * } * - * @param name Required. CloudControlDeployment name in the following format: - * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id} + * @param name Required. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControlDeployment getCloudControlDeployment(CloudControlDeploymentName name) { @@ -1025,7 +1044,7 @@ public final CloudControlDeployment getCloudControlDeployment(CloudControlDeploy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single CloudControlDeployment. + * Gets details about a cloud control deployment. * *

                                    Sample code: * @@ -1044,8 +1063,9 @@ public final CloudControlDeployment getCloudControlDeployment(CloudControlDeploy * } * } * - * @param name Required. CloudControlDeployment name in the following format: - * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id} + * @param name Required. The name for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControlDeployment getCloudControlDeployment(String name) { @@ -1056,7 +1076,7 @@ public final CloudControlDeployment getCloudControlDeployment(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single CloudControlDeployment. + * Gets details about a cloud control deployment. * *

                                    Sample code: * @@ -1088,7 +1108,7 @@ public final CloudControlDeployment getCloudControlDeployment( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single CloudControlDeployment. + * Gets details about a cloud control deployment. * *

                                    Sample code: * @@ -1120,7 +1140,7 @@ public final CloudControlDeployment getCloudControlDeployment( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloudControlDeployments in a given parent resource. + * Lists the cloud conrol deployments in a given parent resource. * *

                                    Sample code: * @@ -1139,8 +1159,9 @@ public final CloudControlDeployment getCloudControlDeployment( * } * } * - * @param parent Required. parent resource of the CloudControlDeployment in the format: - * organizations/{organization}/locations/{location} Only global location is supported. + * @param parent Required. The parent resource for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployments( @@ -1154,7 +1175,7 @@ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployment // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloudControlDeployments in a given parent resource. + * Lists the cloud conrol deployments in a given parent resource. * *

                                    Sample code: * @@ -1173,8 +1194,9 @@ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployment * } * } * - * @param parent Required. parent resource of the CloudControlDeployment in the format: - * organizations/{organization}/locations/{location} Only global location is supported. + * @param parent Required. The parent resource for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}`. The only supported location is + * `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployments(String parent) { @@ -1185,7 +1207,7 @@ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployment // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloudControlDeployments in a given parent resource. + * Lists the cloud conrol deployments in a given parent resource. * *

                                    Sample code: * @@ -1221,7 +1243,7 @@ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployment // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloudControlDeployments in a given parent resource. + * Lists the cloud conrol deployments in a given parent resource. * *

                                    Sample code: * @@ -1257,7 +1279,7 @@ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployment // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloudControlDeployments in a given parent resource. + * Lists the cloud conrol deployments in a given parent resource. * *

                                    Sample code: * diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java new file mode 100644 index 000000000000..f99097210bad --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java @@ -0,0 +1,1779 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.stub.MonitoringStub; +import com.google.cloud.cloudsecuritycompliance.v1.stub.MonitoringStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service describing handlers for resources + * + *

                                    This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                    {@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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    + *   FrameworkComplianceReportName name =
                                    + *       FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    + *           "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
                                    + *   FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(name);
                                    + * }
                                    + * }
                                    + * + *

                                    Note: close() needs to be called on the MonitoringClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                    Methods
                                    MethodDescriptionMethod Variants

                                    ListFrameworkComplianceSummaries

                                    Lists the framework compliance summary for a given scope.

                                    + *

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

                                    + *
                                      + *
                                    • listFrameworkComplianceSummaries(ListFrameworkComplianceSummariesRequest request) + *

                                    + *

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

                                    + *
                                      + *
                                    • listFrameworkComplianceSummaries(FolderLocationName parent) + *

                                    • listFrameworkComplianceSummaries(LocationName parent) + *

                                    • listFrameworkComplianceSummaries(OrganizationLocationName parent) + *

                                    • listFrameworkComplianceSummaries(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.

                                    + *
                                      + *
                                    • listFrameworkComplianceSummariesPagedCallable() + *

                                    • listFrameworkComplianceSummariesCallable() + *

                                    + *

                                    ListFindingSummaries

                                    Lists the finding summary by category for a given scope.

                                    + *

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

                                    + *
                                      + *
                                    • listFindingSummaries(ListFindingSummariesRequest request) + *

                                    + *

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

                                    + *
                                      + *
                                    • listFindingSummaries(FolderLocationName parent) + *

                                    • listFindingSummaries(LocationName parent) + *

                                    • listFindingSummaries(OrganizationLocationName parent) + *

                                    • listFindingSummaries(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.

                                    + *
                                      + *
                                    • listFindingSummariesPagedCallable() + *

                                    • listFindingSummariesCallable() + *

                                    + *

                                    FetchFrameworkComplianceReport

                                    Fetches the framework compliance report for a given scope.

                                    + *

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

                                    + *
                                      + *
                                    • fetchFrameworkComplianceReport(FetchFrameworkComplianceReportRequest request) + *

                                    + *

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

                                    + *
                                      + *
                                    • fetchFrameworkComplianceReport(FrameworkComplianceReportName name) + *

                                    • fetchFrameworkComplianceReport(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.

                                    + *
                                      + *
                                    • fetchFrameworkComplianceReportCallable() + *

                                    + *

                                    ListControlComplianceSummaries

                                    Lists the control compliance summary for a given scope.

                                    + *

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

                                    + *
                                      + *
                                    • listControlComplianceSummaries(ListControlComplianceSummariesRequest request) + *

                                    + *

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

                                    + *
                                      + *
                                    • listControlComplianceSummaries(FrameworkComplianceReportName parent) + *

                                    • listControlComplianceSummaries(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.

                                    + *
                                      + *
                                    • listControlComplianceSummariesPagedCallable() + *

                                    • listControlComplianceSummariesCallable() + *

                                    + *

                                    AggregateFrameworkComplianceReport

                                    Gets the aggregated compliance report over time for a given scope.

                                    + *

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

                                    + *
                                      + *
                                    • aggregateFrameworkComplianceReport(AggregateFrameworkComplianceReportRequest request) + *

                                    + *

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

                                    + *
                                      + *
                                    • aggregateFrameworkComplianceReport(FrameworkComplianceReportName name) + *

                                    • aggregateFrameworkComplianceReport(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.

                                    + *
                                      + *
                                    • aggregateFrameworkComplianceReportCallable() + *

                                    + *

                                    ListLocations

                                    Lists information about the supported locations for this service.

                                    + *

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

                                    + *
                                      + *
                                    • listLocations(ListLocationsRequest request) + *

                                    + *

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

                                    + *
                                      + *
                                    • listLocationsPagedCallable() + *

                                    • listLocationsCallable() + *

                                    + *

                                    GetLocation

                                    Gets information about a location.

                                    + *

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

                                    + *
                                      + *
                                    • getLocation(GetLocationRequest request) + *

                                    + *

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

                                    + *
                                      + *
                                    • getLocationCallable() + *

                                    + *
                                    + * + *

                                    See the individual methods for example code. + * + *

                                    Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                    This class can be customized by passing in a custom instance of MonitoringSettings to + * create(). For example: + * + *

                                    To customize credentials: + * + *

                                    {@code
                                    + * // This snippet has been automatically generated and should be regarded as a code template only.
                                    + * // It will require modifications to work:
                                    + * // - It may require correct/in-range values for request initialization.
                                    + * // - It may require specifying regional endpoints when creating the service client as shown in
                                    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                    + * MonitoringSettings monitoringSettings =
                                    + *     MonitoringSettings.newBuilder()
                                    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                    + *         .build();
                                    + * MonitoringClient monitoringClient = MonitoringClient.create(monitoringSettings);
                                    + * }
                                    + * + *

                                    To customize the endpoint: + * + *

                                    {@code
                                    + * // This snippet has been automatically generated and should be regarded as a code template only.
                                    + * // It will require modifications to work:
                                    + * // - It may require correct/in-range values for request initialization.
                                    + * // - It may require specifying regional endpoints when creating the service client as shown in
                                    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                    + * MonitoringSettings monitoringSettings =
                                    + *     MonitoringSettings.newBuilder().setEndpoint(myEndpoint).build();
                                    + * MonitoringClient monitoringClient = MonitoringClient.create(monitoringSettings);
                                    + * }
                                    + * + *

                                    To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                                    {@code
                                    + * // This snippet has been automatically generated and should be regarded as a code template only.
                                    + * // It will require modifications to work:
                                    + * // - It may require correct/in-range values for request initialization.
                                    + * // - It may require specifying regional endpoints when creating the service client as shown in
                                    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                    + * MonitoringSettings monitoringSettings = MonitoringSettings.newHttpJsonBuilder().build();
                                    + * MonitoringClient monitoringClient = MonitoringClient.create(monitoringSettings);
                                    + * }
                                    + * + *

                                    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class MonitoringClient implements BackgroundResource { + private final MonitoringSettings settings; + private final MonitoringStub stub; + + /** Constructs an instance of MonitoringClient with default settings. */ + public static final MonitoringClient create() throws IOException { + return create(MonitoringSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MonitoringClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final MonitoringClient create(MonitoringSettings settings) throws IOException { + return new MonitoringClient(settings); + } + + /** + * Constructs an instance of MonitoringClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(MonitoringSettings). + */ + public static final MonitoringClient create(MonitoringStub stub) { + return new MonitoringClient(stub); + } + + /** + * Constructs an instance of MonitoringClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected MonitoringClient(MonitoringSettings settings) throws IOException { + this.settings = settings; + this.stub = ((MonitoringStubSettings) settings.getStubSettings()).createStub(); + } + + protected MonitoringClient(MonitoringStub stub) { + this.settings = null; + this.stub = stub; + } + + public final MonitoringSettings getSettings() { + return settings; + } + + public MonitoringStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
                                    +   *   for (FrameworkComplianceSummary element :
                                    +   *       monitoringClient.listFrameworkComplianceSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework compliance summary. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplianceSummaries( + FolderLocationName parent) { + ListFrameworkComplianceSummariesRequest request = + ListFrameworkComplianceSummariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFrameworkComplianceSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                    +   *   for (FrameworkComplianceSummary element :
                                    +   *       monitoringClient.listFrameworkComplianceSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework compliance summary. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplianceSummaries( + LocationName parent) { + ListFrameworkComplianceSummariesRequest request = + ListFrameworkComplianceSummariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFrameworkComplianceSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                    +   *   for (FrameworkComplianceSummary element :
                                    +   *       monitoringClient.listFrameworkComplianceSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework compliance summary. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplianceSummaries( + OrganizationLocationName parent) { + ListFrameworkComplianceSummariesRequest request = + ListFrameworkComplianceSummariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFrameworkComplianceSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                    +   *   for (FrameworkComplianceSummary element :
                                    +   *       monitoringClient.listFrameworkComplianceSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework compliance summary. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplianceSummaries( + String parent) { + ListFrameworkComplianceSummariesRequest request = + ListFrameworkComplianceSummariesRequest.newBuilder().setParent(parent).build(); + return listFrameworkComplianceSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListFrameworkComplianceSummariesRequest request =
                                    +   *       ListFrameworkComplianceSummariesRequest.newBuilder()
                                    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .build();
                                    +   *   for (FrameworkComplianceSummary element :
                                    +   *       monitoringClient.listFrameworkComplianceSummaries(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 ListFrameworkComplianceSummariesPagedResponse listFrameworkComplianceSummaries( + ListFrameworkComplianceSummariesRequest request) { + return listFrameworkComplianceSummariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListFrameworkComplianceSummariesRequest request =
                                    +   *       ListFrameworkComplianceSummariesRequest.newBuilder()
                                    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .build();
                                    +   *   ApiFuture future =
                                    +   *       monitoringClient.listFrameworkComplianceSummariesPagedCallable().futureCall(request);
                                    +   *   // Do something.
                                    +   *   for (FrameworkComplianceSummary element : future.get().iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + */ + public final UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesPagedCallable() { + return stub.listFrameworkComplianceSummariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListFrameworkComplianceSummariesRequest request =
                                    +   *       ListFrameworkComplianceSummariesRequest.newBuilder()
                                    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .build();
                                    +   *   while (true) {
                                    +   *     ListFrameworkComplianceSummariesResponse response =
                                    +   *         monitoringClient.listFrameworkComplianceSummariesCallable().call(request);
                                    +   *     for (FrameworkComplianceSummary element : response.getFrameworkComplianceSummariesList()) {
                                    +   *       // doThingsWith(element);
                                    +   *     }
                                    +   *     String nextPageToken = response.getNextPageToken();
                                    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                    +   *     } else {
                                    +   *       break;
                                    +   *     }
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + */ + public final UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesCallable() { + return stub.listFrameworkComplianceSummariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the finding summary by category for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
                                    +   *   for (FindingSummary element : monitoringClient.listFindingSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework overview page. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFindingSummariesPagedResponse listFindingSummaries(FolderLocationName parent) { + ListFindingSummariesRequest request = + ListFindingSummariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFindingSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the finding summary by category for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                    +   *   for (FindingSummary element : monitoringClient.listFindingSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework overview page. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFindingSummariesPagedResponse listFindingSummaries(LocationName parent) { + ListFindingSummariesRequest request = + ListFindingSummariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFindingSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the finding summary by category for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                    +   *   for (FindingSummary element : monitoringClient.listFindingSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework overview page. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFindingSummariesPagedResponse listFindingSummaries( + OrganizationLocationName parent) { + ListFindingSummariesRequest request = + ListFindingSummariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFindingSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the finding summary by category for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                    +   *   for (FindingSummary element : monitoringClient.listFindingSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework overview page. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFindingSummariesPagedResponse listFindingSummaries(String parent) { + ListFindingSummariesRequest request = + ListFindingSummariesRequest.newBuilder().setParent(parent).build(); + return listFindingSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the finding summary by category for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListFindingSummariesRequest request =
                                    +   *       ListFindingSummariesRequest.newBuilder()
                                    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .setEndTime(Timestamp.newBuilder().build())
                                    +   *           .build();
                                    +   *   for (FindingSummary element : monitoringClient.listFindingSummaries(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 ListFindingSummariesPagedResponse listFindingSummaries( + ListFindingSummariesRequest request) { + return listFindingSummariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the finding summary by category for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListFindingSummariesRequest request =
                                    +   *       ListFindingSummariesRequest.newBuilder()
                                    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .setEndTime(Timestamp.newBuilder().build())
                                    +   *           .build();
                                    +   *   ApiFuture future =
                                    +   *       monitoringClient.listFindingSummariesPagedCallable().futureCall(request);
                                    +   *   // Do something.
                                    +   *   for (FindingSummary element : future.get().iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + */ + public final UnaryCallable + listFindingSummariesPagedCallable() { + return stub.listFindingSummariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the finding summary by category for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListFindingSummariesRequest request =
                                    +   *       ListFindingSummariesRequest.newBuilder()
                                    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .setEndTime(Timestamp.newBuilder().build())
                                    +   *           .build();
                                    +   *   while (true) {
                                    +   *     ListFindingSummariesResponse response =
                                    +   *         monitoringClient.listFindingSummariesCallable().call(request);
                                    +   *     for (FindingSummary element : response.getFindingSummariesList()) {
                                    +   *       // doThingsWith(element);
                                    +   *     }
                                    +   *     String nextPageToken = response.getNextPageToken();
                                    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                    +   *     } else {
                                    +   *       break;
                                    +   *     }
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + */ + public final UnaryCallable + listFindingSummariesCallable() { + return stub.listFindingSummariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the framework compliance report for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   FrameworkComplianceReportName name =
                                    +   *       FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *           "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
                                    +   *   FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(name);
                                    +   * }
                                    +   * }
                                    + * + * @param name Required. The name of the framework compliance report to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FrameworkComplianceReport fetchFrameworkComplianceReport( + FrameworkComplianceReportName name) { + FetchFrameworkComplianceReportRequest request = + FetchFrameworkComplianceReportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return fetchFrameworkComplianceReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the framework compliance report for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   String name =
                                    +   *       FrameworkComplianceReportName.ofProjectLocationFrameworkComplianceReportName(
                                    +   *               "[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *           .toString();
                                    +   *   FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(name);
                                    +   * }
                                    +   * }
                                    + * + * @param name Required. The name of the framework compliance report to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FrameworkComplianceReport fetchFrameworkComplianceReport(String name) { + FetchFrameworkComplianceReportRequest request = + FetchFrameworkComplianceReportRequest.newBuilder().setName(name).build(); + return fetchFrameworkComplianceReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the framework compliance report for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   FetchFrameworkComplianceReportRequest request =
                                    +   *       FetchFrameworkComplianceReportRequest.newBuilder()
                                    +   *           .setName(
                                    +   *               FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *                       "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *                   .toString())
                                    +   *           .setEndTime(Timestamp.newBuilder().build())
                                    +   *           .build();
                                    +   *   FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(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 FrameworkComplianceReport fetchFrameworkComplianceReport( + FetchFrameworkComplianceReportRequest request) { + return fetchFrameworkComplianceReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the framework compliance report for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   FetchFrameworkComplianceReportRequest request =
                                    +   *       FetchFrameworkComplianceReportRequest.newBuilder()
                                    +   *           .setName(
                                    +   *               FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *                       "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *                   .toString())
                                    +   *           .setEndTime(Timestamp.newBuilder().build())
                                    +   *           .build();
                                    +   *   ApiFuture future =
                                    +   *       monitoringClient.fetchFrameworkComplianceReportCallable().futureCall(request);
                                    +   *   // Do something.
                                    +   *   FrameworkComplianceReport response = future.get();
                                    +   * }
                                    +   * }
                                    + */ + public final UnaryCallable + fetchFrameworkComplianceReportCallable() { + return stub.fetchFrameworkComplianceReportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the control compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   FrameworkComplianceReportName parent =
                                    +   *       FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *           "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
                                    +   *   for (ControlComplianceSummary element :
                                    +   *       monitoringClient.listControlComplianceSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework overview page. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListControlComplianceSummariesPagedResponse listControlComplianceSummaries( + FrameworkComplianceReportName parent) { + ListControlComplianceSummariesRequest request = + ListControlComplianceSummariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listControlComplianceSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the control compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   String parent =
                                    +   *       FrameworkComplianceReportName.ofProjectLocationFrameworkComplianceReportName(
                                    +   *               "[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *           .toString();
                                    +   *   for (ControlComplianceSummary element :
                                    +   *       monitoringClient.listControlComplianceSummaries(parent).iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + * + * @param parent Required. The parent scope for the framework overview page. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListControlComplianceSummariesPagedResponse listControlComplianceSummaries( + String parent) { + ListControlComplianceSummariesRequest request = + ListControlComplianceSummariesRequest.newBuilder().setParent(parent).build(); + return listControlComplianceSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the control compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListControlComplianceSummariesRequest request =
                                    +   *       ListControlComplianceSummariesRequest.newBuilder()
                                    +   *           .setParent(
                                    +   *               FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *                       "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *                   .toString())
                                    +   *           .setEndTime(Timestamp.newBuilder().build())
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .build();
                                    +   *   for (ControlComplianceSummary element :
                                    +   *       monitoringClient.listControlComplianceSummaries(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 ListControlComplianceSummariesPagedResponse listControlComplianceSummaries( + ListControlComplianceSummariesRequest request) { + return listControlComplianceSummariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the control compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListControlComplianceSummariesRequest request =
                                    +   *       ListControlComplianceSummariesRequest.newBuilder()
                                    +   *           .setParent(
                                    +   *               FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *                       "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *                   .toString())
                                    +   *           .setEndTime(Timestamp.newBuilder().build())
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .build();
                                    +   *   ApiFuture future =
                                    +   *       monitoringClient.listControlComplianceSummariesPagedCallable().futureCall(request);
                                    +   *   // Do something.
                                    +   *   for (ControlComplianceSummary element : future.get().iterateAll()) {
                                    +   *     // doThingsWith(element);
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + */ + public final UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesPagedCallable() { + return stub.listControlComplianceSummariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the control compliance summary for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListControlComplianceSummariesRequest request =
                                    +   *       ListControlComplianceSummariesRequest.newBuilder()
                                    +   *           .setParent(
                                    +   *               FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *                       "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *                   .toString())
                                    +   *           .setEndTime(Timestamp.newBuilder().build())
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .build();
                                    +   *   while (true) {
                                    +   *     ListControlComplianceSummariesResponse response =
                                    +   *         monitoringClient.listControlComplianceSummariesCallable().call(request);
                                    +   *     for (ControlComplianceSummary element : response.getControlComplianceSummariesList()) {
                                    +   *       // doThingsWith(element);
                                    +   *     }
                                    +   *     String nextPageToken = response.getNextPageToken();
                                    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                    +   *     } else {
                                    +   *       break;
                                    +   *     }
                                    +   *   }
                                    +   * }
                                    +   * }
                                    + */ + public final UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse> + listControlComplianceSummariesCallable() { + return stub.listControlComplianceSummariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the aggregated compliance report over time for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   FrameworkComplianceReportName name =
                                    +   *       FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *           "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
                                    +   *   AggregateFrameworkComplianceReportResponse response =
                                    +   *       monitoringClient.aggregateFrameworkComplianceReport(name);
                                    +   * }
                                    +   * }
                                    + * + * @param name Required. The name of the aggregated compliance report over time to retrieve. + *

                                    The supported format is: + * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AggregateFrameworkComplianceReportResponse aggregateFrameworkComplianceReport( + FrameworkComplianceReportName name) { + AggregateFrameworkComplianceReportRequest request = + AggregateFrameworkComplianceReportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return aggregateFrameworkComplianceReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the aggregated compliance report over time for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   String name =
                                    +   *       FrameworkComplianceReportName.ofProjectLocationFrameworkComplianceReportName(
                                    +   *               "[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *           .toString();
                                    +   *   AggregateFrameworkComplianceReportResponse response =
                                    +   *       monitoringClient.aggregateFrameworkComplianceReport(name);
                                    +   * }
                                    +   * }
                                    + * + * @param name Required. The name of the aggregated compliance report over time to retrieve. + *

                                    The supported format is: + * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AggregateFrameworkComplianceReportResponse aggregateFrameworkComplianceReport( + String name) { + AggregateFrameworkComplianceReportRequest request = + AggregateFrameworkComplianceReportRequest.newBuilder().setName(name).build(); + return aggregateFrameworkComplianceReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the aggregated compliance report over time for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   AggregateFrameworkComplianceReportRequest request =
                                    +   *       AggregateFrameworkComplianceReportRequest.newBuilder()
                                    +   *           .setName(
                                    +   *               FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *                       "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *                   .toString())
                                    +   *           .setInterval(Interval.newBuilder().build())
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .build();
                                    +   *   AggregateFrameworkComplianceReportResponse response =
                                    +   *       monitoringClient.aggregateFrameworkComplianceReport(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 AggregateFrameworkComplianceReportResponse aggregateFrameworkComplianceReport( + AggregateFrameworkComplianceReportRequest request) { + return aggregateFrameworkComplianceReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the aggregated compliance report over time for a given scope. + * + *

                                    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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   AggregateFrameworkComplianceReportRequest request =
                                    +   *       AggregateFrameworkComplianceReportRequest.newBuilder()
                                    +   *           .setName(
                                    +   *               FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    +   *                       "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]")
                                    +   *                   .toString())
                                    +   *           .setInterval(Interval.newBuilder().build())
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .build();
                                    +   *   ApiFuture future =
                                    +   *       monitoringClient.aggregateFrameworkComplianceReportCallable().futureCall(request);
                                    +   *   // Do something.
                                    +   *   AggregateFrameworkComplianceReportResponse response = future.get();
                                    +   * }
                                    +   * }
                                    + */ + public final UnaryCallable< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportCallable() { + return stub.aggregateFrameworkComplianceReportCallable(); + } + + // 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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListLocationsRequest request =
                                    +   *       ListLocationsRequest.newBuilder()
                                    +   *           .setName("name3373707")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .build();
                                    +   *   for (Location element : monitoringClient.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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListLocationsRequest request =
                                    +   *       ListLocationsRequest.newBuilder()
                                    +   *           .setName("name3373707")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .build();
                                    +   *   ApiFuture future =
                                    +   *       monitoringClient.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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   ListLocationsRequest request =
                                    +   *       ListLocationsRequest.newBuilder()
                                    +   *           .setName("name3373707")
                                    +   *           .setFilter("filter-1274492040")
                                    +   *           .setPageSize(883849137)
                                    +   *           .setPageToken("pageToken873572522")
                                    +   *           .build();
                                    +   *   while (true) {
                                    +   *     ListLocationsResponse response = monitoringClient.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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                    +   *   Location response = monitoringClient.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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                    +   *   ApiFuture future = monitoringClient.getLocationCallable().futureCall(request);
                                    +   *   // Do something.
                                    +   *   Location response = future.get();
                                    +   * }
                                    +   * }
                                    + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListFrameworkComplianceSummariesPagedResponse + extends AbstractPagedListResponse< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary, + ListFrameworkComplianceSummariesPage, + ListFrameworkComplianceSummariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFrameworkComplianceSummariesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFrameworkComplianceSummariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFrameworkComplianceSummariesPagedResponse( + ListFrameworkComplianceSummariesPage page) { + super(page, ListFrameworkComplianceSummariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFrameworkComplianceSummariesPage + extends AbstractPage< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary, + ListFrameworkComplianceSummariesPage> { + + private ListFrameworkComplianceSummariesPage( + PageContext< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary> + context, + ListFrameworkComplianceSummariesResponse response) { + super(context, response); + } + + private static ListFrameworkComplianceSummariesPage createEmptyPage() { + return new ListFrameworkComplianceSummariesPage(null, null); + } + + @Override + protected ListFrameworkComplianceSummariesPage createPage( + PageContext< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary> + context, + ListFrameworkComplianceSummariesResponse response) { + return new ListFrameworkComplianceSummariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFrameworkComplianceSummariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary, + ListFrameworkComplianceSummariesPage, + ListFrameworkComplianceSummariesFixedSizeCollection> { + + private ListFrameworkComplianceSummariesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFrameworkComplianceSummariesFixedSizeCollection createEmptyCollection() { + return new ListFrameworkComplianceSummariesFixedSizeCollection(null, 0); + } + + @Override + protected ListFrameworkComplianceSummariesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFrameworkComplianceSummariesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListFindingSummariesPagedResponse + extends AbstractPagedListResponse< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + FindingSummary, + ListFindingSummariesPage, + ListFindingSummariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFindingSummariesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFindingSummariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFindingSummariesPagedResponse(ListFindingSummariesPage page) { + super(page, ListFindingSummariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFindingSummariesPage + extends AbstractPage< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + FindingSummary, + ListFindingSummariesPage> { + + private ListFindingSummariesPage( + PageContext + context, + ListFindingSummariesResponse response) { + super(context, response); + } + + private static ListFindingSummariesPage createEmptyPage() { + return new ListFindingSummariesPage(null, null); + } + + @Override + protected ListFindingSummariesPage createPage( + PageContext + context, + ListFindingSummariesResponse response) { + return new ListFindingSummariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFindingSummariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + FindingSummary, + ListFindingSummariesPage, + ListFindingSummariesFixedSizeCollection> { + + private ListFindingSummariesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFindingSummariesFixedSizeCollection createEmptyCollection() { + return new ListFindingSummariesFixedSizeCollection(null, 0); + } + + @Override + protected ListFindingSummariesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFindingSummariesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListControlComplianceSummariesPagedResponse + extends AbstractPagedListResponse< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary, + ListControlComplianceSummariesPage, + ListControlComplianceSummariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListControlComplianceSummariesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListControlComplianceSummariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListControlComplianceSummariesPagedResponse(ListControlComplianceSummariesPage page) { + super(page, ListControlComplianceSummariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListControlComplianceSummariesPage + extends AbstractPage< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary, + ListControlComplianceSummariesPage> { + + private ListControlComplianceSummariesPage( + PageContext< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary> + context, + ListControlComplianceSummariesResponse response) { + super(context, response); + } + + private static ListControlComplianceSummariesPage createEmptyPage() { + return new ListControlComplianceSummariesPage(null, null); + } + + @Override + protected ListControlComplianceSummariesPage createPage( + PageContext< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary> + context, + ListControlComplianceSummariesResponse response) { + return new ListControlComplianceSummariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListControlComplianceSummariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary, + ListControlComplianceSummariesPage, + ListControlComplianceSummariesFixedSizeCollection> { + + private ListControlComplianceSummariesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListControlComplianceSummariesFixedSizeCollection createEmptyCollection() { + return new ListControlComplianceSummariesFixedSizeCollection(null, 0); + } + + @Override + protected ListControlComplianceSummariesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListControlComplianceSummariesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringSettings.java new file mode 100644 index 000000000000..42e16476cc00 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringSettings.java @@ -0,0 +1,321 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListControlComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFindingSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFrameworkComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.cloudsecuritycompliance.v1.stub.MonitoringStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MonitoringClient}. + * + *

                                    The default instance has everything set to sensible defaults: + * + *

                                      + *
                                    • The default service address (cloudsecuritycompliance.googleapis.com) and default port (443) + * are used. + *
                                    • Credentials are acquired automatically through Application Default Credentials. + *
                                    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                    + * + *

                                    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of fetchFrameworkComplianceReport: + * + *

                                    {@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
                                    + * MonitoringSettings.Builder monitoringSettingsBuilder = MonitoringSettings.newBuilder();
                                    + * monitoringSettingsBuilder
                                    + *     .fetchFrameworkComplianceReportSettings()
                                    + *     .setRetrySettings(
                                    + *         monitoringSettingsBuilder
                                    + *             .fetchFrameworkComplianceReportSettings()
                                    + *             .getRetrySettings()
                                    + *             .toBuilder()
                                    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                    + *             .setMaxAttempts(5)
                                    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                    + *             .setRetryDelayMultiplier(1.3)
                                    + *             .setRpcTimeoutMultiplier(1.5)
                                    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                    + *             .build());
                                    + * MonitoringSettings monitoringSettings = monitoringSettingsBuilder.build();
                                    + * }
                                    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class MonitoringSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listFrameworkComplianceSummaries. */ + public PagedCallSettings< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesSettings() { + return ((MonitoringStubSettings) getStubSettings()).listFrameworkComplianceSummariesSettings(); + } + + /** Returns the object with the settings used for calls to listFindingSummaries. */ + public PagedCallSettings< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + ListFindingSummariesPagedResponse> + listFindingSummariesSettings() { + return ((MonitoringStubSettings) getStubSettings()).listFindingSummariesSettings(); + } + + /** Returns the object with the settings used for calls to fetchFrameworkComplianceReport. */ + public UnaryCallSettings + fetchFrameworkComplianceReportSettings() { + return ((MonitoringStubSettings) getStubSettings()).fetchFrameworkComplianceReportSettings(); + } + + /** Returns the object with the settings used for calls to listControlComplianceSummaries. */ + public PagedCallSettings< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesSettings() { + return ((MonitoringStubSettings) getStubSettings()).listControlComplianceSummariesSettings(); + } + + /** Returns the object with the settings used for calls to aggregateFrameworkComplianceReport. */ + public UnaryCallSettings< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportSettings() { + return ((MonitoringStubSettings) getStubSettings()) + .aggregateFrameworkComplianceReportSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((MonitoringStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((MonitoringStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final MonitoringSettings create(MonitoringStubSettings stub) throws IOException { + return new MonitoringSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MonitoringStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MonitoringStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MonitoringStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MonitoringStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return MonitoringStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return MonitoringStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MonitoringStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MonitoringStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MonitoringSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MonitoringSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(MonitoringStubSettings.newBuilder(clientContext)); + } + + protected Builder(MonitoringSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MonitoringStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(MonitoringStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(MonitoringStubSettings.newHttpJsonBuilder()); + } + + public MonitoringStubSettings.Builder getStubSettingsBuilder() { + return ((MonitoringStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listFrameworkComplianceSummaries. */ + public PagedCallSettings.Builder< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesSettings() { + return getStubSettingsBuilder().listFrameworkComplianceSummariesSettings(); + } + + /** Returns the builder for the settings used for calls to listFindingSummaries. */ + public PagedCallSettings.Builder< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + ListFindingSummariesPagedResponse> + listFindingSummariesSettings() { + return getStubSettingsBuilder().listFindingSummariesSettings(); + } + + /** Returns the builder for the settings used for calls to fetchFrameworkComplianceReport. */ + public UnaryCallSettings.Builder< + FetchFrameworkComplianceReportRequest, FrameworkComplianceReport> + fetchFrameworkComplianceReportSettings() { + return getStubSettingsBuilder().fetchFrameworkComplianceReportSettings(); + } + + /** Returns the builder for the settings used for calls to listControlComplianceSummaries. */ + public PagedCallSettings.Builder< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesSettings() { + return getStubSettingsBuilder().listControlComplianceSummariesSettings(); + } + + /** + * Returns the builder for the settings used for calls to aggregateFrameworkComplianceReport. + */ + public UnaryCallSettings.Builder< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportSettings() { + return getStubSettingsBuilder().aggregateFrameworkComplianceReportSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public MonitoringSettings build() throws IOException { + return new MonitoringSettings(this); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/gapic_metadata.json b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/gapic_metadata.json index e44821b8dfa5..4e5c128adc6b 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/gapic_metadata.json +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/gapic_metadata.json @@ -5,6 +5,54 @@ "protoPackage": "google.cloud.cloudsecuritycompliance.v1", "libraryPackage": "com.google.cloud.cloudsecuritycompliance.v1", "services": { + "Audit": { + "clients": { + "grpc": { + "libraryClient": "AuditClient", + "rpcs": { + "CreateFrameworkAudit": { + "methods": ["createFrameworkAuditAsync", "createFrameworkAuditAsync", "createFrameworkAuditAsync", "createFrameworkAuditAsync", "createFrameworkAuditOperationCallable", "createFrameworkAuditCallable"] + }, + "GenerateFrameworkAuditScopeReport": { + "methods": ["generateFrameworkAuditScopeReport", "generateFrameworkAuditScopeReport", "generateFrameworkAuditScopeReportCallable"] + }, + "GetFrameworkAudit": { + "methods": ["getFrameworkAudit", "getFrameworkAudit", "getFrameworkAudit", "getFrameworkAuditCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListFrameworkAudits": { + "methods": ["listFrameworkAudits", "listFrameworkAudits", "listFrameworkAudits", "listFrameworkAudits", "listFrameworkAuditsPagedCallable", "listFrameworkAuditsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + } + } + } + } + }, + "CmEnrollmentService": { + "clients": { + "grpc": { + "libraryClient": "CmEnrollmentServiceClient", + "rpcs": { + "CalculateEffectiveCmEnrollment": { + "methods": ["calculateEffectiveCmEnrollment", "calculateEffectiveCmEnrollment", "calculateEffectiveCmEnrollment", "calculateEffectiveCmEnrollmentCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "UpdateCmEnrollment": { + "methods": ["updateCmEnrollment", "updateCmEnrollment", "updateCmEnrollmentCallable"] + } + } + } + } + }, "Config": { "clients": { "grpc": { @@ -82,6 +130,36 @@ } } } + }, + "Monitoring": { + "clients": { + "grpc": { + "libraryClient": "MonitoringClient", + "rpcs": { + "AggregateFrameworkComplianceReport": { + "methods": ["aggregateFrameworkComplianceReport", "aggregateFrameworkComplianceReport", "aggregateFrameworkComplianceReport", "aggregateFrameworkComplianceReportCallable"] + }, + "FetchFrameworkComplianceReport": { + "methods": ["fetchFrameworkComplianceReport", "fetchFrameworkComplianceReport", "fetchFrameworkComplianceReport", "fetchFrameworkComplianceReportCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListControlComplianceSummaries": { + "methods": ["listControlComplianceSummaries", "listControlComplianceSummaries", "listControlComplianceSummaries", "listControlComplianceSummariesPagedCallable", "listControlComplianceSummariesCallable"] + }, + "ListFindingSummaries": { + "methods": ["listFindingSummaries", "listFindingSummaries", "listFindingSummaries", "listFindingSummaries", "listFindingSummaries", "listFindingSummariesPagedCallable", "listFindingSummariesCallable"] + }, + "ListFrameworkComplianceSummaries": { + "methods": ["listFrameworkComplianceSummaries", "listFrameworkComplianceSummaries", "listFrameworkComplianceSummaries", "listFrameworkComplianceSummaries", "listFrameworkComplianceSummaries", "listFrameworkComplianceSummariesPagedCallable", "listFrameworkComplianceSummariesCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + } + } + } + } } } } \ No newline at end of file diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/package-info.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/package-info.java index 72835789fb9d..f016f06fe5e9 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/package-info.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/package-info.java @@ -19,6 +19,48 @@ * *

                                    The interfaces provided are listed below, along with usage samples. * + *

                                    ======================= AuditClient ======================= + * + *

                                    Service Description: Service describing handlers for resources + * + *

                                    Sample for AuditClient: + * + *

                                    {@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 (AuditClient auditClient = AuditClient.create()) {
                                    + *   String scope = "scope109264468";
                                    + *   GenerateFrameworkAuditScopeReportRequest.Format reportFormat =
                                    + *       GenerateFrameworkAuditScopeReportRequest.Format.forNumber(0);
                                    + *   String complianceFramework = "complianceFramework-1808314333";
                                    + *   GenerateFrameworkAuditScopeReportResponse response =
                                    + *       auditClient.generateFrameworkAuditScopeReport(scope, reportFormat, complianceFramework);
                                    + * }
                                    + * }
                                    + * + *

                                    ======================= CmEnrollmentServiceClient ======================= + * + *

                                    Service Description: Service describing CmEnrollment related RPCs for complianceManager. + * + *

                                    Sample for CmEnrollmentServiceClient: + * + *

                                    {@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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) {
                                    + *   CmEnrollment cmEnrollment = CmEnrollment.newBuilder().build();
                                    + *   FieldMask updateMask = FieldMask.newBuilder().build();
                                    + *   CmEnrollment response =
                                    + *       cmEnrollmentServiceClient.updateCmEnrollment(cmEnrollment, updateMask);
                                    + * }
                                    + * }
                                    + * *

                                    ======================= ConfigClient ======================= * *

                                    Service Description: Config Service manages compliance frameworks, cloud controls, and their @@ -57,6 +99,26 @@ * FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name); * } * } + * + *

                                    ======================= MonitoringClient ======================= + * + *

                                    Service Description: Service describing handlers for resources + * + *

                                    Sample for MonitoringClient: + * + *

                                    {@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 (MonitoringClient monitoringClient = MonitoringClient.create()) {
                                    + *   FrameworkComplianceReportName name =
                                    + *       FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName(
                                    + *           "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
                                    + *   FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(name);
                                    + * }
                                    + * }
                                    */ @Generated("by gapic-generator-java") package com.google.cloud.cloudsecuritycompliance.v1; diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStub.java new file mode 100644 index 000000000000..38e5e9adacac --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStub.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListFrameworkAuditsPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse; +import com.google.cloud.cloudsecuritycompliance.v1.OperationMetadata; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Audit service API. + * + *

                                    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class AuditStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateFrameworkAuditScopeReportCallable()"); + } + + public OperationCallable + createFrameworkAuditOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createFrameworkAuditOperationCallable()"); + } + + public UnaryCallable createFrameworkAuditCallable() { + throw new UnsupportedOperationException("Not implemented: createFrameworkAuditCallable()"); + } + + public UnaryCallable + listFrameworkAuditsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFrameworkAuditsPagedCallable()"); + } + + public UnaryCallable + listFrameworkAuditsCallable() { + throw new UnsupportedOperationException("Not implemented: listFrameworkAuditsCallable()"); + } + + public UnaryCallable getFrameworkAuditCallable() { + throw new UnsupportedOperationException("Not implemented: getFrameworkAuditCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStubSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStubSettings.java new file mode 100644 index 000000000000..2d7506af5e0b --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStubSettings.java @@ -0,0 +1,709 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListFrameworkAuditsPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse; +import com.google.cloud.cloudsecuritycompliance.v1.OperationMetadata; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AuditStub}. + * + *

                                    The default instance has everything set to sensible defaults: + * + *

                                      + *
                                    • The default service address (cloudsecuritycompliance.googleapis.com) and default port (443) + * are used. + *
                                    • Credentials are acquired automatically through Application Default Credentials. + *
                                    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                    + * + *

                                    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of generateFrameworkAuditScopeReport: + * + *

                                    {@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
                                    + * AuditStubSettings.Builder auditSettingsBuilder = AuditStubSettings.newBuilder();
                                    + * auditSettingsBuilder
                                    + *     .generateFrameworkAuditScopeReportSettings()
                                    + *     .setRetrySettings(
                                    + *         auditSettingsBuilder
                                    + *             .generateFrameworkAuditScopeReportSettings()
                                    + *             .getRetrySettings()
                                    + *             .toBuilder()
                                    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                    + *             .setMaxAttempts(5)
                                    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                    + *             .setRetryDelayMultiplier(1.3)
                                    + *             .setRpcTimeoutMultiplier(1.5)
                                    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                    + *             .build());
                                    + * AuditStubSettings auditSettings = auditSettingsBuilder.build();
                                    + * }
                                    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

                                    To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createFrameworkAudit: + * + *

                                    {@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
                                    + * AuditStubSettings.Builder auditSettingsBuilder = AuditStubSettings.newBuilder();
                                    + * TimedRetryAlgorithm timedRetryAlgorithm =
                                    + *     OperationalTimedPollAlgorithm.create(
                                    + *         RetrySettings.newBuilder()
                                    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                    + *             .setRetryDelayMultiplier(1.5)
                                    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                    + *             .build());
                                    + * auditSettingsBuilder
                                    + *     .createClusterOperationSettings()
                                    + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                    + *     .build();
                                    + * }
                                    + */ +@Generated("by gapic-generator-java") +public class AuditStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportSettings; + private final UnaryCallSettings + createFrameworkAuditSettings; + private final OperationCallSettings< + CreateFrameworkAuditRequest, FrameworkAudit, OperationMetadata> + createFrameworkAuditOperationSettings; + private final PagedCallSettings< + ListFrameworkAuditsRequest, ListFrameworkAuditsResponse, ListFrameworkAuditsPagedResponse> + listFrameworkAuditsSettings; + private final UnaryCallSettings + getFrameworkAuditSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListFrameworkAuditsRequest, ListFrameworkAuditsResponse, FrameworkAudit> + LIST_FRAMEWORK_AUDITS_PAGE_STR_DESC = + new PagedListDescriptor< + ListFrameworkAuditsRequest, ListFrameworkAuditsResponse, FrameworkAudit>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFrameworkAuditsRequest injectToken( + ListFrameworkAuditsRequest payload, String token) { + return ListFrameworkAuditsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFrameworkAuditsRequest injectPageSize( + ListFrameworkAuditsRequest payload, int pageSize) { + return ListFrameworkAuditsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFrameworkAuditsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFrameworkAuditsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListFrameworkAuditsResponse payload) { + return payload.getFrameworkAuditsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListFrameworkAuditsRequest, ListFrameworkAuditsResponse, ListFrameworkAuditsPagedResponse> + LIST_FRAMEWORK_AUDITS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFrameworkAuditsRequest, + ListFrameworkAuditsResponse, + ListFrameworkAuditsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFrameworkAuditsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_FRAMEWORK_AUDITS_PAGE_STR_DESC, request, context); + return ListFrameworkAuditsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to generateFrameworkAuditScopeReport. */ + public UnaryCallSettings< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportSettings() { + return generateFrameworkAuditScopeReportSettings; + } + + /** Returns the object with the settings used for calls to createFrameworkAudit. */ + public UnaryCallSettings createFrameworkAuditSettings() { + return createFrameworkAuditSettings; + } + + /** Returns the object with the settings used for calls to createFrameworkAudit. */ + public OperationCallSettings + createFrameworkAuditOperationSettings() { + return createFrameworkAuditOperationSettings; + } + + /** Returns the object with the settings used for calls to listFrameworkAudits. */ + public PagedCallSettings< + ListFrameworkAuditsRequest, ListFrameworkAuditsResponse, ListFrameworkAuditsPagedResponse> + listFrameworkAuditsSettings() { + return listFrameworkAuditsSettings; + } + + /** Returns the object with the settings used for calls to getFrameworkAudit. */ + public UnaryCallSettings getFrameworkAuditSettings() { + return getFrameworkAuditSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public AuditStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAuditStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAuditStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "cloudsecuritycompliance"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "cloudsecuritycompliance.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "cloudsecuritycompliance.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(AuditStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(AuditStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AuditStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AuditStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + generateFrameworkAuditScopeReportSettings = + settingsBuilder.generateFrameworkAuditScopeReportSettings().build(); + createFrameworkAuditSettings = settingsBuilder.createFrameworkAuditSettings().build(); + createFrameworkAuditOperationSettings = + settingsBuilder.createFrameworkAuditOperationSettings().build(); + listFrameworkAuditsSettings = settingsBuilder.listFrameworkAuditsSettings().build(); + getFrameworkAuditSettings = settingsBuilder.getFrameworkAuditSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for AuditStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportSettings; + private final UnaryCallSettings.Builder + createFrameworkAuditSettings; + private final OperationCallSettings.Builder< + CreateFrameworkAuditRequest, FrameworkAudit, OperationMetadata> + createFrameworkAuditOperationSettings; + private final PagedCallSettings.Builder< + ListFrameworkAuditsRequest, + ListFrameworkAuditsResponse, + ListFrameworkAuditsPagedResponse> + listFrameworkAuditsSettings; + private final UnaryCallSettings.Builder + getFrameworkAuditSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + generateFrameworkAuditScopeReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFrameworkAuditSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFrameworkAuditOperationSettings = OperationCallSettings.newBuilder(); + listFrameworkAuditsSettings = + PagedCallSettings.newBuilder(LIST_FRAMEWORK_AUDITS_PAGE_STR_FACT); + getFrameworkAuditSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + generateFrameworkAuditScopeReportSettings, + createFrameworkAuditSettings, + listFrameworkAuditsSettings, + getFrameworkAuditSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(AuditStubSettings settings) { + super(settings); + + generateFrameworkAuditScopeReportSettings = + settings.generateFrameworkAuditScopeReportSettings.toBuilder(); + createFrameworkAuditSettings = settings.createFrameworkAuditSettings.toBuilder(); + createFrameworkAuditOperationSettings = + settings.createFrameworkAuditOperationSettings.toBuilder(); + listFrameworkAuditsSettings = settings.listFrameworkAuditsSettings.toBuilder(); + getFrameworkAuditSettings = settings.getFrameworkAuditSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + generateFrameworkAuditScopeReportSettings, + createFrameworkAuditSettings, + listFrameworkAuditsSettings, + getFrameworkAuditSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .generateFrameworkAuditScopeReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createFrameworkAuditSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listFrameworkAuditsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getFrameworkAuditSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createFrameworkAuditOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(FrameworkAudit.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to generateFrameworkAuditScopeReport. */ + public UnaryCallSettings.Builder< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportSettings() { + return generateFrameworkAuditScopeReportSettings; + } + + /** Returns the builder for the settings used for calls to createFrameworkAudit. */ + public UnaryCallSettings.Builder + createFrameworkAuditSettings() { + return createFrameworkAuditSettings; + } + + /** Returns the builder for the settings used for calls to createFrameworkAudit. */ + public OperationCallSettings.Builder< + CreateFrameworkAuditRequest, FrameworkAudit, OperationMetadata> + createFrameworkAuditOperationSettings() { + return createFrameworkAuditOperationSettings; + } + + /** Returns the builder for the settings used for calls to listFrameworkAudits. */ + public PagedCallSettings.Builder< + ListFrameworkAuditsRequest, + ListFrameworkAuditsResponse, + ListFrameworkAuditsPagedResponse> + listFrameworkAuditsSettings() { + return listFrameworkAuditsSettings; + } + + /** Returns the builder for the settings used for calls to getFrameworkAudit. */ + public UnaryCallSettings.Builder + getFrameworkAuditSettings() { + return getFrameworkAuditSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public AuditStubSettings build() throws IOException { + return new AuditStubSettings(this); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStub.java new file mode 100644 index 000000000000..1fe2ef85ce1c --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStub.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment; +import com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the CmEnrollmentService service API. + * + *

                                    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class CmEnrollmentServiceStub implements BackgroundResource { + + public UnaryCallable updateCmEnrollmentCallable() { + throw new UnsupportedOperationException("Not implemented: updateCmEnrollmentCallable()"); + } + + public UnaryCallable< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentCallable() { + throw new UnsupportedOperationException( + "Not implemented: calculateEffectiveCmEnrollmentCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStubSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStubSettings.java new file mode 100644 index 000000000000..07a448d0059e --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStubSettings.java @@ -0,0 +1,502 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment; +import com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CmEnrollmentServiceStub}. + * + *

                                    The default instance has everything set to sensible defaults: + * + *

                                      + *
                                    • The default service address (cloudsecuritycompliance.googleapis.com) and default port (443) + * are used. + *
                                    • Credentials are acquired automatically through Application Default Credentials. + *
                                    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                    + * + *

                                    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of updateCmEnrollment: + * + *

                                    {@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
                                    + * CmEnrollmentServiceStubSettings.Builder cmEnrollmentServiceSettingsBuilder =
                                    + *     CmEnrollmentServiceStubSettings.newBuilder();
                                    + * cmEnrollmentServiceSettingsBuilder
                                    + *     .updateCmEnrollmentSettings()
                                    + *     .setRetrySettings(
                                    + *         cmEnrollmentServiceSettingsBuilder
                                    + *             .updateCmEnrollmentSettings()
                                    + *             .getRetrySettings()
                                    + *             .toBuilder()
                                    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                    + *             .setMaxAttempts(5)
                                    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                    + *             .setRetryDelayMultiplier(1.3)
                                    + *             .setRpcTimeoutMultiplier(1.5)
                                    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                    + *             .build());
                                    + * CmEnrollmentServiceStubSettings cmEnrollmentServiceSettings =
                                    + *     cmEnrollmentServiceSettingsBuilder.build();
                                    + * }
                                    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class CmEnrollmentServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + updateCmEnrollmentSettings; + private final UnaryCallSettings< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to updateCmEnrollment. */ + public UnaryCallSettings updateCmEnrollmentSettings() { + return updateCmEnrollmentSettings; + } + + /** Returns the object with the settings used for calls to calculateEffectiveCmEnrollment. */ + public UnaryCallSettings< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentSettings() { + return calculateEffectiveCmEnrollmentSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public CmEnrollmentServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCmEnrollmentServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCmEnrollmentServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "cloudsecuritycompliance"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "cloudsecuritycompliance.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "cloudsecuritycompliance.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CmEnrollmentServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CmEnrollmentServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CmEnrollmentServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CmEnrollmentServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + updateCmEnrollmentSettings = settingsBuilder.updateCmEnrollmentSettings().build(); + calculateEffectiveCmEnrollmentSettings = + settingsBuilder.calculateEffectiveCmEnrollmentSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for CmEnrollmentServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + updateCmEnrollmentSettings; + private final UnaryCallSettings.Builder< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + updateCmEnrollmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + calculateEffectiveCmEnrollmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateCmEnrollmentSettings, + calculateEffectiveCmEnrollmentSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(CmEnrollmentServiceStubSettings settings) { + super(settings); + + updateCmEnrollmentSettings = settings.updateCmEnrollmentSettings.toBuilder(); + calculateEffectiveCmEnrollmentSettings = + settings.calculateEffectiveCmEnrollmentSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateCmEnrollmentSettings, + calculateEffectiveCmEnrollmentSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .updateCmEnrollmentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .calculateEffectiveCmEnrollmentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to updateCmEnrollment. */ + public UnaryCallSettings.Builder + updateCmEnrollmentSettings() { + return updateCmEnrollmentSettings; + } + + /** Returns the builder for the settings used for calls to calculateEffectiveCmEnrollment. */ + public UnaryCallSettings.Builder< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentSettings() { + return calculateEffectiveCmEnrollmentSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public CmEnrollmentServiceStubSettings build() throws IOException { + return new CmEnrollmentServiceStubSettings(this); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcAuditCallableFactory.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcAuditCallableFactory.java new file mode 100644 index 000000000000..e5c825b9dedb --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcAuditCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Audit service API. + * + *

                                    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcAuditCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcAuditStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcAuditStub.java new file mode 100644 index 000000000000..45a13ee330dd --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcAuditStub.java @@ -0,0 +1,390 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListFrameworkAuditsPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse; +import com.google.cloud.cloudsecuritycompliance.v1.OperationMetadata; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Audit service API. + * + *

                                    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcAuditStub extends AuditStub { + private static final MethodDescriptor< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Audit/GenerateFrameworkAuditScopeReport") + .setRequestMarshaller( + ProtoUtils.marshaller( + GenerateFrameworkAuditScopeReportRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + GenerateFrameworkAuditScopeReportResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createFrameworkAuditMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Audit/CreateFrameworkAudit") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateFrameworkAuditRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listFrameworkAuditsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Audit/ListFrameworkAudits") + .setRequestMarshaller( + ProtoUtils.marshaller(ListFrameworkAuditsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFrameworkAuditsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getFrameworkAuditMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.cloudsecuritycompliance.v1.Audit/GetFrameworkAudit") + .setRequestMarshaller( + ProtoUtils.marshaller(GetFrameworkAuditRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(FrameworkAudit.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportCallable; + private final UnaryCallable createFrameworkAuditCallable; + private final OperationCallable + createFrameworkAuditOperationCallable; + private final UnaryCallable + listFrameworkAuditsCallable; + private final UnaryCallable + listFrameworkAuditsPagedCallable; + private final UnaryCallable getFrameworkAuditCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAuditStub create(AuditStubSettings settings) throws IOException { + return new GrpcAuditStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAuditStub create(ClientContext clientContext) throws IOException { + return new GrpcAuditStub(AuditStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAuditStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAuditStub( + AuditStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAuditStub, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected GrpcAuditStub(AuditStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcAuditCallableFactory()); + } + + /** + * Constructs an instance of GrpcAuditStub, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected GrpcAuditStub( + AuditStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(generateFrameworkAuditScopeReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("scope", String.valueOf(request.getScope())); + return builder.build(); + }) + .build(); + GrpcCallSettings createFrameworkAuditTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFrameworkAuditMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listFrameworkAuditsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFrameworkAuditsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getFrameworkAuditTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFrameworkAuditMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.generateFrameworkAuditScopeReportCallable = + callableFactory.createUnaryCallable( + generateFrameworkAuditScopeReportTransportSettings, + settings.generateFrameworkAuditScopeReportSettings(), + clientContext); + this.createFrameworkAuditCallable = + callableFactory.createUnaryCallable( + createFrameworkAuditTransportSettings, + settings.createFrameworkAuditSettings(), + clientContext); + this.createFrameworkAuditOperationCallable = + callableFactory.createOperationCallable( + createFrameworkAuditTransportSettings, + settings.createFrameworkAuditOperationSettings(), + clientContext, + operationsStub); + this.listFrameworkAuditsCallable = + callableFactory.createUnaryCallable( + listFrameworkAuditsTransportSettings, + settings.listFrameworkAuditsSettings(), + clientContext); + this.listFrameworkAuditsPagedCallable = + callableFactory.createPagedCallable( + listFrameworkAuditsTransportSettings, + settings.listFrameworkAuditsSettings(), + clientContext); + this.getFrameworkAuditCallable = + callableFactory.createUnaryCallable( + getFrameworkAuditTransportSettings, + settings.getFrameworkAuditSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportCallable() { + return generateFrameworkAuditScopeReportCallable; + } + + @Override + public UnaryCallable createFrameworkAuditCallable() { + return createFrameworkAuditCallable; + } + + @Override + public OperationCallable + createFrameworkAuditOperationCallable() { + return createFrameworkAuditOperationCallable; + } + + @Override + public UnaryCallable + listFrameworkAuditsCallable() { + return listFrameworkAuditsCallable; + } + + @Override + public UnaryCallable + listFrameworkAuditsPagedCallable() { + return listFrameworkAuditsPagedCallable; + } + + @Override + public UnaryCallable getFrameworkAuditCallable() { + return getFrameworkAuditCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcCmEnrollmentServiceCallableFactory.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcCmEnrollmentServiceCallableFactory.java new file mode 100644 index 000000000000..c3b1cfcf2a8e --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcCmEnrollmentServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the CmEnrollmentService service API. + * + *

                                    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcCmEnrollmentServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcCmEnrollmentServiceStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcCmEnrollmentServiceStub.java new file mode 100644 index 000000000000..e4690180b19b --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcCmEnrollmentServiceStub.java @@ -0,0 +1,290 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment; +import com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the CmEnrollmentService service API. + * + *

                                    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcCmEnrollmentServiceStub extends CmEnrollmentServiceStub { + private static final MethodDescriptor + updateCmEnrollmentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService/UpdateCmEnrollment") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCmEnrollmentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CmEnrollment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService/CalculateEffectiveCmEnrollment") + .setRequestMarshaller( + ProtoUtils.marshaller(CalculateEffectiveCmEnrollmentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + CalculateEffectiveCmEnrollmentResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable updateCmEnrollmentCallable; + private final UnaryCallable< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCmEnrollmentServiceStub create(CmEnrollmentServiceStubSettings settings) + throws IOException { + return new GrpcCmEnrollmentServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCmEnrollmentServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcCmEnrollmentServiceStub( + CmEnrollmentServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCmEnrollmentServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCmEnrollmentServiceStub( + CmEnrollmentServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCmEnrollmentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcCmEnrollmentServiceStub( + CmEnrollmentServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcCmEnrollmentServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcCmEnrollmentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcCmEnrollmentServiceStub( + CmEnrollmentServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings updateCmEnrollmentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCmEnrollmentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "cm_enrollment.name", String.valueOf(request.getCmEnrollment().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + calculateEffectiveCmEnrollmentTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(calculateEffectiveCmEnrollmentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.updateCmEnrollmentCallable = + callableFactory.createUnaryCallable( + updateCmEnrollmentTransportSettings, + settings.updateCmEnrollmentSettings(), + clientContext); + this.calculateEffectiveCmEnrollmentCallable = + callableFactory.createUnaryCallable( + calculateEffectiveCmEnrollmentTransportSettings, + settings.calculateEffectiveCmEnrollmentSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable updateCmEnrollmentCallable() { + return updateCmEnrollmentCallable; + } + + @Override + public UnaryCallable< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentCallable() { + return calculateEffectiveCmEnrollmentCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcMonitoringCallableFactory.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcMonitoringCallableFactory.java new file mode 100644 index 000000000000..753c918b837d --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcMonitoringCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Monitoring service API. + * + *

                                    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcMonitoringCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcMonitoringStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcMonitoringStub.java new file mode 100644 index 000000000000..04e2a10637b3 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/GrpcMonitoringStub.java @@ -0,0 +1,479 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListControlComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFindingSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFrameworkComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Monitoring service API. + * + *

                                    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcMonitoringStub extends MonitoringStub { + private static final MethodDescriptor< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/ListFrameworkComplianceSummaries") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListFrameworkComplianceSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListFrameworkComplianceSummariesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listFindingSummariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/ListFindingSummaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListFindingSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFindingSummariesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + FetchFrameworkComplianceReportRequest, FrameworkComplianceReport> + fetchFrameworkComplianceReportMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/FetchFrameworkComplianceReport") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchFrameworkComplianceReportRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FrameworkComplianceReport.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse> + listControlComplianceSummariesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/ListControlComplianceSummaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListControlComplianceSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListControlComplianceSummariesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/AggregateFrameworkComplianceReport") + .setRequestMarshaller( + ProtoUtils.marshaller( + AggregateFrameworkComplianceReportRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + AggregateFrameworkComplianceReportResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesCallable; + private final UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesPagedCallable; + private final UnaryCallable + listFindingSummariesCallable; + private final UnaryCallable + listFindingSummariesPagedCallable; + private final UnaryCallable + fetchFrameworkComplianceReportCallable; + private final UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse> + listControlComplianceSummariesCallable; + private final UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesPagedCallable; + private final UnaryCallable< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcMonitoringStub create(MonitoringStubSettings settings) + throws IOException { + return new GrpcMonitoringStub(settings, ClientContext.create(settings)); + } + + public static final GrpcMonitoringStub create(ClientContext clientContext) throws IOException { + return new GrpcMonitoringStub(MonitoringStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcMonitoringStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcMonitoringStub( + MonitoringStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcMonitoringStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcMonitoringStub(MonitoringStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcMonitoringCallableFactory()); + } + + /** + * Constructs an instance of GrpcMonitoringStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcMonitoringStub( + MonitoringStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listFrameworkComplianceSummariesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listFindingSummariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFindingSummariesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + fetchFrameworkComplianceReportTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(fetchFrameworkComplianceReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listControlComplianceSummariesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listControlComplianceSummariesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(aggregateFrameworkComplianceReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listFrameworkComplianceSummariesCallable = + callableFactory.createUnaryCallable( + listFrameworkComplianceSummariesTransportSettings, + settings.listFrameworkComplianceSummariesSettings(), + clientContext); + this.listFrameworkComplianceSummariesPagedCallable = + callableFactory.createPagedCallable( + listFrameworkComplianceSummariesTransportSettings, + settings.listFrameworkComplianceSummariesSettings(), + clientContext); + this.listFindingSummariesCallable = + callableFactory.createUnaryCallable( + listFindingSummariesTransportSettings, + settings.listFindingSummariesSettings(), + clientContext); + this.listFindingSummariesPagedCallable = + callableFactory.createPagedCallable( + listFindingSummariesTransportSettings, + settings.listFindingSummariesSettings(), + clientContext); + this.fetchFrameworkComplianceReportCallable = + callableFactory.createUnaryCallable( + fetchFrameworkComplianceReportTransportSettings, + settings.fetchFrameworkComplianceReportSettings(), + clientContext); + this.listControlComplianceSummariesCallable = + callableFactory.createUnaryCallable( + listControlComplianceSummariesTransportSettings, + settings.listControlComplianceSummariesSettings(), + clientContext); + this.listControlComplianceSummariesPagedCallable = + callableFactory.createPagedCallable( + listControlComplianceSummariesTransportSettings, + settings.listControlComplianceSummariesSettings(), + clientContext); + this.aggregateFrameworkComplianceReportCallable = + callableFactory.createUnaryCallable( + aggregateFrameworkComplianceReportTransportSettings, + settings.aggregateFrameworkComplianceReportSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesCallable() { + return listFrameworkComplianceSummariesCallable; + } + + @Override + public UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesPagedCallable() { + return listFrameworkComplianceSummariesPagedCallable; + } + + @Override + public UnaryCallable + listFindingSummariesCallable() { + return listFindingSummariesCallable; + } + + @Override + public UnaryCallable + listFindingSummariesPagedCallable() { + return listFindingSummariesPagedCallable; + } + + @Override + public UnaryCallable + fetchFrameworkComplianceReportCallable() { + return fetchFrameworkComplianceReportCallable; + } + + @Override + public UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse> + listControlComplianceSummariesCallable() { + return listControlComplianceSummariesCallable; + } + + @Override + public UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesPagedCallable() { + return listControlComplianceSummariesPagedCallable; + } + + @Override + public UnaryCallable< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportCallable() { + return aggregateFrameworkComplianceReportCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditCallableFactory.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditCallableFactory.java new file mode 100644 index 000000000000..4173cbe4e126 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Audit service API. + * + *

                                    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAuditCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditStub.java new file mode 100644 index 000000000000..10b3e2217d2b --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditStub.java @@ -0,0 +1,620 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListFrameworkAuditsPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListLocationsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse; +import com.google.cloud.cloudsecuritycompliance.v1.OperationMetadata; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Audit service API. + * + *

                                    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAuditStub extends AuditStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(FrameworkAudit.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Audit/GenerateFrameworkAuditScopeReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{scope=folders/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "scope", request.getScope()); + return fields; + }) + .setAdditionalPaths( + "/v1/{scope=projects/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport", + "/v1/{scope=organizations/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport") + .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().clearScope().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + GenerateFrameworkAuditScopeReportResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createFrameworkAuditMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Audit/CreateFrameworkAudit") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/locations/*}/frameworkAudits", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/locations/*}/frameworkAudits", + "/v1/{parent=projects/*/locations/*}/frameworkAudits") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "frameworkAuditId", request.getFrameworkAuditId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("frameworkAudit", request.getFrameworkAudit(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateFrameworkAuditRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listFrameworkAuditsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Audit/ListFrameworkAudits") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/locations/*}/frameworkAudits", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/locations/*}/frameworkAudits", + "/v1/{parent=projects/*/locations/*}/frameworkAudits") + .setQueryParamsExtractor( + request -> { + 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(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListFrameworkAuditsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getFrameworkAuditMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.cloudsecuritycompliance.v1.Audit/GetFrameworkAudit") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*/frameworkAudits/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/locations/*/frameworkAudits/*}", + "/v1/{name=projects/*/locations/*/frameworkAudits/*}") + .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(FrameworkAudit.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*}/locations", + 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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*}", + 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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportCallable; + private final UnaryCallable createFrameworkAuditCallable; + private final OperationCallable + createFrameworkAuditOperationCallable; + private final UnaryCallable + listFrameworkAuditsCallable; + private final UnaryCallable + listFrameworkAuditsPagedCallable; + private final UnaryCallable getFrameworkAuditCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAuditStub create(AuditStubSettings settings) throws IOException { + return new HttpJsonAuditStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAuditStub create(ClientContext clientContext) throws IOException { + return new HttpJsonAuditStub(AuditStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAuditStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAuditStub( + AuditStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAuditStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonAuditStub(AuditStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonAuditCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAuditStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonAuditStub( + AuditStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=organizations/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=organizations/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=organizations/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=organizations/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateFrameworkAuditScopeReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("scope", String.valueOf(request.getScope())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createFrameworkAuditTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFrameworkAuditMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listFrameworkAuditsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listFrameworkAuditsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getFrameworkAuditTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFrameworkAuditMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.generateFrameworkAuditScopeReportCallable = + callableFactory.createUnaryCallable( + generateFrameworkAuditScopeReportTransportSettings, + settings.generateFrameworkAuditScopeReportSettings(), + clientContext); + this.createFrameworkAuditCallable = + callableFactory.createUnaryCallable( + createFrameworkAuditTransportSettings, + settings.createFrameworkAuditSettings(), + clientContext); + this.createFrameworkAuditOperationCallable = + callableFactory.createOperationCallable( + createFrameworkAuditTransportSettings, + settings.createFrameworkAuditOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listFrameworkAuditsCallable = + callableFactory.createUnaryCallable( + listFrameworkAuditsTransportSettings, + settings.listFrameworkAuditsSettings(), + clientContext); + this.listFrameworkAuditsPagedCallable = + callableFactory.createPagedCallable( + listFrameworkAuditsTransportSettings, + settings.listFrameworkAuditsSettings(), + clientContext); + this.getFrameworkAuditCallable = + callableFactory.createUnaryCallable( + getFrameworkAuditTransportSettings, + settings.getFrameworkAuditSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(generateFrameworkAuditScopeReportMethodDescriptor); + methodDescriptors.add(createFrameworkAuditMethodDescriptor); + methodDescriptors.add(listFrameworkAuditsMethodDescriptor); + methodDescriptors.add(getFrameworkAuditMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable< + GenerateFrameworkAuditScopeReportRequest, GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReportCallable() { + return generateFrameworkAuditScopeReportCallable; + } + + @Override + public UnaryCallable createFrameworkAuditCallable() { + return createFrameworkAuditCallable; + } + + @Override + public OperationCallable + createFrameworkAuditOperationCallable() { + return createFrameworkAuditOperationCallable; + } + + @Override + public UnaryCallable + listFrameworkAuditsCallable() { + return listFrameworkAuditsCallable; + } + + @Override + public UnaryCallable + listFrameworkAuditsPagedCallable() { + return listFrameworkAuditsPagedCallable; + } + + @Override + public UnaryCallable getFrameworkAuditCallable() { + return getFrameworkAuditCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceCallableFactory.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceCallableFactory.java new file mode 100644 index 000000000000..42371e55e294 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CmEnrollmentService service API. + * + *

                                    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonCmEnrollmentServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceStub.java new file mode 100644 index 000000000000..f09867d7d896 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceStub.java @@ -0,0 +1,416 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment; +import com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CmEnrollmentService service API. + * + *

                                    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonCmEnrollmentServiceStub extends CmEnrollmentServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + updateCmEnrollmentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService/UpdateCmEnrollment") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{cmEnrollment.name=organizations/*/locations/*/cmEnrollment}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "cmEnrollment.name", request.getCmEnrollment().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{cmEnrollment.name=folders/*/locations/*/cmEnrollment}", + "/v1/{cmEnrollment.name=projects/*/locations/*/cmEnrollment}") + .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("cmEnrollment", request.getCmEnrollment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CmEnrollment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService/CalculateEffectiveCmEnrollment") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*/cmEnrollment}:calculate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/locations/*/cmEnrollment}:calculate", + "/v1/{name=projects/*/locations/*/cmEnrollment}:calculate") + .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( + CalculateEffectiveCmEnrollmentResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*}/locations", + 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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*}", + 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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable updateCmEnrollmentCallable; + private final UnaryCallable< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCmEnrollmentServiceStub create( + CmEnrollmentServiceStubSettings settings) throws IOException { + return new HttpJsonCmEnrollmentServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCmEnrollmentServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCmEnrollmentServiceStub( + CmEnrollmentServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCmEnrollmentServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCmEnrollmentServiceStub( + CmEnrollmentServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonCmEnrollmentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCmEnrollmentServiceStub( + CmEnrollmentServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonCmEnrollmentServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCmEnrollmentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCmEnrollmentServiceStub( + CmEnrollmentServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + updateCmEnrollmentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCmEnrollmentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "cm_enrollment.name", + String.valueOf(request.getCmEnrollment().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(calculateEffectiveCmEnrollmentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.updateCmEnrollmentCallable = + callableFactory.createUnaryCallable( + updateCmEnrollmentTransportSettings, + settings.updateCmEnrollmentSettings(), + clientContext); + this.calculateEffectiveCmEnrollmentCallable = + callableFactory.createUnaryCallable( + calculateEffectiveCmEnrollmentTransportSettings, + settings.calculateEffectiveCmEnrollmentSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(updateCmEnrollmentMethodDescriptor); + methodDescriptors.add(calculateEffectiveCmEnrollmentMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable updateCmEnrollmentCallable() { + return updateCmEnrollmentCallable; + } + + @Override + public UnaryCallable< + CalculateEffectiveCmEnrollmentRequest, CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollmentCallable() { + return calculateEffectiveCmEnrollmentCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonConfigStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonConfigStub.java index 3cf6f23ed726..4d50992106a1 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonConfigStub.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonConfigStub.java @@ -314,6 +314,8 @@ public class HttpJsonConfigStub extends ConfigStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "majorRevisionId", request.getMajorRevisionId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringCallableFactory.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringCallableFactory.java new file mode 100644 index 000000000000..833a56253cc1 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Monitoring service API. + * + *

                                    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonMonitoringCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringStub.java new file mode 100644 index 000000000000..07a675dab282 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringStub.java @@ -0,0 +1,695 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListControlComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFindingSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFrameworkComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListLocationsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Monitoring service API. + * + *

                                    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonMonitoringStub extends MonitoringStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/ListFrameworkComplianceSummaries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/locations/*}/frameworkComplianceSummaries", + "/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries") + .setQueryParamsExtractor( + request -> { + 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(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListFrameworkComplianceSummariesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListFindingSummariesRequest, ListFindingSummariesResponse> + listFindingSummariesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/ListFindingSummaries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/locations/*}/findingSummaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/locations/*}/findingSummaries", + "/v1/{parent=projects/*/locations/*}/findingSummaries") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "endTime", request.getEndTime()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListFindingSummariesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + FetchFrameworkComplianceReportRequest, FrameworkComplianceReport> + fetchFrameworkComplianceReportMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/FetchFrameworkComplianceReport") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetch", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetch", + "/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "endTime", request.getEndTime()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FrameworkComplianceReport.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse> + listControlComplianceSummariesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/ListControlComplianceSummaries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries", + "/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "endTime", request.getEndTime()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListControlComplianceSummariesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.cloudsecuritycompliance.v1.Monitoring/AggregateFrameworkComplianceReport") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregate", + "/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "interval", request.getInterval()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + AggregateFrameworkComplianceReportResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*}/locations", + 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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*}", + 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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesCallable; + private final UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesPagedCallable; + private final UnaryCallable + listFindingSummariesCallable; + private final UnaryCallable + listFindingSummariesPagedCallable; + private final UnaryCallable + fetchFrameworkComplianceReportCallable; + private final UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse> + listControlComplianceSummariesCallable; + private final UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesPagedCallable; + private final UnaryCallable< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonMonitoringStub create(MonitoringStubSettings settings) + throws IOException { + return new HttpJsonMonitoringStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonMonitoringStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonMonitoringStub( + MonitoringStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonMonitoringStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonMonitoringStub( + MonitoringStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonMonitoringStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonMonitoringStub(MonitoringStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonMonitoringCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonMonitoringStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonMonitoringStub( + MonitoringStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listFrameworkComplianceSummariesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listFindingSummariesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listFindingSummariesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + fetchFrameworkComplianceReportTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(fetchFrameworkComplianceReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse> + listControlComplianceSummariesTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listControlComplianceSummariesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(aggregateFrameworkComplianceReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listFrameworkComplianceSummariesCallable = + callableFactory.createUnaryCallable( + listFrameworkComplianceSummariesTransportSettings, + settings.listFrameworkComplianceSummariesSettings(), + clientContext); + this.listFrameworkComplianceSummariesPagedCallable = + callableFactory.createPagedCallable( + listFrameworkComplianceSummariesTransportSettings, + settings.listFrameworkComplianceSummariesSettings(), + clientContext); + this.listFindingSummariesCallable = + callableFactory.createUnaryCallable( + listFindingSummariesTransportSettings, + settings.listFindingSummariesSettings(), + clientContext); + this.listFindingSummariesPagedCallable = + callableFactory.createPagedCallable( + listFindingSummariesTransportSettings, + settings.listFindingSummariesSettings(), + clientContext); + this.fetchFrameworkComplianceReportCallable = + callableFactory.createUnaryCallable( + fetchFrameworkComplianceReportTransportSettings, + settings.fetchFrameworkComplianceReportSettings(), + clientContext); + this.listControlComplianceSummariesCallable = + callableFactory.createUnaryCallable( + listControlComplianceSummariesTransportSettings, + settings.listControlComplianceSummariesSettings(), + clientContext); + this.listControlComplianceSummariesPagedCallable = + callableFactory.createPagedCallable( + listControlComplianceSummariesTransportSettings, + settings.listControlComplianceSummariesSettings(), + clientContext); + this.aggregateFrameworkComplianceReportCallable = + callableFactory.createUnaryCallable( + aggregateFrameworkComplianceReportTransportSettings, + settings.aggregateFrameworkComplianceReportSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listFrameworkComplianceSummariesMethodDescriptor); + methodDescriptors.add(listFindingSummariesMethodDescriptor); + methodDescriptors.add(fetchFrameworkComplianceReportMethodDescriptor); + methodDescriptors.add(listControlComplianceSummariesMethodDescriptor); + methodDescriptors.add(aggregateFrameworkComplianceReportMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesCallable() { + return listFrameworkComplianceSummariesCallable; + } + + @Override + public UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesPagedCallable() { + return listFrameworkComplianceSummariesPagedCallable; + } + + @Override + public UnaryCallable + listFindingSummariesCallable() { + return listFindingSummariesCallable; + } + + @Override + public UnaryCallable + listFindingSummariesPagedCallable() { + return listFindingSummariesPagedCallable; + } + + @Override + public UnaryCallable + fetchFrameworkComplianceReportCallable() { + return fetchFrameworkComplianceReportCallable; + } + + @Override + public UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse> + listControlComplianceSummariesCallable() { + return listControlComplianceSummariesCallable; + } + + @Override + public UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesPagedCallable() { + return listControlComplianceSummariesPagedCallable; + } + + @Override + public UnaryCallable< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportCallable() { + return aggregateFrameworkComplianceReportCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStub.java new file mode 100644 index 000000000000..3907a921233d --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStub.java @@ -0,0 +1,117 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListControlComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFindingSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFrameworkComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Monitoring service API. + * + *

                                    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class MonitoringStub implements BackgroundResource { + + public UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listFrameworkComplianceSummariesPagedCallable()"); + } + + public UnaryCallable< + ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummariesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listFrameworkComplianceSummariesCallable()"); + } + + public UnaryCallable + listFindingSummariesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFindingSummariesPagedCallable()"); + } + + public UnaryCallable + listFindingSummariesCallable() { + throw new UnsupportedOperationException("Not implemented: listFindingSummariesCallable()"); + } + + public UnaryCallable + fetchFrameworkComplianceReportCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchFrameworkComplianceReportCallable()"); + } + + public UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listControlComplianceSummariesPagedCallable()"); + } + + public UnaryCallable< + ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse> + listControlComplianceSummariesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listControlComplianceSummariesCallable()"); + } + + public UnaryCallable< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportCallable() { + throw new UnsupportedOperationException( + "Not implemented: aggregateFrameworkComplianceReportCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStubSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStubSettings.java new file mode 100644 index 000000000000..858c97cfebbc --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStubSettings.java @@ -0,0 +1,860 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub; + +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListControlComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFindingSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFrameworkComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FindingSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MonitoringStub}. + * + *

                                    The default instance has everything set to sensible defaults: + * + *

                                      + *
                                    • The default service address (cloudsecuritycompliance.googleapis.com) and default port (443) + * are used. + *
                                    • Credentials are acquired automatically through Application Default Credentials. + *
                                    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                    + * + *

                                    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of fetchFrameworkComplianceReport: + * + *

                                    {@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
                                    + * MonitoringStubSettings.Builder monitoringSettingsBuilder = MonitoringStubSettings.newBuilder();
                                    + * monitoringSettingsBuilder
                                    + *     .fetchFrameworkComplianceReportSettings()
                                    + *     .setRetrySettings(
                                    + *         monitoringSettingsBuilder
                                    + *             .fetchFrameworkComplianceReportSettings()
                                    + *             .getRetrySettings()
                                    + *             .toBuilder()
                                    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                    + *             .setMaxAttempts(5)
                                    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                    + *             .setRetryDelayMultiplier(1.3)
                                    + *             .setRpcTimeoutMultiplier(1.5)
                                    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                    + *             .build());
                                    + * MonitoringStubSettings monitoringSettings = monitoringSettingsBuilder.build();
                                    + * }
                                    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class MonitoringStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesSettings; + private final PagedCallSettings< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + ListFindingSummariesPagedResponse> + listFindingSummariesSettings; + private final UnaryCallSettings + fetchFrameworkComplianceReportSettings; + private final PagedCallSettings< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesSettings; + private final UnaryCallSettings< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary> + LIST_FRAMEWORK_COMPLIANCE_SUMMARIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFrameworkComplianceSummariesRequest injectToken( + ListFrameworkComplianceSummariesRequest payload, String token) { + return ListFrameworkComplianceSummariesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListFrameworkComplianceSummariesRequest injectPageSize( + ListFrameworkComplianceSummariesRequest payload, int pageSize) { + return ListFrameworkComplianceSummariesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListFrameworkComplianceSummariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFrameworkComplianceSummariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListFrameworkComplianceSummariesResponse payload) { + return payload.getFrameworkComplianceSummariesList(); + } + }; + + private static final PagedListDescriptor< + ListFindingSummariesRequest, ListFindingSummariesResponse, FindingSummary> + LIST_FINDING_SUMMARIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListFindingSummariesRequest, ListFindingSummariesResponse, FindingSummary>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFindingSummariesRequest injectToken( + ListFindingSummariesRequest payload, String token) { + return ListFindingSummariesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFindingSummariesRequest injectPageSize( + ListFindingSummariesRequest payload, int pageSize) { + return ListFindingSummariesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFindingSummariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFindingSummariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListFindingSummariesResponse payload) { + return payload.getFindingSummariesList(); + } + }; + + private static final PagedListDescriptor< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary> + LIST_CONTROL_COMPLIANCE_SUMMARIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListControlComplianceSummariesRequest injectToken( + ListControlComplianceSummariesRequest payload, String token) { + return ListControlComplianceSummariesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListControlComplianceSummariesRequest injectPageSize( + ListControlComplianceSummariesRequest payload, int pageSize) { + return ListControlComplianceSummariesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListControlComplianceSummariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListControlComplianceSummariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListControlComplianceSummariesResponse payload) { + return payload.getControlComplianceSummariesList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + ListFrameworkComplianceSummariesPagedResponse> + LIST_FRAMEWORK_COMPLIANCE_SUMMARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + ListFrameworkComplianceSummariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse> + callable, + ListFrameworkComplianceSummariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + FrameworkComplianceSummary> + pageContext = + PageContext.create( + callable, + LIST_FRAMEWORK_COMPLIANCE_SUMMARIES_PAGE_STR_DESC, + request, + context); + return ListFrameworkComplianceSummariesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + ListFindingSummariesPagedResponse> + LIST_FINDING_SUMMARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + ListFindingSummariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFindingSummariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_FINDING_SUMMARIES_PAGE_STR_DESC, request, context); + return ListFindingSummariesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ListControlComplianceSummariesPagedResponse> + LIST_CONTROL_COMPLIANCE_SUMMARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ListControlComplianceSummariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse> + callable, + ListControlComplianceSummariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ControlComplianceSummary> + pageContext = + PageContext.create( + callable, + LIST_CONTROL_COMPLIANCE_SUMMARIES_PAGE_STR_DESC, + request, + context); + return ListControlComplianceSummariesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listFrameworkComplianceSummaries. */ + public PagedCallSettings< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesSettings() { + return listFrameworkComplianceSummariesSettings; + } + + /** Returns the object with the settings used for calls to listFindingSummaries. */ + public PagedCallSettings< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + ListFindingSummariesPagedResponse> + listFindingSummariesSettings() { + return listFindingSummariesSettings; + } + + /** Returns the object with the settings used for calls to fetchFrameworkComplianceReport. */ + public UnaryCallSettings + fetchFrameworkComplianceReportSettings() { + return fetchFrameworkComplianceReportSettings; + } + + /** Returns the object with the settings used for calls to listControlComplianceSummaries. */ + public PagedCallSettings< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesSettings() { + return listControlComplianceSummariesSettings; + } + + /** Returns the object with the settings used for calls to aggregateFrameworkComplianceReport. */ + public UnaryCallSettings< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportSettings() { + return aggregateFrameworkComplianceReportSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public MonitoringStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcMonitoringStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonMonitoringStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "cloudsecuritycompliance"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "cloudsecuritycompliance.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "cloudsecuritycompliance.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MonitoringStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MonitoringStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MonitoringStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MonitoringStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listFrameworkComplianceSummariesSettings = + settingsBuilder.listFrameworkComplianceSummariesSettings().build(); + listFindingSummariesSettings = settingsBuilder.listFindingSummariesSettings().build(); + fetchFrameworkComplianceReportSettings = + settingsBuilder.fetchFrameworkComplianceReportSettings().build(); + listControlComplianceSummariesSettings = + settingsBuilder.listControlComplianceSummariesSettings().build(); + aggregateFrameworkComplianceReportSettings = + settingsBuilder.aggregateFrameworkComplianceReportSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for MonitoringStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesSettings; + private final PagedCallSettings.Builder< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + ListFindingSummariesPagedResponse> + listFindingSummariesSettings; + private final UnaryCallSettings.Builder< + FetchFrameworkComplianceReportRequest, FrameworkComplianceReport> + fetchFrameworkComplianceReportSettings; + private final PagedCallSettings.Builder< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesSettings; + private final UnaryCallSettings.Builder< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listFrameworkComplianceSummariesSettings = + PagedCallSettings.newBuilder(LIST_FRAMEWORK_COMPLIANCE_SUMMARIES_PAGE_STR_FACT); + listFindingSummariesSettings = + PagedCallSettings.newBuilder(LIST_FINDING_SUMMARIES_PAGE_STR_FACT); + fetchFrameworkComplianceReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listControlComplianceSummariesSettings = + PagedCallSettings.newBuilder(LIST_CONTROL_COMPLIANCE_SUMMARIES_PAGE_STR_FACT); + aggregateFrameworkComplianceReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listFrameworkComplianceSummariesSettings, + listFindingSummariesSettings, + fetchFrameworkComplianceReportSettings, + listControlComplianceSummariesSettings, + aggregateFrameworkComplianceReportSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(MonitoringStubSettings settings) { + super(settings); + + listFrameworkComplianceSummariesSettings = + settings.listFrameworkComplianceSummariesSettings.toBuilder(); + listFindingSummariesSettings = settings.listFindingSummariesSettings.toBuilder(); + fetchFrameworkComplianceReportSettings = + settings.fetchFrameworkComplianceReportSettings.toBuilder(); + listControlComplianceSummariesSettings = + settings.listControlComplianceSummariesSettings.toBuilder(); + aggregateFrameworkComplianceReportSettings = + settings.aggregateFrameworkComplianceReportSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listFrameworkComplianceSummariesSettings, + listFindingSummariesSettings, + fetchFrameworkComplianceReportSettings, + listControlComplianceSummariesSettings, + aggregateFrameworkComplianceReportSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listFrameworkComplianceSummariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listFindingSummariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .fetchFrameworkComplianceReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listControlComplianceSummariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .aggregateFrameworkComplianceReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listFrameworkComplianceSummaries. */ + public PagedCallSettings.Builder< + ListFrameworkComplianceSummariesRequest, + ListFrameworkComplianceSummariesResponse, + ListFrameworkComplianceSummariesPagedResponse> + listFrameworkComplianceSummariesSettings() { + return listFrameworkComplianceSummariesSettings; + } + + /** Returns the builder for the settings used for calls to listFindingSummaries. */ + public PagedCallSettings.Builder< + ListFindingSummariesRequest, + ListFindingSummariesResponse, + ListFindingSummariesPagedResponse> + listFindingSummariesSettings() { + return listFindingSummariesSettings; + } + + /** Returns the builder for the settings used for calls to fetchFrameworkComplianceReport. */ + public UnaryCallSettings.Builder< + FetchFrameworkComplianceReportRequest, FrameworkComplianceReport> + fetchFrameworkComplianceReportSettings() { + return fetchFrameworkComplianceReportSettings; + } + + /** Returns the builder for the settings used for calls to listControlComplianceSummaries. */ + public PagedCallSettings.Builder< + ListControlComplianceSummariesRequest, + ListControlComplianceSummariesResponse, + ListControlComplianceSummariesPagedResponse> + listControlComplianceSummariesSettings() { + return listControlComplianceSummariesSettings; + } + + /** + * Returns the builder for the settings used for calls to aggregateFrameworkComplianceReport. + */ + public UnaryCallSettings.Builder< + AggregateFrameworkComplianceReportRequest, AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReportSettings() { + return aggregateFrameworkComplianceReportSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public MonitoringStubSettings build() throws IOException { + return new MonitoringStubSettings(this); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/resources/META-INF/native-image/com.google.cloud.cloudsecuritycompliance.v1/reflect-config.json b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/resources/META-INF/native-image/com.google.cloud.cloudsecuritycompliance.v1/reflect-config.json index 383032c1c77a..9f6128d1260f 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/resources/META-INF/native-image/com.google.cloud.cloudsecuritycompliance.v1/reflect-config.json +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/resources/META-INF/native-image/com.google.cloud.cloudsecuritycompliance.v1/reflect-config.json @@ -413,6 +413,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudsecuritycompliance.v1.AllowedValues", "queryAllDeclaredConstructors": true, @@ -423,7 +477,619 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.AllowedValues$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.AllowedValues$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AuditConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AuditConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AuditConfig$CmEligibleDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.AuditConfig$CmEligibleDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.BucketDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.BucketDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.BucketDestination$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CELExpression", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CELExpression$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControl", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControl$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControl$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlCategory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudProvider", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ComplianceState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ControlFamily", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ControlFamily$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.DeploymentState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.EvaluationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.FindingClass", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.FindingDetails", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -432,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FindingDetails$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -441,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FindingSummary", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -450,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CELExpression", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FindingSummary$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -459,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CELExpression$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -468,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControl", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -477,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControl$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.Framework", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -486,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlCategory", + "name": "com.google.cloud.cloudsecuritycompliance.v1.Framework$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -495,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment", + "name": "com.google.cloud.cloudsecuritycompliance.v1.Framework$FrameworkType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -504,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -513,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -522,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -531,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetails", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -540,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetails$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -549,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -558,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -567,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CloudProvider", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -576,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest$Format", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.DeploymentState", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.Framework", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.Framework$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.Framework$FrameworkType", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference", + "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.IntRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference", + "name": "com.google.cloud.cloudsecuritycompliance.v1.IntRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.IntRange", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.IntRange$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +1629,52 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse$Builder", + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1043,6 +1754,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudsecuritycompliance.v1.OperationMetadata", "queryAllDeclaredConstructors": true, @@ -1196,6 +1943,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ReportSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.ReportSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudsecuritycompliance.v1.Rule", "queryAllDeclaredConstructors": true, @@ -1232,6 +2006,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.SimilarControls", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.SimilarControls$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudsecuritycompliance.v1.StringList", "queryAllDeclaredConstructors": true, @@ -1286,6 +2078,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudsecuritycompliance.v1.TargetResourceType", "queryAllDeclaredConstructors": true, @@ -1313,6 +2123,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest", "queryAllDeclaredConstructors": true, @@ -2401,5 +3229,23 @@ "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true + }, + { + "name": "com.google.type.Interval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Interval$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true } ] \ No newline at end of file diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClientHttpJsonTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClientHttpJsonTest.java new file mode 100644 index 000000000000..cdc9671708ca --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClientHttpJsonTest.java @@ -0,0 +1,731 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListFrameworkAuditsPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.cloudsecuritycompliance.v1.stub.HttpJsonAuditStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AuditClientHttpJsonTest { + private static MockHttpService mockService; + private static AuditClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAuditStub.getMethodDescriptors(), AuditSettings.getDefaultEndpoint()); + AuditSettings settings = + AuditSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AuditSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AuditClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void generateFrameworkAuditScopeReportTest() throws Exception { + GenerateFrameworkAuditScopeReportResponse expectedResponse = + GenerateFrameworkAuditScopeReportResponse.newBuilder() + .setName("name3373707") + .setComplianceFramework("complianceFramework-1808314333") + .build(); + mockService.addResponse(expectedResponse); + + String scope = "folders/folder-6714/locations/location-6714"; + GenerateFrameworkAuditScopeReportRequest.Format reportFormat = + GenerateFrameworkAuditScopeReportRequest.Format.forNumber(0); + String complianceFramework = "complianceFramework-1808314333"; + + GenerateFrameworkAuditScopeReportResponse actualResponse = + client.generateFrameworkAuditScopeReport(scope, reportFormat, complianceFramework); + 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 generateFrameworkAuditScopeReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String scope = "folders/folder-6714/locations/location-6714"; + GenerateFrameworkAuditScopeReportRequest.Format reportFormat = + GenerateFrameworkAuditScopeReportRequest.Format.forNumber(0); + String complianceFramework = "complianceFramework-1808314333"; + client.generateFrameworkAuditScopeReport(scope, reportFormat, complianceFramework); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFrameworkAuditTest() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofProjectLocationFrameworkAuditName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFrameworkAuditTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + + FrameworkAudit actualResponse = + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).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 createFrameworkAuditExceptionTest() 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]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createFrameworkAuditTest2() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofProjectLocationFrameworkAuditName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFrameworkAuditTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + + FrameworkAudit actualResponse = + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).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 createFrameworkAuditExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createFrameworkAuditTest3() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofProjectLocationFrameworkAuditName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFrameworkAuditTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-9365/locations/location-9365"; + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + + FrameworkAudit actualResponse = + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).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 createFrameworkAuditExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listFrameworkAuditsTest() throws Exception { + FrameworkAudit responsesElement = FrameworkAudit.newBuilder().build(); + ListFrameworkAuditsResponse expectedResponse = + ListFrameworkAuditsResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkAudits(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFrameworkAuditsPagedResponse pagedListResponse = client.listFrameworkAudits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworkAuditsList().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 listFrameworkAuditsExceptionTest() 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.listFrameworkAudits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkAuditsTest2() throws Exception { + FrameworkAudit responsesElement = FrameworkAudit.newBuilder().build(); + ListFrameworkAuditsResponse expectedResponse = + ListFrameworkAuditsResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkAudits(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFrameworkAuditsPagedResponse pagedListResponse = client.listFrameworkAudits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworkAuditsList().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 listFrameworkAuditsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFrameworkAudits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkAuditsTest3() throws Exception { + FrameworkAudit responsesElement = FrameworkAudit.newBuilder().build(); + ListFrameworkAuditsResponse expectedResponse = + ListFrameworkAuditsResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkAudits(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListFrameworkAuditsPagedResponse pagedListResponse = client.listFrameworkAudits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworkAuditsList().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 listFrameworkAuditsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listFrameworkAudits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFrameworkAuditTest() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + mockService.addResponse(expectedResponse); + + FrameworkAuditName name = + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]"); + + FrameworkAudit actualResponse = client.getFrameworkAudit(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 getFrameworkAuditExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FrameworkAuditName name = + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]"); + client.getFrameworkAudit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFrameworkAuditTest2() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-7724/locations/location-7724/frameworkAudits/frameworkAudit-7724"; + + FrameworkAudit actualResponse = client.getFrameworkAudit(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 getFrameworkAuditExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-7724/locations/location-7724/frameworkAudits/frameworkAudit-7724"; + client.getFrameworkAudit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("organizations/organization-1936") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("organizations/organization-1936") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClientTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClientTest.java new file mode 100644 index 000000000000..52d7076d2260 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClientTest.java @@ -0,0 +1,688 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListFrameworkAuditsPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.AuditClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AuditClientTest { + private static MockAudit mockAudit; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AuditClient client; + + @BeforeClass + public static void startStaticServer() { + mockAudit = new MockAudit(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockAudit, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AuditSettings settings = + AuditSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AuditClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void generateFrameworkAuditScopeReportTest() throws Exception { + GenerateFrameworkAuditScopeReportResponse expectedResponse = + GenerateFrameworkAuditScopeReportResponse.newBuilder() + .setName("name3373707") + .setComplianceFramework("complianceFramework-1808314333") + .build(); + mockAudit.addResponse(expectedResponse); + + String scope = "scope109264468"; + GenerateFrameworkAuditScopeReportRequest.Format reportFormat = + GenerateFrameworkAuditScopeReportRequest.Format.forNumber(0); + String complianceFramework = "complianceFramework-1808314333"; + + GenerateFrameworkAuditScopeReportResponse actualResponse = + client.generateFrameworkAuditScopeReport(scope, reportFormat, complianceFramework); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAudit.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateFrameworkAuditScopeReportRequest actualRequest = + ((GenerateFrameworkAuditScopeReportRequest) actualRequests.get(0)); + + Assert.assertEquals(scope, actualRequest.getScope()); + Assert.assertEquals(reportFormat, actualRequest.getReportFormat()); + Assert.assertEquals(complianceFramework, actualRequest.getComplianceFramework()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateFrameworkAuditScopeReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAudit.addException(exception); + + try { + String scope = "scope109264468"; + GenerateFrameworkAuditScopeReportRequest.Format reportFormat = + GenerateFrameworkAuditScopeReportRequest.Format.forNumber(0); + String complianceFramework = "complianceFramework-1808314333"; + client.generateFrameworkAuditScopeReport(scope, reportFormat, complianceFramework); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFrameworkAuditTest() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofProjectLocationFrameworkAuditName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFrameworkAuditTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAudit.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + + FrameworkAudit actualResponse = + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAudit.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFrameworkAuditRequest actualRequest = + ((CreateFrameworkAuditRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(frameworkAudit, actualRequest.getFrameworkAudit()); + Assert.assertEquals(frameworkAuditId, actualRequest.getFrameworkAuditId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFrameworkAuditExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAudit.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).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 createFrameworkAuditTest2() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofProjectLocationFrameworkAuditName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFrameworkAuditTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAudit.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + + FrameworkAudit actualResponse = + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAudit.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFrameworkAuditRequest actualRequest = + ((CreateFrameworkAuditRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(frameworkAudit, actualRequest.getFrameworkAudit()); + Assert.assertEquals(frameworkAuditId, actualRequest.getFrameworkAuditId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFrameworkAuditExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAudit.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).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 createFrameworkAuditTest3() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofProjectLocationFrameworkAuditName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFrameworkAuditTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAudit.addResponse(resultOperation); + + String parent = "parent-995424086"; + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + + FrameworkAudit actualResponse = + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAudit.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFrameworkAuditRequest actualRequest = + ((CreateFrameworkAuditRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(frameworkAudit, actualRequest.getFrameworkAudit()); + Assert.assertEquals(frameworkAuditId, actualRequest.getFrameworkAuditId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFrameworkAuditExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAudit.addException(exception); + + try { + String parent = "parent-995424086"; + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + client.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).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 listFrameworkAuditsTest() throws Exception { + FrameworkAudit responsesElement = FrameworkAudit.newBuilder().build(); + ListFrameworkAuditsResponse expectedResponse = + ListFrameworkAuditsResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkAudits(Arrays.asList(responsesElement)) + .build(); + mockAudit.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFrameworkAuditsPagedResponse pagedListResponse = client.listFrameworkAudits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworkAuditsList().get(0), resources.get(0)); + + List actualRequests = mockAudit.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFrameworkAuditsRequest actualRequest = ((ListFrameworkAuditsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFrameworkAuditsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAudit.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFrameworkAudits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkAuditsTest2() throws Exception { + FrameworkAudit responsesElement = FrameworkAudit.newBuilder().build(); + ListFrameworkAuditsResponse expectedResponse = + ListFrameworkAuditsResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkAudits(Arrays.asList(responsesElement)) + .build(); + mockAudit.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFrameworkAuditsPagedResponse pagedListResponse = client.listFrameworkAudits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworkAuditsList().get(0), resources.get(0)); + + List actualRequests = mockAudit.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFrameworkAuditsRequest actualRequest = ((ListFrameworkAuditsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFrameworkAuditsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAudit.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFrameworkAudits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkAuditsTest3() throws Exception { + FrameworkAudit responsesElement = FrameworkAudit.newBuilder().build(); + ListFrameworkAuditsResponse expectedResponse = + ListFrameworkAuditsResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkAudits(Arrays.asList(responsesElement)) + .build(); + mockAudit.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFrameworkAuditsPagedResponse pagedListResponse = client.listFrameworkAudits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworkAuditsList().get(0), resources.get(0)); + + List actualRequests = mockAudit.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFrameworkAuditsRequest actualRequest = ((ListFrameworkAuditsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFrameworkAuditsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAudit.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFrameworkAudits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFrameworkAuditTest() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + mockAudit.addResponse(expectedResponse); + + FrameworkAuditName name = + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]"); + + FrameworkAudit actualResponse = client.getFrameworkAudit(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAudit.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFrameworkAuditRequest actualRequest = ((GetFrameworkAuditRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFrameworkAuditExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAudit.addException(exception); + + try { + FrameworkAuditName name = + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]"); + client.getFrameworkAudit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFrameworkAuditTest2() throws Exception { + FrameworkAudit expectedResponse = + FrameworkAudit.newBuilder() + .setName( + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setComplianceFramework("complianceFramework-1808314333") + .setScope("scope109264468") + .setFrameworkAuditDestination(FrameworkAuditDestination.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setComplianceState(ComplianceState.forNumber(0)) + .setReportSummary(ReportSummary.newBuilder().build()) + .addAllCloudControlGroupAuditDetails(new ArrayList()) + .addAllCloudControlAuditDetails(new ArrayList()) + .setOperationId("operationId129704162") + .build(); + mockAudit.addResponse(expectedResponse); + + String name = "name3373707"; + + FrameworkAudit actualResponse = client.getFrameworkAudit(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAudit.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFrameworkAuditRequest actualRequest = ((GetFrameworkAuditRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFrameworkAuditExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAudit.addException(exception); + + try { + String name = "name3373707"; + client.getFrameworkAudit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClientHttpJsonTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..e47da1b0cd30 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClientHttpJsonTest.java @@ -0,0 +1,356 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.cloudsecuritycompliance.v1.stub.HttpJsonCmEnrollmentServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CmEnrollmentServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CmEnrollmentServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCmEnrollmentServiceStub.getMethodDescriptors(), + CmEnrollmentServiceSettings.getDefaultEndpoint()); + CmEnrollmentServiceSettings settings = + CmEnrollmentServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CmEnrollmentServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CmEnrollmentServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void updateCmEnrollmentTest() throws Exception { + CmEnrollment expectedResponse = + CmEnrollment.newBuilder() + .setName( + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]") + .toString()) + .setEnrolled(true) + .setAuditConfig(AuditConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CmEnrollment cmEnrollment = + CmEnrollment.newBuilder() + .setName( + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]") + .toString()) + .setEnrolled(true) + .setAuditConfig(AuditConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CmEnrollment actualResponse = client.updateCmEnrollment(cmEnrollment, updateMask); + 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 updateCmEnrollmentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CmEnrollment cmEnrollment = + CmEnrollment.newBuilder() + .setName( + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]") + .toString()) + .setEnrolled(true) + .setAuditConfig(AuditConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCmEnrollment(cmEnrollment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void calculateEffectiveCmEnrollmentTest() throws Exception { + CalculateEffectiveCmEnrollmentResponse expectedResponse = + CalculateEffectiveCmEnrollmentResponse.newBuilder() + .setCmEnrollment(CmEnrollment.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CmEnrollmentName name = + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]"); + + CalculateEffectiveCmEnrollmentResponse actualResponse = + client.calculateEffectiveCmEnrollment(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 calculateEffectiveCmEnrollmentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CmEnrollmentName name = + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]"); + client.calculateEffectiveCmEnrollment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void calculateEffectiveCmEnrollmentTest2() throws Exception { + CalculateEffectiveCmEnrollmentResponse expectedResponse = + CalculateEffectiveCmEnrollmentResponse.newBuilder() + .setCmEnrollment(CmEnrollment.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-3773/locations/location-3773/cmEnrollment"; + + CalculateEffectiveCmEnrollmentResponse actualResponse = + client.calculateEffectiveCmEnrollment(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 calculateEffectiveCmEnrollmentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-3773/locations/location-3773/cmEnrollment"; + client.calculateEffectiveCmEnrollment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("organizations/organization-1936") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("organizations/organization-1936") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClientTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClientTest.java new file mode 100644 index 000000000000..7402e8168029 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClientTest.java @@ -0,0 +1,318 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CmEnrollmentServiceClientTest { + private static MockCmEnrollmentService mockCmEnrollmentService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private CmEnrollmentServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockCmEnrollmentService = new MockCmEnrollmentService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockCmEnrollmentService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + CmEnrollmentServiceSettings settings = + CmEnrollmentServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CmEnrollmentServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void updateCmEnrollmentTest() throws Exception { + CmEnrollment expectedResponse = + CmEnrollment.newBuilder() + .setName( + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]") + .toString()) + .setEnrolled(true) + .setAuditConfig(AuditConfig.newBuilder().build()) + .build(); + mockCmEnrollmentService.addResponse(expectedResponse); + + CmEnrollment cmEnrollment = CmEnrollment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CmEnrollment actualResponse = client.updateCmEnrollment(cmEnrollment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCmEnrollmentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCmEnrollmentRequest actualRequest = ((UpdateCmEnrollmentRequest) actualRequests.get(0)); + + Assert.assertEquals(cmEnrollment, actualRequest.getCmEnrollment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCmEnrollmentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmEnrollmentService.addException(exception); + + try { + CmEnrollment cmEnrollment = CmEnrollment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCmEnrollment(cmEnrollment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void calculateEffectiveCmEnrollmentTest() throws Exception { + CalculateEffectiveCmEnrollmentResponse expectedResponse = + CalculateEffectiveCmEnrollmentResponse.newBuilder() + .setCmEnrollment(CmEnrollment.newBuilder().build()) + .build(); + mockCmEnrollmentService.addResponse(expectedResponse); + + CmEnrollmentName name = + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]"); + + CalculateEffectiveCmEnrollmentResponse actualResponse = + client.calculateEffectiveCmEnrollment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCmEnrollmentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CalculateEffectiveCmEnrollmentRequest actualRequest = + ((CalculateEffectiveCmEnrollmentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void calculateEffectiveCmEnrollmentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmEnrollmentService.addException(exception); + + try { + CmEnrollmentName name = + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]"); + client.calculateEffectiveCmEnrollment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void calculateEffectiveCmEnrollmentTest2() throws Exception { + CalculateEffectiveCmEnrollmentResponse expectedResponse = + CalculateEffectiveCmEnrollmentResponse.newBuilder() + .setCmEnrollment(CmEnrollment.newBuilder().build()) + .build(); + mockCmEnrollmentService.addResponse(expectedResponse); + + String name = "name3373707"; + + CalculateEffectiveCmEnrollmentResponse actualResponse = + client.calculateEffectiveCmEnrollment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCmEnrollmentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CalculateEffectiveCmEnrollmentRequest actualRequest = + ((CalculateEffectiveCmEnrollmentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void calculateEffectiveCmEnrollmentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmEnrollmentService.addException(exception); + + try { + String name = "name3373707"; + client.calculateEffectiveCmEnrollment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockAudit.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockAudit.java new file mode 100644 index 000000000000..71a962e1dae9 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockAudit.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAudit implements MockGrpcService { + private final MockAuditImpl serviceImpl; + + public MockAudit() { + serviceImpl = new MockAuditImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockAuditImpl.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockAuditImpl.java new file mode 100644 index 000000000000..f9eb4f10112d --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockAuditImpl.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.cloudsecuritycompliance.v1.AuditGrpc.AuditImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAuditImpl extends AuditImplBase { + private List requests; + private Queue responses; + + public MockAuditImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void generateFrameworkAuditScopeReport( + GenerateFrameworkAuditScopeReportRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateFrameworkAuditScopeReportResponse) { + requests.add(request); + responseObserver.onNext(((GenerateFrameworkAuditScopeReportResponse) 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 GenerateFrameworkAuditScopeReport," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateFrameworkAuditScopeReportResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createFrameworkAudit( + CreateFrameworkAuditRequest 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 CreateFrameworkAudit, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFrameworkAudits( + ListFrameworkAuditsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFrameworkAuditsResponse) { + requests.add(request); + responseObserver.onNext(((ListFrameworkAuditsResponse) 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 ListFrameworkAudits, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFrameworkAuditsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFrameworkAudit( + GetFrameworkAuditRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FrameworkAudit) { + requests.add(request); + responseObserver.onNext(((FrameworkAudit) 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 GetFrameworkAudit, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FrameworkAudit.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockCmEnrollmentService.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockCmEnrollmentService.java new file mode 100644 index 000000000000..91f0838d23f6 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockCmEnrollmentService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCmEnrollmentService implements MockGrpcService { + private final MockCmEnrollmentServiceImpl serviceImpl; + + public MockCmEnrollmentService() { + serviceImpl = new MockCmEnrollmentServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockCmEnrollmentServiceImpl.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockCmEnrollmentServiceImpl.java new file mode 100644 index 000000000000..abe13841b9d7 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockCmEnrollmentServiceImpl.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceGrpc.CmEnrollmentServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCmEnrollmentServiceImpl extends CmEnrollmentServiceImplBase { + private List requests; + private Queue responses; + + public MockCmEnrollmentServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void updateCmEnrollment( + UpdateCmEnrollmentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CmEnrollment) { + requests.add(request); + responseObserver.onNext(((CmEnrollment) 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 UpdateCmEnrollment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CmEnrollment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void calculateEffectiveCmEnrollment( + CalculateEffectiveCmEnrollmentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CalculateEffectiveCmEnrollmentResponse) { + requests.add(request); + responseObserver.onNext(((CalculateEffectiveCmEnrollmentResponse) 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 CalculateEffectiveCmEnrollment," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CalculateEffectiveCmEnrollmentResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockMonitoring.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockMonitoring.java new file mode 100644 index 000000000000..30dcfbc938ec --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockMonitoring.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMonitoring implements MockGrpcService { + private final MockMonitoringImpl serviceImpl; + + public MockMonitoring() { + serviceImpl = new MockMonitoringImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockMonitoringImpl.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockMonitoringImpl.java new file mode 100644 index 000000000000..6c89dceb825f --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MockMonitoringImpl.java @@ -0,0 +1,175 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringGrpc.MonitoringImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMonitoringImpl extends MonitoringImplBase { + private List requests; + private Queue responses; + + public MockMonitoringImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listFrameworkComplianceSummaries( + ListFrameworkComplianceSummariesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFrameworkComplianceSummariesResponse) { + requests.add(request); + responseObserver.onNext(((ListFrameworkComplianceSummariesResponse) 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 ListFrameworkComplianceSummaries," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFrameworkComplianceSummariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFindingSummaries( + ListFindingSummariesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFindingSummariesResponse) { + requests.add(request); + responseObserver.onNext(((ListFindingSummariesResponse) 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 ListFindingSummaries, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListFindingSummariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchFrameworkComplianceReport( + FetchFrameworkComplianceReportRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FrameworkComplianceReport) { + requests.add(request); + responseObserver.onNext(((FrameworkComplianceReport) 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 FetchFrameworkComplianceReport," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FrameworkComplianceReport.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listControlComplianceSummaries( + ListControlComplianceSummariesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListControlComplianceSummariesResponse) { + requests.add(request); + responseObserver.onNext(((ListControlComplianceSummariesResponse) 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 ListControlComplianceSummaries," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListControlComplianceSummariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void aggregateFrameworkComplianceReport( + AggregateFrameworkComplianceReportRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AggregateFrameworkComplianceReportResponse) { + requests.add(request); + responseObserver.onNext(((AggregateFrameworkComplianceReportResponse) 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 AggregateFrameworkComplianceReport," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AggregateFrameworkComplianceReportResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClientHttpJsonTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClientHttpJsonTest.java new file mode 100644 index 000000000000..274599489711 --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClientHttpJsonTest.java @@ -0,0 +1,937 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListControlComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFindingSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFrameworkComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.cloudsecuritycompliance.v1.stub.HttpJsonMonitoringStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MonitoringClientHttpJsonTest { + private static MockHttpService mockService; + private static MonitoringClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonMonitoringStub.getMethodDescriptors(), MonitoringSettings.getDefaultEndpoint()); + MonitoringSettings settings = + MonitoringSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + MonitoringSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MonitoringClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listFrameworkComplianceSummariesTest() throws Exception { + FrameworkComplianceSummary responsesElement = FrameworkComplianceSummary.newBuilder().build(); + ListFrameworkComplianceSummariesResponse expectedResponse = + ListFrameworkComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListFrameworkComplianceSummariesPagedResponse pagedListResponse = + client.listFrameworkComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFrameworkComplianceSummariesList().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 listFrameworkComplianceSummariesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listFrameworkComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkComplianceSummariesTest2() throws Exception { + FrameworkComplianceSummary responsesElement = FrameworkComplianceSummary.newBuilder().build(); + ListFrameworkComplianceSummariesResponse expectedResponse = + ListFrameworkComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFrameworkComplianceSummariesPagedResponse pagedListResponse = + client.listFrameworkComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFrameworkComplianceSummariesList().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 listFrameworkComplianceSummariesExceptionTest2() 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.listFrameworkComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkComplianceSummariesTest3() throws Exception { + FrameworkComplianceSummary responsesElement = FrameworkComplianceSummary.newBuilder().build(); + ListFrameworkComplianceSummariesResponse expectedResponse = + ListFrameworkComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFrameworkComplianceSummariesPagedResponse pagedListResponse = + client.listFrameworkComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFrameworkComplianceSummariesList().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 listFrameworkComplianceSummariesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFrameworkComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkComplianceSummariesTest4() throws Exception { + FrameworkComplianceSummary responsesElement = FrameworkComplianceSummary.newBuilder().build(); + ListFrameworkComplianceSummariesResponse expectedResponse = + ListFrameworkComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListFrameworkComplianceSummariesPagedResponse pagedListResponse = + client.listFrameworkComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFrameworkComplianceSummariesList().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 listFrameworkComplianceSummariesExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listFrameworkComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingSummariesTest() throws Exception { + FindingSummary responsesElement = FindingSummary.newBuilder().build(); + ListFindingSummariesResponse expectedResponse = + ListFindingSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFindingSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListFindingSummariesPagedResponse pagedListResponse = client.listFindingSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingSummariesList().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 listFindingSummariesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listFindingSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingSummariesTest2() throws Exception { + FindingSummary responsesElement = FindingSummary.newBuilder().build(); + ListFindingSummariesResponse expectedResponse = + ListFindingSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFindingSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFindingSummariesPagedResponse pagedListResponse = client.listFindingSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingSummariesList().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 listFindingSummariesExceptionTest2() 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.listFindingSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingSummariesTest3() throws Exception { + FindingSummary responsesElement = FindingSummary.newBuilder().build(); + ListFindingSummariesResponse expectedResponse = + ListFindingSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFindingSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFindingSummariesPagedResponse pagedListResponse = client.listFindingSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingSummariesList().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 listFindingSummariesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFindingSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingSummariesTest4() throws Exception { + FindingSummary responsesElement = FindingSummary.newBuilder().build(); + ListFindingSummariesResponse expectedResponse = + ListFindingSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFindingSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListFindingSummariesPagedResponse pagedListResponse = client.listFindingSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingSummariesList().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 listFindingSummariesExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listFindingSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchFrameworkComplianceReportTest() throws Exception { + FrameworkComplianceReport expectedResponse = + FrameworkComplianceReport.newBuilder() + .setFramework("framework546173438") + .setFrameworkDescription("frameworkDescription-790450402") + .setUpdateTime(Timestamp.newBuilder().build()) + .setControlAssessmentDetails(ControlAssessmentDetails.newBuilder().build()) + .addAllSupportedCloudProviders(new ArrayList()) + .addAllFrameworkCategories(new ArrayList()) + .setFrameworkDisplayName("frameworkDisplayName-1646722673") + .setName( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setMajorRevisionId(612576889) + .setMinorRevisionId(-1736456587) + .addAllTargetResourceDetails(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + + FrameworkComplianceReport actualResponse = client.fetchFrameworkComplianceReport(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 fetchFrameworkComplianceReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + client.fetchFrameworkComplianceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchFrameworkComplianceReportTest2() throws Exception { + FrameworkComplianceReport expectedResponse = + FrameworkComplianceReport.newBuilder() + .setFramework("framework546173438") + .setFrameworkDescription("frameworkDescription-790450402") + .setUpdateTime(Timestamp.newBuilder().build()) + .setControlAssessmentDetails(ControlAssessmentDetails.newBuilder().build()) + .addAllSupportedCloudProviders(new ArrayList()) + .addAllFrameworkCategories(new ArrayList()) + .setFrameworkDisplayName("frameworkDisplayName-1646722673") + .setName( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setMajorRevisionId(612576889) + .setMinorRevisionId(-1736456587) + .addAllTargetResourceDetails(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-6906/locations/location-6906/frameworkComplianceReports/frameworkComplianceReport-6906"; + + FrameworkComplianceReport actualResponse = client.fetchFrameworkComplianceReport(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 fetchFrameworkComplianceReportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-6906/locations/location-6906/frameworkComplianceReports/frameworkComplianceReport-6906"; + client.fetchFrameworkComplianceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listControlComplianceSummariesTest() throws Exception { + ControlComplianceSummary responsesElement = ControlComplianceSummary.newBuilder().build(); + ListControlComplianceSummariesResponse expectedResponse = + ListControlComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllControlComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FrameworkComplianceReportName parent = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + + ListControlComplianceSummariesPagedResponse pagedListResponse = + client.listControlComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getControlComplianceSummariesList().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 listControlComplianceSummariesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FrameworkComplianceReportName parent = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + client.listControlComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listControlComplianceSummariesTest2() throws Exception { + ControlComplianceSummary responsesElement = ControlComplianceSummary.newBuilder().build(); + ListControlComplianceSummariesResponse expectedResponse = + ListControlComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllControlComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "organizations/organization-6491/locations/location-6491/frameworkComplianceReports/frameworkComplianceReport-6491"; + + ListControlComplianceSummariesPagedResponse pagedListResponse = + client.listControlComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getControlComplianceSummariesList().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 listControlComplianceSummariesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "organizations/organization-6491/locations/location-6491/frameworkComplianceReports/frameworkComplianceReport-6491"; + client.listControlComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void aggregateFrameworkComplianceReportTest() throws Exception { + AggregateFrameworkComplianceReportResponse expectedResponse = + AggregateFrameworkComplianceReportResponse.newBuilder() + .addAllAggregatedComplianceReports(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + + AggregateFrameworkComplianceReportResponse actualResponse = + client.aggregateFrameworkComplianceReport(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 aggregateFrameworkComplianceReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + client.aggregateFrameworkComplianceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void aggregateFrameworkComplianceReportTest2() throws Exception { + AggregateFrameworkComplianceReportResponse expectedResponse = + AggregateFrameworkComplianceReportResponse.newBuilder() + .addAllAggregatedComplianceReports(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-6906/locations/location-6906/frameworkComplianceReports/frameworkComplianceReport-6906"; + + AggregateFrameworkComplianceReportResponse actualResponse = + client.aggregateFrameworkComplianceReport(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 aggregateFrameworkComplianceReportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-6906/locations/location-6906/frameworkComplianceReports/frameworkComplianceReport-6906"; + client.aggregateFrameworkComplianceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("organizations/organization-1936") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("organizations/organization-1936") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClientTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClientTest.java new file mode 100644 index 000000000000..db8aa7c7ef1f --- /dev/null +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClientTest.java @@ -0,0 +1,853 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListControlComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFindingSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListFrameworkComplianceSummariesPagedResponse; +import static com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MonitoringClientTest { + private static MockLocations mockLocations; + private static MockMonitoring mockMonitoring; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private MonitoringClient client; + + @BeforeClass + public static void startStaticServer() { + mockMonitoring = new MockMonitoring(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockMonitoring, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + MonitoringSettings settings = + MonitoringSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MonitoringClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listFrameworkComplianceSummariesTest() throws Exception { + FrameworkComplianceSummary responsesElement = FrameworkComplianceSummary.newBuilder().build(); + ListFrameworkComplianceSummariesResponse expectedResponse = + ListFrameworkComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListFrameworkComplianceSummariesPagedResponse pagedListResponse = + client.listFrameworkComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFrameworkComplianceSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFrameworkComplianceSummariesRequest actualRequest = + ((ListFrameworkComplianceSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFrameworkComplianceSummariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listFrameworkComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkComplianceSummariesTest2() throws Exception { + FrameworkComplianceSummary responsesElement = FrameworkComplianceSummary.newBuilder().build(); + ListFrameworkComplianceSummariesResponse expectedResponse = + ListFrameworkComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFrameworkComplianceSummariesPagedResponse pagedListResponse = + client.listFrameworkComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFrameworkComplianceSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFrameworkComplianceSummariesRequest actualRequest = + ((ListFrameworkComplianceSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFrameworkComplianceSummariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFrameworkComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkComplianceSummariesTest3() throws Exception { + FrameworkComplianceSummary responsesElement = FrameworkComplianceSummary.newBuilder().build(); + ListFrameworkComplianceSummariesResponse expectedResponse = + ListFrameworkComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFrameworkComplianceSummariesPagedResponse pagedListResponse = + client.listFrameworkComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFrameworkComplianceSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFrameworkComplianceSummariesRequest actualRequest = + ((ListFrameworkComplianceSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFrameworkComplianceSummariesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFrameworkComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkComplianceSummariesTest4() throws Exception { + FrameworkComplianceSummary responsesElement = FrameworkComplianceSummary.newBuilder().build(); + ListFrameworkComplianceSummariesResponse expectedResponse = + ListFrameworkComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFrameworkComplianceSummariesPagedResponse pagedListResponse = + client.listFrameworkComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFrameworkComplianceSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFrameworkComplianceSummariesRequest actualRequest = + ((ListFrameworkComplianceSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFrameworkComplianceSummariesExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFrameworkComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingSummariesTest() throws Exception { + FindingSummary responsesElement = FindingSummary.newBuilder().build(); + ListFindingSummariesResponse expectedResponse = + ListFindingSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFindingSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListFindingSummariesPagedResponse pagedListResponse = client.listFindingSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFindingSummariesRequest actualRequest = + ((ListFindingSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFindingSummariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listFindingSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingSummariesTest2() throws Exception { + FindingSummary responsesElement = FindingSummary.newBuilder().build(); + ListFindingSummariesResponse expectedResponse = + ListFindingSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFindingSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFindingSummariesPagedResponse pagedListResponse = client.listFindingSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFindingSummariesRequest actualRequest = + ((ListFindingSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFindingSummariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFindingSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingSummariesTest3() throws Exception { + FindingSummary responsesElement = FindingSummary.newBuilder().build(); + ListFindingSummariesResponse expectedResponse = + ListFindingSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFindingSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFindingSummariesPagedResponse pagedListResponse = client.listFindingSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFindingSummariesRequest actualRequest = + ((ListFindingSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFindingSummariesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFindingSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingSummariesTest4() throws Exception { + FindingSummary responsesElement = FindingSummary.newBuilder().build(); + ListFindingSummariesResponse expectedResponse = + ListFindingSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllFindingSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFindingSummariesPagedResponse pagedListResponse = client.listFindingSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFindingSummariesRequest actualRequest = + ((ListFindingSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFindingSummariesExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFindingSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchFrameworkComplianceReportTest() throws Exception { + FrameworkComplianceReport expectedResponse = + FrameworkComplianceReport.newBuilder() + .setFramework("framework546173438") + .setFrameworkDescription("frameworkDescription-790450402") + .setUpdateTime(Timestamp.newBuilder().build()) + .setControlAssessmentDetails(ControlAssessmentDetails.newBuilder().build()) + .addAllSupportedCloudProviders(new ArrayList()) + .addAllFrameworkCategories(new ArrayList()) + .setFrameworkDisplayName("frameworkDisplayName-1646722673") + .setName( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setMajorRevisionId(612576889) + .setMinorRevisionId(-1736456587) + .addAllTargetResourceDetails(new ArrayList()) + .build(); + mockMonitoring.addResponse(expectedResponse); + + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + + FrameworkComplianceReport actualResponse = client.fetchFrameworkComplianceReport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchFrameworkComplianceReportRequest actualRequest = + ((FetchFrameworkComplianceReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchFrameworkComplianceReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + client.fetchFrameworkComplianceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchFrameworkComplianceReportTest2() throws Exception { + FrameworkComplianceReport expectedResponse = + FrameworkComplianceReport.newBuilder() + .setFramework("framework546173438") + .setFrameworkDescription("frameworkDescription-790450402") + .setUpdateTime(Timestamp.newBuilder().build()) + .setControlAssessmentDetails(ControlAssessmentDetails.newBuilder().build()) + .addAllSupportedCloudProviders(new ArrayList()) + .addAllFrameworkCategories(new ArrayList()) + .setFrameworkDisplayName("frameworkDisplayName-1646722673") + .setName( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setMajorRevisionId(612576889) + .setMinorRevisionId(-1736456587) + .addAllTargetResourceDetails(new ArrayList()) + .build(); + mockMonitoring.addResponse(expectedResponse); + + String name = "name3373707"; + + FrameworkComplianceReport actualResponse = client.fetchFrameworkComplianceReport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchFrameworkComplianceReportRequest actualRequest = + ((FetchFrameworkComplianceReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchFrameworkComplianceReportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + String name = "name3373707"; + client.fetchFrameworkComplianceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listControlComplianceSummariesTest() throws Exception { + ControlComplianceSummary responsesElement = ControlComplianceSummary.newBuilder().build(); + ListControlComplianceSummariesResponse expectedResponse = + ListControlComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllControlComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + FrameworkComplianceReportName parent = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + + ListControlComplianceSummariesPagedResponse pagedListResponse = + client.listControlComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getControlComplianceSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListControlComplianceSummariesRequest actualRequest = + ((ListControlComplianceSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listControlComplianceSummariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + FrameworkComplianceReportName parent = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + client.listControlComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listControlComplianceSummariesTest2() throws Exception { + ControlComplianceSummary responsesElement = ControlComplianceSummary.newBuilder().build(); + ListControlComplianceSummariesResponse expectedResponse = + ListControlComplianceSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllControlComplianceSummaries(Arrays.asList(responsesElement)) + .build(); + mockMonitoring.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListControlComplianceSummariesPagedResponse pagedListResponse = + client.listControlComplianceSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getControlComplianceSummariesList().get(0), resources.get(0)); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListControlComplianceSummariesRequest actualRequest = + ((ListControlComplianceSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listControlComplianceSummariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + String parent = "parent-995424086"; + client.listControlComplianceSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void aggregateFrameworkComplianceReportTest() throws Exception { + AggregateFrameworkComplianceReportResponse expectedResponse = + AggregateFrameworkComplianceReportResponse.newBuilder() + .addAllAggregatedComplianceReports(new ArrayList()) + .build(); + mockMonitoring.addResponse(expectedResponse); + + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + + AggregateFrameworkComplianceReportResponse actualResponse = + client.aggregateFrameworkComplianceReport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AggregateFrameworkComplianceReportRequest actualRequest = + ((AggregateFrameworkComplianceReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void aggregateFrameworkComplianceReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + client.aggregateFrameworkComplianceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void aggregateFrameworkComplianceReportTest2() throws Exception { + AggregateFrameworkComplianceReportResponse expectedResponse = + AggregateFrameworkComplianceReportResponse.newBuilder() + .addAllAggregatedComplianceReports(new ArrayList()) + .build(); + mockMonitoring.addResponse(expectedResponse); + + String name = "name3373707"; + + AggregateFrameworkComplianceReportResponse actualResponse = + client.aggregateFrameworkComplianceReport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMonitoring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AggregateFrameworkComplianceReportRequest actualRequest = + ((AggregateFrameworkComplianceReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void aggregateFrameworkComplianceReportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMonitoring.addException(exception); + + try { + String name = "name3373707"; + client.aggregateFrameworkComplianceReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditGrpc.java b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditGrpc.java new file mode 100644 index 000000000000..2d7fb179b61e --- /dev/null +++ b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditGrpc.java @@ -0,0 +1,851 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                    + * Service describing handlers for resources
                                    + * 
                                    + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AuditGrpc { + + private AuditGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.cloudsecuritycompliance.v1.Audit"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse> + getGenerateFrameworkAuditScopeReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateFrameworkAuditScopeReport", + requestType = + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .class, + responseType = + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse> + getGenerateFrameworkAuditScopeReportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse> + getGenerateFrameworkAuditScopeReportMethod; + if ((getGenerateFrameworkAuditScopeReportMethod = + AuditGrpc.getGenerateFrameworkAuditScopeReportMethod) + == null) { + synchronized (AuditGrpc.class) { + if ((getGenerateFrameworkAuditScopeReportMethod = + AuditGrpc.getGenerateFrameworkAuditScopeReportMethod) + == null) { + AuditGrpc.getGenerateFrameworkAuditScopeReportMethod = + getGenerateFrameworkAuditScopeReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateFrameworkAuditScopeReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AuditMethodDescriptorSupplier("GenerateFrameworkAuditScopeReport")) + .build(); + } + } + } + return getGenerateFrameworkAuditScopeReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest, + com.google.longrunning.Operation> + getCreateFrameworkAuditMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFrameworkAudit", + requestType = com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest, + com.google.longrunning.Operation> + getCreateFrameworkAuditMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest, + com.google.longrunning.Operation> + getCreateFrameworkAuditMethod; + if ((getCreateFrameworkAuditMethod = AuditGrpc.getCreateFrameworkAuditMethod) == null) { + synchronized (AuditGrpc.class) { + if ((getCreateFrameworkAuditMethod = AuditGrpc.getCreateFrameworkAuditMethod) == null) { + AuditGrpc.getCreateFrameworkAuditMethod = + getCreateFrameworkAuditMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateFrameworkAudit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .CreateFrameworkAuditRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AuditMethodDescriptorSupplier("CreateFrameworkAudit")) + .build(); + } + } + } + return getCreateFrameworkAuditMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse> + getListFrameworkAuditsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFrameworkAudits", + requestType = com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest.class, + responseType = com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse> + getListFrameworkAuditsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse> + getListFrameworkAuditsMethod; + if ((getListFrameworkAuditsMethod = AuditGrpc.getListFrameworkAuditsMethod) == null) { + synchronized (AuditGrpc.class) { + if ((getListFrameworkAuditsMethod = AuditGrpc.getListFrameworkAuditsMethod) == null) { + AuditGrpc.getListFrameworkAuditsMethod = + getListFrameworkAuditsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFrameworkAudits")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkAuditsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AuditMethodDescriptorSupplier("ListFrameworkAudits")) + .build(); + } + } + } + return getListFrameworkAuditsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit> + getGetFrameworkAuditMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFrameworkAudit", + requestType = com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest.class, + responseType = com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit> + getGetFrameworkAuditMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit> + getGetFrameworkAuditMethod; + if ((getGetFrameworkAuditMethod = AuditGrpc.getGetFrameworkAuditMethod) == null) { + synchronized (AuditGrpc.class) { + if ((getGetFrameworkAuditMethod = AuditGrpc.getGetFrameworkAuditMethod) == null) { + AuditGrpc.getGetFrameworkAuditMethod = + getGetFrameworkAuditMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFrameworkAudit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit + .getDefaultInstance())) + .setSchemaDescriptor(new AuditMethodDescriptorSupplier("GetFrameworkAudit")) + .build(); + } + } + } + return getGetFrameworkAuditMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AuditStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuditStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuditStub(channel, callOptions); + } + }; + return AuditStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AuditBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuditBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuditBlockingV2Stub(channel, callOptions); + } + }; + return AuditBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AuditBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuditBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuditBlockingStub(channel, callOptions); + } + }; + return AuditBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AuditFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuditFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuditFutureStub(channel, callOptions); + } + }; + return AuditFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public interface AsyncService { + + /** + * + * + *
                                    +     * Generates an audit scope report for a framework.
                                    +     * 
                                    + */ + default void generateFrameworkAuditScopeReport( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateFrameworkAuditScopeReportMethod(), responseObserver); + } + + /** + * + * + *
                                    +     * Creates an audit scope report for a framework.
                                    +     * 
                                    + */ + default void createFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFrameworkAuditMethod(), responseObserver); + } + + /** + * + * + *
                                    +     * Lists the framework audits for a given organization, folder, or project.
                                    +     * 
                                    + */ + default void listFrameworkAudits( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFrameworkAuditsMethod(), responseObserver); + } + + /** + * + * + *
                                    +     * Gets the details for a framework audit.
                                    +     * 
                                    + */ + default void getFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFrameworkAuditMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Audit. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public abstract static class AuditImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AuditGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Audit. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public static final class AuditStub extends io.grpc.stub.AbstractAsyncStub { + private AuditStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuditStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuditStub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Generates an audit scope report for a framework.
                                    +     * 
                                    + */ + public void generateFrameworkAuditScopeReport( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateFrameworkAuditScopeReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                    +     * Creates an audit scope report for a framework.
                                    +     * 
                                    + */ + public void createFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFrameworkAuditMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                    +     * Lists the framework audits for a given organization, folder, or project.
                                    +     * 
                                    + */ + public void listFrameworkAudits( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFrameworkAuditsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                    +     * Gets the details for a framework audit.
                                    +     * 
                                    + */ + public void getFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFrameworkAuditMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Audit. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public static final class AuditBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AuditBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuditBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuditBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Generates an audit scope report for a framework.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + generateFrameworkAuditScopeReport( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateFrameworkAuditScopeReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Creates an audit scope report for a framework.
                                    +     * 
                                    + */ + public com.google.longrunning.Operation createFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFrameworkAuditMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Lists the framework audits for a given organization, folder, or project.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + listFrameworkAudits( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFrameworkAuditsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Gets the details for a framework audit.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFrameworkAuditMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service Audit. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public static final class AuditBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AuditBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuditBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuditBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Generates an audit scope report for a framework.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + generateFrameworkAuditScopeReport( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateFrameworkAuditScopeReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Creates an audit scope report for a framework.
                                    +     * 
                                    + */ + public com.google.longrunning.Operation createFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFrameworkAuditMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Lists the framework audits for a given organization, folder, or project.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + listFrameworkAudits( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFrameworkAuditsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Gets the details for a framework audit.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFrameworkAuditMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Audit. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public static final class AuditFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AuditFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuditFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuditFutureStub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Generates an audit scope report for a framework.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse> + generateFrameworkAuditScopeReport( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateFrameworkAuditScopeReportMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                    +     * Creates an audit scope report for a framework.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture + createFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFrameworkAuditMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                    +     * Lists the framework audits for a given organization, folder, or project.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse> + listFrameworkAudits( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFrameworkAuditsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                    +     * Gets the details for a framework audit.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit> + getFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFrameworkAuditMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GENERATE_FRAMEWORK_AUDIT_SCOPE_REPORT = 0; + private static final int METHODID_CREATE_FRAMEWORK_AUDIT = 1; + private static final int METHODID_LIST_FRAMEWORK_AUDITS = 2; + private static final int METHODID_GET_FRAMEWORK_AUDIT = 3; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GENERATE_FRAMEWORK_AUDIT_SCOPE_REPORT: + serviceImpl.generateFrameworkAuditScopeReport( + (com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse>) + responseObserver); + break; + case METHODID_CREATE_FRAMEWORK_AUDIT: + serviceImpl.createFrameworkAudit( + (com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FRAMEWORK_AUDITS: + serviceImpl.listFrameworkAudits( + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse>) + responseObserver); + break; + case METHODID_GET_FRAMEWORK_AUDIT: + serviceImpl.getFrameworkAudit( + (com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGenerateFrameworkAuditScopeReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportRequest, + com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse>( + service, METHODID_GENERATE_FRAMEWORK_AUDIT_SCOPE_REPORT))) + .addMethod( + getCreateFrameworkAuditMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_FRAMEWORK_AUDIT))) + .addMethod( + getListFrameworkAuditsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse>( + service, METHODID_LIST_FRAMEWORK_AUDITS))) + .addMethod( + getGetFrameworkAuditMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit>( + service, METHODID_GET_FRAMEWORK_AUDIT))) + .build(); + } + + private abstract static class AuditBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AuditBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Audit"); + } + } + + private static final class AuditFileDescriptorSupplier extends AuditBaseDescriptorSupplier { + AuditFileDescriptorSupplier() {} + } + + private static final class AuditMethodDescriptorSupplier extends AuditBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AuditMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AuditGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AuditFileDescriptorSupplier()) + .addMethod(getGenerateFrameworkAuditScopeReportMethod()) + .addMethod(getCreateFrameworkAuditMethod()) + .addMethod(getListFrameworkAuditsMethod()) + .addMethod(getGetFrameworkAuditMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceGrpc.java b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceGrpc.java new file mode 100644 index 000000000000..60ea2c1ccf4e --- /dev/null +++ b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceGrpc.java @@ -0,0 +1,627 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                    + * Service describing CmEnrollment related RPCs for
                                    + * complianceManager.
                                    + * 
                                    + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class CmEnrollmentServiceGrpc { + + private CmEnrollmentServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment> + getUpdateCmEnrollmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCmEnrollment", + requestType = com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest.class, + responseType = com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment> + getUpdateCmEnrollmentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment> + getUpdateCmEnrollmentMethod; + if ((getUpdateCmEnrollmentMethod = CmEnrollmentServiceGrpc.getUpdateCmEnrollmentMethod) + == null) { + synchronized (CmEnrollmentServiceGrpc.class) { + if ((getUpdateCmEnrollmentMethod = CmEnrollmentServiceGrpc.getUpdateCmEnrollmentMethod) + == null) { + CmEnrollmentServiceGrpc.getUpdateCmEnrollmentMethod = + getUpdateCmEnrollmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCmEnrollment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment + .getDefaultInstance())) + .setSchemaDescriptor( + new CmEnrollmentServiceMethodDescriptorSupplier("UpdateCmEnrollment")) + .build(); + } + } + } + return getUpdateCmEnrollmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest, + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse> + getCalculateEffectiveCmEnrollmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CalculateEffectiveCmEnrollment", + requestType = + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest.class, + responseType = + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest, + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse> + getCalculateEffectiveCmEnrollmentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest, + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse> + getCalculateEffectiveCmEnrollmentMethod; + if ((getCalculateEffectiveCmEnrollmentMethod = + CmEnrollmentServiceGrpc.getCalculateEffectiveCmEnrollmentMethod) + == null) { + synchronized (CmEnrollmentServiceGrpc.class) { + if ((getCalculateEffectiveCmEnrollmentMethod = + CmEnrollmentServiceGrpc.getCalculateEffectiveCmEnrollmentMethod) + == null) { + CmEnrollmentServiceGrpc.getCalculateEffectiveCmEnrollmentMethod = + getCalculateEffectiveCmEnrollmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CalculateEffectiveCmEnrollment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .CalculateEffectiveCmEnrollmentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .CalculateEffectiveCmEnrollmentResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CmEnrollmentServiceMethodDescriptorSupplier( + "CalculateEffectiveCmEnrollment")) + .build(); + } + } + } + return getCalculateEffectiveCmEnrollmentMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CmEnrollmentServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CmEnrollmentServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmEnrollmentServiceStub(channel, callOptions); + } + }; + return CmEnrollmentServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static CmEnrollmentServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CmEnrollmentServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmEnrollmentServiceBlockingV2Stub(channel, callOptions); + } + }; + return CmEnrollmentServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CmEnrollmentServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CmEnrollmentServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmEnrollmentServiceBlockingStub(channel, callOptions); + } + }; + return CmEnrollmentServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CmEnrollmentServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CmEnrollmentServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmEnrollmentServiceFutureStub(channel, callOptions); + } + }; + return CmEnrollmentServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                    +   * Service describing CmEnrollment related RPCs for
                                    +   * complianceManager.
                                    +   * 
                                    + */ + public interface AsyncService { + + /** + * + * + *
                                    +     * Updates the Compliance Manager enrollment for a resource to facilitate
                                    +     * an audit.
                                    +     * Use this method to enroll a resource in Compliance Manager or to
                                    +     * create or update feature-specific configurations.
                                    +     * 
                                    + */ + default void updateCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCmEnrollmentMethod(), responseObserver); + } + + /** + * + * + *
                                    +     * Calculates the effective Compliance Manager enrollment for a resource.
                                    +     * An effective enrollment is either a direct enrollment of a
                                    +     * resource (if it exists), or an enrollment of the closest parent of a
                                    +     * resource that's enrolled in Compliance Manager.
                                    +     * 
                                    + */ + default void calculateEffectiveCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCalculateEffectiveCmEnrollmentMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service CmEnrollmentService. + * + *
                                    +   * Service describing CmEnrollment related RPCs for
                                    +   * complianceManager.
                                    +   * 
                                    + */ + public abstract static class CmEnrollmentServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return CmEnrollmentServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service CmEnrollmentService. + * + *
                                    +   * Service describing CmEnrollment related RPCs for
                                    +   * complianceManager.
                                    +   * 
                                    + */ + public static final class CmEnrollmentServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CmEnrollmentServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CmEnrollmentServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmEnrollmentServiceStub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Updates the Compliance Manager enrollment for a resource to facilitate
                                    +     * an audit.
                                    +     * Use this method to enroll a resource in Compliance Manager or to
                                    +     * create or update feature-specific configurations.
                                    +     * 
                                    + */ + public void updateCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCmEnrollmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                    +     * Calculates the effective Compliance Manager enrollment for a resource.
                                    +     * An effective enrollment is either a direct enrollment of a
                                    +     * resource (if it exists), or an enrollment of the closest parent of a
                                    +     * resource that's enrolled in Compliance Manager.
                                    +     * 
                                    + */ + public void calculateEffectiveCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCalculateEffectiveCmEnrollmentMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service CmEnrollmentService. + * + *
                                    +   * Service describing CmEnrollment related RPCs for
                                    +   * complianceManager.
                                    +   * 
                                    + */ + public static final class CmEnrollmentServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private CmEnrollmentServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CmEnrollmentServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmEnrollmentServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Updates the Compliance Manager enrollment for a resource to facilitate
                                    +     * an audit.
                                    +     * Use this method to enroll a resource in Compliance Manager or to
                                    +     * create or update feature-specific configurations.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment updateCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateCmEnrollmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Calculates the effective Compliance Manager enrollment for a resource.
                                    +     * An effective enrollment is either a direct enrollment of a
                                    +     * resource (if it exists), or an enrollment of the closest parent of a
                                    +     * resource that's enrolled in Compliance Manager.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + calculateEffectiveCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCalculateEffectiveCmEnrollmentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service CmEnrollmentService. + * + *
                                    +   * Service describing CmEnrollment related RPCs for
                                    +   * complianceManager.
                                    +   * 
                                    + */ + public static final class CmEnrollmentServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CmEnrollmentServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CmEnrollmentServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmEnrollmentServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Updates the Compliance Manager enrollment for a resource to facilitate
                                    +     * an audit.
                                    +     * Use this method to enroll a resource in Compliance Manager or to
                                    +     * create or update feature-specific configurations.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment updateCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCmEnrollmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Calculates the effective Compliance Manager enrollment for a resource.
                                    +     * An effective enrollment is either a direct enrollment of a
                                    +     * resource (if it exists), or an enrollment of the closest parent of a
                                    +     * resource that's enrolled in Compliance Manager.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + calculateEffectiveCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCalculateEffectiveCmEnrollmentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service CmEnrollmentService. + * + *
                                    +   * Service describing CmEnrollment related RPCs for
                                    +   * complianceManager.
                                    +   * 
                                    + */ + public static final class CmEnrollmentServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CmEnrollmentServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CmEnrollmentServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmEnrollmentServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Updates the Compliance Manager enrollment for a resource to facilitate
                                    +     * an audit.
                                    +     * Use this method to enroll a resource in Compliance Manager or to
                                    +     * create or update feature-specific configurations.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment> + updateCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCmEnrollmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                    +     * Calculates the effective Compliance Manager enrollment for a resource.
                                    +     * An effective enrollment is either a direct enrollment of a
                                    +     * resource (if it exists), or an enrollment of the closest parent of a
                                    +     * resource that's enrolled in Compliance Manager.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse> + calculateEffectiveCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCalculateEffectiveCmEnrollmentMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_UPDATE_CM_ENROLLMENT = 0; + private static final int METHODID_CALCULATE_EFFECTIVE_CM_ENROLLMENT = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_UPDATE_CM_ENROLLMENT: + serviceImpl.updateCmEnrollment( + (com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment>) + responseObserver); + break; + case METHODID_CALCULATE_EFFECTIVE_CM_ENROLLMENT: + serviceImpl.calculateEffectiveCmEnrollment( + (com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .CalculateEffectiveCmEnrollmentResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getUpdateCmEnrollmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment>( + service, METHODID_UPDATE_CM_ENROLLMENT))) + .addMethod( + getCalculateEffectiveCmEnrollmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1 + .CalculateEffectiveCmEnrollmentRequest, + com.google.cloud.cloudsecuritycompliance.v1 + .CalculateEffectiveCmEnrollmentResponse>( + service, METHODID_CALCULATE_EFFECTIVE_CM_ENROLLMENT))) + .build(); + } + + private abstract static class CmEnrollmentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CmEnrollmentServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CmEnrollmentService"); + } + } + + private static final class CmEnrollmentServiceFileDescriptorSupplier + extends CmEnrollmentServiceBaseDescriptorSupplier { + CmEnrollmentServiceFileDescriptorSupplier() {} + } + + private static final class CmEnrollmentServiceMethodDescriptorSupplier + extends CmEnrollmentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + CmEnrollmentServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CmEnrollmentServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CmEnrollmentServiceFileDescriptorSupplier()) + .addMethod(getUpdateCmEnrollmentMethod()) + .addMethod(getCalculateEffectiveCmEnrollmentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigGrpc.java b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigGrpc.java index 5eb99acba6b0..ddd16fbf9a83 100644 --- a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigGrpc.java +++ b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigGrpc.java @@ -25,9 +25,6 @@ * configurations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/cloudsecuritycompliance/v1/config.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConfigGrpc { @@ -562,9 +559,10 @@ public interface AsyncService { * * *
                                    -     * Lists all Frameworks (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each Framework is returned.
                                    +     * Lists the frameworks (both built-in and custom) that are available within
                                    +     * the parent resource. The latest major version of each framework is
                                    +     * returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ default void listFrameworks( @@ -580,12 +578,10 @@ default void listFrameworks( * * *
                                    -     * Gets details of a single Framework.
                                    -     * This method retrieves a Framework resource, which can be either Built-in or
                                    -     * Custom, identified by its name.
                                    -     * By default, the latest major version of the Framework is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a framework.
                                    +     * This method retrieves the latest major version of the framework.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ default void getFramework( @@ -600,9 +596,9 @@ default void getFramework( * * *
                                    -     * Creates a new Framework with type `Custom` under a given parent resource.
                                    -     * Frameworks with type `Built-in` are managed by Google and cannot be created
                                    -     * through this API.
                                    +     * Creates a custom framework in a given parent resource.
                                    +     * You can't create built-in frameworks because those are managed by
                                    +     * Google.
                                          * 
                                    */ default void createFramework( @@ -617,15 +613,16 @@ default void createFramework( * * *
                                    -     * Updates a single Framework.
                                    -     * This method allows for partial updates of a Framework resource. The fields
                                    -     * to be updated are specified using the `update_mask`.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `framework` body will be used to overwrite the existing resource.
                                    -     * This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     * A successful update will result in a new version of the Framework.
                                    +     * Updates a custom framework.
                                    +     * This method allows for partial updates of a framework. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `framework` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update frameworks with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the framework.
                                          * 
                                    */ default void updateFramework( @@ -640,13 +637,12 @@ default void updateFramework( * * *
                                    -     * Deletes a single Custom Framework, including all its minor and
                                    -     * minor revisions.
                                    -     * - This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     *   Built-in Frameworks cannot be deleted.
                                    -     * - The Framework cannot be deleted if it is currently deployed on any
                                    -     *   resource.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom framework, including all its major and
                                    +     * minor revisions. Consider the following:
                                    +     * - You can't delete built-in frameworks. You can only delete frameworks
                                    +     *   with type `CUSTOM`.
                                    +     * - You can't delete frameworks that are deployed to a resource.
                                    +     * - You can't restore a deleted framework. This action is permanent.
                                          * 
                                    */ default void deleteFramework( @@ -660,9 +656,10 @@ default void deleteFramework( * * *
                                    -     * Lists all CloudControls (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each CloudControl is returned.
                                    +     * Lists the cloud controls (both built-in and custom) that are available
                                    +     * in a given parent resource. The latest major version of each cloud control
                                    +     * is returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ default void listCloudControls( @@ -678,12 +675,12 @@ default void listCloudControls( * * *
                                    -     * Gets details of a single CloudControl.
                                    -     * This method retrieves a CloudControl resource, which can be either Built-in
                                    -     * or Custom, identified by its name.
                                    -     * By default, the latest major version of the CloudControl is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a cloud control.
                                    +     * This method retrieves the latest major version of a cloud control that
                                    +     * you identify by name.
                                    +     * By default, the latest major version of the cloud control is returned.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ default void getCloudControl( @@ -698,9 +695,10 @@ default void getCloudControl( * * *
                                    -     * Creates a new CloudControl with type `Custom` under a given parent
                                    -     * resource. `Built-in` CloudControls are managed by Google and cannot be
                                    -     * created through this API.
                                    +     * Creates a custom cloud control in a given parent
                                    +     * resource.
                                    +     * You can't create built-in cloud controls because those are managed by
                                    +     * Google.
                                          * 
                                    */ default void createCloudControl( @@ -715,14 +713,16 @@ default void createCloudControl( * * *
                                    -     * Updates a single CloudControl.
                                    -     * This method allows for partial updates of a Custom CloudControl resource.
                                    -     * Built-in CloudControls cannot be updated.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `cloud_control` body will be used to overwrite the existing resource.
                                    -     * A successful update will result in a new version of the CloudControl.
                                    +     * Updates a custom cloud control.
                                    +     * This method allows for partial updates of a cloud control. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `cloud_control` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update cloud controls with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the cloud control.
                                          * 
                                    */ default void updateCloudControl( @@ -737,13 +737,13 @@ default void updateCloudControl( * * *
                                    -     * Deletes a single Custom CloudControl, including all its
                                    -     * major and minor revisions.
                                    -     * - This operation can only be performed on CloudControls with type `CUSTOM`.
                                    -     *   Built-in CloudControls cannot be deleted.
                                    -     * - The CloudControl cannot be deleted if any of its revisions are currently
                                    -     *   referenced by any Framework.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom cloud control, including all its
                                    +     * major and minor revisions. Consider the following:
                                    +     * - You can't delete built-in cloud controls. You can only delete cloud
                                    +     *   controls with type `CUSTOM`.
                                    +     * - You can't delete cloud controls if any of the versions are referenced
                                    +     *   by a framework.
                                    +     * - You can't restore a deleted cloud control. This action is permanent.
                                          * 
                                    */ default void deleteCloudControl( @@ -792,9 +792,10 @@ protected ConfigStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpti * * *
                                    -     * Lists all Frameworks (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each Framework is returned.
                                    +     * Lists the frameworks (both built-in and custom) that are available within
                                    +     * the parent resource. The latest major version of each framework is
                                    +     * returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ public void listFrameworks( @@ -812,12 +813,10 @@ public void listFrameworks( * * *
                                    -     * Gets details of a single Framework.
                                    -     * This method retrieves a Framework resource, which can be either Built-in or
                                    -     * Custom, identified by its name.
                                    -     * By default, the latest major version of the Framework is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a framework.
                                    +     * This method retrieves the latest major version of the framework.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ public void getFramework( @@ -834,9 +833,9 @@ public void getFramework( * * *
                                    -     * Creates a new Framework with type `Custom` under a given parent resource.
                                    -     * Frameworks with type `Built-in` are managed by Google and cannot be created
                                    -     * through this API.
                                    +     * Creates a custom framework in a given parent resource.
                                    +     * You can't create built-in frameworks because those are managed by
                                    +     * Google.
                                          * 
                                    */ public void createFramework( @@ -853,15 +852,16 @@ public void createFramework( * * *
                                    -     * Updates a single Framework.
                                    -     * This method allows for partial updates of a Framework resource. The fields
                                    -     * to be updated are specified using the `update_mask`.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `framework` body will be used to overwrite the existing resource.
                                    -     * This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     * A successful update will result in a new version of the Framework.
                                    +     * Updates a custom framework.
                                    +     * This method allows for partial updates of a framework. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `framework` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update frameworks with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the framework.
                                          * 
                                    */ public void updateFramework( @@ -878,13 +878,12 @@ public void updateFramework( * * *
                                    -     * Deletes a single Custom Framework, including all its minor and
                                    -     * minor revisions.
                                    -     * - This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     *   Built-in Frameworks cannot be deleted.
                                    -     * - The Framework cannot be deleted if it is currently deployed on any
                                    -     *   resource.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom framework, including all its major and
                                    +     * minor revisions. Consider the following:
                                    +     * - You can't delete built-in frameworks. You can only delete frameworks
                                    +     *   with type `CUSTOM`.
                                    +     * - You can't delete frameworks that are deployed to a resource.
                                    +     * - You can't restore a deleted framework. This action is permanent.
                                          * 
                                    */ public void deleteFramework( @@ -900,9 +899,10 @@ public void deleteFramework( * * *
                                    -     * Lists all CloudControls (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each CloudControl is returned.
                                    +     * Lists the cloud controls (both built-in and custom) that are available
                                    +     * in a given parent resource. The latest major version of each cloud control
                                    +     * is returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ public void listCloudControls( @@ -920,12 +920,12 @@ public void listCloudControls( * * *
                                    -     * Gets details of a single CloudControl.
                                    -     * This method retrieves a CloudControl resource, which can be either Built-in
                                    -     * or Custom, identified by its name.
                                    -     * By default, the latest major version of the CloudControl is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a cloud control.
                                    +     * This method retrieves the latest major version of a cloud control that
                                    +     * you identify by name.
                                    +     * By default, the latest major version of the cloud control is returned.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ public void getCloudControl( @@ -942,9 +942,10 @@ public void getCloudControl( * * *
                                    -     * Creates a new CloudControl with type `Custom` under a given parent
                                    -     * resource. `Built-in` CloudControls are managed by Google and cannot be
                                    -     * created through this API.
                                    +     * Creates a custom cloud control in a given parent
                                    +     * resource.
                                    +     * You can't create built-in cloud controls because those are managed by
                                    +     * Google.
                                          * 
                                    */ public void createCloudControl( @@ -961,14 +962,16 @@ public void createCloudControl( * * *
                                    -     * Updates a single CloudControl.
                                    -     * This method allows for partial updates of a Custom CloudControl resource.
                                    -     * Built-in CloudControls cannot be updated.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `cloud_control` body will be used to overwrite the existing resource.
                                    -     * A successful update will result in a new version of the CloudControl.
                                    +     * Updates a custom cloud control.
                                    +     * This method allows for partial updates of a cloud control. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `cloud_control` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update cloud controls with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the cloud control.
                                          * 
                                    */ public void updateCloudControl( @@ -985,13 +988,13 @@ public void updateCloudControl( * * *
                                    -     * Deletes a single Custom CloudControl, including all its
                                    -     * major and minor revisions.
                                    -     * - This operation can only be performed on CloudControls with type `CUSTOM`.
                                    -     *   Built-in CloudControls cannot be deleted.
                                    -     * - The CloudControl cannot be deleted if any of its revisions are currently
                                    -     *   referenced by any Framework.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom cloud control, including all its
                                    +     * major and minor revisions. Consider the following:
                                    +     * - You can't delete built-in cloud controls. You can only delete cloud
                                    +     *   controls with type `CUSTOM`.
                                    +     * - You can't delete cloud controls if any of the versions are referenced
                                    +     *   by a framework.
                                    +     * - You can't restore a deleted cloud control. This action is permanent.
                                          * 
                                    */ public void deleteCloudControl( @@ -1027,14 +1030,16 @@ protected ConfigBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * * *
                                    -     * Lists all Frameworks (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each Framework is returned.
                                    +     * Lists the frameworks (both built-in and custom) that are available within
                                    +     * the parent resource. The latest major version of each framework is
                                    +     * returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse listFrameworks( - com.google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFrameworksMethod(), getCallOptions(), request); } @@ -1042,17 +1047,16 @@ public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse listFr * * *
                                    -     * Gets details of a single Framework.
                                    -     * This method retrieves a Framework resource, which can be either Built-in or
                                    -     * Custom, identified by its name.
                                    -     * By default, the latest major version of the Framework is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a framework.
                                    +     * This method retrieves the latest major version of the framework.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFramework( - com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFrameworkMethod(), getCallOptions(), request); } @@ -1060,14 +1064,15 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFramework( * * *
                                    -     * Creates a new Framework with type `Custom` under a given parent resource.
                                    -     * Frameworks with type `Built-in` are managed by Google and cannot be created
                                    -     * through this API.
                                    +     * Creates a custom framework in a given parent resource.
                                    +     * You can't create built-in frameworks because those are managed by
                                    +     * Google.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.Framework createFramework( - com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFrameworkMethod(), getCallOptions(), request); } @@ -1075,20 +1080,22 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework createFramework( * * *
                                    -     * Updates a single Framework.
                                    -     * This method allows for partial updates of a Framework resource. The fields
                                    -     * to be updated are specified using the `update_mask`.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `framework` body will be used to overwrite the existing resource.
                                    -     * This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     * A successful update will result in a new version of the Framework.
                                    +     * Updates a custom framework.
                                    +     * This method allows for partial updates of a framework. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `framework` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update frameworks with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the framework.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.Framework updateFramework( - com.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFrameworkMethod(), getCallOptions(), request); } @@ -1096,18 +1103,18 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework updateFramework( * * *
                                    -     * Deletes a single Custom Framework, including all its minor and
                                    -     * minor revisions.
                                    -     * - This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     *   Built-in Frameworks cannot be deleted.
                                    -     * - The Framework cannot be deleted if it is currently deployed on any
                                    -     *   resource.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom framework, including all its major and
                                    +     * minor revisions. Consider the following:
                                    +     * - You can't delete built-in frameworks. You can only delete frameworks
                                    +     *   with type `CUSTOM`.
                                    +     * - You can't delete frameworks that are deployed to a resource.
                                    +     * - You can't restore a deleted framework. This action is permanent.
                                          * 
                                    */ public com.google.protobuf.Empty deleteFramework( - com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFrameworkMethod(), getCallOptions(), request); } @@ -1115,14 +1122,16 @@ public com.google.protobuf.Empty deleteFramework( * * *
                                    -     * Lists all CloudControls (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each CloudControl is returned.
                                    +     * Lists the cloud controls (both built-in and custom) that are available
                                    +     * in a given parent resource. The latest major version of each cloud control
                                    +     * is returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse listCloudControls( - com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCloudControlsMethod(), getCallOptions(), request); } @@ -1130,17 +1139,18 @@ public com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse lis * * *
                                    -     * Gets details of a single CloudControl.
                                    -     * This method retrieves a CloudControl resource, which can be either Built-in
                                    -     * or Custom, identified by its name.
                                    -     * By default, the latest major version of the CloudControl is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a cloud control.
                                    +     * This method retrieves the latest major version of a cloud control that
                                    +     * you identify by name.
                                    +     * By default, the latest major version of the cloud control is returned.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl getCloudControl( - com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCloudControlMethod(), getCallOptions(), request); } @@ -1148,14 +1158,16 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl getCloudControl( * * *
                                    -     * Creates a new CloudControl with type `Custom` under a given parent
                                    -     * resource. `Built-in` CloudControls are managed by Google and cannot be
                                    -     * created through this API.
                                    +     * Creates a custom cloud control in a given parent
                                    +     * resource.
                                    +     * You can't create built-in cloud controls because those are managed by
                                    +     * Google.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl createCloudControl( - com.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCloudControlMethod(), getCallOptions(), request); } @@ -1163,19 +1175,22 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl createCloudContr * * *
                                    -     * Updates a single CloudControl.
                                    -     * This method allows for partial updates of a Custom CloudControl resource.
                                    -     * Built-in CloudControls cannot be updated.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `cloud_control` body will be used to overwrite the existing resource.
                                    -     * A successful update will result in a new version of the CloudControl.
                                    +     * Updates a custom cloud control.
                                    +     * This method allows for partial updates of a cloud control. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `cloud_control` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update cloud controls with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the cloud control.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl updateCloudControl( - com.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCloudControlMethod(), getCallOptions(), request); } @@ -1183,18 +1198,19 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl updateCloudContr * * *
                                    -     * Deletes a single Custom CloudControl, including all its
                                    -     * major and minor revisions.
                                    -     * - This operation can only be performed on CloudControls with type `CUSTOM`.
                                    -     *   Built-in CloudControls cannot be deleted.
                                    -     * - The CloudControl cannot be deleted if any of its revisions are currently
                                    -     *   referenced by any Framework.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom cloud control, including all its
                                    +     * major and minor revisions. Consider the following:
                                    +     * - You can't delete built-in cloud controls. You can only delete cloud
                                    +     *   controls with type `CUSTOM`.
                                    +     * - You can't delete cloud controls if any of the versions are referenced
                                    +     *   by a framework.
                                    +     * - You can't restore a deleted cloud control. This action is permanent.
                                          * 
                                    */ public com.google.protobuf.Empty deleteCloudControl( - com.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCloudControlMethod(), getCallOptions(), request); } } @@ -1222,9 +1238,10 @@ protected ConfigBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
                                    -     * Lists all Frameworks (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each Framework is returned.
                                    +     * Lists the frameworks (both built-in and custom) that are available within
                                    +     * the parent resource. The latest major version of each framework is
                                    +     * returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse listFrameworks( @@ -1237,12 +1254,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse listFr * * *
                                    -     * Gets details of a single Framework.
                                    -     * This method retrieves a Framework resource, which can be either Built-in or
                                    -     * Custom, identified by its name.
                                    -     * By default, the latest major version of the Framework is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a framework.
                                    +     * This method retrieves the latest major version of the framework.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFramework( @@ -1255,9 +1270,9 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFramework( * * *
                                    -     * Creates a new Framework with type `Custom` under a given parent resource.
                                    -     * Frameworks with type `Built-in` are managed by Google and cannot be created
                                    -     * through this API.
                                    +     * Creates a custom framework in a given parent resource.
                                    +     * You can't create built-in frameworks because those are managed by
                                    +     * Google.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.Framework createFramework( @@ -1270,15 +1285,16 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework createFramework( * * *
                                    -     * Updates a single Framework.
                                    -     * This method allows for partial updates of a Framework resource. The fields
                                    -     * to be updated are specified using the `update_mask`.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `framework` body will be used to overwrite the existing resource.
                                    -     * This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     * A successful update will result in a new version of the Framework.
                                    +     * Updates a custom framework.
                                    +     * This method allows for partial updates of a framework. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `framework` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update frameworks with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the framework.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.Framework updateFramework( @@ -1291,13 +1307,12 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework updateFramework( * * *
                                    -     * Deletes a single Custom Framework, including all its minor and
                                    -     * minor revisions.
                                    -     * - This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     *   Built-in Frameworks cannot be deleted.
                                    -     * - The Framework cannot be deleted if it is currently deployed on any
                                    -     *   resource.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom framework, including all its major and
                                    +     * minor revisions. Consider the following:
                                    +     * - You can't delete built-in frameworks. You can only delete frameworks
                                    +     *   with type `CUSTOM`.
                                    +     * - You can't delete frameworks that are deployed to a resource.
                                    +     * - You can't restore a deleted framework. This action is permanent.
                                          * 
                                    */ public com.google.protobuf.Empty deleteFramework( @@ -1310,9 +1325,10 @@ public com.google.protobuf.Empty deleteFramework( * * *
                                    -     * Lists all CloudControls (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each CloudControl is returned.
                                    +     * Lists the cloud controls (both built-in and custom) that are available
                                    +     * in a given parent resource. The latest major version of each cloud control
                                    +     * is returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse listCloudControls( @@ -1325,12 +1341,12 @@ public com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse lis * * *
                                    -     * Gets details of a single CloudControl.
                                    -     * This method retrieves a CloudControl resource, which can be either Built-in
                                    -     * or Custom, identified by its name.
                                    -     * By default, the latest major version of the CloudControl is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a cloud control.
                                    +     * This method retrieves the latest major version of a cloud control that
                                    +     * you identify by name.
                                    +     * By default, the latest major version of the cloud control is returned.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl getCloudControl( @@ -1343,9 +1359,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl getCloudControl( * * *
                                    -     * Creates a new CloudControl with type `Custom` under a given parent
                                    -     * resource. `Built-in` CloudControls are managed by Google and cannot be
                                    -     * created through this API.
                                    +     * Creates a custom cloud control in a given parent
                                    +     * resource.
                                    +     * You can't create built-in cloud controls because those are managed by
                                    +     * Google.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl createCloudControl( @@ -1358,14 +1375,16 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl createCloudContr * * *
                                    -     * Updates a single CloudControl.
                                    -     * This method allows for partial updates of a Custom CloudControl resource.
                                    -     * Built-in CloudControls cannot be updated.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `cloud_control` body will be used to overwrite the existing resource.
                                    -     * A successful update will result in a new version of the CloudControl.
                                    +     * Updates a custom cloud control.
                                    +     * This method allows for partial updates of a cloud control. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `cloud_control` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update cloud controls with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the cloud control.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl updateCloudControl( @@ -1378,13 +1397,13 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl updateCloudContr * * *
                                    -     * Deletes a single Custom CloudControl, including all its
                                    -     * major and minor revisions.
                                    -     * - This operation can only be performed on CloudControls with type `CUSTOM`.
                                    -     *   Built-in CloudControls cannot be deleted.
                                    -     * - The CloudControl cannot be deleted if any of its revisions are currently
                                    -     *   referenced by any Framework.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom cloud control, including all its
                                    +     * major and minor revisions. Consider the following:
                                    +     * - You can't delete built-in cloud controls. You can only delete cloud
                                    +     *   controls with type `CUSTOM`.
                                    +     * - You can't delete cloud controls if any of the versions are referenced
                                    +     *   by a framework.
                                    +     * - You can't restore a deleted cloud control. This action is permanent.
                                          * 
                                    */ public com.google.protobuf.Empty deleteCloudControl( @@ -1417,9 +1436,10 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Lists all Frameworks (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each Framework is returned.
                                    +     * Lists the frameworks (both built-in and custom) that are available within
                                    +     * the parent resource. The latest major version of each framework is
                                    +     * returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1433,12 +1453,10 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Gets details of a single Framework.
                                    -     * This method retrieves a Framework resource, which can be either Built-in or
                                    -     * Custom, identified by its name.
                                    -     * By default, the latest major version of the Framework is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a framework.
                                    +     * This method retrieves the latest major version of the framework.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1452,9 +1470,9 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Creates a new Framework with type `Custom` under a given parent resource.
                                    -     * Frameworks with type `Built-in` are managed by Google and cannot be created
                                    -     * through this API.
                                    +     * Creates a custom framework in a given parent resource.
                                    +     * You can't create built-in frameworks because those are managed by
                                    +     * Google.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1469,15 +1487,16 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Updates a single Framework.
                                    -     * This method allows for partial updates of a Framework resource. The fields
                                    -     * to be updated are specified using the `update_mask`.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `framework` body will be used to overwrite the existing resource.
                                    -     * This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     * A successful update will result in a new version of the Framework.
                                    +     * Updates a custom framework.
                                    +     * This method allows for partial updates of a framework. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `framework` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update frameworks with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the framework.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1492,13 +1511,12 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Deletes a single Custom Framework, including all its minor and
                                    -     * minor revisions.
                                    -     * - This operation can only be performed on Frameworks with type `CUSTOM`.
                                    -     *   Built-in Frameworks cannot be deleted.
                                    -     * - The Framework cannot be deleted if it is currently deployed on any
                                    -     *   resource.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom framework, including all its major and
                                    +     * minor revisions. Consider the following:
                                    +     * - You can't delete built-in frameworks. You can only delete frameworks
                                    +     *   with type `CUSTOM`.
                                    +     * - You can't delete frameworks that are deployed to a resource.
                                    +     * - You can't restore a deleted framework. This action is permanent.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture @@ -1512,9 +1530,10 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Lists all CloudControls (both Built-in and Custom) available within a given
                                    -     * parent resource. This method supports pagination.
                                    -     * The latest major version of each CloudControl is returned.
                                    +     * Lists the cloud controls (both built-in and custom) that are available
                                    +     * in a given parent resource. The latest major version of each cloud control
                                    +     * is returned.
                                    +     * This method supports pagination.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1529,12 +1548,12 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Gets details of a single CloudControl.
                                    -     * This method retrieves a CloudControl resource, which can be either Built-in
                                    -     * or Custom, identified by its name.
                                    -     * By default, the latest major version of the CloudControl is returned.
                                    -     * A specific major version can be retrieved by specifying the
                                    -     * `major_revision_id` in the request.
                                    +     * Gets details about a cloud control.
                                    +     * This method retrieves the latest major version of a cloud control that
                                    +     * you identify by name.
                                    +     * By default, the latest major version of the cloud control is returned.
                                    +     * To retrieve a specific major version, include `major_revision_id` in
                                    +     * the request.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1549,9 +1568,10 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Creates a new CloudControl with type `Custom` under a given parent
                                    -     * resource. `Built-in` CloudControls are managed by Google and cannot be
                                    -     * created through this API.
                                    +     * Creates a custom cloud control in a given parent
                                    +     * resource.
                                    +     * You can't create built-in cloud controls because those are managed by
                                    +     * Google.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1566,14 +1586,16 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Updates a single CloudControl.
                                    -     * This method allows for partial updates of a Custom CloudControl resource.
                                    -     * Built-in CloudControls cannot be updated.
                                    -     * - If an `update_mask` is provided, only the fields specified in the mask
                                    -     * will be updated.
                                    -     * - If no `update_mask` is provided, all fields present in the request's
                                    -     * `cloud_control` body will be used to overwrite the existing resource.
                                    -     * A successful update will result in a new version of the CloudControl.
                                    +     * Updates a custom cloud control.
                                    +     * This method allows for partial updates of a cloud control. Use the
                                    +     * `update_mask` to specify which fields to update. Consider the following:
                                    +     * - If you provide an `update_mask`, only the fields that are specified
                                    +     * in the mask are updated.
                                    +     * - If you don't provide an `update_mask`, all the fields that are present
                                    +     * in the request's `cloud_control` body are used to overwrite the existing
                                    +     * resource.
                                    +     * You can only update cloud controls with the `CUSTOM` type.
                                    +     * A successful update creates a new version of the cloud control.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1588,13 +1610,13 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                                    -     * Deletes a single Custom CloudControl, including all its
                                    -     * major and minor revisions.
                                    -     * - This operation can only be performed on CloudControls with type `CUSTOM`.
                                    -     *   Built-in CloudControls cannot be deleted.
                                    -     * - The CloudControl cannot be deleted if any of its revisions are currently
                                    -     *   referenced by any Framework.
                                    -     * - This action is permanent and cannot be undone.
                                    +     * Deletes a custom cloud control, including all its
                                    +     * major and minor revisions. Consider the following:
                                    +     * - You can't delete built-in cloud controls. You can only delete cloud
                                    +     *   controls with type `CUSTOM`.
                                    +     * - You can't delete cloud controls if any of the versions are referenced
                                    +     *   by a framework.
                                    +     * - You can't restore a deleted cloud control. This action is permanent.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentGrpc.java b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentGrpc.java index 698a576c1e56..812394075038 100644 --- a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentGrpc.java +++ b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentGrpc.java @@ -25,9 +25,6 @@ * Cloud Controls on a target resource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/cloudsecuritycompliance/v1/deployment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeploymentGrpc { @@ -416,7 +413,10 @@ public interface AsyncService { * * *
                                    -     * Creates a new FrameworkDeployment in a given parent resource.
                                    +     * Creates a framework deployment in a given parent resource. A
                                    +     * framework deployment lets you assign a particular framework version to an
                                    +     * organization, folder, or project so that you can control and monitor
                                    +     * those resources using the framework's cloud controls.
                                          * 
                                    */ default void createFrameworkDeployment( @@ -430,7 +430,7 @@ default void createFrameworkDeployment( * * *
                                    -     * Deletes a single FrameworkDeployment.
                                    +     * Deletes a framework deployment.
                                          * 
                                    */ default void deleteFrameworkDeployment( @@ -444,7 +444,7 @@ default void deleteFrameworkDeployment( * * *
                                    -     * Gets details of a single FrameworkDeployment.
                                    +     * Gets details about a framework deployment.
                                          * 
                                    */ default void getFrameworkDeployment( @@ -459,7 +459,7 @@ default void getFrameworkDeployment( * * *
                                    -     * Lists FrameworkDeployments in a given parent resource.
                                    +     * Lists the framework deployments in a given parent resource.
                                          * 
                                    */ default void listFrameworkDeployments( @@ -475,7 +475,7 @@ default void listFrameworkDeployments( * * *
                                    -     * Gets details of a single CloudControlDeployment.
                                    +     * Gets details about a cloud control deployment.
                                          * 
                                    */ default void getCloudControlDeployment( @@ -491,7 +491,7 @@ default void getCloudControlDeployment( * * *
                                    -     * Lists CloudControlDeployments in a given parent resource.
                                    +     * Lists the cloud conrol deployments in a given parent resource.
                                          * 
                                    */ default void listCloudControlDeployments( @@ -542,7 +542,10 @@ protected DeploymentStub build(io.grpc.Channel channel, io.grpc.CallOptions call * * *
                                    -     * Creates a new FrameworkDeployment in a given parent resource.
                                    +     * Creates a framework deployment in a given parent resource. A
                                    +     * framework deployment lets you assign a particular framework version to an
                                    +     * organization, folder, or project so that you can control and monitor
                                    +     * those resources using the framework's cloud controls.
                                          * 
                                    */ public void createFrameworkDeployment( @@ -558,7 +561,7 @@ public void createFrameworkDeployment( * * *
                                    -     * Deletes a single FrameworkDeployment.
                                    +     * Deletes a framework deployment.
                                          * 
                                    */ public void deleteFrameworkDeployment( @@ -574,7 +577,7 @@ public void deleteFrameworkDeployment( * * *
                                    -     * Gets details of a single FrameworkDeployment.
                                    +     * Gets details about a framework deployment.
                                          * 
                                    */ public void getFrameworkDeployment( @@ -591,7 +594,7 @@ public void getFrameworkDeployment( * * *
                                    -     * Lists FrameworkDeployments in a given parent resource.
                                    +     * Lists the framework deployments in a given parent resource.
                                          * 
                                    */ public void listFrameworkDeployments( @@ -609,7 +612,7 @@ public void listFrameworkDeployments( * * *
                                    -     * Gets details of a single CloudControlDeployment.
                                    +     * Gets details about a cloud control deployment.
                                          * 
                                    */ public void getCloudControlDeployment( @@ -627,7 +630,7 @@ public void getCloudControlDeployment( * * *
                                    -     * Lists CloudControlDeployments in a given parent resource.
                                    +     * Lists the cloud conrol deployments in a given parent resource.
                                          * 
                                    */ public void listCloudControlDeployments( @@ -666,12 +669,16 @@ protected DeploymentBlockingV2Stub build( * * *
                                    -     * Creates a new FrameworkDeployment in a given parent resource.
                                    +     * Creates a framework deployment in a given parent resource. A
                                    +     * framework deployment lets you assign a particular framework version to an
                                    +     * organization, folder, or project so that you can control and monitor
                                    +     * those resources using the framework's cloud controls.
                                          * 
                                    */ public com.google.longrunning.Operation createFrameworkDeployment( - com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFrameworkDeploymentMethod(), getCallOptions(), request); } @@ -679,12 +686,13 @@ public com.google.longrunning.Operation createFrameworkDeployment( * * *
                                    -     * Deletes a single FrameworkDeployment.
                                    +     * Deletes a framework deployment.
                                          * 
                                    */ public com.google.longrunning.Operation deleteFrameworkDeployment( - com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFrameworkDeploymentMethod(), getCallOptions(), request); } @@ -692,12 +700,13 @@ public com.google.longrunning.Operation deleteFrameworkDeployment( * * *
                                    -     * Gets details of a single FrameworkDeployment.
                                    +     * Gets details about a framework deployment.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFrameworkDeployment( - com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFrameworkDeploymentMethod(), getCallOptions(), request); } @@ -705,13 +714,14 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -     * Lists FrameworkDeployments in a given parent resource.
                                    +     * Lists the framework deployments in a given parent resource.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse listFrameworkDeployments( - com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFrameworkDeploymentsMethod(), getCallOptions(), request); } @@ -719,13 +729,14 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -     * Gets details of a single CloudControlDeployment.
                                    +     * Gets details about a cloud control deployment.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment getCloudControlDeployment( - com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCloudControlDeploymentMethod(), getCallOptions(), request); } @@ -733,14 +744,14 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -     * Lists CloudControlDeployments in a given parent resource.
                                    +     * Lists the cloud conrol deployments in a given parent resource.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse listCloudControlDeployments( - com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCloudControlDeploymentsMethod(), getCallOptions(), request); } } @@ -769,7 +780,10 @@ protected DeploymentBlockingStub build( * * *
                                    -     * Creates a new FrameworkDeployment in a given parent resource.
                                    +     * Creates a framework deployment in a given parent resource. A
                                    +     * framework deployment lets you assign a particular framework version to an
                                    +     * organization, folder, or project so that you can control and monitor
                                    +     * those resources using the framework's cloud controls.
                                          * 
                                    */ public com.google.longrunning.Operation createFrameworkDeployment( @@ -782,7 +796,7 @@ public com.google.longrunning.Operation createFrameworkDeployment( * * *
                                    -     * Deletes a single FrameworkDeployment.
                                    +     * Deletes a framework deployment.
                                          * 
                                    */ public com.google.longrunning.Operation deleteFrameworkDeployment( @@ -795,7 +809,7 @@ public com.google.longrunning.Operation deleteFrameworkDeployment( * * *
                                    -     * Gets details of a single FrameworkDeployment.
                                    +     * Gets details about a framework deployment.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFrameworkDeployment( @@ -808,7 +822,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -     * Lists FrameworkDeployments in a given parent resource.
                                    +     * Lists the framework deployments in a given parent resource.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse @@ -822,7 +836,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -     * Gets details of a single CloudControlDeployment.
                                    +     * Gets details about a cloud control deployment.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment @@ -836,7 +850,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -     * Lists CloudControlDeployments in a given parent resource.
                                    +     * Lists the cloud conrol deployments in a given parent resource.
                                          * 
                                    */ public com.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse @@ -871,7 +885,10 @@ protected DeploymentFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
                                    -     * Creates a new FrameworkDeployment in a given parent resource.
                                    +     * Creates a framework deployment in a given parent resource. A
                                    +     * framework deployment lets you assign a particular framework version to an
                                    +     * organization, folder, or project so that you can control and monitor
                                    +     * those resources using the framework's cloud controls.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture @@ -885,7 +902,7 @@ protected DeploymentFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
                                    -     * Deletes a single FrameworkDeployment.
                                    +     * Deletes a framework deployment.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture @@ -899,7 +916,7 @@ protected DeploymentFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
                                    -     * Gets details of a single FrameworkDeployment.
                                    +     * Gets details about a framework deployment.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -914,7 +931,7 @@ protected DeploymentFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
                                    -     * Lists FrameworkDeployments in a given parent resource.
                                    +     * Lists the framework deployments in a given parent resource.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -929,7 +946,7 @@ protected DeploymentFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
                                    -     * Gets details of a single CloudControlDeployment.
                                    +     * Gets details about a cloud control deployment.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< @@ -944,7 +961,7 @@ protected DeploymentFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
                                    -     * Lists CloudControlDeployments in a given parent resource.
                                    +     * Lists the cloud conrol deployments in a given parent resource.
                                          * 
                                    */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringGrpc.java b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringGrpc.java new file mode 100644 index 000000000000..f9335b48c591 --- /dev/null +++ b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringGrpc.java @@ -0,0 +1,1068 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                    + * Service describing handlers for resources
                                    + * 
                                    + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class MonitoringGrpc { + + private MonitoringGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.cloudsecuritycompliance.v1.Monitoring"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse> + getListFrameworkComplianceSummariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFrameworkComplianceSummaries", + requestType = + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest.class, + responseType = + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse> + getListFrameworkComplianceSummariesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse> + getListFrameworkComplianceSummariesMethod; + if ((getListFrameworkComplianceSummariesMethod = + MonitoringGrpc.getListFrameworkComplianceSummariesMethod) + == null) { + synchronized (MonitoringGrpc.class) { + if ((getListFrameworkComplianceSummariesMethod = + MonitoringGrpc.getListFrameworkComplianceSummariesMethod) + == null) { + MonitoringGrpc.getListFrameworkComplianceSummariesMethod = + getListFrameworkComplianceSummariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFrameworkComplianceSummaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MonitoringMethodDescriptorSupplier( + "ListFrameworkComplianceSummaries")) + .build(); + } + } + } + return getListFrameworkComplianceSummariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse> + getListFindingSummariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingSummaries", + requestType = com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.class, + responseType = com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse> + getListFindingSummariesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse> + getListFindingSummariesMethod; + if ((getListFindingSummariesMethod = MonitoringGrpc.getListFindingSummariesMethod) == null) { + synchronized (MonitoringGrpc.class) { + if ((getListFindingSummariesMethod = MonitoringGrpc.getListFindingSummariesMethod) + == null) { + MonitoringGrpc.getListFindingSummariesMethod = + getListFindingSummariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFindingSummaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .ListFindingSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .ListFindingSummariesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MonitoringMethodDescriptorSupplier("ListFindingSummaries")) + .build(); + } + } + } + return getListFindingSummariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport> + getFetchFrameworkComplianceReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchFrameworkComplianceReport", + requestType = + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest.class, + responseType = com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport> + getFetchFrameworkComplianceReportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport> + getFetchFrameworkComplianceReportMethod; + if ((getFetchFrameworkComplianceReportMethod = + MonitoringGrpc.getFetchFrameworkComplianceReportMethod) + == null) { + synchronized (MonitoringGrpc.class) { + if ((getFetchFrameworkComplianceReportMethod = + MonitoringGrpc.getFetchFrameworkComplianceReportMethod) + == null) { + MonitoringGrpc.getFetchFrameworkComplianceReportMethod = + getFetchFrameworkComplianceReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchFrameworkComplianceReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .FetchFrameworkComplianceReportRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + .getDefaultInstance())) + .setSchemaDescriptor( + new MonitoringMethodDescriptorSupplier("FetchFrameworkComplianceReport")) + .build(); + } + } + } + return getFetchFrameworkComplianceReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse> + getListControlComplianceSummariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListControlComplianceSummaries", + requestType = + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.class, + responseType = + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse> + getListControlComplianceSummariesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse> + getListControlComplianceSummariesMethod; + if ((getListControlComplianceSummariesMethod = + MonitoringGrpc.getListControlComplianceSummariesMethod) + == null) { + synchronized (MonitoringGrpc.class) { + if ((getListControlComplianceSummariesMethod = + MonitoringGrpc.getListControlComplianceSummariesMethod) + == null) { + MonitoringGrpc.getListControlComplianceSummariesMethod = + getListControlComplianceSummariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListControlComplianceSummaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .ListControlComplianceSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .ListControlComplianceSummariesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MonitoringMethodDescriptorSupplier("ListControlComplianceSummaries")) + .build(); + } + } + } + return getListControlComplianceSummariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse> + getAggregateFrameworkComplianceReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AggregateFrameworkComplianceReport", + requestType = + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + .class, + responseType = + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse> + getAggregateFrameworkComplianceReportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse> + getAggregateFrameworkComplianceReportMethod; + if ((getAggregateFrameworkComplianceReportMethod = + MonitoringGrpc.getAggregateFrameworkComplianceReportMethod) + == null) { + synchronized (MonitoringGrpc.class) { + if ((getAggregateFrameworkComplianceReportMethod = + MonitoringGrpc.getAggregateFrameworkComplianceReportMethod) + == null) { + MonitoringGrpc.getAggregateFrameworkComplianceReportMethod = + getAggregateFrameworkComplianceReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "AggregateFrameworkComplianceReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MonitoringMethodDescriptorSupplier( + "AggregateFrameworkComplianceReport")) + .build(); + } + } + } + return getAggregateFrameworkComplianceReportMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MonitoringStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MonitoringStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MonitoringStub(channel, callOptions); + } + }; + return MonitoringStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static MonitoringBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MonitoringBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MonitoringBlockingV2Stub(channel, callOptions); + } + }; + return MonitoringBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MonitoringBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MonitoringBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MonitoringBlockingStub(channel, callOptions); + } + }; + return MonitoringBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MonitoringFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MonitoringFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MonitoringFutureStub(channel, callOptions); + } + }; + return MonitoringFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public interface AsyncService { + + /** + * + * + *
                                    +     * Lists the framework compliance summary for a given scope.
                                    +     * 
                                    + */ + default void listFrameworkComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFrameworkComplianceSummariesMethod(), responseObserver); + } + + /** + * + * + *
                                    +     * Lists the finding summary by category for a given scope.
                                    +     * 
                                    + */ + default void listFindingSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingSummariesMethod(), responseObserver); + } + + /** + * + * + *
                                    +     * Fetches the framework compliance report for a given scope.
                                    +     * 
                                    + */ + default void fetchFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchFrameworkComplianceReportMethod(), responseObserver); + } + + /** + * + * + *
                                    +     * Lists the control compliance summary for a given scope.
                                    +     * 
                                    + */ + default void listControlComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListControlComplianceSummariesMethod(), responseObserver); + } + + /** + * + * + *
                                    +     * Gets the aggregated compliance report over time for a given scope.
                                    +     * 
                                    + */ + default void aggregateFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAggregateFrameworkComplianceReportMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Monitoring. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public abstract static class MonitoringImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return MonitoringGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Monitoring. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public static final class MonitoringStub extends io.grpc.stub.AbstractAsyncStub { + private MonitoringStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MonitoringStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MonitoringStub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Lists the framework compliance summary for a given scope.
                                    +     * 
                                    + */ + public void listFrameworkComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFrameworkComplianceSummariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                    +     * Lists the finding summary by category for a given scope.
                                    +     * 
                                    + */ + public void listFindingSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingSummariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                    +     * Fetches the framework compliance report for a given scope.
                                    +     * 
                                    + */ + public void fetchFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchFrameworkComplianceReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                    +     * Lists the control compliance summary for a given scope.
                                    +     * 
                                    + */ + public void listControlComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListControlComplianceSummariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                    +     * Gets the aggregated compliance report over time for a given scope.
                                    +     * 
                                    + */ + public void aggregateFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAggregateFrameworkComplianceReportMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Monitoring. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public static final class MonitoringBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private MonitoringBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MonitoringBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MonitoringBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Lists the framework compliance summary for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + listFrameworkComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFrameworkComplianceSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Lists the finding summary by category for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + listFindingSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFindingSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Fetches the framework compliance report for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + fetchFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchFrameworkComplianceReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Lists the control compliance summary for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + listControlComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListControlComplianceSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Gets the aggregated compliance report over time for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + aggregateFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAggregateFrameworkComplianceReportMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service Monitoring. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public static final class MonitoringBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MonitoringBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MonitoringBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MonitoringBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Lists the framework compliance summary for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + listFrameworkComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFrameworkComplianceSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Lists the finding summary by category for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + listFindingSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Fetches the framework compliance report for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + fetchFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchFrameworkComplianceReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Lists the control compliance summary for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + listControlComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListControlComplianceSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                    +     * Gets the aggregated compliance report over time for a given scope.
                                    +     * 
                                    + */ + public com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + aggregateFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAggregateFrameworkComplianceReportMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Monitoring. + * + *
                                    +   * Service describing handlers for resources
                                    +   * 
                                    + */ + public static final class MonitoringFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MonitoringFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MonitoringFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MonitoringFutureStub(channel, callOptions); + } + + /** + * + * + *
                                    +     * Lists the framework compliance summary for a given scope.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse> + listFrameworkComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFrameworkComplianceSummariesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                    +     * Lists the finding summary by category for a given scope.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse> + listFindingSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingSummariesMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                    +     * Fetches the framework compliance report for a given scope.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport> + fetchFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchFrameworkComplianceReportMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                    +     * Lists the control compliance summary for a given scope.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse> + listControlComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListControlComplianceSummariesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                    +     * Gets the aggregated compliance report over time for a given scope.
                                    +     * 
                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse> + aggregateFrameworkComplianceReport( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAggregateFrameworkComplianceReportMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_LIST_FRAMEWORK_COMPLIANCE_SUMMARIES = 0; + private static final int METHODID_LIST_FINDING_SUMMARIES = 1; + private static final int METHODID_FETCH_FRAMEWORK_COMPLIANCE_REPORT = 2; + private static final int METHODID_LIST_CONTROL_COMPLIANCE_SUMMARIES = 3; + private static final int METHODID_AGGREGATE_FRAMEWORK_COMPLIANCE_REPORT = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_FRAMEWORK_COMPLIANCE_SUMMARIES: + serviceImpl.listFrameworkComplianceSummaries( + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesResponse>) + responseObserver); + break; + case METHODID_LIST_FINDING_SUMMARIES: + serviceImpl.listFindingSummaries( + (com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse>) + responseObserver); + break; + case METHODID_FETCH_FRAMEWORK_COMPLIANCE_REPORT: + serviceImpl.fetchFrameworkComplianceReport( + (com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport>) + responseObserver); + break; + case METHODID_LIST_CONTROL_COMPLIANCE_SUMMARIES: + serviceImpl.listControlComplianceSummaries( + (com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .ListControlComplianceSummariesResponse>) + responseObserver); + break; + case METHODID_AGGREGATE_FRAMEWORK_COMPLIANCE_REPORT: + serviceImpl.aggregateFrameworkComplianceReport( + (com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListFrameworkComplianceSummariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesResponse>( + service, METHODID_LIST_FRAMEWORK_COMPLIANCE_SUMMARIES))) + .addMethod( + getListFindingSummariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse>( + service, METHODID_LIST_FINDING_SUMMARIES))) + .addMethod( + getFetchFrameworkComplianceReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1 + .FetchFrameworkComplianceReportRequest, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport>( + service, METHODID_FETCH_FRAMEWORK_COMPLIANCE_REPORT))) + .addMethod( + getListControlComplianceSummariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1 + .ListControlComplianceSummariesRequest, + com.google.cloud.cloudsecuritycompliance.v1 + .ListControlComplianceSummariesResponse>( + service, METHODID_LIST_CONTROL_COMPLIANCE_SUMMARIES))) + .addMethod( + getAggregateFrameworkComplianceReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest, + com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse>( + service, METHODID_AGGREGATE_FRAMEWORK_COMPLIANCE_REPORT))) + .build(); + } + + private abstract static class MonitoringBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MonitoringBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Monitoring"); + } + } + + private static final class MonitoringFileDescriptorSupplier + extends MonitoringBaseDescriptorSupplier { + MonitoringFileDescriptorSupplier() {} + } + + private static final class MonitoringMethodDescriptorSupplier + extends MonitoringBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + MonitoringMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MonitoringGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MonitoringFileDescriptorSupplier()) + .addMethod(getListFrameworkComplianceSummariesMethod()) + .addMethod(getListFindingSummariesMethod()) + .addMethod(getFetchFrameworkComplianceReportMethod()) + .addMethod(getListControlComplianceSummariesMethod()) + .addMethod(getAggregateFrameworkComplianceReportMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportRequest.java new file mode 100644 index 000000000000..4c626a24d472 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportRequest.java @@ -0,0 +1,1215 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [AggregateFrameworkComplianceReport][].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest} + */ +public final class AggregateFrameworkComplianceReportRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest) + AggregateFrameworkComplianceReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AggregateFrameworkComplianceReportRequest.newBuilder() to construct. + private AggregateFrameworkComplianceReportRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AggregateFrameworkComplianceReportRequest() { + name_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AggregateFrameworkComplianceReportRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + .class, + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + .Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Required. The name of the aggregated compliance report over time to
                                    +   * retrieve.
                                    +   *
                                    +   * The supported format is:
                                    +   * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
                                    +   * 
                                    + * + * + * 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. The name of the aggregated compliance report over time to
                                    +   * retrieve.
                                    +   *
                                    +   * The supported format is:
                                    +   * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
                                    +   * 
                                    + * + * + * 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 INTERVAL_FIELD_NUMBER = 2; + private com.google.type.Interval interval_; + + /** + * + * + *
                                    +   * Optional. The start and end time range for the aggregated compliance
                                    +   * report.
                                    +   * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the interval field is set. + */ + @java.lang.Override + public boolean hasInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Optional. The start and end time range for the aggregated compliance
                                    +   * report.
                                    +   * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The interval. + */ + @java.lang.Override + public com.google.type.Interval getInterval() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + + /** + * + * + *
                                    +   * Optional. The start and end time range for the aggregated compliance
                                    +   * report.
                                    +   * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + + public static final int FILTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 3 [(.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. The filtering results.
                                    +   * 
                                    + * + * string filter = 3 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getInterval()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInterval()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); + } + 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.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasInterval() != other.hasInterval()) return false; + if (hasInterval()) { + if (!getInterval().equals(other.getInterval())) return false; + } + if (!getFilter().equals(other.getFilter())) 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(); + if (hasInterval()) { + hash = (37 * hash) + INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getInterval().hashCode(); + } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + 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.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + 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.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [AggregateFrameworkComplianceReport][].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest) + com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + .class, + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + build() { + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInterval()) { + mergeInterval(other.getInterval()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + filter_ = 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 name_ = ""; + + /** + * + * + *
                                    +     * Required. The name of the aggregated compliance report over time to
                                    +     * retrieve.
                                    +     *
                                    +     * The supported format is:
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
                                    +     * 
                                    + * + * + * 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. The name of the aggregated compliance report over time to
                                    +     * retrieve.
                                    +     *
                                    +     * The supported format is:
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
                                    +     * 
                                    + * + * + * 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. The name of the aggregated compliance report over time to
                                    +     * retrieve.
                                    +     *
                                    +     * The supported format is:
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
                                    +     * 
                                    + * + * + * 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. The name of the aggregated compliance report over time to
                                    +     * retrieve.
                                    +     *
                                    +     * The supported format is:
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
                                    +     * 
                                    + * + * + * 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. The name of the aggregated compliance report over time to
                                    +     * retrieve.
                                    +     *
                                    +     * The supported format is:
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
                                    +     * 
                                    + * + * + * 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 com.google.type.Interval interval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + intervalBuilder_; + + /** + * + * + *
                                    +     * Optional. The start and end time range for the aggregated compliance
                                    +     * report.
                                    +     * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the interval field is set. + */ + public boolean hasInterval() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * Optional. The start and end time range for the aggregated compliance
                                    +     * report.
                                    +     * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The interval. + */ + public com.google.type.Interval getInterval() { + if (intervalBuilder_ == null) { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } else { + return intervalBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Optional. The start and end time range for the aggregated compliance
                                    +     * report.
                                    +     * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interval_ = value; + } else { + intervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The start and end time range for the aggregated compliance
                                    +     * report.
                                    +     * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setInterval(com.google.type.Interval.Builder builderForValue) { + if (intervalBuilder_ == null) { + interval_ = builderForValue.build(); + } else { + intervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The start and end time range for the aggregated compliance
                                    +     * report.
                                    +     * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && interval_ != null + && interval_ != com.google.type.Interval.getDefaultInstance()) { + getIntervalBuilder().mergeFrom(value); + } else { + interval_ = value; + } + } else { + intervalBuilder_.mergeFrom(value); + } + if (interval_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The start and end time range for the aggregated compliance
                                    +     * report.
                                    +     * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearInterval() { + bitField0_ = (bitField0_ & ~0x00000002); + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The start and end time range for the aggregated compliance
                                    +     * report.
                                    +     * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.Interval.Builder getIntervalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Optional. The start and end time range for the aggregated compliance
                                    +     * report.
                                    +     * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + if (intervalBuilder_ != null) { + return intervalBuilder_.getMessageOrBuilder(); + } else { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + } + + /** + * + * + *
                                    +     * Optional. The start and end time range for the aggregated compliance
                                    +     * report.
                                    +     * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + getIntervalFieldBuilder() { + if (intervalBuilder_ == null) { + intervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getInterval(), getParentForChildren(), isClean()); + interval_ = null; + } + return intervalBuilder_; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * string filter = 3 [(.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. The filtering results.
                                    +     * 
                                    + * + * string filter = 3 [(.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. The filtering results.
                                    +     * 
                                    + * + * string filter = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * string filter = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregateFrameworkComplianceReportRequest 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.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportRequestOrBuilder.java new file mode 100644 index 000000000000..78f704ae8680 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface AggregateFrameworkComplianceReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The name of the aggregated compliance report over time to
                                    +   * retrieve.
                                    +   *
                                    +   * The supported format is:
                                    +   * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Required. The name of the aggregated compliance report over time to
                                    +   * retrieve.
                                    +   *
                                    +   * The supported format is:
                                    +   * `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                    +   * Optional. The start and end time range for the aggregated compliance
                                    +   * report.
                                    +   * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the interval field is set. + */ + boolean hasInterval(); + + /** + * + * + *
                                    +   * Optional. The start and end time range for the aggregated compliance
                                    +   * report.
                                    +   * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The interval. + */ + com.google.type.Interval getInterval(); + + /** + * + * + *
                                    +   * Optional. The start and end time range for the aggregated compliance
                                    +   * report.
                                    +   * 
                                    + * + * .google.type.Interval interval = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.IntervalOrBuilder getIntervalOrBuilder(); + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportResponse.java new file mode 100644 index 000000000000..c881afcaf833 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportResponse.java @@ -0,0 +1,1108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The response message for [AggregateFrameworkComplianceReport][].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse} + */ +public final class AggregateFrameworkComplianceReportResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse) + AggregateFrameworkComplianceReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AggregateFrameworkComplianceReportResponse.newBuilder() to construct. + private AggregateFrameworkComplianceReportResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AggregateFrameworkComplianceReportResponse() { + aggregatedComplianceReports_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AggregateFrameworkComplianceReportResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + .Builder.class); + } + + public static final int AGGREGATED_COMPLIANCE_REPORTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + aggregatedComplianceReports_; + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + @java.lang.Override + public java.util.List + getAggregatedComplianceReportsList() { + return aggregatedComplianceReports_; + } + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder> + getAggregatedComplianceReportsOrBuilderList() { + return aggregatedComplianceReports_; + } + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + @java.lang.Override + public int getAggregatedComplianceReportsCount() { + return aggregatedComplianceReports_.size(); + } + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + getAggregatedComplianceReports(int index) { + return aggregatedComplianceReports_.get(index); + } + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder + getAggregatedComplianceReportsOrBuilder(int index) { + return aggregatedComplianceReports_.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 < aggregatedComplianceReports_.size(); i++) { + output.writeMessage(1, aggregatedComplianceReports_.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 < aggregatedComplianceReports_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, aggregatedComplianceReports_.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.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse other = + (com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse) + obj; + + if (!getAggregatedComplianceReportsList().equals(other.getAggregatedComplianceReportsList())) + 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 (getAggregatedComplianceReportsCount() > 0) { + hash = (37 * hash) + AGGREGATED_COMPLIANCE_REPORTS_FIELD_NUMBER; + hash = (53 * hash) + getAggregatedComplianceReportsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + 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.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + 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.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The response message for [AggregateFrameworkComplianceReport][].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse) + com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aggregatedComplianceReportsBuilder_ == null) { + aggregatedComplianceReports_ = java.util.Collections.emptyList(); + } else { + aggregatedComplianceReports_ = null; + aggregatedComplianceReportsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + build() { + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + result = + new com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + result) { + if (aggregatedComplianceReportsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aggregatedComplianceReports_ = + java.util.Collections.unmodifiableList(aggregatedComplianceReports_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aggregatedComplianceReports_ = aggregatedComplianceReports_; + } else { + result.aggregatedComplianceReports_ = aggregatedComplianceReportsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + .getDefaultInstance()) return this; + if (aggregatedComplianceReportsBuilder_ == null) { + if (!other.aggregatedComplianceReports_.isEmpty()) { + if (aggregatedComplianceReports_.isEmpty()) { + aggregatedComplianceReports_ = other.aggregatedComplianceReports_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAggregatedComplianceReportsIsMutable(); + aggregatedComplianceReports_.addAll(other.aggregatedComplianceReports_); + } + onChanged(); + } + } else { + if (!other.aggregatedComplianceReports_.isEmpty()) { + if (aggregatedComplianceReportsBuilder_.isEmpty()) { + aggregatedComplianceReportsBuilder_.dispose(); + aggregatedComplianceReportsBuilder_ = null; + aggregatedComplianceReports_ = other.aggregatedComplianceReports_; + bitField0_ = (bitField0_ & ~0x00000001); + aggregatedComplianceReportsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAggregatedComplianceReportsFieldBuilder() + : null; + } else { + aggregatedComplianceReportsBuilder_.addAllMessages(other.aggregatedComplianceReports_); + } + } + } + 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.cloudsecuritycompliance.v1.AggregatedComplianceReport m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + .parser(), + extensionRegistry); + if (aggregatedComplianceReportsBuilder_ == null) { + ensureAggregatedComplianceReportsIsMutable(); + aggregatedComplianceReports_.add(m); + } else { + aggregatedComplianceReportsBuilder_.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 + aggregatedComplianceReports_ = java.util.Collections.emptyList(); + + private void ensureAggregatedComplianceReportsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aggregatedComplianceReports_ = + new java.util.ArrayList< + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport>( + aggregatedComplianceReports_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder> + aggregatedComplianceReportsBuilder_; + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public java.util.List + getAggregatedComplianceReportsList() { + if (aggregatedComplianceReportsBuilder_ == null) { + return java.util.Collections.unmodifiableList(aggregatedComplianceReports_); + } else { + return aggregatedComplianceReportsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public int getAggregatedComplianceReportsCount() { + if (aggregatedComplianceReportsBuilder_ == null) { + return aggregatedComplianceReports_.size(); + } else { + return aggregatedComplianceReportsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + getAggregatedComplianceReports(int index) { + if (aggregatedComplianceReportsBuilder_ == null) { + return aggregatedComplianceReports_.get(index); + } else { + return aggregatedComplianceReportsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public Builder setAggregatedComplianceReports( + int index, com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport value) { + if (aggregatedComplianceReportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAggregatedComplianceReportsIsMutable(); + aggregatedComplianceReports_.set(index, value); + onChanged(); + } else { + aggregatedComplianceReportsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public Builder setAggregatedComplianceReports( + int index, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder + builderForValue) { + if (aggregatedComplianceReportsBuilder_ == null) { + ensureAggregatedComplianceReportsIsMutable(); + aggregatedComplianceReports_.set(index, builderForValue.build()); + onChanged(); + } else { + aggregatedComplianceReportsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public Builder addAggregatedComplianceReports( + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport value) { + if (aggregatedComplianceReportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAggregatedComplianceReportsIsMutable(); + aggregatedComplianceReports_.add(value); + onChanged(); + } else { + aggregatedComplianceReportsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public Builder addAggregatedComplianceReports( + int index, com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport value) { + if (aggregatedComplianceReportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAggregatedComplianceReportsIsMutable(); + aggregatedComplianceReports_.add(index, value); + onChanged(); + } else { + aggregatedComplianceReportsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public Builder addAggregatedComplianceReports( + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder + builderForValue) { + if (aggregatedComplianceReportsBuilder_ == null) { + ensureAggregatedComplianceReportsIsMutable(); + aggregatedComplianceReports_.add(builderForValue.build()); + onChanged(); + } else { + aggregatedComplianceReportsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public Builder addAggregatedComplianceReports( + int index, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder + builderForValue) { + if (aggregatedComplianceReportsBuilder_ == null) { + ensureAggregatedComplianceReportsIsMutable(); + aggregatedComplianceReports_.add(index, builderForValue.build()); + onChanged(); + } else { + aggregatedComplianceReportsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public Builder addAllAggregatedComplianceReports( + java.lang.Iterable< + ? extends com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport> + values) { + if (aggregatedComplianceReportsBuilder_ == null) { + ensureAggregatedComplianceReportsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aggregatedComplianceReports_); + onChanged(); + } else { + aggregatedComplianceReportsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public Builder clearAggregatedComplianceReports() { + if (aggregatedComplianceReportsBuilder_ == null) { + aggregatedComplianceReports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aggregatedComplianceReportsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public Builder removeAggregatedComplianceReports(int index) { + if (aggregatedComplianceReportsBuilder_ == null) { + ensureAggregatedComplianceReportsIsMutable(); + aggregatedComplianceReports_.remove(index); + onChanged(); + } else { + aggregatedComplianceReportsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder + getAggregatedComplianceReportsBuilder(int index) { + return getAggregatedComplianceReportsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder + getAggregatedComplianceReportsOrBuilder(int index) { + if (aggregatedComplianceReportsBuilder_ == null) { + return aggregatedComplianceReports_.get(index); + } else { + return aggregatedComplianceReportsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder> + getAggregatedComplianceReportsOrBuilderList() { + if (aggregatedComplianceReportsBuilder_ != null) { + return aggregatedComplianceReportsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aggregatedComplianceReports_); + } + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder + addAggregatedComplianceReportsBuilder() { + return getAggregatedComplianceReportsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder + addAggregatedComplianceReportsBuilder(int index) { + return getAggregatedComplianceReportsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of aggregated compliance reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + public java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder> + getAggregatedComplianceReportsBuilderList() { + return getAggregatedComplianceReportsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder> + getAggregatedComplianceReportsFieldBuilder() { + if (aggregatedComplianceReportsBuilder_ == null) { + aggregatedComplianceReportsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder>( + aggregatedComplianceReports_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + aggregatedComplianceReports_ = null; + } + return aggregatedComplianceReportsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .AggregateFrameworkComplianceReportResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregateFrameworkComplianceReportResponse 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.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportResponseOrBuilder.java new file mode 100644 index 000000000000..ba2c2c6c0ef1 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregateFrameworkComplianceReportResponseOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface AggregateFrameworkComplianceReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + java.util.List + getAggregatedComplianceReportsList(); + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + getAggregatedComplianceReports(int index); + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + int getAggregatedComplianceReportsCount(); + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder> + getAggregatedComplianceReportsOrBuilderList(); + + /** + * + * + *
                                    +   * The list of aggregated compliance reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport aggregated_compliance_reports = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder + getAggregatedComplianceReportsOrBuilder(int index); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregatedComplianceReport.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregatedComplianceReport.java new file mode 100644 index 000000000000..496f8ae80708 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregatedComplianceReport.java @@ -0,0 +1,1069 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The aggregated compliance report.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport} + */ +public final class AggregatedComplianceReport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport) + AggregatedComplianceReportOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AggregatedComplianceReport.newBuilder() to construct. + private AggregatedComplianceReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AggregatedComplianceReport() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AggregatedComplianceReport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.class, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder.class); + } + + private int bitField0_; + public static final int CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER = 1; + private com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + controlAssessmentDetails_; + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + * + * @return Whether the controlAssessmentDetails field is set. + */ + @java.lang.Override + public boolean hasControlAssessmentDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + * + * @return The controlAssessmentDetails. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getControlAssessmentDetails() { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.getDefaultInstance() + : controlAssessmentDetails_; + } + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder + getControlAssessmentDetailsOrBuilder() { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.getDefaultInstance() + : controlAssessmentDetails_; + } + + public static final int REPORT_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp reportTime_; + + /** + * + * + *
                                    +   * The report time of the aggregated compliance report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + * + * @return Whether the reportTime field is set. + */ + @java.lang.Override + public boolean hasReportTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * The report time of the aggregated compliance report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + * + * @return The reportTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getReportTime() { + return reportTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportTime_; + } + + /** + * + * + *
                                    +   * The report time of the aggregated compliance report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getReportTimeOrBuilder() { + return reportTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportTime_; + } + + 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, getControlAssessmentDetails()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReportTime()); + } + 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, getControlAssessmentDetails()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReportTime()); + } + 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.cloudsecuritycompliance.v1.AggregatedComplianceReport)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport other = + (com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport) obj; + + if (hasControlAssessmentDetails() != other.hasControlAssessmentDetails()) return false; + if (hasControlAssessmentDetails()) { + if (!getControlAssessmentDetails().equals(other.getControlAssessmentDetails())) return false; + } + if (hasReportTime() != other.hasReportTime()) return false; + if (hasReportTime()) { + if (!getReportTime().equals(other.getReportTime())) 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 (hasControlAssessmentDetails()) { + hash = (37 * hash) + CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getControlAssessmentDetails().hashCode(); + } + if (hasReportTime()) { + hash = (37 * hash) + REPORT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReportTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport 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.cloudsecuritycompliance.v1.AggregatedComplianceReport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport 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.cloudsecuritycompliance.v1.AggregatedComplianceReport parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The aggregated compliance report.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport) + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.class, + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getControlAssessmentDetailsFieldBuilder(); + getReportTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + controlAssessmentDetails_ = null; + if (controlAssessmentDetailsBuilder_ != null) { + controlAssessmentDetailsBuilder_.dispose(); + controlAssessmentDetailsBuilder_ = null; + } + reportTime_ = null; + if (reportTimeBuilder_ != null) { + reportTimeBuilder_.dispose(); + reportTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport build() { + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport result = + new com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.controlAssessmentDetails_ = + controlAssessmentDetailsBuilder_ == null + ? controlAssessmentDetails_ + : controlAssessmentDetailsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reportTime_ = reportTimeBuilder_ == null ? reportTime_ : reportTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + .getDefaultInstance()) return this; + if (other.hasControlAssessmentDetails()) { + mergeControlAssessmentDetails(other.getControlAssessmentDetails()); + } + if (other.hasReportTime()) { + mergeReportTime(other.getReportTime()); + } + 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( + getControlAssessmentDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReportTimeFieldBuilder().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.cloudsecuritycompliance.v1.ControlAssessmentDetails + controlAssessmentDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder> + controlAssessmentDetailsBuilder_; + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + * + * @return Whether the controlAssessmentDetails field is set. + */ + public boolean hasControlAssessmentDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + * + * @return The controlAssessmentDetails. + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getControlAssessmentDetails() { + if (controlAssessmentDetailsBuilder_ == null) { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance() + : controlAssessmentDetails_; + } else { + return controlAssessmentDetailsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + */ + public Builder setControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails value) { + if (controlAssessmentDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + controlAssessmentDetails_ = value; + } else { + controlAssessmentDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + */ + public Builder setControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder + builderForValue) { + if (controlAssessmentDetailsBuilder_ == null) { + controlAssessmentDetails_ = builderForValue.build(); + } else { + controlAssessmentDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + */ + public Builder mergeControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails value) { + if (controlAssessmentDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && controlAssessmentDetails_ != null + && controlAssessmentDetails_ + != com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance()) { + getControlAssessmentDetailsBuilder().mergeFrom(value); + } else { + controlAssessmentDetails_ = value; + } + } else { + controlAssessmentDetailsBuilder_.mergeFrom(value); + } + if (controlAssessmentDetails_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + */ + public Builder clearControlAssessmentDetails() { + bitField0_ = (bitField0_ & ~0x00000001); + controlAssessmentDetails_ = null; + if (controlAssessmentDetailsBuilder_ != null) { + controlAssessmentDetailsBuilder_.dispose(); + controlAssessmentDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder + getControlAssessmentDetailsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getControlAssessmentDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder + getControlAssessmentDetailsOrBuilder() { + if (controlAssessmentDetailsBuilder_ != null) { + return controlAssessmentDetailsBuilder_.getMessageOrBuilder(); + } else { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance() + : controlAssessmentDetails_; + } + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder> + getControlAssessmentDetailsFieldBuilder() { + if (controlAssessmentDetailsBuilder_ == null) { + controlAssessmentDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder>( + getControlAssessmentDetails(), getParentForChildren(), isClean()); + controlAssessmentDetails_ = null; + } + return controlAssessmentDetailsBuilder_; + } + + private com.google.protobuf.Timestamp reportTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + reportTimeBuilder_; + + /** + * + * + *
                                    +     * The report time of the aggregated compliance report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + * + * @return Whether the reportTime field is set. + */ + public boolean hasReportTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * The report time of the aggregated compliance report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + * + * @return The reportTime. + */ + public com.google.protobuf.Timestamp getReportTime() { + if (reportTimeBuilder_ == null) { + return reportTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : reportTime_; + } else { + return reportTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * The report time of the aggregated compliance report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + */ + public Builder setReportTime(com.google.protobuf.Timestamp value) { + if (reportTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportTime_ = value; + } else { + reportTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The report time of the aggregated compliance report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + */ + public Builder setReportTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (reportTimeBuilder_ == null) { + reportTime_ = builderForValue.build(); + } else { + reportTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The report time of the aggregated compliance report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + */ + public Builder mergeReportTime(com.google.protobuf.Timestamp value) { + if (reportTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && reportTime_ != null + && reportTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getReportTimeBuilder().mergeFrom(value); + } else { + reportTime_ = value; + } + } else { + reportTimeBuilder_.mergeFrom(value); + } + if (reportTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * The report time of the aggregated compliance report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + */ + public Builder clearReportTime() { + bitField0_ = (bitField0_ & ~0x00000002); + reportTime_ = null; + if (reportTimeBuilder_ != null) { + reportTimeBuilder_.dispose(); + reportTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The report time of the aggregated compliance report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getReportTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReportTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The report time of the aggregated compliance report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getReportTimeOrBuilder() { + if (reportTimeBuilder_ != null) { + return reportTimeBuilder_.getMessageOrBuilder(); + } else { + return reportTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : reportTime_; + } + } + + /** + * + * + *
                                    +     * The report time of the aggregated compliance report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReportTimeFieldBuilder() { + if (reportTimeBuilder_ == null) { + reportTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReportTime(), getParentForChildren(), isClean()); + reportTime_ = null; + } + return reportTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport) + private static final com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregatedComplianceReport 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.cloudsecuritycompliance.v1.AggregatedComplianceReport + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregatedComplianceReportOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregatedComplianceReportOrBuilder.java new file mode 100644 index 000000000000..bc0e6f250afe --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AggregatedComplianceReportOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface AggregatedComplianceReportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + * + * @return Whether the controlAssessmentDetails field is set. + */ + boolean hasControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + * + * @return The controlAssessmentDetails. + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder + getControlAssessmentDetailsOrBuilder(); + + /** + * + * + *
                                    +   * The report time of the aggregated compliance report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + * + * @return Whether the reportTime field is set. + */ + boolean hasReportTime(); + + /** + * + * + *
                                    +   * The report time of the aggregated compliance report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + * + * @return The reportTime. + */ + com.google.protobuf.Timestamp getReportTime(); + + /** + * + * + *
                                    +   * The report time of the aggregated compliance report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp report_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getReportTimeOrBuilder(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AllowedValues.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AllowedValues.java index 2a6ea0401695..905936ffa007 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AllowedValues.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AllowedValues.java @@ -23,7 +23,7 @@ * * *
                                    - * Allowed set of values for the parameter.
                                    + * The allowed set of values for the parameter.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.AllowedValues} @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * @@ -89,7 +89,7 @@ public java.util.List ge * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * @@ -106,7 +106,7 @@ public java.util.List ge * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * @@ -122,7 +122,7 @@ public int getValuesCount() { * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * @@ -138,7 +138,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue getValues(int inde * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * @@ -318,7 +318,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Allowed set of values for the parameter.
                                    +   * The allowed set of values for the parameter.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.AllowedValues} @@ -566,7 +566,7 @@ private void ensureValuesIsMutable() { * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -585,7 +585,7 @@ public java.util.List ge * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -604,7 +604,7 @@ public int getValuesCount() { * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -623,7 +623,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue getValues(int inde * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -649,7 +649,7 @@ public Builder setValues( * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -672,7 +672,7 @@ public Builder setValues( * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -697,7 +697,7 @@ public Builder addValues(com.google.cloud.cloudsecuritycompliance.v1.ParamValue * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -723,7 +723,7 @@ public Builder addValues( * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -746,7 +746,7 @@ public Builder addValues( * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -769,7 +769,7 @@ public Builder addValues( * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -793,7 +793,7 @@ public Builder addAllValues( * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -815,7 +815,7 @@ public Builder clearValues() { * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -837,7 +837,7 @@ public Builder removeValues(int index) { * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -853,7 +853,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue.Builder getValuesB * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -873,7 +873,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValueOrBuilder getValues * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -893,7 +893,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValueOrBuilder getValues * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -909,7 +909,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue.Builder addValuesB * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * @@ -927,7 +927,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue.Builder addValuesB * * *
                                    -     * Required. List of allowed values for the parameter.
                                    +     * Required. The list of allowed values for the parameter.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AllowedValuesOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AllowedValuesOrBuilder.java index 565fdc29c84c..dd66fab316d0 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AllowedValuesOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AllowedValuesOrBuilder.java @@ -28,7 +28,7 @@ public interface AllowedValuesOrBuilder * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * @@ -41,7 +41,7 @@ public interface AllowedValuesOrBuilder * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * @@ -54,7 +54,7 @@ public interface AllowedValuesOrBuilder * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * @@ -67,7 +67,7 @@ public interface AllowedValuesOrBuilder * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * @@ -81,7 +81,7 @@ public interface AllowedValuesOrBuilder * * *
                                    -   * Required. List of allowed values for the parameter.
                                    +   * Required. The list of allowed values for the parameter.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AttributeSubstitutionRule.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AttributeSubstitutionRule.java index 6f6b645a16d6..cf345805df27 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AttributeSubstitutionRule.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AttributeSubstitutionRule.java @@ -23,7 +23,7 @@ * * *
                                    - * Attribute at the given path is substituted entirely.
                                    + * The attribute at the given path that's substituted entirely.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule} @@ -73,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Fully qualified proto attribute path (in dot notation).
                                    -   * Example: rules[0].cel_expression.resource_types_values
                                    +   * The fully qualified proto attribute path, in dot notation.
                                    +   * For example: `rules[0].cel_expression.resource_types_values`
                                        * 
                                    * * string attribute = 1; @@ -98,8 +98,8 @@ public java.lang.String getAttribute() { * * *
                                    -   * Fully qualified proto attribute path (in dot notation).
                                    -   * Example: rules[0].cel_expression.resource_types_values
                                    +   * The fully qualified proto attribute path, in dot notation.
                                    +   * For example: `rules[0].cel_expression.resource_types_values`
                                        * 
                                    * * string attribute = 1; @@ -285,7 +285,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Attribute at the given path is substituted entirely.
                                    +   * The attribute at the given path that's substituted entirely.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRule} @@ -477,8 +477,8 @@ public Builder mergeFrom( * * *
                                    -     * Fully qualified proto attribute path (in dot notation).
                                    -     * Example: rules[0].cel_expression.resource_types_values
                                    +     * The fully qualified proto attribute path, in dot notation.
                                    +     * For example: `rules[0].cel_expression.resource_types_values`
                                          * 
                                    * * string attribute = 1; @@ -501,8 +501,8 @@ public java.lang.String getAttribute() { * * *
                                    -     * Fully qualified proto attribute path (in dot notation).
                                    -     * Example: rules[0].cel_expression.resource_types_values
                                    +     * The fully qualified proto attribute path, in dot notation.
                                    +     * For example: `rules[0].cel_expression.resource_types_values`
                                          * 
                                    * * string attribute = 1; @@ -525,8 +525,8 @@ public com.google.protobuf.ByteString getAttributeBytes() { * * *
                                    -     * Fully qualified proto attribute path (in dot notation).
                                    -     * Example: rules[0].cel_expression.resource_types_values
                                    +     * The fully qualified proto attribute path, in dot notation.
                                    +     * For example: `rules[0].cel_expression.resource_types_values`
                                          * 
                                    * * string attribute = 1; @@ -548,8 +548,8 @@ public Builder setAttribute(java.lang.String value) { * * *
                                    -     * Fully qualified proto attribute path (in dot notation).
                                    -     * Example: rules[0].cel_expression.resource_types_values
                                    +     * The fully qualified proto attribute path, in dot notation.
                                    +     * For example: `rules[0].cel_expression.resource_types_values`
                                          * 
                                    * * string attribute = 1; @@ -567,8 +567,8 @@ public Builder clearAttribute() { * * *
                                    -     * Fully qualified proto attribute path (in dot notation).
                                    -     * Example: rules[0].cel_expression.resource_types_values
                                    +     * The fully qualified proto attribute path, in dot notation.
                                    +     * For example: `rules[0].cel_expression.resource_types_values`
                                          * 
                                    * * string attribute = 1; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AttributeSubstitutionRuleOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AttributeSubstitutionRuleOrBuilder.java index aeeff5ffeb27..81334828f91a 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AttributeSubstitutionRuleOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AttributeSubstitutionRuleOrBuilder.java @@ -28,8 +28,8 @@ public interface AttributeSubstitutionRuleOrBuilder * * *
                                    -   * Fully qualified proto attribute path (in dot notation).
                                    -   * Example: rules[0].cel_expression.resource_types_values
                                    +   * The fully qualified proto attribute path, in dot notation.
                                    +   * For example: `rules[0].cel_expression.resource_types_values`
                                        * 
                                    * * string attribute = 1; @@ -42,8 +42,8 @@ public interface AttributeSubstitutionRuleOrBuilder * * *
                                    -   * Fully qualified proto attribute path (in dot notation).
                                    -   * Example: rules[0].cel_expression.resource_types_values
                                    +   * The fully qualified proto attribute path, in dot notation.
                                    +   * For example: `rules[0].cel_expression.resource_types_values`
                                        * 
                                    * * string attribute = 1; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditConfig.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditConfig.java new file mode 100644 index 000000000000..793befefb62e --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditConfig.java @@ -0,0 +1,1925 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The audit configuration for Compliance Manager.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.AuditConfig} + */ +public final class AuditConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.AuditConfig) + AuditConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AuditConfig.newBuilder() to construct. + private AuditConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AuditConfig() { + destinations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuditConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.class, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.Builder.class); + } + + public interface CmEligibleDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +     * The Cloud Storage bucket where audit reports and evidences can be
                                    +     * uploaded. The format is `gs://{bucket_name}`.
                                    +     * 
                                    + * + * string gcs_bucket = 1; + * + * @return Whether the gcsBucket field is set. + */ + boolean hasGcsBucket(); + + /** + * + * + *
                                    +     * The Cloud Storage bucket where audit reports and evidences can be
                                    +     * uploaded. The format is `gs://{bucket_name}`.
                                    +     * 
                                    + * + * string gcs_bucket = 1; + * + * @return The gcsBucket. + */ + java.lang.String getGcsBucket(); + + /** + * + * + *
                                    +     * The Cloud Storage bucket where audit reports and evidences can be
                                    +     * uploaded. The format is `gs://{bucket_name}`.
                                    +     * 
                                    + * + * string gcs_bucket = 1; + * + * @return The bytes for gcsBucket. + */ + com.google.protobuf.ByteString getGcsBucketBytes(); + + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + .CmEligibleDestinationsCase + getCmEligibleDestinationsCase(); + } + + /** + * + * + *
                                    +   * The destination details where audit reports are
                                    +   * uploaded.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination} + */ + public static final class CmEligibleDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination) + CmEligibleDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CmEligibleDestination.newBuilder() to construct. + private CmEligibleDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CmEligibleDestination() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CmEligibleDestination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_CmEligibleDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_CmEligibleDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.class, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder + .class); + } + + private int cmEligibleDestinationsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object cmEligibleDestinations_; + + public enum CmEligibleDestinationsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_BUCKET(1), + CMELIGIBLEDESTINATIONS_NOT_SET(0); + private final int value; + + private CmEligibleDestinationsCase(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 CmEligibleDestinationsCase valueOf(int value) { + return forNumber(value); + } + + public static CmEligibleDestinationsCase forNumber(int value) { + switch (value) { + case 1: + return GCS_BUCKET; + case 0: + return CMELIGIBLEDESTINATIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CmEligibleDestinationsCase getCmEligibleDestinationsCase() { + return CmEligibleDestinationsCase.forNumber(cmEligibleDestinationsCase_); + } + + public static final int GCS_BUCKET_FIELD_NUMBER = 1; + + /** + * + * + *
                                    +     * The Cloud Storage bucket where audit reports and evidences can be
                                    +     * uploaded. The format is `gs://{bucket_name}`.
                                    +     * 
                                    + * + * string gcs_bucket = 1; + * + * @return Whether the gcsBucket field is set. + */ + public boolean hasGcsBucket() { + return cmEligibleDestinationsCase_ == 1; + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket where audit reports and evidences can be
                                    +     * uploaded. The format is `gs://{bucket_name}`.
                                    +     * 
                                    + * + * string gcs_bucket = 1; + * + * @return The gcsBucket. + */ + public java.lang.String getGcsBucket() { + java.lang.Object ref = ""; + if (cmEligibleDestinationsCase_ == 1) { + ref = cmEligibleDestinations_; + } + 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 (cmEligibleDestinationsCase_ == 1) { + cmEligibleDestinations_ = s; + } + return s; + } + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket where audit reports and evidences can be
                                    +     * uploaded. The format is `gs://{bucket_name}`.
                                    +     * 
                                    + * + * string gcs_bucket = 1; + * + * @return The bytes for gcsBucket. + */ + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = ""; + if (cmEligibleDestinationsCase_ == 1) { + ref = cmEligibleDestinations_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (cmEligibleDestinationsCase_ == 1) { + cmEligibleDestinations_ = 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 (cmEligibleDestinationsCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cmEligibleDestinations_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cmEligibleDestinationsCase_ == 1) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cmEligibleDestinations_); + } + 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.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination other = + (com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination) obj; + + if (!getCmEligibleDestinationsCase().equals(other.getCmEligibleDestinationsCase())) + return false; + switch (cmEligibleDestinationsCase_) { + case 1: + if (!getGcsBucket().equals(other.getGcsBucket())) 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(); + switch (cmEligibleDestinationsCase_) { + case 1: + hash = (37 * hash) + GCS_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getGcsBucket().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + 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.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + 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.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +     * The destination details where audit reports are
                                    +     * uploaded.
                                    +     * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination) + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_CmEligibleDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_CmEligibleDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.class, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cmEligibleDestinationsCase_ = 0; + cmEligibleDestinations_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_CmEligibleDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination build() { + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination result = + new com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination result) { + result.cmEligibleDestinationsCase_ = cmEligibleDestinationsCase_; + result.cmEligibleDestinations_ = this.cmEligibleDestinations_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + .getDefaultInstance()) return this; + switch (other.getCmEligibleDestinationsCase()) { + case GCS_BUCKET: + { + cmEligibleDestinationsCase_ = 1; + cmEligibleDestinations_ = other.cmEligibleDestinations_; + onChanged(); + break; + } + case CMELIGIBLEDESTINATIONS_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: + { + java.lang.String s = input.readStringRequireUtf8(); + cmEligibleDestinationsCase_ = 1; + cmEligibleDestinations_ = 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 cmEligibleDestinationsCase_ = 0; + private java.lang.Object cmEligibleDestinations_; + + public CmEligibleDestinationsCase getCmEligibleDestinationsCase() { + return CmEligibleDestinationsCase.forNumber(cmEligibleDestinationsCase_); + } + + public Builder clearCmEligibleDestinations() { + cmEligibleDestinationsCase_ = 0; + cmEligibleDestinations_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                    +       * The Cloud Storage bucket where audit reports and evidences can be
                                    +       * uploaded. The format is `gs://{bucket_name}`.
                                    +       * 
                                    + * + * string gcs_bucket = 1; + * + * @return Whether the gcsBucket field is set. + */ + @java.lang.Override + public boolean hasGcsBucket() { + return cmEligibleDestinationsCase_ == 1; + } + + /** + * + * + *
                                    +       * The Cloud Storage bucket where audit reports and evidences can be
                                    +       * uploaded. The format is `gs://{bucket_name}`.
                                    +       * 
                                    + * + * string gcs_bucket = 1; + * + * @return The gcsBucket. + */ + @java.lang.Override + public java.lang.String getGcsBucket() { + java.lang.Object ref = ""; + if (cmEligibleDestinationsCase_ == 1) { + ref = cmEligibleDestinations_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (cmEligibleDestinationsCase_ == 1) { + cmEligibleDestinations_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +       * The Cloud Storage bucket where audit reports and evidences can be
                                    +       * uploaded. The format is `gs://{bucket_name}`.
                                    +       * 
                                    + * + * string gcs_bucket = 1; + * + * @return The bytes for gcsBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = ""; + if (cmEligibleDestinationsCase_ == 1) { + ref = cmEligibleDestinations_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (cmEligibleDestinationsCase_ == 1) { + cmEligibleDestinations_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +       * The Cloud Storage bucket where audit reports and evidences can be
                                    +       * uploaded. The format is `gs://{bucket_name}`.
                                    +       * 
                                    + * + * string gcs_bucket = 1; + * + * @param value The gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cmEligibleDestinationsCase_ = 1; + cmEligibleDestinations_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * The Cloud Storage bucket where audit reports and evidences can be
                                    +       * uploaded. The format is `gs://{bucket_name}`.
                                    +       * 
                                    + * + * string gcs_bucket = 1; + * + * @return This builder for chaining. + */ + public Builder clearGcsBucket() { + if (cmEligibleDestinationsCase_ == 1) { + cmEligibleDestinationsCase_ = 0; + cmEligibleDestinations_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +       * The Cloud Storage bucket where audit reports and evidences can be
                                    +       * uploaded. The format is `gs://{bucket_name}`.
                                    +       * 
                                    + * + * string gcs_bucket = 1; + * + * @param value The bytes for gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cmEligibleDestinationsCase_ = 1; + cmEligibleDestinations_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination) + private static final com.google.cloud.cloudsecuritycompliance.v1.AuditConfig + .CmEligibleDestination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmEligibleDestination 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.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DESTINATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination> + destinations_; + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination> + getDestinationsList() { + return destinations_; + } + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig + .CmEligibleDestinationOrBuilder> + getDestinationsOrBuilderList() { + return destinations_; + } + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getDestinationsCount() { + return destinations_.size(); + } + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + getDestinations(int index) { + return destinations_.get(index); + } + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestinationOrBuilder + getDestinationsOrBuilder(int index) { + return destinations_.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 < destinations_.size(); i++) { + output.writeMessage(1, destinations_.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 < destinations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, destinations_.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.cloud.cloudsecuritycompliance.v1.AuditConfig)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig other = + (com.google.cloud.cloudsecuritycompliance.v1.AuditConfig) obj; + + if (!getDestinationsList().equals(other.getDestinationsList())) 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 (getDestinationsCount() > 0) { + hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig 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.cloudsecuritycompliance.v1.AuditConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig 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.cloudsecuritycompliance.v1.AuditConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The audit configuration for Compliance Manager.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.AuditConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.AuditConfig) + com.google.cloud.cloudsecuritycompliance.v1.AuditConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.class, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (destinationsBuilder_ == null) { + destinations_ = java.util.Collections.emptyList(); + } else { + destinations_ = null; + destinationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig build() { + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig result = + new com.google.cloud.cloudsecuritycompliance.v1.AuditConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig result) { + if (destinationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + destinations_ = java.util.Collections.unmodifiableList(destinations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.destinations_ = destinations_; + } else { + result.destinations_ = destinationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.AuditConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.AuditConfig) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.AuditConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.AuditConfig other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.getDefaultInstance()) + return this; + if (destinationsBuilder_ == null) { + if (!other.destinations_.isEmpty()) { + if (destinations_.isEmpty()) { + destinations_ = other.destinations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDestinationsIsMutable(); + destinations_.addAll(other.destinations_); + } + onChanged(); + } + } else { + if (!other.destinations_.isEmpty()) { + if (destinationsBuilder_.isEmpty()) { + destinationsBuilder_.dispose(); + destinationsBuilder_ = null; + destinations_ = other.destinations_; + bitField0_ = (bitField0_ & ~0x00000001); + destinationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDestinationsFieldBuilder() + : null; + } else { + destinationsBuilder_.addAllMessages(other.destinations_); + } + } + } + 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.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig + .CmEligibleDestination.parser(), + extensionRegistry); + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(m); + } else { + destinationsBuilder_.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< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination> + destinations_ = java.util.Collections.emptyList(); + + private void ensureDestinationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + destinations_ = + new java.util.ArrayList< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination>( + destinations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestinationOrBuilder> + destinationsBuilder_; + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination> + getDestinationsList() { + if (destinationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(destinations_); + } else { + return destinationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getDestinationsCount() { + if (destinationsBuilder_ == null) { + return destinations_.size(); + } else { + return destinationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + getDestinations(int index) { + if (destinationsBuilder_ == null) { + return destinations_.get(index); + } else { + return destinationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestinations( + int index, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.set(index, value); + onChanged(); + } else { + destinationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestinations( + int index, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder + builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.set(index, builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDestinations( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.add(value); + onChanged(); + } else { + destinationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDestinations( + int index, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.add(index, value); + onChanged(); + } else { + destinationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDestinations( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder + builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDestinations( + int index, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder + builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(index, builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllDestinations( + java.lang.Iterable< + ? extends + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination> + values) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinations_); + onChanged(); + } else { + destinationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDestinations() { + if (destinationsBuilder_ == null) { + destinations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + destinationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeDestinations(int index) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.remove(index); + onChanged(); + } else { + destinationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder + getDestinationsBuilder(int index) { + return getDestinationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestinationOrBuilder + getDestinationsOrBuilder(int index) { + if (destinationsBuilder_ == null) { + return destinations_.get(index); + } else { + return destinationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig + .CmEligibleDestinationOrBuilder> + getDestinationsOrBuilderList() { + if (destinationsBuilder_ != null) { + return destinationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(destinations_); + } + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder + addDestinationsBuilder() { + return getDestinationsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder + addDestinationsBuilder(int index) { + return getDestinationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Required. The list of destinations that can be selected for uploading audit
                                    +     * reports to.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder> + getDestinationsBuilderList() { + return getDestinationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination.Builder, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestinationOrBuilder> + getDestinationsFieldBuilder() { + if (destinationsBuilder_ == null) { + destinationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination + .Builder, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig + .CmEligibleDestinationOrBuilder>( + destinations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + destinations_ = null; + } + return destinationsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.AuditConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.AuditConfig) + private static final com.google.cloud.cloudsecuritycompliance.v1.AuditConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.AuditConfig(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.AuditConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditConfig 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.cloudsecuritycompliance.v1.AuditConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditConfigOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditConfigOrBuilder.java new file mode 100644 index 000000000000..805be814ba1c --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditConfigOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface AuditConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.AuditConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getDestinationsList(); + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination getDestinations( + int index); + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getDestinationsCount(); + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig + .CmEligibleDestinationOrBuilder> + getDestinationsOrBuilderList(); + + /** + * + * + *
                                    +   * Required. The list of destinations that can be selected for uploading audit
                                    +   * reports to.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.CmEligibleDestinationOrBuilder + getDestinationsOrBuilder(int index); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditProto.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditProto.java new file mode 100644 index 000000000000..2cce5afdc9f8 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditProto.java @@ -0,0 +1,474 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public final class AuditProto { + private AuditProto() {} + + 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_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_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/cloudsecuritycompliance/v1/audit.proto\022\'google.cloud.cloudsecurit" + + "ycompliance.v1\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\0324google/cloud/cloudsecuritycompliance/v1/common.proto\032#google/longrunn" + + "ing/operations.proto\032\037google/protobuf/timestamp.proto\"\202\002\n" + + "(GenerateFrameworkAuditScopeReportRequest\022\022\n" + + "\005scope\030\001 \001(\tB\003\340A\002\022t\n\r" + + "report_format\030\002 \001(\0162X.google.cloud.clo" + + "udsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.FormatB\003\340A\002\022!\n" + + "\024compliance_framework\030\003 \001(\tB\003\340A\002\")\n" + + "\006Format\022\026\n" + + "\022FORMAT_UNSPECIFIED\020\000\022\007\n" + + "\003ODF\020\001\"\246\004\n" + + ")GenerateFrameworkAuditScopeReportResponse\022\037\n" + + "\025scope_report_contents\030\003 \001(\014H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022!\n" + + "\024compliance_framework\030\002 \001(\tB\003\340A\002:\221\003\352A\215\003\n" + + "Pcloudsecuritycompliance.googleapis.com/GenerateFrameworkAuditSco" + + "peReportResponse\022sprojects/{project}/locations/{location}/frameworkAuditScopeRep" + + "orts/{generate_framework_audit_scope_report_response}\022}organizations/{organizati" + + "on}/locations/{location}/frameworkAuditScopeReports/{generate_framework_audit_sc" + + "ope_report_response}*\032frameworkAuditScop" + + "eReports2)generateFrameworkAuditScopeReportResponseB\016\n" + + "\014audit_report\"\250\001\n\r" + + "ReportSummary\022\030\n" + + "\013total_count\030\001 \001(\005B\003\340A\003\022\034\n" + + "\017compliant_count\030\002 \001(\005B\003\340A\003\022\034\n" + + "\017violation_count\030\003 \001(\005B\003\340A\003\022\'\n" + + "\032manual_review_needed_count\030\004 \001(\005B\003\340A\003\022\030\n" + + "\013error_count\030\005 \001(\005B\003\340A\003\"\344\001\n" + + "\033CreateFrameworkAuditRequest\022M\n" + + "\006parent\030\001 \001(" + + "\tB=\340A\002\372A7\0225cloudsecuritycompliance.googleapis.com/FrameworkAudit\022\037\n" + + "\022framework_audit_id\030\002 \001(\tB\003\340A\001\022U\n" + + "\017framework_audit\030\003" + + " \001(\01327.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditB\003\340A\002\"}\n" + + "\031FrameworkAuditDestination\022L\n" + + "\006bucket\030\001 \001(\0132:.goo" + + "gle.cloud.cloudsecuritycompliance.v1.BucketDestinationH\000B\022\n" + + "\020destination_type\"\277\001\n" + + "\021BucketDestination\022\027\n\n" + + "bucket_uri\030\001 \001(\tB\003\340A\002\022f\n" + + "\026framework_audit_format\030\003 \001(\0162A.go" + + "ogle.cloud.cloudsecuritycompliance.v1.BucketDestination.FormatB\003\340A\001\")\n" + + "\006Format\022\026\n" + + "\022FORMAT_UNSPECIFIED\020\000\022\007\n" + + "\003ODF\020\001\"\275\t\n" + + "\016FrameworkAudit\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\037\n" + + "\022framework_audit_id\030\002 \001(\tB\003\340A\003\022!\n" + + "\024compliance_framework\030\003 \001(\tB\003\340A\003\022\022\n" + + "\005scope\030\004 \001(\tB\003\340A\003\022l\n" + + "\033framework_audit_destination\030\005 \001(\0132B.g" + + "oogle.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationB\003\340A\002\0223\n\n" + + "start_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013finish_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022W\n" + + "\020compliance_state\030\010 \001" + + "(\01628.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\003\340A\003\022S\n" + + "\016report_summary\030\t" + + " \001(\01326.google.cloud.cloudsecuritycompliance.v1.ReportSummaryB\003\340A\003\022v\n" + + "!cloud_control_group_audit_details\030\n" + + " \003(\0132F.goog" + + "le.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsB\003\340A\001\022k\n" + + "\033cloud_control_audit_details\030\013 \003(\0132A.google.clo" + + "ud.cloudsecuritycompliance.v1.CloudControlAuditDetailsB\003\340A\001\022\031\n" + + "\014operation_id\030\014 \001(\tB\003\340A\003\022Q\n" + + "\005state\030\r" + + " \001(\0162=.google.cloud.clo" + + "udsecuritycompliance.v1.FrameworkAudit.StateB\003\340A\003\"d\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\r\n" + + "\tSCHEDULED\020\001\022\013\n" + + "\007RUNNING\020\002\022\r\n" + + "\tUPLOADING\020\003\022\n\n" + + "\006FAILED\020\004\022\r\n" + + "\tSUCCEEDED\020\005:\374\001\352A\370\001\n" + + "5cloudsecuritycompliance.googleapis.com/FrameworkAudit\022Iprojects/{project}/locati" + + "ons/{location}/frameworkAudits/{framework_audit}\022Sorganizations/{organization}/l" + + "ocations/{location}/frameworkAudits/{fra" + + "mework_audit}*\017frameworkAudits2\016frameworkAudit\"\261\001\n" + + "\032ListFrameworkAuditsRequest\022M\n" + + "\006parent\030\001 \001(" + + "\tB=\340A\002\372A7\0225cloudsecuritycompliance.googleapis.com/FrameworkAudit\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\"\211\001\n" + + "\033ListFrameworkAuditsResponse\022Q\n" + + "\020framework_audits\030\001" + + " \003(\01327.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit\022\027\n" + + "\017next_page_token\030\002 \001(\t\"g\n" + + "\030GetFrameworkAuditRequest\022K\n" + + "\004name\030\001 \001(\tB=\340A\002\372A7\n" + + "5cloudsecuritycompliance.googleapis.com/FrameworkAudit\"\350\005\n" + + "\035CloudControlGroupAuditDetails\022#\n" + + "\026cloud_control_group_id\030\001 \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\003\022 \n" + + "\023responsibility_type\030\004 \001(\tB\003\340A\003\022.\n" + + "!google_responsibility_description\030\005 \001(\tB\003\340A\003\0221\n" + + "$google_responsibility_implementation\030\006 \001(\tB\003\340A\003\0220\n" + + "#customer_responsibility_description\030\007 \001(\tB\003\340A\003\0223\n" + + "&customer_responsibility_implementation\030\010 \001(\tB\003\340A\003\022W\n" + + "\020compliance_state\030\t \001(\01628.google.cloud.cloudse" + + "curitycompliance.v1.ComplianceStateB\003\340A\003\022\027\n\n" + + "control_id\030\n" + + " \001(\tB\003\340A\003\022S\n" + + "\016control_family\030\013" + + " \001(\01326.google.cloud.cloudsecuritycompliance.v1.ControlFamilyB\003\340A\003\022e\n" + + "\025cloud_control_details\030\014 \003(\0132A.google.cloud.clo" + + "udsecuritycompliance.v1.CloudControlAuditDetailsB\003\340A\003\022S\n" + + "\016report_summary\030\r" + + " \001(\01326." + + "google.cloud.cloudsecuritycompliance.v1.ReportSummaryB\003\340A\003\"\244\002\n" + + "\016FindingDetails\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022W\n" + + "\020compliance_state\030\002 \001" + + "(\01628.google.cloud.cloudsecuritycompliance.v1.ComplianceStateB\003\340A\003\022U\n" + + "\013observation\030\003" + + " \001(\0132;.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsB\003\340A\003\022O\n" + + "\010evidence\030\004" + + " \001(\01328.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsB\003\340A\003\"d\n" + + "\022ObservationDetails\022\032\n\r" + + "current_value\030\001 \001(\tB\003\340A\003\022\033\n" + + "\016expected_value\030\002 \001(\tB\003\340A\001\022\025\n" + + "\010guidance\030\003 \001(\tB\003\340A\003\"Z\n" + + "\017EvidenceDetails\022\025\n" + + "\010resource\030\001 \001(\tB\003\340A\003\022\024\n" + + "\007service\030\002 \001(\tB\003\340A\003\022\032\n\r" + + "evidence_path\030\003 \001(\tB\003\340A\003\"\373\002\n" + + "\030CloudControlAuditDetails\022\032\n\r" + + "cloud_control\030\001 \001(\tB\003\340A\003\022\035\n" + + "\020cloud_control_id\030\002 \001(\tB\003\340A\003\022&\n" + + "\031cloud_control_description\030\003 \001(\tB\003\340A\003\022W\n" + + "\020compliance_state\030\004 \001(\01628.google.cloud.clo" + + "udsecuritycompliance.v1.ComplianceStateB\003\340A\003\022S\n" + + "\016report_summary\030\005 \001(\01326.google.cl" + + "oud.cloudsecuritycompliance.v1.ReportSummaryB\003\340A\003\022N\n" + + "\010findings\030\006 \003(\01327.google.clo" + + "ud.cloudsecuritycompliance.v1.FindingDetailsB\003\340A\003*\217\001\n" + + "\017ComplianceState\022 \n" + + "\034COMPLIANCE_STATE_UNSPECIFIED\020\000\022\r\n" + + "\tCOMPLIANT\020\001\022\r" + + "\n" + + "\tVIOLATION\020\002\022\030\n" + + "\024MANUAL_REVIEW_NEEDED\020\003\022\t\n" + + "\005ERROR\020\004\022\027\n" + + "\023AUDIT_NOT_SUPPORTED\020\0052\234\016\n" + + "\005Audit\022\263\004\n" + + "!GenerateFrameworkAuditScopeReport\022Q.google.cloud.cloudsecuritycomplian" + + "ce.v1.GenerateFrameworkAuditScopeReportRequest\032R.google.cloud.cloudsecuritycompl" + + "iance.v1.GenerateFrameworkAuditScopeRepo" + + "rtResponse\"\346\002\332A(scope,report_format,comp" + + "liance_framework\202\323\344\223\002\264\002\"^/v1/{scope=fold" + + "ers/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport:" + + "\001*Zd\"_/v1/{scope=projects/*/locations/*}/frameworkAuditScopeReports:generateFram" + + "eworkAuditScopeReport:\001*Zi\"d/v1/{scope=organizations/*/locations/*}/frameworkAud" + + "itScopeReports:generateFrameworkAuditScopeReport:\001*\022\331\003\n" + + "\024CreateFrameworkAudit\022D.google.cloud.cloudsecuritycompliance.v1.C" + + "reateFrameworkAuditRequest\032\035.google.longrunning.Operation\"\333\002\312AK\n" + + "\016FrameworkAudit\0229google.cloud.cloudsecuritycompliance.v1" + + ".OperationMetadata\332A)parent,framework_au" + + "dit,framework_audit_id\202\323\344\223\002\332\001\"8/v1/{pare" + + "nt=organizations/*/locations/*}/frameworkAudits:\017framework_auditZE\"2/v1/{parent=" + + "folders/*/locations/*}/frameworkAudits:\017framework_auditZF\"3/v1/{parent=projects/" + + "*/locations/*}/frameworkAudits:\017framework_audit\022\332\002\n" + + "\023ListFrameworkAudits\022C.google.cloud.cloudsecuritycompliance.v1.ListFr" + + "ameworkAuditsRequest\032D.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAudi" + + "tsResponse\"\267\001\332A\006parent\202\323\344\223\002\247\001\0228/v1/{pare" + + "nt=organizations/*/locations/*}/frameworkAuditsZ4\0222/v1/{parent=folders/*/locatio" + + "ns/*}/frameworkAuditsZ5\0223/v1/{parent=projects/*/locations/*}/frameworkAudits\022\307\002\n" + + "\021GetFrameworkAudit\022A.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRe" + + "quest\0327.google.cloud.cloudsecuritycompli" + + "ance.v1.FrameworkAudit\"\265\001\332A\004name\202\323\344\223\002\247\001\022" + + "8/v1/{name=organizations/*/locations/*/frameworkAudits/*}Z4\0222/v1/{name=folders/*" + + "/locations/*/frameworkAudits/*}Z5\0223/v1/{name=projects/*/locations/*/frameworkAud" + + "its/*}\032Z\312A&cloudsecuritycompliance.googl" + + "eapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\243\002\n" + + "+com.google.cloud.cloudsecuritycompliance.v1B\n" + + "AuditProtoP\001Zecloud.google.com/go/cloudsecuritycompl" + + "iance/apiv1/cloudsecuritycompliancepb;cl" + + "oudsecuritycompliancepb\252\002\'Google.Cloud.C" + + "loudSecurityCompliance.V1\312\002\'Google\\Cloud" + + "\\CloudSecurityCompliance\\V1\352\002*Google::Cl" + + "oud::CloudSecurityCompliance::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_descriptor, + new java.lang.String[] { + "Scope", "ReportFormat", "ComplianceFramework", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_descriptor, + new java.lang.String[] { + "ScopeReportContents", "Name", "ComplianceFramework", "AuditReport", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_descriptor, + new java.lang.String[] { + "TotalCount", + "CompliantCount", + "ViolationCount", + "ManualReviewNeededCount", + "ErrorCount", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_descriptor, + new java.lang.String[] { + "Parent", "FrameworkAuditId", "FrameworkAudit", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_descriptor, + new java.lang.String[] { + "Bucket", "DestinationType", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_descriptor, + new java.lang.String[] { + "BucketUri", "FrameworkAuditFormat", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_descriptor, + new java.lang.String[] { + "Name", + "FrameworkAuditId", + "ComplianceFramework", + "Scope", + "FrameworkAuditDestination", + "StartTime", + "FinishTime", + "ComplianceState", + "ReportSummary", + "CloudControlGroupAuditDetails", + "CloudControlAuditDetails", + "OperationId", + "State", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_descriptor, + new java.lang.String[] { + "FrameworkAudits", "NextPageToken", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_descriptor, + new java.lang.String[] { + "CloudControlGroupId", + "DisplayName", + "Description", + "ResponsibilityType", + "GoogleResponsibilityDescription", + "GoogleResponsibilityImplementation", + "CustomerResponsibilityDescription", + "CustomerResponsibilityImplementation", + "ComplianceState", + "ControlId", + "ControlFamily", + "CloudControlDetails", + "ReportSummary", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_descriptor, + new java.lang.String[] { + "Name", "ComplianceState", "Observation", "Evidence", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_descriptor, + new java.lang.String[] { + "CurrentValue", "ExpectedValue", "Guidance", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_descriptor, + new java.lang.String[] { + "Resource", "Service", "EvidencePath", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_descriptor, + new java.lang.String[] { + "CloudControl", + "CloudControlId", + "CloudControlDescription", + "ComplianceState", + "ReportSummary", + "Findings", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/BucketDestination.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/BucketDestination.java new file mode 100644 index 000000000000..f16dc44eae79 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/BucketDestination.java @@ -0,0 +1,959 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * A Cloud Storage bucket destination.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.BucketDestination} + */ +public final class BucketDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.BucketDestination) + BucketDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BucketDestination.newBuilder() to construct. + private BucketDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BucketDestination() { + bucketUri_ = ""; + frameworkAuditFormat_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BucketDestination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.class, + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Builder.class); + } + + /** + * + * + *
                                    +   * The set of options for the framework audit format.
                                    +   * 
                                    + * + * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format} + */ + public enum Format implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +     * Default value. This value is unused.
                                    +     * 
                                    + * + * FORMAT_UNSPECIFIED = 0; + */ + FORMAT_UNSPECIFIED(0), + /** + * + * + *
                                    +     * The format for the framework audit report is Open Document.
                                    +     * 
                                    + * + * ODF = 1; + */ + ODF(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +     * Default value. This value is unused.
                                    +     * 
                                    + * + * FORMAT_UNSPECIFIED = 0; + */ + public static final int FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +     * The format for the framework audit report is Open Document.
                                    +     * 
                                    + * + * ODF = 1; + */ + public static final int ODF_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 Format 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 Format forNumber(int value) { + switch (value) { + case 0: + return FORMAT_UNSPECIFIED; + case 1: + return ODF; + 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 Format findValueByNumber(int number) { + return Format.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Format[] VALUES = values(); + + public static Format 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 Format(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format) + } + + public static final int BUCKET_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucketUri_ = ""; + + /** + * + * + *
                                    +   * Required. The URI of the Cloud Storage bucket.
                                    +   * 
                                    + * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucketUri. + */ + @java.lang.Override + public java.lang.String getBucketUri() { + java.lang.Object ref = bucketUri_; + 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(); + bucketUri_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Required. The URI of the Cloud Storage bucket.
                                    +   * 
                                    + * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucketUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketUriBytes() { + java.lang.Object ref = bucketUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FRAMEWORK_AUDIT_FORMAT_FIELD_NUMBER = 3; + private int frameworkAuditFormat_ = 0; + + /** + * + * + *
                                    +   * Optional. The format of the framework audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for frameworkAuditFormat. + */ + @java.lang.Override + public int getFrameworkAuditFormatValue() { + return frameworkAuditFormat_; + } + + /** + * + * + *
                                    +   * Optional. The format of the framework audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The frameworkAuditFormat. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format + getFrameworkAuditFormat() { + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format result = + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format.forNumber( + frameworkAuditFormat_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketUri_); + } + if (frameworkAuditFormat_ + != com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format.FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, frameworkAuditFormat_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucketUri_); + } + if (frameworkAuditFormat_ + != com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format.FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, frameworkAuditFormat_); + } + 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.cloudsecuritycompliance.v1.BucketDestination)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination other = + (com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) obj; + + if (!getBucketUri().equals(other.getBucketUri())) return false; + if (frameworkAuditFormat_ != other.frameworkAuditFormat_) 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) + BUCKET_URI_FIELD_NUMBER; + hash = (53 * hash) + getBucketUri().hashCode(); + hash = (37 * hash) + FRAMEWORK_AUDIT_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + frameworkAuditFormat_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination 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.cloudsecuritycompliance.v1.BucketDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination 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.cloudsecuritycompliance.v1.BucketDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * A Cloud Storage bucket destination.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.BucketDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.BucketDestination) + com.google.cloud.cloudsecuritycompliance.v1.BucketDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.class, + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucketUri_ = ""; + frameworkAuditFormat_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_BucketDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestination + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestination build() { + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestination buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination result = + new com.google.cloud.cloudsecuritycompliance.v1.BucketDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucketUri_ = bucketUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.frameworkAuditFormat_ = frameworkAuditFormat_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.BucketDestination other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.getDefaultInstance()) + return this; + if (!other.getBucketUri().isEmpty()) { + bucketUri_ = other.bucketUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.frameworkAuditFormat_ != 0) { + setFrameworkAuditFormatValue(other.getFrameworkAuditFormatValue()); + } + 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: + { + bucketUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + frameworkAuditFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + 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.lang.Object bucketUri_ = ""; + + /** + * + * + *
                                    +     * Required. The URI of the Cloud Storage bucket.
                                    +     * 
                                    + * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucketUri. + */ + public java.lang.String getBucketUri() { + java.lang.Object ref = bucketUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucketUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Required. The URI of the Cloud Storage bucket.
                                    +     * 
                                    + * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucketUri. + */ + public com.google.protobuf.ByteString getBucketUriBytes() { + java.lang.Object ref = bucketUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Required. The URI of the Cloud Storage bucket.
                                    +     * 
                                    + * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bucketUri to set. + * @return This builder for chaining. + */ + public Builder setBucketUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucketUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The URI of the Cloud Storage bucket.
                                    +     * 
                                    + * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBucketUri() { + bucketUri_ = getDefaultInstance().getBucketUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The URI of the Cloud Storage bucket.
                                    +     * 
                                    + * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for bucketUri to set. + * @return This builder for chaining. + */ + public Builder setBucketUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucketUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int frameworkAuditFormat_ = 0; + + /** + * + * + *
                                    +     * Optional. The format of the framework audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for frameworkAuditFormat. + */ + @java.lang.Override + public int getFrameworkAuditFormatValue() { + return frameworkAuditFormat_; + } + + /** + * + * + *
                                    +     * Optional. The format of the framework audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for frameworkAuditFormat to set. + * @return This builder for chaining. + */ + public Builder setFrameworkAuditFormatValue(int value) { + frameworkAuditFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The format of the framework audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The frameworkAuditFormat. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format + getFrameworkAuditFormat() { + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format result = + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format.forNumber( + frameworkAuditFormat_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Optional. The format of the framework audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The frameworkAuditFormat to set. + * @return This builder for chaining. + */ + public Builder setFrameworkAuditFormat( + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + frameworkAuditFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The format of the framework audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFrameworkAuditFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + frameworkAuditFormat_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.BucketDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.BucketDestination) + private static final com.google.cloud.cloudsecuritycompliance.v1.BucketDestination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.BucketDestination(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.BucketDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BucketDestination 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.cloudsecuritycompliance.v1.BucketDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/BucketDestinationOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/BucketDestinationOrBuilder.java new file mode 100644 index 000000000000..ae5acb4b36be --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/BucketDestinationOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface BucketDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.BucketDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The URI of the Cloud Storage bucket.
                                    +   * 
                                    + * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucketUri. + */ + java.lang.String getBucketUri(); + + /** + * + * + *
                                    +   * Required. The URI of the Cloud Storage bucket.
                                    +   * 
                                    + * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucketUri. + */ + com.google.protobuf.ByteString getBucketUriBytes(); + + /** + * + * + *
                                    +   * Optional. The format of the framework audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for frameworkAuditFormat. + */ + int getFrameworkAuditFormatValue(); + + /** + * + * + *
                                    +   * Optional. The format of the framework audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format framework_audit_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The frameworkAuditFormat. + */ + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Format getFrameworkAuditFormat(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CELExpression.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CELExpression.java index e30ffea68bd5..331494660995 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CELExpression.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CELExpression.java @@ -23,8 +23,7 @@ * * *
                                    - * A [CEL
                                    - * expression](https://cloud.google.com/certificate-authority-service/docs/using-cel).
                                    + * A Common Expression Language (CEL) expression that's used to create a rule.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CELExpression} @@ -119,8 +118,8 @@ public CriteriaCase getCriteriaCase() { * *
                                        * The resource instance types on which this expression is defined.
                                    -   * Format will be of the form : `<canonical service name>/<type>`
                                    -   * Example: `compute.googleapis.com/Instance`.
                                    +   * The format is `<SERVICE_NAME>/<type>`.
                                    +   * For example: `compute.googleapis.com/Instance`
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -137,8 +136,8 @@ public boolean hasResourceTypesValues() { * *
                                        * The resource instance types on which this expression is defined.
                                    -   * Format will be of the form : `<canonical service name>/<type>`
                                    -   * Example: `compute.googleapis.com/Instance`.
                                    +   * The format is `<SERVICE_NAME>/<type>`.
                                    +   * For example: `compute.googleapis.com/Instance`
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -158,8 +157,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.StringList getResourceTypesVa * *
                                        * The resource instance types on which this expression is defined.
                                    -   * Format will be of the form : `<canonical service name>/<type>`
                                    -   * Example: `compute.googleapis.com/Instance`.
                                    +   * The format is `<SERVICE_NAME>/<type>`.
                                    +   * For example: `compute.googleapis.com/Instance`
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -182,8 +181,9 @@ public com.google.cloud.cloudsecuritycompliance.v1.StringList getResourceTypesVa * * *
                                    -   * Required. Logic expression in CEL language.
                                    -   * The max length of the condition is 1000 characters.
                                    +   * Required. The logical expression in CEL. The maximum length of the
                                    +   * condition is 1000 characters. For more information, see [CEL
                                    +   * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).
                                        * 
                                    * * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -207,8 +207,9 @@ public java.lang.String getExpression() { * * *
                                    -   * Required. Logic expression in CEL language.
                                    -   * The max length of the condition is 1000 characters.
                                    +   * Required. The logical expression in CEL. The maximum length of the
                                    +   * condition is 1000 characters. For more information, see [CEL
                                    +   * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).
                                        * 
                                    * * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -417,8 +418,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * A [CEL
                                    -   * expression](https://cloud.google.com/certificate-authority-service/docs/using-cel).
                                    +   * A Common Expression Language (CEL) expression that's used to create a rule.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CELExpression} @@ -655,8 +655,8 @@ public Builder clearCriteria() { * *
                                          * The resource instance types on which this expression is defined.
                                    -     * Format will be of the form : `<canonical service name>/<type>`
                                    -     * Example: `compute.googleapis.com/Instance`.
                                    +     * The format is `<SERVICE_NAME>/<type>`.
                                    +     * For example: `compute.googleapis.com/Instance`
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -673,8 +673,8 @@ public boolean hasResourceTypesValues() { * *
                                          * The resource instance types on which this expression is defined.
                                    -     * Format will be of the form : `<canonical service name>/<type>`
                                    -     * Example: `compute.googleapis.com/Instance`.
                                    +     * The format is `<SERVICE_NAME>/<type>`.
                                    +     * For example: `compute.googleapis.com/Instance`
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -701,8 +701,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.StringList getResourceTypesVa * *
                                          * The resource instance types on which this expression is defined.
                                    -     * Format will be of the form : `<canonical service name>/<type>`
                                    -     * Example: `compute.googleapis.com/Instance`.
                                    +     * The format is `<SERVICE_NAME>/<type>`.
                                    +     * For example: `compute.googleapis.com/Instance`
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -727,8 +727,8 @@ public Builder setResourceTypesValues( * *
                                          * The resource instance types on which this expression is defined.
                                    -     * Format will be of the form : `<canonical service name>/<type>`
                                    -     * Example: `compute.googleapis.com/Instance`.
                                    +     * The format is `<SERVICE_NAME>/<type>`.
                                    +     * For example: `compute.googleapis.com/Instance`
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -750,8 +750,8 @@ public Builder setResourceTypesValues( * *
                                          * The resource instance types on which this expression is defined.
                                    -     * Format will be of the form : `<canonical service name>/<type>`
                                    -     * Example: `compute.googleapis.com/Instance`.
                                    +     * The format is `<SERVICE_NAME>/<type>`.
                                    +     * For example: `compute.googleapis.com/Instance`
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -787,8 +787,8 @@ public Builder mergeResourceTypesValues( * *
                                          * The resource instance types on which this expression is defined.
                                    -     * Format will be of the form : `<canonical service name>/<type>`
                                    -     * Example: `compute.googleapis.com/Instance`.
                                    +     * The format is `<SERVICE_NAME>/<type>`.
                                    +     * For example: `compute.googleapis.com/Instance`
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -815,8 +815,8 @@ public Builder clearResourceTypesValues() { * *
                                          * The resource instance types on which this expression is defined.
                                    -     * Format will be of the form : `<canonical service name>/<type>`
                                    -     * Example: `compute.googleapis.com/Instance`.
                                    +     * The format is `<SERVICE_NAME>/<type>`.
                                    +     * For example: `compute.googleapis.com/Instance`
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -831,8 +831,8 @@ public Builder clearResourceTypesValues() { * *
                                          * The resource instance types on which this expression is defined.
                                    -     * Format will be of the form : `<canonical service name>/<type>`
                                    -     * Example: `compute.googleapis.com/Instance`.
                                    +     * The format is `<SERVICE_NAME>/<type>`.
                                    +     * For example: `compute.googleapis.com/Instance`
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -855,8 +855,8 @@ public Builder clearResourceTypesValues() { * *
                                          * The resource instance types on which this expression is defined.
                                    -     * Format will be of the form : `<canonical service name>/<type>`
                                    -     * Example: `compute.googleapis.com/Instance`.
                                    +     * The format is `<SERVICE_NAME>/<type>`.
                                    +     * For example: `compute.googleapis.com/Instance`
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -891,8 +891,9 @@ public Builder clearResourceTypesValues() { * * *
                                    -     * Required. Logic expression in CEL language.
                                    -     * The max length of the condition is 1000 characters.
                                    +     * Required. The logical expression in CEL. The maximum length of the
                                    +     * condition is 1000 characters. For more information, see [CEL
                                    +     * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).
                                          * 
                                    * * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -915,8 +916,9 @@ public java.lang.String getExpression() { * * *
                                    -     * Required. Logic expression in CEL language.
                                    -     * The max length of the condition is 1000 characters.
                                    +     * Required. The logical expression in CEL. The maximum length of the
                                    +     * condition is 1000 characters. For more information, see [CEL
                                    +     * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).
                                          * 
                                    * * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -939,8 +941,9 @@ public com.google.protobuf.ByteString getExpressionBytes() { * * *
                                    -     * Required. Logic expression in CEL language.
                                    -     * The max length of the condition is 1000 characters.
                                    +     * Required. The logical expression in CEL. The maximum length of the
                                    +     * condition is 1000 characters. For more information, see [CEL
                                    +     * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).
                                          * 
                                    * * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -962,8 +965,9 @@ public Builder setExpression(java.lang.String value) { * * *
                                    -     * Required. Logic expression in CEL language.
                                    -     * The max length of the condition is 1000 characters.
                                    +     * Required. The logical expression in CEL. The maximum length of the
                                    +     * condition is 1000 characters. For more information, see [CEL
                                    +     * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).
                                          * 
                                    * * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -981,8 +985,9 @@ public Builder clearExpression() { * * *
                                    -     * Required. Logic expression in CEL language.
                                    -     * The max length of the condition is 1000 characters.
                                    +     * Required. The logical expression in CEL. The maximum length of the
                                    +     * condition is 1000 characters. For more information, see [CEL
                                    +     * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).
                                          * 
                                    * * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CELExpressionOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CELExpressionOrBuilder.java index 5898126c7a97..6820e9a15ae1 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CELExpressionOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CELExpressionOrBuilder.java @@ -29,8 +29,8 @@ public interface CELExpressionOrBuilder * *
                                        * The resource instance types on which this expression is defined.
                                    -   * Format will be of the form : `<canonical service name>/<type>`
                                    -   * Example: `compute.googleapis.com/Instance`.
                                    +   * The format is `<SERVICE_NAME>/<type>`.
                                    +   * For example: `compute.googleapis.com/Instance`
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -44,8 +44,8 @@ public interface CELExpressionOrBuilder * *
                                        * The resource instance types on which this expression is defined.
                                    -   * Format will be of the form : `<canonical service name>/<type>`
                                    -   * Example: `compute.googleapis.com/Instance`.
                                    +   * The format is `<SERVICE_NAME>/<type>`.
                                    +   * For example: `compute.googleapis.com/Instance`
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -59,8 +59,8 @@ public interface CELExpressionOrBuilder * *
                                        * The resource instance types on which this expression is defined.
                                    -   * Format will be of the form : `<canonical service name>/<type>`
                                    -   * Example: `compute.googleapis.com/Instance`.
                                    +   * The format is `<SERVICE_NAME>/<type>`.
                                    +   * For example: `compute.googleapis.com/Instance`
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3; @@ -71,8 +71,9 @@ public interface CELExpressionOrBuilder * * *
                                    -   * Required. Logic expression in CEL language.
                                    -   * The max length of the condition is 1000 characters.
                                    +   * Required. The logical expression in CEL. The maximum length of the
                                    +   * condition is 1000 characters. For more information, see [CEL
                                    +   * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).
                                        * 
                                    * * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -85,8 +86,9 @@ public interface CELExpressionOrBuilder * * *
                                    -   * Required. Logic expression in CEL language.
                                    -   * The max length of the condition is 1000 characters.
                                    +   * Required. The logical expression in CEL. The maximum length of the
                                    +   * condition is 1000 characters. For more information, see [CEL
                                    +   * expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).
                                        * 
                                    * * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentRequest.java new file mode 100644 index 000000000000..0fdba2237c84 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentRequest.java @@ -0,0 +1,725 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [CalculateEffectiveCmEnrollment][].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest} + */ +public final class CalculateEffectiveCmEnrollmentRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest) + CalculateEffectiveCmEnrollmentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CalculateEffectiveCmEnrollmentRequest.newBuilder() to construct. + private CalculateEffectiveCmEnrollmentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CalculateEffectiveCmEnrollmentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CalculateEffectiveCmEnrollmentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Required. The name of the Compliance Manager enrollment to calculate.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +   * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +   * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +   * 
                                    + * + * + * 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. The name of the Compliance Manager enrollment to calculate.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +   * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +   * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +   * 
                                    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest) 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.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + 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.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + 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.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [CalculateEffectiveCmEnrollment][].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest) + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + .class, + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + build() { + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + .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. The name of the Compliance Manager enrollment to calculate.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * + * 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. The name of the Compliance Manager enrollment to calculate.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * + * 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. The name of the Compliance Manager enrollment to calculate.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * + * 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. The name of the Compliance Manager enrollment to calculate.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * + * 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. The name of the Compliance Manager enrollment to calculate.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .CalculateEffectiveCmEnrollmentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CalculateEffectiveCmEnrollmentRequest 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.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentRequestOrBuilder.java new file mode 100644 index 000000000000..3837394caf0d --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentRequestOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface CalculateEffectiveCmEnrollmentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The name of the Compliance Manager enrollment to calculate.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +   * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +   * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Required. The name of the Compliance Manager enrollment to calculate.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +   * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +   * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +   * 
                                    + * + * + * 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-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentResponse.java new file mode 100644 index 000000000000..2f9817f4a879 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentResponse.java @@ -0,0 +1,779 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The response message for [CalculateEffectiveCmEnrollment][].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse} + */ +public final class CalculateEffectiveCmEnrollmentResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse) + CalculateEffectiveCmEnrollmentResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CalculateEffectiveCmEnrollmentResponse.newBuilder() to construct. + private CalculateEffectiveCmEnrollmentResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CalculateEffectiveCmEnrollmentResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CalculateEffectiveCmEnrollmentResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + .Builder.class); + } + + private int bitField0_; + public static final int CM_ENROLLMENT_FIELD_NUMBER = 1; + private com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment cmEnrollment_; + + /** + * + * + *
                                    +   * The effective Compliance Manager enrollment for the resource.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + * + * @return Whether the cmEnrollment field is set. + */ + @java.lang.Override + public boolean hasCmEnrollment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * The effective Compliance Manager enrollment for the resource.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + * + * @return The cmEnrollment. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment getCmEnrollment() { + return cmEnrollment_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance() + : cmEnrollment_; + } + + /** + * + * + *
                                    +   * The effective Compliance Manager enrollment for the resource.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder + getCmEnrollmentOrBuilder() { + return cmEnrollment_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance() + : cmEnrollment_; + } + + 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, getCmEnrollment()); + } + 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, getCmEnrollment()); + } + 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.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse other = + (com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse) obj; + + if (hasCmEnrollment() != other.hasCmEnrollment()) return false; + if (hasCmEnrollment()) { + if (!getCmEnrollment().equals(other.getCmEnrollment())) 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 (hasCmEnrollment()) { + hash = (37 * hash) + CM_ENROLLMENT_FIELD_NUMBER; + hash = (53 * hash) + getCmEnrollment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + 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.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + 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.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The response message for [CalculateEffectiveCmEnrollment][].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse) + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCmEnrollmentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cmEnrollment_ = null; + if (cmEnrollmentBuilder_ != null) { + cmEnrollmentBuilder_.dispose(); + cmEnrollmentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + build() { + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse result = + new com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cmEnrollment_ = + cmEnrollmentBuilder_ == null ? cmEnrollment_ : cmEnrollmentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + .getDefaultInstance()) return this; + if (other.hasCmEnrollment()) { + mergeCmEnrollment(other.getCmEnrollment()); + } + 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(getCmEnrollmentFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment cmEnrollment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder> + cmEnrollmentBuilder_; + + /** + * + * + *
                                    +     * The effective Compliance Manager enrollment for the resource.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + * + * @return Whether the cmEnrollment field is set. + */ + public boolean hasCmEnrollment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +     * The effective Compliance Manager enrollment for the resource.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + * + * @return The cmEnrollment. + */ + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment getCmEnrollment() { + if (cmEnrollmentBuilder_ == null) { + return cmEnrollment_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance() + : cmEnrollment_; + } else { + return cmEnrollmentBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * The effective Compliance Manager enrollment for the resource.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + public Builder setCmEnrollment(com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment value) { + if (cmEnrollmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cmEnrollment_ = value; + } else { + cmEnrollmentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The effective Compliance Manager enrollment for the resource.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + public Builder setCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder builderForValue) { + if (cmEnrollmentBuilder_ == null) { + cmEnrollment_ = builderForValue.build(); + } else { + cmEnrollmentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The effective Compliance Manager enrollment for the resource.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + public Builder mergeCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment value) { + if (cmEnrollmentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && cmEnrollment_ != null + && cmEnrollment_ + != com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance()) { + getCmEnrollmentBuilder().mergeFrom(value); + } else { + cmEnrollment_ = value; + } + } else { + cmEnrollmentBuilder_.mergeFrom(value); + } + if (cmEnrollment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * The effective Compliance Manager enrollment for the resource.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + public Builder clearCmEnrollment() { + bitField0_ = (bitField0_ & ~0x00000001); + cmEnrollment_ = null; + if (cmEnrollmentBuilder_ != null) { + cmEnrollmentBuilder_.dispose(); + cmEnrollmentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The effective Compliance Manager enrollment for the resource.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder + getCmEnrollmentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCmEnrollmentFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The effective Compliance Manager enrollment for the resource.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder + getCmEnrollmentOrBuilder() { + if (cmEnrollmentBuilder_ != null) { + return cmEnrollmentBuilder_.getMessageOrBuilder(); + } else { + return cmEnrollment_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance() + : cmEnrollment_; + } + } + + /** + * + * + *
                                    +     * The effective Compliance Manager enrollment for the resource.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder> + getCmEnrollmentFieldBuilder() { + if (cmEnrollmentBuilder_ == null) { + cmEnrollmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder>( + getCmEnrollment(), getParentForChildren(), isClean()); + cmEnrollment_ = null; + } + return cmEnrollmentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .CalculateEffectiveCmEnrollmentResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CalculateEffectiveCmEnrollmentResponse 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.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentResponseOrBuilder.java new file mode 100644 index 000000000000..4a6b01037cc5 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CalculateEffectiveCmEnrollmentResponseOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface CalculateEffectiveCmEnrollmentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The effective Compliance Manager enrollment for the resource.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + * + * @return Whether the cmEnrollment field is set. + */ + boolean hasCmEnrollment(); + + /** + * + * + *
                                    +   * The effective Compliance Manager enrollment for the resource.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + * + * @return The cmEnrollment. + */ + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment getCmEnrollment(); + + /** + * + * + *
                                    +   * The effective Compliance Manager enrollment for the resource.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1; + */ + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder getCmEnrollmentOrBuilder(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControl.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControl.java index ad57d620c604..30cb9ad8b851 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControl.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControl.java @@ -23,12 +23,8 @@ * * *
                                    - * A CloudControl is the fundamental unit encapsulating the rules
                                    - * to meet a specific security or compliance intent. It can contain
                                    - * various rule types (like Organization Policies, CEL expressions, etc.)
                                    - * enabling different enforcement modes (Preventive, Detective, Audit).
                                    - * CloudControls are often parameterized for reusability and can be either
                                    - * BUILT_IN (provided by Google) or CUSTOM (defined by the user).
                                    + * A cloud control is a set of rules and associated metadata that you can
                                    + * use to define your organization's security or compliance intent.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControl} @@ -81,6 +77,167 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Builder.class); } + /** + * + * + *
                                    +   * The type of cloud control.
                                    +   * 
                                    + * + * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.CloudControl.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +     * Default value. This value is unused.
                                    +     * 
                                    + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
                                    +     * A cloud control that's created and managed by you.
                                    +     * 
                                    + * + * CUSTOM = 1; + */ + CUSTOM(1), + /** + * + * + *
                                    +     * A cloud control that's provided and managed by Google.
                                    +     * 
                                    + * + * BUILT_IN = 2; + */ + BUILT_IN(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +     * Default value. This value is unused.
                                    +     * 
                                    + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +     * A cloud control that's created and managed by you.
                                    +     * 
                                    + * + * CUSTOM = 1; + */ + public static final int CUSTOM_VALUE = 1; + + /** + * + * + *
                                    +     * A cloud control that's provided and managed by Google.
                                    +     * 
                                    + * + * BUILT_IN = 2; + */ + public static final int BUILT_IN_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return CUSTOM; + case 2: + return BUILT_IN; + 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 Type findValueByNumber(int number) { + return Type.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CloudControl.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.CloudControl.Type) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -91,9 +248,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. Identifier. The resource name of the cloud control.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}
                                    +   * Required. Identifier. The name of the cloud control, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -119,9 +276,9 @@ public java.lang.String getName() { * * *
                                    -   * Required. Identifier. The resource name of the cloud control.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}
                                    +   * Required. Identifier. The name of the cloud control, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -150,8 +307,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -   * Output only. Major revision of the cloud control incremented in ascending
                                    -   * order.
                                    +   * Output only. The major version of the cloud control, which is incremented
                                    +   * in ascending order.
                                        * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -227,7 +384,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -   * Optional. The display name of the cloud control. The maximum length is 200
                                    +   * Optional. The friendly name of the cloud control. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -252,7 +409,7 @@ public java.lang.String getDisplayName() { * * *
                                    -   * Optional. The display name of the cloud control. The maximum length is 200
                                    +   * Optional. The friendly name of the cloud control. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -297,8 +454,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode convert( * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -319,8 +475,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode convert( * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -338,8 +493,7 @@ public int getSupportedEnforcementModesCount() { * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -359,8 +513,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getSupportedE * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -378,8 +531,7 @@ public java.util.List getSupportedEnforcementModesValueList() * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -405,7 +557,7 @@ public int getSupportedEnforcementModesValue(int index) { * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -422,7 +574,7 @@ public int getSupportedEnforcementModesValue(int index) { * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -440,7 +592,7 @@ public int getSupportedEnforcementModesValue(int index) { * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -456,7 +608,7 @@ public int getParameterSpecCount() { * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -472,7 +624,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSpec getParameterSpe * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -494,8 +646,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSpec getParameterSpe * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -511,8 +663,8 @@ public java.util.List getRules * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -529,8 +681,8 @@ public java.util.List getRules * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -546,8 +698,8 @@ public int getRulesCount() { * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -563,8 +715,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.Rule getRules(int index) { * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -583,7 +735,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.RuleOrBuilder getRulesOrBuild * * *
                                    -   * Optional. The severity of findings generated by the cloud control.
                                    +   * Optional. The severity of the findings that are generated by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -601,7 +754,8 @@ public int getSeverityValue() { * * *
                                    -   * Optional. The severity of findings generated by the cloud control.
                                    +   * Optional. The severity of the findings that are generated by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -628,8 +782,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.Severity getSeverity() { * * *
                                    -   * Optional. The finding_category of the cloud control. The maximum length is
                                    -   * 255 characters.
                                    +   * Optional. The finding category for the cloud control findings. The maximum
                                    +   * length is 255 characters.
                                        * 
                                    * * string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -653,8 +807,8 @@ public java.lang.String getFindingCategory() { * * *
                                    -   * Optional. The finding_category of the cloud control. The maximum length is
                                    -   * 255 characters.
                                    +   * Optional. The finding category for the cloud control findings. The maximum
                                    +   * length is 255 characters.
                                        * 
                                    * * string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -698,7 +852,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider convert( * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -719,7 +873,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider convert( * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -737,7 +891,7 @@ public int getSupportedCloudProvidersCount() { * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -757,7 +911,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedClo * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -775,7 +929,7 @@ public java.util.List getSupportedCloudProvidersValueList() { * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -802,7 +956,7 @@ public int getSupportedCloudProvidersValue(int index) { * * *
                                    -   * Output only. The Frameworks that include this CloudControl
                                    +   * Output only. The frameworks that include this cloud control.
                                        * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -818,7 +972,7 @@ public com.google.protobuf.ProtocolStringList getRelatedFrameworksList() { * * *
                                    -   * Output only. The Frameworks that include this CloudControl
                                    +   * Output only. The frameworks that include this cloud control.
                                        * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -834,7 +988,7 @@ public int getRelatedFrameworksCount() { * * *
                                    -   * Output only. The Frameworks that include this CloudControl
                                    +   * Output only. The frameworks that include this cloud control.
                                        * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -851,7 +1005,7 @@ public java.lang.String getRelatedFrameworks(int index) { * * *
                                    -   * Output only. The Frameworks that include this CloudControl
                                    +   * Output only. The frameworks that include this cloud control.
                                        * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -873,8 +1027,8 @@ public com.google.protobuf.ByteString getRelatedFrameworksBytes(int index) { * * *
                                    -   * Optional. The remediation steps for the findings generated by the cloud
                                    -   * control. The maximum length is 400 characters.
                                    +   * Optional. The remediation steps for the cloud control findings. The
                                    +   * maximum length is 400 characters.
                                        * 
                                    * * string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; @@ -898,8 +1052,8 @@ public java.lang.String getRemediationSteps() { * * *
                                    -   * Optional. The remediation steps for the findings generated by the cloud
                                    -   * control. The maximum length is 400 characters.
                                    +   * Optional. The remediation steps for the cloud control findings. The
                                    +   * maximum length is 400 characters.
                                        * 
                                    * * string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; @@ -944,7 +1098,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlCategory convert( * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -965,7 +1119,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlCategory convert( * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -983,7 +1137,7 @@ public int getCategoriesCount() { * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -1002,7 +1156,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlCategory getCateg * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -1020,7 +1174,7 @@ public java.util.List getCategoriesValueList() { * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -1044,9 +1198,9 @@ public int getCategoriesValue(int index) { * * *
                                    -   * Output only. The last updated time of the cloud control.
                                    -   * The create_time is used because a new CC is created whenever we update an
                                    -   * existing CC.
                                    +   * Output only. The time that the cloud control was last updated.
                                    +   * `create_time` is used because a new cloud control is created
                                    +   * whenever an existing cloud control is updated.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1063,9 +1217,9 @@ public boolean hasCreateTime() { * * *
                                    -   * Output only. The last updated time of the cloud control.
                                    -   * The create_time is used because a new CC is created whenever we update an
                                    -   * existing CC.
                                    +   * Output only. The time that the cloud control was last updated.
                                    +   * `create_time` is used because a new cloud control is created
                                    +   * whenever an existing cloud control is updated.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1082,9 +1236,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
                                    -   * Output only. The last updated time of the cloud control.
                                    -   * The create_time is used because a new CC is created whenever we update an
                                    -   * existing CC.
                                    +   * Output only. The time that the cloud control was last updated.
                                    +   * `create_time` is used because a new cloud control is created
                                    +   * whenever an existing cloud control is updated.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1119,7 +1273,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceType convert( * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -1140,7 +1295,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceType convert( * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -1158,7 +1314,8 @@ public int getSupportedTargetResourceTypesCount() { * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -1179,7 +1336,8 @@ public int getSupportedTargetResourceTypesCount() { * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -1197,7 +1355,8 @@ public java.util.List getSupportedTargetResourceTypesValueLis * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -1590,12 +1749,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * A CloudControl is the fundamental unit encapsulating the rules
                                    -   * to meet a specific security or compliance intent. It can contain
                                    -   * various rule types (like Organization Policies, CEL expressions, etc.)
                                    -   * enabling different enforcement modes (Preventive, Detective, Audit).
                                    -   * CloudControls are often parameterized for reusability and can be either
                                    -   * BUILT_IN (provided by Google) or CUSTOM (defined by the user).
                                    +   * A cloud control is a set of rules and associated metadata that you can
                                    +   * use to define your organization's security or compliance intent.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControl} @@ -2184,9 +2339,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. Identifier. The resource name of the cloud control.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}
                                    +     * Required. Identifier. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -2211,9 +2366,9 @@ public java.lang.String getName() { * * *
                                    -     * Required. Identifier. The resource name of the cloud control.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}
                                    +     * Required. Identifier. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -2238,9 +2393,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. Identifier. The resource name of the cloud control.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}
                                    +     * Required. Identifier. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -2264,9 +2419,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. Identifier. The resource name of the cloud control.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}
                                    +     * Required. Identifier. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -2286,9 +2441,9 @@ public Builder clearName() { * * *
                                    -     * Required. Identifier. The resource name of the cloud control.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}
                                    +     * Required. Identifier. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -2315,8 +2470,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Output only. Major revision of the cloud control incremented in ascending
                                    -     * order.
                                    +     * Output only. The major version of the cloud control, which is incremented
                                    +     * in ascending order.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2332,8 +2487,8 @@ public long getMajorRevisionId() { * * *
                                    -     * Output only. Major revision of the cloud control incremented in ascending
                                    -     * order.
                                    +     * Output only. The major version of the cloud control, which is incremented
                                    +     * in ascending order.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2353,8 +2508,8 @@ public Builder setMajorRevisionId(long value) { * * *
                                    -     * Output only. Major revision of the cloud control incremented in ascending
                                    -     * order.
                                    +     * Output only. The major version of the cloud control, which is incremented
                                    +     * in ascending order.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2490,7 +2645,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. The display name of the cloud control. The maximum length is 200
                                    +     * Optional. The friendly name of the cloud control. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2514,7 +2669,7 @@ public java.lang.String getDisplayName() { * * *
                                    -     * Optional. The display name of the cloud control. The maximum length is 200
                                    +     * Optional. The friendly name of the cloud control. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2538,7 +2693,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
                                    -     * Optional. The display name of the cloud control. The maximum length is 200
                                    +     * Optional. The friendly name of the cloud control. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2561,7 +2716,7 @@ public Builder setDisplayName(java.lang.String value) { * * *
                                    -     * Optional. The display name of the cloud control. The maximum length is 200
                                    +     * Optional. The friendly name of the cloud control. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2580,7 +2735,7 @@ public Builder clearDisplayName() { * * *
                                    -     * Optional. The display name of the cloud control. The maximum length is 200
                                    +     * Optional. The friendly name of the cloud control. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2615,8 +2770,7 @@ private void ensureSupportedEnforcementModesIsMutable() { * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2636,8 +2790,7 @@ private void ensureSupportedEnforcementModesIsMutable() { * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2654,8 +2807,7 @@ public int getSupportedEnforcementModesCount() { * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2674,8 +2826,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getSupportedE * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2701,8 +2852,7 @@ public Builder setSupportedEnforcementModes( * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2727,8 +2877,7 @@ public Builder addSupportedEnforcementModes( * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2753,8 +2902,7 @@ public Builder addAllSupportedEnforcementModes( * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2774,8 +2922,7 @@ public Builder clearSupportedEnforcementModes() { * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2792,8 +2939,7 @@ public java.util.List getSupportedEnforcementModesValueList() * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2811,8 +2957,7 @@ public int getSupportedEnforcementModesValue(int index) { * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2834,8 +2979,7 @@ public Builder setSupportedEnforcementModesValue(int index, int value) { * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2856,8 +3000,7 @@ public Builder addSupportedEnforcementModesValue(int value) { * * *
                                    -     * Output only. The supported enforcement mode of the cloud control. Default
                                    -     * is DETECTIVE.
                                    +     * Output only. The supported enforcement modes for the cloud control.
                                          * 
                                    * * @@ -2899,7 +3042,7 @@ private void ensureParameterSpecIsMutable() { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -2919,7 +3062,7 @@ private void ensureParameterSpecIsMutable() { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -2938,7 +3081,7 @@ public int getParameterSpecCount() { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -2957,7 +3100,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSpec getParameterSpe * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -2983,7 +3126,7 @@ public Builder setParameterSpec( * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3007,7 +3150,7 @@ public Builder setParameterSpec( * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3033,7 +3176,7 @@ public Builder addParameterSpec( * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3059,7 +3202,7 @@ public Builder addParameterSpec( * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3082,7 +3225,7 @@ public Builder addParameterSpec( * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3106,7 +3249,7 @@ public Builder addParameterSpec( * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3130,7 +3273,7 @@ public Builder addAllParameterSpec( * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3152,7 +3295,7 @@ public Builder clearParameterSpec() { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3174,7 +3317,7 @@ public Builder removeParameterSpec(int index) { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3190,7 +3333,7 @@ public Builder removeParameterSpec(int index) { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3210,7 +3353,7 @@ public Builder removeParameterSpec(int index) { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3231,7 +3374,7 @@ public Builder removeParameterSpec(int index) { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3249,7 +3392,7 @@ public Builder removeParameterSpec(int index) { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3268,7 +3411,7 @@ public Builder removeParameterSpec(int index) { * * *
                                    -     * Optional. The parameter spec of the cloud control.
                                    +     * Optional. The parameter specifications for the cloud control.
                                          * 
                                    * * @@ -3320,8 +3463,8 @@ private void ensureRulesIsMutable() { * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3340,8 +3483,8 @@ public java.util.List getRules * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3360,8 +3503,8 @@ public int getRulesCount() { * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3380,8 +3523,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.Rule getRules(int index) { * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3406,8 +3549,8 @@ public Builder setRules(int index, com.google.cloud.cloudsecuritycompliance.v1.R * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3430,8 +3573,8 @@ public Builder setRules( * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3456,8 +3599,8 @@ public Builder addRules(com.google.cloud.cloudsecuritycompliance.v1.Rule value) * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3482,8 +3625,8 @@ public Builder addRules(int index, com.google.cloud.cloudsecuritycompliance.v1.R * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3506,8 +3649,8 @@ public Builder addRules( * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3530,8 +3673,8 @@ public Builder addRules( * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3554,8 +3697,8 @@ public Builder addAllRules( * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3577,8 +3720,8 @@ public Builder clearRules() { * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3600,8 +3743,8 @@ public Builder removeRules(int index) { * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3616,8 +3759,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder getRulesBuilder( * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3636,8 +3779,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.RuleOrBuilder getRulesOrBuild * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3657,8 +3800,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.RuleOrBuilder getRulesOrBuild * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3674,8 +3817,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder addRulesBuilder( * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3691,8 +3834,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder addRulesBuilder( * * *
                                    -     * Optional. The Policy to be enforced to prevent/detect resource
                                    -     * non-compliance.
                                    +     * Optional. The rules that you can enforce to meet your security or
                                    +     * compliance intent.
                                          * 
                                    * * @@ -3727,7 +3870,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder addRulesBuilder( * * *
                                    -     * Optional. The severity of findings generated by the cloud control.
                                    +     * Optional. The severity of the findings that are generated by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -3745,7 +3889,8 @@ public int getSeverityValue() { * * *
                                    -     * Optional. The severity of findings generated by the cloud control.
                                    +     * Optional. The severity of the findings that are generated by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -3766,7 +3911,8 @@ public Builder setSeverityValue(int value) { * * *
                                    -     * Optional. The severity of findings generated by the cloud control.
                                    +     * Optional. The severity of the findings that are generated by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -3788,7 +3934,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.Severity getSeverity() { * * *
                                    -     * Optional. The severity of findings generated by the cloud control.
                                    +     * Optional. The severity of the findings that are generated by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -3812,7 +3959,8 @@ public Builder setSeverity(com.google.cloud.cloudsecuritycompliance.v1.Severity * * *
                                    -     * Optional. The severity of findings generated by the cloud control.
                                    +     * Optional. The severity of the findings that are generated by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -3834,8 +3982,8 @@ public Builder clearSeverity() { * * *
                                    -     * Optional. The finding_category of the cloud control. The maximum length is
                                    -     * 255 characters.
                                    +     * Optional. The finding category for the cloud control findings. The maximum
                                    +     * length is 255 characters.
                                          * 
                                    * * string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -3858,8 +4006,8 @@ public java.lang.String getFindingCategory() { * * *
                                    -     * Optional. The finding_category of the cloud control. The maximum length is
                                    -     * 255 characters.
                                    +     * Optional. The finding category for the cloud control findings. The maximum
                                    +     * length is 255 characters.
                                          * 
                                    * * string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -3882,8 +4030,8 @@ public com.google.protobuf.ByteString getFindingCategoryBytes() { * * *
                                    -     * Optional. The finding_category of the cloud control. The maximum length is
                                    -     * 255 characters.
                                    +     * Optional. The finding category for the cloud control findings. The maximum
                                    +     * length is 255 characters.
                                          * 
                                    * * string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -3905,8 +4053,8 @@ public Builder setFindingCategory(java.lang.String value) { * * *
                                    -     * Optional. The finding_category of the cloud control. The maximum length is
                                    -     * 255 characters.
                                    +     * Optional. The finding category for the cloud control findings. The maximum
                                    +     * length is 255 characters.
                                          * 
                                    * * string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -3924,8 +4072,8 @@ public Builder clearFindingCategory() { * * *
                                    -     * Optional. The finding_category of the cloud control. The maximum length is
                                    -     * 255 characters.
                                    +     * Optional. The finding category for the cloud control findings. The maximum
                                    +     * length is 255 characters.
                                          * 
                                    * * string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -3959,7 +4107,7 @@ private void ensureSupportedCloudProvidersIsMutable() { * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -3979,7 +4127,7 @@ private void ensureSupportedCloudProvidersIsMutable() { * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -3996,7 +4144,7 @@ public int getSupportedCloudProvidersCount() { * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4015,7 +4163,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedClo * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4041,7 +4189,7 @@ public Builder setSupportedCloudProviders( * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4066,7 +4214,7 @@ public Builder addSupportedCloudProviders( * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4091,7 +4239,7 @@ public Builder addAllSupportedCloudProviders( * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4111,7 +4259,7 @@ public Builder clearSupportedCloudProviders() { * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4128,7 +4276,7 @@ public java.util.List getSupportedCloudProvidersValueList() { * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4146,7 +4294,7 @@ public int getSupportedCloudProvidersValue(int index) { * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4168,7 +4316,7 @@ public Builder setSupportedCloudProvidersValue(int index, int value) { * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4189,7 +4337,7 @@ public Builder addSupportedCloudProvidersValue(int value) { * * *
                                    -     * Optional. cloud providers supported
                                    +     * Optional. The supported cloud providers.
                                          * 
                                    * * @@ -4223,7 +4371,7 @@ private void ensureRelatedFrameworksIsMutable() { * * *
                                    -     * Output only. The Frameworks that include this CloudControl
                                    +     * Output only. The frameworks that include this cloud control.
                                          * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4240,7 +4388,7 @@ public com.google.protobuf.ProtocolStringList getRelatedFrameworksList() { * * *
                                    -     * Output only. The Frameworks that include this CloudControl
                                    +     * Output only. The frameworks that include this cloud control.
                                          * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4256,7 +4404,7 @@ public int getRelatedFrameworksCount() { * * *
                                    -     * Output only. The Frameworks that include this CloudControl
                                    +     * Output only. The frameworks that include this cloud control.
                                          * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4273,7 +4421,7 @@ public java.lang.String getRelatedFrameworks(int index) { * * *
                                    -     * Output only. The Frameworks that include this CloudControl
                                    +     * Output only. The frameworks that include this cloud control.
                                          * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4290,7 +4438,7 @@ public com.google.protobuf.ByteString getRelatedFrameworksBytes(int index) { * * *
                                    -     * Output only. The Frameworks that include this CloudControl
                                    +     * Output only. The frameworks that include this cloud control.
                                          * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4315,7 +4463,7 @@ public Builder setRelatedFrameworks(int index, java.lang.String value) { * * *
                                    -     * Output only. The Frameworks that include this CloudControl
                                    +     * Output only. The frameworks that include this cloud control.
                                          * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4339,7 +4487,7 @@ public Builder addRelatedFrameworks(java.lang.String value) { * * *
                                    -     * Output only. The Frameworks that include this CloudControl
                                    +     * Output only. The frameworks that include this cloud control.
                                          * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4360,7 +4508,7 @@ public Builder addAllRelatedFrameworks(java.lang.Iterable valu * * *
                                    -     * Output only. The Frameworks that include this CloudControl
                                    +     * Output only. The frameworks that include this cloud control.
                                          * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4380,7 +4528,7 @@ public Builder clearRelatedFrameworks() { * * *
                                    -     * Output only. The Frameworks that include this CloudControl
                                    +     * Output only. The frameworks that include this cloud control.
                                          * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4407,8 +4555,8 @@ public Builder addRelatedFrameworksBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. The remediation steps for the findings generated by the cloud
                                    -     * control. The maximum length is 400 characters.
                                    +     * Optional. The remediation steps for the cloud control findings. The
                                    +     * maximum length is 400 characters.
                                          * 
                                    * * string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; @@ -4431,8 +4579,8 @@ public java.lang.String getRemediationSteps() { * * *
                                    -     * Optional. The remediation steps for the findings generated by the cloud
                                    -     * control. The maximum length is 400 characters.
                                    +     * Optional. The remediation steps for the cloud control findings. The
                                    +     * maximum length is 400 characters.
                                          * 
                                    * * string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; @@ -4455,8 +4603,8 @@ public com.google.protobuf.ByteString getRemediationStepsBytes() { * * *
                                    -     * Optional. The remediation steps for the findings generated by the cloud
                                    -     * control. The maximum length is 400 characters.
                                    +     * Optional. The remediation steps for the cloud control findings. The
                                    +     * maximum length is 400 characters.
                                          * 
                                    * * string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; @@ -4478,8 +4626,8 @@ public Builder setRemediationSteps(java.lang.String value) { * * *
                                    -     * Optional. The remediation steps for the findings generated by the cloud
                                    -     * control. The maximum length is 400 characters.
                                    +     * Optional. The remediation steps for the cloud control findings. The
                                    +     * maximum length is 400 characters.
                                          * 
                                    * * string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; @@ -4497,8 +4645,8 @@ public Builder clearRemediationSteps() { * * *
                                    -     * Optional. The remediation steps for the findings generated by the cloud
                                    -     * control. The maximum length is 400 characters.
                                    +     * Optional. The remediation steps for the cloud control findings. The
                                    +     * maximum length is 400 characters.
                                          * 
                                    * * string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; @@ -4530,7 +4678,7 @@ private void ensureCategoriesIsMutable() { * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4550,7 +4698,7 @@ private void ensureCategoriesIsMutable() { * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4567,7 +4715,7 @@ public int getCategoriesCount() { * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4586,7 +4734,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlCategory getCateg * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4612,7 +4760,7 @@ public Builder setCategories( * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4637,7 +4785,7 @@ public Builder addCategories( * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4663,7 +4811,7 @@ public Builder addAllCategories( * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4683,7 +4831,7 @@ public Builder clearCategories() { * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4700,7 +4848,7 @@ public java.util.List getCategoriesValueList() { * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4718,7 +4866,7 @@ public int getCategoriesValue(int index) { * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4740,7 +4888,7 @@ public Builder setCategoriesValue(int index, int value) { * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4761,7 +4909,7 @@ public Builder addCategoriesValue(int value) { * * *
                                    -     * Optional. The categories of the cloud control.
                                    +     * Optional. The categories for the cloud control.
                                          * 
                                    * * @@ -4791,9 +4939,9 @@ public Builder addAllCategoriesValue(java.lang.Iterable value * * *
                                    -     * Output only. The last updated time of the cloud control.
                                    -     * The create_time is used because a new CC is created whenever we update an
                                    -     * existing CC.
                                    +     * Output only. The time that the cloud control was last updated.
                                    +     * `create_time` is used because a new cloud control is created
                                    +     * whenever an existing cloud control is updated.
                                          * 
                                    * * @@ -4810,9 +4958,9 @@ public boolean hasCreateTime() { * * *
                                    -     * Output only. The last updated time of the cloud control.
                                    -     * The create_time is used because a new CC is created whenever we update an
                                    -     * existing CC.
                                    +     * Output only. The time that the cloud control was last updated.
                                    +     * `create_time` is used because a new cloud control is created
                                    +     * whenever an existing cloud control is updated.
                                          * 
                                    * * @@ -4835,9 +4983,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
                                    -     * Output only. The last updated time of the cloud control.
                                    -     * The create_time is used because a new CC is created whenever we update an
                                    -     * existing CC.
                                    +     * Output only. The time that the cloud control was last updated.
                                    +     * `create_time` is used because a new cloud control is created
                                    +     * whenever an existing cloud control is updated.
                                          * 
                                    * * @@ -4862,9 +5010,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
                                    -     * Output only. The last updated time of the cloud control.
                                    -     * The create_time is used because a new CC is created whenever we update an
                                    -     * existing CC.
                                    +     * Output only. The time that the cloud control was last updated.
                                    +     * `create_time` is used because a new cloud control is created
                                    +     * whenever an existing cloud control is updated.
                                          * 
                                    * * @@ -4886,9 +5034,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
                                    -     * Output only. The last updated time of the cloud control.
                                    -     * The create_time is used because a new CC is created whenever we update an
                                    -     * existing CC.
                                    +     * Output only. The time that the cloud control was last updated.
                                    +     * `create_time` is used because a new cloud control is created
                                    +     * whenever an existing cloud control is updated.
                                          * 
                                    * * @@ -4918,9 +5066,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
                                    -     * Output only. The last updated time of the cloud control.
                                    -     * The create_time is used because a new CC is created whenever we update an
                                    -     * existing CC.
                                    +     * Output only. The time that the cloud control was last updated.
                                    +     * `create_time` is used because a new cloud control is created
                                    +     * whenever an existing cloud control is updated.
                                          * 
                                    * * @@ -4942,9 +5090,9 @@ public Builder clearCreateTime() { * * *
                                    -     * Output only. The last updated time of the cloud control.
                                    -     * The create_time is used because a new CC is created whenever we update an
                                    -     * existing CC.
                                    +     * Output only. The time that the cloud control was last updated.
                                    +     * `create_time` is used because a new cloud control is created
                                    +     * whenever an existing cloud control is updated.
                                          * 
                                    * * @@ -4961,9 +5109,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
                                    -     * Output only. The last updated time of the cloud control.
                                    -     * The create_time is used because a new CC is created whenever we update an
                                    -     * existing CC.
                                    +     * Output only. The time that the cloud control was last updated.
                                    +     * `create_time` is used because a new cloud control is created
                                    +     * whenever an existing cloud control is updated.
                                          * 
                                    * * @@ -4984,9 +5132,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
                                    -     * Output only. The last updated time of the cloud control.
                                    -     * The create_time is used because a new CC is created whenever we update an
                                    -     * existing CC.
                                    +     * Output only. The time that the cloud control was last updated.
                                    +     * `create_time` is used because a new cloud control is created
                                    +     * whenever an existing cloud control is updated.
                                          * 
                                    * * @@ -5025,7 +5173,8 @@ private void ensureSupportedTargetResourceTypesIsMutable() { * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5045,7 +5194,8 @@ private void ensureSupportedTargetResourceTypesIsMutable() { * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5062,7 +5212,8 @@ public int getSupportedTargetResourceTypesCount() { * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5082,7 +5233,8 @@ public int getSupportedTargetResourceTypesCount() { * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5108,7 +5260,8 @@ public Builder setSupportedTargetResourceTypes( * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5133,7 +5286,8 @@ public Builder addSupportedTargetResourceTypes( * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5158,7 +5312,8 @@ public Builder addAllSupportedTargetResourceTypes( * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5178,7 +5333,8 @@ public Builder clearSupportedTargetResourceTypes() { * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5196,7 +5352,8 @@ public java.util.List getSupportedTargetResourceTypesValueLis * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5215,7 +5372,8 @@ public int getSupportedTargetResourceTypesValue(int index) { * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5237,7 +5395,8 @@ public Builder setSupportedTargetResourceTypesValue(int index, int value) { * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * @@ -5258,7 +5417,8 @@ public Builder addSupportedTargetResourceTypesValue(int value) { * * *
                                    -     * Optional. target resource types supported by the CloudControl.
                                    +     * Optional. The target resource types that are supported by the cloud
                                    +     * control.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAssessmentDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAssessmentDetails.java new file mode 100644 index 000000000000..accfda075ce4 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAssessmentDetails.java @@ -0,0 +1,739 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The cloud control assessment details for non-manual cloud controls.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails} + */ +public final class CloudControlAssessmentDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + CloudControlAssessmentDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudControlAssessmentDetails.newBuilder() to construct. + private CloudControlAssessmentDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudControlAssessmentDetails() { + evaluationState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudControlAssessmentDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.Builder + .class); + } + + public static final int FINDINGS_COUNT_FIELD_NUMBER = 1; + private int findingsCount_ = 0; + + /** + * + * + *
                                    +   * The number of findings for the cloud control.
                                    +   * 
                                    + * + * int32 findings_count = 1; + * + * @return The findingsCount. + */ + @java.lang.Override + public int getFindingsCount() { + return findingsCount_; + } + + public static final int EVALUATION_STATE_FIELD_NUMBER = 2; + private int evaluationState_ = 0; + + /** + * + * + *
                                    +   * Output only. The evaluation status of the cloud control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for evaluationState. + */ + @java.lang.Override + public int getEvaluationStateValue() { + return evaluationState_; + } + + /** + * + * + *
                                    +   * Output only. The evaluation status of the cloud control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evaluationState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EvaluationState getEvaluationState() { + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState result = + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.forNumber(evaluationState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.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 (findingsCount_ != 0) { + output.writeInt32(1, findingsCount_); + } + if (evaluationState_ + != com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.EVALUATION_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, evaluationState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (findingsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, findingsCount_); + } + if (evaluationState_ + != com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.EVALUATION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, evaluationState_); + } + 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.cloudsecuritycompliance.v1.CloudControlAssessmentDetails)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails other = + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) obj; + + if (getFindingsCount() != other.getFindingsCount()) return false; + if (evaluationState_ != other.evaluationState_) 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) + FINDINGS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getFindingsCount(); + hash = (37 * hash) + EVALUATION_STATE_FIELD_NUMBER; + hash = (53 * hash) + evaluationState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails 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.cloudsecuritycompliance.v1.CloudControlAssessmentDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails 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.cloudsecuritycompliance.v1.CloudControlAssessmentDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The cloud control assessment details for non-manual cloud controls.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.Builder + .class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + findingsCount_ = 0; + evaluationState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails build() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails result = + new com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.findingsCount_ = findingsCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.evaluationState_ = evaluationState_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + .getDefaultInstance()) return this; + if (other.getFindingsCount() != 0) { + setFindingsCount(other.getFindingsCount()); + } + if (other.evaluationState_ != 0) { + setEvaluationStateValue(other.getEvaluationStateValue()); + } + 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: + { + findingsCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + evaluationState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 findingsCount_; + + /** + * + * + *
                                    +     * The number of findings for the cloud control.
                                    +     * 
                                    + * + * int32 findings_count = 1; + * + * @return The findingsCount. + */ + @java.lang.Override + public int getFindingsCount() { + return findingsCount_; + } + + /** + * + * + *
                                    +     * The number of findings for the cloud control.
                                    +     * 
                                    + * + * int32 findings_count = 1; + * + * @param value The findingsCount to set. + * @return This builder for chaining. + */ + public Builder setFindingsCount(int value) { + + findingsCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The number of findings for the cloud control.
                                    +     * 
                                    + * + * int32 findings_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearFindingsCount() { + bitField0_ = (bitField0_ & ~0x00000001); + findingsCount_ = 0; + onChanged(); + return this; + } + + private int evaluationState_ = 0; + + /** + * + * + *
                                    +     * Output only. The evaluation status of the cloud control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for evaluationState. + */ + @java.lang.Override + public int getEvaluationStateValue() { + return evaluationState_; + } + + /** + * + * + *
                                    +     * Output only. The evaluation status of the cloud control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for evaluationState to set. + * @return This builder for chaining. + */ + public Builder setEvaluationStateValue(int value) { + evaluationState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The evaluation status of the cloud control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evaluationState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EvaluationState getEvaluationState() { + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState result = + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.forNumber(evaluationState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Output only. The evaluation status of the cloud control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The evaluationState to set. + * @return This builder for chaining. + */ + public Builder setEvaluationState( + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + evaluationState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The evaluation status of the cloud control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluationState() { + bitField0_ = (bitField0_ & ~0x00000002); + evaluationState_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + private static final com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudControlAssessmentDetails 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.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAssessmentDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAssessmentDetailsOrBuilder.java new file mode 100644 index 000000000000..66d7e9fd8329 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAssessmentDetailsOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface CloudControlAssessmentDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The number of findings for the cloud control.
                                    +   * 
                                    + * + * int32 findings_count = 1; + * + * @return The findingsCount. + */ + int getFindingsCount(); + + /** + * + * + *
                                    +   * Output only. The evaluation status of the cloud control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for evaluationState. + */ + int getEvaluationStateValue(); + + /** + * + * + *
                                    +   * Output only. The evaluation status of the cloud control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState evaluation_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evaluationState. + */ + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState getEvaluationState(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAuditDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAuditDetails.java new file mode 100644 index 000000000000..699e0277db7c --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAuditDetails.java @@ -0,0 +1,2112 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The details for a cloud control audit.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails} + */ +public final class CloudControlAuditDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails) + CloudControlAuditDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudControlAuditDetails.newBuilder() to construct. + private CloudControlAuditDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudControlAuditDetails() { + cloudControl_ = ""; + cloudControlId_ = ""; + cloudControlDescription_ = ""; + complianceState_ = 0; + findings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudControlAuditDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder.class); + } + + private int bitField0_; + public static final int CLOUD_CONTROL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudControl_ = ""; + + /** + * + * + *
                                    +   * Output only. The name of the cloud control.
                                    +   * 
                                    + * + * string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControl. + */ + @java.lang.Override + public java.lang.String getCloudControl() { + java.lang.Object ref = cloudControl_; + 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(); + cloudControl_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The name of the cloud control.
                                    +   * 
                                    + * + * string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudControlBytes() { + java.lang.Object ref = cloudControl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_CONTROL_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudControlId_ = ""; + + /** + * + * + *
                                    +   * Output only. The ID of the cloud control.
                                    +   * 
                                    + * + * string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControlId. + */ + @java.lang.Override + public java.lang.String getCloudControlId() { + java.lang.Object ref = cloudControlId_; + 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(); + cloudControlId_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The ID of the cloud control.
                                    +   * 
                                    + * + * string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControlId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudControlIdBytes() { + java.lang.Object ref = cloudControlId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControlId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_CONTROL_DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudControlDescription_ = ""; + + /** + * + * + *
                                    +   * Output only. The description of the cloud control.
                                    +   * 
                                    + * + * string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControlDescription. + */ + @java.lang.Override + public java.lang.String getCloudControlDescription() { + java.lang.Object ref = cloudControlDescription_; + 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(); + cloudControlDescription_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The description of the cloud control.
                                    +   * 
                                    + * + * string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControlDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudControlDescriptionBytes() { + java.lang.Object ref = cloudControlDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControlDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPLIANCE_STATE_FIELD_NUMBER = 4; + private int complianceState_ = 0; + + /** + * + * + *
                                    +   * Output only. The overall status of the findings for the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + @java.lang.Override + public int getComplianceStateValue() { + return complianceState_; + } + + /** + * + * + *
                                    +   * Output only. The overall status of the findings for the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState() { + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState result = + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.forNumber(complianceState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.UNRECOGNIZED + : result; + } + + public static final int REPORT_SUMMARY_FIELD_NUMBER = 5; + private com.google.cloud.cloudsecuritycompliance.v1.ReportSummary reportSummary_; + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportSummary field is set. + */ + @java.lang.Override + public boolean hasReportSummary() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportSummary. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getReportSummary() { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder + getReportSummaryOrBuilder() { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } + + public static final int FINDINGS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List findings_; + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getFindingsList() { + return findings_; + } + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.FindingDetailsOrBuilder> + getFindingsOrBuilderList() { + return findings_; + } + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getFindingsCount() { + return findings_.size(); + } + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetails getFindings(int index) { + return findings_.get(index); + } + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetailsOrBuilder getFindingsOrBuilder( + int index) { + return findings_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cloudControl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControlId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cloudControlId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControlDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cloudControlDescription_); + } + if (complianceState_ + != com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.COMPLIANCE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, complianceState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getReportSummary()); + } + for (int i = 0; i < findings_.size(); i++) { + output.writeMessage(6, findings_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cloudControl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControlId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cloudControlId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControlDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cloudControlDescription_); + } + if (complianceState_ + != com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.COMPLIANCE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, complianceState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReportSummary()); + } + for (int i = 0; i < findings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, findings_.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.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails other = + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails) obj; + + if (!getCloudControl().equals(other.getCloudControl())) return false; + if (!getCloudControlId().equals(other.getCloudControlId())) return false; + if (!getCloudControlDescription().equals(other.getCloudControlDescription())) return false; + if (complianceState_ != other.complianceState_) return false; + if (hasReportSummary() != other.hasReportSummary()) return false; + if (hasReportSummary()) { + if (!getReportSummary().equals(other.getReportSummary())) return false; + } + if (!getFindingsList().equals(other.getFindingsList())) 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) + CLOUD_CONTROL_FIELD_NUMBER; + hash = (53 * hash) + getCloudControl().hashCode(); + hash = (37 * hash) + CLOUD_CONTROL_ID_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlId().hashCode(); + hash = (37 * hash) + CLOUD_CONTROL_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlDescription().hashCode(); + hash = (37 * hash) + COMPLIANCE_STATE_FIELD_NUMBER; + hash = (53 * hash) + complianceState_; + if (hasReportSummary()) { + hash = (37 * hash) + REPORT_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getReportSummary().hashCode(); + } + if (getFindingsCount() > 0) { + hash = (37 * hash) + FINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getFindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails 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.cloudsecuritycompliance.v1.CloudControlAuditDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails 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.cloudsecuritycompliance.v1.CloudControlAuditDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The details for a cloud control audit.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails) + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReportSummaryFieldBuilder(); + getFindingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloudControl_ = ""; + cloudControlId_ = ""; + cloudControlDescription_ = ""; + complianceState_ = 0; + reportSummary_ = null; + if (reportSummaryBuilder_ != null) { + reportSummaryBuilder_.dispose(); + reportSummaryBuilder_ = null; + } + if (findingsBuilder_ == null) { + findings_ = java.util.Collections.emptyList(); + } else { + findings_ = null; + findingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAuditDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails build() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails result = + new com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails result) { + if (findingsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + findings_ = java.util.Collections.unmodifiableList(findings_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.findings_ = findings_; + } else { + result.findings_ = findingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloudControl_ = cloudControl_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cloudControlId_ = cloudControlId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cloudControlDescription_ = cloudControlDescription_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.complianceState_ = complianceState_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.reportSummary_ = + reportSummaryBuilder_ == null ? reportSummary_ : reportSummaryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + .getDefaultInstance()) return this; + if (!other.getCloudControl().isEmpty()) { + cloudControl_ = other.cloudControl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCloudControlId().isEmpty()) { + cloudControlId_ = other.cloudControlId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCloudControlDescription().isEmpty()) { + cloudControlDescription_ = other.cloudControlDescription_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.complianceState_ != 0) { + setComplianceStateValue(other.getComplianceStateValue()); + } + if (other.hasReportSummary()) { + mergeReportSummary(other.getReportSummary()); + } + if (findingsBuilder_ == null) { + if (!other.findings_.isEmpty()) { + if (findings_.isEmpty()) { + findings_ = other.findings_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureFindingsIsMutable(); + findings_.addAll(other.findings_); + } + onChanged(); + } + } else { + if (!other.findings_.isEmpty()) { + if (findingsBuilder_.isEmpty()) { + findingsBuilder_.dispose(); + findingsBuilder_ = null; + findings_ = other.findings_; + bitField0_ = (bitField0_ & ~0x00000020); + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFindingsFieldBuilder() + : null; + } else { + findingsBuilder_.addAllMessages(other.findings_); + } + } + } + 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: + { + cloudControl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + cloudControlId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + cloudControlDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + complianceState_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getReportSummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.parser(), + extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 50 + 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 cloudControl_ = ""; + + /** + * + * + *
                                    +     * Output only. The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControl. + */ + public java.lang.String getCloudControl() { + java.lang.Object ref = cloudControl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudControl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControl. + */ + public com.google.protobuf.ByteString getCloudControlBytes() { + java.lang.Object ref = cloudControl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The cloudControl to set. + * @return This builder for chaining. + */ + public Builder setCloudControl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudControl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCloudControl() { + cloudControl_ = getDefaultInstance().getCloudControl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for cloudControl to set. + * @return This builder for chaining. + */ + public Builder setCloudControlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudControl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cloudControlId_ = ""; + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControlId. + */ + public java.lang.String getCloudControlId() { + java.lang.Object ref = cloudControlId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudControlId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControlId. + */ + public com.google.protobuf.ByteString getCloudControlIdBytes() { + java.lang.Object ref = cloudControlId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControlId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The cloudControlId to set. + * @return This builder for chaining. + */ + public Builder setCloudControlId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudControlId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCloudControlId() { + cloudControlId_ = getDefaultInstance().getCloudControlId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for cloudControlId to set. + * @return This builder for chaining. + */ + public Builder setCloudControlIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudControlId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object cloudControlDescription_ = ""; + + /** + * + * + *
                                    +     * Output only. The description of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudControlDescription. + */ + public java.lang.String getCloudControlDescription() { + java.lang.Object ref = cloudControlDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudControlDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The description of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for cloudControlDescription. + */ + public com.google.protobuf.ByteString getCloudControlDescriptionBytes() { + java.lang.Object ref = cloudControlDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControlDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The description of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The cloudControlDescription to set. + * @return This builder for chaining. + */ + public Builder setCloudControlDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudControlDescription_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The description of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCloudControlDescription() { + cloudControlDescription_ = getDefaultInstance().getCloudControlDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The description of the cloud control.
                                    +     * 
                                    + * + * string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for cloudControlDescription to set. + * @return This builder for chaining. + */ + public Builder setCloudControlDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudControlDescription_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int complianceState_ = 0; + + /** + * + * + *
                                    +     * Output only. The overall status of the findings for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + @java.lang.Override + public int getComplianceStateValue() { + return complianceState_; + } + + /** + * + * + *
                                    +     * Output only. The overall status of the findings for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for complianceState to set. + * @return This builder for chaining. + */ + public Builder setComplianceStateValue(int value) { + complianceState_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The overall status of the findings for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState() { + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState result = + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.forNumber(complianceState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Output only. The overall status of the findings for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The complianceState to set. + * @return This builder for chaining. + */ + public Builder setComplianceState( + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + complianceState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The overall status of the findings for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearComplianceState() { + bitField0_ = (bitField0_ & ~0x00000008); + complianceState_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.ReportSummary reportSummary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder> + reportSummaryBuilder_; + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportSummary field is set. + */ + public boolean hasReportSummary() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportSummary. + */ + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getReportSummary() { + if (reportSummaryBuilder_ == null) { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } else { + return reportSummaryBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReportSummary( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary value) { + if (reportSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportSummary_ = value; + } else { + reportSummaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReportSummary( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder builderForValue) { + if (reportSummaryBuilder_ == null) { + reportSummary_ = builderForValue.build(); + } else { + reportSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeReportSummary( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary value) { + if (reportSummaryBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && reportSummary_ != null + && reportSummary_ + != com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance()) { + getReportSummaryBuilder().mergeFrom(value); + } else { + reportSummary_ = value; + } + } else { + reportSummaryBuilder_.mergeFrom(value); + } + if (reportSummary_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearReportSummary() { + bitField0_ = (bitField0_ & ~0x00000010); + reportSummary_ = null; + if (reportSummaryBuilder_ != null) { + reportSummaryBuilder_.dispose(); + reportSummaryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder + getReportSummaryBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getReportSummaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder + getReportSummaryOrBuilder() { + if (reportSummaryBuilder_ != null) { + return reportSummaryBuilder_.getMessageOrBuilder(); + } else { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder> + getReportSummaryFieldBuilder() { + if (reportSummaryBuilder_ == null) { + reportSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder>( + getReportSummary(), getParentForChildren(), isClean()); + reportSummary_ = null; + } + return reportSummaryBuilder_; + } + + private java.util.List findings_ = + java.util.Collections.emptyList(); + + private void ensureFindingsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + findings_ = + new java.util.ArrayList( + findings_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetailsOrBuilder> + findingsBuilder_; + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getFindingsList() { + if (findingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(findings_); + } else { + return findingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getFindingsCount() { + if (findingsBuilder_ == null) { + return findings_.size(); + } else { + return findingsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetails getFindings(int index) { + if (findingsBuilder_ == null) { + return findings_.get(index); + } else { + return findingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFindings( + int index, com.google.cloud.cloudsecuritycompliance.v1.FindingDetails value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.set(index, value); + onChanged(); + } else { + findingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFindings( + int index, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.set(index, builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFindings(com.google.cloud.cloudsecuritycompliance.v1.FindingDetails value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.add(value); + onChanged(); + } else { + findingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFindings( + int index, com.google.cloud.cloudsecuritycompliance.v1.FindingDetails value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.add(index, value); + onChanged(); + } else { + findingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFindings( + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFindings( + int index, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(index, builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllFindings( + java.lang.Iterable + values) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + onChanged(); + } else { + findingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFindings() { + if (findingsBuilder_ == null) { + findings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + findingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeFindings(int index) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.remove(index); + onChanged(); + } else { + findingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder getFindingsBuilder( + int index) { + return getFindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetailsOrBuilder getFindingsOrBuilder( + int index) { + if (findingsBuilder_ == null) { + return findings_.get(index); + } else { + return findingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.FindingDetailsOrBuilder> + getFindingsOrBuilderList() { + if (findingsBuilder_ != null) { + return findingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(findings_); + } + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder addFindingsBuilder() { + return getFindingsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder addFindingsBuilder( + int index) { + return getFindingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Output only. The findings for the control.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getFindingsBuilderList() { + return getFindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetailsOrBuilder> + getFindingsFieldBuilder() { + if (findingsBuilder_ == null) { + findingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetailsOrBuilder>( + findings_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + findings_ = null; + } + return findingsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails) + private static final com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudControlAuditDetails 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.cloudsecuritycompliance.v1.CloudControlAuditDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAuditDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAuditDetailsOrBuilder.java new file mode 100644 index 000000000000..a2072e93fff2 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlAuditDetailsOrBuilder.java @@ -0,0 +1,244 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface CloudControlAuditDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Output only. The name of the cloud control.
                                    +   * 
                                    + * + * string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControl. + */ + java.lang.String getCloudControl(); + + /** + * + * + *
                                    +   * Output only. The name of the cloud control.
                                    +   * 
                                    + * + * string cloud_control = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControl. + */ + com.google.protobuf.ByteString getCloudControlBytes(); + + /** + * + * + *
                                    +   * Output only. The ID of the cloud control.
                                    +   * 
                                    + * + * string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControlId. + */ + java.lang.String getCloudControlId(); + + /** + * + * + *
                                    +   * Output only. The ID of the cloud control.
                                    +   * 
                                    + * + * string cloud_control_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControlId. + */ + com.google.protobuf.ByteString getCloudControlIdBytes(); + + /** + * + * + *
                                    +   * Output only. The description of the cloud control.
                                    +   * 
                                    + * + * string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControlDescription. + */ + java.lang.String getCloudControlDescription(); + + /** + * + * + *
                                    +   * Output only. The description of the cloud control.
                                    +   * 
                                    + * + * string cloud_control_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControlDescription. + */ + com.google.protobuf.ByteString getCloudControlDescriptionBytes(); + + /** + * + * + *
                                    +   * Output only. The overall status of the findings for the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + int getComplianceStateValue(); + + /** + * + * + *
                                    +   * Output only. The overall status of the findings for the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState(); + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportSummary field is set. + */ + boolean hasReportSummary(); + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportSummary. + */ + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getReportSummary(); + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder getReportSummaryOrBuilder(); + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getFindingsList(); + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails getFindings(int index); + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getFindingsCount(); + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getFindingsOrBuilderList(); + + /** + * + * + *
                                    +   * Output only. The findings for the control.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingDetails findings = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FindingDetailsOrBuilder getFindingsOrBuilder( + int index); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlCategory.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlCategory.java index c1ef3ca521a6..b4c3407f2ac5 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlCategory.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlCategory.java @@ -23,7 +23,7 @@ * * *
                                    - * The category of the cloud control.
                                    + * The category for the cloud control.
                                      * 
                                    * * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.CloudControlCategory} @@ -43,7 +43,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Infrastructure
                                    +   * The infrastructure security category.
                                        * 
                                    * * CC_CATEGORY_INFRASTRUCTURE = 1; @@ -53,7 +53,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Artificial Intelligence
                                    +   * The artificial intelligence category.
                                        * 
                                    * * CC_CATEGORY_ARTIFICIAL_INTELLIGENCE = 2; @@ -63,7 +63,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Physical Security
                                    +   * The physical security category.
                                        * 
                                    * * CC_CATEGORY_PHYSICAL_SECURITY = 3; @@ -73,7 +73,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Data Security
                                    +   * The data security category.
                                        * 
                                    * * CC_CATEGORY_DATA_SECURITY = 4; @@ -83,7 +83,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Network Security
                                    +   * The network security category.
                                        * 
                                    * * CC_CATEGORY_NETWORK_SECURITY = 5; @@ -93,7 +93,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Incident Management
                                    +   * The incident management category.
                                        * 
                                    * * CC_CATEGORY_INCIDENT_MANAGEMENT = 6; @@ -103,7 +103,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Identity & Access Management
                                    +   * The identity and access management category.
                                        * 
                                    * * CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT = 7; @@ -113,7 +113,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Encryption
                                    +   * The encryption category.
                                        * 
                                    * * CC_CATEGORY_ENCRYPTION = 8; @@ -123,7 +123,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Logs Management & Infrastructure
                                    +   * The logs management and infrastructure category.
                                        * 
                                    * * CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE = 9; @@ -133,7 +133,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * HR, Admin & Processes
                                    +   * The HR, admin, and processes category.
                                        * 
                                    * * CC_CATEGORY_HR_ADMIN_AND_PROCESSES = 10; @@ -143,7 +143,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Third Party & Sub-Processor Management
                                    +   * The third-party and sub-processor management category.
                                        * 
                                    * * CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT = 11; @@ -153,7 +153,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Legal & Disclosures
                                    +   * The legal and disclosures category.
                                        * 
                                    * * CC_CATEGORY_LEGAL_AND_DISCLOSURES = 12; @@ -163,7 +163,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Vulnerability Management
                                    +   * The vulnerability management category.
                                        * 
                                    * * CC_CATEGORY_VULNERABILITY_MANAGEMENT = 13; @@ -173,7 +173,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Privacy
                                    +   * The privacy category.
                                        * 
                                    * * CC_CATEGORY_PRIVACY = 14; @@ -183,7 +183,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * BCDR (Business Continuity and Disaster Recovery)
                                    +   * The business continuity and disaster recovery (BCDR) category.
                                        * 
                                    * * CC_CATEGORY_BCDR = 15; @@ -207,7 +207,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Infrastructure
                                    +   * The infrastructure security category.
                                        * 
                                    * * CC_CATEGORY_INFRASTRUCTURE = 1; @@ -218,7 +218,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Artificial Intelligence
                                    +   * The artificial intelligence category.
                                        * 
                                    * * CC_CATEGORY_ARTIFICIAL_INTELLIGENCE = 2; @@ -229,7 +229,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Physical Security
                                    +   * The physical security category.
                                        * 
                                    * * CC_CATEGORY_PHYSICAL_SECURITY = 3; @@ -240,7 +240,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Data Security
                                    +   * The data security category.
                                        * 
                                    * * CC_CATEGORY_DATA_SECURITY = 4; @@ -251,7 +251,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Network Security
                                    +   * The network security category.
                                        * 
                                    * * CC_CATEGORY_NETWORK_SECURITY = 5; @@ -262,7 +262,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Incident Management
                                    +   * The incident management category.
                                        * 
                                    * * CC_CATEGORY_INCIDENT_MANAGEMENT = 6; @@ -273,7 +273,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Identity & Access Management
                                    +   * The identity and access management category.
                                        * 
                                    * * CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT = 7; @@ -284,7 +284,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Encryption
                                    +   * The encryption category.
                                        * 
                                    * * CC_CATEGORY_ENCRYPTION = 8; @@ -295,7 +295,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Logs Management & Infrastructure
                                    +   * The logs management and infrastructure category.
                                        * 
                                    * * CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE = 9; @@ -306,7 +306,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * HR, Admin & Processes
                                    +   * The HR, admin, and processes category.
                                        * 
                                    * * CC_CATEGORY_HR_ADMIN_AND_PROCESSES = 10; @@ -317,7 +317,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Third Party & Sub-Processor Management
                                    +   * The third-party and sub-processor management category.
                                        * 
                                    * * CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT = 11; @@ -328,7 +328,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Legal & Disclosures
                                    +   * The legal and disclosures category.
                                        * 
                                    * * CC_CATEGORY_LEGAL_AND_DISCLOSURES = 12; @@ -339,7 +339,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Vulnerability Management
                                    +   * The vulnerability management category.
                                        * 
                                    * * CC_CATEGORY_VULNERABILITY_MANAGEMENT = 13; @@ -350,7 +350,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * Privacy
                                    +   * The privacy category.
                                        * 
                                    * * CC_CATEGORY_PRIVACY = 14; @@ -361,7 +361,7 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * * *
                                    -   * BCDR (Business Continuity and Disaster Recovery)
                                    +   * The business continuity and disaster recovery (BCDR) category.
                                        * 
                                    * * CC_CATEGORY_BCDR = 15; @@ -457,7 +457,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor() .getEnumTypes() - .get(2); + .get(3); } private static final CloudControlCategory[] VALUES = values(); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeployment.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeployment.java index 5a2eb73ad0a8..82b96a5f3544 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeployment.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeployment.java @@ -23,9 +23,10 @@ * * *
                                    - * CloudControlDeployment represents deployment of a CloudControl on a target
                                    - * resource. Supported target resources are organizations/{organization},
                                    - * folders/{folder}, and projects/{project}.
                                    + * A cloud control deployment represents the deployment of a particular cloud
                                    + * control on a target resource. Supported target resources are
                                    + * `organizations/{organizationID}`, `folders/{folderID}`, and
                                    + * `projects/{projectID}`.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment} @@ -82,8 +83,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Identifier. CloudControlDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Identifier. The name for the cloud control deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -107,8 +109,9 @@ public java.lang.String getName() { * * *
                                    -   * Identifier. CloudControlDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Identifier. The name for the cloud control deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -135,9 +138,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -   * Required. The details of the target resource on which the CloudControl is
                                    -   * to be deployed. It can either be an existing target resource or a new
                                    -   * target resource to be created.
                                    +   * Required. The details of the target resource that the cloud control is
                                    +   * deployed You can use an existing target resource or create a new target.
                                        * 
                                    * * @@ -155,9 +157,8 @@ public boolean hasTargetResourceConfig() { * * *
                                    -   * Required. The details of the target resource on which the CloudControl is
                                    -   * to be deployed. It can either be an existing target resource or a new
                                    -   * target resource to be created.
                                    +   * Required. The details of the target resource that the cloud control is
                                    +   * deployed You can use an existing target resource or create a new target.
                                        * 
                                    * * @@ -178,9 +179,8 @@ public boolean hasTargetResourceConfig() { * * *
                                    -   * Required. The details of the target resource on which the CloudControl is
                                    -   * to be deployed. It can either be an existing target resource or a new
                                    -   * target resource to be created.
                                    +   * Required. The details of the target resource that the cloud control is
                                    +   * deployed You can use an existing target resource or create a new target.
                                        * 
                                    * * @@ -204,9 +204,12 @@ public boolean hasTargetResourceConfig() { * * *
                                    -   * Output only. The resource on which the CloudControl is deployed based on
                                    -   * the provided TargetResourceConfig in the following format:
                                    -   * organizations/{organization}, folders/{folder} or projects/{project}.
                                    +   * Output only. The resource that the cloud control is deployed on, in one of
                                    +   * the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -230,9 +233,12 @@ public java.lang.String getTargetResource() { * * *
                                    -   * Output only. The resource on which the CloudControl is deployed based on
                                    -   * the provided TargetResourceConfig in the following format:
                                    -   * organizations/{organization}, folders/{folder} or projects/{project}.
                                    +   * Output only. The resource that the cloud control is deployed on, in one of
                                    +   * the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -259,7 +265,7 @@ public com.google.protobuf.ByteString getTargetResourceBytes() { * * *
                                    -   * Required. Deployment mode and parameters for the Cloud Control.
                                    +   * Required. The deployment mode and parameters for the cloud control.
                                        * 
                                    * * @@ -277,7 +283,7 @@ public boolean hasCloudControlMetadata() { * * *
                                    -   * Required. Deployment mode and parameters for the Cloud Control.
                                    +   * Required. The deployment mode and parameters for the cloud control.
                                        * 
                                    * * @@ -298,7 +304,7 @@ public boolean hasCloudControlMetadata() { * * *
                                    -   * Required. Deployment mode and parameters for the Cloud Control.
                                    +   * Required. The deployment mode and parameters for the cloud control.
                                        * 
                                    * * @@ -322,7 +328,7 @@ public boolean hasCloudControlMetadata() { * * *
                                    -   * Optional. User provided description of the CloudControl deployment
                                    +   * Optional. A friendly description for the cloud control deployment.
                                        * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -346,7 +352,7 @@ public java.lang.String getDescription() { * * *
                                    -   * Optional. User provided description of the CloudControl deployment
                                    +   * Optional. A friendly description for the cloud control deployment.
                                        * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -373,7 +379,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -   * Output only. State of the CloudControl deployment
                                    +   * Output only. The state of the cloud control deployment.
                                        * 
                                    * * @@ -391,7 +397,7 @@ public int getDeploymentStateValue() { * * *
                                    -   * Output only. State of the CloudControl deployment
                                    +   * Output only. The state of the cloud control deployment.
                                        * 
                                    * * @@ -416,7 +422,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.DeploymentState getDeployment * * *
                                    -   * Output only. The time at which the resource was created.
                                    +   * Output only. The time when the resource was created.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -433,7 +439,7 @@ public boolean hasCreateTime() { * * *
                                    -   * Output only. The time at which the resource was created.
                                    +   * Output only. The time when the resource was created.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -450,7 +456,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
                                    -   * Output only. The time at which the resource was created.
                                    +   * Output only. The time when the resource was created.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -468,7 +474,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
                                    -   * Output only. The time at which the resource last updated.
                                    +   * Output only. The time when the resource was last updated.
                                        * 
                                    * * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -485,7 +491,7 @@ public boolean hasUpdateTime() { * * *
                                    -   * Output only. The time at which the resource last updated.
                                    +   * Output only. The time when the resource was last updated.
                                        * 
                                    * * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -502,7 +508,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
                                    -   * Output only. The time at which the resource last updated.
                                    +   * Output only. The time when the resource was last updated.
                                        * 
                                    * * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -522,11 +528,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
                                    -   * Optional. To prevent concurrent updates from overwriting each other, always
                                    -   * provide the `etag` when you update a CloudControlDeployment. You can also
                                    -   * provide the `etag` when you delete a CloudControlDeployment, to help
                                    +   * Optional. To prevent concurrent updates from overwriting each other,
                                    +   * provide the `etag` when you update a cloud control deployment. You can also
                                    +   * provide the `etag` when you delete a cloud control deployment to help
                                        * ensure that you're deleting the intended version of the
                                    -   * CloudControlDeployment.
                                    +   * deployment.
                                        * 
                                    * * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -550,11 +556,11 @@ public java.lang.String getEtag() { * * *
                                    -   * Optional. To prevent concurrent updates from overwriting each other, always
                                    -   * provide the `etag` when you update a CloudControlDeployment. You can also
                                    -   * provide the `etag` when you delete a CloudControlDeployment, to help
                                    +   * Optional. To prevent concurrent updates from overwriting each other,
                                    +   * provide the `etag` when you update a cloud control deployment. You can also
                                    +   * provide the `etag` when you delete a cloud control deployment to help
                                        * ensure that you're deleting the intended version of the
                                    -   * CloudControlDeployment.
                                    +   * deployment.
                                        * 
                                    * * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -582,7 +588,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
                                    -   * Output only. The CloudControl after substitution of given parameters.
                                    +   * Output only. The cloud control after the given parameters are substituted.
                                        * 
                                    * * @@ -600,7 +606,7 @@ public boolean hasParameterSubstitutedCloudControl() { * * *
                                    -   * Output only. The CloudControl after substitution of given parameters.
                                    +   * Output only. The cloud control after the given parameters are substituted.
                                        * 
                                    * * @@ -621,7 +627,7 @@ public boolean hasParameterSubstitutedCloudControl() { * * *
                                    -   * Output only. The CloudControl after substitution of given parameters.
                                    +   * Output only. The cloud control after the given parameters are substituted.
                                        * 
                                    * * @@ -646,9 +652,9 @@ public boolean hasParameterSubstitutedCloudControl() { * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * @@ -665,9 +671,9 @@ public boolean hasParameterSubstitutedCloudControl() { * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * @@ -686,9 +692,9 @@ public boolean hasParameterSubstitutedCloudControl() { * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * @@ -704,9 +710,9 @@ public int getFrameworkDeploymentReferencesCount() { * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * @@ -723,9 +729,9 @@ public int getFrameworkDeploymentReferencesCount() { * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * @@ -1099,9 +1105,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * CloudControlDeployment represents deployment of a CloudControl on a target
                                    -   * resource. Supported target resources are organizations/{organization},
                                    -   * folders/{folder}, and projects/{project}.
                                    +   * A cloud control deployment represents the deployment of a particular cloud
                                    +   * control on a target resource. Supported target resources are
                                    +   * `organizations/{organizationID}`, `folders/{folderID}`, and
                                    +   * `projects/{projectID}`.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment} @@ -1550,8 +1557,9 @@ public Builder mergeFrom( * * *
                                    -     * Identifier. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Identifier. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1574,8 +1582,9 @@ public java.lang.String getName() { * * *
                                    -     * Identifier. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Identifier. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1598,8 +1607,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Identifier. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Identifier. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1621,8 +1631,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Identifier. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Identifier. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1640,8 +1651,9 @@ public Builder clearName() { * * *
                                    -     * Identifier. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Identifier. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1671,9 +1683,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. The details of the target resource on which the CloudControl is
                                    -     * to be deployed. It can either be an existing target resource or a new
                                    -     * target resource to be created.
                                    +     * Required. The details of the target resource that the cloud control is
                                    +     * deployed You can use an existing target resource or create a new target.
                                          * 
                                    * * @@ -1690,9 +1701,8 @@ public boolean hasTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the CloudControl is
                                    -     * to be deployed. It can either be an existing target resource or a new
                                    -     * target resource to be created.
                                    +     * Required. The details of the target resource that the cloud control is
                                    +     * deployed You can use an existing target resource or create a new target.
                                          * 
                                    * * @@ -1716,9 +1726,8 @@ public boolean hasTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the CloudControl is
                                    -     * to be deployed. It can either be an existing target resource or a new
                                    -     * target resource to be created.
                                    +     * Required. The details of the target resource that the cloud control is
                                    +     * deployed You can use an existing target resource or create a new target.
                                          * 
                                    * * @@ -1744,9 +1753,8 @@ public Builder setTargetResourceConfig( * * *
                                    -     * Required. The details of the target resource on which the CloudControl is
                                    -     * to be deployed. It can either be an existing target resource or a new
                                    -     * target resource to be created.
                                    +     * Required. The details of the target resource that the cloud control is
                                    +     * deployed You can use an existing target resource or create a new target.
                                          * 
                                    * * @@ -1769,9 +1777,8 @@ public Builder setTargetResourceConfig( * * *
                                    -     * Required. The details of the target resource on which the CloudControl is
                                    -     * to be deployed. It can either be an existing target resource or a new
                                    -     * target resource to be created.
                                    +     * Required. The details of the target resource that the cloud control is
                                    +     * deployed You can use an existing target resource or create a new target.
                                          * 
                                    * * @@ -1804,9 +1811,8 @@ public Builder mergeTargetResourceConfig( * * *
                                    -     * Required. The details of the target resource on which the CloudControl is
                                    -     * to be deployed. It can either be an existing target resource or a new
                                    -     * target resource to be created.
                                    +     * Required. The details of the target resource that the cloud control is
                                    +     * deployed You can use an existing target resource or create a new target.
                                          * 
                                    * * @@ -1828,9 +1834,8 @@ public Builder clearTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the CloudControl is
                                    -     * to be deployed. It can either be an existing target resource or a new
                                    -     * target resource to be created.
                                    +     * Required. The details of the target resource that the cloud control is
                                    +     * deployed You can use an existing target resource or create a new target.
                                          * 
                                    * * @@ -1848,9 +1853,8 @@ public Builder clearTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the CloudControl is
                                    -     * to be deployed. It can either be an existing target resource or a new
                                    -     * target resource to be created.
                                    +     * Required. The details of the target resource that the cloud control is
                                    +     * deployed You can use an existing target resource or create a new target.
                                          * 
                                    * * @@ -1872,9 +1876,8 @@ public Builder clearTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the CloudControl is
                                    -     * to be deployed. It can either be an existing target resource or a new
                                    -     * target resource to be created.
                                    +     * Required. The details of the target resource that the cloud control is
                                    +     * deployed You can use an existing target resource or create a new target.
                                          * 
                                    * * @@ -1904,9 +1907,12 @@ public Builder clearTargetResourceConfig() { * * *
                                    -     * Output only. The resource on which the CloudControl is deployed based on
                                    -     * the provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}.
                                    +     * Output only. The resource that the cloud control is deployed on, in one of
                                    +     * the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1929,9 +1935,12 @@ public java.lang.String getTargetResource() { * * *
                                    -     * Output only. The resource on which the CloudControl is deployed based on
                                    -     * the provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}.
                                    +     * Output only. The resource that the cloud control is deployed on, in one of
                                    +     * the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1954,9 +1963,12 @@ public com.google.protobuf.ByteString getTargetResourceBytes() { * * *
                                    -     * Output only. The resource on which the CloudControl is deployed based on
                                    -     * the provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}.
                                    +     * Output only. The resource that the cloud control is deployed on, in one of
                                    +     * the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1978,9 +1990,12 @@ public Builder setTargetResource(java.lang.String value) { * * *
                                    -     * Output only. The resource on which the CloudControl is deployed based on
                                    -     * the provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}.
                                    +     * Output only. The resource that the cloud control is deployed on, in one of
                                    +     * the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1998,9 +2013,12 @@ public Builder clearTargetResource() { * * *
                                    -     * Output only. The resource on which the CloudControl is deployed based on
                                    -     * the provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}.
                                    +     * Output only. The resource that the cloud control is deployed on, in one of
                                    +     * the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2030,7 +2048,7 @@ public Builder setTargetResourceBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. Deployment mode and parameters for the Cloud Control.
                                    +     * Required. The deployment mode and parameters for the cloud control.
                                          * 
                                    * * @@ -2047,7 +2065,7 @@ public boolean hasCloudControlMetadata() { * * *
                                    -     * Required. Deployment mode and parameters for the Cloud Control.
                                    +     * Required. The deployment mode and parameters for the cloud control.
                                          * 
                                    * * @@ -2071,7 +2089,7 @@ public boolean hasCloudControlMetadata() { * * *
                                    -     * Required. Deployment mode and parameters for the Cloud Control.
                                    +     * Required. The deployment mode and parameters for the cloud control.
                                          * 
                                    * * @@ -2097,7 +2115,7 @@ public Builder setCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for the Cloud Control.
                                    +     * Required. The deployment mode and parameters for the cloud control.
                                          * 
                                    * * @@ -2120,7 +2138,7 @@ public Builder setCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for the Cloud Control.
                                    +     * Required. The deployment mode and parameters for the cloud control.
                                          * 
                                    * * @@ -2153,7 +2171,7 @@ public Builder mergeCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for the Cloud Control.
                                    +     * Required. The deployment mode and parameters for the cloud control.
                                          * 
                                    * * @@ -2175,7 +2193,7 @@ public Builder clearCloudControlMetadata() { * * *
                                    -     * Required. Deployment mode and parameters for the Cloud Control.
                                    +     * Required. The deployment mode and parameters for the cloud control.
                                          * 
                                    * * @@ -2193,7 +2211,7 @@ public Builder clearCloudControlMetadata() { * * *
                                    -     * Required. Deployment mode and parameters for the Cloud Control.
                                    +     * Required. The deployment mode and parameters for the cloud control.
                                          * 
                                    * * @@ -2215,7 +2233,7 @@ public Builder clearCloudControlMetadata() { * * *
                                    -     * Required. Deployment mode and parameters for the Cloud Control.
                                    +     * Required. The deployment mode and parameters for the cloud control.
                                          * 
                                    * * @@ -2245,7 +2263,7 @@ public Builder clearCloudControlMetadata() { * * *
                                    -     * Optional. User provided description of the CloudControl deployment
                                    +     * Optional. A friendly description for the cloud control deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2268,7 +2286,7 @@ public java.lang.String getDescription() { * * *
                                    -     * Optional. User provided description of the CloudControl deployment
                                    +     * Optional. A friendly description for the cloud control deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2291,7 +2309,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -     * Optional. User provided description of the CloudControl deployment
                                    +     * Optional. A friendly description for the cloud control deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2313,7 +2331,7 @@ public Builder setDescription(java.lang.String value) { * * *
                                    -     * Optional. User provided description of the CloudControl deployment
                                    +     * Optional. A friendly description for the cloud control deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2331,7 +2349,7 @@ public Builder clearDescription() { * * *
                                    -     * Optional. User provided description of the CloudControl deployment
                                    +     * Optional. A friendly description for the cloud control deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2356,7 +2374,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Output only. State of the CloudControl deployment
                                    +     * Output only. The state of the cloud control deployment.
                                          * 
                                    * * @@ -2374,7 +2392,7 @@ public int getDeploymentStateValue() { * * *
                                    -     * Output only. State of the CloudControl deployment
                                    +     * Output only. The state of the cloud control deployment.
                                          * 
                                    * * @@ -2395,7 +2413,7 @@ public Builder setDeploymentStateValue(int value) { * * *
                                    -     * Output only. State of the CloudControl deployment
                                    +     * Output only. The state of the cloud control deployment.
                                          * 
                                    * * @@ -2417,7 +2435,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.DeploymentState getDeployment * * *
                                    -     * Output only. State of the CloudControl deployment
                                    +     * Output only. The state of the cloud control deployment.
                                          * 
                                    * * @@ -2442,7 +2460,7 @@ public Builder setDeploymentState( * * *
                                    -     * Output only. State of the CloudControl deployment
                                    +     * Output only. The state of the cloud control deployment.
                                          * 
                                    * * @@ -2469,7 +2487,7 @@ public Builder clearDeploymentState() { * * *
                                    -     * Output only. The time at which the resource was created.
                                    +     * Output only. The time when the resource was created.
                                          * 
                                    * * @@ -2486,7 +2504,7 @@ public boolean hasCreateTime() { * * *
                                    -     * Output only. The time at which the resource was created.
                                    +     * Output only. The time when the resource was created.
                                          * 
                                    * * @@ -2509,7 +2527,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
                                    -     * Output only. The time at which the resource was created.
                                    +     * Output only. The time when the resource was created.
                                          * 
                                    * * @@ -2534,7 +2552,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
                                    -     * Output only. The time at which the resource was created.
                                    +     * Output only. The time when the resource was created.
                                          * 
                                    * * @@ -2556,7 +2574,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
                                    -     * Output only. The time at which the resource was created.
                                    +     * Output only. The time when the resource was created.
                                          * 
                                    * * @@ -2586,7 +2604,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
                                    -     * Output only. The time at which the resource was created.
                                    +     * Output only. The time when the resource was created.
                                          * 
                                    * * @@ -2608,7 +2626,7 @@ public Builder clearCreateTime() { * * *
                                    -     * Output only. The time at which the resource was created.
                                    +     * Output only. The time when the resource was created.
                                          * 
                                    * * @@ -2625,7 +2643,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
                                    -     * Output only. The time at which the resource was created.
                                    +     * Output only. The time when the resource was created.
                                          * 
                                    * * @@ -2646,7 +2664,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
                                    -     * Output only. The time at which the resource was created.
                                    +     * Output only. The time when the resource was created.
                                          * 
                                    * * @@ -2681,7 +2699,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
                                    -     * Output only. The time at which the resource last updated.
                                    +     * Output only. The time when the resource was last updated.
                                          * 
                                    * * @@ -2698,7 +2716,7 @@ public boolean hasUpdateTime() { * * *
                                    -     * Output only. The time at which the resource last updated.
                                    +     * Output only. The time when the resource was last updated.
                                          * 
                                    * * @@ -2721,7 +2739,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
                                    -     * Output only. The time at which the resource last updated.
                                    +     * Output only. The time when the resource was last updated.
                                          * 
                                    * * @@ -2746,7 +2764,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
                                    -     * Output only. The time at which the resource last updated.
                                    +     * Output only. The time when the resource was last updated.
                                          * 
                                    * * @@ -2768,7 +2786,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
                                    -     * Output only. The time at which the resource last updated.
                                    +     * Output only. The time when the resource was last updated.
                                          * 
                                    * * @@ -2798,7 +2816,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
                                    -     * Output only. The time at which the resource last updated.
                                    +     * Output only. The time when the resource was last updated.
                                          * 
                                    * * @@ -2820,7 +2838,7 @@ public Builder clearUpdateTime() { * * *
                                    -     * Output only. The time at which the resource last updated.
                                    +     * Output only. The time when the resource was last updated.
                                          * 
                                    * * @@ -2837,7 +2855,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * *
                                    -     * Output only. The time at which the resource last updated.
                                    +     * Output only. The time when the resource was last updated.
                                          * 
                                    * * @@ -2858,7 +2876,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
                                    -     * Output only. The time at which the resource last updated.
                                    +     * Output only. The time when the resource was last updated.
                                          * 
                                    * * @@ -2888,11 +2906,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
                                    -     * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a CloudControlDeployment. You can also
                                    -     * provide the `etag` when you delete a CloudControlDeployment, to help
                                    +     * Optional. To prevent concurrent updates from overwriting each other,
                                    +     * provide the `etag` when you update a cloud control deployment. You can also
                                    +     * provide the `etag` when you delete a cloud control deployment to help
                                          * ensure that you're deleting the intended version of the
                                    -     * CloudControlDeployment.
                                    +     * deployment.
                                          * 
                                    * * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -2915,11 +2933,11 @@ public java.lang.String getEtag() { * * *
                                    -     * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a CloudControlDeployment. You can also
                                    -     * provide the `etag` when you delete a CloudControlDeployment, to help
                                    +     * Optional. To prevent concurrent updates from overwriting each other,
                                    +     * provide the `etag` when you update a cloud control deployment. You can also
                                    +     * provide the `etag` when you delete a cloud control deployment to help
                                          * ensure that you're deleting the intended version of the
                                    -     * CloudControlDeployment.
                                    +     * deployment.
                                          * 
                                    * * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -2942,11 +2960,11 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
                                    -     * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a CloudControlDeployment. You can also
                                    -     * provide the `etag` when you delete a CloudControlDeployment, to help
                                    +     * Optional. To prevent concurrent updates from overwriting each other,
                                    +     * provide the `etag` when you update a cloud control deployment. You can also
                                    +     * provide the `etag` when you delete a cloud control deployment to help
                                          * ensure that you're deleting the intended version of the
                                    -     * CloudControlDeployment.
                                    +     * deployment.
                                          * 
                                    * * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -2968,11 +2986,11 @@ public Builder setEtag(java.lang.String value) { * * *
                                    -     * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a CloudControlDeployment. You can also
                                    -     * provide the `etag` when you delete a CloudControlDeployment, to help
                                    +     * Optional. To prevent concurrent updates from overwriting each other,
                                    +     * provide the `etag` when you update a cloud control deployment. You can also
                                    +     * provide the `etag` when you delete a cloud control deployment to help
                                          * ensure that you're deleting the intended version of the
                                    -     * CloudControlDeployment.
                                    +     * deployment.
                                          * 
                                    * * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -2990,11 +3008,11 @@ public Builder clearEtag() { * * *
                                    -     * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a CloudControlDeployment. You can also
                                    -     * provide the `etag` when you delete a CloudControlDeployment, to help
                                    +     * Optional. To prevent concurrent updates from overwriting each other,
                                    +     * provide the `etag` when you update a cloud control deployment. You can also
                                    +     * provide the `etag` when you delete a cloud control deployment to help
                                          * ensure that you're deleting the intended version of the
                                    -     * CloudControlDeployment.
                                    +     * deployment.
                                          * 
                                    * * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -3025,7 +3043,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Output only. The CloudControl after substitution of given parameters.
                                    +     * Output only. The cloud control after the given parameters are substituted.
                                          * 
                                    * * @@ -3042,7 +3060,7 @@ public boolean hasParameterSubstitutedCloudControl() { * * *
                                    -     * Output only. The CloudControl after substitution of given parameters.
                                    +     * Output only. The cloud control after the given parameters are substituted.
                                          * 
                                    * * @@ -3066,7 +3084,7 @@ public boolean hasParameterSubstitutedCloudControl() { * * *
                                    -     * Output only. The CloudControl after substitution of given parameters.
                                    +     * Output only. The cloud control after the given parameters are substituted.
                                          * 
                                    * * @@ -3092,7 +3110,7 @@ public Builder setParameterSubstitutedCloudControl( * * *
                                    -     * Output only. The CloudControl after substitution of given parameters.
                                    +     * Output only. The cloud control after the given parameters are substituted.
                                          * 
                                    * * @@ -3115,7 +3133,7 @@ public Builder setParameterSubstitutedCloudControl( * * *
                                    -     * Output only. The CloudControl after substitution of given parameters.
                                    +     * Output only. The cloud control after the given parameters are substituted.
                                          * 
                                    * * @@ -3147,7 +3165,7 @@ public Builder mergeParameterSubstitutedCloudControl( * * *
                                    -     * Output only. The CloudControl after substitution of given parameters.
                                    +     * Output only. The cloud control after the given parameters are substituted.
                                          * 
                                    * * @@ -3169,7 +3187,7 @@ public Builder clearParameterSubstitutedCloudControl() { * * *
                                    -     * Output only. The CloudControl after substitution of given parameters.
                                    +     * Output only. The cloud control after the given parameters are substituted.
                                          * 
                                    * * @@ -3187,7 +3205,7 @@ public Builder clearParameterSubstitutedCloudControl() { * * *
                                    -     * Output only. The CloudControl after substitution of given parameters.
                                    +     * Output only. The cloud control after the given parameters are substituted.
                                          * 
                                    * * @@ -3209,7 +3227,7 @@ public Builder clearParameterSubstitutedCloudControl() { * * *
                                    -     * Output only. The CloudControl after substitution of given parameters.
                                    +     * Output only. The cloud control after the given parameters are substituted.
                                          * 
                                    * * @@ -3256,9 +3274,9 @@ private void ensureFrameworkDeploymentReferencesIsMutable() { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3278,9 +3296,9 @@ private void ensureFrameworkDeploymentReferencesIsMutable() { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3299,9 +3317,9 @@ public int getFrameworkDeploymentReferencesCount() { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3321,9 +3339,9 @@ public int getFrameworkDeploymentReferencesCount() { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3349,9 +3367,9 @@ public Builder setFrameworkDeploymentReferences( * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3376,9 +3394,9 @@ public Builder setFrameworkDeploymentReferences( * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3404,9 +3422,9 @@ public Builder addFrameworkDeploymentReferences( * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3432,9 +3450,9 @@ public Builder addFrameworkDeploymentReferences( * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3458,9 +3476,9 @@ public Builder addFrameworkDeploymentReferences( * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3485,9 +3503,9 @@ public Builder addFrameworkDeploymentReferences( * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3513,9 +3531,9 @@ public Builder addAllFrameworkDeploymentReferences( * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3537,9 +3555,9 @@ public Builder clearFrameworkDeploymentReferences() { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3561,9 +3579,9 @@ public Builder removeFrameworkDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3579,9 +3597,9 @@ public Builder removeFrameworkDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3601,9 +3619,9 @@ public Builder removeFrameworkDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3625,9 +3643,9 @@ public Builder removeFrameworkDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3646,9 +3664,9 @@ public Builder removeFrameworkDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * @@ -3668,9 +3686,9 @@ public Builder removeFrameworkDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the Framework deployments that this Cloud
                                    -     * Control deployment is part of. A Cloud Control deployment can be part of
                                    -     * multiple Framework deployments.
                                    +     * Output only. The references to the framework deployments that this cloud
                                    +     * control deployment is part of. A cloud control deployment can be part of
                                    +     * multiple framework deployments.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentOrBuilder.java index 6f9edb449f13..8ca4975eb68c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentOrBuilder.java @@ -28,8 +28,9 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Identifier. CloudControlDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Identifier. The name for the cloud control deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,8 +43,9 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Identifier. CloudControlDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Identifier. The name for the cloud control deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -56,9 +58,8 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Required. The details of the target resource on which the CloudControl is
                                    -   * to be deployed. It can either be an existing target resource or a new
                                    -   * target resource to be created.
                                    +   * Required. The details of the target resource that the cloud control is
                                    +   * deployed You can use an existing target resource or create a new target.
                                        * 
                                    * * @@ -73,9 +74,8 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Required. The details of the target resource on which the CloudControl is
                                    -   * to be deployed. It can either be an existing target resource or a new
                                    -   * target resource to be created.
                                    +   * Required. The details of the target resource that the cloud control is
                                    +   * deployed You can use an existing target resource or create a new target.
                                        * 
                                    * * @@ -90,9 +90,8 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Required. The details of the target resource on which the CloudControl is
                                    -   * to be deployed. It can either be an existing target resource or a new
                                    -   * target resource to be created.
                                    +   * Required. The details of the target resource that the cloud control is
                                    +   * deployed You can use an existing target resource or create a new target.
                                        * 
                                    * * @@ -106,9 +105,12 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The resource on which the CloudControl is deployed based on
                                    -   * the provided TargetResourceConfig in the following format:
                                    -   * organizations/{organization}, folders/{folder} or projects/{project}.
                                    +   * Output only. The resource that the cloud control is deployed on, in one of
                                    +   * the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -121,9 +123,12 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The resource on which the CloudControl is deployed based on
                                    -   * the provided TargetResourceConfig in the following format:
                                    -   * organizations/{organization}, folders/{folder} or projects/{project}.
                                    +   * Output only. The resource that the cloud control is deployed on, in one of
                                    +   * the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -136,7 +141,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Required. Deployment mode and parameters for the Cloud Control.
                                    +   * Required. The deployment mode and parameters for the cloud control.
                                        * 
                                    * * @@ -151,7 +156,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Required. Deployment mode and parameters for the Cloud Control.
                                    +   * Required. The deployment mode and parameters for the cloud control.
                                        * 
                                    * * @@ -166,7 +171,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Required. Deployment mode and parameters for the Cloud Control.
                                    +   * Required. The deployment mode and parameters for the cloud control.
                                        * 
                                    * * @@ -180,7 +185,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Optional. User provided description of the CloudControl deployment
                                    +   * Optional. A friendly description for the cloud control deployment.
                                        * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -193,7 +198,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Optional. User provided description of the CloudControl deployment
                                    +   * Optional. A friendly description for the cloud control deployment.
                                        * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -206,7 +211,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. State of the CloudControl deployment
                                    +   * Output only. The state of the cloud control deployment.
                                        * 
                                    * * @@ -221,7 +226,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. State of the CloudControl deployment
                                    +   * Output only. The state of the cloud control deployment.
                                        * 
                                    * * @@ -236,7 +241,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The time at which the resource was created.
                                    +   * Output only. The time when the resource was created.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -250,7 +255,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The time at which the resource was created.
                                    +   * Output only. The time when the resource was created.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -264,7 +269,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The time at which the resource was created.
                                    +   * Output only. The time when the resource was created.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -276,7 +281,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The time at which the resource last updated.
                                    +   * Output only. The time when the resource was last updated.
                                        * 
                                    * * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -290,7 +295,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The time at which the resource last updated.
                                    +   * Output only. The time when the resource was last updated.
                                        * 
                                    * * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -304,7 +309,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The time at which the resource last updated.
                                    +   * Output only. The time when the resource was last updated.
                                        * 
                                    * * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -316,11 +321,11 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Optional. To prevent concurrent updates from overwriting each other, always
                                    -   * provide the `etag` when you update a CloudControlDeployment. You can also
                                    -   * provide the `etag` when you delete a CloudControlDeployment, to help
                                    +   * Optional. To prevent concurrent updates from overwriting each other,
                                    +   * provide the `etag` when you update a cloud control deployment. You can also
                                    +   * provide the `etag` when you delete a cloud control deployment to help
                                        * ensure that you're deleting the intended version of the
                                    -   * CloudControlDeployment.
                                    +   * deployment.
                                        * 
                                    * * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -333,11 +338,11 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Optional. To prevent concurrent updates from overwriting each other, always
                                    -   * provide the `etag` when you update a CloudControlDeployment. You can also
                                    -   * provide the `etag` when you delete a CloudControlDeployment, to help
                                    +   * Optional. To prevent concurrent updates from overwriting each other,
                                    +   * provide the `etag` when you update a cloud control deployment. You can also
                                    +   * provide the `etag` when you delete a cloud control deployment to help
                                        * ensure that you're deleting the intended version of the
                                    -   * CloudControlDeployment.
                                    +   * deployment.
                                        * 
                                    * * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -350,7 +355,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The CloudControl after substitution of given parameters.
                                    +   * Output only. The cloud control after the given parameters are substituted.
                                        * 
                                    * * @@ -365,7 +370,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The CloudControl after substitution of given parameters.
                                    +   * Output only. The cloud control after the given parameters are substituted.
                                        * 
                                    * * @@ -380,7 +385,7 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The CloudControl after substitution of given parameters.
                                    +   * Output only. The cloud control after the given parameters are substituted.
                                        * 
                                    * * @@ -394,9 +399,9 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * @@ -410,9 +415,9 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * @@ -426,9 +431,9 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * @@ -441,9 +446,9 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * @@ -459,9 +464,9 @@ public interface CloudControlDeploymentOrBuilder * * *
                                    -   * Output only. The references to the Framework deployments that this Cloud
                                    -   * Control deployment is part of. A Cloud Control deployment can be part of
                                    -   * multiple Framework deployments.
                                    +   * Output only. The references to the framework deployments that this cloud
                                    +   * control deployment is part of. A cloud control deployment can be part of
                                    +   * multiple framework deployments.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReference.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReference.java index 52dd79b84a9d..9e46a73f555c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReference.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReference.java @@ -23,7 +23,7 @@ * * *
                                    - * The reference to a CloudControlDeployment.
                                    + * The reference to a cloud control deployment.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference} @@ -75,8 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Output only. The name of the CloudControlDeployment. The format is:
                                    -   * organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Output only. The name of the CloudControlDeployment. The format is
                                    +   * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -102,8 +103,9 @@ public java.lang.String getCloudControlDeployment() { * * *
                                    -   * Output only. The name of the CloudControlDeployment. The format is:
                                    -   * organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Output only. The name of the CloudControlDeployment. The format is
                                    +   * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -297,7 +299,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * The reference to a CloudControlDeployment.
                                    +   * The reference to a cloud control deployment.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReference} @@ -493,8 +495,9 @@ public Builder mergeFrom( * * *
                                    -     * Output only. The name of the CloudControlDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Output only. The name of the CloudControlDeployment. The format is
                                    +     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -519,8 +522,9 @@ public java.lang.String getCloudControlDeployment() { * * *
                                    -     * Output only. The name of the CloudControlDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Output only. The name of the CloudControlDeployment. The format is
                                    +     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -545,8 +549,9 @@ public com.google.protobuf.ByteString getCloudControlDeploymentBytes() { * * *
                                    -     * Output only. The name of the CloudControlDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Output only. The name of the CloudControlDeployment. The format is
                                    +     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -570,8 +575,9 @@ public Builder setCloudControlDeployment(java.lang.String value) { * * *
                                    -     * Output only. The name of the CloudControlDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Output only. The name of the CloudControlDeployment. The format is
                                    +     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -591,8 +597,9 @@ public Builder clearCloudControlDeployment() { * * *
                                    -     * Output only. The name of the CloudControlDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Output only. The name of the CloudControlDeployment. The format is
                                    +     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReferenceOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReferenceOrBuilder.java index 20b6df423560..7b5b96a0353a 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReferenceOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReferenceOrBuilder.java @@ -28,8 +28,9 @@ public interface CloudControlDeploymentReferenceOrBuilder * * *
                                    -   * Output only. The name of the CloudControlDeployment. The format is:
                                    -   * organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Output only. The name of the CloudControlDeployment. The format is
                                    +   * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -44,8 +45,9 @@ public interface CloudControlDeploymentReferenceOrBuilder * * *
                                    -   * Output only. The name of the CloudControlDeployment. The format is:
                                    -   * organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Output only. The name of the CloudControlDeployment. The format is
                                    +   * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetails.java index ed629663b502..5093582bd90c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetails.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetails.java @@ -23,7 +23,7 @@ * * *
                                    - * CloudControlDetails contains the details of a CloudControl.
                                    + * The details of a cloud control.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlDetails} @@ -74,9 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. The name of the CloudControl in the format:
                                    -   * “organizations/{organization}/locations/{location}/
                                    -   * cloudControls/{cloud-control}”
                                    +   * Required. The name of the cloud control, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -100,9 +100,9 @@ public java.lang.String getName() { * * *
                                    -   * Required. The name of the CloudControl in the format:
                                    -   * “organizations/{organization}/locations/{location}/
                                    -   * cloudControls/{cloud-control}”
                                    +   * Required. The name of the cloud control, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -129,7 +129,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -   * Required. Major revision of cloudcontrol
                                    +   * Required. The major version of the cloud control.
                                        * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -150,9 +150,10 @@ public long getMajorRevisionId() { * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * @@ -168,9 +169,10 @@ public java.util.List get * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * @@ -187,9 +189,10 @@ public java.util.List get * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * @@ -205,9 +208,10 @@ public int getParametersCount() { * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * @@ -223,9 +227,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter getParameters(int i * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * @@ -423,7 +428,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * CloudControlDetails contains the details of a CloudControl.
                                    +   * The details of a cloud control.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlDetails} @@ -687,9 +692,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. The name of the CloudControl in the format:
                                    -     * “organizations/{organization}/locations/{location}/
                                    -     * cloudControls/{cloud-control}”
                                    +     * Required. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -712,9 +717,9 @@ public java.lang.String getName() { * * *
                                    -     * Required. The name of the CloudControl in the format:
                                    -     * “organizations/{organization}/locations/{location}/
                                    -     * cloudControls/{cloud-control}”
                                    +     * Required. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -737,9 +742,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. The name of the CloudControl in the format:
                                    -     * “organizations/{organization}/locations/{location}/
                                    -     * cloudControls/{cloud-control}”
                                    +     * Required. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -761,9 +766,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. The name of the CloudControl in the format:
                                    -     * “organizations/{organization}/locations/{location}/
                                    -     * cloudControls/{cloud-control}”
                                    +     * Required. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -781,9 +786,9 @@ public Builder clearName() { * * *
                                    -     * Required. The name of the CloudControl in the format:
                                    -     * “organizations/{organization}/locations/{location}/
                                    -     * cloudControls/{cloud-control}”
                                    +     * Required. The name of the cloud control, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -808,7 +813,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. Major revision of cloudcontrol
                                    +     * Required. The major version of the cloud control.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -824,7 +829,7 @@ public long getMajorRevisionId() { * * *
                                    -     * Required. Major revision of cloudcontrol
                                    +     * Required. The major version of the cloud control.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -844,7 +849,7 @@ public Builder setMajorRevisionId(long value) { * * *
                                    -     * Required. Major revision of cloudcontrol
                                    +     * Required. The major version of the cloud control.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -880,9 +885,10 @@ private void ensureParametersIsMutable() { * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -902,9 +908,10 @@ private void ensureParametersIsMutable() { * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -923,9 +930,10 @@ public int getParametersCount() { * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -944,9 +952,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter getParameters(int i * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -972,9 +981,10 @@ public Builder setParameters( * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -997,9 +1007,10 @@ public Builder setParameters( * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1024,9 +1035,10 @@ public Builder addParameters(com.google.cloud.cloudsecuritycompliance.v1.Paramet * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1052,9 +1064,10 @@ public Builder addParameters( * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1077,9 +1090,10 @@ public Builder addParameters( * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1102,9 +1116,10 @@ public Builder addParameters( * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1128,9 +1143,10 @@ public Builder addAllParameters( * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1152,9 +1168,10 @@ public Builder clearParameters() { * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1176,9 +1193,10 @@ public Builder removeParameters(int index) { * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1194,9 +1212,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter.Builder getParamete * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1216,9 +1235,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterOrBuilder getParamet * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1238,9 +1258,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterOrBuilder getParamet * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1256,9 +1277,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter.Builder addParamete * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * @@ -1276,9 +1298,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter.Builder addParamete * * *
                                    -     * Optional. Parameters is a key-value pair that is required by the
                                    -     * CloudControl. The specification of these parameters will be present in
                                    -     * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +     * Optional. Parameters are key-value pairs that let you provide your custom
                                    +     * location requirements, environment requirements, or other settings that are
                                    +     * relevant to the cloud control. An example parameter is
                                    +     * `{"name": "location","value": "us-west-1"}`.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetailsOrBuilder.java index 0827e355533a..13343b38ec40 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetailsOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetailsOrBuilder.java @@ -28,9 +28,9 @@ public interface CloudControlDetailsOrBuilder * * *
                                    -   * Required. The name of the CloudControl in the format:
                                    -   * “organizations/{organization}/locations/{location}/
                                    -   * cloudControls/{cloud-control}”
                                    +   * Required. The name of the cloud control, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -43,9 +43,9 @@ public interface CloudControlDetailsOrBuilder * * *
                                    -   * Required. The name of the CloudControl in the format:
                                    -   * “organizations/{organization}/locations/{location}/
                                    -   * cloudControls/{cloud-control}”
                                    +   * Required. The name of the cloud control, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -58,7 +58,7 @@ public interface CloudControlDetailsOrBuilder * * *
                                    -   * Required. Major revision of cloudcontrol
                                    +   * Required. The major version of the cloud control.
                                        * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -71,9 +71,10 @@ public interface CloudControlDetailsOrBuilder * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * @@ -86,9 +87,10 @@ public interface CloudControlDetailsOrBuilder * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * @@ -101,9 +103,10 @@ public interface CloudControlDetailsOrBuilder * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * @@ -116,9 +119,10 @@ public interface CloudControlDetailsOrBuilder * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * @@ -132,9 +136,10 @@ public interface CloudControlDetailsOrBuilder * * *
                                    -   * Optional. Parameters is a key-value pair that is required by the
                                    -   * CloudControl. The specification of these parameters will be present in
                                    -   * cloudcontrol.Eg: { "name": "location","value": "us-west-1"}.
                                    +   * Optional. Parameters are key-value pairs that let you provide your custom
                                    +   * location requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control. An example parameter is
                                    +   * `{"name": "location","value": "us-west-1"}`.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlGroupAuditDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlGroupAuditDetails.java new file mode 100644 index 000000000000..b942c56dae6f --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlGroupAuditDetails.java @@ -0,0 +1,3659 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The details for a cloud control group.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails} + */ +public final class CloudControlGroupAuditDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails) + CloudControlGroupAuditDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudControlGroupAuditDetails.newBuilder() to construct. + private CloudControlGroupAuditDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudControlGroupAuditDetails() { + cloudControlGroupId_ = ""; + displayName_ = ""; + description_ = ""; + responsibilityType_ = ""; + googleResponsibilityDescription_ = ""; + googleResponsibilityImplementation_ = ""; + customerResponsibilityDescription_ = ""; + customerResponsibilityImplementation_ = ""; + complianceState_ = 0; + controlId_ = ""; + cloudControlDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudControlGroupAuditDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder + .class); + } + + private int bitField0_; + public static final int CLOUD_CONTROL_GROUP_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudControlGroupId_ = ""; + + /** + * + * + *
                                    +   * Output only. The ID of the cloud control group.
                                    +   * 
                                    + * + * string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControlGroupId. + */ + @java.lang.Override + public java.lang.String getCloudControlGroupId() { + java.lang.Object ref = cloudControlGroupId_; + 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(); + cloudControlGroupId_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The ID of the cloud control group.
                                    +   * 
                                    + * + * string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControlGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudControlGroupIdBytes() { + java.lang.Object ref = cloudControlGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControlGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                    +   * Output only. The display name of the cloud control group.
                                    +   * 
                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The display name of the cloud control group.
                                    +   * 
                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                    +   * Output only. The description of the cloud control group.
                                    +   * 
                                    + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +   * Output only. The description of the cloud control group.
                                    +   * 
                                    + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 RESPONSIBILITY_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object responsibilityType_ = ""; + + /** + * + * + *
                                    +   * Output only. The responsibility type.
                                    +   * 
                                    + * + * string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The responsibilityType. + */ + @java.lang.Override + public java.lang.String getResponsibilityType() { + java.lang.Object ref = responsibilityType_; + 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(); + responsibilityType_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The responsibility type.
                                    +   * 
                                    + * + * string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for responsibilityType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResponsibilityTypeBytes() { + java.lang.Object ref = responsibilityType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responsibilityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GOOGLE_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object googleResponsibilityDescription_ = ""; + + /** + * + * + *
                                    +   * Output only. The description of Google's responsibility.
                                    +   * 
                                    + * + * + * string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityDescription. + */ + @java.lang.Override + public java.lang.String getGoogleResponsibilityDescription() { + java.lang.Object ref = googleResponsibilityDescription_; + 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(); + googleResponsibilityDescription_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The description of Google's responsibility.
                                    +   * 
                                    + * + * + * string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGoogleResponsibilityDescriptionBytes() { + java.lang.Object ref = googleResponsibilityDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GOOGLE_RESPONSIBILITY_IMPLEMENTATION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object googleResponsibilityImplementation_ = ""; + + /** + * + * + *
                                    +   * Output only. The implementation of Google's responsibility.
                                    +   * 
                                    + * + * + * string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityImplementation. + */ + @java.lang.Override + public java.lang.String getGoogleResponsibilityImplementation() { + java.lang.Object ref = googleResponsibilityImplementation_; + 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(); + googleResponsibilityImplementation_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The implementation of Google's responsibility.
                                    +   * 
                                    + * + * + * string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityImplementation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGoogleResponsibilityImplementationBytes() { + java.lang.Object ref = googleResponsibilityImplementation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleResponsibilityImplementation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOMER_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object customerResponsibilityDescription_ = ""; + + /** + * + * + *
                                    +   * Output only. The description of your responsibility.
                                    +   * 
                                    + * + * + * string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityDescription. + */ + @java.lang.Override + public java.lang.String getCustomerResponsibilityDescription() { + java.lang.Object ref = customerResponsibilityDescription_; + 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(); + customerResponsibilityDescription_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The description of your responsibility.
                                    +   * 
                                    + * + * + * string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerResponsibilityDescriptionBytes() { + java.lang.Object ref = customerResponsibilityDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOMER_RESPONSIBILITY_IMPLEMENTATION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object customerResponsibilityImplementation_ = ""; + + /** + * + * + *
                                    +   * Output only. The implementation of your responsibility.
                                    +   * 
                                    + * + * + * string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityImplementation. + */ + @java.lang.Override + public java.lang.String getCustomerResponsibilityImplementation() { + java.lang.Object ref = customerResponsibilityImplementation_; + 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(); + customerResponsibilityImplementation_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The implementation of your responsibility.
                                    +   * 
                                    + * + * + * string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityImplementation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerResponsibilityImplementationBytes() { + java.lang.Object ref = customerResponsibilityImplementation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerResponsibilityImplementation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPLIANCE_STATE_FIELD_NUMBER = 9; + private int complianceState_ = 0; + + /** + * + * + *
                                    +   * Output only. The compliance state of the control group.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + @java.lang.Override + public int getComplianceStateValue() { + return complianceState_; + } + + /** + * + * + *
                                    +   * Output only. The compliance state of the control group.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState() { + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState result = + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.forNumber(complianceState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.UNRECOGNIZED + : result; + } + + public static final int CONTROL_ID_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object controlId_ = ""; + + /** + * + * + *
                                    +   * Output only. The ID of the regulatory control.
                                    +   * 
                                    + * + * string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The controlId. + */ + @java.lang.Override + public java.lang.String getControlId() { + java.lang.Object ref = controlId_; + 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(); + controlId_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The ID of the regulatory control.
                                    +   * 
                                    + * + * string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for controlId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getControlIdBytes() { + java.lang.Object ref = controlId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + controlId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTROL_FAMILY_FIELD_NUMBER = 11; + private com.google.cloud.cloudsecuritycompliance.v1.ControlFamily controlFamily_; + + /** + * + * + *
                                    +   * Output only. The control family.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlFamily field is set. + */ + @java.lang.Override + public boolean hasControlFamily() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Output only. The control family.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlFamily. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamily getControlFamily() { + return controlFamily_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance() + : controlFamily_; + } + + /** + * + * + *
                                    +   * Output only. The control family.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder + getControlFamilyOrBuilder() { + return controlFamily_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance() + : controlFamily_; + } + + public static final int CLOUD_CONTROL_DETAILS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List + cloudControlDetails_; + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCloudControlDetailsList() { + return cloudControlDetails_; + } + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + getCloudControlDetailsOrBuilderList() { + return cloudControlDetails_; + } + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCloudControlDetailsCount() { + return cloudControlDetails_.size(); + } + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + getCloudControlDetails(int index) { + return cloudControlDetails_.get(index); + } + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder + getCloudControlDetailsOrBuilder(int index) { + return cloudControlDetails_.get(index); + } + + public static final int REPORT_SUMMARY_FIELD_NUMBER = 13; + private com.google.cloud.cloudsecuritycompliance.v1.ReportSummary reportSummary_; + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportSummary field is set. + */ + @java.lang.Override + public boolean hasReportSummary() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportSummary. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getReportSummary() { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder + getReportSummaryOrBuilder() { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControlGroupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cloudControlGroupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responsibilityType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responsibilityType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleResponsibilityDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, googleResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + googleResponsibilityImplementation_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 6, googleResponsibilityImplementation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerResponsibilityDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, customerResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + customerResponsibilityImplementation_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 8, customerResponsibilityImplementation_); + } + if (complianceState_ + != com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.COMPLIANCE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, complianceState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, controlId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(11, getControlFamily()); + } + for (int i = 0; i < cloudControlDetails_.size(); i++) { + output.writeMessage(12, cloudControlDetails_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(13, getReportSummary()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControlGroupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cloudControlGroupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responsibilityType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responsibilityType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleResponsibilityDescription_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 5, googleResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + googleResponsibilityImplementation_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 6, googleResponsibilityImplementation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerResponsibilityDescription_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 7, customerResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + customerResponsibilityImplementation_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 8, customerResponsibilityImplementation_); + } + if (complianceState_ + != com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.COMPLIANCE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, complianceState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, controlId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getControlFamily()); + } + for (int i = 0; i < cloudControlDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, cloudControlDetails_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getReportSummary()); + } + 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.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails other = + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails) obj; + + if (!getCloudControlGroupId().equals(other.getCloudControlGroupId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getResponsibilityType().equals(other.getResponsibilityType())) return false; + if (!getGoogleResponsibilityDescription().equals(other.getGoogleResponsibilityDescription())) + return false; + if (!getGoogleResponsibilityImplementation() + .equals(other.getGoogleResponsibilityImplementation())) return false; + if (!getCustomerResponsibilityDescription() + .equals(other.getCustomerResponsibilityDescription())) return false; + if (!getCustomerResponsibilityImplementation() + .equals(other.getCustomerResponsibilityImplementation())) return false; + if (complianceState_ != other.complianceState_) return false; + if (!getControlId().equals(other.getControlId())) return false; + if (hasControlFamily() != other.hasControlFamily()) return false; + if (hasControlFamily()) { + if (!getControlFamily().equals(other.getControlFamily())) return false; + } + if (!getCloudControlDetailsList().equals(other.getCloudControlDetailsList())) return false; + if (hasReportSummary() != other.hasReportSummary()) return false; + if (hasReportSummary()) { + if (!getReportSummary().equals(other.getReportSummary())) 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) + CLOUD_CONTROL_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlGroupId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + RESPONSIBILITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResponsibilityType().hashCode(); + hash = (37 * hash) + GOOGLE_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getGoogleResponsibilityDescription().hashCode(); + hash = (37 * hash) + GOOGLE_RESPONSIBILITY_IMPLEMENTATION_FIELD_NUMBER; + hash = (53 * hash) + getGoogleResponsibilityImplementation().hashCode(); + hash = (37 * hash) + CUSTOMER_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getCustomerResponsibilityDescription().hashCode(); + hash = (37 * hash) + CUSTOMER_RESPONSIBILITY_IMPLEMENTATION_FIELD_NUMBER; + hash = (53 * hash) + getCustomerResponsibilityImplementation().hashCode(); + hash = (37 * hash) + COMPLIANCE_STATE_FIELD_NUMBER; + hash = (53 * hash) + complianceState_; + hash = (37 * hash) + CONTROL_ID_FIELD_NUMBER; + hash = (53 * hash) + getControlId().hashCode(); + if (hasControlFamily()) { + hash = (37 * hash) + CONTROL_FAMILY_FIELD_NUMBER; + hash = (53 * hash) + getControlFamily().hashCode(); + } + if (getCloudControlDetailsCount() > 0) { + hash = (37 * hash) + CLOUD_CONTROL_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlDetailsList().hashCode(); + } + if (hasReportSummary()) { + hash = (37 * hash) + REPORT_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getReportSummary().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails 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.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails 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.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The details for a cloud control group.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails) + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder + .class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getControlFamilyFieldBuilder(); + getCloudControlDetailsFieldBuilder(); + getReportSummaryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloudControlGroupId_ = ""; + displayName_ = ""; + description_ = ""; + responsibilityType_ = ""; + googleResponsibilityDescription_ = ""; + googleResponsibilityImplementation_ = ""; + customerResponsibilityDescription_ = ""; + customerResponsibilityImplementation_ = ""; + complianceState_ = 0; + controlId_ = ""; + controlFamily_ = null; + if (controlFamilyBuilder_ != null) { + controlFamilyBuilder_.dispose(); + controlFamilyBuilder_ = null; + } + if (cloudControlDetailsBuilder_ == null) { + cloudControlDetails_ = java.util.Collections.emptyList(); + } else { + cloudControlDetails_ = null; + cloudControlDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + reportSummary_ = null; + if (reportSummaryBuilder_ != null) { + reportSummaryBuilder_.dispose(); + reportSummaryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlGroupAuditDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails build() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails result = + new com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails result) { + if (cloudControlDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + cloudControlDetails_ = java.util.Collections.unmodifiableList(cloudControlDetails_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.cloudControlDetails_ = cloudControlDetails_; + } else { + result.cloudControlDetails_ = cloudControlDetailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloudControlGroupId_ = cloudControlGroupId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.responsibilityType_ = responsibilityType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.googleResponsibilityDescription_ = googleResponsibilityDescription_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.googleResponsibilityImplementation_ = googleResponsibilityImplementation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.customerResponsibilityDescription_ = customerResponsibilityDescription_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.customerResponsibilityImplementation_ = customerResponsibilityImplementation_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.complianceState_ = complianceState_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.controlId_ = controlId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.controlFamily_ = + controlFamilyBuilder_ == null ? controlFamily_ : controlFamilyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.reportSummary_ = + reportSummaryBuilder_ == null ? reportSummary_ : reportSummaryBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + .getDefaultInstance()) return this; + if (!other.getCloudControlGroupId().isEmpty()) { + cloudControlGroupId_ = other.cloudControlGroupId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getResponsibilityType().isEmpty()) { + responsibilityType_ = other.responsibilityType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGoogleResponsibilityDescription().isEmpty()) { + googleResponsibilityDescription_ = other.googleResponsibilityDescription_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getGoogleResponsibilityImplementation().isEmpty()) { + googleResponsibilityImplementation_ = other.googleResponsibilityImplementation_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getCustomerResponsibilityDescription().isEmpty()) { + customerResponsibilityDescription_ = other.customerResponsibilityDescription_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getCustomerResponsibilityImplementation().isEmpty()) { + customerResponsibilityImplementation_ = other.customerResponsibilityImplementation_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.complianceState_ != 0) { + setComplianceStateValue(other.getComplianceStateValue()); + } + if (!other.getControlId().isEmpty()) { + controlId_ = other.controlId_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasControlFamily()) { + mergeControlFamily(other.getControlFamily()); + } + if (cloudControlDetailsBuilder_ == null) { + if (!other.cloudControlDetails_.isEmpty()) { + if (cloudControlDetails_.isEmpty()) { + cloudControlDetails_ = other.cloudControlDetails_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.addAll(other.cloudControlDetails_); + } + onChanged(); + } + } else { + if (!other.cloudControlDetails_.isEmpty()) { + if (cloudControlDetailsBuilder_.isEmpty()) { + cloudControlDetailsBuilder_.dispose(); + cloudControlDetailsBuilder_ = null; + cloudControlDetails_ = other.cloudControlDetails_; + bitField0_ = (bitField0_ & ~0x00000800); + cloudControlDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCloudControlDetailsFieldBuilder() + : null; + } else { + cloudControlDetailsBuilder_.addAllMessages(other.cloudControlDetails_); + } + } + } + if (other.hasReportSummary()) { + mergeReportSummary(other.getReportSummary()); + } + 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: + { + cloudControlGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + responsibilityType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + googleResponsibilityDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + googleResponsibilityImplementation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + customerResponsibilityDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + customerResponsibilityImplementation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { + complianceState_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + controlId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage(getControlFamilyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + .parser(), + extensionRegistry); + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(m); + } else { + cloudControlDetailsBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: + { + input.readMessage(getReportSummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + 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 bitField0_; + + private java.lang.Object cloudControlGroupId_ = ""; + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control group.
                                    +     * 
                                    + * + * string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControlGroupId. + */ + public java.lang.String getCloudControlGroupId() { + java.lang.Object ref = cloudControlGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudControlGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control group.
                                    +     * 
                                    + * + * string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControlGroupId. + */ + public com.google.protobuf.ByteString getCloudControlGroupIdBytes() { + java.lang.Object ref = cloudControlGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControlGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control group.
                                    +     * 
                                    + * + * string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The cloudControlGroupId to set. + * @return This builder for chaining. + */ + public Builder setCloudControlGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudControlGroupId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control group.
                                    +     * 
                                    + * + * string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCloudControlGroupId() { + cloudControlGroupId_ = getDefaultInstance().getCloudControlGroupId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the cloud control group.
                                    +     * 
                                    + * + * string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for cloudControlGroupId to set. + * @return This builder for chaining. + */ + public Builder setCloudControlGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudControlGroupId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                    +     * Output only. The display name of the cloud control group.
                                    +     * 
                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The display name of the cloud control group.
                                    +     * 
                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The display name of the cloud control group.
                                    +     * 
                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The display name of the cloud control group.
                                    +     * 
                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The display name of the cloud control group.
                                    +     * 
                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                    +     * Output only. The description of the cloud control group.
                                    +     * 
                                    + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The description of the cloud control group.
                                    +     * 
                                    + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The description of the cloud control group.
                                    +     * 
                                    + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The description of the cloud control group.
                                    +     * 
                                    + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The description of the cloud control group.
                                    +     * 
                                    + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object responsibilityType_ = ""; + + /** + * + * + *
                                    +     * Output only. The responsibility type.
                                    +     * 
                                    + * + * string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The responsibilityType. + */ + public java.lang.String getResponsibilityType() { + java.lang.Object ref = responsibilityType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responsibilityType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The responsibility type.
                                    +     * 
                                    + * + * string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for responsibilityType. + */ + public com.google.protobuf.ByteString getResponsibilityTypeBytes() { + java.lang.Object ref = responsibilityType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responsibilityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The responsibility type.
                                    +     * 
                                    + * + * string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The responsibilityType to set. + * @return This builder for chaining. + */ + public Builder setResponsibilityType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + responsibilityType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The responsibility type.
                                    +     * 
                                    + * + * string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResponsibilityType() { + responsibilityType_ = getDefaultInstance().getResponsibilityType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The responsibility type.
                                    +     * 
                                    + * + * string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for responsibilityType to set. + * @return This builder for chaining. + */ + public Builder setResponsibilityTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responsibilityType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object googleResponsibilityDescription_ = ""; + + /** + * + * + *
                                    +     * Output only. The description of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityDescription. + */ + public java.lang.String getGoogleResponsibilityDescription() { + java.lang.Object ref = googleResponsibilityDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleResponsibilityDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The description of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityDescription. + */ + public com.google.protobuf.ByteString getGoogleResponsibilityDescriptionBytes() { + java.lang.Object ref = googleResponsibilityDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The description of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The googleResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setGoogleResponsibilityDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + googleResponsibilityDescription_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The description of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGoogleResponsibilityDescription() { + googleResponsibilityDescription_ = getDefaultInstance().getGoogleResponsibilityDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The description of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for googleResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setGoogleResponsibilityDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + googleResponsibilityDescription_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object googleResponsibilityImplementation_ = ""; + + /** + * + * + *
                                    +     * Output only. The implementation of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityImplementation. + */ + public java.lang.String getGoogleResponsibilityImplementation() { + java.lang.Object ref = googleResponsibilityImplementation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleResponsibilityImplementation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The implementation of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityImplementation. + */ + public com.google.protobuf.ByteString getGoogleResponsibilityImplementationBytes() { + java.lang.Object ref = googleResponsibilityImplementation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleResponsibilityImplementation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The implementation of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The googleResponsibilityImplementation to set. + * @return This builder for chaining. + */ + public Builder setGoogleResponsibilityImplementation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + googleResponsibilityImplementation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The implementation of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGoogleResponsibilityImplementation() { + googleResponsibilityImplementation_ = + getDefaultInstance().getGoogleResponsibilityImplementation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The implementation of Google's responsibility.
                                    +     * 
                                    + * + * + * string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for googleResponsibilityImplementation to set. + * @return This builder for chaining. + */ + public Builder setGoogleResponsibilityImplementationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + googleResponsibilityImplementation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object customerResponsibilityDescription_ = ""; + + /** + * + * + *
                                    +     * Output only. The description of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityDescription. + */ + public java.lang.String getCustomerResponsibilityDescription() { + java.lang.Object ref = customerResponsibilityDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerResponsibilityDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The description of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityDescription. + */ + public com.google.protobuf.ByteString getCustomerResponsibilityDescriptionBytes() { + java.lang.Object ref = customerResponsibilityDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The description of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The customerResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setCustomerResponsibilityDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerResponsibilityDescription_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The description of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCustomerResponsibilityDescription() { + customerResponsibilityDescription_ = + getDefaultInstance().getCustomerResponsibilityDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The description of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for customerResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setCustomerResponsibilityDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerResponsibilityDescription_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object customerResponsibilityImplementation_ = ""; + + /** + * + * + *
                                    +     * Output only. The implementation of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityImplementation. + */ + public java.lang.String getCustomerResponsibilityImplementation() { + java.lang.Object ref = customerResponsibilityImplementation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerResponsibilityImplementation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The implementation of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityImplementation. + */ + public com.google.protobuf.ByteString getCustomerResponsibilityImplementationBytes() { + java.lang.Object ref = customerResponsibilityImplementation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerResponsibilityImplementation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The implementation of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The customerResponsibilityImplementation to set. + * @return This builder for chaining. + */ + public Builder setCustomerResponsibilityImplementation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerResponsibilityImplementation_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The implementation of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCustomerResponsibilityImplementation() { + customerResponsibilityImplementation_ = + getDefaultInstance().getCustomerResponsibilityImplementation(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The implementation of your responsibility.
                                    +     * 
                                    + * + * + * string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for customerResponsibilityImplementation to set. + * @return This builder for chaining. + */ + public Builder setCustomerResponsibilityImplementationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerResponsibilityImplementation_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int complianceState_ = 0; + + /** + * + * + *
                                    +     * Output only. The compliance state of the control group.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + @java.lang.Override + public int getComplianceStateValue() { + return complianceState_; + } + + /** + * + * + *
                                    +     * Output only. The compliance state of the control group.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for complianceState to set. + * @return This builder for chaining. + */ + public Builder setComplianceStateValue(int value) { + complianceState_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The compliance state of the control group.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState() { + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState result = + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.forNumber(complianceState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Output only. The compliance state of the control group.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The complianceState to set. + * @return This builder for chaining. + */ + public Builder setComplianceState( + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + complianceState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The compliance state of the control group.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearComplianceState() { + bitField0_ = (bitField0_ & ~0x00000100); + complianceState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object controlId_ = ""; + + /** + * + * + *
                                    +     * Output only. The ID of the regulatory control.
                                    +     * 
                                    + * + * string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The controlId. + */ + public java.lang.String getControlId() { + java.lang.Object ref = controlId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + controlId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the regulatory control.
                                    +     * 
                                    + * + * string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for controlId. + */ + public com.google.protobuf.ByteString getControlIdBytes() { + java.lang.Object ref = controlId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + controlId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the regulatory control.
                                    +     * 
                                    + * + * string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The controlId to set. + * @return This builder for chaining. + */ + public Builder setControlId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + controlId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the regulatory control.
                                    +     * 
                                    + * + * string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearControlId() { + controlId_ = getDefaultInstance().getControlId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the regulatory control.
                                    +     * 
                                    + * + * string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for controlId to set. + * @return This builder for chaining. + */ + public Builder setControlIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + controlId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.ControlFamily controlFamily_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder> + controlFamilyBuilder_; + + /** + * + * + *
                                    +     * Output only. The control family.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlFamily field is set. + */ + public boolean hasControlFamily() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
                                    +     * Output only. The control family.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlFamily. + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamily getControlFamily() { + if (controlFamilyBuilder_ == null) { + return controlFamily_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance() + : controlFamily_; + } else { + return controlFamilyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Output only. The control family.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setControlFamily( + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily value) { + if (controlFamilyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + controlFamily_ = value; + } else { + controlFamilyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The control family.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setControlFamily( + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder builderForValue) { + if (controlFamilyBuilder_ == null) { + controlFamily_ = builderForValue.build(); + } else { + controlFamilyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The control family.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeControlFamily( + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily value) { + if (controlFamilyBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && controlFamily_ != null + && controlFamily_ + != com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance()) { + getControlFamilyBuilder().mergeFrom(value); + } else { + controlFamily_ = value; + } + } else { + controlFamilyBuilder_.mergeFrom(value); + } + if (controlFamily_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The control family.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearControlFamily() { + bitField0_ = (bitField0_ & ~0x00000400); + controlFamily_ = null; + if (controlFamilyBuilder_ != null) { + controlFamilyBuilder_.dispose(); + controlFamilyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The control family.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder + getControlFamilyBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getControlFamilyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The control family.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder + getControlFamilyOrBuilder() { + if (controlFamilyBuilder_ != null) { + return controlFamilyBuilder_.getMessageOrBuilder(); + } else { + return controlFamily_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance() + : controlFamily_; + } + } + + /** + * + * + *
                                    +     * Output only. The control family.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder> + getControlFamilyFieldBuilder() { + if (controlFamilyBuilder_ == null) { + controlFamilyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder>( + getControlFamily(), getParentForChildren(), isClean()); + controlFamily_ = null; + } + return controlFamilyBuilder_; + } + + private java.util.List + cloudControlDetails_ = java.util.Collections.emptyList(); + + private void ensureCloudControlDetailsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + cloudControlDetails_ = + new java.util.ArrayList< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails>( + cloudControlDetails_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + cloudControlDetailsBuilder_; + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCloudControlDetailsList() { + if (cloudControlDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cloudControlDetails_); + } else { + return cloudControlDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCloudControlDetailsCount() { + if (cloudControlDetailsBuilder_ == null) { + return cloudControlDetails_.size(); + } else { + return cloudControlDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + getCloudControlDetails(int index) { + if (cloudControlDetailsBuilder_ == null) { + return cloudControlDetails_.get(index); + } else { + return cloudControlDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloudControlDetails( + int index, com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails value) { + if (cloudControlDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.set(index, value); + onChanged(); + } else { + cloudControlDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloudControlDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + builderForValue) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + cloudControlDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCloudControlDetails( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails value) { + if (cloudControlDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(value); + onChanged(); + } else { + cloudControlDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCloudControlDetails( + int index, com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails value) { + if (cloudControlDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(index, value); + onChanged(); + } else { + cloudControlDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCloudControlDetails( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + builderForValue) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(builderForValue.build()); + onChanged(); + } else { + cloudControlDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCloudControlDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + builderForValue) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + cloudControlDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCloudControlDetails( + java.lang.Iterable< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails> + values) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudControlDetails_); + onChanged(); + } else { + cloudControlDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCloudControlDetails() { + if (cloudControlDetailsBuilder_ == null) { + cloudControlDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + cloudControlDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCloudControlDetails(int index) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.remove(index); + onChanged(); + } else { + cloudControlDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + getCloudControlDetailsBuilder(int index) { + return getCloudControlDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder + getCloudControlDetailsOrBuilder(int index) { + if (cloudControlDetailsBuilder_ == null) { + return cloudControlDetails_.get(index); + } else { + return cloudControlDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + getCloudControlDetailsOrBuilderList() { + if (cloudControlDetailsBuilder_ != null) { + return cloudControlDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cloudControlDetails_); + } + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + addCloudControlDetailsBuilder() { + return getCloudControlDetailsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + addCloudControlDetailsBuilder(int index) { + return getCloudControlDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Output only. The details for the cloud controls within this group.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder> + getCloudControlDetailsBuilderList() { + return getCloudControlDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + getCloudControlDetailsFieldBuilder() { + if (cloudControlDetailsBuilder_ == null) { + cloudControlDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder>( + cloudControlDetails_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + cloudControlDetails_ = null; + } + return cloudControlDetailsBuilder_; + } + + private com.google.cloud.cloudsecuritycompliance.v1.ReportSummary reportSummary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder> + reportSummaryBuilder_; + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportSummary field is set. + */ + public boolean hasReportSummary() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportSummary. + */ + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getReportSummary() { + if (reportSummaryBuilder_ == null) { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } else { + return reportSummaryBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReportSummary( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary value) { + if (reportSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportSummary_ = value; + } else { + reportSummaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReportSummary( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder builderForValue) { + if (reportSummaryBuilder_ == null) { + reportSummary_ = builderForValue.build(); + } else { + reportSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeReportSummary( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary value) { + if (reportSummaryBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && reportSummary_ != null + && reportSummary_ + != com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance()) { + getReportSummaryBuilder().mergeFrom(value); + } else { + reportSummary_ = value; + } + } else { + reportSummaryBuilder_.mergeFrom(value); + } + if (reportSummary_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearReportSummary() { + bitField0_ = (bitField0_ & ~0x00001000); + reportSummary_ = null; + if (reportSummaryBuilder_ != null) { + reportSummaryBuilder_.dispose(); + reportSummaryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder + getReportSummaryBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getReportSummaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder + getReportSummaryOrBuilder() { + if (reportSummaryBuilder_ != null) { + return reportSummaryBuilder_.getMessageOrBuilder(); + } else { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder> + getReportSummaryFieldBuilder() { + if (reportSummaryBuilder_ == null) { + reportSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder>( + getReportSummary(), getParentForChildren(), isClean()); + reportSummary_ = null; + } + return reportSummaryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails) + private static final com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudControlGroupAuditDetails 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.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlGroupAuditDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlGroupAuditDetailsOrBuilder.java new file mode 100644 index 000000000000..116182bf873b --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlGroupAuditDetailsOrBuilder.java @@ -0,0 +1,462 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface CloudControlGroupAuditDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Output only. The ID of the cloud control group.
                                    +   * 
                                    + * + * string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudControlGroupId. + */ + java.lang.String getCloudControlGroupId(); + + /** + * + * + *
                                    +   * Output only. The ID of the cloud control group.
                                    +   * 
                                    + * + * string cloud_control_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudControlGroupId. + */ + com.google.protobuf.ByteString getCloudControlGroupIdBytes(); + + /** + * + * + *
                                    +   * Output only. The display name of the cloud control group.
                                    +   * 
                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                    +   * Output only. The display name of the cloud control group.
                                    +   * 
                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                    +   * Output only. The description of the cloud control group.
                                    +   * 
                                    + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                    +   * Output only. The description of the cloud control group.
                                    +   * 
                                    + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                    +   * Output only. The responsibility type.
                                    +   * 
                                    + * + * string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The responsibilityType. + */ + java.lang.String getResponsibilityType(); + + /** + * + * + *
                                    +   * Output only. The responsibility type.
                                    +   * 
                                    + * + * string responsibility_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for responsibilityType. + */ + com.google.protobuf.ByteString getResponsibilityTypeBytes(); + + /** + * + * + *
                                    +   * Output only. The description of Google's responsibility.
                                    +   * 
                                    + * + * + * string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityDescription. + */ + java.lang.String getGoogleResponsibilityDescription(); + + /** + * + * + *
                                    +   * Output only. The description of Google's responsibility.
                                    +   * 
                                    + * + * + * string google_responsibility_description = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityDescription. + */ + com.google.protobuf.ByteString getGoogleResponsibilityDescriptionBytes(); + + /** + * + * + *
                                    +   * Output only. The implementation of Google's responsibility.
                                    +   * 
                                    + * + * + * string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityImplementation. + */ + java.lang.String getGoogleResponsibilityImplementation(); + + /** + * + * + *
                                    +   * Output only. The implementation of Google's responsibility.
                                    +   * 
                                    + * + * + * string google_responsibility_implementation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityImplementation. + */ + com.google.protobuf.ByteString getGoogleResponsibilityImplementationBytes(); + + /** + * + * + *
                                    +   * Output only. The description of your responsibility.
                                    +   * 
                                    + * + * + * string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityDescription. + */ + java.lang.String getCustomerResponsibilityDescription(); + + /** + * + * + *
                                    +   * Output only. The description of your responsibility.
                                    +   * 
                                    + * + * + * string customer_responsibility_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityDescription. + */ + com.google.protobuf.ByteString getCustomerResponsibilityDescriptionBytes(); + + /** + * + * + *
                                    +   * Output only. The implementation of your responsibility.
                                    +   * 
                                    + * + * + * string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityImplementation. + */ + java.lang.String getCustomerResponsibilityImplementation(); + + /** + * + * + *
                                    +   * Output only. The implementation of your responsibility.
                                    +   * 
                                    + * + * + * string customer_responsibility_implementation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityImplementation. + */ + com.google.protobuf.ByteString getCustomerResponsibilityImplementationBytes(); + + /** + * + * + *
                                    +   * Output only. The compliance state of the control group.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + int getComplianceStateValue(); + + /** + * + * + *
                                    +   * Output only. The compliance state of the control group.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState(); + + /** + * + * + *
                                    +   * Output only. The ID of the regulatory control.
                                    +   * 
                                    + * + * string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The controlId. + */ + java.lang.String getControlId(); + + /** + * + * + *
                                    +   * Output only. The ID of the regulatory control.
                                    +   * 
                                    + * + * string control_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for controlId. + */ + com.google.protobuf.ByteString getControlIdBytes(); + + /** + * + * + *
                                    +   * Output only. The control family.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlFamily field is set. + */ + boolean hasControlFamily(); + + /** + * + * + *
                                    +   * Output only. The control family.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlFamily. + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily getControlFamily(); + + /** + * + * + *
                                    +   * Output only. The control family.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder getControlFamilyOrBuilder(); + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCloudControlDetailsList(); + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails getCloudControlDetails( + int index); + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCloudControlDetailsCount(); + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + getCloudControlDetailsOrBuilderList(); + + /** + * + * + *
                                    +   * Output only. The details for the cloud controls within this group.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder + getCloudControlDetailsOrBuilder(int index); + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportSummary field is set. + */ + boolean hasReportSummary(); + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportSummary. + */ + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getReportSummary(); + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder getReportSummaryOrBuilder(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlMetadata.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlMetadata.java index 9950f73ae416..cfe120eba89b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlMetadata.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlMetadata.java @@ -23,8 +23,8 @@ * * *
                                    - * CloudControlMetadata contains the enforcement mode and parameters of a Cloud
                                    - * Control Deployment.
                                    + * The enforcement mode and parameters of a cloud
                                    + * control deployment.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata} @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. Cloud control name and parameters.
                                    +   * Required. The cloud control name and parameters.
                                        * 
                                    * * @@ -91,7 +91,7 @@ public boolean hasCloudControlDetails() { * * *
                                    -   * Required. Cloud control name and parameters.
                                    +   * Required. The cloud control name and parameters.
                                        * 
                                    * * @@ -111,7 +111,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetails getCloudC * * *
                                    -   * Required. Cloud control name and parameters.
                                    +   * Required. The cloud control name and parameters.
                                        * 
                                    * * @@ -133,7 +133,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetails getCloudC * * *
                                    -   * Required. Enforcement mode of the cloud control
                                    +   * Required. The enforcement mode of the cloud control.
                                        * 
                                    * * @@ -151,7 +151,7 @@ public int getEnforcementModeValue() { * * *
                                    -   * Required. Enforcement mode of the cloud control
                                    +   * Required. The enforcement mode of the cloud control.
                                        * 
                                    * * @@ -352,8 +352,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * CloudControlMetadata contains the enforcement mode and parameters of a Cloud
                                    -   * Control Deployment.
                                    +   * The enforcement mode and parameters of a cloud
                                    +   * control deployment.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata} @@ -578,7 +578,7 @@ public Builder mergeFrom( * * *
                                    -     * Required. Cloud control name and parameters.
                                    +     * Required. The cloud control name and parameters.
                                          * 
                                    * * @@ -595,7 +595,7 @@ public boolean hasCloudControlDetails() { * * *
                                    -     * Required. Cloud control name and parameters.
                                    +     * Required. The cloud control name and parameters.
                                          * 
                                    * * @@ -619,7 +619,7 @@ public boolean hasCloudControlDetails() { * * *
                                    -     * Required. Cloud control name and parameters.
                                    +     * Required. The cloud control name and parameters.
                                          * 
                                    * * @@ -645,7 +645,7 @@ public Builder setCloudControlDetails( * * *
                                    -     * Required. Cloud control name and parameters.
                                    +     * Required. The cloud control name and parameters.
                                          * 
                                    * * @@ -668,7 +668,7 @@ public Builder setCloudControlDetails( * * *
                                    -     * Required. Cloud control name and parameters.
                                    +     * Required. The cloud control name and parameters.
                                          * 
                                    * * @@ -701,7 +701,7 @@ public Builder mergeCloudControlDetails( * * *
                                    -     * Required. Cloud control name and parameters.
                                    +     * Required. The cloud control name and parameters.
                                          * 
                                    * * @@ -723,7 +723,7 @@ public Builder clearCloudControlDetails() { * * *
                                    -     * Required. Cloud control name and parameters.
                                    +     * Required. The cloud control name and parameters.
                                          * 
                                    * * @@ -741,7 +741,7 @@ public Builder clearCloudControlDetails() { * * *
                                    -     * Required. Cloud control name and parameters.
                                    +     * Required. The cloud control name and parameters.
                                          * 
                                    * * @@ -763,7 +763,7 @@ public Builder clearCloudControlDetails() { * * *
                                    -     * Required. Cloud control name and parameters.
                                    +     * Required. The cloud control name and parameters.
                                          * 
                                    * * @@ -793,7 +793,7 @@ public Builder clearCloudControlDetails() { * * *
                                    -     * Required. Enforcement mode of the cloud control
                                    +     * Required. The enforcement mode of the cloud control.
                                          * 
                                    * * @@ -811,7 +811,7 @@ public int getEnforcementModeValue() { * * *
                                    -     * Required. Enforcement mode of the cloud control
                                    +     * Required. The enforcement mode of the cloud control.
                                          * 
                                    * * @@ -832,7 +832,7 @@ public Builder setEnforcementModeValue(int value) { * * *
                                    -     * Required. Enforcement mode of the cloud control
                                    +     * Required. The enforcement mode of the cloud control.
                                          * 
                                    * * @@ -854,7 +854,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getEnforcemen * * *
                                    -     * Required. Enforcement mode of the cloud control
                                    +     * Required. The enforcement mode of the cloud control.
                                          * 
                                    * * @@ -879,7 +879,7 @@ public Builder setEnforcementMode( * * *
                                    -     * Required. Enforcement mode of the cloud control
                                    +     * Required. The enforcement mode of the cloud control.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlMetadataOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlMetadataOrBuilder.java index 95c3c54c64ec..9bb0f42398fa 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlMetadataOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlMetadataOrBuilder.java @@ -28,7 +28,7 @@ public interface CloudControlMetadataOrBuilder * * *
                                    -   * Required. Cloud control name and parameters.
                                    +   * Required. The cloud control name and parameters.
                                        * 
                                    * * @@ -43,7 +43,7 @@ public interface CloudControlMetadataOrBuilder * * *
                                    -   * Required. Cloud control name and parameters.
                                    +   * Required. The cloud control name and parameters.
                                        * 
                                    * * @@ -58,7 +58,7 @@ public interface CloudControlMetadataOrBuilder * * *
                                    -   * Required. Cloud control name and parameters.
                                    +   * Required. The cloud control name and parameters.
                                        * 
                                    * * @@ -72,7 +72,7 @@ public interface CloudControlMetadataOrBuilder * * *
                                    -   * Required. Enforcement mode of the cloud control
                                    +   * Required. The enforcement mode of the cloud control.
                                        * 
                                    * * @@ -87,7 +87,7 @@ public interface CloudControlMetadataOrBuilder * * *
                                    -   * Required. Enforcement mode of the cloud control
                                    +   * Required. The enforcement mode of the cloud control.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlOrBuilder.java index 0c5e6a908de5..088d988dac26 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlOrBuilder.java @@ -28,9 +28,9 @@ public interface CloudControlOrBuilder * * *
                                    -   * Required. Identifier. The resource name of the cloud control.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}
                                    +   * Required. Identifier. The name of the cloud control, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -45,9 +45,9 @@ public interface CloudControlOrBuilder * * *
                                    -   * Required. Identifier. The resource name of the cloud control.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}
                                    +   * Required. Identifier. The name of the cloud control, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -62,8 +62,8 @@ public interface CloudControlOrBuilder * * *
                                    -   * Output only. Major revision of the cloud control incremented in ascending
                                    -   * order.
                                    +   * Output only. The major version of the cloud control, which is incremented
                                    +   * in ascending order.
                                        * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -104,7 +104,7 @@ public interface CloudControlOrBuilder * * *
                                    -   * Optional. The display name of the cloud control. The maximum length is 200
                                    +   * Optional. The friendly name of the cloud control. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -118,7 +118,7 @@ public interface CloudControlOrBuilder * * *
                                    -   * Optional. The display name of the cloud control. The maximum length is 200
                                    +   * Optional. The friendly name of the cloud control. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -132,8 +132,7 @@ public interface CloudControlOrBuilder * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -149,8 +148,7 @@ public interface CloudControlOrBuilder * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -165,8 +163,7 @@ public interface CloudControlOrBuilder * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -183,8 +180,7 @@ com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getSupportedEnforcem * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -199,8 +195,7 @@ com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getSupportedEnforcem * * *
                                    -   * Output only. The supported enforcement mode of the cloud control. Default
                                    -   * is DETECTIVE.
                                    +   * Output only. The supported enforcement modes for the cloud control.
                                        * 
                                    * * @@ -216,7 +211,7 @@ com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getSupportedEnforcem * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -229,7 +224,7 @@ com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getSupportedEnforcem * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -242,7 +237,7 @@ com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getSupportedEnforcem * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -255,7 +250,7 @@ com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getSupportedEnforcem * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -269,7 +264,7 @@ com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getSupportedEnforcem * * *
                                    -   * Optional. The parameter spec of the cloud control.
                                    +   * Optional. The parameter specifications for the cloud control.
                                        * 
                                    * * @@ -283,8 +278,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -297,8 +292,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -311,8 +306,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -325,8 +320,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -340,8 +335,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The Policy to be enforced to prevent/detect resource
                                    -   * non-compliance.
                                    +   * Optional. The rules that you can enforce to meet your security or
                                    +   * compliance intent.
                                        * 
                                    * * @@ -354,7 +349,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The severity of findings generated by the cloud control.
                                    +   * Optional. The severity of the findings that are generated by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -369,7 +365,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The severity of findings generated by the cloud control.
                                    +   * Optional. The severity of the findings that are generated by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -384,8 +381,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The finding_category of the cloud control. The maximum length is
                                    -   * 255 characters.
                                    +   * Optional. The finding category for the cloud control findings. The maximum
                                    +   * length is 255 characters.
                                        * 
                                    * * string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -398,8 +395,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The finding_category of the cloud control. The maximum length is
                                    -   * 255 characters.
                                    +   * Optional. The finding category for the cloud control findings. The maximum
                                    +   * length is 255 characters.
                                        * 
                                    * * string finding_category = 12 [(.google.api.field_behavior) = OPTIONAL]; @@ -412,7 +409,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -428,7 +425,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -443,7 +440,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -459,7 +456,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -474,7 +471,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. cloud providers supported
                                    +   * Optional. The supported cloud providers.
                                        * 
                                    * * @@ -490,7 +487,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Output only. The Frameworks that include this CloudControl
                                    +   * Output only. The frameworks that include this cloud control.
                                        * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -504,7 +501,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Output only. The Frameworks that include this CloudControl
                                    +   * Output only. The frameworks that include this cloud control.
                                        * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -518,7 +515,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Output only. The Frameworks that include this CloudControl
                                    +   * Output only. The frameworks that include this cloud control.
                                        * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -533,7 +530,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Output only. The Frameworks that include this CloudControl
                                    +   * Output only. The frameworks that include this cloud control.
                                        * 
                                    * * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -548,8 +545,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The remediation steps for the findings generated by the cloud
                                    -   * control. The maximum length is 400 characters.
                                    +   * Optional. The remediation steps for the cloud control findings. The
                                    +   * maximum length is 400 characters.
                                        * 
                                    * * string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; @@ -562,8 +559,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The remediation steps for the findings generated by the cloud
                                    -   * control. The maximum length is 400 characters.
                                    +   * Optional. The remediation steps for the cloud control findings. The
                                    +   * maximum length is 400 characters.
                                        * 
                                    * * string remediation_steps = 15 [(.google.api.field_behavior) = OPTIONAL]; @@ -576,7 +573,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -592,7 +589,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -607,7 +604,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -623,7 +620,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -638,7 +635,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. The categories of the cloud control.
                                    +   * Optional. The categories for the cloud control.
                                        * 
                                    * * @@ -654,9 +651,9 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Output only. The last updated time of the cloud control.
                                    -   * The create_time is used because a new CC is created whenever we update an
                                    -   * existing CC.
                                    +   * Output only. The time that the cloud control was last updated.
                                    +   * `create_time` is used because a new cloud control is created
                                    +   * whenever an existing cloud control is updated.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -670,9 +667,9 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Output only. The last updated time of the cloud control.
                                    -   * The create_time is used because a new CC is created whenever we update an
                                    -   * existing CC.
                                    +   * Output only. The time that the cloud control was last updated.
                                    +   * `create_time` is used because a new cloud control is created
                                    +   * whenever an existing cloud control is updated.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -686,9 +683,9 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Output only. The last updated time of the cloud control.
                                    -   * The create_time is used because a new CC is created whenever we update an
                                    -   * existing CC.
                                    +   * Output only. The time that the cloud control was last updated.
                                    +   * `create_time` is used because a new cloud control is created
                                    +   * whenever an existing cloud control is updated.
                                        * 
                                    * * .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -700,7 +697,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -716,7 +714,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -731,7 +730,8 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getParameterS * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -748,7 +748,8 @@ com.google.cloud.cloudsecuritycompliance.v1.TargetResourceType getSupportedTarge * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * @@ -763,7 +764,8 @@ com.google.cloud.cloudsecuritycompliance.v1.TargetResourceType getSupportedTarge * * *
                                    -   * Optional. target resource types supported by the CloudControl.
                                    +   * Optional. The target resource types that are supported by the cloud
                                    +   * control.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlReport.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlReport.java new file mode 100644 index 000000000000..fe6cec51e0c5 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlReport.java @@ -0,0 +1,4522 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The cloud control report.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlReport} + */ +public final class CloudControlReport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.CloudControlReport) + CloudControlReportOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudControlReport.newBuilder() to construct. + private CloudControlReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudControlReport() { + cloudControl_ = ""; + displayName_ = ""; + description_ = ""; + categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + similarControls_ = java.util.Collections.emptyList(); + cloudControlType_ = 0; + findingCategory_ = ""; + rules_ = java.util.Collections.emptyList(); + findingSeverity_ = 0; + enforcementMode_ = 0; + cloudControlDeployment_ = ""; + frameworkMajorRevisionIds_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudControlReport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.class, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder.class); + } + + private int assessmentDetailsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object assessmentDetails_; + + public enum AssessmentDetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MANUAL_CLOUD_CONTROL_ASSESSMENT_DETAILS(13), + CLOUD_CONTROL_ASSESSMENT_DETAILS(14), + ASSESSMENTDETAILS_NOT_SET(0); + private final int value; + + private AssessmentDetailsCase(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 AssessmentDetailsCase valueOf(int value) { + return forNumber(value); + } + + public static AssessmentDetailsCase forNumber(int value) { + switch (value) { + case 13: + return MANUAL_CLOUD_CONTROL_ASSESSMENT_DETAILS; + case 14: + return CLOUD_CONTROL_ASSESSMENT_DETAILS; + case 0: + return ASSESSMENTDETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AssessmentDetailsCase getAssessmentDetailsCase() { + return AssessmentDetailsCase.forNumber(assessmentDetailsCase_); + } + + public static final int MANUAL_CLOUD_CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER = 13; + + /** + * + * + *
                                    +   * The details of a manual cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + * + * @return Whether the manualCloudControlAssessmentDetails field is set. + */ + @java.lang.Override + public boolean hasManualCloudControlAssessmentDetails() { + return assessmentDetailsCase_ == 13; + } + + /** + * + * + *
                                    +   * The details of a manual cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + * + * @return The manualCloudControlAssessmentDetails. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + getManualCloudControlAssessmentDetails() { + if (assessmentDetailsCase_ == 13) { + return (com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + assessmentDetails_; + } + return com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .getDefaultInstance(); + } + + /** + * + * + *
                                    +   * The details of a manual cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsOrBuilder + getManualCloudControlAssessmentDetailsOrBuilder() { + if (assessmentDetailsCase_ == 13) { + return (com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + assessmentDetails_; + } + return com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .getDefaultInstance(); + } + + public static final int CLOUD_CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER = 14; + + /** + * + * + *
                                    +   * The details of a cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + * + * @return Whether the cloudControlAssessmentDetails field is set. + */ + @java.lang.Override + public boolean hasCloudControlAssessmentDetails() { + return assessmentDetailsCase_ == 14; + } + + /** + * + * + *
                                    +   * The details of a cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + * + * @return The cloudControlAssessmentDetails. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + getCloudControlAssessmentDetails() { + if (assessmentDetailsCase_ == 14) { + return (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + assessmentDetails_; + } + return com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + .getDefaultInstance(); + } + + /** + * + * + *
                                    +   * The details of a cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsOrBuilder + getCloudControlAssessmentDetailsOrBuilder() { + if (assessmentDetailsCase_ == 14) { + return (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + assessmentDetails_; + } + return com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + .getDefaultInstance(); + } + + public static final int CLOUD_CONTROL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudControl_ = ""; + + /** + * + * + *
                                    +   * The name of the cloud control.
                                    +   * 
                                    + * + * string cloud_control = 1; + * + * @return The cloudControl. + */ + @java.lang.Override + public java.lang.String getCloudControl() { + java.lang.Object ref = cloudControl_; + 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(); + cloudControl_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The name of the cloud control.
                                    +   * 
                                    + * + * string cloud_control = 1; + * + * @return The bytes for cloudControl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudControlBytes() { + java.lang.Object ref = cloudControl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                    +   * The display name of the cloud control.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The display name of the cloud control.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                    +   * The description of the cloud control.
                                    +   * 
                                    + * + * string description = 3; + * + * @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; + } + } + + /** + * + * + *
                                    +   * The description of the cloud control.
                                    +   * 
                                    + * + * string description = 3; + * + * @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 CATEGORIES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                    +   * The list of categories for the cloud control.
                                    +   * 
                                    + * + * repeated string categories = 6; + * + * @return A list containing the categories. + */ + public com.google.protobuf.ProtocolStringList getCategoriesList() { + return categories_; + } + + /** + * + * + *
                                    +   * The list of categories for the cloud control.
                                    +   * 
                                    + * + * repeated string categories = 6; + * + * @return The count of categories. + */ + public int getCategoriesCount() { + return categories_.size(); + } + + /** + * + * + *
                                    +   * The list of categories for the cloud control.
                                    +   * 
                                    + * + * repeated string categories = 6; + * + * @param index The index of the element to return. + * @return The categories at the given index. + */ + public java.lang.String getCategories(int index) { + return categories_.get(index); + } + + /** + * + * + *
                                    +   * The list of categories for the cloud control.
                                    +   * 
                                    + * + * repeated string categories = 6; + * + * @param index The index of the value to return. + * @return The bytes of the categories at the given index. + */ + public com.google.protobuf.ByteString getCategoriesBytes(int index) { + return categories_.getByteString(index); + } + + public static final int SIMILAR_CONTROLS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + similarControls_; + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + @java.lang.Override + public java.util.List + getSimilarControlsList() { + return similarControls_; + } + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder> + getSimilarControlsOrBuilderList() { + return similarControls_; + } + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + @java.lang.Override + public int getSimilarControlsCount() { + return similarControls_.size(); + } + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls getSimilarControls(int index) { + return similarControls_.get(index); + } + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder + getSimilarControlsOrBuilder(int index) { + return similarControls_.get(index); + } + + public static final int CLOUD_CONTROL_TYPE_FIELD_NUMBER = 10; + private int cloudControlType_ = 0; + + /** + * + * + *
                                    +   * The type of the cloud control.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * + * + * @return The enum numeric value on the wire for cloudControlType. + */ + @java.lang.Override + public int getCloudControlTypeValue() { + return cloudControlType_; + } + + /** + * + * + *
                                    +   * The type of the cloud control.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * + * + * @return The cloudControlType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type getCloudControlType() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type result = + com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type.forNumber(cloudControlType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type.UNRECOGNIZED + : result; + } + + public static final int FINDING_CATEGORY_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object findingCategory_ = ""; + + /** + * + * + *
                                    +   * The category of the finding.
                                    +   * 
                                    + * + * string finding_category = 11; + * + * @return The findingCategory. + */ + @java.lang.Override + public java.lang.String getFindingCategory() { + java.lang.Object ref = findingCategory_; + 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(); + findingCategory_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The category of the finding.
                                    +   * 
                                    + * + * string finding_category = 11; + * + * @return The bytes for findingCategory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFindingCategoryBytes() { + java.lang.Object ref = findingCategory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULES_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List rules_; + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Rule getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.RuleOrBuilder getRulesOrBuilder(int index) { + return rules_.get(index); + } + + public static final int FINDING_SEVERITY_FIELD_NUMBER = 15; + private int findingSeverity_ = 0; + + /** + * + * + *
                                    +   * The severity of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * + * @return The enum numeric value on the wire for findingSeverity. + */ + @java.lang.Override + public int getFindingSeverityValue() { + return findingSeverity_; + } + + /** + * + * + *
                                    +   * The severity of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * + * @return The findingSeverity. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Severity getFindingSeverity() { + com.google.cloud.cloudsecuritycompliance.v1.Severity result = + com.google.cloud.cloudsecuritycompliance.v1.Severity.forNumber(findingSeverity_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Severity.UNRECOGNIZED + : result; + } + + public static final int ENFORCEMENT_MODE_FIELD_NUMBER = 16; + private int enforcementMode_ = 0; + + /** + * + * + *
                                    +   * The enforcement mode of the cloud control.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * + * @return The enum numeric value on the wire for enforcementMode. + */ + @java.lang.Override + public int getEnforcementModeValue() { + return enforcementMode_; + } + + /** + * + * + *
                                    +   * The enforcement mode of the cloud control.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * + * @return The enforcementMode. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getEnforcementMode() { + com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode result = + com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode.forNumber(enforcementMode_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode.UNRECOGNIZED + : result; + } + + public static final int CLOUD_CONTROL_DEPLOYMENT_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudControlDeployment_ = ""; + + /** + * + * + *
                                    +   * The name of the cloud control deployment.
                                    +   * 
                                    + * + * string cloud_control_deployment = 17; + * + * @return The cloudControlDeployment. + */ + @java.lang.Override + public java.lang.String getCloudControlDeployment() { + java.lang.Object ref = cloudControlDeployment_; + 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(); + cloudControlDeployment_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The name of the cloud control deployment.
                                    +   * 
                                    + * + * string cloud_control_deployment = 17; + * + * @return The bytes for cloudControlDeployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudControlDeploymentBytes() { + java.lang.Object ref = cloudControlDeployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControlDeployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAJOR_REVISION_ID_FIELD_NUMBER = 18; + private long majorRevisionId_ = 0L; + + /** + * + * + *
                                    +   * The major revision ID of the cloud control.
                                    +   * 
                                    + * + * int64 major_revision_id = 18; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + + public static final int MINOR_REVISION_ID_FIELD_NUMBER = 19; + private long minorRevisionId_ = 0L; + + /** + * + * + *
                                    +   * The minor revision ID of the cloud control.
                                    +   * 
                                    + * + * int64 minor_revision_id = 19; + * + * @return The minorRevisionId. + */ + @java.lang.Override + public long getMinorRevisionId() { + return minorRevisionId_; + } + + public static final int FRAMEWORK_MAJOR_REVISION_IDS_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList frameworkMajorRevisionIds_ = emptyLongList(); + + /** + * + * + *
                                    +   * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +   * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @return A list containing the frameworkMajorRevisionIds. + */ + @java.lang.Override + public java.util.List getFrameworkMajorRevisionIdsList() { + return frameworkMajorRevisionIds_; + } + + /** + * + * + *
                                    +   * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +   * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @return The count of frameworkMajorRevisionIds. + */ + public int getFrameworkMajorRevisionIdsCount() { + return frameworkMajorRevisionIds_.size(); + } + + /** + * + * + *
                                    +   * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +   * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @param index The index of the element to return. + * @return The frameworkMajorRevisionIds at the given index. + */ + public long getFrameworkMajorRevisionIds(int index) { + return frameworkMajorRevisionIds_.getLong(index); + } + + private int frameworkMajorRevisionIdsMemoizedSerializedSize = -1; + + 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.GeneratedMessageV3.isStringEmpty(cloudControl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cloudControl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + for (int i = 0; i < categories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, categories_.getRaw(i)); + } + for (int i = 0; i < similarControls_.size(); i++) { + output.writeMessage(9, similarControls_.get(i)); + } + if (cloudControlType_ + != com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, cloudControlType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingCategory_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, findingCategory_); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(12, rules_.get(i)); + } + if (assessmentDetailsCase_ == 13) { + output.writeMessage( + 13, + (com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + assessmentDetails_); + } + if (assessmentDetailsCase_ == 14) { + output.writeMessage( + 14, + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + assessmentDetails_); + } + if (findingSeverity_ + != com.google.cloud.cloudsecuritycompliance.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + output.writeEnum(15, findingSeverity_); + } + if (enforcementMode_ + != com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, enforcementMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControlDeployment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, cloudControlDeployment_); + } + if (majorRevisionId_ != 0L) { + output.writeInt64(18, majorRevisionId_); + } + if (minorRevisionId_ != 0L) { + output.writeInt64(19, minorRevisionId_); + } + if (getFrameworkMajorRevisionIdsList().size() > 0) { + output.writeUInt32NoTag(162); + output.writeUInt32NoTag(frameworkMajorRevisionIdsMemoizedSerializedSize); + } + for (int i = 0; i < frameworkMajorRevisionIds_.size(); i++) { + output.writeInt64NoTag(frameworkMajorRevisionIds_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cloudControl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + { + int dataSize = 0; + for (int i = 0; i < categories_.size(); i++) { + dataSize += computeStringSizeNoTag(categories_.getRaw(i)); + } + size += dataSize; + size += 1 * getCategoriesList().size(); + } + for (int i = 0; i < similarControls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, similarControls_.get(i)); + } + if (cloudControlType_ + != com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, cloudControlType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingCategory_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, findingCategory_); + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, rules_.get(i)); + } + if (assessmentDetailsCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, + (com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + assessmentDetails_); + } + if (assessmentDetailsCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + assessmentDetails_); + } + if (findingSeverity_ + != com.google.cloud.cloudsecuritycompliance.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, findingSeverity_); + } + if (enforcementMode_ + != com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, enforcementMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudControlDeployment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, cloudControlDeployment_); + } + if (majorRevisionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(18, majorRevisionId_); + } + if (minorRevisionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(19, minorRevisionId_); + } + { + int dataSize = 0; + for (int i = 0; i < frameworkMajorRevisionIds_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag( + frameworkMajorRevisionIds_.getLong(i)); + } + size += dataSize; + if (!getFrameworkMajorRevisionIdsList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + frameworkMajorRevisionIdsMemoizedSerializedSize = dataSize; + } + 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.cloudsecuritycompliance.v1.CloudControlReport)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport other = + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport) obj; + + if (!getCloudControl().equals(other.getCloudControl())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getCategoriesList().equals(other.getCategoriesList())) return false; + if (!getSimilarControlsList().equals(other.getSimilarControlsList())) return false; + if (cloudControlType_ != other.cloudControlType_) return false; + if (!getFindingCategory().equals(other.getFindingCategory())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (findingSeverity_ != other.findingSeverity_) return false; + if (enforcementMode_ != other.enforcementMode_) return false; + if (!getCloudControlDeployment().equals(other.getCloudControlDeployment())) return false; + if (getMajorRevisionId() != other.getMajorRevisionId()) return false; + if (getMinorRevisionId() != other.getMinorRevisionId()) return false; + if (!getFrameworkMajorRevisionIdsList().equals(other.getFrameworkMajorRevisionIdsList())) + return false; + if (!getAssessmentDetailsCase().equals(other.getAssessmentDetailsCase())) return false; + switch (assessmentDetailsCase_) { + case 13: + if (!getManualCloudControlAssessmentDetails() + .equals(other.getManualCloudControlAssessmentDetails())) return false; + break; + case 14: + if (!getCloudControlAssessmentDetails().equals(other.getCloudControlAssessmentDetails())) + 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) + CLOUD_CONTROL_FIELD_NUMBER; + hash = (53 * hash) + getCloudControl().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getCategoriesCount() > 0) { + hash = (37 * hash) + CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getCategoriesList().hashCode(); + } + if (getSimilarControlsCount() > 0) { + hash = (37 * hash) + SIMILAR_CONTROLS_FIELD_NUMBER; + hash = (53 * hash) + getSimilarControlsList().hashCode(); + } + hash = (37 * hash) + CLOUD_CONTROL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + cloudControlType_; + hash = (37 * hash) + FINDING_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getFindingCategory().hashCode(); + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (37 * hash) + FINDING_SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + findingSeverity_; + hash = (37 * hash) + ENFORCEMENT_MODE_FIELD_NUMBER; + hash = (53 * hash) + enforcementMode_; + hash = (37 * hash) + CLOUD_CONTROL_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlDeployment().hashCode(); + hash = (37 * hash) + MAJOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMajorRevisionId()); + hash = (37 * hash) + MINOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinorRevisionId()); + if (getFrameworkMajorRevisionIdsCount() > 0) { + hash = (37 * hash) + FRAMEWORK_MAJOR_REVISION_IDS_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkMajorRevisionIdsList().hashCode(); + } + switch (assessmentDetailsCase_) { + case 13: + hash = (37 * hash) + MANUAL_CLOUD_CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getManualCloudControlAssessmentDetails().hashCode(); + break; + case 14: + hash = (37 * hash) + CLOUD_CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlAssessmentDetails().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport 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.cloudsecuritycompliance.v1.CloudControlReport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport 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.cloudsecuritycompliance.v1.CloudControlReport parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The cloud control report.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CloudControlReport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.CloudControlReport) + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.class, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (manualCloudControlAssessmentDetailsBuilder_ != null) { + manualCloudControlAssessmentDetailsBuilder_.clear(); + } + if (cloudControlAssessmentDetailsBuilder_ != null) { + cloudControlAssessmentDetailsBuilder_.clear(); + } + cloudControl_ = ""; + displayName_ = ""; + description_ = ""; + categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (similarControlsBuilder_ == null) { + similarControls_ = java.util.Collections.emptyList(); + } else { + similarControls_ = null; + similarControlsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + cloudControlType_ = 0; + findingCategory_ = ""; + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + findingSeverity_ = 0; + enforcementMode_ = 0; + cloudControlDeployment_ = ""; + majorRevisionId_ = 0L; + minorRevisionId_ = 0L; + frameworkMajorRevisionIds_ = emptyLongList(); + assessmentDetailsCase_ = 0; + assessmentDetails_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport build() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport result = + new com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport result) { + if (similarControlsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + similarControls_ = java.util.Collections.unmodifiableList(similarControls_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.similarControls_ = similarControls_; + } else { + result.similarControls_ = similarControlsBuilder_.build(); + } + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cloudControl_ = cloudControl_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + categories_.makeImmutable(); + result.categories_ = categories_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.cloudControlType_ = cloudControlType_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.findingCategory_ = findingCategory_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.findingSeverity_ = findingSeverity_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.enforcementMode_ = enforcementMode_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.cloudControlDeployment_ = cloudControlDeployment_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.majorRevisionId_ = majorRevisionId_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.minorRevisionId_ = minorRevisionId_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + frameworkMajorRevisionIds_.makeImmutable(); + result.frameworkMajorRevisionIds_ = frameworkMajorRevisionIds_; + } + } + + private void buildPartialOneofs( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport result) { + result.assessmentDetailsCase_ = assessmentDetailsCase_; + result.assessmentDetails_ = this.assessmentDetails_; + if (assessmentDetailsCase_ == 13 && manualCloudControlAssessmentDetailsBuilder_ != null) { + result.assessmentDetails_ = manualCloudControlAssessmentDetailsBuilder_.build(); + } + if (assessmentDetailsCase_ == 14 && cloudControlAssessmentDetailsBuilder_ != null) { + result.assessmentDetails_ = cloudControlAssessmentDetailsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.getDefaultInstance()) + return this; + if (!other.getCloudControl().isEmpty()) { + cloudControl_ = other.cloudControl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.categories_.isEmpty()) { + if (categories_.isEmpty()) { + categories_ = other.categories_; + bitField0_ |= 0x00000020; + } else { + ensureCategoriesIsMutable(); + categories_.addAll(other.categories_); + } + onChanged(); + } + if (similarControlsBuilder_ == null) { + if (!other.similarControls_.isEmpty()) { + if (similarControls_.isEmpty()) { + similarControls_ = other.similarControls_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSimilarControlsIsMutable(); + similarControls_.addAll(other.similarControls_); + } + onChanged(); + } + } else { + if (!other.similarControls_.isEmpty()) { + if (similarControlsBuilder_.isEmpty()) { + similarControlsBuilder_.dispose(); + similarControlsBuilder_ = null; + similarControls_ = other.similarControls_; + bitField0_ = (bitField0_ & ~0x00000040); + similarControlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSimilarControlsFieldBuilder() + : null; + } else { + similarControlsBuilder_.addAllMessages(other.similarControls_); + } + } + } + if (other.cloudControlType_ != 0) { + setCloudControlTypeValue(other.getCloudControlTypeValue()); + } + if (!other.getFindingCategory().isEmpty()) { + findingCategory_ = other.findingCategory_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000200); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + if (other.findingSeverity_ != 0) { + setFindingSeverityValue(other.getFindingSeverityValue()); + } + if (other.enforcementMode_ != 0) { + setEnforcementModeValue(other.getEnforcementModeValue()); + } + if (!other.getCloudControlDeployment().isEmpty()) { + cloudControlDeployment_ = other.cloudControlDeployment_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.getMajorRevisionId() != 0L) { + setMajorRevisionId(other.getMajorRevisionId()); + } + if (other.getMinorRevisionId() != 0L) { + setMinorRevisionId(other.getMinorRevisionId()); + } + if (!other.frameworkMajorRevisionIds_.isEmpty()) { + if (frameworkMajorRevisionIds_.isEmpty()) { + frameworkMajorRevisionIds_ = other.frameworkMajorRevisionIds_; + frameworkMajorRevisionIds_.makeImmutable(); + bitField0_ |= 0x00008000; + } else { + ensureFrameworkMajorRevisionIdsIsMutable(); + frameworkMajorRevisionIds_.addAll(other.frameworkMajorRevisionIds_); + } + onChanged(); + } + switch (other.getAssessmentDetailsCase()) { + case MANUAL_CLOUD_CONTROL_ASSESSMENT_DETAILS: + { + mergeManualCloudControlAssessmentDetails( + other.getManualCloudControlAssessmentDetails()); + break; + } + case CLOUD_CONTROL_ASSESSMENT_DETAILS: + { + mergeCloudControlAssessmentDetails(other.getCloudControlAssessmentDetails()); + break; + } + case ASSESSMENTDETAILS_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: + { + cloudControl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCategoriesIsMutable(); + categories_.add(s); + break; + } // case 50 + case 74: + { + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.parser(), + extensionRegistry); + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.add(m); + } else { + similarControlsBuilder_.addMessage(m); + } + break; + } // case 74 + case 80: + { + cloudControlType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 80 + case 90: + { + findingCategory_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 90 + case 98: + { + com.google.cloud.cloudsecuritycompliance.v1.Rule m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.Rule.parser(), + extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: + { + input.readMessage( + getManualCloudControlAssessmentDetailsFieldBuilder().getBuilder(), + extensionRegistry); + assessmentDetailsCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + getCloudControlAssessmentDetailsFieldBuilder().getBuilder(), extensionRegistry); + assessmentDetailsCase_ = 14; + break; + } // case 114 + case 120: + { + findingSeverity_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 120 + case 128: + { + enforcementMode_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 128 + case 138: + { + cloudControlDeployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 138 + case 144: + { + majorRevisionId_ = input.readInt64(); + bitField0_ |= 0x00002000; + break; + } // case 144 + case 152: + { + minorRevisionId_ = input.readInt64(); + bitField0_ |= 0x00004000; + break; + } // case 152 + case 160: + { + long v = input.readInt64(); + ensureFrameworkMajorRevisionIdsIsMutable(); + frameworkMajorRevisionIds_.addLong(v); + break; + } // case 160 + case 162: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureFrameworkMajorRevisionIdsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + frameworkMajorRevisionIds_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 162 + 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 assessmentDetailsCase_ = 0; + private java.lang.Object assessmentDetails_; + + public AssessmentDetailsCase getAssessmentDetailsCase() { + return AssessmentDetailsCase.forNumber(assessmentDetailsCase_); + } + + public Builder clearAssessmentDetails() { + assessmentDetailsCase_ = 0; + assessmentDetails_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1 + .ManualCloudControlAssessmentDetailsOrBuilder> + manualCloudControlAssessmentDetailsBuilder_; + + /** + * + * + *
                                    +     * The details of a manual cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + * + * @return Whether the manualCloudControlAssessmentDetails field is set. + */ + @java.lang.Override + public boolean hasManualCloudControlAssessmentDetails() { + return assessmentDetailsCase_ == 13; + } + + /** + * + * + *
                                    +     * The details of a manual cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + * + * @return The manualCloudControlAssessmentDetails. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + getManualCloudControlAssessmentDetails() { + if (manualCloudControlAssessmentDetailsBuilder_ == null) { + if (assessmentDetailsCase_ == 13) { + return (com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + assessmentDetails_; + } + return com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .getDefaultInstance(); + } else { + if (assessmentDetailsCase_ == 13) { + return manualCloudControlAssessmentDetailsBuilder_.getMessage(); + } + return com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .getDefaultInstance(); + } + } + + /** + * + * + *
                                    +     * The details of a manual cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + */ + public Builder setManualCloudControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails value) { + if (manualCloudControlAssessmentDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentDetails_ = value; + onChanged(); + } else { + manualCloudControlAssessmentDetailsBuilder_.setMessage(value); + } + assessmentDetailsCase_ = 13; + return this; + } + + /** + * + * + *
                                    +     * The details of a manual cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + */ + public Builder setManualCloudControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails.Builder + builderForValue) { + if (manualCloudControlAssessmentDetailsBuilder_ == null) { + assessmentDetails_ = builderForValue.build(); + onChanged(); + } else { + manualCloudControlAssessmentDetailsBuilder_.setMessage(builderForValue.build()); + } + assessmentDetailsCase_ = 13; + return this; + } + + /** + * + * + *
                                    +     * The details of a manual cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + */ + public Builder mergeManualCloudControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails value) { + if (manualCloudControlAssessmentDetailsBuilder_ == null) { + if (assessmentDetailsCase_ == 13 + && assessmentDetails_ + != com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .getDefaultInstance()) { + assessmentDetails_ = + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .newBuilder( + (com.google.cloud.cloudsecuritycompliance.v1 + .ManualCloudControlAssessmentDetails) + assessmentDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + assessmentDetails_ = value; + } + onChanged(); + } else { + if (assessmentDetailsCase_ == 13) { + manualCloudControlAssessmentDetailsBuilder_.mergeFrom(value); + } else { + manualCloudControlAssessmentDetailsBuilder_.setMessage(value); + } + } + assessmentDetailsCase_ = 13; + return this; + } + + /** + * + * + *
                                    +     * The details of a manual cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + */ + public Builder clearManualCloudControlAssessmentDetails() { + if (manualCloudControlAssessmentDetailsBuilder_ == null) { + if (assessmentDetailsCase_ == 13) { + assessmentDetailsCase_ = 0; + assessmentDetails_ = null; + onChanged(); + } + } else { + if (assessmentDetailsCase_ == 13) { + assessmentDetailsCase_ = 0; + assessmentDetails_ = null; + } + manualCloudControlAssessmentDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The details of a manual cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails.Builder + getManualCloudControlAssessmentDetailsBuilder() { + return getManualCloudControlAssessmentDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The details of a manual cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsOrBuilder + getManualCloudControlAssessmentDetailsOrBuilder() { + if ((assessmentDetailsCase_ == 13) && (manualCloudControlAssessmentDetailsBuilder_ != null)) { + return manualCloudControlAssessmentDetailsBuilder_.getMessageOrBuilder(); + } else { + if (assessmentDetailsCase_ == 13) { + return (com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + assessmentDetails_; + } + return com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .getDefaultInstance(); + } + } + + /** + * + * + *
                                    +     * The details of a manual cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1 + .ManualCloudControlAssessmentDetailsOrBuilder> + getManualCloudControlAssessmentDetailsFieldBuilder() { + if (manualCloudControlAssessmentDetailsBuilder_ == null) { + if (!(assessmentDetailsCase_ == 13)) { + assessmentDetails_ = + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .getDefaultInstance(); + } + manualCloudControlAssessmentDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .Builder, + com.google.cloud.cloudsecuritycompliance.v1 + .ManualCloudControlAssessmentDetailsOrBuilder>( + (com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + assessmentDetails_, + getParentForChildren(), + isClean()); + assessmentDetails_ = null; + } + assessmentDetailsCase_ = 13; + onChanged(); + return manualCloudControlAssessmentDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsOrBuilder> + cloudControlAssessmentDetailsBuilder_; + + /** + * + * + *
                                    +     * The details of a cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + * + * @return Whether the cloudControlAssessmentDetails field is set. + */ + @java.lang.Override + public boolean hasCloudControlAssessmentDetails() { + return assessmentDetailsCase_ == 14; + } + + /** + * + * + *
                                    +     * The details of a cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + * + * @return The cloudControlAssessmentDetails. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + getCloudControlAssessmentDetails() { + if (cloudControlAssessmentDetailsBuilder_ == null) { + if (assessmentDetailsCase_ == 14) { + return (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + assessmentDetails_; + } + return com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + .getDefaultInstance(); + } else { + if (assessmentDetailsCase_ == 14) { + return cloudControlAssessmentDetailsBuilder_.getMessage(); + } + return com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + .getDefaultInstance(); + } + } + + /** + * + * + *
                                    +     * The details of a cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + */ + public Builder setCloudControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails value) { + if (cloudControlAssessmentDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentDetails_ = value; + onChanged(); + } else { + cloudControlAssessmentDetailsBuilder_.setMessage(value); + } + assessmentDetailsCase_ = 14; + return this; + } + + /** + * + * + *
                                    +     * The details of a cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + */ + public Builder setCloudControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.Builder + builderForValue) { + if (cloudControlAssessmentDetailsBuilder_ == null) { + assessmentDetails_ = builderForValue.build(); + onChanged(); + } else { + cloudControlAssessmentDetailsBuilder_.setMessage(builderForValue.build()); + } + assessmentDetailsCase_ = 14; + return this; + } + + /** + * + * + *
                                    +     * The details of a cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + */ + public Builder mergeCloudControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails value) { + if (cloudControlAssessmentDetailsBuilder_ == null) { + if (assessmentDetailsCase_ == 14 + && assessmentDetails_ + != com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + .getDefaultInstance()) { + assessmentDetails_ = + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.newBuilder( + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + assessmentDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + assessmentDetails_ = value; + } + onChanged(); + } else { + if (assessmentDetailsCase_ == 14) { + cloudControlAssessmentDetailsBuilder_.mergeFrom(value); + } else { + cloudControlAssessmentDetailsBuilder_.setMessage(value); + } + } + assessmentDetailsCase_ = 14; + return this; + } + + /** + * + * + *
                                    +     * The details of a cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + */ + public Builder clearCloudControlAssessmentDetails() { + if (cloudControlAssessmentDetailsBuilder_ == null) { + if (assessmentDetailsCase_ == 14) { + assessmentDetailsCase_ = 0; + assessmentDetails_ = null; + onChanged(); + } + } else { + if (assessmentDetailsCase_ == 14) { + assessmentDetailsCase_ = 0; + assessmentDetails_ = null; + } + cloudControlAssessmentDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The details of a cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.Builder + getCloudControlAssessmentDetailsBuilder() { + return getCloudControlAssessmentDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The details of a cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsOrBuilder + getCloudControlAssessmentDetailsOrBuilder() { + if ((assessmentDetailsCase_ == 14) && (cloudControlAssessmentDetailsBuilder_ != null)) { + return cloudControlAssessmentDetailsBuilder_.getMessageOrBuilder(); + } else { + if (assessmentDetailsCase_ == 14) { + return (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + assessmentDetails_; + } + return com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + .getDefaultInstance(); + } + } + + /** + * + * + *
                                    +     * The details of a cloud control assessment.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsOrBuilder> + getCloudControlAssessmentDetailsFieldBuilder() { + if (cloudControlAssessmentDetailsBuilder_ == null) { + if (!(assessmentDetailsCase_ == 14)) { + assessmentDetails_ = + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + .getDefaultInstance(); + } + cloudControlAssessmentDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsOrBuilder>( + (com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails) + assessmentDetails_, + getParentForChildren(), + isClean()); + assessmentDetails_ = null; + } + assessmentDetailsCase_ = 14; + onChanged(); + return cloudControlAssessmentDetailsBuilder_; + } + + private java.lang.Object cloudControl_ = ""; + + /** + * + * + *
                                    +     * The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1; + * + * @return The cloudControl. + */ + public java.lang.String getCloudControl() { + java.lang.Object ref = cloudControl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudControl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1; + * + * @return The bytes for cloudControl. + */ + public com.google.protobuf.ByteString getCloudControlBytes() { + java.lang.Object ref = cloudControl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1; + * + * @param value The cloudControl to set. + * @return This builder for chaining. + */ + public Builder setCloudControl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudControl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1; + * + * @return This builder for chaining. + */ + public Builder clearCloudControl() { + cloudControl_ = getDefaultInstance().getCloudControl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the cloud control.
                                    +     * 
                                    + * + * string cloud_control = 1; + * + * @param value The bytes for cloudControl to set. + * @return This builder for chaining. + */ + public Builder setCloudControlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudControl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                    +     * The display name of the cloud control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The display name of the cloud control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The display name of the cloud control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The display name of the cloud control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The display name of the cloud control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                    +     * The description of the cloud control.
                                    +     * 
                                    + * + * string description = 3; + * + * @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; + } + } + + /** + * + * + *
                                    +     * The description of the cloud control.
                                    +     * 
                                    + * + * string description = 3; + * + * @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; + } + } + + /** + * + * + *
                                    +     * The description of the cloud control.
                                    +     * 
                                    + * + * string description = 3; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The description of the cloud control.
                                    +     * 
                                    + * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The description of the cloud control.
                                    +     * 
                                    + * + * string description = 3; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCategoriesIsMutable() { + if (!categories_.isModifiable()) { + categories_ = new com.google.protobuf.LazyStringArrayList(categories_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                                    +     * The list of categories for the cloud control.
                                    +     * 
                                    + * + * repeated string categories = 6; + * + * @return A list containing the categories. + */ + public com.google.protobuf.ProtocolStringList getCategoriesList() { + categories_.makeImmutable(); + return categories_; + } + + /** + * + * + *
                                    +     * The list of categories for the cloud control.
                                    +     * 
                                    + * + * repeated string categories = 6; + * + * @return The count of categories. + */ + public int getCategoriesCount() { + return categories_.size(); + } + + /** + * + * + *
                                    +     * The list of categories for the cloud control.
                                    +     * 
                                    + * + * repeated string categories = 6; + * + * @param index The index of the element to return. + * @return The categories at the given index. + */ + public java.lang.String getCategories(int index) { + return categories_.get(index); + } + + /** + * + * + *
                                    +     * The list of categories for the cloud control.
                                    +     * 
                                    + * + * repeated string categories = 6; + * + * @param index The index of the value to return. + * @return The bytes of the categories at the given index. + */ + public com.google.protobuf.ByteString getCategoriesBytes(int index) { + return categories_.getByteString(index); + } + + /** + * + * + *
                                    +     * The list of categories for the cloud control.
                                    +     * 
                                    + * + * repeated string categories = 6; + * + * @param index The index to set the value at. + * @param value The categories to set. + * @return This builder for chaining. + */ + public Builder setCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); + categories_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of categories for the cloud control.
                                    +     * 
                                    + * + * repeated string categories = 6; + * + * @param value The categories to add. + * @return This builder for chaining. + */ + public Builder addCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); + categories_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of categories for the cloud control.
                                    +     * 
                                    + * + * repeated string categories = 6; + * + * @param values The categories to add. + * @return This builder for chaining. + */ + public Builder addAllCategories(java.lang.Iterable values) { + ensureCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categories_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of categories for the cloud control.
                                    +     * 
                                    + * + * repeated string categories = 6; + * + * @return This builder for chaining. + */ + public Builder clearCategories() { + categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of categories for the cloud control.
                                    +     * 
                                    + * + * repeated string categories = 6; + * + * @param value The bytes of the categories to add. + * @return This builder for chaining. + */ + public Builder addCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCategoriesIsMutable(); + categories_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List + similarControls_ = java.util.Collections.emptyList(); + + private void ensureSimilarControlsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + similarControls_ = + new java.util.ArrayList( + similarControls_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder> + similarControlsBuilder_; + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public java.util.List + getSimilarControlsList() { + if (similarControlsBuilder_ == null) { + return java.util.Collections.unmodifiableList(similarControls_); + } else { + return similarControlsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public int getSimilarControlsCount() { + if (similarControlsBuilder_ == null) { + return similarControls_.size(); + } else { + return similarControlsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls getSimilarControls( + int index) { + if (similarControlsBuilder_ == null) { + return similarControls_.get(index); + } else { + return similarControlsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public Builder setSimilarControls( + int index, com.google.cloud.cloudsecuritycompliance.v1.SimilarControls value) { + if (similarControlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSimilarControlsIsMutable(); + similarControls_.set(index, value); + onChanged(); + } else { + similarControlsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public Builder setSimilarControls( + int index, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder builderForValue) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.set(index, builderForValue.build()); + onChanged(); + } else { + similarControlsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public Builder addSimilarControls( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls value) { + if (similarControlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSimilarControlsIsMutable(); + similarControls_.add(value); + onChanged(); + } else { + similarControlsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public Builder addSimilarControls( + int index, com.google.cloud.cloudsecuritycompliance.v1.SimilarControls value) { + if (similarControlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSimilarControlsIsMutable(); + similarControls_.add(index, value); + onChanged(); + } else { + similarControlsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public Builder addSimilarControls( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder builderForValue) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.add(builderForValue.build()); + onChanged(); + } else { + similarControlsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public Builder addSimilarControls( + int index, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder builderForValue) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.add(index, builderForValue.build()); + onChanged(); + } else { + similarControlsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public Builder addAllSimilarControls( + java.lang.Iterable + values) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, similarControls_); + onChanged(); + } else { + similarControlsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public Builder clearSimilarControls() { + if (similarControlsBuilder_ == null) { + similarControls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + similarControlsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public Builder removeSimilarControls(int index) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.remove(index); + onChanged(); + } else { + similarControlsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder + getSimilarControlsBuilder(int index) { + return getSimilarControlsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder + getSimilarControlsOrBuilder(int index) { + if (similarControlsBuilder_ == null) { + return similarControls_.get(index); + } else { + return similarControlsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder> + getSimilarControlsOrBuilderList() { + if (similarControlsBuilder_ != null) { + return similarControlsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(similarControls_); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder + addSimilarControlsBuilder() { + return getSimilarControlsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder + addSimilarControlsBuilder(int index) { + return getSimilarControlsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + public java.util.List + getSimilarControlsBuilderList() { + return getSimilarControlsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder> + getSimilarControlsFieldBuilder() { + if (similarControlsBuilder_ == null) { + similarControlsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder>( + similarControls_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + similarControls_ = null; + } + return similarControlsBuilder_; + } + + private int cloudControlType_ = 0; + + /** + * + * + *
                                    +     * The type of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * + * + * @return The enum numeric value on the wire for cloudControlType. + */ + @java.lang.Override + public int getCloudControlTypeValue() { + return cloudControlType_; + } + + /** + * + * + *
                                    +     * The type of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * + * + * @param value The enum numeric value on the wire for cloudControlType to set. + * @return This builder for chaining. + */ + public Builder setCloudControlTypeValue(int value) { + cloudControlType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The type of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * + * + * @return The cloudControlType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type getCloudControlType() { + com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type result = + com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type.forNumber( + cloudControlType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * The type of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * + * + * @param value The cloudControlType to set. + * @return This builder for chaining. + */ + public Builder setCloudControlType( + com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + cloudControlType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The type of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * + * + * @return This builder for chaining. + */ + public Builder clearCloudControlType() { + bitField0_ = (bitField0_ & ~0x00000080); + cloudControlType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object findingCategory_ = ""; + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 11; + * + * @return The findingCategory. + */ + public java.lang.String getFindingCategory() { + java.lang.Object ref = findingCategory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingCategory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 11; + * + * @return The bytes for findingCategory. + */ + public com.google.protobuf.ByteString getFindingCategoryBytes() { + java.lang.Object ref = findingCategory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 11; + * + * @param value The findingCategory to set. + * @return This builder for chaining. + */ + public Builder setFindingCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + findingCategory_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 11; + * + * @return This builder for chaining. + */ + public Builder clearFindingCategory() { + findingCategory_ = getDefaultInstance().getFindingCategory(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 11; + * + * @param value The bytes for findingCategory to set. + * @return This builder for chaining. + */ + public Builder setFindingCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingCategory_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.Rule, + com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder, + com.google.cloud.cloudsecuritycompliance.v1.RuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public com.google.cloud.cloudsecuritycompliance.v1.Rule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public Builder setRules(int index, com.google.cloud.cloudsecuritycompliance.v1.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public Builder setRules( + int index, com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public Builder addRules(com.google.cloud.cloudsecuritycompliance.v1.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public Builder addRules(int index, com.google.cloud.cloudsecuritycompliance.v1.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public Builder addRules( + com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public Builder addRules( + int index, com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder getRulesBuilder(int index) { + return getRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public com.google.cloud.cloudsecuritycompliance.v1.RuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder addRulesBuilder() { + return getRulesFieldBuilder() + .addBuilder(com.google.cloud.cloudsecuritycompliance.v1.Rule.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder addRulesBuilder(int index) { + return getRulesFieldBuilder() + .addBuilder(index, com.google.cloud.cloudsecuritycompliance.v1.Rule.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of rules that correspond to the cloud control.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.Rule, + com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder, + com.google.cloud.cloudsecuritycompliance.v1.RuleOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.Rule, + com.google.cloud.cloudsecuritycompliance.v1.Rule.Builder, + com.google.cloud.cloudsecuritycompliance.v1.RuleOrBuilder>( + rules_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + private int findingSeverity_ = 0; + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * + * @return The enum numeric value on the wire for findingSeverity. + */ + @java.lang.Override + public int getFindingSeverityValue() { + return findingSeverity_; + } + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * + * @param value The enum numeric value on the wire for findingSeverity to set. + * @return This builder for chaining. + */ + public Builder setFindingSeverityValue(int value) { + findingSeverity_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * + * @return The findingSeverity. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Severity getFindingSeverity() { + com.google.cloud.cloudsecuritycompliance.v1.Severity result = + com.google.cloud.cloudsecuritycompliance.v1.Severity.forNumber(findingSeverity_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Severity.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * + * @param value The findingSeverity to set. + * @return This builder for chaining. + */ + public Builder setFindingSeverity(com.google.cloud.cloudsecuritycompliance.v1.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + findingSeverity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * + * @return This builder for chaining. + */ + public Builder clearFindingSeverity() { + bitField0_ = (bitField0_ & ~0x00000400); + findingSeverity_ = 0; + onChanged(); + return this; + } + + private int enforcementMode_ = 0; + + /** + * + * + *
                                    +     * The enforcement mode of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * + * @return The enum numeric value on the wire for enforcementMode. + */ + @java.lang.Override + public int getEnforcementModeValue() { + return enforcementMode_; + } + + /** + * + * + *
                                    +     * The enforcement mode of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * + * @param value The enum numeric value on the wire for enforcementMode to set. + * @return This builder for chaining. + */ + public Builder setEnforcementModeValue(int value) { + enforcementMode_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The enforcement mode of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * + * @return The enforcementMode. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getEnforcementMode() { + com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode result = + com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode.forNumber(enforcementMode_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * The enforcement mode of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * + * @param value The enforcementMode to set. + * @return This builder for chaining. + */ + public Builder setEnforcementMode( + com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + enforcementMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The enforcement mode of the cloud control.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * + * @return This builder for chaining. + */ + public Builder clearEnforcementMode() { + bitField0_ = (bitField0_ & ~0x00000800); + enforcementMode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object cloudControlDeployment_ = ""; + + /** + * + * + *
                                    +     * The name of the cloud control deployment.
                                    +     * 
                                    + * + * string cloud_control_deployment = 17; + * + * @return The cloudControlDeployment. + */ + public java.lang.String getCloudControlDeployment() { + java.lang.Object ref = cloudControlDeployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudControlDeployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The name of the cloud control deployment.
                                    +     * 
                                    + * + * string cloud_control_deployment = 17; + * + * @return The bytes for cloudControlDeployment. + */ + public com.google.protobuf.ByteString getCloudControlDeploymentBytes() { + java.lang.Object ref = cloudControlDeployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControlDeployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The name of the cloud control deployment.
                                    +     * 
                                    + * + * string cloud_control_deployment = 17; + * + * @param value The cloudControlDeployment to set. + * @return This builder for chaining. + */ + public Builder setCloudControlDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudControlDeployment_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the cloud control deployment.
                                    +     * 
                                    + * + * string cloud_control_deployment = 17; + * + * @return This builder for chaining. + */ + public Builder clearCloudControlDeployment() { + cloudControlDeployment_ = getDefaultInstance().getCloudControlDeployment(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the cloud control deployment.
                                    +     * 
                                    + * + * string cloud_control_deployment = 17; + * + * @param value The bytes for cloudControlDeployment to set. + * @return This builder for chaining. + */ + public Builder setCloudControlDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudControlDeployment_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private long majorRevisionId_; + + /** + * + * + *
                                    +     * The major revision ID of the cloud control.
                                    +     * 
                                    + * + * int64 major_revision_id = 18; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + + /** + * + * + *
                                    +     * The major revision ID of the cloud control.
                                    +     * 
                                    + * + * int64 major_revision_id = 18; + * + * @param value The majorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMajorRevisionId(long value) { + + majorRevisionId_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The major revision ID of the cloud control.
                                    +     * 
                                    + * + * int64 major_revision_id = 18; + * + * @return This builder for chaining. + */ + public Builder clearMajorRevisionId() { + bitField0_ = (bitField0_ & ~0x00002000); + majorRevisionId_ = 0L; + onChanged(); + return this; + } + + private long minorRevisionId_; + + /** + * + * + *
                                    +     * The minor revision ID of the cloud control.
                                    +     * 
                                    + * + * int64 minor_revision_id = 19; + * + * @return The minorRevisionId. + */ + @java.lang.Override + public long getMinorRevisionId() { + return minorRevisionId_; + } + + /** + * + * + *
                                    +     * The minor revision ID of the cloud control.
                                    +     * 
                                    + * + * int64 minor_revision_id = 19; + * + * @param value The minorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMinorRevisionId(long value) { + + minorRevisionId_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The minor revision ID of the cloud control.
                                    +     * 
                                    + * + * int64 minor_revision_id = 19; + * + * @return This builder for chaining. + */ + public Builder clearMinorRevisionId() { + bitField0_ = (bitField0_ & ~0x00004000); + minorRevisionId_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList frameworkMajorRevisionIds_ = emptyLongList(); + + private void ensureFrameworkMajorRevisionIdsIsMutable() { + if (!frameworkMajorRevisionIds_.isModifiable()) { + frameworkMajorRevisionIds_ = makeMutableCopy(frameworkMajorRevisionIds_); + } + bitField0_ |= 0x00008000; + } + + /** + * + * + *
                                    +     * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +     * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @return A list containing the frameworkMajorRevisionIds. + */ + public java.util.List getFrameworkMajorRevisionIdsList() { + frameworkMajorRevisionIds_.makeImmutable(); + return frameworkMajorRevisionIds_; + } + + /** + * + * + *
                                    +     * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +     * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @return The count of frameworkMajorRevisionIds. + */ + public int getFrameworkMajorRevisionIdsCount() { + return frameworkMajorRevisionIds_.size(); + } + + /** + * + * + *
                                    +     * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +     * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @param index The index of the element to return. + * @return The frameworkMajorRevisionIds at the given index. + */ + public long getFrameworkMajorRevisionIds(int index) { + return frameworkMajorRevisionIds_.getLong(index); + } + + /** + * + * + *
                                    +     * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +     * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @param index The index to set the value at. + * @param value The frameworkMajorRevisionIds to set. + * @return This builder for chaining. + */ + public Builder setFrameworkMajorRevisionIds(int index, long value) { + + ensureFrameworkMajorRevisionIdsIsMutable(); + frameworkMajorRevisionIds_.setLong(index, value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +     * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @param value The frameworkMajorRevisionIds to add. + * @return This builder for chaining. + */ + public Builder addFrameworkMajorRevisionIds(long value) { + + ensureFrameworkMajorRevisionIdsIsMutable(); + frameworkMajorRevisionIds_.addLong(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +     * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @param values The frameworkMajorRevisionIds to add. + * @return This builder for chaining. + */ + public Builder addAllFrameworkMajorRevisionIds( + java.lang.Iterable values) { + ensureFrameworkMajorRevisionIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frameworkMajorRevisionIds_); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +     * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @return This builder for chaining. + */ + public Builder clearFrameworkMajorRevisionIds() { + frameworkMajorRevisionIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.CloudControlReport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.CloudControlReport) + private static final com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudControlReport 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.cloudsecuritycompliance.v1.CloudControlReport + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlReportOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlReportOrBuilder.java new file mode 100644 index 000000000000..04127fc44035 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlReportOrBuilder.java @@ -0,0 +1,568 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface CloudControlReportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.CloudControlReport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The details of a manual cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + * + * @return Whether the manualCloudControlAssessmentDetails field is set. + */ + boolean hasManualCloudControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The details of a manual cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + * + * @return The manualCloudControlAssessmentDetails. + */ + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + getManualCloudControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The details of a manual cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails manual_cloud_control_assessment_details = 13; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsOrBuilder + getManualCloudControlAssessmentDetailsOrBuilder(); + + /** + * + * + *
                                    +   * The details of a cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + * + * @return Whether the cloudControlAssessmentDetails field is set. + */ + boolean hasCloudControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The details of a cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + * + * @return The cloudControlAssessmentDetails. + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails + getCloudControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The details of a cloud control assessment.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetails cloud_control_assessment_details = 14; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsOrBuilder + getCloudControlAssessmentDetailsOrBuilder(); + + /** + * + * + *
                                    +   * The name of the cloud control.
                                    +   * 
                                    + * + * string cloud_control = 1; + * + * @return The cloudControl. + */ + java.lang.String getCloudControl(); + + /** + * + * + *
                                    +   * The name of the cloud control.
                                    +   * 
                                    + * + * string cloud_control = 1; + * + * @return The bytes for cloudControl. + */ + com.google.protobuf.ByteString getCloudControlBytes(); + + /** + * + * + *
                                    +   * The display name of the cloud control.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                    +   * The display name of the cloud control.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                    +   * The description of the cloud control.
                                    +   * 
                                    + * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                    +   * The description of the cloud control.
                                    +   * 
                                    + * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                    +   * The list of categories for the cloud control.
                                    +   * 
                                    + * + * repeated string categories = 6; + * + * @return A list containing the categories. + */ + java.util.List getCategoriesList(); + + /** + * + * + *
                                    +   * The list of categories for the cloud control.
                                    +   * 
                                    + * + * repeated string categories = 6; + * + * @return The count of categories. + */ + int getCategoriesCount(); + + /** + * + * + *
                                    +   * The list of categories for the cloud control.
                                    +   * 
                                    + * + * repeated string categories = 6; + * + * @param index The index of the element to return. + * @return The categories at the given index. + */ + java.lang.String getCategories(int index); + + /** + * + * + *
                                    +   * The list of categories for the cloud control.
                                    +   * 
                                    + * + * repeated string categories = 6; + * + * @param index The index of the value to return. + * @return The bytes of the categories at the given index. + */ + com.google.protobuf.ByteString getCategoriesBytes(int index); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + java.util.List + getSimilarControlsList(); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls getSimilarControls(int index); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + int getSimilarControlsCount(); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + java.util.List + getSimilarControlsOrBuilderList(); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 9; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder getSimilarControlsOrBuilder( + int index); + + /** + * + * + *
                                    +   * The type of the cloud control.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * + * + * @return The enum numeric value on the wire for cloudControlType. + */ + int getCloudControlTypeValue(); + + /** + * + * + *
                                    +   * The type of the cloud control.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.CloudControl.Type cloud_control_type = 10; + * + * + * @return The cloudControlType. + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type getCloudControlType(); + + /** + * + * + *
                                    +   * The category of the finding.
                                    +   * 
                                    + * + * string finding_category = 11; + * + * @return The findingCategory. + */ + java.lang.String getFindingCategory(); + + /** + * + * + *
                                    +   * The category of the finding.
                                    +   * 
                                    + * + * string finding_category = 11; + * + * @return The bytes for findingCategory. + */ + com.google.protobuf.ByteString getFindingCategoryBytes(); + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + java.util.List getRulesList(); + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + com.google.cloud.cloudsecuritycompliance.v1.Rule getRules(int index); + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + int getRulesCount(); + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + java.util.List + getRulesOrBuilderList(); + + /** + * + * + *
                                    +   * The list of rules that correspond to the cloud control.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.Rule rules = 12; + */ + com.google.cloud.cloudsecuritycompliance.v1.RuleOrBuilder getRulesOrBuilder(int index); + + /** + * + * + *
                                    +   * The severity of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * + * @return The enum numeric value on the wire for findingSeverity. + */ + int getFindingSeverityValue(); + + /** + * + * + *
                                    +   * The severity of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity finding_severity = 15; + * + * @return The findingSeverity. + */ + com.google.cloud.cloudsecuritycompliance.v1.Severity getFindingSeverity(); + + /** + * + * + *
                                    +   * The enforcement mode of the cloud control.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * + * @return The enum numeric value on the wire for enforcementMode. + */ + int getEnforcementModeValue(); + + /** + * + * + *
                                    +   * The enforcement mode of the cloud control.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.EnforcementMode enforcement_mode = 16; + * + * @return The enforcementMode. + */ + com.google.cloud.cloudsecuritycompliance.v1.EnforcementMode getEnforcementMode(); + + /** + * + * + *
                                    +   * The name of the cloud control deployment.
                                    +   * 
                                    + * + * string cloud_control_deployment = 17; + * + * @return The cloudControlDeployment. + */ + java.lang.String getCloudControlDeployment(); + + /** + * + * + *
                                    +   * The name of the cloud control deployment.
                                    +   * 
                                    + * + * string cloud_control_deployment = 17; + * + * @return The bytes for cloudControlDeployment. + */ + com.google.protobuf.ByteString getCloudControlDeploymentBytes(); + + /** + * + * + *
                                    +   * The major revision ID of the cloud control.
                                    +   * 
                                    + * + * int64 major_revision_id = 18; + * + * @return The majorRevisionId. + */ + long getMajorRevisionId(); + + /** + * + * + *
                                    +   * The minor revision ID of the cloud control.
                                    +   * 
                                    + * + * int64 minor_revision_id = 19; + * + * @return The minorRevisionId. + */ + long getMinorRevisionId(); + + /** + * + * + *
                                    +   * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +   * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @return A list containing the frameworkMajorRevisionIds. + */ + java.util.List getFrameworkMajorRevisionIdsList(); + + /** + * + * + *
                                    +   * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +   * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @return The count of frameworkMajorRevisionIds. + */ + int getFrameworkMajorRevisionIdsCount(); + + /** + * + * + *
                                    +   * The major revision IDs of the frameworks that the cloud control belongs to.
                                    +   * 
                                    + * + * repeated int64 framework_major_revision_ids = 20; + * + * @param index The index of the element to return. + * @return The frameworkMajorRevisionIds at the given index. + */ + long getFrameworkMajorRevisionIds(int index); + + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.AssessmentDetailsCase + getAssessmentDetailsCase(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudProvider.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudProvider.java index d1b61197d9d5..ebd413b19b26 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudProvider.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudProvider.java @@ -23,7 +23,7 @@ * * *
                                    - * The cloud platform.
                                    + * The cloud provider that's associated with the cloud control.
                                      * 
                                    * * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.CloudProvider} @@ -179,7 +179,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor() .getEnumTypes() - .get(3); + .get(4); } private static final CloudProvider[] VALUES = values(); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollment.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollment.java new file mode 100644 index 000000000000..777ea345f19a --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollment.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The settings for Compliance Manager at a specific resource scope.=
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CmEnrollment} + */ +public final class CmEnrollment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.CmEnrollment) + CmEnrollmentOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CmEnrollment.newBuilder() to construct. + private CmEnrollment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CmEnrollment() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CmEnrollment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CmEnrollment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CmEnrollment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.class, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Identifier. The name of the Compliance Manager enrollment.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +   * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +   * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +   * 
                                    + * + * 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. The name of the Compliance Manager enrollment.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +   * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +   * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +   * 
                                    + * + * 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 ENROLLED_FIELD_NUMBER = 2; + private boolean enrolled_ = false; + + /** + * + * + *
                                    +   * Optional. Whether the resource is enrolled in Compliance Manager.
                                    +   * This setting is inherited by all descendants.
                                    +   * 
                                    + * + * bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enrolled. + */ + @java.lang.Override + public boolean getEnrolled() { + return enrolled_; + } + + public static final int AUDIT_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.cloudsecuritycompliance.v1.AuditConfig auditConfig_; + + /** + * + * + *
                                    +   * Optional. The audit configuration for Compliance Manager.
                                    +   * If set at a scope, this configuration overrides any inherited audit
                                    +   * configuration.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the auditConfig field is set. + */ + @java.lang.Override + public boolean hasAuditConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Optional. The audit configuration for Compliance Manager.
                                    +   * If set at a scope, this configuration overrides any inherited audit
                                    +   * configuration.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The auditConfig. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig getAuditConfig() { + return auditConfig_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.getDefaultInstance() + : auditConfig_; + } + + /** + * + * + *
                                    +   * Optional. The audit configuration for Compliance Manager.
                                    +   * If set at a scope, this configuration overrides any inherited audit
                                    +   * configuration.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfigOrBuilder + getAuditConfigOrBuilder() { + return auditConfig_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.getDefaultInstance() + : auditConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (enrolled_ != false) { + output.writeBool(2, enrolled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAuditConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (enrolled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enrolled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuditConfig()); + } + 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.cloudsecuritycompliance.v1.CmEnrollment)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment other = + (com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment) obj; + + if (!getName().equals(other.getName())) return false; + if (getEnrolled() != other.getEnrolled()) return false; + if (hasAuditConfig() != other.hasAuditConfig()) return false; + if (hasAuditConfig()) { + if (!getAuditConfig().equals(other.getAuditConfig())) 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) + ENROLLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnrolled()); + if (hasAuditConfig()) { + hash = (37 * hash) + AUDIT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAuditConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment 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.cloudsecuritycompliance.v1.CmEnrollment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment 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.cloudsecuritycompliance.v1.CmEnrollment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The settings for Compliance Manager at a specific resource scope.=
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CmEnrollment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.CmEnrollment) + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CmEnrollment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CmEnrollment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.class, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAuditConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + enrolled_ = false; + auditConfig_ = null; + if (auditConfigBuilder_ != null) { + auditConfigBuilder_.dispose(); + auditConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CmEnrollment_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment build() { + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment result = + new com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enrolled_ = enrolled_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.auditConfig_ = + auditConfigBuilder_ == null ? auditConfig_ : auditConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEnrolled() != false) { + setEnrolled(other.getEnrolled()); + } + if (other.hasAuditConfig()) { + mergeAuditConfig(other.getAuditConfig()); + } + 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 16: + { + enrolled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getAuditConfigFieldBuilder().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 name_ = ""; + + /** + * + * + *
                                    +     * Identifier. The name of the Compliance Manager enrollment.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * 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. The name of the Compliance Manager enrollment.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * 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. The name of the Compliance Manager enrollment.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the Compliance Manager enrollment.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the Compliance Manager enrollment.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +     * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +     * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +     * 
                                    + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean enrolled_; + + /** + * + * + *
                                    +     * Optional. Whether the resource is enrolled in Compliance Manager.
                                    +     * This setting is inherited by all descendants.
                                    +     * 
                                    + * + * bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enrolled. + */ + @java.lang.Override + public boolean getEnrolled() { + return enrolled_; + } + + /** + * + * + *
                                    +     * Optional. Whether the resource is enrolled in Compliance Manager.
                                    +     * This setting is inherited by all descendants.
                                    +     * 
                                    + * + * bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enrolled to set. + * @return This builder for chaining. + */ + public Builder setEnrolled(boolean value) { + + enrolled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. Whether the resource is enrolled in Compliance Manager.
                                    +     * This setting is inherited by all descendants.
                                    +     * 
                                    + * + * bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnrolled() { + bitField0_ = (bitField0_ & ~0x00000002); + enrolled_ = false; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.AuditConfig auditConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.Builder, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfigOrBuilder> + auditConfigBuilder_; + + /** + * + * + *
                                    +     * Optional. The audit configuration for Compliance Manager.
                                    +     * If set at a scope, this configuration overrides any inherited audit
                                    +     * configuration.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the auditConfig field is set. + */ + public boolean hasAuditConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                    +     * Optional. The audit configuration for Compliance Manager.
                                    +     * If set at a scope, this configuration overrides any inherited audit
                                    +     * configuration.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The auditConfig. + */ + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig getAuditConfig() { + if (auditConfigBuilder_ == null) { + return auditConfig_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.getDefaultInstance() + : auditConfig_; + } else { + return auditConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Optional. The audit configuration for Compliance Manager.
                                    +     * If set at a scope, this configuration overrides any inherited audit
                                    +     * configuration.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuditConfig(com.google.cloud.cloudsecuritycompliance.v1.AuditConfig value) { + if (auditConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + auditConfig_ = value; + } else { + auditConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The audit configuration for Compliance Manager.
                                    +     * If set at a scope, this configuration overrides any inherited audit
                                    +     * configuration.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuditConfig( + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.Builder builderForValue) { + if (auditConfigBuilder_ == null) { + auditConfig_ = builderForValue.build(); + } else { + auditConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The audit configuration for Compliance Manager.
                                    +     * If set at a scope, this configuration overrides any inherited audit
                                    +     * configuration.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAuditConfig(com.google.cloud.cloudsecuritycompliance.v1.AuditConfig value) { + if (auditConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && auditConfig_ != null + && auditConfig_ + != com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.getDefaultInstance()) { + getAuditConfigBuilder().mergeFrom(value); + } else { + auditConfig_ = value; + } + } else { + auditConfigBuilder_.mergeFrom(value); + } + if (auditConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The audit configuration for Compliance Manager.
                                    +     * If set at a scope, this configuration overrides any inherited audit
                                    +     * configuration.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuditConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + auditConfig_ = null; + if (auditConfigBuilder_ != null) { + auditConfigBuilder_.dispose(); + auditConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The audit configuration for Compliance Manager.
                                    +     * If set at a scope, this configuration overrides any inherited audit
                                    +     * configuration.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.Builder getAuditConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAuditConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Optional. The audit configuration for Compliance Manager.
                                    +     * If set at a scope, this configuration overrides any inherited audit
                                    +     * configuration.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.AuditConfigOrBuilder + getAuditConfigOrBuilder() { + if (auditConfigBuilder_ != null) { + return auditConfigBuilder_.getMessageOrBuilder(); + } else { + return auditConfig_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.getDefaultInstance() + : auditConfig_; + } + } + + /** + * + * + *
                                    +     * Optional. The audit configuration for Compliance Manager.
                                    +     * If set at a scope, this configuration overrides any inherited audit
                                    +     * configuration.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.Builder, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfigOrBuilder> + getAuditConfigFieldBuilder() { + if (auditConfigBuilder_ == null) { + auditConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig.Builder, + com.google.cloud.cloudsecuritycompliance.v1.AuditConfigOrBuilder>( + getAuditConfig(), getParentForChildren(), isClean()); + auditConfig_ = null; + } + return auditConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.CmEnrollment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.CmEnrollment) + private static final com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmEnrollment 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.cloudsecuritycompliance.v1.CmEnrollment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentName.java new file mode 100644 index 000000000000..96338866e108 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentName.java @@ -0,0 +1,284 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 CmEnrollmentName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/cmEnrollment"); + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/cmEnrollment"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String project; + + @Deprecated + protected CmEnrollmentName() { + organization = null; + location = null; + project = null; + } + + private CmEnrollmentName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + project = null; + pathTemplate = ORGANIZATION_LOCATION; + } + + private CmEnrollmentName(ProjectLocationBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + organization = null; + pathTemplate = PROJECT_LOCATION; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationBuilder() { + return new Builder(); + } + + public static ProjectLocationBuilder newProjectLocationBuilder() { + return new ProjectLocationBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CmEnrollmentName of(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build(); + } + + public static CmEnrollmentName ofOrganizationLocationName(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build(); + } + + public static CmEnrollmentName ofProjectLocationName(String project, String location) { + return newProjectLocationBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build().toString(); + } + + public static String formatOrganizationLocationName(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build().toString(); + } + + public static String formatProjectLocationName(String project, String location) { + return newProjectLocationBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static CmEnrollmentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION.match(formattedString); + return ofOrganizationLocationName(matchMap.get("organization"), matchMap.get("location")); + } else if (PROJECT_LOCATION.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION.match(formattedString); + return ofProjectLocationName(matchMap.get("project"), matchMap.get("location")); + } + throw new ValidationException("CmEnrollmentName.parse: formattedString not in valid format"); + } + + 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 (CmEnrollmentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION.matches(formattedString) + || PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CmEnrollmentName that = ((CmEnrollmentName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for organizations/{organization}/locations/{location}/cmEnrollment. */ + public static class Builder { + private String organization; + private String location; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(CmEnrollmentName cmEnrollmentName) { + Preconditions.checkArgument( + Objects.equals(cmEnrollmentName.pathTemplate, ORGANIZATION_LOCATION), + "toBuilder is only supported when CmEnrollmentName has the pattern of" + + " organizations/{organization}/locations/{location}/cmEnrollment"); + this.organization = cmEnrollmentName.organization; + this.location = cmEnrollmentName.location; + } + + public CmEnrollmentName build() { + return new CmEnrollmentName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/cmEnrollment. */ + public static class ProjectLocationBuilder { + private String project; + private String location; + + protected ProjectLocationBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public ProjectLocationBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationBuilder setLocation(String location) { + this.location = location; + return this; + } + + public CmEnrollmentName build() { + return new CmEnrollmentName(this); + } + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentOrBuilder.java new file mode 100644 index 000000000000..0ab77b81632d --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface CmEnrollmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.CmEnrollment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Identifier. The name of the Compliance Manager enrollment.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +   * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +   * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +   * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Identifier. The name of the Compliance Manager enrollment.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/cmEnrollment`
                                    +   * * `folders/{folder_id}/locations/{location}/cmEnrollment`
                                    +   * * `projects/{project_id}/locations/{location}/cmEnrollment`
                                    +   * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                    +   * Optional. Whether the resource is enrolled in Compliance Manager.
                                    +   * This setting is inherited by all descendants.
                                    +   * 
                                    + * + * bool enrolled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enrolled. + */ + boolean getEnrolled(); + + /** + * + * + *
                                    +   * Optional. The audit configuration for Compliance Manager.
                                    +   * If set at a scope, this configuration overrides any inherited audit
                                    +   * configuration.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the auditConfig field is set. + */ + boolean hasAuditConfig(); + + /** + * + * + *
                                    +   * Optional. The audit configuration for Compliance Manager.
                                    +   * If set at a scope, this configuration overrides any inherited audit
                                    +   * configuration.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The auditConfig. + */ + com.google.cloud.cloudsecuritycompliance.v1.AuditConfig getAuditConfig(); + + /** + * + * + *
                                    +   * Optional. The audit configuration for Compliance Manager.
                                    +   * If set at a scope, this configuration overrides any inherited audit
                                    +   * configuration.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.AuditConfig audit_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.AuditConfigOrBuilder getAuditConfigOrBuilder(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceProto.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceProto.java new file mode 100644 index 000000000000..bdd2e05957be --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceProto.java @@ -0,0 +1,197 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public final class CmEnrollmentServiceProto { + private CmEnrollmentServiceProto() {} + + 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_cloudsecuritycompliance_v1_UpdateCmEnrollmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_UpdateCmEnrollmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_CmEnrollment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_CmEnrollment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_CalculateEffectiveCmEnrollmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_CmEligibleDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_AuditConfig_CmEligibleDestination_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" + + "Cgoogle/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto\022\'google.cl" + + "oud.cloudsecuritycompliance.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"\244\001\n" + + "\031UpdateCmEnrollmentRequest\022Q\n\r" + + "cm_enrollment\030\001 \001(\01325.googl" + + "e.cloud.cloudsecuritycompliance.v1.CmEnrollmentB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"r\n" + + "%CalculateEffectiveCmEnrollmentRequest\022I\n" + + "\004name\030\001 \001(\tB;\340A\002\372A5\n" + + "3cloudsecuritycompliance.googleapis.com/CmEnrollment\"\330\002\n" + + "\014CmEnrollment\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\025\n" + + "\010enrolled\030\002 \001(\010B\003\340A\001\022O\n" + + "\014audit_config\030\003 \001(\01324.google.cloud.c" + + "loudsecuritycompliance.v1.AuditConfigB\003\340A\001:\314\001\352A\310\001\n" + + "3cloudsecuritycompliance.googleapis.com/CmEnrollment\022>organizations/{o" + + "rganization}/locations/{location}/cmEnro" + + "llment\0224projects/{project}/locations/{location}/cmEnrollment*\r" + + "cmEnrollments2\014cmEnrollment\"v\n" + + "&CalculateEffectiveCmEnrollmentResponse\022L\n\r" + + "cm_enrollment\030\001 \001(\01325.goo" + + "gle.cloud.cloudsecuritycompliance.v1.CmEnrollment\"\277\001\n" + + "\013AuditConfig\022e\n" + + "\014destinations\030\001 \003(\0132J.google.cloud.cloudsecuritycomp" + + "liance.v1.AuditConfig.CmEligibleDestinationB\003\340A\002\032I\n" + + "\025CmEligibleDestination\022\024\n\n" + + "gcs_bucket\030\001 \001(\tH\000B\032\n" + + "\030cm_eligible_destinations2\243\007\n" + + "\023CmEnrollmentService\022\244\003\n" + + "\022UpdateCmEnrollment\022B.google.cloud.cloudsecurityc" + + "ompliance.v1.UpdateCmEnrollmentRequest\0325.google.cloud.cloudsecuritycompliance.v1" + + ".CmEnrollment\"\222\002\332A\031cm_enrollment,update_" + + "mask\202\323\344\223\002\357\0012A/v1/{cm_enrollment.name=organizations/*/locations/*/cmEnrollment}:\r" + + "cm_enrollmentZL2;/v1/{cm_enrollment.name=folders/*/locations/*/cmEnrollment}:\r" + + "cm_enrollmentZM2 + * The state of compliance after evaluation is complete. + * + * + * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.ComplianceState} + */ +public enum ComplianceState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +   * Default value. This value is unused.
                                    +   * 
                                    + * + * COMPLIANCE_STATE_UNSPECIFIED = 0; + */ + COMPLIANCE_STATE_UNSPECIFIED(0), + /** + * + * + *
                                    +   * The resource is compliant.
                                    +   * 
                                    + * + * COMPLIANT = 1; + */ + COMPLIANT(1), + /** + * + * + *
                                    +   * The resource has a violation.
                                    +   * 
                                    + * + * VIOLATION = 2; + */ + VIOLATION(2), + /** + * + * + *
                                    +   * The resource requires manual review from you.
                                    +   * 
                                    + * + * MANUAL_REVIEW_NEEDED = 3; + */ + MANUAL_REVIEW_NEEDED(3), + /** + * + * + *
                                    +   * An error occurred while computing the resource status.
                                    +   * 
                                    + * + * ERROR = 4; + */ + ERROR(4), + /** + * + * + *
                                    +   * The resource can't be audited.
                                    +   * 
                                    + * + * AUDIT_NOT_SUPPORTED = 5; + */ + AUDIT_NOT_SUPPORTED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +   * Default value. This value is unused.
                                    +   * 
                                    + * + * COMPLIANCE_STATE_UNSPECIFIED = 0; + */ + public static final int COMPLIANCE_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +   * The resource is compliant.
                                    +   * 
                                    + * + * COMPLIANT = 1; + */ + public static final int COMPLIANT_VALUE = 1; + + /** + * + * + *
                                    +   * The resource has a violation.
                                    +   * 
                                    + * + * VIOLATION = 2; + */ + public static final int VIOLATION_VALUE = 2; + + /** + * + * + *
                                    +   * The resource requires manual review from you.
                                    +   * 
                                    + * + * MANUAL_REVIEW_NEEDED = 3; + */ + public static final int MANUAL_REVIEW_NEEDED_VALUE = 3; + + /** + * + * + *
                                    +   * An error occurred while computing the resource status.
                                    +   * 
                                    + * + * ERROR = 4; + */ + public static final int ERROR_VALUE = 4; + + /** + * + * + *
                                    +   * The resource can't be audited.
                                    +   * 
                                    + * + * AUDIT_NOT_SUPPORTED = 5; + */ + public static final int AUDIT_NOT_SUPPORTED_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 ComplianceState 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 ComplianceState forNumber(int value) { + switch (value) { + case 0: + return COMPLIANCE_STATE_UNSPECIFIED; + case 1: + return COMPLIANT; + case 2: + return VIOLATION; + case 3: + return MANUAL_REVIEW_NEEDED; + case 4: + return ERROR; + case 5: + return AUDIT_NOT_SUPPORTED; + 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 ComplianceState findValueByNumber(int number) { + return ComplianceState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ComplianceState[] VALUES = values(); + + public static ComplianceState 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 ComplianceState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.ComplianceState) +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigProto.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigProto.java index b0fe4ede94f1..092ab673aca5 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigProto.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigProto.java @@ -128,16 +128,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListCloudControlsResponse\022M\n" + "\016cloud_controls\030\001 \003(\01325.google.clou" + "d.cloudsecuritycompliance.v1.CloudControl\022\027\n" - + "\017next_page_token\030\002 \001(\t\"c\n" + + "\017next_page_token\030\002 \001(\t\"\203\001\n" + "\026GetCloudControlRequest\022I\n" + "\004name\030\001 \001(\tB;\340A\002\372A5\n" - + "3cloudsecuritycompliance.googleapis.com/CloudControl\"\332\001\n" + + "3cloudsecuritycompliance.googleapis.com/CloudControl\022\036\n" + + "\021major_revision_id\030\002 \001(\003B\003\340A\001\"\332\001\n" + "\031CreateCloudControlRequest\022K\n" + "\006parent\030\001 \001(" + "\tB;\340A\002\372A5\0223cloudsecuritycompliance.googleapis.com/CloudControl\022\035\n" + "\020cloud_control_id\030\002 \001(\tB\003\340A\002\022Q\n\r" - + "cloud_control\030\003" - + " \001(\01325.google.cloud.cloudsecuritycompliance.v1.CloudControlB\003\340A\002\"\244\001\n" + + "cloud_control\030\003 \001(" + + "\01325.google.cloud.cloudsecuritycompliance.v1.CloudControlB\003\340A\002\"\244\001\n" + "\031UpdateCloudControlRequest\0224\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022Q\n\r" @@ -147,56 +148,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB;\340A\002\372A5\n" + "3cloudsecuritycompliance.googleapis.com/CloudControl2\241\022\n" + "\006Config\022\327\001\n" - + "\016ListFrameworks\022>.google.cloud.cloudsecurityco" - + "mpliance.v1.ListFrameworksRequest\032?.google.cloud.cloudsecuritycompliance.v1.List" - + "FrameworksResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1" - + "/{parent=organizations/*/locations/*}/frameworks\022\304\001\n" - + "\014GetFramework\022<.google.cloud.cloudsecuritycompliance.v1.GetFramework" - + "Request\0322.google.cloud.cloudsecuritycomp" - + "liance.v1.Framework\"B\332A\004name\202\323\344\223\0025\0223/v1/" - + "{name=organizations/*/locations/*/frameworks/*}\022\356\001\n" - + "\017CreateFramework\022?.google.cloud.cloudsecuritycompliance.v1.CreateFram" - + "eworkRequest\0322.google.cloud.cloudsecurit" - + "ycompliance.v1.Framework\"f\332A\035parent,fram" - + "ework,framework_id\202\323\344\223\002@\"3/v1/{parent=organizations/*/locations/*}/frameworks:" + + "\016ListFrameworks\022>.google.cloud.cloudsecuritycomplianc" + + "e.v1.ListFrameworksRequest\032?.google.cloud.cloudsecuritycompliance.v1.ListFramewo" + + "rksResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{paren" + + "t=organizations/*/locations/*}/frameworks\022\304\001\n" + + "\014GetFramework\022<.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest" + + "\0322.google.cloud.cloudsecuritycompliance." + + "v1.Framework\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=o" + + "rganizations/*/locations/*/frameworks/*}\022\356\001\n" + + "\017CreateFramework\022?.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRe" + + "quest\0322.google.cloud.cloudsecuritycompli" + + "ance.v1.Framework\"f\332A\035parent,framework,f" + + "ramework_id\202\323\344\223\002@\"3/v1/{parent=organizations/*/locations/*}/frameworks:" + "\tframework\022\360\001\n" - + "\017UpdateFramework\022?.google.cloud.cloudsecuritycompliance.v1.UpdateFra" - + "meworkRequest\0322.google.cloud.cloudsecuri" - + "tycompliance.v1.Framework\"h\332A\025framework," - + "update_mask\202\323\344\223\002J2=/v1/{framework.name=o" - + "rganizations/*/locations/*/frameworks/*}:\tframework\022\256\001\n" - + "\017DeleteFramework\022?.google.cloud.cloudsecuritycompliance.v1.Delete" - + "FrameworkRequest\032\026.google.protobuf.Empty" - + "\"B\332A\004name\202\323\344\223\0025*3/v1/{name=organizations/*/locations/*/frameworks/*}\022\343\001\n" - + "\021ListCloudControls\022A.google.cloud.cloudsecurityc" - + "ompliance.v1.ListCloudControlsRequest\032B.google.cloud.cloudsecuritycompliance.v1." - + "ListCloudControlsResponse\"G\332A\006parent\202\323\344\223" - + "\0028\0226/v1/{parent=organizations/*/locations/*}/cloudControls\022\320\001\n" - + "\017GetCloudControl\022?.google.cloud.cloudsecuritycompliance.v1" - + ".GetCloudControlRequest\0325.google.cloud.cloudsecuritycompliance.v1.CloudControl\"E" - + "\332A\004name\202\323\344\223\0028\0226/v1/{name=organizations/*/locations/*/cloudControls/*}\022\206\002\n" - + "\022CreateCloudControl\022B.google.cloud.cloudsecurit" - + "ycompliance.v1.CreateCloudControlRequest\0325.google.cloud.cloudsecuritycompliance." - + "v1.CloudControl\"u\332A%parent,cloud_control" - + ",cloud_control_id\202\323\344\223\002G\"6/v1/{parent=org" - + "anizations/*/locations/*}/cloudControls:\r" + + "\017UpdateFramework\022?.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkR" + + "equest\0322.google.cloud.cloudsecuritycompl" + + "iance.v1.Framework\"h\332A\025framework,update_" + + "mask\202\323\344\223\002J2=/v1/{framework.name=organizations/*/locations/*/frameworks/*}:" + + "\tframework\022\256\001\n" + + "\017DeleteFramework\022?.google.cloud.cloudsecuritycompliance.v1.DeleteFramewo" + + "rkRequest\032\026.google.protobuf.Empty\"B\332A\004na" + + "me\202\323\344\223\0025*3/v1/{name=organizations/*/locations/*/frameworks/*}\022\343\001\n" + + "\021ListCloudControls\022A.google.cloud.cloudsecuritycomplian" + + "ce.v1.ListCloudControlsRequest\032B.google.cloud.cloudsecuritycompliance.v1.ListClo" + + "udControlsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1" + + "/{parent=organizations/*/locations/*}/cloudControls\022\320\001\n" + + "\017GetCloudControl\022?.google.cloud.cloudsecuritycompliance.v1.GetClo" + + "udControlRequest\0325.google.cloud.cloudsec" + + "uritycompliance.v1.CloudControl\"E\332A\004name" + + "\202\323\344\223\0028\0226/v1/{name=organizations/*/locations/*/cloudControls/*}\022\206\002\n" + + "\022CreateCloudControl\022B.google.cloud.cloudsecuritycompli" + + "ance.v1.CreateCloudControlRequest\0325.google.cloud.cloudsecuritycompliance.v1.Clou" + + "dControl\"u\332A%parent,cloud_control,cloud_" + + "control_id\202\323\344\223\002G\"6/v1/{parent=organizations/*/locations/*}/cloudControls:\r" + "cloud_control\022\210\002\n" - + "\022UpdateCloudControl\022B.google.cloud.cloudsecuritycompliance.v1." - + "UpdateCloudControlRequest\0325.google.cloud.cloudsecuritycompliance.v1.CloudControl" - + "\"w\332A\031cloud_control,update_mask\202\323\344\223\002U2D/v" - + "1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}:\r" + + "\022UpdateCloudControl\022B.google.cloud.cloudsecuritycompliance.v1.UpdateC" + + "loudControlRequest\0325.google.cloud.clouds" + + "ecuritycompliance.v1.CloudControl\"w\332A\031cl" + + "oud_control,update_mask\202\323\344\223\002U2D/v1/{clou" + + "d_control.name=organizations/*/locations/*/cloudControls/*}:\r" + "cloud_control\022\267\001\n" - + "\022DeleteCloudControl\022B.google.cloud.cloudsecuritycompliance.v1.DeleteCloudCo" - + "ntrolRequest\032\026.google.protobuf.Empty\"E\332A" - + "\004name\202\323\344\223\0028*6/v1/{name=organizations/*/l" - + "ocations/*/cloudControls/*}\032Z\312A&cloudsec" - + "uritycompliance.googleapis.com\322A.https:/" - + "/www.googleapis.com/auth/cloud-platformB\244\002\n" - + "+com.google.cloud.cloudsecuritycompliance.v1B\013ConfigProtoP\001Zecloud.google.com" - + "/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycomplia" - + "ncepb\252\002\'Google.Cloud.CloudSecurityCompli" - + "ance.V1\312\002\'Google\\Cloud\\CloudSecurityComp" - + "liance\\V1\352\002*Google::Cloud::CloudSecurityCompliance::V1b\006proto3" + + "\022DeleteCloudControl\022B.google.cloud.cloudse" + + "curitycompliance.v1.DeleteCloudControlRe" + + "quest\032\026.google.protobuf.Empty\"E\332A\004name\202\323" + + "\344\223\0028*6/v1/{name=organizations/*/location" + + "s/*/cloudControls/*}\032Z\312A&cloudsecurityco" + + "mpliance.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\244\002\n" + + "+com.google.cloud.cloudsecuritycompliance.v1" + + "B\013ConfigProtoP\001Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecurity" + + "compliancepb;cloudsecuritycompliancepb\252\002" + + "\'Google.Cloud.CloudSecurityCompliance.V1" + + "\312\002\'Google\\Cloud\\CloudSecurityCompliance\\" + + "V1\352\002*Google::Cloud::CloudSecurityCompliance::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -280,7 +283,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_cloudsecuritycompliance_v1_GetCloudControlRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "MajorRevisionId", }); internal_static_google_cloud_cloudsecuritycompliance_v1_CreateCloudControlRequest_descriptor = getDescriptor().getMessageTypes().get(9); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlAssessmentDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlAssessmentDetails.java new file mode 100644 index 000000000000..a0d3620fe8e8 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlAssessmentDetails.java @@ -0,0 +1,848 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The details for a control assessment.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails} + */ +public final class ControlAssessmentDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails) + ControlAssessmentDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ControlAssessmentDetails.newBuilder() to construct. + private ControlAssessmentDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ControlAssessmentDetails() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ControlAssessmentDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder.class); + } + + public static final int PASSING_CONTROLS_FIELD_NUMBER = 1; + private int passingControls_ = 0; + + /** + * + * + *
                                    +   * The number of controls that are passing or not assessed.
                                    +   * 
                                    + * + * int32 passing_controls = 1; + * + * @return The passingControls. + */ + @java.lang.Override + public int getPassingControls() { + return passingControls_; + } + + public static final int FAILING_CONTROLS_FIELD_NUMBER = 2; + private int failingControls_ = 0; + + /** + * + * + *
                                    +   * The number of controls that are failing.
                                    +   * 
                                    + * + * int32 failing_controls = 2; + * + * @return The failingControls. + */ + @java.lang.Override + public int getFailingControls() { + return failingControls_; + } + + public static final int ASSESSED_PASSING_CONTROLS_FIELD_NUMBER = 3; + private int assessedPassingControls_ = 0; + + /** + * + * + *
                                    +   * The number of controls that were assessed and are passing.
                                    +   * 
                                    + * + * int32 assessed_passing_controls = 3; + * + * @return The assessedPassingControls. + */ + @java.lang.Override + public int getAssessedPassingControls() { + return assessedPassingControls_; + } + + public static final int NOT_ASSESSED_CONTROLS_FIELD_NUMBER = 4; + private int notAssessedControls_ = 0; + + /** + * + * + *
                                    +   * The number of controls that aren't assessed because they require manual
                                    +   * review.
                                    +   * 
                                    + * + * int32 not_assessed_controls = 4; + * + * @return The notAssessedControls. + */ + @java.lang.Override + public int getNotAssessedControls() { + return notAssessedControls_; + } + + 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 (passingControls_ != 0) { + output.writeInt32(1, passingControls_); + } + if (failingControls_ != 0) { + output.writeInt32(2, failingControls_); + } + if (assessedPassingControls_ != 0) { + output.writeInt32(3, assessedPassingControls_); + } + if (notAssessedControls_ != 0) { + output.writeInt32(4, notAssessedControls_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (passingControls_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, passingControls_); + } + if (failingControls_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, failingControls_); + } + if (assessedPassingControls_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, assessedPassingControls_); + } + if (notAssessedControls_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, notAssessedControls_); + } + 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.cloudsecuritycompliance.v1.ControlAssessmentDetails)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails other = + (com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails) obj; + + if (getPassingControls() != other.getPassingControls()) return false; + if (getFailingControls() != other.getFailingControls()) return false; + if (getAssessedPassingControls() != other.getAssessedPassingControls()) return false; + if (getNotAssessedControls() != other.getNotAssessedControls()) 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) + PASSING_CONTROLS_FIELD_NUMBER; + hash = (53 * hash) + getPassingControls(); + hash = (37 * hash) + FAILING_CONTROLS_FIELD_NUMBER; + hash = (53 * hash) + getFailingControls(); + hash = (37 * hash) + ASSESSED_PASSING_CONTROLS_FIELD_NUMBER; + hash = (53 * hash) + getAssessedPassingControls(); + hash = (37 * hash) + NOT_ASSESSED_CONTROLS_FIELD_NUMBER; + hash = (53 * hash) + getNotAssessedControls(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails 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.cloudsecuritycompliance.v1.ControlAssessmentDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails 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.cloudsecuritycompliance.v1.ControlAssessmentDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The details for a control assessment.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails) + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + passingControls_ = 0; + failingControls_ = 0; + assessedPassingControls_ = 0; + notAssessedControls_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails build() { + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails result = + new com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.passingControls_ = passingControls_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.failingControls_ = failingControls_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.assessedPassingControls_ = assessedPassingControls_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.notAssessedControls_ = notAssessedControls_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance()) return this; + if (other.getPassingControls() != 0) { + setPassingControls(other.getPassingControls()); + } + if (other.getFailingControls() != 0) { + setFailingControls(other.getFailingControls()); + } + if (other.getAssessedPassingControls() != 0) { + setAssessedPassingControls(other.getAssessedPassingControls()); + } + if (other.getNotAssessedControls() != 0) { + setNotAssessedControls(other.getNotAssessedControls()); + } + 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: + { + passingControls_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + failingControls_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + assessedPassingControls_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + notAssessedControls_ = input.readInt32(); + 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 int passingControls_; + + /** + * + * + *
                                    +     * The number of controls that are passing or not assessed.
                                    +     * 
                                    + * + * int32 passing_controls = 1; + * + * @return The passingControls. + */ + @java.lang.Override + public int getPassingControls() { + return passingControls_; + } + + /** + * + * + *
                                    +     * The number of controls that are passing or not assessed.
                                    +     * 
                                    + * + * int32 passing_controls = 1; + * + * @param value The passingControls to set. + * @return This builder for chaining. + */ + public Builder setPassingControls(int value) { + + passingControls_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The number of controls that are passing or not assessed.
                                    +     * 
                                    + * + * int32 passing_controls = 1; + * + * @return This builder for chaining. + */ + public Builder clearPassingControls() { + bitField0_ = (bitField0_ & ~0x00000001); + passingControls_ = 0; + onChanged(); + return this; + } + + private int failingControls_; + + /** + * + * + *
                                    +     * The number of controls that are failing.
                                    +     * 
                                    + * + * int32 failing_controls = 2; + * + * @return The failingControls. + */ + @java.lang.Override + public int getFailingControls() { + return failingControls_; + } + + /** + * + * + *
                                    +     * The number of controls that are failing.
                                    +     * 
                                    + * + * int32 failing_controls = 2; + * + * @param value The failingControls to set. + * @return This builder for chaining. + */ + public Builder setFailingControls(int value) { + + failingControls_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The number of controls that are failing.
                                    +     * 
                                    + * + * int32 failing_controls = 2; + * + * @return This builder for chaining. + */ + public Builder clearFailingControls() { + bitField0_ = (bitField0_ & ~0x00000002); + failingControls_ = 0; + onChanged(); + return this; + } + + private int assessedPassingControls_; + + /** + * + * + *
                                    +     * The number of controls that were assessed and are passing.
                                    +     * 
                                    + * + * int32 assessed_passing_controls = 3; + * + * @return The assessedPassingControls. + */ + @java.lang.Override + public int getAssessedPassingControls() { + return assessedPassingControls_; + } + + /** + * + * + *
                                    +     * The number of controls that were assessed and are passing.
                                    +     * 
                                    + * + * int32 assessed_passing_controls = 3; + * + * @param value The assessedPassingControls to set. + * @return This builder for chaining. + */ + public Builder setAssessedPassingControls(int value) { + + assessedPassingControls_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The number of controls that were assessed and are passing.
                                    +     * 
                                    + * + * int32 assessed_passing_controls = 3; + * + * @return This builder for chaining. + */ + public Builder clearAssessedPassingControls() { + bitField0_ = (bitField0_ & ~0x00000004); + assessedPassingControls_ = 0; + onChanged(); + return this; + } + + private int notAssessedControls_; + + /** + * + * + *
                                    +     * The number of controls that aren't assessed because they require manual
                                    +     * review.
                                    +     * 
                                    + * + * int32 not_assessed_controls = 4; + * + * @return The notAssessedControls. + */ + @java.lang.Override + public int getNotAssessedControls() { + return notAssessedControls_; + } + + /** + * + * + *
                                    +     * The number of controls that aren't assessed because they require manual
                                    +     * review.
                                    +     * 
                                    + * + * int32 not_assessed_controls = 4; + * + * @param value The notAssessedControls to set. + * @return This builder for chaining. + */ + public Builder setNotAssessedControls(int value) { + + notAssessedControls_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The number of controls that aren't assessed because they require manual
                                    +     * review.
                                    +     * 
                                    + * + * int32 not_assessed_controls = 4; + * + * @return This builder for chaining. + */ + public Builder clearNotAssessedControls() { + bitField0_ = (bitField0_ & ~0x00000008); + notAssessedControls_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails) + private static final com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ControlAssessmentDetails 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.cloudsecuritycompliance.v1.ControlAssessmentDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlAssessmentDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlAssessmentDetailsOrBuilder.java new file mode 100644 index 000000000000..6f6cf9e43c6e --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlAssessmentDetailsOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ControlAssessmentDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The number of controls that are passing or not assessed.
                                    +   * 
                                    + * + * int32 passing_controls = 1; + * + * @return The passingControls. + */ + int getPassingControls(); + + /** + * + * + *
                                    +   * The number of controls that are failing.
                                    +   * 
                                    + * + * int32 failing_controls = 2; + * + * @return The failingControls. + */ + int getFailingControls(); + + /** + * + * + *
                                    +   * The number of controls that were assessed and are passing.
                                    +   * 
                                    + * + * int32 assessed_passing_controls = 3; + * + * @return The assessedPassingControls. + */ + int getAssessedPassingControls(); + + /** + * + * + *
                                    +   * The number of controls that aren't assessed because they require manual
                                    +   * review.
                                    +   * 
                                    + * + * int32 not_assessed_controls = 4; + * + * @return The notAssessedControls. + */ + int getNotAssessedControls(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummary.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummary.java new file mode 100644 index 000000000000..6dc3010f39ee --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummary.java @@ -0,0 +1,3218 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The details for control compliance.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary} + */ +public final class ControlComplianceSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary) + ControlComplianceSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ControlComplianceSummary.newBuilder() to construct. + private ControlComplianceSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ControlComplianceSummary() { + control_ = ""; + displayName_ = ""; + description_ = ""; + overallEvaluationState_ = 0; + complianceFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + similarControls_ = java.util.Collections.emptyList(); + cloudControlReports_ = java.util.Collections.emptyList(); + controlResponsibilityType_ = 0; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ControlComplianceSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.class, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder.class); + } + + public static final int CONTROL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object control_ = ""; + + /** + * + * + *
                                    +   * The name of the control.
                                    +   * 
                                    + * + * string control = 1; + * + * @return The control. + */ + @java.lang.Override + public java.lang.String getControl() { + java.lang.Object ref = control_; + 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(); + control_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The name of the control.
                                    +   * 
                                    + * + * string control = 1; + * + * @return The bytes for control. + */ + @java.lang.Override + public com.google.protobuf.ByteString getControlBytes() { + java.lang.Object ref = control_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + control_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                    +   * The display name of the control.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The display name of the control.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                    +   * The description of the control.
                                    +   * 
                                    + * + * string description = 3; + * + * @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; + } + } + + /** + * + * + *
                                    +   * The description of the control.
                                    +   * 
                                    + * + * string description = 3; + * + * @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 OVERALL_EVALUATION_STATE_FIELD_NUMBER = 4; + private int overallEvaluationState_ = 0; + + /** + * + * + *
                                    +   * Output only. The overall evaluation status of the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for overallEvaluationState. + */ + @java.lang.Override + public int getOverallEvaluationStateValue() { + return overallEvaluationState_; + } + + /** + * + * + *
                                    +   * Output only. The overall evaluation status of the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The overallEvaluationState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EvaluationState getOverallEvaluationState() { + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState result = + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.forNumber( + overallEvaluationState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.UNRECOGNIZED + : result; + } + + public static final int TOTAL_FINDINGS_COUNT_FIELD_NUMBER = 5; + private int totalFindingsCount_ = 0; + + /** + * + * + *
                                    +   * The total number of findings for the control.
                                    +   * 
                                    + * + * int32 total_findings_count = 5; + * + * @return The totalFindingsCount. + */ + @java.lang.Override + public int getTotalFindingsCount() { + return totalFindingsCount_; + } + + public static final int COMPLIANCE_FRAMEWORKS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList complianceFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                    +   * The list of compliance frameworks that the control belongs to.
                                    +   * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @return A list containing the complianceFrameworks. + */ + public com.google.protobuf.ProtocolStringList getComplianceFrameworksList() { + return complianceFrameworks_; + } + + /** + * + * + *
                                    +   * The list of compliance frameworks that the control belongs to.
                                    +   * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @return The count of complianceFrameworks. + */ + public int getComplianceFrameworksCount() { + return complianceFrameworks_.size(); + } + + /** + * + * + *
                                    +   * The list of compliance frameworks that the control belongs to.
                                    +   * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param index The index of the element to return. + * @return The complianceFrameworks at the given index. + */ + public java.lang.String getComplianceFrameworks(int index) { + return complianceFrameworks_.get(index); + } + + /** + * + * + *
                                    +   * The list of compliance frameworks that the control belongs to.
                                    +   * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param index The index of the value to return. + * @return The bytes of the complianceFrameworks at the given index. + */ + public com.google.protobuf.ByteString getComplianceFrameworksBytes(int index) { + return complianceFrameworks_.getByteString(index); + } + + public static final int SIMILAR_CONTROLS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List + similarControls_; + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + @java.lang.Override + public java.util.List + getSimilarControlsList() { + return similarControls_; + } + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder> + getSimilarControlsOrBuilderList() { + return similarControls_; + } + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + @java.lang.Override + public int getSimilarControlsCount() { + return similarControls_.size(); + } + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls getSimilarControls(int index) { + return similarControls_.get(index); + } + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder + getSimilarControlsOrBuilder(int index) { + return similarControls_.get(index); + } + + public static final int CLOUD_CONTROL_REPORTS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + cloudControlReports_; + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + @java.lang.Override + public java.util.List + getCloudControlReportsList() { + return cloudControlReports_; + } + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlReportOrBuilder> + getCloudControlReportsOrBuilderList() { + return cloudControlReports_; + } + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + @java.lang.Override + public int getCloudControlReportsCount() { + return cloudControlReports_.size(); + } + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport getCloudControlReports( + int index) { + return cloudControlReports_.get(index); + } + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReportOrBuilder + getCloudControlReportsOrBuilder(int index) { + return cloudControlReports_.get(index); + } + + public static final int CONTROL_RESPONSIBILITY_TYPE_FIELD_NUMBER = 9; + private int controlResponsibilityType_ = 0; + + /** + * + * + *
                                    +   * The responsibility type for the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * + * + * @return The enum numeric value on the wire for controlResponsibilityType. + */ + @java.lang.Override + public int getControlResponsibilityTypeValue() { + return controlResponsibilityType_; + } + + /** + * + * + *
                                    +   * The responsibility type for the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * + * + * @return The controlResponsibilityType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + getControlResponsibilityType() { + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType result = + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType.forNumber( + controlResponsibilityType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + .UNRECOGNIZED + : result; + } + + public static final int IS_FAKE_CONTROL_FIELD_NUMBER = 10; + private boolean isFakeControl_ = false; + + /** + * + * + *
                                    +   * Whether the control is a fake control. Fake controls are created
                                    +   * and mapped to cloud controls that don't belong to a control group.
                                    +   * 
                                    + * + * bool is_fake_control = 10; + * + * @return The isFakeControl. + */ + @java.lang.Override + public boolean getIsFakeControl() { + return isFakeControl_; + } + + public static final int NAME_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Identifier. The name of the control compliance summary.
                                    +   * 
                                    + * + * string name = 11 [(.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. The name of the control compliance summary.
                                    +   * 
                                    + * + * string name = 11 [(.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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(control_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, control_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (overallEvaluationState_ + != com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.EVALUATION_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, overallEvaluationState_); + } + if (totalFindingsCount_ != 0) { + output.writeInt32(5, totalFindingsCount_); + } + for (int i = 0; i < complianceFrameworks_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 6, complianceFrameworks_.getRaw(i)); + } + for (int i = 0; i < similarControls_.size(); i++) { + output.writeMessage(7, similarControls_.get(i)); + } + for (int i = 0; i < cloudControlReports_.size(); i++) { + output.writeMessage(8, cloudControlReports_.get(i)); + } + if (controlResponsibilityType_ + != com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + .REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, controlResponsibilityType_); + } + if (isFakeControl_ != false) { + output.writeBool(10, isFakeControl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(control_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, control_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (overallEvaluationState_ + != com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.EVALUATION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, overallEvaluationState_); + } + if (totalFindingsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, totalFindingsCount_); + } + { + int dataSize = 0; + for (int i = 0; i < complianceFrameworks_.size(); i++) { + dataSize += computeStringSizeNoTag(complianceFrameworks_.getRaw(i)); + } + size += dataSize; + size += 1 * getComplianceFrameworksList().size(); + } + for (int i = 0; i < similarControls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, similarControls_.get(i)); + } + for (int i = 0; i < cloudControlReports_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, cloudControlReports_.get(i)); + } + if (controlResponsibilityType_ + != com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + .REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, controlResponsibilityType_); + } + if (isFakeControl_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, isFakeControl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, 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.cloudsecuritycompliance.v1.ControlComplianceSummary)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary other = + (com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary) obj; + + if (!getControl().equals(other.getControl())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (overallEvaluationState_ != other.overallEvaluationState_) return false; + if (getTotalFindingsCount() != other.getTotalFindingsCount()) return false; + if (!getComplianceFrameworksList().equals(other.getComplianceFrameworksList())) return false; + if (!getSimilarControlsList().equals(other.getSimilarControlsList())) return false; + if (!getCloudControlReportsList().equals(other.getCloudControlReportsList())) return false; + if (controlResponsibilityType_ != other.controlResponsibilityType_) return false; + if (getIsFakeControl() != other.getIsFakeControl()) return false; + 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) + CONTROL_FIELD_NUMBER; + hash = (53 * hash) + getControl().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + OVERALL_EVALUATION_STATE_FIELD_NUMBER; + hash = (53 * hash) + overallEvaluationState_; + hash = (37 * hash) + TOTAL_FINDINGS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalFindingsCount(); + if (getComplianceFrameworksCount() > 0) { + hash = (37 * hash) + COMPLIANCE_FRAMEWORKS_FIELD_NUMBER; + hash = (53 * hash) + getComplianceFrameworksList().hashCode(); + } + if (getSimilarControlsCount() > 0) { + hash = (37 * hash) + SIMILAR_CONTROLS_FIELD_NUMBER; + hash = (53 * hash) + getSimilarControlsList().hashCode(); + } + if (getCloudControlReportsCount() > 0) { + hash = (37 * hash) + CLOUD_CONTROL_REPORTS_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlReportsList().hashCode(); + } + hash = (37 * hash) + CONTROL_RESPONSIBILITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + controlResponsibilityType_; + hash = (37 * hash) + IS_FAKE_CONTROL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFakeControl()); + 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.cloudsecuritycompliance.v1.ControlComplianceSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary 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.cloudsecuritycompliance.v1.ControlComplianceSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary 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.cloudsecuritycompliance.v1.ControlComplianceSummary parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The details for control compliance.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary) + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.class, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + control_ = ""; + displayName_ = ""; + description_ = ""; + overallEvaluationState_ = 0; + totalFindingsCount_ = 0; + complianceFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (similarControlsBuilder_ == null) { + similarControls_ = java.util.Collections.emptyList(); + } else { + similarControls_ = null; + similarControlsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (cloudControlReportsBuilder_ == null) { + cloudControlReports_ = java.util.Collections.emptyList(); + } else { + cloudControlReports_ = null; + cloudControlReportsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + controlResponsibilityType_ = 0; + isFakeControl_ = false; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary build() { + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary result = + new com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary result) { + if (similarControlsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + similarControls_ = java.util.Collections.unmodifiableList(similarControls_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.similarControls_ = similarControls_; + } else { + result.similarControls_ = similarControlsBuilder_.build(); + } + if (cloudControlReportsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + cloudControlReports_ = java.util.Collections.unmodifiableList(cloudControlReports_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.cloudControlReports_ = cloudControlReports_; + } else { + result.cloudControlReports_ = cloudControlReportsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.control_ = control_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.overallEvaluationState_ = overallEvaluationState_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.totalFindingsCount_ = totalFindingsCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + complianceFrameworks_.makeImmutable(); + result.complianceFrameworks_ = complianceFrameworks_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.controlResponsibilityType_ = controlResponsibilityType_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.isFakeControl_ = isFakeControl_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + .getDefaultInstance()) return this; + if (!other.getControl().isEmpty()) { + control_ = other.control_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.overallEvaluationState_ != 0) { + setOverallEvaluationStateValue(other.getOverallEvaluationStateValue()); + } + if (other.getTotalFindingsCount() != 0) { + setTotalFindingsCount(other.getTotalFindingsCount()); + } + if (!other.complianceFrameworks_.isEmpty()) { + if (complianceFrameworks_.isEmpty()) { + complianceFrameworks_ = other.complianceFrameworks_; + bitField0_ |= 0x00000020; + } else { + ensureComplianceFrameworksIsMutable(); + complianceFrameworks_.addAll(other.complianceFrameworks_); + } + onChanged(); + } + if (similarControlsBuilder_ == null) { + if (!other.similarControls_.isEmpty()) { + if (similarControls_.isEmpty()) { + similarControls_ = other.similarControls_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSimilarControlsIsMutable(); + similarControls_.addAll(other.similarControls_); + } + onChanged(); + } + } else { + if (!other.similarControls_.isEmpty()) { + if (similarControlsBuilder_.isEmpty()) { + similarControlsBuilder_.dispose(); + similarControlsBuilder_ = null; + similarControls_ = other.similarControls_; + bitField0_ = (bitField0_ & ~0x00000040); + similarControlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSimilarControlsFieldBuilder() + : null; + } else { + similarControlsBuilder_.addAllMessages(other.similarControls_); + } + } + } + if (cloudControlReportsBuilder_ == null) { + if (!other.cloudControlReports_.isEmpty()) { + if (cloudControlReports_.isEmpty()) { + cloudControlReports_ = other.cloudControlReports_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureCloudControlReportsIsMutable(); + cloudControlReports_.addAll(other.cloudControlReports_); + } + onChanged(); + } + } else { + if (!other.cloudControlReports_.isEmpty()) { + if (cloudControlReportsBuilder_.isEmpty()) { + cloudControlReportsBuilder_.dispose(); + cloudControlReportsBuilder_ = null; + cloudControlReports_ = other.cloudControlReports_; + bitField0_ = (bitField0_ & ~0x00000080); + cloudControlReportsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCloudControlReportsFieldBuilder() + : null; + } else { + cloudControlReportsBuilder_.addAllMessages(other.cloudControlReports_); + } + } + } + if (other.controlResponsibilityType_ != 0) { + setControlResponsibilityTypeValue(other.getControlResponsibilityTypeValue()); + } + if (other.getIsFakeControl() != false) { + setIsFakeControl(other.getIsFakeControl()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000400; + 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: + { + control_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + overallEvaluationState_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + totalFindingsCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureComplianceFrameworksIsMutable(); + complianceFrameworks_.add(s); + break; + } // case 50 + case 58: + { + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.parser(), + extensionRegistry); + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.add(m); + } else { + similarControlsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.parser(), + extensionRegistry); + if (cloudControlReportsBuilder_ == null) { + ensureCloudControlReportsIsMutable(); + cloudControlReports_.add(m); + } else { + cloudControlReportsBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + controlResponsibilityType_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + isFakeControl_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + 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 control_ = ""; + + /** + * + * + *
                                    +     * The name of the control.
                                    +     * 
                                    + * + * string control = 1; + * + * @return The control. + */ + public java.lang.String getControl() { + java.lang.Object ref = control_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + control_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The name of the control.
                                    +     * 
                                    + * + * string control = 1; + * + * @return The bytes for control. + */ + public com.google.protobuf.ByteString getControlBytes() { + java.lang.Object ref = control_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + control_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The name of the control.
                                    +     * 
                                    + * + * string control = 1; + * + * @param value The control to set. + * @return This builder for chaining. + */ + public Builder setControl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + control_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the control.
                                    +     * 
                                    + * + * string control = 1; + * + * @return This builder for chaining. + */ + public Builder clearControl() { + control_ = getDefaultInstance().getControl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the control.
                                    +     * 
                                    + * + * string control = 1; + * + * @param value The bytes for control to set. + * @return This builder for chaining. + */ + public Builder setControlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + control_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                    +     * The display name of the control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The display name of the control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The display name of the control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The display name of the control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The display name of the control.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                    +     * The description of the control.
                                    +     * 
                                    + * + * string description = 3; + * + * @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; + } + } + + /** + * + * + *
                                    +     * The description of the control.
                                    +     * 
                                    + * + * string description = 3; + * + * @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; + } + } + + /** + * + * + *
                                    +     * The description of the control.
                                    +     * 
                                    + * + * string description = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The description of the control.
                                    +     * 
                                    + * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The description of the control.
                                    +     * 
                                    + * + * string description = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private int overallEvaluationState_ = 0; + + /** + * + * + *
                                    +     * Output only. The overall evaluation status of the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for overallEvaluationState. + */ + @java.lang.Override + public int getOverallEvaluationStateValue() { + return overallEvaluationState_; + } + + /** + * + * + *
                                    +     * Output only. The overall evaluation status of the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for overallEvaluationState to set. + * @return This builder for chaining. + */ + public Builder setOverallEvaluationStateValue(int value) { + overallEvaluationState_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The overall evaluation status of the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The overallEvaluationState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EvaluationState getOverallEvaluationState() { + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState result = + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.forNumber( + overallEvaluationState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.EvaluationState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Output only. The overall evaluation status of the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The overallEvaluationState to set. + * @return This builder for chaining. + */ + public Builder setOverallEvaluationState( + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + overallEvaluationState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The overall evaluation status of the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOverallEvaluationState() { + bitField0_ = (bitField0_ & ~0x00000008); + overallEvaluationState_ = 0; + onChanged(); + return this; + } + + private int totalFindingsCount_; + + /** + * + * + *
                                    +     * The total number of findings for the control.
                                    +     * 
                                    + * + * int32 total_findings_count = 5; + * + * @return The totalFindingsCount. + */ + @java.lang.Override + public int getTotalFindingsCount() { + return totalFindingsCount_; + } + + /** + * + * + *
                                    +     * The total number of findings for the control.
                                    +     * 
                                    + * + * int32 total_findings_count = 5; + * + * @param value The totalFindingsCount to set. + * @return This builder for chaining. + */ + public Builder setTotalFindingsCount(int value) { + + totalFindingsCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The total number of findings for the control.
                                    +     * 
                                    + * + * int32 total_findings_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearTotalFindingsCount() { + bitField0_ = (bitField0_ & ~0x00000010); + totalFindingsCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList complianceFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureComplianceFrameworksIsMutable() { + if (!complianceFrameworks_.isModifiable()) { + complianceFrameworks_ = new com.google.protobuf.LazyStringArrayList(complianceFrameworks_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                                    +     * The list of compliance frameworks that the control belongs to.
                                    +     * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @return A list containing the complianceFrameworks. + */ + public com.google.protobuf.ProtocolStringList getComplianceFrameworksList() { + complianceFrameworks_.makeImmutable(); + return complianceFrameworks_; + } + + /** + * + * + *
                                    +     * The list of compliance frameworks that the control belongs to.
                                    +     * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @return The count of complianceFrameworks. + */ + public int getComplianceFrameworksCount() { + return complianceFrameworks_.size(); + } + + /** + * + * + *
                                    +     * The list of compliance frameworks that the control belongs to.
                                    +     * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param index The index of the element to return. + * @return The complianceFrameworks at the given index. + */ + public java.lang.String getComplianceFrameworks(int index) { + return complianceFrameworks_.get(index); + } + + /** + * + * + *
                                    +     * The list of compliance frameworks that the control belongs to.
                                    +     * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param index The index of the value to return. + * @return The bytes of the complianceFrameworks at the given index. + */ + public com.google.protobuf.ByteString getComplianceFrameworksBytes(int index) { + return complianceFrameworks_.getByteString(index); + } + + /** + * + * + *
                                    +     * The list of compliance frameworks that the control belongs to.
                                    +     * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param index The index to set the value at. + * @param value The complianceFrameworks to set. + * @return This builder for chaining. + */ + public Builder setComplianceFrameworks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceFrameworksIsMutable(); + complianceFrameworks_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of compliance frameworks that the control belongs to.
                                    +     * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param value The complianceFrameworks to add. + * @return This builder for chaining. + */ + public Builder addComplianceFrameworks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceFrameworksIsMutable(); + complianceFrameworks_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of compliance frameworks that the control belongs to.
                                    +     * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param values The complianceFrameworks to add. + * @return This builder for chaining. + */ + public Builder addAllComplianceFrameworks(java.lang.Iterable values) { + ensureComplianceFrameworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, complianceFrameworks_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of compliance frameworks that the control belongs to.
                                    +     * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @return This builder for chaining. + */ + public Builder clearComplianceFrameworks() { + complianceFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of compliance frameworks that the control belongs to.
                                    +     * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param value The bytes of the complianceFrameworks to add. + * @return This builder for chaining. + */ + public Builder addComplianceFrameworksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureComplianceFrameworksIsMutable(); + complianceFrameworks_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List + similarControls_ = java.util.Collections.emptyList(); + + private void ensureSimilarControlsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + similarControls_ = + new java.util.ArrayList( + similarControls_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder> + similarControlsBuilder_; + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public java.util.List + getSimilarControlsList() { + if (similarControlsBuilder_ == null) { + return java.util.Collections.unmodifiableList(similarControls_); + } else { + return similarControlsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public int getSimilarControlsCount() { + if (similarControlsBuilder_ == null) { + return similarControls_.size(); + } else { + return similarControlsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls getSimilarControls( + int index) { + if (similarControlsBuilder_ == null) { + return similarControls_.get(index); + } else { + return similarControlsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public Builder setSimilarControls( + int index, com.google.cloud.cloudsecuritycompliance.v1.SimilarControls value) { + if (similarControlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSimilarControlsIsMutable(); + similarControls_.set(index, value); + onChanged(); + } else { + similarControlsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public Builder setSimilarControls( + int index, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder builderForValue) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.set(index, builderForValue.build()); + onChanged(); + } else { + similarControlsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public Builder addSimilarControls( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls value) { + if (similarControlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSimilarControlsIsMutable(); + similarControls_.add(value); + onChanged(); + } else { + similarControlsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public Builder addSimilarControls( + int index, com.google.cloud.cloudsecuritycompliance.v1.SimilarControls value) { + if (similarControlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSimilarControlsIsMutable(); + similarControls_.add(index, value); + onChanged(); + } else { + similarControlsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public Builder addSimilarControls( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder builderForValue) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.add(builderForValue.build()); + onChanged(); + } else { + similarControlsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public Builder addSimilarControls( + int index, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder builderForValue) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.add(index, builderForValue.build()); + onChanged(); + } else { + similarControlsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public Builder addAllSimilarControls( + java.lang.Iterable + values) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, similarControls_); + onChanged(); + } else { + similarControlsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public Builder clearSimilarControls() { + if (similarControlsBuilder_ == null) { + similarControls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + similarControlsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public Builder removeSimilarControls(int index) { + if (similarControlsBuilder_ == null) { + ensureSimilarControlsIsMutable(); + similarControls_.remove(index); + onChanged(); + } else { + similarControlsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder + getSimilarControlsBuilder(int index) { + return getSimilarControlsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder + getSimilarControlsOrBuilder(int index) { + if (similarControlsBuilder_ == null) { + return similarControls_.get(index); + } else { + return similarControlsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder> + getSimilarControlsOrBuilderList() { + if (similarControlsBuilder_ != null) { + return similarControlsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(similarControls_); + } + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder + addSimilarControlsBuilder() { + return getSimilarControlsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder + addSimilarControlsBuilder(int index) { + return getSimilarControlsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of similar controls.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + public java.util.List + getSimilarControlsBuilderList() { + return getSimilarControlsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder> + getSimilarControlsFieldBuilder() { + if (similarControlsBuilder_ == null) { + similarControlsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder>( + similarControls_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + similarControls_ = null; + } + return similarControlsBuilder_; + } + + private java.util.List + cloudControlReports_ = java.util.Collections.emptyList(); + + private void ensureCloudControlReportsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + cloudControlReports_ = + new java.util.ArrayList( + cloudControlReports_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReportOrBuilder> + cloudControlReportsBuilder_; + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public java.util.List + getCloudControlReportsList() { + if (cloudControlReportsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cloudControlReports_); + } else { + return cloudControlReportsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public int getCloudControlReportsCount() { + if (cloudControlReportsBuilder_ == null) { + return cloudControlReports_.size(); + } else { + return cloudControlReportsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport getCloudControlReports( + int index) { + if (cloudControlReportsBuilder_ == null) { + return cloudControlReports_.get(index); + } else { + return cloudControlReportsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public Builder setCloudControlReports( + int index, com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport value) { + if (cloudControlReportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlReportsIsMutable(); + cloudControlReports_.set(index, value); + onChanged(); + } else { + cloudControlReportsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public Builder setCloudControlReports( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder builderForValue) { + if (cloudControlReportsBuilder_ == null) { + ensureCloudControlReportsIsMutable(); + cloudControlReports_.set(index, builderForValue.build()); + onChanged(); + } else { + cloudControlReportsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public Builder addCloudControlReports( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport value) { + if (cloudControlReportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlReportsIsMutable(); + cloudControlReports_.add(value); + onChanged(); + } else { + cloudControlReportsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public Builder addCloudControlReports( + int index, com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport value) { + if (cloudControlReportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlReportsIsMutable(); + cloudControlReports_.add(index, value); + onChanged(); + } else { + cloudControlReportsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public Builder addCloudControlReports( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder builderForValue) { + if (cloudControlReportsBuilder_ == null) { + ensureCloudControlReportsIsMutable(); + cloudControlReports_.add(builderForValue.build()); + onChanged(); + } else { + cloudControlReportsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public Builder addCloudControlReports( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder builderForValue) { + if (cloudControlReportsBuilder_ == null) { + ensureCloudControlReportsIsMutable(); + cloudControlReports_.add(index, builderForValue.build()); + onChanged(); + } else { + cloudControlReportsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public Builder addAllCloudControlReports( + java.lang.Iterable + values) { + if (cloudControlReportsBuilder_ == null) { + ensureCloudControlReportsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudControlReports_); + onChanged(); + } else { + cloudControlReportsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public Builder clearCloudControlReports() { + if (cloudControlReportsBuilder_ == null) { + cloudControlReports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + cloudControlReportsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public Builder removeCloudControlReports(int index) { + if (cloudControlReportsBuilder_ == null) { + ensureCloudControlReportsIsMutable(); + cloudControlReports_.remove(index); + onChanged(); + } else { + cloudControlReportsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder + getCloudControlReportsBuilder(int index) { + return getCloudControlReportsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReportOrBuilder + getCloudControlReportsOrBuilder(int index) { + if (cloudControlReportsBuilder_ == null) { + return cloudControlReports_.get(index); + } else { + return cloudControlReportsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlReportOrBuilder> + getCloudControlReportsOrBuilderList() { + if (cloudControlReportsBuilder_ != null) { + return cloudControlReportsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cloudControlReports_); + } + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder + addCloudControlReportsBuilder() { + return getCloudControlReportsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder + addCloudControlReportsBuilder(int index) { + return getCloudControlReportsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of cloud control reports.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + public java.util.List + getCloudControlReportsBuilderList() { + return getCloudControlReportsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReportOrBuilder> + getCloudControlReportsFieldBuilder() { + if (cloudControlReportsBuilder_ == null) { + cloudControlReportsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReportOrBuilder>( + cloudControlReports_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + cloudControlReports_ = null; + } + return cloudControlReportsBuilder_; + } + + private int controlResponsibilityType_ = 0; + + /** + * + * + *
                                    +     * The responsibility type for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * + * + * @return The enum numeric value on the wire for controlResponsibilityType. + */ + @java.lang.Override + public int getControlResponsibilityTypeValue() { + return controlResponsibilityType_; + } + + /** + * + * + *
                                    +     * The responsibility type for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * + * + * @param value The enum numeric value on the wire for controlResponsibilityType to set. + * @return This builder for chaining. + */ + public Builder setControlResponsibilityTypeValue(int value) { + controlResponsibilityType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The responsibility type for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * + * + * @return The controlResponsibilityType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + getControlResponsibilityType() { + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType result = + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType.forNumber( + controlResponsibilityType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * The responsibility type for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * + * + * @param value The controlResponsibilityType to set. + * @return This builder for chaining. + */ + public Builder setControlResponsibilityType( + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + controlResponsibilityType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The responsibility type for the control.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * + * + * @return This builder for chaining. + */ + public Builder clearControlResponsibilityType() { + bitField0_ = (bitField0_ & ~0x00000100); + controlResponsibilityType_ = 0; + onChanged(); + return this; + } + + private boolean isFakeControl_; + + /** + * + * + *
                                    +     * Whether the control is a fake control. Fake controls are created
                                    +     * and mapped to cloud controls that don't belong to a control group.
                                    +     * 
                                    + * + * bool is_fake_control = 10; + * + * @return The isFakeControl. + */ + @java.lang.Override + public boolean getIsFakeControl() { + return isFakeControl_; + } + + /** + * + * + *
                                    +     * Whether the control is a fake control. Fake controls are created
                                    +     * and mapped to cloud controls that don't belong to a control group.
                                    +     * 
                                    + * + * bool is_fake_control = 10; + * + * @param value The isFakeControl to set. + * @return This builder for chaining. + */ + public Builder setIsFakeControl(boolean value) { + + isFakeControl_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Whether the control is a fake control. Fake controls are created
                                    +     * and mapped to cloud controls that don't belong to a control group.
                                    +     * 
                                    + * + * bool is_fake_control = 10; + * + * @return This builder for chaining. + */ + public Builder clearIsFakeControl() { + bitField0_ = (bitField0_ & ~0x00000200); + isFakeControl_ = false; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                    +     * Identifier. The name of the control compliance summary.
                                    +     * 
                                    + * + * string name = 11 [(.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. The name of the control compliance summary.
                                    +     * 
                                    + * + * string name = 11 [(.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. The name of the control compliance summary.
                                    +     * 
                                    + * + * string name = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the control compliance summary.
                                    +     * 
                                    + * + * string name = 11 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the control compliance summary.
                                    +     * 
                                    + * + * string name = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary) + private static final com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ControlComplianceSummary 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.cloudsecuritycompliance.v1.ControlComplianceSummary + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryName.java new file mode 100644 index 000000000000..5492d06a4221 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryName.java @@ -0,0 +1,580 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 ControlComplianceSummaryName implements ResourceName { + private static final PathTemplate + PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}"); + private static final PathTemplate + FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}"); + private static final PathTemplate + ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String frameworkComplianceReport; + private final String controlComplianceSummary; + private final String folder; + private final String organization; + + @Deprecated + protected ControlComplianceSummaryName() { + project = null; + location = null; + frameworkComplianceReport = null; + controlComplianceSummary = null; + folder = null; + organization = null; + } + + private ControlComplianceSummaryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkComplianceReport = Preconditions.checkNotNull(builder.getFrameworkComplianceReport()); + controlComplianceSummary = Preconditions.checkNotNull(builder.getControlComplianceSummary()); + folder = null; + organization = null; + pathTemplate = PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY; + } + + private ControlComplianceSummaryName( + FolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkComplianceReport = Preconditions.checkNotNull(builder.getFrameworkComplianceReport()); + controlComplianceSummary = Preconditions.checkNotNull(builder.getControlComplianceSummary()); + project = null; + organization = null; + pathTemplate = FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY; + } + + private ControlComplianceSummaryName( + OrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkComplianceReport = Preconditions.checkNotNull(builder.getFrameworkComplianceReport()); + controlComplianceSummary = Preconditions.checkNotNull(builder.getControlComplianceSummary()); + project = null; + folder = null; + pathTemplate = ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceReport() { + return frameworkComplianceReport; + } + + public String getControlComplianceSummary() { + return controlComplianceSummary; + } + + public String getFolder() { + return folder; + } + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder + newProjectLocationFrameworkComplianceReportControlComplianceSummaryBuilder() { + return new Builder(); + } + + public static FolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder + newFolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder() { + return new FolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder(); + } + + public static OrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder + newOrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder() { + return new OrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ControlComplianceSummaryName of( + String project, + String location, + String frameworkComplianceReport, + String controlComplianceSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .setControlComplianceSummary(controlComplianceSummary) + .build(); + } + + public static ControlComplianceSummaryName + ofProjectLocationFrameworkComplianceReportControlComplianceSummaryName( + String project, + String location, + String frameworkComplianceReport, + String controlComplianceSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .setControlComplianceSummary(controlComplianceSummary) + .build(); + } + + public static ControlComplianceSummaryName + ofFolderLocationFrameworkComplianceReportControlComplianceSummaryName( + String folder, + String location, + String frameworkComplianceReport, + String controlComplianceSummary) { + return newFolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder() + .setFolder(folder) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .setControlComplianceSummary(controlComplianceSummary) + .build(); + } + + public static ControlComplianceSummaryName + ofOrganizationLocationFrameworkComplianceReportControlComplianceSummaryName( + String organization, + String location, + String frameworkComplianceReport, + String controlComplianceSummary) { + return newOrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .setControlComplianceSummary(controlComplianceSummary) + .build(); + } + + public static String format( + String project, + String location, + String frameworkComplianceReport, + String controlComplianceSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .setControlComplianceSummary(controlComplianceSummary) + .build() + .toString(); + } + + public static String formatProjectLocationFrameworkComplianceReportControlComplianceSummaryName( + String project, + String location, + String frameworkComplianceReport, + String controlComplianceSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .setControlComplianceSummary(controlComplianceSummary) + .build() + .toString(); + } + + public static String formatFolderLocationFrameworkComplianceReportControlComplianceSummaryName( + String folder, + String location, + String frameworkComplianceReport, + String controlComplianceSummary) { + return newFolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder() + .setFolder(folder) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .setControlComplianceSummary(controlComplianceSummary) + .build() + .toString(); + } + + public static String + formatOrganizationLocationFrameworkComplianceReportControlComplianceSummaryName( + String organization, + String location, + String frameworkComplianceReport, + String controlComplianceSummary) { + return newOrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .setControlComplianceSummary(controlComplianceSummary) + .build() + .toString(); + } + + public static ControlComplianceSummaryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY.matches( + formattedString)) { + Map matchMap = + PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY.match( + formattedString); + return ofProjectLocationFrameworkComplianceReportControlComplianceSummaryName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("framework_compliance_report"), + matchMap.get("control_compliance_summary")); + } else if (FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY.matches( + formattedString)) { + Map matchMap = + FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY.match( + formattedString); + return ofFolderLocationFrameworkComplianceReportControlComplianceSummaryName( + matchMap.get("folder"), + matchMap.get("location"), + matchMap.get("framework_compliance_report"), + matchMap.get("control_compliance_summary")); + } else if (ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY.matches( + formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY.match( + formattedString); + return ofOrganizationLocationFrameworkComplianceReportControlComplianceSummaryName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("framework_compliance_report"), + matchMap.get("control_compliance_summary")); + } + throw new ValidationException( + "ControlComplianceSummaryName.parse: formattedString not in valid format"); + } + + 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 (ControlComplianceSummaryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY.matches( + formattedString) + || FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY.matches( + formattedString) + || ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY.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 (frameworkComplianceReport != null) { + fieldMapBuilder.put("framework_compliance_report", frameworkComplianceReport); + } + if (controlComplianceSummary != null) { + fieldMapBuilder.put("control_compliance_summary", controlComplianceSummary); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ControlComplianceSummaryName that = ((ControlComplianceSummaryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.frameworkComplianceReport, that.frameworkComplianceReport) + && Objects.equals(this.controlComplianceSummary, that.controlComplianceSummary) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.organization, that.organization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(frameworkComplianceReport); + h *= 1000003; + h ^= Objects.hashCode(controlComplianceSummary); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(organization); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}. + */ + public static class Builder { + private String project; + private String location; + private String frameworkComplianceReport; + private String controlComplianceSummary; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceReport() { + return frameworkComplianceReport; + } + + public String getControlComplianceSummary() { + return controlComplianceSummary; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFrameworkComplianceReport(String frameworkComplianceReport) { + this.frameworkComplianceReport = frameworkComplianceReport; + return this; + } + + public Builder setControlComplianceSummary(String controlComplianceSummary) { + this.controlComplianceSummary = controlComplianceSummary; + return this; + } + + private Builder(ControlComplianceSummaryName controlComplianceSummaryName) { + Preconditions.checkArgument( + Objects.equals( + controlComplianceSummaryName.pathTemplate, + PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT_CONTROL_COMPLIANCE_SUMMARY), + "toBuilder is only supported when ControlComplianceSummaryName has the pattern of" + + " projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}"); + this.project = controlComplianceSummaryName.project; + this.location = controlComplianceSummaryName.location; + this.frameworkComplianceReport = controlComplianceSummaryName.frameworkComplianceReport; + this.controlComplianceSummary = controlComplianceSummaryName.controlComplianceSummary; + } + + public ControlComplianceSummaryName build() { + return new ControlComplianceSummaryName(this); + } + } + + /** + * Builder for + * folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}. + */ + public static class FolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder { + private String folder; + private String location; + private String frameworkComplianceReport; + private String controlComplianceSummary; + + protected FolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder() {} + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceReport() { + return frameworkComplianceReport; + } + + public String getControlComplianceSummary() { + return controlComplianceSummary; + } + + public FolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder setFolder( + String folder) { + this.folder = folder; + return this; + } + + public FolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder setLocation( + String location) { + this.location = location; + return this; + } + + public FolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder + setFrameworkComplianceReport(String frameworkComplianceReport) { + this.frameworkComplianceReport = frameworkComplianceReport; + return this; + } + + public FolderLocationFrameworkComplianceReportControlComplianceSummaryBuilder + setControlComplianceSummary(String controlComplianceSummary) { + this.controlComplianceSummary = controlComplianceSummary; + return this; + } + + public ControlComplianceSummaryName build() { + return new ControlComplianceSummaryName(this); + } + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}. + */ + public static class OrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder { + private String organization; + private String location; + private String frameworkComplianceReport; + private String controlComplianceSummary; + + protected OrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceReport() { + return frameworkComplianceReport; + } + + public String getControlComplianceSummary() { + return controlComplianceSummary; + } + + public OrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder + setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder setLocation( + String location) { + this.location = location; + return this; + } + + public OrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder + setFrameworkComplianceReport(String frameworkComplianceReport) { + this.frameworkComplianceReport = frameworkComplianceReport; + return this; + } + + public OrganizationLocationFrameworkComplianceReportControlComplianceSummaryBuilder + setControlComplianceSummary(String controlComplianceSummary) { + this.controlComplianceSummary = controlComplianceSummary; + return this; + } + + public ControlComplianceSummaryName build() { + return new ControlComplianceSummaryName(this); + } + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryOrBuilder.java new file mode 100644 index 000000000000..8f1d621d9904 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryOrBuilder.java @@ -0,0 +1,403 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ControlComplianceSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The name of the control.
                                    +   * 
                                    + * + * string control = 1; + * + * @return The control. + */ + java.lang.String getControl(); + + /** + * + * + *
                                    +   * The name of the control.
                                    +   * 
                                    + * + * string control = 1; + * + * @return The bytes for control. + */ + com.google.protobuf.ByteString getControlBytes(); + + /** + * + * + *
                                    +   * The display name of the control.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                    +   * The display name of the control.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                    +   * The description of the control.
                                    +   * 
                                    + * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                    +   * The description of the control.
                                    +   * 
                                    + * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                    +   * Output only. The overall evaluation status of the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for overallEvaluationState. + */ + int getOverallEvaluationStateValue(); + + /** + * + * + *
                                    +   * Output only. The overall evaluation status of the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvaluationState overall_evaluation_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The overallEvaluationState. + */ + com.google.cloud.cloudsecuritycompliance.v1.EvaluationState getOverallEvaluationState(); + + /** + * + * + *
                                    +   * The total number of findings for the control.
                                    +   * 
                                    + * + * int32 total_findings_count = 5; + * + * @return The totalFindingsCount. + */ + int getTotalFindingsCount(); + + /** + * + * + *
                                    +   * The list of compliance frameworks that the control belongs to.
                                    +   * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @return A list containing the complianceFrameworks. + */ + java.util.List getComplianceFrameworksList(); + + /** + * + * + *
                                    +   * The list of compliance frameworks that the control belongs to.
                                    +   * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @return The count of complianceFrameworks. + */ + int getComplianceFrameworksCount(); + + /** + * + * + *
                                    +   * The list of compliance frameworks that the control belongs to.
                                    +   * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param index The index of the element to return. + * @return The complianceFrameworks at the given index. + */ + java.lang.String getComplianceFrameworks(int index); + + /** + * + * + *
                                    +   * The list of compliance frameworks that the control belongs to.
                                    +   * 
                                    + * + * repeated string compliance_frameworks = 6; + * + * @param index The index of the value to return. + * @return The bytes of the complianceFrameworks at the given index. + */ + com.google.protobuf.ByteString getComplianceFrameworksBytes(int index); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + java.util.List + getSimilarControlsList(); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls getSimilarControls(int index); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + int getSimilarControlsCount(); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + java.util.List + getSimilarControlsOrBuilderList(); + + /** + * + * + *
                                    +   * The list of similar controls.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.SimilarControls similar_controls = 7; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder getSimilarControlsOrBuilder( + int index); + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + java.util.List + getCloudControlReportsList(); + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReport getCloudControlReports(int index); + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + int getCloudControlReportsCount(); + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + java.util.List + getCloudControlReportsOrBuilderList(); + + /** + * + * + *
                                    +   * The list of cloud control reports.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlReport cloud_control_reports = 8; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlReportOrBuilder + getCloudControlReportsOrBuilder(int index); + + /** + * + * + *
                                    +   * The responsibility type for the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * + * + * @return The enum numeric value on the wire for controlResponsibilityType. + */ + int getControlResponsibilityTypeValue(); + + /** + * + * + *
                                    +   * The responsibility type for the control.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType control_responsibility_type = 9; + * + * + * @return The controlResponsibilityType. + */ + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + getControlResponsibilityType(); + + /** + * + * + *
                                    +   * Whether the control is a fake control. Fake controls are created
                                    +   * and mapped to cloud controls that don't belong to a control group.
                                    +   * 
                                    + * + * bool is_fake_control = 10; + * + * @return The isFakeControl. + */ + boolean getIsFakeControl(); + + /** + * + * + *
                                    +   * Identifier. The name of the control compliance summary.
                                    +   * 
                                    + * + * string name = 11 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Identifier. The name of the control compliance summary.
                                    +   * 
                                    + * + * string name = 11 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlFamily.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlFamily.java new file mode 100644 index 000000000000..3c092a0034ae --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlFamily.java @@ -0,0 +1,824 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The regulatory family of the control.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ControlFamily} + */ +public final class ControlFamily extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ControlFamily) + ControlFamilyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ControlFamily.newBuilder() to construct. + private ControlFamily(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ControlFamily() { + familyId_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ControlFamily(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.class, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder.class); + } + + public static final int FAMILY_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object familyId_ = ""; + + /** + * + * + *
                                    +   * The identifier for the regulatory control family.
                                    +   * 
                                    + * + * string family_id = 1; + * + * @return The familyId. + */ + @java.lang.Override + public java.lang.String getFamilyId() { + java.lang.Object ref = familyId_; + 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(); + familyId_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The identifier for the regulatory control family.
                                    +   * 
                                    + * + * string family_id = 1; + * + * @return The bytes for familyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFamilyIdBytes() { + java.lang.Object ref = familyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                    +   * The friendly name for the regulatory control family.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The friendly name for the regulatory control family.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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.GeneratedMessageV3.isStringEmpty(familyId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, familyId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, familyId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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.cloudsecuritycompliance.v1.ControlFamily)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily other = + (com.google.cloud.cloudsecuritycompliance.v1.ControlFamily) obj; + + if (!getFamilyId().equals(other.getFamilyId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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) + FAMILY_ID_FIELD_NUMBER; + hash = (53 * hash) + getFamilyId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily 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.cloudsecuritycompliance.v1.ControlFamily parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily 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.cloudsecuritycompliance.v1.ControlFamily parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The regulatory family of the control.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ControlFamily} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ControlFamily) + com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.class, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + familyId_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamily getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamily build() { + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamily buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily result = + new com.google.cloud.cloudsecuritycompliance.v1.ControlFamily(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.ControlFamily result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.familyId_ = familyId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.ControlFamily) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.ControlFamily) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.ControlFamily other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance()) + return this; + if (!other.getFamilyId().isEmpty()) { + familyId_ = other.familyId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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: + { + familyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = 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 familyId_ = ""; + + /** + * + * + *
                                    +     * The identifier for the regulatory control family.
                                    +     * 
                                    + * + * string family_id = 1; + * + * @return The familyId. + */ + public java.lang.String getFamilyId() { + java.lang.Object ref = familyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The identifier for the regulatory control family.
                                    +     * 
                                    + * + * string family_id = 1; + * + * @return The bytes for familyId. + */ + public com.google.protobuf.ByteString getFamilyIdBytes() { + java.lang.Object ref = familyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The identifier for the regulatory control family.
                                    +     * 
                                    + * + * string family_id = 1; + * + * @param value The familyId to set. + * @return This builder for chaining. + */ + public Builder setFamilyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + familyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The identifier for the regulatory control family.
                                    +     * 
                                    + * + * string family_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearFamilyId() { + familyId_ = getDefaultInstance().getFamilyId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The identifier for the regulatory control family.
                                    +     * 
                                    + * + * string family_id = 1; + * + * @param value The bytes for familyId to set. + * @return This builder for chaining. + */ + public Builder setFamilyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + familyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                    +     * The friendly name for the regulatory control family.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The friendly name for the regulatory control family.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The friendly name for the regulatory control family.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The friendly name for the regulatory control family.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The friendly name for the regulatory control family.
                                    +     * 
                                    + * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ControlFamily) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ControlFamily) + private static final com.google.cloud.cloudsecuritycompliance.v1.ControlFamily DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.ControlFamily(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ControlFamily getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ControlFamily 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.cloudsecuritycompliance.v1.ControlFamily getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlFamilyOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlFamilyOrBuilder.java new file mode 100644 index 000000000000..f63fa96a76c6 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlFamilyOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ControlFamilyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ControlFamily) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The identifier for the regulatory control family.
                                    +   * 
                                    + * + * string family_id = 1; + * + * @return The familyId. + */ + java.lang.String getFamilyId(); + + /** + * + * + *
                                    +   * The identifier for the regulatory control family.
                                    +   * 
                                    + * + * string family_id = 1; + * + * @return The bytes for familyId. + */ + com.google.protobuf.ByteString getFamilyIdBytes(); + + /** + * + * + *
                                    +   * The friendly name for the regulatory control family.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                    +   * The friendly name for the regulatory control family.
                                    +   * 
                                    + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequest.java index 7f8411524c14..abd6251c5a7a 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for creating a CloudControl
                                    + * The request message for [CreateCloudControl][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest} @@ -77,6 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -104,6 +105,7 @@ public java.lang.String getParent() { *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -134,9 +136,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -   * Required. ID of the CloudControl.
                                    -   * This is the last segment of the CloudControl resource name.
                                    -   * Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                    +   * Required. The identifier for the cloud control, which is the last segment
                                    +   * of the cloud control name. The format is
                                    +   * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                        * 
                                    * * string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -160,9 +162,9 @@ public java.lang.String getCloudControlId() { * * *
                                    -   * Required. ID of the CloudControl.
                                    -   * This is the last segment of the CloudControl resource name.
                                    -   * Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                    +   * Required. The identifier for the cloud control, which is the last segment
                                    +   * of the cloud control name. The format is
                                    +   * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                        * 
                                    * * string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -189,7 +191,7 @@ public com.google.protobuf.ByteString getCloudControlIdBytes() { * * *
                                    -   * Required. The resource being created
                                    +   * Required. The cloud control that's being created.
                                        * 
                                    * * @@ -207,7 +209,7 @@ public boolean hasCloudControl() { * * *
                                    -   * Required. The resource being created
                                    +   * Required. The cloud control that's being created.
                                        * 
                                    * * @@ -227,7 +229,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl getCloudControl( * * *
                                    -   * Required. The resource being created
                                    +   * Required. The cloud control that's being created.
                                        * 
                                    * * @@ -431,7 +433,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for creating a CloudControl
                                    +   * The request message for [CreateCloudControl][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest} @@ -670,6 +672,7 @@ public Builder mergeFrom( *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -696,6 +699,7 @@ public java.lang.String getParent() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -722,6 +726,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -747,6 +752,7 @@ public Builder setParent(java.lang.String value) { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -768,6 +774,7 @@ public Builder clearParent() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -794,9 +801,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. ID of the CloudControl.
                                    -     * This is the last segment of the CloudControl resource name.
                                    -     * Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                    +     * Required. The identifier for the cloud control, which is the last segment
                                    +     * of the cloud control name. The format is
                                    +     * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                          * 
                                    * * string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -819,9 +826,9 @@ public java.lang.String getCloudControlId() { * * *
                                    -     * Required. ID of the CloudControl.
                                    -     * This is the last segment of the CloudControl resource name.
                                    -     * Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                    +     * Required. The identifier for the cloud control, which is the last segment
                                    +     * of the cloud control name. The format is
                                    +     * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                          * 
                                    * * string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -844,9 +851,9 @@ public com.google.protobuf.ByteString getCloudControlIdBytes() { * * *
                                    -     * Required. ID of the CloudControl.
                                    -     * This is the last segment of the CloudControl resource name.
                                    -     * Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                    +     * Required. The identifier for the cloud control, which is the last segment
                                    +     * of the cloud control name. The format is
                                    +     * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                          * 
                                    * * string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -868,9 +875,9 @@ public Builder setCloudControlId(java.lang.String value) { * * *
                                    -     * Required. ID of the CloudControl.
                                    -     * This is the last segment of the CloudControl resource name.
                                    -     * Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                    +     * Required. The identifier for the cloud control, which is the last segment
                                    +     * of the cloud control name. The format is
                                    +     * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                          * 
                                    * * string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -888,9 +895,9 @@ public Builder clearCloudControlId() { * * *
                                    -     * Required. ID of the CloudControl.
                                    -     * This is the last segment of the CloudControl resource name.
                                    -     * Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                    +     * Required. The identifier for the cloud control, which is the last segment
                                    +     * of the cloud control name. The format is
                                    +     * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                          * 
                                    * * string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -920,7 +927,7 @@ public Builder setCloudControlIdBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. The resource being created
                                    +     * Required. The cloud control that's being created.
                                          * 
                                    * * @@ -937,7 +944,7 @@ public boolean hasCloudControl() { * * *
                                    -     * Required. The resource being created
                                    +     * Required. The cloud control that's being created.
                                          * 
                                    * * @@ -960,7 +967,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl getCloudControl( * * *
                                    -     * Required. The resource being created
                                    +     * Required. The cloud control that's being created.
                                          * 
                                    * * @@ -985,7 +992,7 @@ public Builder setCloudControl(com.google.cloud.cloudsecuritycompliance.v1.Cloud * * *
                                    -     * Required. The resource being created
                                    +     * Required. The cloud control that's being created.
                                          * 
                                    * * @@ -1008,7 +1015,7 @@ public Builder setCloudControl( * * *
                                    -     * Required. The resource being created
                                    +     * Required. The cloud control that's being created.
                                          * 
                                    * * @@ -1040,7 +1047,7 @@ public Builder mergeCloudControl( * * *
                                    -     * Required. The resource being created
                                    +     * Required. The cloud control that's being created.
                                          * 
                                    * * @@ -1062,7 +1069,7 @@ public Builder clearCloudControl() { * * *
                                    -     * Required. The resource being created
                                    +     * Required. The cloud control that's being created.
                                          * 
                                    * * @@ -1080,7 +1087,7 @@ public Builder clearCloudControl() { * * *
                                    -     * Required. The resource being created
                                    +     * Required. The cloud control that's being created.
                                          * 
                                    * * @@ -1102,7 +1109,7 @@ public Builder clearCloudControl() { * * *
                                    -     * Required. The resource being created
                                    +     * Required. The cloud control that's being created.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequestOrBuilder.java index 5a53197b7a9e..e399f47112e9 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequestOrBuilder.java @@ -30,6 +30,7 @@ public interface CreateCloudControlRequestOrBuilder *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -46,6 +47,7 @@ public interface CreateCloudControlRequestOrBuilder *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -60,9 +62,9 @@ public interface CreateCloudControlRequestOrBuilder * * *
                                    -   * Required. ID of the CloudControl.
                                    -   * This is the last segment of the CloudControl resource name.
                                    -   * Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                    +   * Required. The identifier for the cloud control, which is the last segment
                                    +   * of the cloud control name. The format is
                                    +   * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                        * 
                                    * * string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -75,9 +77,9 @@ public interface CreateCloudControlRequestOrBuilder * * *
                                    -   * Required. ID of the CloudControl.
                                    -   * This is the last segment of the CloudControl resource name.
                                    -   * Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                    +   * Required. The identifier for the cloud control, which is the last segment
                                    +   * of the cloud control name. The format is
                                    +   * `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
                                        * 
                                    * * string cloud_control_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -90,7 +92,7 @@ public interface CreateCloudControlRequestOrBuilder * * *
                                    -   * Required. The resource being created
                                    +   * Required. The cloud control that's being created.
                                        * 
                                    * * @@ -105,7 +107,7 @@ public interface CreateCloudControlRequestOrBuilder * * *
                                    -   * Required. The resource being created
                                    +   * Required. The cloud control that's being created.
                                        * 
                                    * * @@ -120,7 +122,7 @@ public interface CreateCloudControlRequestOrBuilder * * *
                                    -   * Required. The resource being created
                                    +   * Required. The cloud control that's being created.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkAuditRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkAuditRequest.java new file mode 100644 index 000000000000..c4697680127a --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkAuditRequest.java @@ -0,0 +1,1247 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [CreateFrameworkAudit][].
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest} + */ +public final class CreateFrameworkAuditRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest) + CreateFrameworkAuditRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateFrameworkAuditRequest.newBuilder() to construct. + private CreateFrameworkAuditRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateFrameworkAuditRequest() { + parent_ = ""; + frameworkAuditId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFrameworkAuditRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest.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 where this framework audit is created.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * 
                                    + * + * + * 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 where this framework audit is created.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * 
                                    + * + * + * 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 FRAMEWORK_AUDIT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object frameworkAuditId_ = ""; + + /** + * + * + *
                                    +   * Optional. The ID to use for the framework audit. The ID becomes the final
                                    +   * component of the framework audit's full resource name.
                                    +   *
                                    +   * The ID must be between 4-63 characters, and valid characters
                                    +   * are `\[a-z][0-9]-\`.
                                    +   * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The frameworkAuditId. + */ + @java.lang.Override + public java.lang.String getFrameworkAuditId() { + java.lang.Object ref = frameworkAuditId_; + 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(); + frameworkAuditId_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Optional. The ID to use for the framework audit. The ID becomes the final
                                    +   * component of the framework audit's full resource name.
                                    +   *
                                    +   * The ID must be between 4-63 characters, and valid characters
                                    +   * are `\[a-z][0-9]-\`.
                                    +   * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for frameworkAuditId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrameworkAuditIdBytes() { + java.lang.Object ref = frameworkAuditId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkAuditId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FRAMEWORK_AUDIT_FIELD_NUMBER = 3; + private com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit frameworkAudit_; + + /** + * + * + *
                                    +   * Required. The framework audit to create.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the frameworkAudit field is set. + */ + @java.lang.Override + public boolean hasFrameworkAudit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Required. The framework audit to create.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The frameworkAudit. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getFrameworkAudit() { + return frameworkAudit_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.getDefaultInstance() + : frameworkAudit_; + } + + /** + * + * + *
                                    +   * Required. The framework audit to create.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder + getFrameworkAuditOrBuilder() { + return frameworkAudit_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.getDefaultInstance() + : frameworkAudit_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkAuditId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, frameworkAuditId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFrameworkAudit()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkAuditId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, frameworkAuditId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFrameworkAudit()); + } + 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.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFrameworkAuditId().equals(other.getFrameworkAuditId())) return false; + if (hasFrameworkAudit() != other.hasFrameworkAudit()) return false; + if (hasFrameworkAudit()) { + if (!getFrameworkAudit().equals(other.getFrameworkAudit())) 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) + FRAMEWORK_AUDIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkAuditId().hashCode(); + if (hasFrameworkAudit()) { + hash = (37 * hash) + FRAMEWORK_AUDIT_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkAudit().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest 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.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest 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.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [CreateFrameworkAudit][].
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest) + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFrameworkAuditFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + frameworkAuditId_ = ""; + frameworkAudit_ = null; + if (frameworkAuditBuilder_ != null) { + frameworkAuditBuilder_.dispose(); + frameworkAuditBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_CreateFrameworkAuditRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest build() { + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.frameworkAuditId_ = frameworkAuditId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.frameworkAudit_ = + frameworkAuditBuilder_ == null ? frameworkAudit_ : frameworkAuditBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFrameworkAuditId().isEmpty()) { + frameworkAuditId_ = other.frameworkAuditId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFrameworkAudit()) { + mergeFrameworkAudit(other.getFrameworkAudit()); + } + 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: + { + frameworkAuditId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getFrameworkAuditFieldBuilder().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 where this framework audit is created.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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 where this framework audit is created.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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 where this framework audit is created.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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 where this framework audit is created.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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 where this framework audit is created.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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 frameworkAuditId_ = ""; + + /** + * + * + *
                                    +     * Optional. The ID to use for the framework audit. The ID becomes the final
                                    +     * component of the framework audit's full resource name.
                                    +     *
                                    +     * The ID must be between 4-63 characters, and valid characters
                                    +     * are `\[a-z][0-9]-\`.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The frameworkAuditId. + */ + public java.lang.String getFrameworkAuditId() { + java.lang.Object ref = frameworkAuditId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + frameworkAuditId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Optional. The ID to use for the framework audit. The ID becomes the final
                                    +     * component of the framework audit's full resource name.
                                    +     *
                                    +     * The ID must be between 4-63 characters, and valid characters
                                    +     * are `\[a-z][0-9]-\`.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for frameworkAuditId. + */ + public com.google.protobuf.ByteString getFrameworkAuditIdBytes() { + java.lang.Object ref = frameworkAuditId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkAuditId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Optional. The ID to use for the framework audit. The ID becomes the final
                                    +     * component of the framework audit's full resource name.
                                    +     *
                                    +     * The ID must be between 4-63 characters, and valid characters
                                    +     * are `\[a-z][0-9]-\`.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The frameworkAuditId to set. + * @return This builder for chaining. + */ + public Builder setFrameworkAuditId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + frameworkAuditId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The ID to use for the framework audit. The ID becomes the final
                                    +     * component of the framework audit's full resource name.
                                    +     *
                                    +     * The ID must be between 4-63 characters, and valid characters
                                    +     * are `\[a-z][0-9]-\`.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFrameworkAuditId() { + frameworkAuditId_ = getDefaultInstance().getFrameworkAuditId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The ID to use for the framework audit. The ID becomes the final
                                    +     * component of the framework audit's full resource name.
                                    +     *
                                    +     * The ID must be between 4-63 characters, and valid characters
                                    +     * are `\[a-z][0-9]-\`.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for frameworkAuditId to set. + * @return This builder for chaining. + */ + public Builder setFrameworkAuditIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameworkAuditId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit frameworkAudit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder> + frameworkAuditBuilder_; + + /** + * + * + *
                                    +     * Required. The framework audit to create.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the frameworkAudit field is set. + */ + public boolean hasFrameworkAudit() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                    +     * Required. The framework audit to create.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The frameworkAudit. + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getFrameworkAudit() { + if (frameworkAuditBuilder_ == null) { + return frameworkAudit_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.getDefaultInstance() + : frameworkAudit_; + } else { + return frameworkAuditBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Required. The framework audit to create.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit value) { + if (frameworkAuditBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + frameworkAudit_ = value; + } else { + frameworkAuditBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The framework audit to create.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder builderForValue) { + if (frameworkAuditBuilder_ == null) { + frameworkAudit_ = builderForValue.build(); + } else { + frameworkAuditBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The framework audit to create.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFrameworkAudit( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit value) { + if (frameworkAuditBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && frameworkAudit_ != null + && frameworkAudit_ + != com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit + .getDefaultInstance()) { + getFrameworkAuditBuilder().mergeFrom(value); + } else { + frameworkAudit_ = value; + } + } else { + frameworkAuditBuilder_.mergeFrom(value); + } + if (frameworkAudit_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The framework audit to create.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFrameworkAudit() { + bitField0_ = (bitField0_ & ~0x00000004); + frameworkAudit_ = null; + if (frameworkAuditBuilder_ != null) { + frameworkAuditBuilder_.dispose(); + frameworkAuditBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The framework audit to create.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder + getFrameworkAuditBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFrameworkAuditFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Required. The framework audit to create.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder + getFrameworkAuditOrBuilder() { + if (frameworkAuditBuilder_ != null) { + return frameworkAuditBuilder_.getMessageOrBuilder(); + } else { + return frameworkAudit_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.getDefaultInstance() + : frameworkAudit_; + } + } + + /** + * + * + *
                                    +     * Required. The framework audit to create.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder> + getFrameworkAuditFieldBuilder() { + if (frameworkAuditBuilder_ == null) { + frameworkAuditBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder>( + getFrameworkAudit(), getParentForChildren(), isClean()); + frameworkAudit_ = null; + } + return frameworkAuditBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFrameworkAuditRequest 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.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkAuditRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkAuditRequestOrBuilder.java new file mode 100644 index 000000000000..d635eb0e6ffb --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkAuditRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface CreateFrameworkAuditRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The parent resource where this framework audit is created.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                    +   * Required. The parent resource where this framework audit is created.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                    +   * Optional. The ID to use for the framework audit. The ID becomes the final
                                    +   * component of the framework audit's full resource name.
                                    +   *
                                    +   * The ID must be between 4-63 characters, and valid characters
                                    +   * are `\[a-z][0-9]-\`.
                                    +   * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The frameworkAuditId. + */ + java.lang.String getFrameworkAuditId(); + + /** + * + * + *
                                    +   * Optional. The ID to use for the framework audit. The ID becomes the final
                                    +   * component of the framework audit's full resource name.
                                    +   *
                                    +   * The ID must be between 4-63 characters, and valid characters
                                    +   * are `\[a-z][0-9]-\`.
                                    +   * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for frameworkAuditId. + */ + com.google.protobuf.ByteString getFrameworkAuditIdBytes(); + + /** + * + * + *
                                    +   * Required. The framework audit to create.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the frameworkAudit field is set. + */ + boolean hasFrameworkAudit(); + + /** + * + * + *
                                    +   * Required. The framework audit to create.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The frameworkAudit. + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getFrameworkAudit(); + + /** + * + * + *
                                    +   * Required. The framework audit to create.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audit = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder getFrameworkAuditOrBuilder(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequest.java index 7bd9748073c3..62fc5a552bf1 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for CreateFrameworkDeployment API.
                                    + * The request message for [CreateFrameworkDeployment][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest} @@ -77,9 +77,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. The parent resource of the FrameworkDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource of the framework deployment in the format
                                    +   * `organizations/{organization}/locations/{location}`.
                                    +   * Only the global location is supported.
                                        * 
                                    * * @@ -105,9 +105,9 @@ public java.lang.String getParent() { * * *
                                    -   * Required. The parent resource of the FrameworkDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource of the framework deployment in the format
                                    +   * `organizations/{organization}/locations/{location}`.
                                    +   * Only the global location is supported.
                                        * 
                                    * * @@ -138,8 +138,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -   * Optional. User provided identifier. It should be unique in scope of a
                                    -   * parent. This is optional and if not provided, a random UUID will be
                                    +   * Optional. An identifier for the framework deployment that's unique in scope
                                    +   * of the parent. If you don't specify a value, then a random UUID is
                                        * generated.
                                        * 
                                    * @@ -164,8 +164,8 @@ public java.lang.String getFrameworkDeploymentId() { * * *
                                    -   * Optional. User provided identifier. It should be unique in scope of a
                                    -   * parent. This is optional and if not provided, a random UUID will be
                                    +   * Optional. An identifier for the framework deployment that's unique in scope
                                    +   * of the parent. If you don't specify a value, then a random UUID is
                                        * generated.
                                        * 
                                    * @@ -193,7 +193,7 @@ public com.google.protobuf.ByteString getFrameworkDeploymentIdBytes() { * * *
                                    -   * Required. The FrameworkDeployment to be created.
                                    +   * Required. The framework deployment that you're creating.
                                        * 
                                    * * @@ -211,7 +211,7 @@ public boolean hasFrameworkDeployment() { * * *
                                    -   * Required. The FrameworkDeployment to be created.
                                    +   * Required. The framework deployment that you're creating.
                                        * 
                                    * * @@ -231,7 +231,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -   * Required. The FrameworkDeployment to be created.
                                    +   * Required. The framework deployment that you're creating.
                                        * 
                                    * * @@ -441,7 +441,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for CreateFrameworkDeployment API.
                                    +   * The request message for [CreateFrameworkDeployment][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest} @@ -685,9 +685,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. The parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * Only the global location is supported.
                                          * 
                                    * * @@ -712,9 +712,9 @@ public java.lang.String getParent() { * * *
                                    -     * Required. The parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * Only the global location is supported.
                                          * 
                                    * * @@ -739,9 +739,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -     * Required. The parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * Only the global location is supported.
                                          * 
                                    * * @@ -765,9 +765,9 @@ public Builder setParent(java.lang.String value) { * * *
                                    -     * Required. The parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * Only the global location is supported.
                                          * 
                                    * * @@ -787,9 +787,9 @@ public Builder clearParent() { * * *
                                    -     * Required. The parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * Only the global location is supported.
                                          * 
                                    * * @@ -816,8 +816,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. User provided identifier. It should be unique in scope of a
                                    -     * parent. This is optional and if not provided, a random UUID will be
                                    +     * Optional. An identifier for the framework deployment that's unique in scope
                                    +     * of the parent. If you don't specify a value, then a random UUID is
                                          * generated.
                                          * 
                                    * @@ -841,8 +841,8 @@ public java.lang.String getFrameworkDeploymentId() { * * *
                                    -     * Optional. User provided identifier. It should be unique in scope of a
                                    -     * parent. This is optional and if not provided, a random UUID will be
                                    +     * Optional. An identifier for the framework deployment that's unique in scope
                                    +     * of the parent. If you don't specify a value, then a random UUID is
                                          * generated.
                                          * 
                                    * @@ -866,8 +866,8 @@ public com.google.protobuf.ByteString getFrameworkDeploymentIdBytes() { * * *
                                    -     * Optional. User provided identifier. It should be unique in scope of a
                                    -     * parent. This is optional and if not provided, a random UUID will be
                                    +     * Optional. An identifier for the framework deployment that's unique in scope
                                    +     * of the parent. If you don't specify a value, then a random UUID is
                                          * generated.
                                          * 
                                    * @@ -890,8 +890,8 @@ public Builder setFrameworkDeploymentId(java.lang.String value) { * * *
                                    -     * Optional. User provided identifier. It should be unique in scope of a
                                    -     * parent. This is optional and if not provided, a random UUID will be
                                    +     * Optional. An identifier for the framework deployment that's unique in scope
                                    +     * of the parent. If you don't specify a value, then a random UUID is
                                          * generated.
                                          * 
                                    * @@ -910,8 +910,8 @@ public Builder clearFrameworkDeploymentId() { * * *
                                    -     * Optional. User provided identifier. It should be unique in scope of a
                                    -     * parent. This is optional and if not provided, a random UUID will be
                                    +     * Optional. An identifier for the framework deployment that's unique in scope
                                    +     * of the parent. If you don't specify a value, then a random UUID is
                                          * generated.
                                          * 
                                    * @@ -942,7 +942,7 @@ public Builder setFrameworkDeploymentIdBytes(com.google.protobuf.ByteString valu * * *
                                    -     * Required. The FrameworkDeployment to be created.
                                    +     * Required. The framework deployment that you're creating.
                                          * 
                                    * * @@ -959,7 +959,7 @@ public boolean hasFrameworkDeployment() { * * *
                                    -     * Required. The FrameworkDeployment to be created.
                                    +     * Required. The framework deployment that you're creating.
                                          * 
                                    * * @@ -983,7 +983,7 @@ public boolean hasFrameworkDeployment() { * * *
                                    -     * Required. The FrameworkDeployment to be created.
                                    +     * Required. The framework deployment that you're creating.
                                          * 
                                    * * @@ -1009,7 +1009,7 @@ public Builder setFrameworkDeployment( * * *
                                    -     * Required. The FrameworkDeployment to be created.
                                    +     * Required. The framework deployment that you're creating.
                                          * 
                                    * * @@ -1032,7 +1032,7 @@ public Builder setFrameworkDeployment( * * *
                                    -     * Required. The FrameworkDeployment to be created.
                                    +     * Required. The framework deployment that you're creating.
                                          * 
                                    * * @@ -1065,7 +1065,7 @@ public Builder mergeFrameworkDeployment( * * *
                                    -     * Required. The FrameworkDeployment to be created.
                                    +     * Required. The framework deployment that you're creating.
                                          * 
                                    * * @@ -1087,7 +1087,7 @@ public Builder clearFrameworkDeployment() { * * *
                                    -     * Required. The FrameworkDeployment to be created.
                                    +     * Required. The framework deployment that you're creating.
                                          * 
                                    * * @@ -1105,7 +1105,7 @@ public Builder clearFrameworkDeployment() { * * *
                                    -     * Required. The FrameworkDeployment to be created.
                                    +     * Required. The framework deployment that you're creating.
                                          * 
                                    * * @@ -1127,7 +1127,7 @@ public Builder clearFrameworkDeployment() { * * *
                                    -     * Required. The FrameworkDeployment to be created.
                                    +     * Required. The framework deployment that you're creating.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequestOrBuilder.java index addabce9108d..298a89ae599a 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequestOrBuilder.java @@ -28,9 +28,9 @@ public interface CreateFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Required. The parent resource of the FrameworkDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource of the framework deployment in the format
                                    +   * `organizations/{organization}/locations/{location}`.
                                    +   * Only the global location is supported.
                                        * 
                                    * * @@ -45,9 +45,9 @@ public interface CreateFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Required. The parent resource of the FrameworkDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource of the framework deployment in the format
                                    +   * `organizations/{organization}/locations/{location}`.
                                    +   * Only the global location is supported.
                                        * 
                                    * * @@ -62,8 +62,8 @@ public interface CreateFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Optional. User provided identifier. It should be unique in scope of a
                                    -   * parent. This is optional and if not provided, a random UUID will be
                                    +   * Optional. An identifier for the framework deployment that's unique in scope
                                    +   * of the parent. If you don't specify a value, then a random UUID is
                                        * generated.
                                        * 
                                    * @@ -77,8 +77,8 @@ public interface CreateFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Optional. User provided identifier. It should be unique in scope of a
                                    -   * parent. This is optional and if not provided, a random UUID will be
                                    +   * Optional. An identifier for the framework deployment that's unique in scope
                                    +   * of the parent. If you don't specify a value, then a random UUID is
                                        * generated.
                                        * 
                                    * @@ -92,7 +92,7 @@ public interface CreateFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Required. The FrameworkDeployment to be created.
                                    +   * Required. The framework deployment that you're creating.
                                        * 
                                    * * @@ -107,7 +107,7 @@ public interface CreateFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Required. The FrameworkDeployment to be created.
                                    +   * Required. The framework deployment that you're creating.
                                        * 
                                    * * @@ -122,7 +122,7 @@ public interface CreateFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Required. The FrameworkDeployment to be created.
                                    +   * Required. The framework deployment that you're creating.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequest.java index 4627d4869dd6..d2eb6fb67fa1 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for creating a Framework
                                    + * The request message for [CreateFramework][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest} @@ -77,6 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -104,6 +105,7 @@ public java.lang.String getParent() { *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -134,9 +136,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -   * Required. ID of the framework.
                                    -   * This is not the full name of the framework.
                                    -   * This is the last part of the full name of the framework.
                                    +   * Required. The identifier (ID) of the framework. The ID is not the full name
                                    +   * of the framework; it's the last part of the full name of the framework.
                                        * 
                                    * * string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -160,9 +161,8 @@ public java.lang.String getFrameworkId() { * * *
                                    -   * Required. ID of the framework.
                                    -   * This is not the full name of the framework.
                                    -   * This is the last part of the full name of the framework.
                                    +   * Required. The identifier (ID) of the framework. The ID is not the full name
                                    +   * of the framework; it's the last part of the full name of the framework.
                                        * 
                                    * * string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -189,7 +189,7 @@ public com.google.protobuf.ByteString getFrameworkIdBytes() { * * *
                                    -   * Required. The resource being created
                                    +   * Required. The resource being created.
                                        * 
                                    * * @@ -207,7 +207,7 @@ public boolean hasFramework() { * * *
                                    -   * Required. The resource being created
                                    +   * Required. The resource being created.
                                        * 
                                    * * @@ -227,7 +227,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFramework() { * * *
                                    -   * Required. The resource being created
                                    +   * Required. The resource being created.
                                        * 
                                    * * @@ -430,7 +430,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for creating a Framework
                                    +   * The request message for [CreateFramework][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest} @@ -668,6 +668,7 @@ public Builder mergeFrom( *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -694,6 +695,7 @@ public java.lang.String getParent() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -720,6 +722,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -745,6 +748,7 @@ public Builder setParent(java.lang.String value) { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -766,6 +770,7 @@ public Builder clearParent() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -792,9 +797,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. ID of the framework.
                                    -     * This is not the full name of the framework.
                                    -     * This is the last part of the full name of the framework.
                                    +     * Required. The identifier (ID) of the framework. The ID is not the full name
                                    +     * of the framework; it's the last part of the full name of the framework.
                                          * 
                                    * * string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -817,9 +821,8 @@ public java.lang.String getFrameworkId() { * * *
                                    -     * Required. ID of the framework.
                                    -     * This is not the full name of the framework.
                                    -     * This is the last part of the full name of the framework.
                                    +     * Required. The identifier (ID) of the framework. The ID is not the full name
                                    +     * of the framework; it's the last part of the full name of the framework.
                                          * 
                                    * * string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -842,9 +845,8 @@ public com.google.protobuf.ByteString getFrameworkIdBytes() { * * *
                                    -     * Required. ID of the framework.
                                    -     * This is not the full name of the framework.
                                    -     * This is the last part of the full name of the framework.
                                    +     * Required. The identifier (ID) of the framework. The ID is not the full name
                                    +     * of the framework; it's the last part of the full name of the framework.
                                          * 
                                    * * string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -866,9 +868,8 @@ public Builder setFrameworkId(java.lang.String value) { * * *
                                    -     * Required. ID of the framework.
                                    -     * This is not the full name of the framework.
                                    -     * This is the last part of the full name of the framework.
                                    +     * Required. The identifier (ID) of the framework. The ID is not the full name
                                    +     * of the framework; it's the last part of the full name of the framework.
                                          * 
                                    * * string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -886,9 +887,8 @@ public Builder clearFrameworkId() { * * *
                                    -     * Required. ID of the framework.
                                    -     * This is not the full name of the framework.
                                    -     * This is the last part of the full name of the framework.
                                    +     * Required. The identifier (ID) of the framework. The ID is not the full name
                                    +     * of the framework; it's the last part of the full name of the framework.
                                          * 
                                    * * string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -918,7 +918,7 @@ public Builder setFrameworkIdBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. The resource being created
                                    +     * Required. The resource being created.
                                          * 
                                    * * @@ -935,7 +935,7 @@ public boolean hasFramework() { * * *
                                    -     * Required. The resource being created
                                    +     * Required. The resource being created.
                                          * 
                                    * * @@ -958,7 +958,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFramework() { * * *
                                    -     * Required. The resource being created
                                    +     * Required. The resource being created.
                                          * 
                                    * * @@ -983,7 +983,7 @@ public Builder setFramework(com.google.cloud.cloudsecuritycompliance.v1.Framewor * * *
                                    -     * Required. The resource being created
                                    +     * Required. The resource being created.
                                          * 
                                    * * @@ -1006,7 +1006,7 @@ public Builder setFramework( * * *
                                    -     * Required. The resource being created
                                    +     * Required. The resource being created.
                                          * 
                                    * * @@ -1037,7 +1037,7 @@ public Builder mergeFramework(com.google.cloud.cloudsecuritycompliance.v1.Framew * * *
                                    -     * Required. The resource being created
                                    +     * Required. The resource being created.
                                          * 
                                    * * @@ -1059,7 +1059,7 @@ public Builder clearFramework() { * * *
                                    -     * Required. The resource being created
                                    +     * Required. The resource being created.
                                          * 
                                    * * @@ -1076,7 +1076,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework.Builder getFramewor * * *
                                    -     * Required. The resource being created
                                    +     * Required. The resource being created.
                                          * 
                                    * * @@ -1097,7 +1097,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkOrBuilder getFramewo * * *
                                    -     * Required. The resource being created
                                    +     * Required. The resource being created.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequestOrBuilder.java index b58512f646cd..881756e26a4c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequestOrBuilder.java @@ -30,6 +30,7 @@ public interface CreateFrameworkRequestOrBuilder *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -46,6 +47,7 @@ public interface CreateFrameworkRequestOrBuilder *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -60,9 +62,8 @@ public interface CreateFrameworkRequestOrBuilder * * *
                                    -   * Required. ID of the framework.
                                    -   * This is not the full name of the framework.
                                    -   * This is the last part of the full name of the framework.
                                    +   * Required. The identifier (ID) of the framework. The ID is not the full name
                                    +   * of the framework; it's the last part of the full name of the framework.
                                        * 
                                    * * string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -75,9 +76,8 @@ public interface CreateFrameworkRequestOrBuilder * * *
                                    -   * Required. ID of the framework.
                                    -   * This is not the full name of the framework.
                                    -   * This is the last part of the full name of the framework.
                                    +   * Required. The identifier (ID) of the framework. The ID is not the full name
                                    +   * of the framework; it's the last part of the full name of the framework.
                                        * 
                                    * * string framework_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -90,7 +90,7 @@ public interface CreateFrameworkRequestOrBuilder * * *
                                    -   * Required. The resource being created
                                    +   * Required. The resource being created.
                                        * 
                                    * * @@ -105,7 +105,7 @@ public interface CreateFrameworkRequestOrBuilder * * *
                                    -   * Required. The resource being created
                                    +   * Required. The resource being created.
                                        * 
                                    * * @@ -120,7 +120,7 @@ public interface CreateFrameworkRequestOrBuilder * * *
                                    -   * Required. The resource being created
                                    +   * Required. The resource being created.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequest.java index 7e00fb73afd8..4b6c63bd2be2 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for deleting a CloudControl.
                                    + * The request message for [DeleteCloudControl][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest} @@ -73,8 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. Name of the resource, in the format
                                    +   * Required. The name of the cloud control to delete, in the format
                                        * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -100,8 +101,9 @@ public java.lang.String getName() { * * *
                                    -   * Required. Name of the resource, in the format
                                    +   * Required. The name of the cloud control to delete, in the format
                                        * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -289,7 +291,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for deleting a CloudControl.
                                    +   * The request message for [DeleteCloudControl][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest} @@ -481,8 +483,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the cloud control to delete, in the format
                                          * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -507,8 +510,9 @@ public java.lang.String getName() { * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the cloud control to delete, in the format
                                          * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -533,8 +537,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the cloud control to delete, in the format
                                          * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -558,8 +563,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the cloud control to delete, in the format
                                          * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -579,8 +585,9 @@ public Builder clearName() { * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the cloud control to delete, in the format
                                          * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequestOrBuilder.java index 01b1a95f4e16..5cee7138be78 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequestOrBuilder.java @@ -28,8 +28,9 @@ public interface DeleteCloudControlRequestOrBuilder * * *
                                    -   * Required. Name of the resource, in the format
                                    +   * Required. The name of the cloud control to delete, in the format
                                        * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -44,8 +45,9 @@ public interface DeleteCloudControlRequestOrBuilder * * *
                                    -   * Required. Name of the resource, in the format
                                    +   * Required. The name of the cloud control to delete, in the format
                                        * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequest.java index 28b41493936b..bd12715a4482 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for DeleteFrameworkDeployment.
                                    + * The request message for [DeleteFrameworkDeployment][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest} @@ -76,9 +76,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. name of the FrameworkDeployment to be deleted in the following
                                    -   * format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Required. The name of the framework deployment that you want to delete,
                                    +   * in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -104,9 +105,10 @@ public java.lang.String getName() { * * *
                                    -   * Required. name of the FrameworkDeployment to be deleted in the following
                                    -   * format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Required. The name of the framework deployment that you want to delete,
                                    +   * in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -141,7 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * If you provide this value, then it must match the existing value. If the * values don't match, then the request fails with an - * [ABORTED][google.rpc.Code.ABORTED] error. + * [`ABORTED`][google.rpc.Code.ABORTED] error. * * If you omit this value, then the resource is deleted regardless of its * current `etag` value. @@ -172,7 +174,7 @@ public java.lang.String getEtag() { * * If you provide this value, then it must match the existing value. If the * values don't match, then the request fails with an - * [ABORTED][google.rpc.Code.ABORTED] error. + * [`ABORTED`][google.rpc.Code.ABORTED] error. * * If you omit this value, then the resource is deleted regardless of its * current `etag` value. @@ -376,7 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for DeleteFrameworkDeployment.
                                    +   * The request message for [DeleteFrameworkDeployment][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest} @@ -587,9 +589,10 @@ public Builder mergeFrom( * * *
                                    -     * Required. name of the FrameworkDeployment to be deleted in the following
                                    -     * format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment that you want to delete,
                                    +     * in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -614,9 +617,10 @@ public java.lang.String getName() { * * *
                                    -     * Required. name of the FrameworkDeployment to be deleted in the following
                                    -     * format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment that you want to delete,
                                    +     * in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -641,9 +645,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. name of the FrameworkDeployment to be deleted in the following
                                    -     * format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment that you want to delete,
                                    +     * in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -667,9 +672,10 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. name of the FrameworkDeployment to be deleted in the following
                                    -     * format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment that you want to delete,
                                    +     * in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -689,9 +695,10 @@ public Builder clearName() { * * *
                                    -     * Required. name of the FrameworkDeployment to be deleted in the following
                                    -     * format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment that you want to delete,
                                    +     * in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -722,7 +729,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * If you provide this value, then it must match the existing value. If the * values don't match, then the request fails with an - * [ABORTED][google.rpc.Code.ABORTED] error. + * [`ABORTED`][google.rpc.Code.ABORTED] error. * * If you omit this value, then the resource is deleted regardless of its * current `etag` value. @@ -752,7 +759,7 @@ public java.lang.String getEtag() { * * If you provide this value, then it must match the existing value. If the * values don't match, then the request fails with an - * [ABORTED][google.rpc.Code.ABORTED] error. + * [`ABORTED`][google.rpc.Code.ABORTED] error. * * If you omit this value, then the resource is deleted regardless of its * current `etag` value. @@ -782,7 +789,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * * If you provide this value, then it must match the existing value. If the * values don't match, then the request fails with an - * [ABORTED][google.rpc.Code.ABORTED] error. + * [`ABORTED`][google.rpc.Code.ABORTED] error. * * If you omit this value, then the resource is deleted regardless of its * current `etag` value. @@ -811,7 +818,7 @@ public Builder setEtag(java.lang.String value) { * * If you provide this value, then it must match the existing value. If the * values don't match, then the request fails with an - * [ABORTED][google.rpc.Code.ABORTED] error. + * [`ABORTED`][google.rpc.Code.ABORTED] error. * * If you omit this value, then the resource is deleted regardless of its * current `etag` value. @@ -836,7 +843,7 @@ public Builder clearEtag() { * * If you provide this value, then it must match the existing value. If the * values don't match, then the request fails with an - * [ABORTED][google.rpc.Code.ABORTED] error. + * [`ABORTED`][google.rpc.Code.ABORTED] error. * * If you omit this value, then the resource is deleted regardless of its * current `etag` value. diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequestOrBuilder.java index 7190dafe42c6..808fd0a84cd1 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequestOrBuilder.java @@ -28,9 +28,10 @@ public interface DeleteFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Required. name of the FrameworkDeployment to be deleted in the following
                                    -   * format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Required. The name of the framework deployment that you want to delete,
                                    +   * in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -45,9 +46,10 @@ public interface DeleteFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Required. name of the FrameworkDeployment to be deleted in the following
                                    -   * format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Required. The name of the framework deployment that you want to delete,
                                    +   * in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -66,7 +68,7 @@ public interface DeleteFrameworkDeploymentRequestOrBuilder * * If you provide this value, then it must match the existing value. If the * values don't match, then the request fails with an - * [ABORTED][google.rpc.Code.ABORTED] error. + * [`ABORTED`][google.rpc.Code.ABORTED] error. * * If you omit this value, then the resource is deleted regardless of its * current `etag` value. @@ -86,7 +88,7 @@ public interface DeleteFrameworkDeploymentRequestOrBuilder * * If you provide this value, then it must match the existing value. If the * values don't match, then the request fails with an - * [ABORTED][google.rpc.Code.ABORTED] error. + * [`ABORTED`][google.rpc.Code.ABORTED] error. * * If you omit this value, then the resource is deleted regardless of its * current `etag` value. diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequest.java index ab15e013e362..c1f4bbcfa40b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for deleting a Framework.
                                    + * Request message for [DeleteFramework][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest} @@ -73,8 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. Name of the resource, in the format
                                    +   * Required. The name of the resource, in the format
                                        * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -100,8 +101,9 @@ public java.lang.String getName() { * * *
                                    -   * Required. Name of the resource, in the format
                                    +   * Required. The name of the resource, in the format
                                        * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -289,7 +291,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for deleting a Framework.
                                    +   * Request message for [DeleteFramework][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest} @@ -481,8 +483,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the resource, in the format
                                          * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -507,8 +510,9 @@ public java.lang.String getName() { * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the resource, in the format
                                          * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -533,8 +537,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the resource, in the format
                                          * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -558,8 +563,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the resource, in the format
                                          * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -579,8 +585,9 @@ public Builder clearName() { * * *
                                    -     * Required. Name of the resource, in the format
                                    +     * Required. The name of the resource, in the format
                                          * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequestOrBuilder.java index 5447f719555d..701afd27f303 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequestOrBuilder.java @@ -28,8 +28,9 @@ public interface DeleteFrameworkRequestOrBuilder * * *
                                    -   * Required. Name of the resource, in the format
                                    +   * Required. The name of the resource, in the format
                                        * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -44,8 +45,9 @@ public interface DeleteFrameworkRequestOrBuilder * * *
                                    -   * Required. Name of the resource, in the format
                                    +   * Required. The name of the resource, in the format
                                        * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentState.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentState.java index 69ba90f0064a..a818bf9dd0ab 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentState.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentState.java @@ -23,7 +23,7 @@ * * *
                                    - * DeploymentState represents the state of the Deployment resource.
                                    + * The state of the deployment resource.
                                      * 
                                    * * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.DeploymentState} @@ -33,7 +33,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Unspecified. Invalid state.
                                    +   * Default value. This value is unused.
                                        * 
                                    * * DEPLOYMENT_STATE_UNSPECIFIED = 0; @@ -53,7 +53,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment is in CREATING state.
                                    +   * Deployment is being created.
                                        * 
                                    * * DEPLOYMENT_STATE_CREATING = 2; @@ -63,7 +63,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment is in DELETING state.
                                    +   * Deployment is being deleted.
                                        * 
                                    * * DEPLOYMENT_STATE_DELETING = 3; @@ -73,9 +73,9 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment has failed. All the changes made by the deployment have been
                                    -   * successfully rolled back. A deployment in the FAILED state can be retried
                                    -   * or deleted.
                                    +   * Deployment has failed. All the changes made by the deployment were
                                    +   * successfully rolled back. You can retry or delete a deployment that's
                                    +   * in this state.
                                        * 
                                    * * DEPLOYMENT_STATE_FAILED = 4; @@ -95,8 +95,8 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment is partially deployed. All the Cloud Controls were not deployed
                                    -   * successfully. Retrying the operation will resume from the first failed
                                    +   * Deployment is partially deployed. All the cloud controls weren't deployed
                                    +   * successfully. Retrying the operation resumes from the first failed
                                        * step.
                                        * 
                                    * @@ -107,8 +107,8 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment is partially deleted. All the Cloud Control Deployments were not
                                    -   * deleted successfully. Retrying the operation will resume from the first
                                    +   * Deployment is partially deleted. All the cloud control deployments weren't
                                    +   * deleted successfully. Retrying the operation resumes from the first
                                        * failed step.
                                        * 
                                    * @@ -122,7 +122,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Unspecified. Invalid state.
                                    +   * Default value. This value is unused.
                                        * 
                                    * * DEPLOYMENT_STATE_UNSPECIFIED = 0; @@ -144,7 +144,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment is in CREATING state.
                                    +   * Deployment is being created.
                                        * 
                                    * * DEPLOYMENT_STATE_CREATING = 2; @@ -155,7 +155,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment is in DELETING state.
                                    +   * Deployment is being deleted.
                                        * 
                                    * * DEPLOYMENT_STATE_DELETING = 3; @@ -166,9 +166,9 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment has failed. All the changes made by the deployment have been
                                    -   * successfully rolled back. A deployment in the FAILED state can be retried
                                    -   * or deleted.
                                    +   * Deployment has failed. All the changes made by the deployment were
                                    +   * successfully rolled back. You can retry or delete a deployment that's
                                    +   * in this state.
                                        * 
                                    * * DEPLOYMENT_STATE_FAILED = 4; @@ -190,8 +190,8 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment is partially deployed. All the Cloud Controls were not deployed
                                    -   * successfully. Retrying the operation will resume from the first failed
                                    +   * Deployment is partially deployed. All the cloud controls weren't deployed
                                    +   * successfully. Retrying the operation resumes from the first failed
                                        * step.
                                        * 
                                    * @@ -203,8 +203,8 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Deployment is partially deleted. All the Cloud Control Deployments were not
                                    -   * deleted successfully. Retrying the operation will resume from the first
                                    +   * Deployment is partially deleted. All the cloud control deployments weren't
                                    +   * deleted successfully. Retrying the operation resumes from the first
                                        * failed step.
                                        * 
                                    * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EnforcementMode.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EnforcementMode.java index 878905a5ebec..c0c5facdd720 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EnforcementMode.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EnforcementMode.java @@ -23,7 +23,7 @@ * * *
                                    - * The enforcement mode of the cloud control.
                                    + * The enforcement mode for the cloud control.
                                      * 
                                    * * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.EnforcementMode} @@ -43,7 +43,7 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * The cloud control is enforced to prevent resource non-compliance.
                                    +   * The cloud control is enforced to prevent non-compliance.
                                        * 
                                    * * PREVENTIVE = 1; @@ -53,7 +53,7 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * The cloud control is enforced to detect resource non-compliance.
                                    +   * The cloud control is enforced to detect non-compliance.
                                        * 
                                    * * DETECTIVE = 2; @@ -63,7 +63,7 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * The cloud control is enforced to audit resource non-compliance.
                                    +   * The cloud control is enforced to audit for non-compliance.
                                        * 
                                    * * AUDIT = 3; @@ -87,7 +87,7 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * The cloud control is enforced to prevent resource non-compliance.
                                    +   * The cloud control is enforced to prevent non-compliance.
                                        * 
                                    * * PREVENTIVE = 1; @@ -98,7 +98,7 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * The cloud control is enforced to detect resource non-compliance.
                                    +   * The cloud control is enforced to detect non-compliance.
                                        * 
                                    * * DETECTIVE = 2; @@ -109,7 +109,7 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * The cloud control is enforced to audit resource non-compliance.
                                    +   * The cloud control is enforced to audit for non-compliance.
                                        * 
                                    * * AUDIT = 3; @@ -179,7 +179,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final EnforcementMode[] VALUES = values(); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EvaluationState.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EvaluationState.java new file mode 100644 index 000000000000..95aeb9c20072 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EvaluationState.java @@ -0,0 +1,204 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The evaluation state of the control.
                                    + * 
                                    + * + * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.EvaluationState} + */ +public enum EvaluationState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +   * Default value. This value is unused.
                                    +   * 
                                    + * + * EVALUATION_STATE_UNSPECIFIED = 0; + */ + EVALUATION_STATE_UNSPECIFIED(0), + /** + * + * + *
                                    +   * The control is passing.
                                    +   * 
                                    + * + * EVALUATION_STATE_PASSED = 1; + */ + EVALUATION_STATE_PASSED(1), + /** + * + * + *
                                    +   * The control is failing.
                                    +   * 
                                    + * + * EVALUATION_STATE_FAILED = 2; + */ + EVALUATION_STATE_FAILED(2), + /** + * + * + *
                                    +   * The control is not assessed.
                                    +   * 
                                    + * + * EVALUATION_STATE_NOT_ASSESSED = 3; + */ + EVALUATION_STATE_NOT_ASSESSED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +   * Default value. This value is unused.
                                    +   * 
                                    + * + * EVALUATION_STATE_UNSPECIFIED = 0; + */ + public static final int EVALUATION_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +   * The control is passing.
                                    +   * 
                                    + * + * EVALUATION_STATE_PASSED = 1; + */ + public static final int EVALUATION_STATE_PASSED_VALUE = 1; + + /** + * + * + *
                                    +   * The control is failing.
                                    +   * 
                                    + * + * EVALUATION_STATE_FAILED = 2; + */ + public static final int EVALUATION_STATE_FAILED_VALUE = 2; + + /** + * + * + *
                                    +   * The control is not assessed.
                                    +   * 
                                    + * + * EVALUATION_STATE_NOT_ASSESSED = 3; + */ + public static final int EVALUATION_STATE_NOT_ASSESSED_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 EvaluationState 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 EvaluationState forNumber(int value) { + switch (value) { + case 0: + return EVALUATION_STATE_UNSPECIFIED; + case 1: + return EVALUATION_STATE_PASSED; + case 2: + return EVALUATION_STATE_FAILED; + case 3: + return EVALUATION_STATE_NOT_ASSESSED; + 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 EvaluationState findValueByNumber(int number) { + return EvaluationState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EvaluationState[] VALUES = values(); + + public static EvaluationState 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 EvaluationState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.EvaluationState) +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EvidenceDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EvidenceDetails.java new file mode 100644 index 000000000000..2ba4a33a5c06 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EvidenceDetails.java @@ -0,0 +1,1013 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The evidence details for a finding.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.EvidenceDetails} + */ +public final class EvidenceDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.EvidenceDetails) + EvidenceDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvidenceDetails.newBuilder() to construct. + private EvidenceDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvidenceDetails() { + resource_ = ""; + service_ = ""; + evidencePath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvidenceDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.Builder.class); + } + + public static final int RESOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
                                    +   * Output only. The resource identifier.
                                    +   * 
                                    + * + * string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The resource identifier.
                                    +   * 
                                    + * + * string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; + + /** + * + * + *
                                    +   * Output only. The service identifier.
                                    +   * 
                                    + * + * string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + 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(); + service_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The service identifier.
                                    +   * 
                                    + * + * string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVIDENCE_PATH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object evidencePath_ = ""; + + /** + * + * + *
                                    +   * Output only. The path to the evidence.
                                    +   * 
                                    + * + * string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The evidencePath. + */ + @java.lang.Override + public java.lang.String getEvidencePath() { + java.lang.Object ref = evidencePath_; + 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(); + evidencePath_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The path to the evidence.
                                    +   * 
                                    + * + * string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for evidencePath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvidencePathBytes() { + java.lang.Object ref = evidencePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evidencePath_ = 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.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, service_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evidencePath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, evidencePath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evidencePath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, evidencePath_); + } + 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.cloudsecuritycompliance.v1.EvidenceDetails)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails other = + (com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails) obj; + + if (!getResource().equals(other.getResource())) return false; + if (!getService().equals(other.getService())) return false; + if (!getEvidencePath().equals(other.getEvidencePath())) 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_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (37 * hash) + EVIDENCE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getEvidencePath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails 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.cloudsecuritycompliance.v1.EvidenceDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails 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.cloudsecuritycompliance.v1.EvidenceDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The evidence details for a finding.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.EvidenceDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.EvidenceDetails) + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resource_ = ""; + service_ = ""; + evidencePath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_EvidenceDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails build() { + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails result = + new com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.service_ = service_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.evidencePath_ = evidencePath_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.getDefaultInstance()) + return this; + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getService().isEmpty()) { + service_ = other.service_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEvidencePath().isEmpty()) { + evidencePath_ = other.evidencePath_; + 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: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + service_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + evidencePath_ = 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 resource_ = ""; + + /** + * + * + *
                                    +     * Output only. The resource identifier.
                                    +     * 
                                    + * + * string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The resource identifier.
                                    +     * 
                                    + * + * string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The resource identifier.
                                    +     * 
                                    + * + * string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The resource identifier.
                                    +     * 
                                    + * + * string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The resource identifier.
                                    +     * 
                                    + * + * string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object service_ = ""; + + /** + * + * + *
                                    +     * Output only. The service identifier.
                                    +     * 
                                    + * + * string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The service identifier.
                                    +     * 
                                    + * + * string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The service identifier.
                                    +     * 
                                    + * + * string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + service_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The service identifier.
                                    +     * 
                                    + * + * string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearService() { + service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The service identifier.
                                    +     * 
                                    + * + * string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object evidencePath_ = ""; + + /** + * + * + *
                                    +     * Output only. The path to the evidence.
                                    +     * 
                                    + * + * string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The evidencePath. + */ + public java.lang.String getEvidencePath() { + java.lang.Object ref = evidencePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evidencePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The path to the evidence.
                                    +     * 
                                    + * + * string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for evidencePath. + */ + public com.google.protobuf.ByteString getEvidencePathBytes() { + java.lang.Object ref = evidencePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evidencePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The path to the evidence.
                                    +     * 
                                    + * + * string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The evidencePath to set. + * @return This builder for chaining. + */ + public Builder setEvidencePath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evidencePath_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The path to the evidence.
                                    +     * 
                                    + * + * string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEvidencePath() { + evidencePath_ = getDefaultInstance().getEvidencePath(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The path to the evidence.
                                    +     * 
                                    + * + * string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for evidencePath to set. + * @return This builder for chaining. + */ + public Builder setEvidencePathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evidencePath_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.EvidenceDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.EvidenceDetails) + private static final com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvidenceDetails 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.cloudsecuritycompliance.v1.EvidenceDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EvidenceDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EvidenceDetailsOrBuilder.java new file mode 100644 index 000000000000..ceb7daf86973 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/EvidenceDetailsOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface EvidenceDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.EvidenceDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Output only. The resource identifier.
                                    +   * 
                                    + * + * string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
                                    +   * Output only. The resource identifier.
                                    +   * 
                                    + * + * string resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
                                    +   * Output only. The service identifier.
                                    +   * 
                                    + * + * string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The service. + */ + java.lang.String getService(); + + /** + * + * + *
                                    +   * Output only. The service identifier.
                                    +   * 
                                    + * + * string service = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for service. + */ + com.google.protobuf.ByteString getServiceBytes(); + + /** + * + * + *
                                    +   * Output only. The path to the evidence.
                                    +   * 
                                    + * + * string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The evidencePath. + */ + java.lang.String getEvidencePath(); + + /** + * + * + *
                                    +   * Output only. The path to the evidence.
                                    +   * 
                                    + * + * string evidence_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for evidencePath. + */ + com.google.protobuf.ByteString getEvidencePathBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequest.java new file mode 100644 index 000000000000..c833fc5edf08 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequest.java @@ -0,0 +1,975 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [FetchFrameworkComplianceReport][].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest} + */ +public final class FetchFrameworkComplianceReportRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) + FetchFrameworkComplianceReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FetchFrameworkComplianceReportRequest.newBuilder() to construct. + private FetchFrameworkComplianceReportRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchFrameworkComplianceReportRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchFrameworkComplianceReportRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + .Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Required. The name of the framework compliance report to retrieve.
                                    +   * 
                                    + * + * + * 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. The name of the framework compliance report to retrieve.
                                    +   * 
                                    + * + * + * 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 END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
                                    +   * Optional. The end time of the report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Optional. The end time of the report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
                                    +   * Optional. The end time of the report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + 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.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) 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(); + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + 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.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + 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.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [FetchFrameworkComplianceReport][].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + .class, + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + build() { + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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: + { + input.readMessage(getEndTimeFieldBuilder().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 name_ = ""; + + /** + * + * + *
                                    +     * Required. The name of the framework compliance report to retrieve.
                                    +     * 
                                    + * + * + * 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. The name of the framework compliance report to retrieve.
                                    +     * 
                                    + * + * + * 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. The name of the framework compliance report to retrieve.
                                    +     * 
                                    + * + * + * 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. The name of the framework compliance report to retrieve.
                                    +     * 
                                    + * + * + * 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. The name of the framework compliance report to retrieve.
                                    +     * 
                                    + * + * + * 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 com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
                                    +     * Optional. The end time of the report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * Optional. The end time of the report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Optional. The end time of the report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Optional. The end time of the report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
                                    +     * Optional. The end time of the report.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .FetchFrameworkComplianceReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchFrameworkComplianceReportRequest 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.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequestOrBuilder.java new file mode 100644 index 000000000000..6a8fe6764885 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface FetchFrameworkComplianceReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The name of the framework compliance report to retrieve.
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Required. The name of the framework compliance report to retrieve.
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                    +   * Optional. The end time of the report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
                                    +   * Optional. The end time of the report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
                                    +   * Optional. The end time of the report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingClass.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingClass.java new file mode 100644 index 000000000000..81019ff113b1 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingClass.java @@ -0,0 +1,355 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * A finding is a record of assessment data like security, risk, health, or
                                    + * privacy.
                                    + * 
                                    + * + * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.FindingClass} + */ +public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +   * Default value. This value is unused.
                                    +   * 
                                    + * + * FINDING_CLASS_UNSPECIFIED = 0; + */ + FINDING_CLASS_UNSPECIFIED(0), + /** + * + * + *
                                    +   * The activity is unwanted or malicious.
                                    +   * 
                                    + * + * THREAT = 1; + */ + THREAT(1), + /** + * + * + *
                                    +   * A potential weakness in software that increases risk to
                                    +   * confidentiality, integrity, and availability.
                                    +   * 
                                    + * + * VULNERABILITY = 2; + */ + VULNERABILITY(2), + /** + * + * + *
                                    +   * A potential weakness in a cloud resource or asset configuration that
                                    +   * increases risk.
                                    +   * 
                                    + * + * MISCONFIGURATION = 3; + */ + MISCONFIGURATION(3), + /** + * + * + *
                                    +   * A security observation that is for informational purposes.
                                    +   * 
                                    + * + * OBSERVATION = 4; + */ + OBSERVATION(4), + /** + * + * + *
                                    +   * An error that prevents Security Command Center from functioning properly.
                                    +   * 
                                    + * + * SCC_ERROR = 5; + */ + SCC_ERROR(5), + /** + * + * + *
                                    +   * A potential security risk that's due to a change in the security
                                    +   * posture.
                                    +   * 
                                    + * + * POSTURE_VIOLATION = 6; + */ + POSTURE_VIOLATION(6), + /** + * + * + *
                                    +   * A combination of security issues that represent a more severe
                                    +   * security problem when taken together.
                                    +   * 
                                    + * + * TOXIC_COMBINATION = 7; + */ + TOXIC_COMBINATION(7), + /** + * + * + *
                                    +   * A potential security risk to data assets that contain sensitive
                                    +   * data.
                                    +   * 
                                    + * + * SENSITIVE_DATA_RISK = 8; + */ + SENSITIVE_DATA_RISK(8), + /** + * + * + *
                                    +   * A resource or resource group where high risk attack paths
                                    +   * converge, based on attack path simulations (APS).
                                    +   * 
                                    + * + * CHOKEPOINT = 9; + */ + CHOKEPOINT(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +   * Default value. This value is unused.
                                    +   * 
                                    + * + * FINDING_CLASS_UNSPECIFIED = 0; + */ + public static final int FINDING_CLASS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +   * The activity is unwanted or malicious.
                                    +   * 
                                    + * + * THREAT = 1; + */ + public static final int THREAT_VALUE = 1; + + /** + * + * + *
                                    +   * A potential weakness in software that increases risk to
                                    +   * confidentiality, integrity, and availability.
                                    +   * 
                                    + * + * VULNERABILITY = 2; + */ + public static final int VULNERABILITY_VALUE = 2; + + /** + * + * + *
                                    +   * A potential weakness in a cloud resource or asset configuration that
                                    +   * increases risk.
                                    +   * 
                                    + * + * MISCONFIGURATION = 3; + */ + public static final int MISCONFIGURATION_VALUE = 3; + + /** + * + * + *
                                    +   * A security observation that is for informational purposes.
                                    +   * 
                                    + * + * OBSERVATION = 4; + */ + public static final int OBSERVATION_VALUE = 4; + + /** + * + * + *
                                    +   * An error that prevents Security Command Center from functioning properly.
                                    +   * 
                                    + * + * SCC_ERROR = 5; + */ + public static final int SCC_ERROR_VALUE = 5; + + /** + * + * + *
                                    +   * A potential security risk that's due to a change in the security
                                    +   * posture.
                                    +   * 
                                    + * + * POSTURE_VIOLATION = 6; + */ + public static final int POSTURE_VIOLATION_VALUE = 6; + + /** + * + * + *
                                    +   * A combination of security issues that represent a more severe
                                    +   * security problem when taken together.
                                    +   * 
                                    + * + * TOXIC_COMBINATION = 7; + */ + public static final int TOXIC_COMBINATION_VALUE = 7; + + /** + * + * + *
                                    +   * A potential security risk to data assets that contain sensitive
                                    +   * data.
                                    +   * 
                                    + * + * SENSITIVE_DATA_RISK = 8; + */ + public static final int SENSITIVE_DATA_RISK_VALUE = 8; + + /** + * + * + *
                                    +   * A resource or resource group where high risk attack paths
                                    +   * converge, based on attack path simulations (APS).
                                    +   * 
                                    + * + * CHOKEPOINT = 9; + */ + public static final int CHOKEPOINT_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 FindingClass 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 FindingClass forNumber(int value) { + switch (value) { + case 0: + return FINDING_CLASS_UNSPECIFIED; + case 1: + return THREAT; + case 2: + return VULNERABILITY; + case 3: + return MISCONFIGURATION; + case 4: + return OBSERVATION; + case 5: + return SCC_ERROR; + case 6: + return POSTURE_VIOLATION; + case 7: + return TOXIC_COMBINATION; + case 8: + return SENSITIVE_DATA_RISK; + case 9: + return CHOKEPOINT; + 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 FindingClass findValueByNumber(int number) { + return FindingClass.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final FindingClass[] VALUES = values(); + + public static FindingClass 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 FindingClass(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.FindingClass) +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingDetails.java new file mode 100644 index 000000000000..fa31445dcea5 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingDetails.java @@ -0,0 +1,1448 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The details for a finding.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FindingDetails} + */ +public final class FindingDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.FindingDetails) + FindingDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FindingDetails.newBuilder() to construct. + private FindingDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FindingDetails() { + name_ = ""; + complianceState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FindingDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Output only. The name of the finding.
                                    +   * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +   * Output only. The name of the finding.
                                    +   * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 COMPLIANCE_STATE_FIELD_NUMBER = 2; + private int complianceState_ = 0; + + /** + * + * + *
                                    +   * Output only. The compliance state of the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + @java.lang.Override + public int getComplianceStateValue() { + return complianceState_; + } + + /** + * + * + *
                                    +   * Output only. The compliance state of the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState() { + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState result = + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.forNumber(complianceState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.UNRECOGNIZED + : result; + } + + public static final int OBSERVATION_FIELD_NUMBER = 3; + private com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation_; + + /** + * + * + *
                                    +   * Output only. The observation details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observation field is set. + */ + @java.lang.Override + public boolean hasObservation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Output only. The observation details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observation. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails getObservation() { + return observation_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.getDefaultInstance() + : observation_; + } + + /** + * + * + *
                                    +   * Output only. The observation details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsOrBuilder + getObservationOrBuilder() { + return observation_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.getDefaultInstance() + : observation_; + } + + public static final int EVIDENCE_FIELD_NUMBER = 4; + private com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence_; + + /** + * + * + *
                                    +   * Output only. The evidence details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the evidence field is set. + */ + @java.lang.Override + public boolean hasEvidence() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * Output only. The evidence details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evidence. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails getEvidence() { + return evidence_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.getDefaultInstance() + : evidence_; + } + + /** + * + * + *
                                    +   * Output only. The evidence details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsOrBuilder + getEvidenceOrBuilder() { + return evidence_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.getDefaultInstance() + : evidence_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (complianceState_ + != com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.COMPLIANCE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, complianceState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getObservation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getEvidence()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (complianceState_ + != com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.COMPLIANCE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, complianceState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getObservation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEvidence()); + } + 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.cloudsecuritycompliance.v1.FindingDetails)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails other = + (com.google.cloud.cloudsecuritycompliance.v1.FindingDetails) obj; + + if (!getName().equals(other.getName())) return false; + if (complianceState_ != other.complianceState_) return false; + if (hasObservation() != other.hasObservation()) return false; + if (hasObservation()) { + if (!getObservation().equals(other.getObservation())) return false; + } + if (hasEvidence() != other.hasEvidence()) return false; + if (hasEvidence()) { + if (!getEvidence().equals(other.getEvidence())) 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) + COMPLIANCE_STATE_FIELD_NUMBER; + hash = (53 * hash) + complianceState_; + if (hasObservation()) { + hash = (37 * hash) + OBSERVATION_FIELD_NUMBER; + hash = (53 * hash) + getObservation().hashCode(); + } + if (hasEvidence()) { + hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; + hash = (53 * hash) + getEvidence().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails 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.cloudsecuritycompliance.v1.FindingDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails 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.cloudsecuritycompliance.v1.FindingDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The details for a finding.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FindingDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.FindingDetails) + com.google.cloud.cloudsecuritycompliance.v1.FindingDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getObservationFieldBuilder(); + getEvidenceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + complianceState_ = 0; + observation_ = null; + if (observationBuilder_ != null) { + observationBuilder_.dispose(); + observationBuilder_ = null; + } + evidence_ = null; + if (evidenceBuilder_ != null) { + evidenceBuilder_.dispose(); + evidenceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetails getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetails build() { + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingDetails buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.FindingDetails result = + new com.google.cloud.cloudsecuritycompliance.v1.FindingDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.FindingDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.complianceState_ = complianceState_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.observation_ = + observationBuilder_ == null ? observation_ : observationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.evidence_ = evidenceBuilder_ == null ? evidence_ : evidenceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.FindingDetails) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.FindingDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.FindingDetails other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.FindingDetails.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.complianceState_ != 0) { + setComplianceStateValue(other.getComplianceStateValue()); + } + if (other.hasObservation()) { + mergeObservation(other.getObservation()); + } + if (other.hasEvidence()) { + mergeEvidence(other.getEvidence()); + } + 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 16: + { + complianceState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getObservationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getEvidenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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_ = ""; + + /** + * + * + *
                                    +     * Output only. The name of the finding.
                                    +     * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The name of the finding.
                                    +     * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The name of the finding.
                                    +     * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
                                    +     * Output only. The name of the finding.
                                    +     * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The name of the finding.
                                    +     * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 int complianceState_ = 0; + + /** + * + * + *
                                    +     * Output only. The compliance state of the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + @java.lang.Override + public int getComplianceStateValue() { + return complianceState_; + } + + /** + * + * + *
                                    +     * Output only. The compliance state of the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for complianceState to set. + * @return This builder for chaining. + */ + public Builder setComplianceStateValue(int value) { + complianceState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The compliance state of the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState() { + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState result = + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.forNumber(complianceState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Output only. The compliance state of the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The complianceState to set. + * @return This builder for chaining. + */ + public Builder setComplianceState( + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + complianceState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The compliance state of the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearComplianceState() { + bitField0_ = (bitField0_ & ~0x00000002); + complianceState_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails, + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsOrBuilder> + observationBuilder_; + + /** + * + * + *
                                    +     * Output only. The observation details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observation field is set. + */ + public boolean hasObservation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                    +     * Output only. The observation details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observation. + */ + public com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails getObservation() { + if (observationBuilder_ == null) { + return observation_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.getDefaultInstance() + : observation_; + } else { + return observationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Output only. The observation details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setObservation( + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails value) { + if (observationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + observation_ = value; + } else { + observationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The observation details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setObservation( + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.Builder builderForValue) { + if (observationBuilder_ == null) { + observation_ = builderForValue.build(); + } else { + observationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The observation details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeObservation( + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails value) { + if (observationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && observation_ != null + && observation_ + != com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails + .getDefaultInstance()) { + getObservationBuilder().mergeFrom(value); + } else { + observation_ = value; + } + } else { + observationBuilder_.mergeFrom(value); + } + if (observation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The observation details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearObservation() { + bitField0_ = (bitField0_ & ~0x00000004); + observation_ = null; + if (observationBuilder_ != null) { + observationBuilder_.dispose(); + observationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The observation details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.Builder + getObservationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getObservationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The observation details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsOrBuilder + getObservationOrBuilder() { + if (observationBuilder_ != null) { + return observationBuilder_.getMessageOrBuilder(); + } else { + return observation_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.getDefaultInstance() + : observation_; + } + } + + /** + * + * + *
                                    +     * Output only. The observation details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails, + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsOrBuilder> + getObservationFieldBuilder() { + if (observationBuilder_ == null) { + observationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails, + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsOrBuilder>( + getObservation(), getParentForChildren(), isClean()); + observation_ = null; + } + return observationBuilder_; + } + + private com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails, + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsOrBuilder> + evidenceBuilder_; + + /** + * + * + *
                                    +     * Output only. The evidence details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the evidence field is set. + */ + public boolean hasEvidence() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                    +     * Output only. The evidence details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evidence. + */ + public com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails getEvidence() { + if (evidenceBuilder_ == null) { + return evidence_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.getDefaultInstance() + : evidence_; + } else { + return evidenceBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Output only. The evidence details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvidence(com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails value) { + if (evidenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evidence_ = value; + } else { + evidenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The evidence details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvidence( + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.Builder builderForValue) { + if (evidenceBuilder_ == null) { + evidence_ = builderForValue.build(); + } else { + evidenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The evidence details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEvidence( + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails value) { + if (evidenceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && evidence_ != null + && evidence_ + != com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails + .getDefaultInstance()) { + getEvidenceBuilder().mergeFrom(value); + } else { + evidence_ = value; + } + } else { + evidenceBuilder_.mergeFrom(value); + } + if (evidence_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The evidence details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEvidence() { + bitField0_ = (bitField0_ & ~0x00000008); + evidence_ = null; + if (evidenceBuilder_ != null) { + evidenceBuilder_.dispose(); + evidenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The evidence details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.Builder + getEvidenceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEvidenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The evidence details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsOrBuilder + getEvidenceOrBuilder() { + if (evidenceBuilder_ != null) { + return evidenceBuilder_.getMessageOrBuilder(); + } else { + return evidence_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.getDefaultInstance() + : evidence_; + } + } + + /** + * + * + *
                                    +     * Output only. The evidence details for the finding.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails, + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsOrBuilder> + getEvidenceFieldBuilder() { + if (evidenceBuilder_ == null) { + evidenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails, + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsOrBuilder>( + getEvidence(), getParentForChildren(), isClean()); + evidence_ = null; + } + return evidenceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.FindingDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.FindingDetails) + private static final com.google.cloud.cloudsecuritycompliance.v1.FindingDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.FindingDetails(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingDetails 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.cloudsecuritycompliance.v1.FindingDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingDetailsOrBuilder.java new file mode 100644 index 000000000000..4111934dda56 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingDetailsOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface FindingDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.FindingDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Output only. The name of the finding.
                                    +   * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Output only. The name of the finding.
                                    +   * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                    +   * Output only. The compliance state of the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + int getComplianceStateValue(); + + /** + * + * + *
                                    +   * Output only. The compliance state of the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState(); + + /** + * + * + *
                                    +   * Output only. The observation details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the observation field is set. + */ + boolean hasObservation(); + + /** + * + * + *
                                    +   * Output only. The observation details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The observation. + */ + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails getObservation(); + + /** + * + * + *
                                    +   * Output only. The observation details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ObservationDetails observation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsOrBuilder getObservationOrBuilder(); + + /** + * + * + *
                                    +   * Output only. The evidence details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the evidence field is set. + */ + boolean hasEvidence(); + + /** + * + * + *
                                    +   * Output only. The evidence details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evidence. + */ + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetails getEvidence(); + + /** + * + * + *
                                    +   * Output only. The evidence details for the finding.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.EvidenceDetails evidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.EvidenceDetailsOrBuilder getEvidenceOrBuilder(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummary.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummary.java new file mode 100644 index 000000000000..4707c47bea73 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummary.java @@ -0,0 +1,1852 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The details for a finding.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FindingSummary} + */ +public final class FindingSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.FindingSummary) + FindingSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FindingSummary.newBuilder() to construct. + private FindingSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FindingSummary() { + findingCategory_ = ""; + findingClass_ = 0; + severity_ = 0; + relatedFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FindingSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.class, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder.class); + } + + private int bitField0_; + public static final int FINDING_CATEGORY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object findingCategory_ = ""; + + /** + * + * + *
                                    +   * The category of the finding.
                                    +   * 
                                    + * + * string finding_category = 1; + * + * @return The findingCategory. + */ + @java.lang.Override + public java.lang.String getFindingCategory() { + java.lang.Object ref = findingCategory_; + 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(); + findingCategory_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The category of the finding.
                                    +   * 
                                    + * + * string finding_category = 1; + * + * @return The bytes for findingCategory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFindingCategoryBytes() { + java.lang.Object ref = findingCategory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FINDING_CLASS_FIELD_NUMBER = 2; + private int findingClass_ = 0; + + /** + * + * + *
                                    +   * The class of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * + * @return The enum numeric value on the wire for findingClass. + */ + @java.lang.Override + public int getFindingClassValue() { + return findingClass_; + } + + /** + * + * + *
                                    +   * The class of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * + * @return The findingClass. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingClass getFindingClass() { + com.google.cloud.cloudsecuritycompliance.v1.FindingClass result = + com.google.cloud.cloudsecuritycompliance.v1.FindingClass.forNumber(findingClass_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.FindingClass.UNRECOGNIZED + : result; + } + + public static final int SEVERITY_FIELD_NUMBER = 3; + private int severity_ = 0; + + /** + * + * + *
                                    +   * The severity of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
                                    +   * The severity of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Severity getSeverity() { + com.google.cloud.cloudsecuritycompliance.v1.Severity result = + com.google.cloud.cloudsecuritycompliance.v1.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Severity.UNRECOGNIZED + : result; + } + + public static final int FINDING_COUNT_FIELD_NUMBER = 4; + private long findingCount_ = 0L; + + /** + * + * + *
                                    +   * The count of the finding.
                                    +   * 
                                    + * + * int64 finding_count = 4; + * + * @return The findingCount. + */ + @java.lang.Override + public long getFindingCount() { + return findingCount_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                    +   * Output only. The last updated time of the finding.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Output only. The last updated time of the finding.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last updated time of the finding.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5 [(.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 RELATED_FRAMEWORKS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList relatedFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                    +   * Optional. The list of compliance frameworks that the finding belongs to.
                                    +   * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the relatedFrameworks. + */ + public com.google.protobuf.ProtocolStringList getRelatedFrameworksList() { + return relatedFrameworks_; + } + + /** + * + * + *
                                    +   * Optional. The list of compliance frameworks that the finding belongs to.
                                    +   * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of relatedFrameworks. + */ + public int getRelatedFrameworksCount() { + return relatedFrameworks_.size(); + } + + /** + * + * + *
                                    +   * Optional. The list of compliance frameworks that the finding belongs to.
                                    +   * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The relatedFrameworks at the given index. + */ + public java.lang.String getRelatedFrameworks(int index) { + return relatedFrameworks_.get(index); + } + + /** + * + * + *
                                    +   * Optional. The list of compliance frameworks that the finding belongs to.
                                    +   * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFrameworks at the given index. + */ + public com.google.protobuf.ByteString getRelatedFrameworksBytes(int index) { + return relatedFrameworks_.getByteString(index); + } + + public static final int NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Identifier. The name of the finding summary.
                                    +   * 
                                    + * + * string name = 7 [(.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. The name of the finding summary.
                                    +   * 
                                    + * + * string name = 7 [(.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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingCategory_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, findingCategory_); + } + if (findingClass_ + != com.google.cloud.cloudsecuritycompliance.v1.FindingClass.FINDING_CLASS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, findingClass_); + } + if (severity_ + != com.google.cloud.cloudsecuritycompliance.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + output.writeEnum(3, severity_); + } + if (findingCount_ != 0L) { + output.writeInt64(4, findingCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + for (int i = 0; i < relatedFrameworks_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, relatedFrameworks_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingCategory_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, findingCategory_); + } + if (findingClass_ + != com.google.cloud.cloudsecuritycompliance.v1.FindingClass.FINDING_CLASS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, findingClass_); + } + if (severity_ + != com.google.cloud.cloudsecuritycompliance.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, severity_); + } + if (findingCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, findingCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < relatedFrameworks_.size(); i++) { + dataSize += computeStringSizeNoTag(relatedFrameworks_.getRaw(i)); + } + size += dataSize; + size += 1 * getRelatedFrameworksList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.cloudsecuritycompliance.v1.FindingSummary)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary other = + (com.google.cloud.cloudsecuritycompliance.v1.FindingSummary) obj; + + if (!getFindingCategory().equals(other.getFindingCategory())) return false; + if (findingClass_ != other.findingClass_) return false; + if (severity_ != other.severity_) return false; + if (getFindingCount() != other.getFindingCount()) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getRelatedFrameworksList().equals(other.getRelatedFrameworksList())) return false; + 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) + FINDING_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getFindingCategory().hashCode(); + hash = (37 * hash) + FINDING_CLASS_FIELD_NUMBER; + hash = (53 * hash) + findingClass_; + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + FINDING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFindingCount()); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getRelatedFrameworksCount() > 0) { + hash = (37 * hash) + RELATED_FRAMEWORKS_FIELD_NUMBER; + hash = (53 * hash) + getRelatedFrameworksList().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.cloudsecuritycompliance.v1.FindingSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary 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.cloudsecuritycompliance.v1.FindingSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary 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.cloudsecuritycompliance.v1.FindingSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The details for a finding.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FindingSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.FindingSummary) + com.google.cloud.cloudsecuritycompliance.v1.FindingSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.class, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + findingCategory_ = ""; + findingClass_ = 0; + severity_ = 0; + findingCount_ = 0L; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + relatedFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummary getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummary build() { + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummary buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary result = + new com.google.cloud.cloudsecuritycompliance.v1.FindingSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.FindingSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.findingCategory_ = findingCategory_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.findingClass_ = findingClass_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.findingCount_ = findingCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + relatedFrameworks_.makeImmutable(); + result.relatedFrameworks_ = relatedFrameworks_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.FindingSummary) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.FindingSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.FindingSummary other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.getDefaultInstance()) + return this; + if (!other.getFindingCategory().isEmpty()) { + findingCategory_ = other.findingCategory_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.findingClass_ != 0) { + setFindingClassValue(other.getFindingClassValue()); + } + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (other.getFindingCount() != 0L) { + setFindingCount(other.getFindingCount()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.relatedFrameworks_.isEmpty()) { + if (relatedFrameworks_.isEmpty()) { + relatedFrameworks_ = other.relatedFrameworks_; + bitField0_ |= 0x00000020; + } else { + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.addAll(other.relatedFrameworks_); + } + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000040; + 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: + { + findingCategory_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + findingClass_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + findingCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.add(s); + break; + } // case 50 + case 58: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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 findingCategory_ = ""; + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 1; + * + * @return The findingCategory. + */ + public java.lang.String getFindingCategory() { + java.lang.Object ref = findingCategory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingCategory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 1; + * + * @return The bytes for findingCategory. + */ + public com.google.protobuf.ByteString getFindingCategoryBytes() { + java.lang.Object ref = findingCategory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 1; + * + * @param value The findingCategory to set. + * @return This builder for chaining. + */ + public Builder setFindingCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + findingCategory_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 1; + * + * @return This builder for chaining. + */ + public Builder clearFindingCategory() { + findingCategory_ = getDefaultInstance().getFindingCategory(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The category of the finding.
                                    +     * 
                                    + * + * string finding_category = 1; + * + * @param value The bytes for findingCategory to set. + * @return This builder for chaining. + */ + public Builder setFindingCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingCategory_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int findingClass_ = 0; + + /** + * + * + *
                                    +     * The class of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * + * @return The enum numeric value on the wire for findingClass. + */ + @java.lang.Override + public int getFindingClassValue() { + return findingClass_; + } + + /** + * + * + *
                                    +     * The class of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * + * @param value The enum numeric value on the wire for findingClass to set. + * @return This builder for chaining. + */ + public Builder setFindingClassValue(int value) { + findingClass_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The class of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * + * @return The findingClass. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingClass getFindingClass() { + com.google.cloud.cloudsecuritycompliance.v1.FindingClass result = + com.google.cloud.cloudsecuritycompliance.v1.FindingClass.forNumber(findingClass_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.FindingClass.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * The class of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * + * @param value The findingClass to set. + * @return This builder for chaining. + */ + public Builder setFindingClass(com.google.cloud.cloudsecuritycompliance.v1.FindingClass value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + findingClass_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The class of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * + * @return This builder for chaining. + */ + public Builder clearFindingClass() { + bitField0_ = (bitField0_ & ~0x00000002); + findingClass_ = 0; + onChanged(); + return this; + } + + private int severity_ = 0; + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Severity getSeverity() { + com.google.cloud.cloudsecuritycompliance.v1.Severity result = + com.google.cloud.cloudsecuritycompliance.v1.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Severity.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.cloud.cloudsecuritycompliance.v1.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + severity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The severity of the finding.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000004); + severity_ = 0; + onChanged(); + return this; + } + + private long findingCount_; + + /** + * + * + *
                                    +     * The count of the finding.
                                    +     * 
                                    + * + * int64 finding_count = 4; + * + * @return The findingCount. + */ + @java.lang.Override + public long getFindingCount() { + return findingCount_; + } + + /** + * + * + *
                                    +     * The count of the finding.
                                    +     * 
                                    + * + * int64 finding_count = 4; + * + * @param value The findingCount to set. + * @return This builder for chaining. + */ + public Builder setFindingCount(long value) { + + findingCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The count of the finding.
                                    +     * 
                                    + * + * int64 finding_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearFindingCount() { + bitField0_ = (bitField0_ & ~0x00000008); + findingCount_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                    +     * Output only. The last updated time of the finding.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                    +     * Output only. The last updated time of the finding.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last updated time of the finding.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last updated time of the finding.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last updated time of the finding.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last updated time of the finding.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last updated time of the finding.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The last updated time of the finding.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last updated time of the finding.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList relatedFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRelatedFrameworksIsMutable() { + if (!relatedFrameworks_.isModifiable()) { + relatedFrameworks_ = new com.google.protobuf.LazyStringArrayList(relatedFrameworks_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                                    +     * Optional. The list of compliance frameworks that the finding belongs to.
                                    +     * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the relatedFrameworks. + */ + public com.google.protobuf.ProtocolStringList getRelatedFrameworksList() { + relatedFrameworks_.makeImmutable(); + return relatedFrameworks_; + } + + /** + * + * + *
                                    +     * Optional. The list of compliance frameworks that the finding belongs to.
                                    +     * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of relatedFrameworks. + */ + public int getRelatedFrameworksCount() { + return relatedFrameworks_.size(); + } + + /** + * + * + *
                                    +     * Optional. The list of compliance frameworks that the finding belongs to.
                                    +     * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The relatedFrameworks at the given index. + */ + public java.lang.String getRelatedFrameworks(int index) { + return relatedFrameworks_.get(index); + } + + /** + * + * + *
                                    +     * Optional. The list of compliance frameworks that the finding belongs to.
                                    +     * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the relatedFrameworks at the given index. + */ + public com.google.protobuf.ByteString getRelatedFrameworksBytes(int index) { + return relatedFrameworks_.getByteString(index); + } + + /** + * + * + *
                                    +     * Optional. The list of compliance frameworks that the finding belongs to.
                                    +     * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The relatedFrameworks to set. + * @return This builder for chaining. + */ + public Builder setRelatedFrameworks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The list of compliance frameworks that the finding belongs to.
                                    +     * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The relatedFrameworks to add. + * @return This builder for chaining. + */ + public Builder addRelatedFrameworks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The list of compliance frameworks that the finding belongs to.
                                    +     * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The relatedFrameworks to add. + * @return This builder for chaining. + */ + public Builder addAllRelatedFrameworks(java.lang.Iterable values) { + ensureRelatedFrameworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedFrameworks_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The list of compliance frameworks that the finding belongs to.
                                    +     * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRelatedFrameworks() { + relatedFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The list of compliance frameworks that the finding belongs to.
                                    +     * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the relatedFrameworks to add. + * @return This builder for chaining. + */ + public Builder addRelatedFrameworksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                    +     * Identifier. The name of the finding summary.
                                    +     * 
                                    + * + * string name = 7 [(.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. The name of the finding summary.
                                    +     * 
                                    + * + * string name = 7 [(.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. The name of the finding summary.
                                    +     * 
                                    + * + * string name = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the finding summary.
                                    +     * 
                                    + * + * string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the finding summary.
                                    +     * 
                                    + * + * string name = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.FindingSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.FindingSummary) + private static final com.google.cloud.cloudsecuritycompliance.v1.FindingSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.FindingSummary(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FindingSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingSummary 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.cloudsecuritycompliance.v1.FindingSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryName.java new file mode 100644 index 000000000000..4831fe67e25e --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryName.java @@ -0,0 +1,451 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 FindingSummaryName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FINDING_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/findingSummaries/{finding_summary}"); + private static final PathTemplate FOLDER_LOCATION_FINDING_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/locations/{location}/findingSummaries/{finding_summary}"); + private static final PathTemplate ORGANIZATION_LOCATION_FINDING_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/findingSummaries/{finding_summary}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String findingSummary; + private final String folder; + private final String organization; + + @Deprecated + protected FindingSummaryName() { + project = null; + location = null; + findingSummary = null; + folder = null; + organization = null; + } + + private FindingSummaryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + findingSummary = Preconditions.checkNotNull(builder.getFindingSummary()); + folder = null; + organization = null; + pathTemplate = PROJECT_LOCATION_FINDING_SUMMARY; + } + + private FindingSummaryName(FolderLocationFindingSummaryBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + location = Preconditions.checkNotNull(builder.getLocation()); + findingSummary = Preconditions.checkNotNull(builder.getFindingSummary()); + project = null; + organization = null; + pathTemplate = FOLDER_LOCATION_FINDING_SUMMARY; + } + + private FindingSummaryName(OrganizationLocationFindingSummaryBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + findingSummary = Preconditions.checkNotNull(builder.getFindingSummary()); + project = null; + folder = null; + pathTemplate = ORGANIZATION_LOCATION_FINDING_SUMMARY; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFindingSummary() { + return findingSummary; + } + + public String getFolder() { + return folder; + } + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationFindingSummaryBuilder() { + return new Builder(); + } + + public static FolderLocationFindingSummaryBuilder newFolderLocationFindingSummaryBuilder() { + return new FolderLocationFindingSummaryBuilder(); + } + + public static OrganizationLocationFindingSummaryBuilder + newOrganizationLocationFindingSummaryBuilder() { + return new OrganizationLocationFindingSummaryBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FindingSummaryName of(String project, String location, String findingSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFindingSummary(findingSummary) + .build(); + } + + public static FindingSummaryName ofProjectLocationFindingSummaryName( + String project, String location, String findingSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFindingSummary(findingSummary) + .build(); + } + + public static FindingSummaryName ofFolderLocationFindingSummaryName( + String folder, String location, String findingSummary) { + return newFolderLocationFindingSummaryBuilder() + .setFolder(folder) + .setLocation(location) + .setFindingSummary(findingSummary) + .build(); + } + + public static FindingSummaryName ofOrganizationLocationFindingSummaryName( + String organization, String location, String findingSummary) { + return newOrganizationLocationFindingSummaryBuilder() + .setOrganization(organization) + .setLocation(location) + .setFindingSummary(findingSummary) + .build(); + } + + public static String format(String project, String location, String findingSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFindingSummary(findingSummary) + .build() + .toString(); + } + + public static String formatProjectLocationFindingSummaryName( + String project, String location, String findingSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFindingSummary(findingSummary) + .build() + .toString(); + } + + public static String formatFolderLocationFindingSummaryName( + String folder, String location, String findingSummary) { + return newFolderLocationFindingSummaryBuilder() + .setFolder(folder) + .setLocation(location) + .setFindingSummary(findingSummary) + .build() + .toString(); + } + + public static String formatOrganizationLocationFindingSummaryName( + String organization, String location, String findingSummary) { + return newOrganizationLocationFindingSummaryBuilder() + .setOrganization(organization) + .setLocation(location) + .setFindingSummary(findingSummary) + .build() + .toString(); + } + + public static FindingSummaryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_FINDING_SUMMARY.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_FINDING_SUMMARY.match(formattedString); + return ofProjectLocationFindingSummaryName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("finding_summary")); + } else if (FOLDER_LOCATION_FINDING_SUMMARY.matches(formattedString)) { + Map matchMap = FOLDER_LOCATION_FINDING_SUMMARY.match(formattedString); + return ofFolderLocationFindingSummaryName( + matchMap.get("folder"), matchMap.get("location"), matchMap.get("finding_summary")); + } else if (ORGANIZATION_LOCATION_FINDING_SUMMARY.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_FINDING_SUMMARY.match(formattedString); + return ofOrganizationLocationFindingSummaryName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("finding_summary")); + } + throw new ValidationException("FindingSummaryName.parse: formattedString not in valid format"); + } + + 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 (FindingSummaryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FINDING_SUMMARY.matches(formattedString) + || FOLDER_LOCATION_FINDING_SUMMARY.matches(formattedString) + || ORGANIZATION_LOCATION_FINDING_SUMMARY.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 (findingSummary != null) { + fieldMapBuilder.put("finding_summary", findingSummary); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FindingSummaryName that = ((FindingSummaryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.findingSummary, that.findingSummary) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.organization, that.organization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(findingSummary); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(organization); + return h; + } + + /** Builder for projects/{project}/locations/{location}/findingSummaries/{finding_summary}. */ + public static class Builder { + private String project; + private String location; + private String findingSummary; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFindingSummary() { + return findingSummary; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFindingSummary(String findingSummary) { + this.findingSummary = findingSummary; + return this; + } + + private Builder(FindingSummaryName findingSummaryName) { + Preconditions.checkArgument( + Objects.equals(findingSummaryName.pathTemplate, PROJECT_LOCATION_FINDING_SUMMARY), + "toBuilder is only supported when FindingSummaryName has the pattern of" + + " projects/{project}/locations/{location}/findingSummaries/{finding_summary}"); + this.project = findingSummaryName.project; + this.location = findingSummaryName.location; + this.findingSummary = findingSummaryName.findingSummary; + } + + public FindingSummaryName build() { + return new FindingSummaryName(this); + } + } + + /** Builder for folders/{folder}/locations/{location}/findingSummaries/{finding_summary}. */ + public static class FolderLocationFindingSummaryBuilder { + private String folder; + private String location; + private String findingSummary; + + protected FolderLocationFindingSummaryBuilder() {} + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public String getFindingSummary() { + return findingSummary; + } + + public FolderLocationFindingSummaryBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public FolderLocationFindingSummaryBuilder setLocation(String location) { + this.location = location; + return this; + } + + public FolderLocationFindingSummaryBuilder setFindingSummary(String findingSummary) { + this.findingSummary = findingSummary; + return this; + } + + public FindingSummaryName build() { + return new FindingSummaryName(this); + } + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/findingSummaries/{finding_summary}. + */ + public static class OrganizationLocationFindingSummaryBuilder { + private String organization; + private String location; + private String findingSummary; + + protected OrganizationLocationFindingSummaryBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFindingSummary() { + return findingSummary; + } + + public OrganizationLocationFindingSummaryBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationFindingSummaryBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationFindingSummaryBuilder setFindingSummary(String findingSummary) { + this.findingSummary = findingSummary; + return this; + } + + public FindingSummaryName build() { + return new FindingSummaryName(this); + } + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryOrBuilder.java new file mode 100644 index 000000000000..ae082f1d54ea --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryOrBuilder.java @@ -0,0 +1,237 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface FindingSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.FindingSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The category of the finding.
                                    +   * 
                                    + * + * string finding_category = 1; + * + * @return The findingCategory. + */ + java.lang.String getFindingCategory(); + + /** + * + * + *
                                    +   * The category of the finding.
                                    +   * 
                                    + * + * string finding_category = 1; + * + * @return The bytes for findingCategory. + */ + com.google.protobuf.ByteString getFindingCategoryBytes(); + + /** + * + * + *
                                    +   * The class of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * + * @return The enum numeric value on the wire for findingClass. + */ + int getFindingClassValue(); + + /** + * + * + *
                                    +   * The class of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.FindingClass finding_class = 2; + * + * @return The findingClass. + */ + com.google.cloud.cloudsecuritycompliance.v1.FindingClass getFindingClass(); + + /** + * + * + *
                                    +   * The severity of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + + /** + * + * + *
                                    +   * The severity of the finding.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Severity severity = 3; + * + * @return The severity. + */ + com.google.cloud.cloudsecuritycompliance.v1.Severity getSeverity(); + + /** + * + * + *
                                    +   * The count of the finding.
                                    +   * 
                                    + * + * int64 finding_count = 4; + * + * @return The findingCount. + */ + long getFindingCount(); + + /** + * + * + *
                                    +   * Output only. The last updated time of the finding.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                    +   * Output only. The last updated time of the finding.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                    +   * Output only. The last updated time of the finding.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                    +   * Optional. The list of compliance frameworks that the finding belongs to.
                                    +   * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the relatedFrameworks. + */ + java.util.List getRelatedFrameworksList(); + + /** + * + * + *
                                    +   * Optional. The list of compliance frameworks that the finding belongs to.
                                    +   * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of relatedFrameworks. + */ + int getRelatedFrameworksCount(); + + /** + * + * + *
                                    +   * Optional. The list of compliance frameworks that the finding belongs to.
                                    +   * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The relatedFrameworks at the given index. + */ + java.lang.String getRelatedFrameworks(int index); + + /** + * + * + *
                                    +   * Optional. The list of compliance frameworks that the finding belongs to.
                                    +   * 
                                    + * + * repeated string related_frameworks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFrameworks at the given index. + */ + com.google.protobuf.ByteString getRelatedFrameworksBytes(int index); + + /** + * + * + *
                                    +   * Identifier. The name of the finding summary.
                                    +   * 
                                    + * + * string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Identifier. The name of the finding summary.
                                    +   * 
                                    + * + * string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderCreationConfig.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderCreationConfig.java index f582a2bc752d..a403bc9ee9a9 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderCreationConfig.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderCreationConfig.java @@ -23,8 +23,8 @@ * * *
                                    - * FolderCreationConfig contains the config to create a new folder to be used
                                    - * as the target_resource of a deployment.
                                    + * The configuration that's required to create a folder to be used
                                    + * as the target resource for a deployment.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig} @@ -75,8 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. The parent of the folder to be created. It can be an
                                    -   * organizations/{org} or folders/{folder}
                                    +   * Required. The parent of the folder, in the format
                                    +   * `organizations/{organizationID}` or `folders/{folderID}`.
                                        * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -100,8 +100,8 @@ public java.lang.String getParent() { * * *
                                    -   * Required. The parent of the folder to be created. It can be an
                                    -   * organizations/{org} or folders/{folder}
                                    +   * Required. The parent of the folder, in the format
                                    +   * `organizations/{organizationID}` or `folders/{folderID}`.
                                        * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -130,7 +130,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -   * Required. Display name of the folder to be created
                                    +   * Required. The display name of the folder.
                                        * 
                                    * * string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -154,7 +154,7 @@ public java.lang.String getFolderDisplayName() { * * *
                                    -   * Required. Display name of the folder to be created
                                    +   * Required. The display name of the folder.
                                        * 
                                    * * string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -348,8 +348,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * FolderCreationConfig contains the config to create a new folder to be used
                                    -   * as the target_resource of a deployment.
                                    +   * The configuration that's required to create a folder to be used
                                    +   * as the target resource for a deployment.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FolderCreationConfig} @@ -553,8 +553,8 @@ public Builder mergeFrom( * * *
                                    -     * Required. The parent of the folder to be created. It can be an
                                    -     * organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the folder, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -577,8 +577,8 @@ public java.lang.String getParent() { * * *
                                    -     * Required. The parent of the folder to be created. It can be an
                                    -     * organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the folder, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -601,8 +601,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -     * Required. The parent of the folder to be created. It can be an
                                    -     * organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the folder, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -624,8 +624,8 @@ public Builder setParent(java.lang.String value) { * * *
                                    -     * Required. The parent of the folder to be created. It can be an
                                    -     * organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the folder, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -643,8 +643,8 @@ public Builder clearParent() { * * *
                                    -     * Required. The parent of the folder to be created. It can be an
                                    -     * organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the folder, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -669,7 +669,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. Display name of the folder to be created
                                    +     * Required. The display name of the folder.
                                          * 
                                    * * string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -692,7 +692,7 @@ public java.lang.String getFolderDisplayName() { * * *
                                    -     * Required. Display name of the folder to be created
                                    +     * Required. The display name of the folder.
                                          * 
                                    * * string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -715,7 +715,7 @@ public com.google.protobuf.ByteString getFolderDisplayNameBytes() { * * *
                                    -     * Required. Display name of the folder to be created
                                    +     * Required. The display name of the folder.
                                          * 
                                    * * string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -737,7 +737,7 @@ public Builder setFolderDisplayName(java.lang.String value) { * * *
                                    -     * Required. Display name of the folder to be created
                                    +     * Required. The display name of the folder.
                                          * 
                                    * * string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -755,7 +755,7 @@ public Builder clearFolderDisplayName() { * * *
                                    -     * Required. Display name of the folder to be created
                                    +     * Required. The display name of the folder.
                                          * 
                                    * * string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderCreationConfigOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderCreationConfigOrBuilder.java index 7aa768b3f4ba..d6b22983a2fe 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderCreationConfigOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderCreationConfigOrBuilder.java @@ -28,8 +28,8 @@ public interface FolderCreationConfigOrBuilder * * *
                                    -   * Required. The parent of the folder to be created. It can be an
                                    -   * organizations/{org} or folders/{folder}
                                    +   * Required. The parent of the folder, in the format
                                    +   * `organizations/{organizationID}` or `folders/{folderID}`.
                                        * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -42,8 +42,8 @@ public interface FolderCreationConfigOrBuilder * * *
                                    -   * Required. The parent of the folder to be created. It can be an
                                    -   * organizations/{org} or folders/{folder}
                                    +   * Required. The parent of the folder, in the format
                                    +   * `organizations/{organizationID}` or `folders/{folderID}`.
                                        * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -56,7 +56,7 @@ public interface FolderCreationConfigOrBuilder * * *
                                    -   * Required. Display name of the folder to be created
                                    +   * Required. The display name of the folder.
                                        * 
                                    * * string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -69,7 +69,7 @@ public interface FolderCreationConfigOrBuilder * * *
                                    -   * Required. Display name of the folder to be created
                                    +   * Required. The display name of the folder.
                                        * 
                                    * * string folder_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderLocationName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderLocationName.java new file mode 100644 index 000000000000..b43dc4a1ca58 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderLocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.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 FolderLocationName implements ResourceName { + private static final PathTemplate FOLDER_LOCATION = + PathTemplate.createWithoutUrlEncoding("folders/{folder}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String folder; + private final String location; + + @Deprecated + protected FolderLocationName() { + folder = null; + location = null; + } + + private FolderLocationName(Builder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FolderLocationName of(String folder, String location) { + return newBuilder().setFolder(folder).setLocation(location).build(); + } + + public static String format(String folder, String location) { + return newBuilder().setFolder(folder).setLocation(location).build().toString(); + } + + public static FolderLocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + FOLDER_LOCATION.validatedMatch( + formattedString, "FolderLocationName.parse: formattedString not in valid format"); + return of(matchMap.get("folder"), matchMap.get("location")); + } + + 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 (FolderLocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return FOLDER_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return FOLDER_LOCATION.instantiate("folder", folder, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FolderLocationName that = ((FolderLocationName) o); + return Objects.equals(this.folder, that.folder) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for folders/{folder}/locations/{location}. */ + public static class Builder { + private String folder; + private String location; + + protected Builder() {} + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public Builder setFolder(String folder) { + this.folder = folder; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(FolderLocationName folderLocationName) { + this.folder = folderLocationName.folder; + this.location = folderLocationName.location; + } + + public FolderLocationName build() { + return new FolderLocationName(this); + } + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Framework.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Framework.java index fd8e87fad6e0..4309afd6c1d6 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Framework.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Framework.java @@ -23,11 +23,9 @@ * * *
                                    - * A Framework is a collection of CloudControls to address security and
                                    - * compliance requirements. Frameworks can be used for prevention, detection,
                                    - * and auditing. They can be either built-in, industry-standard frameworks
                                    - * provided by GCP/AZURE/AWS (e.g., NIST, FedRAMP) or custom frameworks created
                                    - * by users.
                                    + * A framework is a collection of cloud controls and regulatory controls
                                    + * that represent security best practices or industry-defined standards such as
                                    + * FedRAMP or NIST.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Framework} @@ -80,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * The type of the framework.
                                    +   * The type of framework.
                                        * 
                                    * * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType} @@ -100,8 +98,7 @@ public enum FrameworkType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * The framework is a built-in framework if it is created and managed by
                                    -     * GCP.
                                    +     * A framework that's provided and managed by Google.
                                          * 
                                    * * BUILT_IN = 1; @@ -111,8 +108,7 @@ public enum FrameworkType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * The framework is a custom framework if it is created and managed by the
                                    -     * user.
                                    +     * A framework that's created and managed by you.
                                          * 
                                    * * CUSTOM = 2; @@ -136,8 +132,7 @@ public enum FrameworkType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * The framework is a built-in framework if it is created and managed by
                                    -     * GCP.
                                    +     * A framework that's provided and managed by Google.
                                          * 
                                    * * BUILT_IN = 1; @@ -148,8 +143,7 @@ public enum FrameworkType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * The framework is a custom framework if it is created and managed by the
                                    -     * user.
                                    +     * A framework that's created and managed by you.
                                          * 
                                    * * CUSTOM = 2; @@ -250,9 +244,9 @@ private FrameworkType(int value) { * * *
                                    -   * Required. Identifier. The name of the framework.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +   * Required. Identifier. The name of the framework, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -278,9 +272,9 @@ public java.lang.String getName() { * * *
                                    -   * Required. Identifier. The name of the framework.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +   * Required. Identifier. The name of the framework, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -309,8 +303,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -   * Output only. Major revision of the framework incremented in ascending
                                    -   * order.
                                    +   * Output only. The major version of the framework, which is incremented in
                                    +   * ascending order.
                                        * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -331,7 +325,7 @@ public long getMajorRevisionId() { * * *
                                    -   * Optional. Display name of the framework. The maximum length is 200
                                    +   * Optional. The friendly name of the framework. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -356,7 +350,7 @@ public java.lang.String getDisplayName() { * * *
                                    -   * Optional. Display name of the framework. The maximum length is 200
                                    +   * Optional. The friendly name of the framework. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -439,7 +433,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -   * Output only. The type of the framework. The default is TYPE_CUSTOM.
                                    +   * Output only. The type of framework.
                                        * 
                                    * * @@ -457,7 +451,7 @@ public int getTypeValue() { * * *
                                    -   * Output only. The type of the framework. The default is TYPE_CUSTOM.
                                    +   * Output only. The type of framework.
                                        * 
                                    * * @@ -485,7 +479,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getTy * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -503,7 +497,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getTy * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -522,7 +516,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getTy * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -539,7 +533,7 @@ public int getCloudControlDetailsCount() { * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -557,7 +551,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetails getCloudC * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -712,7 +706,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider convert( * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -733,7 +727,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider convert( * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -751,7 +745,7 @@ public int getSupportedCloudProvidersCount() { * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -771,7 +765,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedClo * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -789,7 +783,7 @@ public java.util.List getSupportedCloudProvidersValueList() { * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -830,7 +824,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceType convert( * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * @@ -851,7 +845,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceType convert( * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * @@ -869,7 +863,7 @@ public int getSupportedTargetResourceTypesCount() { * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * @@ -890,7 +884,7 @@ public int getSupportedTargetResourceTypesCount() { * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * @@ -908,7 +902,7 @@ public java.util.List getSupportedTargetResourceTypesValueLis * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * @@ -1365,11 +1359,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * A Framework is a collection of CloudControls to address security and
                                    -   * compliance requirements. Frameworks can be used for prevention, detection,
                                    -   * and auditing. They can be either built-in, industry-standard frameworks
                                    -   * provided by GCP/AZURE/AWS (e.g., NIST, FedRAMP) or custom frameworks created
                                    -   * by users.
                                    +   * A framework is a collection of cloud controls and regulatory controls
                                    +   * that represent security best practices or industry-defined standards such as
                                    +   * FedRAMP or NIST.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Framework} @@ -1818,9 +1810,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. Identifier. The name of the framework.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. Identifier. The name of the framework, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -1845,9 +1837,9 @@ public java.lang.String getName() { * * *
                                    -     * Required. Identifier. The name of the framework.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. Identifier. The name of the framework, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -1872,9 +1864,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. Identifier. The name of the framework.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. Identifier. The name of the framework, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -1898,9 +1890,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. Identifier. The name of the framework.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. Identifier. The name of the framework, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -1920,9 +1912,9 @@ public Builder clearName() { * * *
                                    -     * Required. Identifier. The name of the framework.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. Identifier. The name of the framework, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -1949,8 +1941,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Output only. Major revision of the framework incremented in ascending
                                    -     * order.
                                    +     * Output only. The major version of the framework, which is incremented in
                                    +     * ascending order.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1966,8 +1958,8 @@ public long getMajorRevisionId() { * * *
                                    -     * Output only. Major revision of the framework incremented in ascending
                                    -     * order.
                                    +     * Output only. The major version of the framework, which is incremented in
                                    +     * ascending order.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1987,8 +1979,8 @@ public Builder setMajorRevisionId(long value) { * * *
                                    -     * Output only. Major revision of the framework incremented in ascending
                                    -     * order.
                                    +     * Output only. The major version of the framework, which is incremented in
                                    +     * ascending order.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2008,7 +2000,7 @@ public Builder clearMajorRevisionId() { * * *
                                    -     * Optional. Display name of the framework. The maximum length is 200
                                    +     * Optional. The friendly name of the framework. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2032,7 +2024,7 @@ public java.lang.String getDisplayName() { * * *
                                    -     * Optional. Display name of the framework. The maximum length is 200
                                    +     * Optional. The friendly name of the framework. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2056,7 +2048,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
                                    -     * Optional. Display name of the framework. The maximum length is 200
                                    +     * Optional. The friendly name of the framework. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2079,7 +2071,7 @@ public Builder setDisplayName(java.lang.String value) { * * *
                                    -     * Optional. Display name of the framework. The maximum length is 200
                                    +     * Optional. The friendly name of the framework. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2098,7 +2090,7 @@ public Builder clearDisplayName() { * * *
                                    -     * Optional. Display name of the framework. The maximum length is 200
                                    +     * Optional. The friendly name of the framework. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -2240,7 +2232,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Output only. The type of the framework. The default is TYPE_CUSTOM.
                                    +     * Output only. The type of framework.
                                          * 
                                    * * @@ -2258,7 +2250,7 @@ public int getTypeValue() { * * *
                                    -     * Output only. The type of the framework. The default is TYPE_CUSTOM.
                                    +     * Output only. The type of framework.
                                          * 
                                    * * @@ -2279,7 +2271,7 @@ public Builder setTypeValue(int value) { * * *
                                    -     * Output only. The type of the framework. The default is TYPE_CUSTOM.
                                    +     * Output only. The type of framework.
                                          * 
                                    * * @@ -2301,7 +2293,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getTy * * *
                                    -     * Output only. The type of the framework. The default is TYPE_CUSTOM.
                                    +     * Output only. The type of framework.
                                          * 
                                    * * @@ -2326,7 +2318,7 @@ public Builder setType( * * *
                                    -     * Output only. The type of the framework. The default is TYPE_CUSTOM.
                                    +     * Output only. The type of framework.
                                          * 
                                    * * @@ -2365,7 +2357,7 @@ private void ensureCloudControlDetailsIsMutable() { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2386,7 +2378,7 @@ private void ensureCloudControlDetailsIsMutable() { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2406,7 +2398,7 @@ public int getCloudControlDetailsCount() { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2427,7 +2419,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlDetails getCloudC * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2454,7 +2446,7 @@ public Builder setCloudControlDetails( * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2479,7 +2471,7 @@ public Builder setCloudControlDetails( * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2506,7 +2498,7 @@ public Builder addCloudControlDetails( * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2533,7 +2525,7 @@ public Builder addCloudControlDetails( * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2557,7 +2549,7 @@ public Builder addCloudControlDetails( * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2582,7 +2574,7 @@ public Builder addCloudControlDetails( * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2608,7 +2600,7 @@ public Builder addAllCloudControlDetails( * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2631,7 +2623,7 @@ public Builder clearCloudControlDetails() { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2654,7 +2646,7 @@ public Builder removeCloudControlDetails(int index) { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2671,7 +2663,7 @@ public Builder removeCloudControlDetails(int index) { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2692,7 +2684,7 @@ public Builder removeCloudControlDetails(int index) { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2714,7 +2706,7 @@ public Builder removeCloudControlDetails(int index) { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2733,7 +2725,7 @@ public Builder removeCloudControlDetails(int index) { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -2753,7 +2745,7 @@ public Builder removeCloudControlDetails(int index) { * * *
                                    -     * Optional. The details of the cloud controls directly added without any
                                    +     * Optional. The cloud control details that are directly added without any
                                          * grouping in the framework.
                                          * 
                                    * @@ -3062,7 +3054,7 @@ private void ensureSupportedCloudProvidersIsMutable() { * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3082,7 +3074,7 @@ private void ensureSupportedCloudProvidersIsMutable() { * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3099,7 +3091,7 @@ public int getSupportedCloudProvidersCount() { * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3118,7 +3110,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedClo * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3144,7 +3136,7 @@ public Builder setSupportedCloudProviders( * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3169,7 +3161,7 @@ public Builder addSupportedCloudProviders( * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3194,7 +3186,7 @@ public Builder addAllSupportedCloudProviders( * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3214,7 +3206,7 @@ public Builder clearSupportedCloudProviders() { * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3231,7 +3223,7 @@ public java.util.List getSupportedCloudProvidersValueList() { * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3249,7 +3241,7 @@ public int getSupportedCloudProvidersValue(int index) { * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3271,7 +3263,7 @@ public Builder setSupportedCloudProvidersValue(int index, int value) { * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3292,7 +3284,7 @@ public Builder addSupportedCloudProvidersValue(int value) { * * *
                                    -     * Output only. cloud providers supported
                                    +     * Output only. The cloud providers that are supported by the framework.
                                          * 
                                    * * @@ -3327,7 +3319,7 @@ private void ensureSupportedTargetResourceTypesIsMutable() { * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3347,7 +3339,7 @@ private void ensureSupportedTargetResourceTypesIsMutable() { * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3364,7 +3356,7 @@ public int getSupportedTargetResourceTypesCount() { * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3384,7 +3376,7 @@ public int getSupportedTargetResourceTypesCount() { * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3410,7 +3402,7 @@ public Builder setSupportedTargetResourceTypes( * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3435,7 +3427,7 @@ public Builder addSupportedTargetResourceTypes( * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3460,7 +3452,7 @@ public Builder addAllSupportedTargetResourceTypes( * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3480,7 +3472,7 @@ public Builder clearSupportedTargetResourceTypes() { * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3498,7 +3490,7 @@ public java.util.List getSupportedTargetResourceTypesValueLis * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3517,7 +3509,7 @@ public int getSupportedTargetResourceTypesValue(int index) { * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3539,7 +3531,7 @@ public Builder setSupportedTargetResourceTypesValue(int index, int value) { * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * @@ -3560,7 +3552,7 @@ public Builder addSupportedTargetResourceTypesValue(int value) { * * *
                                    -     * Output only. target resource types supported by the Framework.
                                    +     * Output only. The target resource types that are supported by the framework.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAudit.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAudit.java new file mode 100644 index 000000000000..26b79fa2f39b --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAudit.java @@ -0,0 +1,4429 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * A framework audit.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkAudit} + */ +public final class FrameworkAudit extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.FrameworkAudit) + FrameworkAuditOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FrameworkAudit.newBuilder() to construct. + private FrameworkAudit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FrameworkAudit() { + name_ = ""; + frameworkAuditId_ = ""; + complianceFramework_ = ""; + scope_ = ""; + complianceState_ = 0; + cloudControlGroupAuditDetails_ = java.util.Collections.emptyList(); + cloudControlAuditDetails_ = java.util.Collections.emptyList(); + operationId_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FrameworkAudit(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.class, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder.class); + } + + /** + * + * + *
                                    +   * The state of the framework audit.
                                    +   * 
                                    + * + * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +     * Default value. This value is unused.
                                    +     * 
                                    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                    +     * The audit is scheduled.
                                    +     * 
                                    + * + * SCHEDULED = 1; + */ + SCHEDULED(1), + /** + * + * + *
                                    +     * The audit is running.
                                    +     * 
                                    + * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
                                    +     * The audit results are being uploaded.
                                    +     * 
                                    + * + * UPLOADING = 3; + */ + UPLOADING(3), + /** + * + * + *
                                    +     * The audit failed.
                                    +     * 
                                    + * + * FAILED = 4; + */ + FAILED(4), + /** + * + * + *
                                    +     * The audit completed successfully.
                                    +     * 
                                    + * + * SUCCEEDED = 5; + */ + SUCCEEDED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +     * Default value. This value is unused.
                                    +     * 
                                    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +     * The audit is scheduled.
                                    +     * 
                                    + * + * SCHEDULED = 1; + */ + public static final int SCHEDULED_VALUE = 1; + + /** + * + * + *
                                    +     * The audit is running.
                                    +     * 
                                    + * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
                                    +     * The audit results are being uploaded.
                                    +     * 
                                    + * + * UPLOADING = 3; + */ + public static final int UPLOADING_VALUE = 3; + + /** + * + * + *
                                    +     * The audit failed.
                                    +     * 
                                    + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + /** + * + * + *
                                    +     * The audit completed successfully.
                                    +     * 
                                    + * + * SUCCEEDED = 5; + */ + public static final int SUCCEEDED_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return SCHEDULED; + case 2: + return RUNNING; + case 3: + return UPLOADING; + case 4: + return FAILED; + case 5: + return SUCCEEDED; + 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 State findValueByNumber(int number) { + return State.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Output only. Identifier. The name of the framework audit.
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
                                    +   * Output only. Identifier. The name of the framework audit.
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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 FRAMEWORK_AUDIT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object frameworkAuditId_ = ""; + + /** + * + * + *
                                    +   * Output only. The ID of the framework audit.
                                    +   * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The frameworkAuditId. + */ + @java.lang.Override + public java.lang.String getFrameworkAuditId() { + java.lang.Object ref = frameworkAuditId_; + 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(); + frameworkAuditId_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The ID of the framework audit.
                                    +   * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for frameworkAuditId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrameworkAuditIdBytes() { + java.lang.Object ref = frameworkAuditId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkAuditId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPLIANCE_FRAMEWORK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object complianceFramework_ = ""; + + /** + * + * + *
                                    +   * Output only. The compliance framework used for the audit.
                                    +   * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The complianceFramework. + */ + @java.lang.Override + public java.lang.String getComplianceFramework() { + java.lang.Object ref = complianceFramework_; + 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(); + complianceFramework_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The compliance framework used for the audit.
                                    +   * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for complianceFramework. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComplianceFrameworkBytes() { + java.lang.Object ref = complianceFramework_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + complianceFramework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; + + /** + * + * + *
                                    +   * Output only. The scope of the audit.
                                    +   * 
                                    + * + * string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + 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(); + scope_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The scope of the audit.
                                    +   * 
                                    + * + * string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FRAMEWORK_AUDIT_DESTINATION_FIELD_NUMBER = 5; + private com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + frameworkAuditDestination_; + + /** + * + * + *
                                    +   * Required. The destination for the audit reports.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the frameworkAuditDestination field is set. + */ + @java.lang.Override + public boolean hasFrameworkAuditDestination() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Required. The destination for the audit reports.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The frameworkAuditDestination. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + getFrameworkAuditDestination() { + return frameworkAuditDestination_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.getDefaultInstance() + : frameworkAuditDestination_; + } + + /** + * + * + *
                                    +   * Required. The destination for the audit reports.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationOrBuilder + getFrameworkAuditDestinationOrBuilder() { + return frameworkAuditDestination_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.getDefaultInstance() + : frameworkAuditDestination_; + } + + public static final int START_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
                                    +   * Output only. The time that the audit started.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * Output only. The time that the audit started.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
                                    +   * Output only. The time that the audit started.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int FINISH_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp finishTime_; + + /** + * + * + *
                                    +   * Output only. The time that the audit finished.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the finishTime field is set. + */ + @java.lang.Override + public boolean hasFinishTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                    +   * Output only. The time that the audit finished.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The finishTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFinishTime() { + return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_; + } + + /** + * + * + *
                                    +   * Output only. The time that the audit finished.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { + return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_; + } + + public static final int COMPLIANCE_STATE_FIELD_NUMBER = 8; + private int complianceState_ = 0; + + /** + * + * + *
                                    +   * Output only. The overall compliance state of the audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + @java.lang.Override + public int getComplianceStateValue() { + return complianceState_; + } + + /** + * + * + *
                                    +   * Output only. The overall compliance state of the audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState() { + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState result = + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.forNumber(complianceState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.UNRECOGNIZED + : result; + } + + public static final int REPORT_SUMMARY_FIELD_NUMBER = 9; + private com.google.cloud.cloudsecuritycompliance.v1.ReportSummary reportSummary_; + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportSummary field is set. + */ + @java.lang.Override + public boolean hasReportSummary() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportSummary. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getReportSummary() { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder + getReportSummaryOrBuilder() { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } + + public static final int CLOUD_CONTROL_GROUP_AUDIT_DETAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + cloudControlGroupAuditDetails_; + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCloudControlGroupAuditDetailsList() { + return cloudControlGroupAuditDetails_; + } + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder> + getCloudControlGroupAuditDetailsOrBuilderList() { + return cloudControlGroupAuditDetails_; + } + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCloudControlGroupAuditDetailsCount() { + return cloudControlGroupAuditDetails_.size(); + } + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + getCloudControlGroupAuditDetails(int index) { + return cloudControlGroupAuditDetails_.get(index); + } + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder + getCloudControlGroupAuditDetailsOrBuilder(int index) { + return cloudControlGroupAuditDetails_.get(index); + } + + public static final int CLOUD_CONTROL_AUDIT_DETAILS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List + cloudControlAuditDetails_; + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCloudControlAuditDetailsList() { + return cloudControlAuditDetails_; + } + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + getCloudControlAuditDetailsOrBuilderList() { + return cloudControlAuditDetails_; + } + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCloudControlAuditDetailsCount() { + return cloudControlAuditDetails_.size(); + } + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + getCloudControlAuditDetails(int index) { + return cloudControlAuditDetails_.get(index); + } + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder + getCloudControlAuditDetailsOrBuilder(int index) { + return cloudControlAuditDetails_.get(index); + } + + public static final int OPERATION_ID_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object operationId_ = ""; + + /** + * + * + *
                                    +   * Output only. The ID of the long-running operation.
                                    +   * 
                                    + * + * string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The operationId. + */ + @java.lang.Override + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + 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(); + operationId_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The ID of the long-running operation.
                                    +   * 
                                    + * + * string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for operationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 13; + private int state_ = 0; + + /** + * + * + *
                                    +   * Output only. The framework audit state of the audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                    +   * Output only. The framework audit state of the audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State getState() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State result = + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State.forNumber(state_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkAuditId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, frameworkAuditId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(complianceFramework_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, complianceFramework_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getFrameworkAuditDestination()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getFinishTime()); + } + if (complianceState_ + != com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.COMPLIANCE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, complianceState_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getReportSummary()); + } + for (int i = 0; i < cloudControlGroupAuditDetails_.size(); i++) { + output.writeMessage(10, cloudControlGroupAuditDetails_.get(i)); + } + for (int i = 0; i < cloudControlAuditDetails_.size(); i++) { + output.writeMessage(11, cloudControlAuditDetails_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, operationId_); + } + if (state_ + != com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkAuditId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, frameworkAuditId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(complianceFramework_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, complianceFramework_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, scope_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getFrameworkAuditDestination()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFinishTime()); + } + if (complianceState_ + != com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.COMPLIANCE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, complianceState_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getReportSummary()); + } + for (int i = 0; i < cloudControlGroupAuditDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, cloudControlGroupAuditDetails_.get(i)); + } + for (int i = 0; i < cloudControlAuditDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, cloudControlAuditDetails_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, operationId_); + } + if (state_ + != com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); + } + 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.cloudsecuritycompliance.v1.FrameworkAudit)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit other = + (com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFrameworkAuditId().equals(other.getFrameworkAuditId())) return false; + if (!getComplianceFramework().equals(other.getComplianceFramework())) return false; + if (!getScope().equals(other.getScope())) return false; + if (hasFrameworkAuditDestination() != other.hasFrameworkAuditDestination()) return false; + if (hasFrameworkAuditDestination()) { + if (!getFrameworkAuditDestination().equals(other.getFrameworkAuditDestination())) + return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasFinishTime() != other.hasFinishTime()) return false; + if (hasFinishTime()) { + if (!getFinishTime().equals(other.getFinishTime())) return false; + } + if (complianceState_ != other.complianceState_) return false; + if (hasReportSummary() != other.hasReportSummary()) return false; + if (hasReportSummary()) { + if (!getReportSummary().equals(other.getReportSummary())) return false; + } + if (!getCloudControlGroupAuditDetailsList() + .equals(other.getCloudControlGroupAuditDetailsList())) return false; + if (!getCloudControlAuditDetailsList().equals(other.getCloudControlAuditDetailsList())) + return false; + if (!getOperationId().equals(other.getOperationId())) return false; + if (state_ != other.state_) 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) + FRAMEWORK_AUDIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkAuditId().hashCode(); + hash = (37 * hash) + COMPLIANCE_FRAMEWORK_FIELD_NUMBER; + hash = (53 * hash) + getComplianceFramework().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + if (hasFrameworkAuditDestination()) { + hash = (37 * hash) + FRAMEWORK_AUDIT_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkAuditDestination().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasFinishTime()) { + hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFinishTime().hashCode(); + } + hash = (37 * hash) + COMPLIANCE_STATE_FIELD_NUMBER; + hash = (53 * hash) + complianceState_; + if (hasReportSummary()) { + hash = (37 * hash) + REPORT_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getReportSummary().hashCode(); + } + if (getCloudControlGroupAuditDetailsCount() > 0) { + hash = (37 * hash) + CLOUD_CONTROL_GROUP_AUDIT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlGroupAuditDetailsList().hashCode(); + } + if (getCloudControlAuditDetailsCount() > 0) { + hash = (37 * hash) + CLOUD_CONTROL_AUDIT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlAuditDetailsList().hashCode(); + } + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit 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.cloudsecuritycompliance.v1.FrameworkAudit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit 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.cloudsecuritycompliance.v1.FrameworkAudit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * A framework audit.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkAudit} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.FrameworkAudit) + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.class, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFrameworkAuditDestinationFieldBuilder(); + getStartTimeFieldBuilder(); + getFinishTimeFieldBuilder(); + getReportSummaryFieldBuilder(); + getCloudControlGroupAuditDetailsFieldBuilder(); + getCloudControlAuditDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + frameworkAuditId_ = ""; + complianceFramework_ = ""; + scope_ = ""; + frameworkAuditDestination_ = null; + if (frameworkAuditDestinationBuilder_ != null) { + frameworkAuditDestinationBuilder_.dispose(); + frameworkAuditDestinationBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + finishTime_ = null; + if (finishTimeBuilder_ != null) { + finishTimeBuilder_.dispose(); + finishTimeBuilder_ = null; + } + complianceState_ = 0; + reportSummary_ = null; + if (reportSummaryBuilder_ != null) { + reportSummaryBuilder_.dispose(); + reportSummaryBuilder_ = null; + } + if (cloudControlGroupAuditDetailsBuilder_ == null) { + cloudControlGroupAuditDetails_ = java.util.Collections.emptyList(); + } else { + cloudControlGroupAuditDetails_ = null; + cloudControlGroupAuditDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + if (cloudControlAuditDetailsBuilder_ == null) { + cloudControlAuditDetails_ = java.util.Collections.emptyList(); + } else { + cloudControlAuditDetails_ = null; + cloudControlAuditDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + operationId_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAudit_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit build() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit result = + new com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit result) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + cloudControlGroupAuditDetails_ = + java.util.Collections.unmodifiableList(cloudControlGroupAuditDetails_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.cloudControlGroupAuditDetails_ = cloudControlGroupAuditDetails_; + } else { + result.cloudControlGroupAuditDetails_ = cloudControlGroupAuditDetailsBuilder_.build(); + } + if (cloudControlAuditDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + cloudControlAuditDetails_ = + java.util.Collections.unmodifiableList(cloudControlAuditDetails_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.cloudControlAuditDetails_ = cloudControlAuditDetails_; + } else { + result.cloudControlAuditDetails_ = cloudControlAuditDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.frameworkAuditId_ = frameworkAuditId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.complianceFramework_ = complianceFramework_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.scope_ = scope_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.frameworkAuditDestination_ = + frameworkAuditDestinationBuilder_ == null + ? frameworkAuditDestination_ + : frameworkAuditDestinationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.finishTime_ = finishTimeBuilder_ == null ? finishTime_ : finishTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.complianceState_ = complianceState_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.reportSummary_ = + reportSummaryBuilder_ == null ? reportSummary_ : reportSummaryBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.operationId_ = operationId_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFrameworkAuditId().isEmpty()) { + frameworkAuditId_ = other.frameworkAuditId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getComplianceFramework().isEmpty()) { + complianceFramework_ = other.complianceFramework_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getScope().isEmpty()) { + scope_ = other.scope_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasFrameworkAuditDestination()) { + mergeFrameworkAuditDestination(other.getFrameworkAuditDestination()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasFinishTime()) { + mergeFinishTime(other.getFinishTime()); + } + if (other.complianceState_ != 0) { + setComplianceStateValue(other.getComplianceStateValue()); + } + if (other.hasReportSummary()) { + mergeReportSummary(other.getReportSummary()); + } + if (cloudControlGroupAuditDetailsBuilder_ == null) { + if (!other.cloudControlGroupAuditDetails_.isEmpty()) { + if (cloudControlGroupAuditDetails_.isEmpty()) { + cloudControlGroupAuditDetails_ = other.cloudControlGroupAuditDetails_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureCloudControlGroupAuditDetailsIsMutable(); + cloudControlGroupAuditDetails_.addAll(other.cloudControlGroupAuditDetails_); + } + onChanged(); + } + } else { + if (!other.cloudControlGroupAuditDetails_.isEmpty()) { + if (cloudControlGroupAuditDetailsBuilder_.isEmpty()) { + cloudControlGroupAuditDetailsBuilder_.dispose(); + cloudControlGroupAuditDetailsBuilder_ = null; + cloudControlGroupAuditDetails_ = other.cloudControlGroupAuditDetails_; + bitField0_ = (bitField0_ & ~0x00000200); + cloudControlGroupAuditDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCloudControlGroupAuditDetailsFieldBuilder() + : null; + } else { + cloudControlGroupAuditDetailsBuilder_.addAllMessages( + other.cloudControlGroupAuditDetails_); + } + } + } + if (cloudControlAuditDetailsBuilder_ == null) { + if (!other.cloudControlAuditDetails_.isEmpty()) { + if (cloudControlAuditDetails_.isEmpty()) { + cloudControlAuditDetails_ = other.cloudControlAuditDetails_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureCloudControlAuditDetailsIsMutable(); + cloudControlAuditDetails_.addAll(other.cloudControlAuditDetails_); + } + onChanged(); + } + } else { + if (!other.cloudControlAuditDetails_.isEmpty()) { + if (cloudControlAuditDetailsBuilder_.isEmpty()) { + cloudControlAuditDetailsBuilder_.dispose(); + cloudControlAuditDetailsBuilder_ = null; + cloudControlAuditDetails_ = other.cloudControlAuditDetails_; + bitField0_ = (bitField0_ & ~0x00000400); + cloudControlAuditDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCloudControlAuditDetailsFieldBuilder() + : null; + } else { + cloudControlAuditDetailsBuilder_.addAllMessages(other.cloudControlAuditDetails_); + } + } + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + frameworkAuditId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + complianceFramework_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getFrameworkAuditDestinationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getFinishTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + complianceState_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + input.readMessage(getReportSummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + .parser(), + extensionRegistry); + if (cloudControlGroupAuditDetailsBuilder_ == null) { + ensureCloudControlGroupAuditDetailsIsMutable(); + cloudControlGroupAuditDetails_.add(m); + } else { + cloudControlGroupAuditDetailsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + .parser(), + extensionRegistry); + if (cloudControlAuditDetailsBuilder_ == null) { + ensureCloudControlAuditDetailsIsMutable(); + cloudControlAuditDetails_.add(m); + } else { + cloudControlAuditDetailsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: + { + state_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 + 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_ = ""; + + /** + * + * + *
                                    +     * Output only. Identifier. The name of the framework audit.
                                    +     * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. Identifier. The name of the framework audit.
                                    +     * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. Identifier. The name of the framework audit.
                                    +     * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + + /** + * + * + *
                                    +     * Output only. Identifier. The name of the framework audit.
                                    +     * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. Identifier. The name of the framework audit.
                                    +     * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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 frameworkAuditId_ = ""; + + /** + * + * + *
                                    +     * Output only. The ID of the framework audit.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The frameworkAuditId. + */ + public java.lang.String getFrameworkAuditId() { + java.lang.Object ref = frameworkAuditId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + frameworkAuditId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the framework audit.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for frameworkAuditId. + */ + public com.google.protobuf.ByteString getFrameworkAuditIdBytes() { + java.lang.Object ref = frameworkAuditId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkAuditId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the framework audit.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The frameworkAuditId to set. + * @return This builder for chaining. + */ + public Builder setFrameworkAuditId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + frameworkAuditId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the framework audit.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFrameworkAuditId() { + frameworkAuditId_ = getDefaultInstance().getFrameworkAuditId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the framework audit.
                                    +     * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for frameworkAuditId to set. + * @return This builder for chaining. + */ + public Builder setFrameworkAuditIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameworkAuditId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object complianceFramework_ = ""; + + /** + * + * + *
                                    +     * Output only. The compliance framework used for the audit.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The complianceFramework. + */ + public java.lang.String getComplianceFramework() { + java.lang.Object ref = complianceFramework_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + complianceFramework_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The compliance framework used for the audit.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for complianceFramework. + */ + public com.google.protobuf.ByteString getComplianceFrameworkBytes() { + java.lang.Object ref = complianceFramework_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + complianceFramework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The compliance framework used for the audit.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The complianceFramework to set. + * @return This builder for chaining. + */ + public Builder setComplianceFramework(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + complianceFramework_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The compliance framework used for the audit.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearComplianceFramework() { + complianceFramework_ = getDefaultInstance().getComplianceFramework(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The compliance framework used for the audit.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for complianceFramework to set. + * @return This builder for chaining. + */ + public Builder setComplianceFrameworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + complianceFramework_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object scope_ = ""; + + /** + * + * + *
                                    +     * Output only. The scope of the audit.
                                    +     * 
                                    + * + * string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The scope of the audit.
                                    +     * 
                                    + * + * string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The scope of the audit.
                                    +     * 
                                    + * + * string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The scope of the audit.
                                    +     * 
                                    + * + * string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The scope of the audit.
                                    +     * 
                                    + * + * string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + frameworkAuditDestination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationOrBuilder> + frameworkAuditDestinationBuilder_; + + /** + * + * + *
                                    +     * Required. The destination for the audit reports.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the frameworkAuditDestination field is set. + */ + public boolean hasFrameworkAuditDestination() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                    +     * Required. The destination for the audit reports.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The frameworkAuditDestination. + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + getFrameworkAuditDestination() { + if (frameworkAuditDestinationBuilder_ == null) { + return frameworkAuditDestination_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + .getDefaultInstance() + : frameworkAuditDestination_; + } else { + return frameworkAuditDestinationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Required. The destination for the audit reports.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFrameworkAuditDestination( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination value) { + if (frameworkAuditDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + frameworkAuditDestination_ = value; + } else { + frameworkAuditDestinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The destination for the audit reports.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFrameworkAuditDestination( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.Builder + builderForValue) { + if (frameworkAuditDestinationBuilder_ == null) { + frameworkAuditDestination_ = builderForValue.build(); + } else { + frameworkAuditDestinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The destination for the audit reports.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFrameworkAuditDestination( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination value) { + if (frameworkAuditDestinationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && frameworkAuditDestination_ != null + && frameworkAuditDestination_ + != com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + .getDefaultInstance()) { + getFrameworkAuditDestinationBuilder().mergeFrom(value); + } else { + frameworkAuditDestination_ = value; + } + } else { + frameworkAuditDestinationBuilder_.mergeFrom(value); + } + if (frameworkAuditDestination_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The destination for the audit reports.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFrameworkAuditDestination() { + bitField0_ = (bitField0_ & ~0x00000010); + frameworkAuditDestination_ = null; + if (frameworkAuditDestinationBuilder_ != null) { + frameworkAuditDestinationBuilder_.dispose(); + frameworkAuditDestinationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The destination for the audit reports.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.Builder + getFrameworkAuditDestinationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getFrameworkAuditDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Required. The destination for the audit reports.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationOrBuilder + getFrameworkAuditDestinationOrBuilder() { + if (frameworkAuditDestinationBuilder_ != null) { + return frameworkAuditDestinationBuilder_.getMessageOrBuilder(); + } else { + return frameworkAuditDestination_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + .getDefaultInstance() + : frameworkAuditDestination_; + } + } + + /** + * + * + *
                                    +     * Required. The destination for the audit reports.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationOrBuilder> + getFrameworkAuditDestinationFieldBuilder() { + if (frameworkAuditDestinationBuilder_ == null) { + frameworkAuditDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationOrBuilder>( + getFrameworkAuditDestination(), getParentForChildren(), isClean()); + frameworkAuditDestination_ = null; + } + return frameworkAuditDestinationBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
                                    +     * Output only. The time that the audit started.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                    +     * Output only. The time that the audit started.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Output only. The time that the audit started.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The time that the audit started.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The time that the audit started.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The time that the audit started.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The time that the audit started.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The time that the audit started.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
                                    +     * Output only. The time that the audit started.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp finishTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + finishTimeBuilder_; + + /** + * + * + *
                                    +     * Output only. The time that the audit finished.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the finishTime field is set. + */ + public boolean hasFinishTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                    +     * Output only. The time that the audit finished.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The finishTime. + */ + public com.google.protobuf.Timestamp getFinishTime() { + if (finishTimeBuilder_ == null) { + return finishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : finishTime_; + } else { + return finishTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Output only. The time that the audit finished.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFinishTime(com.google.protobuf.Timestamp value) { + if (finishTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + finishTime_ = value; + } else { + finishTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The time that the audit finished.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFinishTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (finishTimeBuilder_ == null) { + finishTime_ = builderForValue.build(); + } else { + finishTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The time that the audit finished.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeFinishTime(com.google.protobuf.Timestamp value) { + if (finishTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && finishTime_ != null + && finishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFinishTimeBuilder().mergeFrom(value); + } else { + finishTime_ = value; + } + } else { + finishTimeBuilder_.mergeFrom(value); + } + if (finishTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The time that the audit finished.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFinishTime() { + bitField0_ = (bitField0_ & ~0x00000040); + finishTime_ = null; + if (finishTimeBuilder_ != null) { + finishTimeBuilder_.dispose(); + finishTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The time that the audit finished.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getFinishTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getFinishTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The time that the audit finished.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { + if (finishTimeBuilder_ != null) { + return finishTimeBuilder_.getMessageOrBuilder(); + } else { + return finishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : finishTime_; + } + } + + /** + * + * + *
                                    +     * Output only. The time that the audit finished.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getFinishTimeFieldBuilder() { + if (finishTimeBuilder_ == null) { + finishTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getFinishTime(), getParentForChildren(), isClean()); + finishTime_ = null; + } + return finishTimeBuilder_; + } + + private int complianceState_ = 0; + + /** + * + * + *
                                    +     * Output only. The overall compliance state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + @java.lang.Override + public int getComplianceStateValue() { + return complianceState_; + } + + /** + * + * + *
                                    +     * Output only. The overall compliance state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for complianceState to set. + * @return This builder for chaining. + */ + public Builder setComplianceStateValue(int value) { + complianceState_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The overall compliance state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState() { + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState result = + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.forNumber(complianceState_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.ComplianceState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Output only. The overall compliance state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The complianceState to set. + * @return This builder for chaining. + */ + public Builder setComplianceState( + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + complianceState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The overall compliance state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearComplianceState() { + bitField0_ = (bitField0_ & ~0x00000080); + complianceState_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.ReportSummary reportSummary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder> + reportSummaryBuilder_; + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportSummary field is set. + */ + public boolean hasReportSummary() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportSummary. + */ + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getReportSummary() { + if (reportSummaryBuilder_ == null) { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } else { + return reportSummaryBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReportSummary( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary value) { + if (reportSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportSummary_ = value; + } else { + reportSummaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReportSummary( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder builderForValue) { + if (reportSummaryBuilder_ == null) { + reportSummary_ = builderForValue.build(); + } else { + reportSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeReportSummary( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary value) { + if (reportSummaryBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && reportSummary_ != null + && reportSummary_ + != com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance()) { + getReportSummaryBuilder().mergeFrom(value); + } else { + reportSummary_ = value; + } + } else { + reportSummaryBuilder_.mergeFrom(value); + } + if (reportSummary_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearReportSummary() { + bitField0_ = (bitField0_ & ~0x00000100); + reportSummary_ = null; + if (reportSummaryBuilder_ != null) { + reportSummaryBuilder_.dispose(); + reportSummaryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder + getReportSummaryBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getReportSummaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder + getReportSummaryOrBuilder() { + if (reportSummaryBuilder_ != null) { + return reportSummaryBuilder_.getMessageOrBuilder(); + } else { + return reportSummary_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance() + : reportSummary_; + } + } + + /** + * + * + *
                                    +     * Output only. The summary of the report.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder> + getReportSummaryFieldBuilder() { + if (reportSummaryBuilder_ == null) { + reportSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder>( + getReportSummary(), getParentForChildren(), isClean()); + reportSummary_ = null; + } + return reportSummaryBuilder_; + } + + private java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails> + cloudControlGroupAuditDetails_ = java.util.Collections.emptyList(); + + private void ensureCloudControlGroupAuditDetailsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + cloudControlGroupAuditDetails_ = + new java.util.ArrayList< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails>( + cloudControlGroupAuditDetails_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder> + cloudControlGroupAuditDetailsBuilder_; + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlGroupAuditDetailsList() { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cloudControlGroupAuditDetails_); + } else { + return cloudControlGroupAuditDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCloudControlGroupAuditDetailsCount() { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + return cloudControlGroupAuditDetails_.size(); + } else { + return cloudControlGroupAuditDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + getCloudControlGroupAuditDetails(int index) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + return cloudControlGroupAuditDetails_.get(index); + } else { + return cloudControlGroupAuditDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlGroupAuditDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails value) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlGroupAuditDetailsIsMutable(); + cloudControlGroupAuditDetails_.set(index, value); + onChanged(); + } else { + cloudControlGroupAuditDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlGroupAuditDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder + builderForValue) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + ensureCloudControlGroupAuditDetailsIsMutable(); + cloudControlGroupAuditDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + cloudControlGroupAuditDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlGroupAuditDetails( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails value) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlGroupAuditDetailsIsMutable(); + cloudControlGroupAuditDetails_.add(value); + onChanged(); + } else { + cloudControlGroupAuditDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlGroupAuditDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails value) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlGroupAuditDetailsIsMutable(); + cloudControlGroupAuditDetails_.add(index, value); + onChanged(); + } else { + cloudControlGroupAuditDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlGroupAuditDetails( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder + builderForValue) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + ensureCloudControlGroupAuditDetailsIsMutable(); + cloudControlGroupAuditDetails_.add(builderForValue.build()); + onChanged(); + } else { + cloudControlGroupAuditDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlGroupAuditDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder + builderForValue) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + ensureCloudControlGroupAuditDetailsIsMutable(); + cloudControlGroupAuditDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + cloudControlGroupAuditDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCloudControlGroupAuditDetails( + java.lang.Iterable< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails> + values) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + ensureCloudControlGroupAuditDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cloudControlGroupAuditDetails_); + onChanged(); + } else { + cloudControlGroupAuditDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudControlGroupAuditDetails() { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + cloudControlGroupAuditDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + cloudControlGroupAuditDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCloudControlGroupAuditDetails(int index) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + ensureCloudControlGroupAuditDetailsIsMutable(); + cloudControlGroupAuditDetails_.remove(index); + onChanged(); + } else { + cloudControlGroupAuditDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder + getCloudControlGroupAuditDetailsBuilder(int index) { + return getCloudControlGroupAuditDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder + getCloudControlGroupAuditDetailsOrBuilder(int index) { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + return cloudControlGroupAuditDetails_.get(index); + } else { + return cloudControlGroupAuditDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder> + getCloudControlGroupAuditDetailsOrBuilderList() { + if (cloudControlGroupAuditDetailsBuilder_ != null) { + return cloudControlGroupAuditDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cloudControlGroupAuditDetails_); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder + addCloudControlGroupAuditDetailsBuilder() { + return getCloudControlGroupAuditDetailsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder + addCloudControlGroupAuditDetailsBuilder(int index) { + return getCloudControlGroupAuditDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud control groups within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder> + getCloudControlGroupAuditDetailsBuilderList() { + return getCloudControlGroupAuditDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder> + getCloudControlGroupAuditDetailsFieldBuilder() { + if (cloudControlGroupAuditDetailsBuilder_ == null) { + cloudControlGroupAuditDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder>( + cloudControlGroupAuditDetails_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + cloudControlGroupAuditDetails_ = null; + } + return cloudControlGroupAuditDetailsBuilder_; + } + + private java.util.List + cloudControlAuditDetails_ = java.util.Collections.emptyList(); + + private void ensureCloudControlAuditDetailsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + cloudControlAuditDetails_ = + new java.util.ArrayList< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails>( + cloudControlAuditDetails_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + cloudControlAuditDetailsBuilder_; + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlAuditDetailsList() { + if (cloudControlAuditDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cloudControlAuditDetails_); + } else { + return cloudControlAuditDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCloudControlAuditDetailsCount() { + if (cloudControlAuditDetailsBuilder_ == null) { + return cloudControlAuditDetails_.size(); + } else { + return cloudControlAuditDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + getCloudControlAuditDetails(int index) { + if (cloudControlAuditDetailsBuilder_ == null) { + return cloudControlAuditDetails_.get(index); + } else { + return cloudControlAuditDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlAuditDetails( + int index, com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails value) { + if (cloudControlAuditDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlAuditDetailsIsMutable(); + cloudControlAuditDetails_.set(index, value); + onChanged(); + } else { + cloudControlAuditDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlAuditDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + builderForValue) { + if (cloudControlAuditDetailsBuilder_ == null) { + ensureCloudControlAuditDetailsIsMutable(); + cloudControlAuditDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + cloudControlAuditDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlAuditDetails( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails value) { + if (cloudControlAuditDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlAuditDetailsIsMutable(); + cloudControlAuditDetails_.add(value); + onChanged(); + } else { + cloudControlAuditDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlAuditDetails( + int index, com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails value) { + if (cloudControlAuditDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlAuditDetailsIsMutable(); + cloudControlAuditDetails_.add(index, value); + onChanged(); + } else { + cloudControlAuditDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlAuditDetails( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + builderForValue) { + if (cloudControlAuditDetailsBuilder_ == null) { + ensureCloudControlAuditDetailsIsMutable(); + cloudControlAuditDetails_.add(builderForValue.build()); + onChanged(); + } else { + cloudControlAuditDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlAuditDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + builderForValue) { + if (cloudControlAuditDetailsBuilder_ == null) { + ensureCloudControlAuditDetailsIsMutable(); + cloudControlAuditDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + cloudControlAuditDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCloudControlAuditDetails( + java.lang.Iterable< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails> + values) { + if (cloudControlAuditDetailsBuilder_ == null) { + ensureCloudControlAuditDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudControlAuditDetails_); + onChanged(); + } else { + cloudControlAuditDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudControlAuditDetails() { + if (cloudControlAuditDetailsBuilder_ == null) { + cloudControlAuditDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + cloudControlAuditDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCloudControlAuditDetails(int index) { + if (cloudControlAuditDetailsBuilder_ == null) { + ensureCloudControlAuditDetailsIsMutable(); + cloudControlAuditDetails_.remove(index); + onChanged(); + } else { + cloudControlAuditDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + getCloudControlAuditDetailsBuilder(int index) { + return getCloudControlAuditDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder + getCloudControlAuditDetailsOrBuilder(int index) { + if (cloudControlAuditDetailsBuilder_ == null) { + return cloudControlAuditDetails_.get(index); + } else { + return cloudControlAuditDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + getCloudControlAuditDetailsOrBuilderList() { + if (cloudControlAuditDetailsBuilder_ != null) { + return cloudControlAuditDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cloudControlAuditDetails_); + } + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + addCloudControlAuditDetailsBuilder() { + return getCloudControlAuditDetailsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder + addCloudControlAuditDetailsBuilder(int index) { + return getCloudControlAuditDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * Optional. The details for the cloud controls within this audit.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder> + getCloudControlAuditDetailsBuilderList() { + return getCloudControlAuditDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + getCloudControlAuditDetailsFieldBuilder() { + if (cloudControlAuditDetailsBuilder_ == null) { + cloudControlAuditDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder>( + cloudControlAuditDetails_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + cloudControlAuditDetails_ = null; + } + return cloudControlAuditDetailsBuilder_; + } + + private java.lang.Object operationId_ = ""; + + /** + * + * + *
                                    +     * Output only. The ID of the long-running operation.
                                    +     * 
                                    + * + * string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The operationId. + */ + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the long-running operation.
                                    +     * 
                                    + * + * string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for operationId. + */ + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The ID of the long-running operation.
                                    +     * 
                                    + * + * string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operationId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the long-running operation.
                                    +     * 
                                    + * + * string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOperationId() { + operationId_ = getDefaultInstance().getOperationId(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The ID of the long-running operation.
                                    +     * 
                                    + * + * string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                    +     * Output only. The framework audit state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                    +     * Output only. The framework audit state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The framework audit state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State getState() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State result = + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State.forNumber(state_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Output only. The framework audit state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The framework audit state of the audit.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00001000); + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkAudit) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkAudit) + private static final com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrameworkAudit 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.cloudsecuritycompliance.v1.FrameworkAudit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditDestination.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditDestination.java new file mode 100644 index 000000000000..96b434e37291 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditDestination.java @@ -0,0 +1,854 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * A destination for the framework audit.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination} + */ +public final class FrameworkAuditDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination) + FrameworkAuditDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FrameworkAuditDestination.newBuilder() to construct. + private FrameworkAuditDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FrameworkAuditDestination() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FrameworkAuditDestination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.class, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.Builder.class); + } + + private int destinationTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destinationType_; + + public enum DestinationTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BUCKET(1), + DESTINATIONTYPE_NOT_SET(0); + private final int value; + + private DestinationTypeCase(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 DestinationTypeCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationTypeCase forNumber(int value) { + switch (value) { + case 1: + return BUCKET; + case 0: + return DESTINATIONTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationTypeCase getDestinationTypeCase() { + return DestinationTypeCase.forNumber(destinationTypeCase_); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + /** + * + * + *
                                    +   * The Cloud Storage bucket destination.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + * + * @return Whether the bucket field is set. + */ + @java.lang.Override + public boolean hasBucket() { + return destinationTypeCase_ == 1; + } + + /** + * + * + *
                                    +   * The Cloud Storage bucket destination.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + * + * @return The bucket. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestination getBucket() { + if (destinationTypeCase_ == 1) { + return (com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) destinationType_; + } + return com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.getDefaultInstance(); + } + + /** + * + * + *
                                    +   * The Cloud Storage bucket destination.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestinationOrBuilder + getBucketOrBuilder() { + if (destinationTypeCase_ == 1) { + return (com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) destinationType_; + } + return com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (destinationTypeCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) destinationType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) destinationType_); + } + 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.cloudsecuritycompliance.v1.FrameworkAuditDestination)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination other = + (com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination) obj; + + if (!getDestinationTypeCase().equals(other.getDestinationTypeCase())) return false; + switch (destinationTypeCase_) { + case 1: + if (!getBucket().equals(other.getBucket())) 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(); + switch (destinationTypeCase_) { + case 1: + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination 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.cloudsecuritycompliance.v1.FrameworkAuditDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination 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.cloudsecuritycompliance.v1.FrameworkAuditDestination parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * A destination for the framework audit.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination) + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.class, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bucketBuilder_ != null) { + bucketBuilder_.clear(); + } + destinationTypeCase_ = 0; + destinationType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkAuditDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination build() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination result = + new com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination result) { + result.destinationTypeCase_ = destinationTypeCase_; + result.destinationType_ = this.destinationType_; + if (destinationTypeCase_ == 1 && bucketBuilder_ != null) { + result.destinationType_ = bucketBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + .getDefaultInstance()) return this; + switch (other.getDestinationTypeCase()) { + case BUCKET: + { + mergeBucket(other.getBucket()); + break; + } + case DESTINATIONTYPE_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: + { + input.readMessage(getBucketFieldBuilder().getBuilder(), extensionRegistry); + destinationTypeCase_ = 1; + 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 destinationTypeCase_ = 0; + private java.lang.Object destinationType_; + + public DestinationTypeCase getDestinationTypeCase() { + return DestinationTypeCase.forNumber(destinationTypeCase_); + } + + public Builder clearDestinationType() { + destinationTypeCase_ = 0; + destinationType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination, + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Builder, + com.google.cloud.cloudsecuritycompliance.v1.BucketDestinationOrBuilder> + bucketBuilder_; + + /** + * + * + *
                                    +     * The Cloud Storage bucket destination.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + * + * @return Whether the bucket field is set. + */ + @java.lang.Override + public boolean hasBucket() { + return destinationTypeCase_ == 1; + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket destination.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + * + * @return The bucket. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestination getBucket() { + if (bucketBuilder_ == null) { + if (destinationTypeCase_ == 1) { + return (com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) destinationType_; + } + return com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.getDefaultInstance(); + } else { + if (destinationTypeCase_ == 1) { + return bucketBuilder_.getMessage(); + } + return com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.getDefaultInstance(); + } + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket destination.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + */ + public Builder setBucket(com.google.cloud.cloudsecuritycompliance.v1.BucketDestination value) { + if (bucketBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationType_ = value; + onChanged(); + } else { + bucketBuilder_.setMessage(value); + } + destinationTypeCase_ = 1; + return this; + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket destination.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + */ + public Builder setBucket( + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Builder builderForValue) { + if (bucketBuilder_ == null) { + destinationType_ = builderForValue.build(); + onChanged(); + } else { + bucketBuilder_.setMessage(builderForValue.build()); + } + destinationTypeCase_ = 1; + return this; + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket destination.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + */ + public Builder mergeBucket( + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination value) { + if (bucketBuilder_ == null) { + if (destinationTypeCase_ == 1 + && destinationType_ + != com.google.cloud.cloudsecuritycompliance.v1.BucketDestination + .getDefaultInstance()) { + destinationType_ = + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.newBuilder( + (com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) + destinationType_) + .mergeFrom(value) + .buildPartial(); + } else { + destinationType_ = value; + } + onChanged(); + } else { + if (destinationTypeCase_ == 1) { + bucketBuilder_.mergeFrom(value); + } else { + bucketBuilder_.setMessage(value); + } + } + destinationTypeCase_ = 1; + return this; + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket destination.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + */ + public Builder clearBucket() { + if (bucketBuilder_ == null) { + if (destinationTypeCase_ == 1) { + destinationTypeCase_ = 0; + destinationType_ = null; + onChanged(); + } + } else { + if (destinationTypeCase_ == 1) { + destinationTypeCase_ = 0; + destinationType_ = null; + } + bucketBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket destination.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + */ + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Builder + getBucketBuilder() { + return getBucketFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket destination.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.BucketDestinationOrBuilder + getBucketOrBuilder() { + if ((destinationTypeCase_ == 1) && (bucketBuilder_ != null)) { + return bucketBuilder_.getMessageOrBuilder(); + } else { + if (destinationTypeCase_ == 1) { + return (com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) destinationType_; + } + return com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.getDefaultInstance(); + } + } + + /** + * + * + *
                                    +     * The Cloud Storage bucket destination.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination, + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Builder, + com.google.cloud.cloudsecuritycompliance.v1.BucketDestinationOrBuilder> + getBucketFieldBuilder() { + if (bucketBuilder_ == null) { + if (!(destinationTypeCase_ == 1)) { + destinationType_ = + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.getDefaultInstance(); + } + bucketBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination, + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination.Builder, + com.google.cloud.cloudsecuritycompliance.v1.BucketDestinationOrBuilder>( + (com.google.cloud.cloudsecuritycompliance.v1.BucketDestination) destinationType_, + getParentForChildren(), + isClean()); + destinationType_ = null; + } + destinationTypeCase_ = 1; + onChanged(); + return bucketBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination) + private static final com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrameworkAuditDestination 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.cloudsecuritycompliance.v1.FrameworkAuditDestination + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditDestinationOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditDestinationOrBuilder.java new file mode 100644 index 000000000000..3aed7f004f15 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditDestinationOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface FrameworkAuditDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The Cloud Storage bucket destination.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + * + * @return Whether the bucket field is set. + */ + boolean hasBucket(); + + /** + * + * + *
                                    +   * The Cloud Storage bucket destination.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + * + * @return The bucket. + */ + com.google.cloud.cloudsecuritycompliance.v1.BucketDestination getBucket(); + + /** + * + * + *
                                    +   * The Cloud Storage bucket destination.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.BucketDestination bucket = 1; + */ + com.google.cloud.cloudsecuritycompliance.v1.BucketDestinationOrBuilder getBucketOrBuilder(); + + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination.DestinationTypeCase + getDestinationTypeCase(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditName.java new file mode 100644 index 000000000000..d4c7547add2c --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditName.java @@ -0,0 +1,357 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 FrameworkAuditName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FRAMEWORK_AUDIT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/frameworkAudits/{framework_audit}"); + private static final PathTemplate ORGANIZATION_LOCATION_FRAMEWORK_AUDIT = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/frameworkAudits/{framework_audit}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String frameworkAudit; + private final String organization; + + @Deprecated + protected FrameworkAuditName() { + project = null; + location = null; + frameworkAudit = null; + organization = null; + } + + private FrameworkAuditName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkAudit = Preconditions.checkNotNull(builder.getFrameworkAudit()); + organization = null; + pathTemplate = PROJECT_LOCATION_FRAMEWORK_AUDIT; + } + + private FrameworkAuditName(OrganizationLocationFrameworkAuditBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkAudit = Preconditions.checkNotNull(builder.getFrameworkAudit()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_FRAMEWORK_AUDIT; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFrameworkAudit() { + return frameworkAudit; + } + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationFrameworkAuditBuilder() { + return new Builder(); + } + + public static OrganizationLocationFrameworkAuditBuilder + newOrganizationLocationFrameworkAuditBuilder() { + return new OrganizationLocationFrameworkAuditBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FrameworkAuditName of(String project, String location, String frameworkAudit) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkAudit(frameworkAudit) + .build(); + } + + public static FrameworkAuditName ofProjectLocationFrameworkAuditName( + String project, String location, String frameworkAudit) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkAudit(frameworkAudit) + .build(); + } + + public static FrameworkAuditName ofOrganizationLocationFrameworkAuditName( + String organization, String location, String frameworkAudit) { + return newOrganizationLocationFrameworkAuditBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkAudit(frameworkAudit) + .build(); + } + + public static String format(String project, String location, String frameworkAudit) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkAudit(frameworkAudit) + .build() + .toString(); + } + + public static String formatProjectLocationFrameworkAuditName( + String project, String location, String frameworkAudit) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkAudit(frameworkAudit) + .build() + .toString(); + } + + public static String formatOrganizationLocationFrameworkAuditName( + String organization, String location, String frameworkAudit) { + return newOrganizationLocationFrameworkAuditBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkAudit(frameworkAudit) + .build() + .toString(); + } + + public static FrameworkAuditName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_FRAMEWORK_AUDIT.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_FRAMEWORK_AUDIT.match(formattedString); + return ofProjectLocationFrameworkAuditName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("framework_audit")); + } else if (ORGANIZATION_LOCATION_FRAMEWORK_AUDIT.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_FRAMEWORK_AUDIT.match(formattedString); + return ofOrganizationLocationFrameworkAuditName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("framework_audit")); + } + throw new ValidationException("FrameworkAuditName.parse: formattedString not in valid format"); + } + + 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 (FrameworkAuditName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FRAMEWORK_AUDIT.matches(formattedString) + || ORGANIZATION_LOCATION_FRAMEWORK_AUDIT.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 (frameworkAudit != null) { + fieldMapBuilder.put("framework_audit", frameworkAudit); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FrameworkAuditName that = ((FrameworkAuditName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.frameworkAudit, that.frameworkAudit) + && Objects.equals(this.organization, that.organization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(frameworkAudit); + h *= 1000003; + h ^= Objects.hashCode(organization); + return h; + } + + /** Builder for projects/{project}/locations/{location}/frameworkAudits/{framework_audit}. */ + public static class Builder { + private String project; + private String location; + private String frameworkAudit; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFrameworkAudit() { + return frameworkAudit; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFrameworkAudit(String frameworkAudit) { + this.frameworkAudit = frameworkAudit; + return this; + } + + private Builder(FrameworkAuditName frameworkAuditName) { + Preconditions.checkArgument( + Objects.equals(frameworkAuditName.pathTemplate, PROJECT_LOCATION_FRAMEWORK_AUDIT), + "toBuilder is only supported when FrameworkAuditName has the pattern of" + + " projects/{project}/locations/{location}/frameworkAudits/{framework_audit}"); + this.project = frameworkAuditName.project; + this.location = frameworkAuditName.location; + this.frameworkAudit = frameworkAuditName.frameworkAudit; + } + + public FrameworkAuditName build() { + return new FrameworkAuditName(this); + } + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/frameworkAudits/{framework_audit}. + */ + public static class OrganizationLocationFrameworkAuditBuilder { + private String organization; + private String location; + private String frameworkAudit; + + protected OrganizationLocationFrameworkAuditBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFrameworkAudit() { + return frameworkAudit; + } + + public OrganizationLocationFrameworkAuditBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationFrameworkAuditBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationFrameworkAuditBuilder setFrameworkAudit(String frameworkAudit) { + this.frameworkAudit = frameworkAudit; + return this; + } + + public FrameworkAuditName build() { + return new FrameworkAuditName(this); + } + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditOrBuilder.java new file mode 100644 index 000000000000..2963db2650cf --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditOrBuilder.java @@ -0,0 +1,529 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface FrameworkAuditOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.FrameworkAudit) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Output only. Identifier. The name of the framework audit.
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Output only. Identifier. The name of the framework audit.
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                    +   * Output only. The ID of the framework audit.
                                    +   * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The frameworkAuditId. + */ + java.lang.String getFrameworkAuditId(); + + /** + * + * + *
                                    +   * Output only. The ID of the framework audit.
                                    +   * 
                                    + * + * string framework_audit_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for frameworkAuditId. + */ + com.google.protobuf.ByteString getFrameworkAuditIdBytes(); + + /** + * + * + *
                                    +   * Output only. The compliance framework used for the audit.
                                    +   * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The complianceFramework. + */ + java.lang.String getComplianceFramework(); + + /** + * + * + *
                                    +   * Output only. The compliance framework used for the audit.
                                    +   * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for complianceFramework. + */ + com.google.protobuf.ByteString getComplianceFrameworkBytes(); + + /** + * + * + *
                                    +   * Output only. The scope of the audit.
                                    +   * 
                                    + * + * string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scope. + */ + java.lang.String getScope(); + + /** + * + * + *
                                    +   * Output only. The scope of the audit.
                                    +   * 
                                    + * + * string scope = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scope. + */ + com.google.protobuf.ByteString getScopeBytes(); + + /** + * + * + *
                                    +   * Required. The destination for the audit reports.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the frameworkAuditDestination field is set. + */ + boolean hasFrameworkAuditDestination(); + + /** + * + * + *
                                    +   * Required. The destination for the audit reports.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The frameworkAuditDestination. + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination + getFrameworkAuditDestination(); + + /** + * + * + *
                                    +   * Required. The destination for the audit reports.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestination framework_audit_destination = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditDestinationOrBuilder + getFrameworkAuditDestinationOrBuilder(); + + /** + * + * + *
                                    +   * Output only. The time that the audit started.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
                                    +   * Output only. The time that the audit started.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
                                    +   * Output only. The time that the audit started.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                                    +   * Output only. The time that the audit finished.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the finishTime field is set. + */ + boolean hasFinishTime(); + + /** + * + * + *
                                    +   * Output only. The time that the audit finished.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The finishTime. + */ + com.google.protobuf.Timestamp getFinishTime(); + + /** + * + * + *
                                    +   * Output only. The time that the audit finished.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp finish_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder(); + + /** + * + * + *
                                    +   * Output only. The overall compliance state of the audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceState. + */ + int getComplianceStateValue(); + + /** + * + * + *
                                    +   * Output only. The overall compliance state of the audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ComplianceState compliance_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceState. + */ + com.google.cloud.cloudsecuritycompliance.v1.ComplianceState getComplianceState(); + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportSummary field is set. + */ + boolean hasReportSummary(); + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportSummary. + */ + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getReportSummary(); + + /** + * + * + *
                                    +   * Output only. The summary of the report.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ReportSummary report_summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder getReportSummaryOrBuilder(); + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCloudControlGroupAuditDetailsList(); + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails + getCloudControlGroupAuditDetails(int index); + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCloudControlGroupAuditDetailsCount(); + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder> + getCloudControlGroupAuditDetailsOrBuilderList(); + + /** + * + * + *
                                    +   * Optional. The details for the cloud control groups within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlGroupAuditDetailsOrBuilder + getCloudControlGroupAuditDetailsOrBuilder(int index); + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCloudControlAuditDetailsList(); + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails getCloudControlAuditDetails( + int index); + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCloudControlAuditDetailsCount(); + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder> + getCloudControlAuditDetailsOrBuilderList(); + + /** + * + * + *
                                    +   * Optional. The details for the cloud controls within this audit.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetails cloud_control_audit_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudControlAuditDetailsOrBuilder + getCloudControlAuditDetailsOrBuilder(int index); + + /** + * + * + *
                                    +   * Output only. The ID of the long-running operation.
                                    +   * 
                                    + * + * string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The operationId. + */ + java.lang.String getOperationId(); + + /** + * + * + *
                                    +   * Output only. The ID of the long-running operation.
                                    +   * 
                                    + * + * string operation_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for operationId. + */ + com.google.protobuf.ByteString getOperationIdBytes(); + + /** + * + * + *
                                    +   * Output only. The framework audit state of the audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                    +   * Output only. The framework audit state of the audit.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.State getState(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkCategory.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkCategory.java index a9ec2dce5b45..b663a4e164d8 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkCategory.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkCategory.java @@ -23,7 +23,7 @@ * * *
                                    - * The category of the framework.
                                    + * The category for the framework.
                                      * 
                                    * * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.FrameworkCategory} @@ -43,7 +43,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * Standard framework
                                    +   * An industry-defined framework.
                                        * 
                                    * * INDUSTRY_DEFINED_STANDARD = 1; @@ -53,7 +53,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * Assured Workloads framework
                                    +   * An Assured Workloads framework.
                                        * 
                                    * * ASSURED_WORKLOADS = 2; @@ -63,7 +63,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * Data Security framework
                                    +   * A data security posture framework.
                                        * 
                                    * * DATA_SECURITY = 3; @@ -73,7 +73,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * Google Best Practices framework
                                    +   * A Google's best practices framework.
                                        * 
                                    * * GOOGLE_BEST_PRACTICES = 4; @@ -83,7 +83,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * User created framework.
                                    +   * A user-created framework.
                                        * 
                                    * * CUSTOM_FRAMEWORK = 5; @@ -107,7 +107,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * Standard framework
                                    +   * An industry-defined framework.
                                        * 
                                    * * INDUSTRY_DEFINED_STANDARD = 1; @@ -118,7 +118,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * Assured Workloads framework
                                    +   * An Assured Workloads framework.
                                        * 
                                    * * ASSURED_WORKLOADS = 2; @@ -129,7 +129,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * Data Security framework
                                    +   * A data security posture framework.
                                        * 
                                    * * DATA_SECURITY = 3; @@ -140,7 +140,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * Google Best Practices framework
                                    +   * A Google's best practices framework.
                                        * 
                                    * * GOOGLE_BEST_PRACTICES = 4; @@ -151,7 +151,7 @@ public enum FrameworkCategory implements com.google.protobuf.ProtocolMessageEnum * * *
                                    -   * User created framework.
                                    +   * A user-created framework.
                                        * 
                                    * * CUSTOM_FRAMEWORK = 5; @@ -226,7 +226,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final FrameworkCategory[] VALUES = values(); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReport.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReport.java new file mode 100644 index 000000000000..57274eb67fc2 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReport.java @@ -0,0 +1,3701 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The response message for [GetFrameworkComplianceReport][].
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport} + */ +public final class FrameworkComplianceReport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport) + FrameworkComplianceReportOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FrameworkComplianceReport.newBuilder() to construct. + private FrameworkComplianceReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FrameworkComplianceReport() { + framework_ = ""; + frameworkDescription_ = ""; + frameworkType_ = 0; + supportedCloudProviders_ = java.util.Collections.emptyList(); + frameworkCategories_ = java.util.Collections.emptyList(); + frameworkDisplayName_ = ""; + name_ = ""; + targetResourceDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FrameworkComplianceReport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport.class, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport.Builder.class); + } + + private int bitField0_; + public static final int FRAMEWORK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object framework_ = ""; + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The framework. + */ + @java.lang.Override + public java.lang.String getFramework() { + java.lang.Object ref = framework_; + 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(); + framework_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The bytes for framework. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrameworkBytes() { + java.lang.Object ref = framework_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + framework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FRAMEWORK_DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object frameworkDescription_ = ""; + + /** + * + * + *
                                    +   * The description of the framework.
                                    +   * 
                                    + * + * string framework_description = 2; + * + * @return The frameworkDescription. + */ + @java.lang.Override + public java.lang.String getFrameworkDescription() { + java.lang.Object ref = frameworkDescription_; + 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(); + frameworkDescription_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The description of the framework.
                                    +   * 
                                    + * + * string framework_description = 2; + * + * @return The bytes for frameworkDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrameworkDescriptionBytes() { + java.lang.Object ref = frameworkDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                    +   * Output only. The last updated time of the report.
                                    +   * 
                                    + * + * .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_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Output only. The last updated time of the report.
                                    +   * 
                                    + * + * .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 last updated time of the report.
                                    +   * 
                                    + * + * .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 CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER = 4; + private com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + controlAssessmentDetails_; + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + * + * @return Whether the controlAssessmentDetails field is set. + */ + @java.lang.Override + public boolean hasControlAssessmentDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + * + * @return The controlAssessmentDetails. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getControlAssessmentDetails() { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.getDefaultInstance() + : controlAssessmentDetails_; + } + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder + getControlAssessmentDetailsOrBuilder() { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.getDefaultInstance() + : controlAssessmentDetails_; + } + + public static final int FRAMEWORK_TYPE_FIELD_NUMBER = 5; + private int frameworkType_ = 0; + + /** + * + * + *
                                    +   * The type of framework.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * + * + * @return The enum numeric value on the wire for frameworkType. + */ + @java.lang.Override + public int getFrameworkTypeValue() { + return frameworkType_; + } + + /** + * + * + *
                                    +   * The type of framework.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * + * + * @return The frameworkType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getFrameworkType() { + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType result = + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType.forNumber( + frameworkType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType.UNRECOGNIZED + : result; + } + + public static final int SUPPORTED_CLOUD_PROVIDERS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List supportedCloudProviders_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider> + supportedCloudProviders_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider>() { + public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider convert( + java.lang.Integer from) { + com.google.cloud.cloudsecuritycompliance.v1.CloudProvider result = + com.google.cloud.cloudsecuritycompliance.v1.CloudProvider.forNumber(from); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.CloudProvider.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return A list containing the supportedCloudProviders. + */ + @java.lang.Override + public java.util.List + getSupportedCloudProvidersList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider>( + supportedCloudProviders_, supportedCloudProviders_converter_); + } + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return The count of supportedCloudProviders. + */ + @java.lang.Override + public int getSupportedCloudProvidersCount() { + return supportedCloudProviders_.size(); + } + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param index The index of the element to return. + * @return The supportedCloudProviders at the given index. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedCloudProviders( + int index) { + return supportedCloudProviders_converter_.convert(supportedCloudProviders_.get(index)); + } + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return A list containing the enum numeric values on the wire for supportedCloudProviders. + */ + @java.lang.Override + public java.util.List getSupportedCloudProvidersValueList() { + return supportedCloudProviders_; + } + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCloudProviders at the given index. + */ + @java.lang.Override + public int getSupportedCloudProvidersValue(int index) { + return supportedCloudProviders_.get(index); + } + + private int supportedCloudProvidersMemoizedSerializedSize; + + public static final int FRAMEWORK_CATEGORIES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List frameworkCategories_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory> + frameworkCategories_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory>() { + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory convert( + java.lang.Integer from) { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory result = + com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory.forNumber(from); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return A list containing the frameworkCategories. + */ + @java.lang.Override + public java.util.List + getFrameworkCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory>( + frameworkCategories_, frameworkCategories_converter_); + } + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return The count of frameworkCategories. + */ + @java.lang.Override + public int getFrameworkCategoriesCount() { + return frameworkCategories_.size(); + } + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param index The index of the element to return. + * @return The frameworkCategories at the given index. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory getFrameworkCategories( + int index) { + return frameworkCategories_converter_.convert(frameworkCategories_.get(index)); + } + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return A list containing the enum numeric values on the wire for frameworkCategories. + */ + @java.lang.Override + public java.util.List getFrameworkCategoriesValueList() { + return frameworkCategories_; + } + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of frameworkCategories at the given index. + */ + @java.lang.Override + public int getFrameworkCategoriesValue(int index) { + return frameworkCategories_.get(index); + } + + private int frameworkCategoriesMemoizedSerializedSize; + + public static final int FRAMEWORK_DISPLAY_NAME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object frameworkDisplayName_ = ""; + + /** + * + * + *
                                    +   * Optional. The display name for the framework.
                                    +   * 
                                    + * + * string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The frameworkDisplayName. + */ + @java.lang.Override + public java.lang.String getFrameworkDisplayName() { + java.lang.Object ref = frameworkDisplayName_; + 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(); + frameworkDisplayName_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Optional. The display name for the framework.
                                    +   * 
                                    + * + * string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for frameworkDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrameworkDisplayNameBytes() { + java.lang.Object ref = frameworkDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Identifier. The name of the framework compliance report.
                                    +   * 
                                    + * + * string name = 9 [(.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. The name of the framework compliance report.
                                    +   * 
                                    + * + * string name = 9 [(.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 MAJOR_REVISION_ID_FIELD_NUMBER = 10; + private long majorRevisionId_ = 0L; + + /** + * + * + *
                                    +   * The latest major revision ID of the framework.
                                    +   * 
                                    + * + * int64 major_revision_id = 10; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + + public static final int MINOR_REVISION_ID_FIELD_NUMBER = 11; + private long minorRevisionId_ = 0L; + + /** + * + * + *
                                    +   * The latest minor revision ID of the latest major revision of the framework.
                                    +   * 
                                    + * + * int64 minor_revision_id = 11; + * + * @return The minorRevisionId. + */ + @java.lang.Override + public long getMinorRevisionId() { + return minorRevisionId_; + } + + public static final int TARGET_RESOURCE_DETAILS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List + targetResourceDetails_; + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + @java.lang.Override + public java.util.List + getTargetResourceDetailsList() { + return targetResourceDetails_; + } + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + getTargetResourceDetailsOrBuilderList() { + return targetResourceDetails_; + } + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + @java.lang.Override + public int getTargetResourceDetailsCount() { + return targetResourceDetails_.size(); + } + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails getTargetResourceDetails( + int index) { + return targetResourceDetails_.get(index); + } + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder + getTargetResourceDetailsOrBuilder(int index) { + return targetResourceDetails_.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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(framework_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, framework_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, frameworkDescription_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getControlAssessmentDetails()); + } + if (frameworkType_ + != com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType + .FRAMEWORK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, frameworkType_); + } + if (getSupportedCloudProvidersList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(supportedCloudProvidersMemoizedSerializedSize); + } + for (int i = 0; i < supportedCloudProviders_.size(); i++) { + output.writeEnumNoTag(supportedCloudProviders_.get(i)); + } + if (getFrameworkCategoriesList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(frameworkCategoriesMemoizedSerializedSize); + } + for (int i = 0; i < frameworkCategories_.size(); i++) { + output.writeEnumNoTag(frameworkCategories_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, frameworkDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, name_); + } + if (majorRevisionId_ != 0L) { + output.writeInt64(10, majorRevisionId_); + } + if (minorRevisionId_ != 0L) { + output.writeInt64(11, minorRevisionId_); + } + for (int i = 0; i < targetResourceDetails_.size(); i++) { + output.writeMessage(12, targetResourceDetails_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(framework_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, framework_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, frameworkDescription_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getControlAssessmentDetails()); + } + if (frameworkType_ + != com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType + .FRAMEWORK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, frameworkType_); + } + { + int dataSize = 0; + for (int i = 0; i < supportedCloudProviders_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + supportedCloudProviders_.get(i)); + } + size += dataSize; + if (!getSupportedCloudProvidersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + supportedCloudProvidersMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < frameworkCategories_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(frameworkCategories_.get(i)); + } + size += dataSize; + if (!getFrameworkCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + frameworkCategoriesMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, frameworkDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, name_); + } + if (majorRevisionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, majorRevisionId_); + } + if (minorRevisionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, minorRevisionId_); + } + for (int i = 0; i < targetResourceDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, targetResourceDetails_.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.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport other = + (com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport) obj; + + if (!getFramework().equals(other.getFramework())) return false; + if (!getFrameworkDescription().equals(other.getFrameworkDescription())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasControlAssessmentDetails() != other.hasControlAssessmentDetails()) return false; + if (hasControlAssessmentDetails()) { + if (!getControlAssessmentDetails().equals(other.getControlAssessmentDetails())) return false; + } + if (frameworkType_ != other.frameworkType_) return false; + if (!supportedCloudProviders_.equals(other.supportedCloudProviders_)) return false; + if (!frameworkCategories_.equals(other.frameworkCategories_)) return false; + if (!getFrameworkDisplayName().equals(other.getFrameworkDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (getMajorRevisionId() != other.getMajorRevisionId()) return false; + if (getMinorRevisionId() != other.getMinorRevisionId()) return false; + if (!getTargetResourceDetailsList().equals(other.getTargetResourceDetailsList())) 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) + FRAMEWORK_FIELD_NUMBER; + hash = (53 * hash) + getFramework().hashCode(); + hash = (37 * hash) + FRAMEWORK_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkDescription().hashCode(); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasControlAssessmentDetails()) { + hash = (37 * hash) + CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getControlAssessmentDetails().hashCode(); + } + hash = (37 * hash) + FRAMEWORK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + frameworkType_; + if (getSupportedCloudProvidersCount() > 0) { + hash = (37 * hash) + SUPPORTED_CLOUD_PROVIDERS_FIELD_NUMBER; + hash = (53 * hash) + supportedCloudProviders_.hashCode(); + } + if (getFrameworkCategoriesCount() > 0) { + hash = (37 * hash) + FRAMEWORK_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + frameworkCategories_.hashCode(); + } + hash = (37 * hash) + FRAMEWORK_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkDisplayName().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MAJOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMajorRevisionId()); + hash = (37 * hash) + MINOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinorRevisionId()); + if (getTargetResourceDetailsCount() > 0) { + hash = (37 * hash) + TARGET_RESOURCE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getTargetResourceDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport 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.cloudsecuritycompliance.v1.FrameworkComplianceReport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport 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.cloudsecuritycompliance.v1.FrameworkComplianceReport parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The response message for [GetFrameworkComplianceReport][].
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport) + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport.class, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateTimeFieldBuilder(); + getControlAssessmentDetailsFieldBuilder(); + getTargetResourceDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + framework_ = ""; + frameworkDescription_ = ""; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + controlAssessmentDetails_ = null; + if (controlAssessmentDetailsBuilder_ != null) { + controlAssessmentDetailsBuilder_.dispose(); + controlAssessmentDetailsBuilder_ = null; + } + frameworkType_ = 0; + supportedCloudProviders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + frameworkCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + frameworkDisplayName_ = ""; + name_ = ""; + majorRevisionId_ = 0L; + minorRevisionId_ = 0L; + if (targetResourceDetailsBuilder_ == null) { + targetResourceDetails_ = java.util.Collections.emptyList(); + } else { + targetResourceDetails_ = null; + targetResourceDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport build() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport result = + new com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport result) { + if (((bitField0_ & 0x00000020) != 0)) { + supportedCloudProviders_ = java.util.Collections.unmodifiableList(supportedCloudProviders_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.supportedCloudProviders_ = supportedCloudProviders_; + if (((bitField0_ & 0x00000040) != 0)) { + frameworkCategories_ = java.util.Collections.unmodifiableList(frameworkCategories_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.frameworkCategories_ = frameworkCategories_; + if (targetResourceDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + targetResourceDetails_ = java.util.Collections.unmodifiableList(targetResourceDetails_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.targetResourceDetails_ = targetResourceDetails_; + } else { + result.targetResourceDetails_ = targetResourceDetailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.framework_ = framework_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.frameworkDescription_ = frameworkDescription_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.controlAssessmentDetails_ = + controlAssessmentDetailsBuilder_ == null + ? controlAssessmentDetails_ + : controlAssessmentDetailsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.frameworkType_ = frameworkType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.frameworkDisplayName_ = frameworkDisplayName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.majorRevisionId_ = majorRevisionId_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.minorRevisionId_ = minorRevisionId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + .getDefaultInstance()) return this; + if (!other.getFramework().isEmpty()) { + framework_ = other.framework_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFrameworkDescription().isEmpty()) { + frameworkDescription_ = other.frameworkDescription_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasControlAssessmentDetails()) { + mergeControlAssessmentDetails(other.getControlAssessmentDetails()); + } + if (other.frameworkType_ != 0) { + setFrameworkTypeValue(other.getFrameworkTypeValue()); + } + if (!other.supportedCloudProviders_.isEmpty()) { + if (supportedCloudProviders_.isEmpty()) { + supportedCloudProviders_ = other.supportedCloudProviders_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.addAll(other.supportedCloudProviders_); + } + onChanged(); + } + if (!other.frameworkCategories_.isEmpty()) { + if (frameworkCategories_.isEmpty()) { + frameworkCategories_ = other.frameworkCategories_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.addAll(other.frameworkCategories_); + } + onChanged(); + } + if (!other.getFrameworkDisplayName().isEmpty()) { + frameworkDisplayName_ = other.frameworkDisplayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.getMajorRevisionId() != 0L) { + setMajorRevisionId(other.getMajorRevisionId()); + } + if (other.getMinorRevisionId() != 0L) { + setMinorRevisionId(other.getMinorRevisionId()); + } + if (targetResourceDetailsBuilder_ == null) { + if (!other.targetResourceDetails_.isEmpty()) { + if (targetResourceDetails_.isEmpty()) { + targetResourceDetails_ = other.targetResourceDetails_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.addAll(other.targetResourceDetails_); + } + onChanged(); + } + } else { + if (!other.targetResourceDetails_.isEmpty()) { + if (targetResourceDetailsBuilder_.isEmpty()) { + targetResourceDetailsBuilder_.dispose(); + targetResourceDetailsBuilder_ = null; + targetResourceDetails_ = other.targetResourceDetails_; + bitField0_ = (bitField0_ & ~0x00000800); + targetResourceDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTargetResourceDetailsFieldBuilder() + : null; + } else { + targetResourceDetailsBuilder_.addAllMessages(other.targetResourceDetails_); + } + } + } + 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: + { + framework_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + frameworkDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getControlAssessmentDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + frameworkType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + int tmpRaw = input.readEnum(); + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.add(tmpRaw); + break; + } // case 48 + case 50: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 50 + case 56: + { + int tmpRaw = input.readEnum(); + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.add(tmpRaw); + break; + } // case 56 + case 58: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 58 + case 66: + { + frameworkDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: + { + majorRevisionId_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + minorRevisionId_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.parser(), + extensionRegistry); + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(m); + } else { + targetResourceDetailsBuilder_.addMessage(m); + } + break; + } // case 98 + 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 framework_ = ""; + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @return The framework. + */ + public java.lang.String getFramework() { + java.lang.Object ref = framework_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + framework_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @return The bytes for framework. + */ + public com.google.protobuf.ByteString getFrameworkBytes() { + java.lang.Object ref = framework_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + framework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @param value The framework to set. + * @return This builder for chaining. + */ + public Builder setFramework(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + framework_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @return This builder for chaining. + */ + public Builder clearFramework() { + framework_ = getDefaultInstance().getFramework(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @param value The bytes for framework to set. + * @return This builder for chaining. + */ + public Builder setFrameworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + framework_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object frameworkDescription_ = ""; + + /** + * + * + *
                                    +     * The description of the framework.
                                    +     * 
                                    + * + * string framework_description = 2; + * + * @return The frameworkDescription. + */ + public java.lang.String getFrameworkDescription() { + java.lang.Object ref = frameworkDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + frameworkDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The description of the framework.
                                    +     * 
                                    + * + * string framework_description = 2; + * + * @return The bytes for frameworkDescription. + */ + public com.google.protobuf.ByteString getFrameworkDescriptionBytes() { + java.lang.Object ref = frameworkDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The description of the framework.
                                    +     * 
                                    + * + * string framework_description = 2; + * + * @param value The frameworkDescription to set. + * @return This builder for chaining. + */ + public Builder setFrameworkDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + frameworkDescription_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The description of the framework.
                                    +     * 
                                    + * + * string framework_description = 2; + * + * @return This builder for chaining. + */ + public Builder clearFrameworkDescription() { + frameworkDescription_ = getDefaultInstance().getFrameworkDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The description of the framework.
                                    +     * 
                                    + * + * string framework_description = 2; + * + * @param value The bytes for frameworkDescription to set. + * @return This builder for chaining. + */ + public Builder setFrameworkDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameworkDescription_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                    +     * Output only. The last updated time of the report.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                    +     * Output only. The last updated time of the report.
                                    +     * 
                                    + * + * + * .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 last updated time of the report.
                                    +     * 
                                    + * + * + * .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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The last updated time of the report.
                                    +     * 
                                    + * + * + * .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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The last updated time of the report.
                                    +     * 
                                    + * + * + * .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_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The last updated time of the report.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The last updated time of the report.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The last updated time of the report.
                                    +     * 
                                    + * + * + * .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 last updated time of the report.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + controlAssessmentDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder> + controlAssessmentDetailsBuilder_; + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + * + * @return Whether the controlAssessmentDetails field is set. + */ + public boolean hasControlAssessmentDetails() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + * + * @return The controlAssessmentDetails. + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getControlAssessmentDetails() { + if (controlAssessmentDetailsBuilder_ == null) { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance() + : controlAssessmentDetails_; + } else { + return controlAssessmentDetailsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + */ + public Builder setControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails value) { + if (controlAssessmentDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + controlAssessmentDetails_ = value; + } else { + controlAssessmentDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + */ + public Builder setControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder + builderForValue) { + if (controlAssessmentDetailsBuilder_ == null) { + controlAssessmentDetails_ = builderForValue.build(); + } else { + controlAssessmentDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + */ + public Builder mergeControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails value) { + if (controlAssessmentDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && controlAssessmentDetails_ != null + && controlAssessmentDetails_ + != com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance()) { + getControlAssessmentDetailsBuilder().mergeFrom(value); + } else { + controlAssessmentDetails_ = value; + } + } else { + controlAssessmentDetailsBuilder_.mergeFrom(value); + } + if (controlAssessmentDetails_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + */ + public Builder clearControlAssessmentDetails() { + bitField0_ = (bitField0_ & ~0x00000008); + controlAssessmentDetails_ = null; + if (controlAssessmentDetailsBuilder_ != null) { + controlAssessmentDetailsBuilder_.dispose(); + controlAssessmentDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder + getControlAssessmentDetailsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getControlAssessmentDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder + getControlAssessmentDetailsOrBuilder() { + if (controlAssessmentDetailsBuilder_ != null) { + return controlAssessmentDetailsBuilder_.getMessageOrBuilder(); + } else { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance() + : controlAssessmentDetails_; + } + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder> + getControlAssessmentDetailsFieldBuilder() { + if (controlAssessmentDetailsBuilder_ == null) { + controlAssessmentDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder>( + getControlAssessmentDetails(), getParentForChildren(), isClean()); + controlAssessmentDetails_ = null; + } + return controlAssessmentDetailsBuilder_; + } + + private int frameworkType_ = 0; + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * + * + * @return The enum numeric value on the wire for frameworkType. + */ + @java.lang.Override + public int getFrameworkTypeValue() { + return frameworkType_; + } + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * + * + * @param value The enum numeric value on the wire for frameworkType to set. + * @return This builder for chaining. + */ + public Builder setFrameworkTypeValue(int value) { + frameworkType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * + * + * @return The frameworkType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getFrameworkType() { + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType result = + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType.forNumber( + frameworkType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * + * + * @param value The frameworkType to set. + * @return This builder for chaining. + */ + public Builder setFrameworkType( + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + frameworkType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearFrameworkType() { + bitField0_ = (bitField0_ & ~0x00000010); + frameworkType_ = 0; + onChanged(); + return this; + } + + private java.util.List supportedCloudProviders_ = + java.util.Collections.emptyList(); + + private void ensureSupportedCloudProvidersIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + supportedCloudProviders_ = + new java.util.ArrayList(supportedCloudProviders_); + bitField0_ |= 0x00000020; + } + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return A list containing the supportedCloudProviders. + */ + public java.util.List + getSupportedCloudProvidersList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider>( + supportedCloudProviders_, supportedCloudProviders_converter_); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return The count of supportedCloudProviders. + */ + public int getSupportedCloudProvidersCount() { + return supportedCloudProviders_.size(); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param index The index of the element to return. + * @return The supportedCloudProviders at the given index. + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedCloudProviders( + int index) { + return supportedCloudProviders_converter_.convert(supportedCloudProviders_.get(index)); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param index The index to set the value at. + * @param value The supportedCloudProviders to set. + * @return This builder for chaining. + */ + public Builder setSupportedCloudProviders( + int index, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param value The supportedCloudProviders to add. + * @return This builder for chaining. + */ + public Builder addSupportedCloudProviders( + com.google.cloud.cloudsecuritycompliance.v1.CloudProvider value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param values The supportedCloudProviders to add. + * @return This builder for chaining. + */ + public Builder addAllSupportedCloudProviders( + java.lang.Iterable + values) { + ensureSupportedCloudProvidersIsMutable(); + for (com.google.cloud.cloudsecuritycompliance.v1.CloudProvider value : values) { + supportedCloudProviders_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearSupportedCloudProviders() { + supportedCloudProviders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return A list containing the enum numeric values on the wire for supportedCloudProviders. + */ + public java.util.List getSupportedCloudProvidersValueList() { + return java.util.Collections.unmodifiableList(supportedCloudProviders_); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCloudProviders at the given index. + */ + public int getSupportedCloudProvidersValue(int index) { + return supportedCloudProviders_.get(index); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for supportedCloudProviders to set. + * @return This builder for chaining. + */ + public Builder setSupportedCloudProvidersValue(int index, int value) { + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param value The enum numeric value on the wire for supportedCloudProviders to add. + * @return This builder for chaining. + */ + public Builder addSupportedCloudProvidersValue(int value) { + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param values The enum numeric values on the wire for supportedCloudProviders to add. + * @return This builder for chaining. + */ + public Builder addAllSupportedCloudProvidersValue( + java.lang.Iterable values) { + ensureSupportedCloudProvidersIsMutable(); + for (int value : values) { + supportedCloudProviders_.add(value); + } + onChanged(); + return this; + } + + private java.util.List frameworkCategories_ = + java.util.Collections.emptyList(); + + private void ensureFrameworkCategoriesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + frameworkCategories_ = new java.util.ArrayList(frameworkCategories_); + bitField0_ |= 0x00000040; + } + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return A list containing the frameworkCategories. + */ + public java.util.List + getFrameworkCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory>( + frameworkCategories_, frameworkCategories_converter_); + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return The count of frameworkCategories. + */ + public int getFrameworkCategoriesCount() { + return frameworkCategories_.size(); + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param index The index of the element to return. + * @return The frameworkCategories at the given index. + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory getFrameworkCategories( + int index) { + return frameworkCategories_converter_.convert(frameworkCategories_.get(index)); + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param index The index to set the value at. + * @param value The frameworkCategories to set. + * @return This builder for chaining. + */ + public Builder setFrameworkCategories( + int index, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param value The frameworkCategories to add. + * @return This builder for chaining. + */ + public Builder addFrameworkCategories( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param values The frameworkCategories to add. + * @return This builder for chaining. + */ + public Builder addAllFrameworkCategories( + java.lang.Iterable + values) { + ensureFrameworkCategoriesIsMutable(); + for (com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory value : values) { + frameworkCategories_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return This builder for chaining. + */ + public Builder clearFrameworkCategories() { + frameworkCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return A list containing the enum numeric values on the wire for frameworkCategories. + */ + public java.util.List getFrameworkCategoriesValueList() { + return java.util.Collections.unmodifiableList(frameworkCategories_); + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of frameworkCategories at the given index. + */ + public int getFrameworkCategoriesValue(int index) { + return frameworkCategories_.get(index); + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for frameworkCategories to set. + * @return This builder for chaining. + */ + public Builder setFrameworkCategoriesValue(int index, int value) { + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param value The enum numeric value on the wire for frameworkCategories to add. + * @return This builder for chaining. + */ + public Builder addFrameworkCategoriesValue(int value) { + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param values The enum numeric values on the wire for frameworkCategories to add. + * @return This builder for chaining. + */ + public Builder addAllFrameworkCategoriesValue(java.lang.Iterable values) { + ensureFrameworkCategoriesIsMutable(); + for (int value : values) { + frameworkCategories_.add(value); + } + onChanged(); + return this; + } + + private java.lang.Object frameworkDisplayName_ = ""; + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The frameworkDisplayName. + */ + public java.lang.String getFrameworkDisplayName() { + java.lang.Object ref = frameworkDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + frameworkDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for frameworkDisplayName. + */ + public com.google.protobuf.ByteString getFrameworkDisplayNameBytes() { + java.lang.Object ref = frameworkDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The frameworkDisplayName to set. + * @return This builder for chaining. + */ + public Builder setFrameworkDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + frameworkDisplayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFrameworkDisplayName() { + frameworkDisplayName_ = getDefaultInstance().getFrameworkDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for frameworkDisplayName to set. + * @return This builder for chaining. + */ + public Builder setFrameworkDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameworkDisplayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                    +     * Identifier. The name of the framework compliance report.
                                    +     * 
                                    + * + * string name = 9 [(.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. The name of the framework compliance report.
                                    +     * 
                                    + * + * string name = 9 [(.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. The name of the framework compliance report.
                                    +     * 
                                    + * + * string name = 9 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the framework compliance report.
                                    +     * 
                                    + * + * string name = 9 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the framework compliance report.
                                    +     * 
                                    + * + * string name = 9 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + private long majorRevisionId_; + + /** + * + * + *
                                    +     * The latest major revision ID of the framework.
                                    +     * 
                                    + * + * int64 major_revision_id = 10; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + + /** + * + * + *
                                    +     * The latest major revision ID of the framework.
                                    +     * 
                                    + * + * int64 major_revision_id = 10; + * + * @param value The majorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMajorRevisionId(long value) { + + majorRevisionId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The latest major revision ID of the framework.
                                    +     * 
                                    + * + * int64 major_revision_id = 10; + * + * @return This builder for chaining. + */ + public Builder clearMajorRevisionId() { + bitField0_ = (bitField0_ & ~0x00000200); + majorRevisionId_ = 0L; + onChanged(); + return this; + } + + private long minorRevisionId_; + + /** + * + * + *
                                    +     * The latest minor revision ID of the latest major revision of the framework.
                                    +     * 
                                    + * + * int64 minor_revision_id = 11; + * + * @return The minorRevisionId. + */ + @java.lang.Override + public long getMinorRevisionId() { + return minorRevisionId_; + } + + /** + * + * + *
                                    +     * The latest minor revision ID of the latest major revision of the framework.
                                    +     * 
                                    + * + * int64 minor_revision_id = 11; + * + * @param value The minorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMinorRevisionId(long value) { + + minorRevisionId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The latest minor revision ID of the latest major revision of the framework.
                                    +     * 
                                    + * + * int64 minor_revision_id = 11; + * + * @return This builder for chaining. + */ + public Builder clearMinorRevisionId() { + bitField0_ = (bitField0_ & ~0x00000400); + minorRevisionId_ = 0L; + onChanged(); + return this; + } + + private java.util.List + targetResourceDetails_ = java.util.Collections.emptyList(); + + private void ensureTargetResourceDetailsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + targetResourceDetails_ = + new java.util.ArrayList< + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails>( + targetResourceDetails_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + targetResourceDetailsBuilder_; + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public java.util.List + getTargetResourceDetailsList() { + if (targetResourceDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(targetResourceDetails_); + } else { + return targetResourceDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public int getTargetResourceDetailsCount() { + if (targetResourceDetailsBuilder_ == null) { + return targetResourceDetails_.size(); + } else { + return targetResourceDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + getTargetResourceDetails(int index) { + if (targetResourceDetailsBuilder_ == null) { + return targetResourceDetails_.get(index); + } else { + return targetResourceDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public Builder setTargetResourceDetails( + int index, com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails value) { + if (targetResourceDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.set(index, value); + onChanged(); + } else { + targetResourceDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public Builder setTargetResourceDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder builderForValue) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + targetResourceDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public Builder addTargetResourceDetails( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails value) { + if (targetResourceDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(value); + onChanged(); + } else { + targetResourceDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public Builder addTargetResourceDetails( + int index, com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails value) { + if (targetResourceDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(index, value); + onChanged(); + } else { + targetResourceDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public Builder addTargetResourceDetails( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder builderForValue) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(builderForValue.build()); + onChanged(); + } else { + targetResourceDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public Builder addTargetResourceDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder builderForValue) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + targetResourceDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public Builder addAllTargetResourceDetails( + java.lang.Iterable< + ? extends com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails> + values) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetResourceDetails_); + onChanged(); + } else { + targetResourceDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public Builder clearTargetResourceDetails() { + if (targetResourceDetailsBuilder_ == null) { + targetResourceDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + targetResourceDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public Builder removeTargetResourceDetails(int index) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.remove(index); + onChanged(); + } else { + targetResourceDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder + getTargetResourceDetailsBuilder(int index) { + return getTargetResourceDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder + getTargetResourceDetailsOrBuilder(int index) { + if (targetResourceDetailsBuilder_ == null) { + return targetResourceDetails_.get(index); + } else { + return targetResourceDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + getTargetResourceDetailsOrBuilderList() { + if (targetResourceDetailsBuilder_ != null) { + return targetResourceDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(targetResourceDetails_); + } + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder + addTargetResourceDetailsBuilder() { + return getTargetResourceDetailsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder + addTargetResourceDetailsBuilder(int index) { + return getTargetResourceDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The target resource details of the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + public java.util.List + getTargetResourceDetailsBuilderList() { + return getTargetResourceDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + getTargetResourceDetailsFieldBuilder() { + if (targetResourceDetailsBuilder_ == null) { + targetResourceDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder>( + targetResourceDetails_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + targetResourceDetails_ = null; + } + return targetResourceDetailsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport) + private static final com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrameworkComplianceReport 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.cloudsecuritycompliance.v1.FrameworkComplianceReport + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportName.java new file mode 100644 index 000000000000..3bb43c3a80d5 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportName.java @@ -0,0 +1,475 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 FrameworkComplianceReportName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}"); + private static final PathTemplate FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}"); + private static final PathTemplate ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String frameworkComplianceReport; + private final String folder; + private final String organization; + + @Deprecated + protected FrameworkComplianceReportName() { + project = null; + location = null; + frameworkComplianceReport = null; + folder = null; + organization = null; + } + + private FrameworkComplianceReportName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkComplianceReport = Preconditions.checkNotNull(builder.getFrameworkComplianceReport()); + folder = null; + organization = null; + pathTemplate = PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT; + } + + private FrameworkComplianceReportName(FolderLocationFrameworkComplianceReportBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkComplianceReport = Preconditions.checkNotNull(builder.getFrameworkComplianceReport()); + project = null; + organization = null; + pathTemplate = FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT; + } + + private FrameworkComplianceReportName( + OrganizationLocationFrameworkComplianceReportBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkComplianceReport = Preconditions.checkNotNull(builder.getFrameworkComplianceReport()); + project = null; + folder = null; + pathTemplate = ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceReport() { + return frameworkComplianceReport; + } + + public String getFolder() { + return folder; + } + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationFrameworkComplianceReportBuilder() { + return new Builder(); + } + + public static FolderLocationFrameworkComplianceReportBuilder + newFolderLocationFrameworkComplianceReportBuilder() { + return new FolderLocationFrameworkComplianceReportBuilder(); + } + + public static OrganizationLocationFrameworkComplianceReportBuilder + newOrganizationLocationFrameworkComplianceReportBuilder() { + return new OrganizationLocationFrameworkComplianceReportBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FrameworkComplianceReportName of( + String project, String location, String frameworkComplianceReport) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .build(); + } + + public static FrameworkComplianceReportName ofProjectLocationFrameworkComplianceReportName( + String project, String location, String frameworkComplianceReport) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .build(); + } + + public static FrameworkComplianceReportName ofFolderLocationFrameworkComplianceReportName( + String folder, String location, String frameworkComplianceReport) { + return newFolderLocationFrameworkComplianceReportBuilder() + .setFolder(folder) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .build(); + } + + public static FrameworkComplianceReportName ofOrganizationLocationFrameworkComplianceReportName( + String organization, String location, String frameworkComplianceReport) { + return newOrganizationLocationFrameworkComplianceReportBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .build(); + } + + public static String format(String project, String location, String frameworkComplianceReport) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .build() + .toString(); + } + + public static String formatProjectLocationFrameworkComplianceReportName( + String project, String location, String frameworkComplianceReport) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .build() + .toString(); + } + + public static String formatFolderLocationFrameworkComplianceReportName( + String folder, String location, String frameworkComplianceReport) { + return newFolderLocationFrameworkComplianceReportBuilder() + .setFolder(folder) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .build() + .toString(); + } + + public static String formatOrganizationLocationFrameworkComplianceReportName( + String organization, String location, String frameworkComplianceReport) { + return newOrganizationLocationFrameworkComplianceReportBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkComplianceReport(frameworkComplianceReport) + .build() + .toString(); + } + + public static FrameworkComplianceReportName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT.match(formattedString); + return ofProjectLocationFrameworkComplianceReportName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("framework_compliance_report")); + } else if (FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT.matches(formattedString)) { + Map matchMap = + FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT.match(formattedString); + return ofFolderLocationFrameworkComplianceReportName( + matchMap.get("folder"), + matchMap.get("location"), + matchMap.get("framework_compliance_report")); + } else if (ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT.match(formattedString); + return ofOrganizationLocationFrameworkComplianceReportName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("framework_compliance_report")); + } + throw new ValidationException( + "FrameworkComplianceReportName.parse: formattedString not in valid format"); + } + + 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 (FrameworkComplianceReportName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT.matches(formattedString) + || FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_REPORT.matches(formattedString) + || ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_REPORT.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 (frameworkComplianceReport != null) { + fieldMapBuilder.put("framework_compliance_report", frameworkComplianceReport); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FrameworkComplianceReportName that = ((FrameworkComplianceReportName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.frameworkComplianceReport, that.frameworkComplianceReport) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.organization, that.organization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(frameworkComplianceReport); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(organization); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}. + */ + public static class Builder { + private String project; + private String location; + private String frameworkComplianceReport; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceReport() { + return frameworkComplianceReport; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFrameworkComplianceReport(String frameworkComplianceReport) { + this.frameworkComplianceReport = frameworkComplianceReport; + return this; + } + + private Builder(FrameworkComplianceReportName frameworkComplianceReportName) { + Preconditions.checkArgument( + Objects.equals( + frameworkComplianceReportName.pathTemplate, + PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_REPORT), + "toBuilder is only supported when FrameworkComplianceReportName has the pattern of" + + " projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}"); + this.project = frameworkComplianceReportName.project; + this.location = frameworkComplianceReportName.location; + this.frameworkComplianceReport = frameworkComplianceReportName.frameworkComplianceReport; + } + + public FrameworkComplianceReportName build() { + return new FrameworkComplianceReportName(this); + } + } + + /** + * Builder for + * folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}. + */ + public static class FolderLocationFrameworkComplianceReportBuilder { + private String folder; + private String location; + private String frameworkComplianceReport; + + protected FolderLocationFrameworkComplianceReportBuilder() {} + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceReport() { + return frameworkComplianceReport; + } + + public FolderLocationFrameworkComplianceReportBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public FolderLocationFrameworkComplianceReportBuilder setLocation(String location) { + this.location = location; + return this; + } + + public FolderLocationFrameworkComplianceReportBuilder setFrameworkComplianceReport( + String frameworkComplianceReport) { + this.frameworkComplianceReport = frameworkComplianceReport; + return this; + } + + public FrameworkComplianceReportName build() { + return new FrameworkComplianceReportName(this); + } + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}. + */ + public static class OrganizationLocationFrameworkComplianceReportBuilder { + private String organization; + private String location; + private String frameworkComplianceReport; + + protected OrganizationLocationFrameworkComplianceReportBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceReport() { + return frameworkComplianceReport; + } + + public OrganizationLocationFrameworkComplianceReportBuilder setOrganization( + String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationFrameworkComplianceReportBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationFrameworkComplianceReportBuilder setFrameworkComplianceReport( + String frameworkComplianceReport) { + this.frameworkComplianceReport = frameworkComplianceReport; + return this; + } + + public FrameworkComplianceReportName build() { + return new FrameworkComplianceReportName(this); + } + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportOrBuilder.java new file mode 100644 index 000000000000..24e162f82bcc --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportOrBuilder.java @@ -0,0 +1,495 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface FrameworkComplianceReportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The framework. + */ + java.lang.String getFramework(); + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The bytes for framework. + */ + com.google.protobuf.ByteString getFrameworkBytes(); + + /** + * + * + *
                                    +   * The description of the framework.
                                    +   * 
                                    + * + * string framework_description = 2; + * + * @return The frameworkDescription. + */ + java.lang.String getFrameworkDescription(); + + /** + * + * + *
                                    +   * The description of the framework.
                                    +   * 
                                    + * + * string framework_description = 2; + * + * @return The bytes for frameworkDescription. + */ + com.google.protobuf.ByteString getFrameworkDescriptionBytes(); + + /** + * + * + *
                                    +   * Output only. The last updated time of the report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                    +   * Output only. The last updated time of the report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                    +   * Output only. The last updated time of the report.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + * + * @return Whether the controlAssessmentDetails field is set. + */ + boolean hasControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + * + * @return The controlAssessmentDetails. + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 4; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder + getControlAssessmentDetailsOrBuilder(); + + /** + * + * + *
                                    +   * The type of framework.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * + * + * @return The enum numeric value on the wire for frameworkType. + */ + int getFrameworkTypeValue(); + + /** + * + * + *
                                    +   * The type of framework.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 5; + * + * + * @return The frameworkType. + */ + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getFrameworkType(); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return A list containing the supportedCloudProviders. + */ + java.util.List + getSupportedCloudProvidersList(); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return The count of supportedCloudProviders. + */ + int getSupportedCloudProvidersCount(); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param index The index of the element to return. + * @return The supportedCloudProviders at the given index. + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedCloudProviders(int index); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @return A list containing the enum numeric values on the wire for supportedCloudProviders. + */ + java.util.List getSupportedCloudProvidersValueList(); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 6; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCloudProviders at the given index. + */ + int getSupportedCloudProvidersValue(int index); + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return A list containing the frameworkCategories. + */ + java.util.List + getFrameworkCategoriesList(); + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return The count of frameworkCategories. + */ + int getFrameworkCategoriesCount(); + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param index The index of the element to return. + * @return The frameworkCategories at the given index. + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory getFrameworkCategories(int index); + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @return A list containing the enum numeric values on the wire for frameworkCategories. + */ + java.util.List getFrameworkCategoriesValueList(); + + /** + * + * + *
                                    +   * The list of framework categories supported.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 7; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of frameworkCategories at the given index. + */ + int getFrameworkCategoriesValue(int index); + + /** + * + * + *
                                    +   * Optional. The display name for the framework.
                                    +   * 
                                    + * + * string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The frameworkDisplayName. + */ + java.lang.String getFrameworkDisplayName(); + + /** + * + * + *
                                    +   * Optional. The display name for the framework.
                                    +   * 
                                    + * + * string framework_display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for frameworkDisplayName. + */ + com.google.protobuf.ByteString getFrameworkDisplayNameBytes(); + + /** + * + * + *
                                    +   * Identifier. The name of the framework compliance report.
                                    +   * 
                                    + * + * string name = 9 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Identifier. The name of the framework compliance report.
                                    +   * 
                                    + * + * string name = 9 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                    +   * The latest major revision ID of the framework.
                                    +   * 
                                    + * + * int64 major_revision_id = 10; + * + * @return The majorRevisionId. + */ + long getMajorRevisionId(); + + /** + * + * + *
                                    +   * The latest minor revision ID of the latest major revision of the framework.
                                    +   * 
                                    + * + * int64 minor_revision_id = 11; + * + * @return The minorRevisionId. + */ + long getMinorRevisionId(); + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + java.util.List + getTargetResourceDetailsList(); + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails getTargetResourceDetails( + int index); + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + int getTargetResourceDetailsCount(); + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + getTargetResourceDetailsOrBuilderList(); + + /** + * + * + *
                                    +   * The target resource details of the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 12; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder + getTargetResourceDetailsOrBuilder(int index); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummary.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummary.java new file mode 100644 index 000000000000..2b66d62013c9 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummary.java @@ -0,0 +1,3216 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The details for a framework compliance summary.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary} + */ +public final class FrameworkComplianceSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary) + FrameworkComplianceSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FrameworkComplianceSummary.newBuilder() to construct. + private FrameworkComplianceSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FrameworkComplianceSummary() { + framework_ = ""; + frameworkType_ = 0; + supportedCloudProviders_ = java.util.Collections.emptyList(); + frameworkCategories_ = java.util.Collections.emptyList(); + frameworkDisplayName_ = ""; + name_ = ""; + targetResourceDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FrameworkComplianceSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.class, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder.class); + } + + private int bitField0_; + public static final int FRAMEWORK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object framework_ = ""; + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The framework. + */ + @java.lang.Override + public java.lang.String getFramework() { + java.lang.Object ref = framework_; + 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(); + framework_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The bytes for framework. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrameworkBytes() { + java.lang.Object ref = framework_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + framework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER = 2; + private com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + controlAssessmentDetails_; + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + * + * @return Whether the controlAssessmentDetails field is set. + */ + @java.lang.Override + public boolean hasControlAssessmentDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + * + * @return The controlAssessmentDetails. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getControlAssessmentDetails() { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.getDefaultInstance() + : controlAssessmentDetails_; + } + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder + getControlAssessmentDetailsOrBuilder() { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.getDefaultInstance() + : controlAssessmentDetails_; + } + + public static final int FRAMEWORK_TYPE_FIELD_NUMBER = 3; + private int frameworkType_ = 0; + + /** + * + * + *
                                    +   * The type of framework.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * + * + * @return The enum numeric value on the wire for frameworkType. + */ + @java.lang.Override + public int getFrameworkTypeValue() { + return frameworkType_; + } + + /** + * + * + *
                                    +   * The type of framework.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * + * + * @return The frameworkType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getFrameworkType() { + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType result = + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType.forNumber( + frameworkType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType.UNRECOGNIZED + : result; + } + + public static final int SUPPORTED_CLOUD_PROVIDERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List supportedCloudProviders_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider> + supportedCloudProviders_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider>() { + public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider convert( + java.lang.Integer from) { + com.google.cloud.cloudsecuritycompliance.v1.CloudProvider result = + com.google.cloud.cloudsecuritycompliance.v1.CloudProvider.forNumber(from); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.CloudProvider.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return A list containing the supportedCloudProviders. + */ + @java.lang.Override + public java.util.List + getSupportedCloudProvidersList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider>( + supportedCloudProviders_, supportedCloudProviders_converter_); + } + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return The count of supportedCloudProviders. + */ + @java.lang.Override + public int getSupportedCloudProvidersCount() { + return supportedCloudProviders_.size(); + } + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param index The index of the element to return. + * @return The supportedCloudProviders at the given index. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedCloudProviders( + int index) { + return supportedCloudProviders_converter_.convert(supportedCloudProviders_.get(index)); + } + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return A list containing the enum numeric values on the wire for supportedCloudProviders. + */ + @java.lang.Override + public java.util.List getSupportedCloudProvidersValueList() { + return supportedCloudProviders_; + } + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCloudProviders at the given index. + */ + @java.lang.Override + public int getSupportedCloudProvidersValue(int index) { + return supportedCloudProviders_.get(index); + } + + private int supportedCloudProvidersMemoizedSerializedSize; + + public static final int FRAMEWORK_CATEGORIES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List frameworkCategories_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory> + frameworkCategories_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory>() { + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory convert( + java.lang.Integer from) { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory result = + com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory.forNumber(from); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return A list containing the frameworkCategories. + */ + @java.lang.Override + public java.util.List + getFrameworkCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory>( + frameworkCategories_, frameworkCategories_converter_); + } + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return The count of frameworkCategories. + */ + @java.lang.Override + public int getFrameworkCategoriesCount() { + return frameworkCategories_.size(); + } + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param index The index of the element to return. + * @return The frameworkCategories at the given index. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory getFrameworkCategories( + int index) { + return frameworkCategories_converter_.convert(frameworkCategories_.get(index)); + } + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return A list containing the enum numeric values on the wire for frameworkCategories. + */ + @java.lang.Override + public java.util.List getFrameworkCategoriesValueList() { + return frameworkCategories_; + } + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of frameworkCategories at the given index. + */ + @java.lang.Override + public int getFrameworkCategoriesValue(int index) { + return frameworkCategories_.get(index); + } + + private int frameworkCategoriesMemoizedSerializedSize; + + public static final int FRAMEWORK_DISPLAY_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object frameworkDisplayName_ = ""; + + /** + * + * + *
                                    +   * Optional. The display name for the framework.
                                    +   * 
                                    + * + * string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The frameworkDisplayName. + */ + @java.lang.Override + public java.lang.String getFrameworkDisplayName() { + java.lang.Object ref = frameworkDisplayName_; + 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(); + frameworkDisplayName_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Optional. The display name for the framework.
                                    +   * 
                                    + * + * string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for frameworkDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrameworkDisplayNameBytes() { + java.lang.Object ref = frameworkDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Identifier. The name of the framework compliance summary.
                                    +   * 
                                    + * + * string name = 7 [(.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. The name of the framework compliance summary.
                                    +   * 
                                    + * + * string name = 7 [(.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 MAJOR_REVISION_ID_FIELD_NUMBER = 8; + private long majorRevisionId_ = 0L; + + /** + * + * + *
                                    +   * The major revision ID of the framework.
                                    +   * 
                                    + * + * int64 major_revision_id = 8; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + + public static final int MINOR_REVISION_ID_FIELD_NUMBER = 9; + private long minorRevisionId_ = 0L; + + /** + * + * + *
                                    +   * The minor revision ID of the framework.
                                    +   * 
                                    + * + * int64 minor_revision_id = 9; + * + * @return The minorRevisionId. + */ + @java.lang.Override + public long getMinorRevisionId() { + return minorRevisionId_; + } + + public static final int TARGET_RESOURCE_DETAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + targetResourceDetails_; + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + @java.lang.Override + public java.util.List + getTargetResourceDetailsList() { + return targetResourceDetails_; + } + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + getTargetResourceDetailsOrBuilderList() { + return targetResourceDetails_; + } + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + @java.lang.Override + public int getTargetResourceDetailsCount() { + return targetResourceDetails_.size(); + } + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails getTargetResourceDetails( + int index) { + return targetResourceDetails_.get(index); + } + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder + getTargetResourceDetailsOrBuilder(int index) { + return targetResourceDetails_.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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(framework_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, framework_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getControlAssessmentDetails()); + } + if (frameworkType_ + != com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType + .FRAMEWORK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, frameworkType_); + } + if (getSupportedCloudProvidersList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(supportedCloudProvidersMemoizedSerializedSize); + } + for (int i = 0; i < supportedCloudProviders_.size(); i++) { + output.writeEnumNoTag(supportedCloudProviders_.get(i)); + } + if (getFrameworkCategoriesList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(frameworkCategoriesMemoizedSerializedSize); + } + for (int i = 0; i < frameworkCategories_.size(); i++) { + output.writeEnumNoTag(frameworkCategories_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, frameworkDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + if (majorRevisionId_ != 0L) { + output.writeInt64(8, majorRevisionId_); + } + if (minorRevisionId_ != 0L) { + output.writeInt64(9, minorRevisionId_); + } + for (int i = 0; i < targetResourceDetails_.size(); i++) { + output.writeMessage(10, targetResourceDetails_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(framework_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, framework_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getControlAssessmentDetails()); + } + if (frameworkType_ + != com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType + .FRAMEWORK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, frameworkType_); + } + { + int dataSize = 0; + for (int i = 0; i < supportedCloudProviders_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + supportedCloudProviders_.get(i)); + } + size += dataSize; + if (!getSupportedCloudProvidersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + supportedCloudProvidersMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < frameworkCategories_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(frameworkCategories_.get(i)); + } + size += dataSize; + if (!getFrameworkCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + frameworkCategoriesMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, frameworkDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + if (majorRevisionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, majorRevisionId_); + } + if (minorRevisionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, minorRevisionId_); + } + for (int i = 0; i < targetResourceDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, targetResourceDetails_.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.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary other = + (com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary) obj; + + if (!getFramework().equals(other.getFramework())) return false; + if (hasControlAssessmentDetails() != other.hasControlAssessmentDetails()) return false; + if (hasControlAssessmentDetails()) { + if (!getControlAssessmentDetails().equals(other.getControlAssessmentDetails())) return false; + } + if (frameworkType_ != other.frameworkType_) return false; + if (!supportedCloudProviders_.equals(other.supportedCloudProviders_)) return false; + if (!frameworkCategories_.equals(other.frameworkCategories_)) return false; + if (!getFrameworkDisplayName().equals(other.getFrameworkDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (getMajorRevisionId() != other.getMajorRevisionId()) return false; + if (getMinorRevisionId() != other.getMinorRevisionId()) return false; + if (!getTargetResourceDetailsList().equals(other.getTargetResourceDetailsList())) 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) + FRAMEWORK_FIELD_NUMBER; + hash = (53 * hash) + getFramework().hashCode(); + if (hasControlAssessmentDetails()) { + hash = (37 * hash) + CONTROL_ASSESSMENT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getControlAssessmentDetails().hashCode(); + } + hash = (37 * hash) + FRAMEWORK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + frameworkType_; + if (getSupportedCloudProvidersCount() > 0) { + hash = (37 * hash) + SUPPORTED_CLOUD_PROVIDERS_FIELD_NUMBER; + hash = (53 * hash) + supportedCloudProviders_.hashCode(); + } + if (getFrameworkCategoriesCount() > 0) { + hash = (37 * hash) + FRAMEWORK_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + frameworkCategories_.hashCode(); + } + hash = (37 * hash) + FRAMEWORK_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkDisplayName().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MAJOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMajorRevisionId()); + hash = (37 * hash) + MINOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinorRevisionId()); + if (getTargetResourceDetailsCount() > 0) { + hash = (37 * hash) + TARGET_RESOURCE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getTargetResourceDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary 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.cloudsecuritycompliance.v1.FrameworkComplianceSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary 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.cloudsecuritycompliance.v1.FrameworkComplianceSummary parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The details for a framework compliance summary.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary) + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.class, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getControlAssessmentDetailsFieldBuilder(); + getTargetResourceDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + framework_ = ""; + controlAssessmentDetails_ = null; + if (controlAssessmentDetailsBuilder_ != null) { + controlAssessmentDetailsBuilder_.dispose(); + controlAssessmentDetailsBuilder_ = null; + } + frameworkType_ = 0; + supportedCloudProviders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + frameworkCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + frameworkDisplayName_ = ""; + name_ = ""; + majorRevisionId_ = 0L; + minorRevisionId_ = 0L; + if (targetResourceDetailsBuilder_ == null) { + targetResourceDetails_ = java.util.Collections.emptyList(); + } else { + targetResourceDetails_ = null; + targetResourceDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary build() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary result = + new com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary result) { + if (((bitField0_ & 0x00000008) != 0)) { + supportedCloudProviders_ = java.util.Collections.unmodifiableList(supportedCloudProviders_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.supportedCloudProviders_ = supportedCloudProviders_; + if (((bitField0_ & 0x00000010) != 0)) { + frameworkCategories_ = java.util.Collections.unmodifiableList(frameworkCategories_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.frameworkCategories_ = frameworkCategories_; + if (targetResourceDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + targetResourceDetails_ = java.util.Collections.unmodifiableList(targetResourceDetails_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.targetResourceDetails_ = targetResourceDetails_; + } else { + result.targetResourceDetails_ = targetResourceDetailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.framework_ = framework_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.controlAssessmentDetails_ = + controlAssessmentDetailsBuilder_ == null + ? controlAssessmentDetails_ + : controlAssessmentDetailsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.frameworkType_ = frameworkType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.frameworkDisplayName_ = frameworkDisplayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.majorRevisionId_ = majorRevisionId_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.minorRevisionId_ = minorRevisionId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + .getDefaultInstance()) return this; + if (!other.getFramework().isEmpty()) { + framework_ = other.framework_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasControlAssessmentDetails()) { + mergeControlAssessmentDetails(other.getControlAssessmentDetails()); + } + if (other.frameworkType_ != 0) { + setFrameworkTypeValue(other.getFrameworkTypeValue()); + } + if (!other.supportedCloudProviders_.isEmpty()) { + if (supportedCloudProviders_.isEmpty()) { + supportedCloudProviders_ = other.supportedCloudProviders_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.addAll(other.supportedCloudProviders_); + } + onChanged(); + } + if (!other.frameworkCategories_.isEmpty()) { + if (frameworkCategories_.isEmpty()) { + frameworkCategories_ = other.frameworkCategories_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.addAll(other.frameworkCategories_); + } + onChanged(); + } + if (!other.getFrameworkDisplayName().isEmpty()) { + frameworkDisplayName_ = other.frameworkDisplayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getMajorRevisionId() != 0L) { + setMajorRevisionId(other.getMajorRevisionId()); + } + if (other.getMinorRevisionId() != 0L) { + setMinorRevisionId(other.getMinorRevisionId()); + } + if (targetResourceDetailsBuilder_ == null) { + if (!other.targetResourceDetails_.isEmpty()) { + if (targetResourceDetails_.isEmpty()) { + targetResourceDetails_ = other.targetResourceDetails_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.addAll(other.targetResourceDetails_); + } + onChanged(); + } + } else { + if (!other.targetResourceDetails_.isEmpty()) { + if (targetResourceDetailsBuilder_.isEmpty()) { + targetResourceDetailsBuilder_.dispose(); + targetResourceDetailsBuilder_ = null; + targetResourceDetails_ = other.targetResourceDetails_; + bitField0_ = (bitField0_ & ~0x00000200); + targetResourceDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTargetResourceDetailsFieldBuilder() + : null; + } else { + targetResourceDetailsBuilder_.addAllMessages(other.targetResourceDetails_); + } + } + } + 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: + { + framework_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getControlAssessmentDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + frameworkType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + int tmpRaw = input.readEnum(); + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.add(tmpRaw); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 34 + case 40: + { + int tmpRaw = input.readEnum(); + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.add(tmpRaw); + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 42 + case 50: + { + frameworkDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + majorRevisionId_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + minorRevisionId_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.parser(), + extensionRegistry); + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(m); + } else { + targetResourceDetailsBuilder_.addMessage(m); + } + break; + } // case 82 + 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 framework_ = ""; + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @return The framework. + */ + public java.lang.String getFramework() { + java.lang.Object ref = framework_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + framework_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @return The bytes for framework. + */ + public com.google.protobuf.ByteString getFrameworkBytes() { + java.lang.Object ref = framework_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + framework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @param value The framework to set. + * @return This builder for chaining. + */ + public Builder setFramework(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + framework_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @return This builder for chaining. + */ + public Builder clearFramework() { + framework_ = getDefaultInstance().getFramework(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @param value The bytes for framework to set. + * @return This builder for chaining. + */ + public Builder setFrameworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + framework_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + controlAssessmentDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder> + controlAssessmentDetailsBuilder_; + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + * + * @return Whether the controlAssessmentDetails field is set. + */ + public boolean hasControlAssessmentDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + * + * @return The controlAssessmentDetails. + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getControlAssessmentDetails() { + if (controlAssessmentDetailsBuilder_ == null) { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance() + : controlAssessmentDetails_; + } else { + return controlAssessmentDetailsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + */ + public Builder setControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails value) { + if (controlAssessmentDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + controlAssessmentDetails_ = value; + } else { + controlAssessmentDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + */ + public Builder setControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder + builderForValue) { + if (controlAssessmentDetailsBuilder_ == null) { + controlAssessmentDetails_ = builderForValue.build(); + } else { + controlAssessmentDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + */ + public Builder mergeControlAssessmentDetails( + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails value) { + if (controlAssessmentDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && controlAssessmentDetails_ != null + && controlAssessmentDetails_ + != com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance()) { + getControlAssessmentDetailsBuilder().mergeFrom(value); + } else { + controlAssessmentDetails_ = value; + } + } else { + controlAssessmentDetailsBuilder_.mergeFrom(value); + } + if (controlAssessmentDetails_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + */ + public Builder clearControlAssessmentDetails() { + bitField0_ = (bitField0_ & ~0x00000002); + controlAssessmentDetails_ = null; + if (controlAssessmentDetailsBuilder_ != null) { + controlAssessmentDetailsBuilder_.dispose(); + controlAssessmentDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder + getControlAssessmentDetailsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getControlAssessmentDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder + getControlAssessmentDetailsOrBuilder() { + if (controlAssessmentDetailsBuilder_ != null) { + return controlAssessmentDetailsBuilder_.getMessageOrBuilder(); + } else { + return controlAssessmentDetails_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + .getDefaultInstance() + : controlAssessmentDetails_; + } + } + + /** + * + * + *
                                    +     * The control assessment details of the framework.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder> + getControlAssessmentDetailsFieldBuilder() { + if (controlAssessmentDetailsBuilder_ == null) { + controlAssessmentDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder>( + getControlAssessmentDetails(), getParentForChildren(), isClean()); + controlAssessmentDetails_ = null; + } + return controlAssessmentDetailsBuilder_; + } + + private int frameworkType_ = 0; + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * + * + * @return The enum numeric value on the wire for frameworkType. + */ + @java.lang.Override + public int getFrameworkTypeValue() { + return frameworkType_; + } + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * + * + * @param value The enum numeric value on the wire for frameworkType to set. + * @return This builder for chaining. + */ + public Builder setFrameworkTypeValue(int value) { + frameworkType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * + * + * @return The frameworkType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getFrameworkType() { + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType result = + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType.forNumber( + frameworkType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * + * + * @param value The frameworkType to set. + * @return This builder for chaining. + */ + public Builder setFrameworkType( + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + frameworkType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The type of framework.
                                    +     * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearFrameworkType() { + bitField0_ = (bitField0_ & ~0x00000004); + frameworkType_ = 0; + onChanged(); + return this; + } + + private java.util.List supportedCloudProviders_ = + java.util.Collections.emptyList(); + + private void ensureSupportedCloudProvidersIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + supportedCloudProviders_ = + new java.util.ArrayList(supportedCloudProviders_); + bitField0_ |= 0x00000008; + } + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return A list containing the supportedCloudProviders. + */ + public java.util.List + getSupportedCloudProvidersList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider>( + supportedCloudProviders_, supportedCloudProviders_converter_); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return The count of supportedCloudProviders. + */ + public int getSupportedCloudProvidersCount() { + return supportedCloudProviders_.size(); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param index The index of the element to return. + * @return The supportedCloudProviders at the given index. + */ + public com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedCloudProviders( + int index) { + return supportedCloudProviders_converter_.convert(supportedCloudProviders_.get(index)); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param index The index to set the value at. + * @param value The supportedCloudProviders to set. + * @return This builder for chaining. + */ + public Builder setSupportedCloudProviders( + int index, com.google.cloud.cloudsecuritycompliance.v1.CloudProvider value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param value The supportedCloudProviders to add. + * @return This builder for chaining. + */ + public Builder addSupportedCloudProviders( + com.google.cloud.cloudsecuritycompliance.v1.CloudProvider value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param values The supportedCloudProviders to add. + * @return This builder for chaining. + */ + public Builder addAllSupportedCloudProviders( + java.lang.Iterable + values) { + ensureSupportedCloudProvidersIsMutable(); + for (com.google.cloud.cloudsecuritycompliance.v1.CloudProvider value : values) { + supportedCloudProviders_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearSupportedCloudProviders() { + supportedCloudProviders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return A list containing the enum numeric values on the wire for supportedCloudProviders. + */ + public java.util.List getSupportedCloudProvidersValueList() { + return java.util.Collections.unmodifiableList(supportedCloudProviders_); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCloudProviders at the given index. + */ + public int getSupportedCloudProvidersValue(int index) { + return supportedCloudProviders_.get(index); + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for supportedCloudProviders to set. + * @return This builder for chaining. + */ + public Builder setSupportedCloudProvidersValue(int index, int value) { + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param value The enum numeric value on the wire for supportedCloudProviders to add. + * @return This builder for chaining. + */ + public Builder addSupportedCloudProvidersValue(int value) { + ensureSupportedCloudProvidersIsMutable(); + supportedCloudProviders_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of cloud providers supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param values The enum numeric values on the wire for supportedCloudProviders to add. + * @return This builder for chaining. + */ + public Builder addAllSupportedCloudProvidersValue( + java.lang.Iterable values) { + ensureSupportedCloudProvidersIsMutable(); + for (int value : values) { + supportedCloudProviders_.add(value); + } + onChanged(); + return this; + } + + private java.util.List frameworkCategories_ = + java.util.Collections.emptyList(); + + private void ensureFrameworkCategoriesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + frameworkCategories_ = new java.util.ArrayList(frameworkCategories_); + bitField0_ |= 0x00000010; + } + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return A list containing the frameworkCategories. + */ + public java.util.List + getFrameworkCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory>( + frameworkCategories_, frameworkCategories_converter_); + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return The count of frameworkCategories. + */ + public int getFrameworkCategoriesCount() { + return frameworkCategories_.size(); + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param index The index of the element to return. + * @return The frameworkCategories at the given index. + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory getFrameworkCategories( + int index) { + return frameworkCategories_converter_.convert(frameworkCategories_.get(index)); + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param index The index to set the value at. + * @param value The frameworkCategories to set. + * @return This builder for chaining. + */ + public Builder setFrameworkCategories( + int index, com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param value The frameworkCategories to add. + * @return This builder for chaining. + */ + public Builder addFrameworkCategories( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param values The frameworkCategories to add. + * @return This builder for chaining. + */ + public Builder addAllFrameworkCategories( + java.lang.Iterable + values) { + ensureFrameworkCategoriesIsMutable(); + for (com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory value : values) { + frameworkCategories_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearFrameworkCategories() { + frameworkCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return A list containing the enum numeric values on the wire for frameworkCategories. + */ + public java.util.List getFrameworkCategoriesValueList() { + return java.util.Collections.unmodifiableList(frameworkCategories_); + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of frameworkCategories at the given index. + */ + public int getFrameworkCategoriesValue(int index) { + return frameworkCategories_.get(index); + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for frameworkCategories to set. + * @return This builder for chaining. + */ + public Builder setFrameworkCategoriesValue(int index, int value) { + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param value The enum numeric value on the wire for frameworkCategories to add. + * @return This builder for chaining. + */ + public Builder addFrameworkCategoriesValue(int value) { + ensureFrameworkCategoriesIsMutable(); + frameworkCategories_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The list of framework categories supported by the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param values The enum numeric values on the wire for frameworkCategories to add. + * @return This builder for chaining. + */ + public Builder addAllFrameworkCategoriesValue(java.lang.Iterable values) { + ensureFrameworkCategoriesIsMutable(); + for (int value : values) { + frameworkCategories_.add(value); + } + onChanged(); + return this; + } + + private java.lang.Object frameworkDisplayName_ = ""; + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The frameworkDisplayName. + */ + public java.lang.String getFrameworkDisplayName() { + java.lang.Object ref = frameworkDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + frameworkDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for frameworkDisplayName. + */ + public com.google.protobuf.ByteString getFrameworkDisplayNameBytes() { + java.lang.Object ref = frameworkDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The frameworkDisplayName to set. + * @return This builder for chaining. + */ + public Builder setFrameworkDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + frameworkDisplayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFrameworkDisplayName() { + frameworkDisplayName_ = getDefaultInstance().getFrameworkDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The display name for the framework.
                                    +     * 
                                    + * + * string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for frameworkDisplayName to set. + * @return This builder for chaining. + */ + public Builder setFrameworkDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameworkDisplayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                    +     * Identifier. The name of the framework compliance summary.
                                    +     * 
                                    + * + * string name = 7 [(.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. The name of the framework compliance summary.
                                    +     * 
                                    + * + * string name = 7 [(.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. The name of the framework compliance summary.
                                    +     * 
                                    + * + * string name = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the framework compliance summary.
                                    +     * 
                                    + * + * string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the framework compliance summary.
                                    +     * 
                                    + * + * string name = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + private long majorRevisionId_; + + /** + * + * + *
                                    +     * The major revision ID of the framework.
                                    +     * 
                                    + * + * int64 major_revision_id = 8; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + + /** + * + * + *
                                    +     * The major revision ID of the framework.
                                    +     * 
                                    + * + * int64 major_revision_id = 8; + * + * @param value The majorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMajorRevisionId(long value) { + + majorRevisionId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The major revision ID of the framework.
                                    +     * 
                                    + * + * int64 major_revision_id = 8; + * + * @return This builder for chaining. + */ + public Builder clearMajorRevisionId() { + bitField0_ = (bitField0_ & ~0x00000080); + majorRevisionId_ = 0L; + onChanged(); + return this; + } + + private long minorRevisionId_; + + /** + * + * + *
                                    +     * The minor revision ID of the framework.
                                    +     * 
                                    + * + * int64 minor_revision_id = 9; + * + * @return The minorRevisionId. + */ + @java.lang.Override + public long getMinorRevisionId() { + return minorRevisionId_; + } + + /** + * + * + *
                                    +     * The minor revision ID of the framework.
                                    +     * 
                                    + * + * int64 minor_revision_id = 9; + * + * @param value The minorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMinorRevisionId(long value) { + + minorRevisionId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The minor revision ID of the framework.
                                    +     * 
                                    + * + * int64 minor_revision_id = 9; + * + * @return This builder for chaining. + */ + public Builder clearMinorRevisionId() { + bitField0_ = (bitField0_ & ~0x00000100); + minorRevisionId_ = 0L; + onChanged(); + return this; + } + + private java.util.List + targetResourceDetails_ = java.util.Collections.emptyList(); + + private void ensureTargetResourceDetailsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + targetResourceDetails_ = + new java.util.ArrayList< + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails>( + targetResourceDetails_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + targetResourceDetailsBuilder_; + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public java.util.List + getTargetResourceDetailsList() { + if (targetResourceDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(targetResourceDetails_); + } else { + return targetResourceDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public int getTargetResourceDetailsCount() { + if (targetResourceDetailsBuilder_ == null) { + return targetResourceDetails_.size(); + } else { + return targetResourceDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + getTargetResourceDetails(int index) { + if (targetResourceDetailsBuilder_ == null) { + return targetResourceDetails_.get(index); + } else { + return targetResourceDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public Builder setTargetResourceDetails( + int index, com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails value) { + if (targetResourceDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.set(index, value); + onChanged(); + } else { + targetResourceDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public Builder setTargetResourceDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder builderForValue) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + targetResourceDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public Builder addTargetResourceDetails( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails value) { + if (targetResourceDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(value); + onChanged(); + } else { + targetResourceDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public Builder addTargetResourceDetails( + int index, com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails value) { + if (targetResourceDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(index, value); + onChanged(); + } else { + targetResourceDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public Builder addTargetResourceDetails( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder builderForValue) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(builderForValue.build()); + onChanged(); + } else { + targetResourceDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public Builder addTargetResourceDetails( + int index, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder builderForValue) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + targetResourceDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public Builder addAllTargetResourceDetails( + java.lang.Iterable< + ? extends com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails> + values) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetResourceDetails_); + onChanged(); + } else { + targetResourceDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public Builder clearTargetResourceDetails() { + if (targetResourceDetailsBuilder_ == null) { + targetResourceDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + targetResourceDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public Builder removeTargetResourceDetails(int index) { + if (targetResourceDetailsBuilder_ == null) { + ensureTargetResourceDetailsIsMutable(); + targetResourceDetails_.remove(index); + onChanged(); + } else { + targetResourceDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder + getTargetResourceDetailsBuilder(int index) { + return getTargetResourceDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder + getTargetResourceDetailsOrBuilder(int index) { + if (targetResourceDetailsBuilder_ == null) { + return targetResourceDetails_.get(index); + } else { + return targetResourceDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + getTargetResourceDetailsOrBuilderList() { + if (targetResourceDetailsBuilder_ != null) { + return targetResourceDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(targetResourceDetails_); + } + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder + addTargetResourceDetailsBuilder() { + return getTargetResourceDetailsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder + addTargetResourceDetailsBuilder(int index) { + return getTargetResourceDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The target resource details for the framework.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + public java.util.List + getTargetResourceDetailsBuilderList() { + return getTargetResourceDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + getTargetResourceDetailsFieldBuilder() { + if (targetResourceDetailsBuilder_ == null) { + targetResourceDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder>( + targetResourceDetails_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + targetResourceDetails_ = null; + } + return targetResourceDetailsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary) + private static final com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrameworkComplianceSummary 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.cloudsecuritycompliance.v1.FrameworkComplianceSummary + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryName.java new file mode 100644 index 000000000000..b96c5973d4b0 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryName.java @@ -0,0 +1,478 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 FrameworkComplianceSummaryName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}"); + private static final PathTemplate FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}"); + private static final PathTemplate ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String frameworkComplianceSummary; + private final String folder; + private final String organization; + + @Deprecated + protected FrameworkComplianceSummaryName() { + project = null; + location = null; + frameworkComplianceSummary = null; + folder = null; + organization = null; + } + + private FrameworkComplianceSummaryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkComplianceSummary = + Preconditions.checkNotNull(builder.getFrameworkComplianceSummary()); + folder = null; + organization = null; + pathTemplate = PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY; + } + + private FrameworkComplianceSummaryName(FolderLocationFrameworkComplianceSummaryBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkComplianceSummary = + Preconditions.checkNotNull(builder.getFrameworkComplianceSummary()); + project = null; + organization = null; + pathTemplate = FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY; + } + + private FrameworkComplianceSummaryName( + OrganizationLocationFrameworkComplianceSummaryBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkComplianceSummary = + Preconditions.checkNotNull(builder.getFrameworkComplianceSummary()); + project = null; + folder = null; + pathTemplate = ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceSummary() { + return frameworkComplianceSummary; + } + + public String getFolder() { + return folder; + } + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationFrameworkComplianceSummaryBuilder() { + return new Builder(); + } + + public static FolderLocationFrameworkComplianceSummaryBuilder + newFolderLocationFrameworkComplianceSummaryBuilder() { + return new FolderLocationFrameworkComplianceSummaryBuilder(); + } + + public static OrganizationLocationFrameworkComplianceSummaryBuilder + newOrganizationLocationFrameworkComplianceSummaryBuilder() { + return new OrganizationLocationFrameworkComplianceSummaryBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FrameworkComplianceSummaryName of( + String project, String location, String frameworkComplianceSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceSummary(frameworkComplianceSummary) + .build(); + } + + public static FrameworkComplianceSummaryName ofProjectLocationFrameworkComplianceSummaryName( + String project, String location, String frameworkComplianceSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceSummary(frameworkComplianceSummary) + .build(); + } + + public static FrameworkComplianceSummaryName ofFolderLocationFrameworkComplianceSummaryName( + String folder, String location, String frameworkComplianceSummary) { + return newFolderLocationFrameworkComplianceSummaryBuilder() + .setFolder(folder) + .setLocation(location) + .setFrameworkComplianceSummary(frameworkComplianceSummary) + .build(); + } + + public static FrameworkComplianceSummaryName ofOrganizationLocationFrameworkComplianceSummaryName( + String organization, String location, String frameworkComplianceSummary) { + return newOrganizationLocationFrameworkComplianceSummaryBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkComplianceSummary(frameworkComplianceSummary) + .build(); + } + + public static String format(String project, String location, String frameworkComplianceSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceSummary(frameworkComplianceSummary) + .build() + .toString(); + } + + public static String formatProjectLocationFrameworkComplianceSummaryName( + String project, String location, String frameworkComplianceSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkComplianceSummary(frameworkComplianceSummary) + .build() + .toString(); + } + + public static String formatFolderLocationFrameworkComplianceSummaryName( + String folder, String location, String frameworkComplianceSummary) { + return newFolderLocationFrameworkComplianceSummaryBuilder() + .setFolder(folder) + .setLocation(location) + .setFrameworkComplianceSummary(frameworkComplianceSummary) + .build() + .toString(); + } + + public static String formatOrganizationLocationFrameworkComplianceSummaryName( + String organization, String location, String frameworkComplianceSummary) { + return newOrganizationLocationFrameworkComplianceSummaryBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkComplianceSummary(frameworkComplianceSummary) + .build() + .toString(); + } + + public static FrameworkComplianceSummaryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY.match(formattedString); + return ofProjectLocationFrameworkComplianceSummaryName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("framework_compliance_summary")); + } else if (FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY.matches(formattedString)) { + Map matchMap = + FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY.match(formattedString); + return ofFolderLocationFrameworkComplianceSummaryName( + matchMap.get("folder"), + matchMap.get("location"), + matchMap.get("framework_compliance_summary")); + } else if (ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY.match(formattedString); + return ofOrganizationLocationFrameworkComplianceSummaryName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("framework_compliance_summary")); + } + throw new ValidationException( + "FrameworkComplianceSummaryName.parse: formattedString not in valid format"); + } + + 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 (FrameworkComplianceSummaryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY.matches(formattedString) + || FOLDER_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY.matches(formattedString) + || ORGANIZATION_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY.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 (frameworkComplianceSummary != null) { + fieldMapBuilder.put("framework_compliance_summary", frameworkComplianceSummary); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FrameworkComplianceSummaryName that = ((FrameworkComplianceSummaryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.frameworkComplianceSummary, that.frameworkComplianceSummary) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.organization, that.organization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(frameworkComplianceSummary); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(organization); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}. + */ + public static class Builder { + private String project; + private String location; + private String frameworkComplianceSummary; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceSummary() { + return frameworkComplianceSummary; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFrameworkComplianceSummary(String frameworkComplianceSummary) { + this.frameworkComplianceSummary = frameworkComplianceSummary; + return this; + } + + private Builder(FrameworkComplianceSummaryName frameworkComplianceSummaryName) { + Preconditions.checkArgument( + Objects.equals( + frameworkComplianceSummaryName.pathTemplate, + PROJECT_LOCATION_FRAMEWORK_COMPLIANCE_SUMMARY), + "toBuilder is only supported when FrameworkComplianceSummaryName has the pattern of" + + " projects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}"); + this.project = frameworkComplianceSummaryName.project; + this.location = frameworkComplianceSummaryName.location; + this.frameworkComplianceSummary = frameworkComplianceSummaryName.frameworkComplianceSummary; + } + + public FrameworkComplianceSummaryName build() { + return new FrameworkComplianceSummaryName(this); + } + } + + /** + * Builder for + * folders/{folder}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}. + */ + public static class FolderLocationFrameworkComplianceSummaryBuilder { + private String folder; + private String location; + private String frameworkComplianceSummary; + + protected FolderLocationFrameworkComplianceSummaryBuilder() {} + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceSummary() { + return frameworkComplianceSummary; + } + + public FolderLocationFrameworkComplianceSummaryBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public FolderLocationFrameworkComplianceSummaryBuilder setLocation(String location) { + this.location = location; + return this; + } + + public FolderLocationFrameworkComplianceSummaryBuilder setFrameworkComplianceSummary( + String frameworkComplianceSummary) { + this.frameworkComplianceSummary = frameworkComplianceSummary; + return this; + } + + public FrameworkComplianceSummaryName build() { + return new FrameworkComplianceSummaryName(this); + } + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}. + */ + public static class OrganizationLocationFrameworkComplianceSummaryBuilder { + private String organization; + private String location; + private String frameworkComplianceSummary; + + protected OrganizationLocationFrameworkComplianceSummaryBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFrameworkComplianceSummary() { + return frameworkComplianceSummary; + } + + public OrganizationLocationFrameworkComplianceSummaryBuilder setOrganization( + String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationFrameworkComplianceSummaryBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationFrameworkComplianceSummaryBuilder setFrameworkComplianceSummary( + String frameworkComplianceSummary) { + this.frameworkComplianceSummary = frameworkComplianceSummary; + return this; + } + + public FrameworkComplianceSummaryName build() { + return new FrameworkComplianceSummaryName(this); + } + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryOrBuilder.java new file mode 100644 index 000000000000..5e3bed921e8e --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryOrBuilder.java @@ -0,0 +1,429 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface FrameworkComplianceSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The framework. + */ + java.lang.String getFramework(); + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The bytes for framework. + */ + com.google.protobuf.ByteString getFrameworkBytes(); + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + * + * @return Whether the controlAssessmentDetails field is set. + */ + boolean hasControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + * + * @return The controlAssessmentDetails. + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails + getControlAssessmentDetails(); + + /** + * + * + *
                                    +   * The control assessment details of the framework.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails control_assessment_details = 2; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetailsOrBuilder + getControlAssessmentDetailsOrBuilder(); + + /** + * + * + *
                                    +   * The type of framework.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * + * + * @return The enum numeric value on the wire for frameworkType. + */ + int getFrameworkTypeValue(); + + /** + * + * + *
                                    +   * The type of framework.
                                    +   * 
                                    + * + * .google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType framework_type = 3; + * + * + * @return The frameworkType. + */ + com.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType getFrameworkType(); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return A list containing the supportedCloudProviders. + */ + java.util.List + getSupportedCloudProvidersList(); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return The count of supportedCloudProviders. + */ + int getSupportedCloudProvidersCount(); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param index The index of the element to return. + * @return The supportedCloudProviders at the given index. + */ + com.google.cloud.cloudsecuritycompliance.v1.CloudProvider getSupportedCloudProviders(int index); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @return A list containing the enum numeric values on the wire for supportedCloudProviders. + */ + java.util.List getSupportedCloudProvidersValueList(); + + /** + * + * + *
                                    +   * The list of cloud providers supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.CloudProvider supported_cloud_providers = 4; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCloudProviders at the given index. + */ + int getSupportedCloudProvidersValue(int index); + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return A list containing the frameworkCategories. + */ + java.util.List + getFrameworkCategoriesList(); + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return The count of frameworkCategories. + */ + int getFrameworkCategoriesCount(); + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param index The index of the element to return. + * @return The frameworkCategories at the given index. + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory getFrameworkCategories(int index); + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @return A list containing the enum numeric values on the wire for frameworkCategories. + */ + java.util.List getFrameworkCategoriesValueList(); + + /** + * + * + *
                                    +   * The list of framework categories supported by the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkCategory framework_categories = 5; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of frameworkCategories at the given index. + */ + int getFrameworkCategoriesValue(int index); + + /** + * + * + *
                                    +   * Optional. The display name for the framework.
                                    +   * 
                                    + * + * string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The frameworkDisplayName. + */ + java.lang.String getFrameworkDisplayName(); + + /** + * + * + *
                                    +   * Optional. The display name for the framework.
                                    +   * 
                                    + * + * string framework_display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for frameworkDisplayName. + */ + com.google.protobuf.ByteString getFrameworkDisplayNameBytes(); + + /** + * + * + *
                                    +   * Identifier. The name of the framework compliance summary.
                                    +   * 
                                    + * + * string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Identifier. The name of the framework compliance summary.
                                    +   * 
                                    + * + * string name = 7 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                    +   * The major revision ID of the framework.
                                    +   * 
                                    + * + * int64 major_revision_id = 8; + * + * @return The majorRevisionId. + */ + long getMajorRevisionId(); + + /** + * + * + *
                                    +   * The minor revision ID of the framework.
                                    +   * 
                                    + * + * int64 minor_revision_id = 9; + * + * @return The minorRevisionId. + */ + long getMinorRevisionId(); + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + java.util.List + getTargetResourceDetailsList(); + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails getTargetResourceDetails( + int index); + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + int getTargetResourceDetailsCount(); + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder> + getTargetResourceDetailsOrBuilderList(); + + /** + * + * + *
                                    +   * The target resource details for the framework.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails target_resource_details = 10; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder + getTargetResourceDetailsOrBuilder(int index); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeployment.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeployment.java index d6bcf6dca6c7..8d53de0962d4 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeployment.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeployment.java @@ -23,9 +23,9 @@ * * *
                                    - * FrameworkDeployment represents deployment of a Framework on a target
                                    - * resource. Supported target resources are organizations/{organization},
                                    - * folders/{folder}, and projects/{project}.
                                    + * Framework deployments represent the assignment of a framework to a target
                                    + * resource. Supported target resources are organizations, folders, and
                                    + * projects.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment} @@ -83,8 +83,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Identifier. FrameworkDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Identifier. The name of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -108,8 +109,9 @@ public java.lang.String getName() { * * *
                                    -   * Identifier. FrameworkDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Identifier. The name of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -136,9 +138,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -   * Required. The details of the target resource on which the Framework is to
                                    -   * be deployed. It can either be an existing target resource or a new target
                                    -   * resource to be created.
                                    +   * Required. The details of the target resource that you want to deploy the
                                    +   * framework to. You can specify an existing resource, or create a new one.
                                        * 
                                    * * @@ -156,9 +157,8 @@ public boolean hasTargetResourceConfig() { * * *
                                    -   * Required. The details of the target resource on which the Framework is to
                                    -   * be deployed. It can either be an existing target resource or a new target
                                    -   * resource to be created.
                                    +   * Required. The details of the target resource that you want to deploy the
                                    +   * framework to. You can specify an existing resource, or create a new one.
                                        * 
                                    * * @@ -179,9 +179,8 @@ public boolean hasTargetResourceConfig() { * * *
                                    -   * Required. The details of the target resource on which the Framework is to
                                    -   * be deployed. It can either be an existing target resource or a new target
                                    -   * resource to be created.
                                    +   * Required. The details of the target resource that you want to deploy the
                                    +   * framework to. You can specify an existing resource, or create a new one.
                                        * 
                                    * * @@ -205,9 +204,12 @@ public boolean hasTargetResourceConfig() { * * *
                                    -   * Output only. The resource on which the Framework is deployed based on the
                                    -   * provided TargetResourceConfig in the following format:
                                    -   * organizations/{organization}, folders/{folder} or projects/{project}
                                    +   * Output only. The target resource to deploy the framework to, in one  the
                                    +   * following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -231,9 +233,12 @@ public java.lang.String getComputedTargetResource() { * * *
                                    -   * Output only. The resource on which the Framework is deployed based on the
                                    -   * provided TargetResourceConfig in the following format:
                                    -   * organizations/{organization}, folders/{folder} or projects/{project}
                                    +   * Output only. The target resource to deploy the framework to, in one  the
                                    +   * following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -260,7 +265,7 @@ public com.google.protobuf.ByteString getComputedTargetResourceBytes() { * * *
                                    -   * Required. Reference to the framework to be deployed.
                                    +   * Required. A reference to the framework that you're deploying.
                                        * 
                                    * * @@ -278,7 +283,7 @@ public boolean hasFramework() { * * *
                                    -   * Required. Reference to the framework to be deployed.
                                    +   * Required. A reference to the framework that you're deploying.
                                        * 
                                    * * @@ -298,7 +303,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference getFramewo * * *
                                    -   * Required. Reference to the framework to be deployed.
                                    +   * Required. A reference to the framework that you're deploying.
                                        * 
                                    * * @@ -322,7 +327,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference getFramewo * * *
                                    -   * Optional. User provided description of the Framework deployment
                                    +   * Optional. A user-provided description of the framework deployment.
                                        * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -346,7 +351,7 @@ public java.lang.String getDescription() { * * *
                                    -   * Optional. User provided description of the Framework deployment
                                    +   * Optional. A user-provided description of the framework deployment.
                                        * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -376,9 +381,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -395,9 +399,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -415,9 +418,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -433,9 +435,8 @@ public int getCloudControlMetadataCount() { * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -452,9 +453,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloud * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -474,7 +474,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloud * * *
                                    -   * Output only. State of the Framework Deployment
                                    +   * Output only. The state for the framework deployment.
                                        * 
                                    * * @@ -492,7 +492,7 @@ public int getDeploymentStateValue() { * * *
                                    -   * Output only. State of the Framework Deployment
                                    +   * Output only. The state for the framework deployment.
                                        * 
                                    * * @@ -624,10 +624,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * *
                                        * Optional. To prevent concurrent updates from overwriting each other, always
                                    -   * provide the `etag` when you update a FrameworkDeployment. You can also
                                    -   * provide the `etag` when you delete a FrameworkDeployment, to help
                                    +   * provide the `etag` when you update a framework deployment. You can also
                                    +   * provide the `etag` when you delete a framework deployment, to help
                                        * ensure that you're deleting the intended version of the
                                    -   * FrameworkDeployment.
                                    +   * framework deployment.
                                        * 
                                    * * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -652,10 +652,10 @@ public java.lang.String getEtag() { * *
                                        * Optional. To prevent concurrent updates from overwriting each other, always
                                    -   * provide the `etag` when you update a FrameworkDeployment. You can also
                                    -   * provide the `etag` when you delete a FrameworkDeployment, to help
                                    +   * provide the `etag` when you update a framework deployment. You can also
                                    +   * provide the `etag` when you delete a framework deployment, to help
                                        * ensure that you're deleting the intended version of the
                                    -   * FrameworkDeployment.
                                    +   * framework deployment.
                                        * 
                                    * * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -741,11 +741,15 @@ public com.google.protobuf.ByteString getTargetResourceDisplayNameBytes() { * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -755,6 +759,7 @@ public com.google.protobuf.ByteString getTargetResourceDisplayNameBytes() {
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * @@ -771,11 +776,15 @@ public com.google.protobuf.ByteString getTargetResourceDisplayNameBytes() { * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -785,6 +794,7 @@ public com.google.protobuf.ByteString getTargetResourceDisplayNameBytes() {
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * @@ -803,11 +813,15 @@ public com.google.protobuf.ByteString getTargetResourceDisplayNameBytes() { * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -817,6 +831,7 @@ public com.google.protobuf.ByteString getTargetResourceDisplayNameBytes() {
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * @@ -832,11 +847,15 @@ public int getCloudControlDeploymentReferencesCount() { * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -846,6 +865,7 @@ public int getCloudControlDeploymentReferencesCount() {
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * @@ -862,11 +882,15 @@ public int getCloudControlDeploymentReferencesCount() { * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -876,6 +900,7 @@ public int getCloudControlDeploymentReferencesCount() {
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * @@ -1186,9 +1211,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * FrameworkDeployment represents deployment of a Framework on a target
                                    -   * resource. Supported target resources are organizations/{organization},
                                    -   * folders/{folder}, and projects/{project}.
                                    +   * Framework deployments represent the assignment of a framework to a target
                                    +   * resource. Supported target resources are organizations, folders, and
                                    +   * projects.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment} @@ -1664,8 +1689,9 @@ public Builder mergeFrom( * * *
                                    -     * Identifier. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Identifier. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1688,8 +1714,9 @@ public java.lang.String getName() { * * *
                                    -     * Identifier. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Identifier. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1712,8 +1739,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Identifier. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Identifier. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1735,8 +1763,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Identifier. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Identifier. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1754,8 +1783,9 @@ public Builder clearName() { * * *
                                    -     * Identifier. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Identifier. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1785,9 +1815,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. The details of the target resource on which the Framework is to
                                    -     * be deployed. It can either be an existing target resource or a new target
                                    -     * resource to be created.
                                    +     * Required. The details of the target resource that you want to deploy the
                                    +     * framework to. You can specify an existing resource, or create a new one.
                                          * 
                                    * * @@ -1804,9 +1833,8 @@ public boolean hasTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the Framework is to
                                    -     * be deployed. It can either be an existing target resource or a new target
                                    -     * resource to be created.
                                    +     * Required. The details of the target resource that you want to deploy the
                                    +     * framework to. You can specify an existing resource, or create a new one.
                                          * 
                                    * * @@ -1830,9 +1858,8 @@ public boolean hasTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the Framework is to
                                    -     * be deployed. It can either be an existing target resource or a new target
                                    -     * resource to be created.
                                    +     * Required. The details of the target resource that you want to deploy the
                                    +     * framework to. You can specify an existing resource, or create a new one.
                                          * 
                                    * * @@ -1858,9 +1885,8 @@ public Builder setTargetResourceConfig( * * *
                                    -     * Required. The details of the target resource on which the Framework is to
                                    -     * be deployed. It can either be an existing target resource or a new target
                                    -     * resource to be created.
                                    +     * Required. The details of the target resource that you want to deploy the
                                    +     * framework to. You can specify an existing resource, or create a new one.
                                          * 
                                    * * @@ -1883,9 +1909,8 @@ public Builder setTargetResourceConfig( * * *
                                    -     * Required. The details of the target resource on which the Framework is to
                                    -     * be deployed. It can either be an existing target resource or a new target
                                    -     * resource to be created.
                                    +     * Required. The details of the target resource that you want to deploy the
                                    +     * framework to. You can specify an existing resource, or create a new one.
                                          * 
                                    * * @@ -1918,9 +1943,8 @@ public Builder mergeTargetResourceConfig( * * *
                                    -     * Required. The details of the target resource on which the Framework is to
                                    -     * be deployed. It can either be an existing target resource or a new target
                                    -     * resource to be created.
                                    +     * Required. The details of the target resource that you want to deploy the
                                    +     * framework to. You can specify an existing resource, or create a new one.
                                          * 
                                    * * @@ -1942,9 +1966,8 @@ public Builder clearTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the Framework is to
                                    -     * be deployed. It can either be an existing target resource or a new target
                                    -     * resource to be created.
                                    +     * Required. The details of the target resource that you want to deploy the
                                    +     * framework to. You can specify an existing resource, or create a new one.
                                          * 
                                    * * @@ -1962,9 +1985,8 @@ public Builder clearTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the Framework is to
                                    -     * be deployed. It can either be an existing target resource or a new target
                                    -     * resource to be created.
                                    +     * Required. The details of the target resource that you want to deploy the
                                    +     * framework to. You can specify an existing resource, or create a new one.
                                          * 
                                    * * @@ -1986,9 +2008,8 @@ public Builder clearTargetResourceConfig() { * * *
                                    -     * Required. The details of the target resource on which the Framework is to
                                    -     * be deployed. It can either be an existing target resource or a new target
                                    -     * resource to be created.
                                    +     * Required. The details of the target resource that you want to deploy the
                                    +     * framework to. You can specify an existing resource, or create a new one.
                                          * 
                                    * * @@ -2018,9 +2039,12 @@ public Builder clearTargetResourceConfig() { * * *
                                    -     * Output only. The resource on which the Framework is deployed based on the
                                    -     * provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}
                                    +     * Output only. The target resource to deploy the framework to, in one  the
                                    +     * following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2044,9 +2068,12 @@ public java.lang.String getComputedTargetResource() { * * *
                                    -     * Output only. The resource on which the Framework is deployed based on the
                                    -     * provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}
                                    +     * Output only. The target resource to deploy the framework to, in one  the
                                    +     * following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2070,9 +2097,12 @@ public com.google.protobuf.ByteString getComputedTargetResourceBytes() { * * *
                                    -     * Output only. The resource on which the Framework is deployed based on the
                                    -     * provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}
                                    +     * Output only. The target resource to deploy the framework to, in one  the
                                    +     * following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2095,9 +2125,12 @@ public Builder setComputedTargetResource(java.lang.String value) { * * *
                                    -     * Output only. The resource on which the Framework is deployed based on the
                                    -     * provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}
                                    +     * Output only. The target resource to deploy the framework to, in one  the
                                    +     * following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2116,9 +2149,12 @@ public Builder clearComputedTargetResource() { * * *
                                    -     * Output only. The resource on which the Framework is deployed based on the
                                    -     * provided TargetResourceConfig in the following format:
                                    -     * organizations/{organization}, folders/{folder} or projects/{project}
                                    +     * Output only. The target resource to deploy the framework to, in one  the
                                    +     * following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2149,7 +2185,7 @@ public Builder setComputedTargetResourceBytes(com.google.protobuf.ByteString val * * *
                                    -     * Required. Reference to the framework to be deployed.
                                    +     * Required. A reference to the framework that you're deploying.
                                          * 
                                    * * @@ -2166,7 +2202,7 @@ public boolean hasFramework() { * * *
                                    -     * Required. Reference to the framework to be deployed.
                                    +     * Required. A reference to the framework that you're deploying.
                                          * 
                                    * * @@ -2189,7 +2225,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference getFramewo * * *
                                    -     * Required. Reference to the framework to be deployed.
                                    +     * Required. A reference to the framework that you're deploying.
                                          * 
                                    * * @@ -2215,7 +2251,7 @@ public Builder setFramework( * * *
                                    -     * Required. Reference to the framework to be deployed.
                                    +     * Required. A reference to the framework that you're deploying.
                                          * 
                                    * * @@ -2238,7 +2274,7 @@ public Builder setFramework( * * *
                                    -     * Required. Reference to the framework to be deployed.
                                    +     * Required. A reference to the framework that you're deploying.
                                          * 
                                    * * @@ -2271,7 +2307,7 @@ public Builder mergeFramework( * * *
                                    -     * Required. Reference to the framework to be deployed.
                                    +     * Required. A reference to the framework that you're deploying.
                                          * 
                                    * * @@ -2293,7 +2329,7 @@ public Builder clearFramework() { * * *
                                    -     * Required. Reference to the framework to be deployed.
                                    +     * Required. A reference to the framework that you're deploying.
                                          * 
                                    * * @@ -2311,7 +2347,7 @@ public Builder clearFramework() { * * *
                                    -     * Required. Reference to the framework to be deployed.
                                    +     * Required. A reference to the framework that you're deploying.
                                          * 
                                    * * @@ -2333,7 +2369,7 @@ public Builder clearFramework() { * * *
                                    -     * Required. Reference to the framework to be deployed.
                                    +     * Required. A reference to the framework that you're deploying.
                                          * 
                                    * * @@ -2363,7 +2399,7 @@ public Builder clearFramework() { * * *
                                    -     * Optional. User provided description of the Framework deployment
                                    +     * Optional. A user-provided description of the framework deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2386,7 +2422,7 @@ public java.lang.String getDescription() { * * *
                                    -     * Optional. User provided description of the Framework deployment
                                    +     * Optional. A user-provided description of the framework deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2409,7 +2445,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -     * Optional. User provided description of the Framework deployment
                                    +     * Optional. A user-provided description of the framework deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2431,7 +2467,7 @@ public Builder setDescription(java.lang.String value) { * * *
                                    -     * Optional. User provided description of the Framework deployment
                                    +     * Optional. A user-provided description of the framework deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2449,7 +2485,7 @@ public Builder clearDescription() { * * *
                                    -     * Optional. User provided description of the Framework deployment
                                    +     * Optional. A user-provided description of the framework deployment.
                                          * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2491,9 +2527,8 @@ private void ensureCloudControlMetadataIsMutable() { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2513,9 +2548,8 @@ private void ensureCloudControlMetadataIsMutable() { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2534,9 +2568,8 @@ public int getCloudControlMetadataCount() { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2556,9 +2589,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloud * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2584,9 +2616,8 @@ public Builder setCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2610,9 +2641,8 @@ public Builder setCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2638,9 +2668,8 @@ public Builder addCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2666,9 +2695,8 @@ public Builder addCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2691,9 +2719,8 @@ public Builder addCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2717,9 +2744,8 @@ public Builder addCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2744,9 +2770,8 @@ public Builder addAllCloudControlMetadata( * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2768,9 +2793,8 @@ public Builder clearCloudControlMetadata() { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2792,9 +2816,8 @@ public Builder removeCloudControlMetadata(int index) { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2810,9 +2833,8 @@ public Builder removeCloudControlMetadata(int index) { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2832,9 +2854,8 @@ public Builder removeCloudControlMetadata(int index) { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2855,9 +2876,8 @@ public Builder removeCloudControlMetadata(int index) { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2876,9 +2896,8 @@ public Builder removeCloudControlMetadata(int index) { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2898,9 +2917,8 @@ public Builder removeCloudControlMetadata(int index) { * * *
                                    -     * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -     * the framework. Every Cloud Control in the framework must have a
                                    -     * CloudControlMetadata.
                                    +     * Required. The deployment mode and parameters for each of the cloud controls
                                    +     * in the framework. Every cloud control in the framework includes metadata.
                                          * 
                                    * * @@ -2938,7 +2956,7 @@ public Builder removeCloudControlMetadata(int index) { * * *
                                    -     * Output only. State of the Framework Deployment
                                    +     * Output only. The state for the framework deployment.
                                          * 
                                    * * @@ -2956,7 +2974,7 @@ public int getDeploymentStateValue() { * * *
                                    -     * Output only. State of the Framework Deployment
                                    +     * Output only. The state for the framework deployment.
                                          * 
                                    * * @@ -2977,7 +2995,7 @@ public Builder setDeploymentStateValue(int value) { * * *
                                    -     * Output only. State of the Framework Deployment
                                    +     * Output only. The state for the framework deployment.
                                          * 
                                    * * @@ -2999,7 +3017,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.DeploymentState getDeployment * * *
                                    -     * Output only. State of the Framework Deployment
                                    +     * Output only. The state for the framework deployment.
                                          * 
                                    * * @@ -3024,7 +3042,7 @@ public Builder setDeploymentState( * * *
                                    -     * Output only. State of the Framework Deployment
                                    +     * Output only. The state for the framework deployment.
                                          * 
                                    * * @@ -3471,10 +3489,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * *
                                          * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a FrameworkDeployment. You can also
                                    -     * provide the `etag` when you delete a FrameworkDeployment, to help
                                    +     * provide the `etag` when you update a framework deployment. You can also
                                    +     * provide the `etag` when you delete a framework deployment, to help
                                          * ensure that you're deleting the intended version of the
                                    -     * FrameworkDeployment.
                                    +     * framework deployment.
                                          * 
                                    * * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -3498,10 +3516,10 @@ public java.lang.String getEtag() { * *
                                          * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a FrameworkDeployment. You can also
                                    -     * provide the `etag` when you delete a FrameworkDeployment, to help
                                    +     * provide the `etag` when you update a framework deployment. You can also
                                    +     * provide the `etag` when you delete a framework deployment, to help
                                          * ensure that you're deleting the intended version of the
                                    -     * FrameworkDeployment.
                                    +     * framework deployment.
                                          * 
                                    * * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -3525,10 +3543,10 @@ public com.google.protobuf.ByteString getEtagBytes() { * *
                                          * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a FrameworkDeployment. You can also
                                    -     * provide the `etag` when you delete a FrameworkDeployment, to help
                                    +     * provide the `etag` when you update a framework deployment. You can also
                                    +     * provide the `etag` when you delete a framework deployment, to help
                                          * ensure that you're deleting the intended version of the
                                    -     * FrameworkDeployment.
                                    +     * framework deployment.
                                          * 
                                    * * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -3551,10 +3569,10 @@ public Builder setEtag(java.lang.String value) { * *
                                          * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a FrameworkDeployment. You can also
                                    -     * provide the `etag` when you delete a FrameworkDeployment, to help
                                    +     * provide the `etag` when you update a framework deployment. You can also
                                    +     * provide the `etag` when you delete a framework deployment, to help
                                          * ensure that you're deleting the intended version of the
                                    -     * FrameworkDeployment.
                                    +     * framework deployment.
                                          * 
                                    * * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -3573,10 +3591,10 @@ public Builder clearEtag() { * *
                                          * Optional. To prevent concurrent updates from overwriting each other, always
                                    -     * provide the `etag` when you update a FrameworkDeployment. You can also
                                    -     * provide the `etag` when you delete a FrameworkDeployment, to help
                                    +     * provide the `etag` when you update a framework deployment. You can also
                                    +     * provide the `etag` when you delete a framework deployment, to help
                                          * ensure that you're deleting the intended version of the
                                    -     * FrameworkDeployment.
                                    +     * framework deployment.
                                          * 
                                    * * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -3735,11 +3753,15 @@ private void ensureCloudControlDeploymentReferencesIsMutable() { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -3749,6 +3771,7 @@ private void ensureCloudControlDeploymentReferencesIsMutable() {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -3769,11 +3792,15 @@ private void ensureCloudControlDeploymentReferencesIsMutable() { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -3783,6 +3810,7 @@ private void ensureCloudControlDeploymentReferencesIsMutable() {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -3801,11 +3829,15 @@ public int getCloudControlDeploymentReferencesCount() { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -3815,6 +3847,7 @@ public int getCloudControlDeploymentReferencesCount() {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -3834,11 +3867,15 @@ public int getCloudControlDeploymentReferencesCount() { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -3848,6 +3885,7 @@ public int getCloudControlDeploymentReferencesCount() {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -3874,11 +3912,15 @@ public Builder setCloudControlDeploymentReferences( * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -3888,6 +3930,7 @@ public Builder setCloudControlDeploymentReferences(
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -3912,11 +3955,15 @@ public Builder setCloudControlDeploymentReferences( * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -3926,6 +3973,7 @@ public Builder setCloudControlDeploymentReferences(
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -3951,11 +3999,15 @@ public Builder addCloudControlDeploymentReferences( * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -3965,6 +4017,7 @@ public Builder addCloudControlDeploymentReferences(
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -3991,11 +4044,15 @@ public Builder addCloudControlDeploymentReferences( * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4005,6 +4062,7 @@ public Builder addCloudControlDeploymentReferences(
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4028,11 +4086,15 @@ public Builder addCloudControlDeploymentReferences( * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4042,6 +4104,7 @@ public Builder addCloudControlDeploymentReferences(
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4066,11 +4129,15 @@ public Builder addCloudControlDeploymentReferences( * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4080,6 +4147,7 @@ public Builder addCloudControlDeploymentReferences(
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4106,11 +4174,15 @@ public Builder addAllCloudControlDeploymentReferences( * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4120,6 +4192,7 @@ public Builder addAllCloudControlDeploymentReferences(
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4141,11 +4214,15 @@ public Builder clearCloudControlDeploymentReferences() { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4155,6 +4232,7 @@ public Builder clearCloudControlDeploymentReferences() {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4176,11 +4254,15 @@ public Builder removeCloudControlDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4190,6 +4272,7 @@ public Builder removeCloudControlDeploymentReferences(int index) {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4205,11 +4288,15 @@ public Builder removeCloudControlDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4219,6 +4306,7 @@ public Builder removeCloudControlDeploymentReferences(int index) {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4238,11 +4326,15 @@ public Builder removeCloudControlDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4252,6 +4344,7 @@ public Builder removeCloudControlDeploymentReferences(int index) {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4274,11 +4367,15 @@ public Builder removeCloudControlDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4288,6 +4385,7 @@ public Builder removeCloudControlDeploymentReferences(int index) {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4306,11 +4404,15 @@ public Builder removeCloudControlDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4320,6 +4422,7 @@ public Builder removeCloudControlDeploymentReferences(int index) {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * @@ -4339,11 +4442,15 @@ public Builder removeCloudControlDeploymentReferences(int index) { * * *
                                    -     * Output only. The references to the cloud control deployments. It has all
                                    -     * the CloudControlDeployments which are either directly added in the
                                    -     * framework or through a CloudControlGroup. Example: If a framework
                                    -     * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -     * then the cloud_control_deployment_references will be:
                                    +     * Output only. The references to the cloud control deployments. The reference
                                    +     * includes all the cloud control deployments that are in the framework or in
                                    +     * a cloud control group.
                                    +     *
                                    +     * For example, if a framework deployment deploys two
                                    +     * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +     * references are:
                                    +     *
                                    +     * ```
                                          * {
                                          *  cloud_control_deployment_reference: {
                                          *    cloud_control_deployment:
                                    @@ -4353,6 +4460,7 @@ public Builder removeCloudControlDeploymentReferences(int index) {
                                          *   cloud_control_deployment:
                                          *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                          *  }
                                    +     * ```
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentOrBuilder.java index 5fee885ca9b1..84ec171315b7 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentOrBuilder.java @@ -28,8 +28,9 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Identifier. FrameworkDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Identifier. The name of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,8 +43,9 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Identifier. FrameworkDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Identifier. The name of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -56,9 +58,8 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Required. The details of the target resource on which the Framework is to
                                    -   * be deployed. It can either be an existing target resource or a new target
                                    -   * resource to be created.
                                    +   * Required. The details of the target resource that you want to deploy the
                                    +   * framework to. You can specify an existing resource, or create a new one.
                                        * 
                                    * * @@ -73,9 +74,8 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Required. The details of the target resource on which the Framework is to
                                    -   * be deployed. It can either be an existing target resource or a new target
                                    -   * resource to be created.
                                    +   * Required. The details of the target resource that you want to deploy the
                                    +   * framework to. You can specify an existing resource, or create a new one.
                                        * 
                                    * * @@ -90,9 +90,8 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Required. The details of the target resource on which the Framework is to
                                    -   * be deployed. It can either be an existing target resource or a new target
                                    -   * resource to be created.
                                    +   * Required. The details of the target resource that you want to deploy the
                                    +   * framework to. You can specify an existing resource, or create a new one.
                                        * 
                                    * * @@ -106,9 +105,12 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Output only. The resource on which the Framework is deployed based on the
                                    -   * provided TargetResourceConfig in the following format:
                                    -   * organizations/{organization}, folders/{folder} or projects/{project}
                                    +   * Output only. The target resource to deploy the framework to, in one  the
                                    +   * following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -121,9 +123,12 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Output only. The resource on which the Framework is deployed based on the
                                    -   * provided TargetResourceConfig in the following format:
                                    -   * organizations/{organization}, folders/{folder} or projects/{project}
                                    +   * Output only. The target resource to deploy the framework to, in one  the
                                    +   * following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string computed_target_resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -136,7 +141,7 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Required. Reference to the framework to be deployed.
                                    +   * Required. A reference to the framework that you're deploying.
                                        * 
                                    * * @@ -151,7 +156,7 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Required. Reference to the framework to be deployed.
                                    +   * Required. A reference to the framework that you're deploying.
                                        * 
                                    * * @@ -166,7 +171,7 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Required. Reference to the framework to be deployed.
                                    +   * Required. A reference to the framework that you're deploying.
                                        * 
                                    * * @@ -179,7 +184,7 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Optional. User provided description of the Framework deployment
                                    +   * Optional. A user-provided description of the framework deployment.
                                        * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -192,7 +197,7 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Optional. User provided description of the Framework deployment
                                    +   * Optional. A user-provided description of the framework deployment.
                                        * 
                                    * * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -205,9 +210,8 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -221,9 +225,8 @@ public interface FrameworkDeploymentOrBuilder * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -237,9 +240,8 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -252,9 +254,8 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -269,9 +270,8 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Required. Deployment mode and parameters for each of the Cloud Controls in
                                    -   * the framework. Every Cloud Control in the framework must have a
                                    -   * CloudControlMetadata.
                                    +   * Required. The deployment mode and parameters for each of the cloud controls
                                    +   * in the framework. Every cloud control in the framework includes metadata.
                                        * 
                                    * * @@ -285,7 +285,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Output only. State of the Framework Deployment
                                    +   * Output only. The state for the framework deployment.
                                        * 
                                    * * @@ -300,7 +300,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Output only. State of the Framework Deployment
                                    +   * Output only. The state for the framework deployment.
                                        * 
                                    * * @@ -396,10 +396,10 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * *
                                        * Optional. To prevent concurrent updates from overwriting each other, always
                                    -   * provide the `etag` when you update a FrameworkDeployment. You can also
                                    -   * provide the `etag` when you delete a FrameworkDeployment, to help
                                    +   * provide the `etag` when you update a framework deployment. You can also
                                    +   * provide the `etag` when you delete a framework deployment, to help
                                        * ensure that you're deleting the intended version of the
                                    -   * FrameworkDeployment.
                                    +   * framework deployment.
                                        * 
                                    * * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -413,10 +413,10 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * *
                                        * Optional. To prevent concurrent updates from overwriting each other, always
                                    -   * provide the `etag` when you update a FrameworkDeployment. You can also
                                    -   * provide the `etag` when you delete a FrameworkDeployment, to help
                                    +   * provide the `etag` when you update a framework deployment. You can also
                                    +   * provide the `etag` when you delete a framework deployment, to help
                                        * ensure that you're deleting the intended version of the
                                    -   * FrameworkDeployment.
                                    +   * framework deployment.
                                        * 
                                    * * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -457,11 +457,15 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -471,6 +475,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * @@ -484,11 +489,15 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -498,6 +507,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * @@ -511,11 +521,15 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -525,6 +539,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * @@ -537,11 +552,15 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -551,6 +570,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * @@ -566,11 +586,15 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl * * *
                                    -   * Output only. The references to the cloud control deployments. It has all
                                    -   * the CloudControlDeployments which are either directly added in the
                                    -   * framework or through a CloudControlGroup. Example: If a framework
                                    -   * deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2,
                                    -   * then the cloud_control_deployment_references will be:
                                    +   * Output only. The references to the cloud control deployments. The reference
                                    +   * includes all the cloud control deployments that are in the framework or in
                                    +   * a cloud control group.
                                    +   *
                                    +   * For example, if a framework deployment deploys two
                                    +   * cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the
                                    +   * references are:
                                    +   *
                                    +   * ```
                                        * {
                                        *  cloud_control_deployment_reference: {
                                        *    cloud_control_deployment:
                                    @@ -580,6 +604,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadata getCloudControl
                                        *   cloud_control_deployment:
                                        *   "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2"
                                        *  }
                                    +   * ```
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReference.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReference.java index d1c847e227dc..eb7b00e07a84 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReference.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReference.java @@ -23,7 +23,7 @@ * * *
                                    - * The reference to a FrameworkDeployment.
                                    + * The reference to a framework deployment.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference} @@ -75,8 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Output only. The name of the FrameworkDeployment. The format is:
                                    -   * organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Output only. The name of the framework deployment, in the format
                                    +   * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -102,8 +103,9 @@ public java.lang.String getFrameworkDeployment() { * * *
                                    -   * Output only. The name of the FrameworkDeployment. The format is:
                                    -   * organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Output only. The name of the framework deployment, in the format
                                    +   * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -132,12 +134,18 @@ public com.google.protobuf.ByteString getFrameworkDeploymentBytes() { * * *
                                    -   * Optional. The reference to the Framework that this deployment is for.
                                    -   * Example: {
                                    +   * Optional. The reference to the framework that this deployment is for.
                                    +   * For example:
                                    +   *
                                    +   * ```
                                    +   * {
                                        *   framework:
                                        *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                        *   major_revision_id: 1
                                        * }
                                    +   * ```
                                    +   *
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -155,12 +163,18 @@ public boolean hasFrameworkReference() { * * *
                                    -   * Optional. The reference to the Framework that this deployment is for.
                                    -   * Example: {
                                    +   * Optional. The reference to the framework that this deployment is for.
                                    +   * For example:
                                    +   *
                                    +   * ```
                                    +   * {
                                        *   framework:
                                        *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                        *   major_revision_id: 1
                                        * }
                                    +   * ```
                                    +   *
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -180,12 +194,18 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference getFramewo * * *
                                    -   * Optional. The reference to the Framework that this deployment is for.
                                    -   * Example: {
                                    +   * Optional. The reference to the framework that this deployment is for.
                                    +   * For example:
                                    +   *
                                    +   * ```
                                    +   * {
                                        *   framework:
                                        *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                        *   major_revision_id: 1
                                        * }
                                    +   * ```
                                    +   *
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -209,7 +229,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference getFramewo * * *
                                    -   * Optional. The display name of the Framework that this FrameworkDeployment
                                    +   * Optional. The display name of the framework that this framework deployment
                                        * is for.
                                        * 
                                    * @@ -234,7 +254,7 @@ public java.lang.String getFrameworkDisplayName() { * * *
                                    -   * Optional. The display name of the Framework that this FrameworkDeployment
                                    +   * Optional. The display name of the framework that this framework deployment
                                        * is for.
                                        * 
                                    * @@ -445,7 +465,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * The reference to a FrameworkDeployment.
                                    +   * The reference to a framework deployment.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReference} @@ -688,8 +708,9 @@ public Builder mergeFrom( * * *
                                    -     * Output only. The name of the FrameworkDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Output only. The name of the framework deployment, in the format
                                    +     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -714,8 +735,9 @@ public java.lang.String getFrameworkDeployment() { * * *
                                    -     * Output only. The name of the FrameworkDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Output only. The name of the framework deployment, in the format
                                    +     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -740,8 +762,9 @@ public com.google.protobuf.ByteString getFrameworkDeploymentBytes() { * * *
                                    -     * Output only. The name of the FrameworkDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Output only. The name of the framework deployment, in the format
                                    +     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -765,8 +788,9 @@ public Builder setFrameworkDeployment(java.lang.String value) { * * *
                                    -     * Output only. The name of the FrameworkDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Output only. The name of the framework deployment, in the format
                                    +     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -786,8 +810,9 @@ public Builder clearFrameworkDeployment() { * * *
                                    -     * Output only. The name of the FrameworkDeployment. The format is:
                                    -     * organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Output only. The name of the framework deployment, in the format
                                    +     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -819,12 +844,18 @@ public Builder setFrameworkDeploymentBytes(com.google.protobuf.ByteString value) * * *
                                    -     * Optional. The reference to the Framework that this deployment is for.
                                    -     * Example: {
                                    +     * Optional. The reference to the framework that this deployment is for.
                                    +     * For example:
                                    +     *
                                    +     * ```
                                    +     * {
                                          *   framework:
                                          *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                          *   major_revision_id: 1
                                          * }
                                    +     * ```
                                    +     *
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -841,12 +872,18 @@ public boolean hasFrameworkReference() { * * *
                                    -     * Optional. The reference to the Framework that this deployment is for.
                                    -     * Example: {
                                    +     * Optional. The reference to the framework that this deployment is for.
                                    +     * For example:
                                    +     *
                                    +     * ```
                                    +     * {
                                          *   framework:
                                          *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                          *   major_revision_id: 1
                                          * }
                                    +     * ```
                                    +     *
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -869,12 +906,18 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference getFramewo * * *
                                    -     * Optional. The reference to the Framework that this deployment is for.
                                    -     * Example: {
                                    +     * Optional. The reference to the framework that this deployment is for.
                                    +     * For example:
                                    +     *
                                    +     * ```
                                    +     * {
                                          *   framework:
                                          *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                          *   major_revision_id: 1
                                          * }
                                    +     * ```
                                    +     *
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -900,12 +943,18 @@ public Builder setFrameworkReference( * * *
                                    -     * Optional. The reference to the Framework that this deployment is for.
                                    -     * Example: {
                                    +     * Optional. The reference to the framework that this deployment is for.
                                    +     * For example:
                                    +     *
                                    +     * ```
                                    +     * {
                                          *   framework:
                                          *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                          *   major_revision_id: 1
                                          * }
                                    +     * ```
                                    +     *
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -928,12 +977,18 @@ public Builder setFrameworkReference( * * *
                                    -     * Optional. The reference to the Framework that this deployment is for.
                                    -     * Example: {
                                    +     * Optional. The reference to the framework that this deployment is for.
                                    +     * For example:
                                    +     *
                                    +     * ```
                                    +     * {
                                          *   framework:
                                          *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                          *   major_revision_id: 1
                                          * }
                                    +     * ```
                                    +     *
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -966,12 +1021,18 @@ public Builder mergeFrameworkReference( * * *
                                    -     * Optional. The reference to the Framework that this deployment is for.
                                    -     * Example: {
                                    +     * Optional. The reference to the framework that this deployment is for.
                                    +     * For example:
                                    +     *
                                    +     * ```
                                    +     * {
                                          *   framework:
                                          *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                          *   major_revision_id: 1
                                          * }
                                    +     * ```
                                    +     *
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -993,12 +1054,18 @@ public Builder clearFrameworkReference() { * * *
                                    -     * Optional. The reference to the Framework that this deployment is for.
                                    -     * Example: {
                                    +     * Optional. The reference to the framework that this deployment is for.
                                    +     * For example:
                                    +     *
                                    +     * ```
                                    +     * {
                                          *   framework:
                                          *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                          *   major_revision_id: 1
                                          * }
                                    +     * ```
                                    +     *
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -1016,12 +1083,18 @@ public Builder clearFrameworkReference() { * * *
                                    -     * Optional. The reference to the Framework that this deployment is for.
                                    -     * Example: {
                                    +     * Optional. The reference to the framework that this deployment is for.
                                    +     * For example:
                                    +     *
                                    +     * ```
                                    +     * {
                                          *   framework:
                                          *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                          *   major_revision_id: 1
                                          * }
                                    +     * ```
                                    +     *
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -1043,12 +1116,18 @@ public Builder clearFrameworkReference() { * * *
                                    -     * Optional. The reference to the Framework that this deployment is for.
                                    -     * Example: {
                                    +     * Optional. The reference to the framework that this deployment is for.
                                    +     * For example:
                                    +     *
                                    +     * ```
                                    +     * {
                                          *   framework:
                                          *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                          *   major_revision_id: 1
                                          * }
                                    +     * ```
                                    +     *
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -1078,7 +1157,7 @@ public Builder clearFrameworkReference() { * * *
                                    -     * Optional. The display name of the Framework that this FrameworkDeployment
                                    +     * Optional. The display name of the framework that this framework deployment
                                          * is for.
                                          * 
                                    * @@ -1102,7 +1181,7 @@ public java.lang.String getFrameworkDisplayName() { * * *
                                    -     * Optional. The display name of the Framework that this FrameworkDeployment
                                    +     * Optional. The display name of the framework that this framework deployment
                                          * is for.
                                          * 
                                    * @@ -1126,7 +1205,7 @@ public com.google.protobuf.ByteString getFrameworkDisplayNameBytes() { * * *
                                    -     * Optional. The display name of the Framework that this FrameworkDeployment
                                    +     * Optional. The display name of the framework that this framework deployment
                                          * is for.
                                          * 
                                    * @@ -1149,7 +1228,7 @@ public Builder setFrameworkDisplayName(java.lang.String value) { * * *
                                    -     * Optional. The display name of the Framework that this FrameworkDeployment
                                    +     * Optional. The display name of the framework that this framework deployment
                                          * is for.
                                          * 
                                    * @@ -1168,7 +1247,7 @@ public Builder clearFrameworkDisplayName() { * * *
                                    -     * Optional. The display name of the Framework that this FrameworkDeployment
                                    +     * Optional. The display name of the framework that this framework deployment
                                          * is for.
                                          * 
                                    * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReferenceOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReferenceOrBuilder.java index ee77b3cb9430..c81ecde8c485 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReferenceOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReferenceOrBuilder.java @@ -28,8 +28,9 @@ public interface FrameworkDeploymentReferenceOrBuilder * * *
                                    -   * Output only. The name of the FrameworkDeployment. The format is:
                                    -   * organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Output only. The name of the framework deployment, in the format
                                    +   * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -44,8 +45,9 @@ public interface FrameworkDeploymentReferenceOrBuilder * * *
                                    -   * Output only. The name of the FrameworkDeployment. The format is:
                                    -   * organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Output only. The name of the framework deployment, in the format
                                    +   * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -60,12 +62,18 @@ public interface FrameworkDeploymentReferenceOrBuilder * * *
                                    -   * Optional. The reference to the Framework that this deployment is for.
                                    -   * Example: {
                                    +   * Optional. The reference to the framework that this deployment is for.
                                    +   * For example:
                                    +   *
                                    +   * ```
                                    +   * {
                                        *   framework:
                                        *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                        *   major_revision_id: 1
                                        * }
                                    +   * ```
                                    +   *
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -80,12 +88,18 @@ public interface FrameworkDeploymentReferenceOrBuilder * * *
                                    -   * Optional. The reference to the Framework that this deployment is for.
                                    -   * Example: {
                                    +   * Optional. The reference to the framework that this deployment is for.
                                    +   * For example:
                                    +   *
                                    +   * ```
                                    +   * {
                                        *   framework:
                                        *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                        *   major_revision_id: 1
                                        * }
                                    +   * ```
                                    +   *
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -100,12 +114,18 @@ public interface FrameworkDeploymentReferenceOrBuilder * * *
                                    -   * Optional. The reference to the Framework that this deployment is for.
                                    -   * Example: {
                                    +   * Optional. The reference to the framework that this deployment is for.
                                    +   * For example:
                                    +   *
                                    +   * ```
                                    +   * {
                                        *   framework:
                                        *   "organizations/{org}/locations/{location}/frameworks/{framework}",
                                        *   major_revision_id: 1
                                        * }
                                    +   * ```
                                    +   *
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -119,7 +139,7 @@ public interface FrameworkDeploymentReferenceOrBuilder * * *
                                    -   * Optional. The display name of the Framework that this FrameworkDeployment
                                    +   * Optional. The display name of the framework that this framework deployment
                                        * is for.
                                        * 
                                    * @@ -133,7 +153,7 @@ public interface FrameworkDeploymentReferenceOrBuilder * * *
                                    -   * Optional. The display name of the Framework that this FrameworkDeployment
                                    +   * Optional. The display name of the framework that this framework deployment
                                        * is for.
                                        * 
                                    * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkOrBuilder.java index a18c929a2545..d032a95227bb 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkOrBuilder.java @@ -28,9 +28,9 @@ public interface FrameworkOrBuilder * * *
                                    -   * Required. Identifier. The name of the framework.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +   * Required. Identifier. The name of the framework, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -45,9 +45,9 @@ public interface FrameworkOrBuilder * * *
                                    -   * Required. Identifier. The name of the framework.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +   * Required. Identifier. The name of the framework, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -62,8 +62,8 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. Major revision of the framework incremented in ascending
                                    -   * order.
                                    +   * Output only. The major version of the framework, which is incremented in
                                    +   * ascending order.
                                        * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -76,7 +76,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Optional. Display name of the framework. The maximum length is 200
                                    +   * Optional. The friendly name of the framework. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -90,7 +90,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Optional. Display name of the framework. The maximum length is 200
                                    +   * Optional. The friendly name of the framework. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -132,7 +132,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. The type of the framework. The default is TYPE_CUSTOM.
                                    +   * Output only. The type of framework.
                                        * 
                                    * * @@ -147,7 +147,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. The type of the framework. The default is TYPE_CUSTOM.
                                    +   * Output only. The type of framework.
                                        * 
                                    * * @@ -162,7 +162,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -177,7 +177,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -191,7 +191,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -205,7 +205,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -220,7 +220,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Optional. The details of the cloud controls directly added without any
                                    +   * Optional. The cloud control details that are directly added without any
                                        * grouping in the framework.
                                        * 
                                    * @@ -312,7 +312,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -328,7 +328,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -343,7 +343,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -359,7 +359,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -374,7 +374,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. cloud providers supported
                                    +   * Output only. The cloud providers that are supported by the framework.
                                        * 
                                    * * @@ -390,7 +390,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * @@ -406,7 +406,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * @@ -421,7 +421,7 @@ public interface FrameworkOrBuilder * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * @@ -438,7 +438,7 @@ com.google.cloud.cloudsecuritycompliance.v1.TargetResourceType getSupportedTarge * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * @@ -453,7 +453,7 @@ com.google.cloud.cloudsecuritycompliance.v1.TargetResourceType getSupportedTarge * * *
                                    -   * Output only. target resource types supported by the Framework.
                                    +   * Output only. The target resource types that are supported by the framework.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReference.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReference.java index 9b7e635533e1..c0f7d36a5ffb 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReference.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReference.java @@ -23,7 +23,9 @@ * * *
                                    - * FrameworkReference contains the reference of a framework.
                                    + * The reference of a framework, in the format
                                    + * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    + * The only supported location is `global`.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkReference} @@ -74,8 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. In the format:
                                    -   * organizations/{org}/locations/{location}/frameworks/{framework}
                                    +   * Required. The major version of the framework. If not specified, the version
                                    +   * corresponds to the latest version of the framework.
                                        * 
                                    * * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -99,8 +101,8 @@ public java.lang.String getFramework() { * * *
                                    -   * Required. In the format:
                                    -   * organizations/{org}/locations/{location}/frameworks/{framework}
                                    +   * Required. The major version of the framework. If not specified, the version
                                    +   * corresponds to the latest version of the framework.
                                        * 
                                    * * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -127,8 +129,8 @@ public com.google.protobuf.ByteString getFrameworkBytes() { * * *
                                    -   * Optional. Major revision id of the framework. If not specified, corresponds
                                    -   * to the latest revision of the framework.
                                    +   * Optional. The major version of the framework. If not specified, the version
                                    +   * corresponds to the latest version of the framework.
                                        * 
                                    * * optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -144,8 +146,8 @@ public boolean hasMajorRevisionId() { * * *
                                    -   * Optional. Major revision id of the framework. If not specified, corresponds
                                    -   * to the latest revision of the framework.
                                    +   * Optional. The major version of the framework. If not specified, the version
                                    +   * corresponds to the latest version of the framework.
                                        * 
                                    * * optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -336,7 +338,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * FrameworkReference contains the reference of a framework.
                                    +   * The reference of a framework, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.FrameworkReference} @@ -540,8 +544,8 @@ public Builder mergeFrom( * * *
                                    -     * Required. In the format:
                                    -     * organizations/{org}/locations/{location}/frameworks/{framework}
                                    +     * Required. The major version of the framework. If not specified, the version
                                    +     * corresponds to the latest version of the framework.
                                          * 
                                    * * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -564,8 +568,8 @@ public java.lang.String getFramework() { * * *
                                    -     * Required. In the format:
                                    -     * organizations/{org}/locations/{location}/frameworks/{framework}
                                    +     * Required. The major version of the framework. If not specified, the version
                                    +     * corresponds to the latest version of the framework.
                                          * 
                                    * * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -588,8 +592,8 @@ public com.google.protobuf.ByteString getFrameworkBytes() { * * *
                                    -     * Required. In the format:
                                    -     * organizations/{org}/locations/{location}/frameworks/{framework}
                                    +     * Required. The major version of the framework. If not specified, the version
                                    +     * corresponds to the latest version of the framework.
                                          * 
                                    * * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -611,8 +615,8 @@ public Builder setFramework(java.lang.String value) { * * *
                                    -     * Required. In the format:
                                    -     * organizations/{org}/locations/{location}/frameworks/{framework}
                                    +     * Required. The major version of the framework. If not specified, the version
                                    +     * corresponds to the latest version of the framework.
                                          * 
                                    * * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -630,8 +634,8 @@ public Builder clearFramework() { * * *
                                    -     * Required. In the format:
                                    -     * organizations/{org}/locations/{location}/frameworks/{framework}
                                    +     * Required. The major version of the framework. If not specified, the version
                                    +     * corresponds to the latest version of the framework.
                                          * 
                                    * * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -656,8 +660,8 @@ public Builder setFrameworkBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. Major revision id of the framework. If not specified, corresponds
                                    -     * to the latest revision of the framework.
                                    +     * Optional. The major version of the framework. If not specified, the version
                                    +     * corresponds to the latest version of the framework.
                                          * 
                                    * * optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -673,8 +677,8 @@ public boolean hasMajorRevisionId() { * * *
                                    -     * Optional. Major revision id of the framework. If not specified, corresponds
                                    -     * to the latest revision of the framework.
                                    +     * Optional. The major version of the framework. If not specified, the version
                                    +     * corresponds to the latest version of the framework.
                                          * 
                                    * * optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -690,8 +694,8 @@ public long getMajorRevisionId() { * * *
                                    -     * Optional. Major revision id of the framework. If not specified, corresponds
                                    -     * to the latest revision of the framework.
                                    +     * Optional. The major version of the framework. If not specified, the version
                                    +     * corresponds to the latest version of the framework.
                                          * 
                                    * * optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -711,8 +715,8 @@ public Builder setMajorRevisionId(long value) { * * *
                                    -     * Optional. Major revision id of the framework. If not specified, corresponds
                                    -     * to the latest revision of the framework.
                                    +     * Optional. The major version of the framework. If not specified, the version
                                    +     * corresponds to the latest version of the framework.
                                          * 
                                    * * optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReferenceOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReferenceOrBuilder.java index f5d4a1320199..dd9581da9514 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReferenceOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReferenceOrBuilder.java @@ -28,8 +28,8 @@ public interface FrameworkReferenceOrBuilder * * *
                                    -   * Required. In the format:
                                    -   * organizations/{org}/locations/{location}/frameworks/{framework}
                                    +   * Required. The major version of the framework. If not specified, the version
                                    +   * corresponds to the latest version of the framework.
                                        * 
                                    * * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -42,8 +42,8 @@ public interface FrameworkReferenceOrBuilder * * *
                                    -   * Required. In the format:
                                    -   * organizations/{org}/locations/{location}/frameworks/{framework}
                                    +   * Required. The major version of the framework. If not specified, the version
                                    +   * corresponds to the latest version of the framework.
                                        * 
                                    * * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -56,8 +56,8 @@ public interface FrameworkReferenceOrBuilder * * *
                                    -   * Optional. Major revision id of the framework. If not specified, corresponds
                                    -   * to the latest revision of the framework.
                                    +   * Optional. The major version of the framework. If not specified, the version
                                    +   * corresponds to the latest version of the framework.
                                        * 
                                    * * optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -70,8 +70,8 @@ public interface FrameworkReferenceOrBuilder * * *
                                    -   * Optional. Major revision id of the framework. If not specified, corresponds
                                    -   * to the latest revision of the framework.
                                    +   * Optional. The major version of the framework. If not specified, the version
                                    +   * corresponds to the latest version of the framework.
                                        * 
                                    * * optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportRequest.java new file mode 100644 index 000000000000..07ddc2129237 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportRequest.java @@ -0,0 +1,1235 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [GenerateFrameworkAuditScopeReport][].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest} + */ +public final class GenerateFrameworkAuditScopeReportRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest) + GenerateFrameworkAuditScopeReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerateFrameworkAuditScopeReportRequest.newBuilder() to construct. + private GenerateFrameworkAuditScopeReportRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateFrameworkAuditScopeReportRequest() { + scope_ = ""; + reportFormat_ = 0; + complianceFramework_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateFrameworkAuditScopeReportRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .class, + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .Builder.class); + } + + /** + * + * + *
                                    +   * The set of options for the audit scope report format.
                                    +   * 
                                    + * + * Protobuf enum {@code + * google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format} + */ + public enum Format implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +     * Default value. This value is unused.
                                    +     * 
                                    + * + * FORMAT_UNSPECIFIED = 0; + */ + FORMAT_UNSPECIFIED(0), + /** + * + * + *
                                    +     * The report format is the Open Document Format (ODF).
                                    +     * 
                                    + * + * ODF = 1; + */ + ODF(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +     * Default value. This value is unused.
                                    +     * 
                                    + * + * FORMAT_UNSPECIFIED = 0; + */ + public static final int FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +     * The report format is the Open Document Format (ODF).
                                    +     * 
                                    + * + * ODF = 1; + */ + public static final int ODF_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 Format 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 Format forNumber(int value) { + switch (value) { + case 0: + return FORMAT_UNSPECIFIED; + case 1: + return ODF; + 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 Format findValueByNumber(int number) { + return Format.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Format[] VALUES = values(); + + public static Format 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 Format(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format) + } + + public static final int SCOPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; + + /** + * + * + *
                                    +   * Required. The organization, folder or project for the audit report.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * 
                                    + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + 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(); + scope_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Required. The organization, folder or project for the audit report.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * 
                                    + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPORT_FORMAT_FIELD_NUMBER = 2; + private int reportFormat_ = 0; + + /** + * + * + *
                                    +   * Required. The format that the scope report bytes is returned in.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for reportFormat. + */ + @java.lang.Override + public int getReportFormatValue() { + return reportFormat_; + } + + /** + * + * + *
                                    +   * Required. The format that the scope report bytes is returned in.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportFormat. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format + getReportFormat() { + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format + result = + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .Format.forNumber(reportFormat_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .Format.UNRECOGNIZED + : result; + } + + public static final int COMPLIANCE_FRAMEWORK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object complianceFramework_ = ""; + + /** + * + * + *
                                    +   * Required. The compliance framework that the scope report is generated for.
                                    +   * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The complianceFramework. + */ + @java.lang.Override + public java.lang.String getComplianceFramework() { + java.lang.Object ref = complianceFramework_; + 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(); + complianceFramework_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Required. The compliance framework that the scope report is generated for.
                                    +   * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for complianceFramework. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComplianceFrameworkBytes() { + java.lang.Object ref = complianceFramework_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + complianceFramework_ = 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.GeneratedMessageV3.isStringEmpty(scope_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); + } + if (reportFormat_ + != com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .Format.FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, reportFormat_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(complianceFramework_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, complianceFramework_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scope_); + } + if (reportFormat_ + != com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .Format.FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reportFormat_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(complianceFramework_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, complianceFramework_); + } + 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.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest) obj; + + if (!getScope().equals(other.getScope())) return false; + if (reportFormat_ != other.reportFormat_) return false; + if (!getComplianceFramework().equals(other.getComplianceFramework())) 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) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + hash = (37 * hash) + REPORT_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + reportFormat_; + hash = (37 * hash) + COMPLIANCE_FRAMEWORK_FIELD_NUMBER; + hash = (53 * hash) + getComplianceFramework().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + 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.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + 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.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [GenerateFrameworkAuditScopeReport][].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest) + com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .class, + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = ""; + reportFormat_ = 0; + complianceFramework_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + build() { + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reportFormat_ = reportFormat_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.complianceFramework_ = complianceFramework_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .getDefaultInstance()) return this; + if (!other.getScope().isEmpty()) { + scope_ = other.scope_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.reportFormat_ != 0) { + setReportFormatValue(other.getReportFormatValue()); + } + if (!other.getComplianceFramework().isEmpty()) { + complianceFramework_ = other.complianceFramework_; + 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: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + reportFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + complianceFramework_ = 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 scope_ = ""; + + /** + * + * + *
                                    +     * Required. The organization, folder or project for the audit report.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * 
                                    + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Required. The organization, folder or project for the audit report.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * 
                                    + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Required. The organization, folder or project for the audit report.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * 
                                    + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The organization, folder or project for the audit report.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * 
                                    + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The organization, folder or project for the audit report.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * 
                                    + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int reportFormat_ = 0; + + /** + * + * + *
                                    +     * Required. The format that the scope report bytes is returned in.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for reportFormat. + */ + @java.lang.Override + public int getReportFormatValue() { + return reportFormat_; + } + + /** + * + * + *
                                    +     * Required. The format that the scope report bytes is returned in.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for reportFormat to set. + * @return This builder for chaining. + */ + public Builder setReportFormatValue(int value) { + reportFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The format that the scope report bytes is returned in.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportFormat. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .Format + getReportFormat() { + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format + result = + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .Format.forNumber(reportFormat_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + .Format.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Required. The format that the scope report bytes is returned in.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The reportFormat to set. + * @return This builder for chaining. + */ + public Builder setReportFormat( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The format that the scope report bytes is returned in.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearReportFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + reportFormat_ = 0; + onChanged(); + return this; + } + + private java.lang.Object complianceFramework_ = ""; + + /** + * + * + *
                                    +     * Required. The compliance framework that the scope report is generated for.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The complianceFramework. + */ + public java.lang.String getComplianceFramework() { + java.lang.Object ref = complianceFramework_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + complianceFramework_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Required. The compliance framework that the scope report is generated for.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for complianceFramework. + */ + public com.google.protobuf.ByteString getComplianceFrameworkBytes() { + java.lang.Object ref = complianceFramework_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + complianceFramework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Required. The compliance framework that the scope report is generated for.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The complianceFramework to set. + * @return This builder for chaining. + */ + public Builder setComplianceFramework(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + complianceFramework_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The compliance framework that the scope report is generated for.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearComplianceFramework() { + complianceFramework_ = getDefaultInstance().getComplianceFramework(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The compliance framework that the scope report is generated for.
                                    +     * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for complianceFramework to set. + * @return This builder for chaining. + */ + public Builder setComplianceFrameworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + complianceFramework_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateFrameworkAuditScopeReportRequest 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.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportRequestOrBuilder.java new file mode 100644 index 000000000000..e28bd97f85ec --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportRequestOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface GenerateFrameworkAuditScopeReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The organization, folder or project for the audit report.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * 
                                    + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + java.lang.String getScope(); + + /** + * + * + *
                                    +   * Required. The organization, folder or project for the audit report.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * 
                                    + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scope. + */ + com.google.protobuf.ByteString getScopeBytes(); + + /** + * + * + *
                                    +   * Required. The format that the scope report bytes is returned in.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for reportFormat. + */ + int getReportFormatValue(); + + /** + * + * + *
                                    +   * Required. The format that the scope report bytes is returned in.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format report_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportFormat. + */ + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format + getReportFormat(); + + /** + * + * + *
                                    +   * Required. The compliance framework that the scope report is generated for.
                                    +   * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The complianceFramework. + */ + java.lang.String getComplianceFramework(); + + /** + * + * + *
                                    +   * Required. The compliance framework that the scope report is generated for.
                                    +   * 
                                    + * + * string compliance_framework = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for complianceFramework. + */ + com.google.protobuf.ByteString getComplianceFrameworkBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportResponse.java new file mode 100644 index 000000000000..f1cdaedfbda8 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportResponse.java @@ -0,0 +1,1116 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The response message for [GenerateFrameworkAuditScopeReport][].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse} + */ +public final class GenerateFrameworkAuditScopeReportResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse) + GenerateFrameworkAuditScopeReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerateFrameworkAuditScopeReportResponse.newBuilder() to construct. + private GenerateFrameworkAuditScopeReportResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateFrameworkAuditScopeReportResponse() { + name_ = ""; + complianceFramework_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateFrameworkAuditScopeReportResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + .Builder.class); + } + + private int auditReportCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object auditReport_; + + public enum AuditReportCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SCOPE_REPORT_CONTENTS(3), + AUDITREPORT_NOT_SET(0); + private final int value; + + private AuditReportCase(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 AuditReportCase valueOf(int value) { + return forNumber(value); + } + + public static AuditReportCase forNumber(int value) { + switch (value) { + case 3: + return SCOPE_REPORT_CONTENTS; + case 0: + return AUDITREPORT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuditReportCase getAuditReportCase() { + return AuditReportCase.forNumber(auditReportCase_); + } + + public static final int SCOPE_REPORT_CONTENTS_FIELD_NUMBER = 3; + + /** + * + * + *
                                    +   * The audit scope report content in byte format.
                                    +   * 
                                    + * + * bytes scope_report_contents = 3; + * + * @return Whether the scopeReportContents field is set. + */ + @java.lang.Override + public boolean hasScopeReportContents() { + return auditReportCase_ == 3; + } + + /** + * + * + *
                                    +   * The audit scope report content in byte format.
                                    +   * 
                                    + * + * bytes scope_report_contents = 3; + * + * @return The scopeReportContents. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeReportContents() { + if (auditReportCase_ == 3) { + return (com.google.protobuf.ByteString) auditReport_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Identifier. The name of the audit report, in the format that was
                                    +   * given in the request.
                                    +   * 
                                    + * + * 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. The name of the audit report, in the format that was
                                    +   * given in the request.
                                    +   * 
                                    + * + * 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 COMPLIANCE_FRAMEWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object complianceFramework_ = ""; + + /** + * + * + *
                                    +   * Required. The compliance framework that the audit scope report is generated
                                    +   * for.
                                    +   * 
                                    + * + * string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The complianceFramework. + */ + @java.lang.Override + public java.lang.String getComplianceFramework() { + java.lang.Object ref = complianceFramework_; + 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(); + complianceFramework_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Required. The compliance framework that the audit scope report is generated
                                    +   * for.
                                    +   * 
                                    + * + * string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for complianceFramework. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComplianceFrameworkBytes() { + java.lang.Object ref = complianceFramework_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + complianceFramework_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(complianceFramework_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, complianceFramework_); + } + if (auditReportCase_ == 3) { + output.writeBytes(3, (com.google.protobuf.ByteString) auditReport_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(complianceFramework_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, complianceFramework_); + } + if (auditReportCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 3, (com.google.protobuf.ByteString) auditReport_); + } + 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.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse other = + (com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse) obj; + + if (!getName().equals(other.getName())) return false; + if (!getComplianceFramework().equals(other.getComplianceFramework())) return false; + if (!getAuditReportCase().equals(other.getAuditReportCase())) return false; + switch (auditReportCase_) { + case 3: + if (!getScopeReportContents().equals(other.getScopeReportContents())) 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(); + hash = (37 * hash) + COMPLIANCE_FRAMEWORK_FIELD_NUMBER; + hash = (53 * hash) + getComplianceFramework().hashCode(); + switch (auditReportCase_) { + case 3: + hash = (37 * hash) + SCOPE_REPORT_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getScopeReportContents().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + 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.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + 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.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The response message for [GenerateFrameworkAuditScopeReport][].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse) + com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + complianceFramework_ = ""; + auditReportCase_ = 0; + auditReport_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GenerateFrameworkAuditScopeReportResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + build() { + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse result = + new com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.complianceFramework_ = complianceFramework_; + } + } + + private void buildPartialOneofs( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + result) { + result.auditReportCase_ = auditReportCase_; + result.auditReport_ = this.auditReport_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getComplianceFramework().isEmpty()) { + complianceFramework_ = other.complianceFramework_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getAuditReportCase()) { + case SCOPE_REPORT_CONTENTS: + { + setScopeReportContents(other.getScopeReportContents()); + break; + } + case AUDITREPORT_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_ |= 0x00000002; + break; + } // case 10 + case 18: + { + complianceFramework_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + auditReport_ = input.readBytes(); + auditReportCase_ = 3; + 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 auditReportCase_ = 0; + private java.lang.Object auditReport_; + + public AuditReportCase getAuditReportCase() { + return AuditReportCase.forNumber(auditReportCase_); + } + + public Builder clearAuditReport() { + auditReportCase_ = 0; + auditReport_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                    +     * The audit scope report content in byte format.
                                    +     * 
                                    + * + * bytes scope_report_contents = 3; + * + * @return Whether the scopeReportContents field is set. + */ + public boolean hasScopeReportContents() { + return auditReportCase_ == 3; + } + + /** + * + * + *
                                    +     * The audit scope report content in byte format.
                                    +     * 
                                    + * + * bytes scope_report_contents = 3; + * + * @return The scopeReportContents. + */ + public com.google.protobuf.ByteString getScopeReportContents() { + if (auditReportCase_ == 3) { + return (com.google.protobuf.ByteString) auditReport_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
                                    +     * The audit scope report content in byte format.
                                    +     * 
                                    + * + * bytes scope_report_contents = 3; + * + * @param value The scopeReportContents to set. + * @return This builder for chaining. + */ + public Builder setScopeReportContents(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + auditReportCase_ = 3; + auditReport_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The audit scope report content in byte format.
                                    +     * 
                                    + * + * bytes scope_report_contents = 3; + * + * @return This builder for chaining. + */ + public Builder clearScopeReportContents() { + if (auditReportCase_ == 3) { + auditReportCase_ = 0; + auditReport_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                    +     * Identifier. The name of the audit report, in the format that was
                                    +     * given in the request.
                                    +     * 
                                    + * + * 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. The name of the audit report, in the format that was
                                    +     * given in the request.
                                    +     * 
                                    + * + * 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. The name of the audit report, in the format that was
                                    +     * given in the request.
                                    +     * 
                                    + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the audit report, in the format that was
                                    +     * given in the request.
                                    +     * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Identifier. The name of the audit report, in the format that was
                                    +     * given in the request.
                                    +     * 
                                    + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object complianceFramework_ = ""; + + /** + * + * + *
                                    +     * Required. The compliance framework that the audit scope report is generated
                                    +     * for.
                                    +     * 
                                    + * + * string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The complianceFramework. + */ + public java.lang.String getComplianceFramework() { + java.lang.Object ref = complianceFramework_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + complianceFramework_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Required. The compliance framework that the audit scope report is generated
                                    +     * for.
                                    +     * 
                                    + * + * string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for complianceFramework. + */ + public com.google.protobuf.ByteString getComplianceFrameworkBytes() { + java.lang.Object ref = complianceFramework_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + complianceFramework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Required. The compliance framework that the audit scope report is generated
                                    +     * for.
                                    +     * 
                                    + * + * string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The complianceFramework to set. + * @return This builder for chaining. + */ + public Builder setComplianceFramework(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + complianceFramework_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The compliance framework that the audit scope report is generated
                                    +     * for.
                                    +     * 
                                    + * + * string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearComplianceFramework() { + complianceFramework_ = getDefaultInstance().getComplianceFramework(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The compliance framework that the audit scope report is generated
                                    +     * for.
                                    +     * 
                                    + * + * string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for complianceFramework to set. + * @return This builder for chaining. + */ + public Builder setComplianceFrameworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + complianceFramework_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1 + .GenerateFrameworkAuditScopeReportResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateFrameworkAuditScopeReportResponse 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.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportResponseOrBuilder.java new file mode 100644 index 000000000000..9e28bb9ec187 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GenerateFrameworkAuditScopeReportResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface GenerateFrameworkAuditScopeReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The audit scope report content in byte format.
                                    +   * 
                                    + * + * bytes scope_report_contents = 3; + * + * @return Whether the scopeReportContents field is set. + */ + boolean hasScopeReportContents(); + + /** + * + * + *
                                    +   * The audit scope report content in byte format.
                                    +   * 
                                    + * + * bytes scope_report_contents = 3; + * + * @return The scopeReportContents. + */ + com.google.protobuf.ByteString getScopeReportContents(); + + /** + * + * + *
                                    +   * Identifier. The name of the audit report, in the format that was
                                    +   * given in the request.
                                    +   * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Identifier. The name of the audit report, in the format that was
                                    +   * given in the request.
                                    +   * 
                                    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                    +   * Required. The compliance framework that the audit scope report is generated
                                    +   * for.
                                    +   * 
                                    + * + * string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The complianceFramework. + */ + java.lang.String getComplianceFramework(); + + /** + * + * + *
                                    +   * Required. The compliance framework that the audit scope report is generated
                                    +   * for.
                                    +   * 
                                    + * + * string compliance_framework = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for complianceFramework. + */ + com.google.protobuf.ByteString getComplianceFrameworkBytes(); + + com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse + .AuditReportCase + getAuditReportCase(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequest.java index 6b58067e5089..8a18e6142f2d 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for GetCloudControlDeployment.
                                    + * The request message for [GetCloudControlDeployment][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest} @@ -75,8 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. CloudControlDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Required. The name for the cloud control deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -102,8 +103,9 @@ public java.lang.String getName() { * * *
                                    -   * Required. CloudControlDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Required. The name for the cloud control deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -297,7 +299,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for GetCloudControlDeployment.
                                    +   * The request message for [GetCloudControlDeployment][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest} @@ -493,8 +495,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Required. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -519,8 +522,9 @@ public java.lang.String getName() { * * *
                                    -     * Required. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Required. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -545,8 +549,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Required. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -570,8 +575,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Required. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -591,8 +597,9 @@ public Builder clearName() { * * *
                                    -     * Required. CloudControlDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +     * Required. The name for the cloud control deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequestOrBuilder.java index 7793e1df5835..6e56f9b44f28 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequestOrBuilder.java @@ -28,8 +28,9 @@ public interface GetCloudControlDeploymentRequestOrBuilder * * *
                                    -   * Required. CloudControlDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Required. The name for the cloud control deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -44,8 +45,9 @@ public interface GetCloudControlDeploymentRequestOrBuilder * * *
                                    -   * Required. CloudControlDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}
                                    +   * Required. The name for the cloud control deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequest.java index 616c58ce1f08..06a9fd728d5d 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for getting a CloudControl.
                                    + * The request message for [GetCloudControl][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest} @@ -73,8 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. The name of the cloudcontrol to retrieve in the format:
                                    -   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
                                    +   * Required. The name of the cloud control to retrieve, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -100,8 +101,9 @@ public java.lang.String getName() { * * *
                                    -   * Required. The name of the cloudcontrol to retrieve in the format:
                                    -   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
                                    +   * Required. The name of the cloud control to retrieve, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -123,6 +125,26 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int MAJOR_REVISION_ID_FIELD_NUMBER = 2; + private long majorRevisionId_ = 0L; + + /** + * + * + *
                                    +   * Optional. The major version of the cloud control to retrieve. If not
                                    +   * specified, the most recently updated `revision_id` is retrieved.
                                    +   * 
                                    + * + * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -140,6 +162,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (majorRevisionId_ != 0L) { + output.writeInt64(2, majorRevisionId_); + } getUnknownFields().writeTo(output); } @@ -152,6 +177,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (majorRevisionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, majorRevisionId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -169,6 +197,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest) obj; if (!getName().equals(other.getName())) return false; + if (getMajorRevisionId() != other.getMajorRevisionId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,6 +211,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MAJOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMajorRevisionId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -289,7 +320,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for getting a CloudControl.
                                    +   * The request message for [GetCloudControl][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest} @@ -326,6 +357,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + majorRevisionId_ = 0L; return this; } @@ -368,6 +400,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.majorRevisionId_ = majorRevisionId_; + } } @java.lang.Override @@ -424,6 +459,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (other.getMajorRevisionId() != 0L) { + setMajorRevisionId(other.getMajorRevisionId()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -456,6 +494,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + majorRevisionId_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -481,8 +525,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. The name of the cloudcontrol to retrieve in the format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
                                    +     * Required. The name of the cloud control to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -507,8 +552,9 @@ public java.lang.String getName() { * * *
                                    -     * Required. The name of the cloudcontrol to retrieve in the format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
                                    +     * Required. The name of the cloud control to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -533,8 +579,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. The name of the cloudcontrol to retrieve in the format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
                                    +     * Required. The name of the cloud control to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -558,8 +605,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. The name of the cloudcontrol to retrieve in the format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
                                    +     * Required. The name of the cloud control to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -579,8 +627,9 @@ public Builder clearName() { * * *
                                    -     * Required. The name of the cloudcontrol to retrieve in the format:
                                    -     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
                                    +     * Required. The name of the cloud control to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -601,6 +650,65 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private long majorRevisionId_; + + /** + * + * + *
                                    +     * Optional. The major version of the cloud control to retrieve. If not
                                    +     * specified, the most recently updated `revision_id` is retrieved.
                                    +     * 
                                    + * + * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + + /** + * + * + *
                                    +     * Optional. The major version of the cloud control to retrieve. If not
                                    +     * specified, the most recently updated `revision_id` is retrieved.
                                    +     * 
                                    + * + * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The majorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMajorRevisionId(long value) { + + majorRevisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The major version of the cloud control to retrieve. If not
                                    +     * specified, the most recently updated `revision_id` is retrieved.
                                    +     * 
                                    + * + * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMajorRevisionId() { + bitField0_ = (bitField0_ & ~0x00000002); + majorRevisionId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequestOrBuilder.java index 64fee26e43aa..d519adbd230e 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequestOrBuilder.java @@ -28,8 +28,9 @@ public interface GetCloudControlRequestOrBuilder * * *
                                    -   * Required. The name of the cloudcontrol to retrieve in the format:
                                    -   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
                                    +   * Required. The name of the cloud control to retrieve, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -44,8 +45,9 @@ public interface GetCloudControlRequestOrBuilder * * *
                                    -   * Required. The name of the cloudcontrol to retrieve in the format:
                                    -   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
                                    +   * Required. The name of the cloud control to retrieve, in the format
                                    +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -55,4 +57,18 @@ public interface GetCloudControlRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                    +   * Optional. The major version of the cloud control to retrieve. If not
                                    +   * specified, the most recently updated `revision_id` is retrieved.
                                    +   * 
                                    + * + * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The majorRevisionId. + */ + long getMajorRevisionId(); } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkAuditRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkAuditRequest.java new file mode 100644 index 000000000000..043b3e3b572a --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkAuditRequest.java @@ -0,0 +1,702 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [GetFrameworkAudit][].
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest} + */ +public final class GetFrameworkAuditRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest) + GetFrameworkAuditRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetFrameworkAuditRequest.newBuilder() to construct. + private GetFrameworkAuditRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetFrameworkAuditRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetFrameworkAuditRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                    +   * Required. The name of the framework audit to retrieve.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * 
                                    + * + * + * 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. The name of the framework audit to retrieve.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * 
                                    + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.cloudsecuritycompliance.v1.GetFrameworkAuditRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest) 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.cloudsecuritycompliance.v1.GetFrameworkAuditRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest 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.cloudsecuritycompliance.v1.GetFrameworkAuditRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest 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.cloudsecuritycompliance.v1.GetFrameworkAuditRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [GetFrameworkAudit][].
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest) + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_GetFrameworkAuditRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest build() { + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + .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. The name of the framework audit to retrieve.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * 
                                    + * + * + * 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. The name of the framework audit to retrieve.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * 
                                    + * + * + * 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. The name of the framework audit to retrieve.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * 
                                    + * + * + * 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. The name of the framework audit to retrieve.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * 
                                    + * + * + * 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. The name of the framework audit to retrieve.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +     * 
                                    + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFrameworkAuditRequest 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.cloudsecuritycompliance.v1.GetFrameworkAuditRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkAuditRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkAuditRequestOrBuilder.java new file mode 100644 index 000000000000..585342dbf77c --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkAuditRequestOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface GetFrameworkAuditRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The name of the framework audit to retrieve.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * 
                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                    +   * Required. The name of the framework audit to retrieve.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
                                    +   * 
                                    + * + * + * 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-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequest.java index e4684130c1b0..54d3ddd75d60 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for GetFrameworkDeployment.
                                    + * The request message for [GetFrameworkDeployment][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest} @@ -74,8 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. FrameworkDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Required. The name of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -101,8 +102,9 @@ public java.lang.String getName() { * * *
                                    -   * Required. FrameworkDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Required. The name of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -291,7 +293,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for GetFrameworkDeployment.
                                    +   * The request message for [GetFrameworkDeployment][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest} @@ -487,8 +489,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -513,8 +516,9 @@ public java.lang.String getName() { * * *
                                    -     * Required. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -539,8 +543,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -564,8 +569,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -585,8 +591,9 @@ public Builder clearName() { * * *
                                    -     * Required. FrameworkDeployment name in the following format:
                                    -     * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +     * Required. The name of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequestOrBuilder.java index 454de123edf6..39feeace7426 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequestOrBuilder.java @@ -28,8 +28,9 @@ public interface GetFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Required. FrameworkDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Required. The name of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -44,8 +45,9 @@ public interface GetFrameworkDeploymentRequestOrBuilder * * *
                                    -   * Required. FrameworkDeployment name in the following format:
                                    -   * organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}
                                    +   * Required. The name of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequest.java index b8e4bfbda077..b1e049e49d88 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for getting a Framework.
                                    + * The request message for [GetFramework][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest} @@ -73,9 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. The name of the framework to retrieve.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +   * Required. The name of the framework to retrieve, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -101,9 +101,9 @@ public java.lang.String getName() { * * *
                                    -   * Required. The name of the framework to retrieve.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +   * Required. The name of the framework to retrieve, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -132,8 +132,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -   * Optional. The Framework major version to retrieve. If not specified, the
                                    -   * most recently updated revision_id is retrieved.
                                    +   * Optional. The framework major version to retrieve. If not specified, the
                                    +   * most recently updated `revision_id` is retrieved.
                                        * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -319,7 +319,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for getting a Framework.
                                    +   * The request message for [GetFramework][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest} @@ -521,9 +521,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. The name of the framework to retrieve.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. The name of the framework to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -548,9 +548,9 @@ public java.lang.String getName() { * * *
                                    -     * Required. The name of the framework to retrieve.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. The name of the framework to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -575,9 +575,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. The name of the framework to retrieve.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. The name of the framework to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -601,9 +601,9 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. The name of the framework to retrieve.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. The name of the framework to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -623,9 +623,9 @@ public Builder clearName() { * * *
                                    -     * Required. The name of the framework to retrieve.
                                    -     * Format:
                                    -     * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +     * Required. The name of the framework to retrieve, in the format
                                    +     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -652,8 +652,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. The Framework major version to retrieve. If not specified, the
                                    -     * most recently updated revision_id is retrieved.
                                    +     * Optional. The framework major version to retrieve. If not specified, the
                                    +     * most recently updated `revision_id` is retrieved.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -669,8 +669,8 @@ public long getMajorRevisionId() { * * *
                                    -     * Optional. The Framework major version to retrieve. If not specified, the
                                    -     * most recently updated revision_id is retrieved.
                                    +     * Optional. The framework major version to retrieve. If not specified, the
                                    +     * most recently updated `revision_id` is retrieved.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -690,8 +690,8 @@ public Builder setMajorRevisionId(long value) { * * *
                                    -     * Optional. The Framework major version to retrieve. If not specified, the
                                    -     * most recently updated revision_id is retrieved.
                                    +     * Optional. The framework major version to retrieve. If not specified, the
                                    +     * most recently updated `revision_id` is retrieved.
                                          * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequestOrBuilder.java index 46bea5e25d72..e838a422b5ea 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequestOrBuilder.java @@ -28,9 +28,9 @@ public interface GetFrameworkRequestOrBuilder * * *
                                    -   * Required. The name of the framework to retrieve.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +   * Required. The name of the framework to retrieve, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -45,9 +45,9 @@ public interface GetFrameworkRequestOrBuilder * * *
                                    -   * Required. The name of the framework to retrieve.
                                    -   * Format:
                                    -   * organizations/{organization}/locations/{location}/frameworks/{framework_id}
                                    +   * Required. The name of the framework to retrieve, in the format
                                    +   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -62,8 +62,8 @@ public interface GetFrameworkRequestOrBuilder * * *
                                    -   * Optional. The Framework major version to retrieve. If not specified, the
                                    -   * most recently updated revision_id is retrieved.
                                    +   * Optional. The framework major version to retrieve. If not specified, the
                                    +   * most recently updated `revision_id` is retrieved.
                                        * 
                                    * * int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/IntRange.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/IntRange.java index e2c83b3cbf5a..a38ab7206888 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/IntRange.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/IntRange.java @@ -23,7 +23,7 @@ * * *
                                    - * Number range for number parameters.
                                    + * The number range for number parameters.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.IntRange} @@ -69,7 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. Minimum allowed value for the numeric parameter (inclusive).
                                    +   * Required. The minimum permitted value for the numeric parameter
                                    +   * (inclusive).
                                        * 
                                    * * int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -88,7 +89,8 @@ public long getMin() { * * *
                                    -   * Required. Maximum allowed value for the numeric parameter (inclusive).
                                    +   * Required. The maximum permitted value for the numeric parameter
                                    +   * (inclusive).
                                        * 
                                    * * int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -273,7 +275,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Number range for number parameters.
                                    +   * The number range for number parameters.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.IntRange} @@ -469,7 +471,8 @@ public Builder mergeFrom( * * *
                                    -     * Required. Minimum allowed value for the numeric parameter (inclusive).
                                    +     * Required. The minimum permitted value for the numeric parameter
                                    +     * (inclusive).
                                          * 
                                    * * int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -485,7 +488,8 @@ public long getMin() { * * *
                                    -     * Required. Minimum allowed value for the numeric parameter (inclusive).
                                    +     * Required. The minimum permitted value for the numeric parameter
                                    +     * (inclusive).
                                          * 
                                    * * int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -505,7 +509,8 @@ public Builder setMin(long value) { * * *
                                    -     * Required. Minimum allowed value for the numeric parameter (inclusive).
                                    +     * Required. The minimum permitted value for the numeric parameter
                                    +     * (inclusive).
                                          * 
                                    * * int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -525,7 +530,8 @@ public Builder clearMin() { * * *
                                    -     * Required. Maximum allowed value for the numeric parameter (inclusive).
                                    +     * Required. The maximum permitted value for the numeric parameter
                                    +     * (inclusive).
                                          * 
                                    * * int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -541,7 +547,8 @@ public long getMax() { * * *
                                    -     * Required. Maximum allowed value for the numeric parameter (inclusive).
                                    +     * Required. The maximum permitted value for the numeric parameter
                                    +     * (inclusive).
                                          * 
                                    * * int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -561,7 +568,8 @@ public Builder setMax(long value) { * * *
                                    -     * Required. Maximum allowed value for the numeric parameter (inclusive).
                                    +     * Required. The maximum permitted value for the numeric parameter
                                    +     * (inclusive).
                                          * 
                                    * * int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/IntRangeOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/IntRangeOrBuilder.java index aed99acb4cb3..67198e10f22d 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/IntRangeOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/IntRangeOrBuilder.java @@ -28,7 +28,8 @@ public interface IntRangeOrBuilder * * *
                                    -   * Required. Minimum allowed value for the numeric parameter (inclusive).
                                    +   * Required. The minimum permitted value for the numeric parameter
                                    +   * (inclusive).
                                        * 
                                    * * int64 min = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,7 +42,8 @@ public interface IntRangeOrBuilder * * *
                                    -   * Required. Maximum allowed value for the numeric parameter (inclusive).
                                    +   * Required. The maximum permitted value for the numeric parameter
                                    +   * (inclusive).
                                        * 
                                    * * int64 max = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequest.java index 11cd171d020b..273c25d80ae2 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for ListCloudControlDeployments.
                                    + * The request message for [ListCloudControlDeployments][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest} @@ -78,9 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. parent resource of the CloudControlDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource for the cloud control deployment, in the
                                    +   * format `organizations/{organization}/locations/{location}`. The only
                                    +   * supported location is `global`.
                                        * 
                                    * * @@ -106,9 +106,9 @@ public java.lang.String getParent() { * * *
                                    -   * Required. parent resource of the CloudControlDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource for the cloud control deployment, in the
                                    +   * format `organizations/{organization}/locations/{location}`. The only
                                    +   * supported location is `global`.
                                        * 
                                    * * @@ -137,8 +137,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -   * Optional. Requested page size. Server may return fewer items than
                                    -   * requested. If unspecified, server will pick an appropriate default.
                                    +   * Optional. The requested page size. The server might return fewer items than
                                    +   * you requested.
                                    +   * If unspecified, the server picks an appropriate default.
                                        * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -159,7 +160,8 @@ public int getPageSize() { * * *
                                    -   * Optional. A token identifying a page of results the server should return.
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -183,7 +185,8 @@ public java.lang.String getPageToken() { * * *
                                    -   * Optional. A token identifying a page of results the server should return.
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -212,8 +215,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                    -   * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -   * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +   * Optional. The filter to apply on the resource, as defined by
                                    +   * [AIP-160: Filtering](https://google.aip.dev/160).
                                        * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -237,8 +240,8 @@ public java.lang.String getFilter() { * * *
                                    -   * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -   * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +   * Optional. The filter to apply on the resource, as defined by
                                    +   * [AIP-160: Filtering](https://google.aip.dev/160).
                                        * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -267,7 +270,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                                    -   * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +   * Optional. The sort order for the results. The following values are
                                    +   * supported:
                                    +   *
                                    +   * * `name`
                                    +   * * `name desc`
                                    +   *
                                    +   * If you do not specify a value, then the results are not sorted.
                                        * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -291,7 +300,13 @@ public java.lang.String getOrderBy() { * * *
                                    -   * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +   * Optional. The sort order for the results. The following values are
                                    +   * supported:
                                    +   *
                                    +   * * `name`
                                    +   * * `name desc`
                                    +   *
                                    +   * If you do not specify a value, then the results are not sorted.
                                        * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -520,7 +535,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for ListCloudControlDeployments.
                                    +   * The request message for [ListCloudControlDeployments][].
                                        * 
                                    * * Protobuf type {@code @@ -776,9 +791,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. parent resource of the CloudControlDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource for the cloud control deployment, in the
                                    +     * format `organizations/{organization}/locations/{location}`. The only
                                    +     * supported location is `global`.
                                          * 
                                    * * @@ -803,9 +818,9 @@ public java.lang.String getParent() { * * *
                                    -     * Required. parent resource of the CloudControlDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource for the cloud control deployment, in the
                                    +     * format `organizations/{organization}/locations/{location}`. The only
                                    +     * supported location is `global`.
                                          * 
                                    * * @@ -830,9 +845,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -     * Required. parent resource of the CloudControlDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource for the cloud control deployment, in the
                                    +     * format `organizations/{organization}/locations/{location}`. The only
                                    +     * supported location is `global`.
                                          * 
                                    * * @@ -856,9 +871,9 @@ public Builder setParent(java.lang.String value) { * * *
                                    -     * Required. parent resource of the CloudControlDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource for the cloud control deployment, in the
                                    +     * format `organizations/{organization}/locations/{location}`. The only
                                    +     * supported location is `global`.
                                          * 
                                    * * @@ -878,9 +893,9 @@ public Builder clearParent() { * * *
                                    -     * Required. parent resource of the CloudControlDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource for the cloud control deployment, in the
                                    +     * format `organizations/{organization}/locations/{location}`. The only
                                    +     * supported location is `global`.
                                          * 
                                    * * @@ -907,8 +922,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. Requested page size. Server may return fewer items than
                                    -     * requested. If unspecified, server will pick an appropriate default.
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * you requested.
                                    +     * If unspecified, the server picks an appropriate default.
                                          * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -924,8 +940,9 @@ public int getPageSize() { * * *
                                    -     * Optional. Requested page size. Server may return fewer items than
                                    -     * requested. If unspecified, server will pick an appropriate default.
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * you requested.
                                    +     * If unspecified, the server picks an appropriate default.
                                          * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -945,8 +962,9 @@ public Builder setPageSize(int value) { * * *
                                    -     * Optional. Requested page size. Server may return fewer items than
                                    -     * requested. If unspecified, server will pick an appropriate default.
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * you requested.
                                    +     * If unspecified, the server picks an appropriate default.
                                          * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -966,7 +984,8 @@ public Builder clearPageSize() { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies the page of results that the server
                                    +     * should return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -989,7 +1008,8 @@ public java.lang.String getPageToken() { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies the page of results that the server
                                    +     * should return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1012,7 +1032,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies the page of results that the server
                                    +     * should return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1034,7 +1055,8 @@ public Builder setPageToken(java.lang.String value) { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies the page of results that the server
                                    +     * should return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1052,7 +1074,8 @@ public Builder clearPageToken() { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies the page of results that the server
                                    +     * should return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1077,8 +1100,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to apply on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1101,8 +1124,8 @@ public java.lang.String getFilter() { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to apply on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1125,8 +1148,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to apply on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1148,8 +1171,8 @@ public Builder setFilter(java.lang.String value) { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to apply on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1167,8 +1190,8 @@ public Builder clearFilter() { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to apply on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1193,7 +1216,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1216,7 +1245,13 @@ public java.lang.String getOrderBy() { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1239,7 +1274,13 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1261,7 +1302,13 @@ public Builder setOrderBy(java.lang.String value) { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1279,7 +1326,13 @@ public Builder clearOrderBy() { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequestOrBuilder.java index a9352eaf22c1..84f7556fb536 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequestOrBuilder.java @@ -28,9 +28,9 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * * *
                                    -   * Required. parent resource of the CloudControlDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource for the cloud control deployment, in the
                                    +   * format `organizations/{organization}/locations/{location}`. The only
                                    +   * supported location is `global`.
                                        * 
                                    * * @@ -45,9 +45,9 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * * *
                                    -   * Required. parent resource of the CloudControlDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource for the cloud control deployment, in the
                                    +   * format `organizations/{organization}/locations/{location}`. The only
                                    +   * supported location is `global`.
                                        * 
                                    * * @@ -62,8 +62,9 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Requested page size. Server may return fewer items than
                                    -   * requested. If unspecified, server will pick an appropriate default.
                                    +   * Optional. The requested page size. The server might return fewer items than
                                    +   * you requested.
                                    +   * If unspecified, the server picks an appropriate default.
                                        * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -76,7 +77,8 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * * *
                                    -   * Optional. A token identifying a page of results the server should return.
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -89,7 +91,8 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * * *
                                    -   * Optional. A token identifying a page of results the server should return.
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -102,8 +105,8 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -   * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +   * Optional. The filter to apply on the resource, as defined by
                                    +   * [AIP-160: Filtering](https://google.aip.dev/160).
                                        * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -116,8 +119,8 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -   * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +   * Optional. The filter to apply on the resource, as defined by
                                    +   * [AIP-160: Filtering](https://google.aip.dev/160).
                                        * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -130,7 +133,13 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +   * Optional. The sort order for the results. The following values are
                                    +   * supported:
                                    +   *
                                    +   * * `name`
                                    +   * * `name desc`
                                    +   *
                                    +   * If you do not specify a value, then the results are not sorted.
                                        * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -143,7 +152,13 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +   * Optional. The sort order for the results. The following values are
                                    +   * supported:
                                    +   *
                                    +   * * `name`
                                    +   * * `name desc`
                                    +   *
                                    +   * If you do not specify a value, then the results are not sorted.
                                        * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsResponse.java index 414bfd5c9cc7..0d88ec5f412e 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsResponse.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsResponse.java @@ -23,7 +23,7 @@ * * *
                                    - * Response message for ListCloudControlDeployments.
                                    + * The response message for [ListCloudControlDeployments][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse} @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -95,7 +95,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -113,7 +113,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -129,7 +129,7 @@ public int getCloudControlDeploymentsCount() { * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -146,7 +146,7 @@ public int getCloudControlDeploymentsCount() { * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -168,7 +168,8 @@ public int getCloudControlDeploymentsCount() { * * *
                                    -   * A token identifying a page of results the server should return.
                                    +   * A token that identifies the next page of results that the server
                                    +   * should return.
                                        * 
                                    * * string next_page_token = 2; @@ -192,7 +193,8 @@ public java.lang.String getNextPageToken() { * * *
                                    -   * A token identifying a page of results the server should return.
                                    +   * A token that identifies the next page of results that the server
                                    +   * should return.
                                        * 
                                    * * string next_page_token = 2; @@ -399,7 +401,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Response message for ListCloudControlDeployments.
                                    +   * The response message for [ListCloudControlDeployments][].
                                        * 
                                    * * Protobuf type {@code @@ -678,7 +680,7 @@ private void ensureCloudControlDeploymentsIsMutable() { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -698,7 +700,7 @@ private void ensureCloudControlDeploymentsIsMutable() { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -717,7 +719,7 @@ public int getCloudControlDeploymentsCount() { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -737,7 +739,7 @@ public int getCloudControlDeploymentsCount() { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -763,7 +765,7 @@ public Builder setCloudControlDeployments( * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -788,7 +790,7 @@ public Builder setCloudControlDeployments( * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -814,7 +816,7 @@ public Builder addCloudControlDeployments( * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -840,7 +842,7 @@ public Builder addCloudControlDeployments( * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -864,7 +866,7 @@ public Builder addCloudControlDeployments( * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -889,7 +891,7 @@ public Builder addCloudControlDeployments( * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -914,7 +916,7 @@ public Builder addAllCloudControlDeployments( * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -936,7 +938,7 @@ public Builder clearCloudControlDeployments() { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -958,7 +960,7 @@ public Builder removeCloudControlDeployments(int index) { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -974,7 +976,7 @@ public Builder removeCloudControlDeployments(int index) { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -994,7 +996,7 @@ public Builder removeCloudControlDeployments(int index) { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -1015,7 +1017,7 @@ public Builder removeCloudControlDeployments(int index) { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -1034,7 +1036,7 @@ public Builder removeCloudControlDeployments(int index) { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -1054,7 +1056,7 @@ public Builder removeCloudControlDeployments(int index) { * * *
                                    -     * The list of CloudControlDeployments.
                                    +     * The list of cloud control deployments.
                                          * 
                                    * * @@ -1093,7 +1095,8 @@ public Builder removeCloudControlDeployments(int index) { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; @@ -1116,7 +1119,8 @@ public java.lang.String getNextPageToken() { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; @@ -1139,7 +1143,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; @@ -1161,7 +1166,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; @@ -1179,7 +1185,8 @@ public Builder clearNextPageToken() { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsResponseOrBuilder.java index 6aa75ddd43d9..37b5cff0e9cd 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsResponseOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface ListCloudControlDeploymentsResponseOrBuilder * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -42,7 +42,7 @@ public interface ListCloudControlDeploymentsResponseOrBuilder * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -56,7 +56,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment getCloudContr * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -69,7 +69,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment getCloudContr * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -84,7 +84,7 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment getCloudContr * * *
                                    -   * The list of CloudControlDeployments.
                                    +   * The list of cloud control deployments.
                                        * 
                                    * * @@ -98,7 +98,8 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment getCloudContr * * *
                                    -   * A token identifying a page of results the server should return.
                                    +   * A token that identifies the next page of results that the server
                                    +   * should return.
                                        * 
                                    * * string next_page_token = 2; @@ -111,7 +112,8 @@ com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment getCloudContr * * *
                                    -   * A token identifying a page of results the server should return.
                                    +   * A token that identifies the next page of results that the server
                                    +   * should return.
                                        * 
                                    * * string next_page_token = 2; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequest.java index 3168b972f5c5..bdcf32f9de96 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for listing CloudControls.
                                    + * Request message for [ListCloudControls][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest} @@ -76,6 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -103,6 +104,7 @@ public java.lang.String getParent() { *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -131,7 +133,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -   * Optional. The maximum number of CloudControls to return. The default value
                                    +   * Optional. The maximum number of cloud controls to return. The default value
                                        * is `500`.
                                        *
                                        * If you exceed the maximum value of `1000`, then the service uses the
                                    @@ -156,12 +158,13 @@ public int getPageSize() {
                                        *
                                        *
                                        * 
                                    -   * Optional. A pagination token returned from a previous request to list
                                    -   * CloudControls. Provide this token to retrieve the next page of results.
                                    +   * Optional. A pagination token that's returned from a previous request to
                                    +   * list cloud controls. Provide this token to retrieve the next page of
                                    +   * results.
                                        *
                                    -   * When paginating, parent provided to
                                    -   * ListCloudControls request must match the call that provided the page
                                    -   * token.
                                    +   * When paginating, the parent that you provide to the
                                    +   * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls]
                                    +   * request must match the call that provided the page token.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -185,12 +188,13 @@ public java.lang.String getPageToken() { * * *
                                    -   * Optional. A pagination token returned from a previous request to list
                                    -   * CloudControls. Provide this token to retrieve the next page of results.
                                    +   * Optional. A pagination token that's returned from a previous request to
                                    +   * list cloud controls. Provide this token to retrieve the next page of
                                    +   * results.
                                        *
                                    -   * When paginating, parent provided to
                                    -   * ListCloudControls request must match the call that provided the page
                                    -   * token.
                                    +   * When paginating, the parent that you provide to the
                                    +   * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls]
                                    +   * request must match the call that provided the page token.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -394,7 +398,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for listing CloudControls.
                                    +   * Request message for [ListCloudControls][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest} @@ -616,6 +620,7 @@ public Builder mergeFrom( *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -642,6 +647,7 @@ public java.lang.String getParent() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -668,6 +674,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -693,6 +700,7 @@ public Builder setParent(java.lang.String value) { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -714,6 +722,7 @@ public Builder clearParent() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -740,7 +749,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. The maximum number of CloudControls to return. The default value
                                    +     * Optional. The maximum number of cloud controls to return. The default value
                                          * is `500`.
                                          *
                                          * If you exceed the maximum value of `1000`, then the service uses the
                                    @@ -760,7 +769,7 @@ public int getPageSize() {
                                          *
                                          *
                                          * 
                                    -     * Optional. The maximum number of CloudControls to return. The default value
                                    +     * Optional. The maximum number of cloud controls to return. The default value
                                          * is `500`.
                                          *
                                          * If you exceed the maximum value of `1000`, then the service uses the
                                    @@ -784,7 +793,7 @@ public Builder setPageSize(int value) {
                                          *
                                          *
                                          * 
                                    -     * Optional. The maximum number of CloudControls to return. The default value
                                    +     * Optional. The maximum number of cloud controls to return. The default value
                                          * is `500`.
                                          *
                                          * If you exceed the maximum value of `1000`, then the service uses the
                                    @@ -808,12 +817,13 @@ public Builder clearPageSize() {
                                          *
                                          *
                                          * 
                                    -     * Optional. A pagination token returned from a previous request to list
                                    -     * CloudControls. Provide this token to retrieve the next page of results.
                                    +     * Optional. A pagination token that's returned from a previous request to
                                    +     * list cloud controls. Provide this token to retrieve the next page of
                                    +     * results.
                                          *
                                    -     * When paginating, parent provided to
                                    -     * ListCloudControls request must match the call that provided the page
                                    -     * token.
                                    +     * When paginating, the parent that you provide to the
                                    +     * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls]
                                    +     * request must match the call that provided the page token.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -836,12 +846,13 @@ public java.lang.String getPageToken() { * * *
                                    -     * Optional. A pagination token returned from a previous request to list
                                    -     * CloudControls. Provide this token to retrieve the next page of results.
                                    +     * Optional. A pagination token that's returned from a previous request to
                                    +     * list cloud controls. Provide this token to retrieve the next page of
                                    +     * results.
                                          *
                                    -     * When paginating, parent provided to
                                    -     * ListCloudControls request must match the call that provided the page
                                    -     * token.
                                    +     * When paginating, the parent that you provide to the
                                    +     * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls]
                                    +     * request must match the call that provided the page token.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -864,12 +875,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                    -     * Optional. A pagination token returned from a previous request to list
                                    -     * CloudControls. Provide this token to retrieve the next page of results.
                                    +     * Optional. A pagination token that's returned from a previous request to
                                    +     * list cloud controls. Provide this token to retrieve the next page of
                                    +     * results.
                                          *
                                    -     * When paginating, parent provided to
                                    -     * ListCloudControls request must match the call that provided the page
                                    -     * token.
                                    +     * When paginating, the parent that you provide to the
                                    +     * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls]
                                    +     * request must match the call that provided the page token.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -891,12 +903,13 @@ public Builder setPageToken(java.lang.String value) { * * *
                                    -     * Optional. A pagination token returned from a previous request to list
                                    -     * CloudControls. Provide this token to retrieve the next page of results.
                                    +     * Optional. A pagination token that's returned from a previous request to
                                    +     * list cloud controls. Provide this token to retrieve the next page of
                                    +     * results.
                                          *
                                    -     * When paginating, parent provided to
                                    -     * ListCloudControls request must match the call that provided the page
                                    -     * token.
                                    +     * When paginating, the parent that you provide to the
                                    +     * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls]
                                    +     * request must match the call that provided the page token.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -914,12 +927,13 @@ public Builder clearPageToken() { * * *
                                    -     * Optional. A pagination token returned from a previous request to list
                                    -     * CloudControls. Provide this token to retrieve the next page of results.
                                    +     * Optional. A pagination token that's returned from a previous request to
                                    +     * list cloud controls. Provide this token to retrieve the next page of
                                    +     * results.
                                          *
                                    -     * When paginating, parent provided to
                                    -     * ListCloudControls request must match the call that provided the page
                                    -     * token.
                                    +     * When paginating, the parent that you provide to the
                                    +     * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls]
                                    +     * request must match the call that provided the page token.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequestOrBuilder.java index 565c45be76fb..96c97f58c13c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequestOrBuilder.java @@ -30,6 +30,7 @@ public interface ListCloudControlsRequestOrBuilder *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -46,6 +47,7 @@ public interface ListCloudControlsRequestOrBuilder *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -60,7 +62,7 @@ public interface ListCloudControlsRequestOrBuilder * * *
                                    -   * Optional. The maximum number of CloudControls to return. The default value
                                    +   * Optional. The maximum number of cloud controls to return. The default value
                                        * is `500`.
                                        *
                                        * If you exceed the maximum value of `1000`, then the service uses the
                                    @@ -77,12 +79,13 @@ public interface ListCloudControlsRequestOrBuilder
                                        *
                                        *
                                        * 
                                    -   * Optional. A pagination token returned from a previous request to list
                                    -   * CloudControls. Provide this token to retrieve the next page of results.
                                    +   * Optional. A pagination token that's returned from a previous request to
                                    +   * list cloud controls. Provide this token to retrieve the next page of
                                    +   * results.
                                        *
                                    -   * When paginating, parent provided to
                                    -   * ListCloudControls request must match the call that provided the page
                                    -   * token.
                                    +   * When paginating, the parent that you provide to the
                                    +   * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls]
                                    +   * request must match the call that provided the page token.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -95,12 +98,13 @@ public interface ListCloudControlsRequestOrBuilder * * *
                                    -   * Optional. A pagination token returned from a previous request to list
                                    -   * CloudControls. Provide this token to retrieve the next page of results.
                                    +   * Optional. A pagination token that's returned from a previous request to
                                    +   * list cloud controls. Provide this token to retrieve the next page of
                                    +   * results.
                                        *
                                    -   * When paginating, parent provided to
                                    -   * ListCloudControls request must match the call that provided the page
                                    -   * token.
                                    +   * When paginating, the parent that you provide to the
                                    +   * [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls]
                                    +   * request must match the call that provided the page token.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsResponse.java index 19fce0b2528c..a6f803070b25 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsResponse.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsResponse.java @@ -23,7 +23,7 @@ * * *
                                    - * Response message for ListCloudControls.
                                    + * The response message for [ListCloudControls][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse} @@ -375,7 +375,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Response message for ListCloudControls.
                                    +   * The response message for [ListCloudControls][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequest.java new file mode 100644 index 000000000000..d57ec2a71a6e --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequest.java @@ -0,0 +1,1499 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [ListControlComplianceSummaries][].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest} + */ +public final class ListControlComplianceSummariesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest) + ListControlComplianceSummariesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListControlComplianceSummariesRequest.newBuilder() to construct. + private ListControlComplianceSummariesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListControlComplianceSummariesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListControlComplianceSummariesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + .Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                    +   * Required. The parent scope for the framework overview page.
                                    +   * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +   * 
                                    + * + * + * 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 END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
                                    +   * Optional. The end time of the control compliance summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * @return Whether the endTime field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasEndTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Optional. The end time of the control compliance summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * @return The endTime. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
                                    +   * Optional. The end time of the control compliance summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
                                    +   * Optional. The requested page size. The server might return fewer items than
                                    +   * requested. If unspecified, the server picks an appropriate default.
                                    +   * 
                                    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * string page_token = 4 [(.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. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * string page_token = 4 [(.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 FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * 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. The filtering results.
                                    +   * 
                                    + * + * 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + 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.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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(); + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + 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.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + 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.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [ListControlComplianceSummaries][].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest) + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + .class, + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + build() { + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                    +     * Required. The parent scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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 com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
                                    +     * Optional. The end time of the control compliance summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * @return Whether the endTime field is set. + */ + @java.lang.Deprecated + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * Optional. The end time of the control compliance summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * @return The endTime. + */ + @java.lang.Deprecated + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Optional. The end time of the control compliance summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the control compliance summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the control compliance summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the control compliance summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the control compliance summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Optional. The end time of the control compliance summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
                                    +     * Optional. The end time of the control compliance summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int pageSize_; + + /** + * + * + *
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * requested. If unspecified, the server picks an appropriate default.
                                    +     * 
                                    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * requested. If unspecified, the server picks an appropriate default.
                                    +     * 
                                    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * requested. If unspecified, the server picks an appropriate default.
                                    +     * 
                                    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                    +     * Optional. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * string page_token = 4 [(.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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * string page_token = 4 [(.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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * 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. The filtering results.
                                    +     * 
                                    + * + * 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. The filtering results.
                                    +     * 
                                    + * + * 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. The filtering results.
                                    +     * 
                                    + * + * 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. The filtering results.
                                    +     * 
                                    + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .ListControlComplianceSummariesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListControlComplianceSummariesRequest 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.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequestOrBuilder.java new file mode 100644 index 000000000000..8f62e95519f3 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequestOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ListControlComplianceSummariesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The parent scope for the framework overview page.
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                    +   * Required. The parent scope for the framework overview page.
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                    +   * Optional. The end time of the control compliance summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * @return Whether the endTime field is set. + */ + @java.lang.Deprecated + boolean hasEndTime(); + + /** + * + * + *
                                    +   * Optional. The end time of the control compliance summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * @return The endTime. + */ + @java.lang.Deprecated + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
                                    +   * Optional. The end time of the control compliance summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
                                    +   * Optional. The requested page size. The server might return fewer items than
                                    +   * requested. If unspecified, the server picks an appropriate default.
                                    +   * 
                                    + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesResponse.java new file mode 100644 index 000000000000..54c94ecf5da6 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesResponse.java @@ -0,0 +1,1273 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The response message for [ListControlComplianceSummaries][].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse} + */ +public final class ListControlComplianceSummariesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse) + ListControlComplianceSummariesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListControlComplianceSummariesResponse.newBuilder() to construct. + private ListControlComplianceSummariesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListControlComplianceSummariesResponse() { + controlComplianceSummaries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListControlComplianceSummariesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + .Builder.class); + } + + public static final int CONTROL_COMPLIANCE_SUMMARIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + controlComplianceSummaries_; + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + @java.lang.Override + public java.util.List + getControlComplianceSummariesList() { + return controlComplianceSummaries_; + } + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder> + getControlComplianceSummariesOrBuilderList() { + return controlComplianceSummaries_; + } + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + @java.lang.Override + public int getControlComplianceSummariesCount() { + return controlComplianceSummaries_.size(); + } + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + getControlComplianceSummaries(int index) { + return controlComplianceSummaries_.get(index); + } + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder + getControlComplianceSummariesOrBuilder(int index) { + return controlComplianceSummaries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + 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 < controlComplianceSummaries_.size(); i++) { + output.writeMessage(1, controlComplianceSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < controlComplianceSummaries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, controlComplianceSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse other = + (com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse) obj; + + if (!getControlComplianceSummariesList().equals(other.getControlComplianceSummariesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getControlComplianceSummariesCount() > 0) { + hash = (37 * hash) + CONTROL_COMPLIANCE_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getControlComplianceSummariesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + 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.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + 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.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The response message for [ListControlComplianceSummaries][].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse) + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (controlComplianceSummariesBuilder_ == null) { + controlComplianceSummaries_ = java.util.Collections.emptyList(); + } else { + controlComplianceSummaries_ = null; + controlComplianceSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + build() { + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse result = + new com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse result) { + if (controlComplianceSummariesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + controlComplianceSummaries_ = + java.util.Collections.unmodifiableList(controlComplianceSummaries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.controlComplianceSummaries_ = controlComplianceSummaries_; + } else { + result.controlComplianceSummaries_ = controlComplianceSummariesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + .getDefaultInstance()) return this; + if (controlComplianceSummariesBuilder_ == null) { + if (!other.controlComplianceSummaries_.isEmpty()) { + if (controlComplianceSummaries_.isEmpty()) { + controlComplianceSummaries_ = other.controlComplianceSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureControlComplianceSummariesIsMutable(); + controlComplianceSummaries_.addAll(other.controlComplianceSummaries_); + } + onChanged(); + } + } else { + if (!other.controlComplianceSummaries_.isEmpty()) { + if (controlComplianceSummariesBuilder_.isEmpty()) { + controlComplianceSummariesBuilder_.dispose(); + controlComplianceSummariesBuilder_ = null; + controlComplianceSummaries_ = other.controlComplianceSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + controlComplianceSummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getControlComplianceSummariesFieldBuilder() + : null; + } else { + controlComplianceSummariesBuilder_.addAllMessages(other.controlComplianceSummaries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + .parser(), + extensionRegistry); + if (controlComplianceSummariesBuilder_ == null) { + ensureControlComplianceSummariesIsMutable(); + controlComplianceSummaries_.add(m); + } else { + controlComplianceSummariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + controlComplianceSummaries_ = java.util.Collections.emptyList(); + + private void ensureControlComplianceSummariesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + controlComplianceSummaries_ = + new java.util.ArrayList< + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary>( + controlComplianceSummaries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder> + controlComplianceSummariesBuilder_; + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public java.util.List + getControlComplianceSummariesList() { + if (controlComplianceSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(controlComplianceSummaries_); + } else { + return controlComplianceSummariesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public int getControlComplianceSummariesCount() { + if (controlComplianceSummariesBuilder_ == null) { + return controlComplianceSummaries_.size(); + } else { + return controlComplianceSummariesBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + getControlComplianceSummaries(int index) { + if (controlComplianceSummariesBuilder_ == null) { + return controlComplianceSummaries_.get(index); + } else { + return controlComplianceSummariesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public Builder setControlComplianceSummaries( + int index, com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary value) { + if (controlComplianceSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlComplianceSummariesIsMutable(); + controlComplianceSummaries_.set(index, value); + onChanged(); + } else { + controlComplianceSummariesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public Builder setControlComplianceSummaries( + int index, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder + builderForValue) { + if (controlComplianceSummariesBuilder_ == null) { + ensureControlComplianceSummariesIsMutable(); + controlComplianceSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + controlComplianceSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public Builder addControlComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary value) { + if (controlComplianceSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlComplianceSummariesIsMutable(); + controlComplianceSummaries_.add(value); + onChanged(); + } else { + controlComplianceSummariesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public Builder addControlComplianceSummaries( + int index, com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary value) { + if (controlComplianceSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlComplianceSummariesIsMutable(); + controlComplianceSummaries_.add(index, value); + onChanged(); + } else { + controlComplianceSummariesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public Builder addControlComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder + builderForValue) { + if (controlComplianceSummariesBuilder_ == null) { + ensureControlComplianceSummariesIsMutable(); + controlComplianceSummaries_.add(builderForValue.build()); + onChanged(); + } else { + controlComplianceSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public Builder addControlComplianceSummaries( + int index, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder + builderForValue) { + if (controlComplianceSummariesBuilder_ == null) { + ensureControlComplianceSummariesIsMutable(); + controlComplianceSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + controlComplianceSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public Builder addAllControlComplianceSummaries( + java.lang.Iterable< + ? extends com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary> + values) { + if (controlComplianceSummariesBuilder_ == null) { + ensureControlComplianceSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, controlComplianceSummaries_); + onChanged(); + } else { + controlComplianceSummariesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public Builder clearControlComplianceSummaries() { + if (controlComplianceSummariesBuilder_ == null) { + controlComplianceSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + controlComplianceSummariesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public Builder removeControlComplianceSummaries(int index) { + if (controlComplianceSummariesBuilder_ == null) { + ensureControlComplianceSummariesIsMutable(); + controlComplianceSummaries_.remove(index); + onChanged(); + } else { + controlComplianceSummariesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder + getControlComplianceSummariesBuilder(int index) { + return getControlComplianceSummariesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder + getControlComplianceSummariesOrBuilder(int index) { + if (controlComplianceSummariesBuilder_ == null) { + return controlComplianceSummaries_.get(index); + } else { + return controlComplianceSummariesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder> + getControlComplianceSummariesOrBuilderList() { + if (controlComplianceSummariesBuilder_ != null) { + return controlComplianceSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(controlComplianceSummaries_); + } + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder + addControlComplianceSummariesBuilder() { + return getControlComplianceSummariesFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder + addControlComplianceSummariesBuilder(int index) { + return getControlComplianceSummariesFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of control compliance details.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + public java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder> + getControlComplianceSummariesBuilderList() { + return getControlComplianceSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder> + getControlComplianceSummariesFieldBuilder() { + if (controlComplianceSummariesBuilder_ == null) { + controlComplianceSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder>( + controlComplianceSummaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + controlComplianceSummaries_ = null; + } + return controlComplianceSummariesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .ListControlComplianceSummariesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListControlComplianceSummariesResponse 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.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesResponseOrBuilder.java new file mode 100644 index 000000000000..30e69e8b2d0a --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesResponseOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ListControlComplianceSummariesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + java.util.List + getControlComplianceSummariesList(); + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary + getControlComplianceSummaries(int index); + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + int getControlComplianceSummariesCount(); + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder> + getControlComplianceSummariesOrBuilderList(); + + /** + * + * + *
                                    +   * The list of control compliance details.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary control_compliance_summaries = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummaryOrBuilder + getControlComplianceSummariesOrBuilder(int index); + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequest.java new file mode 100644 index 000000000000..a0cf977e1ffe --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequest.java @@ -0,0 +1,1476 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [ListFindingSummaries][].
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest} + */ +public final class ListFindingSummariesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest) + ListFindingSummariesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListFindingSummariesRequest.newBuilder() to construct. + private ListFindingSummariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFindingSummariesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFindingSummariesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                    +   * Required. The parent scope for the framework overview page.
                                    +   * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +   * 
                                    + * + * + * 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. The requested page size. The server might return fewer items than
                                    +   *  requested. If unspecified, the server picks an appropriate default.
                                    +   * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 4 [(.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. The filtering results.
                                    +   * 
                                    + * + * string filter = 4 [(.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; + } + } + + public static final int END_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
                                    +   * Optional. The end time of the finding summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * @return Whether the endTime field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasEndTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Optional. The end time of the finding summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * @return The endTime. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
                                    +   * Optional. The end time of the finding summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + } + 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.cloudsecuritycompliance.v1.ListFindingSummariesRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest 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.cloudsecuritycompliance.v1.ListFindingSummariesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest 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.cloudsecuritycompliance.v1.ListFindingSummariesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [ListFindingSummaries][].
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest) + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest build() { + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest 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.filter_ = filter_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest + .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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                    +     * Required. The parent scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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 scope for the framework overview page.
                                    +     * 
                                    + * + * + * 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. The requested page size. The server might return fewer items than
                                    +     *  requested. If unspecified, the server picks an appropriate default.
                                    +     * 
                                    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     *  requested. If unspecified, the server picks an appropriate default.
                                    +     * 
                                    + * + * 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. The requested page size. The server might return fewer items than
                                    +     *  requested. If unspecified, the server picks an appropriate default.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.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. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.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. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
                                    +     * Optional. The end time of the finding summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * @return Whether the endTime field is set. + */ + @java.lang.Deprecated + public boolean hasEndTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                    +     * Optional. The end time of the finding summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * @return The endTime. + */ + @java.lang.Deprecated + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Optional. The end time of the finding summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the finding summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the finding summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the finding summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000010); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The end time of the finding summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Optional. The end time of the finding summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
                                    +     * Optional. The end time of the finding summary.
                                    +     * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingSummariesRequest 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.cloudsecuritycompliance.v1.ListFindingSummariesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequestOrBuilder.java new file mode 100644 index 000000000000..db71959c4b21 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequestOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ListFindingSummariesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The parent scope for the framework overview page.
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                    +   * Required. The parent scope for the framework overview page.
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                    +   * Optional. The requested page size. The server might return fewer items than
                                    +   *  requested. If unspecified, the server picks an appropriate default.
                                    +   * 
                                    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                    +   * Optional. The end time of the finding summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * @return Whether the endTime field is set. + */ + @java.lang.Deprecated + boolean hasEndTime(); + + /** + * + * + *
                                    +   * Optional. The end time of the finding summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * @return The endTime. + */ + @java.lang.Deprecated + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
                                    +   * Optional. The end time of the finding summary.
                                    +   * 
                                    + * + * + * .google.protobuf.Timestamp end_time = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesResponse.java new file mode 100644 index 000000000000..297bf060f9ed --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesResponse.java @@ -0,0 +1,1216 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The response message for [ListFindingSummaries][].
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse} + */ +public final class ListFindingSummariesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse) + ListFindingSummariesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListFindingSummariesResponse.newBuilder() to construct. + private ListFindingSummariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFindingSummariesResponse() { + findingSummaries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFindingSummariesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse.class, + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse.Builder.class); + } + + public static final int FINDING_SUMMARIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + findingSummaries_; + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + @java.lang.Override + public java.util.List + getFindingSummariesList() { + return findingSummaries_; + } + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.FindingSummaryOrBuilder> + getFindingSummariesOrBuilderList() { + return findingSummaries_; + } + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + @java.lang.Override + public int getFindingSummariesCount() { + return findingSummaries_.size(); + } + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummary getFindingSummaries(int index) { + return findingSummaries_.get(index); + } + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummaryOrBuilder + getFindingSummariesOrBuilder(int index) { + return findingSummaries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + 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 < findingSummaries_.size(); i++) { + output.writeMessage(1, findingSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < findingSummaries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.cloudsecuritycompliance.v1.ListFindingSummariesResponse)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse other = + (com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse) obj; + + if (!getFindingSummariesList().equals(other.getFindingSummariesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getFindingSummariesCount() > 0) { + hash = (37 * hash) + FINDING_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getFindingSummariesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse 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.cloudsecuritycompliance.v1.ListFindingSummariesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse 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.cloudsecuritycompliance.v1.ListFindingSummariesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The response message for [ListFindingSummaries][].
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse) + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse.class, + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (findingSummariesBuilder_ == null) { + findingSummaries_ = java.util.Collections.emptyList(); + } else { + findingSummaries_ = null; + findingSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse build() { + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse result = + new com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse result) { + if (findingSummariesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + findingSummaries_ = java.util.Collections.unmodifiableList(findingSummaries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.findingSummaries_ = findingSummaries_; + } else { + result.findingSummaries_ = findingSummariesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + .getDefaultInstance()) return this; + if (findingSummariesBuilder_ == null) { + if (!other.findingSummaries_.isEmpty()) { + if (findingSummaries_.isEmpty()) { + findingSummaries_ = other.findingSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFindingSummariesIsMutable(); + findingSummaries_.addAll(other.findingSummaries_); + } + onChanged(); + } + } else { + if (!other.findingSummaries_.isEmpty()) { + if (findingSummariesBuilder_.isEmpty()) { + findingSummariesBuilder_.dispose(); + findingSummariesBuilder_ = null; + findingSummaries_ = other.findingSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + findingSummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFindingSummariesFieldBuilder() + : null; + } else { + findingSummariesBuilder_.addAllMessages(other.findingSummaries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.parser(), + extensionRegistry); + if (findingSummariesBuilder_ == null) { + ensureFindingSummariesIsMutable(); + findingSummaries_.add(m); + } else { + findingSummariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + findingSummaries_ = java.util.Collections.emptyList(); + + private void ensureFindingSummariesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + findingSummaries_ = + new java.util.ArrayList( + findingSummaries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummaryOrBuilder> + findingSummariesBuilder_; + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public java.util.List + getFindingSummariesList() { + if (findingSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(findingSummaries_); + } else { + return findingSummariesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public int getFindingSummariesCount() { + if (findingSummariesBuilder_ == null) { + return findingSummaries_.size(); + } else { + return findingSummariesBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummary getFindingSummaries( + int index) { + if (findingSummariesBuilder_ == null) { + return findingSummaries_.get(index); + } else { + return findingSummariesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public Builder setFindingSummaries( + int index, com.google.cloud.cloudsecuritycompliance.v1.FindingSummary value) { + if (findingSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingSummariesIsMutable(); + findingSummaries_.set(index, value); + onChanged(); + } else { + findingSummariesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public Builder setFindingSummaries( + int index, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder builderForValue) { + if (findingSummariesBuilder_ == null) { + ensureFindingSummariesIsMutable(); + findingSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + findingSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public Builder addFindingSummaries( + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary value) { + if (findingSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingSummariesIsMutable(); + findingSummaries_.add(value); + onChanged(); + } else { + findingSummariesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public Builder addFindingSummaries( + int index, com.google.cloud.cloudsecuritycompliance.v1.FindingSummary value) { + if (findingSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingSummariesIsMutable(); + findingSummaries_.add(index, value); + onChanged(); + } else { + findingSummariesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public Builder addFindingSummaries( + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder builderForValue) { + if (findingSummariesBuilder_ == null) { + ensureFindingSummariesIsMutable(); + findingSummaries_.add(builderForValue.build()); + onChanged(); + } else { + findingSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public Builder addFindingSummaries( + int index, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder builderForValue) { + if (findingSummariesBuilder_ == null) { + ensureFindingSummariesIsMutable(); + findingSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + findingSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public Builder addAllFindingSummaries( + java.lang.Iterable + values) { + if (findingSummariesBuilder_ == null) { + ensureFindingSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingSummaries_); + onChanged(); + } else { + findingSummariesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public Builder clearFindingSummaries() { + if (findingSummariesBuilder_ == null) { + findingSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + findingSummariesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public Builder removeFindingSummaries(int index) { + if (findingSummariesBuilder_ == null) { + ensureFindingSummariesIsMutable(); + findingSummaries_.remove(index); + onChanged(); + } else { + findingSummariesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder + getFindingSummariesBuilder(int index) { + return getFindingSummariesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummaryOrBuilder + getFindingSummariesOrBuilder(int index) { + if (findingSummariesBuilder_ == null) { + return findingSummaries_.get(index); + } else { + return findingSummariesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.FindingSummaryOrBuilder> + getFindingSummariesOrBuilderList() { + if (findingSummariesBuilder_ != null) { + return findingSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(findingSummaries_); + } + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder + addFindingSummariesBuilder() { + return getFindingSummariesFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder + addFindingSummariesBuilder(int index) { + return getFindingSummariesFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * List of finding summary by category.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + public java.util.List + getFindingSummariesBuilderList() { + return getFindingSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummaryOrBuilder> + getFindingSummariesFieldBuilder() { + if (findingSummariesBuilder_ == null) { + findingSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FindingSummaryOrBuilder>( + findingSummaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + findingSummaries_ = null; + } + return findingSummariesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse) + private static final com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingSummariesResponse 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.cloudsecuritycompliance.v1.ListFindingSummariesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesResponseOrBuilder.java new file mode 100644 index 000000000000..890f8bd7fe32 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ListFindingSummariesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + java.util.List + getFindingSummariesList(); + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FindingSummary getFindingSummaries(int index); + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + int getFindingSummariesCount(); + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + java.util.List + getFindingSummariesOrBuilderList(); + + /** + * + * + *
                                    +   * List of finding summary by category.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FindingSummary finding_summaries = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FindingSummaryOrBuilder getFindingSummariesOrBuilder( + int index); + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsRequest.java new file mode 100644 index 000000000000..05bbb9a6287f --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsRequest.java @@ -0,0 +1,1225 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [ListFrameworkAudits][].
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest} + */ +public final class ListFrameworkAuditsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest) + ListFrameworkAuditsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListFrameworkAuditsRequest.newBuilder() to construct. + private ListFrameworkAuditsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFrameworkAuditsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFrameworkAuditsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                    +   * Required. The parent resource where the framework audits are listed.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * 
                                    + * + * + * 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 where the framework audits are listed.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * 
                                    + * + * + * 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. The maximum number of framework audits to return. The service
                                    +   * might return fewer audits than this value. If unspecified, a maximum of 10
                                    +   * framework audits are returned. The maximum value is 50; values above 50 are
                                    +   * limited to 50.
                                    +   * 
                                    + * + * 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 `next_page_token` value that's returned from a previous list
                                    +   * request, if any.
                                    +   * 
                                    + * + * 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 `next_page_token` value that's returned from a previous list
                                    +   * request, if any.
                                    +   * 
                                    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +   * Optional. The filters to apply to the framework audits.
                                    +   * Supported filters are `compliance_framework`, `compliance_state`,
                                    +   * `create_time,` and `framework_audit_name`. If the filter is invalid, an
                                    +   * invalid argument error is returned.
                                    +   * For syntax details, see [AIP-160][https://google.aip.dev/160].
                                    +   * 
                                    + * + * string filter = 4 [(.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. The filters to apply to the framework audits.
                                    +   * Supported filters are `compliance_framework`, `compliance_state`,
                                    +   * `create_time,` and `framework_audit_name`. If the filter is invalid, an
                                    +   * invalid argument error is returned.
                                    +   * For syntax details, see [AIP-160][https://google.aip.dev/160].
                                    +   * 
                                    + * + * string filter = 4 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest 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.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest 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.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [ListFrameworkAudits][].
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest) + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest build() { + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest 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.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + .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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 where the framework audits are listed.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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 where the framework audits are listed.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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 where the framework audits are listed.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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 where the framework audits are listed.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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 where the framework audits are listed.
                                    +     *
                                    +     * Supported formats are the following:
                                    +     *
                                    +     * * `organizations/{organization_id}/locations/{location}`
                                    +     * * `folders/{folder_id}/locations/{location}`
                                    +     * * `projects/{project_id}/locations/{location}`
                                    +     * 
                                    + * + * + * 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. The maximum number of framework audits to return. The service
                                    +     * might return fewer audits than this value. If unspecified, a maximum of 10
                                    +     * framework audits are returned. The maximum value is 50; values above 50 are
                                    +     * limited to 50.
                                    +     * 
                                    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                    +     * Optional. The maximum number of framework audits to return. The service
                                    +     * might return fewer audits than this value. If unspecified, a maximum of 10
                                    +     * framework audits are returned. The maximum value is 50; values above 50 are
                                    +     * limited to 50.
                                    +     * 
                                    + * + * 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. The maximum number of framework audits to return. The service
                                    +     * might return fewer audits than this value. If unspecified, a maximum of 10
                                    +     * framework audits are returned. The maximum value is 50; values above 50 are
                                    +     * limited to 50.
                                    +     * 
                                    + * + * 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 `next_page_token` value that's returned from a previous list
                                    +     * request, if any.
                                    +     * 
                                    + * + * 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 `next_page_token` value that's returned from a previous list
                                    +     * request, if any.
                                    +     * 
                                    + * + * 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 `next_page_token` value that's returned from a previous list
                                    +     * request, if any.
                                    +     * 
                                    + * + * 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 `next_page_token` value that's returned from a previous list
                                    +     * request, if any.
                                    +     * 
                                    + * + * 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 `next_page_token` value that's returned from a previous list
                                    +     * request, if any.
                                    +     * 
                                    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +     * Optional. The filters to apply to the framework audits.
                                    +     * Supported filters are `compliance_framework`, `compliance_state`,
                                    +     * `create_time,` and `framework_audit_name`. If the filter is invalid, an
                                    +     * invalid argument error is returned.
                                    +     * For syntax details, see [AIP-160][https://google.aip.dev/160].
                                    +     * 
                                    + * + * string filter = 4 [(.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. The filters to apply to the framework audits.
                                    +     * Supported filters are `compliance_framework`, `compliance_state`,
                                    +     * `create_time,` and `framework_audit_name`. If the filter is invalid, an
                                    +     * invalid argument error is returned.
                                    +     * For syntax details, see [AIP-160][https://google.aip.dev/160].
                                    +     * 
                                    + * + * string filter = 4 [(.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. The filters to apply to the framework audits.
                                    +     * Supported filters are `compliance_framework`, `compliance_state`,
                                    +     * `create_time,` and `framework_audit_name`. If the filter is invalid, an
                                    +     * invalid argument error is returned.
                                    +     * For syntax details, see [AIP-160][https://google.aip.dev/160].
                                    +     * 
                                    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The filters to apply to the framework audits.
                                    +     * Supported filters are `compliance_framework`, `compliance_state`,
                                    +     * `create_time,` and `framework_audit_name`. If the filter is invalid, an
                                    +     * invalid argument error is returned.
                                    +     * For syntax details, see [AIP-160][https://google.aip.dev/160].
                                    +     * 
                                    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The filters to apply to the framework audits.
                                    +     * Supported filters are `compliance_framework`, `compliance_state`,
                                    +     * `create_time,` and `framework_audit_name`. If the filter is invalid, an
                                    +     * invalid argument error is returned.
                                    +     * For syntax details, see [AIP-160][https://google.aip.dev/160].
                                    +     * 
                                    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFrameworkAuditsRequest 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.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsRequestOrBuilder.java new file mode 100644 index 000000000000..8120d31161db --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ListFrameworkAuditsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The parent resource where the framework audits are listed.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                    +   * Required. The parent resource where the framework audits are listed.
                                    +   *
                                    +   * Supported formats are the following:
                                    +   *
                                    +   * * `organizations/{organization_id}/locations/{location}`
                                    +   * * `folders/{folder_id}/locations/{location}`
                                    +   * * `projects/{project_id}/locations/{location}`
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                    +   * Optional. The maximum number of framework audits to return. The service
                                    +   * might return fewer audits than this value. If unspecified, a maximum of 10
                                    +   * framework audits are returned. The maximum value is 50; values above 50 are
                                    +   * limited to 50.
                                    +   * 
                                    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                    +   * Optional. The `next_page_token` value that's returned from a previous list
                                    +   * request, if any.
                                    +   * 
                                    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                    +   * Optional. The `next_page_token` value that's returned from a previous list
                                    +   * request, if any.
                                    +   * 
                                    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                    +   * Optional. The filters to apply to the framework audits.
                                    +   * Supported filters are `compliance_framework`, `compliance_state`,
                                    +   * `create_time,` and `framework_audit_name`. If the filter is invalid, an
                                    +   * invalid argument error is returned.
                                    +   * For syntax details, see [AIP-160][https://google.aip.dev/160].
                                    +   * 
                                    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                    +   * Optional. The filters to apply to the framework audits.
                                    +   * Supported filters are `compliance_framework`, `compliance_state`,
                                    +   * `create_time,` and `framework_audit_name`. If the filter is invalid, an
                                    +   * invalid argument error is returned.
                                    +   * For syntax details, see [AIP-160][https://google.aip.dev/160].
                                    +   * 
                                    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsResponse.java new file mode 100644 index 000000000000..b002ba3a4e56 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsResponse.java @@ -0,0 +1,1222 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The response message for [ListFrameworkAudits][].
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse} + */ +public final class ListFrameworkAuditsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse) + ListFrameworkAuditsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListFrameworkAuditsResponse.newBuilder() to construct. + private ListFrameworkAuditsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFrameworkAuditsResponse() { + frameworkAudits_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFrameworkAuditsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse.class, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse.Builder.class); + } + + public static final int FRAMEWORK_AUDITS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + frameworkAudits_; + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + @java.lang.Override + public java.util.List + getFrameworkAuditsList() { + return frameworkAudits_; + } + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder> + getFrameworkAuditsOrBuilderList() { + return frameworkAudits_; + } + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + @java.lang.Override + public int getFrameworkAuditsCount() { + return frameworkAudits_.size(); + } + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getFrameworkAudits(int index) { + return frameworkAudits_.get(index); + } + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder + getFrameworkAuditsOrBuilder(int index) { + return frameworkAudits_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                    +   * A token, which you can send as the `page_token` to retrieve the next page.
                                    +   * If this field is omitted, there are no subsequent pages.
                                    +   * 
                                    + * + * 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; + } + } + + /** + * + * + *
                                    +   * A token, which you can send as the `page_token` to retrieve the next page.
                                    +   * If this field is omitted, there are no subsequent pages.
                                    +   * 
                                    + * + * 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; + } + } + + 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 < frameworkAudits_.size(); i++) { + output.writeMessage(1, frameworkAudits_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < frameworkAudits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, frameworkAudits_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse other = + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse) obj; + + if (!getFrameworkAuditsList().equals(other.getFrameworkAuditsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getFrameworkAuditsCount() > 0) { + hash = (37 * hash) + FRAMEWORK_AUDITS_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkAuditsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse 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.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse 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.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The response message for [ListFrameworkAudits][].
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse) + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse.class, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (frameworkAuditsBuilder_ == null) { + frameworkAudits_ = java.util.Collections.emptyList(); + } else { + frameworkAudits_ = null; + frameworkAuditsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkAuditsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse build() { + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse result = + new com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse result) { + if (frameworkAuditsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + frameworkAudits_ = java.util.Collections.unmodifiableList(frameworkAudits_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.frameworkAudits_ = frameworkAudits_; + } else { + result.frameworkAudits_ = frameworkAuditsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + .getDefaultInstance()) return this; + if (frameworkAuditsBuilder_ == null) { + if (!other.frameworkAudits_.isEmpty()) { + if (frameworkAudits_.isEmpty()) { + frameworkAudits_ = other.frameworkAudits_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFrameworkAuditsIsMutable(); + frameworkAudits_.addAll(other.frameworkAudits_); + } + onChanged(); + } + } else { + if (!other.frameworkAudits_.isEmpty()) { + if (frameworkAuditsBuilder_.isEmpty()) { + frameworkAuditsBuilder_.dispose(); + frameworkAuditsBuilder_ = null; + frameworkAudits_ = other.frameworkAudits_; + bitField0_ = (bitField0_ & ~0x00000001); + frameworkAuditsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFrameworkAuditsFieldBuilder() + : null; + } else { + frameworkAuditsBuilder_.addAllMessages(other.frameworkAudits_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.parser(), + extensionRegistry); + if (frameworkAuditsBuilder_ == null) { + ensureFrameworkAuditsIsMutable(); + frameworkAudits_.add(m); + } else { + frameworkAuditsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + frameworkAudits_ = java.util.Collections.emptyList(); + + private void ensureFrameworkAuditsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + frameworkAudits_ = + new java.util.ArrayList( + frameworkAudits_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder> + frameworkAuditsBuilder_; + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public java.util.List + getFrameworkAuditsList() { + if (frameworkAuditsBuilder_ == null) { + return java.util.Collections.unmodifiableList(frameworkAudits_); + } else { + return frameworkAuditsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public int getFrameworkAuditsCount() { + if (frameworkAuditsBuilder_ == null) { + return frameworkAudits_.size(); + } else { + return frameworkAuditsBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getFrameworkAudits( + int index) { + if (frameworkAuditsBuilder_ == null) { + return frameworkAudits_.get(index); + } else { + return frameworkAuditsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public Builder setFrameworkAudits( + int index, com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit value) { + if (frameworkAuditsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkAuditsIsMutable(); + frameworkAudits_.set(index, value); + onChanged(); + } else { + frameworkAuditsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public Builder setFrameworkAudits( + int index, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder builderForValue) { + if (frameworkAuditsBuilder_ == null) { + ensureFrameworkAuditsIsMutable(); + frameworkAudits_.set(index, builderForValue.build()); + onChanged(); + } else { + frameworkAuditsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public Builder addFrameworkAudits( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit value) { + if (frameworkAuditsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkAuditsIsMutable(); + frameworkAudits_.add(value); + onChanged(); + } else { + frameworkAuditsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public Builder addFrameworkAudits( + int index, com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit value) { + if (frameworkAuditsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkAuditsIsMutable(); + frameworkAudits_.add(index, value); + onChanged(); + } else { + frameworkAuditsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public Builder addFrameworkAudits( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder builderForValue) { + if (frameworkAuditsBuilder_ == null) { + ensureFrameworkAuditsIsMutable(); + frameworkAudits_.add(builderForValue.build()); + onChanged(); + } else { + frameworkAuditsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public Builder addFrameworkAudits( + int index, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder builderForValue) { + if (frameworkAuditsBuilder_ == null) { + ensureFrameworkAuditsIsMutable(); + frameworkAudits_.add(index, builderForValue.build()); + onChanged(); + } else { + frameworkAuditsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public Builder addAllFrameworkAudits( + java.lang.Iterable + values) { + if (frameworkAuditsBuilder_ == null) { + ensureFrameworkAuditsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frameworkAudits_); + onChanged(); + } else { + frameworkAuditsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public Builder clearFrameworkAudits() { + if (frameworkAuditsBuilder_ == null) { + frameworkAudits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + frameworkAuditsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public Builder removeFrameworkAudits(int index) { + if (frameworkAuditsBuilder_ == null) { + ensureFrameworkAuditsIsMutable(); + frameworkAudits_.remove(index); + onChanged(); + } else { + frameworkAuditsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder + getFrameworkAuditsBuilder(int index) { + return getFrameworkAuditsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder + getFrameworkAuditsOrBuilder(int index) { + if (frameworkAuditsBuilder_ == null) { + return frameworkAudits_.get(index); + } else { + return frameworkAuditsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder> + getFrameworkAuditsOrBuilderList() { + if (frameworkAuditsBuilder_ != null) { + return frameworkAuditsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frameworkAudits_); + } + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder + addFrameworkAuditsBuilder() { + return getFrameworkAuditsFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder + addFrameworkAuditsBuilder(int index) { + return getFrameworkAuditsFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The framework audits.
                                    +     * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + public java.util.List + getFrameworkAuditsBuilderList() { + return getFrameworkAuditsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder> + getFrameworkAuditsFieldBuilder() { + if (frameworkAuditsBuilder_ == null) { + frameworkAuditsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder>( + frameworkAudits_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + frameworkAudits_ = null; + } + return frameworkAuditsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                    +     * A token, which you can send as the `page_token` to retrieve the next page.
                                    +     * If this field is omitted, there are no subsequent pages.
                                    +     * 
                                    + * + * 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; + } + } + + /** + * + * + *
                                    +     * A token, which you can send as the `page_token` to retrieve the next page.
                                    +     * If this field is omitted, there are no subsequent pages.
                                    +     * 
                                    + * + * 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; + } + } + + /** + * + * + *
                                    +     * A token, which you can send as the `page_token` to retrieve the next page.
                                    +     * If this field is omitted, there are no subsequent pages.
                                    +     * 
                                    + * + * 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; + } + + /** + * + * + *
                                    +     * A token, which you can send as the `page_token` to retrieve the next page.
                                    +     * If this field is omitted, there are no subsequent pages.
                                    +     * 
                                    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * A token, which you can send as the `page_token` to retrieve the next page.
                                    +     * If this field is omitted, there are no subsequent pages.
                                    +     * 
                                    + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse) + private static final com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFrameworkAuditsResponse 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.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsResponseOrBuilder.java new file mode 100644 index 000000000000..1aa52a833cab --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkAuditsResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ListFrameworkAuditsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + java.util.List + getFrameworkAuditsList(); + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit getFrameworkAudits(int index); + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + int getFrameworkAuditsCount(); + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + java.util.List + getFrameworkAuditsOrBuilderList(); + + /** + * + * + *
                                    +   * The framework audits.
                                    +   * 
                                    + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkAudit framework_audits = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditOrBuilder getFrameworkAuditsOrBuilder( + int index); + + /** + * + * + *
                                    +   * A token, which you can send as the `page_token` to retrieve the next page.
                                    +   * If this field is omitted, there are no subsequent pages.
                                    +   * 
                                    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                    +   * A token, which you can send as the `page_token` to retrieve the next page.
                                    +   * If this field is omitted, there are no subsequent pages.
                                    +   * 
                                    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequest.java new file mode 100644 index 000000000000..e3a19f45a324 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequest.java @@ -0,0 +1,1174 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for
                                    + * [ListFrameworkComplianceSummariesRequest][google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest} + */ +public final class ListFrameworkComplianceSummariesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) + ListFrameworkComplianceSummariesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListFrameworkComplianceSummariesRequest.newBuilder() to construct. + private ListFrameworkComplianceSummariesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFrameworkComplianceSummariesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFrameworkComplianceSummariesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + .class, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                    +   * Required. The parent scope for the framework compliance summary.
                                    +   * 
                                    + * + * + * 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 scope for the framework compliance summary.
                                    +   * 
                                    + * + * + * 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. The requested page size. The server might return fewer items than
                                    +   * requested. If unspecified, the server picks an appropriate default.
                                    +   * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 4 [(.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. The filtering results.
                                    +   * 
                                    + * + * string filter = 4 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + 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.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + 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.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for
                                    +   * [ListFrameworkComplianceSummariesRequest][google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + .class, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + build() { + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + 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.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + .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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 scope for the framework compliance summary.
                                    +     * 
                                    + * + * + * 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 scope for the framework compliance summary.
                                    +     * 
                                    + * + * + * 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 scope for the framework compliance summary.
                                    +     * 
                                    + * + * + * 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 scope for the framework compliance summary.
                                    +     * 
                                    + * + * + * 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 scope for the framework compliance summary.
                                    +     * 
                                    + * + * + * 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. The requested page size. The server might return fewer items than
                                    +     * requested. If unspecified, the server picks an appropriate default.
                                    +     * 
                                    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * requested. If unspecified, the server picks an appropriate default.
                                    +     * 
                                    + * + * 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. The requested page size. The server might return fewer items than
                                    +     * requested. If unspecified, the server picks an appropriate default.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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. A token that identifies the page of results that the server
                                    +     * should return.
                                    +     * 
                                    + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.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. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.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. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The filtering results.
                                    +     * 
                                    + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFrameworkComplianceSummariesRequest 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.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequestOrBuilder.java new file mode 100644 index 000000000000..55f78f24be68 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ListFrameworkComplianceSummariesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The parent scope for the framework compliance summary.
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                    +   * Required. The parent scope for the framework compliance summary.
                                    +   * 
                                    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                    +   * Optional. The requested page size. The server might return fewer items than
                                    +   * requested. If unspecified, the server picks an appropriate default.
                                    +   * 
                                    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                    +   * Optional. A token that identifies the page of results that the server
                                    +   * should return.
                                    +   * 
                                    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                    +   * Optional. The filtering results.
                                    +   * 
                                    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesResponse.java new file mode 100644 index 000000000000..59db7fd220a6 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesResponse.java @@ -0,0 +1,1282 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The response message for
                                    + * [ListFrameworkComplianceSummariesResponse][google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse].
                                    + * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse} + */ +public final class ListFrameworkComplianceSummariesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse) + ListFrameworkComplianceSummariesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListFrameworkComplianceSummariesResponse.newBuilder() to construct. + private ListFrameworkComplianceSummariesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFrameworkComplianceSummariesResponse() { + frameworkComplianceSummaries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFrameworkComplianceSummariesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + .Builder.class); + } + + public static final int FRAMEWORK_COMPLIANCE_SUMMARIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + frameworkComplianceSummaries_; + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + @java.lang.Override + public java.util.List + getFrameworkComplianceSummariesList() { + return frameworkComplianceSummaries_; + } + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder> + getFrameworkComplianceSummariesOrBuilderList() { + return frameworkComplianceSummaries_; + } + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + @java.lang.Override + public int getFrameworkComplianceSummariesCount() { + return frameworkComplianceSummaries_.size(); + } + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + getFrameworkComplianceSummaries(int index) { + return frameworkComplianceSummaries_.get(index); + } + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder + getFrameworkComplianceSummariesOrBuilder(int index) { + return frameworkComplianceSummaries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + 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 < frameworkComplianceSummaries_.size(); i++) { + output.writeMessage(1, frameworkComplianceSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < frameworkComplianceSummaries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, frameworkComplianceSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse other = + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse) obj; + + if (!getFrameworkComplianceSummariesList().equals(other.getFrameworkComplianceSummariesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getFrameworkComplianceSummariesCount() > 0) { + hash = (37 * hash) + FRAMEWORK_COMPLIANCE_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkComplianceSummariesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + 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.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + 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.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The response message for
                                    +   * [ListFrameworkComplianceSummariesResponse][google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse].
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse) + com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + .class, + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (frameworkComplianceSummariesBuilder_ == null) { + frameworkComplianceSummaries_ = java.util.Collections.emptyList(); + } else { + frameworkComplianceSummaries_ = null; + frameworkComplianceSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + build() { + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse result = + new com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + result) { + if (frameworkComplianceSummariesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + frameworkComplianceSummaries_ = + java.util.Collections.unmodifiableList(frameworkComplianceSummaries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.frameworkComplianceSummaries_ = frameworkComplianceSummaries_; + } else { + result.frameworkComplianceSummaries_ = frameworkComplianceSummariesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + .getDefaultInstance()) return this; + if (frameworkComplianceSummariesBuilder_ == null) { + if (!other.frameworkComplianceSummaries_.isEmpty()) { + if (frameworkComplianceSummaries_.isEmpty()) { + frameworkComplianceSummaries_ = other.frameworkComplianceSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFrameworkComplianceSummariesIsMutable(); + frameworkComplianceSummaries_.addAll(other.frameworkComplianceSummaries_); + } + onChanged(); + } + } else { + if (!other.frameworkComplianceSummaries_.isEmpty()) { + if (frameworkComplianceSummariesBuilder_.isEmpty()) { + frameworkComplianceSummariesBuilder_.dispose(); + frameworkComplianceSummariesBuilder_ = null; + frameworkComplianceSummaries_ = other.frameworkComplianceSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + frameworkComplianceSummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFrameworkComplianceSummariesFieldBuilder() + : null; + } else { + frameworkComplianceSummariesBuilder_.addAllMessages( + other.frameworkComplianceSummaries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary m = + input.readMessage( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + .parser(), + extensionRegistry); + if (frameworkComplianceSummariesBuilder_ == null) { + ensureFrameworkComplianceSummariesIsMutable(); + frameworkComplianceSummaries_.add(m); + } else { + frameworkComplianceSummariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + frameworkComplianceSummaries_ = java.util.Collections.emptyList(); + + private void ensureFrameworkComplianceSummariesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + frameworkComplianceSummaries_ = + new java.util.ArrayList< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary>( + frameworkComplianceSummaries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder> + frameworkComplianceSummariesBuilder_; + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public java.util.List + getFrameworkComplianceSummariesList() { + if (frameworkComplianceSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(frameworkComplianceSummaries_); + } else { + return frameworkComplianceSummariesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public int getFrameworkComplianceSummariesCount() { + if (frameworkComplianceSummariesBuilder_ == null) { + return frameworkComplianceSummaries_.size(); + } else { + return frameworkComplianceSummariesBuilder_.getCount(); + } + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + getFrameworkComplianceSummaries(int index) { + if (frameworkComplianceSummariesBuilder_ == null) { + return frameworkComplianceSummaries_.get(index); + } else { + return frameworkComplianceSummariesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public Builder setFrameworkComplianceSummaries( + int index, com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary value) { + if (frameworkComplianceSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkComplianceSummariesIsMutable(); + frameworkComplianceSummaries_.set(index, value); + onChanged(); + } else { + frameworkComplianceSummariesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public Builder setFrameworkComplianceSummaries( + int index, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder + builderForValue) { + if (frameworkComplianceSummariesBuilder_ == null) { + ensureFrameworkComplianceSummariesIsMutable(); + frameworkComplianceSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + frameworkComplianceSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public Builder addFrameworkComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary value) { + if (frameworkComplianceSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkComplianceSummariesIsMutable(); + frameworkComplianceSummaries_.add(value); + onChanged(); + } else { + frameworkComplianceSummariesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public Builder addFrameworkComplianceSummaries( + int index, com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary value) { + if (frameworkComplianceSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworkComplianceSummariesIsMutable(); + frameworkComplianceSummaries_.add(index, value); + onChanged(); + } else { + frameworkComplianceSummariesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public Builder addFrameworkComplianceSummaries( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder + builderForValue) { + if (frameworkComplianceSummariesBuilder_ == null) { + ensureFrameworkComplianceSummariesIsMutable(); + frameworkComplianceSummaries_.add(builderForValue.build()); + onChanged(); + } else { + frameworkComplianceSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public Builder addFrameworkComplianceSummaries( + int index, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder + builderForValue) { + if (frameworkComplianceSummariesBuilder_ == null) { + ensureFrameworkComplianceSummariesIsMutable(); + frameworkComplianceSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + frameworkComplianceSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public Builder addAllFrameworkComplianceSummaries( + java.lang.Iterable< + ? extends com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary> + values) { + if (frameworkComplianceSummariesBuilder_ == null) { + ensureFrameworkComplianceSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frameworkComplianceSummaries_); + onChanged(); + } else { + frameworkComplianceSummariesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public Builder clearFrameworkComplianceSummaries() { + if (frameworkComplianceSummariesBuilder_ == null) { + frameworkComplianceSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + frameworkComplianceSummariesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public Builder removeFrameworkComplianceSummaries(int index) { + if (frameworkComplianceSummariesBuilder_ == null) { + ensureFrameworkComplianceSummariesIsMutable(); + frameworkComplianceSummaries_.remove(index); + onChanged(); + } else { + frameworkComplianceSummariesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder + getFrameworkComplianceSummariesBuilder(int index) { + return getFrameworkComplianceSummariesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder + getFrameworkComplianceSummariesOrBuilder(int index) { + if (frameworkComplianceSummariesBuilder_ == null) { + return frameworkComplianceSummaries_.get(index); + } else { + return frameworkComplianceSummariesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder> + getFrameworkComplianceSummariesOrBuilderList() { + if (frameworkComplianceSummariesBuilder_ != null) { + return frameworkComplianceSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frameworkComplianceSummaries_); + } + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder + addFrameworkComplianceSummariesBuilder() { + return getFrameworkComplianceSummariesFieldBuilder() + .addBuilder( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder + addFrameworkComplianceSummariesBuilder(int index) { + return getFrameworkComplianceSummariesFieldBuilder() + .addBuilder( + index, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + .getDefaultInstance()); + } + + /** + * + * + *
                                    +     * The list of framework compliance summaries.
                                    +     * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + public java.util.List< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder> + getFrameworkComplianceSummariesBuilderList() { + return getFrameworkComplianceSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder> + getFrameworkComplianceSummariesFieldBuilder() { + if (frameworkComplianceSummariesBuilder_ == null) { + frameworkComplianceSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary.Builder, + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder>( + frameworkComplianceSummaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + frameworkComplianceSummaries_ = null; + } + return frameworkComplianceSummariesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The token to retrieve the next page of results.
                                    +     * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .ListFrameworkComplianceSummariesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFrameworkComplianceSummariesResponse 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.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesResponseOrBuilder.java new file mode 100644 index 000000000000..956dac4cd1b2 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesResponseOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ListFrameworkComplianceSummariesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + java.util.List + getFrameworkComplianceSummariesList(); + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary + getFrameworkComplianceSummaries(int index); + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + int getFrameworkComplianceSummariesCount(); + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + java.util.List< + ? extends com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder> + getFrameworkComplianceSummariesOrBuilderList(); + + /** + * + * + *
                                    +   * The list of framework compliance summaries.
                                    +   * 
                                    + * + * + * repeated .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary framework_compliance_summaries = 1; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryOrBuilder + getFrameworkComplianceSummariesOrBuilder(int index); + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                    +   * Output only. The token to retrieve the next page of results.
                                    +   * 
                                    + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequest.java index cc6e8833f6ad..0d11ec3dfc9f 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for ListFrameworkDeployments.
                                    + * The request message for [ListFrameworkDeployments][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest} @@ -78,9 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. parent resource of the FrameworkDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -106,9 +106,9 @@ public java.lang.String getParent() { * * *
                                    -   * Required. parent resource of the FrameworkDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -137,8 +137,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -   * Optional. Requested page size. Server may return fewer items than
                                    -   * requested. If unspecified, server will pick an appropriate default.
                                    +   * Optional. The requested page size. The server might return fewer items than
                                    +   * requested.
                                    +   * If unspecified, the server picks an appropriate default.
                                        * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -159,7 +160,8 @@ public int getPageSize() { * * *
                                    -   * Optional. A token identifying a page of results the server should return.
                                    +   * Optional. A token that identifies a page of results the server should
                                    +   * return.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -183,7 +185,8 @@ public java.lang.String getPageToken() { * * *
                                    -   * Optional. A token identifying a page of results the server should return.
                                    +   * Optional. A token that identifies a page of results the server should
                                    +   * return.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -212,8 +215,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                    -   * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -   * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +   * Optional. The filter to be applied on the resource, as defined by
                                    +   * [AIP-160: Filtering](https://google.aip.dev/160).
                                        * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -237,8 +240,8 @@ public java.lang.String getFilter() { * * *
                                    -   * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -   * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +   * Optional. The filter to be applied on the resource, as defined by
                                    +   * [AIP-160: Filtering](https://google.aip.dev/160).
                                        * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -267,7 +270,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                                    -   * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +   * Optional. The sort order for the results. The following values are
                                    +   * supported:
                                    +   *
                                    +   * * `name`
                                    +   * * `name desc`
                                    +   *
                                    +   * If you do not specify a value, then the results are not sorted.
                                        * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -291,7 +300,13 @@ public java.lang.String getOrderBy() { * * *
                                    -   * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +   * Optional. The sort order for the results. The following values are
                                    +   * supported:
                                    +   *
                                    +   * * `name`
                                    +   * * `name desc`
                                    +   *
                                    +   * If you do not specify a value, then the results are not sorted.
                                        * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -519,7 +534,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for ListFrameworkDeployments.
                                    +   * The request message for [ListFrameworkDeployments][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest} @@ -773,9 +788,9 @@ public Builder mergeFrom( * * *
                                    -     * Required. parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -800,9 +815,9 @@ public java.lang.String getParent() { * * *
                                    -     * Required. parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -827,9 +842,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -     * Required. parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -853,9 +868,9 @@ public Builder setParent(java.lang.String value) { * * *
                                    -     * Required. parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -875,9 +890,9 @@ public Builder clearParent() { * * *
                                    -     * Required. parent resource of the FrameworkDeployment in the format:
                                    -     * organizations/{organization}/locations/{location}
                                    -     * Only global location is supported.
                                    +     * Required. The parent resource of the framework deployment, in the format
                                    +     * `organizations/{organization}/locations/{location}`.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -904,8 +919,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. Requested page size. Server may return fewer items than
                                    -     * requested. If unspecified, server will pick an appropriate default.
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * requested.
                                    +     * If unspecified, the server picks an appropriate default.
                                          * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -921,8 +937,9 @@ public int getPageSize() { * * *
                                    -     * Optional. Requested page size. Server may return fewer items than
                                    -     * requested. If unspecified, server will pick an appropriate default.
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * requested.
                                    +     * If unspecified, the server picks an appropriate default.
                                          * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -942,8 +959,9 @@ public Builder setPageSize(int value) { * * *
                                    -     * Optional. Requested page size. Server may return fewer items than
                                    -     * requested. If unspecified, server will pick an appropriate default.
                                    +     * Optional. The requested page size. The server might return fewer items than
                                    +     * requested.
                                    +     * If unspecified, the server picks an appropriate default.
                                          * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -963,7 +981,8 @@ public Builder clearPageSize() { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies a page of results the server should
                                    +     * return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -986,7 +1005,8 @@ public java.lang.String getPageToken() { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies a page of results the server should
                                    +     * return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1009,7 +1029,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies a page of results the server should
                                    +     * return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1031,7 +1052,8 @@ public Builder setPageToken(java.lang.String value) { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies a page of results the server should
                                    +     * return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1049,7 +1071,8 @@ public Builder clearPageToken() { * * *
                                    -     * Optional. A token identifying a page of results the server should return.
                                    +     * Optional. A token that identifies a page of results the server should
                                    +     * return.
                                          * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1074,8 +1097,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to be applied on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1098,8 +1121,8 @@ public java.lang.String getFilter() { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to be applied on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1122,8 +1145,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to be applied on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1145,8 +1168,8 @@ public Builder setFilter(java.lang.String value) { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to be applied on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1164,8 +1187,8 @@ public Builder clearFilter() { * * *
                                    -     * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -     * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +     * Optional. The filter to be applied on the resource, as defined by
                                    +     * [AIP-160: Filtering](https://google.aip.dev/160).
                                          * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1190,7 +1213,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1213,7 +1242,13 @@ public java.lang.String getOrderBy() { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1236,7 +1271,13 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1258,7 +1299,13 @@ public Builder setOrderBy(java.lang.String value) { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1276,7 +1323,13 @@ public Builder clearOrderBy() { * * *
                                    -     * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +     * Optional. The sort order for the results. The following values are
                                    +     * supported:
                                    +     *
                                    +     * * `name`
                                    +     * * `name desc`
                                    +     *
                                    +     * If you do not specify a value, then the results are not sorted.
                                          * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequestOrBuilder.java index 5a9fc9b71cf7..57f0ede20943 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequestOrBuilder.java @@ -28,9 +28,9 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * * *
                                    -   * Required. parent resource of the FrameworkDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -45,9 +45,9 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * * *
                                    -   * Required. parent resource of the FrameworkDeployment in the format:
                                    -   * organizations/{organization}/locations/{location}
                                    -   * Only global location is supported.
                                    +   * Required. The parent resource of the framework deployment, in the format
                                    +   * `organizations/{organization}/locations/{location}`.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -62,8 +62,9 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Requested page size. Server may return fewer items than
                                    -   * requested. If unspecified, server will pick an appropriate default.
                                    +   * Optional. The requested page size. The server might return fewer items than
                                    +   * requested.
                                    +   * If unspecified, the server picks an appropriate default.
                                        * 
                                    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -76,7 +77,8 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * * *
                                    -   * Optional. A token identifying a page of results the server should return.
                                    +   * Optional. A token that identifies a page of results the server should
                                    +   * return.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -89,7 +91,8 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * * *
                                    -   * Optional. A token identifying a page of results the server should return.
                                    +   * Optional. A token that identifies a page of results the server should
                                    +   * return.
                                        * 
                                    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -102,8 +105,8 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -   * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +   * Optional. The filter to be applied on the resource, as defined by
                                    +   * [AIP-160: Filtering](https://google.aip.dev/160).
                                        * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -116,8 +119,8 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Filter to be applied on the resource, defined by EBNF grammar
                                    -   * https://google.aip.dev/assets/misc/ebnf-filtering.txt.
                                    +   * Optional. The filter to be applied on the resource, as defined by
                                    +   * [AIP-160: Filtering](https://google.aip.dev/160).
                                        * 
                                    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -130,7 +133,13 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +   * Optional. The sort order for the results. The following values are
                                    +   * supported:
                                    +   *
                                    +   * * `name`
                                    +   * * `name desc`
                                    +   *
                                    +   * If you do not specify a value, then the results are not sorted.
                                        * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -143,7 +152,13 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * * *
                                    -   * Optional. Sort results. Supported are "name", "name desc" or "" (unsorted).
                                    +   * Optional. The sort order for the results. The following values are
                                    +   * supported:
                                    +   *
                                    +   * * `name`
                                    +   * * `name desc`
                                    +   *
                                    +   * If you do not specify a value, then the results are not sorted.
                                        * 
                                    * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsResponse.java index e641e918bd68..ae77120d5cb2 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsResponse.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsResponse.java @@ -23,7 +23,7 @@ * * *
                                    - * Response message for ListFrameworkDeployments.
                                    + * The response message for [ListFrameworkDeployments][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse} @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -94,7 +94,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -112,7 +112,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -128,7 +128,7 @@ public int getFrameworkDeploymentsCount() { * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -145,7 +145,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -167,7 +167,8 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -   * A token identifying a page of results the server should return.
                                    +   * A token that identifies the next page of results that the server
                                    +   * should return.
                                        * 
                                    * * string next_page_token = 2; @@ -191,7 +192,8 @@ public java.lang.String getNextPageToken() { * * *
                                    -   * A token identifying a page of results the server should return.
                                    +   * A token that identifies the next page of results that the server
                                    +   * should return.
                                        * 
                                    * * string next_page_token = 2; @@ -395,7 +397,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Response message for ListFrameworkDeployments.
                                    +   * The response message for [ListFrameworkDeployments][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse} @@ -670,7 +672,7 @@ private void ensureFrameworkDeploymentsIsMutable() { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -690,7 +692,7 @@ private void ensureFrameworkDeploymentsIsMutable() { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -709,7 +711,7 @@ public int getFrameworkDeploymentsCount() { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -729,7 +731,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFramew * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -755,7 +757,7 @@ public Builder setFrameworkDeployments( * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -779,7 +781,7 @@ public Builder setFrameworkDeployments( * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -805,7 +807,7 @@ public Builder addFrameworkDeployments( * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -831,7 +833,7 @@ public Builder addFrameworkDeployments( * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -854,7 +856,7 @@ public Builder addFrameworkDeployments( * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -878,7 +880,7 @@ public Builder addFrameworkDeployments( * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -903,7 +905,7 @@ public Builder addAllFrameworkDeployments( * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -925,7 +927,7 @@ public Builder clearFrameworkDeployments() { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -947,7 +949,7 @@ public Builder removeFrameworkDeployments(int index) { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -963,7 +965,7 @@ public Builder removeFrameworkDeployments(int index) { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -983,7 +985,7 @@ public Builder removeFrameworkDeployments(int index) { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -1004,7 +1006,7 @@ public Builder removeFrameworkDeployments(int index) { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -1022,7 +1024,7 @@ public Builder removeFrameworkDeployments(int index) { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -1041,7 +1043,7 @@ public Builder removeFrameworkDeployments(int index) { * * *
                                    -     * The list of FrameworkDeployments.
                                    +     * The list of framework deployments.
                                          * 
                                    * * @@ -1079,7 +1081,8 @@ public Builder removeFrameworkDeployments(int index) { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; @@ -1102,7 +1105,8 @@ public java.lang.String getNextPageToken() { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; @@ -1125,7 +1129,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; @@ -1147,7 +1152,8 @@ public Builder setNextPageToken(java.lang.String value) { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; @@ -1165,7 +1171,8 @@ public Builder clearNextPageToken() { * * *
                                    -     * A token identifying a page of results the server should return.
                                    +     * A token that identifies the next page of results that the server
                                    +     * should return.
                                          * 
                                    * * string next_page_token = 2; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsResponseOrBuilder.java index 689422c4ac9a..1ab500770b5f 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsResponseOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface ListFrameworkDeploymentsResponseOrBuilder * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -42,7 +42,7 @@ public interface ListFrameworkDeploymentsResponseOrBuilder * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -56,7 +56,7 @@ com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFrameworkDepl * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -69,7 +69,7 @@ com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFrameworkDepl * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -83,7 +83,7 @@ com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFrameworkDepl * * *
                                    -   * The list of FrameworkDeployments.
                                    +   * The list of framework deployments.
                                        * 
                                    * * @@ -97,7 +97,8 @@ com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFrameworkDepl * * *
                                    -   * A token identifying a page of results the server should return.
                                    +   * A token that identifies the next page of results that the server
                                    +   * should return.
                                        * 
                                    * * string next_page_token = 2; @@ -110,7 +111,8 @@ com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment getFrameworkDepl * * *
                                    -   * A token identifying a page of results the server should return.
                                    +   * A token that identifies the next page of results that the server
                                    +   * should return.
                                        * 
                                    * * string next_page_token = 2; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequest.java index 1ba372fcc4e6..0827e8665738 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for listing Frameworks.
                                    + * Request message for [ListFrameworks][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest} @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    -   * Only global location is supported.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -104,7 +104,7 @@ public java.lang.String getParent() { *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    -   * Only global location is supported.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -388,7 +388,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for listing Frameworks.
                                    +   * Request message for [ListFrameworks][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest} @@ -608,7 +608,7 @@ public Builder mergeFrom( *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    -     * Only global location is supported.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -635,7 +635,7 @@ public java.lang.String getParent() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    -     * Only global location is supported.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -662,7 +662,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    -     * Only global location is supported.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -688,7 +688,7 @@ public Builder setParent(java.lang.String value) { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    -     * Only global location is supported.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * @@ -710,7 +710,7 @@ public Builder clearParent() { *
                                          * Required. The parent resource name, in the format
                                          * `organizations/{organization}/locations/{location}`.
                                    -     * Only global location is supported.
                                    +     * The only supported location is `global`.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequestOrBuilder.java index eeb10aec7f7b..10efd9bacfc6 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface ListFrameworksRequestOrBuilder *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    -   * Only global location is supported.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * @@ -47,7 +47,7 @@ public interface ListFrameworksRequestOrBuilder *
                                        * Required. The parent resource name, in the format
                                        * `organizations/{organization}/locations/{location}`.
                                    -   * Only global location is supported.
                                    +   * The only supported location is `global`.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksResponse.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksResponse.java index 3d5dfcdaada7..d9355027b334 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksResponse.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksResponse.java @@ -23,8 +23,8 @@ * * *
                                    - * Response message for listing Frameworks.
                                    - * Contains a paginated list of Framework resources.
                                    + * The response message for [ListFrameworks][].
                                    + * Returns a paginated list of Framework resources.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse} @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -89,7 +89,7 @@ public java.util.List get * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -104,7 +104,7 @@ public java.util.List get * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -118,7 +118,7 @@ public int getFrameworksCount() { * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -132,7 +132,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFrameworks(int i * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -375,8 +375,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Response message for listing Frameworks.
                                    -   * Contains a paginated list of Framework resources.
                                    +   * The response message for [ListFrameworks][].
                                    +   * Returns a paginated list of Framework resources.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse} @@ -646,7 +646,7 @@ private void ensureFrameworksIsMutable() { * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -664,7 +664,7 @@ private void ensureFrameworksIsMutable() { * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -681,7 +681,7 @@ public int getFrameworksCount() { * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -698,7 +698,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFrameworks(int i * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -722,7 +722,7 @@ public Builder setFrameworks( * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -743,7 +743,7 @@ public Builder setFrameworks( * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -766,7 +766,7 @@ public Builder addFrameworks(com.google.cloud.cloudsecuritycompliance.v1.Framewo * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -790,7 +790,7 @@ public Builder addFrameworks( * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -811,7 +811,7 @@ public Builder addFrameworks( * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -832,7 +832,7 @@ public Builder addFrameworks( * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -854,7 +854,7 @@ public Builder addAllFrameworks( * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -874,7 +874,7 @@ public Builder clearFrameworks() { * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -894,7 +894,7 @@ public Builder removeFrameworks(int index) { * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -908,7 +908,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework.Builder getFramewor * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -926,7 +926,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkOrBuilder getFramewo * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -944,7 +944,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkOrBuilder getFramewo * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -958,7 +958,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework.Builder addFramewor * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -974,7 +974,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework.Builder addFramewor * * *
                                    -     * The list of Framework resources.
                                    +     * The list of framework resources.
                                          * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksResponseOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksResponseOrBuilder.java index a7ef9be4dd6b..5af723a5d1e1 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksResponseOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface ListFrameworksResponseOrBuilder * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -39,7 +39,7 @@ public interface ListFrameworksResponseOrBuilder * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -50,7 +50,7 @@ public interface ListFrameworksResponseOrBuilder * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -61,7 +61,7 @@ public interface ListFrameworksResponseOrBuilder * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; @@ -73,7 +73,7 @@ public interface ListFrameworksResponseOrBuilder * * *
                                    -   * The list of Framework resources.
                                    +   * The list of framework resources.
                                        * 
                                    * * repeated .google.cloud.cloudsecuritycompliance.v1.Framework frameworks = 1; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/LocationName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/LocationName.java new file mode 100644 index 000000000000..ea82741c14c6 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.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 LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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 (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ManualCloudControlAssessmentDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ManualCloudControlAssessmentDetails.java new file mode 100644 index 000000000000..3365dff200b0 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ManualCloudControlAssessmentDetails.java @@ -0,0 +1,769 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The details for a manual cloud control assessment.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails} + */ +public final class ManualCloudControlAssessmentDetails + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + ManualCloudControlAssessmentDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ManualCloudControlAssessmentDetails.newBuilder() to construct. + private ManualCloudControlAssessmentDetails( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManualCloudControlAssessmentDetails() { + manualCloudControlGuide_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManualCloudControlAssessmentDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails.Builder + .class); + } + + public static final int MANUAL_CLOUD_CONTROL_GUIDE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList manualCloudControlGuide_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                    +   * The guide for assessing a cloud control manually.
                                    +   * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @return A list containing the manualCloudControlGuide. + */ + public com.google.protobuf.ProtocolStringList getManualCloudControlGuideList() { + return manualCloudControlGuide_; + } + + /** + * + * + *
                                    +   * The guide for assessing a cloud control manually.
                                    +   * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @return The count of manualCloudControlGuide. + */ + public int getManualCloudControlGuideCount() { + return manualCloudControlGuide_.size(); + } + + /** + * + * + *
                                    +   * The guide for assessing a cloud control manually.
                                    +   * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param index The index of the element to return. + * @return The manualCloudControlGuide at the given index. + */ + public java.lang.String getManualCloudControlGuide(int index) { + return manualCloudControlGuide_.get(index); + } + + /** + * + * + *
                                    +   * The guide for assessing a cloud control manually.
                                    +   * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param index The index of the value to return. + * @return The bytes of the manualCloudControlGuide at the given index. + */ + public com.google.protobuf.ByteString getManualCloudControlGuideBytes(int index) { + return manualCloudControlGuide_.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 < manualCloudControlGuide_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, manualCloudControlGuide_.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 < manualCloudControlGuide_.size(); i++) { + dataSize += computeStringSizeNoTag(manualCloudControlGuide_.getRaw(i)); + } + size += dataSize; + size += 1 * getManualCloudControlGuideList().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.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails other = + (com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) obj; + + if (!getManualCloudControlGuideList().equals(other.getManualCloudControlGuideList())) + 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 (getManualCloudControlGuideCount() > 0) { + hash = (37 * hash) + MANUAL_CLOUD_CONTROL_GUIDE_FIELD_NUMBER; + hash = (53 * hash) + getManualCloudControlGuideList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + 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.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + 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.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The details for a manual cloud control assessment.
                                    +   * 
                                    + * + * Protobuf type {@code + * google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + manualCloudControlGuide_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails build() { + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails result = + new com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + manualCloudControlGuide_.makeImmutable(); + result.manualCloudControlGuide_ = manualCloudControlGuide_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + .getDefaultInstance()) return this; + if (!other.manualCloudControlGuide_.isEmpty()) { + if (manualCloudControlGuide_.isEmpty()) { + manualCloudControlGuide_ = other.manualCloudControlGuide_; + bitField0_ |= 0x00000001; + } else { + ensureManualCloudControlGuideIsMutable(); + manualCloudControlGuide_.addAll(other.manualCloudControlGuide_); + } + 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(); + ensureManualCloudControlGuideIsMutable(); + manualCloudControlGuide_.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 manualCloudControlGuide_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureManualCloudControlGuideIsMutable() { + if (!manualCloudControlGuide_.isModifiable()) { + manualCloudControlGuide_ = + new com.google.protobuf.LazyStringArrayList(manualCloudControlGuide_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                                    +     * The guide for assessing a cloud control manually.
                                    +     * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @return A list containing the manualCloudControlGuide. + */ + public com.google.protobuf.ProtocolStringList getManualCloudControlGuideList() { + manualCloudControlGuide_.makeImmutable(); + return manualCloudControlGuide_; + } + + /** + * + * + *
                                    +     * The guide for assessing a cloud control manually.
                                    +     * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @return The count of manualCloudControlGuide. + */ + public int getManualCloudControlGuideCount() { + return manualCloudControlGuide_.size(); + } + + /** + * + * + *
                                    +     * The guide for assessing a cloud control manually.
                                    +     * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param index The index of the element to return. + * @return The manualCloudControlGuide at the given index. + */ + public java.lang.String getManualCloudControlGuide(int index) { + return manualCloudControlGuide_.get(index); + } + + /** + * + * + *
                                    +     * The guide for assessing a cloud control manually.
                                    +     * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param index The index of the value to return. + * @return The bytes of the manualCloudControlGuide at the given index. + */ + public com.google.protobuf.ByteString getManualCloudControlGuideBytes(int index) { + return manualCloudControlGuide_.getByteString(index); + } + + /** + * + * + *
                                    +     * The guide for assessing a cloud control manually.
                                    +     * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param index The index to set the value at. + * @param value The manualCloudControlGuide to set. + * @return This builder for chaining. + */ + public Builder setManualCloudControlGuide(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureManualCloudControlGuideIsMutable(); + manualCloudControlGuide_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The guide for assessing a cloud control manually.
                                    +     * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param value The manualCloudControlGuide to add. + * @return This builder for chaining. + */ + public Builder addManualCloudControlGuide(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureManualCloudControlGuideIsMutable(); + manualCloudControlGuide_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The guide for assessing a cloud control manually.
                                    +     * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param values The manualCloudControlGuide to add. + * @return This builder for chaining. + */ + public Builder addAllManualCloudControlGuide(java.lang.Iterable values) { + ensureManualCloudControlGuideIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, manualCloudControlGuide_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The guide for assessing a cloud control manually.
                                    +     * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @return This builder for chaining. + */ + public Builder clearManualCloudControlGuide() { + manualCloudControlGuide_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The guide for assessing a cloud control manually.
                                    +     * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param value The bytes of the manualCloudControlGuide to add. + * @return This builder for chaining. + */ + public Builder addManualCloudControlGuideBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureManualCloudControlGuideIsMutable(); + manualCloudControlGuide_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + private static final com.google.cloud.cloudsecuritycompliance.v1 + .ManualCloudControlAssessmentDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManualCloudControlAssessmentDetails 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.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ManualCloudControlAssessmentDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ManualCloudControlAssessmentDetailsOrBuilder.java new file mode 100644 index 000000000000..7c76af7bcb39 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ManualCloudControlAssessmentDetailsOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ManualCloudControlAssessmentDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The guide for assessing a cloud control manually.
                                    +   * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @return A list containing the manualCloudControlGuide. + */ + java.util.List getManualCloudControlGuideList(); + + /** + * + * + *
                                    +   * The guide for assessing a cloud control manually.
                                    +   * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @return The count of manualCloudControlGuide. + */ + int getManualCloudControlGuideCount(); + + /** + * + * + *
                                    +   * The guide for assessing a cloud control manually.
                                    +   * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param index The index of the element to return. + * @return The manualCloudControlGuide at the given index. + */ + java.lang.String getManualCloudControlGuide(int index); + + /** + * + * + *
                                    +   * The guide for assessing a cloud control manually.
                                    +   * 
                                    + * + * repeated string manual_cloud_control_guide = 1; + * + * @param index The index of the value to return. + * @return The bytes of the manualCloudControlGuide at the given index. + */ + com.google.protobuf.ByteString getManualCloudControlGuideBytes(int index); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringProto.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringProto.java new file mode 100644 index 000000000000..22508f08741b --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringProto.java @@ -0,0 +1,635 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public final class MonitoringProto { + private MonitoringProto() {} + + 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_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_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" + + "8google/cloud/cloudsecuritycompliance/v1/monitoring.proto\022\'google.cloud.cloudse" + + "curitycompliance.v1\032\034google/api/annotati" + + "ons.proto\032\027google/api/client.proto\032\037goog" + + "le/api/field_behavior.proto\032\031google/api/" + + "resource.proto\0324google/cloud/cloudsecuri" + + "tycompliance/v1/common.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\032google/type/interval.proto\"\312\001\n" + + "\'ListFrameworkComplianceSummariesRequest\022Y\n" + + "\006parent\030\001 \001(\tBI\340A\002\372AC\022Ac" + + "loudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\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\"\265\001\n" + + "(ListFrameworkComplianceSummariesResponse\022k\n" + + "\036framework_compliance_summaries\030\001 \003(\0132C.google.cloud.cloud" + + "securitycompliance.v1.FrameworkComplianceSummary\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\003\"\366\010\n" + + "\031FrameworkComplianceReport\022\021\n" + + "\tframework\030\001 \001(\t\022\035\n" + + "\025framework_description\030\002 \001(\t\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022e\n" + + "\032control_assessment_details\030\004" + + " \001(\0132A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\022X\n" + + "\016framework_type\030\005 \001(\0162@.google.cloud.cloud" + + "securitycompliance.v1.Framework.FrameworkType\022Y\n" + + "\031supported_cloud_providers\030\006 \003(\016" + + "26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\022X\n" + + "\024framework_categories\030\007" + + " \003(\0162:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\022#\n" + + "\026framework_display_name\030\010 \001(\tB\003\340A\001\022\021\n" + + "\004name\030\t \001(\tB\003\340A\010\022\031\n" + + "\021major_revision_id\030\n" + + " \001(\003\022\031\n" + + "\021minor_revision_id\030\013 \001(\003\022_\n" + + "\027target_resource_details\030\014 \003(\0132>.google.cloud.cloudsecurityco" + + "mpliance.v1.TargetResourceDetails:\253\003\352A\247\003\n" + + "@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\022`projects/{pr" + + "oject}/locations/{location}/frameworkComplianceReports/{framework_compliance_rep" + + "ort}\022^folders/{folder}/locations/{location}/frameworkComplianceReports/{framewor" + + "k_compliance_report}\022jorganizations/{organization}/locations/{location}/framewor" + + "kComplianceReports/{framework_compliance" + + "_report}*\032frameworkComplianceReports2\031frameworkComplianceReport\"\262\001\n" + + "%FetchFrameworkComplianceReportRequest\022V\n" + + "\004name\030\001 \001(\tBH\340A\002\372AB\n" + + "@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\0221\n" + + "\010end_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\347\001\n" + + "\033ListFindingSummariesRequest\022M\n" + + "\006parent\030\001 \001(" + + "\tB=\340A\002\372A7\0225cloudsecuritycompliance.googleapis.com/FindingSummary\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\0223\n" + + "\010end_time\030\005 " + + "\001(\0132\032.google.protobuf.TimestampB\005\030\001\340A\001\"\220\001\n" + + "\034ListFindingSummariesResponse\022R\n" + + "\021finding_summaries\030\001" + + " \003(\01327.google.cloud.cloudsecuritycompliance.v1.FindingSummary\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\003\"\373\001\n" + + "%ListControlComplianceSummariesRequest\022W\n" + + "\006parent\030\001 \001(" + + "\tBG\340A\002\372AA\022?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\0223\n" + + "\010end_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\005\030\001\340A\001\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\257\001\n" + + "&ListControlComplianceSummariesResponse\022g\n" + + "\034control_compliance_summaries\030\001 \003(\013" + + "2A.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\003\"\306\001\n" + + ")AggregateFrameworkComplianceReportRequest\022V\n" + + "\004name\030\001 \001(\tBH\340A\002\372AB\n" + + "@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\022,\n" + + "\010interval\030\002 \001(\0132\025.google.type.IntervalB\003\340A\001\022\023\n" + + "\006filter\030\003 \001(\tB\003\340A\001\"\230\001\n" + + "*AggregateFrameworkComplianceReportResponse\022j\n" + + "\035aggregated_compliance_reports\030\001 \003(\0132C.google.cloud." + + "cloudsecuritycompliance.v1.AggregatedComplianceReport\"\220\001\n" + + "\030ControlAssessmentDetails\022\030\n" + + "\020passing_controls\030\001 \001(\005\022\030\n" + + "\020failing_controls\030\002 \001(\005\022!\n" + + "\031assessed_passing_controls\030\003 \001(\005\022\035\n" + + "\025not_assessed_controls\030\004 \001(\005\"\257\010\n" + + "\032FrameworkComplianceSummary\022\021\n" + + "\tframework\030\001 \001(\t\022e\n" + + "\032control_assessment_details\030\002" + + " \001(\0132A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\022X\n" + + "\016framework_type\030\003 \001(\0162@.google.cloud.cloudse" + + "curitycompliance.v1.Framework.FrameworkType\022Y\n" + + "\031supported_cloud_providers\030\004 \003(\01626" + + ".google.cloud.cloudsecuritycompliance.v1.CloudProvider\022X\n" + + "\024framework_categories\030\005" + + " \003(\0162:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\022#\n" + + "\026framework_display_name\030\006 \001(\tB\003\340A\001\022\021\n" + + "\004name\030\007 \001(\tB\003\340A\010\022\031\n" + + "\021major_revision_id\030\010 \001(\003\022\031\n" + + "\021minor_revision_id\030\t \001(\003\022_\n" + + "\027target_resource_details\030\n" + + " \003(\0132>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\270\003\352A\264\003\n" + + "Acloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\022cprojects/{pro" + + "ject}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_su" + + "mmary}\022afolders/{folder}/locations/{location}/frameworkComplianceSummaries/{fram" + + "ework_compliance_summary}\022morganizations/{organization}/locations/{location}/fra" + + "meworkComplianceSummaries/{framework_com" + + "pliance_summary}*\034frameworkComplianceSummaries2\032frameworkComplianceSummary\"\212\005\n" + + "\016FindingSummary\022\030\n" + + "\020finding_category\030\001 \001(\t\022L\n\r" + + "finding_class\030\002" + + " \001(\01625.google.cloud.cloudsecuritycompliance.v1.FindingClass\022C\n" + + "\010severity\030\003" + + " \001(\01621.google.cloud.cloudsecuritycompliance.v1.Severity\022\025\n\r" + + "finding_count\030\004 \001(\003\0224\n" + + "\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n" + + "\022related_frameworks\030\006 \003(\tB\003\340A\001\022\021\n" + + "\004name\030\007 \001(\tB\003\340A\010:\311\002\352A\305\002\n" + + "5cloudsecuritycompliance.googleapis.com/FindingSummary\022Jprojects/{project}/lo" + + "cations/{location}/findingSummaries/{finding_summary}\022Hfolders/{folder}/location" + + "s/{location}/findingSummaries/{finding_summary}\022Torganizations/{organization}/lo" + + "cations/{location}/findingSummaries/{fin" + + "ding_summary}*\020findingSummaries2\016findingSummary\"\232\t\n" + + "\030ControlComplianceSummary\022\017\n" + + "\007control\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t\022\023\n" + + "\013description\030\003 \001(\t\022_\n" + + "\030overall_evaluation_state\030\004" + + " \001(\01628.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\003\340A\003\022\034\n" + + "\024total_findings_count\030\005 \001(\005\022\035\n" + + "\025compliance_frameworks\030\006 \003(\t\022R\n" + + "\020similar_controls\030\007 \003(\013" + + "28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\022Z\n" + + "\025cloud_control_reports\030\010" + + " \003(\0132;.google.cloud.cloudsecuritycompliance.v1.CloudControlReport\022q\n" + + "\033control_responsibility_type\030\t \001(\0162L.google.clo" + + "ud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType\022\027\n" + + "\017is_fake_control\030\n" + + " \001(\010\022\021\n" + + "\004name\030\013 \001(\tB\003\340A\010:\324\004\352A\320\004\n" + + "?cloudsecuritycompliance.googleapis.com/Con" + + "trolComplianceSummary\022\230\001projects/{projec" + + "t}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}" + + "/controlComplianceSummaries/{control_com" + + "pliance_summary}\022\226\001folders/{folder}/loca" + + "tions/{location}/frameworkComplianceReports/{framework_compliance_report}/contro" + + "lComplianceSummaries/{control_compliance" + + "_summary}\022\242\001organizations/{organization}" + + "/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/c" + + "ontrolComplianceSummaries/{control_compl" + + "iance_summary}*\032controlComplianceSummaries2\030controlComplianceSummary\"\230\007\n" + + "\022CloudControlReport\022\177\n" + + "\'manual_cloud_control_assessment_details\030\r" + + " \001(\0132L.google.cloud.clou" + + "dsecuritycompliance.v1.ManualCloudControlAssessmentDetailsH\000\022r\n" + + " cloud_control_assessment_details\030\016 \001(\0132F.google.cloud.cl" + + "oudsecuritycompliance.v1.CloudControlAssessmentDetailsH\000\022\025\n\r" + + "cloud_control\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t\022\023\n" + + "\013description\030\003 \001(\t\022\022\n\n" + + "categories\030\006 \003(\t\022R\n" + + "\020similar_controls\030\t" + + " \003(\01328.google.cloud.cloudsecuritycompliance.v1.SimilarControls\022V\n" + + "\022cloud_control_type\030\n" + + " \001(\0162:.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type\022\030\n" + + "\020finding_category\030\013 \001(\t\022<\n" + + "\005rules\030\014 \003(\0132-.google.cloud.cloudsecuritycompliance.v1.Rule\022K\n" + + "\020finding_severity\030\017 \001(\01621.google.cl" + + "oud.cloudsecuritycompliance.v1.Severity\022R\n" + + "\020enforcement_mode\030\020 \001(\01628.google.cloud" + + ".cloudsecuritycompliance.v1.EnforcementMode\022 \n" + + "\030cloud_control_deployment\030\021 \001(\t\022\031\n" + + "\021major_revision_id\030\022 \001(\003\022\031\n" + + "\021minor_revision_id\030\023 \001(\003\022$\n" + + "\034framework_major_revision_ids\030\024 \003(\003B\024\n" + + "\022assessment_details\"I\n" + + "#ManualCloudControlAssessmentDetails\022\"\n" + + "\032manual_cloud_control_guide\030\001 \003(\t\"\220\001\n" + + "\035CloudControlAssessmentDetails\022\026\n" + + "\016findings_count\030\001 \001(\005\022W\n" + + "\020evaluation_state\030\002 \001(\01628.google." + + "cloud.cloudsecuritycompliance.v1.EvaluationStateB\003\340A\003\"8\n" + + "\017SimilarControls\022\021\n" + + "\tframework\030\001 \001(\t\022\022\n\n" + + "control_id\030\002 \001(\t\"\264\001\n" + + "\032AggregatedComplianceReport\022e\n" + + "\032control_assessment_details\030\001 \001(\0132A.google.cloud.clouds" + + "ecuritycompliance.v1.ControlAssessmentDetails\022/\n" + + "\013report_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\214\002\n" + + "\025TargetResourceDetails\022\034\n" + + "\024framework_deployment\030\001 \001(\t\022$\n" + + "\034target_resource_display_name\030\002 \001(\t\022\027\n" + + "\017target_resource\030\003 \001(\t\022/\n" + + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013update_time\030\005 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + + "\021major_revision_id\030\006 \001(\003\022\031\n" + + "\021minor_revision_id\030\007 \001(\003*\220\001\n" + + "\017EvaluationState\022 \n" + + "\034EVALUATION_STATE_UNSPECIFIED\020\000\022\033\n" + + "\027EVALUATION_STATE_PASSED\020\001\022\033\n" + + "\027EVALUATION_STATE_FAILED\020\002\022!\n" + + "\035EVALUATION_STATE_NOT_ASSESSED\020\003*\331\001\n" + + "\014FindingClass\022\035\n" + + "\031FINDING_CLASS_UNSPECIFIED\020\000\022\n\n" + + "\006THREAT\020\001\022\021\n\r" + + "VULNERABILITY\020\002\022\024\n" + + "\020MISCONFIGURATION\020\003\022\017\n" + + "\013OBSERVATION\020\004\022\r\n" + + "\tSCC_ERROR\020\005\022\025\n" + + "\021POSTURE_VIOLATION\020\006\022\025\n" + + "\021TOXIC_COMBINATION\020\007\022\027\n" + + "\023SENSITIVE_DATA_RISK\020\010\022\016\n\n" + + "CHOKEPOINT\020\t2\325\021\n\n" + + "Monitoring\022\250\003\n" + + " ListFrameworkComplianceSummaries\022P.google.cloud." + + "cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest\032Q.google.clou" + + "d.cloudsecuritycompliance.v1.ListFramewo" + + "rkComplianceSummariesResponse\"\336\001\332A\006paren" + + "t\202\323\344\223\002\316\001\022E/v1/{parent=organizations/*/lo" + + "cations/*}/frameworkComplianceSummariesZA\022?/v1/{parent=folders/*/locations/*}/fr" + + "ameworkComplianceSummariesZB\022@/v1/{paren" + + "t=projects/*/locations/*}/frameworkComplianceSummaries\022\340\002\n" + + "\024ListFindingSummaries\022D.google.cloud.cloudsecuritycompliance.v" + + "1.ListFindingSummariesRequest\032E.google.cloud.cloudsecuritycompliance.v1.ListFind" + + "ingSummariesResponse\"\272\001\332A\006parent\202\323\344\223\002\252\001\022" + + "9/v1/{parent=organizations/*/locations/*}/findingSummariesZ5\0223/v1/{parent=folder" + + "s/*/locations/*}/findingSummariesZ6\0224/v1" + + "/{parent=projects/*/locations/*}/findingSummaries\022\237\003\n" + + "\036FetchFrameworkComplianceReport\022N.google.cloud.cloudsecuritycomplia" + + "nce.v1.FetchFrameworkComplianceReportRequest\032B.google.cloud.cloudsecuritycomplia" + + "nce.v1.FrameworkComplianceReport\"\350\001\332A\004na" + + "me\202\323\344\223\002\332\001\022I/v1/{name=organizations/*/loc" + + "ations/*/frameworkComplianceReports/*}:fetchZE\022C/v1/{name=folders/*/locations/*/" + + "frameworkComplianceReports/*}:fetchZF\022D/" + + "v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch\022\363\003\n" + + "\036ListControlComplianceSummaries\022N.google.cloud.cl" + + "oudsecuritycompliance.v1.ListControlComplianceSummariesRequest\032O.google.cloud.cl" + + "oudsecuritycompliance.v1.ListControlComp" + + "lianceSummariesResponse\"\257\002\332A\006parent\202\323\344\223\002" + + "\237\002\022`/v1/{parent=organizations/*/location" + + "s/*/frameworkComplianceReports/*}/controlComplianceSummariesZ\\\022Z/v1/{parent=fold" + + "ers/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ]\022[/v" + + "1/{parent=projects/*/locations/*/framewo" + + "rkComplianceReports/*}/controlComplianceSummaries\022\304\003\n" + + "\"AggregateFrameworkComplianceReport\022R.google.cloud.cloudsecuritycom" + + "pliance.v1.AggregateFrameworkComplianceReportRequest\032S.google.cloud.cloudsecurit" + + "ycompliance.v1.AggregateFrameworkComplia" + + "nceReportResponse\"\364\001\332A\004name\202\323\344\223\002\346\001\022M/v1/" + + "{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregateZI\022G/v1" + + "/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregateZJ\022H/v1/{nam" + + "e=projects/*/locations/*/frameworkComplianceReports/*}:aggregate\032Z\312A&cloudsecuri" + + "tycompliance.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\211\003\n" + + "+com.google.cloud.cloudsecuritycompliance.v1B\017MonitoringProtoP\001Zecloud.google.co" + + "m/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompli" + + "ancepb\252\002\'Google.Cloud.CloudSecurityCompl" + + "iance.V1\312\002\'Google\\Cloud\\CloudSecurityCom" + + "pliance\\V1\352\002*Google::Cloud::CloudSecurityCompliance::V1\352A^\n" + + "5cloudsecuritycompliance.googleapis.com/FolderLocation\022%folde" + + "rs/{folder}/locations/{location}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_descriptor, + new java.lang.String[] { + "FrameworkComplianceSummaries", "NextPageToken", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceReport_descriptor, + new java.lang.String[] { + "Framework", + "FrameworkDescription", + "UpdateTime", + "ControlAssessmentDetails", + "FrameworkType", + "SupportedCloudProviders", + "FrameworkCategories", + "FrameworkDisplayName", + "Name", + "MajorRevisionId", + "MinorRevisionId", + "TargetResourceDetails", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_descriptor, + new java.lang.String[] { + "Name", "EndTime", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "EndTime", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesResponse_descriptor, + new java.lang.String[] { + "FindingSummaries", "NextPageToken", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesRequest_descriptor, + new java.lang.String[] { + "Parent", "EndTime", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ListControlComplianceSummariesResponse_descriptor, + new java.lang.String[] { + "ControlComplianceSummaries", "NextPageToken", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportRequest_descriptor, + new java.lang.String[] { + "Name", "Interval", "Filter", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregateFrameworkComplianceReportResponse_descriptor, + new java.lang.String[] { + "AggregatedComplianceReports", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlAssessmentDetails_descriptor, + new java.lang.String[] { + "PassingControls", + "FailingControls", + "AssessedPassingControls", + "NotAssessedControls", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_FrameworkComplianceSummary_descriptor, + new java.lang.String[] { + "Framework", + "ControlAssessmentDetails", + "FrameworkType", + "SupportedCloudProviders", + "FrameworkCategories", + "FrameworkDisplayName", + "Name", + "MajorRevisionId", + "MinorRevisionId", + "TargetResourceDetails", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_descriptor, + new java.lang.String[] { + "FindingCategory", + "FindingClass", + "Severity", + "FindingCount", + "UpdateTime", + "RelatedFrameworks", + "Name", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlComplianceSummary_descriptor, + new java.lang.String[] { + "Control", + "DisplayName", + "Description", + "OverallEvaluationState", + "TotalFindingsCount", + "ComplianceFrameworks", + "SimilarControls", + "CloudControlReports", + "ControlResponsibilityType", + "IsFakeControl", + "Name", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlReport_descriptor, + new java.lang.String[] { + "ManualCloudControlAssessmentDetails", + "CloudControlAssessmentDetails", + "CloudControl", + "DisplayName", + "Description", + "Categories", + "SimilarControls", + "CloudControlType", + "FindingCategory", + "Rules", + "FindingSeverity", + "EnforcementMode", + "CloudControlDeployment", + "MajorRevisionId", + "MinorRevisionId", + "FrameworkMajorRevisionIds", + "AssessmentDetails", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_ManualCloudControlAssessmentDetails_descriptor, + new java.lang.String[] { + "ManualCloudControlGuide", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_CloudControlAssessmentDetails_descriptor, + new java.lang.String[] { + "FindingsCount", "EvaluationState", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_descriptor, + new java.lang.String[] { + "Framework", "ControlId", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_AggregatedComplianceReport_descriptor, + new java.lang.String[] { + "ControlAssessmentDetails", "ReportTime", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_descriptor, + new java.lang.String[] { + "FrameworkDeployment", + "TargetResourceDisplayName", + "TargetResource", + "CreateTime", + "UpdateTime", + "MajorRevisionId", + "MinorRevisionId", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + 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); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.IntervalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ObservationDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ObservationDetails.java new file mode 100644 index 000000000000..ee93d9b74ef0 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ObservationDetails.java @@ -0,0 +1,1019 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The observation details for a finding.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ObservationDetails} + */ +public final class ObservationDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ObservationDetails) + ObservationDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ObservationDetails.newBuilder() to construct. + private ObservationDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ObservationDetails() { + currentValue_ = ""; + expectedValue_ = ""; + guidance_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObservationDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.Builder.class); + } + + public static final int CURRENT_VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object currentValue_ = ""; + + /** + * + * + *
                                    +   * Output only. The current value.
                                    +   * 
                                    + * + * string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The currentValue. + */ + @java.lang.Override + public java.lang.String getCurrentValue() { + java.lang.Object ref = currentValue_; + 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(); + currentValue_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. The current value.
                                    +   * 
                                    + * + * string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for currentValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentValueBytes() { + java.lang.Object ref = currentValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object expectedValue_ = ""; + + /** + * + * + *
                                    +   * Optional. The expected value.
                                    +   * 
                                    + * + * string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expectedValue. + */ + @java.lang.Override + public java.lang.String getExpectedValue() { + java.lang.Object ref = expectedValue_; + 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(); + expectedValue_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Optional. The expected value.
                                    +   * 
                                    + * + * string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for expectedValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpectedValueBytes() { + java.lang.Object ref = expectedValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expectedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GUIDANCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object guidance_ = ""; + + /** + * + * + *
                                    +   * Output only. Any guidance for the observation.
                                    +   * 
                                    + * + * string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The guidance. + */ + @java.lang.Override + public java.lang.String getGuidance() { + java.lang.Object ref = guidance_; + 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(); + guidance_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * Output only. Any guidance for the observation.
                                    +   * 
                                    + * + * string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for guidance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGuidanceBytes() { + java.lang.Object ref = guidance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + guidance_ = 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.GeneratedMessageV3.isStringEmpty(currentValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, expectedValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guidance_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, guidance_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, expectedValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guidance_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, guidance_); + } + 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.cloudsecuritycompliance.v1.ObservationDetails)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails other = + (com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails) obj; + + if (!getCurrentValue().equals(other.getCurrentValue())) return false; + if (!getExpectedValue().equals(other.getExpectedValue())) return false; + if (!getGuidance().equals(other.getGuidance())) 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) + CURRENT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentValue().hashCode(); + hash = (37 * hash) + EXPECTED_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getExpectedValue().hashCode(); + hash = (37 * hash) + GUIDANCE_FIELD_NUMBER; + hash = (53 * hash) + getGuidance().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails 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.cloudsecuritycompliance.v1.ObservationDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails 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.cloudsecuritycompliance.v1.ObservationDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The observation details for a finding.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ObservationDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ObservationDetails) + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + currentValue_ = ""; + expectedValue_ = ""; + guidance_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ObservationDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails build() { + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails result = + new com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.currentValue_ = currentValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expectedValue_ = expectedValue_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.guidance_ = guidance_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails.getDefaultInstance()) + return this; + if (!other.getCurrentValue().isEmpty()) { + currentValue_ = other.currentValue_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getExpectedValue().isEmpty()) { + expectedValue_ = other.expectedValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGuidance().isEmpty()) { + guidance_ = other.guidance_; + 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: + { + currentValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + expectedValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + guidance_ = 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 currentValue_ = ""; + + /** + * + * + *
                                    +     * Output only. The current value.
                                    +     * 
                                    + * + * string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The currentValue. + */ + public java.lang.String getCurrentValue() { + java.lang.Object ref = currentValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The current value.
                                    +     * 
                                    + * + * string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for currentValue. + */ + public com.google.protobuf.ByteString getCurrentValueBytes() { + java.lang.Object ref = currentValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. The current value.
                                    +     * 
                                    + * + * string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The currentValue to set. + * @return This builder for chaining. + */ + public Builder setCurrentValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + currentValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The current value.
                                    +     * 
                                    + * + * string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCurrentValue() { + currentValue_ = getDefaultInstance().getCurrentValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The current value.
                                    +     * 
                                    + * + * string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for currentValue to set. + * @return This builder for chaining. + */ + public Builder setCurrentValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currentValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object expectedValue_ = ""; + + /** + * + * + *
                                    +     * Optional. The expected value.
                                    +     * 
                                    + * + * string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expectedValue. + */ + public java.lang.String getExpectedValue() { + java.lang.Object ref = expectedValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expectedValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Optional. The expected value.
                                    +     * 
                                    + * + * string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for expectedValue. + */ + public com.google.protobuf.ByteString getExpectedValueBytes() { + java.lang.Object ref = expectedValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expectedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Optional. The expected value.
                                    +     * 
                                    + * + * string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The expectedValue to set. + * @return This builder for chaining. + */ + public Builder setExpectedValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + expectedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The expected value.
                                    +     * 
                                    + * + * string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExpectedValue() { + expectedValue_ = getDefaultInstance().getExpectedValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The expected value.
                                    +     * 
                                    + * + * string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for expectedValue to set. + * @return This builder for chaining. + */ + public Builder setExpectedValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + expectedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object guidance_ = ""; + + /** + * + * + *
                                    +     * Output only. Any guidance for the observation.
                                    +     * 
                                    + * + * string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The guidance. + */ + public java.lang.String getGuidance() { + java.lang.Object ref = guidance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + guidance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * Output only. Any guidance for the observation.
                                    +     * 
                                    + * + * string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for guidance. + */ + public com.google.protobuf.ByteString getGuidanceBytes() { + java.lang.Object ref = guidance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + guidance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * Output only. Any guidance for the observation.
                                    +     * 
                                    + * + * string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The guidance to set. + * @return This builder for chaining. + */ + public Builder setGuidance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + guidance_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. Any guidance for the observation.
                                    +     * 
                                    + * + * string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGuidance() { + guidance_ = getDefaultInstance().getGuidance(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. Any guidance for the observation.
                                    +     * 
                                    + * + * string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for guidance to set. + * @return This builder for chaining. + */ + public Builder setGuidanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + guidance_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ObservationDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ObservationDetails) + private static final com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ObservationDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObservationDetails 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.cloudsecuritycompliance.v1.ObservationDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ObservationDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ObservationDetailsOrBuilder.java new file mode 100644 index 000000000000..0d57bad4c4c7 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ObservationDetailsOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ObservationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ObservationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Output only. The current value.
                                    +   * 
                                    + * + * string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The currentValue. + */ + java.lang.String getCurrentValue(); + + /** + * + * + *
                                    +   * Output only. The current value.
                                    +   * 
                                    + * + * string current_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for currentValue. + */ + com.google.protobuf.ByteString getCurrentValueBytes(); + + /** + * + * + *
                                    +   * Optional. The expected value.
                                    +   * 
                                    + * + * string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expectedValue. + */ + java.lang.String getExpectedValue(); + + /** + * + * + *
                                    +   * Optional. The expected value.
                                    +   * 
                                    + * + * string expected_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for expectedValue. + */ + com.google.protobuf.ByteString getExpectedValueBytes(); + + /** + * + * + *
                                    +   * Output only. Any guidance for the observation.
                                    +   * 
                                    + * + * string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The guidance. + */ + java.lang.String getGuidance(); + + /** + * + * + *
                                    +   * Output only. Any guidance for the observation.
                                    +   * 
                                    + * + * string guidance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for guidance. + */ + com.google.protobuf.ByteString getGuidanceBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OperationMetadata.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OperationMetadata.java index 4ca03e8350b3..85ddc631e39c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OperationMetadata.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OperationMetadata.java @@ -23,7 +23,7 @@ * * *
                                    - * Represents the metadata of the long-running operation.
                                    + * The metadata for the long-running operation.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.OperationMetadata} @@ -181,7 +181,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
                                    -   * Output only. Server-defined resource path for the target of the operation.
                                    +   * Output only. The server-defined resource path for the target of the
                                    +   * operation.
                                        * 
                                    * * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -205,7 +206,8 @@ public java.lang.String getTarget() { * * *
                                    -   * Output only. Server-defined resource path for the target of the operation.
                                    +   * Output only. The server-defined resource path for the target of the
                                    +   * operation.
                                        * 
                                    * * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -234,7 +236,7 @@ public com.google.protobuf.ByteString getTargetBytes() { * * *
                                    -   * Output only. Name of the verb executed by the operation.
                                    +   * Output only. The name of the verb that was executed by the operation.
                                        * 
                                    * * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -258,7 +260,7 @@ public java.lang.String getVerb() { * * *
                                    -   * Output only. Name of the verb executed by the operation.
                                    +   * Output only. The name of the verb that was executed by the operation.
                                        * 
                                    * * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -287,7 +289,7 @@ public com.google.protobuf.ByteString getVerbBytes() { * * *
                                    -   * Output only. Human-readable status of the operation, if any.
                                    +   * Output only. The human-readable status of the operation, if any.
                                        * 
                                    * * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -311,7 +313,7 @@ public java.lang.String getStatusMessage() { * * *
                                    -   * Output only. Human-readable status of the operation, if any.
                                    +   * Output only. The human-readable status of the operation, if any.
                                        * 
                                    * * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -338,11 +340,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
                                    -   * Output only. Identifies whether the user has requested cancellation
                                    -   * of the operation. Operations that have been cancelled successfully
                                    -   * have [Operation.error][] value with a
                                    -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                    -   * `Code.CANCELLED`.
                                    +   * Output only. Identifies whether the user has requested that the operation
                                    +   * be cancelled. If an operation was cancelled successfully, then the field
                                    +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
                                    +   * contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED].
                                        * 
                                    * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -363,7 +364,7 @@ public boolean getRequestedCancellation() { * * *
                                    -   * Output only. API version used to start the operation.
                                    +   * Output only. The API version that was used to start the operation.
                                        * 
                                    * * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -387,7 +388,7 @@ public java.lang.String getApiVersion() { * * *
                                    -   * Output only. API version used to start the operation.
                                    +   * Output only. The API version that was used to start the operation.
                                        * 
                                    * * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -636,7 +637,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Represents the metadata of the long-running operation.
                                    +   * The metadata for the long-running operation.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.OperationMetadata} @@ -1341,7 +1342,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
                                    -     * Output only. Server-defined resource path for the target of the operation.
                                    +     * Output only. The server-defined resource path for the target of the
                                    +     * operation.
                                          * 
                                    * * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1364,7 +1366,8 @@ public java.lang.String getTarget() { * * *
                                    -     * Output only. Server-defined resource path for the target of the operation.
                                    +     * Output only. The server-defined resource path for the target of the
                                    +     * operation.
                                          * 
                                    * * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1387,7 +1390,8 @@ public com.google.protobuf.ByteString getTargetBytes() { * * *
                                    -     * Output only. Server-defined resource path for the target of the operation.
                                    +     * Output only. The server-defined resource path for the target of the
                                    +     * operation.
                                          * 
                                    * * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1409,7 +1413,8 @@ public Builder setTarget(java.lang.String value) { * * *
                                    -     * Output only. Server-defined resource path for the target of the operation.
                                    +     * Output only. The server-defined resource path for the target of the
                                    +     * operation.
                                          * 
                                    * * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1427,7 +1432,8 @@ public Builder clearTarget() { * * *
                                    -     * Output only. Server-defined resource path for the target of the operation.
                                    +     * Output only. The server-defined resource path for the target of the
                                    +     * operation.
                                          * 
                                    * * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1452,7 +1458,7 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Output only. Name of the verb executed by the operation.
                                    +     * Output only. The name of the verb that was executed by the operation.
                                          * 
                                    * * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1475,7 +1481,7 @@ public java.lang.String getVerb() { * * *
                                    -     * Output only. Name of the verb executed by the operation.
                                    +     * Output only. The name of the verb that was executed by the operation.
                                          * 
                                    * * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1498,7 +1504,7 @@ public com.google.protobuf.ByteString getVerbBytes() { * * *
                                    -     * Output only. Name of the verb executed by the operation.
                                    +     * Output only. The name of the verb that was executed by the operation.
                                          * 
                                    * * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1520,7 +1526,7 @@ public Builder setVerb(java.lang.String value) { * * *
                                    -     * Output only. Name of the verb executed by the operation.
                                    +     * Output only. The name of the verb that was executed by the operation.
                                          * 
                                    * * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1538,7 +1544,7 @@ public Builder clearVerb() { * * *
                                    -     * Output only. Name of the verb executed by the operation.
                                    +     * Output only. The name of the verb that was executed by the operation.
                                          * 
                                    * * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1563,7 +1569,7 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Output only. Human-readable status of the operation, if any.
                                    +     * Output only. The human-readable status of the operation, if any.
                                          * 
                                    * * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1586,7 +1592,7 @@ public java.lang.String getStatusMessage() { * * *
                                    -     * Output only. Human-readable status of the operation, if any.
                                    +     * Output only. The human-readable status of the operation, if any.
                                          * 
                                    * * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1609,7 +1615,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
                                    -     * Output only. Human-readable status of the operation, if any.
                                    +     * Output only. The human-readable status of the operation, if any.
                                          * 
                                    * * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1631,7 +1637,7 @@ public Builder setStatusMessage(java.lang.String value) { * * *
                                    -     * Output only. Human-readable status of the operation, if any.
                                    +     * Output only. The human-readable status of the operation, if any.
                                          * 
                                    * * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1649,7 +1655,7 @@ public Builder clearStatusMessage() { * * *
                                    -     * Output only. Human-readable status of the operation, if any.
                                    +     * Output only. The human-readable status of the operation, if any.
                                          * 
                                    * * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1674,11 +1680,10 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Output only. Identifies whether the user has requested cancellation
                                    -     * of the operation. Operations that have been cancelled successfully
                                    -     * have [Operation.error][] value with a
                                    -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                    -     * `Code.CANCELLED`.
                                    +     * Output only. Identifies whether the user has requested that the operation
                                    +     * be cancelled. If an operation was cancelled successfully, then the field
                                    +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
                                    +     * contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED].
                                          * 
                                    * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1694,11 +1699,10 @@ public boolean getRequestedCancellation() { * * *
                                    -     * Output only. Identifies whether the user has requested cancellation
                                    -     * of the operation. Operations that have been cancelled successfully
                                    -     * have [Operation.error][] value with a
                                    -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                    -     * `Code.CANCELLED`.
                                    +     * Output only. Identifies whether the user has requested that the operation
                                    +     * be cancelled. If an operation was cancelled successfully, then the field
                                    +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
                                    +     * contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED].
                                          * 
                                    * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1718,11 +1722,10 @@ public Builder setRequestedCancellation(boolean value) { * * *
                                    -     * Output only. Identifies whether the user has requested cancellation
                                    -     * of the operation. Operations that have been cancelled successfully
                                    -     * have [Operation.error][] value with a
                                    -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                    -     * `Code.CANCELLED`.
                                    +     * Output only. Identifies whether the user has requested that the operation
                                    +     * be cancelled. If an operation was cancelled successfully, then the field
                                    +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
                                    +     * contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED].
                                          * 
                                    * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1742,7 +1745,7 @@ public Builder clearRequestedCancellation() { * * *
                                    -     * Output only. API version used to start the operation.
                                    +     * Output only. The API version that was used to start the operation.
                                          * 
                                    * * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1765,7 +1768,7 @@ public java.lang.String getApiVersion() { * * *
                                    -     * Output only. API version used to start the operation.
                                    +     * Output only. The API version that was used to start the operation.
                                          * 
                                    * * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1788,7 +1791,7 @@ public com.google.protobuf.ByteString getApiVersionBytes() { * * *
                                    -     * Output only. API version used to start the operation.
                                    +     * Output only. The API version that was used to start the operation.
                                          * 
                                    * * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1810,7 +1813,7 @@ public Builder setApiVersion(java.lang.String value) { * * *
                                    -     * Output only. API version used to start the operation.
                                    +     * Output only. The API version that was used to start the operation.
                                          * 
                                    * * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1828,7 +1831,7 @@ public Builder clearApiVersion() { * * *
                                    -     * Output only. API version used to start the operation.
                                    +     * Output only. The API version that was used to start the operation.
                                          * 
                                    * * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OperationMetadataOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OperationMetadataOrBuilder.java index efde30deaf2f..d2477b475c62 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OperationMetadataOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OperationMetadataOrBuilder.java @@ -108,7 +108,8 @@ public interface OperationMetadataOrBuilder * * *
                                    -   * Output only. Server-defined resource path for the target of the operation.
                                    +   * Output only. The server-defined resource path for the target of the
                                    +   * operation.
                                        * 
                                    * * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -121,7 +122,8 @@ public interface OperationMetadataOrBuilder * * *
                                    -   * Output only. Server-defined resource path for the target of the operation.
                                    +   * Output only. The server-defined resource path for the target of the
                                    +   * operation.
                                        * 
                                    * * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -134,7 +136,7 @@ public interface OperationMetadataOrBuilder * * *
                                    -   * Output only. Name of the verb executed by the operation.
                                    +   * Output only. The name of the verb that was executed by the operation.
                                        * 
                                    * * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -147,7 +149,7 @@ public interface OperationMetadataOrBuilder * * *
                                    -   * Output only. Name of the verb executed by the operation.
                                    +   * Output only. The name of the verb that was executed by the operation.
                                        * 
                                    * * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -160,7 +162,7 @@ public interface OperationMetadataOrBuilder * * *
                                    -   * Output only. Human-readable status of the operation, if any.
                                    +   * Output only. The human-readable status of the operation, if any.
                                        * 
                                    * * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -173,7 +175,7 @@ public interface OperationMetadataOrBuilder * * *
                                    -   * Output only. Human-readable status of the operation, if any.
                                    +   * Output only. The human-readable status of the operation, if any.
                                        * 
                                    * * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -186,11 +188,10 @@ public interface OperationMetadataOrBuilder * * *
                                    -   * Output only. Identifies whether the user has requested cancellation
                                    -   * of the operation. Operations that have been cancelled successfully
                                    -   * have [Operation.error][] value with a
                                    -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                    -   * `Code.CANCELLED`.
                                    +   * Output only. Identifies whether the user has requested that the operation
                                    +   * be cancelled. If an operation was cancelled successfully, then the field
                                    +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
                                    +   * contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED].
                                        * 
                                    * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -203,7 +204,7 @@ public interface OperationMetadataOrBuilder * * *
                                    -   * Output only. API version used to start the operation.
                                    +   * Output only. The API version that was used to start the operation.
                                        * 
                                    * * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -216,7 +217,7 @@ public interface OperationMetadataOrBuilder * * *
                                    -   * Output only. API version used to start the operation.
                                    +   * Output only. The API version that was used to start the operation.
                                        * 
                                    * * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValue.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValue.java index 3f290fb68713..88cda3cd6319 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValue.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValue.java @@ -23,7 +23,7 @@ * * *
                                    - * Possible parameter value types.
                                    + * The possible parameter value types.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ParamValue} @@ -127,7 +127,7 @@ public KindCase getKindCase() { * * *
                                    -   * Represents a string value.
                                    +   * A string value.
                                        * 
                                    * * string string_value = 3; @@ -142,7 +142,7 @@ public boolean hasStringValue() { * * *
                                    -   * Represents a string value.
                                    +   * A string value.
                                        * 
                                    * * string string_value = 3; @@ -170,7 +170,7 @@ public java.lang.String getStringValue() { * * *
                                    -   * Represents a string value.
                                    +   * A string value.
                                        * 
                                    * * string string_value = 3; @@ -200,7 +200,7 @@ public com.google.protobuf.ByteString getStringValueBytes() { * * *
                                    -   * Represents a boolean value.
                                    +   * A boolean value.
                                        * 
                                    * * bool bool_value = 4; @@ -216,7 +216,7 @@ public boolean hasBoolValue() { * * *
                                    -   * Represents a boolean value.
                                    +   * A boolean value.
                                        * 
                                    * * bool bool_value = 4; @@ -237,7 +237,7 @@ public boolean getBoolValue() { * * *
                                    -   * Represents a repeated string.
                                    +   * A repeated string.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -253,7 +253,7 @@ public boolean hasStringListValue() { * * *
                                    -   * Represents a repeated string.
                                    +   * A repeated string.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -272,7 +272,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.StringList getStringListValue * * *
                                    -   * Represents a repeated string.
                                    +   * A repeated string.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -292,7 +292,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.StringList getStringListValue * * *
                                    -   * Represents a double value.
                                    +   * A double value.
                                        * 
                                    * * double number_value = 6; @@ -308,7 +308,7 @@ public boolean hasNumberValue() { * * *
                                    -   * Represents a double value.
                                    +   * A double value.
                                        * 
                                    * * double number_value = 6; @@ -329,7 +329,7 @@ public double getNumberValue() { * * *
                                    -   * Represents sub-parameter values.
                                    +   * Sub-parameter values.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -345,7 +345,7 @@ public boolean hasOneofValue() { * * *
                                    -   * Represents sub-parameter values.
                                    +   * Sub-parameter values.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -364,7 +364,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter getOneofValue() { * * *
                                    -   * Represents sub-parameter values.
                                    +   * Sub-parameter values.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -619,7 +619,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Possible parameter value types.
                                    +   * The possible parameter value types.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ParamValue} @@ -885,7 +885,7 @@ public Builder clearKind() { * * *
                                    -     * Represents a string value.
                                    +     * A string value.
                                          * 
                                    * * string string_value = 3; @@ -901,7 +901,7 @@ public boolean hasStringValue() { * * *
                                    -     * Represents a string value.
                                    +     * A string value.
                                          * 
                                    * * string string_value = 3; @@ -930,7 +930,7 @@ public java.lang.String getStringValue() { * * *
                                    -     * Represents a string value.
                                    +     * A string value.
                                          * 
                                    * * string string_value = 3; @@ -959,7 +959,7 @@ public com.google.protobuf.ByteString getStringValueBytes() { * * *
                                    -     * Represents a string value.
                                    +     * A string value.
                                          * 
                                    * * string string_value = 3; @@ -981,7 +981,7 @@ public Builder setStringValue(java.lang.String value) { * * *
                                    -     * Represents a string value.
                                    +     * A string value.
                                          * 
                                    * * string string_value = 3; @@ -1001,7 +1001,7 @@ public Builder clearStringValue() { * * *
                                    -     * Represents a string value.
                                    +     * A string value.
                                          * 
                                    * * string string_value = 3; @@ -1024,7 +1024,7 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Represents a boolean value.
                                    +     * A boolean value.
                                          * 
                                    * * bool bool_value = 4; @@ -1039,7 +1039,7 @@ public boolean hasBoolValue() { * * *
                                    -     * Represents a boolean value.
                                    +     * A boolean value.
                                          * 
                                    * * bool bool_value = 4; @@ -1057,7 +1057,7 @@ public boolean getBoolValue() { * * *
                                    -     * Represents a boolean value.
                                    +     * A boolean value.
                                          * 
                                    * * bool bool_value = 4; @@ -1077,7 +1077,7 @@ public Builder setBoolValue(boolean value) { * * *
                                    -     * Represents a boolean value.
                                    +     * A boolean value.
                                          * 
                                    * * bool bool_value = 4; @@ -1103,7 +1103,7 @@ public Builder clearBoolValue() { * * *
                                    -     * Represents a repeated string.
                                    +     * A repeated string.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -1119,7 +1119,7 @@ public boolean hasStringListValue() { * * *
                                    -     * Represents a repeated string.
                                    +     * A repeated string.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -1145,7 +1145,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.StringList getStringListValue * * *
                                    -     * Represents a repeated string.
                                    +     * A repeated string.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -1169,7 +1169,7 @@ public Builder setStringListValue( * * *
                                    -     * Represents a repeated string.
                                    +     * A repeated string.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -1190,7 +1190,7 @@ public Builder setStringListValue( * * *
                                    -     * Represents a repeated string.
                                    +     * A repeated string.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -1225,7 +1225,7 @@ public Builder mergeStringListValue( * * *
                                    -     * Represents a repeated string.
                                    +     * A repeated string.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -1251,7 +1251,7 @@ public Builder clearStringListValue() { * * *
                                    -     * Represents a repeated string.
                                    +     * A repeated string.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -1265,7 +1265,7 @@ public Builder clearStringListValue() { * * *
                                    -     * Represents a repeated string.
                                    +     * A repeated string.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -1287,7 +1287,7 @@ public Builder clearStringListValue() { * * *
                                    -     * Represents a repeated string.
                                    +     * A repeated string.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -1320,7 +1320,7 @@ public Builder clearStringListValue() { * * *
                                    -     * Represents a double value.
                                    +     * A double value.
                                          * 
                                    * * double number_value = 6; @@ -1335,7 +1335,7 @@ public boolean hasNumberValue() { * * *
                                    -     * Represents a double value.
                                    +     * A double value.
                                          * 
                                    * * double number_value = 6; @@ -1353,7 +1353,7 @@ public double getNumberValue() { * * *
                                    -     * Represents a double value.
                                    +     * A double value.
                                          * 
                                    * * double number_value = 6; @@ -1373,7 +1373,7 @@ public Builder setNumberValue(double value) { * * *
                                    -     * Represents a double value.
                                    +     * A double value.
                                          * 
                                    * * double number_value = 6; @@ -1399,7 +1399,7 @@ public Builder clearNumberValue() { * * *
                                    -     * Represents sub-parameter values.
                                    +     * Sub-parameter values.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -1415,7 +1415,7 @@ public boolean hasOneofValue() { * * *
                                    -     * Represents sub-parameter values.
                                    +     * Sub-parameter values.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -1441,7 +1441,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter getOneofValue() { * * *
                                    -     * Represents sub-parameter values.
                                    +     * Sub-parameter values.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -1464,7 +1464,7 @@ public Builder setOneofValue(com.google.cloud.cloudsecuritycompliance.v1.Paramet * * *
                                    -     * Represents sub-parameter values.
                                    +     * Sub-parameter values.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -1485,7 +1485,7 @@ public Builder setOneofValue( * * *
                                    -     * Represents sub-parameter values.
                                    +     * Sub-parameter values.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -1519,7 +1519,7 @@ public Builder mergeOneofValue(com.google.cloud.cloudsecuritycompliance.v1.Param * * *
                                    -     * Represents sub-parameter values.
                                    +     * Sub-parameter values.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -1545,7 +1545,7 @@ public Builder clearOneofValue() { * * *
                                    -     * Represents sub-parameter values.
                                    +     * Sub-parameter values.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -1558,7 +1558,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter.Builder getOneofVal * * *
                                    -     * Represents sub-parameter values.
                                    +     * Sub-parameter values.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -1579,7 +1579,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterOrBuilder getOneofVa * * *
                                    -     * Represents sub-parameter values.
                                    +     * Sub-parameter values.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValueOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValueOrBuilder.java index ad9d67e2a132..b0d62afb2e24 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValueOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValueOrBuilder.java @@ -28,7 +28,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a string value.
                                    +   * A string value.
                                        * 
                                    * * string string_value = 3; @@ -41,7 +41,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a string value.
                                    +   * A string value.
                                        * 
                                    * * string string_value = 3; @@ -54,7 +54,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a string value.
                                    +   * A string value.
                                        * 
                                    * * string string_value = 3; @@ -67,7 +67,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a boolean value.
                                    +   * A boolean value.
                                        * 
                                    * * bool bool_value = 4; @@ -80,7 +80,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a boolean value.
                                    +   * A boolean value.
                                        * 
                                    * * bool bool_value = 4; @@ -93,7 +93,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a repeated string.
                                    +   * A repeated string.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -106,7 +106,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a repeated string.
                                    +   * A repeated string.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -119,7 +119,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a repeated string.
                                    +   * A repeated string.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; @@ -130,7 +130,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a double value.
                                    +   * A double value.
                                        * 
                                    * * double number_value = 6; @@ -143,7 +143,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents a double value.
                                    +   * A double value.
                                        * 
                                    * * double number_value = 6; @@ -156,7 +156,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents sub-parameter values.
                                    +   * Sub-parameter values.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -169,7 +169,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents sub-parameter values.
                                    +   * Sub-parameter values.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; @@ -182,7 +182,7 @@ public interface ParamValueOrBuilder * * *
                                    -   * Represents sub-parameter values.
                                    +   * Sub-parameter values.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Parameter.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Parameter.java index 13b79554613f..47d0157b48e1 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Parameter.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Parameter.java @@ -23,7 +23,9 @@ * * *
                                    - * Parameters is a key-value pair.
                                    + * Parameters are key-value pairs that let you provide your custom location
                                    + * requirements, environment requirements, or other settings that are
                                    + * relevant to the cloud control.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Parameter} @@ -74,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. The name of the parameter.
                                    +   * Required. The name or key of the parameter.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -98,7 +100,7 @@ public java.lang.String getName() { * * *
                                    -   * Required. The name of the parameter.
                                    +   * Required. The name or key of the parameter.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -   * Required. The value of the parameter
                                    +   * Required. The value of the parameter.
                                        * 
                                    * * @@ -143,7 +145,7 @@ public boolean hasParameterValue() { * * *
                                    -   * Required. The value of the parameter
                                    +   * Required. The value of the parameter.
                                        * 
                                    * * @@ -163,7 +165,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue getParameterValue( * * *
                                    -   * Required. The value of the parameter
                                    +   * Required. The value of the parameter.
                                        * 
                                    * * @@ -357,7 +359,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Parameters is a key-value pair.
                                    +   * Parameters are key-value pairs that let you provide your custom location
                                    +   * requirements, environment requirements, or other settings that are
                                    +   * relevant to the cloud control.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Parameter} @@ -572,7 +576,7 @@ public Builder mergeFrom( * * *
                                    -     * Required. The name of the parameter.
                                    +     * Required. The name or key of the parameter.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -595,7 +599,7 @@ public java.lang.String getName() { * * *
                                    -     * Required. The name of the parameter.
                                    +     * Required. The name or key of the parameter.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -618,7 +622,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -     * Required. The name of the parameter.
                                    +     * Required. The name or key of the parameter.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -640,7 +644,7 @@ public Builder setName(java.lang.String value) { * * *
                                    -     * Required. The name of the parameter.
                                    +     * Required. The name or key of the parameter.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -658,7 +662,7 @@ public Builder clearName() { * * *
                                    -     * Required. The name of the parameter.
                                    +     * Required. The name or key of the parameter.
                                          * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -688,7 +692,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. The value of the parameter
                                    +     * Required. The value of the parameter.
                                          * 
                                    * * @@ -705,7 +709,7 @@ public boolean hasParameterValue() { * * *
                                    -     * Required. The value of the parameter
                                    +     * Required. The value of the parameter.
                                          * 
                                    * * @@ -728,7 +732,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue getParameterValue( * * *
                                    -     * Required. The value of the parameter
                                    +     * Required. The value of the parameter.
                                          * 
                                    * * @@ -753,7 +757,7 @@ public Builder setParameterValue(com.google.cloud.cloudsecuritycompliance.v1.Par * * *
                                    -     * Required. The value of the parameter
                                    +     * Required. The value of the parameter.
                                          * 
                                    * * @@ -776,7 +780,7 @@ public Builder setParameterValue( * * *
                                    -     * Required. The value of the parameter
                                    +     * Required. The value of the parameter.
                                          * 
                                    * * @@ -808,7 +812,7 @@ public Builder mergeParameterValue( * * *
                                    -     * Required. The value of the parameter
                                    +     * Required. The value of the parameter.
                                          * 
                                    * * @@ -830,7 +834,7 @@ public Builder clearParameterValue() { * * *
                                    -     * Required. The value of the parameter
                                    +     * Required. The value of the parameter.
                                          * 
                                    * * @@ -848,7 +852,7 @@ public Builder clearParameterValue() { * * *
                                    -     * Required. The value of the parameter
                                    +     * Required. The value of the parameter.
                                          * 
                                    * * @@ -870,7 +874,7 @@ public Builder clearParameterValue() { * * *
                                    -     * Required. The value of the parameter
                                    +     * Required. The value of the parameter.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterOrBuilder.java index d80d6bdf007a..a983788ff8f5 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterOrBuilder.java @@ -28,7 +28,7 @@ public interface ParameterOrBuilder * * *
                                    -   * Required. The name of the parameter.
                                    +   * Required. The name or key of the parameter.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,7 +41,7 @@ public interface ParameterOrBuilder * * *
                                    -   * Required. The name of the parameter.
                                    +   * Required. The name or key of the parameter.
                                        * 
                                    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -54,7 +54,7 @@ public interface ParameterOrBuilder * * *
                                    -   * Required. The value of the parameter
                                    +   * Required. The value of the parameter.
                                        * 
                                    * * @@ -69,7 +69,7 @@ public interface ParameterOrBuilder * * *
                                    -   * Required. The value of the parameter
                                    +   * Required. The value of the parameter.
                                        * 
                                    * * @@ -84,7 +84,7 @@ public interface ParameterOrBuilder * * *
                                    -   * Required. The value of the parameter
                                    +   * Required. The value of the parameter.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSpec.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSpec.java index ab1a6bde1d95..4ed1db80e83c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSpec.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSpec.java @@ -23,7 +23,7 @@ * * *
                                    - * A parameter spec of the cloud control.
                                    + * The parameter specification for the cloud control.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ParameterSpec} @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * The type of the parameter value.
                                    +   * The type of parameter value.
                                        * 
                                    * * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType} @@ -93,7 +93,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * String value.
                                    +     * A string value.
                                          * 
                                    * * STRING = 3; @@ -103,7 +103,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * Boolean value.
                                    +     * A boolean value.
                                          * 
                                    * * BOOLEAN = 4; @@ -113,7 +113,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * String list value.
                                    +     * A string list value.
                                          * 
                                    * * STRINGLIST = 5; @@ -123,7 +123,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * Numeric value.
                                    +     * A numeric value.
                                          * 
                                    * * NUMBER = 6; @@ -133,7 +133,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * OneOf value.
                                    +     * A oneOf value.
                                          * 
                                    * * ONEOF = 7; @@ -157,7 +157,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * String value.
                                    +     * A string value.
                                          * 
                                    * * STRING = 3; @@ -168,7 +168,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * Boolean value.
                                    +     * A boolean value.
                                          * 
                                    * * BOOLEAN = 4; @@ -179,7 +179,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * String list value.
                                    +     * A string list value.
                                          * 
                                    * * STRINGLIST = 5; @@ -190,7 +190,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * Numeric value.
                                    +     * A numeric value.
                                          * 
                                    * * NUMBER = 6; @@ -201,7 +201,7 @@ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -     * OneOf value.
                                    +     * A oneOf value.
                                          * 
                                    * * ONEOF = 7; @@ -362,7 +362,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                    -   * Optional. The display name of the parameter. The maximum length is 200
                                    +   * Optional. The friendly name of the parameter. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -387,7 +387,7 @@ public java.lang.String getDisplayName() { * * *
                                    -   * Optional. The display name of the parameter. The maximum length is 200
                                    +   * Optional. The friendly name of the parameter. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -470,7 +470,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -   * Required. if the parameter is required
                                    +   * Required. Whether the parameter is required.
                                        * 
                                    * * bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -489,7 +489,7 @@ public boolean getIsRequired() { * * *
                                    -   * Required. Parameter value type.
                                    +   * Required. The parameter value type.
                                        * 
                                    * * @@ -507,7 +507,7 @@ public int getValueTypeValue() { * * *
                                    -   * Required. Parameter value type.
                                    +   * Required. The parameter value type.
                                        * 
                                    * * @@ -595,7 +595,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue getDefaultValue() * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -612,7 +612,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue getDefaultValue() * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -630,7 +630,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParamValue getDefaultValue() * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -646,7 +646,7 @@ public int getSubstitutionRulesCount() { * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -663,7 +663,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule get * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -685,7 +685,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule get * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -702,7 +702,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule get * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -720,7 +720,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule get * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -736,7 +736,7 @@ public int getSubParametersCount() { * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -752,7 +752,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSpec getSubParameter * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -772,7 +772,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSpec getSubParameter * * *
                                    -   * Optional. The allowed set of values for the parameter.
                                    +   * Optional. The permitted set of values for the parameter.
                                        * 
                                    * * @@ -790,7 +790,7 @@ public boolean hasValidation() { * * *
                                    -   * Optional. The allowed set of values for the parameter.
                                    +   * Optional. The permitted set of values for the parameter.
                                        * 
                                    * * @@ -810,7 +810,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Validation getValidation() { * * *
                                    -   * Optional. The allowed set of values for the parameter.
                                    +   * Optional. The permitted set of values for the parameter.
                                        * 
                                    * * @@ -1082,7 +1082,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * A parameter spec of the cloud control.
                                    +   * The parameter specification for the cloud control.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ParameterSpec} @@ -1605,7 +1605,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Optional. The display name of the parameter. The maximum length is 200
                                    +     * Optional. The friendly name of the parameter. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -1629,7 +1629,7 @@ public java.lang.String getDisplayName() { * * *
                                    -     * Optional. The display name of the parameter. The maximum length is 200
                                    +     * Optional. The friendly name of the parameter. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -1653,7 +1653,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
                                    -     * Optional. The display name of the parameter. The maximum length is 200
                                    +     * Optional. The friendly name of the parameter. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -1676,7 +1676,7 @@ public Builder setDisplayName(java.lang.String value) { * * *
                                    -     * Optional. The display name of the parameter. The maximum length is 200
                                    +     * Optional. The friendly name of the parameter. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -1695,7 +1695,7 @@ public Builder clearDisplayName() { * * *
                                    -     * Optional. The display name of the parameter. The maximum length is 200
                                    +     * Optional. The friendly name of the parameter. The maximum length is 200
                                          * characters.
                                          * 
                                    * @@ -1837,7 +1837,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. if the parameter is required
                                    +     * Required. Whether the parameter is required.
                                          * 
                                    * * bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1853,7 +1853,7 @@ public boolean getIsRequired() { * * *
                                    -     * Required. if the parameter is required
                                    +     * Required. Whether the parameter is required.
                                          * 
                                    * * bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1873,7 +1873,7 @@ public Builder setIsRequired(boolean value) { * * *
                                    -     * Required. if the parameter is required
                                    +     * Required. Whether the parameter is required.
                                          * 
                                    * * bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1893,7 +1893,7 @@ public Builder clearIsRequired() { * * *
                                    -     * Required. Parameter value type.
                                    +     * Required. The parameter value type.
                                          * 
                                    * * @@ -1911,7 +1911,7 @@ public int getValueTypeValue() { * * *
                                    -     * Required. Parameter value type.
                                    +     * Required. The parameter value type.
                                          * 
                                    * * @@ -1932,7 +1932,7 @@ public Builder setValueTypeValue(int value) { * * *
                                    -     * Required. Parameter value type.
                                    +     * Required. The parameter value type.
                                          * 
                                    * * @@ -1954,7 +1954,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueType getVa * * *
                                    -     * Required. Parameter value type.
                                    +     * Required. The parameter value type.
                                          * 
                                    * * @@ -1979,7 +1979,7 @@ public Builder setValueType( * * *
                                    -     * Required. Parameter value type.
                                    +     * Required. The parameter value type.
                                          * 
                                    * * @@ -2233,7 +2233,7 @@ private void ensureSubstitutionRulesIsMutable() { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2253,7 +2253,7 @@ private void ensureSubstitutionRulesIsMutable() { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2272,7 +2272,7 @@ public int getSubstitutionRulesCount() { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2292,7 +2292,7 @@ public int getSubstitutionRulesCount() { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2318,7 +2318,7 @@ public Builder setSubstitutionRules( * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2343,7 +2343,7 @@ public Builder setSubstitutionRules( * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2369,7 +2369,7 @@ public Builder addSubstitutionRules( * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2395,7 +2395,7 @@ public Builder addSubstitutionRules( * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2419,7 +2419,7 @@ public Builder addSubstitutionRules( * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2444,7 +2444,7 @@ public Builder addSubstitutionRules( * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2469,7 +2469,7 @@ public Builder addAllSubstitutionRules( * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2491,7 +2491,7 @@ public Builder clearSubstitutionRules() { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2513,7 +2513,7 @@ public Builder removeSubstitutionRules(int index) { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2529,7 +2529,7 @@ public Builder removeSubstitutionRules(int index) { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2549,7 +2549,7 @@ public Builder removeSubstitutionRules(int index) { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2571,7 +2571,7 @@ public Builder removeSubstitutionRules(int index) { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2590,7 +2590,7 @@ public Builder removeSubstitutionRules(int index) { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2610,7 +2610,7 @@ public Builder removeSubstitutionRules(int index) { * * *
                                    -     * Optional. List of parameter substitutions.
                                    +     * Optional. The list of parameter substitutions.
                                          * 
                                    * * @@ -2665,7 +2665,7 @@ private void ensureSubParametersIsMutable() { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2685,7 +2685,7 @@ private void ensureSubParametersIsMutable() { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2704,7 +2704,7 @@ public int getSubParametersCount() { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2723,7 +2723,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterSpec getSubParameter * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2749,7 +2749,7 @@ public Builder setSubParameters( * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2773,7 +2773,7 @@ public Builder setSubParameters( * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2799,7 +2799,7 @@ public Builder addSubParameters( * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2825,7 +2825,7 @@ public Builder addSubParameters( * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2848,7 +2848,7 @@ public Builder addSubParameters( * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2872,7 +2872,7 @@ public Builder addSubParameters( * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2896,7 +2896,7 @@ public Builder addAllSubParameters( * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2918,7 +2918,7 @@ public Builder clearSubParameters() { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2940,7 +2940,7 @@ public Builder removeSubParameters(int index) { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2956,7 +2956,7 @@ public Builder removeSubParameters(int index) { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2976,7 +2976,7 @@ public Builder removeSubParameters(int index) { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -2997,7 +2997,7 @@ public Builder removeSubParameters(int index) { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -3015,7 +3015,7 @@ public Builder removeSubParameters(int index) { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -3034,7 +3034,7 @@ public Builder removeSubParameters(int index) { * * *
                                    -     * Optional. ParameterSpec for oneof attributes.
                                    +     * Optional. The parameter specification for `oneOf` attributes.
                                          * 
                                    * * @@ -3077,7 +3077,7 @@ public Builder removeSubParameters(int index) { * * *
                                    -     * Optional. The allowed set of values for the parameter.
                                    +     * Optional. The permitted set of values for the parameter.
                                          * 
                                    * * @@ -3094,7 +3094,7 @@ public boolean hasValidation() { * * *
                                    -     * Optional. The allowed set of values for the parameter.
                                    +     * Optional. The permitted set of values for the parameter.
                                          * 
                                    * * @@ -3117,7 +3117,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Validation getValidation() { * * *
                                    -     * Optional. The allowed set of values for the parameter.
                                    +     * Optional. The permitted set of values for the parameter.
                                          * 
                                    * * @@ -3142,7 +3142,7 @@ public Builder setValidation(com.google.cloud.cloudsecuritycompliance.v1.Validat * * *
                                    -     * Optional. The allowed set of values for the parameter.
                                    +     * Optional. The permitted set of values for the parameter.
                                          * 
                                    * * @@ -3165,7 +3165,7 @@ public Builder setValidation( * * *
                                    -     * Optional. The allowed set of values for the parameter.
                                    +     * Optional. The permitted set of values for the parameter.
                                          * 
                                    * * @@ -3196,7 +3196,7 @@ public Builder mergeValidation(com.google.cloud.cloudsecuritycompliance.v1.Valid * * *
                                    -     * Optional. The allowed set of values for the parameter.
                                    +     * Optional. The permitted set of values for the parameter.
                                          * 
                                    * * @@ -3218,7 +3218,7 @@ public Builder clearValidation() { * * *
                                    -     * Optional. The allowed set of values for the parameter.
                                    +     * Optional. The permitted set of values for the parameter.
                                          * 
                                    * * @@ -3235,7 +3235,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Validation.Builder getValidat * * *
                                    -     * Optional. The allowed set of values for the parameter.
                                    +     * Optional. The permitted set of values for the parameter.
                                          * 
                                    * * @@ -3257,7 +3257,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Validation.Builder getValidat * * *
                                    -     * Optional. The allowed set of values for the parameter.
                                    +     * Optional. The permitted set of values for the parameter.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSpecOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSpecOrBuilder.java index 8054be04c8db..99c6918dc9b0 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSpecOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSpecOrBuilder.java @@ -54,7 +54,7 @@ public interface ParameterSpecOrBuilder * * *
                                    -   * Optional. The display name of the parameter. The maximum length is 200
                                    +   * Optional. The friendly name of the parameter. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -68,7 +68,7 @@ public interface ParameterSpecOrBuilder * * *
                                    -   * Optional. The display name of the parameter. The maximum length is 200
                                    +   * Optional. The friendly name of the parameter. The maximum length is 200
                                        * characters.
                                        * 
                                    * @@ -110,7 +110,7 @@ public interface ParameterSpecOrBuilder * * *
                                    -   * Required. if the parameter is required
                                    +   * Required. Whether the parameter is required.
                                        * 
                                    * * bool is_required = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -123,7 +123,7 @@ public interface ParameterSpecOrBuilder * * *
                                    -   * Required. Parameter value type.
                                    +   * Required. The parameter value type.
                                        * 
                                    * * @@ -138,7 +138,7 @@ public interface ParameterSpecOrBuilder * * *
                                    -   * Required. Parameter value type.
                                    +   * Required. The parameter value type.
                                        * 
                                    * * @@ -196,7 +196,7 @@ public interface ParameterSpecOrBuilder * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -210,7 +210,7 @@ public interface ParameterSpecOrBuilder * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -224,7 +224,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule getSubstit * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -237,7 +237,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule getSubstit * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -252,7 +252,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule getSubstit * * *
                                    -   * Optional. List of parameter substitutions.
                                    +   * Optional. The list of parameter substitutions.
                                        * 
                                    * * @@ -266,7 +266,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule getSubstit * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -279,7 +279,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule getSubstit * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -292,7 +292,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule getSubstit * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -305,7 +305,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule getSubstit * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -319,7 +319,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule getSubstit * * *
                                    -   * Optional. ParameterSpec for oneof attributes.
                                    +   * Optional. The parameter specification for `oneOf` attributes.
                                        * 
                                    * * @@ -333,7 +333,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getSubParamet * * *
                                    -   * Optional. The allowed set of values for the parameter.
                                    +   * Optional. The permitted set of values for the parameter.
                                        * 
                                    * * @@ -348,7 +348,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getSubParamet * * *
                                    -   * Optional. The allowed set of values for the parameter.
                                    +   * Optional. The permitted set of values for the parameter.
                                        * 
                                    * * @@ -363,7 +363,7 @@ com.google.cloud.cloudsecuritycompliance.v1.ParameterSpecOrBuilder getSubParamet * * *
                                    -   * Optional. The allowed set of values for the parameter.
                                    +   * Optional. The permitted set of values for the parameter.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSubstitutionRule.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSubstitutionRule.java index 19ead36a39f1..473b57daed75 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSubstitutionRule.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSubstitutionRule.java @@ -23,7 +23,7 @@ * * *
                                    - * Parameter substitution rules.
                                    + * The parameter substitution rules.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule} @@ -118,7 +118,7 @@ public SubstitutionTypeCase getSubstitutionTypeCase() { * * *
                                    -   * Placeholder substitution rule.
                                    +   * The placeholder substitution rule.
                                        * 
                                    * * @@ -136,7 +136,7 @@ public boolean hasPlaceholderSubstitutionRule() { * * *
                                    -   * Placeholder substitution rule.
                                    +   * The placeholder substitution rule.
                                        * 
                                    * * @@ -160,7 +160,7 @@ public boolean hasPlaceholderSubstitutionRule() { * * *
                                    -   * Placeholder substitution rule.
                                    +   * The placeholder substitution rule.
                                        * 
                                    * * @@ -184,7 +184,7 @@ public boolean hasPlaceholderSubstitutionRule() { * * *
                                    -   * Attribute substitution rule.
                                    +   * The attribute substitution rule.
                                        * 
                                    * * @@ -202,7 +202,7 @@ public boolean hasAttributeSubstitutionRule() { * * *
                                    -   * Attribute substitution rule.
                                    +   * The attribute substitution rule.
                                        * 
                                    * * @@ -226,7 +226,7 @@ public boolean hasAttributeSubstitutionRule() { * * *
                                    -   * Attribute substitution rule.
                                    +   * The attribute substitution rule.
                                        * 
                                    * * @@ -452,7 +452,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Parameter substitution rules.
                                    +   * The parameter substitution rules.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRule} @@ -698,7 +698,7 @@ public Builder clearSubstitutionType() { * * *
                                    -     * Placeholder substitution rule.
                                    +     * The placeholder substitution rule.
                                          * 
                                    * * @@ -716,7 +716,7 @@ public boolean hasPlaceholderSubstitutionRule() { * * *
                                    -     * Placeholder substitution rule.
                                    +     * The placeholder substitution rule.
                                          * 
                                    * * @@ -748,7 +748,7 @@ public boolean hasPlaceholderSubstitutionRule() { * * *
                                    -     * Placeholder substitution rule.
                                    +     * The placeholder substitution rule.
                                          * 
                                    * * @@ -774,7 +774,7 @@ public Builder setPlaceholderSubstitutionRule( * * *
                                    -     * Placeholder substitution rule.
                                    +     * The placeholder substitution rule.
                                          * 
                                    * * @@ -798,7 +798,7 @@ public Builder setPlaceholderSubstitutionRule( * * *
                                    -     * Placeholder substitution rule.
                                    +     * The placeholder substitution rule.
                                          * 
                                    * * @@ -837,7 +837,7 @@ public Builder mergePlaceholderSubstitutionRule( * * *
                                    -     * Placeholder substitution rule.
                                    +     * The placeholder substitution rule.
                                          * 
                                    * * @@ -865,7 +865,7 @@ public Builder clearPlaceholderSubstitutionRule() { * * *
                                    -     * Placeholder substitution rule.
                                    +     * The placeholder substitution rule.
                                          * 
                                    * * @@ -881,7 +881,7 @@ public Builder clearPlaceholderSubstitutionRule() { * * *
                                    -     * Placeholder substitution rule.
                                    +     * The placeholder substitution rule.
                                          * 
                                    * * @@ -907,7 +907,7 @@ public Builder clearPlaceholderSubstitutionRule() { * * *
                                    -     * Placeholder substitution rule.
                                    +     * The placeholder substitution rule.
                                          * 
                                    * * @@ -951,7 +951,7 @@ public Builder clearPlaceholderSubstitutionRule() { * * *
                                    -     * Attribute substitution rule.
                                    +     * The attribute substitution rule.
                                          * 
                                    * * @@ -969,7 +969,7 @@ public boolean hasAttributeSubstitutionRule() { * * *
                                    -     * Attribute substitution rule.
                                    +     * The attribute substitution rule.
                                          * 
                                    * * @@ -1001,7 +1001,7 @@ public boolean hasAttributeSubstitutionRule() { * * *
                                    -     * Attribute substitution rule.
                                    +     * The attribute substitution rule.
                                          * 
                                    * * @@ -1027,7 +1027,7 @@ public Builder setAttributeSubstitutionRule( * * *
                                    -     * Attribute substitution rule.
                                    +     * The attribute substitution rule.
                                          * 
                                    * * @@ -1051,7 +1051,7 @@ public Builder setAttributeSubstitutionRule( * * *
                                    -     * Attribute substitution rule.
                                    +     * The attribute substitution rule.
                                          * 
                                    * * @@ -1090,7 +1090,7 @@ public Builder mergeAttributeSubstitutionRule( * * *
                                    -     * Attribute substitution rule.
                                    +     * The attribute substitution rule.
                                          * 
                                    * * @@ -1118,7 +1118,7 @@ public Builder clearAttributeSubstitutionRule() { * * *
                                    -     * Attribute substitution rule.
                                    +     * The attribute substitution rule.
                                          * 
                                    * * @@ -1134,7 +1134,7 @@ public Builder clearAttributeSubstitutionRule() { * * *
                                    -     * Attribute substitution rule.
                                    +     * The attribute substitution rule.
                                          * 
                                    * * @@ -1160,7 +1160,7 @@ public Builder clearAttributeSubstitutionRule() { * * *
                                    -     * Attribute substitution rule.
                                    +     * The attribute substitution rule.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSubstitutionRuleOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSubstitutionRuleOrBuilder.java index 9797c16ab47e..fd6e6e558b8a 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSubstitutionRuleOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParameterSubstitutionRuleOrBuilder.java @@ -28,7 +28,7 @@ public interface ParameterSubstitutionRuleOrBuilder * * *
                                    -   * Placeholder substitution rule.
                                    +   * The placeholder substitution rule.
                                        * 
                                    * * @@ -43,7 +43,7 @@ public interface ParameterSubstitutionRuleOrBuilder * * *
                                    -   * Placeholder substitution rule.
                                    +   * The placeholder substitution rule.
                                        * 
                                    * * @@ -59,7 +59,7 @@ public interface ParameterSubstitutionRuleOrBuilder * * *
                                    -   * Placeholder substitution rule.
                                    +   * The placeholder substitution rule.
                                        * 
                                    * * @@ -73,7 +73,7 @@ public interface ParameterSubstitutionRuleOrBuilder * * *
                                    -   * Attribute substitution rule.
                                    +   * The attribute substitution rule.
                                        * 
                                    * * @@ -88,7 +88,7 @@ public interface ParameterSubstitutionRuleOrBuilder * * *
                                    -   * Attribute substitution rule.
                                    +   * The attribute substitution rule.
                                        * 
                                    * * @@ -104,7 +104,7 @@ public interface ParameterSubstitutionRuleOrBuilder * * *
                                    -   * Attribute substitution rule.
                                    +   * The attribute substitution rule.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/PlaceholderSubstitutionRule.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/PlaceholderSubstitutionRule.java index 0948ce720637..882e7cda393b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/PlaceholderSubstitutionRule.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/PlaceholderSubstitutionRule.java @@ -23,7 +23,7 @@ * * *
                                    - * Placeholder is substituted in the rendered string.
                                    + * The placeholder that's substituted in the rendered string.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRule} @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Fully qualified proto attribute path (e.g., dot notation)
                                    +   * The fully qualified proto attribute path, in dot notation.
                                        * 
                                    * * string attribute = 1; @@ -97,7 +97,7 @@ public java.lang.String getAttribute() { * * *
                                    -   * Fully qualified proto attribute path (e.g., dot notation)
                                    +   * The fully qualified proto attribute path, in dot notation.
                                        * 
                                    * * string attribute = 1; @@ -283,7 +283,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Placeholder is substituted in the rendered string.
                                    +   * The placeholder that's substituted in the rendered string.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRule} @@ -478,7 +478,7 @@ public Builder mergeFrom( * * *
                                    -     * Fully qualified proto attribute path (e.g., dot notation)
                                    +     * The fully qualified proto attribute path, in dot notation.
                                          * 
                                    * * string attribute = 1; @@ -501,7 +501,7 @@ public java.lang.String getAttribute() { * * *
                                    -     * Fully qualified proto attribute path (e.g., dot notation)
                                    +     * The fully qualified proto attribute path, in dot notation.
                                          * 
                                    * * string attribute = 1; @@ -524,7 +524,7 @@ public com.google.protobuf.ByteString getAttributeBytes() { * * *
                                    -     * Fully qualified proto attribute path (e.g., dot notation)
                                    +     * The fully qualified proto attribute path, in dot notation.
                                          * 
                                    * * string attribute = 1; @@ -546,7 +546,7 @@ public Builder setAttribute(java.lang.String value) { * * *
                                    -     * Fully qualified proto attribute path (e.g., dot notation)
                                    +     * The fully qualified proto attribute path, in dot notation.
                                          * 
                                    * * string attribute = 1; @@ -564,7 +564,7 @@ public Builder clearAttribute() { * * *
                                    -     * Fully qualified proto attribute path (e.g., dot notation)
                                    +     * The fully qualified proto attribute path, in dot notation.
                                          * 
                                    * * string attribute = 1; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/PlaceholderSubstitutionRuleOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/PlaceholderSubstitutionRuleOrBuilder.java index f3ad8811d909..ece7f4e1584e 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/PlaceholderSubstitutionRuleOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/PlaceholderSubstitutionRuleOrBuilder.java @@ -28,7 +28,7 @@ public interface PlaceholderSubstitutionRuleOrBuilder * * *
                                    -   * Fully qualified proto attribute path (e.g., dot notation)
                                    +   * The fully qualified proto attribute path, in dot notation.
                                        * 
                                    * * string attribute = 1; @@ -41,7 +41,7 @@ public interface PlaceholderSubstitutionRuleOrBuilder * * *
                                    -   * Fully qualified proto attribute path (e.g., dot notation)
                                    +   * The fully qualified proto attribute path, in dot notation.
                                        * 
                                    * * string attribute = 1; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ProjectCreationConfig.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ProjectCreationConfig.java index f91b1de16a97..14b0ea155f57 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ProjectCreationConfig.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ProjectCreationConfig.java @@ -23,8 +23,8 @@ * * *
                                    - * ProjectCreationConfig contains the config to create a new project to be used
                                    - * as the target_resource of a deployment.
                                    + * The configuration that's required to create a project to be used
                                    + * as the target resource of a deployment.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfig} @@ -76,7 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. organizations/{org} or folders/{folder}
                                    +   * Required. The parent of the project, in the format
                                    +   * `organizations/{organizationID}` or `folders/{folderID}`.
                                        * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -100,7 +101,8 @@ public java.lang.String getParent() { * * *
                                    -   * Required. organizations/{org} or folders/{folder}
                                    +   * Required. The parent of the project, in the format
                                    +   * `organizations/{organizationID}` or `folders/{folderID}`.
                                        * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -   * Required. Display name of the project to be created.
                                    +   * Required. The display name of the project.
                                        * 
                                    * * string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -153,7 +155,7 @@ public java.lang.String getProjectDisplayName() { * * *
                                    -   * Required. Display name of the project to be created.
                                    +   * Required. The display name of the project.
                                        * 
                                    * * string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -182,7 +184,7 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { * * *
                                    -   * Required. Billing account id to be used for the project.
                                    +   * Required. The billing account ID for the project.
                                        * 
                                    * * string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -206,7 +208,7 @@ public java.lang.String getBillingAccountId() { * * *
                                    -   * Required. Billing account id to be used for the project.
                                    +   * Required. The billing account ID for the project.
                                        * 
                                    * * string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -410,8 +412,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * ProjectCreationConfig contains the config to create a new project to be used
                                    -   * as the target_resource of a deployment.
                                    +   * The configuration that's required to create a project to be used
                                    +   * as the target resource of a deployment.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfig} @@ -631,7 +633,8 @@ public Builder mergeFrom( * * *
                                    -     * Required. organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the project, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -654,7 +657,8 @@ public java.lang.String getParent() { * * *
                                    -     * Required. organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the project, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -677,7 +681,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                    -     * Required. organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the project, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -699,7 +704,8 @@ public Builder setParent(java.lang.String value) { * * *
                                    -     * Required. organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the project, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -717,7 +723,8 @@ public Builder clearParent() { * * *
                                    -     * Required. organizations/{org} or folders/{folder}
                                    +     * Required. The parent of the project, in the format
                                    +     * `organizations/{organizationID}` or `folders/{folderID}`.
                                          * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -742,7 +749,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                    -     * Required. Display name of the project to be created.
                                    +     * Required. The display name of the project.
                                          * 
                                    * * string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -765,7 +772,7 @@ public java.lang.String getProjectDisplayName() { * * *
                                    -     * Required. Display name of the project to be created.
                                    +     * Required. The display name of the project.
                                          * 
                                    * * string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -788,7 +795,7 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { * * *
                                    -     * Required. Display name of the project to be created.
                                    +     * Required. The display name of the project.
                                          * 
                                    * * string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -810,7 +817,7 @@ public Builder setProjectDisplayName(java.lang.String value) { * * *
                                    -     * Required. Display name of the project to be created.
                                    +     * Required. The display name of the project.
                                          * 
                                    * * string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -828,7 +835,7 @@ public Builder clearProjectDisplayName() { * * *
                                    -     * Required. Display name of the project to be created.
                                    +     * Required. The display name of the project.
                                          * 
                                    * * string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -853,7 +860,7 @@ public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) * * *
                                    -     * Required. Billing account id to be used for the project.
                                    +     * Required. The billing account ID for the project.
                                          * 
                                    * * string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -876,7 +883,7 @@ public java.lang.String getBillingAccountId() { * * *
                                    -     * Required. Billing account id to be used for the project.
                                    +     * Required. The billing account ID for the project.
                                          * 
                                    * * string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -899,7 +906,7 @@ public com.google.protobuf.ByteString getBillingAccountIdBytes() { * * *
                                    -     * Required. Billing account id to be used for the project.
                                    +     * Required. The billing account ID for the project.
                                          * 
                                    * * string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -921,7 +928,7 @@ public Builder setBillingAccountId(java.lang.String value) { * * *
                                    -     * Required. Billing account id to be used for the project.
                                    +     * Required. The billing account ID for the project.
                                          * 
                                    * * string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -939,7 +946,7 @@ public Builder clearBillingAccountId() { * * *
                                    -     * Required. Billing account id to be used for the project.
                                    +     * Required. The billing account ID for the project.
                                          * 
                                    * * string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ProjectCreationConfigOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ProjectCreationConfigOrBuilder.java index c373351d3f97..7629b649ee33 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ProjectCreationConfigOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ProjectCreationConfigOrBuilder.java @@ -28,7 +28,8 @@ public interface ProjectCreationConfigOrBuilder * * *
                                    -   * Required. organizations/{org} or folders/{folder}
                                    +   * Required. The parent of the project, in the format
                                    +   * `organizations/{organizationID}` or `folders/{folderID}`.
                                        * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,7 +42,8 @@ public interface ProjectCreationConfigOrBuilder * * *
                                    -   * Required. organizations/{org} or folders/{folder}
                                    +   * Required. The parent of the project, in the format
                                    +   * `organizations/{organizationID}` or `folders/{folderID}`.
                                        * 
                                    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -54,7 +56,7 @@ public interface ProjectCreationConfigOrBuilder * * *
                                    -   * Required. Display name of the project to be created.
                                    +   * Required. The display name of the project.
                                        * 
                                    * * string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -67,7 +69,7 @@ public interface ProjectCreationConfigOrBuilder * * *
                                    -   * Required. Display name of the project to be created.
                                    +   * Required. The display name of the project.
                                        * 
                                    * * string project_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -80,7 +82,7 @@ public interface ProjectCreationConfigOrBuilder * * *
                                    -   * Required. Billing account id to be used for the project.
                                    +   * Required. The billing account ID for the project.
                                        * 
                                    * * string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -93,7 +95,7 @@ public interface ProjectCreationConfigOrBuilder * * *
                                    -   * Required. Billing account id to be used for the project.
                                    +   * Required. The billing account ID for the project.
                                        * 
                                    * * string billing_account_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegexpPattern.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegexpPattern.java index bdd8e6ca9fe7..124083e2c950 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegexpPattern.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegexpPattern.java @@ -23,7 +23,7 @@ * * *
                                    - * Regular Expression Validator for parameter values.
                                    + * The regular expression (regex) validator for parameter values.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.RegexpPattern} @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Required. Regex Pattern to match the value(s) of parameter.
                                    +   * Required. The regex pattern to match the values of the parameter with.
                                        * 
                                    * * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -97,7 +97,7 @@ public java.lang.String getPattern() { * * *
                                    -   * Required. Regex Pattern to match the value(s) of parameter.
                                    +   * Required. The regex pattern to match the values of the parameter with.
                                        * 
                                    * * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -282,7 +282,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Regular Expression Validator for parameter values.
                                    +   * The regular expression (regex) validator for parameter values.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.RegexpPattern} @@ -467,7 +467,7 @@ public Builder mergeFrom( * * *
                                    -     * Required. Regex Pattern to match the value(s) of parameter.
                                    +     * Required. The regex pattern to match the values of the parameter with.
                                          * 
                                    * * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -490,7 +490,7 @@ public java.lang.String getPattern() { * * *
                                    -     * Required. Regex Pattern to match the value(s) of parameter.
                                    +     * Required. The regex pattern to match the values of the parameter with.
                                          * 
                                    * * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -513,7 +513,7 @@ public com.google.protobuf.ByteString getPatternBytes() { * * *
                                    -     * Required. Regex Pattern to match the value(s) of parameter.
                                    +     * Required. The regex pattern to match the values of the parameter with.
                                          * 
                                    * * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -535,7 +535,7 @@ public Builder setPattern(java.lang.String value) { * * *
                                    -     * Required. Regex Pattern to match the value(s) of parameter.
                                    +     * Required. The regex pattern to match the values of the parameter with.
                                          * 
                                    * * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -553,7 +553,7 @@ public Builder clearPattern() { * * *
                                    -     * Required. Regex Pattern to match the value(s) of parameter.
                                    +     * Required. The regex pattern to match the values of the parameter with.
                                          * 
                                    * * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegexpPatternOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegexpPatternOrBuilder.java index 1a2874f9d020..539862f480e0 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegexpPatternOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegexpPatternOrBuilder.java @@ -28,7 +28,7 @@ public interface RegexpPatternOrBuilder * * *
                                    -   * Required. Regex Pattern to match the value(s) of parameter.
                                    +   * Required. The regex pattern to match the values of the parameter with.
                                        * 
                                    * * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,7 +41,7 @@ public interface RegexpPatternOrBuilder * * *
                                    -   * Required. Regex Pattern to match the value(s) of parameter.
                                    +   * Required. The regex pattern to match the values of the parameter with.
                                        * 
                                    * * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegulatoryControlResponsibilityType.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegulatoryControlResponsibilityType.java new file mode 100644 index 000000000000..89167217c818 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RegulatoryControlResponsibilityType.java @@ -0,0 +1,207 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The responsibility type for the regulatory control.
                                    + * 
                                    + * + * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType} + */ +public enum RegulatoryControlResponsibilityType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +   * Default value. This value is unused.
                                    +   * 
                                    + * + * REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED = 0; + */ + REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                    +   * Google's responsibility.
                                    +   * 
                                    + * + * GOOGLE = 1; + */ + GOOGLE(1), + /** + * + * + *
                                    +   * Your responsibility.
                                    +   * 
                                    + * + * CUSTOMER = 2; + */ + CUSTOMER(2), + /** + * + * + *
                                    +   * Shared responsibility.
                                    +   * 
                                    + * + * SHARED = 3; + */ + SHARED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +   * Default value. This value is unused.
                                    +   * 
                                    + * + * REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED = 0; + */ + public static final int REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +   * Google's responsibility.
                                    +   * 
                                    + * + * GOOGLE = 1; + */ + public static final int GOOGLE_VALUE = 1; + + /** + * + * + *
                                    +   * Your responsibility.
                                    +   * 
                                    + * + * CUSTOMER = 2; + */ + public static final int CUSTOMER_VALUE = 2; + + /** + * + * + *
                                    +   * Shared responsibility.
                                    +   * 
                                    + * + * SHARED = 3; + */ + public static final int SHARED_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 RegulatoryControlResponsibilityType 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 RegulatoryControlResponsibilityType forNumber(int value) { + switch (value) { + case 0: + return REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED; + case 1: + return GOOGLE; + case 2: + return CUSTOMER; + case 3: + return SHARED; + 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 RegulatoryControlResponsibilityType findValueByNumber(int number) { + return RegulatoryControlResponsibilityType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RegulatoryControlResponsibilityType[] VALUES = values(); + + public static RegulatoryControlResponsibilityType 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 RegulatoryControlResponsibilityType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType) +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ReportSummary.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ReportSummary.java new file mode 100644 index 000000000000..80adc073aa6b --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ReportSummary.java @@ -0,0 +1,933 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * Additional information for an audit operation.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ReportSummary} + */ +public final class ReportSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.ReportSummary) + ReportSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReportSummary.newBuilder() to construct. + private ReportSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReportSummary() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.class, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder.class); + } + + public static final int TOTAL_COUNT_FIELD_NUMBER = 1; + private int totalCount_ = 0; + + /** + * + * + *
                                    +   * Output only. The total number of checks.
                                    +   * 
                                    + * + * int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalCount. + */ + @java.lang.Override + public int getTotalCount() { + return totalCount_; + } + + public static final int COMPLIANT_COUNT_FIELD_NUMBER = 2; + private int compliantCount_ = 0; + + /** + * + * + *
                                    +   * Output only. The number of compliant checks.
                                    +   * 
                                    + * + * int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The compliantCount. + */ + @java.lang.Override + public int getCompliantCount() { + return compliantCount_; + } + + public static final int VIOLATION_COUNT_FIELD_NUMBER = 3; + private int violationCount_ = 0; + + /** + * + * + *
                                    +   * Output only. The number of checks with violations.
                                    +   * 
                                    + * + * int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The violationCount. + */ + @java.lang.Override + public int getViolationCount() { + return violationCount_; + } + + public static final int MANUAL_REVIEW_NEEDED_COUNT_FIELD_NUMBER = 4; + private int manualReviewNeededCount_ = 0; + + /** + * + * + *
                                    +   * Output only. The number of checks with "manual review needed" status.
                                    +   * 
                                    + * + * int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The manualReviewNeededCount. + */ + @java.lang.Override + public int getManualReviewNeededCount() { + return manualReviewNeededCount_; + } + + public static final int ERROR_COUNT_FIELD_NUMBER = 5; + private int errorCount_ = 0; + + /** + * + * + *
                                    +   * Output only. The number of checks that can't be performed due to errors.
                                    +   * 
                                    + * + * int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorCount. + */ + @java.lang.Override + public int getErrorCount() { + return errorCount_; + } + + 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 (totalCount_ != 0) { + output.writeInt32(1, totalCount_); + } + if (compliantCount_ != 0) { + output.writeInt32(2, compliantCount_); + } + if (violationCount_ != 0) { + output.writeInt32(3, violationCount_); + } + if (manualReviewNeededCount_ != 0) { + output.writeInt32(4, manualReviewNeededCount_); + } + if (errorCount_ != 0) { + output.writeInt32(5, errorCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (totalCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalCount_); + } + if (compliantCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, compliantCount_); + } + if (violationCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, violationCount_); + } + if (manualReviewNeededCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, manualReviewNeededCount_); + } + if (errorCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, errorCount_); + } + 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.cloudsecuritycompliance.v1.ReportSummary)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary other = + (com.google.cloud.cloudsecuritycompliance.v1.ReportSummary) obj; + + if (getTotalCount() != other.getTotalCount()) return false; + if (getCompliantCount() != other.getCompliantCount()) return false; + if (getViolationCount() != other.getViolationCount()) return false; + if (getManualReviewNeededCount() != other.getManualReviewNeededCount()) return false; + if (getErrorCount() != other.getErrorCount()) 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) + TOTAL_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); + hash = (37 * hash) + COMPLIANT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCompliantCount(); + hash = (37 * hash) + VIOLATION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getViolationCount(); + hash = (37 * hash) + MANUAL_REVIEW_NEEDED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getManualReviewNeededCount(); + hash = (37 * hash) + ERROR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getErrorCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary 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.cloudsecuritycompliance.v1.ReportSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary 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.cloudsecuritycompliance.v1.ReportSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * Additional information for an audit operation.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.ReportSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.ReportSummary) + com.google.cloud.cloudsecuritycompliance.v1.ReportSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.class, + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalCount_ = 0; + compliantCount_ = 0; + violationCount_ = 0; + manualReviewNeededCount_ = 0; + errorCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.AuditProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_ReportSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary build() { + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ReportSummary buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.ReportSummary result = + new com.google.cloud.cloudsecuritycompliance.v1.ReportSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.ReportSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalCount_ = totalCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.compliantCount_ = compliantCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.violationCount_ = violationCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.manualReviewNeededCount_ = manualReviewNeededCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.errorCount_ = errorCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.ReportSummary) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.ReportSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.ReportSummary other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.ReportSummary.getDefaultInstance()) + return this; + if (other.getTotalCount() != 0) { + setTotalCount(other.getTotalCount()); + } + if (other.getCompliantCount() != 0) { + setCompliantCount(other.getCompliantCount()); + } + if (other.getViolationCount() != 0) { + setViolationCount(other.getViolationCount()); + } + if (other.getManualReviewNeededCount() != 0) { + setManualReviewNeededCount(other.getManualReviewNeededCount()); + } + if (other.getErrorCount() != 0) { + setErrorCount(other.getErrorCount()); + } + 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: + { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + compliantCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + violationCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + manualReviewNeededCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + errorCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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 totalCount_; + + /** + * + * + *
                                    +     * Output only. The total number of checks.
                                    +     * 
                                    + * + * int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalCount. + */ + @java.lang.Override + public int getTotalCount() { + return totalCount_; + } + + /** + * + * + *
                                    +     * Output only. The total number of checks.
                                    +     * 
                                    + * + * int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The totalCount to set. + * @return This builder for chaining. + */ + public Builder setTotalCount(int value) { + + totalCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The total number of checks.
                                    +     * 
                                    + * + * int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTotalCount() { + bitField0_ = (bitField0_ & ~0x00000001); + totalCount_ = 0; + onChanged(); + return this; + } + + private int compliantCount_; + + /** + * + * + *
                                    +     * Output only. The number of compliant checks.
                                    +     * 
                                    + * + * int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The compliantCount. + */ + @java.lang.Override + public int getCompliantCount() { + return compliantCount_; + } + + /** + * + * + *
                                    +     * Output only. The number of compliant checks.
                                    +     * 
                                    + * + * int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The compliantCount to set. + * @return This builder for chaining. + */ + public Builder setCompliantCount(int value) { + + compliantCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The number of compliant checks.
                                    +     * 
                                    + * + * int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCompliantCount() { + bitField0_ = (bitField0_ & ~0x00000002); + compliantCount_ = 0; + onChanged(); + return this; + } + + private int violationCount_; + + /** + * + * + *
                                    +     * Output only. The number of checks with violations.
                                    +     * 
                                    + * + * int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The violationCount. + */ + @java.lang.Override + public int getViolationCount() { + return violationCount_; + } + + /** + * + * + *
                                    +     * Output only. The number of checks with violations.
                                    +     * 
                                    + * + * int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The violationCount to set. + * @return This builder for chaining. + */ + public Builder setViolationCount(int value) { + + violationCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The number of checks with violations.
                                    +     * 
                                    + * + * int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearViolationCount() { + bitField0_ = (bitField0_ & ~0x00000004); + violationCount_ = 0; + onChanged(); + return this; + } + + private int manualReviewNeededCount_; + + /** + * + * + *
                                    +     * Output only. The number of checks with "manual review needed" status.
                                    +     * 
                                    + * + * int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The manualReviewNeededCount. + */ + @java.lang.Override + public int getManualReviewNeededCount() { + return manualReviewNeededCount_; + } + + /** + * + * + *
                                    +     * Output only. The number of checks with "manual review needed" status.
                                    +     * 
                                    + * + * int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The manualReviewNeededCount to set. + * @return This builder for chaining. + */ + public Builder setManualReviewNeededCount(int value) { + + manualReviewNeededCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The number of checks with "manual review needed" status.
                                    +     * 
                                    + * + * int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearManualReviewNeededCount() { + bitField0_ = (bitField0_ & ~0x00000008); + manualReviewNeededCount_ = 0; + onChanged(); + return this; + } + + private int errorCount_; + + /** + * + * + *
                                    +     * Output only. The number of checks that can't be performed due to errors.
                                    +     * 
                                    + * + * int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorCount. + */ + @java.lang.Override + public int getErrorCount() { + return errorCount_; + } + + /** + * + * + *
                                    +     * Output only. The number of checks that can't be performed due to errors.
                                    +     * 
                                    + * + * int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The errorCount to set. + * @return This builder for chaining. + */ + public Builder setErrorCount(int value) { + + errorCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The number of checks that can't be performed due to errors.
                                    +     * 
                                    + * + * int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearErrorCount() { + bitField0_ = (bitField0_ & ~0x00000010); + errorCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ReportSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.ReportSummary) + private static final com.google.cloud.cloudsecuritycompliance.v1.ReportSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.ReportSummary(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.ReportSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportSummary 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.cloudsecuritycompliance.v1.ReportSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ReportSummaryOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ReportSummaryOrBuilder.java new file mode 100644 index 000000000000..48112301c6b1 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ReportSummaryOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/audit.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface ReportSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.ReportSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Output only. The total number of checks.
                                    +   * 
                                    + * + * int32 total_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalCount. + */ + int getTotalCount(); + + /** + * + * + *
                                    +   * Output only. The number of compliant checks.
                                    +   * 
                                    + * + * int32 compliant_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The compliantCount. + */ + int getCompliantCount(); + + /** + * + * + *
                                    +   * Output only. The number of checks with violations.
                                    +   * 
                                    + * + * int32 violation_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The violationCount. + */ + int getViolationCount(); + + /** + * + * + *
                                    +   * Output only. The number of checks with "manual review needed" status.
                                    +   * 
                                    + * + * int32 manual_review_needed_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The manualReviewNeededCount. + */ + int getManualReviewNeededCount(); + + /** + * + * + *
                                    +   * Output only. The number of checks that can't be performed due to errors.
                                    +   * 
                                    + * + * int32 error_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorCount. + */ + int getErrorCount(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Rule.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Rule.java index 36da16e120b7..50124d8d88cb 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Rule.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Rule.java @@ -23,7 +23,7 @@ * * *
                                    - * A rule of the cloud control.
                                    + * A rule in the cloud control.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Rule} @@ -118,7 +118,7 @@ public ImplementationCase getImplementationCase() { * * *
                                    -   * Logic expression in CEL language.
                                    +   * The rule's logic expression in Common Expression Language (CEL).
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -134,7 +134,7 @@ public boolean hasCelExpression() { * * *
                                    -   * Logic expression in CEL language.
                                    +   * The rule's logic expression in Common Expression Language (CEL).
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -153,7 +153,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CELExpression getCelExpressio * * *
                                    -   * Logic expression in CEL language.
                                    +   * The rule's logic expression in Common Expression Language (CEL).
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -176,7 +176,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CELExpression getCelExpressio * * *
                                    -   * Optional. Description of the Rule. The maximum length is 2000 characters.
                                    +   * Optional. The rule description. The maximum length is 2000 characters.
                                        * 
                                    * * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -200,7 +200,7 @@ public java.lang.String getDescription() { * * *
                                    -   * Optional. Description of the Rule. The maximum length is 2000 characters.
                                    +   * Optional. The rule description. The maximum length is 2000 characters.
                                        * 
                                    * * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -244,7 +244,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.RuleActionType convert( * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * @@ -265,7 +265,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.RuleActionType convert( * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * @@ -283,7 +283,7 @@ public int getRuleActionTypesCount() { * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * @@ -302,7 +302,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.RuleActionType getRuleActionT * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * @@ -320,7 +320,7 @@ public java.util.List getRuleActionTypesValueList() { * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * @@ -552,7 +552,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * A rule of the cloud control.
                                    +   * A rule in the cloud control.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Rule} @@ -827,7 +827,7 @@ public Builder clearImplementation() { * * *
                                    -     * Logic expression in CEL language.
                                    +     * The rule's logic expression in Common Expression Language (CEL).
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -843,7 +843,7 @@ public boolean hasCelExpression() { * * *
                                    -     * Logic expression in CEL language.
                                    +     * The rule's logic expression in Common Expression Language (CEL).
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -869,7 +869,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CELExpression getCelExpressio * * *
                                    -     * Logic expression in CEL language.
                                    +     * The rule's logic expression in Common Expression Language (CEL).
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -893,7 +893,7 @@ public Builder setCelExpression( * * *
                                    -     * Logic expression in CEL language.
                                    +     * The rule's logic expression in Common Expression Language (CEL).
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -914,7 +914,7 @@ public Builder setCelExpression( * * *
                                    -     * Logic expression in CEL language.
                                    +     * The rule's logic expression in Common Expression Language (CEL).
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -949,7 +949,7 @@ public Builder mergeCelExpression( * * *
                                    -     * Logic expression in CEL language.
                                    +     * The rule's logic expression in Common Expression Language (CEL).
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -975,7 +975,7 @@ public Builder clearCelExpression() { * * *
                                    -     * Logic expression in CEL language.
                                    +     * The rule's logic expression in Common Expression Language (CEL).
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -989,7 +989,7 @@ public Builder clearCelExpression() { * * *
                                    -     * Logic expression in CEL language.
                                    +     * The rule's logic expression in Common Expression Language (CEL).
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -1011,7 +1011,7 @@ public Builder clearCelExpression() { * * *
                                    -     * Logic expression in CEL language.
                                    +     * The rule's logic expression in Common Expression Language (CEL).
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -1047,7 +1047,7 @@ public Builder clearCelExpression() { * * *
                                    -     * Optional. Description of the Rule. The maximum length is 2000 characters.
                                    +     * Optional. The rule description. The maximum length is 2000 characters.
                                          * 
                                    * * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1070,7 +1070,7 @@ public java.lang.String getDescription() { * * *
                                    -     * Optional. Description of the Rule. The maximum length is 2000 characters.
                                    +     * Optional. The rule description. The maximum length is 2000 characters.
                                          * 
                                    * * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1093,7 +1093,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                    -     * Optional. Description of the Rule. The maximum length is 2000 characters.
                                    +     * Optional. The rule description. The maximum length is 2000 characters.
                                          * 
                                    * * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1115,7 +1115,7 @@ public Builder setDescription(java.lang.String value) { * * *
                                    -     * Optional. Description of the Rule. The maximum length is 2000 characters.
                                    +     * Optional. The rule description. The maximum length is 2000 characters.
                                          * 
                                    * * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1133,7 +1133,7 @@ public Builder clearDescription() { * * *
                                    -     * Optional. Description of the Rule. The maximum length is 2000 characters.
                                    +     * Optional. The rule description. The maximum length is 2000 characters.
                                          * 
                                    * * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1165,7 +1165,7 @@ private void ensureRuleActionTypesIsMutable() { * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1185,7 +1185,7 @@ private void ensureRuleActionTypesIsMutable() { * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1202,7 +1202,7 @@ public int getRuleActionTypesCount() { * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1221,7 +1221,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.RuleActionType getRuleActionT * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1247,7 +1247,7 @@ public Builder setRuleActionTypes( * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1272,7 +1272,7 @@ public Builder addRuleActionTypes( * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1297,7 +1297,7 @@ public Builder addAllRuleActionTypes( * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1317,7 +1317,7 @@ public Builder clearRuleActionTypes() { * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1334,7 +1334,7 @@ public java.util.List getRuleActionTypesValueList() { * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1352,7 +1352,7 @@ public int getRuleActionTypesValue(int index) { * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1374,7 +1374,7 @@ public Builder setRuleActionTypesValue(int index, int value) { * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * @@ -1395,7 +1395,7 @@ public Builder addRuleActionTypesValue(int value) { * * *
                                    -     * Required. The functionality enabled by the Rule.
                                    +     * Required. The functionality that's enabled by the rule.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RuleActionType.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RuleActionType.java index d0e1f7e27196..69be91bfecfd 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RuleActionType.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RuleActionType.java @@ -43,7 +43,7 @@ public enum RuleActionType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Preventative action type.
                                    +   * The rule is intended to prevent non-compliance.
                                        * 
                                    * * RULE_ACTION_TYPE_PREVENTIVE = 1; @@ -53,7 +53,7 @@ public enum RuleActionType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Detective action type.
                                    +   * The rule is intended to detect non-compliance.
                                        * 
                                    * * RULE_ACTION_TYPE_DETECTIVE = 2; @@ -63,7 +63,7 @@ public enum RuleActionType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Audit action type.
                                    +   * The rule is intended to audit non-compliance.
                                        * 
                                    * * RULE_ACTION_TYPE_AUDIT = 3; @@ -87,7 +87,7 @@ public enum RuleActionType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Preventative action type.
                                    +   * The rule is intended to prevent non-compliance.
                                        * 
                                    * * RULE_ACTION_TYPE_PREVENTIVE = 1; @@ -98,7 +98,7 @@ public enum RuleActionType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Detective action type.
                                    +   * The rule is intended to detect non-compliance.
                                        * 
                                    * * RULE_ACTION_TYPE_DETECTIVE = 2; @@ -109,7 +109,7 @@ public enum RuleActionType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Audit action type.
                                    +   * The rule is intended to audit non-compliance.
                                        * 
                                    * * RULE_ACTION_TYPE_AUDIT = 3; @@ -179,7 +179,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor() .getEnumTypes() - .get(5); + .get(6); } private static final RuleActionType[] VALUES = values(); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RuleOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RuleOrBuilder.java index 9c27790e3073..d060e6c8407b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RuleOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/RuleOrBuilder.java @@ -28,7 +28,7 @@ public interface RuleOrBuilder * * *
                                    -   * Logic expression in CEL language.
                                    +   * The rule's logic expression in Common Expression Language (CEL).
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -41,7 +41,7 @@ public interface RuleOrBuilder * * *
                                    -   * Logic expression in CEL language.
                                    +   * The rule's logic expression in Common Expression Language (CEL).
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -54,7 +54,7 @@ public interface RuleOrBuilder * * *
                                    -   * Logic expression in CEL language.
                                    +   * The rule's logic expression in Common Expression Language (CEL).
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1; @@ -65,7 +65,7 @@ public interface RuleOrBuilder * * *
                                    -   * Optional. Description of the Rule. The maximum length is 2000 characters.
                                    +   * Optional. The rule description. The maximum length is 2000 characters.
                                        * 
                                    * * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -78,7 +78,7 @@ public interface RuleOrBuilder * * *
                                    -   * Optional. Description of the Rule. The maximum length is 2000 characters.
                                    +   * Optional. The rule description. The maximum length is 2000 characters.
                                        * 
                                    * * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -91,7 +91,7 @@ public interface RuleOrBuilder * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * @@ -107,7 +107,7 @@ public interface RuleOrBuilder * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * @@ -122,7 +122,7 @@ public interface RuleOrBuilder * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * @@ -138,7 +138,7 @@ public interface RuleOrBuilder * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * @@ -153,7 +153,7 @@ public interface RuleOrBuilder * * *
                                    -   * Required. The functionality enabled by the Rule.
                                    +   * Required. The functionality that's enabled by the rule.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Severity.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Severity.java index 52eabb8f892d..bd6c232f4ba7 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Severity.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Severity.java @@ -33,8 +33,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * This value is used for findings when a source doesn't write a severity
                                    -   * value.
                                    +   * Default value. This value is unused.
                                        * 
                                    * * SEVERITY_UNSPECIFIED = 0; @@ -44,7 +43,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Vulnerability:
                                        * A critical vulnerability is easily discoverable by an external actor,
                                        * exploitable, and results in the direct ability to execute arbitrary code,
                                        * exfiltrate data, and otherwise gain additional access and privileges to
                                    @@ -52,8 +50,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
                                        * unprotected user data and public SSH access with weak or no
                                        * passwords.
                                        *
                                    -   * Threat:
                                    -   * Indicates a threat that is able to access, modify, or delete data or
                                    +   * A critical threat is a threat that can access, modify, or delete data or
                                        * execute unauthorized code within existing resources.
                                        * 
                                    * @@ -64,19 +61,17 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Vulnerability:
                                    -   * A high risk vulnerability can be easily discovered and exploited in
                                    -   * combination with other vulnerabilities in order to gain direct access and
                                    +   * A high-risk vulnerability can be easily discovered and exploited in
                                    +   * combination with other vulnerabilities to gain direct access and
                                        * the ability to execute arbitrary code, exfiltrate data, and otherwise
                                        * gain additional access and privileges to cloud resources and workloads.
                                        * An example is a database with weak or no passwords that is only
                                        * accessible internally. This database could easily be compromised by an
                                        * actor that had access to the internal network.
                                        *
                                    -   * Threat:
                                    -   * Indicates a threat that is able to create new computational resources in
                                    -   * an environment but not able to access data or execute code in existing
                                    -   * resources.
                                    +   * A high-risk threat is a threat that can create new computational
                                    +   * resources in an environment but can't access data or execute code in
                                    +   * existing resources.
                                        * 
                                    * * HIGH = 2; @@ -86,8 +81,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Vulnerability:
                                    -   * A medium risk vulnerability could be used by an actor to gain access to
                                    +   * A medium-risk vulnerability can be used by an actor to gain access to
                                        * resources or privileges that enable them to eventually (through multiple
                                        * steps or a complex exploit) gain access and the ability to execute
                                        * arbitrary code or exfiltrate data. An example is a service account with
                                    @@ -95,8 +89,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
                                        * the service account, they could potentially use that access to manipulate
                                        * a project the service account was not intended to.
                                        *
                                    -   * Threat:
                                    -   * Indicates a threat that is able to cause operational impact but may not
                                    +   * A medium-risk threat can cause operational impact but might not
                                        * access data or execute unauthorized code.
                                        * 
                                    * @@ -107,15 +100,13 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Vulnerability:
                                    -   * A low risk vulnerability hampers a security organization's ability to
                                    +   * A low-risk vulnerability hampers a security organization's ability to
                                        * detect vulnerabilities or active threats in their deployment, or prevents
                                        * the root cause investigation of security issues. An example is monitoring
                                        * and logs being disabled for resource configurations and access.
                                        *
                                    -   * Threat:
                                    -   * Indicates a threat that has obtained minimal access to an environment but
                                    -   * is not able to access data, execute code, or create resources.
                                    +   * A low-risk threat is a threat that has obtained minimal access to an
                                    +   * environment but can't access data, execute code, or create resources.
                                        * 
                                    * * LOW = 4; @@ -128,8 +119,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * This value is used for findings when a source doesn't write a severity
                                    -   * value.
                                    +   * Default value. This value is unused.
                                        * 
                                    * * SEVERITY_UNSPECIFIED = 0; @@ -140,7 +130,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Vulnerability:
                                        * A critical vulnerability is easily discoverable by an external actor,
                                        * exploitable, and results in the direct ability to execute arbitrary code,
                                        * exfiltrate data, and otherwise gain additional access and privileges to
                                    @@ -148,8 +137,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
                                        * unprotected user data and public SSH access with weak or no
                                        * passwords.
                                        *
                                    -   * Threat:
                                    -   * Indicates a threat that is able to access, modify, or delete data or
                                    +   * A critical threat is a threat that can access, modify, or delete data or
                                        * execute unauthorized code within existing resources.
                                        * 
                                    * @@ -161,19 +149,17 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Vulnerability:
                                    -   * A high risk vulnerability can be easily discovered and exploited in
                                    -   * combination with other vulnerabilities in order to gain direct access and
                                    +   * A high-risk vulnerability can be easily discovered and exploited in
                                    +   * combination with other vulnerabilities to gain direct access and
                                        * the ability to execute arbitrary code, exfiltrate data, and otherwise
                                        * gain additional access and privileges to cloud resources and workloads.
                                        * An example is a database with weak or no passwords that is only
                                        * accessible internally. This database could easily be compromised by an
                                        * actor that had access to the internal network.
                                        *
                                    -   * Threat:
                                    -   * Indicates a threat that is able to create new computational resources in
                                    -   * an environment but not able to access data or execute code in existing
                                    -   * resources.
                                    +   * A high-risk threat is a threat that can create new computational
                                    +   * resources in an environment but can't access data or execute code in
                                    +   * existing resources.
                                        * 
                                    * * HIGH = 2; @@ -184,8 +170,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Vulnerability:
                                    -   * A medium risk vulnerability could be used by an actor to gain access to
                                    +   * A medium-risk vulnerability can be used by an actor to gain access to
                                        * resources or privileges that enable them to eventually (through multiple
                                        * steps or a complex exploit) gain access and the ability to execute
                                        * arbitrary code or exfiltrate data. An example is a service account with
                                    @@ -193,8 +178,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
                                        * the service account, they could potentially use that access to manipulate
                                        * a project the service account was not intended to.
                                        *
                                    -   * Threat:
                                    -   * Indicates a threat that is able to cause operational impact but may not
                                    +   * A medium-risk threat can cause operational impact but might not
                                        * access data or execute unauthorized code.
                                        * 
                                    * @@ -206,15 +190,13 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * * *
                                    -   * Vulnerability:
                                    -   * A low risk vulnerability hampers a security organization's ability to
                                    +   * A low-risk vulnerability hampers a security organization's ability to
                                        * detect vulnerabilities or active threats in their deployment, or prevents
                                        * the root cause investigation of security issues. An example is monitoring
                                        * and logs being disabled for resource configurations and access.
                                        *
                                    -   * Threat:
                                    -   * Indicates a threat that has obtained minimal access to an environment but
                                    -   * is not able to access data, execute code, or create resources.
                                    +   * A low-risk threat is a threat that has obtained minimal access to an
                                    +   * environment but can't access data, execute code, or create resources.
                                        * 
                                    * * LOW = 4; @@ -286,7 +268,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor() .getEnumTypes() - .get(4); + .get(5); } private static final Severity[] VALUES = values(); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/SimilarControls.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/SimilarControls.java new file mode 100644 index 000000000000..ff386472f249 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/SimilarControls.java @@ -0,0 +1,824 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The similar controls.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.SimilarControls} + */ +public final class SimilarControls extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.SimilarControls) + SimilarControlsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SimilarControls.newBuilder() to construct. + private SimilarControls(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SimilarControls() { + framework_ = ""; + controlId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SimilarControls(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.class, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder.class); + } + + public static final int FRAMEWORK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object framework_ = ""; + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The framework. + */ + @java.lang.Override + public java.lang.String getFramework() { + java.lang.Object ref = framework_; + 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(); + framework_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The bytes for framework. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrameworkBytes() { + java.lang.Object ref = framework_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + framework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTROL_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object controlId_ = ""; + + /** + * + * + *
                                    +   * The ID of the control.
                                    +   * 
                                    + * + * string control_id = 2; + * + * @return The controlId. + */ + @java.lang.Override + public java.lang.String getControlId() { + java.lang.Object ref = controlId_; + 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(); + controlId_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The ID of the control.
                                    +   * 
                                    + * + * string control_id = 2; + * + * @return The bytes for controlId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getControlIdBytes() { + java.lang.Object ref = controlId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + controlId_ = 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.GeneratedMessageV3.isStringEmpty(framework_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, framework_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, controlId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(framework_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, framework_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, controlId_); + } + 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.cloudsecuritycompliance.v1.SimilarControls)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls other = + (com.google.cloud.cloudsecuritycompliance.v1.SimilarControls) obj; + + if (!getFramework().equals(other.getFramework())) return false; + if (!getControlId().equals(other.getControlId())) 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) + FRAMEWORK_FIELD_NUMBER; + hash = (53 * hash) + getFramework().hashCode(); + hash = (37 * hash) + CONTROL_ID_FIELD_NUMBER; + hash = (53 * hash) + getControlId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls 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.cloudsecuritycompliance.v1.SimilarControls parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls 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.cloudsecuritycompliance.v1.SimilarControls parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The similar controls.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.SimilarControls} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.SimilarControls) + com.google.cloud.cloudsecuritycompliance.v1.SimilarControlsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.class, + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + framework_ = ""; + controlId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_SimilarControls_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls build() { + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.SimilarControls buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.SimilarControls result = + new com.google.cloud.cloudsecuritycompliance.v1.SimilarControls(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.SimilarControls result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.framework_ = framework_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.controlId_ = controlId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.SimilarControls) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.SimilarControls) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.SimilarControls other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.SimilarControls.getDefaultInstance()) + return this; + if (!other.getFramework().isEmpty()) { + framework_ = other.framework_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getControlId().isEmpty()) { + controlId_ = other.controlId_; + 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: + { + framework_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + controlId_ = 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 framework_ = ""; + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @return The framework. + */ + public java.lang.String getFramework() { + java.lang.Object ref = framework_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + framework_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @return The bytes for framework. + */ + public com.google.protobuf.ByteString getFrameworkBytes() { + java.lang.Object ref = framework_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + framework_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @param value The framework to set. + * @return This builder for chaining. + */ + public Builder setFramework(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + framework_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @return This builder for chaining. + */ + public Builder clearFramework() { + framework_ = getDefaultInstance().getFramework(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The name of the framework.
                                    +     * 
                                    + * + * string framework = 1; + * + * @param value The bytes for framework to set. + * @return This builder for chaining. + */ + public Builder setFrameworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + framework_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object controlId_ = ""; + + /** + * + * + *
                                    +     * The ID of the control.
                                    +     * 
                                    + * + * string control_id = 2; + * + * @return The controlId. + */ + public java.lang.String getControlId() { + java.lang.Object ref = controlId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + controlId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The ID of the control.
                                    +     * 
                                    + * + * string control_id = 2; + * + * @return The bytes for controlId. + */ + public com.google.protobuf.ByteString getControlIdBytes() { + java.lang.Object ref = controlId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + controlId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The ID of the control.
                                    +     * 
                                    + * + * string control_id = 2; + * + * @param value The controlId to set. + * @return This builder for chaining. + */ + public Builder setControlId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + controlId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The ID of the control.
                                    +     * 
                                    + * + * string control_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearControlId() { + controlId_ = getDefaultInstance().getControlId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The ID of the control.
                                    +     * 
                                    + * + * string control_id = 2; + * + * @param value The bytes for controlId to set. + * @return This builder for chaining. + */ + public Builder setControlIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + controlId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.SimilarControls) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.SimilarControls) + private static final com.google.cloud.cloudsecuritycompliance.v1.SimilarControls DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.SimilarControls(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.SimilarControls getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SimilarControls 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.cloudsecuritycompliance.v1.SimilarControls getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/SimilarControlsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/SimilarControlsOrBuilder.java new file mode 100644 index 000000000000..ecd3363d0454 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/SimilarControlsOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface SimilarControlsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.SimilarControls) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The framework. + */ + java.lang.String getFramework(); + + /** + * + * + *
                                    +   * The name of the framework.
                                    +   * 
                                    + * + * string framework = 1; + * + * @return The bytes for framework. + */ + com.google.protobuf.ByteString getFrameworkBytes(); + + /** + * + * + *
                                    +   * The ID of the control.
                                    +   * 
                                    + * + * string control_id = 2; + * + * @return The controlId. + */ + java.lang.String getControlId(); + + /** + * + * + *
                                    +   * The ID of the control.
                                    +   * 
                                    + * + * string control_id = 2; + * + * @return The bytes for controlId. + */ + com.google.protobuf.ByteString getControlIdBytes(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/StringList.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/StringList.java index c822bc0cb887..be8bceee08a9 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/StringList.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/StringList.java @@ -23,7 +23,7 @@ * * *
                                    - * A list of strings.
                                    + * A list of strings for the parameter value.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.StringList} @@ -304,7 +304,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * A list of strings.
                                    +   * A list of strings for the parameter value.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.StringList} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceConfig.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceConfig.java index 0254f1337aa5..25dc1962f276 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceConfig.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceConfig.java @@ -23,8 +23,8 @@ * * *
                                    - * TargetResourceConfig contains either the name of the target_resource or
                                    - * contains the config to create a new target_resource.
                                    + * The name of the target resource or the configuration that's required to
                                    + * create a new target resource.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig} @@ -119,8 +119,11 @@ public ResourceConfigCase getResourceConfigCase() { * * *
                                    -   * Optional. CRM node in format organizations/{organization},
                                    -   * folders/{folder}, or projects/{project}
                                    +   * Optional. The resource hierarchy node, in one of the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -135,8 +138,11 @@ public boolean hasExistingTargetResource() { * * *
                                    -   * Optional. CRM node in format organizations/{organization},
                                    -   * folders/{folder}, or projects/{project}
                                    +   * Optional. The resource hierarchy node, in one of the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -164,8 +170,11 @@ public java.lang.String getExistingTargetResource() { * * *
                                    -   * Optional. CRM node in format organizations/{organization},
                                    -   * folders/{folder}, or projects/{project}
                                    +   * Optional. The resource hierarchy node, in one of the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -195,8 +204,8 @@ public com.google.protobuf.ByteString getExistingTargetResourceBytes() { * * *
                                    -   * Optional. Config to create a new resource and use that as the
                                    -   * target_resource for deployment.
                                    +   * Optional. The details that are required to create a resource and use
                                    +   * that resource as the target resource for deployment.
                                        * 
                                    * * @@ -214,8 +223,8 @@ public boolean hasTargetResourceCreationConfig() { * * *
                                    -   * Optional. Config to create a new resource and use that as the
                                    -   * target_resource for deployment.
                                    +   * Optional. The details that are required to create a resource and use
                                    +   * that resource as the target resource for deployment.
                                        * 
                                    * * @@ -239,8 +248,8 @@ public boolean hasTargetResourceCreationConfig() { * * *
                                    -   * Optional. Config to create a new resource and use that as the
                                    -   * target_resource for deployment.
                                    +   * Optional. The details that are required to create a resource and use
                                    +   * that resource as the target resource for deployment.
                                        * 
                                    * * @@ -457,8 +466,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * TargetResourceConfig contains either the name of the target_resource or
                                    -   * contains the config to create a new target_resource.
                                    +   * The name of the target resource or the configuration that's required to
                                    +   * create a new target resource.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig} @@ -691,8 +700,11 @@ public Builder clearResourceConfig() { * * *
                                    -     * Optional. CRM node in format organizations/{organization},
                                    -     * folders/{folder}, or projects/{project}
                                    +     * Optional. The resource hierarchy node, in one of the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -708,8 +720,11 @@ public boolean hasExistingTargetResource() { * * *
                                    -     * Optional. CRM node in format organizations/{organization},
                                    -     * folders/{folder}, or projects/{project}
                                    +     * Optional. The resource hierarchy node, in one of the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -738,8 +753,11 @@ public java.lang.String getExistingTargetResource() { * * *
                                    -     * Optional. CRM node in format organizations/{organization},
                                    -     * folders/{folder}, or projects/{project}
                                    +     * Optional. The resource hierarchy node, in one of the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -768,8 +786,11 @@ public com.google.protobuf.ByteString getExistingTargetResourceBytes() { * * *
                                    -     * Optional. CRM node in format organizations/{organization},
                                    -     * folders/{folder}, or projects/{project}
                                    +     * Optional. The resource hierarchy node, in one of the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -791,8 +812,11 @@ public Builder setExistingTargetResource(java.lang.String value) { * * *
                                    -     * Optional. CRM node in format organizations/{organization},
                                    -     * folders/{folder}, or projects/{project}
                                    +     * Optional. The resource hierarchy node, in one of the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -812,8 +836,11 @@ public Builder clearExistingTargetResource() { * * *
                                    -     * Optional. CRM node in format organizations/{organization},
                                    -     * folders/{folder}, or projects/{project}
                                    +     * Optional. The resource hierarchy node, in one of the following formats:
                                    +     *
                                    +     * - `organizations/{organizationID}`
                                    +     * - `folders/{folderID}`
                                    +     * - `projects/{projectID}`
                                          * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -842,8 +869,8 @@ public Builder setExistingTargetResourceBytes(com.google.protobuf.ByteString val * * *
                                    -     * Optional. Config to create a new resource and use that as the
                                    -     * target_resource for deployment.
                                    +     * Optional. The details that are required to create a resource and use
                                    +     * that resource as the target resource for deployment.
                                          * 
                                    * * @@ -861,8 +888,8 @@ public boolean hasTargetResourceCreationConfig() { * * *
                                    -     * Optional. Config to create a new resource and use that as the
                                    -     * target_resource for deployment.
                                    +     * Optional. The details that are required to create a resource and use
                                    +     * that resource as the target resource for deployment.
                                          * 
                                    * * @@ -894,8 +921,8 @@ public boolean hasTargetResourceCreationConfig() { * * *
                                    -     * Optional. Config to create a new resource and use that as the
                                    -     * target_resource for deployment.
                                    +     * Optional. The details that are required to create a resource and use
                                    +     * that resource as the target resource for deployment.
                                          * 
                                    * * @@ -921,8 +948,8 @@ public Builder setTargetResourceCreationConfig( * * *
                                    -     * Optional. Config to create a new resource and use that as the
                                    -     * target_resource for deployment.
                                    +     * Optional. The details that are required to create a resource and use
                                    +     * that resource as the target resource for deployment.
                                          * 
                                    * * @@ -946,8 +973,8 @@ public Builder setTargetResourceCreationConfig( * * *
                                    -     * Optional. Config to create a new resource and use that as the
                                    -     * target_resource for deployment.
                                    +     * Optional. The details that are required to create a resource and use
                                    +     * that resource as the target resource for deployment.
                                          * 
                                    * * @@ -986,8 +1013,8 @@ public Builder mergeTargetResourceCreationConfig( * * *
                                    -     * Optional. Config to create a new resource and use that as the
                                    -     * target_resource for deployment.
                                    +     * Optional. The details that are required to create a resource and use
                                    +     * that resource as the target resource for deployment.
                                          * 
                                    * * @@ -1015,8 +1042,8 @@ public Builder clearTargetResourceCreationConfig() { * * *
                                    -     * Optional. Config to create a new resource and use that as the
                                    -     * target_resource for deployment.
                                    +     * Optional. The details that are required to create a resource and use
                                    +     * that resource as the target resource for deployment.
                                          * 
                                    * * @@ -1032,8 +1059,8 @@ public Builder clearTargetResourceCreationConfig() { * * *
                                    -     * Optional. Config to create a new resource and use that as the
                                    -     * target_resource for deployment.
                                    +     * Optional. The details that are required to create a resource and use
                                    +     * that resource as the target resource for deployment.
                                          * 
                                    * * @@ -1059,8 +1086,8 @@ public Builder clearTargetResourceCreationConfig() { * * *
                                    -     * Optional. Config to create a new resource and use that as the
                                    -     * target_resource for deployment.
                                    +     * Optional. The details that are required to create a resource and use
                                    +     * that resource as the target resource for deployment.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceConfigOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceConfigOrBuilder.java index a9006dba3a2a..82bfd9a23b61 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceConfigOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceConfigOrBuilder.java @@ -28,8 +28,11 @@ public interface TargetResourceConfigOrBuilder * * *
                                    -   * Optional. CRM node in format organizations/{organization},
                                    -   * folders/{folder}, or projects/{project}
                                    +   * Optional. The resource hierarchy node, in one of the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -42,8 +45,11 @@ public interface TargetResourceConfigOrBuilder * * *
                                    -   * Optional. CRM node in format organizations/{organization},
                                    -   * folders/{folder}, or projects/{project}
                                    +   * Optional. The resource hierarchy node, in one of the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -56,8 +62,11 @@ public interface TargetResourceConfigOrBuilder * * *
                                    -   * Optional. CRM node in format organizations/{organization},
                                    -   * folders/{folder}, or projects/{project}
                                    +   * Optional. The resource hierarchy node, in one of the following formats:
                                    +   *
                                    +   * - `organizations/{organizationID}`
                                    +   * - `folders/{folderID}`
                                    +   * - `projects/{projectID}`
                                        * 
                                    * * string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -70,8 +79,8 @@ public interface TargetResourceConfigOrBuilder * * *
                                    -   * Optional. Config to create a new resource and use that as the
                                    -   * target_resource for deployment.
                                    +   * Optional. The details that are required to create a resource and use
                                    +   * that resource as the target resource for deployment.
                                        * 
                                    * * @@ -86,8 +95,8 @@ public interface TargetResourceConfigOrBuilder * * *
                                    -   * Optional. Config to create a new resource and use that as the
                                    -   * target_resource for deployment.
                                    +   * Optional. The details that are required to create a resource and use
                                    +   * that resource as the target resource for deployment.
                                        * 
                                    * * @@ -103,8 +112,8 @@ public interface TargetResourceConfigOrBuilder * * *
                                    -   * Optional. Config to create a new resource and use that as the
                                    -   * target_resource for deployment.
                                    +   * Optional. The details that are required to create a resource and use
                                    +   * that resource as the target resource for deployment.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceCreationConfig.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceCreationConfig.java index b6b8a10406bb..115991483a9d 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceCreationConfig.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceCreationConfig.java @@ -23,8 +23,7 @@ * * *
                                    - * TargetResourceCreationConfig contains the config to create a new resource to
                                    - * be used as the target_resource of a deployment.
                                    + * The configuration that's required to create a target resource.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig} @@ -119,8 +118,7 @@ public ResourceCreationConfigCase getResourceCreationConfigCase() { * * *
                                    -   * Optional. Config to create a new folder to be used as the target_resource
                                    -   * of a deployment.
                                    +   * Optional. The configuration that's required to create a folder.
                                        * 
                                    * * @@ -138,8 +136,7 @@ public boolean hasFolderCreationConfig() { * * *
                                    -   * Optional. Config to create a new folder to be used as the target_resource
                                    -   * of a deployment.
                                    +   * Optional. The configuration that's required to create a folder.
                                        * 
                                    * * @@ -162,8 +159,7 @@ public boolean hasFolderCreationConfig() { * * *
                                    -   * Optional. Config to create a new folder to be used as the target_resource
                                    -   * of a deployment.
                                    +   * Optional. The configuration that's required to create a folder.
                                        * 
                                    * * @@ -186,8 +182,7 @@ public boolean hasFolderCreationConfig() { * * *
                                    -   * Optional. Config to create a new project to be used as the
                                    -   * target_resource of a deployment.
                                    +   * Optional. The configuration that's required to create a project.
                                        * 
                                    * * @@ -205,8 +200,7 @@ public boolean hasProjectCreationConfig() { * * *
                                    -   * Optional. Config to create a new project to be used as the
                                    -   * target_resource of a deployment.
                                    +   * Optional. The configuration that's required to create a project.
                                        * 
                                    * * @@ -229,8 +223,7 @@ public boolean hasProjectCreationConfig() { * * *
                                    -   * Optional. Config to create a new project to be used as the
                                    -   * target_resource of a deployment.
                                    +   * Optional. The configuration that's required to create a project.
                                        * 
                                    * * @@ -455,8 +448,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * TargetResourceCreationConfig contains the config to create a new resource to
                                    -   * be used as the target_resource of a deployment.
                                    +   * The configuration that's required to create a target resource.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig} @@ -705,8 +697,7 @@ public Builder clearResourceCreationConfig() { * * *
                                    -     * Optional. Config to create a new folder to be used as the target_resource
                                    -     * of a deployment.
                                    +     * Optional. The configuration that's required to create a folder.
                                          * 
                                    * * @@ -724,8 +715,7 @@ public boolean hasFolderCreationConfig() { * * *
                                    -     * Optional. Config to create a new folder to be used as the target_resource
                                    -     * of a deployment.
                                    +     * Optional. The configuration that's required to create a folder.
                                          * 
                                    * * @@ -757,8 +747,7 @@ public boolean hasFolderCreationConfig() { * * *
                                    -     * Optional. Config to create a new folder to be used as the target_resource
                                    -     * of a deployment.
                                    +     * Optional. The configuration that's required to create a folder.
                                          * 
                                    * * @@ -784,8 +773,7 @@ public Builder setFolderCreationConfig( * * *
                                    -     * Optional. Config to create a new folder to be used as the target_resource
                                    -     * of a deployment.
                                    +     * Optional. The configuration that's required to create a folder.
                                          * 
                                    * * @@ -808,8 +796,7 @@ public Builder setFolderCreationConfig( * * *
                                    -     * Optional. Config to create a new folder to be used as the target_resource
                                    -     * of a deployment.
                                    +     * Optional. The configuration that's required to create a folder.
                                          * 
                                    * * @@ -848,8 +835,7 @@ public Builder mergeFolderCreationConfig( * * *
                                    -     * Optional. Config to create a new folder to be used as the target_resource
                                    -     * of a deployment.
                                    +     * Optional. The configuration that's required to create a folder.
                                          * 
                                    * * @@ -877,8 +863,7 @@ public Builder clearFolderCreationConfig() { * * *
                                    -     * Optional. Config to create a new folder to be used as the target_resource
                                    -     * of a deployment.
                                    +     * Optional. The configuration that's required to create a folder.
                                          * 
                                    * * @@ -894,8 +879,7 @@ public Builder clearFolderCreationConfig() { * * *
                                    -     * Optional. Config to create a new folder to be used as the target_resource
                                    -     * of a deployment.
                                    +     * Optional. The configuration that's required to create a folder.
                                          * 
                                    * * @@ -921,8 +905,7 @@ public Builder clearFolderCreationConfig() { * * *
                                    -     * Optional. Config to create a new folder to be used as the target_resource
                                    -     * of a deployment.
                                    +     * Optional. The configuration that's required to create a folder.
                                          * 
                                    * * @@ -965,8 +948,7 @@ public Builder clearFolderCreationConfig() { * * *
                                    -     * Optional. Config to create a new project to be used as the
                                    -     * target_resource of a deployment.
                                    +     * Optional. The configuration that's required to create a project.
                                          * 
                                    * * @@ -984,8 +966,7 @@ public boolean hasProjectCreationConfig() { * * *
                                    -     * Optional. Config to create a new project to be used as the
                                    -     * target_resource of a deployment.
                                    +     * Optional. The configuration that's required to create a project.
                                          * 
                                    * * @@ -1017,8 +998,7 @@ public boolean hasProjectCreationConfig() { * * *
                                    -     * Optional. Config to create a new project to be used as the
                                    -     * target_resource of a deployment.
                                    +     * Optional. The configuration that's required to create a project.
                                          * 
                                    * * @@ -1044,8 +1024,7 @@ public Builder setProjectCreationConfig( * * *
                                    -     * Optional. Config to create a new project to be used as the
                                    -     * target_resource of a deployment.
                                    +     * Optional. The configuration that's required to create a project.
                                          * 
                                    * * @@ -1068,8 +1047,7 @@ public Builder setProjectCreationConfig( * * *
                                    -     * Optional. Config to create a new project to be used as the
                                    -     * target_resource of a deployment.
                                    +     * Optional. The configuration that's required to create a project.
                                          * 
                                    * * @@ -1108,8 +1086,7 @@ public Builder mergeProjectCreationConfig( * * *
                                    -     * Optional. Config to create a new project to be used as the
                                    -     * target_resource of a deployment.
                                    +     * Optional. The configuration that's required to create a project.
                                          * 
                                    * * @@ -1137,8 +1114,7 @@ public Builder clearProjectCreationConfig() { * * *
                                    -     * Optional. Config to create a new project to be used as the
                                    -     * target_resource of a deployment.
                                    +     * Optional. The configuration that's required to create a project.
                                          * 
                                    * * @@ -1154,8 +1130,7 @@ public Builder clearProjectCreationConfig() { * * *
                                    -     * Optional. Config to create a new project to be used as the
                                    -     * target_resource of a deployment.
                                    +     * Optional. The configuration that's required to create a project.
                                          * 
                                    * * @@ -1181,8 +1156,7 @@ public Builder clearProjectCreationConfig() { * * *
                                    -     * Optional. Config to create a new project to be used as the
                                    -     * target_resource of a deployment.
                                    +     * Optional. The configuration that's required to create a project.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceCreationConfigOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceCreationConfigOrBuilder.java index 48036b51af77..26b4f302287c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceCreationConfigOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceCreationConfigOrBuilder.java @@ -28,8 +28,7 @@ public interface TargetResourceCreationConfigOrBuilder * * *
                                    -   * Optional. Config to create a new folder to be used as the target_resource
                                    -   * of a deployment.
                                    +   * Optional. The configuration that's required to create a folder.
                                        * 
                                    * * @@ -44,8 +43,7 @@ public interface TargetResourceCreationConfigOrBuilder * * *
                                    -   * Optional. Config to create a new folder to be used as the target_resource
                                    -   * of a deployment.
                                    +   * Optional. The configuration that's required to create a folder.
                                        * 
                                    * * @@ -60,8 +58,7 @@ public interface TargetResourceCreationConfigOrBuilder * * *
                                    -   * Optional. Config to create a new folder to be used as the target_resource
                                    -   * of a deployment.
                                    +   * Optional. The configuration that's required to create a folder.
                                        * 
                                    * * @@ -75,8 +72,7 @@ public interface TargetResourceCreationConfigOrBuilder * * *
                                    -   * Optional. Config to create a new project to be used as the
                                    -   * target_resource of a deployment.
                                    +   * Optional. The configuration that's required to create a project.
                                        * 
                                    * * @@ -91,8 +87,7 @@ public interface TargetResourceCreationConfigOrBuilder * * *
                                    -   * Optional. Config to create a new project to be used as the
                                    -   * target_resource of a deployment.
                                    +   * Optional. The configuration that's required to create a project.
                                        * 
                                    * * @@ -107,8 +102,7 @@ public interface TargetResourceCreationConfigOrBuilder * * *
                                    -   * Optional. Config to create a new project to be used as the
                                    -   * target_resource of a deployment.
                                    +   * Optional. The configuration that's required to create a project.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceDetails.java new file mode 100644 index 000000000000..fe3e44fe687e --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceDetails.java @@ -0,0 +1,1815 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The details for a target resource.
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails} + */ +public final class TargetResourceDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails) + TargetResourceDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TargetResourceDetails.newBuilder() to construct. + private TargetResourceDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TargetResourceDetails() { + frameworkDeployment_ = ""; + targetResourceDisplayName_ = ""; + targetResource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TargetResourceDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder.class); + } + + private int bitField0_; + public static final int FRAMEWORK_DEPLOYMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object frameworkDeployment_ = ""; + + /** + * + * + *
                                    +   * The framework deployment name for the target resource.
                                    +   *
                                    +   * For example,
                                    +   * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}`
                                    +   * 
                                    + * + * string framework_deployment = 1; + * + * @return The frameworkDeployment. + */ + @java.lang.Override + public java.lang.String getFrameworkDeployment() { + java.lang.Object ref = frameworkDeployment_; + 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(); + frameworkDeployment_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The framework deployment name for the target resource.
                                    +   *
                                    +   * For example,
                                    +   * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}`
                                    +   * 
                                    + * + * string framework_deployment = 1; + * + * @return The bytes for frameworkDeployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFrameworkDeploymentBytes() { + java.lang.Object ref = frameworkDeployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkDeployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_RESOURCE_DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetResourceDisplayName_ = ""; + + /** + * + * + *
                                    +   * The display name of the target resource. For example, `google.com`,
                                    +   * `staging-project`, or `development-folder`.
                                    +   * 
                                    + * + * string target_resource_display_name = 2; + * + * @return The targetResourceDisplayName. + */ + @java.lang.Override + public java.lang.String getTargetResourceDisplayName() { + java.lang.Object ref = targetResourceDisplayName_; + 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(); + targetResourceDisplayName_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The display name of the target resource. For example, `google.com`,
                                    +   * `staging-project`, or `development-folder`.
                                    +   * 
                                    + * + * string target_resource_display_name = 2; + * + * @return The bytes for targetResourceDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetResourceDisplayNameBytes() { + java.lang.Object ref = targetResourceDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetResourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_RESOURCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetResource_ = ""; + + /** + * + * + *
                                    +   * The target resource. For example, `organizations/1234567890`,
                                    +   * `projects/1234567890`, or `folders/1234567890`.
                                    +   * 
                                    + * + * string target_resource = 3; + * + * @return The targetResource. + */ + @java.lang.Override + public java.lang.String getTargetResource() { + java.lang.Object ref = targetResource_; + 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(); + targetResource_ = s; + return s; + } + } + + /** + * + * + *
                                    +   * The target resource. For example, `organizations/1234567890`,
                                    +   * `projects/1234567890`, or `folders/1234567890`.
                                    +   * 
                                    + * + * string target_resource = 3; + * + * @return The bytes for targetResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetResourceBytes() { + java.lang.Object ref = targetResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                    +   * The create time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * The create time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                    +   * The create time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + */ + @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 = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                    +   * The update time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * The update time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                    +   * The update time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int MAJOR_REVISION_ID_FIELD_NUMBER = 6; + private long majorRevisionId_ = 0L; + + /** + * + * + *
                                    +   * The major revision ID of the framework for the target resource.
                                    +   * 
                                    + * + * int64 major_revision_id = 6; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + + public static final int MINOR_REVISION_ID_FIELD_NUMBER = 7; + private long minorRevisionId_ = 0L; + + /** + * + * + *
                                    +   * The minor revision ID of the framework for the target resource.
                                    +   * 
                                    + * + * int64 minor_revision_id = 7; + * + * @return The minorRevisionId. + */ + @java.lang.Override + public long getMinorRevisionId() { + return minorRevisionId_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkDeployment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, frameworkDeployment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetResourceDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetResourceDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetResource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (majorRevisionId_ != 0L) { + output.writeInt64(6, majorRevisionId_); + } + if (minorRevisionId_ != 0L) { + output.writeInt64(7, minorRevisionId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(frameworkDeployment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, frameworkDeployment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetResourceDisplayName_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetResourceDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetResource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (majorRevisionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, majorRevisionId_); + } + if (minorRevisionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, minorRevisionId_); + } + 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.cloudsecuritycompliance.v1.TargetResourceDetails)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails other = + (com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails) obj; + + if (!getFrameworkDeployment().equals(other.getFrameworkDeployment())) return false; + if (!getTargetResourceDisplayName().equals(other.getTargetResourceDisplayName())) return false; + if (!getTargetResource().equals(other.getTargetResource())) 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 (getMajorRevisionId() != other.getMajorRevisionId()) return false; + if (getMinorRevisionId() != other.getMinorRevisionId()) 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) + FRAMEWORK_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getFrameworkDeployment().hashCode(); + hash = (37 * hash) + TARGET_RESOURCE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTargetResourceDisplayName().hashCode(); + hash = (37 * hash) + TARGET_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getTargetResource().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(); + } + hash = (37 * hash) + MAJOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMajorRevisionId()); + hash = (37 * hash) + MINOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinorRevisionId()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails 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.cloudsecuritycompliance.v1.TargetResourceDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails 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.cloudsecuritycompliance.v1.TargetResourceDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The details for a target resource.
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails) + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.class, + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + frameworkDeployment_ = ""; + targetResourceDisplayName_ = ""; + targetResource_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + majorRevisionId_ = 0L; + minorRevisionId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails build() { + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails result = + new com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.frameworkDeployment_ = frameworkDeployment_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetResourceDisplayName_ = targetResourceDisplayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetResource_ = targetResource_; + } + 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.majorRevisionId_ = majorRevisionId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.minorRevisionId_ = minorRevisionId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails.getDefaultInstance()) + return this; + if (!other.getFrameworkDeployment().isEmpty()) { + frameworkDeployment_ = other.frameworkDeployment_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTargetResourceDisplayName().isEmpty()) { + targetResourceDisplayName_ = other.targetResourceDisplayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTargetResource().isEmpty()) { + targetResource_ = other.targetResource_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getMajorRevisionId() != 0L) { + setMajorRevisionId(other.getMajorRevisionId()); + } + if (other.getMinorRevisionId() != 0L) { + setMinorRevisionId(other.getMinorRevisionId()); + } + 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: + { + frameworkDeployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + targetResourceDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + targetResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + majorRevisionId_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + minorRevisionId_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + 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 frameworkDeployment_ = ""; + + /** + * + * + *
                                    +     * The framework deployment name for the target resource.
                                    +     *
                                    +     * For example,
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}`
                                    +     * 
                                    + * + * string framework_deployment = 1; + * + * @return The frameworkDeployment. + */ + public java.lang.String getFrameworkDeployment() { + java.lang.Object ref = frameworkDeployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + frameworkDeployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The framework deployment name for the target resource.
                                    +     *
                                    +     * For example,
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}`
                                    +     * 
                                    + * + * string framework_deployment = 1; + * + * @return The bytes for frameworkDeployment. + */ + public com.google.protobuf.ByteString getFrameworkDeploymentBytes() { + java.lang.Object ref = frameworkDeployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + frameworkDeployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The framework deployment name for the target resource.
                                    +     *
                                    +     * For example,
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}`
                                    +     * 
                                    + * + * string framework_deployment = 1; + * + * @param value The frameworkDeployment to set. + * @return This builder for chaining. + */ + public Builder setFrameworkDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + frameworkDeployment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The framework deployment name for the target resource.
                                    +     *
                                    +     * For example,
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}`
                                    +     * 
                                    + * + * string framework_deployment = 1; + * + * @return This builder for chaining. + */ + public Builder clearFrameworkDeployment() { + frameworkDeployment_ = getDefaultInstance().getFrameworkDeployment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The framework deployment name for the target resource.
                                    +     *
                                    +     * For example,
                                    +     * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}`
                                    +     * 
                                    + * + * string framework_deployment = 1; + * + * @param value The bytes for frameworkDeployment to set. + * @return This builder for chaining. + */ + public Builder setFrameworkDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameworkDeployment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object targetResourceDisplayName_ = ""; + + /** + * + * + *
                                    +     * The display name of the target resource. For example, `google.com`,
                                    +     * `staging-project`, or `development-folder`.
                                    +     * 
                                    + * + * string target_resource_display_name = 2; + * + * @return The targetResourceDisplayName. + */ + public java.lang.String getTargetResourceDisplayName() { + java.lang.Object ref = targetResourceDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetResourceDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The display name of the target resource. For example, `google.com`,
                                    +     * `staging-project`, or `development-folder`.
                                    +     * 
                                    + * + * string target_resource_display_name = 2; + * + * @return The bytes for targetResourceDisplayName. + */ + public com.google.protobuf.ByteString getTargetResourceDisplayNameBytes() { + java.lang.Object ref = targetResourceDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetResourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The display name of the target resource. For example, `google.com`,
                                    +     * `staging-project`, or `development-folder`.
                                    +     * 
                                    + * + * string target_resource_display_name = 2; + * + * @param value The targetResourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setTargetResourceDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The display name of the target resource. For example, `google.com`,
                                    +     * `staging-project`, or `development-folder`.
                                    +     * 
                                    + * + * string target_resource_display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearTargetResourceDisplayName() { + targetResourceDisplayName_ = getDefaultInstance().getTargetResourceDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The display name of the target resource. For example, `google.com`,
                                    +     * `staging-project`, or `development-folder`.
                                    +     * 
                                    + * + * string target_resource_display_name = 2; + * + * @param value The bytes for targetResourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setTargetResourceDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object targetResource_ = ""; + + /** + * + * + *
                                    +     * The target resource. For example, `organizations/1234567890`,
                                    +     * `projects/1234567890`, or `folders/1234567890`.
                                    +     * 
                                    + * + * string target_resource = 3; + * + * @return The targetResource. + */ + public java.lang.String getTargetResource() { + java.lang.Object ref = targetResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                    +     * The target resource. For example, `organizations/1234567890`,
                                    +     * `projects/1234567890`, or `folders/1234567890`.
                                    +     * 
                                    + * + * string target_resource = 3; + * + * @return The bytes for targetResource. + */ + public com.google.protobuf.ByteString getTargetResourceBytes() { + java.lang.Object ref = targetResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                    +     * The target resource. For example, `organizations/1234567890`,
                                    +     * `projects/1234567890`, or `folders/1234567890`.
                                    +     * 
                                    + * + * string target_resource = 3; + * + * @param value The targetResource to set. + * @return This builder for chaining. + */ + public Builder setTargetResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The target resource. For example, `organizations/1234567890`,
                                    +     * `projects/1234567890`, or `folders/1234567890`.
                                    +     * 
                                    + * + * string target_resource = 3; + * + * @return This builder for chaining. + */ + public Builder clearTargetResource() { + targetResource_ = getDefaultInstance().getTargetResource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The target resource. For example, `organizations/1234567890`,
                                    +     * `projects/1234567890`, or `folders/1234567890`.
                                    +     * 
                                    + * + * string target_resource = 3; + * + * @param value The bytes for targetResource to set. + * @return This builder for chaining. + */ + public Builder setTargetResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                    +     * The create time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                    +     * The create time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + * + * @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(); + } + } + + /** + * + * + *
                                    +     * The create time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + */ + 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; + } + + /** + * + * + *
                                    +     * The create time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + */ + 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; + } + + /** + * + * + *
                                    +     * The create time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + */ + 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; + } + + /** + * + * + *
                                    +     * The create time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The create time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The create time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                    +     * The create time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                    +     * The update time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                    +     * The update time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + * + * @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(); + } + } + + /** + * + * + *
                                    +     * The update time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + */ + 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; + } + + /** + * + * + *
                                    +     * The update time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + */ + 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; + } + + /** + * + * + *
                                    +     * The update time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + */ + 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; + } + + /** + * + * + *
                                    +     * The update time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The update time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The update time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                    +     * The update time of the target resource.
                                    +     * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long majorRevisionId_; + + /** + * + * + *
                                    +     * The major revision ID of the framework for the target resource.
                                    +     * 
                                    + * + * int64 major_revision_id = 6; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public long getMajorRevisionId() { + return majorRevisionId_; + } + + /** + * + * + *
                                    +     * The major revision ID of the framework for the target resource.
                                    +     * 
                                    + * + * int64 major_revision_id = 6; + * + * @param value The majorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMajorRevisionId(long value) { + + majorRevisionId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The major revision ID of the framework for the target resource.
                                    +     * 
                                    + * + * int64 major_revision_id = 6; + * + * @return This builder for chaining. + */ + public Builder clearMajorRevisionId() { + bitField0_ = (bitField0_ & ~0x00000020); + majorRevisionId_ = 0L; + onChanged(); + return this; + } + + private long minorRevisionId_; + + /** + * + * + *
                                    +     * The minor revision ID of the framework for the target resource.
                                    +     * 
                                    + * + * int64 minor_revision_id = 7; + * + * @return The minorRevisionId. + */ + @java.lang.Override + public long getMinorRevisionId() { + return minorRevisionId_; + } + + /** + * + * + *
                                    +     * The minor revision ID of the framework for the target resource.
                                    +     * 
                                    + * + * int64 minor_revision_id = 7; + * + * @param value The minorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMinorRevisionId(long value) { + + minorRevisionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The minor revision ID of the framework for the target resource.
                                    +     * 
                                    + * + * int64 minor_revision_id = 7; + * + * @return This builder for chaining. + */ + public Builder clearMinorRevisionId() { + bitField0_ = (bitField0_ & ~0x00000040); + minorRevisionId_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails) + private static final com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetResourceDetails 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.cloudsecuritycompliance.v1.TargetResourceDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceDetailsOrBuilder.java new file mode 100644 index 000000000000..5d2ff8dc8a76 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceDetailsOrBuilder.java @@ -0,0 +1,214 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface TargetResourceDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The framework deployment name for the target resource.
                                    +   *
                                    +   * For example,
                                    +   * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}`
                                    +   * 
                                    + * + * string framework_deployment = 1; + * + * @return The frameworkDeployment. + */ + java.lang.String getFrameworkDeployment(); + + /** + * + * + *
                                    +   * The framework deployment name for the target resource.
                                    +   *
                                    +   * For example,
                                    +   * `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}`
                                    +   * 
                                    + * + * string framework_deployment = 1; + * + * @return The bytes for frameworkDeployment. + */ + com.google.protobuf.ByteString getFrameworkDeploymentBytes(); + + /** + * + * + *
                                    +   * The display name of the target resource. For example, `google.com`,
                                    +   * `staging-project`, or `development-folder`.
                                    +   * 
                                    + * + * string target_resource_display_name = 2; + * + * @return The targetResourceDisplayName. + */ + java.lang.String getTargetResourceDisplayName(); + + /** + * + * + *
                                    +   * The display name of the target resource. For example, `google.com`,
                                    +   * `staging-project`, or `development-folder`.
                                    +   * 
                                    + * + * string target_resource_display_name = 2; + * + * @return The bytes for targetResourceDisplayName. + */ + com.google.protobuf.ByteString getTargetResourceDisplayNameBytes(); + + /** + * + * + *
                                    +   * The target resource. For example, `organizations/1234567890`,
                                    +   * `projects/1234567890`, or `folders/1234567890`.
                                    +   * 
                                    + * + * string target_resource = 3; + * + * @return The targetResource. + */ + java.lang.String getTargetResource(); + + /** + * + * + *
                                    +   * The target resource. For example, `organizations/1234567890`,
                                    +   * `projects/1234567890`, or `folders/1234567890`.
                                    +   * 
                                    + * + * string target_resource = 3; + * + * @return The bytes for targetResource. + */ + com.google.protobuf.ByteString getTargetResourceBytes(); + + /** + * + * + *
                                    +   * The create time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                    +   * The create time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                    +   * The create time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp create_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                    +   * The update time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                    +   * The update time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                    +   * The update time of the target resource.
                                    +   * 
                                    + * + * .google.protobuf.Timestamp update_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                    +   * The major revision ID of the framework for the target resource.
                                    +   * 
                                    + * + * int64 major_revision_id = 6; + * + * @return The majorRevisionId. + */ + long getMajorRevisionId(); + + /** + * + * + *
                                    +   * The minor revision ID of the framework for the target resource.
                                    +   * 
                                    + * + * int64 minor_revision_id = 7; + * + * @return The minorRevisionId. + */ + long getMinorRevisionId(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceType.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceType.java index 8ed2ec41e097..4f428a25ad0d 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceType.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TargetResourceType.java @@ -23,8 +23,7 @@ * * *
                                    - * TargetResourceType represents the type of resource that a control or
                                    - * framework can be applied to.
                                    + * The type of resource that a control or framework can be applied to.
                                      * 
                                    * * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.TargetResourceType} @@ -44,7 +43,7 @@ public enum TargetResourceType implements com.google.protobuf.ProtocolMessageEnu * * *
                                    -   * Target resource is an Organization.
                                    +   * The target resource is a Google Cloud organization.
                                        * 
                                    * * TARGET_RESOURCE_CRM_TYPE_ORG = 1; @@ -54,7 +53,7 @@ public enum TargetResourceType implements com.google.protobuf.ProtocolMessageEnu * * *
                                    -   * Target resource is a Folder.
                                    +   * The target resource is a folder.
                                        * 
                                    * * TARGET_RESOURCE_CRM_TYPE_FOLDER = 2; @@ -64,7 +63,7 @@ public enum TargetResourceType implements com.google.protobuf.ProtocolMessageEnu * * *
                                    -   * Target resource is a Project.
                                    +   * The target resource is a project.
                                        * 
                                    * * TARGET_RESOURCE_CRM_TYPE_PROJECT = 3; @@ -74,7 +73,7 @@ public enum TargetResourceType implements com.google.protobuf.ProtocolMessageEnu * * *
                                    -   * Target resource is an Application.
                                    +   * The target resource is an application in App Hub.
                                        * 
                                    * * TARGET_RESOURCE_TYPE_APPLICATION = 4; @@ -98,7 +97,7 @@ public enum TargetResourceType implements com.google.protobuf.ProtocolMessageEnu * * *
                                    -   * Target resource is an Organization.
                                    +   * The target resource is a Google Cloud organization.
                                        * 
                                    * * TARGET_RESOURCE_CRM_TYPE_ORG = 1; @@ -109,7 +108,7 @@ public enum TargetResourceType implements com.google.protobuf.ProtocolMessageEnu * * *
                                    -   * Target resource is a Folder.
                                    +   * The target resource is a folder.
                                        * 
                                    * * TARGET_RESOURCE_CRM_TYPE_FOLDER = 2; @@ -120,7 +119,7 @@ public enum TargetResourceType implements com.google.protobuf.ProtocolMessageEnu * * *
                                    -   * Target resource is a Project.
                                    +   * The target resource is a project.
                                        * 
                                    * * TARGET_RESOURCE_CRM_TYPE_PROJECT = 3; @@ -131,7 +130,7 @@ public enum TargetResourceType implements com.google.protobuf.ProtocolMessageEnu * * *
                                    -   * Target resource is an Application.
                                    +   * The target resource is an application in App Hub.
                                        * 
                                    * * TARGET_RESOURCE_TYPE_APPLICATION = 4; @@ -204,7 +203,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor() .getEnumTypes() - .get(6); + .get(7); } private static final TargetResourceType[] VALUES = values(); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCloudControlRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCloudControlRequest.java index 134d6b5f04f9..1a0299ec1fa7 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCloudControlRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCloudControlRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for UpdateCloudControl.
                                    + * The request message for [UpdateCloudControl][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest} @@ -70,17 +70,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * CloudControl 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 present in the request will be
                                    -   * overwritten. The fields that can be updated are:
                                    -   * 1. Display_name
                                    -   * 2. Description
                                    -   * 3. Parameters
                                    -   * 4. Rules
                                    -   * 5. ParameterSpec.
                                    +   * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +   * cloud control during the update.
                                    +   * The fields that you specify in the `update_mask` are relative to the
                                    +   * cloud control, not the full request. A field is overwritten if it is in
                                    +   * the mask. If you don't provide a mask, all fields in the request
                                    +   * are updated.
                                    +   *
                                    +   * You can update the following fields:
                                    +   *
                                    +   * - Display name
                                    +   * - Description
                                    +   * - Parameters
                                    +   * - Rules
                                    +   * - Parameter specification
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -97,17 +100,20 @@ public boolean hasUpdateMask() { * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * CloudControl 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 present in the request will be
                                    -   * overwritten. The fields that can be updated are:
                                    -   * 1. Display_name
                                    -   * 2. Description
                                    -   * 3. Parameters
                                    -   * 4. Rules
                                    -   * 5. ParameterSpec.
                                    +   * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +   * cloud control during the update.
                                    +   * The fields that you specify in the `update_mask` are relative to the
                                    +   * cloud control, not the full request. A field is overwritten if it is in
                                    +   * the mask. If you don't provide a mask, all fields in the request
                                    +   * are updated.
                                    +   *
                                    +   * You can update the following fields:
                                    +   *
                                    +   * - Display name
                                    +   * - Description
                                    +   * - Parameters
                                    +   * - Rules
                                    +   * - Parameter specification
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -124,17 +130,20 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * CloudControl 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 present in the request will be
                                    -   * overwritten. The fields that can be updated are:
                                    -   * 1. Display_name
                                    -   * 2. Description
                                    -   * 3. Parameters
                                    -   * 4. Rules
                                    -   * 5. ParameterSpec.
                                    +   * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +   * cloud control during the update.
                                    +   * The fields that you specify in the `update_mask` are relative to the
                                    +   * cloud control, not the full request. A field is overwritten if it is in
                                    +   * the mask. If you don't provide a mask, all fields in the request
                                    +   * are updated.
                                    +   *
                                    +   * You can update the following fields:
                                    +   *
                                    +   * - Display name
                                    +   * - Description
                                    +   * - Parameters
                                    +   * - Rules
                                    +   * - Parameter specification
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -152,7 +161,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The cloud control that you're updating.
                                        * 
                                    * * @@ -170,7 +179,7 @@ public boolean hasCloudControl() { * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The cloud control that you're updating.
                                        * 
                                    * * @@ -190,7 +199,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl getCloudControl( * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The cloud control that you're updating.
                                        * 
                                    * * @@ -390,7 +399,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for UpdateCloudControl.
                                    +   * The request message for [UpdateCloudControl][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest} @@ -621,17 +630,20 @@ public Builder mergeFrom( * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * CloudControl 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 present in the request will be
                                    -     * overwritten. The fields that can be updated are:
                                    -     * 1. Display_name
                                    -     * 2. Description
                                    -     * 3. Parameters
                                    -     * 4. Rules
                                    -     * 5. ParameterSpec.
                                    +     * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +     * cloud control during the update.
                                    +     * The fields that you specify in the `update_mask` are relative to the
                                    +     * cloud control, not the full request. A field is overwritten if it is in
                                    +     * the mask. If you don't provide a mask, all fields in the request
                                    +     * are updated.
                                    +     *
                                    +     * You can update the following fields:
                                    +     *
                                    +     * - Display name
                                    +     * - Description
                                    +     * - Parameters
                                    +     * - Rules
                                    +     * - Parameter specification
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -647,17 +659,20 @@ public boolean hasUpdateMask() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * CloudControl 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 present in the request will be
                                    -     * overwritten. The fields that can be updated are:
                                    -     * 1. Display_name
                                    -     * 2. Description
                                    -     * 3. Parameters
                                    -     * 4. Rules
                                    -     * 5. ParameterSpec.
                                    +     * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +     * cloud control during the update.
                                    +     * The fields that you specify in the `update_mask` are relative to the
                                    +     * cloud control, not the full request. A field is overwritten if it is in
                                    +     * the mask. If you don't provide a mask, all fields in the request
                                    +     * are updated.
                                    +     *
                                    +     * You can update the following fields:
                                    +     *
                                    +     * - Display name
                                    +     * - Description
                                    +     * - Parameters
                                    +     * - Rules
                                    +     * - Parameter specification
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -679,17 +694,20 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * CloudControl 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 present in the request will be
                                    -     * overwritten. The fields that can be updated are:
                                    -     * 1. Display_name
                                    -     * 2. Description
                                    -     * 3. Parameters
                                    -     * 4. Rules
                                    -     * 5. ParameterSpec.
                                    +     * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +     * cloud control during the update.
                                    +     * The fields that you specify in the `update_mask` are relative to the
                                    +     * cloud control, not the full request. A field is overwritten if it is in
                                    +     * the mask. If you don't provide a mask, all fields in the request
                                    +     * are updated.
                                    +     *
                                    +     * You can update the following fields:
                                    +     *
                                    +     * - Display name
                                    +     * - Description
                                    +     * - Parameters
                                    +     * - Rules
                                    +     * - Parameter specification
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -713,17 +731,20 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * CloudControl 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 present in the request will be
                                    -     * overwritten. The fields that can be updated are:
                                    -     * 1. Display_name
                                    -     * 2. Description
                                    -     * 3. Parameters
                                    -     * 4. Rules
                                    -     * 5. ParameterSpec.
                                    +     * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +     * cloud control during the update.
                                    +     * The fields that you specify in the `update_mask` are relative to the
                                    +     * cloud control, not the full request. A field is overwritten if it is in
                                    +     * the mask. If you don't provide a mask, all fields in the request
                                    +     * are updated.
                                    +     *
                                    +     * You can update the following fields:
                                    +     *
                                    +     * - Display name
                                    +     * - Description
                                    +     * - Parameters
                                    +     * - Rules
                                    +     * - Parameter specification
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -744,17 +765,20 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * CloudControl 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 present in the request will be
                                    -     * overwritten. The fields that can be updated are:
                                    -     * 1. Display_name
                                    -     * 2. Description
                                    -     * 3. Parameters
                                    -     * 4. Rules
                                    -     * 5. ParameterSpec.
                                    +     * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +     * cloud control during the update.
                                    +     * The fields that you specify in the `update_mask` are relative to the
                                    +     * cloud control, not the full request. A field is overwritten if it is in
                                    +     * the mask. If you don't provide a mask, all fields in the request
                                    +     * are updated.
                                    +     *
                                    +     * You can update the following fields:
                                    +     *
                                    +     * - Display name
                                    +     * - Description
                                    +     * - Parameters
                                    +     * - Rules
                                    +     * - Parameter specification
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -783,17 +807,20 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * CloudControl 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 present in the request will be
                                    -     * overwritten. The fields that can be updated are:
                                    -     * 1. Display_name
                                    -     * 2. Description
                                    -     * 3. Parameters
                                    -     * 4. Rules
                                    -     * 5. ParameterSpec.
                                    +     * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +     * cloud control during the update.
                                    +     * The fields that you specify in the `update_mask` are relative to the
                                    +     * cloud control, not the full request. A field is overwritten if it is in
                                    +     * the mask. If you don't provide a mask, all fields in the request
                                    +     * are updated.
                                    +     *
                                    +     * You can update the following fields:
                                    +     *
                                    +     * - Display name
                                    +     * - Description
                                    +     * - Parameters
                                    +     * - Rules
                                    +     * - Parameter specification
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -814,17 +841,20 @@ public Builder clearUpdateMask() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * CloudControl 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 present in the request will be
                                    -     * overwritten. The fields that can be updated are:
                                    -     * 1. Display_name
                                    -     * 2. Description
                                    -     * 3. Parameters
                                    -     * 4. Rules
                                    -     * 5. ParameterSpec.
                                    +     * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +     * cloud control during the update.
                                    +     * The fields that you specify in the `update_mask` are relative to the
                                    +     * cloud control, not the full request. A field is overwritten if it is in
                                    +     * the mask. If you don't provide a mask, all fields in the request
                                    +     * are updated.
                                    +     *
                                    +     * You can update the following fields:
                                    +     *
                                    +     * - Display name
                                    +     * - Description
                                    +     * - Parameters
                                    +     * - Rules
                                    +     * - Parameter specification
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -840,17 +870,20 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * CloudControl 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 present in the request will be
                                    -     * overwritten. The fields that can be updated are:
                                    -     * 1. Display_name
                                    -     * 2. Description
                                    -     * 3. Parameters
                                    -     * 4. Rules
                                    -     * 5. ParameterSpec.
                                    +     * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +     * cloud control during the update.
                                    +     * The fields that you specify in the `update_mask` are relative to the
                                    +     * cloud control, not the full request. A field is overwritten if it is in
                                    +     * the mask. If you don't provide a mask, all fields in the request
                                    +     * are updated.
                                    +     *
                                    +     * You can update the following fields:
                                    +     *
                                    +     * - Display name
                                    +     * - Description
                                    +     * - Parameters
                                    +     * - Rules
                                    +     * - Parameter specification
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -870,17 +903,20 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * CloudControl 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 present in the request will be
                                    -     * overwritten. The fields that can be updated are:
                                    -     * 1. Display_name
                                    -     * 2. Description
                                    -     * 3. Parameters
                                    -     * 4. Rules
                                    -     * 5. ParameterSpec.
                                    +     * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +     * cloud control during the update.
                                    +     * The fields that you specify in the `update_mask` are relative to the
                                    +     * cloud control, not the full request. A field is overwritten if it is in
                                    +     * the mask. If you don't provide a mask, all fields in the request
                                    +     * are updated.
                                    +     *
                                    +     * You can update the following fields:
                                    +     *
                                    +     * - Display name
                                    +     * - Description
                                    +     * - Parameters
                                    +     * - Rules
                                    +     * - Parameter specification
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -914,7 +950,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The cloud control that you're updating.
                                          * 
                                    * * @@ -931,7 +967,7 @@ public boolean hasCloudControl() { * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The cloud control that you're updating.
                                          * 
                                    * * @@ -954,7 +990,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.CloudControl getCloudControl( * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The cloud control that you're updating.
                                          * 
                                    * * @@ -979,7 +1015,7 @@ public Builder setCloudControl(com.google.cloud.cloudsecuritycompliance.v1.Cloud * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The cloud control that you're updating.
                                          * 
                                    * * @@ -1002,7 +1038,7 @@ public Builder setCloudControl( * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The cloud control that you're updating.
                                          * 
                                    * * @@ -1034,7 +1070,7 @@ public Builder mergeCloudControl( * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The cloud control that you're updating.
                                          * 
                                    * * @@ -1056,7 +1092,7 @@ public Builder clearCloudControl() { * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The cloud control that you're updating.
                                          * 
                                    * * @@ -1074,7 +1110,7 @@ public Builder clearCloudControl() { * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The cloud control that you're updating.
                                          * 
                                    * * @@ -1096,7 +1132,7 @@ public Builder clearCloudControl() { * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The cloud control that you're updating.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCloudControlRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCloudControlRequestOrBuilder.java index 125b427a52cf..2423d7b2b1d0 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCloudControlRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCloudControlRequestOrBuilder.java @@ -28,17 +28,20 @@ public interface UpdateCloudControlRequestOrBuilder * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * CloudControl 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 present in the request will be
                                    -   * overwritten. The fields that can be updated are:
                                    -   * 1. Display_name
                                    -   * 2. Description
                                    -   * 3. Parameters
                                    -   * 4. Rules
                                    -   * 5. ParameterSpec.
                                    +   * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +   * cloud control during the update.
                                    +   * The fields that you specify in the `update_mask` are relative to the
                                    +   * cloud control, not the full request. A field is overwritten if it is in
                                    +   * the mask. If you don't provide a mask, all fields in the request
                                    +   * are updated.
                                    +   *
                                    +   * You can update the following fields:
                                    +   *
                                    +   * - Display name
                                    +   * - Description
                                    +   * - Parameters
                                    +   * - Rules
                                    +   * - Parameter specification
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -52,17 +55,20 @@ public interface UpdateCloudControlRequestOrBuilder * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * CloudControl 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 present in the request will be
                                    -   * overwritten. The fields that can be updated are:
                                    -   * 1. Display_name
                                    -   * 2. Description
                                    -   * 3. Parameters
                                    -   * 4. Rules
                                    -   * 5. ParameterSpec.
                                    +   * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +   * cloud control during the update.
                                    +   * The fields that you specify in the `update_mask` are relative to the
                                    +   * cloud control, not the full request. A field is overwritten if it is in
                                    +   * the mask. If you don't provide a mask, all fields in the request
                                    +   * are updated.
                                    +   *
                                    +   * You can update the following fields:
                                    +   *
                                    +   * - Display name
                                    +   * - Description
                                    +   * - Parameters
                                    +   * - Rules
                                    +   * - Parameter specification
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -76,17 +82,20 @@ public interface UpdateCloudControlRequestOrBuilder * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * CloudControl 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 present in the request will be
                                    -   * overwritten. The fields that can be updated are:
                                    -   * 1. Display_name
                                    -   * 2. Description
                                    -   * 3. Parameters
                                    -   * 4. Rules
                                    -   * 5. ParameterSpec.
                                    +   * Optional. Use a field mask to specify the fields to be overwritten in the
                                    +   * cloud control during the update.
                                    +   * The fields that you specify in the `update_mask` are relative to the
                                    +   * cloud control, not the full request. A field is overwritten if it is in
                                    +   * the mask. If you don't provide a mask, all fields in the request
                                    +   * are updated.
                                    +   *
                                    +   * You can update the following fields:
                                    +   *
                                    +   * - Display name
                                    +   * - Description
                                    +   * - Parameters
                                    +   * - Rules
                                    +   * - Parameter specification
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -98,7 +107,7 @@ public interface UpdateCloudControlRequestOrBuilder * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The cloud control that you're updating.
                                        * 
                                    * * @@ -113,7 +122,7 @@ public interface UpdateCloudControlRequestOrBuilder * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The cloud control that you're updating.
                                        * 
                                    * * @@ -128,7 +137,7 @@ public interface UpdateCloudControlRequestOrBuilder * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The cloud control that you're updating.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCmEnrollmentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCmEnrollmentRequest.java new file mode 100644 index 000000000000..722096c2ebbd --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCmEnrollmentRequest.java @@ -0,0 +1,1078 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                                    + * The request message for [UpdateCmEnrollment][].
                                    + * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest} + */ +public final class UpdateCmEnrollmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest) + UpdateCmEnrollmentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateCmEnrollmentRequest.newBuilder() to construct. + private UpdateCmEnrollmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCmEnrollmentRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCmEnrollmentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_UpdateCmEnrollmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_UpdateCmEnrollmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest.Builder.class); + } + + private int bitField0_; + public static final int CM_ENROLLMENT_FIELD_NUMBER = 1; + private com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment cmEnrollment_; + + /** + * + * + *
                                    +   * Required. The Compliance Manager enrollment to update.
                                    +   * The `name` field is used to identify the settings that you want to update.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cmEnrollment field is set. + */ + @java.lang.Override + public boolean hasCmEnrollment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * Required. The Compliance Manager enrollment to update.
                                    +   * The `name` field is used to identify the settings that you want to update.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cmEnrollment. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment getCmEnrollment() { + return cmEnrollment_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance() + : cmEnrollment_; + } + + /** + * + * + *
                                    +   * Required. The Compliance Manager enrollment to update.
                                    +   * The `name` field is used to identify the settings that you want to update.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder + getCmEnrollmentOrBuilder() { + return cmEnrollment_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance() + : cmEnrollment_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                    +   * Optional. The list of fields that you want to update.
                                    +   * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * Optional. The list of fields that you want to update.
                                    +   * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The list of fields that you want to update.
                                    +   * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getCmEnrollment()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getCmEnrollment()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest other = + (com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest) obj; + + if (hasCmEnrollment() != other.hasCmEnrollment()) return false; + if (hasCmEnrollment()) { + if (!getCmEnrollment().equals(other.getCmEnrollment())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasCmEnrollment()) { + hash = (37 * hash) + CM_ENROLLMENT_FIELD_NUMBER; + hash = (53 * hash) + getCmEnrollment().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest 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.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest 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.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * The request message for [UpdateCmEnrollment][].
                                    +   * 
                                    + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest) + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_UpdateCmEnrollmentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_UpdateCmEnrollmentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest.class, + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCmEnrollmentFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cmEnrollment_ = null; + if (cmEnrollmentBuilder_ != null) { + cmEnrollmentBuilder_.dispose(); + cmEnrollmentBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_UpdateCmEnrollmentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest build() { + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest result = + new com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cmEnrollment_ = + cmEnrollmentBuilder_ == null ? cmEnrollment_ : cmEnrollmentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest) { + return mergeFrom( + (com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest other) { + if (other + == com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + .getDefaultInstance()) return this; + if (other.hasCmEnrollment()) { + mergeCmEnrollment(other.getCmEnrollment()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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(getCmEnrollmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.cloudsecuritycompliance.v1.CmEnrollment cmEnrollment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder> + cmEnrollmentBuilder_; + + /** + * + * + *
                                    +     * Required. The Compliance Manager enrollment to update.
                                    +     * The `name` field is used to identify the settings that you want to update.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cmEnrollment field is set. + */ + public boolean hasCmEnrollment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +     * Required. The Compliance Manager enrollment to update.
                                    +     * The `name` field is used to identify the settings that you want to update.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cmEnrollment. + */ + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment getCmEnrollment() { + if (cmEnrollmentBuilder_ == null) { + return cmEnrollment_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance() + : cmEnrollment_; + } else { + return cmEnrollmentBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Required. The Compliance Manager enrollment to update.
                                    +     * The `name` field is used to identify the settings that you want to update.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCmEnrollment(com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment value) { + if (cmEnrollmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cmEnrollment_ = value; + } else { + cmEnrollmentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The Compliance Manager enrollment to update.
                                    +     * The `name` field is used to identify the settings that you want to update.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder builderForValue) { + if (cmEnrollmentBuilder_ == null) { + cmEnrollment_ = builderForValue.build(); + } else { + cmEnrollmentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The Compliance Manager enrollment to update.
                                    +     * The `name` field is used to identify the settings that you want to update.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCmEnrollment( + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment value) { + if (cmEnrollmentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && cmEnrollment_ != null + && cmEnrollment_ + != com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance()) { + getCmEnrollmentBuilder().mergeFrom(value); + } else { + cmEnrollment_ = value; + } + } else { + cmEnrollmentBuilder_.mergeFrom(value); + } + if (cmEnrollment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Required. The Compliance Manager enrollment to update.
                                    +     * The `name` field is used to identify the settings that you want to update.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCmEnrollment() { + bitField0_ = (bitField0_ & ~0x00000001); + cmEnrollment_ = null; + if (cmEnrollmentBuilder_ != null) { + cmEnrollmentBuilder_.dispose(); + cmEnrollmentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Required. The Compliance Manager enrollment to update.
                                    +     * The `name` field is used to identify the settings that you want to update.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder + getCmEnrollmentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCmEnrollmentFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Required. The Compliance Manager enrollment to update.
                                    +     * The `name` field is used to identify the settings that you want to update.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder + getCmEnrollmentOrBuilder() { + if (cmEnrollmentBuilder_ != null) { + return cmEnrollmentBuilder_.getMessageOrBuilder(); + } else { + return cmEnrollment_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.getDefaultInstance() + : cmEnrollment_; + } + } + + /** + * + * + *
                                    +     * Required. The Compliance Manager enrollment to update.
                                    +     * The `name` field is used to identify the settings that you want to update.
                                    +     * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder> + getCmEnrollmentFieldBuilder() { + if (cmEnrollmentBuilder_ == null) { + cmEnrollmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment.Builder, + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder>( + getCmEnrollment(), getParentForChildren(), isClean()); + cmEnrollment_ = null; + } + return cmEnrollmentBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                    +     * Optional. The list of fields that you want to update.
                                    +     * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * Optional. The list of fields that you want to update.
                                    +     * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The list of fields that you want to update.
                                    +     * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The list of fields that you want to update.
                                    +     * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The list of fields that you want to update.
                                    +     * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. The list of fields that you want to update.
                                    +     * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. The list of fields that you want to update.
                                    +     * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Optional. The list of fields that you want to update.
                                    +     * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The list of fields that you want to update.
                                    +     * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest) + private static final com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCmEnrollmentRequest 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.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCmEnrollmentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCmEnrollmentRequestOrBuilder.java new file mode 100644 index 000000000000..a34082548f31 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateCmEnrollmentRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2025 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! +// source: google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.cloudsecuritycompliance.v1; + +public interface UpdateCmEnrollmentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Required. The Compliance Manager enrollment to update.
                                    +   * The `name` field is used to identify the settings that you want to update.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cmEnrollment field is set. + */ + boolean hasCmEnrollment(); + + /** + * + * + *
                                    +   * Required. The Compliance Manager enrollment to update.
                                    +   * The `name` field is used to identify the settings that you want to update.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cmEnrollment. + */ + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment getCmEnrollment(); + + /** + * + * + *
                                    +   * Required. The Compliance Manager enrollment to update.
                                    +   * The `name` field is used to identify the settings that you want to update.
                                    +   * 
                                    + * + * + * .google.cloud.cloudsecuritycompliance.v1.CmEnrollment cm_enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentOrBuilder getCmEnrollmentOrBuilder(); + + /** + * + * + *
                                    +   * Optional. The list of fields that you want to update.
                                    +   * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                    +   * Optional. The list of fields that you want to update.
                                    +   * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                    +   * Optional. The list of fields that you want to update.
                                    +   * 
                                    + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateFrameworkRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateFrameworkRequest.java index 2495193c5588..d8cbcaafec9c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateFrameworkRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateFrameworkRequest.java @@ -23,7 +23,7 @@ * * *
                                    - * Request message for updating a Framework.
                                    + * The request message for [UpdateFramework][].
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest} @@ -70,12 +70,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * Framework 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 present in the request will be
                                    -   * overwritten.
                                    +   * Optional. A field mask is used to specify the fields to be overwritten in
                                    +   * the framework resource by the update. The fields specified in the
                                    +   * `update_mask` are relative to the resource, not the full request. A field
                                    +   * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +   * fields present in the request will be overwritten.
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -92,12 +91,11 @@ public boolean hasUpdateMask() { * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * Framework 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 present in the request will be
                                    -   * overwritten.
                                    +   * Optional. A field mask is used to specify the fields to be overwritten in
                                    +   * the framework resource by the update. The fields specified in the
                                    +   * `update_mask` are relative to the resource, not the full request. A field
                                    +   * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +   * fields present in the request will be overwritten.
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -114,12 +112,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * Framework 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 present in the request will be
                                    -   * overwritten.
                                    +   * Optional. A field mask is used to specify the fields to be overwritten in
                                    +   * the framework resource by the update. The fields specified in the
                                    +   * `update_mask` are relative to the resource, not the full request. A field
                                    +   * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +   * fields present in the request will be overwritten.
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -137,7 +134,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The resource that is being updated.
                                        * 
                                    * * @@ -155,7 +152,7 @@ public boolean hasFramework() { * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The resource that is being updated.
                                        * 
                                    * * @@ -175,7 +172,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFramework() { * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The resource that is being updated.
                                        * 
                                    * * @@ -402,7 +399,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Request message for updating a Framework.
                                    +   * The request message for [UpdateFramework][].
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest} @@ -645,12 +642,11 @@ public Builder mergeFrom( * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * Framework 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 present in the request will be
                                    -     * overwritten.
                                    +     * Optional. A field mask is used to specify the fields to be overwritten in
                                    +     * the framework resource by the update. The fields specified in the
                                    +     * `update_mask` are relative to the resource, not the full request. A field
                                    +     * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +     * fields present in the request will be overwritten.
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -666,12 +662,11 @@ public boolean hasUpdateMask() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * Framework 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 present in the request will be
                                    -     * overwritten.
                                    +     * Optional. A field mask is used to specify the fields to be overwritten in
                                    +     * the framework resource by the update. The fields specified in the
                                    +     * `update_mask` are relative to the resource, not the full request. A field
                                    +     * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +     * fields present in the request will be overwritten.
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -693,12 +688,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * Framework 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 present in the request will be
                                    -     * overwritten.
                                    +     * Optional. A field mask is used to specify the fields to be overwritten in
                                    +     * the framework resource by the update. The fields specified in the
                                    +     * `update_mask` are relative to the resource, not the full request. A field
                                    +     * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +     * fields present in the request will be overwritten.
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -722,12 +716,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * Framework 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 present in the request will be
                                    -     * overwritten.
                                    +     * Optional. A field mask is used to specify the fields to be overwritten in
                                    +     * the framework resource by the update. The fields specified in the
                                    +     * `update_mask` are relative to the resource, not the full request. A field
                                    +     * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +     * fields present in the request will be overwritten.
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -748,12 +741,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * Framework 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 present in the request will be
                                    -     * overwritten.
                                    +     * Optional. A field mask is used to specify the fields to be overwritten in
                                    +     * the framework resource by the update. The fields specified in the
                                    +     * `update_mask` are relative to the resource, not the full request. A field
                                    +     * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +     * fields present in the request will be overwritten.
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -782,12 +774,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * Framework 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 present in the request will be
                                    -     * overwritten.
                                    +     * Optional. A field mask is used to specify the fields to be overwritten in
                                    +     * the framework resource by the update. The fields specified in the
                                    +     * `update_mask` are relative to the resource, not the full request. A field
                                    +     * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +     * fields present in the request will be overwritten.
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -808,12 +799,11 @@ public Builder clearUpdateMask() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * Framework 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 present in the request will be
                                    -     * overwritten.
                                    +     * Optional. A field mask is used to specify the fields to be overwritten in
                                    +     * the framework resource by the update. The fields specified in the
                                    +     * `update_mask` are relative to the resource, not the full request. A field
                                    +     * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +     * fields present in the request will be overwritten.
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -829,12 +819,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * Framework 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 present in the request will be
                                    -     * overwritten.
                                    +     * Optional. A field mask is used to specify the fields to be overwritten in
                                    +     * the framework resource by the update. The fields specified in the
                                    +     * `update_mask` are relative to the resource, not the full request. A field
                                    +     * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +     * fields present in the request will be overwritten.
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -854,12 +843,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
                                    -     * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -     * Framework 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 present in the request will be
                                    -     * overwritten.
                                    +     * Optional. A field mask is used to specify the fields to be overwritten in
                                    +     * the framework resource by the update. The fields specified in the
                                    +     * `update_mask` are relative to the resource, not the full request. A field
                                    +     * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +     * fields present in the request will be overwritten.
                                          * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -893,7 +881,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The resource that is being updated.
                                          * 
                                    * * @@ -910,7 +898,7 @@ public boolean hasFramework() { * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The resource that is being updated.
                                          * 
                                    * * @@ -933,7 +921,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework getFramework() { * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The resource that is being updated.
                                          * 
                                    * * @@ -958,7 +946,7 @@ public Builder setFramework(com.google.cloud.cloudsecuritycompliance.v1.Framewor * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The resource that is being updated.
                                          * 
                                    * * @@ -981,7 +969,7 @@ public Builder setFramework( * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The resource that is being updated.
                                          * 
                                    * * @@ -1012,7 +1000,7 @@ public Builder mergeFramework(com.google.cloud.cloudsecuritycompliance.v1.Framew * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The resource that is being updated.
                                          * 
                                    * * @@ -1034,7 +1022,7 @@ public Builder clearFramework() { * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The resource that is being updated.
                                          * 
                                    * * @@ -1051,7 +1039,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.Framework.Builder getFramewor * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The resource that is being updated.
                                          * 
                                    * * @@ -1072,7 +1060,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkOrBuilder getFramewo * * *
                                    -     * Required. The resource being updated
                                    +     * Required. The resource that is being updated.
                                          * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateFrameworkRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateFrameworkRequestOrBuilder.java index 3299b4c072d3..6b5ef1e01001 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateFrameworkRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/UpdateFrameworkRequestOrBuilder.java @@ -28,12 +28,11 @@ public interface UpdateFrameworkRequestOrBuilder * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * Framework 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 present in the request will be
                                    -   * overwritten.
                                    +   * Optional. A field mask is used to specify the fields to be overwritten in
                                    +   * the framework resource by the update. The fields specified in the
                                    +   * `update_mask` are relative to the resource, not the full request. A field
                                    +   * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +   * fields present in the request will be overwritten.
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -47,12 +46,11 @@ public interface UpdateFrameworkRequestOrBuilder * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * Framework 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 present in the request will be
                                    -   * overwritten.
                                    +   * Optional. A field mask is used to specify the fields to be overwritten in
                                    +   * the framework resource by the update. The fields specified in the
                                    +   * `update_mask` are relative to the resource, not the full request. A field
                                    +   * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +   * fields present in the request will be overwritten.
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -66,12 +64,11 @@ public interface UpdateFrameworkRequestOrBuilder * * *
                                    -   * Optional. Field mask is used to specify the fields to be overwritten in the
                                    -   * Framework 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 present in the request will be
                                    -   * overwritten.
                                    +   * Optional. A field mask is used to specify the fields to be overwritten in
                                    +   * the framework resource by the update. The fields specified in the
                                    +   * `update_mask` are relative to the resource, not the full request. A field
                                    +   * is overwritten if it is in the mask. If you don't provide a mask then all
                                    +   * fields present in the request will be overwritten.
                                        * 
                                    * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -83,7 +80,7 @@ public interface UpdateFrameworkRequestOrBuilder * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The resource that is being updated.
                                        * 
                                    * * @@ -98,7 +95,7 @@ public interface UpdateFrameworkRequestOrBuilder * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The resource that is being updated.
                                        * 
                                    * * @@ -113,7 +110,7 @@ public interface UpdateFrameworkRequestOrBuilder * * *
                                    -   * Required. The resource being updated
                                    +   * Required. The resource that is being updated.
                                        * 
                                    * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Validation.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Validation.java index 7e3430ddfcc2..1b97f06184e9 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Validation.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Validation.java @@ -23,7 +23,7 @@ * * *
                                    - * Validation of the parameter.
                                    + * The validation of the parameter.
                                      * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Validation} @@ -121,7 +121,7 @@ public ConstraintCase getConstraintCase() { * * *
                                    -   * Allowed set of values for the parameter.
                                    +   * The permitted set of values for the parameter.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -137,7 +137,7 @@ public boolean hasAllowedValues() { * * *
                                    -   * Allowed set of values for the parameter.
                                    +   * The permitted set of values for the parameter.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -156,7 +156,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.AllowedValues getAllowedValue * * *
                                    -   * Allowed set of values for the parameter.
                                    +   * The permitted set of values for the parameter.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -176,7 +176,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.AllowedValues getAllowedValue * * *
                                    -   * Allowed range for numeric parameters.
                                    +   * The permitted range for numeric parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -192,7 +192,7 @@ public boolean hasIntRange() { * * *
                                    -   * Allowed range for numeric parameters.
                                    +   * The permitted range for numeric parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -211,7 +211,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.IntRange getIntRange() { * * *
                                    -   * Allowed range for numeric parameters.
                                    +   * The permitted range for numeric parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -230,7 +230,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.IntRangeOrBuilder getIntRange * * *
                                    -   * Regular expression for string parameters.
                                    +   * The regular expression for string parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -246,7 +246,7 @@ public boolean hasRegexpPattern() { * * *
                                    -   * Regular expression for string parameters.
                                    +   * The regular expression for string parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -265,7 +265,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.RegexpPattern getRegexpPatter * * *
                                    -   * Regular expression for string parameters.
                                    +   * The regular expression for string parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -491,7 +491,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Validation of the parameter.
                                    +   * The validation of the parameter.
                                        * 
                                    * * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Validation} @@ -744,7 +744,7 @@ public Builder clearConstraint() { * * *
                                    -     * Allowed set of values for the parameter.
                                    +     * The permitted set of values for the parameter.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -760,7 +760,7 @@ public boolean hasAllowedValues() { * * *
                                    -     * Allowed set of values for the parameter.
                                    +     * The permitted set of values for the parameter.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -786,7 +786,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.AllowedValues getAllowedValue * * *
                                    -     * Allowed set of values for the parameter.
                                    +     * The permitted set of values for the parameter.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -810,7 +810,7 @@ public Builder setAllowedValues( * * *
                                    -     * Allowed set of values for the parameter.
                                    +     * The permitted set of values for the parameter.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -831,7 +831,7 @@ public Builder setAllowedValues( * * *
                                    -     * Allowed set of values for the parameter.
                                    +     * The permitted set of values for the parameter.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -866,7 +866,7 @@ public Builder mergeAllowedValues( * * *
                                    -     * Allowed set of values for the parameter.
                                    +     * The permitted set of values for the parameter.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -892,7 +892,7 @@ public Builder clearAllowedValues() { * * *
                                    -     * Allowed set of values for the parameter.
                                    +     * The permitted set of values for the parameter.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -906,7 +906,7 @@ public Builder clearAllowedValues() { * * *
                                    -     * Allowed set of values for the parameter.
                                    +     * The permitted set of values for the parameter.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -928,7 +928,7 @@ public Builder clearAllowedValues() { * * *
                                    -     * Allowed set of values for the parameter.
                                    +     * The permitted set of values for the parameter.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -968,7 +968,7 @@ public Builder clearAllowedValues() { * * *
                                    -     * Allowed range for numeric parameters.
                                    +     * The permitted range for numeric parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -984,7 +984,7 @@ public boolean hasIntRange() { * * *
                                    -     * Allowed range for numeric parameters.
                                    +     * The permitted range for numeric parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -1010,7 +1010,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.IntRange getIntRange() { * * *
                                    -     * Allowed range for numeric parameters.
                                    +     * The permitted range for numeric parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -1033,7 +1033,7 @@ public Builder setIntRange(com.google.cloud.cloudsecuritycompliance.v1.IntRange * * *
                                    -     * Allowed range for numeric parameters.
                                    +     * The permitted range for numeric parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -1054,7 +1054,7 @@ public Builder setIntRange( * * *
                                    -     * Allowed range for numeric parameters.
                                    +     * The permitted range for numeric parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -1088,7 +1088,7 @@ public Builder mergeIntRange(com.google.cloud.cloudsecuritycompliance.v1.IntRang * * *
                                    -     * Allowed range for numeric parameters.
                                    +     * The permitted range for numeric parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -1114,7 +1114,7 @@ public Builder clearIntRange() { * * *
                                    -     * Allowed range for numeric parameters.
                                    +     * The permitted range for numeric parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -1127,7 +1127,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.IntRange.Builder getIntRangeB * * *
                                    -     * Allowed range for numeric parameters.
                                    +     * The permitted range for numeric parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -1148,7 +1148,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.IntRangeOrBuilder getIntRange * * *
                                    -     * Allowed range for numeric parameters.
                                    +     * The permitted range for numeric parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -1187,7 +1187,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.IntRangeOrBuilder getIntRange * * *
                                    -     * Regular expression for string parameters.
                                    +     * The regular expression for string parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -1203,7 +1203,7 @@ public boolean hasRegexpPattern() { * * *
                                    -     * Regular expression for string parameters.
                                    +     * The regular expression for string parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -1229,7 +1229,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.RegexpPattern getRegexpPatter * * *
                                    -     * Regular expression for string parameters.
                                    +     * The regular expression for string parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -1253,7 +1253,7 @@ public Builder setRegexpPattern( * * *
                                    -     * Regular expression for string parameters.
                                    +     * The regular expression for string parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -1274,7 +1274,7 @@ public Builder setRegexpPattern( * * *
                                    -     * Regular expression for string parameters.
                                    +     * The regular expression for string parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -1309,7 +1309,7 @@ public Builder mergeRegexpPattern( * * *
                                    -     * Regular expression for string parameters.
                                    +     * The regular expression for string parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -1335,7 +1335,7 @@ public Builder clearRegexpPattern() { * * *
                                    -     * Regular expression for string parameters.
                                    +     * The regular expression for string parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -1349,7 +1349,7 @@ public Builder clearRegexpPattern() { * * *
                                    -     * Regular expression for string parameters.
                                    +     * The regular expression for string parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -1371,7 +1371,7 @@ public Builder clearRegexpPattern() { * * *
                                    -     * Regular expression for string parameters.
                                    +     * The regular expression for string parameters.
                                          * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ValidationOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ValidationOrBuilder.java index 368ab513f434..dd74f8aae8b6 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ValidationOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ValidationOrBuilder.java @@ -28,7 +28,7 @@ public interface ValidationOrBuilder * * *
                                    -   * Allowed set of values for the parameter.
                                    +   * The permitted set of values for the parameter.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -41,7 +41,7 @@ public interface ValidationOrBuilder * * *
                                    -   * Allowed set of values for the parameter.
                                    +   * The permitted set of values for the parameter.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -54,7 +54,7 @@ public interface ValidationOrBuilder * * *
                                    -   * Allowed set of values for the parameter.
                                    +   * The permitted set of values for the parameter.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.AllowedValues allowed_values = 1; @@ -65,7 +65,7 @@ public interface ValidationOrBuilder * * *
                                    -   * Allowed range for numeric parameters.
                                    +   * The permitted range for numeric parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -78,7 +78,7 @@ public interface ValidationOrBuilder * * *
                                    -   * Allowed range for numeric parameters.
                                    +   * The permitted range for numeric parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -91,7 +91,7 @@ public interface ValidationOrBuilder * * *
                                    -   * Allowed range for numeric parameters.
                                    +   * The permitted range for numeric parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.IntRange int_range = 2; @@ -102,7 +102,7 @@ public interface ValidationOrBuilder * * *
                                    -   * Regular expression for string parameters.
                                    +   * The regular expression for string parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -115,7 +115,7 @@ public interface ValidationOrBuilder * * *
                                    -   * Regular expression for string parameters.
                                    +   * The regular expression for string parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; @@ -128,7 +128,7 @@ public interface ValidationOrBuilder * * *
                                    -   * Regular expression for string parameters.
                                    +   * The regular expression for string parameters.
                                        * 
                                    * * .google.cloud.cloudsecuritycompliance.v1.RegexpPattern regexp_pattern = 3; diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/audit.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/audit.proto new file mode 100644 index 000000000000..b5877f199177 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/audit.proto @@ -0,0 +1,512 @@ +// Copyright 2025 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.cloudsecuritycompliance.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/cloudsecuritycompliance/v1/common.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.CloudSecurityCompliance.V1"; +option go_package = "cloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb"; +option java_multiple_files = true; +option java_outer_classname = "AuditProto"; +option java_package = "com.google.cloud.cloudsecuritycompliance.v1"; +option php_namespace = "Google\\Cloud\\CloudSecurityCompliance\\V1"; +option ruby_package = "Google::Cloud::CloudSecurityCompliance::V1"; + +// Service describing handlers for resources +service Audit { + option (google.api.default_host) = "cloudsecuritycompliance.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Generates an audit scope report for a framework. + rpc GenerateFrameworkAuditScopeReport( + GenerateFrameworkAuditScopeReportRequest) + returns (GenerateFrameworkAuditScopeReportResponse) { + option (google.api.http) = { + post: "/v1/{scope=folders/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport" + body: "*" + additional_bindings { + post: "/v1/{scope=projects/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport" + body: "*" + } + additional_bindings { + post: "/v1/{scope=organizations/*/locations/*}/frameworkAuditScopeReports:generateFrameworkAuditScopeReport" + body: "*" + } + }; + option (google.api.method_signature) = + "scope,report_format,compliance_framework"; + } + + // Creates an audit scope report for a framework. + rpc CreateFrameworkAudit(CreateFrameworkAuditRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/locations/*}/frameworkAudits" + body: "framework_audit" + additional_bindings { + post: "/v1/{parent=folders/*/locations/*}/frameworkAudits" + body: "framework_audit" + } + additional_bindings { + post: "/v1/{parent=projects/*/locations/*}/frameworkAudits" + body: "framework_audit" + } + }; + option (google.api.method_signature) = + "parent,framework_audit,framework_audit_id"; + option (google.longrunning.operation_info) = { + response_type: "FrameworkAudit" + metadata_type: "google.cloud.cloudsecuritycompliance.v1.OperationMetadata" + }; + } + + // Lists the framework audits for a given organization, folder, or project. + rpc ListFrameworkAudits(ListFrameworkAuditsRequest) + returns (ListFrameworkAuditsResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/locations/*}/frameworkAudits" + additional_bindings { + get: "/v1/{parent=folders/*/locations/*}/frameworkAudits" + } + additional_bindings { + get: "/v1/{parent=projects/*/locations/*}/frameworkAudits" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details for a framework audit. + rpc GetFrameworkAudit(GetFrameworkAuditRequest) returns (FrameworkAudit) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*/frameworkAudits/*}" + additional_bindings { + get: "/v1/{name=folders/*/locations/*/frameworkAudits/*}" + } + additional_bindings { + get: "/v1/{name=projects/*/locations/*/frameworkAudits/*}" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// The state of compliance after evaluation is complete. +enum ComplianceState { + // Default value. This value is unused. + COMPLIANCE_STATE_UNSPECIFIED = 0; + + // The resource is compliant. + COMPLIANT = 1; + + // The resource has a violation. + VIOLATION = 2; + + // The resource requires manual review from you. + MANUAL_REVIEW_NEEDED = 3; + + // An error occurred while computing the resource status. + ERROR = 4; + + // The resource can't be audited. + AUDIT_NOT_SUPPORTED = 5; +} + +// The request message for [GenerateFrameworkAuditScopeReport][]. +message GenerateFrameworkAuditScopeReportRequest { + // The set of options for the audit scope report format. + enum Format { + // Default value. This value is unused. + FORMAT_UNSPECIFIED = 0; + + // The report format is the Open Document Format (ODF). + ODF = 1; + } + + // Required. The organization, folder or project for the audit report. + // + // Supported formats are the following: + // + // * `projects/{project_id}/locations/{location}` + // * `folders/{folder_id}/locations/{location}` + // * `organizations/{organization_id}/locations/{location}` + string scope = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The format that the scope report bytes is returned in. + Format report_format = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The compliance framework that the scope report is generated for. + string compliance_framework = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The response message for [GenerateFrameworkAuditScopeReport][]. +message GenerateFrameworkAuditScopeReportResponse { + option (google.api.resource) = { + type: "cloudsecuritycompliance.googleapis.com/GenerateFrameworkAuditScopeReportResponse" + pattern: "projects/{project}/locations/{location}/frameworkAuditScopeReports/{generate_framework_audit_scope_report_response}" + pattern: "organizations/{organization}/locations/{location}/frameworkAuditScopeReports/{generate_framework_audit_scope_report_response}" + plural: "frameworkAuditScopeReports" + singular: "generateFrameworkAuditScopeReportResponse" + }; + + // The set of options that the audit scope report is exported in. + oneof audit_report { + // The audit scope report content in byte format. + bytes scope_report_contents = 3; + } + + // Identifier. The name of the audit report, in the format that was + // given in the request. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The compliance framework that the audit scope report is generated + // for. + string compliance_framework = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Additional information for an audit operation. +message ReportSummary { + // Output only. The total number of checks. + int32 total_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of compliant checks. + int32 compliant_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of checks with violations. + int32 violation_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of checks with "manual review needed" status. + int32 manual_review_needed_count = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of checks that can't be performed due to errors. + int32 error_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for [CreateFrameworkAudit][]. +message CreateFrameworkAuditRequest { + // Required. The parent resource where this framework audit is created. + // + // Supported formats are the following: + // + // * `organizations/{organization_id}/locations/{location}` + // * `folders/{folder_id}/locations/{location}` + // * `projects/{project_id}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "cloudsecuritycompliance.googleapis.com/FrameworkAudit" + } + ]; + + // Optional. The ID to use for the framework audit. The ID becomes the final + // component of the framework audit's full resource name. + // + // The ID must be between 4-63 characters, and valid characters + // are `\[a-z][0-9]-\`. + string framework_audit_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The framework audit to create. + FrameworkAudit framework_audit = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// A destination for the framework audit. +message FrameworkAuditDestination { + // The type of destination. + oneof destination_type { + // The Cloud Storage bucket destination. + BucketDestination bucket = 1; + } +} + +// A Cloud Storage bucket destination. +message BucketDestination { + // The set of options for the framework audit format. + enum Format { + // Default value. This value is unused. + FORMAT_UNSPECIFIED = 0; + + // The format for the framework audit report is Open Document. + ODF = 1; + } + + // Required. The URI of the Cloud Storage bucket. + string bucket_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The format of the framework audit. + Format framework_audit_format = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A framework audit. +message FrameworkAudit { + option (google.api.resource) = { + type: "cloudsecuritycompliance.googleapis.com/FrameworkAudit" + pattern: "projects/{project}/locations/{location}/frameworkAudits/{framework_audit}" + pattern: "organizations/{organization}/locations/{location}/frameworkAudits/{framework_audit}" + plural: "frameworkAudits" + singular: "frameworkAudit" + }; + + // The state of the framework audit. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The audit is scheduled. + SCHEDULED = 1; + + // The audit is running. + RUNNING = 2; + + // The audit results are being uploaded. + UPLOADING = 3; + + // The audit failed. + FAILED = 4; + + // The audit completed successfully. + SUCCEEDED = 5; + } + + // Output only. Identifier. The name of the framework audit. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. The ID of the framework audit. + string framework_audit_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The compliance framework used for the audit. + string compliance_framework = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The scope of the audit. + string scope = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The destination for the audit reports. + FrameworkAuditDestination framework_audit_destination = 5 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. The time that the audit started. + google.protobuf.Timestamp start_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time that the audit finished. + google.protobuf.Timestamp finish_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The overall compliance state of the audit. + ComplianceState compliance_state = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The summary of the report. + ReportSummary report_summary = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The details for the cloud control groups within this audit. + repeated CloudControlGroupAuditDetails cloud_control_group_audit_details = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The details for the cloud controls within this audit. + repeated CloudControlAuditDetails cloud_control_audit_details = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The ID of the long-running operation. + string operation_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The framework audit state of the audit. + State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for [ListFrameworkAudits][]. +message ListFrameworkAuditsRequest { + // Required. The parent resource where the framework audits are listed. + // + // Supported formats are the following: + // + // * `organizations/{organization_id}/locations/{location}` + // * `folders/{folder_id}/locations/{location}` + // * `projects/{project_id}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "cloudsecuritycompliance.googleapis.com/FrameworkAudit" + } + ]; + + // Optional. The maximum number of framework audits to return. The service + // might return fewer audits than this value. If unspecified, a maximum of 10 + // framework audits are returned. The maximum value is 50; values above 50 are + // limited to 50. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value that's returned from a previous list + // request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filters to apply to the framework audits. + // Supported filters are `compliance_framework`, `compliance_state`, + // `create_time,` and `framework_audit_name`. If the filter is invalid, an + // invalid argument error is returned. + // For syntax details, see [AIP-160][https://google.aip.dev/160]. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [ListFrameworkAudits][]. +message ListFrameworkAuditsResponse { + // The framework audits. + repeated FrameworkAudit framework_audits = 1; + + // A token, which you can send as the `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// The request message for [GetFrameworkAudit][]. +message GetFrameworkAuditRequest { + // Required. The name of the framework audit to retrieve. + // + // Supported formats are the following: + // + // * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + // * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + // * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudsecuritycompliance.googleapis.com/FrameworkAudit" + } + ]; +} + +// The details for a cloud control group. +message CloudControlGroupAuditDetails { + // Output only. The ID of the cloud control group. + string cloud_control_group_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the cloud control group. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of the cloud control group. + string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The responsibility type. + string responsibility_type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of Google's responsibility. + string google_responsibility_description = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The implementation of Google's responsibility. + string google_responsibility_implementation = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of your responsibility. + string customer_responsibility_description = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The implementation of your responsibility. + string customer_responsibility_implementation = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The compliance state of the control group. + ComplianceState compliance_state = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ID of the regulatory control. + string control_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The control family. + ControlFamily control_family = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The details for the cloud controls within this group. + repeated CloudControlAuditDetails cloud_control_details = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The summary of the report. + ReportSummary report_summary = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The details for a finding. +message FindingDetails { + // Output only. The name of the finding. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The compliance state of the finding. + ComplianceState compliance_state = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The observation details for the finding. + ObservationDetails observation = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The evidence details for the finding. + EvidenceDetails evidence = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The observation details for a finding. +message ObservationDetails { + // Output only. The current value. + string current_value = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The expected value. + string expected_value = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Any guidance for the observation. + string guidance = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The evidence details for a finding. +message EvidenceDetails { + // Output only. The resource identifier. + string resource = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The service identifier. + string service = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The path to the evidence. + string evidence_path = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The details for a cloud control audit. +message CloudControlAuditDetails { + // Output only. The name of the cloud control. + string cloud_control = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ID of the cloud control. + string cloud_control_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of the cloud control. + string cloud_control_description = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The overall status of the findings for the control. + ComplianceState compliance_state = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The summary of the report. + ReportSummary report_summary = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The findings for the control. + repeated FindingDetails findings = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto new file mode 100644 index 000000000000..bf41f21c650c --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.proto @@ -0,0 +1,159 @@ +// Copyright 2025 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.cloudsecuritycompliance.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.CloudSecurityCompliance.V1"; +option go_package = "cloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb"; +option java_multiple_files = true; +option java_outer_classname = "CmEnrollmentServiceProto"; +option java_package = "com.google.cloud.cloudsecuritycompliance.v1"; +option php_namespace = "Google\\Cloud\\CloudSecurityCompliance\\V1"; +option ruby_package = "Google::Cloud::CloudSecurityCompliance::V1"; + +// Service describing CmEnrollment related RPCs for +// complianceManager. +service CmEnrollmentService { + option (google.api.default_host) = "cloudsecuritycompliance.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Updates the Compliance Manager enrollment for a resource to facilitate + // an audit. + // Use this method to enroll a resource in Compliance Manager or to + // create or update feature-specific configurations. + rpc UpdateCmEnrollment(UpdateCmEnrollmentRequest) returns (CmEnrollment) { + option (google.api.http) = { + patch: "/v1/{cm_enrollment.name=organizations/*/locations/*/cmEnrollment}" + body: "cm_enrollment" + additional_bindings { + patch: "/v1/{cm_enrollment.name=folders/*/locations/*/cmEnrollment}" + body: "cm_enrollment" + } + additional_bindings { + patch: "/v1/{cm_enrollment.name=projects/*/locations/*/cmEnrollment}" + body: "cm_enrollment" + } + }; + option (google.api.method_signature) = "cm_enrollment,update_mask"; + } + + // Calculates the effective Compliance Manager enrollment for a resource. + // An effective enrollment is either a direct enrollment of a + // resource (if it exists), or an enrollment of the closest parent of a + // resource that's enrolled in Compliance Manager. + rpc CalculateEffectiveCmEnrollment(CalculateEffectiveCmEnrollmentRequest) + returns (CalculateEffectiveCmEnrollmentResponse) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*/cmEnrollment}:calculate" + additional_bindings { + get: "/v1/{name=folders/*/locations/*/cmEnrollment}:calculate" + } + additional_bindings { + get: "/v1/{name=projects/*/locations/*/cmEnrollment}:calculate" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// The request message for [UpdateCmEnrollment][]. +message UpdateCmEnrollmentRequest { + // Required. The Compliance Manager enrollment to update. + // The `name` field is used to identify the settings that you want to update. + CmEnrollment cm_enrollment = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields that you want to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for [CalculateEffectiveCmEnrollment][]. +message CalculateEffectiveCmEnrollmentRequest { + // Required. The name of the Compliance Manager enrollment to calculate. + // + // Supported formats are the following: + // + // * `organizations/{organization_id}/locations/{location}/cmEnrollment` + // * `folders/{folder_id}/locations/{location}/cmEnrollment` + // * `projects/{project_id}/locations/{location}/cmEnrollment` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudsecuritycompliance.googleapis.com/CmEnrollment" + } + ]; +} + +// The settings for Compliance Manager at a specific resource scope.= +message CmEnrollment { + option (google.api.resource) = { + type: "cloudsecuritycompliance.googleapis.com/CmEnrollment" + pattern: "organizations/{organization}/locations/{location}/cmEnrollment" + pattern: "projects/{project}/locations/{location}/cmEnrollment" + plural: "cmEnrollments" + singular: "cmEnrollment" + }; + + // Identifier. The name of the Compliance Manager enrollment. + // + // Supported formats are the following: + // + // * `organizations/{organization_id}/locations/{location}/cmEnrollment` + // * `folders/{folder_id}/locations/{location}/cmEnrollment` + // * `projects/{project_id}/locations/{location}/cmEnrollment` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Whether the resource is enrolled in Compliance Manager. + // This setting is inherited by all descendants. + bool enrolled = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The audit configuration for Compliance Manager. + // If set at a scope, this configuration overrides any inherited audit + // configuration. + AuditConfig audit_config = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [CalculateEffectiveCmEnrollment][]. +message CalculateEffectiveCmEnrollmentResponse { + // The effective Compliance Manager enrollment for the resource. + CmEnrollment cm_enrollment = 1; +} + +// The audit configuration for Compliance Manager. +message AuditConfig { + // The destination details where audit reports are + // uploaded. + message CmEligibleDestination { + // Set of options for the report destination location. + oneof cm_eligible_destinations { + // The Cloud Storage bucket where audit reports and evidences can be + // uploaded. The format is `gs://{bucket_name}`. + string gcs_bucket = 1; + } + } + + // Required. The list of destinations that can be selected for uploading audit + // reports to. + repeated CmEligibleDestination destinations = 1 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/common.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/common.proto index 11ce95477bee..5622291469d9 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/common.proto +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/common.proto @@ -32,94 +32,109 @@ option (google.api.resource_definition) = { pattern: "organizations/{organization}/locations/{location}" }; -// The enforcement mode of the cloud control. +// The responsibility type for the regulatory control. +enum RegulatoryControlResponsibilityType { + // Default value. This value is unused. + REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED = 0; + + // Google's responsibility. + GOOGLE = 1; + + // Your responsibility. + CUSTOMER = 2; + + // Shared responsibility. + SHARED = 3; +} + +// The enforcement mode for the cloud control. enum EnforcementMode { // Default value. This value is unused. ENFORCEMENT_MODE_UNSPECIFIED = 0; - // The cloud control is enforced to prevent resource non-compliance. + // The cloud control is enforced to prevent non-compliance. PREVENTIVE = 1; - // The cloud control is enforced to detect resource non-compliance. + // The cloud control is enforced to detect non-compliance. DETECTIVE = 2; - // The cloud control is enforced to audit resource non-compliance. + // The cloud control is enforced to audit for non-compliance. AUDIT = 3; } -// The category of the framework. +// The category for the framework. enum FrameworkCategory { // Default value. This value is unused. FRAMEWORK_CATEGORY_UNSPECIFIED = 0; - // Standard framework + // An industry-defined framework. INDUSTRY_DEFINED_STANDARD = 1; - // Assured Workloads framework + // An Assured Workloads framework. ASSURED_WORKLOADS = 2; - // Data Security framework + // A data security posture framework. DATA_SECURITY = 3; - // Google Best Practices framework + // A Google's best practices framework. GOOGLE_BEST_PRACTICES = 4; - // User created framework. + // A user-created framework. CUSTOM_FRAMEWORK = 5; } -// The category of the cloud control. +// The category for the cloud control. enum CloudControlCategory { // Default value. This value is unused. CLOUD_CONTROL_CATEGORY_UNSPECIFIED = 0; - // Infrastructure + // The infrastructure security category. CC_CATEGORY_INFRASTRUCTURE = 1; - // Artificial Intelligence + // The artificial intelligence category. CC_CATEGORY_ARTIFICIAL_INTELLIGENCE = 2; - // Physical Security + // The physical security category. CC_CATEGORY_PHYSICAL_SECURITY = 3; - // Data Security + // The data security category. CC_CATEGORY_DATA_SECURITY = 4; - // Network Security + // The network security category. CC_CATEGORY_NETWORK_SECURITY = 5; - // Incident Management + // The incident management category. CC_CATEGORY_INCIDENT_MANAGEMENT = 6; - // Identity & Access Management + // The identity and access management category. CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT = 7; - // Encryption + // The encryption category. CC_CATEGORY_ENCRYPTION = 8; - // Logs Management & Infrastructure + // The logs management and infrastructure category. CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE = 9; - // HR, Admin & Processes + // The HR, admin, and processes category. CC_CATEGORY_HR_ADMIN_AND_PROCESSES = 10; - // Third Party & Sub-Processor Management + // The third-party and sub-processor management category. CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT = 11; - // Legal & Disclosures + // The legal and disclosures category. CC_CATEGORY_LEGAL_AND_DISCLOSURES = 12; - // Vulnerability Management + // The vulnerability management category. CC_CATEGORY_VULNERABILITY_MANAGEMENT = 13; - // Privacy + // The privacy category. CC_CATEGORY_PRIVACY = 14; - // BCDR (Business Continuity and Disaster Recovery) + // The business continuity and disaster recovery (BCDR) category. CC_CATEGORY_BCDR = 15; } -// The cloud platform. +// The cloud provider that's associated with the cloud control. enum CloudProvider { // Default value. This value is unused. CLOUD_PROVIDER_UNSPECIFIED = 0; @@ -136,11 +151,9 @@ enum CloudProvider { // The severity of the finding. enum Severity { - // This value is used for findings when a source doesn't write a severity - // value. + // Default value. This value is unused. SEVERITY_UNSPECIFIED = 0; - // Vulnerability: // A critical vulnerability is easily discoverable by an external actor, // exploitable, and results in the direct ability to execute arbitrary code, // exfiltrate data, and otherwise gain additional access and privileges to @@ -148,28 +161,24 @@ enum Severity { // unprotected user data and public SSH access with weak or no // passwords. // - // Threat: - // Indicates a threat that is able to access, modify, or delete data or + // A critical threat is a threat that can access, modify, or delete data or // execute unauthorized code within existing resources. CRITICAL = 1; - // Vulnerability: - // A high risk vulnerability can be easily discovered and exploited in - // combination with other vulnerabilities in order to gain direct access and + // A high-risk vulnerability can be easily discovered and exploited in + // combination with other vulnerabilities to gain direct access and // the ability to execute arbitrary code, exfiltrate data, and otherwise // gain additional access and privileges to cloud resources and workloads. // An example is a database with weak or no passwords that is only // accessible internally. This database could easily be compromised by an // actor that had access to the internal network. // - // Threat: - // Indicates a threat that is able to create new computational resources in - // an environment but not able to access data or execute code in existing - // resources. + // A high-risk threat is a threat that can create new computational + // resources in an environment but can't access data or execute code in + // existing resources. HIGH = 2; - // Vulnerability: - // A medium risk vulnerability could be used by an actor to gain access to + // A medium-risk vulnerability can be used by an actor to gain access to // resources or privileges that enable them to eventually (through multiple // steps or a complex exploit) gain access and the ability to execute // arbitrary code or exfiltrate data. An example is a service account with @@ -177,20 +186,17 @@ enum Severity { // the service account, they could potentially use that access to manipulate // a project the service account was not intended to. // - // Threat: - // Indicates a threat that is able to cause operational impact but may not + // A medium-risk threat can cause operational impact but might not // access data or execute unauthorized code. MEDIUM = 3; - // Vulnerability: - // A low risk vulnerability hampers a security organization's ability to + // A low-risk vulnerability hampers a security organization's ability to // detect vulnerabilities or active threats in their deployment, or prevents // the root cause investigation of security issues. An example is monitoring // and logs being disabled for resource configurations and access. // - // Threat: - // Indicates a threat that has obtained minimal access to an environment but - // is not able to access data, execute code, or create resources. + // A low-risk threat is a threat that has obtained minimal access to an + // environment but can't access data, execute code, or create resources. LOW = 4; } @@ -199,40 +205,37 @@ enum RuleActionType { // Default value. This value is unused. RULE_ACTION_TYPE_UNSPECIFIED = 0; - // Preventative action type. + // The rule is intended to prevent non-compliance. RULE_ACTION_TYPE_PREVENTIVE = 1; - // Detective action type. + // The rule is intended to detect non-compliance. RULE_ACTION_TYPE_DETECTIVE = 2; - // Audit action type. + // The rule is intended to audit non-compliance. RULE_ACTION_TYPE_AUDIT = 3; } -// TargetResourceType represents the type of resource that a control or -// framework can be applied to. +// The type of resource that a control or framework can be applied to. enum TargetResourceType { // Default value. This value is unused. TARGET_RESOURCE_TYPE_UNSPECIFIED = 0; - // Target resource is an Organization. + // The target resource is a Google Cloud organization. TARGET_RESOURCE_CRM_TYPE_ORG = 1; - // Target resource is a Folder. + // The target resource is a folder. TARGET_RESOURCE_CRM_TYPE_FOLDER = 2; - // Target resource is a Project. + // The target resource is a project. TARGET_RESOURCE_CRM_TYPE_PROJECT = 3; - // Target resource is an Application. + // The target resource is an application in App Hub. TARGET_RESOURCE_TYPE_APPLICATION = 4; } -// A Framework is a collection of CloudControls to address security and -// compliance requirements. Frameworks can be used for prevention, detection, -// and auditing. They can be either built-in, industry-standard frameworks -// provided by GCP/AZURE/AWS (e.g., NIST, FedRAMP) or custom frameworks created -// by users. +// A framework is a collection of cloud controls and regulatory controls +// that represent security best practices or industry-defined standards such as +// FedRAMP or NIST. message Framework { option (google.api.resource) = { type: "cloudsecuritycompliance.googleapis.com/Framework" @@ -241,33 +244,31 @@ message Framework { singular: "framework" }; - // The type of the framework. + // The type of framework. enum FrameworkType { // Default value. This value is unused. FRAMEWORK_TYPE_UNSPECIFIED = 0; - // The framework is a built-in framework if it is created and managed by - // GCP. + // A framework that's provided and managed by Google. BUILT_IN = 1; - // The framework is a custom framework if it is created and managed by the - // user. + // A framework that's created and managed by you. CUSTOM = 2; } - // Required. Identifier. The name of the framework. - // Format: - // organizations/{organization}/locations/{location}/frameworks/{framework_id} + // Required. Identifier. The name of the framework, in the format + // `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. + // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IDENTIFIER ]; - // Output only. Major revision of the framework incremented in ascending - // order. + // Output only. The major version of the framework, which is incremented in + // ascending order. int64 major_revision_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Display name of the framework. The maximum length is 200 + // Optional. The friendly name of the framework. The maximum length is 200 // characters. string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -275,10 +276,10 @@ message Framework { // characters. string description = 5 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The type of the framework. The default is TYPE_CUSTOM. + // Output only. The type of framework. FrameworkType type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The details of the cloud controls directly added without any + // Optional. The cloud control details that are directly added without any // grouping in the framework. repeated CloudControlDetails cloud_control_details = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -287,11 +288,11 @@ message Framework { repeated FrameworkCategory category = 9 [(google.api.field_behavior) = OPTIONAL]; - // Output only. cloud providers supported + // Output only. The cloud providers that are supported by the framework. repeated CloudProvider supported_cloud_providers = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. target resource types supported by the Framework. + // Output only. The target resource types that are supported by the framework. repeated TargetResourceType supported_target_resource_types = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -300,48 +301,49 @@ message Framework { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// CloudControlDetails contains the details of a CloudControl. +// The details of a cloud control. message CloudControlDetails { - // Required. The name of the CloudControl in the format: - // “organizations/{organization}/locations/{location}/ - // cloudControls/{cloud-control}” + // Required. The name of the cloud control, in the format + // `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`. + // The only supported location is `global`. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Major revision of cloudcontrol + // Required. The major version of the cloud control. int64 major_revision_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. Parameters is a key-value pair that is required by the - // CloudControl. The specification of these parameters will be present in - // cloudcontrol.Eg: { "name": "location","value": "us-west-1"}. + // Optional. Parameters are key-value pairs that let you provide your custom + // location requirements, environment requirements, or other settings that are + // relevant to the cloud control. An example parameter is + // `{"name": "location","value": "us-west-1"}`. repeated Parameter parameters = 4 [(google.api.field_behavior) = OPTIONAL]; } -// FrameworkReference contains the reference of a framework. +// The reference of a framework, in the format +// `organizations/{organization}/locations/{location}/frameworks/{framework}`. +// The only supported location is `global`. message FrameworkReference { - // Required. In the format: - // organizations/{org}/locations/{location}/frameworks/{framework} + // Required. The major version of the framework. If not specified, the version + // corresponds to the latest version of the framework. string framework = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. Major revision id of the framework. If not specified, corresponds - // to the latest revision of the framework. + // Optional. The major version of the framework. If not specified, the version + // corresponds to the latest version of the framework. optional int64 major_revision_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Parameters is a key-value pair. +// Parameters are key-value pairs that let you provide your custom location +// requirements, environment requirements, or other settings that are +// relevant to the cloud control. message Parameter { - // Required. The name of the parameter. + // Required. The name or key of the parameter. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The value of the parameter + // Required. The value of the parameter. ParamValue parameter_value = 2 [(google.api.field_behavior) = REQUIRED]; } -// A CloudControl is the fundamental unit encapsulating the rules -// to meet a specific security or compliance intent. It can contain -// various rule types (like Organization Policies, CEL expressions, etc.) -// enabling different enforcement modes (Preventive, Detective, Audit). -// CloudControls are often parameterized for reusability and can be either -// BUILT_IN (provided by Google) or CUSTOM (defined by the user). +// A cloud control is a set of rules and associated metadata that you can +// use to define your organization's security or compliance intent. message CloudControl { option (google.api.resource) = { type: "cloudsecuritycompliance.googleapis.com/CloudControl" @@ -350,100 +352,113 @@ message CloudControl { singular: "cloudControl" }; - // Required. Identifier. The resource name of the cloud control. - // Format: - // organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id} + // The type of cloud control. + enum Type { + // Default value. This value is unused. + TYPE_UNSPECIFIED = 0; + + // A cloud control that's created and managed by you. + CUSTOM = 1; + + // A cloud control that's provided and managed by Google. + BUILT_IN = 2; + } + + // Required. Identifier. The name of the cloud control, in the format + // `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`. + // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IDENTIFIER ]; - // Output only. Major revision of the cloud control incremented in ascending - // order. + // Output only. The major version of the cloud control, which is incremented + // in ascending order. int64 major_revision_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. A description of the cloud control. The maximum length is 2000 // characters. string description = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The display name of the cloud control. The maximum length is 200 + // Optional. The friendly name of the cloud control. The maximum length is 200 // characters. string display_name = 5 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The supported enforcement mode of the cloud control. Default - // is DETECTIVE. + // Output only. The supported enforcement modes for the cloud control. repeated EnforcementMode supported_enforcement_modes = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The parameter spec of the cloud control. + // Optional. The parameter specifications for the cloud control. repeated ParameterSpec parameter_spec = 8 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The Policy to be enforced to prevent/detect resource - // non-compliance. + // Optional. The rules that you can enforce to meet your security or + // compliance intent. repeated Rule rules = 9 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The severity of findings generated by the cloud control. + // Optional. The severity of the findings that are generated by the cloud + // control. Severity severity = 11 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The finding_category of the cloud control. The maximum length is - // 255 characters. + // Optional. The finding category for the cloud control findings. The maximum + // length is 255 characters. string finding_category = 12 [(google.api.field_behavior) = OPTIONAL]; - // Optional. cloud providers supported + // Optional. The supported cloud providers. repeated CloudProvider supported_cloud_providers = 13 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The Frameworks that include this CloudControl + // Output only. The frameworks that include this cloud control. repeated string related_frameworks = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The remediation steps for the findings generated by the cloud - // control. The maximum length is 400 characters. + // Optional. The remediation steps for the cloud control findings. The + // maximum length is 400 characters. string remediation_steps = 15 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The categories of the cloud control. + // Optional. The categories for the cloud control. repeated CloudControlCategory categories = 16 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The last updated time of the cloud control. - // The create_time is used because a new CC is created whenever we update an - // existing CC. + // Output only. The time that the cloud control was last updated. + // `create_time` is used because a new cloud control is created + // whenever an existing cloud control is updated. google.protobuf.Timestamp create_time = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. target resource types supported by the CloudControl. + // Optional. The target resource types that are supported by the cloud + // control. repeated TargetResourceType supported_target_resource_types = 18 [(google.api.field_behavior) = OPTIONAL]; } -// A parameter spec of the cloud control. +// The parameter specification for the cloud control. message ParameterSpec { - // The type of the parameter value. + // The type of parameter value. enum ValueType { // Default value. This value is unused. VALUE_TYPE_UNSPECIFIED = 0; - // String value. + // A string value. STRING = 3; - // Boolean value. + // A boolean value. BOOLEAN = 4; - // String list value. + // A string list value. STRINGLIST = 5; - // Numeric value. + // A numeric value. NUMBER = 6; - // OneOf value. + // A oneOf value. ONEOF = 7; } // Required. The name of the parameter. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. The display name of the parameter. The maximum length is 200 + // Optional. The friendly name of the parameter. The maximum length is 200 // characters. string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; @@ -451,148 +466,150 @@ message ParameterSpec { // characters. string description = 3 [(google.api.field_behavior) = OPTIONAL]; - // Required. if the parameter is required + // Required. Whether the parameter is required. bool is_required = 4 [(google.api.field_behavior) = REQUIRED]; - // Required. Parameter value type. + // Required. The parameter value type. ValueType value_type = 5 [(google.api.field_behavior) = REQUIRED]; // Optional. The default value of the parameter. ParamValue default_value = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of parameter substitutions. + // Optional. The list of parameter substitutions. repeated ParameterSubstitutionRule substitution_rules = 7 [(google.api.field_behavior) = OPTIONAL]; - // Optional. ParameterSpec for oneof attributes. + // Optional. The parameter specification for `oneOf` attributes. repeated ParameterSpec sub_parameters = 8 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The allowed set of values for the parameter. + // Optional. The permitted set of values for the parameter. Validation validation = 9 [(google.api.field_behavior) = OPTIONAL]; } -// Validation of the parameter. +// The validation of the parameter. message Validation { // Defines validators for parameter values. oneof constraint { - // Allowed set of values for the parameter. + // The permitted set of values for the parameter. AllowedValues allowed_values = 1; - // Allowed range for numeric parameters. + // The permitted range for numeric parameters. IntRange int_range = 2; - // Regular expression for string parameters. + // The regular expression for string parameters. RegexpPattern regexp_pattern = 3; } } -// Allowed set of values for the parameter. +// The allowed set of values for the parameter. message AllowedValues { - // Required. List of allowed values for the parameter. + // Required. The list of allowed values for the parameter. repeated ParamValue values = 1 [(google.api.field_behavior) = REQUIRED]; } -// Regular Expression Validator for parameter values. +// The regular expression (regex) validator for parameter values. message RegexpPattern { - // Required. Regex Pattern to match the value(s) of parameter. + // Required. The regex pattern to match the values of the parameter with. string pattern = 1 [(google.api.field_behavior) = REQUIRED]; } -// Number range for number parameters. +// The number range for number parameters. message IntRange { - // Required. Minimum allowed value for the numeric parameter (inclusive). + // Required. The minimum permitted value for the numeric parameter + // (inclusive). int64 min = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Maximum allowed value for the numeric parameter (inclusive). + // Required. The maximum permitted value for the numeric parameter + // (inclusive). int64 max = 2 [(google.api.field_behavior) = REQUIRED]; } -// A list of strings. +// A list of strings for the parameter value. message StringList { // Required. The strings in the list. repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; } -// Possible parameter value types. +// The possible parameter value types. message ParamValue { - // The kind of value. + // The list of possible parameter value types. oneof kind { - // Represents a string value. + // A string value. string string_value = 3; - // Represents a boolean value. + // A boolean value. bool bool_value = 4; - // Represents a repeated string. + // A repeated string. StringList string_list_value = 5; - // Represents a double value. + // A double value. double number_value = 6; - // Represents sub-parameter values. + // Sub-parameter values. Parameter oneof_value = 7; } } -// Parameter substitution rules. +// The parameter substitution rules. message ParameterSubstitutionRule { // The type of substitution. oneof substitution_type { - // Placeholder substitution rule. + // The placeholder substitution rule. PlaceholderSubstitutionRule placeholder_substitution_rule = 1; - // Attribute substitution rule. + // The attribute substitution rule. AttributeSubstitutionRule attribute_substitution_rule = 2; } } -// Attribute at the given path is substituted entirely. +// The attribute at the given path that's substituted entirely. message AttributeSubstitutionRule { - // Fully qualified proto attribute path (in dot notation). - // Example: rules[0].cel_expression.resource_types_values + // The fully qualified proto attribute path, in dot notation. + // For example: `rules[0].cel_expression.resource_types_values` string attribute = 1; } -// Placeholder is substituted in the rendered string. +// The placeholder that's substituted in the rendered string. message PlaceholderSubstitutionRule { - // Fully qualified proto attribute path (e.g., dot notation) + // The fully qualified proto attribute path, in dot notation. string attribute = 1; } -// A rule of the cloud control. +// A rule in the cloud control. message Rule { - // The implementation of the rule. + // The rule implementation. oneof implementation { - // Logic expression in CEL language. + // The rule's logic expression in Common Expression Language (CEL). CELExpression cel_expression = 1; } - // Optional. Description of the Rule. The maximum length is 2000 characters. + // Optional. The rule description. The maximum length is 2000 characters. string description = 10 [(google.api.field_behavior) = OPTIONAL]; - // Required. The functionality enabled by the Rule. + // Required. The functionality that's enabled by the rule. repeated RuleActionType rule_action_types = 16 [(google.api.field_behavior) = REQUIRED]; } -// A [CEL -// expression](https://cloud.google.com/certificate-authority-service/docs/using-cel). +// A Common Expression Language (CEL) expression that's used to create a rule. message CELExpression { // The criteria of the CEL expression. oneof criteria { // The resource instance types on which this expression is defined. - // Format will be of the form : `/` - // Example: `compute.googleapis.com/Instance`. + // The format is `/`. + // For example: `compute.googleapis.com/Instance` StringList resource_types_values = 3; } - // Required. Logic expression in CEL language. - // The max length of the condition is 1000 characters. + // Required. The logical expression in CEL. The maximum length of the + // condition is 1000 characters. For more information, see [CEL + // expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). string expression = 1 [(google.api.field_behavior) = REQUIRED]; } -// Represents the metadata of the long-running operation. +// The metadata for the long-running operation. message OperationMetadata { // Output only. The time the operation was created. google.protobuf.Timestamp create_time = 1 @@ -602,22 +619,31 @@ message OperationMetadata { google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Server-defined resource path for the target of the operation. + // Output only. The server-defined resource path for the target of the + // operation. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Name of the verb executed by the operation. + // Output only. The name of the verb that was executed by the operation. string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Human-readable status of the operation, if any. + // Output only. The human-readable status of the operation, if any. string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Identifies whether the user has requested cancellation - // of the operation. Operations that have been cancelled successfully - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // Output only. Identifies whether the user has requested that the operation + // be cancelled. If an operation was cancelled successfully, then the field + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // contains the value [google.rpc.Code.CANCELLED][google.rpc.Code.CANCELLED]. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. API version used to start the operation. + // Output only. The API version that was used to start the operation. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// The regulatory family of the control. +message ControlFamily { + // The identifier for the regulatory control family. + string family_id = 1; + + // The friendly name for the regulatory control family. + string display_name = 2; +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/config.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/config.proto index 6258be87c444..9ef74423c8e0 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/config.proto +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/config.proto @@ -39,9 +39,10 @@ service Config { option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Lists all Frameworks (both Built-in and Custom) available within a given - // parent resource. This method supports pagination. - // The latest major version of each Framework is returned. + // Lists the frameworks (both built-in and custom) that are available within + // the parent resource. The latest major version of each framework is + // returned. + // This method supports pagination. rpc ListFrameworks(ListFrameworksRequest) returns (ListFrameworksResponse) { option (google.api.http) = { get: "/v1/{parent=organizations/*/locations/*}/frameworks" @@ -49,13 +50,11 @@ service Config { option (google.api.method_signature) = "parent"; } - // Gets details of a single Framework. - // This method retrieves a Framework resource, which can be either Built-in or - // Custom, identified by its name. + // Gets details about a framework. + // This method retrieves the latest major version of the framework. // - // By default, the latest major version of the Framework is returned. - // A specific major version can be retrieved by specifying the - // `major_revision_id` in the request. + // To retrieve a specific major version, include `major_revision_id` in + // the request. rpc GetFramework(GetFrameworkRequest) returns (Framework) { option (google.api.http) = { get: "/v1/{name=organizations/*/locations/*/frameworks/*}" @@ -63,9 +62,9 @@ service Config { option (google.api.method_signature) = "name"; } - // Creates a new Framework with type `Custom` under a given parent resource. - // Frameworks with type `Built-in` are managed by Google and cannot be created - // through this API. + // Creates a custom framework in a given parent resource. + // You can't create built-in frameworks because those are managed by + // Google. rpc CreateFramework(CreateFrameworkRequest) returns (Framework) { option (google.api.http) = { post: "/v1/{parent=organizations/*/locations/*}/frameworks" @@ -74,17 +73,18 @@ service Config { option (google.api.method_signature) = "parent,framework,framework_id"; } - // Updates a single Framework. - // This method allows for partial updates of a Framework resource. The fields - // to be updated are specified using the `update_mask`. + // Updates a custom framework. + // This method allows for partial updates of a framework. Use the + // `update_mask` to specify which fields to update. Consider the following: // - // - If an `update_mask` is provided, only the fields specified in the mask - // will be updated. - // - If no `update_mask` is provided, all fields present in the request's - // `framework` body will be used to overwrite the existing resource. + // - If you provide an `update_mask`, only the fields that are specified + // in the mask are updated. + // - If you don't provide an `update_mask`, all the fields that are present + // in the request's `framework` body are used to overwrite the existing + // resource. // - // This operation can only be performed on Frameworks with type `CUSTOM`. - // A successful update will result in a new version of the Framework. + // You can only update frameworks with the `CUSTOM` type. + // A successful update creates a new version of the framework. rpc UpdateFramework(UpdateFrameworkRequest) returns (Framework) { option (google.api.http) = { patch: "/v1/{framework.name=organizations/*/locations/*/frameworks/*}" @@ -93,14 +93,13 @@ service Config { option (google.api.method_signature) = "framework,update_mask"; } - // Deletes a single Custom Framework, including all its minor and - // minor revisions. + // Deletes a custom framework, including all its major and + // minor revisions. Consider the following: // - // - This operation can only be performed on Frameworks with type `CUSTOM`. - // Built-in Frameworks cannot be deleted. - // - The Framework cannot be deleted if it is currently deployed on any - // resource. - // - This action is permanent and cannot be undone. + // - You can't delete built-in frameworks. You can only delete frameworks + // with type `CUSTOM`. + // - You can't delete frameworks that are deployed to a resource. + // - You can't restore a deleted framework. This action is permanent. rpc DeleteFramework(DeleteFrameworkRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=organizations/*/locations/*/frameworks/*}" @@ -108,9 +107,10 @@ service Config { option (google.api.method_signature) = "name"; } - // Lists all CloudControls (both Built-in and Custom) available within a given - // parent resource. This method supports pagination. - // The latest major version of each CloudControl is returned. + // Lists the cloud controls (both built-in and custom) that are available + // in a given parent resource. The latest major version of each cloud control + // is returned. + // This method supports pagination. rpc ListCloudControls(ListCloudControlsRequest) returns (ListCloudControlsResponse) { option (google.api.http) = { @@ -119,13 +119,13 @@ service Config { option (google.api.method_signature) = "parent"; } - // Gets details of a single CloudControl. - // This method retrieves a CloudControl resource, which can be either Built-in - // or Custom, identified by its name. + // Gets details about a cloud control. + // This method retrieves the latest major version of a cloud control that + // you identify by name. // - // By default, the latest major version of the CloudControl is returned. - // A specific major version can be retrieved by specifying the - // `major_revision_id` in the request. + // By default, the latest major version of the cloud control is returned. + // To retrieve a specific major version, include `major_revision_id` in + // the request. rpc GetCloudControl(GetCloudControlRequest) returns (CloudControl) { option (google.api.http) = { get: "/v1/{name=organizations/*/locations/*/cloudControls/*}" @@ -133,9 +133,10 @@ service Config { option (google.api.method_signature) = "name"; } - // Creates a new CloudControl with type `Custom` under a given parent - // resource. `Built-in` CloudControls are managed by Google and cannot be - // created through this API. + // Creates a custom cloud control in a given parent + // resource. + // You can't create built-in cloud controls because those are managed by + // Google. rpc CreateCloudControl(CreateCloudControlRequest) returns (CloudControl) { option (google.api.http) = { post: "/v1/{parent=organizations/*/locations/*}/cloudControls" @@ -145,16 +146,18 @@ service Config { "parent,cloud_control,cloud_control_id"; } - // Updates a single CloudControl. - // This method allows for partial updates of a Custom CloudControl resource. - // Built-in CloudControls cannot be updated. + // Updates a custom cloud control. + // This method allows for partial updates of a cloud control. Use the + // `update_mask` to specify which fields to update. Consider the following: // - // - If an `update_mask` is provided, only the fields specified in the mask - // will be updated. - // - If no `update_mask` is provided, all fields present in the request's - // `cloud_control` body will be used to overwrite the existing resource. + // - If you provide an `update_mask`, only the fields that are specified + // in the mask are updated. + // - If you don't provide an `update_mask`, all the fields that are present + // in the request's `cloud_control` body are used to overwrite the existing + // resource. // - // A successful update will result in a new version of the CloudControl. + // You can only update cloud controls with the `CUSTOM` type. + // A successful update creates a new version of the cloud control. rpc UpdateCloudControl(UpdateCloudControlRequest) returns (CloudControl) { option (google.api.http) = { patch: "/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}" @@ -163,14 +166,14 @@ service Config { option (google.api.method_signature) = "cloud_control,update_mask"; } - // Deletes a single Custom CloudControl, including all its - // major and minor revisions. + // Deletes a custom cloud control, including all its + // major and minor revisions. Consider the following: // - // - This operation can only be performed on CloudControls with type `CUSTOM`. - // Built-in CloudControls cannot be deleted. - // - The CloudControl cannot be deleted if any of its revisions are currently - // referenced by any Framework. - // - This action is permanent and cannot be undone. + // - You can't delete built-in cloud controls. You can only delete cloud + // controls with type `CUSTOM`. + // - You can't delete cloud controls if any of the versions are referenced + // by a framework. + // - You can't restore a deleted cloud control. This action is permanent. rpc DeleteCloudControl(DeleteCloudControlRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -180,11 +183,11 @@ service Config { } } -// Request message for listing Frameworks. +// Request message for [ListFrameworks][]. message ListFrameworksRequest { // Required. The parent resource name, in the format // `organizations/{organization}/locations/{location}`. - // Only global location is supported. + // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -204,10 +207,10 @@ message ListFrameworksRequest { string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for listing Frameworks. -// Contains a paginated list of Framework resources. +// The response message for [ListFrameworks][]. +// Returns a paginated list of Framework resources. message ListFrameworksResponse { - // The list of Framework resources. + // The list of framework resources. repeated Framework frameworks = 1; // A pagination token. To retrieve the next page of results, call the method @@ -215,11 +218,11 @@ message ListFrameworksResponse { string next_page_token = 2; } -// Request message for getting a Framework. +// The request message for [GetFramework][]. message GetFrameworkRequest { - // Required. The name of the framework to retrieve. - // Format: - // organizations/{organization}/locations/{location}/frameworks/{framework_id} + // Required. The name of the framework to retrieve, in the format + // `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -227,15 +230,16 @@ message GetFrameworkRequest { } ]; - // Optional. The Framework major version to retrieve. If not specified, the - // most recently updated revision_id is retrieved. + // Optional. The framework major version to retrieve. If not specified, the + // most recently updated `revision_id` is retrieved. int64 major_revision_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for creating a Framework +// The request message for [CreateFramework][]. message CreateFrameworkRequest { // Required. The parent resource name, in the format // `organizations/{organization}/locations/{location}`. + // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -243,37 +247,36 @@ message CreateFrameworkRequest { } ]; - // Required. ID of the framework. - // This is not the full name of the framework. - // This is the last part of the full name of the framework. + // Required. The identifier (ID) of the framework. The ID is not the full name + // of the framework; it's the last part of the full name of the framework. string framework_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The resource being created + // Required. The resource being created. Framework framework = 3 [(google.api.field_behavior) = REQUIRED]; } -// Request message for updating a Framework. +// The request message for [UpdateFramework][]. message UpdateFrameworkRequest { - // Optional. Field mask is used to specify the fields to be overwritten in the - // Framework 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 present in the request will be - // overwritten. + // Optional. A field mask is used to specify the fields to be overwritten in + // the framework resource by the update. The fields specified in the + // `update_mask` are relative to the resource, not the full request. A field + // is overwritten if it is in the mask. If you don't provide a mask then all + // fields present in the request will be overwritten. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; - // Required. The resource being updated + // Required. The resource that is being updated. Framework framework = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. The major version ID of the framework to update. int64 major_revision_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for deleting a Framework. +// Request message for [DeleteFramework][]. message DeleteFrameworkRequest { - // Required. Name of the resource, in the format + // Required. The name of the resource, in the format // `organizations/{organization}/locations/{location}/frameworks/{framework}`. + // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -282,10 +285,11 @@ message DeleteFrameworkRequest { ]; } -// Request message for listing CloudControls. +// Request message for [ListCloudControls][]. message ListCloudControlsRequest { // Required. The parent resource name, in the format // `organizations/{organization}/locations/{location}`. + // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -293,23 +297,24 @@ message ListCloudControlsRequest { } ]; - // Optional. The maximum number of CloudControls to return. The default value + // Optional. The maximum number of cloud controls to return. The default value // is `500`. // // If you exceed the maximum value of `1000`, then the service uses the // maximum value. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A pagination token returned from a previous request to list - // CloudControls. Provide this token to retrieve the next page of results. + // Optional. A pagination token that's returned from a previous request to + // list cloud controls. Provide this token to retrieve the next page of + // results. // - // When paginating, parent provided to - // ListCloudControls request must match the call that provided the page - // token. + // When paginating, the parent that you provide to the + // [ListCloudControls][google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls] + // request must match the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for ListCloudControls. +// The response message for [ListCloudControls][]. message ListCloudControlsResponse { // The list of CloudControl resources. repeated CloudControl cloud_controls = 1; @@ -319,22 +324,28 @@ message ListCloudControlsResponse { string next_page_token = 2; } -// Request message for getting a CloudControl. +// The request message for [GetCloudControl][]. message GetCloudControlRequest { - // Required. The name of the cloudcontrol to retrieve in the format: - // organizations/{organization}/locations/{location}/cloudControls/{cloud_control} + // Required. The name of the cloud control to retrieve, in the format + // `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "cloudsecuritycompliance.googleapis.com/CloudControl" } ]; + + // Optional. The major version of the cloud control to retrieve. If not + // specified, the most recently updated `revision_id` is retrieved. + int64 major_revision_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for creating a CloudControl +// The request message for [CreateCloudControl][]. message CreateCloudControlRequest { // Required. The parent resource name, in the format // `organizations/{organization}/locations/{location}`. + // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -342,39 +353,43 @@ message CreateCloudControlRequest { } ]; - // Required. ID of the CloudControl. - // This is the last segment of the CloudControl resource name. - // Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. + // Required. The identifier for the cloud control, which is the last segment + // of the cloud control name. The format is + // `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. string cloud_control_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The resource being created + // Required. The cloud control that's being created. CloudControl cloud_control = 3 [(google.api.field_behavior) = REQUIRED]; } -// Request message for UpdateCloudControl. +// The request message for [UpdateCloudControl][]. message UpdateCloudControlRequest { - // Optional. Field mask is used to specify the fields to be overwritten in the - // CloudControl 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 present in the request will be - // overwritten. The fields that can be updated are: - // 1. Display_name - // 2. Description - // 3. Parameters - // 4. Rules - // 5. ParameterSpec. + // Optional. Use a field mask to specify the fields to be overwritten in the + // cloud control during the update. + // The fields that you specify in the `update_mask` are relative to the + // cloud control, not the full request. A field is overwritten if it is in + // the mask. If you don't provide a mask, all fields in the request + // are updated. + // + // You can update the following fields: + // + // - Display name + // - Description + // - Parameters + // - Rules + // - Parameter specification google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; - // Required. The resource being updated + // Required. The cloud control that you're updating. CloudControl cloud_control = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for deleting a CloudControl. +// The request message for [DeleteCloudControl][]. message DeleteCloudControlRequest { - // Required. Name of the resource, in the format + // Required. The name of the cloud control to delete, in the format // `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/deployment.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/deployment.proto index 964d8d2c0b58..343819f0f4bb 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/deployment.proto +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/deployment.proto @@ -40,7 +40,10 @@ service Deployment { option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Creates a new FrameworkDeployment in a given parent resource. + // Creates a framework deployment in a given parent resource. A + // framework deployment lets you assign a particular framework version to an + // organization, folder, or project so that you can control and monitor + // those resources using the framework's cloud controls. rpc CreateFrameworkDeployment(CreateFrameworkDeploymentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -55,7 +58,7 @@ service Deployment { }; } - // Deletes a single FrameworkDeployment. + // Deletes a framework deployment. rpc DeleteFrameworkDeployment(DeleteFrameworkDeploymentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -68,7 +71,7 @@ service Deployment { }; } - // Gets details of a single FrameworkDeployment. + // Gets details about a framework deployment. rpc GetFrameworkDeployment(GetFrameworkDeploymentRequest) returns (FrameworkDeployment) { option (google.api.http) = { @@ -77,7 +80,7 @@ service Deployment { option (google.api.method_signature) = "name"; } - // Lists FrameworkDeployments in a given parent resource. + // Lists the framework deployments in a given parent resource. rpc ListFrameworkDeployments(ListFrameworkDeploymentsRequest) returns (ListFrameworkDeploymentsResponse) { option (google.api.http) = { @@ -86,7 +89,7 @@ service Deployment { option (google.api.method_signature) = "parent"; } - // Gets details of a single CloudControlDeployment. + // Gets details about a cloud control deployment. rpc GetCloudControlDeployment(GetCloudControlDeploymentRequest) returns (CloudControlDeployment) { option (google.api.http) = { @@ -95,7 +98,7 @@ service Deployment { option (google.api.method_signature) = "name"; } - // Lists CloudControlDeployments in a given parent resource. + // Lists the cloud conrol deployments in a given parent resource. rpc ListCloudControlDeployments(ListCloudControlDeploymentsRequest) returns (ListCloudControlDeploymentsResponse) { option (google.api.http) = { @@ -105,42 +108,42 @@ service Deployment { } } -// DeploymentState represents the state of the Deployment resource. +// The state of the deployment resource. enum DeploymentState { - // Unspecified. Invalid state. + // Default value. This value is unused. DEPLOYMENT_STATE_UNSPECIFIED = 0; // Validating the deployment. DEPLOYMENT_STATE_VALIDATING = 1; - // Deployment is in CREATING state. + // Deployment is being created. DEPLOYMENT_STATE_CREATING = 2; - // Deployment is in DELETING state. + // Deployment is being deleted. DEPLOYMENT_STATE_DELETING = 3; - // Deployment has failed. All the changes made by the deployment have been - // successfully rolled back. A deployment in the FAILED state can be retried - // or deleted. + // Deployment has failed. All the changes made by the deployment were + // successfully rolled back. You can retry or delete a deployment that's + // in this state. DEPLOYMENT_STATE_FAILED = 4; // Deployment is successful and ready to use. DEPLOYMENT_STATE_READY = 5; - // Deployment is partially deployed. All the Cloud Controls were not deployed - // successfully. Retrying the operation will resume from the first failed + // Deployment is partially deployed. All the cloud controls weren't deployed + // successfully. Retrying the operation resumes from the first failed // step. DEPLOYMENT_STATE_PARTIALLY_DEPLOYED = 6; - // Deployment is partially deleted. All the Cloud Control Deployments were not - // deleted successfully. Retrying the operation will resume from the first + // Deployment is partially deleted. All the cloud control deployments weren't + // deleted successfully. Retrying the operation resumes from the first // failed step. DEPLOYMENT_STATE_PARTIALLY_DELETED = 7; } -// FrameworkDeployment represents deployment of a Framework on a target -// resource. Supported target resources are organizations/{organization}, -// folders/{folder}, and projects/{project}. +// Framework deployments represent the assignment of a framework to a target +// resource. Supported target resources are organizations, folders, and +// projects. message FrameworkDeployment { option (google.api.resource) = { type: "cloudsecuritycompliance.googleapis.com/FrameworkDeployment" @@ -149,35 +152,37 @@ message FrameworkDeployment { singular: "frameworkDeployment" }; - // Identifier. FrameworkDeployment name in the following format: - // organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id} + // Identifier. The name of the framework deployment, in the format + // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + // The only supported location is `global`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Required. The details of the target resource on which the Framework is to - // be deployed. It can either be an existing target resource or a new target - // resource to be created. + // Required. The details of the target resource that you want to deploy the + // framework to. You can specify an existing resource, or create a new one. TargetResourceConfig target_resource_config = 2 [(google.api.field_behavior) = REQUIRED]; - // Output only. The resource on which the Framework is deployed based on the - // provided TargetResourceConfig in the following format: - // organizations/{organization}, folders/{folder} or projects/{project} + // Output only. The target resource to deploy the framework to, in one the + // following formats: + // + // - `organizations/{organizationID}` + // - `folders/{folderID}` + // - `projects/{projectID}` string computed_target_resource = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. Reference to the framework to be deployed. + // Required. A reference to the framework that you're deploying. FrameworkReference framework = 4 [(google.api.field_behavior) = REQUIRED]; - // Optional. User provided description of the Framework deployment + // Optional. A user-provided description of the framework deployment. string description = 5 [(google.api.field_behavior) = OPTIONAL]; - // Required. Deployment mode and parameters for each of the Cloud Controls in - // the framework. Every Cloud Control in the framework must have a - // CloudControlMetadata. + // Required. The deployment mode and parameters for each of the cloud controls + // in the framework. Every cloud control in the framework includes metadata. repeated CloudControlMetadata cloud_control_metadata = 6 [(google.api.field_behavior) = REQUIRED]; - // Output only. State of the Framework Deployment + // Output only. The state for the framework deployment. DeploymentState deployment_state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -190,21 +195,25 @@ message FrameworkDeployment { [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. To prevent concurrent updates from overwriting each other, always - // provide the `etag` when you update a FrameworkDeployment. You can also - // provide the `etag` when you delete a FrameworkDeployment, to help + // provide the `etag` when you update a framework deployment. You can also + // provide the `etag` when you delete a framework deployment, to help // ensure that you're deleting the intended version of the - // FrameworkDeployment. + // framework deployment. string etag = 11 [(google.api.field_behavior) = OPTIONAL]; // Output only. The display name of the target resource. string target_resource_display_name = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The references to the cloud control deployments. It has all - // the CloudControlDeployments which are either directly added in the - // framework or through a CloudControlGroup. Example: If a framework - // deployment deploys two cloud controls, cc-deployment-1 and cc-deployment-2, - // then the cloud_control_deployment_references will be: + // Output only. The references to the cloud control deployments. The reference + // includes all the cloud control deployments that are in the framework or in + // a cloud control group. + // + // For example, if a framework deployment deploys two + // cloud controls, `cc-deployment-1` and `cc-deployment-2`, then the + // references are: + // + // ``` // { // cloud_control_deployment_reference: { // cloud_control_deployment: @@ -214,13 +223,15 @@ message FrameworkDeployment { // cloud_control_deployment: // "organizations/{organization}/locations/{location}/cloudControlDeployments/cc-deployment-2" // } + // ``` repeated CloudControlDeploymentReference cloud_control_deployment_references = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// CloudControlDeployment represents deployment of a CloudControl on a target -// resource. Supported target resources are organizations/{organization}, -// folders/{folder}, and projects/{project}. +// A cloud control deployment represents the deployment of a particular cloud +// control on a target resource. Supported target resources are +// `organizations/{organizationID}`, `folders/{folderID}`, and +// `projects/{projectID}`. message CloudControlDeployment { option (google.api.resource) = { type: "cloudsecuritycompliance.googleapis.com/CloudControlDeployment" @@ -229,54 +240,57 @@ message CloudControlDeployment { singular: "cloudControlDeployment" }; - // Identifier. CloudControlDeployment name in the following format: - // organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id} + // Identifier. The name for the cloud control deployment, in the format + // `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + // The only supported location is `global`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Required. The details of the target resource on which the CloudControl is - // to be deployed. It can either be an existing target resource or a new - // target resource to be created. + // Required. The details of the target resource that the cloud control is + // deployed You can use an existing target resource or create a new target. TargetResourceConfig target_resource_config = 2 [(google.api.field_behavior) = REQUIRED]; - // Output only. The resource on which the CloudControl is deployed based on - // the provided TargetResourceConfig in the following format: - // organizations/{organization}, folders/{folder} or projects/{project}. + // Output only. The resource that the cloud control is deployed on, in one of + // the following formats: + // + // - `organizations/{organizationID}` + // - `folders/{folderID}` + // - `projects/{projectID}` string target_resource = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. Deployment mode and parameters for the Cloud Control. + // Required. The deployment mode and parameters for the cloud control. CloudControlMetadata cloud_control_metadata = 4 [(google.api.field_behavior) = REQUIRED]; - // Optional. User provided description of the CloudControl deployment + // Optional. A friendly description for the cloud control deployment. string description = 5 [(google.api.field_behavior) = OPTIONAL]; - // Output only. State of the CloudControl deployment + // Output only. The state of the cloud control deployment. DeploymentState deployment_state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The time at which the resource was created. + // Output only. The time when the resource was created. google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The time at which the resource last updated. + // Output only. The time when the resource was last updated. google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. To prevent concurrent updates from overwriting each other, always - // provide the `etag` when you update a CloudControlDeployment. You can also - // provide the `etag` when you delete a CloudControlDeployment, to help + // Optional. To prevent concurrent updates from overwriting each other, + // provide the `etag` when you update a cloud control deployment. You can also + // provide the `etag` when you delete a cloud control deployment to help // ensure that you're deleting the intended version of the - // CloudControlDeployment. + // deployment. string etag = 9 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The CloudControl after substitution of given parameters. + // Output only. The cloud control after the given parameters are substituted. CloudControl parameter_substituted_cloud_control = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The references to the Framework deployments that this Cloud - // Control deployment is part of. A Cloud Control deployment can be part of - // multiple Framework deployments. + // Output only. The references to the framework deployments that this cloud + // control deployment is part of. A cloud control deployment can be part of + // multiple framework deployments. repeated FrameworkDeploymentReference framework_deployment_references = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -285,80 +299,81 @@ message CloudControlDeployment { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// TargetResourceConfig contains either the name of the target_resource or -// contains the config to create a new target_resource. +// The name of the target resource or the configuration that's required to +// create a new target resource. message TargetResourceConfig { - // Resource config for the target_resource + // The resource configuration for the target resource. oneof resource_config { - // Optional. CRM node in format organizations/{organization}, - // folders/{folder}, or projects/{project} + // Optional. The resource hierarchy node, in one of the following formats: + // + // - `organizations/{organizationID}` + // - `folders/{folderID}` + // - `projects/{projectID}` string existing_target_resource = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Config to create a new resource and use that as the - // target_resource for deployment. + // Optional. The details that are required to create a resource and use + // that resource as the target resource for deployment. TargetResourceCreationConfig target_resource_creation_config = 2 [(google.api.field_behavior) = OPTIONAL]; } } -// TargetResourceCreationConfig contains the config to create a new resource to -// be used as the target_resource of a deployment. +// The configuration that's required to create a target resource. message TargetResourceCreationConfig { - // Resource creation config for the target_resource + // The configuration that's required to create the target resource. oneof resource_creation_config { - // Optional. Config to create a new folder to be used as the target_resource - // of a deployment. + // Optional. The configuration that's required to create a folder. FolderCreationConfig folder_creation_config = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Config to create a new project to be used as the - // target_resource of a deployment. + // Optional. The configuration that's required to create a project. ProjectCreationConfig project_creation_config = 2 [(google.api.field_behavior) = OPTIONAL]; } } -// FolderCreationConfig contains the config to create a new folder to be used -// as the target_resource of a deployment. +// The configuration that's required to create a folder to be used +// as the target resource for a deployment. message FolderCreationConfig { - // Required. The parent of the folder to be created. It can be an - // organizations/{org} or folders/{folder} + // Required. The parent of the folder, in the format + // `organizations/{organizationID}` or `folders/{folderID}`. string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Display name of the folder to be created + // Required. The display name of the folder. string folder_display_name = 2 [(google.api.field_behavior) = REQUIRED]; } -// ProjectCreationConfig contains the config to create a new project to be used -// as the target_resource of a deployment. +// The configuration that's required to create a project to be used +// as the target resource of a deployment. message ProjectCreationConfig { - // Required. organizations/{org} or folders/{folder} + // Required. The parent of the project, in the format + // `organizations/{organizationID}` or `folders/{folderID}`. string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Display name of the project to be created. + // Required. The display name of the project. string project_display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. Billing account id to be used for the project. + // Required. The billing account ID for the project. string billing_account_id = 3 [(google.api.field_behavior) = REQUIRED]; } -// CloudControlMetadata contains the enforcement mode and parameters of a Cloud -// Control Deployment. +// The enforcement mode and parameters of a cloud +// control deployment. message CloudControlMetadata { - // Required. Cloud control name and parameters. + // Required. The cloud control name and parameters. CloudControlDetails cloud_control_details = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Enforcement mode of the cloud control + // Required. The enforcement mode of the cloud control. EnforcementMode enforcement_mode = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for CreateFrameworkDeployment API. +// The request message for [CreateFrameworkDeployment][]. message CreateFrameworkDeploymentRequest { - // Required. The parent resource of the FrameworkDeployment in the format: - // organizations/{organization}/locations/{location} - // Only global location is supported. + // Required. The parent resource of the framework deployment in the format + // `organizations/{organization}/locations/{location}`. + // Only the global location is supported. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -366,21 +381,22 @@ message CreateFrameworkDeploymentRequest { } ]; - // Optional. User provided identifier. It should be unique in scope of a - // parent. This is optional and if not provided, a random UUID will be + // Optional. An identifier for the framework deployment that's unique in scope + // of the parent. If you don't specify a value, then a random UUID is // generated. string framework_deployment_id = 2 [(google.api.field_behavior) = OPTIONAL]; - // Required. The FrameworkDeployment to be created. + // Required. The framework deployment that you're creating. FrameworkDeployment framework_deployment = 3 [(google.api.field_behavior) = REQUIRED]; } -// Request message for DeleteFrameworkDeployment. +// The request message for [DeleteFrameworkDeployment][]. message DeleteFrameworkDeploymentRequest { - // Required. name of the FrameworkDeployment to be deleted in the following - // format: - // organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id} + // Required. The name of the framework deployment that you want to delete, + // in the format + // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -392,17 +408,18 @@ message DeleteFrameworkDeploymentRequest { // // If you provide this value, then it must match the existing value. If the // values don't match, then the request fails with an - // [ABORTED][google.rpc.Code.ABORTED] error. + // [`ABORTED`][google.rpc.Code.ABORTED] error. // // If you omit this value, then the resource is deleted regardless of its // current `etag` value. string etag = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for GetFrameworkDeployment. +// The request message for [GetFrameworkDeployment][]. message GetFrameworkDeploymentRequest { - // Required. FrameworkDeployment name in the following format: - // organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id} + // Required. The name of the framework deployment, in the format + // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -411,11 +428,11 @@ message GetFrameworkDeploymentRequest { ]; } -// Request message for ListFrameworkDeployments. +// The request message for [ListFrameworkDeployments][]. message ListFrameworkDeploymentsRequest { - // Required. parent resource of the FrameworkDeployment in the format: - // organizations/{organization}/locations/{location} - // Only global location is supported. + // Required. The parent resource of the framework deployment, in the format + // `organizations/{organization}/locations/{location}`. + // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -423,34 +440,44 @@ message ListFrameworkDeploymentsRequest { } ]; - // Optional. Requested page size. Server may return fewer items than - // requested. If unspecified, server will pick an appropriate default. + // Optional. The requested page size. The server might return fewer items than + // requested. + // If unspecified, the server picks an appropriate default. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A token identifying a page of results the server should return. + // Optional. A token that identifies a page of results the server should + // return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filter to be applied on the resource, defined by EBNF grammar - // https://google.aip.dev/assets/misc/ebnf-filtering.txt. + // Optional. The filter to be applied on the resource, as defined by + // [AIP-160: Filtering](https://google.aip.dev/160). string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Sort results. Supported are "name", "name desc" or "" (unsorted). + // Optional. The sort order for the results. The following values are + // supported: + // + // * `name` + // * `name desc` + // + // If you do not specify a value, then the results are not sorted. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for ListFrameworkDeployments. +// The response message for [ListFrameworkDeployments][]. message ListFrameworkDeploymentsResponse { - // The list of FrameworkDeployments. + // The list of framework deployments. repeated FrameworkDeployment framework_deployments = 1; - // A token identifying a page of results the server should return. + // A token that identifies the next page of results that the server + // should return. string next_page_token = 2; } -// Request message for GetCloudControlDeployment. +// The request message for [GetCloudControlDeployment][]. message GetCloudControlDeploymentRequest { - // Required. CloudControlDeployment name in the following format: - // organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id} + // Required. The name for the cloud control deployment, in the format + // `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -459,11 +486,11 @@ message GetCloudControlDeploymentRequest { ]; } -// Request message for ListCloudControlDeployments. +// The request message for [ListCloudControlDeployments][]. message ListCloudControlDeploymentsRequest { - // Required. parent resource of the CloudControlDeployment in the format: - // organizations/{organization}/locations/{location} - // Only global location is supported. + // Required. The parent resource for the cloud control deployment, in the + // format `organizations/{organization}/locations/{location}`. The only + // supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -471,34 +498,44 @@ message ListCloudControlDeploymentsRequest { } ]; - // Optional. Requested page size. Server may return fewer items than - // requested. If unspecified, server will pick an appropriate default. + // Optional. The requested page size. The server might return fewer items than + // you requested. + // If unspecified, the server picks an appropriate default. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A token identifying a page of results the server should return. + // Optional. A token that identifies the page of results that the server + // should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filter to be applied on the resource, defined by EBNF grammar - // https://google.aip.dev/assets/misc/ebnf-filtering.txt. + // Optional. The filter to apply on the resource, as defined by + // [AIP-160: Filtering](https://google.aip.dev/160). string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Sort results. Supported are "name", "name desc" or "" (unsorted). + // Optional. The sort order for the results. The following values are + // supported: + // + // * `name` + // * `name desc` + // + // If you do not specify a value, then the results are not sorted. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for ListCloudControlDeployments. +// The response message for [ListCloudControlDeployments][]. message ListCloudControlDeploymentsResponse { - // The list of CloudControlDeployments. + // The list of cloud control deployments. repeated CloudControlDeployment cloud_control_deployments = 1; - // A token identifying a page of results the server should return. + // A token that identifies the next page of results that the server + // should return. string next_page_token = 2; } -// The reference to a CloudControlDeployment. +// The reference to a cloud control deployment. message CloudControlDeploymentReference { - // Output only. The name of the CloudControlDeployment. The format is: - // organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id} + // Output only. The name of the CloudControlDeployment. The format is + // `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + // The only supported location is `global`. string cloud_control_deployment = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { @@ -507,10 +544,11 @@ message CloudControlDeploymentReference { ]; } -// The reference to a FrameworkDeployment. +// The reference to a framework deployment. message FrameworkDeploymentReference { - // Output only. The name of the FrameworkDeployment. The format is: - // organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id} + // Output only. The name of the framework deployment, in the format + // `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + // The only supported location is `global`. string framework_deployment = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { @@ -518,16 +556,22 @@ message FrameworkDeploymentReference { } ]; - // Optional. The reference to the Framework that this deployment is for. - // Example: { + // Optional. The reference to the framework that this deployment is for. + // For example: + // + // ``` + // { // framework: // "organizations/{org}/locations/{location}/frameworks/{framework}", // major_revision_id: 1 // } + // ``` + // + // The only supported location is `global`. FrameworkReference framework_reference = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The display name of the Framework that this FrameworkDeployment + // Optional. The display name of the framework that this framework deployment // is for. string framework_display_name = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/monitoring.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/monitoring.proto new file mode 100644 index 000000000000..a8c4fc0ff03e --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/monitoring.proto @@ -0,0 +1,628 @@ +// Copyright 2025 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.cloudsecuritycompliance.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/cloudsecuritycompliance/v1/common.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/interval.proto"; + +option csharp_namespace = "Google.Cloud.CloudSecurityCompliance.V1"; +option go_package = "cloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb"; +option java_multiple_files = true; +option java_outer_classname = "MonitoringProto"; +option java_package = "com.google.cloud.cloudsecuritycompliance.v1"; +option php_namespace = "Google\\Cloud\\CloudSecurityCompliance\\V1"; +option ruby_package = "Google::Cloud::CloudSecurityCompliance::V1"; +option (google.api.resource_definition) = { + type: "cloudsecuritycompliance.googleapis.com/FolderLocation" + pattern: "folders/{folder}/locations/{location}" +}; + +// Service describing handlers for resources +service Monitoring { + option (google.api.default_host) = "cloudsecuritycompliance.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists the framework compliance summary for a given scope. + rpc ListFrameworkComplianceSummaries(ListFrameworkComplianceSummariesRequest) + returns (ListFrameworkComplianceSummariesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummaries" + additional_bindings { + get: "/v1/{parent=folders/*/locations/*}/frameworkComplianceSummaries" + } + additional_bindings { + get: "/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Lists the finding summary by category for a given scope. + rpc ListFindingSummaries(ListFindingSummariesRequest) + returns (ListFindingSummariesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/locations/*}/findingSummaries" + additional_bindings { + get: "/v1/{parent=folders/*/locations/*}/findingSummaries" + } + additional_bindings { + get: "/v1/{parent=projects/*/locations/*}/findingSummaries" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Fetches the framework compliance report for a given scope. + rpc FetchFrameworkComplianceReport(FetchFrameworkComplianceReportRequest) + returns (FrameworkComplianceReport) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetch" + additional_bindings { + get: "/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetch" + } + additional_bindings { + get: "/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists the control compliance summary for a given scope. + rpc ListControlComplianceSummaries(ListControlComplianceSummariesRequest) + returns (ListControlComplianceSummariesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries" + additional_bindings { + get: "/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries" + } + additional_bindings { + get: "/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the aggregated compliance report over time for a given scope. + rpc AggregateFrameworkComplianceReport( + AggregateFrameworkComplianceReportRequest) + returns (AggregateFrameworkComplianceReportResponse) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregate" + additional_bindings { + get: "/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregate" + } + additional_bindings { + get: "/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// The evaluation state of the control. +enum EvaluationState { + // Default value. This value is unused. + EVALUATION_STATE_UNSPECIFIED = 0; + + // The control is passing. + EVALUATION_STATE_PASSED = 1; + + // The control is failing. + EVALUATION_STATE_FAILED = 2; + + // The control is not assessed. + EVALUATION_STATE_NOT_ASSESSED = 3; +} + +// A finding is a record of assessment data like security, risk, health, or +// privacy. +enum FindingClass { + // Default value. This value is unused. + FINDING_CLASS_UNSPECIFIED = 0; + + // The activity is unwanted or malicious. + THREAT = 1; + + // A potential weakness in software that increases risk to + // confidentiality, integrity, and availability. + VULNERABILITY = 2; + + // A potential weakness in a cloud resource or asset configuration that + // increases risk. + MISCONFIGURATION = 3; + + // A security observation that is for informational purposes. + OBSERVATION = 4; + + // An error that prevents Security Command Center from functioning properly. + SCC_ERROR = 5; + + // A potential security risk that's due to a change in the security + // posture. + POSTURE_VIOLATION = 6; + + // A combination of security issues that represent a more severe + // security problem when taken together. + TOXIC_COMBINATION = 7; + + // A potential security risk to data assets that contain sensitive + // data. + SENSITIVE_DATA_RISK = 8; + + // A resource or resource group where high risk attack paths + // converge, based on attack path simulations (APS). + CHOKEPOINT = 9; +} + +// The request message for +// [ListFrameworkComplianceSummariesRequest][google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest]. +message ListFrameworkComplianceSummariesRequest { + // Required. The parent scope for the framework compliance summary. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "cloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary" + } + ]; + + // Optional. The requested page size. The server might return fewer items than + // requested. If unspecified, the server picks an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token that identifies the page of results that the server + // should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filtering results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for +// [ListFrameworkComplianceSummariesResponse][google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse]. +message ListFrameworkComplianceSummariesResponse { + // The list of framework compliance summaries. + repeated FrameworkComplianceSummary framework_compliance_summaries = 1; + + // Output only. The token to retrieve the next page of results. + string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The response message for [GetFrameworkComplianceReport][]. +message FrameworkComplianceReport { + option (google.api.resource) = { + type: "cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport" + pattern: "projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}" + pattern: "folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}" + pattern: "organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}" + plural: "frameworkComplianceReports" + singular: "frameworkComplianceReport" + }; + + // The name of the framework. + string framework = 1; + + // The description of the framework. + string framework_description = 2; + + // Output only. The last updated time of the report. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The control assessment details of the framework. + ControlAssessmentDetails control_assessment_details = 4; + + // The type of framework. + Framework.FrameworkType framework_type = 5; + + // The list of cloud providers supported by the framework. + repeated CloudProvider supported_cloud_providers = 6; + + // The list of framework categories supported. + repeated FrameworkCategory framework_categories = 7; + + // Optional. The display name for the framework. + string framework_display_name = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Identifier. The name of the framework compliance report. + string name = 9 [(google.api.field_behavior) = IDENTIFIER]; + + // The latest major revision ID of the framework. + int64 major_revision_id = 10; + + // The latest minor revision ID of the latest major revision of the framework. + int64 minor_revision_id = 11; + + // The target resource details of the framework. + repeated TargetResourceDetails target_resource_details = 12; +} + +// The request message for [FetchFrameworkComplianceReport][]. +message FetchFrameworkComplianceReportRequest { + // Required. The name of the framework compliance report to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport" + } + ]; + + // Optional. The end time of the report. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for [ListFindingSummaries][]. +message ListFindingSummariesRequest { + // Required. The parent scope for the framework overview page. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "cloudsecuritycompliance.googleapis.com/FindingSummary" + } + ]; + + // Optional. The requested page size. The server might return fewer items than + // requested. If unspecified, the server picks an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token that identifies the page of results that the server + // should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filtering results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The end time of the finding summary. + google.protobuf.Timestamp end_time = 5 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [ListFindingSummaries][]. +message ListFindingSummariesResponse { + // List of finding summary by category. + repeated FindingSummary finding_summaries = 1; + + // Output only. The token to retrieve the next page of results. + string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for [ListControlComplianceSummaries][]. +message ListControlComplianceSummariesRequest { + // Required. The parent scope for the framework overview page. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "cloudsecuritycompliance.googleapis.com/ControlComplianceSummary" + } + ]; + + // Optional. The end time of the control compliance summary. + google.protobuf.Timestamp end_time = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. The requested page size. The server might return fewer items than + // requested. If unspecified, the server picks an appropriate default. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token that identifies the page of results that the server + // should return. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filtering results. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [ListControlComplianceSummaries][]. +message ListControlComplianceSummariesResponse { + // The list of control compliance details. + repeated ControlComplianceSummary control_compliance_summaries = 1; + + // Output only. The token to retrieve the next page of results. + string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for [AggregateFrameworkComplianceReport][]. +message AggregateFrameworkComplianceReportRequest { + // Required. The name of the aggregated compliance report over time to + // retrieve. + // + // The supported format is: + // `organizations/{organization_id}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport" + } + ]; + + // Optional. The start and end time range for the aggregated compliance + // report. + google.type.Interval interval = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filtering results. + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [AggregateFrameworkComplianceReport][]. +message AggregateFrameworkComplianceReportResponse { + // The list of aggregated compliance reports. + repeated AggregatedComplianceReport aggregated_compliance_reports = 1; +} + +// The details for a control assessment. +message ControlAssessmentDetails { + // The number of controls that are passing or not assessed. + int32 passing_controls = 1; + + // The number of controls that are failing. + int32 failing_controls = 2; + + // The number of controls that were assessed and are passing. + int32 assessed_passing_controls = 3; + + // The number of controls that aren't assessed because they require manual + // review. + int32 not_assessed_controls = 4; +} + +// The details for a framework compliance summary. +message FrameworkComplianceSummary { + option (google.api.resource) = { + type: "cloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary" + pattern: "projects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}" + pattern: "folders/{folder}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}" + pattern: "organizations/{organization}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}" + plural: "frameworkComplianceSummaries" + singular: "frameworkComplianceSummary" + }; + + // The name of the framework. + string framework = 1; + + // The control assessment details of the framework. + ControlAssessmentDetails control_assessment_details = 2; + + // The type of framework. + Framework.FrameworkType framework_type = 3; + + // The list of cloud providers supported by the framework. + repeated CloudProvider supported_cloud_providers = 4; + + // The list of framework categories supported by the framework. + repeated FrameworkCategory framework_categories = 5; + + // Optional. The display name for the framework. + string framework_display_name = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Identifier. The name of the framework compliance summary. + string name = 7 [(google.api.field_behavior) = IDENTIFIER]; + + // The major revision ID of the framework. + int64 major_revision_id = 8; + + // The minor revision ID of the framework. + int64 minor_revision_id = 9; + + // The target resource details for the framework. + repeated TargetResourceDetails target_resource_details = 10; +} + +// The details for a finding. +message FindingSummary { + option (google.api.resource) = { + type: "cloudsecuritycompliance.googleapis.com/FindingSummary" + pattern: "projects/{project}/locations/{location}/findingSummaries/{finding_summary}" + pattern: "folders/{folder}/locations/{location}/findingSummaries/{finding_summary}" + pattern: "organizations/{organization}/locations/{location}/findingSummaries/{finding_summary}" + plural: "findingSummaries" + singular: "findingSummary" + }; + + // The category of the finding. + string finding_category = 1; + + // The class of the finding. + FindingClass finding_class = 2; + + // The severity of the finding. + Severity severity = 3; + + // The count of the finding. + int64 finding_count = 4; + + // Output only. The last updated time of the finding. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The list of compliance frameworks that the finding belongs to. + repeated string related_frameworks = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Identifier. The name of the finding summary. + string name = 7 [(google.api.field_behavior) = IDENTIFIER]; +} + +// The details for control compliance. +message ControlComplianceSummary { + option (google.api.resource) = { + type: "cloudsecuritycompliance.googleapis.com/ControlComplianceSummary" + pattern: "projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}" + pattern: "folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}" + pattern: "organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}" + plural: "controlComplianceSummaries" + singular: "controlComplianceSummary" + }; + + // The name of the control. + string control = 1; + + // The display name of the control. + string display_name = 2; + + // The description of the control. + string description = 3; + + // Output only. The overall evaluation status of the control. + EvaluationState overall_evaluation_state = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The total number of findings for the control. + int32 total_findings_count = 5; + + // The list of compliance frameworks that the control belongs to. + repeated string compliance_frameworks = 6; + + // The list of similar controls. + repeated SimilarControls similar_controls = 7; + + // The list of cloud control reports. + repeated CloudControlReport cloud_control_reports = 8; + + // The responsibility type for the control. + RegulatoryControlResponsibilityType control_responsibility_type = 9; + + // Whether the control is a fake control. Fake controls are created + // and mapped to cloud controls that don't belong to a control group. + bool is_fake_control = 10; + + // Identifier. The name of the control compliance summary. + string name = 11 [(google.api.field_behavior) = IDENTIFIER]; +} + +// The cloud control report. +message CloudControlReport { + // The assessment details of the cloud control. + oneof assessment_details { + // The details of a manual cloud control assessment. + ManualCloudControlAssessmentDetails + manual_cloud_control_assessment_details = 13; + + // The details of a cloud control assessment. + CloudControlAssessmentDetails cloud_control_assessment_details = 14; + } + + // The name of the cloud control. + string cloud_control = 1; + + // The display name of the cloud control. + string display_name = 2; + + // The description of the cloud control. + string description = 3; + + // The list of categories for the cloud control. + repeated string categories = 6; + + // The list of similar controls. + repeated SimilarControls similar_controls = 9; + + // The type of the cloud control. + CloudControl.Type cloud_control_type = 10; + + // The category of the finding. + string finding_category = 11; + + // The list of rules that correspond to the cloud control. + repeated Rule rules = 12; + + // The severity of the finding. + Severity finding_severity = 15; + + // The enforcement mode of the cloud control. + EnforcementMode enforcement_mode = 16; + + // The name of the cloud control deployment. + string cloud_control_deployment = 17; + + // The major revision ID of the cloud control. + int64 major_revision_id = 18; + + // The minor revision ID of the cloud control. + int64 minor_revision_id = 19; + + // The major revision IDs of the frameworks that the cloud control belongs to. + repeated int64 framework_major_revision_ids = 20; +} + +// The details for a manual cloud control assessment. +message ManualCloudControlAssessmentDetails { + // The guide for assessing a cloud control manually. + repeated string manual_cloud_control_guide = 1; +} + +// The cloud control assessment details for non-manual cloud controls. +message CloudControlAssessmentDetails { + // The number of findings for the cloud control. + int32 findings_count = 1; + + // Output only. The evaluation status of the cloud control. + EvaluationState evaluation_state = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The similar controls. +message SimilarControls { + // The name of the framework. + string framework = 1; + + // The ID of the control. + string control_id = 2; +} + +// The aggregated compliance report. +message AggregatedComplianceReport { + // The control assessment details of the framework. + ControlAssessmentDetails control_assessment_details = 1; + + // The report time of the aggregated compliance report. + google.protobuf.Timestamp report_time = 2; +} + +// The details for a target resource. +message TargetResourceDetails { + // The framework deployment name for the target resource. + // + // For example, + // `organizations/{organization_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` + string framework_deployment = 1; + + // The display name of the target resource. For example, `google.com`, + // `staging-project`, or `development-folder`. + string target_resource_display_name = 2; + + // The target resource. For example, `organizations/1234567890`, + // `projects/1234567890`, or `folders/1234567890`. + string target_resource = 3; + + // The create time of the target resource. + google.protobuf.Timestamp create_time = 4; + + // The update time of the target resource. + google.protobuf.Timestamp update_time = 5; + + // The major revision ID of the framework for the target resource. + int64 major_revision_id = 6; + + // The minor revision ID of the framework for the target resource. + int64 minor_revision_id = 7; +} diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/create/SyncCreateSetCredentialsProvider.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..44efe7735386 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.AuditSettings; +import com.google.cloud.cloudsecuritycompliance.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + AuditSettings auditSettings = + AuditSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AuditClient auditClient = AuditClient.create(auditSettings); + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_Create_SetCredentialsProvider_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/create/SyncCreateSetEndpoint.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..35859562e519 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/create/SyncCreateSetEndpoint.java @@ -0,0 +1,40 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_Create_SetEndpoint_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.AuditSettings; +import com.google.cloud.cloudsecuritycompliance.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + AuditSettings auditSettings = AuditSettings.newBuilder().setEndpoint(myEndpoint).build(); + AuditClient auditClient = AuditClient.create(auditSettings); + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_Create_SetEndpoint_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/create/SyncCreateUseHttpJsonTransport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..ca4369bb929a --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_Create_UseHttpJsonTransport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.AuditSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + AuditSettings auditSettings = AuditSettings.newHttpJsonBuilder().build(); + AuditClient auditClient = AuditClient.create(auditSettings); + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/AsyncCreateFrameworkAudit.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/AsyncCreateFrameworkAudit.java new file mode 100644 index 000000000000..a47aaccdf8bf --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/AsyncCreateFrameworkAudit.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateFrameworkAudit { + + public static void main(String[] args) throws Exception { + asyncCreateFrameworkAudit(); + } + + public static void asyncCreateFrameworkAudit() 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 (AuditClient auditClient = AuditClient.create()) { + CreateFrameworkAuditRequest request = + CreateFrameworkAuditRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setFrameworkAudit(FrameworkAudit.newBuilder().build()) + .build(); + ApiFuture future = auditClient.createFrameworkAuditCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/AsyncCreateFrameworkAuditLRO.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/AsyncCreateFrameworkAuditLRO.java new file mode 100644 index 000000000000..f37744a81911 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/AsyncCreateFrameworkAuditLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.OperationMetadata; + +public class AsyncCreateFrameworkAuditLRO { + + public static void main(String[] args) throws Exception { + asyncCreateFrameworkAuditLRO(); + } + + public static void asyncCreateFrameworkAuditLRO() 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 (AuditClient auditClient = AuditClient.create()) { + CreateFrameworkAuditRequest request = + CreateFrameworkAuditRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setFrameworkAudit(FrameworkAudit.newBuilder().build()) + .build(); + OperationFuture future = + auditClient.createFrameworkAuditOperationCallable().futureCall(request); + // Do something. + FrameworkAudit response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_LRO_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAudit.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAudit.java new file mode 100644 index 000000000000..73df83a59fca --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAudit.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkAuditRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncCreateFrameworkAudit { + + public static void main(String[] args) throws Exception { + syncCreateFrameworkAudit(); + } + + public static void syncCreateFrameworkAudit() 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 (AuditClient auditClient = AuditClient.create()) { + CreateFrameworkAuditRequest request = + CreateFrameworkAuditRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFrameworkAuditId("frameworkAuditId-548788616") + .setFrameworkAudit(FrameworkAudit.newBuilder().build()) + .build(); + FrameworkAudit response = auditClient.createFrameworkAuditAsync(request).get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAuditLocationnameFrameworkauditString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAuditLocationnameFrameworkauditString.java new file mode 100644 index 000000000000..6cfe0e00a379 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAuditLocationnameFrameworkauditString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_LocationnameFrameworkauditString_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncCreateFrameworkAuditLocationnameFrameworkauditString { + + public static void main(String[] args) throws Exception { + syncCreateFrameworkAuditLocationnameFrameworkauditString(); + } + + public static void syncCreateFrameworkAuditLocationnameFrameworkauditString() 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 (AuditClient auditClient = AuditClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + FrameworkAudit response = + auditClient.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_LocationnameFrameworkauditString_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAuditOrganizationlocationnameFrameworkauditString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAuditOrganizationlocationnameFrameworkauditString.java new file mode 100644 index 000000000000..97918ca46f73 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAuditOrganizationlocationnameFrameworkauditString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_OrganizationlocationnameFrameworkauditString_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.OrganizationLocationName; + +public class SyncCreateFrameworkAuditOrganizationlocationnameFrameworkauditString { + + public static void main(String[] args) throws Exception { + syncCreateFrameworkAuditOrganizationlocationnameFrameworkauditString(); + } + + public static void syncCreateFrameworkAuditOrganizationlocationnameFrameworkauditString() + 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 (AuditClient auditClient = AuditClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + FrameworkAudit response = + auditClient.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_OrganizationlocationnameFrameworkauditString_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAuditStringFrameworkauditString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAuditStringFrameworkauditString.java new file mode 100644 index 000000000000..737fa3151ed5 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/createframeworkaudit/SyncCreateFrameworkAuditStringFrameworkauditString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_StringFrameworkauditString_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncCreateFrameworkAuditStringFrameworkauditString { + + public static void main(String[] args) throws Exception { + syncCreateFrameworkAuditStringFrameworkauditString(); + } + + public static void syncCreateFrameworkAuditStringFrameworkauditString() 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 (AuditClient auditClient = AuditClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + FrameworkAudit frameworkAudit = FrameworkAudit.newBuilder().build(); + String frameworkAuditId = "frameworkAuditId-548788616"; + FrameworkAudit response = + auditClient.createFrameworkAuditAsync(parent, frameworkAudit, frameworkAuditId).get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_StringFrameworkauditString_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/generateframeworkauditscopereport/AsyncGenerateFrameworkAuditScopeReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/generateframeworkauditscopereport/AsyncGenerateFrameworkAuditScopeReport.java new file mode 100644 index 000000000000..c13351788a04 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/generateframeworkauditscopereport/AsyncGenerateFrameworkAuditScopeReport.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_GenerateFrameworkAuditScopeReport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse; + +public class AsyncGenerateFrameworkAuditScopeReport { + + public static void main(String[] args) throws Exception { + asyncGenerateFrameworkAuditScopeReport(); + } + + public static void asyncGenerateFrameworkAuditScopeReport() 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 (AuditClient auditClient = AuditClient.create()) { + GenerateFrameworkAuditScopeReportRequest request = + GenerateFrameworkAuditScopeReportRequest.newBuilder() + .setScope("scope109264468") + .setComplianceFramework("complianceFramework-1808314333") + .build(); + ApiFuture future = + auditClient.generateFrameworkAuditScopeReportCallable().futureCall(request); + // Do something. + GenerateFrameworkAuditScopeReportResponse response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GenerateFrameworkAuditScopeReport_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReport.java new file mode 100644 index 000000000000..06c3ad41bfcd --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReport.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_GenerateFrameworkAuditScopeReport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse; + +public class SyncGenerateFrameworkAuditScopeReport { + + public static void main(String[] args) throws Exception { + syncGenerateFrameworkAuditScopeReport(); + } + + public static void syncGenerateFrameworkAuditScopeReport() 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 (AuditClient auditClient = AuditClient.create()) { + GenerateFrameworkAuditScopeReportRequest request = + GenerateFrameworkAuditScopeReportRequest.newBuilder() + .setScope("scope109264468") + .setComplianceFramework("complianceFramework-1808314333") + .build(); + GenerateFrameworkAuditScopeReportResponse response = + auditClient.generateFrameworkAuditScopeReport(request); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GenerateFrameworkAuditScopeReport_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReportStringGenerateframeworkauditscopereportrequestformatString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReportStringGenerateframeworkauditscopereportrequestformatString.java new file mode 100644 index 000000000000..21985c433fe4 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReportStringGenerateframeworkauditscopereportrequestformatString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_GenerateFrameworkAuditScopeReport_StringGenerateframeworkauditscopereportrequestformatString_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse; + +public +class SyncGenerateFrameworkAuditScopeReportStringGenerateframeworkauditscopereportrequestformatString { + + public static void main(String[] args) throws Exception { + syncGenerateFrameworkAuditScopeReportStringGenerateframeworkauditscopereportrequestformatString(); + } + + public static void + syncGenerateFrameworkAuditScopeReportStringGenerateframeworkauditscopereportrequestformatString() + 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 (AuditClient auditClient = AuditClient.create()) { + String scope = "scope109264468"; + GenerateFrameworkAuditScopeReportRequest.Format reportFormat = + GenerateFrameworkAuditScopeReportRequest.Format.forNumber(0); + String complianceFramework = "complianceFramework-1808314333"; + GenerateFrameworkAuditScopeReportResponse response = + auditClient.generateFrameworkAuditScopeReport(scope, reportFormat, complianceFramework); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GenerateFrameworkAuditScopeReport_StringGenerateframeworkauditscopereportrequestformatString_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/AsyncGetFrameworkAudit.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/AsyncGetFrameworkAudit.java new file mode 100644 index 000000000000..0ccfc08ce268 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/AsyncGetFrameworkAudit.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditName; +import com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest; + +public class AsyncGetFrameworkAudit { + + public static void main(String[] args) throws Exception { + asyncGetFrameworkAudit(); + } + + public static void asyncGetFrameworkAudit() 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 (AuditClient auditClient = AuditClient.create()) { + GetFrameworkAuditRequest request = + GetFrameworkAuditRequest.newBuilder() + .setName( + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .build(); + ApiFuture future = + auditClient.getFrameworkAuditCallable().futureCall(request); + // Do something. + FrameworkAudit response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/SyncGetFrameworkAudit.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/SyncGetFrameworkAudit.java new file mode 100644 index 000000000000..fdc5e620a584 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/SyncGetFrameworkAudit.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditName; +import com.google.cloud.cloudsecuritycompliance.v1.GetFrameworkAuditRequest; + +public class SyncGetFrameworkAudit { + + public static void main(String[] args) throws Exception { + syncGetFrameworkAudit(); + } + + public static void syncGetFrameworkAudit() 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 (AuditClient auditClient = AuditClient.create()) { + GetFrameworkAuditRequest request = + GetFrameworkAuditRequest.newBuilder() + .setName( + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString()) + .build(); + FrameworkAudit response = auditClient.getFrameworkAudit(request); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/SyncGetFrameworkAuditFrameworkauditname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/SyncGetFrameworkAuditFrameworkauditname.java new file mode 100644 index 000000000000..852c3a3a413c --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/SyncGetFrameworkAuditFrameworkauditname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_Frameworkauditname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditName; + +public class SyncGetFrameworkAuditFrameworkauditname { + + public static void main(String[] args) throws Exception { + syncGetFrameworkAuditFrameworkauditname(); + } + + public static void syncGetFrameworkAuditFrameworkauditname() 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 (AuditClient auditClient = AuditClient.create()) { + FrameworkAuditName name = + FrameworkAuditName.ofOrganizationLocationFrameworkAuditName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_AUDIT]"); + FrameworkAudit response = auditClient.getFrameworkAudit(name); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_Frameworkauditname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/SyncGetFrameworkAuditString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/SyncGetFrameworkAuditString.java new file mode 100644 index 000000000000..1c396220f1c9 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getframeworkaudit/SyncGetFrameworkAuditString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_String_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAuditName; + +public class SyncGetFrameworkAuditString { + + public static void main(String[] args) throws Exception { + syncGetFrameworkAuditString(); + } + + public static void syncGetFrameworkAuditString() 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 (AuditClient auditClient = AuditClient.create()) { + String name = + FrameworkAuditName.ofProjectLocationFrameworkAuditName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_AUDIT]") + .toString(); + FrameworkAudit response = auditClient.getFrameworkAudit(name); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_String_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getlocation/AsyncGetLocation.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..3f425ca5c583 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (AuditClient auditClient = AuditClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = auditClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GetLocation_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getlocation/SyncGetLocation.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..606f12142a73 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_GetLocation_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (AuditClient auditClient = AuditClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = auditClient.getLocation(request); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_GetLocation_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/AsyncListFrameworkAudits.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/AsyncListFrameworkAudits.java new file mode 100644 index 000000000000..1bd03af6a645 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/AsyncListFrameworkAudits.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class AsyncListFrameworkAudits { + + public static void main(String[] args) throws Exception { + asyncListFrameworkAudits(); + } + + public static void asyncListFrameworkAudits() 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 (AuditClient auditClient = AuditClient.create()) { + ListFrameworkAuditsRequest request = + ListFrameworkAuditsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + auditClient.listFrameworkAuditsPagedCallable().futureCall(request); + // Do something. + for (FrameworkAudit element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/AsyncListFrameworkAuditsPaged.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/AsyncListFrameworkAuditsPaged.java new file mode 100644 index 000000000000..cc128826a3d4 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/AsyncListFrameworkAuditsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_Paged_async] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListFrameworkAuditsPaged { + + public static void main(String[] args) throws Exception { + asyncListFrameworkAuditsPaged(); + } + + public static void asyncListFrameworkAuditsPaged() 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 (AuditClient auditClient = AuditClient.create()) { + ListFrameworkAuditsRequest request = + ListFrameworkAuditsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListFrameworkAuditsResponse response = + auditClient.listFrameworkAuditsCallable().call(request); + for (FrameworkAudit element : response.getFrameworkAuditsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_Paged_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAudits.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAudits.java new file mode 100644 index 000000000000..b421e5f898da --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAudits.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsRequest; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncListFrameworkAudits { + + public static void main(String[] args) throws Exception { + syncListFrameworkAudits(); + } + + public static void syncListFrameworkAudits() 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 (AuditClient auditClient = AuditClient.create()) { + ListFrameworkAuditsRequest request = + ListFrameworkAuditsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (FrameworkAudit element : auditClient.listFrameworkAudits(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAuditsLocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAuditsLocationname.java new file mode 100644 index 000000000000..e3463ec4fa50 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAuditsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_Locationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncListFrameworkAuditsLocationname { + + public static void main(String[] args) throws Exception { + syncListFrameworkAuditsLocationname(); + } + + public static void syncListFrameworkAuditsLocationname() 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 (AuditClient auditClient = AuditClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (FrameworkAudit element : auditClient.listFrameworkAudits(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_Locationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAuditsOrganizationlocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAuditsOrganizationlocationname.java new file mode 100644 index 000000000000..7bf6b540551c --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAuditsOrganizationlocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_Organizationlocationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.OrganizationLocationName; + +public class SyncListFrameworkAuditsOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListFrameworkAuditsOrganizationlocationname(); + } + + public static void syncListFrameworkAuditsOrganizationlocationname() 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 (AuditClient auditClient = AuditClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (FrameworkAudit element : auditClient.listFrameworkAudits(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_Organizationlocationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAuditsString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAuditsString.java new file mode 100644 index 000000000000..0cb2a4633c5b --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listframeworkaudits/SyncListFrameworkAuditsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_String_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkAudit; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncListFrameworkAuditsString { + + public static void main(String[] args) throws Exception { + syncListFrameworkAuditsString(); + } + + public static void syncListFrameworkAuditsString() 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 (AuditClient auditClient = AuditClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (FrameworkAudit element : auditClient.listFrameworkAudits(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_String_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listlocations/AsyncListLocations.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..9c2ea527945c --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listlocations/AsyncListLocations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (AuditClient auditClient = AuditClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = auditClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListLocations_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listlocations/AsyncListLocationsPaged.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..70c84feae3a0 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_ListLocations_Paged_async] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (AuditClient auditClient = AuditClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = auditClient.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; + } + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListLocations_Paged_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listlocations/SyncListLocations.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..8e2334ea6498 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/audit/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Audit_ListLocations_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (AuditClient auditClient = AuditClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : auditClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Audit_ListLocations_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/auditsettings/createframeworkaudit/SyncCreateFrameworkAudit.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/auditsettings/createframeworkaudit/SyncCreateFrameworkAudit.java new file mode 100644 index 000000000000..3621a99b9a29 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/auditsettings/createframeworkaudit/SyncCreateFrameworkAudit.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_AuditSettings_CreateFrameworkAudit_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.cloudsecuritycompliance.v1.AuditSettings; +import java.time.Duration; + +public class SyncCreateFrameworkAudit { + + public static void main(String[] args) throws Exception { + syncCreateFrameworkAudit(); + } + + public static void syncCreateFrameworkAudit() 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 + AuditSettings.Builder auditSettingsBuilder = AuditSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + auditSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END cloudsecuritycompliance_v1_generated_AuditSettings_CreateFrameworkAudit_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/auditsettings/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/auditsettings/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReport.java new file mode 100644 index 000000000000..b986bb81553e --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/auditsettings/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReport.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_AuditSettings_GenerateFrameworkAuditScopeReport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AuditSettings; +import java.time.Duration; + +public class SyncGenerateFrameworkAuditScopeReport { + + public static void main(String[] args) throws Exception { + syncGenerateFrameworkAuditScopeReport(); + } + + public static void syncGenerateFrameworkAuditScopeReport() 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 + AuditSettings.Builder auditSettingsBuilder = AuditSettings.newBuilder(); + auditSettingsBuilder + .generateFrameworkAuditScopeReportSettings() + .setRetrySettings( + auditSettingsBuilder + .generateFrameworkAuditScopeReportSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AuditSettings auditSettings = auditSettingsBuilder.build(); + } +} +// [END cloudsecuritycompliance_v1_generated_AuditSettings_GenerateFrameworkAuditScopeReport_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/AsyncCalculateEffectiveCmEnrollment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/AsyncCalculateEffectiveCmEnrollment.java new file mode 100644 index 000000000000..70b78bb1e7b1 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/AsyncCalculateEffectiveCmEnrollment.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentName; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; + +public class AsyncCalculateEffectiveCmEnrollment { + + public static void main(String[] args) throws Exception { + asyncCalculateEffectiveCmEnrollment(); + } + + public static void asyncCalculateEffectiveCmEnrollment() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + CalculateEffectiveCmEnrollmentRequest request = + CalculateEffectiveCmEnrollmentRequest.newBuilder() + .setName( + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]") + .toString()) + .build(); + ApiFuture future = + cmEnrollmentServiceClient.calculateEffectiveCmEnrollmentCallable().futureCall(request); + // Do something. + CalculateEffectiveCmEnrollmentResponse response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/SyncCalculateEffectiveCmEnrollment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/SyncCalculateEffectiveCmEnrollment.java new file mode 100644 index 000000000000..a680d8d22da2 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/SyncCalculateEffectiveCmEnrollment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentRequest; +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentName; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; + +public class SyncCalculateEffectiveCmEnrollment { + + public static void main(String[] args) throws Exception { + syncCalculateEffectiveCmEnrollment(); + } + + public static void syncCalculateEffectiveCmEnrollment() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + CalculateEffectiveCmEnrollmentRequest request = + CalculateEffectiveCmEnrollmentRequest.newBuilder() + .setName( + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]") + .toString()) + .build(); + CalculateEffectiveCmEnrollmentResponse response = + cmEnrollmentServiceClient.calculateEffectiveCmEnrollment(request); + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/SyncCalculateEffectiveCmEnrollmentCmenrollmentname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/SyncCalculateEffectiveCmEnrollmentCmenrollmentname.java new file mode 100644 index 000000000000..ad1136632722 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/SyncCalculateEffectiveCmEnrollmentCmenrollmentname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_Cmenrollmentname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentName; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; + +public class SyncCalculateEffectiveCmEnrollmentCmenrollmentname { + + public static void main(String[] args) throws Exception { + syncCalculateEffectiveCmEnrollmentCmenrollmentname(); + } + + public static void syncCalculateEffectiveCmEnrollmentCmenrollmentname() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + CmEnrollmentName name = + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]"); + CalculateEffectiveCmEnrollmentResponse response = + cmEnrollmentServiceClient.calculateEffectiveCmEnrollment(name); + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_Cmenrollmentname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/SyncCalculateEffectiveCmEnrollmentString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/SyncCalculateEffectiveCmEnrollmentString.java new file mode 100644 index 000000000000..140cc46449eb --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/calculateeffectivecmenrollment/SyncCalculateEffectiveCmEnrollmentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_String_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentName; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; + +public class SyncCalculateEffectiveCmEnrollmentString { + + public static void main(String[] args) throws Exception { + syncCalculateEffectiveCmEnrollmentString(); + } + + public static void syncCalculateEffectiveCmEnrollmentString() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + String name = + CmEnrollmentName.ofOrganizationLocationName("[ORGANIZATION]", "[LOCATION]").toString(); + CalculateEffectiveCmEnrollmentResponse response = + cmEnrollmentServiceClient.calculateEffectiveCmEnrollment(name); + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_String_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/create/SyncCreateSetCredentialsProvider.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..5e8f51fd059a --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceSettings; +import com.google.cloud.cloudsecuritycompliance.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + CmEnrollmentServiceSettings cmEnrollmentServiceSettings = + CmEnrollmentServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CmEnrollmentServiceClient cmEnrollmentServiceClient = + CmEnrollmentServiceClient.create(cmEnrollmentServiceSettings); + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_Create_SetCredentialsProvider_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/create/SyncCreateSetEndpoint.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..19e7edf65034 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_Create_SetEndpoint_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceSettings; +import com.google.cloud.cloudsecuritycompliance.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + CmEnrollmentServiceSettings cmEnrollmentServiceSettings = + CmEnrollmentServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CmEnrollmentServiceClient cmEnrollmentServiceClient = + CmEnrollmentServiceClient.create(cmEnrollmentServiceSettings); + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_Create_SetEndpoint_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/create/SyncCreateUseHttpJsonTransport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..766903abcf4b --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + CmEnrollmentServiceSettings cmEnrollmentServiceSettings = + CmEnrollmentServiceSettings.newHttpJsonBuilder().build(); + CmEnrollmentServiceClient cmEnrollmentServiceClient = + CmEnrollmentServiceClient.create(cmEnrollmentServiceSettings); + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/getlocation/AsyncGetLocation.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..da9a216324d8 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + cmEnrollmentServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_GetLocation_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/getlocation/SyncGetLocation.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..cc3f0d1fe8f2 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_GetLocation_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = cmEnrollmentServiceClient.getLocation(request); + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_GetLocation_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/listlocations/AsyncListLocations.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..7694a1db4f72 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cmEnrollmentServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_ListLocations_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/listlocations/AsyncListLocationsPaged.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..d014a3452fb1 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_ListLocations_Paged_async] +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + cmEnrollmentServiceClient.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; + } + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_ListLocations_Paged_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/listlocations/SyncListLocations.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..5ce65de4946e --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_ListLocations_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : cmEnrollmentServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_ListLocations_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/updatecmenrollment/AsyncUpdateCmEnrollment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/updatecmenrollment/AsyncUpdateCmEnrollment.java new file mode 100644 index 000000000000..2303266a8823 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/updatecmenrollment/AsyncUpdateCmEnrollment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_UpdateCmEnrollment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCmEnrollment { + + public static void main(String[] args) throws Exception { + asyncUpdateCmEnrollment(); + } + + public static void asyncUpdateCmEnrollment() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + UpdateCmEnrollmentRequest request = + UpdateCmEnrollmentRequest.newBuilder() + .setCmEnrollment(CmEnrollment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + cmEnrollmentServiceClient.updateCmEnrollmentCallable().futureCall(request); + // Do something. + CmEnrollment response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_UpdateCmEnrollment_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/updatecmenrollment/SyncUpdateCmEnrollment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/updatecmenrollment/SyncUpdateCmEnrollment.java new file mode 100644 index 000000000000..6932b53c1e8e --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/updatecmenrollment/SyncUpdateCmEnrollment.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_UpdateCmEnrollment_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.cloud.cloudsecuritycompliance.v1.UpdateCmEnrollmentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCmEnrollment { + + public static void main(String[] args) throws Exception { + syncUpdateCmEnrollment(); + } + + public static void syncUpdateCmEnrollment() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + UpdateCmEnrollmentRequest request = + UpdateCmEnrollmentRequest.newBuilder() + .setCmEnrollment(CmEnrollment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CmEnrollment response = cmEnrollmentServiceClient.updateCmEnrollment(request); + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_UpdateCmEnrollment_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/updatecmenrollment/SyncUpdateCmEnrollmentCmenrollmentFieldmask.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/updatecmenrollment/SyncUpdateCmEnrollmentCmenrollmentFieldmask.java new file mode 100644 index 000000000000..a5e8a47bf2c7 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservice/updatecmenrollment/SyncUpdateCmEnrollmentCmenrollmentFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentService_UpdateCmEnrollment_CmenrollmentFieldmask_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollment; +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCmEnrollmentCmenrollmentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCmEnrollmentCmenrollmentFieldmask(); + } + + public static void syncUpdateCmEnrollmentCmenrollmentFieldmask() 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 (CmEnrollmentServiceClient cmEnrollmentServiceClient = CmEnrollmentServiceClient.create()) { + CmEnrollment cmEnrollment = CmEnrollment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CmEnrollment response = + cmEnrollmentServiceClient.updateCmEnrollment(cmEnrollment, updateMask); + } + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentService_UpdateCmEnrollment_CmenrollmentFieldmask_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservicesettings/updatecmenrollment/SyncUpdateCmEnrollment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservicesettings/updatecmenrollment/SyncUpdateCmEnrollment.java new file mode 100644 index 000000000000..745d1e278047 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/cmenrollmentservicesettings/updatecmenrollment/SyncUpdateCmEnrollment.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentServiceSettings_UpdateCmEnrollment_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceSettings; +import java.time.Duration; + +public class SyncUpdateCmEnrollment { + + public static void main(String[] args) throws Exception { + syncUpdateCmEnrollment(); + } + + public static void syncUpdateCmEnrollment() 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 + CmEnrollmentServiceSettings.Builder cmEnrollmentServiceSettingsBuilder = + CmEnrollmentServiceSettings.newBuilder(); + cmEnrollmentServiceSettingsBuilder + .updateCmEnrollmentSettings() + .setRetrySettings( + cmEnrollmentServiceSettingsBuilder + .updateCmEnrollmentSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CmEnrollmentServiceSettings cmEnrollmentServiceSettings = + cmEnrollmentServiceSettingsBuilder.build(); + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentServiceSettings_UpdateCmEnrollment_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/AsyncGetCloudControl.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/AsyncGetCloudControl.java index 6a63cf888ed8..676f060e076e 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/AsyncGetCloudControl.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/AsyncGetCloudControl.java @@ -40,6 +40,7 @@ public static void asyncGetCloudControl() throws Exception { GetCloudControlRequest.newBuilder() .setName( CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + .setMajorRevisionId(612576889) .build(); ApiFuture future = configClient.getCloudControlCallable().futureCall(request); // Do something. diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControl.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControl.java index 24af4f8bf447..44e4e166d3b9 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControl.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControl.java @@ -39,6 +39,7 @@ public static void syncGetCloudControl() throws Exception { GetCloudControlRequest.newBuilder() .setName( CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + .setMajorRevisionId(612576889) .build(); CloudControl response = configClient.getCloudControl(request); } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/AsyncAggregateFrameworkComplianceReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/AsyncAggregateFrameworkComplianceReport.java new file mode 100644 index 000000000000..6433f56a19dd --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/AsyncAggregateFrameworkComplianceReport.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.type.Interval; + +public class AsyncAggregateFrameworkComplianceReport { + + public static void main(String[] args) throws Exception { + asyncAggregateFrameworkComplianceReport(); + } + + public static void asyncAggregateFrameworkComplianceReport() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + AggregateFrameworkComplianceReportRequest request = + AggregateFrameworkComplianceReportRequest.newBuilder() + .setName( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setInterval(Interval.newBuilder().build()) + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + monitoringClient.aggregateFrameworkComplianceReportCallable().futureCall(request); + // Do something. + AggregateFrameworkComplianceReportResponse response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/SyncAggregateFrameworkComplianceReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/SyncAggregateFrameworkComplianceReport.java new file mode 100644 index 000000000000..1abbd622002b --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/SyncAggregateFrameworkComplianceReport.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.type.Interval; + +public class SyncAggregateFrameworkComplianceReport { + + public static void main(String[] args) throws Exception { + syncAggregateFrameworkComplianceReport(); + } + + public static void syncAggregateFrameworkComplianceReport() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + AggregateFrameworkComplianceReportRequest request = + AggregateFrameworkComplianceReportRequest.newBuilder() + .setName( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setInterval(Interval.newBuilder().build()) + .setFilter("filter-1274492040") + .build(); + AggregateFrameworkComplianceReportResponse response = + monitoringClient.aggregateFrameworkComplianceReport(request); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/SyncAggregateFrameworkComplianceReportFrameworkcompliancereportname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/SyncAggregateFrameworkComplianceReportFrameworkcompliancereportname.java new file mode 100644 index 000000000000..e6031ba75e23 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/SyncAggregateFrameworkComplianceReportFrameworkcompliancereportname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_Frameworkcompliancereportname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncAggregateFrameworkComplianceReportFrameworkcompliancereportname { + + public static void main(String[] args) throws Exception { + syncAggregateFrameworkComplianceReportFrameworkcompliancereportname(); + } + + public static void syncAggregateFrameworkComplianceReportFrameworkcompliancereportname() + 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + AggregateFrameworkComplianceReportResponse response = + monitoringClient.aggregateFrameworkComplianceReport(name); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_Frameworkcompliancereportname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/SyncAggregateFrameworkComplianceReportString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/SyncAggregateFrameworkComplianceReportString.java new file mode 100644 index 000000000000..53feb944d26c --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/aggregateframeworkcompliancereport/SyncAggregateFrameworkComplianceReportString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_String_sync] +import com.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncAggregateFrameworkComplianceReportString { + + public static void main(String[] args) throws Exception { + syncAggregateFrameworkComplianceReportString(); + } + + public static void syncAggregateFrameworkComplianceReportString() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + String name = + FrameworkComplianceReportName.ofProjectLocationFrameworkComplianceReportName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString(); + AggregateFrameworkComplianceReportResponse response = + monitoringClient.aggregateFrameworkComplianceReport(name); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_String_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/create/SyncCreateSetCredentialsProvider.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..ce97d83621e2 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringSettings; +import com.google.cloud.cloudsecuritycompliance.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + MonitoringSettings monitoringSettings = + MonitoringSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + MonitoringClient monitoringClient = MonitoringClient.create(monitoringSettings); + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_Create_SetCredentialsProvider_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/create/SyncCreateSetEndpoint.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..54ce01cf9099 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_Create_SetEndpoint_sync] +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringSettings; +import com.google.cloud.cloudsecuritycompliance.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + MonitoringSettings monitoringSettings = + MonitoringSettings.newBuilder().setEndpoint(myEndpoint).build(); + MonitoringClient monitoringClient = MonitoringClient.create(monitoringSettings); + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_Create_SetEndpoint_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/create/SyncCreateUseHttpJsonTransport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..d621598a48e5 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_Create_UseHttpJsonTransport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + MonitoringSettings monitoringSettings = MonitoringSettings.newHttpJsonBuilder().build(); + MonitoringClient monitoringClient = MonitoringClient.create(monitoringSettings); + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_Create_UseHttpJsonTransport_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/AsyncFetchFrameworkComplianceReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/AsyncFetchFrameworkComplianceReport.java new file mode 100644 index 000000000000..c8da30ff9ff9 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/AsyncFetchFrameworkComplianceReport.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.protobuf.Timestamp; + +public class AsyncFetchFrameworkComplianceReport { + + public static void main(String[] args) throws Exception { + asyncFetchFrameworkComplianceReport(); + } + + public static void asyncFetchFrameworkComplianceReport() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + FetchFrameworkComplianceReportRequest request = + FetchFrameworkComplianceReportRequest.newBuilder() + .setName( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + monitoringClient.fetchFrameworkComplianceReportCallable().futureCall(request); + // Do something. + FrameworkComplianceReport response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java new file mode 100644 index 000000000000..196e042e4196 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.protobuf.Timestamp; + +public class SyncFetchFrameworkComplianceReport { + + public static void main(String[] args) throws Exception { + syncFetchFrameworkComplianceReport(); + } + + public static void syncFetchFrameworkComplianceReport() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + FetchFrameworkComplianceReportRequest request = + FetchFrameworkComplianceReportRequest.newBuilder() + .setName( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(request); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReportFrameworkcompliancereportname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReportFrameworkcompliancereportname.java new file mode 100644 index 000000000000..2ad955c1dca3 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReportFrameworkcompliancereportname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_Frameworkcompliancereportname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncFetchFrameworkComplianceReportFrameworkcompliancereportname { + + public static void main(String[] args) throws Exception { + syncFetchFrameworkComplianceReportFrameworkcompliancereportname(); + } + + public static void syncFetchFrameworkComplianceReportFrameworkcompliancereportname() + 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + FrameworkComplianceReportName name = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(name); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_Frameworkcompliancereportname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReportString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReportString.java new file mode 100644 index 000000000000..f0a65e073f3a --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReportString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_String_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncFetchFrameworkComplianceReportString { + + public static void main(String[] args) throws Exception { + syncFetchFrameworkComplianceReportString(); + } + + public static void syncFetchFrameworkComplianceReportString() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + String name = + FrameworkComplianceReportName.ofProjectLocationFrameworkComplianceReportName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString(); + FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(name); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_String_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/getlocation/AsyncGetLocation.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..37fac75c2d74 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = monitoringClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_GetLocation_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/getlocation/SyncGetLocation.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..ce5fa56a4a75 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_GetLocation_sync] +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = monitoringClient.getLocation(request); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_GetLocation_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/AsyncListControlComplianceSummaries.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/AsyncListControlComplianceSummaries.java new file mode 100644 index 000000000000..9785d9f321e4 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/AsyncListControlComplianceSummaries.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.protobuf.Timestamp; + +public class AsyncListControlComplianceSummaries { + + public static void main(String[] args) throws Exception { + asyncListControlComplianceSummaries(); + } + + public static void asyncListControlComplianceSummaries() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListControlComplianceSummariesRequest request = + ListControlComplianceSummariesRequest.newBuilder() + .setParent( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setEndTime(Timestamp.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + monitoringClient.listControlComplianceSummariesPagedCallable().futureCall(request); + // Do something. + for (ControlComplianceSummary element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/AsyncListControlComplianceSummariesPaged.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/AsyncListControlComplianceSummariesPaged.java new file mode 100644 index 000000000000..0588319cf7c8 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/AsyncListControlComplianceSummariesPaged.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_Paged_async] +import com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.common.base.Strings; +import com.google.protobuf.Timestamp; + +public class AsyncListControlComplianceSummariesPaged { + + public static void main(String[] args) throws Exception { + asyncListControlComplianceSummariesPaged(); + } + + public static void asyncListControlComplianceSummariesPaged() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListControlComplianceSummariesRequest request = + ListControlComplianceSummariesRequest.newBuilder() + .setParent( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setEndTime(Timestamp.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListControlComplianceSummariesResponse response = + monitoringClient.listControlComplianceSummariesCallable().call(request); + for (ControlComplianceSummary element : response.getControlComplianceSummariesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_Paged_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/SyncListControlComplianceSummaries.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/SyncListControlComplianceSummaries.java new file mode 100644 index 000000000000..82c87adfb9df --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/SyncListControlComplianceSummaries.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_sync] +import com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.protobuf.Timestamp; + +public class SyncListControlComplianceSummaries { + + public static void main(String[] args) throws Exception { + syncListControlComplianceSummaries(); + } + + public static void syncListControlComplianceSummaries() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListControlComplianceSummariesRequest request = + ListControlComplianceSummariesRequest.newBuilder() + .setParent( + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString()) + .setEndTime(Timestamp.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (ControlComplianceSummary element : + monitoringClient.listControlComplianceSummaries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/SyncListControlComplianceSummariesFrameworkcompliancereportname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/SyncListControlComplianceSummariesFrameworkcompliancereportname.java new file mode 100644 index 000000000000..1201170eebc6 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/SyncListControlComplianceSummariesFrameworkcompliancereportname.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_Frameworkcompliancereportname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncListControlComplianceSummariesFrameworkcompliancereportname { + + public static void main(String[] args) throws Exception { + syncListControlComplianceSummariesFrameworkcompliancereportname(); + } + + public static void syncListControlComplianceSummariesFrameworkcompliancereportname() + 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + FrameworkComplianceReportName parent = + FrameworkComplianceReportName.ofOrganizationLocationFrameworkComplianceReportName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"); + for (ControlComplianceSummary element : + monitoringClient.listControlComplianceSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_Frameworkcompliancereportname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/SyncListControlComplianceSummariesString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/SyncListControlComplianceSummariesString.java new file mode 100644 index 000000000000..a3a57579c135 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listcontrolcompliancesummaries/SyncListControlComplianceSummariesString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_String_sync] +import com.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReportName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncListControlComplianceSummariesString { + + public static void main(String[] args) throws Exception { + syncListControlComplianceSummariesString(); + } + + public static void syncListControlComplianceSummariesString() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + String parent = + FrameworkComplianceReportName.ofProjectLocationFrameworkComplianceReportName( + "[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") + .toString(); + for (ControlComplianceSummary element : + monitoringClient.listControlComplianceSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_String_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/AsyncListFindingSummaries.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/AsyncListFindingSummaries.java new file mode 100644 index 000000000000..15e6fde9f380 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/AsyncListFindingSummaries.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.FindingSummary; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.protobuf.Timestamp; + +public class AsyncListFindingSummaries { + + public static void main(String[] args) throws Exception { + asyncListFindingSummaries(); + } + + public static void asyncListFindingSummaries() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListFindingSummariesRequest request = + ListFindingSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setEndTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + monitoringClient.listFindingSummariesPagedCallable().futureCall(request); + // Do something. + for (FindingSummary element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/AsyncListFindingSummariesPaged.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/AsyncListFindingSummariesPaged.java new file mode 100644 index 000000000000..64db1e412bd9 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/AsyncListFindingSummariesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_Paged_async] +import com.google.cloud.cloudsecuritycompliance.v1.FindingSummary; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.common.base.Strings; +import com.google.protobuf.Timestamp; + +public class AsyncListFindingSummariesPaged { + + public static void main(String[] args) throws Exception { + asyncListFindingSummariesPaged(); + } + + public static void asyncListFindingSummariesPaged() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListFindingSummariesRequest request = + ListFindingSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setEndTime(Timestamp.newBuilder().build()) + .build(); + while (true) { + ListFindingSummariesResponse response = + monitoringClient.listFindingSummariesCallable().call(request); + for (FindingSummary element : response.getFindingSummariesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_Paged_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummaries.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummaries.java new file mode 100644 index 000000000000..857573ff5f26 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummaries.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FindingSummary; +import com.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.protobuf.Timestamp; + +public class SyncListFindingSummaries { + + public static void main(String[] args) throws Exception { + syncListFindingSummaries(); + } + + public static void syncListFindingSummaries() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListFindingSummariesRequest request = + ListFindingSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setEndTime(Timestamp.newBuilder().build()) + .build(); + for (FindingSummary element : monitoringClient.listFindingSummaries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesFolderlocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesFolderlocationname.java new file mode 100644 index 000000000000..34b51a949929 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesFolderlocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_Folderlocationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FindingSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FolderLocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncListFindingSummariesFolderlocationname { + + public static void main(String[] args) throws Exception { + syncListFindingSummariesFolderlocationname(); + } + + public static void syncListFindingSummariesFolderlocationname() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + for (FindingSummary element : monitoringClient.listFindingSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_Folderlocationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesLocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesLocationname.java new file mode 100644 index 000000000000..dda887771b2c --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_Locationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FindingSummary; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncListFindingSummariesLocationname { + + public static void main(String[] args) throws Exception { + syncListFindingSummariesLocationname(); + } + + public static void syncListFindingSummariesLocationname() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (FindingSummary element : monitoringClient.listFindingSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_Locationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesOrganizationlocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesOrganizationlocationname.java new file mode 100644 index 000000000000..37daa0101514 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesOrganizationlocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_Organizationlocationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FindingSummary; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.cloudsecuritycompliance.v1.OrganizationLocationName; + +public class SyncListFindingSummariesOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListFindingSummariesOrganizationlocationname(); + } + + public static void syncListFindingSummariesOrganizationlocationname() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (FindingSummary element : monitoringClient.listFindingSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_Organizationlocationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesString.java new file mode 100644 index 000000000000..94c9fb4f28b7 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listfindingsummaries/SyncListFindingSummariesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_String_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FindingSummary; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncListFindingSummariesString { + + public static void main(String[] args) throws Exception { + syncListFindingSummariesString(); + } + + public static void syncListFindingSummariesString() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (FindingSummary element : monitoringClient.listFindingSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_String_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummaries.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummaries.java new file mode 100644 index 000000000000..513f044f8a1a --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummaries.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class AsyncListFrameworkComplianceSummaries { + + public static void main(String[] args) throws Exception { + asyncListFrameworkComplianceSummaries(); + } + + public static void asyncListFrameworkComplianceSummaries() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListFrameworkComplianceSummariesRequest request = + ListFrameworkComplianceSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + monitoringClient.listFrameworkComplianceSummariesPagedCallable().futureCall(request); + // Do something. + for (FrameworkComplianceSummary element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummariesPaged.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummariesPaged.java new file mode 100644 index 000000000000..76297162adf2 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummariesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_Paged_async] +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.common.base.Strings; + +public class AsyncListFrameworkComplianceSummariesPaged { + + public static void main(String[] args) throws Exception { + asyncListFrameworkComplianceSummariesPaged(); + } + + public static void asyncListFrameworkComplianceSummariesPaged() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListFrameworkComplianceSummariesRequest request = + ListFrameworkComplianceSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListFrameworkComplianceSummariesResponse response = + monitoringClient.listFrameworkComplianceSummariesCallable().call(request); + for (FrameworkComplianceSummary element : response.getFrameworkComplianceSummariesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_Paged_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummaries.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummaries.java new file mode 100644 index 000000000000..7ece473be527 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummaries.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncListFrameworkComplianceSummaries { + + public static void main(String[] args) throws Exception { + syncListFrameworkComplianceSummaries(); + } + + public static void syncListFrameworkComplianceSummaries() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListFrameworkComplianceSummariesRequest request = + ListFrameworkComplianceSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (FrameworkComplianceSummary element : + monitoringClient.listFrameworkComplianceSummaries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesFolderlocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesFolderlocationname.java new file mode 100644 index 000000000000..4c41b0ff56e8 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesFolderlocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_Folderlocationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FolderLocationName; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncListFrameworkComplianceSummariesFolderlocationname { + + public static void main(String[] args) throws Exception { + syncListFrameworkComplianceSummariesFolderlocationname(); + } + + public static void syncListFrameworkComplianceSummariesFolderlocationname() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + for (FrameworkComplianceSummary element : + monitoringClient.listFrameworkComplianceSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_Folderlocationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesLocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesLocationname.java new file mode 100644 index 000000000000..904e7d006e9e --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_Locationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncListFrameworkComplianceSummariesLocationname { + + public static void main(String[] args) throws Exception { + syncListFrameworkComplianceSummariesLocationname(); + } + + public static void syncListFrameworkComplianceSummariesLocationname() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (FrameworkComplianceSummary element : + monitoringClient.listFrameworkComplianceSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_Locationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesOrganizationlocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesOrganizationlocationname.java new file mode 100644 index 000000000000..ce9913f79e6e --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesOrganizationlocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_Organizationlocationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.cloudsecuritycompliance.v1.OrganizationLocationName; + +public class SyncListFrameworkComplianceSummariesOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListFrameworkComplianceSummariesOrganizationlocationname(); + } + + public static void syncListFrameworkComplianceSummariesOrganizationlocationname() + 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (FrameworkComplianceSummary element : + monitoringClient.listFrameworkComplianceSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_Organizationlocationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesString.java new file mode 100644 index 000000000000..495294392fcb --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummariesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_String_sync] +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; + +public class SyncListFrameworkComplianceSummariesString { + + public static void main(String[] args) throws Exception { + syncListFrameworkComplianceSummariesString(); + } + + public static void syncListFrameworkComplianceSummariesString() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (FrameworkComplianceSummary element : + monitoringClient.listFrameworkComplianceSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_String_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listlocations/AsyncListLocations.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..7960740fc9de --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + monitoringClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListLocations_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listlocations/AsyncListLocationsPaged.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..42d028939ddb --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListLocations_Paged_async] +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = monitoringClient.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; + } + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListLocations_Paged_async] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listlocations/SyncListLocations.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..887c583286b1 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Monitoring_ListLocations_sync] +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (MonitoringClient monitoringClient = MonitoringClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : monitoringClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Monitoring_ListLocations_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoringsettings/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoringsettings/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java new file mode 100644 index 000000000000..a8af2a855e4b --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoringsettings/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_MonitoringSettings_FetchFrameworkComplianceReport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.MonitoringSettings; +import java.time.Duration; + +public class SyncFetchFrameworkComplianceReport { + + public static void main(String[] args) throws Exception { + syncFetchFrameworkComplianceReport(); + } + + public static void syncFetchFrameworkComplianceReport() 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 + MonitoringSettings.Builder monitoringSettingsBuilder = MonitoringSettings.newBuilder(); + monitoringSettingsBuilder + .fetchFrameworkComplianceReportSettings() + .setRetrySettings( + monitoringSettingsBuilder + .fetchFrameworkComplianceReportSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MonitoringSettings monitoringSettings = monitoringSettingsBuilder.build(); + } +} +// [END cloudsecuritycompliance_v1_generated_MonitoringSettings_FetchFrameworkComplianceReport_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/auditstubsettings/createframeworkaudit/SyncCreateFrameworkAudit.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/auditstubsettings/createframeworkaudit/SyncCreateFrameworkAudit.java new file mode 100644 index 000000000000..854933be95b4 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/auditstubsettings/createframeworkaudit/SyncCreateFrameworkAudit.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub.samples; + +// [START cloudsecuritycompliance_v1_generated_AuditStubSettings_CreateFrameworkAudit_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.cloudsecuritycompliance.v1.stub.AuditStubSettings; +import java.time.Duration; + +public class SyncCreateFrameworkAudit { + + public static void main(String[] args) throws Exception { + syncCreateFrameworkAudit(); + } + + public static void syncCreateFrameworkAudit() 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 + AuditStubSettings.Builder auditSettingsBuilder = AuditStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + auditSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END cloudsecuritycompliance_v1_generated_AuditStubSettings_CreateFrameworkAudit_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/auditstubsettings/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/auditstubsettings/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReport.java new file mode 100644 index 000000000000..a9e38709049c --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/auditstubsettings/generateframeworkauditscopereport/SyncGenerateFrameworkAuditScopeReport.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub.samples; + +// [START cloudsecuritycompliance_v1_generated_AuditStubSettings_GenerateFrameworkAuditScopeReport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.stub.AuditStubSettings; +import java.time.Duration; + +public class SyncGenerateFrameworkAuditScopeReport { + + public static void main(String[] args) throws Exception { + syncGenerateFrameworkAuditScopeReport(); + } + + public static void syncGenerateFrameworkAuditScopeReport() 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 + AuditStubSettings.Builder auditSettingsBuilder = AuditStubSettings.newBuilder(); + auditSettingsBuilder + .generateFrameworkAuditScopeReportSettings() + .setRetrySettings( + auditSettingsBuilder + .generateFrameworkAuditScopeReportSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AuditStubSettings auditSettings = auditSettingsBuilder.build(); + } +} +// [END cloudsecuritycompliance_v1_generated_AuditStubSettings_GenerateFrameworkAuditScopeReport_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/cmenrollmentservicestubsettings/updatecmenrollment/SyncUpdateCmEnrollment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/cmenrollmentservicestubsettings/updatecmenrollment/SyncUpdateCmEnrollment.java new file mode 100644 index 000000000000..8a8466f9797a --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/cmenrollmentservicestubsettings/updatecmenrollment/SyncUpdateCmEnrollment.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub.samples; + +// [START cloudsecuritycompliance_v1_generated_CmEnrollmentServiceStubSettings_UpdateCmEnrollment_sync] +import com.google.cloud.cloudsecuritycompliance.v1.stub.CmEnrollmentServiceStubSettings; +import java.time.Duration; + +public class SyncUpdateCmEnrollment { + + public static void main(String[] args) throws Exception { + syncUpdateCmEnrollment(); + } + + public static void syncUpdateCmEnrollment() 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 + CmEnrollmentServiceStubSettings.Builder cmEnrollmentServiceSettingsBuilder = + CmEnrollmentServiceStubSettings.newBuilder(); + cmEnrollmentServiceSettingsBuilder + .updateCmEnrollmentSettings() + .setRetrySettings( + cmEnrollmentServiceSettingsBuilder + .updateCmEnrollmentSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CmEnrollmentServiceStubSettings cmEnrollmentServiceSettings = + cmEnrollmentServiceSettingsBuilder.build(); + } +} +// [END cloudsecuritycompliance_v1_generated_CmEnrollmentServiceStubSettings_UpdateCmEnrollment_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/monitoringstubsettings/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/monitoringstubsettings/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java new file mode 100644 index 000000000000..9ae31c45f6ac --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/stub/monitoringstubsettings/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.cloudsecuritycompliance.v1.stub.samples; + +// [START cloudsecuritycompliance_v1_generated_MonitoringStubSettings_FetchFrameworkComplianceReport_sync] +import com.google.cloud.cloudsecuritycompliance.v1.stub.MonitoringStubSettings; +import java.time.Duration; + +public class SyncFetchFrameworkComplianceReport { + + public static void main(String[] args) throws Exception { + syncFetchFrameworkComplianceReport(); + } + + public static void syncFetchFrameworkComplianceReport() 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 + MonitoringStubSettings.Builder monitoringSettingsBuilder = MonitoringStubSettings.newBuilder(); + monitoringSettingsBuilder + .fetchFrameworkComplianceReportSettings() + .setRetrySettings( + monitoringSettingsBuilder + .fetchFrameworkComplianceReportSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MonitoringStubSettings monitoringSettings = monitoringSettingsBuilder.build(); + } +} +// [END cloudsecuritycompliance_v1_generated_MonitoringStubSettings_FetchFrameworkComplianceReport_sync] diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 45117eaf381e..62043f08c75b 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.61.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.62.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceGrpc.java b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceGrpc.java index 6ecb438d0ce4..da49e89d5fca 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceGrpc.java +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceGrpc.java @@ -24,9 +24,6 @@ * A service to manage file attachments for Google Cloud support cases. *
                                    */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/support/v2/attachment_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CaseAttachmentServiceGrpc { @@ -244,8 +241,8 @@ protected CaseAttachmentServiceBlockingV2Stub build( *
                                    */ public com.google.cloud.support.v2.ListAttachmentsResponse listAttachments( - com.google.cloud.support.v2.ListAttachmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.ListAttachmentsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAttachmentsMethod(), getCallOptions(), request); } } diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseServiceGrpc.java b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseServiceGrpc.java index f6b8203edbb6..2dcdeae6c46a 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseServiceGrpc.java +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseServiceGrpc.java @@ -24,9 +24,6 @@ * A service to manage Google Cloud support cases. *
                                    */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/support/v2/case_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CaseServiceGrpc { @@ -771,8 +768,8 @@ protected CaseServiceBlockingV2Stub build( *
                                    */ public com.google.cloud.support.v2.Case getCase( - com.google.cloud.support.v2.GetCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.GetCaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCaseMethod(), getCallOptions(), request); } @@ -787,8 +784,8 @@ public com.google.cloud.support.v2.Case getCase( *
                                    */ public com.google.cloud.support.v2.ListCasesResponse listCases( - com.google.cloud.support.v2.ListCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.ListCasesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCasesMethod(), getCallOptions(), request); } @@ -800,8 +797,8 @@ public com.google.cloud.support.v2.ListCasesResponse listCases( * */ public com.google.cloud.support.v2.SearchCasesResponse searchCases( - com.google.cloud.support.v2.SearchCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.SearchCasesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchCasesMethod(), getCallOptions(), request); } @@ -816,8 +813,8 @@ public com.google.cloud.support.v2.SearchCasesResponse searchCases( * */ public com.google.cloud.support.v2.Case createCase( - com.google.cloud.support.v2.CreateCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.CreateCaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCaseMethod(), getCallOptions(), request); } @@ -829,8 +826,8 @@ public com.google.cloud.support.v2.Case createCase( * */ public com.google.cloud.support.v2.Case updateCase( - com.google.cloud.support.v2.UpdateCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.UpdateCaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCaseMethod(), getCallOptions(), request); } @@ -847,8 +844,8 @@ public com.google.cloud.support.v2.Case updateCase( * */ public com.google.cloud.support.v2.Case escalateCase( - com.google.cloud.support.v2.EscalateCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.EscalateCaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEscalateCaseMethod(), getCallOptions(), request); } @@ -860,8 +857,8 @@ public com.google.cloud.support.v2.Case escalateCase( * */ public com.google.cloud.support.v2.Case closeCase( - com.google.cloud.support.v2.CloseCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.CloseCaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCloseCaseMethod(), getCallOptions(), request); } @@ -880,8 +877,9 @@ public com.google.cloud.support.v2.Case closeCase( * */ public com.google.cloud.support.v2.SearchCaseClassificationsResponse searchCaseClassifications( - com.google.cloud.support.v2.SearchCaseClassificationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.SearchCaseClassificationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchCaseClassificationsMethod(), getCallOptions(), request); } } diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CommentServiceGrpc.java b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CommentServiceGrpc.java index c746ac226615..87057ad05fcc 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CommentServiceGrpc.java +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CommentServiceGrpc.java @@ -24,9 +24,6 @@ * A service to manage comments on cases. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/support/v2/comment_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CommentServiceGrpc { @@ -314,8 +311,8 @@ protected CommentServiceBlockingV2Stub build( * */ public com.google.cloud.support.v2.ListCommentsResponse listComments( - com.google.cloud.support.v2.ListCommentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.ListCommentsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCommentsMethod(), getCallOptions(), request); } @@ -328,8 +325,8 @@ public com.google.cloud.support.v2.ListCommentsResponse listComments( * */ public com.google.cloud.support.v2.Comment createComment( - com.google.cloud.support.v2.CreateCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2.CreateCommentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCommentMethod(), getCallOptions(), request); } } diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceGrpc.java b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceGrpc.java index af1ffd894a04..a57367e0018b 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceGrpc.java +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceGrpc.java @@ -24,9 +24,6 @@ * A service to manage file attachments for Google Cloud support cases. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/support/v2beta/attachment_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CaseAttachmentServiceGrpc { @@ -320,8 +317,9 @@ protected CaseAttachmentServiceBlockingV2Stub build( * */ public com.google.cloud.support.v2beta.ListAttachmentsResponse listAttachments( - com.google.cloud.support.v2beta.ListAttachmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.ListAttachmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAttachmentsMethod(), getCallOptions(), request); } @@ -333,8 +331,9 @@ public com.google.cloud.support.v2beta.ListAttachmentsResponse listAttachments( * */ public com.google.cloud.support.v2beta.Attachment getAttachment( - com.google.cloud.support.v2beta.GetAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.GetAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttachmentMethod(), getCallOptions(), request); } } diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseServiceGrpc.java b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseServiceGrpc.java index 4b2c6692a231..55a1fc7ee349 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseServiceGrpc.java +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseServiceGrpc.java @@ -24,9 +24,6 @@ * A service to manage Google Cloud support cases. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/support/v2beta/case_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CaseServiceGrpc { @@ -782,8 +779,8 @@ protected CaseServiceBlockingV2Stub build( * */ public com.google.cloud.support.v2beta.Case getCase( - com.google.cloud.support.v2beta.GetCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.GetCaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCaseMethod(), getCallOptions(), request); } @@ -798,8 +795,8 @@ public com.google.cloud.support.v2beta.Case getCase( * */ public com.google.cloud.support.v2beta.ListCasesResponse listCases( - com.google.cloud.support.v2beta.ListCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.ListCasesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCasesMethod(), getCallOptions(), request); } @@ -811,8 +808,8 @@ public com.google.cloud.support.v2beta.ListCasesResponse listCases( * */ public com.google.cloud.support.v2beta.SearchCasesResponse searchCases( - com.google.cloud.support.v2beta.SearchCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.SearchCasesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchCasesMethod(), getCallOptions(), request); } @@ -827,8 +824,8 @@ public com.google.cloud.support.v2beta.SearchCasesResponse searchCases( * */ public com.google.cloud.support.v2beta.Case createCase( - com.google.cloud.support.v2beta.CreateCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.CreateCaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCaseMethod(), getCallOptions(), request); } @@ -840,8 +837,8 @@ public com.google.cloud.support.v2beta.Case createCase( * */ public com.google.cloud.support.v2beta.Case updateCase( - com.google.cloud.support.v2beta.UpdateCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.UpdateCaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCaseMethod(), getCallOptions(), request); } @@ -858,8 +855,9 @@ public com.google.cloud.support.v2beta.Case updateCase( * */ public com.google.cloud.support.v2beta.Case escalateCase( - com.google.cloud.support.v2beta.EscalateCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.EscalateCaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEscalateCaseMethod(), getCallOptions(), request); } @@ -871,8 +869,8 @@ public com.google.cloud.support.v2beta.Case escalateCase( * */ public com.google.cloud.support.v2beta.Case closeCase( - com.google.cloud.support.v2beta.CloseCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.CloseCaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCloseCaseMethod(), getCallOptions(), request); } @@ -892,8 +890,9 @@ public com.google.cloud.support.v2beta.Case closeCase( */ public com.google.cloud.support.v2beta.SearchCaseClassificationsResponse searchCaseClassifications( - com.google.cloud.support.v2beta.SearchCaseClassificationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.SearchCaseClassificationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchCaseClassificationsMethod(), getCallOptions(), request); } } diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CommentServiceGrpc.java b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CommentServiceGrpc.java index 058833070cf0..8369e4f34f49 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CommentServiceGrpc.java +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CommentServiceGrpc.java @@ -24,9 +24,6 @@ * A service to manage comments on cases. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/support/v2beta/comment_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CommentServiceGrpc { @@ -390,8 +387,9 @@ protected CommentServiceBlockingV2Stub build( * */ public com.google.cloud.support.v2beta.ListCommentsResponse listComments( - com.google.cloud.support.v2beta.ListCommentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.ListCommentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCommentsMethod(), getCallOptions(), request); } @@ -404,8 +402,9 @@ public com.google.cloud.support.v2beta.ListCommentsResponse listComments( * */ public com.google.cloud.support.v2beta.Comment createComment( - com.google.cloud.support.v2beta.CreateCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.CreateCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCommentMethod(), getCallOptions(), request); } @@ -417,8 +416,8 @@ public com.google.cloud.support.v2beta.Comment createComment( * */ public com.google.cloud.support.v2beta.Comment getComment( - com.google.cloud.support.v2beta.GetCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.GetCommentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCommentMethod(), getCallOptions(), request); } } diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/FeedServiceGrpc.java b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/FeedServiceGrpc.java index e18e1e021660..d5768acfac52 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/FeedServiceGrpc.java +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/FeedServiceGrpc.java @@ -24,9 +24,6 @@ * A service to view case feed items. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/support/v2beta/feed_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FeedServiceGrpc { @@ -237,8 +234,8 @@ protected FeedServiceBlockingV2Stub build( * */ public com.google.cloud.support.v2beta.ShowFeedResponse showFeed( - com.google.cloud.support.v2beta.ShowFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.support.v2beta.ShowFeedRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getShowFeedMethod(), getCallOptions(), request); } } diff --git a/java-compute/README.md b/java-compute/README.md index 36908cea4f8c..1002a302ef89 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.87.0 + 1.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.87.0' +implementation 'com.google.cloud:google-cloud-compute:1.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.88.0" ``` ## Authentication @@ -257,7 +257,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.88.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index b1eb59fa7fe5..09db3bb173d5 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.63.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.63.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.64.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.64.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java index db7c284c7bc5..11724a4b2079 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/confidentialcomputing/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConfidentialComputingGrpc { @@ -507,8 +504,9 @@ protected ConfidentialComputingBlockingV2Stub build( * */ public com.google.cloud.confidentialcomputing.v1.Challenge createChallenge( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateChallengeMethod(), getCallOptions(), request); } @@ -521,8 +519,9 @@ public com.google.cloud.confidentialcomputing.v1.Challenge createChallenge( * */ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verifyAttestation( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); } @@ -536,8 +535,9 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verif */ public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse verifyConfidentialSpace( - com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getVerifyConfidentialSpaceMethod(), getCallOptions(), request); } @@ -551,8 +551,9 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verif */ public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse verifyConfidentialGke( - com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getVerifyConfidentialGkeMethod(), getCallOptions(), request); } } diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java index 65bf31b65777..3b5709307abc 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/confidentialcomputing/v1alpha1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConfidentialComputingGrpc { @@ -328,8 +325,9 @@ protected ConfidentialComputingBlockingV2Stub build( * */ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge createChallenge( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateChallengeMethod(), getCallOptions(), request); } @@ -342,8 +340,9 @@ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge createChallenge */ public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse verifyAttestation( - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); } } diff --git a/java-configdelivery/README.md b/java-configdelivery/README.md index 70d012e56238..fc50a265015b 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.11.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.11.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.12.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.12.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-configdelivery/grpc-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliveryGrpc.java b/java-configdelivery/grpc-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliveryGrpc.java index d7be8fae31eb..6f9c667e6744 100644 --- a/java-configdelivery/grpc-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliveryGrpc.java +++ b/java-configdelivery/grpc-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliveryGrpc.java @@ -25,9 +25,6 @@ * a fleet of kubernetes clusters. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/configdelivery/v1/config_delivery.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConfigDeliveryGrpc { @@ -2075,8 +2072,9 @@ protected ConfigDeliveryBlockingV2Stub build( * */ public com.google.cloud.configdelivery.v1.ListResourceBundlesResponse listResourceBundles( - com.google.cloud.configdelivery.v1.ListResourceBundlesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.ListResourceBundlesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListResourceBundlesMethod(), getCallOptions(), request); } @@ -2088,8 +2086,9 @@ public com.google.cloud.configdelivery.v1.ListResourceBundlesResponse listResour * */ public com.google.cloud.configdelivery.v1.ResourceBundle getResourceBundle( - com.google.cloud.configdelivery.v1.GetResourceBundleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.GetResourceBundleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetResourceBundleMethod(), getCallOptions(), request); } @@ -2101,8 +2100,9 @@ public com.google.cloud.configdelivery.v1.ResourceBundle getResourceBundle( * */ public com.google.longrunning.Operation createResourceBundle( - com.google.cloud.configdelivery.v1.CreateResourceBundleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.CreateResourceBundleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateResourceBundleMethod(), getCallOptions(), request); } @@ -2114,8 +2114,9 @@ public com.google.longrunning.Operation createResourceBundle( * */ public com.google.longrunning.Operation updateResourceBundle( - com.google.cloud.configdelivery.v1.UpdateResourceBundleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.UpdateResourceBundleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateResourceBundleMethod(), getCallOptions(), request); } @@ -2127,8 +2128,9 @@ public com.google.longrunning.Operation updateResourceBundle( * */ public com.google.longrunning.Operation deleteResourceBundle( - com.google.cloud.configdelivery.v1.DeleteResourceBundleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.DeleteResourceBundleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteResourceBundleMethod(), getCallOptions(), request); } @@ -2140,8 +2142,9 @@ public com.google.longrunning.Operation deleteResourceBundle( * */ public com.google.cloud.configdelivery.v1.ListFleetPackagesResponse listFleetPackages( - com.google.cloud.configdelivery.v1.ListFleetPackagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.ListFleetPackagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFleetPackagesMethod(), getCallOptions(), request); } @@ -2153,8 +2156,9 @@ public com.google.cloud.configdelivery.v1.ListFleetPackagesResponse listFleetPac * */ public com.google.cloud.configdelivery.v1.FleetPackage getFleetPackage( - com.google.cloud.configdelivery.v1.GetFleetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.GetFleetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFleetPackageMethod(), getCallOptions(), request); } @@ -2166,8 +2170,9 @@ public com.google.cloud.configdelivery.v1.FleetPackage getFleetPackage( * */ public com.google.longrunning.Operation createFleetPackage( - com.google.cloud.configdelivery.v1.CreateFleetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.CreateFleetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFleetPackageMethod(), getCallOptions(), request); } @@ -2179,8 +2184,9 @@ public com.google.longrunning.Operation createFleetPackage( * */ public com.google.longrunning.Operation updateFleetPackage( - com.google.cloud.configdelivery.v1.UpdateFleetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.UpdateFleetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFleetPackageMethod(), getCallOptions(), request); } @@ -2192,8 +2198,9 @@ public com.google.longrunning.Operation updateFleetPackage( * */ public com.google.longrunning.Operation deleteFleetPackage( - com.google.cloud.configdelivery.v1.DeleteFleetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.DeleteFleetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFleetPackageMethod(), getCallOptions(), request); } @@ -2205,8 +2212,9 @@ public com.google.longrunning.Operation deleteFleetPackage( * */ public com.google.cloud.configdelivery.v1.ListReleasesResponse listReleases( - com.google.cloud.configdelivery.v1.ListReleasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.ListReleasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReleasesMethod(), getCallOptions(), request); } @@ -2218,8 +2226,9 @@ public com.google.cloud.configdelivery.v1.ListReleasesResponse listReleases( * */ public com.google.cloud.configdelivery.v1.Release getRelease( - com.google.cloud.configdelivery.v1.GetReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.GetReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReleaseMethod(), getCallOptions(), request); } @@ -2231,8 +2240,9 @@ public com.google.cloud.configdelivery.v1.Release getRelease( * */ public com.google.longrunning.Operation createRelease( - com.google.cloud.configdelivery.v1.CreateReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.CreateReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReleaseMethod(), getCallOptions(), request); } @@ -2244,8 +2254,9 @@ public com.google.longrunning.Operation createRelease( * */ public com.google.longrunning.Operation updateRelease( - com.google.cloud.configdelivery.v1.UpdateReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.UpdateReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReleaseMethod(), getCallOptions(), request); } @@ -2257,8 +2268,9 @@ public com.google.longrunning.Operation updateRelease( * */ public com.google.longrunning.Operation deleteRelease( - com.google.cloud.configdelivery.v1.DeleteReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.DeleteReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReleaseMethod(), getCallOptions(), request); } @@ -2270,8 +2282,9 @@ public com.google.longrunning.Operation deleteRelease( * */ public com.google.cloud.configdelivery.v1.ListVariantsResponse listVariants( - com.google.cloud.configdelivery.v1.ListVariantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.ListVariantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVariantsMethod(), getCallOptions(), request); } @@ -2283,8 +2296,9 @@ public com.google.cloud.configdelivery.v1.ListVariantsResponse listVariants( * */ public com.google.cloud.configdelivery.v1.Variant getVariant( - com.google.cloud.configdelivery.v1.GetVariantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.GetVariantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVariantMethod(), getCallOptions(), request); } @@ -2297,8 +2311,9 @@ public com.google.cloud.configdelivery.v1.Variant getVariant( * */ public com.google.longrunning.Operation createVariant( - com.google.cloud.configdelivery.v1.CreateVariantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.CreateVariantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVariantMethod(), getCallOptions(), request); } @@ -2310,8 +2325,9 @@ public com.google.longrunning.Operation createVariant( * */ public com.google.longrunning.Operation updateVariant( - com.google.cloud.configdelivery.v1.UpdateVariantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.UpdateVariantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVariantMethod(), getCallOptions(), request); } @@ -2323,8 +2339,9 @@ public com.google.longrunning.Operation updateVariant( * */ public com.google.longrunning.Operation deleteVariant( - com.google.cloud.configdelivery.v1.DeleteVariantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.DeleteVariantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVariantMethod(), getCallOptions(), request); } @@ -2336,8 +2353,9 @@ public com.google.longrunning.Operation deleteVariant( * */ public com.google.cloud.configdelivery.v1.ListRolloutsResponse listRollouts( - com.google.cloud.configdelivery.v1.ListRolloutsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.ListRolloutsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRolloutsMethod(), getCallOptions(), request); } @@ -2349,8 +2367,9 @@ public com.google.cloud.configdelivery.v1.ListRolloutsResponse listRollouts( * */ public com.google.cloud.configdelivery.v1.Rollout getRollout( - com.google.cloud.configdelivery.v1.GetRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.GetRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRolloutMethod(), getCallOptions(), request); } @@ -2362,8 +2381,9 @@ public com.google.cloud.configdelivery.v1.Rollout getRollout( * */ public com.google.longrunning.Operation suspendRollout( - com.google.cloud.configdelivery.v1.SuspendRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.SuspendRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuspendRolloutMethod(), getCallOptions(), request); } @@ -2375,8 +2395,9 @@ public com.google.longrunning.Operation suspendRollout( * */ public com.google.longrunning.Operation resumeRollout( - com.google.cloud.configdelivery.v1.ResumeRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.ResumeRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeRolloutMethod(), getCallOptions(), request); } @@ -2388,8 +2409,9 @@ public com.google.longrunning.Operation resumeRollout( * */ public com.google.longrunning.Operation abortRollout( - com.google.cloud.configdelivery.v1.AbortRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1.AbortRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAbortRolloutMethod(), getCallOptions(), request); } } diff --git a/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliveryGrpc.java b/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliveryGrpc.java index e998eadccce5..530fa6b60b8b 100644 --- a/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliveryGrpc.java +++ b/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliveryGrpc.java @@ -25,9 +25,6 @@ * a fleet of kubernetes clusters. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/configdelivery/v1beta/config_delivery.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConfigDeliveryGrpc { @@ -2102,8 +2099,9 @@ protected ConfigDeliveryBlockingV2Stub build( * */ public com.google.cloud.configdelivery.v1beta.ListResourceBundlesResponse listResourceBundles( - com.google.cloud.configdelivery.v1beta.ListResourceBundlesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.ListResourceBundlesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListResourceBundlesMethod(), getCallOptions(), request); } @@ -2115,8 +2113,9 @@ public com.google.cloud.configdelivery.v1beta.ListResourceBundlesResponse listRe * */ public com.google.cloud.configdelivery.v1beta.ResourceBundle getResourceBundle( - com.google.cloud.configdelivery.v1beta.GetResourceBundleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.GetResourceBundleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetResourceBundleMethod(), getCallOptions(), request); } @@ -2128,8 +2127,9 @@ public com.google.cloud.configdelivery.v1beta.ResourceBundle getResourceBundle( * */ public com.google.longrunning.Operation createResourceBundle( - com.google.cloud.configdelivery.v1beta.CreateResourceBundleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.CreateResourceBundleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateResourceBundleMethod(), getCallOptions(), request); } @@ -2141,8 +2141,9 @@ public com.google.longrunning.Operation createResourceBundle( * */ public com.google.longrunning.Operation updateResourceBundle( - com.google.cloud.configdelivery.v1beta.UpdateResourceBundleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.UpdateResourceBundleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateResourceBundleMethod(), getCallOptions(), request); } @@ -2154,8 +2155,9 @@ public com.google.longrunning.Operation updateResourceBundle( * */ public com.google.longrunning.Operation deleteResourceBundle( - com.google.cloud.configdelivery.v1beta.DeleteResourceBundleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.DeleteResourceBundleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteResourceBundleMethod(), getCallOptions(), request); } @@ -2167,8 +2169,9 @@ public com.google.longrunning.Operation deleteResourceBundle( * */ public com.google.cloud.configdelivery.v1beta.ListFleetPackagesResponse listFleetPackages( - com.google.cloud.configdelivery.v1beta.ListFleetPackagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.ListFleetPackagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFleetPackagesMethod(), getCallOptions(), request); } @@ -2180,8 +2183,9 @@ public com.google.cloud.configdelivery.v1beta.ListFleetPackagesResponse listFlee * */ public com.google.cloud.configdelivery.v1beta.FleetPackage getFleetPackage( - com.google.cloud.configdelivery.v1beta.GetFleetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.GetFleetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFleetPackageMethod(), getCallOptions(), request); } @@ -2193,8 +2197,9 @@ public com.google.cloud.configdelivery.v1beta.FleetPackage getFleetPackage( * */ public com.google.longrunning.Operation createFleetPackage( - com.google.cloud.configdelivery.v1beta.CreateFleetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.CreateFleetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFleetPackageMethod(), getCallOptions(), request); } @@ -2206,8 +2211,9 @@ public com.google.longrunning.Operation createFleetPackage( * */ public com.google.longrunning.Operation updateFleetPackage( - com.google.cloud.configdelivery.v1beta.UpdateFleetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.UpdateFleetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFleetPackageMethod(), getCallOptions(), request); } @@ -2219,8 +2225,9 @@ public com.google.longrunning.Operation updateFleetPackage( * */ public com.google.longrunning.Operation deleteFleetPackage( - com.google.cloud.configdelivery.v1beta.DeleteFleetPackageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.DeleteFleetPackageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFleetPackageMethod(), getCallOptions(), request); } @@ -2232,8 +2239,9 @@ public com.google.longrunning.Operation deleteFleetPackage( * */ public com.google.cloud.configdelivery.v1beta.ListReleasesResponse listReleases( - com.google.cloud.configdelivery.v1beta.ListReleasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.ListReleasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReleasesMethod(), getCallOptions(), request); } @@ -2245,8 +2253,9 @@ public com.google.cloud.configdelivery.v1beta.ListReleasesResponse listReleases( * */ public com.google.cloud.configdelivery.v1beta.Release getRelease( - com.google.cloud.configdelivery.v1beta.GetReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.GetReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReleaseMethod(), getCallOptions(), request); } @@ -2258,8 +2267,9 @@ public com.google.cloud.configdelivery.v1beta.Release getRelease( * */ public com.google.longrunning.Operation createRelease( - com.google.cloud.configdelivery.v1beta.CreateReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.CreateReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReleaseMethod(), getCallOptions(), request); } @@ -2271,8 +2281,9 @@ public com.google.longrunning.Operation createRelease( * */ public com.google.longrunning.Operation updateRelease( - com.google.cloud.configdelivery.v1beta.UpdateReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.UpdateReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReleaseMethod(), getCallOptions(), request); } @@ -2284,8 +2295,9 @@ public com.google.longrunning.Operation updateRelease( * */ public com.google.longrunning.Operation deleteRelease( - com.google.cloud.configdelivery.v1beta.DeleteReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.DeleteReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReleaseMethod(), getCallOptions(), request); } @@ -2297,8 +2309,9 @@ public com.google.longrunning.Operation deleteRelease( * */ public com.google.cloud.configdelivery.v1beta.ListVariantsResponse listVariants( - com.google.cloud.configdelivery.v1beta.ListVariantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.ListVariantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVariantsMethod(), getCallOptions(), request); } @@ -2310,8 +2323,9 @@ public com.google.cloud.configdelivery.v1beta.ListVariantsResponse listVariants( * */ public com.google.cloud.configdelivery.v1beta.Variant getVariant( - com.google.cloud.configdelivery.v1beta.GetVariantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.GetVariantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVariantMethod(), getCallOptions(), request); } @@ -2324,8 +2338,9 @@ public com.google.cloud.configdelivery.v1beta.Variant getVariant( * */ public com.google.longrunning.Operation createVariant( - com.google.cloud.configdelivery.v1beta.CreateVariantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.CreateVariantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVariantMethod(), getCallOptions(), request); } @@ -2337,8 +2352,9 @@ public com.google.longrunning.Operation createVariant( * */ public com.google.longrunning.Operation updateVariant( - com.google.cloud.configdelivery.v1beta.UpdateVariantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.UpdateVariantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVariantMethod(), getCallOptions(), request); } @@ -2350,8 +2366,9 @@ public com.google.longrunning.Operation updateVariant( * */ public com.google.longrunning.Operation deleteVariant( - com.google.cloud.configdelivery.v1beta.DeleteVariantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.DeleteVariantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVariantMethod(), getCallOptions(), request); } @@ -2363,8 +2380,9 @@ public com.google.longrunning.Operation deleteVariant( * */ public com.google.cloud.configdelivery.v1beta.ListRolloutsResponse listRollouts( - com.google.cloud.configdelivery.v1beta.ListRolloutsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.ListRolloutsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRolloutsMethod(), getCallOptions(), request); } @@ -2376,8 +2394,9 @@ public com.google.cloud.configdelivery.v1beta.ListRolloutsResponse listRollouts( * */ public com.google.cloud.configdelivery.v1beta.Rollout getRollout( - com.google.cloud.configdelivery.v1beta.GetRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.GetRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRolloutMethod(), getCallOptions(), request); } @@ -2389,8 +2408,9 @@ public com.google.cloud.configdelivery.v1beta.Rollout getRollout( * */ public com.google.longrunning.Operation suspendRollout( - com.google.cloud.configdelivery.v1beta.SuspendRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.SuspendRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuspendRolloutMethod(), getCallOptions(), request); } @@ -2402,8 +2422,9 @@ public com.google.longrunning.Operation suspendRollout( * */ public com.google.longrunning.Operation resumeRollout( - com.google.cloud.configdelivery.v1beta.ResumeRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.ResumeRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeRolloutMethod(), getCallOptions(), request); } @@ -2415,8 +2436,9 @@ public com.google.longrunning.Operation resumeRollout( * */ public com.google.longrunning.Operation abortRollout( - com.google.cloud.configdelivery.v1beta.AbortRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.configdelivery.v1beta.AbortRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAbortRolloutMethod(), getCallOptions(), request); } } diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index 1d3d094adf00..909e5b1aed4c 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.29.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.30.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index c97aa9b8332c..26f1a6343852 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.77.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java index 84e558117492..cb231d871ec3 100644 --- a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java +++ b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java @@ -24,9 +24,6 @@ * An API that lets users analyze and explore their business conversation data. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ContactCenterInsightsGrpc { @@ -6109,8 +6106,9 @@ protected ContactCenterInsightsBlockingV2Stub build( * */ public com.google.cloud.contactcenterinsights.v1.Conversation createConversation( - com.google.cloud.contactcenterinsights.v1.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } @@ -6124,8 +6122,9 @@ public com.google.cloud.contactcenterinsights.v1.Conversation createConversation * */ public com.google.longrunning.Operation uploadConversation( - com.google.cloud.contactcenterinsights.v1.UploadConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUploadConversationMethod(), getCallOptions(), request); } @@ -6137,8 +6136,9 @@ public com.google.longrunning.Operation uploadConversation( * */ public com.google.cloud.contactcenterinsights.v1.Conversation updateConversation( - com.google.cloud.contactcenterinsights.v1.UpdateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversationMethod(), getCallOptions(), request); } @@ -6150,8 +6150,9 @@ public com.google.cloud.contactcenterinsights.v1.Conversation updateConversation * */ public com.google.cloud.contactcenterinsights.v1.Conversation getConversation( - com.google.cloud.contactcenterinsights.v1.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationMethod(), getCallOptions(), request); } @@ -6163,8 +6164,9 @@ public com.google.cloud.contactcenterinsights.v1.Conversation getConversation( * */ public com.google.cloud.contactcenterinsights.v1.ListConversationsResponse listConversations( - com.google.cloud.contactcenterinsights.v1.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -6176,8 +6178,9 @@ public com.google.cloud.contactcenterinsights.v1.ListConversationsResponse listC * */ public com.google.protobuf.Empty deleteConversation( - com.google.cloud.contactcenterinsights.v1.DeleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversationMethod(), getCallOptions(), request); } @@ -6190,8 +6193,9 @@ public com.google.protobuf.Empty deleteConversation( * */ public com.google.longrunning.Operation createAnalysis( - com.google.cloud.contactcenterinsights.v1.CreateAnalysisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreateAnalysisRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAnalysisMethod(), getCallOptions(), request); } @@ -6203,8 +6207,9 @@ public com.google.longrunning.Operation createAnalysis( * */ public com.google.cloud.contactcenterinsights.v1.Analysis getAnalysis( - com.google.cloud.contactcenterinsights.v1.GetAnalysisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetAnalysisRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnalysisMethod(), getCallOptions(), request); } @@ -6216,8 +6221,9 @@ public com.google.cloud.contactcenterinsights.v1.Analysis getAnalysis( * */ public com.google.cloud.contactcenterinsights.v1.ListAnalysesResponse listAnalyses( - com.google.cloud.contactcenterinsights.v1.ListAnalysesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListAnalysesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnalysesMethod(), getCallOptions(), request); } @@ -6229,8 +6235,9 @@ public com.google.cloud.contactcenterinsights.v1.ListAnalysesResponse listAnalys * */ public com.google.protobuf.Empty deleteAnalysis( - com.google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAnalysisMethod(), getCallOptions(), request); } @@ -6242,8 +6249,9 @@ public com.google.protobuf.Empty deleteAnalysis( * */ public com.google.longrunning.Operation bulkAnalyzeConversations( - com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBulkAnalyzeConversationsMethod(), getCallOptions(), request); } @@ -6255,8 +6263,9 @@ public com.google.longrunning.Operation bulkAnalyzeConversations( * */ public com.google.longrunning.Operation bulkDeleteConversations( - com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBulkDeleteConversationsMethod(), getCallOptions(), request); } @@ -6269,8 +6278,9 @@ public com.google.longrunning.Operation bulkDeleteConversations( * */ public com.google.longrunning.Operation ingestConversations( - com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getIngestConversationsMethod(), getCallOptions(), request); } @@ -6282,8 +6292,9 @@ public com.google.longrunning.Operation ingestConversations( * */ public com.google.longrunning.Operation exportInsightsData( - com.google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportInsightsDataMethod(), getCallOptions(), request); } @@ -6295,8 +6306,9 @@ public com.google.longrunning.Operation exportInsightsData( * */ public com.google.longrunning.Operation createIssueModel( - com.google.cloud.contactcenterinsights.v1.CreateIssueModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreateIssueModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIssueModelMethod(), getCallOptions(), request); } @@ -6308,8 +6320,9 @@ public com.google.longrunning.Operation createIssueModel( * */ public com.google.cloud.contactcenterinsights.v1.IssueModel updateIssueModel( - com.google.cloud.contactcenterinsights.v1.UpdateIssueModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdateIssueModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIssueModelMethod(), getCallOptions(), request); } @@ -6321,8 +6334,9 @@ public com.google.cloud.contactcenterinsights.v1.IssueModel updateIssueModel( * */ public com.google.cloud.contactcenterinsights.v1.IssueModel getIssueModel( - com.google.cloud.contactcenterinsights.v1.GetIssueModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetIssueModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIssueModelMethod(), getCallOptions(), request); } @@ -6334,8 +6348,9 @@ public com.google.cloud.contactcenterinsights.v1.IssueModel getIssueModel( * */ public com.google.cloud.contactcenterinsights.v1.ListIssueModelsResponse listIssueModels( - com.google.cloud.contactcenterinsights.v1.ListIssueModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListIssueModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIssueModelsMethod(), getCallOptions(), request); } @@ -6347,8 +6362,9 @@ public com.google.cloud.contactcenterinsights.v1.ListIssueModelsResponse listIss * */ public com.google.longrunning.Operation deleteIssueModel( - com.google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIssueModelMethod(), getCallOptions(), request); } @@ -6361,8 +6377,9 @@ public com.google.longrunning.Operation deleteIssueModel( * */ public com.google.longrunning.Operation deployIssueModel( - com.google.cloud.contactcenterinsights.v1.DeployIssueModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeployIssueModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployIssueModelMethod(), getCallOptions(), request); } @@ -6375,8 +6392,9 @@ public com.google.longrunning.Operation deployIssueModel( * */ public com.google.longrunning.Operation undeployIssueModel( - com.google.cloud.contactcenterinsights.v1.UndeployIssueModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UndeployIssueModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployIssueModelMethod(), getCallOptions(), request); } @@ -6388,8 +6406,9 @@ public com.google.longrunning.Operation undeployIssueModel( * */ public com.google.longrunning.Operation exportIssueModel( - com.google.cloud.contactcenterinsights.v1.ExportIssueModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ExportIssueModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportIssueModelMethod(), getCallOptions(), request); } @@ -6401,8 +6420,9 @@ public com.google.longrunning.Operation exportIssueModel( * */ public com.google.longrunning.Operation importIssueModel( - com.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ImportIssueModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportIssueModelMethod(), getCallOptions(), request); } @@ -6414,8 +6434,9 @@ public com.google.longrunning.Operation importIssueModel( * */ public com.google.cloud.contactcenterinsights.v1.Issue getIssue( - com.google.cloud.contactcenterinsights.v1.GetIssueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetIssueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIssueMethod(), getCallOptions(), request); } @@ -6427,8 +6448,9 @@ public com.google.cloud.contactcenterinsights.v1.Issue getIssue( * */ public com.google.cloud.contactcenterinsights.v1.ListIssuesResponse listIssues( - com.google.cloud.contactcenterinsights.v1.ListIssuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListIssuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIssuesMethod(), getCallOptions(), request); } @@ -6440,8 +6462,9 @@ public com.google.cloud.contactcenterinsights.v1.ListIssuesResponse listIssues( * */ public com.google.cloud.contactcenterinsights.v1.Issue updateIssue( - com.google.cloud.contactcenterinsights.v1.UpdateIssueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdateIssueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIssueMethod(), getCallOptions(), request); } @@ -6453,8 +6476,9 @@ public com.google.cloud.contactcenterinsights.v1.Issue updateIssue( * */ public com.google.protobuf.Empty deleteIssue( - com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIssueMethod(), getCallOptions(), request); } @@ -6467,8 +6491,9 @@ public com.google.protobuf.Empty deleteIssue( */ public com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse calculateIssueModelStats( - com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCalculateIssueModelStatsMethod(), getCallOptions(), request); } @@ -6480,8 +6505,9 @@ public com.google.protobuf.Empty deleteIssue( * */ public com.google.cloud.contactcenterinsights.v1.PhraseMatcher createPhraseMatcher( - com.google.cloud.contactcenterinsights.v1.CreatePhraseMatcherRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreatePhraseMatcherRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePhraseMatcherMethod(), getCallOptions(), request); } @@ -6493,8 +6519,9 @@ public com.google.cloud.contactcenterinsights.v1.PhraseMatcher createPhraseMatch * */ public com.google.cloud.contactcenterinsights.v1.PhraseMatcher getPhraseMatcher( - com.google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPhraseMatcherMethod(), getCallOptions(), request); } @@ -6506,8 +6533,9 @@ public com.google.cloud.contactcenterinsights.v1.PhraseMatcher getPhraseMatcher( * */ public com.google.cloud.contactcenterinsights.v1.ListPhraseMatchersResponse listPhraseMatchers( - com.google.cloud.contactcenterinsights.v1.ListPhraseMatchersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListPhraseMatchersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPhraseMatchersMethod(), getCallOptions(), request); } @@ -6519,8 +6547,9 @@ public com.google.cloud.contactcenterinsights.v1.ListPhraseMatchersResponse list * */ public com.google.protobuf.Empty deletePhraseMatcher( - com.google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePhraseMatcherMethod(), getCallOptions(), request); } @@ -6532,8 +6561,9 @@ public com.google.protobuf.Empty deletePhraseMatcher( * */ public com.google.cloud.contactcenterinsights.v1.PhraseMatcher updatePhraseMatcher( - com.google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePhraseMatcherMethod(), getCallOptions(), request); } @@ -6545,8 +6575,9 @@ public com.google.cloud.contactcenterinsights.v1.PhraseMatcher updatePhraseMatch * */ public com.google.cloud.contactcenterinsights.v1.CalculateStatsResponse calculateStats( - com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCalculateStatsMethod(), getCallOptions(), request); } @@ -6558,8 +6589,9 @@ public com.google.cloud.contactcenterinsights.v1.CalculateStatsResponse calculat * */ public com.google.cloud.contactcenterinsights.v1.Settings getSettings( - com.google.cloud.contactcenterinsights.v1.GetSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSettingsMethod(), getCallOptions(), request); } @@ -6571,8 +6603,9 @@ public com.google.cloud.contactcenterinsights.v1.Settings getSettings( * */ public com.google.cloud.contactcenterinsights.v1.Settings updateSettings( - com.google.cloud.contactcenterinsights.v1.UpdateSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdateSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSettingsMethod(), getCallOptions(), request); } @@ -6584,8 +6617,9 @@ public com.google.cloud.contactcenterinsights.v1.Settings updateSettings( * */ public com.google.cloud.contactcenterinsights.v1.AnalysisRule createAnalysisRule( - com.google.cloud.contactcenterinsights.v1.CreateAnalysisRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreateAnalysisRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAnalysisRuleMethod(), getCallOptions(), request); } @@ -6597,8 +6631,9 @@ public com.google.cloud.contactcenterinsights.v1.AnalysisRule createAnalysisRule * */ public com.google.cloud.contactcenterinsights.v1.AnalysisRule getAnalysisRule( - com.google.cloud.contactcenterinsights.v1.GetAnalysisRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetAnalysisRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnalysisRuleMethod(), getCallOptions(), request); } @@ -6610,8 +6645,9 @@ public com.google.cloud.contactcenterinsights.v1.AnalysisRule getAnalysisRule( * */ public com.google.cloud.contactcenterinsights.v1.ListAnalysisRulesResponse listAnalysisRules( - com.google.cloud.contactcenterinsights.v1.ListAnalysisRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListAnalysisRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnalysisRulesMethod(), getCallOptions(), request); } @@ -6623,8 +6659,9 @@ public com.google.cloud.contactcenterinsights.v1.ListAnalysisRulesResponse listA * */ public com.google.cloud.contactcenterinsights.v1.AnalysisRule updateAnalysisRule( - com.google.cloud.contactcenterinsights.v1.UpdateAnalysisRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdateAnalysisRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAnalysisRuleMethod(), getCallOptions(), request); } @@ -6636,8 +6673,9 @@ public com.google.cloud.contactcenterinsights.v1.AnalysisRule updateAnalysisRule * */ public com.google.protobuf.Empty deleteAnalysisRule( - com.google.cloud.contactcenterinsights.v1.DeleteAnalysisRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteAnalysisRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAnalysisRuleMethod(), getCallOptions(), request); } @@ -6649,8 +6687,9 @@ public com.google.protobuf.Empty deleteAnalysisRule( * */ public com.google.cloud.contactcenterinsights.v1.EncryptionSpec getEncryptionSpec( - com.google.cloud.contactcenterinsights.v1.GetEncryptionSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetEncryptionSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEncryptionSpecMethod(), getCallOptions(), request); } @@ -6666,8 +6705,9 @@ public com.google.cloud.contactcenterinsights.v1.EncryptionSpec getEncryptionSpe * */ public com.google.longrunning.Operation initializeEncryptionSpec( - com.google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInitializeEncryptionSpecMethod(), getCallOptions(), request); } @@ -6679,8 +6719,9 @@ public com.google.longrunning.Operation initializeEncryptionSpec( * */ public com.google.cloud.contactcenterinsights.v1.View createView( - com.google.cloud.contactcenterinsights.v1.CreateViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreateViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateViewMethod(), getCallOptions(), request); } @@ -6692,8 +6733,9 @@ public com.google.cloud.contactcenterinsights.v1.View createView( * */ public com.google.cloud.contactcenterinsights.v1.View getView( - com.google.cloud.contactcenterinsights.v1.GetViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetViewMethod(), getCallOptions(), request); } @@ -6705,8 +6747,9 @@ public com.google.cloud.contactcenterinsights.v1.View getView( * */ public com.google.cloud.contactcenterinsights.v1.ListViewsResponse listViews( - com.google.cloud.contactcenterinsights.v1.ListViewsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListViewsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListViewsMethod(), getCallOptions(), request); } @@ -6718,8 +6761,9 @@ public com.google.cloud.contactcenterinsights.v1.ListViewsResponse listViews( * */ public com.google.cloud.contactcenterinsights.v1.View updateView( - com.google.cloud.contactcenterinsights.v1.UpdateViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdateViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateViewMethod(), getCallOptions(), request); } @@ -6731,8 +6775,9 @@ public com.google.cloud.contactcenterinsights.v1.View updateView( * */ public com.google.protobuf.Empty deleteView( - com.google.cloud.contactcenterinsights.v1.DeleteViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteViewMethod(), getCallOptions(), request); } @@ -6744,8 +6789,9 @@ public com.google.protobuf.Empty deleteView( * */ public com.google.longrunning.Operation queryMetrics( - com.google.cloud.contactcenterinsights.v1.QueryMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.QueryMetricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryMetricsMethod(), getCallOptions(), request); } @@ -6757,8 +6803,9 @@ public com.google.longrunning.Operation queryMetrics( * */ public com.google.cloud.contactcenterinsights.v1.QaQuestion createQaQuestion( - com.google.cloud.contactcenterinsights.v1.CreateQaQuestionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreateQaQuestionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQaQuestionMethod(), getCallOptions(), request); } @@ -6770,8 +6817,9 @@ public com.google.cloud.contactcenterinsights.v1.QaQuestion createQaQuestion( * */ public com.google.cloud.contactcenterinsights.v1.QaQuestion getQaQuestion( - com.google.cloud.contactcenterinsights.v1.GetQaQuestionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetQaQuestionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQaQuestionMethod(), getCallOptions(), request); } @@ -6783,8 +6831,9 @@ public com.google.cloud.contactcenterinsights.v1.QaQuestion getQaQuestion( * */ public com.google.cloud.contactcenterinsights.v1.QaQuestion updateQaQuestion( - com.google.cloud.contactcenterinsights.v1.UpdateQaQuestionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdateQaQuestionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQaQuestionMethod(), getCallOptions(), request); } @@ -6796,8 +6845,9 @@ public com.google.cloud.contactcenterinsights.v1.QaQuestion updateQaQuestion( * */ public com.google.protobuf.Empty deleteQaQuestion( - com.google.cloud.contactcenterinsights.v1.DeleteQaQuestionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteQaQuestionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQaQuestionMethod(), getCallOptions(), request); } @@ -6809,8 +6859,9 @@ public com.google.protobuf.Empty deleteQaQuestion( * */ public com.google.cloud.contactcenterinsights.v1.ListQaQuestionsResponse listQaQuestions( - com.google.cloud.contactcenterinsights.v1.ListQaQuestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListQaQuestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQaQuestionsMethod(), getCallOptions(), request); } @@ -6822,8 +6873,9 @@ public com.google.cloud.contactcenterinsights.v1.ListQaQuestionsResponse listQaQ * */ public com.google.cloud.contactcenterinsights.v1.QaScorecard createQaScorecard( - com.google.cloud.contactcenterinsights.v1.CreateQaScorecardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreateQaScorecardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQaScorecardMethod(), getCallOptions(), request); } @@ -6835,8 +6887,9 @@ public com.google.cloud.contactcenterinsights.v1.QaScorecard createQaScorecard( * */ public com.google.cloud.contactcenterinsights.v1.QaScorecard getQaScorecard( - com.google.cloud.contactcenterinsights.v1.GetQaScorecardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetQaScorecardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQaScorecardMethod(), getCallOptions(), request); } @@ -6848,8 +6901,9 @@ public com.google.cloud.contactcenterinsights.v1.QaScorecard getQaScorecard( * */ public com.google.cloud.contactcenterinsights.v1.QaScorecard updateQaScorecard( - com.google.cloud.contactcenterinsights.v1.UpdateQaScorecardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdateQaScorecardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQaScorecardMethod(), getCallOptions(), request); } @@ -6861,8 +6915,9 @@ public com.google.cloud.contactcenterinsights.v1.QaScorecard updateQaScorecard( * */ public com.google.protobuf.Empty deleteQaScorecard( - com.google.cloud.contactcenterinsights.v1.DeleteQaScorecardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteQaScorecardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQaScorecardMethod(), getCallOptions(), request); } @@ -6874,8 +6929,9 @@ public com.google.protobuf.Empty deleteQaScorecard( * */ public com.google.cloud.contactcenterinsights.v1.ListQaScorecardsResponse listQaScorecards( - com.google.cloud.contactcenterinsights.v1.ListQaScorecardsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListQaScorecardsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQaScorecardsMethod(), getCallOptions(), request); } @@ -6887,8 +6943,9 @@ public com.google.cloud.contactcenterinsights.v1.ListQaScorecardsResponse listQa * */ public com.google.cloud.contactcenterinsights.v1.QaScorecardRevision createQaScorecardRevision( - com.google.cloud.contactcenterinsights.v1.CreateQaScorecardRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreateQaScorecardRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQaScorecardRevisionMethod(), getCallOptions(), request); } @@ -6900,8 +6957,9 @@ public com.google.cloud.contactcenterinsights.v1.QaScorecardRevision createQaSco * */ public com.google.cloud.contactcenterinsights.v1.QaScorecardRevision getQaScorecardRevision( - com.google.cloud.contactcenterinsights.v1.GetQaScorecardRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetQaScorecardRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQaScorecardRevisionMethod(), getCallOptions(), request); } @@ -6913,8 +6971,9 @@ public com.google.cloud.contactcenterinsights.v1.QaScorecardRevision getQaScorec * */ public com.google.longrunning.Operation tuneQaScorecardRevision( - com.google.cloud.contactcenterinsights.v1.TuneQaScorecardRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.TuneQaScorecardRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTuneQaScorecardRevisionMethod(), getCallOptions(), request); } @@ -6926,8 +6985,9 @@ public com.google.longrunning.Operation tuneQaScorecardRevision( * */ public com.google.cloud.contactcenterinsights.v1.QaScorecardRevision deployQaScorecardRevision( - com.google.cloud.contactcenterinsights.v1.DeployQaScorecardRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeployQaScorecardRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployQaScorecardRevisionMethod(), getCallOptions(), request); } @@ -6940,8 +7000,9 @@ public com.google.cloud.contactcenterinsights.v1.QaScorecardRevision deployQaSco */ public com.google.cloud.contactcenterinsights.v1.QaScorecardRevision undeployQaScorecardRevision( - com.google.cloud.contactcenterinsights.v1.UndeployQaScorecardRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UndeployQaScorecardRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployQaScorecardRevisionMethod(), getCallOptions(), request); } @@ -6953,8 +7014,9 @@ public com.google.cloud.contactcenterinsights.v1.QaScorecardRevision deployQaSco * */ public com.google.protobuf.Empty deleteQaScorecardRevision( - com.google.cloud.contactcenterinsights.v1.DeleteQaScorecardRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteQaScorecardRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQaScorecardRevisionMethod(), getCallOptions(), request); } @@ -6967,8 +7029,9 @@ public com.google.protobuf.Empty deleteQaScorecardRevision( */ public com.google.cloud.contactcenterinsights.v1.ListQaScorecardRevisionsResponse listQaScorecardRevisions( - com.google.cloud.contactcenterinsights.v1.ListQaScorecardRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListQaScorecardRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQaScorecardRevisionsMethod(), getCallOptions(), request); } @@ -6980,8 +7043,9 @@ public com.google.protobuf.Empty deleteQaScorecardRevision( * */ public com.google.cloud.contactcenterinsights.v1.FeedbackLabel createFeedbackLabel( - com.google.cloud.contactcenterinsights.v1.CreateFeedbackLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.CreateFeedbackLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeedbackLabelMethod(), getCallOptions(), request); } @@ -6993,8 +7057,9 @@ public com.google.cloud.contactcenterinsights.v1.FeedbackLabel createFeedbackLab * */ public com.google.cloud.contactcenterinsights.v1.ListFeedbackLabelsResponse listFeedbackLabels( - com.google.cloud.contactcenterinsights.v1.ListFeedbackLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListFeedbackLabelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeedbackLabelsMethod(), getCallOptions(), request); } @@ -7006,8 +7071,9 @@ public com.google.cloud.contactcenterinsights.v1.ListFeedbackLabelsResponse list * */ public com.google.cloud.contactcenterinsights.v1.FeedbackLabel getFeedbackLabel( - com.google.cloud.contactcenterinsights.v1.GetFeedbackLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.GetFeedbackLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeedbackLabelMethod(), getCallOptions(), request); } @@ -7019,8 +7085,9 @@ public com.google.cloud.contactcenterinsights.v1.FeedbackLabel getFeedbackLabel( * */ public com.google.cloud.contactcenterinsights.v1.FeedbackLabel updateFeedbackLabel( - com.google.cloud.contactcenterinsights.v1.UpdateFeedbackLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.UpdateFeedbackLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeedbackLabelMethod(), getCallOptions(), request); } @@ -7032,8 +7099,9 @@ public com.google.cloud.contactcenterinsights.v1.FeedbackLabel updateFeedbackLab * */ public com.google.protobuf.Empty deleteFeedbackLabel( - com.google.cloud.contactcenterinsights.v1.DeleteFeedbackLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.DeleteFeedbackLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeedbackLabelMethod(), getCallOptions(), request); } @@ -7046,8 +7114,9 @@ public com.google.protobuf.Empty deleteFeedbackLabel( */ public com.google.cloud.contactcenterinsights.v1.ListAllFeedbackLabelsResponse listAllFeedbackLabels( - com.google.cloud.contactcenterinsights.v1.ListAllFeedbackLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.ListAllFeedbackLabelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAllFeedbackLabelsMethod(), getCallOptions(), request); } @@ -7059,8 +7128,9 @@ public com.google.protobuf.Empty deleteFeedbackLabel( * */ public com.google.longrunning.Operation bulkUploadFeedbackLabels( - com.google.cloud.contactcenterinsights.v1.BulkUploadFeedbackLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.BulkUploadFeedbackLabelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBulkUploadFeedbackLabelsMethod(), getCallOptions(), request); } @@ -7072,8 +7142,9 @@ public com.google.longrunning.Operation bulkUploadFeedbackLabels( * */ public com.google.longrunning.Operation bulkDownloadFeedbackLabels( - com.google.cloud.contactcenterinsights.v1.BulkDownloadFeedbackLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contactcenterinsights.v1.BulkDownloadFeedbackLabelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBulkDownloadFeedbackLabelsMethod(), getCallOptions(), request); } } diff --git a/java-container/README.md b/java-container/README.md index ddb24ccc7efa..57a712b7b6c6 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.80.0 + 2.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.80.0' +implementation 'com.google.cloud:google-cloud-container:2.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java index 5b84e9a9a091..25e94b695397 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java @@ -157,7 +157,7 @@ *

                                    CreateCluster *

                                    Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. *

                                    By default, the cluster is created in the project's [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - *

                                    One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. + *

                                    One firewall is added for the cluster. After cluster creation, the kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. *

                                    Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. * *

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

                                    @@ -1115,7 +1115,7 @@ public final UnaryCallable getClusterCallable() { *

                                    By default, the cluster is created in the project's [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * - *

                                    One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + *

                                    One firewall is added for the cluster. After cluster creation, the kubelet creates routes * for each node to allow the containers on that node to communicate with all other instances in * the cluster. * @@ -1157,7 +1157,7 @@ public final Operation createCluster(String parent, Cluster cluster) { *

                                    By default, the cluster is created in the project's [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * - *

                                    One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + *

                                    One firewall is added for the cluster. After cluster creation, the kubelet creates routes * for each node to allow the containers on that node to communicate with all other instances in * the cluster. * @@ -1208,7 +1208,7 @@ public final Operation createCluster(String projectId, String zone, Cluster clus *

                                    By default, the cluster is created in the project's [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * - *

                                    One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + *

                                    One firewall is added for the cluster. After cluster creation, the kubelet creates routes * for each node to allow the containers on that node to communicate with all other instances in * the cluster. * @@ -1250,7 +1250,7 @@ public final Operation createCluster(CreateClusterRequest request) { *

                                    By default, the cluster is created in the project's [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * - *

                                    One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + *

                                    One firewall is added for the cluster. After cluster creation, the kubelet creates routes * for each node to allow the containers on that node to communicate with all other instances in * the cluster. * diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java index e3f15978c1de..356ee61bad6f 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java @@ -161,7 +161,7 @@ *

                                    CreateCluster *

                                    Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. *

                                    By default, the cluster is created in the project's [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - *

                                    One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. + *

                                    One firewall is added for the cluster. After cluster creation, the kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. *

                                    Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. * *

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

                                    @@ -1059,7 +1059,7 @@ public final UnaryCallable getClusterCallable() { *

                                    By default, the cluster is created in the project's [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * - *

                                    One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + *

                                    One firewall is added for the cluster. After cluster creation, the kubelet creates routes * for each node to allow the containers on that node to communicate with all other instances in * the cluster. * @@ -1110,7 +1110,7 @@ public final Operation createCluster(String projectId, String zone, Cluster clus *

                                    By default, the cluster is created in the project's [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * - *

                                    One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + *

                                    One firewall is added for the cluster. After cluster creation, the kubelet creates routes * for each node to allow the containers on that node to communicate with all other instances in * the cluster. * @@ -1152,7 +1152,7 @@ public final Operation createCluster(CreateClusterRequest request) { *

                                    By default, the cluster is created in the project's [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * - *

                                    One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + *

                                    One firewall is added for the cluster. After cluster creation, the kubelet creates routes * for each node to allow the containers on that node to communicate with all other instances in * the cluster. * diff --git a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json index 268893746a1d..9992dfe500ec 100644 --- a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json +++ b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json @@ -800,6 +800,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.BlueGreenSettings$AutoscaledRolloutPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.BlueGreenSettings$AutoscaledRolloutPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.BlueGreenSettings$Builder", "queryAllDeclaredConstructors": true, @@ -1250,6 +1268,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.ContainerdConfig$WritableCgroups", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ContainerdConfig$WritableCgroups$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.ControlPlaneEndpointsConfig", "queryAllDeclaredConstructors": true, @@ -1772,6 +1808,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.Fleet$MembershipType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.GPUDriverInstallationConfig", "queryAllDeclaredConstructors": true, @@ -2375,6 +2420,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.LinuxNodeConfig$NodeKernelModuleLoading", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.LinuxNodeConfig$NodeKernelModuleLoading$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.LinuxNodeConfig$NodeKernelModuleLoading$Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.LinuxNodeConfig$TransparentHugepageDefrag", "queryAllDeclaredConstructors": true, @@ -2663,6 +2735,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.MaintenanceExclusionOptions$EndTimeBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.MaintenanceExclusionOptions$Scope", "queryAllDeclaredConstructors": true, @@ -2987,6 +3068,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.NetworkTierConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.NetworkTierConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.NetworkTierConfig$NetworkTier", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.NodeConfig", "queryAllDeclaredConstructors": true, @@ -3689,6 +3797,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.PrivilegedAdmissionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.PrivilegedAdmissionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.RBACBindingConfig", "queryAllDeclaredConstructors": true, @@ -4067,6 +4193,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.SecretManagerConfig$RotationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.SecretManagerConfig$RotationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.SecurityBulletinEvent", "queryAllDeclaredConstructors": true, diff --git a/java-container/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java b/java-container/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java index 4d437cb5b3fa..02082b29f08a 100644 --- a/java-container/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java +++ b/java-container/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java @@ -24,9 +24,6 @@ * Google Kubernetes Engine Cluster Manager v1 * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/container/v1/cluster_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ClusterManagerGrpc { @@ -1716,7 +1713,7 @@ default void getCluster( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating @@ -2291,7 +2288,7 @@ public void getCluster( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating @@ -2885,8 +2882,8 @@ protected ClusterManagerBlockingV2Stub build( * */ public com.google.container.v1.ListClustersResponse listClusters( - com.google.container.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.ListClustersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -2898,8 +2895,8 @@ public com.google.container.v1.ListClustersResponse listClusters( * */ public com.google.container.v1.Cluster getCluster( - com.google.container.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.GetClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -2913,7 +2910,7 @@ public com.google.container.v1.Cluster getCluster( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating @@ -2921,8 +2918,8 @@ public com.google.container.v1.Cluster getCluster( * */ public com.google.container.v1.Operation createCluster( - com.google.container.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.CreateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -2934,8 +2931,8 @@ public com.google.container.v1.Operation createCluster( * */ public com.google.container.v1.Operation updateCluster( - com.google.container.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.UpdateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -2947,8 +2944,8 @@ public com.google.container.v1.Operation updateCluster( * */ public com.google.container.v1.Operation updateNodePool( - com.google.container.v1.UpdateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.UpdateNodePoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNodePoolMethod(), getCallOptions(), request); } @@ -2960,8 +2957,9 @@ public com.google.container.v1.Operation updateNodePool( * */ public com.google.container.v1.Operation setNodePoolAutoscaling( - com.google.container.v1.SetNodePoolAutoscalingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetNodePoolAutoscalingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetNodePoolAutoscalingMethod(), getCallOptions(), request); } @@ -2973,8 +2971,8 @@ public com.google.container.v1.Operation setNodePoolAutoscaling( * */ public com.google.container.v1.Operation setLoggingService( - com.google.container.v1.SetLoggingServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetLoggingServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetLoggingServiceMethod(), getCallOptions(), request); } @@ -2986,8 +2984,9 @@ public com.google.container.v1.Operation setLoggingService( * */ public com.google.container.v1.Operation setMonitoringService( - com.google.container.v1.SetMonitoringServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetMonitoringServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetMonitoringServiceMethod(), getCallOptions(), request); } @@ -2999,8 +2998,8 @@ public com.google.container.v1.Operation setMonitoringService( * */ public com.google.container.v1.Operation setAddonsConfig( - com.google.container.v1.SetAddonsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetAddonsConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetAddonsConfigMethod(), getCallOptions(), request); } @@ -3016,8 +3015,8 @@ public com.google.container.v1.Operation setAddonsConfig( */ @java.lang.Deprecated public com.google.container.v1.Operation setLocations( - com.google.container.v1.SetLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetLocationsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetLocationsMethod(), getCallOptions(), request); } @@ -3029,8 +3028,8 @@ public com.google.container.v1.Operation setLocations( * */ public com.google.container.v1.Operation updateMaster( - com.google.container.v1.UpdateMasterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.UpdateMasterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMasterMethod(), getCallOptions(), request); } @@ -3044,8 +3043,8 @@ public com.google.container.v1.Operation updateMaster( * */ public com.google.container.v1.Operation setMasterAuth( - com.google.container.v1.SetMasterAuthRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetMasterAuthRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetMasterAuthMethod(), getCallOptions(), request); } @@ -3063,8 +3062,8 @@ public com.google.container.v1.Operation setMasterAuth( * */ public com.google.container.v1.Operation deleteCluster( - com.google.container.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.DeleteClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -3076,8 +3075,8 @@ public com.google.container.v1.Operation deleteCluster( * */ public com.google.container.v1.ListOperationsResponse listOperations( - com.google.container.v1.ListOperationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.ListOperationsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOperationsMethod(), getCallOptions(), request); } @@ -3089,8 +3088,8 @@ public com.google.container.v1.ListOperationsResponse listOperations( * */ public com.google.container.v1.Operation getOperation( - com.google.container.v1.GetOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.GetOperationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOperationMethod(), getCallOptions(), request); } @@ -3102,8 +3101,8 @@ public com.google.container.v1.Operation getOperation( * */ public com.google.protobuf.Empty cancelOperation( - com.google.container.v1.CancelOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.CancelOperationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelOperationMethod(), getCallOptions(), request); } @@ -3115,8 +3114,8 @@ public com.google.protobuf.Empty cancelOperation( * */ public com.google.container.v1.ServerConfig getServerConfig( - com.google.container.v1.GetServerConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.GetServerConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServerConfigMethod(), getCallOptions(), request); } @@ -3129,8 +3128,8 @@ public com.google.container.v1.ServerConfig getServerConfig( * */ public com.google.container.v1.GetJSONWebKeysResponse getJSONWebKeys( - com.google.container.v1.GetJSONWebKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.GetJSONWebKeysRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJSONWebKeysMethod(), getCallOptions(), request); } @@ -3142,8 +3141,8 @@ public com.google.container.v1.GetJSONWebKeysResponse getJSONWebKeys( * */ public com.google.container.v1.ListNodePoolsResponse listNodePools( - com.google.container.v1.ListNodePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.ListNodePoolsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNodePoolsMethod(), getCallOptions(), request); } @@ -3155,8 +3154,8 @@ public com.google.container.v1.ListNodePoolsResponse listNodePools( * */ public com.google.container.v1.NodePool getNodePool( - com.google.container.v1.GetNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.GetNodePoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNodePoolMethod(), getCallOptions(), request); } @@ -3168,8 +3167,8 @@ public com.google.container.v1.NodePool getNodePool( * */ public com.google.container.v1.Operation createNodePool( - com.google.container.v1.CreateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.CreateNodePoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNodePoolMethod(), getCallOptions(), request); } @@ -3181,8 +3180,8 @@ public com.google.container.v1.Operation createNodePool( * */ public com.google.container.v1.Operation deleteNodePool( - com.google.container.v1.DeleteNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.DeleteNodePoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNodePoolMethod(), getCallOptions(), request); } @@ -3195,8 +3194,9 @@ public com.google.container.v1.Operation deleteNodePool( * */ public com.google.protobuf.Empty completeNodePoolUpgrade( - com.google.container.v1.CompleteNodePoolUpgradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.CompleteNodePoolUpgradeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteNodePoolUpgradeMethod(), getCallOptions(), request); } @@ -3209,8 +3209,9 @@ public com.google.protobuf.Empty completeNodePoolUpgrade( * */ public com.google.container.v1.Operation rollbackNodePoolUpgrade( - com.google.container.v1.RollbackNodePoolUpgradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.RollbackNodePoolUpgradeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackNodePoolUpgradeMethod(), getCallOptions(), request); } @@ -3222,8 +3223,9 @@ public com.google.container.v1.Operation rollbackNodePoolUpgrade( * */ public com.google.container.v1.Operation setNodePoolManagement( - com.google.container.v1.SetNodePoolManagementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetNodePoolManagementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetNodePoolManagementMethod(), getCallOptions(), request); } @@ -3235,8 +3237,8 @@ public com.google.container.v1.Operation setNodePoolManagement( * */ public com.google.container.v1.Operation setLabels( - com.google.container.v1.SetLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetLabelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetLabelsMethod(), getCallOptions(), request); } @@ -3248,8 +3250,8 @@ public com.google.container.v1.Operation setLabels( * */ public com.google.container.v1.Operation setLegacyAbac( - com.google.container.v1.SetLegacyAbacRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetLegacyAbacRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetLegacyAbacMethod(), getCallOptions(), request); } @@ -3261,8 +3263,8 @@ public com.google.container.v1.Operation setLegacyAbac( * */ public com.google.container.v1.Operation startIPRotation( - com.google.container.v1.StartIPRotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.StartIPRotationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartIPRotationMethod(), getCallOptions(), request); } @@ -3274,8 +3276,8 @@ public com.google.container.v1.Operation startIPRotation( * */ public com.google.container.v1.Operation completeIPRotation( - com.google.container.v1.CompleteIPRotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.CompleteIPRotationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteIPRotationMethod(), getCallOptions(), request); } @@ -3289,8 +3291,8 @@ public com.google.container.v1.Operation completeIPRotation( * */ public com.google.container.v1.Operation setNodePoolSize( - com.google.container.v1.SetNodePoolSizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetNodePoolSizeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetNodePoolSizeMethod(), getCallOptions(), request); } @@ -3302,8 +3304,8 @@ public com.google.container.v1.Operation setNodePoolSize( * */ public com.google.container.v1.Operation setNetworkPolicy( - com.google.container.v1.SetNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetNetworkPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetNetworkPolicyMethod(), getCallOptions(), request); } @@ -3315,8 +3317,9 @@ public com.google.container.v1.Operation setNetworkPolicy( * */ public com.google.container.v1.Operation setMaintenancePolicy( - com.google.container.v1.SetMaintenancePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.SetMaintenancePolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetMaintenancePolicyMethod(), getCallOptions(), request); } @@ -3328,8 +3331,9 @@ public com.google.container.v1.Operation setMaintenancePolicy( * */ public com.google.container.v1.ListUsableSubnetworksResponse listUsableSubnetworks( - com.google.container.v1.ListUsableSubnetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.ListUsableSubnetworksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsableSubnetworksMethod(), getCallOptions(), request); } @@ -3342,8 +3346,9 @@ public com.google.container.v1.ListUsableSubnetworksResponse listUsableSubnetwor * */ public com.google.container.v1.CheckAutopilotCompatibilityResponse checkAutopilotCompatibility( - com.google.container.v1.CheckAutopilotCompatibilityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.CheckAutopilotCompatibilityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckAutopilotCompatibilityMethod(), getCallOptions(), request); } @@ -3355,8 +3360,9 @@ public com.google.container.v1.CheckAutopilotCompatibilityResponse checkAutopilo * */ public com.google.container.v1.ClusterUpgradeInfo fetchClusterUpgradeInfo( - com.google.container.v1.FetchClusterUpgradeInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.FetchClusterUpgradeInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchClusterUpgradeInfoMethod(), getCallOptions(), request); } @@ -3368,8 +3374,9 @@ public com.google.container.v1.ClusterUpgradeInfo fetchClusterUpgradeInfo( * */ public com.google.container.v1.NodePoolUpgradeInfo fetchNodePoolUpgradeInfo( - com.google.container.v1.FetchNodePoolUpgradeInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1.FetchNodePoolUpgradeInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchNodePoolUpgradeInfoMethod(), getCallOptions(), request); } } @@ -3430,7 +3437,7 @@ public com.google.container.v1.Cluster getCluster( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating @@ -3948,7 +3955,7 @@ protected ClusterManagerFutureStub build( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating diff --git a/java-container/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java b/java-container/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java index 198e9c690e0f..84bbb189dc2f 100644 --- a/java-container/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java +++ b/java-container/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java @@ -24,9 +24,6 @@ * Google Kubernetes Engine Cluster Manager v1beta1 * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/container/v1beta1/cluster_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ClusterManagerGrpc { @@ -1845,7 +1842,7 @@ default void getCluster( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating @@ -2438,7 +2435,7 @@ public void getCluster( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating @@ -3052,8 +3049,8 @@ protected ClusterManagerBlockingV2Stub build( * */ public com.google.container.v1beta1.ListClustersResponse listClusters( - com.google.container.v1beta1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.ListClustersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -3065,8 +3062,8 @@ public com.google.container.v1beta1.ListClustersResponse listClusters( * */ public com.google.container.v1beta1.Cluster getCluster( - com.google.container.v1beta1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.GetClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -3080,7 +3077,7 @@ public com.google.container.v1beta1.Cluster getCluster( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating @@ -3088,8 +3085,8 @@ public com.google.container.v1beta1.Cluster getCluster( * */ public com.google.container.v1beta1.Operation createCluster( - com.google.container.v1beta1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.CreateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -3101,8 +3098,8 @@ public com.google.container.v1beta1.Operation createCluster( * */ public com.google.container.v1beta1.Operation updateCluster( - com.google.container.v1beta1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.UpdateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -3114,8 +3111,8 @@ public com.google.container.v1beta1.Operation updateCluster( * */ public com.google.container.v1beta1.Operation updateNodePool( - com.google.container.v1beta1.UpdateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.UpdateNodePoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNodePoolMethod(), getCallOptions(), request); } @@ -3127,8 +3124,9 @@ public com.google.container.v1beta1.Operation updateNodePool( * */ public com.google.container.v1beta1.Operation setNodePoolAutoscaling( - com.google.container.v1beta1.SetNodePoolAutoscalingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetNodePoolAutoscalingMethod(), getCallOptions(), request); } @@ -3140,8 +3138,9 @@ public com.google.container.v1beta1.Operation setNodePoolAutoscaling( * */ public com.google.container.v1beta1.Operation setLoggingService( - com.google.container.v1beta1.SetLoggingServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetLoggingServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetLoggingServiceMethod(), getCallOptions(), request); } @@ -3153,8 +3152,9 @@ public com.google.container.v1beta1.Operation setLoggingService( * */ public com.google.container.v1beta1.Operation setMonitoringService( - com.google.container.v1beta1.SetMonitoringServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetMonitoringServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetMonitoringServiceMethod(), getCallOptions(), request); } @@ -3166,8 +3166,9 @@ public com.google.container.v1beta1.Operation setMonitoringService( * */ public com.google.container.v1beta1.Operation setAddonsConfig( - com.google.container.v1beta1.SetAddonsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetAddonsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetAddonsConfigMethod(), getCallOptions(), request); } @@ -3183,8 +3184,8 @@ public com.google.container.v1beta1.Operation setAddonsConfig( */ @java.lang.Deprecated public com.google.container.v1beta1.Operation setLocations( - com.google.container.v1beta1.SetLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetLocationsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetLocationsMethod(), getCallOptions(), request); } @@ -3196,8 +3197,8 @@ public com.google.container.v1beta1.Operation setLocations( * */ public com.google.container.v1beta1.Operation updateMaster( - com.google.container.v1beta1.UpdateMasterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.UpdateMasterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMasterMethod(), getCallOptions(), request); } @@ -3211,8 +3212,8 @@ public com.google.container.v1beta1.Operation updateMaster( * */ public com.google.container.v1beta1.Operation setMasterAuth( - com.google.container.v1beta1.SetMasterAuthRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetMasterAuthRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetMasterAuthMethod(), getCallOptions(), request); } @@ -3230,8 +3231,8 @@ public com.google.container.v1beta1.Operation setMasterAuth( * */ public com.google.container.v1beta1.Operation deleteCluster( - com.google.container.v1beta1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.DeleteClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -3243,8 +3244,8 @@ public com.google.container.v1beta1.Operation deleteCluster( * */ public com.google.container.v1beta1.ListOperationsResponse listOperations( - com.google.container.v1beta1.ListOperationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.ListOperationsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOperationsMethod(), getCallOptions(), request); } @@ -3256,8 +3257,8 @@ public com.google.container.v1beta1.ListOperationsResponse listOperations( * */ public com.google.container.v1beta1.Operation getOperation( - com.google.container.v1beta1.GetOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.GetOperationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOperationMethod(), getCallOptions(), request); } @@ -3269,8 +3270,9 @@ public com.google.container.v1beta1.Operation getOperation( * */ public com.google.protobuf.Empty cancelOperation( - com.google.container.v1beta1.CancelOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.CancelOperationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelOperationMethod(), getCallOptions(), request); } @@ -3282,8 +3284,9 @@ public com.google.protobuf.Empty cancelOperation( * */ public com.google.container.v1beta1.ServerConfig getServerConfig( - com.google.container.v1beta1.GetServerConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.GetServerConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServerConfigMethod(), getCallOptions(), request); } @@ -3296,8 +3299,8 @@ public com.google.container.v1beta1.ServerConfig getServerConfig( * */ public com.google.container.v1beta1.GetJSONWebKeysResponse getJSONWebKeys( - com.google.container.v1beta1.GetJSONWebKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.GetJSONWebKeysRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJSONWebKeysMethod(), getCallOptions(), request); } @@ -3309,8 +3312,8 @@ public com.google.container.v1beta1.GetJSONWebKeysResponse getJSONWebKeys( * */ public com.google.container.v1beta1.ListNodePoolsResponse listNodePools( - com.google.container.v1beta1.ListNodePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.ListNodePoolsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNodePoolsMethod(), getCallOptions(), request); } @@ -3322,8 +3325,8 @@ public com.google.container.v1beta1.ListNodePoolsResponse listNodePools( * */ public com.google.container.v1beta1.NodePool getNodePool( - com.google.container.v1beta1.GetNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.GetNodePoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNodePoolMethod(), getCallOptions(), request); } @@ -3335,8 +3338,8 @@ public com.google.container.v1beta1.NodePool getNodePool( * */ public com.google.container.v1beta1.Operation createNodePool( - com.google.container.v1beta1.CreateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.CreateNodePoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNodePoolMethod(), getCallOptions(), request); } @@ -3348,8 +3351,8 @@ public com.google.container.v1beta1.Operation createNodePool( * */ public com.google.container.v1beta1.Operation deleteNodePool( - com.google.container.v1beta1.DeleteNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.DeleteNodePoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNodePoolMethod(), getCallOptions(), request); } @@ -3362,8 +3365,9 @@ public com.google.container.v1beta1.Operation deleteNodePool( * */ public com.google.protobuf.Empty completeNodePoolUpgrade( - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteNodePoolUpgradeMethod(), getCallOptions(), request); } @@ -3376,8 +3380,9 @@ public com.google.protobuf.Empty completeNodePoolUpgrade( * */ public com.google.container.v1beta1.Operation rollbackNodePoolUpgrade( - com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackNodePoolUpgradeMethod(), getCallOptions(), request); } @@ -3389,8 +3394,9 @@ public com.google.container.v1beta1.Operation rollbackNodePoolUpgrade( * */ public com.google.container.v1beta1.Operation setNodePoolManagement( - com.google.container.v1beta1.SetNodePoolManagementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetNodePoolManagementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetNodePoolManagementMethod(), getCallOptions(), request); } @@ -3402,8 +3408,8 @@ public com.google.container.v1beta1.Operation setNodePoolManagement( * */ public com.google.container.v1beta1.Operation setLabels( - com.google.container.v1beta1.SetLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetLabelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetLabelsMethod(), getCallOptions(), request); } @@ -3415,8 +3421,8 @@ public com.google.container.v1beta1.Operation setLabels( * */ public com.google.container.v1beta1.Operation setLegacyAbac( - com.google.container.v1beta1.SetLegacyAbacRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetLegacyAbacRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetLegacyAbacMethod(), getCallOptions(), request); } @@ -3428,8 +3434,9 @@ public com.google.container.v1beta1.Operation setLegacyAbac( * */ public com.google.container.v1beta1.Operation startIPRotation( - com.google.container.v1beta1.StartIPRotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.StartIPRotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartIPRotationMethod(), getCallOptions(), request); } @@ -3441,8 +3448,9 @@ public com.google.container.v1beta1.Operation startIPRotation( * */ public com.google.container.v1beta1.Operation completeIPRotation( - com.google.container.v1beta1.CompleteIPRotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.CompleteIPRotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteIPRotationMethod(), getCallOptions(), request); } @@ -3456,8 +3464,9 @@ public com.google.container.v1beta1.Operation completeIPRotation( * */ public com.google.container.v1beta1.Operation setNodePoolSize( - com.google.container.v1beta1.SetNodePoolSizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetNodePoolSizeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetNodePoolSizeMethod(), getCallOptions(), request); } @@ -3469,8 +3478,9 @@ public com.google.container.v1beta1.Operation setNodePoolSize( * */ public com.google.container.v1beta1.Operation setNetworkPolicy( - com.google.container.v1beta1.SetNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetNetworkPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetNetworkPolicyMethod(), getCallOptions(), request); } @@ -3482,8 +3492,9 @@ public com.google.container.v1beta1.Operation setNetworkPolicy( * */ public com.google.container.v1beta1.Operation setMaintenancePolicy( - com.google.container.v1beta1.SetMaintenancePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.SetMaintenancePolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetMaintenancePolicyMethod(), getCallOptions(), request); } @@ -3495,8 +3506,9 @@ public com.google.container.v1beta1.Operation setMaintenancePolicy( * */ public com.google.container.v1beta1.ListUsableSubnetworksResponse listUsableSubnetworks( - com.google.container.v1beta1.ListUsableSubnetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.ListUsableSubnetworksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsableSubnetworksMethod(), getCallOptions(), request); } @@ -3510,8 +3522,9 @@ public com.google.container.v1beta1.ListUsableSubnetworksResponse listUsableSubn */ public com.google.container.v1beta1.CheckAutopilotCompatibilityResponse checkAutopilotCompatibility( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckAutopilotCompatibilityMethod(), getCallOptions(), request); } @@ -3523,8 +3536,8 @@ public com.google.container.v1beta1.ListUsableSubnetworksResponse listUsableSubn * */ public com.google.container.v1beta1.ListLocationsResponse listLocations( - com.google.container.v1beta1.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.ListLocationsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLocationsMethod(), getCallOptions(), request); } @@ -3536,8 +3549,9 @@ public com.google.container.v1beta1.ListLocationsResponse listLocations( * */ public com.google.container.v1beta1.ClusterUpgradeInfo fetchClusterUpgradeInfo( - com.google.container.v1beta1.FetchClusterUpgradeInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.FetchClusterUpgradeInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchClusterUpgradeInfoMethod(), getCallOptions(), request); } @@ -3549,8 +3563,9 @@ public com.google.container.v1beta1.ClusterUpgradeInfo fetchClusterUpgradeInfo( * */ public com.google.container.v1beta1.NodePoolUpgradeInfo fetchNodePoolUpgradeInfo( - com.google.container.v1beta1.FetchNodePoolUpgradeInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.container.v1beta1.FetchNodePoolUpgradeInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchNodePoolUpgradeInfoMethod(), getCallOptions(), request); } } @@ -3611,7 +3626,7 @@ public com.google.container.v1beta1.Cluster getCluster( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating @@ -4143,7 +4158,7 @@ protected ClusterManagerFutureStub build( * [default * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers + * the kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * Finally, an entry is added to the project's global metadata indicating diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java index b4d728b64525..907460bdb08b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java @@ -198,7 +198,7 @@ public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscal * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1812 + * google/container/v1/cluster_service.proto;l=1862 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Override @@ -222,7 +222,7 @@ public boolean hasKubernetesDashboard() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1812 + * google/container/v1/cluster_service.proto;l=1862 * @return The kubernetesDashboard. */ @java.lang.Override @@ -431,7 +431,8 @@ public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilde * *

                                        * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -   * extension to manage hosted GCP services through the Kubernetes API
                                    +   * extension to manage hosted Google Cloud services through the Kubernetes
                                    +   * API.
                                        * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -448,7 +449,8 @@ public boolean hasConfigConnectorConfig() { * *
                                        * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -   * extension to manage hosted GCP services through the Kubernetes API
                                    +   * extension to manage hosted Google Cloud services through the Kubernetes
                                    +   * API.
                                        * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -467,7 +469,8 @@ public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() * *
                                        * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -   * extension to manage hosted GCP services through the Kubernetes API
                                    +   * extension to manage hosted Google Cloud services through the Kubernetes
                                    +   * API.
                                        * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -549,7 +552,7 @@ public boolean hasGcePersistentDiskCsiDriverConfig() { * * *
                                    -   * Configuration for the GCP Filestore CSI driver.
                                    +   * Configuration for the Filestore CSI driver.
                                        * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -566,7 +569,7 @@ public boolean hasGcpFilestoreCsiDriverConfig() { * * *
                                    -   * Configuration for the GCP Filestore CSI driver.
                                    +   * Configuration for the Filestore CSI driver.
                                        * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -585,7 +588,7 @@ public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDri * * *
                                    -   * Configuration for the GCP Filestore CSI driver.
                                    +   * Configuration for the Filestore CSI driver.
                                        * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -2367,7 +2370,7 @@ public Builder clearHorizontalPodAutoscaling() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1812 + * google/container/v1/cluster_service.proto;l=1862 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -2390,7 +2393,7 @@ public boolean hasKubernetesDashboard() { *
                                    * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1812 + * google/container/v1/cluster_service.proto;l=1862 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -3223,7 +3226,8 @@ public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilde * *
                                          * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -     * extension to manage hosted GCP services through the Kubernetes API
                                    +     * extension to manage hosted Google Cloud services through the Kubernetes
                                    +     * API.
                                          * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -3239,7 +3243,8 @@ public boolean hasConfigConnectorConfig() { * *
                                          * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -     * extension to manage hosted GCP services through the Kubernetes API
                                    +     * extension to manage hosted Google Cloud services through the Kubernetes
                                    +     * API.
                                          * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -3261,7 +3266,8 @@ public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() * *
                                          * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -     * extension to manage hosted GCP services through the Kubernetes API
                                    +     * extension to manage hosted Google Cloud services through the Kubernetes
                                    +     * API.
                                          * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -3285,7 +3291,8 @@ public Builder setConfigConnectorConfig(com.google.container.v1.ConfigConnectorC * *
                                          * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -     * extension to manage hosted GCP services through the Kubernetes API
                                    +     * extension to manage hosted Google Cloud services through the Kubernetes
                                    +     * API.
                                          * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -3307,7 +3314,8 @@ public Builder setConfigConnectorConfig( * *
                                          * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -     * extension to manage hosted GCP services through the Kubernetes API
                                    +     * extension to manage hosted Google Cloud services through the Kubernetes
                                    +     * API.
                                          * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -3337,7 +3345,8 @@ public Builder mergeConfigConnectorConfig(com.google.container.v1.ConfigConnecto * *
                                          * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -     * extension to manage hosted GCP services through the Kubernetes API
                                    +     * extension to manage hosted Google Cloud services through the Kubernetes
                                    +     * API.
                                          * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -3358,7 +3367,8 @@ public Builder clearConfigConnectorConfig() { * *
                                          * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -     * extension to manage hosted GCP services through the Kubernetes API
                                    +     * extension to manage hosted Google Cloud services through the Kubernetes
                                    +     * API.
                                          * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -3374,7 +3384,8 @@ public com.google.container.v1.ConfigConnectorConfig.Builder getConfigConnectorC * *
                                          * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -     * extension to manage hosted GCP services through the Kubernetes API
                                    +     * extension to manage hosted Google Cloud services through the Kubernetes
                                    +     * API.
                                          * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -3395,7 +3406,8 @@ public com.google.container.v1.ConfigConnectorConfig.Builder getConfigConnectorC * *
                                          * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -     * extension to manage hosted GCP services through the Kubernetes API
                                    +     * extension to manage hosted Google Cloud services through the Kubernetes
                                    +     * API.
                                          * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -3648,7 +3660,7 @@ public Builder clearGcePersistentDiskCsiDriverConfig() { * * *
                                    -     * Configuration for the GCP Filestore CSI driver.
                                    +     * Configuration for the Filestore CSI driver.
                                          * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -3664,7 +3676,7 @@ public boolean hasGcpFilestoreCsiDriverConfig() { * * *
                                    -     * Configuration for the GCP Filestore CSI driver.
                                    +     * Configuration for the Filestore CSI driver.
                                          * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -3686,7 +3698,7 @@ public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDri * * *
                                    -     * Configuration for the GCP Filestore CSI driver.
                                    +     * Configuration for the Filestore CSI driver.
                                          * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -3711,7 +3723,7 @@ public Builder setGcpFilestoreCsiDriverConfig( * * *
                                    -     * Configuration for the GCP Filestore CSI driver.
                                    +     * Configuration for the Filestore CSI driver.
                                          * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -3733,7 +3745,7 @@ public Builder setGcpFilestoreCsiDriverConfig( * * *
                                    -     * Configuration for the GCP Filestore CSI driver.
                                    +     * Configuration for the Filestore CSI driver.
                                          * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -3764,7 +3776,7 @@ public Builder mergeGcpFilestoreCsiDriverConfig( * * *
                                    -     * Configuration for the GCP Filestore CSI driver.
                                    +     * Configuration for the Filestore CSI driver.
                                          * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -3785,7 +3797,7 @@ public Builder clearGcpFilestoreCsiDriverConfig() { * * *
                                    -     * Configuration for the GCP Filestore CSI driver.
                                    +     * Configuration for the Filestore CSI driver.
                                          * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -3802,7 +3814,7 @@ public Builder clearGcpFilestoreCsiDriverConfig() { * * *
                                    -     * Configuration for the GCP Filestore CSI driver.
                                    +     * Configuration for the Filestore CSI driver.
                                          * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -3823,7 +3835,7 @@ public Builder clearGcpFilestoreCsiDriverConfig() { * * *
                                    -     * Configuration for the GCP Filestore CSI driver.
                                    +     * Configuration for the Filestore CSI driver.
                                          * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java index bcc8d87d1ea3..37d9d1a08ed1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java @@ -122,7 +122,7 @@ public interface AddonsConfigOrBuilder * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1812 + * google/container/v1/cluster_service.proto;l=1862 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface AddonsConfigOrBuilder *
                                    * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1812 + * google/container/v1/cluster_service.proto;l=1862 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -291,7 +291,8 @@ public interface AddonsConfigOrBuilder * *
                                        * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -   * extension to manage hosted GCP services through the Kubernetes API
                                    +   * extension to manage hosted Google Cloud services through the Kubernetes
                                    +   * API.
                                        * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -305,7 +306,8 @@ public interface AddonsConfigOrBuilder * *
                                        * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -   * extension to manage hosted GCP services through the Kubernetes API
                                    +   * extension to manage hosted Google Cloud services through the Kubernetes
                                    +   * API.
                                        * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -319,7 +321,8 @@ public interface AddonsConfigOrBuilder * *
                                        * Configuration for the ConfigConnector add-on, a Kubernetes
                                    -   * extension to manage hosted GCP services through the Kubernetes API
                                    +   * extension to manage hosted Google Cloud services through the Kubernetes
                                    +   * API.
                                        * 
                                    * * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; @@ -374,7 +377,7 @@ public interface AddonsConfigOrBuilder * * *
                                    -   * Configuration for the GCP Filestore CSI driver.
                                    +   * Configuration for the Filestore CSI driver.
                                        * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -388,7 +391,7 @@ public interface AddonsConfigOrBuilder * * *
                                    -   * Configuration for the GCP Filestore CSI driver.
                                    +   * Configuration for the Filestore CSI driver.
                                        * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; @@ -402,7 +405,7 @@ public interface AddonsConfigOrBuilder * * *
                                    -   * Configuration for the GCP Filestore CSI driver.
                                    +   * Configuration for the Filestore CSI driver.
                                        * 
                                    * * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoIpamConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoIpamConfig.java index 90d44fb12afa..de66a47d54b7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoIpamConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoIpamConfig.java @@ -62,6 +62,42 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1.AutoIpamConfig.Builder.class); } + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
                                    +   * The flag that enables Auto IPAM on this cluster
                                    +   * 
                                    + * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +   * The flag that enables Auto IPAM on this cluster
                                    +   * 
                                    + * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -76,6 +112,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, enabled_); + } getUnknownFields().writeTo(output); } @@ -85,6 +124,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -100,6 +142,10 @@ public boolean equals(final java.lang.Object obj) { } com.google.container.v1.AutoIpamConfig other = (com.google.container.v1.AutoIpamConfig) obj; + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -111,6 +157,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -250,6 +300,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + enabled_ = false; return this; } @@ -277,10 +329,23 @@ public com.google.container.v1.AutoIpamConfig build() { public com.google.container.v1.AutoIpamConfig buildPartial() { com.google.container.v1.AutoIpamConfig result = new com.google.container.v1.AutoIpamConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.container.v1.AutoIpamConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -326,6 +391,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.container.v1.AutoIpamConfig other) { if (other == com.google.container.v1.AutoIpamConfig.getDefaultInstance()) return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -352,6 +420,12 @@ public Builder mergeFrom( case 0: done = true; break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -369,6 +443,80 @@ public Builder mergeFrom( return this; } + private int bitField0_; + + private boolean enabled_; + + /** + * + * + *
                                    +     * The flag that enables Auto IPAM on this cluster
                                    +     * 
                                    + * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +     * The flag that enables Auto IPAM on this cluster
                                    +     * 
                                    + * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
                                    +     * The flag that enables Auto IPAM on this cluster
                                    +     * 
                                    + * + * optional bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The flag that enables Auto IPAM on this cluster
                                    +     * 
                                    + * + * optional bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoIpamConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoIpamConfigOrBuilder.java index a6a2c773e86a..7e736926b6bb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoIpamConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoIpamConfigOrBuilder.java @@ -22,4 +22,31 @@ public interface AutoIpamConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.container.v1.AutoIpamConfig) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The flag that enables Auto IPAM on this cluster
                                    +   * 
                                    + * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + + /** + * + * + *
                                    +   * The flag that enables Auto IPAM on this cluster
                                    +   * 
                                    + * + * optional bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java index b0d81f0c0285..7f340bdac311 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java @@ -135,6 +135,63 @@ public com.google.container.v1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyCo : workloadPolicyConfig_; } + public static final int PRIVILEGED_ADMISSION_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1.PrivilegedAdmissionConfig privilegedAdmissionConfig_; + + /** + * + * + *
                                    +   * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +   * admission control.
                                    +   * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + * + * @return Whether the privilegedAdmissionConfig field is set. + */ + @java.lang.Override + public boolean hasPrivilegedAdmissionConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +   * admission control.
                                    +   * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + * + * @return The privilegedAdmissionConfig. + */ + @java.lang.Override + public com.google.container.v1.PrivilegedAdmissionConfig getPrivilegedAdmissionConfig() { + return privilegedAdmissionConfig_ == null + ? com.google.container.v1.PrivilegedAdmissionConfig.getDefaultInstance() + : privilegedAdmissionConfig_; + } + + /** + * + * + *
                                    +   * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +   * admission control.
                                    +   * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + */ + @java.lang.Override + public com.google.container.v1.PrivilegedAdmissionConfigOrBuilder + getPrivilegedAdmissionConfigOrBuilder() { + return privilegedAdmissionConfig_ == null + ? com.google.container.v1.PrivilegedAdmissionConfig.getDefaultInstance() + : privilegedAdmissionConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -155,6 +212,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getWorkloadPolicyConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getPrivilegedAdmissionConfig()); + } getUnknownFields().writeTo(output); } @@ -171,6 +231,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkloadPolicyConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getPrivilegedAdmissionConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -191,6 +256,11 @@ public boolean equals(final java.lang.Object obj) { if (hasWorkloadPolicyConfig()) { if (!getWorkloadPolicyConfig().equals(other.getWorkloadPolicyConfig())) return false; } + if (hasPrivilegedAdmissionConfig() != other.hasPrivilegedAdmissionConfig()) return false; + if (hasPrivilegedAdmissionConfig()) { + if (!getPrivilegedAdmissionConfig().equals(other.getPrivilegedAdmissionConfig())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -208,6 +278,10 @@ public int hashCode() { hash = (37 * hash) + WORKLOAD_POLICY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getWorkloadPolicyConfig().hashCode(); } + if (hasPrivilegedAdmissionConfig()) { + hash = (37 * hash) + PRIVILEGED_ADMISSION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivilegedAdmissionConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -349,6 +423,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWorkloadPolicyConfigFieldBuilder(); + getPrivilegedAdmissionConfigFieldBuilder(); } } @@ -362,6 +437,11 @@ public Builder clear() { workloadPolicyConfigBuilder_.dispose(); workloadPolicyConfigBuilder_ = null; } + privilegedAdmissionConfig_ = null; + if (privilegedAdmissionConfigBuilder_ != null) { + privilegedAdmissionConfigBuilder_.dispose(); + privilegedAdmissionConfigBuilder_ = null; + } return this; } @@ -408,6 +488,13 @@ private void buildPartial0(com.google.container.v1.Autopilot result) { : workloadPolicyConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.privilegedAdmissionConfig_ = + privilegedAdmissionConfigBuilder_ == null + ? privilegedAdmissionConfig_ + : privilegedAdmissionConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -462,6 +549,9 @@ public Builder mergeFrom(com.google.container.v1.Autopilot other) { if (other.hasWorkloadPolicyConfig()) { mergeWorkloadPolicyConfig(other.getWorkloadPolicyConfig()); } + if (other.hasPrivilegedAdmissionConfig()) { + mergePrivilegedAdmissionConfig(other.getPrivilegedAdmissionConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -501,6 +591,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 34: + { + input.readMessage( + getPrivilegedAdmissionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -773,6 +870,215 @@ public com.google.container.v1.WorkloadPolicyConfig.Builder getWorkloadPolicyCon return workloadPolicyConfigBuilder_; } + private com.google.container.v1.PrivilegedAdmissionConfig privilegedAdmissionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivilegedAdmissionConfig, + com.google.container.v1.PrivilegedAdmissionConfig.Builder, + com.google.container.v1.PrivilegedAdmissionConfigOrBuilder> + privilegedAdmissionConfigBuilder_; + + /** + * + * + *
                                    +     * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +     * admission control.
                                    +     * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + * + * @return Whether the privilegedAdmissionConfig field is set. + */ + public boolean hasPrivilegedAdmissionConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                    +     * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +     * admission control.
                                    +     * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + * + * @return The privilegedAdmissionConfig. + */ + public com.google.container.v1.PrivilegedAdmissionConfig getPrivilegedAdmissionConfig() { + if (privilegedAdmissionConfigBuilder_ == null) { + return privilegedAdmissionConfig_ == null + ? com.google.container.v1.PrivilegedAdmissionConfig.getDefaultInstance() + : privilegedAdmissionConfig_; + } else { + return privilegedAdmissionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +     * admission control.
                                    +     * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + */ + public Builder setPrivilegedAdmissionConfig( + com.google.container.v1.PrivilegedAdmissionConfig value) { + if (privilegedAdmissionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privilegedAdmissionConfig_ = value; + } else { + privilegedAdmissionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +     * admission control.
                                    +     * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + */ + public Builder setPrivilegedAdmissionConfig( + com.google.container.v1.PrivilegedAdmissionConfig.Builder builderForValue) { + if (privilegedAdmissionConfigBuilder_ == null) { + privilegedAdmissionConfig_ = builderForValue.build(); + } else { + privilegedAdmissionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +     * admission control.
                                    +     * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + */ + public Builder mergePrivilegedAdmissionConfig( + com.google.container.v1.PrivilegedAdmissionConfig value) { + if (privilegedAdmissionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && privilegedAdmissionConfig_ != null + && privilegedAdmissionConfig_ + != com.google.container.v1.PrivilegedAdmissionConfig.getDefaultInstance()) { + getPrivilegedAdmissionConfigBuilder().mergeFrom(value); + } else { + privilegedAdmissionConfig_ = value; + } + } else { + privilegedAdmissionConfigBuilder_.mergeFrom(value); + } + if (privilegedAdmissionConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +     * admission control.
                                    +     * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + */ + public Builder clearPrivilegedAdmissionConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + privilegedAdmissionConfig_ = null; + if (privilegedAdmissionConfigBuilder_ != null) { + privilegedAdmissionConfigBuilder_.dispose(); + privilegedAdmissionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +     * admission control.
                                    +     * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + */ + public com.google.container.v1.PrivilegedAdmissionConfig.Builder + getPrivilegedAdmissionConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPrivilegedAdmissionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +     * admission control.
                                    +     * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + */ + public com.google.container.v1.PrivilegedAdmissionConfigOrBuilder + getPrivilegedAdmissionConfigOrBuilder() { + if (privilegedAdmissionConfigBuilder_ != null) { + return privilegedAdmissionConfigBuilder_.getMessageOrBuilder(); + } else { + return privilegedAdmissionConfig_ == null + ? com.google.container.v1.PrivilegedAdmissionConfig.getDefaultInstance() + : privilegedAdmissionConfig_; + } + } + + /** + * + * + *
                                    +     * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +     * admission control.
                                    +     * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivilegedAdmissionConfig, + com.google.container.v1.PrivilegedAdmissionConfig.Builder, + com.google.container.v1.PrivilegedAdmissionConfigOrBuilder> + getPrivilegedAdmissionConfigFieldBuilder() { + if (privilegedAdmissionConfigBuilder_ == null) { + privilegedAdmissionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivilegedAdmissionConfig, + com.google.container.v1.PrivilegedAdmissionConfig.Builder, + com.google.container.v1.PrivilegedAdmissionConfigOrBuilder>( + getPrivilegedAdmissionConfig(), getParentForChildren(), isClean()); + privilegedAdmissionConfig_ = null; + } + return privilegedAdmissionConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java index 70957b8b742f..e8b4fdfe0b57 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java @@ -73,4 +73,45 @@ public interface AutopilotOrBuilder * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; */ com.google.container.v1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder(); + + /** + * + * + *
                                    +   * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +   * admission control.
                                    +   * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + * + * @return Whether the privilegedAdmissionConfig field is set. + */ + boolean hasPrivilegedAdmissionConfig(); + + /** + * + * + *
                                    +   * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +   * admission control.
                                    +   * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + * + * @return The privilegedAdmissionConfig. + */ + com.google.container.v1.PrivilegedAdmissionConfig getPrivilegedAdmissionConfig(); + + /** + * + * + *
                                    +   * PrivilegedAdmissionConfig is the configuration related to privileged
                                    +   * admission control.
                                    +   * 
                                    + * + * .google.container.v1.PrivilegedAdmissionConfig privileged_admission_config = 4; + */ + com.google.container.v1.PrivilegedAdmissionConfigOrBuilder + getPrivilegedAdmissionConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java index d7ec53658a89..5e051858c7b2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java @@ -324,7 +324,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=5011 + * deprecated. See google/container/v1/cluster_service.proto;l=5127 * @return The minCpuPlatform. */ @java.lang.Override @@ -361,7 +361,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=5011 + * deprecated. See google/container/v1/cluster_service.proto;l=5127 * @return The bytes for minCpuPlatform. */ @java.lang.Override @@ -2024,7 +2024,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=5011 + * deprecated. See google/container/v1/cluster_service.proto;l=5127 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -2060,7 +2060,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=5011 + * deprecated. See google/container/v1/cluster_service.proto;l=5127 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated @@ -2096,7 +2096,7 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=5011 + * deprecated. See google/container/v1/cluster_service.proto;l=5127 * @param value The minCpuPlatform to set. * @return This builder for chaining. */ @@ -2131,7 +2131,7 @@ public Builder setMinCpuPlatform(java.lang.String value) { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=5011 + * deprecated. See google/container/v1/cluster_service.proto;l=5127 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2162,7 +2162,7 @@ public Builder clearMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=5011 + * deprecated. See google/container/v1/cluster_service.proto;l=5127 * @param value The bytes for minCpuPlatform to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java index fa740b0cb80b..4106515f90ad 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -198,7 +198,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=5011 + * deprecated. See google/container/v1/cluster_service.proto;l=5127 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -224,7 +224,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=5011 + * deprecated. See google/container/v1/cluster_service.proto;l=5127 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java index bed9166c8524..87c82266bd88 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java @@ -242,7 +242,7 @@ private EvaluationMode(int value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=2148 + * google/container/v1/cluster_service.proto;l=2208 * @return The enabled. */ @java.lang.Override @@ -672,7 +672,7 @@ public Builder mergeFrom( * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=2148 + * google/container/v1/cluster_service.proto;l=2208 * @return The enabled. */ @java.lang.Override @@ -693,7 +693,7 @@ public boolean getEnabled() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=2148 + * google/container/v1/cluster_service.proto;l=2208 * @param value The enabled to set. * @return This builder for chaining. */ @@ -718,7 +718,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=2148 + * google/container/v1/cluster_service.proto;l=2208 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java index 7efa76a01388..ee2de1253710 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java @@ -36,7 +36,7 @@ public interface BinaryAuthorizationOrBuilder * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=2148 + * google/container/v1/cluster_service.proto;l=2208 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java index ffc069b0c6d8..98dbf1c18259 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java @@ -1264,6 +1264,849 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface AutoscaledRolloutPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +     * Optional. Time to wait after cordoning the blue pool before draining the
                                    +     * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +     * inclusive.
                                    +     * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the waitForDrainDuration field is set. + */ + boolean hasWaitForDrainDuration(); + + /** + * + * + *
                                    +     * Optional. Time to wait after cordoning the blue pool before draining the
                                    +     * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +     * inclusive.
                                    +     * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The waitForDrainDuration. + */ + com.google.protobuf.Duration getWaitForDrainDuration(); + + /** + * + * + *
                                    +     * Optional. Time to wait after cordoning the blue pool before draining the
                                    +     * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +     * inclusive.
                                    +     * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getWaitForDrainDurationOrBuilder(); + } + + /** + * + * + *
                                    +   * Autoscaled rollout policy utilizes the cluster autoscaler during
                                    +   * blue-green upgrade to scale both the blue and green pools.
                                    +   * 
                                    + * + * Protobuf type {@code google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy} + */ + public static final class AutoscaledRolloutPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) + AutoscaledRolloutPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AutoscaledRolloutPolicy.newBuilder() to construct. + private AutoscaledRolloutPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoscaledRolloutPolicy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoscaledRolloutPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_BlueGreenSettings_AutoscaledRolloutPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.class, + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder.class); + } + + private int bitField0_; + public static final int WAIT_FOR_DRAIN_DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration waitForDrainDuration_; + + /** + * + * + *
                                    +     * Optional. Time to wait after cordoning the blue pool before draining the
                                    +     * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +     * inclusive.
                                    +     * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the waitForDrainDuration field is set. + */ + @java.lang.Override + public boolean hasWaitForDrainDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +     * Optional. Time to wait after cordoning the blue pool before draining the
                                    +     * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +     * inclusive.
                                    +     * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The waitForDrainDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getWaitForDrainDuration() { + return waitForDrainDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitForDrainDuration_; + } + + /** + * + * + *
                                    +     * Optional. Time to wait after cordoning the blue pool before draining the
                                    +     * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +     * inclusive.
                                    +     * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getWaitForDrainDurationOrBuilder() { + return waitForDrainDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitForDrainDuration_; + } + + 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, getWaitForDrainDuration()); + } + 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, getWaitForDrainDuration()); + } + 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.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy)) { + return super.equals(obj); + } + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy other = + (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) obj; + + if (hasWaitForDrainDuration() != other.hasWaitForDrainDuration()) return false; + if (hasWaitForDrainDuration()) { + if (!getWaitForDrainDuration().equals(other.getWaitForDrainDuration())) 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 (hasWaitForDrainDuration()) { + hash = (37 * hash) + WAIT_FOR_DRAIN_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getWaitForDrainDuration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy 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.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +     * Autoscaled rollout policy utilizes the cluster autoscaler during
                                    +     * blue-green upgrade to scale both the blue and green pools.
                                    +     * 
                                    + * + * Protobuf type {@code google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_BlueGreenSettings_AutoscaledRolloutPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.class, + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder.class); + } + + // Construct using + // com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getWaitForDrainDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + waitForDrainDuration_ = null; + if (waitForDrainDurationBuilder_ != null) { + waitForDrainDurationBuilder_.dispose(); + waitForDrainDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + getDefaultInstanceForType() { + return com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy build() { + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy buildPartial() { + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy result = + new com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.waitForDrainDuration_ = + waitForDrainDurationBuilder_ == null + ? waitForDrainDuration_ + : waitForDrainDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) { + return mergeFrom( + (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy other) { + if (other + == com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + .getDefaultInstance()) return this; + if (other.hasWaitForDrainDuration()) { + mergeWaitForDrainDuration(other.getWaitForDrainDuration()); + } + 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( + getWaitForDrainDurationFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.protobuf.Duration waitForDrainDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + waitForDrainDurationBuilder_; + + /** + * + * + *
                                    +       * Optional. Time to wait after cordoning the blue pool before draining the
                                    +       * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +       * inclusive.
                                    +       * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the waitForDrainDuration field is set. + */ + public boolean hasWaitForDrainDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +       * Optional. Time to wait after cordoning the blue pool before draining the
                                    +       * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +       * inclusive.
                                    +       * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The waitForDrainDuration. + */ + public com.google.protobuf.Duration getWaitForDrainDuration() { + if (waitForDrainDurationBuilder_ == null) { + return waitForDrainDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitForDrainDuration_; + } else { + return waitForDrainDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +       * Optional. Time to wait after cordoning the blue pool before draining the
                                    +       * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +       * inclusive.
                                    +       * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWaitForDrainDuration(com.google.protobuf.Duration value) { + if (waitForDrainDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + waitForDrainDuration_ = value; + } else { + waitForDrainDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * Optional. Time to wait after cordoning the blue pool before draining the
                                    +       * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +       * inclusive.
                                    +       * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWaitForDrainDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (waitForDrainDurationBuilder_ == null) { + waitForDrainDuration_ = builderForValue.build(); + } else { + waitForDrainDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * Optional. Time to wait after cordoning the blue pool before draining the
                                    +       * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +       * inclusive.
                                    +       * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWaitForDrainDuration(com.google.protobuf.Duration value) { + if (waitForDrainDurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && waitForDrainDuration_ != null + && waitForDrainDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getWaitForDrainDurationBuilder().mergeFrom(value); + } else { + waitForDrainDuration_ = value; + } + } else { + waitForDrainDurationBuilder_.mergeFrom(value); + } + if (waitForDrainDuration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +       * Optional. Time to wait after cordoning the blue pool before draining the
                                    +       * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +       * inclusive.
                                    +       * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWaitForDrainDuration() { + bitField0_ = (bitField0_ & ~0x00000001); + waitForDrainDuration_ = null; + if (waitForDrainDurationBuilder_ != null) { + waitForDrainDurationBuilder_.dispose(); + waitForDrainDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * Optional. Time to wait after cordoning the blue pool before draining the
                                    +       * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +       * inclusive.
                                    +       * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getWaitForDrainDurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWaitForDrainDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +       * Optional. Time to wait after cordoning the blue pool before draining the
                                    +       * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +       * inclusive.
                                    +       * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getWaitForDrainDurationOrBuilder() { + if (waitForDrainDurationBuilder_ != null) { + return waitForDrainDurationBuilder_.getMessageOrBuilder(); + } else { + return waitForDrainDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitForDrainDuration_; + } + } + + /** + * + * + *
                                    +       * Optional. Time to wait after cordoning the blue pool before draining the
                                    +       * nodes. Defaults to 3 days. The value can be set between 0 and 7 days,
                                    +       * inclusive.
                                    +       * 
                                    + * + * + * .google.protobuf.Duration wait_for_drain_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getWaitForDrainDurationFieldBuilder() { + if (waitForDrainDurationBuilder_ == null) { + waitForDrainDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getWaitForDrainDuration(), getParentForChildren(), isClean()); + waitForDrainDuration_ = null; + } + return waitForDrainDurationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) + private static final com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy(); + } + + public static com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoscaledRolloutPolicy 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.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int rolloutPolicyCase_ = 0; @@ -1275,6 +2118,7 @@ public enum RolloutPolicyCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STANDARD_ROLLOUT_POLICY(1), + AUTOSCALED_ROLLOUT_POLICY(3), ROLLOUTPOLICY_NOT_SET(0); private final int value; @@ -1296,6 +2140,8 @@ public static RolloutPolicyCase forNumber(int value) { switch (value) { case 1: return STANDARD_ROLLOUT_POLICY; + case 3: + return AUTOSCALED_ROLLOUT_POLICY; case 0: return ROLLOUTPOLICY_NOT_SET; default: @@ -1371,6 +2217,68 @@ public boolean hasStandardRolloutPolicy() { return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); } + public static final int AUTOSCALED_ROLLOUT_POLICY_FIELD_NUMBER = 3; + + /** + * + * + *
                                    +   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +   * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + * + * @return Whether the autoscaledRolloutPolicy field is set. + */ + @java.lang.Override + public boolean hasAutoscaledRolloutPolicy() { + return rolloutPolicyCase_ == 3; + } + + /** + * + * + *
                                    +   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +   * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + * + * @return The autoscaledRolloutPolicy. + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + getAutoscaledRolloutPolicy() { + if (rolloutPolicyCase_ == 3) { + return (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance(); + } + + /** + * + * + *
                                    +   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +   * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder + getAutoscaledRolloutPolicyOrBuilder() { + if (rolloutPolicyCase_ == 3) { + return (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance(); + } + public static final int NODE_POOL_SOAK_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration nodePoolSoakDuration_; @@ -1448,6 +2356,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getNodePoolSoakDuration()); } + if (rolloutPolicyCase_ == 3) { + output.writeMessage( + 3, (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_); + } getUnknownFields().writeTo(output); } @@ -1466,6 +2378,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNodePoolSoakDuration()); } + if (rolloutPolicyCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1491,6 +2409,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getStandardRolloutPolicy().equals(other.getStandardRolloutPolicy())) return false; break; + case 3: + if (!getAutoscaledRolloutPolicy().equals(other.getAutoscaledRolloutPolicy())) return false; + break; case 0: default: } @@ -1514,6 +2435,10 @@ public int hashCode() { hash = (37 * hash) + STANDARD_ROLLOUT_POLICY_FIELD_NUMBER; hash = (53 * hash) + getStandardRolloutPolicy().hashCode(); break; + case 3: + hash = (37 * hash) + AUTOSCALED_ROLLOUT_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaledRolloutPolicy().hashCode(); + break; case 0: default: } @@ -1669,6 +2594,9 @@ public Builder clear() { if (standardRolloutPolicyBuilder_ != null) { standardRolloutPolicyBuilder_.clear(); } + if (autoscaledRolloutPolicyBuilder_ != null) { + autoscaledRolloutPolicyBuilder_.clear(); + } nodePoolSoakDuration_ = null; if (nodePoolSoakDurationBuilder_ != null) { nodePoolSoakDurationBuilder_.dispose(); @@ -1714,7 +2642,7 @@ public com.google.container.v1.BlueGreenSettings buildPartial() { private void buildPartial0(com.google.container.v1.BlueGreenSettings result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.nodePoolSoakDuration_ = nodePoolSoakDurationBuilder_ == null ? nodePoolSoakDuration_ @@ -1730,6 +2658,9 @@ private void buildPartialOneofs(com.google.container.v1.BlueGreenSettings result if (rolloutPolicyCase_ == 1 && standardRolloutPolicyBuilder_ != null) { result.rolloutPolicy_ = standardRolloutPolicyBuilder_.build(); } + if (rolloutPolicyCase_ == 3 && autoscaledRolloutPolicyBuilder_ != null) { + result.rolloutPolicy_ = autoscaledRolloutPolicyBuilder_.build(); + } } @java.lang.Override @@ -1786,6 +2717,11 @@ public Builder mergeFrom(com.google.container.v1.BlueGreenSettings other) { mergeStandardRolloutPolicy(other.getStandardRolloutPolicy()); break; } + case AUTOSCALED_ROLLOUT_POLICY: + { + mergeAutoscaledRolloutPolicy(other.getAutoscaledRolloutPolicy()); + break; + } case ROLLOUTPOLICY_NOT_SET: { break; @@ -1828,9 +2764,16 @@ public Builder mergeFrom( { input.readMessage( getNodePoolSoakDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 + case 26: + { + input.readMessage( + getAutoscaledRolloutPolicyFieldBuilder().getBuilder(), extensionRegistry); + rolloutPolicyCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2109,6 +3052,255 @@ public Builder clearStandardRolloutPolicy() { return standardRolloutPolicyBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy, + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder, + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder> + autoscaledRolloutPolicyBuilder_; + + /** + * + * + *
                                    +     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +     * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + * + * @return Whether the autoscaledRolloutPolicy field is set. + */ + @java.lang.Override + public boolean hasAutoscaledRolloutPolicy() { + return rolloutPolicyCase_ == 3; + } + + /** + * + * + *
                                    +     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +     * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + * + * @return The autoscaledRolloutPolicy. + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + getAutoscaledRolloutPolicy() { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 3) { + return (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + .getDefaultInstance(); + } else { + if (rolloutPolicyCase_ == 3) { + return autoscaledRolloutPolicyBuilder_.getMessage(); + } + return com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + .getDefaultInstance(); + } + } + + /** + * + * + *
                                    +     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +     * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + */ + public Builder setAutoscaledRolloutPolicy( + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy value) { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rolloutPolicy_ = value; + onChanged(); + } else { + autoscaledRolloutPolicyBuilder_.setMessage(value); + } + rolloutPolicyCase_ = 3; + return this; + } + + /** + * + * + *
                                    +     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +     * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + */ + public Builder setAutoscaledRolloutPolicy( + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder builderForValue) { + if (autoscaledRolloutPolicyBuilder_ == null) { + rolloutPolicy_ = builderForValue.build(); + onChanged(); + } else { + autoscaledRolloutPolicyBuilder_.setMessage(builderForValue.build()); + } + rolloutPolicyCase_ = 3; + return this; + } + + /** + * + * + *
                                    +     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +     * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + */ + public Builder mergeAutoscaledRolloutPolicy( + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy value) { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 3 + && rolloutPolicy_ + != com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + .getDefaultInstance()) { + rolloutPolicy_ = + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.newBuilder( + (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) + rolloutPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + rolloutPolicy_ = value; + } + onChanged(); + } else { + if (rolloutPolicyCase_ == 3) { + autoscaledRolloutPolicyBuilder_.mergeFrom(value); + } else { + autoscaledRolloutPolicyBuilder_.setMessage(value); + } + } + rolloutPolicyCase_ = 3; + return this; + } + + /** + * + * + *
                                    +     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +     * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + */ + public Builder clearAutoscaledRolloutPolicy() { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 3) { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + onChanged(); + } + } else { + if (rolloutPolicyCase_ == 3) { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + } + autoscaledRolloutPolicyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                    +     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +     * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + */ + public com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder + getAutoscaledRolloutPolicyBuilder() { + return getAutoscaledRolloutPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +     * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder + getAutoscaledRolloutPolicyOrBuilder() { + if ((rolloutPolicyCase_ == 3) && (autoscaledRolloutPolicyBuilder_ != null)) { + return autoscaledRolloutPolicyBuilder_.getMessageOrBuilder(); + } else { + if (rolloutPolicyCase_ == 3) { + return (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + .getDefaultInstance(); + } + } + + /** + * + * + *
                                    +     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +     * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy, + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder, + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder> + getAutoscaledRolloutPolicyFieldBuilder() { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (!(rolloutPolicyCase_ == 3)) { + rolloutPolicy_ = + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy + .getDefaultInstance(); + } + autoscaledRolloutPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy, + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder, + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder>( + (com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_, + getParentForChildren(), + isClean()); + rolloutPolicy_ = null; + } + rolloutPolicyCase_ = 3; + onChanged(); + return autoscaledRolloutPolicyBuilder_; + } + private com.google.protobuf.Duration nodePoolSoakDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -2129,7 +3321,7 @@ public Builder clearStandardRolloutPolicy() { * @return Whether the nodePoolSoakDuration field is set. */ public boolean hasNodePoolSoakDuration() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -2173,7 +3365,7 @@ public Builder setNodePoolSoakDuration(com.google.protobuf.Duration value) { } else { nodePoolSoakDurationBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2194,7 +3386,7 @@ public Builder setNodePoolSoakDuration(com.google.protobuf.Duration.Builder buil } else { nodePoolSoakDurationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2211,7 +3403,7 @@ public Builder setNodePoolSoakDuration(com.google.protobuf.Duration.Builder buil */ public Builder mergeNodePoolSoakDuration(com.google.protobuf.Duration value) { if (nodePoolSoakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && nodePoolSoakDuration_ != null && nodePoolSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getNodePoolSoakDurationBuilder().mergeFrom(value); @@ -2222,7 +3414,7 @@ public Builder mergeNodePoolSoakDuration(com.google.protobuf.Duration value) { nodePoolSoakDurationBuilder_.mergeFrom(value); } if (nodePoolSoakDuration_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -2239,7 +3431,7 @@ public Builder mergeNodePoolSoakDuration(com.google.protobuf.Duration value) { * optional .google.protobuf.Duration node_pool_soak_duration = 2; */ public Builder clearNodePoolSoakDuration() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); nodePoolSoakDuration_ = null; if (nodePoolSoakDurationBuilder_ != null) { nodePoolSoakDurationBuilder_.dispose(); @@ -2260,7 +3452,7 @@ public Builder clearNodePoolSoakDuration() { * optional .google.protobuf.Duration node_pool_soak_duration = 2; */ public com.google.protobuf.Duration.Builder getNodePoolSoakDurationBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getNodePoolSoakDurationFieldBuilder().getBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java index f9781d3648ac..c7dc496c5c36 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java @@ -65,6 +65,50 @@ public interface BlueGreenSettingsOrBuilder com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder getStandardRolloutPolicyOrBuilder(); + /** + * + * + *
                                    +   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +   * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + * + * @return Whether the autoscaledRolloutPolicy field is set. + */ + boolean hasAutoscaledRolloutPolicy(); + + /** + * + * + *
                                    +   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +   * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + * + * @return The autoscaledRolloutPolicy. + */ + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy getAutoscaledRolloutPolicy(); + + /** + * + * + *
                                    +   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
                                    +   * 
                                    + * + * + * .google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * + */ + com.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder + getAutoscaledRolloutPolicyOrBuilder(); + /** * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java index 1deb4e6486cb..0b4bca7b1d4c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4170 + * google/container/v1/cluster_service.proto;l=4259 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4170 + * google/container/v1/cluster_service.proto;l=4259 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4176 + * google/container/v1/cluster_service.proto;l=4265 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4176 + * google/container/v1/cluster_service.proto;l=4265 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4180 + * google/container/v1/cluster_service.proto;l=4269 * @return The operationId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4180 + * google/container/v1/cluster_service.proto;l=4269 * @return The bytes for operationId. */ @java.lang.Override @@ -739,7 +739,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4170 + * google/container/v1/cluster_service.proto;l=4259 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4170 + * google/container/v1/cluster_service.proto;l=4259 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -795,7 +795,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4170 + * google/container/v1/cluster_service.proto;l=4259 * @param value The projectId to set. * @return This builder for chaining. */ @@ -822,7 +822,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4170 + * google/container/v1/cluster_service.proto;l=4259 * @return This builder for chaining. */ @java.lang.Deprecated @@ -845,7 +845,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4170 + * google/container/v1/cluster_service.proto;l=4259 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4176 + * google/container/v1/cluster_service.proto;l=4265 * @return The zone. */ @java.lang.Deprecated @@ -905,7 +905,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4176 + * google/container/v1/cluster_service.proto;l=4265 * @return The bytes for zone. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4176 + * google/container/v1/cluster_service.proto;l=4265 * @param value The zone to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4176 + * google/container/v1/cluster_service.proto;l=4265 * @return This builder for chaining. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4176 + * google/container/v1/cluster_service.proto;l=4265 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1015,7 +1015,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4180 + * google/container/v1/cluster_service.proto;l=4269 * @return The operationId. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4180 + * google/container/v1/cluster_service.proto;l=4269 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1069,7 +1069,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4180 + * google/container/v1/cluster_service.proto;l=4269 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1095,7 +1095,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4180 + * google/container/v1/cluster_service.proto;l=4269 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4180 + * google/container/v1/cluster_service.proto;l=4269 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java index df861bc62cd0..010ba8352f0c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4170 + * google/container/v1/cluster_service.proto;l=4259 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4170 + * google/container/v1/cluster_service.proto;l=4259 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4176 + * google/container/v1/cluster_service.proto;l=4265 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4176 + * google/container/v1/cluster_service.proto;l=4265 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4180 + * google/container/v1/cluster_service.proto;l=4269 * @return The operationId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4180 + * google/container/v1/cluster_service.proto;l=4269 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java index 556a7d999490..b849363a8402 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -506,7 +506,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2391 + * google/container/v1/cluster_service.proto;l=2456 * @return The initialNodeCount. */ @java.lang.Override @@ -538,7 +538,7 @@ public int getInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2404 + * google/container/v1/cluster_service.proto;l=2469 * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -567,7 +567,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2404 + * google/container/v1/cluster_service.proto;l=2469 * @return The nodeConfig. */ @java.lang.Override @@ -1682,7 +1682,7 @@ public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicy *
                                    * * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2511 + * google/container/v1/cluster_service.proto;l=2576 * @return Whether the masterAuthorizedNetworksConfig field is set. */ @java.lang.Override @@ -1707,7 +1707,7 @@ public boolean hasMasterAuthorizedNetworksConfig() { *
                                    * * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2511 + * google/container/v1/cluster_service.proto;l=2576 * @return The masterAuthorizedNetworksConfig. */ @java.lang.Override @@ -2413,8 +2413,7 @@ public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilde * * *
                                    -   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -   * policies.
                                    +   * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                        * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -2430,8 +2429,7 @@ public boolean hasWorkloadIdentityConfig() { * * *
                                    -   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -   * policies.
                                    +   * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                        * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -2449,8 +2447,7 @@ public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig( * * *
                                    -   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -   * policies.
                                    +   * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                        * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -2806,7 +2803,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2586 + * google/container/v1/cluster_service.proto;l=2650 * @return The zone. */ @java.lang.Override @@ -2836,7 +2833,7 @@ public java.lang.String getZone() { * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2586 + * google/container/v1/cluster_service.proto;l=2650 * @return The bytes for zone. */ @java.lang.Override @@ -3067,7 +3064,7 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { *
                                    * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=2621 + * google/container/v1/cluster_service.proto;l=2685 * @return The currentNodeVersion. */ @java.lang.Override @@ -3100,7 +3097,7 @@ public java.lang.String getCurrentNodeVersion() { *
                                    * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=2621 + * google/container/v1/cluster_service.proto;l=2685 * @return The bytes for currentNodeVersion. */ @java.lang.Override @@ -3232,7 +3229,7 @@ public com.google.container.v1.Cluster.Status getStatus() { *
                                    * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2634 + * google/container/v1/cluster_service.proto;l=2698 * @return The statusMessage. */ @java.lang.Override @@ -3263,7 +3260,7 @@ public java.lang.String getStatusMessage() { *
                                    * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2634 + * google/container/v1/cluster_service.proto;l=2698 * @return The bytes for statusMessage. */ @java.lang.Override @@ -3381,7 +3378,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -3401,7 +3398,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -3421,7 +3418,7 @@ public int getInstanceGroupUrlsCount() { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -3442,7 +3439,7 @@ public java.lang.String getInstanceGroupUrls(int index) { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -3467,7 +3464,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { *
                                    * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2720 * @return The currentNodeCount. */ @java.lang.Override @@ -3607,7 +3604,7 @@ public com.google.protobuf.ByteString getLocationBytes() { * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1.Cluster.enable_tpu is deprecated. See - * google/container/v1/cluster_service.proto;l=2673 + * google/container/v1/cluster_service.proto;l=2737 * @return The enableTpu. */ @java.lang.Override @@ -3637,7 +3634,7 @@ public boolean getEnableTpu() { *
                                    * * @deprecated google.container.v1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2680 + * google/container/v1/cluster_service.proto;l=2744 * @return The tpuIpv4CidrBlock. */ @java.lang.Override @@ -3670,7 +3667,7 @@ public java.lang.String getTpuIpv4CidrBlock() { *
                                    * * @deprecated google.container.v1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2680 + * google/container/v1/cluster_service.proto;l=2744 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Override @@ -4414,13 +4411,19 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrB * *
                                        * GKE Enterprise Configuration.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; * + * @deprecated google.container.v1.Cluster.enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2794 * @return Whether the enterpriseConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasEnterpriseConfig() { return ((bitField1_ & 0x00000008) != 0); } @@ -4430,13 +4433,19 @@ public boolean hasEnterpriseConfig() { * *
                                        * GKE Enterprise Configuration.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; * + * @deprecated google.container.v1.Cluster.enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2794 * @return The enterpriseConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.EnterpriseConfig getEnterpriseConfig() { return enterpriseConfig_ == null ? com.google.container.v1.EnterpriseConfig.getDefaultInstance() @@ -4448,11 +4457,15 @@ public com.google.container.v1.EnterpriseConfig getEnterpriseConfig() { * *
                                        * GKE Enterprise Configuration.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { return enterpriseConfig_ == null ? com.google.container.v1.EnterpriseConfig.getDefaultInstance() @@ -8048,7 +8061,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2391 + * google/container/v1/cluster_service.proto;l=2456 * @return The initialNodeCount. */ @java.lang.Override @@ -8077,7 +8090,7 @@ public int getInitialNodeCount() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2391 + * google/container/v1/cluster_service.proto;l=2456 * @param value The initialNodeCount to set. * @return This builder for chaining. */ @@ -8110,7 +8123,7 @@ public Builder setInitialNodeCount(int value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2391 + * google/container/v1/cluster_service.proto;l=2456 * @return This builder for chaining. */ @java.lang.Deprecated @@ -8148,7 +8161,7 @@ public Builder clearInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2404 + * google/container/v1/cluster_service.proto;l=2469 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -8176,7 +8189,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2404 + * google/container/v1/cluster_service.proto;l=2469 * @return The nodeConfig. */ @java.lang.Deprecated @@ -11383,7 +11396,7 @@ public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicy *
                                    * * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2511 + * google/container/v1/cluster_service.proto;l=2576 * @return Whether the masterAuthorizedNetworksConfig field is set. */ @java.lang.Deprecated @@ -11407,7 +11420,7 @@ public boolean hasMasterAuthorizedNetworksConfig() { *
                                    * * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2511 + * google/container/v1/cluster_service.proto;l=2576 * @return The masterAuthorizedNetworksConfig. */ @java.lang.Deprecated @@ -14078,8 +14091,7 @@ public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilde * * *
                                    -     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -     * policies.
                                    +     * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                          * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -14094,8 +14106,7 @@ public boolean hasWorkloadIdentityConfig() { * * *
                                    -     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -     * policies.
                                    +     * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                          * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -14116,8 +14127,7 @@ public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig( * * *
                                    -     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -     * policies.
                                    +     * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                          * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -14140,8 +14150,7 @@ public Builder setWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentit * * *
                                    -     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -     * policies.
                                    +     * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                          * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -14162,8 +14171,7 @@ public Builder setWorkloadIdentityConfig( * * *
                                    -     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -     * policies.
                                    +     * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                          * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -14193,8 +14201,7 @@ public Builder mergeWorkloadIdentityConfig( * * *
                                    -     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -     * policies.
                                    +     * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                          * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -14214,8 +14221,7 @@ public Builder clearWorkloadIdentityConfig() { * * *
                                    -     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -     * policies.
                                    +     * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                          * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -14231,8 +14237,7 @@ public Builder clearWorkloadIdentityConfig() { * * *
                                    -     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -     * policies.
                                    +     * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                          * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -14252,8 +14257,7 @@ public Builder clearWorkloadIdentityConfig() { * * *
                                    -     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -     * policies.
                                    +     * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                          * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -15401,7 +15405,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { *
                                    * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2586 + * google/container/v1/cluster_service.proto;l=2650 * @return The zone. */ @java.lang.Deprecated @@ -15431,7 +15435,7 @@ public java.lang.String getZone() { *
                                    * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2586 + * google/container/v1/cluster_service.proto;l=2650 * @return The bytes for zone. */ @java.lang.Deprecated @@ -15461,7 +15465,7 @@ public com.google.protobuf.ByteString getZoneBytes() { *
                                    * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2586 + * google/container/v1/cluster_service.proto;l=2650 * @param value The zone to set. * @return This builder for chaining. */ @@ -15490,7 +15494,7 @@ public Builder setZone(java.lang.String value) { *
                                    * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2586 + * google/container/v1/cluster_service.proto;l=2650 * @return This builder for chaining. */ @java.lang.Deprecated @@ -15515,7 +15519,7 @@ public Builder clearZone() { *
                                    * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2586 + * google/container/v1/cluster_service.proto;l=2650 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -15972,7 +15976,7 @@ public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value *
                                    * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=2621 + * google/container/v1/cluster_service.proto;l=2685 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -16004,7 +16008,7 @@ public java.lang.String getCurrentNodeVersion() { *
                                    * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=2621 + * google/container/v1/cluster_service.proto;l=2685 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -16036,7 +16040,7 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { *
                                    * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=2621 + * google/container/v1/cluster_service.proto;l=2685 * @param value The currentNodeVersion to set. * @return This builder for chaining. */ @@ -16067,7 +16071,7 @@ public Builder setCurrentNodeVersion(java.lang.String value) { *
                                    * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=2621 + * google/container/v1/cluster_service.proto;l=2685 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16094,7 +16098,7 @@ public Builder clearCurrentNodeVersion() { *
                                    * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=2621 + * google/container/v1/cluster_service.proto;l=2685 * @param value The bytes for currentNodeVersion to set. * @return This builder for chaining. */ @@ -16347,7 +16351,7 @@ public Builder clearStatus() { *
                                    * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2634 + * google/container/v1/cluster_service.proto;l=2698 * @return The statusMessage. */ @java.lang.Deprecated @@ -16377,7 +16381,7 @@ public java.lang.String getStatusMessage() { *
                                    * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2634 + * google/container/v1/cluster_service.proto;l=2698 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -16407,7 +16411,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
                                    * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2634 + * google/container/v1/cluster_service.proto;l=2698 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -16436,7 +16440,7 @@ public Builder setStatusMessage(java.lang.String value) { *
                                    * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2634 + * google/container/v1/cluster_service.proto;l=2698 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16461,7 +16465,7 @@ public Builder clearStatusMessage() { *
                                    * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2634 + * google/container/v1/cluster_service.proto;l=2698 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -16695,7 +16699,7 @@ private void ensureInstanceGroupUrlsIsMutable() { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -16716,7 +16720,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -16736,7 +16740,7 @@ public int getInstanceGroupUrlsCount() { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -16757,7 +16761,7 @@ public java.lang.String getInstanceGroupUrls(int index) { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -16778,7 +16782,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param index The index to set the value at. * @param value The instanceGroupUrls to set. * @return This builder for chaining. @@ -16807,7 +16811,7 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param value The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -16835,7 +16839,7 @@ public Builder addInstanceGroupUrls(java.lang.String value) { *
                                    * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param values The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -16860,7 +16864,7 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16884,7 +16888,7 @@ public Builder clearInstanceGroupUrls() { * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param value The bytes of the instanceGroupUrls to add. * @return This builder for chaining. */ @@ -16916,7 +16920,7 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2720 * @return The currentNodeCount. */ @java.lang.Override @@ -16938,7 +16942,7 @@ public int getCurrentNodeCount() { * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2720 * @param value The currentNodeCount to set. * @return This builder for chaining. */ @@ -16964,7 +16968,7 @@ public Builder setCurrentNodeCount(int value) { * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2720 * @return This builder for chaining. */ @java.lang.Deprecated @@ -17236,7 +17240,7 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1.Cluster.enable_tpu is deprecated. See - * google/container/v1/cluster_service.proto;l=2673 + * google/container/v1/cluster_service.proto;l=2737 * @return The enableTpu. */ @java.lang.Override @@ -17257,7 +17261,7 @@ public boolean getEnableTpu() { * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1.Cluster.enable_tpu is deprecated. See - * google/container/v1/cluster_service.proto;l=2673 + * google/container/v1/cluster_service.proto;l=2737 * @param value The enableTpu to set. * @return This builder for chaining. */ @@ -17282,7 +17286,7 @@ public Builder setEnableTpu(boolean value) { * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1.Cluster.enable_tpu is deprecated. See - * google/container/v1/cluster_service.proto;l=2673 + * google/container/v1/cluster_service.proto;l=2737 * @return This builder for chaining. */ @java.lang.Deprecated @@ -17311,7 +17315,7 @@ public Builder clearEnableTpu() { * * * @deprecated google.container.v1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2680 + * google/container/v1/cluster_service.proto;l=2744 * @return The tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -17343,7 +17347,7 @@ public java.lang.String getTpuIpv4CidrBlock() { * * * @deprecated google.container.v1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2680 + * google/container/v1/cluster_service.proto;l=2744 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -17375,7 +17379,7 @@ public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { * * * @deprecated google.container.v1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2680 + * google/container/v1/cluster_service.proto;l=2744 * @param value The tpuIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -17406,7 +17410,7 @@ public Builder setTpuIpv4CidrBlock(java.lang.String value) { * * * @deprecated google.container.v1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2680 + * google/container/v1/cluster_service.proto;l=2744 * @return This builder for chaining. */ @java.lang.Deprecated @@ -17433,7 +17437,7 @@ public Builder clearTpuIpv4CidrBlock() { * * * @deprecated google.container.v1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2680 + * google/container/v1/cluster_service.proto;l=2744 * @param value The bytes for tpuIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -20038,12 +20042,19 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrB * *
                                          * GKE Enterprise Configuration.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; + * * + * @deprecated google.container.v1.Cluster.enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2794 * @return Whether the enterpriseConfig field is set. */ + @java.lang.Deprecated public boolean hasEnterpriseConfig() { return ((bitField2_ & 0x00000020) != 0); } @@ -20053,12 +20064,19 @@ public boolean hasEnterpriseConfig() { * *
                                          * GKE Enterprise Configuration.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; + * * + * @deprecated google.container.v1.Cluster.enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2794 * @return The enterpriseConfig. */ + @java.lang.Deprecated public com.google.container.v1.EnterpriseConfig getEnterpriseConfig() { if (enterpriseConfigBuilder_ == null) { return enterpriseConfig_ == null @@ -20074,10 +20092,15 @@ public com.google.container.v1.EnterpriseConfig getEnterpriseConfig() { * *
                                          * GKE Enterprise Configuration.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setEnterpriseConfig(com.google.container.v1.EnterpriseConfig value) { if (enterpriseConfigBuilder_ == null) { if (value == null) { @@ -20097,10 +20120,15 @@ public Builder setEnterpriseConfig(com.google.container.v1.EnterpriseConfig valu * *
                                          * GKE Enterprise Configuration.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setEnterpriseConfig( com.google.container.v1.EnterpriseConfig.Builder builderForValue) { if (enterpriseConfigBuilder_ == null) { @@ -20118,10 +20146,15 @@ public Builder setEnterpriseConfig( * *
                                          * GKE Enterprise Configuration.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeEnterpriseConfig(com.google.container.v1.EnterpriseConfig value) { if (enterpriseConfigBuilder_ == null) { if (((bitField2_ & 0x00000020) != 0) @@ -20146,10 +20179,15 @@ public Builder mergeEnterpriseConfig(com.google.container.v1.EnterpriseConfig va * *
                                          * GKE Enterprise Configuration.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearEnterpriseConfig() { bitField2_ = (bitField2_ & ~0x00000020); enterpriseConfig_ = null; @@ -20166,10 +20204,15 @@ public Builder clearEnterpriseConfig() { * *
                                          * GKE Enterprise Configuration.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.EnterpriseConfig.Builder getEnterpriseConfigBuilder() { bitField2_ |= 0x00000020; onChanged(); @@ -20181,10 +20224,15 @@ public com.google.container.v1.EnterpriseConfig.Builder getEnterpriseConfigBuild * *
                                          * GKE Enterprise Configuration.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { if (enterpriseConfigBuilder_ != null) { return enterpriseConfigBuilder_.getMessageOrBuilder(); @@ -20200,9 +20248,13 @@ public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBu * *
                                          * GKE Enterprise Configuration.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.EnterpriseConfig, diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java index 3b448f056484..8d99fbce584c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -108,7 +108,7 @@ public interface ClusterOrBuilder * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2391 + * google/container/v1/cluster_service.proto;l=2456 * @return The initialNodeCount. */ @java.lang.Deprecated @@ -134,7 +134,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2404 + * google/container/v1/cluster_service.proto;l=2469 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2404 + * google/container/v1/cluster_service.proto;l=2469 * @return The nodeConfig. */ @java.lang.Deprecated @@ -920,7 +920,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2511 + * google/container/v1/cluster_service.proto;l=2576 * @return Whether the masterAuthorizedNetworksConfig field is set. */ @java.lang.Deprecated @@ -942,7 +942,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.master_authorized_networks_config is deprecated. See - * google/container/v1/cluster_service.proto;l=2511 + * google/container/v1/cluster_service.proto;l=2576 * @return The masterAuthorizedNetworksConfig. */ @java.lang.Deprecated @@ -1441,8 +1441,7 @@ java.lang.String getResourceLabelsOrDefault( * * *
                                    -   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -   * policies.
                                    +   * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                        * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -1455,8 +1454,7 @@ java.lang.String getResourceLabelsOrDefault( * * *
                                    -   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -   * policies.
                                    +   * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                        * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -1469,8 +1467,7 @@ java.lang.String getResourceLabelsOrDefault( * * *
                                    -   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -   * policies.
                                    +   * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                        * 
                                    * * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; @@ -1707,7 +1704,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2586 + * google/container/v1/cluster_service.proto;l=2650 * @return The zone. */ @java.lang.Deprecated @@ -1726,7 +1723,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2586 + * google/container/v1/cluster_service.proto;l=2650 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1860,7 +1857,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=2621 + * google/container/v1/cluster_service.proto;l=2685 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -1882,7 +1879,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=2621 + * google/container/v1/cluster_service.proto;l=2685 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -1960,7 +1957,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2634 + * google/container/v1/cluster_service.proto;l=2698 * @return The statusMessage. */ @java.lang.Deprecated @@ -1980,7 +1977,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2634 + * google/container/v1/cluster_service.proto;l=2698 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -2048,7 +2045,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -2066,7 +2063,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -2084,7 +2081,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -2103,7 +2100,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=2651 + * google/container/v1/cluster_service.proto;l=2715 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -2123,7 +2120,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2720 * @return The currentNodeCount. */ @java.lang.Deprecated @@ -2203,7 +2200,7 @@ java.lang.String getResourceLabelsOrDefault( * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1.Cluster.enable_tpu is deprecated. See - * google/container/v1/cluster_service.proto;l=2673 + * google/container/v1/cluster_service.proto;l=2737 * @return The enableTpu. */ @java.lang.Deprecated @@ -2225,7 +2222,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2680 + * google/container/v1/cluster_service.proto;l=2744 * @return The tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -2247,7 +2244,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2680 + * google/container/v1/cluster_service.proto;l=2744 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -2750,12 +2747,18 @@ java.lang.String getResourceLabelsOrDefault( * *
                                        * GKE Enterprise Configuration.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; * + * @deprecated google.container.v1.Cluster.enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2794 * @return Whether the enterpriseConfig field is set. */ + @java.lang.Deprecated boolean hasEnterpriseConfig(); /** @@ -2763,12 +2766,18 @@ java.lang.String getResourceLabelsOrDefault( * *
                                        * GKE Enterprise Configuration.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; * + * @deprecated google.container.v1.Cluster.enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=2794 * @return The enterpriseConfig. */ + @java.lang.Deprecated com.google.container.v1.EnterpriseConfig getEnterpriseConfig(); /** @@ -2776,10 +2785,14 @@ java.lang.String getResourceLabelsOrDefault( * *
                                        * GKE Enterprise Configuration.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * .google.container.v1.EnterpriseConfig enterprise_config = 149 [deprecated = true]; */ + @java.lang.Deprecated com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder(); /** diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java index ae0cbf500a3e..f37fd98fda65 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_LinuxNodeConfig_HugepagesConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_LinuxNodeConfig_HugepagesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LinuxNodeConfig_NodeKernelModuleLoading_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LinuxNodeConfig_NodeKernelModuleLoading_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -144,6 +148,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ContainerdConfig_WritableCgroups_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ContainerdConfig_WritableCgroups_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_NodeTaint_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -484,6 +492,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_BlueGreenSettings_AutoscaledRolloutPolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_NodePool_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -812,6 +824,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_Autopilot_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_Autopilot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_PrivilegedAdmissionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_PrivilegedAdmissionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_WorkloadPolicyConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -904,6 +920,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_SecretManagerConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_SecretManagerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SecretManagerConfig_RotationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SecretManagerConfig_RotationConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_BootDisk_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -940,6 +960,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_GkeAutoUpgradeConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_GkeAutoUpgradeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NetworkTierConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NetworkTierConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -957,8 +981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/resource.proto\032\036google/protobuf/dur" + "ation.proto\032\033google/protobuf/empty.proto" + "\032\037google/protobuf/timestamp.proto\032\036googl" - + "e/protobuf/wrappers.proto\032\025google/rpc/code.proto\032\027google/rpc/status.proto\"\274" - + "\t\n" + + "e/protobuf/wrappers.proto\032\025google/rpc/code.proto\032\027google/rpc/status.proto\"\365\013\n" + "\017LinuxNodeConfig\022B\n" + "\007sysctls\030\001 \003(\01321.google." + "container.v1.LinuxNodeConfig.SysctlsEntry\022D\n" @@ -969,12 +992,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034transparent_hugepage_enabled\030\004 \001(\0162?.googl" + "e.container.v1.LinuxNodeConfig.TransparentHugepageEnabledB\003\340A\001\022h\n" + "\033transparent_hugepage_defrag\030\005 \001(\0162>.google.container.v" - + "1.LinuxNodeConfig.TransparentHugepageDefragB\003\340A\001\032\177\n" + + "1.LinuxNodeConfig.TransparentHugepageDefragB\003\340A\001\022e\n" + + "\032node_kernel_module_loading\030\r" + + " \001(\0132<.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoadingB\003\340A\001\032\177\n" + "\017HugepagesConfig\022!\n" + "\017hugepage_size2m\030\001 \001(\005B\003\340A\001H\000\210\001\001\022!\n" + "\017hugepage_size1g\030\002 \001(\005B\003\340A\001H\001\210\001\001B\022\n" + "\020_hugepage_size2mB\022\n" - + "\020_hugepage_size1g\032.\n" + + "\020_hugepage_size1g\032\317\001\n" + + "\027NodeKernelModuleLoading\022S\n" + + "\006policy\030\001" + + " \001(\0162C.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy\"_\n" + + "\006Policy\022\026\n" + + "\022POLICY_UNSPECIFIED\020\000\022\032\n" + + "\026ENFORCE_SIGNED_MODULES\020\001\022!\n" + + "\035DO_NOT_ENFORCE_SIGNED_MODULES\020\002\032.\n" + "\014SysctlsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"Q\n\n" @@ -1024,8 +1056,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132$.google.container.v1.EvictionSignalsB\003\340A\001\022Q\n" + "\032eviction_soft_grace_period\030\022" + " \001(\0132(.google.container.v1.EvictionGracePeriodB\003\340A\001\022R\n" - + "\030eviction_minimum_reclaim\030\023 \001(\0132+.google.c" - + "ontainer.v1.EvictionMinimumReclaimB\003\340A\001\0222\n" + + "\030eviction_minimum_reclaim\030\023" + + " \001(\0132+.google.container.v1.EvictionMinimumReclaimB\003\340A\001\0222\n" + "%eviction_max_pod_grace_period_seconds\030\024 \001(\005B\003\340A\001\022%\n" + "\030max_parallel_image_pulls\030\025 \001(\005B\003\340A\001\022)\n" + "\027single_process_oom_kill\030\026 \001(\010B\003\340A\001H\001\210\001\001B)\n" @@ -1062,8 +1094,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014disk_size_gb\030\002 \001(\005\022\024\n" + "\014oauth_scopes\030\003 \003(\t\022\027\n" + "\017service_account\030\t \001(\t\022?\n" - + "\010metadata\030\004" - + " \003(\0132-.google.container.v1.NodeConfig.MetadataEntry\022\022\n\n" + + "\010metadata\030\004 \003" + + "(\0132-.google.container.v1.NodeConfig.MetadataEntry\022\022\n\n" + "image_type\030\005 \001(\t\022;\n" + "\006labels\030\006 \003(\0132+.google.container.v1.NodeConfig.LabelsEntry\022\027\n" + "\017local_ssd_count\030\007 \001(\005\022\014\n" @@ -1094,14 +1126,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022confidential_nodes\030# \001(\0132&.google.container.v1.ConfidentialNodes\0229\n" + "\013fast_socket\030$" + " \001(\0132\037.google.container.v1.FastSocketH\000\210\001\001\022L\n" - + "\017resource_labels\030%" - + " \003(\01323.google.container.v1.NodeConfig.ResourceLabelsEntry\022B\n" + + "\017resource_labels\030% \003(\013" + + "23.google.container.v1.NodeConfig.ResourceLabelsEntry\022B\n" + "\016logging_config\030& \001(\0132*.google.container.v1.NodePoolLoggingConfig\022C\n" + "\023windows_node_config\030\' \001(\0132&.google.container.v1.WindowsNodeConfig\022Q\n" - + "\033local_nvme_ssd_block_config\030( \001(\0132,.goo" - + "gle.container.v1.LocalNvmeSsdBlockConfig\022_\n" - + "\"ephemeral_storage_local_ssd_config\030)" - + " \001(\01323.google.container.v1.EphemeralStorageLocalSsdConfig\022A\n" + + "\033local_nvme_ssd_block_config\030(" + + " \001(\0132,.google.container.v1.LocalNvmeSsdBlockConfig\022_\n" + + "\"ephemeral_storage_local_ssd_config\030) \001(\01323." + + "google.container.v1.EphemeralStorageLocalSsdConfig\022A\n" + "\022sole_tenant_config\030* \001(\0132%.google.container.v1.SoleTenantConfig\022@\n" + "\021containerd_config\030+ \001(\0132%.google.container.v1.ContainerdConfig\022G\n" + "\025resource_manager_tags\030-" @@ -1110,17 +1142,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024secondary_boot_disks\0300" + " \003(\0132&.google.container.v1.SecondaryBootDisk\022\025\n\r" + "storage_pools\0301 \003(\t\022f\n" - + "#secondary_boot_disk_update_strategy\0302 " - + "\001(\01324.google.container.v1.SecondaryBootDiskUpdateStrategyH\001\210\001\001\0223\n" + + "#secondary_boot_disk_update_strategy\0302 \001(\01324.g" + + "oogle.container.v1.SecondaryBootDiskUpdateStrategyH\001\210\001\001\0223\n" + "\020max_run_duration\0305 \001(\0132\031.google.protobuf.Duration\022^\n" - + "\031local_ssd_encryption_mode\0306 \001(\01626.google." - + "container.v1.NodeConfig.LocalSsdEncryptionModeH\002\210\001\001\022W\n" - + "\025effective_cgroup_mode\0307 \001" - + "(\01623.google.container.v1.NodeConfig.EffectiveCgroupModeB\003\340A\003\022\027\n\n" + + "\031local_ssd_encryption_mode\0306 \001(\01626.google.contain" + + "er.v1.NodeConfig.LocalSsdEncryptionModeH\002\210\001\001\022W\n" + + "\025effective_cgroup_mode\0307 \001(\01623.go" + + "ogle.container.v1.NodeConfig.EffectiveCgroupModeB\003\340A\003\022\027\n\n" + "flex_start\0308 \001(\010H\003\210\001\001\0220\n" + "\tboot_disk\0309 \001(\0132\035.google.container.v1.BootDisk\032/\n\r" + "MetadataEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -1143,8 +1176,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027AdvancedMachineFeatures\022\035\n" + "\020threads_per_core\030\001 \001(\003H\000\210\001\001\022)\n" + "\034enable_nested_virtualization\030\002 \001(\010H\001\210\001\001\022p\n" - + "\033performance_monitoring_unit\030\003 \001(\0162F.google.container.v1.Advan" - + "cedMachineFeatures.PerformanceMonitoringUnitH\002\210\001\001\"w\n" + + "\033performance_monitoring_unit\030\003 \001(\0162F.google.container.v1.AdvancedMach" + + "ineFeatures.PerformanceMonitoringUnitH\002\210\001\001\"w\n" + "\031PerformanceMonitoringUnit\022+\n" + "\'PERFORMANCE_MONITORING_UNIT_UNSPECIFIED\020\000\022\021\n\r" + "ARCHITECTURAL\020\001\022\014\n" @@ -1152,25 +1185,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010ENHANCED\020\003B\023\n" + "\021_threads_per_coreB\037\n" + "\035_enable_nested_virtualizationB\036\n" - + "\034_performance_monitoring_unit\"\314\006\n" + + "\034_performance_monitoring_unit\"\226\007\n" + "\021NodeNetworkConfig\022\035\n" + "\020create_pod_range\030\004 \001(\010B\003\340A\004\022\021\n" + "\tpod_range\030\005 \001(\t\022\033\n" + "\023pod_ipv4_cidr_block\030\006 \001(\t\022!\n" + "\024enable_private_nodes\030\t \001(\010H\000\210\001\001\022h\n" - + "\032network_performance_config\030\013 \001(\0132?.google.co" - + "ntainer.v1.NodeNetworkConfig.NetworkPerformanceConfigH\001\210\001\001\022V\n" + + "\032network_performance_config\030\013 \001(\0132?.google.container" + + ".v1.NodeNetworkConfig.NetworkPerformanceConfigH\001\210\001\001\022V\n" + "\035pod_cidr_overprovision_config\030\r" + " \001(\0132/.google.container.v1.PodCIDROverprovisionConfig\022Y\n" + "\037additional_node_network_configs\030\016" + " \003(\01320.google.container.v1.AdditionalNodeNetworkConfig\022W\n" - + "\036additional_pod_network_configs\030\017 \003(\0132/." - + "google.container.v1.AdditionalPodNetworkConfig\022\'\n" + + "\036additional_pod_network_configs\030\017 \003(\0132/.google." + + "container.v1.AdditionalPodNetworkConfig\022\'\n" + "\032pod_ipv4_range_utilization\030\020 \001(\001B\003\340A\003\022\027\n\n" - + "subnetwork\030\023 \001(\tB\003\340A\003\032\324\001\n" + + "subnetwork\030\023 \001(\tB\003\340A\003\022H\n" + + "\023network_tier_config\030\024" + + " \001(\0132&.google.container.v1.NetworkTierConfigB\003\340A\003\032\324\001\n" + "\030NetworkPerformanceConfig\022n\n" - + "\033total_egress_bandwidth_tier\030\001 \001(\0162D.google.container.v1" - + ".NodeNetworkConfig.NetworkPerformanceConfig.TierH\000\210\001\001\"(\n" + + "\033total_egress_bandwidth_tier\030\001 \001(\0162D.google.container.v1.NodeNetworkC" + + "onfig.NetworkPerformanceConfig.TierH\000\210\001\001\"(\n" + "\004Tier\022\024\n" + "\020TIER_UNSPECIFIED\020\000\022\n\n" + "\006TIER_1\020\001B\036\n" @@ -1183,8 +1218,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032AdditionalPodNetworkConfig\022\022\n\n" + "subnetwork\030\001 \001(\t\022\033\n" + "\023secondary_pod_range\030\002 \001(\t\022F\n" - + "\021max_pods_per_node\030\003 \001(\0132&" - + ".google.container.v1.MaxPodsConstraintH\000\210\001\001B\024\n" + + "\021max_pods_per_node\030\003" + + " \001(\0132&.google.container.v1.MaxPodsConstraintH\000\210\001\001B\024\n" + "\022_max_pods_per_node\"Y\n" + "\026ShieldedInstanceConfig\022\032\n" + "\022enable_secure_boot\030\001 \001(\010\022#\n" @@ -1197,8 +1232,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "GcfsConfig\022\017\n" + "\007enabled\030\001 \001(\010\"\337\001\n" + "\023ReservationAffinity\022O\n" - + "\030consume_reservation_type\030\001 \001(\0162-.goo" - + "gle.container.v1.ReservationAffinity.Type\022\013\n" + + "\030consume_reservation_type\030\001" + + " \001(\0162-.google.container.v1.ReservationAffinity.Type\022\013\n" + "\003key\030\002 \001(\t\022\016\n" + "\006values\030\003 \003(\t\"Z\n" + "\004Type\022\017\n" @@ -1207,35 +1242,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ANY_RESERVATION\020\002\022\030\n" + "\024SPECIFIC_RESERVATION\020\003\"\311\002\n" + "\020SoleTenantConfig\022K\n" - + "\017node_affinities\030\001" - + " \003(\01322.google.container.v1.SoleTenantConfig.NodeAffinity\022\037\n\r" + + "\017node_affinities\030\001 \003(\01322.go" + + "ogle.container.v1.SoleTenantConfig.NodeAffinity\022\037\n\r" + "min_node_cpus\030\002 \001(\005B\003\340A\001H\000\210\001\001\032\264\001\n" + "\014NodeAffinity\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\010operator\030\002 \001(\0162;.google.container" - + ".v1.SoleTenantConfig.NodeAffinity.Operator\022\016\n" + + "\010operator\030\002" + + " \001(\0162;.google.container.v1.SoleTenantConfig.NodeAffinity.Operator\022\016\n" + "\006values\030\003 \003(\t\"8\n" + "\010Operator\022\030\n" + "\024OPERATOR_UNSPECIFIED\020\000\022\006\n" + "\002IN\020\001\022\n\n" + "\006NOT_IN\020\002B\020\n" - + "\016_min_node_cpus\"\374\004\n" + + "\016_min_node_cpus\"\373\005\n" + "\020ContainerdConfig\022i\n" - + "\036private_registry_access_config\030\001 \001(\0132A.go" - + "ogle.container.v1.ContainerdConfig.PrivateRegistryAccessConfig\032\374\003\n" + + "\036private_registry_access_config\030\001 \001(\0132A.google.containe" + + "r.v1.ContainerdConfig.PrivateRegistryAccessConfig\022T\n" + + "\020writable_cgroups\030\002 \001(\01325.go" + + "ogle.container.v1.ContainerdConfig.WritableCgroupsB\003\340A\001\032\374\003\n" + "\033PrivateRegistryAccessConfig\022\017\n" + "\007enabled\030\001 \001(\010\022\217\001\n" - + "#certificate_authority_domain_config\030\002 \003(\0132b." - + "google.container.v1.ContainerdConfig.Pri" - + "vateRegistryAccessConfig.CertificateAuthorityDomainConfig\032\271\002\n" + + "#certificate_authority_domain_config\030\002 \003(\0132b.google." + + "container.v1.ContainerdConfig.PrivateReg" + + "istryAccessConfig.CertificateAuthorityDomainConfig\032\271\002\n" + " CertificateAuthorityDomainConfig\022\r\n" + "\005fqdns\030\001 \003(\t\022\266\001\n" - + "%gcp_secret_manager_certificate_config\030\002 \001(\0132\204\001" - + ".google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAut" - + "horityDomainConfig.GCPSecretManagerCertificateConfigH\000\0327\n" + + "%gcp_secret_manager_certificate_config\030\002 \001(\0132\204\001.google" + + ".container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityD" + + "omainConfig.GCPSecretManagerCertificateConfigH\000\0327\n" + "!GCPSecretManagerCertificateConfig\022\022\n\n" + "secret_uri\030\001 \001(\tB\024\n" - + "\022certificate_config\"\271\001\n" + + "\022certificate_config\032\'\n" + + "\017WritableCgroups\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\001\"\271\001\n" + "\tNodeTaint\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t\0225\n" @@ -1262,28 +1301,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "MasterAuth\022\024\n" + "\010username\030\001 \001(\tB\002\030\001\022\024\n" + "\010password\030\002 \001(\tB\002\030\001\022O\n" - + "\031client_certificate_config\030\003 \001(\0132" - + ",.google.container.v1.ClientCertificateConfig\022#\n" + + "\031client_certificate_config\030\003 \001(\0132,.goog" + + "le.container.v1.ClientCertificateConfig\022#\n" + "\026cluster_ca_certificate\030d \001(\tB\003\340A\003\022\037\n" + "\022client_certificate\030e \001(\tB\003\340A\003\022\027\n\n" + "client_key\030f \001(\tB\003\340A\003\";\n" + "\027ClientCertificateConfig\022 \n" + "\030issue_client_certificate\030\001 \001(\010\"\374\t\n" + "\014AddonsConfig\022C\n" - + "\023http_load_balancing\030\001" - + " \001(\0132&.google.container.v1.HttpLoadBalancing\022Q\n" - + "\032horizontal_pod_autoscaling\030\002 " - + "\001(\0132-.google.container.v1.HorizontalPodAutoscaling\022J\n" - + "\024kubernetes_dashboard\030\003 \001(\013" - + "2(.google.container.v1.KubernetesDashboardB\002\030\001\022G\n" - + "\025network_policy_config\030\004 \001(\0132(." - + "google.container.v1.NetworkPolicyConfig\022=\n" + + "\023http_load_balancing\030\001 \001(" + + "\0132&.google.container.v1.HttpLoadBalancing\022Q\n" + + "\032horizontal_pod_autoscaling\030\002 \001(\0132-." + + "google.container.v1.HorizontalPodAutoscaling\022J\n" + + "\024kubernetes_dashboard\030\003 \001(\0132(.goo" + + "gle.container.v1.KubernetesDashboardB\002\030\001\022G\n" + + "\025network_policy_config\030\004" + + " \001(\0132(.google.container.v1.NetworkPolicyConfig\022=\n" + "\020cloud_run_config\030\007 \001(\0132#.google.container.v1.CloudRunConfig\022=\n" + "\020dns_cache_config\030\010 \001(\0132#.google.container.v1.DnsCacheConfig\022K\n" + "\027config_connector_config\030\n" + " \001(\0132*.google.container.v1.ConfigConnectorConfig\022d\n" - + "%gce_persistent_disk_csi_driver_config\030\013" - + " \001(\01325.google.container.v1.GcePersistentDiskCsiDriverConfig\022Y\n" + + "%gce_persistent_disk_csi_driver_config\030\013 " + + "\001(\01325.google.container.v1.GcePersistentDiskCsiDriverConfig\022Y\n" + "\037gcp_filestore_csi_driver_config\030\016" + " \001(\01320.google.container.v1.GcpFilestoreCsiDriverConfig\022J\n" + "\027gke_backup_agent_config\030\020" @@ -1296,10 +1335,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01321.google.container.v1.ParallelstoreCsiDriverConfig\022H\n" + "\023ray_operator_config\030\025" + " \001(\0132&.google.container.v1.RayOperatorConfigB\003\340A\001\022Z\n" - + "\037high_scale_checkpointing_config\030\026 \001(\01321.google" - + ".container.v1.HighScaleCheckpointingConfig\022L\n" - + "\030lustre_csi_driver_config\030\027 \001(\0132*.g" - + "oogle.container.v1.LustreCsiDriverConfig\"%\n" + + "\037high_scale_checkpointing_config\030\026" + + " \001(\01321.google.container.v1.HighScaleCheckpointingConfig\022L\n" + + "\030lustre_csi_driver_config\030\027" + + " \001(\0132*.google.container.v1.LustreCsiDriverConfig\"%\n" + "\021HttpLoadBalancing\022\020\n" + "\010disabled\030\001 \001(\010\",\n" + "\030HorizontalPodAutoscaling\022\020\n" @@ -1319,8 +1358,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020private_endpoint\030\004 \001(\tB\005\030\001\340A\003\022\036\n" + "\017public_endpoint\030\005 \001(\tB\005\030\001\340A\003\022\031\n" + "\014peering_name\030\007 \001(\tB\003\340A\003\022d\n" - + "\033master_global_access_config\030\010 \001(\0132;" - + ".google.container.v1.PrivateClusterMasterGlobalAccessConfigB\002\030\001\022\'\n" + + "\033master_global_access_config\030\010 \001(\0132;.googl" + + "e.container.v1.PrivateClusterMasterGlobalAccessConfigB\002\030\001\022\'\n" + "\033private_endpoint_subnetwork\030\n" + " \001(\tB\002\030\001\"D\n" + "\031AuthenticatorGroupsConfig\022\017\n" @@ -1328,8 +1367,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016security_group\030\002 \001(\t\"\356\001\n" + "\016CloudRunConfig\022\020\n" + "\010disabled\030\001 \001(\010\022P\n" - + "\022load_balancer_type\030\003 \001(\0162" - + "4.google.container.v1.CloudRunConfig.LoadBalancerType\"x\n" + + "\022load_balancer_type\030\003 \001(\01624.goog" + + "le.container.v1.CloudRunConfig.LoadBalancerType\"x\n" + "\020LoadBalancerType\022\"\n" + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\037\n" + "\033LOAD_BALANCER_TYPE_EXTERNAL\020\001\022\037\n" @@ -1345,10 +1384,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ParallelstoreCsiDriverConfig\022\017\n" + "\007enabled\030\001 \001(\010\"/\n" + "\034HighScaleCheckpointingConfig\022\017\n" - + "\007enabled\030\001 \001(\010\"K\n" + + "\007enabled\030\001 \001(\010\"O\n" + "\025LustreCsiDriverConfig\022\017\n" - + "\007enabled\030\001 \001(\010\022!\n" - + "\031enable_legacy_lustre_port\030\003 \001(\010\"\330\001\n" + + "\007enabled\030\001 \001(\010\022%\n" + + "\031enable_legacy_lustre_port\030\003 \001(\010B\002\030\001\"\330\001\n" + "\021RayOperatorConfig\022\017\n" + "\007enabled\030\001 \001(\010\022U\n" + "\032ray_cluster_logging_config\030\002" @@ -1361,8 +1400,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007enabled\030\001 \001(\010\"\352\002\n" + "\036MasterAuthorizedNetworksConfig\022\017\n" + "\007enabled\030\001 \001(\010\022R\n" - + "\013cidr_blocks\030\002 \003(\0132=.google.cont" - + "ainer.v1.MasterAuthorizedNetworksConfig.CidrBlock\022,\n" + + "\013cidr_blocks\030\002 \003(\0132=.google.contai" + + "ner.v1.MasterAuthorizedNetworksConfig.CidrBlock\022,\n" + "\037gcp_public_cidrs_access_enabled\030\003 \001(\010H\000\210\001\001\0221\n" + "$private_endpoint_enforcement_enabled\030\005 \001(\010H\001\210\001\001\0325\n" + "\tCidrBlock\022\024\n" @@ -1387,7 +1426,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DISABLED\020\001\022$\n" + " PROJECT_SINGLETON_POLICY_ENFORCE\020\002\"-\n" + "\032PodCIDROverprovisionConfig\022\017\n" - + "\007disable\030\001 \001(\010\"\337\007\n" + + "\007disable\030\001 \001(\010\"\244\010\n" + "\022IPAllocationPolicy\022\026\n" + "\016use_ip_aliases\030\001 \001(\010\022\031\n" + "\021create_subnetwork\030\002 \001(\010\022\027\n" @@ -1410,13 +1449,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.container.v1.PodCIDROverprovisionConfig\022#\n" + "\026subnet_ipv6_cidr_block\030\026 \001(\tB\003\340A\003\022%\n" + "\030services_ipv6_cidr_block\030\027 \001(\tB\003\340A\003\022Y\n" - + "\034additional_pod_ranges_config\030\030 \001(\0132..google.co" - + "ntainer.v1.AdditionalPodRangesConfigB\003\340A\003\022/\n" + + "\034additional_pod_ranges_config\030\030 \001(\0132..google.cont" + + "ainer.v1.AdditionalPodRangesConfigB\003\340A\003\022/\n" + "\"default_pod_ipv4_range_utilization\030\031 \001(\001B\003\340A\003\022X\n" + "\034additional_ip_ranges_configs\030\035" + " \003(\0132-.google.container.v1.AdditionalIPRangesConfigB\003\340A\003\022B\n" + "\020auto_ipam_config\030\036" - + " \001(\0132#.google.container.v1.AutoIpamConfigB\003\340A\001\"\247\"\n" + + " \001(\0132#.google.container.v1.AutoIpamConfigB\003\340A\001\022C\n" + + "\023network_tier_config\030\037" + + " \001(\0132&.google.container.v1.NetworkTierConfig\"\253\"\n" + "\007Cluster\022\014\n" + "\004name\030\001 \001(\t\022\023\n" + "\013description\030\002 \001(\t\022\036\n" @@ -1436,28 +1477,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\t\022\037\n" + "\027enable_kubernetes_alpha\030\016 \001(\010\022$\n" + "\033alpha_cluster_feature_gates\030\240\001 \003(\t\022I\n" - + "\017resource_labels\030\017" - + " \003(\01320.google.container.v1.Cluster.ResourceLabelsEntry\022\031\n" + + "\017resource_label", + "s\030\017 \003(\01320.google.container.v1.Cluster.ResourceLabelsEntry\022\031\n" + "\021label_fingerprint\030\020 \001(\t\0224\n" + "\013legacy_abac\030\022 \001(\0132\037.google.container.v1.LegacyAbac\022:\n" + "\016network_policy\030\023 \001(\0132\".google.container.v1.NetworkPolicy\022E\n" - + "\024ip_allocation_policy\030\024 \001(" - + "\0132\'.google.container.v1.IPAllocationPolicy\022b\n" - + "!master_authorized_networks_config\030\026" - + " \001(\01323.google.container.v1.MasterAuthorizedNetworksConfigB\002\030\001\022B\n" + + "\024ip_allocation_policy\030\024" + + " \001(\0132\'.google.container.v1.IPAllocationPolicy\022b\n" + + "!master_authorized_networks_config\030\026 \001(\01323.googl" + + "e.container.v1.MasterAuthorizedNetworksConfigB\002\030\001\022B\n" + "\022maintenance_policy\030\027" + " \001(\0132&.google.container.v1.MaintenancePolicy\022F\n" - + "\024binary_authorization\030\030 \001(\013" - + "2(.google.container.v1.BinaryAuthorization\022<\n" + + "\024binary_authorization\030\030" + + " \001(\0132(.google.container.v1.BinaryAuthorization\022<\n" + "\013autoscaling\030\032 \001(\0132\'.google.container.v1.ClusterAutoscaling\022:\n" - + "\016network_conf", - "ig\030\033 \001(\0132\".google.container.v1.NetworkConfig\022K\n" - + "\033default_max_pods_constraint\030\036 \001(" - + "\0132&.google.container.v1.MaxPodsConstraint\022T\n" - + "\034resource_usage_export_config\030! \001(\0132" - + "..google.container.v1.ResourceUsageExportConfig\022S\n" - + "\033authenticator_groups_config\030\"" - + " \001(\0132..google.container.v1.AuthenticatorGroupsConfig\022I\n" + + "\016network_config\030\033 \001(\0132\".google.container.v1.NetworkConfig\022K\n" + + "\033default_max_pods_constraint\030\036" + + " \001(\0132&.google.container.v1.MaxPodsConstraint\022T\n" + + "\034resource_usage_export_config\030!" + + " \001(\0132..google.container.v1.ResourceUsageExportConfig\022S\n" + + "\033authenticator_groups_config\030\" \001(\0132..google" + + ".container.v1.AuthenticatorGroupsConfig\022I\n" + "\026private_cluster_config\030%" + " \001(\0132).google.container.v1.PrivateClusterConfig\022D\n" + "\023database_encryption\030&" @@ -1469,8 +1509,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030workload_identity_config\030+" + " \001(\0132+.google.container.v1.WorkloadIdentityConfig\022@\n" + "\021mesh_certificates\030C \001(\0132%.google.container.v1.MeshCertificates\022I\n" - + "\026cost_management_config\030-" - + " \001(\0132).google.container.v1.CostManagementConfig\022D\n" + + "\026cost_management_config\030- \001" + + "(\0132).google.container.v1.CostManagementConfig\022D\n" + "\023notification_config\0301" + " \001(\0132\'.google.container.v1.NotificationConfig\022B\n" + "\022confidential_nodes\0302 \001(\0132&.google.container.v1.ConfidentialNodes\022K\n" @@ -1492,28 +1532,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030q \001(\tB\003\340A\003\022\025\n" + "\010location\030r \001(\tB\003\340A\003\022\026\n\n" + "enable_tpu\030s \001(\010B\002\030\001\022\"\n" - + "\023tpu_ipv4_cidr_block\030t \001(\tB\005\030\001\340A\003\0228\n\n" + + "\023tpu_ipv4_cidr_block\030t \001(\tB\005\030\001\340A\003\0228\n" + + "\n" + "conditions\030v \003(\0132$.google.container.v1.StatusCondition\0222\n" + "\tautopilot\030\200\001 \001(\0132\036.google.container.v1.Autopilot\022\020\n" + "\002id\030\201\001 \001(\tB\003\340A\003\022G\n" - + "\022node_pool_defaults\030\203\001" - + " \001(\0132%.google.container.v1.NodePoolDefaultsH\000\210\001\001\022;\n" + + "\022node_pool_defaults\030\203\001 \001(\0132%.goo" + + "gle.container.v1.NodePoolDefaultsH\000\210\001\001\022;\n" + "\016logging_config\030\204\001 \001(\0132\".google.container.v1.LoggingConfig\022A\n" + "\021monitoring_config\030\205\001" + " \001(\0132%.google.container.v1.MonitoringConfig\022G\n" - + "\025node_pool_auto_config\030\210\001" - + " \001(\0132\'.google.container.v1.NodePoolAutoConfig\022=\n" + + "\025node_pool_auto_config\030\210\001 \001(\0132\'" + + ".google.container.v1.NodePoolAutoConfig\022=\n" + "\017pod_autoscaling\030\212\001 \001(\0132#.google.container.v1.PodAutoscaling\022\r\n" + "\004etag\030\213\001 \001(\t\022*\n" + "\005fleet\030\214\001 \001(\0132\032.google.container.v1.Fleet\022L\n" - + "\027security_posture_config\030\221\001" - + " \001(\0132*.google.container.v1.SecurityPostureConfig\022Y\n" - + "\036control_plane_endpoints_config\030\222\001" - + " \001(\01320.google.container.v1.ControlPlaneEndpointsConfig\022D\n" - + "\024enable_k8s_beta_apis\030\217\001" - + " \001(\0132%.google.container.v1.K8sBetaAPIConfig\022A\n" - + "\021enterprise_config\030\225\001 \001(" - + "\0132%.google.container.v1.EnterpriseConfig\022H\n" + + "\027security_posture_config\030\221\001 \001(\0132*.go" + + "ogle.container.v1.SecurityPostureConfig\022Y\n" + + "\036control_plane_endpoints_config\030\222\001 \001(\013" + + "20.google.container.v1.ControlPlaneEndpointsConfig\022D\n" + + "\024enable_k8s_beta_apis\030\217\001 \001(" + + "\0132%.google.container.v1.K8sBetaAPIConfig\022E\n" + + "\021enterprise_config\030\225\001" + + " \001(\0132%.google.container.v1.EnterpriseConfigB\002\030\001\022H\n" + "\025secret_manager_config\030\226\001" + " \001(\0132(.google.container.v1.SecretManagerConfig\022P\n" + "\031compliance_posture_config\030\227\001" @@ -1570,17 +1611,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!gkeops_etcd_backup_encryption_key\030\021 \001(\tB-\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\"\236\001\n" + "\035AnonymousAuthenticationConfig\022E\n" - + "\004mode\030\001 \001(\01627.googl" - + "e.container.v1.AnonymousAuthenticationConfig.Mode\"6\n" + + "\004mode\030\001 \001(\01627.google.contain" + + "er.v1.AnonymousAuthenticationConfig.Mode\"6\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\013\n" + "\007LIMITED\020\002\"\272\002\n" + "\027CompliancePostureConfig\022D\n" - + "\004mode\030\001 \001(\01621.google.con" - + "tainer.v1.CompliancePostureConfig.ModeH\000\210\001\001\022]\n" - + "\024compliance_standards\030\002 \003(\0132?.goog" - + "le.container.v1.CompliancePostureConfig.ComplianceStandard\0328\n" + + "\004mode\030\001" + + " \001(\01621.google.container.v1.CompliancePostureConfig.ModeH\000\210\001\001\022]\n" + + "\024compliance_standards\030\002 \003(\0132?.google.contai" + + "ner.v1.CompliancePostureConfig.ComplianceStandard\0328\n" + "\022ComplianceStandard\022\025\n" + "\010standard\030\001 \001(\tH\000\210\001\001B\013\n" + "\t_standard\"7\n" @@ -1592,10 +1633,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020K8sBetaAPIConfig\022\024\n" + "\014enabled_apis\030\001 \003(\t\"\256\003\n" + "\025SecurityPostureConfig\022B\n" - + "\004mode\030\001 \001(\0162/.google.contai" - + "ner.v1.SecurityPostureConfig.ModeH\000\210\001\001\022]\n" - + "\022vulnerability_mode\030\002 \001(\0162<.google.cont" - + "ainer.v1.SecurityPostureConfig.VulnerabilityModeH\001\210\001\001\"E\n" + + "\004mode\030\001" + + " \001(\0162/.google.container.v1.SecurityPostureConfig.ModeH\000\210\001\001\022]\n" + + "\022vulnerability_mode\030\002 \001(\0162<.google.container.v1." + + "SecurityPostureConfig.VulnerabilityModeH\001\210\001\001\"E\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\t\n" @@ -1610,22 +1651,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_vulnerability_mode\"\240\002\n" + "\022NodePoolAutoConfig\0226\n" + "\014network_tags\030\001 \001(\0132 .google.container.v1.NetworkTags\022G\n" - + "\025resource_manager_tags\030\002" - + " \001(\0132(.google.container.v1.ResourceManagerTags\022C\n" - + "\023node_kubelet_config\030\003 \001(\0132&" - + ".google.container.v1.NodeKubeletConfig\022D\n" + + "\025resource_manager_tags\030\002 \001(\0132(" + + ".google.container.v1.ResourceManagerTags\022C\n" + + "\023node_kubelet_config\030\003" + + " \001(\0132&.google.container.v1.NodeKubeletConfig\022D\n" + "\021linux_node_config\030\004" + " \001(\0132$.google.container.v1.LinuxNodeConfigB\003\340A\003\"Y\n" + "\020NodePoolDefaults\022E\n" - + "\024node_config_defaults\030\001 \001(\0132\'" - + ".google.container.v1.NodeConfigDefaults\"\225\002\n" + + "\024node_config_defaults\030\001" + + " \001(\0132\'.google.container.v1.NodeConfigDefaults\"\225\002\n" + "\022NodeConfigDefaults\0224\n" + "\013gcfs_config\030\001 \001(\0132\037.google.container.v1.GcfsConfig\022B\n" + "\016logging_config\030\003" + " \001(\0132*.google.container.v1.NodePoolLoggingConfig\022@\n" + "\021containerd_config\030\004 \001(\0132%.google.container.v1.ContainerdConfig\022C\n" - + "\023node_kubelet_config\030\006 \001(\0132" - + "&.google.container.v1.NodeKubeletConfig\"\273,\n\r" + + "\023node_kubelet_config\030\006" + + " \001(\0132&.google.container.v1.NodeKubeletConfig\"\215-\n\r" + "ClusterUpdate\022\034\n" + "\024desired_node_version\030\004 \001(\t\022\"\n" + "\032desired_monitoring_service\030\005 \001(\t\022@\n" @@ -1635,8 +1676,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022desired_image_type\030\010 \001(\t\022L\n" + "\033desired_database_encryption\030." + " \001(\0132\'.google.container.v1.DatabaseEncryption\022U\n" - + " desired_workload_identity_config\030/" - + " \001(\0132+.google.container.v1.WorkloadIdentityConfig\022H\n" + + " desired_workload_identity_config\030/ \001(\0132+" + + ".google.container.v1.WorkloadIdentityConfig\022H\n" + "\031desired_mesh_certificates\030C" + " \001(\0132%.google.container.v1.MeshCertificates\022B\n" + "\026desired_shielded_nodes\0300 \001(\0132\".google.container.v1.ShieldedNodes\022Q\n" @@ -1654,12 +1695,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034desired_binary_authorization\030\020" + " \001(\0132(.google.container.v1.BinaryAuthorization\022\037\n" + "\027desired_logging_service\030\023 \001(\t\022\\\n" - + "$desired_resource_usage_export_config\030\025 \001(\0132..google." - + "container.v1.ResourceUsageExportConfig\022U\n" - + " desired_vertical_pod_autoscaling\030\026 \001(\013" - + "2+.google.container.v1.VerticalPodAutoscaling\022U\n" - + "\036desired_private_cluster_config\030\031" - + " \001(\0132).google.container.v1.PrivateClusterConfigB\002\030\001\022\\\n" + + "$desired_resource_usage_export_config\030\025" + + " \001(\0132..google.container.v1.ResourceUsageExportConfig\022U\n" + + " desired_vertical_pod_autoscaling\030\026" + + " \001(\0132+.google.container.v1.VerticalPodAutoscaling\022U\n" + + "\036desired_private_cluster_config\030\031 \001(\0132).g" + + "oogle.container.v1.PrivateClusterConfigB\002\030\001\022\\\n" + "$desired_intra_node_visibility_config\030\032" + " \001(\0132..google.container.v1.IntraNodeVisibilityConfig\022K\n" + "\033desired_default_snat_status\030\034" @@ -1668,8 +1709,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132#.google.container.v1.ReleaseChannel\022Q\n" + "\037desired_l4ilb_subsetting_config\030\'" + " \001(\0132(.google.container.v1.ILBSubsettingConfig\022H\n" - + "\031desired_datapath_provider\0302" - + " \001(\0162%.google.container.v1.DatapathProvider\022X\n" + + "\031desired_datapath_provider\0302 \001" + + "(\0162%.google.container.v1.DatapathProvider\022X\n" + "\"desired_private_ipv6_google_access\0303" + " \001(\0162,.google.container.v1.PrivateIPv6GoogleAccess\022L\n" + "\033desired_notification_config\0307" @@ -1696,19 +1737,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032desired_gateway_api_config\030r" + " \001(\0132%.google.container.v1.GatewayAPIConfig\022\014\n" + "\004etag\030s \001(\t\022T\n" - + " desired_node_pool_logging_config\030t" - + " \001(\0132*.google.container.v1.NodePoolLoggingConfig\0221\n\r" + + " desired_node_pool_logging_config\030t \001(" + + "\0132*.google.container.v1.NodePoolLoggingConfig\0221\n\r" + "desired_fleet\030u \001(\0132\032.google.container.v1.Fleet\022:\n" + "\022desired_stack_type\030w \001(\0162\036.google.container.v1.StackType\022T\n" - + "\034additional_pod_ranges_config\030x " - + "\001(\0132..google.container.v1.AdditionalPodRangesConfig\022\\\n" + + "\034additional_pod_ranges_config\030x \001(\0132..goo" + + "gle.container.v1.AdditionalPodRangesConfig\022\\\n" + "$removed_additional_pod_ranges_config\030y" + " \001(\0132..google.container.v1.AdditionalPodRangesConfig\022C\n" + "\024enable_k8s_beta_apis\030z \001(\0132%.google.container.v1.K8sBetaAPIConfig\022S\n" + "\037desired_security_posture_config\030|" + " \001(\0132*.google.container.v1.SecurityPostureConfig\022n\n" - + "\"desired_network_performance_config\030} \001(\0132B.google.contain" - + "er.v1.NetworkConfig.ClusterNetworkPerformanceConfig\022/\n" + + "\"desired_network_performance_config\030} \001(\0132B.google.container.v1.Net" + + "workConfig.ClusterNetworkPerformanceConfig\022/\n" + "\"desired_enable_fqdn_network_policy\030~ \001(\010H\002\210\001\001\022\\\n" + "(desired_autopilot_workload_policy_config\030\200\001" + " \001(\0132).google.container.v1.WorkloadPolicyConfig\022E\n" @@ -1717,8 +1758,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031desired_containerd_config\030\206\001" + " \001(\0132%.google.container.v1.ContainerdConfig\022-\n" + "\037desired_enable_multi_networking\030\207\001 \001(\010H\003\210\001\001\022f\n" - + "3desired_node_pool_auto_config_resource_manager_tags\030\210\001" - + " \001(\0132(.google.container.v1.ResourceManagerTags\022b\n" + + "3desired_node_pool_auto_config_resource_manager_tags\030\210\001 \001(\013" + + "2(.google.container.v1.ResourceManagerTags\022b\n" + "$desired_in_transit_encryption_config\030\211\001" + " \001(\0162..google.container.v1.InTransitEncryptionConfigH\004\210\001\001\022>\n" + "0desired_enable_cilium_clusterwide_network_policy\030\212\001" @@ -1729,16 +1770,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.container.v1.CompliancePostureConfigH\007\210\001\001\022L\n" + "\033desired_node_kubelet_config\030\215\001" + " \001(\0132&.google.container.v1.NodeKubeletConfig\022]\n" - + ",desired_node_pool_auto_config_kubelet_config\030\216\001" - + " \001(\0132&.google.container.v1.NodeKubeletConfig\022Q\n" - + "\030user_managed_keys_config\030\217\001" - + " \001(\0132*.google.container.v1.UserManagedKeysConfigB\002\030\001\022Q\n" - + "\033desired_rbac_binding_config\030\220\001" - + " \001(\0132&.google.container.v1.RBACBindingConfigH\010\210\001\001\022b\n" + + ",desired_node_pool_auto_config_kubelet_config\030\216\001 \001(" + + "\0132&.google.container.v1.NodeKubeletConfig\022Q\n" + + "\030user_managed_keys_config\030\217\001 \001(\0132*.g" + + "oogle.container.v1.UserManagedKeysConfigB\002\030\001\022Q\n" + + "\033desired_rbac_binding_config\030\220\001 \001" + + "(\0132&.google.container.v1.RBACBindingConfigH\010\210\001\001\022b\n" + "#desired_additional_ip_ranges_config\030\221\001" - + " \001(\01324.google.container.v1.DesiredAdditionalIPRangesConfig\022P\n" - + "\031desired_enterprise_config\030\223\001 \001(\0132,.googl" - + "e.container.v1.DesiredEnterpriseConfig\022F\n" + + " \001(\01324.google.container.v1.DesiredAdditionalIPRangesConfig\022T\n" + + "\031desired_enterprise_config\030\223\001" + + " \001(\0132,.google.container.v1.DesiredEnterpriseConfigB\002\030\001\022F\n" + "\030desired_auto_ipam_config\030\224\001" + " \001(\0132#.google.container.v1.AutoIpamConfig\022;\n" + "-desired_disable_l4_lb_firewall_reconciliation\030\225\001 \001(\010H" @@ -1747,10 +1788,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132$.google.container.v1.LinuxNodeConfig\022U\n" + " desired_user_managed_keys_config\030\230\001" + " \001(\0132*.google.container.v1.UserManagedKeysConfig\022d\n" - + "\'desired_anonymous_authentication_config\030\234\001" - + " \001(\01322.google.container.v1.AnonymousAuthenticationConfig\022K\n" + + "\'desired_anonymous_authentication_config\030\234\001 \001(\0132" + + "2.google.container.v1.AnonymousAuthenticationConfig\022K\n" + "\027gke_auto_upgrade_config\030\232\001" - + " \001(\0132).google.container.v1.GkeAutoUpgradeConfigB\"\n" + + " \001(\0132).google.container.v1.GkeAutoUpgradeConfig\022L\n" + + "\033desired_network_tier_config\030\233\001" + + " \001(\0132&.google.container.v1.NetworkTierConfigB\"\n" + " _desired_enable_private_endpointB\'\n" + "%_desired_default_enable_private_nodesB%\n" + "#_desired_enable_fqdn_network_policyB\"\n" @@ -1769,23 +1812,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "subnetwork\030\001 \001(\t\022\034\n" + "\024pod_ipv4_range_names\030\002 \003(\t\"v\n" + "\037DesiredAdditionalIPRangesConfig\022S\n" - + "\034additional_ip_ranges_configs\030\001 \003(\0132" - + "-.google.container.v1.AdditionalIPRangesConfig\"\020\n" - + "\016AutoIpamConfig\">\n" - + "\tRangeInfo\022\027\n" - + "\n" + + "\034additional_ip_ranges_configs\030\001 \003(\0132-.googl" + + "e.container.v1.AdditionalIPRangesConfig\"2\n" + + "\016AutoIpamConfig\022\024\n" + + "\007enabled\030\001 \001(\010H\000\210\001\001B\n\n" + + "\010_enabled\">\n" + + "\tRangeInfo\022\027\n\n" + "range_name\030\001 \001(\tB\003\340A\003\022\030\n" - + "\013utilization\030\002 \001(\001B\003\340A\003\"b\n" + + "\013utilization\030\002 \001(\001B\003\340A\003\"f\n" + "\027DesiredEnterpriseConfig\022G\n" + "\014desired_tier\030\001" - + " \001(\01621.google.container.v1.EnterpriseConfig.ClusterTier\"\344\010\n" + + " \001(\01621.google.container.v1.EnterpriseConfig.ClusterTier:\002\030\001\"\344\010\n" + "\tOperation\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\023\n" + "\004zone\030\002 \001(\tB\005\030\001\340A\003\022@\n" + "\016operation_type\030\003" + " \001(\0162#.google.container.v1.Operation.TypeB\003\340A\003\022:\n" - + "\006status\030\004" - + " \001(\0162%.google.container.v1.Operation.StatusB\003\340A\003\022\023\n" + + "\006status\030\004 \001(\0162%.go" + + "ogle.container.v1.Operation.StatusB\003\340A\003\022\023\n" + "\006detail\030\010 \001(\tB\003\340A\003\022\035\n" + "\016status_message\030\005 \001(\tB\005\030\001\340A\003\022\026\n" + "\tself_link\030\006 \001(\tB\003\340A\003\022\030\n" @@ -1794,8 +1838,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "start_time\030\n" + " \001(\tB\003\340A\003\022\025\n" + "\010end_time\030\013 \001(\tB\003\340A\003\022=\n" - + "\010progress\030\014 \001(\0132" - + "&.google.container.v1.OperationProgressB\003\340A\003\022D\n" + + "\010progress\030\014" + + " \001(\0132&.google.container.v1.OperationProgressB\003\340A\003\022D\n" + "\022cluster_conditions\030\r" + " \003(\0132$.google.container.v1.StatusConditionB\002\030\001\022E\n" + "\023nodepool_conditions\030\016" @@ -1876,11 +1920,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006labels\030\022 \001(\0132\037.google.container.v1.NodeLabels\022?\n" + "\021linux_node_config\030\023 \001(\0132$.google.container.v1.LinuxNodeConfig\022>\n" + "\016kubelet_config\030\024 \001(\0132&.google.container.v1.NodeKubeletConfig\022C\n" - + "\023node_network_config\030\025" - + " \001(\0132&.google.container.v1.NodeNetworkConfig\0224\n" + + "\023node_network_config\030\025 \001(" + + "\0132&.google.container.v1.NodeNetworkConfig\0224\n" + "\013gcfs_config\030\026 \001(\0132\037.google.container.v1.GcfsConfig\022B\n" - + "\022confidential_nodes\030\027" - + " \001(\0132&.google.container.v1.ConfidentialNodes\022.\n" + + "\022confidential_nodes\030\027 " + + "\001(\0132&.google.container.v1.ConfidentialNodes\022.\n" + "\005gvnic\030\035 \001(\0132\037.google.container.v1.VirtualNIC\022\014\n" + "\004etag\030\036 \001(\t\0224\n" + "\013fast_socket\030\037 \001(\0132\037.google.container.v1.FastSocket\022B\n" @@ -1894,9 +1938,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025resource_manager_tags\030\'" + " \001(\0132(.google.container.v1.ResourceManagerTags\022@\n" + "\021containerd_config\030( \001(\0132%.google.container.v1.ContainerdConfig\022M\n" - + "\023queued_provisioning\030* \001(\01320.go" - + "ogle.container.v1.NodePool.QueuedProvisioning\022\025\n\r" - + "storage_pools\030+ \003(\t\0223\n" + + "\023queued_provisioning\030*" + + " \001(\01320.google.container.v1.NodePool.QueuedProvisioning\022\025\n\r", + "storage_pools\030+ \003(\t\0223\n" + "\020max_run_duration\030- \001(\0132\031.google.protobuf.Duration\022\027\n\n" + "flex_start\030. \001(\010H\000\210\001\001\0220\n" + "\tboot_disk\030/ \001(\0132\035.google.container.v1.BootDiskB\r\n" @@ -1906,8 +1950,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022\030\n" + "\014node_pool_id\030\004 \001(\tB\002\030\001\022B\n" - + "\013autoscaling\030\005 \001(\0132(" - + ".google.container.v1.NodePoolAutoscalingB\003\340A\002\022\014\n" + + "\013autoscaling\030\005" + + " \001(\0132(.google.container.v1.NodePoolAutoscalingB\003\340A\002\022\014\n" + "\004name\030\006 \001(\t\"\210\001\n" + "\030SetLoggingServiceRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" @@ -1923,8 +1967,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\006 \001(\t\"\247\001\n" + "\026SetAddonsConfigRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" - + "\004zo", - "ne\030\002 \001(\tB\002\030\001\022\026\n\n" + + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022=\n\r" + "addons_config\030\004" + " \001(\0132!.google.container.v1.AddonsConfigB\003\340A\002\022\014\n" @@ -1945,8 +1988,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "project_id\030\001 \001(\tB\002\030\001\022\020\n" + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022E\n" - + "\006action\030\004 \001(\016" - + "20.google.container.v1.SetMasterAuthRequest.ActionB\003\340A\002\0224\n" + + "\006action\030\004 \001(\01620.google" + + ".container.v1.SetMasterAuthRequest.ActionB\003\340A\002\0224\n" + "\006update\030\005" + " \001(\0132\037.google.container.v1.MasterAuthB\003\340A\002\022\014\n" + "\004name\030\007 \001(\t\"P\n" @@ -1994,20 +2037,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022default_image_type\030\004 \001(\t\022\031\n" + "\021valid_image_types\030\005 \003(\t\022\035\n" + "\025valid_master_versions\030\006 \003(\t\022H\n" - + "\010channels\030\t \003(\01326.google.con" - + "tainer.v1.ServerConfig.ReleaseChannelConfig\032\245\001\n" + + "\010channels\030\t" + + " \003(\01326.google.container.v1.ServerConfig.ReleaseChannelConfig\032\245\001\n" + "\024ReleaseChannelConfig\022<\n" + "\007channel\030\001 \001(\0162+.google.container.v1.ReleaseChannel.Channel\022\027\n" + "\017default_version\030\002 \001(\t\022\026\n" + "\016valid_versions\030\004 \003(\t\022\036\n" + "\026upgrade_target_version\030\005 \001(\t\"\240\001\n" - + "\025CreateNodePoolRequest\022\026\n" - + "\n" + + "\025CreateNodePoolRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\0225\n" - + "\tnode_pool\030\004 \001" - + "(\0132\035.google.container.v1.NodePoolB\003\340A\002\022\016\n" + + "\tnode_pool\030\004" + + " \001(\0132\035.google.container.v1.NodePoolB\003\340A\002\022\016\n" + "\006parent\030\006 \001(\t\"\201\001\n" + "\025DeleteNodePoolRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" @@ -2025,10 +2067,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022\030\n" + "\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n" - + "\004name\030\006 \001(\t\"\237\003\n" + + "\004name\030\006 \001(\t\"\340\004\n" + "\021BlueGreenSettings\022_\n" - + "\027standard_rollout_policy\030\001 \001(\0132<.go" - + "ogle.container.v1.BlueGreenSettings.StandardRolloutPolicyH\000\022?\n" + + "\027standard_rollout_policy\030\001 \001(\0132<.google.cont" + + "ainer.v1.BlueGreenSettings.StandardRolloutPolicyH\000\022c\n" + + "\031autoscaled_rollout_policy\030\003" + + " \001(\0132>.google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicyH\000\022?\n" + "\027node_pool_soak_duration\030\002" + " \001(\0132\031.google.protobuf.DurationH\001\210\001\001\032\271\001\n" + "\025StandardRolloutPolicy\022\032\n" @@ -2037,7 +2081,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023batch_soak_duration\030\003" + " \001(\0132\031.google.protobuf.DurationH\001\210\001\001B\023\n" + "\021update_batch_sizeB\026\n" - + "\024_batch_soak_durationB\020\n" + + "\024_batch_soak_duration\032Z\n" + + "\027AutoscaledRolloutPolicy\022?\n" + + "\027wait_for_drain_duration\030\001" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001B\020\n" + "\016rollout_policyB\032\n" + "\030_node_pool_soak_duration\"\321\020\n" + "\010NodePool\022\014\n" @@ -2050,41 +2097,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tself_link\030d \001(\tB\003\340A\003\022\017\n" + "\007version\030e \001(\t\022 \n" + "\023instance_group_urls\030f \003(\tB\003\340A\003\0229\n" - + "\006status\030g \001(\0162$.g" - + "oogle.container.v1.NodePool.StatusB\003\340A\003\022\035\n" + + "\006status\030g" + + " \001(\0162$.google.container.v1.NodePool.StatusB\003\340A\003\022\035\n" + "\016status_message\030h \001(\tB\005\030\001\340A\003\022=\n" - + "\013autoscaling\030\004 \001(\0132(.google.container.v1.NodePoolAutoscaling\0227\n\n" + + "\013autoscaling\030\004 \001(\0132(.google.container.v1.NodePoolAutoscaling\0227\n" + + "\n" + "management\030\005 \001(\0132#.google.container.v1.NodeManagement\022C\n" - + "\023max_pods_constraint\030\006" - + " \001(\0132&.google.container.v1.MaxPodsConstraint\0228\n\n" + + "\023max_pods_constraint\030\006 " + + "\001(\0132&.google.container.v1.MaxPodsConstraint\0228\n\n" + "conditions\030i \003(\0132$.google.container.v1.StatusCondition\022\037\n" + "\022pod_ipv4_cidr_size\030\007 \001(\005B\003\340A\003\022G\n" - + "\020upgrade_settings\030k" - + " \001(\0132-.google.container.v1.NodePool.UpgradeSettings\022G\n" - + "\020placement_policy\030l" - + " \001(\0132-.google.container.v1.NodePool.PlacementPolicy\022B\n" - + "\013update_info\030m \001(\0132(." - + "google.container.v1.NodePool.UpdateInfoB\003\340A\003\022\014\n" + + "\020upgrade_settings\030k \001(\013" + + "2-.google.container.v1.NodePool.UpgradeSettings\022G\n" + + "\020placement_policy\030l \001(\0132-.goog" + + "le.container.v1.NodePool.PlacementPolicy\022B\n" + + "\013update_info\030m" + + " \001(\0132(.google.container.v1.NodePool.UpdateInfoB\003\340A\003\022\014\n" + "\004etag\030n \001(\t\022M\n" - + "\023queued_provisioning\030p" - + " \001(\01320.google.container.v1.NodePool.QueuedProvisioning\022M\n" - + "\030best_effort_provisioning\030q" - + " \001(\0132+.google.container.v1.BestEffortProvisioning\032\360\001\n" + + "\023queued_provisioning\030p \001(\01320.google" + + ".container.v1.NodePool.QueuedProvisioning\022M\n" + + "\030best_effort_provisioning\030q \001(\0132+.go" + + "ogle.container.v1.BestEffortProvisioning\032\360\001\n" + "\017UpgradeSettings\022\021\n" + "\tmax_surge\030\001 \001(\005\022\027\n" + "\017max_unavailable\030\002 \001(\005\022B\n" - + "\010strategy\030\003" - + " \001(\0162+.google.container.v1.NodePoolUpdateStrategyH\000\210\001\001\022H\n" - + "\023blue_green_settings\030\004" - + " \001(\0132&.google.container.v1.BlueGreenSettingsH\001\210\001\001B\013\n" + + "\010strategy\030\003 \001" + + "(\0162+.google.container.v1.NodePoolUpdateStrategyH\000\210\001\001\022H\n" + + "\023blue_green_settings\030\004 \001(" + + "\0132&.google.container.v1.BlueGreenSettingsH\001\210\001\001B\013\n" + "\t_strategyB\026\n" + "\024_blue_green_settings\032\210\004\n\n" + "UpdateInfo\022O\n" - + "\017blue_green_info\030\001" - + " \001(\01326.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo\032\250\003\n\r" + + "\017blue_green_info\030\001 " + + "\001(\01326.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo\032\250\003\n\r" + "BlueGreenInfo\022K\n" - + "\005phase\030\001 \001(\0162<.google.co" - + "ntainer.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase\022 \n" + + "\005phase\030\001" + + " \001(\0162<.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase\022 \n" + "\030blue_instance_group_urls\030\002 \003(\t\022!\n" + "\031green_instance_group_urls\030\003 \003(\t\022%\n" + "\035blue_pool_deletion_start_time\030\004 \001(\t\022\032\n" @@ -2099,8 +2147,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022DELETING_BLUE_POOL\020\006\022\024\n" + "\020ROLLBACK_STARTED\020\007\032\256\001\n" + "\017PlacementPolicy\022@\n" - + "\004type\030\001" - + " \001(\01622.google.container.v1.NodePool.PlacementPolicy.Type\022\031\n" + + "\004type\030\001 \001(\016" + + "22.google.container.v1.NodePool.PlacementPolicy.Type\022\031\n" + "\014tpu_topology\030\002 \001(\tB\003\340A\001\022\023\n" + "\013policy_name\030\003 \001(\t\")\n" + "\004Type\022\024\n" @@ -2131,29 +2179,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006window\030\001 \001(\0132&.google.container.v1.MaintenanceWindow\022\030\n" + "\020resource_version\030\003 \001(\t\"\366\002\n" + "\021MaintenanceWindow\022O\n" - + "\030daily_maintenance_window\030\002" - + " \001(\0132+.google.container.v1.DailyMaintenanceWindowH\000\022D\n" + + "\030daily_maintenance_window\030\002 \001(\0132+" + + ".google.container.v1.DailyMaintenanceWindowH\000\022D\n" + "\020recurring_window\030\003" + " \001(\0132(.google.container.v1.RecurringTimeWindowH\000\022a\n" - + "\026maintenance_exclusions\030\004 " - + "\003(\0132A.google.container.v1.MaintenanceWindow.MaintenanceExclusionsEntry\032]\n" + + "\026maintenance_exclusions\030\004 \003(\0132A.google.con" + + "tainer.v1.MaintenanceWindow.MaintenanceExclusionsEntry\032]\n" + "\032MaintenanceExclusionsEntry\022\013\n" + "\003key\030\001 \001(\t\022.\n" + "\005value\030\002 \001(\0132\037.google.container.v1.TimeWindow:\0028\001B\010\n" + "\006policy\"\320\001\n\n" + "TimeWindow\022Y\n" - + "\035maintenance_exclusion_options\030\003 \001(\01320.google.c" - + "ontainer.v1.MaintenanceExclusionOptionsH\000\022.\n\n" + + "\035maintenance_exclusion_options\030\003" + + " \001(\01320.google.container.v1.MaintenanceExclusionOptionsH\000\022.\n\n" + "start_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\t\n" - + "\007options\"\264\001\n" + + "\007options\"\341\002\n" + "\033MaintenanceExclusionOptions\022E\n" - + "\005scope\030\001 \001(\01626.goog" - + "le.container.v1.MaintenanceExclusionOptions.Scope\"N\n" + + "\005scope\030\001" + + " \001(\01626.google.container.v1.MaintenanceExclusionOptions.Scope\022[\n" + + "\021end_time_behavior\030\002 \001(\0162@.google.container." + + "v1.MaintenanceExclusionOptions.EndTimeBehavior\"N\n" + "\005Scope\022\017\n" + "\013NO_UPGRADES\020\000\022\025\n" + "\021NO_MINOR_UPGRADES\020\001\022\035\n" - + "\031NO_MINOR_OR_NODE_UPGRADES\020\002\"Z\n" + + "\031NO_MINOR_OR_NODE_UPGRADES\020\002\"N\n" + + "\017EndTimeBehavior\022!\n" + + "\035END_TIME_BEHAVIOR_UNSPECIFIED\020\000\022\030\n" + + "\024UNTIL_END_OF_SUPPORT\020\001\"Z\n" + "\023RecurringTimeWindow\022/\n" + "\006window\030\001 \001(\0132\037.google.container.v1.TimeWindow\022\022\n\n" + "recurrence\030\002 \001(\t\"C\n" @@ -2170,7 +2223,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\007 \001(\t\"\233\001\n" + "\026SetNodePoolSizeRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" - + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + + "\004zone\030\002 \001(\tB\002\030\001\022\026\n" + + "\n" + "cluster_id\030\003 \001(\tB\002\030\001\022\030\n" + "\014node_pool_id\030\004 \001(\tB\002\030\001\022\027\n\n" + "node_count\030\005 \001(\005B\003\340A\002\022\014\n" @@ -2189,13 +2243,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ClusterAutoscaling\022$\n" + "\034enable_node_autoprovisioning\030\001 \001(\010\022;\n" + "\017resource_limits\030\002 \003(\0132\".google.container.v1.ResourceLimit\022W\n" - + "\023autoscaling_profile\030\003" - + " \001(\0162:.google.container.v1.ClusterAutoscaling.AutoscalingProfile\022b\n" - + "#autoprovisioning_node_pool_defaults\030\004 \001(\01325.google" - + ".container.v1.AutoprovisioningNodePoolDefaults\022\"\n" + + "\023autoscaling_profile\030\003 " + + "\001(\0162:.google.container.v1.ClusterAutoscaling.AutoscalingProfile\022b\n" + + "#autoprovisioning_node_pool_defaults\030\004 \001(\01325.google.co" + + "ntainer.v1.AutoprovisioningNodePoolDefaults\022\"\n" + "\032autoprovisioning_locations\030\005 \003(\t\022T\n" - + "\034default_compute_class_config\030\t \001(\013" - + "2..google.container.v1.DefaultComputeClassConfig\"U\n" + + "\034default_compute_class_config\030\t \001(\0132.." + + "google.container.v1.DefaultComputeClassConfig\"U\n" + "\022AutoscalingProfile\022\027\n" + "\023PROFILE_UNSPECIFIED\020\000\022\030\n" + "\024OPTIMIZE_UTILIZATION\020\001\022\014\n" @@ -2203,8 +2257,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " AutoprovisioningNodePoolDefaults\022\024\n" + "\014oauth_scopes\030\001 \003(\t\022\027\n" + "\017service_account\030\002 \001(\t\022G\n" - + "\020upgrade_settings\030\003" - + " \001(\0132-.google.container.v1.NodePool.UpgradeSettings\0227\n\n" + + "\020upgrade_settings\030\003 \001" + + "(\0132-.google.container.v1.NodePool.UpgradeSettings\0227\n\n" + "management\030\004 \001(\0132#.google.container.v1.NodeManagement\022\034\n" + "\020min_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n" + "\014disk_size_gb\030\006 \001(\005\022\021\n" @@ -2228,8 +2282,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016min_node_count\030\002 \001(\005\022\026\n" + "\016max_node_count\030\003 \001(\005\022\027\n" + "\017autoprovisioned\030\004 \001(\010\022P\n" - + "\017location_policy\030\005 \001(\01627.google.container" - + ".v1.NodePoolAutoscaling.LocationPolicy\022\034\n" + + "\017location_policy\030\005" + + " \001(\01627.google.container.v1.NodePoolAutoscaling.LocationPolicy\022\034\n" + "\024total_min_node_count\030\006 \001(\005\022\034\n" + "\024total_max_node_count\030\007 \001(\005\"H\n" + "\016LocationPolicy\022\037\n" @@ -2240,8 +2294,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "project_id\030\001 \001(\tB\002\030\001\022\020\n" + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022W\n" - + "\017resource_labels\030\004" - + " \003(\01329.google.container.v1.SetLabelsRequest.ResourceLabelsEntryB\003\340A\002\022\036\n" + + "\017resource_labels\030\004 \003(" + + "\01329.google.container.v1.SetLabelsRequest.ResourceLabelsEntryB\003\340A\002\022\036\n" + "\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n" + "\004name\030\007 \001(\t\0325\n" + "\023ResourceLabelsEntry\022\013\n" @@ -2270,22 +2324,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022gpu_partition_size\030\003 \001(\t\022F\n" + "\022gpu_sharing_config\030\005" + " \001(\0132%.google.container.v1.GPUSharingConfigH\000\210\001\001\022]\n" - + "\036gpu_driver_installation_config\030\006 \001(\01320.goo" - + "gle.container.v1.GPUDriverInstallationConfigH\001\210\001\001B\025\n" + + "\036gpu_driver_installation_config\030\006 \001(\01320.google" + + ".container.v1.GPUDriverInstallationConfigH\001\210\001\001B\025\n" + "\023_gpu_sharing_configB!\n" + "\037_gpu_driver_installation_config\"\203\002\n" + "\020GPUSharingConfig\022\"\n" + "\032max_shared_clients_per_gpu\030\001 \001(\003\022[\n" - + "\024gpu_sharing_strategy\030\002 \001(\01628.goo" - + "gle.container.v1.GPUSharingConfig.GPUSharingStrategyH\000\210\001\001\"U\n" + + "\024gpu_sharing_strategy\030\002 \001(\01628.google" + + ".container.v1.GPUSharingConfig.GPUSharingStrategyH\000\210\001\001\"U\n" + "\022GPUSharingStrategy\022$\n" + " GPU_SHARING_STRATEGY_UNSPECIFIED\020\000\022\020\n" + "\014TIME_SHARING\020\001\022\007\n" + "\003MPS\020\002B\027\n" + "\025_gpu_sharing_strategy\"\204\002\n" + "\033GPUDriverInstallationConfig\022b\n" - + "\022gpu_driver_version\030\001 \001(\0162A.google.c" - + "ontainer.v1.GPUDriverInstallationConfig.GPUDriverVersionH\000\210\001\001\"j\n" + + "\022gpu_driver_version\030\001 \001(\0162A.google.cont" + + "ainer.v1.GPUDriverInstallationConfig.GPUDriverVersionH\000\210\001\001\"j\n" + "\020GPUDriverVersion\022\"\n" + "\036GPU_DRIVER_VERSION_UNSPECIFIED\020\000\022\031\n" + "\025INSTALLATION_DISABLED\020\001\022\013\n" @@ -2337,17 +2391,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027enable_l4ilb_subsetting\030\n" + " \001(\010\022@\n" + "\021datapath_provider\030\013 \001(\0162%.google.container.v1.DatapathProvider\022P\n" - + "\032private_ipv6_google_access\030\014 \001(\0162,.googl" - + "e.container.v1.PrivateIPv6GoogleAccess\0222\n\n" + + "\032private_ipv6_google_access\030\014" + + " \001(\0162,.google.container.v1.PrivateIPv6GoogleAccess\0222\n\n" + "dns_config\030\r" + " \001(\0132\036.google.container.v1.DNSConfig\022R\n" + "\033service_external_ips_config\030\017" + " \001(\0132-.google.container.v1.ServiceExternalIPsConfig\022A\n" - + "\022gateway_api_config\030\020 \001" - + "(\0132%.google.container.v1.GatewayAPIConfig\022\037\n" + + "\022gateway_api_config\030\020 \001(\0132" + + "%.google.container.v1.GatewayAPIConfig\022\037\n" + "\027enable_multi_networking\030\021 \001(\010\022f\n" - + "\032network_performance_config\030\022 \001(\0132B.google." - + "container.v1.NetworkConfig.ClusterNetworkPerformanceConfig\022\'\n" + + "\032network_performance_config\030\022 \001(\0132B.google.con" + + "tainer.v1.NetworkConfig.ClusterNetworkPerformanceConfig\022\'\n" + "\032enable_fqdn_network_policy\030\023 \001(\010H\000\210\001\001\022Y\n" + "\034in_transit_encryption_config\030\024" + " \001(\0162..google.container.v1.InTransitEncryptionConfigH\001\210\001\001\0225\n" @@ -2356,10 +2410,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%disable_l4_lb_firewall_reconciliation\030\030" + " \001(\010H\004\210\001\001\032\336\001\n" + "\037ClusterNetworkPerformanceConfig\022q\n" - + "\033total_egress_bandwidth_tier\030\001 \001(\0162G.google.container.v1.Netw" - + "orkConfig.ClusterNetworkPerformanceConfig.TierH\000\210\001\001\"(\n" + + "\033total_egress_bandwidth_tier\030\001 \001(\0162G.google.container.v1.Network" + + "Config.ClusterNetworkPerformanceConfig.TierH\000\210\001\001\"(\n" + "\004Tier\022\024\n" - + "\020TIER_UNSPECIFIED\020\000\022\n\n" + + "\020TIER_UNSPECIFIED\020\000\022\n" + + "\n" + "\006TIER_1\020\001B\036\n" + "\034_total_egress_bandwidth_tierB\035\n" + "\033_enable_fqdn_network_policyB\037\n" @@ -2406,8 +2461,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033AutopilotCompatibilityIssue\0224\n" + "\020last_observation\030\001 \001(\0132\032.google.protobuf.Timestamp\022\027\n" + "\017constraint_type\030\002 \001(\t\022X\n" - + "\024incompatibility_type\030\003 \001(" - + "\0162:.google.container.v1.AutopilotCompatibilityIssue.IssueType\022\020\n" + + "\024incompatibility_type\030\003 \001(\0162:" + + ".google.container.v1.AutopilotCompatibilityIssue.IssueType\022\020\n" + "\010subjects\030\004 \003(\t\022\031\n" + "\021documentation_url\030\005 \001(\t\022\023\n" + "\013description\030\006 \001(\t\"r\n" @@ -2473,7 +2528,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007UNKNOWN\020\000\022\r\n" + "\tENCRYPTED\020\001\022\r\n" + "\tDECRYPTED\020\002\"\373\001\n" - + "\014CurrentState\022\035\n" + + "\014Cur", + "rentState\022\035\n" + "\031CURRENT_STATE_UNSPECIFIED\020\000\022\033\n" + "\027CURRENT_STATE_ENCRYPTED\020\007\022\033\n" + "\027CURRENT_STATE_DECRYPTED\020\002\022$\n" @@ -2493,8 +2549,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036UsableSubnetworkSecondaryRange\022\022\n\n" + "range_name\030\001 \001(\t\022\025\n\r" + "ip_cidr_range\030\002 \001(\t\022J\n" - + "\006status\030\003 \001(\0162:.google.containe" - + "r.v1.UsableSubnetworkSecondaryRange.Status\"g\n" + + "\006status\030\003 \001(\0162:.google.container.v" + + "1.UsableSubnetworkSecondaryRange.Status\"g\n" + "\006Status\022\013\n" + "\007UNKNOWN\020\000\022\n\n" + "\006UNUSED\020\001\022\022\n" @@ -2509,12 +2565,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01323.google.container.v1.UsableSubnetworkSecondaryRange\022\026\n" + "\016status_message\030\005 \001(\t\"\355\002\n" + "\031ResourceUsageExportConfig\022`\n" - + "\024bigquery_destination\030\001 \001(\0132B.goo" - + "gle.container.v1.ResourceUsageExportConfig.BigQueryDestination\022&\n" - + "\036enable_network", - "_egress_metering\030\002 \001(\010\022m\n" - + "\033consumption_metering_config\030\003 \001(\0132H.google.container.v" - + "1.ResourceUsageExportConfig.ConsumptionMeteringConfig\032)\n" + + "\024bigquery_destination\030\001 \001(\0132B.google" + + ".container.v1.ResourceUsageExportConfig.BigQueryDestination\022&\n" + + "\036enable_network_egress_metering\030\002 \001(\010\022m\n" + + "\033consumption_metering_config\030\003 \001(\0132H.google.container.v1.R" + + "esourceUsageExportConfig.ConsumptionMeteringConfig\032)\n" + "\023BigQueryDestination\022\022\n\n" + "dataset_id\030\001 \001(\t\032,\n" + "\031ConsumptionMeteringConfig\022\017\n" @@ -2530,8 +2585,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "FastSocket\022\017\n" + "\007enabled\030\001 \001(\010\"\301\003\n" + "\022NotificationConfig\022>\n" - + "\006pubsub\030\001 \001(\0132" - + "..google.container.v1.NotificationConfig.PubSub\032\212\001\n" + + "\006pubsub\030\001 \001(\0132..g" + + "oogle.container.v1.NotificationConfig.PubSub\032\212\001\n" + "\006PubSub\022\017\n" + "\007enabled\030\001 \001(\010\022/\n" + "\005topic\030\002 \001(\tB \372A\035\n" @@ -2570,8 +2625,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017current_version\030\005 \001(\t\022\026\n" + "\016target_version\030\006 \001(\t\022\020\n" + "\010resource\030\007 \001(\t\022?\n" - + "\005state\030\010 \001" - + "(\0162+.google.container.v1.UpgradeInfoEvent.StateB\003\340A\003\022B\n" + + "\005state\030\010 \001(\0162" + + "+.google.container.v1.UpgradeInfoEvent.StateB\003\340A\003\022B\n" + "\031standard_support_end_time\030\t" + " \001(\0132\032.google.protobuf.TimestampH\000\210\001\001\022B\n" + "\031extended_support_end_time\030\n" @@ -2608,11 +2663,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030suggested_upgrade_target\030\t \001(\t\022\035\n" + "\025manual_steps_required\030\n" + " \001(\010\022\032\n" - + "\022mitigated_versions\030\013 \003(\t\"g\n" + + "\022mitigated_versions\030\013 \003(\t\"\274\001\n" + "\tAutopilot\022\017\n" + "\007enabled\030\001 \001(\010\022I\n" + "\026workload_policy_config\030\002" - + " \001(\0132).google.container.v1.WorkloadPolicyConfig\"\254\001\n" + + " \001(\0132).google.container.v1.WorkloadPolicyConfig\022S\n" + + "\033privileged_admission_config\030\004" + + " \001(\0132..google.container.v1.PrivilegedAdmissionConfig\"4\n" + + "\031PrivilegedAdmissionConfig\022\027\n" + + "\017allowlist_paths\030\001 \003(\t\"\254\001\n" + "\024WorkloadPolicyConfig\022\034\n" + "\017allow_net_admin\030\001 \001(\010H\000\210\001\001\0225\n" + "(autopilot_compatibility_auditing_enabled\030\002 \001(\010H\001\210\001\001B\022\n" @@ -2622,8 +2681,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020component_config\030\001" + " \001(\0132+.google.container.v1.LoggingComponentConfig\"\236\002\n" + "\026LoggingComponentConfig\022P\n" - + "\021enable_components\030\001 \003(\01625.google.c" - + "ontainer.v1.LoggingComponentConfig.Component\"\261\001\n" + + "\021enable_components\030\001" + + " \003(\01625.google.container.v1.LoggingComponentConfig.Component\"\261\001\n" + "\tComponent\022\031\n" + "\025COMPONENT_UNSPECIFIED\020\000\022\025\n" + "\021SYSTEM_COMPONENTS\020\001\022\r\n" @@ -2637,16 +2696,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027RayClusterLoggingConfig\022\017\n" + "\007enabled\030\001 \001(\010\"\227\002\n" + "\020MonitoringConfig\022H\n" - + "\020component_config\030\001 \001(\0132..go" - + "ogle.container.v1.MonitoringComponentConfig\022O\n" - + "\031managed_prometheus_config\030\002 \001(\0132," - + ".google.container.v1.ManagedPrometheusConfig\022h\n" - + "&advanced_datapath_observability_config\030\003" - + " \001(\01328.google.container.v1.AdvancedDatapathObservabilityConfig\"\236\002\n" + + "\020component_config\030\001" + + " \001(\0132..google.container.v1.MonitoringComponentConfig\022O\n" + + "\031managed_prometheus_config\030\002" + + " \001(\0132,.google.container.v1.ManagedPrometheusConfig\022h\n" + + "&advanced_datapath_observability_config\030\003 \001(\01328.google.c" + + "ontainer.v1.AdvancedDatapathObservabilityConfig\"\236\002\n" + "#AdvancedDatapathObservabilityConfig\022\026\n" + "\016enable_metrics\030\001 \001(\010\022V\n\n" - + "relay_mode\030\002 \001(\0162B.goo" - + "gle.container.v1.AdvancedDatapathObservabilityConfig.RelayMode\022\031\n" + + "relay_mode\030\002 \001(\0162B.google.container.v1.Advanc" + + "edDatapathObservabilityConfig.RelayMode\022\031\n" + "\014enable_relay\030\003 \001(\010H\000\210\001\001\"[\n" + "\tRelayMode\022\032\n" + "\026RELAY_MODE_UNSPECIFIED\020\000\022\014\n" @@ -2666,8 +2725,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007DEFAULT\020\001\022\022\n" + "\016MAX_THROUGHPUT\020\002\"\346\002\n" + "\031MonitoringComponentConfig\022S\n" - + "\021enable_components\030\001 \003(\01628." - + "google.container.v1.MonitoringComponentConfig.Component\"\363\001\n" + + "\021enable_components\030\001" + + " \003(\01628.google.container.v1.MonitoringComponentConfig.Component\"\363\001\n" + "\tComponent\022\031\n" + "\025COMPONENT_UNSPECIFIED\020\000\022\025\n" + "\021SYSTEM_COMPONENTS\020\001\022\r\n" @@ -2688,8 +2747,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006JOBSET\020\020\"u\n" + "\027ManagedPrometheusConfig\022\017\n" + "\007enabled\030\001 \001(\010\022I\n" - + "\026auto_monitoring_config\030\002" - + " \001(\0132).google.container.v1.AutoMonitoringConfig\"\211\001\n" + + "\026auto_monitoring_config\030\002 \001(\0132).goo" + + "gle.container.v1.AutoMonitoringConfig\"\211\001\n" + "\024AutoMonitoringConfig\022>\n" + "\005scope\030\001 \001(\0162/.google.container.v1.AutoMonitoringConfig.Scope\"1\n" + "\005Scope\022\025\n" @@ -2697,32 +2756,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ALL\020\001\022\010\n" + "\004NONE\020\002\"\260\001\n" + "\016PodAutoscaling\022H\n" - + "\013hpa_profile\030\002 \001(\016" - + "2..google.container.v1.PodAutoscaling.HPAProfileH\000\210\001\001\"D\n\n" + + "\013hpa_profile\030\002" + + " \001(\0162..google.container.v1.PodAutoscaling.HPAProfileH\000\210\001\001\"D\n\n" + "HPAProfile\022\033\n" + "\027HPA_PROFILE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\017\n" + "\013PERFORMANCE\020\002B\016\n" - + "\014_hpa_profile\"N\n" + + "\014_hpa_profile\"\326\001\n" + "\005Fleet\022\017\n" + "\007project\030\001 \001(\t\022\027\n\n" + "membership\030\002 \001(\tB\003\340A\003\022\033\n" - + "\016pre_registered\030\003 \001(\010B\003\340A\003\"\254\005\n" + + "\016pre_registered\030\003 \001(\010B\003\340A\003\022B\n" + + "\017membership_type\030\004 \001(\0162).google.container.v1.Fleet.MembershipType\"B\n" + + "\016MembershipType\022\037\n" + + "\033MEMBERSHIP_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013LIGHTWEIGHT\020\001\"\267\006\n" + "\033ControlPlaneEndpointsConfig\022_\n" - + "\023dns_endpoint_config\030\001 \001(\013" - + "2B.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig\022_\n" - + "\023ip_endpoints_config\030\003 \001(\0132B.google.container.v1." - + "ControlPlaneEndpointsConfig.IPEndpointsConfig\032j\n" + + "\023dns_endpoint_config\030\001 \001(\0132B.goo" + + "gle.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig\022_\n" + + "\023ip_endpoints_config\030\003 \001(\0132B.google.container.v1.Contro" + + "lPlaneEndpointsConfig.IPEndpointsConfig\032\364\001\n" + "\021DNSEndpointConfig\022\025\n" + "\010endpoint\030\002 \001(\tB\003\340A\003\022#\n" - + "\026allow_external_traffic\030\003 \001(\010H\000\210\001\001B\031\n" - + "\027_allow_external_traffic\032\336\002\n" + + "\026allow_external_traffic\030\003 \001(\010H\000\210\001\001\022&\n" + + "\031enable_k8s_tokens_via_dns\030\005 \001(\010H\001\210\001\001\022%\n" + + "\030enable_k8s_certs_via_dns\030\006 \001(\010H\002\210\001\001B\031\n" + + "\027_allow_external_trafficB\034\n" + + "\032_enable_k8s_tokens_via_dnsB\033\n" + + "\031_enable_k8s_certs_via_dns\032\336\002\n" + "\021IPEndpointsConfig\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001\022#\n" + "\026enable_public_endpoint\030\002 \001(\010H\001\210\001\001\022\032\n\r" + "global_access\030\003 \001(\010H\002\210\001\001\022W\n" - + "\032authorized_networks_config\030\004" - + " \001(\01323.google.container.v1.MasterAuthorizedNetworksConfig\022\034\n" + + "\032authorized_networks_config\030\004 \001(\01323.google" + + ".container.v1.MasterAuthorizedNetworksConfig\022\034\n" + "\017public_endpoint\030\005 \001(\tB\003\340A\003\022\035\n" + "\020private_endpoint\030\006 \001(\tB\003\340A\003\022#\n" + "\033private_endpoint_subnetwork\030\007 \001(\tB\n\n" @@ -2738,19 +2805,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\001 \003(\01322.google.container.v1.ResourceManagerTags.TagsEntry\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\364\001\n" + + "\005value\030\002 \001(\t:\0028\001\"\374\001\n" + "\020EnterpriseConfig\022L\n" - + "\014cluster_tier\030\001" - + " \001(\01621.google.container.v1.EnterpriseConfig.ClusterTierB\003\340A\003\022G\n" - + "\014desired_tier\030\002" - + " \001(\01621.google.container.v1.EnterpriseConfig.ClusterTier\"I\n" + + "\014cluster_tier\030\001 \001(\01621.goo" + + "gle.container.v1.EnterpriseConfig.ClusterTierB\003\340A\003\022G\n" + + "\014desired_tier\030\002 \001(\01621.googl" + + "e.container.v1.EnterpriseConfig.ClusterTier\"M\n" + "\013ClusterTier\022\034\n" + "\030CLUSTER_TIER_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\016\n\n" - + "ENTERPRISE\020\002\"7\n" + + "ENTERPRISE\020\002\032\002\030\001:\002\030\001\"\250\002\n" + "\023SecretManagerConfig\022\024\n" - + "\007enabled\030\001 \001(\010H\000\210\001\001B\n\n" - + "\010_enabled\"h\n" + + "\007enabled\030\001 \001(\010H\000\210\001\001\022U\n" + + "\017rotation_config\030\002 \001(\01327." + + "google.container.v1.SecretManagerConfig.RotationConfigH\001\210\001\001\032\203\001\n" + + "\016RotationConfig\022\024\n" + + "\007enabled\030\001 \001(\010H\000\210\001\001\0229\n" + + "\021rotation_interval\030\002" + + " \001(\0132\031.google.protobuf.DurationH\001\210\001\001B\n\n" + + "\010_enabledB\024\n" + + "\022_rotation_intervalB\n\n" + + "\010_enabledB\022\n" + + "\020_rotation_config\"h\n" + "\010BootDisk\022\021\n" + "\tdisk_type\030\001 \001(\t\022\017\n" + "\007size_gb\030\002 \001(\003\022\030\n" @@ -2769,10 +2845,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ClusterUpgradeInfo\022!\n" + "\024minor_target_version\030\007 \001(\tH\000\210\001\001\022!\n" + "\024patch_target_version\030\010 \001(\tH\001\210\001\001\022V\n" - + "\023auto_upgrade_status\030\002" - + " \003(\01629.google.container.v1.ClusterUpgradeInfo.AutoUpgradeStatus\022V\n\r" - + "paused_reason\030\003 \003(\0162?.google.container.v1.Cl" - + "usterUpgradeInfo.AutoUpgradePausedReason\022<\n" + + "\023auto_upgrade_status\030\002 \003(\01629.g" + + "oogle.container.v1.ClusterUpgradeInfo.AutoUpgradeStatus\022V\n\r" + + "paused_reason\030\003 \003(\0162?" + + ".google.container.v1.ClusterUpgradeInfo.AutoUpgradePausedReason\022<\n" + "\017upgrade_details\030\004 \003(\0132#.google.container.v1.UpgradeDetails\022.\n" + "!end_of_standard_support_timestamp\030\005 \001(\tH\002\210\001\001\022.\n" + "!end_of_extended_support_timestamp\030\006 \001(\tH\003\210\001\001\"Z\n" @@ -2803,7 +2879,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016target_version\030\005 \001(\t\022A\n\n" + "start_type\030\006 \001(\0162-.google.container.v1.UpgradeDetails.StartType\"J\n" + "\005State\022\013\n" - + "\007UNKNOWN\020\000\022\n\n" + + "\007UNKNOWN\020\000\022\n" + + "\n" + "\006FAILED\020\001\022\r\n" + "\tSUCCEEDED\020\002\022\014\n" + "\010CANCELED\020\003\022\013\n" @@ -2820,10 +2897,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023NodePoolUpgradeInfo\022!\n" + "\024minor_target_version\030\001 \001(\tH\000\210\001\001\022!\n" + "\024patch_target_version\030\002 \001(\tH\001\210\001\001\022W\n" - + "\023auto_upgrade_status\030\003 \003(\0162" - + ":.google.container.v1.NodePoolUpgradeInfo.AutoUpgradeStatus\022W\n\r" - + "paused_reason\030\004 \003" - + "(\0162@.google.container.v1.NodePoolUpgradeInfo.AutoUpgradePausedReason\022<\n" + + "\023auto_upgrade_status\030\003 \003(\0162:.google.containe" + + "r.v1.NodePoolUpgradeInfo.AutoUpgradeStatus\022W\n\r" + + "paused_reason\030\004 \003(\0162@.google.conta" + + "iner.v1.NodePoolUpgradeInfo.AutoUpgradePausedReason\022<\n" + "\017upgrade_details\030\005 \003(\0132#.google.container.v1.UpgradeDetails\022.\n" + "!end_of_standard_support_timestamp\030\006 \001(\tH\002\210\001\001\022.\n" + "!end_of_extended_support_timestamp\030\007 \001(\tH\003\210\001\001\"Z\n" @@ -2846,7 +2923,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "patch_mode\030\001 \001(\01623.google.container.v1.GkeAutoUpgradeConfig.PatchMode\"8\n" + "\tPatchMode\022\032\n" + "\026PATCH_MODE_UNSPECIFIED\020\000\022\017\n" - + "\013ACCELERATED\020\001*\306\001\n" + + "\013ACCELERATED\020\001\"\331\001\n" + + "\021NetworkTierConfig\022H\n" + + "\014network_tier\030\001 \001(\01622.google.cont" + + "ainer.v1.NetworkTierConfig.NetworkTier\"z\n" + + "\013NetworkTier\022\034\n" + + "\030NETWORK_TIER_UNSPECIFIED\020\000\022\030\n" + + "\024NETWORK_TIER_DEFAULT\020\001\022\030\n" + + "\024NETWORK_TIER_PREMIUM\020\002\022\031\n" + + "\025NETWORK_TIER_STANDARD\020\003*\306\001\n" + "\027PrivateIPv6GoogleAccess\022*\n" + "&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\'\n" + "#PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED\020\001\022(\n" @@ -2877,238 +2962,248 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036IN_TRANSIT_ENCRYPTION_DISABLED\020\001\0220\n" + ",IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT\020\0022\371M\n" + "\016ClusterManager\022\350\001\n" - + "\014ListClusters\022(.google.container.v1.ListClustersRequest\032).google." - + "container.v1.ListClustersResponse\"\202\001\332A\017p" - + "roject_id,zone\332A\006parent\202\323\344\223\002a\022,/v1/{pare" - + "nt=projects/*/locations/*}/clustersZ1\022//" - + "v1/projects/{project_id}/zones/{zone}/clusters\022\355\001\n\n" - + "GetCluster\022&.google.container.v1.GetClusterRequest\032\034.google.container" - + ".v1.Cluster\"\230\001\332A\032project_id,zone,cluster" - + "_id\332A\004name\202\323\344\223\002n\022,/v1/{name=projects/*/l" - + "ocations/*/clusters/*}Z>\022*\022*/v1/{name=projec" - + "ts/*/locations/*/clusters/*}:setResource" - + "Labels:\001*ZP\"K/v1/projects/{project_id}/z" - + "ones/{zone}/clusters/{cluster_id}/resour" - + "ceLabels:\001*\022\245\002\n\rSetLegacyAbac\022).google.c" - + "ontainer.v1.SetLegacyAbacRequest\032\036.googl" - + "e.container.v1.Operation\"\310\001\332A\"project_id" - + ",zone,cluster_id,enabled\332A\014name,enabled\202" - + "\323\344\223\002\215\001\":/v1/{name=projects/*/locations/*" - + "/clusters/*}:setLegacyAbac:\001*ZL\"G/v1/pro" - + "jects/{project_id}/zones/{zone}/clusters" - + "/{cluster_id}/legacyAbac:\001*\022\240\002\n\017StartIPR" - + "otation\022+.google.container.v1.StartIPRot" - + "ationRequest\032\036.google.container.v1.Opera" - + "tion\"\277\001\332A\032project_id,zone,cluster_id\332A\004n" - + "ame\202\323\344\223\002\224\001\"/v1/{name=pro" + + "jects/*/locations/*/clusters/*}:setResou" + + "rceLabels:\001*ZP\"K/v1/projects/{project_id" + + "}/zones/{zone}/clusters/{cluster_id}/res" + + "ourceLabels:\001*\022\245\002\n\rSetLegacyAbac\022).googl" + + "e.container.v1.SetLegacyAbacRequest\032\036.go" + + "ogle.container.v1.Operation\"\310\001\332A\"project" + + "_id,zone,cluster_id,enabled\332A\014name,enabl" + + "ed\202\323\344\223\002\215\001\":/v1/{name=projects/*/location" + + "s/*/clusters/*}:setLegacyAbac:\001*ZL\"G/v1/" + + "projects/{project_id}/zones/{zone}/clust" + + "ers/{cluster_id}/legacyAbac:\001*\022\240\002\n\017Start" + + "IPRotation\022+.google.container.v1.StartIP" + + "RotationRequest\032\036.google.container.v1.Op" + + "eration\"\277\001\332A\032project_id,zone,cluster_id\332" + + "A\004name\202\323\344\223\002\224\001\" * * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1/cluster_service.proto;l=3054 + * deprecated. See google/container/v1/cluster_service.proto;l=3121 * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ @java.lang.Override @@ -920,7 +920,7 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * * * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1/cluster_service.proto;l=3054 + * deprecated. See google/container/v1/cluster_service.proto;l=3121 * @return The desiredMasterAuthorizedNetworksConfig. */ @java.lang.Override @@ -1272,7 +1272,7 @@ public com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutos * * * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 + * google/container/v1/cluster_service.proto;l=3159 * @return Whether the desiredPrivateClusterConfig field is set. */ @java.lang.Override @@ -1302,7 +1302,7 @@ public boolean hasDesiredPrivateClusterConfig() { * * * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 + * google/container/v1/cluster_service.proto;l=3159 * @return The desiredPrivateClusterConfig. */ @java.lang.Override @@ -1984,7 +1984,7 @@ public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExterna * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=3137 + * See google/container/v1/cluster_service.proto;l=3204 * @return Whether the desiredEnablePrivateEndpoint field is set. */ @java.lang.Override @@ -2008,7 +2008,7 @@ public boolean hasDesiredEnablePrivateEndpoint() { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=3137 + * See google/container/v1/cluster_service.proto;l=3204 * @return The desiredEnablePrivateEndpoint. */ @java.lang.Override @@ -3552,7 +3552,7 @@ public com.google.container.v1.NodeKubeletConfig getDesiredNodePoolAutoConfigKub * * * @deprecated google.container.v1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3253 + * google/container/v1/cluster_service.proto;l=3320 * @return Whether the userManagedKeysConfig field is set. */ @java.lang.Override @@ -3578,7 +3578,7 @@ public boolean hasUserManagedKeysConfig() { * * * @deprecated google.container.v1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3253 + * google/container/v1/cluster_service.proto;l=3320 * @return The userManagedKeysConfig. */ @java.lang.Override @@ -3739,13 +3739,21 @@ public boolean hasDesiredAdditionalIpRangesConfig() { * *
                                        * The desired enterprise configuration for the cluster.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=3333 * @return Whether the desiredEnterpriseConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasDesiredEnterpriseConfig() { return ((bitField1_ & 0x00200000) != 0); } @@ -3755,13 +3763,21 @@ public boolean hasDesiredEnterpriseConfig() { * *
                                        * The desired enterprise configuration for the cluster.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=3333 * @return The desiredEnterpriseConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.DesiredEnterpriseConfig getDesiredEnterpriseConfig() { return desiredEnterpriseConfig_ == null ? com.google.container.v1.DesiredEnterpriseConfig.getDefaultInstance() @@ -3773,11 +3789,17 @@ public com.google.container.v1.DesiredEnterpriseConfig getDesiredEnterpriseConfi * *
                                        * The desired enterprise configuration for the cluster.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.DesiredEnterpriseConfigOrBuilder getDesiredEnterpriseConfigOrBuilder() { return desiredEnterpriseConfig_ == null @@ -4114,6 +4136,59 @@ public com.google.container.v1.GkeAutoUpgradeConfigOrBuilder getGkeAutoUpgradeCo : gkeAutoUpgradeConfig_; } + public static final int DESIRED_NETWORK_TIER_CONFIG_FIELD_NUMBER = 155; + private com.google.container.v1.NetworkTierConfig desiredNetworkTierConfig_; + + /** + * + * + *
                                    +   * The desired network tier configuration for the cluster.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + * + * @return Whether the desiredNetworkTierConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNetworkTierConfig() { + return ((bitField1_ & 0x10000000) != 0); + } + + /** + * + * + *
                                    +   * The desired network tier configuration for the cluster.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + * + * @return The desiredNetworkTierConfig. + */ + @java.lang.Override + public com.google.container.v1.NetworkTierConfig getDesiredNetworkTierConfig() { + return desiredNetworkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : desiredNetworkTierConfig_; + } + + /** + * + * + *
                                    +   * The desired network tier configuration for the cluster.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + */ + @java.lang.Override + public com.google.container.v1.NetworkTierConfigOrBuilder getDesiredNetworkTierConfigOrBuilder() { + return desiredNetworkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : desiredNetworkTierConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4341,6 +4416,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x08000000) != 0)) { output.writeMessage(154, getGkeAutoUpgradeConfig()); } + if (((bitField1_ & 0x10000000) != 0)) { + output.writeMessage(155, getDesiredNetworkTierConfig()); + } if (((bitField1_ & 0x04000000) != 0)) { output.writeMessage(156, getDesiredAnonymousAuthenticationConfig()); } @@ -4672,6 +4750,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(154, getGkeAutoUpgradeConfig()); } + if (((bitField1_ & 0x10000000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 155, getDesiredNetworkTierConfig()); + } if (((bitField1_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -5005,6 +5088,10 @@ public boolean equals(final java.lang.Object obj) { if (hasGkeAutoUpgradeConfig()) { if (!getGkeAutoUpgradeConfig().equals(other.getGkeAutoUpgradeConfig())) return false; } + if (hasDesiredNetworkTierConfig() != other.hasDesiredNetworkTierConfig()) return false; + if (hasDesiredNetworkTierConfig()) { + if (!getDesiredNetworkTierConfig().equals(other.getDesiredNetworkTierConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5292,6 +5379,10 @@ public int hashCode() { hash = (37 * hash) + GKE_AUTO_UPGRADE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getGkeAutoUpgradeConfig().hashCode(); } + if (hasDesiredNetworkTierConfig()) { + hash = (37 * hash) + DESIRED_NETWORK_TIER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNetworkTierConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5487,6 +5578,7 @@ private void maybeForceBuilderInitialization() { getDesiredUserManagedKeysConfigFieldBuilder(); getDesiredAnonymousAuthenticationConfigFieldBuilder(); getGkeAutoUpgradeConfigFieldBuilder(); + getDesiredNetworkTierConfigFieldBuilder(); } } @@ -5779,6 +5871,11 @@ public Builder clear() { gkeAutoUpgradeConfigBuilder_.dispose(); gkeAutoUpgradeConfigBuilder_ = null; } + desiredNetworkTierConfig_ = null; + if (desiredNetworkTierConfigBuilder_ != null) { + desiredNetworkTierConfigBuilder_.dispose(); + desiredNetworkTierConfigBuilder_ = null; + } return this; } @@ -6267,6 +6364,13 @@ private void buildPartial2(com.google.container.v1.ClusterUpdate result) { : gkeAutoUpgradeConfigBuilder_.build(); to_bitField1_ |= 0x08000000; } + if (((from_bitField2_ & 0x00000080) != 0)) { + result.desiredNetworkTierConfig_ = + desiredNetworkTierConfigBuilder_ == null + ? desiredNetworkTierConfig_ + : desiredNetworkTierConfigBuilder_.build(); + to_bitField1_ |= 0x10000000; + } result.bitField1_ |= to_bitField1_; } @@ -6555,6 +6659,9 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { if (other.hasGkeAutoUpgradeConfig()) { mergeGkeAutoUpgradeConfig(other.getGkeAutoUpgradeConfig()); } + if (other.hasDesiredNetworkTierConfig()) { + mergeDesiredNetworkTierConfig(other.getDesiredNetworkTierConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7068,6 +7175,13 @@ public Builder mergeFrom( bitField2_ |= 0x00000040; break; } // case 1234 + case 1242: + { + input.readMessage( + getDesiredNetworkTierConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000080; + break; + } // case 1242 case 1250: { input.readMessage( @@ -9556,7 +9670,7 @@ public Builder addDesiredLocationsBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1/cluster_service.proto;l=3054 + * deprecated. See google/container/v1/cluster_service.proto;l=3121 * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ @java.lang.Deprecated @@ -9580,7 +9694,7 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * * * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1/cluster_service.proto;l=3054 + * deprecated. See google/container/v1/cluster_service.proto;l=3121 * @return The desiredMasterAuthorizedNetworksConfig. */ @java.lang.Deprecated @@ -10815,7 +10929,7 @@ public Builder clearDesiredVerticalPodAutoscaling() { * * * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. - * See google/container/v1/cluster_service.proto;l=3092 + * See google/container/v1/cluster_service.proto;l=3159 * @return Whether the desiredPrivateClusterConfig field is set. */ @java.lang.Deprecated @@ -10844,7 +10958,7 @@ public boolean hasDesiredPrivateClusterConfig() { * * * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. - * See google/container/v1/cluster_service.proto;l=3092 + * See google/container/v1/cluster_service.proto;l=3159 * @return The desiredPrivateClusterConfig. */ @java.lang.Deprecated @@ -13350,7 +13464,7 @@ public Builder clearDesiredServiceExternalIpsConfig() { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=3137 + * See google/container/v1/cluster_service.proto;l=3204 * @return Whether the desiredEnablePrivateEndpoint field is set. */ @java.lang.Override @@ -13374,7 +13488,7 @@ public boolean hasDesiredEnablePrivateEndpoint() { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=3137 + * See google/container/v1/cluster_service.proto;l=3204 * @return The desiredEnablePrivateEndpoint. */ @java.lang.Override @@ -13398,7 +13512,7 @@ public boolean getDesiredEnablePrivateEndpoint() { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=3137 + * See google/container/v1/cluster_service.proto;l=3204 * @param value The desiredEnablePrivateEndpoint to set. * @return This builder for chaining. */ @@ -13426,7 +13540,7 @@ public Builder setDesiredEnablePrivateEndpoint(boolean value) { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=3137 + * See google/container/v1/cluster_service.proto;l=3204 * @return This builder for chaining. */ @java.lang.Deprecated @@ -18486,7 +18600,7 @@ public Builder clearDesiredNodePoolAutoConfigKubeletConfig() { * * * @deprecated google.container.v1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3253 + * google/container/v1/cluster_service.proto;l=3320 * @return Whether the userManagedKeysConfig field is set. */ @java.lang.Deprecated @@ -18511,7 +18625,7 @@ public boolean hasUserManagedKeysConfig() { * * * @deprecated google.container.v1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3253 + * google/container/v1/cluster_service.proto;l=3320 * @return The userManagedKeysConfig. */ @java.lang.Deprecated @@ -19181,12 +19295,20 @@ public Builder clearDesiredAdditionalIpRangesConfig() { * *
                                          * The desired enterprise configuration for the cluster.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=3333 * @return Whether the desiredEnterpriseConfig field is set. */ + @java.lang.Deprecated public boolean hasDesiredEnterpriseConfig() { return ((bitField2_ & 0x00000001) != 0); } @@ -19196,12 +19318,20 @@ public boolean hasDesiredEnterpriseConfig() { * *
                                          * The desired enterprise configuration for the cluster.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=3333 * @return The desiredEnterpriseConfig. */ + @java.lang.Deprecated public com.google.container.v1.DesiredEnterpriseConfig getDesiredEnterpriseConfig() { if (desiredEnterpriseConfigBuilder_ == null) { return desiredEnterpriseConfig_ == null @@ -19217,10 +19347,16 @@ public com.google.container.v1.DesiredEnterpriseConfig getDesiredEnterpriseConfi * *
                                          * The desired enterprise configuration for the cluster.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setDesiredEnterpriseConfig( com.google.container.v1.DesiredEnterpriseConfig value) { if (desiredEnterpriseConfigBuilder_ == null) { @@ -19241,10 +19377,16 @@ public Builder setDesiredEnterpriseConfig( * *
                                          * The desired enterprise configuration for the cluster.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setDesiredEnterpriseConfig( com.google.container.v1.DesiredEnterpriseConfig.Builder builderForValue) { if (desiredEnterpriseConfigBuilder_ == null) { @@ -19262,10 +19404,16 @@ public Builder setDesiredEnterpriseConfig( * *
                                          * The desired enterprise configuration for the cluster.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeDesiredEnterpriseConfig( com.google.container.v1.DesiredEnterpriseConfig value) { if (desiredEnterpriseConfigBuilder_ == null) { @@ -19292,10 +19440,16 @@ public Builder mergeDesiredEnterpriseConfig( * *
                                          * The desired enterprise configuration for the cluster.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearDesiredEnterpriseConfig() { bitField2_ = (bitField2_ & ~0x00000001); desiredEnterpriseConfig_ = null; @@ -19312,10 +19466,16 @@ public Builder clearDesiredEnterpriseConfig() { * *
                                          * The desired enterprise configuration for the cluster.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.DesiredEnterpriseConfig.Builder getDesiredEnterpriseConfigBuilder() { bitField2_ |= 0x00000001; @@ -19328,10 +19488,16 @@ public Builder clearDesiredEnterpriseConfig() { * *
                                          * The desired enterprise configuration for the cluster.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.DesiredEnterpriseConfigOrBuilder getDesiredEnterpriseConfigOrBuilder() { if (desiredEnterpriseConfigBuilder_ != null) { @@ -19348,9 +19514,14 @@ public Builder clearDesiredEnterpriseConfig() { * *
                                          * The desired enterprise configuration for the cluster.
                                    +     *
                                    +     * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +     * tier.
                                          * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.DesiredEnterpriseConfig, @@ -20517,6 +20688,203 @@ public com.google.container.v1.GkeAutoUpgradeConfig.Builder getGkeAutoUpgradeCon return gkeAutoUpgradeConfigBuilder_; } + private com.google.container.v1.NetworkTierConfig desiredNetworkTierConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTierConfig, + com.google.container.v1.NetworkTierConfig.Builder, + com.google.container.v1.NetworkTierConfigOrBuilder> + desiredNetworkTierConfigBuilder_; + + /** + * + * + *
                                    +     * The desired network tier configuration for the cluster.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + * + * @return Whether the desiredNetworkTierConfig field is set. + */ + public boolean hasDesiredNetworkTierConfig() { + return ((bitField2_ & 0x00000080) != 0); + } + + /** + * + * + *
                                    +     * The desired network tier configuration for the cluster.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + * + * @return The desiredNetworkTierConfig. + */ + public com.google.container.v1.NetworkTierConfig getDesiredNetworkTierConfig() { + if (desiredNetworkTierConfigBuilder_ == null) { + return desiredNetworkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : desiredNetworkTierConfig_; + } else { + return desiredNetworkTierConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * The desired network tier configuration for the cluster.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + */ + public Builder setDesiredNetworkTierConfig(com.google.container.v1.NetworkTierConfig value) { + if (desiredNetworkTierConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNetworkTierConfig_ = value; + } else { + desiredNetworkTierConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The desired network tier configuration for the cluster.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + */ + public Builder setDesiredNetworkTierConfig( + com.google.container.v1.NetworkTierConfig.Builder builderForValue) { + if (desiredNetworkTierConfigBuilder_ == null) { + desiredNetworkTierConfig_ = builderForValue.build(); + } else { + desiredNetworkTierConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The desired network tier configuration for the cluster.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + */ + public Builder mergeDesiredNetworkTierConfig(com.google.container.v1.NetworkTierConfig value) { + if (desiredNetworkTierConfigBuilder_ == null) { + if (((bitField2_ & 0x00000080) != 0) + && desiredNetworkTierConfig_ != null + && desiredNetworkTierConfig_ + != com.google.container.v1.NetworkTierConfig.getDefaultInstance()) { + getDesiredNetworkTierConfigBuilder().mergeFrom(value); + } else { + desiredNetworkTierConfig_ = value; + } + } else { + desiredNetworkTierConfigBuilder_.mergeFrom(value); + } + if (desiredNetworkTierConfig_ != null) { + bitField2_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * The desired network tier configuration for the cluster.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + */ + public Builder clearDesiredNetworkTierConfig() { + bitField2_ = (bitField2_ & ~0x00000080); + desiredNetworkTierConfig_ = null; + if (desiredNetworkTierConfigBuilder_ != null) { + desiredNetworkTierConfigBuilder_.dispose(); + desiredNetworkTierConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The desired network tier configuration for the cluster.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + */ + public com.google.container.v1.NetworkTierConfig.Builder getDesiredNetworkTierConfigBuilder() { + bitField2_ |= 0x00000080; + onChanged(); + return getDesiredNetworkTierConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * The desired network tier configuration for the cluster.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + */ + public com.google.container.v1.NetworkTierConfigOrBuilder + getDesiredNetworkTierConfigOrBuilder() { + if (desiredNetworkTierConfigBuilder_ != null) { + return desiredNetworkTierConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNetworkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : desiredNetworkTierConfig_; + } + } + + /** + * + * + *
                                    +     * The desired network tier configuration for the cluster.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTierConfig, + com.google.container.v1.NetworkTierConfig.Builder, + com.google.container.v1.NetworkTierConfigOrBuilder> + getDesiredNetworkTierConfigFieldBuilder() { + if (desiredNetworkTierConfigBuilder_ == null) { + desiredNetworkTierConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTierConfig, + com.google.container.v1.NetworkTierConfig.Builder, + com.google.container.v1.NetworkTierConfigOrBuilder>( + getDesiredNetworkTierConfig(), getParentForChildren(), isClean()); + desiredNetworkTierConfig_ = null; + } + return desiredNetworkTierConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java index 26a984d31a3b..7d789737fbe4 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java @@ -583,7 +583,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1/cluster_service.proto;l=3054 + * deprecated. See google/container/v1/cluster_service.proto;l=3121 * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ @java.lang.Deprecated @@ -605,7 +605,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1/cluster_service.proto;l=3054 + * deprecated. See google/container/v1/cluster_service.proto;l=3121 * @return The desiredMasterAuthorizedNetworksConfig. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 + * google/container/v1/cluster_service.proto;l=3159 * @return Whether the desiredPrivateClusterConfig field is set. */ @java.lang.Deprecated @@ -877,7 +877,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1.ClusterUpdate.desired_private_cluster_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 + * google/container/v1/cluster_service.proto;l=3159 * @return The desiredPrivateClusterConfig. */ @java.lang.Deprecated @@ -1360,7 +1360,7 @@ public interface ClusterUpdateOrBuilder * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=3137 + * See google/container/v1/cluster_service.proto;l=3204 * @return Whether the desiredEnablePrivateEndpoint field is set. */ @java.lang.Deprecated @@ -1381,7 +1381,7 @@ public interface ClusterUpdateOrBuilder * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1.ClusterUpdate.desired_enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=3137 + * See google/container/v1/cluster_service.proto;l=3204 * @return The desiredEnablePrivateEndpoint. */ @java.lang.Deprecated @@ -2476,7 +2476,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3253 + * google/container/v1/cluster_service.proto;l=3320 * @return Whether the userManagedKeysConfig field is set. */ @java.lang.Deprecated @@ -2499,7 +2499,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1/cluster_service.proto;l=3253 + * google/container/v1/cluster_service.proto;l=3320 * @return The userManagedKeysConfig. */ @java.lang.Deprecated @@ -2613,12 +2613,20 @@ public interface ClusterUpdateOrBuilder * *
                                        * The desired enterprise configuration for the cluster.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=3333 * @return Whether the desiredEnterpriseConfig field is set. */ + @java.lang.Deprecated boolean hasDesiredEnterpriseConfig(); /** @@ -2626,12 +2634,20 @@ public interface ClusterUpdateOrBuilder * *
                                        * The desired enterprise configuration for the cluster.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * * + * @deprecated google.container.v1.ClusterUpdate.desired_enterprise_config is deprecated. See + * google/container/v1/cluster_service.proto;l=3333 * @return The desiredEnterpriseConfig. */ + @java.lang.Deprecated com.google.container.v1.DesiredEnterpriseConfig getDesiredEnterpriseConfig(); /** @@ -2639,10 +2655,16 @@ public interface ClusterUpdateOrBuilder * *
                                        * The desired enterprise configuration for the cluster.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * - * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147; + * + * .google.container.v1.DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.container.v1.DesiredEnterpriseConfigOrBuilder getDesiredEnterpriseConfigOrBuilder(); /** @@ -2881,4 +2903,41 @@ public interface ClusterUpdateOrBuilder * .google.container.v1.GkeAutoUpgradeConfig gke_auto_upgrade_config = 154; */ com.google.container.v1.GkeAutoUpgradeConfigOrBuilder getGkeAutoUpgradeConfigOrBuilder(); + + /** + * + * + *
                                    +   * The desired network tier configuration for the cluster.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + * + * @return Whether the desiredNetworkTierConfig field is set. + */ + boolean hasDesiredNetworkTierConfig(); + + /** + * + * + *
                                    +   * The desired network tier configuration for the cluster.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + * + * @return The desiredNetworkTierConfig. + */ + com.google.container.v1.NetworkTierConfig getDesiredNetworkTierConfig(); + + /** + * + * + *
                                    +   * The desired network tier configuration for the cluster.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig desired_network_tier_config = 155; + */ + com.google.container.v1.NetworkTierConfigOrBuilder getDesiredNetworkTierConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java index 51eee395c61d..7c56874ed812 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5205 + * google/container/v1/cluster_service.proto;l=5321 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5205 + * google/container/v1/cluster_service.proto;l=5321 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5211 + * google/container/v1/cluster_service.proto;l=5327 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5211 + * google/container/v1/cluster_service.proto;l=5327 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5215 + * google/container/v1/cluster_service.proto;l=5331 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5215 + * google/container/v1/cluster_service.proto;l=5331 * @return The bytes for clusterId. */ @java.lang.Override @@ -740,7 +740,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5205 + * google/container/v1/cluster_service.proto;l=5321 * @return The projectId. */ @java.lang.Deprecated @@ -768,7 +768,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5205 + * google/container/v1/cluster_service.proto;l=5321 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -796,7 +796,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5205 + * google/container/v1/cluster_service.proto;l=5321 * @param value The projectId to set. * @return This builder for chaining. */ @@ -823,7 +823,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5205 + * google/container/v1/cluster_service.proto;l=5321 * @return This builder for chaining. */ @java.lang.Deprecated @@ -846,7 +846,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5205 + * google/container/v1/cluster_service.proto;l=5321 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -877,7 +877,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5211 + * google/container/v1/cluster_service.proto;l=5327 * @return The zone. */ @java.lang.Deprecated @@ -906,7 +906,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5211 + * google/container/v1/cluster_service.proto;l=5327 * @return The bytes for zone. */ @java.lang.Deprecated @@ -935,7 +935,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5211 + * google/container/v1/cluster_service.proto;l=5327 * @param value The zone to set. * @return This builder for chaining. */ @@ -963,7 +963,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5211 + * google/container/v1/cluster_service.proto;l=5327 * @return This builder for chaining. */ @java.lang.Deprecated @@ -987,7 +987,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5211 + * google/container/v1/cluster_service.proto;l=5327 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1016,7 +1016,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5215 + * google/container/v1/cluster_service.proto;l=5331 * @return The clusterId. */ @java.lang.Deprecated @@ -1043,7 +1043,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5215 + * google/container/v1/cluster_service.proto;l=5331 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5215 + * google/container/v1/cluster_service.proto;l=5331 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5215 + * google/container/v1/cluster_service.proto;l=5331 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1118,7 +1118,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5215 + * google/container/v1/cluster_service.proto;l=5331 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java index 57466e5cb430..a4dd4103cba6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5205 + * google/container/v1/cluster_service.proto;l=5321 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5205 + * google/container/v1/cluster_service.proto;l=5321 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5211 + * google/container/v1/cluster_service.proto;l=5327 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5211 + * google/container/v1/cluster_service.proto;l=5327 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5215 + * google/container/v1/cluster_service.proto;l=5331 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5215 + * google/container/v1/cluster_service.proto;l=5331 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfig.java index f4da2b136425..669d0a80c35e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfig.java @@ -427,8 +427,7 @@ public interface GCPSecretManagerCertificateConfigOrBuilder * *
                                            * GCPSecretManagerCertificateConfig configures a secret from
                                    -       * [Google Secret
                                    -       * Manager](https://cloud.google.com/secret-manager).
                                    +       * [Secret Manager](https://cloud.google.com/secret-manager).
                                            * 
                                    * * Protobuf type {@code @@ -731,8 +730,7 @@ protected Builder newBuilderForType( * *
                                              * GCPSecretManagerCertificateConfig configures a secret from
                                    -         * [Google Secret
                                    -         * Manager](https://cloud.google.com/secret-manager).
                                    +         * [Secret Manager](https://cloud.google.com/secret-manager).
                                              * 
                                    * * Protobuf type {@code @@ -3582,6 +3580,553 @@ public com.google.protobuf.Parser getParserForType( } } + public interface WritableCgroupsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ContainerdConfig.WritableCgroups) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +     * Optional. Whether writable cgroups is enabled.
                                    +     * 
                                    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); + } + + /** + * + * + *
                                    +   * Defines writable cgroups configuration.
                                    +   * 
                                    + * + * Protobuf type {@code google.container.v1.ContainerdConfig.WritableCgroups} + */ + public static final class WritableCgroups extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ContainerdConfig.WritableCgroups) + WritableCgroupsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use WritableCgroups.newBuilder() to construct. + private WritableCgroups(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WritableCgroups() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WritableCgroups(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_WritableCgroups_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_WritableCgroups_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.WritableCgroups.class, + com.google.container.v1.ContainerdConfig.WritableCgroups.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
                                    +     * Optional. Whether writable cgroups is enabled.
                                    +     * 
                                    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + 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 (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + 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.container.v1.ContainerdConfig.WritableCgroups)) { + return super.equals(obj); + } + com.google.container.v1.ContainerdConfig.WritableCgroups other = + (com.google.container.v1.ContainerdConfig.WritableCgroups) obj; + + if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups 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.container.v1.ContainerdConfig.WritableCgroups parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1.ContainerdConfig.WritableCgroups prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +     * Defines writable cgroups configuration.
                                    +     * 
                                    + * + * Protobuf type {@code google.container.v1.ContainerdConfig.WritableCgroups} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ContainerdConfig.WritableCgroups) + com.google.container.v1.ContainerdConfig.WritableCgroupsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_WritableCgroups_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_WritableCgroups_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.WritableCgroups.class, + com.google.container.v1.ContainerdConfig.WritableCgroups.Builder.class); + } + + // Construct using com.google.container.v1.ContainerdConfig.WritableCgroups.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_WritableCgroups_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.WritableCgroups getDefaultInstanceForType() { + return com.google.container.v1.ContainerdConfig.WritableCgroups.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.WritableCgroups build() { + com.google.container.v1.ContainerdConfig.WritableCgroups result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.WritableCgroups buildPartial() { + com.google.container.v1.ContainerdConfig.WritableCgroups result = + new com.google.container.v1.ContainerdConfig.WritableCgroups(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ContainerdConfig.WritableCgroups result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ContainerdConfig.WritableCgroups) { + return mergeFrom((com.google.container.v1.ContainerdConfig.WritableCgroups) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ContainerdConfig.WritableCgroups other) { + if (other == com.google.container.v1.ContainerdConfig.WritableCgroups.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + 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: + { + enabled_ = input.readBool(); + 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 boolean enabled_; + + /** + * + * + *
                                    +       * Optional. Whether writable cgroups is enabled.
                                    +       * 
                                    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
                                    +       * Optional. Whether writable cgroups is enabled.
                                    +       * 
                                    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * Optional. Whether writable cgroups is enabled.
                                    +       * 
                                    + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ContainerdConfig.WritableCgroups) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ContainerdConfig.WritableCgroups) + private static final com.google.container.v1.ContainerdConfig.WritableCgroups DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ContainerdConfig.WritableCgroups(); + } + + public static com.google.container.v1.ContainerdConfig.WritableCgroups getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WritableCgroups 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.container.v1.ContainerdConfig.WritableCgroups getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int PRIVATE_REGISTRY_ACCESS_CONFIG_FIELD_NUMBER = 1; private com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig @@ -3648,6 +4193,69 @@ public boolean hasPrivateRegistryAccessConfig() { : privateRegistryAccessConfig_; } + public static final int WRITABLE_CGROUPS_FIELD_NUMBER = 2; + private com.google.container.v1.ContainerdConfig.WritableCgroups writableCgroups_; + + /** + * + * + *
                                    +   * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +   * node pool.
                                    +   * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the writableCgroups field is set. + */ + @java.lang.Override + public boolean hasWritableCgroups() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +   * node pool.
                                    +   * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The writableCgroups. + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.WritableCgroups getWritableCgroups() { + return writableCgroups_ == null + ? com.google.container.v1.ContainerdConfig.WritableCgroups.getDefaultInstance() + : writableCgroups_; + } + + /** + * + * + *
                                    +   * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +   * node pool.
                                    +   * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.WritableCgroupsOrBuilder + getWritableCgroupsOrBuilder() { + return writableCgroups_ == null + ? com.google.container.v1.ContainerdConfig.WritableCgroups.getDefaultInstance() + : writableCgroups_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3665,6 +4273,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPrivateRegistryAccessConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getWritableCgroups()); + } getUnknownFields().writeTo(output); } @@ -3679,6 +4290,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, getPrivateRegistryAccessConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWritableCgroups()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3699,6 +4313,10 @@ public boolean equals(final java.lang.Object obj) { if (!getPrivateRegistryAccessConfig().equals(other.getPrivateRegistryAccessConfig())) return false; } + if (hasWritableCgroups() != other.hasWritableCgroups()) return false; + if (hasWritableCgroups()) { + if (!getWritableCgroups().equals(other.getWritableCgroups())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3714,6 +4332,10 @@ public int hashCode() { hash = (37 * hash) + PRIVATE_REGISTRY_ACCESS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPrivateRegistryAccessConfig().hashCode(); } + if (hasWritableCgroups()) { + hash = (37 * hash) + WRITABLE_CGROUPS_FIELD_NUMBER; + hash = (53 * hash) + getWritableCgroups().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3856,6 +4478,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPrivateRegistryAccessConfigFieldBuilder(); + getWritableCgroupsFieldBuilder(); } } @@ -3868,6 +4491,11 @@ public Builder clear() { privateRegistryAccessConfigBuilder_.dispose(); privateRegistryAccessConfigBuilder_ = null; } + writableCgroups_ = null; + if (writableCgroupsBuilder_ != null) { + writableCgroupsBuilder_.dispose(); + writableCgroupsBuilder_ = null; + } return this; } @@ -3912,6 +4540,11 @@ private void buildPartial0(com.google.container.v1.ContainerdConfig result) { : privateRegistryAccessConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.writableCgroups_ = + writableCgroupsBuilder_ == null ? writableCgroups_ : writableCgroupsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -3963,6 +4596,9 @@ public Builder mergeFrom(com.google.container.v1.ContainerdConfig other) { if (other.hasPrivateRegistryAccessConfig()) { mergePrivateRegistryAccessConfig(other.getPrivateRegistryAccessConfig()); } + if (other.hasWritableCgroups()) { + mergeWritableCgroups(other.getWritableCgroups()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3996,6 +4632,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage(getWritableCgroupsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4248,6 +4890,233 @@ public Builder clearPrivateRegistryAccessConfig() { return privateRegistryAccessConfigBuilder_; } + private com.google.container.v1.ContainerdConfig.WritableCgroups writableCgroups_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig.WritableCgroups, + com.google.container.v1.ContainerdConfig.WritableCgroups.Builder, + com.google.container.v1.ContainerdConfig.WritableCgroupsOrBuilder> + writableCgroupsBuilder_; + + /** + * + * + *
                                    +     * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +     * node pool.
                                    +     * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the writableCgroups field is set. + */ + public boolean hasWritableCgroups() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +     * node pool.
                                    +     * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The writableCgroups. + */ + public com.google.container.v1.ContainerdConfig.WritableCgroups getWritableCgroups() { + if (writableCgroupsBuilder_ == null) { + return writableCgroups_ == null + ? com.google.container.v1.ContainerdConfig.WritableCgroups.getDefaultInstance() + : writableCgroups_; + } else { + return writableCgroupsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +     * node pool.
                                    +     * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWritableCgroups( + com.google.container.v1.ContainerdConfig.WritableCgroups value) { + if (writableCgroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + writableCgroups_ = value; + } else { + writableCgroupsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +     * node pool.
                                    +     * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWritableCgroups( + com.google.container.v1.ContainerdConfig.WritableCgroups.Builder builderForValue) { + if (writableCgroupsBuilder_ == null) { + writableCgroups_ = builderForValue.build(); + } else { + writableCgroupsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +     * node pool.
                                    +     * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWritableCgroups( + com.google.container.v1.ContainerdConfig.WritableCgroups value) { + if (writableCgroupsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && writableCgroups_ != null + && writableCgroups_ + != com.google.container.v1.ContainerdConfig.WritableCgroups.getDefaultInstance()) { + getWritableCgroupsBuilder().mergeFrom(value); + } else { + writableCgroups_ = value; + } + } else { + writableCgroupsBuilder_.mergeFrom(value); + } + if (writableCgroups_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +     * node pool.
                                    +     * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWritableCgroups() { + bitField0_ = (bitField0_ & ~0x00000002); + writableCgroups_ = null; + if (writableCgroupsBuilder_ != null) { + writableCgroupsBuilder_.dispose(); + writableCgroupsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +     * node pool.
                                    +     * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.ContainerdConfig.WritableCgroups.Builder + getWritableCgroupsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWritableCgroupsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +     * node pool.
                                    +     * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.ContainerdConfig.WritableCgroupsOrBuilder + getWritableCgroupsOrBuilder() { + if (writableCgroupsBuilder_ != null) { + return writableCgroupsBuilder_.getMessageOrBuilder(); + } else { + return writableCgroups_ == null + ? com.google.container.v1.ContainerdConfig.WritableCgroups.getDefaultInstance() + : writableCgroups_; + } + } + + /** + * + * + *
                                    +     * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +     * node pool.
                                    +     * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig.WritableCgroups, + com.google.container.v1.ContainerdConfig.WritableCgroups.Builder, + com.google.container.v1.ContainerdConfig.WritableCgroupsOrBuilder> + getWritableCgroupsFieldBuilder() { + if (writableCgroupsBuilder_ == null) { + writableCgroupsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig.WritableCgroups, + com.google.container.v1.ContainerdConfig.WritableCgroups.Builder, + com.google.container.v1.ContainerdConfig.WritableCgroupsOrBuilder>( + getWritableCgroups(), getParentForChildren(), isClean()); + writableCgroups_ = null; + } + return writableCgroupsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfigOrBuilder.java index c65332eebb74..76f9c87221be 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfigOrBuilder.java @@ -71,4 +71,50 @@ public interface ContainerdConfigOrBuilder */ com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfigOrBuilder getPrivateRegistryAccessConfigOrBuilder(); + + /** + * + * + *
                                    +   * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +   * node pool.
                                    +   * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the writableCgroups field is set. + */ + boolean hasWritableCgroups(); + + /** + * + * + *
                                    +   * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +   * node pool.
                                    +   * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The writableCgroups. + */ + com.google.container.v1.ContainerdConfig.WritableCgroups getWritableCgroups(); + + /** + * + * + *
                                    +   * Optional. WritableCgroups defines writable cgroups configuration for the
                                    +   * node pool.
                                    +   * 
                                    + * + * + * .google.container.v1.ContainerdConfig.WritableCgroups writable_cgroups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.container.v1.ContainerdConfig.WritableCgroupsOrBuilder getWritableCgroupsOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfig.java index f40d54b95df3..cecfb12c0a8b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ControlPlaneEndpointsConfig.java @@ -106,7 +106,7 @@ public interface DNSEndpointConfigOrBuilder * *
                                          * Controls whether user traffic is allowed over this endpoint. Note that
                                    -     * GCP-managed services may still use the endpoint even if this is false.
                                    +     * Google-managed services may still use the endpoint even if this is false.
                                          * 
                                    * * optional bool allow_external_traffic = 3; @@ -120,7 +120,7 @@ public interface DNSEndpointConfigOrBuilder * *
                                          * Controls whether user traffic is allowed over this endpoint. Note that
                                    -     * GCP-managed services may still use the endpoint even if this is false.
                                    +     * Google-managed services may still use the endpoint even if this is false.
                                          * 
                                    * * optional bool allow_external_traffic = 3; @@ -128,6 +128,58 @@ public interface DNSEndpointConfigOrBuilder * @return The allowExternalTraffic. */ boolean getAllowExternalTraffic(); + + /** + * + * + *
                                    +     * Controls whether the k8s token auth is allowed via DNS.
                                    +     * 
                                    + * + * optional bool enable_k8s_tokens_via_dns = 5; + * + * @return Whether the enableK8sTokensViaDns field is set. + */ + boolean hasEnableK8STokensViaDns(); + + /** + * + * + *
                                    +     * Controls whether the k8s token auth is allowed via DNS.
                                    +     * 
                                    + * + * optional bool enable_k8s_tokens_via_dns = 5; + * + * @return The enableK8sTokensViaDns. + */ + boolean getEnableK8STokensViaDns(); + + /** + * + * + *
                                    +     * Controls whether the k8s certs auth is allowed via DNS.
                                    +     * 
                                    + * + * optional bool enable_k8s_certs_via_dns = 6; + * + * @return Whether the enableK8sCertsViaDns field is set. + */ + boolean hasEnableK8SCertsViaDns(); + + /** + * + * + *
                                    +     * Controls whether the k8s certs auth is allowed via DNS.
                                    +     * 
                                    + * + * optional bool enable_k8s_certs_via_dns = 6; + * + * @return The enableK8sCertsViaDns. + */ + boolean getEnableK8SCertsViaDns(); } /** @@ -245,7 +297,7 @@ public com.google.protobuf.ByteString getEndpointBytes() { * *
                                          * Controls whether user traffic is allowed over this endpoint. Note that
                                    -     * GCP-managed services may still use the endpoint even if this is false.
                                    +     * Google-managed services may still use the endpoint even if this is false.
                                          * 
                                    * * optional bool allow_external_traffic = 3; @@ -262,7 +314,7 @@ public boolean hasAllowExternalTraffic() { * *
                                          * Controls whether user traffic is allowed over this endpoint. Note that
                                    -     * GCP-managed services may still use the endpoint even if this is false.
                                    +     * Google-managed services may still use the endpoint even if this is false.
                                          * 
                                    * * optional bool allow_external_traffic = 3; @@ -274,6 +326,76 @@ public boolean getAllowExternalTraffic() { return allowExternalTraffic_; } + public static final int ENABLE_K8S_TOKENS_VIA_DNS_FIELD_NUMBER = 5; + private boolean enableK8STokensViaDns_ = false; + + /** + * + * + *
                                    +     * Controls whether the k8s token auth is allowed via DNS.
                                    +     * 
                                    + * + * optional bool enable_k8s_tokens_via_dns = 5; + * + * @return Whether the enableK8sTokensViaDns field is set. + */ + @java.lang.Override + public boolean hasEnableK8STokensViaDns() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * Controls whether the k8s token auth is allowed via DNS.
                                    +     * 
                                    + * + * optional bool enable_k8s_tokens_via_dns = 5; + * + * @return The enableK8sTokensViaDns. + */ + @java.lang.Override + public boolean getEnableK8STokensViaDns() { + return enableK8STokensViaDns_; + } + + public static final int ENABLE_K8S_CERTS_VIA_DNS_FIELD_NUMBER = 6; + private boolean enableK8SCertsViaDns_ = false; + + /** + * + * + *
                                    +     * Controls whether the k8s certs auth is allowed via DNS.
                                    +     * 
                                    + * + * optional bool enable_k8s_certs_via_dns = 6; + * + * @return Whether the enableK8sCertsViaDns field is set. + */ + @java.lang.Override + public boolean hasEnableK8SCertsViaDns() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                    +     * Controls whether the k8s certs auth is allowed via DNS.
                                    +     * 
                                    + * + * optional bool enable_k8s_certs_via_dns = 6; + * + * @return The enableK8sCertsViaDns. + */ + @java.lang.Override + public boolean getEnableK8SCertsViaDns() { + return enableK8SCertsViaDns_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -294,6 +416,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(3, allowExternalTraffic_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(5, enableK8STokensViaDns_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(6, enableK8SCertsViaDns_); + } getUnknownFields().writeTo(output); } @@ -309,6 +437,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowExternalTraffic_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableK8STokensViaDns_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enableK8SCertsViaDns_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -330,6 +464,14 @@ public boolean equals(final java.lang.Object obj) { if (hasAllowExternalTraffic()) { if (getAllowExternalTraffic() != other.getAllowExternalTraffic()) return false; } + if (hasEnableK8STokensViaDns() != other.hasEnableK8STokensViaDns()) return false; + if (hasEnableK8STokensViaDns()) { + if (getEnableK8STokensViaDns() != other.getEnableK8STokensViaDns()) return false; + } + if (hasEnableK8SCertsViaDns() != other.hasEnableK8SCertsViaDns()) return false; + if (hasEnableK8SCertsViaDns()) { + if (getEnableK8SCertsViaDns() != other.getEnableK8SCertsViaDns()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -347,6 +489,14 @@ public int hashCode() { hash = (37 * hash) + ALLOW_EXTERNAL_TRAFFIC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowExternalTraffic()); } + if (hasEnableK8STokensViaDns()) { + hash = (37 * hash) + ENABLE_K8S_TOKENS_VIA_DNS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableK8STokensViaDns()); + } + if (hasEnableK8SCertsViaDns()) { + hash = (37 * hash) + ENABLE_K8S_CERTS_VIA_DNS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableK8SCertsViaDns()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -495,6 +645,8 @@ public Builder clear() { bitField0_ = 0; endpoint_ = ""; allowExternalTraffic_ = false; + enableK8STokensViaDns_ = false; + enableK8SCertsViaDns_ = false; return this; } @@ -543,6 +695,14 @@ private void buildPartial0( result.allowExternalTraffic_ = allowExternalTraffic_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableK8STokensViaDns_ = enableK8STokensViaDns_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableK8SCertsViaDns_ = enableK8SCertsViaDns_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -606,6 +766,12 @@ public Builder mergeFrom( if (other.hasAllowExternalTraffic()) { setAllowExternalTraffic(other.getAllowExternalTraffic()); } + if (other.hasEnableK8STokensViaDns()) { + setEnableK8STokensViaDns(other.getEnableK8STokensViaDns()); + } + if (other.hasEnableK8SCertsViaDns()) { + setEnableK8SCertsViaDns(other.getEnableK8SCertsViaDns()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -644,6 +810,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 40: + { + enableK8STokensViaDns_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 + case 48: + { + enableK8SCertsViaDns_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -801,7 +979,7 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { * *
                                            * Controls whether user traffic is allowed over this endpoint. Note that
                                    -       * GCP-managed services may still use the endpoint even if this is false.
                                    +       * Google-managed services may still use the endpoint even if this is false.
                                            * 
                                    * * optional bool allow_external_traffic = 3; @@ -818,7 +996,7 @@ public boolean hasAllowExternalTraffic() { * *
                                            * Controls whether user traffic is allowed over this endpoint. Note that
                                    -       * GCP-managed services may still use the endpoint even if this is false.
                                    +       * Google-managed services may still use the endpoint even if this is false.
                                            * 
                                    * * optional bool allow_external_traffic = 3; @@ -835,7 +1013,7 @@ public boolean getAllowExternalTraffic() { * *
                                            * Controls whether user traffic is allowed over this endpoint. Note that
                                    -       * GCP-managed services may still use the endpoint even if this is false.
                                    +       * Google-managed services may still use the endpoint even if this is false.
                                            * 
                                    * * optional bool allow_external_traffic = 3; @@ -856,7 +1034,7 @@ public Builder setAllowExternalTraffic(boolean value) { * *
                                            * Controls whether user traffic is allowed over this endpoint. Note that
                                    -       * GCP-managed services may still use the endpoint even if this is false.
                                    +       * Google-managed services may still use the endpoint even if this is false.
                                            * 
                                    * * optional bool allow_external_traffic = 3; @@ -870,6 +1048,150 @@ public Builder clearAllowExternalTraffic() { return this; } + private boolean enableK8STokensViaDns_; + + /** + * + * + *
                                    +       * Controls whether the k8s token auth is allowed via DNS.
                                    +       * 
                                    + * + * optional bool enable_k8s_tokens_via_dns = 5; + * + * @return Whether the enableK8sTokensViaDns field is set. + */ + @java.lang.Override + public boolean hasEnableK8STokensViaDns() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                    +       * Controls whether the k8s token auth is allowed via DNS.
                                    +       * 
                                    + * + * optional bool enable_k8s_tokens_via_dns = 5; + * + * @return The enableK8sTokensViaDns. + */ + @java.lang.Override + public boolean getEnableK8STokensViaDns() { + return enableK8STokensViaDns_; + } + + /** + * + * + *
                                    +       * Controls whether the k8s token auth is allowed via DNS.
                                    +       * 
                                    + * + * optional bool enable_k8s_tokens_via_dns = 5; + * + * @param value The enableK8sTokensViaDns to set. + * @return This builder for chaining. + */ + public Builder setEnableK8STokensViaDns(boolean value) { + + enableK8STokensViaDns_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * Controls whether the k8s token auth is allowed via DNS.
                                    +       * 
                                    + * + * optional bool enable_k8s_tokens_via_dns = 5; + * + * @return This builder for chaining. + */ + public Builder clearEnableK8STokensViaDns() { + bitField0_ = (bitField0_ & ~0x00000004); + enableK8STokensViaDns_ = false; + onChanged(); + return this; + } + + private boolean enableK8SCertsViaDns_; + + /** + * + * + *
                                    +       * Controls whether the k8s certs auth is allowed via DNS.
                                    +       * 
                                    + * + * optional bool enable_k8s_certs_via_dns = 6; + * + * @return Whether the enableK8sCertsViaDns field is set. + */ + @java.lang.Override + public boolean hasEnableK8SCertsViaDns() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                    +       * Controls whether the k8s certs auth is allowed via DNS.
                                    +       * 
                                    + * + * optional bool enable_k8s_certs_via_dns = 6; + * + * @return The enableK8sCertsViaDns. + */ + @java.lang.Override + public boolean getEnableK8SCertsViaDns() { + return enableK8SCertsViaDns_; + } + + /** + * + * + *
                                    +       * Controls whether the k8s certs auth is allowed via DNS.
                                    +       * 
                                    + * + * optional bool enable_k8s_certs_via_dns = 6; + * + * @param value The enableK8sCertsViaDns to set. + * @return This builder for chaining. + */ + public Builder setEnableK8SCertsViaDns(boolean value) { + + enableK8SCertsViaDns_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * Controls whether the k8s certs auth is allowed via DNS.
                                    +       * 
                                    + * + * optional bool enable_k8s_certs_via_dns = 6; + * + * @return This builder for chaining. + */ + public Builder clearEnableK8SCertsViaDns() { + bitField0_ = (bitField0_ & ~0x00000008); + enableK8SCertsViaDns_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java index c87283672857..d16db4156571 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3608 + * google/container/v1/cluster_service.proto;l=3689 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3608 + * google/container/v1/cluster_service.proto;l=3689 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3614 + * google/container/v1/cluster_service.proto;l=3695 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3614 + * google/container/v1/cluster_service.proto;l=3695 * @return The bytes for zone. */ @java.lang.Override @@ -752,7 +752,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3608 + * google/container/v1/cluster_service.proto;l=3689 * @return The projectId. */ @java.lang.Deprecated @@ -780,7 +780,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3608 + * google/container/v1/cluster_service.proto;l=3689 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -808,7 +808,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3608 + * google/container/v1/cluster_service.proto;l=3689 * @param value The projectId to set. * @return This builder for chaining. */ @@ -835,7 +835,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3608 + * google/container/v1/cluster_service.proto;l=3689 * @return This builder for chaining. */ @java.lang.Deprecated @@ -858,7 +858,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3608 + * google/container/v1/cluster_service.proto;l=3689 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -889,7 +889,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3614 + * google/container/v1/cluster_service.proto;l=3695 * @return The zone. */ @java.lang.Deprecated @@ -918,7 +918,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3614 + * google/container/v1/cluster_service.proto;l=3695 * @return The bytes for zone. */ @java.lang.Deprecated @@ -947,7 +947,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3614 + * google/container/v1/cluster_service.proto;l=3695 * @param value The zone to set. * @return This builder for chaining. */ @@ -975,7 +975,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3614 + * google/container/v1/cluster_service.proto;l=3695 * @return This builder for chaining. */ @java.lang.Deprecated @@ -999,7 +999,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3614 + * google/container/v1/cluster_service.proto;l=3695 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java index 2e3d5cdfa7d1..b87e75f69d44 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3608 + * google/container/v1/cluster_service.proto;l=3689 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3608 + * google/container/v1/cluster_service.proto;l=3689 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3614 + * google/container/v1/cluster_service.proto;l=3695 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3614 + * google/container/v1/cluster_service.proto;l=3695 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java index c336d5eaf074..aaef39fc23d8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4256 + * google/container/v1/cluster_service.proto;l=4345 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4256 + * google/container/v1/cluster_service.proto;l=4345 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4262 + * google/container/v1/cluster_service.proto;l=4351 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4262 + * google/container/v1/cluster_service.proto;l=4351 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4266 + * google/container/v1/cluster_service.proto;l=4355 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4266 + * google/container/v1/cluster_service.proto;l=4355 * @return The bytes for clusterId. */ @java.lang.Override @@ -837,7 +837,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4256 + * google/container/v1/cluster_service.proto;l=4345 * @return The projectId. */ @java.lang.Deprecated @@ -865,7 +865,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4256 + * google/container/v1/cluster_service.proto;l=4345 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -893,7 +893,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4256 + * google/container/v1/cluster_service.proto;l=4345 * @param value The projectId to set. * @return This builder for chaining. */ @@ -920,7 +920,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4256 + * google/container/v1/cluster_service.proto;l=4345 * @return This builder for chaining. */ @java.lang.Deprecated @@ -943,7 +943,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4256 + * google/container/v1/cluster_service.proto;l=4345 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -974,7 +974,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4262 + * google/container/v1/cluster_service.proto;l=4351 * @return The zone. */ @java.lang.Deprecated @@ -1003,7 +1003,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4262 + * google/container/v1/cluster_service.proto;l=4351 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1032,7 +1032,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4262 + * google/container/v1/cluster_service.proto;l=4351 * @param value The zone to set. * @return This builder for chaining. */ @@ -1060,7 +1060,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4262 + * google/container/v1/cluster_service.proto;l=4351 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1084,7 +1084,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4262 + * google/container/v1/cluster_service.proto;l=4351 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1113,7 +1113,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4266 + * google/container/v1/cluster_service.proto;l=4355 * @return The clusterId. */ @java.lang.Deprecated @@ -1140,7 +1140,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4266 + * google/container/v1/cluster_service.proto;l=4355 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1167,7 +1167,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4266 + * google/container/v1/cluster_service.proto;l=4355 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1193,7 +1193,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4266 + * google/container/v1/cluster_service.proto;l=4355 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1215,7 +1215,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4266 + * google/container/v1/cluster_service.proto;l=4355 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java index 7ba8615e2264..3eb95ab93f69 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4256 + * google/container/v1/cluster_service.proto;l=4345 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4256 + * google/container/v1/cluster_service.proto;l=4345 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4262 + * google/container/v1/cluster_service.proto;l=4351 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4262 + * google/container/v1/cluster_service.proto;l=4351 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4266 + * google/container/v1/cluster_service.proto;l=4355 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4266 + * google/container/v1/cluster_service.proto;l=4355 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java index e6422fd23835..5874bcb4c34d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4077 + * google/container/v1/cluster_service.proto;l=4166 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4077 + * google/container/v1/cluster_service.proto;l=4166 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4083 + * google/container/v1/cluster_service.proto;l=4172 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4083 + * google/container/v1/cluster_service.proto;l=4172 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4087 + * google/container/v1/cluster_service.proto;l=4176 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4087 + * google/container/v1/cluster_service.proto;l=4176 * @return The bytes for clusterId. */ @java.lang.Override @@ -739,7 +739,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4077 + * google/container/v1/cluster_service.proto;l=4166 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4077 + * google/container/v1/cluster_service.proto;l=4166 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -795,7 +795,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4077 + * google/container/v1/cluster_service.proto;l=4166 * @param value The projectId to set. * @return This builder for chaining. */ @@ -822,7 +822,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4077 + * google/container/v1/cluster_service.proto;l=4166 * @return This builder for chaining. */ @java.lang.Deprecated @@ -845,7 +845,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4077 + * google/container/v1/cluster_service.proto;l=4166 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4083 + * google/container/v1/cluster_service.proto;l=4172 * @return The zone. */ @java.lang.Deprecated @@ -905,7 +905,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4083 + * google/container/v1/cluster_service.proto;l=4172 * @return The bytes for zone. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4083 + * google/container/v1/cluster_service.proto;l=4172 * @param value The zone to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4083 + * google/container/v1/cluster_service.proto;l=4172 * @return This builder for chaining. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4083 + * google/container/v1/cluster_service.proto;l=4172 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1015,7 +1015,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4087 + * google/container/v1/cluster_service.proto;l=4176 * @return The clusterId. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4087 + * google/container/v1/cluster_service.proto;l=4176 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1069,7 +1069,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4087 + * google/container/v1/cluster_service.proto;l=4176 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1095,7 +1095,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4087 + * google/container/v1/cluster_service.proto;l=4176 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4087 + * google/container/v1/cluster_service.proto;l=4176 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java index 31295aae50d1..0a28bc9a486f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4077 + * google/container/v1/cluster_service.proto;l=4166 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4077 + * google/container/v1/cluster_service.proto;l=4166 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4083 + * google/container/v1/cluster_service.proto;l=4172 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4083 + * google/container/v1/cluster_service.proto;l=4172 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4087 + * google/container/v1/cluster_service.proto;l=4176 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4087 + * google/container/v1/cluster_service.proto;l=4176 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java index b9700fb0caf8..b13ab085581c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4371 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4371 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4377 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4377 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4381 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4381 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 + * google/container/v1/cluster_service.proto;l=4385 * @return The nodePoolId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 + * google/container/v1/cluster_service.proto;l=4385 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -827,7 +827,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4371 * @return The projectId. */ @java.lang.Deprecated @@ -855,7 +855,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4371 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -883,7 +883,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4371 * @param value The projectId to set. * @return This builder for chaining. */ @@ -910,7 +910,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4371 * @return This builder for chaining. */ @java.lang.Deprecated @@ -933,7 +933,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4371 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -964,7 +964,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4377 * @return The zone. */ @java.lang.Deprecated @@ -993,7 +993,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4377 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4377 * @param value The zone to set. * @return This builder for chaining. */ @@ -1050,7 +1050,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4377 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1074,7 +1074,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4377 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1103,7 +1103,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4381 * @return The clusterId. */ @java.lang.Deprecated @@ -1130,7 +1130,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4381 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1157,7 +1157,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4381 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4381 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1205,7 +1205,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4381 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1234,7 +1234,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 + * google/container/v1/cluster_service.proto;l=4385 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1261,7 +1261,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 + * google/container/v1/cluster_service.proto;l=4385 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1288,7 +1288,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 + * google/container/v1/cluster_service.proto;l=4385 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1314,7 +1314,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 + * google/container/v1/cluster_service.proto;l=4385 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1336,7 +1336,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 + * google/container/v1/cluster_service.proto;l=4385 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java index 25bb47ee4e20..381d7db02a7f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4371 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4282 + * google/container/v1/cluster_service.proto;l=4371 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4377 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4288 + * google/container/v1/cluster_service.proto;l=4377 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4381 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4292 + * google/container/v1/cluster_service.proto;l=4381 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 + * google/container/v1/cluster_service.proto;l=4385 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 + * google/container/v1/cluster_service.proto;l=4385 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DesiredEnterpriseConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DesiredEnterpriseConfig.java index a96f05eba088..0fd22e8bc05b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DesiredEnterpriseConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DesiredEnterpriseConfig.java @@ -24,10 +24,14 @@ * *
                                      * DesiredEnterpriseConfig is a wrapper used for updating enterprise_config.
                                    + *
                                    + * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    + * tier.
                                      * 
                                    * * Protobuf type {@code google.container.v1.DesiredEnterpriseConfig} */ +@java.lang.Deprecated public final class DesiredEnterpriseConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.container.v1.DesiredEnterpriseConfig) @@ -272,6 +276,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                        * DesiredEnterpriseConfig is a wrapper used for updating enterprise_config.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * * Protobuf type {@code google.container.v1.DesiredEnterpriseConfig} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DesiredEnterpriseConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DesiredEnterpriseConfigOrBuilder.java index 3a32c589c1cb..403bfce69648 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DesiredEnterpriseConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DesiredEnterpriseConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.container.v1; +@java.lang.Deprecated public interface DesiredEnterpriseConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.container.v1.DesiredEnterpriseConfig) diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java index 50b38ecbc235..44070895a15f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java @@ -24,10 +24,14 @@ * *
                                      * EnterpriseConfig is the cluster enterprise configuration.
                                    + *
                                    + * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    + * tier.
                                      * 
                                    * * Protobuf type {@code google.container.v1.EnterpriseConfig} */ +@java.lang.Deprecated public final class EnterpriseConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.container.v1.EnterpriseConfig) @@ -70,10 +74,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                                        * Premium tiers for GKE Cluster.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * * Protobuf enum {@code google.container.v1.EnterpriseConfig.ClusterTier} */ + @java.lang.Deprecated public enum ClusterTier implements com.google.protobuf.ProtocolMessageEnum { /** * @@ -487,6 +495,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                        * EnterpriseConfig is the cluster enterprise configuration.
                                    +   *
                                    +   * Deprecated: GKE Enterprise features are now available without an Enterprise
                                    +   * tier.
                                        * 
                                    * * Protobuf type {@code google.container.v1.EnterpriseConfig} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java index cf5d333619fa..a488d3ccc432 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.container.v1; +@java.lang.Deprecated public interface EnterpriseConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.container.v1.EnterpriseConfig) diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java index 1b8f12ff14a7..34e35e5cfc79 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java @@ -42,6 +42,7 @@ private Fleet(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Fleet() { project_ = ""; membership_ = ""; + membershipType_ = 0; } @java.lang.Override @@ -64,6 +65,143 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1.Fleet.class, com.google.container.v1.Fleet.Builder.class); } + /** + * + * + *
                                    +   * MembershipType describes if the membership supports all features or only
                                    +   * lightweight compatible ones.
                                    +   * 
                                    + * + * Protobuf enum {@code google.container.v1.Fleet.MembershipType} + */ + public enum MembershipType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +     * The MembershipType is not set.
                                    +     * 
                                    + * + * MEMBERSHIP_TYPE_UNSPECIFIED = 0; + */ + MEMBERSHIP_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                    +     * The membership supports only lightweight compatible features.
                                    +     * 
                                    + * + * LIGHTWEIGHT = 1; + */ + LIGHTWEIGHT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +     * The MembershipType is not set.
                                    +     * 
                                    + * + * MEMBERSHIP_TYPE_UNSPECIFIED = 0; + */ + public static final int MEMBERSHIP_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +     * The membership supports only lightweight compatible features.
                                    +     * 
                                    + * + * LIGHTWEIGHT = 1; + */ + public static final int LIGHTWEIGHT_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 MembershipType 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 MembershipType forNumber(int value) { + switch (value) { + case 0: + return MEMBERSHIP_TYPE_UNSPECIFIED; + case 1: + return LIGHTWEIGHT; + 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 MembershipType findValueByNumber(int number) { + return MembershipType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.Fleet.getDescriptor().getEnumTypes().get(0); + } + + private static final MembershipType[] VALUES = values(); + + public static MembershipType 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 MembershipType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.Fleet.MembershipType) + } + public static final int PROJECT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -198,6 +336,43 @@ public boolean getPreRegistered() { return preRegistered_; } + public static final int MEMBERSHIP_TYPE_FIELD_NUMBER = 4; + private int membershipType_ = 0; + + /** + * + * + *
                                    +   * The type of the cluster's fleet membership.
                                    +   * 
                                    + * + * .google.container.v1.Fleet.MembershipType membership_type = 4; + * + * @return The enum numeric value on the wire for membershipType. + */ + @java.lang.Override + public int getMembershipTypeValue() { + return membershipType_; + } + + /** + * + * + *
                                    +   * The type of the cluster's fleet membership.
                                    +   * 
                                    + * + * .google.container.v1.Fleet.MembershipType membership_type = 4; + * + * @return The membershipType. + */ + @java.lang.Override + public com.google.container.v1.Fleet.MembershipType getMembershipType() { + com.google.container.v1.Fleet.MembershipType result = + com.google.container.v1.Fleet.MembershipType.forNumber(membershipType_); + return result == null ? com.google.container.v1.Fleet.MembershipType.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -221,6 +396,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (preRegistered_ != false) { output.writeBool(3, preRegistered_); } + if (membershipType_ + != com.google.container.v1.Fleet.MembershipType.MEMBERSHIP_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, membershipType_); + } getUnknownFields().writeTo(output); } @@ -239,6 +418,10 @@ public int getSerializedSize() { if (preRegistered_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, preRegistered_); } + if (membershipType_ + != com.google.container.v1.Fleet.MembershipType.MEMBERSHIP_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, membershipType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -257,6 +440,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProject().equals(other.getProject())) return false; if (!getMembership().equals(other.getMembership())) return false; if (getPreRegistered() != other.getPreRegistered()) return false; + if (membershipType_ != other.membershipType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,6 +458,8 @@ public int hashCode() { hash = (53 * hash) + getMembership().hashCode(); hash = (37 * hash) + PRE_REGISTERED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreRegistered()); + hash = (37 * hash) + MEMBERSHIP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + membershipType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +601,7 @@ public Builder clear() { project_ = ""; membership_ = ""; preRegistered_ = false; + membershipType_ = 0; return this; } @@ -459,6 +646,9 @@ private void buildPartial0(com.google.container.v1.Fleet result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.preRegistered_ = preRegistered_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.membershipType_ = membershipType_; + } } @java.lang.Override @@ -519,6 +709,9 @@ public Builder mergeFrom(com.google.container.v1.Fleet other) { if (other.getPreRegistered() != false) { setPreRegistered(other.getPreRegistered()); } + if (other.membershipType_ != 0) { + setMembershipTypeValue(other.getMembershipTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -563,6 +756,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 32: + { + membershipType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -883,6 +1082,101 @@ public Builder clearPreRegistered() { return this; } + private int membershipType_ = 0; + + /** + * + * + *
                                    +     * The type of the cluster's fleet membership.
                                    +     * 
                                    + * + * .google.container.v1.Fleet.MembershipType membership_type = 4; + * + * @return The enum numeric value on the wire for membershipType. + */ + @java.lang.Override + public int getMembershipTypeValue() { + return membershipType_; + } + + /** + * + * + *
                                    +     * The type of the cluster's fleet membership.
                                    +     * 
                                    + * + * .google.container.v1.Fleet.MembershipType membership_type = 4; + * + * @param value The enum numeric value on the wire for membershipType to set. + * @return This builder for chaining. + */ + public Builder setMembershipTypeValue(int value) { + membershipType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The type of the cluster's fleet membership.
                                    +     * 
                                    + * + * .google.container.v1.Fleet.MembershipType membership_type = 4; + * + * @return The membershipType. + */ + @java.lang.Override + public com.google.container.v1.Fleet.MembershipType getMembershipType() { + com.google.container.v1.Fleet.MembershipType result = + com.google.container.v1.Fleet.MembershipType.forNumber(membershipType_); + return result == null ? com.google.container.v1.Fleet.MembershipType.UNRECOGNIZED : result; + } + + /** + * + * + *
                                    +     * The type of the cluster's fleet membership.
                                    +     * 
                                    + * + * .google.container.v1.Fleet.MembershipType membership_type = 4; + * + * @param value The membershipType to set. + * @return This builder for chaining. + */ + public Builder setMembershipType(com.google.container.v1.Fleet.MembershipType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + membershipType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The type of the cluster's fleet membership.
                                    +     * 
                                    + * + * .google.container.v1.Fleet.MembershipType membership_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearMembershipType() { + bitField0_ = (bitField0_ & ~0x00000008); + membershipType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java index 6b1e616f996c..489ef61c5c37 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java @@ -97,4 +97,30 @@ public interface FleetOrBuilder * @return The preRegistered. */ boolean getPreRegistered(); + + /** + * + * + *
                                    +   * The type of the cluster's fleet membership.
                                    +   * 
                                    + * + * .google.container.v1.Fleet.MembershipType membership_type = 4; + * + * @return The enum numeric value on the wire for membershipType. + */ + int getMembershipTypeValue(); + + /** + * + * + *
                                    +   * The type of the cluster's fleet membership.
                                    +   * 
                                    + * + * .google.container.v1.Fleet.MembershipType membership_type = 4; + * + * @return The membershipType. + */ + com.google.container.v1.Fleet.MembershipType getMembershipType(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java index 344122137cda..7186ff90380e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java @@ -23,7 +23,7 @@ * * *
                                    - * Configuration for the GCP Filestore CSI driver.
                                    + * Configuration for the Filestore CSI driver.
                                      * 
                                    * * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                    -   * Whether the GCP Filestore CSI driver is enabled for this cluster.
                                    +   * Whether the Filestore CSI driver is enabled for this cluster.
                                        * 
                                    * * bool enabled = 1; @@ -245,7 +245,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Configuration for the GCP Filestore CSI driver.
                                    +   * Configuration for the Filestore CSI driver.
                                        * 
                                    * * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} @@ -428,7 +428,7 @@ public Builder mergeFrom( * * *
                                    -     * Whether the GCP Filestore CSI driver is enabled for this cluster.
                                    +     * Whether the Filestore CSI driver is enabled for this cluster.
                                          * 
                                    * * bool enabled = 1; @@ -444,7 +444,7 @@ public boolean getEnabled() { * * *
                                    -     * Whether the GCP Filestore CSI driver is enabled for this cluster.
                                    +     * Whether the Filestore CSI driver is enabled for this cluster.
                                          * 
                                    * * bool enabled = 1; @@ -464,7 +464,7 @@ public Builder setEnabled(boolean value) { * * *
                                    -     * Whether the GCP Filestore CSI driver is enabled for this cluster.
                                    +     * Whether the Filestore CSI driver is enabled for this cluster.
                                          * 
                                    * * bool enabled = 1; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java index 4a4456e7e731..8607c90f0930 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface GcpFilestoreCsiDriverConfigOrBuilder * * *
                                    -   * Whether the GCP Filestore CSI driver is enabled for this cluster.
                                    +   * Whether the Filestore CSI driver is enabled for this cluster.
                                        * 
                                    * * bool enabled = 1; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java index e587fadada33..3b803de52d8b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3630 + * google/container/v1/cluster_service.proto;l=3711 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3630 + * google/container/v1/cluster_service.proto;l=3711 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3636 + * google/container/v1/cluster_service.proto;l=3717 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3636 + * google/container/v1/cluster_service.proto;l=3717 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3640 + * google/container/v1/cluster_service.proto;l=3721 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3640 + * google/container/v1/cluster_service.proto;l=3721 * @return The bytes for clusterId. */ @java.lang.Override @@ -739,7 +739,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3630 + * google/container/v1/cluster_service.proto;l=3711 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3630 + * google/container/v1/cluster_service.proto;l=3711 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -795,7 +795,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3630 + * google/container/v1/cluster_service.proto;l=3711 * @param value The projectId to set. * @return This builder for chaining. */ @@ -822,7 +822,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3630 + * google/container/v1/cluster_service.proto;l=3711 * @return This builder for chaining. */ @java.lang.Deprecated @@ -845,7 +845,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3630 + * google/container/v1/cluster_service.proto;l=3711 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3636 + * google/container/v1/cluster_service.proto;l=3717 * @return The zone. */ @java.lang.Deprecated @@ -905,7 +905,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3636 + * google/container/v1/cluster_service.proto;l=3717 * @return The bytes for zone. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3636 + * google/container/v1/cluster_service.proto;l=3717 * @param value The zone to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3636 + * google/container/v1/cluster_service.proto;l=3717 * @return This builder for chaining. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3636 + * google/container/v1/cluster_service.proto;l=3717 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1015,7 +1015,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3640 + * google/container/v1/cluster_service.proto;l=3721 * @return The clusterId. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3640 + * google/container/v1/cluster_service.proto;l=3721 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1069,7 +1069,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3640 + * google/container/v1/cluster_service.proto;l=3721 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1095,7 +1095,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3640 + * google/container/v1/cluster_service.proto;l=3721 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3640 + * google/container/v1/cluster_service.proto;l=3721 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java index bb8d543ba7e5..0bf6b5c30d21 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3630 + * google/container/v1/cluster_service.proto;l=3711 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3630 + * google/container/v1/cluster_service.proto;l=3711 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3636 + * google/container/v1/cluster_service.proto;l=3717 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3636 + * google/container/v1/cluster_service.proto;l=3717 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3640 + * google/container/v1/cluster_service.proto;l=3721 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3640 + * google/container/v1/cluster_service.proto;l=3721 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java index f9b680299595..930cf5db5631 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4331 + * google/container/v1/cluster_service.proto;l=4420 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4331 + * google/container/v1/cluster_service.proto;l=4420 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4337 + * google/container/v1/cluster_service.proto;l=4426 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4337 + * google/container/v1/cluster_service.proto;l=4426 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4341 + * google/container/v1/cluster_service.proto;l=4430 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4341 + * google/container/v1/cluster_service.proto;l=4430 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4345 + * google/container/v1/cluster_service.proto;l=4434 * @return The nodePoolId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4345 + * google/container/v1/cluster_service.proto;l=4434 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -827,7 +827,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4331 + * google/container/v1/cluster_service.proto;l=4420 * @return The projectId. */ @java.lang.Deprecated @@ -855,7 +855,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4331 + * google/container/v1/cluster_service.proto;l=4420 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -883,7 +883,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4331 + * google/container/v1/cluster_service.proto;l=4420 * @param value The projectId to set. * @return This builder for chaining. */ @@ -910,7 +910,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4331 + * google/container/v1/cluster_service.proto;l=4420 * @return This builder for chaining. */ @java.lang.Deprecated @@ -933,7 +933,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4331 + * google/container/v1/cluster_service.proto;l=4420 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -964,7 +964,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4337 + * google/container/v1/cluster_service.proto;l=4426 * @return The zone. */ @java.lang.Deprecated @@ -993,7 +993,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4337 + * google/container/v1/cluster_service.proto;l=4426 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4337 + * google/container/v1/cluster_service.proto;l=4426 * @param value The zone to set. * @return This builder for chaining. */ @@ -1050,7 +1050,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4337 + * google/container/v1/cluster_service.proto;l=4426 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1074,7 +1074,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4337 + * google/container/v1/cluster_service.proto;l=4426 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1103,7 +1103,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4341 + * google/container/v1/cluster_service.proto;l=4430 * @return The clusterId. */ @java.lang.Deprecated @@ -1130,7 +1130,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4341 + * google/container/v1/cluster_service.proto;l=4430 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1157,7 +1157,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4341 + * google/container/v1/cluster_service.proto;l=4430 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4341 + * google/container/v1/cluster_service.proto;l=4430 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1205,7 +1205,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4341 + * google/container/v1/cluster_service.proto;l=4430 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1234,7 +1234,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4345 + * google/container/v1/cluster_service.proto;l=4434 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1261,7 +1261,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4345 + * google/container/v1/cluster_service.proto;l=4434 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1288,7 +1288,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4345 + * google/container/v1/cluster_service.proto;l=4434 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1314,7 +1314,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4345 + * google/container/v1/cluster_service.proto;l=4434 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1336,7 +1336,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4345 + * google/container/v1/cluster_service.proto;l=4434 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java index 59aff3399f3e..931697406f13 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4331 + * google/container/v1/cluster_service.proto;l=4420 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4331 + * google/container/v1/cluster_service.proto;l=4420 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4337 + * google/container/v1/cluster_service.proto;l=4426 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4337 + * google/container/v1/cluster_service.proto;l=4426 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4341 + * google/container/v1/cluster_service.proto;l=4430 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4341 + * google/container/v1/cluster_service.proto;l=4430 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4345 + * google/container/v1/cluster_service.proto;l=4434 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4345 + * google/container/v1/cluster_service.proto;l=4434 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java index cd5ebdecf9e6..d308be555cc7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4129 + * google/container/v1/cluster_service.proto;l=4218 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4129 + * google/container/v1/cluster_service.proto;l=4218 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4135 + * google/container/v1/cluster_service.proto;l=4224 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4135 + * google/container/v1/cluster_service.proto;l=4224 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4139 + * google/container/v1/cluster_service.proto;l=4228 * @return The operationId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4139 + * google/container/v1/cluster_service.proto;l=4228 * @return The bytes for operationId. */ @java.lang.Override @@ -739,7 +739,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4129 + * google/container/v1/cluster_service.proto;l=4218 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4129 + * google/container/v1/cluster_service.proto;l=4218 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -795,7 +795,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4129 + * google/container/v1/cluster_service.proto;l=4218 * @param value The projectId to set. * @return This builder for chaining. */ @@ -822,7 +822,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4129 + * google/container/v1/cluster_service.proto;l=4218 * @return This builder for chaining. */ @java.lang.Deprecated @@ -845,7 +845,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4129 + * google/container/v1/cluster_service.proto;l=4218 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4135 + * google/container/v1/cluster_service.proto;l=4224 * @return The zone. */ @java.lang.Deprecated @@ -905,7 +905,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4135 + * google/container/v1/cluster_service.proto;l=4224 * @return The bytes for zone. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4135 + * google/container/v1/cluster_service.proto;l=4224 * @param value The zone to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4135 + * google/container/v1/cluster_service.proto;l=4224 * @return This builder for chaining. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4135 + * google/container/v1/cluster_service.proto;l=4224 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1015,7 +1015,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4139 + * google/container/v1/cluster_service.proto;l=4228 * @return The operationId. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4139 + * google/container/v1/cluster_service.proto;l=4228 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1069,7 +1069,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4139 + * google/container/v1/cluster_service.proto;l=4228 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1095,7 +1095,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4139 + * google/container/v1/cluster_service.proto;l=4228 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4139 + * google/container/v1/cluster_service.proto;l=4228 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java index a96d103cb057..8723db149731 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4129 + * google/container/v1/cluster_service.proto;l=4218 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4129 + * google/container/v1/cluster_service.proto;l=4218 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4135 + * google/container/v1/cluster_service.proto;l=4224 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4135 + * google/container/v1/cluster_service.proto;l=4224 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4139 + * google/container/v1/cluster_service.proto;l=4228 * @return The operationId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4139 + * google/container/v1/cluster_service.proto;l=4228 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java index 223d13337534..706058ce04b5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4291 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4291 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4208 + * google/container/v1/cluster_service.proto;l=4297 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4208 + * google/container/v1/cluster_service.proto;l=4297 * @return The bytes for zone. */ @java.lang.Override @@ -653,7 +653,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4291 * @return The projectId. */ @java.lang.Deprecated @@ -681,7 +681,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4291 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -709,7 +709,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4291 * @param value The projectId to set. * @return This builder for chaining. */ @@ -736,7 +736,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4291 * @return This builder for chaining. */ @java.lang.Deprecated @@ -759,7 +759,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4291 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -790,7 +790,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4208 + * google/container/v1/cluster_service.proto;l=4297 * @return The zone. */ @java.lang.Deprecated @@ -819,7 +819,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4208 + * google/container/v1/cluster_service.proto;l=4297 * @return The bytes for zone. */ @java.lang.Deprecated @@ -848,7 +848,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4208 + * google/container/v1/cluster_service.proto;l=4297 * @param value The zone to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4208 + * google/container/v1/cluster_service.proto;l=4297 * @return This builder for chaining. */ @java.lang.Deprecated @@ -900,7 +900,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4208 + * google/container/v1/cluster_service.proto;l=4297 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java index d76af69cfddf..b91353b5a197 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4291 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4202 + * google/container/v1/cluster_service.proto;l=4291 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4208 + * google/container/v1/cluster_service.proto;l=4297 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4208 + * google/container/v1/cluster_service.proto;l=4297 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java index 59dac95953de..12f419f55a8a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -194,7 +194,7 @@ public com.google.protobuf.ByteString getSubnetworkNameBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2182 + * google/container/v1/cluster_service.proto;l=2242 * @return The clusterIpv4Cidr. */ @java.lang.Override @@ -221,7 +221,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2182 + * google/container/v1/cluster_service.proto;l=2242 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Override @@ -253,7 +253,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2185 + * google/container/v1/cluster_service.proto;l=2245 * @return The nodeIpv4Cidr. */ @java.lang.Override @@ -280,7 +280,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2185 + * google/container/v1/cluster_service.proto;l=2245 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Override @@ -312,7 +312,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2188 + * google/container/v1/cluster_service.proto;l=2248 * @return The servicesIpv4Cidr. */ @java.lang.Override @@ -339,7 +339,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2188 + * google/container/v1/cluster_service.proto;l=2248 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Override @@ -759,7 +759,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2276 + * google/container/v1/cluster_service.proto;l=2336 * @return The tpuIpv4CidrBlock. */ @java.lang.Override @@ -803,7 +803,7 @@ public java.lang.String getTpuIpv4CidrBlock() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2276 + * google/container/v1/cluster_service.proto;l=2336 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Override @@ -1372,6 +1372,65 @@ public com.google.container.v1.AutoIpamConfigOrBuilder getAutoIpamConfigOrBuilde : autoIpamConfig_; } + public static final int NETWORK_TIER_CONFIG_FIELD_NUMBER = 31; + private com.google.container.v1.NetworkTierConfig networkTierConfig_; + + /** + * + * + *
                                    +   * Cluster-level network tier configuration is used to determine the default
                                    +   * network tier for external IP addresses on cluster resources, such as node
                                    +   * pools and load balancers.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + * + * @return Whether the networkTierConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkTierConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                    +   * Cluster-level network tier configuration is used to determine the default
                                    +   * network tier for external IP addresses on cluster resources, such as node
                                    +   * pools and load balancers.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + * + * @return The networkTierConfig. + */ + @java.lang.Override + public com.google.container.v1.NetworkTierConfig getNetworkTierConfig() { + return networkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : networkTierConfig_; + } + + /** + * + * + *
                                    +   * Cluster-level network tier configuration is used to determine the default
                                    +   * network tier for external IP addresses on cluster resources, such as node
                                    +   * pools and load balancers.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + */ + @java.lang.Override + public com.google.container.v1.NetworkTierConfigOrBuilder getNetworkTierConfigOrBuilder() { + return networkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : networkTierConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1453,6 +1512,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(30, getAutoIpamConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(31, getNetworkTierConfig()); + } getUnknownFields().writeTo(output); } @@ -1539,6 +1601,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getAutoIpamConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getNetworkTierConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1592,6 +1657,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAutoIpamConfig()) { if (!getAutoIpamConfig().equals(other.getAutoIpamConfig())) return false; } + if (hasNetworkTierConfig() != other.hasNetworkTierConfig()) return false; + if (hasNetworkTierConfig()) { + if (!getNetworkTierConfig().equals(other.getNetworkTierConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1658,6 +1727,10 @@ public int hashCode() { hash = (37 * hash) + AUTO_IPAM_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAutoIpamConfig().hashCode(); } + if (hasNetworkTierConfig()) { + hash = (37 * hash) + NETWORK_TIER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkTierConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1803,6 +1876,7 @@ private void maybeForceBuilderInitialization() { getAdditionalPodRangesConfigFieldBuilder(); getAdditionalIpRangesConfigsFieldBuilder(); getAutoIpamConfigFieldBuilder(); + getNetworkTierConfigFieldBuilder(); } } @@ -1850,6 +1924,11 @@ public Builder clear() { autoIpamConfigBuilder_.dispose(); autoIpamConfigBuilder_ = null; } + networkTierConfig_ = null; + if (networkTierConfigBuilder_ != null) { + networkTierConfigBuilder_.dispose(); + networkTierConfigBuilder_ = null; + } return this; } @@ -1974,6 +2053,13 @@ private void buildPartial0(com.google.container.v1.IPAllocationPolicy result) { autoIpamConfigBuilder_ == null ? autoIpamConfig_ : autoIpamConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.networkTierConfig_ = + networkTierConfigBuilder_ == null + ? networkTierConfig_ + : networkTierConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -2136,6 +2222,9 @@ public Builder mergeFrom(com.google.container.v1.IPAllocationPolicy other) { if (other.hasAutoIpamConfig()) { mergeAutoIpamConfig(other.getAutoIpamConfig()); } + if (other.hasNetworkTierConfig()) { + mergeNetworkTierConfig(other.getNetworkTierConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2304,6 +2393,13 @@ public Builder mergeFrom( bitField0_ |= 0x00200000; break; } // case 242 + case 250: + { + input.readMessage( + getNetworkTierConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 250 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2583,7 +2679,7 @@ public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2182 + * google/container/v1/cluster_service.proto;l=2242 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2609,7 +2705,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2182 + * google/container/v1/cluster_service.proto;l=2242 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2635,7 +2731,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2182 + * google/container/v1/cluster_service.proto;l=2242 * @param value The clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2660,7 +2756,7 @@ public Builder setClusterIpv4Cidr(java.lang.String value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2182 + * google/container/v1/cluster_service.proto;l=2242 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2681,7 +2777,7 @@ public Builder clearClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2182 + * google/container/v1/cluster_service.proto;l=2242 * @param value The bytes for clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2709,7 +2805,7 @@ public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2185 + * google/container/v1/cluster_service.proto;l=2245 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2735,7 +2831,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2185 + * google/container/v1/cluster_service.proto;l=2245 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2761,7 +2857,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2185 + * google/container/v1/cluster_service.proto;l=2245 * @param value The nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2786,7 +2882,7 @@ public Builder setNodeIpv4Cidr(java.lang.String value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2185 + * google/container/v1/cluster_service.proto;l=2245 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2807,7 +2903,7 @@ public Builder clearNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2185 + * google/container/v1/cluster_service.proto;l=2245 * @param value The bytes for nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2835,7 +2931,7 @@ public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2188 + * google/container/v1/cluster_service.proto;l=2248 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2861,7 +2957,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2188 + * google/container/v1/cluster_service.proto;l=2248 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2887,7 +2983,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2188 + * google/container/v1/cluster_service.proto;l=2248 * @param value The servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -2912,7 +3008,7 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2188 + * google/container/v1/cluster_service.proto;l=2248 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2933,7 +3029,7 @@ public Builder clearServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2188 + * google/container/v1/cluster_service.proto;l=2248 * @param value The bytes for servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -3798,7 +3894,7 @@ public Builder setServicesIpv4CidrBlockBytes(com.google.protobuf.ByteString valu * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2276 + * google/container/v1/cluster_service.proto;l=2336 * @return The tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -3841,7 +3937,7 @@ public java.lang.String getTpuIpv4CidrBlock() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2276 + * google/container/v1/cluster_service.proto;l=2336 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -3884,7 +3980,7 @@ public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2276 + * google/container/v1/cluster_service.proto;l=2336 * @param value The tpuIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -3926,7 +4022,7 @@ public Builder setTpuIpv4CidrBlock(java.lang.String value) { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2276 + * google/container/v1/cluster_service.proto;l=2336 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3964,7 +4060,7 @@ public Builder clearTpuIpv4CidrBlock() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2276 + * google/container/v1/cluster_service.proto;l=2336 * @param value The bytes for tpuIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -5785,6 +5881,220 @@ public com.google.container.v1.AutoIpamConfigOrBuilder getAutoIpamConfigOrBuilde return autoIpamConfigBuilder_; } + private com.google.container.v1.NetworkTierConfig networkTierConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTierConfig, + com.google.container.v1.NetworkTierConfig.Builder, + com.google.container.v1.NetworkTierConfigOrBuilder> + networkTierConfigBuilder_; + + /** + * + * + *
                                    +     * Cluster-level network tier configuration is used to determine the default
                                    +     * network tier for external IP addresses on cluster resources, such as node
                                    +     * pools and load balancers.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + * + * @return Whether the networkTierConfig field is set. + */ + public boolean hasNetworkTierConfig() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
                                    +     * Cluster-level network tier configuration is used to determine the default
                                    +     * network tier for external IP addresses on cluster resources, such as node
                                    +     * pools and load balancers.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + * + * @return The networkTierConfig. + */ + public com.google.container.v1.NetworkTierConfig getNetworkTierConfig() { + if (networkTierConfigBuilder_ == null) { + return networkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : networkTierConfig_; + } else { + return networkTierConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Cluster-level network tier configuration is used to determine the default
                                    +     * network tier for external IP addresses on cluster resources, such as node
                                    +     * pools and load balancers.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + */ + public Builder setNetworkTierConfig(com.google.container.v1.NetworkTierConfig value) { + if (networkTierConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkTierConfig_ = value; + } else { + networkTierConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Cluster-level network tier configuration is used to determine the default
                                    +     * network tier for external IP addresses on cluster resources, such as node
                                    +     * pools and load balancers.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + */ + public Builder setNetworkTierConfig( + com.google.container.v1.NetworkTierConfig.Builder builderForValue) { + if (networkTierConfigBuilder_ == null) { + networkTierConfig_ = builderForValue.build(); + } else { + networkTierConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Cluster-level network tier configuration is used to determine the default
                                    +     * network tier for external IP addresses on cluster resources, such as node
                                    +     * pools and load balancers.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + */ + public Builder mergeNetworkTierConfig(com.google.container.v1.NetworkTierConfig value) { + if (networkTierConfigBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && networkTierConfig_ != null + && networkTierConfig_ + != com.google.container.v1.NetworkTierConfig.getDefaultInstance()) { + getNetworkTierConfigBuilder().mergeFrom(value); + } else { + networkTierConfig_ = value; + } + } else { + networkTierConfigBuilder_.mergeFrom(value); + } + if (networkTierConfig_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Cluster-level network tier configuration is used to determine the default
                                    +     * network tier for external IP addresses on cluster resources, such as node
                                    +     * pools and load balancers.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + */ + public Builder clearNetworkTierConfig() { + bitField0_ = (bitField0_ & ~0x00400000); + networkTierConfig_ = null; + if (networkTierConfigBuilder_ != null) { + networkTierConfigBuilder_.dispose(); + networkTierConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Cluster-level network tier configuration is used to determine the default
                                    +     * network tier for external IP addresses on cluster resources, such as node
                                    +     * pools and load balancers.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + */ + public com.google.container.v1.NetworkTierConfig.Builder getNetworkTierConfigBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getNetworkTierConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Cluster-level network tier configuration is used to determine the default
                                    +     * network tier for external IP addresses on cluster resources, such as node
                                    +     * pools and load balancers.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + */ + public com.google.container.v1.NetworkTierConfigOrBuilder getNetworkTierConfigOrBuilder() { + if (networkTierConfigBuilder_ != null) { + return networkTierConfigBuilder_.getMessageOrBuilder(); + } else { + return networkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : networkTierConfig_; + } + } + + /** + * + * + *
                                    +     * Cluster-level network tier configuration is used to determine the default
                                    +     * network tier for external IP addresses on cluster resources, such as node
                                    +     * pools and load balancers.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTierConfig, + com.google.container.v1.NetworkTierConfig.Builder, + com.google.container.v1.NetworkTierConfigOrBuilder> + getNetworkTierConfigFieldBuilder() { + if (networkTierConfigBuilder_ == null) { + networkTierConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTierConfig, + com.google.container.v1.NetworkTierConfig.Builder, + com.google.container.v1.NetworkTierConfigOrBuilder>( + getNetworkTierConfig(), getParentForChildren(), isClean()); + networkTierConfig_ = null; + } + return networkTierConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java index 3a3e54da7afd..95ca418f03ed 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -95,7 +95,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2182 + * google/container/v1/cluster_service.proto;l=2242 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -111,7 +111,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2182 + * google/container/v1/cluster_service.proto;l=2242 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2185 + * google/container/v1/cluster_service.proto;l=2245 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2185 + * google/container/v1/cluster_service.proto;l=2245 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -159,7 +159,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2188 + * google/container/v1/cluster_service.proto;l=2248 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -175,7 +175,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=2188 + * google/container/v1/cluster_service.proto;l=2248 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -444,7 +444,7 @@ public interface IPAllocationPolicyOrBuilder * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2276 + * google/container/v1/cluster_service.proto;l=2336 * @return The tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -477,7 +477,7 @@ public interface IPAllocationPolicyOrBuilder * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1/cluster_service.proto;l=2276 + * google/container/v1/cluster_service.proto;l=2336 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -877,4 +877,47 @@ com.google.container.v1.AdditionalIPRangesConfigOrBuilder getAdditionalIpRangesC * */ com.google.container.v1.AutoIpamConfigOrBuilder getAutoIpamConfigOrBuilder(); + + /** + * + * + *
                                    +   * Cluster-level network tier configuration is used to determine the default
                                    +   * network tier for external IP addresses on cluster resources, such as node
                                    +   * pools and load balancers.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + * + * @return Whether the networkTierConfig field is set. + */ + boolean hasNetworkTierConfig(); + + /** + * + * + *
                                    +   * Cluster-level network tier configuration is used to determine the default
                                    +   * network tier for external IP addresses on cluster resources, such as node
                                    +   * pools and load balancers.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + * + * @return The networkTierConfig. + */ + com.google.container.v1.NetworkTierConfig getNetworkTierConfig(); + + /** + * + * + *
                                    +   * Cluster-level network tier configuration is used to determine the default
                                    +   * network tier for external IP addresses on cluster resources, such as node
                                    +   * pools and load balancers.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig network_tier_config = 31; + */ + com.google.container.v1.NetworkTierConfigOrBuilder getNetworkTierConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java index 0fc06c482822..b6f020cedae0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java @@ -468,7 +468,7 @@ public enum TransparentHugepageDefrag implements com.google.protobuf.ProtocolMes *
                                          * It means that an application will wake kswapd in the background to
                                          * reclaim pages and wake kcompactd to compact memory so that THP is
                                    -     * available in the near future. It’s the responsibility of khugepaged to
                                    +     * available in the near future. It's the responsibility of khugepaged to
                                          * then install the THP pages later.
                                          * 
                                    * @@ -545,7 +545,7 @@ public enum TransparentHugepageDefrag implements com.google.protobuf.ProtocolMes *
                                          * It means that an application will wake kswapd in the background to
                                          * reclaim pages and wake kcompactd to compact memory so that THP is
                                    -     * available in the near future. It’s the responsibility of khugepaged to
                                    +     * available in the near future. It's the responsibility of khugepaged to
                                          * then install the THP pages later.
                                          * 
                                    * @@ -1447,6 +1447,836 @@ public com.google.container.v1.LinuxNodeConfig.HugepagesConfig getDefaultInstanc } } + public interface NodeKernelModuleLoadingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +     * Set the node module loading policy for nodes in the node pool.
                                    +     * 
                                    + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy policy = 1; + * + * @return The enum numeric value on the wire for policy. + */ + int getPolicyValue(); + + /** + * + * + *
                                    +     * Set the node module loading policy for nodes in the node pool.
                                    +     * 
                                    + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy policy = 1; + * + * @return The policy. + */ + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy getPolicy(); + } + + /** + * + * + *
                                    +   * Configuration for kernel module loading on nodes.
                                    +   * 
                                    + * + * Protobuf type {@code google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading} + */ + public static final class NodeKernelModuleLoading extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading) + NodeKernelModuleLoadingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use NodeKernelModuleLoading.newBuilder() to construct. + private NodeKernelModuleLoading(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeKernelModuleLoading() { + policy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeKernelModuleLoading(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_NodeKernelModuleLoading_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_NodeKernelModuleLoading_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.class, + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Builder.class); + } + + /** + * + * + *
                                    +     * Defines the kernel module loading policy for nodes in the nodepool.
                                    +     * 
                                    + * + * Protobuf enum {@code google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy} + */ + public enum Policy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +       * Default behavior. GKE selects the image based on node type.
                                    +       * For CPU and TPU nodes, the image will not allow loading external
                                    +       * kernel modules.
                                    +       * For GPU nodes, the image will allow loading any module, whether it
                                    +       * is signed or not.
                                    +       * 
                                    + * + * POLICY_UNSPECIFIED = 0; + */ + POLICY_UNSPECIFIED(0), + /** + * + * + *
                                    +       * Enforced signature verification: Node pools will use a
                                    +       * Container-Optimized OS image configured to allow loading of
                                    +       * *Google-signed* external kernel modules.
                                    +       * Loadpin is enabled but configured to exclude modules, and kernel
                                    +       * module signature checking is enforced.
                                    +       * 
                                    + * + * ENFORCE_SIGNED_MODULES = 1; + */ + ENFORCE_SIGNED_MODULES(1), + /** + * + * + *
                                    +       * Mirrors existing DEFAULT behavior:
                                    +       * For CPU and TPU nodes, the image will not allow loading external
                                    +       * kernel modules.
                                    +       * For GPU nodes, the image will allow loading any module, whether it
                                    +       * is signed or not.
                                    +       * 
                                    + * + * DO_NOT_ENFORCE_SIGNED_MODULES = 2; + */ + DO_NOT_ENFORCE_SIGNED_MODULES(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +       * Default behavior. GKE selects the image based on node type.
                                    +       * For CPU and TPU nodes, the image will not allow loading external
                                    +       * kernel modules.
                                    +       * For GPU nodes, the image will allow loading any module, whether it
                                    +       * is signed or not.
                                    +       * 
                                    + * + * POLICY_UNSPECIFIED = 0; + */ + public static final int POLICY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +       * Enforced signature verification: Node pools will use a
                                    +       * Container-Optimized OS image configured to allow loading of
                                    +       * *Google-signed* external kernel modules.
                                    +       * Loadpin is enabled but configured to exclude modules, and kernel
                                    +       * module signature checking is enforced.
                                    +       * 
                                    + * + * ENFORCE_SIGNED_MODULES = 1; + */ + public static final int ENFORCE_SIGNED_MODULES_VALUE = 1; + + /** + * + * + *
                                    +       * Mirrors existing DEFAULT behavior:
                                    +       * For CPU and TPU nodes, the image will not allow loading external
                                    +       * kernel modules.
                                    +       * For GPU nodes, the image will allow loading any module, whether it
                                    +       * is signed or not.
                                    +       * 
                                    + * + * DO_NOT_ENFORCE_SIGNED_MODULES = 2; + */ + public static final int DO_NOT_ENFORCE_SIGNED_MODULES_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 Policy 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 Policy forNumber(int value) { + switch (value) { + case 0: + return POLICY_UNSPECIFIED; + case 1: + return ENFORCE_SIGNED_MODULES; + case 2: + return DO_NOT_ENFORCE_SIGNED_MODULES; + 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 Policy findValueByNumber(int number) { + return Policy.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Policy[] VALUES = values(); + + public static Policy 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 Policy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy) + } + + public static final int POLICY_FIELD_NUMBER = 1; + private int policy_ = 0; + + /** + * + * + *
                                    +     * Set the node module loading policy for nodes in the node pool.
                                    +     * 
                                    + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy policy = 1; + * + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override + public int getPolicyValue() { + return policy_; + } + + /** + * + * + *
                                    +     * Set the node module loading policy for nodes in the node pool.
                                    +     * 
                                    + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy policy = 1; + * + * @return The policy. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy getPolicy() { + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy result = + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy.forNumber(policy_); + return result == null + ? com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy.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 (policy_ + != com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy + .POLICY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, policy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policy_ + != com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy + .POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, policy_); + } + 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.container.v1.LinuxNodeConfig.NodeKernelModuleLoading)) { + return super.equals(obj); + } + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading other = + (com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading) obj; + + if (policy_ != other.policy_) 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) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + policy_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading 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.container.v1.LinuxNodeConfig.NodeKernelModuleLoading parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +     * Configuration for kernel module loading on nodes.
                                    +     * 
                                    + * + * Protobuf type {@code google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading) + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoadingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_NodeKernelModuleLoading_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_NodeKernelModuleLoading_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.class, + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Builder.class); + } + + // Construct using + // com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_NodeKernelModuleLoading_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + getDefaultInstanceForType() { + return com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading build() { + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading buildPartial() { + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading result = + new com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading) { + return mergeFrom((com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading other) { + if (other + == com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.getDefaultInstance()) + return this; + if (other.policy_ != 0) { + setPolicyValue(other.getPolicyValue()); + } + 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: + { + policy_ = 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 policy_ = 0; + + /** + * + * + *
                                    +       * Set the node module loading policy for nodes in the node pool.
                                    +       * 
                                    + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy policy = 1; + * + * + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override + public int getPolicyValue() { + return policy_; + } + + /** + * + * + *
                                    +       * Set the node module loading policy for nodes in the node pool.
                                    +       * 
                                    + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy policy = 1; + * + * + * @param value The enum numeric value on the wire for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyValue(int value) { + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * Set the node module loading policy for nodes in the node pool.
                                    +       * 
                                    + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy policy = 1; + * + * + * @return The policy. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy getPolicy() { + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy result = + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy.forNumber( + policy_); + return result == null + ? com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +       * Set the node module loading policy for nodes in the node pool.
                                    +       * 
                                    + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy policy = 1; + * + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy( + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + policy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * Set the node module loading policy for nodes in the node pool.
                                    +       * 
                                    + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Policy policy = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + policy_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading) + private static final com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading(); + } + + public static com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeKernelModuleLoading 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.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int SYSCTLS_FIELD_NUMBER = 1; @@ -1935,6 +2765,73 @@ public int getTransparentHugepageDefragValue() { : result; } + public static final int NODE_KERNEL_MODULE_LOADING_FIELD_NUMBER = 13; + private com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading nodeKernelModuleLoading_; + + /** + * + * + *
                                    +   * Optional. Configuration for kernel module loading on nodes.
                                    +   * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +   * OS image that enforces kernel module signature verification.
                                    +   * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodeKernelModuleLoading field is set. + */ + @java.lang.Override + public boolean hasNodeKernelModuleLoading() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * Optional. Configuration for kernel module loading on nodes.
                                    +   * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +   * OS image that enforces kernel module signature verification.
                                    +   * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeKernelModuleLoading. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + getNodeKernelModuleLoading() { + return nodeKernelModuleLoading_ == null + ? com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.getDefaultInstance() + : nodeKernelModuleLoading_; + } + + /** + * + * + *
                                    +   * Optional. Configuration for kernel module loading on nodes.
                                    +   * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +   * OS image that enforces kernel module signature verification.
                                    +   * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoadingOrBuilder + getNodeKernelModuleLoadingOrBuilder() { + return nodeKernelModuleLoading_ == null + ? com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.getDefaultInstance() + : nodeKernelModuleLoading_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1970,6 +2867,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(5, transparentHugepageDefrag_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(13, getNodeKernelModuleLoading()); + } getUnknownFields().writeTo(output); } @@ -2008,6 +2908,11 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, transparentHugepageDefrag_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, getNodeKernelModuleLoading()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2031,6 +2936,10 @@ public boolean equals(final java.lang.Object obj) { } if (transparentHugepageEnabled_ != other.transparentHugepageEnabled_) return false; if (transparentHugepageDefrag_ != other.transparentHugepageDefrag_) return false; + if (hasNodeKernelModuleLoading() != other.hasNodeKernelModuleLoading()) return false; + if (hasNodeKernelModuleLoading()) { + if (!getNodeKernelModuleLoading().equals(other.getNodeKernelModuleLoading())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2056,6 +2965,10 @@ public int hashCode() { hash = (53 * hash) + transparentHugepageEnabled_; hash = (37 * hash) + TRANSPARENT_HUGEPAGE_DEFRAG_FIELD_NUMBER; hash = (53 * hash) + transparentHugepageDefrag_; + if (hasNodeKernelModuleLoading()) { + hash = (37 * hash) + NODE_KERNEL_MODULE_LOADING_FIELD_NUMBER; + hash = (53 * hash) + getNodeKernelModuleLoading().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2220,6 +3133,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHugepagesFieldBuilder(); + getNodeKernelModuleLoadingFieldBuilder(); } } @@ -2236,6 +3150,11 @@ public Builder clear() { } transparentHugepageEnabled_ = 0; transparentHugepageDefrag_ = 0; + nodeKernelModuleLoading_ = null; + if (nodeKernelModuleLoadingBuilder_ != null) { + nodeKernelModuleLoadingBuilder_.dispose(); + nodeKernelModuleLoadingBuilder_ = null; + } return this; } @@ -2290,6 +3209,13 @@ private void buildPartial0(com.google.container.v1.LinuxNodeConfig result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.transparentHugepageDefrag_ = transparentHugepageDefrag_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.nodeKernelModuleLoading_ = + nodeKernelModuleLoadingBuilder_ == null + ? nodeKernelModuleLoading_ + : nodeKernelModuleLoadingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -2352,6 +3278,9 @@ public Builder mergeFrom(com.google.container.v1.LinuxNodeConfig other) { if (other.transparentHugepageDefrag_ != 0) { setTransparentHugepageDefragValue(other.getTransparentHugepageDefragValue()); } + if (other.hasNodeKernelModuleLoading()) { + mergeNodeKernelModuleLoading(other.getNodeKernelModuleLoading()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2414,6 +3343,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 40 + case 106: + { + input.readMessage( + getNodeKernelModuleLoadingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3491,6 +4427,245 @@ public Builder clearTransparentHugepageDefrag() { return this; } + private com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + nodeKernelModuleLoading_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading, + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Builder, + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoadingOrBuilder> + nodeKernelModuleLoadingBuilder_; + + /** + * + * + *
                                    +     * Optional. Configuration for kernel module loading on nodes.
                                    +     * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +     * OS image that enforces kernel module signature verification.
                                    +     * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodeKernelModuleLoading field is set. + */ + public boolean hasNodeKernelModuleLoading() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                    +     * Optional. Configuration for kernel module loading on nodes.
                                    +     * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +     * OS image that enforces kernel module signature verification.
                                    +     * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeKernelModuleLoading. + */ + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + getNodeKernelModuleLoading() { + if (nodeKernelModuleLoadingBuilder_ == null) { + return nodeKernelModuleLoading_ == null + ? com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.getDefaultInstance() + : nodeKernelModuleLoading_; + } else { + return nodeKernelModuleLoadingBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Optional. Configuration for kernel module loading on nodes.
                                    +     * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +     * OS image that enforces kernel module signature verification.
                                    +     * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodeKernelModuleLoading( + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading value) { + if (nodeKernelModuleLoadingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeKernelModuleLoading_ = value; + } else { + nodeKernelModuleLoadingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. Configuration for kernel module loading on nodes.
                                    +     * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +     * OS image that enforces kernel module signature verification.
                                    +     * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodeKernelModuleLoading( + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Builder builderForValue) { + if (nodeKernelModuleLoadingBuilder_ == null) { + nodeKernelModuleLoading_ = builderForValue.build(); + } else { + nodeKernelModuleLoadingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. Configuration for kernel module loading on nodes.
                                    +     * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +     * OS image that enforces kernel module signature verification.
                                    +     * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNodeKernelModuleLoading( + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading value) { + if (nodeKernelModuleLoadingBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && nodeKernelModuleLoading_ != null + && nodeKernelModuleLoading_ + != com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading + .getDefaultInstance()) { + getNodeKernelModuleLoadingBuilder().mergeFrom(value); + } else { + nodeKernelModuleLoading_ = value; + } + } else { + nodeKernelModuleLoadingBuilder_.mergeFrom(value); + } + if (nodeKernelModuleLoading_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Optional. Configuration for kernel module loading on nodes.
                                    +     * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +     * OS image that enforces kernel module signature verification.
                                    +     * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNodeKernelModuleLoading() { + bitField0_ = (bitField0_ & ~0x00000020); + nodeKernelModuleLoading_ = null; + if (nodeKernelModuleLoadingBuilder_ != null) { + nodeKernelModuleLoadingBuilder_.dispose(); + nodeKernelModuleLoadingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Optional. Configuration for kernel module loading on nodes.
                                    +     * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +     * OS image that enforces kernel module signature verification.
                                    +     * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Builder + getNodeKernelModuleLoadingBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getNodeKernelModuleLoadingFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Optional. Configuration for kernel module loading on nodes.
                                    +     * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +     * OS image that enforces kernel module signature verification.
                                    +     * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoadingOrBuilder + getNodeKernelModuleLoadingOrBuilder() { + if (nodeKernelModuleLoadingBuilder_ != null) { + return nodeKernelModuleLoadingBuilder_.getMessageOrBuilder(); + } else { + return nodeKernelModuleLoading_ == null + ? com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.getDefaultInstance() + : nodeKernelModuleLoading_; + } + } + + /** + * + * + *
                                    +     * Optional. Configuration for kernel module loading on nodes.
                                    +     * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +     * OS image that enforces kernel module signature verification.
                                    +     * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading, + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Builder, + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoadingOrBuilder> + getNodeKernelModuleLoadingFieldBuilder() { + if (nodeKernelModuleLoadingBuilder_ == null) { + nodeKernelModuleLoadingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading, + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading.Builder, + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoadingOrBuilder>( + getNodeKernelModuleLoading(), getParentForChildren(), isClean()); + nodeKernelModuleLoading_ = null; + } + return nodeKernelModuleLoadingBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java index 8117b89beafc..17f9aa3efd0b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java @@ -450,4 +450,54 @@ java.lang.String getSysctlsOrDefault( * @return The transparentHugepageDefrag. */ com.google.container.v1.LinuxNodeConfig.TransparentHugepageDefrag getTransparentHugepageDefrag(); + + /** + * + * + *
                                    +   * Optional. Configuration for kernel module loading on nodes.
                                    +   * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +   * OS image that enforces kernel module signature verification.
                                    +   * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodeKernelModuleLoading field is set. + */ + boolean hasNodeKernelModuleLoading(); + + /** + * + * + *
                                    +   * Optional. Configuration for kernel module loading on nodes.
                                    +   * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +   * OS image that enforces kernel module signature verification.
                                    +   * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeKernelModuleLoading. + */ + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading getNodeKernelModuleLoading(); + + /** + * + * + *
                                    +   * Optional. Configuration for kernel module loading on nodes.
                                    +   * When enabled, the node pool will be provisioned with a Container-Optimized
                                    +   * OS image that enforces kernel module signature verification.
                                    +   * 
                                    + * + * + * .google.container.v1.LinuxNodeConfig.NodeKernelModuleLoading node_kernel_module_loading = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.container.v1.LinuxNodeConfig.NodeKernelModuleLoadingOrBuilder + getNodeKernelModuleLoadingOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java index 11399401ef4d..0b6310133262 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4188 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4188 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4105 + * google/container/v1/cluster_service.proto;l=4194 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4105 + * google/container/v1/cluster_service.proto;l=4194 * @return The bytes for zone. */ @java.lang.Override @@ -655,7 +655,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4188 * @return The projectId. */ @java.lang.Deprecated @@ -683,7 +683,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4188 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -711,7 +711,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4188 * @param value The projectId to set. * @return This builder for chaining. */ @@ -738,7 +738,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4188 * @return This builder for chaining. */ @java.lang.Deprecated @@ -761,7 +761,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4188 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -792,7 +792,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4105 + * google/container/v1/cluster_service.proto;l=4194 * @return The zone. */ @java.lang.Deprecated @@ -821,7 +821,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4105 + * google/container/v1/cluster_service.proto;l=4194 * @return The bytes for zone. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4105 + * google/container/v1/cluster_service.proto;l=4194 * @param value The zone to set. * @return This builder for chaining. */ @@ -878,7 +878,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4105 + * google/container/v1/cluster_service.proto;l=4194 * @return This builder for chaining. */ @java.lang.Deprecated @@ -902,7 +902,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4105 + * google/container/v1/cluster_service.proto;l=4194 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java index c54788b6e915..32c7e620a290 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4188 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4188 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4105 + * google/container/v1/cluster_service.proto;l=4194 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4105 + * google/container/v1/cluster_service.proto;l=4194 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java index 1df9c95b5acb..4be4256d8808 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4309 + * google/container/v1/cluster_service.proto;l=4398 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4309 + * google/container/v1/cluster_service.proto;l=4398 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4315 + * google/container/v1/cluster_service.proto;l=4404 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4315 + * google/container/v1/cluster_service.proto;l=4404 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4319 + * google/container/v1/cluster_service.proto;l=4408 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4319 + * google/container/v1/cluster_service.proto;l=4408 * @return The bytes for clusterId. */ @java.lang.Override @@ -739,7 +739,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4309 + * google/container/v1/cluster_service.proto;l=4398 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4309 + * google/container/v1/cluster_service.proto;l=4398 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -795,7 +795,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4309 + * google/container/v1/cluster_service.proto;l=4398 * @param value The projectId to set. * @return This builder for chaining. */ @@ -822,7 +822,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4309 + * google/container/v1/cluster_service.proto;l=4398 * @return This builder for chaining. */ @java.lang.Deprecated @@ -845,7 +845,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4309 + * google/container/v1/cluster_service.proto;l=4398 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4315 + * google/container/v1/cluster_service.proto;l=4404 * @return The zone. */ @java.lang.Deprecated @@ -905,7 +905,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4315 + * google/container/v1/cluster_service.proto;l=4404 * @return The bytes for zone. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4315 + * google/container/v1/cluster_service.proto;l=4404 * @param value The zone to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4315 + * google/container/v1/cluster_service.proto;l=4404 * @return This builder for chaining. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4315 + * google/container/v1/cluster_service.proto;l=4404 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1015,7 +1015,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4319 + * google/container/v1/cluster_service.proto;l=4408 * @return The clusterId. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4319 + * google/container/v1/cluster_service.proto;l=4408 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1069,7 +1069,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4319 + * google/container/v1/cluster_service.proto;l=4408 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1095,7 +1095,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4319 + * google/container/v1/cluster_service.proto;l=4408 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4319 + * google/container/v1/cluster_service.proto;l=4408 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java index fb0d4e3f57c6..db54927e1f90 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4309 + * google/container/v1/cluster_service.proto;l=4398 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4309 + * google/container/v1/cluster_service.proto;l=4398 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4315 + * google/container/v1/cluster_service.proto;l=4404 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4315 + * google/container/v1/cluster_service.proto;l=4404 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4319 + * google/container/v1/cluster_service.proto;l=4408 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4319 + * google/container/v1/cluster_service.proto;l=4408 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java index db15124a2ac3..3e43252070f9 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4151 + * google/container/v1/cluster_service.proto;l=4240 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4151 + * google/container/v1/cluster_service.proto;l=4240 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4157 + * google/container/v1/cluster_service.proto;l=4246 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4157 + * google/container/v1/cluster_service.proto;l=4246 * @return The bytes for zone. */ @java.lang.Override @@ -655,7 +655,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4151 + * google/container/v1/cluster_service.proto;l=4240 * @return The projectId. */ @java.lang.Deprecated @@ -683,7 +683,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4151 + * google/container/v1/cluster_service.proto;l=4240 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -711,7 +711,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4151 + * google/container/v1/cluster_service.proto;l=4240 * @param value The projectId to set. * @return This builder for chaining. */ @@ -738,7 +738,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4151 + * google/container/v1/cluster_service.proto;l=4240 * @return This builder for chaining. */ @java.lang.Deprecated @@ -761,7 +761,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4151 + * google/container/v1/cluster_service.proto;l=4240 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -792,7 +792,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4157 + * google/container/v1/cluster_service.proto;l=4246 * @return The zone. */ @java.lang.Deprecated @@ -821,7 +821,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4157 + * google/container/v1/cluster_service.proto;l=4246 * @return The bytes for zone. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4157 + * google/container/v1/cluster_service.proto;l=4246 * @param value The zone to set. * @return This builder for chaining. */ @@ -878,7 +878,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4157 + * google/container/v1/cluster_service.proto;l=4246 * @return This builder for chaining. */ @java.lang.Deprecated @@ -902,7 +902,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4157 + * google/container/v1/cluster_service.proto;l=4246 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java index f178e7d797b7..25b1b9fdd031 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4151 + * google/container/v1/cluster_service.proto;l=4240 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4151 + * google/container/v1/cluster_service.proto;l=4240 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4157 + * google/container/v1/cluster_service.proto;l=4246 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4157 + * google/container/v1/cluster_service.proto;l=4246 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LustreCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LustreCsiDriverConfig.java index 11ba7b09b143..80e57db70afa 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LustreCsiDriverConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LustreCsiDriverConfig.java @@ -90,13 +90,25 @@ public boolean getEnabled() { *
                                        * If set to true, the Lustre CSI driver will install Lustre kernel modules
                                        * using port 6988.
                                    +   * This serves as a workaround for a port conflict with the
                                    +   * gke-metadata-server. This field is required ONLY under the following
                                    +   * conditions:
                                    +   * 1. The GKE node version is older than 1.33.2-gke.4655000.
                                    +   * 2. You're connecting to a Lustre instance that has the
                                    +   * 'gke-support-enabled' flag.
                                    +   * Deprecated: This flag is no longer required as of GKE node version
                                    +   * 1.33.2-gke.4655000, unless you are connecting to a Lustre instance
                                    +   * that has the `gke-support-enabled` flag.
                                        * 
                                    * - * bool enable_legacy_lustre_port = 3; + * bool enable_legacy_lustre_port = 3 [deprecated = true]; * + * @deprecated google.container.v1.LustreCsiDriverConfig.enable_legacy_lustre_port is deprecated. + * See google/container/v1/cluster_service.proto;l=2103 * @return The enableLegacyLustrePort. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnableLegacyLustrePort() { return enableLegacyLustrePort_; } @@ -527,13 +539,25 @@ public Builder clearEnabled() { *
                                          * If set to true, the Lustre CSI driver will install Lustre kernel modules
                                          * using port 6988.
                                    +     * This serves as a workaround for a port conflict with the
                                    +     * gke-metadata-server. This field is required ONLY under the following
                                    +     * conditions:
                                    +     * 1. The GKE node version is older than 1.33.2-gke.4655000.
                                    +     * 2. You're connecting to a Lustre instance that has the
                                    +     * 'gke-support-enabled' flag.
                                    +     * Deprecated: This flag is no longer required as of GKE node version
                                    +     * 1.33.2-gke.4655000, unless you are connecting to a Lustre instance
                                    +     * that has the `gke-support-enabled` flag.
                                          * 
                                    * - * bool enable_legacy_lustre_port = 3; + * bool enable_legacy_lustre_port = 3 [deprecated = true]; * + * @deprecated google.container.v1.LustreCsiDriverConfig.enable_legacy_lustre_port is + * deprecated. See google/container/v1/cluster_service.proto;l=2103 * @return The enableLegacyLustrePort. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnableLegacyLustrePort() { return enableLegacyLustrePort_; } @@ -544,13 +568,25 @@ public boolean getEnableLegacyLustrePort() { *
                                          * If set to true, the Lustre CSI driver will install Lustre kernel modules
                                          * using port 6988.
                                    +     * This serves as a workaround for a port conflict with the
                                    +     * gke-metadata-server. This field is required ONLY under the following
                                    +     * conditions:
                                    +     * 1. The GKE node version is older than 1.33.2-gke.4655000.
                                    +     * 2. You're connecting to a Lustre instance that has the
                                    +     * 'gke-support-enabled' flag.
                                    +     * Deprecated: This flag is no longer required as of GKE node version
                                    +     * 1.33.2-gke.4655000, unless you are connecting to a Lustre instance
                                    +     * that has the `gke-support-enabled` flag.
                                          * 
                                    * - * bool enable_legacy_lustre_port = 3; + * bool enable_legacy_lustre_port = 3 [deprecated = true]; * + * @deprecated google.container.v1.LustreCsiDriverConfig.enable_legacy_lustre_port is + * deprecated. See google/container/v1/cluster_service.proto;l=2103 * @param value The enableLegacyLustrePort to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnableLegacyLustrePort(boolean value) { enableLegacyLustrePort_ = value; @@ -565,12 +601,24 @@ public Builder setEnableLegacyLustrePort(boolean value) { *
                                          * If set to true, the Lustre CSI driver will install Lustre kernel modules
                                          * using port 6988.
                                    +     * This serves as a workaround for a port conflict with the
                                    +     * gke-metadata-server. This field is required ONLY under the following
                                    +     * conditions:
                                    +     * 1. The GKE node version is older than 1.33.2-gke.4655000.
                                    +     * 2. You're connecting to a Lustre instance that has the
                                    +     * 'gke-support-enabled' flag.
                                    +     * Deprecated: This flag is no longer required as of GKE node version
                                    +     * 1.33.2-gke.4655000, unless you are connecting to a Lustre instance
                                    +     * that has the `gke-support-enabled` flag.
                                          * 
                                    * - * bool enable_legacy_lustre_port = 3; + * bool enable_legacy_lustre_port = 3 [deprecated = true]; * + * @deprecated google.container.v1.LustreCsiDriverConfig.enable_legacy_lustre_port is + * deprecated. See google/container/v1/cluster_service.proto;l=2103 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnableLegacyLustrePort() { bitField0_ = (bitField0_ & ~0x00000002); enableLegacyLustrePort_ = false; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LustreCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LustreCsiDriverConfigOrBuilder.java index a1afdb7dad47..29e8635a1ea2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LustreCsiDriverConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LustreCsiDriverConfigOrBuilder.java @@ -43,11 +43,23 @@ public interface LustreCsiDriverConfigOrBuilder *
                                        * If set to true, the Lustre CSI driver will install Lustre kernel modules
                                        * using port 6988.
                                    +   * This serves as a workaround for a port conflict with the
                                    +   * gke-metadata-server. This field is required ONLY under the following
                                    +   * conditions:
                                    +   * 1. The GKE node version is older than 1.33.2-gke.4655000.
                                    +   * 2. You're connecting to a Lustre instance that has the
                                    +   * 'gke-support-enabled' flag.
                                    +   * Deprecated: This flag is no longer required as of GKE node version
                                    +   * 1.33.2-gke.4655000, unless you are connecting to a Lustre instance
                                    +   * that has the `gke-support-enabled` flag.
                                        * 
                                    * - * bool enable_legacy_lustre_port = 3; + * bool enable_legacy_lustre_port = 3 [deprecated = true]; * + * @deprecated google.container.v1.LustreCsiDriverConfig.enable_legacy_lustre_port is deprecated. + * See google/container/v1/cluster_service.proto;l=2103 * @return The enableLegacyLustrePort. */ + @java.lang.Deprecated boolean getEnableLegacyLustrePort(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java index b6b97431bbb3..036bf6a84fa4 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java @@ -41,6 +41,7 @@ private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Build private MaintenanceExclusionOptions() { scope_ = 0; + endTimeBehavior_ = 0; } @java.lang.Override @@ -235,6 +236,150 @@ private Scope(int value) { // @@protoc_insertion_point(enum_scope:google.container.v1.MaintenanceExclusionOptions.Scope) } + /** + * + * + *
                                    +   * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +   * 
                                    + * + * Protobuf enum {@code google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior} + */ + public enum EndTimeBehavior implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +     * END_TIME_BEHAVIOR_UNSPECIFIED is the default behavior, which is fixed
                                    +     * end time.
                                    +     * 
                                    + * + * END_TIME_BEHAVIOR_UNSPECIFIED = 0; + */ + END_TIME_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
                                    +     * UNTIL_END_OF_SUPPORT means the exclusion will be in effect until the end
                                    +     * of the support of the cluster's current version.
                                    +     * 
                                    + * + * UNTIL_END_OF_SUPPORT = 1; + */ + UNTIL_END_OF_SUPPORT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +     * END_TIME_BEHAVIOR_UNSPECIFIED is the default behavior, which is fixed
                                    +     * end time.
                                    +     * 
                                    + * + * END_TIME_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int END_TIME_BEHAVIOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +     * UNTIL_END_OF_SUPPORT means the exclusion will be in effect until the end
                                    +     * of the support of the cluster's current version.
                                    +     * 
                                    + * + * UNTIL_END_OF_SUPPORT = 1; + */ + public static final int UNTIL_END_OF_SUPPORT_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 EndTimeBehavior 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 EndTimeBehavior forNumber(int value) { + switch (value) { + case 0: + return END_TIME_BEHAVIOR_UNSPECIFIED; + case 1: + return UNTIL_END_OF_SUPPORT; + 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 EndTimeBehavior findValueByNumber(int number) { + return EndTimeBehavior.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.MaintenanceExclusionOptions.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final EndTimeBehavior[] VALUES = values(); + + public static EndTimeBehavior 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 EndTimeBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior) + } + public static final int SCOPE_FIELD_NUMBER = 1; private int scope_ = 0; @@ -276,6 +421,48 @@ public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { : result; } + public static final int END_TIME_BEHAVIOR_FIELD_NUMBER = 2; + private int endTimeBehavior_ = 0; + + /** + * + * + *
                                    +   * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +   * 
                                    + * + * .google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior end_time_behavior = 2; + * + * + * @return The enum numeric value on the wire for endTimeBehavior. + */ + @java.lang.Override + public int getEndTimeBehaviorValue() { + return endTimeBehavior_; + } + + /** + * + * + *
                                    +   * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +   * 
                                    + * + * .google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior end_time_behavior = 2; + * + * + * @return The endTimeBehavior. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior getEndTimeBehavior() { + com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior result = + com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior.forNumber( + endTimeBehavior_); + return result == null + ? com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -294,6 +481,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { output.writeEnum(1, scope_); } + if (endTimeBehavior_ + != com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior + .END_TIME_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, endTimeBehavior_); + } getUnknownFields().writeTo(output); } @@ -307,6 +500,12 @@ public int getSerializedSize() { != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); } + if (endTimeBehavior_ + != com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior + .END_TIME_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, endTimeBehavior_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -324,6 +523,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.container.v1.MaintenanceExclusionOptions) obj; if (scope_ != other.scope_) return false; + if (endTimeBehavior_ != other.endTimeBehavior_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -337,6 +537,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + scope_; + hash = (37 * hash) + END_TIME_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + endTimeBehavior_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -478,6 +680,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; scope_ = 0; + endTimeBehavior_ = 0; return this; } @@ -517,6 +720,9 @@ private void buildPartial0(com.google.container.v1.MaintenanceExclusionOptions r if (((from_bitField0_ & 0x00000001) != 0)) { result.scope_ = scope_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTimeBehavior_ = endTimeBehavior_; + } } @java.lang.Override @@ -568,6 +774,9 @@ public Builder mergeFrom(com.google.container.v1.MaintenanceExclusionOptions oth if (other.scope_ != 0) { setScopeValue(other.getScopeValue()); } + if (other.endTimeBehavior_ != 0) { + setEndTimeBehaviorValue(other.getEndTimeBehaviorValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -600,6 +809,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: + { + endTimeBehavior_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -721,6 +936,111 @@ public Builder clearScope() { return this; } + private int endTimeBehavior_ = 0; + + /** + * + * + *
                                    +     * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +     * 
                                    + * + * .google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior end_time_behavior = 2; + * + * + * @return The enum numeric value on the wire for endTimeBehavior. + */ + @java.lang.Override + public int getEndTimeBehaviorValue() { + return endTimeBehavior_; + } + + /** + * + * + *
                                    +     * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +     * 
                                    + * + * .google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior end_time_behavior = 2; + * + * + * @param value The enum numeric value on the wire for endTimeBehavior to set. + * @return This builder for chaining. + */ + public Builder setEndTimeBehaviorValue(int value) { + endTimeBehavior_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +     * 
                                    + * + * .google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior end_time_behavior = 2; + * + * + * @return The endTimeBehavior. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior + getEndTimeBehavior() { + com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior result = + com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior.forNumber( + endTimeBehavior_); + return result == null + ? com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +     * 
                                    + * + * .google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior end_time_behavior = 2; + * + * + * @param value The endTimeBehavior to set. + * @return This builder for chaining. + */ + public Builder setEndTimeBehavior( + com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + endTimeBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +     * 
                                    + * + * .google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior end_time_behavior = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearEndTimeBehavior() { + bitField0_ = (bitField0_ & ~0x00000002); + endTimeBehavior_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java index 51bdc9380e47..8c4b113785c6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java @@ -51,4 +51,32 @@ public interface MaintenanceExclusionOptionsOrBuilder * @return The scope. */ com.google.container.v1.MaintenanceExclusionOptions.Scope getScope(); + + /** + * + * + *
                                    +   * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +   * 
                                    + * + * .google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior end_time_behavior = 2; + * + * + * @return The enum numeric value on the wire for endTimeBehavior. + */ + int getEndTimeBehaviorValue(); + + /** + * + * + *
                                    +   * EndTimeBehavior specifies the behavior of the exclusion end time.
                                    +   * 
                                    + * + * .google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior end_time_behavior = 2; + * + * + * @return The endTimeBehavior. + */ + com.google.container.v1.MaintenanceExclusionOptions.EndTimeBehavior getEndTimeBehavior(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java index c21dd9b2b0a7..248d6d7331f5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -93,7 +93,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1756 + * google/container/v1/cluster_service.proto;l=1806 * @return The username. */ @java.lang.Override @@ -127,7 +127,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1756 + * google/container/v1/cluster_service.proto;l=1806 * @return The bytes for username. */ @java.lang.Override @@ -167,7 +167,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1767 + * google/container/v1/cluster_service.proto;l=1817 * @return The password. */ @java.lang.Override @@ -202,7 +202,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1767 + * google/container/v1/cluster_service.proto;l=1817 * @return The bytes for password. */ @java.lang.Override @@ -950,7 +950,7 @@ public Builder mergeFrom( * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1756 + * google/container/v1/cluster_service.proto;l=1806 * @return The username. */ @java.lang.Deprecated @@ -983,7 +983,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1756 + * google/container/v1/cluster_service.proto;l=1806 * @return The bytes for username. */ @java.lang.Deprecated @@ -1016,7 +1016,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1756 + * google/container/v1/cluster_service.proto;l=1806 * @param value The username to set. * @return This builder for chaining. */ @@ -1048,7 +1048,7 @@ public Builder setUsername(java.lang.String value) { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1756 + * google/container/v1/cluster_service.proto;l=1806 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1076,7 +1076,7 @@ public Builder clearUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1756 + * google/container/v1/cluster_service.proto;l=1806 * @param value The bytes for username to set. * @return This builder for chaining. */ @@ -1112,7 +1112,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1767 + * google/container/v1/cluster_service.proto;l=1817 * @return The password. */ @java.lang.Deprecated @@ -1146,7 +1146,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1767 + * google/container/v1/cluster_service.proto;l=1817 * @return The bytes for password. */ @java.lang.Deprecated @@ -1180,7 +1180,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1767 + * google/container/v1/cluster_service.proto;l=1817 * @param value The password to set. * @return This builder for chaining. */ @@ -1213,7 +1213,7 @@ public Builder setPassword(java.lang.String value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1767 + * google/container/v1/cluster_service.proto;l=1817 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1242,7 +1242,7 @@ public Builder clearPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1767 + * google/container/v1/cluster_service.proto;l=1817 * @param value The bytes for password to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java index 168ffe044b07..c22ee80e4bb1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -41,7 +41,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1756 + * google/container/v1/cluster_service.proto;l=1806 * @return The username. */ @java.lang.Deprecated @@ -64,7 +64,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1756 + * google/container/v1/cluster_service.proto;l=1806 * @return The bytes for username. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1767 + * google/container/v1/cluster_service.proto;l=1817 * @return The password. */ @java.lang.Deprecated @@ -112,7 +112,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1767 + * google/container/v1/cluster_service.proto;l=1817 * @return The bytes for password. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTierConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTierConfig.java new file mode 100644 index 000000000000..7627a1bd58b2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTierConfig.java @@ -0,0 +1,801 @@ +/* + * Copyright 2025 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.container.v1; + +/** + * + * + *
                                    + * NetworkTierConfig contains network tier information.
                                    + * 
                                    + * + * Protobuf type {@code google.container.v1.NetworkTierConfig} + */ +public final class NetworkTierConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NetworkTierConfig) + NetworkTierConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use NetworkTierConfig.newBuilder() to construct. + private NetworkTierConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkTierConfig() { + networkTier_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkTierConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NetworkTierConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NetworkTierConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkTierConfig.class, + com.google.container.v1.NetworkTierConfig.Builder.class); + } + + /** + * + * + *
                                    +   * Network tier configuration.
                                    +   * 
                                    + * + * Protobuf enum {@code google.container.v1.NetworkTierConfig.NetworkTier} + */ + public enum NetworkTier implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                    +     * By default, use project-level configuration. When unspecified, the
                                    +     * behavior defaults to NETWORK_TIER_DEFAULT. For cluster updates, this
                                    +     * implies no action (no-op).
                                    +     * 
                                    + * + * NETWORK_TIER_UNSPECIFIED = 0; + */ + NETWORK_TIER_UNSPECIFIED(0), + /** + * + * + *
                                    +     * Default network tier. Use project-level configuration. User can specify
                                    +     * this value, meaning they want to keep the same behaviour as before
                                    +     * cluster level network tier configuration is introduced. This field
                                    +     * ensures backward compatibility for the network tier of cluster resources,
                                    +     * such as node pools and load balancers, for their external IP addresses.
                                    +     * 
                                    + * + * NETWORK_TIER_DEFAULT = 1; + */ + NETWORK_TIER_DEFAULT(1), + /** + * + * + *
                                    +     * Premium network tier.
                                    +     * 
                                    + * + * NETWORK_TIER_PREMIUM = 2; + */ + NETWORK_TIER_PREMIUM(2), + /** + * + * + *
                                    +     * Standard network tier.
                                    +     * 
                                    + * + * NETWORK_TIER_STANDARD = 3; + */ + NETWORK_TIER_STANDARD(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                    +     * By default, use project-level configuration. When unspecified, the
                                    +     * behavior defaults to NETWORK_TIER_DEFAULT. For cluster updates, this
                                    +     * implies no action (no-op).
                                    +     * 
                                    + * + * NETWORK_TIER_UNSPECIFIED = 0; + */ + public static final int NETWORK_TIER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                    +     * Default network tier. Use project-level configuration. User can specify
                                    +     * this value, meaning they want to keep the same behaviour as before
                                    +     * cluster level network tier configuration is introduced. This field
                                    +     * ensures backward compatibility for the network tier of cluster resources,
                                    +     * such as node pools and load balancers, for their external IP addresses.
                                    +     * 
                                    + * + * NETWORK_TIER_DEFAULT = 1; + */ + public static final int NETWORK_TIER_DEFAULT_VALUE = 1; + + /** + * + * + *
                                    +     * Premium network tier.
                                    +     * 
                                    + * + * NETWORK_TIER_PREMIUM = 2; + */ + public static final int NETWORK_TIER_PREMIUM_VALUE = 2; + + /** + * + * + *
                                    +     * Standard network tier.
                                    +     * 
                                    + * + * NETWORK_TIER_STANDARD = 3; + */ + public static final int NETWORK_TIER_STANDARD_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 NetworkTier 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 NetworkTier forNumber(int value) { + switch (value) { + case 0: + return NETWORK_TIER_UNSPECIFIED; + case 1: + return NETWORK_TIER_DEFAULT; + case 2: + return NETWORK_TIER_PREMIUM; + case 3: + return NETWORK_TIER_STANDARD; + 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 NetworkTier findValueByNumber(int number) { + return NetworkTier.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.NetworkTierConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final NetworkTier[] VALUES = values(); + + public static NetworkTier 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 NetworkTier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NetworkTierConfig.NetworkTier) + } + + public static final int NETWORK_TIER_FIELD_NUMBER = 1; + private int networkTier_ = 0; + + /** + * + * + *
                                    +   * Network tier configuration.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1; + * + * @return The enum numeric value on the wire for networkTier. + */ + @java.lang.Override + public int getNetworkTierValue() { + return networkTier_; + } + + /** + * + * + *
                                    +   * Network tier configuration.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1; + * + * @return The networkTier. + */ + @java.lang.Override + public com.google.container.v1.NetworkTierConfig.NetworkTier getNetworkTier() { + com.google.container.v1.NetworkTierConfig.NetworkTier result = + com.google.container.v1.NetworkTierConfig.NetworkTier.forNumber(networkTier_); + return result == null + ? com.google.container.v1.NetworkTierConfig.NetworkTier.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 (networkTier_ + != com.google.container.v1.NetworkTierConfig.NetworkTier.NETWORK_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, networkTier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (networkTier_ + != com.google.container.v1.NetworkTierConfig.NetworkTier.NETWORK_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, networkTier_); + } + 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.container.v1.NetworkTierConfig)) { + return super.equals(obj); + } + com.google.container.v1.NetworkTierConfig other = + (com.google.container.v1.NetworkTierConfig) obj; + + if (networkTier_ != other.networkTier_) 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_TIER_FIELD_NUMBER; + hash = (53 * hash) + networkTier_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NetworkTierConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NetworkTierConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NetworkTierConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NetworkTierConfig 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.container.v1.NetworkTierConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NetworkTierConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NetworkTierConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NetworkTierConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NetworkTierConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NetworkTierConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NetworkTierConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NetworkTierConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.NetworkTierConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * NetworkTierConfig contains network tier information.
                                    +   * 
                                    + * + * Protobuf type {@code google.container.v1.NetworkTierConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkTierConfig) + com.google.container.v1.NetworkTierConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NetworkTierConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NetworkTierConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkTierConfig.class, + com.google.container.v1.NetworkTierConfig.Builder.class); + } + + // Construct using com.google.container.v1.NetworkTierConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkTier_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NetworkTierConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NetworkTierConfig getDefaultInstanceForType() { + return com.google.container.v1.NetworkTierConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NetworkTierConfig build() { + com.google.container.v1.NetworkTierConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NetworkTierConfig buildPartial() { + com.google.container.v1.NetworkTierConfig result = + new com.google.container.v1.NetworkTierConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NetworkTierConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkTier_ = networkTier_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NetworkTierConfig) { + return mergeFrom((com.google.container.v1.NetworkTierConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NetworkTierConfig other) { + if (other == com.google.container.v1.NetworkTierConfig.getDefaultInstance()) return this; + if (other.networkTier_ != 0) { + setNetworkTierValue(other.getNetworkTierValue()); + } + 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: + { + networkTier_ = 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 networkTier_ = 0; + + /** + * + * + *
                                    +     * Network tier configuration.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1; + * + * @return The enum numeric value on the wire for networkTier. + */ + @java.lang.Override + public int getNetworkTierValue() { + return networkTier_; + } + + /** + * + * + *
                                    +     * Network tier configuration.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1; + * + * @param value The enum numeric value on the wire for networkTier to set. + * @return This builder for chaining. + */ + public Builder setNetworkTierValue(int value) { + networkTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Network tier configuration.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1; + * + * @return The networkTier. + */ + @java.lang.Override + public com.google.container.v1.NetworkTierConfig.NetworkTier getNetworkTier() { + com.google.container.v1.NetworkTierConfig.NetworkTier result = + com.google.container.v1.NetworkTierConfig.NetworkTier.forNumber(networkTier_); + return result == null + ? com.google.container.v1.NetworkTierConfig.NetworkTier.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                    +     * Network tier configuration.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1; + * + * @param value The networkTier to set. + * @return This builder for chaining. + */ + public Builder setNetworkTier(com.google.container.v1.NetworkTierConfig.NetworkTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + networkTier_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Network tier configuration.
                                    +     * 
                                    + * + * .google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1; + * + * @return This builder for chaining. + */ + public Builder clearNetworkTier() { + bitField0_ = (bitField0_ & ~0x00000001); + networkTier_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkTierConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NetworkTierConfig) + private static final com.google.container.v1.NetworkTierConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NetworkTierConfig(); + } + + public static com.google.container.v1.NetworkTierConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkTierConfig 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.container.v1.NetworkTierConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTierConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTierConfigOrBuilder.java new file mode 100644 index 000000000000..e507ce5bf319 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTierConfigOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.container.v1; + +public interface NetworkTierConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkTierConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * Network tier configuration.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1; + * + * @return The enum numeric value on the wire for networkTier. + */ + int getNetworkTierValue(); + + /** + * + * + *
                                    +   * Network tier configuration.
                                    +   * 
                                    + * + * .google.container.v1.NetworkTierConfig.NetworkTier network_tier = 1; + * + * @return The networkTier. + */ + com.google.container.v1.NetworkTierConfig.NetworkTier getNetworkTier(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java index f71c8a44e2e1..776fc37c8e64 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java @@ -546,8 +546,7 @@ public int getDiskSizeGb() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -575,8 +574,7 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -604,8 +602,7 @@ public int getOauthScopesCount() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -634,8 +631,7 @@ public java.lang.String getOauthScopes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5413,8 +5409,7 @@ private void ensureOauthScopesIsMutable() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5443,8 +5438,7 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5472,8 +5466,7 @@ public int getOauthScopesCount() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5502,8 +5495,7 @@ public java.lang.String getOauthScopes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5532,8 +5524,7 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5570,8 +5561,7 @@ public Builder setOauthScopes(int index, java.lang.String value) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5607,8 +5597,7 @@ public Builder addOauthScopes(java.lang.String value) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5641,8 +5630,7 @@ public Builder addAllOauthScopes(java.lang.Iterable values) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5674,8 +5662,7 @@ public Builder clearOauthScopes() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java index 04cb6e925025..7dcf35d3013c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java @@ -86,8 +86,7 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -113,8 +112,7 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -140,8 +138,7 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -168,8 +165,7 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java index e51da02038f0..cc7796010419 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java @@ -362,7 +362,7 @@ public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { * The string must be a sequence of decimal numbers, each with optional * fraction and a unit suffix, such as "300ms". * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. + * The value must be a positive duration between 1ms and 1 second, inclusive. * * * string cpu_cfs_quota_period = 3; @@ -391,7 +391,7 @@ public java.lang.String getCpuCfsQuotaPeriod() { * The string must be a sequence of decimal numbers, each with optional * fraction and a unit suffix, such as "300ms". * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. + * The value must be a positive duration between 1ms and 1 second, inclusive. * * * string cpu_cfs_quota_period = 3; @@ -2990,7 +2990,7 @@ public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { * The string must be a sequence of decimal numbers, each with optional * fraction and a unit suffix, such as "300ms". * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. + * The value must be a positive duration between 1ms and 1 second, inclusive. * * * string cpu_cfs_quota_period = 3; @@ -3018,7 +3018,7 @@ public java.lang.String getCpuCfsQuotaPeriod() { * The string must be a sequence of decimal numbers, each with optional * fraction and a unit suffix, such as "300ms". * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. + * The value must be a positive duration between 1ms and 1 second, inclusive. * * * string cpu_cfs_quota_period = 3; @@ -3046,7 +3046,7 @@ public com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes() { * The string must be a sequence of decimal numbers, each with optional * fraction and a unit suffix, such as "300ms". * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. + * The value must be a positive duration between 1ms and 1 second, inclusive. * * * string cpu_cfs_quota_period = 3; @@ -3073,7 +3073,7 @@ public Builder setCpuCfsQuotaPeriod(java.lang.String value) { * The string must be a sequence of decimal numbers, each with optional * fraction and a unit suffix, such as "300ms". * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. + * The value must be a positive duration between 1ms and 1 second, inclusive. * * * string cpu_cfs_quota_period = 3; @@ -3096,7 +3096,7 @@ public Builder clearCpuCfsQuotaPeriod() { * The string must be a sequence of decimal numbers, each with optional * fraction and a unit suffix, such as "300ms". * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. + * The value must be a positive duration between 1ms and 1 second, inclusive. * * * string cpu_cfs_quota_period = 3; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java index 668be439815e..a297d8cda64c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java @@ -240,7 +240,7 @@ public interface NodeKubeletConfigOrBuilder * The string must be a sequence of decimal numbers, each with optional * fraction and a unit suffix, such as "300ms". * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. + * The value must be a positive duration between 1ms and 1 second, inclusive. * * * string cpu_cfs_quota_period = 3; @@ -258,7 +258,7 @@ public interface NodeKubeletConfigOrBuilder * The string must be a sequence of decimal numbers, each with optional * fraction and a unit suffix, such as "300ms". * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. + * The value must be a positive duration between 1ms and 1 second, inclusive. * * * string cpu_cfs_quota_period = 3; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java index 0c67325efb57..b8173dd960b5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java @@ -1568,6 +1568,71 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } } + public static final int NETWORK_TIER_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1.NetworkTierConfig networkTierConfig_; + + /** + * + * + *
                                    +   * Output only. The network tier configuration for the node pool inherits from
                                    +   * the cluster-level configuration and remains immutable throughout the node
                                    +   * pool's lifecycle, including during upgrades.
                                    +   * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the networkTierConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkTierConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                    +   * Output only. The network tier configuration for the node pool inherits from
                                    +   * the cluster-level configuration and remains immutable throughout the node
                                    +   * pool's lifecycle, including during upgrades.
                                    +   * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The networkTierConfig. + */ + @java.lang.Override + public com.google.container.v1.NetworkTierConfig getNetworkTierConfig() { + return networkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : networkTierConfig_; + } + + /** + * + * + *
                                    +   * Output only. The network tier configuration for the node pool inherits from
                                    +   * the cluster-level configuration and remains immutable throughout the node
                                    +   * pool's lifecycle, including during upgrades.
                                    +   * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.container.v1.NetworkTierConfigOrBuilder getNetworkTierConfigOrBuilder() { + return networkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : networkTierConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1612,6 +1677,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, subnetwork_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(20, getNetworkTierConfig()); + } getUnknownFields().writeTo(output); } @@ -1659,6 +1727,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, subnetwork_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getNetworkTierConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1698,6 +1769,10 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization()) != java.lang.Double.doubleToLongBits(other.getPodIpv4RangeUtilization())) return false; if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (hasNetworkTierConfig() != other.hasNetworkTierConfig()) return false; + if (hasNetworkTierConfig()) { + if (!getNetworkTierConfig().equals(other.getNetworkTierConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1742,6 +1817,10 @@ public int hashCode() { java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization())); hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; hash = (53 * hash) + getSubnetwork().hashCode(); + if (hasNetworkTierConfig()) { + hash = (37 * hash) + NETWORK_TIER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkTierConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1887,6 +1966,7 @@ private void maybeForceBuilderInitialization() { getPodCidrOverprovisionConfigFieldBuilder(); getAdditionalNodeNetworkConfigsFieldBuilder(); getAdditionalPodNetworkConfigsFieldBuilder(); + getNetworkTierConfigFieldBuilder(); } } @@ -1924,6 +2004,11 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000080); podIpv4RangeUtilization_ = 0D; subnetwork_ = ""; + networkTierConfig_ = null; + if (networkTierConfigBuilder_ != null) { + networkTierConfigBuilder_.dispose(); + networkTierConfigBuilder_ = null; + } return this; } @@ -2018,6 +2103,13 @@ private void buildPartial0(com.google.container.v1.NodeNetworkConfig result) { if (((from_bitField0_ & 0x00000200) != 0)) { result.subnetwork_ = subnetwork_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.networkTierConfig_ = + networkTierConfigBuilder_ == null + ? networkTierConfig_ + : networkTierConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -2151,6 +2243,9 @@ public Builder mergeFrom(com.google.container.v1.NodeNetworkConfig other) { bitField0_ |= 0x00000200; onChanged(); } + if (other.hasNetworkTierConfig()) { + mergeNetworkTierConfig(other.getNetworkTierConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2255,6 +2350,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 154 + case 162: + { + input.readMessage( + getNetworkTierConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4374,6 +4476,238 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.container.v1.NetworkTierConfig networkTierConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTierConfig, + com.google.container.v1.NetworkTierConfig.Builder, + com.google.container.v1.NetworkTierConfigOrBuilder> + networkTierConfigBuilder_; + + /** + * + * + *
                                    +     * Output only. The network tier configuration for the node pool inherits from
                                    +     * the cluster-level configuration and remains immutable throughout the node
                                    +     * pool's lifecycle, including during upgrades.
                                    +     * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the networkTierConfig field is set. + */ + public boolean hasNetworkTierConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
                                    +     * Output only. The network tier configuration for the node pool inherits from
                                    +     * the cluster-level configuration and remains immutable throughout the node
                                    +     * pool's lifecycle, including during upgrades.
                                    +     * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The networkTierConfig. + */ + public com.google.container.v1.NetworkTierConfig getNetworkTierConfig() { + if (networkTierConfigBuilder_ == null) { + return networkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : networkTierConfig_; + } else { + return networkTierConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Output only. The network tier configuration for the node pool inherits from
                                    +     * the cluster-level configuration and remains immutable throughout the node
                                    +     * pool's lifecycle, including during upgrades.
                                    +     * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNetworkTierConfig(com.google.container.v1.NetworkTierConfig value) { + if (networkTierConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkTierConfig_ = value; + } else { + networkTierConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The network tier configuration for the node pool inherits from
                                    +     * the cluster-level configuration and remains immutable throughout the node
                                    +     * pool's lifecycle, including during upgrades.
                                    +     * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNetworkTierConfig( + com.google.container.v1.NetworkTierConfig.Builder builderForValue) { + if (networkTierConfigBuilder_ == null) { + networkTierConfig_ = builderForValue.build(); + } else { + networkTierConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The network tier configuration for the node pool inherits from
                                    +     * the cluster-level configuration and remains immutable throughout the node
                                    +     * pool's lifecycle, including during upgrades.
                                    +     * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNetworkTierConfig(com.google.container.v1.NetworkTierConfig value) { + if (networkTierConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && networkTierConfig_ != null + && networkTierConfig_ + != com.google.container.v1.NetworkTierConfig.getDefaultInstance()) { + getNetworkTierConfigBuilder().mergeFrom(value); + } else { + networkTierConfig_ = value; + } + } else { + networkTierConfigBuilder_.mergeFrom(value); + } + if (networkTierConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Output only. The network tier configuration for the node pool inherits from
                                    +     * the cluster-level configuration and remains immutable throughout the node
                                    +     * pool's lifecycle, including during upgrades.
                                    +     * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNetworkTierConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + networkTierConfig_ = null; + if (networkTierConfigBuilder_ != null) { + networkTierConfigBuilder_.dispose(); + networkTierConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Output only. The network tier configuration for the node pool inherits from
                                    +     * the cluster-level configuration and remains immutable throughout the node
                                    +     * pool's lifecycle, including during upgrades.
                                    +     * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1.NetworkTierConfig.Builder getNetworkTierConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getNetworkTierConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Output only. The network tier configuration for the node pool inherits from
                                    +     * the cluster-level configuration and remains immutable throughout the node
                                    +     * pool's lifecycle, including during upgrades.
                                    +     * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1.NetworkTierConfigOrBuilder getNetworkTierConfigOrBuilder() { + if (networkTierConfigBuilder_ != null) { + return networkTierConfigBuilder_.getMessageOrBuilder(); + } else { + return networkTierConfig_ == null + ? com.google.container.v1.NetworkTierConfig.getDefaultInstance() + : networkTierConfig_; + } + } + + /** + * + * + *
                                    +     * Output only. The network tier configuration for the node pool inherits from
                                    +     * the cluster-level configuration and remains immutable throughout the node
                                    +     * pool's lifecycle, including during upgrades.
                                    +     * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTierConfig, + com.google.container.v1.NetworkTierConfig.Builder, + com.google.container.v1.NetworkTierConfigOrBuilder> + getNetworkTierConfigFieldBuilder() { + if (networkTierConfigBuilder_ == null) { + networkTierConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTierConfig, + com.google.container.v1.NetworkTierConfig.Builder, + com.google.container.v1.NetworkTierConfigOrBuilder>( + getNetworkTierConfig(), getParentForChildren(), isClean()); + networkTierConfig_ = null; + } + return networkTierConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java index f870eab4f9e3..a5aace5287c5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java @@ -486,4 +486,53 @@ public interface NodeNetworkConfigOrBuilder * @return The bytes for subnetwork. */ com.google.protobuf.ByteString getSubnetworkBytes(); + + /** + * + * + *
                                    +   * Output only. The network tier configuration for the node pool inherits from
                                    +   * the cluster-level configuration and remains immutable throughout the node
                                    +   * pool's lifecycle, including during upgrades.
                                    +   * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the networkTierConfig field is set. + */ + boolean hasNetworkTierConfig(); + + /** + * + * + *
                                    +   * Output only. The network tier configuration for the node pool inherits from
                                    +   * the cluster-level configuration and remains immutable throughout the node
                                    +   * pool's lifecycle, including during upgrades.
                                    +   * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The networkTierConfig. + */ + com.google.container.v1.NetworkTierConfig getNetworkTierConfig(); + + /** + * + * + *
                                    +   * Output only. The network tier configuration for the node pool inherits from
                                    +   * the cluster-level configuration and remains immutable throughout the node
                                    +   * pool's lifecycle, including during upgrades.
                                    +   * 
                                    + * + * + * .google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.container.v1.NetworkTierConfigOrBuilder getNetworkTierConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java index 59569276fcb5..f392696f64f2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java @@ -6882,7 +6882,7 @@ public com.google.container.v1.NodePool.Status getStatus() { * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=4625 + * google/container/v1/cluster_service.proto;l=4727 * @return The statusMessage. */ @java.lang.Override @@ -6913,7 +6913,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=4625 + * google/container/v1/cluster_service.proto;l=4727 * @return The bytes for statusMessage. */ @java.lang.Override @@ -9954,7 +9954,7 @@ public Builder clearStatus() { * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=4625 + * google/container/v1/cluster_service.proto;l=4727 * @return The statusMessage. */ @java.lang.Deprecated @@ -9984,7 +9984,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=4625 + * google/container/v1/cluster_service.proto;l=4727 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -10014,7 +10014,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=4625 + * google/container/v1/cluster_service.proto;l=4727 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -10043,7 +10043,7 @@ public Builder setStatusMessage(java.lang.String value) { * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=4625 + * google/container/v1/cluster_service.proto;l=4727 * @return This builder for chaining. */ @java.lang.Deprecated @@ -10068,7 +10068,7 @@ public Builder clearStatusMessage() { * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=4625 + * google/container/v1/cluster_service.proto;l=4727 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java index df542fa7a161..5560c21793a5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java @@ -408,7 +408,7 @@ public interface NodePoolOrBuilder * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=4625 + * google/container/v1/cluster_service.proto;l=4727 * @return The statusMessage. */ @java.lang.Deprecated @@ -428,7 +428,7 @@ public interface NodePoolOrBuilder * * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=4625 + * google/container/v1/cluster_service.proto;l=4727 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java index 8036023c66b7..af184a07a210 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -1018,7 +1018,7 @@ public com.google.protobuf.ByteString getNameBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3495 + * google/container/v1/cluster_service.proto;l=3576 * @return The zone. */ @java.lang.Override @@ -1048,7 +1048,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3495 + * google/container/v1/cluster_service.proto;l=3576 * @return The bytes for zone. */ @java.lang.Override @@ -1218,7 +1218,7 @@ public com.google.protobuf.ByteString getDetailBytes() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3509 + * google/container/v1/cluster_service.proto;l=3590 * @return The statusMessage. */ @java.lang.Override @@ -1248,7 +1248,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3509 + * google/container/v1/cluster_service.proto;l=3590 * @return The bytes for statusMessage. */ @java.lang.Override @@ -2793,7 +2793,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3495 + * google/container/v1/cluster_service.proto;l=3576 * @return The zone. */ @java.lang.Deprecated @@ -2822,7 +2822,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3495 + * google/container/v1/cluster_service.proto;l=3576 * @return The bytes for zone. */ @java.lang.Deprecated @@ -2851,7 +2851,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3495 + * google/container/v1/cluster_service.proto;l=3576 * @param value The zone to set. * @return This builder for chaining. */ @@ -2879,7 +2879,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3495 + * google/container/v1/cluster_service.proto;l=3576 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2903,7 +2903,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3495 + * google/container/v1/cluster_service.proto;l=3576 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3255,7 +3255,7 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3509 + * google/container/v1/cluster_service.proto;l=3590 * @return The statusMessage. */ @java.lang.Deprecated @@ -3284,7 +3284,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3509 + * google/container/v1/cluster_service.proto;l=3590 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -3313,7 +3313,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3509 + * google/container/v1/cluster_service.proto;l=3590 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -3341,7 +3341,7 @@ public Builder setStatusMessage(java.lang.String value) { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3509 + * google/container/v1/cluster_service.proto;l=3590 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3365,7 +3365,7 @@ public Builder clearStatusMessage() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3509 + * google/container/v1/cluster_service.proto;l=3590 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java index 76f4e2d9116c..1805289ba204 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java @@ -63,7 +63,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3495 + * google/container/v1/cluster_service.proto;l=3576 * @return The zone. */ @java.lang.Deprecated @@ -82,7 +82,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3495 + * google/container/v1/cluster_service.proto;l=3576 * @return The bytes for zone. */ @java.lang.Deprecated @@ -187,7 +187,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3509 + * google/container/v1/cluster_service.proto;l=3590 * @return The statusMessage. */ @java.lang.Deprecated @@ -206,7 +206,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3509 + * google/container/v1/cluster_service.proto;l=3590 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java index 394dde4af8c2..22ef8be17675 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java @@ -88,7 +88,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 + * google/container/v1/cluster_service.proto;l=1965 * @return The enablePrivateNodes. */ @java.lang.Override @@ -115,7 +115,7 @@ public boolean getEnablePrivateNodes() { * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1922 + * google/container/v1/cluster_service.proto;l=1973 * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -204,7 +204,7 @@ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { * * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=1986 * @return The privateEndpoint. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getPrivateEndpoint() { * * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=1986 * @return The bytes for privateEndpoint. */ @java.lang.Override @@ -275,7 +275,7 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * * * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1943 + * google/container/v1/cluster_service.proto;l=1994 * @return The publicEndpoint. */ @java.lang.Override @@ -308,7 +308,7 @@ public java.lang.String getPublicEndpoint() { * * * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1943 + * google/container/v1/cluster_service.proto;l=1994 * @return The bytes for publicEndpoint. */ @java.lang.Override @@ -397,7 +397,7 @@ public com.google.protobuf.ByteString getPeeringNameBytes() { * * * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is deprecated. - * See google/container/v1/cluster_service.proto;l=1954 + * See google/container/v1/cluster_service.proto;l=2005 * @return Whether the masterGlobalAccessConfig field is set. */ @java.lang.Override @@ -422,7 +422,7 @@ public boolean hasMasterGlobalAccessConfig() { * * * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is deprecated. - * See google/container/v1/cluster_service.proto;l=1954 + * See google/container/v1/cluster_service.proto;l=2005 * @return The masterGlobalAccessConfig. */ @java.lang.Override @@ -478,7 +478,7 @@ public boolean hasMasterGlobalAccessConfig() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is deprecated. - * See google/container/v1/cluster_service.proto;l=1963 + * See google/container/v1/cluster_service.proto;l=2014 * @return The privateEndpointSubnetwork. */ @java.lang.Override @@ -510,7 +510,7 @@ public java.lang.String getPrivateEndpointSubnetwork() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is deprecated. - * See google/container/v1/cluster_service.proto;l=1963 + * See google/container/v1/cluster_service.proto;l=2014 * @return The bytes for privateEndpointSubnetwork. */ @java.lang.Override @@ -1077,7 +1077,7 @@ public Builder mergeFrom( * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 + * google/container/v1/cluster_service.proto;l=1965 * @return The enablePrivateNodes. */ @java.lang.Override @@ -1102,7 +1102,7 @@ public boolean getEnablePrivateNodes() { * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 + * google/container/v1/cluster_service.proto;l=1965 * @param value The enablePrivateNodes to set. * @return This builder for chaining. */ @@ -1131,7 +1131,7 @@ public Builder setEnablePrivateNodes(boolean value) { * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 + * google/container/v1/cluster_service.proto;l=1965 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1159,7 +1159,7 @@ public Builder clearEnablePrivateNodes() { * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=1922 + * See google/container/v1/cluster_service.proto;l=1973 * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -1183,7 +1183,7 @@ public boolean getEnablePrivateEndpoint() { * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=1922 + * See google/container/v1/cluster_service.proto;l=1973 * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ @@ -1211,7 +1211,7 @@ public Builder setEnablePrivateEndpoint(boolean value) { * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. - * See google/container/v1/cluster_service.proto;l=1922 + * See google/container/v1/cluster_service.proto;l=1973 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1366,7 +1366,7 @@ public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) * * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=1986 * @return The privateEndpoint. */ @java.lang.Deprecated @@ -1398,7 +1398,7 @@ public java.lang.String getPrivateEndpoint() { * * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=1986 * @return The bytes for privateEndpoint. */ @java.lang.Deprecated @@ -1430,7 +1430,7 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=1986 * @param value The privateEndpoint to set. * @return This builder for chaining. */ @@ -1461,7 +1461,7 @@ public Builder setPrivateEndpoint(java.lang.String value) { * * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=1986 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1488,7 +1488,7 @@ public Builder clearPrivateEndpoint() { * * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=1986 * @param value The bytes for privateEndpoint to set. * @return This builder for chaining. */ @@ -1522,7 +1522,7 @@ public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1943 + * google/container/v1/cluster_service.proto;l=1994 * @return The publicEndpoint. */ @java.lang.Deprecated @@ -1554,7 +1554,7 @@ public java.lang.String getPublicEndpoint() { * * * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1943 + * google/container/v1/cluster_service.proto;l=1994 * @return The bytes for publicEndpoint. */ @java.lang.Deprecated @@ -1586,7 +1586,7 @@ public com.google.protobuf.ByteString getPublicEndpointBytes() { * * * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1943 + * google/container/v1/cluster_service.proto;l=1994 * @param value The publicEndpoint to set. * @return This builder for chaining. */ @@ -1617,7 +1617,7 @@ public Builder setPublicEndpoint(java.lang.String value) { * * * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1943 + * google/container/v1/cluster_service.proto;l=1994 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1644,7 +1644,7 @@ public Builder clearPublicEndpoint() { * * * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1943 + * google/container/v1/cluster_service.proto;l=1994 * @param value The bytes for publicEndpoint to set. * @return This builder for chaining. */ @@ -1795,7 +1795,7 @@ public Builder setPeeringNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is - * deprecated. See google/container/v1/cluster_service.proto;l=1954 + * deprecated. See google/container/v1/cluster_service.proto;l=2005 * @return Whether the masterGlobalAccessConfig field is set. */ @java.lang.Deprecated @@ -1819,7 +1819,7 @@ public boolean hasMasterGlobalAccessConfig() { * * * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is - * deprecated. See google/container/v1/cluster_service.proto;l=1954 + * deprecated. See google/container/v1/cluster_service.proto;l=2005 * @return The masterGlobalAccessConfig. */ @java.lang.Deprecated @@ -2057,7 +2057,7 @@ public Builder clearMasterGlobalAccessConfig() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1/cluster_service.proto;l=1963 + * deprecated. See google/container/v1/cluster_service.proto;l=2014 * @return The privateEndpointSubnetwork. */ @java.lang.Deprecated @@ -2088,7 +2088,7 @@ public java.lang.String getPrivateEndpointSubnetwork() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1/cluster_service.proto;l=1963 + * deprecated. See google/container/v1/cluster_service.proto;l=2014 * @return The bytes for privateEndpointSubnetwork. */ @java.lang.Deprecated @@ -2119,7 +2119,7 @@ public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1/cluster_service.proto;l=1963 + * deprecated. See google/container/v1/cluster_service.proto;l=2014 * @param value The privateEndpointSubnetwork to set. * @return This builder for chaining. */ @@ -2149,7 +2149,7 @@ public Builder setPrivateEndpointSubnetwork(java.lang.String value) { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1/cluster_service.proto;l=1963 + * deprecated. See google/container/v1/cluster_service.proto;l=2014 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2175,7 +2175,7 @@ public Builder clearPrivateEndpointSubnetwork() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1/cluster_service.proto;l=1963 + * deprecated. See google/container/v1/cluster_service.proto;l=2014 * @param value The bytes for privateEndpointSubnetwork to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java index e6aea35c4799..41c7ead4e20c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java @@ -40,7 +40,7 @@ public interface PrivateClusterConfigOrBuilder * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_nodes is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 + * google/container/v1/cluster_service.proto;l=1965 * @return The enablePrivateNodes. */ @java.lang.Deprecated @@ -61,7 +61,7 @@ public interface PrivateClusterConfigOrBuilder * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.enable_private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1922 + * google/container/v1/cluster_service.proto;l=1973 * @return The enablePrivateEndpoint. */ @java.lang.Deprecated @@ -115,7 +115,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=1986 * @return The privateEndpoint. */ @java.lang.Deprecated @@ -137,7 +137,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=1986 * @return The bytes for privateEndpoint. */ @java.lang.Deprecated @@ -159,7 +159,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1943 + * google/container/v1/cluster_service.proto;l=1994 * @return The publicEndpoint. */ @java.lang.Deprecated @@ -181,7 +181,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1/cluster_service.proto;l=1943 + * google/container/v1/cluster_service.proto;l=1994 * @return The bytes for publicEndpoint. */ @java.lang.Deprecated @@ -229,7 +229,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is deprecated. - * See google/container/v1/cluster_service.proto;l=1954 + * See google/container/v1/cluster_service.proto;l=2005 * @return Whether the masterGlobalAccessConfig field is set. */ @java.lang.Deprecated @@ -251,7 +251,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1.PrivateClusterConfig.master_global_access_config is deprecated. - * See google/container/v1/cluster_service.proto;l=1954 + * See google/container/v1/cluster_service.proto;l=2005 * @return The masterGlobalAccessConfig. */ @java.lang.Deprecated @@ -291,7 +291,7 @@ public interface PrivateClusterConfigOrBuilder * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is deprecated. - * See google/container/v1/cluster_service.proto;l=1963 + * See google/container/v1/cluster_service.proto;l=2014 * @return The privateEndpointSubnetwork. */ @java.lang.Deprecated @@ -312,7 +312,7 @@ public interface PrivateClusterConfigOrBuilder * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1.PrivateClusterConfig.private_endpoint_subnetwork is deprecated. - * See google/container/v1/cluster_service.proto;l=1963 + * See google/container/v1/cluster_service.proto;l=2014 * @return The bytes for privateEndpointSubnetwork. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivilegedAdmissionConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivilegedAdmissionConfig.java new file mode 100644 index 000000000000..56f66d7fdadb --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivilegedAdmissionConfig.java @@ -0,0 +1,867 @@ +/* + * Copyright 2025 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.container.v1; + +/** + * + * + *
                                    + * PrivilegedAdmissionConfig stores the list of authorized allowlist
                                    + * paths for the cluster.
                                    + * 
                                    + * + * Protobuf type {@code google.container.v1.PrivilegedAdmissionConfig} + */ +public final class PrivilegedAdmissionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.PrivilegedAdmissionConfig) + PrivilegedAdmissionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PrivilegedAdmissionConfig.newBuilder() to construct. + private PrivilegedAdmissionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivilegedAdmissionConfig() { + allowlistPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivilegedAdmissionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivilegedAdmissionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivilegedAdmissionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PrivilegedAdmissionConfig.class, + com.google.container.v1.PrivilegedAdmissionConfig.Builder.class); + } + + public static final int ALLOWLIST_PATHS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowlistPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                    +   * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +   * used with the `--autopilot-privileged-admission` flag to authorize
                                    +   * privileged workloads in Autopilot clusters.
                                    +   *
                                    +   * Paths can be GKE-owned, in the format
                                    +   * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +   * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +   *
                                    +   * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +   * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +   * allowlists under the `my-bucket` bucket.
                                    +   * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @return A list containing the allowlistPaths. + */ + public com.google.protobuf.ProtocolStringList getAllowlistPathsList() { + return allowlistPaths_; + } + + /** + * + * + *
                                    +   * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +   * used with the `--autopilot-privileged-admission` flag to authorize
                                    +   * privileged workloads in Autopilot clusters.
                                    +   *
                                    +   * Paths can be GKE-owned, in the format
                                    +   * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +   * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +   *
                                    +   * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +   * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +   * allowlists under the `my-bucket` bucket.
                                    +   * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @return The count of allowlistPaths. + */ + public int getAllowlistPathsCount() { + return allowlistPaths_.size(); + } + + /** + * + * + *
                                    +   * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +   * used with the `--autopilot-privileged-admission` flag to authorize
                                    +   * privileged workloads in Autopilot clusters.
                                    +   *
                                    +   * Paths can be GKE-owned, in the format
                                    +   * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +   * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +   *
                                    +   * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +   * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +   * allowlists under the `my-bucket` bucket.
                                    +   * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param index The index of the element to return. + * @return The allowlistPaths at the given index. + */ + public java.lang.String getAllowlistPaths(int index) { + return allowlistPaths_.get(index); + } + + /** + * + * + *
                                    +   * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +   * used with the `--autopilot-privileged-admission` flag to authorize
                                    +   * privileged workloads in Autopilot clusters.
                                    +   *
                                    +   * Paths can be GKE-owned, in the format
                                    +   * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +   * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +   *
                                    +   * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +   * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +   * allowlists under the `my-bucket` bucket.
                                    +   * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowlistPaths at the given index. + */ + public com.google.protobuf.ByteString getAllowlistPathsBytes(int index) { + return allowlistPaths_.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 < allowlistPaths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowlistPaths_.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 < allowlistPaths_.size(); i++) { + dataSize += computeStringSizeNoTag(allowlistPaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowlistPathsList().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.container.v1.PrivilegedAdmissionConfig)) { + return super.equals(obj); + } + com.google.container.v1.PrivilegedAdmissionConfig other = + (com.google.container.v1.PrivilegedAdmissionConfig) obj; + + if (!getAllowlistPathsList().equals(other.getAllowlistPathsList())) 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 (getAllowlistPathsCount() > 0) { + hash = (37 * hash) + ALLOWLIST_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getAllowlistPathsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig 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.container.v1.PrivilegedAdmissionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.PrivilegedAdmissionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +   * PrivilegedAdmissionConfig stores the list of authorized allowlist
                                    +   * paths for the cluster.
                                    +   * 
                                    + * + * Protobuf type {@code google.container.v1.PrivilegedAdmissionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.PrivilegedAdmissionConfig) + com.google.container.v1.PrivilegedAdmissionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivilegedAdmissionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivilegedAdmissionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PrivilegedAdmissionConfig.class, + com.google.container.v1.PrivilegedAdmissionConfig.Builder.class); + } + + // Construct using com.google.container.v1.PrivilegedAdmissionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowlistPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivilegedAdmissionConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.PrivilegedAdmissionConfig getDefaultInstanceForType() { + return com.google.container.v1.PrivilegedAdmissionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.PrivilegedAdmissionConfig build() { + com.google.container.v1.PrivilegedAdmissionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.PrivilegedAdmissionConfig buildPartial() { + com.google.container.v1.PrivilegedAdmissionConfig result = + new com.google.container.v1.PrivilegedAdmissionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.PrivilegedAdmissionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + allowlistPaths_.makeImmutable(); + result.allowlistPaths_ = allowlistPaths_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.PrivilegedAdmissionConfig) { + return mergeFrom((com.google.container.v1.PrivilegedAdmissionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.PrivilegedAdmissionConfig other) { + if (other == com.google.container.v1.PrivilegedAdmissionConfig.getDefaultInstance()) + return this; + if (!other.allowlistPaths_.isEmpty()) { + if (allowlistPaths_.isEmpty()) { + allowlistPaths_ = other.allowlistPaths_; + bitField0_ |= 0x00000001; + } else { + ensureAllowlistPathsIsMutable(); + allowlistPaths_.addAll(other.allowlistPaths_); + } + 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(); + ensureAllowlistPathsIsMutable(); + allowlistPaths_.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 allowlistPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowlistPathsIsMutable() { + if (!allowlistPaths_.isModifiable()) { + allowlistPaths_ = new com.google.protobuf.LazyStringArrayList(allowlistPaths_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                                    +     * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +     * used with the `--autopilot-privileged-admission` flag to authorize
                                    +     * privileged workloads in Autopilot clusters.
                                    +     *
                                    +     * Paths can be GKE-owned, in the format
                                    +     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +     * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +     *
                                    +     * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +     * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +     * allowlists under the `my-bucket` bucket.
                                    +     * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @return A list containing the allowlistPaths. + */ + public com.google.protobuf.ProtocolStringList getAllowlistPathsList() { + allowlistPaths_.makeImmutable(); + return allowlistPaths_; + } + + /** + * + * + *
                                    +     * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +     * used with the `--autopilot-privileged-admission` flag to authorize
                                    +     * privileged workloads in Autopilot clusters.
                                    +     *
                                    +     * Paths can be GKE-owned, in the format
                                    +     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +     * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +     *
                                    +     * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +     * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +     * allowlists under the `my-bucket` bucket.
                                    +     * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @return The count of allowlistPaths. + */ + public int getAllowlistPathsCount() { + return allowlistPaths_.size(); + } + + /** + * + * + *
                                    +     * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +     * used with the `--autopilot-privileged-admission` flag to authorize
                                    +     * privileged workloads in Autopilot clusters.
                                    +     *
                                    +     * Paths can be GKE-owned, in the format
                                    +     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +     * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +     *
                                    +     * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +     * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +     * allowlists under the `my-bucket` bucket.
                                    +     * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param index The index of the element to return. + * @return The allowlistPaths at the given index. + */ + public java.lang.String getAllowlistPaths(int index) { + return allowlistPaths_.get(index); + } + + /** + * + * + *
                                    +     * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +     * used with the `--autopilot-privileged-admission` flag to authorize
                                    +     * privileged workloads in Autopilot clusters.
                                    +     *
                                    +     * Paths can be GKE-owned, in the format
                                    +     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +     * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +     *
                                    +     * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +     * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +     * allowlists under the `my-bucket` bucket.
                                    +     * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowlistPaths at the given index. + */ + public com.google.protobuf.ByteString getAllowlistPathsBytes(int index) { + return allowlistPaths_.getByteString(index); + } + + /** + * + * + *
                                    +     * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +     * used with the `--autopilot-privileged-admission` flag to authorize
                                    +     * privileged workloads in Autopilot clusters.
                                    +     *
                                    +     * Paths can be GKE-owned, in the format
                                    +     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +     * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +     *
                                    +     * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +     * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +     * allowlists under the `my-bucket` bucket.
                                    +     * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param index The index to set the value at. + * @param value The allowlistPaths to set. + * @return This builder for chaining. + */ + public Builder setAllowlistPaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowlistPathsIsMutable(); + allowlistPaths_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +     * used with the `--autopilot-privileged-admission` flag to authorize
                                    +     * privileged workloads in Autopilot clusters.
                                    +     *
                                    +     * Paths can be GKE-owned, in the format
                                    +     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +     * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +     *
                                    +     * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +     * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +     * allowlists under the `my-bucket` bucket.
                                    +     * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param value The allowlistPaths to add. + * @return This builder for chaining. + */ + public Builder addAllowlistPaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowlistPathsIsMutable(); + allowlistPaths_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +     * used with the `--autopilot-privileged-admission` flag to authorize
                                    +     * privileged workloads in Autopilot clusters.
                                    +     *
                                    +     * Paths can be GKE-owned, in the format
                                    +     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +     * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +     *
                                    +     * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +     * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +     * allowlists under the `my-bucket` bucket.
                                    +     * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param values The allowlistPaths to add. + * @return This builder for chaining. + */ + public Builder addAllAllowlistPaths(java.lang.Iterable values) { + ensureAllowlistPathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowlistPaths_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +     * used with the `--autopilot-privileged-admission` flag to authorize
                                    +     * privileged workloads in Autopilot clusters.
                                    +     *
                                    +     * Paths can be GKE-owned, in the format
                                    +     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +     * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +     *
                                    +     * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +     * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +     * allowlists under the `my-bucket` bucket.
                                    +     * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @return This builder for chaining. + */ + public Builder clearAllowlistPaths() { + allowlistPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +     * used with the `--autopilot-privileged-admission` flag to authorize
                                    +     * privileged workloads in Autopilot clusters.
                                    +     *
                                    +     * Paths can be GKE-owned, in the format
                                    +     * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +     * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +     *
                                    +     * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +     * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +     * allowlists under the `my-bucket` bucket.
                                    +     * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param value The bytes of the allowlistPaths to add. + * @return This builder for chaining. + */ + public Builder addAllowlistPathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowlistPathsIsMutable(); + allowlistPaths_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.PrivilegedAdmissionConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.PrivilegedAdmissionConfig) + private static final com.google.container.v1.PrivilegedAdmissionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.PrivilegedAdmissionConfig(); + } + + public static com.google.container.v1.PrivilegedAdmissionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivilegedAdmissionConfig 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.container.v1.PrivilegedAdmissionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivilegedAdmissionConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivilegedAdmissionConfigOrBuilder.java new file mode 100644 index 000000000000..d9882847990e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivilegedAdmissionConfigOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2025 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! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.container.v1; + +public interface PrivilegedAdmissionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.PrivilegedAdmissionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +   * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +   * used with the `--autopilot-privileged-admission` flag to authorize
                                    +   * privileged workloads in Autopilot clusters.
                                    +   *
                                    +   * Paths can be GKE-owned, in the format
                                    +   * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +   * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +   *
                                    +   * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +   * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +   * allowlists under the `my-bucket` bucket.
                                    +   * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @return A list containing the allowlistPaths. + */ + java.util.List getAllowlistPathsList(); + + /** + * + * + *
                                    +   * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +   * used with the `--autopilot-privileged-admission` flag to authorize
                                    +   * privileged workloads in Autopilot clusters.
                                    +   *
                                    +   * Paths can be GKE-owned, in the format
                                    +   * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +   * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +   *
                                    +   * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +   * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +   * allowlists under the `my-bucket` bucket.
                                    +   * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @return The count of allowlistPaths. + */ + int getAllowlistPathsCount(); + + /** + * + * + *
                                    +   * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +   * used with the `--autopilot-privileged-admission` flag to authorize
                                    +   * privileged workloads in Autopilot clusters.
                                    +   *
                                    +   * Paths can be GKE-owned, in the format
                                    +   * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +   * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +   *
                                    +   * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +   * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +   * allowlists under the `my-bucket` bucket.
                                    +   * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param index The index of the element to return. + * @return The allowlistPaths at the given index. + */ + java.lang.String getAllowlistPaths(int index); + + /** + * + * + *
                                    +   * The customer allowlist Cloud Storage paths for the cluster. These paths are
                                    +   * used with the `--autopilot-privileged-admission` flag to authorize
                                    +   * privileged workloads in Autopilot clusters.
                                    +   *
                                    +   * Paths can be GKE-owned, in the format
                                    +   * `gke://<partner_name>/<app_name>/<allowlist_path>`, or customer-owned, in
                                    +   * the format `gs://<bucket_name>/<allowlist_path>`.
                                    +   *
                                    +   * Wildcards (`*`) are supported to authorize all allowlists under specific
                                    +   * paths or directories. Example: `gs://my-bucket/*` will authorize all
                                    +   * allowlists under the `my-bucket` bucket.
                                    +   * 
                                    + * + * repeated string allowlist_paths = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowlistPaths at the given index. + */ + com.google.protobuf.ByteString getAllowlistPathsBytes(int index); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java index 3056b13d72fc..adc3e8ccae79 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java @@ -23,7 +23,7 @@ * * *
                                    - * Collection of [GCP
                                    + * Collection of [Resource Manager
                                      * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
                                      * 
                                    * @@ -353,7 +353,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Collection of [GCP
                                    +   * Collection of [Resource Manager
                                        * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
                                        * 
                                    * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java index 5addd400f652..c9ea98eb67a8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java @@ -88,7 +88,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4913 + * google/container/v1/cluster_service.proto;l=5029 * @return The projectId. */ @java.lang.Override @@ -117,7 +117,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4913 + * google/container/v1/cluster_service.proto;l=5029 * @return The bytes for projectId. */ @java.lang.Override @@ -152,7 +152,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4919 + * google/container/v1/cluster_service.proto;l=5035 * @return The zone. */ @java.lang.Override @@ -182,7 +182,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4919 + * google/container/v1/cluster_service.proto;l=5035 * @return The bytes for zone. */ @java.lang.Override @@ -215,7 +215,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4923 + * google/container/v1/cluster_service.proto;l=5039 * @return The clusterId. */ @java.lang.Override @@ -243,7 +243,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4923 + * google/container/v1/cluster_service.proto;l=5039 * @return The bytes for clusterId. */ @java.lang.Override @@ -276,7 +276,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4927 + * google/container/v1/cluster_service.proto;l=5043 * @return The nodePoolId. */ @java.lang.Override @@ -304,7 +304,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4927 + * google/container/v1/cluster_service.proto;l=5043 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -876,7 +876,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4913 + * google/container/v1/cluster_service.proto;l=5029 * @return The projectId. */ @java.lang.Deprecated @@ -904,7 +904,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4913 + * google/container/v1/cluster_service.proto;l=5029 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -932,7 +932,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4913 + * google/container/v1/cluster_service.proto;l=5029 * @param value The projectId to set. * @return This builder for chaining. */ @@ -959,7 +959,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4913 + * google/container/v1/cluster_service.proto;l=5029 * @return This builder for chaining. */ @java.lang.Deprecated @@ -982,7 +982,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4913 + * google/container/v1/cluster_service.proto;l=5029 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1013,7 +1013,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4919 + * google/container/v1/cluster_service.proto;l=5035 * @return The zone. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4919 + * google/container/v1/cluster_service.proto;l=5035 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1071,7 +1071,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4919 + * google/container/v1/cluster_service.proto;l=5035 * @param value The zone to set. * @return This builder for chaining. */ @@ -1099,7 +1099,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4919 + * google/container/v1/cluster_service.proto;l=5035 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1123,7 +1123,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4919 + * google/container/v1/cluster_service.proto;l=5035 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1152,7 +1152,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4923 + * google/container/v1/cluster_service.proto;l=5039 * @return The clusterId. */ @java.lang.Deprecated @@ -1179,7 +1179,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4923 + * google/container/v1/cluster_service.proto;l=5039 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1206,7 +1206,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4923 + * google/container/v1/cluster_service.proto;l=5039 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1232,7 +1232,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4923 + * google/container/v1/cluster_service.proto;l=5039 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1254,7 +1254,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4923 + * google/container/v1/cluster_service.proto;l=5039 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4927 + * See google/container/v1/cluster_service.proto;l=5043 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1310,7 +1310,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4927 + * See google/container/v1/cluster_service.proto;l=5043 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1337,7 +1337,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4927 + * See google/container/v1/cluster_service.proto;l=5043 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1363,7 +1363,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4927 + * See google/container/v1/cluster_service.proto;l=5043 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1385,7 +1385,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=4927 + * See google/container/v1/cluster_service.proto;l=5043 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java index 4c4b6f4f2fe9..6183595f252c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4913 + * google/container/v1/cluster_service.proto;l=5029 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4913 + * google/container/v1/cluster_service.proto;l=5029 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4919 + * google/container/v1/cluster_service.proto;l=5035 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4919 + * google/container/v1/cluster_service.proto;l=5035 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4923 + * google/container/v1/cluster_service.proto;l=5039 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4923 + * google/container/v1/cluster_service.proto;l=5039 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4927 + * google/container/v1/cluster_service.proto;l=5043 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4927 + * google/container/v1/cluster_service.proto;l=5043 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfig.java index cf305db71958..9a3504e91f55 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfig.java @@ -62,6 +62,955 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1.SecretManagerConfig.Builder.class); } + public interface RotationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SecretManagerConfig.RotationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                    +     * Whether the rotation is enabled.
                                    +     * 
                                    + * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + + /** + * + * + *
                                    +     * Whether the rotation is enabled.
                                    +     * 
                                    + * + * optional bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
                                    +     * The interval between two consecutive rotations. Default rotation interval
                                    +     * is 2 minutes.
                                    +     * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + * + * @return Whether the rotationInterval field is set. + */ + boolean hasRotationInterval(); + + /** + * + * + *
                                    +     * The interval between two consecutive rotations. Default rotation interval
                                    +     * is 2 minutes.
                                    +     * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + * + * @return The rotationInterval. + */ + com.google.protobuf.Duration getRotationInterval(); + + /** + * + * + *
                                    +     * The interval between two consecutive rotations. Default rotation interval
                                    +     * is 2 minutes.
                                    +     * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + */ + com.google.protobuf.DurationOrBuilder getRotationIntervalOrBuilder(); + } + + /** + * + * + *
                                    +   * RotationConfig is config for secret manager auto rotation.
                                    +   * 
                                    + * + * Protobuf type {@code google.container.v1.SecretManagerConfig.RotationConfig} + */ + public static final class RotationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.SecretManagerConfig.RotationConfig) + RotationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RotationConfig.newBuilder() to construct. + private RotationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RotationConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RotationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_RotationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_RotationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecretManagerConfig.RotationConfig.class, + com.google.container.v1.SecretManagerConfig.RotationConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
                                    +     * Whether the rotation is enabled.
                                    +     * 
                                    + * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +     * Whether the rotation is enabled.
                                    +     * 
                                    + * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int ROTATION_INTERVAL_FIELD_NUMBER = 2; + private com.google.protobuf.Duration rotationInterval_; + + /** + * + * + *
                                    +     * The interval between two consecutive rotations. Default rotation interval
                                    +     * is 2 minutes.
                                    +     * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + * + * @return Whether the rotationInterval field is set. + */ + @java.lang.Override + public boolean hasRotationInterval() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * The interval between two consecutive rotations. Default rotation interval
                                    +     * is 2 minutes.
                                    +     * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + * + * @return The rotationInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getRotationInterval() { + return rotationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationInterval_; + } + + /** + * + * + *
                                    +     * The interval between two consecutive rotations. Default rotation interval
                                    +     * is 2 minutes.
                                    +     * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRotationIntervalOrBuilder() { + return rotationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationInterval_; + } + + 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.writeBool(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRotationInterval()); + } + 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.computeBoolSize(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRotationInterval()); + } + 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.container.v1.SecretManagerConfig.RotationConfig)) { + return super.equals(obj); + } + com.google.container.v1.SecretManagerConfig.RotationConfig other = + (com.google.container.v1.SecretManagerConfig.RotationConfig) obj; + + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) return false; + } + if (hasRotationInterval() != other.hasRotationInterval()) return false; + if (hasRotationInterval()) { + if (!getRotationInterval().equals(other.getRotationInterval())) 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 (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } + if (hasRotationInterval()) { + hash = (37 * hash) + ROTATION_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getRotationInterval().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig 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.container.v1.SecretManagerConfig.RotationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1.SecretManagerConfig.RotationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                    +     * RotationConfig is config for secret manager auto rotation.
                                    +     * 
                                    + * + * Protobuf type {@code google.container.v1.SecretManagerConfig.RotationConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SecretManagerConfig.RotationConfig) + com.google.container.v1.SecretManagerConfig.RotationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_RotationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_RotationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecretManagerConfig.RotationConfig.class, + com.google.container.v1.SecretManagerConfig.RotationConfig.Builder.class); + } + + // Construct using com.google.container.v1.SecretManagerConfig.RotationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRotationIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + rotationInterval_ = null; + if (rotationIntervalBuilder_ != null) { + rotationIntervalBuilder_.dispose(); + rotationIntervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecretManagerConfig_RotationConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SecretManagerConfig.RotationConfig + getDefaultInstanceForType() { + return com.google.container.v1.SecretManagerConfig.RotationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SecretManagerConfig.RotationConfig build() { + com.google.container.v1.SecretManagerConfig.RotationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SecretManagerConfig.RotationConfig buildPartial() { + com.google.container.v1.SecretManagerConfig.RotationConfig result = + new com.google.container.v1.SecretManagerConfig.RotationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.container.v1.SecretManagerConfig.RotationConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rotationInterval_ = + rotationIntervalBuilder_ == null + ? rotationInterval_ + : rotationIntervalBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SecretManagerConfig.RotationConfig) { + return mergeFrom((com.google.container.v1.SecretManagerConfig.RotationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SecretManagerConfig.RotationConfig other) { + if (other + == com.google.container.v1.SecretManagerConfig.RotationConfig.getDefaultInstance()) + return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } + if (other.hasRotationInterval()) { + mergeRotationInterval(other.getRotationInterval()); + } + 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: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getRotationIntervalFieldBuilder().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 boolean enabled_; + + /** + * + * + *
                                    +       * Whether the rotation is enabled.
                                    +       * 
                                    + * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                    +       * Whether the rotation is enabled.
                                    +       * 
                                    + * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
                                    +       * Whether the rotation is enabled.
                                    +       * 
                                    + * + * optional bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * Whether the rotation is enabled.
                                    +       * 
                                    + * + * optional bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration rotationInterval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + rotationIntervalBuilder_; + + /** + * + * + *
                                    +       * The interval between two consecutive rotations. Default rotation interval
                                    +       * is 2 minutes.
                                    +       * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + * + * @return Whether the rotationInterval field is set. + */ + public boolean hasRotationInterval() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +       * The interval between two consecutive rotations. Default rotation interval
                                    +       * is 2 minutes.
                                    +       * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + * + * @return The rotationInterval. + */ + public com.google.protobuf.Duration getRotationInterval() { + if (rotationIntervalBuilder_ == null) { + return rotationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationInterval_; + } else { + return rotationIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +       * The interval between two consecutive rotations. Default rotation interval
                                    +       * is 2 minutes.
                                    +       * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + */ + public Builder setRotationInterval(com.google.protobuf.Duration value) { + if (rotationIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rotationInterval_ = value; + } else { + rotationIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * The interval between two consecutive rotations. Default rotation interval
                                    +       * is 2 minutes.
                                    +       * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + */ + public Builder setRotationInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (rotationIntervalBuilder_ == null) { + rotationInterval_ = builderForValue.build(); + } else { + rotationIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * The interval between two consecutive rotations. Default rotation interval
                                    +       * is 2 minutes.
                                    +       * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + */ + public Builder mergeRotationInterval(com.google.protobuf.Duration value) { + if (rotationIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rotationInterval_ != null + && rotationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRotationIntervalBuilder().mergeFrom(value); + } else { + rotationInterval_ = value; + } + } else { + rotationIntervalBuilder_.mergeFrom(value); + } + if (rotationInterval_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +       * The interval between two consecutive rotations. Default rotation interval
                                    +       * is 2 minutes.
                                    +       * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + */ + public Builder clearRotationInterval() { + bitField0_ = (bitField0_ & ~0x00000002); + rotationInterval_ = null; + if (rotationIntervalBuilder_ != null) { + rotationIntervalBuilder_.dispose(); + rotationIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +       * The interval between two consecutive rotations. Default rotation interval
                                    +       * is 2 minutes.
                                    +       * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + */ + public com.google.protobuf.Duration.Builder getRotationIntervalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRotationIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +       * The interval between two consecutive rotations. Default rotation interval
                                    +       * is 2 minutes.
                                    +       * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + */ + public com.google.protobuf.DurationOrBuilder getRotationIntervalOrBuilder() { + if (rotationIntervalBuilder_ != null) { + return rotationIntervalBuilder_.getMessageOrBuilder(); + } else { + return rotationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationInterval_; + } + } + + /** + * + * + *
                                    +       * The interval between two consecutive rotations. Default rotation interval
                                    +       * is 2 minutes.
                                    +       * 
                                    + * + * optional .google.protobuf.Duration rotation_interval = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getRotationIntervalFieldBuilder() { + if (rotationIntervalBuilder_ == null) { + rotationIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRotationInterval(), getParentForChildren(), isClean()); + rotationInterval_ = null; + } + return rotationIntervalBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.SecretManagerConfig.RotationConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SecretManagerConfig.RotationConfig) + private static final com.google.container.v1.SecretManagerConfig.RotationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.SecretManagerConfig.RotationConfig(); + } + + public static com.google.container.v1.SecretManagerConfig.RotationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RotationConfig 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.container.v1.SecretManagerConfig.RotationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; @@ -98,6 +1047,63 @@ public boolean getEnabled() { return enabled_; } + public static final int ROTATION_CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1.SecretManagerConfig.RotationConfig rotationConfig_; + + /** + * + * + *
                                    +   * Rotation config for secret manager.
                                    +   * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + * + * @return Whether the rotationConfig field is set. + */ + @java.lang.Override + public boolean hasRotationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +   * Rotation config for secret manager.
                                    +   * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + * + * @return The rotationConfig. + */ + @java.lang.Override + public com.google.container.v1.SecretManagerConfig.RotationConfig getRotationConfig() { + return rotationConfig_ == null + ? com.google.container.v1.SecretManagerConfig.RotationConfig.getDefaultInstance() + : rotationConfig_; + } + + /** + * + * + *
                                    +   * Rotation config for secret manager.
                                    +   * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + */ + @java.lang.Override + public com.google.container.v1.SecretManagerConfig.RotationConfigOrBuilder + getRotationConfigOrBuilder() { + return rotationConfig_ == null + ? com.google.container.v1.SecretManagerConfig.RotationConfig.getDefaultInstance() + : rotationConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -115,6 +1121,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, enabled_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRotationConfig()); + } getUnknownFields().writeTo(output); } @@ -127,6 +1136,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRotationConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -147,6 +1159,10 @@ public boolean equals(final java.lang.Object obj) { if (hasEnabled()) { if (getEnabled() != other.getEnabled()) return false; } + if (hasRotationConfig() != other.hasRotationConfig()) return false; + if (hasRotationConfig()) { + if (!getRotationConfig().equals(other.getRotationConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,6 +1178,10 @@ public int hashCode() { hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); } + if (hasRotationConfig()) { + hash = (37 * hash) + ROTATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRotationConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -292,10 +1312,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.container.v1.SecretManagerConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRotationConfigFieldBuilder(); + } } @java.lang.Override @@ -303,6 +1332,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; enabled_ = false; + rotationConfig_ = null; + if (rotationConfigBuilder_ != null) { + rotationConfigBuilder_.dispose(); + rotationConfigBuilder_ = null; + } return this; } @@ -344,6 +1378,11 @@ private void buildPartial0(com.google.container.v1.SecretManagerConfig result) { result.enabled_ = enabled_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rotationConfig_ = + rotationConfigBuilder_ == null ? rotationConfig_ : rotationConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -395,6 +1434,9 @@ public Builder mergeFrom(com.google.container.v1.SecretManagerConfig other) { if (other.hasEnabled()) { setEnabled(other.getEnabled()); } + if (other.hasRotationConfig()) { + mergeRotationConfig(other.getRotationConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -427,6 +1469,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + input.readMessage(getRotationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -518,6 +1566,216 @@ public Builder clearEnabled() { return this; } + private com.google.container.v1.SecretManagerConfig.RotationConfig rotationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecretManagerConfig.RotationConfig, + com.google.container.v1.SecretManagerConfig.RotationConfig.Builder, + com.google.container.v1.SecretManagerConfig.RotationConfigOrBuilder> + rotationConfigBuilder_; + + /** + * + * + *
                                    +     * Rotation config for secret manager.
                                    +     * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + * + * @return Whether the rotationConfig field is set. + */ + public boolean hasRotationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                    +     * Rotation config for secret manager.
                                    +     * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + * + * @return The rotationConfig. + */ + public com.google.container.v1.SecretManagerConfig.RotationConfig getRotationConfig() { + if (rotationConfigBuilder_ == null) { + return rotationConfig_ == null + ? com.google.container.v1.SecretManagerConfig.RotationConfig.getDefaultInstance() + : rotationConfig_; + } else { + return rotationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Rotation config for secret manager.
                                    +     * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + */ + public Builder setRotationConfig( + com.google.container.v1.SecretManagerConfig.RotationConfig value) { + if (rotationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rotationConfig_ = value; + } else { + rotationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Rotation config for secret manager.
                                    +     * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + */ + public Builder setRotationConfig( + com.google.container.v1.SecretManagerConfig.RotationConfig.Builder builderForValue) { + if (rotationConfigBuilder_ == null) { + rotationConfig_ = builderForValue.build(); + } else { + rotationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Rotation config for secret manager.
                                    +     * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + */ + public Builder mergeRotationConfig( + com.google.container.v1.SecretManagerConfig.RotationConfig value) { + if (rotationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rotationConfig_ != null + && rotationConfig_ + != com.google.container.v1.SecretManagerConfig.RotationConfig + .getDefaultInstance()) { + getRotationConfigBuilder().mergeFrom(value); + } else { + rotationConfig_ = value; + } + } else { + rotationConfigBuilder_.mergeFrom(value); + } + if (rotationConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Rotation config for secret manager.
                                    +     * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + */ + public Builder clearRotationConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + rotationConfig_ = null; + if (rotationConfigBuilder_ != null) { + rotationConfigBuilder_.dispose(); + rotationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Rotation config for secret manager.
                                    +     * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + */ + public com.google.container.v1.SecretManagerConfig.RotationConfig.Builder + getRotationConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRotationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Rotation config for secret manager.
                                    +     * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + */ + public com.google.container.v1.SecretManagerConfig.RotationConfigOrBuilder + getRotationConfigOrBuilder() { + if (rotationConfigBuilder_ != null) { + return rotationConfigBuilder_.getMessageOrBuilder(); + } else { + return rotationConfig_ == null + ? com.google.container.v1.SecretManagerConfig.RotationConfig.getDefaultInstance() + : rotationConfig_; + } + } + + /** + * + * + *
                                    +     * Rotation config for secret manager.
                                    +     * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecretManagerConfig.RotationConfig, + com.google.container.v1.SecretManagerConfig.RotationConfig.Builder, + com.google.container.v1.SecretManagerConfig.RotationConfigOrBuilder> + getRotationConfigFieldBuilder() { + if (rotationConfigBuilder_ == null) { + rotationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecretManagerConfig.RotationConfig, + com.google.container.v1.SecretManagerConfig.RotationConfig.Builder, + com.google.container.v1.SecretManagerConfig.RotationConfigOrBuilder>( + getRotationConfig(), getParentForChildren(), isClean()); + rotationConfig_ = null; + } + return rotationConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfigOrBuilder.java index bf3ed322b6c1..0f5d13e2bdea 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecretManagerConfigOrBuilder.java @@ -49,4 +49,44 @@ public interface SecretManagerConfigOrBuilder * @return The enabled. */ boolean getEnabled(); + + /** + * + * + *
                                    +   * Rotation config for secret manager.
                                    +   * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + * + * @return Whether the rotationConfig field is set. + */ + boolean hasRotationConfig(); + + /** + * + * + *
                                    +   * Rotation config for secret manager.
                                    +   * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + * + * @return The rotationConfig. + */ + com.google.container.v1.SecretManagerConfig.RotationConfig getRotationConfig(); + + /** + * + * + *
                                    +   * Rotation config for secret manager.
                                    +   * 
                                    + * + * optional .google.container.v1.SecretManagerConfig.RotationConfig rotation_config = 2; + * + */ + com.google.container.v1.SecretManagerConfig.RotationConfigOrBuilder getRotationConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java index c4afdb3ae9f9..31c1a2eec626 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3940 + * google/container/v1/cluster_service.proto;l=4029 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3940 + * google/container/v1/cluster_service.proto;l=4029 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3946 + * google/container/v1/cluster_service.proto;l=4035 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3946 + * google/container/v1/cluster_service.proto;l=4035 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3950 + * google/container/v1/cluster_service.proto;l=4039 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3950 + * google/container/v1/cluster_service.proto;l=4039 * @return The bytes for clusterId. */ @java.lang.Override @@ -846,7 +846,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3940 + * google/container/v1/cluster_service.proto;l=4029 * @return The projectId. */ @java.lang.Deprecated @@ -874,7 +874,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3940 + * google/container/v1/cluster_service.proto;l=4029 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -902,7 +902,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3940 + * google/container/v1/cluster_service.proto;l=4029 * @param value The projectId to set. * @return This builder for chaining. */ @@ -929,7 +929,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3940 + * google/container/v1/cluster_service.proto;l=4029 * @return This builder for chaining. */ @java.lang.Deprecated @@ -952,7 +952,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3940 + * google/container/v1/cluster_service.proto;l=4029 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -983,7 +983,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3946 + * google/container/v1/cluster_service.proto;l=4035 * @return The zone. */ @java.lang.Deprecated @@ -1012,7 +1012,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3946 + * google/container/v1/cluster_service.proto;l=4035 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1041,7 +1041,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3946 + * google/container/v1/cluster_service.proto;l=4035 * @param value The zone to set. * @return This builder for chaining. */ @@ -1069,7 +1069,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3946 + * google/container/v1/cluster_service.proto;l=4035 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1093,7 +1093,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3946 + * google/container/v1/cluster_service.proto;l=4035 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1122,7 +1122,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3950 + * google/container/v1/cluster_service.proto;l=4039 * @return The clusterId. */ @java.lang.Deprecated @@ -1149,7 +1149,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3950 + * google/container/v1/cluster_service.proto;l=4039 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1176,7 +1176,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3950 + * google/container/v1/cluster_service.proto;l=4039 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1202,7 +1202,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3950 + * google/container/v1/cluster_service.proto;l=4039 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1224,7 +1224,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3950 + * google/container/v1/cluster_service.proto;l=4039 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java index 225f64fa6aa0..1da74d4a5269 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3940 + * google/container/v1/cluster_service.proto;l=4029 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3940 + * google/container/v1/cluster_service.proto;l=4029 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3946 + * google/container/v1/cluster_service.proto;l=4035 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3946 + * google/container/v1/cluster_service.proto;l=4035 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3950 + * google/container/v1/cluster_service.proto;l=4039 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3950 + * google/container/v1/cluster_service.proto;l=4039 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java index 2b98eb032366..248d4139057f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -99,7 +99,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5119 + * google/container/v1/cluster_service.proto;l=5235 * @return The projectId. */ @java.lang.Override @@ -128,7 +128,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5119 + * google/container/v1/cluster_service.proto;l=5235 * @return The bytes for projectId. */ @java.lang.Override @@ -163,7 +163,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5125 + * google/container/v1/cluster_service.proto;l=5241 * @return The zone. */ @java.lang.Override @@ -193,7 +193,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5125 + * google/container/v1/cluster_service.proto;l=5241 * @return The bytes for zone. */ @java.lang.Override @@ -226,7 +226,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5129 + * google/container/v1/cluster_service.proto;l=5245 * @return The clusterId. */ @java.lang.Override @@ -254,7 +254,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5129 + * google/container/v1/cluster_service.proto;l=5245 * @return The bytes for clusterId. */ @java.lang.Override @@ -1013,7 +1013,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5119 + * google/container/v1/cluster_service.proto;l=5235 * @return The projectId. */ @java.lang.Deprecated @@ -1041,7 +1041,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5119 + * google/container/v1/cluster_service.proto;l=5235 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1069,7 +1069,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5119 + * google/container/v1/cluster_service.proto;l=5235 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5119 + * google/container/v1/cluster_service.proto;l=5235 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1119,7 +1119,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5119 + * google/container/v1/cluster_service.proto;l=5235 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1150,7 +1150,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5125 + * google/container/v1/cluster_service.proto;l=5241 * @return The zone. */ @java.lang.Deprecated @@ -1179,7 +1179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5125 + * google/container/v1/cluster_service.proto;l=5241 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1208,7 +1208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5125 + * google/container/v1/cluster_service.proto;l=5241 * @param value The zone to set. * @return This builder for chaining. */ @@ -1236,7 +1236,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5125 + * google/container/v1/cluster_service.proto;l=5241 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1260,7 +1260,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5125 + * google/container/v1/cluster_service.proto;l=5241 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1289,7 +1289,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5129 + * google/container/v1/cluster_service.proto;l=5245 * @return The clusterId. */ @java.lang.Deprecated @@ -1316,7 +1316,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5129 + * google/container/v1/cluster_service.proto;l=5245 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1343,7 +1343,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5129 + * google/container/v1/cluster_service.proto;l=5245 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1369,7 +1369,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5129 + * google/container/v1/cluster_service.proto;l=5245 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1391,7 +1391,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5129 + * google/container/v1/cluster_service.proto;l=5245 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java index 2cad3ba22ad8..f20535ad42a8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5119 + * google/container/v1/cluster_service.proto;l=5235 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5119 + * google/container/v1/cluster_service.proto;l=5235 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5125 + * google/container/v1/cluster_service.proto;l=5241 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5125 + * google/container/v1/cluster_service.proto;l=5241 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5129 + * google/container/v1/cluster_service.proto;l=5245 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5129 + * google/container/v1/cluster_service.proto;l=5245 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java index 0dbde4f9661f..b19e5d5d78c1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5154 + * google/container/v1/cluster_service.proto;l=5270 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5154 + * google/container/v1/cluster_service.proto;l=5270 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5160 + * google/container/v1/cluster_service.proto;l=5276 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5160 + * google/container/v1/cluster_service.proto;l=5276 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5164 + * google/container/v1/cluster_service.proto;l=5280 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5164 + * google/container/v1/cluster_service.proto;l=5280 * @return The bytes for clusterId. */ @java.lang.Override @@ -782,7 +782,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5154 + * google/container/v1/cluster_service.proto;l=5270 * @return The projectId. */ @java.lang.Deprecated @@ -810,7 +810,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5154 + * google/container/v1/cluster_service.proto;l=5270 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -838,7 +838,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5154 + * google/container/v1/cluster_service.proto;l=5270 * @param value The projectId to set. * @return This builder for chaining. */ @@ -865,7 +865,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5154 + * google/container/v1/cluster_service.proto;l=5270 * @return This builder for chaining. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5154 + * google/container/v1/cluster_service.proto;l=5270 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -919,7 +919,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5160 + * google/container/v1/cluster_service.proto;l=5276 * @return The zone. */ @java.lang.Deprecated @@ -948,7 +948,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5160 + * google/container/v1/cluster_service.proto;l=5276 * @return The bytes for zone. */ @java.lang.Deprecated @@ -977,7 +977,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5160 + * google/container/v1/cluster_service.proto;l=5276 * @param value The zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5160 + * google/container/v1/cluster_service.proto;l=5276 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1029,7 +1029,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5160 + * google/container/v1/cluster_service.proto;l=5276 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1058,7 +1058,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5164 + * google/container/v1/cluster_service.proto;l=5280 * @return The clusterId. */ @java.lang.Deprecated @@ -1085,7 +1085,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5164 + * google/container/v1/cluster_service.proto;l=5280 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1112,7 +1112,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5164 + * google/container/v1/cluster_service.proto;l=5280 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1138,7 +1138,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5164 + * google/container/v1/cluster_service.proto;l=5280 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1160,7 +1160,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5164 + * google/container/v1/cluster_service.proto;l=5280 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java index f7b76df38083..1c2f89590046 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5154 + * google/container/v1/cluster_service.proto;l=5270 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5154 + * google/container/v1/cluster_service.proto;l=5270 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5160 + * google/container/v1/cluster_service.proto;l=5276 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5160 + * google/container/v1/cluster_service.proto;l=5276 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5164 + * google/container/v1/cluster_service.proto;l=5280 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5164 + * google/container/v1/cluster_service.proto;l=5280 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java index 0be7420fc4d0..f35ea478115d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3966 + * google/container/v1/cluster_service.proto;l=4055 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3966 + * google/container/v1/cluster_service.proto;l=4055 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4061 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4061 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3976 + * google/container/v1/cluster_service.proto;l=4065 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3976 + * google/container/v1/cluster_service.proto;l=4065 * @return The bytes for clusterId. */ @java.lang.Override @@ -870,7 +870,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3966 + * google/container/v1/cluster_service.proto;l=4055 * @return The projectId. */ @java.lang.Deprecated @@ -898,7 +898,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3966 + * google/container/v1/cluster_service.proto;l=4055 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3966 + * google/container/v1/cluster_service.proto;l=4055 * @param value The projectId to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3966 + * google/container/v1/cluster_service.proto;l=4055 * @return This builder for chaining. */ @java.lang.Deprecated @@ -976,7 +976,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3966 + * google/container/v1/cluster_service.proto;l=4055 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1007,7 +1007,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4061 * @return The zone. */ @java.lang.Deprecated @@ -1036,7 +1036,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4061 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1065,7 +1065,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4061 * @param value The zone to set. * @return This builder for chaining. */ @@ -1093,7 +1093,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4061 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4061 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1146,7 +1146,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3976 + * google/container/v1/cluster_service.proto;l=4065 * @return The clusterId. */ @java.lang.Deprecated @@ -1173,7 +1173,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3976 + * google/container/v1/cluster_service.proto;l=4065 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1200,7 +1200,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3976 + * google/container/v1/cluster_service.proto;l=4065 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1226,7 +1226,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3976 + * google/container/v1/cluster_service.proto;l=4065 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1248,7 +1248,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3976 + * google/container/v1/cluster_service.proto;l=4065 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java index a3cde5175f3e..dff9b214c82d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3966 + * google/container/v1/cluster_service.proto;l=4055 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3966 + * google/container/v1/cluster_service.proto;l=4055 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4061 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3972 + * google/container/v1/cluster_service.proto;l=4061 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3976 + * google/container/v1/cluster_service.proto;l=4065 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3976 + * google/container/v1/cluster_service.proto;l=4065 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java index 0dffe45b6de2..9c0637166a4a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3870 + * google/container/v1/cluster_service.proto;l=3959 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3870 + * google/container/v1/cluster_service.proto;l=3959 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3876 + * google/container/v1/cluster_service.proto;l=3965 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3876 + * google/container/v1/cluster_service.proto;l=3965 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3880 + * google/container/v1/cluster_service.proto;l=3969 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3880 + * google/container/v1/cluster_service.proto;l=3969 * @return The bytes for clusterId. */ @java.lang.Override @@ -838,7 +838,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3870 + * google/container/v1/cluster_service.proto;l=3959 * @return The projectId. */ @java.lang.Deprecated @@ -866,7 +866,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3870 + * google/container/v1/cluster_service.proto;l=3959 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -894,7 +894,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3870 + * google/container/v1/cluster_service.proto;l=3959 * @param value The projectId to set. * @return This builder for chaining. */ @@ -921,7 +921,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3870 + * google/container/v1/cluster_service.proto;l=3959 * @return This builder for chaining. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3870 + * google/container/v1/cluster_service.proto;l=3959 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -975,7 +975,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3876 + * google/container/v1/cluster_service.proto;l=3965 * @return The zone. */ @java.lang.Deprecated @@ -1004,7 +1004,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3876 + * google/container/v1/cluster_service.proto;l=3965 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1033,7 +1033,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3876 + * google/container/v1/cluster_service.proto;l=3965 * @param value The zone to set. * @return This builder for chaining. */ @@ -1061,7 +1061,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3876 + * google/container/v1/cluster_service.proto;l=3965 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1085,7 +1085,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3876 + * google/container/v1/cluster_service.proto;l=3965 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1114,7 +1114,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3880 + * google/container/v1/cluster_service.proto;l=3969 * @return The clusterId. */ @java.lang.Deprecated @@ -1141,7 +1141,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3880 + * google/container/v1/cluster_service.proto;l=3969 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1168,7 +1168,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3880 + * google/container/v1/cluster_service.proto;l=3969 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1194,7 +1194,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3880 + * google/container/v1/cluster_service.proto;l=3969 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1216,7 +1216,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3880 + * google/container/v1/cluster_service.proto;l=3969 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java index 0fd8c83995ca..18973ba6d2da 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3870 + * google/container/v1/cluster_service.proto;l=3959 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3870 + * google/container/v1/cluster_service.proto;l=3959 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3876 + * google/container/v1/cluster_service.proto;l=3965 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3876 + * google/container/v1/cluster_service.proto;l=3965 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3880 + * google/container/v1/cluster_service.proto;l=3969 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3880 + * google/container/v1/cluster_service.proto;l=3969 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java index f73f75b13902..9104b3a30336 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -274,7 +274,7 @@ private Action(int value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4049 + * google/container/v1/cluster_service.proto;l=4138 * @return The projectId. */ @java.lang.Override @@ -303,7 +303,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4049 + * google/container/v1/cluster_service.proto;l=4138 * @return The bytes for projectId. */ @java.lang.Override @@ -338,7 +338,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4055 + * google/container/v1/cluster_service.proto;l=4144 * @return The zone. */ @java.lang.Override @@ -368,7 +368,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4055 + * google/container/v1/cluster_service.proto;l=4144 * @return The bytes for zone. */ @java.lang.Override @@ -401,7 +401,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 + * google/container/v1/cluster_service.proto;l=4148 * @return The clusterId. */ @java.lang.Override @@ -429,7 +429,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 + * google/container/v1/cluster_service.proto;l=4148 * @return The bytes for clusterId. */ @java.lang.Override @@ -1089,7 +1089,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4049 + * google/container/v1/cluster_service.proto;l=4138 * @return The projectId. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4049 + * google/container/v1/cluster_service.proto;l=4138 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1145,7 +1145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4049 + * google/container/v1/cluster_service.proto;l=4138 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1172,7 +1172,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4049 + * google/container/v1/cluster_service.proto;l=4138 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1195,7 +1195,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4049 + * google/container/v1/cluster_service.proto;l=4138 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1226,7 +1226,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4055 + * google/container/v1/cluster_service.proto;l=4144 * @return The zone. */ @java.lang.Deprecated @@ -1255,7 +1255,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4055 + * google/container/v1/cluster_service.proto;l=4144 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1284,7 +1284,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4055 + * google/container/v1/cluster_service.proto;l=4144 * @param value The zone to set. * @return This builder for chaining. */ @@ -1312,7 +1312,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4055 + * google/container/v1/cluster_service.proto;l=4144 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1336,7 +1336,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4055 + * google/container/v1/cluster_service.proto;l=4144 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1365,7 +1365,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 + * google/container/v1/cluster_service.proto;l=4148 * @return The clusterId. */ @java.lang.Deprecated @@ -1392,7 +1392,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 + * google/container/v1/cluster_service.proto;l=4148 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1419,7 +1419,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 + * google/container/v1/cluster_service.proto;l=4148 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1445,7 +1445,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 + * google/container/v1/cluster_service.proto;l=4148 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1467,7 +1467,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 + * google/container/v1/cluster_service.proto;l=4148 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java index c813201287d2..f6692825aa7a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4049 + * google/container/v1/cluster_service.proto;l=4138 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4049 + * google/container/v1/cluster_service.proto;l=4138 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4055 + * google/container/v1/cluster_service.proto;l=4144 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4055 + * google/container/v1/cluster_service.proto;l=4144 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 + * google/container/v1/cluster_service.proto;l=4148 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 + * google/container/v1/cluster_service.proto;l=4148 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java index 23d1d2c0bb4b..47de452f028c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3905 + * google/container/v1/cluster_service.proto;l=3994 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3905 + * google/container/v1/cluster_service.proto;l=3994 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=4000 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=4000 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=4004 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=4004 * @return The bytes for clusterId. */ @java.lang.Override @@ -838,7 +838,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3905 + * google/container/v1/cluster_service.proto;l=3994 * @return The projectId. */ @java.lang.Deprecated @@ -866,7 +866,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3905 + * google/container/v1/cluster_service.proto;l=3994 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -894,7 +894,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3905 + * google/container/v1/cluster_service.proto;l=3994 * @param value The projectId to set. * @return This builder for chaining. */ @@ -921,7 +921,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3905 + * google/container/v1/cluster_service.proto;l=3994 * @return This builder for chaining. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3905 + * google/container/v1/cluster_service.proto;l=3994 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -975,7 +975,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=4000 * @return The zone. */ @java.lang.Deprecated @@ -1004,7 +1004,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=4000 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1033,7 +1033,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=4000 * @param value The zone to set. * @return This builder for chaining. */ @@ -1061,7 +1061,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=4000 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1085,7 +1085,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=4000 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1114,7 +1114,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=4004 * @return The clusterId. */ @java.lang.Deprecated @@ -1141,7 +1141,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=4004 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1168,7 +1168,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=4004 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1194,7 +1194,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=4004 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1216,7 +1216,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=4004 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java index 3097b3497acc..874fbf435800 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3905 + * google/container/v1/cluster_service.proto;l=3994 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3905 + * google/container/v1/cluster_service.proto;l=3994 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=4000 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3911 + * google/container/v1/cluster_service.proto;l=4000 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=4004 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3915 + * google/container/v1/cluster_service.proto;l=4004 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java index d4bd52437347..106223f7e87f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5317 + * google/container/v1/cluster_service.proto;l=5433 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5317 + * google/container/v1/cluster_service.proto;l=5433 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5323 + * google/container/v1/cluster_service.proto;l=5439 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5323 + * google/container/v1/cluster_service.proto;l=5439 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5327 + * google/container/v1/cluster_service.proto;l=5443 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5327 + * google/container/v1/cluster_service.proto;l=5443 * @return The bytes for clusterId. */ @java.lang.Override @@ -844,7 +844,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5317 + * google/container/v1/cluster_service.proto;l=5433 * @return The projectId. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5317 + * google/container/v1/cluster_service.proto;l=5433 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -900,7 +900,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5317 + * google/container/v1/cluster_service.proto;l=5433 * @param value The projectId to set. * @return This builder for chaining. */ @@ -927,7 +927,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5317 + * google/container/v1/cluster_service.proto;l=5433 * @return This builder for chaining. */ @java.lang.Deprecated @@ -950,7 +950,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5317 + * google/container/v1/cluster_service.proto;l=5433 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -981,7 +981,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5323 + * google/container/v1/cluster_service.proto;l=5439 * @return The zone. */ @java.lang.Deprecated @@ -1010,7 +1010,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5323 + * google/container/v1/cluster_service.proto;l=5439 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1039,7 +1039,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5323 + * google/container/v1/cluster_service.proto;l=5439 * @param value The zone to set. * @return This builder for chaining. */ @@ -1067,7 +1067,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5323 + * google/container/v1/cluster_service.proto;l=5439 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1091,7 +1091,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5323 + * google/container/v1/cluster_service.proto;l=5439 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1120,7 +1120,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5327 + * google/container/v1/cluster_service.proto;l=5443 * @return The clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5327 + * google/container/v1/cluster_service.proto;l=5443 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1174,7 +1174,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5327 + * google/container/v1/cluster_service.proto;l=5443 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1200,7 +1200,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5327 + * google/container/v1/cluster_service.proto;l=5443 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1222,7 +1222,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5327 + * google/container/v1/cluster_service.proto;l=5443 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java index dc919f383ed2..e9aa92db1291 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5317 + * google/container/v1/cluster_service.proto;l=5433 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5317 + * google/container/v1/cluster_service.proto;l=5433 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5323 + * google/container/v1/cluster_service.proto;l=5439 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5323 + * google/container/v1/cluster_service.proto;l=5439 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5327 + * google/container/v1/cluster_service.proto;l=5443 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5327 + * google/container/v1/cluster_service.proto;l=5443 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java index ed79cf5bf9f4..1c682d795cc1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3840 + * google/container/v1/cluster_service.proto;l=3929 * @return The projectId. */ @java.lang.Override @@ -115,7 +115,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3840 + * google/container/v1/cluster_service.proto;l=3929 * @return The bytes for projectId. */ @java.lang.Override @@ -150,7 +150,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3846 + * google/container/v1/cluster_service.proto;l=3935 * @return The zone. */ @java.lang.Override @@ -180,7 +180,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3846 + * google/container/v1/cluster_service.proto;l=3935 * @return The bytes for zone. */ @java.lang.Override @@ -213,7 +213,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3850 + * google/container/v1/cluster_service.proto;l=3939 * @return The clusterId. */ @java.lang.Override @@ -241,7 +241,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3850 + * google/container/v1/cluster_service.proto;l=3939 * @return The bytes for clusterId. */ @java.lang.Override @@ -274,7 +274,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3854 + * google/container/v1/cluster_service.proto;l=3943 * @return The nodePoolId. */ @java.lang.Override @@ -302,7 +302,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3854 + * google/container/v1/cluster_service.proto;l=3943 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -933,7 +933,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3840 + * google/container/v1/cluster_service.proto;l=3929 * @return The projectId. */ @java.lang.Deprecated @@ -961,7 +961,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3840 + * google/container/v1/cluster_service.proto;l=3929 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -989,7 +989,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3840 + * google/container/v1/cluster_service.proto;l=3929 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1016,7 +1016,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3840 + * google/container/v1/cluster_service.proto;l=3929 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1039,7 +1039,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3840 + * google/container/v1/cluster_service.proto;l=3929 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1070,7 +1070,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3846 + * google/container/v1/cluster_service.proto;l=3935 * @return The zone. */ @java.lang.Deprecated @@ -1099,7 +1099,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3846 + * google/container/v1/cluster_service.proto;l=3935 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1128,7 +1128,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3846 + * google/container/v1/cluster_service.proto;l=3935 * @param value The zone to set. * @return This builder for chaining. */ @@ -1156,7 +1156,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3846 + * google/container/v1/cluster_service.proto;l=3935 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1180,7 +1180,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3846 + * google/container/v1/cluster_service.proto;l=3935 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1209,7 +1209,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3850 + * google/container/v1/cluster_service.proto;l=3939 * @return The clusterId. */ @java.lang.Deprecated @@ -1236,7 +1236,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3850 + * google/container/v1/cluster_service.proto;l=3939 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1263,7 +1263,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3850 + * google/container/v1/cluster_service.proto;l=3939 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1289,7 +1289,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3850 + * google/container/v1/cluster_service.proto;l=3939 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1311,7 +1311,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3850 + * google/container/v1/cluster_service.proto;l=3939 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1340,7 +1340,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3854 + * google/container/v1/cluster_service.proto;l=3943 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1367,7 +1367,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3854 + * google/container/v1/cluster_service.proto;l=3943 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1394,7 +1394,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3854 + * google/container/v1/cluster_service.proto;l=3943 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1420,7 +1420,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3854 + * google/container/v1/cluster_service.proto;l=3943 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1442,7 +1442,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3854 + * google/container/v1/cluster_service.proto;l=3943 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java index 3fcec39f4074..0dffdcb82a7f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3840 + * google/container/v1/cluster_service.proto;l=3929 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3840 + * google/container/v1/cluster_service.proto;l=3929 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3846 + * google/container/v1/cluster_service.proto;l=3935 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3846 + * google/container/v1/cluster_service.proto;l=3935 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3850 + * google/container/v1/cluster_service.proto;l=3939 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3850 + * google/container/v1/cluster_service.proto;l=3939 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3854 + * google/container/v1/cluster_service.proto;l=3943 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3854 + * google/container/v1/cluster_service.proto;l=3943 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java index 8ff5e6629a2a..4bc45323dc2b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4842 + * google/container/v1/cluster_service.proto;l=4958 * @return The projectId. */ @java.lang.Override @@ -116,7 +116,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4842 + * google/container/v1/cluster_service.proto;l=4958 * @return The bytes for projectId. */ @java.lang.Override @@ -151,7 +151,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4848 + * google/container/v1/cluster_service.proto;l=4964 * @return The zone. */ @java.lang.Override @@ -181,7 +181,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4848 + * google/container/v1/cluster_service.proto;l=4964 * @return The bytes for zone. */ @java.lang.Override @@ -214,7 +214,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4852 + * google/container/v1/cluster_service.proto;l=4968 * @return The clusterId. */ @java.lang.Override @@ -242,7 +242,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4852 + * google/container/v1/cluster_service.proto;l=4968 * @return The bytes for clusterId. */ @java.lang.Override @@ -275,7 +275,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4856 + * google/container/v1/cluster_service.proto;l=4972 * @return The nodePoolId. */ @java.lang.Override @@ -303,7 +303,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4856 + * google/container/v1/cluster_service.proto;l=4972 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -933,7 +933,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4842 + * google/container/v1/cluster_service.proto;l=4958 * @return The projectId. */ @java.lang.Deprecated @@ -961,7 +961,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4842 + * google/container/v1/cluster_service.proto;l=4958 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -989,7 +989,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4842 + * google/container/v1/cluster_service.proto;l=4958 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1016,7 +1016,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4842 + * google/container/v1/cluster_service.proto;l=4958 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1039,7 +1039,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4842 + * google/container/v1/cluster_service.proto;l=4958 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1070,7 +1070,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4848 + * google/container/v1/cluster_service.proto;l=4964 * @return The zone. */ @java.lang.Deprecated @@ -1099,7 +1099,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4848 + * google/container/v1/cluster_service.proto;l=4964 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1128,7 +1128,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4848 + * google/container/v1/cluster_service.proto;l=4964 * @param value The zone to set. * @return This builder for chaining. */ @@ -1156,7 +1156,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4848 + * google/container/v1/cluster_service.proto;l=4964 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1180,7 +1180,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4848 + * google/container/v1/cluster_service.proto;l=4964 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1209,7 +1209,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4852 + * google/container/v1/cluster_service.proto;l=4968 * @return The clusterId. */ @java.lang.Deprecated @@ -1236,7 +1236,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4852 + * google/container/v1/cluster_service.proto;l=4968 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1263,7 +1263,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4852 + * google/container/v1/cluster_service.proto;l=4968 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1289,7 +1289,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4852 + * google/container/v1/cluster_service.proto;l=4968 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1311,7 +1311,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4852 + * google/container/v1/cluster_service.proto;l=4968 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1340,7 +1340,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4856 + * google/container/v1/cluster_service.proto;l=4972 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1367,7 +1367,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4856 + * google/container/v1/cluster_service.proto;l=4972 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1394,7 +1394,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4856 + * google/container/v1/cluster_service.proto;l=4972 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1420,7 +1420,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4856 + * google/container/v1/cluster_service.proto;l=4972 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1442,7 +1442,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4856 + * google/container/v1/cluster_service.proto;l=4972 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java index 4298975bdd9c..f7bbb502c811 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4842 + * google/container/v1/cluster_service.proto;l=4958 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4842 + * google/container/v1/cluster_service.proto;l=4958 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4848 + * google/container/v1/cluster_service.proto;l=4964 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4848 + * google/container/v1/cluster_service.proto;l=4964 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4852 + * google/container/v1/cluster_service.proto;l=4968 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4852 + * google/container/v1/cluster_service.proto;l=4968 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4856 + * google/container/v1/cluster_service.proto;l=4972 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4856 + * google/container/v1/cluster_service.proto;l=4972 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java index 738fe685c950..f682f038e215 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4872 + * google/container/v1/cluster_service.proto;l=4988 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4872 + * google/container/v1/cluster_service.proto;l=4988 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4878 + * google/container/v1/cluster_service.proto;l=4994 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4878 + * google/container/v1/cluster_service.proto;l=4994 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4882 + * google/container/v1/cluster_service.proto;l=4998 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4882 + * google/container/v1/cluster_service.proto;l=4998 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4886 + * google/container/v1/cluster_service.proto;l=5002 * @return The nodePoolId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4886 + * google/container/v1/cluster_service.proto;l=5002 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -868,7 +868,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4872 + * google/container/v1/cluster_service.proto;l=4988 * @return The projectId. */ @java.lang.Deprecated @@ -896,7 +896,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4872 + * google/container/v1/cluster_service.proto;l=4988 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -924,7 +924,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4872 + * google/container/v1/cluster_service.proto;l=4988 * @param value The projectId to set. * @return This builder for chaining. */ @@ -951,7 +951,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4872 + * google/container/v1/cluster_service.proto;l=4988 * @return This builder for chaining. */ @java.lang.Deprecated @@ -974,7 +974,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4872 + * google/container/v1/cluster_service.proto;l=4988 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4878 + * google/container/v1/cluster_service.proto;l=4994 * @return The zone. */ @java.lang.Deprecated @@ -1034,7 +1034,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4878 + * google/container/v1/cluster_service.proto;l=4994 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1063,7 +1063,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4878 + * google/container/v1/cluster_service.proto;l=4994 * @param value The zone to set. * @return This builder for chaining. */ @@ -1091,7 +1091,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4878 + * google/container/v1/cluster_service.proto;l=4994 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1115,7 +1115,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4878 + * google/container/v1/cluster_service.proto;l=4994 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1144,7 +1144,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4882 + * google/container/v1/cluster_service.proto;l=4998 * @return The clusterId. */ @java.lang.Deprecated @@ -1171,7 +1171,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4882 + * google/container/v1/cluster_service.proto;l=4998 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1198,7 +1198,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4882 + * google/container/v1/cluster_service.proto;l=4998 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1224,7 +1224,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4882 + * google/container/v1/cluster_service.proto;l=4998 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1246,7 +1246,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4882 + * google/container/v1/cluster_service.proto;l=4998 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1275,7 +1275,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4886 + * google/container/v1/cluster_service.proto;l=5002 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1302,7 +1302,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4886 + * google/container/v1/cluster_service.proto;l=5002 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1329,7 +1329,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4886 + * google/container/v1/cluster_service.proto;l=5002 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1355,7 +1355,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4886 + * google/container/v1/cluster_service.proto;l=5002 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1377,7 +1377,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4886 + * google/container/v1/cluster_service.proto;l=5002 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java index d7a376de9030..c70b3b804ce3 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4872 + * google/container/v1/cluster_service.proto;l=4988 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4872 + * google/container/v1/cluster_service.proto;l=4988 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4878 + * google/container/v1/cluster_service.proto;l=4994 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4878 + * google/container/v1/cluster_service.proto;l=4994 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4882 + * google/container/v1/cluster_service.proto;l=4998 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4882 + * google/container/v1/cluster_service.proto;l=4998 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4886 + * google/container/v1/cluster_service.proto;l=5002 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4886 + * google/container/v1/cluster_service.proto;l=5002 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java index 4a6ef32b5b66..0ac3f1b3f57d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5180 + * google/container/v1/cluster_service.proto;l=5296 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5180 + * google/container/v1/cluster_service.proto;l=5296 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5186 + * google/container/v1/cluster_service.proto;l=5302 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5186 + * google/container/v1/cluster_service.proto;l=5302 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5190 + * google/container/v1/cluster_service.proto;l=5306 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5190 + * google/container/v1/cluster_service.proto;l=5306 * @return The bytes for clusterId. */ @java.lang.Override @@ -782,7 +782,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5180 + * google/container/v1/cluster_service.proto;l=5296 * @return The projectId. */ @java.lang.Deprecated @@ -810,7 +810,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5180 + * google/container/v1/cluster_service.proto;l=5296 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -838,7 +838,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5180 + * google/container/v1/cluster_service.proto;l=5296 * @param value The projectId to set. * @return This builder for chaining. */ @@ -865,7 +865,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5180 + * google/container/v1/cluster_service.proto;l=5296 * @return This builder for chaining. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5180 + * google/container/v1/cluster_service.proto;l=5296 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -919,7 +919,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5186 + * google/container/v1/cluster_service.proto;l=5302 * @return The zone. */ @java.lang.Deprecated @@ -948,7 +948,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5186 + * google/container/v1/cluster_service.proto;l=5302 * @return The bytes for zone. */ @java.lang.Deprecated @@ -977,7 +977,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5186 + * google/container/v1/cluster_service.proto;l=5302 * @param value The zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5186 + * google/container/v1/cluster_service.proto;l=5302 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1029,7 +1029,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5186 + * google/container/v1/cluster_service.proto;l=5302 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1058,7 +1058,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5190 + * google/container/v1/cluster_service.proto;l=5306 * @return The clusterId. */ @java.lang.Deprecated @@ -1085,7 +1085,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5190 + * google/container/v1/cluster_service.proto;l=5306 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1112,7 +1112,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5190 + * google/container/v1/cluster_service.proto;l=5306 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1138,7 +1138,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5190 + * google/container/v1/cluster_service.proto;l=5306 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1160,7 +1160,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5190 + * google/container/v1/cluster_service.proto;l=5306 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java index 3545edf54187..ca02fa4c5db2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5180 + * google/container/v1/cluster_service.proto;l=5296 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5180 + * google/container/v1/cluster_service.proto;l=5296 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5186 + * google/container/v1/cluster_service.proto;l=5302 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=5186 + * google/container/v1/cluster_service.proto;l=5302 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5190 + * google/container/v1/cluster_service.proto;l=5306 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=5190 + * google/container/v1/cluster_service.proto;l=5306 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java index d657c59dda25..cc76027bc0f8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java @@ -386,7 +386,7 @@ private Code(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=5401 + * google/container/v1/cluster_service.proto;l=5517 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -406,7 +406,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=5401 + * google/container/v1/cluster_service.proto;l=5517 * @return The code. */ @java.lang.Override @@ -905,7 +905,7 @@ public Builder mergeFrom( * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=5401 + * google/container/v1/cluster_service.proto;l=5517 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -925,7 +925,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=5401 + * google/container/v1/cluster_service.proto;l=5517 * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -948,7 +948,7 @@ public Builder setCodeValue(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=5401 + * google/container/v1/cluster_service.proto;l=5517 * @return The code. */ @java.lang.Override @@ -970,7 +970,7 @@ public com.google.container.v1.StatusCondition.Code getCode() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=5401 + * google/container/v1/cluster_service.proto;l=5517 * @param value The code to set. * @return This builder for chaining. */ @@ -996,7 +996,7 @@ public Builder setCode(com.google.container.v1.StatusCondition.Code value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=5401 + * google/container/v1/cluster_service.proto;l=5517 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java index 512eacf332f1..8f93ae7b5ed0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java @@ -35,7 +35,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=5401 + * google/container/v1/cluster_service.proto;l=5517 * @return The enum numeric value on the wire for code. */ @java.lang.Deprecated @@ -52,7 +52,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=5401 + * google/container/v1/cluster_service.proto;l=5517 * @return The code. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java index 1a3609702856..b4375fa31fe0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3652 + * google/container/v1/cluster_service.proto;l=3733 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3652 + * google/container/v1/cluster_service.proto;l=3733 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3658 + * google/container/v1/cluster_service.proto;l=3739 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3658 + * google/container/v1/cluster_service.proto;l=3739 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3662 + * google/container/v1/cluster_service.proto;l=3743 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3662 + * google/container/v1/cluster_service.proto;l=3743 * @return The bytes for clusterId. */ @java.lang.Override @@ -835,7 +835,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3652 + * google/container/v1/cluster_service.proto;l=3733 * @return The projectId. */ @java.lang.Deprecated @@ -863,7 +863,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3652 + * google/container/v1/cluster_service.proto;l=3733 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -891,7 +891,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3652 + * google/container/v1/cluster_service.proto;l=3733 * @param value The projectId to set. * @return This builder for chaining. */ @@ -918,7 +918,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3652 + * google/container/v1/cluster_service.proto;l=3733 * @return This builder for chaining. */ @java.lang.Deprecated @@ -941,7 +941,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3652 + * google/container/v1/cluster_service.proto;l=3733 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -972,7 +972,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3658 + * google/container/v1/cluster_service.proto;l=3739 * @return The zone. */ @java.lang.Deprecated @@ -1001,7 +1001,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3658 + * google/container/v1/cluster_service.proto;l=3739 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1030,7 +1030,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3658 + * google/container/v1/cluster_service.proto;l=3739 * @param value The zone to set. * @return This builder for chaining. */ @@ -1058,7 +1058,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3658 + * google/container/v1/cluster_service.proto;l=3739 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1082,7 +1082,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3658 + * google/container/v1/cluster_service.proto;l=3739 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1111,7 +1111,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3662 + * google/container/v1/cluster_service.proto;l=3743 * @return The clusterId. */ @java.lang.Deprecated @@ -1138,7 +1138,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3662 + * google/container/v1/cluster_service.proto;l=3743 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1165,7 +1165,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3662 + * google/container/v1/cluster_service.proto;l=3743 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1191,7 +1191,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3662 + * google/container/v1/cluster_service.proto;l=3743 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1213,7 +1213,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3662 + * google/container/v1/cluster_service.proto;l=3743 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java index 8b7a3e6913e3..c39c7501e257 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3652 + * google/container/v1/cluster_service.proto;l=3733 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3652 + * google/container/v1/cluster_service.proto;l=3733 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3658 + * google/container/v1/cluster_service.proto;l=3739 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3658 + * google/container/v1/cluster_service.proto;l=3739 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3662 + * google/container/v1/cluster_service.proto;l=3743 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3662 + * google/container/v1/cluster_service.proto;l=3743 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java index e6b86ce056a5..9a8cd34a58b7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3997 + * google/container/v1/cluster_service.proto;l=4086 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3997 + * google/container/v1/cluster_service.proto;l=4086 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4003 + * google/container/v1/cluster_service.proto;l=4092 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4003 + * google/container/v1/cluster_service.proto;l=4092 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4007 + * google/container/v1/cluster_service.proto;l=4096 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4007 + * google/container/v1/cluster_service.proto;l=4096 * @return The bytes for clusterId. */ @java.lang.Override @@ -835,7 +835,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3997 + * google/container/v1/cluster_service.proto;l=4086 * @return The projectId. */ @java.lang.Deprecated @@ -863,7 +863,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3997 + * google/container/v1/cluster_service.proto;l=4086 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -891,7 +891,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3997 + * google/container/v1/cluster_service.proto;l=4086 * @param value The projectId to set. * @return This builder for chaining. */ @@ -918,7 +918,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3997 + * google/container/v1/cluster_service.proto;l=4086 * @return This builder for chaining. */ @java.lang.Deprecated @@ -941,7 +941,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3997 + * google/container/v1/cluster_service.proto;l=4086 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -972,7 +972,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4003 + * google/container/v1/cluster_service.proto;l=4092 * @return The zone. */ @java.lang.Deprecated @@ -1001,7 +1001,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4003 + * google/container/v1/cluster_service.proto;l=4092 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1030,7 +1030,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4003 + * google/container/v1/cluster_service.proto;l=4092 * @param value The zone to set. * @return This builder for chaining. */ @@ -1058,7 +1058,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4003 + * google/container/v1/cluster_service.proto;l=4092 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1082,7 +1082,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4003 + * google/container/v1/cluster_service.proto;l=4092 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1111,7 +1111,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4007 + * google/container/v1/cluster_service.proto;l=4096 * @return The clusterId. */ @java.lang.Deprecated @@ -1138,7 +1138,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4007 + * google/container/v1/cluster_service.proto;l=4096 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1165,7 +1165,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4007 + * google/container/v1/cluster_service.proto;l=4096 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1191,7 +1191,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4007 + * google/container/v1/cluster_service.proto;l=4096 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1213,7 +1213,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4007 + * google/container/v1/cluster_service.proto;l=4096 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java index ab4223cd9dba..2f661baaffe9 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3997 + * google/container/v1/cluster_service.proto;l=4086 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3997 + * google/container/v1/cluster_service.proto;l=4086 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4003 + * google/container/v1/cluster_service.proto;l=4092 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4003 + * google/container/v1/cluster_service.proto;l=4092 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4007 + * google/container/v1/cluster_service.proto;l=4096 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4007 + * google/container/v1/cluster_service.proto;l=4096 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java index bbc3701d8e1a..7735fc4f7445 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -94,7 +94,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3677 + * google/container/v1/cluster_service.proto;l=3758 * @return The projectId. */ @java.lang.Override @@ -123,7 +123,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3677 + * google/container/v1/cluster_service.proto;l=3758 * @return The bytes for projectId. */ @java.lang.Override @@ -158,7 +158,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3683 + * google/container/v1/cluster_service.proto;l=3764 * @return The zone. */ @java.lang.Override @@ -188,7 +188,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3683 + * google/container/v1/cluster_service.proto;l=3764 * @return The bytes for zone. */ @java.lang.Override @@ -221,7 +221,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3687 + * google/container/v1/cluster_service.proto;l=3768 * @return The clusterId. */ @java.lang.Override @@ -249,7 +249,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3687 + * google/container/v1/cluster_service.proto;l=3768 * @return The bytes for clusterId. */ @java.lang.Override @@ -282,7 +282,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3691 + * google/container/v1/cluster_service.proto;l=3772 * @return The nodePoolId. */ @java.lang.Override @@ -310,7 +310,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3691 + * google/container/v1/cluster_service.proto;l=3772 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -529,6 +529,14 @@ public com.google.protobuf.ByteString getNameBytes() { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -548,6 +556,14 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -567,6 +583,14 @@ public int getLocationsCount() { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -587,6 +611,14 @@ public java.lang.String getLocations(int index) { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -3565,7 +3597,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3677 + * google/container/v1/cluster_service.proto;l=3758 * @return The projectId. */ @java.lang.Deprecated @@ -3593,7 +3625,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3677 + * google/container/v1/cluster_service.proto;l=3758 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -3621,7 +3653,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3677 + * google/container/v1/cluster_service.proto;l=3758 * @param value The projectId to set. * @return This builder for chaining. */ @@ -3648,7 +3680,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3677 + * google/container/v1/cluster_service.proto;l=3758 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3671,7 +3703,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3677 + * google/container/v1/cluster_service.proto;l=3758 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -3702,7 +3734,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3683 + * google/container/v1/cluster_service.proto;l=3764 * @return The zone. */ @java.lang.Deprecated @@ -3731,7 +3763,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3683 + * google/container/v1/cluster_service.proto;l=3764 * @return The bytes for zone. */ @java.lang.Deprecated @@ -3760,7 +3792,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3683 + * google/container/v1/cluster_service.proto;l=3764 * @param value The zone to set. * @return This builder for chaining. */ @@ -3788,7 +3820,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3683 + * google/container/v1/cluster_service.proto;l=3764 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3812,7 +3844,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3683 + * google/container/v1/cluster_service.proto;l=3764 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3841,7 +3873,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3687 + * google/container/v1/cluster_service.proto;l=3768 * @return The clusterId. */ @java.lang.Deprecated @@ -3868,7 +3900,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3687 + * google/container/v1/cluster_service.proto;l=3768 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -3895,7 +3927,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3687 + * google/container/v1/cluster_service.proto;l=3768 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -3921,7 +3953,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3687 + * google/container/v1/cluster_service.proto;l=3768 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3943,7 +3975,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3687 + * google/container/v1/cluster_service.proto;l=3768 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -3972,7 +4004,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3691 + * google/container/v1/cluster_service.proto;l=3772 * @return The nodePoolId. */ @java.lang.Deprecated @@ -3999,7 +4031,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3691 + * google/container/v1/cluster_service.proto;l=3772 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -4026,7 +4058,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3691 + * google/container/v1/cluster_service.proto;l=3772 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -4052,7 +4084,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3691 + * google/container/v1/cluster_service.proto;l=3772 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4074,7 +4106,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3691 + * google/container/v1/cluster_service.proto;l=3772 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ @@ -4512,6 +4544,14 @@ private void ensureLocationsIsMutable() { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -4532,6 +4572,14 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -4551,6 +4599,14 @@ public int getLocationsCount() { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -4571,6 +4627,14 @@ public java.lang.String getLocations(int index) { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -4591,6 +4655,14 @@ public com.google.protobuf.ByteString getLocationsBytes(int index) { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -4619,6 +4691,14 @@ public Builder setLocations(int index, java.lang.String value) { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -4646,6 +4726,14 @@ public Builder addLocations(java.lang.String value) { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -4670,6 +4758,14 @@ public Builder addAllLocations(java.lang.Iterable values) { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -4693,6 +4789,14 @@ public Builder clearLocations() { * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java index 446f90bda157..1a77113209b9 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3677 + * google/container/v1/cluster_service.proto;l=3758 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3677 + * google/container/v1/cluster_service.proto;l=3758 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3683 + * google/container/v1/cluster_service.proto;l=3764 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3683 + * google/container/v1/cluster_service.proto;l=3764 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3687 + * google/container/v1/cluster_service.proto;l=3768 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3687 + * google/container/v1/cluster_service.proto;l=3768 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3691 + * google/container/v1/cluster_service.proto;l=3772 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3691 + * google/container/v1/cluster_service.proto;l=3772 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -281,6 +281,14 @@ public interface UpdateNodePoolRequestOrBuilder * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -298,6 +306,14 @@ public interface UpdateNodePoolRequestOrBuilder * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -315,6 +331,14 @@ public interface UpdateNodePoolRequestOrBuilder * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; @@ -333,6 +357,14 @@ public interface UpdateNodePoolRequestOrBuilder * in which the node pool's nodes should be located. Changing the locations * for a node pool will result in nodes being either created or removed from * the node pool, depending on whether locations are being added or removed. + * + * Warning: It is recommended to update node pool locations in a standalone + * API call. Do not combine a location update with changes to other fields + * (such as `tags`, `labels`, `taints`, etc.) in the same request. + * Otherwise, the API performs a structural modification where changes to + * other fields will only apply to newly created nodes and will not be + * applied to existing nodes in the node pool. To ensure all nodes are updated + * consistently, use a separate API call for location changes. * * * repeated string locations = 13; diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java index a105c58990b1..6ee0f254280c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java @@ -23,8 +23,7 @@ * * *
                                    - * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    - * policies.
                                    + * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                      * 
                                    * * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} @@ -282,8 +281,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
                                    -   * policies.
                                    +   * Configuration for the use of Kubernetes Service Accounts in IAM policies.
                                        * 
                                    * * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} diff --git a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index 5bdbce6016f5..ba6730e70c28 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -86,7 +86,7 @@ service ClusterManager { // network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). // // One firewall is added for the cluster. After cluster creation, - // the Kubelet creates routes for each node to allow the containers + // the kubelet creates routes for each node to allow the containers // on that node to communicate with all other instances in the // cluster. // @@ -601,7 +601,7 @@ message LinuxNodeConfig { // It means that an application will wake kswapd in the background to // reclaim pages and wake kcompactd to compact memory so that THP is - // available in the near future. It’s the responsibility of khugepaged to + // available in the near future. It's the responsibility of khugepaged to // then install the THP pages later. TRANSPARENT_HUGEPAGE_DEFRAG_DEFER = 2; @@ -622,6 +622,36 @@ message LinuxNodeConfig { TRANSPARENT_HUGEPAGE_DEFRAG_NEVER = 5; } + // Configuration for kernel module loading on nodes. + message NodeKernelModuleLoading { + // Defines the kernel module loading policy for nodes in the nodepool. + enum Policy { + // Default behavior. GKE selects the image based on node type. + // For CPU and TPU nodes, the image will not allow loading external + // kernel modules. + // For GPU nodes, the image will allow loading any module, whether it + // is signed or not. + POLICY_UNSPECIFIED = 0; + + // Enforced signature verification: Node pools will use a + // Container-Optimized OS image configured to allow loading of + // *Google-signed* external kernel modules. + // Loadpin is enabled but configured to exclude modules, and kernel + // module signature checking is enforced. + ENFORCE_SIGNED_MODULES = 1; + + // Mirrors existing DEFAULT behavior: + // For CPU and TPU nodes, the image will not allow loading external + // kernel modules. + // For GPU nodes, the image will allow loading any module, whether it + // is signed or not. + DO_NOT_ENFORCE_SIGNED_MODULES = 2; + } + + // Set the node module loading policy for nodes in the node pool. + Policy policy = 1; + } + // The Linux kernel parameters to be applied to the nodes and all pods running // on the nodes. // @@ -693,6 +723,12 @@ message LinuxNodeConfig { // for more details. TransparentHugepageDefrag transparent_hugepage_defrag = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for kernel module loading on nodes. + // When enabled, the node pool will be provisioned with a Container-Optimized + // OS image that enforces kernel module signature verification. + NodeKernelModuleLoading node_kernel_module_loading = 13 + [(google.api.field_behavior) = OPTIONAL]; } // Parameters that can be configured on Windows nodes. @@ -756,7 +792,7 @@ message NodeKubeletConfig { // The string must be a sequence of decimal numbers, each with optional // fraction and a unit suffix, such as "300ms". // Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - // The value must be a positive duration. + // The value must be a positive duration between 1ms and 1 second, inclusive. string cpu_cfs_quota_period = 3; // Set the Pod PID limits. See @@ -1140,8 +1176,7 @@ message NodeConfig { // persistent storage on your nodes. // * `https://www.googleapis.com/auth/devstorage.read_only` is required for // communicating with **gcr.io** - // (the [Google Container - // Registry](https://cloud.google.com/container-registry/)). + // (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). // // If unspecified, no scopes are added, unless Cloud Logging or Cloud // Monitoring are enabled, in which case their required scopes will be added. @@ -1496,6 +1531,12 @@ message NodeNetworkConfig { // the node pool is picked based on the IP utilization during node pool // creation and is immutable. string subnetwork = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The network tier configuration for the node pool inherits from + // the cluster-level configuration and remains immutable throughout the node + // pool's lifecycle, including during upgrades. + NetworkTierConfig network_tier_config = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // AdditionalNodeNetworkConfig is the configuration for additional node networks @@ -1643,8 +1684,7 @@ message ContainerdConfig { // domain names (FQDN) to a specific certificate. message CertificateAuthorityDomainConfig { // GCPSecretManagerCertificateConfig configures a secret from - // [Google Secret - // Manager](https://cloud.google.com/secret-manager). + // [Secret Manager](https://cloud.google.com/secret-manager). message GCPSecretManagerCertificateConfig { // Secret URI, in the form // "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". @@ -1677,9 +1717,19 @@ message ContainerdConfig { certificate_authority_domain_config = 2; } + // Defines writable cgroups configuration. + message WritableCgroups { + // Optional. Whether writable cgroups is enabled. + bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // PrivateRegistryAccessConfig is used to configure access configuration // for private container registries. PrivateRegistryAccessConfig private_registry_access_config = 1; + + // Optional. WritableCgroups defines writable cgroups configuration for the + // node pool. + WritableCgroups writable_cgroups = 2 [(google.api.field_behavior) = OPTIONAL]; } // Kubernetes taint is composed of three fields: key, value, and effect. Effect @@ -1728,7 +1778,7 @@ message NodeLabels { map labels = 1; } -// Collection of [GCP +// Collection of [Resource Manager // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). message ResourceLabels { // Map of node label keys and node label values. @@ -1825,13 +1875,14 @@ message AddonsConfig { DnsCacheConfig dns_cache_config = 8; // Configuration for the ConfigConnector add-on, a Kubernetes - // extension to manage hosted GCP services through the Kubernetes API + // extension to manage hosted Google Cloud services through the Kubernetes + // API. ConfigConnectorConfig config_connector_config = 10; // Configuration for the Compute Engine Persistent Disk CSI driver. GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - // Configuration for the GCP Filestore CSI driver. + // Configuration for the Filestore CSI driver. GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; // Configuration for the Backup for GKE agent addon. @@ -2008,9 +2059,9 @@ message GcePersistentDiskCsiDriverConfig { bool enabled = 1; } -// Configuration for the GCP Filestore CSI driver. +// Configuration for the Filestore CSI driver. message GcpFilestoreCsiDriverConfig { - // Whether the GCP Filestore CSI driver is enabled for this cluster. + // Whether the Filestore CSI driver is enabled for this cluster. bool enabled = 1; } @@ -2041,7 +2092,16 @@ message LustreCsiDriverConfig { // If set to true, the Lustre CSI driver will install Lustre kernel modules // using port 6988. - bool enable_legacy_lustre_port = 3; + // This serves as a workaround for a port conflict with the + // gke-metadata-server. This field is required ONLY under the following + // conditions: + // 1. The GKE node version is older than 1.33.2-gke.4655000. + // 2. You're connecting to a Lustre instance that has the + // 'gke-support-enabled' flag. + // Deprecated: This flag is no longer required as of GKE node version + // 1.33.2-gke.4655000, unless you are connecting to a Lustre instance + // that has the `gke-support-enabled` flag. + bool enable_legacy_lustre_port = 3 [deprecated = true]; } // Configuration options for the Ray Operator add-on. @@ -2333,6 +2393,11 @@ message IPAllocationPolicy { // Optional. AutoIpamConfig contains all information related to Auto IPAM AutoIpamConfig auto_ipam_config = 30 [(google.api.field_behavior) = OPTIONAL]; + + // Cluster-level network tier configuration is used to determine the default + // network tier for external IP addresses on cluster resources, such as node + // pools and load balancers. + NetworkTierConfig network_tier_config = 31; } // A Google Kubernetes Engine cluster. @@ -2556,8 +2621,7 @@ message Cluster { // REGULAR channel with its default version. ReleaseChannel release_channel = 41; - // Configuration for the use of Kubernetes Service Accounts in GCP IAM - // policies. + // Configuration for the use of Kubernetes Service Accounts in IAM policies. WorkloadIdentityConfig workload_identity_config = 43; // Configuration for issuance of mTLS keys and certificates to Kubernetes @@ -2725,7 +2789,10 @@ message Cluster { K8sBetaAPIConfig enable_k8s_beta_apis = 143; // GKE Enterprise Configuration. - EnterpriseConfig enterprise_config = 149; + // + // Deprecated: GKE Enterprise features are now available without an Enterprise + // tier. + EnterpriseConfig enterprise_config = 149 [deprecated = true]; // Secret CSI driver configuration. SecretManagerConfig secret_manager_config = 150; @@ -3261,7 +3328,10 @@ message ClusterUpdate { DesiredAdditionalIPRangesConfig desired_additional_ip_ranges_config = 145; // The desired enterprise configuration for the cluster. - DesiredEnterpriseConfig desired_enterprise_config = 147; + // + // Deprecated: GKE Enterprise features are now available without an Enterprise + // tier. + DesiredEnterpriseConfig desired_enterprise_config = 147 [deprecated = true]; // AutoIpamConfig contains all information related to Auto IPAM AutoIpamConfig desired_auto_ipam_config = 148; @@ -3284,6 +3354,9 @@ message ClusterUpdate { // Configuration for GKE auto upgrade. GkeAutoUpgradeConfig gke_auto_upgrade_config = 154; + + // The desired network tier configuration for the cluster. + NetworkTierConfig desired_network_tier_config = 155; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -3322,7 +3395,10 @@ message DesiredAdditionalIPRangesConfig { } // AutoIpamConfig contains all information related to Auto IPAM -message AutoIpamConfig {} +message AutoIpamConfig { + // The flag that enables Auto IPAM on this cluster + optional bool enabled = 1; +} // RangeInfo contains the range name and the range utilization by this cluster. message RangeInfo { @@ -3334,7 +3410,12 @@ message RangeInfo { } // DesiredEnterpriseConfig is a wrapper used for updating enterprise_config. +// +// Deprecated: GKE Enterprise features are now available without an Enterprise +// tier. message DesiredEnterpriseConfig { + option deprecated = true; + // desired_tier specifies the desired tier of the cluster. EnterpriseConfig.ClusterTier desired_tier = 1; } @@ -3719,6 +3800,14 @@ message UpdateNodePoolRequest { // in which the node pool's nodes should be located. Changing the locations // for a node pool will result in nodes being either created or removed from // the node pool, depending on whether locations are being added or removed. + // + // Warning: It is recommended to update node pool locations in a standalone + // API call. Do not combine a location update with changes to other fields + // (such as `tags`, `labels`, `taints`, etc.) in the same request. + // Otherwise, the API performs a structural modification where changes to + // other fields will only apply to newly created nodes and will not be + // applied to existing nodes in the node pool. To ensure all nodes are updated + // consistently, use a separate API call for location changes. repeated string locations = 13; // The desired workload metadata config for the node pool. @@ -4369,10 +4458,23 @@ message BlueGreenSettings { optional google.protobuf.Duration batch_soak_duration = 3; } + // Autoscaled rollout policy utilizes the cluster autoscaler during + // blue-green upgrade to scale both the blue and green pools. + message AutoscaledRolloutPolicy { + // Optional. Time to wait after cordoning the blue pool before draining the + // nodes. Defaults to 3 days. The value can be set between 0 and 7 days, + // inclusive. + google.protobuf.Duration wait_for_drain_duration = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + // The rollout policy controls the general rollout progress of blue-green. oneof rollout_policy { // Standard policy for the blue-green upgrade. StandardRolloutPolicy standard_rollout_policy = 1; + + // Autoscaled policy for cluster autoscaler enabled blue-green upgrade. + AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; } // Time needed after draining entire blue pool. After this period, blue pool @@ -4775,9 +4877,23 @@ message MaintenanceExclusionOptions { NO_MINOR_OR_NODE_UPGRADES = 2; } + // EndTimeBehavior specifies the behavior of the exclusion end time. + enum EndTimeBehavior { + // END_TIME_BEHAVIOR_UNSPECIFIED is the default behavior, which is fixed + // end time. + END_TIME_BEHAVIOR_UNSPECIFIED = 0; + + // UNTIL_END_OF_SUPPORT means the exclusion will be in effect until the end + // of the support of the cluster's current version. + UNTIL_END_OF_SUPPORT = 1; + } + // Scope specifies the upgrade scope which upgrades are blocked by the // exclusion. Scope scope = 1; + + // EndTimeBehavior specifies the behavior of the exclusion end time. + EndTimeBehavior end_time_behavior = 2; } // Represents an arbitrary window of time that recurs. @@ -5774,8 +5890,7 @@ message MaxPodsConstraint { int64 max_pods_per_node = 1; } -// Configuration for the use of Kubernetes Service Accounts in GCP IAM -// policies. +// Configuration for the use of Kubernetes Service Accounts in IAM policies. message WorkloadIdentityConfig { // The workload pool to attach all Kubernetes service accounts to. string workload_pool = 2; @@ -6313,6 +6428,27 @@ message Autopilot { // WorkloadPolicyConfig is the configuration related to GCW workload policy WorkloadPolicyConfig workload_policy_config = 2; + + // PrivilegedAdmissionConfig is the configuration related to privileged + // admission control. + PrivilegedAdmissionConfig privileged_admission_config = 4; +} + +// PrivilegedAdmissionConfig stores the list of authorized allowlist +// paths for the cluster. +message PrivilegedAdmissionConfig { + // The customer allowlist Cloud Storage paths for the cluster. These paths are + // used with the `--autopilot-privileged-admission` flag to authorize + // privileged workloads in Autopilot clusters. + // + // Paths can be GKE-owned, in the format + // `gke:////`, or customer-owned, in + // the format `gs:///`. + // + // Wildcards (`*`) are supported to authorize all allowlists under specific + // paths or directories. Example: `gs://my-bucket/*` will authorize all + // allowlists under the `my-bucket` bucket. + repeated string allowlist_paths = 1; } // WorkloadPolicyConfig is the configuration related to GCW workload policy @@ -6583,6 +6719,16 @@ message PodAutoscaling { // Fleet is the fleet configuration for the cluster. message Fleet { + // MembershipType describes if the membership supports all features or only + // lightweight compatible ones. + enum MembershipType { + // The MembershipType is not set. + MEMBERSHIP_TYPE_UNSPECIFIED = 0; + + // The membership supports only lightweight compatible features. + LIGHTWEIGHT = 1; + } + // The Fleet host project(project ID or project number) where this cluster // will be registered to. This field cannot be changed after the cluster has // been registered. @@ -6596,6 +6742,9 @@ message Fleet { // Output only. Whether the cluster has been registered through the fleet // API. bool pre_registered = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The type of the cluster's fleet membership. + MembershipType membership_type = 4; } // Possible values for IP stack type @@ -6622,8 +6771,14 @@ message ControlPlaneEndpointsConfig { string endpoint = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Controls whether user traffic is allowed over this endpoint. Note that - // GCP-managed services may still use the endpoint even if this is false. + // Google-managed services may still use the endpoint even if this is false. optional bool allow_external_traffic = 3; + + // Controls whether the k8s token auth is allowed via DNS. + optional bool enable_k8s_tokens_via_dns = 5; + + // Controls whether the k8s certs auth is allowed via DNS. + optional bool enable_k8s_certs_via_dns = 6; } // IP endpoints configuration. @@ -6750,9 +6905,19 @@ message ResourceManagerTags { } // EnterpriseConfig is the cluster enterprise configuration. +// +// Deprecated: GKE Enterprise features are now available without an Enterprise +// tier. message EnterpriseConfig { + option deprecated = true; + // Premium tiers for GKE Cluster. + // + // Deprecated: GKE Enterprise features are now available without an Enterprise + // tier. enum ClusterTier { + option deprecated = true; + // CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set. CLUSTER_TIER_UNSPECIFIED = 0; @@ -6772,8 +6937,21 @@ message EnterpriseConfig { // SecretManagerConfig is config for secret manager enablement. message SecretManagerConfig { + // RotationConfig is config for secret manager auto rotation. + message RotationConfig { + // Whether the rotation is enabled. + optional bool enabled = 1; + + // The interval between two consecutive rotations. Default rotation interval + // is 2 minutes. + optional google.protobuf.Duration rotation_interval = 2; + } + // Enable/Disable Secret Manager Config. optional bool enabled = 1; + + // Rotation config for secret manager. + optional RotationConfig rotation_config = 2; } // BootDisk specifies the boot disk configuration for nodepools. @@ -7057,3 +7235,30 @@ message GkeAutoUpgradeConfig { // selected. PatchMode patch_mode = 1; } + +// NetworkTierConfig contains network tier information. +message NetworkTierConfig { + // Network tier configuration. + enum NetworkTier { + // By default, use project-level configuration. When unspecified, the + // behavior defaults to NETWORK_TIER_DEFAULT. For cluster updates, this + // implies no action (no-op). + NETWORK_TIER_UNSPECIFIED = 0; + + // Default network tier. Use project-level configuration. User can specify + // this value, meaning they want to keep the same behaviour as before + // cluster level network tier configuration is introduced. This field + // ensures backward compatibility for the network tier of cluster resources, + // such as node pools and load balancers, for their external IP addresses. + NETWORK_TIER_DEFAULT = 1; + + // Premium network tier. + NETWORK_TIER_PREMIUM = 2; + + // Standard network tier. + NETWORK_TIER_STANDARD = 3; + } + + // Network tier configuration. + NetworkTier network_tier = 1; +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java index 148ccb935926..3bf7183a5054 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java @@ -210,7 +210,7 @@ public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5864 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5862 * @return The maxTimeSharedClientsPerGpu. */ @java.lang.Override @@ -1133,7 +1133,7 @@ public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5864 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5862 * @return The maxTimeSharedClientsPerGpu. */ @java.lang.Override @@ -1152,7 +1152,7 @@ public long getMaxTimeSharedClientsPerGpu() { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5864 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5862 * @param value The maxTimeSharedClientsPerGpu to set. * @return This builder for chaining. */ @@ -1175,7 +1175,7 @@ public Builder setMaxTimeSharedClientsPerGpu(long value) { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5864 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5862 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java index 90b73cbf9eaa..9fe44c4b8a56 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java @@ -105,7 +105,7 @@ public interface AcceleratorConfigOrBuilder * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5864 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5862 * @return The maxTimeSharedClientsPerGpu. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java index c7e08da21b8a..f1afc7b13a74 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java @@ -199,7 +199,7 @@ public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAut * * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2070 + * google/container/v1beta1/cluster_service.proto;l=2066 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Override @@ -224,7 +224,7 @@ public boolean hasKubernetesDashboard() { * * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2070 + * google/container/v1beta1/cluster_service.proto;l=2066 * @return The kubernetesDashboard. */ @java.lang.Override @@ -333,7 +333,7 @@ public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2079 + * google/container/v1beta1/cluster_service.proto;l=2075 * @return Whether the istioConfig field is set. */ @java.lang.Override @@ -353,7 +353,7 @@ public boolean hasIstioConfig() { * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2079 + * google/container/v1beta1/cluster_service.proto;l=2075 * @return The istioConfig. */ @java.lang.Override @@ -630,7 +630,7 @@ public boolean hasGcePersistentDiskCsiDriverConfig() { * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2099 + * google/container/v1beta1/cluster_service.proto;l=2095 * @return Whether the kalmConfig field is set. */ @java.lang.Override @@ -650,7 +650,7 @@ public boolean hasKalmConfig() { * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2099 + * google/container/v1beta1/cluster_service.proto;l=2095 * @return The kalmConfig. */ @java.lang.Override @@ -2596,7 +2596,7 @@ public Builder clearHorizontalPodAutoscaling() { * * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2070 + * google/container/v1beta1/cluster_service.proto;l=2066 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -2620,7 +2620,7 @@ public boolean hasKubernetesDashboard() { * * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2070 + * google/container/v1beta1/cluster_service.proto;l=2066 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -3073,7 +3073,7 @@ public Builder clearNetworkPolicyConfig() { * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2079 + * google/container/v1beta1/cluster_service.proto;l=2075 * @return Whether the istioConfig field is set. */ @java.lang.Deprecated @@ -3092,7 +3092,7 @@ public boolean hasIstioConfig() { * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2079 + * google/container/v1beta1/cluster_service.proto;l=2075 * @return The istioConfig. */ @java.lang.Deprecated @@ -4138,7 +4138,7 @@ public Builder clearGcePersistentDiskCsiDriverConfig() { * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2099 + * google/container/v1beta1/cluster_service.proto;l=2095 * @return Whether the kalmConfig field is set. */ @java.lang.Deprecated @@ -4157,7 +4157,7 @@ public boolean hasKalmConfig() { * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2099 + * google/container/v1beta1/cluster_service.proto;l=2095 * @return The kalmConfig. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java index 36682ffe7ef8..9764eeea2bf1 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java @@ -124,7 +124,7 @@ public interface AddonsConfigOrBuilder * * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2070 + * google/container/v1beta1/cluster_service.proto;l=2066 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -146,7 +146,7 @@ public interface AddonsConfigOrBuilder * * * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2070 + * google/container/v1beta1/cluster_service.proto;l=2066 * @return The kubernetesDashboard. */ @java.lang.Deprecated @@ -224,7 +224,7 @@ public interface AddonsConfigOrBuilder * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2079 + * google/container/v1beta1/cluster_service.proto;l=2075 * @return Whether the istioConfig field is set. */ @java.lang.Deprecated @@ -241,7 +241,7 @@ public interface AddonsConfigOrBuilder * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2079 + * google/container/v1beta1/cluster_service.proto;l=2075 * @return The istioConfig. */ @java.lang.Deprecated @@ -439,7 +439,7 @@ public interface AddonsConfigOrBuilder * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2099 + * google/container/v1beta1/cluster_service.proto;l=2095 * @return Whether the kalmConfig field is set. */ @java.lang.Deprecated @@ -456,7 +456,7 @@ public interface AddonsConfigOrBuilder * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; * * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2099 + * google/container/v1beta1/cluster_service.proto;l=2095 * @return The kalmConfig. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java index 3e6120fbc0ed..02badc428f6f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java @@ -92,8 +92,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -121,8 +120,7 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -150,8 +148,7 @@ public int getOauthScopesCount() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -180,8 +177,7 @@ public java.lang.String getOauthScopes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -385,7 +381,7 @@ public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuild * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5637 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5635 * @return The minCpuPlatform. */ @java.lang.Override @@ -422,7 +418,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5637 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5635 * @return The bytes for minCpuPlatform. */ @java.lang.Override @@ -1408,8 +1404,7 @@ private void ensureOauthScopesIsMutable() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -1438,8 +1433,7 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -1467,8 +1461,7 @@ public int getOauthScopesCount() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -1497,8 +1490,7 @@ public java.lang.String getOauthScopes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -1527,8 +1519,7 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -1565,8 +1556,7 @@ public Builder setOauthScopes(int index, java.lang.String value) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -1602,8 +1592,7 @@ public Builder addOauthScopes(java.lang.String value) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -1636,8 +1625,7 @@ public Builder addAllOauthScopes(java.lang.Iterable values) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -1669,8 +1657,7 @@ public Builder clearOauthScopes() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -2230,7 +2217,7 @@ public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuild * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5637 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5635 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -2266,7 +2253,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5637 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5635 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated @@ -2302,7 +2289,7 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5637 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5635 * @param value The minCpuPlatform to set. * @return This builder for chaining. */ @@ -2337,7 +2324,7 @@ public Builder setMinCpuPlatform(java.lang.String value) { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5637 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5635 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2368,7 +2355,7 @@ public Builder clearMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5637 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5635 * @param value The bytes for minCpuPlatform to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java index 45933b019b61..0974299dc376 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -38,8 +38,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -65,8 +64,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -92,8 +90,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -120,8 +117,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -258,7 +254,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5637 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5635 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -284,7 +280,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5637 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5635 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java index d86119eb3fbc..a2abe42d4f2c 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java @@ -1032,7 +1032,7 @@ public com.google.protobuf.Parser getParserForType() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2674 + * google/container/v1beta1/cluster_service.proto;l=2670 * @return The enabled. */ @java.lang.Override @@ -1629,7 +1629,7 @@ public Builder mergeFrom( * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2674 + * google/container/v1beta1/cluster_service.proto;l=2670 * @return The enabled. */ @java.lang.Override @@ -1650,7 +1650,7 @@ public boolean getEnabled() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2674 + * google/container/v1beta1/cluster_service.proto;l=2670 * @param value The enabled to set. * @return This builder for chaining. */ @@ -1675,7 +1675,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2674 + * google/container/v1beta1/cluster_service.proto;l=2670 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java index 834b0600beca..7d42fee02f95 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java @@ -36,7 +36,7 @@ public interface BinaryAuthorizationOrBuilder * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2674 + * google/container/v1beta1/cluster_service.proto;l=2670 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java index a55680f110ea..c2cdf9559ca2 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4719 + * google/container/v1beta1/cluster_service.proto;l=4718 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4719 + * google/container/v1beta1/cluster_service.proto;l=4718 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4725 + * google/container/v1beta1/cluster_service.proto;l=4724 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4725 + * google/container/v1beta1/cluster_service.proto;l=4724 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4728 * @return The operationId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4728 * @return The bytes for operationId. */ @java.lang.Override @@ -740,7 +740,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4719 + * google/container/v1beta1/cluster_service.proto;l=4718 * @return The projectId. */ @java.lang.Deprecated @@ -768,7 +768,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4719 + * google/container/v1beta1/cluster_service.proto;l=4718 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -796,7 +796,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4719 + * google/container/v1beta1/cluster_service.proto;l=4718 * @param value The projectId to set. * @return This builder for chaining. */ @@ -823,7 +823,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4719 + * google/container/v1beta1/cluster_service.proto;l=4718 * @return This builder for chaining. */ @java.lang.Deprecated @@ -846,7 +846,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4719 + * google/container/v1beta1/cluster_service.proto;l=4718 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -877,7 +877,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4725 + * google/container/v1beta1/cluster_service.proto;l=4724 * @return The zone. */ @java.lang.Deprecated @@ -906,7 +906,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4725 + * google/container/v1beta1/cluster_service.proto;l=4724 * @return The bytes for zone. */ @java.lang.Deprecated @@ -935,7 +935,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4725 + * google/container/v1beta1/cluster_service.proto;l=4724 * @param value The zone to set. * @return This builder for chaining. */ @@ -963,7 +963,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4725 + * google/container/v1beta1/cluster_service.proto;l=4724 * @return This builder for chaining. */ @java.lang.Deprecated @@ -987,7 +987,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4725 + * google/container/v1beta1/cluster_service.proto;l=4724 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1016,7 +1016,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4728 * @return The operationId. */ @java.lang.Deprecated @@ -1043,7 +1043,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4728 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4728 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4728 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1118,7 +1118,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4728 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java index fac30cb39062..92c360b7eaf5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4719 + * google/container/v1beta1/cluster_service.proto;l=4718 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4719 + * google/container/v1beta1/cluster_service.proto;l=4718 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4725 + * google/container/v1beta1/cluster_service.proto;l=4724 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4725 + * google/container/v1beta1/cluster_service.proto;l=4724 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4728 * @return The operationId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4729 + * google/container/v1beta1/cluster_service.proto;l=4728 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java index d14438da7530..8ec3b5f6bc9c 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java @@ -508,7 +508,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2778 + * google/container/v1beta1/cluster_service.proto;l=2774 * @return The initialNodeCount. */ @java.lang.Override @@ -540,7 +540,7 @@ public int getInitialNodeCount() { * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2791 + * google/container/v1beta1/cluster_service.proto;l=2787 * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -569,7 +569,7 @@ public boolean hasNodeConfig() { * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2791 + * google/container/v1beta1/cluster_service.proto;l=2787 * @return The nodeConfig. */ @java.lang.Override @@ -1742,7 +1742,7 @@ public com.google.container.v1beta1.IPAllocationPolicyOrBuilder getIpAllocationP * * * @deprecated google.container.v1beta1.Cluster.master_authorized_networks_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2903 + * See google/container/v1beta1/cluster_service.proto;l=2899 * @return Whether the masterAuthorizedNetworksConfig field is set. */ @java.lang.Override @@ -1767,7 +1767,7 @@ public boolean hasMasterAuthorizedNetworksConfig() { * * * @deprecated google.container.v1beta1.Cluster.master_authorized_networks_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2903 + * See google/container/v1beta1/cluster_service.proto;l=2899 * @return The masterAuthorizedNetworksConfig. */ @java.lang.Override @@ -2087,7 +2087,7 @@ public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBui * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2926 + * google/container/v1beta1/cluster_service.proto;l=2922 * @return The privateCluster. */ @java.lang.Override @@ -2115,7 +2115,7 @@ public boolean getPrivateCluster() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2933 + * google/container/v1beta1/cluster_service.proto;l=2929 * @return The masterIpv4CidrBlock. */ @java.lang.Override @@ -2146,7 +2146,7 @@ public java.lang.String getMasterIpv4CidrBlock() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2933 + * google/container/v1beta1/cluster_service.proto;l=2929 * @return The bytes for masterIpv4CidrBlock. */ @java.lang.Override @@ -2917,7 +2917,7 @@ public com.google.container.v1beta1.ClusterTelemetryOrBuilder getClusterTelemetr * .google.container.v1beta1.TpuConfig tpu_config = 47 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2989 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return Whether the tpuConfig field is set. */ @java.lang.Override @@ -2938,7 +2938,7 @@ public boolean hasTpuConfig() { * .google.container.v1beta1.TpuConfig tpu_config = 47 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2989 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return The tpuConfig. */ @java.lang.Override @@ -3202,7 +3202,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3008 + * google/container/v1beta1/cluster_service.proto;l=3004 * @return The zone. */ @java.lang.Override @@ -3232,7 +3232,7 @@ public java.lang.String getZone() { * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3008 + * google/container/v1beta1/cluster_service.proto;l=3004 * @return The bytes for zone. */ @java.lang.Override @@ -3463,7 +3463,7 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3039 * @return The currentNodeVersion. */ @java.lang.Override @@ -3496,7 +3496,7 @@ public java.lang.String getCurrentNodeVersion() { * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3039 * @return The bytes for currentNodeVersion. */ @java.lang.Override @@ -3628,7 +3628,7 @@ public com.google.container.v1beta1.Cluster.Status getStatus() { * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3056 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The statusMessage. */ @java.lang.Override @@ -3659,7 +3659,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3056 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The bytes for statusMessage. */ @java.lang.Override @@ -3777,7 +3777,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -3797,7 +3797,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -3817,7 +3817,7 @@ public int getInstanceGroupUrlsCount() { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -3838,7 +3838,7 @@ public java.lang.String getInstanceGroupUrls(int index) { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -3863,7 +3863,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3078 + * google/container/v1beta1/cluster_service.proto;l=3074 * @return The currentNodeCount. */ @java.lang.Override @@ -4004,7 +4004,7 @@ public com.google.protobuf.ByteString getLocationBytes() { * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.enable_tpu is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3096 + * google/container/v1beta1/cluster_service.proto;l=3092 * @return The enableTpu. */ @java.lang.Override @@ -4034,7 +4034,7 @@ public boolean getEnableTpu() { * * * @deprecated google.container.v1beta1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3103 + * google/container/v1beta1/cluster_service.proto;l=3099 * @return The tpuIpv4CidrBlock. */ @java.lang.Override @@ -4067,7 +4067,7 @@ public java.lang.String getTpuIpv4CidrBlock() { * * * @deprecated google.container.v1beta1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3103 + * google/container/v1beta1/cluster_service.proto;l=3099 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Override @@ -4602,7 +4602,7 @@ public com.google.container.v1beta1.NodePoolAutoConfigOrBuilder getNodePoolAutoC * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3137 + * google/container/v1beta1/cluster_service.proto;l=3133 * @return Whether the protectConfig field is set. */ @java.lang.Override @@ -4624,7 +4624,7 @@ public boolean hasProtectConfig() { * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3137 + * google/container/v1beta1/cluster_service.proto;l=3133 * @return The protectConfig. */ @java.lang.Override @@ -4945,7 +4945,7 @@ public com.google.container.v1beta1.ControlPlaneEndpointsConfig getControlPlaneE * * * @deprecated google.container.v1beta1.Cluster.enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3160 + * google/container/v1beta1/cluster_service.proto;l=3156 * @return Whether the enterpriseConfig field is set. */ @java.lang.Override @@ -4968,7 +4968,7 @@ public boolean hasEnterpriseConfig() { * * * @deprecated google.container.v1beta1.Cluster.enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3160 + * google/container/v1beta1/cluster_service.proto;l=3156 * @return The enterpriseConfig. */ @java.lang.Override @@ -8980,7 +8980,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2778 + * google/container/v1beta1/cluster_service.proto;l=2774 * @return The initialNodeCount. */ @java.lang.Override @@ -9009,7 +9009,7 @@ public int getInitialNodeCount() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2778 + * google/container/v1beta1/cluster_service.proto;l=2774 * @param value The initialNodeCount to set. * @return This builder for chaining. */ @@ -9042,7 +9042,7 @@ public Builder setInitialNodeCount(int value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2778 + * google/container/v1beta1/cluster_service.proto;l=2774 * @return This builder for chaining. */ @java.lang.Deprecated @@ -9080,7 +9080,7 @@ public Builder clearInitialNodeCount() { * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2791 + * google/container/v1beta1/cluster_service.proto;l=2787 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -9108,7 +9108,7 @@ public boolean hasNodeConfig() { * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2791 + * google/container/v1beta1/cluster_service.proto;l=2787 * @return The nodeConfig. */ @java.lang.Deprecated @@ -12525,7 +12525,7 @@ public com.google.container.v1beta1.IPAllocationPolicy.Builder getIpAllocationPo * * * @deprecated google.container.v1beta1.Cluster.master_authorized_networks_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2903 + * See google/container/v1beta1/cluster_service.proto;l=2899 * @return Whether the masterAuthorizedNetworksConfig field is set. */ @java.lang.Deprecated @@ -12549,7 +12549,7 @@ public boolean hasMasterAuthorizedNetworksConfig() { * * * @deprecated google.container.v1beta1.Cluster.master_authorized_networks_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2903 + * See google/container/v1beta1/cluster_service.proto;l=2899 * @return The masterAuthorizedNetworksConfig. */ @java.lang.Deprecated @@ -13781,7 +13781,7 @@ public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBui * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2926 + * google/container/v1beta1/cluster_service.proto;l=2922 * @return The privateCluster. */ @java.lang.Override @@ -13804,7 +13804,7 @@ public boolean getPrivateCluster() { * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2926 + * google/container/v1beta1/cluster_service.proto;l=2922 * @param value The privateCluster to set. * @return This builder for chaining. */ @@ -13831,7 +13831,7 @@ public Builder setPrivateCluster(boolean value) { * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2926 + * google/container/v1beta1/cluster_service.proto;l=2922 * @return This builder for chaining. */ @java.lang.Deprecated @@ -13858,7 +13858,7 @@ public Builder clearPrivateCluster() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2933 + * google/container/v1beta1/cluster_service.proto;l=2929 * @return The masterIpv4CidrBlock. */ @java.lang.Deprecated @@ -13888,7 +13888,7 @@ public java.lang.String getMasterIpv4CidrBlock() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2933 + * google/container/v1beta1/cluster_service.proto;l=2929 * @return The bytes for masterIpv4CidrBlock. */ @java.lang.Deprecated @@ -13918,7 +13918,7 @@ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2933 + * google/container/v1beta1/cluster_service.proto;l=2929 * @param value The masterIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -13947,7 +13947,7 @@ public Builder setMasterIpv4CidrBlock(java.lang.String value) { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2933 + * google/container/v1beta1/cluster_service.proto;l=2929 * @return This builder for chaining. */ @java.lang.Deprecated @@ -13972,7 +13972,7 @@ public Builder clearMasterIpv4CidrBlock() { * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2933 + * google/container/v1beta1/cluster_service.proto;l=2929 * @param value The bytes for masterIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -16713,7 +16713,7 @@ public com.google.container.v1beta1.ClusterTelemetryOrBuilder getClusterTelemetr * .google.container.v1beta1.TpuConfig tpu_config = 47 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2989 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return Whether the tpuConfig field is set. */ @java.lang.Deprecated @@ -16733,7 +16733,7 @@ public boolean hasTpuConfig() { * .google.container.v1beta1.TpuConfig tpu_config = 47 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2989 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return The tpuConfig. */ @java.lang.Deprecated @@ -17647,7 +17647,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3008 + * google/container/v1beta1/cluster_service.proto;l=3004 * @return The zone. */ @java.lang.Deprecated @@ -17677,7 +17677,7 @@ public java.lang.String getZone() { * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3008 + * google/container/v1beta1/cluster_service.proto;l=3004 * @return The bytes for zone. */ @java.lang.Deprecated @@ -17707,7 +17707,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3008 + * google/container/v1beta1/cluster_service.proto;l=3004 * @param value The zone to set. * @return This builder for chaining. */ @@ -17736,7 +17736,7 @@ public Builder setZone(java.lang.String value) { * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3008 + * google/container/v1beta1/cluster_service.proto;l=3004 * @return This builder for chaining. */ @java.lang.Deprecated @@ -17761,7 +17761,7 @@ public Builder clearZone() { * * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3008 + * google/container/v1beta1/cluster_service.proto;l=3004 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -18218,7 +18218,7 @@ public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3039 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -18250,7 +18250,7 @@ public java.lang.String getCurrentNodeVersion() { * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3039 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -18282,7 +18282,7 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3039 * @param value The currentNodeVersion to set. * @return This builder for chaining. */ @@ -18313,7 +18313,7 @@ public Builder setCurrentNodeVersion(java.lang.String value) { * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3039 * @return This builder for chaining. */ @java.lang.Deprecated @@ -18340,7 +18340,7 @@ public Builder clearCurrentNodeVersion() { * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3039 * @param value The bytes for currentNodeVersion to set. * @return This builder for chaining. */ @@ -18593,7 +18593,7 @@ public Builder clearStatus() { * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3056 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The statusMessage. */ @java.lang.Deprecated @@ -18623,7 +18623,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3056 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -18653,7 +18653,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3056 + * google/container/v1beta1/cluster_service.proto;l=3052 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -18682,7 +18682,7 @@ public Builder setStatusMessage(java.lang.String value) { * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3056 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return This builder for chaining. */ @java.lang.Deprecated @@ -18707,7 +18707,7 @@ public Builder clearStatusMessage() { * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3056 + * google/container/v1beta1/cluster_service.proto;l=3052 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -18941,7 +18941,7 @@ private void ensureInstanceGroupUrlsIsMutable() { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -18962,7 +18962,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -18982,7 +18982,7 @@ public int getInstanceGroupUrlsCount() { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -19003,7 +19003,7 @@ public java.lang.String getInstanceGroupUrls(int index) { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -19024,7 +19024,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param index The index to set the value at. * @param value The instanceGroupUrls to set. * @return This builder for chaining. @@ -19053,7 +19053,7 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param value The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -19081,7 +19081,7 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param values The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -19106,7 +19106,7 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19130,7 +19130,7 @@ public Builder clearInstanceGroupUrls() { * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param value The bytes of the instanceGroupUrls to add. * @return This builder for chaining. */ @@ -19162,7 +19162,7 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3078 + * google/container/v1beta1/cluster_service.proto;l=3074 * @return The currentNodeCount. */ @java.lang.Override @@ -19184,7 +19184,7 @@ public int getCurrentNodeCount() { * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3078 + * google/container/v1beta1/cluster_service.proto;l=3074 * @param value The currentNodeCount to set. * @return This builder for chaining. */ @@ -19210,7 +19210,7 @@ public Builder setCurrentNodeCount(int value) { * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3078 + * google/container/v1beta1/cluster_service.proto;l=3074 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19483,7 +19483,7 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.enable_tpu is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3096 + * google/container/v1beta1/cluster_service.proto;l=3092 * @return The enableTpu. */ @java.lang.Override @@ -19505,7 +19505,7 @@ public boolean getEnableTpu() { * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.enable_tpu is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3096 + * google/container/v1beta1/cluster_service.proto;l=3092 * @param value The enableTpu to set. * @return This builder for chaining. */ @@ -19531,7 +19531,7 @@ public Builder setEnableTpu(boolean value) { * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.enable_tpu is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3096 + * google/container/v1beta1/cluster_service.proto;l=3092 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19560,7 +19560,7 @@ public Builder clearEnableTpu() { * * * @deprecated google.container.v1beta1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3103 + * google/container/v1beta1/cluster_service.proto;l=3099 * @return The tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -19592,7 +19592,7 @@ public java.lang.String getTpuIpv4CidrBlock() { * * * @deprecated google.container.v1beta1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3103 + * google/container/v1beta1/cluster_service.proto;l=3099 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -19624,7 +19624,7 @@ public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { * * * @deprecated google.container.v1beta1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3103 + * google/container/v1beta1/cluster_service.proto;l=3099 * @param value The tpuIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -19655,7 +19655,7 @@ public Builder setTpuIpv4CidrBlock(java.lang.String value) { * * * @deprecated google.container.v1beta1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3103 + * google/container/v1beta1/cluster_service.proto;l=3099 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19682,7 +19682,7 @@ public Builder clearTpuIpv4CidrBlock() { * * * @deprecated google.container.v1beta1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3103 + * google/container/v1beta1/cluster_service.proto;l=3099 * @param value The bytes for tpuIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -21580,7 +21580,7 @@ public com.google.container.v1beta1.NodePoolAutoConfig.Builder getNodePoolAutoCo * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3137 + * google/container/v1beta1/cluster_service.proto;l=3133 * @return Whether the protectConfig field is set. */ @java.lang.Deprecated @@ -21601,7 +21601,7 @@ public boolean hasProtectConfig() { * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3137 + * google/container/v1beta1/cluster_service.proto;l=3133 * @return The protectConfig. */ @java.lang.Deprecated @@ -22741,7 +22741,7 @@ public Builder clearControlPlaneEndpointsConfig() { * * * @deprecated google.container.v1beta1.Cluster.enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3160 + * google/container/v1beta1/cluster_service.proto;l=3156 * @return Whether the enterpriseConfig field is set. */ @java.lang.Deprecated @@ -22763,7 +22763,7 @@ public boolean hasEnterpriseConfig() { * * * @deprecated google.container.v1beta1.Cluster.enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3160 + * google/container/v1beta1/cluster_service.proto;l=3156 * @return The enterpriseConfig. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java index 6cfa97c8f6c5..6937ae7548c2 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java @@ -108,7 +108,7 @@ public interface ClusterOrBuilder * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2778 + * google/container/v1beta1/cluster_service.proto;l=2774 * @return The initialNodeCount. */ @java.lang.Deprecated @@ -134,7 +134,7 @@ public interface ClusterOrBuilder * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2791 + * google/container/v1beta1/cluster_service.proto;l=2787 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface ClusterOrBuilder * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2791 + * google/container/v1beta1/cluster_service.proto;l=2787 * @return The nodeConfig. */ @java.lang.Deprecated @@ -962,7 +962,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.master_authorized_networks_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2903 + * See google/container/v1beta1/cluster_service.proto;l=2899 * @return Whether the masterAuthorizedNetworksConfig field is set. */ @java.lang.Deprecated @@ -984,7 +984,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.master_authorized_networks_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2903 + * See google/container/v1beta1/cluster_service.proto;l=2899 * @return The masterAuthorizedNetworksConfig. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ java.lang.String getResourceLabelsOrDefault( * bool private_cluster = 28 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2926 + * google/container/v1beta1/cluster_service.proto;l=2922 * @return The privateCluster. */ @java.lang.Deprecated @@ -1229,7 +1229,7 @@ java.lang.String getResourceLabelsOrDefault( * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2933 + * google/container/v1beta1/cluster_service.proto;l=2929 * @return The masterIpv4CidrBlock. */ @java.lang.Deprecated @@ -1249,7 +1249,7 @@ java.lang.String getResourceLabelsOrDefault( * string master_ipv4_cidr_block = 29 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2933 + * google/container/v1beta1/cluster_service.proto;l=2929 * @return The bytes for masterIpv4CidrBlock. */ @java.lang.Deprecated @@ -1792,7 +1792,7 @@ java.lang.String getResourceLabelsOrDefault( * .google.container.v1beta1.TpuConfig tpu_config = 47 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2989 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return Whether the tpuConfig field is set. */ @java.lang.Deprecated @@ -1810,7 +1810,7 @@ java.lang.String getResourceLabelsOrDefault( * .google.container.v1beta1.TpuConfig tpu_config = 47 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2989 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return The tpuConfig. */ @java.lang.Deprecated @@ -1983,7 +1983,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3008 + * google/container/v1beta1/cluster_service.proto;l=3004 * @return The zone. */ @java.lang.Deprecated @@ -2002,7 +2002,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3008 + * google/container/v1beta1/cluster_service.proto;l=3004 * @return The bytes for zone. */ @java.lang.Deprecated @@ -2136,7 +2136,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3039 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -2158,7 +2158,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3039 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -2236,7 +2236,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3056 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The statusMessage. */ @java.lang.Deprecated @@ -2256,7 +2256,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3056 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -2324,7 +2324,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -2342,7 +2342,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -2360,7 +2360,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -2379,7 +2379,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3073 + * google/container/v1beta1/cluster_service.proto;l=3069 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -2399,7 +2399,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3078 + * google/container/v1beta1/cluster_service.proto;l=3074 * @return The currentNodeCount. */ @java.lang.Deprecated @@ -2480,7 +2480,7 @@ java.lang.String getResourceLabelsOrDefault( * bool enable_tpu = 115 [deprecated = true]; * * @deprecated google.container.v1beta1.Cluster.enable_tpu is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3096 + * google/container/v1beta1/cluster_service.proto;l=3092 * @return The enableTpu. */ @java.lang.Deprecated @@ -2502,7 +2502,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3103 + * google/container/v1beta1/cluster_service.proto;l=3099 * @return The tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -2524,7 +2524,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3103 + * google/container/v1beta1/cluster_service.proto;l=3099 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -2890,7 +2890,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3137 + * google/container/v1beta1/cluster_service.proto;l=3133 * @return Whether the protectConfig field is set. */ @java.lang.Deprecated @@ -2909,7 +2909,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3137 + * google/container/v1beta1/cluster_service.proto;l=3133 * @return The protectConfig. */ @java.lang.Deprecated @@ -3129,7 +3129,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3160 + * google/container/v1beta1/cluster_service.proto;l=3156 * @return Whether the enterpriseConfig field is set. */ @java.lang.Deprecated @@ -3149,7 +3149,7 @@ java.lang.String getResourceLabelsOrDefault( * * * @deprecated google.container.v1beta1.Cluster.enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3160 + * google/container/v1beta1/cluster_service.proto;l=3156 * @return The enterpriseConfig. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java index 978564e827d6..19da610fe58c 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java @@ -1952,7 +1952,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023node_kubelet_config\030\003" + " \001(\0132+.google.container.v1beta1.NodeKubeletConfig\022I\n" + "\021linux_node_config\030\004" - + " \001(\0132).google.container.v1beta1.LinuxNodeConfigB\003\340A\003\"\2435\n\r" + + " \001(\0132).google.container.v1beta1.LinuxNodeConfigB\003\340A\003\"\3645\n\r" + "ClusterUpdate\022\034\n" + "\024desired_node_version\030\004 \001(\t\022\"\n" + "\032desired_monitoring_service\030\005 \001(\t\022E\n" @@ -2100,7 +2100,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027gke_auto_upgrade_config\030\232\001" + " \001(\0132..google.container.v1beta1.GkeAutoUpgradeConfig\022Q\n" + "\033desired_network_tier_config\030\233\001" - + " \001(\0132+.google.container.v1beta1.NetworkTierConfigB\"\n" + + " \001(\0132+.google.container.v1beta1.NetworkTierConfig\022O\n" + + "\032desired_secret_sync_config\030\236\001" + + " \001(\0132*.google.container.v1beta1.SecretSyncConfigB\"\n" + " _desired_enable_private_endpointB\'\n" + "%_desired_default_enable_private_nodesB\031\n" + "\027_desired_protect_configB%\n" @@ -2116,28 +2118,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017pod_range_names\030\001 \003(\t\022@\n" + "\016pod_range_info\030\002" + " \003(\0132#.google.container.v1beta1.RangeInfoB\003\340A\003\"L\n" - + "\030AdditionalIPRangesConfig\022\022\n" - + "\n" + + "\030AdditionalIPRangesConfig\022\022\n\n" + "subnetwork\030\001 \001(\t\022\034\n" + "\024pod_ipv4_range_names\030\002 \003(\t\"{\n" + "\037DesiredAdditionalIPRangesConfig\022X\n" - + "\034additional_ip_ranges_configs\030\001 \003(\013" - + "22.google.container.v1beta1.AdditionalIPRangesConfig\"2\n" + + "\034additional_ip_ranges_configs\030\001 \003(" + + "\01322.google.container.v1beta1.AdditionalIPRangesConfig\"2\n" + "\016AutoIpamConfig\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001B\n\n" + "\010_enabled\">\n" - + "\tRangeInfo\022\027\n" - + "\n" + + "\tRangeInfo\022\027\n\n" + "range_name\030\001 \001(\tB\003\340A\003\022\030\n" + "\013utilization\030\002 \001(\001B\003\340A\003\"k\n" + "\027DesiredEnterpriseConfig\022L\n" - + "\014desired_tier\030\001 \001(\01626.google.container.v1b" - + "eta1.EnterpriseConfig.ClusterTier:\002\030\001\"\375\010\n" + + "\014desired_tier\030\001 \001(\01626.google.container.v1" + + "beta1.EnterpriseConfig.ClusterTier:\002\030\001\"\375\010\n" + "\tOperation\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\023\n" + "\004zone\030\002 \001(\tB\005\030\001\340A\003\022E\n" - + "\016operation_type\030\003 \001(\0162(.go" - + "ogle.container.v1beta1.Operation.TypeB\003\340A\003\022?\n" + + "\016operation_type\030\003 \001(\0162(.g" + + "oogle.container.v1beta1.Operation.TypeB\003\340A\003\022?\n" + "\006status\030\004" + " \001(\0162*.google.container.v1beta1.Operation.StatusB\003\340A\003\022\023\n" + "\006detail\030\010 \001(\tB\003\340A\003\022\035\n" @@ -2213,7 +2213,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006update\030\004" + " \001(\0132\'.google.container.v1beta1.ClusterUpdateB\003\340A\002\022\014\n" + "\004name\030\005 \001(\t\"\335\r\n" - + "\025UpdateNodePoolRequest\022\026\n\n" + + "\025UpdateNodePoolRequest\022\026\n" + + "\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022\030\n" @@ -2222,28 +2223,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "image_type\030\006 \001(\tB\003\340A\002\022\021\n" + "\tlocations\030\r" + " \003(\t\022R\n" - + "\030workload_metadata_config\030\016 \001(\01320.goog" - + "le.container.v1beta1.WorkloadMetadataConfig\022\014\n" + + "\030workload_metadata_config\030\016 \001(\01320.goo" + + "gle.container.v1beta1.WorkloadMetadataConfig\022\014\n" + "\004name\030\010 \001(\t\022L\n" - + "\020upgrade_settings\030\017 " - + "\001(\01322.google.container.v1beta1.NodePool.UpgradeSettings\0223\n" + + "\020upgrade_settings\030\017" + + " \001(\01322.google.container.v1beta1.NodePool.UpgradeSettings\0223\n" + "\004tags\030\020 \001(\0132%.google.container.v1beta1.NetworkTags\0224\n" + "\006taints\030\021 \001(\0132$.google.container.v1beta1.NodeTaints\0224\n" + "\006labels\030\022 \001(\0132$.google.container.v1beta1.NodeLabels\022D\n" - + "\021linux_node_config\030\023 " - + "\001(\0132).google.container.v1beta1.LinuxNodeConfig\022C\n" + + "\021linux_node_config\030\023" + + " \001(\0132).google.container.v1beta1.LinuxNodeConfig\022C\n" + "\016kubelet_config\030\024" + " \001(\0132+.google.container.v1beta1.NodeKubeletConfig\022H\n" + "\023node_network_config\030\025" + " \001(\0132+.google.container.v1beta1.NodeNetworkConfig\0229\n" + "\013gcfs_config\030\026 \001(\0132$.google.container.v1beta1.GcfsConfig\022G\n" - + "\022confidential_nodes\030\027 \001(\0132+.g" - + "oogle.container.v1beta1.ConfidentialNodes\0223\n" + + "\022confidential_nodes\030\027 \001(\0132+." + + "google.container.v1beta1.ConfidentialNodes\0223\n" + "\005gvnic\030\035 \001(\0132$.google.container.v1beta1.VirtualNIC\022\014\n" + "\004etag\030\036 \001(\t\0229\n" + "\013fast_socket\030\037 \001(\0132$.google.container.v1beta1.FastSocket\022G\n" - + "\016logging_config\030 \001(\0132/.google" - + ".container.v1beta1.NodePoolLoggingConfig\022A\n" + + "\016logging_config\030 \001(\0132/.googl" + + "e.container.v1beta1.NodePoolLoggingConfig\022A\n" + "\017resource_labels\030! \001(\0132(.google.container.v1beta1.ResourceLabels\022H\n" + "\023windows_node_config\030\"" + " \001(\0132+.google.container.v1beta1.WindowsNodeConfig\022A\n" @@ -2251,12 +2252,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014machine_type\030$ \001(\tB\003\340A\001\022\026\n" + "\tdisk_type\030% \001(\tB\003\340A\001\022\031\n" + "\014disk_size_gb\030& \001(\003B\003\340A\001\022L\n" - + "\025resource_manager_tags\030\' \001(\0132-." - + "google.container.v1beta1.ResourceManagerTags\022E\n" + + "\025resource_manager_tags\030\' \001(\0132-" + + ".google.container.v1beta1.ResourceManagerTags\022E\n" + "\021containerd_config\030(" + " \001(\0132*.google.container.v1beta1.ContainerdConfig\022R\n" - + "\023queued_provisioning\030* \001(\01325.google.contai" - + "ner.v1beta1.NodePool.QueuedProvisioning\022\025\n\r" + + "\023queued_provisioning\030* \001(\01325.google.conta" + + "iner.v1beta1.NodePool.QueuedProvisioning\022\025\n\r" + "storage_pools\030+ \003(\t\0223\n" + "\020max_run_duration\030- \001(\0132\031.google.protobuf.Duration\022\027\n\n" + "flex_start\030. \001(\010H\000\210\001\001\0225\n" @@ -2267,8 +2268,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022\030\n" + "\014node_pool_id\030\004 \001(\tB\002\030\001\022G\n" - + "\013autoscaling\030\005 \001(\0132-." - + "google.container.v1beta1.NodePoolAutoscalingB\003\340A\002\022\014\n" + + "\013autoscaling\030\005 \001(\0132-" + + ".google.container.v1beta1.NodePoolAutoscalingB\003\340A\002\022\014\n" + "\004name\030\006 \001(\t\"\210\001\n" + "\030SetLoggingServiceRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" @@ -2278,7 +2279,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\005 \001(\t\"\216\001\n" + "\033SetMonitoringServiceRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" - + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + + "\004zone\030\002 \001(\tB\002\030\001\022\026\n" + + "\n" + "cluster_id\030\003 \001(\tB\002\030\001\022\037\n" + "\022monitoring_service\030\004 \001(\tB\003\340A\002\022\014\n" + "\004name\030\006 \001(\t\"\254\001\n" @@ -2354,17 +2356,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022default_image_type\030\004 \001(\t\022\031\n" + "\021valid_image_types\030\005 \003(\t\022\035\n" + "\025valid_master_versions\030\006 \003(\t\022M\n" - + "\010channels\030\t" - + " \003(\0132;.google.container.v1beta1.ServerConfig.ReleaseChannelConfig\022\\\n" + + "\010channels\030\t \003(\0132;.google.container.v1b" + + "eta1.ServerConfig.ReleaseChannelConfig\022\\\n" + "\024windows_version_maps\030\n" - + " \003(\0132>.google.con" - + "tainer.v1beta1.ServerConfig.WindowsVersionMapsEntry\032\321\002\n" + + " \003(\0132>.google.co" + + "ntainer.v1beta1.ServerConfig.WindowsVersionMapsEntry\032\321\002\n" + "\024ReleaseChannelConfig\022A\n" + "\007channel\030\001" + " \001(\01620.google.container.v1beta1.ReleaseChannel.Channel\022\027\n" + "\017default_version\030\002 \001(\t\022l\n" - + "\022available_versions\030\003 \003(\0132L.google.container.v1beta1.ServerConfig.Rel" - + "easeChannelConfig.AvailableVersionB\002\030\001\022\026\n" + + "\022available_versions\030\003 \003(\0132L.google.container.v1beta1.ServerConfig.Re" + + "leaseChannelConfig.AvailableVersionB\002\030\001\022\026\n" + "\016valid_versions\030\004 \003(\t\022\036\n" + "\026upgrade_target_version\030\005 \001(\t\0327\n" + "\020AvailableVersion\022\017\n" @@ -2387,8 +2389,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "project_id\030\001 \001(\tB\002\030\001\022\020\n" + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022:\n" - + "\tnode_pool\030\004 " - + "\001(\0132\".google.container.v1beta1.NodePoolB\003\340A\002\022\016\n" + + "\tnode_pool\030\004" + + " \001(\0132\".google.container.v1beta1.NodePoolB\003\340A\002\022\016\n" + "\006parent\030\006 \001(\t\"\201\001\n" + "\025DeleteNodePoolRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" @@ -2408,10 +2410,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n" + "\004name\030\006 \001(\t\"\352\004\n" + "\021BlueGreenSettings\022d\n" - + "\027standard_rollout_policy\030\001 \001(" - + "\0132A.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyH\000\022h\n" - + "\031autoscaled_rollout_policy\030\003 \001(\0132C.google.conta" - + "iner.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyH\000\022?\n" + + "\027standard_rollout_policy\030\001 \001" + + "(\0132A.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyH\000\022h\n" + + "\031autoscaled_rollout_policy\030\003 \001(\0132C.google.cont" + + "ainer.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyH\000\022?\n" + "\027node_pool_soak_duration\030\002" + " \001(\0132\031.google.protobuf.DurationH\001\210\001\001\032\271\001\n" + "\025StandardRolloutPolicy\022\032\n" @@ -2432,16 +2434,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022initial_node_count\030\003 \001(\005\022\021\n" + "\tlocations\030\r" + " \003(\t\022C\n" - + "\016network_config\030\016 \001(\0132" - + "+.google.container.v1beta1.NodeNetworkConfig\022\026\n" + + "\016network_config\030\016 \001(\013" + + "2+.google.container.v1beta1.NodeNetworkConfig\022\026\n" + "\tself_link\030d \001(\tB\003\340A\003\022\017\n" + "\007version\030e \001(\t\022 \n" + "\023instance_group_urls\030f \003(\tB\003\340A\003\022>\n" + "\006status\030g" + " \001(\0162).google.container.v1beta1.NodePool.StatusB\003\340A\003\022\035\n" + "\016status_message\030h \001(\tB\005\030\001\340A\003\022B\n" - + "\013autoscaling\030\004 \001(\0132-.go" - + "ogle.container.v1beta1.NodePoolAutoscaling\022<\n\n" + + "\013autoscaling\030\004 \001(\0132-.g" + + "oogle.container.v1beta1.NodePoolAutoscaling\022<\n\n" + "management\030\005 \001(\0132(.google.container.v1beta1.NodeManagement\022H\n" + "\023max_pods_constraint\030\006" + " \001(\0132+.google.container.v1beta1.MaxPodsConstraint\022=\n\n" @@ -2454,10 +2456,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_info\030m" + " \001(\0132-.google.container.v1beta1.NodePool.UpdateInfoB\003\340A\003\022\014\n" + "\004etag\030n \001(\t\022R\n" - + "\023queued_provisioning\030p \001(\01325.google.cont" - + "ainer.v1beta1.NodePool.QueuedProvisioning\022R\n" - + "\030best_effort_provisioning\030q \001(\01320.go" - + "ogle.container.v1beta1.BestEffortProvisioning\032\372\001\n" + + "\023queued_provisioning\030p \001(\01325.google.con" + + "tainer.v1beta1.NodePool.QueuedProvisioning\022R\n" + + "\030best_effort_provisioning\030q \001(\01320.g" + + "oogle.container.v1beta1.BestEffortProvisioning\032\372\001\n" + "\017UpgradeSettings\022\021\n" + "\tmax_surge\030\001 \001(\005\022\027\n" + "\017max_unavailable\030\002 \001(\005\022G\n" @@ -2468,11 +2470,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_strategyB\026\n" + "\024_blue_green_settings\032\262\004\n\n" + "UpdateInfo\022T\n" - + "\017blue_green_info\030\001 \001(\0132;.google.container.v1" - + "beta1.NodePool.UpdateInfo.BlueGreenInfo\032\315\003\n\r" + + "\017blue_green_info\030\001 \001(\0132;.google.container.v" + + "1beta1.NodePool.UpdateInfo.BlueGreenInfo\032\315\003\n\r" + "BlueGreenInfo\022P\n" - + "\005phase\030\001 \001(\0162A.googl" - + "e.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase\022 \n" + + "\005phase\030\001 \001(\0162A.goog" + + "le.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase\022 \n" + "\030blue_instance_group_urls\030\002 \003(\t\022!\n" + "\031green_instance_group_urls\030\003 \003(\t\022%\n" + "\035blue_pool_deletion_start_time\030\004 \001(\t\022\032\n" @@ -2517,27 +2519,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006window\030\001 \001(\0132+.google.container.v1beta1.MaintenanceWindow\022\030\n" + "\020resource_version\030\003 \001(\t\"\212\003\n" + "\021MaintenanceWindow\022T\n" - + "\030daily_maintenance_window\030\002 \001(\01320.goo" - + "gle.container.v1beta1.DailyMaintenanceWindowH\000\022I\n" - + "\020recurring_window\030\003 \001(\0132-.googl" - + "e.container.v1beta1.RecurringTimeWindowH\000\022f\n" - + "\026maintenance_exclusions\030\004 \003(\0132F.goog" - + "le.container.v1beta1.MaintenanceWindow.MaintenanceExclusionsEntry\032b\n" + + "\030daily_maintenance_window\030\002 \001(\01320.go" + + "ogle.container.v1beta1.DailyMaintenanceWindowH\000\022I\n" + + "\020recurring_window\030\003 \001(\0132-.goog" + + "le.container.v1beta1.RecurringTimeWindowH\000\022f\n" + + "\026maintenance_exclusions\030\004 \003(\0132F.goo" + + "gle.container.v1beta1.MaintenanceWindow.MaintenanceExclusionsEntry\032b\n" + "\032MaintenanceExclusionsEntry\022\013\n" + "\003key\030\001 \001(\t\0223\n" + "\005value\030\002 \001(\0132$.google.container.v1beta1.TimeWindow:\0028\001B\010\n" + "\006policy\"\325\001\n\n" + "TimeWindow\022^\n" - + "\035maintenance_exclusion_options\030\003 \001(\01325.google.c" - + "ontainer.v1beta1.MaintenanceExclusionOptionsH\000\022.\n\n" + + "\035maintenance_exclusion_options\030\003 \001(\01325.google." + + "container.v1beta1.MaintenanceExclusionOptionsH\000\022.\n\n" + "start_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\t\n" + "\007options\"\353\002\n" + "\033MaintenanceExclusionOptions\022J\n" - + "\005scope\030\001 \001(\0162;" - + ".google.container.v1beta1.MaintenanceExclusionOptions.Scope\022`\n" - + "\021end_time_behavior\030\002" - + " \001(\0162E.google.container.v1beta1.MaintenanceExclusionOptions.EndTimeBehavior\"N\n" + + "\005scope\030\001 \001(\0162" + + ";.google.container.v1beta1.MaintenanceExclusionOptions.Scope\022`\n" + + "\021end_time_behavior\030\002 \001(\0162E.google.container.v1beta1.Maint" + + "enanceExclusionOptions.EndTimeBehavior\"N\n" + "\005Scope\022\017\n" + "\013NO_UPGRADES\020\000\022\025\n" + "\021NO_MINOR_UPGRADES\020\001\022\035\n" @@ -2551,7 +2553,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DailyMaintenanceWindow\022\022\n\n" + "start_time\030\002 \001(\t\022\025\n" + "\010duration\030\003 \001(\tB\003\340A\003\"\313\001\n" - + "\034SetNodePoolManagementRequest\022\026\n\n" + + "\034SetNodePoolManagementRequest\022\026\n" + + "\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022\030\n" @@ -2559,7 +2562,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "management\030\005" + " \001(\0132(.google.container.v1beta1.NodeManagementB\003\340A\002\022\014\n" + "\004name\030\007 \001(\t\"\233\001\n" - + "\026SetNodePoolSizeRequest\022\026\n\n" + + "\026SetNodePoolSizeRequest\022\026\n" + + "\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022\030\n" @@ -2581,8 +2585,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034enable_node_autoprovisioning\030\001 \001(\010\022@\n" + "\017resource_limits\030\002" + " \003(\0132\'.google.container.v1beta1.ResourceLimit\022\\\n" - + "\023autoscaling_profile\030\003 \001(\0162?.google.container.v1beta" - + "1.ClusterAutoscaling.AutoscalingProfile\022g\n" + + "\023autoscaling_profile\030\003 \001(\0162?.google.container.v1bet" + + "a1.ClusterAutoscaling.AutoscalingProfile\022g\n" + "#autoprovisioning_node_pool_defaults\030\004" + " \001(\0132:.google.container.v1beta1.AutoprovisioningNodePoolDefaults\022\"\n" + "\032autoprovisioning_locations\030\005 \003(\t\022Y\n" @@ -2595,11 +2599,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " AutoprovisioningNodePoolDefaults\022\024\n" + "\014oauth_scopes\030\001 \003(\t\022\027\n" + "\017service_account\030\002 \001(\t\022L\n" - + "\020upgrade_settings\030\003 \001(\01322.google.co" - + "ntainer.v1beta1.NodePool.UpgradeSettings\022<\n\n" + + "\020upgrade_settings\030\003 \001(\01322.google.c" + + "ontainer.v1beta1.NodePool.UpgradeSetting", + "s\022<\n\n" + "management\030\004 \001(\0132(.google.container.v1beta1.NodeManagement\022\034\n" - + "\020min_cpu_platfo", - "rm\030\005 \001(\tB\002\030\001\022\024\n" + + "\020min_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n" + "\014disk_size_gb\030\006 \001(\005\022\021\n" + "\tdisk_type\030\007 \001(\t\022R\n" + "\030shielded_instance_config\030\010" @@ -2621,15 +2625,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016min_node_count\030\002 \001(\005\022\026\n" + "\016max_node_count\030\003 \001(\005\022\027\n" + "\017autoprovisioned\030\004 \001(\010\022U\n" - + "\017location_policy\030\005 \001(\0162<.google.container.v" - + "1beta1.NodePoolAutoscaling.LocationPolicy\022\034\n" + + "\017location_policy\030\005 \001(\0162<.google.container." + + "v1beta1.NodePoolAutoscaling.LocationPolicy\022\034\n" + "\024total_min_node_count\030\006 \001(\005\022\034\n" + "\024total_max_node_count\030\007 \001(\005\"H\n" + "\016LocationPolicy\022\037\n" + "\033LOCATION_POLICY_UNSPECIFIED\020\000\022\014\n" + "\010BALANCED\020\001\022\007\n" + "\003ANY\020\002\"\227\002\n" - + "\020SetLabelsRequest\022\026\n\n" + + "\020SetLabelsRequest\022\026\n" + + "\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + "cluster_id\030\003 \001(\tB\002\030\001\022\\\n" @@ -2638,8 +2643,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n" + "\004name\030\007 \001(\t\0325\n" + "\023ResourceLabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"|\n" + "\024SetLegacyAbacRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n" @@ -2663,24 +2667,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020accelerator_type\030\002 \001(\t\022\032\n" + "\022gpu_partition_size\030\003 \001(\t\022+\n" + "\037max_time_shared_clients_per_gpu\030\004 \001(\003B\002\030\001\022K\n" - + "\022gpu_sharing_config\030\005 " - + "\001(\0132*.google.container.v1beta1.GPUSharingConfigH\000\210\001\001\022b\n" + + "\022gpu_sharing_config\030\005" + + " \001(\0132*.google.container.v1beta1.GPUSharingConfigH\000\210\001\001\022b\n" + "\036gpu_driver_installation_config\030\006" + " \001(\01325.google.container.v1beta1.GPUDriverInstallationConfigH\001\210\001\001B\025\n" + "\023_gpu_sharing_configB!\n" + "\037_gpu_driver_installation_config\"\210\002\n" + "\020GPUSharingConfig\022\"\n" + "\032max_shared_clients_per_gpu\030\001 \001(\003\022`\n" - + "\024gpu_sharing_strategy\030\002 \001(\0162=.google.container.v1b" - + "eta1.GPUSharingConfig.GPUSharingStrategyH\000\210\001\001\"U\n" + + "\024gpu_sharing_strategy\030\002 \001(\0162=.google.container.v1" + + "beta1.GPUSharingConfig.GPUSharingStrategyH\000\210\001\001\"U\n" + "\022GPUSharingStrategy\022$\n" + " GPU_SHARING_STRATEGY_UNSPECIFIED\020\000\022\020\n" + "\014TIME_SHARING\020\001\022\007\n" + "\003MPS\020\002B\027\n" + "\025_gpu_sharing_strategy\"\211\002\n" + "\033GPUDriverInstallationConfig\022g\n" - + "\022gpu_driver_version\030\001 \001(\0162F.google.container.v1b" - + "eta1.GPUDriverInstallationConfig.GPUDriverVersionH\000\210\001\001\"j\n" + + "\022gpu_driver_version\030\001 \001(\0162F.google.container.v1" + + "beta1.GPUDriverInstallationConfig.GPUDriverVersionH\000\210\001\001\"j\n" + "\020GPUDriverVersion\022\"\n" + "\036GPU_DRIVER_VERSION_UNSPECIFIED\020\000\022\031\n" + "\025INSTALLATION_DISABLED\020\001\022\013\n" @@ -2698,8 +2702,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ALL\020\001\022\010\n" + "\004NONE\020\002\"\313\002\n" + "\026WorkloadMetadataConfig\022X\n\r" - + "node_metadata\030\001 \001(\0162=.google.contai" - + "ner.v1beta1.WorkloadMetadataConfig.NodeMetadataB\002\030\001\022C\n" + + "node_metadata\030\001 \001(\0162=.google.conta" + + "iner.v1beta1.WorkloadMetadataConfig.NodeMetadataB\002\030\001\022C\n" + "\004mode\030\002 \001(\01625.google.container.v1beta1.WorkloadMetadataConfig.Mode\"P\n" + "\014NodeMetadata\022\017\n" + "\013UNSPECIFIED\020\000\022\n\n" @@ -2735,11 +2739,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013recommended\030\003 \001(\010\"C\n" + "\014LocationType\022\035\n" + "\031LOCATION_TYPE_UNSPECIFIED\020\000\022\010\n" - + "\004ZONE\020\001\022\n\n" + + "\004ZONE\020\001\022\n" + + "\n" + "\006REGION\020\002\"\375\002\n" + "\017StatusCondition\022@\n" - + "\004code\030\001 " - + "\001(\0162..google.container.v1beta1.StatusCondition.CodeB\002\030\001\022\017\n" + + "\004code\030\001" + + " \001(\0162..google.container.v1beta1.StatusCondition.CodeB\002\030\001\022\017\n" + "\007message\030\002 \001(\t\022(\n" + "\016canonical_code\030\003 \001(\0162\020.google.rpc.Code\"\354\001\n" + "\004Code\022\013\n" @@ -2763,8 +2768,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010\022E\n" + "\021datapath_provider\030\013" + " \001(\0162*.google.container.v1beta1.DatapathProvider\022U\n" - + "\032private_ipv6_google_access\030\014 \001(\01621.google." - + "container.v1beta1.PrivateIPv6GoogleAccess\0227\n\n" + + "\032private_ipv6_google_access\030\014 \001(\01621.google" + + ".container.v1beta1.PrivateIPv6GoogleAccess\0227\n\n" + "dns_config\030\r" + " \001(\0132#.google.container.v1beta1.DNSConfig\022W\n" + "\033service_external_ips_config\030\017" @@ -2772,19 +2777,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022gateway_api_config\030\020" + " \001(\0132*.google.container.v1beta1.GatewayAPIConfig\022\037\n" + "\027enable_multi_networking\030\021 \001(\010\022k\n" - + "\032network_performance_config\030\022 \001(\0132G.google.container.v1beta1.Netw" - + "orkConfig.ClusterNetworkPerformanceConfig\022\'\n" + + "\032network_performance_config\030\022 \001(\0132G.google.container.v1beta1.Net" + + "workConfig.ClusterNetworkPerformanceConfig\022\'\n" + "\032enable_fqdn_network_policy\030\023 \001(\010H\000\210\001\001\022^\n" - + "\034in_transit_encryption_config\030\024 \001(\016" - + "23.google.container.v1beta1.InTransitEncryptionConfigH\001\210\001\001\0225\n" + + "\034in_transit_encryption_config\030\024 \001(" + + "\01623.google.container.v1beta1.InTransitEncryptionConfigH\001\210\001\001\0225\n" + "(enable_cilium_clusterwide_network_policy\030\025 \001(\010H\002\210\001\001\022)\n" + "\034default_enable_private_nodes\030\026 \001(\010H\003\210\001\001\0222\n" + "%disable_l4_lb_firewall_reconciliation\030\030" + " \001(\010H\004\210\001\001\032\343\001\n" + "\037ClusterNetworkPerformanceConfig\022v\n" - + "\033total_egress_bandwidth_tier\030\001 \001(" - + "\0162L.google.container.v1beta1.NetworkConf" - + "ig.ClusterNetworkPerformanceConfig.TierH\000\210\001\001\"(\n" + + "\033total_egress_bandwidth_tier\030\001 \001" + + "(\0162L.google.container.v1beta1.NetworkCon" + + "fig.ClusterNetworkPerformanceConfig.TierH\000\210\001\001\"(\n" + "\004Tier\022\024\n" + "\020TIER_UNSPECIFIED\020\000\022\n\n" + "\006TIER_1\020\001B\036\n" @@ -2815,8 +2820,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036UsableSubnetworkSecondaryRange\022\022\n\n" + "range_name\030\001 \001(\t\022\025\n\r" + "ip_cidr_range\030\002 \001(\t\022O\n" - + "\006status\030\003 \001(\0162?.googl" - + "e.container.v1beta1.UsableSubnetworkSecondaryRange.Status\"g\n" + + "\006status\030\003 \001(\0162?.goog" + + "le.container.v1beta1.UsableSubnetworkSecondaryRange.Status\"g\n" + "\006Status\022\013\n" + "\007UNKNOWN\020\000\022\n\n" + "\006UNUSED\020\001\022\022\n" @@ -2827,8 +2832,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "subnetwork\030\001 \001(\t\022\017\n" + "\007network\030\002 \001(\t\022\025\n\r" + "ip_cidr_range\030\003 \001(\t\022U\n" - + "\023secondary_ip_ranges\030\004 \003(\01328.googl" - + "e.container.v1beta1.UsableSubnetworkSecondaryRange\022\026\n" + + "\023secondary_ip_ranges\030\004 \003(\01328.goog" + + "le.container.v1beta1.UsableSubnetworkSecondaryRange\022\026\n" + "\016status_message\030\005 \001(\t\")\n" + "\026VerticalPodAutoscaling\022\017\n" + "\007enabled\030\001 \001(\010\"%\n" @@ -2850,7 +2855,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCLOUD_DNS\020\002\022\014\n" + "\010KUBE_DNS\020\003\"G\n" + "\010DNSScope\022\031\n" - + "\025DNS_SCOPE_UNSPECIFIED\020\000\022\021\n\r" + + "\025DNS_SCOPE_UNSPECIFIED\020\000\022\021\n" + + "\r" + "CLUSTER_SCOPE\020\001\022\r\n" + "\tVPC_SCOPE\020\002\".\n" + "\021MaxPodsConstraint\022\031\n" @@ -2867,13 +2873,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023enable_certificates\030\001 \001(\0132\032.google.protobuf.BoolValue\"\362\005\n" + "\022DatabaseEncryption\022\020\n" + "\010key_name\030\001 \001(\t\022A\n" - + "\005state\030\002 \001(\01622.google" - + ".container.v1beta1.DatabaseEncryption.State\022Z\n\r" - + "current_state\030\003 \001(\01629.google.cont" - + "ainer.v1beta1.DatabaseEncryption.CurrentStateB\003\340A\003H\000\210\001\001\022\034\n" + + "\005state\030\002 \001(\01622.googl" + + "e.container.v1beta1.DatabaseEncryption.State\022Z\n\r" + + "current_state\030\003 \001(\01629.google.con" + + "tainer.v1beta1.DatabaseEncryption.CurrentStateB\003\340A\003H\000\210\001\001\022\034\n" + "\017decryption_keys\030\004 \003(\tB\003\340A\003\022_\n" - + "\025last_operation_errors\030\005 \003(\0132;.g" - + "oogle.container.v1beta1.DatabaseEncryption.OperationErrorB\003\340A\003\032h\n" + + "\025last_operation_errors\030\005 \003(\0132;." + + "google.container.v1beta1.DatabaseEncryption.OperationErrorB\003\340A\003\032h\n" + "\016OperationError\022\020\n" + "\010key_name\030\001 \001(\t\022\025\n\r" + "error_message\030\002 \001(\t\022-\n" @@ -2892,11 +2898,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CURRENT_STATE_DECRYPTION_ERROR\020\006B\020\n" + "\016_current_state\"\367\002\n" + "\031ResourceUsageExportConfig\022e\n" - + "\024bigquery_destination\030\001 \001(\0132G.googl" - + "e.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination\022&\n" + + "\024bigquery_destination\030\001 \001(\0132G.goog" + + "le.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination\022&\n" + "\036enable_network_egress_metering\030\002 \001(\010\022r\n" - + "\033consumption_metering_config\030\003 \001(\0132M.google.containe" - + "r.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig\032)\n" + + "\033consumption_metering_config\030\003 \001(\0132M.google.contain" + + "er.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig\032)\n" + "\023BigQueryDestination\022\022\n\n" + "dataset_id\030\001 \001(\t\032,\n" + "\031ConsumptionMeteringConfig\022\017\n" @@ -2937,8 +2943,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033AutopilotCompatibilityIssue\0224\n" + "\020last_observation\030\001 \001(\0132\032.google.protobuf.Timestamp\022\027\n" + "\017constraint_type\030\002 \001(\t\022]\n" - + "\024incompatibility_type\030\003 \001(\0162?.google.contain" - + "er.v1beta1.AutopilotCompatibilityIssue.IssueType\022\020\n" + + "\024incompatibility_type\030\003 \001(\0162?.google.contai" + + "ner.v1beta1.AutopilotCompatibilityIssue.IssueType\022\020\n" + "\010subjects\030\004 \003(\t\022\031\n" + "\021documentation_url\030\005 \001(\t\022\023\n" + "\013description\030\006 \001(\t\"r\n" @@ -2967,17 +2973,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ipv4_cidr_block\030\003 \001(\t:\002\030\001\"\010\n" + "\006Master\"\224\001\n" + "\031AutopilotConversionStatus\022M\n" - + "\005state\030\002 \001(\01629.google.co" - + "ntainer.v1beta1.AutopilotConversionStatus.StateB\003\340A\003\"(\n" + + "\005state\030\002 \001(\01629.google.c" + + "ontainer.v1beta1.AutopilotConversionStatus.StateB\003\340A\003\"(\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\010\n" + "\004DONE\020\005\"\233\002\n" + "\tAutopilot\022\017\n" + "\007enabled\030\001 \001(\010\022N\n" - + "\026workload_policy_config\030\002 \001(\0132.." - + "google.container.v1beta1.WorkloadPolicyConfig\022S\n" - + "\021conversion_status\030\003 \001(\01323.googl" - + "e.container.v1beta1.AutopilotConversionStatusB\003\340A\003\022X\n" + + "\026workload_policy_config\030\002 \001(\0132." + + ".google.container.v1beta1.WorkloadPolicyConfig\022S\n" + + "\021conversion_status\030\003 \001(\01323.goog" + + "le.container.v1beta1.AutopilotConversionStatusB\003\340A\003\022X\n" + "\033privileged_admission_config\030\004" + " \001(\01323.google.container.v1beta1.PrivilegedAdmissionConfig\"4\n" + "\031PrivilegedAdmissionConfig\022\027\n" @@ -2994,11 +3000,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007enabled\030\001 \001(\010\022/\n" + "\005topic\030\002 \001(\tB \372A\035\n" + "\033pubsub.googleapis.com/Topic\022C\n" - + "\006filter\030\003 \001(\01323.goo" - + "gle.container.v1beta1.NotificationConfig.Filter\032T\n" + + "\006filter\030\003 \001(\01323.go" + + "ogle.container.v1beta1.NotificationConfig.Filter\032T\n" + "\006Filter\022J\n\n" - + "event_type\030\001 \003(\01626." - + "google.container.v1beta1.NotificationConfig.EventType\"\214\001\n" + + "event_type\030\001 \003(\01626" + + ".google.container.v1beta1.NotificationConfig.EventType\"\214\001\n" + "\tEventType\022\032\n" + "\026EVENT_TYPE_UNSPECIFIED\020\000\022\033\n" + "\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\r" @@ -3007,8 +3013,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022UPGRADE_INFO_EVENT\020\004\"\365\001\n" + "\021ConfidentialNodes\022\017\n" + "\007enabled\030\001 \001(\010\022h\n" - + "\032confidential_instance_type\030\002 \001(\0162D.google" - + ".container.v1beta1.ConfidentialNodes.ConfidentialInstanceType\"e\n" + + "\032confidential_instance_type\030\002 \001(\0162D.googl" + + "e.container.v1beta1.ConfidentialNodes.ConfidentialInstanceType\"e\n" + "\030ConfidentialInstanceType\022*\n" + "&CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003SEV\020\001\022\013\n" @@ -3081,15 +3087,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025IdentityServiceConfig\022\017\n" + "\007enabled\030\001 \001(\010\"[\n\r" + "LoggingConfig\022J\n" - + "\020component_config\030\001 \001(\01320.goo" - + "gle.container.v1beta1.LoggingComponentConfig\"\243\002\n" + + "\020component_config\030\001 \001(\01320.go" + + "ogle.container.v1beta1.LoggingComponentConfig\"\243\002\n" + "\026LoggingComponentConfig\022U\n" - + "\021enable_components\030\001 \003(\0162:.google.container.v1" - + "beta1.LoggingComponentConfig.Component\"\261\001\n" + + "\021enable_components\030\001 \003(\0162:.google.container.v" + + "1beta1.LoggingComponentConfig.Component\"\261\001\n" + "\tComponent\022\031\n" + "\025COMPONENT_UNSPECIFIED\020\000\022\025\n" + "\021SYSTEM_COMPONENTS\020\001\022\r\n" - + "\tWORKLOADS\020\002\022\r\n" + + "\tWORKLOADS\020\002\022\r" + + "\n" + "\tAPISERVER\020\003\022\r\n" + "\tSCHEDULER\020\004\022\026\n" + "\022CONTROLLER_MANAGER\020\005\022\014\n" @@ -3099,38 +3106,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027RayClusterLoggingConfig\022\017\n" + "\007enabled\030\001 \001(\010\"\246\002\n" + "\020MonitoringConfig\022M\n" - + "\020component_config\030\001 \001(\01323.google.c" - + "ontainer.v1beta1.MonitoringComponentConfig\022T\n" - + "\031managed_prometheus_config\030\002 \001(\01321." - + "google.container.v1beta1.ManagedPrometheusConfig\022m\n" - + "&advanced_datapath_observability_config\030\003 \001(\0132=.google.container.v1be" - + "ta1.AdvancedDatapathObservabilityConfig\"\243\002\n" + + "\020component_config\030\001 \001(\01323.google." + + "container.v1beta1.MonitoringComponentConfig\022T\n" + + "\031managed_prometheus_config\030\002 \001(\01321" + + ".google.container.v1beta1.ManagedPrometheusConfig\022m\n" + + "&advanced_datapath_observability_config\030\003 \001(\0132=.google.container.v1b" + + "eta1.AdvancedDatapathObservabilityConfig\"\243\002\n" + "#AdvancedDatapathObservabilityConfig\022\026\n" + "\016enable_metrics\030\001 \001(\010\022[\n\n" - + "relay_mode\030\002 " - + "\001(\0162G.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode\022\031\n" + + "relay_mode\030\002" + + " \001(\0162G.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode\022\031\n" + "\014enable_relay\030\003 \001(\010H\000\210\001\001\"[\n" + "\tRelayMode\022\032\n" + "\026RELAY_MODE_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\023\n" + "\017INTERNAL_VPC_LB\020\003\022\017\n" - + "\013EXTERNAL_LB\020\004B\017\n\r" + + "\013EXTERNAL_LB\020\004B\017\n" + + "\r" + "_enable_relay\"-\n" + "\032RayClusterMonitoringConfig\022\017\n" + "\007enabled\030\001 \001(\010\"_\n" + "\025NodePoolLoggingConfig\022F\n" - + "\016variant_config\030\001 \001(\0132..google.c" - + "ontainer.v1beta1.LoggingVariantConfig\"\244\001\n" + + "\016variant_config\030\001 \001(\0132..google." + + "container.v1beta1.LoggingVariantConfig\"\244\001\n" + "\024LoggingVariantConfig\022G\n" - + "\007variant\030\001 \001(\0162" - + "6.google.container.v1beta1.LoggingVariantConfig.Variant\"C\n" + + "\007variant\030\001 \001(\016" + + "26.google.container.v1beta1.LoggingVariantConfig.Variant\"C\n" + "\007Variant\022\027\n" + "\023VARIANT_UNSPECIFIED\020\000\022\013\n" + "\007DEFAULT\020\001\022\022\n" + "\016MAX_THROUGHPUT\020\002\"\376\002\n" + "\031MonitoringComponentConfig\022X\n" - + "\021enable_components\030\001 \003(\0162=.google.container" - + ".v1beta1.MonitoringComponentConfig.Component\"\206\002\n" + + "\021enable_components\030\001 \003(\0162=.google.containe" + + "r.v1beta1.MonitoringComponentConfig.Component\"\206\002\n" + "\tComponent\022\031\n" + "\025COMPONENT_UNSPECIFIED\020\000\022\025\n" + "\021SYSTEM_COMPONENTS\020\001\022\021\n" @@ -3151,8 +3159,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004DCGM\020\017\022\n\n" + "\006JOBSET\020\020\"\265\001\n" + "\016PodAutoscaling\022M\n" - + "\013hpa_profile\030\002 \001(\01623.google.c" - + "ontainer.v1beta1.PodAutoscaling.HPAProfileH\000\210\001\001\"D\n\n" + + "\013hpa_profile\030\002 \001(\01623.google." + + "container.v1beta1.PodAutoscaling.HPAProfileH\000\210\001\001\"D\n\n" + "HPAProfile\022\033\n" + "\027HPA_PROFILE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\017\n" @@ -3162,16 +3170,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\001 \001(\t\022\027\n\n" + "membership\030\002 \001(\tB\003\340A\003\022\033\n" + "\016pre_registered\030\003 \001(\010B\003\340A\003\022G\n" - + "\017membership_type\030\004 \001(\0162" - + "..google.container.v1beta1.Fleet.MembershipType\"B\n" + + "\017membership_type\030\004 \001(\016" + + "2..google.container.v1beta1.Fleet.MembershipType\"B\n" + "\016MembershipType\022\037\n" + "\033MEMBERSHIP_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013LIGHTWEIGHT\020\001\"\306\006\n" + "\033ControlPlaneEndpointsConfig\022d\n" - + "\023dns_endpoint_config\030\001 \001(\0132G.google.container.v1be" - + "ta1.ControlPlaneEndpointsConfig.DNSEndpointConfig\022d\n" - + "\023ip_endpoints_config\030\003 \001(\0132G" - + ".google.container.v1beta1.ControlPlaneEndpointsConfig.IPEndpointsConfig\032\364\001\n" + + "\023dns_endpoint_config\030\001 \001(\0132G.google.container.v1b" + + "eta1.ControlPlaneEndpointsConfig.DNSEndpointConfig\022d\n" + + "\023ip_endpoints_config\030\003 \001(\0132" + + "G.google.container.v1beta1.ControlPlaneEndpointsConfig.IPEndpointsConfig\032\364\001\n" + "\021DNSEndpointConfig\022\025\n" + "\010endpoint\030\002 \001(\tB\003\340A\003\022#\n" + "\026allow_external_traffic\030\003 \001(\010H\000\210\001\001\022&\n" @@ -3182,10 +3190,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_enable_k8s_certs_via_dns\032\343\002\n" + "\021IPEndpointsConfig\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001\022#\n" - + "\026enable_public_endpoint\030\002 \001(\010H\001\210\001\001\022\032\n\r" + + "\026enable_public_endpoint\030\002 \001(\010H\001\210\001\001", + "\022\032\n\r" + "global_access\030\003 \001(\010H\002\210\001\001\022\\\n" - + "\032authorized_networks_config\030\004 \001(\01328.google.contain", - "er.v1beta1.MasterAuthorizedNetworksConfig\022\034\n" + + "\032authorized_networks_config\030\004 \001(\01328.google.contai" + + "ner.v1beta1.MasterAuthorizedNetworksConfig\022\034\n" + "\017public_endpoint\030\005 \001(\tB\003\340A\003\022\035\n" + "\020private_endpoint\030\006 \001(\tB\003\340A\003\022#\n" + "\033private_endpoint_subnetwork\030\007 \001(\tB\n\n" @@ -3193,24 +3202,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_enable_public_endpointB\020\n" + "\016_global_access\"\211\001\n" + "\023ResourceManagerTags\022E\n" - + "\004tags\030\001 \003(\01327.goo" - + "gle.container.v1beta1.ResourceManagerTags.TagsEntry\032+\n" + + "\004tags\030\001 \003(\01327.go" + + "ogle.container.v1beta1.ResourceManagerTags.TagsEntry\032+\n" + "\tTagsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"\206\002\n" + "\020EnterpriseConfig\022Q\n" - + "\014cluster_tier\030\001 \001(\01626.google.container.v" - + "1beta1.EnterpriseConfig.ClusterTierB\003\340A\003\022L\n" - + "\014desired_tier\030\002 \001(\01626.google.containe" - + "r.v1beta1.EnterpriseConfig.ClusterTier\"M\n" + + "\014cluster_tier\030\001 \001(\01626.google.container." + + "v1beta1.EnterpriseConfig.ClusterTierB\003\340A\003\022L\n" + + "\014desired_tier\030\002 \001(\01626.google.contain" + + "er.v1beta1.EnterpriseConfig.ClusterTier\"M\n" + "\013ClusterTier\022\034\n" + "\030CLUSTER_TIER_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\016\n\n" + "ENTERPRISE\020\002\032\002\030\001:\002\030\001\"\255\002\n" + "\023SecretManagerConfig\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001\022Z\n" - + "\017rotation_config\030\002 \001(\0132<.googl" - + "e.container.v1beta1.SecretManagerConfig.RotationConfigH\001\210\001\001\032\203\001\n" + + "\017rotation_config\030\002 \001(\0132<.goog" + + "le.container.v1beta1.SecretManagerConfig.RotationConfigH\001\210\001\001\032\203\001\n" + "\016RotationConfig\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001\0229\n" + "\021rotation_interval\030\002" @@ -3238,10 +3248,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ClusterUpgradeInfo\022!\n" + "\024minor_target_version\030\007 \001(\tH\000\210\001\001\022!\n" + "\024patch_target_version\030\010 \001(\tH\001\210\001\001\022[\n" - + "\023auto_upgrade_status\030\002 \003(" - + "\0162>.google.container.v1beta1.ClusterUpgradeInfo.AutoUpgradeStatus\022[\n\r" - + "paused_reason\030\003 \003(\0162D.google.container.v1beta1.Clus" - + "terUpgradeInfo.AutoUpgradePausedReason\022A\n" + + "\023auto_upgrade_status\030\002 \003" + + "(\0162>.google.container.v1beta1.ClusterUpgradeInfo.AutoUpgradeStatus\022[\n\r" + + "paused_reason\030\003 \003(\0162D.google.container.v1beta1.Clu" + + "sterUpgradeInfo.AutoUpgradePausedReason\022A\n" + "\017upgrade_details\030\004 \003(\0132(.google.container.v1beta1.UpgradeDetails\022.\n" + "!end_of_standard_support_timestamp\030\005 \001(\tH\002\210\001\001\022.\n" + "!end_of_extended_support_timestamp\030\006 \001(\tH\003\210\001\001\"Z\n" @@ -3289,11 +3299,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023NodePoolUpgradeInfo\022!\n" + "\024minor_target_version\030\001 \001(\tH\000\210\001\001\022!\n" + "\024patch_target_version\030\002 \001(\tH\001\210\001\001\022\\\n" - + "\023auto_upgrade_status\030\003" - + " \003(\0162?.google.container.v1beta1.NodePoolUpgradeInfo.AutoUpgradeStatus\022\\\n" - + "\r" - + "paused_reason\030\004 \003(\0162E.google.container." - + "v1beta1.NodePoolUpgradeInfo.AutoUpgradePausedReason\022A\n" + + "\023auto_upgrade_status\030\003 \003(\0162?.google.container.v1beta1" + + ".NodePoolUpgradeInfo.AutoUpgradeStatus\022\\\n\r" + + "paused_reason\030\004 \003(\0162E.google.container" + + ".v1beta1.NodePoolUpgradeInfo.AutoUpgradePausedReason\022A\n" + "\017upgrade_details\030\005 \003(\0132(.google.container.v1beta1.UpgradeDetails\022.\n" + "!end_of_standard_support_timestamp\030\006 \001(\tH\002\210\001\001\022.\n" + "!end_of_extended_support_timestamp\030\007 \001(\tH\003\210\001\001\"Z\n" @@ -3313,14 +3322,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"_end_of_standard_support_timestampB$\n" + "\"_end_of_extended_support_timestamp\"\236\001\n" + "\024GkeAutoUpgradeConfig\022L\n\n" - + "patch_mode\030\001 \001(\01628.g" - + "oogle.container.v1beta1.GkeAutoUpgradeConfig.PatchMode\"8\n" + + "patch_mode\030\001 \001(\01628." + + "google.container.v1beta1.GkeAutoUpgradeConfig.PatchMode\"8\n" + "\tPatchMode\022\032\n" + "\026PATCH_MODE_UNSPECIFIED\020\000\022\017\n" + "\013ACCELERATED\020\001\"\336\001\n" + "\021NetworkTierConfig\022M\n" - + "\014network_tier\030\001 \001(\01627.g" - + "oogle.container.v1beta1.NetworkTierConfig.NetworkTier\"z\n" + + "\014network_tier\030\001 \001(\01627." + + "google.container.v1beta1.NetworkTierConfig.NetworkTier\"z\n" + "\013NetworkTier\022\034\n" + "\030NETWORK_TIER_UNSPECIFIED\020\000\022\030\n" + "\024NETWORK_TIER_DEFAULT\020\001\022\030\n" @@ -3345,8 +3354,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL\020\003*W\n" + "\023UpgradeResourceType\022%\n" + "!UPGRADE_RESOURCE_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006MASTER\020\001\022\r" - + "\n" + + "\006MASTER\020\001\022\r\n" + "\tNODE_POOL\020\002*^\n" + "\026NodePoolUpdateStrategy\022)\n" + "%NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\n" @@ -3365,224 +3373,223 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036IN_TRANSIT_ENCRYPTION_DISABLED\020\001\0220\n" + ",IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT\020\0022\225S\n" + "\016ClusterManager\022\363\001\n" - + "\014ListClusters\022-.google.container.v1beta1.ListClustersRequest\032" - + "..google.container.v1beta1.ListClustersR" - + "esponse\"\203\001\332A\017project_id,zone\202\323\344\223\002k\0221/v1b" - + "eta1/{parent=projects/*/locations/*}/clu" - + "stersZ6\0224/v1beta1/projects/{project_id}/zones/{zone}/clusters\022\372\001\n\n" - + "GetCluster\022+.google.container.v1beta1.GetClusterReques" - + "t\032!.google.container.v1beta1.Cluster\"\233\001\332" - + "A\032project_id,zone,cluster_id\202\323\344\223\002x\0221/v1b" - + "eta1/{name=projects/*/locations/*/cluste" - + "rs/*}ZC\022A/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}\022\370\001\n\r" - + "CreateCluster\022..google.container.v1beta1." - + "CreateClusterRequest\032#.google.container." - + "v1beta1.Operation\"\221\001\332A\027project_id,zone,c" - + "luster\202\323\344\223\002q\"1/v1beta1/{parent=projects/" - + "*/locations/*}/clusters:\001*Z9\"4/v1beta1/p" - + "rojects/{project_id}/zones/{zone}/clusters:\001*\022\217\002\n\r" - + "UpdateCluster\022..google.container.v1beta1.UpdateClusterRequest\032#.google" - + ".container.v1beta1.Operation\"\250\001\332A!projec" - + "t_id,zone,cluster_id,update\202\323\344\223\002~\0321/v1be" - + "ta1/{name=projects/*/locations/*/clusters/*}:\001*ZF\032A/v1beta1/projects/{project_id" - + "}/zones/{zone}/clusters/{cluster_id}:\001*\022\232\002\n" - + "\016UpdateNodePool\022/.google.container.v1beta1.UpdateNodePoolRequest\032#.google.con" - + "tainer.v1beta1.Operation\"\261\001\202\323\344\223\002\252\001\032=/v1b" - + "eta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:\001*Zf\"a/v1beta1/project" - + "s/{project_id}/zones/{zone}/clusters/{cl" - + "uster_id}/nodePools/{node_pool_id}/update:\001*\022\276\002\n" - + "\026SetNodePoolAutoscaling\0227.google.container.v1beta1.SetNodePoolAutoscalin" - + "gRequest\032#.google.container.v1beta1.Oper" - + "ation\"\305\001\202\323\344\223\002\276\001\"L/v1beta1/{name=projects" - + "/*/locations/*/clusters/*/nodePools/*}:setAutoscaling:\001*Zk\"f/v1beta1/projects/{p" - + "roject_id}/zones/{zone}/clusters/{cluste" - + "r_id}/nodePools/{node_pool_id}/autoscaling:\001*\022\264\002\n" - + "\021SetLoggingService\0222.google.container.v1beta1.SetLoggingServiceRequest\032" - + "#.google.container.v1beta1.Operation\"\305\001\332" - + "A*project_id,zone,cluster_id,logging_ser" - + "vice\202\323\344\223\002\221\001\"/v1beta1/{name=proje" - + "cts/*/locations/*/clusters/*}:setLocations:\001*ZP\"K/v1beta1/projects/{project_id}/" - + "zones/{zone}/clusters/{cluster_id}/locations:\001*\022\252\002\n" - + "\014UpdateMaster\022-.google.container.v1beta1.UpdateMasterRequest\032#.google" - + ".container.v1beta1.Operation\"\305\001\332A)projec" - + "t_id,zone,cluster_id,master_version\202\323\344\223\002" - + "\222\001\">/v1beta1/{name=projects/*/locations/" - + "*/clusters/*}:updateMaster:\001*ZM\"H/v1beta" - + "1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master:\001*\022\210\002\n\r" - + "SetMasterAuth\022..google.container.v1beta1.SetMas" - + "terAuthRequest\032#.google.container.v1beta" - + "1.Operation\"\241\001\202\323\344\223\002\232\001\"?/v1beta1/{name=pr" - + "ojects/*/locations/*/clusters/*}:setMasterAuth:\001*ZT\"O/v1beta1/projects/{project_" - + "id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth:\001*\022\202\002\n\r" - + "DeleteCluster\022..google.container.v1beta1.DeleteClusterReques" - + "t\032#.google.container.v1beta1.Operation\"\233" - + "\001\332A\032project_id,zone,cluster_id\202\323\344\223\002x*1/v" - + "1beta1/{name=projects/*/locations/*/clus" - + "ters/*}ZC*A/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}\022\375\001\n" - + "\016ListOperations\022/.google.container.v1bet" - + "a1.ListOperationsRequest\0320.google.contai" - + "ner.v1beta1.ListOperationsResponse\"\207\001\332A\017" - + "project_id,zone\202\323\344\223\002o\0223/v1beta1/{parent=" - + "projects/*/locations/*}/operationsZ8\0226/v" - + "1beta1/projects/{project_id}/zones/{zone}/operations\022\210\002\n" - + "\014GetOperation\022-.google.container.v1beta1.GetOperationRequest\032#.g" - + "oogle.container.v1beta1.Operation\"\243\001\332A\034p" - + "roject_id,zone,operation_id\202\323\344\223\002~\0223/v1be" - + "ta1/{name=projects/*/locations/*/operations/*}ZG\022E/v1beta1/projects/{project_id}" - + "/zones/{zone}/operations/{operation_id}\022\226\002\n" - + "\017CancelOperation\0220.google.container.v" - + "1beta1.CancelOperationRequest\032\026.google.p" - + "rotobuf.Empty\"\270\001\332A\034project_id,zone,opera" - + "tion_id\202\323\344\223\002\222\001\":/v1beta1/{name=projects/" - + "*/locations/*/operations/*}:cancel:\001*ZQ\"L/v1beta1/projects/{project_id}/zones/{z" - + "one}/operations/{operation_id}:cancel:\001*\022\367\001\n" - + "\017GetServerConfig\0220.google.container.v1beta1.GetServerConfigRequest\032&.google." - + "container.v1beta1.ServerConfig\"\211\001\332A\017proj" - + "ect_id,zone\202\323\344\223\002q\0223/v1beta1/{name=projec" - + "ts/*/locations/*}/serverConfigZ:\0228/v1bet" - + "a1/projects/{project_id}/zones/{zone}/serverconfig\022\265\001\n" - + "\016GetJSONWebKeys\022/.google.container.v1beta1.GetJSONWebKeysRequest\0320" - + ".google.container.v1beta1.GetJSONWebKeys" - + "Response\"@\202\323\344\223\002:\0228/v1beta1/{parent=projects/*/locations/*/clusters/*}/jwks\022\245\002\n\r" - + "ListNodePools\022..google.container.v1beta1." - + "ListNodePoolsRequest\032/.google.container." - + "v1beta1.ListNodePoolsResponse\"\262\001\332A\032proje" - + "ct_id,zone,cluster_id\202\323\344\223\002\216\001\022=/v1beta1/{" - + "parent=projects/*/locations/*/clusters/*}/nodePoolsZM\022K/v1beta1/projects/{projec" - + "t_id}/zones/{zone}/clusters/{cluster_id}/nodePools\022\260\002\n" - + "\013GetNodePool\022,.google.container.v1beta1.GetNodePoolRequest\032\".googl" - + "e.container.v1beta1.NodePool\"\316\001\332A\'projec" - + "t_id,zone,cluster_id,node_pool_id\202\323\344\223\002\235\001" - + "\022=/v1beta1/{name=projects/*/locations/*/" - + "clusters/*/nodePools/*}Z\\\022Z/v1beta1/projects/{project_id}/zones/{zone}/clusters/" - + "{cluster_id}/nodePools/{node_pool_id}\022\253\002\n" - + "\016CreateNodePool\022/.google.container.v1be" - + "ta1.CreateNodePoolRequest\032#.google.conta" - + "iner.v1beta1.Operation\"\302\001\332A$project_id,z" - + "one,cluster_id,node_pool\202\323\344\223\002\224\001\"=/v1beta" - + "1/{parent=projects/*/locations/*/clusters/*}/nodePools:\001*ZP\"K/v1beta1/projects/{" - + "project_id}/zones/{zone}/clusters/{cluster_id}/nodePools:\001*\022\267\002\n" - + "\016DeleteNodePool\022/.google.container.v1beta1.DeleteNodePool" - + "Request\032#.google.container.v1beta1.Opera" - + "tion\"\316\001\332A\'project_id,zone,cluster_id,nod" - + "e_pool_id\202\323\344\223\002\235\001*=/v1beta1/{name=project" - + "s/*/locations/*/clusters/*/nodePools/*}Z\\*Z/v1beta1/projects/{project_id}/zones/" - + "{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}\022\305\001\n" - + "\027CompleteNodePoolUpgrade\0228.google.container.v1beta1.CompleteNod" - + "ePoolUpgradeRequest\032\026.google.protobuf.Em" - + "pty\"X\202\323\344\223\002R\"M/v1beta1/{name=projects/*/l" - + "ocations/*/clusters/*/nodePools/*}:completeUpgrade:\001*\022\341\002\n" - + "\027RollbackNodePoolUpgrade\0228.google.container.v1beta1.RollbackNod" - + "ePoolUpgradeRequest\032#.google.container.v" - + "1beta1.Operation\"\346\001\332A\'project_id,zone,cl" - + "uster_id,node_pool_id\202\323\344\223\002\265\001\"F/v1beta1/{" - + "name=projects/*/locations/*/clusters/*/nodePools/*}:rollback:\001*Zh\"c/v1beta1/proj" - + "ects/{project_id}/zones/{zone}/clusters/" - + "{cluster_id}/nodePools/{node_pool_id}:rollback:\001*\022\362\002\n" - + "\025SetNodePoolManagement\0226.google.container.v1beta1.SetNodePoolManage" - + "mentRequest\032#.google.container.v1beta1.O" - + "peration\"\373\001\332A2project_id,zone,cluster_id" - + ",node_pool_id,management\202\323\344\223\002\277\001\"K/v1beta" - + "1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement:\001*Zm\"h/v1be" - + "ta1/projects/{project_id}/zones/{zone}/c" - + "lusters/{cluster_id}/nodePools/{node_pool_id}/setManagement:\001*\022\304\002\n" - + "\tSetLabels\022*.google.container.v1beta1.SetLabelsRequest" - + "\032#.google.container.v1beta1.Operation\"\345\001" - + "\332A/v1beta1/{name=proj" + + "ects/*/locations/*/clusters/*}:setLocations:\001*ZP\"K/v1beta1/projects/{project_id}" + + "/zones/{zone}/clusters/{cluster_id}/locations:\001*\022\252\002\n" + + "\014UpdateMaster\022-.google.container.v1beta1.UpdateMasterRequest\032#.googl" + + "e.container.v1beta1.Operation\"\305\001\332A)proje" + + "ct_id,zone,cluster_id,master_version\202\323\344\223" + + "\002\222\001\">/v1beta1/{name=projects/*/locations" + + "/*/clusters/*}:updateMaster:\001*ZM\"H/v1bet" + + "a1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master:\001*\022\210\002\n\r" + + "SetMasterAuth\022..google.container.v1beta1.SetMa" + + "sterAuthRequest\032#.google.container.v1bet" + + "a1.Operation\"\241\001\202\323\344\223\002\232\001\"?/v1beta1/{name=p" + + "rojects/*/locations/*/clusters/*}:setMasterAuth:\001*ZT\"O/v1beta1/projects/{project" + + "_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth:\001*\022\202\002\n\r" + + "DeleteCluster\022..google.container.v1beta1.DeleteClusterReque" + + "st\032#.google.container.v1beta1.Operation\"" + + "\233\001\332A\032project_id,zone,cluster_id\202\323\344\223\002x*1/" + + "v1beta1/{name=projects/*/locations/*/clusters/*}ZC*A/v1beta1/projects/{project_i" + + "d}/zones/{zone}/clusters/{cluster_id}\022\375\001\n" + + "\016ListOperations\022/.google.container.v1be" + + "ta1.ListOperationsRequest\0320.google.conta" + + "iner.v1beta1.ListOperationsResponse\"\207\001\332A" + + "\017project_id,zone\202\323\344\223\002o\0223/v1beta1/{parent" + + "=projects/*/locations/*}/operationsZ8\0226/" + + "v1beta1/projects/{project_id}/zones/{zone}/operations\022\210\002\n" + + "\014GetOperation\022-.google.container.v1beta1.GetOperationRequest\032#." + + "google.container.v1beta1.Operation\"\243\001\332A\034" + + "project_id,zone,operation_id\202\323\344\223\002~\0223/v1b" + + "eta1/{name=projects/*/locations/*/operations/*}ZG\022E/v1beta1/projects/{project_id" + + "}/zones/{zone}/operations/{operation_id}\022\226\002\n" + + "\017CancelOperation\0220.google.container." + + "v1beta1.CancelOperationRequest\032\026.google." + + "protobuf.Empty\"\270\001\332A\034project_id,zone,oper" + + "ation_id\202\323\344\223\002\222\001\":/v1beta1/{name=projects" + + "/*/locations/*/operations/*}:cancel:\001*ZQ\"L/v1beta1/projects/{project_id}/zones/{" + + "zone}/operations/{operation_id}:cancel:\001*\022\367\001\n" + + "\017GetServerConfig\0220.google.container.v1beta1.GetServerConfigRequest\032&.google" + + ".container.v1beta1.ServerConfig\"\211\001\332A\017pro" + + "ject_id,zone\202\323\344\223\002q\0223/v1beta1/{name=proje" + + "cts/*/locations/*}/serverConfigZ:\0228/v1be" + + "ta1/projects/{project_id}/zones/{zone}/serverconfig\022\265\001\n" + + "\016GetJSONWebKeys\022/.google.container.v1beta1.GetJSONWebKeysRequest\032" + + "0.google.container.v1beta1.GetJSONWebKey" + + "sResponse\"@\202\323\344\223\002:\0228/v1beta1/{parent=projects/*/locations/*/clusters/*}/jwks\022\245\002\n\r" + + "ListNodePools\022..google.container.v1beta1.ListNodePoolsRequest\032/.google.container" + + ".v1beta1.ListNodePoolsResponse\"\262\001\332A\032proj" + + "ect_id,zone,cluster_id\202\323\344\223\002\216\001\022=/v1beta1/" + + "{parent=projects/*/locations/*/clusters/*}/nodePoolsZM\022K/v1beta1/projects/{proje" + + "ct_id}/zones/{zone}/clusters/{cluster_id}/nodePools\022\260\002\n" + + "\013GetNodePool\022,.google.container.v1beta1.GetNodePoolRequest\032\".goog" + + "le.container.v1beta1.NodePool\"\316\001\332A\'proje" + + "ct_id,zone,cluster_id,node_pool_id\202\323\344\223\002\235" + + "\001\022=/v1beta1/{name=projects/*/locations/*" + + "/clusters/*/nodePools/*}Z\\\022Z/v1beta1/projects/{project_id}/zones/{zone}/clusters" + + "/{cluster_id}/nodePools/{node_pool_id}\022\253\002\n" + + "\016CreateNodePool\022/.google.container.v1b" + + "eta1.CreateNodePoolRequest\032#.google.cont" + + "ainer.v1beta1.Operation\"\302\001\332A$project_id," + + "zone,cluster_id,node_pool\202\323\344\223\002\224\001\"=/v1bet" + + "a1/{parent=projects/*/locations/*/clusters/*}/nodePools:\001*ZP\"K/v1beta1/projects/" + + "{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools:\001*\022\267\002\n" + + "\016DeleteNodePool\022/.google.container.v1beta1.DeleteNodePoo" + + "lRequest\032#.google.container.v1beta1.Oper" + + "ation\"\316\001\332A\'project_id,zone,cluster_id,no" + + "de_pool_id\202\323\344\223\002\235\001*=/v1beta1/{name=projec" + + "ts/*/locations/*/clusters/*/nodePools/*}Z\\*Z/v1beta1/projects/{project_id}/zones" + + "/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}\022\305\001\n" + + "\027CompleteNodePoolUpgrade\0228.google.container.v1beta1.CompleteNo" + + "dePoolUpgradeRequest\032\026.google.protobuf.E" + + "mpty\"X\202\323\344\223\002R\"M/v1beta1/{name=projects/*/" + + "locations/*/clusters/*/nodePools/*}:completeUpgrade:\001*\022\341\002\n" + + "\027RollbackNodePoolUpgrade\0228.google.container.v1beta1.RollbackNo" + + "dePoolUpgradeRequest\032#.google.container." + + "v1beta1.Operation\"\346\001\332A\'project_id,zone,c" + + "luster_id,node_pool_id\202\323\344\223\002\265\001\"F/v1beta1/" + + "{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback:\001*Zh\"c/v1beta1/pro" + + "jects/{project_id}/zones/{zone}/clusters" + + "/{cluster_id}/nodePools/{node_pool_id}:rollback:\001*\022\362\002\n" + + "\025SetNodePoolManagement\0226.google.container.v1beta1.SetNodePoolManag" + + "ementRequest\032#.google.container.v1beta1." + + "Operation\"\373\001\332A2project_id,zone,cluster_i" + + "d,node_pool_id,management\202\323\344\223\002\277\001\"K/v1bet" + + "a1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement:\001*Zm\"h/v1b" + + "eta1/projects/{project_id}/zones/{zone}/" + + "clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement:\001*\022\304\002\n" + + "\tSetLabels\022*.google.container.v1beta1.SetLabelsReques" + + "t\032#.google.container.v1beta1.Operation\"\345" + + "\001\332A * * @deprecated google.container.v1beta1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3526 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3522 * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ @java.lang.Override @@ -597,7 +597,7 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3526 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3522 * @return The desiredMasterAuthorizedNetworksConfig. */ @java.lang.Override @@ -1016,7 +1016,7 @@ public com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPod * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_private_cluster_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3567 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3563 * @return Whether the desiredPrivateClusterConfig field is set. */ @java.lang.Override @@ -1046,7 +1046,7 @@ public boolean hasDesiredPrivateClusterConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_private_cluster_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3567 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3563 * @return The desiredPrivateClusterConfig. */ @java.lang.Override @@ -1325,7 +1325,7 @@ public com.google.container.v1beta1.ReleaseChannelOrBuilder getDesiredReleaseCha * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3584 + * google/container/v1beta1/cluster_service.proto;l=3580 * @return Whether the privateClusterConfig field is set. */ @java.lang.Override @@ -1348,7 +1348,7 @@ public boolean hasPrivateClusterConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3584 + * google/container/v1beta1/cluster_service.proto;l=3580 * @return The privateClusterConfig. */ @java.lang.Override @@ -1396,7 +1396,7 @@ public com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig * .google.container.v1beta1.TpuConfig desired_tpu_config = 38 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3589 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return Whether the desiredTpuConfig field is set. */ @java.lang.Override @@ -1417,7 +1417,7 @@ public boolean hasDesiredTpuConfig() { * .google.container.v1beta1.TpuConfig desired_tpu_config = 38 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3589 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return The desiredTpuConfig. */ @java.lang.Override @@ -2576,7 +2576,7 @@ public com.google.container.v1beta1.IdentityServiceConfig getDesiredIdentityServ * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3673 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3669 * @return Whether the desiredEnablePrivateEndpoint field is set. */ @java.lang.Override @@ -2600,7 +2600,7 @@ public boolean hasDesiredEnablePrivateEndpoint() { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3673 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3669 * @return The desiredEnablePrivateEndpoint. */ @java.lang.Override @@ -2792,7 +2792,7 @@ public com.google.container.v1beta1.NetworkTags getDesiredNodePoolAutoConfigNetw * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return Whether the desiredProtectConfig field is set. */ @java.lang.Override @@ -2814,7 +2814,7 @@ public boolean hasDesiredProtectConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The desiredProtectConfig. */ @java.lang.Override @@ -4183,7 +4183,7 @@ public boolean hasDesiredNodePoolAutoConfigKubeletConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3783 + * google/container/v1beta1/cluster_service.proto;l=3779 * @return Whether the userManagedKeysConfig field is set. */ @java.lang.Override @@ -4209,7 +4209,7 @@ public boolean hasUserManagedKeysConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3783 + * google/container/v1beta1/cluster_service.proto;l=3779 * @return The userManagedKeysConfig. */ @java.lang.Override @@ -4385,7 +4385,7 @@ public boolean hasDesiredAdditionalIpRangesConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3796 + * google/container/v1beta1/cluster_service.proto;l=3792 * @return Whether the desiredEnterpriseConfig field is set. */ @java.lang.Override @@ -4409,7 +4409,7 @@ public boolean hasDesiredEnterpriseConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3796 + * google/container/v1beta1/cluster_service.proto;l=3792 * @return The desiredEnterpriseConfig. */ @java.lang.Override @@ -4831,6 +4831,60 @@ public com.google.container.v1beta1.NetworkTierConfig getDesiredNetworkTierConfi : desiredNetworkTierConfig_; } + public static final int DESIRED_SECRET_SYNC_CONFIG_FIELD_NUMBER = 158; + private com.google.container.v1beta1.SecretSyncConfig desiredSecretSyncConfig_; + + /** + * + * + *
                                    +   * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +   * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + * + * @return Whether the desiredSecretSyncConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredSecretSyncConfig() { + return ((bitField2_ & 0x00000040) != 0); + } + + /** + * + * + *
                                    +   * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +   * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + * + * @return The desiredSecretSyncConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.SecretSyncConfig getDesiredSecretSyncConfig() { + return desiredSecretSyncConfig_ == null + ? com.google.container.v1beta1.SecretSyncConfig.getDefaultInstance() + : desiredSecretSyncConfig_; + } + + /** + * + * + *
                                    +   * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +   * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + */ + @java.lang.Override + public com.google.container.v1beta1.SecretSyncConfigOrBuilder + getDesiredSecretSyncConfigOrBuilder() { + return desiredSecretSyncConfig_ == null + ? com.google.container.v1beta1.SecretSyncConfig.getDefaultInstance() + : desiredSecretSyncConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5094,6 +5148,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField2_ & 0x00000008) != 0)) { output.writeMessage(156, getDesiredAnonymousAuthenticationConfig()); } + if (((bitField2_ & 0x00000040) != 0)) { + output.writeMessage(158, getDesiredSecretSyncConfig()); + } getUnknownFields().writeTo(output); } @@ -5474,6 +5531,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 156, getDesiredAnonymousAuthenticationConfig()); } + if (((bitField2_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 158, getDesiredSecretSyncConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5848,6 +5910,10 @@ public boolean equals(final java.lang.Object obj) { if (hasDesiredNetworkTierConfig()) { if (!getDesiredNetworkTierConfig().equals(other.getDesiredNetworkTierConfig())) return false; } + if (hasDesiredSecretSyncConfig() != other.hasDesiredSecretSyncConfig()) return false; + if (hasDesiredSecretSyncConfig()) { + if (!getDesiredSecretSyncConfig().equals(other.getDesiredSecretSyncConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6175,6 +6241,10 @@ public int hashCode() { hash = (37 * hash) + DESIRED_NETWORK_TIER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDesiredNetworkTierConfig().hashCode(); } + if (hasDesiredSecretSyncConfig()) { + hash = (37 * hash) + DESIRED_SECRET_SYNC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredSecretSyncConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -6381,6 +6451,7 @@ private void maybeForceBuilderInitialization() { getDesiredAnonymousAuthenticationConfigFieldBuilder(); getGkeAutoUpgradeConfigFieldBuilder(); getDesiredNetworkTierConfigFieldBuilder(); + getDesiredSecretSyncConfigFieldBuilder(); } } @@ -6723,6 +6794,11 @@ public Builder clear() { desiredNetworkTierConfigBuilder_.dispose(); desiredNetworkTierConfigBuilder_ = null; } + desiredSecretSyncConfig_ = null; + if (desiredSecretSyncConfigBuilder_ != null) { + desiredSecretSyncConfigBuilder_.dispose(); + desiredSecretSyncConfigBuilder_ = null; + } return this; } @@ -7278,6 +7354,13 @@ private void buildPartial2(com.google.container.v1beta1.ClusterUpdate result) { : desiredNetworkTierConfigBuilder_.build(); to_bitField2_ |= 0x00000020; } + if (((from_bitField2_ & 0x00020000) != 0)) { + result.desiredSecretSyncConfig_ = + desiredSecretSyncConfigBuilder_ == null + ? desiredSecretSyncConfig_ + : desiredSecretSyncConfigBuilder_.build(); + to_bitField2_ |= 0x00000040; + } result.bitField1_ |= to_bitField1_; result.bitField2_ |= to_bitField2_; } @@ -7597,6 +7680,9 @@ public Builder mergeFrom(com.google.container.v1beta1.ClusterUpdate other) { if (other.hasDesiredNetworkTierConfig()) { mergeDesiredNetworkTierConfig(other.getDesiredNetworkTierConfig()); } + if (other.hasDesiredSecretSyncConfig()) { + mergeDesiredSecretSyncConfig(other.getDesiredSecretSyncConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -8188,6 +8274,13 @@ public Builder mergeFrom( bitField2_ |= 0x00004000; break; } // case 1250 + case 1266: + { + input.readMessage( + getDesiredSecretSyncConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00020000; + break; + } // case 1266 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9466,7 +9559,7 @@ public Builder addDesiredLocationsBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_master_authorized_networks_config - * is deprecated. See google/container/v1beta1/cluster_service.proto;l=3526 + * is deprecated. See google/container/v1beta1/cluster_service.proto;l=3522 * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ @java.lang.Deprecated @@ -9490,7 +9583,7 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_master_authorized_networks_config - * is deprecated. See google/container/v1beta1/cluster_service.proto;l=3526 + * is deprecated. See google/container/v1beta1/cluster_service.proto;l=3522 * @return The desiredMasterAuthorizedNetworksConfig. */ @java.lang.Deprecated @@ -10948,7 +11041,7 @@ public Builder clearDesiredVerticalPodAutoscaling() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_private_cluster_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3567 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3563 * @return Whether the desiredPrivateClusterConfig field is set. */ @java.lang.Deprecated @@ -10977,7 +11070,7 @@ public boolean hasDesiredPrivateClusterConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_private_cluster_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3567 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3563 * @return The desiredPrivateClusterConfig. */ @java.lang.Deprecated @@ -12068,7 +12161,7 @@ public com.google.container.v1beta1.ReleaseChannel.Builder getDesiredReleaseChan * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3584 + * google/container/v1beta1/cluster_service.proto;l=3580 * @return Whether the privateClusterConfig field is set. */ @java.lang.Deprecated @@ -12090,7 +12183,7 @@ public boolean hasPrivateClusterConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3584 + * google/container/v1beta1/cluster_service.proto;l=3580 * @return The privateClusterConfig. */ @java.lang.Deprecated @@ -12314,7 +12407,7 @@ public Builder clearPrivateClusterConfig() { * .google.container.v1beta1.TpuConfig desired_tpu_config = 38 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3589 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return Whether the desiredTpuConfig field is set. */ @java.lang.Deprecated @@ -12334,7 +12427,7 @@ public boolean hasDesiredTpuConfig() { * .google.container.v1beta1.TpuConfig desired_tpu_config = 38 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3589 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return The desiredTpuConfig. */ @java.lang.Deprecated @@ -16415,7 +16508,7 @@ public Builder clearDesiredIdentityServiceConfig() { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3673 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3669 * @return Whether the desiredEnablePrivateEndpoint field is set. */ @java.lang.Override @@ -16439,7 +16532,7 @@ public boolean hasDesiredEnablePrivateEndpoint() { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3673 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3669 * @return The desiredEnablePrivateEndpoint. */ @java.lang.Override @@ -16463,7 +16556,7 @@ public boolean getDesiredEnablePrivateEndpoint() { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3673 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3669 * @param value The desiredEnablePrivateEndpoint to set. * @return This builder for chaining. */ @@ -16491,7 +16584,7 @@ public Builder setDesiredEnablePrivateEndpoint(boolean value) { * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3673 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3669 * @return This builder for chaining. */ @java.lang.Deprecated @@ -17058,7 +17151,7 @@ public Builder clearDesiredNodePoolAutoConfigNetworkTags() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return Whether the desiredProtectConfig field is set. */ @java.lang.Deprecated @@ -17079,7 +17172,7 @@ public boolean hasDesiredProtectConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The desiredProtectConfig. */ @java.lang.Deprecated @@ -21686,7 +21779,7 @@ public Builder clearDesiredNodePoolAutoConfigKubeletConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.user_managed_keys_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3783 + * See google/container/v1beta1/cluster_service.proto;l=3779 * @return Whether the userManagedKeysConfig field is set. */ @java.lang.Deprecated @@ -21711,7 +21804,7 @@ public boolean hasUserManagedKeysConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.user_managed_keys_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3783 + * See google/container/v1beta1/cluster_service.proto;l=3779 * @return The userManagedKeysConfig. */ @java.lang.Deprecated @@ -22398,7 +22491,7 @@ public Builder clearDesiredAdditionalIpRangesConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enterprise_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3796 + * See google/container/v1beta1/cluster_service.proto;l=3792 * @return Whether the desiredEnterpriseConfig field is set. */ @java.lang.Deprecated @@ -22421,7 +22514,7 @@ public boolean hasDesiredEnterpriseConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enterprise_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3796 + * See google/container/v1beta1/cluster_service.proto;l=3792 * @return The desiredEnterpriseConfig. */ @java.lang.Deprecated @@ -23987,6 +24080,205 @@ public Builder clearDesiredNetworkTierConfig() { return desiredNetworkTierConfigBuilder_; } + private com.google.container.v1beta1.SecretSyncConfig desiredSecretSyncConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecretSyncConfig, + com.google.container.v1beta1.SecretSyncConfig.Builder, + com.google.container.v1beta1.SecretSyncConfigOrBuilder> + desiredSecretSyncConfigBuilder_; + + /** + * + * + *
                                    +     * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +     * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + * + * @return Whether the desiredSecretSyncConfig field is set. + */ + public boolean hasDesiredSecretSyncConfig() { + return ((bitField2_ & 0x00020000) != 0); + } + + /** + * + * + *
                                    +     * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +     * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + * + * @return The desiredSecretSyncConfig. + */ + public com.google.container.v1beta1.SecretSyncConfig getDesiredSecretSyncConfig() { + if (desiredSecretSyncConfigBuilder_ == null) { + return desiredSecretSyncConfig_ == null + ? com.google.container.v1beta1.SecretSyncConfig.getDefaultInstance() + : desiredSecretSyncConfig_; + } else { + return desiredSecretSyncConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                    +     * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +     * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + */ + public Builder setDesiredSecretSyncConfig(com.google.container.v1beta1.SecretSyncConfig value) { + if (desiredSecretSyncConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredSecretSyncConfig_ = value; + } else { + desiredSecretSyncConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +     * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + */ + public Builder setDesiredSecretSyncConfig( + com.google.container.v1beta1.SecretSyncConfig.Builder builderForValue) { + if (desiredSecretSyncConfigBuilder_ == null) { + desiredSecretSyncConfig_ = builderForValue.build(); + } else { + desiredSecretSyncConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +     * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + */ + public Builder mergeDesiredSecretSyncConfig( + com.google.container.v1beta1.SecretSyncConfig value) { + if (desiredSecretSyncConfigBuilder_ == null) { + if (((bitField2_ & 0x00020000) != 0) + && desiredSecretSyncConfig_ != null + && desiredSecretSyncConfig_ + != com.google.container.v1beta1.SecretSyncConfig.getDefaultInstance()) { + getDesiredSecretSyncConfigBuilder().mergeFrom(value); + } else { + desiredSecretSyncConfig_ = value; + } + } else { + desiredSecretSyncConfigBuilder_.mergeFrom(value); + } + if (desiredSecretSyncConfig_ != null) { + bitField2_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
                                    +     * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +     * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + */ + public Builder clearDesiredSecretSyncConfig() { + bitField2_ = (bitField2_ & ~0x00020000); + desiredSecretSyncConfig_ = null; + if (desiredSecretSyncConfigBuilder_ != null) { + desiredSecretSyncConfigBuilder_.dispose(); + desiredSecretSyncConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                    +     * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +     * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + */ + public com.google.container.v1beta1.SecretSyncConfig.Builder + getDesiredSecretSyncConfigBuilder() { + bitField2_ |= 0x00020000; + onChanged(); + return getDesiredSecretSyncConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                    +     * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +     * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + */ + public com.google.container.v1beta1.SecretSyncConfigOrBuilder + getDesiredSecretSyncConfigOrBuilder() { + if (desiredSecretSyncConfigBuilder_ != null) { + return desiredSecretSyncConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredSecretSyncConfig_ == null + ? com.google.container.v1beta1.SecretSyncConfig.getDefaultInstance() + : desiredSecretSyncConfig_; + } + } + + /** + * + * + *
                                    +     * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +     * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecretSyncConfig, + com.google.container.v1beta1.SecretSyncConfig.Builder, + com.google.container.v1beta1.SecretSyncConfigOrBuilder> + getDesiredSecretSyncConfigFieldBuilder() { + if (desiredSecretSyncConfigBuilder_ == null) { + desiredSecretSyncConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecretSyncConfig, + com.google.container.v1beta1.SecretSyncConfig.Builder, + com.google.container.v1beta1.SecretSyncConfigOrBuilder>( + getDesiredSecretSyncConfig(), getParentForChildren(), isClean()); + desiredSecretSyncConfig_ = null; + } + return desiredSecretSyncConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java index 0ca935a719d2..0f74904231d5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java @@ -358,7 +358,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3526 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3522 * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ @java.lang.Deprecated @@ -380,7 +380,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_master_authorized_networks_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3526 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3522 * @return The desiredMasterAuthorizedNetworksConfig. */ @java.lang.Deprecated @@ -677,7 +677,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_private_cluster_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3567 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3563 * @return Whether the desiredPrivateClusterConfig field is set. */ @java.lang.Deprecated @@ -704,7 +704,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_private_cluster_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3567 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3563 * @return The desiredPrivateClusterConfig. */ @java.lang.Deprecated @@ -903,7 +903,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3584 + * google/container/v1beta1/cluster_service.proto;l=3580 * @return Whether the privateClusterConfig field is set. */ @java.lang.Deprecated @@ -923,7 +923,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.private_cluster_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3584 + * google/container/v1beta1/cluster_service.proto;l=3580 * @return The privateClusterConfig. */ @java.lang.Deprecated @@ -957,7 +957,7 @@ public interface ClusterUpdateOrBuilder * .google.container.v1beta1.TpuConfig desired_tpu_config = 38 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3589 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return Whether the desiredTpuConfig field is set. */ @java.lang.Deprecated @@ -975,7 +975,7 @@ public interface ClusterUpdateOrBuilder * .google.container.v1beta1.TpuConfig desired_tpu_config = 38 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_tpu_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3589 + * google/container/v1beta1/cluster_service.proto;l=3585 * @return The desiredTpuConfig. */ @java.lang.Deprecated @@ -1790,7 +1790,7 @@ public interface ClusterUpdateOrBuilder * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3673 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3669 * @return Whether the desiredEnablePrivateEndpoint field is set. */ @java.lang.Deprecated @@ -1811,7 +1811,7 @@ public interface ClusterUpdateOrBuilder * optional bool desired_enable_private_endpoint = 71 [deprecated = true]; * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3673 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3669 * @return The desiredEnablePrivateEndpoint. */ @java.lang.Deprecated @@ -1954,7 +1954,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return Whether the desiredProtectConfig field is set. */ @java.lang.Deprecated @@ -1973,7 +1973,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3691 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The desiredProtectConfig. */ @java.lang.Deprecated @@ -2948,7 +2948,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3783 + * google/container/v1beta1/cluster_service.proto;l=3779 * @return Whether the userManagedKeysConfig field is set. */ @java.lang.Deprecated @@ -2971,7 +2971,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.user_managed_keys_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3783 + * google/container/v1beta1/cluster_service.proto;l=3779 * @return The userManagedKeysConfig. */ @java.lang.Deprecated @@ -3098,7 +3098,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3796 + * google/container/v1beta1/cluster_service.proto;l=3792 * @return Whether the desiredEnterpriseConfig field is set. */ @java.lang.Deprecated @@ -3119,7 +3119,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_enterprise_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3796 + * google/container/v1beta1/cluster_service.proto;l=3792 * @return The desiredEnterpriseConfig. */ @java.lang.Deprecated @@ -3421,4 +3421,41 @@ public interface ClusterUpdateOrBuilder * .google.container.v1beta1.NetworkTierConfig desired_network_tier_config = 155; */ com.google.container.v1beta1.NetworkTierConfigOrBuilder getDesiredNetworkTierConfigOrBuilder(); + + /** + * + * + *
                                    +   * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +   * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + * + * @return Whether the desiredSecretSyncConfig field is set. + */ + boolean hasDesiredSecretSyncConfig(); + + /** + * + * + *
                                    +   * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +   * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + * + * @return The desiredSecretSyncConfig. + */ + com.google.container.v1beta1.SecretSyncConfig getDesiredSecretSyncConfig(); + + /** + * + * + *
                                    +   * Configuration for sync Secret Manager secrets as k8s secrets.
                                    +   * 
                                    + * + * .google.container.v1beta1.SecretSyncConfig desired_secret_sync_config = 158; + */ + com.google.container.v1beta1.SecretSyncConfigOrBuilder getDesiredSecretSyncConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java index e3d95d9e74a8..c94f5c3a98b8 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5832 + * google/container/v1beta1/cluster_service.proto;l=5830 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5832 + * google/container/v1beta1/cluster_service.proto;l=5830 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5838 + * google/container/v1beta1/cluster_service.proto;l=5836 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5838 + * google/container/v1beta1/cluster_service.proto;l=5836 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5842 + * google/container/v1beta1/cluster_service.proto;l=5840 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5842 + * google/container/v1beta1/cluster_service.proto;l=5840 * @return The bytes for clusterId. */ @java.lang.Override @@ -741,7 +741,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5832 + * google/container/v1beta1/cluster_service.proto;l=5830 * @return The projectId. */ @java.lang.Deprecated @@ -769,7 +769,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5832 + * google/container/v1beta1/cluster_service.proto;l=5830 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -797,7 +797,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5832 + * google/container/v1beta1/cluster_service.proto;l=5830 * @param value The projectId to set. * @return This builder for chaining. */ @@ -824,7 +824,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5832 + * google/container/v1beta1/cluster_service.proto;l=5830 * @return This builder for chaining. */ @java.lang.Deprecated @@ -847,7 +847,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5832 + * google/container/v1beta1/cluster_service.proto;l=5830 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -878,7 +878,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5838 + * google/container/v1beta1/cluster_service.proto;l=5836 * @return The zone. */ @java.lang.Deprecated @@ -907,7 +907,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5838 + * google/container/v1beta1/cluster_service.proto;l=5836 * @return The bytes for zone. */ @java.lang.Deprecated @@ -936,7 +936,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5838 + * google/container/v1beta1/cluster_service.proto;l=5836 * @param value The zone to set. * @return This builder for chaining. */ @@ -964,7 +964,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5838 + * google/container/v1beta1/cluster_service.proto;l=5836 * @return This builder for chaining. */ @java.lang.Deprecated @@ -988,7 +988,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5838 + * google/container/v1beta1/cluster_service.proto;l=5836 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1017,7 +1017,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5842 + * google/container/v1beta1/cluster_service.proto;l=5840 * @return The clusterId. */ @java.lang.Deprecated @@ -1044,7 +1044,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5842 + * google/container/v1beta1/cluster_service.proto;l=5840 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1071,7 +1071,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5842 + * google/container/v1beta1/cluster_service.proto;l=5840 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1097,7 +1097,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5842 + * google/container/v1beta1/cluster_service.proto;l=5840 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1119,7 +1119,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5842 + * google/container/v1beta1/cluster_service.proto;l=5840 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java index 8b1e59f04aa9..93a68615676d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5832 + * google/container/v1beta1/cluster_service.proto;l=5830 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5832 + * google/container/v1beta1/cluster_service.proto;l=5830 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5838 + * google/container/v1beta1/cluster_service.proto;l=5836 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5838 + * google/container/v1beta1/cluster_service.proto;l=5836 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5842 + * google/container/v1beta1/cluster_service.proto;l=5840 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5842 + * google/container/v1beta1/cluster_service.proto;l=5840 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ContainerdConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ContainerdConfig.java index 641f297bdb43..29440e0ea772 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ContainerdConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ContainerdConfig.java @@ -428,8 +428,7 @@ public interface GCPSecretManagerCertificateConfigOrBuilder * *
                                            * GCPSecretManagerCertificateConfig configures a secret from
                                    -       * [Google Secret
                                    -       * Manager](https://cloud.google.com/secret-manager).
                                    +       * [Secret Manager](https://cloud.google.com/secret-manager).
                                            * 
                                    * * Protobuf type {@code @@ -732,8 +731,7 @@ protected Builder newBuilderForType( * *
                                              * GCPSecretManagerCertificateConfig configures a secret from
                                    -         * [Google Secret
                                    -         * Manager](https://cloud.google.com/secret-manager).
                                    +         * [Secret Manager](https://cloud.google.com/secret-manager).
                                              * 
                                    * * Protobuf type {@code diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java index e801a4eec04f..041cf90b0193 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4152 + * google/container/v1beta1/cluster_service.proto;l=4151 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4152 + * google/container/v1beta1/cluster_service.proto;l=4151 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4158 + * google/container/v1beta1/cluster_service.proto;l=4157 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4158 + * google/container/v1beta1/cluster_service.proto;l=4157 * @return The bytes for zone. */ @java.lang.Override @@ -753,7 +753,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4152 + * google/container/v1beta1/cluster_service.proto;l=4151 * @return The projectId. */ @java.lang.Deprecated @@ -781,7 +781,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4152 + * google/container/v1beta1/cluster_service.proto;l=4151 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -809,7 +809,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4152 + * google/container/v1beta1/cluster_service.proto;l=4151 * @param value The projectId to set. * @return This builder for chaining. */ @@ -836,7 +836,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4152 + * google/container/v1beta1/cluster_service.proto;l=4151 * @return This builder for chaining. */ @java.lang.Deprecated @@ -859,7 +859,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4152 + * google/container/v1beta1/cluster_service.proto;l=4151 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -890,7 +890,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4158 + * google/container/v1beta1/cluster_service.proto;l=4157 * @return The zone. */ @java.lang.Deprecated @@ -919,7 +919,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4158 + * google/container/v1beta1/cluster_service.proto;l=4157 * @return The bytes for zone. */ @java.lang.Deprecated @@ -948,7 +948,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4158 + * google/container/v1beta1/cluster_service.proto;l=4157 * @param value The zone to set. * @return This builder for chaining. */ @@ -976,7 +976,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4158 + * google/container/v1beta1/cluster_service.proto;l=4157 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1000,7 +1000,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4158 + * google/container/v1beta1/cluster_service.proto;l=4157 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java index 93d4bec2bab1..3fe08015d521 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4152 + * google/container/v1beta1/cluster_service.proto;l=4151 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4152 + * google/container/v1beta1/cluster_service.proto;l=4151 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4158 + * google/container/v1beta1/cluster_service.proto;l=4157 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4158 + * google/container/v1beta1/cluster_service.proto;l=4157 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java index 4911a8e01c68..d4c8ab71ef25 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4855 + * google/container/v1beta1/cluster_service.proto;l=4854 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4855 + * google/container/v1beta1/cluster_service.proto;l=4854 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4861 + * google/container/v1beta1/cluster_service.proto;l=4860 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4861 + * google/container/v1beta1/cluster_service.proto;l=4860 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4865 + * google/container/v1beta1/cluster_service.proto;l=4864 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4865 + * google/container/v1beta1/cluster_service.proto;l=4864 * @return The bytes for clusterId. */ @java.lang.Override @@ -845,7 +845,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4855 + * google/container/v1beta1/cluster_service.proto;l=4854 * @return The projectId. */ @java.lang.Deprecated @@ -873,7 +873,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4855 + * google/container/v1beta1/cluster_service.proto;l=4854 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -901,7 +901,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4855 + * google/container/v1beta1/cluster_service.proto;l=4854 * @param value The projectId to set. * @return This builder for chaining. */ @@ -928,7 +928,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4855 + * google/container/v1beta1/cluster_service.proto;l=4854 * @return This builder for chaining. */ @java.lang.Deprecated @@ -951,7 +951,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4855 + * google/container/v1beta1/cluster_service.proto;l=4854 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -982,7 +982,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4861 + * google/container/v1beta1/cluster_service.proto;l=4860 * @return The zone. */ @java.lang.Deprecated @@ -1011,7 +1011,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4861 + * google/container/v1beta1/cluster_service.proto;l=4860 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1040,7 +1040,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4861 + * google/container/v1beta1/cluster_service.proto;l=4860 * @param value The zone to set. * @return This builder for chaining. */ @@ -1068,7 +1068,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4861 + * google/container/v1beta1/cluster_service.proto;l=4860 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4861 + * google/container/v1beta1/cluster_service.proto;l=4860 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1121,7 +1121,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4865 + * google/container/v1beta1/cluster_service.proto;l=4864 * @return The clusterId. */ @java.lang.Deprecated @@ -1148,7 +1148,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4865 + * google/container/v1beta1/cluster_service.proto;l=4864 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1175,7 +1175,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4865 + * google/container/v1beta1/cluster_service.proto;l=4864 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1201,7 +1201,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4865 + * google/container/v1beta1/cluster_service.proto;l=4864 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1223,7 +1223,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4865 + * google/container/v1beta1/cluster_service.proto;l=4864 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java index 37bb66fefdf9..1ef4f88daf58 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4855 + * google/container/v1beta1/cluster_service.proto;l=4854 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4855 + * google/container/v1beta1/cluster_service.proto;l=4854 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4861 + * google/container/v1beta1/cluster_service.proto;l=4860 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4861 + * google/container/v1beta1/cluster_service.proto;l=4860 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4865 + * google/container/v1beta1/cluster_service.proto;l=4864 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4865 + * google/container/v1beta1/cluster_service.proto;l=4864 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java index 4f04a42ff0e1..6fa2c123c5a7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4626 + * google/container/v1beta1/cluster_service.proto;l=4625 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4626 + * google/container/v1beta1/cluster_service.proto;l=4625 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4632 + * google/container/v1beta1/cluster_service.proto;l=4631 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4632 + * google/container/v1beta1/cluster_service.proto;l=4631 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4636 + * google/container/v1beta1/cluster_service.proto;l=4635 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4636 + * google/container/v1beta1/cluster_service.proto;l=4635 * @return The bytes for clusterId. */ @java.lang.Override @@ -740,7 +740,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4626 + * google/container/v1beta1/cluster_service.proto;l=4625 * @return The projectId. */ @java.lang.Deprecated @@ -768,7 +768,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4626 + * google/container/v1beta1/cluster_service.proto;l=4625 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -796,7 +796,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4626 + * google/container/v1beta1/cluster_service.proto;l=4625 * @param value The projectId to set. * @return This builder for chaining. */ @@ -823,7 +823,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4626 + * google/container/v1beta1/cluster_service.proto;l=4625 * @return This builder for chaining. */ @java.lang.Deprecated @@ -846,7 +846,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4626 + * google/container/v1beta1/cluster_service.proto;l=4625 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -877,7 +877,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4632 + * google/container/v1beta1/cluster_service.proto;l=4631 * @return The zone. */ @java.lang.Deprecated @@ -906,7 +906,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4632 + * google/container/v1beta1/cluster_service.proto;l=4631 * @return The bytes for zone. */ @java.lang.Deprecated @@ -935,7 +935,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4632 + * google/container/v1beta1/cluster_service.proto;l=4631 * @param value The zone to set. * @return This builder for chaining. */ @@ -963,7 +963,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4632 + * google/container/v1beta1/cluster_service.proto;l=4631 * @return This builder for chaining. */ @java.lang.Deprecated @@ -987,7 +987,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4632 + * google/container/v1beta1/cluster_service.proto;l=4631 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1016,7 +1016,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4636 + * google/container/v1beta1/cluster_service.proto;l=4635 * @return The clusterId. */ @java.lang.Deprecated @@ -1043,7 +1043,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4636 + * google/container/v1beta1/cluster_service.proto;l=4635 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4636 + * google/container/v1beta1/cluster_service.proto;l=4635 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4636 + * google/container/v1beta1/cluster_service.proto;l=4635 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1118,7 +1118,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4636 + * google/container/v1beta1/cluster_service.proto;l=4635 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java index 50cc7c4d6619..390a372aa4f8 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4626 + * google/container/v1beta1/cluster_service.proto;l=4625 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4626 + * google/container/v1beta1/cluster_service.proto;l=4625 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4632 + * google/container/v1beta1/cluster_service.proto;l=4631 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4632 + * google/container/v1beta1/cluster_service.proto;l=4631 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4636 + * google/container/v1beta1/cluster_service.proto;l=4635 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4636 + * google/container/v1beta1/cluster_service.proto;l=4635 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java index 2b41148bc9dd..07c97dd7ce79 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4881 + * google/container/v1beta1/cluster_service.proto;l=4880 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4881 + * google/container/v1beta1/cluster_service.proto;l=4880 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4887 + * google/container/v1beta1/cluster_service.proto;l=4886 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4887 + * google/container/v1beta1/cluster_service.proto;l=4886 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4891 + * google/container/v1beta1/cluster_service.proto;l=4890 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4891 + * google/container/v1beta1/cluster_service.proto;l=4890 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 + * google/container/v1beta1/cluster_service.proto;l=4894 * @return The nodePoolId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 + * google/container/v1beta1/cluster_service.proto;l=4894 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -828,7 +828,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4881 + * google/container/v1beta1/cluster_service.proto;l=4880 * @return The projectId. */ @java.lang.Deprecated @@ -856,7 +856,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4881 + * google/container/v1beta1/cluster_service.proto;l=4880 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4881 + * google/container/v1beta1/cluster_service.proto;l=4880 * @param value The projectId to set. * @return This builder for chaining. */ @@ -911,7 +911,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4881 + * google/container/v1beta1/cluster_service.proto;l=4880 * @return This builder for chaining. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4881 + * google/container/v1beta1/cluster_service.proto;l=4880 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -965,7 +965,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4887 + * google/container/v1beta1/cluster_service.proto;l=4886 * @return The zone. */ @java.lang.Deprecated @@ -994,7 +994,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4887 + * google/container/v1beta1/cluster_service.proto;l=4886 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1023,7 +1023,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4887 + * google/container/v1beta1/cluster_service.proto;l=4886 * @param value The zone to set. * @return This builder for chaining. */ @@ -1051,7 +1051,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4887 + * google/container/v1beta1/cluster_service.proto;l=4886 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1075,7 +1075,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4887 + * google/container/v1beta1/cluster_service.proto;l=4886 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1104,7 +1104,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4891 + * google/container/v1beta1/cluster_service.proto;l=4890 * @return The clusterId. */ @java.lang.Deprecated @@ -1131,7 +1131,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4891 + * google/container/v1beta1/cluster_service.proto;l=4890 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1158,7 +1158,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4891 + * google/container/v1beta1/cluster_service.proto;l=4890 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1184,7 +1184,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4891 + * google/container/v1beta1/cluster_service.proto;l=4890 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1206,7 +1206,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4891 + * google/container/v1beta1/cluster_service.proto;l=4890 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1235,7 +1235,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 + * google/container/v1beta1/cluster_service.proto;l=4894 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1262,7 +1262,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 + * google/container/v1beta1/cluster_service.proto;l=4894 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1289,7 +1289,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 + * google/container/v1beta1/cluster_service.proto;l=4894 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1315,7 +1315,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 + * google/container/v1beta1/cluster_service.proto;l=4894 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1337,7 +1337,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 + * google/container/v1beta1/cluster_service.proto;l=4894 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java index 85e7832dd2aa..c0023c321fe5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4881 + * google/container/v1beta1/cluster_service.proto;l=4880 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4881 + * google/container/v1beta1/cluster_service.proto;l=4880 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4887 + * google/container/v1beta1/cluster_service.proto;l=4886 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4887 + * google/container/v1beta1/cluster_service.proto;l=4886 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4891 + * google/container/v1beta1/cluster_service.proto;l=4890 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4891 + * google/container/v1beta1/cluster_service.proto;l=4890 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 + * google/container/v1beta1/cluster_service.proto;l=4894 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 + * google/container/v1beta1/cluster_service.proto;l=4894 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java index c6f42a9c724d..60945f6e4440 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4174 + * google/container/v1beta1/cluster_service.proto;l=4173 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4174 + * google/container/v1beta1/cluster_service.proto;l=4173 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4180 + * google/container/v1beta1/cluster_service.proto;l=4179 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4180 + * google/container/v1beta1/cluster_service.proto;l=4179 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4184 + * google/container/v1beta1/cluster_service.proto;l=4183 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4184 + * google/container/v1beta1/cluster_service.proto;l=4183 * @return The bytes for clusterId. */ @java.lang.Override @@ -739,7 +739,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4174 + * google/container/v1beta1/cluster_service.proto;l=4173 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4174 + * google/container/v1beta1/cluster_service.proto;l=4173 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -795,7 +795,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4174 + * google/container/v1beta1/cluster_service.proto;l=4173 * @param value The projectId to set. * @return This builder for chaining. */ @@ -822,7 +822,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4174 + * google/container/v1beta1/cluster_service.proto;l=4173 * @return This builder for chaining. */ @java.lang.Deprecated @@ -845,7 +845,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4174 + * google/container/v1beta1/cluster_service.proto;l=4173 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4180 + * google/container/v1beta1/cluster_service.proto;l=4179 * @return The zone. */ @java.lang.Deprecated @@ -905,7 +905,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4180 + * google/container/v1beta1/cluster_service.proto;l=4179 * @return The bytes for zone. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4180 + * google/container/v1beta1/cluster_service.proto;l=4179 * @param value The zone to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4180 + * google/container/v1beta1/cluster_service.proto;l=4179 * @return This builder for chaining. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4180 + * google/container/v1beta1/cluster_service.proto;l=4179 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1015,7 +1015,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4184 + * google/container/v1beta1/cluster_service.proto;l=4183 * @return The clusterId. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4184 + * google/container/v1beta1/cluster_service.proto;l=4183 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1069,7 +1069,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4184 + * google/container/v1beta1/cluster_service.proto;l=4183 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1095,7 +1095,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4184 + * google/container/v1beta1/cluster_service.proto;l=4183 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4184 + * google/container/v1beta1/cluster_service.proto;l=4183 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java index c180c19783a5..bc616eb97ff5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4174 + * google/container/v1beta1/cluster_service.proto;l=4173 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4174 + * google/container/v1beta1/cluster_service.proto;l=4173 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4180 + * google/container/v1beta1/cluster_service.proto;l=4179 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4180 + * google/container/v1beta1/cluster_service.proto;l=4179 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4184 + * google/container/v1beta1/cluster_service.proto;l=4183 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4184 + * google/container/v1beta1/cluster_service.proto;l=4183 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java index 3e85fbb673f8..ad2d5de96846 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4930 + * google/container/v1beta1/cluster_service.proto;l=4929 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4930 + * google/container/v1beta1/cluster_service.proto;l=4929 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4936 + * google/container/v1beta1/cluster_service.proto;l=4935 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4936 + * google/container/v1beta1/cluster_service.proto;l=4935 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4940 + * google/container/v1beta1/cluster_service.proto;l=4939 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4940 + * google/container/v1beta1/cluster_service.proto;l=4939 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4944 + * google/container/v1beta1/cluster_service.proto;l=4943 * @return The nodePoolId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4944 + * google/container/v1beta1/cluster_service.proto;l=4943 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -828,7 +828,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4930 + * google/container/v1beta1/cluster_service.proto;l=4929 * @return The projectId. */ @java.lang.Deprecated @@ -856,7 +856,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4930 + * google/container/v1beta1/cluster_service.proto;l=4929 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4930 + * google/container/v1beta1/cluster_service.proto;l=4929 * @param value The projectId to set. * @return This builder for chaining. */ @@ -911,7 +911,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4930 + * google/container/v1beta1/cluster_service.proto;l=4929 * @return This builder for chaining. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4930 + * google/container/v1beta1/cluster_service.proto;l=4929 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -965,7 +965,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4936 + * google/container/v1beta1/cluster_service.proto;l=4935 * @return The zone. */ @java.lang.Deprecated @@ -994,7 +994,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4936 + * google/container/v1beta1/cluster_service.proto;l=4935 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1023,7 +1023,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4936 + * google/container/v1beta1/cluster_service.proto;l=4935 * @param value The zone to set. * @return This builder for chaining. */ @@ -1051,7 +1051,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4936 + * google/container/v1beta1/cluster_service.proto;l=4935 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1075,7 +1075,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4936 + * google/container/v1beta1/cluster_service.proto;l=4935 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1104,7 +1104,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4940 + * google/container/v1beta1/cluster_service.proto;l=4939 * @return The clusterId. */ @java.lang.Deprecated @@ -1131,7 +1131,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4940 + * google/container/v1beta1/cluster_service.proto;l=4939 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1158,7 +1158,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4940 + * google/container/v1beta1/cluster_service.proto;l=4939 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1184,7 +1184,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4940 + * google/container/v1beta1/cluster_service.proto;l=4939 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1206,7 +1206,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4940 + * google/container/v1beta1/cluster_service.proto;l=4939 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1235,7 +1235,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4944 + * google/container/v1beta1/cluster_service.proto;l=4943 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1262,7 +1262,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4944 + * google/container/v1beta1/cluster_service.proto;l=4943 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1289,7 +1289,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4944 + * google/container/v1beta1/cluster_service.proto;l=4943 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1315,7 +1315,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4944 + * google/container/v1beta1/cluster_service.proto;l=4943 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1337,7 +1337,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4944 + * google/container/v1beta1/cluster_service.proto;l=4943 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java index 11806d1f69c1..5c73950989b7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4930 + * google/container/v1beta1/cluster_service.proto;l=4929 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4930 + * google/container/v1beta1/cluster_service.proto;l=4929 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4936 + * google/container/v1beta1/cluster_service.proto;l=4935 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4936 + * google/container/v1beta1/cluster_service.proto;l=4935 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4940 + * google/container/v1beta1/cluster_service.proto;l=4939 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4940 + * google/container/v1beta1/cluster_service.proto;l=4939 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4944 + * google/container/v1beta1/cluster_service.proto;l=4943 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4944 + * google/container/v1beta1/cluster_service.proto;l=4943 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java index ba2575c64911..76ad8570e0ac 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4678 + * google/container/v1beta1/cluster_service.proto;l=4677 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4678 + * google/container/v1beta1/cluster_service.proto;l=4677 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4684 + * google/container/v1beta1/cluster_service.proto;l=4683 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4684 + * google/container/v1beta1/cluster_service.proto;l=4683 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4688 + * google/container/v1beta1/cluster_service.proto;l=4687 * @return The operationId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4688 + * google/container/v1beta1/cluster_service.proto;l=4687 * @return The bytes for operationId. */ @java.lang.Override @@ -740,7 +740,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4678 + * google/container/v1beta1/cluster_service.proto;l=4677 * @return The projectId. */ @java.lang.Deprecated @@ -768,7 +768,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4678 + * google/container/v1beta1/cluster_service.proto;l=4677 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -796,7 +796,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4678 + * google/container/v1beta1/cluster_service.proto;l=4677 * @param value The projectId to set. * @return This builder for chaining. */ @@ -823,7 +823,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4678 + * google/container/v1beta1/cluster_service.proto;l=4677 * @return This builder for chaining. */ @java.lang.Deprecated @@ -846,7 +846,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4678 + * google/container/v1beta1/cluster_service.proto;l=4677 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -877,7 +877,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4684 + * google/container/v1beta1/cluster_service.proto;l=4683 * @return The zone. */ @java.lang.Deprecated @@ -906,7 +906,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4684 + * google/container/v1beta1/cluster_service.proto;l=4683 * @return The bytes for zone. */ @java.lang.Deprecated @@ -935,7 +935,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4684 + * google/container/v1beta1/cluster_service.proto;l=4683 * @param value The zone to set. * @return This builder for chaining. */ @@ -963,7 +963,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4684 + * google/container/v1beta1/cluster_service.proto;l=4683 * @return This builder for chaining. */ @java.lang.Deprecated @@ -987,7 +987,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4684 + * google/container/v1beta1/cluster_service.proto;l=4683 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1016,7 +1016,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4688 + * google/container/v1beta1/cluster_service.proto;l=4687 * @return The operationId. */ @java.lang.Deprecated @@ -1043,7 +1043,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4688 + * google/container/v1beta1/cluster_service.proto;l=4687 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4688 + * google/container/v1beta1/cluster_service.proto;l=4687 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4688 + * google/container/v1beta1/cluster_service.proto;l=4687 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1118,7 +1118,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4688 + * google/container/v1beta1/cluster_service.proto;l=4687 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java index 2da15e1a99f9..3d9771bf797f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4678 + * google/container/v1beta1/cluster_service.proto;l=4677 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4678 + * google/container/v1beta1/cluster_service.proto;l=4677 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4684 + * google/container/v1beta1/cluster_service.proto;l=4683 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4684 + * google/container/v1beta1/cluster_service.proto;l=4683 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4688 + * google/container/v1beta1/cluster_service.proto;l=4687 * @return The operationId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4688 + * google/container/v1beta1/cluster_service.proto;l=4687 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java index c0e47f71391a..b0bbde54f42f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4751 + * google/container/v1beta1/cluster_service.proto;l=4750 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4751 + * google/container/v1beta1/cluster_service.proto;l=4750 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4756 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4756 * @return The bytes for zone. */ @java.lang.Override @@ -654,7 +654,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4751 + * google/container/v1beta1/cluster_service.proto;l=4750 * @return The projectId. */ @java.lang.Deprecated @@ -682,7 +682,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4751 + * google/container/v1beta1/cluster_service.proto;l=4750 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -710,7 +710,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4751 + * google/container/v1beta1/cluster_service.proto;l=4750 * @param value The projectId to set. * @return This builder for chaining. */ @@ -737,7 +737,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4751 + * google/container/v1beta1/cluster_service.proto;l=4750 * @return This builder for chaining. */ @java.lang.Deprecated @@ -760,7 +760,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4751 + * google/container/v1beta1/cluster_service.proto;l=4750 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -791,7 +791,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4756 * @return The zone. */ @java.lang.Deprecated @@ -820,7 +820,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4756 * @return The bytes for zone. */ @java.lang.Deprecated @@ -849,7 +849,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4756 * @param value The zone to set. * @return This builder for chaining. */ @@ -877,7 +877,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4756 * @return This builder for chaining. */ @java.lang.Deprecated @@ -901,7 +901,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4756 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java index 4e659b0404fa..421f42082115 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4751 + * google/container/v1beta1/cluster_service.proto;l=4750 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4751 + * google/container/v1beta1/cluster_service.proto;l=4750 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4756 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4757 + * google/container/v1beta1/cluster_service.proto;l=4756 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java index 747cb6cb1994..18e520302ef1 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java @@ -512,7 +512,7 @@ public com.google.protobuf.ByteString getSubnetworkNameBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2466 + * google/container/v1beta1/cluster_service.proto;l=2462 * @return The clusterIpv4Cidr. */ @java.lang.Override @@ -539,7 +539,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2466 + * google/container/v1beta1/cluster_service.proto;l=2462 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Override @@ -571,7 +571,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2469 + * google/container/v1beta1/cluster_service.proto;l=2465 * @return The nodeIpv4Cidr. */ @java.lang.Override @@ -598,7 +598,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2469 + * google/container/v1beta1/cluster_service.proto;l=2465 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Override @@ -630,7 +630,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2472 + * google/container/v1beta1/cluster_service.proto;l=2468 * @return The servicesIpv4Cidr. */ @java.lang.Override @@ -657,7 +657,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2472 + * google/container/v1beta1/cluster_service.proto;l=2468 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Override @@ -1105,7 +1105,7 @@ public boolean getAllowRouteOverlap() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2572 + * google/container/v1beta1/cluster_service.proto;l=2568 * @return The tpuIpv4CidrBlock. */ @java.lang.Override @@ -1147,7 +1147,7 @@ public java.lang.String getTpuIpv4CidrBlock() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2572 + * google/container/v1beta1/cluster_service.proto;l=2568 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Override @@ -3060,7 +3060,7 @@ public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2466 + * google/container/v1beta1/cluster_service.proto;l=2462 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -3086,7 +3086,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2466 + * google/container/v1beta1/cluster_service.proto;l=2462 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -3112,7 +3112,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2466 + * google/container/v1beta1/cluster_service.proto;l=2462 * @param value The clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -3137,7 +3137,7 @@ public Builder setClusterIpv4Cidr(java.lang.String value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2466 + * google/container/v1beta1/cluster_service.proto;l=2462 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3158,7 +3158,7 @@ public Builder clearClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2466 + * google/container/v1beta1/cluster_service.proto;l=2462 * @param value The bytes for clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -3186,7 +3186,7 @@ public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2469 + * google/container/v1beta1/cluster_service.proto;l=2465 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -3212,7 +3212,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2469 + * google/container/v1beta1/cluster_service.proto;l=2465 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -3238,7 +3238,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2469 + * google/container/v1beta1/cluster_service.proto;l=2465 * @param value The nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -3263,7 +3263,7 @@ public Builder setNodeIpv4Cidr(java.lang.String value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2469 + * google/container/v1beta1/cluster_service.proto;l=2465 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3284,7 +3284,7 @@ public Builder clearNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2469 + * google/container/v1beta1/cluster_service.proto;l=2465 * @param value The bytes for nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -3312,7 +3312,7 @@ public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2472 + * google/container/v1beta1/cluster_service.proto;l=2468 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -3338,7 +3338,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2472 + * google/container/v1beta1/cluster_service.proto;l=2468 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -3364,7 +3364,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2472 + * google/container/v1beta1/cluster_service.proto;l=2468 * @param value The servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -3389,7 +3389,7 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2472 + * google/container/v1beta1/cluster_service.proto;l=2468 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3410,7 +3410,7 @@ public Builder clearServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2472 + * google/container/v1beta1/cluster_service.proto;l=2468 * @param value The bytes for servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -4362,7 +4362,7 @@ public Builder clearAllowRouteOverlap() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2572 + * See google/container/v1beta1/cluster_service.proto;l=2568 * @return The tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -4403,7 +4403,7 @@ public java.lang.String getTpuIpv4CidrBlock() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2572 + * See google/container/v1beta1/cluster_service.proto;l=2568 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -4444,7 +4444,7 @@ public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2572 + * See google/container/v1beta1/cluster_service.proto;l=2568 * @param value The tpuIpv4CidrBlock to set. * @return This builder for chaining. */ @@ -4484,7 +4484,7 @@ public Builder setTpuIpv4CidrBlock(java.lang.String value) { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2572 + * See google/container/v1beta1/cluster_service.proto;l=2568 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4520,7 +4520,7 @@ public Builder clearTpuIpv4CidrBlock() { * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2572 + * See google/container/v1beta1/cluster_service.proto;l=2568 * @param value The bytes for tpuIpv4CidrBlock to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java index d80d2af4da8b..4517a7d0c2a5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java @@ -95,7 +95,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2466 + * google/container/v1beta1/cluster_service.proto;l=2462 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -111,7 +111,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2466 + * google/container/v1beta1/cluster_service.proto;l=2462 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2469 + * google/container/v1beta1/cluster_service.proto;l=2465 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2469 + * google/container/v1beta1/cluster_service.proto;l=2465 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -159,7 +159,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2472 + * google/container/v1beta1/cluster_service.proto;l=2468 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -175,7 +175,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2472 + * google/container/v1beta1/cluster_service.proto;l=2468 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -466,7 +466,7 @@ public interface IPAllocationPolicyOrBuilder * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2572 + * google/container/v1beta1/cluster_service.proto;l=2568 * @return The tpuIpv4CidrBlock. */ @java.lang.Deprecated @@ -497,7 +497,7 @@ public interface IPAllocationPolicyOrBuilder * string tpu_ipv4_cidr_block = 13 [deprecated = true]; * * @deprecated google.container.v1beta1.IPAllocationPolicy.tpu_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2572 + * google/container/v1beta1/cluster_service.proto;l=2568 * @return The bytes for tpuIpv4CidrBlock. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java index f363bdaab974..4abef80f70db 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java @@ -213,7 +213,7 @@ private IstioAuthMode(int value) { * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2331 + * google/container/v1beta1/cluster_service.proto;l=2327 * @return The disabled. */ @java.lang.Override @@ -235,7 +235,7 @@ public boolean getDisabled() { * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2334 + * google/container/v1beta1/cluster_service.proto;l=2330 * @return The enum numeric value on the wire for auth. */ @java.lang.Override @@ -254,7 +254,7 @@ public int getAuthValue() { * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2334 + * google/container/v1beta1/cluster_service.proto;l=2330 * @return The auth. */ @java.lang.Override @@ -640,7 +640,7 @@ public Builder mergeFrom( * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2331 + * google/container/v1beta1/cluster_service.proto;l=2327 * @return The disabled. */ @java.lang.Override @@ -659,7 +659,7 @@ public boolean getDisabled() { * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2331 + * google/container/v1beta1/cluster_service.proto;l=2327 * @param value The disabled to set. * @return This builder for chaining. */ @@ -682,7 +682,7 @@ public Builder setDisabled(boolean value) { * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2331 + * google/container/v1beta1/cluster_service.proto;l=2327 * @return This builder for chaining. */ @java.lang.Deprecated @@ -706,7 +706,7 @@ public Builder clearDisabled() { * * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2334 + * google/container/v1beta1/cluster_service.proto;l=2330 * @return The enum numeric value on the wire for auth. */ @java.lang.Override @@ -726,7 +726,7 @@ public int getAuthValue() { * * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2334 + * google/container/v1beta1/cluster_service.proto;l=2330 * @param value The enum numeric value on the wire for auth to set. * @return This builder for chaining. */ @@ -749,7 +749,7 @@ public Builder setAuthValue(int value) { * * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2334 + * google/container/v1beta1/cluster_service.proto;l=2330 * @return The auth. */ @java.lang.Override @@ -773,7 +773,7 @@ public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { * * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2334 + * google/container/v1beta1/cluster_service.proto;l=2330 * @param value The auth to set. * @return This builder for chaining. */ @@ -799,7 +799,7 @@ public Builder setAuth(com.google.container.v1beta1.IstioConfig.IstioAuthMode va * * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2334 + * google/container/v1beta1/cluster_service.proto;l=2330 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java index 390b6a918bbc..b2acc0df3727 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface IstioConfigOrBuilder * bool disabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2331 + * google/container/v1beta1/cluster_service.proto;l=2327 * @return The disabled. */ @java.lang.Deprecated @@ -50,7 +50,7 @@ public interface IstioConfigOrBuilder * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2334 + * google/container/v1beta1/cluster_service.proto;l=2330 * @return The enum numeric value on the wire for auth. */ @java.lang.Deprecated @@ -66,7 +66,7 @@ public interface IstioConfigOrBuilder * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2334 + * google/container/v1beta1/cluster_service.proto;l=2330 * @return The auth. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java index 980a5d467563..20b0af63d54e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2170 + * google/container/v1beta1/cluster_service.proto;l=2166 * @return The enabled. */ @java.lang.Override @@ -435,7 +435,7 @@ public Builder mergeFrom( * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2170 + * google/container/v1beta1/cluster_service.proto;l=2166 * @return The enabled. */ @java.lang.Override @@ -454,7 +454,7 @@ public boolean getEnabled() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2170 + * google/container/v1beta1/cluster_service.proto;l=2166 * @param value The enabled to set. * @return This builder for chaining. */ @@ -477,7 +477,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2170 + * google/container/v1beta1/cluster_service.proto;l=2166 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java index efcc4187a4c3..40230b67ab37 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface KalmConfigOrBuilder * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2170 + * google/container/v1beta1/cluster_service.proto;l=2166 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java index 45964373c594..51f4ae7a8a51 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4648 + * google/container/v1beta1/cluster_service.proto;l=4647 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4648 + * google/container/v1beta1/cluster_service.proto;l=4647 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4654 + * google/container/v1beta1/cluster_service.proto;l=4653 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4654 + * google/container/v1beta1/cluster_service.proto;l=4653 * @return The bytes for zone. */ @java.lang.Override @@ -656,7 +656,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4648 + * google/container/v1beta1/cluster_service.proto;l=4647 * @return The projectId. */ @java.lang.Deprecated @@ -684,7 +684,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4648 + * google/container/v1beta1/cluster_service.proto;l=4647 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -712,7 +712,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4648 + * google/container/v1beta1/cluster_service.proto;l=4647 * @param value The projectId to set. * @return This builder for chaining. */ @@ -739,7 +739,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4648 + * google/container/v1beta1/cluster_service.proto;l=4647 * @return This builder for chaining. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4648 + * google/container/v1beta1/cluster_service.proto;l=4647 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -793,7 +793,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4654 + * google/container/v1beta1/cluster_service.proto;l=4653 * @return The zone. */ @java.lang.Deprecated @@ -822,7 +822,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4654 + * google/container/v1beta1/cluster_service.proto;l=4653 * @return The bytes for zone. */ @java.lang.Deprecated @@ -851,7 +851,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4654 + * google/container/v1beta1/cluster_service.proto;l=4653 * @param value The zone to set. * @return This builder for chaining. */ @@ -879,7 +879,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4654 + * google/container/v1beta1/cluster_service.proto;l=4653 * @return This builder for chaining. */ @java.lang.Deprecated @@ -903,7 +903,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4654 + * google/container/v1beta1/cluster_service.proto;l=4653 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java index 2f6e2256467e..96135e7f00c7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4648 + * google/container/v1beta1/cluster_service.proto;l=4647 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4648 + * google/container/v1beta1/cluster_service.proto;l=4647 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4654 + * google/container/v1beta1/cluster_service.proto;l=4653 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4654 + * google/container/v1beta1/cluster_service.proto;l=4653 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java index bed115284071..9174b9344d65 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4908 + * google/container/v1beta1/cluster_service.proto;l=4907 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4908 + * google/container/v1beta1/cluster_service.proto;l=4907 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4914 + * google/container/v1beta1/cluster_service.proto;l=4913 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4914 + * google/container/v1beta1/cluster_service.proto;l=4913 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4918 + * google/container/v1beta1/cluster_service.proto;l=4917 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4918 + * google/container/v1beta1/cluster_service.proto;l=4917 * @return The bytes for clusterId. */ @java.lang.Override @@ -740,7 +740,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4908 + * google/container/v1beta1/cluster_service.proto;l=4907 * @return The projectId. */ @java.lang.Deprecated @@ -768,7 +768,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4908 + * google/container/v1beta1/cluster_service.proto;l=4907 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -796,7 +796,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4908 + * google/container/v1beta1/cluster_service.proto;l=4907 * @param value The projectId to set. * @return This builder for chaining. */ @@ -823,7 +823,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4908 + * google/container/v1beta1/cluster_service.proto;l=4907 * @return This builder for chaining. */ @java.lang.Deprecated @@ -846,7 +846,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4908 + * google/container/v1beta1/cluster_service.proto;l=4907 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -877,7 +877,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4914 + * google/container/v1beta1/cluster_service.proto;l=4913 * @return The zone. */ @java.lang.Deprecated @@ -906,7 +906,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4914 + * google/container/v1beta1/cluster_service.proto;l=4913 * @return The bytes for zone. */ @java.lang.Deprecated @@ -935,7 +935,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4914 + * google/container/v1beta1/cluster_service.proto;l=4913 * @param value The zone to set. * @return This builder for chaining. */ @@ -963,7 +963,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4914 + * google/container/v1beta1/cluster_service.proto;l=4913 * @return This builder for chaining. */ @java.lang.Deprecated @@ -987,7 +987,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4914 + * google/container/v1beta1/cluster_service.proto;l=4913 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1016,7 +1016,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4918 + * google/container/v1beta1/cluster_service.proto;l=4917 * @return The clusterId. */ @java.lang.Deprecated @@ -1043,7 +1043,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4918 + * google/container/v1beta1/cluster_service.proto;l=4917 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4918 + * google/container/v1beta1/cluster_service.proto;l=4917 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4918 + * google/container/v1beta1/cluster_service.proto;l=4917 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1118,7 +1118,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4918 + * google/container/v1beta1/cluster_service.proto;l=4917 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java index 93507dc08bd1..5ebd44c33212 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4908 + * google/container/v1beta1/cluster_service.proto;l=4907 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4908 + * google/container/v1beta1/cluster_service.proto;l=4907 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4914 + * google/container/v1beta1/cluster_service.proto;l=4913 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4914 + * google/container/v1beta1/cluster_service.proto;l=4913 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4918 + * google/container/v1beta1/cluster_service.proto;l=4917 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4918 + * google/container/v1beta1/cluster_service.proto;l=4917 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java index 9f1a02f2a8d6..e221e64f9eab 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4700 + * google/container/v1beta1/cluster_service.proto;l=4699 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4700 + * google/container/v1beta1/cluster_service.proto;l=4699 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4706 + * google/container/v1beta1/cluster_service.proto;l=4705 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4706 + * google/container/v1beta1/cluster_service.proto;l=4705 * @return The bytes for zone. */ @java.lang.Override @@ -656,7 +656,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4700 + * google/container/v1beta1/cluster_service.proto;l=4699 * @return The projectId. */ @java.lang.Deprecated @@ -684,7 +684,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4700 + * google/container/v1beta1/cluster_service.proto;l=4699 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -712,7 +712,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4700 + * google/container/v1beta1/cluster_service.proto;l=4699 * @param value The projectId to set. * @return This builder for chaining. */ @@ -739,7 +739,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4700 + * google/container/v1beta1/cluster_service.proto;l=4699 * @return This builder for chaining. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4700 + * google/container/v1beta1/cluster_service.proto;l=4699 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -793,7 +793,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4706 + * google/container/v1beta1/cluster_service.proto;l=4705 * @return The zone. */ @java.lang.Deprecated @@ -822,7 +822,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4706 + * google/container/v1beta1/cluster_service.proto;l=4705 * @return The bytes for zone. */ @java.lang.Deprecated @@ -851,7 +851,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4706 + * google/container/v1beta1/cluster_service.proto;l=4705 * @param value The zone to set. * @return This builder for chaining. */ @@ -879,7 +879,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4706 + * google/container/v1beta1/cluster_service.proto;l=4705 * @return This builder for chaining. */ @java.lang.Deprecated @@ -903,7 +903,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4706 + * google/container/v1beta1/cluster_service.proto;l=4705 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java index c65dce726da1..6151e2bc3e8f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4700 + * google/container/v1beta1/cluster_service.proto;l=4699 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4700 + * google/container/v1beta1/cluster_service.proto;l=4699 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4706 + * google/container/v1beta1/cluster_service.proto;l=4705 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4706 + * google/container/v1beta1/cluster_service.proto;l=4705 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LustreCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LustreCsiDriverConfig.java index 1ef457f4dda2..60e4414c9301 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LustreCsiDriverConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LustreCsiDriverConfig.java @@ -101,7 +101,7 @@ public boolean getEnabled() { * bool enable_legacy_lustre_port = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.LustreCsiDriverConfig.enable_legacy_lustre_port is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2236 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2232 * @return The enableLegacyLustrePort. */ @java.lang.Override @@ -548,7 +548,7 @@ public Builder clearEnabled() { * bool enable_legacy_lustre_port = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.LustreCsiDriverConfig.enable_legacy_lustre_port is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2236 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2232 * @return The enableLegacyLustrePort. */ @java.lang.Override @@ -574,7 +574,7 @@ public boolean getEnableLegacyLustrePort() { * bool enable_legacy_lustre_port = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.LustreCsiDriverConfig.enable_legacy_lustre_port is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2236 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2232 * @param value The enableLegacyLustrePort to set. * @return This builder for chaining. */ @@ -604,7 +604,7 @@ public Builder setEnableLegacyLustrePort(boolean value) { * bool enable_legacy_lustre_port = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.LustreCsiDriverConfig.enable_legacy_lustre_port is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2236 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2232 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LustreCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LustreCsiDriverConfigOrBuilder.java index 5c06c0bc253e..72647232ac96 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LustreCsiDriverConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LustreCsiDriverConfigOrBuilder.java @@ -54,7 +54,7 @@ public interface LustreCsiDriverConfigOrBuilder * bool enable_legacy_lustre_port = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.LustreCsiDriverConfig.enable_legacy_lustre_port is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2236 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2232 * @return The enableLegacyLustrePort. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java index 4abfff7193f6..ad483b81b8de 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java @@ -93,7 +93,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2014 + * google/container/v1beta1/cluster_service.proto;l=2010 * @return The username. */ @java.lang.Override @@ -127,7 +127,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2014 + * google/container/v1beta1/cluster_service.proto;l=2010 * @return The bytes for username. */ @java.lang.Override @@ -167,7 +167,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2025 + * google/container/v1beta1/cluster_service.proto;l=2021 * @return The password. */ @java.lang.Override @@ -202,7 +202,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2025 + * google/container/v1beta1/cluster_service.proto;l=2021 * @return The bytes for password. */ @java.lang.Override @@ -952,7 +952,7 @@ public Builder mergeFrom( * string username = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2014 + * google/container/v1beta1/cluster_service.proto;l=2010 * @return The username. */ @java.lang.Deprecated @@ -985,7 +985,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2014 + * google/container/v1beta1/cluster_service.proto;l=2010 * @return The bytes for username. */ @java.lang.Deprecated @@ -1018,7 +1018,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2014 + * google/container/v1beta1/cluster_service.proto;l=2010 * @param value The username to set. * @return This builder for chaining. */ @@ -1050,7 +1050,7 @@ public Builder setUsername(java.lang.String value) { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2014 + * google/container/v1beta1/cluster_service.proto;l=2010 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1078,7 +1078,7 @@ public Builder clearUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2014 + * google/container/v1beta1/cluster_service.proto;l=2010 * @param value The bytes for username to set. * @return This builder for chaining. */ @@ -1114,7 +1114,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2025 + * google/container/v1beta1/cluster_service.proto;l=2021 * @return The password. */ @java.lang.Deprecated @@ -1148,7 +1148,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2025 + * google/container/v1beta1/cluster_service.proto;l=2021 * @return The bytes for password. */ @java.lang.Deprecated @@ -1182,7 +1182,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2025 + * google/container/v1beta1/cluster_service.proto;l=2021 * @param value The password to set. * @return This builder for chaining. */ @@ -1215,7 +1215,7 @@ public Builder setPassword(java.lang.String value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2025 + * google/container/v1beta1/cluster_service.proto;l=2021 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1244,7 +1244,7 @@ public Builder clearPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2025 + * google/container/v1beta1/cluster_service.proto;l=2021 * @param value The bytes for password to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java index 7de12443cf30..64c66d46d771 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java @@ -41,7 +41,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2014 + * google/container/v1beta1/cluster_service.proto;l=2010 * @return The username. */ @java.lang.Deprecated @@ -64,7 +64,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2014 + * google/container/v1beta1/cluster_service.proto;l=2010 * @return The bytes for username. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2025 + * google/container/v1beta1/cluster_service.proto;l=2021 * @return The password. */ @java.lang.Deprecated @@ -112,7 +112,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2025 + * google/container/v1beta1/cluster_service.proto;l=2021 * @return The bytes for password. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java index ad80b3af7be6..271d319fb215 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java @@ -548,8 +548,7 @@ public int getDiskSizeGb() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -577,8 +576,7 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -606,8 +604,7 @@ public int getOauthScopesCount() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -636,8 +633,7 @@ public java.lang.String getOauthScopes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5631,8 +5627,7 @@ private void ensureOauthScopesIsMutable() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5661,8 +5656,7 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5690,8 +5684,7 @@ public int getOauthScopesCount() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5720,8 +5713,7 @@ public java.lang.String getOauthScopes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5750,8 +5742,7 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5788,8 +5779,7 @@ public Builder setOauthScopes(int index, java.lang.String value) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5825,8 +5815,7 @@ public Builder addOauthScopes(java.lang.String value) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5859,8 +5848,7 @@ public Builder addAllOauthScopes(java.lang.Iterable values) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -5892,8 +5880,7 @@ public Builder clearOauthScopes() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java index fbb860d378ad..15d46ee5cc5a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java @@ -88,8 +88,7 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -115,8 +114,7 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -142,8 +140,7 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. @@ -170,8 +167,7 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). + * (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). * * If unspecified, no scopes are added, unless Cloud Logging or Cloud * Monitoring are enabled, in which case their required scopes will be added. diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java index 8264bfb5d25d..d180a1759e79 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java @@ -6935,7 +6935,7 @@ public com.google.container.v1beta1.NodePool.Status getStatus() { * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5240 + * google/container/v1beta1/cluster_service.proto;l=5239 * @return The statusMessage. */ @java.lang.Override @@ -6966,7 +6966,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5240 + * google/container/v1beta1/cluster_service.proto;l=5239 * @return The bytes for statusMessage. */ @java.lang.Override @@ -10015,7 +10015,7 @@ public Builder clearStatus() { * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5240 + * google/container/v1beta1/cluster_service.proto;l=5239 * @return The statusMessage. */ @java.lang.Deprecated @@ -10045,7 +10045,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5240 + * google/container/v1beta1/cluster_service.proto;l=5239 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -10075,7 +10075,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5240 + * google/container/v1beta1/cluster_service.proto;l=5239 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -10104,7 +10104,7 @@ public Builder setStatusMessage(java.lang.String value) { * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5240 + * google/container/v1beta1/cluster_service.proto;l=5239 * @return This builder for chaining. */ @java.lang.Deprecated @@ -10129,7 +10129,7 @@ public Builder clearStatusMessage() { * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5240 + * google/container/v1beta1/cluster_service.proto;l=5239 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java index 180b93e3c3de..b6b563f87190 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java @@ -408,7 +408,7 @@ public interface NodePoolOrBuilder * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5240 + * google/container/v1beta1/cluster_service.proto;l=5239 * @return The statusMessage. */ @java.lang.Deprecated @@ -428,7 +428,7 @@ public interface NodePoolOrBuilder * * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5240 + * google/container/v1beta1/cluster_service.proto;l=5239 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java index f90b59ef5df8..415770013d6e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java @@ -1018,7 +1018,7 @@ public com.google.protobuf.ByteString getNameBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4039 + * google/container/v1beta1/cluster_service.proto;l=4038 * @return The zone. */ @java.lang.Override @@ -1048,7 +1048,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4039 + * google/container/v1beta1/cluster_service.proto;l=4038 * @return The bytes for zone. */ @java.lang.Override @@ -1218,7 +1218,7 @@ public com.google.protobuf.ByteString getDetailBytes() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4053 + * google/container/v1beta1/cluster_service.proto;l=4052 * @return The statusMessage. */ @java.lang.Override @@ -1248,7 +1248,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4053 + * google/container/v1beta1/cluster_service.proto;l=4052 * @return The bytes for statusMessage. */ @java.lang.Override @@ -2798,7 +2798,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4039 + * google/container/v1beta1/cluster_service.proto;l=4038 * @return The zone. */ @java.lang.Deprecated @@ -2827,7 +2827,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4039 + * google/container/v1beta1/cluster_service.proto;l=4038 * @return The bytes for zone. */ @java.lang.Deprecated @@ -2856,7 +2856,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4039 + * google/container/v1beta1/cluster_service.proto;l=4038 * @param value The zone to set. * @return This builder for chaining. */ @@ -2884,7 +2884,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4039 + * google/container/v1beta1/cluster_service.proto;l=4038 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2908,7 +2908,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4039 + * google/container/v1beta1/cluster_service.proto;l=4038 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3260,7 +3260,7 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4053 + * google/container/v1beta1/cluster_service.proto;l=4052 * @return The statusMessage. */ @java.lang.Deprecated @@ -3289,7 +3289,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4053 + * google/container/v1beta1/cluster_service.proto;l=4052 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -3318,7 +3318,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4053 + * google/container/v1beta1/cluster_service.proto;l=4052 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -3346,7 +3346,7 @@ public Builder setStatusMessage(java.lang.String value) { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4053 + * google/container/v1beta1/cluster_service.proto;l=4052 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3370,7 +3370,7 @@ public Builder clearStatusMessage() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4053 + * google/container/v1beta1/cluster_service.proto;l=4052 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java index 49cca89b577c..3037bf3f6a65 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java @@ -63,7 +63,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4039 + * google/container/v1beta1/cluster_service.proto;l=4038 * @return The zone. */ @java.lang.Deprecated @@ -82,7 +82,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4039 + * google/container/v1beta1/cluster_service.proto;l=4038 * @return The bytes for zone. */ @java.lang.Deprecated @@ -187,7 +187,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4053 + * google/container/v1beta1/cluster_service.proto;l=4052 * @return The statusMessage. */ @java.lang.Deprecated @@ -206,7 +206,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4053 + * google/container/v1beta1/cluster_service.proto;l=4052 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java index 15d21bcb2ba2..a808515f95b0 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java @@ -88,7 +88,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_nodes is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2268 + * See google/container/v1beta1/cluster_service.proto;l=2264 * @return The enablePrivateNodes. */ @java.lang.Override @@ -114,7 +114,7 @@ public boolean getEnablePrivateNodes() { * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2275 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2271 * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -203,7 +203,7 @@ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2284 * @return The privateEndpoint. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getPrivateEndpoint() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2284 * @return The bytes for privateEndpoint. */ @java.lang.Override @@ -274,7 +274,7 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2296 + * google/container/v1beta1/cluster_service.proto;l=2292 * @return The publicEndpoint. */ @java.lang.Override @@ -307,7 +307,7 @@ public java.lang.String getPublicEndpoint() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2296 + * google/container/v1beta1/cluster_service.proto;l=2292 * @return The bytes for publicEndpoint. */ @java.lang.Override @@ -397,7 +397,7 @@ public com.google.protobuf.ByteString getPeeringNameBytes() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.master_global_access_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2307 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2303 * @return Whether the masterGlobalAccessConfig field is set. */ @java.lang.Override @@ -422,7 +422,7 @@ public boolean hasMasterGlobalAccessConfig() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.master_global_access_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2307 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2303 * @return The masterGlobalAccessConfig. */ @java.lang.Override @@ -478,7 +478,7 @@ public boolean hasMasterGlobalAccessConfig() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2316 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2312 * @return The privateEndpointSubnetwork. */ @java.lang.Override @@ -510,7 +510,7 @@ public java.lang.String getPrivateEndpointSubnetwork() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2316 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2312 * @return The bytes for privateEndpointSubnetwork. */ @java.lang.Override @@ -1078,7 +1078,7 @@ public Builder mergeFrom( * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_nodes is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2268 + * See google/container/v1beta1/cluster_service.proto;l=2264 * @return The enablePrivateNodes. */ @java.lang.Override @@ -1103,7 +1103,7 @@ public boolean getEnablePrivateNodes() { * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_nodes is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2268 + * See google/container/v1beta1/cluster_service.proto;l=2264 * @param value The enablePrivateNodes to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setEnablePrivateNodes(boolean value) { * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_nodes is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2268 + * See google/container/v1beta1/cluster_service.proto;l=2264 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1159,7 +1159,7 @@ public Builder clearEnablePrivateNodes() { * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2275 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2271 * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -1182,7 +1182,7 @@ public boolean getEnablePrivateEndpoint() { * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2275 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2271 * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ @@ -1209,7 +1209,7 @@ public Builder setEnablePrivateEndpoint(boolean value) { * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2275 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2271 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1364,7 +1364,7 @@ public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) * * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2284 * @return The privateEndpoint. */ @java.lang.Deprecated @@ -1396,7 +1396,7 @@ public java.lang.String getPrivateEndpoint() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2284 * @return The bytes for privateEndpoint. */ @java.lang.Deprecated @@ -1428,7 +1428,7 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2284 * @param value The privateEndpoint to set. * @return This builder for chaining. */ @@ -1459,7 +1459,7 @@ public Builder setPrivateEndpoint(java.lang.String value) { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2284 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1486,7 +1486,7 @@ public Builder clearPrivateEndpoint() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2284 * @param value The bytes for privateEndpoint to set. * @return This builder for chaining. */ @@ -1520,7 +1520,7 @@ public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2296 + * google/container/v1beta1/cluster_service.proto;l=2292 * @return The publicEndpoint. */ @java.lang.Deprecated @@ -1552,7 +1552,7 @@ public java.lang.String getPublicEndpoint() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2296 + * google/container/v1beta1/cluster_service.proto;l=2292 * @return The bytes for publicEndpoint. */ @java.lang.Deprecated @@ -1584,7 +1584,7 @@ public com.google.protobuf.ByteString getPublicEndpointBytes() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2296 + * google/container/v1beta1/cluster_service.proto;l=2292 * @param value The publicEndpoint to set. * @return This builder for chaining. */ @@ -1615,7 +1615,7 @@ public Builder setPublicEndpoint(java.lang.String value) { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2296 + * google/container/v1beta1/cluster_service.proto;l=2292 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1642,7 +1642,7 @@ public Builder clearPublicEndpoint() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2296 + * google/container/v1beta1/cluster_service.proto;l=2292 * @param value The bytes for publicEndpoint to set. * @return This builder for chaining. */ @@ -1793,7 +1793,7 @@ public Builder setPeeringNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.master_global_access_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2307 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2303 * @return Whether the masterGlobalAccessConfig field is set. */ @java.lang.Deprecated @@ -1817,7 +1817,7 @@ public boolean hasMasterGlobalAccessConfig() { * * * @deprecated google.container.v1beta1.PrivateClusterConfig.master_global_access_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2307 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2303 * @return The masterGlobalAccessConfig. */ @java.lang.Deprecated @@ -2058,7 +2058,7 @@ public Builder clearMasterGlobalAccessConfig() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2316 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2312 * @return The privateEndpointSubnetwork. */ @java.lang.Deprecated @@ -2089,7 +2089,7 @@ public java.lang.String getPrivateEndpointSubnetwork() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2316 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2312 * @return The bytes for privateEndpointSubnetwork. */ @java.lang.Deprecated @@ -2120,7 +2120,7 @@ public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2316 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2312 * @param value The privateEndpointSubnetwork to set. * @return This builder for chaining. */ @@ -2150,7 +2150,7 @@ public Builder setPrivateEndpointSubnetwork(java.lang.String value) { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2316 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2312 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2176,7 +2176,7 @@ public Builder clearPrivateEndpointSubnetwork() { * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2316 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2312 * @param value The bytes for privateEndpointSubnetwork to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java index e1bab4c930ca..a3b7da01e6ff 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java @@ -40,7 +40,7 @@ public interface PrivateClusterConfigOrBuilder * bool enable_private_nodes = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_nodes is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2268 + * See google/container/v1beta1/cluster_service.proto;l=2264 * @return The enablePrivateNodes. */ @java.lang.Deprecated @@ -60,7 +60,7 @@ public interface PrivateClusterConfigOrBuilder * bool enable_private_endpoint = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.enable_private_endpoint is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2275 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2271 * @return The enablePrivateEndpoint. */ @java.lang.Deprecated @@ -114,7 +114,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2284 * @return The privateEndpoint. */ @java.lang.Deprecated @@ -136,7 +136,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2288 + * google/container/v1beta1/cluster_service.proto;l=2284 * @return The bytes for privateEndpoint. */ @java.lang.Deprecated @@ -158,7 +158,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2296 + * google/container/v1beta1/cluster_service.proto;l=2292 * @return The publicEndpoint. */ @java.lang.Deprecated @@ -180,7 +180,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2296 + * google/container/v1beta1/cluster_service.proto;l=2292 * @return The bytes for publicEndpoint. */ @java.lang.Deprecated @@ -228,7 +228,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1beta1.PrivateClusterConfig.master_global_access_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2307 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2303 * @return Whether the masterGlobalAccessConfig field is set. */ @java.lang.Deprecated @@ -250,7 +250,7 @@ public interface PrivateClusterConfigOrBuilder * * * @deprecated google.container.v1beta1.PrivateClusterConfig.master_global_access_config is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2307 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2303 * @return The masterGlobalAccessConfig. */ @java.lang.Deprecated @@ -290,7 +290,7 @@ public interface PrivateClusterConfigOrBuilder * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2316 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2312 * @return The privateEndpointSubnetwork. */ @java.lang.Deprecated @@ -311,7 +311,7 @@ public interface PrivateClusterConfigOrBuilder * string private_endpoint_subnetwork = 10 [deprecated = true]; * * @deprecated google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=2316 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2312 * @return The bytes for privateEndpointSubnetwork. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java index 3048993d1a21..6c224beb5fdc 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java @@ -23,7 +23,7 @@ * * *
                                    - * Collection of [GCP
                                    + * Collection of [Resource Manager
                                      * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
                                      * 
                                    * @@ -354,7 +354,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                    -   * Collection of [GCP
                                    +   * Collection of [Resource Manager
                                        * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
                                        * 
                                    * diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java index ffefe620d0cd..2096dadb4e56 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java @@ -88,7 +88,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5523 + * See google/container/v1beta1/cluster_service.proto;l=5522 * @return The projectId. */ @java.lang.Override @@ -117,7 +117,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5523 + * See google/container/v1beta1/cluster_service.proto;l=5522 * @return The bytes for projectId. */ @java.lang.Override @@ -152,7 +152,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5529 + * google/container/v1beta1/cluster_service.proto;l=5528 * @return The zone. */ @java.lang.Override @@ -182,7 +182,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5529 + * google/container/v1beta1/cluster_service.proto;l=5528 * @return The bytes for zone. */ @java.lang.Override @@ -215,7 +215,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5533 + * See google/container/v1beta1/cluster_service.proto;l=5532 * @return The clusterId. */ @java.lang.Override @@ -243,7 +243,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5533 + * See google/container/v1beta1/cluster_service.proto;l=5532 * @return The bytes for clusterId. */ @java.lang.Override @@ -276,7 +276,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5537 + * See google/container/v1beta1/cluster_service.proto;l=5536 * @return The nodePoolId. */ @java.lang.Override @@ -304,7 +304,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5537 + * See google/container/v1beta1/cluster_service.proto;l=5536 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -876,7 +876,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5523 + * See google/container/v1beta1/cluster_service.proto;l=5522 * @return The projectId. */ @java.lang.Deprecated @@ -904,7 +904,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5523 + * See google/container/v1beta1/cluster_service.proto;l=5522 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -932,7 +932,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5523 + * See google/container/v1beta1/cluster_service.proto;l=5522 * @param value The projectId to set. * @return This builder for chaining. */ @@ -959,7 +959,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5523 + * See google/container/v1beta1/cluster_service.proto;l=5522 * @return This builder for chaining. */ @java.lang.Deprecated @@ -982,7 +982,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5523 + * See google/container/v1beta1/cluster_service.proto;l=5522 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1013,7 +1013,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5529 + * google/container/v1beta1/cluster_service.proto;l=5528 * @return The zone. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5529 + * google/container/v1beta1/cluster_service.proto;l=5528 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1071,7 +1071,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5529 + * google/container/v1beta1/cluster_service.proto;l=5528 * @param value The zone to set. * @return This builder for chaining. */ @@ -1099,7 +1099,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5529 + * google/container/v1beta1/cluster_service.proto;l=5528 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1123,7 +1123,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5529 + * google/container/v1beta1/cluster_service.proto;l=5528 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1152,7 +1152,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5533 + * See google/container/v1beta1/cluster_service.proto;l=5532 * @return The clusterId. */ @java.lang.Deprecated @@ -1179,7 +1179,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5533 + * See google/container/v1beta1/cluster_service.proto;l=5532 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1206,7 +1206,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5533 + * See google/container/v1beta1/cluster_service.proto;l=5532 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1232,7 +1232,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5533 + * See google/container/v1beta1/cluster_service.proto;l=5532 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1254,7 +1254,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5533 + * See google/container/v1beta1/cluster_service.proto;l=5532 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5537 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5536 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1310,7 +1310,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5537 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5536 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1337,7 +1337,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5537 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5536 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1363,7 +1363,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5537 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5536 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1385,7 +1385,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=5537 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=5536 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java index e00e66e07f81..19cbad02af43 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5523 + * See google/container/v1beta1/cluster_service.proto;l=5522 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5523 + * See google/container/v1beta1/cluster_service.proto;l=5522 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5529 + * google/container/v1beta1/cluster_service.proto;l=5528 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5529 + * google/container/v1beta1/cluster_service.proto;l=5528 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5533 + * See google/container/v1beta1/cluster_service.proto;l=5532 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5533 + * See google/container/v1beta1/cluster_service.proto;l=5532 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5537 + * See google/container/v1beta1/cluster_service.proto;l=5536 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5537 + * See google/container/v1beta1/cluster_service.proto;l=5536 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java index 145806e23c61..6d0061e6a0c3 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java @@ -216,7 +216,7 @@ private Type(int value) { * string sandbox_type = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1672 + * google/container/v1beta1/cluster_service.proto;l=1669 * @return The sandboxType. */ @java.lang.Override @@ -243,7 +243,7 @@ public java.lang.String getSandboxType() { * string sandbox_type = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1672 + * google/container/v1beta1/cluster_service.proto;l=1669 * @return The bytes for sandboxType. */ @java.lang.Override @@ -673,7 +673,7 @@ public Builder mergeFrom( * string sandbox_type = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1672 + * google/container/v1beta1/cluster_service.proto;l=1669 * @return The sandboxType. */ @java.lang.Deprecated @@ -699,7 +699,7 @@ public java.lang.String getSandboxType() { * string sandbox_type = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1672 + * google/container/v1beta1/cluster_service.proto;l=1669 * @return The bytes for sandboxType. */ @java.lang.Deprecated @@ -725,7 +725,7 @@ public com.google.protobuf.ByteString getSandboxTypeBytes() { * string sandbox_type = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1672 + * google/container/v1beta1/cluster_service.proto;l=1669 * @param value The sandboxType to set. * @return This builder for chaining. */ @@ -750,7 +750,7 @@ public Builder setSandboxType(java.lang.String value) { * string sandbox_type = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1672 + * google/container/v1beta1/cluster_service.proto;l=1669 * @return This builder for chaining. */ @java.lang.Deprecated @@ -771,7 +771,7 @@ public Builder clearSandboxType() { * string sandbox_type = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1672 + * google/container/v1beta1/cluster_service.proto;l=1669 * @param value The bytes for sandboxType to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java index abb21d2a2c33..cf4c9426be56 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface SandboxConfigOrBuilder * string sandbox_type = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1672 + * google/container/v1beta1/cluster_service.proto;l=1669 * @return The sandboxType. */ @java.lang.Deprecated @@ -50,7 +50,7 @@ public interface SandboxConfigOrBuilder * string sandbox_type = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1672 + * google/container/v1beta1/cluster_service.proto;l=1669 * @return The bytes for sandboxType. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java index 9ee7fb354409..29a6fa4a94ee 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4489 + * google/container/v1beta1/cluster_service.proto;l=4488 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4489 + * google/container/v1beta1/cluster_service.proto;l=4488 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4495 + * google/container/v1beta1/cluster_service.proto;l=4494 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4495 + * google/container/v1beta1/cluster_service.proto;l=4494 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4499 + * google/container/v1beta1/cluster_service.proto;l=4498 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4499 + * google/container/v1beta1/cluster_service.proto;l=4498 * @return The bytes for clusterId. */ @java.lang.Override @@ -847,7 +847,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4489 + * google/container/v1beta1/cluster_service.proto;l=4488 * @return The projectId. */ @java.lang.Deprecated @@ -875,7 +875,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4489 + * google/container/v1beta1/cluster_service.proto;l=4488 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -903,7 +903,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4489 + * google/container/v1beta1/cluster_service.proto;l=4488 * @param value The projectId to set. * @return This builder for chaining. */ @@ -930,7 +930,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4489 + * google/container/v1beta1/cluster_service.proto;l=4488 * @return This builder for chaining. */ @java.lang.Deprecated @@ -953,7 +953,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4489 + * google/container/v1beta1/cluster_service.proto;l=4488 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -984,7 +984,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4495 + * google/container/v1beta1/cluster_service.proto;l=4494 * @return The zone. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4495 + * google/container/v1beta1/cluster_service.proto;l=4494 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4495 + * google/container/v1beta1/cluster_service.proto;l=4494 * @param value The zone to set. * @return This builder for chaining. */ @@ -1070,7 +1070,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4495 + * google/container/v1beta1/cluster_service.proto;l=4494 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1094,7 +1094,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4495 + * google/container/v1beta1/cluster_service.proto;l=4494 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1123,7 +1123,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4499 + * google/container/v1beta1/cluster_service.proto;l=4498 * @return The clusterId. */ @java.lang.Deprecated @@ -1150,7 +1150,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4499 + * google/container/v1beta1/cluster_service.proto;l=4498 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1177,7 +1177,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4499 + * google/container/v1beta1/cluster_service.proto;l=4498 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1203,7 +1203,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4499 + * google/container/v1beta1/cluster_service.proto;l=4498 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1225,7 +1225,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4499 + * google/container/v1beta1/cluster_service.proto;l=4498 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java index 1cd49b769f1e..6f068bd28ba3 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4489 + * google/container/v1beta1/cluster_service.proto;l=4488 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4489 + * google/container/v1beta1/cluster_service.proto;l=4488 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4495 + * google/container/v1beta1/cluster_service.proto;l=4494 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4495 + * google/container/v1beta1/cluster_service.proto;l=4494 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4499 + * google/container/v1beta1/cluster_service.proto;l=4498 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4499 + * google/container/v1beta1/cluster_service.proto;l=4498 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java index 4a1a4ec7098f..884aab6b234a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java @@ -99,7 +99,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5746 + * google/container/v1beta1/cluster_service.proto;l=5744 * @return The projectId. */ @java.lang.Override @@ -128,7 +128,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5746 + * google/container/v1beta1/cluster_service.proto;l=5744 * @return The bytes for projectId. */ @java.lang.Override @@ -163,7 +163,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5752 + * google/container/v1beta1/cluster_service.proto;l=5750 * @return The zone. */ @java.lang.Override @@ -193,7 +193,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5752 + * google/container/v1beta1/cluster_service.proto;l=5750 * @return The bytes for zone. */ @java.lang.Override @@ -226,7 +226,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5756 + * google/container/v1beta1/cluster_service.proto;l=5754 * @return The clusterId. */ @java.lang.Override @@ -254,7 +254,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5756 + * google/container/v1beta1/cluster_service.proto;l=5754 * @return The bytes for clusterId. */ @java.lang.Override @@ -1014,7 +1014,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5746 + * google/container/v1beta1/cluster_service.proto;l=5744 * @return The projectId. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5746 + * google/container/v1beta1/cluster_service.proto;l=5744 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5746 + * google/container/v1beta1/cluster_service.proto;l=5744 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1097,7 +1097,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5746 + * google/container/v1beta1/cluster_service.proto;l=5744 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1120,7 +1120,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5746 + * google/container/v1beta1/cluster_service.proto;l=5744 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1151,7 +1151,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5752 + * google/container/v1beta1/cluster_service.proto;l=5750 * @return The zone. */ @java.lang.Deprecated @@ -1180,7 +1180,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5752 + * google/container/v1beta1/cluster_service.proto;l=5750 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5752 + * google/container/v1beta1/cluster_service.proto;l=5750 * @param value The zone to set. * @return This builder for chaining. */ @@ -1237,7 +1237,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5752 + * google/container/v1beta1/cluster_service.proto;l=5750 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1261,7 +1261,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5752 + * google/container/v1beta1/cluster_service.proto;l=5750 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1290,7 +1290,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5756 + * google/container/v1beta1/cluster_service.proto;l=5754 * @return The clusterId. */ @java.lang.Deprecated @@ -1317,7 +1317,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5756 + * google/container/v1beta1/cluster_service.proto;l=5754 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1344,7 +1344,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5756 + * google/container/v1beta1/cluster_service.proto;l=5754 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1370,7 +1370,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5756 + * google/container/v1beta1/cluster_service.proto;l=5754 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1392,7 +1392,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5756 + * google/container/v1beta1/cluster_service.proto;l=5754 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java index 3575a62a5b5c..ed69fd7599c0 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5746 + * google/container/v1beta1/cluster_service.proto;l=5744 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5746 + * google/container/v1beta1/cluster_service.proto;l=5744 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5752 + * google/container/v1beta1/cluster_service.proto;l=5750 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5752 + * google/container/v1beta1/cluster_service.proto;l=5750 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5756 + * google/container/v1beta1/cluster_service.proto;l=5754 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5756 + * google/container/v1beta1/cluster_service.proto;l=5754 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java index b0af1e05023e..d60d754afb75 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5781 + * google/container/v1beta1/cluster_service.proto;l=5779 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5781 + * google/container/v1beta1/cluster_service.proto;l=5779 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5787 + * google/container/v1beta1/cluster_service.proto;l=5785 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5787 + * google/container/v1beta1/cluster_service.proto;l=5785 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5791 + * google/container/v1beta1/cluster_service.proto;l=5789 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5791 + * google/container/v1beta1/cluster_service.proto;l=5789 * @return The bytes for clusterId. */ @java.lang.Override @@ -783,7 +783,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5781 + * google/container/v1beta1/cluster_service.proto;l=5779 * @return The projectId. */ @java.lang.Deprecated @@ -811,7 +811,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5781 + * google/container/v1beta1/cluster_service.proto;l=5779 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -839,7 +839,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5781 + * google/container/v1beta1/cluster_service.proto;l=5779 * @param value The projectId to set. * @return This builder for chaining. */ @@ -866,7 +866,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5781 + * google/container/v1beta1/cluster_service.proto;l=5779 * @return This builder for chaining. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5781 + * google/container/v1beta1/cluster_service.proto;l=5779 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -920,7 +920,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5787 + * google/container/v1beta1/cluster_service.proto;l=5785 * @return The zone. */ @java.lang.Deprecated @@ -949,7 +949,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5787 + * google/container/v1beta1/cluster_service.proto;l=5785 * @return The bytes for zone. */ @java.lang.Deprecated @@ -978,7 +978,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5787 + * google/container/v1beta1/cluster_service.proto;l=5785 * @param value The zone to set. * @return This builder for chaining. */ @@ -1006,7 +1006,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5787 + * google/container/v1beta1/cluster_service.proto;l=5785 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1030,7 +1030,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5787 + * google/container/v1beta1/cluster_service.proto;l=5785 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1059,7 +1059,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5791 + * google/container/v1beta1/cluster_service.proto;l=5789 * @return The clusterId. */ @java.lang.Deprecated @@ -1086,7 +1086,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5791 + * google/container/v1beta1/cluster_service.proto;l=5789 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1113,7 +1113,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5791 + * google/container/v1beta1/cluster_service.proto;l=5789 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1139,7 +1139,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5791 + * google/container/v1beta1/cluster_service.proto;l=5789 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1161,7 +1161,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5791 + * google/container/v1beta1/cluster_service.proto;l=5789 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java index 61e6a0c75917..c5dfb2f30b7e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5781 + * google/container/v1beta1/cluster_service.proto;l=5779 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5781 + * google/container/v1beta1/cluster_service.proto;l=5779 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5787 + * google/container/v1beta1/cluster_service.proto;l=5785 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5787 + * google/container/v1beta1/cluster_service.proto;l=5785 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5791 + * google/container/v1beta1/cluster_service.proto;l=5789 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5791 + * google/container/v1beta1/cluster_service.proto;l=5789 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java index 5ed6d844336b..15d1903c135e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4515 + * google/container/v1beta1/cluster_service.proto;l=4514 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4515 + * google/container/v1beta1/cluster_service.proto;l=4514 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4521 + * google/container/v1beta1/cluster_service.proto;l=4520 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4521 + * google/container/v1beta1/cluster_service.proto;l=4520 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4525 + * google/container/v1beta1/cluster_service.proto;l=4524 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4525 + * google/container/v1beta1/cluster_service.proto;l=4524 * @return The bytes for clusterId. */ @java.lang.Override @@ -871,7 +871,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4515 + * google/container/v1beta1/cluster_service.proto;l=4514 * @return The projectId. */ @java.lang.Deprecated @@ -899,7 +899,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4515 + * google/container/v1beta1/cluster_service.proto;l=4514 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4515 + * google/container/v1beta1/cluster_service.proto;l=4514 * @param value The projectId to set. * @return This builder for chaining. */ @@ -954,7 +954,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4515 + * google/container/v1beta1/cluster_service.proto;l=4514 * @return This builder for chaining. */ @java.lang.Deprecated @@ -977,7 +977,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4515 + * google/container/v1beta1/cluster_service.proto;l=4514 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1008,7 +1008,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4521 + * google/container/v1beta1/cluster_service.proto;l=4520 * @return The zone. */ @java.lang.Deprecated @@ -1037,7 +1037,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4521 + * google/container/v1beta1/cluster_service.proto;l=4520 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1066,7 +1066,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4521 + * google/container/v1beta1/cluster_service.proto;l=4520 * @param value The zone to set. * @return This builder for chaining. */ @@ -1094,7 +1094,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4521 + * google/container/v1beta1/cluster_service.proto;l=4520 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1118,7 +1118,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4521 + * google/container/v1beta1/cluster_service.proto;l=4520 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1147,7 +1147,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4525 + * google/container/v1beta1/cluster_service.proto;l=4524 * @return The clusterId. */ @java.lang.Deprecated @@ -1174,7 +1174,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4525 + * google/container/v1beta1/cluster_service.proto;l=4524 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1201,7 +1201,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4525 + * google/container/v1beta1/cluster_service.proto;l=4524 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1227,7 +1227,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4525 + * google/container/v1beta1/cluster_service.proto;l=4524 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1249,7 +1249,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4525 + * google/container/v1beta1/cluster_service.proto;l=4524 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java index 989a9409e173..3e6f367a6885 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4515 + * google/container/v1beta1/cluster_service.proto;l=4514 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4515 + * google/container/v1beta1/cluster_service.proto;l=4514 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4521 + * google/container/v1beta1/cluster_service.proto;l=4520 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4521 + * google/container/v1beta1/cluster_service.proto;l=4520 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4525 + * google/container/v1beta1/cluster_service.proto;l=4524 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4525 + * google/container/v1beta1/cluster_service.proto;l=4524 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java index a1c6e6faffab..e68ebd83bed1 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4419 + * google/container/v1beta1/cluster_service.proto;l=4418 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4419 + * google/container/v1beta1/cluster_service.proto;l=4418 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4425 + * google/container/v1beta1/cluster_service.proto;l=4424 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4425 + * google/container/v1beta1/cluster_service.proto;l=4424 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4429 + * google/container/v1beta1/cluster_service.proto;l=4428 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4429 + * google/container/v1beta1/cluster_service.proto;l=4428 * @return The bytes for clusterId. */ @java.lang.Override @@ -839,7 +839,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4419 + * google/container/v1beta1/cluster_service.proto;l=4418 * @return The projectId. */ @java.lang.Deprecated @@ -867,7 +867,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4419 + * google/container/v1beta1/cluster_service.proto;l=4418 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -895,7 +895,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4419 + * google/container/v1beta1/cluster_service.proto;l=4418 * @param value The projectId to set. * @return This builder for chaining. */ @@ -922,7 +922,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4419 + * google/container/v1beta1/cluster_service.proto;l=4418 * @return This builder for chaining. */ @java.lang.Deprecated @@ -945,7 +945,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4419 + * google/container/v1beta1/cluster_service.proto;l=4418 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -976,7 +976,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4425 + * google/container/v1beta1/cluster_service.proto;l=4424 * @return The zone. */ @java.lang.Deprecated @@ -1005,7 +1005,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4425 + * google/container/v1beta1/cluster_service.proto;l=4424 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1034,7 +1034,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4425 + * google/container/v1beta1/cluster_service.proto;l=4424 * @param value The zone to set. * @return This builder for chaining. */ @@ -1062,7 +1062,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4425 + * google/container/v1beta1/cluster_service.proto;l=4424 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1086,7 +1086,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4425 + * google/container/v1beta1/cluster_service.proto;l=4424 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1115,7 +1115,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4429 + * google/container/v1beta1/cluster_service.proto;l=4428 * @return The clusterId. */ @java.lang.Deprecated @@ -1142,7 +1142,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4429 + * google/container/v1beta1/cluster_service.proto;l=4428 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1169,7 +1169,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4429 + * google/container/v1beta1/cluster_service.proto;l=4428 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1195,7 +1195,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4429 + * google/container/v1beta1/cluster_service.proto;l=4428 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1217,7 +1217,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4429 + * google/container/v1beta1/cluster_service.proto;l=4428 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java index f4860a067319..eef4ed999b6a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4419 + * google/container/v1beta1/cluster_service.proto;l=4418 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4419 + * google/container/v1beta1/cluster_service.proto;l=4418 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4425 + * google/container/v1beta1/cluster_service.proto;l=4424 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4425 + * google/container/v1beta1/cluster_service.proto;l=4424 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4429 + * google/container/v1beta1/cluster_service.proto;l=4428 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4429 + * google/container/v1beta1/cluster_service.proto;l=4428 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java index 839e4ab14787..85b6a82bd32a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java @@ -276,7 +276,7 @@ private Action(int value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4597 * @return The projectId. */ @java.lang.Override @@ -305,7 +305,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4597 * @return The bytes for projectId. */ @java.lang.Override @@ -340,7 +340,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4604 + * google/container/v1beta1/cluster_service.proto;l=4603 * @return The zone. */ @java.lang.Override @@ -370,7 +370,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4604 + * google/container/v1beta1/cluster_service.proto;l=4603 * @return The bytes for zone. */ @java.lang.Override @@ -403,7 +403,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4608 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The clusterId. */ @java.lang.Override @@ -431,7 +431,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4608 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The bytes for clusterId. */ @java.lang.Override @@ -1095,7 +1095,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4597 * @return The projectId. */ @java.lang.Deprecated @@ -1123,7 +1123,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4597 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1151,7 +1151,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4597 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1178,7 +1178,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4597 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1201,7 +1201,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4597 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1232,7 +1232,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4604 + * google/container/v1beta1/cluster_service.proto;l=4603 * @return The zone. */ @java.lang.Deprecated @@ -1261,7 +1261,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4604 + * google/container/v1beta1/cluster_service.proto;l=4603 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1290,7 +1290,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4604 + * google/container/v1beta1/cluster_service.proto;l=4603 * @param value The zone to set. * @return This builder for chaining. */ @@ -1318,7 +1318,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4604 + * google/container/v1beta1/cluster_service.proto;l=4603 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1342,7 +1342,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4604 + * google/container/v1beta1/cluster_service.proto;l=4603 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1371,7 +1371,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4608 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The clusterId. */ @java.lang.Deprecated @@ -1398,7 +1398,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4608 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1425,7 +1425,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4608 + * google/container/v1beta1/cluster_service.proto;l=4607 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1451,7 +1451,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4608 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1473,7 +1473,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4608 + * google/container/v1beta1/cluster_service.proto;l=4607 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java index 9c6a956fa840..5f2e43ffea88 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4597 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4597 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4604 + * google/container/v1beta1/cluster_service.proto;l=4603 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4604 + * google/container/v1beta1/cluster_service.proto;l=4603 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4608 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4608 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java index d3152b242a44..7b34fa709f44 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4454 + * google/container/v1beta1/cluster_service.proto;l=4453 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4454 + * google/container/v1beta1/cluster_service.proto;l=4453 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4460 + * google/container/v1beta1/cluster_service.proto;l=4459 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4460 + * google/container/v1beta1/cluster_service.proto;l=4459 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4464 + * google/container/v1beta1/cluster_service.proto;l=4463 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4464 + * google/container/v1beta1/cluster_service.proto;l=4463 * @return The bytes for clusterId. */ @java.lang.Override @@ -839,7 +839,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4454 + * See google/container/v1beta1/cluster_service.proto;l=4453 * @return The projectId. */ @java.lang.Deprecated @@ -867,7 +867,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4454 + * See google/container/v1beta1/cluster_service.proto;l=4453 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -895,7 +895,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4454 + * See google/container/v1beta1/cluster_service.proto;l=4453 * @param value The projectId to set. * @return This builder for chaining. */ @@ -922,7 +922,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4454 + * See google/container/v1beta1/cluster_service.proto;l=4453 * @return This builder for chaining. */ @java.lang.Deprecated @@ -945,7 +945,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4454 + * See google/container/v1beta1/cluster_service.proto;l=4453 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -976,7 +976,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4460 + * google/container/v1beta1/cluster_service.proto;l=4459 * @return The zone. */ @java.lang.Deprecated @@ -1005,7 +1005,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4460 + * google/container/v1beta1/cluster_service.proto;l=4459 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1034,7 +1034,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4460 + * google/container/v1beta1/cluster_service.proto;l=4459 * @param value The zone to set. * @return This builder for chaining. */ @@ -1062,7 +1062,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4460 + * google/container/v1beta1/cluster_service.proto;l=4459 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1086,7 +1086,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4460 + * google/container/v1beta1/cluster_service.proto;l=4459 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1115,7 +1115,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4464 + * See google/container/v1beta1/cluster_service.proto;l=4463 * @return The clusterId. */ @java.lang.Deprecated @@ -1142,7 +1142,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4464 + * See google/container/v1beta1/cluster_service.proto;l=4463 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1169,7 +1169,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4464 + * See google/container/v1beta1/cluster_service.proto;l=4463 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1195,7 +1195,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4464 + * See google/container/v1beta1/cluster_service.proto;l=4463 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1217,7 +1217,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4464 + * See google/container/v1beta1/cluster_service.proto;l=4463 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java index 897cef6fc4e5..383a34f862ce 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4454 + * google/container/v1beta1/cluster_service.proto;l=4453 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4454 + * google/container/v1beta1/cluster_service.proto;l=4453 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4460 + * google/container/v1beta1/cluster_service.proto;l=4459 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4460 + * google/container/v1beta1/cluster_service.proto;l=4459 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4464 + * google/container/v1beta1/cluster_service.proto;l=4463 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4464 + * google/container/v1beta1/cluster_service.proto;l=4463 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java index b9544fd404d3..be7b2a106023 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6007 + * google/container/v1beta1/cluster_service.proto;l=6005 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6007 + * google/container/v1beta1/cluster_service.proto;l=6005 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6013 + * google/container/v1beta1/cluster_service.proto;l=6011 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6013 + * google/container/v1beta1/cluster_service.proto;l=6011 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6017 + * google/container/v1beta1/cluster_service.proto;l=6015 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6017 + * google/container/v1beta1/cluster_service.proto;l=6015 * @return The bytes for clusterId. */ @java.lang.Override @@ -844,7 +844,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6007 + * google/container/v1beta1/cluster_service.proto;l=6005 * @return The projectId. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6007 + * google/container/v1beta1/cluster_service.proto;l=6005 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -900,7 +900,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6007 + * google/container/v1beta1/cluster_service.proto;l=6005 * @param value The projectId to set. * @return This builder for chaining. */ @@ -927,7 +927,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6007 + * google/container/v1beta1/cluster_service.proto;l=6005 * @return This builder for chaining. */ @java.lang.Deprecated @@ -950,7 +950,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6007 + * google/container/v1beta1/cluster_service.proto;l=6005 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -981,7 +981,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6013 + * google/container/v1beta1/cluster_service.proto;l=6011 * @return The zone. */ @java.lang.Deprecated @@ -1010,7 +1010,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6013 + * google/container/v1beta1/cluster_service.proto;l=6011 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1039,7 +1039,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6013 + * google/container/v1beta1/cluster_service.proto;l=6011 * @param value The zone to set. * @return This builder for chaining. */ @@ -1067,7 +1067,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6013 + * google/container/v1beta1/cluster_service.proto;l=6011 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1091,7 +1091,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6013 + * google/container/v1beta1/cluster_service.proto;l=6011 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1120,7 +1120,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6017 + * google/container/v1beta1/cluster_service.proto;l=6015 * @return The clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6017 + * google/container/v1beta1/cluster_service.proto;l=6015 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1174,7 +1174,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6017 + * google/container/v1beta1/cluster_service.proto;l=6015 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1200,7 +1200,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6017 + * google/container/v1beta1/cluster_service.proto;l=6015 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1222,7 +1222,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6017 + * google/container/v1beta1/cluster_service.proto;l=6015 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java index 8103ace66336..5baa957a996b 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6007 + * google/container/v1beta1/cluster_service.proto;l=6005 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6007 + * google/container/v1beta1/cluster_service.proto;l=6005 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6013 + * google/container/v1beta1/cluster_service.proto;l=6011 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6013 + * google/container/v1beta1/cluster_service.proto;l=6011 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6017 + * google/container/v1beta1/cluster_service.proto;l=6015 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6017 + * google/container/v1beta1/cluster_service.proto;l=6015 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java index 007346683fe3..37de05168382 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4389 + * See google/container/v1beta1/cluster_service.proto;l=4388 * @return The projectId. */ @java.lang.Override @@ -115,7 +115,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4389 + * See google/container/v1beta1/cluster_service.proto;l=4388 * @return The bytes for projectId. */ @java.lang.Override @@ -150,7 +150,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4395 + * google/container/v1beta1/cluster_service.proto;l=4394 * @return The zone. */ @java.lang.Override @@ -180,7 +180,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4395 + * google/container/v1beta1/cluster_service.proto;l=4394 * @return The bytes for zone. */ @java.lang.Override @@ -213,7 +213,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4398 * @return The clusterId. */ @java.lang.Override @@ -241,7 +241,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4398 * @return The bytes for clusterId. */ @java.lang.Override @@ -274,7 +274,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4403 + * See google/container/v1beta1/cluster_service.proto;l=4402 * @return The nodePoolId. */ @java.lang.Override @@ -302,7 +302,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4403 + * See google/container/v1beta1/cluster_service.proto;l=4402 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -933,7 +933,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4389 + * See google/container/v1beta1/cluster_service.proto;l=4388 * @return The projectId. */ @java.lang.Deprecated @@ -961,7 +961,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4389 + * See google/container/v1beta1/cluster_service.proto;l=4388 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -989,7 +989,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4389 + * See google/container/v1beta1/cluster_service.proto;l=4388 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1016,7 +1016,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4389 + * See google/container/v1beta1/cluster_service.proto;l=4388 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1039,7 +1039,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4389 + * See google/container/v1beta1/cluster_service.proto;l=4388 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1070,7 +1070,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4395 + * google/container/v1beta1/cluster_service.proto;l=4394 * @return The zone. */ @java.lang.Deprecated @@ -1099,7 +1099,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4395 + * google/container/v1beta1/cluster_service.proto;l=4394 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1128,7 +1128,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4395 + * google/container/v1beta1/cluster_service.proto;l=4394 * @param value The zone to set. * @return This builder for chaining. */ @@ -1156,7 +1156,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4395 + * google/container/v1beta1/cluster_service.proto;l=4394 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1180,7 +1180,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4395 + * google/container/v1beta1/cluster_service.proto;l=4394 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1209,7 +1209,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4398 * @return The clusterId. */ @java.lang.Deprecated @@ -1236,7 +1236,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4398 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1263,7 +1263,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4398 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1289,7 +1289,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4398 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1311,7 +1311,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4398 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1340,7 +1340,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4403 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4402 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1367,7 +1367,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4403 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4402 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1394,7 +1394,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4403 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4402 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1420,7 +1420,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4403 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4402 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1442,7 +1442,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4403 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4402 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java index c639bc902ec5..3e6dcc34be6f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4389 + * See google/container/v1beta1/cluster_service.proto;l=4388 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4389 + * See google/container/v1beta1/cluster_service.proto;l=4388 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4395 + * google/container/v1beta1/cluster_service.proto;l=4394 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4395 + * google/container/v1beta1/cluster_service.proto;l=4394 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4398 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4399 + * See google/container/v1beta1/cluster_service.proto;l=4398 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4403 + * See google/container/v1beta1/cluster_service.proto;l=4402 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4403 + * See google/container/v1beta1/cluster_service.proto;l=4402 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java index 4f17d486d28f..0c3f20dd3f3d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5452 + * google/container/v1beta1/cluster_service.proto;l=5451 * @return The projectId. */ @java.lang.Override @@ -116,7 +116,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5452 + * google/container/v1beta1/cluster_service.proto;l=5451 * @return The bytes for projectId. */ @java.lang.Override @@ -151,7 +151,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5458 + * google/container/v1beta1/cluster_service.proto;l=5457 * @return The zone. */ @java.lang.Override @@ -181,7 +181,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5458 + * google/container/v1beta1/cluster_service.proto;l=5457 * @return The bytes for zone. */ @java.lang.Override @@ -214,7 +214,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5462 + * google/container/v1beta1/cluster_service.proto;l=5461 * @return The clusterId. */ @java.lang.Override @@ -242,7 +242,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5462 + * google/container/v1beta1/cluster_service.proto;l=5461 * @return The bytes for clusterId. */ @java.lang.Override @@ -275,7 +275,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5466 + * See google/container/v1beta1/cluster_service.proto;l=5465 * @return The nodePoolId. */ @java.lang.Override @@ -303,7 +303,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5466 + * See google/container/v1beta1/cluster_service.proto;l=5465 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -934,7 +934,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5452 + * See google/container/v1beta1/cluster_service.proto;l=5451 * @return The projectId. */ @java.lang.Deprecated @@ -962,7 +962,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5452 + * See google/container/v1beta1/cluster_service.proto;l=5451 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -990,7 +990,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5452 + * See google/container/v1beta1/cluster_service.proto;l=5451 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1017,7 +1017,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5452 + * See google/container/v1beta1/cluster_service.proto;l=5451 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1040,7 +1040,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5452 + * See google/container/v1beta1/cluster_service.proto;l=5451 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5458 + * google/container/v1beta1/cluster_service.proto;l=5457 * @return The zone. */ @java.lang.Deprecated @@ -1100,7 +1100,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5458 + * google/container/v1beta1/cluster_service.proto;l=5457 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1129,7 +1129,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5458 + * google/container/v1beta1/cluster_service.proto;l=5457 * @param value The zone to set. * @return This builder for chaining. */ @@ -1157,7 +1157,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5458 + * google/container/v1beta1/cluster_service.proto;l=5457 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1181,7 +1181,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5458 + * google/container/v1beta1/cluster_service.proto;l=5457 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1210,7 +1210,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5462 + * See google/container/v1beta1/cluster_service.proto;l=5461 * @return The clusterId. */ @java.lang.Deprecated @@ -1237,7 +1237,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5462 + * See google/container/v1beta1/cluster_service.proto;l=5461 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1264,7 +1264,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5462 + * See google/container/v1beta1/cluster_service.proto;l=5461 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1290,7 +1290,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5462 + * See google/container/v1beta1/cluster_service.proto;l=5461 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1312,7 +1312,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5462 + * See google/container/v1beta1/cluster_service.proto;l=5461 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1341,7 +1341,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5466 + * See google/container/v1beta1/cluster_service.proto;l=5465 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1368,7 +1368,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5466 + * See google/container/v1beta1/cluster_service.proto;l=5465 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1395,7 +1395,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5466 + * See google/container/v1beta1/cluster_service.proto;l=5465 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1421,7 +1421,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5466 + * See google/container/v1beta1/cluster_service.proto;l=5465 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1443,7 +1443,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5466 + * See google/container/v1beta1/cluster_service.proto;l=5465 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java index 71fb7b1c3bfd..1e24b8c6015a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5452 + * google/container/v1beta1/cluster_service.proto;l=5451 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5452 + * google/container/v1beta1/cluster_service.proto;l=5451 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5458 + * google/container/v1beta1/cluster_service.proto;l=5457 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5458 + * google/container/v1beta1/cluster_service.proto;l=5457 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5462 + * google/container/v1beta1/cluster_service.proto;l=5461 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5462 + * google/container/v1beta1/cluster_service.proto;l=5461 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5466 + * See google/container/v1beta1/cluster_service.proto;l=5465 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5466 + * See google/container/v1beta1/cluster_service.proto;l=5465 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java index d28f78a909ad..24f7d7ba1e24 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5482 + * google/container/v1beta1/cluster_service.proto;l=5481 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5482 + * google/container/v1beta1/cluster_service.proto;l=5481 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5488 + * google/container/v1beta1/cluster_service.proto;l=5487 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5488 + * google/container/v1beta1/cluster_service.proto;l=5487 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5492 + * google/container/v1beta1/cluster_service.proto;l=5491 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5492 + * google/container/v1beta1/cluster_service.proto;l=5491 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5496 + * google/container/v1beta1/cluster_service.proto;l=5495 * @return The nodePoolId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5496 + * google/container/v1beta1/cluster_service.proto;l=5495 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -869,7 +869,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5482 + * google/container/v1beta1/cluster_service.proto;l=5481 * @return The projectId. */ @java.lang.Deprecated @@ -897,7 +897,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5482 + * google/container/v1beta1/cluster_service.proto;l=5481 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -925,7 +925,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5482 + * google/container/v1beta1/cluster_service.proto;l=5481 * @param value The projectId to set. * @return This builder for chaining. */ @@ -952,7 +952,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5482 + * google/container/v1beta1/cluster_service.proto;l=5481 * @return This builder for chaining. */ @java.lang.Deprecated @@ -975,7 +975,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5482 + * google/container/v1beta1/cluster_service.proto;l=5481 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1006,7 +1006,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5488 + * google/container/v1beta1/cluster_service.proto;l=5487 * @return The zone. */ @java.lang.Deprecated @@ -1035,7 +1035,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5488 + * google/container/v1beta1/cluster_service.proto;l=5487 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1064,7 +1064,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5488 + * google/container/v1beta1/cluster_service.proto;l=5487 * @param value The zone to set. * @return This builder for chaining. */ @@ -1092,7 +1092,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5488 + * google/container/v1beta1/cluster_service.proto;l=5487 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1116,7 +1116,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5488 + * google/container/v1beta1/cluster_service.proto;l=5487 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1145,7 +1145,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5492 + * google/container/v1beta1/cluster_service.proto;l=5491 * @return The clusterId. */ @java.lang.Deprecated @@ -1172,7 +1172,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5492 + * google/container/v1beta1/cluster_service.proto;l=5491 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1199,7 +1199,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5492 + * google/container/v1beta1/cluster_service.proto;l=5491 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1225,7 +1225,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5492 + * google/container/v1beta1/cluster_service.proto;l=5491 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1247,7 +1247,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5492 + * google/container/v1beta1/cluster_service.proto;l=5491 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1276,7 +1276,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5496 + * google/container/v1beta1/cluster_service.proto;l=5495 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1303,7 +1303,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5496 + * google/container/v1beta1/cluster_service.proto;l=5495 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1330,7 +1330,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5496 + * google/container/v1beta1/cluster_service.proto;l=5495 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1356,7 +1356,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5496 + * google/container/v1beta1/cluster_service.proto;l=5495 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1378,7 +1378,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5496 + * google/container/v1beta1/cluster_service.proto;l=5495 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java index 2c9a9c6cd515..5321a7e8bedf 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5482 + * google/container/v1beta1/cluster_service.proto;l=5481 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5482 + * google/container/v1beta1/cluster_service.proto;l=5481 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5488 + * google/container/v1beta1/cluster_service.proto;l=5487 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5488 + * google/container/v1beta1/cluster_service.proto;l=5487 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5492 + * google/container/v1beta1/cluster_service.proto;l=5491 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5492 + * google/container/v1beta1/cluster_service.proto;l=5491 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5496 + * google/container/v1beta1/cluster_service.proto;l=5495 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5496 + * google/container/v1beta1/cluster_service.proto;l=5495 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java index e29d887fd255..9600486af803 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5807 + * google/container/v1beta1/cluster_service.proto;l=5805 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5807 + * google/container/v1beta1/cluster_service.proto;l=5805 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5813 + * google/container/v1beta1/cluster_service.proto;l=5811 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5813 + * google/container/v1beta1/cluster_service.proto;l=5811 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5817 + * google/container/v1beta1/cluster_service.proto;l=5815 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5817 + * google/container/v1beta1/cluster_service.proto;l=5815 * @return The bytes for clusterId. */ @java.lang.Override @@ -783,7 +783,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5807 + * google/container/v1beta1/cluster_service.proto;l=5805 * @return The projectId. */ @java.lang.Deprecated @@ -811,7 +811,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5807 + * google/container/v1beta1/cluster_service.proto;l=5805 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -839,7 +839,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5807 + * google/container/v1beta1/cluster_service.proto;l=5805 * @param value The projectId to set. * @return This builder for chaining. */ @@ -866,7 +866,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5807 + * google/container/v1beta1/cluster_service.proto;l=5805 * @return This builder for chaining. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5807 + * google/container/v1beta1/cluster_service.proto;l=5805 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -920,7 +920,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5813 + * google/container/v1beta1/cluster_service.proto;l=5811 * @return The zone. */ @java.lang.Deprecated @@ -949,7 +949,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5813 + * google/container/v1beta1/cluster_service.proto;l=5811 * @return The bytes for zone. */ @java.lang.Deprecated @@ -978,7 +978,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5813 + * google/container/v1beta1/cluster_service.proto;l=5811 * @param value The zone to set. * @return This builder for chaining. */ @@ -1006,7 +1006,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5813 + * google/container/v1beta1/cluster_service.proto;l=5811 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1030,7 +1030,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5813 + * google/container/v1beta1/cluster_service.proto;l=5811 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1059,7 +1059,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5817 + * google/container/v1beta1/cluster_service.proto;l=5815 * @return The clusterId. */ @java.lang.Deprecated @@ -1086,7 +1086,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5817 + * google/container/v1beta1/cluster_service.proto;l=5815 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1113,7 +1113,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5817 + * google/container/v1beta1/cluster_service.proto;l=5815 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1139,7 +1139,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5817 + * google/container/v1beta1/cluster_service.proto;l=5815 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1161,7 +1161,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5817 + * google/container/v1beta1/cluster_service.proto;l=5815 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java index d6938affc95c..2cfbc76db97b 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5807 + * google/container/v1beta1/cluster_service.proto;l=5805 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5807 + * google/container/v1beta1/cluster_service.proto;l=5805 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5813 + * google/container/v1beta1/cluster_service.proto;l=5811 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5813 + * google/container/v1beta1/cluster_service.proto;l=5811 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5817 + * google/container/v1beta1/cluster_service.proto;l=5815 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5817 + * google/container/v1beta1/cluster_service.proto;l=5815 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java index 06ab58e2c9aa..49f91106aa82 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java @@ -387,7 +387,7 @@ private Code(int value) { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6140 + * google/container/v1beta1/cluster_service.proto;l=6138 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -407,7 +407,7 @@ public int getCodeValue() { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6140 + * google/container/v1beta1/cluster_service.proto;l=6138 * @return The code. */ @java.lang.Override @@ -907,7 +907,7 @@ public Builder mergeFrom( * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6140 + * google/container/v1beta1/cluster_service.proto;l=6138 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -927,7 +927,7 @@ public int getCodeValue() { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6140 + * google/container/v1beta1/cluster_service.proto;l=6138 * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -950,7 +950,7 @@ public Builder setCodeValue(int value) { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6140 + * google/container/v1beta1/cluster_service.proto;l=6138 * @return The code. */ @java.lang.Override @@ -974,7 +974,7 @@ public com.google.container.v1beta1.StatusCondition.Code getCode() { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6140 + * google/container/v1beta1/cluster_service.proto;l=6138 * @param value The code to set. * @return This builder for chaining. */ @@ -1000,7 +1000,7 @@ public Builder setCode(com.google.container.v1beta1.StatusCondition.Code value) * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6140 + * google/container/v1beta1/cluster_service.proto;l=6138 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java index 4059f933bb71..f69aedcdd969 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java @@ -35,7 +35,7 @@ public interface StatusConditionOrBuilder * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6140 + * google/container/v1beta1/cluster_service.proto;l=6138 * @return The enum numeric value on the wire for code. */ @java.lang.Deprecated @@ -52,7 +52,7 @@ public interface StatusConditionOrBuilder * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=6140 + * google/container/v1beta1/cluster_service.proto;l=6138 * @return The code. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java index 7b954558523a..70f929ebbb06 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4196 + * google/container/v1beta1/cluster_service.proto;l=4195 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4196 + * google/container/v1beta1/cluster_service.proto;l=4195 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4202 + * google/container/v1beta1/cluster_service.proto;l=4201 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4202 + * google/container/v1beta1/cluster_service.proto;l=4201 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4206 + * google/container/v1beta1/cluster_service.proto;l=4205 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4206 + * google/container/v1beta1/cluster_service.proto;l=4205 * @return The bytes for clusterId. */ @java.lang.Override @@ -843,7 +843,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4196 + * google/container/v1beta1/cluster_service.proto;l=4195 * @return The projectId. */ @java.lang.Deprecated @@ -871,7 +871,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4196 + * google/container/v1beta1/cluster_service.proto;l=4195 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -899,7 +899,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4196 + * google/container/v1beta1/cluster_service.proto;l=4195 * @param value The projectId to set. * @return This builder for chaining. */ @@ -926,7 +926,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4196 + * google/container/v1beta1/cluster_service.proto;l=4195 * @return This builder for chaining. */ @java.lang.Deprecated @@ -949,7 +949,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4196 + * google/container/v1beta1/cluster_service.proto;l=4195 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -980,7 +980,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4202 + * google/container/v1beta1/cluster_service.proto;l=4201 * @return The zone. */ @java.lang.Deprecated @@ -1009,7 +1009,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4202 + * google/container/v1beta1/cluster_service.proto;l=4201 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1038,7 +1038,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4202 + * google/container/v1beta1/cluster_service.proto;l=4201 * @param value The zone to set. * @return This builder for chaining. */ @@ -1066,7 +1066,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4202 + * google/container/v1beta1/cluster_service.proto;l=4201 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1090,7 +1090,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4202 + * google/container/v1beta1/cluster_service.proto;l=4201 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1119,7 +1119,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4206 + * google/container/v1beta1/cluster_service.proto;l=4205 * @return The clusterId. */ @java.lang.Deprecated @@ -1146,7 +1146,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4206 + * google/container/v1beta1/cluster_service.proto;l=4205 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1173,7 +1173,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4206 + * google/container/v1beta1/cluster_service.proto;l=4205 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1199,7 +1199,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4206 + * google/container/v1beta1/cluster_service.proto;l=4205 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1221,7 +1221,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4206 + * google/container/v1beta1/cluster_service.proto;l=4205 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java index a4fe54aaff93..88f4001effbb 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4196 + * google/container/v1beta1/cluster_service.proto;l=4195 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4196 + * google/container/v1beta1/cluster_service.proto;l=4195 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4202 + * google/container/v1beta1/cluster_service.proto;l=4201 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4202 + * google/container/v1beta1/cluster_service.proto;l=4201 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4206 + * google/container/v1beta1/cluster_service.proto;l=4205 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4206 + * google/container/v1beta1/cluster_service.proto;l=4205 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java index 41c993fdb7fe..c40b7a120770 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4546 + * google/container/v1beta1/cluster_service.proto;l=4545 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4546 + * google/container/v1beta1/cluster_service.proto;l=4545 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4552 + * google/container/v1beta1/cluster_service.proto;l=4551 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4552 + * google/container/v1beta1/cluster_service.proto;l=4551 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4556 + * google/container/v1beta1/cluster_service.proto;l=4555 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4556 + * google/container/v1beta1/cluster_service.proto;l=4555 * @return The bytes for clusterId. */ @java.lang.Override @@ -836,7 +836,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4546 + * google/container/v1beta1/cluster_service.proto;l=4545 * @return The projectId. */ @java.lang.Deprecated @@ -864,7 +864,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4546 + * google/container/v1beta1/cluster_service.proto;l=4545 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -892,7 +892,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4546 + * google/container/v1beta1/cluster_service.proto;l=4545 * @param value The projectId to set. * @return This builder for chaining. */ @@ -919,7 +919,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4546 + * google/container/v1beta1/cluster_service.proto;l=4545 * @return This builder for chaining. */ @java.lang.Deprecated @@ -942,7 +942,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4546 + * google/container/v1beta1/cluster_service.proto;l=4545 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -973,7 +973,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4552 + * google/container/v1beta1/cluster_service.proto;l=4551 * @return The zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4552 + * google/container/v1beta1/cluster_service.proto;l=4551 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1031,7 +1031,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4552 + * google/container/v1beta1/cluster_service.proto;l=4551 * @param value The zone to set. * @return This builder for chaining. */ @@ -1059,7 +1059,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4552 + * google/container/v1beta1/cluster_service.proto;l=4551 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1083,7 +1083,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4552 + * google/container/v1beta1/cluster_service.proto;l=4551 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1112,7 +1112,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4556 + * google/container/v1beta1/cluster_service.proto;l=4555 * @return The clusterId. */ @java.lang.Deprecated @@ -1139,7 +1139,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4556 + * google/container/v1beta1/cluster_service.proto;l=4555 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1166,7 +1166,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4556 + * google/container/v1beta1/cluster_service.proto;l=4555 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1192,7 +1192,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4556 + * google/container/v1beta1/cluster_service.proto;l=4555 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1214,7 +1214,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4556 + * google/container/v1beta1/cluster_service.proto;l=4555 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java index 6707c93516b5..644315a60d9e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4546 + * google/container/v1beta1/cluster_service.proto;l=4545 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4546 + * google/container/v1beta1/cluster_service.proto;l=4545 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4552 + * google/container/v1beta1/cluster_service.proto;l=4551 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4552 + * google/container/v1beta1/cluster_service.proto;l=4551 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4556 + * google/container/v1beta1/cluster_service.proto;l=4555 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4556 + * google/container/v1beta1/cluster_service.proto;l=4555 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java index 6b53728802cf..d1807ba8ff25 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java @@ -94,7 +94,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4221 + * google/container/v1beta1/cluster_service.proto;l=4220 * @return The projectId. */ @java.lang.Override @@ -123,7 +123,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4221 + * google/container/v1beta1/cluster_service.proto;l=4220 * @return The bytes for projectId. */ @java.lang.Override @@ -158,7 +158,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4227 + * google/container/v1beta1/cluster_service.proto;l=4226 * @return The zone. */ @java.lang.Override @@ -188,7 +188,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4227 + * google/container/v1beta1/cluster_service.proto;l=4226 * @return The bytes for zone. */ @java.lang.Override @@ -221,7 +221,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4231 + * google/container/v1beta1/cluster_service.proto;l=4230 * @return The clusterId. */ @java.lang.Override @@ -249,7 +249,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4231 + * google/container/v1beta1/cluster_service.proto;l=4230 * @return The bytes for clusterId. */ @java.lang.Override @@ -282,7 +282,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4235 + * google/container/v1beta1/cluster_service.proto;l=4234 * @return The nodePoolId. */ @java.lang.Override @@ -310,7 +310,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4235 + * google/container/v1beta1/cluster_service.proto;l=4234 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -3601,7 +3601,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4221 + * google/container/v1beta1/cluster_service.proto;l=4220 * @return The projectId. */ @java.lang.Deprecated @@ -3629,7 +3629,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4221 + * google/container/v1beta1/cluster_service.proto;l=4220 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -3657,7 +3657,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4221 + * google/container/v1beta1/cluster_service.proto;l=4220 * @param value The projectId to set. * @return This builder for chaining. */ @@ -3684,7 +3684,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4221 + * google/container/v1beta1/cluster_service.proto;l=4220 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3707,7 +3707,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4221 + * google/container/v1beta1/cluster_service.proto;l=4220 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -3738,7 +3738,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4227 + * google/container/v1beta1/cluster_service.proto;l=4226 * @return The zone. */ @java.lang.Deprecated @@ -3767,7 +3767,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4227 + * google/container/v1beta1/cluster_service.proto;l=4226 * @return The bytes for zone. */ @java.lang.Deprecated @@ -3796,7 +3796,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4227 + * google/container/v1beta1/cluster_service.proto;l=4226 * @param value The zone to set. * @return This builder for chaining. */ @@ -3824,7 +3824,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4227 + * google/container/v1beta1/cluster_service.proto;l=4226 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3848,7 +3848,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4227 + * google/container/v1beta1/cluster_service.proto;l=4226 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3877,7 +3877,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4231 + * google/container/v1beta1/cluster_service.proto;l=4230 * @return The clusterId. */ @java.lang.Deprecated @@ -3904,7 +3904,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4231 + * google/container/v1beta1/cluster_service.proto;l=4230 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -3931,7 +3931,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4231 + * google/container/v1beta1/cluster_service.proto;l=4230 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -3957,7 +3957,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4231 + * google/container/v1beta1/cluster_service.proto;l=4230 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3979,7 +3979,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4231 + * google/container/v1beta1/cluster_service.proto;l=4230 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -4008,7 +4008,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4235 + * google/container/v1beta1/cluster_service.proto;l=4234 * @return The nodePoolId. */ @java.lang.Deprecated @@ -4035,7 +4035,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4235 + * google/container/v1beta1/cluster_service.proto;l=4234 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -4062,7 +4062,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4235 + * google/container/v1beta1/cluster_service.proto;l=4234 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -4088,7 +4088,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4235 + * google/container/v1beta1/cluster_service.proto;l=4234 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4110,7 +4110,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4235 + * google/container/v1beta1/cluster_service.proto;l=4234 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java index f28775b65f56..889739e59460 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4221 + * google/container/v1beta1/cluster_service.proto;l=4220 * @return The projectId. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4221 + * google/container/v1beta1/cluster_service.proto;l=4220 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -73,7 +73,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4227 + * google/container/v1beta1/cluster_service.proto;l=4226 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4227 + * google/container/v1beta1/cluster_service.proto;l=4226 * @return The bytes for zone. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4231 + * google/container/v1beta1/cluster_service.proto;l=4230 * @return The clusterId. */ @java.lang.Deprecated @@ -126,7 +126,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4231 + * google/container/v1beta1/cluster_service.proto;l=4230 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4235 + * google/container/v1beta1/cluster_service.proto;l=4234 * @return The nodePoolId. */ @java.lang.Deprecated @@ -160,7 +160,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4235 + * google/container/v1beta1/cluster_service.proto;l=4234 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java index b937bcc881ed..2967c2ae7180 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=6443 + * See google/container/v1beta1/cluster_service.proto;l=6441 * @return The identityNamespace. */ @java.lang.Override @@ -108,7 +108,7 @@ public java.lang.String getIdentityNamespace() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=6443 + * See google/container/v1beta1/cluster_service.proto;l=6441 * @return The bytes for identityNamespace. */ @java.lang.Override @@ -634,7 +634,7 @@ public Builder mergeFrom( * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=6443 + * See google/container/v1beta1/cluster_service.proto;l=6441 * @return The identityNamespace. */ @java.lang.Deprecated @@ -660,7 +660,7 @@ public java.lang.String getIdentityNamespace() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=6443 + * See google/container/v1beta1/cluster_service.proto;l=6441 * @return The bytes for identityNamespace. */ @java.lang.Deprecated @@ -686,7 +686,7 @@ public com.google.protobuf.ByteString getIdentityNamespaceBytes() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=6443 + * See google/container/v1beta1/cluster_service.proto;l=6441 * @param value The identityNamespace to set. * @return This builder for chaining. */ @@ -711,7 +711,7 @@ public Builder setIdentityNamespace(java.lang.String value) { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=6443 + * See google/container/v1beta1/cluster_service.proto;l=6441 * @return This builder for chaining. */ @java.lang.Deprecated @@ -732,7 +732,7 @@ public Builder clearIdentityNamespace() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=6443 + * See google/container/v1beta1/cluster_service.proto;l=6441 * @param value The bytes for identityNamespace to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java index aaa6d47d5c37..bd8ecef58f79 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface WorkloadIdentityConfigOrBuilder * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=6443 + * See google/container/v1beta1/cluster_service.proto;l=6441 * @return The identityNamespace. */ @java.lang.Deprecated @@ -50,7 +50,7 @@ public interface WorkloadIdentityConfigOrBuilder * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=6443 + * See google/container/v1beta1/cluster_service.proto;l=6441 * @return The bytes for identityNamespace. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java index d121b26703de..f3aeef297bb8 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java @@ -459,7 +459,7 @@ private Mode(int value) { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5995 + * google/container/v1beta1/cluster_service.proto;l=5993 * @return The enum numeric value on the wire for nodeMetadata. */ @java.lang.Override @@ -481,7 +481,7 @@ public int getNodeMetadataValue() { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5995 + * google/container/v1beta1/cluster_service.proto;l=5993 * @return The nodeMetadata. */ @java.lang.Override @@ -920,7 +920,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5995 + * google/container/v1beta1/cluster_service.proto;l=5993 * @return The enum numeric value on the wire for nodeMetadata. */ @java.lang.Override @@ -942,7 +942,7 @@ public int getNodeMetadataValue() { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5995 + * google/container/v1beta1/cluster_service.proto;l=5993 * @param value The enum numeric value on the wire for nodeMetadata to set. * @return This builder for chaining. */ @@ -967,7 +967,7 @@ public Builder setNodeMetadataValue(int value) { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5995 + * google/container/v1beta1/cluster_service.proto;l=5993 * @return The nodeMetadata. */ @java.lang.Override @@ -993,7 +993,7 @@ public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeM * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5995 + * google/container/v1beta1/cluster_service.proto;l=5993 * @param value The nodeMetadata to set. * @return This builder for chaining. */ @@ -1022,7 +1022,7 @@ public Builder setNodeMetadata( * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5995 + * google/container/v1beta1/cluster_service.proto;l=5993 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java index fd115befa168..a6c574eeb40a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java @@ -37,7 +37,7 @@ public interface WorkloadMetadataConfigOrBuilder * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5995 + * google/container/v1beta1/cluster_service.proto;l=5993 * @return The enum numeric value on the wire for nodeMetadata. */ @java.lang.Deprecated @@ -56,7 +56,7 @@ public interface WorkloadMetadataConfigOrBuilder * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=5995 + * google/container/v1beta1/cluster_service.proto;l=5993 * @return The nodeMetadata. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto b/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto index 2de2098d254d..e25f452de8cf 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto @@ -48,8 +48,6 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" }; -// LINT: LEGACY_NAMES - // Google Kubernetes Engine Cluster Manager v1beta1 service ClusterManager { option (google.api.default_host) = "container.googleapis.com"; @@ -87,7 +85,7 @@ service ClusterManager { // network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). // // One firewall is added for the cluster. After cluster creation, - // the Kubelet creates routes for each node to allow the containers + // the kubelet creates routes for each node to allow the containers // on that node to communicate with all other instances in the // cluster. // @@ -1232,8 +1230,7 @@ message NodeConfig { // persistent storage on your nodes. // * `https://www.googleapis.com/auth/devstorage.read_only` is required for // communicating with **gcr.io** - // (the [Google Container - // Registry](https://cloud.google.com/container-registry/)). + // (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). // // If unspecified, no scopes are added, unless Cloud Logging or Cloud // Monitoring are enabled, in which case their required scopes will be added. @@ -1835,8 +1832,7 @@ message ContainerdConfig { // domain names (FQDN) to a specific certificate. message CertificateAuthorityDomainConfig { // GCPSecretManagerCertificateConfig configures a secret from - // [Google Secret - // Manager](https://cloud.google.com/secret-manager). + // [Secret Manager](https://cloud.google.com/secret-manager). message GCPSecretManagerCertificateConfig { // Secret URI, in the form // "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". @@ -1985,7 +1981,7 @@ message NodeLabels { map labels = 1; } -// Collection of [GCP +// Collection of [Resource Manager // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). message ResourceLabels { // Map of node label keys and node label values. @@ -3820,6 +3816,9 @@ message ClusterUpdate { // The desired network tier configuration for the cluster. NetworkTierConfig desired_network_tier_config = 155; + + // Configuration for sync Secret Manager secrets as k8s secrets. + SecretSyncConfig desired_secret_sync_config = 158; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -5606,8 +5605,7 @@ message AutoprovisioningNodePoolDefaults { // persistent storage on your nodes. // * `https://www.googleapis.com/auth/devstorage.read_only` is required for // communicating with **gcr.io** - // (the [Google Container - // Registry](https://cloud.google.com/container-registry/)). + // (the [Artifact Registry](https://cloud.google.com/artifact-registry/)). // // If unspecified, no scopes are added, unless Cloud Logging or Cloud // Monitoring are enabled, in which case their required scopes will be added. diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 97d0b7951df3..ca0abeeafa94 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.78.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/ContainerAnalysisGrpc.java b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/ContainerAnalysisGrpc.java index 9bef0a9d6426..c9c1cb24a49a 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/ContainerAnalysisGrpc.java +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/ContainerAnalysisGrpc.java @@ -34,9 +34,6 @@ * image with the vulnerability referring to that note. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/containeranalysis/v1/containeranalysis.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ContainerAnalysisGrpc { @@ -629,8 +626,9 @@ protected ContainerAnalysisBlockingV2Stub build( * occurrences. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -647,8 +645,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * occurrences. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -665,8 +664,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -679,8 +678,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( */ public com.google.containeranalysis.v1.VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary( - com.google.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVulnerabilityOccurrencesSummaryMethod(), getCallOptions(), request); } @@ -692,8 +692,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.containeranalysis.v1.ExportSBOMResponse exportSBOM( - com.google.containeranalysis.v1.ExportSBOMRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.containeranalysis.v1.ExportSBOMRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportSBOMMethod(), getCallOptions(), request); } } diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Grpc.java b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Grpc.java index 1f7c0ddf91c1..d33c391f2b2b 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Grpc.java +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Grpc.java @@ -34,9 +34,6 @@ * image with the vulnerability referring to that note. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/containeranalysis/v1beta1/containeranalysis.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ContainerAnalysisV1Beta1Grpc { @@ -630,8 +627,9 @@ protected ContainerAnalysisV1Beta1BlockingV2Stub build( * occurrences. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -648,8 +646,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * occurrences. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -666,8 +665,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -679,8 +678,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.containeranalysis.v1beta1.PackagesSummaryResponse generatePackagesSummary( - com.google.containeranalysis.v1beta1.GeneratePackagesSummaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.containeranalysis.v1beta1.GeneratePackagesSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGeneratePackagesSummaryMethod(), getCallOptions(), request); } @@ -692,8 +692,9 @@ public com.google.containeranalysis.v1beta1.PackagesSummaryResponse generatePack * */ public com.google.containeranalysis.v1beta1.ExportSBOMResponse exportSBOM( - com.google.containeranalysis.v1beta1.ExportSBOMRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.containeranalysis.v1beta1.ExportSBOMRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportSBOMMethod(), getCallOptions(), request); } } diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/src/main/java/io/grafeas/v1beta1/GrafeasV1Beta1Grpc.java b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/src/main/java/io/grafeas/v1beta1/GrafeasV1Beta1Grpc.java index df2c0bd4b92c..b62577904b8a 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/src/main/java/io/grafeas/v1beta1/GrafeasV1Beta1Grpc.java +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/src/main/java/io/grafeas/v1beta1/GrafeasV1Beta1Grpc.java @@ -34,9 +34,6 @@ * image with the vulnerability referring to that note. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GrafeasV1Beta1Grpc { @@ -1290,8 +1287,8 @@ protected GrafeasV1Beta1BlockingV2Stub build( * */ public io.grafeas.v1beta1.Occurrence getOccurrence( - io.grafeas.v1beta1.GetOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.GetOccurrenceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOccurrenceMethod(), getCallOptions(), request); } @@ -1303,8 +1300,8 @@ public io.grafeas.v1beta1.Occurrence getOccurrence( * */ public io.grafeas.v1beta1.ListOccurrencesResponse listOccurrences( - io.grafeas.v1beta1.ListOccurrencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.ListOccurrencesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOccurrencesMethod(), getCallOptions(), request); } @@ -1318,8 +1315,8 @@ public io.grafeas.v1beta1.ListOccurrencesResponse listOccurrences( * */ public com.google.protobuf.Empty deleteOccurrence( - io.grafeas.v1beta1.DeleteOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.DeleteOccurrenceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOccurrenceMethod(), getCallOptions(), request); } @@ -1331,8 +1328,8 @@ public com.google.protobuf.Empty deleteOccurrence( * */ public io.grafeas.v1beta1.Occurrence createOccurrence( - io.grafeas.v1beta1.CreateOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.CreateOccurrenceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOccurrenceMethod(), getCallOptions(), request); } @@ -1344,8 +1341,8 @@ public io.grafeas.v1beta1.Occurrence createOccurrence( * */ public io.grafeas.v1beta1.BatchCreateOccurrencesResponse batchCreateOccurrences( - io.grafeas.v1beta1.BatchCreateOccurrencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.BatchCreateOccurrencesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateOccurrencesMethod(), getCallOptions(), request); } @@ -1357,8 +1354,8 @@ public io.grafeas.v1beta1.BatchCreateOccurrencesResponse batchCreateOccurrences( * */ public io.grafeas.v1beta1.Occurrence updateOccurrence( - io.grafeas.v1beta1.UpdateOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.UpdateOccurrenceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOccurrenceMethod(), getCallOptions(), request); } @@ -1371,8 +1368,8 @@ public io.grafeas.v1beta1.Occurrence updateOccurrence( * */ public io.grafeas.v1beta1.Note getOccurrenceNote( - io.grafeas.v1beta1.GetOccurrenceNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.GetOccurrenceNoteRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOccurrenceNoteMethod(), getCallOptions(), request); } @@ -1383,8 +1380,9 @@ public io.grafeas.v1beta1.Note getOccurrenceNote( * Gets the specified note. * */ - public io.grafeas.v1beta1.Note getNote(io.grafeas.v1beta1.GetNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1beta1.Note getNote(io.grafeas.v1beta1.GetNoteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNoteMethod(), getCallOptions(), request); } @@ -1396,8 +1394,8 @@ public io.grafeas.v1beta1.Note getNote(io.grafeas.v1beta1.GetNoteRequest request * */ public io.grafeas.v1beta1.ListNotesResponse listNotes( - io.grafeas.v1beta1.ListNotesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.ListNotesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotesMethod(), getCallOptions(), request); } @@ -1408,8 +1406,9 @@ public io.grafeas.v1beta1.ListNotesResponse listNotes( * Deletes the specified note. * */ - public com.google.protobuf.Empty deleteNote(io.grafeas.v1beta1.DeleteNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteNote(io.grafeas.v1beta1.DeleteNoteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNoteMethod(), getCallOptions(), request); } @@ -1420,8 +1419,9 @@ public com.google.protobuf.Empty deleteNote(io.grafeas.v1beta1.DeleteNoteRequest * Creates a new note. * */ - public io.grafeas.v1beta1.Note createNote(io.grafeas.v1beta1.CreateNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1beta1.Note createNote(io.grafeas.v1beta1.CreateNoteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNoteMethod(), getCallOptions(), request); } @@ -1433,8 +1433,8 @@ public io.grafeas.v1beta1.Note createNote(io.grafeas.v1beta1.CreateNoteRequest r * */ public io.grafeas.v1beta1.BatchCreateNotesResponse batchCreateNotes( - io.grafeas.v1beta1.BatchCreateNotesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.BatchCreateNotesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateNotesMethod(), getCallOptions(), request); } @@ -1445,8 +1445,9 @@ public io.grafeas.v1beta1.BatchCreateNotesResponse batchCreateNotes( * Updates the specified note. * */ - public io.grafeas.v1beta1.Note updateNote(io.grafeas.v1beta1.UpdateNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1beta1.Note updateNote(io.grafeas.v1beta1.UpdateNoteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNoteMethod(), getCallOptions(), request); } @@ -1460,8 +1461,8 @@ public io.grafeas.v1beta1.Note updateNote(io.grafeas.v1beta1.UpdateNoteRequest r * */ public io.grafeas.v1beta1.ListNoteOccurrencesResponse listNoteOccurrences( - io.grafeas.v1beta1.ListNoteOccurrencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.ListNoteOccurrencesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNoteOccurrencesMethod(), getCallOptions(), request); } @@ -1473,8 +1474,9 @@ public io.grafeas.v1beta1.ListNoteOccurrencesResponse listNoteOccurrences( * */ public io.grafeas.v1beta1.VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary( - io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVulnerabilityOccurrencesSummaryMethod(), getCallOptions(), request); } } diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 0a0c694cc878..5219509f3761 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.73.0 + 0.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.73.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.74.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java index 3a5c58c78873..41ba163221a4 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceGrpc.java @@ -25,9 +25,6 @@ * Document-Links are treated as sub-resources under source documents. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/document_link_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentLinkServiceGrpc { @@ -486,8 +483,9 @@ protected DocumentLinkServiceBlockingV2Stub build( * */ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse listLinkedTargets( - com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.ListLinkedTargetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLinkedTargetsMethod(), getCallOptions(), request); } @@ -499,8 +497,9 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse listLinked * */ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse listLinkedSources( - com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.ListLinkedSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLinkedSourcesMethod(), getCallOptions(), request); } @@ -512,8 +511,9 @@ public com.google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse listLinked * */ public com.google.cloud.contentwarehouse.v1.DocumentLink createDocumentLink( - com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.CreateDocumentLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDocumentLinkMethod(), getCallOptions(), request); } @@ -525,8 +525,9 @@ public com.google.cloud.contentwarehouse.v1.DocumentLink createDocumentLink( * */ public com.google.protobuf.Empty deleteDocumentLink( - com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.DeleteDocumentLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDocumentLinkMethod(), getCallOptions(), request); } } diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java index e775f74cc57b..1e3ad08dccb1 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceGrpc.java @@ -24,9 +24,6 @@ * This service lets you manage document schema. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/document_schema_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentSchemaServiceGrpc { @@ -593,8 +590,9 @@ protected DocumentSchemaServiceBlockingV2Stub build( * */ public com.google.cloud.contentwarehouse.v1.DocumentSchema createDocumentSchema( - com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDocumentSchemaMethod(), getCallOptions(), request); } @@ -612,8 +610,9 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema createDocumentSchema( * */ public com.google.cloud.contentwarehouse.v1.DocumentSchema updateDocumentSchema( - com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.UpdateDocumentSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDocumentSchemaMethod(), getCallOptions(), request); } @@ -626,8 +625,9 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema updateDocumentSchema( * */ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema( - com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.GetDocumentSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDocumentSchemaMethod(), getCallOptions(), request); } @@ -641,8 +641,9 @@ public com.google.cloud.contentwarehouse.v1.DocumentSchema getDocumentSchema( * */ public com.google.protobuf.Empty deleteDocumentSchema( - com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.DeleteDocumentSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDocumentSchemaMethod(), getCallOptions(), request); } @@ -654,8 +655,9 @@ public com.google.protobuf.Empty deleteDocumentSchema( * */ public com.google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse listDocumentSchemas( - com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.ListDocumentSchemasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDocumentSchemasMethod(), getCallOptions(), request); } } diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java index cfede2eb2bff..27c4583e1bdb 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceGrpc.java @@ -24,9 +24,6 @@ * This service lets you manage document. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/document_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentServiceGrpc { @@ -793,8 +790,9 @@ protected DocumentServiceBlockingV2Stub build( * */ public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse createDocument( - com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.CreateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } @@ -806,8 +804,9 @@ public com.google.cloud.contentwarehouse.v1.CreateDocumentResponse createDocumen * */ public com.google.cloud.contentwarehouse.v1.Document getDocument( - com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.GetDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDocumentMethod(), getCallOptions(), request); } @@ -820,8 +819,9 @@ public com.google.cloud.contentwarehouse.v1.Document getDocument( * */ public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse updateDocument( - com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.UpdateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } @@ -833,8 +833,9 @@ public com.google.cloud.contentwarehouse.v1.UpdateDocumentResponse updateDocumen * */ public com.google.protobuf.Empty deleteDocument( - com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.DeleteDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } @@ -849,8 +850,9 @@ public com.google.protobuf.Empty deleteDocument( * */ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse searchDocuments( - com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchDocumentsMethod(), getCallOptions(), request); } @@ -862,8 +864,9 @@ public com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse searchDocume * */ public com.google.cloud.contentwarehouse.v1.Document lockDocument( - com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.LockDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLockDocumentMethod(), getCallOptions(), request); } @@ -877,8 +880,9 @@ public com.google.cloud.contentwarehouse.v1.Document lockDocument( * */ public com.google.cloud.contentwarehouse.v1.FetchAclResponse fetchAcl( - com.google.cloud.contentwarehouse.v1.FetchAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.FetchAclRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchAclMethod(), getCallOptions(), request); } @@ -891,8 +895,8 @@ public com.google.cloud.contentwarehouse.v1.FetchAclResponse fetchAcl( * */ public com.google.cloud.contentwarehouse.v1.SetAclResponse setAcl( - com.google.cloud.contentwarehouse.v1.SetAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.SetAclRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetAclMethod(), getCallOptions(), request); } } diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java index faf9f0e3e7b5..b08adb55a16d 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceGrpc.java @@ -24,9 +24,6 @@ * This service lets you manage pipelines. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/pipeline_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PipelineServiceGrpc { @@ -237,8 +234,9 @@ protected PipelineServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation runPipeline( - com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.RunPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunPipelineMethod(), getCallOptions(), request); } } diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java index 9ca0106810e7..19d0939b7ca8 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage customer specific RuleSets. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/ruleset_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RuleSetServiceGrpc { @@ -546,8 +543,9 @@ protected RuleSetServiceBlockingV2Stub build( * */ public com.google.cloud.contentwarehouse.v1.RuleSet createRuleSet( - com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.CreateRuleSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRuleSetMethod(), getCallOptions(), request); } @@ -559,8 +557,9 @@ public com.google.cloud.contentwarehouse.v1.RuleSet createRuleSet( * */ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet( - com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.GetRuleSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRuleSetMethod(), getCallOptions(), request); } @@ -573,8 +572,9 @@ public com.google.cloud.contentwarehouse.v1.RuleSet getRuleSet( * */ public com.google.cloud.contentwarehouse.v1.RuleSet updateRuleSet( - com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.UpdateRuleSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRuleSetMethod(), getCallOptions(), request); } @@ -586,8 +586,9 @@ public com.google.cloud.contentwarehouse.v1.RuleSet updateRuleSet( * */ public com.google.protobuf.Empty deleteRuleSet( - com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.DeleteRuleSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRuleSetMethod(), getCallOptions(), request); } @@ -599,8 +600,9 @@ public com.google.protobuf.Empty deleteRuleSet( * */ public com.google.cloud.contentwarehouse.v1.ListRuleSetsResponse listRuleSets( - com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.ListRuleSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRuleSetsMethod(), getCallOptions(), request); } } diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java index 0ebc238f94b7..d48775472011 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceGrpc.java @@ -24,9 +24,6 @@ * A Service that manage/custom customer specified SynonymSets. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/contentwarehouse/v1/synonymset_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SynonymSetServiceGrpc { @@ -566,8 +563,9 @@ protected SynonymSetServiceBlockingV2Stub build( * */ public com.google.cloud.contentwarehouse.v1.SynonymSet createSynonymSet( - com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.CreateSynonymSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSynonymSetMethod(), getCallOptions(), request); } @@ -581,8 +579,9 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet createSynonymSet( * */ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet( - com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.GetSynonymSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSynonymSetMethod(), getCallOptions(), request); } @@ -596,8 +595,9 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet getSynonymSet( * */ public com.google.cloud.contentwarehouse.v1.SynonymSet updateSynonymSet( - com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.UpdateSynonymSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSynonymSetMethod(), getCallOptions(), request); } @@ -610,8 +610,9 @@ public com.google.cloud.contentwarehouse.v1.SynonymSet updateSynonymSet( * */ public com.google.protobuf.Empty deleteSynonymSet( - com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.DeleteSynonymSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSynonymSetMethod(), getCallOptions(), request); } @@ -623,8 +624,9 @@ public com.google.protobuf.Empty deleteSynonymSet( * */ public com.google.cloud.contentwarehouse.v1.ListSynonymSetsResponse listSynonymSets( - com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.contentwarehouse.v1.ListSynonymSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSynonymSetsMethod(), getCallOptions(), request); } } diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index c202bb38ad6d..ca4e7c395cb8 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.77.0 + 1.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.77.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/DataFusionGrpc.java b/java-data-fusion/grpc-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/DataFusionGrpc.java index 0318692b2e95..bf728c56a034 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/DataFusionGrpc.java +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/DataFusionGrpc.java @@ -26,9 +26,6 @@ * pipelines via a point-and-click UI. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datafusion/v1/datafusion.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataFusionGrpc { @@ -696,8 +693,9 @@ protected DataFusionBlockingV2Stub build( * */ public com.google.cloud.datafusion.v1.ListAvailableVersionsResponse listAvailableVersions( - com.google.cloud.datafusion.v1.ListAvailableVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1.ListAvailableVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAvailableVersionsMethod(), getCallOptions(), request); } @@ -709,8 +707,9 @@ public com.google.cloud.datafusion.v1.ListAvailableVersionsResponse listAvailabl * */ public com.google.cloud.datafusion.v1.ListInstancesResponse listInstances( - com.google.cloud.datafusion.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -722,8 +721,8 @@ public com.google.cloud.datafusion.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.datafusion.v1.Instance getInstance( - com.google.cloud.datafusion.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -735,8 +734,9 @@ public com.google.cloud.datafusion.v1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.datafusion.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -748,8 +748,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.datafusion.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -761,8 +762,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.datafusion.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -775,8 +777,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation restartInstance( - com.google.cloud.datafusion.v1.RestartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1.RestartInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestartInstanceMethod(), getCallOptions(), request); } } diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionGrpc.java b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionGrpc.java index ff5037a71d0a..7f54be3acc59 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionGrpc.java +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionGrpc.java @@ -26,9 +26,6 @@ * pipelines via a point-and-click UI. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datafusion/v1beta1/v1beta1.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataFusionGrpc { @@ -1183,8 +1180,9 @@ protected DataFusionBlockingV2Stub build( * */ public com.google.cloud.datafusion.v1beta1.ListAvailableVersionsResponse listAvailableVersions( - com.google.cloud.datafusion.v1beta1.ListAvailableVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.ListAvailableVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAvailableVersionsMethod(), getCallOptions(), request); } @@ -1196,8 +1194,9 @@ public com.google.cloud.datafusion.v1beta1.ListAvailableVersionsResponse listAva * */ public com.google.cloud.datafusion.v1beta1.ListInstancesResponse listInstances( - com.google.cloud.datafusion.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -1209,8 +1208,9 @@ public com.google.cloud.datafusion.v1beta1.ListInstancesResponse listInstances( * */ public com.google.cloud.datafusion.v1beta1.Instance getInstance( - com.google.cloud.datafusion.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -1222,8 +1222,9 @@ public com.google.cloud.datafusion.v1beta1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.datafusion.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -1235,8 +1236,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.datafusion.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -1248,8 +1250,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.datafusion.v1beta1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -1262,8 +1265,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation restartInstance( - com.google.cloud.datafusion.v1beta1.RestartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.RestartInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestartInstanceMethod(), getCallOptions(), request); } @@ -1276,8 +1280,9 @@ public com.google.longrunning.Operation restartInstance( * */ public com.google.longrunning.Operation upgradeInstance( - com.google.cloud.datafusion.v1beta1.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.UpgradeInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } @@ -1289,8 +1294,9 @@ public com.google.longrunning.Operation upgradeInstance( * */ public com.google.cloud.datafusion.v1beta1.RemoveIamPolicyResponse removeIamPolicy( - com.google.cloud.datafusion.v1beta1.RemoveIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.RemoveIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveIamPolicyMethod(), getCallOptions(), request); } @@ -1302,8 +1308,9 @@ public com.google.cloud.datafusion.v1beta1.RemoveIamPolicyResponse removeIamPoli * */ public com.google.cloud.datafusion.v1beta1.ListNamespacesResponse listNamespaces( - com.google.cloud.datafusion.v1beta1.ListNamespacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.ListNamespacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNamespacesMethod(), getCallOptions(), request); } @@ -1315,8 +1322,9 @@ public com.google.cloud.datafusion.v1beta1.ListNamespacesResponse listNamespaces * */ public com.google.cloud.datafusion.v1beta1.AddDnsPeeringResponse addDnsPeering( - com.google.cloud.datafusion.v1beta1.AddDnsPeeringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.AddDnsPeeringRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddDnsPeeringMethod(), getCallOptions(), request); } @@ -1328,8 +1336,9 @@ public com.google.cloud.datafusion.v1beta1.AddDnsPeeringResponse addDnsPeering( * */ public com.google.cloud.datafusion.v1beta1.RemoveDnsPeeringResponse removeDnsPeering( - com.google.cloud.datafusion.v1beta1.RemoveDnsPeeringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.RemoveDnsPeeringRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveDnsPeeringMethod(), getCallOptions(), request); } @@ -1341,8 +1350,9 @@ public com.google.cloud.datafusion.v1beta1.RemoveDnsPeeringResponse removeDnsPee * */ public com.google.cloud.datafusion.v1beta1.ListDnsPeeringsResponse listDnsPeerings( - com.google.cloud.datafusion.v1beta1.ListDnsPeeringsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datafusion.v1beta1.ListDnsPeeringsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDnsPeeringsMethod(), getCallOptions(), request); } } diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index abe872575cf2..552a8f449c09 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datacatalog - 1.83.0 + 1.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.83.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.84.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java index da6bb020f002..c9db935e5647 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java @@ -26,9 +26,6 @@ * your data. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1/datacatalog.proto") @io.grpc.stub.annotations.GrpcGenerated @java.lang.Deprecated public final class DataCatalogGrpc { @@ -3388,8 +3385,9 @@ protected DataCatalogBlockingV2Stub build( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.SearchCatalogResponse searchCatalog( - com.google.cloud.datacatalog.v1.SearchCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.SearchCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchCatalogMethod(), getCallOptions(), request); } @@ -3421,8 +3419,9 @@ public com.google.cloud.datacatalog.v1.SearchCatalogResponse searchCatalog( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.EntryGroup createEntryGroup( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.CreateEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntryGroupMethod(), getCallOptions(), request); } @@ -3435,8 +3434,9 @@ public com.google.cloud.datacatalog.v1.EntryGroup createEntryGroup( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup( - com.google.cloud.datacatalog.v1.GetEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.GetEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntryGroupMethod(), getCallOptions(), request); } @@ -3453,8 +3453,9 @@ public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.EntryGroup updateEntryGroup( - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntryGroupMethod(), getCallOptions(), request); } @@ -3471,8 +3472,9 @@ public com.google.cloud.datacatalog.v1.EntryGroup updateEntryGroup( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteEntryGroup( - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntryGroupMethod(), getCallOptions(), request); } @@ -3485,8 +3487,9 @@ public com.google.protobuf.Empty deleteEntryGroup( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.ListEntryGroupsResponse listEntryGroups( - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ListEntryGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntryGroupsMethod(), getCallOptions(), request); } @@ -3506,8 +3509,8 @@ public com.google.cloud.datacatalog.v1.ListEntryGroupsResponse listEntryGroups( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.Entry createEntry( - com.google.cloud.datacatalog.v1.CreateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.CreateEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntryMethod(), getCallOptions(), request); } @@ -3524,8 +3527,8 @@ public com.google.cloud.datacatalog.v1.Entry createEntry( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.Entry updateEntry( - com.google.cloud.datacatalog.v1.UpdateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.UpdateEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntryMethod(), getCallOptions(), request); } @@ -3545,8 +3548,8 @@ public com.google.cloud.datacatalog.v1.Entry updateEntry( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteEntry( - com.google.cloud.datacatalog.v1.DeleteEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.DeleteEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntryMethod(), getCallOptions(), request); } @@ -3559,8 +3562,8 @@ public com.google.protobuf.Empty deleteEntry( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.Entry getEntry( - com.google.cloud.datacatalog.v1.GetEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.GetEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntryMethod(), getCallOptions(), request); } @@ -3574,8 +3577,8 @@ public com.google.cloud.datacatalog.v1.Entry getEntry( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.Entry lookupEntry( - com.google.cloud.datacatalog.v1.LookupEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.LookupEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupEntryMethod(), getCallOptions(), request); } @@ -3591,8 +3594,8 @@ public com.google.cloud.datacatalog.v1.Entry lookupEntry( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.ListEntriesResponse listEntries( - com.google.cloud.datacatalog.v1.ListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ListEntriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntriesMethod(), getCallOptions(), request); } @@ -3608,8 +3611,9 @@ public com.google.cloud.datacatalog.v1.ListEntriesResponse listEntries( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.EntryOverview modifyEntryOverview( - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModifyEntryOverviewMethod(), getCallOptions(), request); } @@ -3625,8 +3629,9 @@ public com.google.cloud.datacatalog.v1.EntryOverview modifyEntryOverview( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.Contacts modifyEntryContacts( - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModifyEntryContactsMethod(), getCallOptions(), request); } @@ -3643,8 +3648,9 @@ public com.google.cloud.datacatalog.v1.Contacts modifyEntryContacts( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.TagTemplate createTagTemplate( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.CreateTagTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagTemplateMethod(), getCallOptions(), request); } @@ -3657,8 +3663,9 @@ public com.google.cloud.datacatalog.v1.TagTemplate createTagTemplate( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate( - com.google.cloud.datacatalog.v1.GetTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.GetTagTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTagTemplateMethod(), getCallOptions(), request); } @@ -3677,8 +3684,9 @@ public com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.TagTemplate updateTagTemplate( - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagTemplateMethod(), getCallOptions(), request); } @@ -3694,8 +3702,9 @@ public com.google.cloud.datacatalog.v1.TagTemplate updateTagTemplate( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteTagTemplate( - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagTemplateMethod(), getCallOptions(), request); } @@ -3711,8 +3720,9 @@ public com.google.protobuf.Empty deleteTagTemplate( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.TagTemplateField createTagTemplateField( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagTemplateFieldMethod(), getCallOptions(), request); } @@ -3730,8 +3740,9 @@ public com.google.cloud.datacatalog.v1.TagTemplateField createTagTemplateField( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.TagTemplateField updateTagTemplateField( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagTemplateFieldMethod(), getCallOptions(), request); } @@ -3747,8 +3758,9 @@ public com.google.cloud.datacatalog.v1.TagTemplateField updateTagTemplateField( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.TagTemplateField renameTagTemplateField( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameTagTemplateFieldMethod(), getCallOptions(), request); } @@ -3762,8 +3774,9 @@ public com.google.cloud.datacatalog.v1.TagTemplateField renameTagTemplateField( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.TagTemplateField renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameTagTemplateFieldEnumValueMethod(), getCallOptions(), request); } @@ -3780,8 +3793,9 @@ public com.google.cloud.datacatalog.v1.TagTemplateField renameTagTemplateFieldEn */ @java.lang.Deprecated public com.google.protobuf.Empty deleteTagTemplateField( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagTemplateFieldMethod(), getCallOptions(), request); } @@ -3803,8 +3817,8 @@ public com.google.protobuf.Empty deleteTagTemplateField( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.Tag createTag( - com.google.cloud.datacatalog.v1.CreateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.CreateTagRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagMethod(), getCallOptions(), request); } @@ -3817,8 +3831,8 @@ public com.google.cloud.datacatalog.v1.Tag createTag( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.Tag updateTag( - com.google.cloud.datacatalog.v1.UpdateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.UpdateTagRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagMethod(), getCallOptions(), request); } @@ -3831,8 +3845,8 @@ public com.google.cloud.datacatalog.v1.Tag updateTag( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteTag( - com.google.cloud.datacatalog.v1.DeleteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.DeleteTagRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagMethod(), getCallOptions(), request); } @@ -3847,8 +3861,8 @@ public com.google.protobuf.Empty deleteTag( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.ListTagsResponse listTags( - com.google.cloud.datacatalog.v1.ListTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ListTagsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTagsMethod(), getCallOptions(), request); } @@ -3872,8 +3886,9 @@ public com.google.cloud.datacatalog.v1.ListTagsResponse listTags( */ @java.lang.Deprecated public com.google.longrunning.Operation reconcileTags( - com.google.cloud.datacatalog.v1.ReconcileTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ReconcileTagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReconcileTagsMethod(), getCallOptions(), request); } @@ -3887,8 +3902,8 @@ public com.google.longrunning.Operation reconcileTags( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.StarEntryResponse starEntry( - com.google.cloud.datacatalog.v1.StarEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.StarEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStarEntryMethod(), getCallOptions(), request); } @@ -3902,8 +3917,8 @@ public com.google.cloud.datacatalog.v1.StarEntryResponse starEntry( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.UnstarEntryResponse unstarEntry( - com.google.cloud.datacatalog.v1.UnstarEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.UnstarEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnstarEntryMethod(), getCallOptions(), request); } @@ -3926,8 +3941,9 @@ public com.google.cloud.datacatalog.v1.UnstarEntryResponse unstarEntry( * */ @java.lang.Deprecated - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -3952,8 +3968,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ @java.lang.Deprecated - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -3974,8 +3991,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque */ @java.lang.Deprecated public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -4003,8 +4020,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( */ @java.lang.Deprecated public com.google.longrunning.Operation importEntries( - com.google.cloud.datacatalog.v1.ImportEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ImportEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportEntriesMethod(), getCallOptions(), request); } @@ -4018,8 +4036,8 @@ public com.google.longrunning.Operation importEntries( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.MigrationConfig setConfig( - com.google.cloud.datacatalog.v1.SetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.SetConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetConfigMethod(), getCallOptions(), request); } @@ -4034,8 +4052,9 @@ public com.google.cloud.datacatalog.v1.MigrationConfig setConfig( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.OrganizationConfig retrieveConfig( - com.google.cloud.datacatalog.v1.RetrieveConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.RetrieveConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveConfigMethod(), getCallOptions(), request); } @@ -4052,8 +4071,9 @@ public com.google.cloud.datacatalog.v1.OrganizationConfig retrieveConfig( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1.MigrationConfig retrieveEffectiveConfig( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveEffectiveConfigMethod(), getCallOptions(), request); } } diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java index e4510d2ed7fb..b2f7f6e72bab 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java @@ -28,9 +28,6 @@ * classify data along a common axis. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1/policytagmanager.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PolicyTagManagerGrpc { @@ -1180,8 +1177,9 @@ protected PolicyTagManagerBlockingV2Stub build( * */ public com.google.cloud.datacatalog.v1.Taxonomy createTaxonomy( - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.CreateTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTaxonomyMethod(), getCallOptions(), request); } @@ -1195,8 +1193,9 @@ public com.google.cloud.datacatalog.v1.Taxonomy createTaxonomy( * */ public com.google.protobuf.Empty deleteTaxonomy( - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTaxonomyMethod(), getCallOptions(), request); } @@ -1209,8 +1208,9 @@ public com.google.protobuf.Empty deleteTaxonomy( * */ public com.google.cloud.datacatalog.v1.Taxonomy updateTaxonomy( - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTaxonomyMethod(), getCallOptions(), request); } @@ -1223,8 +1223,9 @@ public com.google.cloud.datacatalog.v1.Taxonomy updateTaxonomy( * */ public com.google.cloud.datacatalog.v1.ListTaxonomiesResponse listTaxonomies( - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ListTaxonomiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTaxonomiesMethod(), getCallOptions(), request); } @@ -1236,8 +1237,8 @@ public com.google.cloud.datacatalog.v1.ListTaxonomiesResponse listTaxonomies( * */ public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy( - com.google.cloud.datacatalog.v1.GetTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.GetTaxonomyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaxonomyMethod(), getCallOptions(), request); } @@ -1249,8 +1250,9 @@ public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy( * */ public com.google.cloud.datacatalog.v1.PolicyTag createPolicyTag( - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.CreatePolicyTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePolicyTagMethod(), getCallOptions(), request); } @@ -1266,8 +1268,9 @@ public com.google.cloud.datacatalog.v1.PolicyTag createPolicyTag( * */ public com.google.protobuf.Empty deletePolicyTag( - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.DeletePolicyTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePolicyTagMethod(), getCallOptions(), request); } @@ -1280,8 +1283,9 @@ public com.google.protobuf.Empty deletePolicyTag( * */ public com.google.cloud.datacatalog.v1.PolicyTag updatePolicyTag( - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePolicyTagMethod(), getCallOptions(), request); } @@ -1293,8 +1297,9 @@ public com.google.cloud.datacatalog.v1.PolicyTag updatePolicyTag( * */ public com.google.cloud.datacatalog.v1.ListPolicyTagsResponse listPolicyTags( - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ListPolicyTagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPolicyTagsMethod(), getCallOptions(), request); } @@ -1306,8 +1311,9 @@ public com.google.cloud.datacatalog.v1.ListPolicyTagsResponse listPolicyTags( * */ public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag( - com.google.cloud.datacatalog.v1.GetPolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.GetPolicyTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPolicyTagMethod(), getCallOptions(), request); } @@ -1318,8 +1324,9 @@ public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag( * Gets the IAM policy for a policy tag or a taxonomy. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1330,8 +1337,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM policy for a policy tag or a taxonomy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1344,8 +1352,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java index 52acbe1175f3..b45087a574a2 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java @@ -26,9 +26,6 @@ * Taxonomy is a hierarchical group of policy tags. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PolicyTagManagerSerializationGrpc { @@ -466,8 +463,9 @@ protected PolicyTagManagerSerializationBlockingV2Stub build( * */ public com.google.cloud.datacatalog.v1.Taxonomy replaceTaxonomy( - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReplaceTaxonomyMethod(), getCallOptions(), request); } @@ -484,8 +482,9 @@ public com.google.cloud.datacatalog.v1.Taxonomy replaceTaxonomy( * */ public com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse importTaxonomies( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportTaxonomiesMethod(), getCallOptions(), request); } @@ -501,8 +500,9 @@ public com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse importTaxonomies * */ public com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse exportTaxonomies( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportTaxonomiesMethod(), getCallOptions(), request); } } diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java index 1048ca1798f7..6094045705ea 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java @@ -26,9 +26,6 @@ * their data. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1beta1/datacatalog.proto") @io.grpc.stub.annotations.GrpcGenerated @java.lang.Deprecated public final class DataCatalogGrpc { @@ -2612,8 +2609,9 @@ protected DataCatalogBlockingV2Stub build( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse searchCatalog( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchCatalogMethod(), getCallOptions(), request); } @@ -2631,8 +2629,9 @@ public com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse searchCatalog( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.EntryGroup createEntryGroup( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntryGroupMethod(), getCallOptions(), request); } @@ -2649,8 +2648,9 @@ public com.google.cloud.datacatalog.v1beta1.EntryGroup createEntryGroup( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.EntryGroup updateEntryGroup( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntryGroupMethod(), getCallOptions(), request); } @@ -2663,8 +2663,9 @@ public com.google.cloud.datacatalog.v1beta1.EntryGroup updateEntryGroup( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup( - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntryGroupMethod(), getCallOptions(), request); } @@ -2681,8 +2682,9 @@ public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteEntryGroup( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntryGroupMethod(), getCallOptions(), request); } @@ -2695,8 +2697,9 @@ public com.google.protobuf.Empty deleteEntryGroup( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse listEntryGroups( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntryGroupsMethod(), getCallOptions(), request); } @@ -2715,8 +2718,9 @@ public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse listEntryGro */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.Entry createEntry( - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.CreateEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntryMethod(), getCallOptions(), request); } @@ -2733,8 +2737,9 @@ public com.google.cloud.datacatalog.v1beta1.Entry createEntry( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.Entry updateEntry( - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntryMethod(), getCallOptions(), request); } @@ -2753,8 +2758,9 @@ public com.google.cloud.datacatalog.v1beta1.Entry updateEntry( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteEntry( - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntryMethod(), getCallOptions(), request); } @@ -2767,8 +2773,9 @@ public com.google.protobuf.Empty deleteEntry( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.Entry getEntry( - com.google.cloud.datacatalog.v1beta1.GetEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.GetEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntryMethod(), getCallOptions(), request); } @@ -2783,8 +2790,9 @@ public com.google.cloud.datacatalog.v1beta1.Entry getEntry( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.Entry lookupEntry( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupEntryMethod(), getCallOptions(), request); } @@ -2797,8 +2805,9 @@ public com.google.cloud.datacatalog.v1beta1.Entry lookupEntry( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.ListEntriesResponse listEntries( - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.ListEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntriesMethod(), getCallOptions(), request); } @@ -2815,8 +2824,9 @@ public com.google.cloud.datacatalog.v1beta1.ListEntriesResponse listEntries( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.TagTemplate createTagTemplate( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagTemplateMethod(), getCallOptions(), request); } @@ -2829,8 +2839,9 @@ public com.google.cloud.datacatalog.v1beta1.TagTemplate createTagTemplate( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate( - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTagTemplateMethod(), getCallOptions(), request); } @@ -2849,8 +2860,9 @@ public com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.TagTemplate updateTagTemplate( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagTemplateMethod(), getCallOptions(), request); } @@ -2867,8 +2879,9 @@ public com.google.cloud.datacatalog.v1beta1.TagTemplate updateTagTemplate( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteTagTemplate( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagTemplateMethod(), getCallOptions(), request); } @@ -2885,8 +2898,9 @@ public com.google.protobuf.Empty deleteTagTemplate( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.TagTemplateField createTagTemplateField( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagTemplateFieldMethod(), getCallOptions(), request); } @@ -2903,8 +2917,9 @@ public com.google.cloud.datacatalog.v1beta1.TagTemplateField createTagTemplateFi */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.TagTemplateField updateTagTemplateField( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagTemplateFieldMethod(), getCallOptions(), request); } @@ -2921,8 +2936,9 @@ public com.google.cloud.datacatalog.v1beta1.TagTemplateField updateTagTemplateFi */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.TagTemplateField renameTagTemplateField( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameTagTemplateFieldMethod(), getCallOptions(), request); } @@ -2937,8 +2953,9 @@ public com.google.cloud.datacatalog.v1beta1.TagTemplateField renameTagTemplateFi */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.TagTemplateField renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenameTagTemplateFieldEnumValueMethod(), getCallOptions(), request); } @@ -2955,8 +2972,9 @@ public com.google.cloud.datacatalog.v1beta1.TagTemplateField renameTagTemplateFi */ @java.lang.Deprecated public com.google.protobuf.Empty deleteTagTemplateField( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagTemplateFieldMethod(), getCallOptions(), request); } @@ -2975,8 +2993,9 @@ public com.google.protobuf.Empty deleteTagTemplateField( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.Tag createTag( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.CreateTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagMethod(), getCallOptions(), request); } @@ -2989,8 +3008,9 @@ public com.google.cloud.datacatalog.v1beta1.Tag createTag( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.Tag updateTag( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.UpdateTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagMethod(), getCallOptions(), request); } @@ -3003,8 +3023,9 @@ public com.google.cloud.datacatalog.v1beta1.Tag updateTag( */ @java.lang.Deprecated public com.google.protobuf.Empty deleteTag( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.DeleteTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagMethod(), getCallOptions(), request); } @@ -3019,8 +3040,9 @@ public com.google.protobuf.Empty deleteTag( */ @java.lang.Deprecated public com.google.cloud.datacatalog.v1beta1.ListTagsResponse listTags( - com.google.cloud.datacatalog.v1beta1.ListTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.ListTagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTagsMethod(), getCallOptions(), request); } @@ -3044,8 +3066,9 @@ public com.google.cloud.datacatalog.v1beta1.ListTagsResponse listTags( * */ @java.lang.Deprecated - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -3070,8 +3093,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ @java.lang.Deprecated - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -3094,8 +3118,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque */ @java.lang.Deprecated public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java index 39208af2c830..41365a624f84 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java @@ -25,9 +25,6 @@ * and policy tags. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1beta1/policytagmanager.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PolicyTagManagerGrpc { @@ -1160,8 +1157,9 @@ protected PolicyTagManagerBlockingV2Stub build( * */ public com.google.cloud.datacatalog.v1beta1.Taxonomy createTaxonomy( - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTaxonomyMethod(), getCallOptions(), request); } @@ -1174,8 +1172,9 @@ public com.google.cloud.datacatalog.v1beta1.Taxonomy createTaxonomy( * */ public com.google.protobuf.Empty deleteTaxonomy( - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTaxonomyMethod(), getCallOptions(), request); } @@ -1187,8 +1186,9 @@ public com.google.protobuf.Empty deleteTaxonomy( * */ public com.google.cloud.datacatalog.v1beta1.Taxonomy updateTaxonomy( - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTaxonomyMethod(), getCallOptions(), request); } @@ -1201,8 +1201,9 @@ public com.google.cloud.datacatalog.v1beta1.Taxonomy updateTaxonomy( * */ public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse listTaxonomies( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTaxonomiesMethod(), getCallOptions(), request); } @@ -1214,8 +1215,9 @@ public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse listTaxonomie * */ public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy( - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaxonomyMethod(), getCallOptions(), request); } @@ -1227,8 +1229,9 @@ public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy( * */ public com.google.cloud.datacatalog.v1beta1.PolicyTag createPolicyTag( - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePolicyTagMethod(), getCallOptions(), request); } @@ -1240,8 +1243,9 @@ public com.google.cloud.datacatalog.v1beta1.PolicyTag createPolicyTag( * */ public com.google.protobuf.Empty deletePolicyTag( - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePolicyTagMethod(), getCallOptions(), request); } @@ -1253,8 +1257,9 @@ public com.google.protobuf.Empty deletePolicyTag( * */ public com.google.cloud.datacatalog.v1beta1.PolicyTag updatePolicyTag( - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePolicyTagMethod(), getCallOptions(), request); } @@ -1266,8 +1271,9 @@ public com.google.cloud.datacatalog.v1beta1.PolicyTag updatePolicyTag( * */ public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse listPolicyTags( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPolicyTagsMethod(), getCallOptions(), request); } @@ -1279,8 +1285,9 @@ public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse listPolicyTag * */ public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag( - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPolicyTagMethod(), getCallOptions(), request); } @@ -1291,8 +1298,9 @@ public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag( * Gets the IAM policy for a taxonomy or a policy tag. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1303,8 +1311,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM policy for a taxonomy or a policy tag. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1317,8 +1326,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java index a46e505d01a6..434406628399 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java @@ -25,9 +25,6 @@ * their taxonomies and policy tags data with serialized format. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PolicyTagManagerSerializationGrpc { @@ -350,8 +347,9 @@ protected PolicyTagManagerSerializationBlockingV2Stub build( * */ public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse importTaxonomies( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportTaxonomiesMethod(), getCallOptions(), request); } @@ -365,8 +363,9 @@ public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse importTaxon * */ public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse exportTaxonomies( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportTaxonomiesMethod(), getCallOptions(), request); } } diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 5c187f887173..83d9fcfcc76a 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.81.0 + 0.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.81.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.82.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceGrpc.java b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceGrpc.java index 24c67516aef4..8441885b4496 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceGrpc.java +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceGrpc.java @@ -24,9 +24,6 @@ * Provides a service for Flex templates. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/dataflow/v1beta3/templates.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FlexTemplatesServiceGrpc { @@ -245,8 +242,9 @@ protected FlexTemplatesServiceBlockingV2Stub build( * */ public com.google.dataflow.v1beta3.LaunchFlexTemplateResponse launchFlexTemplate( - com.google.dataflow.v1beta3.LaunchFlexTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.LaunchFlexTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLaunchFlexTemplateMethod(), getCallOptions(), request); } } diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Grpc.java b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Grpc.java index 40ca36dc3f73..0b528be3af6e 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Grpc.java +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Grpc.java @@ -25,9 +25,6 @@ * A Job is a multi-stage computation graph run by the Cloud Dataflow service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/dataflow/v1beta3/jobs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class JobsV1Beta3Grpc { @@ -727,8 +724,8 @@ protected JobsV1Beta3BlockingV2Stub build( * */ public com.google.dataflow.v1beta3.Job createJob( - com.google.dataflow.v1beta3.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.CreateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -744,9 +741,9 @@ public com.google.dataflow.v1beta3.Job createJob( * jobs that are running in `us-central1`. * */ - public com.google.dataflow.v1beta3.Job getJob( - com.google.dataflow.v1beta3.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.dataflow.v1beta3.Job getJob(com.google.dataflow.v1beta3.GetJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -763,8 +760,8 @@ public com.google.dataflow.v1beta3.Job getJob( * */ public com.google.dataflow.v1beta3.Job updateJob( - com.google.dataflow.v1beta3.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.UpdateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateJobMethod(), getCallOptions(), request); } @@ -785,8 +782,8 @@ public com.google.dataflow.v1beta3.Job updateJob( * */ public com.google.dataflow.v1beta3.ListJobsResponse listJobs( - com.google.dataflow.v1beta3.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -800,8 +797,8 @@ public com.google.dataflow.v1beta3.ListJobsResponse listJobs( * */ public com.google.dataflow.v1beta3.ListJobsResponse aggregatedListJobs( - com.google.dataflow.v1beta3.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAggregatedListJobsMethod(), getCallOptions(), request); } @@ -813,8 +810,8 @@ public com.google.dataflow.v1beta3.ListJobsResponse aggregatedListJobs( * */ public com.google.dataflow.v1beta3.CheckActiveJobsResponse checkActiveJobs( - com.google.dataflow.v1beta3.CheckActiveJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.CheckActiveJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckActiveJobsMethod(), getCallOptions(), request); } @@ -826,8 +823,8 @@ public com.google.dataflow.v1beta3.CheckActiveJobsResponse checkActiveJobs( * */ public com.google.dataflow.v1beta3.Snapshot snapshotJob( - com.google.dataflow.v1beta3.SnapshotJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.SnapshotJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSnapshotJobMethod(), getCallOptions(), request); } } diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Grpc.java b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Grpc.java index 444e1f264720..85706cc7d6d3 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Grpc.java +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Grpc.java @@ -25,9 +25,6 @@ * Dataflow jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/dataflow/v1beta3/messages.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MessagesV1Beta3Grpc { @@ -261,8 +258,8 @@ protected MessagesV1Beta3BlockingV2Stub build( * */ public com.google.dataflow.v1beta3.ListJobMessagesResponse listJobMessages( - com.google.dataflow.v1beta3.ListJobMessagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.ListJobMessagesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobMessagesMethod(), getCallOptions(), request); } } diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Grpc.java b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Grpc.java index 944f3131e2ed..692fc3dc8c24 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Grpc.java +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Grpc.java @@ -25,9 +25,6 @@ * jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/dataflow/v1beta3/metrics.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MetricsV1Beta3Grpc { @@ -425,8 +422,8 @@ protected MetricsV1Beta3BlockingV2Stub build( * */ public com.google.dataflow.v1beta3.JobMetrics getJobMetrics( - com.google.dataflow.v1beta3.GetJobMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.GetJobMetricsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMetricsMethod(), getCallOptions(), request); } @@ -439,8 +436,9 @@ public com.google.dataflow.v1beta3.JobMetrics getJobMetrics( * */ public com.google.dataflow.v1beta3.JobExecutionDetails getJobExecutionDetails( - com.google.dataflow.v1beta3.GetJobExecutionDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.GetJobExecutionDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobExecutionDetailsMethod(), getCallOptions(), request); } @@ -454,8 +452,9 @@ public com.google.dataflow.v1beta3.JobExecutionDetails getJobExecutionDetails( * */ public com.google.dataflow.v1beta3.StageExecutionDetails getStageExecutionDetails( - com.google.dataflow.v1beta3.GetStageExecutionDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.GetStageExecutionDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStageExecutionDetailsMethod(), getCallOptions(), request); } } diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Grpc.java b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Grpc.java index e0f7abe99c11..e48716c223ba 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Grpc.java +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Grpc.java @@ -24,9 +24,6 @@ * Provides methods to manage snapshots of Google Cloud Dataflow jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/dataflow/v1beta3/snapshots.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SnapshotsV1Beta3Grpc { @@ -392,8 +389,8 @@ protected SnapshotsV1Beta3BlockingV2Stub build( * */ public com.google.dataflow.v1beta3.Snapshot getSnapshot( - com.google.dataflow.v1beta3.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.GetSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } @@ -405,8 +402,8 @@ public com.google.dataflow.v1beta3.Snapshot getSnapshot( * */ public com.google.dataflow.v1beta3.DeleteSnapshotResponse deleteSnapshot( - com.google.dataflow.v1beta3.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.DeleteSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } @@ -418,8 +415,8 @@ public com.google.dataflow.v1beta3.DeleteSnapshotResponse deleteSnapshot( * */ public com.google.dataflow.v1beta3.ListSnapshotsResponse listSnapshots( - com.google.dataflow.v1beta3.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.ListSnapshotsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } } diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceGrpc.java b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceGrpc.java index 777afef93389..8d04bbb992a6 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceGrpc.java +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceGrpc.java @@ -24,9 +24,6 @@ * Provides a method to create Cloud Dataflow jobs from templates. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/dataflow/v1beta3/templates.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TemplatesServiceGrpc { @@ -433,8 +430,9 @@ protected TemplatesServiceBlockingV2Stub build( * */ public com.google.dataflow.v1beta3.Job createJobFromTemplate( - com.google.dataflow.v1beta3.CreateJobFromTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.CreateJobFromTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobFromTemplateMethod(), getCallOptions(), request); } @@ -451,8 +449,8 @@ public com.google.dataflow.v1beta3.Job createJobFromTemplate( * */ public com.google.dataflow.v1beta3.LaunchTemplateResponse launchTemplate( - com.google.dataflow.v1beta3.LaunchTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.LaunchTemplateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLaunchTemplateMethod(), getCallOptions(), request); } @@ -469,8 +467,8 @@ public com.google.dataflow.v1beta3.LaunchTemplateResponse launchTemplate( * */ public com.google.dataflow.v1beta3.GetTemplateResponse getTemplate( - com.google.dataflow.v1beta3.GetTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.dataflow.v1beta3.GetTemplateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTemplateMethod(), getCallOptions(), request); } } diff --git a/java-dataform/README.md b/java-dataform/README.md index b252f52c634f..c1fb86f5034b 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.76.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.76.0' +implementation 'com.google.cloud:google-cloud-dataform:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.77.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java index a3a9eb71dfcf..ced6da540219 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java @@ -25,9 +25,6 @@ * tables in BigQuery. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataform/v1/dataform.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataformGrpc { @@ -4419,8 +4416,9 @@ protected DataformBlockingV2Stub build( * */ public com.google.cloud.dataform.v1.ListRepositoriesResponse listRepositories( - com.google.cloud.dataform.v1.ListRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ListRepositoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRepositoriesMethod(), getCallOptions(), request); } @@ -4432,8 +4430,8 @@ public com.google.cloud.dataform.v1.ListRepositoriesResponse listRepositories( * */ public com.google.cloud.dataform.v1.Repository getRepository( - com.google.cloud.dataform.v1.GetRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.GetRepositoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRepositoryMethod(), getCallOptions(), request); } @@ -4445,8 +4443,9 @@ public com.google.cloud.dataform.v1.Repository getRepository( * */ public com.google.cloud.dataform.v1.Repository createRepository( - com.google.cloud.dataform.v1.CreateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.CreateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRepositoryMethod(), getCallOptions(), request); } @@ -4462,8 +4461,9 @@ public com.google.cloud.dataform.v1.Repository createRepository( * */ public com.google.cloud.dataform.v1.Repository updateRepository( - com.google.cloud.dataform.v1.UpdateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.UpdateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); } @@ -4475,8 +4475,9 @@ public com.google.cloud.dataform.v1.Repository updateRepository( * */ public com.google.protobuf.Empty deleteRepository( - com.google.cloud.dataform.v1.DeleteRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.DeleteRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } @@ -4489,8 +4490,9 @@ public com.google.protobuf.Empty deleteRepository( * */ public com.google.cloud.dataform.v1.CommitRepositoryChangesResponse commitRepositoryChanges( - com.google.cloud.dataform.v1.CommitRepositoryChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.CommitRepositoryChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCommitRepositoryChangesMethod(), getCallOptions(), request); } @@ -4503,8 +4505,9 @@ public com.google.cloud.dataform.v1.CommitRepositoryChangesResponse commitReposi * */ public com.google.cloud.dataform.v1.ReadRepositoryFileResponse readRepositoryFile( - com.google.cloud.dataform.v1.ReadRepositoryFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ReadRepositoryFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadRepositoryFileMethod(), getCallOptions(), request); } @@ -4518,8 +4521,9 @@ public com.google.cloud.dataform.v1.ReadRepositoryFileResponse readRepositoryFil */ public com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse queryRepositoryDirectoryContents( - com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryRepositoryDirectoryContentsMethod(), getCallOptions(), request); } @@ -4532,8 +4536,9 @@ public com.google.cloud.dataform.v1.ReadRepositoryFileResponse readRepositoryFil * */ public com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse fetchRepositoryHistory( - com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchRepositoryHistoryMethod(), getCallOptions(), request); } @@ -4546,8 +4551,9 @@ public com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse fetchReposito */ public com.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessTokenStatus( - com.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeRepositoryAccessTokenStatusMethod(), getCallOptions(), request); } @@ -4559,8 +4565,9 @@ public com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse fetchReposito * */ public com.google.cloud.dataform.v1.FetchRemoteBranchesResponse fetchRemoteBranches( - com.google.cloud.dataform.v1.FetchRemoteBranchesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.FetchRemoteBranchesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchRemoteBranchesMethod(), getCallOptions(), request); } @@ -4572,8 +4579,8 @@ public com.google.cloud.dataform.v1.FetchRemoteBranchesResponse fetchRemoteBranc * */ public com.google.cloud.dataform.v1.ListWorkspacesResponse listWorkspaces( - com.google.cloud.dataform.v1.ListWorkspacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ListWorkspacesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkspacesMethod(), getCallOptions(), request); } @@ -4585,8 +4592,8 @@ public com.google.cloud.dataform.v1.ListWorkspacesResponse listWorkspaces( * */ public com.google.cloud.dataform.v1.Workspace getWorkspace( - com.google.cloud.dataform.v1.GetWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.GetWorkspaceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkspaceMethod(), getCallOptions(), request); } @@ -4598,8 +4605,9 @@ public com.google.cloud.dataform.v1.Workspace getWorkspace( * */ public com.google.cloud.dataform.v1.Workspace createWorkspace( - com.google.cloud.dataform.v1.CreateWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.CreateWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } @@ -4611,8 +4619,9 @@ public com.google.cloud.dataform.v1.Workspace createWorkspace( * */ public com.google.protobuf.Empty deleteWorkspace( - com.google.cloud.dataform.v1.DeleteWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.DeleteWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkspaceMethod(), getCallOptions(), request); } @@ -4624,8 +4633,9 @@ public com.google.protobuf.Empty deleteWorkspace( * */ public com.google.cloud.dataform.v1.InstallNpmPackagesResponse installNpmPackages( - com.google.cloud.dataform.v1.InstallNpmPackagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.InstallNpmPackagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInstallNpmPackagesMethod(), getCallOptions(), request); } @@ -4637,8 +4647,8 @@ public com.google.cloud.dataform.v1.InstallNpmPackagesResponse installNpmPackage * */ public com.google.cloud.dataform.v1.PullGitCommitsResponse pullGitCommits( - com.google.cloud.dataform.v1.PullGitCommitsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.PullGitCommitsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPullGitCommitsMethod(), getCallOptions(), request); } @@ -4650,8 +4660,8 @@ public com.google.cloud.dataform.v1.PullGitCommitsResponse pullGitCommits( * */ public com.google.cloud.dataform.v1.PushGitCommitsResponse pushGitCommits( - com.google.cloud.dataform.v1.PushGitCommitsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.PushGitCommitsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPushGitCommitsMethod(), getCallOptions(), request); } @@ -4663,8 +4673,9 @@ public com.google.cloud.dataform.v1.PushGitCommitsResponse pushGitCommits( * */ public com.google.cloud.dataform.v1.FetchFileGitStatusesResponse fetchFileGitStatuses( - com.google.cloud.dataform.v1.FetchFileGitStatusesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.FetchFileGitStatusesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchFileGitStatusesMethod(), getCallOptions(), request); } @@ -4676,8 +4687,9 @@ public com.google.cloud.dataform.v1.FetchFileGitStatusesResponse fetchFileGitSta * */ public com.google.cloud.dataform.v1.FetchGitAheadBehindResponse fetchGitAheadBehind( - com.google.cloud.dataform.v1.FetchGitAheadBehindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.FetchGitAheadBehindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchGitAheadBehindMethod(), getCallOptions(), request); } @@ -4689,8 +4701,9 @@ public com.google.cloud.dataform.v1.FetchGitAheadBehindResponse fetchGitAheadBeh * */ public com.google.cloud.dataform.v1.CommitWorkspaceChangesResponse commitWorkspaceChanges( - com.google.cloud.dataform.v1.CommitWorkspaceChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.CommitWorkspaceChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCommitWorkspaceChangesMethod(), getCallOptions(), request); } @@ -4702,8 +4715,9 @@ public com.google.cloud.dataform.v1.CommitWorkspaceChangesResponse commitWorkspa * */ public com.google.cloud.dataform.v1.ResetWorkspaceChangesResponse resetWorkspaceChanges( - com.google.cloud.dataform.v1.ResetWorkspaceChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ResetWorkspaceChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetWorkspaceChangesMethod(), getCallOptions(), request); } @@ -4715,8 +4729,8 @@ public com.google.cloud.dataform.v1.ResetWorkspaceChangesResponse resetWorkspace * */ public com.google.cloud.dataform.v1.FetchFileDiffResponse fetchFileDiff( - com.google.cloud.dataform.v1.FetchFileDiffRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.FetchFileDiffRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchFileDiffMethod(), getCallOptions(), request); } @@ -4728,8 +4742,9 @@ public com.google.cloud.dataform.v1.FetchFileDiffResponse fetchFileDiff( * */ public com.google.cloud.dataform.v1.QueryDirectoryContentsResponse queryDirectoryContents( - com.google.cloud.dataform.v1.QueryDirectoryContentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.QueryDirectoryContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryDirectoryContentsMethod(), getCallOptions(), request); } @@ -4741,8 +4756,8 @@ public com.google.cloud.dataform.v1.QueryDirectoryContentsResponse queryDirector * */ public com.google.cloud.dataform.v1.SearchFilesResponse searchFiles( - com.google.cloud.dataform.v1.SearchFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.SearchFilesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchFilesMethod(), getCallOptions(), request); } @@ -4754,8 +4769,8 @@ public com.google.cloud.dataform.v1.SearchFilesResponse searchFiles( * */ public com.google.cloud.dataform.v1.MakeDirectoryResponse makeDirectory( - com.google.cloud.dataform.v1.MakeDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.MakeDirectoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMakeDirectoryMethod(), getCallOptions(), request); } @@ -4767,8 +4782,9 @@ public com.google.cloud.dataform.v1.MakeDirectoryResponse makeDirectory( * */ public com.google.cloud.dataform.v1.RemoveDirectoryResponse removeDirectory( - com.google.cloud.dataform.v1.RemoveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.RemoveDirectoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveDirectoryMethod(), getCallOptions(), request); } @@ -4781,8 +4797,8 @@ public com.google.cloud.dataform.v1.RemoveDirectoryResponse removeDirectory( * */ public com.google.cloud.dataform.v1.MoveDirectoryResponse moveDirectory( - com.google.cloud.dataform.v1.MoveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.MoveDirectoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveDirectoryMethod(), getCallOptions(), request); } @@ -4794,8 +4810,8 @@ public com.google.cloud.dataform.v1.MoveDirectoryResponse moveDirectory( * */ public com.google.cloud.dataform.v1.ReadFileResponse readFile( - com.google.cloud.dataform.v1.ReadFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ReadFileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadFileMethod(), getCallOptions(), request); } @@ -4807,8 +4823,8 @@ public com.google.cloud.dataform.v1.ReadFileResponse readFile( * */ public com.google.cloud.dataform.v1.RemoveFileResponse removeFile( - com.google.cloud.dataform.v1.RemoveFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.RemoveFileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveFileMethod(), getCallOptions(), request); } @@ -4820,8 +4836,8 @@ public com.google.cloud.dataform.v1.RemoveFileResponse removeFile( * */ public com.google.cloud.dataform.v1.MoveFileResponse moveFile( - com.google.cloud.dataform.v1.MoveFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.MoveFileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveFileMethod(), getCallOptions(), request); } @@ -4833,8 +4849,8 @@ public com.google.cloud.dataform.v1.MoveFileResponse moveFile( * */ public com.google.cloud.dataform.v1.WriteFileResponse writeFile( - com.google.cloud.dataform.v1.WriteFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.WriteFileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteFileMethod(), getCallOptions(), request); } @@ -4846,8 +4862,9 @@ public com.google.cloud.dataform.v1.WriteFileResponse writeFile( * */ public com.google.cloud.dataform.v1.ListReleaseConfigsResponse listReleaseConfigs( - com.google.cloud.dataform.v1.ListReleaseConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ListReleaseConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReleaseConfigsMethod(), getCallOptions(), request); } @@ -4859,8 +4876,9 @@ public com.google.cloud.dataform.v1.ListReleaseConfigsResponse listReleaseConfig * */ public com.google.cloud.dataform.v1.ReleaseConfig getReleaseConfig( - com.google.cloud.dataform.v1.GetReleaseConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.GetReleaseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReleaseConfigMethod(), getCallOptions(), request); } @@ -4872,8 +4890,9 @@ public com.google.cloud.dataform.v1.ReleaseConfig getReleaseConfig( * */ public com.google.cloud.dataform.v1.ReleaseConfig createReleaseConfig( - com.google.cloud.dataform.v1.CreateReleaseConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.CreateReleaseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReleaseConfigMethod(), getCallOptions(), request); } @@ -4889,8 +4908,9 @@ public com.google.cloud.dataform.v1.ReleaseConfig createReleaseConfig( * */ public com.google.cloud.dataform.v1.ReleaseConfig updateReleaseConfig( - com.google.cloud.dataform.v1.UpdateReleaseConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.UpdateReleaseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReleaseConfigMethod(), getCallOptions(), request); } @@ -4902,8 +4922,9 @@ public com.google.cloud.dataform.v1.ReleaseConfig updateReleaseConfig( * */ public com.google.protobuf.Empty deleteReleaseConfig( - com.google.cloud.dataform.v1.DeleteReleaseConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.DeleteReleaseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReleaseConfigMethod(), getCallOptions(), request); } @@ -4915,8 +4936,9 @@ public com.google.protobuf.Empty deleteReleaseConfig( * */ public com.google.cloud.dataform.v1.ListCompilationResultsResponse listCompilationResults( - com.google.cloud.dataform.v1.ListCompilationResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ListCompilationResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCompilationResultsMethod(), getCallOptions(), request); } @@ -4928,8 +4950,9 @@ public com.google.cloud.dataform.v1.ListCompilationResultsResponse listCompilati * */ public com.google.cloud.dataform.v1.CompilationResult getCompilationResult( - com.google.cloud.dataform.v1.GetCompilationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.GetCompilationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCompilationResultMethod(), getCallOptions(), request); } @@ -4941,8 +4964,9 @@ public com.google.cloud.dataform.v1.CompilationResult getCompilationResult( * */ public com.google.cloud.dataform.v1.CompilationResult createCompilationResult( - com.google.cloud.dataform.v1.CreateCompilationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.CreateCompilationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); } @@ -4955,8 +4979,9 @@ public com.google.cloud.dataform.v1.CompilationResult createCompilationResult( */ public com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse queryCompilationResultActions( - com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); } @@ -4968,8 +4993,9 @@ public com.google.cloud.dataform.v1.CompilationResult createCompilationResult( * */ public com.google.cloud.dataform.v1.ListWorkflowConfigsResponse listWorkflowConfigs( - com.google.cloud.dataform.v1.ListWorkflowConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ListWorkflowConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkflowConfigsMethod(), getCallOptions(), request); } @@ -4981,8 +5007,9 @@ public com.google.cloud.dataform.v1.ListWorkflowConfigsResponse listWorkflowConf * */ public com.google.cloud.dataform.v1.WorkflowConfig getWorkflowConfig( - com.google.cloud.dataform.v1.GetWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.GetWorkflowConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkflowConfigMethod(), getCallOptions(), request); } @@ -4994,8 +5021,9 @@ public com.google.cloud.dataform.v1.WorkflowConfig getWorkflowConfig( * */ public com.google.cloud.dataform.v1.WorkflowConfig createWorkflowConfig( - com.google.cloud.dataform.v1.CreateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.CreateWorkflowConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkflowConfigMethod(), getCallOptions(), request); } @@ -5011,8 +5039,9 @@ public com.google.cloud.dataform.v1.WorkflowConfig createWorkflowConfig( * */ public com.google.cloud.dataform.v1.WorkflowConfig updateWorkflowConfig( - com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkflowConfigMethod(), getCallOptions(), request); } @@ -5024,8 +5053,9 @@ public com.google.cloud.dataform.v1.WorkflowConfig updateWorkflowConfig( * */ public com.google.protobuf.Empty deleteWorkflowConfig( - com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkflowConfigMethod(), getCallOptions(), request); } @@ -5037,8 +5067,9 @@ public com.google.protobuf.Empty deleteWorkflowConfig( * */ public com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse listWorkflowInvocations( - com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); } @@ -5050,8 +5081,9 @@ public com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse listWorkflow * */ public com.google.cloud.dataform.v1.WorkflowInvocation getWorkflowInvocation( - com.google.cloud.dataform.v1.GetWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.GetWorkflowInvocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkflowInvocationMethod(), getCallOptions(), request); } @@ -5063,8 +5095,9 @@ public com.google.cloud.dataform.v1.WorkflowInvocation getWorkflowInvocation( * */ public com.google.cloud.dataform.v1.WorkflowInvocation createWorkflowInvocation( - com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkflowInvocationMethod(), getCallOptions(), request); } @@ -5076,8 +5109,9 @@ public com.google.cloud.dataform.v1.WorkflowInvocation createWorkflowInvocation( * */ public com.google.protobuf.Empty deleteWorkflowInvocation( - com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkflowInvocationMethod(), getCallOptions(), request); } @@ -5089,8 +5123,9 @@ public com.google.protobuf.Empty deleteWorkflowInvocation( * */ public com.google.cloud.dataform.v1.CancelWorkflowInvocationResponse cancelWorkflowInvocation( - com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); } @@ -5103,8 +5138,9 @@ public com.google.cloud.dataform.v1.CancelWorkflowInvocationResponse cancelWorkf */ public com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse queryWorkflowInvocationActions( - com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); } @@ -5116,8 +5152,8 @@ public com.google.cloud.dataform.v1.CancelWorkflowInvocationResponse cancelWorkf * */ public com.google.cloud.dataform.v1.Config getConfig( - com.google.cloud.dataform.v1.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.GetConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConfigMethod(), getCallOptions(), request); } @@ -5133,8 +5169,8 @@ public com.google.cloud.dataform.v1.Config getConfig( * */ public com.google.cloud.dataform.v1.Config updateConfig( - com.google.cloud.dataform.v1.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1.UpdateConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConfigMethod(), getCallOptions(), request); } } diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java index 23314091c81d..d47d244d2f77 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java @@ -25,9 +25,6 @@ * tables in BigQuery. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataform/v1beta1/dataform.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataformGrpc { @@ -4485,8 +4482,9 @@ protected DataformBlockingV2Stub build( * */ public com.google.cloud.dataform.v1beta1.ListRepositoriesResponse listRepositories( - com.google.cloud.dataform.v1beta1.ListRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRepositoriesMethod(), getCallOptions(), request); } @@ -4498,8 +4496,9 @@ public com.google.cloud.dataform.v1beta1.ListRepositoriesResponse listRepositori * */ public com.google.cloud.dataform.v1beta1.Repository getRepository( - com.google.cloud.dataform.v1beta1.GetRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.GetRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRepositoryMethod(), getCallOptions(), request); } @@ -4511,8 +4510,9 @@ public com.google.cloud.dataform.v1beta1.Repository getRepository( * */ public com.google.cloud.dataform.v1beta1.Repository createRepository( - com.google.cloud.dataform.v1beta1.CreateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRepositoryMethod(), getCallOptions(), request); } @@ -4528,8 +4528,9 @@ public com.google.cloud.dataform.v1beta1.Repository createRepository( * */ public com.google.cloud.dataform.v1beta1.Repository updateRepository( - com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); } @@ -4541,8 +4542,9 @@ public com.google.cloud.dataform.v1beta1.Repository updateRepository( * */ public com.google.protobuf.Empty deleteRepository( - com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } @@ -4556,8 +4558,9 @@ public com.google.protobuf.Empty deleteRepository( */ public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesResponse commitRepositoryChanges( - com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCommitRepositoryChangesMethod(), getCallOptions(), request); } @@ -4570,8 +4573,9 @@ public com.google.protobuf.Empty deleteRepository( * */ public com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse readRepositoryFile( - com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadRepositoryFileMethod(), getCallOptions(), request); } @@ -4585,8 +4589,9 @@ public com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse readReposito */ public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse queryRepositoryDirectoryContents( - com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryRepositoryDirectoryContentsMethod(), getCallOptions(), request); } @@ -4599,8 +4604,9 @@ public com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse readReposito * */ public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse fetchRepositoryHistory( - com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchRepositoryHistoryMethod(), getCallOptions(), request); } @@ -4613,8 +4619,9 @@ public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse fetchRep */ public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessTokenStatus( - com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeRepositoryAccessTokenStatusMethod(), getCallOptions(), request); } @@ -4626,8 +4633,9 @@ public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse fetchRep * */ public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse fetchRemoteBranches( - com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchRemoteBranchesMethod(), getCallOptions(), request); } @@ -4639,8 +4647,9 @@ public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse fetchRemote * */ public com.google.cloud.dataform.v1beta1.ListWorkspacesResponse listWorkspaces( - com.google.cloud.dataform.v1beta1.ListWorkspacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkspacesMethod(), getCallOptions(), request); } @@ -4652,8 +4661,9 @@ public com.google.cloud.dataform.v1beta1.ListWorkspacesResponse listWorkspaces( * */ public com.google.cloud.dataform.v1beta1.Workspace getWorkspace( - com.google.cloud.dataform.v1beta1.GetWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkspaceMethod(), getCallOptions(), request); } @@ -4665,8 +4675,9 @@ public com.google.cloud.dataform.v1beta1.Workspace getWorkspace( * */ public com.google.cloud.dataform.v1beta1.Workspace createWorkspace( - com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } @@ -4678,8 +4689,9 @@ public com.google.cloud.dataform.v1beta1.Workspace createWorkspace( * */ public com.google.protobuf.Empty deleteWorkspace( - com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkspaceMethod(), getCallOptions(), request); } @@ -4691,8 +4703,9 @@ public com.google.protobuf.Empty deleteWorkspace( * */ public com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse installNpmPackages( - com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInstallNpmPackagesMethod(), getCallOptions(), request); } @@ -4704,8 +4717,9 @@ public com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse installNpmPa * */ public com.google.cloud.dataform.v1beta1.PullGitCommitsResponse pullGitCommits( - com.google.cloud.dataform.v1beta1.PullGitCommitsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPullGitCommitsMethod(), getCallOptions(), request); } @@ -4717,8 +4731,9 @@ public com.google.cloud.dataform.v1beta1.PullGitCommitsResponse pullGitCommits( * */ public com.google.cloud.dataform.v1beta1.PushGitCommitsResponse pushGitCommits( - com.google.cloud.dataform.v1beta1.PushGitCommitsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPushGitCommitsMethod(), getCallOptions(), request); } @@ -4730,8 +4745,9 @@ public com.google.cloud.dataform.v1beta1.PushGitCommitsResponse pushGitCommits( * */ public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse fetchFileGitStatuses( - com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchFileGitStatusesMethod(), getCallOptions(), request); } @@ -4743,8 +4759,9 @@ public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse fetchFileG * */ public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse fetchGitAheadBehind( - com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchGitAheadBehindMethod(), getCallOptions(), request); } @@ -4756,8 +4773,9 @@ public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse fetchGitAhe * */ public com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesResponse commitWorkspaceChanges( - com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCommitWorkspaceChangesMethod(), getCallOptions(), request); } @@ -4769,8 +4787,9 @@ public com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesResponse commitWo * */ public com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse resetWorkspaceChanges( - com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetWorkspaceChangesMethod(), getCallOptions(), request); } @@ -4782,8 +4801,9 @@ public com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse resetWork * */ public com.google.cloud.dataform.v1beta1.FetchFileDiffResponse fetchFileDiff( - com.google.cloud.dataform.v1beta1.FetchFileDiffRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchFileDiffMethod(), getCallOptions(), request); } @@ -4795,8 +4815,9 @@ public com.google.cloud.dataform.v1beta1.FetchFileDiffResponse fetchFileDiff( * */ public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse queryDirectoryContents( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryDirectoryContentsMethod(), getCallOptions(), request); } @@ -4808,8 +4829,9 @@ public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse queryDir * */ public com.google.cloud.dataform.v1beta1.SearchFilesResponse searchFiles( - com.google.cloud.dataform.v1beta1.SearchFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.SearchFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchFilesMethod(), getCallOptions(), request); } @@ -4821,8 +4843,9 @@ public com.google.cloud.dataform.v1beta1.SearchFilesResponse searchFiles( * */ public com.google.cloud.dataform.v1beta1.MakeDirectoryResponse makeDirectory( - com.google.cloud.dataform.v1beta1.MakeDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMakeDirectoryMethod(), getCallOptions(), request); } @@ -4834,8 +4857,9 @@ public com.google.cloud.dataform.v1beta1.MakeDirectoryResponse makeDirectory( * */ public com.google.cloud.dataform.v1beta1.RemoveDirectoryResponse removeDirectory( - com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveDirectoryMethod(), getCallOptions(), request); } @@ -4848,8 +4872,9 @@ public com.google.cloud.dataform.v1beta1.RemoveDirectoryResponse removeDirectory * */ public com.google.cloud.dataform.v1beta1.MoveDirectoryResponse moveDirectory( - com.google.cloud.dataform.v1beta1.MoveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveDirectoryMethod(), getCallOptions(), request); } @@ -4861,8 +4886,8 @@ public com.google.cloud.dataform.v1beta1.MoveDirectoryResponse moveDirectory( * */ public com.google.cloud.dataform.v1beta1.ReadFileResponse readFile( - com.google.cloud.dataform.v1beta1.ReadFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ReadFileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReadFileMethod(), getCallOptions(), request); } @@ -4874,8 +4899,9 @@ public com.google.cloud.dataform.v1beta1.ReadFileResponse readFile( * */ public com.google.cloud.dataform.v1beta1.RemoveFileResponse removeFile( - com.google.cloud.dataform.v1beta1.RemoveFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.RemoveFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveFileMethod(), getCallOptions(), request); } @@ -4887,8 +4913,8 @@ public com.google.cloud.dataform.v1beta1.RemoveFileResponse removeFile( * */ public com.google.cloud.dataform.v1beta1.MoveFileResponse moveFile( - com.google.cloud.dataform.v1beta1.MoveFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.MoveFileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveFileMethod(), getCallOptions(), request); } @@ -4900,8 +4926,8 @@ public com.google.cloud.dataform.v1beta1.MoveFileResponse moveFile( * */ public com.google.cloud.dataform.v1beta1.WriteFileResponse writeFile( - com.google.cloud.dataform.v1beta1.WriteFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.WriteFileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteFileMethod(), getCallOptions(), request); } @@ -4913,8 +4939,9 @@ public com.google.cloud.dataform.v1beta1.WriteFileResponse writeFile( * */ public com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse listReleaseConfigs( - com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReleaseConfigsMethod(), getCallOptions(), request); } @@ -4926,8 +4953,9 @@ public com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse listReleaseC * */ public com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfig( - com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReleaseConfigMethod(), getCallOptions(), request); } @@ -4939,8 +4967,9 @@ public com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfig( * */ public com.google.cloud.dataform.v1beta1.ReleaseConfig createReleaseConfig( - com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReleaseConfigMethod(), getCallOptions(), request); } @@ -4956,8 +4985,9 @@ public com.google.cloud.dataform.v1beta1.ReleaseConfig createReleaseConfig( * */ public com.google.cloud.dataform.v1beta1.ReleaseConfig updateReleaseConfig( - com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReleaseConfigMethod(), getCallOptions(), request); } @@ -4969,8 +4999,9 @@ public com.google.cloud.dataform.v1beta1.ReleaseConfig updateReleaseConfig( * */ public com.google.protobuf.Empty deleteReleaseConfig( - com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReleaseConfigMethod(), getCallOptions(), request); } @@ -4982,8 +5013,9 @@ public com.google.protobuf.Empty deleteReleaseConfig( * */ public com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse listCompilationResults( - com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCompilationResultsMethod(), getCallOptions(), request); } @@ -4995,8 +5027,9 @@ public com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse listComp * */ public com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResult( - com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCompilationResultMethod(), getCallOptions(), request); } @@ -5008,8 +5041,9 @@ public com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResult( * */ public com.google.cloud.dataform.v1beta1.CompilationResult createCompilationResult( - com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); } @@ -5022,8 +5056,9 @@ public com.google.cloud.dataform.v1beta1.CompilationResult createCompilationResu */ public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse queryCompilationResultActions( - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); } @@ -5035,8 +5070,9 @@ public com.google.cloud.dataform.v1beta1.CompilationResult createCompilationResu * */ public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse listWorkflowConfigs( - com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkflowConfigsMethod(), getCallOptions(), request); } @@ -5048,8 +5084,9 @@ public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse listWorkflo * */ public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig( - com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkflowConfigMethod(), getCallOptions(), request); } @@ -5061,8 +5098,9 @@ public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig( * */ public com.google.cloud.dataform.v1beta1.WorkflowConfig createWorkflowConfig( - com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkflowConfigMethod(), getCallOptions(), request); } @@ -5078,8 +5116,9 @@ public com.google.cloud.dataform.v1beta1.WorkflowConfig createWorkflowConfig( * */ public com.google.cloud.dataform.v1beta1.WorkflowConfig updateWorkflowConfig( - com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkflowConfigMethod(), getCallOptions(), request); } @@ -5091,8 +5130,9 @@ public com.google.cloud.dataform.v1beta1.WorkflowConfig updateWorkflowConfig( * */ public com.google.protobuf.Empty deleteWorkflowConfig( - com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkflowConfigMethod(), getCallOptions(), request); } @@ -5105,8 +5145,9 @@ public com.google.protobuf.Empty deleteWorkflowConfig( */ public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse listWorkflowInvocations( - com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); } @@ -5118,8 +5159,9 @@ public com.google.protobuf.Empty deleteWorkflowConfig( * */ public com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocation( - com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkflowInvocationMethod(), getCallOptions(), request); } @@ -5131,8 +5173,9 @@ public com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocatio * */ public com.google.cloud.dataform.v1beta1.WorkflowInvocation createWorkflowInvocation( - com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkflowInvocationMethod(), getCallOptions(), request); } @@ -5144,8 +5187,9 @@ public com.google.cloud.dataform.v1beta1.WorkflowInvocation createWorkflowInvoca * */ public com.google.protobuf.Empty deleteWorkflowInvocation( - com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkflowInvocationMethod(), getCallOptions(), request); } @@ -5158,8 +5202,9 @@ public com.google.protobuf.Empty deleteWorkflowInvocation( */ public com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse cancelWorkflowInvocation( - com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); } @@ -5172,8 +5217,9 @@ public com.google.protobuf.Empty deleteWorkflowInvocation( */ public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse queryWorkflowInvocationActions( - com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); } @@ -5185,8 +5231,8 @@ public com.google.protobuf.Empty deleteWorkflowInvocation( * */ public com.google.cloud.dataform.v1beta1.Config getConfig( - com.google.cloud.dataform.v1beta1.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.GetConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConfigMethod(), getCallOptions(), request); } @@ -5202,8 +5248,9 @@ public com.google.cloud.dataform.v1beta1.Config getConfig( * */ public com.google.cloud.dataform.v1beta1.Config updateConfig( - com.google.cloud.dataform.v1beta1.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataform.v1beta1.UpdateConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConfigMethod(), getCallOptions(), request); } } diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index b120086716a4..00f3361ad1dc 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalabeling - 0.197.0 + 0.198.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.197.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.198.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.197.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.198.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.197.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.198.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java index 0b5f3534c705..1469d8eae199 100644 --- a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java +++ b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java @@ -24,9 +24,6 @@ * Service for the AI Platform Data Labeling API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataLabelingServiceGrpc { @@ -2874,8 +2871,9 @@ protected DataLabelingServiceBlockingV2Stub build( * */ public com.google.cloud.datalabeling.v1beta1.Dataset createDataset( - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } @@ -2887,8 +2885,9 @@ public com.google.cloud.datalabeling.v1beta1.Dataset createDataset( * */ public com.google.cloud.datalabeling.v1beta1.Dataset getDataset( - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } @@ -2900,8 +2899,9 @@ public com.google.cloud.datalabeling.v1beta1.Dataset getDataset( * */ public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse listDatasets( - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetsMethod(), getCallOptions(), request); } @@ -2913,8 +2913,9 @@ public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse listDatasets( * */ public com.google.protobuf.Empty deleteDataset( - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } @@ -2930,8 +2931,9 @@ public com.google.protobuf.Empty deleteDataset( * */ public com.google.longrunning.Operation importData( - com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } @@ -2943,8 +2945,9 @@ public com.google.longrunning.Operation importData( * */ public com.google.longrunning.Operation exportData( - com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } @@ -2957,8 +2960,9 @@ public com.google.longrunning.Operation exportData( * */ public com.google.cloud.datalabeling.v1beta1.DataItem getDataItem( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataItemMethod(), getCallOptions(), request); } @@ -2971,8 +2975,9 @@ public com.google.cloud.datalabeling.v1beta1.DataItem getDataItem( * */ public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse listDataItems( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataItemsMethod(), getCallOptions(), request); } @@ -2984,8 +2989,9 @@ public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse listDataItems * */ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnnotatedDatasetMethod(), getCallOptions(), request); } @@ -2998,8 +3004,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatase */ public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse listAnnotatedDatasets( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnnotatedDatasetsMethod(), getCallOptions(), request); } @@ -3011,8 +3018,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatase * */ public com.google.protobuf.Empty deleteAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAnnotatedDatasetMethod(), getCallOptions(), request); } @@ -3025,8 +3033,9 @@ public com.google.protobuf.Empty deleteAnnotatedDataset( * */ public com.google.longrunning.Operation labelImage( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLabelImageMethod(), getCallOptions(), request); } @@ -3039,8 +3048,9 @@ public com.google.longrunning.Operation labelImage( * */ public com.google.longrunning.Operation labelVideo( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLabelVideoMethod(), getCallOptions(), request); } @@ -3053,8 +3063,9 @@ public com.google.longrunning.Operation labelVideo( * */ public com.google.longrunning.Operation labelText( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLabelTextMethod(), getCallOptions(), request); } @@ -3066,8 +3077,9 @@ public com.google.longrunning.Operation labelText( * */ public com.google.cloud.datalabeling.v1beta1.Example getExample( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExampleMethod(), getCallOptions(), request); } @@ -3079,8 +3091,9 @@ public com.google.cloud.datalabeling.v1beta1.Example getExample( * */ public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse listExamples( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExamplesMethod(), getCallOptions(), request); } @@ -3092,8 +3105,9 @@ public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse listExamples( * */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet createAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAnnotationSpecSetMethod(), getCallOptions(), request); } @@ -3105,8 +3119,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet createAnnotationS * */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnnotationSpecSetMethod(), getCallOptions(), request); } @@ -3119,8 +3134,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpec */ public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse listAnnotationSpecSets( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnnotationSpecSetsMethod(), getCallOptions(), request); } @@ -3132,8 +3148,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpec * */ public com.google.protobuf.Empty deleteAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAnnotationSpecSetMethod(), getCallOptions(), request); } @@ -3145,8 +3162,9 @@ public com.google.protobuf.Empty deleteAnnotationSpecSet( * */ public com.google.longrunning.Operation createInstruction( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstructionMethod(), getCallOptions(), request); } @@ -3158,8 +3176,9 @@ public com.google.longrunning.Operation createInstruction( * */ public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstructionMethod(), getCallOptions(), request); } @@ -3171,8 +3190,9 @@ public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction( * */ public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse listInstructions( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstructionsMethod(), getCallOptions(), request); } @@ -3184,8 +3204,9 @@ public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse listInstru * */ public com.google.protobuf.Empty deleteInstruction( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstructionMethod(), getCallOptions(), request); } @@ -3198,8 +3219,9 @@ public com.google.protobuf.Empty deleteInstruction( * */ public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluation( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEvaluationMethod(), getCallOptions(), request); } @@ -3211,8 +3233,9 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluation( * */ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse searchEvaluations( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchEvaluationsMethod(), getCallOptions(), request); } @@ -3227,8 +3250,9 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse searchEva */ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse searchExampleComparisons( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchExampleComparisonsMethod(), getCallOptions(), request); } @@ -3240,8 +3264,9 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse searchEva * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob createEvaluationJob( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEvaluationJobMethod(), getCallOptions(), request); } @@ -3257,8 +3282,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob createEvaluationJob( * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob updateEvaluationJob( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEvaluationJobMethod(), getCallOptions(), request); } @@ -3270,8 +3296,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob updateEvaluationJob( * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEvaluationJobMethod(), getCallOptions(), request); } @@ -3284,8 +3311,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob( * */ public com.google.protobuf.Empty pauseEvaluationJob( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseEvaluationJobMethod(), getCallOptions(), request); } @@ -3298,8 +3326,9 @@ public com.google.protobuf.Empty pauseEvaluationJob( * */ public com.google.protobuf.Empty resumeEvaluationJob( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeEvaluationJobMethod(), getCallOptions(), request); } @@ -3311,8 +3340,9 @@ public com.google.protobuf.Empty resumeEvaluationJob( * */ public com.google.protobuf.Empty deleteEvaluationJob( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEvaluationJobMethod(), getCallOptions(), request); } @@ -3325,8 +3355,9 @@ public com.google.protobuf.Empty deleteEvaluationJob( * */ public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse listEvaluationJobs( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEvaluationJobsMethod(), getCallOptions(), request); } } diff --git a/java-datalineage/README.md b/java-datalineage/README.md index 34adbbd863b4..7f2f998bbfc1 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.69.0 + 0.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.69.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.70.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.70.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalineage/grpc-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageGrpc.java b/java-datalineage/grpc-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageGrpc.java index a8bf472faba0..acda8b1044df 100644 --- a/java-datalineage/grpc-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageGrpc.java +++ b/java-datalineage/grpc-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageGrpc.java @@ -27,9 +27,6 @@ * example, when table data is based on data from multiple tables. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/lineage/v1/lineage.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LineageGrpc { @@ -1530,8 +1527,9 @@ protected LineageBlockingV2Stub build( */ public com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse processOpenLineageRunEvent( - com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProcessOpenLineageRunEventMethod(), getCallOptions(), request); } @@ -1543,8 +1541,9 @@ protected LineageBlockingV2Stub build( * */ public com.google.cloud.datacatalog.lineage.v1.Process createProcess( - com.google.cloud.datacatalog.lineage.v1.CreateProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.CreateProcessRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProcessMethod(), getCallOptions(), request); } @@ -1556,8 +1555,9 @@ public com.google.cloud.datacatalog.lineage.v1.Process createProcess( * */ public com.google.cloud.datacatalog.lineage.v1.Process updateProcess( - com.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProcessMethod(), getCallOptions(), request); } @@ -1569,8 +1569,9 @@ public com.google.cloud.datacatalog.lineage.v1.Process updateProcess( * */ public com.google.cloud.datacatalog.lineage.v1.Process getProcess( - com.google.cloud.datacatalog.lineage.v1.GetProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.GetProcessRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessMethod(), getCallOptions(), request); } @@ -1583,8 +1584,9 @@ public com.google.cloud.datacatalog.lineage.v1.Process getProcess( * */ public com.google.cloud.datacatalog.lineage.v1.ListProcessesResponse listProcesses( - com.google.cloud.datacatalog.lineage.v1.ListProcessesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.ListProcessesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProcessesMethod(), getCallOptions(), request); } @@ -1596,8 +1598,9 @@ public com.google.cloud.datacatalog.lineage.v1.ListProcessesResponse listProcess * */ public com.google.longrunning.Operation deleteProcess( - com.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProcessMethod(), getCallOptions(), request); } @@ -1609,8 +1612,9 @@ public com.google.longrunning.Operation deleteProcess( * */ public com.google.cloud.datacatalog.lineage.v1.Run createRun( - com.google.cloud.datacatalog.lineage.v1.CreateRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.CreateRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRunMethod(), getCallOptions(), request); } @@ -1622,8 +1626,9 @@ public com.google.cloud.datacatalog.lineage.v1.Run createRun( * */ public com.google.cloud.datacatalog.lineage.v1.Run updateRun( - com.google.cloud.datacatalog.lineage.v1.UpdateRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.UpdateRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRunMethod(), getCallOptions(), request); } @@ -1635,8 +1640,9 @@ public com.google.cloud.datacatalog.lineage.v1.Run updateRun( * */ public com.google.cloud.datacatalog.lineage.v1.Run getRun( - com.google.cloud.datacatalog.lineage.v1.GetRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.GetRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRunMethod(), getCallOptions(), request); } @@ -1649,8 +1655,9 @@ public com.google.cloud.datacatalog.lineage.v1.Run getRun( * */ public com.google.cloud.datacatalog.lineage.v1.ListRunsResponse listRuns( - com.google.cloud.datacatalog.lineage.v1.ListRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.ListRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRunsMethod(), getCallOptions(), request); } @@ -1662,8 +1669,9 @@ public com.google.cloud.datacatalog.lineage.v1.ListRunsResponse listRuns( * */ public com.google.longrunning.Operation deleteRun( - com.google.cloud.datacatalog.lineage.v1.DeleteRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.DeleteRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRunMethod(), getCallOptions(), request); } @@ -1675,8 +1683,9 @@ public com.google.longrunning.Operation deleteRun( * */ public com.google.cloud.datacatalog.lineage.v1.LineageEvent createLineageEvent( - com.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateLineageEventMethod(), getCallOptions(), request); } @@ -1688,8 +1697,9 @@ public com.google.cloud.datacatalog.lineage.v1.LineageEvent createLineageEvent( * */ public com.google.cloud.datacatalog.lineage.v1.LineageEvent getLineageEvent( - com.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLineageEventMethod(), getCallOptions(), request); } @@ -1702,8 +1712,9 @@ public com.google.cloud.datacatalog.lineage.v1.LineageEvent getLineageEvent( * */ public com.google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse listLineageEvents( - com.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLineageEventsMethod(), getCallOptions(), request); } @@ -1715,8 +1726,9 @@ public com.google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse listLin * */ public com.google.protobuf.Empty deleteLineageEvent( - com.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLineageEventMethod(), getCallOptions(), request); } @@ -1735,8 +1747,9 @@ public com.google.protobuf.Empty deleteLineageEvent( * */ public com.google.cloud.datacatalog.lineage.v1.SearchLinksResponse searchLinks( - com.google.cloud.datacatalog.lineage.v1.SearchLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.SearchLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchLinksMethod(), getCallOptions(), request); } @@ -1760,8 +1773,9 @@ public com.google.cloud.datacatalog.lineage.v1.SearchLinksResponse searchLinks( */ public com.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse batchSearchLinkProcesses( - com.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchSearchLinkProcessesMethod(), getCallOptions(), request); } } diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 7f1a64948835..afe14df00483 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.75.0 + 1.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.75.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java index 08a21edf3906..8e31c8e5e31a 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java @@ -427,7 +427,7 @@ * * *

                                    ListEntries - *

                                    Lists Entries within an EntryGroup. + *

                                    Lists Entries within an EntryGroup. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc Metastore metadata that is stored in Dataplex Universal Catalog is changing. For more information, see [Changes to metadata stored in Dataplex Universal Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

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

                                    *
                                      @@ -447,7 +447,7 @@ * * *

                                      GetEntry - *

                                      Gets an Entry. + *

                                      Gets an Entry. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc Metastore metadata that is stored in Dataplex Universal Catalog is changing. For more information, see [Changes to metadata stored in Dataplex Universal Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

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

                                      *
                                        @@ -466,7 +466,7 @@ * * *

                                        LookupEntry - *

                                        Looks up an entry by name using the permission on the source system. + *

                                        Looks up an entry by name using the permission on the source system. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc Metastore metadata that is stored in Dataplex Universal Catalog is changing. For more information, see [Changes to metadata stored in Dataplex Universal Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

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

                                        *
                                          @@ -3339,7 +3339,10 @@ public final UnaryCallable deleteEntryCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Entries within an EntryGroup. + * Lists Entries within an EntryGroup. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, + * Dataform, and Dataproc Metastore metadata that is stored in Dataplex Universal Catalog is + * changing. For more information, see [Changes to metadata stored in Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3371,7 +3374,10 @@ public final ListEntriesPagedResponse listEntries(EntryGroupName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Entries within an EntryGroup. + * Lists Entries within an EntryGroup. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, + * Dataform, and Dataproc Metastore metadata that is stored in Dataplex Universal Catalog is + * changing. For more information, see [Changes to metadata stored in Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3400,7 +3406,10 @@ public final ListEntriesPagedResponse listEntries(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Entries within an EntryGroup. + * Lists Entries within an EntryGroup. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, + * Dataform, and Dataproc Metastore metadata that is stored in Dataplex Universal Catalog is + * changing. For more information, see [Changes to metadata stored in Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3433,7 +3442,10 @@ public final ListEntriesPagedResponse listEntries(ListEntriesRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Entries within an EntryGroup. + * Lists Entries within an EntryGroup. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, + * Dataform, and Dataproc Metastore metadata that is stored in Dataplex Universal Catalog is + * changing. For more information, see [Changes to metadata stored in Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3466,7 +3478,10 @@ public final ListEntriesPagedResponse listEntries(ListEntriesRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Entries within an EntryGroup. + * Lists Entries within an EntryGroup. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, + * Dataform, and Dataproc Metastore metadata that is stored in Dataplex Universal Catalog is + * changing. For more information, see [Changes to metadata stored in Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3505,7 +3520,10 @@ public final UnaryCallable listEntriesC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an Entry. + * Gets an Entry. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc + * Metastore metadata that is stored in Dataplex Universal Catalog is changing. For more + * information, see [Changes to metadata stored in Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3533,7 +3551,10 @@ public final Entry getEntry(EntryName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an Entry. + * Gets an Entry. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc + * Metastore metadata that is stored in Dataplex Universal Catalog is changing. For more + * information, see [Changes to metadata stored in Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3560,7 +3581,10 @@ public final Entry getEntry(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an Entry. + * Gets an Entry. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc + * Metastore metadata that is stored in Dataplex Universal Catalog is changing. For more + * information, see [Changes to metadata stored in Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3592,7 +3616,10 @@ public final Entry getEntry(GetEntryRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an Entry. + * Gets an Entry. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc + * Metastore metadata that is stored in Dataplex Universal Catalog is changing. For more + * information, see [Changes to metadata stored in Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3623,7 +3650,10 @@ public final UnaryCallable getEntryCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up an entry by name using the permission on the source system. + * Looks up an entry by name using the permission on the source system. Caution: The Vertex AI, + * Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc Metastore metadata that is stored in + * Dataplex Universal Catalog is changing. For more information, see [Changes to metadata stored + * in Dataplex Universal Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * @@ -3656,7 +3686,10 @@ public final Entry lookupEntry(LookupEntryRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up an entry by name using the permission on the source system. + * Looks up an entry by name using the permission on the source system. Caution: The Vertex AI, + * Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc Metastore metadata that is stored in + * Dataplex Universal Catalog is changing. For more information, see [Changes to metadata stored + * in Dataplex Universal Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). * *

                                          Sample code: * diff --git a/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json index c8e6789bc188..efc74f8d196a 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json +++ b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json @@ -719,6 +719,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataplex.v1.AspectType$DataClassification", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataplex.v1.AspectType$MetadataTemplate", "queryAllDeclaredConstructors": true, @@ -1772,6 +1781,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$Field", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$Field$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$Query", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$Query$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$Schema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$Schema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$TableResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationResult$TableResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataDocumentationSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataplex.v1.DataProfileResult", "queryAllDeclaredConstructors": true, @@ -2096,6 +2213,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataplex.v1.DataQualityResult$AnomalyDetectionGeneratedAssets", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataplex.v1.DataQualityResult$AnomalyDetectionGeneratedAssets$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataplex.v1.DataQualityResult$Builder", "queryAllDeclaredConstructors": true, diff --git a/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/CmekServiceClientHttpJsonTest.java b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/CmekServiceClientHttpJsonTest.java index 9baeef0ab3d1..9e58b2c7e9fa 100644 --- a/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/CmekServiceClientHttpJsonTest.java +++ b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/CmekServiceClientHttpJsonTest.java @@ -99,6 +99,7 @@ public void createEncryptionConfigTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -160,6 +161,7 @@ public void createEncryptionConfigTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -221,6 +223,7 @@ public void updateEncryptionConfigTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -240,6 +243,7 @@ public void updateEncryptionConfigTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -280,6 +284,7 @@ public void updateEncryptionConfigExceptionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateEncryptionConfigAsync(encryptionConfig, updateMask).get(); @@ -494,6 +499,7 @@ public void getEncryptionConfigTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); mockService.addResponse(expectedResponse); @@ -547,6 +553,7 @@ public void getEncryptionConfigTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); mockService.addResponse(expectedResponse); diff --git a/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/CmekServiceClientTest.java b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/CmekServiceClientTest.java index c5ea22ef3f5e..a9438460f57d 100644 --- a/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/CmekServiceClientTest.java +++ b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/CmekServiceClientTest.java @@ -108,6 +108,7 @@ public void createEncryptionConfigTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -169,6 +170,7 @@ public void createEncryptionConfigTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -230,6 +232,7 @@ public void updateEncryptionConfigTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -466,6 +469,7 @@ public void getEncryptionConfigTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); mockCmekService.addResponse(expectedResponse); @@ -513,6 +517,7 @@ public void getEncryptionConfigTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setFailureDetails(EncryptionConfig.FailureDetails.newBuilder().build()) + .setEnableMetastoreEncryption(true) .build(); mockCmekService.addResponse(expectedResponse); diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceGrpc.java index 716b62455495..1dad78b31b1e 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceGrpc.java @@ -29,9 +29,6 @@ * 3. GlossaryTerm * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataplex/v1/business_glossary.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BusinessGlossaryServiceGrpc { @@ -1373,8 +1370,8 @@ protected BusinessGlossaryServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createGlossary( - com.google.cloud.dataplex.v1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateGlossaryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); } @@ -1386,8 +1383,8 @@ public com.google.longrunning.Operation createGlossary( * */ public com.google.longrunning.Operation updateGlossary( - com.google.cloud.dataplex.v1.UpdateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateGlossaryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGlossaryMethod(), getCallOptions(), request); } @@ -1400,8 +1397,8 @@ public com.google.longrunning.Operation updateGlossary( * */ public com.google.longrunning.Operation deleteGlossary( - com.google.cloud.dataplex.v1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteGlossaryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); } @@ -1413,8 +1410,8 @@ public com.google.longrunning.Operation deleteGlossary( * */ public com.google.cloud.dataplex.v1.Glossary getGlossary( - com.google.cloud.dataplex.v1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetGlossaryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGlossaryMethod(), getCallOptions(), request); } @@ -1426,8 +1423,8 @@ public com.google.cloud.dataplex.v1.Glossary getGlossary( * */ public com.google.cloud.dataplex.v1.ListGlossariesResponse listGlossaries( - com.google.cloud.dataplex.v1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListGlossariesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGlossariesMethod(), getCallOptions(), request); } @@ -1439,8 +1436,9 @@ public com.google.cloud.dataplex.v1.ListGlossariesResponse listGlossaries( * */ public com.google.cloud.dataplex.v1.GlossaryCategory createGlossaryCategory( - com.google.cloud.dataplex.v1.CreateGlossaryCategoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateGlossaryCategoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGlossaryCategoryMethod(), getCallOptions(), request); } @@ -1452,8 +1450,9 @@ public com.google.cloud.dataplex.v1.GlossaryCategory createGlossaryCategory( * */ public com.google.cloud.dataplex.v1.GlossaryCategory updateGlossaryCategory( - com.google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGlossaryCategoryMethod(), getCallOptions(), request); } @@ -1467,8 +1466,9 @@ public com.google.cloud.dataplex.v1.GlossaryCategory updateGlossaryCategory( * */ public com.google.protobuf.Empty deleteGlossaryCategory( - com.google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGlossaryCategoryMethod(), getCallOptions(), request); } @@ -1480,8 +1480,9 @@ public com.google.protobuf.Empty deleteGlossaryCategory( * */ public com.google.cloud.dataplex.v1.GlossaryCategory getGlossaryCategory( - com.google.cloud.dataplex.v1.GetGlossaryCategoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetGlossaryCategoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGlossaryCategoryMethod(), getCallOptions(), request); } @@ -1493,8 +1494,9 @@ public com.google.cloud.dataplex.v1.GlossaryCategory getGlossaryCategory( * */ public com.google.cloud.dataplex.v1.ListGlossaryCategoriesResponse listGlossaryCategories( - com.google.cloud.dataplex.v1.ListGlossaryCategoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListGlossaryCategoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGlossaryCategoriesMethod(), getCallOptions(), request); } @@ -1506,8 +1508,9 @@ public com.google.cloud.dataplex.v1.ListGlossaryCategoriesResponse listGlossaryC * */ public com.google.cloud.dataplex.v1.GlossaryTerm createGlossaryTerm( - com.google.cloud.dataplex.v1.CreateGlossaryTermRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateGlossaryTermRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGlossaryTermMethod(), getCallOptions(), request); } @@ -1519,8 +1522,9 @@ public com.google.cloud.dataplex.v1.GlossaryTerm createGlossaryTerm( * */ public com.google.cloud.dataplex.v1.GlossaryTerm updateGlossaryTerm( - com.google.cloud.dataplex.v1.UpdateGlossaryTermRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateGlossaryTermRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGlossaryTermMethod(), getCallOptions(), request); } @@ -1532,8 +1536,9 @@ public com.google.cloud.dataplex.v1.GlossaryTerm updateGlossaryTerm( * */ public com.google.protobuf.Empty deleteGlossaryTerm( - com.google.cloud.dataplex.v1.DeleteGlossaryTermRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteGlossaryTermRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGlossaryTermMethod(), getCallOptions(), request); } @@ -1545,8 +1550,9 @@ public com.google.protobuf.Empty deleteGlossaryTerm( * */ public com.google.cloud.dataplex.v1.GlossaryTerm getGlossaryTerm( - com.google.cloud.dataplex.v1.GetGlossaryTermRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetGlossaryTermRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGlossaryTermMethod(), getCallOptions(), request); } @@ -1558,8 +1564,9 @@ public com.google.cloud.dataplex.v1.GlossaryTerm getGlossaryTerm( * */ public com.google.cloud.dataplex.v1.ListGlossaryTermsResponse listGlossaryTerms( - com.google.cloud.dataplex.v1.ListGlossaryTermsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListGlossaryTermsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGlossaryTermsMethod(), getCallOptions(), request); } } diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceGrpc.java index 9fa0b43196bd..b6234dce4b4f 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceGrpc.java @@ -28,9 +28,6 @@ * including Cloud Storage and BigQuery. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataplex/v1/catalog.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CatalogServiceGrpc { @@ -1647,6 +1644,11 @@ default void deleteEntry( * *

                                                * Lists Entries within an EntryGroup.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ default void listEntries( @@ -1662,6 +1664,11 @@ default void listEntries( * *
                                                * Gets an Entry.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ default void getEntry( @@ -1675,6 +1682,11 @@ default void getEntry( * *
                                                * Looks up an entry by name using the permission on the source system.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ default void lookupEntry( @@ -2142,6 +2154,11 @@ public void deleteEntry( * *
                                                * Lists Entries within an EntryGroup.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public void listEntries( @@ -2159,6 +2176,11 @@ public void listEntries( * *
                                                * Gets an Entry.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public void getEntry( @@ -2173,6 +2195,11 @@ public void getEntry( * *
                                                * Looks up an entry by name using the permission on the source system.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public void lookupEntry( @@ -2351,8 +2378,9 @@ protected CatalogServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createEntryType( - com.google.cloud.dataplex.v1.CreateEntryTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateEntryTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntryTypeMethod(), getCallOptions(), request); } @@ -2364,8 +2392,9 @@ public com.google.longrunning.Operation createEntryType( * */ public com.google.longrunning.Operation updateEntryType( - com.google.cloud.dataplex.v1.UpdateEntryTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateEntryTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntryTypeMethod(), getCallOptions(), request); } @@ -2377,8 +2406,9 @@ public com.google.longrunning.Operation updateEntryType( * */ public com.google.longrunning.Operation deleteEntryType( - com.google.cloud.dataplex.v1.DeleteEntryTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteEntryTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntryTypeMethod(), getCallOptions(), request); } @@ -2390,8 +2420,8 @@ public com.google.longrunning.Operation deleteEntryType( * */ public com.google.cloud.dataplex.v1.ListEntryTypesResponse listEntryTypes( - com.google.cloud.dataplex.v1.ListEntryTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListEntryTypesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntryTypesMethod(), getCallOptions(), request); } @@ -2403,8 +2433,8 @@ public com.google.cloud.dataplex.v1.ListEntryTypesResponse listEntryTypes( * */ public com.google.cloud.dataplex.v1.EntryType getEntryType( - com.google.cloud.dataplex.v1.GetEntryTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetEntryTypeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntryTypeMethod(), getCallOptions(), request); } @@ -2416,8 +2446,9 @@ public com.google.cloud.dataplex.v1.EntryType getEntryType( * */ public com.google.longrunning.Operation createAspectType( - com.google.cloud.dataplex.v1.CreateAspectTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateAspectTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAspectTypeMethod(), getCallOptions(), request); } @@ -2429,8 +2460,9 @@ public com.google.longrunning.Operation createAspectType( * */ public com.google.longrunning.Operation updateAspectType( - com.google.cloud.dataplex.v1.UpdateAspectTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateAspectTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAspectTypeMethod(), getCallOptions(), request); } @@ -2442,8 +2474,9 @@ public com.google.longrunning.Operation updateAspectType( * */ public com.google.longrunning.Operation deleteAspectType( - com.google.cloud.dataplex.v1.DeleteAspectTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteAspectTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAspectTypeMethod(), getCallOptions(), request); } @@ -2455,8 +2488,9 @@ public com.google.longrunning.Operation deleteAspectType( * */ public com.google.cloud.dataplex.v1.ListAspectTypesResponse listAspectTypes( - com.google.cloud.dataplex.v1.ListAspectTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListAspectTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAspectTypesMethod(), getCallOptions(), request); } @@ -2468,8 +2502,8 @@ public com.google.cloud.dataplex.v1.ListAspectTypesResponse listAspectTypes( * */ public com.google.cloud.dataplex.v1.AspectType getAspectType( - com.google.cloud.dataplex.v1.GetAspectTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetAspectTypeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAspectTypeMethod(), getCallOptions(), request); } @@ -2481,8 +2515,9 @@ public com.google.cloud.dataplex.v1.AspectType getAspectType( * */ public com.google.longrunning.Operation createEntryGroup( - com.google.cloud.dataplex.v1.CreateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntryGroupMethod(), getCallOptions(), request); } @@ -2494,8 +2529,9 @@ public com.google.longrunning.Operation createEntryGroup( * */ public com.google.longrunning.Operation updateEntryGroup( - com.google.cloud.dataplex.v1.UpdateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntryGroupMethod(), getCallOptions(), request); } @@ -2507,8 +2543,9 @@ public com.google.longrunning.Operation updateEntryGroup( * */ public com.google.longrunning.Operation deleteEntryGroup( - com.google.cloud.dataplex.v1.DeleteEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteEntryGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntryGroupMethod(), getCallOptions(), request); } @@ -2520,8 +2557,9 @@ public com.google.longrunning.Operation deleteEntryGroup( * */ public com.google.cloud.dataplex.v1.ListEntryGroupsResponse listEntryGroups( - com.google.cloud.dataplex.v1.ListEntryGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListEntryGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntryGroupsMethod(), getCallOptions(), request); } @@ -2533,8 +2571,8 @@ public com.google.cloud.dataplex.v1.ListEntryGroupsResponse listEntryGroups( * */ public com.google.cloud.dataplex.v1.EntryGroup getEntryGroup( - com.google.cloud.dataplex.v1.GetEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetEntryGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntryGroupMethod(), getCallOptions(), request); } @@ -2546,8 +2584,8 @@ public com.google.cloud.dataplex.v1.EntryGroup getEntryGroup( * */ public com.google.cloud.dataplex.v1.Entry createEntry( - com.google.cloud.dataplex.v1.CreateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntryMethod(), getCallOptions(), request); } @@ -2559,8 +2597,8 @@ public com.google.cloud.dataplex.v1.Entry createEntry( * */ public com.google.cloud.dataplex.v1.Entry updateEntry( - com.google.cloud.dataplex.v1.UpdateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntryMethod(), getCallOptions(), request); } @@ -2572,8 +2610,8 @@ public com.google.cloud.dataplex.v1.Entry updateEntry( * */ public com.google.cloud.dataplex.v1.Entry deleteEntry( - com.google.cloud.dataplex.v1.DeleteEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntryMethod(), getCallOptions(), request); } @@ -2582,11 +2620,16 @@ public com.google.cloud.dataplex.v1.Entry deleteEntry( * *
                                                * Lists Entries within an EntryGroup.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public com.google.cloud.dataplex.v1.ListEntriesResponse listEntries( - com.google.cloud.dataplex.v1.ListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListEntriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntriesMethod(), getCallOptions(), request); } @@ -2595,11 +2638,16 @@ public com.google.cloud.dataplex.v1.ListEntriesResponse listEntries( * *
                                                * Gets an Entry.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public com.google.cloud.dataplex.v1.Entry getEntry( - com.google.cloud.dataplex.v1.GetEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntryMethod(), getCallOptions(), request); } @@ -2608,11 +2656,16 @@ public com.google.cloud.dataplex.v1.Entry getEntry( * *
                                                * Looks up an entry by name using the permission on the source system.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public com.google.cloud.dataplex.v1.Entry lookupEntry( - com.google.cloud.dataplex.v1.LookupEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.LookupEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupEntryMethod(), getCallOptions(), request); } @@ -2624,8 +2677,8 @@ public com.google.cloud.dataplex.v1.Entry lookupEntry( * */ public com.google.cloud.dataplex.v1.SearchEntriesResponse searchEntries( - com.google.cloud.dataplex.v1.SearchEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.SearchEntriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchEntriesMethod(), getCallOptions(), request); } @@ -2638,8 +2691,9 @@ public com.google.cloud.dataplex.v1.SearchEntriesResponse searchEntries( * */ public com.google.longrunning.Operation createMetadataJob( - com.google.cloud.dataplex.v1.CreateMetadataJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateMetadataJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMetadataJobMethod(), getCallOptions(), request); } @@ -2651,8 +2705,8 @@ public com.google.longrunning.Operation createMetadataJob( * */ public com.google.cloud.dataplex.v1.MetadataJob getMetadataJob( - com.google.cloud.dataplex.v1.GetMetadataJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetMetadataJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetadataJobMethod(), getCallOptions(), request); } @@ -2664,8 +2718,9 @@ public com.google.cloud.dataplex.v1.MetadataJob getMetadataJob( * */ public com.google.cloud.dataplex.v1.ListMetadataJobsResponse listMetadataJobs( - com.google.cloud.dataplex.v1.ListMetadataJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListMetadataJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetadataJobsMethod(), getCallOptions(), request); } @@ -2681,8 +2736,9 @@ public com.google.cloud.dataplex.v1.ListMetadataJobsResponse listMetadataJobs( * */ public com.google.protobuf.Empty cancelMetadataJob( - com.google.cloud.dataplex.v1.CancelMetadataJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CancelMetadataJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelMetadataJobMethod(), getCallOptions(), request); } @@ -2694,8 +2750,9 @@ public com.google.protobuf.Empty cancelMetadataJob( * */ public com.google.cloud.dataplex.v1.EntryLink createEntryLink( - com.google.cloud.dataplex.v1.CreateEntryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateEntryLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntryLinkMethod(), getCallOptions(), request); } @@ -2707,8 +2764,9 @@ public com.google.cloud.dataplex.v1.EntryLink createEntryLink( * */ public com.google.cloud.dataplex.v1.EntryLink deleteEntryLink( - com.google.cloud.dataplex.v1.DeleteEntryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteEntryLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntryLinkMethod(), getCallOptions(), request); } @@ -2720,8 +2778,8 @@ public com.google.cloud.dataplex.v1.EntryLink deleteEntryLink( * */ public com.google.cloud.dataplex.v1.EntryLink getEntryLink( - com.google.cloud.dataplex.v1.GetEntryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetEntryLinkRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntryLinkMethod(), getCallOptions(), request); } } @@ -2988,6 +3046,11 @@ public com.google.cloud.dataplex.v1.Entry deleteEntry( * *
                                                * Lists Entries within an EntryGroup.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public com.google.cloud.dataplex.v1.ListEntriesResponse listEntries( @@ -3001,6 +3064,11 @@ public com.google.cloud.dataplex.v1.ListEntriesResponse listEntries( * *
                                                * Gets an Entry.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public com.google.cloud.dataplex.v1.Entry getEntry( @@ -3014,6 +3082,11 @@ public com.google.cloud.dataplex.v1.Entry getEntry( * *
                                                * Looks up an entry by name using the permission on the source system.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public com.google.cloud.dataplex.v1.Entry lookupEntry( @@ -3400,6 +3473,11 @@ protected CatalogServiceFutureStub build( * *
                                                * Lists Entries within an EntryGroup.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public com.google.common.util.concurrent.ListenableFuture< @@ -3414,6 +3492,11 @@ protected CatalogServiceFutureStub build( * *
                                                * Gets an Entry.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public com.google.common.util.concurrent.ListenableFuture @@ -3427,6 +3510,11 @@ protected CatalogServiceFutureStub build( * *
                                                * Looks up an entry by name using the permission on the source system.
                                          +     * Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc
                                          +     * Metastore metadata that is stored in Dataplex Universal Catalog is
                                          +     * changing. For more information, see [Changes to metadata stored in
                                          +     * Dataplex Universal
                                          +     * Catalog](https://cloud.google.com/dataplex/docs/metadata-changes).
                                                * 
                                          */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CmekServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CmekServiceGrpc.java index 920c345c471b..396c4b4482f1 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CmekServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CmekServiceGrpc.java @@ -24,9 +24,6 @@ * Dataplex Universal Catalog Customer Managed Encryption Keys (CMEK) Service * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataplex/v1/cmek.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CmekServiceGrpc { @@ -557,8 +554,9 @@ protected CmekServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createEncryptionConfig( - com.google.cloud.dataplex.v1.CreateEncryptionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateEncryptionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEncryptionConfigMethod(), getCallOptions(), request); } @@ -570,8 +568,9 @@ public com.google.longrunning.Operation createEncryptionConfig( * */ public com.google.longrunning.Operation updateEncryptionConfig( - com.google.cloud.dataplex.v1.UpdateEncryptionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateEncryptionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEncryptionConfigMethod(), getCallOptions(), request); } @@ -583,8 +582,9 @@ public com.google.longrunning.Operation updateEncryptionConfig( * */ public com.google.longrunning.Operation deleteEncryptionConfig( - com.google.cloud.dataplex.v1.DeleteEncryptionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteEncryptionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEncryptionConfigMethod(), getCallOptions(), request); } @@ -596,8 +596,9 @@ public com.google.longrunning.Operation deleteEncryptionConfig( * */ public com.google.cloud.dataplex.v1.ListEncryptionConfigsResponse listEncryptionConfigs( - com.google.cloud.dataplex.v1.ListEncryptionConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListEncryptionConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEncryptionConfigsMethod(), getCallOptions(), request); } @@ -609,8 +610,9 @@ public com.google.cloud.dataplex.v1.ListEncryptionConfigsResponse listEncryption * */ public com.google.cloud.dataplex.v1.EncryptionConfig getEncryptionConfig( - com.google.cloud.dataplex.v1.GetEncryptionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetEncryptionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEncryptionConfigMethod(), getCallOptions(), request); } } diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentServiceGrpc.java index 713a7e249a76..061a5d42adbe 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentServiceGrpc.java @@ -25,9 +25,6 @@ * Catalog. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataplex/v1/content.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ContentServiceGrpc { @@ -773,8 +770,8 @@ protected ContentServiceBlockingV2Stub build( * */ public com.google.cloud.dataplex.v1.Content createContent( - com.google.cloud.dataplex.v1.CreateContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateContentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateContentMethod(), getCallOptions(), request); } @@ -786,8 +783,8 @@ public com.google.cloud.dataplex.v1.Content createContent( * */ public com.google.cloud.dataplex.v1.Content updateContent( - com.google.cloud.dataplex.v1.UpdateContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateContentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateContentMethod(), getCallOptions(), request); } @@ -799,8 +796,8 @@ public com.google.cloud.dataplex.v1.Content updateContent( * */ public com.google.protobuf.Empty deleteContent( - com.google.cloud.dataplex.v1.DeleteContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteContentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteContentMethod(), getCallOptions(), request); } @@ -812,8 +809,8 @@ public com.google.protobuf.Empty deleteContent( * */ public com.google.cloud.dataplex.v1.Content getContent( - com.google.cloud.dataplex.v1.GetContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetContentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetContentMethod(), getCallOptions(), request); } @@ -828,8 +825,9 @@ public com.google.cloud.dataplex.v1.Content getContent( * on the resource. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -843,8 +841,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * on the resource. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -863,8 +862,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -876,8 +875,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.dataplex.v1.ListContentResponse listContent( - com.google.cloud.dataplex.v1.ListContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListContentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListContentMethod(), getCallOptions(), request); } } diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java index e8748508fd18..6faa60016af9 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java @@ -26,9 +26,6 @@ * Data Profile, Data Quality) for the data source. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataplex/v1/datascans.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataScanServiceGrpc { @@ -862,8 +859,8 @@ protected DataScanServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createDataScan( - com.google.cloud.dataplex.v1.CreateDataScanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateDataScanRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataScanMethod(), getCallOptions(), request); } @@ -875,8 +872,8 @@ public com.google.longrunning.Operation createDataScan( * */ public com.google.longrunning.Operation updateDataScan( - com.google.cloud.dataplex.v1.UpdateDataScanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateDataScanRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataScanMethod(), getCallOptions(), request); } @@ -888,8 +885,8 @@ public com.google.longrunning.Operation updateDataScan( * */ public com.google.longrunning.Operation deleteDataScan( - com.google.cloud.dataplex.v1.DeleteDataScanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteDataScanRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataScanMethod(), getCallOptions(), request); } @@ -901,8 +898,8 @@ public com.google.longrunning.Operation deleteDataScan( * */ public com.google.cloud.dataplex.v1.DataScan getDataScan( - com.google.cloud.dataplex.v1.GetDataScanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetDataScanRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataScanMethod(), getCallOptions(), request); } @@ -914,8 +911,8 @@ public com.google.cloud.dataplex.v1.DataScan getDataScan( * */ public com.google.cloud.dataplex.v1.ListDataScansResponse listDataScans( - com.google.cloud.dataplex.v1.ListDataScansRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListDataScansRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataScansMethod(), getCallOptions(), request); } @@ -927,8 +924,8 @@ public com.google.cloud.dataplex.v1.ListDataScansResponse listDataScans( * */ public com.google.cloud.dataplex.v1.RunDataScanResponse runDataScan( - com.google.cloud.dataplex.v1.RunDataScanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.RunDataScanRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunDataScanMethod(), getCallOptions(), request); } @@ -940,8 +937,8 @@ public com.google.cloud.dataplex.v1.RunDataScanResponse runDataScan( * */ public com.google.cloud.dataplex.v1.DataScanJob getDataScanJob( - com.google.cloud.dataplex.v1.GetDataScanJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetDataScanJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataScanJobMethod(), getCallOptions(), request); } @@ -953,8 +950,9 @@ public com.google.cloud.dataplex.v1.DataScanJob getDataScanJob( * */ public com.google.cloud.dataplex.v1.ListDataScanJobsResponse listDataScanJobs( - com.google.cloud.dataplex.v1.ListDataScanJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListDataScanJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataScanJobsMethod(), getCallOptions(), request); } @@ -968,8 +966,9 @@ public com.google.cloud.dataplex.v1.ListDataScanJobsResponse listDataScanJobs( * */ public com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse generateDataQualityRules( - com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateDataQualityRulesMethod(), getCallOptions(), request); } } diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceGrpc.java index 31db3ca11f65..5e02b8a77893 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceGrpc.java @@ -25,9 +25,6 @@ * currently offered include DataTaxonomy and DataAttribute. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataplex/v1/data_taxonomy.proto") @io.grpc.stub.annotations.GrpcGenerated @java.lang.Deprecated public final class DataTaxonomyServiceGrpc { @@ -1401,8 +1398,9 @@ protected DataTaxonomyServiceBlockingV2Stub build( */ @java.lang.Deprecated public com.google.longrunning.Operation createDataTaxonomy( - com.google.cloud.dataplex.v1.CreateDataTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateDataTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataTaxonomyMethod(), getCallOptions(), request); } @@ -1415,8 +1413,9 @@ public com.google.longrunning.Operation createDataTaxonomy( */ @java.lang.Deprecated public com.google.longrunning.Operation updateDataTaxonomy( - com.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataTaxonomyMethod(), getCallOptions(), request); } @@ -1430,8 +1429,9 @@ public com.google.longrunning.Operation updateDataTaxonomy( */ @java.lang.Deprecated public com.google.longrunning.Operation deleteDataTaxonomy( - com.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataTaxonomyMethod(), getCallOptions(), request); } @@ -1444,8 +1444,9 @@ public com.google.longrunning.Operation deleteDataTaxonomy( */ @java.lang.Deprecated public com.google.cloud.dataplex.v1.ListDataTaxonomiesResponse listDataTaxonomies( - com.google.cloud.dataplex.v1.ListDataTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListDataTaxonomiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataTaxonomiesMethod(), getCallOptions(), request); } @@ -1458,8 +1459,9 @@ public com.google.cloud.dataplex.v1.ListDataTaxonomiesResponse listDataTaxonomie */ @java.lang.Deprecated public com.google.cloud.dataplex.v1.DataTaxonomy getDataTaxonomy( - com.google.cloud.dataplex.v1.GetDataTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetDataTaxonomyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataTaxonomyMethod(), getCallOptions(), request); } @@ -1472,8 +1474,9 @@ public com.google.cloud.dataplex.v1.DataTaxonomy getDataTaxonomy( */ @java.lang.Deprecated public com.google.longrunning.Operation createDataAttributeBinding( - com.google.cloud.dataplex.v1.CreateDataAttributeBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateDataAttributeBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataAttributeBindingMethod(), getCallOptions(), request); } @@ -1486,8 +1489,9 @@ public com.google.longrunning.Operation createDataAttributeBinding( */ @java.lang.Deprecated public com.google.longrunning.Operation updateDataAttributeBinding( - com.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataAttributeBindingMethod(), getCallOptions(), request); } @@ -1502,8 +1506,9 @@ public com.google.longrunning.Operation updateDataAttributeBinding( */ @java.lang.Deprecated public com.google.longrunning.Operation deleteDataAttributeBinding( - com.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataAttributeBindingMethod(), getCallOptions(), request); } @@ -1516,8 +1521,9 @@ public com.google.longrunning.Operation deleteDataAttributeBinding( */ @java.lang.Deprecated public com.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse listDataAttributeBindings( - com.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataAttributeBindingsMethod(), getCallOptions(), request); } @@ -1530,8 +1536,9 @@ public com.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse listDataAt */ @java.lang.Deprecated public com.google.cloud.dataplex.v1.DataAttributeBinding getDataAttributeBinding( - com.google.cloud.dataplex.v1.GetDataAttributeBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetDataAttributeBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataAttributeBindingMethod(), getCallOptions(), request); } @@ -1544,8 +1551,9 @@ public com.google.cloud.dataplex.v1.DataAttributeBinding getDataAttributeBinding */ @java.lang.Deprecated public com.google.longrunning.Operation createDataAttribute( - com.google.cloud.dataplex.v1.CreateDataAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateDataAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataAttributeMethod(), getCallOptions(), request); } @@ -1558,8 +1566,9 @@ public com.google.longrunning.Operation createDataAttribute( */ @java.lang.Deprecated public com.google.longrunning.Operation updateDataAttribute( - com.google.cloud.dataplex.v1.UpdateDataAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateDataAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataAttributeMethod(), getCallOptions(), request); } @@ -1572,8 +1581,9 @@ public com.google.longrunning.Operation updateDataAttribute( */ @java.lang.Deprecated public com.google.longrunning.Operation deleteDataAttribute( - com.google.cloud.dataplex.v1.DeleteDataAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteDataAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataAttributeMethod(), getCallOptions(), request); } @@ -1586,8 +1596,9 @@ public com.google.longrunning.Operation deleteDataAttribute( */ @java.lang.Deprecated public com.google.cloud.dataplex.v1.ListDataAttributesResponse listDataAttributes( - com.google.cloud.dataplex.v1.ListDataAttributesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListDataAttributesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataAttributesMethod(), getCallOptions(), request); } @@ -1600,8 +1611,9 @@ public com.google.cloud.dataplex.v1.ListDataAttributesResponse listDataAttribute */ @java.lang.Deprecated public com.google.cloud.dataplex.v1.DataAttribute getDataAttribute( - com.google.cloud.dataplex.v1.GetDataAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetDataAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataAttributeMethod(), getCallOptions(), request); } } diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceGrpc.java index 43dfa718df55..0b80e0e6f10a 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceGrpc.java @@ -28,9 +28,6 @@ * systems including Cloud Storage and BigQuery. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataplex/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataplexServiceGrpc { @@ -2561,8 +2558,8 @@ protected DataplexServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createLake( - com.google.cloud.dataplex.v1.CreateLakeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateLakeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateLakeMethod(), getCallOptions(), request); } @@ -2574,8 +2571,8 @@ public com.google.longrunning.Operation createLake( * */ public com.google.longrunning.Operation updateLake( - com.google.cloud.dataplex.v1.UpdateLakeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateLakeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateLakeMethod(), getCallOptions(), request); } @@ -2588,8 +2585,8 @@ public com.google.longrunning.Operation updateLake( * */ public com.google.longrunning.Operation deleteLake( - com.google.cloud.dataplex.v1.DeleteLakeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteLakeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLakeMethod(), getCallOptions(), request); } @@ -2601,8 +2598,8 @@ public com.google.longrunning.Operation deleteLake( * */ public com.google.cloud.dataplex.v1.ListLakesResponse listLakes( - com.google.cloud.dataplex.v1.ListLakesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListLakesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLakesMethod(), getCallOptions(), request); } @@ -2614,8 +2611,8 @@ public com.google.cloud.dataplex.v1.ListLakesResponse listLakes( * */ public com.google.cloud.dataplex.v1.Lake getLake( - com.google.cloud.dataplex.v1.GetLakeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetLakeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLakeMethod(), getCallOptions(), request); } @@ -2627,8 +2624,9 @@ public com.google.cloud.dataplex.v1.Lake getLake( * */ public com.google.cloud.dataplex.v1.ListActionsResponse listLakeActions( - com.google.cloud.dataplex.v1.ListLakeActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListLakeActionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLakeActionsMethod(), getCallOptions(), request); } @@ -2640,8 +2638,8 @@ public com.google.cloud.dataplex.v1.ListActionsResponse listLakeActions( * */ public com.google.longrunning.Operation createZone( - com.google.cloud.dataplex.v1.CreateZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateZoneRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateZoneMethod(), getCallOptions(), request); } @@ -2653,8 +2651,8 @@ public com.google.longrunning.Operation createZone( * */ public com.google.longrunning.Operation updateZone( - com.google.cloud.dataplex.v1.UpdateZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateZoneRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateZoneMethod(), getCallOptions(), request); } @@ -2667,8 +2665,8 @@ public com.google.longrunning.Operation updateZone( * */ public com.google.longrunning.Operation deleteZone( - com.google.cloud.dataplex.v1.DeleteZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteZoneRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteZoneMethod(), getCallOptions(), request); } @@ -2680,8 +2678,8 @@ public com.google.longrunning.Operation deleteZone( * */ public com.google.cloud.dataplex.v1.ListZonesResponse listZones( - com.google.cloud.dataplex.v1.ListZonesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListZonesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListZonesMethod(), getCallOptions(), request); } @@ -2693,8 +2691,8 @@ public com.google.cloud.dataplex.v1.ListZonesResponse listZones( * */ public com.google.cloud.dataplex.v1.Zone getZone( - com.google.cloud.dataplex.v1.GetZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetZoneRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetZoneMethod(), getCallOptions(), request); } @@ -2706,8 +2704,9 @@ public com.google.cloud.dataplex.v1.Zone getZone( * */ public com.google.cloud.dataplex.v1.ListActionsResponse listZoneActions( - com.google.cloud.dataplex.v1.ListZoneActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListZoneActionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListZoneActionsMethod(), getCallOptions(), request); } @@ -2719,8 +2718,8 @@ public com.google.cloud.dataplex.v1.ListActionsResponse listZoneActions( * */ public com.google.longrunning.Operation createAsset( - com.google.cloud.dataplex.v1.CreateAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAssetMethod(), getCallOptions(), request); } @@ -2732,8 +2731,8 @@ public com.google.longrunning.Operation createAsset( * */ public com.google.longrunning.Operation updateAsset( - com.google.cloud.dataplex.v1.UpdateAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAssetMethod(), getCallOptions(), request); } @@ -2746,8 +2745,8 @@ public com.google.longrunning.Operation updateAsset( * */ public com.google.longrunning.Operation deleteAsset( - com.google.cloud.dataplex.v1.DeleteAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAssetMethod(), getCallOptions(), request); } @@ -2759,8 +2758,8 @@ public com.google.longrunning.Operation deleteAsset( * */ public com.google.cloud.dataplex.v1.ListAssetsResponse listAssets( - com.google.cloud.dataplex.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListAssetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } @@ -2772,8 +2771,8 @@ public com.google.cloud.dataplex.v1.ListAssetsResponse listAssets( * */ public com.google.cloud.dataplex.v1.Asset getAsset( - com.google.cloud.dataplex.v1.GetAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAssetMethod(), getCallOptions(), request); } @@ -2785,8 +2784,9 @@ public com.google.cloud.dataplex.v1.Asset getAsset( * */ public com.google.cloud.dataplex.v1.ListActionsResponse listAssetActions( - com.google.cloud.dataplex.v1.ListAssetActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListAssetActionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetActionsMethod(), getCallOptions(), request); } @@ -2798,8 +2798,8 @@ public com.google.cloud.dataplex.v1.ListActionsResponse listAssetActions( * */ public com.google.longrunning.Operation createTask( - com.google.cloud.dataplex.v1.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTaskMethod(), getCallOptions(), request); } @@ -2811,8 +2811,8 @@ public com.google.longrunning.Operation createTask( * */ public com.google.longrunning.Operation updateTask( - com.google.cloud.dataplex.v1.UpdateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTaskMethod(), getCallOptions(), request); } @@ -2824,8 +2824,8 @@ public com.google.longrunning.Operation updateTask( * */ public com.google.longrunning.Operation deleteTask( - com.google.cloud.dataplex.v1.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } @@ -2837,8 +2837,8 @@ public com.google.longrunning.Operation deleteTask( * */ public com.google.cloud.dataplex.v1.ListTasksResponse listTasks( - com.google.cloud.dataplex.v1.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListTasksRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTasksMethod(), getCallOptions(), request); } @@ -2850,8 +2850,8 @@ public com.google.cloud.dataplex.v1.ListTasksResponse listTasks( * */ public com.google.cloud.dataplex.v1.Task getTask( - com.google.cloud.dataplex.v1.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaskMethod(), getCallOptions(), request); } @@ -2863,8 +2863,8 @@ public com.google.cloud.dataplex.v1.Task getTask( * */ public com.google.cloud.dataplex.v1.ListJobsResponse listJobs( - com.google.cloud.dataplex.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -2876,8 +2876,8 @@ public com.google.cloud.dataplex.v1.ListJobsResponse listJobs( * */ public com.google.cloud.dataplex.v1.RunTaskResponse runTask( - com.google.cloud.dataplex.v1.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.RunTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunTaskMethod(), getCallOptions(), request); } @@ -2889,8 +2889,8 @@ public com.google.cloud.dataplex.v1.RunTaskResponse runTask( * */ public com.google.cloud.dataplex.v1.Job getJob( - com.google.cloud.dataplex.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -2902,8 +2902,8 @@ public com.google.cloud.dataplex.v1.Job getJob( * */ public com.google.protobuf.Empty cancelJob( - com.google.cloud.dataplex.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CancelJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelJobMethod(), getCallOptions(), request); } @@ -2915,8 +2915,9 @@ public com.google.protobuf.Empty cancelJob( * */ public com.google.longrunning.Operation createEnvironment( - com.google.cloud.dataplex.v1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); } @@ -2928,8 +2929,9 @@ public com.google.longrunning.Operation createEnvironment( * */ public com.google.longrunning.Operation updateEnvironment( - com.google.cloud.dataplex.v1.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); } @@ -2942,8 +2944,9 @@ public com.google.longrunning.Operation updateEnvironment( * */ public com.google.longrunning.Operation deleteEnvironment( - com.google.cloud.dataplex.v1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); } @@ -2955,8 +2958,9 @@ public com.google.longrunning.Operation deleteEnvironment( * */ public com.google.cloud.dataplex.v1.ListEnvironmentsResponse listEnvironments( - com.google.cloud.dataplex.v1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListEnvironmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } @@ -2968,8 +2972,8 @@ public com.google.cloud.dataplex.v1.ListEnvironmentsResponse listEnvironments( * */ public com.google.cloud.dataplex.v1.Environment getEnvironment( - com.google.cloud.dataplex.v1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetEnvironmentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -2981,8 +2985,8 @@ public com.google.cloud.dataplex.v1.Environment getEnvironment( * */ public com.google.cloud.dataplex.v1.ListSessionsResponse listSessions( - com.google.cloud.dataplex.v1.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListSessionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } } diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceGrpc.java index 418dafc63cad..fd5dfcd4de05 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceGrpc.java @@ -25,9 +25,6 @@ * partitions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataplex/v1/metadata.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MetadataServiceGrpc { @@ -834,8 +831,8 @@ protected MetadataServiceBlockingV2Stub build( * */ public com.google.cloud.dataplex.v1.Entity createEntity( - com.google.cloud.dataplex.v1.CreateEntityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreateEntityRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntityMethod(), getCallOptions(), request); } @@ -847,8 +844,8 @@ public com.google.cloud.dataplex.v1.Entity createEntity( * */ public com.google.cloud.dataplex.v1.Entity updateEntity( - com.google.cloud.dataplex.v1.UpdateEntityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.UpdateEntityRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntityMethod(), getCallOptions(), request); } @@ -860,8 +857,8 @@ public com.google.cloud.dataplex.v1.Entity updateEntity( * */ public com.google.protobuf.Empty deleteEntity( - com.google.cloud.dataplex.v1.DeleteEntityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeleteEntityRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntityMethod(), getCallOptions(), request); } @@ -873,8 +870,8 @@ public com.google.protobuf.Empty deleteEntity( * */ public com.google.cloud.dataplex.v1.Entity getEntity( - com.google.cloud.dataplex.v1.GetEntityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetEntityRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntityMethod(), getCallOptions(), request); } @@ -886,8 +883,8 @@ public com.google.cloud.dataplex.v1.Entity getEntity( * */ public com.google.cloud.dataplex.v1.ListEntitiesResponse listEntities( - com.google.cloud.dataplex.v1.ListEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListEntitiesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntitiesMethod(), getCallOptions(), request); } @@ -899,8 +896,9 @@ public com.google.cloud.dataplex.v1.ListEntitiesResponse listEntities( * */ public com.google.cloud.dataplex.v1.Partition createPartition( - com.google.cloud.dataplex.v1.CreatePartitionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.CreatePartitionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePartitionMethod(), getCallOptions(), request); } @@ -912,8 +910,9 @@ public com.google.cloud.dataplex.v1.Partition createPartition( * */ public com.google.protobuf.Empty deletePartition( - com.google.cloud.dataplex.v1.DeletePartitionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.DeletePartitionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePartitionMethod(), getCallOptions(), request); } @@ -925,8 +924,8 @@ public com.google.protobuf.Empty deletePartition( * */ public com.google.cloud.dataplex.v1.Partition getPartition( - com.google.cloud.dataplex.v1.GetPartitionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.GetPartitionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPartitionMethod(), getCallOptions(), request); } @@ -938,8 +937,8 @@ public com.google.cloud.dataplex.v1.Partition getPartition( * */ public com.google.cloud.dataplex.v1.ListPartitionsResponse listPartitions( - com.google.cloud.dataplex.v1.ListPartitionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataplex.v1.ListPartitionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPartitionsMethod(), getCallOptions(), request); } } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectType.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectType.java index ab9ce2f6e4c6..a3e5d610f25d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectType.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectType.java @@ -46,6 +46,7 @@ private AspectType() { description_ = ""; displayName_ = ""; etag_ = ""; + dataClassification_ = 0; transferStatus_ = 0; } @@ -82,6 +83,145 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.dataplex.v1.AspectType.Builder.class); } + /** + * + * + *
                                          +   * Classifies the data stored by the aspect.
                                          +   * 
                                          + * + * Protobuf enum {@code google.cloud.dataplex.v1.AspectType.DataClassification} + */ + public enum DataClassification implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +     * Denotes that the aspect contains only metadata.
                                          +     * 
                                          + * + * DATA_CLASSIFICATION_UNSPECIFIED = 0; + */ + DATA_CLASSIFICATION_UNSPECIFIED(0), + /** + * + * + *
                                          +     * Metadata and data classification.
                                          +     * 
                                          + * + * METADATA_AND_DATA = 1; + */ + METADATA_AND_DATA(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +     * Denotes that the aspect contains only metadata.
                                          +     * 
                                          + * + * DATA_CLASSIFICATION_UNSPECIFIED = 0; + */ + public static final int DATA_CLASSIFICATION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +     * Metadata and data classification.
                                          +     * 
                                          + * + * METADATA_AND_DATA = 1; + */ + public static final int METADATA_AND_DATA_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 DataClassification 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 DataClassification forNumber(int value) { + switch (value) { + case 0: + return DATA_CLASSIFICATION_UNSPECIFIED; + case 1: + return METADATA_AND_DATA; + 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 DataClassification findValueByNumber(int number) { + return DataClassification.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.AspectType.getDescriptor().getEnumTypes().get(0); + } + + private static final DataClassification[] VALUES = values(); + + public static DataClassification 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 DataClassification(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.AspectType.DataClassification) + } + public interface AuthorizationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.AspectType.Authorization) @@ -9219,6 +9359,49 @@ public com.google.protobuf.ByteString getEtagBytes() { } } + public static final int DATA_CLASSIFICATION_FIELD_NUMBER = 9; + private int dataClassification_ = 0; + + /** + * + * + *
                                          +   * Optional. Immutable. Stores data classification of the aspect.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for dataClassification. + */ + @java.lang.Override + public int getDataClassificationValue() { + return dataClassification_; + } + + /** + * + * + *
                                          +   * Optional. Immutable. Stores data classification of the aspect.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The dataClassification. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.AspectType.DataClassification getDataClassification() { + com.google.cloud.dataplex.v1.AspectType.DataClassification result = + com.google.cloud.dataplex.v1.AspectType.DataClassification.forNumber(dataClassification_); + return result == null + ? com.google.cloud.dataplex.v1.AspectType.DataClassification.UNRECOGNIZED + : result; + } + public static final int AUTHORIZATION_FIELD_NUMBER = 52; private com.google.cloud.dataplex.v1.AspectType.Authorization authorization_; @@ -9419,6 +9602,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_); } + if (dataClassification_ + != com.google.cloud.dataplex.v1.AspectType.DataClassification + .DATA_CLASSIFICATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, dataClassification_); + } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(52, getAuthorization()); } @@ -9469,6 +9658,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); } + if (dataClassification_ + != com.google.cloud.dataplex.v1.AspectType.DataClassification + .DATA_CLASSIFICATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, dataClassification_); + } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getAuthorization()); } @@ -9508,6 +9703,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getEtag().equals(other.getEtag())) return false; + if (dataClassification_ != other.dataClassification_) return false; if (hasAuthorization() != other.hasAuthorization()) return false; if (hasAuthorization()) { if (!getAuthorization().equals(other.getAuthorization())) return false; @@ -9550,6 +9746,8 @@ public int hashCode() { } hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DATA_CLASSIFICATION_FIELD_NUMBER; + hash = (53 * hash) + dataClassification_; if (hasAuthorization()) { hash = (37 * hash) + AUTHORIZATION_FIELD_NUMBER; hash = (53 * hash) + getAuthorization().hashCode(); @@ -9751,6 +9949,7 @@ public Builder clear() { displayName_ = ""; internalGetMutableLabels().clear(); etag_ = ""; + dataClassification_ = 0; authorization_ = null; if (authorizationBuilder_ != null) { authorizationBuilder_.dispose(); @@ -9827,16 +10026,19 @@ private void buildPartial0(com.google.cloud.dataplex.v1.AspectType result) { result.etag_ = etag_; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.dataClassification_ = dataClassification_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.authorization_ = authorizationBuilder_ == null ? authorization_ : authorizationBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.metadataTemplate_ = metadataTemplateBuilder_ == null ? metadataTemplate_ : metadataTemplateBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.transferStatus_ = transferStatus_; } result.bitField0_ |= to_bitField0_; @@ -9920,6 +10122,9 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.AspectType other) { bitField0_ |= 0x00000080; onChanged(); } + if (other.dataClassification_ != 0) { + setDataClassificationValue(other.getDataClassificationValue()); + } if (other.hasAuthorization()) { mergeAuthorization(other.getAuthorization()); } @@ -10009,23 +10214,29 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 72: + { + dataClassification_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 case 418: { input.readMessage(getAuthorizationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 418 case 426: { input.readMessage( getMetadataTemplateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 426 case 1616: { transferStatus_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 1616 default: @@ -11228,6 +11439,114 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } + private int dataClassification_ = 0; + + /** + * + * + *
                                          +     * Optional. Immutable. Stores data classification of the aspect.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for dataClassification. + */ + @java.lang.Override + public int getDataClassificationValue() { + return dataClassification_; + } + + /** + * + * + *
                                          +     * Optional. Immutable. Stores data classification of the aspect.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for dataClassification to set. + * @return This builder for chaining. + */ + public Builder setDataClassificationValue(int value) { + dataClassification_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Immutable. Stores data classification of the aspect.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The dataClassification. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.AspectType.DataClassification getDataClassification() { + com.google.cloud.dataplex.v1.AspectType.DataClassification result = + com.google.cloud.dataplex.v1.AspectType.DataClassification.forNumber(dataClassification_); + return result == null + ? com.google.cloud.dataplex.v1.AspectType.DataClassification.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +     * Optional. Immutable. Stores data classification of the aspect.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The dataClassification to set. + * @return This builder for chaining. + */ + public Builder setDataClassification( + com.google.cloud.dataplex.v1.AspectType.DataClassification value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + dataClassification_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Immutable. Stores data classification of the aspect.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataClassification() { + bitField0_ = (bitField0_ & ~0x00000100); + dataClassification_ = 0; + onChanged(); + return this; + } + private com.google.cloud.dataplex.v1.AspectType.Authorization authorization_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.AspectType.Authorization, @@ -11249,7 +11568,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * @return Whether the authorization field is set. */ public boolean hasAuthorization() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -11295,7 +11614,7 @@ public Builder setAuthorization(com.google.cloud.dataplex.v1.AspectType.Authoriz } else { authorizationBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -11318,7 +11637,7 @@ public Builder setAuthorization( } else { authorizationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -11336,7 +11655,7 @@ public Builder setAuthorization( */ public Builder mergeAuthorization(com.google.cloud.dataplex.v1.AspectType.Authorization value) { if (authorizationBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && authorization_ != null && authorization_ != com.google.cloud.dataplex.v1.AspectType.Authorization.getDefaultInstance()) { @@ -11348,7 +11667,7 @@ public Builder mergeAuthorization(com.google.cloud.dataplex.v1.AspectType.Author authorizationBuilder_.mergeFrom(value); } if (authorization_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -11366,7 +11685,7 @@ public Builder mergeAuthorization(com.google.cloud.dataplex.v1.AspectType.Author * */ public Builder clearAuthorization() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); authorization_ = null; if (authorizationBuilder_ != null) { authorizationBuilder_.dispose(); @@ -11388,7 +11707,7 @@ public Builder clearAuthorization() { * */ public com.google.cloud.dataplex.v1.AspectType.Authorization.Builder getAuthorizationBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getAuthorizationFieldBuilder().getBuilder(); } @@ -11464,7 +11783,7 @@ public com.google.cloud.dataplex.v1.AspectType.Authorization.Builder getAuthoriz * @return Whether the metadataTemplate field is set. */ public boolean hasMetadataTemplate() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -11511,7 +11830,7 @@ public Builder setMetadataTemplate( } else { metadataTemplateBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11534,7 +11853,7 @@ public Builder setMetadataTemplate( } else { metadataTemplateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11553,7 +11872,7 @@ public Builder setMetadataTemplate( public Builder mergeMetadataTemplate( com.google.cloud.dataplex.v1.AspectType.MetadataTemplate value) { if (metadataTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && metadataTemplate_ != null && metadataTemplate_ != com.google.cloud.dataplex.v1.AspectType.MetadataTemplate.getDefaultInstance()) { @@ -11565,7 +11884,7 @@ public Builder mergeMetadataTemplate( metadataTemplateBuilder_.mergeFrom(value); } if (metadataTemplate_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -11583,7 +11902,7 @@ public Builder mergeMetadataTemplate( * */ public Builder clearMetadataTemplate() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); metadataTemplate_ = null; if (metadataTemplateBuilder_ != null) { metadataTemplateBuilder_.dispose(); @@ -11606,7 +11925,7 @@ public Builder clearMetadataTemplate() { */ public com.google.cloud.dataplex.v1.AspectType.MetadataTemplate.Builder getMetadataTemplateBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getMetadataTemplateFieldBuilder().getBuilder(); } @@ -11699,7 +12018,7 @@ public int getTransferStatusValue() { */ public Builder setTransferStatusValue(int value) { transferStatus_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -11744,7 +12063,7 @@ public Builder setTransferStatus(com.google.cloud.dataplex.v1.TransferStatus val if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; transferStatus_ = value.getNumber(); onChanged(); return this; @@ -11765,7 +12084,7 @@ public Builder setTransferStatus(com.google.cloud.dataplex.v1.TransferStatus val * @return This builder for chaining. */ public Builder clearTransferStatus() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); transferStatus_ = 0; onChanged(); return this; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectTypeOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectTypeOrBuilder.java index f4b156a80c56..e17d97cdc340 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectTypeOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectTypeOrBuilder.java @@ -309,6 +309,36 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getEtagBytes(); + /** + * + * + *
                                          +   * Optional. Immutable. Stores data classification of the aspect.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for dataClassification. + */ + int getDataClassificationValue(); + + /** + * + * + *
                                          +   * Optional. Immutable. Stores data classification of the aspect.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The dataClassification. + */ + com.google.cloud.dataplex.v1.AspectType.DataClassification getDataClassification(); + /** * * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java index 7f741c5b5a98..742237e76533 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java @@ -322,7 +322,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "urce.proto\032&google/cloud/dataplex/v1/ser" + "vice.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\034google/p" - + "rotobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\323\r\n\n" + + "rotobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\203\017\n\n" + "AspectType\0228\n" + "\004name\030\001 \001(\tB*\340A\003\372A$\n" + "\"dataplex.googleapis.com/AspectType\022\020\n" @@ -334,34 +334,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014display_name\030\006 \001(\tB\003\340A\001\022E\n" + "\006labels\030\007 \003(" + "\01320.google.cloud.dataplex.v1.AspectType.LabelsEntryB\003\340A\001\022\014\n" - + "\004etag\030\010 \001(\t\022N\n\r" - + "authorization\0304" - + " \001(\01322.google.cloud.dataplex.v1.AspectType.AuthorizationB\003\340A\005\022U\n" - + "\021metadata_template\0305" - + " \001(\01325.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\003\340A\002\022G\n" - + "\017transfer_status\030\312\001" - + " \001(\0162(.google.cloud.dataplex.v1.TransferStatusB\003\340A\003\0326\n\r" + + "\004etag\030\010 \001(\t\022\\\n" + + "\023data_classification\030\t \001(\01627.google.cloud.datap" + + "lex.v1.AspectType.DataClassificationB\006\340A\001\340A\005\022N\n\r" + + "authorization\0304 \001(\01322.google.clo" + + "ud.dataplex.v1.AspectType.AuthorizationB\003\340A\005\022U\n" + + "\021metadata_template\0305 \001(\01325.google" + + ".cloud.dataplex.v1.AspectType.MetadataTemplateB\003\340A\002\022G\n" + + "\017transfer_status\030\312\001 \001(\0162(." + + "google.cloud.dataplex.v1.TransferStatusB\003\340A\003\0326\n\r" + "Authorization\022%\n" + "\030alternate_use_permission\030\001 \001(\tB\003\340A\005\032\244\007\n" + "\020MetadataTemplate\022\022\n" + "\005index\030\001 \001(\005B\003\340A\001\022\021\n" + "\004name\030\002 \001(\tB\003\340A\002\022\021\n" + "\004type\030\005 \001(\tB\003\340A\002\022Q\n\r" - + "record_fields\030\006 \003(\01325.google.cl" - + "oud.dataplex.v1.AspectType.MetadataTemplateB\003\340A\001\022Y\n" - + "\013enum_values\030\010 \003(\0132?.google.c" - + "loud.dataplex.v1.AspectType.MetadataTemplate.EnumValueB\003\340A\001\022M\n" + + "record_fields\030\006 \003" + + "(\01325.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\003\340A\001\022Y\n" + + "\013enum_values\030\010 " + + "\003(\0132?.google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValueB\003\340A\001\022M\n" + "\tmap_items\030\n" + " \001(\01325.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\003\340A\001\022O\n" - + "\013array_items\030\013 \001(\0132" - + "5.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\003\340A\001\022\024\n" + + "\013array_items\030\013" + + " \001(\01325.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\003\340A\001\022\024\n" + "\007type_id\030\014 \001(\tB\003\340A\001\022\025\n" + "\010type_ref\030\r" + " \001(\tB\003\340A\001\022[\n" - + "\013constraints\0302" - + " \001(\0132A.google.cloud.dataplex.v1.AspectType.MetadataTemplate.ConstraintsB\003\340A\001\022[\n" - + "\013annotations\0303 \001(\0132A.google.cloud.datapl" - + "ex.v1.AspectType.MetadataTemplate.AnnotationsB\003\340A\001\032K\n" + + "\013constraints\0302 \001(\0132A.google.cloud.datap" + + "lex.v1.AspectType.MetadataTemplate.ConstraintsB\003\340A\001\022[\n" + + "\013annotations\0303 \001(\0132A.googl" + + "e.cloud.dataplex.v1.AspectType.MetadataTemplate.AnnotationsB\003\340A\001\032K\n" + "\tEnumValue\022\022\n" + "\005index\030\001 \001(\005B\003\340A\002\022\021\n" + "\004name\030\002 \001(\tB\003\340A\002\022\027\n\n" @@ -377,9 +379,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "string_values\030\007 \003(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001:\204\001\352A\200\001\n" - + "\"dataplex.googleapis.com/AspectType\022Aproject" - + "s/{project}/locations/{location}/aspectTypes/{aspect_type}*\013aspectTypes2\n" + + "\005value\030\002 \001(\t:\0028\001\"P\n" + + "\022DataClassification\022#\n" + + "\037DATA_CLASSIFICATION_UNSPECIFIED\020\000\022\025\n" + + "\021METADATA_AND_DATA\020\001:\204\001\352A\200\001\n" + + "\"dataplex.googleapis.com/AspectType\022Aprojects/{project}/locations/{l" + + "ocation}/aspectTypes/{aspect_type}*\013aspectTypes2\n" + "aspectType\"\315\004\n\n" + "EntryGroup\0228\n" + "\004name\030\001 \001(\tB*\340A\003\372A$\n" @@ -390,16 +395,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\005 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\006 \001(\tB\003\340A\001\022E\n" - + "\006labels\030\007 \003(\01320.google" - + ".cloud.dataplex.v1.EntryGroup.LabelsEntryB\003\340A\001\022\014\n" + + "\006labels\030\007" + + " \003(\01320.google.cloud.dataplex.v1.EntryGroup.LabelsEntryB\003\340A\001\022\014\n" + "\004etag\030\010 \001(\t\022G\n" + "\017transfer_status\030\312\001" + " \001(\0162(.google.cloud.dataplex.v1.TransferStatusB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\204\001\352A\200\001\n" - + "\"dataplex.googleapis.com/EntryGroup\022Aprojects/{proje" - + "ct}/locations/{location}/entryGroups/{entry_group}*\013entryGroups2\n" + + "\"dataplex.googleapis.com/EntryGroup\022Aprojects/{project}/locations/{location}" + + "/entryGroups/{entry_group}*\013entryGroups2\n" + "entryGroup\"\334\006\n" + "\tEntryType\0227\n" + "\004name\030\001 \001(\tB)\340A\003\372A#\n" @@ -410,17 +415,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\005 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\006 \001(\tB\003\340A\001\022D\n" - + "\006labels\030\007" - + " \003(\0132/.google.cloud.dataplex.v1.EntryType.LabelsEntryB\003\340A\001\022\021\n" + + "\006labels\030\007 \003(\0132/." + + "google.cloud.dataplex.v1.EntryType.LabelsEntryB\003\340A\001\022\021\n" + "\004etag\030\010 \001(\tB\003\340A\001\022\031\n" + "\014type_aliases\030\t \003(\tB\003\340A\001\022\025\n" + "\010platform\030\n" + " \001(\tB\003\340A\001\022\023\n" + "\006system\030\013 \001(\tB\003\340A\001\022H\n" - + "\020required_aspects\0302 \003(\0132..google" - + ".cloud.dataplex.v1.EntryType.AspectInfo\022M\n\r" - + "authorization\0303 \001(\01321.google.cloud.da" - + "taplex.v1.EntryType.AuthorizationB\003\340A\005\032C\n\n" + + "\020required_aspects\0302" + + " \003(\0132..google.cloud.dataplex.v1.EntryType.AspectInfo\022M\n\r" + + "authorization\0303 \001(\01321" + + ".google.cloud.dataplex.v1.EntryType.AuthorizationB\003\340A\005\032C\n\n" + "AspectInfo\0225\n" + "\004type\030\001 \001(\tB\'\372A$\n" + "\"dataplex.googleapis.com/AspectType\0326\n\r" @@ -429,8 +434,8 @@ 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:~\352A{\n" - + "!dataplex.googleapis.com" - + "/EntryType\022?projects/{project}/locations/{location}/entryTypes/{entry_type}*\n" + + "!dataplex.googleapis.com/EntryType\022?projects/{pr" + + "oject}/locations/{location}/entryTypes/{entry_type}*\n" + "entryTypes2\tentryType\"\221\002\n" + "\006Aspect\022\030\n" + "\013aspect_type\030\001 \001(\tB\003\340A\003\022\021\n" @@ -450,8 +455,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "entry_type\030\004 \001(\tB\006\340A\002\340A\005\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022B\n" - + "\007aspects\030\t" - + " \003(\0132,.google.cloud.dataplex.v1.Entry.AspectsEntryB\003\340A\001\022\034\n" + + "\007aspects\030\t \003(\0132,.google.c" + + "loud.dataplex.v1.Entry.AspectsEntryB\003\340A\001\022\034\n" + "\014parent_entry\030\n" + " \001(\tB\006\340A\001\340A\005\022!\n" + "\024fully_qualified_name\030\014 \001(\tB\003\340A\001\022@\n" @@ -461,8 +466,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022/\n" + "\005value\030\002 \001(\0132" + " .google.cloud.dataplex.v1.Aspect:\0028\001:\206\001\352A\202\001\n" - + "\035dataplex.googleapis.com/Entry\022Qprojects/{project}/locations/{location}/ent" - + "ryGroups/{entry_group}/entries/{entry}*\007entries2\005entry\"\321\003\n" + + "\035dataplex.googleapis.com/Entry\022Qprojects/{project}/location" + + "s/{location}/entryGroups/{entry_group}/entries/{entry}*\007entries2\005entry\"\321\003\n" + "\013EntrySource\022\020\n" + "\010resource\030\001 \001(\t\022\016\n" + "\006system\030\002 \001(\t\022\020\n" @@ -470,8 +475,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014display_name\030\005 \001(\t\022\023\n" + "\013description\030\006 \001(\t\022A\n" + "\006labels\030\007 \003(\01321.google.cloud.dataplex.v1.EntrySource.LabelsEntry\022F\n" - + "\tancestors\030\t" - + " \003(\0132..google.cloud.dataplex.v1.EntrySource.AncestorB\003\340A\005\022/\n" + + "\tancestors\030\t \003(\0132..google.clo" + + "ud.dataplex.v1.EntrySource.AncestorB\003\340A\005\022/\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013update_time\030\013 \001(\0132\032.google.protobuf.Timestamp\022\025\n" @@ -486,12 +491,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\033\n" + "\016entry_group_id\030\002 \001(\tB\003\340A\002\022>\n" - + "\013entry_group\030\003" - + " \001(\0132$.google.cloud.dataplex.v1.EntryGroupB\003\340A\002\022\032\n\r" + + "\013entry_group\030\003 \001(\0132$.go" + + "ogle.cloud.dataplex.v1.EntryGroupB\003\340A\002\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\"\253\001\n" + "\027UpdateEntryGroupRequest\022>\n" - + "\013entry_group\030\001" - + " \001(\0132$.google.cloud.dataplex.v1.EntryGroupB\003\340A\002\0224\n" + + "\013entry_group\030\001 \001(\0132$.go" + + "ogle.cloud.dataplex.v1.EntryGroupB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\032\n\r" + "validate_only\030\003 \001(\010B\003\340A\001\"f\n" @@ -517,8 +522,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\032\n\r" + "entry_type_id\030\002 \001(\tB\003\340A\002\022<\n\n" - + "entry_type\030\003" - + " \001(\0132#.google.cloud.dataplex.v1.EntryTypeB\003\340A\002\022\032\n\r" + + "entry_type\030\003 " + + "\001(\0132#.google.cloud.dataplex.v1.EntryTypeB\003\340A\002\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\"\250\001\n" + "\026UpdateEntryTypeRequest\022<\n\n" + "entry_type\030\001 \001(\0132#.google.cloud.dataplex.v1.EntryTypeB\003\340A\002\0224\n" @@ -547,12 +552,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\033\n" + "\016aspect_type_id\030\002 \001(\tB\003\340A\002\022>\n" - + "\013aspect_type\030\003" - + " \001(\0132$.google.cloud.dataplex.v1.AspectTypeB\003\340A\002\022\032\n\r" + + "\013aspect_type\030\003 \001" + + "(\0132$.google.cloud.dataplex.v1.AspectTypeB\003\340A\002\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\"\253\001\n" + "\027UpdateAspectTypeRequest\022>\n" - + "\013aspect_type\030\001" - + " \001(\0132$.google.cloud.dataplex.v1.AspectTypeB\003\340A\002\0224\n" + + "\013aspect_type\030\001 \001" + + "(\0132$.google.cloud.dataplex.v1.AspectTypeB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\032\n\r" + "validate_only\030\003 \001(\010B\003\340A\001\"f\n" @@ -608,8 +613,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005paths\030\004 \003(\tB\003\340A\001\"\304\001\n" + "\022LookupEntryRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0226\n" - + "\004view\030\002 \001(\0162#" - + ".google.cloud.dataplex.v1.EntryViewB\003\340A\001\022\031\n" + + "\004view\030\002" + + " \001(\0162#.google.cloud.dataplex.v1.EntryViewB\003\340A\001\022\031\n" + "\014aspect_types\030\003 \003(\tB\003\340A\001\022\022\n" + "\005paths\030\004 \003(\tB\003\340A\001\0224\n" + "\005entry\030\005 \001(\tB%\340A\002\372A\037\n" @@ -626,14 +631,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023SearchEntriesResult\022\033\n" + "\017linked_resource\030\010 \001(\tB\002\030\001\0227\n" + "\016dataplex_entry\030\t \001(\0132\037.google.cloud.dataplex.v1.Entry\022L\n" - + "\010snippets\030\014" - + " \001(\01326.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsB\002\030\001\032K\n" + + "\010snippets\030\014 \001(\01326.google.c" + + "loud.dataplex.v1.SearchEntriesResult.SnippetsB\002\030\001\032K\n" + "\010Snippets\022;\n" + "\016dataplex_entry\030\001" + " \001(\0132\037.google.cloud.dataplex.v1.EntryB\002\030\001:\002\030\001\"\231\001\n" + "\025SearchEntriesResponse\022>\n" - + "\007results\030\001 \003(\0132-.goog" - + "le.cloud.dataplex.v1.SearchEntriesResult\022\022\n\n" + + "\007results\030\001" + + " \003(\0132-.google.cloud.dataplex.v1.SearchEntriesResult\022\022\n\n" + "total_size\030\002 \001(\005\022\027\n" + "\017next_page_token\030\003 \001(\t\022\023\n" + "\013unreachable\030\004 \003(\t\"\273\001\n\n" @@ -671,20 +676,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uid\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\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\022F\n" - + "\006labels\030\005 \003(\01321.goo" - + "gle.cloud.dataplex.v1.MetadataJob.LabelsEntryB\003\340A\001\022=\n" - + "\004type\030\006" - + " \001(\0162*.google.cloud.dataplex.v1.MetadataJob.TypeB\003\340A\002\022J\n" - + "\013import_spec\030d" - + " \001(\01323.google.cloud.dataplex.v1.MetadataJob.ImportJobSpecH\000\022J\n" - + "\013export_spec\030e" - + " \001(\01323.google.cloud.dataplex.v1.MetadataJob.ExportJobSpecH\000\022T\n\r" - + "import_result\030\310\001" - + " \001(\01325.google.cloud.dataplex.v1.MetadataJob.ImportJobResultB\003\340A\003H\001\022T\n\r" - + "export_result\030\311\001" - + " \001(\01325.google.cloud.dataplex.v1.MetadataJob.ExportJobResultB\003\340A\003H\001\022A\n" - + "\006status\030\007" - + " \001(\0132,.google.cloud.dataplex.v1.MetadataJob.StatusB\003\340A\003\032\311\002\n" + + "\006labels\030\005" + + " \003(\01321.google.cloud.dataplex.v1.MetadataJob.LabelsEntryB\003\340A\001\022=\n" + + "\004type\030\006 \001(\016" + + "2*.google.cloud.dataplex.v1.MetadataJob.TypeB\003\340A\002\022J\n" + + "\013import_spec\030d \001(\01323.google." + + "cloud.dataplex.v1.MetadataJob.ImportJobSpecH\000\022J\n" + + "\013export_spec\030e \001(\01323.google.clou" + + "d.dataplex.v1.MetadataJob.ExportJobSpecH\000\022T\n\r" + + "import_result\030\310\001 \001(\01325.google.cloud" + + ".dataplex.v1.MetadataJob.ImportJobResultB\003\340A\003H\001\022T\n\r" + + "export_result\030\311\001 \001(\01325.google" + + ".cloud.dataplex.v1.MetadataJob.ExportJobResultB\003\340A\003H\001\022A\n" + + "\006status\030\007 \001(\0132,.google.c" + + "loud.dataplex.v1.MetadataJob.StatusB\003\340A\003\032\311\002\n" + "\017ImportJobResult\022\034\n" + "\017deleted_entries\030\001 \001(\003B\003\340A\003\022\034\n" + "\017updated_entries\030\002 \001(\003B\003\340A\003\022\034\n" @@ -702,14 +707,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022source_storage_uri\030\001 \001(\tB\003\340A\001\022;\n" + "\022source_create_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022V\n" - + "\005scope\030\002 \001(" - + "\0132B.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScopeB\003\340A\002\022Z\n" - + "\017entry_sync_mode\030\003 \001(\0162<.google.cloud.datap" - + "lex.v1.MetadataJob.ImportJobSpec.SyncModeB\003\340A\002\022[\n" - + "\020aspect_sync_mode\030\004 \001(\0162<.googl" - + "e.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\003\340A\002\022T\n" - + "\tlog_level\030\006 \001(\0162<" - + ".google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevelB\003\340A\001\032\327\002\n" + + "\005scope\030\002 \001(\0132B.google.cloud.dataple" + + "x.v1.MetadataJob.ImportJobSpec.ImportJobScopeB\003\340A\002\022Z\n" + + "\017entry_sync_mode\030\003 \001(\0162<.go" + + "ogle.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\003\340A\002\022[\n" + + "\020aspect_sync_mode\030\004" + + " \001(\0162<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\003\340A\002\022T\n" + + "\tlog_level\030\006 \001(\0162<.google.cloud.dataplex.v" + + "1.MetadataJob.ImportJobSpec.LogLevelB\003\340A\001\032\327\002\n" + "\016ImportJobScope\022@\n" + "\014entry_groups\030\001 \003(\tB*\340A\002\372A$\n" + "\"dataplex.googleapis.com/EntryGroup\022>\n" @@ -731,8 +736,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DEBUG\020\001\022\010\n" + "\004INFO\020\002\032\257\003\n\r" + "ExportJobSpec\022V\n" - + "\005scope\030\002 \001(\0132B.google.cloud.data" - + "plex.v1.MetadataJob.ExportJobSpec.ExportJobScopeB\003\340A\002\022\030\n" + + "\005scope\030\002 \001(\0132B.g" + + "oogle.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScopeB\003\340A\002\022\030\n" + "\013output_path\030\003 \001(\tB\003\340A\002\032\253\002\n" + "\016ExportJobScope\022\032\n" + "\022organization_level\030\001 \001(\010\022B\n" @@ -745,8 +750,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014aspect_types\030\005 \003(\tB\'\372A$\n" + "\"dataplex.googleapis.com/AspectType\032\312\002\n" + "\006Status\022F\n" - + "\005state\030\001" - + " \001(\01622.google.cloud.dataplex.v1.MetadataJob.Status.StateB\003\340A\003\022\024\n" + + "\005state\030\001 \001(\01622.google.cloud.d" + + "ataplex.v1.MetadataJob.Status.StateB\003\340A\003\022\024\n" + "\007message\030\002 \001(\tB\003\340A\003\022\037\n" + "\022completion_percent\030\003 \001(\005B\003\340A\003\0224\n" + "\013update_time\030\004" @@ -761,14 +766,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006FAILED\020\006\022\031\n" + "\025SUCCEEDED_WITH_ERRORS\020\007\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"4\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\n\n" + "\006IMPORT\020\001\022\n\n" + "\006EXPORT\020\002:l\352Ai\n" - + "#dataplex.googleapis.com/MetadataJob\022Bprojects/{project}/lo" - + "cations/{location}/metadataJobs/{metadataJob}B\006\n" + + "#dataplex.googleapis.com/MetadataJob\022Bproje" + + "cts/{project}/locations/{location}/metadataJobs/{metadataJob}B\006\n" + "\004specB\010\n" + "\006result\"\202\005\n" + "\tEntryLink\022=\n" @@ -778,19 +784,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\022Q\n" + "\020entry_references\030\n" - + " \003(\01322.google.clo" - + "ud.dataplex.v1.EntryLink.EntryReferenceB\003\340A\002\032\271\001\n" + + " \003(\01322.google.cloud.dataplex.v1.EntryLink.EntryReferenceB\003\340A\002\032\271\001\n" + "\016EntryReference\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\005\022\021\n" + "\004path\030\002 \001(\tB\003\340A\005\022M\n" - + "\004type\030\003 \001(\01627" - + ".google.cloud.dataplex.v1.EntryLink.EntryReference.TypeB\006\340A\002\340A\005\"/\n" + + "\004type\030\003 \001(\01627.google.cloud.dataplex.v" + + "1.EntryLink.EntryReference.TypeB\006\340A\002\340A\005\"/\n" + "\004Type\022\017\n" + "\013UNSPECIFIED\020\000\022\n\n" + "\006SOURCE\020\002\022\n\n" + "\006TARGET\020\003:\231\001\352A\225\001\n" - + "!dataplex.googleapis.com/EntryLink\022Yprojects/{project}/locations/{location}/entr" - + "yGroups/{entry_group}/entryLinks/{entry_link}*\n" + + "!dataplex.googleapis.com/EntryLink\022Yprojects/{project}/locations" + + "/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}*\n" + "entryLinks2\tentryLink\"\256\001\n" + "\026CreateEntryLinkRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" @@ -814,153 +819,151 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030TRANSFER_STATUS_MIGRATED\020\001\022\037\n" + "\033TRANSFER_STATUS_TRANSFERRED\020\0022\336-\n" + "\016CatalogService\022\352\001\n" - + "\017CreateEntryType\0220.google.cloud.dataplex.v1.CreateEn" - + "tryTypeRequest\032\035.google.longrunning.Operation\"\205\001\312A\036\n" - + "\tEntryType\022\021OperationMetadat" - + "a\332A\037parent,entry_type,entry_type_id\202\323\344\223\002" - + "<\"./v1/{parent=projects/*/locations/*}/entryTypes:\n" + + "\017CreateEntryType\0220.google.cloud.data" + + "plex.v1.CreateEntryTypeRequest\032\035.google.longrunning.Operation\"\205\001\312A\036\n" + + "\tEntryType\022\021OperationMetadata\332A\037parent,entry_type,en" + + "try_type_id\202\323\344\223\002<\"./v1/{parent=projects/*/locations/*}/entryTypes:\n" + "entry_type\022\354\001\n" - + "\017UpdateEntryType\0220.google.cloud.dataplex.v1.UpdateEntry" - + "TypeRequest\032\035.google.longrunning.Operation\"\207\001\312A\036\n" - + "\tEntryType\022\021OperationMetadata\332A" - + "\026entry_type,update_mask\202\323\344\223\002G29/v1/{entr" - + "y_type.name=projects/*/locations/*/entryTypes/*}:\n" + + "\017UpdateEntryType\0220.google.cloud.dataple" + + "x.v1.UpdateEntryTypeRequest\032\035.google.longrunning.Operation\"\207\001\312A\036\n" + + "\tEntryType\022\021OperationMetadata\332A\026entry_type,update_mask\202" + + "\323\344\223\002G29/v1/{entry_type.name=projects/*/locations/*/entryTypes/*}:\n" + "entry_type\022\316\001\n" - + "\017DeleteEntryType\0220.google.cloud.dataplex.v1.DeleteEntryT" - + "ypeRequest\032\035.google.longrunning.Operation\"j\312A*\n" - + "\025google.protobuf.Empty\022\021Operation" - + "Metadata\332A\004name\202\323\344\223\0020*./v1/{name=projects/*/locations/*/entryTypes/*}\022\264\001\n" - + "\016ListEntryTypes\022/.google.cloud.dataplex.v1.List" - + "EntryTypesRequest\0320.google.cloud.dataple" - + "x.v1.ListEntryTypesResponse\"?\332A\006parent\202\323" - + "\344\223\0020\022./v1/{parent=projects/*/locations/*}/entryTypes\022\241\001\n" - + "\014GetEntryType\022-.google.cloud.dataplex.v1.GetEntryTypeRequest\032#.g" - + "oogle.cloud.dataplex.v1.EntryType\"=\332A\004na" - + "me\202\323\344\223\0020\022./v1/{name=projects/*/locations/*/entryTypes/*}\022\361\001\n" - + "\020CreateAspectType\0221.google.cloud.dataplex.v1.CreateAspectTyp" - + "eRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" - + "AspectType\022\021OperationMetadata\332A!p" - + "arent,aspect_type,aspect_type_id\202\323\344\223\002>\"/" - + "/v1/{parent=projects/*/locations/*}/aspectTypes:\013aspect_type\022\363\001\n" - + "\020UpdateAspectType\0221.google.cloud.dataplex.v1.UpdateAspec" - + "tTypeRequest\032\035.google.longrunning.Operat", - "ion\"\214\001\312A\037\n\nAspectType\022\021OperationMetadata" - + "\332A\027aspect_type,update_mask\202\323\344\223\002J2;/v1/{a" - + "spect_type.name=projects/*/locations/*/a" - + "spectTypes/*}:\013aspect_type\022\321\001\n\020DeleteAsp" - + "ectType\0221.google.cloud.dataplex.v1.Delet" - + "eAspectTypeRequest\032\035.google.longrunning." - + "Operation\"k\312A*\n\025google.protobuf.Empty\022\021O" - + "perationMetadata\332A\004name\202\323\344\223\0021*//v1/{name" - + "=projects/*/locations/*/aspectTypes/*}\022\270" - + "\001\n\017ListAspectTypes\0220.google.cloud.datapl" - + "ex.v1.ListAspectTypesRequest\0321.google.cl" - + "oud.dataplex.v1.ListAspectTypesResponse\"" - + "@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*" - + "/locations/*}/aspectTypes\022\245\001\n\rGetAspectT" - + "ype\022..google.cloud.dataplex.v1.GetAspect" - + "TypeRequest\032$.google.cloud.dataplex.v1.A" - + "spectType\">\332A\004name\202\323\344\223\0021\022//v1/{name=proj" - + "ects/*/locations/*/aspectTypes/*}\022\361\001\n\020Cr" - + "eateEntryGroup\0221.google.cloud.dataplex.v" - + "1.CreateEntryGroupRequest\032\035.google.longr" - + "unning.Operation\"\212\001\312A\037\n\nEntryGroup\022\021Oper" - + "ationMetadata\332A!parent,entry_group,entry" - + "_group_id\202\323\344\223\002>\"//v1/{parent=projects/*/" - + "locations/*}/entryGroups:\013entry_group\022\363\001" - + "\n\020UpdateEntryGroup\0221.google.cloud.datapl" - + "ex.v1.UpdateEntryGroupRequest\032\035.google.l" - + "ongrunning.Operation\"\214\001\312A\037\n\nEntryGroup\022\021" - + "OperationMetadata\332A\027entry_group,update_m" - + "ask\202\323\344\223\002J2;/v1/{entry_group.name=project" - + "s/*/locations/*/entryGroups/*}:\013entry_gr" - + "oup\022\321\001\n\020DeleteEntryGroup\0221.google.cloud." - + "dataplex.v1.DeleteEntryGroupRequest\032\035.go" - + "ogle.longrunning.Operation\"k\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\0021*//v1/{name=projects/*/locations/*" - + "/entryGroups/*}\022\270\001\n\017ListEntryGroups\0220.go" - + "ogle.cloud.dataplex.v1.ListEntryGroupsRe" - + "quest\0321.google.cloud.dataplex.v1.ListEnt" - + "ryGroupsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{" - + "parent=projects/*/locations/*}/entryGrou" - + "ps\022\245\001\n\rGetEntryGroup\022..google.cloud.data" - + "plex.v1.GetEntryGroupRequest\032$.google.cl" - + "oud.dataplex.v1.EntryGroup\">\332A\004name\202\323\344\223\002" - + "1\022//v1/{name=projects/*/locations/*/entr" - + "yGroups/*}\022\276\001\n\013CreateEntry\022,.google.clou" - + "d.dataplex.v1.CreateEntryRequest\032\037.googl" - + "e.cloud.dataplex.v1.Entry\"`\332A\025parent,ent" - + "ry,entry_id\202\323\344\223\002B\"9/v1/{parent=projects/" - + "*/locations/*/entryGroups/*}/entries:\005en" - + "try\022\301\001\n\013UpdateEntry\022,.google.cloud.datap" - + "lex.v1.UpdateEntryRequest\032\037.google.cloud" - + ".dataplex.v1.Entry\"c\332A\021entry,update_mask" - + "\202\323\344\223\002I2@/v1/{entry.name=projects/*/locat" - + "ions/*/entryGroups/*/entries/**}:\005entry\022" - + "\247\001\n\013DeleteEntry\022,.google.cloud.dataplex." - + "v1.DeleteEntryRequest\032\037.google.cloud.dat" - + "aplex.v1.Entry\"I\332A\004name\202\323\344\223\002<*:/v1/{name" - + "=projects/*/locations/*/entryGroups/*/en" - + "tries/**}\022\266\001\n\013ListEntries\022,.google.cloud" - + ".dataplex.v1.ListEntriesRequest\032-.google" - + ".cloud.dataplex.v1.ListEntriesResponse\"J" - + "\332A\006parent\202\323\344\223\002;\0229/v1/{parent=projects/*/" - + "locations/*/entryGroups/*}/entries\022\241\001\n\010G" - + "etEntry\022).google.cloud.dataplex.v1.GetEn" - + "tryRequest\032\037.google.cloud.dataplex.v1.En" - + "try\"I\332A\004name\202\323\344\223\002<\022:/v1/{name=projects/*" - + "/locations/*/entryGroups/*/entries/**}\022\223" - + "\001\n\013LookupEntry\022,.google.cloud.dataplex.v" - + "1.LookupEntryRequest\032\037.google.cloud.data" - + "plex.v1.Entry\"5\202\323\344\223\002/\022-/v1/{name=project" - + "s/*/locations/*}:lookupEntry\022\266\001\n\rSearchE" - + "ntries\022..google.cloud.dataplex.v1.Search" - + "EntriesRequest\032/.google.cloud.dataplex.v" - + "1.SearchEntriesResponse\"D\332A\nname,query\202\323" - + "\344\223\0021\"//v1/{name=projects/*/locations/*}:" - + "searchEntries\022\370\001\n\021CreateMetadataJob\0222.go" - + "ogle.cloud.dataplex.v1.CreateMetadataJob" - + "Request\032\035.google.longrunning.Operation\"\217" - + "\001\312A \n\013MetadataJob\022\021OperationMetadata\332A#p" - + "arent,metadata_job,metadata_job_id\202\323\344\223\002@" - + "\"0/v1/{parent=projects/*/locations/*}/me" - + "tadataJobs:\014metadata_job\022\251\001\n\016GetMetadata" - + "Job\022/.google.cloud.dataplex.v1.GetMetada" - + "taJobRequest\032%.google.cloud.dataplex.v1." - + "MetadataJob\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=pr" - + "ojects/*/locations/*/metadataJobs/*}\022\274\001\n" - + "\020ListMetadataJobs\0221.google.cloud.dataple" - + "x.v1.ListMetadataJobsRequest\0322.google.cl" - + "oud.dataplex.v1.ListMetadataJobsResponse" - + "\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/" - + "*/locations/*}/metadataJobs\022\252\001\n\021CancelMe" - + "tadataJob\0222.google.cloud.dataplex.v1.Can" - + "celMetadataJobRequest\032\026.google.protobuf." - + "Empty\"I\332A\004name\202\323\344\223\002<\"7/v1/{name=projects" - + "/*/locations/*/metadataJobs/*}:cancel:\001*" - + "\022\334\001\n\017CreateEntryLink\0220.google.cloud.data" - + "plex.v1.CreateEntryLinkRequest\032#.google." - + "cloud.dataplex.v1.EntryLink\"r\332A\037parent,e" - + "ntry_link,entry_link_id\202\323\344\223\002J\"*\022\"//v1/{parent=projects/*/l" + + "ocations/*}/aspectTypes:\013aspect_type\022\363\001\n" + + "\020UpdateAspectType\0221.google.cloud.dataple" + + "x.v1.UpdateAspectTypeRequest\032\035.google.lo" + + "ngrunning.Operation\"\214\001\312A\037\n\nAspectType\022\021O" + + "perationMetadata\332A\027aspect_type,update_ma" + + "sk\202\323\344\223\002J2;/v1/{aspect_type.name=projects" + + "/*/locations/*/aspectTypes/*}:\013aspect_ty" + + "pe\022\321\001\n\020DeleteAspectType\0221.google.cloud.d" + + "ataplex.v1.DeleteAspectTypeRequest\032\035.goo" + + "gle.longrunning.Operation\"k\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\0021*//v1/{name=projects/*/locations/*/" + + "aspectTypes/*}\022\270\001\n\017ListAspectTypes\0220.goo" + + "gle.cloud.dataplex.v1.ListAspectTypesReq" + + "uest\0321.google.cloud.dataplex.v1.ListAspe" + + "ctTypesResponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{p" + + "arent=projects/*/locations/*}/aspectType" + + "s\022\245\001\n\rGetAspectType\022..google.cloud.datap" + + "lex.v1.GetAspectTypeRequest\032$.google.clo" + + "ud.dataplex.v1.AspectType\">\332A\004name\202\323\344\223\0021" + + "\022//v1/{name=projects/*/locations/*/aspec" + + "tTypes/*}\022\361\001\n\020CreateEntryGroup\0221.google." + + "cloud.dataplex.v1.CreateEntryGroupReques" + + "t\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" + + "EntryGroup\022\021OperationMetadata\332A!parent,e" + + "ntry_group,entry_group_id\202\323\344\223\002>\"//v1/{pa" + + "rent=projects/*/locations/*}/entryGroups" + + ":\013entry_group\022\363\001\n\020UpdateEntryGroup\0221.goo" + + "gle.cloud.dataplex.v1.UpdateEntryGroupRe" + + "quest\032\035.google.longrunning.Operation\"\214\001\312" + + "A\037\n\nEntryGroup\022\021OperationMetadata\332A\027entr" + + "y_group,update_mask\202\323\344\223\002J2;/v1/{entry_gr" + + "oup.name=projects/*/locations/*/entryGro" + + "ups/*}:\013entry_group\022\321\001\n\020DeleteEntryGroup" + + "\0221.google.cloud.dataplex.v1.DeleteEntryG" + + "roupRequest\032\035.google.longrunning.Operati" + + "on\"k\312A*\n\025google.protobuf.Empty\022\021Operatio" + + "nMetadata\332A\004name\202\323\344\223\0021*//v1/{name=projec" + + "ts/*/locations/*/entryGroups/*}\022\270\001\n\017List" + + "EntryGroups\0220.google.cloud.dataplex.v1.L" + + "istEntryGroupsRequest\0321.google.cloud.dat" + + "aplex.v1.ListEntryGroupsResponse\"@\332A\006par" + + "ent\202\323\344\223\0021\022//v1/{parent=projects/*/locati" + + "ons/*}/entryGroups\022\245\001\n\rGetEntryGroup\022..g" + + "oogle.cloud.dataplex.v1.GetEntryGroupReq" + + "uest\032$.google.cloud.dataplex.v1.EntryGro" + + "up\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/" + + "locations/*/entryGroups/*}\022\276\001\n\013CreateEnt" + + "ry\022,.google.cloud.dataplex.v1.CreateEntr" + + "yRequest\032\037.google.cloud.dataplex.v1.Entr" + + "y\"`\332A\025parent,entry,entry_id\202\323\344\223\002B\"9/v1/{" + + "parent=projects/*/locations/*/entryGroup" + + "s/*}/entries:\005entry\022\301\001\n\013UpdateEntry\022,.go" + + "ogle.cloud.dataplex.v1.UpdateEntryReques" + + "t\032\037.google.cloud.dataplex.v1.Entry\"c\332A\021e" + + "ntry,update_mask\202\323\344\223\002I2@/v1/{entry.name=" + + "projects/*/locations/*/entryGroups/*/ent" + + "ries/**}:\005entry\022\247\001\n\013DeleteEntry\022,.google" + + ".cloud.dataplex.v1.DeleteEntryRequest\032\037." + + "google.cloud.dataplex.v1.Entry\"I\332A\004name\202" + + "\323\344\223\002<*:/v1/{name=projects/*/locations/*/" + + "entryGroups/*/entries/**}\022\266\001\n\013ListEntrie" + + "s\022,.google.cloud.dataplex.v1.ListEntries" + + "Request\032-.google.cloud.dataplex.v1.ListE" + + "ntriesResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{pa" + + "rent=projects/*/locations/*/entryGroups/" + + "*}/entries\022\241\001\n\010GetEntry\022).google.cloud.d" + + "ataplex.v1.GetEntryRequest\032\037.google.clou" + + "d.dataplex.v1.Entry\"I\332A\004name\202\323\344\223\002<\022:/v1/" + + "{name=projects/*/locations/*/entryGroups" + + "/*/entries/**}\022\223\001\n\013LookupEntry\022,.google." + + "cloud.dataplex.v1.LookupEntryRequest\032\037.g" + + "oogle.cloud.dataplex.v1.Entry\"5\202\323\344\223\002/\022-/" + + "v1/{name=projects/*/locations/*}:lookupE" + + "ntry\022\266\001\n\rSearchEntries\022..google.cloud.da" + + "taplex.v1.SearchEntriesRequest\032/.google." + + "cloud.dataplex.v1.SearchEntriesResponse\"" + + "D\332A\nname,query\202\323\344\223\0021\"//v1/{name=projects" + + "/*/locations/*}:searchEntries\022\370\001\n\021Create" + + "MetadataJob\0222.google.cloud.dataplex.v1.C" + + "reateMetadataJobRequest\032\035.google.longrun" + + "ning.Operation\"\217\001\312A \n\013MetadataJob\022\021Opera" + + "tionMetadata\332A#parent,metadata_job,metad" + + "ata_job_id\202\323\344\223\002@\"0/v1/{parent=projects/*" + + "/locations/*}/metadataJobs:\014metadata_job" + + "\022\251\001\n\016GetMetadataJob\022/.google.cloud.datap" + + "lex.v1.GetMetadataJobRequest\032%.google.cl" + + "oud.dataplex.v1.MetadataJob\"?\332A\004name\202\323\344\223" + + "\0022\0220/v1/{name=projects/*/locations/*/met" + + "adataJobs/*}\022\274\001\n\020ListMetadataJobs\0221.goog" + + "le.cloud.dataplex.v1.ListMetadataJobsReq" + + "uest\0322.google.cloud.dataplex.v1.ListMeta" + + "dataJobsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{" + + "parent=projects/*/locations/*}/metadataJ" + + "obs\022\252\001\n\021CancelMetadataJob\0222.google.cloud" + + ".dataplex.v1.CancelMetadataJobRequest\032\026." + + "google.protobuf.Empty\"I\332A\004name\202\323\344\223\002<\"7/v" + + "1/{name=projects/*/locations/*/metadataJ" + + "obs/*}:cancel:\001*\022\334\001\n\017CreateEntryLink\0220.g" + + "oogle.cloud.dataplex.v1.CreateEntryLinkR" + + "equest\032#.google.cloud.dataplex.v1.EntryL" + + "ink\"r\332A\037parent,entry_link,entry_link_id\202" + + "\323\344\223\002J\"*\022\n" - + "\004name\030\001 \001(\tB0\340A\010\372A*\n" - + "(dataplex.googleapis.com/EncryptionConfig\022\020\n" - + "\003key\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\022Y\n" - + "\020encryption_state\030\005 \001(\0162:.google.cl" - + "oud.dataplex.v1.EncryptionConfig.EncryptionStateB\003\340A\003\022\014\n" - + "\004etag\030\006 \001(\t\022W\n" - + "\017failure_details\030\007" - + " \001(\01329.google.cloud.dataplex.v1.EncryptionConfig.FailureDetailsB\003\340A\003\032\321\001\n" - + "\016FailureDetails\022\\\n\n" - + "error_code\030\001 \001(\0162C.go" - + "ogle.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCodeB\003\340A\003\022\032\n\r" - + "error_message\030\002 \001(\tB\003\340A\003\"E\n" - + "\tErrorCode\022\013\n" - + "\007UNKNOWN\020\000\022\022\n" - + "\016INTERNAL_ERROR\020\001\022\027\n" - + "\023REQUIRE_USER_ACTION\020\002\"^\n" - + "\017EncryptionState\022 \n" - + "\034ENCRYPTION_STATE_UNSPECIFIED\020\000\022\016\n\n" - + "ENCRYPTING\020\001\022\r\n" - + "\tCOMPLETED\020\002\022\n\n" - + "\006FAILED\020\003:\207\001\352A\203\001\n" - + "(dataplex.googleapis.com/EncryptionConfig\022Worgan" - + "izations/{organization}/locations/{locat" - + "ion}/encryptionConfigs/{encryption_config}\"\324\001\n" - + "\035CreateEncryptionConfigRequest\022D\n" - + "\006parent\030\001 \001(\tB4\340A\002\372A.\n" - + ",dataplex.googleapis.com/OrganizationLocation\022!\n" - + "\024encryption_config_id\030\002 \001(\tB\003\340A\002\022J\n" - + "\021encryption_config\030\003" - + " \001(\0132*.google.cloud.dataplex.v1.EncryptionConfigB\003\340A\002\"\\\n" - + "\032GetEncryptionConfigRequest\022>\n" - + "\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(dataplex.googleapis.com/EncryptionConfig\"\241\001\n" - + "\035UpdateEncryptionConfigRequest\022J\n" - + "\021encryption_config\030\001" - + " \001(\0132*.google.cloud.dataplex.v1.EncryptionConfigB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"r\n" - + "\035DeleteEncryptionConfigRequest\022>\n" - + "\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(dataplex.googleapis.com/EncryptionConfig\022\021\n" - + "\004etag\030\002 \001(\tB\003\340A\001\"\275\001\n" - + "\034ListEncryptionConfigsRequest\022@\n" - + "\006parent\030\001 \001(\t" - + "B0\340A\002\372A*\022(dataplex.googleapis.com/EncryptionConfig\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\"\307\001\n" - + "\035ListEncryptionConfigsResponse\022F\n" - + "\022encryption_configs\030\001" - + " \003(\0132*.google.cloud.dataplex.v1.EncryptionConfig\022\027\n" - + "\017next_page_token\030\002 \001(\t\022E\n" - + "\025unreachable_locations\030\003 \003(\tB&\372A#\n" - + "!locations.googleapis.com/Location2\252\n\n" - + "\013CmekService\022\240\002\n" - + "\026CreateEncryptionConfig\0227.google.cloud.dataplex.v1.CreateEncryptionConfigRe" - + "quest\032\035.google.longrunning.Operation\"\255\001\312A%\n" - + "\020EncryptionConfig\022\021OperationMetadata\332" - + "A-parent,encryption_config,encryption_co" - + "nfig_id\202\323\344\223\002O\":/v1/{parent=organizations" - + "/*/locations/*}/encryptionConfigs:\021encryption_config\022\242\002\n" - + "\026UpdateEncryptionConfig\0227.google.cloud.dataplex.v1.UpdateEncrypt" - + "ionConfigRequest\032\035.google.longrunning.Operation\"\257\001\312A%\n" - + "\020EncryptionConfig\022\021OperationMetadata\332A\035encryption_config,update_ma" - + "sk\202\323\344\223\002a2L/v1/{encryption_config.name=or" - + "ganizations/*/locations/*/encryptionConfigs/*}:\021encryption_config\022\350\001\n" - + "\026DeleteEncryptionConfig\0227.google.cloud.dataplex.v1." - + "DeleteEncryptionConfigRequest\032\035.google.longrunning.Operation\"v\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002<" - + "*:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\022\325\001\n" - + "\025ListEncryptionConfigs\0226.google.cloud.dataplex.v1.ListEn" - + "cryptionConfigsRequest\0327.google.cloud.dataplex.v1.ListEncryptionConfigsResponse\"" - + "K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=organizations/*/locations/*}/encryptionConfigs\022\302\001\n" - + "\023GetEncryptionConfig\0224.google.cloud.data" - + "plex.v1.GetEncryptionConfigRequest\032*.google.cloud.dataplex.v1.EncryptionConfig\"I" - + "\332A\004name\202\323\344\223\002<\022:/v1/{name=organizations/*" - + "/locations/*/encryptionConfigs/*}\032K\312A\027da" - + "taplex.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\235\002\n" - + "\034com.google.cloud.dataplex.v1B\tCmekProtoP\001Z8cl" - + "oud.google.com/go/dataplex/apiv1/dataple" - + "xpb;dataplexpb\252\002\030Google.Cloud.Dataplex.V" - + "1\312\002\030Google\\Cloud\\Dataplex\\V1\352\002\033Google::Cloud::Dataplex::V1\352Aa\n" - + ",dataplex.googleapis.com/OrganizationLocation\0221organizatio" - + "ns/{organization}/locations/{location}b\006proto3" + + "api/resource.proto\032&google/cloud/dataple" + + "x/v1/service.proto\032#google/longrunning/o" + + "perations.proto\032\033google/protobuf/empty.p" + + "roto\032 google/protobuf/field_mask.proto\032\037" + + "google/protobuf/timestamp.proto\"\372\006\n\020Encr" + + "yptionConfig\022>\n\004name\030\001 \001(\tB0\340A\010\372A*\n(data" + + "plex.googleapis.com/EncryptionConfig\022\020\n\003" + + "key\030\002 \001(\tB\003\340A\001\0224\n\013create_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022Y\n\020encryption_state\030\005 \001(\0162:.google.cl" + + "oud.dataplex.v1.EncryptionConfig.Encrypt" + + "ionStateB\003\340A\003\022\014\n\004etag\030\006 \001(\t\022W\n\017failure_d" + + "etails\030\007 \001(\01329.google.cloud.dataplex.v1." + + "EncryptionConfig.FailureDetailsB\003\340A\003\022(\n\033" + + "enable_metastore_encryption\030\010 \001(\010B\003\340A\001\032\321" + + "\001\n\016FailureDetails\022\\\n\nerror_code\030\001 \001(\0162C." + + "google.cloud.dataplex.v1.EncryptionConfi" + + "g.FailureDetails.ErrorCodeB\003\340A\003\022\032\n\rerror" + + "_message\030\002 \001(\tB\003\340A\003\"E\n\tErrorCode\022\013\n\007UNKN" + + "OWN\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\027\n\023REQUIRE_USE" + + "R_ACTION\020\002\"^\n\017EncryptionState\022 \n\034ENCRYPT" + + "ION_STATE_UNSPECIFIED\020\000\022\016\n\nENCRYPTING\020\001\022" + + "\r\n\tCOMPLETED\020\002\022\n\n\006FAILED\020\003:\207\001\352A\203\001\n(datap" + + "lex.googleapis.com/EncryptionConfig\022Worg" + + "anizations/{organization}/locations/{loc" + + "ation}/encryptionConfigs/{encryption_con" + + "fig}\"\324\001\n\035CreateEncryptionConfigRequest\022D" + + "\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,dataplex.googlea" + + "pis.com/OrganizationLocation\022!\n\024encrypti" + + "on_config_id\030\002 \001(\tB\003\340A\002\022J\n\021encryption_co" + + "nfig\030\003 \001(\0132*.google.cloud.dataplex.v1.En" + + "cryptionConfigB\003\340A\002\"\\\n\032GetEncryptionConf" + + "igRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dataple" + + "x.googleapis.com/EncryptionConfig\"\241\001\n\035Up" + + "dateEncryptionConfigRequest\022J\n\021encryptio" + + "n_config\030\001 \001(\0132*.google.cloud.dataplex.v" + + "1.EncryptionConfigB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"r\n" + + "\035DeleteEncryptionConfigRequest\022>\n\004name\030\001" + + " \001(\tB0\340A\002\372A*\n(dataplex.googleapis.com/En" + + "cryptionConfig\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"\275\001\n\034Li" + + "stEncryptionConfigsRequest\022@\n\006parent\030\001 \001" + + "(\tB0\340A\002\372A*\022(dataplex.googleapis.com/Encr" + + "yptionConfig\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\340" + + "A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\307\001\n\035ListEncryp" + + "tionConfigsResponse\022F\n\022encryption_config" + + "s\030\001 \003(\0132*.google.cloud.dataplex.v1.Encry" + + "ptionConfig\022\027\n\017next_page_token\030\002 \001(\t\022E\n\025" + + "unreachable_locations\030\003 \003(\tB&\372A#\n!locati" + + "ons.googleapis.com/Location2\252\n\n\013CmekServ" + + "ice\022\240\002\n\026CreateEncryptionConfig\0227.google." + + "cloud.dataplex.v1.CreateEncryptionConfig" + + "Request\032\035.google.longrunning.Operation\"\255" + + "\001\312A%\n\020EncryptionConfig\022\021OperationMetadat" + + "a\332A-parent,encryption_config,encryption_" + + "config_id\202\323\344\223\002O\":/v1/{parent=organizatio" + + "ns/*/locations/*}/encryptionConfigs:\021enc" + + "ryption_config\022\242\002\n\026UpdateEncryptionConfi" + + "g\0227.google.cloud.dataplex.v1.UpdateEncry" + + "ptionConfigRequest\032\035.google.longrunning." + + "Operation\"\257\001\312A%\n\020EncryptionConfig\022\021Opera" + + "tionMetadata\332A\035encryption_config,update_" + + "mask\202\323\344\223\002a2L/v1/{encryption_config.name=" + + "organizations/*/locations/*/encryptionCo" + + "nfigs/*}:\021encryption_config\022\350\001\n\026DeleteEn" + + "cryptionConfig\0227.google.cloud.dataplex.v" + + "1.DeleteEncryptionConfigRequest\032\035.google" + + ".longrunning.Operation\"v\312A*\n\025google.prot" + + "obuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223" + + "\002<*:/v1/{name=organizations/*/locations/" + + "*/encryptionConfigs/*}\022\325\001\n\025ListEncryptio" + + "nConfigs\0226.google.cloud.dataplex.v1.List" + + "EncryptionConfigsRequest\0327.google.cloud." + + "dataplex.v1.ListEncryptionConfigsRespons" + + "e\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=organiza" + + "tions/*/locations/*}/encryptionConfigs\022\302" + + "\001\n\023GetEncryptionConfig\0224.google.cloud.da" + + "taplex.v1.GetEncryptionConfigRequest\032*.g" + + "oogle.cloud.dataplex.v1.EncryptionConfig" + + "\"I\332A\004name\202\323\344\223\002<\022:/v1/{name=organizations" + + "/*/locations/*/encryptionConfigs/*}\032K\312A\027" + + "dataplex.googleapis.com\322A.https://www.go" + + "ogleapis.com/auth/cloud-platformB\235\002\n\034com" + + ".google.cloud.dataplex.v1B\tCmekProtoP\001Z8" + + "cloud.google.com/go/dataplex/apiv1/datap" + + "lexpb;dataplexpb\252\002\030Google.Cloud.Dataplex" + + ".V1\312\002\030Google\\Cloud\\Dataplex\\V1\352\002\033Google:" + + ":Cloud::Dataplex::V1\352Aa\n,dataplex.google" + + "apis.com/OrganizationLocation\0221organizat" + + "ions/{organization}/locations/{location}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -192,6 +194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionState", "Etag", "FailureDetails", + "EnableMetastoreEncryption", }); internal_static_google_cloud_dataplex_v1_EncryptionConfig_FailureDetails_descriptor = internal_static_google_cloud_dataplex_v1_EncryptionConfig_descriptor diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationProto.java new file mode 100644 index 000000000000..0dcc0e662c88 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationProto.java @@ -0,0 +1,162 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dataplex/v1/data_documentation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dataplex.v1; + +public final class DataDocumentationProto { + private DataDocumentationProto() {} + + 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_dataplex_v1_DataDocumentationSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataDocumentationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_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" + + "1google/cloud/dataplex/v1/data_document" + + "ation.proto\022\030google.cloud.dataplex.v1\032\037google/api/field_behavior.proto\"\027\n" + + "\025DataDocumentationSpec\"\351\004\n" + + "\027DataDocumentationResult\022Z\n" + + "\014table_result\030\010 \001(\0132=.google.cloud" + + ".dataplex.v1.DataDocumentationResult.TableResultB\003\340A\003H\000\032\325\001\n" + + "\013TableResult\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\025\n" + + "\010overview\030\002 \001(\tB\003\340A\003\022M\n" + + "\006schema\030\003" + + " \001(\01328.google.cloud.dataplex.v1.DataDocumentationResult.SchemaB\003\340A\003\022M\n" + + "\007queries\030\004" + + " \003(\01327.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\003\340A\003\0323\n" + + "\005Query\022\020\n" + + "\003sql\030\001 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\003\032V\n" + + "\006Schema\022L\n" + + "\006fields\030\001 \003(\01327.google." + + "cloud.dataplex.v1.DataDocumentationResult.FieldB\003\340A\003\032\202\001\n" + + "\005Field\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\003\022L\n" + + "\006fields\030\003 " + + "\003(\01327.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\003\340A\003B\010\n" + + "\006resultBr\n" + + "\034com.google.cloud.dataplex.v1B\026DataDocumen" + + "tationProtoP\001Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_dataplex_v1_DataDocumentationSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataplex_v1_DataDocumentationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataDocumentationSpec_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor, + new java.lang.String[] { + "TableResult", "Result", + }); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor = + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor, + new java.lang.String[] { + "Name", "Overview", "Schema", "Queries", + }); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_descriptor = + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_descriptor, + new java.lang.String[] { + "Sql", "Description", + }); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_descriptor = + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_descriptor, + new java.lang.String[] { + "Fields", + }); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_descriptor = + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_descriptor, + new java.lang.String[] { + "Name", "Description", "Fields", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResult.java new file mode 100644 index 000000000000..9396710e7454 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResult.java @@ -0,0 +1,6277 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dataplex/v1/data_documentation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dataplex.v1; + +/** + * + * + *
                                          + * The output of a DataDocumentation scan.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult} + */ +public final class DataDocumentationResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult) + DataDocumentationResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DataDocumentationResult.newBuilder() to construct. + private DataDocumentationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataDocumentationResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataDocumentationResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder.class); + } + + public interface TableResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The service-qualified full resource name of the cloud
                                          +     * resource. Ex:
                                          +     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +     * Output only. The service-qualified full resource name of the cloud
                                          +     * resource. Ex:
                                          +     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                          +     * Output only. Generated description of the table.
                                          +     * 
                                          + * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The overview. + */ + java.lang.String getOverview(); + + /** + * + * + *
                                          +     * Output only. Generated description of the table.
                                          +     * 
                                          + * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for overview. + */ + com.google.protobuf.ByteString getOverviewBytes(); + + /** + * + * + *
                                          +     * Output only. Schema of the table with generated metadata of the columns
                                          +     * in the schema.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the schema field is set. + */ + boolean hasSchema(); + + /** + * + * + *
                                          +     * Output only. Schema of the table with generated metadata of the columns
                                          +     * in the schema.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The schema. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema(); + + /** + * + * + *
                                          +     * Output only. Schema of the table with generated metadata of the columns
                                          +     * in the schema.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder getSchemaOrBuilder(); + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getQueriesList(); + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.Query getQueries(int index); + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getQueriesCount(); + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getQueriesOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder getQueriesOrBuilder( + int index); + } + + /** + * + * + *
                                          +   * Generated metadata about the table.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.TableResult} + */ + public static final class TableResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + TableResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TableResult.newBuilder() to construct. + private TableResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableResult() { + name_ = ""; + overview_ = ""; + queries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TableResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +     * Output only. The service-qualified full resource name of the cloud
                                          +     * resource. Ex:
                                          +     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +     * Output only. The service-qualified full resource name of the cloud
                                          +     * resource. Ex:
                                          +     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 OVERVIEW_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object overview_ = ""; + + /** + * + * + *
                                          +     * Output only. Generated description of the table.
                                          +     * 
                                          + * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The overview. + */ + @java.lang.Override + public java.lang.String getOverview() { + java.lang.Object ref = overview_; + 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(); + overview_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. Generated description of the table.
                                          +     * 
                                          + * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for overview. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overview_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 3; + private com.google.cloud.dataplex.v1.DataDocumentationResult.Schema schema_; + + /** + * + * + *
                                          +     * Output only. Schema of the table with generated metadata of the columns
                                          +     * in the schema.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Output only. Schema of the table with generated metadata of the columns
                                          +     * in the schema.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The schema. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema() { + return schema_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() + : schema_; + } + + /** + * + * + *
                                          +     * Output only. Schema of the table with generated metadata of the columns
                                          +     * in the schema.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder + getSchemaOrBuilder() { + return schema_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() + : schema_; + } + + public static final int QUERIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List queries_; + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getQueriesList() { + return queries_; + } + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> + getQueriesOrBuilderList() { + return queries_; + } + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getQueriesCount() { + return queries_.size(); + } + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query getQueries(int index) { + return queries_.get(index); + } + + /** + * + * + *
                                          +     * Output only. Sample SQL queries for the table.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder getQueriesOrBuilder( + int index) { + return queries_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(overview_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, overview_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSchema()); + } + for (int i = 0; i < queries_.size(); i++) { + output.writeMessage(4, queries_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(overview_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, overview_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSchema()); + } + for (int i = 0; i < queries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, queries_.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.cloud.dataplex.v1.DataDocumentationResult.TableResult)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult other = + (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) obj; + + if (!getName().equals(other.getName())) return false; + if (!getOverview().equals(other.getOverview())) return false; + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema().equals(other.getSchema())) return false; + } + if (!getQueriesList().equals(other.getQueriesList())) 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) + OVERVIEW_FIELD_NUMBER; + hash = (53 * hash) + getOverview().hashCode(); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + if (getQueriesCount() > 0) { + hash = (37 * hash) + QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getQueriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult 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.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult 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.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Generated metadata about the table.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.TableResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + getQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + overview_ = ""; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + } else { + queries_ = null; + queriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_TableResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult build() { + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result = + new com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result) { + if (queriesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.queries_ = queries_; + } else { + result.queries_ = queriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.overview_ = overview_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult other) { + if (other + == com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOverview().isEmpty()) { + overview_ = other.overview_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + if (queriesBuilder_ == null) { + if (!other.queries_.isEmpty()) { + if (queries_.isEmpty()) { + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureQueriesIsMutable(); + queries_.addAll(other.queries_); + } + onChanged(); + } + } else { + if (!other.queries_.isEmpty()) { + if (queriesBuilder_.isEmpty()) { + queriesBuilder_.dispose(); + queriesBuilder_ = null; + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000008); + queriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getQueriesFieldBuilder() + : null; + } else { + queriesBuilder_.addAllMessages(other.queries_); + } + } + } + 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: + { + overview_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.dataplex.v1.DataDocumentationResult.Query m = + input.readMessage( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.parser(), + extensionRegistry); + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(m); + } else { + queriesBuilder_.addMessage(m); + } + break; + } // case 34 + 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_ = ""; + + /** + * + * + *
                                          +       * Output only. The service-qualified full resource name of the cloud
                                          +       * resource. Ex:
                                          +       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +       * Output only. The service-qualified full resource name of the cloud
                                          +       * resource. Ex:
                                          +       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +       * Output only. The service-qualified full resource name of the cloud
                                          +       * resource. Ex:
                                          +       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
                                          +       * Output only. The service-qualified full resource name of the cloud
                                          +       * resource. Ex:
                                          +       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The service-qualified full resource name of the cloud
                                          +       * resource. Ex:
                                          +       * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 overview_ = ""; + + /** + * + * + *
                                          +       * Output only. Generated description of the table.
                                          +       * 
                                          + * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The overview. + */ + public java.lang.String getOverview() { + java.lang.Object ref = overview_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + overview_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. Generated description of the table.
                                          +       * 
                                          + * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for overview. + */ + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overview_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. Generated description of the table.
                                          +       * 
                                          + * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The overview to set. + * @return This builder for chaining. + */ + public Builder setOverview(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + overview_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Generated description of the table.
                                          +       * 
                                          + * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOverview() { + overview_ = getDefaultInstance().getOverview(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Generated description of the table.
                                          +       * 
                                          + * + * string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for overview to set. + * @return This builder for chaining. + */ + public Builder setOverviewBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + overview_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.dataplex.v1.DataDocumentationResult.Schema schema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema, + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder> + schemaBuilder_; + + /** + * + * + *
                                          +       * Output only. Schema of the table with generated metadata of the columns
                                          +       * in the schema.
                                          +       * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * Output only. Schema of the table with generated metadata of the columns
                                          +       * in the schema.
                                          +       * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The schema. + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() + : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Output only. Schema of the table with generated metadata of the columns
                                          +       * in the schema.
                                          +       * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSchema(com.google.cloud.dataplex.v1.DataDocumentationResult.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + } else { + schemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Schema of the table with generated metadata of the columns
                                          +       * in the schema.
                                          +       * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSchema( + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Schema of the table with generated metadata of the columns
                                          +       * in the schema.
                                          +       * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSchema( + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema value) { + if (schemaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && schema_ != null + && schema_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.Schema + .getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); + } else { + schema_ = value; + } + } else { + schemaBuilder_.mergeFrom(value); + } + if (schema_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Schema of the table with generated metadata of the columns
                                          +       * in the schema.
                                          +       * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSchema() { + bitField0_ = (bitField0_ & ~0x00000004); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Schema of the table with generated metadata of the columns
                                          +       * in the schema.
                                          +       * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder + getSchemaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Output only. Schema of the table with generated metadata of the columns
                                          +       * in the schema.
                                          +       * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder + getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null + ? com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance() + : schema_; + } + } + + /** + * + * + *
                                          +       * Output only. Schema of the table with generated metadata of the columns
                                          +       * in the schema.
                                          +       * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema, + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema, + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder>( + getSchema(), getParentForChildren(), isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + private java.util.List queries_ = + java.util.Collections.emptyList(); + + private void ensureQueriesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + queries_ = + new java.util.ArrayList( + queries_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Query, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> + queriesBuilder_; + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getQueriesList() { + if (queriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(queries_); + } else { + return queriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getQueriesCount() { + if (queriesBuilder_ == null) { + return queries_.size(); + } else { + return queriesBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query getQueries(int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); + } else { + return queriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQueries( + int index, com.google.cloud.dataplex.v1.DataDocumentationResult.Query value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.set(index, value); + onChanged(); + } else { + queriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQueries( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.set(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQueries(com.google.cloud.dataplex.v1.DataDocumentationResult.Query value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(value); + onChanged(); + } else { + queriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQueries( + int index, com.google.cloud.dataplex.v1.DataDocumentationResult.Query value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(index, value); + onChanged(); + } else { + queriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQueries( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQueries( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllQueries( + java.lang.Iterable + values) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queries_); + onChanged(); + } else { + queriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQueries() { + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + queriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeQueries(int index) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.remove(index); + onChanged(); + } else { + queriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder getQueriesBuilder( + int index) { + return getQueriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder + getQueriesOrBuilder(int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); + } else { + return queriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> + getQueriesOrBuilderList() { + if (queriesBuilder_ != null) { + return queriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queries_); + } + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder + addQueriesBuilder() { + return getQueriesFieldBuilder() + .addBuilder( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder addQueriesBuilder( + int index) { + return getQueriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Sample SQL queries for the table.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getQueriesBuilderList() { + return getQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Query, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder> + getQueriesFieldBuilder() { + if (queriesBuilder_ == null) { + queriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Query, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder>( + queries_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + queries_ = null; + } + return queriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult.TableResult) + private static final com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult(); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableResult 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.dataplex.v1.DataDocumentationResult.TableResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface QueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult.Query) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The SQL query string which can be executed.
                                          +     * 
                                          + * + * string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sql. + */ + java.lang.String getSql(); + + /** + * + * + *
                                          +     * Output only. The SQL query string which can be executed.
                                          +     * 
                                          + * + * string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sql. + */ + com.google.protobuf.ByteString getSqlBytes(); + + /** + * + * + *
                                          +     * Output only. The description for the query.
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                          +     * Output only. The description for the query.
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + } + + /** + * + * + *
                                          +   * A sample SQL query in data documentation.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.Query} + */ + public static final class Query extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult.Query) + QueryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Query.newBuilder() to construct. + private Query(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Query() { + sql_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Query(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder.class); + } + + public static final int SQL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sql_ = ""; + + /** + * + * + *
                                          +     * Output only. The SQL query string which can be executed.
                                          +     * 
                                          + * + * string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sql. + */ + @java.lang.Override + public java.lang.String getSql() { + java.lang.Object ref = sql_; + 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(); + sql_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The SQL query string which can be executed.
                                          +     * 
                                          + * + * string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sql. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlBytes() { + java.lang.Object ref = sql_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sql_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                          +     * Output only. The description for the query.
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +     * Output only. The description for the query.
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sql_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sql_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + 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.dataplex.v1.DataDocumentationResult.Query)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataDocumentationResult.Query other = + (com.google.cloud.dataplex.v1.DataDocumentationResult.Query) obj; + + if (!getSql().equals(other.getSql())) return false; + if (!getDescription().equals(other.getDescription())) 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) + SQL_FIELD_NUMBER; + hash = (53 * hash) + getSql().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query 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.dataplex.v1.DataDocumentationResult.Query parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query 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.dataplex.v1.DataDocumentationResult.Query parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * A sample SQL query in data documentation.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.Query} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult.Query) + com.google.cloud.dataplex.v1.DataDocumentationResult.QueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.Query.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataDocumentationResult.Query.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sql_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Query_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataDocumentationResult.Query.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query build() { + com.google.cloud.dataplex.v1.DataDocumentationResult.Query result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Query buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationResult.Query result = + new com.google.cloud.dataplex.v1.DataDocumentationResult.Query(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataplex.v1.DataDocumentationResult.Query result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sql_ = sql_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataDocumentationResult.Query) { + return mergeFrom((com.google.cloud.dataplex.v1.DataDocumentationResult.Query) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataDocumentationResult.Query other) { + if (other + == com.google.cloud.dataplex.v1.DataDocumentationResult.Query.getDefaultInstance()) + return this; + if (!other.getSql().isEmpty()) { + sql_ = other.sql_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: + { + sql_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = 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 sql_ = ""; + + /** + * + * + *
                                          +       * Output only. The SQL query string which can be executed.
                                          +       * 
                                          + * + * string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sql. + */ + public java.lang.String getSql() { + java.lang.Object ref = sql_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sql_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The SQL query string which can be executed.
                                          +       * 
                                          + * + * string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sql. + */ + public com.google.protobuf.ByteString getSqlBytes() { + java.lang.Object ref = sql_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sql_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The SQL query string which can be executed.
                                          +       * 
                                          + * + * string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sql to set. + * @return This builder for chaining. + */ + public Builder setSql(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sql_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The SQL query string which can be executed.
                                          +       * 
                                          + * + * string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSql() { + sql_ = getDefaultInstance().getSql(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The SQL query string which can be executed.
                                          +       * 
                                          + * + * string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sql to set. + * @return This builder for chaining. + */ + public Builder setSqlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sql_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                          +       * Output only. The description for the query.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +       * Output only. The description for the query.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +       * Output only. The description for the query.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The description for the query.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The description for the query.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult.Query) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult.Query) + private static final com.google.cloud.dataplex.v1.DataDocumentationResult.Query + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataDocumentationResult.Query(); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Query getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Query 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.dataplex.v1.DataDocumentationResult.Query getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult.Schema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getFieldsList(); + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.Field getFields(int index); + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getFieldsCount(); + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getFieldsOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder getFieldsOrBuilder( + int index); + } + + /** + * + * + *
                                          +   * Schema of the table with generated metadata of columns.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.Schema} + */ + public static final class Schema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult.Schema) + SchemaOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Schema() { + fields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Schema(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List fields_; + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getFieldsList() { + return fields_; + } + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder> + getFieldsOrBuilderList() { + return fields_; + } + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getFieldsCount() { + return fields_.size(); + } + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field getFields(int index) { + return fields_.get(index); + } + + /** + * + * + *
                                          +     * Output only. The list of columns.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder getFieldsOrBuilder( + int index) { + return fields_.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 < fields_.size(); i++) { + output.writeMessage(1, fields_.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 < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.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.cloud.dataplex.v1.DataDocumentationResult.Schema)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema other = + (com.google.cloud.dataplex.v1.DataDocumentationResult.Schema) obj; + + if (!getFieldsList().equals(other.getFieldsList())) 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 (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema 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.dataplex.v1.DataDocumentationResult.Schema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema 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.dataplex.v1.DataDocumentationResult.Schema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Schema of the table with generated metadata of columns.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.Schema} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult.Schema) + com.google.cloud.dataplex.v1.DataDocumentationResult.SchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + } else { + fields_ = null; + fieldsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Schema_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema build() { + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Schema buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema result = + new com.google.cloud.dataplex.v1.DataDocumentationResult.Schema(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema result) { + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataplex.v1.DataDocumentationResult.Schema result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataDocumentationResult.Schema) { + return mergeFrom((com.google.cloud.dataplex.v1.DataDocumentationResult.Schema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataDocumentationResult.Schema other) { + if (other + == com.google.cloud.dataplex.v1.DataDocumentationResult.Schema.getDefaultInstance()) + return this; + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + 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.dataplex.v1.DataDocumentationResult.Field m = + input.readMessage( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.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 fields_ = + java.util.Collections.emptyList(); + + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fields_ = + new java.util.ArrayList( + fields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Field, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder> + fieldsBuilder_; + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFields( + int index, com.google.cloud.dataplex.v1.DataDocumentationResult.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFields( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFields(com.google.cloud.dataplex.v1.DataDocumentationResult.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFields( + int index, com.google.cloud.dataplex.v1.DataDocumentationResult.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFields( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFields( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllFields( + java.lang.Iterable + values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + onChanged(); + } else { + fieldsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fieldsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder getFieldsBuilder( + int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder getFieldsOrBuilder( + int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder> + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); + } + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder addFieldsBuilder() { + return getFieldsFieldBuilder() + .addBuilder( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. The list of columns.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Field, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Field, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder>( + fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult.Schema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult.Schema) + private static final com.google.cloud.dataplex.v1.DataDocumentationResult.Schema + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataDocumentationResult.Schema(); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Schema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema 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.dataplex.v1.DataDocumentationResult.Schema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult.Field) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The name of the column.
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +     * Output only. The name of the column.
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                          +     * Output only. Generated description for columns and fields.
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                          +     * Output only. Generated description for columns and fields.
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getFieldsList(); + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.Field getFields(int index); + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getFieldsCount(); + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getFieldsOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder getFieldsOrBuilder( + int index); + } + + /** + * + * + *
                                          +   * Column of a table with generated metadata and nested fields.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.Field} + */ + public static final class Field extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationResult.Field) + FieldOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Field.newBuilder() to construct. + private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Field() { + name_ = ""; + description_ = ""; + fields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Field(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +     * Output only. The name of the column.
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +     * Output only. The name of the column.
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                          +     * Output only. Generated description for columns and fields.
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +     * Output only. Generated description for columns and fields.
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 FIELDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List fields_; + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getFieldsList() { + return fields_; + } + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder> + getFieldsOrBuilderList() { + return fields_; + } + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getFieldsCount() { + return fields_.size(); + } + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field getFields(int index) { + return fields_.get(index); + } + + /** + * + * + *
                                          +     * Output only. Nested fields.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder getFieldsOrBuilder( + int index) { + return fields_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + for (int i = 0; i < fields_.size(); i++) { + output.writeMessage(3, fields_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields_.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.cloud.dataplex.v1.DataDocumentationResult.Field)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataDocumentationResult.Field other = + (com.google.cloud.dataplex.v1.DataDocumentationResult.Field) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getFieldsList().equals(other.getFieldsList())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field 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.dataplex.v1.DataDocumentationResult.Field parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field 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.dataplex.v1.DataDocumentationResult.Field parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Column of a table with generated metadata and nested fields.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult.Field} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult.Field) + com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataDocumentationResult.Field.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + } else { + fields_ = null; + fieldsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_Field_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataDocumentationResult.Field.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field build() { + com.google.cloud.dataplex.v1.DataDocumentationResult.Field result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationResult.Field result = + new com.google.cloud.dataplex.v1.DataDocumentationResult.Field(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field result) { + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataDocumentationResult.Field) { + return mergeFrom((com.google.cloud.dataplex.v1.DataDocumentationResult.Field) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataDocumentationResult.Field other) { + if (other + == com.google.cloud.dataplex.v1.DataDocumentationResult.Field.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000004); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.dataplex.v1.DataDocumentationResult.Field m = + input.readMessage( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                          +       * Output only. The name of the column.
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +       * Output only. The name of the column.
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +       * Output only. The name of the column.
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
                                          +       * Output only. The name of the column.
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The name of the column.
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 description_ = ""; + + /** + * + * + *
                                          +       * Output only. Generated description for columns and fields.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +       * Output only. Generated description for columns and fields.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                          +       * Output only. Generated description for columns and fields.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Generated description for columns and fields.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Generated description for columns and fields.
                                          +       * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List fields_ = + java.util.Collections.emptyList(); + + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + fields_ = + new java.util.ArrayList( + fields_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Field, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder> + fieldsBuilder_; + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFields( + int index, com.google.cloud.dataplex.v1.DataDocumentationResult.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFields( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFields(com.google.cloud.dataplex.v1.DataDocumentationResult.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFields( + int index, com.google.cloud.dataplex.v1.DataDocumentationResult.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFields( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addFields( + int index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllFields( + java.lang.Iterable + values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + onChanged(); + } else { + fieldsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + fieldsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder getFieldsBuilder( + int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder getFieldsOrBuilder( + int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder> + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); + } + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder addFieldsBuilder() { + return getFieldsFieldBuilder() + .addBuilder( + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Nested fields.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Field, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.Field, + com.google.cloud.dataplex.v1.DataDocumentationResult.Field.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.FieldOrBuilder>( + fields_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult.Field) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult.Field) + private static final com.google.cloud.dataplex.v1.DataDocumentationResult.Field + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataDocumentationResult.Field(); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult.Field getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Field 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.dataplex.v1.DataDocumentationResult.Field getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TABLE_RESULT(8), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(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 ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 8: + return TABLE_RESULT; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int TABLE_RESULT_FIELD_NUMBER = 8; + + /** + * + * + *
                                          +   * Output only. Table result for insights.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the tableResult field is set. + */ + @java.lang.Override + public boolean hasTableResult() { + return resultCase_ == 8; + } + + /** + * + * + *
                                          +   * Output only. Table result for insights.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tableResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult getTableResult() { + if (resultCase_ == 8) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Output only. Table result for insights.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResultOrBuilder + getTableResultOrBuilder() { + if (resultCase_ == 8) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resultCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resultCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) result_); + } + 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.dataplex.v1.DataDocumentationResult)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataDocumentationResult other = + (com.google.cloud.dataplex.v1.DataDocumentationResult) obj; + + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 8: + if (!getTableResult().equals(other.getTableResult())) 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(); + switch (resultCase_) { + case 8: + hash = (37 * hash) + TABLE_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getTableResult().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult 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.dataplex.v1.DataDocumentationResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult 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.dataplex.v1.DataDocumentationResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataplex.v1.DataDocumentationResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * The output of a DataDocumentation scan.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationResult) + com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationResult.class, + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataDocumentationResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tableResultBuilder_ != null) { + tableResultBuilder_.clear(); + } + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult build() { + com.google.cloud.dataplex.v1.DataDocumentationResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationResult result = + new com.google.cloud.dataplex.v1.DataDocumentationResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataplex.v1.DataDocumentationResult result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dataplex.v1.DataDocumentationResult result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 8 && tableResultBuilder_ != null) { + result.result_ = tableResultBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataDocumentationResult) { + return mergeFrom((com.google.cloud.dataplex.v1.DataDocumentationResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataDocumentationResult other) { + if (other == com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance()) + return this; + switch (other.getResultCase()) { + case TABLE_RESULT: + { + mergeTableResult(other.getTableResult()); + break; + } + case RESULT_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 66: + { + input.readMessage(getTableResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 8; + 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 resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResultOrBuilder> + tableResultBuilder_; + + /** + * + * + *
                                          +     * Output only. Table result for insights.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the tableResult field is set. + */ + @java.lang.Override + public boolean hasTableResult() { + return resultCase_ == 8; + } + + /** + * + * + *
                                          +     * Output only. Table result for insights.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tableResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult getTableResult() { + if (tableResultBuilder_ == null) { + if (resultCase_ == 8) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + .getDefaultInstance(); + } else { + if (resultCase_ == 8) { + return tableResultBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. Table result for insights.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTableResult( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult value) { + if (tableResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + tableResultBuilder_.setMessage(value); + } + resultCase_ = 8; + return this; + } + + /** + * + * + *
                                          +     * Output only. Table result for insights.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTableResult( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder builderForValue) { + if (tableResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + tableResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 8; + return this; + } + + /** + * + * + *
                                          +     * Output only. Table result for insights.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTableResult( + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult value) { + if (tableResultBuilder_ == null) { + if (resultCase_ == 8 + && result_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + .getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.newBuilder( + (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 8) { + tableResultBuilder_.mergeFrom(value); + } else { + tableResultBuilder_.setMessage(value); + } + } + resultCase_ = 8; + return this; + } + + /** + * + * + *
                                          +     * Output only. Table result for insights.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTableResult() { + if (tableResultBuilder_ == null) { + if (resultCase_ == 8) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 8) { + resultCase_ = 0; + result_ = null; + } + tableResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Table result for insights.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder + getTableResultBuilder() { + return getTableResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Table result for insights.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult.TableResultOrBuilder + getTableResultOrBuilder() { + if ((resultCase_ == 8) && (tableResultBuilder_ != null)) { + return tableResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 8) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. Table result for insights.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResultOrBuilder> + getTableResultFieldBuilder() { + if (tableResultBuilder_ == null) { + if (!(resultCase_ == 8)) { + result_ = + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.getDefaultInstance(); + } + tableResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 8; + onChanged(); + return tableResultBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationResult) + private static final com.google.cloud.dataplex.v1.DataDocumentationResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataDocumentationResult(); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataDocumentationResult 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.dataplex.v1.DataDocumentationResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResultOrBuilder.java new file mode 100644 index 000000000000..cc37314cd8e3 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationResultOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dataplex/v1/data_documentation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dataplex.v1; + +public interface DataDocumentationResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Output only. Table result for insights.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the tableResult field is set. + */ + boolean hasTableResult(); + + /** + * + * + *
                                          +   * Output only. Table result for insights.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tableResult. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResult getTableResult(); + + /** + * + * + *
                                          +   * Output only. Table result for insights.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResult.TableResultOrBuilder + getTableResultOrBuilder(); + + com.google.cloud.dataplex.v1.DataDocumentationResult.ResultCase getResultCase(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationSpec.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationSpec.java new file mode 100644 index 000000000000..33b8cb2152eb --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationSpec.java @@ -0,0 +1,434 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dataplex/v1/data_documentation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dataplex.v1; + +/** + * + * + *
                                          + * DataDocumentation scan related spec.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationSpec} + */ +public final class DataDocumentationSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataDocumentationSpec) + DataDocumentationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DataDocumentationSpec.newBuilder() to construct. + private DataDocumentationSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataDocumentationSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataDocumentationSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationSpec.class, + com.google.cloud.dataplex.v1.DataDocumentationSpec.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.cloud.dataplex.v1.DataDocumentationSpec)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataDocumentationSpec other = + (com.google.cloud.dataplex.v1.DataDocumentationSpec) 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.cloud.dataplex.v1.DataDocumentationSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec 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.dataplex.v1.DataDocumentationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec 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.dataplex.v1.DataDocumentationSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataplex.v1.DataDocumentationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * DataDocumentation scan related spec.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dataplex.v1.DataDocumentationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataDocumentationSpec) + com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataDocumentationSpec.class, + com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataDocumentationSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.cloud.dataplex.v1.DataDocumentationProto + .internal_static_google_cloud_dataplex_v1_DataDocumentationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpec getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpec build() { + com.google.cloud.dataplex.v1.DataDocumentationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpec buildPartial() { + com.google.cloud.dataplex.v1.DataDocumentationSpec result = + new com.google.cloud.dataplex.v1.DataDocumentationSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataDocumentationSpec) { + return mergeFrom((com.google.cloud.dataplex.v1.DataDocumentationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataDocumentationSpec other) { + if (other == com.google.cloud.dataplex.v1.DataDocumentationSpec.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataDocumentationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataDocumentationSpec) + private static final com.google.cloud.dataplex.v1.DataDocumentationSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataDocumentationSpec(); + } + + public static com.google.cloud.dataplex.v1.DataDocumentationSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataDocumentationSpec 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.dataplex.v1.DataDocumentationSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationSpecOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationSpecOrBuilder.java new file mode 100644 index 000000000000..5060a0fa27f3 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDocumentationSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dataplex/v1/data_documentation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dataplex.v1; + +public interface DataDocumentationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataDocumentationSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileProto.java index e58e27e9bf7e..965a0fb34f67 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileProto.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileProto.java @@ -96,52 +96,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "+google/cloud/dataplex/v1/data_profile." + "proto\022\030google.cloud.dataplex.v1\032\037google/" - + "api/field_behavior.proto\032)google/cloud/dataplex/v1/processing.proto\"\250\004\n" + + "api/field_behavior.proto\032/google/cloud/d" + + "ataplex/v1/datascans_common.proto\032)google/cloud/dataplex/v1/processing.proto\"\321\004\n" + "\017DataProfileSpec\022\035\n" + "\020sampling_percent\030\002 \001(\002B\003\340A\001\022\027\n\n" + "row_filter\030\003 \001(\tB\003\340A\001\022Y\n" - + "\021post_scan_actions\030\004" - + " \001(\01329.google.cloud.dataplex.v1.DataProfileSpec.PostScanActionsB\003\340A\001\022U\n" - + "\016include_fields\030\005 \001(\01328.google.cloud.datapl" - + "ex.v1.DataProfileSpec.SelectedFieldsB\003\340A\001\022U\n" - + "\016exclude_fields\030\006 \001(\01328.google.cloud" - + ".dataplex.v1.DataProfileSpec.SelectedFieldsB\003\340A\001\032\247\001\n" + + "\021post_scan_actions\030\004 \001(\01329.google.cloud.datap" + + "lex.v1.DataProfileSpec.PostScanActionsB\003\340A\001\022U\n" + + "\016include_fields\030\005 \001(\01328.google.clo" + + "ud.dataplex.v1.DataProfileSpec.SelectedFieldsB\003\340A\001\022U\n" + + "\016exclude_fields\030\006 \001(\01328.goo" + + "gle.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\003\340A\001\022\'\n" + + "\032catalog_publishing_enabled\030\010 \001(\010B\003\340A\001\032\247\001\n" + "\017PostScanActions\022f\n" - + "\017bigquery_export\030\001 \001(\0132H.google.cloud.dataplex.v1" - + ".DataProfileSpec.PostScanActions.BigQueryExportB\003\340A\001\032,\n" + + "\017bigquery_export\030\001 \001(\0132H.google.cloud.d" + + "ataplex.v1.DataProfileSpec.PostScanActions.BigQueryExportB\003\340A\001\032,\n" + "\016BigQueryExport\022\032\n\r" + "results_table\030\001 \001(\tB\003\340A\001\032*\n" + "\016SelectedFields\022\030\n" - + "\013field_names\030\001 \003(\tB\003\340A\001\"\355\016\n" + + "\013field_names\030\001 \003(\tB\003\340A\001\"\320\017\n" + "\021DataProfileResult\022\026\n" + "\trow_count\030\003 \001(\003B\003\340A\003\022I\n" + "\007profile\030\004" + " \001(\01323.google.cloud.dataplex.v1.DataProfileResult.ProfileB\003\340A\003\022@\n" + "\014scanned_data\030\005" + " \001(\0132%.google.cloud.dataplex.v1.ScannedDataB\003\340A\003\022h\n" - + "\030post_scan_actions_result\030\006 " - + "\001(\0132A.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultB\003\340A\003\032\310" - + "\t\n" + + "\030post_scan_actions_result\030\006 \001(\0132A.google.cloud.dataplex.v1" + + ".DataProfileResult.PostScanActionsResultB\003\340A\003\022a\n" + + "\031catalog_publishing_status\030\007 \001(\013" + + "29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\003\340A\003\032\310\t\n" + "\007Profile\022N\n" - + "\006fields\030\002 \003(\01329.google.cloud.d" - + "ataplex.v1.DataProfileResult.Profile.FieldB\003\340A\003\032\354\010\n" + + "\006fields\030\002" + + " \003(\01329.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldB\003\340A\003\032\354\010\n" + "\005Field\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\021\n" + "\004type\030\002 \001(\tB\003\340A\003\022\021\n" + "\004mode\030\003 \001(\tB\003\340A\003\022[\n" - + "\007profile\030\004 \001(\0132E.google.cloud.dataplex.v1.D" - + "ataProfileResult.Profile.Field.ProfileInfoB\003\340A\003\032\314\007\n" + + "\007profile\030\004 \001(\013" + + "2E.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoB\003\340A\003\032\314\007\n" + "\013ProfileInfo\022\027\n\n" + "null_ratio\030\002 \001(\001B\003\340A\003\022\033\n" + "\016distinct_ratio\030\003 \001(\001B\003\340A\003\022j\n" - + "\014top_n_values\030\004 \003(\0132O.google.cloud.datap" - + "lex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValueB\003\340A\003\022o\n" - + "\016string_profile\030e \001(\0132U.google.cloud.dataplex.v1.Dat" - + "aProfileResult.Profile.Field.ProfileInfo.StringFieldInfoH\000\022q\n" - + "\017integer_profile\030f \001(\0132V.google.cloud.dataplex.v1.DataProfi" - + "leResult.Profile.Field.ProfileInfo.IntegerFieldInfoH\000\022o\n" - + "\016double_profile\030g \001(\0132U.google.cloud.dataplex.v1.DataProfileResu" - + "lt.Profile.Field.ProfileInfo.DoubleFieldInfoH\000\032`\n" + + "\014top_n_values\030\004 \003(\0132O.google.cloud.dataplex.v1.Data" + + "ProfileResult.Profile.Field.ProfileInfo.TopNValueB\003\340A\003\022o\n" + + "\016string_profile\030e \001(\0132U.google.cloud.dataplex.v1.DataProfileRes" + + "ult.Profile.Field.ProfileInfo.StringFieldInfoH\000\022q\n" + + "\017integer_profile\030f \001(\0132V.google.cloud.dataplex.v1.DataProfileResult.Pr" + + "ofile.Field.ProfileInfo.IntegerFieldInfoH\000\022o\n" + + "\016double_profile\030g \001(\0132U.google.clou" + + "d.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfoH\000\032`\n" + "\017StringFieldInfo\022\027\n\n" + "min_length\030\001 \001(\003B\003\340A\003\022\027\n\n" + "max_length\030\002 \001(\003B\003\340A\003\022\033\n" @@ -161,28 +164,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tTopNValue\022\022\n" + "\005value\030\001 \001(\tB\003\340A\003\022\022\n" + "\005count\030\002 \001(\003B\003\340A\003\022\022\n" - + "\005ratio\030\003 \001(\001B\003\340A\003B\014\n\n" + + "\005ratio\030\003 \001(\001B\003\340A\003B\014\n" + + "\n" + "field_info\032\375\002\n" + "\025PostScanActionsResult\022{\n" - + "\026bigquery_export_result\030\001 \001(\0132V.google.cloud.dataplex.v1.DataProfileR" - + "esult.PostScanActionsResult.BigQueryExportResultB\003\340A\003\032\346\001\n" + + "\026bigquery_export_result\030\001 \001(\0132V.google.c" + + "loud.dataplex.v1.DataProfileResult.PostS" + + "canActionsResult.BigQueryExportResultB\003\340A\003\032\346\001\n" + "\024BigQueryExportResult\022p\n" - + "\005state\030\001 \001(\0162\\.google.cloud.dataplex.v1" - + ".DataProfileResult.PostScanActionsResult.BigQueryExportResult.StateB\003\340A\003\022\024\n" + + "\005state\030\001 \001(\0162\\.google.cloud.dataplex.v1.DataProfil" + + "eResult.PostScanActionsResult.BigQueryExportResult.StateB\003\340A\003\022\024\n" + "\007message\030\002 \001(\tB\003\340A\003\"F\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\r\n" + "\tSUCCEEDED\020\001\022\n\n" + "\006FAILED\020\002\022\013\n" + "\007SKIPPED\020\003Bl\n" - + "\034com.google.cloud.dataplex.v1B\020DataProfileProtoP\001Z8cloud.google.com/go/" - + "dataplex/apiv1/dataplexpb;dataplexpbb\006proto3" + + "\034com.google.cloud.dataplex.v1B\020DataProfile" + + "ProtoP\001Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.dataplex.v1.DataScansCommonProto.getDescriptor(), com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(), }); internal_static_google_cloud_dataplex_v1_DataProfileSpec_descriptor = @@ -191,7 +197,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataplex_v1_DataProfileSpec_descriptor, new java.lang.String[] { - "SamplingPercent", "RowFilter", "PostScanActions", "IncludeFields", "ExcludeFields", + "SamplingPercent", + "RowFilter", + "PostScanActions", + "IncludeFields", + "ExcludeFields", + "CatalogPublishingEnabled", }); internal_static_google_cloud_dataplex_v1_DataProfileSpec_PostScanActions_descriptor = internal_static_google_cloud_dataplex_v1_DataProfileSpec_descriptor.getNestedTypes().get(0); @@ -225,7 +236,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor, new java.lang.String[] { - "RowCount", "Profile", "ScannedData", "PostScanActionsResult", + "RowCount", + "Profile", + "ScannedData", + "PostScanActionsResult", + "CatalogPublishingStatus", }); internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor = internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor @@ -329,6 +344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.dataplex.v1.DataScansCommonProto.getDescriptor(); com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(); } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResult.java index e10f4f54130a..6b25f5c2f55f 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResult.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResult.java @@ -12496,6 +12496,69 @@ public boolean hasPostScanActionsResult() { : postScanActionsResult_; } + public static final int CATALOG_PUBLISHING_STATUS_FIELD_NUMBER = 7; + private com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalogPublishingStatus_; + + /** + * + * + *
                                          +   * Output only. The status of publishing the data scan as Dataplex Universal
                                          +   * Catalog metadata.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the catalogPublishingStatus field is set. + */ + @java.lang.Override + public boolean hasCatalogPublishingStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +   * Output only. The status of publishing the data scan as Dataplex Universal
                                          +   * Catalog metadata.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The catalogPublishingStatus. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus getCatalogPublishingStatus() { + return catalogPublishingStatus_ == null + ? com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.getDefaultInstance() + : catalogPublishingStatus_; + } + + /** + * + * + *
                                          +   * Output only. The status of publishing the data scan as Dataplex Universal
                                          +   * Catalog metadata.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusOrBuilder + getCatalogPublishingStatusOrBuilder() { + return catalogPublishingStatus_ == null + ? com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.getDefaultInstance() + : catalogPublishingStatus_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -12522,6 +12585,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getPostScanActionsResult()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getCatalogPublishingStatus()); + } getUnknownFields().writeTo(output); } @@ -12544,6 +12610,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPostScanActionsResult()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCatalogPublishingStatus()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -12573,6 +12643,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPostScanActionsResult()) { if (!getPostScanActionsResult().equals(other.getPostScanActionsResult())) return false; } + if (hasCatalogPublishingStatus() != other.hasCatalogPublishingStatus()) return false; + if (hasCatalogPublishingStatus()) { + if (!getCatalogPublishingStatus().equals(other.getCatalogPublishingStatus())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12598,6 +12672,10 @@ public int hashCode() { hash = (37 * hash) + POST_SCAN_ACTIONS_RESULT_FIELD_NUMBER; hash = (53 * hash) + getPostScanActionsResult().hashCode(); } + if (hasCatalogPublishingStatus()) { + hash = (37 * hash) + CATALOG_PUBLISHING_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getCatalogPublishingStatus().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -12743,6 +12821,7 @@ private void maybeForceBuilderInitialization() { getProfileFieldBuilder(); getScannedDataFieldBuilder(); getPostScanActionsResultFieldBuilder(); + getCatalogPublishingStatusFieldBuilder(); } } @@ -12766,6 +12845,11 @@ public Builder clear() { postScanActionsResultBuilder_.dispose(); postScanActionsResultBuilder_ = null; } + catalogPublishingStatus_ = null; + if (catalogPublishingStatusBuilder_ != null) { + catalogPublishingStatusBuilder_.dispose(); + catalogPublishingStatusBuilder_ = null; + } return this; } @@ -12822,6 +12906,13 @@ private void buildPartial0(com.google.cloud.dataplex.v1.DataProfileResult result : postScanActionsResultBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.catalogPublishingStatus_ = + catalogPublishingStatusBuilder_ == null + ? catalogPublishingStatus_ + : catalogPublishingStatusBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -12882,6 +12973,9 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.DataProfileResult other) { if (other.hasPostScanActionsResult()) { mergePostScanActionsResult(other.getPostScanActionsResult()); } + if (other.hasCatalogPublishingStatus()) { + mergeCatalogPublishingStatus(other.getCatalogPublishingStatus()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -12933,6 +13027,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 50 + case 58: + { + input.readMessage( + getCatalogPublishingStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13659,6 +13760,235 @@ public Builder clearPostScanActionsResult() { return postScanActionsResultBuilder_; } + private com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalogPublishingStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus, + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.Builder, + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusOrBuilder> + catalogPublishingStatusBuilder_; + + /** + * + * + *
                                          +     * Output only. The status of publishing the data scan as Dataplex Universal
                                          +     * Catalog metadata.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the catalogPublishingStatus field is set. + */ + public boolean hasCatalogPublishingStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                          +     * Output only. The status of publishing the data scan as Dataplex Universal
                                          +     * Catalog metadata.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The catalogPublishingStatus. + */ + public com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + getCatalogPublishingStatus() { + if (catalogPublishingStatusBuilder_ == null) { + return catalogPublishingStatus_ == null + ? com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.getDefaultInstance() + : catalogPublishingStatus_; + } else { + return catalogPublishingStatusBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Output only. The status of publishing the data scan as Dataplex Universal
                                          +     * Catalog metadata.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCatalogPublishingStatus( + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus value) { + if (catalogPublishingStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + catalogPublishingStatus_ = value; + } else { + catalogPublishingStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The status of publishing the data scan as Dataplex Universal
                                          +     * Catalog metadata.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCatalogPublishingStatus( + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.Builder builderForValue) { + if (catalogPublishingStatusBuilder_ == null) { + catalogPublishingStatus_ = builderForValue.build(); + } else { + catalogPublishingStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The status of publishing the data scan as Dataplex Universal
                                          +     * Catalog metadata.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCatalogPublishingStatus( + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus value) { + if (catalogPublishingStatusBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && catalogPublishingStatus_ != null + && catalogPublishingStatus_ + != com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + .getDefaultInstance()) { + getCatalogPublishingStatusBuilder().mergeFrom(value); + } else { + catalogPublishingStatus_ = value; + } + } else { + catalogPublishingStatusBuilder_.mergeFrom(value); + } + if (catalogPublishingStatus_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. The status of publishing the data scan as Dataplex Universal
                                          +     * Catalog metadata.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCatalogPublishingStatus() { + bitField0_ = (bitField0_ & ~0x00000010); + catalogPublishingStatus_ = null; + if (catalogPublishingStatusBuilder_ != null) { + catalogPublishingStatusBuilder_.dispose(); + catalogPublishingStatusBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The status of publishing the data scan as Dataplex Universal
                                          +     * Catalog metadata.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.Builder + getCatalogPublishingStatusBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCatalogPublishingStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. The status of publishing the data scan as Dataplex Universal
                                          +     * Catalog metadata.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusOrBuilder + getCatalogPublishingStatusOrBuilder() { + if (catalogPublishingStatusBuilder_ != null) { + return catalogPublishingStatusBuilder_.getMessageOrBuilder(); + } else { + return catalogPublishingStatus_ == null + ? com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.getDefaultInstance() + : catalogPublishingStatus_; + } + } + + /** + * + * + *
                                          +     * Output only. The status of publishing the data scan as Dataplex Universal
                                          +     * Catalog metadata.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus, + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.Builder, + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusOrBuilder> + getCatalogPublishingStatusFieldBuilder() { + if (catalogPublishingStatusBuilder_ == null) { + catalogPublishingStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus, + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.Builder, + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusOrBuilder>( + getCatalogPublishingStatus(), getParentForChildren(), isClean()); + catalogPublishingStatus_ = null; + } + return catalogPublishingStatusBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResultOrBuilder.java index 740e75a6357b..0598f3f79085 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResultOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResultOrBuilder.java @@ -166,4 +166,51 @@ public interface DataProfileResultOrBuilder */ com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultOrBuilder getPostScanActionsResultOrBuilder(); + + /** + * + * + *
                                          +   * Output only. The status of publishing the data scan as Dataplex Universal
                                          +   * Catalog metadata.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the catalogPublishingStatus field is set. + */ + boolean hasCatalogPublishingStatus(); + + /** + * + * + *
                                          +   * Output only. The status of publishing the data scan as Dataplex Universal
                                          +   * Catalog metadata.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The catalogPublishingStatus. + */ + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus getCatalogPublishingStatus(); + + /** + * + * + *
                                          +   * Output only. The status of publishing the data scan as Dataplex Universal
                                          +   * Catalog metadata.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusOrBuilder + getCatalogPublishingStatusOrBuilder(); } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpec.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpec.java index 1da9f109c58c..e6489c052dfa 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpec.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpec.java @@ -2774,6 +2774,26 @@ public com.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields getExcludeFie : excludeFields_; } + public static final int CATALOG_PUBLISHING_ENABLED_FIELD_NUMBER = 8; + private boolean catalogPublishingEnabled_ = false; + + /** + * + * + *
                                          +   * Optional. If set, the latest DataScan job result will be published as
                                          +   * Dataplex Universal Catalog metadata.
                                          +   * 
                                          + * + * bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The catalogPublishingEnabled. + */ + @java.lang.Override + public boolean getCatalogPublishingEnabled() { + return catalogPublishingEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2803,6 +2823,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getExcludeFields()); } + if (catalogPublishingEnabled_ != false) { + output.writeBool(8, catalogPublishingEnabled_); + } getUnknownFields().writeTo(output); } @@ -2827,6 +2850,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExcludeFields()); } + if (catalogPublishingEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, catalogPublishingEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2858,6 +2884,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExcludeFields()) { if (!getExcludeFields().equals(other.getExcludeFields())) return false; } + if (getCatalogPublishingEnabled() != other.getCatalogPublishingEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2885,6 +2912,8 @@ public int hashCode() { hash = (37 * hash) + EXCLUDE_FIELDS_FIELD_NUMBER; hash = (53 * hash) + getExcludeFields().hashCode(); } + hash = (37 * hash) + CATALOG_PUBLISHING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCatalogPublishingEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3053,6 +3082,7 @@ public Builder clear() { excludeFieldsBuilder_.dispose(); excludeFieldsBuilder_ = null; } + catalogPublishingEnabled_ = false; return this; } @@ -3111,6 +3141,9 @@ private void buildPartial0(com.google.cloud.dataplex.v1.DataProfileSpec result) excludeFieldsBuilder_ == null ? excludeFields_ : excludeFieldsBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.catalogPublishingEnabled_ = catalogPublishingEnabled_; + } result.bitField0_ |= to_bitField0_; } @@ -3176,6 +3209,9 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.DataProfileSpec other) { if (other.hasExcludeFields()) { mergeExcludeFields(other.getExcludeFields()); } + if (other.getCatalogPublishingEnabled() != false) { + setCatalogPublishingEnabled(other.getCatalogPublishingEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3232,6 +3268,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 50 + case 64: + { + catalogPublishingEnabled_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4162,6 +4204,65 @@ public Builder clearExcludeFields() { return excludeFieldsBuilder_; } + private boolean catalogPublishingEnabled_; + + /** + * + * + *
                                          +     * Optional. If set, the latest DataScan job result will be published as
                                          +     * Dataplex Universal Catalog metadata.
                                          +     * 
                                          + * + * bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The catalogPublishingEnabled. + */ + @java.lang.Override + public boolean getCatalogPublishingEnabled() { + return catalogPublishingEnabled_; + } + + /** + * + * + *
                                          +     * Optional. If set, the latest DataScan job result will be published as
                                          +     * Dataplex Universal Catalog metadata.
                                          +     * 
                                          + * + * bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The catalogPublishingEnabled to set. + * @return This builder for chaining. + */ + public Builder setCatalogPublishingEnabled(boolean value) { + + catalogPublishingEnabled_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. If set, the latest DataScan job result will be published as
                                          +     * Dataplex Universal Catalog metadata.
                                          +     * 
                                          + * + * bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCatalogPublishingEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + catalogPublishingEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpecOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpecOrBuilder.java index 5ae0b7c903b5..09b44ebb4f2e 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpecOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpecOrBuilder.java @@ -222,4 +222,18 @@ public interface DataProfileSpecOrBuilder * */ com.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsOrBuilder getExcludeFieldsOrBuilder(); + + /** + * + * + *
                                          +   * Optional. If set, the latest DataScan job result will be published as
                                          +   * Dataplex Universal Catalog metadata.
                                          +   * 
                                          + * + * bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The catalogPublishingEnabled. + */ + boolean getCatalogPublishingEnabled(); } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityProto.java index 924485b29e36..0b8b2e2eb072 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityProto.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityProto.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataplex_v1_DataQualityResult_PostScanActionsResult_BigQueryExportResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataplex_v1_DataQualityResult_PostScanActionsResult_BigQueryExportResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -172,7 +176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023job_failure_trigger\030\004 \001(\0132K.google.cloud.dataplex.v1.Da" + "taQualitySpec.PostScanActions.JobFailureTriggerB\003\340A\001\022e\n" + "\017job_end_trigger\030\005 \001(\0132G." - + "google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerB\003\340A\001\"\317\007\n" + + "google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerB\003\340A\001\"\205\n\n" + "\021DataQualityResult\022\023\n" + "\006passed\030\005 \001(\010B\003\340A\003\022\027\n" + "\005score\030\t \001(\002B\003\340A\003H\000\210\001\001\022M\n\n" @@ -188,24 +192,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030post_scan_actions_result\030\010 \001(\0132A.google.cloud.dataplex.v1.Data" + "QualityResult.PostScanActionsResultB\003\340A\003\022a\n" + "\031catalog_publishing_status\030\013 \001(\01329.go" - + "ogle.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\003\340A\003\032\375\002\n" + + "ogle.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\003\340A\003\022|\n" + + "\"anomaly_detection_generated_assets\030\014 \001(\0132K.google.cloud.d" + + "ataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsB\003\340A\003\032\375\002\n" + "\025PostScanActionsResult\022{\n" - + "\026bigquery_export_result\030\001 \001(\0132V." - + "google.cloud.dataplex.v1.DataQualityResu" - + "lt.PostScanActionsResult.BigQueryExportResultB\003\340A\003\032\346\001\n" + + "\026bigquery_export_result\030\001 \001(\0132V.google.cloud.dataplex.v1.DataQuali" + + "tyResult.PostScanActionsResult.BigQueryExportResultB\003\340A\003\032\346\001\n" + "\024BigQueryExportResult\022p\n" - + "\005state\030\001 \001(\0162\\.google.cloud.dataplex.v1.Da" - + "taQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\003\340A\003\022\024\n" + + "\005state\030\001 \001(\0162\\.google.cloud.dataplex" + + ".v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\003\340A\003\022\024\n" + "\007message\030\002 \001(\tB\003\340A\003\"F\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\r\n" + "\tSUCCEEDED\020\001\022\n\n" + "\006FAILED\020\002\022\013\n" - + "\007SKIPPED\020\003B\010\n" + + "\007SKIPPED\020\003\032\265\001\n" + + "\037AnomalyDetectionGeneratedAssets\022\031\n" + + "\014result_table\030\001 \001(\tB\003\340A\003\022$\n" + + "\027data_intermediate_table\030\002 \001(\tB\003\340A\003\022)\n" + + "\034freshness_intermediate_table\030\003 \001(\tB\003\340A\003\022&\n" + + "\031volume_intermediate_table\030\004 \001(\tB\003\340A\003B\010\n" + "\006_score\"\230\002\n" + "\025DataQualityRuleResult\022<\n" - + "\004rule\030\001" - + " \001(\0132).google.cloud.dataplex.v1.DataQualityRuleB\003\340A\003\022\023\n" + + "\004rule\030\001 " + + "\001(\0132).google.cloud.dataplex.v1.DataQualityRuleB\003\340A\003\022\023\n" + "\006passed\030\007 \001(\010B\003\340A\003\022\034\n" + "\017evaluated_count\030\t \001(\003B\003\340A\003\022\031\n" + "\014passed_count\030\010 \001(\003B\003\340A\003\022\027\n\n" @@ -215,32 +225,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\003\340A\003\022 \n" + "\023assertion_row_count\030\013 \001(\003B\003\340A\003\"\234\001\n" + "\032DataQualityDimensionResult\022F\n" - + "\tdimension\030\001 \001(\0132..google.clou" - + "d.dataplex.v1.DataQualityDimensionB\003\340A\003\022\023\n" + + "\tdimension\030\001" + + " \001(\0132..google.cloud.dataplex.v1.DataQualityDimensionB\003\340A\003\022\023\n" + "\006passed\030\003 \001(\010B\003\340A\003\022\027\n" + "\005score\030\004 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\")\n" + "\024DataQualityDimension\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\"\215\016\n" + "\017DataQualityRule\022W\n" - + "\021range_expectation\030\001 \001(\0132:.google.cloud" - + ".dataplex.v1.DataQualityRule.RangeExpectationH\000\022\\\n" - + "\024non_null_expectation\030\002 \001(\0132<." - + "google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\000\022S\n" - + "\017set_expectation\030\003" - + " \001(\01328.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\000\022W\n" - + "\021regex_expectation\030\004" - + " \001(\0132:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\000\022a\n" - + "\026uniqueness_expectation\030d \001(\0132?.google.clo" - + "ud.dataplex.v1.DataQualityRule.UniquenessExpectationH\000\022j\n" - + "\033statistic_range_expectation\030e \001(\0132C.google.cloud.dataplex.v1.D" - + "ataQualityRule.StatisticRangeExpectationH\000\022g\n" - + "\031row_condition_expectation\030\310\001 \001(\0132A" - + ".google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\000\022k\n" - + "\033table_condition_expectation\030\311\001 \001(\0132C.google.cloud" - + ".dataplex.v1.DataQualityRule.TableConditionExpectationH\000\022P\n\r" - + "sql_assertion\030\312\001 \001(\013" - + "26.google.cloud.dataplex.v1.DataQualityRule.SqlAssertionH\000\022\024\n" + + "\021range_expectation\030\001" + + " \001(\0132:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\000\022\\\n" + + "\024non_null_expectation\030\002 \001(\0132<.google.clo" + + "ud.dataplex.v1.DataQualityRule.NonNullExpectationH\000\022S\n" + + "\017set_expectation\030\003 \001(\01328.g" + + "oogle.cloud.dataplex.v1.DataQualityRule.SetExpectationH\000\022W\n" + + "\021regex_expectation\030\004 " + + "\001(\0132:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\000\022a\n" + + "\026uniqueness_expectation\030d \001(\0132?.google.cloud.dataple" + + "x.v1.DataQualityRule.UniquenessExpectationH\000\022j\n" + + "\033statistic_range_expectation\030e \001(" + + "\0132C.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\000\022g\n" + + "\031row_condition_expectation\030\310\001 \001(\0132A.google.cl" + + "oud.dataplex.v1.DataQualityRule.RowConditionExpectationH\000\022k\n" + + "\033table_condition_expectation\030\311\001 \001(\0132C.google.cloud.dataplex." + + "v1.DataQualityRule.TableConditionExpectationH\000\022P\n\r" + + "sql_assertion\030\312\001 \001(\01326.google." + + "cloud.dataplex.v1.DataQualityRule.SqlAssertionH\000\022\024\n" + "\006column\030\364\003 \001(\tB\003\340A\001\022\031\n" + "\013ignore_null\030\365\003 \001(\010B\003\340A\001\022\027\n" + "\tdimension\030\366\003 \001(\tB\003\340A\002\022\027\n" @@ -260,8 +270,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005regex\030\001 \001(\tB\003\340A\001\032\027\n" + "\025UniquenessExpectation\032\302\002\n" + "\031StatisticRangeExpectation\022k\n" - + "\tstatistic\030\001 \001(\0162S.google.cloud.datap" - + "lex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatisticB\003\340A\001\022\026\n" + + "\tstatistic\030\001 \001(\0162S.google.cloud.dataplex.v1.Dat" + + "aQualityRule.StatisticRangeExpectation.ColumnStatisticB\003\340A\001\022\026\n" + "\tmin_value\030\002 \001(\tB\003\340A\001\022\026\n" + "\tmax_value\030\003 \001(\tB\003\340A\001\022\037\n" + "\022strict_min_enabled\030\004 \001(\010B\003\340A\001\022\037\n" @@ -282,13 +292,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006column\030\001 \001(\tB\003\340A\003\022\027\n" + "\005score\030\002 \001(\002B\003\340A\003H\000\210\001\001\022\023\n" + "\006passed\030\003 \001(\010B\003\340A\003\022M\n\n" - + "dimensions\030\004 \003(\01324.google.cloud.dat" - + "aplex.v1.DataQualityDimensionResultB\003\340A\003B\010\n" + + "dimensions\030\004" + + " \003(\01324.google.cloud.dataplex.v1.DataQualityDimensionResultB\003\340A\003B\010\n" + "\006_scoreB\304\001\n" - + "\034com.google.cloud.dataplex.v1B\020DataQualityProtoP\001Z8cloud.google.co" - + "m/go/dataplex/apiv1/dataplexpb;dataplexpb\352AU\n" - + "\035bigquery.googleapis.com/Table\0224projects/{project}/datasets/{dataset}/table" - + "s/{table}b\006proto3" + + "\034com.google.cloud.dataplex.v1B\020DataQ" + + "ualityProtoP\001Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\352AU\n" + + "\035bigquery.googleapis.com/Table\0224projects/{pro" + + "ject}/datasets/{dataset}/tables/{table}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -390,6 +400,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ScannedData", "PostScanActionsResult", "CatalogPublishingStatus", + "AnomalyDetectionGeneratedAssets", }); internal_static_google_cloud_dataplex_v1_DataQualityResult_PostScanActionsResult_descriptor = internal_static_google_cloud_dataplex_v1_DataQualityResult_descriptor @@ -411,6 +422,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "State", "Message", }); + internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_descriptor = + internal_static_google_cloud_dataplex_v1_DataQualityResult_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_descriptor, + new java.lang.String[] { + "ResultTable", + "DataIntermediateTable", + "FreshnessIntermediateTable", + "VolumeIntermediateTable", + }); internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_fieldAccessorTable = diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResult.java index 57326bd83907..0d8990eb0446 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResult.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResult.java @@ -2050,6 +2050,1464 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface AnomalyDetectionGeneratedAssetsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The result table for anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * If the result table is set at AnomalyDetectionAssets, the result table
                                          +     * here would be the same as the one set in the
                                          +     * AnomalyDetectionAssets.result_table.
                                          +     * 
                                          + * + * string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resultTable. + */ + java.lang.String getResultTable(); + + /** + * + * + *
                                          +     * Output only. The result table for anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * If the result table is set at AnomalyDetectionAssets, the result table
                                          +     * here would be the same as the one set in the
                                          +     * AnomalyDetectionAssets.result_table.
                                          +     * 
                                          + * + * string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resultTable. + */ + com.google.protobuf.ByteString getResultTableBytes(); + + /** + * + * + *
                                          +     * Output only. The intermediate table for data anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataIntermediateTable. + */ + java.lang.String getDataIntermediateTable(); + + /** + * + * + *
                                          +     * Output only. The intermediate table for data anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataIntermediateTable. + */ + com.google.protobuf.ByteString getDataIntermediateTableBytes(); + + /** + * + * + *
                                          +     * Output only. The intermediate table for freshness anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The freshnessIntermediateTable. + */ + java.lang.String getFreshnessIntermediateTable(); + + /** + * + * + *
                                          +     * Output only. The intermediate table for freshness anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for freshnessIntermediateTable. + */ + com.google.protobuf.ByteString getFreshnessIntermediateTableBytes(); + + /** + * + * + *
                                          +     * Output only. The intermediate table for volume anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The volumeIntermediateTable. + */ + java.lang.String getVolumeIntermediateTable(); + + /** + * + * + *
                                          +     * Output only. The intermediate table for volume anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for volumeIntermediateTable. + */ + com.google.protobuf.ByteString getVolumeIntermediateTableBytes(); + } + + /** + * + * + *
                                          +   * The assets generated by Anomaly Detection Data Scan.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets} + */ + public static final class AnomalyDetectionGeneratedAssets + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets) + AnomalyDetectionGeneratedAssetsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AnomalyDetectionGeneratedAssets.newBuilder() to construct. + private AnomalyDetectionGeneratedAssets( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnomalyDetectionGeneratedAssets() { + resultTable_ = ""; + dataIntermediateTable_ = ""; + freshnessIntermediateTable_ = ""; + volumeIntermediateTable_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnomalyDetectionGeneratedAssets(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets.class, + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets.Builder + .class); + } + + public static final int RESULT_TABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resultTable_ = ""; + + /** + * + * + *
                                          +     * Output only. The result table for anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * If the result table is set at AnomalyDetectionAssets, the result table
                                          +     * here would be the same as the one set in the
                                          +     * AnomalyDetectionAssets.result_table.
                                          +     * 
                                          + * + * string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resultTable. + */ + @java.lang.Override + public java.lang.String getResultTable() { + java.lang.Object ref = resultTable_; + 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(); + resultTable_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The result table for anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * If the result table is set at AnomalyDetectionAssets, the result table
                                          +     * here would be the same as the one set in the
                                          +     * AnomalyDetectionAssets.result_table.
                                          +     * 
                                          + * + * string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resultTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResultTableBytes() { + java.lang.Object ref = resultTable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resultTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_INTERMEDIATE_TABLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataIntermediateTable_ = ""; + + /** + * + * + *
                                          +     * Output only. The intermediate table for data anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataIntermediateTable. + */ + @java.lang.Override + public java.lang.String getDataIntermediateTable() { + java.lang.Object ref = dataIntermediateTable_; + 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(); + dataIntermediateTable_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The intermediate table for data anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataIntermediateTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataIntermediateTableBytes() { + java.lang.Object ref = dataIntermediateTable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataIntermediateTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FRESHNESS_INTERMEDIATE_TABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object freshnessIntermediateTable_ = ""; + + /** + * + * + *
                                          +     * Output only. The intermediate table for freshness anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The freshnessIntermediateTable. + */ + @java.lang.Override + public java.lang.String getFreshnessIntermediateTable() { + java.lang.Object ref = freshnessIntermediateTable_; + 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(); + freshnessIntermediateTable_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The intermediate table for freshness anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for freshnessIntermediateTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFreshnessIntermediateTableBytes() { + java.lang.Object ref = freshnessIntermediateTable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + freshnessIntermediateTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_INTERMEDIATE_TABLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object volumeIntermediateTable_ = ""; + + /** + * + * + *
                                          +     * Output only. The intermediate table for volume anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The volumeIntermediateTable. + */ + @java.lang.Override + public java.lang.String getVolumeIntermediateTable() { + java.lang.Object ref = volumeIntermediateTable_; + 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(); + volumeIntermediateTable_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The intermediate table for volume anomaly detection.
                                          +     * Format:
                                          +     * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +     * 
                                          + * + * string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for volumeIntermediateTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVolumeIntermediateTableBytes() { + java.lang.Object ref = volumeIntermediateTable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeIntermediateTable_ = 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.GeneratedMessageV3.isStringEmpty(resultTable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resultTable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataIntermediateTable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataIntermediateTable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(freshnessIntermediateTable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, freshnessIntermediateTable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeIntermediateTable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, volumeIntermediateTable_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resultTable_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resultTable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataIntermediateTable_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataIntermediateTable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(freshnessIntermediateTable_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, freshnessIntermediateTable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeIntermediateTable_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volumeIntermediateTable_); + } + 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.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets other = + (com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets) obj; + + if (!getResultTable().equals(other.getResultTable())) return false; + if (!getDataIntermediateTable().equals(other.getDataIntermediateTable())) return false; + if (!getFreshnessIntermediateTable().equals(other.getFreshnessIntermediateTable())) + return false; + if (!getVolumeIntermediateTable().equals(other.getVolumeIntermediateTable())) 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) + RESULT_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getResultTable().hashCode(); + hash = (37 * hash) + DATA_INTERMEDIATE_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getDataIntermediateTable().hashCode(); + hash = (37 * hash) + FRESHNESS_INTERMEDIATE_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getFreshnessIntermediateTable().hashCode(); + hash = (37 * hash) + VOLUME_INTERMEDIATE_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getVolumeIntermediateTable().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + 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.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + 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.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * The assets generated by Anomaly Detection Data Scan.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets) + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .class, + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resultTable_ = ""; + dataIntermediateTable_ = ""; + freshnessIntermediateTable_ = ""; + volumeIntermediateTable_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_AnomalyDetectionGeneratedAssets_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + build() { + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + buildPartial() { + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets result = + new com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resultTable_ = resultTable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataIntermediateTable_ = dataIntermediateTable_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.freshnessIntermediateTable_ = freshnessIntermediateTable_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.volumeIntermediateTable_ = volumeIntermediateTable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets other) { + if (other + == com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .getDefaultInstance()) return this; + if (!other.getResultTable().isEmpty()) { + resultTable_ = other.resultTable_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDataIntermediateTable().isEmpty()) { + dataIntermediateTable_ = other.dataIntermediateTable_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getFreshnessIntermediateTable().isEmpty()) { + freshnessIntermediateTable_ = other.freshnessIntermediateTable_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVolumeIntermediateTable().isEmpty()) { + volumeIntermediateTable_ = other.volumeIntermediateTable_; + bitField0_ |= 0x00000008; + 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: + { + resultTable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dataIntermediateTable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + freshnessIntermediateTable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + volumeIntermediateTable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 resultTable_ = ""; + + /** + * + * + *
                                          +       * Output only. The result table for anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * If the result table is set at AnomalyDetectionAssets, the result table
                                          +       * here would be the same as the one set in the
                                          +       * AnomalyDetectionAssets.result_table.
                                          +       * 
                                          + * + * string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resultTable. + */ + public java.lang.String getResultTable() { + java.lang.Object ref = resultTable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resultTable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The result table for anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * If the result table is set at AnomalyDetectionAssets, the result table
                                          +       * here would be the same as the one set in the
                                          +       * AnomalyDetectionAssets.result_table.
                                          +       * 
                                          + * + * string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resultTable. + */ + public com.google.protobuf.ByteString getResultTableBytes() { + java.lang.Object ref = resultTable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resultTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The result table for anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * If the result table is set at AnomalyDetectionAssets, the result table
                                          +       * here would be the same as the one set in the
                                          +       * AnomalyDetectionAssets.result_table.
                                          +       * 
                                          + * + * string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resultTable to set. + * @return This builder for chaining. + */ + public Builder setResultTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resultTable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The result table for anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * If the result table is set at AnomalyDetectionAssets, the result table
                                          +       * here would be the same as the one set in the
                                          +       * AnomalyDetectionAssets.result_table.
                                          +       * 
                                          + * + * string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResultTable() { + resultTable_ = getDefaultInstance().getResultTable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The result table for anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * If the result table is set at AnomalyDetectionAssets, the result table
                                          +       * here would be the same as the one set in the
                                          +       * AnomalyDetectionAssets.result_table.
                                          +       * 
                                          + * + * string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resultTable to set. + * @return This builder for chaining. + */ + public Builder setResultTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resultTable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dataIntermediateTable_ = ""; + + /** + * + * + *
                                          +       * Output only. The intermediate table for data anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataIntermediateTable. + */ + public java.lang.String getDataIntermediateTable() { + java.lang.Object ref = dataIntermediateTable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataIntermediateTable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for data anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for dataIntermediateTable. + */ + public com.google.protobuf.ByteString getDataIntermediateTableBytes() { + java.lang.Object ref = dataIntermediateTable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataIntermediateTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for data anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dataIntermediateTable to set. + * @return This builder for chaining. + */ + public Builder setDataIntermediateTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataIntermediateTable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for data anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataIntermediateTable() { + dataIntermediateTable_ = getDefaultInstance().getDataIntermediateTable(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for data anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for dataIntermediateTable to set. + * @return This builder for chaining. + */ + public Builder setDataIntermediateTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataIntermediateTable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object freshnessIntermediateTable_ = ""; + + /** + * + * + *
                                          +       * Output only. The intermediate table for freshness anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The freshnessIntermediateTable. + */ + public java.lang.String getFreshnessIntermediateTable() { + java.lang.Object ref = freshnessIntermediateTable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + freshnessIntermediateTable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for freshness anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for freshnessIntermediateTable. + */ + public com.google.protobuf.ByteString getFreshnessIntermediateTableBytes() { + java.lang.Object ref = freshnessIntermediateTable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + freshnessIntermediateTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for freshness anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The freshnessIntermediateTable to set. + * @return This builder for chaining. + */ + public Builder setFreshnessIntermediateTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + freshnessIntermediateTable_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for freshness anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearFreshnessIntermediateTable() { + freshnessIntermediateTable_ = getDefaultInstance().getFreshnessIntermediateTable(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for freshness anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for freshnessIntermediateTable to set. + * @return This builder for chaining. + */ + public Builder setFreshnessIntermediateTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + freshnessIntermediateTable_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object volumeIntermediateTable_ = ""; + + /** + * + * + *
                                          +       * Output only. The intermediate table for volume anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The volumeIntermediateTable. + */ + public java.lang.String getVolumeIntermediateTable() { + java.lang.Object ref = volumeIntermediateTable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeIntermediateTable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for volume anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for volumeIntermediateTable. + */ + public com.google.protobuf.ByteString getVolumeIntermediateTableBytes() { + java.lang.Object ref = volumeIntermediateTable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeIntermediateTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for volume anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The volumeIntermediateTable to set. + * @return This builder for chaining. + */ + public Builder setVolumeIntermediateTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + volumeIntermediateTable_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for volume anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearVolumeIntermediateTable() { + volumeIntermediateTable_ = getDefaultInstance().getVolumeIntermediateTable(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The intermediate table for volume anomaly detection.
                                          +       * Format:
                                          +       * PROJECT_ID.DATASET_ID.TABLE_ID
                                          +       * 
                                          + * + * string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for volumeIntermediateTable to set. + * @return This builder for chaining. + */ + public Builder setVolumeIntermediateTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeIntermediateTable_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets) + private static final com.google.cloud.dataplex.v1.DataQualityResult + .AnomalyDetectionGeneratedAssets + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets(); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnomalyDetectionGeneratedAssets 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.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int PASSED_FIELD_NUMBER = 5; private boolean passed_ = false; @@ -2603,6 +4061,70 @@ public com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus getCatalogPu : catalogPublishingStatus_; } + public static final int ANOMALY_DETECTION_GENERATED_ASSETS_FIELD_NUMBER = 12; + private com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + anomalyDetectionGeneratedAssets_; + + /** + * + * + *
                                          +   * Output only. The generated assets for anomaly detection.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the anomalyDetectionGeneratedAssets field is set. + */ + @java.lang.Override + public boolean hasAnomalyDetectionGeneratedAssets() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                          +   * Output only. The generated assets for anomaly detection.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The anomalyDetectionGeneratedAssets. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + getAnomalyDetectionGeneratedAssets() { + return anomalyDetectionGeneratedAssets_ == null + ? com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .getDefaultInstance() + : anomalyDetectionGeneratedAssets_; + } + + /** + * + * + *
                                          +   * Output only. The generated assets for anomaly detection.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsOrBuilder + getAnomalyDetectionGeneratedAssetsOrBuilder() { + return anomalyDetectionGeneratedAssets_ == null + ? com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .getDefaultInstance() + : anomalyDetectionGeneratedAssets_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2644,6 +4166,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(11, getCatalogPublishingStatus()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(12, getAnomalyDetectionGeneratedAssets()); + } getUnknownFields().writeTo(output); } @@ -2683,6 +4208,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, getCatalogPublishingStatus()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getAnomalyDetectionGeneratedAssets()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2721,6 +4251,12 @@ public boolean equals(final java.lang.Object obj) { if (hasCatalogPublishingStatus()) { if (!getCatalogPublishingStatus().equals(other.getCatalogPublishingStatus())) return false; } + if (hasAnomalyDetectionGeneratedAssets() != other.hasAnomalyDetectionGeneratedAssets()) + return false; + if (hasAnomalyDetectionGeneratedAssets()) { + if (!getAnomalyDetectionGeneratedAssets().equals(other.getAnomalyDetectionGeneratedAssets())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2764,6 +4300,10 @@ public int hashCode() { hash = (37 * hash) + CATALOG_PUBLISHING_STATUS_FIELD_NUMBER; hash = (53 * hash) + getCatalogPublishingStatus().hashCode(); } + if (hasAnomalyDetectionGeneratedAssets()) { + hash = (37 * hash) + ANOMALY_DETECTION_GENERATED_ASSETS_FIELD_NUMBER; + hash = (53 * hash) + getAnomalyDetectionGeneratedAssets().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2911,6 +4451,7 @@ private void maybeForceBuilderInitialization() { getScannedDataFieldBuilder(); getPostScanActionsResultFieldBuilder(); getCatalogPublishingStatusFieldBuilder(); + getAnomalyDetectionGeneratedAssetsFieldBuilder(); } } @@ -2957,6 +4498,11 @@ public Builder clear() { catalogPublishingStatusBuilder_.dispose(); catalogPublishingStatusBuilder_ = null; } + anomalyDetectionGeneratedAssets_ = null; + if (anomalyDetectionGeneratedAssetsBuilder_ != null) { + anomalyDetectionGeneratedAssetsBuilder_.dispose(); + anomalyDetectionGeneratedAssetsBuilder_ = null; + } return this; } @@ -3054,6 +4600,13 @@ private void buildPartial0(com.google.cloud.dataplex.v1.DataQualityResult result : catalogPublishingStatusBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.anomalyDetectionGeneratedAssets_ = + anomalyDetectionGeneratedAssetsBuilder_ == null + ? anomalyDetectionGeneratedAssets_ + : anomalyDetectionGeneratedAssetsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -3201,6 +4754,9 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualityResult other) { if (other.hasCatalogPublishingStatus()) { mergeCatalogPublishingStatus(other.getCatalogPublishingStatus()); } + if (other.hasAnomalyDetectionGeneratedAssets()) { + mergeAnomalyDetectionGeneratedAssets(other.getAnomalyDetectionGeneratedAssets()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3307,6 +4863,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 90 + case 98: + { + input.readMessage( + getAnomalyDetectionGeneratedAssetsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5524,6 +7088,232 @@ public Builder clearCatalogPublishingStatus() { return catalogPublishingStatusBuilder_; } + private com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + anomalyDetectionGeneratedAssets_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets, + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets.Builder, + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsOrBuilder> + anomalyDetectionGeneratedAssetsBuilder_; + + /** + * + * + *
                                          +     * Output only. The generated assets for anomaly detection.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the anomalyDetectionGeneratedAssets field is set. + */ + public boolean hasAnomalyDetectionGeneratedAssets() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                                          +     * Output only. The generated assets for anomaly detection.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The anomalyDetectionGeneratedAssets. + */ + public com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + getAnomalyDetectionGeneratedAssets() { + if (anomalyDetectionGeneratedAssetsBuilder_ == null) { + return anomalyDetectionGeneratedAssets_ == null + ? com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .getDefaultInstance() + : anomalyDetectionGeneratedAssets_; + } else { + return anomalyDetectionGeneratedAssetsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Output only. The generated assets for anomaly detection.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnomalyDetectionGeneratedAssets( + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets value) { + if (anomalyDetectionGeneratedAssetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + anomalyDetectionGeneratedAssets_ = value; + } else { + anomalyDetectionGeneratedAssetsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The generated assets for anomaly detection.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnomalyDetectionGeneratedAssets( + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets.Builder + builderForValue) { + if (anomalyDetectionGeneratedAssetsBuilder_ == null) { + anomalyDetectionGeneratedAssets_ = builderForValue.build(); + } else { + anomalyDetectionGeneratedAssetsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The generated assets for anomaly detection.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAnomalyDetectionGeneratedAssets( + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets value) { + if (anomalyDetectionGeneratedAssetsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && anomalyDetectionGeneratedAssets_ != null + && anomalyDetectionGeneratedAssets_ + != com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .getDefaultInstance()) { + getAnomalyDetectionGeneratedAssetsBuilder().mergeFrom(value); + } else { + anomalyDetectionGeneratedAssets_ = value; + } + } else { + anomalyDetectionGeneratedAssetsBuilder_.mergeFrom(value); + } + if (anomalyDetectionGeneratedAssets_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. The generated assets for anomaly detection.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAnomalyDetectionGeneratedAssets() { + bitField0_ = (bitField0_ & ~0x00000200); + anomalyDetectionGeneratedAssets_ = null; + if (anomalyDetectionGeneratedAssetsBuilder_ != null) { + anomalyDetectionGeneratedAssetsBuilder_.dispose(); + anomalyDetectionGeneratedAssetsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The generated assets for anomaly detection.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets.Builder + getAnomalyDetectionGeneratedAssetsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getAnomalyDetectionGeneratedAssetsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. The generated assets for anomaly detection.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsOrBuilder + getAnomalyDetectionGeneratedAssetsOrBuilder() { + if (anomalyDetectionGeneratedAssetsBuilder_ != null) { + return anomalyDetectionGeneratedAssetsBuilder_.getMessageOrBuilder(); + } else { + return anomalyDetectionGeneratedAssets_ == null + ? com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .getDefaultInstance() + : anomalyDetectionGeneratedAssets_; + } + } + + /** + * + * + *
                                          +     * Output only. The generated assets for anomaly detection.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets, + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets.Builder, + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsOrBuilder> + getAnomalyDetectionGeneratedAssetsFieldBuilder() { + if (anomalyDetectionGeneratedAssetsBuilder_ == null) { + anomalyDetectionGeneratedAssetsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets, + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + .Builder, + com.google.cloud.dataplex.v1.DataQualityResult + .AnomalyDetectionGeneratedAssetsOrBuilder>( + getAnomalyDetectionGeneratedAssets(), getParentForChildren(), isClean()); + anomalyDetectionGeneratedAssets_ = null; + } + return anomalyDetectionGeneratedAssetsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResultOrBuilder.java index 6887e5e8885c..1e468e9ee59e 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResultOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResultOrBuilder.java @@ -442,4 +442,49 @@ com.google.cloud.dataplex.v1.DataQualityDimensionResultOrBuilder getDimensionsOr */ com.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusOrBuilder getCatalogPublishingStatusOrBuilder(); + + /** + * + * + *
                                          +   * Output only. The generated assets for anomaly detection.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the anomalyDetectionGeneratedAssets field is set. + */ + boolean hasAnomalyDetectionGeneratedAssets(); + + /** + * + * + *
                                          +   * Output only. The generated assets for anomaly detection.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The anomalyDetectionGeneratedAssets. + */ + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + getAnomalyDetectionGeneratedAssets(); + + /** + * + * + *
                                          +   * Output only. The generated assets for anomaly detection.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsOrBuilder + getAnomalyDetectionGeneratedAssetsOrBuilder(); } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScan.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScan.java index d6824a9fc256..36cf7ad69932 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScan.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScan.java @@ -39,6 +39,10 @@ * * Data discovery: scans data in Cloud Storage buckets to extract and then * catalog metadata. For more information, see [Discover and catalog Cloud * Storage data](https://cloud.google.com/bigquery/docs/automatic-discovery). + * * Data documentation: analyzes the table details and generates insights + * including descriptions and sample SQL queries for the table. For more + * information, see [Generate data insights in + * BigQuery](https://cloud.google.com/bigquery/docs/data-insights). * * * Protobuf type {@code google.cloud.dataplex.v1.DataScan} @@ -2852,6 +2856,7 @@ public enum SpecCase DATA_QUALITY_SPEC(100), DATA_PROFILE_SPEC(101), DATA_DISCOVERY_SPEC(102), + DATA_DOCUMENTATION_SPEC(103), SPEC_NOT_SET(0); private final int value; @@ -2877,6 +2882,8 @@ public static SpecCase forNumber(int value) { return DATA_PROFILE_SPEC; case 102: return DATA_DISCOVERY_SPEC; + case 103: + return DATA_DOCUMENTATION_SPEC; case 0: return SPEC_NOT_SET; default: @@ -2905,6 +2912,7 @@ public enum ResultCase DATA_QUALITY_RESULT(200), DATA_PROFILE_RESULT(201), DATA_DISCOVERY_RESULT(202), + DATA_DOCUMENTATION_RESULT(203), RESULT_NOT_SET(0); private final int value; @@ -2930,6 +2938,8 @@ public static ResultCase forNumber(int value) { return DATA_PROFILE_RESULT; case 202: return DATA_DISCOVERY_RESULT; + case 203: + return DATA_DOCUMENTATION_RESULT; case 0: return RESULT_NOT_SET; default: @@ -3812,6 +3822,61 @@ public com.google.cloud.dataplex.v1.DataDiscoverySpecOrBuilder getDataDiscoveryS return com.google.cloud.dataplex.v1.DataDiscoverySpec.getDefaultInstance(); } + public static final int DATA_DOCUMENTATION_SPEC_FIELD_NUMBER = 103; + + /** + * + * + *
                                          +   * Settings for a data documentation scan.
                                          +   * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + * + * @return Whether the dataDocumentationSpec field is set. + */ + @java.lang.Override + public boolean hasDataDocumentationSpec() { + return specCase_ == 103; + } + + /** + * + * + *
                                          +   * Settings for a data documentation scan.
                                          +   * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + * + * @return The dataDocumentationSpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpec getDataDocumentationSpec() { + if (specCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Settings for a data documentation scan.
                                          +   * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder + getDataDocumentationSpecOrBuilder() { + if (specCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + public static final int DATA_QUALITY_RESULT_FIELD_NUMBER = 200; /** @@ -3993,6 +4058,67 @@ public com.google.cloud.dataplex.v1.DataDiscoveryResult getDataDiscoveryResult() return com.google.cloud.dataplex.v1.DataDiscoveryResult.getDefaultInstance(); } + public static final int DATA_DOCUMENTATION_RESULT_FIELD_NUMBER = 203; + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataDocumentationResult field is set. + */ + @java.lang.Override + public boolean hasDataDocumentationResult() { + return resultCase_ == 203; + } + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataDocumentationResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult getDataDocumentationResult() { + if (resultCase_ == 203) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder + getDataDocumentationResultOrBuilder() { + if (resultCase_ == 203) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4051,6 +4177,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (specCase_ == 102) { output.writeMessage(102, (com.google.cloud.dataplex.v1.DataDiscoverySpec) spec_); } + if (specCase_ == 103) { + output.writeMessage(103, (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_); + } if (resultCase_ == 200) { output.writeMessage(200, (com.google.cloud.dataplex.v1.DataQualityResult) result_); } @@ -4060,6 +4189,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resultCase_ == 202) { output.writeMessage(202, (com.google.cloud.dataplex.v1.DataDiscoveryResult) result_); } + if (resultCase_ == 203) { + output.writeMessage(203, (com.google.cloud.dataplex.v1.DataDocumentationResult) result_); + } getUnknownFields().writeTo(output); } @@ -4127,6 +4259,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 102, (com.google.cloud.dataplex.v1.DataDiscoverySpec) spec_); } + if (specCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_); + } if (resultCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -4142,6 +4279,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 202, (com.google.cloud.dataplex.v1.DataDiscoveryResult) result_); } + if (resultCase_ == 203) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 203, (com.google.cloud.dataplex.v1.DataDocumentationResult) result_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4195,6 +4337,9 @@ public boolean equals(final java.lang.Object obj) { case 102: if (!getDataDiscoverySpec().equals(other.getDataDiscoverySpec())) return false; break; + case 103: + if (!getDataDocumentationSpec().equals(other.getDataDocumentationSpec())) return false; + break; case 0: default: } @@ -4209,6 +4354,9 @@ public boolean equals(final java.lang.Object obj) { case 202: if (!getDataDiscoveryResult().equals(other.getDataDiscoveryResult())) return false; break; + case 203: + if (!getDataDocumentationResult().equals(other.getDataDocumentationResult())) return false; + break; case 0: default: } @@ -4272,6 +4420,10 @@ public int hashCode() { hash = (37 * hash) + DATA_DISCOVERY_SPEC_FIELD_NUMBER; hash = (53 * hash) + getDataDiscoverySpec().hashCode(); break; + case 103: + hash = (37 * hash) + DATA_DOCUMENTATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDataDocumentationSpec().hashCode(); + break; case 0: default: } @@ -4288,6 +4440,10 @@ public int hashCode() { hash = (37 * hash) + DATA_DISCOVERY_RESULT_FIELD_NUMBER; hash = (53 * hash) + getDataDiscoveryResult().hashCode(); break; + case 203: + hash = (37 * hash) + DATA_DOCUMENTATION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDataDocumentationResult().hashCode(); + break; case 0: default: } @@ -4411,6 +4567,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Data discovery: scans data in Cloud Storage buckets to extract and then * catalog metadata. For more information, see [Discover and catalog Cloud * Storage data](https://cloud.google.com/bigquery/docs/automatic-discovery). + * * Data documentation: analyzes the table details and generates insights + * including descriptions and sample SQL queries for the table. For more + * information, see [Generate data insights in + * BigQuery](https://cloud.google.com/bigquery/docs/data-insights). * * * Protobuf type {@code google.cloud.dataplex.v1.DataScan} @@ -4521,6 +4681,9 @@ public Builder clear() { if (dataDiscoverySpecBuilder_ != null) { dataDiscoverySpecBuilder_.clear(); } + if (dataDocumentationSpecBuilder_ != null) { + dataDocumentationSpecBuilder_.clear(); + } if (dataQualityResultBuilder_ != null) { dataQualityResultBuilder_.clear(); } @@ -4530,6 +4693,9 @@ public Builder clear() { if (dataDiscoveryResultBuilder_ != null) { dataDiscoveryResultBuilder_.clear(); } + if (dataDocumentationResultBuilder_ != null) { + dataDocumentationResultBuilder_.clear(); + } specCase_ = 0; spec_ = null; resultCase_ = 0; @@ -4631,6 +4797,9 @@ private void buildPartialOneofs(com.google.cloud.dataplex.v1.DataScan result) { if (specCase_ == 102 && dataDiscoverySpecBuilder_ != null) { result.spec_ = dataDiscoverySpecBuilder_.build(); } + if (specCase_ == 103 && dataDocumentationSpecBuilder_ != null) { + result.spec_ = dataDocumentationSpecBuilder_.build(); + } result.resultCase_ = resultCase_; result.result_ = this.result_; if (resultCase_ == 200 && dataQualityResultBuilder_ != null) { @@ -4642,6 +4811,9 @@ private void buildPartialOneofs(com.google.cloud.dataplex.v1.DataScan result) { if (resultCase_ == 202 && dataDiscoveryResultBuilder_ != null) { result.result_ = dataDiscoveryResultBuilder_.build(); } + if (resultCase_ == 203 && dataDocumentationResultBuilder_ != null) { + result.result_ = dataDocumentationResultBuilder_.build(); + } } @java.lang.Override @@ -4748,6 +4920,11 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScan other) { mergeDataDiscoverySpec(other.getDataDiscoverySpec()); break; } + case DATA_DOCUMENTATION_SPEC: + { + mergeDataDocumentationSpec(other.getDataDocumentationSpec()); + break; + } case SPEC_NOT_SET: { break; @@ -4769,6 +4946,11 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScan other) { mergeDataDiscoveryResult(other.getDataDiscoveryResult()); break; } + case DATA_DOCUMENTATION_RESULT: + { + mergeDataDocumentationResult(other.getDataDocumentationResult()); + break; + } case RESULT_NOT_SET: { break; @@ -4897,6 +5079,13 @@ public Builder mergeFrom( specCase_ = 102; break; } // case 818 + case 826: + { + input.readMessage( + getDataDocumentationSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 103; + break; + } // case 826 case 1602: { input.readMessage( @@ -4918,6 +5107,13 @@ public Builder mergeFrom( resultCase_ = 202; break; } // case 1618 + case 1626: + { + input.readMessage( + getDataDocumentationResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 203; + break; + } // case 1626 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7582,6 +7778,228 @@ public com.google.cloud.dataplex.v1.DataDiscoverySpecOrBuilder getDataDiscoveryS return dataDiscoverySpecBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationSpec, + com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder, + com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder> + dataDocumentationSpecBuilder_; + + /** + * + * + *
                                          +     * Settings for a data documentation scan.
                                          +     * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + * + * @return Whether the dataDocumentationSpec field is set. + */ + @java.lang.Override + public boolean hasDataDocumentationSpec() { + return specCase_ == 103; + } + + /** + * + * + *
                                          +     * Settings for a data documentation scan.
                                          +     * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + * + * @return The dataDocumentationSpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpec getDataDocumentationSpec() { + if (dataDocumentationSpecBuilder_ == null) { + if (specCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } else { + if (specCase_ == 103) { + return dataDocumentationSpecBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Settings for a data documentation scan.
                                          +     * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + */ + public Builder setDataDocumentationSpec( + com.google.cloud.dataplex.v1.DataDocumentationSpec value) { + if (dataDocumentationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + dataDocumentationSpecBuilder_.setMessage(value); + } + specCase_ = 103; + return this; + } + + /** + * + * + *
                                          +     * Settings for a data documentation scan.
                                          +     * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + */ + public Builder setDataDocumentationSpec( + com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder builderForValue) { + if (dataDocumentationSpecBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + dataDocumentationSpecBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 103; + return this; + } + + /** + * + * + *
                                          +     * Settings for a data documentation scan.
                                          +     * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + */ + public Builder mergeDataDocumentationSpec( + com.google.cloud.dataplex.v1.DataDocumentationSpec value) { + if (dataDocumentationSpecBuilder_ == null) { + if (specCase_ == 103 + && spec_ != com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance()) { + spec_ = + com.google.cloud.dataplex.v1.DataDocumentationSpec.newBuilder( + (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_) + .mergeFrom(value) + .buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 103) { + dataDocumentationSpecBuilder_.mergeFrom(value); + } else { + dataDocumentationSpecBuilder_.setMessage(value); + } + } + specCase_ = 103; + return this; + } + + /** + * + * + *
                                          +     * Settings for a data documentation scan.
                                          +     * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + */ + public Builder clearDataDocumentationSpec() { + if (dataDocumentationSpecBuilder_ == null) { + if (specCase_ == 103) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 103) { + specCase_ = 0; + spec_ = null; + } + dataDocumentationSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Settings for a data documentation scan.
                                          +     * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + */ + public com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder + getDataDocumentationSpecBuilder() { + return getDataDocumentationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Settings for a data documentation scan.
                                          +     * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder + getDataDocumentationSpecOrBuilder() { + if ((specCase_ == 103) && (dataDocumentationSpecBuilder_ != null)) { + return dataDocumentationSpecBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Settings for a data documentation scan.
                                          +     * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationSpec, + com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder, + com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder> + getDataDocumentationSpecFieldBuilder() { + if (dataDocumentationSpecBuilder_ == null) { + if (!(specCase_ == 103)) { + spec_ = com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + dataDocumentationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationSpec, + com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder, + com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder>( + (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 103; + onChanged(); + return dataDocumentationSpecBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DataQualityResult, com.google.cloud.dataplex.v1.DataQualityResult.Builder, @@ -8293,6 +8711,247 @@ public Builder clearDataDiscoveryResult() { return dataDiscoveryResultBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder> + dataDocumentationResultBuilder_; + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataDocumentationResult field is set. + */ + @java.lang.Override + public boolean hasDataDocumentationResult() { + return resultCase_ == 203; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataDocumentationResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult getDataDocumentationResult() { + if (dataDocumentationResultBuilder_ == null) { + if (resultCase_ == 203) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } else { + if (resultCase_ == 203) { + return dataDocumentationResultBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataDocumentationResult( + com.google.cloud.dataplex.v1.DataDocumentationResult value) { + if (dataDocumentationResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + dataDocumentationResultBuilder_.setMessage(value); + } + resultCase_ = 203; + return this; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataDocumentationResult( + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder builderForValue) { + if (dataDocumentationResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + dataDocumentationResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 203; + return this; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataDocumentationResult( + com.google.cloud.dataplex.v1.DataDocumentationResult value) { + if (dataDocumentationResultBuilder_ == null) { + if (resultCase_ == 203 + && result_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataDocumentationResult.newBuilder( + (com.google.cloud.dataplex.v1.DataDocumentationResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 203) { + dataDocumentationResultBuilder_.mergeFrom(value); + } else { + dataDocumentationResultBuilder_.setMessage(value); + } + } + resultCase_ = 203; + return this; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataDocumentationResult() { + if (dataDocumentationResultBuilder_ == null) { + if (resultCase_ == 203) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 203) { + resultCase_ = 0; + result_ = null; + } + dataDocumentationResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Builder + getDataDocumentationResultBuilder() { + return getDataDocumentationResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder + getDataDocumentationResultOrBuilder() { + if ((resultCase_ == 203) && (dataDocumentationResultBuilder_ != null)) { + return dataDocumentationResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 203) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder> + getDataDocumentationResultFieldBuilder() { + if (dataDocumentationResultBuilder_ == null) { + if (!(resultCase_ == 203)) { + result_ = com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + dataDocumentationResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataDocumentationResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 203; + onChanged(); + return dataDocumentationResultBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJob.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJob.java index 3886532ee6fc..5e0d1e84eff6 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJob.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJob.java @@ -332,6 +332,7 @@ public enum SpecCase DATA_QUALITY_SPEC(100), DATA_PROFILE_SPEC(101), DATA_DISCOVERY_SPEC(102), + DATA_DOCUMENTATION_SPEC(103), SPEC_NOT_SET(0); private final int value; @@ -357,6 +358,8 @@ public static SpecCase forNumber(int value) { return DATA_PROFILE_SPEC; case 102: return DATA_DISCOVERY_SPEC; + case 103: + return DATA_DOCUMENTATION_SPEC; case 0: return SPEC_NOT_SET; default: @@ -385,6 +388,7 @@ public enum ResultCase DATA_QUALITY_RESULT(200), DATA_PROFILE_RESULT(201), DATA_DISCOVERY_RESULT(202), + DATA_DOCUMENTATION_RESULT(203), RESULT_NOT_SET(0); private final int value; @@ -410,6 +414,8 @@ public static ResultCase forNumber(int value) { return DATA_PROFILE_RESULT; case 202: return DATA_DISCOVERY_RESULT; + case 203: + return DATA_DOCUMENTATION_RESULT; case 0: return RESULT_NOT_SET; default: @@ -1019,6 +1025,67 @@ public com.google.cloud.dataplex.v1.DataDiscoverySpecOrBuilder getDataDiscoveryS return com.google.cloud.dataplex.v1.DataDiscoverySpec.getDefaultInstance(); } + public static final int DATA_DOCUMENTATION_SPEC_FIELD_NUMBER = 103; + + /** + * + * + *
                                          +   * Output only. Settings for a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataDocumentationSpec field is set. + */ + @java.lang.Override + public boolean hasDataDocumentationSpec() { + return specCase_ == 103; + } + + /** + * + * + *
                                          +   * Output only. Settings for a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataDocumentationSpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpec getDataDocumentationSpec() { + if (specCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Output only. Settings for a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder + getDataDocumentationSpecOrBuilder() { + if (specCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + public static final int DATA_QUALITY_RESULT_FIELD_NUMBER = 200; /** @@ -1200,6 +1267,67 @@ public com.google.cloud.dataplex.v1.DataDiscoveryResult getDataDiscoveryResult() return com.google.cloud.dataplex.v1.DataDiscoveryResult.getDefaultInstance(); } + public static final int DATA_DOCUMENTATION_RESULT_FIELD_NUMBER = 203; + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataDocumentationResult field is set. + */ + @java.lang.Override + public boolean hasDataDocumentationResult() { + return resultCase_ == 203; + } + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataDocumentationResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult getDataDocumentationResult() { + if (resultCase_ == 203) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder + getDataDocumentationResultOrBuilder() { + if (resultCase_ == 203) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1247,6 +1375,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (specCase_ == 102) { output.writeMessage(102, (com.google.cloud.dataplex.v1.DataDiscoverySpec) spec_); } + if (specCase_ == 103) { + output.writeMessage(103, (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_); + } if (resultCase_ == 200) { output.writeMessage(200, (com.google.cloud.dataplex.v1.DataQualityResult) result_); } @@ -1256,6 +1387,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resultCase_ == 202) { output.writeMessage(202, (com.google.cloud.dataplex.v1.DataDiscoveryResult) result_); } + if (resultCase_ == 203) { + output.writeMessage(203, (com.google.cloud.dataplex.v1.DataDocumentationResult) result_); + } getUnknownFields().writeTo(output); } @@ -1304,6 +1438,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 102, (com.google.cloud.dataplex.v1.DataDiscoverySpec) spec_); } + if (specCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_); + } if (resultCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1319,6 +1458,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 202, (com.google.cloud.dataplex.v1.DataDiscoveryResult) result_); } + if (resultCase_ == 203) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 203, (com.google.cloud.dataplex.v1.DataDocumentationResult) result_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1362,6 +1506,9 @@ public boolean equals(final java.lang.Object obj) { case 102: if (!getDataDiscoverySpec().equals(other.getDataDiscoverySpec())) return false; break; + case 103: + if (!getDataDocumentationSpec().equals(other.getDataDocumentationSpec())) return false; + break; case 0: default: } @@ -1376,6 +1523,9 @@ public boolean equals(final java.lang.Object obj) { case 202: if (!getDataDiscoveryResult().equals(other.getDataDiscoveryResult())) return false; break; + case 203: + if (!getDataDocumentationResult().equals(other.getDataDocumentationResult())) return false; + break; case 0: default: } @@ -1425,6 +1575,10 @@ public int hashCode() { hash = (37 * hash) + DATA_DISCOVERY_SPEC_FIELD_NUMBER; hash = (53 * hash) + getDataDiscoverySpec().hashCode(); break; + case 103: + hash = (37 * hash) + DATA_DOCUMENTATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDataDocumentationSpec().hashCode(); + break; case 0: default: } @@ -1441,6 +1595,10 @@ public int hashCode() { hash = (37 * hash) + DATA_DISCOVERY_RESULT_FIELD_NUMBER; hash = (53 * hash) + getDataDiscoveryResult().hashCode(); break; + case 203: + hash = (37 * hash) + DATA_DOCUMENTATION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDataDocumentationResult().hashCode(); + break; case 0: default: } @@ -1624,6 +1782,9 @@ public Builder clear() { if (dataDiscoverySpecBuilder_ != null) { dataDiscoverySpecBuilder_.clear(); } + if (dataDocumentationSpecBuilder_ != null) { + dataDocumentationSpecBuilder_.clear(); + } if (dataQualityResultBuilder_ != null) { dataQualityResultBuilder_.clear(); } @@ -1633,6 +1794,9 @@ public Builder clear() { if (dataDiscoveryResultBuilder_ != null) { dataDiscoveryResultBuilder_.clear(); } + if (dataDocumentationResultBuilder_ != null) { + dataDocumentationResultBuilder_.clear(); + } specCase_ = 0; spec_ = null; resultCase_ = 0; @@ -1717,6 +1881,9 @@ private void buildPartialOneofs(com.google.cloud.dataplex.v1.DataScanJob result) if (specCase_ == 102 && dataDiscoverySpecBuilder_ != null) { result.spec_ = dataDiscoverySpecBuilder_.build(); } + if (specCase_ == 103 && dataDocumentationSpecBuilder_ != null) { + result.spec_ = dataDocumentationSpecBuilder_.build(); + } result.resultCase_ = resultCase_; result.result_ = this.result_; if (resultCase_ == 200 && dataQualityResultBuilder_ != null) { @@ -1728,6 +1895,9 @@ private void buildPartialOneofs(com.google.cloud.dataplex.v1.DataScanJob result) if (resultCase_ == 202 && dataDiscoveryResultBuilder_ != null) { result.result_ = dataDiscoveryResultBuilder_.build(); } + if (resultCase_ == 203 && dataDocumentationResultBuilder_ != null) { + result.result_ = dataDocumentationResultBuilder_.build(); + } } @java.lang.Override @@ -1821,6 +1991,11 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanJob other) { mergeDataDiscoverySpec(other.getDataDiscoverySpec()); break; } + case DATA_DOCUMENTATION_SPEC: + { + mergeDataDocumentationSpec(other.getDataDocumentationSpec()); + break; + } case SPEC_NOT_SET: { break; @@ -1842,6 +2017,11 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanJob other) { mergeDataDiscoveryResult(other.getDataDiscoveryResult()); break; } + case DATA_DOCUMENTATION_RESULT: + { + mergeDataDocumentationResult(other.getDataDocumentationResult()); + break; + } case RESULT_NOT_SET: { break; @@ -1940,6 +2120,13 @@ public Builder mergeFrom( specCase_ = 102; break; } // case 818 + case 826: + { + input.readMessage( + getDataDocumentationSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 103; + break; + } // case 826 case 1602: { input.readMessage( @@ -1961,6 +2148,13 @@ public Builder mergeFrom( resultCase_ = 202; break; } // case 1618 + case 1626: + { + input.readMessage( + getDataDocumentationResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 203; + break; + } // case 1626 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3909,6 +4103,246 @@ public com.google.cloud.dataplex.v1.DataDiscoverySpecOrBuilder getDataDiscoveryS return dataDiscoverySpecBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationSpec, + com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder, + com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder> + dataDocumentationSpecBuilder_; + + /** + * + * + *
                                          +     * Output only. Settings for a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataDocumentationSpec field is set. + */ + @java.lang.Override + public boolean hasDataDocumentationSpec() { + return specCase_ == 103; + } + + /** + * + * + *
                                          +     * Output only. Settings for a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataDocumentationSpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpec getDataDocumentationSpec() { + if (dataDocumentationSpecBuilder_ == null) { + if (specCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } else { + if (specCase_ == 103) { + return dataDocumentationSpecBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. Settings for a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataDocumentationSpec( + com.google.cloud.dataplex.v1.DataDocumentationSpec value) { + if (dataDocumentationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + dataDocumentationSpecBuilder_.setMessage(value); + } + specCase_ = 103; + return this; + } + + /** + * + * + *
                                          +     * Output only. Settings for a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataDocumentationSpec( + com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder builderForValue) { + if (dataDocumentationSpecBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + dataDocumentationSpecBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 103; + return this; + } + + /** + * + * + *
                                          +     * Output only. Settings for a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataDocumentationSpec( + com.google.cloud.dataplex.v1.DataDocumentationSpec value) { + if (dataDocumentationSpecBuilder_ == null) { + if (specCase_ == 103 + && spec_ != com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance()) { + spec_ = + com.google.cloud.dataplex.v1.DataDocumentationSpec.newBuilder( + (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_) + .mergeFrom(value) + .buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 103) { + dataDocumentationSpecBuilder_.mergeFrom(value); + } else { + dataDocumentationSpecBuilder_.setMessage(value); + } + } + specCase_ = 103; + return this; + } + + /** + * + * + *
                                          +     * Output only. Settings for a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataDocumentationSpec() { + if (dataDocumentationSpecBuilder_ == null) { + if (specCase_ == 103) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 103) { + specCase_ = 0; + spec_ = null; + } + dataDocumentationSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Settings for a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder + getDataDocumentationSpecBuilder() { + return getDataDocumentationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Settings for a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder + getDataDocumentationSpecOrBuilder() { + if ((specCase_ == 103) && (dataDocumentationSpecBuilder_ != null)) { + return dataDocumentationSpecBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. Settings for a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationSpec, + com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder, + com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder> + getDataDocumentationSpecFieldBuilder() { + if (dataDocumentationSpecBuilder_ == null) { + if (!(specCase_ == 103)) { + spec_ = com.google.cloud.dataplex.v1.DataDocumentationSpec.getDefaultInstance(); + } + dataDocumentationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationSpec, + com.google.cloud.dataplex.v1.DataDocumentationSpec.Builder, + com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder>( + (com.google.cloud.dataplex.v1.DataDocumentationSpec) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 103; + onChanged(); + return dataDocumentationSpecBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DataQualityResult, com.google.cloud.dataplex.v1.DataQualityResult.Builder, @@ -4620,6 +5054,247 @@ public Builder clearDataDiscoveryResult() { return dataDiscoveryResultBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder> + dataDocumentationResultBuilder_; + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataDocumentationResult field is set. + */ + @java.lang.Override + public boolean hasDataDocumentationResult() { + return resultCase_ == 203; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataDocumentationResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResult getDataDocumentationResult() { + if (dataDocumentationResultBuilder_ == null) { + if (resultCase_ == 203) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } else { + if (resultCase_ == 203) { + return dataDocumentationResultBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataDocumentationResult( + com.google.cloud.dataplex.v1.DataDocumentationResult value) { + if (dataDocumentationResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + dataDocumentationResultBuilder_.setMessage(value); + } + resultCase_ = 203; + return this; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataDocumentationResult( + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder builderForValue) { + if (dataDocumentationResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + dataDocumentationResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 203; + return this; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataDocumentationResult( + com.google.cloud.dataplex.v1.DataDocumentationResult value) { + if (dataDocumentationResultBuilder_ == null) { + if (resultCase_ == 203 + && result_ + != com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataDocumentationResult.newBuilder( + (com.google.cloud.dataplex.v1.DataDocumentationResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 203) { + dataDocumentationResultBuilder_.mergeFrom(value); + } else { + dataDocumentationResultBuilder_.setMessage(value); + } + } + resultCase_ = 203; + return this; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataDocumentationResult() { + if (dataDocumentationResultBuilder_ == null) { + if (resultCase_ == 203) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 203) { + resultCase_ = 0; + result_ = null; + } + dataDocumentationResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataDocumentationResult.Builder + getDataDocumentationResultBuilder() { + return getDataDocumentationResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder + getDataDocumentationResultOrBuilder() { + if ((resultCase_ == 203) && (dataDocumentationResultBuilder_ != null)) { + return dataDocumentationResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 203) { + return (com.google.cloud.dataplex.v1.DataDocumentationResult) result_; + } + return com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. The result of a data documentation scan.
                                          +     * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder> + getDataDocumentationResultFieldBuilder() { + if (dataDocumentationResultBuilder_ == null) { + if (!(resultCase_ == 203)) { + result_ = com.google.cloud.dataplex.v1.DataDocumentationResult.getDefaultInstance(); + } + dataDocumentationResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataDocumentationResult, + com.google.cloud.dataplex.v1.DataDocumentationResult.Builder, + com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataDocumentationResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 203; + onChanged(); + return dataDocumentationResultBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobOrBuilder.java index bb20794e1b8a..00a307c10f67 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobOrBuilder.java @@ -427,6 +427,49 @@ public interface DataScanJobOrBuilder */ com.google.cloud.dataplex.v1.DataDiscoverySpecOrBuilder getDataDiscoverySpecOrBuilder(); + /** + * + * + *
                                          +   * Output only. Settings for a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataDocumentationSpec field is set. + */ + boolean hasDataDocumentationSpec(); + + /** + * + * + *
                                          +   * Output only. Settings for a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataDocumentationSpec. + */ + com.google.cloud.dataplex.v1.DataDocumentationSpec getDataDocumentationSpec(); + + /** + * + * + *
                                          +   * Output only. Settings for a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder getDataDocumentationSpecOrBuilder(); + /** * * @@ -556,6 +599,50 @@ public interface DataScanJobOrBuilder */ com.google.cloud.dataplex.v1.DataDiscoveryResultOrBuilder getDataDiscoveryResultOrBuilder(); + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataDocumentationResult field is set. + */ + boolean hasDataDocumentationResult(); + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataDocumentationResult. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult getDataDocumentationResult(); + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder + getDataDocumentationResultOrBuilder(); + com.google.cloud.dataplex.v1.DataScanJob.SpecCase getSpecCase(); com.google.cloud.dataplex.v1.DataScanJob.ResultCase getResultCase(); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanOrBuilder.java index fc8bcbc2846a..19cdab3abc2a 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanOrBuilder.java @@ -596,6 +596,43 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.dataplex.v1.DataDiscoverySpecOrBuilder getDataDiscoverySpecOrBuilder(); + /** + * + * + *
                                          +   * Settings for a data documentation scan.
                                          +   * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + * + * @return Whether the dataDocumentationSpec field is set. + */ + boolean hasDataDocumentationSpec(); + + /** + * + * + *
                                          +   * Settings for a data documentation scan.
                                          +   * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + * + * @return The dataDocumentationSpec. + */ + com.google.cloud.dataplex.v1.DataDocumentationSpec getDataDocumentationSpec(); + + /** + * + * + *
                                          +   * Settings for a data documentation scan.
                                          +   * 
                                          + * + * .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + */ + com.google.cloud.dataplex.v1.DataDocumentationSpecOrBuilder getDataDocumentationSpecOrBuilder(); + /** * * @@ -725,6 +762,50 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.dataplex.v1.DataDiscoveryResultOrBuilder getDataDiscoveryResultOrBuilder(); + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataDocumentationResult field is set. + */ + boolean hasDataDocumentationResult(); + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataDocumentationResult. + */ + com.google.cloud.dataplex.v1.DataDocumentationResult getDataDocumentationResult(); + + /** + * + * + *
                                          +   * Output only. The result of a data documentation scan.
                                          +   * 
                                          + * + * + * .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataDocumentationResultOrBuilder + getDataDocumentationResultOrBuilder(); + com.google.cloud.dataplex.v1.DataScan.SpecCase getSpecCase(); com.google.cloud.dataplex.v1.DataScan.ResultCase getResultCase(); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanType.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanType.java index 27543cf7f2ba..768667d11a02 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanType.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanType.java @@ -69,6 +69,16 @@ public enum DataScanType implements com.google.protobuf.ProtocolMessageEnum { * DATA_DISCOVERY = 3; */ DATA_DISCOVERY(3), + /** + * + * + *
                                          +   * Data documentation scan.
                                          +   * 
                                          + * + * DATA_DOCUMENTATION = 4; + */ + DATA_DOCUMENTATION(4), UNRECOGNIZED(-1), ; @@ -116,6 +126,17 @@ public enum DataScanType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATA_DISCOVERY_VALUE = 3; + /** + * + * + *
                                          +   * Data documentation scan.
                                          +   * 
                                          + * + * DATA_DOCUMENTATION = 4; + */ + public static final int DATA_DOCUMENTATION_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -148,6 +169,8 @@ public static DataScanType forNumber(int value) { return DATA_PROFILE; case 3: return DATA_DISCOVERY; + case 4: + return DATA_DOCUMENTATION; default: return null; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScansProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScansProto.java index 90e751464d68..52ed490a5a16 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScansProto.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScansProto.java @@ -115,17 +115,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/annotations.proto\032\027google/api/client.pr" + "oto\032\037google/api/field_behavior.proto\032\033go" + "ogle/api/field_info.proto\032\031google/api/re" - + "source.proto\032-google/cloud/dataplex/v1/data_discovery.proto\032+google/cloud/datapl" - + "ex/v1/data_profile.proto\032+google/cloud/dataplex/v1/data_quality.proto\032)google/cl" - + "oud/dataplex/v1/processing.proto\032(google/cloud/dataplex/v1/resources.proto\032&goog" - + "le/cloud/dataplex/v1/service.proto\032#goog" - + "le/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + "source.proto\032-google/cloud/dataplex/v1/data_discovery.proto\0321google/cloud/datapl" + + "ex/v1/data_documentation.proto\032+google/cloud/dataplex/v1/data_profile.proto\032+goo" + + "gle/cloud/dataplex/v1/data_quality.proto\032)google/cloud/dataplex/v1/processing.pr" + + "oto\032(google/cloud/dataplex/v1/resources.proto\032&google/cloud/dataplex/v1/service." + + "proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\305\001\n" + "\025CreateDataScanRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022:\n" - + "\tdata_scan\030\002" - + " \001(\0132\".google.cloud.dataplex.v1.DataScanB\003\340A\002\022\031\n" + + "\tdata_scan\030\002 \001" + + "(\0132\".google.cloud.dataplex.v1.DataScanB\003\340A\002\022\031\n" + "\014data_scan_id\030\003 \001(\tB\003\340A\002\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\"\245\001\n" + "\025UpdateDataScanRequest\022:\n" @@ -141,8 +141,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022GetDataScanRequest\0226\n" + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + " dataplex.googleapis.com/DataScan\022L\n" - + "\004view\030\002" - + " \001(\01629.google.cloud.dataplex.v1.GetDataScanRequest.DataScanViewB\003\340A\001\"C\n" + + "\004view\030\002 \001(\01629.google.cloud.data" + + "plex.v1.GetDataScanRequest.DataScanViewB\003\340A\001\"C\n" + "\014DataScanView\022\036\n" + "\032DATA_SCAN_VIEW_UNSPECIFIED\020\000\022\t\n" + "\005BASIC\020\001\022\010\n" @@ -167,8 +167,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025GetDataScanJobRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#dataplex.googleapis.com/DataScanJob\022R\n" - + "\004view\030\002 \001(\0162?.google.cloud.datapl" - + "ex.v1.GetDataScanJobRequest.DataScanJobViewB\003\340A\001\"J\n" + + "\004view\030\002 \001(\0162?.google.c" + + "loud.dataplex.v1.GetDataScanJobRequest.DataScanJobViewB\003\340A\001\"J\n" + "\017DataScanJobView\022\"\n" + "\036DATA_SCAN_JOB_VIEW_UNSPECIFIED\020\000\022\t\n" + "\005BASIC\020\001\022\010\n" @@ -186,14 +186,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037GenerateDataQualityRulesRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\"[\n" + " GenerateDataQualityRulesResponse\0227\n" - + "\004rule\030\001 \003(\0132).google.cloud.dataplex.v1.DataQualityRule\"\251\014\n" + + "\004rule\030\001 \003(\0132).google.cloud.dataplex.v1.DataQualityRule\"\333\r\n" + "\010DataScan\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\030\n" + "\003uid\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\004 \001(\tB\003\340A\001\022C\n" - + "\006labels\030\005 \003(\0132..goog" - + "le.cloud.dataplex.v1.DataScan.LabelsEntryB\003\340A\001\0223\n" + + "\006labels\030\005" + + " \003(\0132..google.cloud.dataplex.v1.DataScan.LabelsEntryB\003\340A\001\0223\n" + "\005state\030\006 \001(\0162\037.google.cloud.dataplex.v1.StateB\003\340A\003\0224\n" + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0227\n" @@ -202,20 +202,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01320.google.cloud.dataplex.v1.DataScan.ExecutionSpecB\003\340A\001\022Q\n" + "\020execution_status\030\013" + " \001(\01322.google.cloud.dataplex.v1.DataScan.ExecutionStatusB\003\340A\003\0229\n" - + "\004type\030\014 \001(\016" - + "2&.google.cloud.dataplex.v1.DataScanTypeB\003\340A\003\022F\n" - + "\021data_quality_spec\030d" - + " \001(\0132).google.cloud.dataplex.v1.DataQualitySpecH\000\022F\n" - + "\021data_profile_spec\030e" - + " \001(\0132).google.cloud.dataplex.v1.DataProfileSpecH\000\022J\n" + + "\004type\030\014" + + " \001(\0162&.google.cloud.dataplex.v1.DataScanTypeB\003\340A\003\022F\n" + + "\021data_quality_spec\030d " + + "\001(\0132).google.cloud.dataplex.v1.DataQualitySpecH\000\022F\n" + + "\021data_profile_spec\030e \001(\0132).go" + + "ogle.cloud.dataplex.v1.DataProfileSpecH\000\022J\n" + "\023data_discovery_spec\030f" - + " \001(\0132+.google.cloud.dataplex.v1.DataDiscoverySpecH\000\022P\n" - + "\023data_quality_result\030\310\001" - + " \001(\0132+.google.cloud.dataplex.v1.DataQualityResultB\003\340A\003H\001\022P\n" - + "\023data_profile_result\030\311\001" - + " \001(\0132+.google.cloud.dataplex.v1.DataProfileResultB\003\340A\003H\001\022T\n" - + "\025data_discovery_result\030\312\001" - + " \001(\0132-.google.cloud.dataplex.v1.DataDiscoveryResultB\003\340A\003H\001\032m\n\r" + + " \001(\0132+.google.cloud.dataplex.v1.DataDiscoverySpecH\000\022R\n" + + "\027data_documentation_spec\030g \001(\0132/.google.c" + + "loud.dataplex.v1.DataDocumentationSpecH\000\022P\n" + + "\023data_quality_result\030\310\001 \001(\0132+.google." + + "cloud.dataplex.v1.DataQualityResultB\003\340A\003H\001\022P\n" + + "\023data_profile_result\030\311\001 \001(\0132+.googl" + + "e.cloud.dataplex.v1.DataProfileResultB\003\340A\003H\001\022T\n" + + "\025data_discovery_result\030\312\001 \001(\0132-.g" + + "oogle.cloud.dataplex.v1.DataDiscoveryResultB\003\340A\003H\001\022\\\n" + + "\031data_documentation_result\030\313\001" + + " \001(\01321.google.cloud.dataplex.v1.DataDocumentationResultB\003\340A\003H\001\032m\n\r" + "ExecutionSpec\0227\n" + "\007trigger\030\001" + " \001(\0132!.google.cloud.dataplex.v1.TriggerB\003\340A\001\022\024\n" @@ -231,10 +235,10 @@ 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:c\352A`\n" - + " dataplex.googleapis.com/DataS" - + "can\022\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/dataScans\022\257\001\n" - + "\013RunDataScan\022,.google.cloud.dataplex.v1.R" - + "unDataScanRequest\032-.google.cloud.dataple" - + "x.v1.RunDataScanResponse\"C\332A\004name\202\323\344\223\0026\"" - + "1/v1/{name=projects/*/locations/*/dataScans/*}:run:\001*\022\255\001\n" - + "\016GetDataScanJob\022/.google.cloud.dataplex.v1.GetDataScanJobReques" - + "t\032%.google.cloud.dataplex.v1.DataScanJob" - + "\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}\022\300\001\n" - + "\020ListDataScanJobs\0221.google.cloud.dataplex.v1.Li" - + "stDataScanJobsRequest\0322.google.cloud.dat" - + "aplex.v1.ListDataScanJobsResponse\"E\332A\006pa" - + "rent\202\323\344\223\0026\0224/v1/{parent=projects/*/locations/*/dataScans/*}/jobs\022\301\002\n" - + "\030GenerateDataQualityRules\0229.google.cloud.dataplex.v1" - + ".GenerateDataQualityRulesRequest\032:.google.cloud.dataplex.v1.GenerateDataQualityR" - + "ulesResponse\"\255\001\332A\004name\202\323\344\223\002\237\001\"F/v1/{name" - + "=projects/*/locations/*/dataScans/*}:generateDataQualityRules:\001*ZR\"M/v1/{name=pr" - + "ojects/*/locations/*/dataScans/*/jobs/*}" - + ":generateDataQualityRules:\001*\032K\312A\027dataple" - + "x.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBj\n" - + "\034com.google.cloud.dataplex.v1B\016DataScansProtoP\001Z8clo" - + "ud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\006proto3" + + "\016CreateDataScan\022/.google.cloud.dataplex.v1.CreateDat" + + "aScanRequest\032\035.google.longrunning.Operation\"\200\001\312A\035\n" + + "\010DataScan\022\021OperationMetadata\332A" + + "\035parent,data_scan,data_scan_id\202\323\344\223\002:\"-/v" + + "1/{parent=projects/*/locations/*}/dataScans:\tdata_scan\022\345\001\n" + + "\016UpdateDataScan\022/.goog" + + "le.cloud.dataplex.v1.UpdateDataScanRequest\032\035.google.longrunning.Operation\"\202\001\312A\035\n" + + "\010DataScan\022\021OperationMetadata\332A\025data_scan" + + ",update_mask\202\323\344\223\002D27/v1/{data_scan.name=projects/*/locations/*/dataScans/*}:" + + "\tdata_scan\022\313\001\n" + + "\016DeleteDataScan\022/.google.cloud" + + ".dataplex.v1.DeleteDataScanRequest\032\035.google.longrunning.Operation\"i\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\002/*-/v1/{name=projects/*/locations/*/dataScans/*}\022\235\001\n" + + "\013GetDataScan\022,.google.cloud.dataplex.v1.GetDataScanRequest\032\".goo" + + "gle.cloud.dataplex.v1.DataScan\"<\332A\004name\202" + + "\323\344\223\002/\022-/v1/{name=projects/*/locations/*/dataScans/*}\022\260\001\n\r" + + "ListDataScans\022..google.cloud.dataplex.v1.ListDataScansRequest\032/" + + ".google.cloud.dataplex.v1.ListDataScansR" + + "esponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/dataScans\022\257\001\n" + + "\013RunDataScan\022,.google.cloud.dataplex.v1.RunDa" + + "taScanRequest\032-.google.cloud.dataplex.v1" + + ".RunDataScanResponse\"C\332A\004name\202\323\344\223\0026\"1/v1" + + "/{name=projects/*/locations/*/dataScans/*}:run:\001*\022\255\001\n" + + "\016GetDataScanJob\022/.google.cloud.dataplex.v1.GetDataScanJobRequest\032%." + + "google.cloud.dataplex.v1.DataScanJob\"C\332A" + + "\004name\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}\022\300\001\n" + + "\020ListDataScanJobs\0221.google.cloud.dataplex.v1.ListDa" + + "taScanJobsRequest\0322.google.cloud.dataple" + + "x.v1.ListDataScanJobsResponse\"E\332A\006parent" + + "\202\323\344\223\0026\0224/v1/{parent=projects/*/locations/*/dataScans/*}/jobs\022\301\002\n" + + "\030GenerateDataQualityRules\0229.google.cloud.dataplex.v1.Gen" + + "erateDataQualityRulesRequest\032:.google.cloud.dataplex.v1.GenerateDataQualityRules" + + "Response\"\255\001\332A\004name\202\323\344\223\002\237\001\"F/v1/{name=pro" + + "jects/*/locations/*/dataScans/*}:generateDataQualityRules:\001*ZR\"M/v1/{name=projec" + + "ts/*/locations/*/dataScans/*/jobs/*}:gen" + + "erateDataQualityRules:\001*\032K\312A\027dataplex.go" + + "ogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBj\n" + + "\034com.google.cloud.dataplex.v1B\016DataScansProtoP\001Z8cloud.g" + + "oogle.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -328,6 +338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dataplex.v1.DataDiscoveryProto.getDescriptor(), + com.google.cloud.dataplex.v1.DataDocumentationProto.getDescriptor(), com.google.cloud.dataplex.v1.DataProfileProto.getDescriptor(), com.google.cloud.dataplex.v1.DataQualityProto.getDescriptor(), com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(), @@ -463,9 +474,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataQualitySpec", "DataProfileSpec", "DataDiscoverySpec", + "DataDocumentationSpec", "DataQualityResult", "DataProfileResult", "DataDiscoveryResult", + "DataDocumentationResult", "Spec", "Result", }); @@ -510,9 +523,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataQualitySpec", "DataProfileSpec", "DataDiscoverySpec", + "DataDocumentationSpec", "DataQualityResult", "DataProfileResult", "DataDiscoveryResult", + "DataDocumentationResult", "Spec", "Result", }); @@ -535,6 +550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dataplex.v1.DataDiscoveryProto.getDescriptor(); + com.google.cloud.dataplex.v1.DataDocumentationProto.getDescriptor(); com.google.cloud.dataplex.v1.DataProfileProto.getDescriptor(); com.google.cloud.dataplex.v1.DataQualityProto.getDescriptor(); com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSource.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSource.java index 69e33894868c..70d16dc47534 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSource.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSource.java @@ -208,8 +208,8 @@ public com.google.protobuf.ByteString getEntityBytes() { * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -230,8 +230,8 @@ public boolean hasResource() { * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -265,8 +265,8 @@ public java.lang.String getResource() { * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -871,8 +871,8 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -894,8 +894,8 @@ public boolean hasResource() { * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -930,8 +930,8 @@ public java.lang.String getResource() { * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -966,8 +966,8 @@ public com.google.protobuf.ByteString getResourceBytes() { * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -995,8 +995,8 @@ public Builder setResource(java.lang.String value) { * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -1022,8 +1022,8 @@ public Builder clearResource() { * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSourceOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSourceOrBuilder.java index 155bf0bba2c4..5ccc27acdb54 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSourceOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSourceOrBuilder.java @@ -84,8 +84,8 @@ public interface DataSourceOrBuilder * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -104,8 +104,8 @@ public interface DataSourceOrBuilder * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * @@ -124,8 +124,8 @@ public interface DataSourceOrBuilder * Storage bucket for DataDiscoveryScan Format: * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or - * BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - * Format: + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID * * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfig.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfig.java index 0fa91a6dfb45..97f0aaa1dd14 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfig.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfig.java @@ -1681,6 +1681,25 @@ public com.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails getFailureDe : failureDetails_; } + public static final int ENABLE_METASTORE_ENCRYPTION_FIELD_NUMBER = 8; + private boolean enableMetastoreEncryption_ = false; + + /** + * + * + *
                                          +   * Optional. Represent the state of CMEK opt-in for metastore.
                                          +   * 
                                          + * + * bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableMetastoreEncryption. + */ + @java.lang.Override + public boolean getEnableMetastoreEncryption() { + return enableMetastoreEncryption_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1719,6 +1738,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getFailureDetails()); } + if (enableMetastoreEncryption_ != false) { + output.writeBool(8, enableMetastoreEncryption_); + } getUnknownFields().writeTo(output); } @@ -1752,6 +1774,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFailureDetails()); } + if (enableMetastoreEncryption_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableMetastoreEncryption_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1784,6 +1809,7 @@ public boolean equals(final java.lang.Object obj) { if (hasFailureDetails()) { if (!getFailureDetails().equals(other.getFailureDetails())) return false; } + if (getEnableMetastoreEncryption() != other.getEnableMetastoreEncryption()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1815,6 +1841,8 @@ public int hashCode() { hash = (37 * hash) + FAILURE_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getFailureDetails().hashCode(); } + hash = (37 * hash) + ENABLE_METASTORE_ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMetastoreEncryption()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1986,6 +2014,7 @@ public Builder clear() { failureDetailsBuilder_.dispose(); failureDetailsBuilder_ = null; } + enableMetastoreEncryption_ = false; return this; } @@ -2048,6 +2077,9 @@ private void buildPartial0(com.google.cloud.dataplex.v1.EncryptionConfig result) failureDetailsBuilder_ == null ? failureDetails_ : failureDetailsBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.enableMetastoreEncryption_ = enableMetastoreEncryption_; + } result.bitField0_ |= to_bitField0_; } @@ -2123,6 +2155,9 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.EncryptionConfig other) { if (other.hasFailureDetails()) { mergeFailureDetails(other.getFailureDetails()); } + if (other.getEnableMetastoreEncryption() != false) { + setEnableMetastoreEncryption(other.getEnableMetastoreEncryption()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2191,6 +2226,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 64: + { + enableMetastoreEncryption_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3329,6 +3370,62 @@ public Builder clearFailureDetails() { return failureDetailsBuilder_; } + private boolean enableMetastoreEncryption_; + + /** + * + * + *
                                          +     * Optional. Represent the state of CMEK opt-in for metastore.
                                          +     * 
                                          + * + * bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableMetastoreEncryption. + */ + @java.lang.Override + public boolean getEnableMetastoreEncryption() { + return enableMetastoreEncryption_; + } + + /** + * + * + *
                                          +     * Optional. Represent the state of CMEK opt-in for metastore.
                                          +     * 
                                          + * + * bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableMetastoreEncryption to set. + * @return This builder for chaining. + */ + public Builder setEnableMetastoreEncryption(boolean value) { + + enableMetastoreEncryption_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Represent the state of CMEK opt-in for metastore.
                                          +     * 
                                          + * + * bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableMetastoreEncryption() { + bitField0_ = (bitField0_ & ~0x00000080); + enableMetastoreEncryption_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfigOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfigOrBuilder.java index 06adc6153e93..979704ca9912 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfigOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfigOrBuilder.java @@ -269,4 +269,17 @@ public interface EncryptionConfigOrBuilder */ com.google.cloud.dataplex.v1.EncryptionConfig.FailureDetailsOrBuilder getFailureDetailsOrBuilder(); + + /** + * + * + *
                                          +   * Optional. Represent the state of CMEK opt-in for metastore.
                                          +   * 
                                          + * + * bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableMetastoreEncryption. + */ + boolean getEnableMetastoreEncryption(); } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryView.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryView.java index d7e65f1f5796..30b44b4c2702 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryView.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryView.java @@ -71,16 +71,7 @@ public enum EntryView implements com.google.protobuf.ProtocolMessageEnum { * CUSTOM = 3; */ CUSTOM(3), - /** - * - * - *
                                          -   * Returns all aspects. If the number of aspects exceeds 100, the first
                                          -   * 100 will be returned.
                                          -   * 
                                          - * - * ALL = 4; - */ + /** ALL = 4; */ ALL(4), UNRECOGNIZED(-1), ; @@ -131,16 +122,7 @@ public enum EntryView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_VALUE = 3; - /** - * - * - *
                                          -   * Returns all aspects. If the number of aspects exceeds 100, the first
                                          -   * 100 will be returned.
                                          -   * 
                                          - * - * ALL = 4; - */ + /** ALL = 4; */ public static final int ALL_VALUE = 4; public final int getNumber() { diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntriesRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntriesRequest.java index eebbb5a0f4c0..259c8eb8bfd2 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntriesRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntriesRequest.java @@ -216,14 +216,17 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -232,6 +235,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -260,14 +264,17 @@ public java.lang.String getFilter() { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -276,6 +283,7 @@ public java.lang.String getFilter() { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1026,14 +1034,17 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -1042,6 +1053,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1069,14 +1081,17 @@ public java.lang.String getFilter() { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -1085,6 +1100,7 @@ public java.lang.String getFilter() { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1112,14 +1128,17 @@ public com.google.protobuf.ByteString getFilterBytes() { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -1128,6 +1147,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1154,14 +1174,17 @@ public Builder setFilter(java.lang.String value) { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -1170,6 +1193,7 @@ public Builder setFilter(java.lang.String value) { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1192,14 +1216,17 @@ public Builder clearFilter() { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -1208,6 +1235,7 @@ public Builder clearFilter() { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntriesRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntriesRequestOrBuilder.java index d6c5ddb5f216..37479681f545 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntriesRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntriesRequestOrBuilder.java @@ -109,14 +109,17 @@ public interface ListEntriesRequestOrBuilder * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -125,6 +128,7 @@ public interface ListEntriesRequestOrBuilder * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -142,14 +146,17 @@ public interface ListEntriesRequestOrBuilder * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -158,6 +165,7 @@ public interface ListEntriesRequestOrBuilder * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJob.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJob.java index b707ba41b448..fbca162e6b16 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJob.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJob.java @@ -3412,14 +3412,13 @@ public interface ImportJobScopeOrBuilder * * *
                                          -       * Required. The entry group that is in scope for the import job,
                                          -       * specified as a relative resource name in the format
                                          +       * Required. The entry groups that are in scope for the import job,
                                          +       * specified as relative resource names in the format
                                                  * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -       * Only entries and aspects that belong to the specified entry group are
                                          +       * Only entries and aspects that belong to the specified entry groups are
                                                  * affected by the job.
                                                  *
                                          -       * Must contain exactly one element. The entry group and the job
                                          -       * must be in the same location.
                                          +       * The entry groups and the job must be in the same location.
                                                  * 
                                          * * @@ -3434,14 +3433,13 @@ public interface ImportJobScopeOrBuilder * * *
                                          -       * Required. The entry group that is in scope for the import job,
                                          -       * specified as a relative resource name in the format
                                          +       * Required. The entry groups that are in scope for the import job,
                                          +       * specified as relative resource names in the format
                                                  * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -       * Only entries and aspects that belong to the specified entry group are
                                          +       * Only entries and aspects that belong to the specified entry groups are
                                                  * affected by the job.
                                                  *
                                          -       * Must contain exactly one element. The entry group and the job
                                          -       * must be in the same location.
                                          +       * The entry groups and the job must be in the same location.
                                                  * 
                                          * * @@ -3456,14 +3454,13 @@ public interface ImportJobScopeOrBuilder * * *
                                          -       * Required. The entry group that is in scope for the import job,
                                          -       * specified as a relative resource name in the format
                                          +       * Required. The entry groups that are in scope for the import job,
                                          +       * specified as relative resource names in the format
                                                  * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -       * Only entries and aspects that belong to the specified entry group are
                                          +       * Only entries and aspects that belong to the specified entry groups are
                                                  * affected by the job.
                                                  *
                                          -       * Must contain exactly one element. The entry group and the job
                                          -       * must be in the same location.
                                          +       * The entry groups and the job must be in the same location.
                                                  * 
                                          * * @@ -3479,14 +3476,13 @@ public interface ImportJobScopeOrBuilder * * *
                                          -       * Required. The entry group that is in scope for the import job,
                                          -       * specified as a relative resource name in the format
                                          +       * Required. The entry groups that are in scope for the import job,
                                          +       * specified as relative resource names in the format
                                                  * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -       * Only entries and aspects that belong to the specified entry group are
                                          +       * Only entries and aspects that belong to the specified entry groups are
                                                  * affected by the job.
                                                  *
                                          -       * Must contain exactly one element. The entry group and the job
                                          -       * must be in the same location.
                                          +       * The entry groups and the job must be in the same location.
                                                  * 
                                          * * @@ -4066,14 +4062,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                          -       * Required. The entry group that is in scope for the import job,
                                          -       * specified as a relative resource name in the format
                                          +       * Required. The entry groups that are in scope for the import job,
                                          +       * specified as relative resource names in the format
                                                  * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -       * Only entries and aspects that belong to the specified entry group are
                                          +       * Only entries and aspects that belong to the specified entry groups are
                                                  * affected by the job.
                                                  *
                                          -       * Must contain exactly one element. The entry group and the job
                                          -       * must be in the same location.
                                          +       * The entry groups and the job must be in the same location.
                                                  * 
                                          * * @@ -4090,14 +4085,13 @@ public com.google.protobuf.ProtocolStringList getEntryGroupsList() { * * *
                                          -       * Required. The entry group that is in scope for the import job,
                                          -       * specified as a relative resource name in the format
                                          +       * Required. The entry groups that are in scope for the import job,
                                          +       * specified as relative resource names in the format
                                                  * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -       * Only entries and aspects that belong to the specified entry group are
                                          +       * Only entries and aspects that belong to the specified entry groups are
                                                  * affected by the job.
                                                  *
                                          -       * Must contain exactly one element. The entry group and the job
                                          -       * must be in the same location.
                                          +       * The entry groups and the job must be in the same location.
                                                  * 
                                          * * @@ -4114,14 +4108,13 @@ public int getEntryGroupsCount() { * * *
                                          -       * Required. The entry group that is in scope for the import job,
                                          -       * specified as a relative resource name in the format
                                          +       * Required. The entry groups that are in scope for the import job,
                                          +       * specified as relative resource names in the format
                                                  * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -       * Only entries and aspects that belong to the specified entry group are
                                          +       * Only entries and aspects that belong to the specified entry groups are
                                                  * affected by the job.
                                                  *
                                          -       * Must contain exactly one element. The entry group and the job
                                          -       * must be in the same location.
                                          +       * The entry groups and the job must be in the same location.
                                                  * 
                                          * * @@ -4139,14 +4132,13 @@ public java.lang.String getEntryGroups(int index) { * * *
                                          -       * Required. The entry group that is in scope for the import job,
                                          -       * specified as a relative resource name in the format
                                          +       * Required. The entry groups that are in scope for the import job,
                                          +       * specified as relative resource names in the format
                                                  * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -       * Only entries and aspects that belong to the specified entry group are
                                          +       * Only entries and aspects that belong to the specified entry groups are
                                                  * affected by the job.
                                                  *
                                          -       * Must contain exactly one element. The entry group and the job
                                          -       * must be in the same location.
                                          +       * The entry groups and the job must be in the same location.
                                                  * 
                                          * * @@ -5318,14 +5310,13 @@ private void ensureEntryGroupsIsMutable() { * * *
                                          -         * Required. The entry group that is in scope for the import job,
                                          -         * specified as a relative resource name in the format
                                          +         * Required. The entry groups that are in scope for the import job,
                                          +         * specified as relative resource names in the format
                                                    * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -         * Only entries and aspects that belong to the specified entry group are
                                          +         * Only entries and aspects that belong to the specified entry groups are
                                                    * affected by the job.
                                                    *
                                          -         * Must contain exactly one element. The entry group and the job
                                          -         * must be in the same location.
                                          +         * The entry groups and the job must be in the same location.
                                                    * 
                                          * * @@ -5343,14 +5334,13 @@ public com.google.protobuf.ProtocolStringList getEntryGroupsList() { * * *
                                          -         * Required. The entry group that is in scope for the import job,
                                          -         * specified as a relative resource name in the format
                                          +         * Required. The entry groups that are in scope for the import job,
                                          +         * specified as relative resource names in the format
                                                    * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -         * Only entries and aspects that belong to the specified entry group are
                                          +         * Only entries and aspects that belong to the specified entry groups are
                                                    * affected by the job.
                                                    *
                                          -         * Must contain exactly one element. The entry group and the job
                                          -         * must be in the same location.
                                          +         * The entry groups and the job must be in the same location.
                                                    * 
                                          * * @@ -5367,14 +5357,13 @@ public int getEntryGroupsCount() { * * *
                                          -         * Required. The entry group that is in scope for the import job,
                                          -         * specified as a relative resource name in the format
                                          +         * Required. The entry groups that are in scope for the import job,
                                          +         * specified as relative resource names in the format
                                                    * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -         * Only entries and aspects that belong to the specified entry group are
                                          +         * Only entries and aspects that belong to the specified entry groups are
                                                    * affected by the job.
                                                    *
                                          -         * Must contain exactly one element. The entry group and the job
                                          -         * must be in the same location.
                                          +         * The entry groups and the job must be in the same location.
                                                    * 
                                          * * @@ -5392,14 +5381,13 @@ public java.lang.String getEntryGroups(int index) { * * *
                                          -         * Required. The entry group that is in scope for the import job,
                                          -         * specified as a relative resource name in the format
                                          +         * Required. The entry groups that are in scope for the import job,
                                          +         * specified as relative resource names in the format
                                                    * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -         * Only entries and aspects that belong to the specified entry group are
                                          +         * Only entries and aspects that belong to the specified entry groups are
                                                    * affected by the job.
                                                    *
                                          -         * Must contain exactly one element. The entry group and the job
                                          -         * must be in the same location.
                                          +         * The entry groups and the job must be in the same location.
                                                    * 
                                          * * @@ -5417,14 +5405,13 @@ public com.google.protobuf.ByteString getEntryGroupsBytes(int index) { * * *
                                          -         * Required. The entry group that is in scope for the import job,
                                          -         * specified as a relative resource name in the format
                                          +         * Required. The entry groups that are in scope for the import job,
                                          +         * specified as relative resource names in the format
                                                    * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -         * Only entries and aspects that belong to the specified entry group are
                                          +         * Only entries and aspects that belong to the specified entry groups are
                                                    * affected by the job.
                                                    *
                                          -         * Must contain exactly one element. The entry group and the job
                                          -         * must be in the same location.
                                          +         * The entry groups and the job must be in the same location.
                                                    * 
                                          * * @@ -5450,14 +5437,13 @@ public Builder setEntryGroups(int index, java.lang.String value) { * * *
                                          -         * Required. The entry group that is in scope for the import job,
                                          -         * specified as a relative resource name in the format
                                          +         * Required. The entry groups that are in scope for the import job,
                                          +         * specified as relative resource names in the format
                                                    * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -         * Only entries and aspects that belong to the specified entry group are
                                          +         * Only entries and aspects that belong to the specified entry groups are
                                                    * affected by the job.
                                                    *
                                          -         * Must contain exactly one element. The entry group and the job
                                          -         * must be in the same location.
                                          +         * The entry groups and the job must be in the same location.
                                                    * 
                                          * * @@ -5482,14 +5468,13 @@ public Builder addEntryGroups(java.lang.String value) { * * *
                                          -         * Required. The entry group that is in scope for the import job,
                                          -         * specified as a relative resource name in the format
                                          +         * Required. The entry groups that are in scope for the import job,
                                          +         * specified as relative resource names in the format
                                                    * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -         * Only entries and aspects that belong to the specified entry group are
                                          +         * Only entries and aspects that belong to the specified entry groups are
                                                    * affected by the job.
                                                    *
                                          -         * Must contain exactly one element. The entry group and the job
                                          -         * must be in the same location.
                                          +         * The entry groups and the job must be in the same location.
                                                    * 
                                          * * @@ -5511,14 +5496,13 @@ public Builder addAllEntryGroups(java.lang.Iterable values) { * * *
                                          -         * Required. The entry group that is in scope for the import job,
                                          -         * specified as a relative resource name in the format
                                          +         * Required. The entry groups that are in scope for the import job,
                                          +         * specified as relative resource names in the format
                                                    * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -         * Only entries and aspects that belong to the specified entry group are
                                          +         * Only entries and aspects that belong to the specified entry groups are
                                                    * affected by the job.
                                                    *
                                          -         * Must contain exactly one element. The entry group and the job
                                          -         * must be in the same location.
                                          +         * The entry groups and the job must be in the same location.
                                                    * 
                                          * * @@ -5539,14 +5523,13 @@ public Builder clearEntryGroups() { * * *
                                          -         * Required. The entry group that is in scope for the import job,
                                          -         * specified as a relative resource name in the format
                                          +         * Required. The entry groups that are in scope for the import job,
                                          +         * specified as relative resource names in the format
                                                    * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.
                                          -         * Only entries and aspects that belong to the specified entry group are
                                          +         * Only entries and aspects that belong to the specified entry groups are
                                                    * affected by the job.
                                                    *
                                          -         * Must contain exactly one element. The entry group and the job
                                          -         * must be in the same location.
                                          +         * The entry groups and the job must be in the same location.
                                                    * 
                                          * * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java index 20e74a0dc217..9f1b168eace7 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java @@ -80,7 +80,7 @@ public interface SnippetsOrBuilder * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1416 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1450 * @return Whether the dataplexEntry field is set. */ @java.lang.Deprecated @@ -96,7 +96,7 @@ public interface SnippetsOrBuilder * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1416 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1450 * @return The dataplexEntry. */ @java.lang.Deprecated @@ -174,7 +174,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1416 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1450 * @return Whether the dataplexEntry field is set. */ @java.lang.Override @@ -193,7 +193,7 @@ public boolean hasDataplexEntry() { * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1416 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1450 * @return The dataplexEntry. */ @java.lang.Override @@ -607,7 +607,7 @@ public Builder mergeFrom( * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1416 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1450 * @return Whether the dataplexEntry field is set. */ @java.lang.Deprecated @@ -625,7 +625,7 @@ public boolean hasDataplexEntry() { * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1416 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1450 * @return The dataplexEntry. */ @java.lang.Deprecated @@ -876,7 +876,7 @@ public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getDefaultInsta * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1420 + * google/cloud/dataplex/v1/catalog.proto;l=1454 * @return The linkedResource. */ @java.lang.Override @@ -903,7 +903,7 @@ public java.lang.String getLinkedResource() { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1420 + * google/cloud/dataplex/v1/catalog.proto;l=1454 * @return The bytes for linkedResource. */ @java.lang.Override @@ -967,7 +967,7 @@ public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1425 + * google/cloud/dataplex/v1/catalog.proto;l=1459 * @return Whether the snippets field is set. */ @java.lang.Override @@ -987,7 +987,7 @@ public boolean hasSnippets() { *
                                          * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1425 + * google/cloud/dataplex/v1/catalog.proto;l=1459 * @return The snippets. */ @java.lang.Override @@ -1448,7 +1448,7 @@ public Builder mergeFrom( * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1420 + * google/cloud/dataplex/v1/catalog.proto;l=1454 * @return The linkedResource. */ @java.lang.Deprecated @@ -1474,7 +1474,7 @@ public java.lang.String getLinkedResource() { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1420 + * google/cloud/dataplex/v1/catalog.proto;l=1454 * @return The bytes for linkedResource. */ @java.lang.Deprecated @@ -1500,7 +1500,7 @@ public com.google.protobuf.ByteString getLinkedResourceBytes() { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1420 + * google/cloud/dataplex/v1/catalog.proto;l=1454 * @param value The linkedResource to set. * @return This builder for chaining. */ @@ -1525,7 +1525,7 @@ public Builder setLinkedResource(java.lang.String value) { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1420 + * google/cloud/dataplex/v1/catalog.proto;l=1454 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1546,7 +1546,7 @@ public Builder clearLinkedResource() { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1420 + * google/cloud/dataplex/v1/catalog.proto;l=1454 * @param value The bytes for linkedResource to set. * @return This builder for chaining. */ @@ -1707,7 +1707,7 @@ public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1425 + * google/cloud/dataplex/v1/catalog.proto;l=1459 * @return Whether the snippets field is set. */ @java.lang.Deprecated @@ -1727,7 +1727,7 @@ public boolean hasSnippets() { * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1425 + * google/cloud/dataplex/v1/catalog.proto;l=1459 * @return The snippets. */ @java.lang.Deprecated diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java index c28b174dba2d..40b5b5ae11ba 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java @@ -34,7 +34,7 @@ public interface SearchEntriesResultOrBuilder * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1420 + * google/cloud/dataplex/v1/catalog.proto;l=1454 * @return The linkedResource. */ @java.lang.Deprecated @@ -50,7 +50,7 @@ public interface SearchEntriesResultOrBuilder * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1420 + * google/cloud/dataplex/v1/catalog.proto;l=1454 * @return The bytes for linkedResource. */ @java.lang.Deprecated @@ -84,7 +84,7 @@ public interface SearchEntriesResultOrBuilder * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1425 + * google/cloud/dataplex/v1/catalog.proto;l=1459 * @return Whether the snippets field is set. */ @java.lang.Deprecated @@ -101,7 +101,7 @@ public interface SearchEntriesResultOrBuilder * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1425 + * google/cloud/dataplex/v1/catalog.proto;l=1459 * @return The snippets. */ @java.lang.Deprecated diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto index 97a2b37659a9..0e0a05ec95e3 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto @@ -246,6 +246,11 @@ service CatalogService { } // Lists Entries within an EntryGroup. + // Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc + // Metastore metadata that is stored in Dataplex Universal Catalog is + // changing. For more information, see [Changes to metadata stored in + // Dataplex Universal + // Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). rpc ListEntries(ListEntriesRequest) returns (ListEntriesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/entryGroups/*}/entries" @@ -254,6 +259,11 @@ service CatalogService { } // Gets an Entry. + // Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc + // Metastore metadata that is stored in Dataplex Universal Catalog is + // changing. For more information, see [Changes to metadata stored in + // Dataplex Universal + // Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). rpc GetEntry(GetEntryRequest) returns (Entry) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}" @@ -262,6 +272,11 @@ service CatalogService { } // Looks up an entry by name using the permission on the source system. + // Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc + // Metastore metadata that is stored in Dataplex Universal Catalog is + // changing. For more information, see [Changes to metadata stored in + // Dataplex Universal + // Catalog](https://cloud.google.com/dataplex/docs/metadata-changes). rpc LookupEntry(LookupEntryRequest) returns (Entry) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*}:lookupEntry" @@ -369,6 +384,15 @@ message AspectType { [(google.api.field_behavior) = IMMUTABLE]; } + // Classifies the data stored by the aspect. + enum DataClassification { + // Denotes that the aspect contains only metadata. + DATA_CLASSIFICATION_UNSPECIFIED = 0; + + // Metadata and data classification. + METADATA_AND_DATA = 1; + } + // MetadataTemplate definition for an AspectType. message MetadataTemplate { // Definition of Enumvalue, to be used for enum fields. @@ -527,6 +551,12 @@ message AspectType { // delete requests to ensure it has an up-to-date value before proceeding. string etag = 8; + // Optional. Immutable. Stores data classification of the aspect. + DataClassification data_classification = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + // Immutable. Defines the Authorization for this type. Authorization authorization = 52 [(google.api.field_behavior) = IMMUTABLE]; @@ -1286,14 +1316,17 @@ message ListEntriesRequest { // // * entry_type // * entry_source.display_name + // * parent_entry // // The comparison operators are =, !=, <, >, <=, >=. The service compares // strings according to lexical order. // // You can use the logical operators AND, OR, NOT in the filter. // - // You can use Wildcard "*", but for entry_type you need to provide the - // full project id or number. + // You can use Wildcard "*", but for entry_type and parent_entry you need to + // provide the full project id or number. + // + // You cannot use parent_entry in conjunction with other fields. // // Example filter expressions: // @@ -1302,6 +1335,7 @@ message ListEntriesRequest { // * "entry_type=projects/example-project/locations/us/entryTypes/a* OR // entry_type=projects/another-project/locations/*" // * "NOT entry_source.display_name=AnotherExampleDisplayName" + // * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" string filter = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -1719,14 +1753,13 @@ message MetadataJob { // A boundary on the scope of impact that the metadata import job can have. message ImportJobScope { - // Required. The entry group that is in scope for the import job, - // specified as a relative resource name in the format + // Required. The entry groups that are in scope for the import job, + // specified as relative resource names in the format // `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. - // Only entries and aspects that belong to the specified entry group are + // Only entries and aspects that belong to the specified entry groups are // affected by the job. // - // Must contain exactly one element. The entry group and the job - // must be in the same location. + // The entry groups and the job must be in the same location. repeated string entry_groups = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -2066,8 +2099,6 @@ enum EntryView { // aspects exceeds 100, the first 100 will be returned. CUSTOM = 3; - // Returns all aspects. If the number of aspects exceeds 100, the first - // 100 will be returned. ALL = 4; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/cmek.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/cmek.proto index 62b8a03b263d..c0aecba79059 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/cmek.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/cmek.proto @@ -189,6 +189,9 @@ message EncryptionConfig { // Output only. Details of the failure if anything related to Cmek db fails. FailureDetails failure_details = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Represent the state of CMEK opt-in for metastore. + bool enable_metastore_encryption = 8 [(google.api.field_behavior) = OPTIONAL]; } // Create EncryptionConfig Request diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_documentation.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_documentation.proto new file mode 100644 index 000000000000..71b5e26b1554 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_documentation.proto @@ -0,0 +1,81 @@ +// Copyright 2025 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.dataplex.v1; + +import "google/api/field_behavior.proto"; + +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; +option java_multiple_files = true; +option java_outer_classname = "DataDocumentationProto"; +option java_package = "com.google.cloud.dataplex.v1"; + +// DataDocumentation scan related spec. +message DataDocumentationSpec {} + +// The output of a DataDocumentation scan. +message DataDocumentationResult { + // Generated metadata about the table. + message TableResult { + // Output only. The service-qualified full resource name of the cloud + // resource. Ex: + // //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Generated description of the table. + string overview = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Schema of the table with generated metadata of the columns + // in the schema. + Schema schema = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Sample SQL queries for the table. + repeated Query queries = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // A sample SQL query in data documentation. + message Query { + // Output only. The SQL query string which can be executed. + string sql = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description for the query. + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Schema of the table with generated metadata of columns. + message Schema { + // Output only. The list of columns. + repeated Field fields = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Column of a table with generated metadata and nested fields. + message Field { + // Output only. The name of the column. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Generated description for columns and fields. + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Nested fields. + repeated Field fields = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The result of the data documentation scan. + oneof result { + // Output only. Table result for insights. + TableResult table_result = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_profile.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_profile.proto index 09143b9bcf15..ae729a36e057 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_profile.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_profile.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dataplex.v1; import "google/api/field_behavior.proto"; +import "google/cloud/dataplex/v1/datascans_common.proto"; import "google/cloud/dataplex/v1/processing.proto"; option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; @@ -83,6 +84,10 @@ message DataProfileSpec { // If specified, the fields will be excluded from data profile, regardless of // `include_fields` value. SelectedFields exclude_fields = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, the latest DataScan job result will be published as + // Dataplex Universal Catalog metadata. + bool catalog_publishing_enabled = 8 [(google.api.field_behavior) = OPTIONAL]; } // DataProfileResult defines the output of DataProfileScan. Each field of the @@ -292,4 +297,9 @@ message DataProfileResult { // Output only. The result of post scan actions. PostScanActionsResult post_scan_actions_result = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of publishing the data scan as Dataplex Universal + // Catalog metadata. + DataScanCatalogPublishingStatus catalog_publishing_status = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto index 4efccaefeeaf..36476a60e08c 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto @@ -159,6 +159,35 @@ message DataQualityResult { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // The assets generated by Anomaly Detection Data Scan. + message AnomalyDetectionGeneratedAssets { + // Output only. The result table for anomaly detection. + // Format: + // PROJECT_ID.DATASET_ID.TABLE_ID + // If the result table is set at AnomalyDetectionAssets, the result table + // here would be the same as the one set in the + // AnomalyDetectionAssets.result_table. + string result_table = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The intermediate table for data anomaly detection. + // Format: + // PROJECT_ID.DATASET_ID.TABLE_ID + string data_intermediate_table = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The intermediate table for freshness anomaly detection. + // Format: + // PROJECT_ID.DATASET_ID.TABLE_ID + string freshness_intermediate_table = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The intermediate table for volume anomaly detection. + // Format: + // PROJECT_ID.DATASET_ID.TABLE_ID + string volume_intermediate_table = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Output only. Overall data quality result -- `true` if all rules passed. bool passed = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -199,6 +228,10 @@ message DataQualityResult { // Catalog metadata. DataScanCatalogPublishingStatus catalog_publishing_status = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The generated assets for anomaly detection. + AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // DataQualityRuleResult provides a more detailed, per-rule view of the results. diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto index 9c67f8261bc2..14ecc5d7b3ab 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/dataplex/v1/data_discovery.proto"; +import "google/cloud/dataplex/v1/data_documentation.proto"; import "google/cloud/dataplex/v1/data_profile.proto"; import "google/cloud/dataplex/v1/data_quality.proto"; import "google/cloud/dataplex/v1/processing.proto"; @@ -425,6 +426,10 @@ message GenerateDataQualityRulesResponse { // * Data discovery: scans data in Cloud Storage buckets to extract and then // catalog metadata. For more information, see [Discover and catalog Cloud // Storage data](https://cloud.google.com/bigquery/docs/automatic-discovery). +// * Data documentation: analyzes the table details and generates insights +// including descriptions and sample SQL queries for the table. For more +// information, see [Generate data insights in +// BigQuery](https://cloud.google.com/bigquery/docs/data-insights). message DataScan { option (google.api.resource) = { type: "dataplex.googleapis.com/DataScan" @@ -536,6 +541,9 @@ message DataScan { // Settings for a data discovery scan. DataDiscoverySpec data_discovery_spec = 102; + + // Settings for a data documentation scan. + DataDocumentationSpec data_documentation_spec = 103; } // The result of the data scan. @@ -551,6 +559,10 @@ message DataScan { // Output only. The result of a data discovery scan. DataDiscoveryResult data_discovery_result = 202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The result of a data documentation scan. + DataDocumentationResult data_documentation_result = 203 + [(google.api.field_behavior) = OUTPUT_ONLY]; } } @@ -635,6 +647,10 @@ message DataScanJob { // Output only. Settings for a data discovery scan. DataDiscoverySpec data_discovery_spec = 102 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Settings for a data documentation scan. + DataDocumentationSpec data_documentation_spec = 103 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The result of the data scan. @@ -650,6 +666,10 @@ message DataScanJob { // Output only. The result of a data discovery scan. DataDiscoveryResult data_discovery_result = 202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The result of a data documentation scan. + DataDocumentationResult data_documentation_result = 203 + [(google.api.field_behavior) = OUTPUT_ONLY]; } } @@ -666,4 +686,7 @@ enum DataScanType { // Data discovery scan. DATA_DISCOVERY = 3; + + // Data documentation scan. + DATA_DOCUMENTATION = 4; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/processing.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/processing.proto index 37bf3c47bbcf..5b8fc25353e8 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/processing.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/processing.proto @@ -78,8 +78,8 @@ message DataSource { // Storage bucket for DataDiscoveryScan Format: // //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID // or - // BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan - // Format: + // BigQuery table of type "TABLE" for + // DataProfileScan/DataQualityScan/DataDocumentationScan Format: // //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID string resource = 101 [(google.api.field_behavior) = IMMUTABLE]; } diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index b2eb0bcbf44e..3b7e412a5aa1 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.78.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationGrpc.java b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationGrpc.java index 5330a78c6199..22443715c39a 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationGrpc.java +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationGrpc.java @@ -35,9 +35,6 @@ * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/metastore/v1/metastore_federation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataprocMetastoreFederationGrpc { @@ -608,8 +605,9 @@ protected DataprocMetastoreFederationBlockingV2Stub build( * */ public com.google.cloud.metastore.v1.ListFederationsResponse listFederations( - com.google.cloud.metastore.v1.ListFederationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.ListFederationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFederationsMethod(), getCallOptions(), request); } @@ -621,8 +619,8 @@ public com.google.cloud.metastore.v1.ListFederationsResponse listFederations( * */ public com.google.cloud.metastore.v1.Federation getFederation( - com.google.cloud.metastore.v1.GetFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.GetFederationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFederationMethod(), getCallOptions(), request); } @@ -634,8 +632,9 @@ public com.google.cloud.metastore.v1.Federation getFederation( * */ public com.google.longrunning.Operation createFederation( - com.google.cloud.metastore.v1.CreateFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.CreateFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFederationMethod(), getCallOptions(), request); } @@ -647,8 +646,9 @@ public com.google.longrunning.Operation createFederation( * */ public com.google.longrunning.Operation updateFederation( - com.google.cloud.metastore.v1.UpdateFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.UpdateFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFederationMethod(), getCallOptions(), request); } @@ -660,8 +660,9 @@ public com.google.longrunning.Operation updateFederation( * */ public com.google.longrunning.Operation deleteFederation( - com.google.cloud.metastore.v1.DeleteFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.DeleteFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFederationMethod(), getCallOptions(), request); } } diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreGrpc.java b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreGrpc.java index 5936b283ad54..e02fdedf7dda 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreGrpc.java +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreGrpc.java @@ -37,9 +37,6 @@ * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/metastore/v1/metastore.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataprocMetastoreGrpc { @@ -1596,8 +1593,8 @@ protected DataprocMetastoreBlockingV2Stub build( * */ public com.google.cloud.metastore.v1.ListServicesResponse listServices( - com.google.cloud.metastore.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.ListServicesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -1609,8 +1606,8 @@ public com.google.cloud.metastore.v1.ListServicesResponse listServices( * */ public com.google.cloud.metastore.v1.Service getService( - com.google.cloud.metastore.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.GetServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -1622,8 +1619,8 @@ public com.google.cloud.metastore.v1.Service getService( * */ public com.google.longrunning.Operation createService( - com.google.cloud.metastore.v1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.CreateServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); } @@ -1635,8 +1632,8 @@ public com.google.longrunning.Operation createService( * */ public com.google.longrunning.Operation updateService( - com.google.cloud.metastore.v1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.UpdateServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } @@ -1648,8 +1645,8 @@ public com.google.longrunning.Operation updateService( * */ public com.google.longrunning.Operation deleteService( - com.google.cloud.metastore.v1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.DeleteServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } @@ -1661,8 +1658,9 @@ public com.google.longrunning.Operation deleteService( * */ public com.google.cloud.metastore.v1.ListMetadataImportsResponse listMetadataImports( - com.google.cloud.metastore.v1.ListMetadataImportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.ListMetadataImportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetadataImportsMethod(), getCallOptions(), request); } @@ -1674,8 +1672,9 @@ public com.google.cloud.metastore.v1.ListMetadataImportsResponse listMetadataImp * */ public com.google.cloud.metastore.v1.MetadataImport getMetadataImport( - com.google.cloud.metastore.v1.GetMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.GetMetadataImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetadataImportMethod(), getCallOptions(), request); } @@ -1687,8 +1686,9 @@ public com.google.cloud.metastore.v1.MetadataImport getMetadataImport( * */ public com.google.longrunning.Operation createMetadataImport( - com.google.cloud.metastore.v1.CreateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.CreateMetadataImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMetadataImportMethod(), getCallOptions(), request); } @@ -1701,8 +1701,9 @@ public com.google.longrunning.Operation createMetadataImport( * */ public com.google.longrunning.Operation updateMetadataImport( - com.google.cloud.metastore.v1.UpdateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.UpdateMetadataImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMetadataImportMethod(), getCallOptions(), request); } @@ -1714,8 +1715,9 @@ public com.google.longrunning.Operation updateMetadataImport( * */ public com.google.longrunning.Operation exportMetadata( - com.google.cloud.metastore.v1.ExportMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.ExportMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportMetadataMethod(), getCallOptions(), request); } @@ -1727,8 +1729,9 @@ public com.google.longrunning.Operation exportMetadata( * */ public com.google.longrunning.Operation restoreService( - com.google.cloud.metastore.v1.RestoreServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.RestoreServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreServiceMethod(), getCallOptions(), request); } @@ -1740,8 +1743,8 @@ public com.google.longrunning.Operation restoreService( * */ public com.google.cloud.metastore.v1.ListBackupsResponse listBackups( - com.google.cloud.metastore.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.ListBackupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -1753,8 +1756,8 @@ public com.google.cloud.metastore.v1.ListBackupsResponse listBackups( * */ public com.google.cloud.metastore.v1.Backup getBackup( - com.google.cloud.metastore.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -1766,8 +1769,8 @@ public com.google.cloud.metastore.v1.Backup getBackup( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.metastore.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.CreateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -1779,8 +1782,8 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.metastore.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.DeleteBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -1792,8 +1795,8 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.longrunning.Operation queryMetadata( - com.google.cloud.metastore.v1.QueryMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.QueryMetadataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryMetadataMethod(), getCallOptions(), request); } @@ -1805,8 +1808,9 @@ public com.google.longrunning.Operation queryMetadata( * */ public com.google.longrunning.Operation moveTableToDatabase( - com.google.cloud.metastore.v1.MoveTableToDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.MoveTableToDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveTableToDatabaseMethod(), getCallOptions(), request); } @@ -1821,8 +1825,9 @@ public com.google.longrunning.Operation moveTableToDatabase( * */ public com.google.longrunning.Operation alterMetadataResourceLocation( - com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAlterMetadataResourceLocationMethod(), getCallOptions(), request); } } diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationGrpc.java b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationGrpc.java index 3aad5ce60ecb..d1d4c91c35f0 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationGrpc.java +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationGrpc.java @@ -35,9 +35,6 @@ * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/metastore/v1alpha/metastore_federation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataprocMetastoreFederationGrpc { @@ -619,8 +616,9 @@ protected DataprocMetastoreFederationBlockingV2Stub build( * */ public com.google.cloud.metastore.v1alpha.ListFederationsResponse listFederations( - com.google.cloud.metastore.v1alpha.ListFederationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.ListFederationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFederationsMethod(), getCallOptions(), request); } @@ -632,8 +630,9 @@ public com.google.cloud.metastore.v1alpha.ListFederationsResponse listFederation * */ public com.google.cloud.metastore.v1alpha.Federation getFederation( - com.google.cloud.metastore.v1alpha.GetFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.GetFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFederationMethod(), getCallOptions(), request); } @@ -645,8 +644,9 @@ public com.google.cloud.metastore.v1alpha.Federation getFederation( * */ public com.google.longrunning.Operation createFederation( - com.google.cloud.metastore.v1alpha.CreateFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.CreateFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFederationMethod(), getCallOptions(), request); } @@ -658,8 +658,9 @@ public com.google.longrunning.Operation createFederation( * */ public com.google.longrunning.Operation updateFederation( - com.google.cloud.metastore.v1alpha.UpdateFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.UpdateFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFederationMethod(), getCallOptions(), request); } @@ -671,8 +672,9 @@ public com.google.longrunning.Operation updateFederation( * */ public com.google.longrunning.Operation deleteFederation( - com.google.cloud.metastore.v1alpha.DeleteFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.DeleteFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFederationMethod(), getCallOptions(), request); } } diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreGrpc.java b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreGrpc.java index 9dc50eb64eb9..fa665704f8e8 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreGrpc.java +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreGrpc.java @@ -37,9 +37,6 @@ * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/metastore/v1alpha/metastore.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataprocMetastoreGrpc { @@ -1697,8 +1694,9 @@ protected DataprocMetastoreBlockingV2Stub build( * */ public com.google.cloud.metastore.v1alpha.ListServicesResponse listServices( - com.google.cloud.metastore.v1alpha.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.ListServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -1710,8 +1708,9 @@ public com.google.cloud.metastore.v1alpha.ListServicesResponse listServices( * */ public com.google.cloud.metastore.v1alpha.Service getService( - com.google.cloud.metastore.v1alpha.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.GetServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -1723,8 +1722,9 @@ public com.google.cloud.metastore.v1alpha.Service getService( * */ public com.google.longrunning.Operation createService( - com.google.cloud.metastore.v1alpha.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.CreateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); } @@ -1736,8 +1736,9 @@ public com.google.longrunning.Operation createService( * */ public com.google.longrunning.Operation updateService( - com.google.cloud.metastore.v1alpha.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.UpdateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } @@ -1749,8 +1750,9 @@ public com.google.longrunning.Operation updateService( * */ public com.google.longrunning.Operation deleteService( - com.google.cloud.metastore.v1alpha.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.DeleteServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } @@ -1762,8 +1764,9 @@ public com.google.longrunning.Operation deleteService( * */ public com.google.cloud.metastore.v1alpha.ListMetadataImportsResponse listMetadataImports( - com.google.cloud.metastore.v1alpha.ListMetadataImportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.ListMetadataImportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetadataImportsMethod(), getCallOptions(), request); } @@ -1775,8 +1778,9 @@ public com.google.cloud.metastore.v1alpha.ListMetadataImportsResponse listMetada * */ public com.google.cloud.metastore.v1alpha.MetadataImport getMetadataImport( - com.google.cloud.metastore.v1alpha.GetMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.GetMetadataImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetadataImportMethod(), getCallOptions(), request); } @@ -1788,8 +1792,9 @@ public com.google.cloud.metastore.v1alpha.MetadataImport getMetadataImport( * */ public com.google.longrunning.Operation createMetadataImport( - com.google.cloud.metastore.v1alpha.CreateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.CreateMetadataImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMetadataImportMethod(), getCallOptions(), request); } @@ -1802,8 +1807,9 @@ public com.google.longrunning.Operation createMetadataImport( * */ public com.google.longrunning.Operation updateMetadataImport( - com.google.cloud.metastore.v1alpha.UpdateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.UpdateMetadataImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMetadataImportMethod(), getCallOptions(), request); } @@ -1815,8 +1821,9 @@ public com.google.longrunning.Operation updateMetadataImport( * */ public com.google.longrunning.Operation exportMetadata( - com.google.cloud.metastore.v1alpha.ExportMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.ExportMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportMetadataMethod(), getCallOptions(), request); } @@ -1828,8 +1835,9 @@ public com.google.longrunning.Operation exportMetadata( * */ public com.google.longrunning.Operation restoreService( - com.google.cloud.metastore.v1alpha.RestoreServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.RestoreServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreServiceMethod(), getCallOptions(), request); } @@ -1841,8 +1849,9 @@ public com.google.longrunning.Operation restoreService( * */ public com.google.cloud.metastore.v1alpha.ListBackupsResponse listBackups( - com.google.cloud.metastore.v1alpha.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.ListBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -1854,8 +1863,9 @@ public com.google.cloud.metastore.v1alpha.ListBackupsResponse listBackups( * */ public com.google.cloud.metastore.v1alpha.Backup getBackup( - com.google.cloud.metastore.v1alpha.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.GetBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -1867,8 +1877,9 @@ public com.google.cloud.metastore.v1alpha.Backup getBackup( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.metastore.v1alpha.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.CreateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -1880,8 +1891,9 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.metastore.v1alpha.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.DeleteBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -1893,8 +1905,9 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.cloud.metastore.v1alpha.RemoveIamPolicyResponse removeIamPolicy( - com.google.cloud.metastore.v1alpha.RemoveIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.RemoveIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveIamPolicyMethod(), getCallOptions(), request); } @@ -1906,8 +1919,9 @@ public com.google.cloud.metastore.v1alpha.RemoveIamPolicyResponse removeIamPolic * */ public com.google.longrunning.Operation queryMetadata( - com.google.cloud.metastore.v1alpha.QueryMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.QueryMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryMetadataMethod(), getCallOptions(), request); } @@ -1919,8 +1933,9 @@ public com.google.longrunning.Operation queryMetadata( * */ public com.google.longrunning.Operation moveTableToDatabase( - com.google.cloud.metastore.v1alpha.MoveTableToDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.MoveTableToDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveTableToDatabaseMethod(), getCallOptions(), request); } @@ -1935,8 +1950,9 @@ public com.google.longrunning.Operation moveTableToDatabase( * */ public com.google.longrunning.Operation alterMetadataResourceLocation( - com.google.cloud.metastore.v1alpha.AlterMetadataResourceLocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1alpha.AlterMetadataResourceLocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAlterMetadataResourceLocationMethod(), getCallOptions(), request); } } diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationGrpc.java b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationGrpc.java index 5537548085ed..b6b4e42531d9 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationGrpc.java +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationGrpc.java @@ -35,9 +35,6 @@ * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/metastore/v1beta/metastore_federation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataprocMetastoreFederationGrpc { @@ -619,8 +616,9 @@ protected DataprocMetastoreFederationBlockingV2Stub build( * */ public com.google.cloud.metastore.v1beta.ListFederationsResponse listFederations( - com.google.cloud.metastore.v1beta.ListFederationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.ListFederationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFederationsMethod(), getCallOptions(), request); } @@ -632,8 +630,9 @@ public com.google.cloud.metastore.v1beta.ListFederationsResponse listFederations * */ public com.google.cloud.metastore.v1beta.Federation getFederation( - com.google.cloud.metastore.v1beta.GetFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.GetFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFederationMethod(), getCallOptions(), request); } @@ -645,8 +644,9 @@ public com.google.cloud.metastore.v1beta.Federation getFederation( * */ public com.google.longrunning.Operation createFederation( - com.google.cloud.metastore.v1beta.CreateFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.CreateFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFederationMethod(), getCallOptions(), request); } @@ -658,8 +658,9 @@ public com.google.longrunning.Operation createFederation( * */ public com.google.longrunning.Operation updateFederation( - com.google.cloud.metastore.v1beta.UpdateFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.UpdateFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFederationMethod(), getCallOptions(), request); } @@ -671,8 +672,9 @@ public com.google.longrunning.Operation updateFederation( * */ public com.google.longrunning.Operation deleteFederation( - com.google.cloud.metastore.v1beta.DeleteFederationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.DeleteFederationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFederationMethod(), getCallOptions(), request); } } diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreGrpc.java b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreGrpc.java index fd51f448bcd4..47cf9793a445 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreGrpc.java +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreGrpc.java @@ -37,9 +37,6 @@ * `/projects/{project_number}/locations/{location_id}/services/{service_id}`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/metastore/v1beta/metastore.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataprocMetastoreGrpc { @@ -1691,8 +1688,9 @@ protected DataprocMetastoreBlockingV2Stub build( * */ public com.google.cloud.metastore.v1beta.ListServicesResponse listServices( - com.google.cloud.metastore.v1beta.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.ListServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -1704,8 +1702,9 @@ public com.google.cloud.metastore.v1beta.ListServicesResponse listServices( * */ public com.google.cloud.metastore.v1beta.Service getService( - com.google.cloud.metastore.v1beta.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.GetServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -1717,8 +1716,9 @@ public com.google.cloud.metastore.v1beta.Service getService( * */ public com.google.longrunning.Operation createService( - com.google.cloud.metastore.v1beta.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.CreateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); } @@ -1730,8 +1730,9 @@ public com.google.longrunning.Operation createService( * */ public com.google.longrunning.Operation updateService( - com.google.cloud.metastore.v1beta.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.UpdateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } @@ -1743,8 +1744,9 @@ public com.google.longrunning.Operation updateService( * */ public com.google.longrunning.Operation deleteService( - com.google.cloud.metastore.v1beta.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.DeleteServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } @@ -1756,8 +1758,9 @@ public com.google.longrunning.Operation deleteService( * */ public com.google.cloud.metastore.v1beta.ListMetadataImportsResponse listMetadataImports( - com.google.cloud.metastore.v1beta.ListMetadataImportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.ListMetadataImportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetadataImportsMethod(), getCallOptions(), request); } @@ -1769,8 +1772,9 @@ public com.google.cloud.metastore.v1beta.ListMetadataImportsResponse listMetadat * */ public com.google.cloud.metastore.v1beta.MetadataImport getMetadataImport( - com.google.cloud.metastore.v1beta.GetMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.GetMetadataImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetadataImportMethod(), getCallOptions(), request); } @@ -1782,8 +1786,9 @@ public com.google.cloud.metastore.v1beta.MetadataImport getMetadataImport( * */ public com.google.longrunning.Operation createMetadataImport( - com.google.cloud.metastore.v1beta.CreateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.CreateMetadataImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMetadataImportMethod(), getCallOptions(), request); } @@ -1796,8 +1801,9 @@ public com.google.longrunning.Operation createMetadataImport( * */ public com.google.longrunning.Operation updateMetadataImport( - com.google.cloud.metastore.v1beta.UpdateMetadataImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.UpdateMetadataImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMetadataImportMethod(), getCallOptions(), request); } @@ -1809,8 +1815,9 @@ public com.google.longrunning.Operation updateMetadataImport( * */ public com.google.longrunning.Operation exportMetadata( - com.google.cloud.metastore.v1beta.ExportMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.ExportMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportMetadataMethod(), getCallOptions(), request); } @@ -1822,8 +1829,9 @@ public com.google.longrunning.Operation exportMetadata( * */ public com.google.longrunning.Operation restoreService( - com.google.cloud.metastore.v1beta.RestoreServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.RestoreServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreServiceMethod(), getCallOptions(), request); } @@ -1835,8 +1843,9 @@ public com.google.longrunning.Operation restoreService( * */ public com.google.cloud.metastore.v1beta.ListBackupsResponse listBackups( - com.google.cloud.metastore.v1beta.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.ListBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -1848,8 +1857,8 @@ public com.google.cloud.metastore.v1beta.ListBackupsResponse listBackups( * */ public com.google.cloud.metastore.v1beta.Backup getBackup( - com.google.cloud.metastore.v1beta.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -1861,8 +1870,9 @@ public com.google.cloud.metastore.v1beta.Backup getBackup( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.metastore.v1beta.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.CreateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -1874,8 +1884,9 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.metastore.v1beta.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.DeleteBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -1887,8 +1898,9 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.cloud.metastore.v1beta.RemoveIamPolicyResponse removeIamPolicy( - com.google.cloud.metastore.v1beta.RemoveIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.RemoveIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveIamPolicyMethod(), getCallOptions(), request); } @@ -1900,8 +1912,9 @@ public com.google.cloud.metastore.v1beta.RemoveIamPolicyResponse removeIamPolicy * */ public com.google.longrunning.Operation queryMetadata( - com.google.cloud.metastore.v1beta.QueryMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.QueryMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryMetadataMethod(), getCallOptions(), request); } @@ -1913,8 +1926,9 @@ public com.google.longrunning.Operation queryMetadata( * */ public com.google.longrunning.Operation moveTableToDatabase( - com.google.cloud.metastore.v1beta.MoveTableToDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.MoveTableToDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveTableToDatabaseMethod(), getCallOptions(), request); } @@ -1929,8 +1943,9 @@ public com.google.longrunning.Operation moveTableToDatabase( * */ public com.google.longrunning.Operation alterMetadataResourceLocation( - com.google.cloud.metastore.v1beta.AlterMetadataResourceLocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.metastore.v1beta.AlterMetadataResourceLocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAlterMetadataResourceLocationMethod(), getCallOptions(), request); } } diff --git a/java-dataproc/README.md b/java-dataproc/README.md index daea08bcb929..0f1b25f83caf 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.74.0 + 4.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.74.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.75.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java index 6e8e62276cc0..3cfe19a09796 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java @@ -25,9 +25,6 @@ * Dataproc API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/autoscaling_policies.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutoscalingPolicyServiceGrpc { @@ -590,8 +587,9 @@ protected AutoscalingPolicyServiceBlockingV2Stub build( * */ public com.google.cloud.dataproc.v1.AutoscalingPolicy createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAutoscalingPolicyMethod(), getCallOptions(), request); } @@ -605,8 +603,9 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy createAutoscalingPolicy( * */ public com.google.cloud.dataproc.v1.AutoscalingPolicy updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAutoscalingPolicyMethod(), getCallOptions(), request); } @@ -618,8 +617,9 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy updateAutoscalingPolicy( * */ public com.google.cloud.dataproc.v1.AutoscalingPolicy getAutoscalingPolicy( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAutoscalingPolicyMethod(), getCallOptions(), request); } @@ -631,8 +631,9 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy getAutoscalingPolicy( * */ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAutoscalingPoliciesMethod(), getCallOptions(), request); } @@ -645,8 +646,9 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse listAutoscal * */ public com.google.protobuf.Empty deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAutoscalingPolicyMethod(), getCallOptions(), request); } } diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java index fbf7d131f7aa..d0c90949d0ee 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java @@ -24,9 +24,6 @@ * The BatchController provides methods to manage batch workloads. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/batches.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BatchControllerGrpc { @@ -453,8 +450,8 @@ protected BatchControllerBlockingV2Stub build( * */ public com.google.longrunning.Operation createBatch( - com.google.cloud.dataproc.v1.CreateBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.CreateBatchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBatchMethod(), getCallOptions(), request); } @@ -466,8 +463,8 @@ public com.google.longrunning.Operation createBatch( * */ public com.google.cloud.dataproc.v1.Batch getBatch( - com.google.cloud.dataproc.v1.GetBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.GetBatchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBatchMethod(), getCallOptions(), request); } @@ -479,8 +476,8 @@ public com.google.cloud.dataproc.v1.Batch getBatch( * */ public com.google.cloud.dataproc.v1.ListBatchesResponse listBatches( - com.google.cloud.dataproc.v1.ListBatchesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.ListBatchesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBatchesMethod(), getCallOptions(), request); } @@ -493,8 +490,8 @@ public com.google.cloud.dataproc.v1.ListBatchesResponse listBatches( * */ public com.google.protobuf.Empty deleteBatch( - com.google.cloud.dataproc.v1.DeleteBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.DeleteBatchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBatchMethod(), getCallOptions(), request); } } diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java index daaea5fed197..9ffce200cdcb 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java @@ -25,9 +25,6 @@ * of Compute Engine instances. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/clusters.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ClusterControllerGrpc { @@ -785,8 +782,8 @@ protected ClusterControllerBlockingV2Stub build( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.dataproc.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.CreateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -803,8 +800,8 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.dataproc.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.UpdateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -816,8 +813,8 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation stopCluster( - com.google.cloud.dataproc.v1.StopClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.StopClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopClusterMethod(), getCallOptions(), request); } @@ -829,8 +826,8 @@ public com.google.longrunning.Operation stopCluster( * */ public com.google.longrunning.Operation startCluster( - com.google.cloud.dataproc.v1.StartClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.StartClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartClusterMethod(), getCallOptions(), request); } @@ -844,8 +841,8 @@ public com.google.longrunning.Operation startCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.dataproc.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.DeleteClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -857,8 +854,8 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.cloud.dataproc.v1.Cluster getCluster( - com.google.cloud.dataproc.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.GetClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -870,8 +867,8 @@ public com.google.cloud.dataproc.v1.Cluster getCluster( * */ public com.google.cloud.dataproc.v1.ListClustersResponse listClusters( - com.google.cloud.dataproc.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.ListClustersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -889,8 +886,9 @@ public com.google.cloud.dataproc.v1.ListClustersResponse listClusters( * */ public com.google.longrunning.Operation diagnoseCluster( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); } } diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java index a1ff0a5268d9..97be7f8de6bd 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java @@ -24,9 +24,6 @@ * The JobController provides methods to manage jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/jobs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class JobControllerGrpc { @@ -657,8 +654,8 @@ protected JobControllerBlockingV2Stub build( * */ public com.google.cloud.dataproc.v1.Job submitJob( - com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.SubmitJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitJobMethod(), getCallOptions(), request); } @@ -670,8 +667,8 @@ public com.google.cloud.dataproc.v1.Job submitJob( * */ public com.google.longrunning.Operation submitJobAsOperation( - com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.SubmitJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitJobAsOperationMethod(), getCallOptions(), request); } @@ -683,8 +680,8 @@ public com.google.longrunning.Operation submitJobAsOperation( * */ public com.google.cloud.dataproc.v1.Job getJob( - com.google.cloud.dataproc.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.GetJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -696,8 +693,8 @@ public com.google.cloud.dataproc.v1.Job getJob( * */ public com.google.cloud.dataproc.v1.ListJobsResponse listJobs( - com.google.cloud.dataproc.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -709,8 +706,8 @@ public com.google.cloud.dataproc.v1.ListJobsResponse listJobs( * */ public com.google.cloud.dataproc.v1.Job updateJob( - com.google.cloud.dataproc.v1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.UpdateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateJobMethod(), getCallOptions(), request); } @@ -726,8 +723,8 @@ public com.google.cloud.dataproc.v1.Job updateJob( * */ public com.google.cloud.dataproc.v1.Job cancelJob( - com.google.cloud.dataproc.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.CancelJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelJobMethod(), getCallOptions(), request); } @@ -740,8 +737,8 @@ public com.google.cloud.dataproc.v1.Job cancelJob( * */ public com.google.protobuf.Empty deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.DeleteJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } } diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java index cb17b15ebbae..c92439bed070 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerGrpc.java @@ -25,9 +25,6 @@ * of Compute Engine managed instances. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/node_groups.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NodeGroupControllerGrpc { @@ -401,8 +398,9 @@ protected NodeGroupControllerBlockingV2Stub build( * */ public com.google.longrunning.Operation createNodeGroup( - com.google.cloud.dataproc.v1.CreateNodeGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.CreateNodeGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNodeGroupMethod(), getCallOptions(), request); } @@ -416,8 +414,9 @@ public com.google.longrunning.Operation createNodeGroup( * */ public com.google.longrunning.Operation resizeNodeGroup( - com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.ResizeNodeGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResizeNodeGroupMethod(), getCallOptions(), request); } @@ -430,8 +429,8 @@ public com.google.longrunning.Operation resizeNodeGroup( * */ public com.google.cloud.dataproc.v1.NodeGroup getNodeGroup( - com.google.cloud.dataproc.v1.GetNodeGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.GetNodeGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNodeGroupMethod(), getCallOptions(), request); } } diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionControllerGrpc.java index 194954c800da..f3d1fd246789 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionControllerGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionControllerGrpc.java @@ -24,9 +24,6 @@ * The `SessionController` provides methods to manage interactive sessions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/sessions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionControllerGrpc { @@ -532,8 +529,8 @@ protected SessionControllerBlockingV2Stub build( * */ public com.google.longrunning.Operation createSession( - com.google.cloud.dataproc.v1.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.CreateSessionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } @@ -545,8 +542,8 @@ public com.google.longrunning.Operation createSession( * */ public com.google.cloud.dataproc.v1.Session getSession( - com.google.cloud.dataproc.v1.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.GetSessionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionMethod(), getCallOptions(), request); } @@ -558,8 +555,8 @@ public com.google.cloud.dataproc.v1.Session getSession( * */ public com.google.cloud.dataproc.v1.ListSessionsResponse listSessions( - com.google.cloud.dataproc.v1.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.ListSessionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } @@ -571,8 +568,9 @@ public com.google.cloud.dataproc.v1.ListSessionsResponse listSessions( * */ public com.google.longrunning.Operation terminateSession( - com.google.cloud.dataproc.v1.TerminateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.TerminateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTerminateSessionMethod(), getCallOptions(), request); } @@ -585,8 +583,8 @@ public com.google.longrunning.Operation terminateSession( * */ public com.google.longrunning.Operation deleteSession( - com.google.cloud.dataproc.v1.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.DeleteSessionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionMethod(), getCallOptions(), request); } } diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerGrpc.java index 12b4cf9a0652..d917d86c4268 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerGrpc.java @@ -24,9 +24,6 @@ * The SessionTemplateController provides methods to manage session templates. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/session_templates.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionTemplateControllerGrpc { @@ -579,8 +576,9 @@ protected SessionTemplateControllerBlockingV2Stub build( * */ public com.google.cloud.dataproc.v1.SessionTemplate createSessionTemplate( - com.google.cloud.dataproc.v1.CreateSessionTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.CreateSessionTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionTemplateMethod(), getCallOptions(), request); } @@ -592,8 +590,9 @@ public com.google.cloud.dataproc.v1.SessionTemplate createSessionTemplate( * */ public com.google.cloud.dataproc.v1.SessionTemplate updateSessionTemplate( - com.google.cloud.dataproc.v1.UpdateSessionTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.UpdateSessionTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionTemplateMethod(), getCallOptions(), request); } @@ -605,8 +604,9 @@ public com.google.cloud.dataproc.v1.SessionTemplate updateSessionTemplate( * */ public com.google.cloud.dataproc.v1.SessionTemplate getSessionTemplate( - com.google.cloud.dataproc.v1.GetSessionTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.GetSessionTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionTemplateMethod(), getCallOptions(), request); } @@ -618,8 +618,9 @@ public com.google.cloud.dataproc.v1.SessionTemplate getSessionTemplate( * */ public com.google.cloud.dataproc.v1.ListSessionTemplatesResponse listSessionTemplates( - com.google.cloud.dataproc.v1.ListSessionTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.ListSessionTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionTemplatesMethod(), getCallOptions(), request); } @@ -631,8 +632,9 @@ public com.google.cloud.dataproc.v1.ListSessionTemplatesResponse listSessionTemp * */ public com.google.protobuf.Empty deleteSessionTemplate( - com.google.cloud.dataproc.v1.DeleteSessionTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.DeleteSessionTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionTemplateMethod(), getCallOptions(), request); } } diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java index 9bc06d98765f..e242a526ad85 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java @@ -25,9 +25,6 @@ * Dataproc API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/workflow_templates.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WorkflowTemplateServiceGrpc { @@ -822,8 +819,9 @@ protected WorkflowTemplateServiceBlockingV2Stub build( * */ public com.google.cloud.dataproc.v1.WorkflowTemplate createWorkflowTemplate( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkflowTemplateMethod(), getCallOptions(), request); } @@ -837,8 +835,9 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate createWorkflowTemplate( * */ public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkflowTemplateMethod(), getCallOptions(), request); } @@ -865,8 +864,9 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate( * */ public com.google.longrunning.Operation instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInstantiateWorkflowTemplateMethod(), getCallOptions(), request); } @@ -897,8 +897,9 @@ public com.google.longrunning.Operation instantiateWorkflowTemplate( * */ public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInstantiateInlineWorkflowTemplateMethod(), getCallOptions(), request); } @@ -911,8 +912,9 @@ public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( * */ public com.google.cloud.dataproc.v1.WorkflowTemplate updateWorkflowTemplate( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkflowTemplateMethod(), getCallOptions(), request); } @@ -924,8 +926,9 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate updateWorkflowTemplate( * */ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse listWorkflowTemplates( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkflowTemplatesMethod(), getCallOptions(), request); } @@ -937,8 +940,9 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse listWorkflowTe * */ public com.google.protobuf.Empty deleteWorkflowTemplate( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkflowTemplateMethod(), getCallOptions(), request); } } diff --git a/java-datastream/README.md b/java-datastream/README.md index db44a914865b..604aff9ef513 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.76.0 + 1.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.76.0' +implementation 'com.google.cloud:google-cloud-datastream:1.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java b/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java index 44de48e27bdd..0e20ac4c566c 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java +++ b/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java @@ -24,9 +24,6 @@ * Datastream service * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datastream/v1/datastream.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DatastreamGrpc { @@ -2166,8 +2163,9 @@ protected DatastreamBlockingV2Stub build( * */ public com.google.cloud.datastream.v1.ListConnectionProfilesResponse listConnectionProfiles( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); } @@ -2179,8 +2177,9 @@ public com.google.cloud.datastream.v1.ListConnectionProfilesResponse listConnect * */ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile( - com.google.cloud.datastream.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.GetConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); } @@ -2192,8 +2191,9 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile( * */ public com.google.longrunning.Operation createConnectionProfile( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); } @@ -2205,8 +2205,9 @@ public com.google.longrunning.Operation createConnectionProfile( * */ public com.google.longrunning.Operation updateConnectionProfile( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); } @@ -2218,8 +2219,9 @@ public com.google.longrunning.Operation updateConnectionProfile( * */ public com.google.longrunning.Operation deleteConnectionProfile( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); } @@ -2235,8 +2237,9 @@ public com.google.longrunning.Operation deleteConnectionProfile( */ public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse discoverConnectionProfile( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); } @@ -2248,8 +2251,8 @@ public com.google.longrunning.Operation deleteConnectionProfile( * */ public com.google.cloud.datastream.v1.ListStreamsResponse listStreams( - com.google.cloud.datastream.v1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.ListStreamsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListStreamsMethod(), getCallOptions(), request); } @@ -2261,8 +2264,8 @@ public com.google.cloud.datastream.v1.ListStreamsResponse listStreams( * */ public com.google.cloud.datastream.v1.Stream getStream( - com.google.cloud.datastream.v1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.GetStreamRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStreamMethod(), getCallOptions(), request); } @@ -2274,8 +2277,8 @@ public com.google.cloud.datastream.v1.Stream getStream( * */ public com.google.longrunning.Operation createStream( - com.google.cloud.datastream.v1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.CreateStreamRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateStreamMethod(), getCallOptions(), request); } @@ -2287,8 +2290,8 @@ public com.google.longrunning.Operation createStream( * */ public com.google.longrunning.Operation updateStream( - com.google.cloud.datastream.v1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.UpdateStreamRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateStreamMethod(), getCallOptions(), request); } @@ -2300,8 +2303,8 @@ public com.google.longrunning.Operation updateStream( * */ public com.google.longrunning.Operation deleteStream( - com.google.cloud.datastream.v1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.DeleteStreamRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteStreamMethod(), getCallOptions(), request); } @@ -2314,8 +2317,8 @@ public com.google.longrunning.Operation deleteStream( * */ public com.google.longrunning.Operation runStream( - com.google.cloud.datastream.v1.RunStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.RunStreamRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunStreamMethod(), getCallOptions(), request); } @@ -2327,8 +2330,9 @@ public com.google.longrunning.Operation runStream( * */ public com.google.cloud.datastream.v1.StreamObject getStreamObject( - com.google.cloud.datastream.v1.GetStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.GetStreamObjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStreamObjectMethod(), getCallOptions(), request); } @@ -2340,8 +2344,9 @@ public com.google.cloud.datastream.v1.StreamObject getStreamObject( * */ public com.google.cloud.datastream.v1.StreamObject lookupStreamObject( - com.google.cloud.datastream.v1.LookupStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.LookupStreamObjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupStreamObjectMethod(), getCallOptions(), request); } @@ -2353,8 +2358,9 @@ public com.google.cloud.datastream.v1.StreamObject lookupStreamObject( * */ public com.google.cloud.datastream.v1.ListStreamObjectsResponse listStreamObjects( - com.google.cloud.datastream.v1.ListStreamObjectsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.ListStreamObjectsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListStreamObjectsMethod(), getCallOptions(), request); } @@ -2366,8 +2372,9 @@ public com.google.cloud.datastream.v1.ListStreamObjectsResponse listStreamObject * */ public com.google.cloud.datastream.v1.StartBackfillJobResponse startBackfillJob( - com.google.cloud.datastream.v1.StartBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.StartBackfillJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartBackfillJobMethod(), getCallOptions(), request); } @@ -2379,8 +2386,9 @@ public com.google.cloud.datastream.v1.StartBackfillJobResponse startBackfillJob( * */ public com.google.cloud.datastream.v1.StopBackfillJobResponse stopBackfillJob( - com.google.cloud.datastream.v1.StopBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.StopBackfillJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopBackfillJobMethod(), getCallOptions(), request); } @@ -2393,8 +2401,9 @@ public com.google.cloud.datastream.v1.StopBackfillJobResponse stopBackfillJob( * */ public com.google.cloud.datastream.v1.FetchStaticIpsResponse fetchStaticIps( - com.google.cloud.datastream.v1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.FetchStaticIpsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); } @@ -2406,8 +2415,9 @@ public com.google.cloud.datastream.v1.FetchStaticIpsResponse fetchStaticIps( * */ public com.google.longrunning.Operation createPrivateConnection( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); } @@ -2419,8 +2429,9 @@ public com.google.longrunning.Operation createPrivateConnection( * */ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); } @@ -2433,8 +2444,9 @@ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection( * */ public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse listPrivateConnections( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); } @@ -2446,8 +2458,9 @@ public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse listPrivate * */ public com.google.longrunning.Operation deletePrivateConnection( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); } @@ -2460,8 +2473,8 @@ public com.google.longrunning.Operation deletePrivateConnection( * */ public com.google.longrunning.Operation createRoute( - com.google.cloud.datastream.v1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.CreateRouteRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRouteMethod(), getCallOptions(), request); } @@ -2473,8 +2486,8 @@ public com.google.longrunning.Operation createRoute( * */ public com.google.cloud.datastream.v1.Route getRoute( - com.google.cloud.datastream.v1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.GetRouteRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRouteMethod(), getCallOptions(), request); } @@ -2487,8 +2500,8 @@ public com.google.cloud.datastream.v1.Route getRoute( * */ public com.google.cloud.datastream.v1.ListRoutesResponse listRoutes( - com.google.cloud.datastream.v1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.ListRoutesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRoutesMethod(), getCallOptions(), request); } @@ -2500,8 +2513,8 @@ public com.google.cloud.datastream.v1.ListRoutesResponse listRoutes( * */ public com.google.longrunning.Operation deleteRoute( - com.google.cloud.datastream.v1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1.DeleteRouteRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRouteMethod(), getCallOptions(), request); } } diff --git a/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java b/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java index 35b22454e5cc..9de640d66517 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java +++ b/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java @@ -24,9 +24,6 @@ * Datastream service * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datastream/v1alpha1/datastream.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DatastreamGrpc { @@ -1806,8 +1803,9 @@ protected DatastreamBlockingV2Stub build( */ public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse listConnectionProfiles( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); } @@ -1819,8 +1817,9 @@ protected DatastreamBlockingV2Stub build( * */ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); } @@ -1832,8 +1831,9 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi * */ public com.google.longrunning.Operation createConnectionProfile( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); } @@ -1845,8 +1845,9 @@ public com.google.longrunning.Operation createConnectionProfile( * */ public com.google.longrunning.Operation updateConnectionProfile( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); } @@ -1858,8 +1859,9 @@ public com.google.longrunning.Operation updateConnectionProfile( * */ public com.google.longrunning.Operation deleteConnectionProfile( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); } @@ -1875,8 +1877,9 @@ public com.google.longrunning.Operation deleteConnectionProfile( */ public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse discoverConnectionProfile( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); } @@ -1888,8 +1891,9 @@ public com.google.longrunning.Operation deleteConnectionProfile( * */ public com.google.cloud.datastream.v1alpha1.ListStreamsResponse listStreams( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListStreamsMethod(), getCallOptions(), request); } @@ -1901,8 +1905,9 @@ public com.google.cloud.datastream.v1alpha1.ListStreamsResponse listStreams( * */ public com.google.cloud.datastream.v1alpha1.Stream getStream( - com.google.cloud.datastream.v1alpha1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.GetStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStreamMethod(), getCallOptions(), request); } @@ -1914,8 +1919,9 @@ public com.google.cloud.datastream.v1alpha1.Stream getStream( * */ public com.google.longrunning.Operation createStream( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateStreamMethod(), getCallOptions(), request); } @@ -1927,8 +1933,9 @@ public com.google.longrunning.Operation createStream( * */ public com.google.longrunning.Operation updateStream( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateStreamMethod(), getCallOptions(), request); } @@ -1940,8 +1947,9 @@ public com.google.longrunning.Operation updateStream( * */ public com.google.longrunning.Operation deleteStream( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteStreamMethod(), getCallOptions(), request); } @@ -1953,8 +1961,9 @@ public com.google.longrunning.Operation deleteStream( * */ public com.google.longrunning.Operation fetchErrors( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchErrorsMethod(), getCallOptions(), request); } @@ -1968,8 +1977,9 @@ public com.google.longrunning.Operation fetchErrors( * */ public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse fetchStaticIps( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); } @@ -1981,8 +1991,9 @@ public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse fetchStaticIp * */ public com.google.longrunning.Operation createPrivateConnection( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); } @@ -1994,8 +2005,9 @@ public com.google.longrunning.Operation createPrivateConnection( * */ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); } @@ -2009,8 +2021,9 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnecti */ public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse listPrivateConnections( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); } @@ -2022,8 +2035,9 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnecti * */ public com.google.longrunning.Operation deletePrivateConnection( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); } @@ -2036,8 +2050,9 @@ public com.google.longrunning.Operation deletePrivateConnection( * */ public com.google.longrunning.Operation createRoute( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRouteMethod(), getCallOptions(), request); } @@ -2049,8 +2064,9 @@ public com.google.longrunning.Operation createRoute( * */ public com.google.cloud.datastream.v1alpha1.Route getRoute( - com.google.cloud.datastream.v1alpha1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.GetRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRouteMethod(), getCallOptions(), request); } @@ -2063,8 +2079,9 @@ public com.google.cloud.datastream.v1alpha1.Route getRoute( * */ public com.google.cloud.datastream.v1alpha1.ListRoutesResponse listRoutes( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRoutesMethod(), getCallOptions(), request); } @@ -2076,8 +2093,9 @@ public com.google.cloud.datastream.v1alpha1.ListRoutesResponse listRoutes( * */ public com.google.longrunning.Operation deleteRoute( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRouteMethod(), getCallOptions(), request); } } diff --git a/java-deploy/README.md b/java-deploy/README.md index cb4492069f5e..41beb7cf4cf7 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.75.0 + 1.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.75.0' +implementation 'com.google.cloud:google-cloud-deploy:1.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java b/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java index ff4544889f23..0003735bbcba 100644 --- a/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java +++ b/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java @@ -25,9 +25,6 @@ * on Google Cloud Platform via Skaffold (https://skaffold.dev). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/deploy/v1/cloud_deploy.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudDeployGrpc { @@ -3549,8 +3546,9 @@ protected CloudDeployBlockingV2Stub build( * */ public com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse listDeliveryPipelines( - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeliveryPipelinesMethod(), getCallOptions(), request); } @@ -3562,8 +3560,9 @@ public com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse listDeliveryPipe * */ public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipeline( - com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeliveryPipelineMethod(), getCallOptions(), request); } @@ -3575,8 +3574,9 @@ public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipeline( * */ public com.google.longrunning.Operation createDeliveryPipeline( - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeliveryPipelineMethod(), getCallOptions(), request); } @@ -3588,8 +3588,9 @@ public com.google.longrunning.Operation createDeliveryPipeline( * */ public com.google.longrunning.Operation updateDeliveryPipeline( - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeliveryPipelineMethod(), getCallOptions(), request); } @@ -3601,8 +3602,9 @@ public com.google.longrunning.Operation updateDeliveryPipeline( * */ public com.google.longrunning.Operation deleteDeliveryPipeline( - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeliveryPipelineMethod(), getCallOptions(), request); } @@ -3614,8 +3616,8 @@ public com.google.longrunning.Operation deleteDeliveryPipeline( * */ public com.google.cloud.deploy.v1.ListTargetsResponse listTargets( - com.google.cloud.deploy.v1.ListTargetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ListTargetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTargetsMethod(), getCallOptions(), request); } @@ -3627,8 +3629,8 @@ public com.google.cloud.deploy.v1.ListTargetsResponse listTargets( * */ public com.google.cloud.deploy.v1.RollbackTargetResponse rollbackTarget( - com.google.cloud.deploy.v1.RollbackTargetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.RollbackTargetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackTargetMethod(), getCallOptions(), request); } @@ -3640,8 +3642,8 @@ public com.google.cloud.deploy.v1.RollbackTargetResponse rollbackTarget( * */ public com.google.cloud.deploy.v1.Target getTarget( - com.google.cloud.deploy.v1.GetTargetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetTargetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTargetMethod(), getCallOptions(), request); } @@ -3653,8 +3655,8 @@ public com.google.cloud.deploy.v1.Target getTarget( * */ public com.google.longrunning.Operation createTarget( - com.google.cloud.deploy.v1.CreateTargetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.CreateTargetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTargetMethod(), getCallOptions(), request); } @@ -3666,8 +3668,8 @@ public com.google.longrunning.Operation createTarget( * */ public com.google.longrunning.Operation updateTarget( - com.google.cloud.deploy.v1.UpdateTargetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.UpdateTargetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTargetMethod(), getCallOptions(), request); } @@ -3679,8 +3681,8 @@ public com.google.longrunning.Operation updateTarget( * */ public com.google.longrunning.Operation deleteTarget( - com.google.cloud.deploy.v1.DeleteTargetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.DeleteTargetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTargetMethod(), getCallOptions(), request); } @@ -3692,8 +3694,9 @@ public com.google.longrunning.Operation deleteTarget( * */ public com.google.cloud.deploy.v1.ListCustomTargetTypesResponse listCustomTargetTypes( - com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomTargetTypesMethod(), getCallOptions(), request); } @@ -3705,8 +3708,9 @@ public com.google.cloud.deploy.v1.ListCustomTargetTypesResponse listCustomTarget * */ public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType( - com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomTargetTypeMethod(), getCallOptions(), request); } @@ -3718,8 +3722,9 @@ public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType( * */ public com.google.longrunning.Operation createCustomTargetType( - com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomTargetTypeMethod(), getCallOptions(), request); } @@ -3731,8 +3736,9 @@ public com.google.longrunning.Operation createCustomTargetType( * */ public com.google.longrunning.Operation updateCustomTargetType( - com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomTargetTypeMethod(), getCallOptions(), request); } @@ -3744,8 +3750,9 @@ public com.google.longrunning.Operation updateCustomTargetType( * */ public com.google.longrunning.Operation deleteCustomTargetType( - com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomTargetTypeMethod(), getCallOptions(), request); } @@ -3757,8 +3764,8 @@ public com.google.longrunning.Operation deleteCustomTargetType( * */ public com.google.cloud.deploy.v1.ListReleasesResponse listReleases( - com.google.cloud.deploy.v1.ListReleasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ListReleasesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReleasesMethod(), getCallOptions(), request); } @@ -3770,8 +3777,8 @@ public com.google.cloud.deploy.v1.ListReleasesResponse listReleases( * */ public com.google.cloud.deploy.v1.Release getRelease( - com.google.cloud.deploy.v1.GetReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetReleaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReleaseMethod(), getCallOptions(), request); } @@ -3783,8 +3790,8 @@ public com.google.cloud.deploy.v1.Release getRelease( * */ public com.google.longrunning.Operation createRelease( - com.google.cloud.deploy.v1.CreateReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.CreateReleaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReleaseMethod(), getCallOptions(), request); } @@ -3796,8 +3803,8 @@ public com.google.longrunning.Operation createRelease( * */ public com.google.cloud.deploy.v1.AbandonReleaseResponse abandonRelease( - com.google.cloud.deploy.v1.AbandonReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.AbandonReleaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAbandonReleaseMethod(), getCallOptions(), request); } @@ -3809,8 +3816,9 @@ public com.google.cloud.deploy.v1.AbandonReleaseResponse abandonRelease( * */ public com.google.longrunning.Operation createDeployPolicy( - com.google.cloud.deploy.v1.CreateDeployPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.CreateDeployPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeployPolicyMethod(), getCallOptions(), request); } @@ -3822,8 +3830,9 @@ public com.google.longrunning.Operation createDeployPolicy( * */ public com.google.longrunning.Operation updateDeployPolicy( - com.google.cloud.deploy.v1.UpdateDeployPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.UpdateDeployPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeployPolicyMethod(), getCallOptions(), request); } @@ -3835,8 +3844,9 @@ public com.google.longrunning.Operation updateDeployPolicy( * */ public com.google.longrunning.Operation deleteDeployPolicy( - com.google.cloud.deploy.v1.DeleteDeployPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.DeleteDeployPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeployPolicyMethod(), getCallOptions(), request); } @@ -3848,8 +3858,9 @@ public com.google.longrunning.Operation deleteDeployPolicy( * */ public com.google.cloud.deploy.v1.ListDeployPoliciesResponse listDeployPolicies( - com.google.cloud.deploy.v1.ListDeployPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ListDeployPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeployPoliciesMethod(), getCallOptions(), request); } @@ -3861,8 +3872,8 @@ public com.google.cloud.deploy.v1.ListDeployPoliciesResponse listDeployPolicies( * */ public com.google.cloud.deploy.v1.DeployPolicy getDeployPolicy( - com.google.cloud.deploy.v1.GetDeployPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetDeployPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeployPolicyMethod(), getCallOptions(), request); } @@ -3874,8 +3885,8 @@ public com.google.cloud.deploy.v1.DeployPolicy getDeployPolicy( * */ public com.google.cloud.deploy.v1.ApproveRolloutResponse approveRollout( - com.google.cloud.deploy.v1.ApproveRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ApproveRolloutRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApproveRolloutMethod(), getCallOptions(), request); } @@ -3887,8 +3898,8 @@ public com.google.cloud.deploy.v1.ApproveRolloutResponse approveRollout( * */ public com.google.cloud.deploy.v1.AdvanceRolloutResponse advanceRollout( - com.google.cloud.deploy.v1.AdvanceRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.AdvanceRolloutRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAdvanceRolloutMethod(), getCallOptions(), request); } @@ -3900,8 +3911,8 @@ public com.google.cloud.deploy.v1.AdvanceRolloutResponse advanceRollout( * */ public com.google.cloud.deploy.v1.CancelRolloutResponse cancelRollout( - com.google.cloud.deploy.v1.CancelRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.CancelRolloutRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelRolloutMethod(), getCallOptions(), request); } @@ -3913,8 +3924,8 @@ public com.google.cloud.deploy.v1.CancelRolloutResponse cancelRollout( * */ public com.google.cloud.deploy.v1.ListRolloutsResponse listRollouts( - com.google.cloud.deploy.v1.ListRolloutsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ListRolloutsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRolloutsMethod(), getCallOptions(), request); } @@ -3926,8 +3937,8 @@ public com.google.cloud.deploy.v1.ListRolloutsResponse listRollouts( * */ public com.google.cloud.deploy.v1.Rollout getRollout( - com.google.cloud.deploy.v1.GetRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetRolloutRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRolloutMethod(), getCallOptions(), request); } @@ -3939,8 +3950,8 @@ public com.google.cloud.deploy.v1.Rollout getRollout( * */ public com.google.longrunning.Operation createRollout( - com.google.cloud.deploy.v1.CreateRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.CreateRolloutRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRolloutMethod(), getCallOptions(), request); } @@ -3952,8 +3963,8 @@ public com.google.longrunning.Operation createRollout( * */ public com.google.cloud.deploy.v1.IgnoreJobResponse ignoreJob( - com.google.cloud.deploy.v1.IgnoreJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.IgnoreJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getIgnoreJobMethod(), getCallOptions(), request); } @@ -3965,8 +3976,8 @@ public com.google.cloud.deploy.v1.IgnoreJobResponse ignoreJob( * */ public com.google.cloud.deploy.v1.RetryJobResponse retryJob( - com.google.cloud.deploy.v1.RetryJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.RetryJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetryJobMethod(), getCallOptions(), request); } @@ -3978,8 +3989,8 @@ public com.google.cloud.deploy.v1.RetryJobResponse retryJob( * */ public com.google.cloud.deploy.v1.ListJobRunsResponse listJobRuns( - com.google.cloud.deploy.v1.ListJobRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ListJobRunsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobRunsMethod(), getCallOptions(), request); } @@ -3991,8 +4002,8 @@ public com.google.cloud.deploy.v1.ListJobRunsResponse listJobRuns( * */ public com.google.cloud.deploy.v1.JobRun getJobRun( - com.google.cloud.deploy.v1.GetJobRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetJobRunRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobRunMethod(), getCallOptions(), request); } @@ -4004,8 +4015,8 @@ public com.google.cloud.deploy.v1.JobRun getJobRun( * */ public com.google.cloud.deploy.v1.TerminateJobRunResponse terminateJobRun( - com.google.cloud.deploy.v1.TerminateJobRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.TerminateJobRunRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTerminateJobRunMethod(), getCallOptions(), request); } @@ -4017,8 +4028,8 @@ public com.google.cloud.deploy.v1.TerminateJobRunResponse terminateJobRun( * */ public com.google.cloud.deploy.v1.Config getConfig( - com.google.cloud.deploy.v1.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConfigMethod(), getCallOptions(), request); } @@ -4030,8 +4041,8 @@ public com.google.cloud.deploy.v1.Config getConfig( * */ public com.google.longrunning.Operation createAutomation( - com.google.cloud.deploy.v1.CreateAutomationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.CreateAutomationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAutomationMethod(), getCallOptions(), request); } @@ -4043,8 +4054,8 @@ public com.google.longrunning.Operation createAutomation( * */ public com.google.longrunning.Operation updateAutomation( - com.google.cloud.deploy.v1.UpdateAutomationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.UpdateAutomationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAutomationMethod(), getCallOptions(), request); } @@ -4056,8 +4067,8 @@ public com.google.longrunning.Operation updateAutomation( * */ public com.google.longrunning.Operation deleteAutomation( - com.google.cloud.deploy.v1.DeleteAutomationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.DeleteAutomationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAutomationMethod(), getCallOptions(), request); } @@ -4069,8 +4080,8 @@ public com.google.longrunning.Operation deleteAutomation( * */ public com.google.cloud.deploy.v1.Automation getAutomation( - com.google.cloud.deploy.v1.GetAutomationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetAutomationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAutomationMethod(), getCallOptions(), request); } @@ -4082,8 +4093,8 @@ public com.google.cloud.deploy.v1.Automation getAutomation( * */ public com.google.cloud.deploy.v1.ListAutomationsResponse listAutomations( - com.google.cloud.deploy.v1.ListAutomationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ListAutomationsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAutomationsMethod(), getCallOptions(), request); } @@ -4095,8 +4106,8 @@ public com.google.cloud.deploy.v1.ListAutomationsResponse listAutomations( * */ public com.google.cloud.deploy.v1.AutomationRun getAutomationRun( - com.google.cloud.deploy.v1.GetAutomationRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.GetAutomationRunRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAutomationRunMethod(), getCallOptions(), request); } @@ -4108,8 +4119,9 @@ public com.google.cloud.deploy.v1.AutomationRun getAutomationRun( * */ public com.google.cloud.deploy.v1.ListAutomationRunsResponse listAutomationRuns( - com.google.cloud.deploy.v1.ListAutomationRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.ListAutomationRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAutomationRunsMethod(), getCallOptions(), request); } @@ -4124,8 +4136,9 @@ public com.google.cloud.deploy.v1.ListAutomationRunsResponse listAutomationRuns( * */ public com.google.cloud.deploy.v1.CancelAutomationRunResponse cancelAutomationRun( - com.google.cloud.deploy.v1.CancelAutomationRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.deploy.v1.CancelAutomationRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelAutomationRunMethod(), getCallOptions(), request); } } diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index aa29be641e42..2debf8663965 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.34.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.35.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectGrpc.java b/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectGrpc.java index d81404b4795d..3a81f816ecee 100644 --- a/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectGrpc.java +++ b/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/developerconnect/v1/developer_connect.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeveloperConnectGrpc { @@ -2078,8 +2075,9 @@ protected DeveloperConnectBlockingV2Stub build( * */ public com.google.cloud.developerconnect.v1.ListConnectionsResponse listConnections( - com.google.cloud.developerconnect.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.ListConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectionsMethod(), getCallOptions(), request); } @@ -2091,8 +2089,9 @@ public com.google.cloud.developerconnect.v1.ListConnectionsResponse listConnecti * */ public com.google.cloud.developerconnect.v1.Connection getConnection( - com.google.cloud.developerconnect.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.GetConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionMethod(), getCallOptions(), request); } @@ -2104,8 +2103,9 @@ public com.google.cloud.developerconnect.v1.Connection getConnection( * */ public com.google.longrunning.Operation createConnection( - com.google.cloud.developerconnect.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.CreateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectionMethod(), getCallOptions(), request); } @@ -2117,8 +2117,9 @@ public com.google.longrunning.Operation createConnection( * */ public com.google.longrunning.Operation updateConnection( - com.google.cloud.developerconnect.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.UpdateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); } @@ -2130,8 +2131,9 @@ public com.google.longrunning.Operation updateConnection( * */ public com.google.longrunning.Operation deleteConnection( - com.google.cloud.developerconnect.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.DeleteConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); } @@ -2147,8 +2149,9 @@ public com.google.longrunning.Operation deleteConnection( * */ public com.google.longrunning.Operation createGitRepositoryLink( - com.google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGitRepositoryLinkMethod(), getCallOptions(), request); } @@ -2160,8 +2163,9 @@ public com.google.longrunning.Operation createGitRepositoryLink( * */ public com.google.longrunning.Operation deleteGitRepositoryLink( - com.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGitRepositoryLinkMethod(), getCallOptions(), request); } @@ -2174,8 +2178,9 @@ public com.google.longrunning.Operation deleteGitRepositoryLink( */ public com.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse listGitRepositoryLinks( - com.google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGitRepositoryLinksMethod(), getCallOptions(), request); } @@ -2187,8 +2192,9 @@ public com.google.longrunning.Operation deleteGitRepositoryLink( * */ public com.google.cloud.developerconnect.v1.GitRepositoryLink getGitRepositoryLink( - com.google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGitRepositoryLinkMethod(), getCallOptions(), request); } @@ -2200,8 +2206,9 @@ public com.google.cloud.developerconnect.v1.GitRepositoryLink getGitRepositoryLi * */ public com.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse fetchReadWriteToken( - com.google.cloud.developerconnect.v1.FetchReadWriteTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.FetchReadWriteTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchReadWriteTokenMethod(), getCallOptions(), request); } @@ -2213,8 +2220,9 @@ public com.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse fetchRea * */ public com.google.cloud.developerconnect.v1.FetchReadTokenResponse fetchReadToken( - com.google.cloud.developerconnect.v1.FetchReadTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.FetchReadTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchReadTokenMethod(), getCallOptions(), request); } @@ -2228,8 +2236,9 @@ public com.google.cloud.developerconnect.v1.FetchReadTokenResponse fetchReadToke */ public com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse fetchLinkableGitRepositories( - com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchLinkableGitRepositoriesMethod(), getCallOptions(), request); } @@ -2245,8 +2254,9 @@ public com.google.cloud.developerconnect.v1.FetchReadTokenResponse fetchReadToke */ public com.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse fetchGitHubInstallations( - com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchGitHubInstallationsMethod(), getCallOptions(), request); } @@ -2258,8 +2268,9 @@ public com.google.cloud.developerconnect.v1.FetchReadTokenResponse fetchReadToke * */ public com.google.cloud.developerconnect.v1.FetchGitRefsResponse fetchGitRefs( - com.google.cloud.developerconnect.v1.FetchGitRefsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.FetchGitRefsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchGitRefsMethod(), getCallOptions(), request); } @@ -2271,8 +2282,9 @@ public com.google.cloud.developerconnect.v1.FetchGitRefsResponse fetchGitRefs( * */ public com.google.cloud.developerconnect.v1.ListAccountConnectorsResponse listAccountConnectors( - com.google.cloud.developerconnect.v1.ListAccountConnectorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.ListAccountConnectorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountConnectorsMethod(), getCallOptions(), request); } @@ -2284,8 +2296,9 @@ public com.google.cloud.developerconnect.v1.ListAccountConnectorsResponse listAc * */ public com.google.cloud.developerconnect.v1.AccountConnector getAccountConnector( - com.google.cloud.developerconnect.v1.GetAccountConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.GetAccountConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccountConnectorMethod(), getCallOptions(), request); } @@ -2297,8 +2310,9 @@ public com.google.cloud.developerconnect.v1.AccountConnector getAccountConnector * */ public com.google.longrunning.Operation createAccountConnector( - com.google.cloud.developerconnect.v1.CreateAccountConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.CreateAccountConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAccountConnectorMethod(), getCallOptions(), request); } @@ -2310,8 +2324,9 @@ public com.google.longrunning.Operation createAccountConnector( * */ public com.google.longrunning.Operation updateAccountConnector( - com.google.cloud.developerconnect.v1.UpdateAccountConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.UpdateAccountConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccountConnectorMethod(), getCallOptions(), request); } @@ -2323,8 +2338,9 @@ public com.google.longrunning.Operation updateAccountConnector( * */ public com.google.longrunning.Operation deleteAccountConnector( - com.google.cloud.developerconnect.v1.DeleteAccountConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.DeleteAccountConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccountConnectorMethod(), getCallOptions(), request); } @@ -2336,8 +2352,9 @@ public com.google.longrunning.Operation deleteAccountConnector( * */ public com.google.cloud.developerconnect.v1.FetchAccessTokenResponse fetchAccessToken( - com.google.cloud.developerconnect.v1.FetchAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.FetchAccessTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchAccessTokenMethod(), getCallOptions(), request); } @@ -2349,8 +2366,9 @@ public com.google.cloud.developerconnect.v1.FetchAccessTokenResponse fetchAccess * */ public com.google.cloud.developerconnect.v1.ListUsersResponse listUsers( - com.google.cloud.developerconnect.v1.ListUsersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.ListUsersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsersMethod(), getCallOptions(), request); } @@ -2362,8 +2380,9 @@ public com.google.cloud.developerconnect.v1.ListUsersResponse listUsers( * */ public com.google.longrunning.Operation deleteUser( - com.google.cloud.developerconnect.v1.DeleteUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.DeleteUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserMethod(), getCallOptions(), request); } @@ -2375,8 +2394,9 @@ public com.google.longrunning.Operation deleteUser( * */ public com.google.cloud.developerconnect.v1.User fetchSelf( - com.google.cloud.developerconnect.v1.FetchSelfRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.FetchSelfRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchSelfMethod(), getCallOptions(), request); } @@ -2388,8 +2408,9 @@ public com.google.cloud.developerconnect.v1.User fetchSelf( * */ public com.google.longrunning.Operation deleteSelf( - com.google.cloud.developerconnect.v1.DeleteSelfRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.DeleteSelfRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSelfMethod(), getCallOptions(), request); } } diff --git a/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceGrpc.java b/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceGrpc.java index 7fa31899dd5c..26120473abae 100644 --- a/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceGrpc.java +++ b/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceGrpc.java @@ -31,9 +31,6 @@ * the InsightsConfig. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/developerconnect/v1/insights_config.proto") @io.grpc.stub.annotations.GrpcGenerated public final class InsightsConfigServiceGrpc { @@ -604,8 +601,9 @@ protected InsightsConfigServiceBlockingV2Stub build( * */ public com.google.cloud.developerconnect.v1.ListInsightsConfigsResponse listInsightsConfigs( - com.google.cloud.developerconnect.v1.ListInsightsConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.ListInsightsConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInsightsConfigsMethod(), getCallOptions(), request); } @@ -617,8 +615,9 @@ public com.google.cloud.developerconnect.v1.ListInsightsConfigsResponse listInsi * */ public com.google.longrunning.Operation createInsightsConfig( - com.google.cloud.developerconnect.v1.CreateInsightsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.CreateInsightsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInsightsConfigMethod(), getCallOptions(), request); } @@ -630,8 +629,9 @@ public com.google.longrunning.Operation createInsightsConfig( * */ public com.google.cloud.developerconnect.v1.InsightsConfig getInsightsConfig( - com.google.cloud.developerconnect.v1.GetInsightsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.GetInsightsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInsightsConfigMethod(), getCallOptions(), request); } @@ -643,8 +643,9 @@ public com.google.cloud.developerconnect.v1.InsightsConfig getInsightsConfig( * */ public com.google.longrunning.Operation updateInsightsConfig( - com.google.cloud.developerconnect.v1.UpdateInsightsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.UpdateInsightsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInsightsConfigMethod(), getCallOptions(), request); } @@ -656,8 +657,9 @@ public com.google.longrunning.Operation updateInsightsConfig( * */ public com.google.longrunning.Operation deleteInsightsConfig( - com.google.cloud.developerconnect.v1.DeleteInsightsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.developerconnect.v1.DeleteInsightsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInsightsConfigMethod(), getCallOptions(), request); } } diff --git a/java-devicestreaming/README.md b/java-devicestreaming/README.md index 4b0047084129..92cbff7282e3 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.17.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.18.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceGrpc.java b/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceGrpc.java index 3cce5f9a4355..ae1cce64849c 100644 --- a/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceGrpc.java +++ b/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceGrpc.java @@ -31,9 +31,6 @@ * https://developer.android.com/studio/preview/android-device-streaming * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/devicestreaming/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DirectAccessServiceGrpc { @@ -695,8 +692,9 @@ protected DirectAccessServiceBlockingV2Stub build( * */ public com.google.cloud.devicestreaming.v1.DeviceSession createDeviceSession( - com.google.cloud.devicestreaming.v1.CreateDeviceSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.devicestreaming.v1.CreateDeviceSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeviceSessionMethod(), getCallOptions(), request); } @@ -708,8 +706,9 @@ public com.google.cloud.devicestreaming.v1.DeviceSession createDeviceSession( * */ public com.google.cloud.devicestreaming.v1.ListDeviceSessionsResponse listDeviceSessions( - com.google.cloud.devicestreaming.v1.ListDeviceSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.devicestreaming.v1.ListDeviceSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeviceSessionsMethod(), getCallOptions(), request); } @@ -723,8 +722,9 @@ public com.google.cloud.devicestreaming.v1.ListDeviceSessionsResponse listDevice * */ public com.google.cloud.devicestreaming.v1.DeviceSession getDeviceSession( - com.google.cloud.devicestreaming.v1.GetDeviceSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.devicestreaming.v1.GetDeviceSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeviceSessionMethod(), getCallOptions(), request); } @@ -740,8 +740,9 @@ public com.google.cloud.devicestreaming.v1.DeviceSession getDeviceSession( * */ public com.google.protobuf.Empty cancelDeviceSession( - com.google.cloud.devicestreaming.v1.CancelDeviceSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.devicestreaming.v1.CancelDeviceSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelDeviceSessionMethod(), getCallOptions(), request); } @@ -754,8 +755,9 @@ public com.google.protobuf.Empty cancelDeviceSession( * */ public com.google.cloud.devicestreaming.v1.DeviceSession updateDeviceSession( - com.google.cloud.devicestreaming.v1.UpdateDeviceSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.devicestreaming.v1.UpdateDeviceSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeviceSessionMethod(), getCallOptions(), request); } diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 084ed31be984..a51276b4b8ba 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.88.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.89.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json index 92aa2caa8df8..781001bc693d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json @@ -1178,6 +1178,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.CodeBlock", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.CodeBlock$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest", "queryAllDeclaredConstructors": true, @@ -7640,6 +7658,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.Tool$Authentication$ServiceAccountAuthConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.Tool$Authentication$ServiceAccountAuthConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.Tool$Authentication$ServiceAgentAuthConfig", "queryAllDeclaredConstructors": true, @@ -8864,6 +8900,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.Webhook$GenericWebService$ServiceAccountAuthConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.Webhook$GenericWebService$ServiceAccountAuthConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.Webhook$GenericWebService$ServiceAgentAuth", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientHttpJsonTest.java index 9fff8edcf801..6d783f2e02f2 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientHttpJsonTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientHttpJsonTest.java @@ -104,6 +104,8 @@ public void createPlaybookTest() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -164,6 +166,8 @@ public void createPlaybookTest2() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -406,6 +410,8 @@ public void getPlaybookTest() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -464,6 +470,8 @@ public void getPlaybookTest2() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -639,6 +647,8 @@ public void updatePlaybookTest() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -659,6 +669,8 @@ public void updatePlaybookTest() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -706,6 +718,8 @@ public void updatePlaybookExceptionTest() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientTest.java index 773e30f3a505..ccd5cbb0bc13 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientTest.java @@ -112,6 +112,8 @@ public void createPlaybookTest() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -167,6 +169,8 @@ public void createPlaybookTest2() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -378,6 +382,8 @@ public void getPlaybookTest() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -430,6 +436,8 @@ public void getPlaybookTest2() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) @@ -596,6 +604,8 @@ public void updatePlaybookTest() throws Exception { .addAllReferencedPlaybooks(new ArrayList()) .addAllReferencedFlows(new ArrayList()) .addAllReferencedTools(new ArrayList()) + .addAllInlineActions(new ArrayList()) + .setCodeBlock(CodeBlock.newBuilder().build()) .setLlmModelSettings(LlmModelSettings.newBuilder().build()) .setSpeechSettings(AdvancedSettings.SpeechSettings.newBuilder().build()) .addAllHandlers(new ArrayList()) diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java index b628bfcf98ac..8c4ae93e6ed1 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/agent.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AgentsGrpc { @@ -1048,8 +1045,9 @@ protected AgentsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.dialogflow.cx.v3.ListAgentsResponse listAgents( - com.google.cloud.dialogflow.cx.v3.ListAgentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAgentsMethod(), getCallOptions(), request); } @@ -1061,8 +1059,8 @@ public com.google.cloud.dialogflow.cx.v3.ListAgentsResponse listAgents( * */ public com.google.cloud.dialogflow.cx.v3.Agent getAgent( - com.google.cloud.dialogflow.cx.v3.GetAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAgentMethod(), getCallOptions(), request); } @@ -1077,8 +1075,9 @@ public com.google.cloud.dialogflow.cx.v3.Agent getAgent( * */ public com.google.cloud.dialogflow.cx.v3.Agent createAgent( - com.google.cloud.dialogflow.cx.v3.CreateAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAgentMethod(), getCallOptions(), request); } @@ -1093,8 +1092,9 @@ public com.google.cloud.dialogflow.cx.v3.Agent createAgent( * */ public com.google.cloud.dialogflow.cx.v3.Agent updateAgent( - com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAgentMethod(), getCallOptions(), request); } @@ -1106,8 +1106,9 @@ public com.google.cloud.dialogflow.cx.v3.Agent updateAgent( * */ public com.google.protobuf.Empty deleteAgent( - com.google.cloud.dialogflow.cx.v3.DeleteAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAgentMethod(), getCallOptions(), request); } @@ -1126,8 +1127,9 @@ public com.google.protobuf.Empty deleteAgent( * */ public com.google.longrunning.Operation exportAgent( - com.google.cloud.dialogflow.cx.v3.ExportAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ExportAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportAgentMethod(), getCallOptions(), request); } @@ -1151,8 +1153,9 @@ public com.google.longrunning.Operation exportAgent( * */ public com.google.longrunning.Operation restoreAgent( - com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreAgentMethod(), getCallOptions(), request); } @@ -1166,8 +1169,9 @@ public com.google.longrunning.Operation restoreAgent( * */ public com.google.cloud.dialogflow.cx.v3.AgentValidationResult validateAgent( - com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateAgentMethod(), getCallOptions(), request); } @@ -1180,8 +1184,9 @@ public com.google.cloud.dialogflow.cx.v3.AgentValidationResult validateAgent( * */ public com.google.cloud.dialogflow.cx.v3.AgentValidationResult getAgentValidationResult( - com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAgentValidationResultMethod(), getCallOptions(), request); } @@ -1193,8 +1198,9 @@ public com.google.cloud.dialogflow.cx.v3.AgentValidationResult getAgentValidatio * */ public com.google.cloud.dialogflow.cx.v3.GenerativeSettings getGenerativeSettings( - com.google.cloud.dialogflow.cx.v3.GetGenerativeSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetGenerativeSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGenerativeSettingsMethod(), getCallOptions(), request); } @@ -1206,8 +1212,9 @@ public com.google.cloud.dialogflow.cx.v3.GenerativeSettings getGenerativeSetting * */ public com.google.cloud.dialogflow.cx.v3.GenerativeSettings updateGenerativeSettings( - com.google.cloud.dialogflow.cx.v3.UpdateGenerativeSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateGenerativeSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGenerativeSettingsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsGrpc.java index e7e1dde5e745..8c7b9d98d7f2 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/changelog.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ChangelogsGrpc { @@ -311,8 +308,9 @@ protected ChangelogsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse listChangelogs( - com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChangelogsMethod(), getCallOptions(), request); } @@ -324,8 +322,9 @@ public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse listChangelogs( * */ public com.google.cloud.dialogflow.cx.v3.Changelog getChangelog( - com.google.cloud.dialogflow.cx.v3.GetChangelogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChangelogMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java index 8b867ecff5b5..e95e4be30947 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Deployments][google.cloud.dialogflow.cx.v3.Deployment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/deployment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeploymentsGrpc { @@ -321,8 +318,9 @@ protected DeploymentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse listDeployments( - com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentsMethod(), getCallOptions(), request); } @@ -335,8 +333,9 @@ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse listDeployments * */ public com.google.cloud.dialogflow.cx.v3.Deployment getDeployment( - com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeploymentMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesGrpc.java index ac709523a00d..6d61a321a7be 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesGrpc.java @@ -24,9 +24,6 @@ * Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3.EntityType]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/entity_type.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EntityTypesGrpc { @@ -715,8 +712,9 @@ protected EntityTypesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.EntityType getEntityType( - com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); } @@ -731,8 +729,9 @@ public com.google.cloud.dialogflow.cx.v3.EntityType getEntityType( * */ public com.google.cloud.dialogflow.cx.v3.EntityType createEntityType( - com.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); } @@ -747,8 +746,9 @@ public com.google.cloud.dialogflow.cx.v3.EntityType createEntityType( * */ public com.google.cloud.dialogflow.cx.v3.EntityType updateEntityType( - com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); } @@ -763,8 +763,9 @@ public com.google.cloud.dialogflow.cx.v3.EntityType updateEntityType( * */ public com.google.protobuf.Empty deleteEntityType( - com.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); } @@ -776,8 +777,9 @@ public com.google.protobuf.Empty deleteEntityType( * */ public com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse listEntityTypes( - com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntityTypesMethod(), getCallOptions(), request); } @@ -789,8 +791,9 @@ public com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse listEntityTypes * */ public com.google.longrunning.Operation exportEntityTypes( - com.google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportEntityTypesMethod(), getCallOptions(), request); } @@ -802,8 +805,9 @@ public com.google.longrunning.Operation exportEntityTypes( * */ public com.google.longrunning.Operation importEntityTypes( - com.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportEntityTypesMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java index a20c5b490237..b956c2d8b75c 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java @@ -25,9 +25,6 @@ * [Environments][google.cloud.dialogflow.cx.v3.Environment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/environment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EnvironmentsGrpc { @@ -931,8 +928,9 @@ protected EnvironmentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse listEnvironments( - com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } @@ -945,8 +943,9 @@ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse listEnvironmen * */ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment( - com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -965,8 +964,9 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment( * */ public com.google.longrunning.Operation createEnvironment( - com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); } @@ -985,8 +985,9 @@ public com.google.longrunning.Operation createEnvironment( * */ public com.google.longrunning.Operation updateEnvironment( - com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); } @@ -999,8 +1000,9 @@ public com.google.longrunning.Operation updateEnvironment( * */ public com.google.protobuf.Empty deleteEnvironment( - com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); } @@ -1014,8 +1016,9 @@ public com.google.protobuf.Empty deleteEnvironment( */ public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse lookupEnvironmentHistory( - com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupEnvironmentHistoryMethod(), getCallOptions(), request); } @@ -1035,8 +1038,9 @@ public com.google.protobuf.Empty deleteEnvironment( * */ public com.google.longrunning.Operation runContinuousTest( - com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunContinuousTestMethod(), getCallOptions(), request); } @@ -1049,8 +1053,9 @@ public com.google.longrunning.Operation runContinuousTest( */ public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse listContinuousTestResults( - com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListContinuousTestResultsMethod(), getCallOptions(), request); } @@ -1070,8 +1075,9 @@ public com.google.longrunning.Operation runContinuousTest( * */ public com.google.longrunning.Operation deployFlow( - com.google.cloud.dialogflow.cx.v3.DeployFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployFlowMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java index e3a1052c2237..53db1d7b645f 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Experiments][google.cloud.dialogflow.cx.v3.Experiment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/experiment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExperimentsGrpc { @@ -718,8 +715,9 @@ protected ExperimentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse listExperiments( - com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExperimentsMethod(), getCallOptions(), request); } @@ -732,8 +730,9 @@ public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse listExperiments * */ public com.google.cloud.dialogflow.cx.v3.Experiment getExperiment( - com.google.cloud.dialogflow.cx.v3.GetExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExperimentMethod(), getCallOptions(), request); } @@ -746,8 +745,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment getExperiment( * */ public com.google.cloud.dialogflow.cx.v3.Experiment createExperiment( - com.google.cloud.dialogflow.cx.v3.CreateExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExperimentMethod(), getCallOptions(), request); } @@ -760,8 +760,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment createExperiment( * */ public com.google.cloud.dialogflow.cx.v3.Experiment updateExperiment( - com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExperimentMethod(), getCallOptions(), request); } @@ -774,8 +775,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment updateExperiment( * */ public com.google.protobuf.Empty deleteExperiment( - com.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExperimentMethod(), getCallOptions(), request); } @@ -789,8 +791,9 @@ public com.google.protobuf.Empty deleteExperiment( * */ public com.google.cloud.dialogflow.cx.v3.Experiment startExperiment( - com.google.cloud.dialogflow.cx.v3.StartExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.StartExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartExperimentMethod(), getCallOptions(), request); } @@ -803,8 +806,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment startExperiment( * */ public com.google.cloud.dialogflow.cx.v3.Experiment stopExperiment( - com.google.cloud.dialogflow.cx.v3.StopExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.StopExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopExperimentMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java index c9c17125a046..d366f485d142 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Flows][google.cloud.dialogflow.cx.v3.Flow]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/flow.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FlowsGrpc { @@ -961,8 +958,9 @@ protected FlowsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions * */ public com.google.cloud.dialogflow.cx.v3.Flow createFlow( - com.google.cloud.dialogflow.cx.v3.CreateFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFlowMethod(), getCallOptions(), request); } @@ -974,8 +972,9 @@ public com.google.cloud.dialogflow.cx.v3.Flow createFlow( * */ public com.google.protobuf.Empty deleteFlow( - com.google.cloud.dialogflow.cx.v3.DeleteFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFlowMethod(), getCallOptions(), request); } @@ -987,8 +986,8 @@ public com.google.protobuf.Empty deleteFlow( * */ public com.google.cloud.dialogflow.cx.v3.ListFlowsResponse listFlows( - com.google.cloud.dialogflow.cx.v3.ListFlowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListFlowsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFlowsMethod(), getCallOptions(), request); } @@ -1000,8 +999,8 @@ public com.google.cloud.dialogflow.cx.v3.ListFlowsResponse listFlows( * */ public com.google.cloud.dialogflow.cx.v3.Flow getFlow( - com.google.cloud.dialogflow.cx.v3.GetFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetFlowRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFlowMethod(), getCallOptions(), request); } @@ -1016,8 +1015,9 @@ public com.google.cloud.dialogflow.cx.v3.Flow getFlow( * */ public com.google.cloud.dialogflow.cx.v3.Flow updateFlow( - com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFlowMethod(), getCallOptions(), request); } @@ -1040,8 +1040,8 @@ public com.google.cloud.dialogflow.cx.v3.Flow updateFlow( * */ public com.google.longrunning.Operation trainFlow( - com.google.cloud.dialogflow.cx.v3.TrainFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.TrainFlowRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTrainFlowMethod(), getCallOptions(), request); } @@ -1055,8 +1055,9 @@ public com.google.longrunning.Operation trainFlow( * */ public com.google.cloud.dialogflow.cx.v3.FlowValidationResult validateFlow( - com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateFlowMethod(), getCallOptions(), request); } @@ -1069,8 +1070,9 @@ public com.google.cloud.dialogflow.cx.v3.FlowValidationResult validateFlow( * */ public com.google.cloud.dialogflow.cx.v3.FlowValidationResult getFlowValidationResult( - com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFlowValidationResultMethod(), getCallOptions(), request); } @@ -1092,8 +1094,9 @@ public com.google.cloud.dialogflow.cx.v3.FlowValidationResult getFlowValidationR * */ public com.google.longrunning.Operation importFlow( - com.google.cloud.dialogflow.cx.v3.ImportFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ImportFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportFlowMethod(), getCallOptions(), request); } @@ -1114,8 +1117,9 @@ public com.google.longrunning.Operation importFlow( * */ public com.google.longrunning.Operation exportFlow( - com.google.cloud.dialogflow.cx.v3.ExportFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ExportFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportFlowMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsGrpc.java index f780dc775c84..592ff941e3c9 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Generators][google.cloud.dialogflow.cx.v3.Generator] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/generator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GeneratorsGrpc { @@ -536,8 +533,9 @@ protected GeneratorsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListGeneratorsResponse listGenerators( - com.google.cloud.dialogflow.cx.v3.ListGeneratorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListGeneratorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGeneratorsMethod(), getCallOptions(), request); } @@ -549,8 +547,9 @@ public com.google.cloud.dialogflow.cx.v3.ListGeneratorsResponse listGenerators( * */ public com.google.cloud.dialogflow.cx.v3.Generator getGenerator( - com.google.cloud.dialogflow.cx.v3.GetGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGeneratorMethod(), getCallOptions(), request); } @@ -562,8 +561,9 @@ public com.google.cloud.dialogflow.cx.v3.Generator getGenerator( * */ public com.google.cloud.dialogflow.cx.v3.Generator createGenerator( - com.google.cloud.dialogflow.cx.v3.CreateGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGeneratorMethod(), getCallOptions(), request); } @@ -575,8 +575,9 @@ public com.google.cloud.dialogflow.cx.v3.Generator createGenerator( * */ public com.google.cloud.dialogflow.cx.v3.Generator updateGenerator( - com.google.cloud.dialogflow.cx.v3.UpdateGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGeneratorMethod(), getCallOptions(), request); } @@ -588,8 +589,9 @@ public com.google.cloud.dialogflow.cx.v3.Generator updateGenerator( * */ public com.google.protobuf.Empty deleteGenerator( - com.google.cloud.dialogflow.cx.v3.DeleteGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGeneratorMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsGrpc.java index ea43fd10eec4..b4931442aced 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Intents][google.cloud.dialogflow.cx.v3.Intent]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/intent.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IntentsGrpc { @@ -722,8 +719,9 @@ protected IntentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListIntentsResponse listIntents( - com.google.cloud.dialogflow.cx.v3.ListIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIntentsMethod(), getCallOptions(), request); } @@ -735,8 +733,8 @@ public com.google.cloud.dialogflow.cx.v3.ListIntentsResponse listIntents( * */ public com.google.cloud.dialogflow.cx.v3.Intent getIntent( - com.google.cloud.dialogflow.cx.v3.GetIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetIntentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIntentMethod(), getCallOptions(), request); } @@ -751,8 +749,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent( * */ public com.google.cloud.dialogflow.cx.v3.Intent createIntent( - com.google.cloud.dialogflow.cx.v3.CreateIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIntentMethod(), getCallOptions(), request); } @@ -767,8 +766,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent createIntent( * */ public com.google.cloud.dialogflow.cx.v3.Intent updateIntent( - com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIntentMethod(), getCallOptions(), request); } @@ -783,8 +783,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent updateIntent( * */ public com.google.protobuf.Empty deleteIntent( - com.google.cloud.dialogflow.cx.v3.DeleteIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIntentMethod(), getCallOptions(), request); } @@ -803,8 +804,9 @@ public com.google.protobuf.Empty deleteIntent( * */ public com.google.longrunning.Operation importIntents( - com.google.cloud.dialogflow.cx.v3.ImportIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ImportIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportIntentsMethod(), getCallOptions(), request); } @@ -823,8 +825,9 @@ public com.google.longrunning.Operation importIntents( * */ public com.google.longrunning.Operation exportIntents( - com.google.cloud.dialogflow.cx.v3.ExportIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ExportIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportIntentsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesGrpc.java index 4c27ee76eef9..4edbae175f9b 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Pages][google.cloud.dialogflow.cx.v3.Page]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/page.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PagesGrpc { @@ -532,8 +529,8 @@ protected PagesBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions * */ public com.google.cloud.dialogflow.cx.v3.ListPagesResponse listPages( - com.google.cloud.dialogflow.cx.v3.ListPagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListPagesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPagesMethod(), getCallOptions(), request); } @@ -545,8 +542,8 @@ public com.google.cloud.dialogflow.cx.v3.ListPagesResponse listPages( * */ public com.google.cloud.dialogflow.cx.v3.Page getPage( - com.google.cloud.dialogflow.cx.v3.GetPageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetPageRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPageMethod(), getCallOptions(), request); } @@ -561,8 +558,9 @@ public com.google.cloud.dialogflow.cx.v3.Page getPage( * */ public com.google.cloud.dialogflow.cx.v3.Page createPage( - com.google.cloud.dialogflow.cx.v3.CreatePageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreatePageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePageMethod(), getCallOptions(), request); } @@ -577,8 +575,9 @@ public com.google.cloud.dialogflow.cx.v3.Page createPage( * */ public com.google.cloud.dialogflow.cx.v3.Page updatePage( - com.google.cloud.dialogflow.cx.v3.UpdatePageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdatePageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePageMethod(), getCallOptions(), request); } @@ -593,8 +592,9 @@ public com.google.cloud.dialogflow.cx.v3.Page updatePage( * */ public com.google.protobuf.Empty deletePage( - com.google.cloud.dialogflow.cx.v3.DeletePageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeletePageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePageMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java index 88b31ddef1a4..f4f8bc8c616e 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing security settings for Dialogflow. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/security_settings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecuritySettingsServiceGrpc { @@ -592,8 +589,9 @@ protected SecuritySettingsServiceBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.SecuritySettings createSecuritySettings( - com.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecuritySettingsMethod(), getCallOptions(), request); } @@ -607,8 +605,9 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings createSecuritySettings * */ public com.google.cloud.dialogflow.cx.v3.SecuritySettings getSecuritySettings( - com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecuritySettingsMethod(), getCallOptions(), request); } @@ -621,8 +620,9 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings getSecuritySettings( * */ public com.google.cloud.dialogflow.cx.v3.SecuritySettings updateSecuritySettings( - com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecuritySettingsMethod(), getCallOptions(), request); } @@ -634,8 +634,9 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings updateSecuritySettings * */ public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse listSecuritySettings( - com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecuritySettingsMethod(), getCallOptions(), request); } @@ -648,8 +649,9 @@ public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse listSecuri * */ public com.google.protobuf.Empty deleteSecuritySettings( - com.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSecuritySettingsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java index f9645be5037c..347196588edb 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java @@ -25,9 +25,6 @@ * [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/session_entity_type.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionEntityTypesGrpc { @@ -582,8 +579,9 @@ protected SessionEntityTypesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse listSessionEntityTypes( - com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionEntityTypesMethod(), getCallOptions(), request); } @@ -595,8 +593,9 @@ public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse listSess * */ public com.google.cloud.dialogflow.cx.v3.SessionEntityType getSessionEntityType( - com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionEntityTypeMethod(), getCallOptions(), request); } @@ -608,8 +607,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType getSessionEntityType( * */ public com.google.cloud.dialogflow.cx.v3.SessionEntityType createSessionEntityType( - com.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -621,8 +621,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType createSessionEntityTy * */ public com.google.cloud.dialogflow.cx.v3.SessionEntityType updateSessionEntityType( - com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -634,8 +635,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType updateSessionEntityTy * */ public com.google.protobuf.Empty deleteSessionEntityType( - com.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionEntityTypeMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java index 107b82ed0594..c287d0c3c710 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java @@ -27,9 +27,6 @@ * determine user intent and respond. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/session.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionsGrpc { @@ -706,8 +703,9 @@ protected SessionsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.DetectIntentResponse detectIntent( - com.google.cloud.dialogflow.cx.v3.DetectIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DetectIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetectIntentMethod(), getCallOptions(), request); } @@ -760,8 +758,9 @@ public com.google.cloud.dialogflow.cx.v3.DetectIntentResponse detectIntent( * */ public com.google.cloud.dialogflow.cx.v3.MatchIntentResponse matchIntent( - com.google.cloud.dialogflow.cx.v3.MatchIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.MatchIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMatchIntentMethod(), getCallOptions(), request); } @@ -779,8 +778,9 @@ public com.google.cloud.dialogflow.cx.v3.MatchIntentResponse matchIntent( * */ public com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse fulfillIntent( - com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFulfillIntentMethod(), getCallOptions(), request); } @@ -793,8 +793,9 @@ public com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse fulfillIntent( * */ public com.google.cloud.dialogflow.cx.v3.AnswerFeedback submitAnswerFeedback( - com.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitAnswerFeedbackMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java index 24eb6f04c5bd..c01a5298dea0 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java @@ -25,9 +25,6 @@ * [Test Case Results][google.cloud.dialogflow.cx.v3.TestCaseResult]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/test_case.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TestCasesGrpc { @@ -1141,8 +1138,9 @@ protected TestCasesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse listTestCases( - com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTestCasesMethod(), getCallOptions(), request); } @@ -1154,8 +1152,9 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse listTestCases( * */ public com.google.protobuf.Empty batchDeleteTestCases( - com.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteTestCasesMethod(), getCallOptions(), request); } @@ -1167,8 +1166,9 @@ public com.google.protobuf.Empty batchDeleteTestCases( * */ public com.google.cloud.dialogflow.cx.v3.TestCase getTestCase( - com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTestCaseMethod(), getCallOptions(), request); } @@ -1180,8 +1180,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCase getTestCase( * */ public com.google.cloud.dialogflow.cx.v3.TestCase createTestCase( - com.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTestCaseMethod(), getCallOptions(), request); } @@ -1193,8 +1194,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCase createTestCase( * */ public com.google.cloud.dialogflow.cx.v3.TestCase updateTestCase( - com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTestCaseMethod(), getCallOptions(), request); } @@ -1213,8 +1215,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCase updateTestCase( * */ public com.google.longrunning.Operation runTestCase( - com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunTestCaseMethod(), getCallOptions(), request); } @@ -1233,8 +1236,9 @@ public com.google.longrunning.Operation runTestCase( * */ public com.google.longrunning.Operation batchRunTestCases( - com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchRunTestCasesMethod(), getCallOptions(), request); } @@ -1246,8 +1250,9 @@ public com.google.longrunning.Operation batchRunTestCases( * */ public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse calculateCoverage( - com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCalculateCoverageMethod(), getCallOptions(), request); } @@ -1268,8 +1273,9 @@ public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse calculateCove * */ public com.google.longrunning.Operation importTestCases( - com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportTestCasesMethod(), getCallOptions(), request); } @@ -1289,8 +1295,9 @@ public com.google.longrunning.Operation importTestCases( * */ public com.google.longrunning.Operation exportTestCases( - com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportTestCasesMethod(), getCallOptions(), request); } @@ -1303,8 +1310,9 @@ public com.google.longrunning.Operation exportTestCases( * */ public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse listTestCaseResults( - com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTestCaseResultsMethod(), getCallOptions(), request); } @@ -1316,8 +1324,9 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse listTestCas * */ public com.google.cloud.dialogflow.cx.v3.TestCaseResult getTestCaseResult( - com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTestCaseResultMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java index 1c061facf5a8..5612cb9ca387 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java @@ -25,9 +25,6 @@ * [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/transition_route_group.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TransitionRouteGroupsGrpc { @@ -622,8 +619,9 @@ protected TransitionRouteGroupsBlockingV2Stub build( */ public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse listTransitionRouteGroups( - com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTransitionRouteGroupsMethod(), getCallOptions(), request); } @@ -636,8 +634,9 @@ protected TransitionRouteGroupsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getTransitionRouteGroup( - com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTransitionRouteGroupMethod(), getCallOptions(), request); } @@ -654,8 +653,9 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getTransitionRoute * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup createTransitionRouteGroup( - com.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTransitionRouteGroupMethod(), getCallOptions(), request); } @@ -671,8 +671,9 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup createTransitionRo * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup updateTransitionRouteGroup( - com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTransitionRouteGroupMethod(), getCallOptions(), request); } @@ -688,8 +689,9 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup updateTransitionRo * */ public com.google.protobuf.Empty deleteTransitionRouteGroup( - com.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTransitionRouteGroupMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java index 8f0b776828d9..45b6cc4924ea 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Versions][google.cloud.dialogflow.cx.v3.Version]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/version.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VersionsGrpc { @@ -709,8 +706,9 @@ protected VersionsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListVersionsResponse listVersions( - com.google.cloud.dialogflow.cx.v3.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVersionsMethod(), getCallOptions(), request); } @@ -722,8 +720,9 @@ public com.google.cloud.dialogflow.cx.v3.ListVersionsResponse listVersions( * */ public com.google.cloud.dialogflow.cx.v3.Version getVersion( - com.google.cloud.dialogflow.cx.v3.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVersionMethod(), getCallOptions(), request); } @@ -742,8 +741,9 @@ public com.google.cloud.dialogflow.cx.v3.Version getVersion( * */ public com.google.longrunning.Operation createVersion( - com.google.cloud.dialogflow.cx.v3.CreateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVersionMethod(), getCallOptions(), request); } @@ -755,8 +755,9 @@ public com.google.longrunning.Operation createVersion( * */ public com.google.cloud.dialogflow.cx.v3.Version updateVersion( - com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVersionMethod(), getCallOptions(), request); } @@ -768,8 +769,9 @@ public com.google.cloud.dialogflow.cx.v3.Version updateVersion( * */ public com.google.protobuf.Empty deleteVersion( - com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVersionMethod(), getCallOptions(), request); } @@ -788,8 +790,9 @@ public com.google.protobuf.Empty deleteVersion( * */ public com.google.longrunning.Operation loadVersion( - com.google.cloud.dialogflow.cx.v3.LoadVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.LoadVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLoadVersionMethod(), getCallOptions(), request); } @@ -801,8 +804,9 @@ public com.google.longrunning.Operation loadVersion( * */ public com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse compareVersions( - com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompareVersionsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksGrpc.java index 4794534995f0..cea6fa81849c 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Webhooks][google.cloud.dialogflow.cx.v3.Webhook]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3/webhook.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WebhooksGrpc { @@ -530,8 +527,9 @@ protected WebhooksBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse listWebhooks( - com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWebhooksMethod(), getCallOptions(), request); } @@ -543,8 +541,9 @@ public com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse listWebhooks( * */ public com.google.cloud.dialogflow.cx.v3.Webhook getWebhook( - com.google.cloud.dialogflow.cx.v3.GetWebhookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.GetWebhookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWebhookMethod(), getCallOptions(), request); } @@ -556,8 +555,9 @@ public com.google.cloud.dialogflow.cx.v3.Webhook getWebhook( * */ public com.google.cloud.dialogflow.cx.v3.Webhook createWebhook( - com.google.cloud.dialogflow.cx.v3.CreateWebhookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.CreateWebhookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWebhookMethod(), getCallOptions(), request); } @@ -569,8 +569,9 @@ public com.google.cloud.dialogflow.cx.v3.Webhook createWebhook( * */ public com.google.cloud.dialogflow.cx.v3.Webhook updateWebhook( - com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWebhookMethod(), getCallOptions(), request); } @@ -582,8 +583,9 @@ public com.google.cloud.dialogflow.cx.v3.Webhook updateWebhook( * */ public com.google.protobuf.Empty deleteWebhook( - com.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWebhookMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsGrpc.java index a2b4b2decca4..2791d76c0714 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Agents][google.cloud.dialogflow.cx.v3beta1.Agent]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/agent.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AgentsGrpc { @@ -1060,8 +1057,9 @@ protected AgentsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse listAgents( - com.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAgentsMethod(), getCallOptions(), request); } @@ -1073,8 +1071,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse listAgents( * */ public com.google.cloud.dialogflow.cx.v3beta1.Agent getAgent( - com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAgentMethod(), getCallOptions(), request); } @@ -1089,8 +1088,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Agent getAgent( * */ public com.google.cloud.dialogflow.cx.v3beta1.Agent createAgent( - com.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAgentMethod(), getCallOptions(), request); } @@ -1105,8 +1105,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Agent createAgent( * */ public com.google.cloud.dialogflow.cx.v3beta1.Agent updateAgent( - com.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAgentMethod(), getCallOptions(), request); } @@ -1118,8 +1119,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Agent updateAgent( * */ public com.google.protobuf.Empty deleteAgent( - com.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAgentMethod(), getCallOptions(), request); } @@ -1138,8 +1140,9 @@ public com.google.protobuf.Empty deleteAgent( * */ public com.google.longrunning.Operation exportAgent( - com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportAgentMethod(), getCallOptions(), request); } @@ -1163,8 +1166,9 @@ public com.google.longrunning.Operation exportAgent( * */ public com.google.longrunning.Operation restoreAgent( - com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreAgentMethod(), getCallOptions(), request); } @@ -1178,8 +1182,9 @@ public com.google.longrunning.Operation restoreAgent( * */ public com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult validateAgent( - com.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateAgentMethod(), getCallOptions(), request); } @@ -1192,8 +1197,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult validateAgen * */ public com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult getAgentValidationResult( - com.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAgentValidationResultMethod(), getCallOptions(), request); } @@ -1205,8 +1211,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult getAgentVali * */ public com.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings getGenerativeSettings( - com.google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGenerativeSettingsMethod(), getCallOptions(), request); } @@ -1218,8 +1225,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings getGenerativeSe * */ public com.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings updateGenerativeSettings( - com.google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGenerativeSettingsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsGrpc.java index 1c010131c291..2aa82e7fae32 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsGrpc.java @@ -25,9 +25,6 @@ * [Changelogs][google.cloud.dialogflow.cx.v3beta1.Changelog]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/changelog.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ChangelogsGrpc { @@ -320,8 +317,9 @@ protected ChangelogsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse listChangelogs( - com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChangelogsMethod(), getCallOptions(), request); } @@ -333,8 +331,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse listChangel * */ public com.google.cloud.dialogflow.cx.v3beta1.Changelog getChangelog( - com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChangelogMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryGrpc.java index 25aac5030269..6972c318b89f 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryGrpc.java @@ -24,9 +24,6 @@ * Service for managing conversation history. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/conversation_history.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationHistoryGrpc { @@ -403,8 +400,9 @@ protected ConversationHistoryBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse listConversations( - com.google.cloud.dialogflow.cx.v3beta1.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -416,8 +414,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse listConv * */ public com.google.cloud.dialogflow.cx.v3beta1.Conversation getConversation( - com.google.cloud.dialogflow.cx.v3beta1.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationMethod(), getCallOptions(), request); } @@ -429,8 +428,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Conversation getConversation( * */ public com.google.protobuf.Empty deleteConversation( - com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversationMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsGrpc.java index 7ef447301f9d..af8552cd5ef0 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsGrpc.java @@ -25,9 +25,6 @@ * [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/deployment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeploymentsGrpc { @@ -328,8 +325,9 @@ protected DeploymentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse listDeployments( - com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentsMethod(), getCallOptions(), request); } @@ -342,8 +340,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse listDeploy * */ public com.google.cloud.dialogflow.cx.v3beta1.Deployment getDeployment( - com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeploymentMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesGrpc.java index 14247611ef11..224b222c3c54 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesGrpc.java @@ -25,9 +25,6 @@ * [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/entity_type.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EntityTypesGrpc { @@ -719,8 +716,9 @@ protected EntityTypesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.EntityType getEntityType( - com.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); } @@ -732,8 +730,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType getEntityType( * */ public com.google.cloud.dialogflow.cx.v3beta1.EntityType createEntityType( - com.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); } @@ -748,8 +747,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType createEntityType( * */ public com.google.cloud.dialogflow.cx.v3beta1.EntityType updateEntityType( - com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); } @@ -764,8 +764,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType updateEntityType( * */ public com.google.protobuf.Empty deleteEntityType( - com.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); } @@ -777,8 +778,9 @@ public com.google.protobuf.Empty deleteEntityType( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse listEntityTypes( - com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntityTypesMethod(), getCallOptions(), request); } @@ -790,8 +792,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse listEntity * */ public com.google.longrunning.Operation exportEntityTypes( - com.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportEntityTypesMethod(), getCallOptions(), request); } @@ -803,8 +806,9 @@ public com.google.longrunning.Operation exportEntityTypes( * */ public com.google.longrunning.Operation importEntityTypes( - com.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportEntityTypesMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsGrpc.java index f770ad346bea..848db9a74e77 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsGrpc.java @@ -25,9 +25,6 @@ * [Environments][google.cloud.dialogflow.cx.v3beta1.Environment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/environment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EnvironmentsGrpc { @@ -939,8 +936,9 @@ protected EnvironmentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse listEnvironments( - com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } @@ -953,8 +951,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse listEnvir * */ public com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment( - com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -973,8 +972,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment( * */ public com.google.longrunning.Operation createEnvironment( - com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); } @@ -993,8 +993,9 @@ public com.google.longrunning.Operation createEnvironment( * */ public com.google.longrunning.Operation updateEnvironment( - com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); } @@ -1007,8 +1008,9 @@ public com.google.longrunning.Operation updateEnvironment( * */ public com.google.protobuf.Empty deleteEnvironment( - com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); } @@ -1022,8 +1024,9 @@ public com.google.protobuf.Empty deleteEnvironment( */ public com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse lookupEnvironmentHistory( - com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupEnvironmentHistoryMethod(), getCallOptions(), request); } @@ -1043,8 +1046,9 @@ public com.google.protobuf.Empty deleteEnvironment( * */ public com.google.longrunning.Operation runContinuousTest( - com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunContinuousTestMethod(), getCallOptions(), request); } @@ -1057,8 +1061,9 @@ public com.google.longrunning.Operation runContinuousTest( */ public com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse listContinuousTestResults( - com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListContinuousTestResultsMethod(), getCallOptions(), request); } @@ -1078,8 +1083,9 @@ public com.google.longrunning.Operation runContinuousTest( * */ public com.google.longrunning.Operation deployFlow( - com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployFlowMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesGrpc.java index c2eb90cc675f..7d6ae6709c3b 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Examples][google.cloud.dialogflow.cx.v3beta1.Example]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/example.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExamplesGrpc { @@ -536,8 +533,9 @@ protected ExamplesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.Example createExample( - com.google.cloud.dialogflow.cx.v3beta1.CreateExampleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateExampleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExampleMethod(), getCallOptions(), request); } @@ -549,8 +547,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Example createExample( * */ public com.google.protobuf.Empty deleteExample( - com.google.cloud.dialogflow.cx.v3beta1.DeleteExampleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteExampleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExampleMethod(), getCallOptions(), request); } @@ -562,8 +561,9 @@ public com.google.protobuf.Empty deleteExample( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListExamplesResponse listExamples( - com.google.cloud.dialogflow.cx.v3beta1.ListExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListExamplesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExamplesMethod(), getCallOptions(), request); } @@ -575,8 +575,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListExamplesResponse listExamples( * */ public com.google.cloud.dialogflow.cx.v3beta1.Example getExample( - com.google.cloud.dialogflow.cx.v3beta1.GetExampleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetExampleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExampleMethod(), getCallOptions(), request); } @@ -588,8 +589,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Example getExample( * */ public com.google.cloud.dialogflow.cx.v3beta1.Example updateExample( - com.google.cloud.dialogflow.cx.v3beta1.UpdateExampleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateExampleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExampleMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsGrpc.java index aa0addbf8329..94f0f7cc4991 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsGrpc.java @@ -25,9 +25,6 @@ * [Experiments][google.cloud.dialogflow.cx.v3beta1.Experiment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/experiment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExperimentsGrpc { @@ -734,8 +731,9 @@ protected ExperimentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse listExperiments( - com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExperimentsMethod(), getCallOptions(), request); } @@ -748,8 +746,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse listExperi * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment getExperiment( - com.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExperimentMethod(), getCallOptions(), request); } @@ -763,8 +762,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment getExperiment( * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment createExperiment( - com.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExperimentMethod(), getCallOptions(), request); } @@ -777,8 +777,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment createExperiment( * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment updateExperiment( - com.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExperimentMethod(), getCallOptions(), request); } @@ -791,8 +792,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment updateExperiment( * */ public com.google.protobuf.Empty deleteExperiment( - com.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExperimentMethod(), getCallOptions(), request); } @@ -806,8 +808,9 @@ public com.google.protobuf.Empty deleteExperiment( * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment startExperiment( - com.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartExperimentMethod(), getCallOptions(), request); } @@ -821,8 +824,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment startExperiment( * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment stopExperiment( - com.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopExperimentMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsGrpc.java index 437fc18b483f..696c512d72c4 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Flows][google.cloud.dialogflow.cx.v3beta1.Flow]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/flow.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FlowsGrpc { @@ -970,8 +967,9 @@ protected FlowsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions * */ public com.google.cloud.dialogflow.cx.v3beta1.Flow createFlow( - com.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFlowMethod(), getCallOptions(), request); } @@ -983,8 +981,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Flow createFlow( * */ public com.google.protobuf.Empty deleteFlow( - com.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFlowMethod(), getCallOptions(), request); } @@ -996,8 +995,9 @@ public com.google.protobuf.Empty deleteFlow( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse listFlows( - com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFlowsMethod(), getCallOptions(), request); } @@ -1009,8 +1009,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse listFlows( * */ public com.google.cloud.dialogflow.cx.v3beta1.Flow getFlow( - com.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFlowMethod(), getCallOptions(), request); } @@ -1025,8 +1026,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Flow getFlow( * */ public com.google.cloud.dialogflow.cx.v3beta1.Flow updateFlow( - com.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFlowMethod(), getCallOptions(), request); } @@ -1049,8 +1051,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Flow updateFlow( * */ public com.google.longrunning.Operation trainFlow( - com.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTrainFlowMethod(), getCallOptions(), request); } @@ -1064,8 +1067,9 @@ public com.google.longrunning.Operation trainFlow( * */ public com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult validateFlow( - com.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateFlowMethod(), getCallOptions(), request); } @@ -1078,8 +1082,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult validateFlow( * */ public com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult getFlowValidationResult( - com.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFlowValidationResultMethod(), getCallOptions(), request); } @@ -1101,8 +1106,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult getFlowValida * */ public com.google.longrunning.Operation importFlow( - com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportFlowMethod(), getCallOptions(), request); } @@ -1123,8 +1129,9 @@ public com.google.longrunning.Operation importFlow( * */ public com.google.longrunning.Operation exportFlow( - com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportFlowMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsGrpc.java index 5876fd53c576..b8f986c964dd 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsGrpc.java @@ -25,9 +25,6 @@ * [Generators][google.cloud.dialogflow.cx.v3beta1.Generator] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/generator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GeneratorsGrpc { @@ -552,8 +549,9 @@ protected GeneratorsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListGeneratorsResponse listGenerators( - com.google.cloud.dialogflow.cx.v3beta1.ListGeneratorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListGeneratorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGeneratorsMethod(), getCallOptions(), request); } @@ -565,8 +563,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListGeneratorsResponse listGenerat * */ public com.google.cloud.dialogflow.cx.v3beta1.Generator getGenerator( - com.google.cloud.dialogflow.cx.v3beta1.GetGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGeneratorMethod(), getCallOptions(), request); } @@ -578,8 +577,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Generator getGenerator( * */ public com.google.cloud.dialogflow.cx.v3beta1.Generator createGenerator( - com.google.cloud.dialogflow.cx.v3beta1.CreateGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGeneratorMethod(), getCallOptions(), request); } @@ -591,8 +591,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Generator createGenerator( * */ public com.google.cloud.dialogflow.cx.v3beta1.Generator updateGenerator( - com.google.cloud.dialogflow.cx.v3beta1.UpdateGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGeneratorMethod(), getCallOptions(), request); } @@ -604,8 +605,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Generator updateGenerator( * */ public com.google.protobuf.Empty deleteGenerator( - com.google.cloud.dialogflow.cx.v3beta1.DeleteGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGeneratorMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsGrpc.java index c6136e2af88a..67ed075f1abd 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Intents][google.cloud.dialogflow.cx.v3beta1.Intent]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/intent.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IntentsGrpc { @@ -732,8 +729,9 @@ protected IntentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse listIntents( - com.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIntentsMethod(), getCallOptions(), request); } @@ -745,8 +743,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse listIntents( * */ public com.google.cloud.dialogflow.cx.v3beta1.Intent getIntent( - com.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIntentMethod(), getCallOptions(), request); } @@ -761,8 +760,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent getIntent( * */ public com.google.cloud.dialogflow.cx.v3beta1.Intent createIntent( - com.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIntentMethod(), getCallOptions(), request); } @@ -777,8 +777,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent createIntent( * */ public com.google.cloud.dialogflow.cx.v3beta1.Intent updateIntent( - com.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIntentMethod(), getCallOptions(), request); } @@ -793,8 +794,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent updateIntent( * */ public com.google.protobuf.Empty deleteIntent( - com.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIntentMethod(), getCallOptions(), request); } @@ -813,8 +815,9 @@ public com.google.protobuf.Empty deleteIntent( * */ public com.google.longrunning.Operation importIntents( - com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportIntentsMethod(), getCallOptions(), request); } @@ -833,8 +836,9 @@ public com.google.longrunning.Operation importIntents( * */ public com.google.longrunning.Operation exportIntents( - com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportIntentsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesGrpc.java index e48c990f6b06..3ad5d59388d7 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Pages][google.cloud.dialogflow.cx.v3beta1.Page]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/page.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PagesGrpc { @@ -516,8 +513,9 @@ protected PagesBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions * */ public com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse listPages( - com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPagesMethod(), getCallOptions(), request); } @@ -529,8 +527,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse listPages( * */ public com.google.cloud.dialogflow.cx.v3beta1.Page getPage( - com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPageMethod(), getCallOptions(), request); } @@ -542,8 +541,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Page getPage( * */ public com.google.cloud.dialogflow.cx.v3beta1.Page createPage( - com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePageMethod(), getCallOptions(), request); } @@ -555,8 +555,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Page createPage( * */ public com.google.cloud.dialogflow.cx.v3beta1.Page updatePage( - com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePageMethod(), getCallOptions(), request); } @@ -568,8 +569,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Page updatePage( * */ public com.google.protobuf.Empty deletePage( - com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePageMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksGrpc.java index 56f3738c3f51..c56abdd59491 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksGrpc.java @@ -25,9 +25,6 @@ * [Playbooks][google.cloud.dialogflow.cx.v3beta1.Playbook]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/playbook.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PlaybooksGrpc { @@ -1104,8 +1101,9 @@ protected PlaybooksBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.Playbook createPlaybook( - com.google.cloud.dialogflow.cx.v3beta1.CreatePlaybookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreatePlaybookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePlaybookMethod(), getCallOptions(), request); } @@ -1117,8 +1115,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Playbook createPlaybook( * */ public com.google.protobuf.Empty deletePlaybook( - com.google.cloud.dialogflow.cx.v3beta1.DeletePlaybookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeletePlaybookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePlaybookMethod(), getCallOptions(), request); } @@ -1130,8 +1129,9 @@ public com.google.protobuf.Empty deletePlaybook( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListPlaybooksResponse listPlaybooks( - com.google.cloud.dialogflow.cx.v3beta1.ListPlaybooksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListPlaybooksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPlaybooksMethod(), getCallOptions(), request); } @@ -1143,8 +1143,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListPlaybooksResponse listPlaybook * */ public com.google.cloud.dialogflow.cx.v3beta1.Playbook getPlaybook( - com.google.cloud.dialogflow.cx.v3beta1.GetPlaybookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetPlaybookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPlaybookMethod(), getCallOptions(), request); } @@ -1158,8 +1159,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Playbook getPlaybook( * */ public com.google.longrunning.Operation exportPlaybook( - com.google.cloud.dialogflow.cx.v3beta1.ExportPlaybookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ExportPlaybookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportPlaybookMethod(), getCallOptions(), request); } @@ -1171,8 +1173,9 @@ public com.google.longrunning.Operation exportPlaybook( * */ public com.google.longrunning.Operation importPlaybook( - com.google.cloud.dialogflow.cx.v3beta1.ImportPlaybookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ImportPlaybookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportPlaybookMethod(), getCallOptions(), request); } @@ -1184,8 +1187,9 @@ public com.google.longrunning.Operation importPlaybook( * */ public com.google.cloud.dialogflow.cx.v3beta1.Playbook updatePlaybook( - com.google.cloud.dialogflow.cx.v3beta1.UpdatePlaybookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdatePlaybookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePlaybookMethod(), getCallOptions(), request); } @@ -1197,8 +1201,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Playbook updatePlaybook( * */ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion createPlaybookVersion( - com.google.cloud.dialogflow.cx.v3beta1.CreatePlaybookVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreatePlaybookVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePlaybookVersionMethod(), getCallOptions(), request); } @@ -1210,8 +1215,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion createPlaybookVers * */ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion getPlaybookVersion( - com.google.cloud.dialogflow.cx.v3beta1.GetPlaybookVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetPlaybookVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPlaybookVersionMethod(), getCallOptions(), request); } @@ -1225,8 +1231,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion getPlaybookVersion */ public com.google.cloud.dialogflow.cx.v3beta1.RestorePlaybookVersionResponse restorePlaybookVersion( - com.google.cloud.dialogflow.cx.v3beta1.RestorePlaybookVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.RestorePlaybookVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestorePlaybookVersionMethod(), getCallOptions(), request); } @@ -1238,8 +1245,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookVersion getPlaybookVersion * */ public com.google.cloud.dialogflow.cx.v3beta1.ListPlaybookVersionsResponse listPlaybookVersions( - com.google.cloud.dialogflow.cx.v3beta1.ListPlaybookVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListPlaybookVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPlaybookVersionsMethod(), getCallOptions(), request); } @@ -1251,8 +1259,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListPlaybookVersionsResponse listP * */ public com.google.protobuf.Empty deletePlaybookVersion( - com.google.cloud.dialogflow.cx.v3beta1.DeletePlaybookVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeletePlaybookVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePlaybookVersionMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceGrpc.java index f38a60f5c47c..50a75aba2e1e 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing security settings for Dialogflow. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/security_settings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecuritySettingsServiceGrpc { @@ -594,8 +591,9 @@ protected SecuritySettingsServiceBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings createSecuritySettings( - com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecuritySettingsMethod(), getCallOptions(), request); } @@ -609,8 +607,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings createSecuritySet * */ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings getSecuritySettings( - com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecuritySettingsMethod(), getCallOptions(), request); } @@ -623,8 +622,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings getSecuritySettin * */ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings updateSecuritySettings( - com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecuritySettingsMethod(), getCallOptions(), request); } @@ -636,8 +636,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings updateSecuritySet * */ public com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse listSecuritySettings( - com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecuritySettingsMethod(), getCallOptions(), request); } @@ -650,8 +651,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse listS * */ public com.google.protobuf.Empty deleteSecuritySettings( - com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSecuritySettingsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java index dcb907b9720f..3efa5b7d4c3d 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java @@ -25,9 +25,6 @@ * [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionEntityTypesGrpc { @@ -583,8 +580,9 @@ protected SessionEntityTypesBlockingV2Stub build( */ public com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse listSessionEntityTypes( - com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionEntityTypesMethod(), getCallOptions(), request); } @@ -596,8 +594,9 @@ protected SessionEntityTypesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType getSessionEntityType( - com.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionEntityTypeMethod(), getCallOptions(), request); } @@ -609,8 +608,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType getSessionEntity * */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType createSessionEntityType( - com.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -622,8 +622,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType createSessionEnt * */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType updateSessionEntityType( - com.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -635,8 +636,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType updateSessionEnt * */ public com.google.protobuf.Empty deleteSessionEntityType( - com.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionEntityTypeMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsGrpc.java index c6a672bf16eb..17ab1c610340 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsGrpc.java @@ -27,9 +27,6 @@ * method to determine user intent and respond. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/session.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionsGrpc { @@ -706,8 +703,9 @@ protected SessionsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detectIntent( - com.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetectIntentMethod(), getCallOptions(), request); } @@ -761,8 +759,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detectIntent( * */ public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse matchIntent( - com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMatchIntentMethod(), getCallOptions(), request); } @@ -780,8 +779,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse matchIntent( * */ public com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse fulfillIntent( - com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFulfillIntentMethod(), getCallOptions(), request); } @@ -794,8 +794,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse fulfillInten * */ public com.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback submitAnswerFeedback( - com.google.cloud.dialogflow.cx.v3beta1.SubmitAnswerFeedbackRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.SubmitAnswerFeedbackRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitAnswerFeedbackMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java index ef50b779c6fb..89807bfad7e5 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java @@ -26,9 +26,6 @@ * Results][google.cloud.dialogflow.cx.v3beta1.TestCaseResult]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/test_case.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TestCasesGrpc { @@ -1162,8 +1159,9 @@ protected TestCasesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse listTestCases( - com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTestCasesMethod(), getCallOptions(), request); } @@ -1175,8 +1173,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse listTestCase * */ public com.google.protobuf.Empty batchDeleteTestCases( - com.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteTestCasesMethod(), getCallOptions(), request); } @@ -1188,8 +1187,9 @@ public com.google.protobuf.Empty batchDeleteTestCases( * */ public com.google.cloud.dialogflow.cx.v3beta1.TestCase getTestCase( - com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTestCaseMethod(), getCallOptions(), request); } @@ -1201,8 +1201,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCase getTestCase( * */ public com.google.cloud.dialogflow.cx.v3beta1.TestCase createTestCase( - com.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTestCaseMethod(), getCallOptions(), request); } @@ -1214,8 +1215,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCase createTestCase( * */ public com.google.cloud.dialogflow.cx.v3beta1.TestCase updateTestCase( - com.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTestCaseMethod(), getCallOptions(), request); } @@ -1234,8 +1236,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCase updateTestCase( * */ public com.google.longrunning.Operation runTestCase( - com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunTestCaseMethod(), getCallOptions(), request); } @@ -1254,8 +1257,9 @@ public com.google.longrunning.Operation runTestCase( * */ public com.google.longrunning.Operation batchRunTestCases( - com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchRunTestCasesMethod(), getCallOptions(), request); } @@ -1267,8 +1271,9 @@ public com.google.longrunning.Operation batchRunTestCases( * */ public com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse calculateCoverage( - com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCalculateCoverageMethod(), getCallOptions(), request); } @@ -1289,8 +1294,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse calculat * */ public com.google.longrunning.Operation importTestCases( - com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportTestCasesMethod(), getCallOptions(), request); } @@ -1310,8 +1316,9 @@ public com.google.longrunning.Operation importTestCases( * */ public com.google.longrunning.Operation exportTestCases( - com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportTestCasesMethod(), getCallOptions(), request); } @@ -1324,8 +1331,9 @@ public com.google.longrunning.Operation exportTestCases( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse listTestCaseResults( - com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTestCaseResultsMethod(), getCallOptions(), request); } @@ -1337,8 +1345,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse listTe * */ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult getTestCaseResult( - com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTestCaseResultMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsGrpc.java index f8927f4bcde2..8f8263028dbe 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Tools][google.cloud.dialogflow.cx.v3beta1.Tool]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/tool.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ToolsGrpc { @@ -995,8 +992,9 @@ protected ToolsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions * */ public com.google.cloud.dialogflow.cx.v3beta1.Tool createTool( - com.google.cloud.dialogflow.cx.v3beta1.CreateToolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateToolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateToolMethod(), getCallOptions(), request); } @@ -1009,8 +1007,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Tool createTool( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListToolsResponse listTools( - com.google.cloud.dialogflow.cx.v3beta1.ListToolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListToolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListToolsMethod(), getCallOptions(), request); } @@ -1022,8 +1021,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListToolsResponse listTools( * */ public com.google.longrunning.Operation exportTools( - com.google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportToolsMethod(), getCallOptions(), request); } @@ -1035,8 +1035,9 @@ public com.google.longrunning.Operation exportTools( * */ public com.google.cloud.dialogflow.cx.v3beta1.Tool getTool( - com.google.cloud.dialogflow.cx.v3beta1.GetToolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetToolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetToolMethod(), getCallOptions(), request); } @@ -1048,8 +1049,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Tool getTool( * */ public com.google.cloud.dialogflow.cx.v3beta1.Tool updateTool( - com.google.cloud.dialogflow.cx.v3beta1.UpdateToolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateToolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateToolMethod(), getCallOptions(), request); } @@ -1061,8 +1063,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Tool updateTool( * */ public com.google.protobuf.Empty deleteTool( - com.google.cloud.dialogflow.cx.v3beta1.DeleteToolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteToolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteToolMethod(), getCallOptions(), request); } @@ -1075,8 +1078,9 @@ public com.google.protobuf.Empty deleteTool( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListToolVersionsResponse listToolVersions( - com.google.cloud.dialogflow.cx.v3beta1.ListToolVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListToolVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListToolVersionsMethod(), getCallOptions(), request); } @@ -1089,8 +1093,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListToolVersionsResponse listToolV * */ public com.google.cloud.dialogflow.cx.v3beta1.ToolVersion createToolVersion( - com.google.cloud.dialogflow.cx.v3beta1.CreateToolVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateToolVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateToolVersionMethod(), getCallOptions(), request); } @@ -1103,8 +1108,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ToolVersion createToolVersion( * */ public com.google.cloud.dialogflow.cx.v3beta1.ToolVersion getToolVersion( - com.google.cloud.dialogflow.cx.v3beta1.GetToolVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetToolVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetToolVersionMethod(), getCallOptions(), request); } @@ -1117,8 +1123,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ToolVersion getToolVersion( * */ public com.google.protobuf.Empty deleteToolVersion( - com.google.cloud.dialogflow.cx.v3beta1.DeleteToolVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteToolVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteToolVersionMethod(), getCallOptions(), request); } @@ -1131,8 +1138,9 @@ public com.google.protobuf.Empty deleteToolVersion( * */ public com.google.cloud.dialogflow.cx.v3beta1.RestoreToolVersionResponse restoreToolVersion( - com.google.cloud.dialogflow.cx.v3beta1.RestoreToolVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.RestoreToolVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreToolVersionMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsGrpc.java index b0013bc8d99c..be0f4398d639 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsGrpc.java @@ -25,9 +25,6 @@ * [TransitionRouteGroups][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TransitionRouteGroupsGrpc { @@ -622,8 +619,9 @@ protected TransitionRouteGroupsBlockingV2Stub build( */ public com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse listTransitionRouteGroups( - com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTransitionRouteGroupsMethod(), getCallOptions(), request); } @@ -636,8 +634,9 @@ protected TransitionRouteGroupsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup getTransitionRouteGroup( - com.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTransitionRouteGroupMethod(), getCallOptions(), request); } @@ -654,8 +653,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup getTransition * */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup createTransitionRouteGroup( - com.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTransitionRouteGroupMethod(), getCallOptions(), request); } @@ -671,8 +671,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup createTransit * */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup updateTransitionRouteGroup( - com.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTransitionRouteGroupMethod(), getCallOptions(), request); } @@ -688,8 +689,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup updateTransit * */ public com.google.protobuf.Empty deleteTransitionRouteGroup( - com.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTransitionRouteGroupMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsGrpc.java index fd6d85541d07..8a3cb898c7c1 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Versions][google.cloud.dialogflow.cx.v3beta1.Version]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/version.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VersionsGrpc { @@ -724,8 +721,9 @@ protected VersionsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse listVersions( - com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVersionsMethod(), getCallOptions(), request); } @@ -738,8 +736,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse listVersions( * */ public com.google.cloud.dialogflow.cx.v3beta1.Version getVersion( - com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVersionMethod(), getCallOptions(), request); } @@ -758,8 +757,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Version getVersion( * */ public com.google.longrunning.Operation createVersion( - com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVersionMethod(), getCallOptions(), request); } @@ -772,8 +772,9 @@ public com.google.longrunning.Operation createVersion( * */ public com.google.cloud.dialogflow.cx.v3beta1.Version updateVersion( - com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVersionMethod(), getCallOptions(), request); } @@ -786,8 +787,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Version updateVersion( * */ public com.google.protobuf.Empty deleteVersion( - com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVersionMethod(), getCallOptions(), request); } @@ -806,8 +808,9 @@ public com.google.protobuf.Empty deleteVersion( * */ public com.google.longrunning.Operation loadVersion( - com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLoadVersionMethod(), getCallOptions(), request); } @@ -819,8 +822,9 @@ public com.google.longrunning.Operation loadVersion( * */ public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse compareVersions( - com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompareVersionsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksGrpc.java index c0b5eb9cf16c..d9d74af692bf 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Webhooks][google.cloud.dialogflow.cx.v3beta1.Webhook]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/cx/v3beta1/webhook.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WebhooksGrpc { @@ -536,8 +533,9 @@ protected WebhooksBlockingV2Stub build( * */ public com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse listWebhooks( - com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWebhooksMethod(), getCallOptions(), request); } @@ -549,8 +547,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse listWebhooks( * */ public com.google.cloud.dialogflow.cx.v3beta1.Webhook getWebhook( - com.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWebhookMethod(), getCallOptions(), request); } @@ -562,8 +561,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook getWebhook( * */ public com.google.cloud.dialogflow.cx.v3beta1.Webhook createWebhook( - com.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWebhookMethod(), getCallOptions(), request); } @@ -575,8 +575,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook createWebhook( * */ public com.google.cloud.dialogflow.cx.v3beta1.Webhook updateWebhook( - com.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWebhookMethod(), getCallOptions(), request); } @@ -588,8 +589,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook updateWebhook( * */ public com.google.protobuf.Empty deleteWebhook( - com.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWebhookMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CodeBlock.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CodeBlock.java new file mode 100644 index 000000000000..ad1670c332ec --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CodeBlock.java @@ -0,0 +1,634 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/cx/v3beta1/code_block.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
                                          + * Represents a code block.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.CodeBlock} + */ +public final class CodeBlock extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.CodeBlock) + CodeBlockOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CodeBlock.newBuilder() to construct. + private CodeBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CodeBlock() { + code_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CodeBlock(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.CodeBlockProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CodeBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.CodeBlockProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CodeBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.class, + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + + /** + * + * + *
                                          +   * Optional. Source code of the block in Python.
                                          +   * 
                                          + * + * string code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + 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(); + code_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. Source code of the block in Python.
                                          +   * 
                                          + * + * string code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = 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.GeneratedMessageV3.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + 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.dialogflow.cx.v3beta1.CodeBlock)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock other = + (com.google.cloud.dialogflow.cx.v3beta1.CodeBlock) obj; + + if (!getCode().equals(other.getCode())) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock 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.dialogflow.cx.v3beta1.CodeBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock 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.dialogflow.cx.v3beta1.CodeBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3beta1.CodeBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Represents a code block.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.CodeBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.CodeBlock) + com.google.cloud.dialogflow.cx.v3beta1.CodeBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.CodeBlockProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CodeBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.CodeBlockProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CodeBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.class, + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.CodeBlockProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CodeBlock_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CodeBlock getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CodeBlock build() { + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CodeBlock buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock result = + new com.google.cloud.dialogflow.cx.v3beta1.CodeBlock(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.CodeBlock result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.CodeBlock) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.CodeBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CodeBlock other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.getDefaultInstance()) + return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + 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: + { + code_ = 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 code_ = ""; + + /** + * + * + *
                                          +     * Optional. Source code of the block in Python.
                                          +     * 
                                          + * + * string code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Source code of the block in Python.
                                          +     * 
                                          + * + * string code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Source code of the block in Python.
                                          +     * 
                                          + * + * string code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Source code of the block in Python.
                                          +     * 
                                          + * + * string code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Source code of the block in Python.
                                          +     * 
                                          + * + * string code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.CodeBlock) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.CodeBlock) + private static final com.google.cloud.dialogflow.cx.v3beta1.CodeBlock DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.CodeBlock(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CodeBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodeBlock 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.dialogflow.cx.v3beta1.CodeBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CodeBlockOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CodeBlockOrBuilder.java new file mode 100644 index 000000000000..c3a199a8bc83 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CodeBlockOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/cx/v3beta1/code_block.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface CodeBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.CodeBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. Source code of the block in Python.
                                          +   * 
                                          + * + * string code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The code. + */ + java.lang.String getCode(); + + /** + * + * + *
                                          +   * Optional. Source code of the block in Python.
                                          +   * 
                                          + * + * string code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CodeBlockProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CodeBlockProto.java new file mode 100644 index 000000000000..b2e8c2fdc42d --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CodeBlockProto.java @@ -0,0 +1,77 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/cx/v3beta1/code_block.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.cx.v3beta1; + +public final class CodeBlockProto { + private CodeBlockProto() {} + + 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_dialogflow_cx_v3beta1_CodeBlock_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_CodeBlock_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/dialogflow/cx/v3beta1/cod" + + "e_block.proto\022\"google.cloud.dialogflow.c" + + "x.v3beta1\032\037google/api/field_behavior.pro" + + "to\"\036\n\tCodeBlock\022\021\n\004code\030\001 \001(\tB\003\340A\001B\234\001\n&c" + + "om.google.cloud.dialogflow.cx.v3beta1B\016C" + + "odeBlockProtoP\001Z6cloud.google.com/go/dia" + + "logflow/cx/apiv3beta1/cxpb;cxpb\242\002\002DF\252\002\"G" + + "oogle.Cloud.Dialogflow.Cx.V3Beta1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_CodeBlock_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_cx_v3beta1_CodeBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_CodeBlock_descriptor, + new java.lang.String[] { + "Code", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Playbook.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Playbook.java index 8d212384b5bf..3a7036163153 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Playbook.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Playbook.java @@ -55,6 +55,7 @@ private Playbook() { referencedPlaybooks_ = com.google.protobuf.LazyStringArrayList.emptyList(); referencedFlows_ = com.google.protobuf.LazyStringArrayList.emptyList(); referencedTools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + inlineActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); handlers_ = java.util.Collections.emptyList(); playbookType_ = 0; } @@ -3680,6 +3681,156 @@ public com.google.protobuf.ByteString getReferencedToolsBytes(int index) { return referencedTools_.getByteString(index); } + public static final int INLINE_ACTIONS_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList inlineActions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                          +   * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +   * These actions are in addition to those belonging to referenced tools, child
                                          +   * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +   * block.
                                          +   * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the inlineActions. + */ + public com.google.protobuf.ProtocolStringList getInlineActionsList() { + return inlineActions_; + } + + /** + * + * + *
                                          +   * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +   * These actions are in addition to those belonging to referenced tools, child
                                          +   * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +   * block.
                                          +   * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of inlineActions. + */ + public int getInlineActionsCount() { + return inlineActions_.size(); + } + + /** + * + * + *
                                          +   * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +   * These actions are in addition to those belonging to referenced tools, child
                                          +   * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +   * block.
                                          +   * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The inlineActions at the given index. + */ + public java.lang.String getInlineActions(int index) { + return inlineActions_.get(index); + } + + /** + * + * + *
                                          +   * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +   * These actions are in addition to those belonging to referenced tools, child
                                          +   * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +   * block.
                                          +   * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the inlineActions at the given index. + */ + public com.google.protobuf.ByteString getInlineActionsBytes(int index) { + return inlineActions_.getByteString(index); + } + + public static final int CODE_BLOCK_FIELD_NUMBER = 21; + private com.google.cloud.dialogflow.cx.v3beta1.CodeBlock codeBlock_; + + /** + * + * + *
                                          +   * Optional. The playbook's scoped code block, which may implement handlers
                                          +   * and actions.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeBlock field is set. + */ + @java.lang.Override + public boolean hasCodeBlock() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +   * Optional. The playbook's scoped code block, which may implement handlers
                                          +   * and actions.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeBlock. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CodeBlock getCodeBlock() { + return codeBlock_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.getDefaultInstance() + : codeBlock_; + } + + /** + * + * + *
                                          +   * Optional. The playbook's scoped code block, which may implement handlers
                                          +   * and actions.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CodeBlockOrBuilder getCodeBlockOrBuilder() { + return codeBlock_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.getDefaultInstance() + : codeBlock_; + } + public static final int LLM_MODEL_SETTINGS_FIELD_NUMBER = 14; private com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llmModelSettings_; @@ -3698,7 +3849,7 @@ public com.google.protobuf.ByteString getReferencedToolsBytes(int index) { */ @java.lang.Override public boolean hasLlmModelSettings() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -3758,7 +3909,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings getLlmModelSettin */ @java.lang.Override public boolean hasSpeechSettings() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -3985,7 +4136,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < referencedTools_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, referencedTools_.getRaw(i)); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(14, getLlmModelSettings()); } for (int i = 0; i < handlers_.size(); i++) { @@ -3999,9 +4150,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(19, playbookType_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(20, getSpeechSettings()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(21, getCodeBlock()); + } + for (int i = 0; i < inlineActions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, inlineActions_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -4063,7 +4220,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getReferencedToolsList().size(); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLlmModelSettings()); } for (int i = 0; i < handlers_.size(); i++) { @@ -4077,9 +4234,20 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, playbookType_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getSpeechSettings()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getCodeBlock()); + } + { + int dataSize = 0; + for (int i = 0; i < inlineActions_.size(); i++) { + dataSize += computeStringSizeNoTag(inlineActions_.getRaw(i)); + } + size += dataSize; + size += 2 * getInlineActionsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4119,6 +4287,11 @@ public boolean equals(final java.lang.Object obj) { if (!getReferencedPlaybooksList().equals(other.getReferencedPlaybooksList())) return false; if (!getReferencedFlowsList().equals(other.getReferencedFlowsList())) return false; if (!getReferencedToolsList().equals(other.getReferencedToolsList())) return false; + if (!getInlineActionsList().equals(other.getInlineActionsList())) return false; + if (hasCodeBlock() != other.hasCodeBlock()) return false; + if (hasCodeBlock()) { + if (!getCodeBlock().equals(other.getCodeBlock())) return false; + } if (hasLlmModelSettings() != other.hasLlmModelSettings()) return false; if (hasLlmModelSettings()) { if (!getLlmModelSettings().equals(other.getLlmModelSettings())) return false; @@ -4180,6 +4353,14 @@ public int hashCode() { hash = (37 * hash) + REFERENCED_TOOLS_FIELD_NUMBER; hash = (53 * hash) + getReferencedToolsList().hashCode(); } + if (getInlineActionsCount() > 0) { + hash = (37 * hash) + INLINE_ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getInlineActionsList().hashCode(); + } + if (hasCodeBlock()) { + hash = (37 * hash) + CODE_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getCodeBlock().hashCode(); + } if (hasLlmModelSettings()) { hash = (37 * hash) + LLM_MODEL_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getLlmModelSettings().hashCode(); @@ -4347,6 +4528,7 @@ private void maybeForceBuilderInitialization() { getInstructionFieldBuilder(); getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getCodeBlockFieldBuilder(); getLlmModelSettingsFieldBuilder(); getSpeechSettingsFieldBuilder(); getHandlersFieldBuilder(); @@ -4393,6 +4575,12 @@ public Builder clear() { referencedPlaybooks_ = com.google.protobuf.LazyStringArrayList.emptyList(); referencedFlows_ = com.google.protobuf.LazyStringArrayList.emptyList(); referencedTools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + inlineActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + codeBlock_ = null; + if (codeBlockBuilder_ != null) { + codeBlockBuilder_.dispose(); + codeBlockBuilder_ = null; + } llmModelSettings_ = null; if (llmModelSettingsBuilder_ != null) { llmModelSettingsBuilder_.dispose(); @@ -4409,7 +4597,7 @@ public Builder clear() { handlers_ = null; handlersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); playbookType_ = 0; return this; } @@ -4469,9 +4657,9 @@ private void buildPartialRepeatedFields( result.outputParameterDefinitions_ = outputParameterDefinitionsBuilder_.build(); } if (handlersBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { handlers_ = java.util.Collections.unmodifiableList(handlers_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); } result.handlers_ = handlers_; } else { @@ -4520,16 +4708,24 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Playbook resul result.referencedTools_ = referencedTools_; } if (((from_bitField0_ & 0x00001000) != 0)) { + inlineActions_.makeImmutable(); + result.inlineActions_ = inlineActions_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.codeBlock_ = codeBlockBuilder_ == null ? codeBlock_ : codeBlockBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.llmModelSettings_ = llmModelSettingsBuilder_ == null ? llmModelSettings_ : llmModelSettingsBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.speechSettings_ = speechSettingsBuilder_ == null ? speechSettings_ : speechSettingsBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.playbookType_ = playbookType_; } result.bitField0_ |= to_bitField0_; @@ -4692,6 +4888,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Playbook other) } onChanged(); } + if (!other.inlineActions_.isEmpty()) { + if (inlineActions_.isEmpty()) { + inlineActions_ = other.inlineActions_; + bitField0_ |= 0x00001000; + } else { + ensureInlineActionsIsMutable(); + inlineActions_.addAll(other.inlineActions_); + } + onChanged(); + } + if (other.hasCodeBlock()) { + mergeCodeBlock(other.getCodeBlock()); + } if (other.hasLlmModelSettings()) { mergeLlmModelSettings(other.getLlmModelSettings()); } @@ -4702,7 +4911,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Playbook other) if (!other.handlers_.isEmpty()) { if (handlers_.isEmpty()) { handlers_ = other.handlers_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); } else { ensureHandlersIsMutable(); handlers_.addAll(other.handlers_); @@ -4715,7 +4924,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Playbook other) handlersBuilder_.dispose(); handlersBuilder_ = null; handlers_ = other.handlers_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); handlersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHandlersFieldBuilder() @@ -4843,7 +5052,7 @@ public Builder mergeFrom( { input.readMessage( getLlmModelSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; break; } // case 114 case 130: @@ -4868,15 +5077,28 @@ public Builder mergeFrom( case 152: { playbookType_ = input.readEnum(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; break; } // case 152 case 162: { input.readMessage(getSpeechSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; break; } // case 162 + case 170: + { + input.readMessage(getCodeBlockFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 170 + case 178: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInlineActionsIsMutable(); + inlineActions_.add(s); + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7420,6 +7642,457 @@ public Builder addReferencedToolsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList inlineActions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInlineActionsIsMutable() { + if (!inlineActions_.isModifiable()) { + inlineActions_ = new com.google.protobuf.LazyStringArrayList(inlineActions_); + } + bitField0_ |= 0x00001000; + } + + /** + * + * + *
                                          +     * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +     * These actions are in addition to those belonging to referenced tools, child
                                          +     * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +     * block.
                                          +     * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the inlineActions. + */ + public com.google.protobuf.ProtocolStringList getInlineActionsList() { + inlineActions_.makeImmutable(); + return inlineActions_; + } + + /** + * + * + *
                                          +     * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +     * These actions are in addition to those belonging to referenced tools, child
                                          +     * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +     * block.
                                          +     * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of inlineActions. + */ + public int getInlineActionsCount() { + return inlineActions_.size(); + } + + /** + * + * + *
                                          +     * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +     * These actions are in addition to those belonging to referenced tools, child
                                          +     * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +     * block.
                                          +     * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The inlineActions at the given index. + */ + public java.lang.String getInlineActions(int index) { + return inlineActions_.get(index); + } + + /** + * + * + *
                                          +     * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +     * These actions are in addition to those belonging to referenced tools, child
                                          +     * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +     * block.
                                          +     * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the inlineActions at the given index. + */ + public com.google.protobuf.ByteString getInlineActionsBytes(int index) { + return inlineActions_.getByteString(index); + } + + /** + * + * + *
                                          +     * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +     * These actions are in addition to those belonging to referenced tools, child
                                          +     * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +     * block.
                                          +     * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The inlineActions to set. + * @return This builder for chaining. + */ + public Builder setInlineActions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInlineActionsIsMutable(); + inlineActions_.set(index, value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +     * These actions are in addition to those belonging to referenced tools, child
                                          +     * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +     * block.
                                          +     * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The inlineActions to add. + * @return This builder for chaining. + */ + public Builder addInlineActions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInlineActionsIsMutable(); + inlineActions_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +     * These actions are in addition to those belonging to referenced tools, child
                                          +     * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +     * block.
                                          +     * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The inlineActions to add. + * @return This builder for chaining. + */ + public Builder addAllInlineActions(java.lang.Iterable values) { + ensureInlineActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inlineActions_); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +     * These actions are in addition to those belonging to referenced tools, child
                                          +     * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +     * block.
                                          +     * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInlineActions() { + inlineActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +     * These actions are in addition to those belonging to referenced tools, child
                                          +     * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +     * block.
                                          +     * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the inlineActions to add. + * @return This builder for chaining. + */ + public Builder addInlineActionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInlineActionsIsMutable(); + inlineActions_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.cx.v3beta1.CodeBlock codeBlock_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock, + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.Builder, + com.google.cloud.dialogflow.cx.v3beta1.CodeBlockOrBuilder> + codeBlockBuilder_; + + /** + * + * + *
                                          +     * Optional. The playbook's scoped code block, which may implement handlers
                                          +     * and actions.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeBlock field is set. + */ + public boolean hasCodeBlock() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
                                          +     * Optional. The playbook's scoped code block, which may implement handlers
                                          +     * and actions.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeBlock. + */ + public com.google.cloud.dialogflow.cx.v3beta1.CodeBlock getCodeBlock() { + if (codeBlockBuilder_ == null) { + return codeBlock_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.getDefaultInstance() + : codeBlock_; + } else { + return codeBlockBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Optional. The playbook's scoped code block, which may implement handlers
                                          +     * and actions.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeBlock(com.google.cloud.dialogflow.cx.v3beta1.CodeBlock value) { + if (codeBlockBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + codeBlock_ = value; + } else { + codeBlockBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The playbook's scoped code block, which may implement handlers
                                          +     * and actions.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeBlock( + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.Builder builderForValue) { + if (codeBlockBuilder_ == null) { + codeBlock_ = builderForValue.build(); + } else { + codeBlockBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The playbook's scoped code block, which may implement handlers
                                          +     * and actions.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCodeBlock(com.google.cloud.dialogflow.cx.v3beta1.CodeBlock value) { + if (codeBlockBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && codeBlock_ != null + && codeBlock_ + != com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.getDefaultInstance()) { + getCodeBlockBuilder().mergeFrom(value); + } else { + codeBlock_ = value; + } + } else { + codeBlockBuilder_.mergeFrom(value); + } + if (codeBlock_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The playbook's scoped code block, which may implement handlers
                                          +     * and actions.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCodeBlock() { + bitField0_ = (bitField0_ & ~0x00002000); + codeBlock_ = null; + if (codeBlockBuilder_ != null) { + codeBlockBuilder_.dispose(); + codeBlockBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The playbook's scoped code block, which may implement handlers
                                          +     * and actions.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.Builder getCodeBlockBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getCodeBlockFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. The playbook's scoped code block, which may implement handlers
                                          +     * and actions.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.CodeBlockOrBuilder getCodeBlockOrBuilder() { + if (codeBlockBuilder_ != null) { + return codeBlockBuilder_.getMessageOrBuilder(); + } else { + return codeBlock_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.getDefaultInstance() + : codeBlock_; + } + } + + /** + * + * + *
                                          +     * Optional. The playbook's scoped code block, which may implement handlers
                                          +     * and actions.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock, + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.Builder, + com.google.cloud.dialogflow.cx.v3beta1.CodeBlockOrBuilder> + getCodeBlockFieldBuilder() { + if (codeBlockBuilder_ == null) { + codeBlockBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock, + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock.Builder, + com.google.cloud.dialogflow.cx.v3beta1.CodeBlockOrBuilder>( + getCodeBlock(), getParentForChildren(), isClean()); + codeBlock_ = null; + } + return codeBlockBuilder_; + } + private com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llmModelSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings, @@ -7441,7 +8114,7 @@ public Builder addReferencedToolsBytes(com.google.protobuf.ByteString value) { * @return Whether the llmModelSettings field is set. */ public boolean hasLlmModelSettings() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -7488,7 +8161,7 @@ public Builder setLlmModelSettings( } else { llmModelSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7511,7 +8184,7 @@ public Builder setLlmModelSettings( } else { llmModelSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7530,7 +8203,7 @@ public Builder setLlmModelSettings( public Builder mergeLlmModelSettings( com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings value) { if (llmModelSettingsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00004000) != 0) && llmModelSettings_ != null && llmModelSettings_ != com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.getDefaultInstance()) { @@ -7542,7 +8215,7 @@ public Builder mergeLlmModelSettings( llmModelSettingsBuilder_.mergeFrom(value); } if (llmModelSettings_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -7560,7 +8233,7 @@ public Builder mergeLlmModelSettings( * */ public Builder clearLlmModelSettings() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); llmModelSettings_ = null; if (llmModelSettingsBuilder_ != null) { llmModelSettingsBuilder_.dispose(); @@ -7583,7 +8256,7 @@ public Builder clearLlmModelSettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.Builder getLlmModelSettingsBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return getLlmModelSettingsFieldBuilder().getBuilder(); } @@ -7659,7 +8332,7 @@ public Builder clearLlmModelSettings() { * @return Whether the speechSettings field is set. */ public boolean hasSpeechSettings() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -7708,7 +8381,7 @@ public Builder setSpeechSettings( } else { speechSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7732,7 +8405,7 @@ public Builder setSpeechSettings( } else { speechSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7751,7 +8424,7 @@ public Builder setSpeechSettings( public Builder mergeSpeechSettings( com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.SpeechSettings value) { if (speechSettingsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00008000) != 0) && speechSettings_ != null && speechSettings_ != com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.SpeechSettings @@ -7764,7 +8437,7 @@ public Builder mergeSpeechSettings( speechSettingsBuilder_.mergeFrom(value); } if (speechSettings_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -7782,7 +8455,7 @@ public Builder mergeSpeechSettings( * */ public Builder clearSpeechSettings() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); speechSettings_ = null; if (speechSettingsBuilder_ != null) { speechSettingsBuilder_.dispose(); @@ -7805,7 +8478,7 @@ public Builder clearSpeechSettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.SpeechSettings.Builder getSpeechSettingsBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return getSpeechSettingsFieldBuilder().getBuilder(); } @@ -7865,10 +8538,10 @@ public Builder clearSpeechSettings() { java.util.Collections.emptyList(); private void ensureHandlersIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00010000) != 0)) { handlers_ = new java.util.ArrayList(handlers_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; } } @@ -8127,7 +8800,7 @@ public Builder addAllHandlers( public Builder clearHandlers() { if (handlersBuilder_ == null) { handlers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); } else { handlersBuilder_.clear(); @@ -8277,7 +8950,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Handler.Builder addHandlersBuilder com.google.cloud.dialogflow.cx.v3beta1.Handler, com.google.cloud.dialogflow.cx.v3beta1.Handler.Builder, com.google.cloud.dialogflow.cx.v3beta1.HandlerOrBuilder>( - handlers_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + handlers_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), isClean()); handlers_ = null; } return handlersBuilder_; @@ -8319,7 +8992,7 @@ public int getPlaybookTypeValue() { */ public Builder setPlaybookTypeValue(int value) { playbookType_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -8365,7 +9038,7 @@ public Builder setPlaybookType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; playbookType_ = value.getNumber(); onChanged(); return this; @@ -8385,7 +9058,7 @@ public Builder setPlaybookType( * @return This builder for chaining. */ public Builder clearPlaybookType() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00020000); playbookType_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOrBuilder.java index b1d690c44b3b..45d63c2eaca3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOrBuilder.java @@ -581,6 +581,126 @@ com.google.cloud.dialogflow.cx.v3beta1.ParameterDefinition getOutputParameterDef */ com.google.protobuf.ByteString getReferencedToolsBytes(int index); + /** + * + * + *
                                          +   * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +   * These actions are in addition to those belonging to referenced tools, child
                                          +   * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +   * block.
                                          +   * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the inlineActions. + */ + java.util.List getInlineActionsList(); + + /** + * + * + *
                                          +   * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +   * These actions are in addition to those belonging to referenced tools, child
                                          +   * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +   * block.
                                          +   * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of inlineActions. + */ + int getInlineActionsCount(); + + /** + * + * + *
                                          +   * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +   * These actions are in addition to those belonging to referenced tools, child
                                          +   * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +   * block.
                                          +   * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The inlineActions at the given index. + */ + java.lang.String getInlineActions(int index); + + /** + * + * + *
                                          +   * Optional. Output only. Names of inline actions scoped to this playbook.
                                          +   * These actions are in addition to those belonging to referenced tools, child
                                          +   * playbooks, and flows, e.g. actions that are defined in the playbook's code
                                          +   * block.
                                          +   * 
                                          + * + * + * repeated string inline_actions = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the inlineActions at the given index. + */ + com.google.protobuf.ByteString getInlineActionsBytes(int index); + + /** + * + * + *
                                          +   * Optional. The playbook's scoped code block, which may implement handlers
                                          +   * and actions.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeBlock field is set. + */ + boolean hasCodeBlock(); + + /** + * + * + *
                                          +   * Optional. The playbook's scoped code block, which may implement handlers
                                          +   * and actions.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeBlock. + */ + com.google.cloud.dialogflow.cx.v3beta1.CodeBlock getCodeBlock(); + + /** + * + * + *
                                          +   * Optional. The playbook's scoped code block, which may implement handlers
                                          +   * and actions.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.CodeBlock code_block = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.CodeBlockOrBuilder getCodeBlockOrBuilder(); + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookProto.java index eccb22f97bbd..5e699ccda58c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookProto.java @@ -146,19 +146,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v3beta1\032\034google/api/annotations.proto\032\027g" + "oogle/api/client.proto\032\037google/api/field" + "_behavior.proto\032\031google/api/resource.pro" - + "to\032:google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto\0320google/cloud/dia" - + "logflow/cx/v3beta1/example.proto\0324google/cloud/dialogflow/cx/v3beta1/fulfillment" - + ".proto\032 + * Configuration for service account authentication. + * + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + * + * @return Whether the serviceAccountAuthConfig field is set. + */ + boolean hasServiceAccountAuthConfig(); + + /** + * + * + *
                                          +     * Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + * + * @return The serviceAccountAuthConfig. + */ + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + getServiceAccountAuthConfig(); + + /** + * + * + *
                                          +     * Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfigOrBuilder + getServiceAccountAuthConfigOrBuilder(); + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.AuthConfigCase getAuthConfigCase(); } @@ -16676,217 +16721,1002 @@ public com.google.protobuf.Parser getParserForType() { } } - private int authConfigCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object authConfig_; - - public enum AuthConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - API_KEY_CONFIG(1), - OAUTH_CONFIG(2), - SERVICE_AGENT_AUTH_CONFIG(3), - BEARER_TOKEN_CONFIG(4), - AUTHCONFIG_NOT_SET(0); - private final int value; - - private AuthConfigCase(int value) { - this.value = value; - } + public interface ServiceAccountAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) + com.google.protobuf.MessageOrBuilder { /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
                                          +       * Required. The email address of the service account used to authenticate
                                          +       * the tool call. Dialogflow uses this service account to exchange an
                                          +       * access token and the access token is then sent in the `Authorization`
                                          +       * header of the tool request.
                                          +       *
                                          +       * The service account must have the
                                          +       * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +       * [Dialogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAccount. */ - @java.lang.Deprecated - public static AuthConfigCase valueOf(int value) { - return forNumber(value); - } - - public static AuthConfigCase forNumber(int value) { - switch (value) { - case 1: - return API_KEY_CONFIG; - case 2: - return OAUTH_CONFIG; - case 3: - return SERVICE_AGENT_AUTH_CONFIG; - case 4: - return BEARER_TOKEN_CONFIG; - case 0: - return AUTHCONFIG_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; + java.lang.String getServiceAccount(); - public AuthConfigCase getAuthConfigCase() { - return AuthConfigCase.forNumber(authConfigCase_); + /** + * + * + *
                                          +       * Required. The email address of the service account used to authenticate
                                          +       * the tool call. Dialogflow uses this service account to exchange an
                                          +       * access token and the access token is then sent in the `Authorization`
                                          +       * header of the tool request.
                                          +       *
                                          +       * The service account must have the
                                          +       * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +       * [Dialogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); } - public static final int API_KEY_CONFIG_FIELD_NUMBER = 1; - /** * * *
                                          -     * Config for API key auth.
                                          +     * Configuration for authentication using a service account.
                                                * 
                                          * - * - * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; - * - * - * @return Whether the apiKeyConfig field is set. + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig} */ - @java.lang.Override - public boolean hasApiKeyConfig() { - return authConfigCase_ == 1; - } + public static final class ServiceAccountAuthConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) + ServiceAccountAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
                                          -     * Config for API key auth.
                                          -     * 
                                          - * - * - * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; - * - * - * @return The apiKeyConfig. - */ - @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig - getApiKeyConfig() { - if (authConfigCase_ == 1) { - return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig) - authConfig_; + // Use ServiceAccountAuthConfig.newBuilder() to construct. + private ServiceAccountAuthConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig - .getDefaultInstance(); - } - /** - * - * - *
                                          -     * Config for API key auth.
                                          -     * 
                                          - * - * - * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfigOrBuilder - getApiKeyConfigOrBuilder() { - if (authConfigCase_ == 1) { - return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig) - authConfig_; + private ServiceAccountAuthConfig() { + serviceAccount_ = ""; } - return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig - .getDefaultInstance(); - } - public static final int OAUTH_CONFIG_FIELD_NUMBER = 2; - - /** - * - * - *
                                          -     * Config for OAuth.
                                          -     * 
                                          - * - * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig oauth_config = 2; - * - * - * @return Whether the oauthConfig field is set. - */ - @java.lang.Override - public boolean hasOauthConfig() { - return authConfigCase_ == 2; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceAccountAuthConfig(); + } - /** - * - * - *
                                          -     * Config for OAuth.
                                          -     * 
                                          - * - * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig oauth_config = 2; - * - * - * @return The oauthConfig. - */ - @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig getOauthConfig() { - if (authConfigCase_ == 2) { - return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig) authConfig_; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_descriptor; } - return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig - .getDefaultInstance(); - } - /** - * - * - *
                                          -     * Config for OAuth.
                                          -     * 
                                          - * - * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig oauth_config = 2; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfigOrBuilder - getOauthConfigOrBuilder() { - if (authConfigCase_ == 2) { - return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig) authConfig_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .class, + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .Builder.class); } - return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig - .getDefaultInstance(); - } - public static final int SERVICE_AGENT_AUTH_CONFIG_FIELD_NUMBER = 3; + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 1; - /** - * - * - *
                                          -     * Config for [Diglogflow service
                                          -     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          -     * auth.
                                          -     * 
                                          - * - * - * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; - * - * - * @return Whether the serviceAgentAuthConfig field is set. - */ - @java.lang.Override - public boolean hasServiceAgentAuthConfig() { - return authConfigCase_ == 3; - } + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; - /** - * - * - *
                                          -     * Config for [Diglogflow service
                                          -     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          -     * auth.
                                          +      /**
                                          +       *
                                          +       *
                                          +       * 
                                          +       * Required. The email address of the service account used to authenticate
                                          +       * the tool call. Dialogflow uses this service account to exchange an
                                          +       * access token and the access token is then sent in the `Authorization`
                                          +       * header of the tool request.
                                          +       *
                                          +       * The service account must have the
                                          +       * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +       * [Dialogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + 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(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Required. The email address of the service account used to authenticate
                                          +       * the tool call. Dialogflow uses this service account to exchange an
                                          +       * access token and the access token is then sent in the `Authorization`
                                          +       * header of the tool request.
                                          +       *
                                          +       * The service account must have the
                                          +       * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +       * [Dialogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = 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.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccount_); + } + 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.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig other = + (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) + obj; + + if (!getServiceAccount().equals(other.getServiceAccount())) 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) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + 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.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + 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.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * Configuration for authentication using a service account.
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig.class, + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + build() { + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + result = + new com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .getDefaultInstance()) return this; + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + 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: + { + serviceAccount_ = 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 serviceAccount_ = ""; + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the tool call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the tool request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the tool call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the tool request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the tool call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the tool request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the tool call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the tool request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the tool call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the tool request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) + private static final com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAccountAuthConfig 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.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int authConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object authConfig_; + + public enum AuthConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_KEY_CONFIG(1), + OAUTH_CONFIG(2), + SERVICE_AGENT_AUTH_CONFIG(3), + BEARER_TOKEN_CONFIG(4), + SERVICE_ACCOUNT_AUTH_CONFIG(5), + AUTHCONFIG_NOT_SET(0); + private final int value; + + private AuthConfigCase(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 AuthConfigCase valueOf(int value) { + return forNumber(value); + } + + public static AuthConfigCase forNumber(int value) { + switch (value) { + case 1: + return API_KEY_CONFIG; + case 2: + return OAUTH_CONFIG; + case 3: + return SERVICE_AGENT_AUTH_CONFIG; + case 4: + return BEARER_TOKEN_CONFIG; + case 5: + return SERVICE_ACCOUNT_AUTH_CONFIG; + case 0: + return AUTHCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public static final int API_KEY_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +     * Config for API key auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return authConfigCase_ == 1; + } + + /** + * + * + *
                                          +     * Config for API key auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig + getApiKeyConfig() { + if (authConfigCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig) + authConfig_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Config for API key auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder() { + if (authConfigCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig) + authConfig_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance(); + } + + public static final int OAUTH_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +     * Config for OAuth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + * + * @return Whether the oauthConfig field is set. + */ + @java.lang.Override + public boolean hasOauthConfig() { + return authConfigCase_ == 2; + } + + /** + * + * + *
                                          +     * Config for OAuth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + * + * @return The oauthConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig getOauthConfig() { + if (authConfigCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig) authConfig_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Config for OAuth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfigOrBuilder + getOauthConfigOrBuilder() { + if (authConfigCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig) authConfig_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance(); + } + + public static final int SERVICE_AGENT_AUTH_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
                                          +     * Config for [Diglogflow service
                                          +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +     * auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + * + * @return Whether the serviceAgentAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAgentAuthConfig() { + return authConfigCase_ == 3; + } + + /** + * + * + *
                                          +     * Config for [Diglogflow service
                                          +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +     * auth.
                                                * 
                                          * * @@ -16997,6 +17827,73 @@ public boolean hasBearerTokenConfig() { .getDefaultInstance(); } + public static final int SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER = 5; + + /** + * + * + *
                                          +     * Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + * + * @return Whether the serviceAccountAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAccountAuthConfig() { + return authConfigCase_ == 5; + } + + /** + * + * + *
                                          +     * Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + * + * @return The serviceAccountAuthConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + getServiceAccountAuthConfig() { + if (authConfigCase_ == 5) { + return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfigOrBuilder + getServiceAccountAuthConfigOrBuilder() { + if (authConfigCase_ == 5) { + return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -17033,6 +17930,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.BearerTokenConfig) authConfig_); } + if (authConfigCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig) + authConfig_); + } getUnknownFields().writeTo(output); } @@ -17070,6 +17973,14 @@ public int getSerializedSize() { (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.BearerTokenConfig) authConfig_); } + if (authConfigCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig) + authConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -17100,6 +18011,10 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getBearerTokenConfig().equals(other.getBearerTokenConfig())) return false; break; + case 5: + if (!getServiceAccountAuthConfig().equals(other.getServiceAccountAuthConfig())) + return false; + break; case 0: default: } @@ -17131,6 +18046,10 @@ public int hashCode() { hash = (37 * hash) + BEARER_TOKEN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getBearerTokenConfig().hashCode(); break; + case 5: + hash = (37 * hash) + SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountAuthConfig().hashCode(); + break; case 0: default: } @@ -17289,6 +18208,9 @@ public Builder clear() { if (bearerTokenConfigBuilder_ != null) { bearerTokenConfigBuilder_.clear(); } + if (serviceAccountAuthConfigBuilder_ != null) { + serviceAccountAuthConfigBuilder_.clear(); + } authConfigCase_ = 0; authConfig_ = null; return this; @@ -17348,6 +18270,9 @@ private void buildPartialOneofs( if (authConfigCase_ == 4 && bearerTokenConfigBuilder_ != null) { result.authConfig_ = bearerTokenConfigBuilder_.build(); } + if (authConfigCase_ == 5 && serviceAccountAuthConfigBuilder_ != null) { + result.authConfig_ = serviceAccountAuthConfigBuilder_.build(); + } } @java.lang.Override @@ -17420,6 +18345,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Tool.Authenticat mergeBearerTokenConfig(other.getBearerTokenConfig()); break; } + case SERVICE_ACCOUNT_AUTH_CONFIG: + { + mergeServiceAccountAuthConfig(other.getServiceAccountAuthConfig()); + break; + } case AUTHCONFIG_NOT_SET: { break; @@ -17477,6 +18407,13 @@ public Builder mergeFrom( authConfigCase_ = 4; break; } // case 34 + case 42: + { + input.readMessage( + getServiceAccountAuthConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -18548,6 +19485,276 @@ public Builder clearBearerTokenConfig() { return bearerTokenConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig, + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .Builder, + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfigOrBuilder> + serviceAccountAuthConfigBuilder_; + + /** + * + * + *
                                          +       * Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + * + * @return Whether the serviceAccountAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAccountAuthConfig() { + return authConfigCase_ == 5; + } + + /** + * + * + *
                                          +       * Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + * + * @return The serviceAccountAuthConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + getServiceAccountAuthConfig() { + if (serviceAccountAuthConfigBuilder_ == null) { + if (authConfigCase_ == 5) { + return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .getDefaultInstance(); + } else { + if (authConfigCase_ == 5) { + return serviceAccountAuthConfigBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + */ + public Builder setServiceAccountAuthConfig( + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + value) { + if (serviceAccountAuthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + serviceAccountAuthConfigBuilder_.setMessage(value); + } + authConfigCase_ = 5; + return this; + } + + /** + * + * + *
                                          +       * Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + */ + public Builder setServiceAccountAuthConfig( + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .Builder + builderForValue) { + if (serviceAccountAuthConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + serviceAccountAuthConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 5; + return this; + } + + /** + * + * + *
                                          +       * Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + */ + public Builder mergeServiceAccountAuthConfig( + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + value) { + if (serviceAccountAuthConfigBuilder_ == null) { + if (authConfigCase_ == 5 + && authConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig.getDefaultInstance()) { + authConfig_ = + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .newBuilder( + (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig) + authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 5) { + serviceAccountAuthConfigBuilder_.mergeFrom(value); + } else { + serviceAccountAuthConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 5; + return this; + } + + /** + * + * + *
                                          +       * Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + */ + public Builder clearServiceAccountAuthConfig() { + if (serviceAccountAuthConfigBuilder_ == null) { + if (authConfigCase_ == 5) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 5) { + authConfigCase_ = 0; + authConfig_ = null; + } + serviceAccountAuthConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .Builder + getServiceAccountAuthConfigBuilder() { + return getServiceAccountAuthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfigOrBuilder + getServiceAccountAuthConfigOrBuilder() { + if ((authConfigCase_ == 5) && (serviceAccountAuthConfigBuilder_ != null)) { + return serviceAccountAuthConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 5) { + return (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig service_account_auth_config = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig, + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .Builder, + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfigOrBuilder> + getServiceAccountAuthConfigFieldBuilder() { + if (serviceAccountAuthConfigBuilder_ == null) { + if (!(authConfigCase_ == 5)) { + authConfig_ = + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfig + .getDefaultInstance(); + } + serviceAccountAuthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig, + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfigOrBuilder>( + (com.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication + .ServiceAccountAuthConfig) + authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 5; + onChanged(); + return serviceAccountAuthConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java index 7a80acc00f33..63f115c24820 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java @@ -116,6 +116,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_BearerTokenConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_BearerTokenConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_TLSConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -236,7 +240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021DeleteToolRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036dialogflow.googleapis.com/Tool\022\r\n" - + "\005force\030\002 \001(\010\"\247\"\n" + + "\005force\030\002 \001(\010\"\332#\n" + "\004Tool\022\014\n" + "\004name\030\001 \001(\t\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" @@ -299,7 +303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006UPDATE\020\004\022\n" + "\n" + "\006DELETE\020\005B\r\n" - + "\013action_spec\032\223\014\n" + + "\013action_spec\032\306\r\n" + "\016Authentication\022^\n" + "\016api_key_config\030\001 \001(\0132D.google.cl" + "oud.dialogflow.cx.v3beta1.Tool.Authentication.ApiKeyConfigH\000\022[\n" @@ -308,17 +312,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031service_agent_auth_config\030\003 \001(\0132N.google.cl" + "oud.dialogflow.cx.v3beta1.Tool.Authentication.ServiceAgentAuthConfigH\000\022h\n" + "\023bearer_token_config\030\004 \001(\0132I.google.cloud.dialo" - + "gflow.cx.v3beta1.Tool.Authentication.BearerTokenConfigH\000\032\373\001\n" + + "gflow.cx.v3beta1.Tool.Authentication.BearerTokenConfigH\000\022w\n" + + "\033service_account_auth_config\030\005 \001(\0132P.google.cloud.dialogflow." + + "cx.v3beta1.Tool.Authentication.ServiceAccountAuthConfigH\000\032\373\001\n" + "\014ApiKeyConfig\022\025\n" + "\010key_name\030\001 \001(\tB\003\340A\002\022\024\n" + "\007api_key\030\002 \001(\tB\003\340A\001\022V\n" + "\032secret_version_for_api_key\030\004 \001(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022f\n" - + "\020request_location\030\003 \001(\0162G.googl" - + "e.cloud.dialogflow.cx.v3beta1.Tool.Authentication.RequestLocationB\003\340A\002\032\217\003\n" + + "\020request_location\030\003 \001(\0162G.goog" + + "le.cloud.dialogflow.cx.v3beta1.Tool.Authentication.RequestLocationB\003\340A\002\032\217\003\n" + "\013OAuthConfig\022q\n" - + "\020oauth_grant_type\030\001 \001(\0162R.google.cloud.dialogflow.cx.v3beta1.Tool.Authe" - + "ntication.OAuthConfig.OauthGrantTypeB\003\340A\002\022\026\n" + + "\020oauth_grant_type\030\001 \001(\0162R.google.cloud.dialogflow.cx.v3beta1.Tool.Auth" + + "entication.OAuthConfig.OauthGrantTypeB\003\340A\002\022\026\n" + "\tclient_id\030\002 \001(\tB\003\340A\002\022\032\n\r" + "client_secret\030\003 \001(\tB\003\340A\001\022\\\n" + " secret_version_for_client_secret\030\006 \001(\tB2\340A\001\372A,\n" @@ -329,8 +335,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034OAUTH_GRANT_TYPE_UNSPECIFIED\020\000\022\025\n" + "\021CLIENT_CREDENTIAL\020\001\032\363\001\n" + "\026ServiceAgentAuthConfig\022\200\001\n" - + "\022service_agent_auth\030\001 \001(\0162_.google.cloud.dialogflow.cx.v3" - + "beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuthB\003\340A\001\"V\n" + + "\022service_agent_auth\030\001 \001(\0162_.google.cloud.dialogflow.cx.v" + + "3beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuthB\003\340A\001\"V\n" + "\020ServiceAgentAuth\022\"\n" + "\036SERVICE_AGENT_AUTH_UNSPECIFIED\020\000\022\014\n" + "\010ID_TOKEN\020\001\022\020\n" @@ -338,15 +344,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021BearerTokenConfig\022\022\n" + "\005token\030\001 \001(\tB\003\340A\001\022T\n" + "\030secret_version_for_token\030\002 \001(\tB2\340A\001\372A,\n" - + "*secretmanager.googleapis.com/SecretVersion\"Q\n" + + "*secretmanager.googleapis.com/SecretVersion\0328\n" + + "\030ServiceAccountAuthConfig\022\034\n" + + "\017service_account\030\001 \001(\tB\003\340A\002\"Q\n" + "\017RequestLocation\022 \n" + "\034REQUEST_LOCATION_UNSPECIFIED\020\000\022\n\n" + "\006HEADER\020\001\022\020\n" + "\014QUERY_STRING\020\002B\r\n" + "\013auth_config\032\225\001\n" + "\tTLSConfig\022P\n" - + "\010ca_certs\030\001 \003(\01329.google.cloud.dialogflo" - + "w.cx.v3beta1.Tool.TLSConfig.CACertB\003\340A\002\0326\n" + + "\010ca_certs\030\001 \003(\01329.goo" + + "gle.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig.CACertB\003\340A\002\0326\n" + "\006CACert\022\031\n" + "\014display_name\030\001 \001(\tB\003\340A\002\022\021\n" + "\004cert\030\002 \001(\014B\003\340A\002\032Z\n" @@ -354,11 +362,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007service\030\001 \001(\tB/\340A\002\372A)\n" + "\'servicedirectory.googleapis.com/Service\032\244\003\n" + "\021EndUserAuthConfig\022r\n" - + "\027oauth2_auth_code_config\030\002 \001(\0132O.google.cloud.dialogflow.cx.v3beta1." - + "Tool.EndUserAuthConfig.Oauth2AuthCodeConfigH\000\022t\n" - + "\030oauth2_jwt_bearer_config\030\003 \001(\0132" - + "P.google.cloud.dialogflow.cx.v3beta1.Too" - + "l.EndUserAuthConfig.Oauth2JwtBearerConfigH\000\0320\n" + + "\027oauth2_auth_code_config\030\002 \001(\0132O.google.cloud.dia" + + "logflow.cx.v3beta1.Tool.EndUserAuthConfig.Oauth2AuthCodeConfigH\000\022t\n" + + "\030oauth2_jwt_bearer_config\030\003 \001(\0132P.google.cloud.dialog" + + "flow.cx.v3beta1.Tool.EndUserAuthConfig.Oauth2JwtBearerConfigH\000\0320\n" + "\024Oauth2AuthCodeConfig\022\030\n" + "\013oauth_token\030\001 \001(\tB\003\340A\002\032[\n" + "\025Oauth2JwtBearerConfig\022\023\n" @@ -370,23 +377,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025TOOL_TYPE_UNSPECIFIED\020\000\022\023\n" + "\017CUSTOMIZED_TOOL\020\001\022\020\n" + "\014BUILTIN_TOOL\020\002:h\352Ae\n" - + "\036dialogflow.googleapis.com" - + "/Tool\022Cprojects/{project}/locations/{location}/agents/{agent}/tools/{tool}B\017\n\r" + + "\036dialogflow.googleapis.com/Tool\022Cprojects/{proj" + + "ect}/locations/{location}/agents/{agent}/tools/{tool}B\017\n\r" + "specification\"\211\001\n" + "\027ListToolVersionsRequest\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\340A\002\372A\'\022%dialogflow.googleapis.com/ToolVersion\022\026\n" + + "\006parent\030\001 \001(\tB-\340A\002\372" + + "A\'\022%dialogflow.googleapis.com/ToolVersion\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\"{\n" + "\030ListToolVersionsResponse\022F\n\r" - + "tool_versions\030\001 \003" - + "(\0132/.google.cloud.dialogflow.cx.v3beta1.ToolVersion\022\027\n" + + "tool_versions\030\001" + + " \003(\0132/.google.cloud.dialogflow.cx.v3beta1.ToolVersion\022\027\n" + "\017next_page_token\030\002 \001(\t\"\245\001\n" + "\030CreateToolVersionRequest\022=\n" + "\006parent\030\001 \001(" + "\tB-\340A\002\372A\'\022%dialogflow.googleapis.com/ToolVersion\022J\n" - + "\014tool_version\030\002 \001(\0132/.google." - + "cloud.dialogflow.cx.v3beta1.ToolVersionB\003\340A\002\"T\n" + + "\014tool_version\030\002" + + " \001(\0132/.google.cloud.dialogflow.cx.v3beta1.ToolVersionB\003\340A\002\"T\n" + "\025GetToolVersionRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/ToolVersion\"k\n" @@ -407,61 +414,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\236\001\352A\232\001\n" - + "%dialogflow.googleapis.com/ToolVersion\022Vprojects/{project}/locatio" - + "ns/{location}/agents/{agent}/tools/{tool" - + "}/versions/{version}*\014toolVersions2\013toolVersion\"\025\n" + + "%dialogflow.googleapis.com/ToolVersion\022Vproject" + + "s/{project}/locations/{location}/agents/" + + "{agent}/tools/{tool}/versions/{version}*\014toolVersions2\013toolVersion\"\025\n" + "\023ExportToolsMetadata2\360\022\n" + "\005Tools\022\302\001\n\n" - + "CreateTool\0225.google.cloud.dialogflow.cx.v3beta1.CreateToolRequest\032(.google." - + "cloud.dialogflow.cx.v3beta1.Tool\"S\332A\013par" - + "ent,tool\202\323\344\223\002?\"7/v3beta1/{parent=project" - + "s/*/locations/*/agents/*}/tools:\004tool\022\302\001\n" - + "\tListTools\0224.google.cloud.dialogflow.cx.v3beta1.ListToolsRequest\0325.google.cloud" - + ".dialogflow.cx.v3beta1.ListToolsResponse" - + "\"H\332A\006parent\202\323\344\223\0029\0227/v3beta1/{parent=projects/*/locations/*/agents/*}/tools\022\334\001\n" - + "\013ExportTools\0226.google.cloud.dialogflow.cx." - + "v3beta1.ExportToolsRequest\032\035.google.longrunning.Operation\"v\312A*\n" - + "\023ExportToolsResponse\022\023ExportToolsMetadata\202\323\344\223\002C\">/v3beta1" - + "/{parent=projects/*/locations/*/agents/*}/tools:export:\001*\022\257\001\n" - + "\007GetTool\0222.google.cloud.dialogflow.cx.v3beta1.GetToolReques" - + "t\032(.google.cloud.dialogflow.cx.v3beta1.T" - + "ool\"F\332A\004name\202\323\344\223\0029\0227/v3beta1/{name=projects/*/locations/*/agents/*/tools/*}\022\314\001\n\n" - + "UpdateTool\0225.google.cloud.dialogflow.cx.v3beta1.UpdateToolRequest\032(.google.cloud" - + ".dialogflow.cx.v3beta1.Tool\"]\332A\020tool,upd" - + "ate_mask\202\323\344\223\002D2.google.cloud.dialogflow.cx.v" - + "3beta1.RestoreToolVersionResponse\"\\\332A\004na" - + "me\202\323\344\223\002O\"J/v3beta1/{name=projects/*/loca" - + "tions/*/agents/*/tools/*/versions/*}:res" - + "tore:\001*\032x\312A\031dialogflow.googleapis.com\322AY" - + "https://www.googleapis.com/auth/cloud-pl" - + "atform,https://www.googleapis.com/auth/dialogflowB\227\001\n" - + "&com.google.cloud.dialogflow.cx.v3beta1B\tToolProtoP\001Z6cloud.google." - + "com/go/dialogflow/cx/apiv3beta1/cxpb;cxp" - + "b\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Beta1b\006proto3" + + "CreateTool\0225.google.cloud.dialogflow.cx.v3beta1.CreateTo" + + "olRequest\032(.google.cloud.dialogflow.cx.v" + + "3beta1.Tool\"S\332A\013parent,tool\202\323\344\223\002?\"7/v3be" + + "ta1/{parent=projects/*/locations/*/agents/*}/tools:\004tool\022\302\001\n" + + "\tListTools\0224.google.cloud.dialogflow.cx.v3beta1.ListToolsReq" + + "uest\0325.google.cloud.dialogflow.cx.v3beta" + + "1.ListToolsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v" + + "3beta1/{parent=projects/*/locations/*/agents/*}/tools\022\334\001\n" + + "\013ExportTools\0226.google.cloud.dialogflow.cx.v3beta1.ExportToolsRe" + + "quest\032\035.google.longrunning.Operation\"v\312A*\n" + + "\023ExportToolsResponse\022\023ExportToolsMetad" + + "ata\202\323\344\223\002C\">/v3beta1/{parent=projects/*/locations/*/agents/*}/tools:export:\001*\022\257\001\n" + + "\007GetTool\0222.google.cloud.dialogflow.cx.v3" + + "beta1.GetToolRequest\032(.google.cloud.dial" + + "ogflow.cx.v3beta1.Tool\"F\332A\004name\202\323\344\223\0029\0227/" + + "v3beta1/{name=projects/*/locations/*/agents/*/tools/*}\022\314\001\n\n" + + "UpdateTool\0225.google.cloud.dialogflow.cx.v3beta1.UpdateToolReq" + + "uest\032(.google.cloud.dialogflow.cx.v3beta" + + "1.Tool\"]\332A\020tool,update_mask\202\323\344\223\002D2.google.cloud.dialogflow.cx.v3beta1.RestoreToolVer" + + "sionResponse\"\\\332A\004name\202\323\344\223\002O\"J/v3beta1/{n" + + "ame=projects/*/locations/*/agents/*/tool" + + "s/*/versions/*}:restore:\001*\032x\312A\031dialogflo" + + "w.googleapis.com\322AYhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\227\001\n" + + "&com.google.cloud.dialogflow.cx.v3beta1B\tToolPro" + + "toP\001Z6cloud.google.com/go/dialogflow/cx/" + + "apiv3beta1/cxpb;cxpb\242\002\002DF\252\002\"Google.Cloud" + + ".Dialogflow.Cx.V3Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -638,6 +646,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OauthConfig", "ServiceAgentAuthConfig", "BearerTokenConfig", + "ServiceAccountAuthConfig", "AuthConfig", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ApiKeyConfig_descriptor = @@ -685,6 +694,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Token", "SecretVersionForToken", }); + internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_Authentication_ServiceAccountAuthConfig_descriptor, + new java.lang.String[] { + "ServiceAccount", + }); internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_TLSConfig_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_descriptor.getNestedTypes().get(6); internal_static_google_cloud_dialogflow_cx_v3beta1_Tool_TLSConfig_fieldAccessorTable = diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java index 7b9e2625f308..a255da099185 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java @@ -111,7 +111,7 @@ public interface GenericWebServiceOrBuilder * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=211 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225 * @return The username. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface GenericWebServiceOrBuilder * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=211 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225 * @return The bytes for username. */ @java.lang.Deprecated @@ -143,7 +143,7 @@ public interface GenericWebServiceOrBuilder * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=214 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228 * @return The password. */ @java.lang.Deprecated @@ -159,7 +159,7 @@ public interface GenericWebServiceOrBuilder * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=214 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228 * @return The bytes for password. */ @java.lang.Deprecated @@ -532,6 +532,52 @@ java.lang.String getRequestHeadersOrDefault( com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAgentAuth getServiceAgentAuth(); + /** + * + * + *
                                          +     * Optional. Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAccountAuthConfig field is set. + */ + boolean hasServiceAccountAuthConfig(); + + /** + * + * + *
                                          +     * Optional. Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAccountAuthConfig. + */ + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig + getServiceAccountAuthConfig(); + + /** + * + * + *
                                          +     * Optional. Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfigOrBuilder + getServiceAccountAuthConfigOrBuilder(); + /** * * @@ -3861,18 +3907,809 @@ public final Builder mergeUnknownFields( static { DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig(); + new com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuthConfig 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.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ServiceAccountAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Required. The email address of the service account used to authenticate
                                          +       * the webhook call. Dialogflow uses this service account to exchange an
                                          +       * access token and the access token is then sent in the `Authorization`
                                          +       * header of the webhook request.
                                          +       *
                                          +       * The service account must have the
                                          +       * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +       * [Dialogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
                                          +       * Required. The email address of the service account used to authenticate
                                          +       * the webhook call. Dialogflow uses this service account to exchange an
                                          +       * access token and the access token is then sent in the `Authorization`
                                          +       * header of the webhook request.
                                          +       *
                                          +       * The service account must have the
                                          +       * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +       * [Dialogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + } + + /** + * + * + *
                                          +     * Configuration for authentication using a service account.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig} + */ + public static final class ServiceAccountAuthConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig) + ServiceAccountAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ServiceAccountAuthConfig.newBuilder() to construct. + private ServiceAccountAuthConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceAccountAuthConfig() { + serviceAccount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceAccountAuthConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.class, + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.Builder.class); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
                                          +       * Required. The email address of the service account used to authenticate
                                          +       * the webhook call. Dialogflow uses this service account to exchange an
                                          +       * access token and the access token is then sent in the `Authorization`
                                          +       * header of the webhook request.
                                          +       *
                                          +       * The service account must have the
                                          +       * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +       * [Dialogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + 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(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Required. The email address of the service account used to authenticate
                                          +       * the webhook call. Dialogflow uses this service account to exchange an
                                          +       * access token and the access token is then sent in the `Authorization`
                                          +       * header of the webhook request.
                                          +       *
                                          +       * The service account must have the
                                          +       * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +       * [Dialogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = 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.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccount_); + } + 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.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig + other = + (com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig) + obj; + + if (!getServiceAccount().equals(other.getServiceAccount())) 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) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + 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.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + 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.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * Configuration for authentication using a service account.
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig) + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.class, + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.WebhookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + build() { + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig + result = + new com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.getDefaultInstance()) return this; + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + 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: + { + serviceAccount_ = 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 serviceAccount_ = ""; + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the webhook call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the webhook request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the webhook call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the webhook request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the webhook call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the webhook request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the webhook call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the webhook request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The email address of the service account used to authenticate
                                          +         * the webhook call. Dialogflow uses this service account to exchange an
                                          +         * access token and the access token is then sent in the `Authorization`
                                          +         * header of the webhook request.
                                          +         *
                                          +         * The service account must have the
                                          +         * `roles/iam.serviceAccountTokenCreator` role granted to the
                                          +         * [Dialogflow service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * 
                                          + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig) + private static final com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig(); } - public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig + public static com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public OAuthConfig parsePartialFrom( + public ServiceAccountAuthConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3892,17 +4729,18 @@ public OAuthConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig + public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3979,7 +4817,7 @@ public com.google.protobuf.ByteString getUriBytes() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=211 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225 * @return The username. */ @java.lang.Override @@ -4006,7 +4844,7 @@ public java.lang.String getUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=211 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225 * @return The bytes for username. */ @java.lang.Override @@ -4038,7 +4876,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=214 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228 * @return The password. */ @java.lang.Override @@ -4065,7 +4903,7 @@ public java.lang.String getPassword() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=214 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228 * @return The bytes for password. */ @java.lang.Override @@ -4634,6 +5472,72 @@ public int getServiceAgentAuthValue() { : result; } + public static final int SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER = 18; + private com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + serviceAccountAuthConfig_; + + /** + * + * + *
                                          +     * Optional. Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAccountAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAccountAuthConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Optional. Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAccountAuthConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig + getServiceAccountAuthConfig() { + return serviceAccountAuthConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.getDefaultInstance() + : serviceAccountAuthConfig_; + } + + /** + * + * + *
                                          +     * Optional. Configuration for service account authentication.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfigOrBuilder + getServiceAccountAuthConfigOrBuilder() { + return serviceAccountAuthConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.getDefaultInstance() + : serviceAccountAuthConfig_; + } + public static final int WEBHOOK_TYPE_FIELD_NUMBER = 6; private int webhookType_ = 0; @@ -4970,6 +5874,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(12, serviceAgentAuth_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(18, getServiceAccountAuthConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( secretVersionForUsernamePassword_)) { com.google.protobuf.GeneratedMessageV3.writeString( @@ -5051,6 +5958,11 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, serviceAgentAuth_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, getServiceAccountAuthConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( secretVersionForUsernamePassword_)) { size += @@ -5106,6 +6018,11 @@ public boolean equals(final java.lang.Object obj) { if (!getOauthConfig().equals(other.getOauthConfig())) return false; } if (serviceAgentAuth_ != other.serviceAgentAuth_) return false; + if (hasServiceAccountAuthConfig() != other.hasServiceAccountAuthConfig()) return false; + if (hasServiceAccountAuthConfig()) { + if (!getServiceAccountAuthConfig().equals(other.getServiceAccountAuthConfig())) + return false; + } if (webhookType_ != other.webhookType_) return false; if (httpMethod_ != other.httpMethod_) return false; if (!getRequestBody().equals(other.getRequestBody())) return false; @@ -5147,6 +6064,10 @@ public int hashCode() { } hash = (37 * hash) + SERVICE_AGENT_AUTH_FIELD_NUMBER; hash = (53 * hash) + serviceAgentAuth_; + if (hasServiceAccountAuthConfig()) { + hash = (37 * hash) + SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountAuthConfig().hashCode(); + } hash = (37 * hash) + WEBHOOK_TYPE_FIELD_NUMBER; hash = (53 * hash) + webhookType_; hash = (37 * hash) + HTTP_METHOD_FIELD_NUMBER; @@ -5334,6 +6255,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOauthConfigFieldBuilder(); + getServiceAccountAuthConfigFieldBuilder(); } } @@ -5354,6 +6276,11 @@ public Builder clear() { oauthConfigBuilder_ = null; } serviceAgentAuth_ = 0; + serviceAccountAuthConfig_ = null; + if (serviceAccountAuthConfigBuilder_ != null) { + serviceAccountAuthConfigBuilder_.dispose(); + serviceAccountAuthConfigBuilder_ = null; + } webhookType_ = 0; httpMethod_ = 0; requestBody_ = ""; @@ -5432,15 +6359,22 @@ private void buildPartial0( result.serviceAgentAuth_ = serviceAgentAuth_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.webhookType_ = webhookType_; + result.serviceAccountAuthConfig_ = + serviceAccountAuthConfigBuilder_ == null + ? serviceAccountAuthConfig_ + : serviceAccountAuthConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.httpMethod_ = httpMethod_; + result.webhookType_ = webhookType_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.requestBody_ = requestBody_; + result.httpMethod_ = httpMethod_; } if (((from_bitField0_ & 0x00001000) != 0)) { + result.requestBody_ = requestBody_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.parameterMapping_ = internalGetParameterMapping(); result.parameterMapping_.makeImmutable(); } @@ -5540,6 +6474,9 @@ public Builder mergeFrom( if (other.serviceAgentAuth_ != 0) { setServiceAgentAuthValue(other.getServiceAgentAuthValue()); } + if (other.hasServiceAccountAuthConfig()) { + mergeServiceAccountAuthConfig(other.getServiceAccountAuthConfig()); + } if (other.webhookType_ != 0) { setWebhookTypeValue(other.getWebhookTypeValue()); } @@ -5548,11 +6485,11 @@ public Builder mergeFrom( } if (!other.getRequestBody().isEmpty()) { requestBody_ = other.requestBody_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } internalGetMutableParameterMapping().mergeFrom(other.internalGetParameterMapping()); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5620,19 +6557,19 @@ public Builder mergeFrom( case 48: { webhookType_ = input.readEnum(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 48 case 56: { httpMethod_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 56 case 66: { requestBody_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 66 case 74: @@ -5645,7 +6582,7 @@ public Builder mergeFrom( internalGetMutableParameterMapping() .getMutableMap() .put(parameterMapping__.getKey(), parameterMapping__.getValue()); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 74 case 90: @@ -5660,6 +6597,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 96 + case 146: + { + input.readMessage( + getServiceAccountAuthConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 146 case 154: { secretVersionForUsernamePassword_ = input.readStringRequireUtf8(); @@ -5832,7 +6776,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=211 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225 * @return The username. */ @java.lang.Deprecated @@ -5858,7 +6802,7 @@ public java.lang.String getUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=211 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225 * @return The bytes for username. */ @java.lang.Deprecated @@ -5884,7 +6828,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=211 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225 * @param value The username to set. * @return This builder for chaining. */ @@ -5909,7 +6853,7 @@ public Builder setUsername(java.lang.String value) { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=211 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5930,7 +6874,7 @@ public Builder clearUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=211 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225 * @param value The bytes for username to set. * @return This builder for chaining. */ @@ -5958,7 +6902,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=214 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228 * @return The password. */ @java.lang.Deprecated @@ -5984,7 +6928,7 @@ public java.lang.String getPassword() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=214 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228 * @return The bytes for password. */ @java.lang.Deprecated @@ -6010,7 +6954,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=214 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228 * @param value The password to set. * @return This builder for chaining. */ @@ -6035,7 +6979,7 @@ public Builder setPassword(java.lang.String value) { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=214 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228 * @return This builder for chaining. */ @java.lang.Deprecated @@ -6056,7 +7000,7 @@ public Builder clearPassword() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=214 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228 * @param value The bytes for password to set. * @return This builder for chaining. */ @@ -7352,6 +8296,246 @@ public Builder clearServiceAgentAuth() { return this; } + private com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + serviceAccountAuthConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig, + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfigOrBuilder> + serviceAccountAuthConfigBuilder_; + + /** + * + * + *
                                          +       * Optional. Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAccountAuthConfig field is set. + */ + public boolean hasServiceAccountAuthConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                                          +       * Optional. Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAccountAuthConfig. + */ + public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig + getServiceAccountAuthConfig() { + if (serviceAccountAuthConfigBuilder_ == null) { + return serviceAccountAuthConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.getDefaultInstance() + : serviceAccountAuthConfig_; + } else { + return serviceAccountAuthConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceAccountAuthConfig( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig + value) { + if (serviceAccountAuthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountAuthConfig_ = value; + } else { + serviceAccountAuthConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceAccountAuthConfig( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig + .Builder + builderForValue) { + if (serviceAccountAuthConfigBuilder_ == null) { + serviceAccountAuthConfig_ = builderForValue.build(); + } else { + serviceAccountAuthConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceAccountAuthConfig( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig + value) { + if (serviceAccountAuthConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && serviceAccountAuthConfig_ != null + && serviceAccountAuthConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.getDefaultInstance()) { + getServiceAccountAuthConfigBuilder().mergeFrom(value); + } else { + serviceAccountAuthConfig_ = value; + } + } else { + serviceAccountAuthConfigBuilder_.mergeFrom(value); + } + if (serviceAccountAuthConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceAccountAuthConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + serviceAccountAuthConfig_ = null; + if (serviceAccountAuthConfigBuilder_ != null) { + serviceAccountAuthConfigBuilder_.dispose(); + serviceAccountAuthConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.Builder + getServiceAccountAuthConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getServiceAccountAuthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfigOrBuilder + getServiceAccountAuthConfigOrBuilder() { + if (serviceAccountAuthConfigBuilder_ != null) { + return serviceAccountAuthConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceAccountAuthConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.getDefaultInstance() + : serviceAccountAuthConfig_; + } + } + + /** + * + * + *
                                          +       * Optional. Configuration for service account authentication.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig, + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfigOrBuilder> + getServiceAccountAuthConfigFieldBuilder() { + if (serviceAccountAuthConfigBuilder_ == null) { + serviceAccountAuthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig, + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .ServiceAccountAuthConfigOrBuilder>( + getServiceAccountAuthConfig(), getParentForChildren(), isClean()); + serviceAccountAuthConfig_ = null; + } + return serviceAccountAuthConfigBuilder_; + } + private int webhookType_ = 0; /** @@ -7388,7 +8572,7 @@ public int getWebhookTypeValue() { */ public Builder setWebhookTypeValue(int value) { webhookType_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -7437,7 +8621,7 @@ public Builder setWebhookType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; webhookType_ = value.getNumber(); onChanged(); return this; @@ -7457,7 +8641,7 @@ public Builder setWebhookType( * @return This builder for chaining. */ public Builder clearWebhookType() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); webhookType_ = 0; onChanged(); return this; @@ -7501,7 +8685,7 @@ public int getHttpMethodValue() { */ public Builder setHttpMethodValue(int value) { httpMethod_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -7552,7 +8736,7 @@ public Builder setHttpMethod( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; httpMethod_ = value.getNumber(); onChanged(); return this; @@ -7573,7 +8757,7 @@ public Builder setHttpMethod( * @return This builder for chaining. */ public Builder clearHttpMethod() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); httpMethod_ = 0; onChanged(); return this; @@ -7647,7 +8831,7 @@ public Builder setRequestBody(java.lang.String value) { throw new NullPointerException(); } requestBody_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7666,7 +8850,7 @@ public Builder setRequestBody(java.lang.String value) { */ public Builder clearRequestBody() { requestBody_ = getDefaultInstance().getRequestBody(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -7690,7 +8874,7 @@ public Builder setRequestBodyBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); requestBody_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7716,7 +8900,7 @@ public Builder setRequestBodyBytes(com.google.protobuf.ByteString value) { if (!parameterMapping_.isMutable()) { parameterMapping_ = parameterMapping_.copy(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return parameterMapping_; } @@ -7828,7 +9012,7 @@ public java.lang.String getParameterMappingOrThrow(java.lang.String key) { } public Builder clearParameterMapping() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); internalGetMutableParameterMapping().getMutableMap().clear(); return this; } @@ -7858,7 +9042,7 @@ public Builder removeParameterMapping(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParameterMapping() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return internalGetMutableParameterMapping().getMutableMap(); } @@ -7884,7 +9068,7 @@ public Builder putParameterMapping(java.lang.String key, java.lang.String value) throw new NullPointerException("map value"); } internalGetMutableParameterMapping().getMutableMap().put(key, value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return this; } @@ -7905,7 +9089,7 @@ public Builder putParameterMapping(java.lang.String key, java.lang.String value) public Builder putAllParameterMapping( java.util.Map values) { internalGetMutableParameterMapping().getMutableMap().putAll(values); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java index 8ef9b1806982..bfc2d21d9b90 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_OAuthConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_OAuthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_RequestHeadersEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -157,7 +161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\0329google/cloud/dialogflow/cx/v3beta1/re" + "sponse_message.proto\032\036google/protobuf/du" + "ration.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\034google/protobuf/struct.proto\"\334\023\n" + + " google/protobuf/field_mask.proto\032\034google/protobuf/struct.proto\"\231\025\n" + "\007Webhook\022\014\n" + "\004name\030\001 \001(\t\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\\\n" @@ -166,7 +170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021service_directory\030\007 \001(\0132" + "B.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfigH\000\022*\n" + "\007timeout\030\006 \001(\0132\031.google.protobuf.Duration\022\020\n" - + "\010disabled\030\005 \001(\010\032\363\016\n" + + "\010disabled\030\005 \001(\010\032\260\020\n" + "\021GenericWebService\022\020\n" + "\003uri\030\001 \001(\tB\003\340A\002\022\024\n" + "\010username\030\002 \001(\tB\002\030\001\022\024\n" @@ -182,14 +186,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014oauth_config\030\013 \001(\0132I.google.cloud" + ".dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfigB\003\340A\001\022o\n" + "\022service_agent_auth\030\014 \001(\0162N.google.cloud.dialogflow." - + "cx.v3beta1.Webhook.GenericWebService.ServiceAgentAuthB\003\340A\001\022d\n" - + "\014webhook_type\030\006 \001(\0162I.google.cloud.dialogflow.cx.v3beta1.We" - + "bhook.GenericWebService.WebhookTypeB\003\340A\001\022b\n" - + "\013http_method\030\007 \001(\0162H.google.cloud.dia" - + "logflow.cx.v3beta1.Webhook.GenericWebService.HttpMethodB\003\340A\001\022\031\n" + + "cx.v3beta1.Webhook.GenericWebService.ServiceAgentAuthB\003\340A\001\022\200\001\n" + + "\033service_account_auth_config\030\022 \001(\0132V.google.cloud.dialogfl" + + "ow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfigB\003\340A\001\022d\n" + + "\014webhook_type\030\006 \001(\0162I.google.cloud.dialogflow.cx" + + ".v3beta1.Webhook.GenericWebService.WebhookTypeB\003\340A\001\022b\n" + + "\013http_method\030\007 \001(\0162H.googl" + + "e.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.HttpMethodB\003\340A\001\022\031\n" + "\014request_body\030\010 \001(\tB\003\340A\001\022s\n" - + "\021parameter_mapping\030\t \003(\0132S.google.cloud.dialogflow.cx.v3beta1.Webhook." - + "GenericWebService.ParameterMappingEntryB\003\340A\001\032f\n" + + "\021parameter_mapping\030\t \003(\0132S.google.cloud.dialogflow.cx.v3bet" + + "a1.Webhook.GenericWebService.ParameterMappingEntryB\003\340A\001\032f\n" + "\030SecretVersionHeaderValue\022J\n" + "\016secret_version\030\001 \001(\tB2\340A\002\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\032\321\001\n" @@ -199,14 +205,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " secret_version_for_client_secret\030\005 \001(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022\033\n" + "\016token_endpoint\030\003 \001(\tB\003\340A\002\022\023\n" - + "\006scopes\030\004 \003(\tB\003\340A\001\0325\n" + + "\006scopes\030\004 \003(\tB\003\340A\001\0328\n" + + "\030ServiceAccountAuthConfig\022\034\n" + + "\017service_account\030\001 \001(\tB\003\340A\002\0325\n" + "\023RequestHeadersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032\236\001\n" + "$SecretVersionsForRequestHeadersEntry\022\013\n" + "\003key\030\001 \001(\t\022e\n" - + "\005value\030\002 \001(\0132V.google.cloud.dialogflow.cx.v3beta" - + "1.Webhook.GenericWebService.SecretVersionHeaderValue:\0028\001\0327\n" + + "\005value\030\002 \001(\0132V.google.cloud.dialogflow.cx.v3beta1.Webhook.G" + + "enericWebService.SecretVersionHeaderValue:\0028\001\0327\n" + "\025ParameterMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"`\n" @@ -231,10 +239,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ServiceDirectoryConfig\022@\n" + "\007service\030\001 \001(\tB/\340A\002\372A)\n" + "\'servicedirectory.googleapis.com/Service\022Z\n" - + "\023generic_web_service\030\002 " - + "\001(\0132=.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService:q\352An\n" - + "!dialogflow.googleapis.com/Webhook\022Iprojects/{pr" - + "oject}/locations/{location}/agents/{agent}/webhooks/{webhook}B\t\n" + + "\023generic_web_service\030\002 \001(\0132=.googl" + + "e.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService:q\352An\n" + + "!dialogflow.googleapis.com/Webhook\022Iprojects/{project}/loca" + + "tions/{location}/agents/{agent}/webhooks/{webhook}B\t\n" + "\007webhook\"w\n" + "\023ListWebhooksRequest\0229\n" + "\006parent\030\001 \001(" @@ -250,8 +258,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CreateWebhookRequest\0229\n" + "\006parent\030\001 \001(" + "\tB)\340A\002\372A#\022!dialogflow.googleapis.com/Webhook\022A\n" - + "\007webhook\030\002" - + " \001(\0132+.google.cloud.dialogflow.cx.v3beta1.WebhookB\003\340A\002\"\212\001\n" + + "\007webhook\030\002 \001(\0132+.goog" + + "le.cloud.dialogflow.cx.v3beta1.WebhookB\003\340A\002\"\212\001\n" + "\024UpdateWebhookRequest\022A\n" + "\007webhook\030\001" + " \001(\0132+.google.cloud.dialogflow.cx.v3beta1.WebhookB\003\340A\002\022/\n" @@ -266,47 +274,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tH\000\022?\n" + "\016trigger_intent\030\013 \001(\tB%\372A\"\n" + " dialogflow.googleapis.com/IntentH\000\022\024\n\n" - + "transcript\030\014 \001(\tH\000\022\027\n\r" + + "transcript\030\014 \001(\tH\000\022\027\n" + + "\r" + "trigger_event\030\016 \001(\tH\000\022\025\n" + "\013dtmf_digits\030\021 \001(\tH\000\022\025\n\r" + "language_code\030\017 \001(\t\022\\\n" - + "\020fulfillment_info\030\006 \001(\0132B.google.cloud" - + ".dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo\022R\n" - + "\013intent_info\030\003 \001(\0132=.goo" - + "gle.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo\022?\n" + + "\020fulfillment_info\030\006 \001(\0132B.google.cloud.dialogflow" + + ".cx.v3beta1.WebhookRequest.FulfillmentInfo\022R\n" + + "\013intent_info\030\003 \001(\0132=.google.cloud.d" + + "ialogflow.cx.v3beta1.WebhookRequest.IntentInfo\022?\n" + "\tpage_info\030\004 \001(\0132,.google.cloud.dialogflow.cx.v3beta1.PageInfo\022E\n" + "\014session_info\030\005" + " \001(\0132/.google.cloud.dialogflow.cx.v3beta1.SessionInfo\022E\n" - + "\010messages\030\007" - + " \003(\01323.google.cloud.dialogflow.cx.v3beta1.ResponseMessage\022(\n" + + "\010messages\030\007 \003(\013" + + "23.google.cloud.dialogflow.cx.v3beta1.ResponseMessage\022(\n" + "\007payload\030\010 \001(\0132\027.google.protobuf.Struct\022m\n" - + "\031sentiment_analysis_result\030\t \001(\0132J.google.cloud.dia" - + "logflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult\022G\n\r" - + "language_info\030\022 \001(\013" - + "20.google.cloud.dialogflow.cx.v3beta1.LanguageInfo\032\036\n" + + "\031sentiment_analysis_result\030\t \001(\0132J.google.cloud.dialogflow.cx." + + "v3beta1.WebhookRequest.SentimentAnalysisResult\022G\n\r" + + "language_info\030\022 \001(\01320.google.c" + + "loud.dialogflow.cx.v3beta1.LanguageInfo\032\036\n" + "\017FulfillmentInfo\022\013\n" + "\003tag\030\001 \001(\t\032\305\003\n\n" + "IntentInfo\022B\n" + "\023last_matched_intent\030\001 \001(\tB%\372A\"\n" + " dialogflow.googleapis.com/Intent\022\024\n" + "\014display_name\030\003 \001(\t\022a\n\n" - + "parameters\030\002 \003(\0132M.google.cloud.dialogflow.cx.v3b" - + "eta1.WebhookRequest.IntentInfo.ParametersEntry\022\022\n\n" + + "parameters\030\002 \003(\0132M.g" + + "oogle.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.ParametersEntry\022\022\n\n" + "confidence\030\004 \001(\002\032^\n" + "\024IntentParameterValue\022\026\n" + "\016original_value\030\001 \001(\t\022.\n" + "\016resolved_value\030\002 \001(\0132\026.google.protobuf.Value\032\205\001\n" + "\017ParametersEntry\022\013\n" + "\003key\030\001 \001(\t\022a\n" - + "\005value\030\002 \001(\0132R.google.cloud.dialogflow.cx." - + "v3beta1.WebhookRequest.IntentInfo.IntentParameterValue:\0028\001\032;\n" + + "\005value\030\002 \001(\0132R.google.cloud.dialogflow.cx.v3beta1.Web" + + "hookRequest.IntentInfo.IntentParameterValue:\0028\001\032;\n" + "\027SentimentAnalysisResult\022\r\n" + "\005score\030\001 \001(\002\022\021\n" + "\tmagnitude\030\002 \001(\002B\007\n" + "\005query\"\310\005\n" + "\017WebhookResponse\022e\n" - + "\024fulfillment_response\030\001 \001(\0132G.google.cloud.dialog" - + "flow.cx.v3beta1.WebhookResponse.FulfillmentResponse\022?\n" + + "\024fulfillment_response\030\001 \001(\0132G.google.cloud.dialogflow.cx.v3b" + + "eta1.WebhookResponse.FulfillmentResponse\022?\n" + "\tpage_info\030\002 \001(\0132,.google.cloud.dialogflow.cx.v3beta1.PageInfo\022E\n" + "\014session_info\030\003" + " \001(\0132/.google.cloud.dialogflow.cx.v3beta1.SessionInfo\022(\n" @@ -316,10 +325,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013target_flow\030\006 \001(\tB#\372A \n" + "\036dialogflow.googleapis.com/FlowH\000\032\225\002\n" + "\023FulfillmentResponse\022E\n" - + "\010messages\030\001 \003(\01323.google" - + ".cloud.dialogflow.cx.v3beta1.ResponseMessage\022m\n" - + "\016merge_behavior\030\002 \001(\0162U.google.cl" - + "oud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior\"H\n\r" + + "\010messages\030\001" + + " \003(\01323.google.cloud.dialogflow.cx.v3beta1.ResponseMessage\022m\n" + + "\016merge_behavior\030\002 \001(\0162U.google.cloud.dialogf" + + "low.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior\"H\n\r" + "MergeBehavior\022\036\n" + "\032MERGE_BEHAVIOR_UNSPECIFIED\020\000\022\n\n" + "\006APPEND\020\001\022\013\n" @@ -329,16 +338,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014current_page\030\001 \001(\tB#\372A \n" + "\036dialogflow.googleapis.com/Page\022\024\n" + "\014display_name\030\004 \001(\t\022H\n" - + "\tform_info\030\003 \001(\01325.g" - + "oogle.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo\032\232\003\n" + + "\tform_info\030\003 \001(\01325.google.cloud" + + ".dialogflow.cx.v3beta1.PageInfo.FormInfo\032\232\003\n" + "\010FormInfo\022[\n" - + "\016parameter_info\030\002 \003(\0132C.google.cloud.dialogflow.cx.v3" - + "beta1.PageInfo.FormInfo.ParameterInfo\032\260\002\n\r" + + "\016parameter_info\030\002 \003(\0132C." + + "google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo\032\260\002\n\r" + "ParameterInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\020\n" + "\010required\030\002 \001(\010\022a\n" - + "\005state\030\003 \001(\0162R.google." - + "cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState\022%\n" + + "\005state\030\003 \001(\0162R.google.cloud.dialo" + + "gflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState\022%\n" + "\005value\030\004 \001(\0132\026.google.protobuf.Value\022\026\n" + "\016just_collected\030\005 \001(\010\"U\n" + "\016ParameterState\022\037\n" @@ -349,8 +358,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013SessionInfo\0227\n" + "\007session\030\001 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Session\022S\n\n" - + "parameters\030\002 \003(\0132?." - + "google.cloud.dialogflow.cx.v3beta1.SessionInfo.ParametersEntry\032I\n" + + "parameters\030\002 \003(\0132?.google.clou" + + "d.dialogflow.cx.v3beta1.SessionInfo.ParametersEntry\032I\n" + "\017ParametersEntry\022\013\n" + "\003key\030\001 \001(\t\022%\n" + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"e\n" @@ -359,36 +368,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026resolved_language_code\030\002 \001(\t\022\030\n" + "\020confidence_score\030\003 \001(\0022\375\010\n" + "\010Webhooks\022\316\001\n" - + "\014ListWebhooks\0227.google.cloud.dialogflow.cx.v3beta1.ListWebhooks" - + "Request\0328.google.cloud.dialogflow.cx.v3b" - + "eta1.ListWebhooksResponse\"K\332A\006parent\202\323\344\223" - + "\002<\022:/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks\022\273\001\n\n" - + "GetWebhook\0225.google.cloud.dialogflow.cx.v3beta1.GetWe" + + "\014ListWebhooks\0227.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest\0328.g" + + "oogle.cloud.dialogflow.cx.v3beta1.ListWe" + + "bhooksResponse\"K\332A\006parent\202\323\344\223\002<\022:/v3beta" + + "1/{parent=projects/*/locations/*/agents/*}/webhooks\022\273\001\n\n" + + "GetWebhook\0225.google.cloud.dialogflow.cx.v3beta1.GetWebhookReques" + + "t\032+.google.cloud.dialogflow.cx.v3beta1.W" + + "ebhook\"I\332A\004name\202\323\344\223\002<\022:/v3beta1/{name=pr" + + "ojects/*/locations/*/agents/*/webhooks/*}\022\324\001\n\r" + + "CreateWebhook\0228.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest\032+." + + "google.cloud.dialogflow.cx.v3beta1.Webho" + + "ok\"\\\332A\016parent,webhook\202\323\344\223\002E\":/v3beta1/{p" + + "arent=projects/*/locations/*/agents/*}/webhooks:\007webhook\022\341\001\n\r" + + "UpdateWebhook\0228.google.cloud.dialogflow.cx.v3beta1.UpdateWe" + "bhookRequest\032+.google.cloud.dialogflow.c" - + "x.v3beta1.Webhook\"I\332A\004name\202\323\344\223\002<\022:/v3bet" - + "a1/{name=projects/*/locations/*/agents/*/webhooks/*}\022\324\001\n\r" - + "CreateWebhook\0228.google.cloud.dialogflow.cx.v3beta1.CreateWebhoo" - + "kRequest\032+.google.cloud.dialogflow.cx.v3" - + "beta1.Webhook\"\\\332A\016parent,webhook\202\323\344\223\002E\":" - + "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks:\007webhook\022\341\001\n\r" - + "UpdateWebhook\0228.google.cloud.dialogflow.cx.v3bet" - + "a1.UpdateWebhookRequest\032+.google.cloud.d" - + "ialogflow.cx.v3beta1.Webhook\"i\332A\023webhook" - + ",update_mask\202\323\344\223\002M2B/v3beta1/{webhook.na" - + "me=projects/*/locations/*/agents/*/webhooks/*}:\007webhook\022\254\001\n\r" - + "DeleteWebhook\0228.google.cloud.dialogflow.cx.v3beta1.DeleteWeb" - + "hookRequest\032\026.google.protobuf.Empty\"I\332A\004" - + "name\202\323\344\223\002<*:/v3beta1/{name=projects/*/lo" - + "cations/*/agents/*/webhooks/*}\032x\312A\031dialo" - + "gflow.googleapis.com\322AYhttps://www.googl" - + "eapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\302\002\n" - + "&com.google.cloud.dialogflow.cx.v3beta1B\014Web" - + "hookProtoP\001Z6cloud.google.com/go/dialogf" - + "low/cx/apiv3beta1/cxpb;cxpb\242\002\002DF\252\002\"Googl" - + "e.Cloud.Dialogflow.Cx.V3Beta1\352\002&Google::Cloud::Dialogflow::CX::V3beta1\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qproj" - + "ects/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\006p" - + "roto3" + + "x.v3beta1.Webhook\"i\332A\023webhook,update_mas" + + "k\202\323\344\223\002M2B/v3beta1/{webhook.name=projects" + + "/*/locations/*/agents/*/webhooks/*}:\007webhook\022\254\001\n\r" + + "DeleteWebhook\0228.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest" + + "\032\026.google.protobuf.Empty\"I\332A\004name\202\323\344\223\002<*" + + ":/v3beta1/{name=projects/*/locations/*/a" + + "gents/*/webhooks/*}\032x\312A\031dialogflow.googl" + + "eapis.com\322AYhttps://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\302\002\n" + + "&com.google.cloud.dialogflow.cx.v3beta1B\014WebhookProtoP\001" + + "Z6cloud.google.com/go/dialogflow/cx/apiv" + + "3beta1/cxpb;cxpb\242\002\002DF\252\002\"Google.Cloud.Dia" + + "logflow.Cx.V3Beta1\352\002&Google::Cloud::Dialogflow::CX::V3beta1\352A|\n" + + "\'servicedirectory.googleapis.com/Service\022Qprojects/{proje" + + "ct}/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -435,6 +443,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AllowedCaCerts", "OauthConfig", "ServiceAgentAuth", + "ServiceAccountAuthConfig", "WebhookType", "HttpMethod", "RequestBody", @@ -460,10 +469,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ClientId", "ClientSecret", "SecretVersionForClientSecret", "TokenEndpoint", "Scopes", }); - internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_RequestHeadersEntry_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_descriptor .getNestedTypes() .get(2); + internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ServiceAccountAuthConfig_descriptor, + new java.lang.String[] { + "ServiceAccount", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_RequestHeadersEntry_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_RequestHeadersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_RequestHeadersEntry_descriptor, @@ -473,7 +492,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_SecretVersionsForRequestHeadersEntry_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_descriptor .getNestedTypes() - .get(3); + .get(4); internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_SecretVersionsForRequestHeadersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_SecretVersionsForRequestHeadersEntry_descriptor, @@ -483,7 +502,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ParameterMappingEntry_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_descriptor .getNestedTypes() - .get(4); + .get(5); internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ParameterMappingEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_ParameterMappingEntry_descriptor, diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/code_block.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/code_block.proto new file mode 100644 index 000000000000..3c66595cfd95 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/code_block.proto @@ -0,0 +1,32 @@ +// Copyright 2025 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.dialogflow.cx.v3beta1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb"; +option java_multiple_files = true; +option java_outer_classname = "CodeBlockProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; + +// Represents a code block. +message CodeBlock { + // Optional. Source code of the block in Python. + string code = 1 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/playbook.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/playbook.proto index e3bbfaf1ed3f..6495357e12e5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/playbook.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/playbook.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; +import "google/cloud/dialogflow/cx/v3beta1/code_block.proto"; import "google/cloud/dialogflow/cx/v3beta1/example.proto"; import "google/cloud/dialogflow/cx/v3beta1/fulfillment.proto"; import "google/cloud/dialogflow/cx/v3beta1/generative_settings.proto"; @@ -363,6 +364,19 @@ message Playbook { (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Tool" } ]; + // Optional. Output only. Names of inline actions scoped to this playbook. + // These actions are in addition to those belonging to referenced tools, child + // playbooks, and flows, e.g. actions that are defined in the playbook's code + // block. + repeated string inline_actions = 22 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. The playbook's scoped code block, which may implement handlers + // and actions. + CodeBlock code_block = 21 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Llm model settings for the playbook. LlmModelSettings llm_model_settings = 14 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto index 0faea81509f4..9e84a34bffc8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto @@ -591,6 +591,20 @@ message Tool { ]; } + // Configuration for authentication using a service account. + message ServiceAccountAuthConfig { + // Required. The email address of the service account used to authenticate + // the tool call. Dialogflow uses this service account to exchange an + // access token and the access token is then sent in the `Authorization` + // header of the tool request. + // + // The service account must have the + // `roles/iam.serviceAccountTokenCreator` role granted to the + // [Dialogflow service + // agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). + string service_account = 1 [(google.api.field_behavior) = REQUIRED]; + } + // The auth configuration. oneof auth_config { // Config for API key auth. @@ -606,6 +620,9 @@ message Tool { // Config for bearer token auth. BearerTokenConfig bearer_token_config = 4; + + // Configuration for service account authentication. + ServiceAccountAuthConfig service_account_auth_config = 5; } } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto index 55f9578bea3e..bb269d3b7b80 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto @@ -165,6 +165,20 @@ message Webhook { ACCESS_TOKEN = 3; } + // Configuration for authentication using a service account. + message ServiceAccountAuthConfig { + // Required. The email address of the service account used to authenticate + // the webhook call. Dialogflow uses this service account to exchange an + // access token and the access token is then sent in the `Authorization` + // header of the webhook request. + // + // The service account must have the + // `roles/iam.serviceAccountTokenCreator` role granted to the + // [Dialogflow service + // agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). + string service_account = 1 [(google.api.field_behavior) = REQUIRED]; + } + // Represents the type of webhook configuration. enum WebhookType { // Default value. This value is unused. @@ -263,6 +277,10 @@ message Webhook { ServiceAgentAuth service_agent_auth = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configuration for service account authentication. + ServiceAccountAuthConfig service_account_auth_config = 18 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Type of the webhook. WebhookType webhook_type = 6 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index b05a4971387e..bbc291345d75 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.83.0 + 4.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.83.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.84.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java index 7146942fe9bd..f6f6a142aaf7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java @@ -1826,6 +1826,7 @@ public final GenerateStatelessSummaryResponse generateStatelessSummary( * .putAllContextReferences(new HashMap()) * .setConversationContext(ConversationContext.newBuilder().build()) * .addAllTriggerEvents(new ArrayList()) + * .setSecuritySettings("securitySettings-1062971517") * .build(); * GenerateStatelessSuggestionResponse response = * conversationsClient.generateStatelessSuggestion(request); @@ -1860,6 +1861,7 @@ public final GenerateStatelessSuggestionResponse generateStatelessSuggestion( * .putAllContextReferences(new HashMap()) * .setConversationContext(ConversationContext.newBuilder().build()) * .addAllTriggerEvents(new ArrayList()) + * .setSecuritySettings("securitySettings-1062971517") * .build(); * ApiFuture future = * conversationsClient.generateStatelessSuggestionCallable().futureCall(request); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java new file mode 100644 index 000000000000..7ffa86a676b6 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java @@ -0,0 +1,1296 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.stub.GeneratorEvaluationsStub; +import com.google.cloud.dialogflow.v2beta1.stub.GeneratorEvaluationsStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing generator evaluations. + * + *

                                          This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                          {@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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          + *     GeneratorEvaluationsClient.create()) {
                                          + *   GeneratorEvaluationName name =
                                          + *       GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]");
                                          + *   GeneratorEvaluation response = generatorEvaluationsClient.getGeneratorEvaluation(name);
                                          + * }
                                          + * }
                                          + * + *

                                          Note: close() needs to be called on the GeneratorEvaluationsClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                          Methods
                                          MethodDescriptionMethod Variants

                                          CreateGeneratorEvaluation

                                          Creates evaluation of a generator.

                                          + *

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

                                          + *
                                            + *
                                          • createGeneratorEvaluationAsync(CreateGeneratorEvaluationRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • createGeneratorEvaluationAsync(GeneratorName parent, GeneratorEvaluation generatorEvaluation) + *

                                          • createGeneratorEvaluationAsync(String parent, GeneratorEvaluation generatorEvaluation) + *

                                          + *

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

                                          + *
                                            + *
                                          • createGeneratorEvaluationOperationCallable() + *

                                          • createGeneratorEvaluationCallable() + *

                                          + *

                                          GetGeneratorEvaluation

                                          Gets an evaluation of generator.

                                          + *

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

                                          + *
                                            + *
                                          • getGeneratorEvaluation(GetGeneratorEvaluationRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • getGeneratorEvaluation(GeneratorEvaluationName name) + *

                                          • getGeneratorEvaluation(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.

                                          + *
                                            + *
                                          • getGeneratorEvaluationCallable() + *

                                          + *

                                          ListGeneratorEvaluations

                                          Lists evaluations of generator.

                                          + *

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

                                          + *
                                            + *
                                          • listGeneratorEvaluations(ListGeneratorEvaluationsRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • listGeneratorEvaluations(GeneratorName parent) + *

                                          • listGeneratorEvaluations(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.

                                          + *
                                            + *
                                          • listGeneratorEvaluationsPagedCallable() + *

                                          • listGeneratorEvaluationsCallable() + *

                                          + *

                                          DeleteGeneratorEvaluation

                                          Deletes an evaluation of generator.

                                          + *

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

                                          + *
                                            + *
                                          • deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • deleteGeneratorEvaluation(GeneratorEvaluationName name) + *

                                          • deleteGeneratorEvaluation(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.

                                          + *
                                            + *
                                          • deleteGeneratorEvaluationCallable() + *

                                          + *

                                          ListLocations

                                          Lists information about the supported locations for this service.

                                          + *

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

                                          + *
                                            + *
                                          • listLocations(ListLocationsRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • listLocationsPagedCallable() + *

                                          • listLocationsCallable() + *

                                          + *

                                          GetLocation

                                          Gets information about a location.

                                          + *

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

                                          + *
                                            + *
                                          • getLocation(GetLocationRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • getLocationCallable() + *

                                          + *
                                          + * + *

                                          See the individual methods for example code. + * + *

                                          Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                          This class can be customized by passing in a custom instance of GeneratorEvaluationsSettings + * to create(). For example: + * + *

                                          To customize credentials: + * + *

                                          {@code
                                          + * // This snippet has been automatically generated and should be regarded as a code template only.
                                          + * // It will require modifications to work:
                                          + * // - It may require correct/in-range values for request initialization.
                                          + * // - It may require specifying regional endpoints when creating the service client as shown in
                                          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                          + * GeneratorEvaluationsSettings generatorEvaluationsSettings =
                                          + *     GeneratorEvaluationsSettings.newBuilder()
                                          + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                          + *         .build();
                                          + * GeneratorEvaluationsClient generatorEvaluationsClient =
                                          + *     GeneratorEvaluationsClient.create(generatorEvaluationsSettings);
                                          + * }
                                          + * + *

                                          To customize the endpoint: + * + *

                                          {@code
                                          + * // This snippet has been automatically generated and should be regarded as a code template only.
                                          + * // It will require modifications to work:
                                          + * // - It may require correct/in-range values for request initialization.
                                          + * // - It may require specifying regional endpoints when creating the service client as shown in
                                          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                          + * GeneratorEvaluationsSettings generatorEvaluationsSettings =
                                          + *     GeneratorEvaluationsSettings.newBuilder().setEndpoint(myEndpoint).build();
                                          + * GeneratorEvaluationsClient generatorEvaluationsClient =
                                          + *     GeneratorEvaluationsClient.create(generatorEvaluationsSettings);
                                          + * }
                                          + * + *

                                          To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                                          {@code
                                          + * // This snippet has been automatically generated and should be regarded as a code template only.
                                          + * // It will require modifications to work:
                                          + * // - It may require correct/in-range values for request initialization.
                                          + * // - It may require specifying regional endpoints when creating the service client as shown in
                                          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                          + * GeneratorEvaluationsSettings generatorEvaluationsSettings =
                                          + *     GeneratorEvaluationsSettings.newHttpJsonBuilder().build();
                                          + * GeneratorEvaluationsClient generatorEvaluationsClient =
                                          + *     GeneratorEvaluationsClient.create(generatorEvaluationsSettings);
                                          + * }
                                          + * + *

                                          Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GeneratorEvaluationsClient implements BackgroundResource { + private final GeneratorEvaluationsSettings settings; + private final GeneratorEvaluationsStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of GeneratorEvaluationsClient with default settings. */ + public static final GeneratorEvaluationsClient create() throws IOException { + return create(GeneratorEvaluationsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of GeneratorEvaluationsClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final GeneratorEvaluationsClient create(GeneratorEvaluationsSettings settings) + throws IOException { + return new GeneratorEvaluationsClient(settings); + } + + /** + * Constructs an instance of GeneratorEvaluationsClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(GeneratorEvaluationsSettings). + */ + public static final GeneratorEvaluationsClient create(GeneratorEvaluationsStub stub) { + return new GeneratorEvaluationsClient(stub); + } + + /** + * Constructs an instance of GeneratorEvaluationsClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GeneratorEvaluationsClient(GeneratorEvaluationsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((GeneratorEvaluationsStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected GeneratorEvaluationsClient(GeneratorEvaluationsStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final GeneratorEvaluationsSettings getSettings() { + return settings; + } + + public GeneratorEvaluationsStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates evaluation of a generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]");
                                          +   *   GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build();
                                          +   *   GeneratorEvaluation response =
                                          +   *       generatorEvaluationsClient
                                          +   *           .createGeneratorEvaluationAsync(parent, generatorEvaluation)
                                          +   *           .get();
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The generator resource name. Format: `projects/<Project + * ID>/locations/<Location ID>/generators/<Generator ID>` + * @param generatorEvaluation Required. The generator evaluation to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createGeneratorEvaluationAsync( + GeneratorName parent, GeneratorEvaluation generatorEvaluation) { + CreateGeneratorEvaluationRequest request = + CreateGeneratorEvaluationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGeneratorEvaluation(generatorEvaluation) + .build(); + return createGeneratorEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates evaluation of a generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   String parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString();
                                          +   *   GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build();
                                          +   *   GeneratorEvaluation response =
                                          +   *       generatorEvaluationsClient
                                          +   *           .createGeneratorEvaluationAsync(parent, generatorEvaluation)
                                          +   *           .get();
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The generator resource name. Format: `projects/<Project + * ID>/locations/<Location ID>/generators/<Generator ID>` + * @param generatorEvaluation Required. The generator evaluation to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createGeneratorEvaluationAsync(String parent, GeneratorEvaluation generatorEvaluation) { + CreateGeneratorEvaluationRequest request = + CreateGeneratorEvaluationRequest.newBuilder() + .setParent(parent) + .setGeneratorEvaluation(generatorEvaluation) + .build(); + return createGeneratorEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates evaluation of a generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   CreateGeneratorEvaluationRequest request =
                                          +   *       CreateGeneratorEvaluationRequest.newBuilder()
                                          +   *           .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString())
                                          +   *           .setGeneratorEvaluation(GeneratorEvaluation.newBuilder().build())
                                          +   *           .build();
                                          +   *   GeneratorEvaluation response =
                                          +   *       generatorEvaluationsClient.createGeneratorEvaluationAsync(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 + createGeneratorEvaluationAsync(CreateGeneratorEvaluationRequest request) { + return createGeneratorEvaluationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates evaluation of a generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   CreateGeneratorEvaluationRequest request =
                                          +   *       CreateGeneratorEvaluationRequest.newBuilder()
                                          +   *           .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString())
                                          +   *           .setGeneratorEvaluation(GeneratorEvaluation.newBuilder().build())
                                          +   *           .build();
                                          +   *   OperationFuture future =
                                          +   *       generatorEvaluationsClient
                                          +   *           .createGeneratorEvaluationOperationCallable()
                                          +   *           .futureCall(request);
                                          +   *   // Do something.
                                          +   *   GeneratorEvaluation response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final OperationCallable< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationCallable() { + return stub.createGeneratorEvaluationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates evaluation of a generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   CreateGeneratorEvaluationRequest request =
                                          +   *       CreateGeneratorEvaluationRequest.newBuilder()
                                          +   *           .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString())
                                          +   *           .setGeneratorEvaluation(GeneratorEvaluation.newBuilder().build())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       generatorEvaluationsClient.createGeneratorEvaluationCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   Operation response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + createGeneratorEvaluationCallable() { + return stub.createGeneratorEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an evaluation of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   GeneratorEvaluationName name =
                                          +   *       GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]");
                                          +   *   GeneratorEvaluation response = generatorEvaluationsClient.getGeneratorEvaluation(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The generator evaluation resource name. Format: `projects/<Project + * ID>/locations/<Location ID>/generators/<Generator + * ID>/evaluations/<Evaluation ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GeneratorEvaluation getGeneratorEvaluation(GeneratorEvaluationName name) { + GetGeneratorEvaluationRequest request = + GetGeneratorEvaluationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getGeneratorEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an evaluation of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   String name =
                                          +   *       GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]")
                                          +   *           .toString();
                                          +   *   GeneratorEvaluation response = generatorEvaluationsClient.getGeneratorEvaluation(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The generator evaluation resource name. Format: `projects/<Project + * ID>/locations/<Location ID>/generators/<Generator + * ID>/evaluations/<Evaluation ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GeneratorEvaluation getGeneratorEvaluation(String name) { + GetGeneratorEvaluationRequest request = + GetGeneratorEvaluationRequest.newBuilder().setName(name).build(); + return getGeneratorEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an evaluation of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   GetGeneratorEvaluationRequest request =
                                          +   *       GetGeneratorEvaluationRequest.newBuilder()
                                          +   *           .setName(
                                          +   *               GeneratorEvaluationName.of(
                                          +   *                       "[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]")
                                          +   *                   .toString())
                                          +   *           .build();
                                          +   *   GeneratorEvaluation response = generatorEvaluationsClient.getGeneratorEvaluation(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 GeneratorEvaluation getGeneratorEvaluation(GetGeneratorEvaluationRequest request) { + return getGeneratorEvaluationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an evaluation of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   GetGeneratorEvaluationRequest request =
                                          +   *       GetGeneratorEvaluationRequest.newBuilder()
                                          +   *           .setName(
                                          +   *               GeneratorEvaluationName.of(
                                          +   *                       "[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]")
                                          +   *                   .toString())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       generatorEvaluationsClient.getGeneratorEvaluationCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   GeneratorEvaluation response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + getGeneratorEvaluationCallable() { + return stub.getGeneratorEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists evaluations of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]");
                                          +   *   for (GeneratorEvaluation element :
                                          +   *       generatorEvaluationsClient.listGeneratorEvaluations(parent).iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The generator resource name. Format: `projects/<Project + * ID>/locations/<Location ID>/generators/<Generator ID>` Wildcard value `-` is + * supported on generator_id to list evaluations across all generators under same project. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGeneratorEvaluationsPagedResponse listGeneratorEvaluations( + GeneratorName parent) { + ListGeneratorEvaluationsRequest request = + ListGeneratorEvaluationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGeneratorEvaluations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists evaluations of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   String parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString();
                                          +   *   for (GeneratorEvaluation element :
                                          +   *       generatorEvaluationsClient.listGeneratorEvaluations(parent).iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The generator resource name. Format: `projects/<Project + * ID>/locations/<Location ID>/generators/<Generator ID>` Wildcard value `-` is + * supported on generator_id to list evaluations across all generators under same project. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGeneratorEvaluationsPagedResponse listGeneratorEvaluations(String parent) { + ListGeneratorEvaluationsRequest request = + ListGeneratorEvaluationsRequest.newBuilder().setParent(parent).build(); + return listGeneratorEvaluations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists evaluations of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   ListGeneratorEvaluationsRequest request =
                                          +   *       ListGeneratorEvaluationsRequest.newBuilder()
                                          +   *           .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString())
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   for (GeneratorEvaluation element :
                                          +   *       generatorEvaluationsClient.listGeneratorEvaluations(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 ListGeneratorEvaluationsPagedResponse listGeneratorEvaluations( + ListGeneratorEvaluationsRequest request) { + return listGeneratorEvaluationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists evaluations of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   ListGeneratorEvaluationsRequest request =
                                          +   *       ListGeneratorEvaluationsRequest.newBuilder()
                                          +   *           .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString())
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       generatorEvaluationsClient.listGeneratorEvaluationsPagedCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   for (GeneratorEvaluation element : future.get().iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + listGeneratorEvaluationsPagedCallable() { + return stub.listGeneratorEvaluationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists evaluations of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   ListGeneratorEvaluationsRequest request =
                                          +   *       ListGeneratorEvaluationsRequest.newBuilder()
                                          +   *           .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString())
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   while (true) {
                                          +   *     ListGeneratorEvaluationsResponse response =
                                          +   *         generatorEvaluationsClient.listGeneratorEvaluationsCallable().call(request);
                                          +   *     for (GeneratorEvaluation element : response.getGeneratorEvaluationsList()) {
                                          +   *       // doThingsWith(element);
                                          +   *     }
                                          +   *     String nextPageToken = response.getNextPageToken();
                                          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                          +   *     } else {
                                          +   *       break;
                                          +   *     }
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + listGeneratorEvaluationsCallable() { + return stub.listGeneratorEvaluationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an evaluation of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   GeneratorEvaluationName name =
                                          +   *       GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]");
                                          +   *   generatorEvaluationsClient.deleteGeneratorEvaluation(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The generator evaluation resource name. Format: `projects/<Project + * ID>/locations/<Location ID>/generators/<Generator ID>/ + * evaluations/<Evaluation ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteGeneratorEvaluation(GeneratorEvaluationName name) { + DeleteGeneratorEvaluationRequest request = + DeleteGeneratorEvaluationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteGeneratorEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an evaluation of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   String name =
                                          +   *       GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]")
                                          +   *           .toString();
                                          +   *   generatorEvaluationsClient.deleteGeneratorEvaluation(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The generator evaluation resource name. Format: `projects/<Project + * ID>/locations/<Location ID>/generators/<Generator ID>/ + * evaluations/<Evaluation ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteGeneratorEvaluation(String name) { + DeleteGeneratorEvaluationRequest request = + DeleteGeneratorEvaluationRequest.newBuilder().setName(name).build(); + deleteGeneratorEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an evaluation of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   DeleteGeneratorEvaluationRequest request =
                                          +   *       DeleteGeneratorEvaluationRequest.newBuilder()
                                          +   *           .setName(
                                          +   *               GeneratorEvaluationName.of(
                                          +   *                       "[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]")
                                          +   *                   .toString())
                                          +   *           .build();
                                          +   *   generatorEvaluationsClient.deleteGeneratorEvaluation(request);
                                          +   * }
                                          +   * }
                                          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest request) { + deleteGeneratorEvaluationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an evaluation of generator. + * + *

                                          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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   DeleteGeneratorEvaluationRequest request =
                                          +   *       DeleteGeneratorEvaluationRequest.newBuilder()
                                          +   *           .setName(
                                          +   *               GeneratorEvaluationName.of(
                                          +   *                       "[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]")
                                          +   *                   .toString())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       generatorEvaluationsClient.deleteGeneratorEvaluationCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + deleteGeneratorEvaluationCallable() { + return stub.deleteGeneratorEvaluationCallable(); + } + + // 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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   ListLocationsRequest request =
                                          +   *       ListLocationsRequest.newBuilder()
                                          +   *           .setName("name3373707")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   for (Location element : generatorEvaluationsClient.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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   ListLocationsRequest request =
                                          +   *       ListLocationsRequest.newBuilder()
                                          +   *           .setName("name3373707")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       generatorEvaluationsClient.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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   ListLocationsRequest request =
                                          +   *       ListLocationsRequest.newBuilder()
                                          +   *           .setName("name3373707")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   while (true) {
                                          +   *     ListLocationsResponse response =
                                          +   *         generatorEvaluationsClient.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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                          +   *   Location response = generatorEvaluationsClient.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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          +   *     GeneratorEvaluationsClient.create()) {
                                          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                          +   *   ApiFuture future =
                                          +   *       generatorEvaluationsClient.getLocationCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   Location response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListGeneratorEvaluationsPagedResponse + extends AbstractPagedListResponse< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + GeneratorEvaluation, + ListGeneratorEvaluationsPage, + ListGeneratorEvaluationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + GeneratorEvaluation> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGeneratorEvaluationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGeneratorEvaluationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGeneratorEvaluationsPagedResponse(ListGeneratorEvaluationsPage page) { + super(page, ListGeneratorEvaluationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGeneratorEvaluationsPage + extends AbstractPage< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + GeneratorEvaluation, + ListGeneratorEvaluationsPage> { + + private ListGeneratorEvaluationsPage( + PageContext< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + GeneratorEvaluation> + context, + ListGeneratorEvaluationsResponse response) { + super(context, response); + } + + private static ListGeneratorEvaluationsPage createEmptyPage() { + return new ListGeneratorEvaluationsPage(null, null); + } + + @Override + protected ListGeneratorEvaluationsPage createPage( + PageContext< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + GeneratorEvaluation> + context, + ListGeneratorEvaluationsResponse response) { + return new ListGeneratorEvaluationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + GeneratorEvaluation> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGeneratorEvaluationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + GeneratorEvaluation, + ListGeneratorEvaluationsPage, + ListGeneratorEvaluationsFixedSizeCollection> { + + private ListGeneratorEvaluationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGeneratorEvaluationsFixedSizeCollection createEmptyCollection() { + return new ListGeneratorEvaluationsFixedSizeCollection(null, 0); + } + + @Override + protected ListGeneratorEvaluationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGeneratorEvaluationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsSettings.java new file mode 100644 index 000000000000..46e54d8e7352 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsSettings.java @@ -0,0 +1,344 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListGeneratorEvaluationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.dialogflow.v2beta1.stub.GeneratorEvaluationsStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link GeneratorEvaluationsClient}. + * + *

                                          The default instance has everything set to sensible defaults: + * + *

                                            + *
                                          • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
                                          • Credentials are acquired automatically through Application Default Credentials. + *
                                          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                          + * + *

                                          The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                          For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getGeneratorEvaluation: + * + *

                                          {@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
                                          + * GeneratorEvaluationsSettings.Builder generatorEvaluationsSettingsBuilder =
                                          + *     GeneratorEvaluationsSettings.newBuilder();
                                          + * generatorEvaluationsSettingsBuilder
                                          + *     .getGeneratorEvaluationSettings()
                                          + *     .setRetrySettings(
                                          + *         generatorEvaluationsSettingsBuilder
                                          + *             .getGeneratorEvaluationSettings()
                                          + *             .getRetrySettings()
                                          + *             .toBuilder()
                                          + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                          + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                          + *             .setMaxAttempts(5)
                                          + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                          + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                          + *             .setRetryDelayMultiplier(1.3)
                                          + *             .setRpcTimeoutMultiplier(1.5)
                                          + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                          + *             .build());
                                          + * GeneratorEvaluationsSettings generatorEvaluationsSettings =
                                          + *     generatorEvaluationsSettingsBuilder.build();
                                          + * }
                                          + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

                                          To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createGeneratorEvaluation: + * + *

                                          {@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
                                          + * GeneratorEvaluationsSettings.Builder generatorEvaluationsSettingsBuilder =
                                          + *     GeneratorEvaluationsSettings.newBuilder();
                                          + * TimedRetryAlgorithm timedRetryAlgorithm =
                                          + *     OperationalTimedPollAlgorithm.create(
                                          + *         RetrySettings.newBuilder()
                                          + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                          + *             .setRetryDelayMultiplier(1.5)
                                          + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                          + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                          + *             .build());
                                          + * generatorEvaluationsSettingsBuilder
                                          + *     .createClusterOperationSettings()
                                          + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                          + *     .build();
                                          + * }
                                          + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GeneratorEvaluationsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createGeneratorEvaluation. */ + public UnaryCallSettings + createGeneratorEvaluationSettings() { + return ((GeneratorEvaluationsStubSettings) getStubSettings()) + .createGeneratorEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to createGeneratorEvaluation. */ + public OperationCallSettings< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationSettings() { + return ((GeneratorEvaluationsStubSettings) getStubSettings()) + .createGeneratorEvaluationOperationSettings(); + } + + /** Returns the object with the settings used for calls to getGeneratorEvaluation. */ + public UnaryCallSettings + getGeneratorEvaluationSettings() { + return ((GeneratorEvaluationsStubSettings) getStubSettings()).getGeneratorEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to listGeneratorEvaluations. */ + public PagedCallSettings< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + ListGeneratorEvaluationsPagedResponse> + listGeneratorEvaluationsSettings() { + return ((GeneratorEvaluationsStubSettings) getStubSettings()) + .listGeneratorEvaluationsSettings(); + } + + /** Returns the object with the settings used for calls to deleteGeneratorEvaluation. */ + public UnaryCallSettings + deleteGeneratorEvaluationSettings() { + return ((GeneratorEvaluationsStubSettings) getStubSettings()) + .deleteGeneratorEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((GeneratorEvaluationsStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((GeneratorEvaluationsStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final GeneratorEvaluationsSettings create(GeneratorEvaluationsStubSettings stub) + throws IOException { + return new GeneratorEvaluationsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return GeneratorEvaluationsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return GeneratorEvaluationsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return GeneratorEvaluationsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GeneratorEvaluationsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return GeneratorEvaluationsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return GeneratorEvaluationsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return GeneratorEvaluationsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return GeneratorEvaluationsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected GeneratorEvaluationsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for GeneratorEvaluationsSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(GeneratorEvaluationsStubSettings.newBuilder(clientContext)); + } + + protected Builder(GeneratorEvaluationsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(GeneratorEvaluationsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(GeneratorEvaluationsStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(GeneratorEvaluationsStubSettings.newHttpJsonBuilder()); + } + + public GeneratorEvaluationsStubSettings.Builder getStubSettingsBuilder() { + return ((GeneratorEvaluationsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                          Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createGeneratorEvaluation. */ + public UnaryCallSettings.Builder + createGeneratorEvaluationSettings() { + return getStubSettingsBuilder().createGeneratorEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to createGeneratorEvaluation. */ + public OperationCallSettings.Builder< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationSettings() { + return getStubSettingsBuilder().createGeneratorEvaluationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getGeneratorEvaluation. */ + public UnaryCallSettings.Builder + getGeneratorEvaluationSettings() { + return getStubSettingsBuilder().getGeneratorEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to listGeneratorEvaluations. */ + public PagedCallSettings.Builder< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + ListGeneratorEvaluationsPagedResponse> + listGeneratorEvaluationsSettings() { + return getStubSettingsBuilder().listGeneratorEvaluationsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteGeneratorEvaluation. */ + public UnaryCallSettings.Builder + deleteGeneratorEvaluationSettings() { + return getStubSettingsBuilder().deleteGeneratorEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public GeneratorEvaluationsSettings build() throws IOException { + return new GeneratorEvaluationsSettings(this); + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java index 92387ae0f4e9..7ce7038a60df 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java @@ -184,6 +184,16 @@ * * * + *

                                          BidiStreamingAnalyzeContent + *

                                          Bidirectional endless streaming version of [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]. + * + *

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

                                          + *
                                            + *
                                          • bidiStreamingAnalyzeContentCallable() + *

                                          + * + * + * *

                                          SuggestArticles *

                                          Gets suggested articles for a participant based on specific historical messages. *

                                          Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion based on the provided conversation context in the real time. @@ -1325,6 +1335,37 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request return stub.streamingAnalyzeContentCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bidirectional endless streaming version of + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]. + * + *

                                          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 (ParticipantsClient participantsClient = ParticipantsClient.create()) {
                                          +   *   BidiStream
                                          +   *       bidiStream = participantsClient.bidiStreamingAnalyzeContentCallable().call();
                                          +   *   BidiStreamingAnalyzeContentRequest request =
                                          +   *       BidiStreamingAnalyzeContentRequest.newBuilder().build();
                                          +   *   bidiStream.send(request);
                                          +   *   for (BidiStreamingAnalyzeContentResponse response : bidiStream) {
                                          +   *     // Do something when a response is received.
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + */ + public final BidiStreamingCallable< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentCallable() { + return stub.bidiStreamingAnalyzeContentCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets suggested articles for a participant based on specific historical messages. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsSettings.java index e8a2f8efe452..3a3b718044ec 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsSettings.java @@ -128,6 +128,13 @@ public UnaryCallSettings analyzeC return ((ParticipantsStubSettings) getStubSettings()).streamingAnalyzeContentSettings(); } + /** Returns the object with the settings used for calls to bidiStreamingAnalyzeContent. */ + public StreamingCallSettings< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentSettings() { + return ((ParticipantsStubSettings) getStubSettings()).bidiStreamingAnalyzeContentSettings(); + } + /** Returns the object with the settings used for calls to suggestArticles. */ public UnaryCallSettings suggestArticlesSettings() { @@ -335,6 +342,13 @@ public UnaryCallSettings.Builder getParticip return getStubSettingsBuilder().streamingAnalyzeContentSettings(); } + /** Returns the builder for the settings used for calls to bidiStreamingAnalyzeContent. */ + public StreamingCallSettings.Builder< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentSettings() { + return getStubSettingsBuilder().bidiStreamingAnalyzeContentSettings(); + } + /** Returns the builder for the settings used for calls to suggestArticles. */ public UnaryCallSettings.Builder suggestArticlesSettings() { diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java new file mode 100644 index 000000000000..fa6c57591a4b --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java @@ -0,0 +1,1230 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.stub.ToolsStub; +import com.google.cloud.dialogflow.v2beta1.stub.ToolsStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Tool Service for LLM powered Agent Assist. Tools can be used to interact + * with remote APIs (e.g. fetching orders) to retrieve additional information as input to LLM. + * + *

                                          This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                          {@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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                          + *   Tool tool = Tool.newBuilder().build();
                                          + *   String toolId = "toolId-868061997";
                                          + *   Tool response = toolsClient.createTool(parent, tool, toolId);
                                          + * }
                                          + * }
                                          + * + *

                                          Note: close() needs to be called on the ToolsClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                          Methods
                                          MethodDescriptionMethod Variants

                                          CreateTool

                                          Creates a tool.

                                          + *

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

                                          + *
                                            + *
                                          • createTool(CreateToolRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • createTool(LocationName parent, Tool tool, String toolId) + *

                                          • createTool(String parent, Tool tool, String toolId) + *

                                          + *

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

                                          + *
                                            + *
                                          • createToolCallable() + *

                                          + *

                                          GetTool

                                          Retrieves a tool.

                                          + *

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

                                          + *
                                            + *
                                          • getTool(GetToolRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • getTool(ToolName name) + *

                                          • getTool(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.

                                          + *
                                            + *
                                          • getToolCallable() + *

                                          + *

                                          ListTools

                                          Lists tools.

                                          + *

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

                                          + *
                                            + *
                                          • listTools(ListToolsRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • listTools(LocationName parent) + *

                                          • listTools(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.

                                          + *
                                            + *
                                          • listToolsPagedCallable() + *

                                          • listToolsCallable() + *

                                          + *

                                          DeleteTool

                                          Deletes a tool.

                                          + *

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

                                          + *
                                            + *
                                          • deleteTool(DeleteToolRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • deleteTool(ToolName name) + *

                                          • deleteTool(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.

                                          + *
                                            + *
                                          • deleteToolCallable() + *

                                          + *

                                          UpdateTool

                                          Updates a tool.

                                          + *

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

                                          + *
                                            + *
                                          • updateTool(UpdateToolRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • updateTool(Tool tool, 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.

                                          + *
                                            + *
                                          • updateToolCallable() + *

                                          + *

                                          ListLocations

                                          Lists information about the supported locations for this service.

                                          + *

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

                                          + *
                                            + *
                                          • listLocations(ListLocationsRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • listLocationsPagedCallable() + *

                                          • listLocationsCallable() + *

                                          + *

                                          GetLocation

                                          Gets information about a location.

                                          + *

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

                                          + *
                                            + *
                                          • getLocation(GetLocationRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • getLocationCallable() + *

                                          + *
                                          + * + *

                                          See the individual methods for example code. + * + *

                                          Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                          This class can be customized by passing in a custom instance of ToolsSettings to create(). For + * example: + * + *

                                          To customize credentials: + * + *

                                          {@code
                                          + * // This snippet has been automatically generated and should be regarded as a code template only.
                                          + * // It will require modifications to work:
                                          + * // - It may require correct/in-range values for request initialization.
                                          + * // - It may require specifying regional endpoints when creating the service client as shown in
                                          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                          + * ToolsSettings toolsSettings =
                                          + *     ToolsSettings.newBuilder()
                                          + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                          + *         .build();
                                          + * ToolsClient toolsClient = ToolsClient.create(toolsSettings);
                                          + * }
                                          + * + *

                                          To customize the endpoint: + * + *

                                          {@code
                                          + * // This snippet has been automatically generated and should be regarded as a code template only.
                                          + * // It will require modifications to work:
                                          + * // - It may require correct/in-range values for request initialization.
                                          + * // - It may require specifying regional endpoints when creating the service client as shown in
                                          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                          + * ToolsSettings toolsSettings = ToolsSettings.newBuilder().setEndpoint(myEndpoint).build();
                                          + * ToolsClient toolsClient = ToolsClient.create(toolsSettings);
                                          + * }
                                          + * + *

                                          To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                                          {@code
                                          + * // This snippet has been automatically generated and should be regarded as a code template only.
                                          + * // It will require modifications to work:
                                          + * // - It may require correct/in-range values for request initialization.
                                          + * // - It may require specifying regional endpoints when creating the service client as shown in
                                          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                          + * ToolsSettings toolsSettings = ToolsSettings.newHttpJsonBuilder().build();
                                          + * ToolsClient toolsClient = ToolsClient.create(toolsSettings);
                                          + * }
                                          + * + *

                                          Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ToolsClient implements BackgroundResource { + private final ToolsSettings settings; + private final ToolsStub stub; + + /** Constructs an instance of ToolsClient with default settings. */ + public static final ToolsClient create() throws IOException { + return create(ToolsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ToolsClient, using the given settings. The channels are created based + * on the settings passed in, or defaults for any settings that are not set. + */ + public static final ToolsClient create(ToolsSettings settings) throws IOException { + return new ToolsClient(settings); + } + + /** + * Constructs an instance of ToolsClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(ToolsSettings). + */ + public static final ToolsClient create(ToolsStub stub) { + return new ToolsClient(stub); + } + + /** + * Constructs an instance of ToolsClient, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected ToolsClient(ToolsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ToolsStubSettings) settings.getStubSettings()).createStub(); + } + + protected ToolsClient(ToolsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ToolsSettings getSettings() { + return settings; + } + + public ToolsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                          +   *   Tool tool = Tool.newBuilder().build();
                                          +   *   String toolId = "toolId-868061997";
                                          +   *   Tool response = toolsClient.createTool(parent, tool, toolId);
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The project/location to create tool for. Format: `projects/<Project + * ID>/locations/<Location ID>` + * @param tool Required. The tool to create. + * @param toolId Optional. The ID to use for the tool, which will become the final component of + * the tool's resource name. + *

                                          The tool ID must be compliant with the regression formula `[a-zA-Z][a-zA-Z0-9_-]*` + * with the characters length in range of [3,64]. If the field is not provide, an Id will be + * auto-generated. If the field is provided, the caller is responsible for 1. the uniqueness + * of the ID, otherwise the request will be rejected. 2. the consistency for whether to use + * custom ID or not under a project to better ensure uniqueness. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool createTool(LocationName parent, Tool tool, String toolId) { + CreateToolRequest request = + CreateToolRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTool(tool) + .setToolId(toolId) + .build(); + return createTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                          +   *   Tool tool = Tool.newBuilder().build();
                                          +   *   String toolId = "toolId-868061997";
                                          +   *   Tool response = toolsClient.createTool(parent, tool, toolId);
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The project/location to create tool for. Format: `projects/<Project + * ID>/locations/<Location ID>` + * @param tool Required. The tool to create. + * @param toolId Optional. The ID to use for the tool, which will become the final component of + * the tool's resource name. + *

                                          The tool ID must be compliant with the regression formula `[a-zA-Z][a-zA-Z0-9_-]*` + * with the characters length in range of [3,64]. If the field is not provide, an Id will be + * auto-generated. If the field is provided, the caller is responsible for 1. the uniqueness + * of the ID, otherwise the request will be rejected. 2. the consistency for whether to use + * custom ID or not under a project to better ensure uniqueness. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool createTool(String parent, Tool tool, String toolId) { + CreateToolRequest request = + CreateToolRequest.newBuilder().setParent(parent).setTool(tool).setToolId(toolId).build(); + return createTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   CreateToolRequest request =
                                          +   *       CreateToolRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setTool(Tool.newBuilder().build())
                                          +   *           .setToolId("toolId-868061997")
                                          +   *           .build();
                                          +   *   Tool response = toolsClient.createTool(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 Tool createTool(CreateToolRequest request) { + return createToolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   CreateToolRequest request =
                                          +   *       CreateToolRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setTool(Tool.newBuilder().build())
                                          +   *           .setToolId("toolId-868061997")
                                          +   *           .build();
                                          +   *   ApiFuture future = toolsClient.createToolCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   Tool response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable createToolCallable() { + return stub.createToolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]");
                                          +   *   Tool response = toolsClient.getTool(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The tool resource name to retrieve. Format: `projects/<Project + * ID>/locations/<Location ID>/tools/<Tool ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool getTool(ToolName name) { + GetToolRequest request = + GetToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   String name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString();
                                          +   *   Tool response = toolsClient.getTool(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The tool resource name to retrieve. Format: `projects/<Project + * ID>/locations/<Location ID>/tools/<Tool ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool getTool(String name) { + GetToolRequest request = GetToolRequest.newBuilder().setName(name).build(); + return getTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   GetToolRequest request =
                                          +   *       GetToolRequest.newBuilder()
                                          +   *           .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString())
                                          +   *           .build();
                                          +   *   Tool response = toolsClient.getTool(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 Tool getTool(GetToolRequest request) { + return getToolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   GetToolRequest request =
                                          +   *       GetToolRequest.newBuilder()
                                          +   *           .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString())
                                          +   *           .build();
                                          +   *   ApiFuture future = toolsClient.getToolCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   Tool response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable getToolCallable() { + return stub.getToolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                          +   *   for (Tool element : toolsClient.listTools(parent).iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The project/location to list tools for. Format: `projects/<Project + * ID>/locations/<Location ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListToolsPagedResponse listTools(LocationName parent) { + ListToolsRequest request = + ListToolsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listTools(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                          +   *   for (Tool element : toolsClient.listTools(parent).iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The project/location to list tools for. Format: `projects/<Project + * ID>/locations/<Location ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListToolsPagedResponse listTools(String parent) { + ListToolsRequest request = ListToolsRequest.newBuilder().setParent(parent).build(); + return listTools(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   ListToolsRequest request =
                                          +   *       ListToolsRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   for (Tool element : toolsClient.listTools(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 ListToolsPagedResponse listTools(ListToolsRequest request) { + return listToolsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   ListToolsRequest request =
                                          +   *       ListToolsRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   ApiFuture future = toolsClient.listToolsPagedCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   for (Tool element : future.get().iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable listToolsPagedCallable() { + return stub.listToolsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   ListToolsRequest request =
                                          +   *       ListToolsRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   while (true) {
                                          +   *     ListToolsResponse response = toolsClient.listToolsCallable().call(request);
                                          +   *     for (Tool element : response.getToolsList()) {
                                          +   *       // doThingsWith(element);
                                          +   *     }
                                          +   *     String nextPageToken = response.getNextPageToken();
                                          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                          +   *     } else {
                                          +   *       break;
                                          +   *     }
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable listToolsCallable() { + return stub.listToolsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]");
                                          +   *   toolsClient.deleteTool(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The tool resource name to delete. Format: `projects/<Project + * ID>/locations/<Location ID>/tools/<Tool ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTool(ToolName name) { + DeleteToolRequest request = + DeleteToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   String name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString();
                                          +   *   toolsClient.deleteTool(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The tool resource name to delete. Format: `projects/<Project + * ID>/locations/<Location ID>/tools/<Tool ID>` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTool(String name) { + DeleteToolRequest request = DeleteToolRequest.newBuilder().setName(name).build(); + deleteTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   DeleteToolRequest request =
                                          +   *       DeleteToolRequest.newBuilder()
                                          +   *           .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString())
                                          +   *           .build();
                                          +   *   toolsClient.deleteTool(request);
                                          +   * }
                                          +   * }
                                          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTool(DeleteToolRequest request) { + deleteToolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   DeleteToolRequest request =
                                          +   *       DeleteToolRequest.newBuilder()
                                          +   *           .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString())
                                          +   *           .build();
                                          +   *   ApiFuture future = toolsClient.deleteToolCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable deleteToolCallable() { + return stub.deleteToolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   Tool tool = Tool.newBuilder().build();
                                          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                          +   *   Tool response = toolsClient.updateTool(tool, updateMask);
                                          +   * }
                                          +   * }
                                          + * + * @param tool Required. The tool to update. The name field of tool is to identify the tool to + * update. + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool updateTool(Tool tool, FieldMask updateMask) { + UpdateToolRequest request = + UpdateToolRequest.newBuilder().setTool(tool).setUpdateMask(updateMask).build(); + return updateTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   UpdateToolRequest request =
                                          +   *       UpdateToolRequest.newBuilder()
                                          +   *           .setTool(Tool.newBuilder().build())
                                          +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                          +   *           .build();
                                          +   *   Tool response = toolsClient.updateTool(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 Tool updateTool(UpdateToolRequest request) { + return updateToolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a tool. + * + *

                                          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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   UpdateToolRequest request =
                                          +   *       UpdateToolRequest.newBuilder()
                                          +   *           .setTool(Tool.newBuilder().build())
                                          +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                          +   *           .build();
                                          +   *   ApiFuture future = toolsClient.updateToolCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   Tool response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable updateToolCallable() { + return stub.updateToolCallable(); + } + + // 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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   ListLocationsRequest request =
                                          +   *       ListLocationsRequest.newBuilder()
                                          +   *           .setName("name3373707")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   for (Location element : toolsClient.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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   ListLocationsRequest request =
                                          +   *       ListLocationsRequest.newBuilder()
                                          +   *           .setName("name3373707")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   ApiFuture future = toolsClient.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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   ListLocationsRequest request =
                                          +   *       ListLocationsRequest.newBuilder()
                                          +   *           .setName("name3373707")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   while (true) {
                                          +   *     ListLocationsResponse response = toolsClient.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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                          +   *   Location response = toolsClient.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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                          +   *   ApiFuture future = toolsClient.getLocationCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   Location response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListToolsPagedResponse + extends AbstractPagedListResponse< + ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListToolsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListToolsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListToolsPagedResponse(ListToolsPage page) { + super(page, ListToolsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListToolsPage + extends AbstractPage { + + private ListToolsPage( + PageContext context, + ListToolsResponse response) { + super(context, response); + } + + private static ListToolsPage createEmptyPage() { + return new ListToolsPage(null, null); + } + + @Override + protected ListToolsPage createPage( + PageContext context, + ListToolsResponse response) { + return new ListToolsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListToolsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { + + private ListToolsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListToolsFixedSizeCollection createEmptyCollection() { + return new ListToolsFixedSizeCollection(null, 0); + } + + @Override + protected ListToolsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListToolsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsSettings.java new file mode 100644 index 000000000000..c75f3f52b59c --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsSettings.java @@ -0,0 +1,288 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListLocationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListToolsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.dialogflow.v2beta1.stub.ToolsStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ToolsClient}. + * + *

                                          The default instance has everything set to sensible defaults: + * + *

                                            + *
                                          • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
                                          • Credentials are acquired automatically through Application Default Credentials. + *
                                          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                          + * + *

                                          The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                          For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createTool: + * + *

                                          {@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
                                          + * ToolsSettings.Builder toolsSettingsBuilder = ToolsSettings.newBuilder();
                                          + * toolsSettingsBuilder
                                          + *     .createToolSettings()
                                          + *     .setRetrySettings(
                                          + *         toolsSettingsBuilder
                                          + *             .createToolSettings()
                                          + *             .getRetrySettings()
                                          + *             .toBuilder()
                                          + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                          + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                          + *             .setMaxAttempts(5)
                                          + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                          + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                          + *             .setRetryDelayMultiplier(1.3)
                                          + *             .setRpcTimeoutMultiplier(1.5)
                                          + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                          + *             .build());
                                          + * ToolsSettings toolsSettings = toolsSettingsBuilder.build();
                                          + * }
                                          + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ToolsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createTool. */ + public UnaryCallSettings createToolSettings() { + return ((ToolsStubSettings) getStubSettings()).createToolSettings(); + } + + /** Returns the object with the settings used for calls to getTool. */ + public UnaryCallSettings getToolSettings() { + return ((ToolsStubSettings) getStubSettings()).getToolSettings(); + } + + /** Returns the object with the settings used for calls to listTools. */ + public PagedCallSettings + listToolsSettings() { + return ((ToolsStubSettings) getStubSettings()).listToolsSettings(); + } + + /** Returns the object with the settings used for calls to deleteTool. */ + public UnaryCallSettings deleteToolSettings() { + return ((ToolsStubSettings) getStubSettings()).deleteToolSettings(); + } + + /** Returns the object with the settings used for calls to updateTool. */ + public UnaryCallSettings updateToolSettings() { + return ((ToolsStubSettings) getStubSettings()).updateToolSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((ToolsStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((ToolsStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final ToolsSettings create(ToolsStubSettings stub) throws IOException { + return new ToolsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ToolsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ToolsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ToolsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ToolsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ToolsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ToolsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ToolsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ToolsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ToolsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ToolsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ToolsStubSettings.newBuilder(clientContext)); + } + + protected Builder(ToolsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ToolsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ToolsStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(ToolsStubSettings.newHttpJsonBuilder()); + } + + public ToolsStubSettings.Builder getStubSettingsBuilder() { + return ((ToolsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                          Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createTool. */ + public UnaryCallSettings.Builder createToolSettings() { + return getStubSettingsBuilder().createToolSettings(); + } + + /** Returns the builder for the settings used for calls to getTool. */ + public UnaryCallSettings.Builder getToolSettings() { + return getStubSettingsBuilder().getToolSettings(); + } + + /** Returns the builder for the settings used for calls to listTools. */ + public PagedCallSettings.Builder + listToolsSettings() { + return getStubSettingsBuilder().listToolsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTool. */ + public UnaryCallSettings.Builder deleteToolSettings() { + return getStubSettingsBuilder().deleteToolSettings(); + } + + /** Returns the builder for the settings used for calls to updateTool. */ + public UnaryCallSettings.Builder updateToolSettings() { + return getStubSettingsBuilder().updateToolSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public ToolsSettings build() throws IOException { + return new ToolsSettings(this); + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/gapic_metadata.json b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/gapic_metadata.json index 357c0ce7d698..6ba28b8b4b24 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/gapic_metadata.json +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/gapic_metadata.json @@ -377,6 +377,33 @@ } } }, + "GeneratorEvaluations": { + "clients": { + "grpc": { + "libraryClient": "GeneratorEvaluationsClient", + "rpcs": { + "CreateGeneratorEvaluation": { + "methods": ["createGeneratorEvaluationAsync", "createGeneratorEvaluationAsync", "createGeneratorEvaluationAsync", "createGeneratorEvaluationOperationCallable", "createGeneratorEvaluationCallable"] + }, + "DeleteGeneratorEvaluation": { + "methods": ["deleteGeneratorEvaluation", "deleteGeneratorEvaluation", "deleteGeneratorEvaluation", "deleteGeneratorEvaluationCallable"] + }, + "GetGeneratorEvaluation": { + "methods": ["getGeneratorEvaluation", "getGeneratorEvaluation", "getGeneratorEvaluation", "getGeneratorEvaluationCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListGeneratorEvaluations": { + "methods": ["listGeneratorEvaluations", "listGeneratorEvaluations", "listGeneratorEvaluations", "listGeneratorEvaluationsPagedCallable", "listGeneratorEvaluationsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + } + } + } + } + }, "Intents": { "clients": { "grpc": { @@ -451,6 +478,9 @@ "AnalyzeContent": { "methods": ["analyzeContent", "analyzeContent", "analyzeContent", "analyzeContent", "analyzeContent", "analyzeContent", "analyzeContent", "analyzeContentCallable"] }, + "BidiStreamingAnalyzeContent": { + "methods": ["bidiStreamingAnalyzeContentCallable"] + }, "CompileSuggestion": { "methods": ["compileSuggestion", "compileSuggestionCallable"] }, @@ -602,6 +632,36 @@ } } }, + "Tools": { + "clients": { + "grpc": { + "libraryClient": "ToolsClient", + "rpcs": { + "CreateTool": { + "methods": ["createTool", "createTool", "createTool", "createToolCallable"] + }, + "DeleteTool": { + "methods": ["deleteTool", "deleteTool", "deleteTool", "deleteToolCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetTool": { + "methods": ["getTool", "getTool", "getTool", "getToolCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListTools": { + "methods": ["listTools", "listTools", "listTools", "listToolsPagedCallable", "listToolsCallable"] + }, + "UpdateTool": { + "methods": ["updateTool", "updateTool", "updateToolCallable"] + } + } + } + } + }, "Versions": { "clients": { "grpc": { diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/package-info.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/package-info.java index fc3e13394a88..019160442e17 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/package-info.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/package-info.java @@ -242,6 +242,26 @@ * } * }

                                          * + *

                                          ======================= GeneratorEvaluationsClient ======================= + * + *

                                          Service Description: Service for managing generator evaluations. + * + *

                                          Sample for GeneratorEvaluationsClient: + * + *

                                          {@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 (GeneratorEvaluationsClient generatorEvaluationsClient =
                                          + *     GeneratorEvaluationsClient.create()) {
                                          + *   GeneratorEvaluationName name =
                                          + *       GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]");
                                          + *   GeneratorEvaluation response = generatorEvaluationsClient.getGeneratorEvaluation(name);
                                          + * }
                                          + * }
                                          + * *

                                          ======================= IntentsClient ======================= * *

                                          Service Description: Service for managing [Intents][google.cloud.dialogflow.v2beta1.Intent]. @@ -384,6 +404,27 @@ * } * } * + *

                                          ======================= ToolsClient ======================= + * + *

                                          Service Description: Tool Service for LLM powered Agent Assist. Tools can be used to interact + * with remote APIs (e.g. fetching orders) to retrieve additional information as input to LLM. + * + *

                                          Sample for ToolsClient: + * + *

                                          {@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 (ToolsClient toolsClient = ToolsClient.create()) {
                                          + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                          + *   Tool tool = Tool.newBuilder().build();
                                          + *   String toolId = "toolId-868061997";
                                          + *   Tool response = toolsClient.createTool(parent, tool, toolId);
                                          + * }
                                          + * }
                                          + * *

                                          ======================= VersionsClient ======================= * *

                                          Service Description: Service for managing [Versions][google.cloud.dialogflow.v2beta1.Version]. diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStub.java new file mode 100644 index 000000000000..3c82d56318f9 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStub.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListGeneratorEvaluationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata; +import com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the GeneratorEvaluations service API. + * + *

                                          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class GeneratorEvaluationsStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createGeneratorEvaluationOperationCallable()"); + } + + public UnaryCallable + createGeneratorEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: createGeneratorEvaluationCallable()"); + } + + public UnaryCallable + getGeneratorEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: getGeneratorEvaluationCallable()"); + } + + public UnaryCallable + listGeneratorEvaluationsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listGeneratorEvaluationsPagedCallable()"); + } + + public UnaryCallable + listGeneratorEvaluationsCallable() { + throw new UnsupportedOperationException("Not implemented: listGeneratorEvaluationsCallable()"); + } + + public UnaryCallable + deleteGeneratorEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGeneratorEvaluationCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java new file mode 100644 index 000000000000..1c3cf629035c --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java @@ -0,0 +1,730 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListGeneratorEvaluationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata; +import com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link GeneratorEvaluationsStub}. + * + *

                                          The default instance has everything set to sensible defaults: + * + *

                                            + *
                                          • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
                                          • Credentials are acquired automatically through Application Default Credentials. + *
                                          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                          + * + *

                                          The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                          For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getGeneratorEvaluation: + * + *

                                          {@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
                                          + * GeneratorEvaluationsStubSettings.Builder generatorEvaluationsSettingsBuilder =
                                          + *     GeneratorEvaluationsStubSettings.newBuilder();
                                          + * generatorEvaluationsSettingsBuilder
                                          + *     .getGeneratorEvaluationSettings()
                                          + *     .setRetrySettings(
                                          + *         generatorEvaluationsSettingsBuilder
                                          + *             .getGeneratorEvaluationSettings()
                                          + *             .getRetrySettings()
                                          + *             .toBuilder()
                                          + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                          + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                          + *             .setMaxAttempts(5)
                                          + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                          + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                          + *             .setRetryDelayMultiplier(1.3)
                                          + *             .setRpcTimeoutMultiplier(1.5)
                                          + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                          + *             .build());
                                          + * GeneratorEvaluationsStubSettings generatorEvaluationsSettings =
                                          + *     generatorEvaluationsSettingsBuilder.build();
                                          + * }
                                          + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

                                          To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createGeneratorEvaluation: + * + *

                                          {@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
                                          + * GeneratorEvaluationsStubSettings.Builder generatorEvaluationsSettingsBuilder =
                                          + *     GeneratorEvaluationsStubSettings.newBuilder();
                                          + * TimedRetryAlgorithm timedRetryAlgorithm =
                                          + *     OperationalTimedPollAlgorithm.create(
                                          + *         RetrySettings.newBuilder()
                                          + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                          + *             .setRetryDelayMultiplier(1.5)
                                          + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                          + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                          + *             .build());
                                          + * generatorEvaluationsSettingsBuilder
                                          + *     .createClusterOperationSettings()
                                          + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                          + *     .build();
                                          + * }
                                          + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GeneratorEvaluationsStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); + + private final UnaryCallSettings + createGeneratorEvaluationSettings; + private final OperationCallSettings< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationSettings; + private final UnaryCallSettings + getGeneratorEvaluationSettings; + private final PagedCallSettings< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + ListGeneratorEvaluationsPagedResponse> + listGeneratorEvaluationsSettings; + private final UnaryCallSettings + deleteGeneratorEvaluationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsResponse, GeneratorEvaluation> + LIST_GENERATOR_EVALUATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + GeneratorEvaluation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGeneratorEvaluationsRequest injectToken( + ListGeneratorEvaluationsRequest payload, String token) { + return ListGeneratorEvaluationsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListGeneratorEvaluationsRequest injectPageSize( + ListGeneratorEvaluationsRequest payload, int pageSize) { + return ListGeneratorEvaluationsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListGeneratorEvaluationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGeneratorEvaluationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListGeneratorEvaluationsResponse payload) { + return payload.getGeneratorEvaluationsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + ListGeneratorEvaluationsPagedResponse> + LIST_GENERATOR_EVALUATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + ListGeneratorEvaluationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListGeneratorEvaluationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + GeneratorEvaluation> + pageContext = + PageContext.create( + callable, LIST_GENERATOR_EVALUATIONS_PAGE_STR_DESC, request, context); + return ListGeneratorEvaluationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createGeneratorEvaluation. */ + public UnaryCallSettings + createGeneratorEvaluationSettings() { + return createGeneratorEvaluationSettings; + } + + /** Returns the object with the settings used for calls to createGeneratorEvaluation. */ + public OperationCallSettings< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationSettings() { + return createGeneratorEvaluationOperationSettings; + } + + /** Returns the object with the settings used for calls to getGeneratorEvaluation. */ + public UnaryCallSettings + getGeneratorEvaluationSettings() { + return getGeneratorEvaluationSettings; + } + + /** Returns the object with the settings used for calls to listGeneratorEvaluations. */ + public PagedCallSettings< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + ListGeneratorEvaluationsPagedResponse> + listGeneratorEvaluationsSettings() { + return listGeneratorEvaluationsSettings; + } + + /** Returns the object with the settings used for calls to deleteGeneratorEvaluation. */ + public UnaryCallSettings + deleteGeneratorEvaluationSettings() { + return deleteGeneratorEvaluationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public GeneratorEvaluationsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcGeneratorEvaluationsStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonGeneratorEvaluationsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "dialogflow"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "dialogflow.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(GeneratorEvaluationsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(GeneratorEvaluationsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return GeneratorEvaluationsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected GeneratorEvaluationsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createGeneratorEvaluationSettings = settingsBuilder.createGeneratorEvaluationSettings().build(); + createGeneratorEvaluationOperationSettings = + settingsBuilder.createGeneratorEvaluationOperationSettings().build(); + getGeneratorEvaluationSettings = settingsBuilder.getGeneratorEvaluationSettings().build(); + listGeneratorEvaluationsSettings = settingsBuilder.listGeneratorEvaluationsSettings().build(); + deleteGeneratorEvaluationSettings = settingsBuilder.deleteGeneratorEvaluationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for GeneratorEvaluationsStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createGeneratorEvaluationSettings; + private final OperationCallSettings.Builder< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationSettings; + private final UnaryCallSettings.Builder + getGeneratorEvaluationSettings; + private final PagedCallSettings.Builder< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + ListGeneratorEvaluationsPagedResponse> + listGeneratorEvaluationsSettings; + private final UnaryCallSettings.Builder + deleteGeneratorEvaluationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createGeneratorEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGeneratorEvaluationOperationSettings = OperationCallSettings.newBuilder(); + getGeneratorEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listGeneratorEvaluationsSettings = + PagedCallSettings.newBuilder(LIST_GENERATOR_EVALUATIONS_PAGE_STR_FACT); + deleteGeneratorEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createGeneratorEvaluationSettings, + getGeneratorEvaluationSettings, + listGeneratorEvaluationsSettings, + deleteGeneratorEvaluationSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(GeneratorEvaluationsStubSettings settings) { + super(settings); + + createGeneratorEvaluationSettings = settings.createGeneratorEvaluationSettings.toBuilder(); + createGeneratorEvaluationOperationSettings = + settings.createGeneratorEvaluationOperationSettings.toBuilder(); + getGeneratorEvaluationSettings = settings.getGeneratorEvaluationSettings.toBuilder(); + listGeneratorEvaluationsSettings = settings.listGeneratorEvaluationsSettings.toBuilder(); + deleteGeneratorEvaluationSettings = settings.deleteGeneratorEvaluationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createGeneratorEvaluationSettings, + getGeneratorEvaluationSettings, + listGeneratorEvaluationsSettings, + deleteGeneratorEvaluationSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createGeneratorEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getGeneratorEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listGeneratorEvaluationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteGeneratorEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createGeneratorEvaluationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(GeneratorEvaluation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + GeneratorEvaluationOperationMetadata.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                          Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createGeneratorEvaluation. */ + public UnaryCallSettings.Builder + createGeneratorEvaluationSettings() { + return createGeneratorEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to createGeneratorEvaluation. */ + public OperationCallSettings.Builder< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationSettings() { + return createGeneratorEvaluationOperationSettings; + } + + /** Returns the builder for the settings used for calls to getGeneratorEvaluation. */ + public UnaryCallSettings.Builder + getGeneratorEvaluationSettings() { + return getGeneratorEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to listGeneratorEvaluations. */ + public PagedCallSettings.Builder< + ListGeneratorEvaluationsRequest, + ListGeneratorEvaluationsResponse, + ListGeneratorEvaluationsPagedResponse> + listGeneratorEvaluationsSettings() { + return listGeneratorEvaluationsSettings; + } + + /** Returns the builder for the settings used for calls to deleteGeneratorEvaluation. */ + public UnaryCallSettings.Builder + deleteGeneratorEvaluationSettings() { + return deleteGeneratorEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public GeneratorEvaluationsStubSettings build() throws IOException { + return new GeneratorEvaluationsStubSettings(this); + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsCallableFactory.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsCallableFactory.java new file mode 100644 index 000000000000..8f0a067b5694 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the GeneratorEvaluations service API. + * + *

                                          This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcGeneratorEvaluationsCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java new file mode 100644 index 000000000000..4c0a7e9a85a0 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java @@ -0,0 +1,403 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListGeneratorEvaluationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata; +import com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the GeneratorEvaluations service API. + * + *

                                          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcGeneratorEvaluationsStub extends GeneratorEvaluationsStub { + private static final MethodDescriptor + createGeneratorEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.GeneratorEvaluations/CreateGeneratorEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGeneratorEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getGeneratorEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.GeneratorEvaluations/GetGeneratorEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetGeneratorEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GeneratorEvaluation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsResponse> + listGeneratorEvaluationsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.GeneratorEvaluations/ListGeneratorEvaluations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGeneratorEvaluationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGeneratorEvaluationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteGeneratorEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.GeneratorEvaluations/DeleteGeneratorEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGeneratorEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + createGeneratorEvaluationCallable; + private final OperationCallable< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationCallable; + private final UnaryCallable + getGeneratorEvaluationCallable; + private final UnaryCallable + listGeneratorEvaluationsCallable; + private final UnaryCallable< + ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsPagedResponse> + listGeneratorEvaluationsPagedCallable; + private final UnaryCallable + deleteGeneratorEvaluationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcGeneratorEvaluationsStub create(GeneratorEvaluationsStubSettings settings) + throws IOException { + return new GrpcGeneratorEvaluationsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcGeneratorEvaluationsStub create(ClientContext clientContext) + throws IOException { + return new GrpcGeneratorEvaluationsStub( + GeneratorEvaluationsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcGeneratorEvaluationsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcGeneratorEvaluationsStub( + GeneratorEvaluationsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcGeneratorEvaluationsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcGeneratorEvaluationsStub( + GeneratorEvaluationsStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcGeneratorEvaluationsCallableFactory()); + } + + /** + * Constructs an instance of GrpcGeneratorEvaluationsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcGeneratorEvaluationsStub( + GeneratorEvaluationsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createGeneratorEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGeneratorEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getGeneratorEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGeneratorEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listGeneratorEvaluationsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listGeneratorEvaluationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteGeneratorEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGeneratorEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.createGeneratorEvaluationCallable = + callableFactory.createUnaryCallable( + createGeneratorEvaluationTransportSettings, + settings.createGeneratorEvaluationSettings(), + clientContext); + this.createGeneratorEvaluationOperationCallable = + callableFactory.createOperationCallable( + createGeneratorEvaluationTransportSettings, + settings.createGeneratorEvaluationOperationSettings(), + clientContext, + operationsStub); + this.getGeneratorEvaluationCallable = + callableFactory.createUnaryCallable( + getGeneratorEvaluationTransportSettings, + settings.getGeneratorEvaluationSettings(), + clientContext); + this.listGeneratorEvaluationsCallable = + callableFactory.createUnaryCallable( + listGeneratorEvaluationsTransportSettings, + settings.listGeneratorEvaluationsSettings(), + clientContext); + this.listGeneratorEvaluationsPagedCallable = + callableFactory.createPagedCallable( + listGeneratorEvaluationsTransportSettings, + settings.listGeneratorEvaluationsSettings(), + clientContext); + this.deleteGeneratorEvaluationCallable = + callableFactory.createUnaryCallable( + deleteGeneratorEvaluationTransportSettings, + settings.deleteGeneratorEvaluationSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + createGeneratorEvaluationCallable() { + return createGeneratorEvaluationCallable; + } + + @Override + public OperationCallable< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationCallable() { + return createGeneratorEvaluationOperationCallable; + } + + @Override + public UnaryCallable + getGeneratorEvaluationCallable() { + return getGeneratorEvaluationCallable; + } + + @Override + public UnaryCallable + listGeneratorEvaluationsCallable() { + return listGeneratorEvaluationsCallable; + } + + @Override + public UnaryCallable + listGeneratorEvaluationsPagedCallable() { + return listGeneratorEvaluationsPagedCallable; + } + + @Override + public UnaryCallable + deleteGeneratorEvaluationCallable() { + return deleteGeneratorEvaluationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java index 82552909c3ec..147e3e4bcb08 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java @@ -31,6 +31,8 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest; import com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse; import com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest; import com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse; import com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest; @@ -143,6 +145,21 @@ public class GrpcParticipantsStub extends ParticipantsStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.Participants/BidiStreamingAnalyzeContent") + .setRequestMarshaller( + ProtoUtils.marshaller(BidiStreamingAnalyzeContentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BidiStreamingAnalyzeContentResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor suggestArticlesMethodDescriptor = MethodDescriptor.newBuilder() @@ -250,6 +267,9 @@ public class GrpcParticipantsStub extends ParticipantsStub { private final BidiStreamingCallable< StreamingAnalyzeContentRequest, StreamingAnalyzeContentResponse> streamingAnalyzeContentCallable; + private final BidiStreamingCallable< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentCallable; private final UnaryCallable suggestArticlesCallable; private final UnaryCallable @@ -370,6 +390,13 @@ protected GrpcParticipantsStub( .newBuilder() .setMethodDescriptor(streamingAnalyzeContentMethodDescriptor) .build(); + GrpcCallSettings + bidiStreamingAnalyzeContentTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(bidiStreamingAnalyzeContentMethodDescriptor) + .build(); GrpcCallSettings suggestArticlesTransportSettings = GrpcCallSettings.newBuilder() @@ -485,6 +512,11 @@ protected GrpcParticipantsStub( streamingAnalyzeContentTransportSettings, settings.streamingAnalyzeContentSettings(), clientContext); + this.bidiStreamingAnalyzeContentCallable = + callableFactory.createBidiStreamingCallable( + bidiStreamingAnalyzeContentTransportSettings, + settings.bidiStreamingAnalyzeContentSettings(), + clientContext); this.suggestArticlesCallable = callableFactory.createUnaryCallable( suggestArticlesTransportSettings, settings.suggestArticlesSettings(), clientContext); @@ -570,6 +602,13 @@ public UnaryCallable analyzeConte return streamingAnalyzeContentCallable; } + @Override + public BidiStreamingCallable< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentCallable() { + return bidiStreamingAnalyzeContentCallable; + } + @Override public UnaryCallable suggestArticlesCallable() { return suggestArticlesCallable; diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsCallableFactory.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsCallableFactory.java new file mode 100644 index 000000000000..ba52d6fd103c --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Tools service API. + * + *

                                          This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcToolsCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java new file mode 100644 index 000000000000..07b752c548d2 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java @@ -0,0 +1,363 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListLocationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListToolsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.CreateToolRequest; +import com.google.cloud.dialogflow.v2beta1.DeleteToolRequest; +import com.google.cloud.dialogflow.v2beta1.GetToolRequest; +import com.google.cloud.dialogflow.v2beta1.ListToolsRequest; +import com.google.cloud.dialogflow.v2beta1.ListToolsResponse; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.UpdateToolRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Tools service API. + * + *

                                          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcToolsStub extends ToolsStub { + private static final MethodDescriptor createToolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/CreateTool") + .setRequestMarshaller(ProtoUtils.marshaller(CreateToolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tool.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getToolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/GetTool") + .setRequestMarshaller(ProtoUtils.marshaller(GetToolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tool.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listToolsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/ListTools") + .setRequestMarshaller(ProtoUtils.marshaller(ListToolsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListToolsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteToolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/DeleteTool") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteToolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateToolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/UpdateTool") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateToolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tool.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable createToolCallable; + private final UnaryCallable getToolCallable; + private final UnaryCallable listToolsCallable; + private final UnaryCallable listToolsPagedCallable; + private final UnaryCallable deleteToolCallable; + private final UnaryCallable updateToolCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcToolsStub create(ToolsStubSettings settings) throws IOException { + return new GrpcToolsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcToolsStub create(ClientContext clientContext) throws IOException { + return new GrpcToolsStub(ToolsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcToolsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcToolsStub( + ToolsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcToolsStub, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected GrpcToolsStub(ToolsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcToolsCallableFactory()); + } + + /** + * Constructs an instance of GrpcToolsStub, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected GrpcToolsStub( + ToolsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createToolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createToolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getToolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getToolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listToolsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listToolsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteToolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteToolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateToolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateToolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("tool.name", String.valueOf(request.getTool().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.createToolCallable = + callableFactory.createUnaryCallable( + createToolTransportSettings, settings.createToolSettings(), clientContext); + this.getToolCallable = + callableFactory.createUnaryCallable( + getToolTransportSettings, settings.getToolSettings(), clientContext); + this.listToolsCallable = + callableFactory.createUnaryCallable( + listToolsTransportSettings, settings.listToolsSettings(), clientContext); + this.listToolsPagedCallable = + callableFactory.createPagedCallable( + listToolsTransportSettings, settings.listToolsSettings(), clientContext); + this.deleteToolCallable = + callableFactory.createUnaryCallable( + deleteToolTransportSettings, settings.deleteToolSettings(), clientContext); + this.updateToolCallable = + callableFactory.createUnaryCallable( + updateToolTransportSettings, settings.updateToolSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createToolCallable() { + return createToolCallable; + } + + @Override + public UnaryCallable getToolCallable() { + return getToolCallable; + } + + @Override + public UnaryCallable listToolsCallable() { + return listToolsCallable; + } + + @Override + public UnaryCallable listToolsPagedCallable() { + return listToolsPagedCallable; + } + + @Override + public UnaryCallable deleteToolCallable() { + return deleteToolCallable; + } + + @Override + public UnaryCallable updateToolCallable() { + return updateToolCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsCallableFactory.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsCallableFactory.java new file mode 100644 index 000000000000..b43416f03c9b --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the GeneratorEvaluations service API. + * + *

                                          This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonGeneratorEvaluationsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java new file mode 100644 index 000000000000..979ae6016071 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java @@ -0,0 +1,623 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListGeneratorEvaluationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListLocationsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata; +import com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the GeneratorEvaluations service API. + * + *

                                          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonGeneratorEvaluationsStub extends GeneratorEvaluationsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(GeneratorEvaluation.getDescriptor()) + .add(GeneratorEvaluationOperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createGeneratorEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.GeneratorEvaluations/CreateGeneratorEvaluation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{parent=projects/*/locations/*/generators/*}/evaluations", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "generatorEvaluation", + request.getGeneratorEvaluation(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateGeneratorEvaluationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getGeneratorEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.GeneratorEvaluations/GetGeneratorEvaluation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*/locations/*/generators/*/evaluations/*}", + 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(GeneratorEvaluation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsResponse> + listGeneratorEvaluationsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.GeneratorEvaluations/ListGeneratorEvaluations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{parent=projects/*/locations/*/generators/*}/evaluations", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListGeneratorEvaluationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteGeneratorEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.GeneratorEvaluations/DeleteGeneratorEvaluation") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*/locations/*/generators/*/evaluations/*}", + 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(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*}/locations", + 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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*/locations/*}", + 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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createGeneratorEvaluationCallable; + private final OperationCallable< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationCallable; + private final UnaryCallable + getGeneratorEvaluationCallable; + private final UnaryCallable + listGeneratorEvaluationsCallable; + private final UnaryCallable< + ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsPagedResponse> + listGeneratorEvaluationsPagedCallable; + private final UnaryCallable + deleteGeneratorEvaluationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonGeneratorEvaluationsStub create( + GeneratorEvaluationsStubSettings settings) throws IOException { + return new HttpJsonGeneratorEvaluationsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonGeneratorEvaluationsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonGeneratorEvaluationsStub( + GeneratorEvaluationsStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonGeneratorEvaluationsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonGeneratorEvaluationsStub( + GeneratorEvaluationsStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonGeneratorEvaluationsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonGeneratorEvaluationsStub( + GeneratorEvaluationsStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonGeneratorEvaluationsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonGeneratorEvaluationsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonGeneratorEvaluationsStub( + GeneratorEvaluationsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v2beta1/{name=projects/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v2beta1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v2beta1/{name=projects/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v2beta1/{name=projects/*/locations/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v2beta1/{name=projects/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v2beta1/{name=projects/*/locations/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings + createGeneratorEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createGeneratorEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getGeneratorEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getGeneratorEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listGeneratorEvaluationsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listGeneratorEvaluationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteGeneratorEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteGeneratorEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.createGeneratorEvaluationCallable = + callableFactory.createUnaryCallable( + createGeneratorEvaluationTransportSettings, + settings.createGeneratorEvaluationSettings(), + clientContext); + this.createGeneratorEvaluationOperationCallable = + callableFactory.createOperationCallable( + createGeneratorEvaluationTransportSettings, + settings.createGeneratorEvaluationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getGeneratorEvaluationCallable = + callableFactory.createUnaryCallable( + getGeneratorEvaluationTransportSettings, + settings.getGeneratorEvaluationSettings(), + clientContext); + this.listGeneratorEvaluationsCallable = + callableFactory.createUnaryCallable( + listGeneratorEvaluationsTransportSettings, + settings.listGeneratorEvaluationsSettings(), + clientContext); + this.listGeneratorEvaluationsPagedCallable = + callableFactory.createPagedCallable( + listGeneratorEvaluationsTransportSettings, + settings.listGeneratorEvaluationsSettings(), + clientContext); + this.deleteGeneratorEvaluationCallable = + callableFactory.createUnaryCallable( + deleteGeneratorEvaluationTransportSettings, + settings.deleteGeneratorEvaluationSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createGeneratorEvaluationMethodDescriptor); + methodDescriptors.add(getGeneratorEvaluationMethodDescriptor); + methodDescriptors.add(listGeneratorEvaluationsMethodDescriptor); + methodDescriptors.add(deleteGeneratorEvaluationMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + createGeneratorEvaluationCallable() { + return createGeneratorEvaluationCallable; + } + + @Override + public OperationCallable< + CreateGeneratorEvaluationRequest, + GeneratorEvaluation, + GeneratorEvaluationOperationMetadata> + createGeneratorEvaluationOperationCallable() { + return createGeneratorEvaluationOperationCallable; + } + + @Override + public UnaryCallable + getGeneratorEvaluationCallable() { + return getGeneratorEvaluationCallable; + } + + @Override + public UnaryCallable + listGeneratorEvaluationsCallable() { + return listGeneratorEvaluationsCallable; + } + + @Override + public UnaryCallable + listGeneratorEvaluationsPagedCallable() { + return listGeneratorEvaluationsPagedCallable; + } + + @Override + public UnaryCallable + deleteGeneratorEvaluationCallable() { + return deleteGeneratorEvaluationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java index f32d2eb07e63..1cb379dd1ec2 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java @@ -36,6 +36,8 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest; import com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse; import com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest; import com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse; import com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest; @@ -981,6 +983,15 @@ public UnaryCallable getLocationCallable() { + " this method yet."); } + @Override + public BidiStreamingCallable< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentCallable() { + throw new UnsupportedOperationException( + "Not implemented: bidiStreamingAnalyzeContentCallable(). REST transport is not implemented" + + " for this method yet."); + } + @Override public final void close() { try { diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsCallableFactory.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsCallableFactory.java new file mode 100644 index 000000000000..4700a7f047b2 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Tools service API. + * + *

                                          This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonToolsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java new file mode 100644 index 000000000000..1d7e412765c7 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java @@ -0,0 +1,564 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListLocationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListToolsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.CreateToolRequest; +import com.google.cloud.dialogflow.v2beta1.DeleteToolRequest; +import com.google.cloud.dialogflow.v2beta1.GetToolRequest; +import com.google.cloud.dialogflow.v2beta1.ListToolsRequest; +import com.google.cloud.dialogflow.v2beta1.ListToolsResponse; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.UpdateToolRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Tools service API. + * + *

                                          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonToolsStub extends ToolsStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor createToolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/CreateTool") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{parent=projects/*/locations/*}/tools", + 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, "toolId", request.getToolId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("tool", request.getTool(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tool.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getToolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/GetTool") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*/locations/*/tools/*}", + 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(Tool.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listToolsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/ListTools") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{parent=projects/*/locations/*}/tools", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListToolsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteToolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/DeleteTool") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*/locations/*/tools/*}", + 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(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateToolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dialogflow.v2beta1.Tools/UpdateTool") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{tool.name=projects/*/locations/*/tools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "tool.name", request.getTool().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("tool", request.getTool(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tool.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*}/locations", + 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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*/locations/*}", + 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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createToolCallable; + private final UnaryCallable getToolCallable; + private final UnaryCallable listToolsCallable; + private final UnaryCallable listToolsPagedCallable; + private final UnaryCallable deleteToolCallable; + private final UnaryCallable updateToolCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonToolsStub create(ToolsStubSettings settings) throws IOException { + return new HttpJsonToolsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonToolsStub create(ClientContext clientContext) throws IOException { + return new HttpJsonToolsStub(ToolsStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonToolsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonToolsStub( + ToolsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonToolsStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonToolsStub(ToolsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonToolsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonToolsStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonToolsStub( + ToolsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createToolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createToolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getToolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getToolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listToolsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listToolsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteToolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteToolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateToolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateToolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("tool.name", String.valueOf(request.getTool().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.createToolCallable = + callableFactory.createUnaryCallable( + createToolTransportSettings, settings.createToolSettings(), clientContext); + this.getToolCallable = + callableFactory.createUnaryCallable( + getToolTransportSettings, settings.getToolSettings(), clientContext); + this.listToolsCallable = + callableFactory.createUnaryCallable( + listToolsTransportSettings, settings.listToolsSettings(), clientContext); + this.listToolsPagedCallable = + callableFactory.createPagedCallable( + listToolsTransportSettings, settings.listToolsSettings(), clientContext); + this.deleteToolCallable = + callableFactory.createUnaryCallable( + deleteToolTransportSettings, settings.deleteToolSettings(), clientContext); + this.updateToolCallable = + callableFactory.createUnaryCallable( + updateToolTransportSettings, settings.updateToolSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createToolMethodDescriptor); + methodDescriptors.add(getToolMethodDescriptor); + methodDescriptors.add(listToolsMethodDescriptor); + methodDescriptors.add(deleteToolMethodDescriptor); + methodDescriptors.add(updateToolMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createToolCallable() { + return createToolCallable; + } + + @Override + public UnaryCallable getToolCallable() { + return getToolCallable; + } + + @Override + public UnaryCallable listToolsCallable() { + return listToolsCallable; + } + + @Override + public UnaryCallable listToolsPagedCallable() { + return listToolsPagedCallable; + } + + @Override + public UnaryCallable deleteToolCallable() { + return deleteToolCallable; + } + + @Override + public UnaryCallable updateToolCallable() { + return updateToolCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStub.java index 8ade3f00ffd8..fec31648aac3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStub.java @@ -26,6 +26,8 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest; import com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse; import com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest; import com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse; import com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest; @@ -93,6 +95,13 @@ public UnaryCallable analyzeConte throw new UnsupportedOperationException("Not implemented: streamingAnalyzeContentCallable()"); } + public BidiStreamingCallable< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentCallable() { + throw new UnsupportedOperationException( + "Not implemented: bidiStreamingAnalyzeContentCallable()"); + } + public UnaryCallable suggestArticlesCallable() { throw new UnsupportedOperationException("Not implemented: suggestArticlesCallable()"); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java index 26e9e962b192..b371ee11b9a4 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java @@ -49,6 +49,8 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest; import com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse; import com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest; import com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse; import com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest; @@ -154,6 +156,9 @@ public class ParticipantsStubSettings extends StubSettings streamingAnalyzeContentSettings; + private final StreamingCallSettings< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentSettings; private final UnaryCallSettings suggestArticlesSettings; private final UnaryCallSettings @@ -367,6 +372,13 @@ public UnaryCallSettings analyzeC return streamingAnalyzeContentSettings; } + /** Returns the object with the settings used for calls to bidiStreamingAnalyzeContent. */ + public StreamingCallSettings< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentSettings() { + return bidiStreamingAnalyzeContentSettings; + } + /** Returns the object with the settings used for calls to suggestArticles. */ public UnaryCallSettings suggestArticlesSettings() { @@ -542,6 +554,8 @@ protected ParticipantsStubSettings(Builder settingsBuilder) throws IOException { updateParticipantSettings = settingsBuilder.updateParticipantSettings().build(); analyzeContentSettings = settingsBuilder.analyzeContentSettings().build(); streamingAnalyzeContentSettings = settingsBuilder.streamingAnalyzeContentSettings().build(); + bidiStreamingAnalyzeContentSettings = + settingsBuilder.bidiStreamingAnalyzeContentSettings().build(); suggestArticlesSettings = settingsBuilder.suggestArticlesSettings().build(); suggestFaqAnswersSettings = settingsBuilder.suggestFaqAnswersSettings().build(); suggestSmartRepliesSettings = settingsBuilder.suggestSmartRepliesSettings().build(); @@ -569,6 +583,9 @@ public static class Builder extends StubSettings.Builder streamingAnalyzeContentSettings; + private final StreamingCallSettings.Builder< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentSettings; private final UnaryCallSettings.Builder suggestArticlesSettings; private final UnaryCallSettings.Builder @@ -601,6 +618,8 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_8_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -639,6 +658,17 @@ public static class Builder extends StubSettings.Builder getParticip return streamingAnalyzeContentSettings; } + /** Returns the builder for the settings used for calls to bidiStreamingAnalyzeContent. */ + public StreamingCallSettings.Builder< + BidiStreamingAnalyzeContentRequest, BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContentSettings() { + return bidiStreamingAnalyzeContentSettings; + } + /** Returns the builder for the settings used for calls to suggestArticles. */ public UnaryCallSettings.Builder suggestArticlesSettings() { diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStub.java new file mode 100644 index 000000000000..da450cda00c4 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStub.java @@ -0,0 +1,88 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListLocationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListToolsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.CreateToolRequest; +import com.google.cloud.dialogflow.v2beta1.DeleteToolRequest; +import com.google.cloud.dialogflow.v2beta1.GetToolRequest; +import com.google.cloud.dialogflow.v2beta1.ListToolsRequest; +import com.google.cloud.dialogflow.v2beta1.ListToolsResponse; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.UpdateToolRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Tools service API. + * + *

                                          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ToolsStub implements BackgroundResource { + + public UnaryCallable createToolCallable() { + throw new UnsupportedOperationException("Not implemented: createToolCallable()"); + } + + public UnaryCallable getToolCallable() { + throw new UnsupportedOperationException("Not implemented: getToolCallable()"); + } + + public UnaryCallable listToolsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listToolsPagedCallable()"); + } + + public UnaryCallable listToolsCallable() { + throw new UnsupportedOperationException("Not implemented: listToolsCallable()"); + } + + public UnaryCallable deleteToolCallable() { + throw new UnsupportedOperationException("Not implemented: deleteToolCallable()"); + } + + public UnaryCallable updateToolCallable() { + throw new UnsupportedOperationException("Not implemented: updateToolCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.java new file mode 100644 index 000000000000..caba7c99a3e9 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.java @@ -0,0 +1,611 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub; + +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListLocationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListToolsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.v2beta1.CreateToolRequest; +import com.google.cloud.dialogflow.v2beta1.DeleteToolRequest; +import com.google.cloud.dialogflow.v2beta1.GetToolRequest; +import com.google.cloud.dialogflow.v2beta1.ListToolsRequest; +import com.google.cloud.dialogflow.v2beta1.ListToolsResponse; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.UpdateToolRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ToolsStub}. + * + *

                                          The default instance has everything set to sensible defaults: + * + *

                                            + *
                                          • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
                                          • Credentials are acquired automatically through Application Default Credentials. + *
                                          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                          + * + *

                                          The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                          For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createTool: + * + *

                                          {@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
                                          + * ToolsStubSettings.Builder toolsSettingsBuilder = ToolsStubSettings.newBuilder();
                                          + * toolsSettingsBuilder
                                          + *     .createToolSettings()
                                          + *     .setRetrySettings(
                                          + *         toolsSettingsBuilder
                                          + *             .createToolSettings()
                                          + *             .getRetrySettings()
                                          + *             .toBuilder()
                                          + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                          + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                          + *             .setMaxAttempts(5)
                                          + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                          + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                          + *             .setRetryDelayMultiplier(1.3)
                                          + *             .setRpcTimeoutMultiplier(1.5)
                                          + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                          + *             .build());
                                          + * ToolsStubSettings toolsSettings = toolsSettingsBuilder.build();
                                          + * }
                                          + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ToolsStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); + + private final UnaryCallSettings createToolSettings; + private final UnaryCallSettings getToolSettings; + private final PagedCallSettings + listToolsSettings; + private final UnaryCallSettings deleteToolSettings; + private final UnaryCallSettings updateToolSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_TOOLS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListToolsRequest injectToken(ListToolsRequest payload, String token) { + return ListToolsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListToolsRequest injectPageSize(ListToolsRequest payload, int pageSize) { + return ListToolsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListToolsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListToolsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListToolsResponse payload) { + return payload.getToolsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListToolsRequest, ListToolsResponse, ListToolsPagedResponse> + LIST_TOOLS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListToolsRequest, ListToolsResponse, ListToolsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListToolsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TOOLS_PAGE_STR_DESC, request, context); + return ListToolsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createTool. */ + public UnaryCallSettings createToolSettings() { + return createToolSettings; + } + + /** Returns the object with the settings used for calls to getTool. */ + public UnaryCallSettings getToolSettings() { + return getToolSettings; + } + + /** Returns the object with the settings used for calls to listTools. */ + public PagedCallSettings + listToolsSettings() { + return listToolsSettings; + } + + /** Returns the object with the settings used for calls to deleteTool. */ + public UnaryCallSettings deleteToolSettings() { + return deleteToolSettings; + } + + /** Returns the object with the settings used for calls to updateTool. */ + public UnaryCallSettings updateToolSettings() { + return updateToolSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public ToolsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcToolsStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonToolsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "dialogflow"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "dialogflow.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(ToolsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(ToolsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ToolsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ToolsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createToolSettings = settingsBuilder.createToolSettings().build(); + getToolSettings = settingsBuilder.getToolSettings().build(); + listToolsSettings = settingsBuilder.listToolsSettings().build(); + deleteToolSettings = settingsBuilder.deleteToolSettings().build(); + updateToolSettings = settingsBuilder.updateToolSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for ToolsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder createToolSettings; + private final UnaryCallSettings.Builder getToolSettings; + private final PagedCallSettings.Builder< + ListToolsRequest, ListToolsResponse, ListToolsPagedResponse> + listToolsSettings; + private final UnaryCallSettings.Builder deleteToolSettings; + private final UnaryCallSettings.Builder updateToolSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listToolsSettings = PagedCallSettings.newBuilder(LIST_TOOLS_PAGE_STR_FACT); + deleteToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createToolSettings, + getToolSettings, + listToolsSettings, + deleteToolSettings, + updateToolSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(ToolsStubSettings settings) { + super(settings); + + createToolSettings = settings.createToolSettings.toBuilder(); + getToolSettings = settings.getToolSettings.toBuilder(); + listToolsSettings = settings.listToolsSettings.toBuilder(); + deleteToolSettings = settings.deleteToolSettings.toBuilder(); + updateToolSettings = settings.updateToolSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createToolSettings, + getToolSettings, + listToolsSettings, + deleteToolSettings, + updateToolSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createToolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getToolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listToolsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteToolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateToolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                          Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createTool. */ + public UnaryCallSettings.Builder createToolSettings() { + return createToolSettings; + } + + /** Returns the builder for the settings used for calls to getTool. */ + public UnaryCallSettings.Builder getToolSettings() { + return getToolSettings; + } + + /** Returns the builder for the settings used for calls to listTools. */ + public PagedCallSettings.Builder + listToolsSettings() { + return listToolsSettings; + } + + /** Returns the builder for the settings used for calls to deleteTool. */ + public UnaryCallSettings.Builder deleteToolSettings() { + return deleteToolSettings; + } + + /** Returns the builder for the settings used for calls to updateTool. */ + public UnaryCallSettings.Builder updateToolSettings() { + return updateToolSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public ToolsStubSettings build() throws IOException { + return new ToolsStubSettings(this); + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json index 58e6da5ff707..5f8a9edcdeba 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json +++ b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json @@ -576,7 +576,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +585,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +594,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +603,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +612,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnnotatedMessagePart", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction$DuplicateCheckResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +621,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnnotatedMessagePart$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction$DuplicateCheckResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +630,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnswerFeedback", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction$DuplicateCheckResult$DuplicateSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +639,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnswerFeedback$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction$DuplicateCheckResult$DuplicateSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +648,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnswerFeedback$CorrectnessLevel", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +657,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnswerRecord", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$AgentActionSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +666,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AnswerRecord$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$AgentActionSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +675,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ArticleAnswer", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +684,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ArticleAnswer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$DuplicateCheckResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +693,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AssistQueryParameters", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$DuplicateCheckResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +702,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AssistQueryParameters$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$DuplicateCheckResult$DuplicateSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +711,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AudioEncoding", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$DuplicateCheckResult$DuplicateSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +720,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AudioInput", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$SampleResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +729,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AudioInput$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$SampleResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +738,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$Sources", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +747,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion$Sources$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +756,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply", + "name": "com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +765,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply$AutomatedAgentReplyType", + "name": "com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +774,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +783,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BargeInConfig", + "name": "com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +792,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BargeInConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AnnotatedMessagePart", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +801,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.AnnotatedMessagePart$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +810,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AnswerFeedback", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +819,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.AnswerFeedback$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +828,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AnswerFeedback$CorrectnessLevel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +837,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.AnswerRecord", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +846,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AnswerRecord$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +855,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ArticleAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +864,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ArticleAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +873,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.AssistQueryParameters", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +882,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AssistQueryParameters$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +891,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.AudioEncoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +900,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AudioInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +909,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.AudioInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +918,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply$AutomatedAgentReplyType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.BargeInConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BargeInConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigOperationMetadata", + "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigOperationMetadata$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigRequest", + "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo", + "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest", + "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse", + "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Connection", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Connection$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Connection$CertificateState", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Connection$ErrorDetails", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Connection$ErrorDetails$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Connection$State", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Context", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Context$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$Config", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$Config$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$ContextContent", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$Config$VoiceSessionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$ContextContent$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$Config$VoiceSessionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$ContextContent$ContentFormat", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$Input", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$UpdateMode", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$Input$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ConversationStage", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$LifecycleState", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$BargeInSignal", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$MimeContent", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$BargeInSignal$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$MimeContent$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$SipHeader", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$TurnComplete", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$SipHeader$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$TurnComplete$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ConversationContext", + "name": "com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ConversationContext$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ConversationEvent", + "name": "com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ConversationEvent$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ConversationEvent$Type", + "name": "com.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ConversationPhoneNumber", + "name": "com.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ConversationPhoneNumber$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ConversationProfile", + "name": "com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ConversationProfile$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateContextRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateContextRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Connection", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateConversationRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Connection$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateConversationRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Connection$CertificateState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Connection$ErrorDetails", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Connection$ErrorDetails$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Connection$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Context", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Context$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateGeneratorRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateGeneratorRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateIntentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateIntentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$ContextContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$ContextContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$ContextContent$ContentFormat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateMessageRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ContextReference$UpdateMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateMessageRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$ConversationStage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$LifecycleState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$MimeContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateSipTrunkRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$MimeContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateSipTrunkRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$SipHeader", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateVersionRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Conversation$TelephonyConnectionInfo$SipHeader$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.CreateVersionRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ConversationContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ConversationContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ConversationEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ConversationEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ConversationEvent$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteContextRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ConversationPhoneNumber", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteContextRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ConversationPhoneNumber$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ConversationProfile", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ConversationProfile$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateContextRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateContextRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteGeneratorRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteGeneratorRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeletePhoneNumberRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeletePhoneNumberRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateGeneratorRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateGeneratorRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteSipTrunkRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateIntentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteSipTrunkRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateIntentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DetectIntentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.CreateMessageRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DetectIntentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateMessageRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DetectIntentResponse", + "name": "com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DetectIntentResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer", + "name": "com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Document", + "name": "com.google.cloud.dialogflow.v2beta1.CreateSipTrunkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Document$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateSipTrunkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Document$KnowledgeType", + "name": "com.google.cloud.dialogflow.v2beta1.CreateToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Document$ReloadStatus", + "name": "com.google.cloud.dialogflow.v2beta1.CreateToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Document$ReloadStatus$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CreateVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Document$State", + "name": "com.google.cloud.dialogflow.v2beta1.CreateVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DtmfParameters", + "name": "com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2025,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.DtmfParameters$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2034,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EncryptionSpec", + "name": "com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams$PhoneticEncoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2043,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EncryptionSpec$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2052,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EntityType", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2061,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EntityType$AutoExpansionMode", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2070,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EntityType$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2079,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EntityType$Entity", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteContextRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2088,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EntityType$Entity$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteContextRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2097,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EntityType$Kind", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2106,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EntityTypeBatch", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2115,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EntityTypeBatch$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Environment", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Environment$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Environment$State", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EnvironmentHistory", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EnvironmentHistory$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +2169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EnvironmentHistory$Entry", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +2178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EnvironmentHistory$Entry$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +2187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EventInput", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteGeneratorRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +2196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.EventInput$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteGeneratorRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +2205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ExportAgentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +2214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ExportAgentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +2223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ExportAgentResponse", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +2232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ExportAgentResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +2241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ExportOperationMetadata", + "name": "com.google.cloud.dialogflow.v2beta1.DeletePhoneNumberRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +2250,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ExportOperationMetadata$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeletePhoneNumberRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +2259,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.FaqAnswer", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +2268,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.FaqAnswer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +2277,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.FewShotExample", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteSipTrunkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +2286,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.FewShotExample$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteSipTrunkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +2295,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.FreeFormContext", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2304,7 +2304,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.FreeFormContext$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2313,7 +2313,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2322,7 +2322,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2331,7 +2331,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment", + "name": "com.google.cloud.dialogflow.v2beta1.DetectIntentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2340,7 +2340,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DetectIntentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2349,7 +2349,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$Feature", + "name": "com.google.cloud.dialogflow.v2beta1.DetectIntentResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2358,7 +2358,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$Feature$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DetectIntentResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2367,7 +2367,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$Feature$Type", + "name": "com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2376,7 +2376,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$GenericWebService", + "name": "com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2385,7 +2385,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$GenericWebService$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Document", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2394,7 +2394,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GcsDestination", + "name": "com.google.cloud.dialogflow.v2beta1.Document$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2403,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GcsDestination$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Document$KnowledgeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GcsSource", + "name": "com.google.cloud.dialogflow.v2beta1.Document$ReloadStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2421,7 +2421,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GcsSource$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Document$ReloadStatus$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2430,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GcsSources", + "name": "com.google.cloud.dialogflow.v2beta1.Document$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2439,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GcsSources$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.DtmfParameters", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2448,7 +2448,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest", + "name": "com.google.cloud.dialogflow.v2beta1.DtmfParameters$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2457,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.EncryptionSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2466,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse", + "name": "com.google.cloud.dialogflow.v2beta1.EncryptionSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2475,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.EntityType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2484,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest", + "name": "com.google.cloud.dialogflow.v2beta1.EntityType$AutoExpansionMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2493,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.EntityType$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2502,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest$MinimalConversation", + "name": "com.google.cloud.dialogflow.v2beta1.EntityType$Entity", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2511,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest$MinimalConversation$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.EntityType$Entity$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2520,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse", + "name": "com.google.cloud.dialogflow.v2beta1.EntityType$Kind", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2529,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.EntityTypeBatch", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2538,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse$Summary", + "name": "com.google.cloud.dialogflow.v2beta1.EntityTypeBatch$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2547,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse$Summary$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Environment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2556,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Environment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2565,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Environment$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2574,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.EnvironmentHistory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2583,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.EnvironmentHistory$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2592,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse$GeneratorSuggestionAnswer", + "name": "com.google.cloud.dialogflow.v2beta1.EnvironmentHistory$Entry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2601,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse$GeneratorSuggestionAnswer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.EnvironmentHistory$Entry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2610,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Generator", + "name": "com.google.cloud.dialogflow.v2beta1.EvaluationStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2619,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Generator$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.EvaluationStatus$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2628,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion", + "name": "com.google.cloud.dialogflow.v2beta1.EventInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2637,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.EventInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2646,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetAgentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ExportAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2655,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetAgentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ExportAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2664,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ExportAgentResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2673,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ExportAgentResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2682,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetContextRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ExportOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2691,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetContextRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ExportOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2700,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest", + "name": "com.google.cloud.dialogflow.v2beta1.FaqAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2709,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.FaqAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2718,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetConversationRequest", + "name": "com.google.cloud.dialogflow.v2beta1.FewShotExample", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2727,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetConversationRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.FewShotExample$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2736,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetDocumentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.FreeFormContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2745,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetDocumentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.FreeFormContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2754,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetEncryptionSpecRequest", + "name": "com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2763,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetEncryptionSpecRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2772,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2781,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2790,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$Feature", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2799,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$Feature$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2808,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$Feature$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2817,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$GenericWebService", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2826,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Fulfillment$GenericWebService$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2835,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GcsDestination", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2844,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetGeneratorRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GcsDestination$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2853,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetGeneratorRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GcsSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2862,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetIntentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GcsSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2871,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetIntentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GcsSources", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2880,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GcsSources$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2889,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2898,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetParticipantRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2907,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetParticipantRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2916,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2925,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2934,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetSipTrunkRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2943,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetSipTrunkRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest$MinimalConversation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2952,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest$MinimalConversation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2961,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2970,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetVersionRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2979,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.GetVersionRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse$Summary", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2988,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse$Summary$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2997,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3006,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationModelConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3015,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationModelConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3024,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationProcessConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3033,7 +3033,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationProcessConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse$GeneratorSuggestionAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3042,7 +3042,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$MessageAnalysisConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse$GeneratorSuggestionAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3051,7 +3051,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$MessageAnalysisConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Generator", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3060,7 +3060,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionConfig", + "name": "com.google.cloud.dialogflow.v2beta1.Generator$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3069,7 +3069,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3078,7 +3078,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionFeatureConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3087,7 +3087,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionFeatureConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3096,7 +3096,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$AgentAssistInputDataConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3105,7 +3105,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$AgentAssistInputDataConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3114,7 +3114,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$ContextFilterSettings", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3123,7 +3123,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$ContextFilterSettings$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$DatasetInputDataConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3132,7 +3132,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DialogflowQuerySource", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$DatasetInputDataConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3141,7 +3141,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DialogflowQuerySource$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$InputDataConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3150,7 +3150,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DialogflowQuerySource$HumanAgentSideConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$InputDataConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3159,7 +3159,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DialogflowQuerySource$HumanAgentSideConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$InputDataConfig$SummaryGenerationOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3168,7 +3168,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DocumentQuerySource", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$InputDataSourceType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3177,7 +3177,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DocumentQuerySource$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$SummarizationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3186,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$KnowledgeBaseQuerySource", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig$SummarizationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3195,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$KnowledgeBaseQuerySource$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3204,7 +3204,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3213,7 +3213,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3222,7 +3222,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections$SectionType", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3231,7 +3231,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionTriggerSettings", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion$ToolCallInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3240,7 +3240,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionTriggerSettings$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion$ToolCallInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3249,7 +3249,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent", + "name": "com.google.cloud.dialogflow.v2beta1.GetAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3258,7 +3258,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3267,7 +3267,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3276,7 +3276,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3285,7 +3285,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$LivePersonConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GetContextRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3294,7 +3294,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$LivePersonConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetContextRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3303,7 +3303,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$SalesforceLiveAgentConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3312,7 +3312,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$SalesforceLiveAgentConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3321,7 +3321,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ImportAgentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GetConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3330,7 +3330,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ImportAgentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3339,7 +3339,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentTemplate", + "name": "com.google.cloud.dialogflow.v2beta1.GetDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3348,7 +3348,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentTemplate$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3357,7 +3357,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GetEncryptionSpecRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3366,7 +3366,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetEncryptionSpecRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3375,7 +3375,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3384,7 +3384,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3393,7 +3393,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InferenceParameter", + "name": "com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3402,7 +3402,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InferenceParameter$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3411,7 +3411,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IngestContextReferencesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3420,7 +3420,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IngestContextReferencesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3429,7 +3429,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IngestContextReferencesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3438,7 +3438,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IngestContextReferencesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3447,7 +3447,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecMetadata", + "name": "com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3456,7 +3456,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecMetadata$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3465,7 +3465,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest", + "name": "com.google.cloud.dialogflow.v2beta1.GetGeneratorRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3474,7 +3474,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetGeneratorRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3483,7 +3483,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecResponse", + "name": "com.google.cloud.dialogflow.v2beta1.GetIntentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3492,7 +3492,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetIntentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3501,7 +3501,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InputAudioConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3510,7 +3510,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InputAudioConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3519,7 +3519,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InputTextConfig", + "name": "com.google.cloud.dialogflow.v2beta1.GetParticipantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3528,7 +3528,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.InputTextConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetParticipantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3537,7 +3537,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent", + "name": "com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3546,7 +3546,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3555,7 +3555,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$FollowupIntentInfo", + "name": "com.google.cloud.dialogflow.v2beta1.GetSipTrunkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3564,7 +3564,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$FollowupIntentInfo$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetSipTrunkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3573,7 +3573,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message", + "name": "com.google.cloud.dialogflow.v2beta1.GetToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3582,7 +3582,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard", + "name": "com.google.cloud.dialogflow.v2beta1.GetToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3591,7 +3591,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3600,7 +3600,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Button", + "name": "com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3609,7 +3609,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Button$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.GetVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3618,7 +3618,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Button$OpenUriAction", + "name": "com.google.cloud.dialogflow.v2beta1.GetVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3627,7 +3627,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Button$OpenUriAction$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3636,7 +3636,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3645,7 +3645,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationModelConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3654,7 +3654,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationModelConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3663,7 +3663,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem$OpenUrlAction", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationProcessConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3672,7 +3672,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem$OpenUrlAction$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationProcessConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3681,7 +3681,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem$OpenUrlAction$UrlTypeHint", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$MessageAnalysisConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3690,7 +3690,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$MessageAnalysisConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3699,7 +3699,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$ImageDisplayOptions", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3708,7 +3708,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3717,7 +3717,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Card", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionFeatureConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3726,7 +3726,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Card$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionFeatureConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3735,7 +3735,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Card$Button", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3744,7 +3744,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Card$Button$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3753,7 +3753,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$CarouselSelect", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$ContextFilterSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3762,7 +3762,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$CarouselSelect$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$ContextFilterSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3771,7 +3771,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$CarouselSelect$Item", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DialogflowQuerySource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3780,7 +3780,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$CarouselSelect$Item$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DialogflowQuerySource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3789,7 +3789,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ColumnProperties", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DialogflowQuerySource$HumanAgentSideConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3798,7 +3798,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ColumnProperties$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DialogflowQuerySource$HumanAgentSideConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3807,7 +3807,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ColumnProperties$HorizontalAlignment", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DocumentQuerySource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3816,7 +3816,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Image", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$DocumentQuerySource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3825,7 +3825,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Image$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$KnowledgeBaseQuerySource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3834,7 +3834,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$LinkOutSuggestion", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$KnowledgeBaseQuerySource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3843,7 +3843,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$LinkOutSuggestion$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3852,7 +3852,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ListSelect", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3861,7 +3861,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ListSelect$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections$SectionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3870,7 +3870,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ListSelect$Item", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionTriggerSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3879,7 +3879,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ListSelect$Item$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionTriggerSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3888,7 +3888,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3897,7 +3897,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3906,7 +3906,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent$ResponseMediaObject", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3915,7 +3915,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent$ResponseMediaObject$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3924,7 +3924,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent$ResponseMediaType", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$LivePersonConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3933,7 +3933,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Platform", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$LivePersonConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3942,7 +3942,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$QuickReplies", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$SalesforceLiveAgentConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3951,7 +3951,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$QuickReplies$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig$SalesforceLiveAgentConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3960,7 +3960,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent", + "name": "com.google.cloud.dialogflow.v2beta1.ImportAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3969,7 +3969,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ImportAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3978,7 +3978,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent$RbmMedia", + "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentTemplate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3987,7 +3987,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent$RbmMedia$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentTemplate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3996,7 +3996,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent$RbmMedia$Height", + "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4005,7 +4005,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCarouselCard", + "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4014,7 +4014,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCarouselCard$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4023,7 +4023,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCarouselCard$CardWidth", + "name": "com.google.cloud.dialogflow.v2beta1.ImportDocumentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4032,7 +4032,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmStandaloneCard", + "name": "com.google.cloud.dialogflow.v2beta1.InferenceParameter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4041,7 +4041,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmStandaloneCard$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.InferenceParameter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4050,7 +4050,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmStandaloneCard$CardOrientation", + "name": "com.google.cloud.dialogflow.v2beta1.IngestContextReferencesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4059,7 +4059,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmStandaloneCard$ThumbnailImageAlignment", + "name": "com.google.cloud.dialogflow.v2beta1.IngestContextReferencesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4068,7 +4068,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction", + "name": "com.google.cloud.dialogflow.v2beta1.IngestContextReferencesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4077,7 +4077,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.IngestContextReferencesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4086,7 +4086,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionDial", + "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4095,7 +4095,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionDial$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4104,7 +4104,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionOpenUri", + "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4113,7 +4113,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionOpenUri$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4122,7 +4122,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionShareLocation", + "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4131,7 +4131,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionShareLocation$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4140,7 +4140,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedReply", + "name": "com.google.cloud.dialogflow.v2beta1.InputAudioConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4149,7 +4149,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedReply$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.InputAudioConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4158,7 +4158,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestion", + "name": "com.google.cloud.dialogflow.v2beta1.InputTextConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4167,7 +4167,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestion$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.InputTextConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4176,7 +4176,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmText", + "name": "com.google.cloud.dialogflow.v2beta1.Intent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4185,7 +4185,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmText$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4194,7 +4194,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SelectItemInfo", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$FollowupIntentInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4203,7 +4203,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SelectItemInfo$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$FollowupIntentInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4212,7 +4212,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SimpleResponse", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4221,7 +4221,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SimpleResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4230,7 +4230,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SimpleResponses", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4239,7 +4239,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SimpleResponses$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Button", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4248,7 +4248,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Suggestion", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Button$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4257,7 +4257,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Suggestion$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Button$OpenUriAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4266,7 +4266,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Suggestions", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BasicCard$Button$OpenUriAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4275,7 +4275,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Suggestions$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4284,7 +4284,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCard", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4293,7 +4293,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCard$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4302,7 +4302,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCardCell", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem$OpenUrlAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4311,7 +4311,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCardCell$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem$OpenUrlAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4320,7 +4320,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCardRow", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$BrowseCarouselCardItem$OpenUrlAction$UrlTypeHint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4329,7 +4329,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCardRow$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4338,7 +4338,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonyPlayAudio", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$BrowseCarouselCard$ImageDisplayOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4347,7 +4347,1429 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonyPlayAudio$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Card", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Card$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Card$Button", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Card$Button$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$CarouselSelect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$CarouselSelect$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$CarouselSelect$Item", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$CarouselSelect$Item$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ColumnProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ColumnProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ColumnProperties$HorizontalAlignment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Image", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Image$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$LinkOutSuggestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$LinkOutSuggestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ListSelect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ListSelect$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ListSelect$Item", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$ListSelect$Item$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent$ResponseMediaObject", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent$ResponseMediaObject$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$MediaContent$ResponseMediaType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Platform", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$QuickReplies", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$QuickReplies$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent$RbmMedia", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent$RbmMedia$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCardContent$RbmMedia$Height", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCarouselCard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCarouselCard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmCarouselCard$CardWidth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmStandaloneCard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmStandaloneCard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmStandaloneCard$CardOrientation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmStandaloneCard$ThumbnailImageAlignment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionDial", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionDial$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionOpenUri", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionOpenUri$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionShareLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedAction$RbmSuggestedActionShareLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedReply", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestedReply$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmSuggestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmText", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$RbmText$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SelectItemInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SelectItemInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SimpleResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SimpleResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SimpleResponses", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$SimpleResponses$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Suggestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Suggestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Suggestions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Suggestions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCardCell", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCardCell$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCardRow", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TableCardRow$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonyPlayAudio", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonyPlayAudio$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonySynthesizeSpeech", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonySynthesizeSpeech$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonyTransferCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonyTransferCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Text", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Text$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Parameter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$Parameter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase$Part", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase$Part$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.Intent$WebhookState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.IntentBatch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.IntentBatch$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.IntentInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.IntentInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.IntentSuggestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.IntentSuggestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.IntentView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers$Answer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers$Answer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers$Answer$MatchConfidenceLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$FaqSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$FaqSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$GenerativeSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$GenerativeSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$GenerativeSource$Snippet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$GenerativeSource$Snippet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$SuggestedQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$SuggestedQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeBase", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeBase$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListContextsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListContextsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListContextsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListContextsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListConversationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListConversationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListConversationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListConversationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListIntentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListIntentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListIntentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListIntentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4356,7 +5778,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonySynthesizeSpeech", + "name": "com.google.cloud.dialogflow.v2beta1.ListMessagesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4365,7 +5787,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonySynthesizeSpeech$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListMessagesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4374,7 +5796,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonyTransferCall", + "name": "com.google.cloud.dialogflow.v2beta1.ListMessagesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4383,7 +5805,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$TelephonyTransferCall$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListMessagesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4392,7 +5814,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Text", + "name": "com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4401,7 +5823,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Message$Text$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4410,7 +5832,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Parameter", + "name": "com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4419,7 +5841,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$Parameter$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4428,7 +5850,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase", + "name": "com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4437,7 +5859,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4446,7 +5868,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase$Part", + "name": "com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4455,7 +5877,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase$Part$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4464,7 +5886,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$TrainingPhrase$Type", + "name": "com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4473,7 +5895,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Intent$WebhookState", + "name": "com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4482,7 +5904,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IntentBatch", + "name": "com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4491,7 +5913,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IntentBatch$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4500,7 +5922,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IntentInput", + "name": "com.google.cloud.dialogflow.v2beta1.ListSipTrunksRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4509,7 +5931,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IntentInput$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListSipTrunksRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4518,7 +5940,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IntentSuggestion", + "name": "com.google.cloud.dialogflow.v2beta1.ListSipTrunksResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4527,7 +5949,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IntentSuggestion$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListSipTrunksResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4536,7 +5958,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.IntentView", + "name": "com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4545,7 +5967,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers", + "name": "com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4554,7 +5976,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers$Answer", + "name": "com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4563,7 +5985,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers$Answer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4572,7 +5994,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers$Answer$MatchConfidenceLevel", + "name": "com.google.cloud.dialogflow.v2beta1.ListToolsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4581,7 +6003,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListToolsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4590,7 +6012,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer", + "name": "com.google.cloud.dialogflow.v2beta1.ListToolsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4599,7 +6021,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListToolsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4608,7 +6030,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer", + "name": "com.google.cloud.dialogflow.v2beta1.ListVersionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4617,7 +6039,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListVersionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4626,7 +6048,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$FaqSource", + "name": "com.google.cloud.dialogflow.v2beta1.ListVersionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4635,7 +6057,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$FaqSource$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ListVersionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4644,7 +6066,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$GenerativeSource", + "name": "com.google.cloud.dialogflow.v2beta1.LoggingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4653,7 +6075,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$GenerativeSource$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.LoggingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4662,7 +6084,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$GenerativeSource$Snippet", + "name": "com.google.cloud.dialogflow.v2beta1.Message", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4671,7 +6093,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$GenerativeSource$Snippet$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Message$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4680,7 +6102,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$SuggestedQuery", + "name": "com.google.cloud.dialogflow.v2beta1.MessageAnnotation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4689,7 +6111,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$SuggestedQuery$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.MessageAnnotation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4698,7 +6120,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeBase", + "name": "com.google.cloud.dialogflow.v2beta1.MessageEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4707,7 +6129,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeBase$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.MessageEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4716,7 +6138,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata", + "name": "com.google.cloud.dialogflow.v2beta1.MessageEntry$Role", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4725,7 +6147,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.NotificationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4734,7 +6156,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata$State", + "name": "com.google.cloud.dialogflow.v2beta1.NotificationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4743,7 +6165,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.NotificationConfig$MessageFormat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4752,7 +6174,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4761,7 +6183,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4770,7 +6192,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.OutputAudio", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4779,7 +6201,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListContextsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.OutputAudio$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4788,7 +6210,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListContextsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.OutputAudioConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4797,7 +6219,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListContextsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.OutputAudioConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4806,7 +6228,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListContextsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4815,7 +6237,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Participant", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4824,7 +6246,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Participant$AgentDesktopSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4833,7 +6255,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.Participant$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4842,7 +6264,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Participant$Role", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4851,7 +6273,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListConversationsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.PhoneNumber", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4860,7 +6282,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListConversationsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.PhoneNumber$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4869,7 +6291,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListConversationsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.PhoneNumber$LifecycleState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4878,7 +6300,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListConversationsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.QueryInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4887,7 +6309,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.QueryInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4896,7 +6318,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.QueryParameters", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4905,7 +6327,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.QueryParameters$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4914,7 +6336,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.QueryResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4923,7 +6345,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.QueryResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4932,7 +6354,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.RaiSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4941,7 +6363,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.RaiSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4950,7 +6372,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.RaiSettings$RaiCategoryConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4959,7 +6381,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.RaiSettings$RaiCategoryConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4968,7 +6390,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.RaiSettings$RaiCategoryConfig$RaiCategory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4977,7 +6399,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.RaiSettings$RaiCategoryConfig$SensitivityLevel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4986,7 +6408,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4995,7 +6417,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5004,7 +6426,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5013,7 +6435,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5022,7 +6444,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListGeneratorsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$EndInteraction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5031,7 +6453,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListIntentsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$EndInteraction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5040,7 +6462,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListIntentsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$LiveAgentHandoff", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5049,7 +6471,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListIntentsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$LiveAgentHandoff$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5058,7 +6480,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListIntentsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$MixedAudio", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5067,7 +6489,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$MixedAudio$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5076,7 +6498,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$MixedAudio$Segment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5085,7 +6507,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$MixedAudio$Segment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5094,7 +6516,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$TelephonyTransferCall", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5103,7 +6525,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListMessagesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$TelephonyTransferCall$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5112,7 +6534,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListMessagesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$Text", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5121,7 +6543,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListMessagesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$Text$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5130,7 +6552,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListMessagesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5139,7 +6561,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5148,7 +6570,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5157,7 +6579,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5166,7 +6588,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5175,7 +6597,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5184,7 +6606,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5193,7 +6615,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer$AnswerSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5202,7 +6624,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer$AnswerSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5211,7 +6633,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer$AnswerType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5220,7 +6642,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5229,7 +6651,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5238,7 +6660,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5247,7 +6669,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSipTrunksRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$QuerySource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5256,7 +6678,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSipTrunksRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5265,7 +6687,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSipTrunksResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5274,7 +6696,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSipTrunksResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5283,7 +6705,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5292,7 +6714,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5301,7 +6723,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5310,7 +6732,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5319,7 +6741,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListVersionsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5328,7 +6750,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListVersionsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5337,7 +6759,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListVersionsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5346,7 +6768,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ListVersionsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5355,7 +6777,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.LoggingConfig", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5364,7 +6786,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.LoggingConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5373,7 +6795,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Message", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5382,7 +6804,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Message$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$FilterSpecs", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5391,7 +6813,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.MessageAnnotation", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$FilterSpecs$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5400,7 +6822,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.MessageAnnotation$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5409,7 +6831,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.MessageEntry", + "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5418,7 +6840,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.MessageEntry$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Sentiment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5427,7 +6849,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.MessageEntry$Role", + "name": "com.google.cloud.dialogflow.v2beta1.Sentiment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5436,7 +6858,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.NotificationConfig", + "name": "com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5445,7 +6867,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.NotificationConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5454,7 +6876,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.NotificationConfig$MessageFormat", + "name": "com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5463,7 +6885,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5472,7 +6894,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SessionEntityType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5481,7 +6903,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.OutputAudio", + "name": "com.google.cloud.dialogflow.v2beta1.SessionEntityType$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5490,7 +6912,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.OutputAudio$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SessionEntityType$EntityOverrideMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5499,7 +6921,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.OutputAudioConfig", + "name": "com.google.cloud.dialogflow.v2beta1.SetAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5508,7 +6930,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.OutputAudioConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SetAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5517,7 +6939,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding", + "name": "com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5526,7 +6948,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Participant", + "name": "com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5535,7 +6957,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Participant$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5544,7 +6966,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Participant$Role", + "name": "com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5553,7 +6975,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.PhoneNumber", + "name": "com.google.cloud.dialogflow.v2beta1.SipTrunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5562,7 +6984,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.PhoneNumber$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SipTrunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5571,7 +6993,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.PhoneNumber$LifecycleState", + "name": "com.google.cloud.dialogflow.v2beta1.SmartReplyAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5580,7 +7002,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.QueryInput", + "name": "com.google.cloud.dialogflow.v2beta1.SmartReplyAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5589,7 +7011,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.QueryInput$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SpeechContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5598,7 +7020,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.QueryParameters", + "name": "com.google.cloud.dialogflow.v2beta1.SpeechContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5607,7 +7029,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.QueryParameters$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SpeechModelVariant", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5616,7 +7038,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.QueryResult", + "name": "com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5625,7 +7047,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.QueryResult$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5634,7 +7056,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SpeechWordInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5643,7 +7065,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SpeechWordInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5652,7 +7074,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage", + "name": "com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5661,7 +7083,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5670,7 +7092,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$EndInteraction", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5679,7 +7101,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$EndInteraction$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5688,7 +7110,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$LiveAgentHandoff", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5697,7 +7119,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$LiveAgentHandoff$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5706,7 +7128,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$MixedAudio", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5715,7 +7137,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$MixedAudio$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5724,7 +7146,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$MixedAudio$Segment", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5733,7 +7155,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$MixedAudio$Segment$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5742,7 +7164,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$TelephonyTransferCall", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5751,7 +7173,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$TelephonyTransferCall$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult$MessageType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5760,7 +7182,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$Text", + "name": "com.google.cloud.dialogflow.v2beta1.SubAgent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5769,7 +7191,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.ResponseMessage$Text$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SubAgent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5778,7 +7200,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5787,7 +7209,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5796,7 +7218,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5805,7 +7227,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5814,7 +7236,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5823,7 +7245,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5832,7 +7254,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5841,7 +7263,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer$AnswerSource", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5850,7 +7272,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer$AnswerSource$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse$Summary", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5859,7 +7281,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer$AnswerType", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse$Summary$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5868,7 +7290,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5877,7 +7299,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5886,7 +7308,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5895,7 +7317,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$QuerySource", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5904,7 +7326,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5913,7 +7335,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5922,7 +7344,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5931,7 +7353,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5940,7 +7362,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5949,7 +7371,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5958,7 +7380,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5967,7 +7389,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5976,7 +7398,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5985,7 +7407,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5994,7 +7416,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", + "name": "com.google.cloud.dialogflow.v2beta1.Suggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6003,7 +7425,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$BoostSpec$ConditionBoostSpec$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$Article", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6012,7 +7434,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$BoostSpecs$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$Article$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6021,7 +7443,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6030,7 +7452,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$FilterSpecs", + "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$FaqAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6039,7 +7461,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest$SearchConfig$FilterSpecs$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$FaqAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6048,7 +7470,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6057,7 +7479,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6066,7 +7488,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Sentiment", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionFeature", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6075,7 +7497,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Sentiment$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionFeature$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6084,7 +7506,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionFeature$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6093,7 +7515,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6102,7 +7524,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionInput$Action", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6111,7 +7533,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6120,7 +7542,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SessionEntityType", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6129,7 +7551,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SessionEntityType$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SuggestionResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6138,7 +7560,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SessionEntityType$EntityOverrideMode", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6147,7 +7569,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SetAgentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6156,7 +7578,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SetAgentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6165,7 +7587,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigOperationMetadata", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$AccuracyDecomposition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6174,7 +7596,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigOperationMetadata$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$AccuracyDecomposition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6183,7 +7605,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$AdherenceDecomposition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6192,7 +7614,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$AdherenceDecomposition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6201,7 +7623,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SipTrunk", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$AdherenceRubric", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6210,7 +7632,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SipTrunk$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$AdherenceRubric$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6219,7 +7641,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SmartReplyAnswer", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6228,7 +7650,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SmartReplyAnswer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$CompletenessRubric", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6237,7 +7659,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SpeechContext", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$CompletenessRubric$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6246,7 +7668,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SpeechContext$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$ConversationDetail", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6255,7 +7677,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SpeechModelVariant", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$ConversationDetail$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6264,7 +7686,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$ConversationDetail$MetricDetail", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6273,7 +7695,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$ConversationDetail$MetricDetail$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6282,7 +7704,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SpeechWordInfo", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$ConversationDetail$MetricDetail$SectionDetail", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6291,7 +7713,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SpeechWordInfo$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$ConversationDetail$MetricDetail$SectionDetail$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6300,7 +7722,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$Decomposition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6309,7 +7731,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$Decomposition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6318,7 +7740,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$EvaluationResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6327,7 +7749,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$EvaluationResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6336,7 +7758,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$OverallScoresByMetric", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6345,7 +7767,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$OverallScoresByMetric$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6354,7 +7776,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$SectionToken", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6363,7 +7785,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$SectionToken$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6372,7 +7794,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$SummarizationEvaluationResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6381,7 +7803,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics$SummarizationEvaluationResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6390,7 +7812,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSection", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6399,7 +7821,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult$MessageType", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSection$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6408,7 +7830,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SubAgent", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSection$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6417,7 +7839,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SubAgent$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSectionList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6426,7 +7848,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSectionList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6435,7 +7857,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarySuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6444,7 +7866,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SummarySuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6453,7 +7875,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SummarySuggestion$SummarySection", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6462,7 +7884,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest", + "name": "com.google.cloud.dialogflow.v2beta1.SummarySuggestion$SummarySection$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6471,7 +7893,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6480,7 +7902,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse", + "name": "com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6489,7 +7911,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.TelephonyDtmf", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6498,7 +7920,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse$Summary", + "name": "com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6507,7 +7929,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse$Summary$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6516,7 +7938,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse", + "name": "com.google.cloud.dialogflow.v2beta1.TextInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6525,7 +7947,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.TextInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6534,7 +7956,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest", + "name": "com.google.cloud.dialogflow.v2beta1.TextToSpeechSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6543,7 +7965,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.TextToSpeechSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6552,7 +7974,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse", + "name": "com.google.cloud.dialogflow.v2beta1.Tool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6561,7 +7983,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6570,7 +7992,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$ApiKeyConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6579,7 +8001,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$ApiKeyConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6588,7 +8010,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$BearerTokenConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6597,7 +8019,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$BearerTokenConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6606,7 +8028,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6615,7 +8037,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$OAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6624,7 +8046,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$OAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6633,7 +8055,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$OAuthConfig$OauthGrantType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6642,7 +8064,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Suggestion", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$RequestLocation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6651,7 +8073,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$Article", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$ServiceAgentAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6660,7 +8082,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$Article$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$ServiceAgentAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6669,7 +8091,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Authentication$ServiceAgentAuthConfig$ServiceAgentAuth", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6678,7 +8100,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$FaqAnswer", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6687,7 +8109,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.Suggestion$FaqAnswer$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ConfirmationRequirement", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6696,7 +8118,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestionFeature", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ConnectorTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6705,7 +8127,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestionFeature$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ConnectorTool$Action", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6714,7 +8136,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestionFeature$Type", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ConnectorTool$Action$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6723,7 +8145,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestionInput", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ConnectorTool$Action$EntityOperation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6732,7 +8154,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestionInput$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ConnectorTool$Action$EntityOperation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6741,7 +8163,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestionResult", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ConnectorTool$Action$EntityOperation$OperationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6750,7 +8172,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SuggestionResult$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ConnectorTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6759,7 +8181,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarizationContext", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ExtensionTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6768,7 +8190,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarizationContext$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ExtensionTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6777,7 +8199,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSection", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$FunctionTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6786,7 +8208,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSection$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$FunctionTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6795,7 +8217,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSection$Type", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$MethodType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6804,7 +8226,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSectionList", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$OpenApiTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6813,7 +8235,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarizationSectionList$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$OpenApiTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6822,7 +8244,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarySuggestion", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ServiceDirectoryConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6831,7 +8253,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarySuggestion$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$ServiceDirectoryConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6840,7 +8262,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarySuggestion$SummarySection", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$TLSConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6849,7 +8271,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SummarySuggestion$SummarySection$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$TLSConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6858,7 +8280,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$TLSConfig$CACert", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6867,7 +8289,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.Tool$TLSConfig$CACert$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6876,7 +8298,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.TelephonyDtmf", + "name": "com.google.cloud.dialogflow.v2beta1.ToolCall", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6885,7 +8307,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents", + "name": "com.google.cloud.dialogflow.v2beta1.ToolCall$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6894,7 +8316,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ToolCall$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6903,7 +8325,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.TextInput", + "name": "com.google.cloud.dialogflow.v2beta1.ToolCallResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6912,7 +8334,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.TextInput$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ToolCallResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6921,7 +8343,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.TextToSpeechSettings", + "name": "com.google.cloud.dialogflow.v2beta1.ToolCallResult$Error", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6930,7 +8352,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dialogflow.v2beta1.TextToSpeechSettings$Builder", + "name": "com.google.cloud.dialogflow.v2beta1.ToolCallResult$Error$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7235,6 +8657,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.UpdateToolRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.UpdateToolRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java index 64abc59b2193..070ff5c9f610 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java @@ -1115,6 +1115,7 @@ public void generateStatelessSuggestionTest() throws Exception { .putAllContextReferences(new HashMap()) .setConversationContext(ConversationContext.newBuilder().build()) .addAllTriggerEvents(new ArrayList()) + .setSecuritySettings("securitySettings-1062971517") .build(); GenerateStatelessSuggestionResponse actualResponse = @@ -1150,6 +1151,7 @@ public void generateStatelessSuggestionExceptionTest() throws Exception { .putAllContextReferences(new HashMap()) .setConversationContext(ConversationContext.newBuilder().build()) .addAllTriggerEvents(new ArrayList()) + .setSecuritySettings("securitySettings-1062971517") .build(); client.generateStatelessSuggestion(request); Assert.fail("No exception raised"); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java index 2a32366dd4da..608e23c0498e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java @@ -1017,6 +1017,7 @@ public void generateStatelessSuggestionTest() throws Exception { .putAllContextReferences(new HashMap()) .setConversationContext(ConversationContext.newBuilder().build()) .addAllTriggerEvents(new ArrayList()) + .setSecuritySettings("securitySettings-1062971517") .build(); GenerateStatelessSuggestionResponse actualResponse = @@ -1034,6 +1035,7 @@ public void generateStatelessSuggestionTest() throws Exception { Assert.assertEquals(request.getContextReferencesMap(), actualRequest.getContextReferencesMap()); Assert.assertEquals(request.getConversationContext(), actualRequest.getConversationContext()); Assert.assertEquals(request.getTriggerEventsList(), actualRequest.getTriggerEventsList()); + Assert.assertEquals(request.getSecuritySettings(), actualRequest.getSecuritySettings()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1052,6 +1054,7 @@ public void generateStatelessSuggestionExceptionTest() throws Exception { .putAllContextReferences(new HashMap()) .setConversationContext(ConversationContext.newBuilder().build()) .addAllTriggerEvents(new ArrayList()) + .setSecuritySettings("securitySettings-1062971517") .build(); client.generateStatelessSuggestion(request); Assert.fail("No exception raised"); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClientHttpJsonTest.java new file mode 100644 index 000000000000..d538273687cc --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClientHttpJsonTest.java @@ -0,0 +1,626 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListGeneratorEvaluationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.dialogflow.v2beta1.stub.HttpJsonGeneratorEvaluationsStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class GeneratorEvaluationsClientHttpJsonTest { + private static MockHttpService mockService; + private static GeneratorEvaluationsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonGeneratorEvaluationsStub.getMethodDescriptors(), + GeneratorEvaluationsSettings.getDefaultEndpoint()); + GeneratorEvaluationsSettings settings = + GeneratorEvaluationsSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + GeneratorEvaluationsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = GeneratorEvaluationsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createGeneratorEvaluationTest() throws Exception { + GeneratorEvaluation expectedResponse = + GeneratorEvaluation.newBuilder() + .setName( + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setGeneratorEvaluationConfig(GeneratorEvaluationConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setInitialGenerator(Generator.newBuilder().build()) + .setEvaluationStatus(EvaluationStatus.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGeneratorEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + + GeneratorEvaluation actualResponse = + client.createGeneratorEvaluationAsync(parent, generatorEvaluation).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 createGeneratorEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + client.createGeneratorEvaluationAsync(parent, generatorEvaluation).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGeneratorEvaluationTest2() throws Exception { + GeneratorEvaluation expectedResponse = + GeneratorEvaluation.newBuilder() + .setName( + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setGeneratorEvaluationConfig(GeneratorEvaluationConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setInitialGenerator(Generator.newBuilder().build()) + .setEvaluationStatus(EvaluationStatus.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGeneratorEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-1951/locations/location-1951/generators/generator-1951"; + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + + GeneratorEvaluation actualResponse = + client.createGeneratorEvaluationAsync(parent, generatorEvaluation).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 createGeneratorEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-1951/locations/location-1951/generators/generator-1951"; + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + client.createGeneratorEvaluationAsync(parent, generatorEvaluation).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getGeneratorEvaluationTest() throws Exception { + GeneratorEvaluation expectedResponse = + GeneratorEvaluation.newBuilder() + .setName( + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setGeneratorEvaluationConfig(GeneratorEvaluationConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setInitialGenerator(Generator.newBuilder().build()) + .setEvaluationStatus(EvaluationStatus.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockService.addResponse(expectedResponse); + + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + + GeneratorEvaluation actualResponse = client.getGeneratorEvaluation(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 getGeneratorEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + client.getGeneratorEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGeneratorEvaluationTest2() throws Exception { + GeneratorEvaluation expectedResponse = + GeneratorEvaluation.newBuilder() + .setName( + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setGeneratorEvaluationConfig(GeneratorEvaluationConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setInitialGenerator(Generator.newBuilder().build()) + .setEvaluationStatus(EvaluationStatus.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3347/locations/location-3347/generators/generator-3347/evaluations/evaluation-3347"; + + GeneratorEvaluation actualResponse = client.getGeneratorEvaluation(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 getGeneratorEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3347/locations/location-3347/generators/generator-3347/evaluations/evaluation-3347"; + client.getGeneratorEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGeneratorEvaluationsTest() throws Exception { + GeneratorEvaluation responsesElement = GeneratorEvaluation.newBuilder().build(); + ListGeneratorEvaluationsResponse expectedResponse = + ListGeneratorEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllGeneratorEvaluations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + + ListGeneratorEvaluationsPagedResponse pagedListResponse = + client.listGeneratorEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGeneratorEvaluationsList().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 listGeneratorEvaluationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + client.listGeneratorEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGeneratorEvaluationsTest2() throws Exception { + GeneratorEvaluation responsesElement = GeneratorEvaluation.newBuilder().build(); + ListGeneratorEvaluationsResponse expectedResponse = + ListGeneratorEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllGeneratorEvaluations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-1951/locations/location-1951/generators/generator-1951"; + + ListGeneratorEvaluationsPagedResponse pagedListResponse = + client.listGeneratorEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGeneratorEvaluationsList().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 listGeneratorEvaluationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-1951/locations/location-1951/generators/generator-1951"; + client.listGeneratorEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGeneratorEvaluationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + + client.deleteGeneratorEvaluation(name); + + 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 deleteGeneratorEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + client.deleteGeneratorEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGeneratorEvaluationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3347/locations/location-3347/generators/generator-3347/evaluations/evaluation-3347"; + + client.deleteGeneratorEvaluation(name); + + 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 deleteGeneratorEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3347/locations/location-3347/generators/generator-3347/evaluations/evaluation-3347"; + client.deleteGeneratorEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClientTest.java new file mode 100644 index 000000000000..66a1d03f2673 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClientTest.java @@ -0,0 +1,582 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListGeneratorEvaluationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class GeneratorEvaluationsClientTest { + private static MockGeneratorEvaluations mockGeneratorEvaluations; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private GeneratorEvaluationsClient client; + + @BeforeClass + public static void startStaticServer() { + mockGeneratorEvaluations = new MockGeneratorEvaluations(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockGeneratorEvaluations, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + GeneratorEvaluationsSettings settings = + GeneratorEvaluationsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = GeneratorEvaluationsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createGeneratorEvaluationTest() throws Exception { + GeneratorEvaluation expectedResponse = + GeneratorEvaluation.newBuilder() + .setName( + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setGeneratorEvaluationConfig(GeneratorEvaluationConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setInitialGenerator(Generator.newBuilder().build()) + .setEvaluationStatus(EvaluationStatus.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGeneratorEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGeneratorEvaluations.addResponse(resultOperation); + + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + + GeneratorEvaluation actualResponse = + client.createGeneratorEvaluationAsync(parent, generatorEvaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGeneratorEvaluations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGeneratorEvaluationRequest actualRequest = + ((CreateGeneratorEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(generatorEvaluation, actualRequest.getGeneratorEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGeneratorEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGeneratorEvaluations.addException(exception); + + try { + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + client.createGeneratorEvaluationAsync(parent, generatorEvaluation).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 createGeneratorEvaluationTest2() throws Exception { + GeneratorEvaluation expectedResponse = + GeneratorEvaluation.newBuilder() + .setName( + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setGeneratorEvaluationConfig(GeneratorEvaluationConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setInitialGenerator(Generator.newBuilder().build()) + .setEvaluationStatus(EvaluationStatus.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGeneratorEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGeneratorEvaluations.addResponse(resultOperation); + + String parent = "parent-995424086"; + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + + GeneratorEvaluation actualResponse = + client.createGeneratorEvaluationAsync(parent, generatorEvaluation).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGeneratorEvaluations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGeneratorEvaluationRequest actualRequest = + ((CreateGeneratorEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(generatorEvaluation, actualRequest.getGeneratorEvaluation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGeneratorEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGeneratorEvaluations.addException(exception); + + try { + String parent = "parent-995424086"; + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + client.createGeneratorEvaluationAsync(parent, generatorEvaluation).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 getGeneratorEvaluationTest() throws Exception { + GeneratorEvaluation expectedResponse = + GeneratorEvaluation.newBuilder() + .setName( + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setGeneratorEvaluationConfig(GeneratorEvaluationConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setInitialGenerator(Generator.newBuilder().build()) + .setEvaluationStatus(EvaluationStatus.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockGeneratorEvaluations.addResponse(expectedResponse); + + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + + GeneratorEvaluation actualResponse = client.getGeneratorEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGeneratorEvaluations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGeneratorEvaluationRequest actualRequest = + ((GetGeneratorEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGeneratorEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGeneratorEvaluations.addException(exception); + + try { + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + client.getGeneratorEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGeneratorEvaluationTest2() throws Exception { + GeneratorEvaluation expectedResponse = + GeneratorEvaluation.newBuilder() + .setName( + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setGeneratorEvaluationConfig(GeneratorEvaluationConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setInitialGenerator(Generator.newBuilder().build()) + .setEvaluationStatus(EvaluationStatus.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockGeneratorEvaluations.addResponse(expectedResponse); + + String name = "name3373707"; + + GeneratorEvaluation actualResponse = client.getGeneratorEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGeneratorEvaluations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGeneratorEvaluationRequest actualRequest = + ((GetGeneratorEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGeneratorEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGeneratorEvaluations.addException(exception); + + try { + String name = "name3373707"; + client.getGeneratorEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGeneratorEvaluationsTest() throws Exception { + GeneratorEvaluation responsesElement = GeneratorEvaluation.newBuilder().build(); + ListGeneratorEvaluationsResponse expectedResponse = + ListGeneratorEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllGeneratorEvaluations(Arrays.asList(responsesElement)) + .build(); + mockGeneratorEvaluations.addResponse(expectedResponse); + + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + + ListGeneratorEvaluationsPagedResponse pagedListResponse = + client.listGeneratorEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGeneratorEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockGeneratorEvaluations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGeneratorEvaluationsRequest actualRequest = + ((ListGeneratorEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGeneratorEvaluationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGeneratorEvaluations.addException(exception); + + try { + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + client.listGeneratorEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGeneratorEvaluationsTest2() throws Exception { + GeneratorEvaluation responsesElement = GeneratorEvaluation.newBuilder().build(); + ListGeneratorEvaluationsResponse expectedResponse = + ListGeneratorEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllGeneratorEvaluations(Arrays.asList(responsesElement)) + .build(); + mockGeneratorEvaluations.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListGeneratorEvaluationsPagedResponse pagedListResponse = + client.listGeneratorEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGeneratorEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockGeneratorEvaluations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGeneratorEvaluationsRequest actualRequest = + ((ListGeneratorEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGeneratorEvaluationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGeneratorEvaluations.addException(exception); + + try { + String parent = "parent-995424086"; + client.listGeneratorEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGeneratorEvaluationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockGeneratorEvaluations.addResponse(expectedResponse); + + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + + client.deleteGeneratorEvaluation(name); + + List actualRequests = mockGeneratorEvaluations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGeneratorEvaluationRequest actualRequest = + ((DeleteGeneratorEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGeneratorEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGeneratorEvaluations.addException(exception); + + try { + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + client.deleteGeneratorEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGeneratorEvaluationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockGeneratorEvaluations.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteGeneratorEvaluation(name); + + List actualRequests = mockGeneratorEvaluations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGeneratorEvaluationRequest actualRequest = + ((DeleteGeneratorEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGeneratorEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGeneratorEvaluations.addException(exception); + + try { + String name = "name3373707"; + client.deleteGeneratorEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java index 098a5f5e9051..2fb68a3376fe 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java @@ -39,6 +39,7 @@ import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; @@ -94,6 +95,8 @@ public void createGeneratorTest() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -147,6 +150,8 @@ public void createGeneratorTest2() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -200,6 +205,8 @@ public void getGeneratorTest() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -249,6 +256,8 @@ public void getGeneratorTest2() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -478,6 +487,8 @@ public void updateGeneratorTest() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -489,6 +500,8 @@ public void updateGeneratorTest() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -526,6 +539,8 @@ public void updateGeneratorExceptionTest() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateGenerator(generator, updateMask); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java index 5f3ecd5135f0..473b36b53709 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java @@ -38,6 +38,7 @@ import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; @@ -101,6 +102,8 @@ public void createGeneratorTest() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockGenerators.addResponse(expectedResponse); @@ -150,6 +153,8 @@ public void createGeneratorTest2() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockGenerators.addResponse(expectedResponse); @@ -199,6 +204,8 @@ public void getGeneratorTest() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockGenerators.addResponse(expectedResponse); @@ -242,6 +249,8 @@ public void getGeneratorTest2() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockGenerators.addResponse(expectedResponse); @@ -441,6 +450,8 @@ public void updateGeneratorTest() throws Exception { .setTriggerEvent(TriggerEvent.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllTools(new ArrayList()) + .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build()) .build(); mockGenerators.addResponse(expectedResponse); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockGeneratorEvaluations.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockGeneratorEvaluations.java new file mode 100644 index 000000000000..761581040317 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockGeneratorEvaluations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockGeneratorEvaluations implements MockGrpcService { + private final MockGeneratorEvaluationsImpl serviceImpl; + + public MockGeneratorEvaluations() { + serviceImpl = new MockGeneratorEvaluationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockGeneratorEvaluationsImpl.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockGeneratorEvaluationsImpl.java new file mode 100644 index 000000000000..b508813b3c9b --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockGeneratorEvaluationsImpl.java @@ -0,0 +1,151 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsGrpc.GeneratorEvaluationsImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockGeneratorEvaluationsImpl extends GeneratorEvaluationsImplBase { + private List requests; + private Queue responses; + + public MockGeneratorEvaluationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createGeneratorEvaluation( + CreateGeneratorEvaluationRequest 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 CreateGeneratorEvaluation, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGeneratorEvaluation( + GetGeneratorEvaluationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GeneratorEvaluation) { + requests.add(request); + responseObserver.onNext(((GeneratorEvaluation) 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 GetGeneratorEvaluation, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + GeneratorEvaluation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGeneratorEvaluations( + ListGeneratorEvaluationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGeneratorEvaluationsResponse) { + requests.add(request); + responseObserver.onNext(((ListGeneratorEvaluationsResponse) 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 ListGeneratorEvaluations, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListGeneratorEvaluationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGeneratorEvaluation( + DeleteGeneratorEvaluationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteGeneratorEvaluation, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockParticipantsImpl.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockParticipantsImpl.java index 3f369652ff6a..b0958144556b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockParticipantsImpl.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockParticipantsImpl.java @@ -201,6 +201,44 @@ public void onCompleted() { return requestObserver; } + @Override + public StreamObserver bidiStreamingAnalyzeContent( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(BidiStreamingAnalyzeContentRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof BidiStreamingAnalyzeContentResponse) { + responseObserver.onNext(((BidiStreamingAnalyzeContentResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BidiStreamingAnalyzeContent," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BidiStreamingAnalyzeContentResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } + @Override public void suggestArticles( SuggestArticlesRequest request, StreamObserver responseObserver) { diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockTools.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockTools.java new file mode 100644 index 000000000000..d8f5bd0616ce --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockTools.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTools implements MockGrpcService { + private final MockToolsImpl serviceImpl; + + public MockTools() { + serviceImpl = new MockToolsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockToolsImpl.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockToolsImpl.java new file mode 100644 index 000000000000..1779b2be594a --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockToolsImpl.java @@ -0,0 +1,162 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.dialogflow.v2beta1.ToolsGrpc.ToolsImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockToolsImpl extends ToolsImplBase { + private List requests; + private Queue responses; + + public MockToolsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createTool(CreateToolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tool) { + requests.add(request); + responseObserver.onNext(((Tool) 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 CreateTool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tool.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTool(GetToolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tool) { + requests.add(request); + responseObserver.onNext(((Tool) 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 GetTool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tool.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTools( + ListToolsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListToolsResponse) { + requests.add(request); + responseObserver.onNext(((ListToolsResponse) 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 ListTools, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListToolsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTool(DeleteToolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteTool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTool(UpdateToolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tool) { + requests.add(request); + responseObserver.onNext(((Tool) 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 UpdateTool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tool.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java index df9fc3b77f52..6263362039a7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java @@ -798,6 +798,12 @@ public void streamingAnalyzeContentUnsupportedMethodTest() throws Exception { // This empty test is generated for technical reasons. } + @Test + public void bidiStreamingAnalyzeContentUnsupportedMethodTest() throws Exception { + // The bidiStreamingAnalyzeContent() method is not supported in REST transport. + // This empty test is generated for technical reasons. + } + @Test public void suggestArticlesTest() throws Exception { SuggestArticlesResponse expectedResponse = diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java index 61e909b8afc4..11d5b2548df1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java @@ -799,6 +799,57 @@ public void streamingAnalyzeContentExceptionTest() throws Exception { } } + @Test + public void bidiStreamingAnalyzeContentTest() throws Exception { + BidiStreamingAnalyzeContentResponse expectedResponse = + BidiStreamingAnalyzeContentResponse.newBuilder().build(); + mockParticipants.addResponse(expectedResponse); + BidiStreamingAnalyzeContentRequest request = + BidiStreamingAnalyzeContentRequest.newBuilder().build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + BidiStreamingCallable + callable = client.bidiStreamingAnalyzeContentCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void bidiStreamingAnalyzeContentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockParticipants.addException(exception); + BidiStreamingAnalyzeContentRequest request = + BidiStreamingAnalyzeContentRequest.newBuilder().build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + BidiStreamingCallable + callable = client.bidiStreamingAnalyzeContentCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void suggestArticlesTest() throws Exception { SuggestArticlesResponse expectedResponse = diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ToolsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ToolsClientHttpJsonTest.java new file mode 100644 index 000000000000..25ee7db912a7 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ToolsClientHttpJsonTest.java @@ -0,0 +1,681 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListLocationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListToolsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.dialogflow.v2beta1.stub.HttpJsonToolsStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ToolsClientHttpJsonTest { + private static MockHttpService mockService; + private static ToolsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonToolsStub.getMethodDescriptors(), ToolsSettings.getDefaultEndpoint()); + ToolsSettings settings = + ToolsSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ToolsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ToolsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + + Tool actualResponse = client.createTool(parent, tool, toolId); + 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 createToolExceptionTest() 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]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + client.createTool(parent, tool, toolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolTest2() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + + Tool actualResponse = client.createTool(parent, tool, toolId); + 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 createToolExceptionTest2() 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"; + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + client.createTool(parent, tool, toolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockService.addResponse(expectedResponse); + + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + + Tool actualResponse = client.getTool(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 getToolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + client.getTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolTest2() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-65/locations/location-65/tools/tool-65"; + + Tool actualResponse = client.getTool(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 getToolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-65/locations/location-65/tools/tool-65"; + client.getTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsTest() throws Exception { + Tool responsesElement = Tool.newBuilder().build(); + ListToolsResponse expectedResponse = + ListToolsResponse.newBuilder() + .setNextPageToken("") + .addAllTools(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListToolsPagedResponse pagedListResponse = client.listTools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsList().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 listToolsExceptionTest() 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.listTools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsTest2() throws Exception { + Tool responsesElement = Tool.newBuilder().build(); + ListToolsResponse expectedResponse = + ListToolsResponse.newBuilder() + .setNextPageToken("") + .addAllTools(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListToolsPagedResponse pagedListResponse = client.listTools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsList().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 listToolsExceptionTest2() 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.listTools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + + client.deleteTool(name); + + 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 deleteToolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + client.deleteTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-65/locations/location-65/tools/tool-65"; + + client.deleteTool(name); + + 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 deleteToolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-65/locations/location-65/tools/tool-65"; + client.deleteTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockService.addResponse(expectedResponse); + + Tool tool = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Tool actualResponse = client.updateTool(tool, updateMask); + 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 updateToolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Tool tool = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTool(tool, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ToolsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ToolsClientTest.java new file mode 100644 index 000000000000..0cfe5a8ee522 --- /dev/null +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ToolsClientTest.java @@ -0,0 +1,599 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListLocationsPagedResponse; +import static com.google.cloud.dialogflow.v2beta1.ToolsClient.ListToolsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ToolsClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockTools mockTools; + private LocalChannelProvider channelProvider; + private ToolsClient client; + + @BeforeClass + public static void startStaticServer() { + mockTools = new MockTools(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTools, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ToolsSettings settings = + ToolsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ToolsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockTools.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + + Tool actualResponse = client.createTool(parent, tool, toolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTools.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolRequest actualRequest = ((CreateToolRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(tool, actualRequest.getTool()); + Assert.assertEquals(toolId, actualRequest.getToolId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTools.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + client.createTool(parent, tool, toolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolTest2() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockTools.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + + Tool actualResponse = client.createTool(parent, tool, toolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTools.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolRequest actualRequest = ((CreateToolRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(tool, actualRequest.getTool()); + Assert.assertEquals(toolId, actualRequest.getToolId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTools.addException(exception); + + try { + String parent = "parent-995424086"; + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + client.createTool(parent, tool, toolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockTools.addResponse(expectedResponse); + + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + + Tool actualResponse = client.getTool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTools.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetToolRequest actualRequest = ((GetToolRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getToolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTools.addException(exception); + + try { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + client.getTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolTest2() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockTools.addResponse(expectedResponse); + + String name = "name3373707"; + + Tool actualResponse = client.getTool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTools.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetToolRequest actualRequest = ((GetToolRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getToolExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTools.addException(exception); + + try { + String name = "name3373707"; + client.getTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsTest() throws Exception { + Tool responsesElement = Tool.newBuilder().build(); + ListToolsResponse expectedResponse = + ListToolsResponse.newBuilder() + .setNextPageToken("") + .addAllTools(Arrays.asList(responsesElement)) + .build(); + mockTools.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListToolsPagedResponse pagedListResponse = client.listTools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsList().get(0), resources.get(0)); + + List actualRequests = mockTools.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListToolsRequest actualRequest = ((ListToolsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listToolsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTools.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listTools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsTest2() throws Exception { + Tool responsesElement = Tool.newBuilder().build(); + ListToolsResponse expectedResponse = + ListToolsResponse.newBuilder() + .setNextPageToken("") + .addAllTools(Arrays.asList(responsesElement)) + .build(); + mockTools.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListToolsPagedResponse pagedListResponse = client.listTools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsList().get(0), resources.get(0)); + + List actualRequests = mockTools.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListToolsRequest actualRequest = ((ListToolsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listToolsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTools.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTools.addResponse(expectedResponse); + + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + + client.deleteTool(name); + + List actualRequests = mockTools.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteToolRequest actualRequest = ((DeleteToolRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteToolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTools.addException(exception); + + try { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + client.deleteTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTools.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteTool(name); + + List actualRequests = mockTools.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteToolRequest actualRequest = ((DeleteToolRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteToolExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTools.addException(exception); + + try { + String name = "name3373707"; + client.deleteTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .setToolKey("toolKey-1140116057") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .putAllActionConfirmationRequirement( + new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockTools.addResponse(expectedResponse); + + Tool tool = Tool.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Tool actualResponse = client.updateTool(tool, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTools.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateToolRequest actualRequest = ((UpdateToolRequest) actualRequests.get(0)); + + Assert.assertEquals(tool, actualRequest.getTool()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateToolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTools.addException(exception); + + try { + Tool tool = Tool.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTool(tool, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java index 44a41deae688..bb116db46a98 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Agents][google.cloud.dialogflow.v2.Agent]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/agent.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AgentsGrpc { @@ -939,8 +936,8 @@ protected AgentsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.dialogflow.v2.Agent getAgent( - com.google.cloud.dialogflow.v2.GetAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAgentMethod(), getCallOptions(), request); } @@ -955,8 +952,8 @@ public com.google.cloud.dialogflow.v2.Agent getAgent( * */ public com.google.cloud.dialogflow.v2.Agent setAgent( - com.google.cloud.dialogflow.v2.SetAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.SetAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetAgentMethod(), getCallOptions(), request); } @@ -968,8 +965,8 @@ public com.google.cloud.dialogflow.v2.Agent setAgent( * */ public com.google.protobuf.Empty deleteAgent( - com.google.cloud.dialogflow.v2.DeleteAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAgentMethod(), getCallOptions(), request); } @@ -986,8 +983,8 @@ public com.google.protobuf.Empty deleteAgent( * */ public com.google.cloud.dialogflow.v2.SearchAgentsResponse searchAgents( - com.google.cloud.dialogflow.v2.SearchAgentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.SearchAgentsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchAgentsMethod(), getCallOptions(), request); } @@ -1009,8 +1006,8 @@ public com.google.cloud.dialogflow.v2.SearchAgentsResponse searchAgents( * */ public com.google.longrunning.Operation trainAgent( - com.google.cloud.dialogflow.v2.TrainAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.TrainAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTrainAgentMethod(), getCallOptions(), request); } @@ -1029,8 +1026,8 @@ public com.google.longrunning.Operation trainAgent( * */ public com.google.longrunning.Operation exportAgent( - com.google.cloud.dialogflow.v2.ExportAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ExportAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportAgentMethod(), getCallOptions(), request); } @@ -1063,8 +1060,8 @@ public com.google.longrunning.Operation exportAgent( * */ public com.google.longrunning.Operation importAgent( - com.google.cloud.dialogflow.v2.ImportAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ImportAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportAgentMethod(), getCallOptions(), request); } @@ -1095,8 +1092,8 @@ public com.google.longrunning.Operation importAgent( * */ public com.google.longrunning.Operation restoreAgent( - com.google.cloud.dialogflow.v2.RestoreAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.RestoreAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreAgentMethod(), getCallOptions(), request); } @@ -1109,8 +1106,9 @@ public com.google.longrunning.Operation restoreAgent( * */ public com.google.cloud.dialogflow.v2.ValidationResult getValidationResult( - com.google.cloud.dialogflow.v2.GetValidationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetValidationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetValidationResultMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java index 867d6073269c..b9af0decfab1 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java @@ -25,9 +25,6 @@ * [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/answer_record.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AnswerRecordsGrpc { @@ -324,8 +321,9 @@ protected AnswerRecordsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecords( - com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnswerRecordsMethod(), getCallOptions(), request); } @@ -337,8 +335,9 @@ public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecord * */ public com.google.cloud.dialogflow.v2.AnswerRecord updateAnswerRecord( - com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAnswerRecordMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java index f8d7949dc10b..31cbadd28f50 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Contexts][google.cloud.dialogflow.v2.Context]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/context.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ContextsGrpc { @@ -603,8 +600,8 @@ protected ContextsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts( - com.google.cloud.dialogflow.v2.ListContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListContextsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListContextsMethod(), getCallOptions(), request); } @@ -616,8 +613,8 @@ public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts( * */ public com.google.cloud.dialogflow.v2.Context getContext( - com.google.cloud.dialogflow.v2.GetContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetContextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetContextMethod(), getCallOptions(), request); } @@ -630,8 +627,9 @@ public com.google.cloud.dialogflow.v2.Context getContext( * */ public com.google.cloud.dialogflow.v2.Context createContext( - com.google.cloud.dialogflow.v2.CreateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateContextMethod(), getCallOptions(), request); } @@ -643,8 +641,9 @@ public com.google.cloud.dialogflow.v2.Context createContext( * */ public com.google.cloud.dialogflow.v2.Context updateContext( - com.google.cloud.dialogflow.v2.UpdateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateContextMethod(), getCallOptions(), request); } @@ -656,8 +655,9 @@ public com.google.cloud.dialogflow.v2.Context updateContext( * */ public com.google.protobuf.Empty deleteContext( - com.google.cloud.dialogflow.v2.DeleteContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteContextMethod(), getCallOptions(), request); } @@ -669,8 +669,9 @@ public com.google.protobuf.Empty deleteContext( * */ public com.google.protobuf.Empty deleteAllContexts( - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAllContextsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsGrpc.java index b1af191e36fc..6837c663ab5e 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsGrpc.java @@ -26,9 +26,6 @@ * customizable metadata that can be used for model training. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/conversation_dataset.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationDatasetsGrpc { @@ -643,8 +640,9 @@ protected ConversationDatasetsBlockingV2Stub build( * */ public com.google.longrunning.Operation createConversationDataset( - com.google.cloud.dialogflow.v2.CreateConversationDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateConversationDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationDatasetMethod(), getCallOptions(), request); } @@ -656,8 +654,9 @@ public com.google.longrunning.Operation createConversationDataset( * */ public com.google.cloud.dialogflow.v2.ConversationDataset getConversationDataset( - com.google.cloud.dialogflow.v2.GetConversationDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetConversationDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationDatasetMethod(), getCallOptions(), request); } @@ -670,8 +669,9 @@ public com.google.cloud.dialogflow.v2.ConversationDataset getConversationDataset * */ public com.google.cloud.dialogflow.v2.ListConversationDatasetsResponse listConversationDatasets( - com.google.cloud.dialogflow.v2.ListConversationDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListConversationDatasetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationDatasetsMethod(), getCallOptions(), request); } @@ -690,8 +690,9 @@ public com.google.cloud.dialogflow.v2.ListConversationDatasetsResponse listConve * */ public com.google.longrunning.Operation deleteConversationDataset( - com.google.cloud.dialogflow.v2.DeleteConversationDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteConversationDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversationDatasetMethod(), getCallOptions(), request); } @@ -712,8 +713,9 @@ public com.google.longrunning.Operation deleteConversationDataset( * */ public com.google.longrunning.Operation importConversationData( - com.google.cloud.dialogflow.v2.ImportConversationDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ImportConversationDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportConversationDataMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsGrpc.java index 2d7ad81e32b3..81179d176c2a 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsGrpc.java @@ -24,9 +24,6 @@ * Manages a collection of models for human agent assistant. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/conversation_model.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationModelsGrpc { @@ -980,8 +977,9 @@ protected ConversationModelsBlockingV2Stub build( * */ public com.google.longrunning.Operation createConversationModel( - com.google.cloud.dialogflow.v2.CreateConversationModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateConversationModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationModelMethod(), getCallOptions(), request); } @@ -993,8 +991,9 @@ public com.google.longrunning.Operation createConversationModel( * */ public com.google.cloud.dialogflow.v2.ConversationModel getConversationModel( - com.google.cloud.dialogflow.v2.GetConversationModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetConversationModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationModelMethod(), getCallOptions(), request); } @@ -1006,8 +1005,9 @@ public com.google.cloud.dialogflow.v2.ConversationModel getConversationModel( * */ public com.google.cloud.dialogflow.v2.ListConversationModelsResponse listConversationModels( - com.google.cloud.dialogflow.v2.ListConversationModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListConversationModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationModelsMethod(), getCallOptions(), request); } @@ -1026,8 +1026,9 @@ public com.google.cloud.dialogflow.v2.ListConversationModelsResponse listConvers * */ public com.google.longrunning.Operation deleteConversationModel( - com.google.cloud.dialogflow.v2.DeleteConversationModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteConversationModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversationModelMethod(), getCallOptions(), request); } @@ -1049,8 +1050,9 @@ public com.google.longrunning.Operation deleteConversationModel( * */ public com.google.longrunning.Operation deployConversationModel( - com.google.cloud.dialogflow.v2.DeployConversationModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeployConversationModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployConversationModelMethod(), getCallOptions(), request); } @@ -1072,8 +1074,9 @@ public com.google.longrunning.Operation deployConversationModel( * */ public com.google.longrunning.Operation undeployConversationModel( - com.google.cloud.dialogflow.v2.UndeployConversationModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UndeployConversationModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployConversationModelMethod(), getCallOptions(), request); } @@ -1086,8 +1089,9 @@ public com.google.longrunning.Operation undeployConversationModel( */ public com.google.cloud.dialogflow.v2.ConversationModelEvaluation getConversationModelEvaluation( - com.google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationModelEvaluationMethod(), getCallOptions(), request); } @@ -1100,8 +1104,9 @@ public com.google.longrunning.Operation undeployConversationModel( */ public com.google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse listConversationModelEvaluations( - com.google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationModelEvaluationsMethod(), getCallOptions(), request); } @@ -1113,8 +1118,9 @@ public com.google.longrunning.Operation undeployConversationModel( * */ public com.google.longrunning.Operation createConversationModelEvaluation( - com.google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationModelEvaluationMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java index 8a881fdf2933..3bab3fc9f4d7 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java @@ -25,9 +25,6 @@ * [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/conversation_profile.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationProfilesGrpc { @@ -822,8 +819,9 @@ protected ConversationProfilesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListConversationProfilesResponse listConversationProfiles( - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationProfilesMethod(), getCallOptions(), request); } @@ -835,8 +833,9 @@ public com.google.cloud.dialogflow.v2.ListConversationProfilesResponse listConve * */ public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile( - com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationProfileMethod(), getCallOptions(), request); } @@ -854,8 +853,9 @@ public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile * */ public com.google.cloud.dialogflow.v2.ConversationProfile createConversationProfile( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationProfileMethod(), getCallOptions(), request); } @@ -873,8 +873,9 @@ public com.google.cloud.dialogflow.v2.ConversationProfile createConversationProf * */ public com.google.cloud.dialogflow.v2.ConversationProfile updateConversationProfile( - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversationProfileMethod(), getCallOptions(), request); } @@ -886,8 +887,9 @@ public com.google.cloud.dialogflow.v2.ConversationProfile updateConversationProf * */ public com.google.protobuf.Empty deleteConversationProfile( - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversationProfileMethod(), getCallOptions(), request); } @@ -913,8 +915,9 @@ public com.google.protobuf.Empty deleteConversationProfile( * */ public com.google.longrunning.Operation setSuggestionFeatureConfig( - com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetSuggestionFeatureConfigMethod(), getCallOptions(), request); } @@ -934,8 +937,9 @@ public com.google.longrunning.Operation setSuggestionFeatureConfig( * */ public com.google.longrunning.Operation clearSuggestionFeatureConfig( - com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getClearSuggestionFeatureConfigMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java index 37658e8c6055..dd8ba6b4fc83 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java @@ -25,9 +25,6 @@ * [Conversations][google.cloud.dialogflow.v2.Conversation]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/conversation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationsGrpc { @@ -1123,8 +1120,9 @@ protected ConversationsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.Conversation createConversation( - com.google.cloud.dialogflow.v2.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } @@ -1136,8 +1134,9 @@ public com.google.cloud.dialogflow.v2.Conversation createConversation( * */ public com.google.cloud.dialogflow.v2.ListConversationsResponse listConversations( - com.google.cloud.dialogflow.v2.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -1149,8 +1148,9 @@ public com.google.cloud.dialogflow.v2.ListConversationsResponse listConversation * */ public com.google.cloud.dialogflow.v2.Conversation getConversation( - com.google.cloud.dialogflow.v2.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationMethod(), getCallOptions(), request); } @@ -1163,8 +1163,9 @@ public com.google.cloud.dialogflow.v2.Conversation getConversation( * */ public com.google.cloud.dialogflow.v2.Conversation completeConversation( - com.google.cloud.dialogflow.v2.CompleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CompleteConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteConversationMethod(), getCallOptions(), request); } @@ -1177,8 +1178,9 @@ public com.google.cloud.dialogflow.v2.Conversation completeConversation( * */ public com.google.cloud.dialogflow.v2.IngestContextReferencesResponse ingestContextReferences( - com.google.cloud.dialogflow.v2.IngestContextReferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.IngestContextReferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getIngestContextReferencesMethod(), getCallOptions(), request); } @@ -1194,8 +1196,8 @@ public com.google.cloud.dialogflow.v2.IngestContextReferencesResponse ingestCont * */ public com.google.cloud.dialogflow.v2.ListMessagesResponse listMessages( - com.google.cloud.dialogflow.v2.ListMessagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListMessagesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMessagesMethod(), getCallOptions(), request); } @@ -1210,8 +1212,9 @@ public com.google.cloud.dialogflow.v2.ListMessagesResponse listMessages( */ public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse suggestConversationSummary( - com.google.cloud.dialogflow.v2.SuggestConversationSummaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestConversationSummaryMethod(), getCallOptions(), request); } @@ -1224,8 +1227,9 @@ public com.google.cloud.dialogflow.v2.ListMessagesResponse listMessages( * */ public com.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse generateStatelessSummary( - com.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateStatelessSummaryMethod(), getCallOptions(), request); } @@ -1239,8 +1243,9 @@ public com.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse generateS */ public com.google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse generateStatelessSuggestion( - com.google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateStatelessSuggestionMethod(), getCallOptions(), request); } @@ -1252,8 +1257,9 @@ public com.google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse generateS * */ public com.google.cloud.dialogflow.v2.SearchKnowledgeResponse searchKnowledge( - com.google.cloud.dialogflow.v2.SearchKnowledgeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.SearchKnowledgeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchKnowledgeMethod(), getCallOptions(), request); } @@ -1267,8 +1273,9 @@ public com.google.cloud.dialogflow.v2.SearchKnowledgeResponse searchKnowledge( * */ public com.google.cloud.dialogflow.v2.GenerateSuggestionsResponse generateSuggestions( - com.google.cloud.dialogflow.v2.GenerateSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GenerateSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateSuggestionsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java index c2a4b07c64ed..94fec099ff7c 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java @@ -25,9 +25,6 @@ * [Documents][google.cloud.dialogflow.v2.Document]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/document.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentsGrpc { @@ -840,8 +837,9 @@ protected DocumentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListDocumentsResponse listDocuments( - com.google.cloud.dialogflow.v2.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDocumentsMethod(), getCallOptions(), request); } @@ -853,8 +851,8 @@ public com.google.cloud.dialogflow.v2.ListDocumentsResponse listDocuments( * */ public com.google.cloud.dialogflow.v2.Document getDocument( - com.google.cloud.dialogflow.v2.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetDocumentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDocumentMethod(), getCallOptions(), request); } @@ -872,8 +870,9 @@ public com.google.cloud.dialogflow.v2.Document getDocument( * */ public com.google.longrunning.Operation createDocument( - com.google.cloud.dialogflow.v2.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } @@ -894,8 +893,9 @@ public com.google.longrunning.Operation createDocument( * */ public com.google.longrunning.Operation importDocuments( - com.google.cloud.dialogflow.v2.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ImportDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDocumentsMethod(), getCallOptions(), request); } @@ -914,8 +914,9 @@ public com.google.longrunning.Operation importDocuments( * */ public com.google.longrunning.Operation deleteDocument( - com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } @@ -933,8 +934,9 @@ public com.google.longrunning.Operation deleteDocument( * */ public com.google.longrunning.Operation updateDocument( - com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } @@ -957,8 +959,9 @@ public com.google.longrunning.Operation updateDocument( * */ public com.google.longrunning.Operation reloadDocument( - com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReloadDocumentMethod(), getCallOptions(), request); } @@ -977,8 +980,9 @@ public com.google.longrunning.Operation reloadDocument( * */ public com.google.longrunning.Operation exportDocument( - com.google.cloud.dialogflow.v2.ExportDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ExportDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDocumentMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceGrpc.java index ad4feb014adf..7965826cd7a7 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceGrpc.java @@ -24,9 +24,6 @@ * Manages encryption spec settings for Dialogflow and Agent Assist. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/encryption_spec.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EncryptionSpecServiceGrpc { @@ -334,8 +331,9 @@ protected EncryptionSpecServiceBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.EncryptionSpec getEncryptionSpec( - com.google.cloud.dialogflow.v2.GetEncryptionSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetEncryptionSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEncryptionSpecMethod(), getCallOptions(), request); } @@ -351,8 +349,9 @@ public com.google.cloud.dialogflow.v2.EncryptionSpec getEncryptionSpec( * */ public com.google.longrunning.Operation initializeEncryptionSpec( - com.google.cloud.dialogflow.v2.InitializeEncryptionSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.InitializeEncryptionSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInitializeEncryptionSpecMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java index 5ae0753f333f..58d6d79c2263 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java @@ -24,9 +24,6 @@ * Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/entity_type.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EntityTypesGrpc { @@ -1050,8 +1047,9 @@ protected EntityTypesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListEntityTypesResponse listEntityTypes( - com.google.cloud.dialogflow.v2.ListEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntityTypesMethod(), getCallOptions(), request); } @@ -1063,8 +1061,9 @@ public com.google.cloud.dialogflow.v2.ListEntityTypesResponse listEntityTypes( * */ public com.google.cloud.dialogflow.v2.EntityType getEntityType( - com.google.cloud.dialogflow.v2.GetEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); } @@ -1079,8 +1078,9 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityType( * */ public com.google.cloud.dialogflow.v2.EntityType createEntityType( - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); } @@ -1095,8 +1095,9 @@ public com.google.cloud.dialogflow.v2.EntityType createEntityType( * */ public com.google.cloud.dialogflow.v2.EntityType updateEntityType( - com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); } @@ -1111,8 +1112,9 @@ public com.google.cloud.dialogflow.v2.EntityType updateEntityType( * */ public com.google.protobuf.Empty deleteEntityType( - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); } @@ -1134,8 +1136,9 @@ public com.google.protobuf.Empty deleteEntityType( * */ public com.google.longrunning.Operation batchUpdateEntityTypes( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateEntityTypesMethod(), getCallOptions(), request); } @@ -1157,8 +1160,9 @@ public com.google.longrunning.Operation batchUpdateEntityTypes( * */ public com.google.longrunning.Operation batchDeleteEntityTypes( - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteEntityTypesMethod(), getCallOptions(), request); } @@ -1180,8 +1184,9 @@ public com.google.longrunning.Operation batchDeleteEntityTypes( * */ public com.google.longrunning.Operation batchCreateEntities( - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateEntitiesMethod(), getCallOptions(), request); } @@ -1205,8 +1210,9 @@ public com.google.longrunning.Operation batchCreateEntities( * */ public com.google.longrunning.Operation batchUpdateEntities( - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateEntitiesMethod(), getCallOptions(), request); } @@ -1228,8 +1234,9 @@ public com.google.longrunning.Operation batchUpdateEntities( * */ public com.google.longrunning.Operation batchDeleteEntities( - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteEntitiesMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java index 20c0a6de84b7..abc2ff291d68 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Environments][google.cloud.dialogflow.v2.Environment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/environment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EnvironmentsGrpc { @@ -643,8 +640,9 @@ protected EnvironmentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListEnvironmentsResponse listEnvironments( - com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } @@ -656,8 +654,9 @@ public com.google.cloud.dialogflow.v2.ListEnvironmentsResponse listEnvironments( * */ public com.google.cloud.dialogflow.v2.Environment getEnvironment( - com.google.cloud.dialogflow.v2.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -669,8 +668,9 @@ public com.google.cloud.dialogflow.v2.Environment getEnvironment( * */ public com.google.cloud.dialogflow.v2.Environment createEnvironment( - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); } @@ -692,8 +692,9 @@ public com.google.cloud.dialogflow.v2.Environment createEnvironment( * */ public com.google.cloud.dialogflow.v2.Environment updateEnvironment( - com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); } @@ -705,8 +706,9 @@ public com.google.cloud.dialogflow.v2.Environment updateEnvironment( * */ public com.google.protobuf.Empty deleteEnvironment( - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); } @@ -718,8 +720,9 @@ public com.google.protobuf.Empty deleteEnvironment( * */ public com.google.cloud.dialogflow.v2.EnvironmentHistory getEnvironmentHistory( - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentHistoryMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java index 2cf260dc4083..5fb3a483d936 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/fulfillment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FulfillmentsGrpc { @@ -313,8 +310,9 @@ protected FulfillmentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.Fulfillment getFulfillment( - com.google.cloud.dialogflow.v2.GetFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetFulfillmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFulfillmentMethod(), getCallOptions(), request); } @@ -326,8 +324,9 @@ public com.google.cloud.dialogflow.v2.Fulfillment getFulfillment( * */ public com.google.cloud.dialogflow.v2.Fulfillment updateFulfillment( - com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFulfillmentMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsGrpc.java index 385561cabff7..c444fef63432 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsGrpc.java @@ -28,9 +28,6 @@ * answers. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/generator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GeneratorsGrpc { @@ -556,8 +553,9 @@ protected GeneratorsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.Generator createGenerator( - com.google.cloud.dialogflow.v2.CreateGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGeneratorMethod(), getCallOptions(), request); } @@ -569,8 +567,8 @@ public com.google.cloud.dialogflow.v2.Generator createGenerator( * */ public com.google.cloud.dialogflow.v2.Generator getGenerator( - com.google.cloud.dialogflow.v2.GetGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetGeneratorRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGeneratorMethod(), getCallOptions(), request); } @@ -582,8 +580,9 @@ public com.google.cloud.dialogflow.v2.Generator getGenerator( * */ public com.google.cloud.dialogflow.v2.ListGeneratorsResponse listGenerators( - com.google.cloud.dialogflow.v2.ListGeneratorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListGeneratorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGeneratorsMethod(), getCallOptions(), request); } @@ -595,8 +594,9 @@ public com.google.cloud.dialogflow.v2.ListGeneratorsResponse listGenerators( * */ public com.google.protobuf.Empty deleteGenerator( - com.google.cloud.dialogflow.v2.DeleteGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGeneratorMethod(), getCallOptions(), request); } @@ -608,8 +608,9 @@ public com.google.protobuf.Empty deleteGenerator( * */ public com.google.cloud.dialogflow.v2.Generator updateGenerator( - com.google.cloud.dialogflow.v2.UpdateGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGeneratorMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java index ac429052bb47..2ecfb77b42c1 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Intents][google.cloud.dialogflow.v2.Intent]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/intent.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IntentsGrpc { @@ -732,8 +729,8 @@ protected IntentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListIntentsResponse listIntents( - com.google.cloud.dialogflow.v2.ListIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListIntentsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIntentsMethod(), getCallOptions(), request); } @@ -745,8 +742,8 @@ public com.google.cloud.dialogflow.v2.ListIntentsResponse listIntents( * */ public com.google.cloud.dialogflow.v2.Intent getIntent( - com.google.cloud.dialogflow.v2.GetIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetIntentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIntentMethod(), getCallOptions(), request); } @@ -761,8 +758,8 @@ public com.google.cloud.dialogflow.v2.Intent getIntent( * */ public com.google.cloud.dialogflow.v2.Intent createIntent( - com.google.cloud.dialogflow.v2.CreateIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateIntentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIntentMethod(), getCallOptions(), request); } @@ -777,8 +774,8 @@ public com.google.cloud.dialogflow.v2.Intent createIntent( * */ public com.google.cloud.dialogflow.v2.Intent updateIntent( - com.google.cloud.dialogflow.v2.UpdateIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateIntentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIntentMethod(), getCallOptions(), request); } @@ -793,8 +790,8 @@ public com.google.cloud.dialogflow.v2.Intent updateIntent( * */ public com.google.protobuf.Empty deleteIntent( - com.google.cloud.dialogflow.v2.DeleteIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteIntentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIntentMethod(), getCallOptions(), request); } @@ -816,8 +813,9 @@ public com.google.protobuf.Empty deleteIntent( * */ public com.google.longrunning.Operation batchUpdateIntents( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateIntentsMethod(), getCallOptions(), request); } @@ -839,8 +837,9 @@ public com.google.longrunning.Operation batchUpdateIntents( * */ public com.google.longrunning.Operation batchDeleteIntents( - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteIntentsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java index 6d8f3927fc67..47108d2496fd 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java @@ -25,9 +25,6 @@ * [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/knowledge_base.proto") @io.grpc.stub.annotations.GrpcGenerated public final class KnowledgeBasesGrpc { @@ -559,8 +556,9 @@ protected KnowledgeBasesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse listKnowledgeBases( - com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListKnowledgeBasesMethod(), getCallOptions(), request); } @@ -572,8 +570,9 @@ public com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse listKnowledgeBa * */ public com.google.cloud.dialogflow.v2.KnowledgeBase getKnowledgeBase( - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKnowledgeBaseMethod(), getCallOptions(), request); } @@ -585,8 +584,9 @@ public com.google.cloud.dialogflow.v2.KnowledgeBase getKnowledgeBase( * */ public com.google.cloud.dialogflow.v2.KnowledgeBase createKnowledgeBase( - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateKnowledgeBaseMethod(), getCallOptions(), request); } @@ -598,8 +598,9 @@ public com.google.cloud.dialogflow.v2.KnowledgeBase createKnowledgeBase( * */ public com.google.protobuf.Empty deleteKnowledgeBase( - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteKnowledgeBaseMethod(), getCallOptions(), request); } @@ -611,8 +612,9 @@ public com.google.protobuf.Empty deleteKnowledgeBase( * */ public com.google.cloud.dialogflow.v2.KnowledgeBase updateKnowledgeBase( - com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateKnowledgeBaseMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java index 07950ff92097..1e2ad4579f99 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Participants][google.cloud.dialogflow.v2.Participant]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/participant.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ParticipantsGrpc { @@ -991,8 +988,9 @@ protected ParticipantsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.Participant createParticipant( - com.google.cloud.dialogflow.v2.CreateParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateParticipantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateParticipantMethod(), getCallOptions(), request); } @@ -1004,8 +1002,9 @@ public com.google.cloud.dialogflow.v2.Participant createParticipant( * */ public com.google.cloud.dialogflow.v2.Participant getParticipant( - com.google.cloud.dialogflow.v2.GetParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetParticipantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetParticipantMethod(), getCallOptions(), request); } @@ -1017,8 +1016,9 @@ public com.google.cloud.dialogflow.v2.Participant getParticipant( * */ public com.google.cloud.dialogflow.v2.ListParticipantsResponse listParticipants( - com.google.cloud.dialogflow.v2.ListParticipantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListParticipantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListParticipantsMethod(), getCallOptions(), request); } @@ -1030,8 +1030,9 @@ public com.google.cloud.dialogflow.v2.ListParticipantsResponse listParticipants( * */ public com.google.cloud.dialogflow.v2.Participant updateParticipant( - com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateParticipantMethod(), getCallOptions(), request); } @@ -1047,8 +1048,9 @@ public com.google.cloud.dialogflow.v2.Participant updateParticipant( * */ public com.google.cloud.dialogflow.v2.AnalyzeContentResponse analyzeContent( - com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); } @@ -1089,8 +1091,9 @@ public com.google.cloud.dialogflow.v2.AnalyzeContentResponse analyzeContent( * */ public com.google.cloud.dialogflow.v2.SuggestArticlesResponse suggestArticles( - com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); } @@ -1103,8 +1106,9 @@ public com.google.cloud.dialogflow.v2.SuggestArticlesResponse suggestArticles( * */ public com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggestFaqAnswers( - com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestFaqAnswersMethod(), getCallOptions(), request); } @@ -1117,8 +1121,9 @@ public com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggestFaqAnswer * */ public com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggestSmartReplies( - com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.SuggestSmartRepliesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestSmartRepliesMethod(), getCallOptions(), request); } @@ -1130,8 +1135,9 @@ public com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggestSmartRe * */ public com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggestKnowledgeAssist( - com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestKnowledgeAssistMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java index 7d2ab55136b0..1772e0bfac4b 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java @@ -25,9 +25,6 @@ * [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/session_entity_type.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionEntityTypesGrpc { @@ -615,8 +612,9 @@ protected SessionEntityTypesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse listSessionEntityTypes( - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionEntityTypesMethod(), getCallOptions(), request); } @@ -631,8 +629,9 @@ public com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse listSession * */ public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType( - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionEntityTypeMethod(), getCallOptions(), request); } @@ -649,8 +648,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType( * */ public com.google.cloud.dialogflow.v2.SessionEntityType createSessionEntityType( - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -665,8 +665,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityType createSessionEntityType( * */ public com.google.cloud.dialogflow.v2.SessionEntityType updateSessionEntityType( - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -681,8 +682,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityType updateSessionEntityType( * */ public com.google.protobuf.Empty deleteSessionEntityType( - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionEntityTypeMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java index 1946b5087fff..540fa1ecee00 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java @@ -26,9 +26,6 @@ * guide](https://cloud.google.com/dialogflow/docs/api-overview). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/session.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionsGrpc { @@ -386,8 +383,8 @@ protected SessionsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.DetectIntentResponse detectIntent( - com.google.cloud.dialogflow.v2.DetectIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DetectIntentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetectIntentMethod(), getCallOptions(), request); } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java index be2cd92523f6..0dec6349c8cc 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Versions][google.cloud.dialogflow.v2.Version]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/version.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VersionsGrpc { @@ -536,8 +533,8 @@ protected VersionsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2.ListVersionsResponse listVersions( - com.google.cloud.dialogflow.v2.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.ListVersionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVersionsMethod(), getCallOptions(), request); } @@ -549,8 +546,8 @@ public com.google.cloud.dialogflow.v2.ListVersionsResponse listVersions( * */ public com.google.cloud.dialogflow.v2.Version getVersion( - com.google.cloud.dialogflow.v2.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.GetVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVersionMethod(), getCallOptions(), request); } @@ -563,8 +560,9 @@ public com.google.cloud.dialogflow.v2.Version getVersion( * */ public com.google.cloud.dialogflow.v2.Version createVersion( - com.google.cloud.dialogflow.v2.CreateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.CreateVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVersionMethod(), getCallOptions(), request); } @@ -579,8 +577,9 @@ public com.google.cloud.dialogflow.v2.Version createVersion( * */ public com.google.cloud.dialogflow.v2.Version updateVersion( - com.google.cloud.dialogflow.v2.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.UpdateVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVersionMethod(), getCallOptions(), request); } @@ -592,8 +591,9 @@ public com.google.cloud.dialogflow.v2.Version updateVersion( * */ public com.google.protobuf.Empty deleteVersion( - com.google.cloud.dialogflow.v2.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2.DeleteVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVersionMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java index eaba43d63b08..bbcbcd93665e 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Agents][google.cloud.dialogflow.v2beta1.Agent]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/agent.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AgentsGrpc { @@ -951,8 +948,9 @@ protected AgentsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.dialogflow.v2beta1.Agent getAgent( - com.google.cloud.dialogflow.v2beta1.GetAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAgentMethod(), getCallOptions(), request); } @@ -967,8 +965,9 @@ public com.google.cloud.dialogflow.v2beta1.Agent getAgent( * */ public com.google.cloud.dialogflow.v2beta1.Agent setAgent( - com.google.cloud.dialogflow.v2beta1.SetAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.SetAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetAgentMethod(), getCallOptions(), request); } @@ -980,8 +979,9 @@ public com.google.cloud.dialogflow.v2beta1.Agent setAgent( * */ public com.google.protobuf.Empty deleteAgent( - com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAgentMethod(), getCallOptions(), request); } @@ -998,8 +998,9 @@ public com.google.protobuf.Empty deleteAgent( * */ public com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse searchAgents( - com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchAgentsMethod(), getCallOptions(), request); } @@ -1021,8 +1022,9 @@ public com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse searchAgents( * */ public com.google.longrunning.Operation trainAgent( - com.google.cloud.dialogflow.v2beta1.TrainAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.TrainAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTrainAgentMethod(), getCallOptions(), request); } @@ -1041,8 +1043,9 @@ public com.google.longrunning.Operation trainAgent( * */ public com.google.longrunning.Operation exportAgent( - com.google.cloud.dialogflow.v2beta1.ExportAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ExportAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportAgentMethod(), getCallOptions(), request); } @@ -1075,8 +1078,9 @@ public com.google.longrunning.Operation exportAgent( * */ public com.google.longrunning.Operation importAgent( - com.google.cloud.dialogflow.v2beta1.ImportAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ImportAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportAgentMethod(), getCallOptions(), request); } @@ -1107,8 +1111,9 @@ public com.google.longrunning.Operation importAgent( * */ public com.google.longrunning.Operation restoreAgent( - com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreAgentMethod(), getCallOptions(), request); } @@ -1121,8 +1126,9 @@ public com.google.longrunning.Operation restoreAgent( * */ public com.google.cloud.dialogflow.v2beta1.ValidationResult getValidationResult( - com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetValidationResultMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java index 510a97af7b84..afa2f5aa68de 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java @@ -25,9 +25,6 @@ * [AnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecord]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/answer_record.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AnswerRecordsGrpc { @@ -412,8 +409,9 @@ protected AnswerRecordsBlockingV2Stub build( */ @java.lang.Deprecated public com.google.cloud.dialogflow.v2beta1.AnswerRecord getAnswerRecord( - com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnswerRecordMethod(), getCallOptions(), request); } @@ -426,8 +424,9 @@ public com.google.cloud.dialogflow.v2beta1.AnswerRecord getAnswerRecord( * */ public com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse listAnswerRecords( - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnswerRecordsMethod(), getCallOptions(), request); } @@ -439,8 +438,9 @@ public com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse listAnswerR * */ public com.google.cloud.dialogflow.v2beta1.AnswerRecord updateAnswerRecord( - com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAnswerRecordMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java index 75287a862174..70ef6fa81039 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Contexts][google.cloud.dialogflow.v2beta1.Context]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/context.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ContextsGrpc { @@ -605,8 +602,9 @@ protected ContextsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.ListContextsResponse listContexts( - com.google.cloud.dialogflow.v2beta1.ListContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListContextsMethod(), getCallOptions(), request); } @@ -618,8 +616,9 @@ public com.google.cloud.dialogflow.v2beta1.ListContextsResponse listContexts( * */ public com.google.cloud.dialogflow.v2beta1.Context getContext( - com.google.cloud.dialogflow.v2beta1.GetContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetContextMethod(), getCallOptions(), request); } @@ -632,8 +631,9 @@ public com.google.cloud.dialogflow.v2beta1.Context getContext( * */ public com.google.cloud.dialogflow.v2beta1.Context createContext( - com.google.cloud.dialogflow.v2beta1.CreateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateContextMethod(), getCallOptions(), request); } @@ -645,8 +645,9 @@ public com.google.cloud.dialogflow.v2beta1.Context createContext( * */ public com.google.cloud.dialogflow.v2beta1.Context updateContext( - com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateContextMethod(), getCallOptions(), request); } @@ -658,8 +659,9 @@ public com.google.cloud.dialogflow.v2beta1.Context updateContext( * */ public com.google.protobuf.Empty deleteContext( - com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteContextMethod(), getCallOptions(), request); } @@ -671,8 +673,9 @@ public com.google.protobuf.Empty deleteContext( * */ public com.google.protobuf.Empty deleteAllContexts( - com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAllContextsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java index 393302c4b9c6..be839760ffed 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java @@ -25,9 +25,6 @@ * [ConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfile]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/conversation_profile.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationProfilesGrpc { @@ -817,8 +814,9 @@ protected ConversationProfilesBlockingV2Stub build( */ public com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse listConversationProfiles( - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationProfilesMethod(), getCallOptions(), request); } @@ -830,8 +828,9 @@ protected ConversationProfilesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.ConversationProfile getConversationProfile( - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationProfileMethod(), getCallOptions(), request); } @@ -847,8 +846,9 @@ public com.google.cloud.dialogflow.v2beta1.ConversationProfile getConversationPr * */ public com.google.cloud.dialogflow.v2beta1.ConversationProfile createConversationProfile( - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationProfileMethod(), getCallOptions(), request); } @@ -864,8 +864,9 @@ public com.google.cloud.dialogflow.v2beta1.ConversationProfile createConversatio * */ public com.google.cloud.dialogflow.v2beta1.ConversationProfile updateConversationProfile( - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversationProfileMethod(), getCallOptions(), request); } @@ -877,8 +878,9 @@ public com.google.cloud.dialogflow.v2beta1.ConversationProfile updateConversatio * */ public com.google.protobuf.Empty deleteConversationProfile( - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversationProfileMethod(), getCallOptions(), request); } @@ -904,8 +906,9 @@ public com.google.protobuf.Empty deleteConversationProfile( * */ public com.google.longrunning.Operation setSuggestionFeatureConfig( - com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetSuggestionFeatureConfigMethod(), getCallOptions(), request); } @@ -925,8 +928,9 @@ public com.google.longrunning.Operation setSuggestionFeatureConfig( * */ public com.google.longrunning.Operation clearSuggestionFeatureConfig( - com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getClearSuggestionFeatureConfigMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java index b2eb5d332394..11cc38cb5ac7 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java @@ -25,9 +25,6 @@ * [Conversations][google.cloud.dialogflow.v2beta1.Conversation]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/conversation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationsGrpc { @@ -1220,8 +1217,9 @@ protected ConversationsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.Conversation createConversation( - com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } @@ -1233,8 +1231,9 @@ public com.google.cloud.dialogflow.v2beta1.Conversation createConversation( * */ public com.google.cloud.dialogflow.v2beta1.ListConversationsResponse listConversations( - com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -1246,8 +1245,9 @@ public com.google.cloud.dialogflow.v2beta1.ListConversationsResponse listConvers * */ public com.google.cloud.dialogflow.v2beta1.Conversation getConversation( - com.google.cloud.dialogflow.v2beta1.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationMethod(), getCallOptions(), request); } @@ -1260,8 +1260,9 @@ public com.google.cloud.dialogflow.v2beta1.Conversation getConversation( * */ public com.google.cloud.dialogflow.v2beta1.Conversation completeConversation( - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteConversationMethod(), getCallOptions(), request); } @@ -1275,8 +1276,9 @@ public com.google.cloud.dialogflow.v2beta1.Conversation completeConversation( */ public com.google.cloud.dialogflow.v2beta1.IngestContextReferencesResponse ingestContextReferences( - com.google.cloud.dialogflow.v2beta1.IngestContextReferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.IngestContextReferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getIngestContextReferencesMethod(), getCallOptions(), request); } @@ -1289,8 +1291,9 @@ public com.google.cloud.dialogflow.v2beta1.Conversation completeConversation( * */ public com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse batchCreateMessages( - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateMessagesMethod(), getCallOptions(), request); } @@ -1306,8 +1309,9 @@ public com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse batchCrea * */ public com.google.cloud.dialogflow.v2beta1.ListMessagesResponse listMessages( - com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMessagesMethod(), getCallOptions(), request); } @@ -1322,8 +1326,9 @@ public com.google.cloud.dialogflow.v2beta1.ListMessagesResponse listMessages( */ public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse suggestConversationSummary( - com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestConversationSummaryMethod(), getCallOptions(), request); } @@ -1337,8 +1342,9 @@ public com.google.cloud.dialogflow.v2beta1.ListMessagesResponse listMessages( */ public com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse generateStatelessSummary( - com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateStatelessSummaryMethod(), getCallOptions(), request); } @@ -1352,8 +1358,9 @@ public com.google.cloud.dialogflow.v2beta1.ListMessagesResponse listMessages( */ public com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse generateStatelessSuggestion( - com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateStatelessSuggestionMethod(), getCallOptions(), request); } @@ -1365,8 +1372,9 @@ public com.google.cloud.dialogflow.v2beta1.ListMessagesResponse listMessages( * */ public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse searchKnowledge( - com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchKnowledgeMethod(), getCallOptions(), request); } @@ -1380,8 +1388,9 @@ public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse searchKnowled * */ public com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse generateSuggestions( - com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GenerateSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateSuggestionsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java index a0d863696b00..f63ee3825054 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java @@ -25,9 +25,6 @@ * [Documents][google.cloud.dialogflow.v2beta1.Document]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/document.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentsGrpc { @@ -799,8 +796,9 @@ protected DocumentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse listDocuments( - com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDocumentsMethod(), getCallOptions(), request); } @@ -814,8 +812,9 @@ public com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse listDocuments( * */ public com.google.cloud.dialogflow.v2beta1.Document getDocument( - com.google.cloud.dialogflow.v2beta1.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDocumentMethod(), getCallOptions(), request); } @@ -835,8 +834,9 @@ public com.google.cloud.dialogflow.v2beta1.Document getDocument( * */ public com.google.longrunning.Operation createDocument( - com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } @@ -857,8 +857,9 @@ public com.google.longrunning.Operation createDocument( * */ public com.google.longrunning.Operation importDocuments( - com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDocumentsMethod(), getCallOptions(), request); } @@ -879,8 +880,9 @@ public com.google.longrunning.Operation importDocuments( * */ public com.google.longrunning.Operation deleteDocument( - com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } @@ -900,8 +902,9 @@ public com.google.longrunning.Operation deleteDocument( * */ public com.google.longrunning.Operation updateDocument( - com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } @@ -927,8 +930,9 @@ public com.google.longrunning.Operation updateDocument( * */ public com.google.longrunning.Operation reloadDocument( - com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReloadDocumentMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceGrpc.java index d20820d502b7..c4ce87b47187 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceGrpc.java @@ -24,9 +24,6 @@ * Manages encryption spec settings for Dialogflow and Agent Assist. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/encryption_spec.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EncryptionSpecServiceGrpc { @@ -335,8 +332,9 @@ protected EncryptionSpecServiceBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.EncryptionSpec getEncryptionSpec( - com.google.cloud.dialogflow.v2beta1.GetEncryptionSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetEncryptionSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEncryptionSpecMethod(), getCallOptions(), request); } @@ -352,8 +350,9 @@ public com.google.cloud.dialogflow.v2beta1.EncryptionSpec getEncryptionSpec( * */ public com.google.longrunning.Operation initializeEncryptionSpec( - com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInitializeEncryptionSpecMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java index 575d2cf1f4cd..aa09d3ca613f 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java @@ -25,9 +25,6 @@ * [EntityTypes][google.cloud.dialogflow.v2beta1.EntityType]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/entity_type.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EntityTypesGrpc { @@ -1061,8 +1058,9 @@ protected EntityTypesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse listEntityTypes( - com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntityTypesMethod(), getCallOptions(), request); } @@ -1074,8 +1072,9 @@ public com.google.cloud.dialogflow.v2beta1.ListEntityTypesResponse listEntityTyp * */ public com.google.cloud.dialogflow.v2beta1.EntityType getEntityType( - com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); } @@ -1090,8 +1089,9 @@ public com.google.cloud.dialogflow.v2beta1.EntityType getEntityType( * */ public com.google.cloud.dialogflow.v2beta1.EntityType createEntityType( - com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); } @@ -1106,8 +1106,9 @@ public com.google.cloud.dialogflow.v2beta1.EntityType createEntityType( * */ public com.google.cloud.dialogflow.v2beta1.EntityType updateEntityType( - com.google.cloud.dialogflow.v2beta1.UpdateEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); } @@ -1122,8 +1123,9 @@ public com.google.cloud.dialogflow.v2beta1.EntityType updateEntityType( * */ public com.google.protobuf.Empty deleteEntityType( - com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); } @@ -1145,8 +1147,9 @@ public com.google.protobuf.Empty deleteEntityType( * */ public com.google.longrunning.Operation batchUpdateEntityTypes( - com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateEntityTypesMethod(), getCallOptions(), request); } @@ -1168,8 +1171,9 @@ public com.google.longrunning.Operation batchUpdateEntityTypes( * */ public com.google.longrunning.Operation batchDeleteEntityTypes( - com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteEntityTypesMethod(), getCallOptions(), request); } @@ -1191,8 +1195,9 @@ public com.google.longrunning.Operation batchDeleteEntityTypes( * */ public com.google.longrunning.Operation batchCreateEntities( - com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateEntitiesMethod(), getCallOptions(), request); } @@ -1216,8 +1221,9 @@ public com.google.longrunning.Operation batchCreateEntities( * */ public com.google.longrunning.Operation batchUpdateEntities( - com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateEntitiesMethod(), getCallOptions(), request); } @@ -1239,8 +1245,9 @@ public com.google.longrunning.Operation batchUpdateEntities( * */ public com.google.longrunning.Operation batchDeleteEntities( - com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteEntitiesMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java index eede721de017..c1c7e56aa831 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java @@ -25,9 +25,6 @@ * [Environments][google.cloud.dialogflow.v2beta1.Environment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/environment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EnvironmentsGrpc { @@ -655,8 +652,9 @@ protected EnvironmentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse listEnvironments( - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } @@ -668,8 +666,9 @@ public com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse listEnvironm * */ public com.google.cloud.dialogflow.v2beta1.Environment getEnvironment( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -681,8 +680,9 @@ public com.google.cloud.dialogflow.v2beta1.Environment getEnvironment( * */ public com.google.cloud.dialogflow.v2beta1.Environment createEnvironment( - com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); } @@ -704,8 +704,9 @@ public com.google.cloud.dialogflow.v2beta1.Environment createEnvironment( * */ public com.google.cloud.dialogflow.v2beta1.Environment updateEnvironment( - com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); } @@ -717,8 +718,9 @@ public com.google.cloud.dialogflow.v2beta1.Environment updateEnvironment( * */ public com.google.protobuf.Empty deleteEnvironment( - com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); } @@ -730,8 +732,9 @@ public com.google.protobuf.Empty deleteEnvironment( * */ public com.google.cloud.dialogflow.v2beta1.EnvironmentHistory getEnvironmentHistory( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentHistoryMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsGrpc.java index 00d04e9f1acc..04c0ac99e43b 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsGrpc.java @@ -25,9 +25,6 @@ * [Fulfillments][google.cloud.dialogflow.v2beta1.Fulfillment]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/fulfillment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FulfillmentsGrpc { @@ -323,8 +320,9 @@ protected FulfillmentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.Fulfillment getFulfillment( - com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFulfillmentMethod(), getCallOptions(), request); } @@ -336,8 +334,9 @@ public com.google.cloud.dialogflow.v2beta1.Fulfillment getFulfillment( * */ public com.google.cloud.dialogflow.v2beta1.Fulfillment updateFulfillment( - com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFulfillmentMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsGrpc.java new file mode 100644 index 000000000000..e5ee8da2d30c --- /dev/null +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsGrpc.java @@ -0,0 +1,853 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                          + * Service for managing generator evaluations.
                                          + * 
                                          + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class GeneratorEvaluationsGrpc { + + private GeneratorEvaluationsGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.dialogflow.v2beta1.GeneratorEvaluations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest, + com.google.longrunning.Operation> + getCreateGeneratorEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGeneratorEvaluation", + requestType = com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest, + com.google.longrunning.Operation> + getCreateGeneratorEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest, + com.google.longrunning.Operation> + getCreateGeneratorEvaluationMethod; + if ((getCreateGeneratorEvaluationMethod = + GeneratorEvaluationsGrpc.getCreateGeneratorEvaluationMethod) + == null) { + synchronized (GeneratorEvaluationsGrpc.class) { + if ((getCreateGeneratorEvaluationMethod = + GeneratorEvaluationsGrpc.getCreateGeneratorEvaluationMethod) + == null) { + GeneratorEvaluationsGrpc.getCreateGeneratorEvaluationMethod = + getCreateGeneratorEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateGeneratorEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GeneratorEvaluationsMethodDescriptorSupplier( + "CreateGeneratorEvaluation")) + .build(); + } + } + } + return getCreateGeneratorEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation> + getGetGeneratorEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGeneratorEvaluation", + requestType = com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest.class, + responseType = com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation> + getGetGeneratorEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation> + getGetGeneratorEvaluationMethod; + if ((getGetGeneratorEvaluationMethod = GeneratorEvaluationsGrpc.getGetGeneratorEvaluationMethod) + == null) { + synchronized (GeneratorEvaluationsGrpc.class) { + if ((getGetGeneratorEvaluationMethod = + GeneratorEvaluationsGrpc.getGetGeneratorEvaluationMethod) + == null) { + GeneratorEvaluationsGrpc.getGetGeneratorEvaluationMethod = + getGetGeneratorEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetGeneratorEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation + .getDefaultInstance())) + .setSchemaDescriptor( + new GeneratorEvaluationsMethodDescriptorSupplier( + "GetGeneratorEvaluation")) + .build(); + } + } + } + return getGetGeneratorEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest, + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse> + getListGeneratorEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGeneratorEvaluations", + requestType = com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest.class, + responseType = com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest, + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse> + getListGeneratorEvaluationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest, + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse> + getListGeneratorEvaluationsMethod; + if ((getListGeneratorEvaluationsMethod = + GeneratorEvaluationsGrpc.getListGeneratorEvaluationsMethod) + == null) { + synchronized (GeneratorEvaluationsGrpc.class) { + if ((getListGeneratorEvaluationsMethod = + GeneratorEvaluationsGrpc.getListGeneratorEvaluationsMethod) + == null) { + GeneratorEvaluationsGrpc.getListGeneratorEvaluationsMethod = + getListGeneratorEvaluationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListGeneratorEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GeneratorEvaluationsMethodDescriptorSupplier( + "ListGeneratorEvaluations")) + .build(); + } + } + } + return getListGeneratorEvaluationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest, + com.google.protobuf.Empty> + getDeleteGeneratorEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGeneratorEvaluation", + requestType = com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest, + com.google.protobuf.Empty> + getDeleteGeneratorEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest, + com.google.protobuf.Empty> + getDeleteGeneratorEvaluationMethod; + if ((getDeleteGeneratorEvaluationMethod = + GeneratorEvaluationsGrpc.getDeleteGeneratorEvaluationMethod) + == null) { + synchronized (GeneratorEvaluationsGrpc.class) { + if ((getDeleteGeneratorEvaluationMethod = + GeneratorEvaluationsGrpc.getDeleteGeneratorEvaluationMethod) + == null) { + GeneratorEvaluationsGrpc.getDeleteGeneratorEvaluationMethod = + getDeleteGeneratorEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteGeneratorEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new GeneratorEvaluationsMethodDescriptorSupplier( + "DeleteGeneratorEvaluation")) + .build(); + } + } + } + return getDeleteGeneratorEvaluationMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GeneratorEvaluationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GeneratorEvaluationsStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GeneratorEvaluationsStub(channel, callOptions); + } + }; + return GeneratorEvaluationsStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static GeneratorEvaluationsBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GeneratorEvaluationsBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GeneratorEvaluationsBlockingV2Stub(channel, callOptions); + } + }; + return GeneratorEvaluationsBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GeneratorEvaluationsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GeneratorEvaluationsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GeneratorEvaluationsBlockingStub(channel, callOptions); + } + }; + return GeneratorEvaluationsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GeneratorEvaluationsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GeneratorEvaluationsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GeneratorEvaluationsFutureStub(channel, callOptions); + } + }; + return GeneratorEvaluationsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                          +   * Service for managing generator evaluations.
                                          +   * 
                                          + */ + public interface AsyncService { + + /** + * + * + *
                                          +     * Creates evaluation of a generator.
                                          +     * 
                                          + */ + default void createGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGeneratorEvaluationMethod(), responseObserver); + } + + /** + * + * + *
                                          +     * Gets an evaluation of generator.
                                          +     * 
                                          + */ + default void getGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGeneratorEvaluationMethod(), responseObserver); + } + + /** + * + * + *
                                          +     * Lists evaluations of generator.
                                          +     * 
                                          + */ + default void listGeneratorEvaluations( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGeneratorEvaluationsMethod(), responseObserver); + } + + /** + * + * + *
                                          +     * Deletes an evaluation of generator.
                                          +     * 
                                          + */ + default void deleteGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGeneratorEvaluationMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service GeneratorEvaluations. + * + *
                                          +   * Service for managing generator evaluations.
                                          +   * 
                                          + */ + public abstract static class GeneratorEvaluationsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return GeneratorEvaluationsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service GeneratorEvaluations. + * + *
                                          +   * Service for managing generator evaluations.
                                          +   * 
                                          + */ + public static final class GeneratorEvaluationsStub + extends io.grpc.stub.AbstractAsyncStub { + private GeneratorEvaluationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GeneratorEvaluationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GeneratorEvaluationsStub(channel, callOptions); + } + + /** + * + * + *
                                          +     * Creates evaluation of a generator.
                                          +     * 
                                          + */ + public void createGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGeneratorEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                          +     * Gets an evaluation of generator.
                                          +     * 
                                          + */ + public void getGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGeneratorEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                          +     * Lists evaluations of generator.
                                          +     * 
                                          + */ + public void listGeneratorEvaluations( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGeneratorEvaluationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                          +     * Deletes an evaluation of generator.
                                          +     * 
                                          + */ + public void deleteGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGeneratorEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service GeneratorEvaluations. + * + *
                                          +   * Service for managing generator evaluations.
                                          +   * 
                                          + */ + public static final class GeneratorEvaluationsBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private GeneratorEvaluationsBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GeneratorEvaluationsBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GeneratorEvaluationsBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                          +     * Creates evaluation of a generator.
                                          +     * 
                                          + */ + public com.google.longrunning.Operation createGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateGeneratorEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Gets an evaluation of generator.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetGeneratorEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Lists evaluations of generator.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + listGeneratorEvaluations( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListGeneratorEvaluationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Deletes an evaluation of generator.
                                          +     * 
                                          + */ + public com.google.protobuf.Empty deleteGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteGeneratorEvaluationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service GeneratorEvaluations. + * + *
                                          +   * Service for managing generator evaluations.
                                          +   * 
                                          + */ + public static final class GeneratorEvaluationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GeneratorEvaluationsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GeneratorEvaluationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GeneratorEvaluationsBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                          +     * Creates evaluation of a generator.
                                          +     * 
                                          + */ + public com.google.longrunning.Operation createGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGeneratorEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Gets an evaluation of generator.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGeneratorEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Lists evaluations of generator.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + listGeneratorEvaluations( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGeneratorEvaluationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Deletes an evaluation of generator.
                                          +     * 
                                          + */ + public com.google.protobuf.Empty deleteGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGeneratorEvaluationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service GeneratorEvaluations. + * + *
                                          +   * Service for managing generator evaluations.
                                          +   * 
                                          + */ + public static final class GeneratorEvaluationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GeneratorEvaluationsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GeneratorEvaluationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GeneratorEvaluationsFutureStub(channel, callOptions); + } + + /** + * + * + *
                                          +     * Creates evaluation of a generator.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture + createGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGeneratorEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                          +     * Gets an evaluation of generator.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation> + getGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGeneratorEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                          +     * Lists evaluations of generator.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse> + listGeneratorEvaluations( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGeneratorEvaluationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                          +     * Deletes an evaluation of generator.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGeneratorEvaluationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_GENERATOR_EVALUATION = 0; + private static final int METHODID_GET_GENERATOR_EVALUATION = 1; + private static final int METHODID_LIST_GENERATOR_EVALUATIONS = 2; + private static final int METHODID_DELETE_GENERATOR_EVALUATION = 3; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_GENERATOR_EVALUATION: + serviceImpl.createGeneratorEvaluation( + (com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_GENERATOR_EVALUATION: + serviceImpl.getGeneratorEvaluation( + (com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_GENERATOR_EVALUATIONS: + serviceImpl.listGeneratorEvaluations( + (com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse>) + responseObserver); + break; + case METHODID_DELETE_GENERATOR_EVALUATION: + serviceImpl.deleteGeneratorEvaluation( + (com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateGeneratorEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_GENERATOR_EVALUATION))) + .addMethod( + getGetGeneratorEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation>( + service, METHODID_GET_GENERATOR_EVALUATION))) + .addMethod( + getListGeneratorEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest, + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse>( + service, METHODID_LIST_GENERATOR_EVALUATIONS))) + .addMethod( + getDeleteGeneratorEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_GENERATOR_EVALUATION))) + .build(); + } + + private abstract static class GeneratorEvaluationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GeneratorEvaluationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GeneratorEvaluations"); + } + } + + private static final class GeneratorEvaluationsFileDescriptorSupplier + extends GeneratorEvaluationsBaseDescriptorSupplier { + GeneratorEvaluationsFileDescriptorSupplier() {} + } + + private static final class GeneratorEvaluationsMethodDescriptorSupplier + extends GeneratorEvaluationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + GeneratorEvaluationsMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (GeneratorEvaluationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GeneratorEvaluationsFileDescriptorSupplier()) + .addMethod(getCreateGeneratorEvaluationMethod()) + .addMethod(getGetGeneratorEvaluationMethod()) + .addMethod(getListGeneratorEvaluationsMethod()) + .addMethod(getDeleteGeneratorEvaluationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsGrpc.java index 07ea8dde8c2c..b5b4c7af46b9 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsGrpc.java @@ -28,9 +28,6 @@ * answers. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/generator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GeneratorsGrpc { @@ -562,8 +559,9 @@ protected GeneratorsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.Generator createGenerator( - com.google.cloud.dialogflow.v2beta1.CreateGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGeneratorMethod(), getCallOptions(), request); } @@ -575,8 +573,9 @@ public com.google.cloud.dialogflow.v2beta1.Generator createGenerator( * */ public com.google.cloud.dialogflow.v2beta1.Generator getGenerator( - com.google.cloud.dialogflow.v2beta1.GetGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGeneratorMethod(), getCallOptions(), request); } @@ -588,8 +587,9 @@ public com.google.cloud.dialogflow.v2beta1.Generator getGenerator( * */ public com.google.cloud.dialogflow.v2beta1.ListGeneratorsResponse listGenerators( - com.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGeneratorsMethod(), getCallOptions(), request); } @@ -601,8 +601,9 @@ public com.google.cloud.dialogflow.v2beta1.ListGeneratorsResponse listGenerators * */ public com.google.protobuf.Empty deleteGenerator( - com.google.cloud.dialogflow.v2beta1.DeleteGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGeneratorMethod(), getCallOptions(), request); } @@ -614,8 +615,9 @@ public com.google.protobuf.Empty deleteGenerator( * */ public com.google.cloud.dialogflow.v2beta1.Generator updateGenerator( - com.google.cloud.dialogflow.v2beta1.UpdateGeneratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateGeneratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGeneratorMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java index 6d8208bac554..7cd7c23451b8 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Intents][google.cloud.dialogflow.v2beta1.Intent]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/intent.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IntentsGrpc { @@ -740,8 +737,9 @@ protected IntentsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.ListIntentsResponse listIntents( - com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIntentsMethod(), getCallOptions(), request); } @@ -753,8 +751,9 @@ public com.google.cloud.dialogflow.v2beta1.ListIntentsResponse listIntents( * */ public com.google.cloud.dialogflow.v2beta1.Intent getIntent( - com.google.cloud.dialogflow.v2beta1.GetIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIntentMethod(), getCallOptions(), request); } @@ -769,8 +768,9 @@ public com.google.cloud.dialogflow.v2beta1.Intent getIntent( * */ public com.google.cloud.dialogflow.v2beta1.Intent createIntent( - com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIntentMethod(), getCallOptions(), request); } @@ -785,8 +785,9 @@ public com.google.cloud.dialogflow.v2beta1.Intent createIntent( * */ public com.google.cloud.dialogflow.v2beta1.Intent updateIntent( - com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIntentMethod(), getCallOptions(), request); } @@ -801,8 +802,9 @@ public com.google.cloud.dialogflow.v2beta1.Intent updateIntent( * */ public com.google.protobuf.Empty deleteIntent( - com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIntentMethod(), getCallOptions(), request); } @@ -824,8 +826,9 @@ public com.google.protobuf.Empty deleteIntent( * */ public com.google.longrunning.Operation batchUpdateIntents( - com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateIntentsMethod(), getCallOptions(), request); } @@ -847,8 +850,9 @@ public com.google.longrunning.Operation batchUpdateIntents( * */ public com.google.longrunning.Operation batchDeleteIntents( - com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteIntentsMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java index feaf7d4516fd..0acd89b03639 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java @@ -25,9 +25,6 @@ * [KnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBase]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/knowledge_base.proto") @io.grpc.stub.annotations.GrpcGenerated public final class KnowledgeBasesGrpc { @@ -586,8 +583,9 @@ protected KnowledgeBasesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse listKnowledgeBases( - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListKnowledgeBasesMethod(), getCallOptions(), request); } @@ -601,8 +599,9 @@ public com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse listKnowle * */ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKnowledgeBaseMethod(), getCallOptions(), request); } @@ -616,8 +615,9 @@ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase( * */ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase createKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateKnowledgeBaseMethod(), getCallOptions(), request); } @@ -631,8 +631,9 @@ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase createKnowledgeBase( * */ public com.google.protobuf.Empty deleteKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteKnowledgeBaseMethod(), getCallOptions(), request); } @@ -646,8 +647,9 @@ public com.google.protobuf.Empty deleteKnowledgeBase( * */ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase updateKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateKnowledgeBaseMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java index 7f81b663d811..50d3af4d2c96 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java @@ -25,9 +25,6 @@ * [Participants][google.cloud.dialogflow.v2beta1.Participant]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/participant.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ParticipantsGrpc { @@ -319,6 +316,58 @@ private ParticipantsGrpc() {} return getStreamingAnalyzeContentMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse> + getBidiStreamingAnalyzeContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BidiStreamingAnalyzeContent", + requestType = com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.class, + responseType = com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse> + getBidiStreamingAnalyzeContentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse> + getBidiStreamingAnalyzeContentMethod; + if ((getBidiStreamingAnalyzeContentMethod = + ParticipantsGrpc.getBidiStreamingAnalyzeContentMethod) + == null) { + synchronized (ParticipantsGrpc.class) { + if ((getBidiStreamingAnalyzeContentMethod = + ParticipantsGrpc.getBidiStreamingAnalyzeContentMethod) + == null) { + ParticipantsGrpc.getBidiStreamingAnalyzeContentMethod = + getBidiStreamingAnalyzeContentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BidiStreamingAnalyzeContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1 + .BidiStreamingAnalyzeContentResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ParticipantsMethodDescriptorSupplier("BidiStreamingAnalyzeContent")) + .build(); + } + } + } + return getBidiStreamingAnalyzeContentMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest, com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse> @@ -778,6 +827,24 @@ default void analyzeContent( getStreamingAnalyzeContentMethod(), responseObserver); } + /** + * + * + *
                                          +     * Bidirectional endless streaming version of
                                          +     * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent].
                                          +     * 
                                          + */ + default io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest> + bidiStreamingAnalyzeContent( + io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getBidiStreamingAnalyzeContentMethod(), responseObserver); + } + /** * * @@ -1065,6 +1132,25 @@ public void analyzeContent( responseObserver); } + /** + * + * + *
                                          +     * Bidirectional endless streaming version of
                                          +     * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent].
                                          +     * 
                                          + */ + public io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest> + bidiStreamingAnalyzeContent( + io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getBidiStreamingAnalyzeContentMethod(), getCallOptions()), + responseObserver); + } + /** * * @@ -1237,8 +1323,9 @@ protected ParticipantsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.Participant createParticipant( - com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateParticipantMethod(), getCallOptions(), request); } @@ -1250,8 +1337,9 @@ public com.google.cloud.dialogflow.v2beta1.Participant createParticipant( * */ public com.google.cloud.dialogflow.v2beta1.Participant getParticipant( - com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetParticipantMethod(), getCallOptions(), request); } @@ -1263,8 +1351,9 @@ public com.google.cloud.dialogflow.v2beta1.Participant getParticipant( * */ public com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse listParticipants( - com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListParticipantsMethod(), getCallOptions(), request); } @@ -1276,8 +1365,9 @@ public com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse listParticip * */ public com.google.cloud.dialogflow.v2beta1.Participant updateParticipant( - com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateParticipantMethod(), getCallOptions(), request); } @@ -1293,8 +1383,9 @@ public com.google.cloud.dialogflow.v2beta1.Participant updateParticipant( * */ public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyzeContent( - com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); } @@ -1326,6 +1417,23 @@ public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyzeContent getChannel(), getStreamingAnalyzeContentMethod(), getCallOptions()); } + /** + * + * + *
                                          +     * Bidirectional endless streaming version of
                                          +     * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent].
                                          +     * 
                                          + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse> + bidiStreamingAnalyzeContent() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getBidiStreamingAnalyzeContentMethod(), getCallOptions()); + } + /** * * @@ -1341,8 +1449,9 @@ public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyzeContent * */ public com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggestArticles( - com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); } @@ -1355,8 +1464,9 @@ public com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggestArticl * */ public com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggestFaqAnswers( - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestFaqAnswersMethod(), getCallOptions(), request); } @@ -1369,8 +1479,9 @@ public com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggestFaqA * */ public com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggestSmartReplies( - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestSmartRepliesMethod(), getCallOptions(), request); } @@ -1383,8 +1494,9 @@ public com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggestSm */ public com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse suggestKnowledgeAssist( - com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSuggestKnowledgeAssistMethod(), getCallOptions(), request); } @@ -1414,8 +1526,9 @@ public com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggestSm */ @java.lang.Deprecated public com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse listSuggestions( - com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSuggestionsMethod(), getCallOptions(), request); } @@ -1440,8 +1553,9 @@ public com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse listSuggestio */ @java.lang.Deprecated public com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse compileSuggestion( - com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompileSuggestionMethod(), getCallOptions(), request); } } @@ -1888,6 +2002,7 @@ protected ParticipantsFutureStub build( private static final int METHODID_LIST_SUGGESTIONS = 9; private static final int METHODID_COMPILE_SUGGESTION = 10; private static final int METHODID_STREAMING_ANALYZE_CONTENT = 11; + private static final int METHODID_BIDI_STREAMING_ANALYZE_CONTENT = 12; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1996,6 +2111,12 @@ public io.grpc.stub.StreamObserver invoke( (io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse>) responseObserver); + case METHODID_BIDI_STREAMING_ANALYZE_CONTENT: + return (io.grpc.stub.StreamObserver) + serviceImpl.bidiStreamingAnalyzeContent( + (io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse>) + responseObserver); default: throw new AssertionError(); } @@ -2046,6 +2167,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest, com.google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse>( service, METHODID_STREAMING_ANALYZE_CONTENT))) + .addMethod( + getBidiStreamingAnalyzeContentMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse>( + service, METHODID_BIDI_STREAMING_ANALYZE_CONTENT))) .addMethod( getSuggestArticlesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2145,6 +2273,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateParticipantMethod()) .addMethod(getAnalyzeContentMethod()) .addMethod(getStreamingAnalyzeContentMethod()) + .addMethod(getBidiStreamingAnalyzeContentMethod()) .addMethod(getSuggestArticlesMethod()) .addMethod(getSuggestFaqAnswersMethod()) .addMethod(getSuggestSmartRepliesMethod()) diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersGrpc.java index 188f5a2e4ee2..aeca063b9050 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersGrpc.java @@ -25,9 +25,6 @@ * [PhoneNumbers][google.cloud.dialogflow.v2beta1.PhoneNumber]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/phone_number.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PhoneNumbersGrpc { @@ -498,8 +495,9 @@ protected PhoneNumbersBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersResponse listPhoneNumbers( - com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPhoneNumbersMethod(), getCallOptions(), request); } @@ -511,8 +509,9 @@ public com.google.cloud.dialogflow.v2beta1.ListPhoneNumbersResponse listPhoneNum * */ public com.google.cloud.dialogflow.v2beta1.PhoneNumber updatePhoneNumber( - com.google.cloud.dialogflow.v2beta1.UpdatePhoneNumberRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdatePhoneNumberRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePhoneNumberMethod(), getCallOptions(), request); } @@ -529,8 +528,9 @@ public com.google.cloud.dialogflow.v2beta1.PhoneNumber updatePhoneNumber( * */ public com.google.cloud.dialogflow.v2beta1.PhoneNumber deletePhoneNumber( - com.google.cloud.dialogflow.v2beta1.DeletePhoneNumberRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeletePhoneNumberRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePhoneNumberMethod(), getCallOptions(), request); } @@ -545,8 +545,9 @@ public com.google.cloud.dialogflow.v2beta1.PhoneNumber deletePhoneNumber( * */ public com.google.cloud.dialogflow.v2beta1.PhoneNumber undeletePhoneNumber( - com.google.cloud.dialogflow.v2beta1.UndeletePhoneNumberRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UndeletePhoneNumberRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeletePhoneNumberMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java index 24213f3a3ada..78e97e5c95fd 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java @@ -25,9 +25,6 @@ * [SessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityType]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/session_entity_type.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionEntityTypesGrpc { @@ -620,8 +617,9 @@ protected SessionEntityTypesBlockingV2Stub build( */ public com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse listSessionEntityTypes( - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionEntityTypesMethod(), getCallOptions(), request); } @@ -636,8 +634,9 @@ protected SessionEntityTypesBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityType( - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionEntityTypeMethod(), getCallOptions(), request); } @@ -654,8 +653,9 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTyp * */ public com.google.cloud.dialogflow.v2beta1.SessionEntityType createSessionEntityType( - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -670,8 +670,9 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType createSessionEntity * */ public com.google.cloud.dialogflow.v2beta1.SessionEntityType updateSessionEntityType( - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionEntityTypeMethod(), getCallOptions(), request); } @@ -686,8 +687,9 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType updateSessionEntity * */ public com.google.protobuf.Empty deleteSessionEntityType( - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionEntityTypeMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java index c5263be20b4a..b8d819a46358 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java @@ -26,9 +26,6 @@ * guide](https://cloud.google.com/dialogflow/docs/api-overview). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/session.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionsGrpc { @@ -388,8 +385,9 @@ protected SessionsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.DetectIntentResponse detectIntent( - com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetectIntentMethod(), getCallOptions(), request); } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksGrpc.java index 7357fe1256f3..1275926c8be0 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksGrpc.java @@ -24,9 +24,6 @@ * Service for managing [SipTrunks][google.cloud.dialogflow.v2beta1.SipTrunk]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/sip_trunk.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SipTrunksGrpc { @@ -539,8 +536,9 @@ protected SipTrunksBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.SipTrunk createSipTrunk( - com.google.cloud.dialogflow.v2beta1.CreateSipTrunkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateSipTrunkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSipTrunkMethod(), getCallOptions(), request); } @@ -552,8 +550,9 @@ public com.google.cloud.dialogflow.v2beta1.SipTrunk createSipTrunk( * */ public com.google.protobuf.Empty deleteSipTrunk( - com.google.cloud.dialogflow.v2beta1.DeleteSipTrunkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteSipTrunkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSipTrunkMethod(), getCallOptions(), request); } @@ -565,8 +564,9 @@ public com.google.protobuf.Empty deleteSipTrunk( * */ public com.google.cloud.dialogflow.v2beta1.ListSipTrunksResponse listSipTrunks( - com.google.cloud.dialogflow.v2beta1.ListSipTrunksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListSipTrunksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSipTrunksMethod(), getCallOptions(), request); } @@ -578,8 +578,9 @@ public com.google.cloud.dialogflow.v2beta1.ListSipTrunksResponse listSipTrunks( * */ public com.google.cloud.dialogflow.v2beta1.SipTrunk getSipTrunk( - com.google.cloud.dialogflow.v2beta1.GetSipTrunkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetSipTrunkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSipTrunkMethod(), getCallOptions(), request); } @@ -591,8 +592,9 @@ public com.google.cloud.dialogflow.v2beta1.SipTrunk getSipTrunk( * */ public com.google.cloud.dialogflow.v2beta1.SipTrunk updateSipTrunk( - com.google.cloud.dialogflow.v2beta1.UpdateSipTrunkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateSipTrunkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSipTrunkMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsGrpc.java new file mode 100644 index 000000000000..b943173fbbd9 --- /dev/null +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsGrpc.java @@ -0,0 +1,925 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                          + * Tool Service for LLM powered Agent Assist. Tools can be used to interact with
                                          + * remote APIs (e.g. fetching orders) to retrieve additional information as
                                          + * input to LLM.
                                          + * 
                                          + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class ToolsGrpc { + + private ToolsGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Tools"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.CreateToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool> + getCreateToolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTool", + requestType = com.google.cloud.dialogflow.v2beta1.CreateToolRequest.class, + responseType = com.google.cloud.dialogflow.v2beta1.Tool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.CreateToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool> + getCreateToolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.CreateToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool> + getCreateToolMethod; + if ((getCreateToolMethod = ToolsGrpc.getCreateToolMethod) == null) { + synchronized (ToolsGrpc.class) { + if ((getCreateToolMethod = ToolsGrpc.getCreateToolMethod) == null) { + ToolsGrpc.getCreateToolMethod = + getCreateToolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.CreateToolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance())) + .setSchemaDescriptor(new ToolsMethodDescriptorSupplier("CreateTool")) + .build(); + } + } + } + return getCreateToolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool> + getGetToolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTool", + requestType = com.google.cloud.dialogflow.v2beta1.GetToolRequest.class, + responseType = com.google.cloud.dialogflow.v2beta1.Tool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool> + getGetToolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool> + getGetToolMethod; + if ((getGetToolMethod = ToolsGrpc.getGetToolMethod) == null) { + synchronized (ToolsGrpc.class) { + if ((getGetToolMethod = ToolsGrpc.getGetToolMethod) == null) { + ToolsGrpc.getGetToolMethod = + getGetToolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.GetToolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance())) + .setSchemaDescriptor(new ToolsMethodDescriptorSupplier("GetTool")) + .build(); + } + } + } + return getGetToolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ListToolsRequest, + com.google.cloud.dialogflow.v2beta1.ListToolsResponse> + getListToolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTools", + requestType = com.google.cloud.dialogflow.v2beta1.ListToolsRequest.class, + responseType = com.google.cloud.dialogflow.v2beta1.ListToolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ListToolsRequest, + com.google.cloud.dialogflow.v2beta1.ListToolsResponse> + getListToolsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ListToolsRequest, + com.google.cloud.dialogflow.v2beta1.ListToolsResponse> + getListToolsMethod; + if ((getListToolsMethod = ToolsGrpc.getListToolsMethod) == null) { + synchronized (ToolsGrpc.class) { + if ((getListToolsMethod = ToolsGrpc.getListToolsMethod) == null) { + ToolsGrpc.getListToolsMethod = + getListToolsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.ListToolsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.ListToolsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ToolsMethodDescriptorSupplier("ListTools")) + .build(); + } + } + } + return getListToolsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest, com.google.protobuf.Empty> + getDeleteToolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTool", + requestType = com.google.cloud.dialogflow.v2beta1.DeleteToolRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest, com.google.protobuf.Empty> + getDeleteToolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest, com.google.protobuf.Empty> + getDeleteToolMethod; + if ((getDeleteToolMethod = ToolsGrpc.getDeleteToolMethod) == null) { + synchronized (ToolsGrpc.class) { + if ((getDeleteToolMethod = ToolsGrpc.getDeleteToolMethod) == null) { + ToolsGrpc.getDeleteToolMethod = + getDeleteToolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ToolsMethodDescriptorSupplier("DeleteTool")) + .build(); + } + } + } + return getDeleteToolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool> + getUpdateToolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTool", + requestType = com.google.cloud.dialogflow.v2beta1.UpdateToolRequest.class, + responseType = com.google.cloud.dialogflow.v2beta1.Tool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool> + getUpdateToolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool> + getUpdateToolMethod; + if ((getUpdateToolMethod = ToolsGrpc.getUpdateToolMethod) == null) { + synchronized (ToolsGrpc.class) { + if ((getUpdateToolMethod = ToolsGrpc.getUpdateToolMethod) == null) { + ToolsGrpc.getUpdateToolMethod = + getUpdateToolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance())) + .setSchemaDescriptor(new ToolsMethodDescriptorSupplier("UpdateTool")) + .build(); + } + } + } + return getUpdateToolMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ToolsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ToolsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolsStub(channel, callOptions); + } + }; + return ToolsStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static ToolsBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ToolsBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolsBlockingV2Stub(channel, callOptions); + } + }; + return ToolsBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ToolsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ToolsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolsBlockingStub(channel, callOptions); + } + }; + return ToolsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ToolsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ToolsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolsFutureStub(channel, callOptions); + } + }; + return ToolsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                          +   * Tool Service for LLM powered Agent Assist. Tools can be used to interact with
                                          +   * remote APIs (e.g. fetching orders) to retrieve additional information as
                                          +   * input to LLM.
                                          +   * 
                                          + */ + public interface AsyncService { + + /** + * + * + *
                                          +     * Creates a tool.
                                          +     * 
                                          + */ + default void createTool( + com.google.cloud.dialogflow.v2beta1.CreateToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateToolMethod(), responseObserver); + } + + /** + * + * + *
                                          +     * Retrieves a tool.
                                          +     * 
                                          + */ + default void getTool( + com.google.cloud.dialogflow.v2beta1.GetToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetToolMethod(), responseObserver); + } + + /** + * + * + *
                                          +     * Lists tools.
                                          +     * 
                                          + */ + default void listTools( + com.google.cloud.dialogflow.v2beta1.ListToolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListToolsMethod(), responseObserver); + } + + /** + * + * + *
                                          +     * Deletes a tool.
                                          +     * 
                                          + */ + default void deleteTool( + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteToolMethod(), responseObserver); + } + + /** + * + * + *
                                          +     * Updates a tool.
                                          +     * 
                                          + */ + default void updateTool( + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateToolMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Tools. + * + *
                                          +   * Tool Service for LLM powered Agent Assist. Tools can be used to interact with
                                          +   * remote APIs (e.g. fetching orders) to retrieve additional information as
                                          +   * input to LLM.
                                          +   * 
                                          + */ + public abstract static class ToolsImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ToolsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Tools. + * + *
                                          +   * Tool Service for LLM powered Agent Assist. Tools can be used to interact with
                                          +   * remote APIs (e.g. fetching orders) to retrieve additional information as
                                          +   * input to LLM.
                                          +   * 
                                          + */ + public static final class ToolsStub extends io.grpc.stub.AbstractAsyncStub { + private ToolsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ToolsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolsStub(channel, callOptions); + } + + /** + * + * + *
                                          +     * Creates a tool.
                                          +     * 
                                          + */ + public void createTool( + com.google.cloud.dialogflow.v2beta1.CreateToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateToolMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                                          +     * Retrieves a tool.
                                          +     * 
                                          + */ + public void getTool( + com.google.cloud.dialogflow.v2beta1.GetToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetToolMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                                          +     * Lists tools.
                                          +     * 
                                          + */ + public void listTools( + com.google.cloud.dialogflow.v2beta1.ListToolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListToolsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                                          +     * Deletes a tool.
                                          +     * 
                                          + */ + public void deleteTool( + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteToolMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                                          +     * Updates a tool.
                                          +     * 
                                          + */ + public void updateTool( + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateToolMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Tools. + * + *
                                          +   * Tool Service for LLM powered Agent Assist. Tools can be used to interact with
                                          +   * remote APIs (e.g. fetching orders) to retrieve additional information as
                                          +   * input to LLM.
                                          +   * 
                                          + */ + public static final class ToolsBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private ToolsBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ToolsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolsBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                          +     * Creates a tool.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.Tool createTool( + com.google.cloud.dialogflow.v2beta1.CreateToolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Retrieves a tool.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.Tool getTool( + com.google.cloud.dialogflow.v2beta1.GetToolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Lists tools.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.ListToolsResponse listTools( + com.google.cloud.dialogflow.v2beta1.ListToolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListToolsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Deletes a tool.
                                          +     * 
                                          + */ + public com.google.protobuf.Empty deleteTool( + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Updates a tool.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.Tool updateTool( + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateToolMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service Tools. + * + *
                                          +   * Tool Service for LLM powered Agent Assist. Tools can be used to interact with
                                          +   * remote APIs (e.g. fetching orders) to retrieve additional information as
                                          +   * input to LLM.
                                          +   * 
                                          + */ + public static final class ToolsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ToolsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ToolsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolsBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                          +     * Creates a tool.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.Tool createTool( + com.google.cloud.dialogflow.v2beta1.CreateToolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Retrieves a tool.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.Tool getTool( + com.google.cloud.dialogflow.v2beta1.GetToolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Lists tools.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.ListToolsResponse listTools( + com.google.cloud.dialogflow.v2beta1.ListToolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListToolsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Deletes a tool.
                                          +     * 
                                          + */ + public com.google.protobuf.Empty deleteTool( + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Updates a tool.
                                          +     * 
                                          + */ + public com.google.cloud.dialogflow.v2beta1.Tool updateTool( + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateToolMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Tools. + * + *
                                          +   * Tool Service for LLM powered Agent Assist. Tools can be used to interact with
                                          +   * remote APIs (e.g. fetching orders) to retrieve additional information as
                                          +   * input to LLM.
                                          +   * 
                                          + */ + public static final class ToolsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ToolsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ToolsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolsFutureStub(channel, callOptions); + } + + /** + * + * + *
                                          +     * Creates a tool.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.v2beta1.Tool> + createTool(com.google.cloud.dialogflow.v2beta1.CreateToolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateToolMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                          +     * Retrieves a tool.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.v2beta1.Tool> + getTool(com.google.cloud.dialogflow.v2beta1.GetToolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetToolMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                          +     * Lists tools.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.v2beta1.ListToolsResponse> + listTools(com.google.cloud.dialogflow.v2beta1.ListToolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListToolsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                          +     * Deletes a tool.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture deleteTool( + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteToolMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                          +     * Updates a tool.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.v2beta1.Tool> + updateTool(com.google.cloud.dialogflow.v2beta1.UpdateToolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateToolMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_TOOL = 0; + private static final int METHODID_GET_TOOL = 1; + private static final int METHODID_LIST_TOOLS = 2; + private static final int METHODID_DELETE_TOOL = 3; + private static final int METHODID_UPDATE_TOOL = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_TOOL: + serviceImpl.createTool( + (com.google.cloud.dialogflow.v2beta1.CreateToolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TOOL: + serviceImpl.getTool( + (com.google.cloud.dialogflow.v2beta1.GetToolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_TOOLS: + serviceImpl.listTools( + (com.google.cloud.dialogflow.v2beta1.ListToolsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TOOL: + serviceImpl.deleteTool( + (com.google.cloud.dialogflow.v2beta1.DeleteToolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_TOOL: + serviceImpl.updateTool( + (com.google.cloud.dialogflow.v2beta1.UpdateToolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateToolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.CreateToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool>(service, METHODID_CREATE_TOOL))) + .addMethod( + getGetToolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.GetToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool>(service, METHODID_GET_TOOL))) + .addMethod( + getListToolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.ListToolsRequest, + com.google.cloud.dialogflow.v2beta1.ListToolsResponse>( + service, METHODID_LIST_TOOLS))) + .addMethod( + getDeleteToolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_TOOL))) + .addMethod( + getUpdateToolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest, + com.google.cloud.dialogflow.v2beta1.Tool>(service, METHODID_UPDATE_TOOL))) + .build(); + } + + private abstract static class ToolsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ToolsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Tools"); + } + } + + private static final class ToolsFileDescriptorSupplier extends ToolsBaseDescriptorSupplier { + ToolsFileDescriptorSupplier() {} + } + + private static final class ToolsMethodDescriptorSupplier extends ToolsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ToolsMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ToolsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ToolsFileDescriptorSupplier()) + .addMethod(getCreateToolMethod()) + .addMethod(getGetToolMethod()) + .addMethod(getListToolsMethod()) + .addMethod(getDeleteToolMethod()) + .addMethod(getUpdateToolMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsGrpc.java index 5bb9a075cb8f..029ef034454b 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Versions][google.cloud.dialogflow.v2beta1.Version]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/version.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VersionsGrpc { @@ -538,8 +535,9 @@ protected VersionsBlockingV2Stub build( * */ public com.google.cloud.dialogflow.v2beta1.ListVersionsResponse listVersions( - com.google.cloud.dialogflow.v2beta1.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.ListVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVersionsMethod(), getCallOptions(), request); } @@ -551,8 +549,9 @@ public com.google.cloud.dialogflow.v2beta1.ListVersionsResponse listVersions( * */ public com.google.cloud.dialogflow.v2beta1.Version getVersion( - com.google.cloud.dialogflow.v2beta1.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.GetVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVersionMethod(), getCallOptions(), request); } @@ -565,8 +564,9 @@ public com.google.cloud.dialogflow.v2beta1.Version getVersion( * */ public com.google.cloud.dialogflow.v2beta1.Version createVersion( - com.google.cloud.dialogflow.v2beta1.CreateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.CreateVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVersionMethod(), getCallOptions(), request); } @@ -581,8 +581,9 @@ public com.google.cloud.dialogflow.v2beta1.Version createVersion( * */ public com.google.cloud.dialogflow.v2beta1.Version updateVersion( - com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVersionMethod(), getCallOptions(), request); } @@ -594,8 +595,9 @@ public com.google.cloud.dialogflow.v2beta1.Version updateVersion( * */ public com.google.protobuf.Empty deleteVersion( - com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVersionMethod(), getCallOptions(), request); } } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecord.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecord.java index 9bf8b6b401b8..bde70c15ce81 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecord.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecord.java @@ -74,6 +74,7 @@ public enum AnswerCase ARTICLE_SUGGESTION_ANSWER(5), FAQ_ANSWER(6), DIALOGFLOW_ASSIST_ANSWER(7), + GENERATOR_SUGGESTION(8), ANSWER_NOT_SET(0); private final int value; @@ -99,6 +100,8 @@ public static AnswerCase forNumber(int value) { return FAQ_ANSWER; case 7: return DIALOGFLOW_ASSIST_ANSWER; + case 8: + return GENERATOR_SUGGESTION; case 0: return ANSWER_NOT_SET; default: @@ -297,6 +300,67 @@ public com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer getDialogflowA return com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer.getDefaultInstance(); } + public static final int GENERATOR_SUGGESTION_FIELD_NUMBER = 8; + + /** + * + * + *
                                          +   * Output only. The generator suggestion.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the generatorSuggestion field is set. + */ + @java.lang.Override + public boolean hasGeneratorSuggestion() { + return answerCase_ == 8; + } + + /** + * + * + *
                                          +   * Output only. The generator suggestion.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorSuggestion. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion getGeneratorSuggestion() { + if (answerCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) answer_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Output only. The generator suggestion.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestionOrBuilder + getGeneratorSuggestionOrBuilder() { + if (answerCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) answer_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -320,6 +384,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (answerCase_ == 7) { output.writeMessage(7, (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_); } + if (answerCase_ == 8) { + output.writeMessage(8, (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) answer_); + } getUnknownFields().writeTo(output); } @@ -344,6 +411,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer) answer_); } + if (answerCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) answer_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -371,6 +443,9 @@ public boolean equals(final java.lang.Object obj) { case 7: if (!getDialogflowAssistAnswer().equals(other.getDialogflowAssistAnswer())) return false; break; + case 8: + if (!getGeneratorSuggestion().equals(other.getGeneratorSuggestion())) return false; + break; case 0: default: } @@ -398,6 +473,10 @@ public int hashCode() { hash = (37 * hash) + DIALOGFLOW_ASSIST_ANSWER_FIELD_NUMBER; hash = (53 * hash) + getDialogflowAssistAnswer().hashCode(); break; + case 8: + hash = (37 * hash) + GENERATOR_SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getGeneratorSuggestion().hashCode(); + break; case 0: default: } @@ -551,6 +630,9 @@ public Builder clear() { if (dialogflowAssistAnswerBuilder_ != null) { dialogflowAssistAnswerBuilder_.clear(); } + if (generatorSuggestionBuilder_ != null) { + generatorSuggestionBuilder_.clear(); + } answerCase_ = 0; answer_ = null; return this; @@ -605,6 +687,9 @@ private void buildPartialOneofs( if (answerCase_ == 7 && dialogflowAssistAnswerBuilder_ != null) { result.answer_ = dialogflowAssistAnswerBuilder_.build(); } + if (answerCase_ == 8 && generatorSuggestionBuilder_ != null) { + result.answer_ = generatorSuggestionBuilder_.build(); + } } @java.lang.Override @@ -669,6 +754,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AgentAssistantRecor mergeDialogflowAssistAnswer(other.getDialogflowAssistAnswer()); break; } + case GENERATOR_SUGGESTION: + { + mergeGeneratorSuggestion(other.getGeneratorSuggestion()); + break; + } case ANSWER_NOT_SET: { break; @@ -720,6 +810,13 @@ public Builder mergeFrom( answerCase_ = 7; break; } // case 58 + case 66: + { + input.readMessage( + getGeneratorSuggestionFieldBuilder().getBuilder(), extensionRegistry); + answerCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1471,6 +1568,247 @@ public Builder clearDialogflowAssistAnswer() { return dialogflowAssistAnswerBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestionOrBuilder> + generatorSuggestionBuilder_; + + /** + * + * + *
                                          +     * Output only. The generator suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the generatorSuggestion field is set. + */ + @java.lang.Override + public boolean hasGeneratorSuggestion() { + return answerCase_ == 8; + } + + /** + * + * + *
                                          +     * Output only. The generator suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorSuggestion. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion getGeneratorSuggestion() { + if (generatorSuggestionBuilder_ == null) { + if (answerCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) answer_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance(); + } else { + if (answerCase_ == 8) { + return generatorSuggestionBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. The generator suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGeneratorSuggestion( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion value) { + if (generatorSuggestionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + answer_ = value; + onChanged(); + } else { + generatorSuggestionBuilder_.setMessage(value); + } + answerCase_ = 8; + return this; + } + + /** + * + * + *
                                          +     * Output only. The generator suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGeneratorSuggestion( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.Builder builderForValue) { + if (generatorSuggestionBuilder_ == null) { + answer_ = builderForValue.build(); + onChanged(); + } else { + generatorSuggestionBuilder_.setMessage(builderForValue.build()); + } + answerCase_ = 8; + return this; + } + + /** + * + * + *
                                          +     * Output only. The generator suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeGeneratorSuggestion( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion value) { + if (generatorSuggestionBuilder_ == null) { + if (answerCase_ == 8 + && answer_ + != com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance()) { + answer_ = + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.newBuilder( + (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) answer_) + .mergeFrom(value) + .buildPartial(); + } else { + answer_ = value; + } + onChanged(); + } else { + if (answerCase_ == 8) { + generatorSuggestionBuilder_.mergeFrom(value); + } else { + generatorSuggestionBuilder_.setMessage(value); + } + } + answerCase_ = 8; + return this; + } + + /** + * + * + *
                                          +     * Output only. The generator suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGeneratorSuggestion() { + if (generatorSuggestionBuilder_ == null) { + if (answerCase_ == 8) { + answerCase_ = 0; + answer_ = null; + onChanged(); + } + } else { + if (answerCase_ == 8) { + answerCase_ = 0; + answer_ = null; + } + generatorSuggestionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. The generator suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.Builder + getGeneratorSuggestionBuilder() { + return getGeneratorSuggestionFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. The generator suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestionOrBuilder + getGeneratorSuggestionOrBuilder() { + if ((answerCase_ == 8) && (generatorSuggestionBuilder_ != null)) { + return generatorSuggestionBuilder_.getMessageOrBuilder(); + } else { + if (answerCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) answer_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. The generator suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestionOrBuilder> + getGeneratorSuggestionFieldBuilder() { + if (generatorSuggestionBuilder_ == null) { + if (!(answerCase_ == 8)) { + answer_ = com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance(); + } + generatorSuggestionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestionOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) answer_, + getParentForChildren(), + isClean()); + answer_ = null; + } + answerCase_ = 8; + onChanged(); + return generatorSuggestionBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java index 2231eac64bbc..e9b06c7fe593 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java @@ -154,5 +154,49 @@ public interface AgentAssistantRecordOrBuilder com.google.cloud.dialogflow.v2beta1.DialogflowAssistAnswerOrBuilder getDialogflowAssistAnswerOrBuilder(); + /** + * + * + *
                                          +   * Output only. The generator suggestion.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the generatorSuggestion field is set. + */ + boolean hasGeneratorSuggestion(); + + /** + * + * + *
                                          +   * Output only. The generator suggestion.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorSuggestion. + */ + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion getGeneratorSuggestion(); + + /** + * + * + *
                                          +   * Output only. The generator suggestion.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorSuggestion generator_suggestion = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestionOrBuilder + getGeneratorSuggestionOrBuilder(); + com.google.cloud.dialogflow.v2beta1.AgentAssistantRecord.AnswerCase getAnswerCase(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingContext.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingContext.java new file mode 100644 index 000000000000..a0212568de52 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingContext.java @@ -0,0 +1,1611 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Agent Coaching context that customer can configure.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingContext} + */ +public final class AgentCoachingContext extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingContext) + AgentCoachingContextOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AgentCoachingContext.newBuilder() to construct. + private AgentCoachingContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AgentCoachingContext() { + overarchingGuidance_ = ""; + instructions_ = java.util.Collections.emptyList(); + version_ = ""; + outputLanguageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AgentCoachingContext(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.Builder.class); + } + + public static final int OVERARCHING_GUIDANCE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object overarchingGuidance_ = ""; + + /** + * + * + *
                                          +   * Optional. The overarching guidance for the agent coaching. This should be
                                          +   * set only for v1.5 and later versions.
                                          +   * 
                                          + * + * string overarching_guidance = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overarchingGuidance. + */ + @java.lang.Override + public java.lang.String getOverarchingGuidance() { + java.lang.Object ref = overarchingGuidance_; + 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(); + overarchingGuidance_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The overarching guidance for the agent coaching. This should be
                                          +   * set only for v1.5 and later versions.
                                          +   * 
                                          + * + * string overarching_guidance = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for overarchingGuidance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOverarchingGuidanceBytes() { + java.lang.Object ref = overarchingGuidance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overarchingGuidance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTRUCTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + instructions_; + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInstructionsList() { + return instructions_; + } + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder> + getInstructionsOrBuilderList() { + return instructions_; + } + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInstructionsCount() { + return instructions_.size(); + } + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction getInstructions(int index) { + return instructions_.get(index); + } + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder + getInstructionsOrBuilder(int index) { + return instructions_.get(index); + } + + public static final int VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
                                          +   * Optional. Version of the feature. If not set, default to latest version.
                                          +   * Current candidates are ["2.5"].
                                          +   * 
                                          + * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. Version of the feature. If not set, default to latest version.
                                          +   * Current candidates are ["2.5"].
                                          +   * 
                                          + * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_LANGUAGE_CODE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputLanguageCode_ = ""; + + /** + * + * + *
                                          +   * Optional. Output language code.
                                          +   * 
                                          + * + * string output_language_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputLanguageCode. + */ + @java.lang.Override + public java.lang.String getOutputLanguageCode() { + java.lang.Object ref = outputLanguageCode_; + 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(); + outputLanguageCode_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. Output language code.
                                          +   * 
                                          + * + * string output_language_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputLanguageCodeBytes() { + java.lang.Object ref = outputLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputLanguageCode_ = 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 < instructions_.size(); i++) { + output.writeMessage(1, instructions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(overarchingGuidance_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, overarchingGuidance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputLanguageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, outputLanguageCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < instructions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instructions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(overarchingGuidance_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, overarchingGuidance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputLanguageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, outputLanguageCode_); + } + 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.dialogflow.v2beta1.AgentCoachingContext)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) obj; + + if (!getOverarchingGuidance().equals(other.getOverarchingGuidance())) return false; + if (!getInstructionsList().equals(other.getInstructionsList())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getOutputLanguageCode().equals(other.getOutputLanguageCode())) 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) + OVERARCHING_GUIDANCE_FIELD_NUMBER; + hash = (53 * hash) + getOverarchingGuidance().hashCode(); + if (getInstructionsCount() > 0) { + hash = (37 * hash) + INSTRUCTIONS_FIELD_NUMBER; + hash = (53 * hash) + getInstructionsList().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + OUTPUT_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getOutputLanguageCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext 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.dialogflow.v2beta1.AgentCoachingContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext 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.dialogflow.v2beta1.AgentCoachingContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Agent Coaching context that customer can configure.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingContext) + com.google.cloud.dialogflow.v2beta1.AgentCoachingContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + overarchingGuidance_ = ""; + if (instructionsBuilder_ == null) { + instructions_ = java.util.Collections.emptyList(); + } else { + instructions_ = null; + instructionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + version_ = ""; + outputLanguageCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingContext getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingContext build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingContext buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingContext(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext result) { + if (instructionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instructions_ = java.util.Collections.unmodifiableList(instructions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instructions_ = instructions_; + } else { + result.instructions_ = instructionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.AgentCoachingContext result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.overarchingGuidance_ = overarchingGuidance_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputLanguageCode_ = outputLanguageCode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AgentCoachingContext other) { + if (other == com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.getDefaultInstance()) + return this; + if (!other.getOverarchingGuidance().isEmpty()) { + overarchingGuidance_ = other.overarchingGuidance_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (instructionsBuilder_ == null) { + if (!other.instructions_.isEmpty()) { + if (instructions_.isEmpty()) { + instructions_ = other.instructions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstructionsIsMutable(); + instructions_.addAll(other.instructions_); + } + onChanged(); + } + } else { + if (!other.instructions_.isEmpty()) { + if (instructionsBuilder_.isEmpty()) { + instructionsBuilder_.dispose(); + instructionsBuilder_ = null; + instructions_ = other.instructions_; + bitField0_ = (bitField0_ & ~0x00000002); + instructionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstructionsFieldBuilder() + : null; + } else { + instructionsBuilder_.addAllMessages(other.instructions_); + } + } + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOutputLanguageCode().isEmpty()) { + outputLanguageCode_ = other.outputLanguageCode_; + bitField0_ |= 0x00000008; + 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.dialogflow.v2beta1.AgentCoachingInstruction m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.parser(), + extensionRegistry); + if (instructionsBuilder_ == null) { + ensureInstructionsIsMutable(); + instructions_.add(m); + } else { + instructionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 58: + { + overarchingGuidance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 58 + case 74: + { + outputLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 + 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 overarchingGuidance_ = ""; + + /** + * + * + *
                                          +     * Optional. The overarching guidance for the agent coaching. This should be
                                          +     * set only for v1.5 and later versions.
                                          +     * 
                                          + * + * string overarching_guidance = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overarchingGuidance. + */ + public java.lang.String getOverarchingGuidance() { + java.lang.Object ref = overarchingGuidance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + overarchingGuidance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The overarching guidance for the agent coaching. This should be
                                          +     * set only for v1.5 and later versions.
                                          +     * 
                                          + * + * string overarching_guidance = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for overarchingGuidance. + */ + public com.google.protobuf.ByteString getOverarchingGuidanceBytes() { + java.lang.Object ref = overarchingGuidance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overarchingGuidance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The overarching guidance for the agent coaching. This should be
                                          +     * set only for v1.5 and later versions.
                                          +     * 
                                          + * + * string overarching_guidance = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The overarchingGuidance to set. + * @return This builder for chaining. + */ + public Builder setOverarchingGuidance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + overarchingGuidance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The overarching guidance for the agent coaching. This should be
                                          +     * set only for v1.5 and later versions.
                                          +     * 
                                          + * + * string overarching_guidance = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOverarchingGuidance() { + overarchingGuidance_ = getDefaultInstance().getOverarchingGuidance(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The overarching guidance for the agent coaching. This should be
                                          +     * set only for v1.5 and later versions.
                                          +     * 
                                          + * + * string overarching_guidance = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for overarchingGuidance to set. + * @return This builder for chaining. + */ + public Builder setOverarchingGuidanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + overarchingGuidance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + instructions_ = java.util.Collections.emptyList(); + + private void ensureInstructionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instructions_ = + new java.util.ArrayList( + instructions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder> + instructionsBuilder_; + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInstructionsList() { + if (instructionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(instructions_); + } else { + return instructionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInstructionsCount() { + if (instructionsBuilder_ == null) { + return instructions_.size(); + } else { + return instructionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction getInstructions(int index) { + if (instructionsBuilder_ == null) { + return instructions_.get(index); + } else { + return instructionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInstructions( + int index, com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction value) { + if (instructionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstructionsIsMutable(); + instructions_.set(index, value); + onChanged(); + } else { + instructionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInstructions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder builderForValue) { + if (instructionsBuilder_ == null) { + ensureInstructionsIsMutable(); + instructions_.set(index, builderForValue.build()); + onChanged(); + } else { + instructionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInstructions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction value) { + if (instructionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstructionsIsMutable(); + instructions_.add(value); + onChanged(); + } else { + instructionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInstructions( + int index, com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction value) { + if (instructionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstructionsIsMutable(); + instructions_.add(index, value); + onChanged(); + } else { + instructionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInstructions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder builderForValue) { + if (instructionsBuilder_ == null) { + ensureInstructionsIsMutable(); + instructions_.add(builderForValue.build()); + onChanged(); + } else { + instructionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInstructions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder builderForValue) { + if (instructionsBuilder_ == null) { + ensureInstructionsIsMutable(); + instructions_.add(index, builderForValue.build()); + onChanged(); + } else { + instructionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInstructions( + java.lang.Iterable + values) { + if (instructionsBuilder_ == null) { + ensureInstructionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instructions_); + onChanged(); + } else { + instructionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInstructions() { + if (instructionsBuilder_ == null) { + instructions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instructionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInstructions(int index) { + if (instructionsBuilder_ == null) { + ensureInstructionsIsMutable(); + instructions_.remove(index); + onChanged(); + } else { + instructionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder + getInstructionsBuilder(int index) { + return getInstructionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder + getInstructionsOrBuilder(int index) { + if (instructionsBuilder_ == null) { + return instructions_.get(index); + } else { + return instructionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder> + getInstructionsOrBuilderList() { + if (instructionsBuilder_ != null) { + return instructionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instructions_); + } + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder + addInstructionsBuilder() { + return getInstructionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder + addInstructionsBuilder(int index) { + return getInstructionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. Customized instructions for agent coaching.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInstructionsBuilderList() { + return getInstructionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder> + getInstructionsFieldBuilder() { + if (instructionsBuilder_ == null) { + instructionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder>( + instructions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instructions_ = null; + } + return instructionsBuilder_; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
                                          +     * Optional. Version of the feature. If not set, default to latest version.
                                          +     * Current candidates are ["2.5"].
                                          +     * 
                                          + * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Version of the feature. If not set, default to latest version.
                                          +     * Current candidates are ["2.5"].
                                          +     * 
                                          + * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Version of the feature. If not set, default to latest version.
                                          +     * Current candidates are ["2.5"].
                                          +     * 
                                          + * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Version of the feature. If not set, default to latest version.
                                          +     * Current candidates are ["2.5"].
                                          +     * 
                                          + * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Version of the feature. If not set, default to latest version.
                                          +     * Current candidates are ["2.5"].
                                          +     * 
                                          + * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object outputLanguageCode_ = ""; + + /** + * + * + *
                                          +     * Optional. Output language code.
                                          +     * 
                                          + * + * string output_language_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputLanguageCode. + */ + public java.lang.String getOutputLanguageCode() { + java.lang.Object ref = outputLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Output language code.
                                          +     * 
                                          + * + * string output_language_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputLanguageCode. + */ + public com.google.protobuf.ByteString getOutputLanguageCodeBytes() { + java.lang.Object ref = outputLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Output language code.
                                          +     * 
                                          + * + * string output_language_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setOutputLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputLanguageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Output language code.
                                          +     * 
                                          + * + * string output_language_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputLanguageCode() { + outputLanguageCode_ = getDefaultInstance().getOutputLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Output language code.
                                          +     * 
                                          + * + * string output_language_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for outputLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setOutputLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputLanguageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingContext) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingContext DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.AgentCoachingContext(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentCoachingContext 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.dialogflow.v2beta1.AgentCoachingContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingContextOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingContextOrBuilder.java new file mode 100644 index 000000000000..f06c2444fac5 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingContextOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface AgentCoachingContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. The overarching guidance for the agent coaching. This should be
                                          +   * set only for v1.5 and later versions.
                                          +   * 
                                          + * + * string overarching_guidance = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The overarchingGuidance. + */ + java.lang.String getOverarchingGuidance(); + + /** + * + * + *
                                          +   * Optional. The overarching guidance for the agent coaching. This should be
                                          +   * set only for v1.5 and later versions.
                                          +   * 
                                          + * + * string overarching_guidance = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for overarchingGuidance. + */ + com.google.protobuf.ByteString getOverarchingGuidanceBytes(); + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInstructionsList(); + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction getInstructions(int index); + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInstructionsCount(); + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInstructionsOrBuilderList(); + + /** + * + * + *
                                          +   * Optional. Customized instructions for agent coaching.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder getInstructionsOrBuilder( + int index); + + /** + * + * + *
                                          +   * Optional. Version of the feature. If not set, default to latest version.
                                          +   * Current candidates are ["2.5"].
                                          +   * 
                                          + * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
                                          +   * Optional. Version of the feature. If not set, default to latest version.
                                          +   * Current candidates are ["2.5"].
                                          +   * 
                                          + * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
                                          +   * Optional. Output language code.
                                          +   * 
                                          + * + * string output_language_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputLanguageCode. + */ + java.lang.String getOutputLanguageCode(); + + /** + * + * + *
                                          +   * Optional. Output language code.
                                          +   * 
                                          + * + * string output_language_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputLanguageCode. + */ + com.google.protobuf.ByteString getOutputLanguageCodeBytes(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingInstruction.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingInstruction.java new file mode 100644 index 000000000000..42a458e17a96 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingInstruction.java @@ -0,0 +1,3936 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Agent Coaching instructions that customer can configure.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingInstruction} + */ +public final class AgentCoachingInstruction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction) + AgentCoachingInstructionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AgentCoachingInstruction.newBuilder() to construct. + private AgentCoachingInstruction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AgentCoachingInstruction() { + displayName_ = ""; + displayDetails_ = ""; + condition_ = ""; + agentAction_ = ""; + systemAction_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AgentCoachingInstruction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder.class); + } + + public interface DuplicateCheckResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion> + getDuplicateSuggestionsList(); + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + getDuplicateSuggestions(int index); + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDuplicateSuggestionsCount(); + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + getDuplicateSuggestionsOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder + getDuplicateSuggestionsOrBuilder(int index); + } + + /** + * + * + *
                                          +   * Duplication check for the suggestion.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult} + */ + public static final class DuplicateCheckResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult) + DuplicateCheckResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DuplicateCheckResult.newBuilder() to construct. + private DuplicateCheckResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DuplicateCheckResult() { + duplicateSuggestions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DuplicateCheckResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .Builder.class); + } + + public interface DuplicateSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Output only. The answer record id of the past duplicate suggestion.
                                          +       * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); + + /** + * + * + *
                                          +       * Output only. The answer record id of the past duplicate suggestion.
                                          +       * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + + /** + * + * + *
                                          +       * Output only. The index of the duplicate suggestion in the past
                                          +       * suggestion list.
                                          +       * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The suggestionIndex. + */ + int getSuggestionIndex(); + + /** + * + * + *
                                          +       * Output only. The similarity score of between the past and current
                                          +       * suggestion.
                                          +       * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The similarityScore. + */ + float getSimilarityScore(); + } + + /** + * + * + *
                                          +     * The duplicate suggestion details.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion} + */ + public static final class DuplicateSuggestion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion) + DuplicateSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DuplicateSuggestion.newBuilder() to construct. + private DuplicateSuggestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DuplicateSuggestion() { + answerRecord_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DuplicateSuggestion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder.class); + } + + public static final int ANSWER_RECORD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + + /** + * + * + *
                                          +       * Output only. The answer record id of the past duplicate suggestion.
                                          +       * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + 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(); + answerRecord_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Output only. The answer record id of the past duplicate suggestion.
                                          +       * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUGGESTION_INDEX_FIELD_NUMBER = 3; + private int suggestionIndex_ = 0; + + /** + * + * + *
                                          +       * Output only. The index of the duplicate suggestion in the past
                                          +       * suggestion list.
                                          +       * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The suggestionIndex. + */ + @java.lang.Override + public int getSuggestionIndex() { + return suggestionIndex_; + } + + public static final int SIMILARITY_SCORE_FIELD_NUMBER = 4; + private float similarityScore_ = 0F; + + /** + * + * + *
                                          +       * Output only. The similarity score of between the past and current
                                          +       * suggestion.
                                          +       * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The similarityScore. + */ + @java.lang.Override + public float getSimilarityScore() { + return similarityScore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, answerRecord_); + } + if (suggestionIndex_ != 0) { + output.writeInt32(3, suggestionIndex_); + } + if (java.lang.Float.floatToRawIntBits(similarityScore_) != 0) { + output.writeFloat(4, similarityScore_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, answerRecord_); + } + if (suggestionIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, suggestionIndex_); + } + if (java.lang.Float.floatToRawIntBits(similarityScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, similarityScore_); + } + 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.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion) + obj; + + if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (getSuggestionIndex() != other.getSuggestionIndex()) return false; + if (java.lang.Float.floatToIntBits(getSimilarityScore()) + != java.lang.Float.floatToIntBits(other.getSimilarityScore())) 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) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + hash = (37 * hash) + SUGGESTION_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionIndex(); + hash = (37 * hash) + SIMILARITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSimilarityScore()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + 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.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + 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.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * The duplicate suggestion details.
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion) + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerRecord_ = ""; + suggestionIndex_ = 0; + similarityScore_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerRecord_ = answerRecord_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.suggestionIndex_ = suggestionIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.similarityScore_ = similarityScore_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.getDefaultInstance()) return this; + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSuggestionIndex() != 0) { + setSuggestionIndex(other.getSuggestionIndex()); + } + if (other.getSimilarityScore() != 0F) { + setSimilarityScore(other.getSimilarityScore()); + } + 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: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + suggestionIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 37: + { + similarityScore_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 37 + 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 answerRecord_ = ""; + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int suggestionIndex_; + + /** + * + * + *
                                          +         * Output only. The index of the duplicate suggestion in the past
                                          +         * suggestion list.
                                          +         * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The suggestionIndex. + */ + @java.lang.Override + public int getSuggestionIndex() { + return suggestionIndex_; + } + + /** + * + * + *
                                          +         * Output only. The index of the duplicate suggestion in the past
                                          +         * suggestion list.
                                          +         * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The suggestionIndex to set. + * @return This builder for chaining. + */ + public Builder setSuggestionIndex(int value) { + + suggestionIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. The index of the duplicate suggestion in the past
                                          +         * suggestion list.
                                          +         * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSuggestionIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + suggestionIndex_ = 0; + onChanged(); + return this; + } + + private float similarityScore_; + + /** + * + * + *
                                          +         * Output only. The similarity score of between the past and current
                                          +         * suggestion.
                                          +         * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The similarityScore. + */ + @java.lang.Override + public float getSimilarityScore() { + return similarityScore_; + } + + /** + * + * + *
                                          +         * Output only. The similarity score of between the past and current
                                          +         * suggestion.
                                          +         * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The similarityScore to set. + * @return This builder for chaining. + */ + public Builder setSimilarityScore(float value) { + + similarityScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. The similarity score of between the past and current
                                          +         * suggestion.
                                          +         * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSimilarityScore() { + bitField0_ = (bitField0_ & ~0x00000004); + similarityScore_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DuplicateSuggestion 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.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DUPLICATE_SUGGESTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion> + duplicateSuggestions_; + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion> + getDuplicateSuggestionsList() { + return duplicateSuggestions_; + } + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + getDuplicateSuggestionsOrBuilderList() { + return duplicateSuggestions_; + } + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDuplicateSuggestionsCount() { + return duplicateSuggestions_.size(); + } + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + getDuplicateSuggestions(int index) { + return duplicateSuggestions_.get(index); + } + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder + getDuplicateSuggestionsOrBuilder(int index) { + return duplicateSuggestions_.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 < duplicateSuggestions_.size(); i++) { + output.writeMessage(1, duplicateSuggestions_.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 < duplicateSuggestions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, duplicateSuggestions_.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.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult) obj; + + if (!getDuplicateSuggestionsList().equals(other.getDuplicateSuggestionsList())) 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 (getDuplicateSuggestionsCount() > 0) { + hash = (37 * hash) + DUPLICATE_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDuplicateSuggestionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + 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.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + 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.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Duplication check for the suggestion.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult) + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (duplicateSuggestionsBuilder_ == null) { + duplicateSuggestions_ = java.util.Collections.emptyList(); + } else { + duplicateSuggestions_ = null; + duplicateSuggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + result) { + if (duplicateSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + duplicateSuggestions_ = java.util.Collections.unmodifiableList(duplicateSuggestions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.duplicateSuggestions_ = duplicateSuggestions_; + } else { + result.duplicateSuggestions_ = duplicateSuggestionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult other) { + if (other + == com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .getDefaultInstance()) return this; + if (duplicateSuggestionsBuilder_ == null) { + if (!other.duplicateSuggestions_.isEmpty()) { + if (duplicateSuggestions_.isEmpty()) { + duplicateSuggestions_ = other.duplicateSuggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.addAll(other.duplicateSuggestions_); + } + onChanged(); + } + } else { + if (!other.duplicateSuggestions_.isEmpty()) { + if (duplicateSuggestionsBuilder_.isEmpty()) { + duplicateSuggestionsBuilder_.dispose(); + duplicateSuggestionsBuilder_ = null; + duplicateSuggestions_ = other.duplicateSuggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + duplicateSuggestionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDuplicateSuggestionsFieldBuilder() + : null; + } else { + duplicateSuggestionsBuilder_.addAllMessages(other.duplicateSuggestions_); + } + } + } + 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.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion.parser(), + extensionRegistry); + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(m); + } else { + duplicateSuggestionsBuilder_.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< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion> + duplicateSuggestions_ = java.util.Collections.emptyList(); + + private void ensureDuplicateSuggestionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + duplicateSuggestions_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion>(duplicateSuggestions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + duplicateSuggestionsBuilder_; + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion> + getDuplicateSuggestionsList() { + if (duplicateSuggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(duplicateSuggestions_); + } else { + return duplicateSuggestionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDuplicateSuggestionsCount() { + if (duplicateSuggestionsBuilder_ == null) { + return duplicateSuggestions_.size(); + } else { + return duplicateSuggestionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + getDuplicateSuggestions(int index) { + if (duplicateSuggestionsBuilder_ == null) { + return duplicateSuggestions_.get(index); + } else { + return duplicateSuggestionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + value) { + if (duplicateSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.set(index, value); + onChanged(); + } else { + duplicateSuggestionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder + builderForValue) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + duplicateSuggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDuplicateSuggestions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + value) { + if (duplicateSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(value); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDuplicateSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion + value) { + if (duplicateSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(index, value); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDuplicateSuggestions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder + builderForValue) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(builderForValue.build()); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDuplicateSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder + builderForValue) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDuplicateSuggestions( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult.DuplicateSuggestion> + values) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, duplicateSuggestions_); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDuplicateSuggestions() { + if (duplicateSuggestionsBuilder_ == null) { + duplicateSuggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + duplicateSuggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDuplicateSuggestions(int index) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.remove(index); + onChanged(); + } else { + duplicateSuggestionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder + getDuplicateSuggestionsBuilder(int index) { + return getDuplicateSuggestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder + getDuplicateSuggestionsOrBuilder(int index) { + if (duplicateSuggestionsBuilder_ == null) { + return duplicateSuggestions_.get(index); + } else { + return duplicateSuggestionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + getDuplicateSuggestionsOrBuilderList() { + if (duplicateSuggestionsBuilder_ != null) { + return duplicateSuggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(duplicateSuggestions_); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder + addDuplicateSuggestionsBuilder() { + return getDuplicateSuggestionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder + addDuplicateSuggestionsBuilder(int index) { + return getDuplicateSuggestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder> + getDuplicateSuggestionsBuilderList() { + return getDuplicateSuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + getDuplicateSuggestionsFieldBuilder() { + if (duplicateSuggestionsBuilder_ == null) { + duplicateSuggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .DuplicateSuggestionOrBuilder>( + duplicateSuggestions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + duplicateSuggestions_ = null; + } + return duplicateSuggestionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DuplicateCheckResult 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.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +   * Optional. Display name for the instruction.
                                          +   * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. Display name for the instruction.
                                          +   * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayDetails_ = ""; + + /** + * + * + *
                                          +   * Optional. The detailed description of this instruction.
                                          +   * 
                                          + * + * string display_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayDetails. + */ + @java.lang.Override + public java.lang.String getDisplayDetails() { + java.lang.Object ref = displayDetails_; + 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(); + displayDetails_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The detailed description of this instruction.
                                          +   * 
                                          + * + * string display_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayDetailsBytes() { + java.lang.Object ref = displayDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONDITION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; + + /** + * + * + *
                                          +   * Optional. The condition of the instruction. For example, "the customer
                                          +   * wants to cancel an order".  If the users want the instruction to be
                                          +   * triggered unconditionally, the condition can be empty.
                                          +   * 
                                          + * + * string condition = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The condition. + */ + @java.lang.Override + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + 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(); + condition_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The condition of the instruction. For example, "the customer
                                          +   * wants to cancel an order".  If the users want the instruction to be
                                          +   * triggered unconditionally, the condition can be empty.
                                          +   * 
                                          + * + * string condition = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for condition. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_ACTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentAction_ = ""; + + /** + * + * + *
                                          +   * Optional. The action that human agent should take. For example, "apologize
                                          +   * for the slow shipping". If the users only want to use agent coaching for
                                          +   * intent detection, agent_action can be empty
                                          +   * 
                                          + * + * string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentAction. + */ + @java.lang.Override + public java.lang.String getAgentAction() { + java.lang.Object ref = agentAction_; + 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(); + agentAction_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The action that human agent should take. For example, "apologize
                                          +   * for the slow shipping". If the users only want to use agent coaching for
                                          +   * intent detection, agent_action can be empty
                                          +   * 
                                          + * + * string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentAction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentActionBytes() { + java.lang.Object ref = agentAction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYSTEM_ACTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object systemAction_ = ""; + + /** + * + * + *
                                          +   * Optional. The action that system should take. For example,
                                          +   * "call GetOrderTime with order_number={order number provided by the
                                          +   * customer}". If the users don't have plugins or don't want to trigger
                                          +   * plugins, the system_action can be empty
                                          +   * 
                                          + * + * string system_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemAction. + */ + @java.lang.Override + public java.lang.String getSystemAction() { + java.lang.Object ref = systemAction_; + 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(); + systemAction_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The action that system should take. For example,
                                          +   * "call GetOrderTime with order_number={order number provided by the
                                          +   * customer}". If the users don't have plugins or don't want to trigger
                                          +   * plugins, the system_action can be empty
                                          +   * 
                                          + * + * string system_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemAction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSystemActionBytes() { + java.lang.Object ref = systemAction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DUPLICATE_CHECK_RESULT_FIELD_NUMBER = 8; + private com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + duplicateCheckResult_; + + /** + * + * + *
                                          +   * Output only. Duplication check for the AgentCoachingInstruction.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duplicateCheckResult field is set. + */ + @java.lang.Override + public boolean hasDuplicateCheckResult() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Output only. Duplication check for the AgentCoachingInstruction.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duplicateCheckResult. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + getDuplicateCheckResult() { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } + + /** + * + * + *
                                          +   * Output only. Duplication check for the AgentCoachingInstruction.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResultOrBuilder + getDuplicateCheckResultOrBuilder() { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayDetails_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayDetails_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, condition_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentAction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, agentAction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemAction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, systemAction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getDuplicateCheckResult()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayDetails_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayDetails_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, condition_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentAction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, agentAction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemAction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, systemAction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDuplicateCheckResult()); + } + 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.dialogflow.v2beta1.AgentCoachingInstruction)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayDetails().equals(other.getDisplayDetails())) return false; + if (!getCondition().equals(other.getCondition())) return false; + if (!getAgentAction().equals(other.getAgentAction())) return false; + if (!getSystemAction().equals(other.getSystemAction())) return false; + if (hasDuplicateCheckResult() != other.hasDuplicateCheckResult()) return false; + if (hasDuplicateCheckResult()) { + if (!getDuplicateCheckResult().equals(other.getDuplicateCheckResult())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DISPLAY_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDisplayDetails().hashCode(); + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getCondition().hashCode(); + hash = (37 * hash) + AGENT_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAgentAction().hashCode(); + hash = (37 * hash) + SYSTEM_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getSystemAction().hashCode(); + if (hasDuplicateCheckResult()) { + hash = (37 * hash) + DUPLICATE_CHECK_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDuplicateCheckResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction 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.dialogflow.v2beta1.AgentCoachingInstruction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction 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.dialogflow.v2beta1.AgentCoachingInstruction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Agent Coaching instructions that customer can configure.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingInstruction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction) + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDuplicateCheckResultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + displayDetails_ = ""; + condition_ = ""; + agentAction_ = ""; + systemAction_ = ""; + duplicateCheckResult_ = null; + if (duplicateCheckResultBuilder_ != null) { + duplicateCheckResultBuilder_.dispose(); + duplicateCheckResultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayDetails_ = displayDetails_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.condition_ = condition_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.agentAction_ = agentAction_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.systemAction_ = systemAction_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.duplicateCheckResult_ = + duplicateCheckResultBuilder_ == null + ? duplicateCheckResult_ + : duplicateCheckResultBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction other) { + if (other + == com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayDetails().isEmpty()) { + displayDetails_ = other.displayDetails_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCondition().isEmpty()) { + condition_ = other.condition_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAgentAction().isEmpty()) { + agentAction_ = other.agentAction_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getSystemAction().isEmpty()) { + systemAction_ = other.systemAction_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasDuplicateCheckResult()) { + mergeDuplicateCheckResult(other.getDuplicateCheckResult()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + agentAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + systemAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 66: + { + input.readMessage( + getDuplicateCheckResultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + 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 java.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +     * Optional. Display name for the instruction.
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Display name for the instruction.
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Display name for the instruction.
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Display name for the instruction.
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Display name for the instruction.
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayDetails_ = ""; + + /** + * + * + *
                                          +     * Optional. The detailed description of this instruction.
                                          +     * 
                                          + * + * string display_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayDetails. + */ + public java.lang.String getDisplayDetails() { + java.lang.Object ref = displayDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The detailed description of this instruction.
                                          +     * 
                                          + * + * string display_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayDetails. + */ + public com.google.protobuf.ByteString getDisplayDetailsBytes() { + java.lang.Object ref = displayDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The detailed description of this instruction.
                                          +     * 
                                          + * + * string display_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayDetails to set. + * @return This builder for chaining. + */ + public Builder setDisplayDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayDetails_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The detailed description of this instruction.
                                          +     * 
                                          + * + * string display_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayDetails() { + displayDetails_ = getDefaultInstance().getDisplayDetails(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The detailed description of this instruction.
                                          +     * 
                                          + * + * string display_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayDetails to set. + * @return This builder for chaining. + */ + public Builder setDisplayDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayDetails_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object condition_ = ""; + + /** + * + * + *
                                          +     * Optional. The condition of the instruction. For example, "the customer
                                          +     * wants to cancel an order".  If the users want the instruction to be
                                          +     * triggered unconditionally, the condition can be empty.
                                          +     * 
                                          + * + * string condition = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The condition. + */ + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The condition of the instruction. For example, "the customer
                                          +     * wants to cancel an order".  If the users want the instruction to be
                                          +     * triggered unconditionally, the condition can be empty.
                                          +     * 
                                          + * + * string condition = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for condition. + */ + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The condition of the instruction. For example, "the customer
                                          +     * wants to cancel an order".  If the users want the instruction to be
                                          +     * triggered unconditionally, the condition can be empty.
                                          +     * 
                                          + * + * string condition = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The condition of the instruction. For example, "the customer
                                          +     * wants to cancel an order".  If the users want the instruction to be
                                          +     * triggered unconditionally, the condition can be empty.
                                          +     * 
                                          + * + * string condition = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCondition() { + condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The condition of the instruction. For example, "the customer
                                          +     * wants to cancel an order".  If the users want the instruction to be
                                          +     * triggered unconditionally, the condition can be empty.
                                          +     * 
                                          + * + * string condition = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object agentAction_ = ""; + + /** + * + * + *
                                          +     * Optional. The action that human agent should take. For example, "apologize
                                          +     * for the slow shipping". If the users only want to use agent coaching for
                                          +     * intent detection, agent_action can be empty
                                          +     * 
                                          + * + * string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentAction. + */ + public java.lang.String getAgentAction() { + java.lang.Object ref = agentAction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentAction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The action that human agent should take. For example, "apologize
                                          +     * for the slow shipping". If the users only want to use agent coaching for
                                          +     * intent detection, agent_action can be empty
                                          +     * 
                                          + * + * string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentAction. + */ + public com.google.protobuf.ByteString getAgentActionBytes() { + java.lang.Object ref = agentAction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The action that human agent should take. For example, "apologize
                                          +     * for the slow shipping". If the users only want to use agent coaching for
                                          +     * intent detection, agent_action can be empty
                                          +     * 
                                          + * + * string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentAction to set. + * @return This builder for chaining. + */ + public Builder setAgentAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentAction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The action that human agent should take. For example, "apologize
                                          +     * for the slow shipping". If the users only want to use agent coaching for
                                          +     * intent detection, agent_action can be empty
                                          +     * 
                                          + * + * string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentAction() { + agentAction_ = getDefaultInstance().getAgentAction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The action that human agent should take. For example, "apologize
                                          +     * for the slow shipping". If the users only want to use agent coaching for
                                          +     * intent detection, agent_action can be empty
                                          +     * 
                                          + * + * string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentAction to set. + * @return This builder for chaining. + */ + public Builder setAgentActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentAction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object systemAction_ = ""; + + /** + * + * + *
                                          +     * Optional. The action that system should take. For example,
                                          +     * "call GetOrderTime with order_number={order number provided by the
                                          +     * customer}". If the users don't have plugins or don't want to trigger
                                          +     * plugins, the system_action can be empty
                                          +     * 
                                          + * + * string system_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemAction. + */ + public java.lang.String getSystemAction() { + java.lang.Object ref = systemAction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + systemAction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The action that system should take. For example,
                                          +     * "call GetOrderTime with order_number={order number provided by the
                                          +     * customer}". If the users don't have plugins or don't want to trigger
                                          +     * plugins, the system_action can be empty
                                          +     * 
                                          + * + * string system_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemAction. + */ + public com.google.protobuf.ByteString getSystemActionBytes() { + java.lang.Object ref = systemAction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The action that system should take. For example,
                                          +     * "call GetOrderTime with order_number={order number provided by the
                                          +     * customer}". If the users don't have plugins or don't want to trigger
                                          +     * plugins, the system_action can be empty
                                          +     * 
                                          + * + * string system_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The systemAction to set. + * @return This builder for chaining. + */ + public Builder setSystemAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + systemAction_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The action that system should take. For example,
                                          +     * "call GetOrderTime with order_number={order number provided by the
                                          +     * customer}". If the users don't have plugins or don't want to trigger
                                          +     * plugins, the system_action can be empty
                                          +     * 
                                          + * + * string system_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSystemAction() { + systemAction_ = getDefaultInstance().getSystemAction(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The action that system should take. For example,
                                          +     * "call GetOrderTime with order_number={order number provided by the
                                          +     * customer}". If the users don't have plugins or don't want to trigger
                                          +     * plugins, the system_action can be empty
                                          +     * 
                                          + * + * string system_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for systemAction to set. + * @return This builder for chaining. + */ + public Builder setSystemActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + systemAction_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + duplicateCheckResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResultOrBuilder> + duplicateCheckResultBuilder_; + + /** + * + * + *
                                          +     * Output only. Duplication check for the AgentCoachingInstruction.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duplicateCheckResult field is set. + */ + public boolean hasDuplicateCheckResult() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                          +     * Output only. Duplication check for the AgentCoachingInstruction.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duplicateCheckResult. + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + getDuplicateCheckResult() { + if (duplicateCheckResultBuilder_ == null) { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } else { + return duplicateCheckResultBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Output only. Duplication check for the AgentCoachingInstruction.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateCheckResult( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult value) { + if (duplicateCheckResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duplicateCheckResult_ = value; + } else { + duplicateCheckResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Duplication check for the AgentCoachingInstruction.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateCheckResult( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.Builder + builderForValue) { + if (duplicateCheckResultBuilder_ == null) { + duplicateCheckResult_ = builderForValue.build(); + } else { + duplicateCheckResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Duplication check for the AgentCoachingInstruction.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDuplicateCheckResult( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult value) { + if (duplicateCheckResultBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && duplicateCheckResult_ != null + && duplicateCheckResult_ + != com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .getDefaultInstance()) { + getDuplicateCheckResultBuilder().mergeFrom(value); + } else { + duplicateCheckResult_ = value; + } + } else { + duplicateCheckResultBuilder_.mergeFrom(value); + } + if (duplicateCheckResult_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Duplication check for the AgentCoachingInstruction.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDuplicateCheckResult() { + bitField0_ = (bitField0_ & ~0x00000020); + duplicateCheckResult_ = null; + if (duplicateCheckResultBuilder_ != null) { + duplicateCheckResultBuilder_.dispose(); + duplicateCheckResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Duplication check for the AgentCoachingInstruction.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult.Builder + getDuplicateCheckResultBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDuplicateCheckResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Duplication check for the AgentCoachingInstruction.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResultOrBuilder + getDuplicateCheckResultOrBuilder() { + if (duplicateCheckResultBuilder_ != null) { + return duplicateCheckResultBuilder_.getMessageOrBuilder(); + } else { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } + } + + /** + * + * + *
                                          +     * Output only. Duplication check for the AgentCoachingInstruction.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResultOrBuilder> + getDuplicateCheckResultFieldBuilder() { + if (duplicateCheckResultBuilder_ == null) { + duplicateCheckResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + .DuplicateCheckResultOrBuilder>( + getDuplicateCheckResult(), getParentForChildren(), isClean()); + duplicateCheckResult_ = null; + } + return duplicateCheckResultBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentCoachingInstruction 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.dialogflow.v2beta1.AgentCoachingInstruction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingInstructionOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingInstructionOrBuilder.java new file mode 100644 index 000000000000..145a703666a3 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingInstructionOrBuilder.java @@ -0,0 +1,215 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface AgentCoachingInstructionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingInstruction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. Display name for the instruction.
                                          +   * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                          +   * Optional. Display name for the instruction.
                                          +   * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                          +   * Optional. The detailed description of this instruction.
                                          +   * 
                                          + * + * string display_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayDetails. + */ + java.lang.String getDisplayDetails(); + + /** + * + * + *
                                          +   * Optional. The detailed description of this instruction.
                                          +   * 
                                          + * + * string display_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayDetails. + */ + com.google.protobuf.ByteString getDisplayDetailsBytes(); + + /** + * + * + *
                                          +   * Optional. The condition of the instruction. For example, "the customer
                                          +   * wants to cancel an order".  If the users want the instruction to be
                                          +   * triggered unconditionally, the condition can be empty.
                                          +   * 
                                          + * + * string condition = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The condition. + */ + java.lang.String getCondition(); + + /** + * + * + *
                                          +   * Optional. The condition of the instruction. For example, "the customer
                                          +   * wants to cancel an order".  If the users want the instruction to be
                                          +   * triggered unconditionally, the condition can be empty.
                                          +   * 
                                          + * + * string condition = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for condition. + */ + com.google.protobuf.ByteString getConditionBytes(); + + /** + * + * + *
                                          +   * Optional. The action that human agent should take. For example, "apologize
                                          +   * for the slow shipping". If the users only want to use agent coaching for
                                          +   * intent detection, agent_action can be empty
                                          +   * 
                                          + * + * string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentAction. + */ + java.lang.String getAgentAction(); + + /** + * + * + *
                                          +   * Optional. The action that human agent should take. For example, "apologize
                                          +   * for the slow shipping". If the users only want to use agent coaching for
                                          +   * intent detection, agent_action can be empty
                                          +   * 
                                          + * + * string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentAction. + */ + com.google.protobuf.ByteString getAgentActionBytes(); + + /** + * + * + *
                                          +   * Optional. The action that system should take. For example,
                                          +   * "call GetOrderTime with order_number={order number provided by the
                                          +   * customer}". If the users don't have plugins or don't want to trigger
                                          +   * plugins, the system_action can be empty
                                          +   * 
                                          + * + * string system_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemAction. + */ + java.lang.String getSystemAction(); + + /** + * + * + *
                                          +   * Optional. The action that system should take. For example,
                                          +   * "call GetOrderTime with order_number={order number provided by the
                                          +   * customer}". If the users don't have plugins or don't want to trigger
                                          +   * plugins, the system_action can be empty
                                          +   * 
                                          + * + * string system_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemAction. + */ + com.google.protobuf.ByteString getSystemActionBytes(); + + /** + * + * + *
                                          +   * Output only. Duplication check for the AgentCoachingInstruction.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duplicateCheckResult field is set. + */ + boolean hasDuplicateCheckResult(); + + /** + * + * + *
                                          +   * Output only. Duplication check for the AgentCoachingInstruction.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duplicateCheckResult. + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult + getDuplicateCheckResult(); + + /** + * + * + *
                                          +   * Output only. Duplication check for the AgentCoachingInstruction.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.DuplicateCheckResultOrBuilder + getDuplicateCheckResultOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingInstructionProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingInstructionProto.java new file mode 100644 index 000000000000..aaaf164f8da7 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingInstructionProto.java @@ -0,0 +1,123 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public final class AgentCoachingInstructionProto { + private AgentCoachingInstructionProto() {} + + 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_dialogflow_v2beta1_AgentCoachingInstruction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_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/cloud/dialogflow/v2beta1/agent_" + + "coaching_instruction.proto\022\037google.cloud" + + ".dialogflow.v2beta1\032\037google/api/field_be" + + "havior.proto\"\252\004\n\030AgentCoachingInstructio" + + "n\022\031\n\014display_name\030\001 \001(\tB\003\340A\001\022\034\n\017display_" + + "details\030\002 \001(\tB\003\340A\001\022\026\n\tcondition\030\003 \001(\tB\003\340" + + "A\001\022\031\n\014agent_action\030\004 \001(\tB\003\340A\001\022\032\n\rsystem_" + + "action\030\005 \001(\tB\003\340A\001\022s\n\026duplicate_check_res" + + "ult\030\010 \001(\0132N.google.cloud.dialogflow.v2be" + + "ta1.AgentCoachingInstruction.DuplicateCh" + + "eckResultB\003\340A\003\032\220\002\n\024DuplicateCheckResult\022" + + "\206\001\n\025duplicate_suggestions\030\001 \003(\0132b.google" + + ".cloud.dialogflow.v2beta1.AgentCoachingI" + + "nstruction.DuplicateCheckResult.Duplicat" + + "eSuggestionB\003\340A\003\032o\n\023DuplicateSuggestion\022" + + "\032\n\ranswer_record\030\001 \001(\tB\003\340A\003\022\035\n\020suggestio" + + "n_index\030\003 \001(\005B\003\340A\003\022\035\n\020similarity_score\030\004" + + " \001(\002B\003\340A\003B\262\001\n#com.google.cloud.dialogflo" + + "w.v2beta1B\035AgentCoachingInstructionProto" + + "P\001ZCcloud.google.com/go/dialogflow/apiv2" + + "beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037G" + + "oogle.Cloud.Dialogflow.V2Beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_descriptor, + new java.lang.String[] { + "DisplayName", + "DisplayDetails", + "Condition", + "AgentAction", + "SystemAction", + "DuplicateCheckResult", + }); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_descriptor, + new java.lang.String[] { + "DuplicateSuggestions", + }); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingInstruction_DuplicateCheckResult_DuplicateSuggestion_descriptor, + new java.lang.String[] { + "AnswerRecord", "SuggestionIndex", "SimilarityScore", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingSuggestion.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingSuggestion.java new file mode 100644 index 000000000000..22e870a962ed --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingSuggestion.java @@ -0,0 +1,8411 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Suggestion for coaching agents.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion} + */ +public final class AgentCoachingSuggestion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) + AgentCoachingSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AgentCoachingSuggestion.newBuilder() to construct. + private AgentCoachingSuggestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AgentCoachingSuggestion() { + applicableInstructions_ = java.util.Collections.emptyList(); + agentActionSuggestions_ = java.util.Collections.emptyList(); + sampleResponses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AgentCoachingSuggestion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Builder.class); + } + + public interface SourcesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. Source instruction indexes for the suggestion. This is the
                                          +     * index of the applicable_instructions field.
                                          +     * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the instructionIndexes. + */ + java.util.List getInstructionIndexesList(); + + /** + * + * + *
                                          +     * Output only. Source instruction indexes for the suggestion. This is the
                                          +     * index of the applicable_instructions field.
                                          +     * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of instructionIndexes. + */ + int getInstructionIndexesCount(); + + /** + * + * + *
                                          +     * Output only. Source instruction indexes for the suggestion. This is the
                                          +     * index of the applicable_instructions field.
                                          +     * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The instructionIndexes at the given index. + */ + int getInstructionIndexes(int index); + } + + /** + * + * + *
                                          +   * Sources for the suggestion.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources} + */ + public static final class Sources extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources) + SourcesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Sources.newBuilder() to construct. + private Sources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Sources() { + instructionIndexes_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Sources(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder.class); + } + + public static final int INSTRUCTION_INDEXES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList instructionIndexes_ = emptyIntList(); + + /** + * + * + *
                                          +     * Output only. Source instruction indexes for the suggestion. This is the
                                          +     * index of the applicable_instructions field.
                                          +     * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the instructionIndexes. + */ + @java.lang.Override + public java.util.List getInstructionIndexesList() { + return instructionIndexes_; + } + + /** + * + * + *
                                          +     * Output only. Source instruction indexes for the suggestion. This is the
                                          +     * index of the applicable_instructions field.
                                          +     * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of instructionIndexes. + */ + public int getInstructionIndexesCount() { + return instructionIndexes_.size(); + } + + /** + * + * + *
                                          +     * Output only. Source instruction indexes for the suggestion. This is the
                                          +     * index of the applicable_instructions field.
                                          +     * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The instructionIndexes at the given index. + */ + public int getInstructionIndexes(int index) { + return instructionIndexes_.getInt(index); + } + + private int instructionIndexesMemoizedSerializedSize = -1; + + 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 (getInstructionIndexesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(instructionIndexesMemoizedSerializedSize); + } + for (int i = 0; i < instructionIndexes_.size(); i++) { + output.writeInt32NoTag(instructionIndexes_.getInt(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 < instructionIndexes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + instructionIndexes_.getInt(i)); + } + size += dataSize; + if (!getInstructionIndexesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + instructionIndexesMemoizedSerializedSize = dataSize; + } + 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.dialogflow.v2beta1.AgentCoachingSuggestion.Sources)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources) obj; + + if (!getInstructionIndexesList().equals(other.getInstructionIndexesList())) 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 (getInstructionIndexesCount() > 0) { + hash = (37 * hash) + INSTRUCTION_INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getInstructionIndexesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources 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.dialogflow.v2beta1.AgentCoachingSuggestion.Sources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources 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.dialogflow.v2beta1.AgentCoachingSuggestion.Sources parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Sources for the suggestion.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources) + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instructionIndexes_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + instructionIndexes_.makeImmutable(); + result.instructionIndexes_ = instructionIndexes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources other) { + if (other + == com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance()) return this; + if (!other.instructionIndexes_.isEmpty()) { + if (instructionIndexes_.isEmpty()) { + instructionIndexes_ = other.instructionIndexes_; + instructionIndexes_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureInstructionIndexesIsMutable(); + instructionIndexes_.addAll(other.instructionIndexes_); + } + 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 16: + { + int v = input.readInt32(); + ensureInstructionIndexesIsMutable(); + instructionIndexes_.addInt(v); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureInstructionIndexesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + instructionIndexes_.addInt(input.readInt32()); + } + input.popLimit(limit); + 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.Internal.IntList instructionIndexes_ = emptyIntList(); + + private void ensureInstructionIndexesIsMutable() { + if (!instructionIndexes_.isModifiable()) { + instructionIndexes_ = makeMutableCopy(instructionIndexes_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                                          +       * Output only. Source instruction indexes for the suggestion. This is the
                                          +       * index of the applicable_instructions field.
                                          +       * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the instructionIndexes. + */ + public java.util.List getInstructionIndexesList() { + instructionIndexes_.makeImmutable(); + return instructionIndexes_; + } + + /** + * + * + *
                                          +       * Output only. Source instruction indexes for the suggestion. This is the
                                          +       * index of the applicable_instructions field.
                                          +       * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of instructionIndexes. + */ + public int getInstructionIndexesCount() { + return instructionIndexes_.size(); + } + + /** + * + * + *
                                          +       * Output only. Source instruction indexes for the suggestion. This is the
                                          +       * index of the applicable_instructions field.
                                          +       * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The instructionIndexes at the given index. + */ + public int getInstructionIndexes(int index) { + return instructionIndexes_.getInt(index); + } + + /** + * + * + *
                                          +       * Output only. Source instruction indexes for the suggestion. This is the
                                          +       * index of the applicable_instructions field.
                                          +       * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The instructionIndexes to set. + * @return This builder for chaining. + */ + public Builder setInstructionIndexes(int index, int value) { + + ensureInstructionIndexesIsMutable(); + instructionIndexes_.setInt(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Source instruction indexes for the suggestion. This is the
                                          +       * index of the applicable_instructions field.
                                          +       * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The instructionIndexes to add. + * @return This builder for chaining. + */ + public Builder addInstructionIndexes(int value) { + + ensureInstructionIndexesIsMutable(); + instructionIndexes_.addInt(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Source instruction indexes for the suggestion. This is the
                                          +       * index of the applicable_instructions field.
                                          +       * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The instructionIndexes to add. + * @return This builder for chaining. + */ + public Builder addAllInstructionIndexes( + java.lang.Iterable values) { + ensureInstructionIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instructionIndexes_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Source instruction indexes for the suggestion. This is the
                                          +       * index of the applicable_instructions field.
                                          +       * 
                                          + * + * repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstructionIndexes() { + instructionIndexes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sources 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.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DuplicateCheckResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion> + getDuplicateSuggestionsList(); + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + getDuplicateSuggestions(int index); + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDuplicateSuggestionsCount(); + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + getDuplicateSuggestionsOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder + getDuplicateSuggestionsOrBuilder(int index); + } + + /** + * + * + *
                                          +   * Duplication check for the suggestion.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult} + */ + public static final class DuplicateCheckResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult) + DuplicateCheckResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DuplicateCheckResult.newBuilder() to construct. + private DuplicateCheckResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DuplicateCheckResult() { + duplicateSuggestions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DuplicateCheckResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder.class); + } + + public interface DuplicateSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Output only. The answer record id of the past duplicate suggestion.
                                          +       * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); + + /** + * + * + *
                                          +       * Output only. The answer record id of the past duplicate suggestion.
                                          +       * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + + /** + * + * + *
                                          +       * Output only. Sources for the suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sources field is set. + */ + boolean hasSources(); + + /** + * + * + *
                                          +       * Output only. Sources for the suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sources. + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources getSources(); + + /** + * + * + *
                                          +       * Output only. Sources for the suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder + getSourcesOrBuilder(); + + /** + * + * + *
                                          +       * Output only. The index of the duplicate suggestion in the past
                                          +       * suggestion list.
                                          +       * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The suggestionIndex. + */ + int getSuggestionIndex(); + + /** + * + * + *
                                          +       * Output only. The similarity score of between the past and current
                                          +       * suggestion.
                                          +       * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The similarityScore. + */ + float getSimilarityScore(); + } + + /** + * + * + *
                                          +     * The duplicate suggestion details.
                                          +     * Keeping answer_record and sources together as they are identifiers for
                                          +     * duplicate suggestions.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion} + */ + public static final class DuplicateSuggestion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion) + DuplicateSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DuplicateSuggestion.newBuilder() to construct. + private DuplicateSuggestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DuplicateSuggestion() { + answerRecord_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DuplicateSuggestion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder.class); + } + + private int bitField0_; + public static final int ANSWER_RECORD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + + /** + * + * + *
                                          +       * Output only. The answer record id of the past duplicate suggestion.
                                          +       * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + 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(); + answerRecord_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Output only. The answer record id of the past duplicate suggestion.
                                          +       * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCES_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources_; + + /** + * + * + *
                                          +       * Output only. Sources for the suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sources field is set. + */ + @java.lang.Override + public boolean hasSources() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +       * Output only. Sources for the suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sources. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources getSources() { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance() + : sources_; + } + + /** + * + * + *
                                          +       * Output only. Sources for the suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder + getSourcesOrBuilder() { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance() + : sources_; + } + + public static final int SUGGESTION_INDEX_FIELD_NUMBER = 3; + private int suggestionIndex_ = 0; + + /** + * + * + *
                                          +       * Output only. The index of the duplicate suggestion in the past
                                          +       * suggestion list.
                                          +       * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The suggestionIndex. + */ + @java.lang.Override + public int getSuggestionIndex() { + return suggestionIndex_; + } + + public static final int SIMILARITY_SCORE_FIELD_NUMBER = 4; + private float similarityScore_ = 0F; + + /** + * + * + *
                                          +       * Output only. The similarity score of between the past and current
                                          +       * suggestion.
                                          +       * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The similarityScore. + */ + @java.lang.Override + public float getSimilarityScore() { + return similarityScore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, answerRecord_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSources()); + } + if (suggestionIndex_ != 0) { + output.writeInt32(3, suggestionIndex_); + } + if (java.lang.Float.floatToRawIntBits(similarityScore_) != 0) { + output.writeFloat(4, similarityScore_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, answerRecord_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSources()); + } + if (suggestionIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, suggestionIndex_); + } + if (java.lang.Float.floatToRawIntBits(similarityScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, similarityScore_); + } + 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.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion) + obj; + + if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (hasSources() != other.hasSources()) return false; + if (hasSources()) { + if (!getSources().equals(other.getSources())) return false; + } + if (getSuggestionIndex() != other.getSuggestionIndex()) return false; + if (java.lang.Float.floatToIntBits(getSimilarityScore()) + != java.lang.Float.floatToIntBits(other.getSimilarityScore())) 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) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + if (hasSources()) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSources().hashCode(); + } + hash = (37 * hash) + SUGGESTION_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionIndex(); + hash = (37 * hash) + SIMILARITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSimilarityScore()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + 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.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + 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.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * The duplicate suggestion details.
                                          +       * Keeping answer_record and sources together as they are identifiers for
                                          +       * duplicate suggestions.
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion) + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSourcesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerRecord_ = ""; + sources_ = null; + if (sourcesBuilder_ != null) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + } + suggestionIndex_ = 0; + similarityScore_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResult.DuplicateSuggestion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerRecord_ = answerRecord_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sources_ = sourcesBuilder_ == null ? sources_ : sourcesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.suggestionIndex_ = suggestionIndex_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.similarityScore_ = similarityScore_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.getDefaultInstance()) return this; + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSources()) { + mergeSources(other.getSources()); + } + if (other.getSuggestionIndex() != 0) { + setSuggestionIndex(other.getSuggestionIndex()); + } + if (other.getSimilarityScore() != 0F) { + setSimilarityScore(other.getSimilarityScore()); + } + 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: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSourcesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + suggestionIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 37: + { + similarityScore_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + 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 answerRecord_ = ""; + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. The answer record id of the past duplicate suggestion.
                                          +         * 
                                          + * + * string answer_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder> + sourcesBuilder_; + + /** + * + * + *
                                          +         * Output only. Sources for the suggestion.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sources field is set. + */ + public boolean hasSources() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +         * Output only. Sources for the suggestion.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sources. + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources getSources() { + if (sourcesBuilder_ == null) { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance() + : sources_; + } else { + return sourcesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +         * Output only. Sources for the suggestion.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSources( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sources_ = value; + } else { + sourcesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. Sources for the suggestion.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSources( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder + builderForValue) { + if (sourcesBuilder_ == null) { + sources_ = builderForValue.build(); + } else { + sourcesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. Sources for the suggestion.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSources( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources value) { + if (sourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sources_ != null + && sources_ + != com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance()) { + getSourcesBuilder().mergeFrom(value); + } else { + sources_ = value; + } + } else { + sourcesBuilder_.mergeFrom(value); + } + if (sources_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. Sources for the suggestion.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSources() { + bitField0_ = (bitField0_ & ~0x00000002); + sources_ = null; + if (sourcesBuilder_ != null) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. Sources for the suggestion.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder + getSourcesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSourcesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +         * Output only. Sources for the suggestion.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder + getSourcesOrBuilder() { + if (sourcesBuilder_ != null) { + return sourcesBuilder_.getMessageOrBuilder(); + } else { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance() + : sources_; + } + } + + /** + * + * + *
                                          +         * Output only. Sources for the suggestion.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder> + getSourcesFieldBuilder() { + if (sourcesBuilder_ == null) { + sourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder>( + getSources(), getParentForChildren(), isClean()); + sources_ = null; + } + return sourcesBuilder_; + } + + private int suggestionIndex_; + + /** + * + * + *
                                          +         * Output only. The index of the duplicate suggestion in the past
                                          +         * suggestion list.
                                          +         * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The suggestionIndex. + */ + @java.lang.Override + public int getSuggestionIndex() { + return suggestionIndex_; + } + + /** + * + * + *
                                          +         * Output only. The index of the duplicate suggestion in the past
                                          +         * suggestion list.
                                          +         * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The suggestionIndex to set. + * @return This builder for chaining. + */ + public Builder setSuggestionIndex(int value) { + + suggestionIndex_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. The index of the duplicate suggestion in the past
                                          +         * suggestion list.
                                          +         * 
                                          + * + * int32 suggestion_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSuggestionIndex() { + bitField0_ = (bitField0_ & ~0x00000004); + suggestionIndex_ = 0; + onChanged(); + return this; + } + + private float similarityScore_; + + /** + * + * + *
                                          +         * Output only. The similarity score of between the past and current
                                          +         * suggestion.
                                          +         * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The similarityScore. + */ + @java.lang.Override + public float getSimilarityScore() { + return similarityScore_; + } + + /** + * + * + *
                                          +         * Output only. The similarity score of between the past and current
                                          +         * suggestion.
                                          +         * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The similarityScore to set. + * @return This builder for chaining. + */ + public Builder setSimilarityScore(float value) { + + similarityScore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. The similarity score of between the past and current
                                          +         * suggestion.
                                          +         * 
                                          + * + * float similarity_score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSimilarityScore() { + bitField0_ = (bitField0_ & ~0x00000008); + similarityScore_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResult.DuplicateSuggestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DuplicateSuggestion 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.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DUPLICATE_SUGGESTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion> + duplicateSuggestions_; + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion> + getDuplicateSuggestionsList() { + return duplicateSuggestions_; + } + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + getDuplicateSuggestionsOrBuilderList() { + return duplicateSuggestions_; + } + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDuplicateSuggestionsCount() { + return duplicateSuggestions_.size(); + } + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + getDuplicateSuggestions(int index) { + return duplicateSuggestions_.get(index); + } + + /** + * + * + *
                                          +     * Output only. The duplicate suggestions.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder + getDuplicateSuggestionsOrBuilder(int index) { + return duplicateSuggestions_.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 < duplicateSuggestions_.size(); i++) { + output.writeMessage(1, duplicateSuggestions_.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 < duplicateSuggestions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, duplicateSuggestions_.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.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult) obj; + + if (!getDuplicateSuggestionsList().equals(other.getDuplicateSuggestionsList())) 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 (getDuplicateSuggestionsCount() > 0) { + hash = (37 * hash) + DUPLICATE_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDuplicateSuggestionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + 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.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + 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.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Duplication check for the suggestion.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult) + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (duplicateSuggestionsBuilder_ == null) { + duplicateSuggestions_ = java.util.Collections.emptyList(); + } else { + duplicateSuggestions_ = null; + duplicateSuggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult result) { + if (duplicateSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + duplicateSuggestions_ = java.util.Collections.unmodifiableList(duplicateSuggestions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.duplicateSuggestions_ = duplicateSuggestions_; + } else { + result.duplicateSuggestions_ = duplicateSuggestionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult other) { + if (other + == com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance()) return this; + if (duplicateSuggestionsBuilder_ == null) { + if (!other.duplicateSuggestions_.isEmpty()) { + if (duplicateSuggestions_.isEmpty()) { + duplicateSuggestions_ = other.duplicateSuggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.addAll(other.duplicateSuggestions_); + } + onChanged(); + } + } else { + if (!other.duplicateSuggestions_.isEmpty()) { + if (duplicateSuggestionsBuilder_.isEmpty()) { + duplicateSuggestionsBuilder_.dispose(); + duplicateSuggestionsBuilder_ = null; + duplicateSuggestions_ = other.duplicateSuggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + duplicateSuggestionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDuplicateSuggestionsFieldBuilder() + : null; + } else { + duplicateSuggestionsBuilder_.addAllMessages(other.duplicateSuggestions_); + } + } + } + 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.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResult.DuplicateSuggestion.parser(), + extensionRegistry); + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(m); + } else { + duplicateSuggestionsBuilder_.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< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion> + duplicateSuggestions_ = java.util.Collections.emptyList(); + + private void ensureDuplicateSuggestionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + duplicateSuggestions_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion>(duplicateSuggestions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + duplicateSuggestionsBuilder_; + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion> + getDuplicateSuggestionsList() { + if (duplicateSuggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(duplicateSuggestions_); + } else { + return duplicateSuggestionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDuplicateSuggestionsCount() { + if (duplicateSuggestionsBuilder_ == null) { + return duplicateSuggestions_.size(); + } else { + return duplicateSuggestionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + getDuplicateSuggestions(int index) { + if (duplicateSuggestionsBuilder_ == null) { + return duplicateSuggestions_.get(index); + } else { + return duplicateSuggestionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + value) { + if (duplicateSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.set(index, value); + onChanged(); + } else { + duplicateSuggestionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder + builderForValue) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + duplicateSuggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDuplicateSuggestions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + value) { + if (duplicateSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(value); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDuplicateSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion + value) { + if (duplicateSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(index, value); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDuplicateSuggestions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder + builderForValue) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(builderForValue.build()); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDuplicateSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder + builderForValue) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDuplicateSuggestions( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResult.DuplicateSuggestion> + values) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, duplicateSuggestions_); + onChanged(); + } else { + duplicateSuggestionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDuplicateSuggestions() { + if (duplicateSuggestionsBuilder_ == null) { + duplicateSuggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + duplicateSuggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDuplicateSuggestions(int index) { + if (duplicateSuggestionsBuilder_ == null) { + ensureDuplicateSuggestionsIsMutable(); + duplicateSuggestions_.remove(index); + onChanged(); + } else { + duplicateSuggestionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder + getDuplicateSuggestionsBuilder(int index) { + return getDuplicateSuggestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder + getDuplicateSuggestionsOrBuilder(int index) { + if (duplicateSuggestionsBuilder_ == null) { + return duplicateSuggestions_.get(index); + } else { + return duplicateSuggestionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + getDuplicateSuggestionsOrBuilderList() { + if (duplicateSuggestionsBuilder_ != null) { + return duplicateSuggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(duplicateSuggestions_); + } + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder + addDuplicateSuggestionsBuilder() { + return getDuplicateSuggestionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder + addDuplicateSuggestionsBuilder(int index) { + return getDuplicateSuggestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. The duplicate suggestions.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder> + getDuplicateSuggestionsBuilderList() { + return getDuplicateSuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder> + getDuplicateSuggestionsFieldBuilder() { + if (duplicateSuggestionsBuilder_ == null) { + duplicateSuggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .DuplicateSuggestionOrBuilder>( + duplicateSuggestions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + duplicateSuggestions_ = null; + } + return duplicateSuggestionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DuplicateCheckResult 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.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AgentActionSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Optional. The suggested action for the agent.
                                          +     * 
                                          + * + * string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentAction. + */ + java.lang.String getAgentAction(); + + /** + * + * + *
                                          +     * Optional. The suggested action for the agent.
                                          +     * 
                                          + * + * string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentAction. + */ + com.google.protobuf.ByteString getAgentActionBytes(); + + /** + * + * + *
                                          +     * Output only. Sources for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sources field is set. + */ + boolean hasSources(); + + /** + * + * + *
                                          +     * Output only. Sources for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sources. + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources getSources(); + + /** + * + * + *
                                          +     * Output only. Sources for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder + getSourcesOrBuilder(); + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duplicateCheckResult field is set. + */ + boolean hasDuplicateCheckResult(); + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duplicateCheckResult. + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + getDuplicateCheckResult(); + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultOrBuilder + getDuplicateCheckResultOrBuilder(); + } + + /** + * + * + *
                                          +   * Actions suggested for the agent. This is based on applicable instructions.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion} + */ + public static final class AgentActionSuggestion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion) + AgentActionSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AgentActionSuggestion.newBuilder() to construct. + private AgentActionSuggestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AgentActionSuggestion() { + agentAction_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AgentActionSuggestion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .Builder.class); + } + + private int bitField0_; + public static final int AGENT_ACTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentAction_ = ""; + + /** + * + * + *
                                          +     * Optional. The suggested action for the agent.
                                          +     * 
                                          + * + * string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentAction. + */ + @java.lang.Override + public java.lang.String getAgentAction() { + java.lang.Object ref = agentAction_; + 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(); + agentAction_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Optional. The suggested action for the agent.
                                          +     * 
                                          + * + * string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentAction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentActionBytes() { + java.lang.Object ref = agentAction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCES_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources_; + + /** + * + * + *
                                          +     * Output only. Sources for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sources field is set. + */ + @java.lang.Override + public boolean hasSources() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Output only. Sources for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sources. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources getSources() { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.getDefaultInstance() + : sources_; + } + + /** + * + * + *
                                          +     * Output only. Sources for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder + getSourcesOrBuilder() { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.getDefaultInstance() + : sources_; + } + + public static final int DUPLICATE_CHECK_RESULT_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + duplicateCheckResult_; + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duplicateCheckResult field is set. + */ + @java.lang.Override + public boolean hasDuplicateCheckResult() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duplicateCheckResult. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + getDuplicateCheckResult() { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the agent action suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultOrBuilder + getDuplicateCheckResultOrBuilder() { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentAction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentAction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSources()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getDuplicateCheckResult()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentAction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentAction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSources()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDuplicateCheckResult()); + } + 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.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion) obj; + + if (!getAgentAction().equals(other.getAgentAction())) return false; + if (hasSources() != other.hasSources()) return false; + if (hasSources()) { + if (!getSources().equals(other.getSources())) return false; + } + if (hasDuplicateCheckResult() != other.hasDuplicateCheckResult()) return false; + if (hasDuplicateCheckResult()) { + if (!getDuplicateCheckResult().equals(other.getDuplicateCheckResult())) 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) + AGENT_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAgentAction().hashCode(); + if (hasSources()) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSources().hashCode(); + } + if (hasDuplicateCheckResult()) { + hash = (37 * hash) + DUPLICATE_CHECK_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDuplicateCheckResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + 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.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + 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.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Actions suggested for the agent. This is based on applicable instructions.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion) + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSourcesFieldBuilder(); + getDuplicateCheckResultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentAction_ = ""; + sources_ = null; + if (sourcesBuilder_ != null) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + } + duplicateCheckResult_ = null; + if (duplicateCheckResultBuilder_ != null) { + duplicateCheckResultBuilder_.dispose(); + duplicateCheckResultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentAction_ = agentAction_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sources_ = sourcesBuilder_ == null ? sources_ : sourcesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.duplicateCheckResult_ = + duplicateCheckResultBuilder_ == null + ? duplicateCheckResult_ + : duplicateCheckResultBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion other) { + if (other + == com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .getDefaultInstance()) return this; + if (!other.getAgentAction().isEmpty()) { + agentAction_ = other.agentAction_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSources()) { + mergeSources(other.getSources()); + } + if (other.hasDuplicateCheckResult()) { + mergeDuplicateCheckResult(other.getDuplicateCheckResult()); + } + 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: + { + agentAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSourcesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getDuplicateCheckResultFieldBuilder().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 agentAction_ = ""; + + /** + * + * + *
                                          +       * Optional. The suggested action for the agent.
                                          +       * 
                                          + * + * string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentAction. + */ + public java.lang.String getAgentAction() { + java.lang.Object ref = agentAction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentAction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Optional. The suggested action for the agent.
                                          +       * 
                                          + * + * string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentAction. + */ + public com.google.protobuf.ByteString getAgentActionBytes() { + java.lang.Object ref = agentAction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Optional. The suggested action for the agent.
                                          +       * 
                                          + * + * string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentAction to set. + * @return This builder for chaining. + */ + public Builder setAgentAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentAction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The suggested action for the agent.
                                          +       * 
                                          + * + * string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentAction() { + agentAction_ = getDefaultInstance().getAgentAction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The suggested action for the agent.
                                          +       * 
                                          + * + * string agent_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentAction to set. + * @return This builder for chaining. + */ + public Builder setAgentActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentAction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder> + sourcesBuilder_; + + /** + * + * + *
                                          +       * Output only. Sources for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sources field is set. + */ + public boolean hasSources() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * Output only. Sources for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sources. + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources getSources() { + if (sourcesBuilder_ == null) { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance() + : sources_; + } else { + return sourcesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Output only. Sources for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSources( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sources_ = value; + } else { + sourcesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Sources for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSources( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder + builderForValue) { + if (sourcesBuilder_ == null) { + sources_ = builderForValue.build(); + } else { + sourcesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Sources for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSources( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources value) { + if (sourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sources_ != null + && sources_ + != com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance()) { + getSourcesBuilder().mergeFrom(value); + } else { + sources_ = value; + } + } else { + sourcesBuilder_.mergeFrom(value); + } + if (sources_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sources for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSources() { + bitField0_ = (bitField0_ & ~0x00000002); + sources_ = null; + if (sourcesBuilder_ != null) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Sources for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder + getSourcesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSourcesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Output only. Sources for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder + getSourcesOrBuilder() { + if (sourcesBuilder_ != null) { + return sourcesBuilder_.getMessageOrBuilder(); + } else { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance() + : sources_; + } + } + + /** + * + * + *
                                          +       * Output only. Sources for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder> + getSourcesFieldBuilder() { + if (sourcesBuilder_ == null) { + sourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder>( + getSources(), getParentForChildren(), isClean()); + sources_ = null; + } + return sourcesBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + duplicateCheckResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResultOrBuilder> + duplicateCheckResultBuilder_; + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duplicateCheckResult field is set. + */ + public boolean hasDuplicateCheckResult() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duplicateCheckResult. + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + getDuplicateCheckResult() { + if (duplicateCheckResultBuilder_ == null) { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } else { + return duplicateCheckResultBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateCheckResult( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult value) { + if (duplicateCheckResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duplicateCheckResult_ = value; + } else { + duplicateCheckResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateCheckResult( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.Builder + builderForValue) { + if (duplicateCheckResultBuilder_ == null) { + duplicateCheckResult_ = builderForValue.build(); + } else { + duplicateCheckResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDuplicateCheckResult( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult value) { + if (duplicateCheckResultBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && duplicateCheckResult_ != null + && duplicateCheckResult_ + != com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResult.getDefaultInstance()) { + getDuplicateCheckResultBuilder().mergeFrom(value); + } else { + duplicateCheckResult_ = value; + } + } else { + duplicateCheckResultBuilder_.mergeFrom(value); + } + if (duplicateCheckResult_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDuplicateCheckResult() { + bitField0_ = (bitField0_ & ~0x00000004); + duplicateCheckResult_ = null; + if (duplicateCheckResultBuilder_ != null) { + duplicateCheckResultBuilder_.dispose(); + duplicateCheckResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder + getDuplicateCheckResultBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDuplicateCheckResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResultOrBuilder + getDuplicateCheckResultOrBuilder() { + if (duplicateCheckResultBuilder_ != null) { + return duplicateCheckResultBuilder_.getMessageOrBuilder(); + } else { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the agent action suggestion.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResultOrBuilder> + getDuplicateCheckResultFieldBuilder() { + if (duplicateCheckResultBuilder_ == null) { + duplicateCheckResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResultOrBuilder>( + getDuplicateCheckResult(), getParentForChildren(), isClean()); + duplicateCheckResult_ = null; + } + return duplicateCheckResultBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentActionSuggestion 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.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SampleResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Optional. Sample response for Agent in text.
                                          +     * 
                                          + * + * string response_text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The responseText. + */ + java.lang.String getResponseText(); + + /** + * + * + *
                                          +     * Optional. Sample response for Agent in text.
                                          +     * 
                                          + * + * string response_text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for responseText. + */ + com.google.protobuf.ByteString getResponseTextBytes(); + + /** + * + * + *
                                          +     * Output only. Sources for the Sample Response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sources field is set. + */ + boolean hasSources(); + + /** + * + * + *
                                          +     * Output only. Sources for the Sample Response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sources. + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources getSources(); + + /** + * + * + *
                                          +     * Output only. Sources for the Sample Response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder + getSourcesOrBuilder(); + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the sample response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duplicateCheckResult field is set. + */ + boolean hasDuplicateCheckResult(); + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the sample response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duplicateCheckResult. + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + getDuplicateCheckResult(); + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the sample response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultOrBuilder + getDuplicateCheckResultOrBuilder(); + } + + /** + * + * + *
                                          +   * Sample response that the agent can use. This could be based on applicable
                                          +   * instructions and ingested data from other systems.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse} + */ + public static final class SampleResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse) + SampleResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SampleResponse.newBuilder() to construct. + private SampleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SampleResponse() { + responseText_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SampleResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder + .class); + } + + private int bitField0_; + public static final int RESPONSE_TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object responseText_ = ""; + + /** + * + * + *
                                          +     * Optional. Sample response for Agent in text.
                                          +     * 
                                          + * + * string response_text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The responseText. + */ + @java.lang.Override + public java.lang.String getResponseText() { + java.lang.Object ref = responseText_; + 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(); + responseText_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Optional. Sample response for Agent in text.
                                          +     * 
                                          + * + * string response_text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for responseText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResponseTextBytes() { + java.lang.Object ref = responseText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCES_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources_; + + /** + * + * + *
                                          +     * Output only. Sources for the Sample Response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sources field is set. + */ + @java.lang.Override + public boolean hasSources() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Output only. Sources for the Sample Response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sources. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources getSources() { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.getDefaultInstance() + : sources_; + } + + /** + * + * + *
                                          +     * Output only. Sources for the Sample Response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder + getSourcesOrBuilder() { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.getDefaultInstance() + : sources_; + } + + public static final int DUPLICATE_CHECK_RESULT_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + duplicateCheckResult_; + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the sample response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duplicateCheckResult field is set. + */ + @java.lang.Override + public boolean hasDuplicateCheckResult() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the sample response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duplicateCheckResult. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + getDuplicateCheckResult() { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } + + /** + * + * + *
                                          +     * Output only. Duplicate check result for the sample response.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultOrBuilder + getDuplicateCheckResultOrBuilder() { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseText_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, responseText_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSources()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getDuplicateCheckResult()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseText_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, responseText_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSources()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDuplicateCheckResult()); + } + 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.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse) obj; + + if (!getResponseText().equals(other.getResponseText())) return false; + if (hasSources() != other.hasSources()) return false; + if (hasSources()) { + if (!getSources().equals(other.getSources())) return false; + } + if (hasDuplicateCheckResult() != other.hasDuplicateCheckResult()) return false; + if (hasDuplicateCheckResult()) { + if (!getDuplicateCheckResult().equals(other.getDuplicateCheckResult())) 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) + RESPONSE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getResponseText().hashCode(); + if (hasSources()) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSources().hashCode(); + } + if (hasDuplicateCheckResult()) { + hash = (37 * hash) + DUPLICATE_CHECK_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDuplicateCheckResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + 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.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + 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.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Sample response that the agent can use. This could be based on applicable
                                          +     * instructions and ingested data from other systems.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse) + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSourcesFieldBuilder(); + getDuplicateCheckResultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + responseText_ = ""; + sources_ = null; + if (sourcesBuilder_ != null) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + } + duplicateCheckResult_ = null; + if (duplicateCheckResultBuilder_ != null) { + duplicateCheckResultBuilder_.dispose(); + duplicateCheckResultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.responseText_ = responseText_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sources_ = sourcesBuilder_ == null ? sources_ : sourcesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.duplicateCheckResult_ = + duplicateCheckResultBuilder_ == null + ? duplicateCheckResult_ + : duplicateCheckResultBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse other) { + if (other + == com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + .getDefaultInstance()) return this; + if (!other.getResponseText().isEmpty()) { + responseText_ = other.responseText_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSources()) { + mergeSources(other.getSources()); + } + if (other.hasDuplicateCheckResult()) { + mergeDuplicateCheckResult(other.getDuplicateCheckResult()); + } + 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: + { + responseText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSourcesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getDuplicateCheckResultFieldBuilder().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 responseText_ = ""; + + /** + * + * + *
                                          +       * Optional. Sample response for Agent in text.
                                          +       * 
                                          + * + * string response_text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The responseText. + */ + public java.lang.String getResponseText() { + java.lang.Object ref = responseText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responseText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Optional. Sample response for Agent in text.
                                          +       * 
                                          + * + * string response_text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for responseText. + */ + public com.google.protobuf.ByteString getResponseTextBytes() { + java.lang.Object ref = responseText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Optional. Sample response for Agent in text.
                                          +       * 
                                          + * + * string response_text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The responseText to set. + * @return This builder for chaining. + */ + public Builder setResponseText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + responseText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Sample response for Agent in text.
                                          +       * 
                                          + * + * string response_text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearResponseText() { + responseText_ = getDefaultInstance().getResponseText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Sample response for Agent in text.
                                          +       * 
                                          + * + * string response_text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for responseText to set. + * @return This builder for chaining. + */ + public Builder setResponseTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder> + sourcesBuilder_; + + /** + * + * + *
                                          +       * Output only. Sources for the Sample Response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sources field is set. + */ + public boolean hasSources() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * Output only. Sources for the Sample Response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sources. + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources getSources() { + if (sourcesBuilder_ == null) { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance() + : sources_; + } else { + return sourcesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Output only. Sources for the Sample Response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSources( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sources_ = value; + } else { + sourcesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Sources for the Sample Response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSources( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder + builderForValue) { + if (sourcesBuilder_ == null) { + sources_ = builderForValue.build(); + } else { + sourcesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Sources for the Sample Response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSources( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources value) { + if (sourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sources_ != null + && sources_ + != com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance()) { + getSourcesBuilder().mergeFrom(value); + } else { + sources_ = value; + } + } else { + sourcesBuilder_.mergeFrom(value); + } + if (sources_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Sources for the Sample Response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSources() { + bitField0_ = (bitField0_ & ~0x00000002); + sources_ = null; + if (sourcesBuilder_ != null) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Sources for the Sample Response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder + getSourcesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSourcesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Output only. Sources for the Sample Response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder + getSourcesOrBuilder() { + if (sourcesBuilder_ != null) { + return sourcesBuilder_.getMessageOrBuilder(); + } else { + return sources_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources + .getDefaultInstance() + : sources_; + } + } + + /** + * + * + *
                                          +       * Output only. Sources for the Sample Response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources sources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder> + getSourcesFieldBuilder() { + if (sourcesBuilder_ == null) { + sourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesOrBuilder>( + getSources(), getParentForChildren(), isClean()); + sources_ = null; + } + return sourcesBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + duplicateCheckResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResultOrBuilder> + duplicateCheckResultBuilder_; + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the sample response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duplicateCheckResult field is set. + */ + public boolean hasDuplicateCheckResult() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the sample response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duplicateCheckResult. + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + getDuplicateCheckResult() { + if (duplicateCheckResultBuilder_ == null) { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } else { + return duplicateCheckResultBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the sample response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateCheckResult( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult value) { + if (duplicateCheckResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duplicateCheckResult_ = value; + } else { + duplicateCheckResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the sample response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuplicateCheckResult( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult.Builder + builderForValue) { + if (duplicateCheckResultBuilder_ == null) { + duplicateCheckResult_ = builderForValue.build(); + } else { + duplicateCheckResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the sample response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDuplicateCheckResult( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult value) { + if (duplicateCheckResultBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && duplicateCheckResult_ != null + && duplicateCheckResult_ + != com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResult.getDefaultInstance()) { + getDuplicateCheckResultBuilder().mergeFrom(value); + } else { + duplicateCheckResult_ = value; + } + } else { + duplicateCheckResultBuilder_.mergeFrom(value); + } + if (duplicateCheckResult_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the sample response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDuplicateCheckResult() { + bitField0_ = (bitField0_ & ~0x00000004); + duplicateCheckResult_ = null; + if (duplicateCheckResultBuilder_ != null) { + duplicateCheckResultBuilder_.dispose(); + duplicateCheckResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the sample response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder + getDuplicateCheckResultBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDuplicateCheckResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the sample response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResultOrBuilder + getDuplicateCheckResultOrBuilder() { + if (duplicateCheckResultBuilder_ != null) { + return duplicateCheckResultBuilder_.getMessageOrBuilder(); + } else { + return duplicateCheckResult_ == null + ? com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .getDefaultInstance() + : duplicateCheckResult_; + } + } + + /** + * + * + *
                                          +       * Output only. Duplicate check result for the sample response.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult duplicate_check_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResultOrBuilder> + getDuplicateCheckResultFieldBuilder() { + if (duplicateCheckResultBuilder_ == null) { + duplicateCheckResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResult + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .DuplicateCheckResultOrBuilder>( + getDuplicateCheckResult(), getParentForChildren(), isClean()); + duplicateCheckResult_ = null; + } + return duplicateCheckResultBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SampleResponse 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.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int APPLICABLE_INSTRUCTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + applicableInstructions_; + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getApplicableInstructionsList() { + return applicableInstructions_; + } + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder> + getApplicableInstructionsOrBuilderList() { + return applicableInstructions_; + } + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getApplicableInstructionsCount() { + return applicableInstructions_.size(); + } + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction getApplicableInstructions( + int index) { + return applicableInstructions_.get(index); + } + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder + getApplicableInstructionsOrBuilder(int index) { + return applicableInstructions_.get(index); + } + + public static final int AGENT_ACTION_SUGGESTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion> + agentActionSuggestions_; + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion> + getAgentActionSuggestionsList() { + return agentActionSuggestions_; + } + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestionOrBuilder> + getAgentActionSuggestionsOrBuilderList() { + return agentActionSuggestions_; + } + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAgentActionSuggestionsCount() { + return agentActionSuggestions_.size(); + } + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + getAgentActionSuggestions(int index) { + return agentActionSuggestions_.get(index); + } + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestionOrBuilder + getAgentActionSuggestionsOrBuilder(int index) { + return agentActionSuggestions_.get(index); + } + + public static final int SAMPLE_RESPONSES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + sampleResponses_; + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSampleResponsesList() { + return sampleResponses_; + } + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseOrBuilder> + getSampleResponsesOrBuilderList() { + return sampleResponses_; + } + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSampleResponsesCount() { + return sampleResponses_.size(); + } + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + getSampleResponses(int index) { + return sampleResponses_.get(index); + } + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseOrBuilder + getSampleResponsesOrBuilder(int index) { + return sampleResponses_.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 < applicableInstructions_.size(); i++) { + output.writeMessage(1, applicableInstructions_.get(i)); + } + for (int i = 0; i < agentActionSuggestions_.size(); i++) { + output.writeMessage(2, agentActionSuggestions_.get(i)); + } + for (int i = 0; i < sampleResponses_.size(); i++) { + output.writeMessage(3, sampleResponses_.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 < applicableInstructions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, applicableInstructions_.get(i)); + } + for (int i = 0; i < agentActionSuggestions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, agentActionSuggestions_.get(i)); + } + for (int i = 0; i < sampleResponses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, sampleResponses_.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.cloud.dialogflow.v2beta1.AgentCoachingSuggestion)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion other = + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) obj; + + if (!getApplicableInstructionsList().equals(other.getApplicableInstructionsList())) + return false; + if (!getAgentActionSuggestionsList().equals(other.getAgentActionSuggestionsList())) + return false; + if (!getSampleResponsesList().equals(other.getSampleResponsesList())) 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 (getApplicableInstructionsCount() > 0) { + hash = (37 * hash) + APPLICABLE_INSTRUCTIONS_FIELD_NUMBER; + hash = (53 * hash) + getApplicableInstructionsList().hashCode(); + } + if (getAgentActionSuggestionsCount() > 0) { + hash = (37 * hash) + AGENT_ACTION_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAgentActionSuggestionsList().hashCode(); + } + if (getSampleResponsesCount() > 0) { + hash = (37 * hash) + SAMPLE_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getSampleResponsesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion 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.dialogflow.v2beta1.AgentCoachingSuggestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion 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.dialogflow.v2beta1.AgentCoachingSuggestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Suggestion for coaching agents.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.class, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (applicableInstructionsBuilder_ == null) { + applicableInstructions_ = java.util.Collections.emptyList(); + } else { + applicableInstructions_ = null; + applicableInstructionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (agentActionSuggestionsBuilder_ == null) { + agentActionSuggestions_ = java.util.Collections.emptyList(); + } else { + agentActionSuggestions_ = null; + agentActionSuggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (sampleResponsesBuilder_ == null) { + sampleResponses_ = java.util.Collections.emptyList(); + } else { + sampleResponses_ = null; + sampleResponsesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion build() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion buildPartial() { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion result = + new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion result) { + if (applicableInstructionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + applicableInstructions_ = java.util.Collections.unmodifiableList(applicableInstructions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.applicableInstructions_ = applicableInstructions_; + } else { + result.applicableInstructions_ = applicableInstructionsBuilder_.build(); + } + if (agentActionSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + agentActionSuggestions_ = java.util.Collections.unmodifiableList(agentActionSuggestions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.agentActionSuggestions_ = agentActionSuggestions_; + } else { + result.agentActionSuggestions_ = agentActionSuggestionsBuilder_.build(); + } + if (sampleResponsesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sampleResponses_ = java.util.Collections.unmodifiableList(sampleResponses_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sampleResponses_ = sampleResponses_; + } else { + result.sampleResponses_ = sampleResponsesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion other) { + if (other == com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.getDefaultInstance()) + return this; + if (applicableInstructionsBuilder_ == null) { + if (!other.applicableInstructions_.isEmpty()) { + if (applicableInstructions_.isEmpty()) { + applicableInstructions_ = other.applicableInstructions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureApplicableInstructionsIsMutable(); + applicableInstructions_.addAll(other.applicableInstructions_); + } + onChanged(); + } + } else { + if (!other.applicableInstructions_.isEmpty()) { + if (applicableInstructionsBuilder_.isEmpty()) { + applicableInstructionsBuilder_.dispose(); + applicableInstructionsBuilder_ = null; + applicableInstructions_ = other.applicableInstructions_; + bitField0_ = (bitField0_ & ~0x00000001); + applicableInstructionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicableInstructionsFieldBuilder() + : null; + } else { + applicableInstructionsBuilder_.addAllMessages(other.applicableInstructions_); + } + } + } + if (agentActionSuggestionsBuilder_ == null) { + if (!other.agentActionSuggestions_.isEmpty()) { + if (agentActionSuggestions_.isEmpty()) { + agentActionSuggestions_ = other.agentActionSuggestions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAgentActionSuggestionsIsMutable(); + agentActionSuggestions_.addAll(other.agentActionSuggestions_); + } + onChanged(); + } + } else { + if (!other.agentActionSuggestions_.isEmpty()) { + if (agentActionSuggestionsBuilder_.isEmpty()) { + agentActionSuggestionsBuilder_.dispose(); + agentActionSuggestionsBuilder_ = null; + agentActionSuggestions_ = other.agentActionSuggestions_; + bitField0_ = (bitField0_ & ~0x00000002); + agentActionSuggestionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAgentActionSuggestionsFieldBuilder() + : null; + } else { + agentActionSuggestionsBuilder_.addAllMessages(other.agentActionSuggestions_); + } + } + } + if (sampleResponsesBuilder_ == null) { + if (!other.sampleResponses_.isEmpty()) { + if (sampleResponses_.isEmpty()) { + sampleResponses_ = other.sampleResponses_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSampleResponsesIsMutable(); + sampleResponses_.addAll(other.sampleResponses_); + } + onChanged(); + } + } else { + if (!other.sampleResponses_.isEmpty()) { + if (sampleResponsesBuilder_.isEmpty()) { + sampleResponsesBuilder_.dispose(); + sampleResponsesBuilder_ = null; + sampleResponses_ = other.sampleResponses_; + bitField0_ = (bitField0_ & ~0x00000004); + sampleResponsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSampleResponsesFieldBuilder() + : null; + } else { + sampleResponsesBuilder_.addAllMessages(other.sampleResponses_); + } + } + } + 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.dialogflow.v2beta1.AgentCoachingInstruction m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.parser(), + extensionRegistry); + if (applicableInstructionsBuilder_ == null) { + ensureApplicableInstructionsIsMutable(); + applicableInstructions_.add(m); + } else { + applicableInstructionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestion.parser(), + extensionRegistry); + if (agentActionSuggestionsBuilder_ == null) { + ensureAgentActionSuggestionsIsMutable(); + agentActionSuggestions_.add(m); + } else { + agentActionSuggestionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + .parser(), + extensionRegistry); + if (sampleResponsesBuilder_ == null) { + ensureSampleResponsesIsMutable(); + sampleResponses_.add(m); + } else { + sampleResponsesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + applicableInstructions_ = java.util.Collections.emptyList(); + + private void ensureApplicableInstructionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + applicableInstructions_ = + new java.util.ArrayList( + applicableInstructions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder> + applicableInstructionsBuilder_; + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicableInstructionsList() { + if (applicableInstructionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicableInstructions_); + } else { + return applicableInstructionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getApplicableInstructionsCount() { + if (applicableInstructionsBuilder_ == null) { + return applicableInstructions_.size(); + } else { + return applicableInstructionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction getApplicableInstructions( + int index) { + if (applicableInstructionsBuilder_ == null) { + return applicableInstructions_.get(index); + } else { + return applicableInstructionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicableInstructions( + int index, com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction value) { + if (applicableInstructionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicableInstructionsIsMutable(); + applicableInstructions_.set(index, value); + onChanged(); + } else { + applicableInstructionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicableInstructions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder builderForValue) { + if (applicableInstructionsBuilder_ == null) { + ensureApplicableInstructionsIsMutable(); + applicableInstructions_.set(index, builderForValue.build()); + onChanged(); + } else { + applicableInstructionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicableInstructions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction value) { + if (applicableInstructionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicableInstructionsIsMutable(); + applicableInstructions_.add(value); + onChanged(); + } else { + applicableInstructionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicableInstructions( + int index, com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction value) { + if (applicableInstructionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicableInstructionsIsMutable(); + applicableInstructions_.add(index, value); + onChanged(); + } else { + applicableInstructionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicableInstructions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder builderForValue) { + if (applicableInstructionsBuilder_ == null) { + ensureApplicableInstructionsIsMutable(); + applicableInstructions_.add(builderForValue.build()); + onChanged(); + } else { + applicableInstructionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicableInstructions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder builderForValue) { + if (applicableInstructionsBuilder_ == null) { + ensureApplicableInstructionsIsMutable(); + applicableInstructions_.add(index, builderForValue.build()); + onChanged(); + } else { + applicableInstructionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllApplicableInstructions( + java.lang.Iterable + values) { + if (applicableInstructionsBuilder_ == null) { + ensureApplicableInstructionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicableInstructions_); + onChanged(); + } else { + applicableInstructionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplicableInstructions() { + if (applicableInstructionsBuilder_ == null) { + applicableInstructions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + applicableInstructionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeApplicableInstructions(int index) { + if (applicableInstructionsBuilder_ == null) { + ensureApplicableInstructionsIsMutable(); + applicableInstructions_.remove(index); + onChanged(); + } else { + applicableInstructionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder + getApplicableInstructionsBuilder(int index) { + return getApplicableInstructionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder + getApplicableInstructionsOrBuilder(int index) { + if (applicableInstructionsBuilder_ == null) { + return applicableInstructions_.get(index); + } else { + return applicableInstructionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder> + getApplicableInstructionsOrBuilderList() { + if (applicableInstructionsBuilder_ != null) { + return applicableInstructionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicableInstructions_); + } + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder + addApplicableInstructionsBuilder() { + return getApplicableInstructionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder + addApplicableInstructionsBuilder(int index) { + return getApplicableInstructionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. Instructions applicable based on the current context.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicableInstructionsBuilderList() { + return getApplicableInstructionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder> + getApplicableInstructionsFieldBuilder() { + if (applicableInstructionsBuilder_ == null) { + applicableInstructionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder>( + applicableInstructions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + applicableInstructions_ = null; + } + return applicableInstructionsBuilder_; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion> + agentActionSuggestions_ = java.util.Collections.emptyList(); + + private void ensureAgentActionSuggestionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + agentActionSuggestions_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion>( + agentActionSuggestions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestionOrBuilder> + agentActionSuggestionsBuilder_; + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion> + getAgentActionSuggestionsList() { + if (agentActionSuggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(agentActionSuggestions_); + } else { + return agentActionSuggestionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAgentActionSuggestionsCount() { + if (agentActionSuggestionsBuilder_ == null) { + return agentActionSuggestions_.size(); + } else { + return agentActionSuggestionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + getAgentActionSuggestions(int index) { + if (agentActionSuggestionsBuilder_ == null) { + return agentActionSuggestions_.get(index); + } else { + return agentActionSuggestionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentActionSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion value) { + if (agentActionSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentActionSuggestionsIsMutable(); + agentActionSuggestions_.set(index, value); + onChanged(); + } else { + agentActionSuggestionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentActionSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion.Builder + builderForValue) { + if (agentActionSuggestionsBuilder_ == null) { + ensureAgentActionSuggestionsIsMutable(); + agentActionSuggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + agentActionSuggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAgentActionSuggestions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion value) { + if (agentActionSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentActionSuggestionsIsMutable(); + agentActionSuggestions_.add(value); + onChanged(); + } else { + agentActionSuggestionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAgentActionSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion value) { + if (agentActionSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentActionSuggestionsIsMutable(); + agentActionSuggestions_.add(index, value); + onChanged(); + } else { + agentActionSuggestionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAgentActionSuggestions( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion.Builder + builderForValue) { + if (agentActionSuggestionsBuilder_ == null) { + ensureAgentActionSuggestionsIsMutable(); + agentActionSuggestions_.add(builderForValue.build()); + onChanged(); + } else { + agentActionSuggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAgentActionSuggestions( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion.Builder + builderForValue) { + if (agentActionSuggestionsBuilder_ == null) { + ensureAgentActionSuggestionsIsMutable(); + agentActionSuggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + agentActionSuggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAgentActionSuggestions( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestion> + values) { + if (agentActionSuggestionsBuilder_ == null) { + ensureAgentActionSuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agentActionSuggestions_); + onChanged(); + } else { + agentActionSuggestionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentActionSuggestions() { + if (agentActionSuggestionsBuilder_ == null) { + agentActionSuggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + agentActionSuggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAgentActionSuggestions(int index) { + if (agentActionSuggestionsBuilder_ == null) { + ensureAgentActionSuggestionsIsMutable(); + agentActionSuggestions_.remove(index); + onChanged(); + } else { + agentActionSuggestionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion.Builder + getAgentActionSuggestionsBuilder(int index) { + return getAgentActionSuggestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestionOrBuilder + getAgentActionSuggestionsOrBuilder(int index) { + if (agentActionSuggestionsBuilder_ == null) { + return agentActionSuggestions_.get(index); + } else { + return agentActionSuggestionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestionOrBuilder> + getAgentActionSuggestionsOrBuilderList() { + if (agentActionSuggestionsBuilder_ != null) { + return agentActionSuggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agentActionSuggestions_); + } + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion.Builder + addAgentActionSuggestionsBuilder() { + return getAgentActionSuggestionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion.Builder + addAgentActionSuggestionsBuilder(int index) { + return getAgentActionSuggestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. Suggested actions for the agent to take.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .Builder> + getAgentActionSuggestionsBuilderList() { + return getAgentActionSuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestionOrBuilder> + getAgentActionSuggestionsFieldBuilder() { + if (agentActionSuggestionsBuilder_ == null) { + agentActionSuggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + .Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestionOrBuilder>( + agentActionSuggestions_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + agentActionSuggestions_ = null; + } + return agentActionSuggestionsBuilder_; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse> + sampleResponses_ = java.util.Collections.emptyList(); + + private void ensureSampleResponsesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sampleResponses_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse>( + sampleResponses_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseOrBuilder> + sampleResponsesBuilder_; + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse> + getSampleResponsesList() { + if (sampleResponsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sampleResponses_); + } else { + return sampleResponsesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSampleResponsesCount() { + if (sampleResponsesBuilder_ == null) { + return sampleResponses_.size(); + } else { + return sampleResponsesBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + getSampleResponses(int index) { + if (sampleResponsesBuilder_ == null) { + return sampleResponses_.get(index); + } else { + return sampleResponsesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSampleResponses( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse value) { + if (sampleResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleResponsesIsMutable(); + sampleResponses_.set(index, value); + onChanged(); + } else { + sampleResponsesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSampleResponses( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder + builderForValue) { + if (sampleResponsesBuilder_ == null) { + ensureSampleResponsesIsMutable(); + sampleResponses_.set(index, builderForValue.build()); + onChanged(); + } else { + sampleResponsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSampleResponses( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse value) { + if (sampleResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleResponsesIsMutable(); + sampleResponses_.add(value); + onChanged(); + } else { + sampleResponsesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSampleResponses( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse value) { + if (sampleResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleResponsesIsMutable(); + sampleResponses_.add(index, value); + onChanged(); + } else { + sampleResponsesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSampleResponses( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder + builderForValue) { + if (sampleResponsesBuilder_ == null) { + ensureSampleResponsesIsMutable(); + sampleResponses_.add(builderForValue.build()); + onChanged(); + } else { + sampleResponsesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSampleResponses( + int index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder + builderForValue) { + if (sampleResponsesBuilder_ == null) { + ensureSampleResponsesIsMutable(); + sampleResponses_.add(index, builderForValue.build()); + onChanged(); + } else { + sampleResponsesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSampleResponses( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse> + values) { + if (sampleResponsesBuilder_ == null) { + ensureSampleResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleResponses_); + onChanged(); + } else { + sampleResponsesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSampleResponses() { + if (sampleResponsesBuilder_ == null) { + sampleResponses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sampleResponsesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSampleResponses(int index) { + if (sampleResponsesBuilder_ == null) { + ensureSampleResponsesIsMutable(); + sampleResponses_.remove(index); + onChanged(); + } else { + sampleResponsesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder + getSampleResponsesBuilder(int index) { + return getSampleResponsesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseOrBuilder + getSampleResponsesOrBuilder(int index) { + if (sampleResponsesBuilder_ == null) { + return sampleResponses_.get(index); + } else { + return sampleResponsesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseOrBuilder> + getSampleResponsesOrBuilderList() { + if (sampleResponsesBuilder_ != null) { + return sampleResponsesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sampleResponses_); + } + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder + addSampleResponsesBuilder() { + return getSampleResponsesFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder + addSampleResponsesBuilder(int index) { + return getSampleResponsesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. Sample response for the Agent.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder> + getSampleResponsesBuilderList() { + return getSampleResponsesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseOrBuilder> + getSampleResponsesFieldBuilder() { + if (sampleResponsesBuilder_ == null) { + sampleResponsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .SampleResponseOrBuilder>( + sampleResponses_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + sampleResponses_ = null; + } + return sampleResponsesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) + private static final com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion(); + } + + public static com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentCoachingSuggestion 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.dialogflow.v2beta1.AgentCoachingSuggestion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingSuggestionOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingSuggestionOrBuilder.java new file mode 100644 index 000000000000..42eea4ec2291 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentCoachingSuggestionOrBuilder.java @@ -0,0 +1,237 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface AgentCoachingSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApplicableInstructionsList(); + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstruction getApplicableInstructions(int index); + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getApplicableInstructionsCount(); + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApplicableInstructionsOrBuilderList(); + + /** + * + * + *
                                          +   * Optional. Instructions applicable based on the current context.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionOrBuilder + getApplicableInstructionsOrBuilder(int index); + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAgentActionSuggestionsList(); + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion + getAgentActionSuggestions(int index); + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAgentActionSuggestionsCount(); + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .AgentActionSuggestionOrBuilder> + getAgentActionSuggestionsOrBuilderList(); + + /** + * + * + *
                                          +   * Optional. Suggested actions for the agent to take.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.AgentActionSuggestionOrBuilder + getAgentActionSuggestionsOrBuilder(int index); + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSampleResponsesList(); + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse getSampleResponses( + int index); + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSampleResponsesCount(); + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseOrBuilder> + getSampleResponsesOrBuilderList(); + + /** + * + * + *
                                          +   * Optional. Sample response for the Agent.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseOrBuilder + getSampleResponsesOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java index 975cf74a058d..0d2ffb5fb29a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java @@ -90,114 +90,118 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2beta1\032\034google/api/annotations.proto\032\027go" + "ogle/api/client.proto\032\037google/api/field_" + "behavior.proto\032\031google/api/resource.prot" - + "o\0321google/cloud/dialogflow/v2beta1/parti" - + "cipant.proto\032 google/protobuf/field_mask" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\361\002\n\014AnswerRecord\022\014\n\004name\030\001 \001(\t\022H\n\017answer" - + "_feedback\030\003 \001(\0132/.google.cloud.dialogflo" - + "w.v2beta1.AnswerFeedback\022W\n\026agent_assist" - + "ant_record\030\004 \001(\01325.google.cloud.dialogfl" - + "ow.v2beta1.AgentAssistantRecordH\000:\245\001\352A\241\001" - + "\n&dialogflow.googleapis.com/AnswerRecord" - + "\0220projects/{project}/answerRecords/{answ" - + "er_record}\022Eprojects/{project}/locations" - + "/{location}/answerRecords/{answer_record" - + "}B\010\n\006record\"\243\002\n\024AgentAssistantRecord\022X\n\031" - + "article_suggestion_answer\030\005 \001(\0132..google" - + ".cloud.dialogflow.v2beta1.ArticleAnswerB" - + "\003\340A\003H\000\022E\n\nfaq_answer\030\006 \001(\0132*.google.clou" - + "d.dialogflow.v2beta1.FaqAnswerB\003\340A\003H\000\022`\n" - + "\030dialogflow_assist_answer\030\007 \001(\01327.google" - + ".cloud.dialogflow.v2beta1.DialogflowAssi" - + "stAnswerB\003\340A\003H\000B\010\n\006answer\"\334\003\n\016AnswerFeed" - + "back\022[\n\021correctness_level\030\001 \001(\0162@.google" - + ".cloud.dialogflow.v2beta1.AnswerFeedback" - + ".CorrectnessLevel\022b\n\037agent_assistant_det" - + "ail_feedback\030\002 \001(\01327.google.cloud.dialog" - + "flow.v2beta1.AgentAssistantFeedbackH\000\022\017\n" - + "\007clicked\030\003 \001(\010\022.\n\nclick_time\030\005 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022\021\n\tdisplayed\030\004 \001(" - + "\010\0220\n\014display_time\030\006 \001(\0132\032.google.protobu" - + "f.Timestamp\"p\n\020CorrectnessLevel\022!\n\035CORRE" - + "CTNESS_LEVEL_UNSPECIFIED\020\000\022\017\n\013NOT_CORREC" - + "T\020\001\022\025\n\021PARTIALLY_CORRECT\020\002\022\021\n\rFULLY_CORR" - + "ECT\020\003B\021\n\017detail_feedback\"\224\013\n\026AgentAssist" - + "antFeedback\022a\n\020answer_relevance\030\001 \001(\0162G." - + "google.cloud.dialogflow.v2beta1.AgentAss" - + "istantFeedback.AnswerRelevance\022i\n\024docume" - + "nt_correctness\030\002 \001(\0162K.google.cloud.dial" - + "ogflow.v2beta1.AgentAssistantFeedback.Do" - + "cumentCorrectness\022g\n\023document_efficiency" - + "\030\003 \001(\0162J.google.cloud.dialogflow.v2beta1" - + ".AgentAssistantFeedback.DocumentEfficien" - + "cy\022m\n\026summarization_feedback\030\004 \001(\0132M.goo" - + "gle.cloud.dialogflow.v2beta1.AgentAssist" - + "antFeedback.SummarizationFeedback\022w\n\031kno" - + "wledge_search_feedback\030\005 \001(\0132O.google.cl" - + "oud.dialogflow.v2beta1.AgentAssistantFee" - + "dback.KnowledgeSearchFeedbackB\003\340A\001\022w\n\031kn" - + "owledge_assist_feedback\030\006 \001(\0132O.google.c" - + "loud.dialogflow.v2beta1.AgentAssistantFe" - + "edback.KnowledgeAssistFeedbackB\003\340A\001\032\312\002\n\025" - + "SummarizationFeedback\0223\n\017start_timestamp" - + "\030\001 \001(\0132\032.google.protobuf.Timestamp\0224\n\020su" - + "bmit_timestamp\030\002 \001(\0132\032.google.protobuf.T" - + "imestamp\022\024\n\014summary_text\030\003 \001(\t\022{\n\rtext_s" - + "ections\030\004 \003(\0132_.google.cloud.dialogflow." - + "v2beta1.AgentAssistantFeedback.Summariza" - + "tionFeedback.TextSectionsEntryB\003\340A\001\0323\n\021T" - + "extSectionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\032F\n\027KnowledgeSearchFeedback\022\025\n\ra" - + "nswer_copied\030\001 \001(\010\022\024\n\014clicked_uris\030\002 \003(\t" - + "\032F\n\027KnowledgeAssistFeedback\022\025\n\ranswer_co" - + "pied\030\001 \001(\010\022\024\n\014clicked_uris\030\002 \003(\t\"Q\n\017Answ" - + "erRelevance\022 \n\034ANSWER_RELEVANCE_UNSPECIF" - + "IED\020\000\022\016\n\nIRRELEVANT\020\001\022\014\n\010RELEVANT\020\002\"W\n\023D" - + "ocumentCorrectness\022$\n DOCUMENT_CORRECTNE" - + "SS_UNSPECIFIED\020\000\022\r\n\tINCORRECT\020\001\022\013\n\007CORRE" - + "CT\020\002\"Y\n\022DocumentEfficiency\022#\n\037DOCUMENT_E" - + "FFICIENCY_UNSPECIFIED\020\000\022\017\n\013INEFFICIENT\020\001" - + "\022\r\n\tEFFICIENT\020\002\"&\n\026GetAnswerRecordReques" - + "t\022\014\n\004name\030\001 \001(\t\"\223\001\n\030ListAnswerRecordsReq" - + "uest\022;\n\006parent\030\001 \001(\tB+\372A(\022&dialogflow.go" - + "ogleapis.com/AnswerRecord\022\023\n\006filter\030\002 \001(" - + "\tB\003\340A\001\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030" - + "\004 \001(\t\"{\n\031ListAnswerRecordsResponse\022E\n\016an" - + "swer_records\030\001 \003(\0132-.google.cloud.dialog" - + "flow.v2beta1.AnswerRecord\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\227\001\n\031UpdateAnswerRecordRequest" - + "\022I\n\ranswer_record\030\001 \001(\0132-.google.cloud.d" - + "ialogflow.v2beta1.AnswerRecordB\003\340A\002\022/\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "Mask2\302\007\n\rAnswerRecords\022\352\001\n\017GetAnswerReco" - + "rd\0227.google.cloud.dialogflow.v2beta1.Get" - + "AnswerRecordRequest\032-.google.cloud.dialo" - + "gflow.v2beta1.AnswerRecord\"o\210\002\001\202\323\344\223\002f\022*/" - + "v2beta1/{name=projects/*/answerRecords/*" - + "}Z8\0226/v2beta1/{name=projects/*/locations" - + "/*/answerRecords/*}\022\201\002\n\021ListAnswerRecord" - + "s\0229.google.cloud.dialogflow.v2beta1.List" - + "AnswerRecordsRequest\032:.google.cloud.dial" - + "ogflow.v2beta1.ListAnswerRecordsResponse" - + "\"u\332A\006parent\202\323\344\223\002f\022*/v2beta1/{parent=proj" - + "ects/*}/answerRecordsZ8\0226/v2beta1/{paren" - + "t=projects/*/locations/*}/answerRecords\022" - + "\305\002\n\022UpdateAnswerRecord\022:.google.cloud.di" - + "alogflow.v2beta1.UpdateAnswerRecordReque" - + "st\032-.google.cloud.dialogflow.v2beta1.Ans" - + "werRecord\"\303\001\332A\031answer_record,update_mask" - + "\202\323\344\223\002\240\00128/v2beta1/{answer_record.name=pr" - + "ojects/*/answerRecords/*}:\ranswer_record" - + "ZU2D/v2beta1/{answer_record.name=project" - + "s/*/locations/*/answerRecords/*}:\ranswer" - + "_record\032x\312A\031dialogflow.googleapis.com\322AY" - + "https://www.googleapis.com/auth/cloud-pl" - + "atform,https://www.googleapis.com/auth/d" - + "ialogflowB\247\001\n#com.google.cloud.dialogflo" - + "w.v2beta1B\022AnswerRecordsProtoP\001ZCcloud.g" - + "oogle.com/go/dialogflow/apiv2beta1/dialo" - + "gflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud" - + ".Dialogflow.V2Beta1b\006proto3" + + "o\032/google/cloud/dialogflow/v2beta1/gener" + + "ator.proto\0321google/cloud/dialogflow/v2be" + + "ta1/participant.proto\032 google/protobuf/f" + + "ield_mask.proto\032\037google/protobuf/timesta" + + "mp.proto\"\361\002\n\014AnswerRecord\022\014\n\004name\030\001 \001(\t\022" + + "H\n\017answer_feedback\030\003 \001(\0132/.google.cloud." + + "dialogflow.v2beta1.AnswerFeedback\022W\n\026age" + + "nt_assistant_record\030\004 \001(\01325.google.cloud" + + ".dialogflow.v2beta1.AgentAssistantRecord" + + "H\000:\245\001\352A\241\001\n&dialogflow.googleapis.com/Ans" + + "werRecord\0220projects/{project}/answerReco" + + "rds/{answer_record}\022Eprojects/{project}/" + + "locations/{location}/answerRecords/{answ" + + "er_record}B\010\n\006record\"\376\002\n\024AgentAssistantR" + + "ecord\022X\n\031article_suggestion_answer\030\005 \001(\013" + + "2..google.cloud.dialogflow.v2beta1.Artic" + + "leAnswerB\003\340A\003H\000\022E\n\nfaq_answer\030\006 \001(\0132*.go" + + "ogle.cloud.dialogflow.v2beta1.FaqAnswerB" + + "\003\340A\003H\000\022`\n\030dialogflow_assist_answer\030\007 \001(\013" + + "27.google.cloud.dialogflow.v2beta1.Dialo" + + "gflowAssistAnswerB\003\340A\003H\000\022Y\n\024generator_su" + + "ggestion\030\010 \001(\01324.google.cloud.dialogflow" + + ".v2beta1.GeneratorSuggestionB\003\340A\003H\000B\010\n\006a" + + "nswer\"\334\003\n\016AnswerFeedback\022[\n\021correctness_" + + "level\030\001 \001(\0162@.google.cloud.dialogflow.v2" + + "beta1.AnswerFeedback.CorrectnessLevel\022b\n" + + "\037agent_assistant_detail_feedback\030\002 \001(\01327" + + ".google.cloud.dialogflow.v2beta1.AgentAs" + + "sistantFeedbackH\000\022\017\n\007clicked\030\003 \001(\010\022.\n\ncl" + + "ick_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mp\022\021\n\tdisplayed\030\004 \001(\010\0220\n\014display_time\030\006 " + + "\001(\0132\032.google.protobuf.Timestamp\"p\n\020Corre" + + "ctnessLevel\022!\n\035CORRECTNESS_LEVEL_UNSPECI" + + "FIED\020\000\022\017\n\013NOT_CORRECT\020\001\022\025\n\021PARTIALLY_COR" + + "RECT\020\002\022\021\n\rFULLY_CORRECT\020\003B\021\n\017detail_feed" + + "back\"\224\013\n\026AgentAssistantFeedback\022a\n\020answe" + + "r_relevance\030\001 \001(\0162G.google.cloud.dialogf" + + "low.v2beta1.AgentAssistantFeedback.Answe" + + "rRelevance\022i\n\024document_correctness\030\002 \001(\016" + + "2K.google.cloud.dialogflow.v2beta1.Agent" + + "AssistantFeedback.DocumentCorrectness\022g\n" + + "\023document_efficiency\030\003 \001(\0162J.google.clou" + + "d.dialogflow.v2beta1.AgentAssistantFeedb" + + "ack.DocumentEfficiency\022m\n\026summarization_" + + "feedback\030\004 \001(\0132M.google.cloud.dialogflow" + + ".v2beta1.AgentAssistantFeedback.Summariz" + + "ationFeedback\022w\n\031knowledge_search_feedba" + + "ck\030\005 \001(\0132O.google.cloud.dialogflow.v2bet" + + "a1.AgentAssistantFeedback.KnowledgeSearc" + + "hFeedbackB\003\340A\001\022w\n\031knowledge_assist_feedb" + + "ack\030\006 \001(\0132O.google.cloud.dialogflow.v2be" + + "ta1.AgentAssistantFeedback.KnowledgeAssi" + + "stFeedbackB\003\340A\001\032\312\002\n\025SummarizationFeedbac" + + "k\0223\n\017start_timestamp\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\0224\n\020submit_timestamp\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\022\024\n\014summary_" + + "text\030\003 \001(\t\022{\n\rtext_sections\030\004 \003(\0132_.goog" + + "le.cloud.dialogflow.v2beta1.AgentAssista" + + "ntFeedback.SummarizationFeedback.TextSec" + + "tionsEntryB\003\340A\001\0323\n\021TextSectionsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032F\n\027Knowledg" + + "eSearchFeedback\022\025\n\ranswer_copied\030\001 \001(\010\022\024" + + "\n\014clicked_uris\030\002 \003(\t\032F\n\027KnowledgeAssistF" + + "eedback\022\025\n\ranswer_copied\030\001 \001(\010\022\024\n\014clicke" + + "d_uris\030\002 \003(\t\"Q\n\017AnswerRelevance\022 \n\034ANSWE" + + "R_RELEVANCE_UNSPECIFIED\020\000\022\016\n\nIRRELEVANT\020" + + "\001\022\014\n\010RELEVANT\020\002\"W\n\023DocumentCorrectness\022$" + + "\n DOCUMENT_CORRECTNESS_UNSPECIFIED\020\000\022\r\n\t" + + "INCORRECT\020\001\022\013\n\007CORRECT\020\002\"Y\n\022DocumentEffi" + + "ciency\022#\n\037DOCUMENT_EFFICIENCY_UNSPECIFIE" + + "D\020\000\022\017\n\013INEFFICIENT\020\001\022\r\n\tEFFICIENT\020\002\"&\n\026G" + + "etAnswerRecordRequest\022\014\n\004name\030\001 \001(\t\"\223\001\n\030" + + "ListAnswerRecordsRequest\022;\n\006parent\030\001 \001(\t" + + "B+\372A(\022&dialogflow.googleapis.com/AnswerR" + + "ecord\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\021\n\tpage_size\030" + + "\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"{\n\031ListAnswerR" + + "ecordsResponse\022E\n\016answer_records\030\001 \003(\0132-" + + ".google.cloud.dialogflow.v2beta1.AnswerR" + + "ecord\022\027\n\017next_page_token\030\002 \001(\t\"\227\001\n\031Updat" + + "eAnswerRecordRequest\022I\n\ranswer_record\030\001 " + + "\001(\0132-.google.cloud.dialogflow.v2beta1.An" + + "swerRecordB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMask2\302\007\n\rAnswerRecor" + + "ds\022\352\001\n\017GetAnswerRecord\0227.google.cloud.di" + + "alogflow.v2beta1.GetAnswerRecordRequest\032" + + "-.google.cloud.dialogflow.v2beta1.Answer" + + "Record\"o\210\002\001\202\323\344\223\002f\022*/v2beta1/{name=projec" + + "ts/*/answerRecords/*}Z8\0226/v2beta1/{name=" + + "projects/*/locations/*/answerRecords/*}\022" + + "\201\002\n\021ListAnswerRecords\0229.google.cloud.dia" + + "logflow.v2beta1.ListAnswerRecordsRequest" + + "\032:.google.cloud.dialogflow.v2beta1.ListA" + + "nswerRecordsResponse\"u\332A\006parent\202\323\344\223\002f\022*/" + + "v2beta1/{parent=projects/*}/answerRecord" + + "sZ8\0226/v2beta1/{parent=projects/*/locatio" + + "ns/*}/answerRecords\022\305\002\n\022UpdateAnswerReco" + + "rd\022:.google.cloud.dialogflow.v2beta1.Upd" + + "ateAnswerRecordRequest\032-.google.cloud.di" + + "alogflow.v2beta1.AnswerRecord\"\303\001\332A\031answe" + + "r_record,update_mask\202\323\344\223\002\240\00128/v2beta1/{a" + + "nswer_record.name=projects/*/answerRecor" + + "ds/*}:\ranswer_recordZU2D/v2beta1/{answer" + + "_record.name=projects/*/locations/*/answ" + + "erRecords/*}:\ranswer_record\032x\312A\031dialogfl" + + "ow.googleapis.com\322AYhttps://www.googleap" + + "is.com/auth/cloud-platform,https://www.g" + + "oogleapis.com/auth/dialogflowB\247\001\n#com.go" + + "ogle.cloud.dialogflow.v2beta1B\022AnswerRec" + + "ordsProtoP\001ZCcloud.google.com/go/dialogf" + + "low/apiv2beta1/dialogflowpb;dialogflowpb" + + "\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -207,6 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.GeneratorProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -225,7 +230,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantRecord_descriptor, new java.lang.String[] { - "ArticleSuggestionAnswer", "FaqAnswer", "DialogflowAssistAnswer", "Answer", + "ArticleSuggestionAnswer", + "FaqAnswer", + "DialogflowAssistAnswer", + "GeneratorSuggestion", + "Answer", }); internal_static_google_cloud_dialogflow_v2beta1_AnswerFeedback_descriptor = getDescriptor().getMessageTypes().get(2); @@ -341,6 +350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.GeneratorProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java index 9f6e5f5a8b4a..d9db9d4870cd 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -113,14 +117,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024VoiceSelectionParams\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022J\n" + "\013ssml_gender\030\002" - + " \001(\01620.google.cloud.dialogflow.v2beta1.SsmlVoiceGenderB\003\340A\001\"\321\001\n" + + " \001(\01620.google.cloud.dialogflow.v2beta1.SsmlVoiceGenderB\003\340A\001\"\245\002\n" + "\026SynthesizeSpeechConfig\022\032\n\r" + "speaking_rate\030\001 \001(\001B\003\340A\001\022\022\n" + "\005pitch\030\002 \001(\001B\003\340A\001\022\033\n" + "\016volume_gain_db\030\003 \001(\001B\003\340A\001\022\037\n" + "\022effects_profile_id\030\005 \003(\tB\003\340A\001\022I\n" + "\005voice\030\004 \001(\01325.google.cloud.dial" - + "ogflow.v2beta1.VoiceSelectionParamsB\003\340A\001\"\334\001\n" + + "ogflow.v2beta1.VoiceSelectionParamsB\003\340A\001\022R\n" + + "\016pronunciations\030\006 \003(\0132:.google.cloud." + + "dialogflow.v2beta1.CustomPronunciationParams\"\233\002\n" + + "\031CustomPronunciationParams\022\016\n" + + "\006phrase\030\001 \001(\t\022f\n" + + "\021phonetic_encoding\030\002 \001(\0162K." + + "google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding\022\025\n\r" + + "pronunciation\030\003 \001(\t\"o\n" + + "\020PhoneticEncoding\022!\n" + + "\035PHONETIC_ENCODING_UNSPECIFIED\020\000\022\031\n" + + "\025PHONETIC_ENCODING_IPA\020\001\022\035\n" + + "\031PHONETIC_ENCODING_X_SAMPA\020\002\"\334\001\n" + "\021OutputAudioConfig\022Q\n" + "\016audio_encoding\030\001" + " \001(\01624.google.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022\031\n" @@ -128,16 +143,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030synthesize_speech_config\030\003" + " \001(\01327.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig\"Z\n" + "\023TelephonyDtmfEvents\022C\n" - + "\013dtmf_events\030\001" - + " \003(\0162..google.cloud.dialogflow.v2beta1.TelephonyDtmf\"\354\002\n" + + "\013dtmf_events\030\001 \003(\0162.." + + "google.cloud.dialogflow.v2beta1.TelephonyDtmf\"\354\002\n" + "\022SpeechToTextConfig\022Q\n" + "\024speech_model_variant\030\001" + " \001(\01623.google.cloud.dialogflow.v2beta1.SpeechModelVariant\022\r\n" + "\005model\030\002 \001(\t\0229\n" + "\013phrase_sets\030\004 \003(\tB$\372A!\n" + "\037speech.googleapis.com/PhraseSet\022F\n" - + "\016audio_encoding\030\006 \001(\0162" - + "..google.cloud.dialogflow.v2beta1.AudioEncoding\022\031\n" + + "\016audio_encoding\030\006" + + " \001(\0162..google.cloud.dialogflow.v2beta1.AudioEncoding\022\031\n" + "\021sample_rate_hertz\030\007 \001(\005\022\025\n\r" + "language_code\030\010 \001(\t\022\030\n" + "\020enable_word_info\030\t \001(\010\022%\n" @@ -158,8 +173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006DTMF_A\020\013\022\n\n" + "\006DTMF_B\020\014\022\n\n" + "\006DTMF_C\020\r" - + "\022\n" - + "\n" + + "\022\n\n" + "\006DTMF_D\020\016\022\r\n" + "\tDTMF_STAR\020\017\022\016\n\n" + "DTMF_POUND\020\020*\224\002\n\r" @@ -191,13 +205,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036OUTPUT_AUDIO_ENCODING_OGG_OPUS\020\003\022\037\n" + "\033OUTPUT_AUDIO_ENCODING_MULAW\020\005\022\036\n" + "\032OUTPUT_AUDIO_ENCODING_ALAW\020\006B\342\002\n" - + "#com.google.cloud.dialogflow.v2beta1B\020AudioConfigProtoP\001ZCclo" - + "ud.google.com/go/dialogflow/apiv2beta1/d" - + "ialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352AU\n" - + "\033automl.googl" - + "eapis.com/Model\0226projects/{project}/locations/{location}/models/{model}\352Ab\n" - + "\037speech.googleapis.com/PhraseSet\022?projects/{p" - + "roject}/locations/{location}/phraseSets/{phrase_set}b\006proto3" + + "#com.google.cloud.dialogflow.v2beta1B\020AudioConfigPr" + + "otoP\001ZCcloud.google.com/go/dialogflow/ap" + + "iv2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352AU\n" + + "\033automl.googleapis.com/Model\0226projects/{pro" + + "ject}/locations/{location}/models/{model}\352Ab\n" + + "\037speech.googleapis.com/PhraseSet\022?projects/{project}/locations/{location}/p" + + "hraseSets/{phrase_set}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -267,10 +281,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_descriptor, new java.lang.String[] { - "SpeakingRate", "Pitch", "VolumeGainDb", "EffectsProfileId", "Voice", + "SpeakingRate", + "Pitch", + "VolumeGainDb", + "EffectsProfileId", + "Voice", + "Pronunciations", }); - internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_descriptor, + new java.lang.String[] { + "Phrase", "PhoneticEncoding", "Pronunciation", + }); + internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_descriptor, @@ -278,7 +305,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioEncoding", "SampleRateHertz", "SynthesizeSpeechConfig", }); internal_static_google_cloud_dialogflow_v2beta1_TelephonyDtmfEvents_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_dialogflow_v2beta1_TelephonyDtmfEvents_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_TelephonyDtmfEvents_descriptor, @@ -286,7 +313,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DtmfEvents", }); internal_static_google_cloud_dialogflow_v2beta1_SpeechToTextConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_dialogflow_v2beta1_SpeechToTextConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SpeechToTextConfig_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java index 3d57c3ab73d9..34003999acac 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java @@ -719,7 +719,7 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is - * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=543 + * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584 * @return Whether the cxSessionParameters field is set. */ @java.lang.Override @@ -740,7 +740,7 @@ public boolean hasCxSessionParameters() { * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is - * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=543 + * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584 * @return The cxSessionParameters. */ @java.lang.Override @@ -2877,7 +2877,7 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is - * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=543 + * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584 * @return Whether the cxSessionParameters field is set. */ @java.lang.Deprecated @@ -2897,7 +2897,7 @@ public boolean hasCxSessionParameters() { * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is - * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=543 + * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584 * @return The cxSessionParameters. */ @java.lang.Deprecated diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java index b194ff01ce48..e49c9a1878ff 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java @@ -282,7 +282,7 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is - * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=543 + * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584 * @return Whether the cxSessionParameters field is set. */ @java.lang.Deprecated @@ -300,7 +300,7 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is - * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=543 + * deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584 * @return The cxSessionParameters. */ @java.lang.Deprecated diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java new file mode 100644 index 000000000000..63c521f76fb0 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java @@ -0,0 +1,7942 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/participant.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * The request message for
                                          + * [Participants.BidiStreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.BidiStreamingAnalyzeContent].
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest} + */ +public final class BidiStreamingAnalyzeContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest) + BidiStreamingAnalyzeContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BidiStreamingAnalyzeContentRequest.newBuilder() to construct. + private BidiStreamingAnalyzeContentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BidiStreamingAnalyzeContentRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BidiStreamingAnalyzeContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Builder.class); + } + + public interface ConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Required. The name of the participant to fetch response for.
                                          +     * Format: `projects/<Project ID>/locations/<Location
                                          +     * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
                                          +     * 
                                          + * + * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The participant. + */ + java.lang.String getParticipant(); + + /** + * + * + *
                                          +     * Required. The name of the participant to fetch response for.
                                          +     * Format: `projects/<Project ID>/locations/<Location
                                          +     * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
                                          +     * 
                                          + * + * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for participant. + */ + com.google.protobuf.ByteString getParticipantBytes(); + + /** + * + * + *
                                          +     * Configure a voice-based session.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + * + * @return Whether the voiceSessionConfig field is set. + */ + boolean hasVoiceSessionConfig(); + + /** + * + * + *
                                          +     * Configure a voice-based session.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + * + * @return The voiceSessionConfig. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig + getVoiceSessionConfig(); + + /** + * + * + *
                                          +     * Configure a voice-based session.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfigOrBuilder + getVoiceSessionConfigOrBuilder(); + + /** + * + * + *
                                          +     * Parameters to be passed to the virtual agent at the beginning.
                                          +     * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + * + * @return Whether the initialVirtualAgentParameters field is set. + */ + boolean hasInitialVirtualAgentParameters(); + + /** + * + * + *
                                          +     * Parameters to be passed to the virtual agent at the beginning.
                                          +     * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + * + * @return The initialVirtualAgentParameters. + */ + com.google.protobuf.Struct getInitialVirtualAgentParameters(); + + /** + * + * + *
                                          +     * Parameters to be passed to the virtual agent at the beginning.
                                          +     * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + */ + com.google.protobuf.StructOrBuilder getInitialVirtualAgentParametersOrBuilder(); + + /** + * + * + *
                                          +     * Initial parameters for the virtual-agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + * + * @return Whether the initialVirtualAgentQueryParams field is set. + */ + boolean hasInitialVirtualAgentQueryParams(); + + /** + * + * + *
                                          +     * Initial parameters for the virtual-agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + * + * @return The initialVirtualAgentQueryParams. + */ + com.google.cloud.dialogflow.v2beta1.QueryParameters getInitialVirtualAgentQueryParams(); + + /** + * + * + *
                                          +     * Initial parameters for the virtual-agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.QueryParametersOrBuilder + getInitialVirtualAgentQueryParamsOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.ConfigCase + getConfigCase(); + } + + /** + * + * + *
                                          +   * The config of the session.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config} + */ + public static final class Config extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + ConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Config.newBuilder() to construct. + private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Config() { + participant_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Config(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.Builder + .class); + } + + public interface VoiceSessionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Required. The encoding of input audio.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for inputAudioEncoding. + */ + int getInputAudioEncodingValue(); + + /** + * + * + *
                                          +       * Required. The encoding of input audio.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputAudioEncoding. + */ + com.google.cloud.dialogflow.v2beta1.AudioEncoding getInputAudioEncoding(); + + /** + * + * + *
                                          +       * Required. The sample rate of input audio.
                                          +       * 
                                          + * + * int32 input_audio_sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputAudioSampleRateHertz. + */ + int getInputAudioSampleRateHertz(); + + /** + * + * + *
                                          +       * Required. The encoding of output audio.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outputAudioEncoding. + */ + int getOutputAudioEncodingValue(); + + /** + * + * + *
                                          +       * Required. The encoding of output audio.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputAudioEncoding. + */ + com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding getOutputAudioEncoding(); + + /** + * + * + *
                                          +       * Required. The sample rate of output audio.
                                          +       * 
                                          + * + * int32 output_audio_sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputAudioSampleRateHertz. + */ + int getOutputAudioSampleRateHertz(); + + /** + * + * + *
                                          +       * Optional. Whether to enable CX proactive processing.
                                          +       * 
                                          + * + * bool enable_cx_proactive_processing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableCxProactiveProcessing. + */ + boolean getEnableCxProactiveProcessing(); + + /** + * + * + *
                                          +       * Optional. If true, Dialogflow will stream the audio bytes from Cloud
                                          +       * TTS for speech synthesis using the StreamingSynthesize api.
                                          +       * 
                                          + * + * bool enable_streaming_synthesize = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableStreamingSynthesize. + */ + boolean getEnableStreamingSynthesize(); + } + + /** + * + * + *
                                          +     * The config about how to process the audio for a voice-based session.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig} + */ + public static final class VoiceSessionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig) + VoiceSessionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VoiceSessionConfig.newBuilder() to construct. + private VoiceSessionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VoiceSessionConfig() { + inputAudioEncoding_ = 0; + outputAudioEncoding_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VoiceSessionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.Builder.class); + } + + public static final int INPUT_AUDIO_ENCODING_FIELD_NUMBER = 1; + private int inputAudioEncoding_ = 0; + + /** + * + * + *
                                          +       * Required. The encoding of input audio.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for inputAudioEncoding. + */ + @java.lang.Override + public int getInputAudioEncodingValue() { + return inputAudioEncoding_; + } + + /** + * + * + *
                                          +       * Required. The encoding of input audio.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputAudioEncoding. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AudioEncoding getInputAudioEncoding() { + com.google.cloud.dialogflow.v2beta1.AudioEncoding result = + com.google.cloud.dialogflow.v2beta1.AudioEncoding.forNumber(inputAudioEncoding_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.AudioEncoding.UNRECOGNIZED + : result; + } + + public static final int INPUT_AUDIO_SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; + private int inputAudioSampleRateHertz_ = 0; + + /** + * + * + *
                                          +       * Required. The sample rate of input audio.
                                          +       * 
                                          + * + * int32 input_audio_sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputAudioSampleRateHertz. + */ + @java.lang.Override + public int getInputAudioSampleRateHertz() { + return inputAudioSampleRateHertz_; + } + + public static final int OUTPUT_AUDIO_ENCODING_FIELD_NUMBER = 3; + private int outputAudioEncoding_ = 0; + + /** + * + * + *
                                          +       * Required. The encoding of output audio.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outputAudioEncoding. + */ + @java.lang.Override + public int getOutputAudioEncodingValue() { + return outputAudioEncoding_; + } + + /** + * + * + *
                                          +       * Required. The encoding of output audio.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputAudioEncoding. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding getOutputAudioEncoding() { + com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding result = + com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.forNumber(outputAudioEncoding_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.UNRECOGNIZED + : result; + } + + public static final int OUTPUT_AUDIO_SAMPLE_RATE_HERTZ_FIELD_NUMBER = 4; + private int outputAudioSampleRateHertz_ = 0; + + /** + * + * + *
                                          +       * Required. The sample rate of output audio.
                                          +       * 
                                          + * + * int32 output_audio_sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputAudioSampleRateHertz. + */ + @java.lang.Override + public int getOutputAudioSampleRateHertz() { + return outputAudioSampleRateHertz_; + } + + public static final int ENABLE_CX_PROACTIVE_PROCESSING_FIELD_NUMBER = 5; + private boolean enableCxProactiveProcessing_ = false; + + /** + * + * + *
                                          +       * Optional. Whether to enable CX proactive processing.
                                          +       * 
                                          + * + * bool enable_cx_proactive_processing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableCxProactiveProcessing. + */ + @java.lang.Override + public boolean getEnableCxProactiveProcessing() { + return enableCxProactiveProcessing_; + } + + public static final int ENABLE_STREAMING_SYNTHESIZE_FIELD_NUMBER = 23; + private boolean enableStreamingSynthesize_ = false; + + /** + * + * + *
                                          +       * Optional. If true, Dialogflow will stream the audio bytes from Cloud
                                          +       * TTS for speech synthesis using the StreamingSynthesize api.
                                          +       * 
                                          + * + * bool enable_streaming_synthesize = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableStreamingSynthesize. + */ + @java.lang.Override + public boolean getEnableStreamingSynthesize() { + return enableStreamingSynthesize_; + } + + 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 (inputAudioEncoding_ + != com.google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, inputAudioEncoding_); + } + if (inputAudioSampleRateHertz_ != 0) { + output.writeInt32(2, inputAudioSampleRateHertz_); + } + if (outputAudioEncoding_ + != com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding + .OUTPUT_AUDIO_ENCODING_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, outputAudioEncoding_); + } + if (outputAudioSampleRateHertz_ != 0) { + output.writeInt32(4, outputAudioSampleRateHertz_); + } + if (enableCxProactiveProcessing_ != false) { + output.writeBool(5, enableCxProactiveProcessing_); + } + if (enableStreamingSynthesize_ != false) { + output.writeBool(23, enableStreamingSynthesize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputAudioEncoding_ + != com.google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, inputAudioEncoding_); + } + if (inputAudioSampleRateHertz_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(2, inputAudioSampleRateHertz_); + } + if (outputAudioEncoding_ + != com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding + .OUTPUT_AUDIO_ENCODING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, outputAudioEncoding_); + } + if (outputAudioSampleRateHertz_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 4, outputAudioSampleRateHertz_); + } + if (enableCxProactiveProcessing_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 5, enableCxProactiveProcessing_); + } + if (enableStreamingSynthesize_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(23, enableStreamingSynthesize_); + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) + obj; + + if (inputAudioEncoding_ != other.inputAudioEncoding_) return false; + if (getInputAudioSampleRateHertz() != other.getInputAudioSampleRateHertz()) return false; + if (outputAudioEncoding_ != other.outputAudioEncoding_) return false; + if (getOutputAudioSampleRateHertz() != other.getOutputAudioSampleRateHertz()) return false; + if (getEnableCxProactiveProcessing() != other.getEnableCxProactiveProcessing()) + return false; + if (getEnableStreamingSynthesize() != other.getEnableStreamingSynthesize()) 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) + INPUT_AUDIO_ENCODING_FIELD_NUMBER; + hash = (53 * hash) + inputAudioEncoding_; + hash = (37 * hash) + INPUT_AUDIO_SAMPLE_RATE_HERTZ_FIELD_NUMBER; + hash = (53 * hash) + getInputAudioSampleRateHertz(); + hash = (37 * hash) + OUTPUT_AUDIO_ENCODING_FIELD_NUMBER; + hash = (53 * hash) + outputAudioEncoding_; + hash = (37 * hash) + OUTPUT_AUDIO_SAMPLE_RATE_HERTZ_FIELD_NUMBER; + hash = (53 * hash) + getOutputAudioSampleRateHertz(); + hash = (37 * hash) + ENABLE_CX_PROACTIVE_PROCESSING_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableCxProactiveProcessing()); + hash = (37 * hash) + ENABLE_STREAMING_SYNTHESIZE_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStreamingSynthesize()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * The config about how to process the audio for a voice-based session.
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputAudioEncoding_ = 0; + inputAudioSampleRateHertz_ = 0; + outputAudioEncoding_ = 0; + outputAudioSampleRateHertz_ = 0; + enableCxProactiveProcessing_ = false; + enableStreamingSynthesize_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputAudioEncoding_ = inputAudioEncoding_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputAudioSampleRateHertz_ = inputAudioSampleRateHertz_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputAudioEncoding_ = outputAudioEncoding_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputAudioSampleRateHertz_ = outputAudioSampleRateHertz_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enableCxProactiveProcessing_ = enableCxProactiveProcessing_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.enableStreamingSynthesize_ = enableStreamingSynthesize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.getDefaultInstance()) return this; + if (other.inputAudioEncoding_ != 0) { + setInputAudioEncodingValue(other.getInputAudioEncodingValue()); + } + if (other.getInputAudioSampleRateHertz() != 0) { + setInputAudioSampleRateHertz(other.getInputAudioSampleRateHertz()); + } + if (other.outputAudioEncoding_ != 0) { + setOutputAudioEncodingValue(other.getOutputAudioEncodingValue()); + } + if (other.getOutputAudioSampleRateHertz() != 0) { + setOutputAudioSampleRateHertz(other.getOutputAudioSampleRateHertz()); + } + if (other.getEnableCxProactiveProcessing() != false) { + setEnableCxProactiveProcessing(other.getEnableCxProactiveProcessing()); + } + if (other.getEnableStreamingSynthesize() != false) { + setEnableStreamingSynthesize(other.getEnableStreamingSynthesize()); + } + 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: + { + inputAudioEncoding_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + inputAudioSampleRateHertz_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + outputAudioEncoding_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + outputAudioSampleRateHertz_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + enableCxProactiveProcessing_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 184: + { + enableStreamingSynthesize_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 184 + 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 inputAudioEncoding_ = 0; + + /** + * + * + *
                                          +         * Required. The encoding of input audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for inputAudioEncoding. + */ + @java.lang.Override + public int getInputAudioEncodingValue() { + return inputAudioEncoding_; + } + + /** + * + * + *
                                          +         * Required. The encoding of input audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for inputAudioEncoding to set. + * @return This builder for chaining. + */ + public Builder setInputAudioEncodingValue(int value) { + inputAudioEncoding_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The encoding of input audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputAudioEncoding. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AudioEncoding getInputAudioEncoding() { + com.google.cloud.dialogflow.v2beta1.AudioEncoding result = + com.google.cloud.dialogflow.v2beta1.AudioEncoding.forNumber(inputAudioEncoding_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.AudioEncoding.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +         * Required. The encoding of input audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The inputAudioEncoding to set. + * @return This builder for chaining. + */ + public Builder setInputAudioEncoding( + com.google.cloud.dialogflow.v2beta1.AudioEncoding value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inputAudioEncoding_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The encoding of input audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInputAudioEncoding() { + bitField0_ = (bitField0_ & ~0x00000001); + inputAudioEncoding_ = 0; + onChanged(); + return this; + } + + private int inputAudioSampleRateHertz_; + + /** + * + * + *
                                          +         * Required. The sample rate of input audio.
                                          +         * 
                                          + * + * int32 input_audio_sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputAudioSampleRateHertz. + */ + @java.lang.Override + public int getInputAudioSampleRateHertz() { + return inputAudioSampleRateHertz_; + } + + /** + * + * + *
                                          +         * Required. The sample rate of input audio.
                                          +         * 
                                          + * + * int32 input_audio_sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The inputAudioSampleRateHertz to set. + * @return This builder for chaining. + */ + public Builder setInputAudioSampleRateHertz(int value) { + + inputAudioSampleRateHertz_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The sample rate of input audio.
                                          +         * 
                                          + * + * int32 input_audio_sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInputAudioSampleRateHertz() { + bitField0_ = (bitField0_ & ~0x00000002); + inputAudioSampleRateHertz_ = 0; + onChanged(); + return this; + } + + private int outputAudioEncoding_ = 0; + + /** + * + * + *
                                          +         * Required. The encoding of output audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outputAudioEncoding. + */ + @java.lang.Override + public int getOutputAudioEncodingValue() { + return outputAudioEncoding_; + } + + /** + * + * + *
                                          +         * Required. The encoding of output audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for outputAudioEncoding to set. + * @return This builder for chaining. + */ + public Builder setOutputAudioEncodingValue(int value) { + outputAudioEncoding_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The encoding of output audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputAudioEncoding. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding getOutputAudioEncoding() { + com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding result = + com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.forNumber( + outputAudioEncoding_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +         * Required. The encoding of output audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The outputAudioEncoding to set. + * @return This builder for chaining. + */ + public Builder setOutputAudioEncoding( + com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + outputAudioEncoding_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The encoding of output audio.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOutputAudioEncoding() { + bitField0_ = (bitField0_ & ~0x00000004); + outputAudioEncoding_ = 0; + onChanged(); + return this; + } + + private int outputAudioSampleRateHertz_; + + /** + * + * + *
                                          +         * Required. The sample rate of output audio.
                                          +         * 
                                          + * + * int32 output_audio_sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputAudioSampleRateHertz. + */ + @java.lang.Override + public int getOutputAudioSampleRateHertz() { + return outputAudioSampleRateHertz_; + } + + /** + * + * + *
                                          +         * Required. The sample rate of output audio.
                                          +         * 
                                          + * + * int32 output_audio_sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The outputAudioSampleRateHertz to set. + * @return This builder for chaining. + */ + public Builder setOutputAudioSampleRateHertz(int value) { + + outputAudioSampleRateHertz_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The sample rate of output audio.
                                          +         * 
                                          + * + * int32 output_audio_sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOutputAudioSampleRateHertz() { + bitField0_ = (bitField0_ & ~0x00000008); + outputAudioSampleRateHertz_ = 0; + onChanged(); + return this; + } + + private boolean enableCxProactiveProcessing_; + + /** + * + * + *
                                          +         * Optional. Whether to enable CX proactive processing.
                                          +         * 
                                          + * + * bool enable_cx_proactive_processing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableCxProactiveProcessing. + */ + @java.lang.Override + public boolean getEnableCxProactiveProcessing() { + return enableCxProactiveProcessing_; + } + + /** + * + * + *
                                          +         * Optional. Whether to enable CX proactive processing.
                                          +         * 
                                          + * + * bool enable_cx_proactive_processing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableCxProactiveProcessing to set. + * @return This builder for chaining. + */ + public Builder setEnableCxProactiveProcessing(boolean value) { + + enableCxProactiveProcessing_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Whether to enable CX proactive processing.
                                          +         * 
                                          + * + * bool enable_cx_proactive_processing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableCxProactiveProcessing() { + bitField0_ = (bitField0_ & ~0x00000010); + enableCxProactiveProcessing_ = false; + onChanged(); + return this; + } + + private boolean enableStreamingSynthesize_; + + /** + * + * + *
                                          +         * Optional. If true, Dialogflow will stream the audio bytes from Cloud
                                          +         * TTS for speech synthesis using the StreamingSynthesize api.
                                          +         * 
                                          + * + * bool enable_streaming_synthesize = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableStreamingSynthesize. + */ + @java.lang.Override + public boolean getEnableStreamingSynthesize() { + return enableStreamingSynthesize_; + } + + /** + * + * + *
                                          +         * Optional. If true, Dialogflow will stream the audio bytes from Cloud
                                          +         * TTS for speech synthesis using the StreamingSynthesize api.
                                          +         * 
                                          + * + * bool enable_streaming_synthesize = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableStreamingSynthesize to set. + * @return This builder for chaining. + */ + public Builder setEnableStreamingSynthesize(boolean value) { + + enableStreamingSynthesize_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. If true, Dialogflow will stream the audio bytes from Cloud
                                          +         * TTS for speech synthesis using the StreamingSynthesize api.
                                          +         * 
                                          + * + * bool enable_streaming_synthesize = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableStreamingSynthesize() { + bitField0_ = (bitField0_ & ~0x00000020); + enableStreamingSynthesize_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .Config.VoiceSessionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VoiceSessionConfig 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int configCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object config_; + + public enum ConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VOICE_SESSION_CONFIG(2), + CONFIG_NOT_SET(0); + private final int value; + + private ConfigCase(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 ConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ConfigCase forNumber(int value) { + switch (value) { + case 2: + return VOICE_SESSION_CONFIG; + case 0: + return CONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public static final int PARTICIPANT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object participant_ = ""; + + /** + * + * + *
                                          +     * Required. The name of the participant to fetch response for.
                                          +     * Format: `projects/<Project ID>/locations/<Location
                                          +     * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
                                          +     * 
                                          + * + * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The participant. + */ + @java.lang.Override + public java.lang.String getParticipant() { + java.lang.Object ref = participant_; + 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(); + participant_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Required. The name of the participant to fetch response for.
                                          +     * Format: `projects/<Project ID>/locations/<Location
                                          +     * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
                                          +     * 
                                          + * + * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for participant. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParticipantBytes() { + java.lang.Object ref = participant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + participant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOICE_SESSION_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +     * Configure a voice-based session.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + * + * @return Whether the voiceSessionConfig field is set. + */ + @java.lang.Override + public boolean hasVoiceSessionConfig() { + return configCase_ == 2; + } + + /** + * + * + *
                                          +     * Configure a voice-based session.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + * + * @return The voiceSessionConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + getVoiceSessionConfig() { + if (configCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) + config_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Configure a voice-based session.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfigOrBuilder + getVoiceSessionConfigOrBuilder() { + if (configCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) + config_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.getDefaultInstance(); + } + + public static final int INITIAL_VIRTUAL_AGENT_PARAMETERS_FIELD_NUMBER = 3; + private com.google.protobuf.Struct initialVirtualAgentParameters_; + + /** + * + * + *
                                          +     * Parameters to be passed to the virtual agent at the beginning.
                                          +     * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + * + * @return Whether the initialVirtualAgentParameters field is set. + */ + @java.lang.Override + public boolean hasInitialVirtualAgentParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Parameters to be passed to the virtual agent at the beginning.
                                          +     * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + * + * @return The initialVirtualAgentParameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getInitialVirtualAgentParameters() { + return initialVirtualAgentParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : initialVirtualAgentParameters_; + } + + /** + * + * + *
                                          +     * Parameters to be passed to the virtual agent at the beginning.
                                          +     * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getInitialVirtualAgentParametersOrBuilder() { + return initialVirtualAgentParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : initialVirtualAgentParameters_; + } + + public static final int INITIAL_VIRTUAL_AGENT_QUERY_PARAMS_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.QueryParameters initialVirtualAgentQueryParams_; + + /** + * + * + *
                                          +     * Initial parameters for the virtual-agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + * + * @return Whether the initialVirtualAgentQueryParams field is set. + */ + @java.lang.Override + public boolean hasInitialVirtualAgentQueryParams() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Initial parameters for the virtual-agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + * + * @return The initialVirtualAgentQueryParams. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.QueryParameters getInitialVirtualAgentQueryParams() { + return initialVirtualAgentQueryParams_ == null + ? com.google.cloud.dialogflow.v2beta1.QueryParameters.getDefaultInstance() + : initialVirtualAgentQueryParams_; + } + + /** + * + * + *
                                          +     * Initial parameters for the virtual-agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.QueryParametersOrBuilder + getInitialVirtualAgentQueryParamsOrBuilder() { + return initialVirtualAgentQueryParams_ == null + ? com.google.cloud.dialogflow.v2beta1.QueryParameters.getDefaultInstance() + : initialVirtualAgentQueryParams_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(participant_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, participant_); + } + if (configCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) + config_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getInitialVirtualAgentParameters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getInitialVirtualAgentQueryParams()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(participant_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, participant_); + } + if (configCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) + config_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getInitialVirtualAgentParameters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getInitialVirtualAgentQueryParams()); + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) obj; + + if (!getParticipant().equals(other.getParticipant())) return false; + if (hasInitialVirtualAgentParameters() != other.hasInitialVirtualAgentParameters()) + return false; + if (hasInitialVirtualAgentParameters()) { + if (!getInitialVirtualAgentParameters().equals(other.getInitialVirtualAgentParameters())) + return false; + } + if (hasInitialVirtualAgentQueryParams() != other.hasInitialVirtualAgentQueryParams()) + return false; + if (hasInitialVirtualAgentQueryParams()) { + if (!getInitialVirtualAgentQueryParams().equals(other.getInitialVirtualAgentQueryParams())) + return false; + } + if (!getConfigCase().equals(other.getConfigCase())) return false; + switch (configCase_) { + case 2: + if (!getVoiceSessionConfig().equals(other.getVoiceSessionConfig())) 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) + PARTICIPANT_FIELD_NUMBER; + hash = (53 * hash) + getParticipant().hashCode(); + if (hasInitialVirtualAgentParameters()) { + hash = (37 * hash) + INITIAL_VIRTUAL_AGENT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getInitialVirtualAgentParameters().hashCode(); + } + if (hasInitialVirtualAgentQueryParams()) { + hash = (37 * hash) + INITIAL_VIRTUAL_AGENT_QUERY_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getInitialVirtualAgentQueryParams().hashCode(); + } + switch (configCase_) { + case 2: + hash = (37 * hash) + VOICE_SESSION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVoiceSessionConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * The config of the session.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInitialVirtualAgentParametersFieldBuilder(); + getInitialVirtualAgentQueryParamsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + participant_ = ""; + if (voiceSessionConfigBuilder_ != null) { + voiceSessionConfigBuilder_.clear(); + } + initialVirtualAgentParameters_ = null; + if (initialVirtualAgentParametersBuilder_ != null) { + initialVirtualAgentParametersBuilder_.dispose(); + initialVirtualAgentParametersBuilder_ = null; + } + initialVirtualAgentQueryParams_ = null; + if (initialVirtualAgentQueryParamsBuilder_ != null) { + initialVirtualAgentQueryParamsBuilder_.dispose(); + initialVirtualAgentQueryParamsBuilder_ = null; + } + configCase_ = 0; + config_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.participant_ = participant_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.initialVirtualAgentParameters_ = + initialVirtualAgentParametersBuilder_ == null + ? initialVirtualAgentParameters_ + : initialVirtualAgentParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.initialVirtualAgentQueryParams_ = + initialVirtualAgentQueryParamsBuilder_ == null + ? initialVirtualAgentQueryParams_ + : initialVirtualAgentQueryParamsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config result) { + result.configCase_ = configCase_; + result.config_ = this.config_; + if (configCase_ == 2 && voiceSessionConfigBuilder_ != null) { + result.config_ = voiceSessionConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .getDefaultInstance()) return this; + if (!other.getParticipant().isEmpty()) { + participant_ = other.participant_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInitialVirtualAgentParameters()) { + mergeInitialVirtualAgentParameters(other.getInitialVirtualAgentParameters()); + } + if (other.hasInitialVirtualAgentQueryParams()) { + mergeInitialVirtualAgentQueryParams(other.getInitialVirtualAgentQueryParams()); + } + switch (other.getConfigCase()) { + case VOICE_SESSION_CONFIG: + { + mergeVoiceSessionConfig(other.getVoiceSessionConfig()); + break; + } + case CONFIG_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: + { + participant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getVoiceSessionConfigFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getInitialVirtualAgentParametersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getInitialVirtualAgentQueryParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 configCase_ = 0; + private java.lang.Object config_; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public Builder clearConfig() { + configCase_ = 0; + config_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object participant_ = ""; + + /** + * + * + *
                                          +       * Required. The name of the participant to fetch response for.
                                          +       * Format: `projects/<Project ID>/locations/<Location
                                          +       * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
                                          +       * 
                                          + * + * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The participant. + */ + public java.lang.String getParticipant() { + java.lang.Object ref = participant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + participant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Required. The name of the participant to fetch response for.
                                          +       * Format: `projects/<Project ID>/locations/<Location
                                          +       * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
                                          +       * 
                                          + * + * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for participant. + */ + public com.google.protobuf.ByteString getParticipantBytes() { + java.lang.Object ref = participant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + participant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Required. The name of the participant to fetch response for.
                                          +       * Format: `projects/<Project ID>/locations/<Location
                                          +       * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
                                          +       * 
                                          + * + * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The participant to set. + * @return This builder for chaining. + */ + public Builder setParticipant(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + participant_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The name of the participant to fetch response for.
                                          +       * Format: `projects/<Project ID>/locations/<Location
                                          +       * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
                                          +       * 
                                          + * + * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParticipant() { + participant_ = getDefaultInstance().getParticipant(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The name of the participant to fetch response for.
                                          +       * Format: `projects/<Project ID>/locations/<Location
                                          +       * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
                                          +       * 
                                          + * + * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for participant to set. + * @return This builder for chaining. + */ + public Builder setParticipantBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + participant_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfigOrBuilder> + voiceSessionConfigBuilder_; + + /** + * + * + *
                                          +       * Configure a voice-based session.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + * + * @return Whether the voiceSessionConfig field is set. + */ + @java.lang.Override + public boolean hasVoiceSessionConfig() { + return configCase_ == 2; + } + + /** + * + * + *
                                          +       * Configure a voice-based session.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + * + * @return The voiceSessionConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + getVoiceSessionConfig() { + if (voiceSessionConfigBuilder_ == null) { + if (configCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) + config_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.getDefaultInstance(); + } else { + if (configCase_ == 2) { + return voiceSessionConfigBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Configure a voice-based session.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + */ + public Builder setVoiceSessionConfig( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + value) { + if (voiceSessionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + voiceSessionConfigBuilder_.setMessage(value); + } + configCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * Configure a voice-based session.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + */ + public Builder setVoiceSessionConfig( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.Builder + builderForValue) { + if (voiceSessionConfigBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + voiceSessionConfigBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * Configure a voice-based session.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + */ + public Builder mergeVoiceSessionConfig( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig + value) { + if (voiceSessionConfigBuilder_ == null) { + if (configCase_ == 2 + && config_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.getDefaultInstance()) { + config_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.newBuilder( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .Config.VoiceSessionConfig) + config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 2) { + voiceSessionConfigBuilder_.mergeFrom(value); + } else { + voiceSessionConfigBuilder_.setMessage(value); + } + } + configCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * Configure a voice-based session.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + */ + public Builder clearVoiceSessionConfig() { + if (voiceSessionConfigBuilder_ == null) { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + } + voiceSessionConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Configure a voice-based session.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.Builder + getVoiceSessionConfigBuilder() { + return getVoiceSessionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Configure a voice-based session.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfigOrBuilder + getVoiceSessionConfigOrBuilder() { + if ((configCase_ == 2) && (voiceSessionConfigBuilder_ != null)) { + return voiceSessionConfigBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) + config_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Configure a voice-based session.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig voice_session_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfigOrBuilder> + getVoiceSessionConfigFieldBuilder() { + if (voiceSessionConfigBuilder_ == null) { + if (!(configCase_ == 2)) { + config_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.getDefaultInstance(); + } + voiceSessionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfigOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .VoiceSessionConfig) + config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 2; + onChanged(); + return voiceSessionConfigBuilder_; + } + + private com.google.protobuf.Struct initialVirtualAgentParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + initialVirtualAgentParametersBuilder_; + + /** + * + * + *
                                          +       * Parameters to be passed to the virtual agent at the beginning.
                                          +       * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + * + * @return Whether the initialVirtualAgentParameters field is set. + */ + public boolean hasInitialVirtualAgentParameters() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * Parameters to be passed to the virtual agent at the beginning.
                                          +       * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + * + * @return The initialVirtualAgentParameters. + */ + public com.google.protobuf.Struct getInitialVirtualAgentParameters() { + if (initialVirtualAgentParametersBuilder_ == null) { + return initialVirtualAgentParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : initialVirtualAgentParameters_; + } else { + return initialVirtualAgentParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Parameters to be passed to the virtual agent at the beginning.
                                          +       * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + */ + public Builder setInitialVirtualAgentParameters(com.google.protobuf.Struct value) { + if (initialVirtualAgentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialVirtualAgentParameters_ = value; + } else { + initialVirtualAgentParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Parameters to be passed to the virtual agent at the beginning.
                                          +       * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + */ + public Builder setInitialVirtualAgentParameters( + com.google.protobuf.Struct.Builder builderForValue) { + if (initialVirtualAgentParametersBuilder_ == null) { + initialVirtualAgentParameters_ = builderForValue.build(); + } else { + initialVirtualAgentParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Parameters to be passed to the virtual agent at the beginning.
                                          +       * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + */ + public Builder mergeInitialVirtualAgentParameters(com.google.protobuf.Struct value) { + if (initialVirtualAgentParametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && initialVirtualAgentParameters_ != null + && initialVirtualAgentParameters_ + != com.google.protobuf.Struct.getDefaultInstance()) { + getInitialVirtualAgentParametersBuilder().mergeFrom(value); + } else { + initialVirtualAgentParameters_ = value; + } + } else { + initialVirtualAgentParametersBuilder_.mergeFrom(value); + } + if (initialVirtualAgentParameters_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Parameters to be passed to the virtual agent at the beginning.
                                          +       * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + */ + public Builder clearInitialVirtualAgentParameters() { + bitField0_ = (bitField0_ & ~0x00000004); + initialVirtualAgentParameters_ = null; + if (initialVirtualAgentParametersBuilder_ != null) { + initialVirtualAgentParametersBuilder_.dispose(); + initialVirtualAgentParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Parameters to be passed to the virtual agent at the beginning.
                                          +       * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + */ + public com.google.protobuf.Struct.Builder getInitialVirtualAgentParametersBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInitialVirtualAgentParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Parameters to be passed to the virtual agent at the beginning.
                                          +       * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + */ + public com.google.protobuf.StructOrBuilder getInitialVirtualAgentParametersOrBuilder() { + if (initialVirtualAgentParametersBuilder_ != null) { + return initialVirtualAgentParametersBuilder_.getMessageOrBuilder(); + } else { + return initialVirtualAgentParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : initialVirtualAgentParameters_; + } + } + + /** + * + * + *
                                          +       * Parameters to be passed to the virtual agent at the beginning.
                                          +       * 
                                          + * + * .google.protobuf.Struct initial_virtual_agent_parameters = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getInitialVirtualAgentParametersFieldBuilder() { + if (initialVirtualAgentParametersBuilder_ == null) { + initialVirtualAgentParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getInitialVirtualAgentParameters(), getParentForChildren(), isClean()); + initialVirtualAgentParameters_ = null; + } + return initialVirtualAgentParametersBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.QueryParameters initialVirtualAgentQueryParams_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.QueryParameters, + com.google.cloud.dialogflow.v2beta1.QueryParameters.Builder, + com.google.cloud.dialogflow.v2beta1.QueryParametersOrBuilder> + initialVirtualAgentQueryParamsBuilder_; + + /** + * + * + *
                                          +       * Initial parameters for the virtual-agent.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + * + * @return Whether the initialVirtualAgentQueryParams field is set. + */ + public boolean hasInitialVirtualAgentQueryParams() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +       * Initial parameters for the virtual-agent.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + * + * @return The initialVirtualAgentQueryParams. + */ + public com.google.cloud.dialogflow.v2beta1.QueryParameters + getInitialVirtualAgentQueryParams() { + if (initialVirtualAgentQueryParamsBuilder_ == null) { + return initialVirtualAgentQueryParams_ == null + ? com.google.cloud.dialogflow.v2beta1.QueryParameters.getDefaultInstance() + : initialVirtualAgentQueryParams_; + } else { + return initialVirtualAgentQueryParamsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Initial parameters for the virtual-agent.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + */ + public Builder setInitialVirtualAgentQueryParams( + com.google.cloud.dialogflow.v2beta1.QueryParameters value) { + if (initialVirtualAgentQueryParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialVirtualAgentQueryParams_ = value; + } else { + initialVirtualAgentQueryParamsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Initial parameters for the virtual-agent.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + */ + public Builder setInitialVirtualAgentQueryParams( + com.google.cloud.dialogflow.v2beta1.QueryParameters.Builder builderForValue) { + if (initialVirtualAgentQueryParamsBuilder_ == null) { + initialVirtualAgentQueryParams_ = builderForValue.build(); + } else { + initialVirtualAgentQueryParamsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Initial parameters for the virtual-agent.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + */ + public Builder mergeInitialVirtualAgentQueryParams( + com.google.cloud.dialogflow.v2beta1.QueryParameters value) { + if (initialVirtualAgentQueryParamsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && initialVirtualAgentQueryParams_ != null + && initialVirtualAgentQueryParams_ + != com.google.cloud.dialogflow.v2beta1.QueryParameters.getDefaultInstance()) { + getInitialVirtualAgentQueryParamsBuilder().mergeFrom(value); + } else { + initialVirtualAgentQueryParams_ = value; + } + } else { + initialVirtualAgentQueryParamsBuilder_.mergeFrom(value); + } + if (initialVirtualAgentQueryParams_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Initial parameters for the virtual-agent.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + */ + public Builder clearInitialVirtualAgentQueryParams() { + bitField0_ = (bitField0_ & ~0x00000008); + initialVirtualAgentQueryParams_ = null; + if (initialVirtualAgentQueryParamsBuilder_ != null) { + initialVirtualAgentQueryParamsBuilder_.dispose(); + initialVirtualAgentQueryParamsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Initial parameters for the virtual-agent.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.QueryParameters.Builder + getInitialVirtualAgentQueryParamsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getInitialVirtualAgentQueryParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Initial parameters for the virtual-agent.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.QueryParametersOrBuilder + getInitialVirtualAgentQueryParamsOrBuilder() { + if (initialVirtualAgentQueryParamsBuilder_ != null) { + return initialVirtualAgentQueryParamsBuilder_.getMessageOrBuilder(); + } else { + return initialVirtualAgentQueryParams_ == null + ? com.google.cloud.dialogflow.v2beta1.QueryParameters.getDefaultInstance() + : initialVirtualAgentQueryParams_; + } + } + + /** + * + * + *
                                          +       * Initial parameters for the virtual-agent.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.QueryParameters initial_virtual_agent_query_params = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.QueryParameters, + com.google.cloud.dialogflow.v2beta1.QueryParameters.Builder, + com.google.cloud.dialogflow.v2beta1.QueryParametersOrBuilder> + getInitialVirtualAgentQueryParamsFieldBuilder() { + if (initialVirtualAgentQueryParamsBuilder_ == null) { + initialVirtualAgentQueryParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.QueryParameters, + com.google.cloud.dialogflow.v2beta1.QueryParameters.Builder, + com.google.cloud.dialogflow.v2beta1.QueryParametersOrBuilder>( + getInitialVirtualAgentQueryParams(), getParentForChildren(), isClean()); + initialVirtualAgentQueryParams_ = null; + } + return initialVirtualAgentQueryParamsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .Config + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Config 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TurnInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * The UTF-8 encoded natural language text to be processed.
                                          +     * 
                                          + * + * string text = 1; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
                                          +     * The UTF-8 encoded natural language text to be processed.
                                          +     * 
                                          + * + * string text = 1; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
                                          +     * The UTF-8 encoded natural language text to be processed.
                                          +     * 
                                          + * + * string text = 1; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
                                          +     * The intent to be triggered on V3 agent.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if the modality is text.
                                          +     * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the intent field is set. + */ + boolean hasIntent(); + + /** + * + * + *
                                          +     * The intent to be triggered on V3 agent.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if the modality is text.
                                          +     * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return The intent. + */ + java.lang.String getIntent(); + + /** + * + * + *
                                          +     * The intent to be triggered on V3 agent.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if the modality is text.
                                          +     * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for intent. + */ + com.google.protobuf.ByteString getIntentBytes(); + + /** + * + * + *
                                          +     * The input event name.
                                          +     * This can only be sent once and would cancel the ongoing speech
                                          +     * recognition if any. To trigger the Welcome intent use the
                                          +     * event "WELCOME"
                                          +     * 
                                          + * + * string event = 3; + * + * @return Whether the event field is set. + */ + boolean hasEvent(); + + /** + * + * + *
                                          +     * The input event name.
                                          +     * This can only be sent once and would cancel the ongoing speech
                                          +     * recognition if any. To trigger the Welcome intent use the
                                          +     * event "WELCOME"
                                          +     * 
                                          + * + * string event = 3; + * + * @return The event. + */ + java.lang.String getEvent(); + + /** + * + * + *
                                          +     * The input event name.
                                          +     * This can only be sent once and would cancel the ongoing speech
                                          +     * recognition if any. To trigger the Welcome intent use the
                                          +     * event "WELCOME"
                                          +     * 
                                          + * + * string event = 3; + * + * @return The bytes for event. + */ + com.google.protobuf.ByteString getEventBytes(); + + /** + * + * + *
                                          +     * Optional. Parameters to be passed to the virtual agent.
                                          +     * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the virtualAgentParameters field is set. + */ + boolean hasVirtualAgentParameters(); + + /** + * + * + *
                                          +     * Optional. Parameters to be passed to the virtual agent.
                                          +     * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The virtualAgentParameters. + */ + com.google.protobuf.Struct getVirtualAgentParameters(); + + /** + * + * + *
                                          +     * Optional. Parameters to be passed to the virtual agent.
                                          +     * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.MainContentCase + getMainContentCase(); + } + + /** + * + * + *
                                          +   * Input that forms data for a single turn.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput} + */ + public static final class TurnInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + TurnInputOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TurnInput.newBuilder() to construct. + private TurnInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TurnInput() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TurnInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .Builder.class); + } + + private int bitField0_; + private int mainContentCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object mainContent_; + + public enum MainContentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + INTENT(2), + EVENT(3), + MAINCONTENT_NOT_SET(0); + private final int value; + + private MainContentCase(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 MainContentCase valueOf(int value) { + return forNumber(value); + } + + public static MainContentCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return INTENT; + case 3: + return EVENT; + case 0: + return MAINCONTENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MainContentCase getMainContentCase() { + return MainContentCase.forNumber(mainContentCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +     * The UTF-8 encoded natural language text to be processed.
                                          +     * 
                                          + * + * string text = 1; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return mainContentCase_ == 1; + } + + /** + * + * + *
                                          +     * The UTF-8 encoded natural language text to be processed.
                                          +     * 
                                          + * + * string text = 1; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (mainContentCase_ == 1) { + ref = mainContent_; + } + 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 (mainContentCase_ == 1) { + mainContent_ = s; + } + return s; + } + } + + /** + * + * + *
                                          +     * The UTF-8 encoded natural language text to be processed.
                                          +     * 
                                          + * + * string text = 1; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (mainContentCase_ == 1) { + ref = mainContent_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (mainContentCase_ == 1) { + mainContent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTENT_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +     * The intent to be triggered on V3 agent.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if the modality is text.
                                          +     * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the intent field is set. + */ + public boolean hasIntent() { + return mainContentCase_ == 2; + } + + /** + * + * + *
                                          +     * The intent to be triggered on V3 agent.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if the modality is text.
                                          +     * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return The intent. + */ + public java.lang.String getIntent() { + java.lang.Object ref = ""; + if (mainContentCase_ == 2) { + ref = mainContent_; + } + 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 (mainContentCase_ == 2) { + mainContent_ = s; + } + return s; + } + } + + /** + * + * + *
                                          +     * The intent to be triggered on V3 agent.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if the modality is text.
                                          +     * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for intent. + */ + public com.google.protobuf.ByteString getIntentBytes() { + java.lang.Object ref = ""; + if (mainContentCase_ == 2) { + ref = mainContent_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (mainContentCase_ == 2) { + mainContent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 3; + + /** + * + * + *
                                          +     * The input event name.
                                          +     * This can only be sent once and would cancel the ongoing speech
                                          +     * recognition if any. To trigger the Welcome intent use the
                                          +     * event "WELCOME"
                                          +     * 
                                          + * + * string event = 3; + * + * @return Whether the event field is set. + */ + public boolean hasEvent() { + return mainContentCase_ == 3; + } + + /** + * + * + *
                                          +     * The input event name.
                                          +     * This can only be sent once and would cancel the ongoing speech
                                          +     * recognition if any. To trigger the Welcome intent use the
                                          +     * event "WELCOME"
                                          +     * 
                                          + * + * string event = 3; + * + * @return The event. + */ + public java.lang.String getEvent() { + java.lang.Object ref = ""; + if (mainContentCase_ == 3) { + ref = mainContent_; + } + 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 (mainContentCase_ == 3) { + mainContent_ = s; + } + return s; + } + } + + /** + * + * + *
                                          +     * The input event name.
                                          +     * This can only be sent once and would cancel the ongoing speech
                                          +     * recognition if any. To trigger the Welcome intent use the
                                          +     * event "WELCOME"
                                          +     * 
                                          + * + * string event = 3; + * + * @return The bytes for event. + */ + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = ""; + if (mainContentCase_ == 3) { + ref = mainContent_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (mainContentCase_ == 3) { + mainContent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIRTUAL_AGENT_PARAMETERS_FIELD_NUMBER = 4; + private com.google.protobuf.Struct virtualAgentParameters_; + + /** + * + * + *
                                          +     * Optional. Parameters to be passed to the virtual agent.
                                          +     * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the virtualAgentParameters field is set. + */ + @java.lang.Override + public boolean hasVirtualAgentParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Optional. Parameters to be passed to the virtual agent.
                                          +     * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The virtualAgentParameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getVirtualAgentParameters() { + return virtualAgentParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : virtualAgentParameters_; + } + + /** + * + * + *
                                          +     * Optional. Parameters to be passed to the virtual agent.
                                          +     * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder() { + return virtualAgentParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : virtualAgentParameters_; + } + + 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 (mainContentCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainContent_); + } + if (mainContentCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mainContent_); + } + if (mainContentCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mainContent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getVirtualAgentParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mainContentCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainContent_); + } + if (mainContentCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mainContent_); + } + if (mainContentCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mainContent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getVirtualAgentParameters()); + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) obj; + + if (hasVirtualAgentParameters() != other.hasVirtualAgentParameters()) return false; + if (hasVirtualAgentParameters()) { + if (!getVirtualAgentParameters().equals(other.getVirtualAgentParameters())) return false; + } + if (!getMainContentCase().equals(other.getMainContentCase())) return false; + switch (mainContentCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 2: + if (!getIntent().equals(other.getIntent())) return false; + break; + case 3: + if (!getEvent().equals(other.getEvent())) 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(); + if (hasVirtualAgentParameters()) { + hash = (37 * hash) + VIRTUAL_AGENT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getVirtualAgentParameters().hashCode(); + } + switch (mainContentCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 2: + hash = (37 * hash) + INTENT_FIELD_NUMBER; + hash = (53 * hash) + getIntent().hashCode(); + break; + case 3: + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Input that forms data for a single turn.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVirtualAgentParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + virtualAgentParameters_ = null; + if (virtualAgentParametersBuilder_ != null) { + virtualAgentParametersBuilder_.dispose(); + virtualAgentParametersBuilder_ = null; + } + mainContentCase_ = 0; + mainContent_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.virtualAgentParameters_ = + virtualAgentParametersBuilder_ == null + ? virtualAgentParameters_ + : virtualAgentParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput result) { + result.mainContentCase_ = mainContentCase_; + result.mainContent_ = this.mainContent_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .getDefaultInstance()) return this; + if (other.hasVirtualAgentParameters()) { + mergeVirtualAgentParameters(other.getVirtualAgentParameters()); + } + switch (other.getMainContentCase()) { + case TEXT: + { + mainContentCase_ = 1; + mainContent_ = other.mainContent_; + onChanged(); + break; + } + case INTENT: + { + mainContentCase_ = 2; + mainContent_ = other.mainContent_; + onChanged(); + break; + } + case EVENT: + { + mainContentCase_ = 3; + mainContent_ = other.mainContent_; + onChanged(); + break; + } + case MAINCONTENT_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: + { + java.lang.String s = input.readStringRequireUtf8(); + mainContentCase_ = 1; + mainContent_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + mainContentCase_ = 2; + mainContent_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + mainContentCase_ = 3; + mainContent_ = s; + break; + } // case 26 + case 34: + { + input.readMessage( + getVirtualAgentParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 mainContentCase_ = 0; + private java.lang.Object mainContent_; + + public MainContentCase getMainContentCase() { + return MainContentCase.forNumber(mainContentCase_); + } + + public Builder clearMainContent() { + mainContentCase_ = 0; + mainContent_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                          +       * The UTF-8 encoded natural language text to be processed.
                                          +       * 
                                          + * + * string text = 1; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return mainContentCase_ == 1; + } + + /** + * + * + *
                                          +       * The UTF-8 encoded natural language text to be processed.
                                          +       * 
                                          + * + * string text = 1; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (mainContentCase_ == 1) { + ref = mainContent_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (mainContentCase_ == 1) { + mainContent_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * The UTF-8 encoded natural language text to be processed.
                                          +       * 
                                          + * + * string text = 1; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (mainContentCase_ == 1) { + ref = mainContent_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (mainContentCase_ == 1) { + mainContent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * The UTF-8 encoded natural language text to be processed.
                                          +       * 
                                          + * + * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mainContentCase_ = 1; + mainContent_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The UTF-8 encoded natural language text to be processed.
                                          +       * 
                                          + * + * string text = 1; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (mainContentCase_ == 1) { + mainContentCase_ = 0; + mainContent_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The UTF-8 encoded natural language text to be processed.
                                          +       * 
                                          + * + * string text = 1; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainContentCase_ = 1; + mainContent_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The intent to be triggered on V3 agent.
                                          +       * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +       * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +       * used to trigger the Welcome intent id if the modality is text.
                                          +       * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the intent field is set. + */ + @java.lang.Override + public boolean hasIntent() { + return mainContentCase_ == 2; + } + + /** + * + * + *
                                          +       * The intent to be triggered on V3 agent.
                                          +       * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +       * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +       * used to trigger the Welcome intent id if the modality is text.
                                          +       * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return The intent. + */ + @java.lang.Override + public java.lang.String getIntent() { + java.lang.Object ref = ""; + if (mainContentCase_ == 2) { + ref = mainContent_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (mainContentCase_ == 2) { + mainContent_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * The intent to be triggered on V3 agent.
                                          +       * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +       * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +       * used to trigger the Welcome intent id if the modality is text.
                                          +       * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for intent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIntentBytes() { + java.lang.Object ref = ""; + if (mainContentCase_ == 2) { + ref = mainContent_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (mainContentCase_ == 2) { + mainContent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * The intent to be triggered on V3 agent.
                                          +       * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +       * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +       * used to trigger the Welcome intent id if the modality is text.
                                          +       * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The intent to set. + * @return This builder for chaining. + */ + public Builder setIntent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mainContentCase_ = 2; + mainContent_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The intent to be triggered on V3 agent.
                                          +       * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +       * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +       * used to trigger the Welcome intent id if the modality is text.
                                          +       * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearIntent() { + if (mainContentCase_ == 2) { + mainContentCase_ = 0; + mainContent_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The intent to be triggered on V3 agent.
                                          +       * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          +       * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +       * used to trigger the Welcome intent id if the modality is text.
                                          +       * 
                                          + * + * string intent = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for intent to set. + * @return This builder for chaining. + */ + public Builder setIntentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainContentCase_ = 2; + mainContent_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The input event name.
                                          +       * This can only be sent once and would cancel the ongoing speech
                                          +       * recognition if any. To trigger the Welcome intent use the
                                          +       * event "WELCOME"
                                          +       * 
                                          + * + * string event = 3; + * + * @return Whether the event field is set. + */ + @java.lang.Override + public boolean hasEvent() { + return mainContentCase_ == 3; + } + + /** + * + * + *
                                          +       * The input event name.
                                          +       * This can only be sent once and would cancel the ongoing speech
                                          +       * recognition if any. To trigger the Welcome intent use the
                                          +       * event "WELCOME"
                                          +       * 
                                          + * + * string event = 3; + * + * @return The event. + */ + @java.lang.Override + public java.lang.String getEvent() { + java.lang.Object ref = ""; + if (mainContentCase_ == 3) { + ref = mainContent_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (mainContentCase_ == 3) { + mainContent_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * The input event name.
                                          +       * This can only be sent once and would cancel the ongoing speech
                                          +       * recognition if any. To trigger the Welcome intent use the
                                          +       * event "WELCOME"
                                          +       * 
                                          + * + * string event = 3; + * + * @return The bytes for event. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = ""; + if (mainContentCase_ == 3) { + ref = mainContent_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (mainContentCase_ == 3) { + mainContent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * The input event name.
                                          +       * This can only be sent once and would cancel the ongoing speech
                                          +       * recognition if any. To trigger the Welcome intent use the
                                          +       * event "WELCOME"
                                          +       * 
                                          + * + * string event = 3; + * + * @param value The event to set. + * @return This builder for chaining. + */ + public Builder setEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mainContentCase_ = 3; + mainContent_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The input event name.
                                          +       * This can only be sent once and would cancel the ongoing speech
                                          +       * recognition if any. To trigger the Welcome intent use the
                                          +       * event "WELCOME"
                                          +       * 
                                          + * + * string event = 3; + * + * @return This builder for chaining. + */ + public Builder clearEvent() { + if (mainContentCase_ == 3) { + mainContentCase_ = 0; + mainContent_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The input event name.
                                          +       * This can only be sent once and would cancel the ongoing speech
                                          +       * recognition if any. To trigger the Welcome intent use the
                                          +       * event "WELCOME"
                                          +       * 
                                          + * + * string event = 3; + * + * @param value The bytes for event to set. + * @return This builder for chaining. + */ + public Builder setEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainContentCase_ = 3; + mainContent_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct virtualAgentParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + virtualAgentParametersBuilder_; + + /** + * + * + *
                                          +       * Optional. Parameters to be passed to the virtual agent.
                                          +       * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the virtualAgentParameters field is set. + */ + public boolean hasVirtualAgentParameters() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +       * Optional. Parameters to be passed to the virtual agent.
                                          +       * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The virtualAgentParameters. + */ + public com.google.protobuf.Struct getVirtualAgentParameters() { + if (virtualAgentParametersBuilder_ == null) { + return virtualAgentParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : virtualAgentParameters_; + } else { + return virtualAgentParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. Parameters to be passed to the virtual agent.
                                          +       * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVirtualAgentParameters(com.google.protobuf.Struct value) { + if (virtualAgentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + virtualAgentParameters_ = value; + } else { + virtualAgentParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Parameters to be passed to the virtual agent.
                                          +       * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVirtualAgentParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (virtualAgentParametersBuilder_ == null) { + virtualAgentParameters_ = builderForValue.build(); + } else { + virtualAgentParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Parameters to be passed to the virtual agent.
                                          +       * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVirtualAgentParameters(com.google.protobuf.Struct value) { + if (virtualAgentParametersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && virtualAgentParameters_ != null + && virtualAgentParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getVirtualAgentParametersBuilder().mergeFrom(value); + } else { + virtualAgentParameters_ = value; + } + } else { + virtualAgentParametersBuilder_.mergeFrom(value); + } + if (virtualAgentParameters_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. Parameters to be passed to the virtual agent.
                                          +       * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVirtualAgentParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + virtualAgentParameters_ = null; + if (virtualAgentParametersBuilder_ != null) { + virtualAgentParametersBuilder_.dispose(); + virtualAgentParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Parameters to be passed to the virtual agent.
                                          +       * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getVirtualAgentParametersBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getVirtualAgentParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. Parameters to be passed to the virtual agent.
                                          +       * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder() { + if (virtualAgentParametersBuilder_ != null) { + return virtualAgentParametersBuilder_.getMessageOrBuilder(); + } else { + return virtualAgentParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : virtualAgentParameters_; + } + } + + /** + * + * + *
                                          +       * Optional. Parameters to be passed to the virtual agent.
                                          +       * 
                                          + * + * + * .google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getVirtualAgentParametersFieldBuilder() { + if (virtualAgentParametersBuilder_ == null) { + virtualAgentParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getVirtualAgentParameters(), getParentForChildren(), isClean()); + virtualAgentParameters_ = null; + } + return virtualAgentParametersBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TurnInput 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * The content of audio stream to be recognized.
                                          +     * 
                                          + * + * bytes audio = 1; + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + + /** + * + * + *
                                          +     * The content of audio stream to be recognized.
                                          +     * 
                                          + * + * bytes audio = 1; + * + * @return The audio. + */ + com.google.protobuf.ByteString getAudio(); + + /** + * + * + *
                                          +     * The DTMF digits used to invoke intent and fill in parameter value.
                                          +     *
                                          +     * This input is ignored if the previous response indicated that DTMF
                                          +     * input is not accepted.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + * + * @return Whether the dtmf field is set. + */ + boolean hasDtmf(); + + /** + * + * + *
                                          +     * The DTMF digits used to invoke intent and fill in parameter value.
                                          +     *
                                          +     * This input is ignored if the previous response indicated that DTMF
                                          +     * input is not accepted.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + * + * @return The dtmf. + */ + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents getDtmf(); + + /** + * + * + *
                                          +     * The DTMF digits used to invoke intent and fill in parameter value.
                                          +     *
                                          +     * This input is ignored if the previous response indicated that DTMF
                                          +     * input is not accepted.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + */ + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEventsOrBuilder getDtmfOrBuilder(); + + /** + * + * + *
                                          +     * Turn input.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + * + * @return Whether the turn field is set. + */ + boolean hasTurn(); + + /** + * + * + *
                                          +     * Turn input.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + * + * @return The turn. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput getTurn(); + + /** + * + * + *
                                          +     * Turn input.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder + getTurnOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.InputCase + getInputCase(); + } + + /** + * + * + *
                                          +   * Input for the conversation.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input} + */ + public static final class Input extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + InputOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Input.newBuilder() to construct. + private Input(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Input() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Input(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.Builder + .class); + } + + private int inputCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object input_; + + public enum InputCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AUDIO(1), + DTMF(2), + TURN(3), + INPUT_NOT_SET(0); + private final int value; + + private InputCase(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 InputCase valueOf(int value) { + return forNumber(value); + } + + public static InputCase forNumber(int value) { + switch (value) { + case 1: + return AUDIO; + case 2: + return DTMF; + case 3: + return TURN; + case 0: + return INPUT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InputCase getInputCase() { + return InputCase.forNumber(inputCase_); + } + + public static final int AUDIO_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +     * The content of audio stream to be recognized.
                                          +     * 
                                          + * + * bytes audio = 1; + * + * @return Whether the audio field is set. + */ + @java.lang.Override + public boolean hasAudio() { + return inputCase_ == 1; + } + + /** + * + * + *
                                          +     * The content of audio stream to be recognized.
                                          +     * 
                                          + * + * bytes audio = 1; + * + * @return The audio. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAudio() { + if (inputCase_ == 1) { + return (com.google.protobuf.ByteString) input_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int DTMF_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +     * The DTMF digits used to invoke intent and fill in parameter value.
                                          +     *
                                          +     * This input is ignored if the previous response indicated that DTMF
                                          +     * input is not accepted.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + * + * @return Whether the dtmf field is set. + */ + @java.lang.Override + public boolean hasDtmf() { + return inputCase_ == 2; + } + + /** + * + * + *
                                          +     * The DTMF digits used to invoke intent and fill in parameter value.
                                          +     *
                                          +     * This input is ignored if the previous response indicated that DTMF
                                          +     * input is not accepted.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + * + * @return The dtmf. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents getDtmf() { + if (inputCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_; + } + return com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.getDefaultInstance(); + } + + /** + * + * + *
                                          +     * The DTMF digits used to invoke intent and fill in parameter value.
                                          +     *
                                          +     * This input is ignored if the previous response indicated that DTMF
                                          +     * input is not accepted.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEventsOrBuilder getDtmfOrBuilder() { + if (inputCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_; + } + return com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.getDefaultInstance(); + } + + public static final int TURN_FIELD_NUMBER = 3; + + /** + * + * + *
                                          +     * Turn input.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + * + * @return Whether the turn field is set. + */ + @java.lang.Override + public boolean hasTurn() { + return inputCase_ == 3; + } + + /** + * + * + *
                                          +     * Turn input.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + * + * @return The turn. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + getTurn() { + if (inputCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + input_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Turn input.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder + getTurnOrBuilder() { + if (inputCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + input_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (inputCase_ == 1) { + output.writeBytes(1, (com.google.protobuf.ByteString) input_); + } + if (inputCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_); + } + if (inputCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + input_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) input_); + } + if (inputCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_); + } + if (inputCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + input_); + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) obj; + + if (!getInputCase().equals(other.getInputCase())) return false; + switch (inputCase_) { + case 1: + if (!getAudio().equals(other.getAudio())) return false; + break; + case 2: + if (!getDtmf().equals(other.getDtmf())) return false; + break; + case 3: + if (!getTurn().equals(other.getTurn())) 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(); + switch (inputCase_) { + case 1: + hash = (37 * hash) + AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getAudio().hashCode(); + break; + case 2: + hash = (37 * hash) + DTMF_FIELD_NUMBER; + hash = (53 * hash) + getDtmf().hashCode(); + break; + case 3: + hash = (37 * hash) + TURN_FIELD_NUMBER; + hash = (53 * hash) + getTurn().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Input for the conversation.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.InputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dtmfBuilder_ != null) { + dtmfBuilder_.clear(); + } + if (turnBuilder_ != null) { + turnBuilder_.clear(); + } + inputCase_ = 0; + input_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input result) { + result.inputCase_ = inputCase_; + result.input_ = this.input_; + if (inputCase_ == 2 && dtmfBuilder_ != null) { + result.input_ = dtmfBuilder_.build(); + } + if (inputCase_ == 3 && turnBuilder_ != null) { + result.input_ = turnBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .getDefaultInstance()) return this; + switch (other.getInputCase()) { + case AUDIO: + { + setAudio(other.getAudio()); + break; + } + case DTMF: + { + mergeDtmf(other.getDtmf()); + break; + } + case TURN: + { + mergeTurn(other.getTurn()); + break; + } + case INPUT_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: + { + input_ = input.readBytes(); + inputCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getDtmfFieldBuilder().getBuilder(), extensionRegistry); + inputCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getTurnFieldBuilder().getBuilder(), extensionRegistry); + inputCase_ = 3; + 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 inputCase_ = 0; + private java.lang.Object input_; + + public InputCase getInputCase() { + return InputCase.forNumber(inputCase_); + } + + public Builder clearInput() { + inputCase_ = 0; + input_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                          +       * The content of audio stream to be recognized.
                                          +       * 
                                          + * + * bytes audio = 1; + * + * @return Whether the audio field is set. + */ + public boolean hasAudio() { + return inputCase_ == 1; + } + + /** + * + * + *
                                          +       * The content of audio stream to be recognized.
                                          +       * 
                                          + * + * bytes audio = 1; + * + * @return The audio. + */ + public com.google.protobuf.ByteString getAudio() { + if (inputCase_ == 1) { + return (com.google.protobuf.ByteString) input_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
                                          +       * The content of audio stream to be recognized.
                                          +       * 
                                          + * + * bytes audio = 1; + * + * @param value The audio to set. + * @return This builder for chaining. + */ + public Builder setAudio(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + inputCase_ = 1; + input_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The content of audio stream to be recognized.
                                          +       * 
                                          + * + * bytes audio = 1; + * + * @return This builder for chaining. + */ + public Builder clearAudio() { + if (inputCase_ == 1) { + inputCase_ = 0; + input_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents, + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.Builder, + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEventsOrBuilder> + dtmfBuilder_; + + /** + * + * + *
                                          +       * The DTMF digits used to invoke intent and fill in parameter value.
                                          +       *
                                          +       * This input is ignored if the previous response indicated that DTMF
                                          +       * input is not accepted.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + * + * @return Whether the dtmf field is set. + */ + @java.lang.Override + public boolean hasDtmf() { + return inputCase_ == 2; + } + + /** + * + * + *
                                          +       * The DTMF digits used to invoke intent and fill in parameter value.
                                          +       *
                                          +       * This input is ignored if the previous response indicated that DTMF
                                          +       * input is not accepted.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + * + * @return The dtmf. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents getDtmf() { + if (dtmfBuilder_ == null) { + if (inputCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_; + } + return com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.getDefaultInstance(); + } else { + if (inputCase_ == 2) { + return dtmfBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * The DTMF digits used to invoke intent and fill in parameter value.
                                          +       *
                                          +       * This input is ignored if the previous response indicated that DTMF
                                          +       * input is not accepted.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + */ + public Builder setDtmf(com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents value) { + if (dtmfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + input_ = value; + onChanged(); + } else { + dtmfBuilder_.setMessage(value); + } + inputCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * The DTMF digits used to invoke intent and fill in parameter value.
                                          +       *
                                          +       * This input is ignored if the previous response indicated that DTMF
                                          +       * input is not accepted.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + */ + public Builder setDtmf( + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.Builder builderForValue) { + if (dtmfBuilder_ == null) { + input_ = builderForValue.build(); + onChanged(); + } else { + dtmfBuilder_.setMessage(builderForValue.build()); + } + inputCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * The DTMF digits used to invoke intent and fill in parameter value.
                                          +       *
                                          +       * This input is ignored if the previous response indicated that DTMF
                                          +       * input is not accepted.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + */ + public Builder mergeDtmf(com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents value) { + if (dtmfBuilder_ == null) { + if (inputCase_ == 2 + && input_ + != com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.getDefaultInstance()) { + input_ = + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.newBuilder( + (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_) + .mergeFrom(value) + .buildPartial(); + } else { + input_ = value; + } + onChanged(); + } else { + if (inputCase_ == 2) { + dtmfBuilder_.mergeFrom(value); + } else { + dtmfBuilder_.setMessage(value); + } + } + inputCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * The DTMF digits used to invoke intent and fill in parameter value.
                                          +       *
                                          +       * This input is ignored if the previous response indicated that DTMF
                                          +       * input is not accepted.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + */ + public Builder clearDtmf() { + if (dtmfBuilder_ == null) { + if (inputCase_ == 2) { + inputCase_ = 0; + input_ = null; + onChanged(); + } + } else { + if (inputCase_ == 2) { + inputCase_ = 0; + input_ = null; + } + dtmfBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * The DTMF digits used to invoke intent and fill in parameter value.
                                          +       *
                                          +       * This input is ignored if the previous response indicated that DTMF
                                          +       * input is not accepted.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + */ + public com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.Builder getDtmfBuilder() { + return getDtmfFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The DTMF digits used to invoke intent and fill in parameter value.
                                          +       *
                                          +       * This input is ignored if the previous response indicated that DTMF
                                          +       * input is not accepted.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEventsOrBuilder getDtmfOrBuilder() { + if ((inputCase_ == 2) && (dtmfBuilder_ != null)) { + return dtmfBuilder_.getMessageOrBuilder(); + } else { + if (inputCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_; + } + return com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * The DTMF digits used to invoke intent and fill in parameter value.
                                          +       *
                                          +       * This input is ignored if the previous response indicated that DTMF
                                          +       * input is not accepted.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents dtmf = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents, + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.Builder, + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEventsOrBuilder> + getDtmfFieldBuilder() { + if (dtmfBuilder_ == null) { + if (!(inputCase_ == 2)) { + input_ = com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.getDefaultInstance(); + } + dtmfBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents, + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.Builder, + com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEventsOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents) input_, + getParentForChildren(), + isClean()); + input_ = null; + } + inputCase_ = 2; + onChanged(); + return dtmfBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInputOrBuilder> + turnBuilder_; + + /** + * + * + *
                                          +       * Turn input.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + * + * @return Whether the turn field is set. + */ + @java.lang.Override + public boolean hasTurn() { + return inputCase_ == 3; + } + + /** + * + * + *
                                          +       * Turn input.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + * + * @return The turn. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + getTurn() { + if (turnBuilder_ == null) { + if (inputCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput) + input_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .getDefaultInstance(); + } else { + if (inputCase_ == 3) { + return turnBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Turn input.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + */ + public Builder setTurn( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput value) { + if (turnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + input_ = value; + onChanged(); + } else { + turnBuilder_.setMessage(value); + } + inputCase_ = 3; + return this; + } + + /** + * + * + *
                                          +       * Turn input.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + */ + public Builder setTurn( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.Builder + builderForValue) { + if (turnBuilder_ == null) { + input_ = builderForValue.build(); + onChanged(); + } else { + turnBuilder_.setMessage(builderForValue.build()); + } + inputCase_ = 3; + return this; + } + + /** + * + * + *
                                          +       * Turn input.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + */ + public Builder mergeTurn( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput value) { + if (turnBuilder_ == null) { + if (inputCase_ == 3 + && input_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.getDefaultInstance()) { + input_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput) + input_) + .mergeFrom(value) + .buildPartial(); + } else { + input_ = value; + } + onChanged(); + } else { + if (inputCase_ == 3) { + turnBuilder_.mergeFrom(value); + } else { + turnBuilder_.setMessage(value); + } + } + inputCase_ = 3; + return this; + } + + /** + * + * + *
                                          +       * Turn input.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + */ + public Builder clearTurn() { + if (turnBuilder_ == null) { + if (inputCase_ == 3) { + inputCase_ = 0; + input_ = null; + onChanged(); + } + } else { + if (inputCase_ == 3) { + inputCase_ = 0; + input_ = null; + } + turnBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Turn input.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .Builder + getTurnBuilder() { + return getTurnFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Turn input.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInputOrBuilder + getTurnOrBuilder() { + if ((inputCase_ == 3) && (turnBuilder_ != null)) { + return turnBuilder_.getMessageOrBuilder(); + } else { + if (inputCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput) + input_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Turn input.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput turn = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInputOrBuilder> + getTurnFieldBuilder() { + if (turnBuilder_ == null) { + if (!(inputCase_ == 3)) { + input_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .getDefaultInstance(); + } + turnBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInputOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) + input_, + getParentForChildren(), + isClean()); + input_ = null; + } + inputCase_ = 3; + onChanged(); + return turnBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .Input + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Input 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int requestCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object request_; + + public enum RequestCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONFIG(1), + INPUT(2), + REQUEST_NOT_SET(0); + private final int value; + + private RequestCase(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 RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 1: + return CONFIG; + case 2: + return INPUT; + case 0: + return REQUEST_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public static final int CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +   * The config message for this conversation.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return requestCase_ == 1; + } + + /** + * + * + *
                                          +   * The config message for this conversation.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config getConfig() { + if (requestCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + request_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .getDefaultInstance(); + } + + /** + * + * + *
                                          +   * The config message for this conversation.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigOrBuilder + getConfigOrBuilder() { + if (requestCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + request_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .getDefaultInstance(); + } + + public static final int INPUT_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +   * Text, audio or other multi-modality inputs.
                                          +   * This is the second and following messages sent by the client.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + * + * @return Whether the input field is set. + */ + @java.lang.Override + public boolean hasInput() { + return requestCase_ == 2; + } + + /** + * + * + *
                                          +   * Text, audio or other multi-modality inputs.
                                          +   * This is the second and following messages sent by the client.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + * + * @return The input. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input getInput() { + if (requestCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + request_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Text, audio or other multi-modality inputs.
                                          +   * This is the second and following messages sent by the client.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.InputOrBuilder + getInputOrBuilder() { + if (requestCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + request_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (requestCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) request_); + } + if (requestCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) request_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (requestCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + request_); + } + if (requestCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + request_); + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest) obj; + + if (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 1: + if (!getConfig().equals(other.getConfig())) return false; + break; + case 2: + if (!getInput().equals(other.getInput())) 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(); + switch (requestCase_) { + case 1: + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + INPUT_FIELD_NUMBER; + hash = (53 * hash) + getInput().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * The request message for
                                          +   * [Participants.BidiStreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.BidiStreamingAnalyzeContent].
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (configBuilder_ != null) { + configBuilder_.clear(); + } + if (inputBuilder_ != null) { + inputBuilder_.clear(); + } + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest result) { + result.requestCase_ = requestCase_; + result.request_ = this.request_; + if (requestCase_ == 1 && configBuilder_ != null) { + result.request_ = configBuilder_.build(); + } + if (requestCase_ == 2 && inputBuilder_ != null) { + result.request_ = inputBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .getDefaultInstance()) return this; + switch (other.getRequestCase()) { + case CONFIG: + { + mergeConfig(other.getConfig()); + break; + } + case INPUT: + { + mergeInput(other.getInput()); + break; + } + case REQUEST_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: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getInputFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 2; + 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 requestCase_ = 0; + private java.lang.Object request_; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigOrBuilder> + configBuilder_; + + /** + * + * + *
                                          +     * The config message for this conversation.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return requestCase_ == 1; + } + + /** + * + * + *
                                          +     * The config message for this conversation.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + getConfig() { + if (configBuilder_ == null) { + if (requestCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + request_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .getDefaultInstance(); + } else { + if (requestCase_ == 1) { + return configBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * The config message for this conversation.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + */ + public Builder setConfig( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + requestCase_ = 1; + return this; + } + + /** + * + * + *
                                          +     * The config message for this conversation.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + */ + public Builder setConfig( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.Builder + builderForValue) { + if (configBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 1; + return this; + } + + /** + * + * + *
                                          +     * The config message for this conversation.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + */ + public Builder mergeConfig( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config value) { + if (configBuilder_ == null) { + if (requestCase_ == 1 + && request_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .getDefaultInstance()) { + request_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .Config) + request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 1) { + configBuilder_.mergeFrom(value); + } else { + configBuilder_.setMessage(value); + } + } + requestCase_ = 1; + return this; + } + + /** + * + * + *
                                          +     * The config message for this conversation.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + if (requestCase_ == 1) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 1) { + requestCase_ = 0; + request_ = null; + } + configBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * The config message for this conversation.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.Builder + getConfigBuilder() { + return getConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * The config message for this conversation.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigOrBuilder + getConfigOrBuilder() { + if ((requestCase_ == 1) && (configBuilder_ != null)) { + return configBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + request_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * The config message for this conversation.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + if (!(requestCase_ == 1)) { + request_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .getDefaultInstance(); + } + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .ConfigOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config) + request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 1; + onChanged(); + return configBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.InputOrBuilder> + inputBuilder_; + + /** + * + * + *
                                          +     * Text, audio or other multi-modality inputs.
                                          +     * This is the second and following messages sent by the client.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + * + * @return Whether the input field is set. + */ + @java.lang.Override + public boolean hasInput() { + return requestCase_ == 2; + } + + /** + * + * + *
                                          +     * Text, audio or other multi-modality inputs.
                                          +     * This is the second and following messages sent by the client.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + * + * @return The input. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input getInput() { + if (inputBuilder_ == null) { + if (requestCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + request_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .getDefaultInstance(); + } else { + if (requestCase_ == 2) { + return inputBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Text, audio or other multi-modality inputs.
                                          +     * This is the second and following messages sent by the client.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + */ + public Builder setInput( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input value) { + if (inputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + inputBuilder_.setMessage(value); + } + requestCase_ = 2; + return this; + } + + /** + * + * + *
                                          +     * Text, audio or other multi-modality inputs.
                                          +     * This is the second and following messages sent by the client.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + */ + public Builder setInput( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.Builder + builderForValue) { + if (inputBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + inputBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 2; + return this; + } + + /** + * + * + *
                                          +     * Text, audio or other multi-modality inputs.
                                          +     * This is the second and following messages sent by the client.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + */ + public Builder mergeInput( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input value) { + if (inputBuilder_ == null) { + if (requestCase_ == 2 + && request_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .getDefaultInstance()) { + request_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 2) { + inputBuilder_.mergeFrom(value); + } else { + inputBuilder_.setMessage(value); + } + } + requestCase_ = 2; + return this; + } + + /** + * + * + *
                                          +     * Text, audio or other multi-modality inputs.
                                          +     * This is the second and following messages sent by the client.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + */ + public Builder clearInput() { + if (inputBuilder_ == null) { + if (requestCase_ == 2) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 2) { + requestCase_ = 0; + request_ = null; + } + inputBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Text, audio or other multi-modality inputs.
                                          +     * This is the second and following messages sent by the client.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.Builder + getInputBuilder() { + return getInputFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Text, audio or other multi-modality inputs.
                                          +     * This is the second and following messages sent by the client.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.InputOrBuilder + getInputOrBuilder() { + if ((requestCase_ == 2) && (inputBuilder_ != null)) { + return inputBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + request_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Text, audio or other multi-modality inputs.
                                          +     * This is the second and following messages sent by the client.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.InputOrBuilder> + getInputFieldBuilder() { + if (inputBuilder_ == null) { + if (!(requestCase_ == 2)) { + request_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .getDefaultInstance(); + } + inputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .InputOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input) + request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 2; + onChanged(); + return inputBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BidiStreamingAnalyzeContentRequest 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequestOrBuilder.java new file mode 100644 index 000000000000..31d4e9ea4001 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/participant.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface BidiStreamingAnalyzeContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * The config message for this conversation.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
                                          +   * The config message for this conversation.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + * + * @return The config. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config getConfig(); + + /** + * + * + *
                                          +   * The config message for this conversation.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config config = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigOrBuilder + getConfigOrBuilder(); + + /** + * + * + *
                                          +   * Text, audio or other multi-modality inputs.
                                          +   * This is the second and following messages sent by the client.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + * + * @return Whether the input field is set. + */ + boolean hasInput(); + + /** + * + * + *
                                          +   * Text, audio or other multi-modality inputs.
                                          +   * This is the second and following messages sent by the client.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + * + * @return The input. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input getInput(); + + /** + * + * + *
                                          +   * Text, audio or other multi-modality inputs.
                                          +   * This is the second and following messages sent by the client.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input input = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.InputOrBuilder + getInputOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.RequestCase + getRequestCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java new file mode 100644 index 000000000000..f1e80dc04829 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java @@ -0,0 +1,2937 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/participant.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * The response message for
                                          + * [Participants.BidiStreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.BidiStreamingAnalyzeContent].
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse} + */ +public final class BidiStreamingAnalyzeContentResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) + BidiStreamingAnalyzeContentResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BidiStreamingAnalyzeContentResponse.newBuilder() to construct. + private BidiStreamingAnalyzeContentResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BidiStreamingAnalyzeContentResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BidiStreamingAnalyzeContentResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.Builder.class); + } + + public interface BargeInSignalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
                                          +   * Indicate the user barge-in has been detected.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal} + */ + public static final class BargeInSignal extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) + BargeInSignalOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BargeInSignal.newBuilder() to construct. + private BargeInSignal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BargeInSignal() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BargeInSignal(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .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.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) + 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.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Indicate the user barge-in has been detected.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BargeInSignal 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TurnCompleteOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
                                          +   * Indicate that the turn is complete.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete} + */ + public static final class TurnComplete extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + TurnCompleteOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TurnComplete.newBuilder() to construct. + private TurnComplete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TurnComplete() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TurnComplete(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .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.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + 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.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnCompleteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TurnComplete 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int responseCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object response_; + + public enum ResponseCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RECOGNITION_RESULT(1), + BARGE_IN_SIGNAL(2), + ANALYZE_CONTENT_RESPONSE(3), + TURN_COMPLETE(4), + RESPONSE_NOT_SET(0); + private final int value; + + private ResponseCase(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 ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 1: + return RECOGNITION_RESULT; + case 2: + return BARGE_IN_SIGNAL; + case 3: + return ANALYZE_CONTENT_RESPONSE; + case 4: + return TURN_COMPLETE; + case 0: + return RESPONSE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); + } + + public static final int RECOGNITION_RESULT_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +   * The result of speech recognition.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + * + * @return Whether the recognitionResult field is set. + */ + @java.lang.Override + public boolean hasRecognitionResult() { + return responseCase_ == 1; + } + + /** + * + * + *
                                          +   * The result of speech recognition.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + * + * @return The recognitionResult. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult getRecognitionResult() { + if (responseCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult) response_; + } + return com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * The result of speech recognition.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResultOrBuilder + getRecognitionResultOrBuilder() { + if (responseCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult) response_; + } + return com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.getDefaultInstance(); + } + + public static final int BARGE_IN_SIGNAL_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +   *
                                          +   * Indicate the user barge-in has been detected, and client should stop
                                          +   * playing back the audio.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + * + * @return Whether the bargeInSignal field is set. + */ + @java.lang.Override + public boolean hasBargeInSignal() { + return responseCase_ == 2; + } + + /** + * + * + *
                                          +   *
                                          +   * Indicate the user barge-in has been detected, and client should stop
                                          +   * playing back the audio.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + * + * @return The bargeInSignal. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + getBargeInSignal() { + if (responseCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .getDefaultInstance(); + } + + /** + * + * + *
                                          +   *
                                          +   * Indicate the user barge-in has been detected, and client should stop
                                          +   * playing back the audio.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignalOrBuilder + getBargeInSignalOrBuilder() { + if (responseCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .getDefaultInstance(); + } + + public static final int ANALYZE_CONTENT_RESPONSE_FIELD_NUMBER = 3; + + /** + * + * + *
                                          +   * The agent response from analyze content.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + * + * @return Whether the analyzeContentResponse field is set. + */ + @java.lang.Override + public boolean hasAnalyzeContentResponse() { + return responseCase_ == 3; + } + + /** + * + * + *
                                          +   * The agent response from analyze content.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + * + * @return The analyzeContentResponse. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse getAnalyzeContentResponse() { + if (responseCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse) response_; + } + return com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * The agent response from analyze content.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponseOrBuilder + getAnalyzeContentResponseOrBuilder() { + if (responseCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse) response_; + } + return com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.getDefaultInstance(); + } + + public static final int TURN_COMPLETE_FIELD_NUMBER = 4; + + /** + * + * + *
                                          +   * Indicate that the turn is complete.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + * + * @return Whether the turnComplete field is set. + */ + @java.lang.Override + public boolean hasTurnComplete() { + return responseCase_ == 4; + } + + /** + * + * + *
                                          +   * Indicate that the turn is complete.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + * + * @return The turnComplete. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + getTurnComplete() { + if (responseCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Indicate that the turn is complete.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnCompleteOrBuilder + getTurnCompleteOrBuilder() { + if (responseCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (responseCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult) response_); + } + if (responseCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal) + response_); + } + if (responseCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse) response_); + } + if (responseCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + response_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (responseCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult) response_); + } + if (responseCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal) + response_); + } + if (responseCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse) response_); + } + if (responseCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) + response_); + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) obj; + + if (!getResponseCase().equals(other.getResponseCase())) return false; + switch (responseCase_) { + case 1: + if (!getRecognitionResult().equals(other.getRecognitionResult())) return false; + break; + case 2: + if (!getBargeInSignal().equals(other.getBargeInSignal())) return false; + break; + case 3: + if (!getAnalyzeContentResponse().equals(other.getAnalyzeContentResponse())) return false; + break; + case 4: + if (!getTurnComplete().equals(other.getTurnComplete())) 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(); + switch (responseCase_) { + case 1: + hash = (37 * hash) + RECOGNITION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getRecognitionResult().hashCode(); + break; + case 2: + hash = (37 * hash) + BARGE_IN_SIGNAL_FIELD_NUMBER; + hash = (53 * hash) + getBargeInSignal().hashCode(); + break; + case 3: + hash = (37 * hash) + ANALYZE_CONTENT_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getAnalyzeContentResponse().hashCode(); + break; + case 4: + hash = (37 * hash) + TURN_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getTurnComplete().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * The response message for
                                          +   * [Participants.BidiStreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.BidiStreamingAnalyzeContent].
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (recognitionResultBuilder_ != null) { + recognitionResultBuilder_.clear(); + } + if (bargeInSignalBuilder_ != null) { + bargeInSignalBuilder_.clear(); + } + if (analyzeContentResponseBuilder_ != null) { + analyzeContentResponseBuilder_.clear(); + } + if (turnCompleteBuilder_ != null) { + turnCompleteBuilder_.clear(); + } + responseCase_ = 0; + response_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse result) { + result.responseCase_ = responseCase_; + result.response_ = this.response_; + if (responseCase_ == 1 && recognitionResultBuilder_ != null) { + result.response_ = recognitionResultBuilder_.build(); + } + if (responseCase_ == 2 && bargeInSignalBuilder_ != null) { + result.response_ = bargeInSignalBuilder_.build(); + } + if (responseCase_ == 3 && analyzeContentResponseBuilder_ != null) { + result.response_ = analyzeContentResponseBuilder_.build(); + } + if (responseCase_ == 4 && turnCompleteBuilder_ != null) { + result.response_ = turnCompleteBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .getDefaultInstance()) return this; + switch (other.getResponseCase()) { + case RECOGNITION_RESULT: + { + mergeRecognitionResult(other.getRecognitionResult()); + break; + } + case BARGE_IN_SIGNAL: + { + mergeBargeInSignal(other.getBargeInSignal()); + break; + } + case ANALYZE_CONTENT_RESPONSE: + { + mergeAnalyzeContentResponse(other.getAnalyzeContentResponse()); + break; + } + case TURN_COMPLETE: + { + mergeTurnComplete(other.getTurnComplete()); + break; + } + case RESPONSE_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: + { + input.readMessage( + getRecognitionResultFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getBargeInSignalFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getAnalyzeContentResponseFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getTurnCompleteFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 4; + break; + } // case 34 + 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 responseCase_ = 0; + private java.lang.Object response_; + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); + } + + public Builder clearResponse() { + responseCase_ = 0; + response_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult, + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.Builder, + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResultOrBuilder> + recognitionResultBuilder_; + + /** + * + * + *
                                          +     * The result of speech recognition.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + * + * @return Whether the recognitionResult field is set. + */ + @java.lang.Override + public boolean hasRecognitionResult() { + return responseCase_ == 1; + } + + /** + * + * + *
                                          +     * The result of speech recognition.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + * + * @return The recognitionResult. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult getRecognitionResult() { + if (recognitionResultBuilder_ == null) { + if (responseCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult) response_; + } + return com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.getDefaultInstance(); + } else { + if (responseCase_ == 1) { + return recognitionResultBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * The result of speech recognition.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + */ + public Builder setRecognitionResult( + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult value) { + if (recognitionResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + recognitionResultBuilder_.setMessage(value); + } + responseCase_ = 1; + return this; + } + + /** + * + * + *
                                          +     * The result of speech recognition.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + */ + public Builder setRecognitionResult( + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.Builder builderForValue) { + if (recognitionResultBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + recognitionResultBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 1; + return this; + } + + /** + * + * + *
                                          +     * The result of speech recognition.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + */ + public Builder mergeRecognitionResult( + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult value) { + if (recognitionResultBuilder_ == null) { + if (responseCase_ == 1 + && response_ + != com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult + .getDefaultInstance()) { + response_ = + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.newBuilder( + (com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult) response_) + .mergeFrom(value) + .buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 1) { + recognitionResultBuilder_.mergeFrom(value); + } else { + recognitionResultBuilder_.setMessage(value); + } + } + responseCase_ = 1; + return this; + } + + /** + * + * + *
                                          +     * The result of speech recognition.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + */ + public Builder clearRecognitionResult() { + if (recognitionResultBuilder_ == null) { + if (responseCase_ == 1) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 1) { + responseCase_ = 0; + response_ = null; + } + recognitionResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * The result of speech recognition.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.Builder + getRecognitionResultBuilder() { + return getRecognitionResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * The result of speech recognition.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResultOrBuilder + getRecognitionResultOrBuilder() { + if ((responseCase_ == 1) && (recognitionResultBuilder_ != null)) { + return recognitionResultBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult) response_; + } + return com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * The result of speech recognition.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult, + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.Builder, + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResultOrBuilder> + getRecognitionResultFieldBuilder() { + if (recognitionResultBuilder_ == null) { + if (!(responseCase_ == 1)) { + response_ = + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.getDefaultInstance(); + } + recognitionResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult, + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.Builder, + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResultOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 1; + onChanged(); + return recognitionResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignalOrBuilder> + bargeInSignalBuilder_; + + /** + * + * + *
                                          +     *
                                          +     * Indicate the user barge-in has been detected, and client should stop
                                          +     * playing back the audio.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + * + * @return Whether the bargeInSignal field is set. + */ + @java.lang.Override + public boolean hasBargeInSignal() { + return responseCase_ == 2; + } + + /** + * + * + *
                                          +     *
                                          +     * Indicate the user barge-in has been detected, and client should stop
                                          +     * playing back the audio.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + * + * @return The bargeInSignal. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + getBargeInSignal() { + if (bargeInSignalBuilder_ == null) { + if (responseCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .getDefaultInstance(); + } else { + if (responseCase_ == 2) { + return bargeInSignalBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     *
                                          +     * Indicate the user barge-in has been detected, and client should stop
                                          +     * playing back the audio.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + */ + public Builder setBargeInSignal( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + value) { + if (bargeInSignalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + bargeInSignalBuilder_.setMessage(value); + } + responseCase_ = 2; + return this; + } + + /** + * + * + *
                                          +     *
                                          +     * Indicate the user barge-in has been detected, and client should stop
                                          +     * playing back the audio.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + */ + public Builder setBargeInSignal( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .Builder + builderForValue) { + if (bargeInSignalBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + bargeInSignalBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 2; + return this; + } + + /** + * + * + *
                                          +     *
                                          +     * Indicate the user barge-in has been detected, and client should stop
                                          +     * playing back the audio.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + */ + public Builder mergeBargeInSignal( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + value) { + if (bargeInSignalBuilder_ == null) { + if (responseCase_ == 2 + && response_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal.getDefaultInstance()) { + response_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal) + response_) + .mergeFrom(value) + .buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 2) { + bargeInSignalBuilder_.mergeFrom(value); + } else { + bargeInSignalBuilder_.setMessage(value); + } + } + responseCase_ = 2; + return this; + } + + /** + * + * + *
                                          +     *
                                          +     * Indicate the user barge-in has been detected, and client should stop
                                          +     * playing back the audio.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + */ + public Builder clearBargeInSignal() { + if (bargeInSignalBuilder_ == null) { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + } + bargeInSignalBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     *
                                          +     * Indicate the user barge-in has been detected, and client should stop
                                          +     * playing back the audio.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .Builder + getBargeInSignalBuilder() { + return getBargeInSignalFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     *
                                          +     * Indicate the user barge-in has been detected, and client should stop
                                          +     * playing back the audio.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignalOrBuilder + getBargeInSignalOrBuilder() { + if ((responseCase_ == 2) && (bargeInSignalBuilder_ != null)) { + return bargeInSignalBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     *
                                          +     * Indicate the user barge-in has been detected, and client should stop
                                          +     * playing back the audio.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignalOrBuilder> + getBargeInSignalFieldBuilder() { + if (bargeInSignalBuilder_ == null) { + if (!(responseCase_ == 2)) { + response_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + .getDefaultInstance(); + } + bargeInSignalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignalOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .BargeInSignal) + response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 2; + onChanged(); + return bargeInSignalBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse, + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.Builder, + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponseOrBuilder> + analyzeContentResponseBuilder_; + + /** + * + * + *
                                          +     * The agent response from analyze content.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + * + * @return Whether the analyzeContentResponse field is set. + */ + @java.lang.Override + public boolean hasAnalyzeContentResponse() { + return responseCase_ == 3; + } + + /** + * + * + *
                                          +     * The agent response from analyze content.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + * + * @return The analyzeContentResponse. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse getAnalyzeContentResponse() { + if (analyzeContentResponseBuilder_ == null) { + if (responseCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse) response_; + } + return com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.getDefaultInstance(); + } else { + if (responseCase_ == 3) { + return analyzeContentResponseBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * The agent response from analyze content.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + */ + public Builder setAnalyzeContentResponse( + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse value) { + if (analyzeContentResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + analyzeContentResponseBuilder_.setMessage(value); + } + responseCase_ = 3; + return this; + } + + /** + * + * + *
                                          +     * The agent response from analyze content.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + */ + public Builder setAnalyzeContentResponse( + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.Builder builderForValue) { + if (analyzeContentResponseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + analyzeContentResponseBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 3; + return this; + } + + /** + * + * + *
                                          +     * The agent response from analyze content.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + */ + public Builder mergeAnalyzeContentResponse( + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse value) { + if (analyzeContentResponseBuilder_ == null) { + if (responseCase_ == 3 + && response_ + != com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse + .getDefaultInstance()) { + response_ = + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.newBuilder( + (com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse) response_) + .mergeFrom(value) + .buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 3) { + analyzeContentResponseBuilder_.mergeFrom(value); + } else { + analyzeContentResponseBuilder_.setMessage(value); + } + } + responseCase_ = 3; + return this; + } + + /** + * + * + *
                                          +     * The agent response from analyze content.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + */ + public Builder clearAnalyzeContentResponse() { + if (analyzeContentResponseBuilder_ == null) { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + } + analyzeContentResponseBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * The agent response from analyze content.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.Builder + getAnalyzeContentResponseBuilder() { + return getAnalyzeContentResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * The agent response from analyze content.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponseOrBuilder + getAnalyzeContentResponseOrBuilder() { + if ((responseCase_ == 3) && (analyzeContentResponseBuilder_ != null)) { + return analyzeContentResponseBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse) response_; + } + return com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * The agent response from analyze content.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse, + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.Builder, + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponseOrBuilder> + getAnalyzeContentResponseFieldBuilder() { + if (analyzeContentResponseBuilder_ == null) { + if (!(responseCase_ == 3)) { + response_ = + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.getDefaultInstance(); + } + analyzeContentResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse, + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.Builder, + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponseOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse) response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 3; + onChanged(); + return analyzeContentResponseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnCompleteOrBuilder> + turnCompleteBuilder_; + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + * + * @return Whether the turnComplete field is set. + */ + @java.lang.Override + public boolean hasTurnComplete() { + return responseCase_ == 4; + } + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + * + * @return The turnComplete. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + getTurnComplete() { + if (turnCompleteBuilder_ == null) { + if (responseCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .getDefaultInstance(); + } else { + if (responseCase_ == 4) { + return turnCompleteBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + */ + public Builder setTurnComplete( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + value) { + if (turnCompleteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + turnCompleteBuilder_.setMessage(value); + } + responseCase_ = 4; + return this; + } + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + */ + public Builder setTurnComplete( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete.Builder + builderForValue) { + if (turnCompleteBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + turnCompleteBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 4; + return this; + } + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + */ + public Builder mergeTurnComplete( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + value) { + if (turnCompleteBuilder_ == null) { + if (responseCase_ == 4 + && response_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete.getDefaultInstance()) { + response_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete) + response_) + .mergeFrom(value) + .buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 4) { + turnCompleteBuilder_.mergeFrom(value); + } else { + turnCompleteBuilder_.setMessage(value); + } + } + responseCase_ = 4; + return this; + } + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + */ + public Builder clearTurnComplete() { + if (turnCompleteBuilder_ == null) { + if (responseCase_ == 4) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 4) { + responseCase_ = 0; + response_ = null; + } + turnCompleteBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .Builder + getTurnCompleteBuilder() { + return getTurnCompleteFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnCompleteOrBuilder + getTurnCompleteOrBuilder() { + if ((responseCase_ == 4) && (turnCompleteBuilder_ != null)) { + return turnCompleteBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Indicate that the turn is complete.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnCompleteOrBuilder> + getTurnCompleteFieldBuilder() { + if (turnCompleteBuilder_ == null) { + if (!(responseCase_ == 4)) { + response_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .getDefaultInstance(); + } + turnCompleteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnCompleteOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .TurnComplete) + response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 4; + onChanged(); + return turnCompleteBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BidiStreamingAnalyzeContentResponse 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java new file mode 100644 index 000000000000..6642535a7308 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java @@ -0,0 +1,207 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/participant.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface BidiStreamingAnalyzeContentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * The result of speech recognition.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + * + * @return Whether the recognitionResult field is set. + */ + boolean hasRecognitionResult(); + + /** + * + * + *
                                          +   * The result of speech recognition.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + * + * @return The recognitionResult. + */ + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult getRecognitionResult(); + + /** + * + * + *
                                          +   * The result of speech recognition.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResultOrBuilder + getRecognitionResultOrBuilder(); + + /** + * + * + *
                                          +   *
                                          +   * Indicate the user barge-in has been detected, and client should stop
                                          +   * playing back the audio.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + * + * @return Whether the bargeInSignal field is set. + */ + boolean hasBargeInSignal(); + + /** + * + * + *
                                          +   *
                                          +   * Indicate the user barge-in has been detected, and client should stop
                                          +   * playing back the audio.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + * + * @return The bargeInSignal. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal + getBargeInSignal(); + + /** + * + * + *
                                          +   *
                                          +   * Indicate the user barge-in has been detected, and client should stop
                                          +   * playing back the audio.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignal barge_in_signal = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignalOrBuilder + getBargeInSignalOrBuilder(); + + /** + * + * + *
                                          +   * The agent response from analyze content.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + * + * @return Whether the analyzeContentResponse field is set. + */ + boolean hasAnalyzeContentResponse(); + + /** + * + * + *
                                          +   * The agent response from analyze content.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + * + * @return The analyzeContentResponse. + */ + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse getAnalyzeContentResponse(); + + /** + * + * + *
                                          +   * The agent response from analyze content.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyze_content_response = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponseOrBuilder + getAnalyzeContentResponseOrBuilder(); + + /** + * + * + *
                                          +   * Indicate that the turn is complete.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + * + * @return Whether the turnComplete field is set. + */ + boolean hasTurnComplete(); + + /** + * + * + *
                                          +   * Indicate that the turn is complete.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + * + * @return The turnComplete. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete + getTurnComplete(); + + /** + * + * + *
                                          +   * Indicate that the turn is complete.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete turn_complete = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnCompleteOrBuilder + getTurnCompleteOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ResponseCase + getResponseCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java index ca36378748c1..5ef2d942a898 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java @@ -446,8 +446,9 @@ public interface TelephonyConnectionInfoOrBuilder * * *
                                          -     * Optional. SDP of the call. It's initially the SDP answer to the endpoint,
                                          -     * but maybe later updated for the purpose of making the link active, etc.
                                          +     * Optional. SDP of the call. It's initially the SDP answer to the incoming
                                          +     * call, but maybe later updated for the purpose of making the link active,
                                          +     * etc.
                                                * 
                                          * * string sdp = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -460,8 +461,9 @@ public interface TelephonyConnectionInfoOrBuilder * * *
                                          -     * Optional. SDP of the call. It's initially the SDP answer to the endpoint,
                                          -     * but maybe later updated for the purpose of making the link active, etc.
                                          +     * Optional. SDP of the call. It's initially the SDP answer to the incoming
                                          +     * call, but maybe later updated for the purpose of making the link active,
                                          +     * etc.
                                                * 
                                          * * string sdp = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2475,8 +2477,9 @@ public com.google.protobuf.ByteString getDialedNumberBytes() { * * *
                                          -     * Optional. SDP of the call. It's initially the SDP answer to the endpoint,
                                          -     * but maybe later updated for the purpose of making the link active, etc.
                                          +     * Optional. SDP of the call. It's initially the SDP answer to the incoming
                                          +     * call, but maybe later updated for the purpose of making the link active,
                                          +     * etc.
                                                * 
                                          * * string sdp = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2500,8 +2503,9 @@ public java.lang.String getSdp() { * * *
                                          -     * Optional. SDP of the call. It's initially the SDP answer to the endpoint,
                                          -     * but maybe later updated for the purpose of making the link active, etc.
                                          +     * Optional. SDP of the call. It's initially the SDP answer to the incoming
                                          +     * call, but maybe later updated for the purpose of making the link active,
                                          +     * etc.
                                                * 
                                          * * string sdp = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -3368,8 +3372,9 @@ public Builder setDialedNumberBytes(com.google.protobuf.ByteString value) { * * *
                                          -       * Optional. SDP of the call. It's initially the SDP answer to the endpoint,
                                          -       * but maybe later updated for the purpose of making the link active, etc.
                                          +       * Optional. SDP of the call. It's initially the SDP answer to the incoming
                                          +       * call, but maybe later updated for the purpose of making the link active,
                                          +       * etc.
                                                  * 
                                          * * string sdp = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -3392,8 +3397,9 @@ public java.lang.String getSdp() { * * *
                                          -       * Optional. SDP of the call. It's initially the SDP answer to the endpoint,
                                          -       * but maybe later updated for the purpose of making the link active, etc.
                                          +       * Optional. SDP of the call. It's initially the SDP answer to the incoming
                                          +       * call, but maybe later updated for the purpose of making the link active,
                                          +       * etc.
                                                  * 
                                          * * string sdp = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -3416,8 +3422,9 @@ public com.google.protobuf.ByteString getSdpBytes() { * * *
                                          -       * Optional. SDP of the call. It's initially the SDP answer to the endpoint,
                                          -       * but maybe later updated for the purpose of making the link active, etc.
                                          +       * Optional. SDP of the call. It's initially the SDP answer to the incoming
                                          +       * call, but maybe later updated for the purpose of making the link active,
                                          +       * etc.
                                                  * 
                                          * * string sdp = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -3439,8 +3446,9 @@ public Builder setSdp(java.lang.String value) { * * *
                                          -       * Optional. SDP of the call. It's initially the SDP answer to the endpoint,
                                          -       * but maybe later updated for the purpose of making the link active, etc.
                                          +       * Optional. SDP of the call. It's initially the SDP answer to the incoming
                                          +       * call, but maybe later updated for the purpose of making the link active,
                                          +       * etc.
                                                  * 
                                          * * string sdp = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -3458,8 +3466,9 @@ public Builder clearSdp() { * * *
                                          -       * Optional. SDP of the call. It's initially the SDP answer to the endpoint,
                                          -       * but maybe later updated for the purpose of making the link active, etc.
                                          +       * Optional. SDP of the call. It's initially the SDP answer to the incoming
                                          +       * call, but maybe later updated for the purpose of making the link active,
                                          +       * etc.
                                                  * 
                                          * * string sdp = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -4951,6 +4960,38 @@ public interface ContextContentOrBuilder * */ com.google.protobuf.TimestampOrBuilder getIngestionTimeOrBuilder(); + + /** + * + * + *
                                          +       * If the context content was generated from a tool call, specify the
                                          +       * answer record associated with the tool call.
                                          +       * Format: `projects/<Project ID>/locations/<Location
                                          +       * ID>/answerRecords/<Answer Record ID>`.
                                          +       * 
                                          + * + * string answer_record = 4; + * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); + + /** + * + * + *
                                          +       * If the context content was generated from a tool call, specify the
                                          +       * answer record associated with the tool call.
                                          +       * Format: `projects/<Project ID>/locations/<Location
                                          +       * ID>/answerRecords/<Answer Record ID>`.
                                          +       * 
                                          + * + * string answer_record = 4; + * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); } /** @@ -4977,6 +5018,7 @@ private ContextContent(com.google.protobuf.GeneratedMessageV3.Builder builder private ContextContent() { content_ = ""; contentFormat_ = 0; + answerRecord_ = ""; } @java.lang.Override @@ -5334,6 +5376,65 @@ public com.google.protobuf.TimestampOrBuilder getIngestionTimeOrBuilder() { : ingestionTime_; } + public static final int ANSWER_RECORD_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + + /** + * + * + *
                                          +       * If the context content was generated from a tool call, specify the
                                          +       * answer record associated with the tool call.
                                          +       * Format: `projects/<Project ID>/locations/<Location
                                          +       * ID>/answerRecords/<Answer Record ID>`.
                                          +       * 
                                          + * + * string answer_record = 4; + * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + 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(); + answerRecord_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * If the context content was generated from a tool call, specify the
                                          +       * answer record associated with the tool call.
                                          +       * Format: `projects/<Project ID>/locations/<Location
                                          +       * ID>/answerRecords/<Answer Record ID>`.
                                          +       * 
                                          + * + * string answer_record = 4; + * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5360,6 +5461,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getIngestionTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, answerRecord_); + } getUnknownFields().writeTo(output); } @@ -5381,6 +5485,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIngestionTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, answerRecord_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5405,6 +5512,7 @@ public boolean equals(final java.lang.Object obj) { if (hasIngestionTime()) { if (!getIngestionTime().equals(other.getIngestionTime())) return false; } + if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5424,6 +5532,8 @@ public int hashCode() { hash = (37 * hash) + INGESTION_TIME_FIELD_NUMBER; hash = (53 * hash) + getIngestionTime().hashCode(); } + hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5597,6 +5707,7 @@ public Builder clear() { ingestionTimeBuilder_.dispose(); ingestionTimeBuilder_ = null; } + answerRecord_ = ""; return this; } @@ -5653,6 +5764,9 @@ private void buildPartial0( ingestionTimeBuilder_ == null ? ingestionTime_ : ingestionTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.answerRecord_ = answerRecord_; + } result.bitField0_ |= to_bitField0_; } @@ -5722,6 +5836,11 @@ public Builder mergeFrom( if (other.hasIngestionTime()) { mergeIngestionTime(other.getIngestionTime()); } + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5767,6 +5886,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6234,6 +6359,132 @@ public com.google.protobuf.TimestampOrBuilder getIngestionTimeOrBuilder() { return ingestionTimeBuilder_; } + private java.lang.Object answerRecord_ = ""; + + /** + * + * + *
                                          +         * If the context content was generated from a tool call, specify the
                                          +         * answer record associated with the tool call.
                                          +         * Format: `projects/<Project ID>/locations/<Location
                                          +         * ID>/answerRecords/<Answer Record ID>`.
                                          +         * 
                                          + * + * string answer_record = 4; + * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * If the context content was generated from a tool call, specify the
                                          +         * answer record associated with the tool call.
                                          +         * Format: `projects/<Project ID>/locations/<Location
                                          +         * ID>/answerRecords/<Answer Record ID>`.
                                          +         * 
                                          + * + * string answer_record = 4; + * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * If the context content was generated from a tool call, specify the
                                          +         * answer record associated with the tool call.
                                          +         * Format: `projects/<Project ID>/locations/<Location
                                          +         * ID>/answerRecords/<Answer Record ID>`.
                                          +         * 
                                          + * + * string answer_record = 4; + * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * If the context content was generated from a tool call, specify the
                                          +         * answer record associated with the tool call.
                                          +         * Format: `projects/<Project ID>/locations/<Location
                                          +         * ID>/answerRecords/<Answer Record ID>`.
                                          +         * 
                                          + * + * string answer_record = 4; + * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * If the context content was generated from a tool call, specify the
                                          +         * answer record associated with the tool call.
                                          +         * Format: `projects/<Project ID>/locations/<Location
                                          +         * ID>/answerRecords/<Answer Record ID>`.
                                          +         * 
                                          + * + * string answer_record = 4; + * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEvent.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEvent.java index 4cf114c94ff2..f5b1eddbd7b3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEvent.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEvent.java @@ -103,6 +103,8 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { *
                                                * An existing conversation has closed. This is fired when a telephone call
                                                * is terminated, or a conversation is closed via the API.
                                          +     * The event is fired for every CompleteConversation call, even if the
                                          +     * conversation is already closed.
                                                * 
                                          * * CONVERSATION_FINISHED = 2; @@ -195,6 +197,8 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { *
                                                * An existing conversation has closed. This is fired when a telephone call
                                                * is terminated, or a conversation is closed via the API.
                                          +     * The event is fired for every CompleteConversation call, even if the
                                          +     * conversation is already closed.
                                                * 
                                          * * CONVERSATION_FINISHED = 2; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEventProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEventProto.java index 961bded80b57..156b6928cb39 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEventProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEventProto.java @@ -43,33 +43,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n8google/cloud/dialogflow/v2beta1/conver" + "sation_event.proto\022\037google.cloud.dialogf" - + "low.v2beta1\0321google/cloud/dialogflow/v2b" - + "eta1/participant.proto\032-google/cloud/dia" - + "logflow/v2beta1/session.proto\032\027google/rp" - + "c/status.proto\"\216\004\n\021ConversationEvent\022\024\n\014" - + "conversation\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.googl" - + "e.cloud.dialogflow.v2beta1.ConversationE" - + "vent.Type\022(\n\014error_status\030\003 \001(\0132\022.google" - + ".rpc.Status\022G\n\023new_message_payload\030\004 \001(\013" - + "2(.google.cloud.dialogflow.v2beta1.Messa" - + "geH\000\022e\n\036new_recognition_result_payload\030\005" - + " \001(\0132;.google.cloud.dialogflow.v2beta1.S" - + "treamingRecognitionResultH\000\"\266\001\n\004Type\022\024\n\020" - + "TYPE_UNSPECIFIED\020\000\022\030\n\024CONVERSATION_START" - + "ED\020\001\022\031\n\025CONVERSATION_FINISHED\020\002\022\035\n\031HUMAN" - + "_INTERVENTION_NEEDED\020\003\022\017\n\013NEW_MESSAGE\020\005\022" - + "\032\n\026NEW_RECOGNITION_RESULT\020\007\022\027\n\023UNRECOVER" - + "ABLE_ERROR\020\004B\t\n\007payloadB\253\001\n#com.google.c" - + "loud.dialogflow.v2beta1B\026ConversationEve" - + "ntProtoP\001ZCcloud.google.com/go/dialogflo" - + "w/apiv2beta1/dialogflowpb;dialogflowpb\242\002" - + "\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006p" - + "roto3" + + "low.v2beta1\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\0321google/" + + "cloud/dialogflow/v2beta1/participant.pro" + + "to\032-google/cloud/dialogflow/v2beta1/sess" + + "ion.proto\032\027google/rpc/status.proto\"\216\004\n\021C" + + "onversationEvent\022\024\n\014conversation\030\001 \001(\t\022E" + + "\n\004type\030\002 \001(\01627.google.cloud.dialogflow.v" + + "2beta1.ConversationEvent.Type\022(\n\014error_s" + + "tatus\030\003 \001(\0132\022.google.rpc.Status\022G\n\023new_m" + + "essage_payload\030\004 \001(\0132(.google.cloud.dial" + + "ogflow.v2beta1.MessageH\000\022e\n\036new_recognit" + + "ion_result_payload\030\005 \001(\0132;.google.cloud." + + "dialogflow.v2beta1.StreamingRecognitionR" + + "esultH\000\"\266\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\030" + + "\n\024CONVERSATION_STARTED\020\001\022\031\n\025CONVERSATION" + + "_FINISHED\020\002\022\035\n\031HUMAN_INTERVENTION_NEEDED" + + "\020\003\022\017\n\013NEW_MESSAGE\020\005\022\032\n\026NEW_RECOGNITION_R" + + "ESULT\020\007\022\027\n\023UNRECOVERABLE_ERROR\020\004B\t\n\007payl" + + "oadB\253\001\n#com.google.cloud.dialogflow.v2be" + + "ta1B\026ConversationEventProtoP\001ZCcloud.goo" + + "gle.com/go/dialogflow/apiv2beta1/dialogf" + + "lowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.D" + + "ialogflow.V2Beta1b\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.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.SessionProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -87,6 +90,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NewRecognitionResultPayload", "Payload", }); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.SessionProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java index fc56c79a81e2..d6420af0ed43 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java @@ -166,60 +166,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gflow.v2beta1\032\034google/api/annotations.pr" + "oto\032\027google/api/client.proto\032\037google/api" + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\0322google/cloud/dialogflow/v2beta1/audio_config.proto\0321google/cloud/dialo" - + "gflow/v2beta1/participant.proto\032#google/" - + "longrunning/operations.proto\032\036google/pro" - + "tobuf/duration.proto\032\033google/protobuf/empty.proto\032" + + "ce.proto\0322google/cloud/dialogflow/v2beta1/audio_config.proto\032/google/cloud/dialo" + + "gflow/v2beta1/generator.proto\0321google/cloud/dialogflow/v2beta1/participant.proto" + + "\032#google/longrunning/operations.proto\032\036g" + + "oogle/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\206\n\n" + "\023ConversationProfile\022\014\n" + "\004name\030\001 \001(\t\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" + "\013create_time\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" - + "\026automated_agent_config\030\003 \001(" - + "\01325.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig\022`\n" - + "\034human_agent_assistant_config\030\004" - + " \001(\0132:.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig\022\\\n" - + "\032human_agent_handoff_config\030\005 \001(\01328.google." - + "cloud.dialogflow.v2beta1.HumanAgentHandoffConfig\022P\n" - + "\023notification_config\030\006 \001(\01323." - + "google.cloud.dialogflow.v2beta1.NotificationConfig\022F\n" - + "\016logging_config\030\007 \001(\0132..goo" - + "gle.cloud.dialogflow.v2beta1.LoggingConfig\022b\n" + + "\026automated_agent_config\030\003" + + " \001(\01325.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig\022`\n" + + "\034human_agent_assistant_config\030\004 \001(\0132:.google.cloud.d" + + "ialogflow.v2beta1.HumanAgentAssistantConfig\022\\\n" + + "\032human_agent_handoff_config\030\005 \001(\0132" + + "8.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig\022P\n" + + "\023notification_config\030\006" + + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022F\n" + + "\016logging_config\030\007 " + + "\001(\0132..google.cloud.dialogflow.v2beta1.LoggingConfig\022b\n" + "%new_message_event_notification_config\030\010" + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022l\n" - + "*new_recognition_result_notification_config\030\025 \001(\01323.goo" - + "gle.cloud.dialogflow.v2beta1.NotificationConfigB\003\340A\001\022G\n\n" - + "stt_config\030\t \001(\01323.googl" - + "e.cloud.dialogflow.v2beta1.SpeechToTextConfig\022\025\n\r" + + "*new_recognition_result_notification_config\030\025 " + + "\001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfigB\003\340A\001\022G\n\n" + + "stt_config\030\t \001(" + + "\01323.google.cloud.dialogflow.v2beta1.SpeechToTextConfig\022\025\n\r" + "language_code\030\n" + " \001(\t\022\021\n" + "\ttime_zone\030\016 \001(\t\022L\n" + "\021security_settings\030\r" + " \001(\tB1\372A.\n" + ",dialogflow.googleapis.com/CXSecuritySettings\022K\n\n" - + "tts_config\030\022 \001(\01327.google.cloud" - + ".dialogflow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001\n" - + "-dialogflow.googleapis.com/ConversationProfile\022>projects/{project}/con" - + "versationProfiles/{conversation_profile}\022Sprojects/{project}/locations/{location" - + "}/conversationProfiles/{conversation_profile}\"\203\001\n" + + "tts_config\030\022 \001(\01327.goo" + + "gle.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001\n" + + "-dialogflow.googleapis.com/ConversationProfile\022>projects/{pro" + + "ject}/conversationProfiles/{conversation_profile}\022Sprojects/{project}/locations/" + + "{location}/conversationProfiles/{conversation_profile}\"\203\001\n" + "\024AutomatedAgentConfig\0226\n" + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037dialogflow.googleapis.com/Agent\0223\n" + "\013session_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\246\034\n" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\234\036\n" + "\031HumanAgentAssistantConfig\022P\n" - + "\023notification_config\030\002 \001(\01323" - + ".google.cloud.dialogflow.v2beta1.NotificationConfig\022r\n" - + "\035human_agent_suggestion_config\030\003 \001(\0132K.google.cloud.dialogflow.v2b" - + "eta1.HumanAgentAssistantConfig.SuggestionConfig\022o\n" - + "\032end_user_suggestion_config\030\004 \001(\0132K.google.cloud.dialogflow.v2beta1.Hu" - + "manAgentAssistantConfig.SuggestionConfig\022q\n" - + "\027message_analysis_config\030\005 \001(\0132P.goog" - + "le.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.MessageAnalysisConfig\032I\n" + + "\023notification_config\030\002" + + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022r\n" + + "\035human_agent_suggestion_config\030\003 \001(\0132K.google.cloud.dialo" + + "gflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig\022o\n" + + "\032end_user_suggestion_config\030\004 \001(\0132K.google.cloud.dialogflow.v" + + "2beta1.HumanAgentAssistantConfig.SuggestionConfig\022q\n" + + "\027message_analysis_config\030\005 \001(\0132P.google.cloud.dialogflow.v2beta1.Hum" + + "anAgentAssistantConfig.MessageAnalysisConfig\032I\n" + "\031SuggestionTriggerSettings\022\025\n\r" + "no_small_talk\030\001 \001(\010\022\025\n\r" - + "only_end_user\030\002 \001(\010\032\241\006\n" + + "only_end_user\030\002 \001(\010\032\223\007\n" + "\027SuggestionFeatureConfig\022N\n" + "\022suggestion_feature\030\005" + " \001(\01322.google.cloud.dialogflow.v2beta1.SuggestionFeature\022%\n" @@ -227,40 +227,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033disable_agent_query_logging\030\016 \001(\010B\003\340A\001\0223\n" + "&enable_query_suggestion_when_no_answer\030\017 \001(\010B\003\340A\001\0220\n" + "#enable_conversation_augmented_query\030\020 \001(\010B\003\340A\001\022)\n" - + "\034enable_query_suggestion_only\030\021 \001(\010B\003\340A\001\022y\n" + + "\034enable_query_suggestion_only\030\021 \001(\010B\003\340A\001\022\'\n" + + "\032enable_response_debug_info\030\022 \001(\010B\003\340A\001\022G\n" + + "\014rai_settings\030\023 \001(\0132,." + + "google.cloud.dialogflow.v2beta1.RaiSettingsB\003\340A\001\022y\n" + "\033suggestion_trigger_settings\030\n" - + " \001(\0132T.google.cloud.dialogflow.v2beta1.Hum" - + "anAgentAssistantConfig.SuggestionTriggerSettings\022f\n" - + "\014query_config\030\006 \001(\0132P.google." - + "cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig\022u\n" - + "\031conversation_model_config\030\007 \001(\0132R.google.clo" - + "ud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig\022y\n" - + "\033conversation_process_config\030\010 \001(\0132T.google.cl" - + "oud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig\032\236\002\n" + + " \001(\0132T.google.cloud.dialogflow.v2beta1." + + "HumanAgentAssistantConfig.SuggestionTriggerSettings\022f\n" + + "\014query_config\030\006 \001(\0132P.goog" + + "le.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig\022u\n" + + "\031conversation_model_config\030\007 \001(\0132R.google." + + "cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig\022y\n" + + "\033conversation_process_config\030\010 \001(\0132T.google" + + ".cloud.dialogflow.v2beta1.HumanAgentAssi" + + "stantConfig.ConversationProcessConfig\032\242\003\n" + "\020SuggestionConfig\022k\n" - + "\017feature_configs\030\002 \003(\0132R.google.cloud.dialogflow.v2beta1.Human" - + "AgentAssistantConfig.SuggestionFeatureConfig\022\"\n" + + "\017feature_configs\030\002 \003(\0132R.google.cloud.dialogflow.v2beta1.Hu" + + "manAgentAssistantConfig.SuggestionFeatureConfig\022\"\n" + "\032group_suggestion_responses\030\003 \001(\010\022?\n\n" + "generators\030\004 \003(\tB+\340A\001\372A%\n" + "#dialogflow.googleapis.com/Generator\0228\n" - + "+disable_high_latency_features_sync_delivery\030\005" - + " \001(\010B\003\340A\001\032\267\r\n" + + "+disable_high_latency_features_sync_delivery\030\005 \001(\010B\003\340A\001\022.\n" + + "!skip_empty_event_based_suggestion\030\006 \001(\010B\003\340A\001\022-\n" + + " use_unredacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" + + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\267\r\n" + "\025SuggestionQueryConfig\022\220\001\n" - + "\033knowledge_base_query_source\030\001 \001(\0132i.google.clo" - + "ud.dialogflow.v2beta1.HumanAgentAssistan" - + "tConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\000\022\205\001\n" - + "\025document_query_source\030\002 \001(\0132d.google.cloud.dialogflow.v2bet" - + "a1.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceH\000\022\211\001\n" - + "\027dialogflow_query_source\030\003 \001(\0132f.google.clou" - + "d.dialogflow.v2beta1.HumanAgentAssistant" - + "Config.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" + + "\033knowledge_base_query_source\030\001 \001" + + "(\0132i.google.cloud.dialogflow.v2beta1.Hum" + + "anAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\000\022\205\001\n" + + "\025document_query_source\030\002 \001(\0132d.google.cloud.d" + + "ialogflow.v2beta1.HumanAgentAssistantCon" + + "fig.SuggestionQueryConfig.DocumentQuerySourceH\000\022\211\001\n" + + "\027dialogflow_query_source\030\003 \001(\0132f.google.cloud.dialogflow.v2beta1.Huma" + + "nAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" + "\013max_results\030\004 \001(\005\022\034\n" + "\024confidence_threshold\030\005 \001(\002\022\207\001\n" - + "\027context_filter_settings\030\007 \001(\0132f.google.cloud.dialogf" - + "low.v2beta1.HumanAgentAssistantConfig.Su" - + "ggestionQueryConfig.ContextFilterSettings\022p\n" - + "\010sections\030\010 \001(\0132Y.google.cloud.dialo" - + "gflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" + + "\027context_filter_settings\030\007 \001(\0132f.googl" + + "e.cloud.dialogflow.v2beta1.HumanAgentAss" + + "istantConfig.SuggestionQueryConfig.ContextFilterSettings\022p\n" + + "\010sections\030\010 \001(\0132Y.google.cloud.dialogflow.v2beta1.HumanAgentA" + + "ssistantConfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" + "\014context_size\030\t \001(\005B\003\340A\001\032d\n" + "\030KnowledgeBaseQuerySource\022H\n" + "\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n" @@ -271,9 +277,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025DialogflowQuerySource\0226\n" + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037dialogflow.googleapis.com/Agent\022\234\001\n" - + "\027human_agent_side_config\030\003 \001(\0132{.google.cloud.dialogflow.v2beta1" - + ".HumanAgentAssistantConfig.SuggestionQue" - + "ryConfig.DialogflowQuerySource.HumanAgentSideConfig\032N\n" + + "\027human_agent_side_config\030\003 \001(\0132{.google.cloud.dia" + + "logflow.v2beta1.HumanAgentAssistantConfi" + + "g.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig\032N\n" + "\024HumanAgentSideConfig\0226\n" + "\005agent\030\001 \001(\tB\'\340A\001\372A!\n" + "\037dialogflow.googleapis.com/Agent\032v\n" @@ -282,8 +288,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033drop_virtual_agent_messages\030\002 \001(\010\022\031\n" + "\021drop_ivr_messages\030\003 \001(\010\032\247\002\n" + "\010Sections\022|\n\r" - + "section_types\030\001 \003(\0162e.google.cloud.dialogflow.v2beta" - + "1.HumanAgentAssistantConfig.SuggestionQueryConfig.Sections.SectionType\"\234\001\n" + + "section_types\030\001 \003(\0162e.google.cloud.di" + + "alogflow.v2beta1.HumanAgentAssistantConf" + + "ig.SuggestionQueryConfig.Sections.SectionType\"\234\001\n" + "\013SectionType\022\034\n" + "\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tSITUATION\020\001\022\n\n" @@ -303,10 +310,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030enable_entity_extraction\030\002 \001(\010\022!\n" + "\031enable_sentiment_analysis\030\003 \001(\010\"\316\003\n" + "\027HumanAgentHandoffConfig\022g\n" - + "\022live_person_config\030\001 \001(\0132I.google.cloud.dial" - + "ogflow.v2beta1.HumanAgentHandoffConfig.LivePersonConfigH\000\022z\n" - + "\034salesforce_live_agent_config\030\002 \001(\0132R.google.cloud.dialogflo" - + "w.v2beta1.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" + + "\022live_person_config\030\001 \001(\0132I.go" + + "ogle.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.LivePersonConfigH\000\022z\n" + + "\034salesforce_live_agent_config\030\002 \001(\0132R.google." + + "cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" + "\020LivePersonConfig\022\033\n" + "\016account_number\030\001 \001(\tB\003\340A\002\032\213\001\n" + "\031SalesforceLiveAgentConfig\022\034\n" @@ -317,8 +324,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "agent_service\"\304\001\n" + "\022NotificationConfig\022\r\n" + "\005topic\030\001 \001(\t\022Y\n" - + "\016message_format\030\002 \001(\0162A.google.cloud.dialogflow.v2" - + "beta1.NotificationConfig.MessageFormat\"D\n\r" + + "\016message_format\030\002 \001(\0162A.google.clou" + + "d.dialogflow.v2beta1.NotificationConfig.MessageFormat\"D\n\r" + "MessageFormat\022\036\n" + "\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" + "\005PROTO\020\001\022\010\n" @@ -326,114 +333,114 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "LoggingConfig\022\"\n" + "\032enable_stackdriver_logging\030\003 \001(\010\"\217\001\n" + "\037ListConversationProfilesRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-dialogflow.googleapis.com/ConversationProfile\022\021\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-di" + + "alogflow.googleapis.com/ConversationProfile\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\220\001\n" + " ListConversationProfilesResponse\022S\n" - + "\025conversation_profiles\030\001" - + " \003(\01324.google.cloud.dialogflow.v2beta1.ConversationProfile\022\027\n" + + "\025conversation_profiles\030\001 \003(\01324.google." + + "cloud.dialogflow.v2beta1.ConversationProfile\022\027\n" + "\017next_page_token\030\002 \001(\t\"d\n" + "\035GetConversationProfileRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-dialogflow.googleapis.com/ConversationProfile\"\302\001\n" + " CreateConversationProfileRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-dialogflow.googleapis.com/ConversationProfile\022W\n" - + "\024conversation_profile\030\002" - + " \001(\01324.google.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\"\261\001\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-dialog" + + "flow.googleapis.com/ConversationProfile\022W\n" + + "\024conversation_profile\030\002 \001(\01324.google.c" + + "loud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\"\261\001\n" + " UpdateConversationProfileRequest\022W\n" - + "\024conversation_profile\030\001 \001(\01324.google.cloud.dial" - + "ogflow.v2beta1.ConversationProfileB\003\340A\002\0224\n" + + "\024conversation_profile\030\001 \001(\01324.go" + + "ogle.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"g\n" + " DeleteConversationProfileRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-dialogflow.googleapis.com/ConversationProfile\"\224\002\n" + "!SetSuggestionFeatureConfigRequest\022!\n" + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002" - + " \001(\01621.google.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022z\n" - + "\031suggestion_feature_config\030\003 \001(\0132R.google.cl" - + "oud.dialogflow.v2beta1.HumanAgentAssista" - + "ntConfig.SuggestionFeatureConfigB\003\340A\002\"\371\001\n" + + "\020participant_role\030\002 \001(\01621.googl" + + "e.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022z\n" + + "\031suggestion_feature_config\030\003 \001(\0132R.google.cloud.dialogflow.v2beta1.Hu" + + "manAgentAssistantConfig.SuggestionFeatureConfigB\003\340A\002\"\371\001\n" + "#ClearSuggestionFeatureConfigRequest\022!\n" + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002" - + " \001(\01621.google.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001(\01627.google.clo" - + "ud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n" - + "+SetSuggestionFeatureConfigOperationMetadata\022\034\n" - + "\024conversation_profile\030\001 \001(\t\022P\n" + "\020participant_role\030\002 \001(\01621.goog" + "le.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" + "\027suggestion_feature_type\030\003 \001" - + "(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\257\002\n" - + "-ClearSuggestionFeatureConfigOperationMetadata\022\034\n" + + "(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n" + + "+SetSuggestionFeatureConfigOperationMetadata\022\034\n" + "\024conversation_profile\030\001 \001(\t\022P\n" + "\020participant_role\030\002" + " \001(\01621.google.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001(\01627.google.cl" - + "oud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + + "\027suggestion_feature_type\030\003 \001(\01627.google.cloud.dialogf" + + "low.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\257\002\n" + + "-ClearSuggestionFeatureConfigOperationMetadata\022\034\n" + + "\024conversation_profile\030\001 \001(\t\022P\n" + + "\020participant_role\030\002 \001(\01621.goo" + + "gle.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" + + "\027suggestion_feature_type\030\003 " + + "\001(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp2\263\025\n" + "\024ConversationProfiles\022\245\002\n" - + "\030ListConversationProfiles\022@.google.cloud.dialogflow.v2beta1.ListConversa" - + "tionProfilesRequest\032A.google.cloud.dialogflow.v2beta1.ListConversationProfilesRe" - + "sponse\"\203\001\332A\006parent\202\323\344\223\002t\0221/v2beta1/{pare" - + "nt=projects/*}/conversationProfilesZ?\022=/" - + "v2beta1/{parent=projects/*/locations/*}/conversationProfiles\022\222\002\n" - + "\026GetConversationProfile\022>.google.cloud.dialogflow.v2beta" - + "1.GetConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1.ConversationPr" - + "ofile\"\201\001\332A\004name\202\323\344\223\002t\0221/v2beta1/{name=pr" - + "ojects/*/conversationProfiles/*}Z?\022=/v2b" - + "eta1/{name=projects/*/locations/*/conversationProfiles/*}\022\334\002\n" - + "\031CreateConversationProfile\022A.google.cloud.dialogflow.v2beta" - + "1.CreateConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1.Conversatio" - + "nProfile\"\305\001\332A\033parent,conversation_profil" - + "e\202\323\344\223\002\240\001\"1/v2beta1/{parent=projects/*}/c" - + "onversationProfiles:\024conversation_profileZU\"=/v2beta1/{parent=projects/*/locatio" - + "ns/*}/conversationProfiles:\024conversation_profile\022\213\003\n" - + "\031UpdateConversationProfile\022A.google.cloud.dialogflow.v2beta1.UpdateC" - + "onversationProfileRequest\0324.google.cloud" - + ".dialogflow.v2beta1.ConversationProfile\"\364\001\332A" - + " conversation_profile,update_mask\202\323\344" - + "\223\002\312\0012F/v2beta1/{conversation_profile.nam" - + "e=projects/*/conversationProfiles/*}:\024conversation_profileZj2R/v2beta1/{conversa" - + "tion_profile.name=projects/*/locations/*" - + "/conversationProfiles/*}:\024conversation_profile\022\372\001\n" - + "\031DeleteConversationProfile\022A.google.cloud.dialogflow.v2beta1.DeleteCon" - + "versationProfileRequest\032\026.google.protobu" - + "f.Empty\"\201\001\332A\004name\202\323\344\223\002t*1/v2beta1/{name=" - + "projects/*/conversationProfiles/*}Z?*=/v" - + "2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\367\003\n" - + "\032SetSuggestionFeatureConfig\022B.google.cloud.dialogflow.v2b" - + "eta1.SetSuggestionFeatureConfigRequest\032\035.google.longrunning.Operation\"\365\002\312AB\n" - + "\023ConversationProfile\022+SetSuggestionFeatureCo" - + "nfigOperationMetadata\332A\024conversation_pro" - + "file\332A?conversation_profile,participant_" - + "role,suggestion_feature_config\202\323\344\223\002\320\001\"\\/" - + "v2beta1/{conversation_profile=projects/*/conversationProfiles/*}:setSuggestionFe" - + "atureConfig:\001*Zm\"h/v2beta1/{conversation_profile=projects/*/locations/*/conversa" - + "tionProfiles/*}:setSuggestionFeatureConfig:\001*\022\377\003\n" - + "\034ClearSuggestionFeatureConfig\022D.google.cloud.dialogflow.v2beta1.ClearSu" - + "ggestionFeatureConfigRequest\032\035.google.longrunning.Operation\"\371\002\312AD\n" - + "\023ConversationProfile\022-ClearSuggestionFeatureConfigOper" - + "ationMetadata\332A\024conversation_profile\332A=c" - + "onversation_profile,participant_role,sug" - + "gestion_feature_type\202\323\344\223\002\324\001\"^/v2beta1/{c" - + "onversation_profile=projects/*/conversationProfiles/*}:clearSuggestionFeatureCon" - + "fig:\001*Zo\"j/v2beta1/{conversation_profile=projects/*/locations/*/conversationProf" - + "iles/*}:clearSuggestionFeatureConfig:\001*\032" - + "x\312A\031dialogflow.googleapis.com\322AYhttps://" - + "www.googleapis.com/auth/cloud-platform,h" - + "ttps://www.googleapis.com/auth/dialogflowB\255\003\n" - + "#com.google.cloud.dialogflow.v2beta1B\030ConversationProfileProtoP\001ZCcloud.goo" - + "gle.com/go/dialogflow/apiv2beta1/dialogf" - + "lowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A|\n" - + ",dialogflow.googleapis.com/CXSecuritySettings\022Lprojects/{pr" - + "oject}/locations/{location}/securitySettings/{security_settings}\352A~\n" - + "+dialogflow.googleapis.com/ConversationModel\022Oprojec" - + "ts/{project}/locations/{location}/conversationModels/{conversation_model}b\006proto3" + + "\030ListConversationProfiles\022@.google.cloud.dialogflow.v2bet" + + "a1.ListConversationProfilesRequest\032A.google.cloud.dialogflow.v2beta1.ListConvers" + + "ationProfilesResponse\"\203\001\332A\006parent\202\323\344\223\002t\022" + + "1/v2beta1/{parent=projects/*}/conversati" + + "onProfilesZ?\022=/v2beta1/{parent=projects/*/locations/*}/conversationProfiles\022\222\002\n" + + "\026GetConversationProfile\022>.google.cloud.di" + + "alogflow.v2beta1.GetConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1" + + ".ConversationProfile\"\201\001\332A\004name\202\323\344\223\002t\0221/v" + + "2beta1/{name=projects/*/conversationProf" + + "iles/*}Z?\022=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\334\002\n" + + "\031CreateConversationProfile\022A.google.cloud.di" + + "alogflow.v2beta1.CreateConversationProfileRequest\0324.google.cloud.dialogflow.v2be" + + "ta1.ConversationProfile\"\305\001\332A\033parent,conv" + + "ersation_profile\202\323\344\223\002\240\001\"1/v2beta1/{paren" + + "t=projects/*}/conversationProfiles:\024conversation_profileZU\"=/v2beta1/{parent=pro" + + "jects/*/locations/*}/conversationProfiles:\024conversation_profile\022\213\003\n" + + "\031UpdateConversationProfile\022A.google.cloud.dialogflow." + + "v2beta1.UpdateConversationProfileRequest" + + "\0324.google.cloud.dialogflow.v2beta1.ConversationProfile\"\364\001\332A" + + " conversation_profile,update_mask\202\323\344\223\002\312\0012F/v2beta1/{conversat" + + "ion_profile.name=projects/*/conversationProfiles/*}:\024conversation_profileZj2R/v2" + + "beta1/{conversation_profile.name=project" + + "s/*/locations/*/conversationProfiles/*}:\024conversation_profile\022\372\001\n" + + "\031DeleteConversationProfile\022A.google.cloud.dialogflow.v2" + + "beta1.DeleteConversationProfileRequest\032\026" + + ".google.protobuf.Empty\"\201\001\332A\004name\202\323\344\223\002t*1" + + "/v2beta1/{name=projects/*/conversationPr" + + "ofiles/*}Z?*=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\367\003\n" + + "\032SetSuggestionFeatureConfig\022B.google.cloud" + + ".dialogflow.v2beta1.SetSuggestionFeature" + + "ConfigRequest\032\035.google.longrunning.Operation\"\365\002\312AB\n" + + "\023ConversationProfile\022+SetSuggestionFeatureConfigOperationMetadata\332A\024c" + + "onversation_profile\332A?conversation_profile,participant_role,suggestion_feature_c" + + "onfig\202\323\344\223\002\320\001\"\\/v2beta1/{conversation_pro" + + "file=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*Zm\"h/v2beta" + + "1/{conversation_profile=projects/*/locat" + + "ions/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*\022\377\003\n" + + "\034ClearSuggestionFeatureConfig\022D.google.cloud.dialogflow." + + "v2beta1.ClearSuggestionFeatureConfigRequ" + + "est\032\035.google.longrunning.Operation\"\371\002\312AD\n" + + "\023ConversationProfile\022-ClearSuggestionFe" + + "atureConfigOperationMetadata\332A\024conversat" + + "ion_profile\332A=conversation_profile,parti" + + "cipant_role,suggestion_feature_type\202\323\344\223\002" + + "\324\001\"^/v2beta1/{conversation_profile=proje" + + "cts/*/conversationProfiles/*}:clearSuggestionFeatureConfig:\001*Zo\"j/v2beta1/{conve" + + "rsation_profile=projects/*/locations/*/conversationProfiles/*}:clearSuggestionFe" + + "atureConfig:\001*\032x\312A\031dialogflow.googleapis" + + ".com\322AYhttps://www.googleapis.com/auth/c" + + "loud-platform,https://www.googleapis.com/auth/dialogflowB\255\003\n" + + "#com.google.cloud.dialogflow.v2beta1B\030ConversationProfilePro" + + "toP\001ZCcloud.google.com/go/dialogflow/api" + + "v2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A|\n" + + ",dialogflow.googleapis.com/CXSecuritySetting" + + "s\022Lprojects/{project}/locations/{locatio" + + "n}/securitySettings/{security_settings}\352A~\n" + + "+dialogflow.googleapis.com/ConversationModel\022Oprojects/{project}/locations/{l" + + "ocation}/conversationModels/{conversation_model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -444,6 +451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.GeneratorProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), @@ -517,6 +525,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableQuerySuggestionWhenNoAnswer", "EnableConversationAugmentedQuery", "EnableQuerySuggestionOnly", + "EnableResponseDebugInfo", + "RaiSettings", "SuggestionTriggerSettings", "QueryConfig", "ConversationModelConfig", @@ -534,6 +544,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GroupSuggestionResponses", "Generators", "DisableHighLatencyFeaturesSyncDelivery", + "SkipEmptyEventBasedSuggestion", + "UseUnredactedConversationData", + "EnableAsyncToolCall", }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor = internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_descriptor @@ -785,6 +798,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.GeneratorProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java index 44c39caf0bf4..a467f034cfaf 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java @@ -229,7 +229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032:google/cloud/dialogflow/v2beta1/conversation_profile.proto\032/google/cloud/dialo" + "gflow/v2beta1/generator.proto\0321google/cloud/dialogflow/v2beta1/participant.proto" + "\032-google/cloud/dialogflow/v2beta1/sessio" - + "n.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\240\022\n" + + "n.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\267\022\n" + "\014Conversation\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022Z\n" + "\017lifecycle_state\030\002 \001(\0162<.google.cloud.dialogflow" @@ -261,7 +261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\tB\003\340A\001\032;\n" + "\013MimeContent\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\001\022\024\n" - + "\007content\030\002 \001(\014B\003\340A\001\032\244\005\n" + + "\007content\030\002 \001(\014B\003\340A\001\032\273\005\n" + "\020ContextReference\022l\n" + "\020context_contents\030\001 \003(\0132M.google.cloud.di" + "alogflow.v2beta1.Conversation.ContextReference.ContextContentB\003\340A\002\022c\n" @@ -269,13 +269,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1.Conversation.ContextReference.UpdateModeB\003\340A\002\022\032\n\r" + "language_code\030\003 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\244\002\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\273\002\n" + "\016ContextContent\022\024\n" + "\007content\030\001 \001(\tB\003\340A\002\022x\n" + "\016content_format\030\002 \001(\0162[.google.cloud.dialogflow.v2beta1.Conversatio" + "n.ContextReference.ContextContent.ContentFormatB\003\340A\002\0227\n" + "\016ingestion_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"I\n\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r" + + "answer_record\030\004 \001(\t\"I\n\r" + "ContentFormat\022\036\n" + "\032CONTENT_FORMAT_UNSPECIFIED\020\000\022\010\n" + "\004JSON\020\001\022\016\n\n" @@ -286,8 +287,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tOVERWRITE\020\002\032\200\001\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>." - + "google.cloud.dialogflow.v2beta1.Conversation.ContextReference:\0028\001\"Q\n" + + "\005value\030\002 \001(\0132>.google.cloud.dial" + + "ogflow.v2beta1.Conversation.ContextReference:\0028\001\"Q\n" + "\016LifecycleState\022\037\n" + "\033LIFECYCLE_STATE_UNSPECIFIED\020\000\022\017\n" + "\013IN_PROGRESS\020\001\022\r\n" @@ -296,22 +297,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CONVERSATION_STAGE_UNSPECIFIED\020\000\022\027\n" + "\023VIRTUAL_AGENT_STAGE\020\001\022\026\n" + "\022HUMAN_ASSIST_STAGE\020\002:\300\001\352A\274\001\n" - + "&dialogflow.googleapis.com/Conversation\022/projects/{project" - + "}/conversations/{conversation}\022Dprojects" - + "/{project}/locations/{location}/conversations/{conversation}*\r" + + "&dialogflow.googleapis.com/Conversation\022/projects/{project}/conversations/{" + + "conversation}\022Dprojects/{project}/locati" + + "ons/{location}/conversations/{conversation}*\r" + "conversations2\014conversation\"O\n" + "\027ConversationPhoneNumber\022\031\n" + "\014country_code\030\002 \001(\005B\003\340A\003\022\031\n" + "\014phone_number\030\003 \001(\tB\003\340A\003\"\303\001\n" + "\031CreateConversationRequest\022>\n" - + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022H\n" - + "\014conversation\030\002" - + " \001(\0132-.google.cloud.dialogflow.v2beta1.ConversationB\003\340A\002\022\034\n" + + "\006parent\030\001 \001(\tB" + + ".\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022H\n" + + "\014conversation\030\002 \001(\0132-.google.c" + + "loud.dialogflow.v2beta1.ConversationB\003\340A\002\022\034\n" + "\017conversation_id\030\003 \001(\tB\003\340A\001\"\240\001\n" + "\030ListConversationsRequest\022>\n" - + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022\026\n" + + "\006parent\030\001 \001(\tB.\340A" + + "\002\372A(\022&dialogflow.googleapis.com/Conversation\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\"z\n" @@ -333,13 +334,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032BatchCreateMessagesRequest\022>\n" + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022L\n" - + "\010requests\030\002 \003(\01325.google.cloud.di" - + "alogflow.v2beta1.CreateMessageRequestB\003\340A\002\"Y\n" + + "\010requests\030\002" + + " \003(\01325.google.cloud.dialogflow.v2beta1.CreateMessageRequestB\003\340A\002\"Y\n" + "\033BatchCreateMessagesResponse\022:\n" + "\010messages\030\001 \003(\0132(.google.cloud.dialogflow.v2beta1.Message\"\226\001\n" + "\023ListMessagesRequest\0229\n" - + "\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\022!dialogflow.googleapis.com/Message\022\023\n" + + "\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\022!dialogflow.googleapis.com/Message\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\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\"k\n" @@ -349,37 +350,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036IngestContextReferencesRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022w\n" - + "\022context_references\030\002 \003(\0132V.google.cloud.dialogflow.v2bet" - + "a1.IngestContextReferencesRequest.ContextReferencesEntryB\003\340A\002\032x\n" + + "\022context_references\030\002 \003(\0132V.google" + + ".cloud.dialogflow.v2beta1.IngestContextR" + + "eferencesRequest.ContextReferencesEntryB\003\340A\002\032x\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.go" - + "ogle.cloud.dialogflow.v2beta1.Conversation.ContextReference:\0028\001\"\253\002\n" + + "\005value\030\002 \001(\0132>.google.cloud.dialog" + + "flow.v2beta1.Conversation.ContextReference:\0028\001\"\253\002\n" + "\037IngestContextReferencesResponse\022\204\001\n" - + "\033ingested_context_references\030\001 \003(\0132_.google.cloud.dialogf" - + "low.v2beta1.IngestContextReferencesResponse.IngestedContextReferencesEntry\032\200\001\n" + + "\033ingested_context_references\030\001 \003(\013" + + "2_.google.cloud.dialogflow.v2beta1.Inges" + + "tContextReferencesResponse.IngestedContextReferencesEntry\032\200\001\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.google.cloud.dialogf" - + "low.v2beta1.Conversation.ContextReference:\0028\001\"\241\002\n" + + "\005value\030\002 \001(\013" + + "2>.google.cloud.dialogflow.v2beta1.Conversation.ContextReference:\0028\001\"\241\002\n" + "!SuggestConversationSummaryRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\004 \001(\005B\003\340A\001\022X\n" - + "\023assist_query_params\030\005 \001(\01326.g" - + "oogle.cloud.dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\201\004\n" + + "\023assist_query_params\030\005 \001(\01326.google.cloud.dialo" + + "gflow.v2beta1.AssistQueryParametersB\003\340A\001\"\201\004\n" + "\"SuggestConversationSummaryResponse\022\\\n" - + "\007summary\030\001 \001(\0132K.goog" - + "le.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132K.google.cloud.dialogfl" + + "ow.v2beta1.SuggestConversationSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\032\246\002\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022t\n\r" - + "text_sections\030\004 \003(\0132].google.cloud.dialogflow.v2beta1." - + "SuggestConversationSummaryResponse.Summary.TextSectionsEntry\022B\n\r" + + "text_sections\030\004 \003(\0132].google.cloud.dialogflow.v2beta1.SuggestConversati" + + "onSummaryResponse.Summary.TextSectionsEntry\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\022\036\n" + "\026baseline_model_version\030\005 \001(\t\0323\n" @@ -387,56 +390,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\353\003\n" + "\037GenerateStatelessSummaryRequest\022y\n" - + "\026stateless_conversation\030\001 \001(\0132T.google.cloud.dialogflow.v2beta1.Gene" - + "rateStatelessSummaryRequest.MinimalConversationB\003\340A\002\022W\n" - + "\024conversation_profile\030\002 \001" - + "(\01324.google.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\022A\n" + + "\026stateless_conversation\030\001 \001(\0132T.google.cloud." + + "dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversationB\003\340A\002\022W\n" + + "\024conversation_profile\030\002 \001(\01324.google.cloud" + + ".dialogflow.v2beta1.ConversationProfileB\003\340A\002\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\035\n" + "\020max_context_size\030\004 \001(\005B\003\340A\001\032\221\001\n" + "\023MinimalConversation\022?\n" - + "\010messages\030\001 \003(" - + "\0132(.google.cloud.dialogflow.v2beta1.MessageB\003\340A\002\0229\n" + + "\010messages\030\001" + + " \003(\0132(.google.cloud.dialogflow.v2beta1.MessageB\003\340A\002\0229\n" + "\006parent\030\002 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\"\267\003\n" + " GenerateStatelessSummaryResponse\022Z\n" - + "\007summary\030\001 \001(" - + "\0132I.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132I.google.cloud." + + "dialogflow.v2beta1.GenerateStatelessSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\032\340\001\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022r\n\r" - + "text_sections\030\002 \003(\0132[.google.cloud.dialogflow.v2" - + "beta1.GenerateStatelessSummaryResponse.Summary.TextSectionsEntry\022\036\n" + + "text_sections\030\002 \003(\0132[.google.cloud.dialogflow.v2beta1.GenerateSta" + + "telessSummaryResponse.Summary.TextSectionsEntry\022\036\n" + "\026baseline_model_version\030\004 \001(\t\0323\n" + "\021TextSectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\354\004\n" + + "\005value\030\002 \001(\t:\0028\001\"\214\005\n" + "\"GenerateStatelessSuggestionRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022?\n" + "\tgenerator\030\002" + " \001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorH\000\022\030\n" + "\016generator_name\030\003 \001(\tH\000\022{\n" - + "\022context_references\030\004 \003(\0132Z.google.cloud.dialogflow.v2beta1" - + ".GenerateStatelessSuggestionRequest.ContextReferencesEntryB\003\340A\001\022W\n" - + "\024conversation_context\030\005" - + " \001(\01324.google.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022J\n" - + "\016trigger_events\030\006" - + " \003(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\001\032x\n" + + "\022context_references\030\004 \003(\0132Z.google.c" + + "loud.dialogflow.v2beta1.GenerateStateles" + + "sSuggestionRequest.ContextReferencesEntryB\003\340A\001\022W\n" + + "\024conversation_context\030\005 \001(\01324.g" + + "oogle.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022J\n" + + "\016trigger_events\030\006 \003(\0162" + + "-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\001\022\036\n" + + "\021security_settings\030\010 \001(\tB\003\340A\001\032x\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001" - + "(\0132>.google.cloud.dialogflow.v2beta1.Conversation.ContextReference:\0028\001B\024\n" + + "\005value\030\002 \001(\0132>.google.cloud.dialogf" + + "low.v2beta1.Conversation.ContextReference:\0028\001B\024\n" + "\022generator_resource\"~\n" + "#GenerateStatelessSuggestionResponse\022W\n" - + "\024generator_suggestion\030\001 \001(" - + "\01324.google.cloud.dialogflow.v2beta1.GeneratorSuggestionB\003\340A\002\"\323\022\n" + + "\024generator_suggestion\030\001" + + " \001(\01324.google.cloud.dialogflow.v2beta1.GeneratorSuggestionB\003\340A\002\"\323\022\n" + "\026SearchKnowledgeRequest\022\023\n" + "\006parent\030\006 \001(\tB\003\340A\002\022>\n" - + "\005query\030\001 " - + "\001(\0132*.google.cloud.dialogflow.v2beta1.TextInputB\003\340A\002\022S\n" + + "\005query\030\001" + + " \001(\0132*.google.cloud.dialogflow.v2beta1.TextInputB\003\340A\002\022S\n" + "\024conversation_profile\030\002 \001(\tB5\340A\002\372A/\n" + "-dialogflow.googleapis.com/ConversationProfile\022\027\n\n" + "session_id\030\003 \001(\tB\003\340A\002\022D\n" @@ -444,48 +449,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\005 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022^\n" - + "\014query_source\030\007 \001(" - + "\0162C.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + + "\014query_source\030\007 \001(\0162C.google.cloud.dialogfl" + + "ow.v2beta1.SearchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + "\021end_user_metadata\030\t" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022`\n\r" - + "search_config\030\013 \001(\0132D.go" - + "ogle.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + + "search_config\030\013 \001(\0132D.google.cloud.dialogflow.v2b" + + "eta1.SearchKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + "\014exact_search\030\016 \001(\010B\003\340A\001\032\203\r\n" + "\014SearchConfig\022i\n" - + "\013boost_specs\030\001 \003(\0132O.google.cloud.dialogflo" - + "w.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022k\n" - + "\014filter_specs\030\002 \003(\0132P.google.cloud.dialogflow.v2beta1.Se" - + "archKnowledgeRequest.SearchConfig.FilterSpecsB\003\340A\001\032\334\n\n\n" + + "\013boost_specs\030\001 \003(\0132O.google." + + "cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022k\n" + + "\014filter_specs\030\002 \003(\0132P.google.cloud.dialog" + + "flow.v2beta1.SearchKnowledgeRequest.SearchConfig.FilterSpecsB\003\340A\001\032\334\n\n\n" + "BoostSpecs\022E\n" + "\013data_stores\030\001 \003(\tB0\340A\001\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022l\n" - + "\004spec\030\002 \003(\0132Y.google.cloud.dialogflow.v2beta1.SearchKnowledge" - + "Request.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\230\t\n" + + "\004spec\030\002 \003(\0132Y.google.cloud.dialogflow.v2beta1." + + "SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\230\t\n" + "\tBoostSpec\022\220\001\n" - + "\025condition_boost_specs\030\001 \003(\0132l.google.cloud.dialogflow.v" - + "2beta1.SearchKnowledgeRequest.SearchConf" - + "ig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\367\007\n" + + "\025condition_boost_specs\030\001 \003(\0132l.google.clo" + + "ud.dialogflow.v2beta1.SearchKnowledgeReq" + + "uest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\367\007\n" + "\022ConditionBoostSpec\022\026\n" + "\tcondition\030\001 \001(\tB\003\340A\001\022\022\n" + "\005boost\030\002 \001(\002B\003\340A\001\022\236\001\n" - + "\022boost_control_spec\030\004 \001(\0132}.google.cloud.d" - + "ialogflow.v2beta1.SearchKnowledgeRequest" - + ".SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\223\006\n" + + "\022boost_control_spec\030\004 \001(\0132}.google.cloud.dialogflow.v2beta1.SearchK" + + "nowledgeRequest.SearchConfig.BoostSpecs." + + "BoostSpec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\223\006\n" + "\020BoostControlSpec\022\027\n\n" + "field_name\030\001 \001(\tB\003\340A\001\022\251\001\n" - + "\016attribute_type\030\002 \001(\0162\213\001.google.clo" - + "ud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.C" - + "onditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\261\001\n" - + "\022interpolation_type\030\003 \001(\0162\217\001.google.cloud.dialogflow.v2beta1.Se" - + "archKnowledgeRequest.SearchConfig.BoostS" - + "pecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022\250\001\n" - + "\016control_points\030\004 \003(\0132\212\001.google.cloud.dialo" - + "gflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Condition" - + "BoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + + "\016attribute_type\030\002 \001(\0162\213\001.google.cloud.dialogflow.v2beta1.Sea" + + "rchKnowledgeRequest.SearchConfig.BoostSp" + + "ecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\261\001\n" + + "\022interpolation_type\030\003 \001(\0162\217\001.google.cloud.dialog" + + "flow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionB" + + "oostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022\250\001\n" + + "\016control_points\030\004 \003(\0132\212\001.goo" + + "gle.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.Boos" + + "tSpec.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + "\014ControlPoint\022\034\n" + "\017attribute_value\030\001 \001(\tB\003\340A\001\022\031\n" - + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n" - + "\r" + + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\r" + "AttributeType\022\036\n" + "\032ATTRIBUTE_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tNUMERICAL\020\001\022\r\n" @@ -501,15 +505,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013AGENT_QUERY\020\001\022\023\n" + "\017SUGGESTED_QUERY\020\002\"{\n" + "\027SearchKnowledgeResponse\022G\n" - + "\007answers\030\002" - + " \003(\01326.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer\022\027\n" + + "\007answers\030\002 \003(\01326.google.c" + + "loud.dialogflow.v2beta1.SearchKnowledgeAnswer\022\027\n" + "\017rewritten_query\030\003 \001(\t\"\330\003\n" + "\025SearchKnowledgeAnswer\022\016\n" + "\006answer\030\001 \001(\t\022V\n" - + "\013answer_type\030\002 \001(\0162A" - + ".google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerType\022[\n" - + "\016answer_sources\030\003 \003(\0132C.google.cloud.dialogflow.v2be" - + "ta1.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + + "\013answer_type\030\002 \001(\0162A.google.cloud.dialogflow." + + "v2beta1.SearchKnowledgeAnswer.AnswerType\022[\n" + + "\016answer_sources\030\003 \003(\0132C.google.cloud." + + "dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + "answer_record\030\005 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\032f\n" + "\014AnswerSource\022\r\n" @@ -519,93 +523,97 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"N\n\n" + "AnswerType\022\033\n" + "\027ANSWER_TYPE_UNSPECIFIED\020\000\022\007\n" - + "\003FAQ\020\001\022\016\n\n" - + "GENERATIVE\020\002\022\n" + + "\003FAQ\020\001\022\016\n" + "\n" + + "GENERATIVE\020\002\022\n\n" + "\006INTENT\020\003\"\361\001\n" + "\032GenerateSuggestionsRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022J\n" - + "\016trigger_events\030\003 \003" - + "(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + + "\016trigger_events\030\003" + + " \003(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + "Conversations\022\241\002\n" - + "\022CreateConversation\022:.google.cloud.dialogflo" - + "w.v2beta1.CreateConversationRequest\032-.google.cloud.dialogflow.v2beta1.Conversati" - + "on\"\237\001\332A\023parent,conversation\202\323\344\223\002\202\001\"*/v2b" - + "eta1/{parent=projects/*}/conversations:\014conversationZF\"6/v2beta1/{parent=project" - + "s/*/locations/*}/conversations:\014conversation\022\201\002\n" - + "\021ListConversations\0229.google.cloud.dialogflow.v2beta1.ListConversationsRe" - + "quest\032:.google.cloud.dialogflow.v2beta1." - + "ListConversationsResponse\"u\332A\006parent\202\323\344\223" - + "\002f\022*/v2beta1/{parent=projects/*}/convers" - + "ationsZ8\0226/v2beta1/{parent=projects/*/locations/*}/conversations\022\356\001\n" - + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.G" - + "etConversationRequest\032-.google.cloud.dia" - + "logflow.v2beta1.Conversation\"s\332A\004name\202\323\344" - + "\223\002f\022*/v2beta1/{name=projects/*/conversat" - + "ions/*}Z8\0226/v2beta1/{name=projects/*/locations/*/conversations/*}\022\221\002\n" - + "\024CompleteConversation\022<.google.cloud.dialogflow.v2b" - + "eta1.CompleteConversationRequest\032-.google.cloud.dialogflow.v2beta1.Conversation\"" - + "\213\001\332A\004name\202\323\344\223\002~\"3/v2beta1/{name=projects" - + "/*/conversations/*}:complete:\001*ZD\"?/v2be" - + "ta1/{name=projects/*/locations/*/conversations/*}:complete:\001*\022\242\002\n" - + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2be" - + "ta1.IngestContextReferencesRequest\032@.google.cloud.dialogflow.v2beta1.IngestConte" - + "xtReferencesResponse\"\203\001\332A\037conversation,c" - + "ontext_references\202\323\344\223\002[\"V/v2beta1/{conve" - + "rsation=projects/*/locations/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" - + "\023BatchCreateMessages\022;.google.cloud.dialog" - + "flow.v2beta1.BatchCreateMessagesRequest\032<.google.cloud.dialogflow.v2beta1.BatchC" - + "reateMessagesResponse\"\263\001\332A\017parent,reques" - + "ts\202\323\344\223\002\232\001\"A/v2beta1/{parent=projects/*/c" - + "onversations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent=projects/*/locations" - + "/*/conversations/*}/messages:batchCreate:\001*\022\211\002\n" - + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.ListMessagesRequest\0325.goo" - + "gle.cloud.dialogflow.v2beta1.ListMessage" - + "sResponse\"\213\001\332A\006parent\202\323\344\223\002|\0225/v2beta1/{p" - + "arent=projects/*/conversations/*}/messag" - + "esZC\022A/v2beta1/{parent=projects/*/locations/*/conversations/*}/messages\022\210\003\n" - + "\032SuggestConversationSummary\022B.google.cloud.di" - + "alogflow.v2beta1.SuggestConversationSummaryRequest\032C.google.cloud.dialogflow.v2b" - + "eta1.SuggestConversationSummaryResponse\"" - + "\340\001\332A\014conversation\202\323\344\223\002\312\001\"Y/v2beta1/{conv" - + "ersation=projects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Zj" - + "\"e/v2beta1/{conversation=projects/*/loca" - + "tions/*/conversations/*}/suggestions:suggestConversationSummary:\001*\022\361\002\n" - + "\030GenerateStatelessSummary\022@.google.cloud.dialogflo" - + "w.v2beta1.GenerateStatelessSummaryRequest\032A.google.cloud.dialogflow.v2beta1.Gene" - + "rateStatelessSummaryResponse\"\317\001\202\323\344\223\002\310\001\"X" - + "/v2beta1/{stateless_conversation.parent=projects/*}/suggestions:generateStateles" - + "sSummary:\001*Zi\"d/v2beta1/{stateless_conversation.parent=projects/*/locations/*}/s" - + "uggestions:generateStatelessSummary:\001*\022\372\001\n" - + "\033GenerateStatelessSuggestion\022C.google.cloud.dialogflow.v2beta1.GenerateStatele" - + "ssSuggestionRequest\032D.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestio" - + "nResponse\"P\202\323\344\223\002J\"E/v2beta1/{parent=proj" - + "ects/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" - + "\017SearchKnowledge\0227.google.cloud.dialogflow.v2beta1.SearchKnowledg" - + "eRequest\0328.google.cloud.dialogflow.v2bet" - + "a1.SearchKnowledgeResponse\"\305\002\202\323\344\223\002\276\002\"8/v" - + "2beta1/{parent=projects/*}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=pr" - + "ojects/*/locations/*}/suggestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=p" - + "rojects/*/conversations/*}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversat" - + "ion=projects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" - + "\023GenerateSuggestions\022;.google.cloud.dialog" - + "flow.v2beta1.GenerateSuggestionsRequest\032<.google.cloud.dialogflow.v2beta1.Genera" - + "teSuggestionsResponse\"\274\001\332A\014conversation\202" - + "\323\344\223\002\246\001\"G/v2beta1/{conversation=projects/" - + "*/conversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{conversation=projects/*/" - + "locations/*/conversations/*}/suggestions" - + ":generate:\001*\032x\312A\031dialogflow.googleapis.c" - + "om\322AYhttps://www.googleapis.com/auth/clo" - + "ud-platform,https://www.googleapis.com/auth/dialogflowB\357\002\n" - + "#com.google.cloud.dialogflow.v2beta1B\021ConversationProtoP\001ZCclo" - + "ud.google.com/go/dialogflow/apiv2beta1/d" - + "ialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022Xprojects/" - + "{project}/locations/{location}/collections/{collection}/dataStores/{data_store}\022" - + "?projects/{project}/locations/{location}/dataStores/{data_store}b\006proto3" + + "\022CreateConversation\022:.google.cloud.dialogflow.v2beta1.CreateConversat" + + "ionRequest\032-.google.cloud.dialogflow.v2b" + + "eta1.Conversation\"\237\001\332A\023parent,conversati" + + "on\202\323\344\223\002\202\001\"*/v2beta1/{parent=projects/*}/" + + "conversations:\014conversationZF\"6/v2beta1/" + + "{parent=projects/*/locations/*}/conversations:\014conversation\022\201\002\n" + + "\021ListConversations\0229.google.cloud.dialogflow.v2beta1.List" + + "ConversationsRequest\032:.google.cloud.dialogflow.v2beta1.ListConversationsResponse" + + "\"u\332A\006parent\202\323\344\223\002f\022*/v2beta1/{parent=proj" + + "ects/*}/conversationsZ8\0226/v2beta1/{paren" + + "t=projects/*/locations/*}/conversations\022\356\001\n" + + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.GetConversationRequest\032-.g" + + "oogle.cloud.dialogflow.v2beta1.Conversat" + + "ion\"s\332A\004name\202\323\344\223\002f\022*/v2beta1/{name=proje" + + "cts/*/conversations/*}Z8\0226/v2beta1/{name" + + "=projects/*/locations/*/conversations/*}\022\221\002\n" + + "\024CompleteConversation\022<.google.cloud.dialogflow.v2beta1.CompleteConversation" + + "Request\032-.google.cloud.dialogflow.v2beta" + + "1.Conversation\"\213\001\332A\004name\202\323\344\223\002~\"3/v2beta1" + + "/{name=projects/*/conversations/*}:compl" + + "ete:\001*ZD\"?/v2beta1/{name=projects/*/locations/*/conversations/*}:complete:\001*\022\242\002\n" + + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2beta1.IngestContextReferenc" + + "esRequest\032@.google.cloud.dialogflow.v2be" + + "ta1.IngestContextReferencesResponse\"\203\001\332A" + + "\037conversation,context_references\202\323\344\223\002[\"V" + + "/v2beta1/{conversation=projects/*/locati" + + "ons/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" + + "\023BatchCreateMessages\022;.google.cloud.dialogflow.v2beta1.BatchCreateM" + + "essagesRequest\032<.google.cloud.dialogflow" + + ".v2beta1.BatchCreateMessagesResponse\"\263\001\332" + + "A\017parent,requests\202\323\344\223\002\232\001\"A/v2beta1/{pare" + + "nt=projects/*/conversations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent=proje" + + "cts/*/locations/*/conversations/*}/messages:batchCreate:\001*\022\211\002\n" + + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.ListMessag" + + "esRequest\0325.google.cloud.dialogflow.v2be" + + "ta1.ListMessagesResponse\"\213\001\332A\006parent\202\323\344\223" + + "\002|\0225/v2beta1/{parent=projects/*/conversa" + + "tions/*}/messagesZC\022A/v2beta1/{parent=pr" + + "ojects/*/locations/*/conversations/*}/messages\022\210\003\n" + + "\032SuggestConversationSummary\022B.google.cloud.dialogflow.v2beta1.SuggestC" + + "onversationSummaryRequest\032C.google.cloud.dialogflow.v2beta1.SuggestConversationS" + + "ummaryResponse\"\340\001\332A\014conversation\202\323\344\223\002\312\001\"" + + "Y/v2beta1/{conversation=projects/*/conversations/*}/suggestions:suggestConversat" + + "ionSummary:\001*Zj\"e/v2beta1/{conversation=projects/*/locations/*/conversations/*}/" + + "suggestions:suggestConversationSummary:\001*\022\361\002\n" + + "\030GenerateStatelessSummary\022@.google.cloud.dialogflow.v2beta1.GenerateStatele" + + "ssSummaryRequest\032A.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRespo" + + "nse\"\317\001\202\323\344\223\002\310\001\"X/v2beta1/{stateless_conve" + + "rsation.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zi\"d/v2beta1/{" + + "stateless_conversation.parent=projects/*" + + "/locations/*}/suggestions:generateStatelessSummary:\001*\022\372\001\n" + + "\033GenerateStatelessSuggestion\022C.google.cloud.dialogflow.v2beta1." + + "GenerateStatelessSuggestionRequest\032D.google.cloud.dialogflow.v2beta1.GenerateSta" + + "telessSuggestionResponse\"P\202\323\344\223\002J\"E/v2bet" + + "a1/{parent=projects/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" + + "\017SearchKnowledge\0227.google.cloud.dialogflow.v2beta1" + + ".SearchKnowledgeRequest\0328.google.cloud.dialogflow.v2beta1.SearchKnowledgeRespons" + + "e\"\305\002\202\323\344\223\002\276\002\"8/v2beta1/{parent=projects/*" + + "}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=projects/*/locations/*}/sug" + + "gestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=projects/*/conversations/*" + + "}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversation=projects/*/locations/" + + "*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" + + "\023GenerateSuggestions\022;.google.cloud.dialogflow.v2beta1.GenerateSugg" + + "estionsRequest\032<.google.cloud.dialogflow" + + ".v2beta1.GenerateSuggestionsResponse\"\274\001\332" + + "A\014conversation\202\323\344\223\002\246\001\"G/v2beta1/{convers" + + "ation=projects/*/conversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{conversat" + + "ion=projects/*/locations/*/conversations" + + "/*}/suggestions:generate:\001*\032x\312A\031dialogfl" + + "ow.googleapis.com\322AYhttps://www.googleap" + + "is.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\314\003\n" + + "#com.google.cloud.dialogflow.v2beta1B\021Conversat" + + "ionProtoP\001ZCcloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb\242" + + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022Xprojects/{project}/locations/{loca" + + "tion}/collections/{collection}/dataStores/{data_store}\022?projects/{project}/locat" + + "ions/{location}/dataStores/{data_store}\352AZ\n" + + "\027ces.googleapis.com/Tool\022?projects/{project}/locations/{location}/apps/{app}/" + + "tools/{tool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -686,7 +694,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Conversation_ContextReference_ContextContent_descriptor, new java.lang.String[] { - "Content", "ContentFormat", "IngestionTime", + "Content", "ContentFormat", "IngestionTime", "AnswerRecord", }); internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Conversation_descriptor @@ -916,6 +924,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContextReferences", "ConversationContext", "TriggerEvents", + "SecuritySettings", "GeneratorResource", }); internal_static_google_cloud_dialogflow_v2beta1_GenerateStatelessSuggestionRequest_ContextReferencesEntry_descriptor = diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateGeneratorEvaluationRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateGeneratorEvaluationRequest.java new file mode 100644 index 000000000000..d3879e67b446 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateGeneratorEvaluationRequest.java @@ -0,0 +1,994 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Request of CreateGeneratorEvaluation.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest} + */ +public final class CreateGeneratorEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest) + CreateGeneratorEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateGeneratorEvaluationRequest.newBuilder() to construct. + private CreateGeneratorEvaluationRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateGeneratorEvaluationRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateGeneratorEvaluationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest.class, + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                          +   * Required. The generator resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +   * 
                                          + * + * + * 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 generator resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +   * 
                                          + * + * + * 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 GENERATOR_EVALUATION_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation generatorEvaluation_; + + /** + * + * + *
                                          +   * Required. The generator evaluation to be created.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the generatorEvaluation field is set. + */ + @java.lang.Override + public boolean hasGeneratorEvaluation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Required. The generator evaluation to be created.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The generatorEvaluation. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getGeneratorEvaluation() { + return generatorEvaluation_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.getDefaultInstance() + : generatorEvaluation_; + } + + /** + * + * + *
                                          +   * Required. The generator evaluation to be created.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder + getGeneratorEvaluationOrBuilder() { + return generatorEvaluation_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.getDefaultInstance() + : generatorEvaluation_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getGeneratorEvaluation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGeneratorEvaluation()); + } + 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.dialogflow.v2beta1.CreateGeneratorEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest other = + (com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasGeneratorEvaluation() != other.hasGeneratorEvaluation()) return false; + if (hasGeneratorEvaluation()) { + if (!getGeneratorEvaluation().equals(other.getGeneratorEvaluation())) 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(); + if (hasGeneratorEvaluation()) { + hash = (37 * hash) + GENERATOR_EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getGeneratorEvaluation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest 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.dialogflow.v2beta1.CreateGeneratorEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest 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.dialogflow.v2beta1.CreateGeneratorEvaluationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request of CreateGeneratorEvaluation.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest) + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest.class, + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGeneratorEvaluationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + generatorEvaluation_ = null; + if (generatorEvaluationBuilder_ != null) { + generatorEvaluationBuilder_.dispose(); + generatorEvaluationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest build() { + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest result = + new com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.generatorEvaluation_ = + generatorEvaluationBuilder_ == null + ? generatorEvaluation_ + : generatorEvaluationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest other) { + if (other + == com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasGeneratorEvaluation()) { + mergeGeneratorEvaluation(other.getGeneratorEvaluation()); + } + 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: + { + input.readMessage( + getGeneratorEvaluationFieldBuilder().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 parent_ = ""; + + /** + * + * + *
                                          +     * Required. The generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * 
                                          + * + * + * 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 generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * 
                                          + * + * + * 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 generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * 
                                          + * + * + * 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 generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * 
                                          + * + * + * 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 generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * 
                                          + * + * + * 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 com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation generatorEvaluation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder> + generatorEvaluationBuilder_; + + /** + * + * + *
                                          +     * Required. The generator evaluation to be created.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the generatorEvaluation field is set. + */ + public boolean hasGeneratorEvaluation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Required. The generator evaluation to be created.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The generatorEvaluation. + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getGeneratorEvaluation() { + if (generatorEvaluationBuilder_ == null) { + return generatorEvaluation_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.getDefaultInstance() + : generatorEvaluation_; + } else { + return generatorEvaluationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Required. The generator evaluation to be created.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation value) { + if (generatorEvaluationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generatorEvaluation_ = value; + } else { + generatorEvaluationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The generator evaluation to be created.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder builderForValue) { + if (generatorEvaluationBuilder_ == null) { + generatorEvaluation_ = builderForValue.build(); + } else { + generatorEvaluationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The generator evaluation to be created.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGeneratorEvaluation( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation value) { + if (generatorEvaluationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && generatorEvaluation_ != null + && generatorEvaluation_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.getDefaultInstance()) { + getGeneratorEvaluationBuilder().mergeFrom(value); + } else { + generatorEvaluation_ = value; + } + } else { + generatorEvaluationBuilder_.mergeFrom(value); + } + if (generatorEvaluation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Required. The generator evaluation to be created.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGeneratorEvaluation() { + bitField0_ = (bitField0_ & ~0x00000002); + generatorEvaluation_ = null; + if (generatorEvaluationBuilder_ != null) { + generatorEvaluationBuilder_.dispose(); + generatorEvaluationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The generator evaluation to be created.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder + getGeneratorEvaluationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getGeneratorEvaluationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Required. The generator evaluation to be created.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder + getGeneratorEvaluationOrBuilder() { + if (generatorEvaluationBuilder_ != null) { + return generatorEvaluationBuilder_.getMessageOrBuilder(); + } else { + return generatorEvaluation_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.getDefaultInstance() + : generatorEvaluation_; + } + } + + /** + * + * + *
                                          +     * Required. The generator evaluation to be created.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder> + getGeneratorEvaluationFieldBuilder() { + if (generatorEvaluationBuilder_ == null) { + generatorEvaluationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder>( + getGeneratorEvaluation(), getParentForChildren(), isClean()); + generatorEvaluation_ = null; + } + return generatorEvaluationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest) + private static final com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGeneratorEvaluationRequest 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.dialogflow.v2beta1.CreateGeneratorEvaluationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateGeneratorEvaluationRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateGeneratorEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..8e2720ad4671 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateGeneratorEvaluationRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface CreateGeneratorEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The generator resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +   * 
                                          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                          +   * Required. The generator resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +   * 
                                          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                          +   * Required. The generator evaluation to be created.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the generatorEvaluation field is set. + */ + boolean hasGeneratorEvaluation(); + + /** + * + * + *
                                          +   * Required. The generator evaluation to be created.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The generatorEvaluation. + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getGeneratorEvaluation(); + + /** + * + * + *
                                          +   * Required. The generator evaluation to be created.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder + getGeneratorEvaluationOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateToolRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateToolRequest.java new file mode 100644 index 000000000000..f563efa69bf6 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateToolRequest.java @@ -0,0 +1,1216 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Request message of CreateTool.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateToolRequest} + */ +public final class CreateToolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.CreateToolRequest) + CreateToolRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateToolRequest.newBuilder() to construct. + private CreateToolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateToolRequest() { + parent_ = ""; + toolId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateToolRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CreateToolRequest.class, + com.google.cloud.dialogflow.v2beta1.CreateToolRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                          +   * Required. The project/location to create tool for. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>`
                                          +   * 
                                          + * + * + * 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/location to create tool for. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>`
                                          +   * 
                                          + * + * + * 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 TOOL_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.Tool tool_; + + /** + * + * + *
                                          +   * Required. The tool to create.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Required. The tool to create.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tool. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool getTool() { + return tool_ == null ? com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance() : tool_; + } + + /** + * + * + *
                                          +   * Required. The tool to create.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolOrBuilder getToolOrBuilder() { + return tool_ == null ? com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance() : tool_; + } + + public static final int TOOL_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolId_ = ""; + + /** + * + * + *
                                          +   * Optional. The ID to use for the tool, which will become the final
                                          +   * component of the tool's resource name.
                                          +   *
                                          +   * The tool ID must be compliant with the regression formula
                                          +   * `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
                                          +   * If the field is not provide, an Id will be auto-generated.
                                          +   * If the field is provided, the caller is responsible for
                                          +   * 1. the uniqueness of the ID, otherwise the request will be rejected.
                                          +   * 2. the consistency for whether to use custom ID or not under a project to
                                          +   * better ensure uniqueness.
                                          +   * 
                                          + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolId. + */ + @java.lang.Override + public java.lang.String getToolId() { + java.lang.Object ref = toolId_; + 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(); + toolId_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The ID to use for the tool, which will become the final
                                          +   * component of the tool's resource name.
                                          +   *
                                          +   * The tool ID must be compliant with the regression formula
                                          +   * `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
                                          +   * If the field is not provide, an Id will be auto-generated.
                                          +   * If the field is provided, the caller is responsible for
                                          +   * 1. the uniqueness of the ID, otherwise the request will be rejected.
                                          +   * 2. the consistency for whether to use custom ID or not under a project to
                                          +   * better ensure uniqueness.
                                          +   * 
                                          + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = toolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolId_ = 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTool()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, toolId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTool()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, toolId_); + } + 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.dialogflow.v2beta1.CreateToolRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.CreateToolRequest other = + (com.google.cloud.dialogflow.v2beta1.CreateToolRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasTool() != other.hasTool()) return false; + if (hasTool()) { + if (!getTool().equals(other.getTool())) return false; + } + if (!getToolId().equals(other.getToolId())) 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(); + if (hasTool()) { + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + } + hash = (37 * hash) + TOOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getToolId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest 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.dialogflow.v2beta1.CreateToolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest 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.dialogflow.v2beta1.CreateToolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.CreateToolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request message of CreateTool.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateToolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.CreateToolRequest) + com.google.cloud.dialogflow.v2beta1.CreateToolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CreateToolRequest.class, + com.google.cloud.dialogflow.v2beta1.CreateToolRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.CreateToolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getToolFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + tool_ = null; + if (toolBuilder_ != null) { + toolBuilder_.dispose(); + toolBuilder_ = null; + } + toolId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CreateToolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CreateToolRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.CreateToolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CreateToolRequest build() { + com.google.cloud.dialogflow.v2beta1.CreateToolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CreateToolRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.CreateToolRequest result = + new com.google.cloud.dialogflow.v2beta1.CreateToolRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.CreateToolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tool_ = toolBuilder_ == null ? tool_ : toolBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.toolId_ = toolId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.CreateToolRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.CreateToolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.CreateToolRequest other) { + if (other == com.google.cloud.dialogflow.v2beta1.CreateToolRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTool()) { + mergeTool(other.getTool()); + } + if (!other.getToolId().isEmpty()) { + toolId_ = other.toolId_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getToolFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + toolId_ = 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 parent_ = ""; + + /** + * + * + *
                                          +     * Required. The project/location to create tool for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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/location to create tool for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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/location to create tool for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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/location to create tool for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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/location to create tool for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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 com.google.cloud.dialogflow.v2beta1.Tool tool_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool, + com.google.cloud.dialogflow.v2beta1.Tool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder> + toolBuilder_; + + /** + * + * + *
                                          +     * Required. The tool to create.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Required. The tool to create.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tool. + */ + public com.google.cloud.dialogflow.v2beta1.Tool getTool() { + if (toolBuilder_ == null) { + return tool_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance() + : tool_; + } else { + return toolBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Required. The tool to create.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTool(com.google.cloud.dialogflow.v2beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + } else { + toolBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The tool to create.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTool(com.google.cloud.dialogflow.v2beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + tool_ = builderForValue.build(); + } else { + toolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The tool to create.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTool(com.google.cloud.dialogflow.v2beta1.Tool value) { + if (toolBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && tool_ != null + && tool_ != com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance()) { + getToolBuilder().mergeFrom(value); + } else { + tool_ = value; + } + } else { + toolBuilder_.mergeFrom(value); + } + if (tool_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Required. The tool to create.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTool() { + bitField0_ = (bitField0_ & ~0x00000002); + tool_ = null; + if (toolBuilder_ != null) { + toolBuilder_.dispose(); + toolBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The tool to create.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Builder getToolBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Required. The tool to create.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolOrBuilder getToolOrBuilder() { + if (toolBuilder_ != null) { + return toolBuilder_.getMessageOrBuilder(); + } else { + return tool_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance() + : tool_; + } + } + + /** + * + * + *
                                          +     * Required. The tool to create.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool, + com.google.cloud.dialogflow.v2beta1.Tool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder> + getToolFieldBuilder() { + if (toolBuilder_ == null) { + toolBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool, + com.google.cloud.dialogflow.v2beta1.Tool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder>( + getTool(), getParentForChildren(), isClean()); + tool_ = null; + } + return toolBuilder_; + } + + private java.lang.Object toolId_ = ""; + + /** + * + * + *
                                          +     * Optional. The ID to use for the tool, which will become the final
                                          +     * component of the tool's resource name.
                                          +     *
                                          +     * The tool ID must be compliant with the regression formula
                                          +     * `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
                                          +     * If the field is not provide, an Id will be auto-generated.
                                          +     * If the field is provided, the caller is responsible for
                                          +     * 1. the uniqueness of the ID, otherwise the request will be rejected.
                                          +     * 2. the consistency for whether to use custom ID or not under a project to
                                          +     * better ensure uniqueness.
                                          +     * 
                                          + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolId. + */ + public java.lang.String getToolId() { + java.lang.Object ref = toolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The ID to use for the tool, which will become the final
                                          +     * component of the tool's resource name.
                                          +     *
                                          +     * The tool ID must be compliant with the regression formula
                                          +     * `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
                                          +     * If the field is not provide, an Id will be auto-generated.
                                          +     * If the field is provided, the caller is responsible for
                                          +     * 1. the uniqueness of the ID, otherwise the request will be rejected.
                                          +     * 2. the consistency for whether to use custom ID or not under a project to
                                          +     * better ensure uniqueness.
                                          +     * 
                                          + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolId. + */ + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = toolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The ID to use for the tool, which will become the final
                                          +     * component of the tool's resource name.
                                          +     *
                                          +     * The tool ID must be compliant with the regression formula
                                          +     * `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
                                          +     * If the field is not provide, an Id will be auto-generated.
                                          +     * If the field is provided, the caller is responsible for
                                          +     * 1. the uniqueness of the ID, otherwise the request will be rejected.
                                          +     * 2. the consistency for whether to use custom ID or not under a project to
                                          +     * better ensure uniqueness.
                                          +     * 
                                          + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolId to set. + * @return This builder for chaining. + */ + public Builder setToolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The ID to use for the tool, which will become the final
                                          +     * component of the tool's resource name.
                                          +     *
                                          +     * The tool ID must be compliant with the regression formula
                                          +     * `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
                                          +     * If the field is not provide, an Id will be auto-generated.
                                          +     * If the field is provided, the caller is responsible for
                                          +     * 1. the uniqueness of the ID, otherwise the request will be rejected.
                                          +     * 2. the consistency for whether to use custom ID or not under a project to
                                          +     * better ensure uniqueness.
                                          +     * 
                                          + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolId() { + toolId_ = getDefaultInstance().getToolId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The ID to use for the tool, which will become the final
                                          +     * component of the tool's resource name.
                                          +     *
                                          +     * The tool ID must be compliant with the regression formula
                                          +     * `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
                                          +     * If the field is not provide, an Id will be auto-generated.
                                          +     * If the field is provided, the caller is responsible for
                                          +     * 1. the uniqueness of the ID, otherwise the request will be rejected.
                                          +     * 2. the consistency for whether to use custom ID or not under a project to
                                          +     * better ensure uniqueness.
                                          +     * 
                                          + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for toolId to set. + * @return This builder for chaining. + */ + public Builder setToolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CreateToolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.CreateToolRequest) + private static final com.google.cloud.dialogflow.v2beta1.CreateToolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.CreateToolRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.CreateToolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateToolRequest 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.dialogflow.v2beta1.CreateToolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateToolRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateToolRequestOrBuilder.java new file mode 100644 index 000000000000..6c2b7741b5b5 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateToolRequestOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface CreateToolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.CreateToolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The project/location to create tool for. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>`
                                          +   * 
                                          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                          +   * Required. The project/location to create tool for. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>`
                                          +   * 
                                          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                          +   * Required. The tool to create.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
                                          +   * Required. The tool to create.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tool. + */ + com.google.cloud.dialogflow.v2beta1.Tool getTool(); + + /** + * + * + *
                                          +   * Required. The tool to create.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder getToolOrBuilder(); + + /** + * + * + *
                                          +   * Optional. The ID to use for the tool, which will become the final
                                          +   * component of the tool's resource name.
                                          +   *
                                          +   * The tool ID must be compliant with the regression formula
                                          +   * `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
                                          +   * If the field is not provide, an Id will be auto-generated.
                                          +   * If the field is provided, the caller is responsible for
                                          +   * 1. the uniqueness of the ID, otherwise the request will be rejected.
                                          +   * 2. the consistency for whether to use custom ID or not under a project to
                                          +   * better ensure uniqueness.
                                          +   * 
                                          + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolId. + */ + java.lang.String getToolId(); + + /** + * + * + *
                                          +   * Optional. The ID to use for the tool, which will become the final
                                          +   * component of the tool's resource name.
                                          +   *
                                          +   * The tool ID must be compliant with the regression formula
                                          +   * `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64].
                                          +   * If the field is not provide, an Id will be auto-generated.
                                          +   * If the field is provided, the caller is responsible for
                                          +   * 1. the uniqueness of the ID, otherwise the request will be rejected.
                                          +   * 2. the consistency for whether to use custom ID or not under a project to
                                          +   * better ensure uniqueness.
                                          +   * 
                                          + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolId. + */ + com.google.protobuf.ByteString getToolIdBytes(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CustomPronunciationParams.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CustomPronunciationParams.java new file mode 100644 index 000000000000..4aa35643b714 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CustomPronunciationParams.java @@ -0,0 +1,1203 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/audio_config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Pronunciation customization for a phrase.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CustomPronunciationParams} + */ +public final class CustomPronunciationParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.CustomPronunciationParams) + CustomPronunciationParamsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CustomPronunciationParams.newBuilder() to construct. + private CustomPronunciationParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomPronunciationParams() { + phrase_ = ""; + phoneticEncoding_ = 0; + pronunciation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomPronunciationParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto + .internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto + .internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.class, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder.class); + } + + /** + * + * + *
                                          +   * The phonetic encoding of the phrase.
                                          +   * 
                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding} + */ + public enum PhoneticEncoding implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +     * Not specified.
                                          +     * 
                                          + * + * PHONETIC_ENCODING_UNSPECIFIED = 0; + */ + PHONETIC_ENCODING_UNSPECIFIED(0), + /** + * + * + *
                                          +     * IPA, such as apple -> ˈæpəl.
                                          +     * https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
                                          +     * 
                                          + * + * PHONETIC_ENCODING_IPA = 1; + */ + PHONETIC_ENCODING_IPA(1), + /** + * + * + *
                                          +     * X-SAMPA, such as apple -> "{p@l".
                                          +     * https://en.wikipedia.org/wiki/X-SAMPA
                                          +     * 
                                          + * + * PHONETIC_ENCODING_X_SAMPA = 2; + */ + PHONETIC_ENCODING_X_SAMPA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +     * Not specified.
                                          +     * 
                                          + * + * PHONETIC_ENCODING_UNSPECIFIED = 0; + */ + public static final int PHONETIC_ENCODING_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +     * IPA, such as apple -> ˈæpəl.
                                          +     * https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
                                          +     * 
                                          + * + * PHONETIC_ENCODING_IPA = 1; + */ + public static final int PHONETIC_ENCODING_IPA_VALUE = 1; + + /** + * + * + *
                                          +     * X-SAMPA, such as apple -> "{p@l".
                                          +     * https://en.wikipedia.org/wiki/X-SAMPA
                                          +     * 
                                          + * + * PHONETIC_ENCODING_X_SAMPA = 2; + */ + public static final int PHONETIC_ENCODING_X_SAMPA_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 PhoneticEncoding 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 PhoneticEncoding forNumber(int value) { + switch (value) { + case 0: + return PHONETIC_ENCODING_UNSPECIFIED; + case 1: + return PHONETIC_ENCODING_IPA; + case 2: + return PHONETIC_ENCODING_X_SAMPA; + 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 PhoneticEncoding findValueByNumber(int number) { + return PhoneticEncoding.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PhoneticEncoding[] VALUES = values(); + + public static PhoneticEncoding 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 PhoneticEncoding(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding) + } + + public static final int PHRASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object phrase_ = ""; + + /** + * + * + *
                                          +   * The phrase to which the customization is applied.
                                          +   * The phrase can be multiple words, such as proper nouns, but shouldn't span
                                          +   * the length of the sentence.
                                          +   * 
                                          + * + * string phrase = 1; + * + * @return The phrase. + */ + @java.lang.Override + public java.lang.String getPhrase() { + java.lang.Object ref = phrase_; + 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(); + phrase_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * The phrase to which the customization is applied.
                                          +   * The phrase can be multiple words, such as proper nouns, but shouldn't span
                                          +   * the length of the sentence.
                                          +   * 
                                          + * + * string phrase = 1; + * + * @return The bytes for phrase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhraseBytes() { + java.lang.Object ref = phrase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHONETIC_ENCODING_FIELD_NUMBER = 2; + private int phoneticEncoding_ = 0; + + /** + * + * + *
                                          +   * The phonetic encoding of the phrase.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The enum numeric value on the wire for phoneticEncoding. + */ + @java.lang.Override + public int getPhoneticEncodingValue() { + return phoneticEncoding_; + } + + /** + * + * + *
                                          +   * The phonetic encoding of the phrase.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The phoneticEncoding. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding + getPhoneticEncoding() { + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding result = + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding.forNumber( + phoneticEncoding_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding + .UNRECOGNIZED + : result; + } + + public static final int PRONUNCIATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pronunciation_ = ""; + + /** + * + * + *
                                          +   * The pronunciation of the phrase. This must be in the phonetic encoding
                                          +   * specified above.
                                          +   * 
                                          + * + * string pronunciation = 3; + * + * @return The pronunciation. + */ + @java.lang.Override + public java.lang.String getPronunciation() { + java.lang.Object ref = pronunciation_; + 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(); + pronunciation_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * The pronunciation of the phrase. This must be in the phonetic encoding
                                          +   * specified above.
                                          +   * 
                                          + * + * string pronunciation = 3; + * + * @return The bytes for pronunciation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPronunciationBytes() { + java.lang.Object ref = pronunciation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pronunciation_ = 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.GeneratedMessageV3.isStringEmpty(phrase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrase_); + } + if (phoneticEncoding_ + != com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding + .PHONETIC_ENCODING_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, phoneticEncoding_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pronunciation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pronunciation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phrase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phrase_); + } + if (phoneticEncoding_ + != com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding + .PHONETIC_ENCODING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, phoneticEncoding_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pronunciation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pronunciation_); + } + 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.dialogflow.v2beta1.CustomPronunciationParams)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams other = + (com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams) obj; + + if (!getPhrase().equals(other.getPhrase())) return false; + if (phoneticEncoding_ != other.phoneticEncoding_) return false; + if (!getPronunciation().equals(other.getPronunciation())) 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) + PHRASE_FIELD_NUMBER; + hash = (53 * hash) + getPhrase().hashCode(); + hash = (37 * hash) + PHONETIC_ENCODING_FIELD_NUMBER; + hash = (53 * hash) + phoneticEncoding_; + hash = (37 * hash) + PRONUNCIATION_FIELD_NUMBER; + hash = (53 * hash) + getPronunciation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams 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.dialogflow.v2beta1.CustomPronunciationParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams 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.dialogflow.v2beta1.CustomPronunciationParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Pronunciation customization for a phrase.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CustomPronunciationParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.CustomPronunciationParams) + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto + .internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto + .internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.class, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phrase_ = ""; + phoneticEncoding_ = 0; + pronunciation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto + .internal_static_google_cloud_dialogflow_v2beta1_CustomPronunciationParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams build() { + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams buildPartial() { + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams result = + new com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phrase_ = phrase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.phoneticEncoding_ = phoneticEncoding_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pronunciation_ = pronunciation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams other) { + if (other + == com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.getDefaultInstance()) + return this; + if (!other.getPhrase().isEmpty()) { + phrase_ = other.phrase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.phoneticEncoding_ != 0) { + setPhoneticEncodingValue(other.getPhoneticEncodingValue()); + } + if (!other.getPronunciation().isEmpty()) { + pronunciation_ = other.pronunciation_; + 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: + { + phrase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + phoneticEncoding_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pronunciation_ = 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 phrase_ = ""; + + /** + * + * + *
                                          +     * The phrase to which the customization is applied.
                                          +     * The phrase can be multiple words, such as proper nouns, but shouldn't span
                                          +     * the length of the sentence.
                                          +     * 
                                          + * + * string phrase = 1; + * + * @return The phrase. + */ + public java.lang.String getPhrase() { + java.lang.Object ref = phrase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phrase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * The phrase to which the customization is applied.
                                          +     * The phrase can be multiple words, such as proper nouns, but shouldn't span
                                          +     * the length of the sentence.
                                          +     * 
                                          + * + * string phrase = 1; + * + * @return The bytes for phrase. + */ + public com.google.protobuf.ByteString getPhraseBytes() { + java.lang.Object ref = phrase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * The phrase to which the customization is applied.
                                          +     * The phrase can be multiple words, such as proper nouns, but shouldn't span
                                          +     * the length of the sentence.
                                          +     * 
                                          + * + * string phrase = 1; + * + * @param value The phrase to set. + * @return This builder for chaining. + */ + public Builder setPhrase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The phrase to which the customization is applied.
                                          +     * The phrase can be multiple words, such as proper nouns, but shouldn't span
                                          +     * the length of the sentence.
                                          +     * 
                                          + * + * string phrase = 1; + * + * @return This builder for chaining. + */ + public Builder clearPhrase() { + phrase_ = getDefaultInstance().getPhrase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The phrase to which the customization is applied.
                                          +     * The phrase can be multiple words, such as proper nouns, but shouldn't span
                                          +     * the length of the sentence.
                                          +     * 
                                          + * + * string phrase = 1; + * + * @param value The bytes for phrase to set. + * @return This builder for chaining. + */ + public Builder setPhraseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int phoneticEncoding_ = 0; + + /** + * + * + *
                                          +     * The phonetic encoding of the phrase.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The enum numeric value on the wire for phoneticEncoding. + */ + @java.lang.Override + public int getPhoneticEncodingValue() { + return phoneticEncoding_; + } + + /** + * + * + *
                                          +     * The phonetic encoding of the phrase.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @param value The enum numeric value on the wire for phoneticEncoding to set. + * @return This builder for chaining. + */ + public Builder setPhoneticEncodingValue(int value) { + phoneticEncoding_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The phonetic encoding of the phrase.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The phoneticEncoding. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding + getPhoneticEncoding() { + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding result = + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding.forNumber( + phoneticEncoding_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +     * The phonetic encoding of the phrase.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @param value The phoneticEncoding to set. + * @return This builder for chaining. + */ + public Builder setPhoneticEncoding( + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + phoneticEncoding_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The phonetic encoding of the phrase.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearPhoneticEncoding() { + bitField0_ = (bitField0_ & ~0x00000002); + phoneticEncoding_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pronunciation_ = ""; + + /** + * + * + *
                                          +     * The pronunciation of the phrase. This must be in the phonetic encoding
                                          +     * specified above.
                                          +     * 
                                          + * + * string pronunciation = 3; + * + * @return The pronunciation. + */ + public java.lang.String getPronunciation() { + java.lang.Object ref = pronunciation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pronunciation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * The pronunciation of the phrase. This must be in the phonetic encoding
                                          +     * specified above.
                                          +     * 
                                          + * + * string pronunciation = 3; + * + * @return The bytes for pronunciation. + */ + public com.google.protobuf.ByteString getPronunciationBytes() { + java.lang.Object ref = pronunciation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pronunciation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * The pronunciation of the phrase. This must be in the phonetic encoding
                                          +     * specified above.
                                          +     * 
                                          + * + * string pronunciation = 3; + * + * @param value The pronunciation to set. + * @return This builder for chaining. + */ + public Builder setPronunciation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pronunciation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The pronunciation of the phrase. This must be in the phonetic encoding
                                          +     * specified above.
                                          +     * 
                                          + * + * string pronunciation = 3; + * + * @return This builder for chaining. + */ + public Builder clearPronunciation() { + pronunciation_ = getDefaultInstance().getPronunciation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The pronunciation of the phrase. This must be in the phonetic encoding
                                          +     * specified above.
                                          +     * 
                                          + * + * string pronunciation = 3; + * + * @param value The bytes for pronunciation to set. + * @return This builder for chaining. + */ + public Builder setPronunciationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pronunciation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CustomPronunciationParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.CustomPronunciationParams) + private static final com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams(); + } + + public static com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPronunciationParams 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.dialogflow.v2beta1.CustomPronunciationParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CustomPronunciationParamsOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CustomPronunciationParamsOrBuilder.java new file mode 100644 index 000000000000..add036c95a67 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CustomPronunciationParamsOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/audio_config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface CustomPronunciationParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.CustomPronunciationParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * The phrase to which the customization is applied.
                                          +   * The phrase can be multiple words, such as proper nouns, but shouldn't span
                                          +   * the length of the sentence.
                                          +   * 
                                          + * + * string phrase = 1; + * + * @return The phrase. + */ + java.lang.String getPhrase(); + + /** + * + * + *
                                          +   * The phrase to which the customization is applied.
                                          +   * The phrase can be multiple words, such as proper nouns, but shouldn't span
                                          +   * the length of the sentence.
                                          +   * 
                                          + * + * string phrase = 1; + * + * @return The bytes for phrase. + */ + com.google.protobuf.ByteString getPhraseBytes(); + + /** + * + * + *
                                          +   * The phonetic encoding of the phrase.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The enum numeric value on the wire for phoneticEncoding. + */ + int getPhoneticEncodingValue(); + + /** + * + * + *
                                          +   * The phonetic encoding of the phrase.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2; + * + * + * @return The phoneticEncoding. + */ + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.PhoneticEncoding + getPhoneticEncoding(); + + /** + * + * + *
                                          +   * The pronunciation of the phrase. This must be in the phonetic encoding
                                          +   * specified above.
                                          +   * 
                                          + * + * string pronunciation = 3; + * + * @return The pronunciation. + */ + java.lang.String getPronunciation(); + + /** + * + * + *
                                          +   * The pronunciation of the phrase. This must be in the phonetic encoding
                                          +   * specified above.
                                          +   * 
                                          + * + * string pronunciation = 3; + * + * @return The bytes for pronunciation. + */ + com.google.protobuf.ByteString getPronunciationBytes(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteGeneratorEvaluationRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteGeneratorEvaluationRequest.java new file mode 100644 index 000000000000..e4f68df83ed5 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteGeneratorEvaluationRequest.java @@ -0,0 +1,675 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Request of DeleteGeneratorEvaluation.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest} + */ +public final class DeleteGeneratorEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest) + DeleteGeneratorEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteGeneratorEvaluationRequest.newBuilder() to construct. + private DeleteGeneratorEvaluationRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteGeneratorEvaluationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteGeneratorEvaluationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest.class, + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +   * Required. The generator evaluation resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +   * evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +   * evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest other = + (com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest) 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.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest 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.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest 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.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request of DeleteGeneratorEvaluation.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest) + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest.class, + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest build() { + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest result = + new com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest other) { + if (other + == com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest + .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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest) + private static final com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGeneratorEvaluationRequest 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.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteGeneratorEvaluationRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteGeneratorEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..f824ea6807d9 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteGeneratorEvaluationRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface DeleteGeneratorEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The generator evaluation resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +   * evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +   * Required. The generator evaluation resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +   * evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * 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-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteToolRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteToolRequest.java new file mode 100644 index 000000000000..feb460b67c46 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteToolRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Request of DeleteTool.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteToolRequest} + */ +public final class DeleteToolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.DeleteToolRequest) + DeleteToolRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteToolRequest.newBuilder() to construct. + private DeleteToolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteToolRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteToolRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest.class, + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +   * Required. The tool resource name to delete. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +   * 
                                          + * + * + * 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. The tool resource name to delete. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +   * 
                                          + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.DeleteToolRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest other = + (com.google.cloud.dialogflow.v2beta1.DeleteToolRequest) 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.dialogflow.v2beta1.DeleteToolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest 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.dialogflow.v2beta1.DeleteToolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest 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.dialogflow.v2beta1.DeleteToolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request of DeleteTool.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteToolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.DeleteToolRequest) + com.google.cloud.dialogflow.v2beta1.DeleteToolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest.class, + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.DeleteToolRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DeleteToolRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.DeleteToolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DeleteToolRequest build() { + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DeleteToolRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.DeleteToolRequest result = + new com.google.cloud.dialogflow.v2beta1.DeleteToolRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.DeleteToolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.DeleteToolRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.DeleteToolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.DeleteToolRequest other) { + if (other == com.google.cloud.dialogflow.v2beta1.DeleteToolRequest.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. The tool resource name to delete. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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. The tool resource name to delete. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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. The tool resource name to delete. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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. The tool resource name to delete. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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. The tool resource name to delete. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.DeleteToolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.DeleteToolRequest) + private static final com.google.cloud.dialogflow.v2beta1.DeleteToolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.DeleteToolRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.DeleteToolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteToolRequest 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.dialogflow.v2beta1.DeleteToolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteToolRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteToolRequestOrBuilder.java new file mode 100644 index 000000000000..eec8c45f2874 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteToolRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface DeleteToolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.DeleteToolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The tool resource name to delete. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +   * Required. The tool resource name to delete. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +   * 
                                          + * + * + * 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-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java index ea8adba56f02..d2d0330b7ceb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java @@ -197,13 +197,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"l\n" + "\027ExportOperationMetadata\022Q\n" + "\030exported_gcs_destination\030\001" - + " \001(\0132/.google.cloud.dialogflow.v2beta1.GcsDestination\"\304\002\n" + + " \001(\0132/.google.cloud.dialogflow.v2beta1.GcsDestination\"\363\002\n" + "\032KnowledgeOperationMetadata\022U\n" + "\005state\030\001 \001(\0162A.google.clou" + "d.dialogflow.v2beta1.KnowledgeOperationMetadata.StateB\003\340A\003\022\026\n" + "\016knowledge_base\030\003 \001(\t\022]\n" + "\031export_operation_metadata\030\004 \001(\01328." - + "google.cloud.dialogflow.v2beta1.ExportOperationMetadataH\000\"B\n" + + "google.cloud.dialogflow.v2beta1.ExportOperationMetadataH\000\022-\n" + + "\tdone_time\030\005 \001(\0132\032.google.protobuf.Timestamp\"B\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\013\n" @@ -217,58 +218,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032import_gcs_custom_metadata\030\004 \001(\010B\010\n" + "\006source2\245\025\n" + "\tDocuments\022\322\002\n\r" - + "ListDocuments\0225.google.cloud.dialogflow.v2beta1.ListDocumentsRequest\0326.google." - + "cloud.dialogflow.v2beta1.ListDocumentsRe" - + "sponse\"\321\001\332A\006parent\202\323\344\223\002\301\001\0227/v2beta1/{par" - + "ent=projects/*/knowledgeBases/*}/documentsZE\022C/v2beta1/{parent=projects/*/locati" - + "ons/*/knowledgeBases/*}/documentsZ?\022=/v2" - + "beta1/{parent=projects/*/agent/knowledgeBases/*}/documents\022\277\002\n" - + "\013GetDocument\0223.google.cloud.dialogflow.v2beta1.GetDocument" - + "Request\032).google.cloud.dialogflow.v2beta" - + "1.Document\"\317\001\332A\004name\202\323\344\223\002\301\001\0227/v2beta1/{n" - + "ame=projects/*/knowledgeBases/*/documents/*}ZE\022C/v2beta1/{name=projects/*/locati" - + "ons/*/knowledgeBases/*/documents/*}Z?\022=/" - + "v2beta1/{name=projects/*/agent/knowledgeBases/*/documents/*}\022\213\003\n" - + "\016CreateDocument\0226.google.cloud.dialogflow.v2beta1.Create" - + "DocumentRequest\032\035.google.longrunning.Operation\"\241\002\312A&\n" - + "\010Document\022\032KnowledgeOperati" - + "onMetadata\332A\017parent,document\202\323\344\223\002\337\001\"7/v2" - + "beta1/{parent=projects/*/knowledgeBases/*}/documents:\010documentZO\"C/v2beta1/{pare" - + "nt=projects/*/locations/*/knowledgeBases/*}/documents:\010documentZI\"=/v2beta1/{par" - + "ent=projects/*/agent/knowledgeBases/*}/documents:\010document\022\277\002\n" - + "\017ImportDocuments\0227.google.cloud.dialogflow.v2beta1.ImportD" - + "ocumentsRequest\032\035.google.longrunning.Operation\"\323\001\312A5\n" - + "\027ImportDocumentsResponse\022\032K" - + "nowledgeOperationMetadata\202\323\344\223\002\224\001\">/v2bet" - + "a1/{parent=projects/*/knowledgeBases/*}/documents:import:\001*ZO\"J/v2beta1/{parent=" - + "projects/*/locations/*/knowledgeBases/*}/documents:import:\001*\022\357\002\n" - + "\016DeleteDocument\0226.google.cloud.dialogflow.v2beta1.Delete" - + "DocumentRequest\032\035.google.longrunning.Operation\"\205\002\312A3\n" - + "\025google.protobuf.Empty\022\032Kno" - + "wledgeOperationMetadata\332A\004name\202\323\344\223\002\301\001*7/" - + "v2beta1/{name=projects/*/knowledgeBases/*/documents/*}ZE*C/v2beta1/{name=project" - + "s/*/locations/*/knowledgeBases/*/documen" - + "ts/*}Z?*=/v2beta1/{name=projects/*/agent/knowledgeBases/*/documents/*}\022\266\003\n" - + "\016UpdateDocument\0226.google.cloud.dialogflow.v2be" - + "ta1.UpdateDocumentRequest\032\035.google.longrunning.Operation\"\314\002\312A&\n" - + "\010Document\022\032KnowledgeOperationMetadata\332A\024document,update_m" - + "ask\332A\010document\202\323\344\223\002\372\0012@/v2beta1/{documen" - + "t.name=projects/*/knowledgeBases/*/documents/*}:\010documentZX2L/v2beta1/{document." - + "name=projects/*/locations/*/knowledgeBases/*/documents/*}:\010documentZR2F/v2beta1/" - + "{document.name=projects/*/agent/knowledgeBases/*/documents/*}:\010document\022\213\003\n" - + "\016ReloadDocument\0226.google.cloud.dialogflow.v2b" - + "eta1.ReloadDocumentRequest\032\035.google.longrunning.Operation\"\241\002\312A&\n" - + "\010Document\022\032KnowledgeOperationMetadata\332A\017name,gcs_source\202" - + "\323\344\223\002\337\001\">/v2beta1/{name=projects/*/knowle" - + "dgeBases/*/documents/*}:reload:\001*ZO\"J/v2beta1/{name=projects/*/locations/*/knowl" - + "edgeBases/*/documents/*}:reload:\001*ZI\"D/v2beta1/{name=projects/*/agent/knowledgeB" - + "ases/*/documents/*}:reload:\001*\032x\312A\031dialog" - + "flow.googleapis.com\322AYhttps://www.google" - + "apis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\242\001\n" + + "ListDocuments\0225.google.cloud.dialogflow.v2beta1.ListDocumentsRequest\0326." + + "google.cloud.dialogflow.v2beta1.ListDocu" + + "mentsResponse\"\321\001\332A\006parent\202\323\344\223\002\301\001\0227/v2bet" + + "a1/{parent=projects/*/knowledgeBases/*}/documentsZE\022C/v2beta1/{parent=projects/*" + + "/locations/*/knowledgeBases/*}/documents" + + "Z?\022=/v2beta1/{parent=projects/*/agent/knowledgeBases/*}/documents\022\277\002\n" + + "\013GetDocument\0223.google.cloud.dialogflow.v2beta1.GetD" + + "ocumentRequest\032).google.cloud.dialogflow" + + ".v2beta1.Document\"\317\001\332A\004name\202\323\344\223\002\301\001\0227/v2b" + + "eta1/{name=projects/*/knowledgeBases/*/documents/*}ZE\022C/v2beta1/{name=projects/*" + + "/locations/*/knowledgeBases/*/documents/" + + "*}Z?\022=/v2beta1/{name=projects/*/agent/knowledgeBases/*/documents/*}\022\213\003\n" + + "\016CreateDocument\0226.google.cloud.dialogflow.v2beta1" + + ".CreateDocumentRequest\032\035.google.longrunning.Operation\"\241\002\312A&\n" + + "\010Document\022\032Knowledge" + + "OperationMetadata\332A\017parent,document\202\323\344\223\002" + + "\337\001\"7/v2beta1/{parent=projects/*/knowledg" + + "eBases/*}/documents:\010documentZO\"C/v2beta1/{parent=projects/*/locations/*/knowled" + + "geBases/*}/documents:\010documentZI\"=/v2bet" + + "a1/{parent=projects/*/agent/knowledgeBases/*}/documents:\010document\022\277\002\n" + + "\017ImportDocuments\0227.google.cloud.dialogflow.v2beta1." + + "ImportDocumentsRequest\032\035.google.longrunning.Operation\"\323\001\312A5\n" + + "\027ImportDocumentsResp" + + "onse\022\032KnowledgeOperationMetadata\202\323\344\223\002\224\001\"" + + ">/v2beta1/{parent=projects/*/knowledgeBases/*}/documents:import:\001*ZO\"J/v2beta1/{" + + "parent=projects/*/locations/*/knowledgeBases/*}/documents:import:\001*\022\357\002\n" + + "\016DeleteDocument\0226.google.cloud.dialogflow.v2beta1" + + ".DeleteDocumentRequest\032\035.google.longrunning.Operation\"\205\002\312A3\n" + + "\025google.protobuf.Empty\022\032KnowledgeOperationMetadata\332A\004name\202\323\344" + + "\223\002\301\001*7/v2beta1/{name=projects/*/knowledg" + + "eBases/*/documents/*}ZE*C/v2beta1/{name=projects/*/locations/*/knowledgeBases/*/" + + "documents/*}Z?*=/v2beta1/{name=projects/" + + "*/agent/knowledgeBases/*/documents/*}\022\266\003\n" + + "\016UpdateDocument\0226.google.cloud.dialogfl" + + "ow.v2beta1.UpdateDocumentRequest\032\035.google.longrunning.Operation\"\314\002\312A&\n" + + "\010Document\022\032KnowledgeOperationMetadata\332A\024document,u" + + "pdate_mask\332A\010document\202\323\344\223\002\372\0012@/v2beta1/{" + + "document.name=projects/*/knowledgeBases/*/documents/*}:\010documentZX2L/v2beta1/{do" + + "cument.name=projects/*/locations/*/knowledgeBases/*/documents/*}:\010documentZR2F/v" + + "2beta1/{document.name=projects/*/agent/k" + + "nowledgeBases/*/documents/*}:\010document\022\213\003\n" + + "\016ReloadDocument\0226.google.cloud.dialogf" + + "low.v2beta1.ReloadDocumentRequest\032\035.google.longrunning.Operation\"\241\002\312A&\n" + + "\010Document\022\032KnowledgeOperationMetadata\332A\017name,gcs_" + + "source\202\323\344\223\002\337\001\">/v2beta1/{name=projects/*" + + "/knowledgeBases/*/documents/*}:reload:\001*ZO\"J/v2beta1/{name=projects/*/locations/" + + "*/knowledgeBases/*/documents/*}:reload:\001*ZI\"D/v2beta1/{name=projects/*/agent/kno" + + "wledgeBases/*/documents/*}:reload:\001*\032x\312A" + + "\031dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/dialogflowB\242\001\n" + "#com.google.cloud.dialogflow.v2beta1B\r" - + "DocumentProtoP\001ZCcloud.google.com/go/dialogflow" - + "/apiv2beta1/dialogflowpb;dialogflowpb\242\002\002" - + "DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006proto3" + + "DocumentProtoP\001ZCcloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogfl" + + "owpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -416,7 +418,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor, new java.lang.String[] { - "State", "KnowledgeBase", "ExportOperationMetadata", "OperationMetadata", + "State", "KnowledgeBase", "ExportOperationMetadata", "DoneTime", "OperationMetadata", }); internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_descriptor = getDescriptor().getMessageTypes().get(12); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EvaluationStatus.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EvaluationStatus.java new file mode 100644 index 000000000000..c6c991510511 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EvaluationStatus.java @@ -0,0 +1,899 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * A common evalaution pipeline status.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.EvaluationStatus} + */ +public final class EvaluationStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.EvaluationStatus) + EvaluationStatusOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvaluationStatus.newBuilder() to construct. + private EvaluationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvaluationStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvaluationStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.EvaluationStatus.class, + com.google.cloud.dialogflow.v2beta1.EvaluationStatus.Builder.class); + } + + private int bitField0_; + public static final int DONE_FIELD_NUMBER = 1; + private boolean done_ = false; + + /** + * + * + *
                                          +   * Output only. If the value is `false`, it means the evaluation is still in
                                          +   * progress. If `true`, the operation is completed, and either `error` or
                                          +   * `response` is available.
                                          +   * 
                                          + * + * optional bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the done field is set. + */ + @java.lang.Override + public boolean hasDone() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Output only. If the value is `false`, it means the evaluation is still in
                                          +   * progress. If `true`, the operation is completed, and either `error` or
                                          +   * `response` is available.
                                          +   * 
                                          + * + * optional bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The done. + */ + @java.lang.Override + public boolean getDone() { + return done_; + } + + public static final int PIPELINE_STATUS_FIELD_NUMBER = 2; + private com.google.rpc.Status pipelineStatus_; + + /** + * + * + *
                                          +   * Output only. The error result of the evaluation in case of failure in
                                          +   * evaluation pipeline.
                                          +   * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pipelineStatus field is set. + */ + @java.lang.Override + public boolean hasPipelineStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +   * Output only. The error result of the evaluation in case of failure in
                                          +   * evaluation pipeline.
                                          +   * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineStatus. + */ + @java.lang.Override + public com.google.rpc.Status getPipelineStatus() { + return pipelineStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : pipelineStatus_; + } + + /** + * + * + *
                                          +   * Output only. The error result of the evaluation in case of failure in
                                          +   * evaluation pipeline.
                                          +   * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getPipelineStatusOrBuilder() { + return pipelineStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : pipelineStatus_; + } + + 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.writeBool(1, done_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPipelineStatus()); + } + 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.computeBoolSize(1, done_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPipelineStatus()); + } + 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.dialogflow.v2beta1.EvaluationStatus)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.EvaluationStatus other = + (com.google.cloud.dialogflow.v2beta1.EvaluationStatus) obj; + + if (hasDone() != other.hasDone()) return false; + if (hasDone()) { + if (getDone() != other.getDone()) return false; + } + if (hasPipelineStatus() != other.hasPipelineStatus()) return false; + if (hasPipelineStatus()) { + if (!getPipelineStatus().equals(other.getPipelineStatus())) 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 (hasDone()) { + hash = (37 * hash) + DONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); + } + if (hasPipelineStatus()) { + hash = (37 * hash) + PIPELINE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getPipelineStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus 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.dialogflow.v2beta1.EvaluationStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus 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.dialogflow.v2beta1.EvaluationStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.EvaluationStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * A common evalaution pipeline status.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.EvaluationStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.EvaluationStatus) + com.google.cloud.dialogflow.v2beta1.EvaluationStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.EvaluationStatus.class, + com.google.cloud.dialogflow.v2beta1.EvaluationStatus.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.EvaluationStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPipelineStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + done_ = false; + pipelineStatus_ = null; + if (pipelineStatusBuilder_ != null) { + pipelineStatusBuilder_.dispose(); + pipelineStatusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.EvaluationStatus getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.EvaluationStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.EvaluationStatus build() { + com.google.cloud.dialogflow.v2beta1.EvaluationStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.EvaluationStatus buildPartial() { + com.google.cloud.dialogflow.v2beta1.EvaluationStatus result = + new com.google.cloud.dialogflow.v2beta1.EvaluationStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.EvaluationStatus result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.done_ = done_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pipelineStatus_ = + pipelineStatusBuilder_ == null ? pipelineStatus_ : pipelineStatusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.EvaluationStatus) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.EvaluationStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.EvaluationStatus other) { + if (other == com.google.cloud.dialogflow.v2beta1.EvaluationStatus.getDefaultInstance()) + return this; + if (other.hasDone()) { + setDone(other.getDone()); + } + if (other.hasPipelineStatus()) { + mergePipelineStatus(other.getPipelineStatus()); + } + 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: + { + done_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getPipelineStatusFieldBuilder().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 boolean done_; + + /** + * + * + *
                                          +     * Output only. If the value is `false`, it means the evaluation is still in
                                          +     * progress. If `true`, the operation is completed, and either `error` or
                                          +     * `response` is available.
                                          +     * 
                                          + * + * optional bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the done field is set. + */ + @java.lang.Override + public boolean hasDone() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Output only. If the value is `false`, it means the evaluation is still in
                                          +     * progress. If `true`, the operation is completed, and either `error` or
                                          +     * `response` is available.
                                          +     * 
                                          + * + * optional bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The done. + */ + @java.lang.Override + public boolean getDone() { + return done_; + } + + /** + * + * + *
                                          +     * Output only. If the value is `false`, it means the evaluation is still in
                                          +     * progress. If `true`, the operation is completed, and either `error` or
                                          +     * `response` is available.
                                          +     * 
                                          + * + * optional bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The done to set. + * @return This builder for chaining. + */ + public Builder setDone(boolean value) { + + done_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. If the value is `false`, it means the evaluation is still in
                                          +     * progress. If `true`, the operation is completed, and either `error` or
                                          +     * `response` is available.
                                          +     * 
                                          + * + * optional bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDone() { + bitField0_ = (bitField0_ & ~0x00000001); + done_ = false; + onChanged(); + return this; + } + + private com.google.rpc.Status pipelineStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + pipelineStatusBuilder_; + + /** + * + * + *
                                          +     * Output only. The error result of the evaluation in case of failure in
                                          +     * evaluation pipeline.
                                          +     * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pipelineStatus field is set. + */ + public boolean hasPipelineStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Output only. The error result of the evaluation in case of failure in
                                          +     * evaluation pipeline.
                                          +     * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineStatus. + */ + public com.google.rpc.Status getPipelineStatus() { + if (pipelineStatusBuilder_ == null) { + return pipelineStatus_ == null + ? com.google.rpc.Status.getDefaultInstance() + : pipelineStatus_; + } else { + return pipelineStatusBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Output only. The error result of the evaluation in case of failure in
                                          +     * evaluation pipeline.
                                          +     * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineStatus(com.google.rpc.Status value) { + if (pipelineStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pipelineStatus_ = value; + } else { + pipelineStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The error result of the evaluation in case of failure in
                                          +     * evaluation pipeline.
                                          +     * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineStatus(com.google.rpc.Status.Builder builderForValue) { + if (pipelineStatusBuilder_ == null) { + pipelineStatus_ = builderForValue.build(); + } else { + pipelineStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The error result of the evaluation in case of failure in
                                          +     * evaluation pipeline.
                                          +     * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePipelineStatus(com.google.rpc.Status value) { + if (pipelineStatusBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && pipelineStatus_ != null + && pipelineStatus_ != com.google.rpc.Status.getDefaultInstance()) { + getPipelineStatusBuilder().mergeFrom(value); + } else { + pipelineStatus_ = value; + } + } else { + pipelineStatusBuilder_.mergeFrom(value); + } + if (pipelineStatus_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. The error result of the evaluation in case of failure in
                                          +     * evaluation pipeline.
                                          +     * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPipelineStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + pipelineStatus_ = null; + if (pipelineStatusBuilder_ != null) { + pipelineStatusBuilder_.dispose(); + pipelineStatusBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The error result of the evaluation in case of failure in
                                          +     * evaluation pipeline.
                                          +     * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getPipelineStatusBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPipelineStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. The error result of the evaluation in case of failure in
                                          +     * evaluation pipeline.
                                          +     * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getPipelineStatusOrBuilder() { + if (pipelineStatusBuilder_ != null) { + return pipelineStatusBuilder_.getMessageOrBuilder(); + } else { + return pipelineStatus_ == null + ? com.google.rpc.Status.getDefaultInstance() + : pipelineStatus_; + } + } + + /** + * + * + *
                                          +     * Output only. The error result of the evaluation in case of failure in
                                          +     * evaluation pipeline.
                                          +     * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPipelineStatusFieldBuilder() { + if (pipelineStatusBuilder_ == null) { + pipelineStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getPipelineStatus(), getParentForChildren(), isClean()); + pipelineStatus_ = null; + } + return pipelineStatusBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.EvaluationStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.EvaluationStatus) + private static final com.google.cloud.dialogflow.v2beta1.EvaluationStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.EvaluationStatus(); + } + + public static com.google.cloud.dialogflow.v2beta1.EvaluationStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationStatus 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.dialogflow.v2beta1.EvaluationStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EvaluationStatusOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EvaluationStatusOrBuilder.java new file mode 100644 index 000000000000..1153bde86d85 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EvaluationStatusOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface EvaluationStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.EvaluationStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Output only. If the value is `false`, it means the evaluation is still in
                                          +   * progress. If `true`, the operation is completed, and either `error` or
                                          +   * `response` is available.
                                          +   * 
                                          + * + * optional bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the done field is set. + */ + boolean hasDone(); + + /** + * + * + *
                                          +   * Output only. If the value is `false`, it means the evaluation is still in
                                          +   * progress. If `true`, the operation is completed, and either `error` or
                                          +   * `response` is available.
                                          +   * 
                                          + * + * optional bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The done. + */ + boolean getDone(); + + /** + * + * + *
                                          +   * Output only. The error result of the evaluation in case of failure in
                                          +   * evaluation pipeline.
                                          +   * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pipelineStatus field is set. + */ + boolean hasPipelineStatus(); + + /** + * + * + *
                                          +   * Output only. The error result of the evaluation in case of failure in
                                          +   * evaluation pipeline.
                                          +   * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineStatus. + */ + com.google.rpc.Status getPipelineStatus(); + + /** + * + * + *
                                          +   * Output only. The error result of the evaluation in case of failure in
                                          +   * evaluation pipeline.
                                          +   * 
                                          + * + * .google.rpc.Status pipeline_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getPipelineStatusOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GenerateStatelessSuggestionRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GenerateStatelessSuggestionRequest.java index 10062124c067..3878fd319c01 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GenerateStatelessSuggestionRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GenerateStatelessSuggestionRequest.java @@ -44,6 +44,7 @@ private GenerateStatelessSuggestionRequest( private GenerateStatelessSuggestionRequest() { parent_ = ""; triggerEvents_ = java.util.Collections.emptyList(); + securitySettings_ = ""; } @java.lang.Override @@ -651,6 +652,73 @@ public int getTriggerEventsValue(int index) { private int triggerEventsMemoizedSerializedSize; + public static final int SECURITY_SETTINGS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object securitySettings_ = ""; + + /** + * + * + *
                                          +   * Optional. Name of the CX SecuritySettings which is used to redact generated
                                          +   * response. If this field is empty, try to fetch v2 security_settings, which
                                          +   * is a project level setting. If this field is empty and no v2
                                          +   * security_settings set up in this project, no redaction will be done.
                                          +   *
                                          +   * Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
                                          +   * Settings ID>`.
                                          +   * 
                                          + * + * string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The securitySettings. + */ + @java.lang.Override + public java.lang.String getSecuritySettings() { + java.lang.Object ref = securitySettings_; + 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(); + securitySettings_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. Name of the CX SecuritySettings which is used to redact generated
                                          +   * response. If this field is empty, try to fetch v2 security_settings, which
                                          +   * is a project level setting. If this field is empty and no v2
                                          +   * security_settings set up in this project, no redaction will be done.
                                          +   *
                                          +   * Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
                                          +   * Settings ID>`.
                                          +   * 
                                          + * + * string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for securitySettings. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecuritySettingsBytes() { + java.lang.Object ref = securitySettings_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securitySettings_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -690,6 +758,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < triggerEvents_.size(); i++) { output.writeEnumNoTag(triggerEvents_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, securitySettings_); + } getUnknownFields().writeTo(output); } @@ -739,6 +810,9 @@ public int getSerializedSize() { } triggerEventsMemoizedSerializedSize = dataSize; } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, securitySettings_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -762,6 +836,7 @@ public boolean equals(final java.lang.Object obj) { if (!getConversationContext().equals(other.getConversationContext())) return false; } if (!triggerEvents_.equals(other.triggerEvents_)) return false; + if (!getSecuritySettings().equals(other.getSecuritySettings())) return false; if (!getGeneratorResourceCase().equals(other.getGeneratorResourceCase())) return false; switch (generatorResourceCase_) { case 2: @@ -798,6 +873,8 @@ public int hashCode() { hash = (37 * hash) + TRIGGER_EVENTS_FIELD_NUMBER; hash = (53 * hash) + triggerEvents_.hashCode(); } + hash = (37 * hash) + SECURITY_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSecuritySettings().hashCode(); switch (generatorResourceCase_) { case 2: hash = (37 * hash) + GENERATOR_FIELD_NUMBER; @@ -997,6 +1074,7 @@ public Builder clear() { } triggerEvents_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); + securitySettings_ = ""; generatorResourceCase_ = 0; generatorResource_ = null; return this; @@ -1065,6 +1143,9 @@ private void buildPartial0( : conversationContextBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.securitySettings_ = securitySettings_; + } result.bitField0_ |= to_bitField0_; } @@ -1146,6 +1227,11 @@ public Builder mergeFrom( } onChanged(); } + if (!other.getSecuritySettings().isEmpty()) { + securitySettings_ = other.securitySettings_; + bitField0_ |= 0x00000040; + onChanged(); + } switch (other.getGeneratorResourceCase()) { case GENERATOR: { @@ -1250,6 +1336,12 @@ public Builder mergeFrom( input.popLimit(oldLimit); break; } // case 50 + case 66: + { + securitySettings_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2575,6 +2667,152 @@ public Builder addAllTriggerEventsValue(java.lang.Iterable va return this; } + private java.lang.Object securitySettings_ = ""; + + /** + * + * + *
                                          +     * Optional. Name of the CX SecuritySettings which is used to redact generated
                                          +     * response. If this field is empty, try to fetch v2 security_settings, which
                                          +     * is a project level setting. If this field is empty and no v2
                                          +     * security_settings set up in this project, no redaction will be done.
                                          +     *
                                          +     * Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
                                          +     * Settings ID>`.
                                          +     * 
                                          + * + * string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The securitySettings. + */ + public java.lang.String getSecuritySettings() { + java.lang.Object ref = securitySettings_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securitySettings_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Name of the CX SecuritySettings which is used to redact generated
                                          +     * response. If this field is empty, try to fetch v2 security_settings, which
                                          +     * is a project level setting. If this field is empty and no v2
                                          +     * security_settings set up in this project, no redaction will be done.
                                          +     *
                                          +     * Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
                                          +     * Settings ID>`.
                                          +     * 
                                          + * + * string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for securitySettings. + */ + public com.google.protobuf.ByteString getSecuritySettingsBytes() { + java.lang.Object ref = securitySettings_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securitySettings_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. Name of the CX SecuritySettings which is used to redact generated
                                          +     * response. If this field is empty, try to fetch v2 security_settings, which
                                          +     * is a project level setting. If this field is empty and no v2
                                          +     * security_settings set up in this project, no redaction will be done.
                                          +     *
                                          +     * Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
                                          +     * Settings ID>`.
                                          +     * 
                                          + * + * string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The securitySettings to set. + * @return This builder for chaining. + */ + public Builder setSecuritySettings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + securitySettings_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Name of the CX SecuritySettings which is used to redact generated
                                          +     * response. If this field is empty, try to fetch v2 security_settings, which
                                          +     * is a project level setting. If this field is empty and no v2
                                          +     * security_settings set up in this project, no redaction will be done.
                                          +     *
                                          +     * Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
                                          +     * Settings ID>`.
                                          +     * 
                                          + * + * string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSecuritySettings() { + securitySettings_ = getDefaultInstance().getSecuritySettings(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Name of the CX SecuritySettings which is used to redact generated
                                          +     * response. If this field is empty, try to fetch v2 security_settings, which
                                          +     * is a project level setting. If this field is empty and no v2
                                          +     * security_settings set up in this project, no redaction will be done.
                                          +     *
                                          +     * Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
                                          +     * Settings ID>`.
                                          +     * 
                                          + * + * string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for securitySettings to set. + * @return This builder for chaining. + */ + public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + securitySettings_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GenerateStatelessSuggestionRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GenerateStatelessSuggestionRequestOrBuilder.java index 07d1d356ee3b..054bc691be3d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GenerateStatelessSuggestionRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GenerateStatelessSuggestionRequestOrBuilder.java @@ -355,6 +355,46 @@ com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference getContextRefe */ int getTriggerEventsValue(int index); + /** + * + * + *
                                          +   * Optional. Name of the CX SecuritySettings which is used to redact generated
                                          +   * response. If this field is empty, try to fetch v2 security_settings, which
                                          +   * is a project level setting. If this field is empty and no v2
                                          +   * security_settings set up in this project, no redaction will be done.
                                          +   *
                                          +   * Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
                                          +   * Settings ID>`.
                                          +   * 
                                          + * + * string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The securitySettings. + */ + java.lang.String getSecuritySettings(); + + /** + * + * + *
                                          +   * Optional. Name of the CX SecuritySettings which is used to redact generated
                                          +   * response. If this field is empty, try to fetch v2 security_settings, which
                                          +   * is a project level setting. If this field is empty and no v2
                                          +   * security_settings set up in this project, no redaction will be done.
                                          +   *
                                          +   * Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
                                          +   * Settings ID>`.
                                          +   * 
                                          + * + * string security_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for securitySettings. + */ + com.google.protobuf.ByteString getSecuritySettingsBytes(); + com.google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionRequest.GeneratorResourceCase getGeneratorResourceCase(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java index 4bf3aef7258f..fe207c97e0d2 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java @@ -43,6 +43,7 @@ private Generator() { name_ = ""; description_ = ""; triggerEvent_ = 0; + tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -77,6 +78,7 @@ public enum ContextCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FREE_FORM_CONTEXT(11), + AGENT_COACHING_CONTEXT(12), SUMMARIZATION_CONTEXT(13), CONTEXT_NOT_SET(0); private final int value; @@ -99,6 +101,8 @@ public static ContextCase forNumber(int value) { switch (value) { case 11: return FREE_FORM_CONTEXT; + case 12: + return AGENT_COACHING_CONTEXT; case 13: return SUMMARIZATION_CONTEXT; case 0: @@ -331,6 +335,61 @@ public com.google.cloud.dialogflow.v2beta1.FreeFormContext getFreeFormContext() return com.google.cloud.dialogflow.v2beta1.FreeFormContext.getDefaultInstance(); } + public static final int AGENT_COACHING_CONTEXT_FIELD_NUMBER = 12; + + /** + * + * + *
                                          +   * Input of Agent Coaching feature.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; + * + * @return Whether the agentCoachingContext field is set. + */ + @java.lang.Override + public boolean hasAgentCoachingContext() { + return contextCase_ == 12; + } + + /** + * + * + *
                                          +   * Input of Agent Coaching feature.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; + * + * @return The agentCoachingContext. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingContext getAgentCoachingContext() { + if (contextCase_ == 12) { + return (com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) context_; + } + return com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Input of Agent Coaching feature.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingContextOrBuilder + getAgentCoachingContextOrBuilder() { + if (contextCase_ == 12) { + return (com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) context_; + } + return com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.getDefaultInstance(); + } + public static final int SUMMARIZATION_CONTEXT_FIELD_NUMBER = 13; /** @@ -678,6 +737,150 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int TOOLS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                          +   * Optional. Resource names of the tools that the generator can choose from.
                                          +   * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +   * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the tools. + */ + public com.google.protobuf.ProtocolStringList getToolsList() { + return tools_; + } + + /** + * + * + *
                                          +   * Optional. Resource names of the tools that the generator can choose from.
                                          +   * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +   * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of tools. + */ + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
                                          +   * Optional. Resource names of the tools that the generator can choose from.
                                          +   * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +   * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The tools at the given index. + */ + public java.lang.String getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
                                          +   * Optional. Resource names of the tools that the generator can choose from.
                                          +   * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +   * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the tools at the given index. + */ + public com.google.protobuf.ByteString getToolsBytes(int index) { + return tools_.getByteString(index); + } + + public static final int SUGGESTION_DEDUPING_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestionDedupingConfig_; + + /** + * + * + *
                                          +   * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +   * AI Coach feature.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the suggestionDedupingConfig field is set. + */ + @java.lang.Override + public boolean hasSuggestionDedupingConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +   * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +   * AI Coach feature.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionDedupingConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig + getSuggestionDedupingConfig() { + return suggestionDedupingConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.getDefaultInstance() + : suggestionDedupingConfig_; + } + + /** + * + * + *
                                          +   * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +   * AI Coach feature.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigOrBuilder + getSuggestionDedupingConfigOrBuilder() { + return suggestionDedupingConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.getDefaultInstance() + : suggestionDedupingConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -714,12 +917,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (contextCase_ == 11) { output.writeMessage(11, (com.google.cloud.dialogflow.v2beta1.FreeFormContext) context_); } + if (contextCase_ == 12) { + output.writeMessage(12, (com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) context_); + } if (contextCase_ == 13) { output.writeMessage(13, (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_); } + for (int i = 0; i < tools_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, tools_.getRaw(i)); + } if (foundationModelCase_ == 15) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, foundationModel_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(23, getSuggestionDedupingConfig()); + } getUnknownFields().writeTo(output); } @@ -753,14 +965,32 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, (com.google.cloud.dialogflow.v2beta1.FreeFormContext) context_); } + if (contextCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) context_); + } if (contextCase_ == 13) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 13, (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_); } + { + int dataSize = 0; + for (int i = 0; i < tools_.size(); i++) { + dataSize += computeStringSizeNoTag(tools_.getRaw(i)); + } + size += dataSize; + size += 1 * getToolsList().size(); + } if (foundationModelCase_ == 15) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, foundationModel_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, getSuggestionDedupingConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -792,11 +1022,19 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (!getToolsList().equals(other.getToolsList())) return false; + if (hasSuggestionDedupingConfig() != other.hasSuggestionDedupingConfig()) return false; + if (hasSuggestionDedupingConfig()) { + if (!getSuggestionDedupingConfig().equals(other.getSuggestionDedupingConfig())) return false; + } if (!getContextCase().equals(other.getContextCase())) return false; switch (contextCase_) { case 11: if (!getFreeFormContext().equals(other.getFreeFormContext())) return false; break; + case 12: + if (!getAgentCoachingContext().equals(other.getAgentCoachingContext())) return false; + break; case 13: if (!getSummarizationContext().equals(other.getSummarizationContext())) return false; break; @@ -840,11 +1078,23 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + if (hasSuggestionDedupingConfig()) { + hash = (37 * hash) + SUGGESTION_DEDUPING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionDedupingConfig().hashCode(); + } switch (contextCase_) { case 11: hash = (37 * hash) + FREE_FORM_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getFreeFormContext().hashCode(); break; + case 12: + hash = (37 * hash) + AGENT_COACHING_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getAgentCoachingContext().hashCode(); + break; case 13: hash = (37 * hash) + SUMMARIZATION_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getSummarizationContext().hashCode(); @@ -1004,6 +1254,7 @@ private void maybeForceBuilderInitialization() { getInferenceParameterFieldBuilder(); getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getSuggestionDedupingConfigFieldBuilder(); } } @@ -1016,6 +1267,9 @@ public Builder clear() { if (freeFormContextBuilder_ != null) { freeFormContextBuilder_.clear(); } + if (agentCoachingContextBuilder_ != null) { + agentCoachingContextBuilder_.clear(); + } if (summarizationContextBuilder_ != null) { summarizationContextBuilder_.clear(); } @@ -1035,6 +1289,12 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + suggestionDedupingConfig_ = null; + if (suggestionDedupingConfigBuilder_ != null) { + suggestionDedupingConfigBuilder_.dispose(); + suggestionDedupingConfigBuilder_ = null; + } contextCase_ = 0; context_ = null; foundationModelCase_ = 0; @@ -1083,24 +1343,35 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Generator result) result.description_ = description_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.inferenceParameter_ = inferenceParameterBuilder_ == null ? inferenceParameter_ : inferenceParameterBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.triggerEvent_ = triggerEvent_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000400) != 0)) { + tools_.makeImmutable(); + result.tools_ = tools_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.suggestionDedupingConfig_ = + suggestionDedupingConfigBuilder_ == null + ? suggestionDedupingConfig_ + : suggestionDedupingConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1110,6 +1381,9 @@ private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.Generator re if (contextCase_ == 11 && freeFormContextBuilder_ != null) { result.context_ = freeFormContextBuilder_.build(); } + if (contextCase_ == 12 && agentCoachingContextBuilder_ != null) { + result.context_ = agentCoachingContextBuilder_.build(); + } if (contextCase_ == 13 && summarizationContextBuilder_ != null) { result.context_ = summarizationContextBuilder_.build(); } @@ -1184,12 +1458,30 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Generator other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ |= 0x00000400; + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + if (other.hasSuggestionDedupingConfig()) { + mergeSuggestionDedupingConfig(other.getSuggestionDedupingConfig()); + } switch (other.getContextCase()) { case FREE_FORM_CONTEXT: { mergeFreeFormContext(other.getFreeFormContext()); break; } + case AGENT_COACHING_CONTEXT: + { + mergeAgentCoachingContext(other.getAgentCoachingContext()); + break; + } case SUMMARIZATION_CONTEXT: { mergeSummarizationContext(other.getSummarizationContext()); @@ -1255,25 +1547,25 @@ public Builder mergeFrom( { input.readMessage( getInferenceParameterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 34 case 40: { triggerEvent_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 40 case 66: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 case 74: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 90: @@ -1282,6 +1574,13 @@ public Builder mergeFrom( contextCase_ = 11; break; } // case 90 + case 98: + { + input.readMessage( + getAgentCoachingContextFieldBuilder().getBuilder(), extensionRegistry); + contextCase_ = 12; + break; + } // case 98 case 106: { input.readMessage( @@ -1289,6 +1588,13 @@ public Builder mergeFrom( contextCase_ = 13; break; } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureToolsIsMutable(); + tools_.add(s); + break; + } // case 114 case 122: { java.lang.String s = input.readStringRequireUtf8(); @@ -1296,6 +1602,13 @@ public Builder mergeFrom( foundationModel_ = s; break; } // case 122 + case 186: + { + input.readMessage( + getSuggestionDedupingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 186 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1801,52 +2114,52 @@ public com.google.cloud.dialogflow.v2beta1.FreeFormContext.Builder getFreeFormCo } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.SummarizationContext, - com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder, - com.google.cloud.dialogflow.v2beta1.SummarizationContextOrBuilder> - summarizationContextBuilder_; + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext, + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingContextOrBuilder> + agentCoachingContextBuilder_; /** * * *
                                          -     * Input of Summarization feature.
                                          +     * Input of Agent Coaching feature.
                                                * 
                                          * - * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; * * - * @return Whether the summarizationContext field is set. + * @return Whether the agentCoachingContext field is set. */ @java.lang.Override - public boolean hasSummarizationContext() { - return contextCase_ == 13; + public boolean hasAgentCoachingContext() { + return contextCase_ == 12; } /** * * *
                                          -     * Input of Summarization feature.
                                          +     * Input of Agent Coaching feature.
                                                * 
                                          * - * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; * * - * @return The summarizationContext. + * @return The agentCoachingContext. */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.SummarizationContext getSummarizationContext() { - if (summarizationContextBuilder_ == null) { - if (contextCase_ == 13) { - return (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_; + public com.google.cloud.dialogflow.v2beta1.AgentCoachingContext getAgentCoachingContext() { + if (agentCoachingContextBuilder_ == null) { + if (contextCase_ == 12) { + return (com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) context_; } - return com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.getDefaultInstance(); } else { - if (contextCase_ == 13) { - return summarizationContextBuilder_.getMessage(); + if (contextCase_ == 12) { + return agentCoachingContextBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.getDefaultInstance(); } } @@ -1854,24 +2167,24 @@ public com.google.cloud.dialogflow.v2beta1.SummarizationContext getSummarization * * *
                                          -     * Input of Summarization feature.
                                          +     * Input of Agent Coaching feature.
                                                * 
                                          * - * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; * */ - public Builder setSummarizationContext( - com.google.cloud.dialogflow.v2beta1.SummarizationContext value) { - if (summarizationContextBuilder_ == null) { + public Builder setAgentCoachingContext( + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext value) { + if (agentCoachingContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { - summarizationContextBuilder_.setMessage(value); + agentCoachingContextBuilder_.setMessage(value); } - contextCase_ = 13; + contextCase_ = 12; return this; } @@ -1879,21 +2192,21 @@ public Builder setSummarizationContext( * * *
                                          -     * Input of Summarization feature.
                                          +     * Input of Agent Coaching feature.
                                                * 
                                          * - * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; * */ - public Builder setSummarizationContext( - com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder builderForValue) { - if (summarizationContextBuilder_ == null) { + public Builder setAgentCoachingContext( + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.Builder builderForValue) { + if (agentCoachingContextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { - summarizationContextBuilder_.setMessage(builderForValue.build()); + agentCoachingContextBuilder_.setMessage(builderForValue.build()); } - contextCase_ = 13; + contextCase_ = 12; return this; } @@ -1901,21 +2214,21 @@ public Builder setSummarizationContext( * * *
                                          -     * Input of Summarization feature.
                                          +     * Input of Agent Coaching feature.
                                                * 
                                          * - * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; * */ - public Builder mergeSummarizationContext( - com.google.cloud.dialogflow.v2beta1.SummarizationContext value) { - if (summarizationContextBuilder_ == null) { - if (contextCase_ == 13 + public Builder mergeAgentCoachingContext( + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext value) { + if (agentCoachingContextBuilder_ == null) { + if (contextCase_ == 12 && context_ - != com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance()) { + != com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.getDefaultInstance()) { context_ = - com.google.cloud.dialogflow.v2beta1.SummarizationContext.newBuilder( - (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_) + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.newBuilder( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) context_) .mergeFrom(value) .buildPartial(); } else { @@ -1923,13 +2236,13 @@ public Builder mergeSummarizationContext( } onChanged(); } else { - if (contextCase_ == 13) { - summarizationContextBuilder_.mergeFrom(value); + if (contextCase_ == 12) { + agentCoachingContextBuilder_.mergeFrom(value); } else { - summarizationContextBuilder_.setMessage(value); + agentCoachingContextBuilder_.setMessage(value); } } - contextCase_ = 13; + contextCase_ = 12; return this; } @@ -1937,25 +2250,25 @@ public Builder mergeSummarizationContext( * * *
                                          -     * Input of Summarization feature.
                                          +     * Input of Agent Coaching feature.
                                                * 
                                          * - * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; * */ - public Builder clearSummarizationContext() { - if (summarizationContextBuilder_ == null) { - if (contextCase_ == 13) { + public Builder clearAgentCoachingContext() { + if (agentCoachingContextBuilder_ == null) { + if (contextCase_ == 12) { contextCase_ = 0; context_ = null; onChanged(); } } else { - if (contextCase_ == 13) { + if (contextCase_ == 12) { contextCase_ = 0; context_ = null; } - summarizationContextBuilder_.clear(); + agentCoachingContextBuilder_.clear(); } return this; } @@ -1964,37 +2277,37 @@ public Builder clearSummarizationContext() { * * *
                                          -     * Input of Summarization feature.
                                          +     * Input of Agent Coaching feature.
                                                * 
                                          * - * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; * */ - public com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder - getSummarizationContextBuilder() { - return getSummarizationContextFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.Builder + getAgentCoachingContextBuilder() { + return getAgentCoachingContextFieldBuilder().getBuilder(); } /** * * *
                                          -     * Input of Summarization feature.
                                          +     * Input of Agent Coaching feature.
                                                * 
                                          * - * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; * */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.SummarizationContextOrBuilder - getSummarizationContextOrBuilder() { - if ((contextCase_ == 13) && (summarizationContextBuilder_ != null)) { - return summarizationContextBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.AgentCoachingContextOrBuilder + getAgentCoachingContextOrBuilder() { + if ((contextCase_ == 12) && (agentCoachingContextBuilder_ != null)) { + return agentCoachingContextBuilder_.getMessageOrBuilder(); } else { - if (contextCase_ == 13) { - return (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_; + if (contextCase_ == 12) { + return (com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) context_; } - return com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.getDefaultInstance(); } } @@ -2002,37 +2315,269 @@ public Builder clearSummarizationContext() { * * *
                                          -     * Input of Summarization feature.
                                          +     * Input of Agent Coaching feature.
                                                * 
                                          * - * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.SummarizationContext, - com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder, - com.google.cloud.dialogflow.v2beta1.SummarizationContextOrBuilder> - getSummarizationContextFieldBuilder() { - if (summarizationContextBuilder_ == null) { - if (!(contextCase_ == 13)) { - context_ = com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext, + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingContextOrBuilder> + getAgentCoachingContextFieldBuilder() { + if (agentCoachingContextBuilder_ == null) { + if (!(contextCase_ == 12)) { + context_ = com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.getDefaultInstance(); } - summarizationContextBuilder_ = + agentCoachingContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.SummarizationContext, - com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder, - com.google.cloud.dialogflow.v2beta1.SummarizationContextOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_, + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext, + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingContextOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingContext) context_, getParentForChildren(), isClean()); context_ = null; } - contextCase_ = 13; + contextCase_ = 12; onChanged(); - return summarizationContextBuilder_; + return agentCoachingContextBuilder_; } - private com.google.cloud.dialogflow.v2beta1.InferenceParameter inferenceParameter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationContext, + com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationContextOrBuilder> + summarizationContextBuilder_; + + /** + * + * + *
                                          +     * Input of Summarization feature.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * + * + * @return Whether the summarizationContext field is set. + */ + @java.lang.Override + public boolean hasSummarizationContext() { + return contextCase_ == 13; + } + + /** + * + * + *
                                          +     * Input of Summarization feature.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * + * + * @return The summarizationContext. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationContext getSummarizationContext() { + if (summarizationContextBuilder_ == null) { + if (contextCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance(); + } else { + if (contextCase_ == 13) { + return summarizationContextBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Input of Summarization feature.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * + */ + public Builder setSummarizationContext( + com.google.cloud.dialogflow.v2beta1.SummarizationContext value) { + if (summarizationContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + onChanged(); + } else { + summarizationContextBuilder_.setMessage(value); + } + contextCase_ = 13; + return this; + } + + /** + * + * + *
                                          +     * Input of Summarization feature.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * + */ + public Builder setSummarizationContext( + com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder builderForValue) { + if (summarizationContextBuilder_ == null) { + context_ = builderForValue.build(); + onChanged(); + } else { + summarizationContextBuilder_.setMessage(builderForValue.build()); + } + contextCase_ = 13; + return this; + } + + /** + * + * + *
                                          +     * Input of Summarization feature.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * + */ + public Builder mergeSummarizationContext( + com.google.cloud.dialogflow.v2beta1.SummarizationContext value) { + if (summarizationContextBuilder_ == null) { + if (contextCase_ == 13 + && context_ + != com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance()) { + context_ = + com.google.cloud.dialogflow.v2beta1.SummarizationContext.newBuilder( + (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_) + .mergeFrom(value) + .buildPartial(); + } else { + context_ = value; + } + onChanged(); + } else { + if (contextCase_ == 13) { + summarizationContextBuilder_.mergeFrom(value); + } else { + summarizationContextBuilder_.setMessage(value); + } + } + contextCase_ = 13; + return this; + } + + /** + * + * + *
                                          +     * Input of Summarization feature.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * + */ + public Builder clearSummarizationContext() { + if (summarizationContextBuilder_ == null) { + if (contextCase_ == 13) { + contextCase_ = 0; + context_ = null; + onChanged(); + } + } else { + if (contextCase_ == 13) { + contextCase_ = 0; + context_ = null; + } + summarizationContextBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Input of Summarization feature.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder + getSummarizationContextBuilder() { + return getSummarizationContextFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Input of Summarization feature.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationContextOrBuilder + getSummarizationContextOrBuilder() { + if ((contextCase_ == 13) && (summarizationContextBuilder_ != null)) { + return summarizationContextBuilder_.getMessageOrBuilder(); + } else { + if (contextCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Input of Summarization feature.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.SummarizationContext summarization_context = 13; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationContext, + com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationContextOrBuilder> + getSummarizationContextFieldBuilder() { + if (summarizationContextBuilder_ == null) { + if (!(contextCase_ == 13)) { + context_ = com.google.cloud.dialogflow.v2beta1.SummarizationContext.getDefaultInstance(); + } + summarizationContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationContext, + com.google.cloud.dialogflow.v2beta1.SummarizationContext.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationContextOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SummarizationContext) context_, + getParentForChildren(), + isClean()); + context_ = null; + } + contextCase_ = 13; + onChanged(); + return summarizationContextBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.InferenceParameter inferenceParameter_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2beta1.InferenceParameter, com.google.cloud.dialogflow.v2beta1.InferenceParameter.Builder, @@ -2053,7 +2598,7 @@ public Builder clearSummarizationContext() { * @return Whether the inferenceParameter field is set. */ public boolean hasInferenceParameter() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2100,7 +2645,7 @@ public Builder setInferenceParameter( } else { inferenceParameterBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2123,7 +2668,7 @@ public Builder setInferenceParameter( } else { inferenceParameterBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2142,7 +2687,7 @@ public Builder setInferenceParameter( public Builder mergeInferenceParameter( com.google.cloud.dialogflow.v2beta1.InferenceParameter value) { if (inferenceParameterBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && inferenceParameter_ != null && inferenceParameter_ != com.google.cloud.dialogflow.v2beta1.InferenceParameter.getDefaultInstance()) { @@ -2154,7 +2699,7 @@ public Builder mergeInferenceParameter( inferenceParameterBuilder_.mergeFrom(value); } if (inferenceParameter_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2172,7 +2717,7 @@ public Builder mergeInferenceParameter( *
                                          */ public Builder clearInferenceParameter() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); inferenceParameter_ = null; if (inferenceParameterBuilder_ != null) { inferenceParameterBuilder_.dispose(); @@ -2195,7 +2740,7 @@ public Builder clearInferenceParameter() { */ public com.google.cloud.dialogflow.v2beta1.InferenceParameter.Builder getInferenceParameterBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getInferenceParameterFieldBuilder().getBuilder(); } @@ -2288,7 +2833,7 @@ public int getTriggerEventValue() { */ public Builder setTriggerEventValue(int value) { triggerEvent_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2335,7 +2880,7 @@ public Builder setTriggerEvent(com.google.cloud.dialogflow.v2beta1.TriggerEvent if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; triggerEvent_ = value.getNumber(); onChanged(); return this; @@ -2356,7 +2901,7 @@ public Builder setTriggerEvent(com.google.cloud.dialogflow.v2beta1.TriggerEvent * @return This builder for chaining. */ public Builder clearTriggerEvent() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); triggerEvent_ = 0; onChanged(); return this; @@ -2546,7 +3091,7 @@ public Builder setPublishedModelBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2592,7 +3137,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2614,7 +3159,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2632,7 +3177,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2643,7 +3188,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2661,7 +3206,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
                                          */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2683,7 +3228,7 @@ public Builder clearCreateTime() { *
                                          */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2758,7 +3303,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -2804,7 +3349,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2826,7 +3371,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2844,7 +3389,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -2855,7 +3400,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -2873,7 +3418,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
                                          */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -2895,7 +3440,7 @@ public Builder clearUpdateTime() { *
                                          */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2949,6 +3494,445 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private com.google.protobuf.LazyStringArrayList tools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureToolsIsMutable() { + if (!tools_.isModifiable()) { + tools_ = new com.google.protobuf.LazyStringArrayList(tools_); + } + bitField0_ |= 0x00000400; + } + + /** + * + * + *
                                          +     * Optional. Resource names of the tools that the generator can choose from.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +     * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the tools. + */ + public com.google.protobuf.ProtocolStringList getToolsList() { + tools_.makeImmutable(); + return tools_; + } + + /** + * + * + *
                                          +     * Optional. Resource names of the tools that the generator can choose from.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +     * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of tools. + */ + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
                                          +     * Optional. Resource names of the tools that the generator can choose from.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +     * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The tools at the given index. + */ + public java.lang.String getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
                                          +     * Optional. Resource names of the tools that the generator can choose from.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +     * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the tools at the given index. + */ + public com.google.protobuf.ByteString getToolsBytes(int index) { + return tools_.getByteString(index); + } + + /** + * + * + *
                                          +     * Optional. Resource names of the tools that the generator can choose from.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +     * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The tools to set. + * @return This builder for chaining. + */ + public Builder setTools(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Resource names of the tools that the generator can choose from.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +     * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tools to add. + * @return This builder for chaining. + */ + public Builder addTools(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Resource names of the tools that the generator can choose from.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +     * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The tools to add. + * @return This builder for chaining. + */ + public Builder addAllTools(java.lang.Iterable values) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Resource names of the tools that the generator can choose from.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +     * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTools() { + tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Resource names of the tools that the generator can choose from.
                                          +     * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +     * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the tools to add. + * @return This builder for chaining. + */ + public Builder addToolsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureToolsIsMutable(); + tools_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestionDedupingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig, + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigOrBuilder> + suggestionDedupingConfigBuilder_; + + /** + * + * + *
                                          +     * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +     * AI Coach feature.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the suggestionDedupingConfig field is set. + */ + public boolean hasSuggestionDedupingConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
                                          +     * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +     * AI Coach feature.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionDedupingConfig. + */ + public com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig + getSuggestionDedupingConfig() { + if (suggestionDedupingConfigBuilder_ == null) { + return suggestionDedupingConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.getDefaultInstance() + : suggestionDedupingConfig_; + } else { + return suggestionDedupingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +     * AI Coach feature.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSuggestionDedupingConfig( + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig value) { + if (suggestionDedupingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestionDedupingConfig_ = value; + } else { + suggestionDedupingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +     * AI Coach feature.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSuggestionDedupingConfig( + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.Builder builderForValue) { + if (suggestionDedupingConfigBuilder_ == null) { + suggestionDedupingConfig_ = builderForValue.build(); + } else { + suggestionDedupingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +     * AI Coach feature.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSuggestionDedupingConfig( + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig value) { + if (suggestionDedupingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && suggestionDedupingConfig_ != null + && suggestionDedupingConfig_ + != com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig + .getDefaultInstance()) { + getSuggestionDedupingConfigBuilder().mergeFrom(value); + } else { + suggestionDedupingConfig_ = value; + } + } else { + suggestionDedupingConfigBuilder_.mergeFrom(value); + } + if (suggestionDedupingConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +     * AI Coach feature.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSuggestionDedupingConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + suggestionDedupingConfig_ = null; + if (suggestionDedupingConfigBuilder_ != null) { + suggestionDedupingConfigBuilder_.dispose(); + suggestionDedupingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +     * AI Coach feature.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.Builder + getSuggestionDedupingConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getSuggestionDedupingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +     * AI Coach feature.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigOrBuilder + getSuggestionDedupingConfigOrBuilder() { + if (suggestionDedupingConfigBuilder_ != null) { + return suggestionDedupingConfigBuilder_.getMessageOrBuilder(); + } else { + return suggestionDedupingConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.getDefaultInstance() + : suggestionDedupingConfig_; + } + } + + /** + * + * + *
                                          +     * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +     * AI Coach feature.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig, + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigOrBuilder> + getSuggestionDedupingConfigFieldBuilder() { + if (suggestionDedupingConfigBuilder_ == null) { + suggestionDedupingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig, + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigOrBuilder>( + getSuggestionDedupingConfig(), getParentForChildren(), isClean()); + suggestionDedupingConfig_ = null; + } + return suggestionDedupingConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluation.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluation.java new file mode 100644 index 000000000000..a2f90df17111 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluation.java @@ -0,0 +1,3198 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Represents evaluation result of a generator.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorEvaluation} + */ +public final class GeneratorEvaluation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluation) + GeneratorEvaluationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GeneratorEvaluation.newBuilder() to construct. + private GeneratorEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GeneratorEvaluation() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GeneratorEvaluation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder.class); + } + + private int bitField0_; + private int metricsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object metrics_; + + public enum MetricsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SUMMARIZATION_METRICS(6), + METRICS_NOT_SET(0); + private final int value; + + private MetricsCase(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 MetricsCase valueOf(int value) { + return forNumber(value); + } + + public static MetricsCase forNumber(int value) { + switch (value) { + case 6: + return SUMMARIZATION_METRICS; + case 0: + return METRICS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MetricsCase getMetricsCase() { + return MetricsCase.forNumber(metricsCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +   * Output only. Identifier. The resource name of the evaluation. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +   * evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
                                          +   * Output only. Identifier. The resource name of the evaluation. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +   * evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +   * Optional. The display name of the generator evaluation. At most 64 bytes
                                          +   * long.
                                          +   * 
                                          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The display name of the generator evaluation. At most 64 bytes
                                          +   * long.
                                          +   * 
                                          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATOR_EVALUATION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generatorEvaluationConfig_; + + /** + * + * + *
                                          +   * Required. The configuration of the evaluation task.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the generatorEvaluationConfig field is set. + */ + @java.lang.Override + public boolean hasGeneratorEvaluationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Required. The configuration of the evaluation task.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The generatorEvaluationConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + getGeneratorEvaluationConfig() { + return generatorEvaluationConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.getDefaultInstance() + : generatorEvaluationConfig_; + } + + /** + * + * + *
                                          +   * Required. The configuration of the evaluation task.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfigOrBuilder + getGeneratorEvaluationConfigOrBuilder() { + return generatorEvaluationConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.getDefaultInstance() + : generatorEvaluationConfig_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                          +   * Output only. Creation time of this generator evaluation.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +   * Output only. Creation time of this generator evaluation.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Creation time of this generator evaluation.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.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 COMPLETE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp completeTime_; + + /** + * + * + *
                                          +   * Output only. Completion time of this generator evaluation.
                                          +   * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + @java.lang.Override + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +   * Output only. Completion time of this generator evaluation.
                                          +   * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + /** + * + * + *
                                          +   * Output only. Completion time of this generator evaluation.
                                          +   * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + public static final int INITIAL_GENERATOR_FIELD_NUMBER = 5; + private com.google.cloud.dialogflow.v2beta1.Generator initialGenerator_; + + /** + * + * + *
                                          +   * Required. The initial generator that was used when creating this
                                          +   * evaluation. This is a copy of the generator read from storage when creating
                                          +   * the evaluation.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the initialGenerator field is set. + */ + @java.lang.Override + public boolean hasInitialGenerator() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +   * Required. The initial generator that was used when creating this
                                          +   * evaluation. This is a copy of the generator read from storage when creating
                                          +   * the evaluation.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The initialGenerator. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Generator getInitialGenerator() { + return initialGenerator_ == null + ? com.google.cloud.dialogflow.v2beta1.Generator.getDefaultInstance() + : initialGenerator_; + } + + /** + * + * + *
                                          +   * Required. The initial generator that was used when creating this
                                          +   * evaluation. This is a copy of the generator read from storage when creating
                                          +   * the evaluation.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorOrBuilder getInitialGeneratorOrBuilder() { + return initialGenerator_ == null + ? com.google.cloud.dialogflow.v2beta1.Generator.getDefaultInstance() + : initialGenerator_; + } + + public static final int SUMMARIZATION_METRICS_FIELD_NUMBER = 6; + + /** + * + * + *
                                          +   * Output only. Only available when the summarization generator is provided.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the summarizationMetrics field is set. + */ + @java.lang.Override + public boolean hasSummarizationMetrics() { + return metricsCase_ == 6; + } + + /** + * + * + *
                                          +   * Output only. Only available when the summarization generator is provided.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The summarizationMetrics. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + getSummarizationMetrics() { + if (metricsCase_ == 6) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) metrics_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Output only. Only available when the summarization generator is provided.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetricsOrBuilder + getSummarizationMetricsOrBuilder() { + if (metricsCase_ == 6) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) metrics_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.getDefaultInstance(); + } + + public static final int EVALUATION_STATUS_FIELD_NUMBER = 10; + private com.google.cloud.dialogflow.v2beta1.EvaluationStatus evaluationStatus_; + + /** + * + * + *
                                          +   * Output only. The result status of the evaluation pipeline. Provides the
                                          +   * status information including if the evaluation is still in progress,
                                          +   * completed or failed with certain error and user actionable message.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the evaluationStatus field is set. + */ + @java.lang.Override + public boolean hasEvaluationStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                          +   * Output only. The result status of the evaluation pipeline. Provides the
                                          +   * status information including if the evaluation is still in progress,
                                          +   * completed or failed with certain error and user actionable message.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evaluationStatus. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.EvaluationStatus getEvaluationStatus() { + return evaluationStatus_ == null + ? com.google.cloud.dialogflow.v2beta1.EvaluationStatus.getDefaultInstance() + : evaluationStatus_; + } + + /** + * + * + *
                                          +   * Output only. The result status of the evaluation pipeline. Provides the
                                          +   * status information including if the evaluation is still in progress,
                                          +   * completed or failed with certain error and user actionable message.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.EvaluationStatusOrBuilder + getEvaluationStatusOrBuilder() { + return evaluationStatus_ == null + ? com.google.cloud.dialogflow.v2beta1.EvaluationStatus.getDefaultInstance() + : evaluationStatus_; + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 11; + private boolean satisfiesPzs_ = false; + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Separation
                                          +   * status of the model. The field is an aggregated
                                          +   * value of ZS status of its underlying dependencies. See more details in
                                          +   * go/zicy-resource-placement#resource-status
                                          +   * 
                                          + * + * optional bool satisfies_pzs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Separation
                                          +   * status of the model. The field is an aggregated
                                          +   * value of ZS status of its underlying dependencies. See more details in
                                          +   * go/zicy-resource-placement#resource-status
                                          +   * 
                                          + * + * optional bool satisfies_pzs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 12; + private boolean satisfiesPzi_ = false; + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Isolation status
                                          +   * of the model. The field is an aggregated value of
                                          +   * ZI status of its underlying dependencies. See more details in
                                          +   * go/zicy-resource-placement#resource-status
                                          +   * 
                                          + * + * optional bool satisfies_pzi = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Isolation status
                                          +   * of the model. The field is an aggregated value of
                                          +   * ZI status of its underlying dependencies. See more details in
                                          +   * go/zicy-resource-placement#resource-status
                                          +   * 
                                          + * + * optional bool satisfies_pzi = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getGeneratorEvaluationConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getInitialGenerator()); + } + if (metricsCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) metrics_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getCompleteTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(10, getEvaluationStatus()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(11, satisfiesPzs_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeBool(12, satisfiesPzi_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getGeneratorEvaluationConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInitialGenerator()); + } + if (metricsCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) metrics_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCompleteTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEvaluationStatus()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, satisfiesPzs_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, satisfiesPzi_); + } + 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.dialogflow.v2beta1.GeneratorEvaluation)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation other = + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasGeneratorEvaluationConfig() != other.hasGeneratorEvaluationConfig()) return false; + if (hasGeneratorEvaluationConfig()) { + if (!getGeneratorEvaluationConfig().equals(other.getGeneratorEvaluationConfig())) + return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (hasInitialGenerator() != other.hasInitialGenerator()) return false; + if (hasInitialGenerator()) { + if (!getInitialGenerator().equals(other.getInitialGenerator())) return false; + } + if (hasEvaluationStatus() != other.hasEvaluationStatus()) return false; + if (hasEvaluationStatus()) { + if (!getEvaluationStatus().equals(other.getEvaluationStatus())) return false; + } + if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; + if (hasSatisfiesPzs()) { + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + } + if (hasSatisfiesPzi() != other.hasSatisfiesPzi()) return false; + if (hasSatisfiesPzi()) { + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; + } + if (!getMetricsCase().equals(other.getMetricsCase())) return false; + switch (metricsCase_) { + case 6: + if (!getSummarizationMetrics().equals(other.getSummarizationMetrics())) 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(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasGeneratorEvaluationConfig()) { + hash = (37 * hash) + GENERATOR_EVALUATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGeneratorEvaluationConfig().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + if (hasInitialGenerator()) { + hash = (37 * hash) + INITIAL_GENERATOR_FIELD_NUMBER; + hash = (53 * hash) + getInitialGenerator().hashCode(); + } + if (hasEvaluationStatus()) { + hash = (37 * hash) + EVALUATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationStatus().hashCode(); + } + if (hasSatisfiesPzs()) { + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + } + if (hasSatisfiesPzi()) { + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); + } + switch (metricsCase_) { + case 6: + hash = (37 * hash) + SUMMARIZATION_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getSummarizationMetrics().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation 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.dialogflow.v2beta1.GeneratorEvaluation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation 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.dialogflow.v2beta1.GeneratorEvaluation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Represents evaluation result of a generator.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorEvaluation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluation) + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGeneratorEvaluationConfigFieldBuilder(); + getCreateTimeFieldBuilder(); + getCompleteTimeFieldBuilder(); + getInitialGeneratorFieldBuilder(); + getEvaluationStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + generatorEvaluationConfig_ = null; + if (generatorEvaluationConfigBuilder_ != null) { + generatorEvaluationConfigBuilder_.dispose(); + generatorEvaluationConfigBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + initialGenerator_ = null; + if (initialGeneratorBuilder_ != null) { + initialGeneratorBuilder_.dispose(); + initialGeneratorBuilder_ = null; + } + if (summarizationMetricsBuilder_ != null) { + summarizationMetricsBuilder_.clear(); + } + evaluationStatus_ = null; + if (evaluationStatusBuilder_ != null) { + evaluationStatusBuilder_.dispose(); + evaluationStatusBuilder_ = null; + } + satisfiesPzs_ = false; + satisfiesPzi_ = false; + metricsCase_ = 0; + metrics_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation build() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation buildPartial() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation result = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.generatorEvaluationConfig_ = + generatorEvaluationConfigBuilder_ == null + ? generatorEvaluationConfig_ + : generatorEvaluationConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.initialGenerator_ = + initialGeneratorBuilder_ == null ? initialGenerator_ : initialGeneratorBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.evaluationStatus_ = + evaluationStatusBuilder_ == null ? evaluationStatus_ : evaluationStatusBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation result) { + result.metricsCase_ = metricsCase_; + result.metrics_ = this.metrics_; + if (metricsCase_ == 6 && summarizationMetricsBuilder_ != null) { + result.metrics_ = summarizationMetricsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation other) { + if (other == com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasGeneratorEvaluationConfig()) { + mergeGeneratorEvaluationConfig(other.getGeneratorEvaluationConfig()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + if (other.hasInitialGenerator()) { + mergeInitialGenerator(other.getInitialGenerator()); + } + if (other.hasEvaluationStatus()) { + mergeEvaluationStatus(other.getEvaluationStatus()); + } + if (other.hasSatisfiesPzs()) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.hasSatisfiesPzi()) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } + switch (other.getMetricsCase()) { + case SUMMARIZATION_METRICS: + { + mergeSummarizationMetrics(other.getSummarizationMetrics()); + break; + } + case METRICS_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_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getGeneratorEvaluationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getInitialGeneratorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + input.readMessage( + getSummarizationMetricsFieldBuilder().getBuilder(), extensionRegistry); + metricsCase_ = 6; + break; + } // case 50 + case 66: + { + input.readMessage(getCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 82: + { + input.readMessage( + getEvaluationStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 88: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 88 + case 96: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 96 + 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 metricsCase_ = 0; + private java.lang.Object metrics_; + + public MetricsCase getMetricsCase() { + return MetricsCase.forNumber(metricsCase_); + } + + public Builder clearMetrics() { + metricsCase_ = 0; + metrics_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +     * evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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 displayName_ = ""; + + /** + * + * + *
                                          +     * Optional. The display name of the generator evaluation. At most 64 bytes
                                          +     * long.
                                          +     * 
                                          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The display name of the generator evaluation. At most 64 bytes
                                          +     * long.
                                          +     * 
                                          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The display name of the generator evaluation. At most 64 bytes
                                          +     * long.
                                          +     * 
                                          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The display name of the generator evaluation. At most 64 bytes
                                          +     * long.
                                          +     * 
                                          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The display name of the generator evaluation. At most 64 bytes
                                          +     * long.
                                          +     * 
                                          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + generatorEvaluationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfigOrBuilder> + generatorEvaluationConfigBuilder_; + + /** + * + * + *
                                          +     * Required. The configuration of the evaluation task.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the generatorEvaluationConfig field is set. + */ + public boolean hasGeneratorEvaluationConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +     * Required. The configuration of the evaluation task.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The generatorEvaluationConfig. + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + getGeneratorEvaluationConfig() { + if (generatorEvaluationConfigBuilder_ == null) { + return generatorEvaluationConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.getDefaultInstance() + : generatorEvaluationConfig_; + } else { + return generatorEvaluationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Required. The configuration of the evaluation task.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGeneratorEvaluationConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig value) { + if (generatorEvaluationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generatorEvaluationConfig_ = value; + } else { + generatorEvaluationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The configuration of the evaluation task.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGeneratorEvaluationConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.Builder builderForValue) { + if (generatorEvaluationConfigBuilder_ == null) { + generatorEvaluationConfig_ = builderForValue.build(); + } else { + generatorEvaluationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The configuration of the evaluation task.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGeneratorEvaluationConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig value) { + if (generatorEvaluationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && generatorEvaluationConfig_ != null + && generatorEvaluationConfig_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .getDefaultInstance()) { + getGeneratorEvaluationConfigBuilder().mergeFrom(value); + } else { + generatorEvaluationConfig_ = value; + } + } else { + generatorEvaluationConfigBuilder_.mergeFrom(value); + } + if (generatorEvaluationConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Required. The configuration of the evaluation task.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGeneratorEvaluationConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + generatorEvaluationConfig_ = null; + if (generatorEvaluationConfigBuilder_ != null) { + generatorEvaluationConfigBuilder_.dispose(); + generatorEvaluationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The configuration of the evaluation task.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.Builder + getGeneratorEvaluationConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGeneratorEvaluationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Required. The configuration of the evaluation task.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfigOrBuilder + getGeneratorEvaluationConfigOrBuilder() { + if (generatorEvaluationConfigBuilder_ != null) { + return generatorEvaluationConfigBuilder_.getMessageOrBuilder(); + } else { + return generatorEvaluationConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.getDefaultInstance() + : generatorEvaluationConfig_; + } + } + + /** + * + * + *
                                          +     * Required. The configuration of the evaluation task.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfigOrBuilder> + getGeneratorEvaluationConfigFieldBuilder() { + if (generatorEvaluationConfigBuilder_ == null) { + generatorEvaluationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfigOrBuilder>( + getGeneratorEvaluationConfig(), getParentForChildren(), isClean()); + generatorEvaluationConfig_ = null; + } + return generatorEvaluationConfigBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                          +     * Output only. Creation time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +     * Output only. Creation time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Creation time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Creation time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Creation time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Creation time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Creation time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Creation time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Creation time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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 completeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; + + /** + * + * + *
                                          +     * Output only. Completion time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                          +     * Output only. Completion time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } else { + return completeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Output only. Completion time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completeTime_ = value; + } else { + completeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Completion time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); + } else { + completeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Completion time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); + } else { + completeTime_ = value; + } + } else { + completeTimeBuilder_.mergeFrom(value); + } + if (completeTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Completion time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00000010); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Completion time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCompleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Completion time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); + } else { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + } + + /** + * + * + *
                                          +     * Output only. Completion time of this generator evaluation.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; + } + return completeTimeBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.Generator initialGenerator_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Generator, + com.google.cloud.dialogflow.v2beta1.Generator.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorOrBuilder> + initialGeneratorBuilder_; + + /** + * + * + *
                                          +     * Required. The initial generator that was used when creating this
                                          +     * evaluation. This is a copy of the generator read from storage when creating
                                          +     * the evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the initialGenerator field is set. + */ + public boolean hasInitialGenerator() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                          +     * Required. The initial generator that was used when creating this
                                          +     * evaluation. This is a copy of the generator read from storage when creating
                                          +     * the evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The initialGenerator. + */ + public com.google.cloud.dialogflow.v2beta1.Generator getInitialGenerator() { + if (initialGeneratorBuilder_ == null) { + return initialGenerator_ == null + ? com.google.cloud.dialogflow.v2beta1.Generator.getDefaultInstance() + : initialGenerator_; + } else { + return initialGeneratorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Required. The initial generator that was used when creating this
                                          +     * evaluation. This is a copy of the generator read from storage when creating
                                          +     * the evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInitialGenerator(com.google.cloud.dialogflow.v2beta1.Generator value) { + if (initialGeneratorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialGenerator_ = value; + } else { + initialGeneratorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The initial generator that was used when creating this
                                          +     * evaluation. This is a copy of the generator read from storage when creating
                                          +     * the evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInitialGenerator( + com.google.cloud.dialogflow.v2beta1.Generator.Builder builderForValue) { + if (initialGeneratorBuilder_ == null) { + initialGenerator_ = builderForValue.build(); + } else { + initialGeneratorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The initial generator that was used when creating this
                                          +     * evaluation. This is a copy of the generator read from storage when creating
                                          +     * the evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInitialGenerator(com.google.cloud.dialogflow.v2beta1.Generator value) { + if (initialGeneratorBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && initialGenerator_ != null + && initialGenerator_ + != com.google.cloud.dialogflow.v2beta1.Generator.getDefaultInstance()) { + getInitialGeneratorBuilder().mergeFrom(value); + } else { + initialGenerator_ = value; + } + } else { + initialGeneratorBuilder_.mergeFrom(value); + } + if (initialGenerator_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Required. The initial generator that was used when creating this
                                          +     * evaluation. This is a copy of the generator read from storage when creating
                                          +     * the evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInitialGenerator() { + bitField0_ = (bitField0_ & ~0x00000020); + initialGenerator_ = null; + if (initialGeneratorBuilder_ != null) { + initialGeneratorBuilder_.dispose(); + initialGeneratorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The initial generator that was used when creating this
                                          +     * evaluation. This is a copy of the generator read from storage when creating
                                          +     * the evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Generator.Builder getInitialGeneratorBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getInitialGeneratorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Required. The initial generator that was used when creating this
                                          +     * evaluation. This is a copy of the generator read from storage when creating
                                          +     * the evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorOrBuilder getInitialGeneratorOrBuilder() { + if (initialGeneratorBuilder_ != null) { + return initialGeneratorBuilder_.getMessageOrBuilder(); + } else { + return initialGenerator_ == null + ? com.google.cloud.dialogflow.v2beta1.Generator.getDefaultInstance() + : initialGenerator_; + } + } + + /** + * + * + *
                                          +     * Required. The initial generator that was used when creating this
                                          +     * evaluation. This is a copy of the generator read from storage when creating
                                          +     * the evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Generator, + com.google.cloud.dialogflow.v2beta1.Generator.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorOrBuilder> + getInitialGeneratorFieldBuilder() { + if (initialGeneratorBuilder_ == null) { + initialGeneratorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Generator, + com.google.cloud.dialogflow.v2beta1.Generator.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorOrBuilder>( + getInitialGenerator(), getParentForChildren(), isClean()); + initialGenerator_ = null; + } + return initialGeneratorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetricsOrBuilder> + summarizationMetricsBuilder_; + + /** + * + * + *
                                          +     * Output only. Only available when the summarization generator is provided.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the summarizationMetrics field is set. + */ + @java.lang.Override + public boolean hasSummarizationMetrics() { + return metricsCase_ == 6; + } + + /** + * + * + *
                                          +     * Output only. Only available when the summarization generator is provided.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The summarizationMetrics. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + getSummarizationMetrics() { + if (summarizationMetricsBuilder_ == null) { + if (metricsCase_ == 6) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) metrics_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .getDefaultInstance(); + } else { + if (metricsCase_ == 6) { + return summarizationMetricsBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. Only available when the summarization generator is provided.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSummarizationMetrics( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics value) { + if (summarizationMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metrics_ = value; + onChanged(); + } else { + summarizationMetricsBuilder_.setMessage(value); + } + metricsCase_ = 6; + return this; + } + + /** + * + * + *
                                          +     * Output only. Only available when the summarization generator is provided.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSummarizationMetrics( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Builder + builderForValue) { + if (summarizationMetricsBuilder_ == null) { + metrics_ = builderForValue.build(); + onChanged(); + } else { + summarizationMetricsBuilder_.setMessage(builderForValue.build()); + } + metricsCase_ = 6; + return this; + } + + /** + * + * + *
                                          +     * Output only. Only available when the summarization generator is provided.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSummarizationMetrics( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics value) { + if (summarizationMetricsBuilder_ == null) { + if (metricsCase_ == 6 + && metrics_ + != com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.newBuilder( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); + } else { + metrics_ = value; + } + onChanged(); + } else { + if (metricsCase_ == 6) { + summarizationMetricsBuilder_.mergeFrom(value); + } else { + summarizationMetricsBuilder_.setMessage(value); + } + } + metricsCase_ = 6; + return this; + } + + /** + * + * + *
                                          +     * Output only. Only available when the summarization generator is provided.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSummarizationMetrics() { + if (summarizationMetricsBuilder_ == null) { + if (metricsCase_ == 6) { + metricsCase_ = 0; + metrics_ = null; + onChanged(); + } + } else { + if (metricsCase_ == 6) { + metricsCase_ = 0; + metrics_ = null; + } + summarizationMetricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Only available when the summarization generator is provided.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Builder + getSummarizationMetricsBuilder() { + return getSummarizationMetricsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Only available when the summarization generator is provided.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetricsOrBuilder + getSummarizationMetricsOrBuilder() { + if ((metricsCase_ == 6) && (summarizationMetricsBuilder_ != null)) { + return summarizationMetricsBuilder_.getMessageOrBuilder(); + } else { + if (metricsCase_ == 6) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) metrics_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Output only. Only available when the summarization generator is provided.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetricsOrBuilder> + getSummarizationMetricsFieldBuilder() { + if (summarizationMetricsBuilder_ == null) { + if (!(metricsCase_ == 6)) { + metrics_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .getDefaultInstance(); + } + summarizationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetricsOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) metrics_, + getParentForChildren(), + isClean()); + metrics_ = null; + } + metricsCase_ = 6; + onChanged(); + return summarizationMetricsBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.EvaluationStatus evaluationStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.EvaluationStatus, + com.google.cloud.dialogflow.v2beta1.EvaluationStatus.Builder, + com.google.cloud.dialogflow.v2beta1.EvaluationStatusOrBuilder> + evaluationStatusBuilder_; + + /** + * + * + *
                                          +     * Output only. The result status of the evaluation pipeline. Provides the
                                          +     * status information including if the evaluation is still in progress,
                                          +     * completed or failed with certain error and user actionable message.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the evaluationStatus field is set. + */ + public boolean hasEvaluationStatus() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
                                          +     * Output only. The result status of the evaluation pipeline. Provides the
                                          +     * status information including if the evaluation is still in progress,
                                          +     * completed or failed with certain error and user actionable message.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evaluationStatus. + */ + public com.google.cloud.dialogflow.v2beta1.EvaluationStatus getEvaluationStatus() { + if (evaluationStatusBuilder_ == null) { + return evaluationStatus_ == null + ? com.google.cloud.dialogflow.v2beta1.EvaluationStatus.getDefaultInstance() + : evaluationStatus_; + } else { + return evaluationStatusBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Output only. The result status of the evaluation pipeline. Provides the
                                          +     * status information including if the evaluation is still in progress,
                                          +     * completed or failed with certain error and user actionable message.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvaluationStatus(com.google.cloud.dialogflow.v2beta1.EvaluationStatus value) { + if (evaluationStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationStatus_ = value; + } else { + evaluationStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The result status of the evaluation pipeline. Provides the
                                          +     * status information including if the evaluation is still in progress,
                                          +     * completed or failed with certain error and user actionable message.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvaluationStatus( + com.google.cloud.dialogflow.v2beta1.EvaluationStatus.Builder builderForValue) { + if (evaluationStatusBuilder_ == null) { + evaluationStatus_ = builderForValue.build(); + } else { + evaluationStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The result status of the evaluation pipeline. Provides the
                                          +     * status information including if the evaluation is still in progress,
                                          +     * completed or failed with certain error and user actionable message.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEvaluationStatus( + com.google.cloud.dialogflow.v2beta1.EvaluationStatus value) { + if (evaluationStatusBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && evaluationStatus_ != null + && evaluationStatus_ + != com.google.cloud.dialogflow.v2beta1.EvaluationStatus.getDefaultInstance()) { + getEvaluationStatusBuilder().mergeFrom(value); + } else { + evaluationStatus_ = value; + } + } else { + evaluationStatusBuilder_.mergeFrom(value); + } + if (evaluationStatus_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. The result status of the evaluation pipeline. Provides the
                                          +     * status information including if the evaluation is still in progress,
                                          +     * completed or failed with certain error and user actionable message.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEvaluationStatus() { + bitField0_ = (bitField0_ & ~0x00000080); + evaluationStatus_ = null; + if (evaluationStatusBuilder_ != null) { + evaluationStatusBuilder_.dispose(); + evaluationStatusBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The result status of the evaluation pipeline. Provides the
                                          +     * status information including if the evaluation is still in progress,
                                          +     * completed or failed with certain error and user actionable message.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.EvaluationStatus.Builder + getEvaluationStatusBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getEvaluationStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. The result status of the evaluation pipeline. Provides the
                                          +     * status information including if the evaluation is still in progress,
                                          +     * completed or failed with certain error and user actionable message.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.EvaluationStatusOrBuilder + getEvaluationStatusOrBuilder() { + if (evaluationStatusBuilder_ != null) { + return evaluationStatusBuilder_.getMessageOrBuilder(); + } else { + return evaluationStatus_ == null + ? com.google.cloud.dialogflow.v2beta1.EvaluationStatus.getDefaultInstance() + : evaluationStatus_; + } + } + + /** + * + * + *
                                          +     * Output only. The result status of the evaluation pipeline. Provides the
                                          +     * status information including if the evaluation is still in progress,
                                          +     * completed or failed with certain error and user actionable message.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.EvaluationStatus, + com.google.cloud.dialogflow.v2beta1.EvaluationStatus.Builder, + com.google.cloud.dialogflow.v2beta1.EvaluationStatusOrBuilder> + getEvaluationStatusFieldBuilder() { + if (evaluationStatusBuilder_ == null) { + evaluationStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.EvaluationStatus, + com.google.cloud.dialogflow.v2beta1.EvaluationStatus.Builder, + com.google.cloud.dialogflow.v2beta1.EvaluationStatusOrBuilder>( + getEvaluationStatus(), getParentForChildren(), isClean()); + evaluationStatus_ = null; + } + return evaluationStatusBuilder_; + } + + private boolean satisfiesPzs_; + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Separation
                                          +     * status of the model. The field is an aggregated
                                          +     * value of ZS status of its underlying dependencies. See more details in
                                          +     * go/zicy-resource-placement#resource-status
                                          +     * 
                                          + * + * optional bool satisfies_pzs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Separation
                                          +     * status of the model. The field is an aggregated
                                          +     * value of ZS status of its underlying dependencies. See more details in
                                          +     * go/zicy-resource-placement#resource-status
                                          +     * 
                                          + * + * optional bool satisfies_pzs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Separation
                                          +     * status of the model. The field is an aggregated
                                          +     * value of ZS status of its underlying dependencies. See more details in
                                          +     * go/zicy-resource-placement#resource-status
                                          +     * 
                                          + * + * optional bool satisfies_pzs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Separation
                                          +     * status of the model. The field is an aggregated
                                          +     * value of ZS status of its underlying dependencies. See more details in
                                          +     * go/zicy-resource-placement#resource-status
                                          +     * 
                                          + * + * optional bool satisfies_pzs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00000100); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Isolation status
                                          +     * of the model. The field is an aggregated value of
                                          +     * ZI status of its underlying dependencies. See more details in
                                          +     * go/zicy-resource-placement#resource-status
                                          +     * 
                                          + * + * optional bool satisfies_pzi = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Isolation status
                                          +     * of the model. The field is an aggregated value of
                                          +     * ZI status of its underlying dependencies. See more details in
                                          +     * go/zicy-resource-placement#resource-status
                                          +     * 
                                          + * + * optional bool satisfies_pzi = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Isolation status
                                          +     * of the model. The field is an aggregated value of
                                          +     * ZI status of its underlying dependencies. See more details in
                                          +     * go/zicy-resource-placement#resource-status
                                          +     * 
                                          + * + * optional bool satisfies_pzi = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Isolation status
                                          +     * of the model. The field is an aggregated value of
                                          +     * ZI status of its underlying dependencies. See more details in
                                          +     * go/zicy-resource-placement#resource-status
                                          +     * 
                                          + * + * optional bool satisfies_pzi = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000200); + satisfiesPzi_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluation) + private static final com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation(); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeneratorEvaluation 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.dialogflow.v2beta1.GeneratorEvaluation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationConfig.java new file mode 100644 index 000000000000..d8e42b61aea6 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationConfig.java @@ -0,0 +1,8246 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Generator evaluation input config.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig} + */ +public final class GeneratorEvaluationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig) + GeneratorEvaluationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GeneratorEvaluationConfig.newBuilder() to construct. + private GeneratorEvaluationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GeneratorEvaluationConfig() { + outputGcsBucketPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GeneratorEvaluationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.Builder.class); + } + + /** + * + * + *
                                          +   * Enumeration of input data source type.
                                          +   * 
                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType} + */ + public enum InputDataSourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +     * Unspecified InputDataSourceType. Should not be used.
                                          +     * 
                                          + * + * INPUT_DATA_SOURCE_TYPE_UNSPECIFIED = 0; + */ + INPUT_DATA_SOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                          +     * Fetch data from Agent Assist storage. If this source type is chosen,
                                          +     * input_data_config.start_time and input_data_config.end_timestamp must be
                                          +     * provided.
                                          +     * 
                                          + * + * AGENT_ASSIST_CONVERSATIONS = 1; + */ + AGENT_ASSIST_CONVERSATIONS(1), + /** + * + * + *
                                          +     * Fetch data from Insights storage. If this source type is chosen,
                                          +     * input_data_config.start_time and input_data_config.end_timestamp must be
                                          +     * provided.
                                          +     * 
                                          + * + * INSIGHTS_CONVERSATIONS = 2; + */ + INSIGHTS_CONVERSATIONS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +     * Unspecified InputDataSourceType. Should not be used.
                                          +     * 
                                          + * + * INPUT_DATA_SOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int INPUT_DATA_SOURCE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +     * Fetch data from Agent Assist storage. If this source type is chosen,
                                          +     * input_data_config.start_time and input_data_config.end_timestamp must be
                                          +     * provided.
                                          +     * 
                                          + * + * AGENT_ASSIST_CONVERSATIONS = 1; + */ + public static final int AGENT_ASSIST_CONVERSATIONS_VALUE = 1; + + /** + * + * + *
                                          +     * Fetch data from Insights storage. If this source type is chosen,
                                          +     * input_data_config.start_time and input_data_config.end_timestamp must be
                                          +     * provided.
                                          +     * 
                                          + * + * INSIGHTS_CONVERSATIONS = 2; + */ + public static final int INSIGHTS_CONVERSATIONS_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 InputDataSourceType 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 InputDataSourceType forNumber(int value) { + switch (value) { + case 0: + return INPUT_DATA_SOURCE_TYPE_UNSPECIFIED; + case 1: + return AGENT_ASSIST_CONVERSATIONS; + case 2: + return INSIGHTS_CONVERSATIONS; + 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 InputDataSourceType findValueByNumber(int number) { + return InputDataSourceType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final InputDataSourceType[] VALUES = values(); + + public static InputDataSourceType 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 InputDataSourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType) + } + + public interface AgentAssistInputDataConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Required. The start of the time range for conversations to be evaluated.
                                          +     * Only conversations created at or after this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
                                          +     * Required. The start of the time range for conversations to be evaluated.
                                          +     * Only conversations created at or after this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
                                          +     * Required. The start of the time range for conversations to be evaluated.
                                          +     * Only conversations created at or after this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                                          +     * Required. The end of the time range for conversations to be evaluated.
                                          +     * Only conversations ended at or before this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
                                          +     * Required. The end of the time range for conversations to be evaluated.
                                          +     * Only conversations ended at or before this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
                                          +     * Required. The end of the time range for conversations to be evaluated.
                                          +     * Only conversations ended at or before this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + } + + /** + * + * + *
                                          +   * The distinctive configs for Agent Assist conversations as the conversation
                                          +   * source.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig} + */ + public static final class AgentAssistInputDataConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig) + AgentAssistInputDataConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AgentAssistInputDataConfig.newBuilder() to construct. + private AgentAssistInputDataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AgentAssistInputDataConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AgentAssistInputDataConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
                                          +     * Required. The start of the time range for conversations to be evaluated.
                                          +     * Only conversations created at or after this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Required. The start of the time range for conversations to be evaluated.
                                          +     * Only conversations created at or after this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
                                          +     * Required. The start of the time range for conversations to be evaluated.
                                          +     * Only conversations created at or after this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
                                          +     * Required. The end of the time range for conversations to be evaluated.
                                          +     * Only conversations ended at or before this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Required. The end of the time range for conversations to be evaluated.
                                          +     * Only conversations ended at or before this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
                                          +     * Required. The end of the time range for conversations to be evaluated.
                                          +     * Only conversations ended at or before this timestamp will be sampled.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + 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.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + other = + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) 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 (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + 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.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + 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.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * The distinctive configs for Agent Assist conversations as the conversation
                                          +     * source.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig) + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + build() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + buildPartial() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + result = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().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.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
                                          +       * Required. The start of the time range for conversations to be evaluated.
                                          +       * Only conversations created at or after this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +       * Required. The start of the time range for conversations to be evaluated.
                                          +       * Only conversations created at or after this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Required. The start of the time range for conversations to be evaluated.
                                          +       * Only conversations created at or after this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The start of the time range for conversations to be evaluated.
                                          +       * Only conversations created at or after this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The start of the time range for conversations to be evaluated.
                                          +       * Only conversations created at or after this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Required. The start of the time range for conversations to be evaluated.
                                          +       * Only conversations created at or after this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The start of the time range for conversations to be evaluated.
                                          +       * Only conversations created at or after this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Required. The start of the time range for conversations to be evaluated.
                                          +       * Only conversations created at or after this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + + /** + * + * + *
                                          +       * Required. The start of the time range for conversations to be evaluated.
                                          +       * Only conversations created at or after this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
                                          +       * Required. The end of the time range for conversations to be evaluated.
                                          +       * Only conversations ended at or before this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * Required. The end of the time range for conversations to be evaluated.
                                          +       * Only conversations ended at or before this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Required. The end of the time range for conversations to be evaluated.
                                          +       * Only conversations ended at or before this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The end of the time range for conversations to be evaluated.
                                          +       * Only conversations ended at or before this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The end of the time range for conversations to be evaluated.
                                          +       * Only conversations ended at or before this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Required. The end of the time range for conversations to be evaluated.
                                          +       * Only conversations ended at or before this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The end of the time range for conversations to be evaluated.
                                          +       * Only conversations ended at or before this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Required. The end of the time range for conversations to be evaluated.
                                          +       * Only conversations ended at or before this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
                                          +       * Required. The end of the time range for conversations to be evaluated.
                                          +       * Only conversations ended at or before this timestamp will be sampled.
                                          +       * 
                                          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig) + private static final com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentAssistInputDataConfig 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.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DatasetInputDataConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Required. The identifier of the dataset to be evaluated.
                                          +     * Format:
                                          +     * `projects/<ProjectId>/locations/<LocationID>/datasets/<DatasetID>`.
                                          +     * 
                                          + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataset. + */ + java.lang.String getDataset(); + + /** + * + * + *
                                          +     * Required. The identifier of the dataset to be evaluated.
                                          +     * Format:
                                          +     * `projects/<ProjectId>/locations/<LocationID>/datasets/<DatasetID>`.
                                          +     * 
                                          + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataset. + */ + com.google.protobuf.ByteString getDatasetBytes(); + } + + /** + * + * + *
                                          +   * The distinctive configs for dataset as the conversation source.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig} + */ + public static final class DatasetInputDataConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig) + DatasetInputDataConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DatasetInputDataConfig.newBuilder() to construct. + private DatasetInputDataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasetInputDataConfig() { + dataset_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatasetInputDataConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; + + /** + * + * + *
                                          +     * Required. The identifier of the dataset to be evaluated.
                                          +     * Format:
                                          +     * `projects/<ProjectId>/locations/<LocationID>/datasets/<DatasetID>`.
                                          +     * 
                                          + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataset. + */ + @java.lang.Override + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + 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(); + dataset_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Required. The identifier of the dataset to be evaluated.
                                          +     * Format:
                                          +     * `projects/<ProjectId>/locations/<LocationID>/datasets/<DatasetID>`.
                                          +     * 
                                          + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = 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.GeneratedMessageV3.isStringEmpty(dataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); + } + 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.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig other = + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig) + obj; + + if (!getDataset().equals(other.getDataset())) 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) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + 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.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + 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.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * The distinctive configs for dataset as the conversation source.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig) + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataset_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + build() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + buildPartial() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + result = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .getDefaultInstance()) return this; + if (!other.getDataset().isEmpty()) { + dataset_ = other.dataset_; + 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: + { + dataset_ = 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 dataset_ = ""; + + /** + * + * + *
                                          +       * Required. The identifier of the dataset to be evaluated.
                                          +       * Format:
                                          +       * `projects/<ProjectId>/locations/<LocationID>/datasets/<DatasetID>`.
                                          +       * 
                                          + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataset. + */ + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Required. The identifier of the dataset to be evaluated.
                                          +       * Format:
                                          +       * `projects/<ProjectId>/locations/<LocationID>/datasets/<DatasetID>`.
                                          +       * 
                                          + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataset. + */ + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Required. The identifier of the dataset to be evaluated.
                                          +       * Format:
                                          +       * `projects/<ProjectId>/locations/<LocationID>/datasets/<DatasetID>`.
                                          +       * 
                                          + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dataset to set. + * @return This builder for chaining. + */ + public Builder setDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The identifier of the dataset to be evaluated.
                                          +       * Format:
                                          +       * `projects/<ProjectId>/locations/<LocationID>/datasets/<DatasetID>`.
                                          +       * 
                                          + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDataset() { + dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The identifier of the dataset to be evaluated.
                                          +       * Format:
                                          +       * `projects/<ProjectId>/locations/<LocationID>/datasets/<DatasetID>`.
                                          +       * 
                                          + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. + */ + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig) + private static final com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetInputDataConfig 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.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InputDataConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Required. The source type of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType input_data_source_type = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.input_data_source_type + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=490 + * @return The enum numeric value on the wire for inputDataSourceType. + */ + @java.lang.Deprecated + int getInputDataSourceTypeValue(); + + /** + * + * + *
                                          +     * Required. The source type of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType input_data_source_type = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.input_data_source_type + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=490 + * @return The inputDataSourceType. + */ + @java.lang.Deprecated + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType + getInputDataSourceType(); + + /** + * + * + *
                                          +     * Optional. The start timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.start_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=494 + * @return Whether the startTime field is set. + */ + @java.lang.Deprecated + boolean hasStartTime(); + + /** + * + * + *
                                          +     * Optional. The start timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.start_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=494 + * @return The startTime. + */ + @java.lang.Deprecated + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
                                          +     * Optional. The start timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                                          +     * Optional. The end timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.end_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=498 + * @return Whether the endTime field is set. + */ + @java.lang.Deprecated + boolean hasEndTime(); + + /** + * + * + *
                                          +     * Optional. The end timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.end_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=498 + * @return The endTime. + */ + @java.lang.Deprecated + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
                                          +     * Optional. The end timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
                                          +     * Optional. Desired number of conversation-summary pairs to be evaluated.
                                          +     * 
                                          + * + * int32 sample_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleSize. + */ + int getSampleSize(); + + /** + * + * + *
                                          +     * Optional. Whether the summary generation is allowed when the pre-existing
                                          +     * qualified summaries are insufficient to cover the sample size.
                                          +     * 
                                          + * + * + * bool is_summary_generation_allowed = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.is_summary_generation_allowed + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=506 + * @return The isSummaryGenerationAllowed. + */ + @java.lang.Deprecated + boolean getIsSummaryGenerationAllowed(); + + /** + * + * + *
                                          +     * Optional. Option to control whether summaries are generated during
                                          +     * evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption summary_generation_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for summaryGenerationOption. + */ + int getSummaryGenerationOptionValue(); + + /** + * + * + *
                                          +     * Optional. Option to control whether summaries are generated during
                                          +     * evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption summary_generation_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The summaryGenerationOption. + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption + getSummaryGenerationOption(); + + /** + * + * + *
                                          +     * The distinctive configs for Agent Assist conversations as the
                                          +     * conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + * + * @return Whether the agentAssistInputDataConfig field is set. + */ + boolean hasAgentAssistInputDataConfig(); + + /** + * + * + *
                                          +     * The distinctive configs for Agent Assist conversations as the
                                          +     * conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + * + * @return The agentAssistInputDataConfig. + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + getAgentAssistInputDataConfig(); + + /** + * + * + *
                                          +     * The distinctive configs for Agent Assist conversations as the
                                          +     * conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfigOrBuilder + getAgentAssistInputDataConfigOrBuilder(); + + /** + * + * + *
                                          +     * The distinctive configs for dataset as the conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + * + * @return Whether the datasetInputDataConfig field is set. + */ + boolean hasDatasetInputDataConfig(); + + /** + * + * + *
                                          +     * The distinctive configs for dataset as the conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + * + * @return The datasetInputDataConfig. + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + getDatasetInputDataConfig(); + + /** + * + * + *
                                          +     * The distinctive configs for dataset as the conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfigOrBuilder + getDatasetInputDataConfigOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SourceSpecificConfigCase + getSourceSpecificConfigCase(); + } + + /** + * + * + *
                                          +   * Input data config details
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig} + */ + public static final class InputDataConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig) + InputDataConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use InputDataConfig.newBuilder() to construct. + private InputDataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InputDataConfig() { + inputDataSourceType_ = 0; + summaryGenerationOption_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InputDataConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.Builder + .class); + } + + /** + * + * + *
                                          +     * Summary generation options.
                                          +     * 
                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption} + */ + public enum SummaryGenerationOption implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +       * Default option will not be used
                                          +       * 
                                          + * + * SUMMARY_GENERATION_OPTION_UNSPECIFIED = 0; + */ + SUMMARY_GENERATION_OPTION_UNSPECIFIED(0), + /** + * + * + *
                                          +       * Always Generate summary for all conversations.
                                          +       * 
                                          + * + * ALWAYS_GENERATE = 1; + */ + ALWAYS_GENERATE(1), + /** + * + * + *
                                          +       * Gnerate only missing summaries.
                                          +       * 
                                          + * + * GENERATE_IF_MISSING = 2; + */ + GENERATE_IF_MISSING(2), + /** + * + * + *
                                          +       * Do not generate new summaries. Only use existing summaries found.
                                          +       * 
                                          + * + * DO_NOT_GENERATE = 3; + */ + DO_NOT_GENERATE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +       * Default option will not be used
                                          +       * 
                                          + * + * SUMMARY_GENERATION_OPTION_UNSPECIFIED = 0; + */ + public static final int SUMMARY_GENERATION_OPTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +       * Always Generate summary for all conversations.
                                          +       * 
                                          + * + * ALWAYS_GENERATE = 1; + */ + public static final int ALWAYS_GENERATE_VALUE = 1; + + /** + * + * + *
                                          +       * Gnerate only missing summaries.
                                          +       * 
                                          + * + * GENERATE_IF_MISSING = 2; + */ + public static final int GENERATE_IF_MISSING_VALUE = 2; + + /** + * + * + *
                                          +       * Do not generate new summaries. Only use existing summaries found.
                                          +       * 
                                          + * + * DO_NOT_GENERATE = 3; + */ + public static final int DO_NOT_GENERATE_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 SummaryGenerationOption 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 SummaryGenerationOption forNumber(int value) { + switch (value) { + case 0: + return SUMMARY_GENERATION_OPTION_UNSPECIFIED; + case 1: + return ALWAYS_GENERATE; + case 2: + return GENERATE_IF_MISSING; + case 3: + return DO_NOT_GENERATE; + 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 SummaryGenerationOption findValueByNumber(int number) { + return SummaryGenerationOption.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SummaryGenerationOption[] VALUES = values(); + + public static SummaryGenerationOption 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 SummaryGenerationOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption) + } + + private int bitField0_; + private int sourceSpecificConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceSpecificConfig_; + + public enum SourceSpecificConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AGENT_ASSIST_INPUT_DATA_CONFIG(6), + DATASET_INPUT_DATA_CONFIG(7), + SOURCESPECIFICCONFIG_NOT_SET(0); + private final int value; + + private SourceSpecificConfigCase(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 SourceSpecificConfigCase valueOf(int value) { + return forNumber(value); + } + + public static SourceSpecificConfigCase forNumber(int value) { + switch (value) { + case 6: + return AGENT_ASSIST_INPUT_DATA_CONFIG; + case 7: + return DATASET_INPUT_DATA_CONFIG; + case 0: + return SOURCESPECIFICCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceSpecificConfigCase getSourceSpecificConfigCase() { + return SourceSpecificConfigCase.forNumber(sourceSpecificConfigCase_); + } + + public static final int INPUT_DATA_SOURCE_TYPE_FIELD_NUMBER = 1; + private int inputDataSourceType_ = 0; + + /** + * + * + *
                                          +     * Required. The source type of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType input_data_source_type = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.input_data_source_type + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=490 + * @return The enum numeric value on the wire for inputDataSourceType. + */ + @java.lang.Override + @java.lang.Deprecated + public int getInputDataSourceTypeValue() { + return inputDataSourceType_; + } + + /** + * + * + *
                                          +     * Required. The source type of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType input_data_source_type = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.input_data_source_type + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=490 + * @return The inputDataSourceType. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType + getInputDataSourceType() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType result = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType + .forNumber(inputDataSourceType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType + .UNRECOGNIZED + : result; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
                                          +     * Optional. The start timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.start_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=494 + * @return Whether the startTime field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Optional. The start timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.start_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=494 + * @return The startTime. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
                                          +     * Optional. The start timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
                                          +     * Optional. The end timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.end_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=498 + * @return Whether the endTime field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Optional. The end timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.end_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=498 + * @return The endTime. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
                                          +     * Optional. The end timestamp to fetch conversation data.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int SAMPLE_SIZE_FIELD_NUMBER = 4; + private int sampleSize_ = 0; + + /** + * + * + *
                                          +     * Optional. Desired number of conversation-summary pairs to be evaluated.
                                          +     * 
                                          + * + * int32 sample_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleSize. + */ + @java.lang.Override + public int getSampleSize() { + return sampleSize_; + } + + public static final int IS_SUMMARY_GENERATION_ALLOWED_FIELD_NUMBER = 5; + private boolean isSummaryGenerationAllowed_ = false; + + /** + * + * + *
                                          +     * Optional. Whether the summary generation is allowed when the pre-existing
                                          +     * qualified summaries are insufficient to cover the sample size.
                                          +     * 
                                          + * + * + * bool is_summary_generation_allowed = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.is_summary_generation_allowed + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=506 + * @return The isSummaryGenerationAllowed. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getIsSummaryGenerationAllowed() { + return isSummaryGenerationAllowed_; + } + + public static final int SUMMARY_GENERATION_OPTION_FIELD_NUMBER = 8; + private int summaryGenerationOption_ = 0; + + /** + * + * + *
                                          +     * Optional. Option to control whether summaries are generated during
                                          +     * evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption summary_generation_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for summaryGenerationOption. + */ + @java.lang.Override + public int getSummaryGenerationOptionValue() { + return summaryGenerationOption_; + } + + /** + * + * + *
                                          +     * Optional. Option to control whether summaries are generated during
                                          +     * evaluation.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption summary_generation_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The summaryGenerationOption. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption + getSummaryGenerationOption() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption + result = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption.forNumber(summaryGenerationOption_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption.UNRECOGNIZED + : result; + } + + public static final int AGENT_ASSIST_INPUT_DATA_CONFIG_FIELD_NUMBER = 6; + + /** + * + * + *
                                          +     * The distinctive configs for Agent Assist conversations as the
                                          +     * conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + * + * @return Whether the agentAssistInputDataConfig field is set. + */ + @java.lang.Override + public boolean hasAgentAssistInputDataConfig() { + return sourceSpecificConfigCase_ == 6; + } + + /** + * + * + *
                                          +     * The distinctive configs for Agent Assist conversations as the
                                          +     * conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + * + * @return The agentAssistInputDataConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + getAgentAssistInputDataConfig() { + if (sourceSpecificConfigCase_ == 6) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + sourceSpecificConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.getDefaultInstance(); + } + + /** + * + * + *
                                          +     * The distinctive configs for Agent Assist conversations as the
                                          +     * conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfigOrBuilder + getAgentAssistInputDataConfigOrBuilder() { + if (sourceSpecificConfigCase_ == 6) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + sourceSpecificConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.getDefaultInstance(); + } + + public static final int DATASET_INPUT_DATA_CONFIG_FIELD_NUMBER = 7; + + /** + * + * + *
                                          +     * The distinctive configs for dataset as the conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + * + * @return Whether the datasetInputDataConfig field is set. + */ + @java.lang.Override + public boolean hasDatasetInputDataConfig() { + return sourceSpecificConfigCase_ == 7; + } + + /** + * + * + *
                                          +     * The distinctive configs for dataset as the conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + * + * @return The datasetInputDataConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + getDatasetInputDataConfig() { + if (sourceSpecificConfigCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig) + sourceSpecificConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * The distinctive configs for dataset as the conversation source.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfigOrBuilder + getDatasetInputDataConfigOrBuilder() { + if (sourceSpecificConfigCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig) + sourceSpecificConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (inputDataSourceType_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType + .INPUT_DATA_SOURCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, inputDataSourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + if (sampleSize_ != 0) { + output.writeInt32(4, sampleSize_); + } + if (isSummaryGenerationAllowed_ != false) { + output.writeBool(5, isSummaryGenerationAllowed_); + } + if (sourceSpecificConfigCase_ == 6) { + output.writeMessage( + 6, + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + sourceSpecificConfig_); + } + if (sourceSpecificConfigCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig) + sourceSpecificConfig_); + } + if (summaryGenerationOption_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption.SUMMARY_GENERATION_OPTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, summaryGenerationOption_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputDataSourceType_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType + .INPUT_DATA_SOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, inputDataSourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + if (sampleSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, sampleSize_); + } + if (isSummaryGenerationAllowed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, isSummaryGenerationAllowed_); + } + if (sourceSpecificConfigCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + sourceSpecificConfig_); + } + if (sourceSpecificConfigCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig) + sourceSpecificConfig_); + } + if (summaryGenerationOption_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption.SUMMARY_GENERATION_OPTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, summaryGenerationOption_); + } + 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.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig other = + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig) obj; + + if (inputDataSourceType_ != other.inputDataSourceType_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (getSampleSize() != other.getSampleSize()) return false; + if (getIsSummaryGenerationAllowed() != other.getIsSummaryGenerationAllowed()) return false; + if (summaryGenerationOption_ != other.summaryGenerationOption_) return false; + if (!getSourceSpecificConfigCase().equals(other.getSourceSpecificConfigCase())) return false; + switch (sourceSpecificConfigCase_) { + case 6: + if (!getAgentAssistInputDataConfig().equals(other.getAgentAssistInputDataConfig())) + return false; + break; + case 7: + if (!getDatasetInputDataConfig().equals(other.getDatasetInputDataConfig())) 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) + INPUT_DATA_SOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + inputDataSourceType_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + SAMPLE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSampleSize(); + hash = (37 * hash) + IS_SUMMARY_GENERATION_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSummaryGenerationAllowed()); + hash = (37 * hash) + SUMMARY_GENERATION_OPTION_FIELD_NUMBER; + hash = (53 * hash) + summaryGenerationOption_; + switch (sourceSpecificConfigCase_) { + case 6: + hash = (37 * hash) + AGENT_ASSIST_INPUT_DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentAssistInputDataConfig().hashCode(); + break; + case 7: + hash = (37 * hash) + DATASET_INPUT_DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDatasetInputDataConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + 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.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + 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.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Input data config details
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig) + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputDataSourceType_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + sampleSize_ = 0; + isSummaryGenerationAllowed_ = false; + summaryGenerationOption_ = 0; + if (agentAssistInputDataConfigBuilder_ != null) { + agentAssistInputDataConfigBuilder_.clear(); + } + if (datasetInputDataConfigBuilder_ != null) { + datasetInputDataConfigBuilder_.clear(); + } + sourceSpecificConfigCase_ = 0; + sourceSpecificConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig build() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + buildPartial() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig result = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputDataSourceType_ = inputDataSourceType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sampleSize_ = sampleSize_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isSummaryGenerationAllowed_ = isSummaryGenerationAllowed_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.summaryGenerationOption_ = summaryGenerationOption_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig result) { + result.sourceSpecificConfigCase_ = sourceSpecificConfigCase_; + result.sourceSpecificConfig_ = this.sourceSpecificConfig_; + if (sourceSpecificConfigCase_ == 6 && agentAssistInputDataConfigBuilder_ != null) { + result.sourceSpecificConfig_ = agentAssistInputDataConfigBuilder_.build(); + } + if (sourceSpecificConfigCase_ == 7 && datasetInputDataConfigBuilder_ != null) { + result.sourceSpecificConfig_ = datasetInputDataConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .getDefaultInstance()) return this; + if (other.inputDataSourceType_ != 0) { + setInputDataSourceTypeValue(other.getInputDataSourceTypeValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.getSampleSize() != 0) { + setSampleSize(other.getSampleSize()); + } + if (other.getIsSummaryGenerationAllowed() != false) { + setIsSummaryGenerationAllowed(other.getIsSummaryGenerationAllowed()); + } + if (other.summaryGenerationOption_ != 0) { + setSummaryGenerationOptionValue(other.getSummaryGenerationOptionValue()); + } + switch (other.getSourceSpecificConfigCase()) { + case AGENT_ASSIST_INPUT_DATA_CONFIG: + { + mergeAgentAssistInputDataConfig(other.getAgentAssistInputDataConfig()); + break; + } + case DATASET_INPUT_DATA_CONFIG: + { + mergeDatasetInputDataConfig(other.getDatasetInputDataConfig()); + break; + } + case SOURCESPECIFICCONFIG_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 8: + { + inputDataSourceType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + sampleSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + isSummaryGenerationAllowed_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + getAgentAssistInputDataConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceSpecificConfigCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getDatasetInputDataConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceSpecificConfigCase_ = 7; + break; + } // case 58 + case 64: + { + summaryGenerationOption_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 64 + 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 sourceSpecificConfigCase_ = 0; + private java.lang.Object sourceSpecificConfig_; + + public SourceSpecificConfigCase getSourceSpecificConfigCase() { + return SourceSpecificConfigCase.forNumber(sourceSpecificConfigCase_); + } + + public Builder clearSourceSpecificConfig() { + sourceSpecificConfigCase_ = 0; + sourceSpecificConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int inputDataSourceType_ = 0; + + /** + * + * + *
                                          +       * Required. The source type of input data.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType input_data_source_type = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.input_data_source_type + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=490 + * @return The enum numeric value on the wire for inputDataSourceType. + */ + @java.lang.Override + @java.lang.Deprecated + public int getInputDataSourceTypeValue() { + return inputDataSourceType_; + } + + /** + * + * + *
                                          +       * Required. The source type of input data.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType input_data_source_type = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.input_data_source_type + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=490 + * @param value The enum numeric value on the wire for inputDataSourceType to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setInputDataSourceTypeValue(int value) { + inputDataSourceType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The source type of input data.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType input_data_source_type = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.input_data_source_type + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=490 + * @return The inputDataSourceType. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType + getInputDataSourceType() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType result = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType + .forNumber(inputDataSourceType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +       * Required. The source type of input data.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType input_data_source_type = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.input_data_source_type + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=490 + * @param value The inputDataSourceType to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setInputDataSourceType( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + inputDataSourceType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The source type of input data.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataSourceType input_data_source_type = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.input_data_source_type + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=490 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearInputDataSourceType() { + bitField0_ = (bitField0_ & ~0x00000001); + inputDataSourceType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
                                          +       * Optional. The start timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.start_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=494 + * @return Whether the startTime field is set. + */ + @java.lang.Deprecated + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * Optional. The start timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.start_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=494 + * @return The startTime. + */ + @java.lang.Deprecated + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. The start timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The start timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The start timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. The start timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The start timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. The start timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + + /** + * + * + *
                                          +       * Optional. The start timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp start_time = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
                                          +       * Optional. The end timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.end_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=498 + * @return Whether the endTime field is set. + */ + @java.lang.Deprecated + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * Optional. The end timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.end_time is + * deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=498 + * @return The endTime. + */ + @java.lang.Deprecated + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. The end timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The end timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The end timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. The end timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The end timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. The end timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
                                          +       * Optional. The end timestamp to fetch conversation data.
                                          +       * 
                                          + * + * + * .google.protobuf.Timestamp end_time = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int sampleSize_; + + /** + * + * + *
                                          +       * Optional. Desired number of conversation-summary pairs to be evaluated.
                                          +       * 
                                          + * + * int32 sample_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sampleSize. + */ + @java.lang.Override + public int getSampleSize() { + return sampleSize_; + } + + /** + * + * + *
                                          +       * Optional. Desired number of conversation-summary pairs to be evaluated.
                                          +       * 
                                          + * + * int32 sample_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sampleSize to set. + * @return This builder for chaining. + */ + public Builder setSampleSize(int value) { + + sampleSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Desired number of conversation-summary pairs to be evaluated.
                                          +       * 
                                          + * + * int32 sample_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSampleSize() { + bitField0_ = (bitField0_ & ~0x00000008); + sampleSize_ = 0; + onChanged(); + return this; + } + + private boolean isSummaryGenerationAllowed_; + + /** + * + * + *
                                          +       * Optional. Whether the summary generation is allowed when the pre-existing
                                          +       * qualified summaries are insufficient to cover the sample size.
                                          +       * 
                                          + * + * + * bool is_summary_generation_allowed = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.is_summary_generation_allowed + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=506 + * @return The isSummaryGenerationAllowed. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getIsSummaryGenerationAllowed() { + return isSummaryGenerationAllowed_; + } + + /** + * + * + *
                                          +       * Optional. Whether the summary generation is allowed when the pre-existing
                                          +       * qualified summaries are insufficient to cover the sample size.
                                          +       * 
                                          + * + * + * bool is_summary_generation_allowed = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.is_summary_generation_allowed + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=506 + * @param value The isSummaryGenerationAllowed to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setIsSummaryGenerationAllowed(boolean value) { + + isSummaryGenerationAllowed_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Whether the summary generation is allowed when the pre-existing
                                          +       * qualified summaries are insufficient to cover the sample size.
                                          +       * 
                                          + * + * + * bool is_summary_generation_allowed = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.is_summary_generation_allowed + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=506 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearIsSummaryGenerationAllowed() { + bitField0_ = (bitField0_ & ~0x00000010); + isSummaryGenerationAllowed_ = false; + onChanged(); + return this; + } + + private int summaryGenerationOption_ = 0; + + /** + * + * + *
                                          +       * Optional. Option to control whether summaries are generated during
                                          +       * evaluation.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption summary_generation_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for summaryGenerationOption. + */ + @java.lang.Override + public int getSummaryGenerationOptionValue() { + return summaryGenerationOption_; + } + + /** + * + * + *
                                          +       * Optional. Option to control whether summaries are generated during
                                          +       * evaluation.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption summary_generation_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for summaryGenerationOption to set. + * @return This builder for chaining. + */ + public Builder setSummaryGenerationOptionValue(int value) { + summaryGenerationOption_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Option to control whether summaries are generated during
                                          +       * evaluation.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption summary_generation_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The summaryGenerationOption. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption + getSummaryGenerationOption() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption + result = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption.forNumber(summaryGenerationOption_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +       * Optional. Option to control whether summaries are generated during
                                          +       * evaluation.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption summary_generation_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The summaryGenerationOption to set. + * @return This builder for chaining. + */ + public Builder setSummaryGenerationOption( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .SummaryGenerationOption + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + summaryGenerationOption_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Option to control whether summaries are generated during
                                          +       * evaluation.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.SummaryGenerationOption summary_generation_option = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSummaryGenerationOption() { + bitField0_ = (bitField0_ & ~0x00000020); + summaryGenerationOption_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfigOrBuilder> + agentAssistInputDataConfigBuilder_; + + /** + * + * + *
                                          +       * The distinctive configs for Agent Assist conversations as the
                                          +       * conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + * + * @return Whether the agentAssistInputDataConfig field is set. + */ + @java.lang.Override + public boolean hasAgentAssistInputDataConfig() { + return sourceSpecificConfigCase_ == 6; + } + + /** + * + * + *
                                          +       * The distinctive configs for Agent Assist conversations as the
                                          +       * conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + * + * @return The agentAssistInputDataConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig + getAgentAssistInputDataConfig() { + if (agentAssistInputDataConfigBuilder_ == null) { + if (sourceSpecificConfigCase_ == 6) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + sourceSpecificConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.getDefaultInstance(); + } else { + if (sourceSpecificConfigCase_ == 6) { + return agentAssistInputDataConfigBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * The distinctive configs for Agent Assist conversations as the
                                          +       * conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + */ + public Builder setAgentAssistInputDataConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + value) { + if (agentAssistInputDataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceSpecificConfig_ = value; + onChanged(); + } else { + agentAssistInputDataConfigBuilder_.setMessage(value); + } + sourceSpecificConfigCase_ = 6; + return this; + } + + /** + * + * + *
                                          +       * The distinctive configs for Agent Assist conversations as the
                                          +       * conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + */ + public Builder setAgentAssistInputDataConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + .Builder + builderForValue) { + if (agentAssistInputDataConfigBuilder_ == null) { + sourceSpecificConfig_ = builderForValue.build(); + onChanged(); + } else { + agentAssistInputDataConfigBuilder_.setMessage(builderForValue.build()); + } + sourceSpecificConfigCase_ = 6; + return this; + } + + /** + * + * + *
                                          +       * The distinctive configs for Agent Assist conversations as the
                                          +       * conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + */ + public Builder mergeAgentAssistInputDataConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig + value) { + if (agentAssistInputDataConfigBuilder_ == null) { + if (sourceSpecificConfigCase_ == 6 + && sourceSpecificConfig_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.getDefaultInstance()) { + sourceSpecificConfig_ = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.newBuilder( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + sourceSpecificConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceSpecificConfig_ = value; + } + onChanged(); + } else { + if (sourceSpecificConfigCase_ == 6) { + agentAssistInputDataConfigBuilder_.mergeFrom(value); + } else { + agentAssistInputDataConfigBuilder_.setMessage(value); + } + } + sourceSpecificConfigCase_ = 6; + return this; + } + + /** + * + * + *
                                          +       * The distinctive configs for Agent Assist conversations as the
                                          +       * conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + */ + public Builder clearAgentAssistInputDataConfig() { + if (agentAssistInputDataConfigBuilder_ == null) { + if (sourceSpecificConfigCase_ == 6) { + sourceSpecificConfigCase_ = 0; + sourceSpecificConfig_ = null; + onChanged(); + } + } else { + if (sourceSpecificConfigCase_ == 6) { + sourceSpecificConfigCase_ = 0; + sourceSpecificConfig_ = null; + } + agentAssistInputDataConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * The distinctive configs for Agent Assist conversations as the
                                          +       * conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.Builder + getAgentAssistInputDataConfigBuilder() { + return getAgentAssistInputDataConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The distinctive configs for Agent Assist conversations as the
                                          +       * conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfigOrBuilder + getAgentAssistInputDataConfigOrBuilder() { + if ((sourceSpecificConfigCase_ == 6) && (agentAssistInputDataConfigBuilder_ != null)) { + return agentAssistInputDataConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceSpecificConfigCase_ == 6) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + sourceSpecificConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * The distinctive configs for Agent Assist conversations as the
                                          +       * conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfig agent_assist_input_data_config = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfigOrBuilder> + getAgentAssistInputDataConfigFieldBuilder() { + if (agentAssistInputDataConfigBuilder_ == null) { + if (!(sourceSpecificConfigCase_ == 6)) { + sourceSpecificConfig_ = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.getDefaultInstance(); + } + agentAssistInputDataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfigOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .AgentAssistInputDataConfig) + sourceSpecificConfig_, + getParentForChildren(), + isClean()); + sourceSpecificConfig_ = null; + } + sourceSpecificConfigCase_ = 6; + onChanged(); + return agentAssistInputDataConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfigOrBuilder> + datasetInputDataConfigBuilder_; + + /** + * + * + *
                                          +       * The distinctive configs for dataset as the conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + * + * @return Whether the datasetInputDataConfig field is set. + */ + @java.lang.Override + public boolean hasDatasetInputDataConfig() { + return sourceSpecificConfigCase_ == 7; + } + + /** + * + * + *
                                          +       * The distinctive configs for dataset as the conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + * + * @return The datasetInputDataConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + getDatasetInputDataConfig() { + if (datasetInputDataConfigBuilder_ == null) { + if (sourceSpecificConfigCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig) + sourceSpecificConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig.getDefaultInstance(); + } else { + if (sourceSpecificConfigCase_ == 7) { + return datasetInputDataConfigBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * The distinctive configs for dataset as the conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + */ + public Builder setDatasetInputDataConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + value) { + if (datasetInputDataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceSpecificConfig_ = value; + onChanged(); + } else { + datasetInputDataConfigBuilder_.setMessage(value); + } + sourceSpecificConfigCase_ = 7; + return this; + } + + /** + * + * + *
                                          +       * The distinctive configs for dataset as the conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + */ + public Builder setDatasetInputDataConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .Builder + builderForValue) { + if (datasetInputDataConfigBuilder_ == null) { + sourceSpecificConfig_ = builderForValue.build(); + onChanged(); + } else { + datasetInputDataConfigBuilder_.setMessage(builderForValue.build()); + } + sourceSpecificConfigCase_ = 7; + return this; + } + + /** + * + * + *
                                          +       * The distinctive configs for dataset as the conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + */ + public Builder mergeDatasetInputDataConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + value) { + if (datasetInputDataConfigBuilder_ == null) { + if (sourceSpecificConfigCase_ == 7 + && sourceSpecificConfig_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig.getDefaultInstance()) { + sourceSpecificConfig_ = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig) + sourceSpecificConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceSpecificConfig_ = value; + } + onChanged(); + } else { + if (sourceSpecificConfigCase_ == 7) { + datasetInputDataConfigBuilder_.mergeFrom(value); + } else { + datasetInputDataConfigBuilder_.setMessage(value); + } + } + sourceSpecificConfigCase_ = 7; + return this; + } + + /** + * + * + *
                                          +       * The distinctive configs for dataset as the conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + */ + public Builder clearDatasetInputDataConfig() { + if (datasetInputDataConfigBuilder_ == null) { + if (sourceSpecificConfigCase_ == 7) { + sourceSpecificConfigCase_ = 0; + sourceSpecificConfig_ = null; + onChanged(); + } + } else { + if (sourceSpecificConfigCase_ == 7) { + sourceSpecificConfigCase_ = 0; + sourceSpecificConfig_ = null; + } + datasetInputDataConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * The distinctive configs for dataset as the conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .Builder + getDatasetInputDataConfigBuilder() { + return getDatasetInputDataConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The distinctive configs for dataset as the conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfigOrBuilder + getDatasetInputDataConfigOrBuilder() { + if ((sourceSpecificConfigCase_ == 7) && (datasetInputDataConfigBuilder_ != null)) { + return datasetInputDataConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceSpecificConfigCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig) + sourceSpecificConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * The distinctive configs for dataset as the conversation source.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig dataset_input_data_config = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfigOrBuilder> + getDatasetInputDataConfigFieldBuilder() { + if (datasetInputDataConfigBuilder_ == null) { + if (!(sourceSpecificConfigCase_ == 7)) { + sourceSpecificConfig_ = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfig + .getDefaultInstance(); + } + datasetInputDataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfigOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .DatasetInputDataConfig) + sourceSpecificConfig_, + getParentForChildren(), + isClean()); + sourceSpecificConfig_ = null; + } + sourceSpecificConfigCase_ = 7; + onChanged(); + return datasetInputDataConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig) + private static final com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .InputDataConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputDataConfig 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.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SummarizationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Optional. Enable accuracy evaluation.
                                          +     * 
                                          + * + * + * bool enable_accuracy_evaluation = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_accuracy_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=528 + * @return The enableAccuracyEvaluation. + */ + @java.lang.Deprecated + boolean getEnableAccuracyEvaluation(); + + /** + * + * + *
                                          +     * Optional. Version for summarization accuracy. This will determine the
                                          +     * prompt and model used at backend.
                                          +     * 
                                          + * + * + * string accuracy_evaluation_version = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.accuracy_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=533 + * @return The accuracyEvaluationVersion. + */ + @java.lang.Deprecated + java.lang.String getAccuracyEvaluationVersion(); + + /** + * + * + *
                                          +     * Optional. Version for summarization accuracy. This will determine the
                                          +     * prompt and model used at backend.
                                          +     * 
                                          + * + * + * string accuracy_evaluation_version = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.accuracy_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=533 + * @return The bytes for accuracyEvaluationVersion. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getAccuracyEvaluationVersionBytes(); + + /** + * + * + *
                                          +     * Optional. Enable completeness evaluation.
                                          +     * 
                                          + * + * + * bool enable_completeness_evaluation = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_completeness_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=537 + * @return The enableCompletenessEvaluation. + */ + @java.lang.Deprecated + boolean getEnableCompletenessEvaluation(); + + /** + * + * + *
                                          +     * Optional. Version for summarization completeness. This will determine the
                                          +     * prompt and model used at backend.
                                          +     * 
                                          + * + * + * string completeness_evaluation_version = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.completeness_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=542 + * @return The completenessEvaluationVersion. + */ + @java.lang.Deprecated + java.lang.String getCompletenessEvaluationVersion(); + + /** + * + * + *
                                          +     * Optional. Version for summarization completeness. This will determine the
                                          +     * prompt and model used at backend.
                                          +     * 
                                          + * + * + * string completeness_evaluation_version = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.completeness_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=542 + * @return The bytes for completenessEvaluationVersion. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getCompletenessEvaluationVersionBytes(); + + /** + * + * + *
                                          +     * Optional. Version for summarization evaluation.
                                          +     * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the evaluatorVersion field is set. + */ + boolean hasEvaluatorVersion(); + + /** + * + * + *
                                          +     * Optional. Version for summarization evaluation.
                                          +     * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The evaluatorVersion. + */ + java.lang.String getEvaluatorVersion(); + + /** + * + * + *
                                          +     * Optional. Version for summarization evaluation.
                                          +     * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for evaluatorVersion. + */ + com.google.protobuf.ByteString getEvaluatorVersionBytes(); + } + + /** + * + * + *
                                          +   * Evaluation configs for summarization generator.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig} + */ + public static final class SummarizationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + SummarizationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SummarizationConfig.newBuilder() to construct. + private SummarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SummarizationConfig() { + accuracyEvaluationVersion_ = ""; + completenessEvaluationVersion_ = ""; + evaluatorVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SummarizationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .Builder.class); + } + + private int bitField0_; + public static final int ENABLE_ACCURACY_EVALUATION_FIELD_NUMBER = 1; + private boolean enableAccuracyEvaluation_ = false; + + /** + * + * + *
                                          +     * Optional. Enable accuracy evaluation.
                                          +     * 
                                          + * + * + * bool enable_accuracy_evaluation = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_accuracy_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=528 + * @return The enableAccuracyEvaluation. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getEnableAccuracyEvaluation() { + return enableAccuracyEvaluation_; + } + + public static final int ACCURACY_EVALUATION_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object accuracyEvaluationVersion_ = ""; + + /** + * + * + *
                                          +     * Optional. Version for summarization accuracy. This will determine the
                                          +     * prompt and model used at backend.
                                          +     * 
                                          + * + * + * string accuracy_evaluation_version = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.accuracy_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=533 + * @return The accuracyEvaluationVersion. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getAccuracyEvaluationVersion() { + java.lang.Object ref = accuracyEvaluationVersion_; + 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(); + accuracyEvaluationVersion_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Optional. Version for summarization accuracy. This will determine the
                                          +     * prompt and model used at backend.
                                          +     * 
                                          + * + * + * string accuracy_evaluation_version = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.accuracy_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=533 + * @return The bytes for accuracyEvaluationVersion. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getAccuracyEvaluationVersionBytes() { + java.lang.Object ref = accuracyEvaluationVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accuracyEvaluationVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_COMPLETENESS_EVALUATION_FIELD_NUMBER = 3; + private boolean enableCompletenessEvaluation_ = false; + + /** + * + * + *
                                          +     * Optional. Enable completeness evaluation.
                                          +     * 
                                          + * + * + * bool enable_completeness_evaluation = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_completeness_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=537 + * @return The enableCompletenessEvaluation. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getEnableCompletenessEvaluation() { + return enableCompletenessEvaluation_; + } + + public static final int COMPLETENESS_EVALUATION_VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object completenessEvaluationVersion_ = ""; + + /** + * + * + *
                                          +     * Optional. Version for summarization completeness. This will determine the
                                          +     * prompt and model used at backend.
                                          +     * 
                                          + * + * + * string completeness_evaluation_version = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.completeness_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=542 + * @return The completenessEvaluationVersion. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getCompletenessEvaluationVersion() { + java.lang.Object ref = completenessEvaluationVersion_; + 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(); + completenessEvaluationVersion_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Optional. Version for summarization completeness. This will determine the
                                          +     * prompt and model used at backend.
                                          +     * 
                                          + * + * + * string completeness_evaluation_version = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.completeness_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=542 + * @return The bytes for completenessEvaluationVersion. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getCompletenessEvaluationVersionBytes() { + java.lang.Object ref = completenessEvaluationVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completenessEvaluationVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATOR_VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object evaluatorVersion_ = ""; + + /** + * + * + *
                                          +     * Optional. Version for summarization evaluation.
                                          +     * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the evaluatorVersion field is set. + */ + @java.lang.Override + public boolean hasEvaluatorVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Optional. Version for summarization evaluation.
                                          +     * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The evaluatorVersion. + */ + @java.lang.Override + public java.lang.String getEvaluatorVersion() { + java.lang.Object ref = evaluatorVersion_; + 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(); + evaluatorVersion_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Optional. Version for summarization evaluation.
                                          +     * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for evaluatorVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluatorVersionBytes() { + java.lang.Object ref = evaluatorVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluatorVersion_ = 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 (enableAccuracyEvaluation_ != false) { + output.writeBool(1, enableAccuracyEvaluation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accuracyEvaluationVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accuracyEvaluationVersion_); + } + if (enableCompletenessEvaluation_ != false) { + output.writeBool(3, enableCompletenessEvaluation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(completenessEvaluationVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, completenessEvaluationVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, evaluatorVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableAccuracyEvaluation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableAccuracyEvaluation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accuracyEvaluationVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accuracyEvaluationVersion_); + } + if (enableCompletenessEvaluation_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableCompletenessEvaluation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(completenessEvaluationVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 4, completenessEvaluationVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, evaluatorVersion_); + } + 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.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig other = + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) obj; + + if (getEnableAccuracyEvaluation() != other.getEnableAccuracyEvaluation()) return false; + if (!getAccuracyEvaluationVersion().equals(other.getAccuracyEvaluationVersion())) + return false; + if (getEnableCompletenessEvaluation() != other.getEnableCompletenessEvaluation()) + return false; + if (!getCompletenessEvaluationVersion().equals(other.getCompletenessEvaluationVersion())) + return false; + if (hasEvaluatorVersion() != other.hasEvaluatorVersion()) return false; + if (hasEvaluatorVersion()) { + if (!getEvaluatorVersion().equals(other.getEvaluatorVersion())) 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) + ENABLE_ACCURACY_EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAccuracyEvaluation()); + hash = (37 * hash) + ACCURACY_EVALUATION_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAccuracyEvaluationVersion().hashCode(); + hash = (37 * hash) + ENABLE_COMPLETENESS_EVALUATION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableCompletenessEvaluation()); + hash = (37 * hash) + COMPLETENESS_EVALUATION_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCompletenessEvaluationVersion().hashCode(); + if (hasEvaluatorVersion()) { + hash = (37 * hash) + EVALUATOR_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluatorVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + 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.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + 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.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableAccuracyEvaluation_ = false; + accuracyEvaluationVersion_ = ""; + enableCompletenessEvaluation_ = false; + completenessEvaluationVersion_ = ""; + evaluatorVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + build() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + buildPartial() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig result = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableAccuracyEvaluation_ = enableAccuracyEvaluation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accuracyEvaluationVersion_ = accuracyEvaluationVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableCompletenessEvaluation_ = enableCompletenessEvaluation_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.completenessEvaluationVersion_ = completenessEvaluationVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.evaluatorVersion_ = evaluatorVersion_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .getDefaultInstance()) return this; + if (other.getEnableAccuracyEvaluation() != false) { + setEnableAccuracyEvaluation(other.getEnableAccuracyEvaluation()); + } + if (!other.getAccuracyEvaluationVersion().isEmpty()) { + accuracyEvaluationVersion_ = other.accuracyEvaluationVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getEnableCompletenessEvaluation() != false) { + setEnableCompletenessEvaluation(other.getEnableCompletenessEvaluation()); + } + if (!other.getCompletenessEvaluationVersion().isEmpty()) { + completenessEvaluationVersion_ = other.completenessEvaluationVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasEvaluatorVersion()) { + evaluatorVersion_ = other.evaluatorVersion_; + bitField0_ |= 0x00000010; + 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 8: + { + enableAccuracyEvaluation_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + accuracyEvaluationVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + enableCompletenessEvaluation_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + completenessEvaluationVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + evaluatorVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 boolean enableAccuracyEvaluation_; + + /** + * + * + *
                                          +       * Optional. Enable accuracy evaluation.
                                          +       * 
                                          + * + * + * bool enable_accuracy_evaluation = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_accuracy_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=528 + * @return The enableAccuracyEvaluation. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getEnableAccuracyEvaluation() { + return enableAccuracyEvaluation_; + } + + /** + * + * + *
                                          +       * Optional. Enable accuracy evaluation.
                                          +       * 
                                          + * + * + * bool enable_accuracy_evaluation = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_accuracy_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=528 + * @param value The enableAccuracyEvaluation to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setEnableAccuracyEvaluation(boolean value) { + + enableAccuracyEvaluation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Enable accuracy evaluation.
                                          +       * 
                                          + * + * + * bool enable_accuracy_evaluation = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_accuracy_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=528 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearEnableAccuracyEvaluation() { + bitField0_ = (bitField0_ & ~0x00000001); + enableAccuracyEvaluation_ = false; + onChanged(); + return this; + } + + private java.lang.Object accuracyEvaluationVersion_ = ""; + + /** + * + * + *
                                          +       * Optional. Version for summarization accuracy. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string accuracy_evaluation_version = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.accuracy_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=533 + * @return The accuracyEvaluationVersion. + */ + @java.lang.Deprecated + public java.lang.String getAccuracyEvaluationVersion() { + java.lang.Object ref = accuracyEvaluationVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accuracyEvaluationVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Optional. Version for summarization accuracy. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string accuracy_evaluation_version = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.accuracy_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=533 + * @return The bytes for accuracyEvaluationVersion. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getAccuracyEvaluationVersionBytes() { + java.lang.Object ref = accuracyEvaluationVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accuracyEvaluationVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Optional. Version for summarization accuracy. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string accuracy_evaluation_version = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.accuracy_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=533 + * @param value The accuracyEvaluationVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setAccuracyEvaluationVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accuracyEvaluationVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Version for summarization accuracy. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string accuracy_evaluation_version = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.accuracy_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=533 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearAccuracyEvaluationVersion() { + accuracyEvaluationVersion_ = getDefaultInstance().getAccuracyEvaluationVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Version for summarization accuracy. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string accuracy_evaluation_version = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.accuracy_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=533 + * @param value The bytes for accuracyEvaluationVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setAccuracyEvaluationVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accuracyEvaluationVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean enableCompletenessEvaluation_; + + /** + * + * + *
                                          +       * Optional. Enable completeness evaluation.
                                          +       * 
                                          + * + * + * bool enable_completeness_evaluation = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_completeness_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=537 + * @return The enableCompletenessEvaluation. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getEnableCompletenessEvaluation() { + return enableCompletenessEvaluation_; + } + + /** + * + * + *
                                          +       * Optional. Enable completeness evaluation.
                                          +       * 
                                          + * + * + * bool enable_completeness_evaluation = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_completeness_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=537 + * @param value The enableCompletenessEvaluation to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setEnableCompletenessEvaluation(boolean value) { + + enableCompletenessEvaluation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Enable completeness evaluation.
                                          +       * 
                                          + * + * + * bool enable_completeness_evaluation = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.enable_completeness_evaluation + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=537 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearEnableCompletenessEvaluation() { + bitField0_ = (bitField0_ & ~0x00000004); + enableCompletenessEvaluation_ = false; + onChanged(); + return this; + } + + private java.lang.Object completenessEvaluationVersion_ = ""; + + /** + * + * + *
                                          +       * Optional. Version for summarization completeness. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string completeness_evaluation_version = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.completeness_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=542 + * @return The completenessEvaluationVersion. + */ + @java.lang.Deprecated + public java.lang.String getCompletenessEvaluationVersion() { + java.lang.Object ref = completenessEvaluationVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + completenessEvaluationVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Optional. Version for summarization completeness. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string completeness_evaluation_version = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.completeness_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=542 + * @return The bytes for completenessEvaluationVersion. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getCompletenessEvaluationVersionBytes() { + java.lang.Object ref = completenessEvaluationVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completenessEvaluationVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Optional. Version for summarization completeness. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string completeness_evaluation_version = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.completeness_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=542 + * @param value The completenessEvaluationVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCompletenessEvaluationVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + completenessEvaluationVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Version for summarization completeness. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string completeness_evaluation_version = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.completeness_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=542 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCompletenessEvaluationVersion() { + completenessEvaluationVersion_ = getDefaultInstance().getCompletenessEvaluationVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Version for summarization completeness. This will determine the
                                          +       * prompt and model used at backend.
                                          +       * 
                                          + * + * + * string completeness_evaluation_version = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.completeness_evaluation_version + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=542 + * @param value The bytes for completenessEvaluationVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCompletenessEvaluationVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + completenessEvaluationVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object evaluatorVersion_ = ""; + + /** + * + * + *
                                          +       * Optional. Version for summarization evaluation.
                                          +       * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluatorVersion field is set. + */ + public boolean hasEvaluatorVersion() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                          +       * Optional. Version for summarization evaluation.
                                          +       * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluatorVersion. + */ + public java.lang.String getEvaluatorVersion() { + java.lang.Object ref = evaluatorVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluatorVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Optional. Version for summarization evaluation.
                                          +       * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for evaluatorVersion. + */ + public com.google.protobuf.ByteString getEvaluatorVersionBytes() { + java.lang.Object ref = evaluatorVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluatorVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Optional. Version for summarization evaluation.
                                          +       * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The evaluatorVersion to set. + * @return This builder for chaining. + */ + public Builder setEvaluatorVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluatorVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Version for summarization evaluation.
                                          +       * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluatorVersion() { + evaluatorVersion_ = getDefaultInstance().getEvaluatorVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Version for summarization evaluation.
                                          +       * 
                                          + * + * optional string evaluator_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for evaluatorVersion to set. + * @return This builder for chaining. + */ + public Builder setEvaluatorVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluatorVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + private static final com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .SummarizationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarizationConfig 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.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int evaluationFeatureConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object evaluationFeatureConfig_; + + public enum EvaluationFeatureConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SUMMARIZATION_CONFIG(3), + EVALUATIONFEATURECONFIG_NOT_SET(0); + private final int value; + + private EvaluationFeatureConfigCase(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 EvaluationFeatureConfigCase valueOf(int value) { + return forNumber(value); + } + + public static EvaluationFeatureConfigCase forNumber(int value) { + switch (value) { + case 3: + return SUMMARIZATION_CONFIG; + case 0: + return EVALUATIONFEATURECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EvaluationFeatureConfigCase getEvaluationFeatureConfigCase() { + return EvaluationFeatureConfigCase.forNumber(evaluationFeatureConfigCase_); + } + + public static final int INPUT_DATA_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + inputDataConfig_; + + /** + * + * + *
                                          +   * Required. The config/source of input data.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputDataConfig field is set. + */ + @java.lang.Override + public boolean hasInputDataConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Required. The config/source of input data.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputDataConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + getInputDataConfig() { + return inputDataConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .getDefaultInstance() + : inputDataConfig_; + } + + /** + * + * + *
                                          +   * Required. The config/source of input data.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfigOrBuilder + getInputDataConfigOrBuilder() { + return inputDataConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .getDefaultInstance() + : inputDataConfig_; + } + + public static final int OUTPUT_GCS_BUCKET_PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputGcsBucketPath_ = ""; + + /** + * + * + *
                                          +   * Required. The output Cloud Storage bucket path to store eval files, e.g.
                                          +   * per_summary_accuracy_score report. This path is provided by customer and
                                          +   * files stored in it are visible to customer, no internal data should be
                                          +   * stored in this path.
                                          +   * 
                                          + * + * string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputGcsBucketPath. + */ + @java.lang.Override + public java.lang.String getOutputGcsBucketPath() { + java.lang.Object ref = outputGcsBucketPath_; + 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(); + outputGcsBucketPath_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Required. The output Cloud Storage bucket path to store eval files, e.g.
                                          +   * per_summary_accuracy_score report. This path is provided by customer and
                                          +   * files stored in it are visible to customer, no internal data should be
                                          +   * stored in this path.
                                          +   * 
                                          + * + * string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputGcsBucketPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputGcsBucketPathBytes() { + java.lang.Object ref = outputGcsBucketPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsBucketPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUMMARIZATION_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
                                          +   * Evaluation configs for summarization generator.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + * + * @return Whether the summarizationConfig field is set. + */ + @java.lang.Override + public boolean hasSummarizationConfig() { + return evaluationFeatureConfigCase_ == 3; + } + + /** + * + * + *
                                          +   * Evaluation configs for summarization generator.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + * + * @return The summarizationConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + getSummarizationConfig() { + if (evaluationFeatureConfigCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + evaluationFeatureConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Evaluation configs for summarization generator.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfigOrBuilder + getSummarizationConfigOrBuilder() { + if (evaluationFeatureConfigCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + evaluationFeatureConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInputDataConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputGcsBucketPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputGcsBucketPath_); + } + if (evaluationFeatureConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + evaluationFeatureConfig_); + } + 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, getInputDataConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputGcsBucketPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputGcsBucketPath_); + } + if (evaluationFeatureConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + evaluationFeatureConfig_); + } + 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.dialogflow.v2beta1.GeneratorEvaluationConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig other = + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig) obj; + + if (hasInputDataConfig() != other.hasInputDataConfig()) return false; + if (hasInputDataConfig()) { + if (!getInputDataConfig().equals(other.getInputDataConfig())) return false; + } + if (!getOutputGcsBucketPath().equals(other.getOutputGcsBucketPath())) return false; + if (!getEvaluationFeatureConfigCase().equals(other.getEvaluationFeatureConfigCase())) + return false; + switch (evaluationFeatureConfigCase_) { + case 3: + if (!getSummarizationConfig().equals(other.getSummarizationConfig())) 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(); + if (hasInputDataConfig()) { + hash = (37 * hash) + INPUT_DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getInputDataConfig().hashCode(); + } + hash = (37 * hash) + OUTPUT_GCS_BUCKET_PATH_FIELD_NUMBER; + hash = (53 * hash) + getOutputGcsBucketPath().hashCode(); + switch (evaluationFeatureConfigCase_) { + case 3: + hash = (37 * hash) + SUMMARIZATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSummarizationConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig 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.dialogflow.v2beta1.GeneratorEvaluationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig 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.dialogflow.v2beta1.GeneratorEvaluationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Generator evaluation input config.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig) + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInputDataConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputDataConfig_ = null; + if (inputDataConfigBuilder_ != null) { + inputDataConfigBuilder_.dispose(); + inputDataConfigBuilder_ = null; + } + outputGcsBucketPath_ = ""; + if (summarizationConfigBuilder_ != null) { + summarizationConfigBuilder_.clear(); + } + evaluationFeatureConfigCase_ = 0; + evaluationFeatureConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig build() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig result = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputDataConfig_ = + inputDataConfigBuilder_ == null ? inputDataConfig_ : inputDataConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputGcsBucketPath_ = outputGcsBucketPath_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig result) { + result.evaluationFeatureConfigCase_ = evaluationFeatureConfigCase_; + result.evaluationFeatureConfig_ = this.evaluationFeatureConfig_; + if (evaluationFeatureConfigCase_ == 3 && summarizationConfigBuilder_ != null) { + result.evaluationFeatureConfig_ = summarizationConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.getDefaultInstance()) + return this; + if (other.hasInputDataConfig()) { + mergeInputDataConfig(other.getInputDataConfig()); + } + if (!other.getOutputGcsBucketPath().isEmpty()) { + outputGcsBucketPath_ = other.outputGcsBucketPath_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getEvaluationFeatureConfigCase()) { + case SUMMARIZATION_CONFIG: + { + mergeSummarizationConfig(other.getSummarizationConfig()); + break; + } + case EVALUATIONFEATURECONFIG_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: + { + input.readMessage(getInputDataConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + outputGcsBucketPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getSummarizationConfigFieldBuilder().getBuilder(), extensionRegistry); + evaluationFeatureConfigCase_ = 3; + 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 evaluationFeatureConfigCase_ = 0; + private java.lang.Object evaluationFeatureConfig_; + + public EvaluationFeatureConfigCase getEvaluationFeatureConfigCase() { + return EvaluationFeatureConfigCase.forNumber(evaluationFeatureConfigCase_); + } + + public Builder clearEvaluationFeatureConfig() { + evaluationFeatureConfigCase_ = 0; + evaluationFeatureConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + inputDataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfigOrBuilder> + inputDataConfigBuilder_; + + /** + * + * + *
                                          +     * Required. The config/source of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputDataConfig field is set. + */ + public boolean hasInputDataConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Required. The config/source of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputDataConfig. + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + getInputDataConfig() { + if (inputDataConfigBuilder_ == null) { + return inputDataConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .getDefaultInstance() + : inputDataConfig_; + } else { + return inputDataConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Required. The config/source of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputDataConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig value) { + if (inputDataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputDataConfig_ = value; + } else { + inputDataConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The config/source of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputDataConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.Builder + builderForValue) { + if (inputDataConfigBuilder_ == null) { + inputDataConfig_ = builderForValue.build(); + } else { + inputDataConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The config/source of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInputDataConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig value) { + if (inputDataConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && inputDataConfig_ != null + && inputDataConfig_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .getDefaultInstance()) { + getInputDataConfigBuilder().mergeFrom(value); + } else { + inputDataConfig_ = value; + } + } else { + inputDataConfigBuilder_.mergeFrom(value); + } + if (inputDataConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Required. The config/source of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInputDataConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + inputDataConfig_ = null; + if (inputDataConfigBuilder_ != null) { + inputDataConfigBuilder_.dispose(); + inputDataConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The config/source of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.Builder + getInputDataConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInputDataConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Required. The config/source of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfigOrBuilder + getInputDataConfigOrBuilder() { + if (inputDataConfigBuilder_ != null) { + return inputDataConfigBuilder_.getMessageOrBuilder(); + } else { + return inputDataConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .getDefaultInstance() + : inputDataConfig_; + } + } + + /** + * + * + *
                                          +     * Required. The config/source of input data.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfigOrBuilder> + getInputDataConfigFieldBuilder() { + if (inputDataConfigBuilder_ == null) { + inputDataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + .Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .InputDataConfigOrBuilder>( + getInputDataConfig(), getParentForChildren(), isClean()); + inputDataConfig_ = null; + } + return inputDataConfigBuilder_; + } + + private java.lang.Object outputGcsBucketPath_ = ""; + + /** + * + * + *
                                          +     * Required. The output Cloud Storage bucket path to store eval files, e.g.
                                          +     * per_summary_accuracy_score report. This path is provided by customer and
                                          +     * files stored in it are visible to customer, no internal data should be
                                          +     * stored in this path.
                                          +     * 
                                          + * + * string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputGcsBucketPath. + */ + public java.lang.String getOutputGcsBucketPath() { + java.lang.Object ref = outputGcsBucketPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsBucketPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Required. The output Cloud Storage bucket path to store eval files, e.g.
                                          +     * per_summary_accuracy_score report. This path is provided by customer and
                                          +     * files stored in it are visible to customer, no internal data should be
                                          +     * stored in this path.
                                          +     * 
                                          + * + * string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputGcsBucketPath. + */ + public com.google.protobuf.ByteString getOutputGcsBucketPathBytes() { + java.lang.Object ref = outputGcsBucketPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsBucketPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Required. The output Cloud Storage bucket path to store eval files, e.g.
                                          +     * per_summary_accuracy_score report. This path is provided by customer and
                                          +     * files stored in it are visible to customer, no internal data should be
                                          +     * stored in this path.
                                          +     * 
                                          + * + * string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The outputGcsBucketPath to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsBucketPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputGcsBucketPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The output Cloud Storage bucket path to store eval files, e.g.
                                          +     * per_summary_accuracy_score report. This path is provided by customer and
                                          +     * files stored in it are visible to customer, no internal data should be
                                          +     * stored in this path.
                                          +     * 
                                          + * + * string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOutputGcsBucketPath() { + outputGcsBucketPath_ = getDefaultInstance().getOutputGcsBucketPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The output Cloud Storage bucket path to store eval files, e.g.
                                          +     * per_summary_accuracy_score report. This path is provided by customer and
                                          +     * files stored in it are visible to customer, no internal data should be
                                          +     * stored in this path.
                                          +     * 
                                          + * + * string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for outputGcsBucketPath to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsBucketPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsBucketPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .SummarizationConfigOrBuilder> + summarizationConfigBuilder_; + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + * + * @return Whether the summarizationConfig field is set. + */ + @java.lang.Override + public boolean hasSummarizationConfig() { + return evaluationFeatureConfigCase_ == 3; + } + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + * + * @return The summarizationConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + getSummarizationConfig() { + if (summarizationConfigBuilder_ == null) { + if (evaluationFeatureConfigCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + evaluationFeatureConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .getDefaultInstance(); + } else { + if (evaluationFeatureConfigCase_ == 3) { + return summarizationConfigBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + */ + public Builder setSummarizationConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig value) { + if (summarizationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationFeatureConfig_ = value; + onChanged(); + } else { + summarizationConfigBuilder_.setMessage(value); + } + evaluationFeatureConfigCase_ = 3; + return this; + } + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + */ + public Builder setSummarizationConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.Builder + builderForValue) { + if (summarizationConfigBuilder_ == null) { + evaluationFeatureConfig_ = builderForValue.build(); + onChanged(); + } else { + summarizationConfigBuilder_.setMessage(builderForValue.build()); + } + evaluationFeatureConfigCase_ = 3; + return this; + } + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + */ + public Builder mergeSummarizationConfig( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig value) { + if (summarizationConfigBuilder_ == null) { + if (evaluationFeatureConfigCase_ == 3 + && evaluationFeatureConfig_ + != com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .getDefaultInstance()) { + evaluationFeatureConfig_ = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .SummarizationConfig) + evaluationFeatureConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationFeatureConfig_ = value; + } + onChanged(); + } else { + if (evaluationFeatureConfigCase_ == 3) { + summarizationConfigBuilder_.mergeFrom(value); + } else { + summarizationConfigBuilder_.setMessage(value); + } + } + evaluationFeatureConfigCase_ = 3; + return this; + } + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + */ + public Builder clearSummarizationConfig() { + if (summarizationConfigBuilder_ == null) { + if (evaluationFeatureConfigCase_ == 3) { + evaluationFeatureConfigCase_ = 0; + evaluationFeatureConfig_ = null; + onChanged(); + } + } else { + if (evaluationFeatureConfigCase_ == 3) { + evaluationFeatureConfigCase_ = 0; + evaluationFeatureConfig_ = null; + } + summarizationConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig.Builder + getSummarizationConfigBuilder() { + return getSummarizationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .SummarizationConfigOrBuilder + getSummarizationConfigOrBuilder() { + if ((evaluationFeatureConfigCase_ == 3) && (summarizationConfigBuilder_ != null)) { + return summarizationConfigBuilder_.getMessageOrBuilder(); + } else { + if (evaluationFeatureConfigCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + evaluationFeatureConfig_; + } + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Evaluation configs for summarization generator.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .SummarizationConfigOrBuilder> + getSummarizationConfigFieldBuilder() { + if (summarizationConfigBuilder_ == null) { + if (!(evaluationFeatureConfigCase_ == 3)) { + evaluationFeatureConfig_ = + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .getDefaultInstance(); + } + summarizationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + .Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + .SummarizationConfigOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig) + evaluationFeatureConfig_, + getParentForChildren(), + isClean()); + evaluationFeatureConfig_ = null; + } + evaluationFeatureConfigCase_ = 3; + onChanged(); + return summarizationConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig) + private static final com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeneratorEvaluationConfig 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.dialogflow.v2beta1.GeneratorEvaluationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationConfigOrBuilder.java new file mode 100644 index 000000000000..d4d56c7fad5d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationConfigOrBuilder.java @@ -0,0 +1,151 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface GeneratorEvaluationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The config/source of input data.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputDataConfig field is set. + */ + boolean hasInputDataConfig(); + + /** + * + * + *
                                          +   * Required. The config/source of input data.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputDataConfig. + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig + getInputDataConfig(); + + /** + * + * + *
                                          +   * Required. The config/source of input data.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfigOrBuilder + getInputDataConfigOrBuilder(); + + /** + * + * + *
                                          +   * Required. The output Cloud Storage bucket path to store eval files, e.g.
                                          +   * per_summary_accuracy_score report. This path is provided by customer and
                                          +   * files stored in it are visible to customer, no internal data should be
                                          +   * stored in this path.
                                          +   * 
                                          + * + * string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputGcsBucketPath. + */ + java.lang.String getOutputGcsBucketPath(); + + /** + * + * + *
                                          +   * Required. The output Cloud Storage bucket path to store eval files, e.g.
                                          +   * per_summary_accuracy_score report. This path is provided by customer and
                                          +   * files stored in it are visible to customer, no internal data should be
                                          +   * stored in this path.
                                          +   * 
                                          + * + * string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputGcsBucketPath. + */ + com.google.protobuf.ByteString getOutputGcsBucketPathBytes(); + + /** + * + * + *
                                          +   * Evaluation configs for summarization generator.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + * + * @return Whether the summarizationConfig field is set. + */ + boolean hasSummarizationConfig(); + + /** + * + * + *
                                          +   * Evaluation configs for summarization generator.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + * + * @return The summarizationConfig. + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig + getSummarizationConfig(); + + /** + * + * + *
                                          +   * Evaluation configs for summarization generator.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.SummarizationConfigOrBuilder + getSummarizationConfigOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig.EvaluationFeatureConfigCase + getEvaluationFeatureConfigCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationName.java new file mode 100644 index 000000000000..855e68e12f45 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationName.java @@ -0,0 +1,262 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +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 GeneratorEvaluationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_GENERATOR_EVALUATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/generators/{generator}/evaluations/{evaluation}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String generator; + private final String evaluation; + + @Deprecated + protected GeneratorEvaluationName() { + project = null; + location = null; + generator = null; + evaluation = null; + } + + private GeneratorEvaluationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + generator = Preconditions.checkNotNull(builder.getGenerator()); + evaluation = Preconditions.checkNotNull(builder.getEvaluation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGenerator() { + return generator; + } + + public String getEvaluation() { + return evaluation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static GeneratorEvaluationName of( + String project, String location, String generator, String evaluation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setGenerator(generator) + .setEvaluation(evaluation) + .build(); + } + + public static String format( + String project, String location, String generator, String evaluation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setGenerator(generator) + .setEvaluation(evaluation) + .build() + .toString(); + } + + public static GeneratorEvaluationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_GENERATOR_EVALUATION.validatedMatch( + formattedString, "GeneratorEvaluationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("generator"), + matchMap.get("evaluation")); + } + + 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 (GeneratorEvaluationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_GENERATOR_EVALUATION.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 (generator != null) { + fieldMapBuilder.put("generator", generator); + } + if (evaluation != null) { + fieldMapBuilder.put("evaluation", evaluation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_GENERATOR_EVALUATION.instantiate( + "project", project, "location", location, "generator", generator, "evaluation", evaluation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + GeneratorEvaluationName that = ((GeneratorEvaluationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.generator, that.generator) + && Objects.equals(this.evaluation, that.evaluation); + } + 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(generator); + h *= 1000003; + h ^= Objects.hashCode(evaluation); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/generators/{generator}/evaluations/{evaluation}. + */ + public static class Builder { + private String project; + private String location; + private String generator; + private String evaluation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGenerator() { + return generator; + } + + public String getEvaluation() { + return evaluation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setGenerator(String generator) { + this.generator = generator; + return this; + } + + public Builder setEvaluation(String evaluation) { + this.evaluation = evaluation; + return this; + } + + private Builder(GeneratorEvaluationName generatorEvaluationName) { + this.project = generatorEvaluationName.project; + this.location = generatorEvaluationName.location; + this.generator = generatorEvaluationName.generator; + this.evaluation = generatorEvaluationName.evaluation; + } + + public GeneratorEvaluationName build() { + return new GeneratorEvaluationName(this); + } + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationOperationMetadata.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationOperationMetadata.java new file mode 100644 index 000000000000..124e6e45de81 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationOperationMetadata.java @@ -0,0 +1,671 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/operations.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Metadata for a
                                          + * [GeneratorEvaluations.CreateGeneratorEvaluation][google.cloud.dialogflow.v2beta1.GeneratorEvaluations.CreateGeneratorEvaluation]
                                          + * operation.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata} + */ +public final class GeneratorEvaluationOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata) + GeneratorEvaluationOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GeneratorEvaluationOperationMetadata.newBuilder() to construct. + private GeneratorEvaluationOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GeneratorEvaluationOperationMetadata() { + generatorEvaluation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GeneratorEvaluationOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.OperationsProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.OperationsProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata.Builder.class); + } + + public static final int GENERATOR_EVALUATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object generatorEvaluation_ = ""; + + /** + * + * + *
                                          +   * Output only. The resource name of the generator evaluation. Format:
                                          +   * `projects/<Project ID>/locations/<Location
                                          +   * ID>/generators/<Generator ID>/evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * string generator_evaluation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The generatorEvaluation. + */ + @java.lang.Override + public java.lang.String getGeneratorEvaluation() { + java.lang.Object ref = generatorEvaluation_; + 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(); + generatorEvaluation_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Output only. The resource name of the generator evaluation. Format:
                                          +   * `projects/<Project ID>/locations/<Location
                                          +   * ID>/generators/<Generator ID>/evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * string generator_evaluation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for generatorEvaluation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGeneratorEvaluationBytes() { + java.lang.Object ref = generatorEvaluation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generatorEvaluation_ = 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.GeneratedMessageV3.isStringEmpty(generatorEvaluation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, generatorEvaluation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generatorEvaluation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, generatorEvaluation_); + } + 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.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata other = + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata) obj; + + if (!getGeneratorEvaluation().equals(other.getGeneratorEvaluation())) 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) + GENERATOR_EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getGeneratorEvaluation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata 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.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata 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.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Metadata for a
                                          +   * [GeneratorEvaluations.CreateGeneratorEvaluation][google.cloud.dialogflow.v2beta1.GeneratorEvaluations.CreateGeneratorEvaluation]
                                          +   * operation.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata) + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.OperationsProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.OperationsProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata.class, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatorEvaluation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.OperationsProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata build() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata buildPartial() { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata result = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generatorEvaluation_ = generatorEvaluation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata other) { + if (other + == com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata + .getDefaultInstance()) return this; + if (!other.getGeneratorEvaluation().isEmpty()) { + generatorEvaluation_ = other.generatorEvaluation_; + 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: + { + generatorEvaluation_ = 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 generatorEvaluation_ = ""; + + /** + * + * + *
                                          +     * Output only. The resource name of the generator evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location
                                          +     * ID>/generators/<Generator ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * string generator_evaluation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The generatorEvaluation. + */ + public java.lang.String getGeneratorEvaluation() { + java.lang.Object ref = generatorEvaluation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generatorEvaluation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Output only. The resource name of the generator evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location
                                          +     * ID>/generators/<Generator ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * string generator_evaluation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for generatorEvaluation. + */ + public com.google.protobuf.ByteString getGeneratorEvaluationBytes() { + java.lang.Object ref = generatorEvaluation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generatorEvaluation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Output only. The resource name of the generator evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location
                                          +     * ID>/generators/<Generator ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * string generator_evaluation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The generatorEvaluation to set. + * @return This builder for chaining. + */ + public Builder setGeneratorEvaluation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + generatorEvaluation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The resource name of the generator evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location
                                          +     * ID>/generators/<Generator ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * string generator_evaluation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGeneratorEvaluation() { + generatorEvaluation_ = getDefaultInstance().getGeneratorEvaluation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. The resource name of the generator evaluation. Format:
                                          +     * `projects/<Project ID>/locations/<Location
                                          +     * ID>/generators/<Generator ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * string generator_evaluation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for generatorEvaluation to set. + * @return This builder for chaining. + */ + public Builder setGeneratorEvaluationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + generatorEvaluation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata) + private static final com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata(); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeneratorEvaluationOperationMetadata 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.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationOperationMetadataOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..af6f8d93b1d0 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationOperationMetadataOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/operations.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface GeneratorEvaluationOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Output only. The resource name of the generator evaluation. Format:
                                          +   * `projects/<Project ID>/locations/<Location
                                          +   * ID>/generators/<Generator ID>/evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * string generator_evaluation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The generatorEvaluation. + */ + java.lang.String getGeneratorEvaluation(); + + /** + * + * + *
                                          +   * Output only. The resource name of the generator evaluation. Format:
                                          +   * `projects/<Project ID>/locations/<Location
                                          +   * ID>/generators/<Generator ID>/evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * string generator_evaluation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for generatorEvaluation. + */ + com.google.protobuf.ByteString getGeneratorEvaluationBytes(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationOrBuilder.java new file mode 100644 index 000000000000..fc24cabe2e68 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationOrBuilder.java @@ -0,0 +1,423 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface GeneratorEvaluationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GeneratorEvaluation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Output only. Identifier. The resource name of the evaluation. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +   * evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +   * Output only. Identifier. The resource name of the evaluation. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>/
                                          +   * evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                          +   * Optional. The display name of the generator evaluation. At most 64 bytes
                                          +   * long.
                                          +   * 
                                          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                          +   * Optional. The display name of the generator evaluation. At most 64 bytes
                                          +   * long.
                                          +   * 
                                          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                          +   * Required. The configuration of the evaluation task.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the generatorEvaluationConfig field is set. + */ + boolean hasGeneratorEvaluationConfig(); + + /** + * + * + *
                                          +   * Required. The configuration of the evaluation task.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The generatorEvaluationConfig. + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig getGeneratorEvaluationConfig(); + + /** + * + * + *
                                          +   * Required. The configuration of the evaluation task.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfig generator_evaluation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfigOrBuilder + getGeneratorEvaluationConfigOrBuilder(); + + /** + * + * + *
                                          +   * Output only. Creation time of this generator evaluation.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                          +   * Output only. Creation time of this generator evaluation.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                          +   * Output only. Creation time of this generator evaluation.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                          +   * Output only. Completion time of this generator evaluation.
                                          +   * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + boolean hasCompleteTime(); + + /** + * + * + *
                                          +   * Output only. Completion time of this generator evaluation.
                                          +   * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + com.google.protobuf.Timestamp getCompleteTime(); + + /** + * + * + *
                                          +   * Output only. Completion time of this generator evaluation.
                                          +   * 
                                          + * + * + * .google.protobuf.Timestamp complete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); + + /** + * + * + *
                                          +   * Required. The initial generator that was used when creating this
                                          +   * evaluation. This is a copy of the generator read from storage when creating
                                          +   * the evaluation.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the initialGenerator field is set. + */ + boolean hasInitialGenerator(); + + /** + * + * + *
                                          +   * Required. The initial generator that was used when creating this
                                          +   * evaluation. This is a copy of the generator read from storage when creating
                                          +   * the evaluation.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The initialGenerator. + */ + com.google.cloud.dialogflow.v2beta1.Generator getInitialGenerator(); + + /** + * + * + *
                                          +   * Required. The initial generator that was used when creating this
                                          +   * evaluation. This is a copy of the generator read from storage when creating
                                          +   * the evaluation.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Generator initial_generator = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorOrBuilder getInitialGeneratorOrBuilder(); + + /** + * + * + *
                                          +   * Output only. Only available when the summarization generator is provided.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the summarizationMetrics field is set. + */ + boolean hasSummarizationMetrics(); + + /** + * + * + *
                                          +   * Output only. Only available when the summarization generator is provided.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The summarizationMetrics. + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics getSummarizationMetrics(); + + /** + * + * + *
                                          +   * Output only. Only available when the summarization generator is provided.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics summarization_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetricsOrBuilder + getSummarizationMetricsOrBuilder(); + + /** + * + * + *
                                          +   * Output only. The result status of the evaluation pipeline. Provides the
                                          +   * status information including if the evaluation is still in progress,
                                          +   * completed or failed with certain error and user actionable message.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the evaluationStatus field is set. + */ + boolean hasEvaluationStatus(); + + /** + * + * + *
                                          +   * Output only. The result status of the evaluation pipeline. Provides the
                                          +   * status information including if the evaluation is still in progress,
                                          +   * completed or failed with certain error and user actionable message.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evaluationStatus. + */ + com.google.cloud.dialogflow.v2beta1.EvaluationStatus getEvaluationStatus(); + + /** + * + * + *
                                          +   * Output only. The result status of the evaluation pipeline. Provides the
                                          +   * status information including if the evaluation is still in progress,
                                          +   * completed or failed with certain error and user actionable message.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.EvaluationStatus evaluation_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.EvaluationStatusOrBuilder getEvaluationStatusOrBuilder(); + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Separation
                                          +   * status of the model. The field is an aggregated
                                          +   * value of ZS status of its underlying dependencies. See more details in
                                          +   * go/zicy-resource-placement#resource-status
                                          +   * 
                                          + * + * optional bool satisfies_pzs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + boolean hasSatisfiesPzs(); + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Separation
                                          +   * status of the model. The field is an aggregated
                                          +   * value of ZS status of its underlying dependencies. See more details in
                                          +   * go/zicy-resource-placement#resource-status
                                          +   * 
                                          + * + * optional bool satisfies_pzs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Isolation status
                                          +   * of the model. The field is an aggregated value of
                                          +   * ZI status of its underlying dependencies. See more details in
                                          +   * go/zicy-resource-placement#resource-status
                                          +   * 
                                          + * + * optional bool satisfies_pzi = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + boolean hasSatisfiesPzi(); + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Isolation status
                                          +   * of the model. The field is an aggregated value of
                                          +   * ZI status of its underlying dependencies. See more details in
                                          +   * go/zicy-resource-placement#resource-status
                                          +   * 
                                          + * + * optional bool satisfies_pzi = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.MetricsCase getMetricsCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationProto.java new file mode 100644 index 000000000000..547cdbdc1123 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationProto.java @@ -0,0 +1,662 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public final class GeneratorEvaluationProto { + private GeneratorEvaluationProto() {} + + 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_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_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/cloud/dialogflow/v2beta1/generator_evaluation.proto\022\037google.cloud.dialo" + + "gflow.v2beta1\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032/google/cloud/dialogflow/v2beta1/generator.proto\0320google/cloud/dialogfl" + + "ow/v2beta1/operations.proto\032#google/long" + + "running/operations.proto\032\033google/protobu" + + "f/empty.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\302\001\n" + + " CreateGeneratorEvaluationRequest\022E\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-dialogflow.googleapis.com/GeneratorEvaluation\022W\n" + + "\024generator_evaluation\030\002" + + " \001(\01324.google.cloud.dialogflow.v2beta1.GeneratorEvaluationB\003\340A\002\"d\n" + + "\035GetGeneratorEvaluationRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + + "-dialogflow.googleapis.com/GeneratorEvaluation\"\231\001\n" + + "\037ListGeneratorEvaluationsRequest\022E\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-dialogflow.googleapis.com/GeneratorEvaluation\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\"\220\001\n" + + " ListGeneratorEvaluationsResponse\022S\n" + + "\025generator_evaluations\030\001 \003(\01324.goo" + + "gle.cloud.dialogflow.v2beta1.GeneratorEvaluation\022\027\n" + + "\017next_page_token\030\002 \001(\t\"g\n" + + " DeleteGeneratorEvaluationRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + + "-dialogflow.googleapis.com/GeneratorEvaluation\"\313\006\n" + + "\023GeneratorEvaluation\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\022d\n" + + "\033generator_evaluation_config\030\003" + + " \001(\0132:.google.cloud.dialogflow.v2beta1.GeneratorEvaluationConfigB\003\340A\002\0224\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\r" + + "complete_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022J\n" + + "\021initial_generator\030\005" + + " \001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\022e\n" + + "\025summarization_metrics\030\006 \001(\0132?.google.cloud.dialogflow.v2b" + + "eta1.SummarizationEvaluationMetricsB\003\340A\003H\000\022Q\n" + + "\021evaluation_status\030\n" + + " \001(\01321.google.c" + + "loud.dialogflow.v2beta1.EvaluationStatusB\003\340A\003\022\037\n\r" + + "satisfies_pzs\030\013 \001(\010B\003\340A\003H\001\210\001\001\022\037\n\r" + + "satisfies_pzi\030\014 \001(\010B\003\340A\003H\002\210\001\001:\267\001\352A\263\001\n" + + "-dialogflow.googleapis.com/GeneratorEvaluation\022Wprojects/{project}/locations/{loc" + + "ation}/generators/{generator}/evaluation" + + "s/{evaluation}*\024generatorEvaluations2\023generatorEvaluationB\t\n" + + "\007metricsB\020\n" + + "\016_satisfies_pzsB\020\n" + + "\016_satisfies_pzi\"\367\027\n" + + "\036SummarizationEvaluationMetrics\022\214\001\n" + + " summarization_evaluation_results\030\004 \003(\0132].google.cloud.di" + + "alogflow.v2beta1.SummarizationEvaluation" + + "Metrics.SummarizationEvaluationResultB\003\340A\003\0228\n" + + "+summarization_evaluation_merged_results_uri\030\005 \001(\tB\003\340A\003\022s\n" + + "\017overall_metrics\030\006 \003(\0132U.google.cloud.dialogflow.v2beta1." + + "SummarizationEvaluationMetrics.OverallScoresByMetricB\003\340A\003\022q\n" + + "\026overall_section_tokens\030\007 \003(\0132L.google.cloud.dialogflow.v2be" + + "ta1.SummarizationEvaluationMetrics.SectionTokenB\003\340A\003\022u\n" + + "\024conversation_details\030\010 \003(\0132R.google.cloud.dialogflow.v2beta1.Sum" + + "marizationEvaluationMetrics.ConversationDetailB\003\340A\003\032{\n" + + "\025AccuracyDecomposition\022\022\n" + + "\005point\030\001 \001(\tB\003\340A\003\022\037\n" + + "\022accuracy_reasoning\030\002 \001(\tB\003\340A\003\022\035\n" + + "\013is_accurate\030\003 \001(\010B\003\340A\003H\000\210\001\001B\016\n" + + "\014_is_accurate\032l\n" + + "\026AdherenceDecomposition\022\022\n" + + "\005point\030\001 \001(\tB\003\340A\003\022 \n" + + "\023adherence_reasoning\030\002 \001(\tB\003\340A\003\022\030\n" + + "\013is_adherent\030\003 \001(\010B\003\340A\003:\002\030\001\032q\n" + + "\017AdherenceRubric\022\025\n" + + "\010question\030\001 \001(\tB\003\340A\003\022\026\n" + + "\treasoning\030\002 \001(\tB\003\340A\003\022\036\n" + + "\014is_addressed\030\003 \001(\010B\003\340A\003H\000\210\001\001B\017\n\r" + + "_is_addressed\032\\\n" + + "\022CompletenessRubric\022\025\n" + + "\010question\030\001 \001(\tB\003\340A\003\022\036\n" + + "\014is_addressed\030\002 \001(\010B\003\340A\003H\000\210\001\001B\017\n\r" + + "_is_addressed\032\230\002\n\r" + + "Decomposition\022w\n" + + "\026accuracy_decomposition\030\001 \001(\0132U.google.cloud" + + ".dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecompositionH\000\022y\n" + + "\027adherence_decomposition\030\002 \001(\0132V.google.clo" + + "ud.dialogflow.v2beta1.SummarizationEvalu" + + "ationMetrics.AdherenceDecompositionH\000:\002\030\001B\017\n\r" + + "decomposition\032\365\002\n" + + "\020EvaluationResult\022w\n" + + "\026accuracy_decomposition\030\001 \001(\0132U.google" + + ".cloud.dialogflow.v2beta1.SummarizationE" + + "valuationMetrics.AccuracyDecompositionH\000\022k\n" + + "\020adherence_rubric\030\002 \001(\0132O.google.clou" + + "d.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubricH\000\022q\n" + + "\023completeness_rubric\030\003 \001(\0132R.google.cloud.dialog" + + "flow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubricH\000B\010\n" + + "\006result\032\370\002\n" + + "\035SummarizationEvaluationResult\022\031\n\n" + + "session_id\030\001 \001(\tB\005\030\001\340A\003\022\023\n" + + "\006metric\030\002 \001(\tB\003\340A\003\022\024\n" + + "\007section\030\003 \001(\tB\003\340A\003\022\022\n" + + "\005score\030\004 \001(\002B\003\340A\003\022\034\n" + + "\017section_summary\030\006 \001(\tB\003\340A\003\022l\n" + + "\016decompositions\030\007 \003(\0132M.google.cloud.dialogflow.v" + + "2beta1.SummarizationEvaluationMetrics.DecompositionB\005\030\001\340A\003\022q\n" + + "\022evaluation_results\030\010 \003(\0132P.google.cloud.dialogflow.v2beta1" + + ".SummarizationEvaluationMetrics.EvaluationResultB\003\340A\003\032,\n" + + "\025OverallScoresByMetric\022\023\n" + + "\006metric\030\001 \001(\tB\003\340A\003\032S\n" + + "\014SectionToken\022\024\n" + + "\007section\030\001 \001(\tB\003\340A\003\022\035\n" + + "\013token_count\030\002 \001(\003B\003\340A\003H\000\210\001\001B\016\n" + + "\014_token_count\032\337\006\n" + + "\022ConversationDetail\022K\n" + + "\017message_entries\030\001 \003(\0132-.googl" + + "e.cloud.dialogflow.v2beta1.MessageEntryB\003\340A\003\022`\n" + + "\020summary_sections\030\004 \003(\0132A.google." + + "cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionB\003\340A\003\022|\n" + + "\016metric_details\030\002 \003(\0132_.google.cloud.dialogflow.v2beta1" + + ".SummarizationEvaluationMetrics.ConversationDetail.MetricDetailB\003\340A\003\022i\n" + + "\016section_tokens\030\003 \003(\0132L.google.cloud.dialogflow.v" + + "2beta1.SummarizationEvaluationMetrics.SectionTokenB\003\340A\003\032\260\003\n" + + "\014MetricDetail\022\023\n" + + "\006metric\030\001 \001(\tB\003\340A\003\022\027\n" + + "\005score\030\002 \001(\002B\003\340A\003H\000\210\001\001\022\213\001\n" + + "\017section_details\030\004 \003(\0132m.google.cloud." + + "dialogflow.v2beta1.SummarizationEvaluati" + + "onMetrics.ConversationDetail.MetricDetail.SectionDetailB\003\340A\003\032\331\001\n\r" + + "SectionDetail\022\024\n" + + "\007section\030\001 \001(\tB\003\340A\003\022\027\n" + + "\005score\030\002 \001(\002B\003\340A\003H\000\210\001\001\022\034\n" + + "\017section_summary\030\004 \001(\tB\003\340A\003\022q\n" + + "\022evaluation_results\030\005 \003(\0132P.google.cloud.d" + + "ialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResultB\003\340A\003B\010\n" + + "\006_scoreB\010\n" + + "\006_score\"\335\r\n" + + "\031GeneratorEvaluationConfig\022j\n" + + "\021input_data_config\030\001 \001(\0132J.google.clo" + + "ud.dialogflow.v2beta1.GeneratorEvaluationConfig.InputDataConfigB\003\340A\002\022#\n" + + "\026output_gcs_bucket_path\030\002 \001(\tB\003\340A\002\022n\n" + + "\024summarization_config\030\003 \001(\0132N.google.cloud.dialogflo" + + "w.v2beta1.GeneratorEvaluationConfig.SummarizationConfigH\000\032\204\001\n" + + "\032AgentAssistInputDataConfig\0223\n\n" + + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\032.\n" + + "\026DatasetInputDataConfig\022\024\n" + + "\007dataset\030\001 \001(\tB\003\340A\002\032\346\006\n" + + "\017InputDataConfig\022u\n" + + "\026input_data_source_type\030\001 \001(\0162N.google.cloud.dialogflow.v" + + "2beta1.GeneratorEvaluationConfig.InputDataSourceTypeB\005\030\001\340A\002\0225\n\n" + + "start_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\005\030\001\340A\001\0223\n" + + "\010end_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\005\030\001\340A\001\022\030\n" + + "\013sample_size\030\004 \001(\005B\003\340A\001\022,\n" + + "\035is_summary_generation_allowed\030\005" + + " \001(\010B\005\030\001\340A\001\022\212\001\n" + + "\031summary_generation_option\030\010 \001(\0162b.go" + + "ogle.cloud.dialogflow.v2beta1.GeneratorE" + + "valuationConfig.InputDataConfig.SummaryGenerationOptionB\003\340A\001\022\177\n" + + "\036agent_assist_input_data_config\030\006 \001(\0132U.google.cloud.dial" + + "ogflow.v2beta1.GeneratorEvaluationConfig.AgentAssistInputDataConfigH\000\022v\n" + + "\031dataset_input_data_config\030\007 \001(\0132Q.google.cloud." + + "dialogflow.v2beta1.GeneratorEvaluationConfig.DatasetInputDataConfigH\000\"\207\001\n" + + "\027SummaryGenerationOption\022)\n" + + "%SUMMARY_GENERATION_OPTION_UNSPECIFIED\020\000\022\023\n" + + "\017ALWAYS_GENERATE\020\001\022\027\n" + + "\023GENERATE_IF_MISSING\020\002\022\023\n" + + "\017DO_NOT_GENERATE\020\003B\030\n" + + "\026source_specific_config\032\206\002\n" + + "\023SummarizationConfig\022)\n" + + "\032enable_accuracy_evaluation\030\001 \001(\010B\005\030\001\340A\001\022*\n" + + "\033accuracy_evaluation_version\030\002 \001(\tB\005\030\001\340A\001\022-\n" + + "\036enable_completeness_evaluation\030\003 \001(\010B\005\030\001\340A\001\022.\n" + + "\037completeness_evaluation_version\030\004 \001(\tB\005\030\001\340A\001\022#\n" + + "\021evaluator_version\030\005 \001(\tB\003\340A\001H\000\210\001\001B\024\n" + + "\022_evaluator_version\"y\n" + + "\023InputDataSourceType\022&\n" + + "\"INPUT_DATA_SOURCE_TYPE_UNSPECIFIED\020\000\022\036\n" + + "\032AGENT_ASSIST_CONVERSATIONS\020\001\022\032\n" + + "\026INSIGHTS_CONVERSATIONS\020\002B\033\n" + + "\031evaluation_feature_config\"e\n" + + "\020EvaluationStatus\022\026\n" + + "\004done\030\001 \001(\010B\003\340A\003H\000\210\001\001\0220\n" + + "\017pipeline_status\030\002 \001(\0132\022.google.rpc.StatusB\003\340A\003B\007\n" + + "\005_done2\222\t\n" + + "\024GeneratorEvaluations\022\333\002\n" + + "\031CreateGeneratorEvaluation\022A.google.cloud.dialogflow.v2bet" + + "a1.CreateGeneratorEvaluationRequest\032\035.google.longrunning.Operation\"\333\001\312A[\n" + + "\023GeneratorEvaluation\022Dgoogle.cloud.dialogflow.v" + + "2beta1.GeneratorEvaluationOperationMetad" + + "ata\332A\033parent,generator_evaluation\202\323\344\223\002Y\"" + + "A/v2beta1/{parent=projects/*/locations/*" + + "/generators/*}/evaluations:\024generator_evaluation\022\340\001\n" + + "\026GetGeneratorEvaluation\022>.google.cloud.dialogflow.v2beta1.GetGenerat" + + "orEvaluationRequest\0324.google.cloud.dialo" + + "gflow.v2beta1.GeneratorEvaluation\"P\332A\004na" + + "me\202\323\344\223\002C\022A/v2beta1/{name=projects/*/locations/*/generators/*/evaluations/*}\022\363\001\n" + + "\030ListGeneratorEvaluations\022@.google.cloud." + + "dialogflow.v2beta1.ListGeneratorEvaluationsRequest\032A.google.cloud.dialogflow.v2b" + + "eta1.ListGeneratorEvaluationsResponse\"R\332" + + "A\006parent\202\323\344\223\002C\022A/v2beta1/{parent=project" + + "s/*/locations/*/generators/*}/evaluations\022\310\001\n" + + "\031DeleteGeneratorEvaluation\022A.google.cloud.dialogflow.v2beta1.DeleteGenerato" + + "rEvaluationRequest\032\026.google.protobuf.Emp" + + "ty\"P\332A\004name\202\323\344\223\002C*A/v2beta1/{name=projec" + + "ts/*/locations/*/generators/*/evaluation" + + "s/*}\032x\312A\031dialogflow.googleapis.com\322AYhtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/dialogflowB\255\001\n" + + "#com.google.cloud.dialogflow.v2beta1B\030GeneratorEvaluationProtoP\001ZCclou" + + "d.google.com/go/dialogflow/apiv2beta1/di" + + "alogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cl" + + "oud.Dialogflow.V2Beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.GeneratorProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.OperationsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_CreateGeneratorEvaluationRequest_descriptor, + new java.lang.String[] { + "Parent", "GeneratorEvaluation", + }); + internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_descriptor, + new java.lang.String[] { + "GeneratorEvaluations", "NextPageToken", + }); + internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_DeleteGeneratorEvaluationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluation_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "GeneratorEvaluationConfig", + "CreateTime", + "CompleteTime", + "InitialGenerator", + "SummarizationMetrics", + "EvaluationStatus", + "SatisfiesPzs", + "SatisfiesPzi", + "Metrics", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor, + new java.lang.String[] { + "SummarizationEvaluationResults", + "SummarizationEvaluationMergedResultsUri", + "OverallMetrics", + "OverallSectionTokens", + "ConversationDetails", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_descriptor, + new java.lang.String[] { + "Point", "AccuracyReasoning", "IsAccurate", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_descriptor, + new java.lang.String[] { + "Point", "AdherenceReasoning", "IsAdherent", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_descriptor, + new java.lang.String[] { + "Question", "Reasoning", "IsAddressed", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_descriptor, + new java.lang.String[] { + "Question", "IsAddressed", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_descriptor, + new java.lang.String[] { + "AccuracyDecomposition", "AdherenceDecomposition", "Decomposition", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_descriptor, + new java.lang.String[] { + "AccuracyDecomposition", "AdherenceRubric", "CompletenessRubric", "Result", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(6); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_descriptor, + new java.lang.String[] { + "SessionId", + "Metric", + "Section", + "Score", + "SectionSummary", + "Decompositions", + "EvaluationResults", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(7); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_descriptor, + new java.lang.String[] { + "Metric", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(8); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_descriptor, + new java.lang.String[] { + "Section", "TokenCount", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor + .getNestedTypes() + .get(9); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_descriptor, + new java.lang.String[] { + "MessageEntries", "SummarySections", "MetricDetails", "SectionTokens", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_descriptor, + new java.lang.String[] { + "Metric", "Score", "SectionDetails", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_descriptor, + new java.lang.String[] { + "Section", "Score", "SectionSummary", "EvaluationResults", + }); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor, + new java.lang.String[] { + "InputDataConfig", + "OutputGcsBucketPath", + "SummarizationConfig", + "EvaluationFeatureConfig", + }); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_AgentAssistInputDataConfig_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_DatasetInputDataConfig_descriptor, + new java.lang.String[] { + "Dataset", + }); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_InputDataConfig_descriptor, + new java.lang.String[] { + "InputDataSourceType", + "StartTime", + "EndTime", + "SampleSize", + "IsSummaryGenerationAllowed", + "SummaryGenerationOption", + "AgentAssistInputDataConfig", + "DatasetInputDataConfig", + "SourceSpecificConfig", + }); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationConfig_SummarizationConfig_descriptor, + new java.lang.String[] { + "EnableAccuracyEvaluation", + "AccuracyEvaluationVersion", + "EnableCompletenessEvaluation", + "CompletenessEvaluationVersion", + "EvaluatorVersion", + }); + internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_EvaluationStatus_descriptor, + new java.lang.String[] { + "Done", "PipelineStatus", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.GeneratorProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.OperationsProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java index c2104b8a8353..100a17b129c3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java @@ -119,6 +119,44 @@ public interface GeneratorOrBuilder */ com.google.cloud.dialogflow.v2beta1.FreeFormContextOrBuilder getFreeFormContextOrBuilder(); + /** + * + * + *
                                          +   * Input of Agent Coaching feature.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; + * + * @return Whether the agentCoachingContext field is set. + */ + boolean hasAgentCoachingContext(); + + /** + * + * + *
                                          +   * Input of Agent Coaching feature.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; + * + * @return The agentCoachingContext. + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingContext getAgentCoachingContext(); + + /** + * + * + *
                                          +   * Input of Agent Coaching feature.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingContext agent_coaching_context = 12; + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingContextOrBuilder + getAgentCoachingContextOrBuilder(); + /** * * @@ -363,6 +401,119 @@ public interface GeneratorOrBuilder */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** + * + * + *
                                          +   * Optional. Resource names of the tools that the generator can choose from.
                                          +   * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +   * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the tools. + */ + java.util.List getToolsList(); + + /** + * + * + *
                                          +   * Optional. Resource names of the tools that the generator can choose from.
                                          +   * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +   * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of tools. + */ + int getToolsCount(); + + /** + * + * + *
                                          +   * Optional. Resource names of the tools that the generator can choose from.
                                          +   * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +   * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The tools at the given index. + */ + java.lang.String getTools(int index); + + /** + * + * + *
                                          +   * Optional. Resource names of the tools that the generator can choose from.
                                          +   * Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
                                          +   * 
                                          + * + * + * repeated string tools = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the tools at the given index. + */ + com.google.protobuf.ByteString getToolsBytes(int index); + + /** + * + * + *
                                          +   * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +   * AI Coach feature.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the suggestionDedupingConfig field is set. + */ + boolean hasSuggestionDedupingConfig(); + + /** + * + * + *
                                          +   * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +   * AI Coach feature.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionDedupingConfig. + */ + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig getSuggestionDedupingConfig(); + + /** + * + * + *
                                          +   * Optional. Configuration for suggestion deduping. This is only applicable to
                                          +   * AI Coach feature.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig suggestion_deduping_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigOrBuilder + getSuggestionDedupingConfigOrBuilder(); + com.google.cloud.dialogflow.v2beta1.Generator.ContextCase getContextCase(); com.google.cloud.dialogflow.v2beta1.Generator.FoundationModelCase getFoundationModelCase(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java index f42dc7b0690a..23044cbe458b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java @@ -76,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_InferenceParameter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_InferenceParameter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_SummarizationSection_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,10 +108,50 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SummarySuggestion_SummarySection_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SummarySuggestion_SummarySection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -121,13 +165,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/google/cloud/dialogflow/v2beta1/generator.proto\022\037google.cloud.dialogflow.v2bet" + "a1\032\034google/api/annotations.proto\032\027google" + "/api/client.proto\032\037google/api/field_beha" - + "vior.proto\032\031google/api/resource.proto\032\033google/protobuf/empty.proto\032" + + "vior.proto\032\031google/api/resource.proto\032@g" + + "oogle/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto\032/google/cloud/di" + + "alogflow/v2beta1/tool_call.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\274\001\n" + "\026CreateGeneratorRequest\022C\n" + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022B\n" - + "\tgenerator\030\002" - + " \001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\022\031\n" + + "\tgenerator\030\002 " + + "\001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\022\031\n" + "\014generator_id\030\003 \001(\tB\003\340A\001\"P\n" + "\023GetGeneratorRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" @@ -144,8 +190,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#dialogflow.googleapis.com/Generator\"\222\001\n" + "\026UpdateGeneratorRequest\022B\n" - + "\tgenerator\030\001 \001(\0132*.g" - + "oogle.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\0224\n" + + "\tgenerator\030\001 \001(\0132*.google" + + ".cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\214\002\n" + "\014MessageEntry\022E\n" @@ -166,14 +212,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026summarization_sections\030\001" + " \003(\01325.google.cloud.dialogflow.v2beta1.SummarizationSectionB\003\340A\001\"\264\003\n" + "\016FewShotExample\022W\n" - + "\024conversation_context\030\003 \001(\0132" - + "4.google.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022W\n\n" - + "extra_info\030\004 \003(\0132>" - + ".google.cloud.dialogflow.v2beta1.FewShotExample.ExtraInfoEntryB\003\340A\001\022_\n" - + "\032summarization_section_list\030\006 \001(\01329.google.cloud.d" - + "ialogflow.v2beta1.SummarizationSectionListH\000\022I\n" - + "\006output\030\007 \001(\01324.google.cloud.dial" - + "ogflow.v2beta1.GeneratorSuggestionB\003\340A\002\0320\n" + + "\024conversation_context\030\003 \001(\01324.goo" + + "gle.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022W\n\n" + + "extra_info\030\004 \003(\0132>.goog" + + "le.cloud.dialogflow.v2beta1.FewShotExample.ExtraInfoEntryB\003\340A\001\022_\n" + + "\032summarization_section_list\030\006 \001(\01329.google.cloud.dialog" + + "flow.v2beta1.SummarizationSectionListH\000\022I\n" + + "\006output\030\007" + + " \001(\01324.google.cloud.dialogflow.v2beta1.GeneratorSuggestionB\003\340A\002\0320\n" + "\016ExtraInfoEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\022\n" @@ -186,12 +232,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_max_output_tokensB\016\n" + "\014_temperatureB\010\n" + "\006_top_kB\010\n" - + "\006_top_p\"\341\002\n" + + "\006_top_p\"\310\001\n" + + "\024AgentCoachingContext\022!\n" + + "\024overarching_guidance\030\007 \001(\tB\003\340A\001\022T\n" + + "\014instructions\030\001 \003(\01329.google.cloud" + + ".dialogflow.v2beta1.AgentCoachingInstructionB\003\340A\001\022\024\n" + + "\007version\030\002 \001(\tB\003\340A\001\022!\n" + + "\024output_language_code\030\t \001(\tB\003\340A\001\"\341\002\n" + "\024SummarizationSection\022\020\n" + "\003key\030\001 \001(\tB\003\340A\001\022\027\n\n" + "definition\030\002 \001(\tB\003\340A\001\022M\n" - + "\004type\030\003 \001(\0162:.google." - + "cloud.dialogflow.v2beta1.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + + "\004type\030\003 \001(\0162:.google.cl" + + "oud.dialogflow.v2beta1.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\r\n" + "\tSITUATION\020\001\022\n\n" @@ -205,48 +257,116 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ACTION_CONCISE\020\n" + "\"\374\001\n" + "\024SummarizationContext\022Z\n" - + "\026summarization_sections\030\001 \003(" - + "\01325.google.cloud.dialogflow.v2beta1.SummarizationSectionB\003\340A\001\022O\n" + + "\026summarization_sections\030\001 \003(\0132" + + "5.google.cloud.dialogflow.v2beta1.SummarizationSectionB\003\340A\001\022O\n" + "\021few_shot_examples\030\002" + " \003(\0132/.google.cloud.dialogflow.v2beta1.FewShotExampleB\003\340A\001\022\024\n" + "\007version\030\003 \001(\tB\003\340A\001\022!\n" + "\024output_language_code\030\006 \001(\tB\003\340A\001\"$\n" + "\017FreeFormContext\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\001\"\260\005\n" + + "\004text\030\001 \001(\tB\003\340A\001\"\244\007\n" + "\tGenerator\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022M\n" + "\021free_form_context\030\013" - + " \001(\01320.google.cloud.dialogflow.v2beta1.FreeFormContextH\000\022V\n" + + " \001(\01320.google.cloud.dialogflow.v2beta1.FreeFormContextH\000\022W\n" + + "\026agent_coaching_context\030\014" + + " \001(\01325.google.cloud.dialogflow.v2beta1.AgentCoachingContextH\000\022V\n" + "\025summarization_context\030\r" + " \001(\01325.google.cloud.dialogflow.v2beta1.SummarizationContextH\000\022U\n" - + "\023inference_parameter\030\004" - + " \001(\01323.google.cloud.dialogflow.v2beta1.InferenceParameterB\003\340A\001\022I\n\r" + + "\023inference_parameter\030\004 \001(\01323.google.cloud.di" + + "alogflow.v2beta1.InferenceParameterB\003\340A\001\022I\n\r" + "trigger_event\030\005" + " \001(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\001\022\036\n" + "\017published_model\030\017 \001(\tB\003\340A\001H\001\0224\n" + "\013create_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\t" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\177\352A|\n" - + "#dialogflow.googleapis.com" - + "/Generator\022>projects/{project}/locations/{location}/generators/{generator}*\n" + + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\005tools\030\016 \003(\tB&\340A\001\372A \n" + + "\036dialogflow.googleapis.com/Tool\022b\n" + + "\032suggestion_deduping_config\030\027 \001(\01329.google.clou" + + "d.dialogflow.v2beta1.SuggestionDedupingConfigB\003\340A\001:\177\352A|\n" + + "#dialogflow.googleapis.c" + + "om/Generator\022>projects/{project}/locations/{location}/generators/{generator}*\n" + "generators2\tgeneratorB\t\n" + "\007contextB\022\n" + "\020foundation_model\"+\n" + "\022FreeFormSuggestion\022\025\n" + "\010response\030\001 \001(\tB\003\340A\002\"\263\001\n" + "\021SummarySuggestion\022`\n" - + "\020summary_sections\030\001 \003(\0132A.google.cloud.dia" - + "logflow.v2beta1.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + + "\020summary_sections\030\001 \003(\0132A.google.cloud.d" + + "ialogflow.v2beta1.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + "\016SummarySection\022\024\n" + "\007section\030\001 \001(\tB\003\340A\002\022\024\n" - + "\007summary\030\002 \001(\tB\003\340A\002\"\324\001\n" + + "\007summary\030\002 \001(\tB\003\340A\002\"\355\t\n" + + "\027AgentCoachingSuggestion\022_\n" + + "\027applicable_instructions\030\001 \003(\01329.google.cloud.dialog" + + "flow.v2beta1.AgentCoachingInstructionB\003\340A\001\022u\n" + + "\030agent_action_suggestions\030\002 \003(\0132N.g" + + "oogle.cloud.dialogflow.v2beta1.AgentCoac" + + "hingSuggestion.AgentActionSuggestionB\003\340A\001\022f\n" + + "\020sample_responses\030\003 \003(\0132G.google.clo" + + "ud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseB\003\340A\001\032+\n" + + "\007Sources\022 \n" + + "\023instruction_indexes\030\002 \003(\005B\003\340A\003\032\350\002\n" + + "\024DuplicateCheckResult\022\205\001\n" + + "\025duplicate_suggestions\030\001 \003(\0132a.google.cloud.dialogflow.v2beta" + + "1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestionB\003\340A\003\032\307\001\n" + + "\023DuplicateSuggestion\022\032\n\r" + + "answer_record\030\001 \001(\tB\003\340A\003\022V\n" + + "\007sources\030\002 \001(\0132@.google.cloud.dial" + + "ogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022\035\n" + + "\020suggestion_index\030\003 \001(\005B\003\340A\003\022\035\n" + + "\020similarity_score\030\004 \001(\002B\003\340A\003\032\376\001\n" + + "\025AgentActionSuggestion\022\031\n" + + "\014agent_action\030\001 \001(\tB\003\340A\001\022V\n" + + "\007sources\030\002 \001(\0132@.google.cloud.d" + + "ialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" + + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dialogflow.v2beta1" + + ".AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\032\370\001\n" + + "\016SampleResponse\022\032\n\r" + + "response_text\030\001 \001(\tB\003\340A\001\022V\n" + + "\007sources\030\002 \001(\0132@.goo" + + "gle.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" + + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dialogf" + + "low.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\"\274\004\n" + "\023GeneratorSuggestion\022X\n" - + "\024free_form_suggestion\030\001" - + " \001(\01323.google.cloud.dialogflow.v2beta1.FreeFormSuggestionB\003\340A\001H\000\022U\n" - + "\022summary_suggestion\030\002" - + " \001(\01322.google.cloud.dialogflow.v2beta1.SummarySuggestionB\003\340A\001H\000B\014\n\n" - + "suggestion*}\n" + + "\024free_form_suggestion\030\001 \001(\01323.go" + + "ogle.cloud.dialogflow.v2beta1.FreeFormSuggestionB\003\340A\001H\000\022U\n" + + "\022summary_suggestion\030\002 " + + "\001(\01322.google.cloud.dialogflow.v2beta1.SummarySuggestionB\003\340A\001H\000\022b\n" + + "\031agent_coaching_suggestion\030\003 \001(\01328.google.cloud.dialogf" + + "low.v2beta1.AgentCoachingSuggestionB\003\340A\001H\000\022^\n" + + "\016tool_call_info\030\t \003(\0132A.google.clou" + + "d.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoB\003\340A\001\032\241\001\n" + + "\014ToolCallInfo\022A\n" + + "\ttool_call\030\001" + + " \001(\0132).google.cloud.dialogflow.v2beta1.ToolCallB\003\340A\002\022N\n" + + "\020tool_call_result\030\002" + + " \001(\0132/.google.cloud.dialogflow.v2beta1.ToolCallResultB\003\340A\002B\014\n\n" + + "suggestion\"[\n" + + "\030SuggestionDedupingConfig\022\034\n" + + "\017enable_deduping\030\001 \001(\010B\003\340A\001\022!\n" + + "\024similarity_threshold\030\002 \001(\002B\003\340A\001\"\307\004\n" + + "\013RaiSettings\022\\\n" + + "\024rai_category_configs\030\001 \003(\0132>.google.cloud.dialogflo" + + "w.v2beta1.RaiSettings.RaiCategoryConfig\032\331\003\n" + + "\021RaiCategoryConfig\022a\n" + + "\010category\030\001 \001(\0162J.google.cloud.dialogflow.v2beta1.RaiSet" + + "tings.RaiCategoryConfig.RaiCategoryB\003\340A\001\022o\n" + + "\021sensitivity_level\030\002 \001(\0162O.google.clo" + + "ud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevelB\003\340A\001\"z\n" + + "\013RaiCategory\022\034\n" + + "\030RAI_CATEGORY_UNSPECIFIED\020\000\022\025\n" + + "\021DANGEROUS_CONTENT\020\001\022\025\n" + + "\021SEXUALLY_EXPLICIT\020\002\022\016\n\n" + + "HARASSMENT\020\003\022\017\n" + + "\013HATE_SPEECH\020\004\"t\n" + + "\020SensitivityLevel\022!\n" + + "\035SENSITIVITY_LEVEL_UNSPECIFIED\020\000\022\016\n\n" + + "BLOCK_MOST\020\001\022\016\n\n" + + "BLOCK_SOME\020\002\022\r\n" + + "\tBLOCK_FEW\020\003\022\016\n\n" + + "BLOCK_NONE\020\004*}\n" + "\014TriggerEvent\022\035\n" + "\031TRIGGER_EVENT_UNSPECIFIED\020\000\022\024\n" + "\020END_OF_UTTERANCE\020\001\022\017\n" @@ -254,36 +374,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020CUSTOMER_MESSAGE\020\003\022\021\n\r" + "AGENT_MESSAGE\020\0042\326\t\n\n" + "Generators\022\225\002\n" - + "\017CreateGenerator\0227.google.cloud.dialogflow.v" - + "2beta1.CreateGeneratorRequest\032*.google.c" - + "loud.dialogflow.v2beta1.Generator\"\234\001\332A\035p" - + "arent,generator,generator_id\202\323\344\223\002v\"3/v2b" - + "eta1/{parent=projects/*/locations/*}/generators:" + + "\017CreateGenerator\0227.google.cloud.dialogflow.v2beta1.CreateGe" + + "neratorRequest\032*.google.cloud.dialogflow" + + ".v2beta1.Generator\"\234\001\332A\035parent,generator" + + ",generator_id\202\323\344\223\002v\"3/v2beta1/{parent=projects/*/locations/*}/generators:" + "\tgeneratorZ4\"\'/v2beta1/{parent=projects/*}/generators:\tgenerator\022\264\001\n" - + "\014GetGenerator\0224.google.cloud.dialogflow.v2be" - + "ta1.GetGeneratorRequest\032*.google.cloud.d" - + "ialogflow.v2beta1.Generator\"B\332A\004name\202\323\344\223" - + "\0025\0223/v2beta1/{name=projects/*/locations/*/generators/*}\022\362\001\n" - + "\016ListGenerators\0226.google.cloud.dialogflow.v2beta1.ListGenerat" - + "orsRequest\0327.google.cloud.dialogflow.v2b" - + "eta1.ListGeneratorsResponse\"o\332A\006parent\202\323" - + "\344\223\002`\0223/v2beta1/{parent=projects/*/locati" - + "ons/*}/generatorsZ)\022\'/v2beta1/{parent=projects/*}/generators\022\246\001\n" - + "\017DeleteGenerator\0227.google.cloud.dialogflow.v2beta1.Delet" - + "eGeneratorRequest\032\026.google.protobuf.Empt" - + "y\"B\332A\004name\202\323\344\223\0025*3/v2beta1/{name=projects/*/locations/*/generators/*}\022\340\001\n" - + "\017UpdateGenerator\0227.google.cloud.dialogflow.v2be" - + "ta1.UpdateGeneratorRequest\032*.google.clou" - + "d.dialogflow.v2beta1.Generator\"h\332A\025gener" - + "ator,update_mask\202\323\344\223\002J2=/v2beta1/{genera" - + "tor.name=projects/*/locations/*/generators/*}:" - + "\tgenerator\032x\312A\031dialogflow.googleap" - + "is.com\322AYhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.com/auth/dialogflowB\243\001\n" - + "#com.google.cloud.dialogflow.v2beta1B\016GeneratorProtoP\001ZCcl" - + "oud.google.com/go/dialogflow/apiv2beta1/" - + "dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google." - + "Cloud.Dialogflow.V2Beta1b\006proto3" + + "\014GetGenerator\0224.google.cloud.dialogflow.v2beta1.GetGenerato" + + "rRequest\032*.google.cloud.dialogflow.v2bet" + + "a1.Generator\"B\332A\004name\202\323\344\223\0025\0223/v2beta1/{n" + + "ame=projects/*/locations/*/generators/*}\022\362\001\n" + + "\016ListGenerators\0226.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest\0327.go" + + "ogle.cloud.dialogflow.v2beta1.ListGenera" + + "torsResponse\"o\332A\006parent\202\323\344\223\002`\0223/v2beta1/" + + "{parent=projects/*/locations/*}/generato" + + "rsZ)\022\'/v2beta1/{parent=projects/*}/generators\022\246\001\n" + + "\017DeleteGenerator\0227.google.cloud.dialogflow.v2beta1.DeleteGeneratorReque" + + "st\032\026.google.protobuf.Empty\"B\332A\004name\202\323\344\223\002" + + "5*3/v2beta1/{name=projects/*/locations/*/generators/*}\022\340\001\n" + + "\017UpdateGenerator\0227.google.cloud.dialogflow.v2beta1.UpdateGener" + + "atorRequest\032*.google.cloud.dialogflow.v2" + + "beta1.Generator\"h\332A\025generator,update_mas" + + "k\202\323\344\223\002J2=/v2beta1/{generator.name=projects/*/locations/*/generators/*}:" + + "\tgenerator\032x\312A\031dialogflow.googleapis.com\322AYhttps:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/dialogflowB\240\002\n" + + "#com.google.cloud.dialogflow.v2beta1B\016GeneratorProtoP\001ZCcloud.google.com/" + + "go/dialogflow/apiv2beta1/dialogflowpb;di" + + "alogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/location" + + "s/{location}/collections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -293,6 +412,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ToolCallProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -399,8 +520,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MaxOutputTokens", "Temperature", "TopK", "TopP", }); - internal_static_google_cloud_dialogflow_v2beta1_SummarizationSection_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingContext_descriptor, + new java.lang.String[] { + "OverarchingGuidance", "Instructions", "Version", "OutputLanguageCode", + }); + internal_static_google_cloud_dialogflow_v2beta1_SummarizationSection_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_dialogflow_v2beta1_SummarizationSection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SummarizationSection_descriptor, @@ -408,7 +537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Definition", "Type", }); internal_static_google_cloud_dialogflow_v2beta1_SummarizationContext_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_dialogflow_v2beta1_SummarizationContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SummarizationContext_descriptor, @@ -416,7 +545,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SummarizationSections", "FewShotExamples", "Version", "OutputLanguageCode", }); internal_static_google_cloud_dialogflow_v2beta1_FreeFormContext_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_dialogflow_v2beta1_FreeFormContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_FreeFormContext_descriptor, @@ -424,7 +553,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", }); internal_static_google_cloud_dialogflow_v2beta1_Generator_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_dialogflow_v2beta1_Generator_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Generator_descriptor, @@ -432,17 +561,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Description", "FreeFormContext", + "AgentCoachingContext", "SummarizationContext", "InferenceParameter", "TriggerEvent", "PublishedModel", "CreateTime", "UpdateTime", + "Tools", + "SuggestionDedupingConfig", "Context", "FoundationModel", }); internal_static_google_cloud_dialogflow_v2beta1_FreeFormSuggestion_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_dialogflow_v2beta1_FreeFormSuggestion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_FreeFormSuggestion_descriptor, @@ -450,7 +582,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Response", }); internal_static_google_cloud_dialogflow_v2beta1_SummarySuggestion_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_dialogflow_v2beta1_SummarySuggestion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SummarySuggestion_descriptor, @@ -467,13 +599,111 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Section", "Summary", }); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor, + new java.lang.String[] { + "ApplicableInstructions", "AgentActionSuggestions", "SampleResponses", + }); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_Sources_descriptor, + new java.lang.String[] { + "InstructionIndexes", + }); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_descriptor, + new java.lang.String[] { + "DuplicateSuggestions", + }); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_DuplicateCheckResult_DuplicateSuggestion_descriptor, + new java.lang.String[] { + "AnswerRecord", "Sources", "SuggestionIndex", "SimilarityScore", + }); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_AgentActionSuggestion_descriptor, + new java.lang.String[] { + "AgentAction", "Sources", "DuplicateCheckResult", + }); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_AgentCoachingSuggestion_SampleResponse_descriptor, + new java.lang.String[] { + "ResponseText", "Sources", "DuplicateCheckResult", + }); internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_descriptor, new java.lang.String[] { - "FreeFormSuggestion", "SummarySuggestion", "Suggestion", + "FreeFormSuggestion", + "SummarySuggestion", + "AgentCoachingSuggestion", + "ToolCallInfo", + "Suggestion", + }); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_descriptor, + new java.lang.String[] { + "ToolCall", "ToolCallResult", + }); + internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_descriptor, + new java.lang.String[] { + "EnableDeduping", "SimilarityThreshold", + }); + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_descriptor, + new java.lang.String[] { + "RaiCategoryConfigs", + }); + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_descriptor, + new java.lang.String[] { + "Category", "SensitivityLevel", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -483,6 +713,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); 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); @@ -490,6 +721,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ToolCallProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorSuggestion.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorSuggestion.java index c1a91443d20d..19dcefb979db 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorSuggestion.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorSuggestion.java @@ -39,7 +39,9 @@ private GeneratorSuggestion(com.google.protobuf.GeneratedMessageV3.Builder bu super(builder); } - private GeneratorSuggestion() {} + private GeneratorSuggestion() { + toolCallInfo_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -62,406 +64,1749 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.Builder.class); } - private int suggestionCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object suggestion_; - - public enum SuggestionCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - FREE_FORM_SUGGESTION(1), - SUMMARY_SUGGESTION(2), - SUGGESTION_NOT_SET(0); - private final int value; - - private SuggestionCase(int value) { - this.value = value; - } + public interface ToolCallInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo) + com.google.protobuf.MessageOrBuilder { /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
                                          +     * Required. Request for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolCall field is set. */ - @java.lang.Deprecated - public static SuggestionCase valueOf(int value) { - return forNumber(value); - } + boolean hasToolCall(); - public static SuggestionCase forNumber(int value) { - switch (value) { - case 1: - return FREE_FORM_SUGGESTION; - case 2: - return SUMMARY_SUGGESTION; - case 0: - return SUGGESTION_NOT_SET; - default: - return null; - } - } + /** + * + * + *
                                          +     * Required. Request for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolCall. + */ + com.google.cloud.dialogflow.v2beta1.ToolCall getToolCall(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
                                          +     * Required. Request for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.ToolCallOrBuilder getToolCallOrBuilder(); - public SuggestionCase getSuggestionCase() { - return SuggestionCase.forNumber(suggestionCase_); - } + /** + * + * + *
                                          +     * Required. Response for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolCallResult field is set. + */ + boolean hasToolCallResult(); - public static final int FREE_FORM_SUGGESTION_FIELD_NUMBER = 1; + /** + * + * + *
                                          +     * Required. Response for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolCallResult. + */ + com.google.cloud.dialogflow.v2beta1.ToolCallResult getToolCallResult(); - /** - * - * - *
                                          -   * Optional. Free form suggestion.
                                          -   * 
                                          - * - * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the freeFormSuggestion field is set. - */ - @java.lang.Override - public boolean hasFreeFormSuggestion() { - return suggestionCase_ == 1; + /** + * + * + *
                                          +     * Required. Response for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.ToolCallResultOrBuilder getToolCallResultOrBuilder(); } /** * * *
                                          -   * Optional. Free form suggestion.
                                          +   * Request and response for a tool call.
                                              * 
                                          * - * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The freeFormSuggestion. + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo} */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion getFreeFormSuggestion() { - if (suggestionCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_; - } - return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); - } + public static final class ToolCallInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo) + ToolCallInfoOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
                                          -   * Optional. Free form suggestion.
                                          -   * 
                                          - * - * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder - getFreeFormSuggestionOrBuilder() { - if (suggestionCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_; + // Use ToolCallInfo.newBuilder() to construct. + private ToolCallInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); - } - - public static final int SUMMARY_SUGGESTION_FIELD_NUMBER = 2; - /** - * - * - *
                                          -   * Optional. Suggested summary.
                                          -   * 
                                          - * - * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the summarySuggestion field is set. - */ - @java.lang.Override - public boolean hasSummarySuggestion() { - return suggestionCase_ == 2; - } + private ToolCallInfo() {} - /** - * - * - *
                                          -   * Optional. Suggested summary.
                                          -   * 
                                          - * - * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The summarySuggestion. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.SummarySuggestion getSummarySuggestion() { - if (suggestionCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToolCallInfo(); } - return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); - } - /** - * - * - *
                                          -   * Optional. Suggested summary.
                                          -   * 
                                          - * - * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder - getSummarySuggestionOrBuilder() { - if (suggestionCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_descriptor; } - return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.class, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + private int bitField0_; + public static final int TOOL_CALL_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2beta1.ToolCall toolCall_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (suggestionCase_ == 1) { - output.writeMessage(1, (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_); + /** + * + * + *
                                          +     * Required. Request for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolCall field is set. + */ + @java.lang.Override + public boolean hasToolCall() { + return ((bitField0_ & 0x00000001) != 0); } - if (suggestionCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_); + + /** + * + * + *
                                          +     * Required. Request for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolCall. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCall getToolCall() { + return toolCall_ == null + ? com.google.cloud.dialogflow.v2beta1.ToolCall.getDefaultInstance() + : toolCall_; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (suggestionCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_); - } - if (suggestionCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_); + /** + * + * + *
                                          +     * Required. Request for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallOrBuilder getToolCallOrBuilder() { + return toolCall_ == null + ? com.google.cloud.dialogflow.v2beta1.ToolCall.getDefaultInstance() + : toolCall_; } - 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.dialogflow.v2beta1.GeneratorSuggestion)) { - return super.equals(obj); + public static final int TOOL_CALL_RESULT_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.ToolCallResult toolCallResult_; + + /** + * + * + *
                                          +     * Required. Response for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolCallResult field is set. + */ + @java.lang.Override + public boolean hasToolCallResult() { + return ((bitField0_ & 0x00000002) != 0); } - com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion other = - (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) obj; - if (!getSuggestionCase().equals(other.getSuggestionCase())) return false; - switch (suggestionCase_) { - case 1: - if (!getFreeFormSuggestion().equals(other.getFreeFormSuggestion())) return false; - break; - case 2: - if (!getSummarySuggestion().equals(other.getSummarySuggestion())) return false; - break; - case 0: - default: + /** + * + * + *
                                          +     * Required. Response for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolCallResult. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult getToolCallResult() { + return toolCallResult_ == null + ? com.google.cloud.dialogflow.v2beta1.ToolCallResult.getDefaultInstance() + : toolCallResult_; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
                                          +     * Required. Response for a tool call.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResultOrBuilder + getToolCallResultOrBuilder() { + return toolCallResult_ == null + ? com.google.cloud.dialogflow.v2beta1.ToolCallResult.getDefaultInstance() + : toolCallResult_; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (suggestionCase_) { - case 1: - hash = (37 * hash) + FREE_FORM_SUGGESTION_FIELD_NUMBER; - hash = (53 * hash) + getFreeFormSuggestion().hashCode(); - break; - case 2: - hash = (37 * hash) + SUMMARY_SUGGESTION_FIELD_NUMBER; - hash = (53 * hash) + getSummarySuggestion().hashCode(); - break; - case 0: - default: + + 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; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getToolCall()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getToolCallResult()); + } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getToolCall()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToolCallResult()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo other = + (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo) obj; - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + if (hasToolCall() != other.hasToolCall()) return false; + if (hasToolCall()) { + if (!getToolCall().equals(other.getToolCall())) return false; + } + if (hasToolCallResult() != other.hasToolCallResult()) return false; + if (hasToolCallResult()) { + if (!getToolCallResult().equals(other.getToolCallResult())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToolCall()) { + hash = (37 * hash) + TOOL_CALL_FIELD_NUMBER; + hash = (53 * hash) + getToolCall().hashCode(); + } + if (hasToolCallResult()) { + hash = (37 * hash) + TOOL_CALL_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getToolCallResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo 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.dialogflow.v2beta1.GeneratorSuggestion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo 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.dialogflow.v2beta1.GeneratorSuggestion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * - * - *
                                          -   * Suggestion generated using a Generator.
                                          -   * 
                                          - * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorSuggestion} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorSuggestion) - com.google.cloud.dialogflow.v2beta1.GeneratorSuggestionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.GeneratorProto - .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_descriptor; + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.GeneratorProto - .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.class, - com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.Builder.class); + public Builder newBuilderForType() { + return newBuilder(); } - // Construct using com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.newBuilder() - private Builder() {} + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder clear() { + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Request and response for a tool call.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo) + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.class, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getToolCallFieldBuilder(); + getToolCallResultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolCall_ = null; + if (toolCallBuilder_ != null) { + toolCallBuilder_.dispose(); + toolCallBuilder_ = null; + } + toolCallResult_ = null; + if (toolCallResultBuilder_ != null) { + toolCallResultBuilder_.dispose(); + toolCallResultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_ToolCallInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo build() { + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo buildPartial() { + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo result = + new com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolCall_ = toolCallBuilder_ == null ? toolCall_ : toolCallBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolCallResult_ = + toolCallResultBuilder_ == null ? toolCallResult_ : toolCallResultBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo other) { + if (other + == com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + .getDefaultInstance()) return this; + if (other.hasToolCall()) { + mergeToolCall(other.getToolCall()); + } + if (other.hasToolCallResult()) { + mergeToolCallResult(other.getToolCallResult()); + } + 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(getToolCallFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getToolCallResultFieldBuilder().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.dialogflow.v2beta1.ToolCall toolCall_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ToolCall, + com.google.cloud.dialogflow.v2beta1.ToolCall.Builder, + com.google.cloud.dialogflow.v2beta1.ToolCallOrBuilder> + toolCallBuilder_; + + /** + * + * + *
                                          +       * Required. Request for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolCall field is set. + */ + public boolean hasToolCall() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +       * Required. Request for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolCall. + */ + public com.google.cloud.dialogflow.v2beta1.ToolCall getToolCall() { + if (toolCallBuilder_ == null) { + return toolCall_ == null + ? com.google.cloud.dialogflow.v2beta1.ToolCall.getDefaultInstance() + : toolCall_; + } else { + return toolCallBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Required. Request for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolCall(com.google.cloud.dialogflow.v2beta1.ToolCall value) { + if (toolCallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolCall_ = value; + } else { + toolCallBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. Request for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolCall( + com.google.cloud.dialogflow.v2beta1.ToolCall.Builder builderForValue) { + if (toolCallBuilder_ == null) { + toolCall_ = builderForValue.build(); + } else { + toolCallBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. Request for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeToolCall(com.google.cloud.dialogflow.v2beta1.ToolCall value) { + if (toolCallBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && toolCall_ != null + && toolCall_ != com.google.cloud.dialogflow.v2beta1.ToolCall.getDefaultInstance()) { + getToolCallBuilder().mergeFrom(value); + } else { + toolCall_ = value; + } + } else { + toolCallBuilder_.mergeFrom(value); + } + if (toolCall_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Request for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearToolCall() { + bitField0_ = (bitField0_ & ~0x00000001); + toolCall_ = null; + if (toolCallBuilder_ != null) { + toolCallBuilder_.dispose(); + toolCallBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. Request for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolCall.Builder getToolCallBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getToolCallFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Required. Request for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolCallOrBuilder getToolCallOrBuilder() { + if (toolCallBuilder_ != null) { + return toolCallBuilder_.getMessageOrBuilder(); + } else { + return toolCall_ == null + ? com.google.cloud.dialogflow.v2beta1.ToolCall.getDefaultInstance() + : toolCall_; + } + } + + /** + * + * + *
                                          +       * Required. Request for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall tool_call = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ToolCall, + com.google.cloud.dialogflow.v2beta1.ToolCall.Builder, + com.google.cloud.dialogflow.v2beta1.ToolCallOrBuilder> + getToolCallFieldBuilder() { + if (toolCallBuilder_ == null) { + toolCallBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ToolCall, + com.google.cloud.dialogflow.v2beta1.ToolCall.Builder, + com.google.cloud.dialogflow.v2beta1.ToolCallOrBuilder>( + getToolCall(), getParentForChildren(), isClean()); + toolCall_ = null; + } + return toolCallBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.ToolCallResult toolCallResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ToolCallResult, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Builder, + com.google.cloud.dialogflow.v2beta1.ToolCallResultOrBuilder> + toolCallResultBuilder_; + + /** + * + * + *
                                          +       * Required. Response for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolCallResult field is set. + */ + public boolean hasToolCallResult() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * Required. Response for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolCallResult. + */ + public com.google.cloud.dialogflow.v2beta1.ToolCallResult getToolCallResult() { + if (toolCallResultBuilder_ == null) { + return toolCallResult_ == null + ? com.google.cloud.dialogflow.v2beta1.ToolCallResult.getDefaultInstance() + : toolCallResult_; + } else { + return toolCallResultBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Required. Response for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolCallResult(com.google.cloud.dialogflow.v2beta1.ToolCallResult value) { + if (toolCallResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolCallResult_ = value; + } else { + toolCallResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. Response for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolCallResult( + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Builder builderForValue) { + if (toolCallResultBuilder_ == null) { + toolCallResult_ = builderForValue.build(); + } else { + toolCallResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. Response for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeToolCallResult(com.google.cloud.dialogflow.v2beta1.ToolCallResult value) { + if (toolCallResultBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && toolCallResult_ != null + && toolCallResult_ + != com.google.cloud.dialogflow.v2beta1.ToolCallResult.getDefaultInstance()) { + getToolCallResultBuilder().mergeFrom(value); + } else { + toolCallResult_ = value; + } + } else { + toolCallResultBuilder_.mergeFrom(value); + } + if (toolCallResult_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Response for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearToolCallResult() { + bitField0_ = (bitField0_ & ~0x00000002); + toolCallResult_ = null; + if (toolCallResultBuilder_ != null) { + toolCallResultBuilder_.dispose(); + toolCallResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. Response for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolCallResult.Builder getToolCallResultBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getToolCallResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Required. Response for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolCallResultOrBuilder + getToolCallResultOrBuilder() { + if (toolCallResultBuilder_ != null) { + return toolCallResultBuilder_.getMessageOrBuilder(); + } else { + return toolCallResult_ == null + ? com.google.cloud.dialogflow.v2beta1.ToolCallResult.getDefaultInstance() + : toolCallResult_; + } + } + + /** + * + * + *
                                          +       * Required. Response for a tool call.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult tool_call_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ToolCallResult, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Builder, + com.google.cloud.dialogflow.v2beta1.ToolCallResultOrBuilder> + getToolCallResultFieldBuilder() { + if (toolCallResultBuilder_ == null) { + toolCallResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ToolCallResult, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Builder, + com.google.cloud.dialogflow.v2beta1.ToolCallResultOrBuilder>( + getToolCallResult(), getParentForChildren(), isClean()); + toolCallResult_ = null; + } + return toolCallResultBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo) + private static final com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCallInfo 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.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int suggestionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object suggestion_; + + public enum SuggestionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FREE_FORM_SUGGESTION(1), + SUMMARY_SUGGESTION(2), + AGENT_COACHING_SUGGESTION(3), + SUGGESTION_NOT_SET(0); + private final int value; + + private SuggestionCase(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 SuggestionCase valueOf(int value) { + return forNumber(value); + } + + public static SuggestionCase forNumber(int value) { + switch (value) { + case 1: + return FREE_FORM_SUGGESTION; + case 2: + return SUMMARY_SUGGESTION; + case 3: + return AGENT_COACHING_SUGGESTION; + case 0: + return SUGGESTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SuggestionCase getSuggestionCase() { + return SuggestionCase.forNumber(suggestionCase_); + } + + public static final int FREE_FORM_SUGGESTION_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +   * Optional. Free form suggestion.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the freeFormSuggestion field is set. + */ + @java.lang.Override + public boolean hasFreeFormSuggestion() { + return suggestionCase_ == 1; + } + + /** + * + * + *
                                          +   * Optional. Free form suggestion.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The freeFormSuggestion. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion getFreeFormSuggestion() { + if (suggestionCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Optional. Free form suggestion.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder + getFreeFormSuggestionOrBuilder() { + if (suggestionCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); + } + + public static final int SUMMARY_SUGGESTION_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +   * Optional. Suggested summary.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the summarySuggestion field is set. + */ + @java.lang.Override + public boolean hasSummarySuggestion() { + return suggestionCase_ == 2; + } + + /** + * + * + *
                                          +   * Optional. Suggested summary.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The summarySuggestion. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion getSummarySuggestion() { + if (suggestionCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Optional. Suggested summary.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder + getSummarySuggestionOrBuilder() { + if (suggestionCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); + } + + public static final int AGENT_COACHING_SUGGESTION_FIELD_NUMBER = 3; + + /** + * + * + *
                                          +   * Optional. Suggestion to coach the agent.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentCoachingSuggestion field is set. + */ + @java.lang.Override + public boolean hasAgentCoachingSuggestion() { + return suggestionCase_ == 3; + } + + /** + * + * + *
                                          +   * Optional. Suggestion to coach the agent.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentCoachingSuggestion. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion getAgentCoachingSuggestion() { + if (suggestionCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Optional. Suggestion to coach the agent.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestionOrBuilder + getAgentCoachingSuggestionOrBuilder() { + if (suggestionCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.getDefaultInstance(); + } + + public static final int TOOL_CALL_INFO_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + toolCallInfo_; + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolCallInfoList() { + return toolCallInfo_; + } + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder> + getToolCallInfoOrBuilderList() { + return toolCallInfo_; + } + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolCallInfoCount() { + return toolCallInfo_.size(); + } + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo getToolCallInfo( + int index) { + return toolCallInfo_.get(index); + } + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder + getToolCallInfoOrBuilder(int index) { + return toolCallInfo_.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 { + if (suggestionCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_); + } + if (suggestionCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_); + } + if (suggestionCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) suggestion_); + } + for (int i = 0; i < toolCallInfo_.size(); i++) { + output.writeMessage(9, toolCallInfo_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (suggestionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_); + } + if (suggestionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_); + } + if (suggestionCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) suggestion_); + } + for (int i = 0; i < toolCallInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, toolCallInfo_.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.cloud.dialogflow.v2beta1.GeneratorSuggestion)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion other = + (com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) obj; + + if (!getToolCallInfoList().equals(other.getToolCallInfoList())) return false; + if (!getSuggestionCase().equals(other.getSuggestionCase())) return false; + switch (suggestionCase_) { + case 1: + if (!getFreeFormSuggestion().equals(other.getFreeFormSuggestion())) return false; + break; + case 2: + if (!getSummarySuggestion().equals(other.getSummarySuggestion())) return false; + break; + case 3: + if (!getAgentCoachingSuggestion().equals(other.getAgentCoachingSuggestion())) 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(); + if (getToolCallInfoCount() > 0) { + hash = (37 * hash) + TOOL_CALL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getToolCallInfoList().hashCode(); + } + switch (suggestionCase_) { + case 1: + hash = (37 * hash) + FREE_FORM_SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getFreeFormSuggestion().hashCode(); + break; + case 2: + hash = (37 * hash) + SUMMARY_SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSummarySuggestion().hashCode(); + break; + case 3: + hash = (37 * hash) + AGENT_COACHING_SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getAgentCoachingSuggestion().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion 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.dialogflow.v2beta1.GeneratorSuggestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion 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.dialogflow.v2beta1.GeneratorSuggestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Suggestion generated using a Generator.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GeneratorSuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GeneratorSuggestion) + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.class, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { super.clear(); bitField0_ = 0; if (freeFormSuggestionBuilder_ != null) { @@ -470,243 +1815,1056 @@ public Builder clear() { if (summarySuggestionBuilder_ != null) { summarySuggestionBuilder_.clear(); } + if (agentCoachingSuggestionBuilder_ != null) { + agentCoachingSuggestionBuilder_.clear(); + } + if (toolCallInfoBuilder_ == null) { + toolCallInfo_ = java.util.Collections.emptyList(); + } else { + toolCallInfo_ = null; + toolCallInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + suggestionCase_ = 0; + suggestion_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion build() { + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion buildPartial() { + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion result = + new com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion result) { + if (toolCallInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + toolCallInfo_ = java.util.Collections.unmodifiableList(toolCallInfo_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.toolCallInfo_ = toolCallInfo_; + } else { + result.toolCallInfo_ = toolCallInfoBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion result) { + result.suggestionCase_ = suggestionCase_; + result.suggestion_ = this.suggestion_; + if (suggestionCase_ == 1 && freeFormSuggestionBuilder_ != null) { + result.suggestion_ = freeFormSuggestionBuilder_.build(); + } + if (suggestionCase_ == 2 && summarySuggestionBuilder_ != null) { + result.suggestion_ = summarySuggestionBuilder_.build(); + } + if (suggestionCase_ == 3 && agentCoachingSuggestionBuilder_ != null) { + result.suggestion_ = agentCoachingSuggestionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion other) { + if (other == com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance()) + return this; + if (toolCallInfoBuilder_ == null) { + if (!other.toolCallInfo_.isEmpty()) { + if (toolCallInfo_.isEmpty()) { + toolCallInfo_ = other.toolCallInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureToolCallInfoIsMutable(); + toolCallInfo_.addAll(other.toolCallInfo_); + } + onChanged(); + } + } else { + if (!other.toolCallInfo_.isEmpty()) { + if (toolCallInfoBuilder_.isEmpty()) { + toolCallInfoBuilder_.dispose(); + toolCallInfoBuilder_ = null; + toolCallInfo_ = other.toolCallInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + toolCallInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getToolCallInfoFieldBuilder() + : null; + } else { + toolCallInfoBuilder_.addAllMessages(other.toolCallInfo_); + } + } + } + switch (other.getSuggestionCase()) { + case FREE_FORM_SUGGESTION: + { + mergeFreeFormSuggestion(other.getFreeFormSuggestion()); + break; + } + case SUMMARY_SUGGESTION: + { + mergeSummarySuggestion(other.getSummarySuggestion()); + break; + } + case AGENT_COACHING_SUGGESTION: + { + mergeAgentCoachingSuggestion(other.getAgentCoachingSuggestion()); + break; + } + case SUGGESTION_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: + { + input.readMessage( + getFreeFormSuggestionFieldBuilder().getBuilder(), extensionRegistry); + suggestionCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getSummarySuggestionFieldBuilder().getBuilder(), extensionRegistry); + suggestionCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getAgentCoachingSuggestionFieldBuilder().getBuilder(), extensionRegistry); + suggestionCase_ = 3; + break; + } // case 26 + case 74: + { + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + .parser(), + extensionRegistry); + if (toolCallInfoBuilder_ == null) { + ensureToolCallInfoIsMutable(); + toolCallInfo_.add(m); + } else { + toolCallInfoBuilder_.addMessage(m); + } + break; + } // case 74 + 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 suggestionCase_ = 0; + private java.lang.Object suggestion_; + + public SuggestionCase getSuggestionCase() { + return SuggestionCase.forNumber(suggestionCase_); + } + + public Builder clearSuggestion() { suggestionCase_ = 0; suggestion_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion, + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder> + freeFormSuggestionBuilder_; + + /** + * + * + *
                                          +     * Optional. Free form suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the freeFormSuggestion field is set. + */ + @java.lang.Override + public boolean hasFreeFormSuggestion() { + return suggestionCase_ == 1; + } + + /** + * + * + *
                                          +     * Optional. Free form suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The freeFormSuggestion. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion getFreeFormSuggestion() { + if (freeFormSuggestionBuilder_ == null) { + if (suggestionCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); + } else { + if (suggestionCase_ == 1) { + return freeFormSuggestionBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Optional. Free form suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFreeFormSuggestion( + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion value) { + if (freeFormSuggestionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestion_ = value; + onChanged(); + } else { + freeFormSuggestionBuilder_.setMessage(value); + } + suggestionCase_ = 1; + return this; + } + + /** + * + * + *
                                          +     * Optional. Free form suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFreeFormSuggestion( + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder builderForValue) { + if (freeFormSuggestionBuilder_ == null) { + suggestion_ = builderForValue.build(); + onChanged(); + } else { + freeFormSuggestionBuilder_.setMessage(builderForValue.build()); + } + suggestionCase_ = 1; + return this; + } + + /** + * + * + *
                                          +     * Optional. Free form suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFreeFormSuggestion( + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion value) { + if (freeFormSuggestionBuilder_ == null) { + if (suggestionCase_ == 1 + && suggestion_ + != com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance()) { + suggestion_ = + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.newBuilder( + (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_) + .mergeFrom(value) + .buildPartial(); + } else { + suggestion_ = value; + } + onChanged(); + } else { + if (suggestionCase_ == 1) { + freeFormSuggestionBuilder_.mergeFrom(value); + } else { + freeFormSuggestionBuilder_.setMessage(value); + } + } + suggestionCase_ = 1; + return this; + } + + /** + * + * + *
                                          +     * Optional. Free form suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFreeFormSuggestion() { + if (freeFormSuggestionBuilder_ == null) { + if (suggestionCase_ == 1) { + suggestionCase_ = 0; + suggestion_ = null; + onChanged(); + } + } else { + if (suggestionCase_ == 1) { + suggestionCase_ = 0; + suggestion_ = null; + } + freeFormSuggestionBuilder_.clear(); + } return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.GeneratorProto - .internal_static_google_cloud_dialogflow_v2beta1_GeneratorSuggestion_descriptor; - } + /** + * + * + *
                                          +     * Optional. Free form suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder + getFreeFormSuggestionBuilder() { + return getFreeFormSuggestionFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. Free form suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder + getFreeFormSuggestionOrBuilder() { + if ((suggestionCase_ == 1) && (freeFormSuggestionBuilder_ != null)) { + return freeFormSuggestionBuilder_.getMessageOrBuilder(); + } else { + if (suggestionCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Optional. Free form suggestion.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion, + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder> + getFreeFormSuggestionFieldBuilder() { + if (freeFormSuggestionBuilder_ == null) { + if (!(suggestionCase_ == 1)) { + suggestion_ = com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); + } + freeFormSuggestionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion, + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_, + getParentForChildren(), + isClean()); + suggestion_ = null; + } + suggestionCase_ = 1; + onChanged(); + return freeFormSuggestionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarySuggestion, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder> + summarySuggestionBuilder_; + /** + * + * + *
                                          +     * Optional. Suggested summary.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the summarySuggestion field is set. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance(); + public boolean hasSummarySuggestion() { + return suggestionCase_ == 2; } + /** + * + * + *
                                          +     * Optional. Suggested summary.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The summarySuggestion. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion build() { - com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion getSummarySuggestion() { + if (summarySuggestionBuilder_ == null) { + if (suggestionCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); + } else { + if (suggestionCase_ == 2) { + return summarySuggestionBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); } - return result; } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion buildPartial() { - com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion result = - new com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
                                          +     * Optional. Suggested summary.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSummarySuggestion( + com.google.cloud.dialogflow.v2beta1.SummarySuggestion value) { + if (summarySuggestionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestion_ = value; + onChanged(); + } else { + summarySuggestionBuilder_.setMessage(value); } - buildPartialOneofs(result); - onBuilt(); - return result; + suggestionCase_ = 2; + return this; } - private void buildPartial0(com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion result) { - int from_bitField0_ = bitField0_; + /** + * + * + *
                                          +     * Optional. Suggested summary.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSummarySuggestion( + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder builderForValue) { + if (summarySuggestionBuilder_ == null) { + suggestion_ = builderForValue.build(); + onChanged(); + } else { + summarySuggestionBuilder_.setMessage(builderForValue.build()); + } + suggestionCase_ = 2; + return this; } - private void buildPartialOneofs( - com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion result) { - result.suggestionCase_ = suggestionCase_; - result.suggestion_ = this.suggestion_; - if (suggestionCase_ == 1 && freeFormSuggestionBuilder_ != null) { - result.suggestion_ = freeFormSuggestionBuilder_.build(); + /** + * + * + *
                                          +     * Optional. Suggested summary.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSummarySuggestion( + com.google.cloud.dialogflow.v2beta1.SummarySuggestion value) { + if (summarySuggestionBuilder_ == null) { + if (suggestionCase_ == 2 + && suggestion_ + != com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance()) { + suggestion_ = + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.newBuilder( + (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_) + .mergeFrom(value) + .buildPartial(); + } else { + suggestion_ = value; + } + onChanged(); + } else { + if (suggestionCase_ == 2) { + summarySuggestionBuilder_.mergeFrom(value); + } else { + summarySuggestionBuilder_.setMessage(value); + } } - if (suggestionCase_ == 2 && summarySuggestionBuilder_ != null) { - result.suggestion_ = summarySuggestionBuilder_.build(); + suggestionCase_ = 2; + return this; + } + + /** + * + * + *
                                          +     * Optional. Suggested summary.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSummarySuggestion() { + if (summarySuggestionBuilder_ == null) { + if (suggestionCase_ == 2) { + suggestionCase_ = 0; + suggestion_ = null; + onChanged(); + } + } else { + if (suggestionCase_ == 2) { + suggestionCase_ = 0; + suggestion_ = null; + } + summarySuggestionBuilder_.clear(); } + return this; } - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
                                          +     * Optional. Suggested summary.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder + getSummarySuggestionBuilder() { + return getSummarySuggestionFieldBuilder().getBuilder(); } + /** + * + * + *
                                          +     * Optional. Suggested summary.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder + getSummarySuggestionOrBuilder() { + if ((suggestionCase_ == 2) && (summarySuggestionBuilder_ != null)) { + return summarySuggestionBuilder_.getMessageOrBuilder(); + } else { + if (suggestionCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); + } } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
                                          +     * Optional. Suggested summary.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarySuggestion, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder> + getSummarySuggestionFieldBuilder() { + if (summarySuggestionBuilder_ == null) { + if (!(suggestionCase_ == 2)) { + suggestion_ = com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); + } + summarySuggestionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarySuggestion, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_, + getParentForChildren(), + isClean()); + suggestion_ = null; + } + suggestionCase_ = 2; + onChanged(); + return summarySuggestionBuilder_; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestionOrBuilder> + agentCoachingSuggestionBuilder_; + /** + * + * + *
                                          +     * Optional. Suggestion to coach the agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentCoachingSuggestion field is set. + */ @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public boolean hasAgentCoachingSuggestion() { + return suggestionCase_ == 3; } + /** + * + * + *
                                          +     * Optional. Suggestion to coach the agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentCoachingSuggestion. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + getAgentCoachingSuggestion() { + if (agentCoachingSuggestionBuilder_ == null) { + if (suggestionCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.getDefaultInstance(); + } else { + if (suggestionCase_ == 3) { + return agentCoachingSuggestionBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.getDefaultInstance(); + } } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) { - return mergeFrom((com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion) other); + /** + * + * + *
                                          +     * Optional. Suggestion to coach the agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentCoachingSuggestion( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion value) { + if (agentCoachingSuggestionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestion_ = value; + onChanged(); } else { - super.mergeFrom(other); - return this; + agentCoachingSuggestionBuilder_.setMessage(value); } + suggestionCase_ = 3; + return this; } - public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion other) { - if (other == com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.getDefaultInstance()) - return this; - switch (other.getSuggestionCase()) { - case FREE_FORM_SUGGESTION: - { - mergeFreeFormSuggestion(other.getFreeFormSuggestion()); - break; - } - case SUMMARY_SUGGESTION: - { - mergeSummarySuggestion(other.getSummarySuggestion()); - break; - } - case SUGGESTION_NOT_SET: - { - break; - } + /** + * + * + *
                                          +     * Optional. Suggestion to coach the agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentCoachingSuggestion( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Builder builderForValue) { + if (agentCoachingSuggestionBuilder_ == null) { + suggestion_ = builderForValue.build(); + onChanged(); + } else { + agentCoachingSuggestionBuilder_.setMessage(builderForValue.build()); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + suggestionCase_ = 3; return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
                                          +     * Optional. Suggestion to coach the agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentCoachingSuggestion( + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion value) { + if (agentCoachingSuggestionBuilder_ == null) { + if (suggestionCase_ == 3 + && suggestion_ + != com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion + .getDefaultInstance()) { + suggestion_ = + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.newBuilder( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) suggestion_) + .mergeFrom(value) + .buildPartial(); + } else { + suggestion_ = value; + } + onChanged(); + } else { + if (suggestionCase_ == 3) { + agentCoachingSuggestionBuilder_.mergeFrom(value); + } else { + agentCoachingSuggestionBuilder_.setMessage(value); + } + } + suggestionCase_ = 3; + return this; } - @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(); + /** + * + * + *
                                          +     * Optional. Suggestion to coach the agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentCoachingSuggestion() { + if (agentCoachingSuggestionBuilder_ == null) { + if (suggestionCase_ == 3) { + suggestionCase_ = 0; + suggestion_ = null; + onChanged(); + } + } else { + if (suggestionCase_ == 3) { + suggestionCase_ = 0; + suggestion_ = null; + } + agentCoachingSuggestionBuilder_.clear(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getFreeFormSuggestionFieldBuilder().getBuilder(), extensionRegistry); - suggestionCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getSummarySuggestionFieldBuilder().getBuilder(), extensionRegistry); - suggestionCase_ = 2; - 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 suggestionCase_ = 0; - private java.lang.Object suggestion_; + /** + * + * + *
                                          +     * Optional. Suggestion to coach the agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Builder + getAgentCoachingSuggestionBuilder() { + return getAgentCoachingSuggestionFieldBuilder().getBuilder(); + } - public SuggestionCase getSuggestionCase() { - return SuggestionCase.forNumber(suggestionCase_); + /** + * + * + *
                                          +     * Optional. Suggestion to coach the agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestionOrBuilder + getAgentCoachingSuggestionOrBuilder() { + if ((suggestionCase_ == 3) && (agentCoachingSuggestionBuilder_ != null)) { + return agentCoachingSuggestionBuilder_.getMessageOrBuilder(); + } else { + if (suggestionCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) suggestion_; + } + return com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.getDefaultInstance(); + } } - public Builder clearSuggestion() { - suggestionCase_ = 0; - suggestion_ = null; + /** + * + * + *
                                          +     * Optional. Suggestion to coach the agent.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestionOrBuilder> + getAgentCoachingSuggestionFieldBuilder() { + if (agentCoachingSuggestionBuilder_ == null) { + if (!(suggestionCase_ == 3)) { + suggestion_ = + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.getDefaultInstance(); + } + agentCoachingSuggestionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Builder, + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestionOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion) suggestion_, + getParentForChildren(), + isClean()); + suggestion_ = null; + } + suggestionCase_ = 3; onChanged(); - return this; + return agentCoachingSuggestionBuilder_; } - private int bitField0_; + private java.util.List + toolCallInfo_ = java.util.Collections.emptyList(); - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion, - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder, - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder> - freeFormSuggestionBuilder_; + private void ensureToolCallInfoIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + toolCallInfo_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo>( + toolCallInfo_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder> + toolCallInfoBuilder_; /** * * *
                                          -     * Optional. Free form suggestion.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the freeFormSuggestion field is set. */ - @java.lang.Override - public boolean hasFreeFormSuggestion() { - return suggestionCase_ == 1; + public java.util.List + getToolCallInfoList() { + if (toolCallInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolCallInfo_); + } else { + return toolCallInfoBuilder_.getMessageList(); + } } /** * * *
                                          -     * Optional. Free form suggestion.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The freeFormSuggestion. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion getFreeFormSuggestion() { - if (freeFormSuggestionBuilder_ == null) { - if (suggestionCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_; - } - return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); + public int getToolCallInfoCount() { + if (toolCallInfoBuilder_ == null) { + return toolCallInfo_.size(); } else { - if (suggestionCase_ == 1) { - return freeFormSuggestionBuilder_.getMessage(); - } - return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); + return toolCallInfoBuilder_.getCount(); } } @@ -714,48 +2872,45 @@ public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion getFreeFormSuggest * * *
                                          -     * Optional. Free form suggestion.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setFreeFormSuggestion( - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion value) { - if (freeFormSuggestionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - suggestion_ = value; - onChanged(); + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo getToolCallInfo( + int index) { + if (toolCallInfoBuilder_ == null) { + return toolCallInfo_.get(index); } else { - freeFormSuggestionBuilder_.setMessage(value); + return toolCallInfoBuilder_.getMessage(index); } - suggestionCase_ = 1; - return this; } /** * * *
                                          -     * Optional. Free form suggestion.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setFreeFormSuggestion( - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder builderForValue) { - if (freeFormSuggestionBuilder_ == null) { - suggestion_ = builderForValue.build(); + public Builder setToolCallInfo( + int index, com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo value) { + if (toolCallInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallInfoIsMutable(); + toolCallInfo_.set(index, value); onChanged(); } else { - freeFormSuggestionBuilder_.setMessage(builderForValue.build()); + toolCallInfoBuilder_.setMessage(index, value); } - suggestionCase_ = 1; return this; } @@ -763,36 +2918,24 @@ public Builder setFreeFormSuggestion( * * *
                                          -     * Optional. Free form suggestion.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeFreeFormSuggestion( - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion value) { - if (freeFormSuggestionBuilder_ == null) { - if (suggestionCase_ == 1 - && suggestion_ - != com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance()) { - suggestion_ = - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.newBuilder( - (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_) - .mergeFrom(value) - .buildPartial(); - } else { - suggestion_ = value; - } + public Builder setToolCallInfo( + int index, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder + builderForValue) { + if (toolCallInfoBuilder_ == null) { + ensureToolCallInfoIsMutable(); + toolCallInfo_.set(index, builderForValue.build()); onChanged(); } else { - if (suggestionCase_ == 1) { - freeFormSuggestionBuilder_.mergeFrom(value); - } else { - freeFormSuggestionBuilder_.setMessage(value); - } + toolCallInfoBuilder_.setMessage(index, builderForValue.build()); } - suggestionCase_ = 1; return this; } @@ -800,26 +2943,24 @@ public Builder mergeFreeFormSuggestion( * * *
                                          -     * Optional. Free form suggestion.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearFreeFormSuggestion() { - if (freeFormSuggestionBuilder_ == null) { - if (suggestionCase_ == 1) { - suggestionCase_ = 0; - suggestion_ = null; - onChanged(); + public Builder addToolCallInfo( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo value) { + if (toolCallInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureToolCallInfoIsMutable(); + toolCallInfo_.add(value); + onChanged(); } else { - if (suggestionCase_ == 1) { - suggestionCase_ = 0; - suggestion_ = null; - } - freeFormSuggestionBuilder_.clear(); + toolCallInfoBuilder_.addMessage(value); } return this; } @@ -828,152 +2969,143 @@ public Builder clearFreeFormSuggestion() { * * *
                                          -     * Optional. Free form suggestion.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder - getFreeFormSuggestionBuilder() { - return getFreeFormSuggestionFieldBuilder().getBuilder(); + public Builder addToolCallInfo( + int index, com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo value) { + if (toolCallInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallInfoIsMutable(); + toolCallInfo_.add(index, value); + onChanged(); + } else { + toolCallInfoBuilder_.addMessage(index, value); + } + return this; } /** * * *
                                          -     * Optional. Free form suggestion.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder - getFreeFormSuggestionOrBuilder() { - if ((suggestionCase_ == 1) && (freeFormSuggestionBuilder_ != null)) { - return freeFormSuggestionBuilder_.getMessageOrBuilder(); + public Builder addToolCallInfo( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder + builderForValue) { + if (toolCallInfoBuilder_ == null) { + ensureToolCallInfoIsMutable(); + toolCallInfo_.add(builderForValue.build()); + onChanged(); } else { - if (suggestionCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_; - } - return com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); + toolCallInfoBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
                                          -     * Optional. Free form suggestion.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.FreeFormSuggestion free_form_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion, - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder, - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder> - getFreeFormSuggestionFieldBuilder() { - if (freeFormSuggestionBuilder_ == null) { - if (!(suggestionCase_ == 1)) { - suggestion_ = com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.getDefaultInstance(); - } - freeFormSuggestionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion, - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion.Builder, - com.google.cloud.dialogflow.v2beta1.FreeFormSuggestionOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.FreeFormSuggestion) suggestion_, - getParentForChildren(), - isClean()); - suggestion_ = null; + public Builder addToolCallInfo( + int index, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder + builderForValue) { + if (toolCallInfoBuilder_ == null) { + ensureToolCallInfoIsMutable(); + toolCallInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + toolCallInfoBuilder_.addMessage(index, builderForValue.build()); } - suggestionCase_ = 1; - onChanged(); - return freeFormSuggestionBuilder_; + return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.SummarySuggestion, - com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder, - com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder> - summarySuggestionBuilder_; - /** * * *
                                          -     * Optional. Suggested summary.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the summarySuggestion field is set. */ - @java.lang.Override - public boolean hasSummarySuggestion() { - return suggestionCase_ == 2; + public Builder addAllToolCallInfo( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo> + values) { + if (toolCallInfoBuilder_ == null) { + ensureToolCallInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolCallInfo_); + onChanged(); + } else { + toolCallInfoBuilder_.addAllMessages(values); + } + return this; } /** * * *
                                          -     * Optional. Suggested summary.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The summarySuggestion. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.SummarySuggestion getSummarySuggestion() { - if (summarySuggestionBuilder_ == null) { - if (suggestionCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_; - } - return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); + public Builder clearToolCallInfo() { + if (toolCallInfoBuilder_ == null) { + toolCallInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); } else { - if (suggestionCase_ == 2) { - return summarySuggestionBuilder_.getMessage(); - } - return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); + toolCallInfoBuilder_.clear(); } + return this; } /** * * *
                                          -     * Optional. Suggested summary.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSummarySuggestion( - com.google.cloud.dialogflow.v2beta1.SummarySuggestion value) { - if (summarySuggestionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - suggestion_ = value; + public Builder removeToolCallInfo(int index) { + if (toolCallInfoBuilder_ == null) { + ensureToolCallInfoIsMutable(); + toolCallInfo_.remove(index); onChanged(); } else { - summarySuggestionBuilder_.setMessage(value); + toolCallInfoBuilder_.remove(index); } - suggestionCase_ = 2; return this; } @@ -981,163 +3113,130 @@ public Builder setSummarySuggestion( * * *
                                          -     * Optional. Suggested summary.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSummarySuggestion( - com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder builderForValue) { - if (summarySuggestionBuilder_ == null) { - suggestion_ = builderForValue.build(); - onChanged(); - } else { - summarySuggestionBuilder_.setMessage(builderForValue.build()); - } - suggestionCase_ = 2; - return this; + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder + getToolCallInfoBuilder(int index) { + return getToolCallInfoFieldBuilder().getBuilder(index); } /** * * *
                                          -     * Optional. Suggested summary.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeSummarySuggestion( - com.google.cloud.dialogflow.v2beta1.SummarySuggestion value) { - if (summarySuggestionBuilder_ == null) { - if (suggestionCase_ == 2 - && suggestion_ - != com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance()) { - suggestion_ = - com.google.cloud.dialogflow.v2beta1.SummarySuggestion.newBuilder( - (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_) - .mergeFrom(value) - .buildPartial(); - } else { - suggestion_ = value; - } - onChanged(); + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder + getToolCallInfoOrBuilder(int index) { + if (toolCallInfoBuilder_ == null) { + return toolCallInfo_.get(index); } else { - if (suggestionCase_ == 2) { - summarySuggestionBuilder_.mergeFrom(value); - } else { - summarySuggestionBuilder_.setMessage(value); - } + return toolCallInfoBuilder_.getMessageOrBuilder(index); } - suggestionCase_ = 2; - return this; } /** * * *
                                          -     * Optional. Suggested summary.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSummarySuggestion() { - if (summarySuggestionBuilder_ == null) { - if (suggestionCase_ == 2) { - suggestionCase_ = 0; - suggestion_ = null; - onChanged(); - } + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder> + getToolCallInfoOrBuilderList() { + if (toolCallInfoBuilder_ != null) { + return toolCallInfoBuilder_.getMessageOrBuilderList(); } else { - if (suggestionCase_ == 2) { - suggestionCase_ = 0; - suggestion_ = null; - } - summarySuggestionBuilder_.clear(); + return java.util.Collections.unmodifiableList(toolCallInfo_); } - return this; } /** * * *
                                          -     * Optional. Suggested summary.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder - getSummarySuggestionBuilder() { - return getSummarySuggestionFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder + addToolCallInfoBuilder() { + return getToolCallInfoFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + .getDefaultInstance()); } /** * * *
                                          -     * Optional. Suggested summary.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder - getSummarySuggestionOrBuilder() { - if ((suggestionCase_ == 2) && (summarySuggestionBuilder_ != null)) { - return summarySuggestionBuilder_.getMessageOrBuilder(); - } else { - if (suggestionCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_; - } - return com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); - } + public com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder + addToolCallInfoBuilder(int index) { + return getToolCallInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo + .getDefaultInstance()); } /** * * *
                                          -     * Optional. Suggested summary.
                                          +     * Optional. List of request and response for tool calls executed.
                                                * 
                                          * * - * .google.cloud.dialogflow.v2beta1.SummarySuggestion summary_suggestion = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.SummarySuggestion, - com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder, - com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder> - getSummarySuggestionFieldBuilder() { - if (summarySuggestionBuilder_ == null) { - if (!(suggestionCase_ == 2)) { - suggestion_ = com.google.cloud.dialogflow.v2beta1.SummarySuggestion.getDefaultInstance(); - } - summarySuggestionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.SummarySuggestion, - com.google.cloud.dialogflow.v2beta1.SummarySuggestion.Builder, - com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.SummarySuggestion) suggestion_, - getParentForChildren(), - isClean()); - suggestion_ = null; + public java.util.List< + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder> + getToolCallInfoBuilderList() { + return getToolCallInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder> + getToolCallInfoFieldBuilder() { + if (toolCallInfoBuilder_ == null) { + toolCallInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder>( + toolCallInfo_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + toolCallInfo_ = null; } - suggestionCase_ = 2; - onChanged(); - return summarySuggestionBuilder_; + return toolCallInfoBuilder_; } @java.lang.Override diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorSuggestionOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorSuggestionOrBuilder.java index 133d120bead4..d778b54dee0a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorSuggestionOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorSuggestionOrBuilder.java @@ -110,5 +110,118 @@ public interface GeneratorSuggestionOrBuilder */ com.google.cloud.dialogflow.v2beta1.SummarySuggestionOrBuilder getSummarySuggestionOrBuilder(); + /** + * + * + *
                                          +   * Optional. Suggestion to coach the agent.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentCoachingSuggestion field is set. + */ + boolean hasAgentCoachingSuggestion(); + + /** + * + * + *
                                          +   * Optional. Suggestion to coach the agent.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentCoachingSuggestion. + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion getAgentCoachingSuggestion(); + + /** + * + * + *
                                          +   * Optional. Suggestion to coach the agent.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion agent_coaching_suggestion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.AgentCoachingSuggestionOrBuilder + getAgentCoachingSuggestionOrBuilder(); + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolCallInfoList(); + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo getToolCallInfo(int index); + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolCallInfoCount(); + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder> + getToolCallInfoOrBuilderList(); + + /** + * + * + *
                                          +   * Optional. List of request and response for tool calls executed.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfo tool_call_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoOrBuilder + getToolCallInfoOrBuilder(int index); + com.google.cloud.dialogflow.v2beta1.GeneratorSuggestion.SuggestionCase getSuggestionCase(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetGeneratorEvaluationRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetGeneratorEvaluationRequest.java new file mode 100644 index 000000000000..57f276cd35d6 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetGeneratorEvaluationRequest.java @@ -0,0 +1,672 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Request of GetGeneratorEvaluation.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest} + */ +public final class GetGeneratorEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest) + GetGeneratorEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetGeneratorEvaluationRequest.newBuilder() to construct. + private GetGeneratorEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetGeneratorEvaluationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGeneratorEvaluationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest.class, + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +   * Required. The generator evaluation resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator
                                          +   * ID>/evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator
                                          +   * ID>/evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.GetGeneratorEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest other = + (com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest) 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.dialogflow.v2beta1.GetGeneratorEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest 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.dialogflow.v2beta1.GetGeneratorEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest 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.dialogflow.v2beta1.GetGeneratorEvaluationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request of GetGeneratorEvaluation.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest) + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest.class, + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_GetGeneratorEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest build() { + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest result = + new com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest other) { + if (other + == com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest.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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator
                                          +     * ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator
                                          +     * ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator
                                          +     * ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator
                                          +     * ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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. The generator evaluation resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator
                                          +     * ID>/evaluations/<Evaluation ID>`
                                          +     * 
                                          + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest) + private static final com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGeneratorEvaluationRequest 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.dialogflow.v2beta1.GetGeneratorEvaluationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetGeneratorEvaluationRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetGeneratorEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..2c899a4792f1 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetGeneratorEvaluationRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface GetGeneratorEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The generator evaluation resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator
                                          +   * ID>/evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +   * Required. The generator evaluation resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator
                                          +   * ID>/evaluations/<Evaluation ID>`
                                          +   * 
                                          + * + * + * 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-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetToolRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetToolRequest.java new file mode 100644 index 000000000000..5919af624d61 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetToolRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Request message of GetTool.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetToolRequest} + */ +public final class GetToolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GetToolRequest) + GetToolRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetToolRequest.newBuilder() to construct. + private GetToolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetToolRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetToolRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GetToolRequest.class, + com.google.cloud.dialogflow.v2beta1.GetToolRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +   * Required. The tool resource name to retrieve. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +   * 
                                          + * + * + * 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. The tool resource name to retrieve. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +   * 
                                          + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.GetToolRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GetToolRequest other = + (com.google.cloud.dialogflow.v2beta1.GetToolRequest) 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.dialogflow.v2beta1.GetToolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest 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.dialogflow.v2beta1.GetToolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest 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.dialogflow.v2beta1.GetToolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.GetToolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request message of GetTool.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetToolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GetToolRequest) + com.google.cloud.dialogflow.v2beta1.GetToolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GetToolRequest.class, + com.google.cloud.dialogflow.v2beta1.GetToolRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.GetToolRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GetToolRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GetToolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GetToolRequest build() { + com.google.cloud.dialogflow.v2beta1.GetToolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GetToolRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.GetToolRequest result = + new com.google.cloud.dialogflow.v2beta1.GetToolRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.GetToolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.GetToolRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.GetToolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.GetToolRequest other) { + if (other == com.google.cloud.dialogflow.v2beta1.GetToolRequest.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. The tool resource name to retrieve. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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. The tool resource name to retrieve. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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. The tool resource name to retrieve. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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. The tool resource name to retrieve. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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. The tool resource name to retrieve. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +     * 
                                          + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GetToolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GetToolRequest) + private static final com.google.cloud.dialogflow.v2beta1.GetToolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.GetToolRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.GetToolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetToolRequest 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.dialogflow.v2beta1.GetToolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetToolRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetToolRequestOrBuilder.java new file mode 100644 index 000000000000..0f5aafb209d4 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetToolRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface GetToolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GetToolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The tool resource name to retrieve. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +   * Required. The tool resource name to retrieve. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`
                                          +   * 
                                          + * + * + * 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-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java index 4cfe649aaba4..93b89c88033f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java @@ -905,6 +905,72 @@ public interface SuggestionFeatureConfigOrBuilder */ boolean getEnableQuerySuggestionOnly(); + /** + * + * + *
                                          +     * Optional. Enable returning detailed reasons for suggestion results.
                                          +     *
                                          +     * For example, with this field disabled, Knowledge Search feature returns
                                          +     * NotFound error when no answer is found for the input query. Enabling this
                                          +     * field will change the behavior to return an OK response with
                                          +     * detailed information indicating the lack of results.
                                          +     *
                                          +     * Supported features: KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST
                                          +     * 
                                          + * + * bool enable_response_debug_info = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableResponseDebugInfo. + */ + boolean getEnableResponseDebugInfo(); + + /** + * + * + *
                                          +     * Optional. Settings for Responsible AI checks.
                                          +     * Supported features:  KNOWLEDGE_ASSIST
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the raiSettings field is set. + */ + boolean hasRaiSettings(); + + /** + * + * + *
                                          +     * Optional. Settings for Responsible AI checks.
                                          +     * Supported features:  KNOWLEDGE_ASSIST
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The raiSettings. + */ + com.google.cloud.dialogflow.v2beta1.RaiSettings getRaiSettings(); + + /** + * + * + *
                                          +     * Optional. Settings for Responsible AI checks.
                                          +     * Supported features:  KNOWLEDGE_ASSIST
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder getRaiSettingsOrBuilder(); + /** * * @@ -1307,6 +1373,94 @@ public boolean getEnableQuerySuggestionOnly() { return enableQuerySuggestionOnly_; } + public static final int ENABLE_RESPONSE_DEBUG_INFO_FIELD_NUMBER = 18; + private boolean enableResponseDebugInfo_ = false; + + /** + * + * + *
                                          +     * Optional. Enable returning detailed reasons for suggestion results.
                                          +     *
                                          +     * For example, with this field disabled, Knowledge Search feature returns
                                          +     * NotFound error when no answer is found for the input query. Enabling this
                                          +     * field will change the behavior to return an OK response with
                                          +     * detailed information indicating the lack of results.
                                          +     *
                                          +     * Supported features: KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST
                                          +     * 
                                          + * + * bool enable_response_debug_info = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableResponseDebugInfo. + */ + @java.lang.Override + public boolean getEnableResponseDebugInfo() { + return enableResponseDebugInfo_; + } + + public static final int RAI_SETTINGS_FIELD_NUMBER = 19; + private com.google.cloud.dialogflow.v2beta1.RaiSettings raiSettings_; + + /** + * + * + *
                                          +     * Optional. Settings for Responsible AI checks.
                                          +     * Supported features:  KNOWLEDGE_ASSIST
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the raiSettings field is set. + */ + @java.lang.Override + public boolean hasRaiSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Optional. Settings for Responsible AI checks.
                                          +     * Supported features:  KNOWLEDGE_ASSIST
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The raiSettings. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings getRaiSettings() { + return raiSettings_ == null + ? com.google.cloud.dialogflow.v2beta1.RaiSettings.getDefaultInstance() + : raiSettings_; + } + + /** + * + * + *
                                          +     * Optional. Settings for Responsible AI checks.
                                          +     * Supported features:  KNOWLEDGE_ASSIST
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder getRaiSettingsOrBuilder() { + return raiSettings_ == null + ? com.google.cloud.dialogflow.v2beta1.RaiSettings.getDefaultInstance() + : raiSettings_; + } + public static final int SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER = 10; private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestionTriggerSettings_; @@ -1329,7 +1483,7 @@ public boolean getEnableQuerySuggestionOnly() { */ @java.lang.Override public boolean hasSuggestionTriggerSettings() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1400,7 +1554,7 @@ public boolean hasSuggestionTriggerSettings() { */ @java.lang.Override public boolean hasQueryConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1465,7 +1619,7 @@ public boolean hasQueryConfig() { */ @java.lang.Override public boolean hasConversationModelConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1530,7 +1684,7 @@ public boolean hasConversationModelConfig() { */ @java.lang.Override public boolean hasConversationProcessConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1596,16 +1750,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getSuggestionFeature()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getQueryConfig()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getConversationModelConfig()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getConversationProcessConfig()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getSuggestionTriggerSettings()); } if (disableAgentQueryLogging_ != false) { @@ -1620,6 +1774,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableQuerySuggestionOnly_ != false) { output.writeBool(17, enableQuerySuggestionOnly_); } + if (enableResponseDebugInfo_ != false) { + output.writeBool(18, enableResponseDebugInfo_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(19, getRaiSettings()); + } getUnknownFields().writeTo(output); } @@ -1636,20 +1796,20 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSuggestionFeature()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQueryConfig()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 7, getConversationModelConfig()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getConversationProcessConfig()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getSuggestionTriggerSettings()); @@ -1672,6 +1832,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, enableQuerySuggestionOnly_); } + if (enableResponseDebugInfo_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, enableResponseDebugInfo_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getRaiSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1702,6 +1868,11 @@ public boolean equals(final java.lang.Object obj) { if (getEnableConversationAugmentedQuery() != other.getEnableConversationAugmentedQuery()) return false; if (getEnableQuerySuggestionOnly() != other.getEnableQuerySuggestionOnly()) return false; + if (getEnableResponseDebugInfo() != other.getEnableResponseDebugInfo()) return false; + if (hasRaiSettings() != other.hasRaiSettings()) return false; + if (hasRaiSettings()) { + if (!getRaiSettings().equals(other.getRaiSettings())) return false; + } if (hasSuggestionTriggerSettings() != other.hasSuggestionTriggerSettings()) return false; if (hasSuggestionTriggerSettings()) { if (!getSuggestionTriggerSettings().equals(other.getSuggestionTriggerSettings())) @@ -1750,6 +1921,12 @@ public int hashCode() { + com.google.protobuf.Internal.hashBoolean(getEnableConversationAugmentedQuery()); hash = (37 * hash) + ENABLE_QUERY_SUGGESTION_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableQuerySuggestionOnly()); + hash = (37 * hash) + ENABLE_RESPONSE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableResponseDebugInfo()); + if (hasRaiSettings()) { + hash = (37 * hash) + RAI_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getRaiSettings().hashCode(); + } if (hasSuggestionTriggerSettings()) { hash = (37 * hash) + SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSuggestionTriggerSettings().hashCode(); @@ -1935,6 +2112,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSuggestionFeatureFieldBuilder(); + getRaiSettingsFieldBuilder(); getSuggestionTriggerSettingsFieldBuilder(); getQueryConfigFieldBuilder(); getConversationModelConfigFieldBuilder(); @@ -1956,6 +2134,12 @@ public Builder clear() { enableQuerySuggestionWhenNoAnswer_ = false; enableConversationAugmentedQuery_ = false; enableQuerySuggestionOnly_ = false; + enableResponseDebugInfo_ = false; + raiSettings_ = null; + if (raiSettingsBuilder_ != null) { + raiSettingsBuilder_.dispose(); + raiSettingsBuilder_ = null; + } suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -2045,30 +2229,38 @@ private void buildPartial0( result.enableQuerySuggestionOnly_ = enableQuerySuggestionOnly_; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.enableResponseDebugInfo_ = enableResponseDebugInfo_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.raiSettings_ = + raiSettingsBuilder_ == null ? raiSettings_ : raiSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.suggestionTriggerSettings_ = suggestionTriggerSettingsBuilder_ == null ? suggestionTriggerSettings_ : suggestionTriggerSettingsBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.queryConfig_ = queryConfigBuilder_ == null ? queryConfig_ : queryConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.conversationModelConfig_ = conversationModelConfigBuilder_ == null ? conversationModelConfig_ : conversationModelConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.conversationProcessConfig_ = conversationProcessConfigBuilder_ == null ? conversationProcessConfig_ : conversationProcessConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @@ -2147,6 +2339,12 @@ public Builder mergeFrom( if (other.getEnableQuerySuggestionOnly() != false) { setEnableQuerySuggestionOnly(other.getEnableQuerySuggestionOnly()); } + if (other.getEnableResponseDebugInfo() != false) { + setEnableResponseDebugInfo(other.getEnableResponseDebugInfo()); + } + if (other.hasRaiSettings()) { + mergeRaiSettings(other.getRaiSettings()); + } if (other.hasSuggestionTriggerSettings()) { mergeSuggestionTriggerSettings(other.getSuggestionTriggerSettings()); } @@ -2201,28 +2399,28 @@ public Builder mergeFrom( case 50: { input.readMessage(getQueryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 50 case 58: { input.readMessage( getConversationModelConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 58 case 66: { input.readMessage( getConversationProcessConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 66 case 82: { input.readMessage( getSuggestionTriggerSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 82 case 112: @@ -2249,6 +2447,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 136 + case 144: + { + enableResponseDebugInfo_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 144 + case 154: + { + input.readMessage(getRaiSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2799,6 +3009,309 @@ public Builder clearEnableQuerySuggestionOnly() { return this; } + private boolean enableResponseDebugInfo_; + + /** + * + * + *
                                          +       * Optional. Enable returning detailed reasons for suggestion results.
                                          +       *
                                          +       * For example, with this field disabled, Knowledge Search feature returns
                                          +       * NotFound error when no answer is found for the input query. Enabling this
                                          +       * field will change the behavior to return an OK response with
                                          +       * detailed information indicating the lack of results.
                                          +       *
                                          +       * Supported features: KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * bool enable_response_debug_info = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableResponseDebugInfo. + */ + @java.lang.Override + public boolean getEnableResponseDebugInfo() { + return enableResponseDebugInfo_; + } + + /** + * + * + *
                                          +       * Optional. Enable returning detailed reasons for suggestion results.
                                          +       *
                                          +       * For example, with this field disabled, Knowledge Search feature returns
                                          +       * NotFound error when no answer is found for the input query. Enabling this
                                          +       * field will change the behavior to return an OK response with
                                          +       * detailed information indicating the lack of results.
                                          +       *
                                          +       * Supported features: KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * bool enable_response_debug_info = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableResponseDebugInfo to set. + * @return This builder for chaining. + */ + public Builder setEnableResponseDebugInfo(boolean value) { + + enableResponseDebugInfo_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Enable returning detailed reasons for suggestion results.
                                          +       *
                                          +       * For example, with this field disabled, Knowledge Search feature returns
                                          +       * NotFound error when no answer is found for the input query. Enabling this
                                          +       * field will change the behavior to return an OK response with
                                          +       * detailed information indicating the lack of results.
                                          +       *
                                          +       * Supported features: KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * bool enable_response_debug_info = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableResponseDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000040); + enableResponseDebugInfo_ = false; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.RaiSettings raiSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.RaiSettings, + com.google.cloud.dialogflow.v2beta1.RaiSettings.Builder, + com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder> + raiSettingsBuilder_; + + /** + * + * + *
                                          +       * Optional. Settings for Responsible AI checks.
                                          +       * Supported features:  KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the raiSettings field is set. + */ + public boolean hasRaiSettings() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
                                          +       * Optional. Settings for Responsible AI checks.
                                          +       * Supported features:  KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The raiSettings. + */ + public com.google.cloud.dialogflow.v2beta1.RaiSettings getRaiSettings() { + if (raiSettingsBuilder_ == null) { + return raiSettings_ == null + ? com.google.cloud.dialogflow.v2beta1.RaiSettings.getDefaultInstance() + : raiSettings_; + } else { + return raiSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. Settings for Responsible AI checks.
                                          +       * Supported features:  KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRaiSettings(com.google.cloud.dialogflow.v2beta1.RaiSettings value) { + if (raiSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + raiSettings_ = value; + } else { + raiSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Settings for Responsible AI checks.
                                          +       * Supported features:  KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRaiSettings( + com.google.cloud.dialogflow.v2beta1.RaiSettings.Builder builderForValue) { + if (raiSettingsBuilder_ == null) { + raiSettings_ = builderForValue.build(); + } else { + raiSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Settings for Responsible AI checks.
                                          +       * Supported features:  KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRaiSettings(com.google.cloud.dialogflow.v2beta1.RaiSettings value) { + if (raiSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && raiSettings_ != null + && raiSettings_ + != com.google.cloud.dialogflow.v2beta1.RaiSettings.getDefaultInstance()) { + getRaiSettingsBuilder().mergeFrom(value); + } else { + raiSettings_ = value; + } + } else { + raiSettingsBuilder_.mergeFrom(value); + } + if (raiSettings_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. Settings for Responsible AI checks.
                                          +       * Supported features:  KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRaiSettings() { + bitField0_ = (bitField0_ & ~0x00000080); + raiSettings_ = null; + if (raiSettingsBuilder_ != null) { + raiSettingsBuilder_.dispose(); + raiSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Settings for Responsible AI checks.
                                          +       * Supported features:  KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.RaiSettings.Builder getRaiSettingsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getRaiSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. Settings for Responsible AI checks.
                                          +       * Supported features:  KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder getRaiSettingsOrBuilder() { + if (raiSettingsBuilder_ != null) { + return raiSettingsBuilder_.getMessageOrBuilder(); + } else { + return raiSettings_ == null + ? com.google.cloud.dialogflow.v2beta1.RaiSettings.getDefaultInstance() + : raiSettings_; + } + } + + /** + * + * + *
                                          +       * Optional. Settings for Responsible AI checks.
                                          +       * Supported features:  KNOWLEDGE_ASSIST
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings rai_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.RaiSettings, + com.google.cloud.dialogflow.v2beta1.RaiSettings.Builder, + com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder> + getRaiSettingsFieldBuilder() { + if (raiSettingsBuilder_ == null) { + raiSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.RaiSettings, + com.google.cloud.dialogflow.v2beta1.RaiSettings.Builder, + com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder>( + getRaiSettings(), getParentForChildren(), isClean()); + raiSettings_ = null; + } + return raiSettingsBuilder_; + } + private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig .SuggestionTriggerSettings suggestionTriggerSettings_; @@ -2828,7 +3341,7 @@ public Builder clearEnableQuerySuggestionOnly() { * @return Whether the suggestionTriggerSettings field is set. */ public boolean hasSuggestionTriggerSettings() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2884,7 +3397,7 @@ public Builder setSuggestionTriggerSettings( } else { suggestionTriggerSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2912,7 +3425,7 @@ public Builder setSuggestionTriggerSettings( } else { suggestionTriggerSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2935,7 +3448,7 @@ public Builder mergeSuggestionTriggerSettings( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings value) { if (suggestionTriggerSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000100) != 0) && suggestionTriggerSettings_ != null && suggestionTriggerSettings_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -2948,7 +3461,7 @@ public Builder mergeSuggestionTriggerSettings( suggestionTriggerSettingsBuilder_.mergeFrom(value); } if (suggestionTriggerSettings_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2969,7 +3482,7 @@ public Builder mergeSuggestionTriggerSettings( * */ public Builder clearSuggestionTriggerSettings() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -2996,7 +3509,7 @@ public Builder clearSuggestionTriggerSettings() { public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings .Builder getSuggestionTriggerSettingsBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return getSuggestionTriggerSettingsFieldBuilder().getBuilder(); } @@ -3089,7 +3602,7 @@ public Builder clearSuggestionTriggerSettings() { * @return Whether the queryConfig field is set. */ public boolean hasQueryConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -3139,7 +3652,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3164,7 +3677,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3184,7 +3697,7 @@ public Builder mergeQueryConfig( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig value) { if (queryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000200) != 0) && queryConfig_ != null && queryConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -3197,7 +3710,7 @@ public Builder mergeQueryConfig( queryConfigBuilder_.mergeFrom(value); } if (queryConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -3215,7 +3728,7 @@ public Builder mergeQueryConfig( * */ public Builder clearQueryConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); queryConfig_ = null; if (queryConfigBuilder_ != null) { queryConfigBuilder_.dispose(); @@ -3239,7 +3752,7 @@ public Builder clearQueryConfig() { public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig .Builder getQueryConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return getQueryConfigFieldBuilder().getBuilder(); } @@ -3325,7 +3838,7 @@ public Builder clearQueryConfig() { * @return Whether the conversationModelConfig field is set. */ public boolean hasConversationModelConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -3375,7 +3888,7 @@ public Builder setConversationModelConfig( } else { conversationModelConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3400,7 +3913,7 @@ public Builder setConversationModelConfig( } else { conversationModelConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3420,7 +3933,7 @@ public Builder mergeConversationModelConfig( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig value) { if (conversationModelConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && conversationModelConfig_ != null && conversationModelConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -3433,7 +3946,7 @@ public Builder mergeConversationModelConfig( conversationModelConfigBuilder_.mergeFrom(value); } if (conversationModelConfig_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3451,7 +3964,7 @@ public Builder mergeConversationModelConfig( * */ public Builder clearConversationModelConfig() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); conversationModelConfig_ = null; if (conversationModelConfigBuilder_ != null) { conversationModelConfigBuilder_.dispose(); @@ -3475,7 +3988,7 @@ public Builder clearConversationModelConfig() { public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig .Builder getConversationModelConfigBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return getConversationModelConfigFieldBuilder().getBuilder(); } @@ -3563,7 +4076,7 @@ public Builder clearConversationModelConfig() { * @return Whether the conversationProcessConfig field is set. */ public boolean hasConversationProcessConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3613,7 +4126,7 @@ public Builder setConversationProcessConfig( } else { conversationProcessConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3638,7 +4151,7 @@ public Builder setConversationProcessConfig( } else { conversationProcessConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3658,7 +4171,7 @@ public Builder mergeConversationProcessConfig( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig value) { if (conversationProcessConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && conversationProcessConfig_ != null && conversationProcessConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -3671,7 +4184,7 @@ public Builder mergeConversationProcessConfig( conversationProcessConfigBuilder_.mergeFrom(value); } if (conversationProcessConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3689,7 +4202,7 @@ public Builder mergeConversationProcessConfig( * */ public Builder clearConversationProcessConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); conversationProcessConfig_ = null; if (conversationProcessConfigBuilder_ != null) { conversationProcessConfigBuilder_.dispose(); @@ -3713,7 +4226,7 @@ public Builder clearConversationProcessConfig() { public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig .Builder getConversationProcessConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return getConversationProcessConfigFieldBuilder().getBuilder(); } @@ -4038,6 +4551,55 @@ public interface SuggestionConfigOrBuilder * @return The disableHighLatencyFeaturesSyncDelivery. */ boolean getDisableHighLatencyFeaturesSyncDelivery(); + + /** + * + * + *
                                          +     * Optional. Enable skipping event based suggestion if the suggestion is
                                          +     * empty.
                                          +     *
                                          +     * For example, with this field disabled, Knowledge Assist feature sends
                                          +     * a Pub/Sub message when there are no suggestions. Enabling this field
                                          +     * will change the behavior to skip the Pub/Sub message in this situation.
                                          +     * 
                                          + * + * bool skip_empty_event_based_suggestion = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The skipEmptyEventBasedSuggestion. + */ + boolean getSkipEmptyEventBasedSuggestion(); + + /** + * + * + *
                                          +     * Optional. If true,
                                          +     * use unredacted transcript data (Supported features: AI_COACH) and
                                          +     * use unredacted ingested context (Supported features: All Agent Assist
                                          +     * features)
                                          +     * 
                                          + * + * bool use_unredacted_conversation_data = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The useUnredactedConversationData. + */ + boolean getUseUnredactedConversationData(); + + /** + * + * + *
                                          +     * Optional. If true, enable asynchronous execution of tools.
                                          +     * 
                                          + * + * bool enable_async_tool_call = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAsyncToolCall. + */ + boolean getEnableAsyncToolCall(); } /** @@ -4324,6 +4886,73 @@ public boolean getDisableHighLatencyFeaturesSyncDelivery() { return disableHighLatencyFeaturesSyncDelivery_; } + public static final int SKIP_EMPTY_EVENT_BASED_SUGGESTION_FIELD_NUMBER = 6; + private boolean skipEmptyEventBasedSuggestion_ = false; + + /** + * + * + *
                                          +     * Optional. Enable skipping event based suggestion if the suggestion is
                                          +     * empty.
                                          +     *
                                          +     * For example, with this field disabled, Knowledge Assist feature sends
                                          +     * a Pub/Sub message when there are no suggestions. Enabling this field
                                          +     * will change the behavior to skip the Pub/Sub message in this situation.
                                          +     * 
                                          + * + * bool skip_empty_event_based_suggestion = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The skipEmptyEventBasedSuggestion. + */ + @java.lang.Override + public boolean getSkipEmptyEventBasedSuggestion() { + return skipEmptyEventBasedSuggestion_; + } + + public static final int USE_UNREDACTED_CONVERSATION_DATA_FIELD_NUMBER = 8; + private boolean useUnredactedConversationData_ = false; + + /** + * + * + *
                                          +     * Optional. If true,
                                          +     * use unredacted transcript data (Supported features: AI_COACH) and
                                          +     * use unredacted ingested context (Supported features: All Agent Assist
                                          +     * features)
                                          +     * 
                                          + * + * bool use_unredacted_conversation_data = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The useUnredactedConversationData. + */ + @java.lang.Override + public boolean getUseUnredactedConversationData() { + return useUnredactedConversationData_; + } + + public static final int ENABLE_ASYNC_TOOL_CALL_FIELD_NUMBER = 9; + private boolean enableAsyncToolCall_ = false; + + /** + * + * + *
                                          +     * Optional. If true, enable asynchronous execution of tools.
                                          +     * 
                                          + * + * bool enable_async_tool_call = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAsyncToolCall. + */ + @java.lang.Override + public boolean getEnableAsyncToolCall() { + return enableAsyncToolCall_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4350,6 +4979,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disableHighLatencyFeaturesSyncDelivery_ != false) { output.writeBool(5, disableHighLatencyFeaturesSyncDelivery_); } + if (skipEmptyEventBasedSuggestion_ != false) { + output.writeBool(6, skipEmptyEventBasedSuggestion_); + } + if (useUnredactedConversationData_ != false) { + output.writeBool(8, useUnredactedConversationData_); + } + if (enableAsyncToolCall_ != false) { + output.writeBool(9, enableAsyncToolCall_); + } getUnknownFields().writeTo(output); } @@ -4378,6 +5016,19 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeBoolSize( 5, disableHighLatencyFeaturesSyncDelivery_); } + if (skipEmptyEventBasedSuggestion_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 6, skipEmptyEventBasedSuggestion_); + } + if (useUnredactedConversationData_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 8, useUnredactedConversationData_); + } + if (enableAsyncToolCall_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, enableAsyncToolCall_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4401,6 +5052,11 @@ public boolean equals(final java.lang.Object obj) { if (!getGeneratorsList().equals(other.getGeneratorsList())) return false; if (getDisableHighLatencyFeaturesSyncDelivery() != other.getDisableHighLatencyFeaturesSyncDelivery()) return false; + if (getSkipEmptyEventBasedSuggestion() != other.getSkipEmptyEventBasedSuggestion()) + return false; + if (getUseUnredactedConversationData() != other.getUseUnredactedConversationData()) + return false; + if (getEnableAsyncToolCall() != other.getEnableAsyncToolCall()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4427,6 +5083,16 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisableHighLatencyFeaturesSyncDelivery()); + hash = (37 * hash) + SKIP_EMPTY_EVENT_BASED_SUGGESTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSkipEmptyEventBasedSuggestion()); + hash = (37 * hash) + USE_UNREDACTED_CONVERSATION_DATA_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getUseUnredactedConversationData()); + hash = (37 * hash) + ENABLE_ASYNC_TOOL_CALL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAsyncToolCall()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4590,6 +5256,9 @@ public Builder clear() { groupSuggestionResponses_ = false; generators_ = com.google.protobuf.LazyStringArrayList.emptyList(); disableHighLatencyFeaturesSyncDelivery_ = false; + skipEmptyEventBasedSuggestion_ = false; + useUnredactedConversationData_ = false; + enableAsyncToolCall_ = false; return this; } @@ -4657,6 +5326,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.disableHighLatencyFeaturesSyncDelivery_ = disableHighLatencyFeaturesSyncDelivery_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.skipEmptyEventBasedSuggestion_ = skipEmptyEventBasedSuggestion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.useUnredactedConversationData_ = useUnredactedConversationData_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.enableAsyncToolCall_ = enableAsyncToolCall_; + } } @java.lang.Override @@ -4757,6 +5435,15 @@ public Builder mergeFrom( setDisableHighLatencyFeaturesSyncDelivery( other.getDisableHighLatencyFeaturesSyncDelivery()); } + if (other.getSkipEmptyEventBasedSuggestion() != false) { + setSkipEmptyEventBasedSuggestion(other.getSkipEmptyEventBasedSuggestion()); + } + if (other.getUseUnredactedConversationData() != false) { + setUseUnredactedConversationData(other.getUseUnredactedConversationData()); + } + if (other.getEnableAsyncToolCall() != false) { + setEnableAsyncToolCall(other.getEnableAsyncToolCall()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4819,6 +5506,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 40 + case 48: + { + skipEmptyEventBasedSuggestion_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 64: + { + useUnredactedConversationData_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 64 + case 72: + { + enableAsyncToolCall_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5687,6 +6392,204 @@ public Builder clearDisableHighLatencyFeaturesSyncDelivery() { return this; } + private boolean skipEmptyEventBasedSuggestion_; + + /** + * + * + *
                                          +       * Optional. Enable skipping event based suggestion if the suggestion is
                                          +       * empty.
                                          +       *
                                          +       * For example, with this field disabled, Knowledge Assist feature sends
                                          +       * a Pub/Sub message when there are no suggestions. Enabling this field
                                          +       * will change the behavior to skip the Pub/Sub message in this situation.
                                          +       * 
                                          + * + * bool skip_empty_event_based_suggestion = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The skipEmptyEventBasedSuggestion. + */ + @java.lang.Override + public boolean getSkipEmptyEventBasedSuggestion() { + return skipEmptyEventBasedSuggestion_; + } + + /** + * + * + *
                                          +       * Optional. Enable skipping event based suggestion if the suggestion is
                                          +       * empty.
                                          +       *
                                          +       * For example, with this field disabled, Knowledge Assist feature sends
                                          +       * a Pub/Sub message when there are no suggestions. Enabling this field
                                          +       * will change the behavior to skip the Pub/Sub message in this situation.
                                          +       * 
                                          + * + * bool skip_empty_event_based_suggestion = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The skipEmptyEventBasedSuggestion to set. + * @return This builder for chaining. + */ + public Builder setSkipEmptyEventBasedSuggestion(boolean value) { + + skipEmptyEventBasedSuggestion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Enable skipping event based suggestion if the suggestion is
                                          +       * empty.
                                          +       *
                                          +       * For example, with this field disabled, Knowledge Assist feature sends
                                          +       * a Pub/Sub message when there are no suggestions. Enabling this field
                                          +       * will change the behavior to skip the Pub/Sub message in this situation.
                                          +       * 
                                          + * + * bool skip_empty_event_based_suggestion = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSkipEmptyEventBasedSuggestion() { + bitField0_ = (bitField0_ & ~0x00000010); + skipEmptyEventBasedSuggestion_ = false; + onChanged(); + return this; + } + + private boolean useUnredactedConversationData_; + + /** + * + * + *
                                          +       * Optional. If true,
                                          +       * use unredacted transcript data (Supported features: AI_COACH) and
                                          +       * use unredacted ingested context (Supported features: All Agent Assist
                                          +       * features)
                                          +       * 
                                          + * + * bool use_unredacted_conversation_data = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The useUnredactedConversationData. + */ + @java.lang.Override + public boolean getUseUnredactedConversationData() { + return useUnredactedConversationData_; + } + + /** + * + * + *
                                          +       * Optional. If true,
                                          +       * use unredacted transcript data (Supported features: AI_COACH) and
                                          +       * use unredacted ingested context (Supported features: All Agent Assist
                                          +       * features)
                                          +       * 
                                          + * + * bool use_unredacted_conversation_data = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The useUnredactedConversationData to set. + * @return This builder for chaining. + */ + public Builder setUseUnredactedConversationData(boolean value) { + + useUnredactedConversationData_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. If true,
                                          +       * use unredacted transcript data (Supported features: AI_COACH) and
                                          +       * use unredacted ingested context (Supported features: All Agent Assist
                                          +       * features)
                                          +       * 
                                          + * + * bool use_unredacted_conversation_data = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearUseUnredactedConversationData() { + bitField0_ = (bitField0_ & ~0x00000020); + useUnredactedConversationData_ = false; + onChanged(); + return this; + } + + private boolean enableAsyncToolCall_; + + /** + * + * + *
                                          +       * Optional. If true, enable asynchronous execution of tools.
                                          +       * 
                                          + * + * bool enable_async_tool_call = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAsyncToolCall. + */ + @java.lang.Override + public boolean getEnableAsyncToolCall() { + return enableAsyncToolCall_; + } + + /** + * + * + *
                                          +       * Optional. If true, enable asynchronous execution of tools.
                                          +       * 
                                          + * + * bool enable_async_tool_call = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableAsyncToolCall to set. + * @return This builder for chaining. + */ + public Builder setEnableAsyncToolCall(boolean value) { + + enableAsyncToolCall_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. If true, enable asynchronous execution of tools.
                                          +       * 
                                          + * + * bool enable_async_tool_call = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableAsyncToolCall() { + bitField0_ = (bitField0_ & ~0x00000040); + enableAsyncToolCall_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15077,11 +15980,12 @@ public interface ConversationModelConfigOrBuilder * Version of current baseline model. It will be ignored if * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] * is set. Valid versions are: - * Article Suggestion baseline model: - * - 0.9 - * - 1.0 (default) - * Summarization baseline model: - * - 1.0 + * + * - Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * - Summarization baseline model: + * - 1.0 * * * string baseline_model_version = 8; @@ -15097,11 +16001,12 @@ public interface ConversationModelConfigOrBuilder * Version of current baseline model. It will be ignored if * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] * is set. Valid versions are: - * Article Suggestion baseline model: - * - 0.9 - * - 1.0 (default) - * Summarization baseline model: - * - 1.0 + * + * - Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * - Summarization baseline model: + * - 1.0 * * * string baseline_model_version = 8; @@ -15230,11 +16135,12 @@ public com.google.protobuf.ByteString getModelBytes() { * Version of current baseline model. It will be ignored if * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] * is set. Valid versions are: - * Article Suggestion baseline model: - * - 0.9 - * - 1.0 (default) - * Summarization baseline model: - * - 1.0 + * + * - Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * - Summarization baseline model: + * - 1.0 * * * string baseline_model_version = 8; @@ -15261,11 +16167,12 @@ public java.lang.String getBaselineModelVersion() { * Version of current baseline model. It will be ignored if * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] * is set. Valid versions are: - * Article Suggestion baseline model: - * - 0.9 - * - 1.0 (default) - * Summarization baseline model: - * - 1.0 + * + * - Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * - Summarization baseline model: + * - 1.0 * * * string baseline_model_version = 8; @@ -15829,11 +16736,12 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * Version of current baseline model. It will be ignored if * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] * is set. Valid versions are: - * Article Suggestion baseline model: - * - 0.9 - * - 1.0 (default) - * Summarization baseline model: - * - 1.0 + * + * - Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * - Summarization baseline model: + * - 1.0 * * * string baseline_model_version = 8; @@ -15859,11 +16767,12 @@ public java.lang.String getBaselineModelVersion() { * Version of current baseline model. It will be ignored if * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] * is set. Valid versions are: - * Article Suggestion baseline model: - * - 0.9 - * - 1.0 (default) - * Summarization baseline model: - * - 1.0 + * + * - Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * - Summarization baseline model: + * - 1.0 * * * string baseline_model_version = 8; @@ -15889,11 +16798,12 @@ public com.google.protobuf.ByteString getBaselineModelVersionBytes() { * Version of current baseline model. It will be ignored if * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] * is set. Valid versions are: - * Article Suggestion baseline model: - * - 0.9 - * - 1.0 (default) - * Summarization baseline model: - * - 1.0 + * + * - Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * - Summarization baseline model: + * - 1.0 * * * string baseline_model_version = 8; @@ -15918,11 +16828,12 @@ public Builder setBaselineModelVersion(java.lang.String value) { * Version of current baseline model. It will be ignored if * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] * is set. Valid versions are: - * Article Suggestion baseline model: - * - 0.9 - * - 1.0 (default) - * Summarization baseline model: - * - 1.0 + * + * - Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * - Summarization baseline model: + * - 1.0 * * * string baseline_model_version = 8; @@ -15943,11 +16854,12 @@ public Builder clearBaselineModelVersion() { * Version of current baseline model. It will be ignored if * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] * is set. Valid versions are: - * Article Suggestion baseline model: - * - 0.9 - * - 1.0 (default) - * Summarization baseline model: - * - 1.0 + * + * - Article Suggestion baseline model: + * - 0.9 + * - 1.0 (default) + * - Summarization baseline model: + * - 1.0 * * * string baseline_model_version = 8; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java index 58d350ce7d96..72f745bb882d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java @@ -148,6 +148,8 @@ public int getSampleRateHertz() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not set, the language is inferred from the + * [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. * * * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -176,6 +178,8 @@ public java.lang.String getLanguageCode() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not set, the language is inferred from the + * [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. * * * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -244,7 +248,7 @@ public boolean getEnableWordInfo() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @return A list containing the phraseHints. */ @java.lang.Deprecated @@ -271,7 +275,7 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @return The count of phraseHints. */ @java.lang.Deprecated @@ -298,7 +302,7 @@ public int getPhraseHintsCount() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param index The index of the element to return. * @return The phraseHints at the given index. */ @@ -326,7 +330,7 @@ public java.lang.String getPhraseHints(int index) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ @@ -1774,6 +1778,8 @@ public Builder clearSampleRateHertz() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not set, the language is inferred from the + * [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. * * * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1801,6 +1807,8 @@ public java.lang.String getLanguageCode() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not set, the language is inferred from the + * [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. * * * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1828,6 +1836,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not set, the language is inferred from the + * [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. * * * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1854,6 +1864,8 @@ public Builder setLanguageCode(java.lang.String value) { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not set, the language is inferred from the + * [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. * * * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1876,6 +1888,8 @@ public Builder clearLanguageCode() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not set, the language is inferred from the + * [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. * * * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1994,7 +2008,7 @@ private void ensurePhraseHintsIsMutable() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @return A list containing the phraseHints. */ @java.lang.Deprecated @@ -2022,7 +2036,7 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @return The count of phraseHints. */ @java.lang.Deprecated @@ -2049,7 +2063,7 @@ public int getPhraseHintsCount() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param index The index of the element to return. * @return The phraseHints at the given index. */ @@ -2077,7 +2091,7 @@ public java.lang.String getPhraseHints(int index) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ @@ -2105,7 +2119,7 @@ public com.google.protobuf.ByteString getPhraseHintsBytes(int index) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param index The index to set the value at. * @param value The phraseHints to set. * @return This builder for chaining. @@ -2141,7 +2155,7 @@ public Builder setPhraseHints(int index, java.lang.String value) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param value The phraseHints to add. * @return This builder for chaining. */ @@ -2176,7 +2190,7 @@ public Builder addPhraseHints(java.lang.String value) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param values The phraseHints to add. * @return This builder for chaining. */ @@ -2208,7 +2222,7 @@ public Builder addAllPhraseHints(java.lang.Iterable values) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2239,7 +2253,7 @@ public Builder clearPhraseHints() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param value The bytes of the phraseHints to add. * @return This builder for chaining. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java index a24d96c8b6ab..5604f2544d54 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java @@ -79,6 +79,8 @@ public interface InputAudioConfigOrBuilder * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not set, the language is inferred from the + * [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. * * * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -96,6 +98,8 @@ public interface InputAudioConfigOrBuilder * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not set, the language is inferred from the + * [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. * * * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -141,7 +145,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @return A list containing the phraseHints. */ @java.lang.Deprecated @@ -166,7 +170,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @return The count of phraseHints. */ @java.lang.Deprecated @@ -191,7 +195,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param index The index of the element to return. * @return The phraseHints at the given index. */ @@ -217,7 +221,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=173 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=175 * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java index b4cd60e86b13..4eb51b08a489 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java @@ -249,6 +249,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State) } + private int bitField0_; private int operationMetadataCase_ = 0; @SuppressWarnings("serial") @@ -450,6 +451,55 @@ public com.google.cloud.dialogflow.v2beta1.ExportOperationMetadata getExportOper return com.google.cloud.dialogflow.v2beta1.ExportOperationMetadata.getDefaultInstance(); } + public static final int DONE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp doneTime_; + + /** + * + * + *
                                          +   * The time when the operation finished.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + * + * @return Whether the doneTime field is set. + */ + @java.lang.Override + public boolean hasDoneTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * The time when the operation finished.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + * + * @return The doneTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDoneTime() { + return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; + } + + /** + * + * + *
                                          +   * The time when the operation finished.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { + return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -476,6 +526,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 4, (com.google.cloud.dialogflow.v2beta1.ExportOperationMetadata) operationMetadata_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getDoneTime()); + } getUnknownFields().writeTo(output); } @@ -498,6 +551,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.dialogflow.v2beta1.ExportOperationMetadata) operationMetadata_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDoneTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -516,6 +572,10 @@ public boolean equals(final java.lang.Object obj) { if (state_ != other.state_) return false; if (!getKnowledgeBase().equals(other.getKnowledgeBase())) return false; + if (hasDoneTime() != other.hasDoneTime()) return false; + if (hasDoneTime()) { + if (!getDoneTime().equals(other.getDoneTime())) return false; + } if (!getOperationMetadataCase().equals(other.getOperationMetadataCase())) return false; switch (operationMetadataCase_) { case 4: @@ -539,6 +599,10 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + KNOWLEDGE_BASE_FIELD_NUMBER; hash = (53 * hash) + getKnowledgeBase().hashCode(); + if (hasDoneTime()) { + hash = (37 * hash) + DONE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDoneTime().hashCode(); + } switch (operationMetadataCase_) { case 4: hash = (37 * hash) + EXPORT_OPERATION_METADATA_FIELD_NUMBER; @@ -678,10 +742,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDoneTimeFieldBuilder(); + } } @java.lang.Override @@ -693,6 +766,11 @@ public Builder clear() { if (exportOperationMetadataBuilder_ != null) { exportOperationMetadataBuilder_.clear(); } + doneTime_ = null; + if (doneTimeBuilder_ != null) { + doneTimeBuilder_.dispose(); + doneTimeBuilder_ = null; + } operationMetadataCase_ = 0; operationMetadata_ = null; return this; @@ -740,6 +818,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.knowledgeBase_ = knowledgeBase_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.doneTime_ = doneTimeBuilder_ == null ? doneTime_ : doneTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( @@ -806,6 +890,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeOperationM bitField0_ |= 0x00000002; onChanged(); } + if (other.hasDoneTime()) { + mergeDoneTime(other.getDoneTime()); + } switch (other.getOperationMetadataCase()) { case EXPORT_OPERATION_METADATA: { @@ -862,6 +949,12 @@ public Builder mergeFrom( operationMetadataCase_ = 4; break; } // case 34 + case 42: + { + input.readMessage(getDoneTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1350,6 +1443,196 @@ public Builder clearExportOperationMetadata() { return exportOperationMetadataBuilder_; } + private com.google.protobuf.Timestamp doneTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + doneTimeBuilder_; + + /** + * + * + *
                                          +     * The time when the operation finished.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + * + * @return Whether the doneTime field is set. + */ + public boolean hasDoneTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +     * The time when the operation finished.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + * + * @return The doneTime. + */ + public com.google.protobuf.Timestamp getDoneTime() { + if (doneTimeBuilder_ == null) { + return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; + } else { + return doneTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * The time when the operation finished.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + */ + public Builder setDoneTime(com.google.protobuf.Timestamp value) { + if (doneTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + doneTime_ = value; + } else { + doneTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The time when the operation finished.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + */ + public Builder setDoneTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (doneTimeBuilder_ == null) { + doneTime_ = builderForValue.build(); + } else { + doneTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The time when the operation finished.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + */ + public Builder mergeDoneTime(com.google.protobuf.Timestamp value) { + if (doneTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && doneTime_ != null + && doneTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDoneTimeBuilder().mergeFrom(value); + } else { + doneTime_ = value; + } + } else { + doneTimeBuilder_.mergeFrom(value); + } + if (doneTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * The time when the operation finished.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + */ + public Builder clearDoneTime() { + bitField0_ = (bitField0_ & ~0x00000008); + doneTime_ = null; + if (doneTimeBuilder_ != null) { + doneTimeBuilder_.dispose(); + doneTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The time when the operation finished.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getDoneTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDoneTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * The time when the operation finished.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { + if (doneTimeBuilder_ != null) { + return doneTimeBuilder_.getMessageOrBuilder(); + } else { + return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; + } + } + + /** + * + * + *
                                          +     * The time when the operation finished.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDoneTimeFieldBuilder() { + if (doneTimeBuilder_ == null) { + doneTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDoneTime(), getParentForChildren(), isClean()); + doneTime_ = null; + } + return doneTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java index b1bb820c52a1..1bb224e45883 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java @@ -121,6 +121,43 @@ public interface KnowledgeOperationMetadataOrBuilder com.google.cloud.dialogflow.v2beta1.ExportOperationMetadataOrBuilder getExportOperationMetadataOrBuilder(); + /** + * + * + *
                                          +   * The time when the operation finished.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + * + * @return Whether the doneTime field is set. + */ + boolean hasDoneTime(); + + /** + * + * + *
                                          +   * The time when the operation finished.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + * + * @return The doneTime. + */ + com.google.protobuf.Timestamp getDoneTime(); + + /** + * + * + *
                                          +   * The time when the operation finished.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp done_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder(); + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.OperationMetadataCase getOperationMetadataCase(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsRequest.java new file mode 100644 index 000000000000..93c6d1526f1d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsRequest.java @@ -0,0 +1,972 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Request of ListGeneratorEvaluations.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest} + */ +public final class ListGeneratorEvaluationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest) + ListGeneratorEvaluationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListGeneratorEvaluationsRequest.newBuilder() to construct. + private ListGeneratorEvaluationsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGeneratorEvaluationsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGeneratorEvaluationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest.class, + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                          +   * Required. The generator resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +   * Wildcard value `-` is supported on generator_id to list evaluations across
                                          +   * all generators under same project.
                                          +   * 
                                          + * + * + * 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 generator resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +   * Wildcard value `-` is supported on generator_id to list evaluations across
                                          +   * all generators under same project.
                                          +   * 
                                          + * + * + * 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 evaluations to return in a
                                          +   * single page. By default 100 and at most 1000.
                                          +   * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +   * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +   * 
                                          + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.dialogflow.v2beta1.ListGeneratorEvaluationsRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest other = + (com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest 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.dialogflow.v2beta1.ListGeneratorEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest 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.dialogflow.v2beta1.ListGeneratorEvaluationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request of ListGeneratorEvaluations.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest) + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest.class, + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest build() { + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest result = + new com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest other) { + if (other + == com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest + .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(); + } + 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 + 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 generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * Wildcard value `-` is supported on generator_id to list evaluations across
                                          +     * all generators under same project.
                                          +     * 
                                          + * + * + * 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 generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * Wildcard value `-` is supported on generator_id to list evaluations across
                                          +     * all generators under same project.
                                          +     * 
                                          + * + * + * 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 generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * Wildcard value `-` is supported on generator_id to list evaluations across
                                          +     * all generators under same project.
                                          +     * 
                                          + * + * + * 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 generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * Wildcard value `-` is supported on generator_id to list evaluations across
                                          +     * all generators under same project.
                                          +     * 
                                          + * + * + * 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 generator resource name. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +     * Wildcard value `-` is supported on generator_id to list evaluations across
                                          +     * all generators under same project.
                                          +     * 
                                          + * + * + * 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 evaluations to return in a
                                          +     * single page. By default 100 and at most 1000.
                                          +     * 
                                          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                          +     * Optional. Maximum number of evaluations to return in a
                                          +     * single page. By default 100 and at most 1000.
                                          +     * 
                                          + * + * 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 evaluations to return in a
                                          +     * single page. By default 100 and at most 1000.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest) + private static final com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGeneratorEvaluationsRequest 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.dialogflow.v2beta1.ListGeneratorEvaluationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsRequestOrBuilder.java new file mode 100644 index 000000000000..1aa0b70ca65a --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface ListGeneratorEvaluationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The generator resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +   * Wildcard value `-` is supported on generator_id to list evaluations across
                                          +   * all generators under same project.
                                          +   * 
                                          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                          +   * Required. The generator resource name. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
                                          +   * Wildcard value `-` is supported on generator_id to list evaluations across
                                          +   * all generators under same project.
                                          +   * 
                                          + * + * + * 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 evaluations to return in a
                                          +   * single page. By default 100 and at most 1000.
                                          +   * 
                                          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                          +   * Optional. The next_page_token value returned from a previous list request.
                                          +   * 
                                          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                          +   * Optional. The next_page_token value returned from a previous list request.
                                          +   * 
                                          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsResponse.java new file mode 100644 index 000000000000..8a18272c3c5c --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsResponse.java @@ -0,0 +1,1236 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Response of ListGeneratorEvaluations.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse} + */ +public final class ListGeneratorEvaluationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse) + ListGeneratorEvaluationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListGeneratorEvaluationsResponse.newBuilder() to construct. + private ListGeneratorEvaluationsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGeneratorEvaluationsResponse() { + generatorEvaluations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGeneratorEvaluationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse.class, + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse.Builder.class); + } + + public static final int GENERATOR_EVALUATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + generatorEvaluations_; + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + @java.lang.Override + public java.util.List + getGeneratorEvaluationsList() { + return generatorEvaluations_; + } + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + @java.lang.Override + public java.util.List + getGeneratorEvaluationsOrBuilderList() { + return generatorEvaluations_; + } + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + @java.lang.Override + public int getGeneratorEvaluationsCount() { + return generatorEvaluations_.size(); + } + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getGeneratorEvaluations( + int index) { + return generatorEvaluations_.get(index); + } + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder + getGeneratorEvaluationsOrBuilder(int index) { + return generatorEvaluations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                          +   * Token to retrieve the next page of results, or empty if there are no more
                                          +   * results in the list.
                                          +   * 
                                          + * + * 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; + } + } + + /** + * + * + *
                                          +   * Token to retrieve the next page of results, or empty if there are no more
                                          +   * results in the list.
                                          +   * 
                                          + * + * 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; + } + } + + 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 < generatorEvaluations_.size(); i++) { + output.writeMessage(1, generatorEvaluations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < generatorEvaluations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, generatorEvaluations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.dialogflow.v2beta1.ListGeneratorEvaluationsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse other = + (com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse) obj; + + if (!getGeneratorEvaluationsList().equals(other.getGeneratorEvaluationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getGeneratorEvaluationsCount() > 0) { + hash = (37 * hash) + GENERATOR_EVALUATIONS_FIELD_NUMBER; + hash = (53 * hash) + getGeneratorEvaluationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse 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.dialogflow.v2beta1.ListGeneratorEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse 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.dialogflow.v2beta1.ListGeneratorEvaluationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Response of ListGeneratorEvaluations.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse) + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse.class, + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (generatorEvaluationsBuilder_ == null) { + generatorEvaluations_ = java.util.Collections.emptyList(); + } else { + generatorEvaluations_ = null; + generatorEvaluationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_ListGeneratorEvaluationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse build() { + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse buildPartial() { + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse result = + new com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse result) { + if (generatorEvaluationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + generatorEvaluations_ = java.util.Collections.unmodifiableList(generatorEvaluations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.generatorEvaluations_ = generatorEvaluations_; + } else { + result.generatorEvaluations_ = generatorEvaluationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse other) { + if (other + == com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + .getDefaultInstance()) return this; + if (generatorEvaluationsBuilder_ == null) { + if (!other.generatorEvaluations_.isEmpty()) { + if (generatorEvaluations_.isEmpty()) { + generatorEvaluations_ = other.generatorEvaluations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGeneratorEvaluationsIsMutable(); + generatorEvaluations_.addAll(other.generatorEvaluations_); + } + onChanged(); + } + } else { + if (!other.generatorEvaluations_.isEmpty()) { + if (generatorEvaluationsBuilder_.isEmpty()) { + generatorEvaluationsBuilder_.dispose(); + generatorEvaluationsBuilder_ = null; + generatorEvaluations_ = other.generatorEvaluations_; + bitField0_ = (bitField0_ & ~0x00000001); + generatorEvaluationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGeneratorEvaluationsFieldBuilder() + : null; + } else { + generatorEvaluationsBuilder_.addAllMessages(other.generatorEvaluations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.parser(), + extensionRegistry); + if (generatorEvaluationsBuilder_ == null) { + ensureGeneratorEvaluationsIsMutable(); + generatorEvaluations_.add(m); + } else { + generatorEvaluationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + generatorEvaluations_ = java.util.Collections.emptyList(); + + private void ensureGeneratorEvaluationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + generatorEvaluations_ = + new java.util.ArrayList( + generatorEvaluations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder> + generatorEvaluationsBuilder_; + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public java.util.List + getGeneratorEvaluationsList() { + if (generatorEvaluationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(generatorEvaluations_); + } else { + return generatorEvaluationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public int getGeneratorEvaluationsCount() { + if (generatorEvaluationsBuilder_ == null) { + return generatorEvaluations_.size(); + } else { + return generatorEvaluationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getGeneratorEvaluations( + int index) { + if (generatorEvaluationsBuilder_ == null) { + return generatorEvaluations_.get(index); + } else { + return generatorEvaluationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public Builder setGeneratorEvaluations( + int index, com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation value) { + if (generatorEvaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratorEvaluationsIsMutable(); + generatorEvaluations_.set(index, value); + onChanged(); + } else { + generatorEvaluationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public Builder setGeneratorEvaluations( + int index, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder builderForValue) { + if (generatorEvaluationsBuilder_ == null) { + ensureGeneratorEvaluationsIsMutable(); + generatorEvaluations_.set(index, builderForValue.build()); + onChanged(); + } else { + generatorEvaluationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public Builder addGeneratorEvaluations( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation value) { + if (generatorEvaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratorEvaluationsIsMutable(); + generatorEvaluations_.add(value); + onChanged(); + } else { + generatorEvaluationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public Builder addGeneratorEvaluations( + int index, com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation value) { + if (generatorEvaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratorEvaluationsIsMutable(); + generatorEvaluations_.add(index, value); + onChanged(); + } else { + generatorEvaluationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public Builder addGeneratorEvaluations( + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder builderForValue) { + if (generatorEvaluationsBuilder_ == null) { + ensureGeneratorEvaluationsIsMutable(); + generatorEvaluations_.add(builderForValue.build()); + onChanged(); + } else { + generatorEvaluationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public Builder addGeneratorEvaluations( + int index, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder builderForValue) { + if (generatorEvaluationsBuilder_ == null) { + ensureGeneratorEvaluationsIsMutable(); + generatorEvaluations_.add(index, builderForValue.build()); + onChanged(); + } else { + generatorEvaluationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public Builder addAllGeneratorEvaluations( + java.lang.Iterable + values) { + if (generatorEvaluationsBuilder_ == null) { + ensureGeneratorEvaluationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, generatorEvaluations_); + onChanged(); + } else { + generatorEvaluationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public Builder clearGeneratorEvaluations() { + if (generatorEvaluationsBuilder_ == null) { + generatorEvaluations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + generatorEvaluationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public Builder removeGeneratorEvaluations(int index) { + if (generatorEvaluationsBuilder_ == null) { + ensureGeneratorEvaluationsIsMutable(); + generatorEvaluations_.remove(index); + onChanged(); + } else { + generatorEvaluationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder + getGeneratorEvaluationsBuilder(int index) { + return getGeneratorEvaluationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder + getGeneratorEvaluationsOrBuilder(int index) { + if (generatorEvaluationsBuilder_ == null) { + return generatorEvaluations_.get(index); + } else { + return generatorEvaluationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder> + getGeneratorEvaluationsOrBuilderList() { + if (generatorEvaluationsBuilder_ != null) { + return generatorEvaluationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(generatorEvaluations_); + } + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder + addGeneratorEvaluationsBuilder() { + return getGeneratorEvaluationsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder + addGeneratorEvaluationsBuilder(int index) { + return getGeneratorEvaluationsFieldBuilder() + .addBuilder( + index, com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * The list of evaluations to return.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + public java.util.List + getGeneratorEvaluationsBuilderList() { + return getGeneratorEvaluationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder> + getGeneratorEvaluationsFieldBuilder() { + if (generatorEvaluationsBuilder_ == null) { + generatorEvaluationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation.Builder, + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder>( + generatorEvaluations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + generatorEvaluations_ = null; + } + return generatorEvaluationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * 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; + } + } + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * 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; + } + } + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * 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; + } + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse) + private static final com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse(); + } + + public static com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGeneratorEvaluationsResponse 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.dialogflow.v2beta1.ListGeneratorEvaluationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsResponseOrBuilder.java new file mode 100644 index 000000000000..b4f5eb34db0f --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListGeneratorEvaluationsResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface ListGeneratorEvaluationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + java.util.List + getGeneratorEvaluationsList(); + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation getGeneratorEvaluations(int index); + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + int getGeneratorEvaluationsCount(); + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + java.util.List + getGeneratorEvaluationsOrBuilderList(); + + /** + * + * + *
                                          +   * The list of evaluations to return.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.GeneratorEvaluation generator_evaluations = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOrBuilder getGeneratorEvaluationsOrBuilder( + int index); + + /** + * + * + *
                                          +   * Token to retrieve the next page of results, or empty if there are no more
                                          +   * results in the list.
                                          +   * 
                                          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                          +   * Token to retrieve the next page of results, or empty if there are no more
                                          +   * results in the list.
                                          +   * 
                                          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsRequest.java new file mode 100644 index 000000000000..88563f427318 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsRequest.java @@ -0,0 +1,945 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Request message of ListTools.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListToolsRequest} + */ +public final class ListToolsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ListToolsRequest) + ListToolsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListToolsRequest.newBuilder() to construct. + private ListToolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListToolsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListToolsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListToolsRequest.class, + com.google.cloud.dialogflow.v2beta1.ListToolsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                          +   * Required. The project/location to list tools for. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>`
                                          +   * 
                                          + * + * + * 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/location to list tools for. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>`
                                          +   * 
                                          + * + * + * 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 conversation models to return in a single page.
                                          +   * Default to 10.
                                          +   * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +   * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +   * 
                                          + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.dialogflow.v2beta1.ListToolsRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ListToolsRequest other = + (com.google.cloud.dialogflow.v2beta1.ListToolsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest 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.dialogflow.v2beta1.ListToolsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest 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.dialogflow.v2beta1.ListToolsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.ListToolsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request message of ListTools.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListToolsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ListToolsRequest) + com.google.cloud.dialogflow.v2beta1.ListToolsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListToolsRequest.class, + com.google.cloud.dialogflow.v2beta1.ListToolsRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ListToolsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListToolsRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ListToolsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListToolsRequest build() { + com.google.cloud.dialogflow.v2beta1.ListToolsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListToolsRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.ListToolsRequest result = + new com.google.cloud.dialogflow.v2beta1.ListToolsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ListToolsRequest 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ListToolsRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ListToolsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ListToolsRequest other) { + if (other == com.google.cloud.dialogflow.v2beta1.ListToolsRequest.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(); + } + 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 + 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/location to list tools for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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/location to list tools for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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/location to list tools for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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/location to list tools for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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/location to list tools for. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>`
                                          +     * 
                                          + * + * + * 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 conversation models to return in a single page.
                                          +     * Default to 10.
                                          +     * 
                                          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                          +     * Optional. Maximum number of conversation models to return in a single page.
                                          +     * Default to 10.
                                          +     * 
                                          + * + * 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 conversation models to return in a single page.
                                          +     * Default to 10.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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 next_page_token value returned from a previous list request.
                                          +     * 
                                          + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ListToolsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ListToolsRequest) + private static final com.google.cloud.dialogflow.v2beta1.ListToolsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ListToolsRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListToolsRequest 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.dialogflow.v2beta1.ListToolsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsRequestOrBuilder.java new file mode 100644 index 000000000000..97201839cea7 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface ListToolsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ListToolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The project/location to list tools for. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>`
                                          +   * 
                                          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                          +   * Required. The project/location to list tools for. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>`
                                          +   * 
                                          + * + * + * 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 conversation models to return in a single page.
                                          +   * Default to 10.
                                          +   * 
                                          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                          +   * Optional. The next_page_token value returned from a previous list request.
                                          +   * 
                                          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                          +   * Optional. The next_page_token value returned from a previous list request.
                                          +   * 
                                          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsResponse.java new file mode 100644 index 000000000000..d88cc937f332 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsResponse.java @@ -0,0 +1,1156 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Response of ListTools.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListToolsResponse} + */ +public final class ListToolsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ListToolsResponse) + ListToolsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListToolsResponse.newBuilder() to construct. + private ListToolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListToolsResponse() { + tools_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListToolsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListToolsResponse.class, + com.google.cloud.dialogflow.v2beta1.ListToolsResponse.Builder.class); + } + + public static final int TOOLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tools_; + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + @java.lang.Override + public java.util.List + getToolsOrBuilderList() { + return tools_; + } + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                          +   * Token to retrieve the next page of results, or empty if there are no more
                                          +   * results in the list.
                                          +   * 
                                          + * + * 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; + } + } + + /** + * + * + *
                                          +   * Token to retrieve the next page of results, or empty if there are no more
                                          +   * results in the list.
                                          +   * 
                                          + * + * 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; + } + } + + 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 < tools_.size(); i++) { + output.writeMessage(1, tools_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tools_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.dialogflow.v2beta1.ListToolsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ListToolsResponse other = + (com.google.cloud.dialogflow.v2beta1.ListToolsResponse) obj; + + if (!getToolsList().equals(other.getToolsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse 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.dialogflow.v2beta1.ListToolsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse 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.dialogflow.v2beta1.ListToolsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.ListToolsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Response of ListTools.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListToolsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ListToolsResponse) + com.google.cloud.dialogflow.v2beta1.ListToolsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListToolsResponse.class, + com.google.cloud.dialogflow.v2beta1.ListToolsResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ListToolsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListToolsResponse getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ListToolsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListToolsResponse build() { + com.google.cloud.dialogflow.v2beta1.ListToolsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ListToolsResponse buildPartial() { + com.google.cloud.dialogflow.v2beta1.ListToolsResponse result = + new com.google.cloud.dialogflow.v2beta1.ListToolsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.ListToolsResponse result) { + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ListToolsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ListToolsResponse) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ListToolsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ListToolsResponse other) { + if (other == com.google.cloud.dialogflow.v2beta1.ListToolsResponse.getDefaultInstance()) + return this; + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000001); + toolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getToolsFieldBuilder() + : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.dialogflow.v2beta1.Tool m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Tool.parser(), extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List tools_ = + java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool, + com.google.cloud.dialogflow.v2beta1.Tool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public com.google.cloud.dialogflow.v2beta1.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public Builder setTools(int index, com.google.cloud.dialogflow.v2beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public Builder setTools( + int index, com.google.cloud.dialogflow.v2beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public Builder addTools(com.google.cloud.dialogflow.v2beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public Builder addTools(int index, com.google.cloud.dialogflow.v2beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public Builder addTools(com.google.cloud.dialogflow.v2beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public Builder addTools( + int index, com.google.cloud.dialogflow.v2beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public Builder addAllTools( + java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Builder getToolsBuilder(int index) { + return getToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public java.util.List + getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Builder addToolsBuilder() { + return getToolsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Builder addToolsBuilder(int index) { + return getToolsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * List of tools retrieved.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + public java.util.List getToolsBuilderList() { + return getToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool, + com.google.cloud.dialogflow.v2beta1.Tool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder> + getToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool, + com.google.cloud.dialogflow.v2beta1.Tool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * 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; + } + } + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * 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; + } + } + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * 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; + } + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Token to retrieve the next page of results, or empty if there are no more
                                          +     * results in the list.
                                          +     * 
                                          + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ListToolsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ListToolsResponse) + private static final com.google.cloud.dialogflow.v2beta1.ListToolsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ListToolsResponse(); + } + + public static com.google.cloud.dialogflow.v2beta1.ListToolsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListToolsResponse 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.dialogflow.v2beta1.ListToolsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsResponseOrBuilder.java new file mode 100644 index 000000000000..f3553e0ccfbb --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListToolsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface ListToolsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ListToolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + java.util.List getToolsList(); + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + com.google.cloud.dialogflow.v2beta1.Tool getTools(int index); + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + int getToolsCount(); + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + java.util.List + getToolsOrBuilderList(); + + /** + * + * + *
                                          +   * List of tools retrieved.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.Tool tools = 1; + */ + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder getToolsOrBuilder(int index); + + /** + * + * + *
                                          +   * Token to retrieve the next page of results, or empty if there are no more
                                          +   * results in the list.
                                          +   * 
                                          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                          +   * Token to retrieve the next page of results, or empty if there are no more
                                          +   * results in the list.
                                          +   * 
                                          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OperationsProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OperationsProto.java new file mode 100644 index 000000000000..6691bb18cd78 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OperationsProto.java @@ -0,0 +1,80 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/operations.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public final class OperationsProto { + private OperationsProto() {} + + 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_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_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/cloud/dialogflow/v2beta1/operat" + + "ions.proto\022\037google.cloud.dialogflow.v2be" + + "ta1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\"I\n$GeneratorEval" + + "uationOperationMetadata\022!\n\024generator_eva" + + "luation\030\001 \001(\tB\003\340A\003B\244\001\n#com.google.cloud." + + "dialogflow.v2beta1B\017OperationsProtoP\001ZCc" + + "loud.google.com/go/dialogflow/apiv2beta1" + + "/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google" + + ".Cloud.Dialogflow.V2Beta1b\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(), + }); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GeneratorEvaluationOperationMetadata_descriptor, + new java.lang.String[] { + "GeneratorEvaluation", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java index b5002821c05b..284d00dd0eaf 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java @@ -43,6 +43,7 @@ private Participant() { name_ = ""; role_ = 0; obfuscatedExternalUserId_ = ""; + agentDesktopSource_ = 0; } @java.lang.Override @@ -262,6 +263,240 @@ private Role(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Participant.Role) } + /** + * + * + *
                                          +   * Enumeration of the Agent Desktop Source when using prebuilt Agent
                                          +   * Assist integration modules.
                                          +   * 
                                          + * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource} + */ + public enum AgentDesktopSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +     * Agent Desktop Source is not specified.
                                          +     * 
                                          + * + * AGENT_DESKTOP_SOURCE_UNSPECIFIED = 0; + */ + AGENT_DESKTOP_SOURCE_UNSPECIFIED(0), + /** + * + * + *
                                          +     * Agent Desktop Source is Live Person.
                                          +     * 
                                          + * + * LIVE_PERSON = 1; + */ + LIVE_PERSON(1), + /** + * + * + *
                                          +     * Agent Desktop Source is Genesys Cloud.
                                          +     * 
                                          + * + * GENESYS_CLOUD = 2; + */ + GENESYS_CLOUD(2), + /** + * + * + *
                                          +     * Agent Desktop Source is Twilio.
                                          +     * 
                                          + * + * TWILIO = 3; + */ + TWILIO(3), + /** + * + * + *
                                          +     * Agent Desktop Source is Salesforce.
                                          +     * 
                                          + * + * SALESFORCE = 4; + */ + SALESFORCE(4), + /** + * + * + *
                                          +     * UI Modules are in use but the desktop is either not currently released or
                                          +     * setting this field to the applicable desktop.
                                          +     * 
                                          + * + * OTHER = 8; + */ + OTHER(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +     * Agent Desktop Source is not specified.
                                          +     * 
                                          + * + * AGENT_DESKTOP_SOURCE_UNSPECIFIED = 0; + */ + public static final int AGENT_DESKTOP_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +     * Agent Desktop Source is Live Person.
                                          +     * 
                                          + * + * LIVE_PERSON = 1; + */ + public static final int LIVE_PERSON_VALUE = 1; + + /** + * + * + *
                                          +     * Agent Desktop Source is Genesys Cloud.
                                          +     * 
                                          + * + * GENESYS_CLOUD = 2; + */ + public static final int GENESYS_CLOUD_VALUE = 2; + + /** + * + * + *
                                          +     * Agent Desktop Source is Twilio.
                                          +     * 
                                          + * + * TWILIO = 3; + */ + public static final int TWILIO_VALUE = 3; + + /** + * + * + *
                                          +     * Agent Desktop Source is Salesforce.
                                          +     * 
                                          + * + * SALESFORCE = 4; + */ + public static final int SALESFORCE_VALUE = 4; + + /** + * + * + *
                                          +     * UI Modules are in use but the desktop is either not currently released or
                                          +     * setting this field to the applicable desktop.
                                          +     * 
                                          + * + * OTHER = 8; + */ + public static final int OTHER_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 AgentDesktopSource 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 AgentDesktopSource forNumber(int value) { + switch (value) { + case 0: + return AGENT_DESKTOP_SOURCE_UNSPECIFIED; + case 1: + return LIVE_PERSON; + case 2: + return GENESYS_CLOUD; + case 3: + return TWILIO; + case 4: + return SALESFORCE; + case 8: + return OTHER; + 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 AgentDesktopSource findValueByNumber(int number) { + return AgentDesktopSource.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Participant.getDescriptor().getEnumTypes().get(1); + } + + private static final AgentDesktopSource[] VALUES = values(); + + public static AgentDesktopSource 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 AgentDesktopSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource) + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -665,6 +900,69 @@ public java.lang.String getDocumentsMetadataFiltersOrThrow(java.lang.String key) return map.get(key); } + public static final int AGENT_DESKTOP_SOURCE_FIELD_NUMBER = 10; + private int agentDesktopSource_ = 0; + + /** + * + * + *
                                          +   * Optional. For tracking the utilization of prebuilt Agent Assist integration
                                          +   * modules. This field is only inscope for Integration type that include UI
                                          +   * Modules, Backend Modules, and Agent Desktop connector, it is out of scope
                                          +   * for CCaaS and Direct Integration.
                                          +   * For each human agent, prebuilt UI Modules needs to trigger the
                                          +   * UpdateParticipant API to update this field. Both
                                          +   * [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant]
                                          +   * and
                                          +   * [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant]
                                          +   * will be supported.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource agent_desktop_source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for agentDesktopSource. + */ + @java.lang.Override + public int getAgentDesktopSourceValue() { + return agentDesktopSource_; + } + + /** + * + * + *
                                          +   * Optional. For tracking the utilization of prebuilt Agent Assist integration
                                          +   * modules. This field is only inscope for Integration type that include UI
                                          +   * Modules, Backend Modules, and Agent Desktop connector, it is out of scope
                                          +   * for CCaaS and Direct Integration.
                                          +   * For each human agent, prebuilt UI Modules needs to trigger the
                                          +   * UpdateParticipant API to update this field. Both
                                          +   * [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant]
                                          +   * and
                                          +   * [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant]
                                          +   * will be supported.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource agent_desktop_source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentDesktopSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource + getAgentDesktopSource() { + com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource result = + com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource.forNumber( + agentDesktopSource_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -694,6 +992,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetDocumentsMetadataFilters(), DocumentsMetadataFiltersDefaultEntryHolder.defaultEntry, 8); + if (agentDesktopSource_ + != com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource + .AGENT_DESKTOP_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, agentDesktopSource_); + } getUnknownFields().writeTo(output); } @@ -725,6 +1029,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, documentsMetadataFilters__); } + if (agentDesktopSource_ + != com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource + .AGENT_DESKTOP_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, agentDesktopSource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -746,6 +1056,7 @@ public boolean equals(final java.lang.Object obj) { if (!getObfuscatedExternalUserId().equals(other.getObfuscatedExternalUserId())) return false; if (!internalGetDocumentsMetadataFilters().equals(other.internalGetDocumentsMetadataFilters())) return false; + if (agentDesktopSource_ != other.agentDesktopSource_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -767,6 +1078,8 @@ public int hashCode() { hash = (37 * hash) + DOCUMENTS_METADATA_FILTERS_FIELD_NUMBER; hash = (53 * hash) + internalGetDocumentsMetadataFilters().hashCode(); } + hash = (37 * hash) + AGENT_DESKTOP_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + agentDesktopSource_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -933,6 +1246,7 @@ public Builder clear() { role_ = 0; obfuscatedExternalUserId_ = ""; internalGetMutableDocumentsMetadataFilters().clear(); + agentDesktopSource_ = 0; return this; } @@ -982,6 +1296,9 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Participant resul result.documentsMetadataFilters_ = internalGetDocumentsMetadataFilters(); result.documentsMetadataFilters_.makeImmutable(); } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.agentDesktopSource_ = agentDesktopSource_; + } } @java.lang.Override @@ -1046,6 +1363,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Participant other) internalGetMutableDocumentsMetadataFilters() .mergeFrom(other.internalGetDocumentsMetadataFilters()); bitField0_ |= 0x00000008; + if (other.agentDesktopSource_ != 0) { + setAgentDesktopSourceValue(other.getAgentDesktopSourceValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1105,6 +1425,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 66 + case 80: + { + agentDesktopSource_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1939,6 +2265,161 @@ public Builder putAllDocumentsMetadataFilters( return this; } + private int agentDesktopSource_ = 0; + + /** + * + * + *
                                          +     * Optional. For tracking the utilization of prebuilt Agent Assist integration
                                          +     * modules. This field is only inscope for Integration type that include UI
                                          +     * Modules, Backend Modules, and Agent Desktop connector, it is out of scope
                                          +     * for CCaaS and Direct Integration.
                                          +     * For each human agent, prebuilt UI Modules needs to trigger the
                                          +     * UpdateParticipant API to update this field. Both
                                          +     * [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant]
                                          +     * and
                                          +     * [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant]
                                          +     * will be supported.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource agent_desktop_source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for agentDesktopSource. + */ + @java.lang.Override + public int getAgentDesktopSourceValue() { + return agentDesktopSource_; + } + + /** + * + * + *
                                          +     * Optional. For tracking the utilization of prebuilt Agent Assist integration
                                          +     * modules. This field is only inscope for Integration type that include UI
                                          +     * Modules, Backend Modules, and Agent Desktop connector, it is out of scope
                                          +     * for CCaaS and Direct Integration.
                                          +     * For each human agent, prebuilt UI Modules needs to trigger the
                                          +     * UpdateParticipant API to update this field. Both
                                          +     * [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant]
                                          +     * and
                                          +     * [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant]
                                          +     * will be supported.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource agent_desktop_source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for agentDesktopSource to set. + * @return This builder for chaining. + */ + public Builder setAgentDesktopSourceValue(int value) { + agentDesktopSource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. For tracking the utilization of prebuilt Agent Assist integration
                                          +     * modules. This field is only inscope for Integration type that include UI
                                          +     * Modules, Backend Modules, and Agent Desktop connector, it is out of scope
                                          +     * for CCaaS and Direct Integration.
                                          +     * For each human agent, prebuilt UI Modules needs to trigger the
                                          +     * UpdateParticipant API to update this field. Both
                                          +     * [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant]
                                          +     * and
                                          +     * [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant]
                                          +     * will be supported.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource agent_desktop_source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentDesktopSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource + getAgentDesktopSource() { + com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource result = + com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource.forNumber( + agentDesktopSource_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +     * Optional. For tracking the utilization of prebuilt Agent Assist integration
                                          +     * modules. This field is only inscope for Integration type that include UI
                                          +     * Modules, Backend Modules, and Agent Desktop connector, it is out of scope
                                          +     * for CCaaS and Direct Integration.
                                          +     * For each human agent, prebuilt UI Modules needs to trigger the
                                          +     * UpdateParticipant API to update this field. Both
                                          +     * [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant]
                                          +     * and
                                          +     * [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant]
                                          +     * will be supported.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource agent_desktop_source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The agentDesktopSource to set. + * @return This builder for chaining. + */ + public Builder setAgentDesktopSource( + com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + agentDesktopSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. For tracking the utilization of prebuilt Agent Assist integration
                                          +     * modules. This field is only inscope for Integration type that include UI
                                          +     * Modules, Backend Modules, and Agent Desktop connector, it is out of scope
                                          +     * for CCaaS and Direct Integration.
                                          +     * For each human agent, prebuilt UI Modules needs to trigger the
                                          +     * UpdateParticipant API to update this field. Both
                                          +     * [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant]
                                          +     * and
                                          +     * [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant]
                                          +     * will be supported.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource agent_desktop_source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAgentDesktopSource() { + bitField0_ = (bitField0_ & ~0x00000010); + agentDesktopSource_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java index 87292731f303..c38befc7f134 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java @@ -328,4 +328,52 @@ java.lang.String getDocumentsMetadataFiltersOrDefault( * */ java.lang.String getDocumentsMetadataFiltersOrThrow(java.lang.String key); + + /** + * + * + *
                                          +   * Optional. For tracking the utilization of prebuilt Agent Assist integration
                                          +   * modules. This field is only inscope for Integration type that include UI
                                          +   * Modules, Backend Modules, and Agent Desktop connector, it is out of scope
                                          +   * for CCaaS and Direct Integration.
                                          +   * For each human agent, prebuilt UI Modules needs to trigger the
                                          +   * UpdateParticipant API to update this field. Both
                                          +   * [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant]
                                          +   * and
                                          +   * [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant]
                                          +   * will be supported.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource agent_desktop_source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for agentDesktopSource. + */ + int getAgentDesktopSourceValue(); + + /** + * + * + *
                                          +   * Optional. For tracking the utilization of prebuilt Agent Assist integration
                                          +   * modules. This field is only inscope for Integration type that include UI
                                          +   * Modules, Backend Modules, and Agent Desktop connector, it is out of scope
                                          +   * for CCaaS and Direct Integration.
                                          +   * For each human agent, prebuilt UI Modules needs to trigger the
                                          +   * UpdateParticipant API to update this field. Both
                                          +   * [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant]
                                          +   * and
                                          +   * [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant]
                                          +   * will be supported.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource agent_desktop_source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentDesktopSource. + */ + com.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSource getAgentDesktopSource(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index 7632f55bba9a..212b0fa7032a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -288,6 +288,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -305,14 +337,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2google/cloud/dialogflow/v2beta1/audio_config.proto\032/google/cloud/dialogflow/v2b" + "eta1/generator.proto\032-google/cloud/dialogflow/v2beta1/session.proto\032 google/prot" + "obuf/field_mask.proto\032\034google/protobuf/s" - + "truct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\363\004\n" + + "truct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\337\006\n" + "\013Participant\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022D\n" + "\004role\030\002 \001(\01621" + ".google.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\005\022(\n" + "\033obfuscated_external_user_id\030\007 \001(\tB\003\340A\001\022s\n" + "\032documents_metadata_filters\030\010 \003(\0132J.google.cloud.dialogflow.v" - + "2beta1.Participant.DocumentsMetadataFiltersEntryB\003\340A\001\032?\n" + + "2beta1.Participant.DocumentsMetadataFiltersEntryB\003\340A\001\022b\n" + + "\024agent_desktop_source\030\n" + + " \001(\0162?.google.cloud.dialogflow.v2beta1.Participant.AgentDesktopSourceB\003\340A\001\032?\n" + "\035DocumentsMetadataFiltersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"P\n" @@ -320,10 +354,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ROLE_UNSPECIFIED\020\000\022\017\n" + "\013HUMAN_AGENT\020\001\022\023\n" + "\017AUTOMATED_AGENT\020\002\022\014\n" - + "\010END_USER\020\003:\330\001\352A\324\001\n" - + "%dialogflow.googleapis.com/Participant\022Jprojects/{project}/conversations" - + "/{conversation}/participants/{participant}\022_projects/{project}/locations/{locati" - + "on}/conversations/{conversation}/participants/{participant}\"\355\005\n" + + "\010END_USER\020\003\"\205\001\n" + + "\022AgentDesktopSource\022$\n" + + " AGENT_DESKTOP_SOURCE_UNSPECIFIED\020\000\022\017\n" + + "\013LIVE_PERSON\020\001\022\021\n\r" + + "GENESYS_CLOUD\020\002\022\n\n" + + "\006TWILIO\020\003\022\016\n\n" + + "SALESFORCE\020\004\022\t\n" + + "\005OTHER\020\010:\330\001\352A\324\001\n" + + "%dialogflow.googleapis.com/Participant\022Jprojects/{project}/conversations/{co" + + "nversation}/participants/{participant}\022_projects/{project}/locations/{location}/" + + "conversations/{conversation}/participants/{participant}\"\355\005\n" + "\007Message\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\024\n" + "\007content\030\002 \001(\tB\003\340A\002\022P\n" @@ -331,22 +372,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01320.google.cloud.dialogflow.v2beta1.ResponseMessageB\003\340A\001\022\032\n\r" + "language_code\030\003 \001(\tB\003\340A\001\022\030\n" + "\013participant\030\004 \001(\tB\003\340A\003\022P\n" - + "\020participant_role\030\005 \001(\01621.goo" - + "gle.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\003\0224\n" + + "\020participant_role\030\005 \001(\01621.google." + + "cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\003\0224\n" + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0222\n" + "\tsend_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022S\n" - + "\022message_annotation\030\007 \001(\01322.google.cloud." - + "dialogflow.v2beta1.MessageAnnotationB\003\340A\003\022Y\n" - + "\022sentiment_analysis\030\010 \001(\01328.google.c" - + "loud.dialogflow.v2beta1.SentimentAnalysisResultB\003\340A\003:\304\001\352A\300\001\n" - + "!dialogflow.googleapis.com/Message\022Bprojects/{project}/conve" - + "rsations/{conversation}/messages/{message}\022Wprojects/{project}/locations/{locati" - + "on}/conversations/{conversation}/messages/{message}\"\241\001\n" + + "\022message_annotation\030\007" + + " \001(\01322.google.cloud.dialogflow.v2beta1.MessageAnnotationB\003\340A\003\022Y\n" + + "\022sentiment_analysis\030\010 \001(\01328.google.cloud" + + ".dialogflow.v2beta1.SentimentAnalysisResultB\003\340A\003:\304\001\352A\300\001\n" + + "!dialogflow.googleapis.com/Message\022Bprojects/{project}/conversat" + + "ions/{conversation}/messages/{message}\022Wprojects/{project}/locations/{location}/" + + "conversations/{conversation}/messages/{message}\"\241\001\n" + "\030CreateParticipantRequest\022=\n" + "\006parent\030\001 \001(" + "\tB-\340A\002\372A\'\022%dialogflow.googleapis.com/Participant\022F\n" - + "\013participant\030\002" - + " \001(\0132,.google.cloud.dialogflow.v2beta1.ParticipantB\003\340A\002\"T\n" + + "\013participant\030\002 \001(\013" + + "2,.google.cloud.dialogflow.v2beta1.ParticipantB\003\340A\002\"T\n" + "\025GetParticipantRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\"\211\001\n" @@ -362,51 +403,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030UpdateParticipantRequest\022F\n" + "\013participant\030\001" + " \001(\0132,.google.cloud.dialogflow.v2beta1.ParticipantB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"^\n" - + "\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"^\n\n" + "AudioInput\022A\n" - + "\006config\030\001 \001(\01321.google.cloud.dialogflow.v2beta1.InputAudioConfig\022\r" - + "\n" + + "\006config\030\001" + + " \001(\01321.google.cloud.dialogflow.v2beta1.InputAudioConfig\022\r\n" + "\005audio\030\002 \001(\014\"`\n" + "\013OutputAudio\022B\n" - + "\006config\030\001" - + " \001(\01322.google.cloud.dialogflow.v2beta1.OutputAudioConfig\022\r\n" + + "\006config\030\001 \001(\013" + + "22.google.cloud.dialogflow.v2beta1.OutputAudioConfig\022\r\n" + "\005audio\030\002 \001(\014\"\305\005\n" + "\023AutomatedAgentReply\022W\n" - + "\026detect_intent_response\030\001" - + " \001(\01325.google.cloud.dialogflow.v2beta1.DetectIntentResponseH\000\022K\n" + + "\026detect_intent_response\030\001 " + + "\001(\01325.google.cloud.dialogflow.v2beta1.DetectIntentResponseH\000\022K\n" + "\021response_messages\030\003" + " \003(\01320.google.cloud.dialogflow.v2beta1.ResponseMessage\0227\n" + "\006intent\030\004 \001(\tB%\372A\"\n" + " dialogflow.googleapis.com/IntentH\001\022\017\n" + "\005event\030\005 \001(\tH\001\022\030\n" - + "\020match_confidence\030\t \001(\002\022+\n\n" + + "\020match_confidence\030\t \001(\002\022+\n" + + "\n" + "parameters\030\n" + " \001(\0132\027.google.protobuf.Struct\022:\n" + "\025cx_session_parameters\030\006" + " \001(\0132\027.google.protobuf.StructB\002\030\001\022p\n" - + "\032automated_agent_reply_type\030\007 \001(\0162L.google.cloud.di" - + "alogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType\022\032\n" + + "\032automated_agent_reply_type\030\007 \001(\0162L.google.cloud.dialog" + + "flow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType\022\032\n" + "\022allow_cancellation\030\010 \001(\010\022\027\n" + "\017cx_current_page\030\013 \001(\t\022 \n" + "\030call_companion_auth_code\030\014 \001(\014\"]\n" + "\027AutomatedAgentReplyType\022*\n" + "&AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007PARTIAL\020\001\022\t\n" - + "\005FINAL\020\002B\n\n" + + "\005FINAL\020\002B\n" + + "\n" + "\010responseB\007\n" - + "\005match\"\334\001\n" + + "\005match\"\245\003\n" + "\017SuggestionInput\022\025\n\r" + "answer_record\030\001 \001(\t\022A\n\r" + "text_override\030\002 \001(\0132*.google.cloud.dialogflow.v2beta1.TextInput\022+\n\n" - + "parameters\030\004 \001(\0132\027.google.protobuf.Struct\022B\n" - + "\014intent_input\030\006 \001(\0132,.google.cloud.dialogflow.v2beta1.IntentInput\">\n" + + "parameters\030\004 \001(\0132\027.google.protobuf.Struct\022L\n" + + "\006action\030\005 \001(\01627.google." + + "cloud.dialogflow.v2beta1.SuggestionInput.ActionB\003\340A\001\022B\n" + + "\014intent_input\030\006 \001(\0132,.goo" + + "gle.cloud.dialogflow.v2beta1.IntentInput\0222\n" + + "\tsend_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"E\n" + + "\006Action\022\026\n" + + "\022ACTION_UNSPECIFIED\020\000\022\n\n" + + "\006CANCEL\020\001\022\n\n" + + "\006REVISE\020\002\022\013\n" + + "\007CONFIRM\020\003\">\n" + "\013IntentInput\022\023\n" + "\006intent\030\001 \001(\tB\003\340A\002\022\032\n\r" + "language_code\030\003 \001(\tB\003\340A\002\"\216\002\n" + "\021SuggestionFeature\022E\n" - + "\004type\030\001 \001(\01627.google.clou" - + "d.dialogflow.v2beta1.SuggestionFeature.Type\"\261\001\n" + + "\004type\030\001 \001(\01627.google.cloud.d" + + "ialogflow.v2beta1.SuggestionFeature.Type\"\261\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\026\n" + "\022ARTICLE_SUGGESTION\020\001\022\007\n" @@ -417,8 +468,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020KNOWLEDGE_SEARCH\020\016\022\024\n" + "\020KNOWLEDGE_ASSIST\020\017\"\322\001\n" + "\025AssistQueryParameters\022x\n" - + "\032documents_metadata_filters\030\001 \003(\0132T.google.cloud.dialogflow.v2beta1." - + "AssistQueryParameters.DocumentsMetadataFiltersEntry\032?\n" + + "\032documents_metadata_filters\030\001 \003(\0132T.google.cloud.dialogflow.v2beta1.Ass" + + "istQueryParameters.DocumentsMetadataFiltersEntry\032?\n" + "\035DocumentsMetadataFiltersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\310\006\n" @@ -428,19 +479,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "text_input\030\006 \001(\0132*.google.cloud.dialogflow.v2beta1.TextInputH\000\022B\n" + "\013audio_input\030\007" + " \001(\0132+.google.cloud.dialogflow.v2beta1.AudioInputH\000\022B\n" - + "\013event_input\030\010" - + " \001(\0132+.google.cloud.dialogflow.v2beta1.EventInputH\000\022L\n" - + "\020suggestion_input\030\014 \001(\01320" - + ".google.cloud.dialogflow.v2beta1.SuggestionInputH\000\022D\n" + + "\013event_input\030\010 \001" + + "(\0132+.google.cloud.dialogflow.v2beta1.EventInputH\000\022L\n" + + "\020suggestion_input\030\014 \001(\01320.go" + + "ogle.cloud.dialogflow.v2beta1.SuggestionInputH\000\022D\n" + "\014intent_input\030\r" + " \001(\0132,.google.cloud.dialogflow.v2beta1.IntentInputH\000\022N\n" - + "\022reply_audio_config\030\005 \001(\01322.google.cl" - + "oud.dialogflow.v2beta1.OutputAudioConfig\022F\n" + + "\022reply_audio_config\030\005" + + " \001(\01322.google.cloud.dialogflow.v2beta1.OutputAudioConfig\022F\n" + "\014query_params\030\t" + " \001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\022S\n" + "\023assist_query_params\030\016" - + " \001(\01326.google.cloud.dialogflow.v2beta1.AssistQueryParameters\022.\n" - + "\r" + + " \001(\01326.google.cloud.dialogflow.v2beta1.AssistQueryParameters\022.\n\r" + "cx_parameters\030\022 \001(\0132\027.google.protobuf.Struct\022\027\n" + "\017cx_current_page\030\024 \001(\t\022:\n" + "\021message_send_time\030\n" @@ -452,13 +502,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026AnalyzeContentResponse\022\022\n\n" + "reply_text\030\001 \001(\t\022A\n" + "\013reply_audio\030\002 \001(\0132,.google.cloud.dialogflow.v2beta1.OutputAudio\022S\n" - + "\025automated_agent_reply\030\003 \001(\01324.google." - + "cloud.dialogflow.v2beta1.AutomatedAgentReply\0229\n" + + "\025automated_agent_reply\030\003 \001(\01324.google.clo" + + "ud.dialogflow.v2beta1.AutomatedAgentReply\0229\n" + "\007message\030\005 \001(\0132(.google.cloud.dialogflow.v2beta1.Message\022Y\n" + "\036human_agent_suggestion_results\030\006" + " \003(\01321.google.cloud.dialogflow.v2beta1.SuggestionResult\022V\n" - + "\033end_user_suggestion_results\030\007 \003(\01321.google" - + ".cloud.dialogflow.v2beta1.SuggestionResult\022H\n" + + "\033end_user_suggestion_results\030\007 \003(\01321.google.cl" + + "oud.dialogflow.v2beta1.SuggestionResult\022H\n" + "\017dtmf_parameters\030\t" + " \001(\0132/.google.cloud.dialogflow.v2beta1.DtmfParameters\"(\n" + "\017InputTextConfig\022\025\n\r" @@ -466,22 +516,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036StreamingAnalyzeContentRequest\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022I\n" - + "\014audio_config\030\002 " - + "\001(\01321.google.cloud.dialogflow.v2beta1.InputAudioConfigH\000\022G\n" - + "\013text_config\030\003 \001(\01320." - + "google.cloud.dialogflow.v2beta1.InputTextConfigH\000\022N\n" - + "\022reply_audio_config\030\004 \001(\01322." - + "google.cloud.dialogflow.v2beta1.OutputAudioConfig\022\025\n" + + "\014audio_config\030\002 \001(\013" + + "21.google.cloud.dialogflow.v2beta1.InputAudioConfigH\000\022G\n" + + "\013text_config\030\003 \001(\01320.goo" + + "gle.cloud.dialogflow.v2beta1.InputTextConfigH\000\022N\n" + + "\022reply_audio_config\030\004 \001(\01322.goo" + + "gle.cloud.dialogflow.v2beta1.OutputAudioConfig\022\025\n" + "\013input_audio\030\005 \001(\014H\001\022\024\n\n" + "input_text\030\006 \001(\tH\001\022J\n\n" - + "input_dtmf\030\t \001(\01324.goo" - + "gle.cloud.dialogflow.v2beta1.TelephonyDtmfEventsH\001\022\026\n" + + "input_dtmf\030\t \001(\01324.google" + + ".cloud.dialogflow.v2beta1.TelephonyDtmfEventsH\001\022\026\n" + "\014input_intent\030\021 \001(\tH\001\022\025\n" + "\013input_event\030\024 \001(\tH\001\022F\n" - + "\014query_params\030\007 \001(\0132" - + "0.google.cloud.dialogflow.v2beta1.QueryParameters\022S\n" - + "\023assist_query_params\030\010 \001(\01326" - + ".google.cloud.dialogflow.v2beta1.AssistQueryParameters\022.\n\r" + + "\014query_params\030\007 \001(\01320.g" + + "oogle.cloud.dialogflow.v2beta1.QueryParameters\022S\n" + + "\023assist_query_params\030\010 \001(\01326.go" + + "ogle.cloud.dialogflow.v2beta1.AssistQueryParameters\022.\n\r" + "cx_parameters\030\r" + " \001(\0132\027.google.protobuf.Struct\022\027\n" + "\017cx_current_page\030\017 \001(\t\022&\n" @@ -495,17 +545,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132;.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult\022\022\n\n" + "reply_text\030\002 \001(\t\022A\n" + "\013reply_audio\030\003 \001(\0132,.google.cloud.dialogflow.v2beta1.OutputAudio\022S\n" - + "\025automated_agent_reply\030\004 \001(\01324.google" - + ".cloud.dialogflow.v2beta1.AutomatedAgentReply\0229\n" + + "\025automated_agent_reply\030\004 \001(\01324.google.cl" + + "oud.dialogflow.v2beta1.AutomatedAgentReply\0229\n" + "\007message\030\006 \001(\0132(.google.cloud.dialogflow.v2beta1.Message\022Y\n" + "\036human_agent_suggestion_results\030\007" + " \003(\01321.google.cloud.dialogflow.v2beta1.SuggestionResult\022V\n" - + "\033end_user_suggestion_results\030\010 \003(\01321.googl" - + "e.cloud.dialogflow.v2beta1.SuggestionResult\022H\n" + + "\033end_user_suggestion_results\030\010 \003(\01321.google.c" + + "loud.dialogflow.v2beta1.SuggestionResult\022H\n" + "\017dtmf_parameters\030\n" + " \001(\0132/.google.cloud.dialogflow.v2beta1.DtmfParameters\022W\n" - + "\016debugging_info\030\013 \001(\0132?.google.cloud.dia" - + "logflow.v2beta1.CloudConversationDebuggingInfo\022\024\n" + + "\016debugging_info\030\013 \001(\0132?.google.cloud.dialog" + + "flow.v2beta1.CloudConversationDebuggingInfo\022\024\n" + "\014speech_model\030\r" + " \001(\t\"j\n" + "\024AnnotatedMessagePart\022\014\n" @@ -521,8 +571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uri\030\002 \001(\t\022\020\n" + "\010snippets\030\003 \003(\t\022N\n" + "\010metadata\030\005" - + " \003(\0132<.google.cloud.dialogflow.v2beta1.ArticleAnswer.MetadataEntry\022\025\n" - + "\r" + + " \003(\0132<.google.cloud.dialogflow.v2beta1.ArticleAnswer.MetadataEntry\022\025\n\r" + "answer_record\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -538,7 +587,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"y\n" - + "\020SmartReplyAnswer\022\r\n" + + "\020SmartReplyAnswer\022\r" + + "\n" + "\005reply\030\001 \001(\t\022\022\n\n" + "confidence\030\002 \001(\002\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" @@ -551,26 +601,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DialogflowAssistAnswer\022D\n" + "\014query_result\030\001" + " \001(\0132,.google.cloud.dialogflow.v2beta1.QueryResultH\000\022N\n" - + "\021intent_suggestion\030\005 \001" - + "(\01321.google.cloud.dialogflow.v2beta1.IntentSuggestionH\000\022\025\n\r" + + "\021intent_suggestion\030\005 \001(\0132" + + "1.google.cloud.dialogflow.v2beta1.IntentSuggestionH\000\022\025\n\r" + "answer_record\030\002 \001(\tB\010\n" + "\006result\"\261\006\n" + "\020SuggestionResult\022#\n" + "\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022]\n" - + "\031suggest_articles_response\030\002 \001(\01328.google.cloud.dia" - + "logflow.v2beta1.SuggestArticlesResponseH\000\022l\n" - + "!suggest_knowledge_assist_response\030\010" - + " \001(\0132?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponseH\000\022b\n" - + "\034suggest_faq_answers_response\030\003 \001(\0132:.google.c" - + "loud.dialogflow.v2beta1.SuggestFaqAnswersResponseH\000\022f\n" + + "\031suggest_articles_response\030\002 \001(\01328.google.cloud.dialog" + + "flow.v2beta1.SuggestArticlesResponseH\000\022l\n" + + "!suggest_knowledge_assist_response\030\010 \001(" + + "\0132?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponseH\000\022b\n" + + "\034suggest_faq_answers_response\030\003 \001(\0132:.google.clou" + + "d.dialogflow.v2beta1.SuggestFaqAnswersResponseH\000\022f\n" + "\036suggest_smart_replies_response\030\004" + " \001(\0132<.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponseH\000\022p\n" - + "#suggest_dialogflow_assists_response\030\005 \001(\013" - + "2A.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022o\n" - + "\"suggest_entity_extraction_response\030\007 \001(\0132A.goog" - + "le.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022e\n" - + "\035generate_suggestions_response\030\t \001(\0132<.google.cloud.dia" - + "logflow.v2beta1.GenerateSuggestionsResponseH\000B\025\n" + + "#suggest_dialogflow_assists_response\030\005 \001(\0132A." + + "google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022o\n" + + "\"suggest_entity_extraction_response\030\007 \001(\0132A.google." + + "cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022e\n" + + "\035generate_suggestions_response\030\t \001(\0132<.google.cloud.dialog" + + "flow.v2beta1.GenerateSuggestionsResponseH\000B\025\n" + "\023suggestion_response\"\217\002\n" + "\026SuggestArticlesRequest\022=\n" + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n" @@ -578,11 +628,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022X\n" - + "\023assist_query_params\030\004 \001(" - + "\01326.google.cloud.dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\220\001\n" + + "\023assist_query_params\030\004 \001(\01326" + + ".google.cloud.dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\220\001\n" + "\027SuggestArticlesResponse\022G\n" - + "\017article_answers\030\001 \003(\0132..go" - + "ogle.cloud.dialogflow.v2beta1.ArticleAnswer\022\026\n" + + "\017article_answers\030\001 \003(\0132..googl" + + "e.cloud.dialogflow.v2beta1.ArticleAnswer\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\"\221\002\n" + "\030SuggestFaqAnswersRequest\022=\n" @@ -591,8 +641,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022X\n" - + "\023assist_query_params\030\004 \001(\01326.google.cloud." - + "dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\212\001\n" + + "\023assist_query_params\030\004 \001(\01326.google.cloud.dia" + + "logflow.v2beta1.AssistQueryParametersB\003\340A\001\"\212\001\n" + "\031SuggestFaqAnswersResponse\022?\n" + "\013faq_answers\030\001" + " \003(\0132*.google.cloud.dialogflow.v2beta1.FaqAnswer\022\026\n" @@ -613,13 +663,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\"\253\003\n" + "\033GenerateSuggestionsResponse\022|\n" - + "\034generator_suggestion_answers\030\001 \003(\0132V.google.clou" - + "d.dialogflow.v2beta1.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + + "\034generator_suggestion_answers\030\001 \003(\0132V.google.cloud.d" + + "ialogflow.v2beta1.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\032\315\001\n" + "\031GeneratorSuggestionAnswer\022R\n" - + "\024generator_suggestion\030\001 \001(\01324" - + ".google.cloud.dialogflow.v2beta1.GeneratorSuggestion\022\030\n" + + "\024generator_suggestion\030\001 \001(\01324.go" + + "ogle.cloud.dialogflow.v2beta1.GeneratorSuggestion\022\030\n" + "\020source_generator\030\002 \001(\t\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\"\254\001\n" @@ -632,16 +682,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\t\022E\n" + "\010articles\030\002" + " \003(\01323.google.cloud.dialogflow.v2beta1.Suggestion.Article\022J\n" - + "\013faq_answers\030\004 \003" - + "(\01325.google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer\022/\n" + + "\013faq_answers\030\004 \003(\0132" + + "5.google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer\022/\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.Timestamp\022\026\n" + "\016latest_message\030\007 \001(\t\032\324\001\n" + "\007Article\022\r\n" + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\020\n" + "\010snippets\030\003 \003(\t\022S\n" - + "\010metadata\030\005" - + " \003(\0132A.google.cloud.dialogflow.v2beta1.Suggestion.Article.MetadataEntry\022\025\n\r" + + "\010metadata\030\005 " + + "\003(\0132A.google.cloud.dialogflow.v2beta1.Suggestion.Article.MetadataEntry\022\025\n\r" + "answer_record\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -678,22 +728,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\001" + " \001(\01325.google.cloud.dialogflow.v2beta1.ResponseMessage.TextH\000\022*\n" + "\007payload\030\002 \001(\0132\027.google.protobuf.StructH\000\022_\n" - + "\022live_agent_handoff\030\003 \001(\0132A.google.cloud.dialogf" - + "low.v2beta1.ResponseMessage.LiveAgentHandoffH\000\022Z\n" - + "\017end_interaction\030\004 \001(\0132?.google" - + ".cloud.dialogflow.v2beta1.ResponseMessage.EndInteractionH\000\022R\n" - + "\013mixed_audio\030\005 \001(\0132" - + ";.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioH\000\022i\n" - + "\027telephony_transfer_call\030\006 \001(\0132F.google.cloud.dialogflo" - + "w.v2beta1.ResponseMessage.TelephonyTransferCallH\000\032\024\n" + + "\022live_agent_handoff\030\003 \001(\0132A.google.cloud.dialogflow" + + ".v2beta1.ResponseMessage.LiveAgentHandoffH\000\022Z\n" + + "\017end_interaction\030\004 \001(\0132?.google.cl" + + "oud.dialogflow.v2beta1.ResponseMessage.EndInteractionH\000\022R\n" + + "\013mixed_audio\030\005 \001(\0132;.g" + + "oogle.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioH\000\022i\n" + + "\027telephony_transfer_call\030\006 \001(\0132F.google.cloud.dialogflow.v" + + "2beta1.ResponseMessage.TelephonyTransferCallH\000\032\024\n" + "\004Text\022\014\n" + "\004text\030\001 \003(\t\032=\n" + "\020LiveAgentHandoff\022)\n" + "\010metadata\030\001 \001(\0132\027.google.protobuf.Struct\032\020\n" + "\016EndInteraction\032\276\001\n\n" + "MixedAudio\022U\n" - + "\010segments\030\001 \003(\0132C.google.cloud" - + ".dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment\032Y\n" + + "\010segments\030\001 \003(\0132C.google.cloud.di" + + "alogflow.v2beta1.ResponseMessage.MixedAudio.Segment\032Y\n" + "\007Segment\022\017\n" + "\005audio\030\001 \001(\014H\000\022\r\n" + "\003uri\030\002 \001(\tH\000\022#\n" @@ -717,123 +767,187 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\"\264\006\n" + "\025KnowledgeAssistAnswer\022^\n" - + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialogflow.v" - + "2beta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" - + "\026suggested_query_answer\030\002 \001(\0132F.go" - + "ogle.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialogflow.v2be" + + "ta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" + + "\026suggested_query_answer\030\002 \001(\0132F.googl" + + "e.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + "answer_record\030\003 \001(\t\032$\n" + "\016SuggestedQuery\022\022\n\n" + "query_text\030\001 \001(\t\032\225\004\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022f\n\n" - + "faq_source\030\003 \001(\0132P.google.c" - + "loud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" - + "\021generative_source\030\004 \001(\0132W.google.cloud.dial" - + "ogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132P.google.clou" + + "d.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" + + "\021generative_source\030\004 \001(\0132W.google.cloud.dialogf" + + "low.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\345\001\n" + "\020GenerativeSource\022q\n" - + "\010snippets\030\001 \003(\0132_.google.cloud.dia" - + "logflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132_.google.cloud.dialog" + + "flow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" + "\005title\030\004 \001(\t\022)\n" + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" - + "\006source2\201\036\n" - + "\014Participants\022\271\002\n" - + "\021CreateParticipant\0229.google.cloud.dialogflow.v2beta1.CreateParticipantReque" - + "st\032,.google.cloud.dialogflow.v2beta1.Par" - + "ticipant\"\272\001\332A\022parent,participant\202\323\344\223\002\236\001\"" - + "9/v2beta1/{parent=projects/*/conversations/*}/participants:\013participantZT\"E/v2be" - + "ta1/{parent=projects/*/locations/*/conve" - + "rsations/*}/participants:\013participant\022\213\002\n" - + "\016GetParticipant\0226.google.cloud.dialogfl" - + "ow.v2beta1.GetParticipantRequest\032,.googl" - + "e.cloud.dialogflow.v2beta1.Participant\"\222" - + "\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta1/{name=projects" - + "/*/conversations/*/participants/*}ZG\022E/v" - + "2beta1/{name=projects/*/locations/*/conversations/*/participants/*}\022\236\002\n" - + "\020ListParticipants\0228.google.cloud.dialogflow.v2bet" - + "a1.ListParticipantsRequest\0329.google.cloud.dialogflow.v2beta1.ListParticipantsRes" - + "ponse\"\224\001\332A\006parent\202\323\344\223\002\204\001\0229/v2beta1/{pare" - + "nt=projects/*/conversations/*}/participa" - + "ntsZG\022E/v2beta1/{parent=projects/*/locations/*/conversations/*}/participants\022\326\002\n" - + "\021UpdateParticipant\0229.google.cloud.dialog" - + "flow.v2beta1.UpdateParticipantRequest\032,.google.cloud.dialogflow.v2beta1.Particip" - + "ant\"\327\001\332A\027participant,update_mask\202\323\344\223\002\266\0012" - + "E/v2beta1/{participant.name=projects/*/conversations/*/participants/*}:\013particip" - + "antZ`2Q/v2beta1/{participant.name=projec" - + "ts/*/locations/*/conversations/*/participants/*}:\013participant\022\216\003\n" - + "\016AnalyzeContent\0226.google.cloud.dialogflow.v2beta1.Analy" - + "zeContentRequest\0327.google.cloud.dialogfl" - + "ow.v2beta1.AnalyzeContentResponse\"\212\002\332A\026p" - + "articipant,text_input\332A\027participant,audi" - + "o_input\332A\027participant,event_input\202\323\344\223\002\266\001" - + "\"O/v2beta1/{participant=projects/*/conversations/*/participants/*}:analyzeConten" - + "t:\001*Z`\"[/v2beta1/{participant=projects/*" - + "/locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\242\001\n" - + "\027StreamingAnal", - "yzeContent\022?.google.cloud.dialogflow.v2b" - + "eta1.StreamingAnalyzeContentRequest\032@.go" - + "ogle.cloud.dialogflow.v2beta1.StreamingA" - + "nalyzeContentResponse\"\000(\0010\001\022\335\002\n\017SuggestA" - + "rticles\0227.google.cloud.dialogflow.v2beta" - + "1.SuggestArticlesRequest\0328.google.cloud." - + "dialogflow.v2beta1.SuggestArticlesRespon" - + "se\"\326\001\332A\006parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=" - + "projects/*/conversations/*/participants/" - + "*}/suggestions:suggestArticles:\001*Zh\"c/v2" - + "beta1/{parent=projects/*/locations/*/con" - + "versations/*/participants/*}/suggestions" - + ":suggestArticles:\001*\022\347\002\n\021SuggestFaqAnswer" - + "s\0229.google.cloud.dialogflow.v2beta1.Sugg" - + "estFaqAnswersRequest\032:.google.cloud.dial" - + "ogflow.v2beta1.SuggestFaqAnswersResponse" - + "\"\332\001\332A\006parent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=pr" - + "ojects/*/conversations/*/participants/*}" - + "/suggestions:suggestFaqAnswers:\001*Zj\"e/v2" - + "beta1/{parent=projects/*/locations/*/con" - + "versations/*/participants/*}/suggestions" - + ":suggestFaqAnswers:\001*\022\361\002\n\023SuggestSmartRe" - + "plies\022;.google.cloud.dialogflow.v2beta1." - + "SuggestSmartRepliesRequest\032<.google.clou" - + "d.dialogflow.v2beta1.SuggestSmartReplies" - + "Response\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{p" - + "arent=projects/*/conversations/*/partici" - + "pants/*}/suggestions:suggestSmartReplies" - + ":\001*Zl\"g/v2beta1/{parent=projects/*/locat" - + "ions/*/conversations/*/participants/*}/s" - + "uggestions:suggestSmartReplies:\001*\022\367\002\n\026Su" - + "ggestKnowledgeAssist\022>.google.cloud.dial" - + "ogflow.v2beta1.SuggestKnowledgeAssistReq" - + "uest\032?.google.cloud.dialogflow.v2beta1.S" - + "uggestKnowledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"" - + "^/v2beta1/{parent=projects/*/conversatio" + + "\006source\"\327\n\n" + + "\"BidiStreamingAnalyzeContentRequest\022\\\n" + + "\006config\030\001 \001(\0132J.g" + + "oogle.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" + + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v2be" + + "ta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + + "\006Config\022B\n" + + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + + "%dialogflow.googleapis.com/Participant\022}\n" + + "\024voice_session_config\030\002 \001(\0132].go" + + "ogle.cloud.dialogflow.v2beta1.BidiStream" + + "ingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + + " initial_virtual_agent_parameters\030\003" + + " \001(\0132\027.google.protobuf.Struct\022\\\n" + + "\"initial_virtual_agent_query_params\030\004 " + + "\001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\032\361\002\n" + + "\022VoiceSessionConfig\022Q\n" + + "\024input_audio_encoding\030\001 \001(\0162..google.clou" + + "d.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + + "\035input_audio_sample_rate_hertz\030\002 \001(\005B\003\340A\002\022X\n" + + "\025output_audio_encoding\030\003 \001(\01624.goo" + + "gle.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + + "\036output_audio_sample_rate_hertz\030\004 \001(\005B\003\340A\002\022+\n" + + "\036enable_cx_proactive_processing\030\005 \001(\010B\003\340A\001\022(\n" + + "\033enable_streaming_synthesize\030\027 \001(\010B\003\340A\001B\010\n" + + "\006config\032\265\001\n" + + "\tTurnInput\022\016\n" + + "\004text\030\001 \001(\tH\000\0227\n" + + "\006intent\030\002 \001(\tB%\372A\"\n" + + " dialogflow.googleapis.com/IntentH\000\022\017\n" + + "\005event\030\003 \001(\tH\000\022>\n" + + "\030virtual_agent_parameters\030\004" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001B\016\n" + + "\014main_content\032\306\001\n" + + "\005Input\022\017\n" + + "\005audio\030\001 \001(\014H\000\022D\n" + + "\004dtmf\030\002 \001(\01324.google.cloud.dial", + "ogflow.v2beta1.TelephonyDtmfEventsH\000\022]\n\004" + + "turn\030\003 \001(\0132M.google.cloud.dialogflow.v2b" + + "eta1.BidiStreamingAnalyzeContentRequest." + + "TurnInputH\000B\007\n\005inputB\t\n\007request\"\345\003\n#Bidi" + + "StreamingAnalyzeContentResponse\022Y\n\022recog" + + "nition_result\030\001 \001(\0132;.google.cloud.dialo" + + "gflow.v2beta1.StreamingRecognitionResult" + + "H\000\022m\n\017barge_in_signal\030\002 \001(\0132R.google.clo" + + "ud.dialogflow.v2beta1.BidiStreamingAnaly" + + "zeContentResponse.BargeInSignalH\000\022[\n\030ana" + + "lyze_content_response\030\003 \001(\01327.google.clo" + + "ud.dialogflow.v2beta1.AnalyzeContentResp" + + "onseH\000\022j\n\rturn_complete\030\004 \001(\0132Q.google.c" + + "loud.dialogflow.v2beta1.BidiStreamingAna" + + "lyzeContentResponse.TurnCompleteH\000\032\017\n\rBa" + + "rgeInSignal\032\016\n\014TurnCompleteB\n\n\010response2" + + "\262\037\n\014Participants\022\271\002\n\021CreateParticipant\0229" + + ".google.cloud.dialogflow.v2beta1.CreateP" + + "articipantRequest\032,.google.cloud.dialogf" + + "low.v2beta1.Participant\"\272\001\332A\022parent,part" + + "icipant\202\323\344\223\002\236\001\"9/v2beta1/{parent=project" + + "s/*/conversations/*}/participants:\013parti" + + "cipantZT\"E/v2beta1/{parent=projects/*/lo" + + "cations/*/conversations/*}/participants:" + + "\013participant\022\213\002\n\016GetParticipant\0226.google" + + ".cloud.dialogflow.v2beta1.GetParticipant" + + "Request\032,.google.cloud.dialogflow.v2beta" + + "1.Participant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta1" + + "/{name=projects/*/conversations/*/partic" + + "ipants/*}ZG\022E/v2beta1/{name=projects/*/l" + + "ocations/*/conversations/*/participants/" + + "*}\022\236\002\n\020ListParticipants\0228.google.cloud.d" + + "ialogflow.v2beta1.ListParticipantsReques" + + "t\0329.google.cloud.dialogflow.v2beta1.List" + + "ParticipantsResponse\"\224\001\332A\006parent\202\323\344\223\002\204\001\022" + + "9/v2beta1/{parent=projects/*/conversatio" + + "ns/*}/participantsZG\022E/v2beta1/{parent=p" + + "rojects/*/locations/*/conversations/*}/p" + + "articipants\022\326\002\n\021UpdateParticipant\0229.goog" + + "le.cloud.dialogflow.v2beta1.UpdatePartic" + + "ipantRequest\032,.google.cloud.dialogflow.v" + + "2beta1.Participant\"\327\001\332A\027participant,upda" + + "te_mask\202\323\344\223\002\266\0012E/v2beta1/{participant.na" + + "me=projects/*/conversations/*/participan" + + "ts/*}:\013participantZ`2Q/v2beta1/{particip" + + "ant.name=projects/*/locations/*/conversa" + + "tions/*/participants/*}:\013participant\022\216\003\n" + + "\016AnalyzeContent\0226.google.cloud.dialogflo" + + "w.v2beta1.AnalyzeContentRequest\0327.google" + + ".cloud.dialogflow.v2beta1.AnalyzeContent" + + "Response\"\212\002\332A\026participant,text_input\332A\027p" + + "articipant,audio_input\332A\027participant,eve" + + "nt_input\202\323\344\223\002\266\001\"O/v2beta1/{participant=p" + + "rojects/*/conversations/*/participants/*" + + "}:analyzeContent:\001*Z`\"[/v2beta1/{partici" + + "pant=projects/*/locations/*/conversation" + + "s/*/participants/*}:analyzeContent:\001*\022\242\001" + + "\n\027StreamingAnalyzeContent\022?.google.cloud" + + ".dialogflow.v2beta1.StreamingAnalyzeCont" + + "entRequest\032@.google.cloud.dialogflow.v2b" + + "eta1.StreamingAnalyzeContentResponse\"\000(\001" + + "0\001\022\256\001\n\033BidiStreamingAnalyzeContent\022C.goo" + + "gle.cloud.dialogflow.v2beta1.BidiStreami" + + "ngAnalyzeContentRequest\032D.google.cloud.d" + + "ialogflow.v2beta1.BidiStreamingAnalyzeCo" + + "ntentResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles\022" + + "7.google.cloud.dialogflow.v2beta1.Sugges" + + "tArticlesRequest\0328.google.cloud.dialogfl" + + "ow.v2beta1.SuggestArticlesResponse\"\326\001\332A\006" + + "parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=projects" + + "/*/conversations/*/participants/*}/sugge" + + "stions:suggestArticles:\001*Zh\"c/v2beta1/{p" + + "arent=projects/*/locations/*/conversatio" + "ns/*/participants/*}/suggestions:suggest" - + "KnowledgeAssist:\001*Zo\"j/v2beta1/{parent=p" - + "rojects/*/locations/*/conversations/*/pa" - + "rticipants/*}/suggestions:suggestKnowled" - + "geAssist:\001*\022\330\001\n\017ListSuggestions\0227.google" - + ".cloud.dialogflow.v2beta1.ListSuggestion" - + "sRequest\0328.google.cloud.dialogflow.v2bet" - + "a1.ListSuggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/" - + "v2beta1/{parent=projects/*/conversations" - + "/*/participants/*}/suggestions\022\351\001\n\021Compi" - + "leSuggestion\0229.google.cloud.dialogflow.v" - + "2beta1.CompileSuggestionRequest\032:.google" - + ".cloud.dialogflow.v2beta1.CompileSuggest" - + "ionResponse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent" - + "=projects/*/conversations/*/participants" - + "/*}/suggestions:compile:\001*\032x\312A\031dialogflo" - + "w.googleapis.com\322AYhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/dialogflowB\245\001\n#com.goo" - + "gle.cloud.dialogflow.v2beta1B\020Participan" - + "tProtoP\001ZCcloud.google.com/go/dialogflow" - + "/apiv2beta1/dialogflowpb;dialogflowpb\242\002\002" - + "DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006pr" - + "oto3" + + "Articles:\001*\022\347\002\n\021SuggestFaqAnswers\0229.goog" + + "le.cloud.dialogflow.v2beta1.SuggestFaqAn" + + "swersRequest\032:.google.cloud.dialogflow.v" + + "2beta1.SuggestFaqAnswersResponse\"\332\001\332A\006pa" + + "rent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/*" + + "/conversations/*/participants/*}/suggest" + + "ions:suggestFaqAnswers:\001*Zj\"e/v2beta1/{p" + + "arent=projects/*/locations/*/conversatio" + + "ns/*/participants/*}/suggestions:suggest" + + "FaqAnswers:\001*\022\361\002\n\023SuggestSmartReplies\022;." + + "google.cloud.dialogflow.v2beta1.SuggestS" + + "martRepliesRequest\032<.google.cloud.dialog" + + "flow.v2beta1.SuggestSmartRepliesResponse" + + "\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=pr" + + "ojects/*/conversations/*/participants/*}" + + "/suggestions:suggestSmartReplies:\001*Zl\"g/" + + "v2beta1/{parent=projects/*/locations/*/c" + + "onversations/*/participants/*}/suggestio" + + "ns:suggestSmartReplies:\001*\022\367\002\n\026SuggestKno" + + "wledgeAssist\022>.google.cloud.dialogflow.v" + + "2beta1.SuggestKnowledgeAssistRequest\032?.g" + + "oogle.cloud.dialogflow.v2beta1.SuggestKn" + + "owledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"^/v2beta" + + "1/{parent=projects/*/conversations/*/par" + + "ticipants/*}/suggestions:suggestKnowledg" + + "eAssist:\001*Zo\"j/v2beta1/{parent=projects/" + + "*/locations/*/conversations/*/participan" + + "ts/*}/suggestions:suggestKnowledgeAssist" + + ":\001*\022\330\001\n\017ListSuggestions\0227.google.cloud.d" + + "ialogflow.v2beta1.ListSuggestionsRequest" + + "\0328.google.cloud.dialogflow.v2beta1.ListS" + + "uggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1/" + + "{parent=projects/*/conversations/*/parti" + + "cipants/*}/suggestions\022\351\001\n\021CompileSugges" + + "tion\0229.google.cloud.dialogflow.v2beta1.C" + + "ompileSuggestionRequest\032:.google.cloud.d" + + "ialogflow.v2beta1.CompileSuggestionRespo" + + "nse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=project" + + "s/*/conversations/*/participants/*}/sugg" + + "estions:compile:\001*\032x\312A\031dialogflow.google" + + "apis.com\322AYhttps://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis" + + ".com/auth/dialogflowB\245\001\n#com.google.clou" + + "d.dialogflow.v2beta1B\020ParticipantProtoP\001" + + "ZCcloud.google.com/go/dialogflow/apiv2be" + + "ta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Goo" + + "gle.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -857,7 +971,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Participant_descriptor, new java.lang.String[] { - "Name", "Role", "ObfuscatedExternalUserId", "DocumentsMetadataFilters", + "Name", + "Role", + "ObfuscatedExternalUserId", + "DocumentsMetadataFilters", + "AgentDesktopSource", }); internal_static_google_cloud_dialogflow_v2beta1_Participant_DocumentsMetadataFiltersEntry_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Participant_descriptor @@ -968,7 +1086,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestionInput_descriptor, new java.lang.String[] { - "AnswerRecord", "TextOverride", "Parameters", "IntentInput", + "AnswerRecord", "TextOverride", "Parameters", "Action", "IntentInput", "SendTime", }); internal_static_google_cloud_dialogflow_v2beta1_IntentInput_descriptor = getDescriptor().getMessageTypes().get(11); @@ -1489,6 +1607,91 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "Text", "Title", "Metadata", }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor, + new java.lang.String[] { + "Config", "Input", "Request", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_descriptor, + new java.lang.String[] { + "Participant", + "VoiceSessionConfig", + "InitialVirtualAgentParameters", + "InitialVirtualAgentQueryParams", + "Config", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Config_VoiceSessionConfig_descriptor, + new java.lang.String[] { + "InputAudioEncoding", + "InputAudioSampleRateHertz", + "OutputAudioEncoding", + "OutputAudioSampleRateHertz", + "EnableCxProactiveProcessing", + "EnableStreamingSynthesize", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor, + new java.lang.String[] { + "Text", "Intent", "Event", "VirtualAgentParameters", "MainContent", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor, + new java.lang.String[] { + "Audio", "Dtmf", "Turn", "Input", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor, + new java.lang.String[] { + "RecognitionResult", + "BargeInSignal", + "AnalyzeContentResponse", + "TurnComplete", + "Response", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor, + new java.lang.String[] {}); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RaiSettings.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RaiSettings.java new file mode 100644 index 000000000000..9cdadd0a7496 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RaiSettings.java @@ -0,0 +1,2351 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Settings for Responsible AI checks.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.RaiSettings} + */ +public final class RaiSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.RaiSettings) + RaiSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RaiSettings.newBuilder() to construct. + private RaiSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RaiSettings() { + raiCategoryConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RaiSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.RaiSettings.class, + com.google.cloud.dialogflow.v2beta1.RaiSettings.Builder.class); + } + + public interface RaiCategoryConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Optional. The RAI category.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for category. + */ + int getCategoryValue(); + + /** + * + * + *
                                          +     * Optional. The RAI category.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The category. + */ + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory getCategory(); + + /** + * + * + *
                                          +     * Optional. The sensitivity level for this category.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sensitivityLevel. + */ + int getSensitivityLevelValue(); + + /** + * + * + *
                                          +     * Optional. The sensitivity level for this category.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitivityLevel. + */ + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + getSensitivityLevel(); + } + + /** + * + * + *
                                          +   * Configuration for a specific RAI category.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig} + */ + public static final class RaiCategoryConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig) + RaiCategoryConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RaiCategoryConfig.newBuilder() to construct. + private RaiCategoryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RaiCategoryConfig() { + category_ = 0; + sensitivityLevel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RaiCategoryConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.class, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder.class); + } + + /** + * + * + *
                                          +     * Enum for RAI category.
                                          +     * 
                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory} + */ + public enum RaiCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +       * Default value.
                                          +       * 
                                          + * + * RAI_CATEGORY_UNSPECIFIED = 0; + */ + RAI_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
                                          +       * Dangerous content.
                                          +       * 
                                          + * + * DANGEROUS_CONTENT = 1; + */ + DANGEROUS_CONTENT(1), + /** + * + * + *
                                          +       * Sexually explicit content.
                                          +       * 
                                          + * + * SEXUALLY_EXPLICIT = 2; + */ + SEXUALLY_EXPLICIT(2), + /** + * + * + *
                                          +       * Harassment content.
                                          +       * 
                                          + * + * HARASSMENT = 3; + */ + HARASSMENT(3), + /** + * + * + *
                                          +       * Hate speech content.
                                          +       * 
                                          + * + * HATE_SPEECH = 4; + */ + HATE_SPEECH(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +       * Default value.
                                          +       * 
                                          + * + * RAI_CATEGORY_UNSPECIFIED = 0; + */ + public static final int RAI_CATEGORY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +       * Dangerous content.
                                          +       * 
                                          + * + * DANGEROUS_CONTENT = 1; + */ + public static final int DANGEROUS_CONTENT_VALUE = 1; + + /** + * + * + *
                                          +       * Sexually explicit content.
                                          +       * 
                                          + * + * SEXUALLY_EXPLICIT = 2; + */ + public static final int SEXUALLY_EXPLICIT_VALUE = 2; + + /** + * + * + *
                                          +       * Harassment content.
                                          +       * 
                                          + * + * HARASSMENT = 3; + */ + public static final int HARASSMENT_VALUE = 3; + + /** + * + * + *
                                          +       * Hate speech content.
                                          +       * 
                                          + * + * HATE_SPEECH = 4; + */ + public static final int HATE_SPEECH_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 RaiCategory 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 RaiCategory forNumber(int value) { + switch (value) { + case 0: + return RAI_CATEGORY_UNSPECIFIED; + case 1: + return DANGEROUS_CONTENT; + case 2: + return SEXUALLY_EXPLICIT; + case 3: + return HARASSMENT; + case 4: + return HATE_SPEECH; + 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 RaiCategory findValueByNumber(int number) { + return RaiCategory.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RaiCategory[] VALUES = values(); + + public static RaiCategory 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 RaiCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory) + } + + /** + * + * + *
                                          +     * Enum for user-configurable sensitivity levels.
                                          +     * 
                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel} + */ + public enum SensitivityLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +       * Default value.
                                          +       * If unspecified, the default behavior is:
                                          +       * - DANGEROUS_CONTENT: BLOCK_FEW
                                          +       * - SEXUALLY_EXPLICIT: BLOCK_SOME
                                          +       * - HARASSMENT: BLOCK_SOME
                                          +       * - HATE_SPEECH: BLOCK_SOME
                                          +       * 
                                          + * + * SENSITIVITY_LEVEL_UNSPECIFIED = 0; + */ + SENSITIVITY_LEVEL_UNSPECIFIED(0), + /** + * + * + *
                                          +       * Block most potentially sensitive responses.
                                          +       * 
                                          + * + * BLOCK_MOST = 1; + */ + BLOCK_MOST(1), + /** + * + * + *
                                          +       * Block some potentially sensitive responses.
                                          +       * 
                                          + * + * BLOCK_SOME = 2; + */ + BLOCK_SOME(2), + /** + * + * + *
                                          +       * Block a few potentially sensitive responses.
                                          +       * 
                                          + * + * BLOCK_FEW = 3; + */ + BLOCK_FEW(3), + /** + * + * + *
                                          +       * No filtering for this category.
                                          +       * 
                                          + * + * BLOCK_NONE = 4; + */ + BLOCK_NONE(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +       * Default value.
                                          +       * If unspecified, the default behavior is:
                                          +       * - DANGEROUS_CONTENT: BLOCK_FEW
                                          +       * - SEXUALLY_EXPLICIT: BLOCK_SOME
                                          +       * - HARASSMENT: BLOCK_SOME
                                          +       * - HATE_SPEECH: BLOCK_SOME
                                          +       * 
                                          + * + * SENSITIVITY_LEVEL_UNSPECIFIED = 0; + */ + public static final int SENSITIVITY_LEVEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +       * Block most potentially sensitive responses.
                                          +       * 
                                          + * + * BLOCK_MOST = 1; + */ + public static final int BLOCK_MOST_VALUE = 1; + + /** + * + * + *
                                          +       * Block some potentially sensitive responses.
                                          +       * 
                                          + * + * BLOCK_SOME = 2; + */ + public static final int BLOCK_SOME_VALUE = 2; + + /** + * + * + *
                                          +       * Block a few potentially sensitive responses.
                                          +       * 
                                          + * + * BLOCK_FEW = 3; + */ + public static final int BLOCK_FEW_VALUE = 3; + + /** + * + * + *
                                          +       * No filtering for this category.
                                          +       * 
                                          + * + * BLOCK_NONE = 4; + */ + public static final int BLOCK_NONE_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 SensitivityLevel 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 SensitivityLevel forNumber(int value) { + switch (value) { + case 0: + return SENSITIVITY_LEVEL_UNSPECIFIED; + case 1: + return BLOCK_MOST; + case 2: + return BLOCK_SOME; + case 3: + return BLOCK_FEW; + case 4: + return BLOCK_NONE; + 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 SensitivityLevel findValueByNumber(int number) { + return SensitivityLevel.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final SensitivityLevel[] VALUES = values(); + + public static SensitivityLevel 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 SensitivityLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel) + } + + public static final int CATEGORY_FIELD_NUMBER = 1; + private int category_ = 0; + + /** + * + * + *
                                          +     * Optional. The RAI category.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
                                          +     * Optional. The RAI category.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory + getCategory() { + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory result = + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory.forNumber( + category_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory + .UNRECOGNIZED + : result; + } + + public static final int SENSITIVITY_LEVEL_FIELD_NUMBER = 2; + private int sensitivityLevel_ = 0; + + /** + * + * + *
                                          +     * Optional. The sensitivity level for this category.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sensitivityLevel. + */ + @java.lang.Override + public int getSensitivityLevelValue() { + return sensitivityLevel_; + } + + /** + * + * + *
                                          +     * Optional. The sensitivity level for this category.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitivityLevel. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + getSensitivityLevel() { + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel result = + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + .forNumber(sensitivityLevel_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + .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 (category_ + != com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory + .RAI_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, category_); + } + if (sensitivityLevel_ + != com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + .SENSITIVITY_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, sensitivityLevel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (category_ + != com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory + .RAI_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, category_); + } + if (sensitivityLevel_ + != com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + .SENSITIVITY_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, sensitivityLevel_); + } + 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.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig other = + (com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig) obj; + + if (category_ != other.category_) return false; + if (sensitivityLevel_ != other.sensitivityLevel_) 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) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + SENSITIVITY_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + sensitivityLevel_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig 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.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig 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.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Configuration for a specific RAI category.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig) + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.class, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + category_ = 0; + sensitivityLevel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_RaiCategoryConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig build() { + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig result = + new com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sensitivityLevel_ = sensitivityLevel_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + .getDefaultInstance()) return this; + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (other.sensitivityLevel_ != 0) { + setSensitivityLevelValue(other.getSensitivityLevelValue()); + } + 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: + { + category_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sensitivityLevel_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 category_ = 0; + + /** + * + * + *
                                          +       * Optional. The RAI category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
                                          +       * Optional. The RAI category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryValue(int value) { + category_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The RAI category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory + getCategory() { + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory result = + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory.forNumber( + category_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +       * Optional. The RAI category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + category_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The RAI category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000001); + category_ = 0; + onChanged(); + return this; + } + + private int sensitivityLevel_ = 0; + + /** + * + * + *
                                          +       * Optional. The sensitivity level for this category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sensitivityLevel. + */ + @java.lang.Override + public int getSensitivityLevelValue() { + return sensitivityLevel_; + } + + /** + * + * + *
                                          +       * Optional. The sensitivity level for this category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for sensitivityLevel to set. + * @return This builder for chaining. + */ + public Builder setSensitivityLevelValue(int value) { + sensitivityLevel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The sensitivity level for this category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitivityLevel. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + getSensitivityLevel() { + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel result = + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + .forNumber(sensitivityLevel_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +       * Optional. The sensitivity level for this category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sensitivityLevel to set. + * @return This builder for chaining. + */ + public Builder setSensitivityLevel( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + sensitivityLevel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The sensitivity level for this category.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSensitivityLevel() { + bitField0_ = (bitField0_ & ~0x00000002); + sensitivityLevel_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig) + private static final com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RaiCategoryConfig 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.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RAI_CATEGORY_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + raiCategoryConfigs_; + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getRaiCategoryConfigsList() { + return raiCategoryConfigs_; + } + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder> + getRaiCategoryConfigsOrBuilderList() { + return raiCategoryConfigs_; + } + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + @java.lang.Override + public int getRaiCategoryConfigsCount() { + return raiCategoryConfigs_.size(); + } + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig getRaiCategoryConfigs( + int index) { + return raiCategoryConfigs_.get(index); + } + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder + getRaiCategoryConfigsOrBuilder(int index) { + return raiCategoryConfigs_.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 < raiCategoryConfigs_.size(); i++) { + output.writeMessage(1, raiCategoryConfigs_.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 < raiCategoryConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, raiCategoryConfigs_.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.cloud.dialogflow.v2beta1.RaiSettings)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.RaiSettings other = + (com.google.cloud.dialogflow.v2beta1.RaiSettings) obj; + + if (!getRaiCategoryConfigsList().equals(other.getRaiCategoryConfigsList())) 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 (getRaiCategoryConfigsCount() > 0) { + hash = (37 * hash) + RAI_CATEGORY_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getRaiCategoryConfigsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings 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.dialogflow.v2beta1.RaiSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings 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.dialogflow.v2beta1.RaiSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.RaiSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Settings for Responsible AI checks.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.RaiSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.RaiSettings) + com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.RaiSettings.class, + com.google.cloud.dialogflow.v2beta1.RaiSettings.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.RaiSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (raiCategoryConfigsBuilder_ == null) { + raiCategoryConfigs_ = java.util.Collections.emptyList(); + } else { + raiCategoryConfigs_ = null; + raiCategoryConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_RaiSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.RaiSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings build() { + com.google.cloud.dialogflow.v2beta1.RaiSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.RaiSettings buildPartial() { + com.google.cloud.dialogflow.v2beta1.RaiSettings result = + new com.google.cloud.dialogflow.v2beta1.RaiSettings(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.RaiSettings result) { + if (raiCategoryConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + raiCategoryConfigs_ = java.util.Collections.unmodifiableList(raiCategoryConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.raiCategoryConfigs_ = raiCategoryConfigs_; + } else { + result.raiCategoryConfigs_ = raiCategoryConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.RaiSettings result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.RaiSettings) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.RaiSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.RaiSettings other) { + if (other == com.google.cloud.dialogflow.v2beta1.RaiSettings.getDefaultInstance()) + return this; + if (raiCategoryConfigsBuilder_ == null) { + if (!other.raiCategoryConfigs_.isEmpty()) { + if (raiCategoryConfigs_.isEmpty()) { + raiCategoryConfigs_ = other.raiCategoryConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRaiCategoryConfigsIsMutable(); + raiCategoryConfigs_.addAll(other.raiCategoryConfigs_); + } + onChanged(); + } + } else { + if (!other.raiCategoryConfigs_.isEmpty()) { + if (raiCategoryConfigsBuilder_.isEmpty()) { + raiCategoryConfigsBuilder_.dispose(); + raiCategoryConfigsBuilder_ = null; + raiCategoryConfigs_ = other.raiCategoryConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + raiCategoryConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRaiCategoryConfigsFieldBuilder() + : null; + } else { + raiCategoryConfigsBuilder_.addAllMessages(other.raiCategoryConfigs_); + } + } + } + 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.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.parser(), + extensionRegistry); + if (raiCategoryConfigsBuilder_ == null) { + ensureRaiCategoryConfigsIsMutable(); + raiCategoryConfigs_.add(m); + } else { + raiCategoryConfigsBuilder_.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 + raiCategoryConfigs_ = java.util.Collections.emptyList(); + + private void ensureRaiCategoryConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + raiCategoryConfigs_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig>( + raiCategoryConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder> + raiCategoryConfigsBuilder_; + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public java.util.List + getRaiCategoryConfigsList() { + if (raiCategoryConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(raiCategoryConfigs_); + } else { + return raiCategoryConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public int getRaiCategoryConfigsCount() { + if (raiCategoryConfigsBuilder_ == null) { + return raiCategoryConfigs_.size(); + } else { + return raiCategoryConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig getRaiCategoryConfigs( + int index) { + if (raiCategoryConfigsBuilder_ == null) { + return raiCategoryConfigs_.get(index); + } else { + return raiCategoryConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public Builder setRaiCategoryConfigs( + int index, com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig value) { + if (raiCategoryConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRaiCategoryConfigsIsMutable(); + raiCategoryConfigs_.set(index, value); + onChanged(); + } else { + raiCategoryConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public Builder setRaiCategoryConfigs( + int index, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder builderForValue) { + if (raiCategoryConfigsBuilder_ == null) { + ensureRaiCategoryConfigsIsMutable(); + raiCategoryConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + raiCategoryConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public Builder addRaiCategoryConfigs( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig value) { + if (raiCategoryConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRaiCategoryConfigsIsMutable(); + raiCategoryConfigs_.add(value); + onChanged(); + } else { + raiCategoryConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public Builder addRaiCategoryConfigs( + int index, com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig value) { + if (raiCategoryConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRaiCategoryConfigsIsMutable(); + raiCategoryConfigs_.add(index, value); + onChanged(); + } else { + raiCategoryConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public Builder addRaiCategoryConfigs( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder builderForValue) { + if (raiCategoryConfigsBuilder_ == null) { + ensureRaiCategoryConfigsIsMutable(); + raiCategoryConfigs_.add(builderForValue.build()); + onChanged(); + } else { + raiCategoryConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public Builder addRaiCategoryConfigs( + int index, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder builderForValue) { + if (raiCategoryConfigsBuilder_ == null) { + ensureRaiCategoryConfigsIsMutable(); + raiCategoryConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + raiCategoryConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public Builder addAllRaiCategoryConfigs( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig> + values) { + if (raiCategoryConfigsBuilder_ == null) { + ensureRaiCategoryConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, raiCategoryConfigs_); + onChanged(); + } else { + raiCategoryConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public Builder clearRaiCategoryConfigs() { + if (raiCategoryConfigsBuilder_ == null) { + raiCategoryConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + raiCategoryConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public Builder removeRaiCategoryConfigs(int index) { + if (raiCategoryConfigsBuilder_ == null) { + ensureRaiCategoryConfigsIsMutable(); + raiCategoryConfigs_.remove(index); + onChanged(); + } else { + raiCategoryConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder + getRaiCategoryConfigsBuilder(int index) { + return getRaiCategoryConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder + getRaiCategoryConfigsOrBuilder(int index) { + if (raiCategoryConfigsBuilder_ == null) { + return raiCategoryConfigs_.get(index); + } else { + return raiCategoryConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder> + getRaiCategoryConfigsOrBuilderList() { + if (raiCategoryConfigsBuilder_ != null) { + return raiCategoryConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(raiCategoryConfigs_); + } + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder + addRaiCategoryConfigsBuilder() { + return getRaiCategoryConfigsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder + addRaiCategoryConfigsBuilder(int index) { + return getRaiCategoryConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Configuration for a set of RAI categories.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + public java.util.List + getRaiCategoryConfigsBuilderList() { + return getRaiCategoryConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder> + getRaiCategoryConfigsFieldBuilder() { + if (raiCategoryConfigsBuilder_ == null) { + raiCategoryConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.Builder, + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder>( + raiCategoryConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + raiCategoryConfigs_ = null; + } + return raiCategoryConfigsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.RaiSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.RaiSettings) + private static final com.google.cloud.dialogflow.v2beta1.RaiSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.RaiSettings(); + } + + public static com.google.cloud.dialogflow.v2beta1.RaiSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RaiSettings 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.dialogflow.v2beta1.RaiSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RaiSettingsOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RaiSettingsOrBuilder.java new file mode 100644 index 000000000000..a224e709457a --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RaiSettingsOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface RaiSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.RaiSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + java.util.List + getRaiCategoryConfigsList(); + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig getRaiCategoryConfigs( + int index); + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + int getRaiCategoryConfigsCount(); + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder> + getRaiCategoryConfigsOrBuilderList(); + + /** + * + * + *
                                          +   * Configuration for a set of RAI categories.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig rai_category_configs = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfigOrBuilder + getRaiCategoryConfigsOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java index 37d3b2a7baa8..6ed5c6e097b8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java @@ -253,8 +253,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ts\030\005 \001(\01324.google.cloud.dialogflow.v2bet" + "a1.TelephonyDtmfEvents\"\202\001\n\013MessageType\022\034" + "\n\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANSCRI" - + "PT\020\001\022\017\n\013DTMF_DIGITS\020\003\022\033\n\027END_OF_SINGLE_U" - + "TTERANCE\020\002\022\027\n\023PARTIAL_DTMF_DIGITS\020\004\"0\n\tT" + + "PT\020\001\022\033\n\027END_OF_SINGLE_UTTERANCE\020\002\022\017\n\013DTM" + + "F_DIGITS\020\003\022\027\n\023PARTIAL_DTMF_DIGITS\020\004\"0\n\tT" + "extInput\022\014\n\004text\030\001 \001(\t\022\025\n\rlanguage_code\030" + "\002 \001(\t\"^\n\nEventInput\022\014\n\004name\030\001 \001(\t\022+\n\npar" + "ameters\030\002 \001(\0132\027.google.protobuf.Struct\022\025" diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfig.java index 17d4af7974cf..cbe383bb5ff3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfig.java @@ -369,6 +369,9 @@ public int getSampleRateHertz() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not specified, the default language configured at + * [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + * is used. * * * string language_code = 8; @@ -397,6 +400,9 @@ public java.lang.String getLanguageCode() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not specified, the default language configured at + * [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + * is used. * * * string language_code = 8; @@ -1717,6 +1723,9 @@ public Builder clearSampleRateHertz() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not specified, the default language configured at + * [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + * is used. * * * string language_code = 8; @@ -1744,6 +1753,9 @@ public java.lang.String getLanguageCode() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not specified, the default language configured at + * [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + * is used. * * * string language_code = 8; @@ -1771,6 +1783,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not specified, the default language configured at + * [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + * is used. * * * string language_code = 8; @@ -1797,6 +1812,9 @@ public Builder setLanguageCode(java.lang.String value) { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not specified, the default language configured at + * [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + * is used. * * * string language_code = 8; @@ -1819,6 +1837,9 @@ public Builder clearLanguageCode() { * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not specified, the default language configured at + * [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + * is used. * * * string language_code = 8; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfigOrBuilder.java index 68eaeb70c829..145ae03bf1bd 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfigOrBuilder.java @@ -248,6 +248,9 @@ public interface SpeechToTextConfigOrBuilder * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not specified, the default language configured at + * [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + * is used. * * * string language_code = 8; @@ -265,6 +268,9 @@ public interface SpeechToTextConfigOrBuilder * Support](https://cloud.google.com/dialogflow/docs/reference/language) * for a list of the currently supported language codes. Note that queries in * the same session do not necessarily need to specify the same language. + * If not specified, the default language configured at + * [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + * is used. * * * string language_code = 8; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java index 8cc52d9eff92..cbd0bf5e0eea 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java @@ -648,7 +648,8 @@ public com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEventsOrBuilder getInput *
                                              * The intent to be triggered on V3 agent.
                                              * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +   * used to trigger the Welcome intent id if you are using text_config.
                                              * 
                                          * * string input_intent = 17; @@ -665,7 +666,8 @@ public boolean hasInputIntent() { *
                                              * The intent to be triggered on V3 agent.
                                              * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +   * used to trigger the Welcome intent id if you are using text_config.
                                              * 
                                          * * string input_intent = 17; @@ -695,7 +697,8 @@ public java.lang.String getInputIntent() { *
                                              * The intent to be triggered on V3 agent.
                                              * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +   * used to trigger the Welcome intent id if you are using text_config.
                                              * 
                                          * * string input_intent = 17; @@ -727,7 +730,7 @@ public com.google.protobuf.ByteString getInputIntentBytes() { *
                                              * The input event name.
                                              * This can only be sent once and would cancel the ongoing speech
                                          -   * recognition if any.
                                          +   * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                              * 
                                          * * string input_event = 20; @@ -744,7 +747,7 @@ public boolean hasInputEvent() { *
                                              * The input event name.
                                              * This can only be sent once and would cancel the ongoing speech
                                          -   * recognition if any.
                                          +   * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                              * 
                                          * * string input_event = 20; @@ -774,7 +777,7 @@ public java.lang.String getInputEvent() { *
                                              * The input event name.
                                              * This can only be sent once and would cancel the ongoing speech
                                          -   * recognition if any.
                                          +   * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                              * 
                                          * * string input_event = 20; @@ -3340,7 +3343,8 @@ public com.google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents.Builder getInputD *
                                                * The intent to be triggered on V3 agent.
                                                * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if you are using text_config.
                                                * 
                                          * * string input_intent = 17; @@ -3358,7 +3362,8 @@ public boolean hasInputIntent() { *
                                                * The intent to be triggered on V3 agent.
                                                * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if you are using text_config.
                                                * 
                                          * * string input_intent = 17; @@ -3389,7 +3394,8 @@ public java.lang.String getInputIntent() { *
                                                * The intent to be triggered on V3 agent.
                                                * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if you are using text_config.
                                                * 
                                          * * string input_intent = 17; @@ -3420,7 +3426,8 @@ public com.google.protobuf.ByteString getInputIntentBytes() { *
                                                * The intent to be triggered on V3 agent.
                                                * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if you are using text_config.
                                                * 
                                          * * string input_intent = 17; @@ -3444,7 +3451,8 @@ public Builder setInputIntent(java.lang.String value) { *
                                                * The intent to be triggered on V3 agent.
                                                * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if you are using text_config.
                                                * 
                                          * * string input_intent = 17; @@ -3466,7 +3474,8 @@ public Builder clearInputIntent() { *
                                                * The intent to be triggered on V3 agent.
                                                * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +     * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +     * used to trigger the Welcome intent id if you are using text_config.
                                                * 
                                          * * string input_intent = 17; @@ -3491,7 +3500,7 @@ public Builder setInputIntentBytes(com.google.protobuf.ByteString value) { *
                                                * The input event name.
                                                * This can only be sent once and would cancel the ongoing speech
                                          -     * recognition if any.
                                          +     * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                                * 
                                          * * string input_event = 20; @@ -3509,7 +3518,7 @@ public boolean hasInputEvent() { *
                                                * The input event name.
                                                * This can only be sent once and would cancel the ongoing speech
                                          -     * recognition if any.
                                          +     * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                                * 
                                          * * string input_event = 20; @@ -3540,7 +3549,7 @@ public java.lang.String getInputEvent() { *
                                                * The input event name.
                                                * This can only be sent once and would cancel the ongoing speech
                                          -     * recognition if any.
                                          +     * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                                * 
                                          * * string input_event = 20; @@ -3571,7 +3580,7 @@ public com.google.protobuf.ByteString getInputEventBytes() { *
                                                * The input event name.
                                                * This can only be sent once and would cancel the ongoing speech
                                          -     * recognition if any.
                                          +     * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                                * 
                                          * * string input_event = 20; @@ -3595,7 +3604,7 @@ public Builder setInputEvent(java.lang.String value) { *
                                                * The input event name.
                                                * This can only be sent once and would cancel the ongoing speech
                                          -     * recognition if any.
                                          +     * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                                * 
                                          * * string input_event = 20; @@ -3617,7 +3626,7 @@ public Builder clearInputEvent() { *
                                                * The input event name.
                                                * This can only be sent once and would cancel the ongoing speech
                                          -     * recognition if any.
                                          +     * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                                * 
                                          * * string input_event = 20; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java index 4782bfc495d2..8b29b7893d26 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java @@ -311,7 +311,8 @@ public interface StreamingAnalyzeContentRequestOrBuilder *
                                              * The intent to be triggered on V3 agent.
                                              * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +   * used to trigger the Welcome intent id if you are using text_config.
                                              * 
                                          * * string input_intent = 17; @@ -326,7 +327,8 @@ public interface StreamingAnalyzeContentRequestOrBuilder *
                                              * The intent to be triggered on V3 agent.
                                              * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +   * used to trigger the Welcome intent id if you are using text_config.
                                              * 
                                          * * string input_intent = 17; @@ -341,7 +343,8 @@ public interface StreamingAnalyzeContentRequestOrBuilder *
                                              * The intent to be triggered on V3 agent.
                                              * Format: `projects/<Project ID>/locations/<Location ID>/locations/
                                          -   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
                                          +   * <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. This can only be
                                          +   * used to trigger the Welcome intent id if you are using text_config.
                                              * 
                                          * * string input_intent = 17; @@ -356,7 +359,7 @@ public interface StreamingAnalyzeContentRequestOrBuilder *
                                              * The input event name.
                                              * This can only be sent once and would cancel the ongoing speech
                                          -   * recognition if any.
                                          +   * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                              * 
                                          * * string input_event = 20; @@ -371,7 +374,7 @@ public interface StreamingAnalyzeContentRequestOrBuilder *
                                              * The input event name.
                                              * This can only be sent once and would cancel the ongoing speech
                                          -   * recognition if any.
                                          +   * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                              * 
                                          * * string input_event = 20; @@ -386,7 +389,7 @@ public interface StreamingAnalyzeContentRequestOrBuilder *
                                              * The input event name.
                                              * This can only be sent once and would cancel the ongoing speech
                                          -   * recognition if any.
                                          +   * recognition if any. To trigger the Welcome intent use the event "WELCOME"
                                              * 
                                          * * string input_event = 20; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java index 95698155cab5..b17af71ef112 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java @@ -132,16 +132,6 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { * TRANSCRIPT = 1; */ TRANSCRIPT(1), - /** - * - * - *
                                          -     * Message contains DTMF digits.
                                          -     * 
                                          - * - * DTMF_DIGITS = 3; - */ - DTMF_DIGITS(3), /** * * @@ -158,6 +148,16 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { * END_OF_SINGLE_UTTERANCE = 2; */ END_OF_SINGLE_UTTERANCE(2), + /** + * + * + *
                                          +     * Message contains DTMF digits.
                                          +     * 
                                          + * + * DTMF_DIGITS = 3; + */ + DTMF_DIGITS(3), /** * * @@ -195,17 +195,6 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRANSCRIPT_VALUE = 1; - /** - * - * - *
                                          -     * Message contains DTMF digits.
                                          -     * 
                                          - * - * DTMF_DIGITS = 3; - */ - public static final int DTMF_DIGITS_VALUE = 3; - /** * * @@ -223,6 +212,17 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int END_OF_SINGLE_UTTERANCE_VALUE = 2; + /** + * + * + *
                                          +     * Message contains DTMF digits.
                                          +     * 
                                          + * + * DTMF_DIGITS = 3; + */ + public static final int DTMF_DIGITS_VALUE = 3; + /** * * @@ -264,10 +264,10 @@ public static MessageType forNumber(int value) { return MESSAGE_TYPE_UNSPECIFIED; case 1: return TRANSCRIPT; - case 3: - return DTMF_DIGITS; case 2: return END_OF_SINGLE_UTTERANCE; + case 3: + return DTMF_DIGITS; case 4: return PARTIAL_DTMF_DIGITS; default: diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionDedupingConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionDedupingConfig.java new file mode 100644 index 000000000000..7ca5feb6b6ed --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionDedupingConfig.java @@ -0,0 +1,650 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Config for suggestion deduping.
                                          + * NEXT_ID: 3
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig} + */ +public final class SuggestionDedupingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig) + SuggestionDedupingConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SuggestionDedupingConfig.newBuilder() to construct. + private SuggestionDedupingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuggestionDedupingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuggestionDedupingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.class, + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.Builder.class); + } + + public static final int ENABLE_DEDUPING_FIELD_NUMBER = 1; + private boolean enableDeduping_ = false; + + /** + * + * + *
                                          +   * Optional. Whether to enable suggestion deduping.
                                          +   * 
                                          + * + * bool enable_deduping = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableDeduping. + */ + @java.lang.Override + public boolean getEnableDeduping() { + return enableDeduping_; + } + + public static final int SIMILARITY_THRESHOLD_FIELD_NUMBER = 2; + private float similarityThreshold_ = 0F; + + /** + * + * + *
                                          +   * Optional. The threshold for similarity between two suggestions.
                                          +   * Acceptable value is [0.0, 1.0], default to 0.8
                                          +   * 
                                          + * + * float similarity_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The similarityThreshold. + */ + @java.lang.Override + public float getSimilarityThreshold() { + return similarityThreshold_; + } + + 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 (enableDeduping_ != false) { + output.writeBool(1, enableDeduping_); + } + if (java.lang.Float.floatToRawIntBits(similarityThreshold_) != 0) { + output.writeFloat(2, similarityThreshold_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableDeduping_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableDeduping_); + } + if (java.lang.Float.floatToRawIntBits(similarityThreshold_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, similarityThreshold_); + } + 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.dialogflow.v2beta1.SuggestionDedupingConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig other = + (com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig) obj; + + if (getEnableDeduping() != other.getEnableDeduping()) return false; + if (java.lang.Float.floatToIntBits(getSimilarityThreshold()) + != java.lang.Float.floatToIntBits(other.getSimilarityThreshold())) 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) + ENABLE_DEDUPING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDeduping()); + hash = (37 * hash) + SIMILARITY_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSimilarityThreshold()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig 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.dialogflow.v2beta1.SuggestionDedupingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig 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.dialogflow.v2beta1.SuggestionDedupingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Config for suggestion deduping.
                                          +   * NEXT_ID: 3
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig) + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.class, + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableDeduping_ = false; + similarityThreshold_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestionDedupingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig build() { + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig result = + new com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableDeduping_ = enableDeduping_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.similarityThreshold_ = similarityThreshold_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig.getDefaultInstance()) + return this; + if (other.getEnableDeduping() != false) { + setEnableDeduping(other.getEnableDeduping()); + } + if (other.getSimilarityThreshold() != 0F) { + setSimilarityThreshold(other.getSimilarityThreshold()); + } + 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: + { + enableDeduping_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: + { + similarityThreshold_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + 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 boolean enableDeduping_; + + /** + * + * + *
                                          +     * Optional. Whether to enable suggestion deduping.
                                          +     * 
                                          + * + * bool enable_deduping = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableDeduping. + */ + @java.lang.Override + public boolean getEnableDeduping() { + return enableDeduping_; + } + + /** + * + * + *
                                          +     * Optional. Whether to enable suggestion deduping.
                                          +     * 
                                          + * + * bool enable_deduping = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableDeduping to set. + * @return This builder for chaining. + */ + public Builder setEnableDeduping(boolean value) { + + enableDeduping_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Whether to enable suggestion deduping.
                                          +     * 
                                          + * + * bool enable_deduping = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableDeduping() { + bitField0_ = (bitField0_ & ~0x00000001); + enableDeduping_ = false; + onChanged(); + return this; + } + + private float similarityThreshold_; + + /** + * + * + *
                                          +     * Optional. The threshold for similarity between two suggestions.
                                          +     * Acceptable value is [0.0, 1.0], default to 0.8
                                          +     * 
                                          + * + * float similarity_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The similarityThreshold. + */ + @java.lang.Override + public float getSimilarityThreshold() { + return similarityThreshold_; + } + + /** + * + * + *
                                          +     * Optional. The threshold for similarity between two suggestions.
                                          +     * Acceptable value is [0.0, 1.0], default to 0.8
                                          +     * 
                                          + * + * float similarity_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The similarityThreshold to set. + * @return This builder for chaining. + */ + public Builder setSimilarityThreshold(float value) { + + similarityThreshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The threshold for similarity between two suggestions.
                                          +     * Acceptable value is [0.0, 1.0], default to 0.8
                                          +     * 
                                          + * + * float similarity_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSimilarityThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + similarityThreshold_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig) + private static final com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestionDedupingConfig 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.dialogflow.v2beta1.SuggestionDedupingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionDedupingConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionDedupingConfigOrBuilder.java new file mode 100644 index 000000000000..3be971ca94fb --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionDedupingConfigOrBuilder.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface SuggestionDedupingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SuggestionDedupingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. Whether to enable suggestion deduping.
                                          +   * 
                                          + * + * bool enable_deduping = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableDeduping. + */ + boolean getEnableDeduping(); + + /** + * + * + *
                                          +   * Optional. The threshold for similarity between two suggestions.
                                          +   * Acceptable value is [0.0, 1.0], default to 0.8
                                          +   * 
                                          + * + * float similarity_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The similarityThreshold. + */ + float getSimilarityThreshold(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInput.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInput.java index f010c1215b03..34b7f0d69e69 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInput.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInput.java @@ -23,7 +23,7 @@ * * *
                                          - * Represents the selection of a suggestion.
                                          + * Represents the action to take for a tool call that requires confirmation.
                                            * 
                                          * * Protobuf type {@code google.cloud.dialogflow.v2beta1.SuggestionInput} @@ -41,6 +41,7 @@ private SuggestionInput(com.google.protobuf.GeneratedMessageV3.Builder builde private SuggestionInput() { answerRecord_ = ""; + action_ = 0; } @java.lang.Override @@ -64,6 +65,198 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2beta1.SuggestionInput.Builder.class); } + /** + * + * + *
                                          +   * Indicate what type of action to take with the tool call.
                                          +   * 
                                          + * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.SuggestionInput.Action} + */ + public enum Action implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +     * Action not specified.
                                          +     * 
                                          + * + * ACTION_UNSPECIFIED = 0; + */ + ACTION_UNSPECIFIED(0), + /** + * + * + *
                                          +     * Indicates the user chooses to not make the tool call. It
                                          +     * is only applicable to tool calls that are waiting for user
                                          +     * confirmation.
                                          +     * 
                                          + * + * CANCEL = 1; + */ + CANCEL(1), + /** + * + * + *
                                          +     * Makes the tool call with provided parameters. This action is intended
                                          +     * for tool calls that only read but not write data.
                                          +     * 
                                          + * + * REVISE = 2; + */ + REVISE(2), + /** + * + * + *
                                          +     * Makes the tool call with provided parameters. This action is intended
                                          +     * for tool calls that may write data.
                                          +     * 
                                          + * + * CONFIRM = 3; + */ + CONFIRM(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +     * Action not specified.
                                          +     * 
                                          + * + * ACTION_UNSPECIFIED = 0; + */ + public static final int ACTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +     * Indicates the user chooses to not make the tool call. It
                                          +     * is only applicable to tool calls that are waiting for user
                                          +     * confirmation.
                                          +     * 
                                          + * + * CANCEL = 1; + */ + public static final int CANCEL_VALUE = 1; + + /** + * + * + *
                                          +     * Makes the tool call with provided parameters. This action is intended
                                          +     * for tool calls that only read but not write data.
                                          +     * 
                                          + * + * REVISE = 2; + */ + public static final int REVISE_VALUE = 2; + + /** + * + * + *
                                          +     * Makes the tool call with provided parameters. This action is intended
                                          +     * for tool calls that may write data.
                                          +     * 
                                          + * + * CONFIRM = 3; + */ + public static final int CONFIRM_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 Action 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 Action forNumber(int value) { + switch (value) { + case 0: + return ACTION_UNSPECIFIED; + case 1: + return CANCEL; + case 2: + return REVISE; + case 3: + return CONFIRM; + 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 Action findValueByNumber(int number) { + return Action.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.SuggestionInput.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Action[] VALUES = values(); + + public static Action 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 Action(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.SuggestionInput.Action) + } + private int bitField0_; public static final int ANSWER_RECORD_FIELD_NUMBER = 1; @@ -74,12 +267,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                          -   * Required. The ID of a suggestion selected by the human agent.
                                          -   * The suggestion(s) were generated in a previous call to
                                          -   * request Dialogflow assist.
                                          -   * The format is:
                                          -   * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
                                          -   * ID>` where <Answer Record ID> is an alphanumeric string.
                                          +   * Required. Format: `projects/<Project ID>/locations/<Location
                                          +   * ID>/answerRecords/<Answer Record ID>`
                                          +   * The answer record associated with the tool call.
                                              * 
                                          * * string answer_record = 1; @@ -103,12 +293,9 @@ public java.lang.String getAnswerRecord() { * * *
                                          -   * Required. The ID of a suggestion selected by the human agent.
                                          -   * The suggestion(s) were generated in a previous call to
                                          -   * request Dialogflow assist.
                                          -   * The format is:
                                          -   * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
                                          -   * ID>` where <Answer Record ID> is an alphanumeric string.
                                          +   * Required. Format: `projects/<Project ID>/locations/<Location
                                          +   * ID>/answerRecords/<Answer Record ID>`
                                          +   * The answer record associated with the tool call.
                                              * 
                                          * * string answer_record = 1; @@ -191,29 +378,8 @@ public com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder getTextOverrideOrB * * *
                                          -   * In Dialogflow assist for v3, the user can submit a form by sending
                                          -   * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -   * form is uniquely determined by the
                                          -   * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -   * field, which identifies a v3
                                          -   * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -   * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -   * are specified via the
                                          -   * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -   * field.
                                          -   *
                                          -   * Depending on your protocol or client library language, this is a
                                          -   * map, associative array, symbol table, dictionary, or JSON object
                                          -   * composed of a collection of (MapKey, MapValue) pairs:
                                          -   *
                                          -   * * MapKey type: string
                                          -   * * MapKey value: parameter name
                                          -   * * MapValue type: If parameter's entity type is a composite entity then use
                                          -   * map, otherwise, depending on the parameter value type, it could be one of
                                          -   * string, number, boolean, null, list or map.
                                          -   * * MapValue value: If parameter's entity type is a composite entity then use
                                          -   * map from composite entity property names to property values, otherwise,
                                          -   * use parameter value.
                                          +   * Parameters to be used for the tool call.  If not provided, the tool
                                          +   * will be called without any parameters.
                                              * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -229,29 +395,8 @@ public boolean hasParameters() { * * *
                                          -   * In Dialogflow assist for v3, the user can submit a form by sending
                                          -   * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -   * form is uniquely determined by the
                                          -   * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -   * field, which identifies a v3
                                          -   * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -   * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -   * are specified via the
                                          -   * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -   * field.
                                          -   *
                                          -   * Depending on your protocol or client library language, this is a
                                          -   * map, associative array, symbol table, dictionary, or JSON object
                                          -   * composed of a collection of (MapKey, MapValue) pairs:
                                          -   *
                                          -   * * MapKey type: string
                                          -   * * MapKey value: parameter name
                                          -   * * MapValue type: If parameter's entity type is a composite entity then use
                                          -   * map, otherwise, depending on the parameter value type, it could be one of
                                          -   * string, number, boolean, null, list or map.
                                          -   * * MapValue value: If parameter's entity type is a composite entity then use
                                          -   * map from composite entity property names to property values, otherwise,
                                          -   * use parameter value.
                                          +   * Parameters to be used for the tool call.  If not provided, the tool
                                          +   * will be called without any parameters.
                                              * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -267,29 +412,8 @@ public com.google.protobuf.Struct getParameters() { * * *
                                          -   * In Dialogflow assist for v3, the user can submit a form by sending
                                          -   * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -   * form is uniquely determined by the
                                          -   * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -   * field, which identifies a v3
                                          -   * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -   * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -   * are specified via the
                                          -   * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -   * field.
                                          -   *
                                          -   * Depending on your protocol or client library language, this is a
                                          -   * map, associative array, symbol table, dictionary, or JSON object
                                          -   * composed of a collection of (MapKey, MapValue) pairs:
                                          -   *
                                          -   * * MapKey type: string
                                          -   * * MapKey value: parameter name
                                          -   * * MapValue type: If parameter's entity type is a composite entity then use
                                          -   * map, otherwise, depending on the parameter value type, it could be one of
                                          -   * string, number, boolean, null, list or map.
                                          -   * * MapValue value: If parameter's entity type is a composite entity then use
                                          -   * map from composite entity property names to property values, otherwise,
                                          -   * use parameter value.
                                          +   * Parameters to be used for the tool call.  If not provided, the tool
                                          +   * will be called without any parameters.
                                              * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -299,6 +423,49 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } + public static final int ACTION_FIELD_NUMBER = 5; + private int action_ = 0; + + /** + * + * + *
                                          +   * Optional. The type of action to take with the tool.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                          +   * Optional. The type of action to take with the tool.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action getAction() { + com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action result = + com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action.forNumber(action_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action.UNRECOGNIZED + : result; + } + public static final int INTENT_INPUT_FIELD_NUMBER = 6; private com.google.cloud.dialogflow.v2beta1.IntentInput intentInput_; @@ -352,6 +519,64 @@ public com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder getIntentInputOr : intentInput_; } + public static final int SEND_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp sendTime_; + + /** + * + * + *
                                          +   * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +   * timestamp (along with the answer record) will be included in the
                                          +   * corresponding tool call result so that it can be identified.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sendTime field is set. + */ + @java.lang.Override + public boolean hasSendTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +   * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +   * timestamp (along with the answer record) will be included in the
                                          +   * corresponding tool call result so that it can be identified.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sendTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSendTime() { + return sendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendTime_; + } + + /** + * + * + *
                                          +   * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +   * timestamp (along with the answer record) will be included in the
                                          +   * corresponding tool call result so that it can be identified.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder() { + return sendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -375,9 +600,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getParameters()); } + if (action_ + != com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action.ACTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, action_); + } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getIntentInput()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getSendTime()); + } getUnknownFields().writeTo(output); } @@ -396,9 +629,17 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getParameters()); } + if (action_ + != com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action.ACTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, action_); + } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIntentInput()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSendTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -424,10 +665,15 @@ public boolean equals(final java.lang.Object obj) { if (hasParameters()) { if (!getParameters().equals(other.getParameters())) return false; } + if (action_ != other.action_) return false; if (hasIntentInput() != other.hasIntentInput()) return false; if (hasIntentInput()) { if (!getIntentInput().equals(other.getIntentInput())) return false; } + if (hasSendTime() != other.hasSendTime()) return false; + if (hasSendTime()) { + if (!getSendTime().equals(other.getSendTime())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -449,10 +695,16 @@ public int hashCode() { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParameters().hashCode(); } + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; if (hasIntentInput()) { hash = (37 * hash) + INTENT_INPUT_FIELD_NUMBER; hash = (53 * hash) + getIntentInput().hashCode(); } + if (hasSendTime()) { + hash = (37 * hash) + SEND_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSendTime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -558,7 +810,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                          -   * Represents the selection of a suggestion.
                                          +   * Represents the action to take for a tool call that requires confirmation.
                                              * 
                                          * * Protobuf type {@code google.cloud.dialogflow.v2beta1.SuggestionInput} @@ -597,6 +849,7 @@ private void maybeForceBuilderInitialization() { getTextOverrideFieldBuilder(); getParametersFieldBuilder(); getIntentInputFieldBuilder(); + getSendTimeFieldBuilder(); } } @@ -615,11 +868,17 @@ public Builder clear() { parametersBuilder_.dispose(); parametersBuilder_ = null; } + action_ = 0; intentInput_ = null; if (intentInputBuilder_ != null) { intentInputBuilder_.dispose(); intentInputBuilder_ = null; } + sendTime_ = null; + if (sendTimeBuilder_ != null) { + sendTimeBuilder_.dispose(); + sendTimeBuilder_ = null; + } return this; } @@ -670,10 +929,17 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.SuggestionInput r to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.intentInput_ = intentInputBuilder_ == null ? intentInput_ : intentInputBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sendTime_ = sendTimeBuilder_ == null ? sendTime_ : sendTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -734,9 +1000,15 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SuggestionInput oth if (other.hasParameters()) { mergeParameters(other.getParameters()); } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } if (other.hasIntentInput()) { mergeIntentInput(other.getIntentInput()); } + if (other.hasSendTime()) { + mergeSendTime(other.getSendTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -781,12 +1053,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 34 + case 40: + { + action_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 case 50: { input.readMessage(getIntentInputFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 50 + case 58: + { + input.readMessage(getSendTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -812,12 +1096,9 @@ public Builder mergeFrom( * * *
                                          -     * Required. The ID of a suggestion selected by the human agent.
                                          -     * The suggestion(s) were generated in a previous call to
                                          -     * request Dialogflow assist.
                                          -     * The format is:
                                          -     * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
                                          -     * ID>` where <Answer Record ID> is an alphanumeric string.
                                          +     * Required. Format: `projects/<Project ID>/locations/<Location
                                          +     * ID>/answerRecords/<Answer Record ID>`
                                          +     * The answer record associated with the tool call.
                                                * 
                                          * * string answer_record = 1; @@ -840,12 +1121,9 @@ public java.lang.String getAnswerRecord() { * * *
                                          -     * Required. The ID of a suggestion selected by the human agent.
                                          -     * The suggestion(s) were generated in a previous call to
                                          -     * request Dialogflow assist.
                                          -     * The format is:
                                          -     * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
                                          -     * ID>` where <Answer Record ID> is an alphanumeric string.
                                          +     * Required. Format: `projects/<Project ID>/locations/<Location
                                          +     * ID>/answerRecords/<Answer Record ID>`
                                          +     * The answer record associated with the tool call.
                                                * 
                                          * * string answer_record = 1; @@ -868,12 +1146,9 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() { * * *
                                          -     * Required. The ID of a suggestion selected by the human agent.
                                          -     * The suggestion(s) were generated in a previous call to
                                          -     * request Dialogflow assist.
                                          -     * The format is:
                                          -     * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
                                          -     * ID>` where <Answer Record ID> is an alphanumeric string.
                                          +     * Required. Format: `projects/<Project ID>/locations/<Location
                                          +     * ID>/answerRecords/<Answer Record ID>`
                                          +     * The answer record associated with the tool call.
                                                * 
                                          * * string answer_record = 1; @@ -895,12 +1170,9 @@ public Builder setAnswerRecord(java.lang.String value) { * * *
                                          -     * Required. The ID of a suggestion selected by the human agent.
                                          -     * The suggestion(s) were generated in a previous call to
                                          -     * request Dialogflow assist.
                                          -     * The format is:
                                          -     * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
                                          -     * ID>` where <Answer Record ID> is an alphanumeric string.
                                          +     * Required. Format: `projects/<Project ID>/locations/<Location
                                          +     * ID>/answerRecords/<Answer Record ID>`
                                          +     * The answer record associated with the tool call.
                                                * 
                                          * * string answer_record = 1; @@ -918,12 +1190,9 @@ public Builder clearAnswerRecord() { * * *
                                          -     * Required. The ID of a suggestion selected by the human agent.
                                          -     * The suggestion(s) were generated in a previous call to
                                          -     * request Dialogflow assist.
                                          -     * The format is:
                                          -     * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
                                          -     * ID>` where <Answer Record ID> is an alphanumeric string.
                                          +     * Required. Format: `projects/<Project ID>/locations/<Location
                                          +     * ID>/answerRecords/<Answer Record ID>`
                                          +     * The answer record associated with the tool call.
                                                * 
                                          * * string answer_record = 1; @@ -1158,29 +1427,8 @@ public com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder getTextOverrideOrB * * *
                                          -     * In Dialogflow assist for v3, the user can submit a form by sending
                                          -     * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -     * form is uniquely determined by the
                                          -     * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -     * field, which identifies a v3
                                          -     * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -     * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -     * are specified via the
                                          -     * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -     * field.
                                          -     *
                                          -     * Depending on your protocol or client library language, this is a
                                          -     * map, associative array, symbol table, dictionary, or JSON object
                                          -     * composed of a collection of (MapKey, MapValue) pairs:
                                          -     *
                                          -     * * MapKey type: string
                                          -     * * MapKey value: parameter name
                                          -     * * MapValue type: If parameter's entity type is a composite entity then use
                                          -     * map, otherwise, depending on the parameter value type, it could be one of
                                          -     * string, number, boolean, null, list or map.
                                          -     * * MapValue value: If parameter's entity type is a composite entity then use
                                          -     * map from composite entity property names to property values, otherwise,
                                          -     * use parameter value.
                                          +     * Parameters to be used for the tool call.  If not provided, the tool
                                          +     * will be called without any parameters.
                                                * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -1195,29 +1443,8 @@ public boolean hasParameters() { * * *
                                          -     * In Dialogflow assist for v3, the user can submit a form by sending
                                          -     * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -     * form is uniquely determined by the
                                          -     * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -     * field, which identifies a v3
                                          -     * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -     * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -     * are specified via the
                                          -     * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -     * field.
                                          -     *
                                          -     * Depending on your protocol or client library language, this is a
                                          -     * map, associative array, symbol table, dictionary, or JSON object
                                          -     * composed of a collection of (MapKey, MapValue) pairs:
                                          -     *
                                          -     * * MapKey type: string
                                          -     * * MapKey value: parameter name
                                          -     * * MapValue type: If parameter's entity type is a composite entity then use
                                          -     * map, otherwise, depending on the parameter value type, it could be one of
                                          -     * string, number, boolean, null, list or map.
                                          -     * * MapValue value: If parameter's entity type is a composite entity then use
                                          -     * map from composite entity property names to property values, otherwise,
                                          -     * use parameter value.
                                          +     * Parameters to be used for the tool call.  If not provided, the tool
                                          +     * will be called without any parameters.
                                                * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -1236,29 +1463,8 @@ public com.google.protobuf.Struct getParameters() { * * *
                                          -     * In Dialogflow assist for v3, the user can submit a form by sending
                                          -     * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -     * form is uniquely determined by the
                                          -     * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -     * field, which identifies a v3
                                          -     * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -     * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -     * are specified via the
                                          -     * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -     * field.
                                          -     *
                                          -     * Depending on your protocol or client library language, this is a
                                          -     * map, associative array, symbol table, dictionary, or JSON object
                                          -     * composed of a collection of (MapKey, MapValue) pairs:
                                          -     *
                                          -     * * MapKey type: string
                                          -     * * MapKey value: parameter name
                                          -     * * MapValue type: If parameter's entity type is a composite entity then use
                                          -     * map, otherwise, depending on the parameter value type, it could be one of
                                          -     * string, number, boolean, null, list or map.
                                          -     * * MapValue value: If parameter's entity type is a composite entity then use
                                          -     * map from composite entity property names to property values, otherwise,
                                          -     * use parameter value.
                                          +     * Parameters to be used for the tool call.  If not provided, the tool
                                          +     * will be called without any parameters.
                                                * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -1281,29 +1487,8 @@ public Builder setParameters(com.google.protobuf.Struct value) { * * *
                                          -     * In Dialogflow assist for v3, the user can submit a form by sending
                                          -     * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -     * form is uniquely determined by the
                                          -     * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -     * field, which identifies a v3
                                          -     * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -     * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -     * are specified via the
                                          -     * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -     * field.
                                          -     *
                                          -     * Depending on your protocol or client library language, this is a
                                          -     * map, associative array, symbol table, dictionary, or JSON object
                                          -     * composed of a collection of (MapKey, MapValue) pairs:
                                          -     *
                                          -     * * MapKey type: string
                                          -     * * MapKey value: parameter name
                                          -     * * MapValue type: If parameter's entity type is a composite entity then use
                                          -     * map, otherwise, depending on the parameter value type, it could be one of
                                          -     * string, number, boolean, null, list or map.
                                          -     * * MapValue value: If parameter's entity type is a composite entity then use
                                          -     * map from composite entity property names to property values, otherwise,
                                          -     * use parameter value.
                                          +     * Parameters to be used for the tool call.  If not provided, the tool
                                          +     * will be called without any parameters.
                                                * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -1323,29 +1508,8 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) * * *
                                          -     * In Dialogflow assist for v3, the user can submit a form by sending
                                          -     * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -     * form is uniquely determined by the
                                          -     * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -     * field, which identifies a v3
                                          -     * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -     * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -     * are specified via the
                                          -     * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -     * field.
                                          -     *
                                          -     * Depending on your protocol or client library language, this is a
                                          -     * map, associative array, symbol table, dictionary, or JSON object
                                          -     * composed of a collection of (MapKey, MapValue) pairs:
                                          -     *
                                          -     * * MapKey type: string
                                          -     * * MapKey value: parameter name
                                          -     * * MapValue type: If parameter's entity type is a composite entity then use
                                          -     * map, otherwise, depending on the parameter value type, it could be one of
                                          -     * string, number, boolean, null, list or map.
                                          -     * * MapValue value: If parameter's entity type is a composite entity then use
                                          -     * map from composite entity property names to property values, otherwise,
                                          -     * use parameter value.
                                          +     * Parameters to be used for the tool call.  If not provided, the tool
                                          +     * will be called without any parameters.
                                                * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -1373,29 +1537,8 @@ public Builder mergeParameters(com.google.protobuf.Struct value) { * * *
                                          -     * In Dialogflow assist for v3, the user can submit a form by sending
                                          -     * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -     * form is uniquely determined by the
                                          -     * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -     * field, which identifies a v3
                                          -     * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -     * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -     * are specified via the
                                          -     * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -     * field.
                                          -     *
                                          -     * Depending on your protocol or client library language, this is a
                                          -     * map, associative array, symbol table, dictionary, or JSON object
                                          -     * composed of a collection of (MapKey, MapValue) pairs:
                                          -     *
                                          -     * * MapKey type: string
                                          -     * * MapKey value: parameter name
                                          -     * * MapValue type: If parameter's entity type is a composite entity then use
                                          -     * map, otherwise, depending on the parameter value type, it could be one of
                                          -     * string, number, boolean, null, list or map.
                                          -     * * MapValue value: If parameter's entity type is a composite entity then use
                                          -     * map from composite entity property names to property values, otherwise,
                                          -     * use parameter value.
                                          +     * Parameters to be used for the tool call.  If not provided, the tool
                                          +     * will be called without any parameters.
                                                * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -1415,29 +1558,8 @@ public Builder clearParameters() { * * *
                                          -     * In Dialogflow assist for v3, the user can submit a form by sending
                                          -     * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -     * form is uniquely determined by the
                                          -     * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -     * field, which identifies a v3
                                          -     * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -     * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -     * are specified via the
                                          -     * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -     * field.
                                          -     *
                                          -     * Depending on your protocol or client library language, this is a
                                          -     * map, associative array, symbol table, dictionary, or JSON object
                                          -     * composed of a collection of (MapKey, MapValue) pairs:
                                          -     *
                                          -     * * MapKey type: string
                                          -     * * MapKey value: parameter name
                                          -     * * MapValue type: If parameter's entity type is a composite entity then use
                                          -     * map, otherwise, depending on the parameter value type, it could be one of
                                          -     * string, number, boolean, null, list or map.
                                          -     * * MapValue value: If parameter's entity type is a composite entity then use
                                          -     * map from composite entity property names to property values, otherwise,
                                          -     * use parameter value.
                                          +     * Parameters to be used for the tool call.  If not provided, the tool
                                          +     * will be called without any parameters.
                                                * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -1452,29 +1574,8 @@ public com.google.protobuf.Struct.Builder getParametersBuilder() { * * *
                                          -     * In Dialogflow assist for v3, the user can submit a form by sending
                                          -     * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -     * form is uniquely determined by the
                                          -     * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -     * field, which identifies a v3
                                          -     * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -     * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -     * are specified via the
                                          -     * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -     * field.
                                          -     *
                                          -     * Depending on your protocol or client library language, this is a
                                          -     * map, associative array, symbol table, dictionary, or JSON object
                                          -     * composed of a collection of (MapKey, MapValue) pairs:
                                          -     *
                                          -     * * MapKey type: string
                                          -     * * MapKey value: parameter name
                                          -     * * MapValue type: If parameter's entity type is a composite entity then use
                                          -     * map, otherwise, depending on the parameter value type, it could be one of
                                          -     * string, number, boolean, null, list or map.
                                          -     * * MapValue value: If parameter's entity type is a composite entity then use
                                          -     * map from composite entity property names to property values, otherwise,
                                          -     * use parameter value.
                                          +     * Parameters to be used for the tool call.  If not provided, the tool
                                          +     * will be called without any parameters.
                                                * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -1491,29 +1592,8 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { * * *
                                          -     * In Dialogflow assist for v3, the user can submit a form by sending
                                          -     * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -     * form is uniquely determined by the
                                          -     * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -     * field, which identifies a v3
                                          -     * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -     * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -     * are specified via the
                                          -     * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -     * field.
                                          -     *
                                          -     * Depending on your protocol or client library language, this is a
                                          -     * map, associative array, symbol table, dictionary, or JSON object
                                          -     * composed of a collection of (MapKey, MapValue) pairs:
                                          -     *
                                          -     * * MapKey type: string
                                          -     * * MapKey value: parameter name
                                          -     * * MapValue type: If parameter's entity type is a composite entity then use
                                          -     * map, otherwise, depending on the parameter value type, it could be one of
                                          -     * string, number, boolean, null, list or map.
                                          -     * * MapValue value: If parameter's entity type is a composite entity then use
                                          -     * map from composite entity property names to property values, otherwise,
                                          -     * use parameter value.
                                          +     * Parameters to be used for the tool call.  If not provided, the tool
                                          +     * will be called without any parameters.
                                                * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -1535,6 +1615,113 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { return parametersBuilder_; } + private int action_ = 0; + + /** + * + * + *
                                          +     * Optional. The type of action to take with the tool.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                          +     * Optional. The type of action to take with the tool.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The type of action to take with the tool.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action getAction() { + com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action result = + com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action.forNumber(action_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +     * Optional. The type of action to take with the tool.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + action_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The type of action to take with the tool.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000008); + action_ = 0; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.v2beta1.IntentInput intentInput_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2beta1.IntentInput, @@ -1554,7 +1741,7 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { * @return Whether the intentInput field is set. */ public boolean hasIntentInput() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1596,7 +1783,7 @@ public Builder setIntentInput(com.google.cloud.dialogflow.v2beta1.IntentInput va } else { intentInputBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1617,7 +1804,7 @@ public Builder setIntentInput( } else { intentInputBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1633,7 +1820,7 @@ public Builder setIntentInput( */ public Builder mergeIntentInput(com.google.cloud.dialogflow.v2beta1.IntentInput value) { if (intentInputBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && intentInput_ != null && intentInput_ != com.google.cloud.dialogflow.v2beta1.IntentInput.getDefaultInstance()) { @@ -1645,7 +1832,7 @@ public Builder mergeIntentInput(com.google.cloud.dialogflow.v2beta1.IntentInput intentInputBuilder_.mergeFrom(value); } if (intentInput_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1661,7 +1848,7 @@ public Builder mergeIntentInput(com.google.cloud.dialogflow.v2beta1.IntentInput * .google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6; */ public Builder clearIntentInput() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); intentInput_ = null; if (intentInputBuilder_ != null) { intentInputBuilder_.dispose(); @@ -1681,7 +1868,7 @@ public Builder clearIntentInput() { * .google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6; */ public com.google.cloud.dialogflow.v2beta1.IntentInput.Builder getIntentInputBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getIntentInputFieldBuilder().getBuilder(); } @@ -1731,6 +1918,223 @@ public com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder getIntentInputOr return intentInputBuilder_; } + private com.google.protobuf.Timestamp sendTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + sendTimeBuilder_; + + /** + * + * + *
                                          +     * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +     * timestamp (along with the answer record) will be included in the
                                          +     * corresponding tool call result so that it can be identified.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sendTime field is set. + */ + public boolean hasSendTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                          +     * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +     * timestamp (along with the answer record) will be included in the
                                          +     * corresponding tool call result so that it can be identified.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sendTime. + */ + public com.google.protobuf.Timestamp getSendTime() { + if (sendTimeBuilder_ == null) { + return sendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendTime_; + } else { + return sendTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +     * timestamp (along with the answer record) will be included in the
                                          +     * corresponding tool call result so that it can be identified.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSendTime(com.google.protobuf.Timestamp value) { + if (sendTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sendTime_ = value; + } else { + sendTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +     * timestamp (along with the answer record) will be included in the
                                          +     * corresponding tool call result so that it can be identified.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSendTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (sendTimeBuilder_ == null) { + sendTime_ = builderForValue.build(); + } else { + sendTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +     * timestamp (along with the answer record) will be included in the
                                          +     * corresponding tool call result so that it can be identified.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSendTime(com.google.protobuf.Timestamp value) { + if (sendTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && sendTime_ != null + && sendTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSendTimeBuilder().mergeFrom(value); + } else { + sendTime_ = value; + } + } else { + sendTimeBuilder_.mergeFrom(value); + } + if (sendTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +     * timestamp (along with the answer record) will be included in the
                                          +     * corresponding tool call result so that it can be identified.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSendTime() { + bitField0_ = (bitField0_ & ~0x00000020); + sendTime_ = null; + if (sendTimeBuilder_ != null) { + sendTimeBuilder_.dispose(); + sendTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +     * timestamp (along with the answer record) will be included in the
                                          +     * corresponding tool call result so that it can be identified.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getSendTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getSendTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +     * timestamp (along with the answer record) will be included in the
                                          +     * corresponding tool call result so that it can be identified.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder() { + if (sendTimeBuilder_ != null) { + return sendTimeBuilder_.getMessageOrBuilder(); + } else { + return sendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendTime_; + } + } + + /** + * + * + *
                                          +     * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +     * timestamp (along with the answer record) will be included in the
                                          +     * corresponding tool call result so that it can be identified.
                                          +     * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getSendTimeFieldBuilder() { + if (sendTimeBuilder_ == null) { + sendTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSendTime(), getParentForChildren(), isClean()); + sendTime_ = null; + } + return sendTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInputOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInputOrBuilder.java index e181197bb922..ecb3899b9e48 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInputOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionInputOrBuilder.java @@ -28,12 +28,9 @@ public interface SuggestionInputOrBuilder * * *
                                          -   * Required. The ID of a suggestion selected by the human agent.
                                          -   * The suggestion(s) were generated in a previous call to
                                          -   * request Dialogflow assist.
                                          -   * The format is:
                                          -   * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
                                          -   * ID>` where <Answer Record ID> is an alphanumeric string.
                                          +   * Required. Format: `projects/<Project ID>/locations/<Location
                                          +   * ID>/answerRecords/<Answer Record ID>`
                                          +   * The answer record associated with the tool call.
                                              * 
                                          * * string answer_record = 1; @@ -46,12 +43,9 @@ public interface SuggestionInputOrBuilder * * *
                                          -   * Required. The ID of a suggestion selected by the human agent.
                                          -   * The suggestion(s) were generated in a previous call to
                                          -   * request Dialogflow assist.
                                          -   * The format is:
                                          -   * `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
                                          -   * ID>` where <Answer Record ID> is an alphanumeric string.
                                          +   * Required. Format: `projects/<Project ID>/locations/<Location
                                          +   * ID>/answerRecords/<Answer Record ID>`
                                          +   * The answer record associated with the tool call.
                                              * 
                                          * * string answer_record = 1; @@ -104,29 +98,8 @@ public interface SuggestionInputOrBuilder * * *
                                          -   * In Dialogflow assist for v3, the user can submit a form by sending
                                          -   * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -   * form is uniquely determined by the
                                          -   * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -   * field, which identifies a v3
                                          -   * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -   * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -   * are specified via the
                                          -   * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -   * field.
                                          -   *
                                          -   * Depending on your protocol or client library language, this is a
                                          -   * map, associative array, symbol table, dictionary, or JSON object
                                          -   * composed of a collection of (MapKey, MapValue) pairs:
                                          -   *
                                          -   * * MapKey type: string
                                          -   * * MapKey value: parameter name
                                          -   * * MapValue type: If parameter's entity type is a composite entity then use
                                          -   * map, otherwise, depending on the parameter value type, it could be one of
                                          -   * string, number, boolean, null, list or map.
                                          -   * * MapValue value: If parameter's entity type is a composite entity then use
                                          -   * map from composite entity property names to property values, otherwise,
                                          -   * use parameter value.
                                          +   * Parameters to be used for the tool call.  If not provided, the tool
                                          +   * will be called without any parameters.
                                              * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -139,29 +112,8 @@ public interface SuggestionInputOrBuilder * * *
                                          -   * In Dialogflow assist for v3, the user can submit a form by sending
                                          -   * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -   * form is uniquely determined by the
                                          -   * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -   * field, which identifies a v3
                                          -   * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -   * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -   * are specified via the
                                          -   * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -   * field.
                                          -   *
                                          -   * Depending on your protocol or client library language, this is a
                                          -   * map, associative array, symbol table, dictionary, or JSON object
                                          -   * composed of a collection of (MapKey, MapValue) pairs:
                                          -   *
                                          -   * * MapKey type: string
                                          -   * * MapKey value: parameter name
                                          -   * * MapValue type: If parameter's entity type is a composite entity then use
                                          -   * map, otherwise, depending on the parameter value type, it could be one of
                                          -   * string, number, boolean, null, list or map.
                                          -   * * MapValue value: If parameter's entity type is a composite entity then use
                                          -   * map from composite entity property names to property values, otherwise,
                                          -   * use parameter value.
                                          +   * Parameters to be used for the tool call.  If not provided, the tool
                                          +   * will be called without any parameters.
                                              * 
                                          * * .google.protobuf.Struct parameters = 4; @@ -174,35 +126,44 @@ public interface SuggestionInputOrBuilder * * *
                                          -   * In Dialogflow assist for v3, the user can submit a form by sending
                                          -   * a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The
                                          -   * form is uniquely determined by the
                                          -   * [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record]
                                          -   * field, which identifies a v3
                                          -   * [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the
                                          -   * current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters
                                          -   * are specified via the
                                          -   * [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters]
                                          -   * field.
                                          -   *
                                          -   * Depending on your protocol or client library language, this is a
                                          -   * map, associative array, symbol table, dictionary, or JSON object
                                          -   * composed of a collection of (MapKey, MapValue) pairs:
                                          -   *
                                          -   * * MapKey type: string
                                          -   * * MapKey value: parameter name
                                          -   * * MapValue type: If parameter's entity type is a composite entity then use
                                          -   * map, otherwise, depending on the parameter value type, it could be one of
                                          -   * string, number, boolean, null, list or map.
                                          -   * * MapValue value: If parameter's entity type is a composite entity then use
                                          -   * map from composite entity property names to property values, otherwise,
                                          -   * use parameter value.
                                          +   * Parameters to be used for the tool call.  If not provided, the tool
                                          +   * will be called without any parameters.
                                              * 
                                          * * .google.protobuf.Struct parameters = 4; */ com.google.protobuf.StructOrBuilder getParametersOrBuilder(); + /** + * + * + *
                                          +   * Optional. The type of action to take with the tool.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + + /** + * + * + *
                                          +   * Optional. The type of action to take with the tool.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SuggestionInput.Action action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The action. + */ + com.google.cloud.dialogflow.v2beta1.SuggestionInput.Action getAction(); + /** * * @@ -239,4 +200,50 @@ public interface SuggestionInputOrBuilder * .google.cloud.dialogflow.v2beta1.IntentInput intent_input = 6; */ com.google.cloud.dialogflow.v2beta1.IntentInputOrBuilder getIntentInputOrBuilder(); + + /** + * + * + *
                                          +   * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +   * timestamp (along with the answer record) will be included in the
                                          +   * corresponding tool call result so that it can be identified.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sendTime field is set. + */ + boolean hasSendTime(); + + /** + * + * + *
                                          +   * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +   * timestamp (along with the answer record) will be included in the
                                          +   * corresponding tool call result so that it can be identified.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sendTime. + */ + com.google.protobuf.Timestamp getSendTime(); + + /** + * + * + *
                                          +   * Optional. Time when the current suggest input is sent. For tool calls, this
                                          +   * timestamp (along with the answer record) will be included in the
                                          +   * corresponding tool call result so that it can be identified.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp send_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SummarizationEvaluationMetrics.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SummarizationEvaluationMetrics.java new file mode 100644 index 000000000000..9b3e6732f5e6 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SummarizationEvaluationMetrics.java @@ -0,0 +1,21952 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Evaluation metrics for summarization generator.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics} + */ +public final class SummarizationEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) + SummarizationEvaluationMetricsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SummarizationEvaluationMetrics.newBuilder() to construct. + private SummarizationEvaluationMetrics( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SummarizationEvaluationMetrics() { + summarizationEvaluationResults_ = java.util.Collections.emptyList(); + summarizationEvaluationMergedResultsUri_ = ""; + overallMetrics_ = java.util.Collections.emptyList(); + overallSectionTokens_ = java.util.Collections.emptyList(); + conversationDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SummarizationEvaluationMetrics(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Builder.class); + } + + public interface AccuracyDecompositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The breakdown point of the summary.
                                          +     * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The point. + */ + java.lang.String getPoint(); + + /** + * + * + *
                                          +     * Output only. The breakdown point of the summary.
                                          +     * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for point. + */ + com.google.protobuf.ByteString getPointBytes(); + + /** + * + * + *
                                          +     * Output only. The accuracy reasoning of the breakdown point.
                                          +     * 
                                          + * + * string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The accuracyReasoning. + */ + java.lang.String getAccuracyReasoning(); + + /** + * + * + *
                                          +     * Output only. The accuracy reasoning of the breakdown point.
                                          +     * 
                                          + * + * string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for accuracyReasoning. + */ + com.google.protobuf.ByteString getAccuracyReasoningBytes(); + + /** + * + * + *
                                          +     * Output only. Whether the breakdown point is accurate or not.
                                          +     * 
                                          + * + * optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the isAccurate field is set. + */ + boolean hasIsAccurate(); + + /** + * + * + *
                                          +     * Output only. Whether the breakdown point is accurate or not.
                                          +     * 
                                          + * + * optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAccurate. + */ + boolean getIsAccurate(); + } + + /** + * + * + *
                                          +   * Decomposition details for accuracy.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition} + */ + public static final class AccuracyDecomposition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition) + AccuracyDecompositionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AccuracyDecomposition.newBuilder() to construct. + private AccuracyDecomposition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccuracyDecomposition() { + point_ = ""; + accuracyReasoning_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccuracyDecomposition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder.class); + } + + private int bitField0_; + public static final int POINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object point_ = ""; + + /** + * + * + *
                                          +     * Output only. The breakdown point of the summary.
                                          +     * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The point. + */ + @java.lang.Override + public java.lang.String getPoint() { + java.lang.Object ref = point_; + 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(); + point_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The breakdown point of the summary.
                                          +     * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for point. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPointBytes() { + java.lang.Object ref = point_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + point_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCURACY_REASONING_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object accuracyReasoning_ = ""; + + /** + * + * + *
                                          +     * Output only. The accuracy reasoning of the breakdown point.
                                          +     * 
                                          + * + * string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The accuracyReasoning. + */ + @java.lang.Override + public java.lang.String getAccuracyReasoning() { + java.lang.Object ref = accuracyReasoning_; + 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(); + accuracyReasoning_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The accuracy reasoning of the breakdown point.
                                          +     * 
                                          + * + * string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for accuracyReasoning. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccuracyReasoningBytes() { + java.lang.Object ref = accuracyReasoning_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accuracyReasoning_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_ACCURATE_FIELD_NUMBER = 3; + private boolean isAccurate_ = false; + + /** + * + * + *
                                          +     * Output only. Whether the breakdown point is accurate or not.
                                          +     * 
                                          + * + * optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the isAccurate field is set. + */ + @java.lang.Override + public boolean hasIsAccurate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Output only. Whether the breakdown point is accurate or not.
                                          +     * 
                                          + * + * optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAccurate. + */ + @java.lang.Override + public boolean getIsAccurate() { + return isAccurate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(point_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, point_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accuracyReasoning_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accuracyReasoning_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, isAccurate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(point_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, point_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accuracyReasoning_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accuracyReasoning_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isAccurate_); + } + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + obj; + + if (!getPoint().equals(other.getPoint())) return false; + if (!getAccuracyReasoning().equals(other.getAccuracyReasoning())) return false; + if (hasIsAccurate() != other.hasIsAccurate()) return false; + if (hasIsAccurate()) { + if (getIsAccurate() != other.getIsAccurate()) 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) + POINT_FIELD_NUMBER; + hash = (53 * hash) + getPoint().hashCode(); + hash = (37 * hash) + ACCURACY_REASONING_FIELD_NUMBER; + hash = (53 * hash) + getAccuracyReasoning().hashCode(); + if (hasIsAccurate()) { + hash = (37 * hash) + IS_ACCURATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsAccurate()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Decomposition details for accuracy.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + point_ = ""; + accuracyReasoning_ = ""; + isAccurate_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AccuracyDecomposition_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.point_ = point_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accuracyReasoning_ = accuracyReasoning_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isAccurate_ = isAccurate_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance()) return this; + if (!other.getPoint().isEmpty()) { + point_ = other.point_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAccuracyReasoning().isEmpty()) { + accuracyReasoning_ = other.accuracyReasoning_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasIsAccurate()) { + setIsAccurate(other.getIsAccurate()); + } + 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: + { + point_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + accuracyReasoning_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + isAccurate_ = 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.lang.Object point_ = ""; + + /** + * + * + *
                                          +       * Output only. The breakdown point of the summary.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The point. + */ + public java.lang.String getPoint() { + java.lang.Object ref = point_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + point_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The breakdown point of the summary.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for point. + */ + public com.google.protobuf.ByteString getPointBytes() { + java.lang.Object ref = point_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + point_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The breakdown point of the summary.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The point to set. + * @return This builder for chaining. + */ + public Builder setPoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + point_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The breakdown point of the summary.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPoint() { + point_ = getDefaultInstance().getPoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The breakdown point of the summary.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for point to set. + * @return This builder for chaining. + */ + public Builder setPointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + point_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object accuracyReasoning_ = ""; + + /** + * + * + *
                                          +       * Output only. The accuracy reasoning of the breakdown point.
                                          +       * 
                                          + * + * string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The accuracyReasoning. + */ + public java.lang.String getAccuracyReasoning() { + java.lang.Object ref = accuracyReasoning_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accuracyReasoning_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The accuracy reasoning of the breakdown point.
                                          +       * 
                                          + * + * string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for accuracyReasoning. + */ + public com.google.protobuf.ByteString getAccuracyReasoningBytes() { + java.lang.Object ref = accuracyReasoning_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accuracyReasoning_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The accuracy reasoning of the breakdown point.
                                          +       * 
                                          + * + * string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The accuracyReasoning to set. + * @return This builder for chaining. + */ + public Builder setAccuracyReasoning(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accuracyReasoning_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The accuracy reasoning of the breakdown point.
                                          +       * 
                                          + * + * string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAccuracyReasoning() { + accuracyReasoning_ = getDefaultInstance().getAccuracyReasoning(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The accuracy reasoning of the breakdown point.
                                          +       * 
                                          + * + * string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for accuracyReasoning to set. + * @return This builder for chaining. + */ + public Builder setAccuracyReasoningBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accuracyReasoning_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean isAccurate_; + + /** + * + * + *
                                          +       * Output only. Whether the breakdown point is accurate or not.
                                          +       * 
                                          + * + * optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the isAccurate field is set. + */ + @java.lang.Override + public boolean hasIsAccurate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * Output only. Whether the breakdown point is accurate or not.
                                          +       * 
                                          + * + * optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAccurate. + */ + @java.lang.Override + public boolean getIsAccurate() { + return isAccurate_; + } + + /** + * + * + *
                                          +       * Output only. Whether the breakdown point is accurate or not.
                                          +       * 
                                          + * + * optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isAccurate to set. + * @return This builder for chaining. + */ + public Builder setIsAccurate(boolean value) { + + isAccurate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Whether the breakdown point is accurate or not.
                                          +       * 
                                          + * + * optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsAccurate() { + bitField0_ = (bitField0_ & ~0x00000004); + isAccurate_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccuracyDecomposition 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + @java.lang.Deprecated + public interface AdherenceDecompositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The breakdown point of the given instructions.
                                          +     * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The point. + */ + java.lang.String getPoint(); + + /** + * + * + *
                                          +     * Output only. The breakdown point of the given instructions.
                                          +     * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for point. + */ + com.google.protobuf.ByteString getPointBytes(); + + /** + * + * + *
                                          +     * Output only. The adherence reasoning of the breakdown point.
                                          +     * 
                                          + * + * string adherence_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adherenceReasoning. + */ + java.lang.String getAdherenceReasoning(); + + /** + * + * + *
                                          +     * Output only. The adherence reasoning of the breakdown point.
                                          +     * 
                                          + * + * string adherence_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adherenceReasoning. + */ + com.google.protobuf.ByteString getAdherenceReasoningBytes(); + + /** + * + * + *
                                          +     * Output only. Whether the breakdown point is adherent or not.
                                          +     * 
                                          + * + * bool is_adherent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAdherent. + */ + boolean getIsAdherent(); + } + + /** + * + * + *
                                          +   * Decomposition details for adherence.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition} + */ + @java.lang.Deprecated + public static final class AdherenceDecomposition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition) + AdherenceDecompositionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AdherenceDecomposition.newBuilder() to construct. + private AdherenceDecomposition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdherenceDecomposition() { + point_ = ""; + adherenceReasoning_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdherenceDecomposition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.Builder.class); + } + + public static final int POINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object point_ = ""; + + /** + * + * + *
                                          +     * Output only. The breakdown point of the given instructions.
                                          +     * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The point. + */ + @java.lang.Override + public java.lang.String getPoint() { + java.lang.Object ref = point_; + 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(); + point_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The breakdown point of the given instructions.
                                          +     * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for point. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPointBytes() { + java.lang.Object ref = point_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + point_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADHERENCE_REASONING_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object adherenceReasoning_ = ""; + + /** + * + * + *
                                          +     * Output only. The adherence reasoning of the breakdown point.
                                          +     * 
                                          + * + * string adherence_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adherenceReasoning. + */ + @java.lang.Override + public java.lang.String getAdherenceReasoning() { + java.lang.Object ref = adherenceReasoning_; + 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(); + adherenceReasoning_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The adherence reasoning of the breakdown point.
                                          +     * 
                                          + * + * string adherence_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adherenceReasoning. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdherenceReasoningBytes() { + java.lang.Object ref = adherenceReasoning_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adherenceReasoning_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_ADHERENT_FIELD_NUMBER = 3; + private boolean isAdherent_ = false; + + /** + * + * + *
                                          +     * Output only. Whether the breakdown point is adherent or not.
                                          +     * 
                                          + * + * bool is_adherent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAdherent. + */ + @java.lang.Override + public boolean getIsAdherent() { + return isAdherent_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(point_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, point_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adherenceReasoning_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, adherenceReasoning_); + } + if (isAdherent_ != false) { + output.writeBool(3, isAdherent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(point_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, point_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adherenceReasoning_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, adherenceReasoning_); + } + if (isAdherent_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isAdherent_); + } + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + obj; + + if (!getPoint().equals(other.getPoint())) return false; + if (!getAdherenceReasoning().equals(other.getAdherenceReasoning())) return false; + if (getIsAdherent() != other.getIsAdherent()) 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) + POINT_FIELD_NUMBER; + hash = (53 * hash) + getPoint().hashCode(); + hash = (37 * hash) + ADHERENCE_REASONING_FIELD_NUMBER; + hash = (53 * hash) + getAdherenceReasoning().hashCode(); + hash = (37 * hash) + IS_ADHERENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsAdherent()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Decomposition details for adherence.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecompositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + point_ = ""; + adherenceReasoning_ = ""; + isAdherent_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceDecomposition_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.point_ = point_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.adherenceReasoning_ = adherenceReasoning_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isAdherent_ = isAdherent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.getDefaultInstance()) return this; + if (!other.getPoint().isEmpty()) { + point_ = other.point_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAdherenceReasoning().isEmpty()) { + adherenceReasoning_ = other.adherenceReasoning_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getIsAdherent() != false) { + setIsAdherent(other.getIsAdherent()); + } + 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: + { + point_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + adherenceReasoning_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + isAdherent_ = 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.lang.Object point_ = ""; + + /** + * + * + *
                                          +       * Output only. The breakdown point of the given instructions.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The point. + */ + public java.lang.String getPoint() { + java.lang.Object ref = point_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + point_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The breakdown point of the given instructions.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for point. + */ + public com.google.protobuf.ByteString getPointBytes() { + java.lang.Object ref = point_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + point_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The breakdown point of the given instructions.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The point to set. + * @return This builder for chaining. + */ + public Builder setPoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + point_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The breakdown point of the given instructions.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPoint() { + point_ = getDefaultInstance().getPoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The breakdown point of the given instructions.
                                          +       * 
                                          + * + * string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for point to set. + * @return This builder for chaining. + */ + public Builder setPointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + point_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object adherenceReasoning_ = ""; + + /** + * + * + *
                                          +       * Output only. The adherence reasoning of the breakdown point.
                                          +       * 
                                          + * + * string adherence_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adherenceReasoning. + */ + public java.lang.String getAdherenceReasoning() { + java.lang.Object ref = adherenceReasoning_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adherenceReasoning_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The adherence reasoning of the breakdown point.
                                          +       * 
                                          + * + * string adherence_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adherenceReasoning. + */ + public com.google.protobuf.ByteString getAdherenceReasoningBytes() { + java.lang.Object ref = adherenceReasoning_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adherenceReasoning_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The adherence reasoning of the breakdown point.
                                          +       * 
                                          + * + * string adherence_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The adherenceReasoning to set. + * @return This builder for chaining. + */ + public Builder setAdherenceReasoning(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adherenceReasoning_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The adherence reasoning of the breakdown point.
                                          +       * 
                                          + * + * string adherence_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdherenceReasoning() { + adherenceReasoning_ = getDefaultInstance().getAdherenceReasoning(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The adherence reasoning of the breakdown point.
                                          +       * 
                                          + * + * string adherence_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for adherenceReasoning to set. + * @return This builder for chaining. + */ + public Builder setAdherenceReasoningBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adherenceReasoning_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean isAdherent_; + + /** + * + * + *
                                          +       * Output only. Whether the breakdown point is adherent or not.
                                          +       * 
                                          + * + * bool is_adherent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAdherent. + */ + @java.lang.Override + public boolean getIsAdherent() { + return isAdherent_; + } + + /** + * + * + *
                                          +       * Output only. Whether the breakdown point is adherent or not.
                                          +       * 
                                          + * + * bool is_adherent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isAdherent to set. + * @return This builder for chaining. + */ + public Builder setIsAdherent(boolean value) { + + isAdherent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Whether the breakdown point is adherent or not.
                                          +       * 
                                          + * + * bool is_adherent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsAdherent() { + bitField0_ = (bitField0_ & ~0x00000004); + isAdherent_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdherenceDecomposition 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AdherenceRubricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The question generated from instruction that used to
                                          +     * evaluate summary.
                                          +     * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The question. + */ + java.lang.String getQuestion(); + + /** + * + * + *
                                          +     * Output only. The question generated from instruction that used to
                                          +     * evaluate summary.
                                          +     * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for question. + */ + com.google.protobuf.ByteString getQuestionBytes(); + + /** + * + * + *
                                          +     * Output only. The reasoning of the rubric question is addressed or not.
                                          +     * 
                                          + * + * string reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reasoning. + */ + java.lang.String getReasoning(); + + /** + * + * + *
                                          +     * Output only. The reasoning of the rubric question is addressed or not.
                                          +     * 
                                          + * + * string reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for reasoning. + */ + com.google.protobuf.ByteString getReasoningBytes(); + + /** + * + * + *
                                          +     * Output only. A boolean that indicates whether the rubric question is
                                          +     * addressed or not.
                                          +     * 
                                          + * + * optional bool is_addressed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the isAddressed field is set. + */ + boolean hasIsAddressed(); + + /** + * + * + *
                                          +     * Output only. A boolean that indicates whether the rubric question is
                                          +     * addressed or not.
                                          +     * 
                                          + * + * optional bool is_addressed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAddressed. + */ + boolean getIsAddressed(); + } + + /** + * + * + *
                                          +   * Rubric result of the adherence evaluation. A rubric is ued to determine
                                          +   * if the summary adheres to all aspects of the given instructions.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric} + */ + public static final class AdherenceRubric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + AdherenceRubricOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AdherenceRubric.newBuilder() to construct. + private AdherenceRubric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdherenceRubric() { + question_ = ""; + reasoning_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdherenceRubric(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .Builder.class); + } + + private int bitField0_; + public static final int QUESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object question_ = ""; + + /** + * + * + *
                                          +     * Output only. The question generated from instruction that used to
                                          +     * evaluate summary.
                                          +     * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The question. + */ + @java.lang.Override + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + 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(); + question_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The question generated from instruction that used to
                                          +     * evaluate summary.
                                          +     * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for question. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REASONING_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object reasoning_ = ""; + + /** + * + * + *
                                          +     * Output only. The reasoning of the rubric question is addressed or not.
                                          +     * 
                                          + * + * string reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reasoning. + */ + @java.lang.Override + public java.lang.String getReasoning() { + java.lang.Object ref = reasoning_; + 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(); + reasoning_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The reasoning of the rubric question is addressed or not.
                                          +     * 
                                          + * + * string reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for reasoning. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReasoningBytes() { + java.lang.Object ref = reasoning_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reasoning_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_ADDRESSED_FIELD_NUMBER = 3; + private boolean isAddressed_ = false; + + /** + * + * + *
                                          +     * Output only. A boolean that indicates whether the rubric question is
                                          +     * addressed or not.
                                          +     * 
                                          + * + * optional bool is_addressed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the isAddressed field is set. + */ + @java.lang.Override + public boolean hasIsAddressed() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Output only. A boolean that indicates whether the rubric question is
                                          +     * addressed or not.
                                          +     * 
                                          + * + * optional bool is_addressed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAddressed. + */ + @java.lang.Override + public boolean getIsAddressed() { + return isAddressed_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(question_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, question_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reasoning_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reasoning_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, isAddressed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(question_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, question_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reasoning_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reasoning_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isAddressed_); + } + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) obj; + + if (!getQuestion().equals(other.getQuestion())) return false; + if (!getReasoning().equals(other.getReasoning())) return false; + if (hasIsAddressed() != other.hasIsAddressed()) return false; + if (hasIsAddressed()) { + if (getIsAddressed() != other.getIsAddressed()) 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) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + hash = (37 * hash) + REASONING_FIELD_NUMBER; + hash = (53 * hash) + getReasoning().hashCode(); + if (hasIsAddressed()) { + hash = (37 * hash) + IS_ADDRESSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsAddressed()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Rubric result of the adherence evaluation. A rubric is ued to determine
                                          +     * if the summary adheres to all aspects of the given instructions.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + question_ = ""; + reasoning_ = ""; + isAddressed_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_AdherenceRubric_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.question_ = question_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reasoning_ = reasoning_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isAddressed_ = isAddressed_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .getDefaultInstance()) return this; + if (!other.getQuestion().isEmpty()) { + question_ = other.question_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getReasoning().isEmpty()) { + reasoning_ = other.reasoning_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasIsAddressed()) { + setIsAddressed(other.getIsAddressed()); + } + 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: + { + question_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + reasoning_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + isAddressed_ = 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.lang.Object question_ = ""; + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The question. + */ + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for question. + */ + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The question to set. + * @return This builder for chaining. + */ + public Builder setQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearQuestion() { + question_ = getDefaultInstance().getQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for question to set. + * @return This builder for chaining. + */ + public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object reasoning_ = ""; + + /** + * + * + *
                                          +       * Output only. The reasoning of the rubric question is addressed or not.
                                          +       * 
                                          + * + * string reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reasoning. + */ + public java.lang.String getReasoning() { + java.lang.Object ref = reasoning_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reasoning_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The reasoning of the rubric question is addressed or not.
                                          +       * 
                                          + * + * string reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for reasoning. + */ + public com.google.protobuf.ByteString getReasoningBytes() { + java.lang.Object ref = reasoning_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reasoning_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The reasoning of the rubric question is addressed or not.
                                          +       * 
                                          + * + * string reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reasoning to set. + * @return This builder for chaining. + */ + public Builder setReasoning(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reasoning_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The reasoning of the rubric question is addressed or not.
                                          +       * 
                                          + * + * string reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReasoning() { + reasoning_ = getDefaultInstance().getReasoning(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The reasoning of the rubric question is addressed or not.
                                          +       * 
                                          + * + * string reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for reasoning to set. + * @return This builder for chaining. + */ + public Builder setReasoningBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reasoning_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean isAddressed_; + + /** + * + * + *
                                          +       * Output only. A boolean that indicates whether the rubric question is
                                          +       * addressed or not.
                                          +       * 
                                          + * + * optional bool is_addressed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the isAddressed field is set. + */ + @java.lang.Override + public boolean hasIsAddressed() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * Output only. A boolean that indicates whether the rubric question is
                                          +       * addressed or not.
                                          +       * 
                                          + * + * optional bool is_addressed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAddressed. + */ + @java.lang.Override + public boolean getIsAddressed() { + return isAddressed_; + } + + /** + * + * + *
                                          +       * Output only. A boolean that indicates whether the rubric question is
                                          +       * addressed or not.
                                          +       * 
                                          + * + * optional bool is_addressed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isAddressed to set. + * @return This builder for chaining. + */ + public Builder setIsAddressed(boolean value) { + + isAddressed_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. A boolean that indicates whether the rubric question is
                                          +       * addressed or not.
                                          +       * 
                                          + * + * optional bool is_addressed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsAddressed() { + bitField0_ = (bitField0_ & ~0x00000004); + isAddressed_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubric + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdherenceRubric 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CompletenessRubricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The question generated from instruction that used to
                                          +     * evaluate summary.
                                          +     * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The question. + */ + java.lang.String getQuestion(); + + /** + * + * + *
                                          +     * Output only. The question generated from instruction that used to
                                          +     * evaluate summary.
                                          +     * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for question. + */ + com.google.protobuf.ByteString getQuestionBytes(); + + /** + * + * + *
                                          +     * Output only. A boolean that indicates whether the rubric question is
                                          +     * addressed or not.
                                          +     * 
                                          + * + * optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the isAddressed field is set. + */ + boolean hasIsAddressed(); + + /** + * + * + *
                                          +     * Output only. A boolean that indicates whether the rubric question is
                                          +     * addressed or not.
                                          +     * 
                                          + * + * optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAddressed. + */ + boolean getIsAddressed(); + } + + /** + * + * + *
                                          +   * Rubric details of the completeness evaluation result.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric} + */ + public static final class CompletenessRubric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric) + CompletenessRubricOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CompletenessRubric.newBuilder() to construct. + private CompletenessRubric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompletenessRubric() { + question_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompletenessRubric(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .Builder.class); + } + + private int bitField0_; + public static final int QUESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object question_ = ""; + + /** + * + * + *
                                          +     * Output only. The question generated from instruction that used to
                                          +     * evaluate summary.
                                          +     * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The question. + */ + @java.lang.Override + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + 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(); + question_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The question generated from instruction that used to
                                          +     * evaluate summary.
                                          +     * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for question. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_ADDRESSED_FIELD_NUMBER = 2; + private boolean isAddressed_ = false; + + /** + * + * + *
                                          +     * Output only. A boolean that indicates whether the rubric question is
                                          +     * addressed or not.
                                          +     * 
                                          + * + * optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the isAddressed field is set. + */ + @java.lang.Override + public boolean hasIsAddressed() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Output only. A boolean that indicates whether the rubric question is
                                          +     * addressed or not.
                                          +     * 
                                          + * + * optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAddressed. + */ + @java.lang.Override + public boolean getIsAddressed() { + return isAddressed_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(question_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, question_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(2, isAddressed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(question_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, question_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isAddressed_); + } + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric) + obj; + + if (!getQuestion().equals(other.getQuestion())) return false; + if (hasIsAddressed() != other.hasIsAddressed()) return false; + if (hasIsAddressed()) { + if (getIsAddressed() != other.getIsAddressed()) 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) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + if (hasIsAddressed()) { + hash = (37 * hash) + IS_ADDRESSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsAddressed()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Rubric details of the completeness evaluation result.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + question_ = ""; + isAddressed_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_CompletenessRubric_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.question_ = question_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isAddressed_ = isAddressed_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .getDefaultInstance()) return this; + if (!other.getQuestion().isEmpty()) { + question_ = other.question_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIsAddressed()) { + setIsAddressed(other.getIsAddressed()); + } + 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: + { + question_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + isAddressed_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 question_ = ""; + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The question. + */ + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for question. + */ + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The question to set. + * @return This builder for chaining. + */ + public Builder setQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearQuestion() { + question_ = getDefaultInstance().getQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The question generated from instruction that used to
                                          +       * evaluate summary.
                                          +       * 
                                          + * + * string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for question to set. + * @return This builder for chaining. + */ + public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean isAddressed_; + + /** + * + * + *
                                          +       * Output only. A boolean that indicates whether the rubric question is
                                          +       * addressed or not.
                                          +       * 
                                          + * + * optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the isAddressed field is set. + */ + @java.lang.Override + public boolean hasIsAddressed() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * Output only. A boolean that indicates whether the rubric question is
                                          +       * addressed or not.
                                          +       * 
                                          + * + * optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isAddressed. + */ + @java.lang.Override + public boolean getIsAddressed() { + return isAddressed_; + } + + /** + * + * + *
                                          +       * Output only. A boolean that indicates whether the rubric question is
                                          +       * addressed or not.
                                          +       * 
                                          + * + * optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isAddressed to set. + * @return This builder for chaining. + */ + public Builder setIsAddressed(boolean value) { + + isAddressed_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. A boolean that indicates whether the rubric question is
                                          +       * addressed or not.
                                          +       * 
                                          + * + * optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsAddressed() { + bitField0_ = (bitField0_ & ~0x00000002); + isAddressed_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompletenessRubric 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + @java.lang.Deprecated + public interface DecompositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return Whether the accuracyDecomposition field is set. + */ + boolean hasAccuracyDecomposition(); + + /** + * + * + *
                                          +     * only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return The accuracyDecomposition. + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + getAccuracyDecomposition(); + + /** + * + * + *
                                          +     * only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder + getAccuracyDecompositionOrBuilder(); + + /** + * + * + *
                                          +     * only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + * + * @return Whether the adherenceDecomposition field is set. + */ + boolean hasAdherenceDecomposition(); + + /** + * + * + *
                                          +     * only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + * + * @return The adherenceDecomposition. + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + getAdherenceDecomposition(); + + /** + * + * + *
                                          +     * only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecompositionOrBuilder + getAdherenceDecompositionOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .DecompositionCase + getDecompositionCase(); + } + + /** + * + * + *
                                          +   * Decomposition details
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition} + */ + @java.lang.Deprecated + public static final class Decomposition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition) + DecompositionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Decomposition.newBuilder() to construct. + private Decomposition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Decomposition() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Decomposition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .Builder.class); + } + + private int decompositionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object decomposition_; + + public enum DecompositionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ACCURACY_DECOMPOSITION(1), + ADHERENCE_DECOMPOSITION(2), + DECOMPOSITION_NOT_SET(0); + private final int value; + + private DecompositionCase(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 DecompositionCase valueOf(int value) { + return forNumber(value); + } + + public static DecompositionCase forNumber(int value) { + switch (value) { + case 1: + return ACCURACY_DECOMPOSITION; + case 2: + return ADHERENCE_DECOMPOSITION; + case 0: + return DECOMPOSITION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DecompositionCase getDecompositionCase() { + return DecompositionCase.forNumber(decompositionCase_); + } + + public static final int ACCURACY_DECOMPOSITION_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +     * only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return Whether the accuracyDecomposition field is set. + */ + @java.lang.Override + public boolean hasAccuracyDecomposition() { + return decompositionCase_ == 1; + } + + /** + * + * + *
                                          +     * only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return The accuracyDecomposition. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + getAccuracyDecomposition() { + if (decompositionCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + decomposition_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + + /** + * + * + *
                                          +     * only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder + getAccuracyDecompositionOrBuilder() { + if (decompositionCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + decomposition_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + + public static final int ADHERENCE_DECOMPOSITION_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +     * only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + * + * @return Whether the adherenceDecomposition field is set. + */ + @java.lang.Override + public boolean hasAdherenceDecomposition() { + return decompositionCase_ == 2; + } + + /** + * + * + *
                                          +     * only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + * + * @return The adherenceDecomposition. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + getAdherenceDecomposition() { + if (decompositionCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + decomposition_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.getDefaultInstance(); + } + + /** + * + * + *
                                          +     * only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecompositionOrBuilder + getAdherenceDecompositionOrBuilder() { + if (decompositionCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + decomposition_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (decompositionCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + decomposition_); + } + if (decompositionCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + decomposition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (decompositionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + decomposition_); + } + if (decompositionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + decomposition_); + } + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition) obj; + + if (!getDecompositionCase().equals(other.getDecompositionCase())) return false; + switch (decompositionCase_) { + case 1: + if (!getAccuracyDecomposition().equals(other.getAccuracyDecomposition())) return false; + break; + case 2: + if (!getAdherenceDecomposition().equals(other.getAdherenceDecomposition())) 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(); + switch (decompositionCase_) { + case 1: + hash = (37 * hash) + ACCURACY_DECOMPOSITION_FIELD_NUMBER; + hash = (53 * hash) + getAccuracyDecomposition().hashCode(); + break; + case 2: + hash = (37 * hash) + ADHERENCE_DECOMPOSITION_FIELD_NUMBER; + hash = (53 * hash) + getAdherenceDecomposition().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Decomposition details
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.DecompositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accuracyDecompositionBuilder_ != null) { + accuracyDecompositionBuilder_.clear(); + } + if (adherenceDecompositionBuilder_ != null) { + adherenceDecompositionBuilder_.clear(); + } + decompositionCase_ = 0; + decomposition_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_Decomposition_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition result) { + result.decompositionCase_ = decompositionCase_; + result.decomposition_ = this.decomposition_; + if (decompositionCase_ == 1 && accuracyDecompositionBuilder_ != null) { + result.decomposition_ = accuracyDecompositionBuilder_.build(); + } + if (decompositionCase_ == 2 && adherenceDecompositionBuilder_ != null) { + result.decomposition_ = adherenceDecompositionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .getDefaultInstance()) return this; + switch (other.getDecompositionCase()) { + case ACCURACY_DECOMPOSITION: + { + mergeAccuracyDecomposition(other.getAccuracyDecomposition()); + break; + } + case ADHERENCE_DECOMPOSITION: + { + mergeAdherenceDecomposition(other.getAdherenceDecomposition()); + break; + } + case DECOMPOSITION_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: + { + input.readMessage( + getAccuracyDecompositionFieldBuilder().getBuilder(), extensionRegistry); + decompositionCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getAdherenceDecompositionFieldBuilder().getBuilder(), extensionRegistry); + decompositionCase_ = 2; + 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 decompositionCase_ = 0; + private java.lang.Object decomposition_; + + public DecompositionCase getDecompositionCase() { + return DecompositionCase.forNumber(decompositionCase_); + } + + public Builder clearDecomposition() { + decompositionCase_ = 0; + decomposition_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder> + accuracyDecompositionBuilder_; + + /** + * + * + *
                                          +       * only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return Whether the accuracyDecomposition field is set. + */ + @java.lang.Override + public boolean hasAccuracyDecomposition() { + return decompositionCase_ == 1; + } + + /** + * + * + *
                                          +       * only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return The accuracyDecomposition. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + getAccuracyDecomposition() { + if (accuracyDecompositionBuilder_ == null) { + if (decompositionCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + decomposition_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } else { + if (decompositionCase_ == 1) { + return accuracyDecompositionBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public Builder setAccuracyDecomposition( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + value) { + if (accuracyDecompositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + decomposition_ = value; + onChanged(); + } else { + accuracyDecompositionBuilder_.setMessage(value); + } + decompositionCase_ = 1; + return this; + } + + /** + * + * + *
                                          +       * only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public Builder setAccuracyDecomposition( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + .Builder + builderForValue) { + if (accuracyDecompositionBuilder_ == null) { + decomposition_ = builderForValue.build(); + onChanged(); + } else { + accuracyDecompositionBuilder_.setMessage(builderForValue.build()); + } + decompositionCase_ = 1; + return this; + } + + /** + * + * + *
                                          +       * only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public Builder mergeAccuracyDecomposition( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + value) { + if (accuracyDecompositionBuilder_ == null) { + if (decompositionCase_ == 1 + && decomposition_ + != com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance()) { + decomposition_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.newBuilder( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + decomposition_) + .mergeFrom(value) + .buildPartial(); + } else { + decomposition_ = value; + } + onChanged(); + } else { + if (decompositionCase_ == 1) { + accuracyDecompositionBuilder_.mergeFrom(value); + } else { + accuracyDecompositionBuilder_.setMessage(value); + } + } + decompositionCase_ = 1; + return this; + } + + /** + * + * + *
                                          +       * only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public Builder clearAccuracyDecomposition() { + if (accuracyDecompositionBuilder_ == null) { + if (decompositionCase_ == 1) { + decompositionCase_ = 0; + decomposition_ = null; + onChanged(); + } + } else { + if (decompositionCase_ == 1) { + decompositionCase_ = 0; + decomposition_ = null; + } + accuracyDecompositionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder + getAccuracyDecompositionBuilder() { + return getAccuracyDecompositionFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder + getAccuracyDecompositionOrBuilder() { + if ((decompositionCase_ == 1) && (accuracyDecompositionBuilder_ != null)) { + return accuracyDecompositionBuilder_.getMessageOrBuilder(); + } else { + if (decompositionCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + decomposition_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder> + getAccuracyDecompositionFieldBuilder() { + if (accuracyDecompositionBuilder_ == null) { + if (!(decompositionCase_ == 1)) { + decomposition_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + accuracyDecompositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + decomposition_, + getParentForChildren(), + isClean()); + decomposition_ = null; + } + decompositionCase_ = 1; + onChanged(); + return accuracyDecompositionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecompositionOrBuilder> + adherenceDecompositionBuilder_; + + /** + * + * + *
                                          +       * only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + * + * @return Whether the adherenceDecomposition field is set. + */ + @java.lang.Override + public boolean hasAdherenceDecomposition() { + return decompositionCase_ == 2; + } + + /** + * + * + *
                                          +       * only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + * + * @return The adherenceDecomposition. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition + getAdherenceDecomposition() { + if (adherenceDecompositionBuilder_ == null) { + if (decompositionCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + decomposition_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.getDefaultInstance(); + } else { + if (decompositionCase_ == 2) { + return adherenceDecompositionBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + */ + public Builder setAdherenceDecomposition( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + value) { + if (adherenceDecompositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + decomposition_ = value; + onChanged(); + } else { + adherenceDecompositionBuilder_.setMessage(value); + } + decompositionCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + */ + public Builder setAdherenceDecomposition( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + .Builder + builderForValue) { + if (adherenceDecompositionBuilder_ == null) { + decomposition_ = builderForValue.build(); + onChanged(); + } else { + adherenceDecompositionBuilder_.setMessage(builderForValue.build()); + } + decompositionCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + */ + public Builder mergeAdherenceDecomposition( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition + value) { + if (adherenceDecompositionBuilder_ == null) { + if (decompositionCase_ == 2 + && decomposition_ + != com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.getDefaultInstance()) { + decomposition_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.newBuilder( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + decomposition_) + .mergeFrom(value) + .buildPartial(); + } else { + decomposition_ = value; + } + onChanged(); + } else { + if (decompositionCase_ == 2) { + adherenceDecompositionBuilder_.mergeFrom(value); + } else { + adherenceDecompositionBuilder_.setMessage(value); + } + } + decompositionCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + */ + public Builder clearAdherenceDecomposition() { + if (adherenceDecompositionBuilder_ == null) { + if (decompositionCase_ == 2) { + decompositionCase_ = 0; + decomposition_ = null; + onChanged(); + } + } else { + if (decompositionCase_ == 2) { + decompositionCase_ = 0; + decomposition_ = null; + } + adherenceDecompositionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.Builder + getAdherenceDecompositionBuilder() { + return getAdherenceDecompositionFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecompositionOrBuilder + getAdherenceDecompositionOrBuilder() { + if ((decompositionCase_ == 2) && (adherenceDecompositionBuilder_ != null)) { + return adherenceDecompositionBuilder_.getMessageOrBuilder(); + } else { + if (decompositionCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + decomposition_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceDecomposition adherence_decomposition = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecompositionOrBuilder> + getAdherenceDecompositionFieldBuilder() { + if (adherenceDecompositionBuilder_ == null) { + if (!(decompositionCase_ == 2)) { + decomposition_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.getDefaultInstance(); + } + adherenceDecompositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecompositionOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceDecomposition) + decomposition_, + getParentForChildren(), + isClean()); + decomposition_ = null; + } + decompositionCase_ = 2; + onChanged(); + return adherenceDecompositionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .Decomposition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Decomposition 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EvaluationResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return Whether the accuracyDecomposition field is set. + */ + boolean hasAccuracyDecomposition(); + + /** + * + * + *
                                          +     * Only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return The accuracyDecomposition. + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + getAccuracyDecomposition(); + + /** + * + * + *
                                          +     * Only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder + getAccuracyDecompositionOrBuilder(); + + /** + * + * + *
                                          +     * Only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + * + * @return Whether the adherenceRubric field is set. + */ + boolean hasAdherenceRubric(); + + /** + * + * + *
                                          +     * Only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + * + * @return The adherenceRubric. + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + getAdherenceRubric(); + + /** + * + * + *
                                          +     * Only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubricOrBuilder + getAdherenceRubricOrBuilder(); + + /** + * + * + *
                                          +     * Only available for completeness metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + * + * @return Whether the completenessRubric field is set. + */ + boolean hasCompletenessRubric(); + + /** + * + * + *
                                          +     * Only available for completeness metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + * + * @return The completenessRubric. + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + getCompletenessRubric(); + + /** + * + * + *
                                          +     * Only available for completeness metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubricOrBuilder + getCompletenessRubricOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult.ResultCase + getResultCase(); + } + + /** + * + * + *
                                          +   * Evaluation result that contains one of accuracy, adherence or completeness
                                          +   * evaluation result.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult} + */ + public static final class EvaluationResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult) + EvaluationResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvaluationResult.newBuilder() to construct. + private EvaluationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvaluationResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvaluationResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder.class); + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ACCURACY_DECOMPOSITION(1), + ADHERENCE_RUBRIC(2), + COMPLETENESS_RUBRIC(3), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(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 ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 1: + return ACCURACY_DECOMPOSITION; + case 2: + return ADHERENCE_RUBRIC; + case 3: + return COMPLETENESS_RUBRIC; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int ACCURACY_DECOMPOSITION_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +     * Only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return Whether the accuracyDecomposition field is set. + */ + @java.lang.Override + public boolean hasAccuracyDecomposition() { + return resultCase_ == 1; + } + + /** + * + * + *
                                          +     * Only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return The accuracyDecomposition. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + getAccuracyDecomposition() { + if (resultCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Only available for accuracy metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder + getAccuracyDecompositionOrBuilder() { + if (resultCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + + public static final int ADHERENCE_RUBRIC_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +     * Only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + * + * @return Whether the adherenceRubric field is set. + */ + @java.lang.Override + public boolean hasAdherenceRubric() { + return resultCase_ == 2; + } + + /** + * + * + *
                                          +     * Only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + * + * @return The adherenceRubric. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + getAdherenceRubric() { + if (resultCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Only available for adherence metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubricOrBuilder + getAdherenceRubricOrBuilder() { + if (resultCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .getDefaultInstance(); + } + + public static final int COMPLETENESS_RUBRIC_FIELD_NUMBER = 3; + + /** + * + * + *
                                          +     * Only available for completeness metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + * + * @return Whether the completenessRubric field is set. + */ + @java.lang.Override + public boolean hasCompletenessRubric() { + return resultCase_ == 3; + } + + /** + * + * + *
                                          +     * Only available for completeness metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + * + * @return The completenessRubric. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + getCompletenessRubric() { + if (resultCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Only available for completeness metric.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubricOrBuilder + getCompletenessRubricOrBuilder() { + if (resultCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resultCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + result_); + } + if (resultCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + result_); + } + if (resultCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric) + result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resultCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + result_); + } + if (resultCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric) + result_); + } + if (resultCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric) + result_); + } + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult) obj; + + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 1: + if (!getAccuracyDecomposition().equals(other.getAccuracyDecomposition())) return false; + break; + case 2: + if (!getAdherenceRubric().equals(other.getAdherenceRubric())) return false; + break; + case 3: + if (!getCompletenessRubric().equals(other.getCompletenessRubric())) 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(); + switch (resultCase_) { + case 1: + hash = (37 * hash) + ACCURACY_DECOMPOSITION_FIELD_NUMBER; + hash = (53 * hash) + getAccuracyDecomposition().hashCode(); + break; + case 2: + hash = (37 * hash) + ADHERENCE_RUBRIC_FIELD_NUMBER; + hash = (53 * hash) + getAdherenceRubric().hashCode(); + break; + case 3: + hash = (37 * hash) + COMPLETENESS_RUBRIC_FIELD_NUMBER; + hash = (53 * hash) + getCompletenessRubric().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Evaluation result that contains one of accuracy, adherence or completeness
                                          +     * evaluation result.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accuracyDecompositionBuilder_ != null) { + accuracyDecompositionBuilder_.clear(); + } + if (adherenceRubricBuilder_ != null) { + adherenceRubricBuilder_.clear(); + } + if (completenessRubricBuilder_ != null) { + completenessRubricBuilder_.clear(); + } + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_EvaluationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 1 && accuracyDecompositionBuilder_ != null) { + result.result_ = accuracyDecompositionBuilder_.build(); + } + if (resultCase_ == 2 && adherenceRubricBuilder_ != null) { + result.result_ = adherenceRubricBuilder_.build(); + } + if (resultCase_ == 3 && completenessRubricBuilder_ != null) { + result.result_ = completenessRubricBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .getDefaultInstance()) return this; + switch (other.getResultCase()) { + case ACCURACY_DECOMPOSITION: + { + mergeAccuracyDecomposition(other.getAccuracyDecomposition()); + break; + } + case ADHERENCE_RUBRIC: + { + mergeAdherenceRubric(other.getAdherenceRubric()); + break; + } + case COMPLETENESS_RUBRIC: + { + mergeCompletenessRubric(other.getCompletenessRubric()); + break; + } + case RESULT_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: + { + input.readMessage( + getAccuracyDecompositionFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getAdherenceRubricFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getCompletenessRubricFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 3; + 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 resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder> + accuracyDecompositionBuilder_; + + /** + * + * + *
                                          +       * Only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return Whether the accuracyDecomposition field is set. + */ + @java.lang.Override + public boolean hasAccuracyDecomposition() { + return resultCase_ == 1; + } + + /** + * + * + *
                                          +       * Only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + * + * @return The accuracyDecomposition. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition + getAccuracyDecomposition() { + if (accuracyDecompositionBuilder_ == null) { + if (resultCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } else { + if (resultCase_ == 1) { + return accuracyDecompositionBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public Builder setAccuracyDecomposition( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + value) { + if (accuracyDecompositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + accuracyDecompositionBuilder_.setMessage(value); + } + resultCase_ = 1; + return this; + } + + /** + * + * + *
                                          +       * Only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public Builder setAccuracyDecomposition( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + .Builder + builderForValue) { + if (accuracyDecompositionBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + accuracyDecompositionBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 1; + return this; + } + + /** + * + * + *
                                          +       * Only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public Builder mergeAccuracyDecomposition( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition + value) { + if (accuracyDecompositionBuilder_ == null) { + if (resultCase_ == 1 + && result_ + != com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance()) { + result_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.newBuilder( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 1) { + accuracyDecompositionBuilder_.mergeFrom(value); + } else { + accuracyDecompositionBuilder_.setMessage(value); + } + } + resultCase_ = 1; + return this; + } + + /** + * + * + *
                                          +       * Only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public Builder clearAccuracyDecomposition() { + if (accuracyDecompositionBuilder_ == null) { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + } + accuracyDecompositionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder + getAccuracyDecompositionBuilder() { + return getAccuracyDecompositionFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder + getAccuracyDecompositionOrBuilder() { + if ((resultCase_ == 1) && (accuracyDecompositionBuilder_ != null)) { + return accuracyDecompositionBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Only available for accuracy metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AccuracyDecomposition accuracy_decomposition = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder> + getAccuracyDecompositionFieldBuilder() { + if (accuracyDecompositionBuilder_ == null) { + if (!(resultCase_ == 1)) { + result_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.getDefaultInstance(); + } + accuracyDecompositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecompositionOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AccuracyDecomposition) + result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 1; + onChanged(); + return accuracyDecompositionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubricOrBuilder> + adherenceRubricBuilder_; + + /** + * + * + *
                                          +       * Only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + * + * @return Whether the adherenceRubric field is set. + */ + @java.lang.Override + public boolean hasAdherenceRubric() { + return resultCase_ == 2; + } + + /** + * + * + *
                                          +       * Only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + * + * @return The adherenceRubric. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + getAdherenceRubric() { + if (adherenceRubricBuilder_ == null) { + if (resultCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubric) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .getDefaultInstance(); + } else { + if (resultCase_ == 2) { + return adherenceRubricBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + */ + public Builder setAdherenceRubric( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + value) { + if (adherenceRubricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + adherenceRubricBuilder_.setMessage(value); + } + resultCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * Only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + */ + public Builder setAdherenceRubric( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric.Builder + builderForValue) { + if (adherenceRubricBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + adherenceRubricBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * Only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + */ + public Builder mergeAdherenceRubric( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + value) { + if (adherenceRubricBuilder_ == null) { + if (resultCase_ == 2 + && result_ + != com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubric.getDefaultInstance()) { + result_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubric) + result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 2) { + adherenceRubricBuilder_.mergeFrom(value); + } else { + adherenceRubricBuilder_.setMessage(value); + } + } + resultCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * Only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + */ + public Builder clearAdherenceRubric() { + if (adherenceRubricBuilder_ == null) { + if (resultCase_ == 2) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 2) { + resultCase_ = 0; + result_ = null; + } + adherenceRubricBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .Builder + getAdherenceRubricBuilder() { + return getAdherenceRubricFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubricOrBuilder + getAdherenceRubricOrBuilder() { + if ((resultCase_ == 2) && (adherenceRubricBuilder_ != null)) { + return adherenceRubricBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubric) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Only available for adherence metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric adherence_rubric = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubricOrBuilder> + getAdherenceRubricFieldBuilder() { + if (adherenceRubricBuilder_ == null) { + if (!(resultCase_ == 2)) { + result_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .getDefaultInstance(); + } + adherenceRubricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubric, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.AdherenceRubric + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubricOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .AdherenceRubric) + result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 2; + onChanged(); + return adherenceRubricBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubricOrBuilder> + completenessRubricBuilder_; + + /** + * + * + *
                                          +       * Only available for completeness metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + * + * @return Whether the completenessRubric field is set. + */ + @java.lang.Override + public boolean hasCompletenessRubric() { + return resultCase_ == 3; + } + + /** + * + * + *
                                          +       * Only available for completeness metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + * + * @return The completenessRubric. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + getCompletenessRubric() { + if (completenessRubricBuilder_ == null) { + if (resultCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric.getDefaultInstance(); + } else { + if (resultCase_ == 3) { + return completenessRubricBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Only available for completeness metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + */ + public Builder setCompletenessRubric( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + value) { + if (completenessRubricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + completenessRubricBuilder_.setMessage(value); + } + resultCase_ = 3; + return this; + } + + /** + * + * + *
                                          +       * Only available for completeness metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + */ + public Builder setCompletenessRubric( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .Builder + builderForValue) { + if (completenessRubricBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + completenessRubricBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 3; + return this; + } + + /** + * + * + *
                                          +       * Only available for completeness metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + */ + public Builder mergeCompletenessRubric( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + value) { + if (completenessRubricBuilder_ == null) { + if (resultCase_ == 3 + && result_ + != com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric.getDefaultInstance()) { + result_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric.newBuilder( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric) + result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 3) { + completenessRubricBuilder_.mergeFrom(value); + } else { + completenessRubricBuilder_.setMessage(value); + } + } + resultCase_ = 3; + return this; + } + + /** + * + * + *
                                          +       * Only available for completeness metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + */ + public Builder clearCompletenessRubric() { + if (completenessRubricBuilder_ == null) { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + } + completenessRubricBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Only available for completeness metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .Builder + getCompletenessRubricBuilder() { + return getCompletenessRubricFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Only available for completeness metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubricOrBuilder + getCompletenessRubricOrBuilder() { + if ((resultCase_ == 3) && (completenessRubricBuilder_ != null)) { + return completenessRubricBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric) + result_; + } + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Only available for completeness metric.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric completeness_rubric = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.CompletenessRubric + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubricOrBuilder> + getCompletenessRubricFieldBuilder() { + if (completenessRubricBuilder_ == null) { + if (!(resultCase_ == 3)) { + result_ = + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric.getDefaultInstance(); + } + completenessRubricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubricOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .CompletenessRubric) + result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 3; + onChanged(); + return completenessRubricBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationResult 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SummarizationEvaluationResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. conversation session id
                                          +     * 
                                          + * + * string session_id = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.session_id + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=309 + * @return The sessionId. + */ + @java.lang.Deprecated + java.lang.String getSessionId(); + + /** + * + * + *
                                          +     * Output only. conversation session id
                                          +     * 
                                          + * + * string session_id = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.session_id + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=309 + * @return The bytes for sessionId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getSessionIdBytes(); + + /** + * + * + *
                                          +     * Output only. metric name, e.g. accuracy, completeness, adherence, etc.
                                          +     * 
                                          + * + * string metric = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metric. + */ + java.lang.String getMetric(); + + /** + * + * + *
                                          +     * Output only. metric name, e.g. accuracy, completeness, adherence, etc.
                                          +     * 
                                          + * + * string metric = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metric. + */ + com.google.protobuf.ByteString getMetricBytes(); + + /** + * + * + *
                                          +     * Output only. section/task name, e.g. action, situation, etc
                                          +     * 
                                          + * + * string section = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + java.lang.String getSection(); + + /** + * + * + *
                                          +     * Output only. section/task name, e.g. action, situation, etc
                                          +     * 
                                          + * + * string section = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + com.google.protobuf.ByteString getSectionBytes(); + + /** + * + * + *
                                          +     * Output only. score calculated from decompositions
                                          +     * 
                                          + * + * float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); + + /** + * + * + *
                                          +     * Output only. Summary of this section
                                          +     * 
                                          + * + * string section_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sectionSummary. + */ + java.lang.String getSectionSummary(); + + /** + * + * + *
                                          +     * Output only. Summary of this section
                                          +     * 
                                          + * + * string section_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sectionSummary. + */ + com.google.protobuf.ByteString getSectionSummaryBytes(); + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List + getDecompositionsList(); + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + getDecompositions(int index); + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + int getDecompositionsCount(); + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .DecompositionOrBuilder> + getDecompositionsOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.DecompositionOrBuilder + getDecompositionsOrBuilder(int index); + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult> + getEvaluationResultsList(); + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + getEvaluationResults(int index); + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getEvaluationResultsCount(); + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index); + } + + /** + * + * + *
                                          +   * Evaluation result per conversation(&summary), metric and section.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult} + */ + public static final class SummarizationEvaluationResult + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult) + SummarizationEvaluationResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SummarizationEvaluationResult.newBuilder() to construct. + private SummarizationEvaluationResult( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SummarizationEvaluationResult() { + sessionId_ = ""; + metric_ = ""; + section_ = ""; + sectionSummary_ = ""; + decompositions_ = java.util.Collections.emptyList(); + evaluationResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SummarizationEvaluationResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder.class); + } + + public static final int SESSION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sessionId_ = ""; + + /** + * + * + *
                                          +     * Output only. conversation session id
                                          +     * 
                                          + * + * string session_id = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.session_id + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=309 + * @return The sessionId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + 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(); + sessionId_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. conversation session id
                                          +     * 
                                          + * + * string session_id = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.session_id + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=309 + * @return The bytes for sessionId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRIC_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object metric_ = ""; + + /** + * + * + *
                                          +     * Output only. metric name, e.g. accuracy, completeness, adherence, etc.
                                          +     * 
                                          + * + * string metric = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metric. + */ + @java.lang.Override + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + 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(); + metric_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. metric name, e.g. accuracy, completeness, adherence, etc.
                                          +     * 
                                          + * + * string metric = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metric. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricBytes() { + java.lang.Object ref = metric_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metric_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object section_ = ""; + + /** + * + * + *
                                          +     * Output only. section/task name, e.g. action, situation, etc
                                          +     * 
                                          + * + * string section = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + @java.lang.Override + public java.lang.String getSection() { + java.lang.Object ref = section_; + 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(); + section_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. section/task name, e.g. action, situation, etc
                                          +     * 
                                          + * + * string section = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCORE_FIELD_NUMBER = 4; + private float score_ = 0F; + + /** + * + * + *
                                          +     * Output only. score calculated from decompositions
                                          +     * 
                                          + * + * float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + public static final int SECTION_SUMMARY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object sectionSummary_ = ""; + + /** + * + * + *
                                          +     * Output only. Summary of this section
                                          +     * 
                                          + * + * string section_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sectionSummary. + */ + @java.lang.Override + public java.lang.String getSectionSummary() { + java.lang.Object ref = sectionSummary_; + 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(); + sectionSummary_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. Summary of this section
                                          +     * 
                                          + * + * string section_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sectionSummary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSectionSummaryBytes() { + java.lang.Object ref = sectionSummary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sectionSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DECOMPOSITIONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition> + decompositions_; + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition> + getDecompositionsList() { + return decompositions_; + } + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .DecompositionOrBuilder> + getDecompositionsOrBuilderList() { + return decompositions_; + } + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getDecompositionsCount() { + return decompositions_.size(); + } + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + getDecompositions(int index) { + return decompositions_.get(index); + } + + /** + * + * + *
                                          +     * Output only. List of decompostion details
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.DecompositionOrBuilder + getDecompositionsOrBuilder(int index) { + return decompositions_.get(index); + } + + public static final int EVALUATION_RESULTS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult> + evaluationResults_; + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult> + getEvaluationResultsList() { + return evaluationResults_; + } + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList() { + return evaluationResults_; + } + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getEvaluationResultsCount() { + return evaluationResults_.size(); + } + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + getEvaluationResults(int index) { + return evaluationResults_.get(index); + } + + /** + * + * + *
                                          +     * Output only. List of evaluation results.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index) { + return evaluationResults_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metric_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(section_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, section_); + } + if (java.lang.Float.floatToRawIntBits(score_) != 0) { + output.writeFloat(4, score_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sectionSummary_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sectionSummary_); + } + for (int i = 0; i < decompositions_.size(); i++) { + output.writeMessage(7, decompositions_.get(i)); + } + for (int i = 0; i < evaluationResults_.size(); i++) { + output.writeMessage(8, evaluationResults_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metric_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(section_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, section_); + } + if (java.lang.Float.floatToRawIntBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sectionSummary_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sectionSummary_); + } + for (int i = 0; i < decompositions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, decompositions_.get(i)); + } + for (int i = 0; i < evaluationResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, evaluationResults_.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.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult) + obj; + + if (!getSessionId().equals(other.getSessionId())) return false; + if (!getMetric().equals(other.getMetric())) return false; + if (!getSection().equals(other.getSection())) return false; + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getSectionSummary().equals(other.getSectionSummary())) return false; + if (!getDecompositionsList().equals(other.getDecompositionsList())) return false; + if (!getEvaluationResultsList().equals(other.getEvaluationResultsList())) 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) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().hashCode(); + hash = (37 * hash) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetric().hashCode(); + hash = (37 * hash) + SECTION_FIELD_NUMBER; + hash = (53 * hash) + getSection().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (37 * hash) + SECTION_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSectionSummary().hashCode(); + if (getDecompositionsCount() > 0) { + hash = (37 * hash) + DECOMPOSITIONS_FIELD_NUMBER; + hash = (53 * hash) + getDecompositionsList().hashCode(); + } + if (getEvaluationResultsCount() > 0) { + hash = (37 * hash) + EVALUATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Evaluation result per conversation(&summary), metric and section.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sessionId_ = ""; + metric_ = ""; + section_ = ""; + score_ = 0F; + sectionSummary_ = ""; + if (decompositionsBuilder_ == null) { + decompositions_ = java.util.Collections.emptyList(); + } else { + decompositions_ = null; + decompositionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + } else { + evaluationResults_ = null; + evaluationResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SummarizationEvaluationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + result) { + if (decompositionsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + decompositions_ = java.util.Collections.unmodifiableList(decompositions_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.decompositions_ = decompositions_; + } else { + result.decompositions_ = decompositionsBuilder_.build(); + } + if (evaluationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + evaluationResults_ = java.util.Collections.unmodifiableList(evaluationResults_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.evaluationResults_ = evaluationResults_; + } else { + result.evaluationResults_ = evaluationResultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionId_ = sessionId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metric_ = metric_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.section_ = section_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sectionSummary_ = sectionSummary_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.getDefaultInstance()) return this; + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMetric().isEmpty()) { + metric_ = other.metric_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSection().isEmpty()) { + section_ = other.section_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getScore() != 0F) { + setScore(other.getScore()); + } + if (!other.getSectionSummary().isEmpty()) { + sectionSummary_ = other.sectionSummary_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (decompositionsBuilder_ == null) { + if (!other.decompositions_.isEmpty()) { + if (decompositions_.isEmpty()) { + decompositions_ = other.decompositions_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureDecompositionsIsMutable(); + decompositions_.addAll(other.decompositions_); + } + onChanged(); + } + } else { + if (!other.decompositions_.isEmpty()) { + if (decompositionsBuilder_.isEmpty()) { + decompositionsBuilder_.dispose(); + decompositionsBuilder_ = null; + decompositions_ = other.decompositions_; + bitField0_ = (bitField0_ & ~0x00000020); + decompositionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDecompositionsFieldBuilder() + : null; + } else { + decompositionsBuilder_.addAllMessages(other.decompositions_); + } + } + } + if (evaluationResultsBuilder_ == null) { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResults_.isEmpty()) { + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureEvaluationResultsIsMutable(); + evaluationResults_.addAll(other.evaluationResults_); + } + onChanged(); + } + } else { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResultsBuilder_.isEmpty()) { + evaluationResultsBuilder_.dispose(); + evaluationResultsBuilder_ = null; + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000040); + evaluationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEvaluationResultsFieldBuilder() + : null; + } else { + evaluationResultsBuilder_.addAllMessages(other.evaluationResults_); + } + } + } + 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: + { + sessionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + metric_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + section_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 50: + { + sectionSummary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .Decomposition.parser(), + extensionRegistry); + if (decompositionsBuilder_ == null) { + ensureDecompositionsIsMutable(); + decompositions_.add(m); + } else { + decompositionsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult.parser(), + extensionRegistry); + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(m); + } else { + evaluationResultsBuilder_.addMessage(m); + } + 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 java.lang.Object sessionId_ = ""; + + /** + * + * + *
                                          +       * Output only. conversation session id
                                          +       * 
                                          + * + * + * string session_id = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.session_id + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=309 + * @return The sessionId. + */ + @java.lang.Deprecated + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. conversation session id
                                          +       * 
                                          + * + * + * string session_id = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.session_id + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=309 + * @return The bytes for sessionId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. conversation session id
                                          +       * 
                                          + * + * + * string session_id = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.session_id + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=309 + * @param value The sessionId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sessionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. conversation session id
                                          +       * 
                                          + * + * + * string session_id = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.session_id + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=309 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSessionId() { + sessionId_ = getDefaultInstance().getSessionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. conversation session id
                                          +       * 
                                          + * + * + * string session_id = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult.session_id + * is deprecated. See google/cloud/dialogflow/v2beta1/generator_evaluation.proto;l=309 + * @param value The bytes for sessionId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sessionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object metric_ = ""; + + /** + * + * + *
                                          +       * Output only. metric name, e.g. accuracy, completeness, adherence, etc.
                                          +       * 
                                          + * + * string metric = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metric. + */ + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metric_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. metric name, e.g. accuracy, completeness, adherence, etc.
                                          +       * 
                                          + * + * string metric = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metric. + */ + public com.google.protobuf.ByteString getMetricBytes() { + java.lang.Object ref = metric_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metric_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. metric name, e.g. accuracy, completeness, adherence, etc.
                                          +       * 
                                          + * + * string metric = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The metric to set. + * @return This builder for chaining. + */ + public Builder setMetric(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metric_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. metric name, e.g. accuracy, completeness, adherence, etc.
                                          +       * 
                                          + * + * string metric = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMetric() { + metric_ = getDefaultInstance().getMetric(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. metric name, e.g. accuracy, completeness, adherence, etc.
                                          +       * 
                                          + * + * string metric = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for metric to set. + * @return This builder for chaining. + */ + public Builder setMetricBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metric_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object section_ = ""; + + /** + * + * + *
                                          +       * Output only. section/task name, e.g. action, situation, etc
                                          +       * 
                                          + * + * string section = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + public java.lang.String getSection() { + java.lang.Object ref = section_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + section_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. section/task name, e.g. action, situation, etc
                                          +       * 
                                          + * + * string section = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. section/task name, e.g. action, situation, etc
                                          +       * 
                                          + * + * string section = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The section to set. + * @return This builder for chaining. + */ + public Builder setSection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + section_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. section/task name, e.g. action, situation, etc
                                          +       * 
                                          + * + * string section = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSection() { + section_ = getDefaultInstance().getSection(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. section/task name, e.g. action, situation, etc
                                          +       * 
                                          + * + * string section = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for section to set. + * @return This builder for chaining. + */ + public Builder setSectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + section_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private float score_; + + /** + * + * + *
                                          +       * Output only. score calculated from decompositions
                                          +       * 
                                          + * + * float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + /** + * + * + *
                                          +       * Output only. score calculated from decompositions
                                          +       * 
                                          + * + * float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. score calculated from decompositions
                                          +       * 
                                          + * + * float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000008); + score_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object sectionSummary_ = ""; + + /** + * + * + *
                                          +       * Output only. Summary of this section
                                          +       * 
                                          + * + * string section_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sectionSummary. + */ + public java.lang.String getSectionSummary() { + java.lang.Object ref = sectionSummary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sectionSummary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. Summary of this section
                                          +       * 
                                          + * + * string section_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sectionSummary. + */ + public com.google.protobuf.ByteString getSectionSummaryBytes() { + java.lang.Object ref = sectionSummary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sectionSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. Summary of this section
                                          +       * 
                                          + * + * string section_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sectionSummary to set. + * @return This builder for chaining. + */ + public Builder setSectionSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sectionSummary_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary of this section
                                          +       * 
                                          + * + * string section_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSectionSummary() { + sectionSummary_ = getDefaultInstance().getSectionSummary(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary of this section
                                          +       * 
                                          + * + * string section_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sectionSummary to set. + * @return This builder for chaining. + */ + public Builder setSectionSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sectionSummary_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition> + decompositions_ = java.util.Collections.emptyList(); + + private void ensureDecompositionsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + decompositions_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition>( + decompositions_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .DecompositionOrBuilder> + decompositionsBuilder_; + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition> + getDecompositionsList() { + if (decompositionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(decompositions_); + } else { + return decompositionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public int getDecompositionsCount() { + if (decompositionsBuilder_ == null) { + return decompositions_.size(); + } else { + return decompositionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + getDecompositions(int index) { + if (decompositionsBuilder_ == null) { + return decompositions_.get(index); + } else { + return decompositionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setDecompositions( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition value) { + if (decompositionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecompositionsIsMutable(); + decompositions_.set(index, value); + onChanged(); + } else { + decompositionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setDecompositions( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition.Builder + builderForValue) { + if (decompositionsBuilder_ == null) { + ensureDecompositionsIsMutable(); + decompositions_.set(index, builderForValue.build()); + onChanged(); + } else { + decompositionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addDecompositions( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition value) { + if (decompositionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecompositionsIsMutable(); + decompositions_.add(value); + onChanged(); + } else { + decompositionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addDecompositions( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition value) { + if (decompositionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecompositionsIsMutable(); + decompositions_.add(index, value); + onChanged(); + } else { + decompositionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addDecompositions( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition.Builder + builderForValue) { + if (decompositionsBuilder_ == null) { + ensureDecompositionsIsMutable(); + decompositions_.add(builderForValue.build()); + onChanged(); + } else { + decompositionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addDecompositions( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition.Builder + builderForValue) { + if (decompositionsBuilder_ == null) { + ensureDecompositionsIsMutable(); + decompositions_.add(index, builderForValue.build()); + onChanged(); + } else { + decompositionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addAllDecompositions( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .Decomposition> + values) { + if (decompositionsBuilder_ == null) { + ensureDecompositionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, decompositions_); + onChanged(); + } else { + decompositionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder clearDecompositions() { + if (decompositionsBuilder_ == null) { + decompositions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + decompositionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder removeDecompositions(int index) { + if (decompositionsBuilder_ == null) { + ensureDecompositionsIsMutable(); + decompositions_.remove(index); + onChanged(); + } else { + decompositionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .Builder + getDecompositionsBuilder(int index) { + return getDecompositionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .DecompositionOrBuilder + getDecompositionsOrBuilder(int index) { + if (decompositionsBuilder_ == null) { + return decompositions_.get(index); + } else { + return decompositionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .DecompositionOrBuilder> + getDecompositionsOrBuilderList() { + if (decompositionsBuilder_ != null) { + return decompositionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(decompositions_); + } + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .Builder + addDecompositionsBuilder() { + return getDecompositionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .Builder + addDecompositionsBuilder(int index) { + return getDecompositionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. List of decompostion details
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition decompositions = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .Builder> + getDecompositionsBuilderList() { + return getDecompositionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .DecompositionOrBuilder> + getDecompositionsFieldBuilder() { + if (decompositionsBuilder_ == null) { + decompositionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Decomposition + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .DecompositionOrBuilder>( + decompositions_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + decompositions_ = null; + } + return decompositionsBuilder_; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult> + evaluationResults_ = java.util.Collections.emptyList(); + + private void ensureEvaluationResultsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + evaluationResults_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult>(evaluationResults_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + evaluationResultsBuilder_; + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult> + getEvaluationResultsList() { + if (evaluationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluationResults_); + } else { + return evaluationResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getEvaluationResultsCount() { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.size(); + } else { + return evaluationResultsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + getEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEvaluationResults( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEvaluationResults( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllEvaluationResults( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult> + values) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationResults_); + onChanged(); + } else { + evaluationResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEvaluationResults() { + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + evaluationResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.remove(index); + onChanged(); + } else { + evaluationResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + getEvaluationResultsBuilder(int index) { + return getEvaluationResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList() { + if (evaluationResultsBuilder_ != null) { + return evaluationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluationResults_); + } + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + addEvaluationResultsBuilder() { + return getEvaluationResultsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + addEvaluationResultsBuilder(int index) { + return getEvaluationResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. List of evaluation results.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder> + getEvaluationResultsBuilderList() { + return getEvaluationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + getEvaluationResultsFieldBuilder() { + if (evaluationResultsBuilder_ == null) { + evaluationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder>( + evaluationResults_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + return evaluationResultsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarizationEvaluationResult 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OverallScoresByMetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. Metric name. e.g. accuracy, adherence, completeness.
                                          +     * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metric. + */ + java.lang.String getMetric(); + + /** + * + * + *
                                          +     * Output only. Metric name. e.g. accuracy, adherence, completeness.
                                          +     * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metric. + */ + com.google.protobuf.ByteString getMetricBytes(); + } + + /** + * + * + *
                                          +   * Overall performance per metric. This is the aggregated score for each
                                          +   * metric across all conversations that are selected for summarization
                                          +   * evaluation.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric} + */ + public static final class OverallScoresByMetric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric) + OverallScoresByMetricOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OverallScoresByMetric.newBuilder() to construct. + private OverallScoresByMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OverallScoresByMetric() { + metric_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OverallScoresByMetric(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.Builder.class); + } + + public static final int METRIC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metric_ = ""; + + /** + * + * + *
                                          +     * Output only. Metric name. e.g. accuracy, adherence, completeness.
                                          +     * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metric. + */ + @java.lang.Override + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + 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(); + metric_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. Metric name. e.g. accuracy, adherence, completeness.
                                          +     * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metric. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricBytes() { + java.lang.Object ref = metric_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metric_ = 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.GeneratedMessageV3.isStringEmpty(metric_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metric_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metric_); + } + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric) + obj; + + if (!getMetric().equals(other.getMetric())) 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) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetric().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Overall performance per metric. This is the aggregated score for each
                                          +     * metric across all conversations that are selected for summarization
                                          +     * evaluation.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metric_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_OverallScoresByMetric_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metric_ = metric_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.getDefaultInstance()) return this; + if (!other.getMetric().isEmpty()) { + metric_ = other.metric_; + 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: + { + metric_ = 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 metric_ = ""; + + /** + * + * + *
                                          +       * Output only. Metric name. e.g. accuracy, adherence, completeness.
                                          +       * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metric. + */ + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metric_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. Metric name. e.g. accuracy, adherence, completeness.
                                          +       * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metric. + */ + public com.google.protobuf.ByteString getMetricBytes() { + java.lang.Object ref = metric_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metric_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. Metric name. e.g. accuracy, adherence, completeness.
                                          +       * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The metric to set. + * @return This builder for chaining. + */ + public Builder setMetric(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metric_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Metric name. e.g. accuracy, adherence, completeness.
                                          +       * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMetric() { + metric_ = getDefaultInstance().getMetric(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Metric name. e.g. accuracy, adherence, completeness.
                                          +       * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for metric to set. + * @return This builder for chaining. + */ + public Builder setMetricBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metric_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OverallScoresByMetric 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SectionTokenOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. The name of the summary instruction.
                                          +     * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + java.lang.String getSection(); + + /** + * + * + *
                                          +     * Output only. The name of the summary instruction.
                                          +     * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + com.google.protobuf.ByteString getSectionBytes(); + + /** + * + * + *
                                          +     * Output only. Token count.
                                          +     * 
                                          + * + * optional int64 token_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the tokenCount field is set. + */ + boolean hasTokenCount(); + + /** + * + * + *
                                          +     * Output only. Token count.
                                          +     * 
                                          + * + * optional int64 token_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tokenCount. + */ + long getTokenCount(); + } + + /** + * + * + *
                                          +   * A pair of section name and input token count of the input summary section.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken} + */ + public static final class SectionToken extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken) + SectionTokenOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SectionToken.newBuilder() to construct. + private SectionToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SectionToken() { + section_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SectionToken(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .Builder.class); + } + + private int bitField0_; + public static final int SECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object section_ = ""; + + /** + * + * + *
                                          +     * Output only. The name of the summary instruction.
                                          +     * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + @java.lang.Override + public java.lang.String getSection() { + java.lang.Object ref = section_; + 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(); + section_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Output only. The name of the summary instruction.
                                          +     * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_COUNT_FIELD_NUMBER = 2; + private long tokenCount_ = 0L; + + /** + * + * + *
                                          +     * Output only. Token count.
                                          +     * 
                                          + * + * optional int64 token_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the tokenCount field is set. + */ + @java.lang.Override + public boolean hasTokenCount() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Output only. Token count.
                                          +     * 
                                          + * + * optional int64 token_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tokenCount. + */ + @java.lang.Override + public long getTokenCount() { + return tokenCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(section_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, section_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(2, tokenCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(section_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, section_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, tokenCount_); + } + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken) obj; + + if (!getSection().equals(other.getSection())) return false; + if (hasTokenCount() != other.hasTokenCount()) return false; + if (hasTokenCount()) { + if (getTokenCount() != other.getTokenCount()) 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) + SECTION_FIELD_NUMBER; + hash = (53 * hash) + getSection().hashCode(); + if (hasTokenCount()) { + hash = (37 * hash) + TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTokenCount()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * A pair of section name and input token count of the input summary section.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + section_ = ""; + tokenCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_SectionToken_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.section_ = section_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tokenCount_ = tokenCount_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .getDefaultInstance()) return this; + if (!other.getSection().isEmpty()) { + section_ = other.section_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTokenCount()) { + setTokenCount(other.getTokenCount()); + } + 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: + { + section_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + tokenCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 section_ = ""; + + /** + * + * + *
                                          +       * Output only. The name of the summary instruction.
                                          +       * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + public java.lang.String getSection() { + java.lang.Object ref = section_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + section_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The name of the summary instruction.
                                          +       * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Output only. The name of the summary instruction.
                                          +       * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The section to set. + * @return This builder for chaining. + */ + public Builder setSection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The name of the summary instruction.
                                          +       * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSection() { + section_ = getDefaultInstance().getSection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. The name of the summary instruction.
                                          +       * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for section to set. + * @return This builder for chaining. + */ + public Builder setSectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long tokenCount_; + + /** + * + * + *
                                          +       * Output only. Token count.
                                          +       * 
                                          + * + * optional int64 token_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the tokenCount field is set. + */ + @java.lang.Override + public boolean hasTokenCount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * Output only. Token count.
                                          +       * 
                                          + * + * optional int64 token_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tokenCount. + */ + @java.lang.Override + public long getTokenCount() { + return tokenCount_; + } + + /** + * + * + *
                                          +       * Output only. Token count.
                                          +       * 
                                          + * + * optional int64 token_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tokenCount to set. + * @return This builder for chaining. + */ + public Builder setTokenCount(long value) { + + tokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Output only. Token count.
                                          +       * 
                                          + * + * optional int64 token_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + tokenCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionToken + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SectionToken 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConversationDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getMessageEntriesList(); + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.MessageEntry getMessageEntries(int index); + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getMessageEntriesCount(); + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getMessageEntriesOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.MessageEntryOrBuilder getMessageEntriesOrBuilder(int index); + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getSummarySectionsList(); + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection getSummarySections( + int index); + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSummarySectionsCount(); + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionOrBuilder> + getSummarySectionsOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionOrBuilder + getSummarySectionsOrBuilder(int index); + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail> + getMetricDetailsList(); + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + getMetricDetails(int index); + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getMetricDetailsCount(); + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetailOrBuilder> + getMetricDetailsOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetailOrBuilder + getMetricDetailsOrBuilder(int index); + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getSectionTokensList(); + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + getSectionTokens(int index); + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSectionTokensCount(); + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + getSectionTokensOrBuilderList(); + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionTokenOrBuilder + getSectionTokensOrBuilder(int index); + } + + /** + * + * + *
                                          +   * Aggregated evaluation result on conversation level. This contains
                                          +   * evaluation results of all the metrics and sections.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail} + */ + public static final class ConversationDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail) + ConversationDetailOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConversationDetail.newBuilder() to construct. + private ConversationDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationDetail() { + messageEntries_ = java.util.Collections.emptyList(); + summarySections_ = java.util.Collections.emptyList(); + metricDetails_ = java.util.Collections.emptyList(); + sectionTokens_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationDetail(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder.class); + } + + public interface MetricDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Output only. Metrics name. e.g. accuracy, adherence, completeness.
                                          +       * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metric. + */ + java.lang.String getMetric(); + + /** + * + * + *
                                          +       * Output only. Metrics name. e.g. accuracy, adherence, completeness.
                                          +       * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metric. + */ + com.google.protobuf.ByteString getMetricBytes(); + + /** + * + * + *
                                          +       * Output only. Aggregated(average) score on this metric across all
                                          +       * sections.
                                          +       * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + + /** + * + * + *
                                          +       * Output only. Aggregated(average) score on this metric across all
                                          +       * sections.
                                          +       * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail> + getSectionDetailsList(); + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + getSectionDetails(int index); + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSectionDetailsCount(); + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetailOrBuilder> + getSectionDetailsOrBuilderList(); + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetailOrBuilder + getSectionDetailsOrBuilder(int index); + } + + /** + * + * + *
                                          +     * Aggregated result on metric level. This contains the evaluation results
                                          +     * of all the sections.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail} + */ + public static final class MetricDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail) + MetricDetailOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MetricDetail.newBuilder() to construct. + private MetricDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetricDetail() { + metric_ = ""; + sectionDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricDetail(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.Builder.class); + } + + public interface SectionDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +         * Output only. The name of the summary instruction.
                                          +         * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + java.lang.String getSection(); + + /** + * + * + *
                                          +         * Output only. The name of the summary instruction.
                                          +         * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + com.google.protobuf.ByteString getSectionBytes(); + + /** + * + * + *
                                          +         * Output only. Aggregated(average) score on this section across all
                                          +         * evaluation results. Either decompositions or rubrics.
                                          +         * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + + /** + * + * + *
                                          +         * Output only. Aggregated(average) score on this section across all
                                          +         * evaluation results. Either decompositions or rubrics.
                                          +         * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); + + /** + * + * + *
                                          +         * Output only. Summary for this section
                                          +         * 
                                          + * + * string section_summary = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sectionSummary. + */ + java.lang.String getSectionSummary(); + + /** + * + * + *
                                          +         * Output only. Summary for this section
                                          +         * 
                                          + * + * string section_summary = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sectionSummary. + */ + com.google.protobuf.ByteString getSectionSummaryBytes(); + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult> + getEvaluationResultsList(); + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + getEvaluationResults(int index); + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getEvaluationResultsCount(); + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList(); + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index); + } + + /** + * + * + *
                                          +       * Section level result.
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail} + */ + public static final class SectionDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail) + SectionDetailOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SectionDetail.newBuilder() to construct. + private SectionDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SectionDetail() { + section_ = ""; + sectionSummary_ = ""; + evaluationResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SectionDetail(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.Builder.class); + } + + private int bitField0_; + public static final int SECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object section_ = ""; + + /** + * + * + *
                                          +         * Output only. The name of the summary instruction.
                                          +         * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + @java.lang.Override + public java.lang.String getSection() { + java.lang.Object ref = section_; + 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(); + section_ = s; + return s; + } + } + + /** + * + * + *
                                          +         * Output only. The name of the summary instruction.
                                          +         * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCORE_FIELD_NUMBER = 2; + private float score_ = 0F; + + /** + * + * + *
                                          +         * Output only. Aggregated(average) score on this section across all
                                          +         * evaluation results. Either decompositions or rubrics.
                                          +         * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +         * Output only. Aggregated(average) score on this section across all
                                          +         * evaluation results. Either decompositions or rubrics.
                                          +         * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + public static final int SECTION_SUMMARY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object sectionSummary_ = ""; + + /** + * + * + *
                                          +         * Output only. Summary for this section
                                          +         * 
                                          + * + * string section_summary = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sectionSummary. + */ + @java.lang.Override + public java.lang.String getSectionSummary() { + java.lang.Object ref = sectionSummary_; + 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(); + sectionSummary_ = s; + return s; + } + } + + /** + * + * + *
                                          +         * Output only. Summary for this section
                                          +         * 
                                          + * + * string section_summary = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sectionSummary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSectionSummaryBytes() { + java.lang.Object ref = sectionSummary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sectionSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATION_RESULTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult> + evaluationResults_; + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult> + getEvaluationResultsList() { + return evaluationResults_; + } + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList() { + return evaluationResults_; + } + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getEvaluationResultsCount() { + return evaluationResults_.size(); + } + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + getEvaluationResults(int index) { + return evaluationResults_.get(index); + } + + /** + * + * + *
                                          +         * Output only. List of evaluation result. The list only contains one
                                          +         * kind of the evaluation result.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index) { + return evaluationResults_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(section_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, section_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(2, score_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sectionSummary_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sectionSummary_); + } + for (int i = 0; i < evaluationResults_.size(); i++) { + output.writeMessage(5, evaluationResults_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(section_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, section_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sectionSummary_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sectionSummary_); + } + for (int i = 0; i < evaluationResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, evaluationResults_.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.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail) + obj; + + if (!getSection().equals(other.getSection())) return false; + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + } + if (!getSectionSummary().equals(other.getSectionSummary())) return false; + if (!getEvaluationResultsList().equals(other.getEvaluationResultsList())) 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) + SECTION_FIELD_NUMBER; + hash = (53 * hash) + getSection().hashCode(); + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (37 * hash) + SECTION_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSectionSummary().hashCode(); + if (getEvaluationResultsCount() > 0) { + hash = (37 * hash) + EVALUATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +         * Section level result.
                                          +         * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + section_ = ""; + score_ = 0F; + sectionSummary_ = ""; + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + } else { + evaluationResults_ = null; + evaluationResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_SectionDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + result) { + if (evaluationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + evaluationResults_ = java.util.Collections.unmodifiableList(evaluationResults_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.evaluationResults_ = evaluationResults_; + } else { + result.evaluationResults_ = evaluationResultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.section_ = section_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sectionSummary_ = sectionSummary_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.getDefaultInstance()) + return this; + if (!other.getSection().isEmpty()) { + section_ = other.section_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasScore()) { + setScore(other.getScore()); + } + if (!other.getSectionSummary().isEmpty()) { + sectionSummary_ = other.sectionSummary_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (evaluationResultsBuilder_ == null) { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResults_.isEmpty()) { + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureEvaluationResultsIsMutable(); + evaluationResults_.addAll(other.evaluationResults_); + } + onChanged(); + } + } else { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResultsBuilder_.isEmpty()) { + evaluationResultsBuilder_.dispose(); + evaluationResultsBuilder_ = null; + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000008); + evaluationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEvaluationResultsFieldBuilder() + : null; + } else { + evaluationResultsBuilder_.addAllMessages(other.evaluationResults_); + } + } + } + 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: + { + section_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 34: + { + sectionSummary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult.parser(), + extensionRegistry); + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(m); + } else { + evaluationResultsBuilder_.addMessage(m); + } + 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 section_ = ""; + + /** + * + * + *
                                          +           * Output only. The name of the summary instruction.
                                          +           * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + public java.lang.String getSection() { + java.lang.Object ref = section_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + section_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +           * Output only. The name of the summary instruction.
                                          +           * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +           * Output only. The name of the summary instruction.
                                          +           * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The section to set. + * @return This builder for chaining. + */ + public Builder setSection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * Output only. The name of the summary instruction.
                                          +           * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSection() { + section_ = getDefaultInstance().getSection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * Output only. The name of the summary instruction.
                                          +           * 
                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for section to set. + * @return This builder for chaining. + */ + public Builder setSectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float score_; + + /** + * + * + *
                                          +           * Output only. Aggregated(average) score on this section across all
                                          +           * evaluation results. Either decompositions or rubrics.
                                          +           * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +           * Output only. Aggregated(average) score on this section across all
                                          +           * evaluation results. Either decompositions or rubrics.
                                          +           * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + /** + * + * + *
                                          +           * Output only. Aggregated(average) score on this section across all
                                          +           * evaluation results. Either decompositions or rubrics.
                                          +           * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * Output only. Aggregated(average) score on this section across all
                                          +           * evaluation results. Either decompositions or rubrics.
                                          +           * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000002); + score_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object sectionSummary_ = ""; + + /** + * + * + *
                                          +           * Output only. Summary for this section
                                          +           * 
                                          + * + * string section_summary = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sectionSummary. + */ + public java.lang.String getSectionSummary() { + java.lang.Object ref = sectionSummary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sectionSummary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +           * Output only. Summary for this section
                                          +           * 
                                          + * + * string section_summary = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sectionSummary. + */ + public com.google.protobuf.ByteString getSectionSummaryBytes() { + java.lang.Object ref = sectionSummary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sectionSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +           * Output only. Summary for this section
                                          +           * 
                                          + * + * string section_summary = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sectionSummary to set. + * @return This builder for chaining. + */ + public Builder setSectionSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sectionSummary_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * Output only. Summary for this section
                                          +           * 
                                          + * + * string section_summary = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSectionSummary() { + sectionSummary_ = getDefaultInstance().getSectionSummary(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * Output only. Summary for this section
                                          +           * 
                                          + * + * string section_summary = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sectionSummary to set. + * @return This builder for chaining. + */ + public Builder setSectionSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sectionSummary_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult> + evaluationResults_ = java.util.Collections.emptyList(); + + private void ensureEvaluationResultsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + evaluationResults_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult>(evaluationResults_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + evaluationResultsBuilder_; + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult> + getEvaluationResultsList() { + if (evaluationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluationResults_); + } else { + return evaluationResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getEvaluationResultsCount() { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.size(); + } else { + return evaluationResultsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + getEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEvaluationResults( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEvaluationResults( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllEvaluationResults( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult> + values) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationResults_); + onChanged(); + } else { + evaluationResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEvaluationResults() { + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + evaluationResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.remove(index); + onChanged(); + } else { + evaluationResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + getEvaluationResultsBuilder(int index) { + return getEvaluationResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder + getEvaluationResultsOrBuilder(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + getEvaluationResultsOrBuilderList() { + if (evaluationResultsBuilder_ != null) { + return evaluationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluationResults_); + } + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + addEvaluationResultsBuilder() { + return getEvaluationResultsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult.getDefaultInstance()); + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult + .Builder + addEvaluationResultsBuilder(int index) { + return getEvaluationResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult.getDefaultInstance()); + } + + /** + * + * + *
                                          +           * Output only. List of evaluation result. The list only contains one
                                          +           * kind of the evaluation result.
                                          +           * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.EvaluationResult evaluation_results = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult.Builder> + getEvaluationResultsBuilderList() { + return getEvaluationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder> + getEvaluationResultsFieldBuilder() { + if (evaluationResultsBuilder_ == null) { + evaluationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResult.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .EvaluationResultOrBuilder>( + evaluationResults_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + return evaluationResultsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SectionDetail 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int METRIC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metric_ = ""; + + /** + * + * + *
                                          +       * Output only. Metrics name. e.g. accuracy, adherence, completeness.
                                          +       * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metric. + */ + @java.lang.Override + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + 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(); + metric_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Output only. Metrics name. e.g. accuracy, adherence, completeness.
                                          +       * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metric. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricBytes() { + java.lang.Object ref = metric_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metric_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCORE_FIELD_NUMBER = 2; + private float score_ = 0F; + + /** + * + * + *
                                          +       * Output only. Aggregated(average) score on this metric across all
                                          +       * sections.
                                          +       * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +       * Output only. Aggregated(average) score on this metric across all
                                          +       * sections.
                                          +       * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + public static final int SECTION_DETAILS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail> + sectionDetails_; + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail> + getSectionDetailsList() { + return sectionDetails_; + } + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetailOrBuilder> + getSectionDetailsOrBuilderList() { + return sectionDetails_; + } + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSectionDetailsCount() { + return sectionDetails_.size(); + } + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + getSectionDetails(int index) { + return sectionDetails_.get(index); + } + + /** + * + * + *
                                          +       * Output only. List of section details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetailOrBuilder + getSectionDetailsOrBuilder(int index) { + return sectionDetails_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metric_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(2, score_); + } + for (int i = 0; i < sectionDetails_.size(); i++) { + output.writeMessage(4, sectionDetails_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metric_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + } + for (int i = 0; i < sectionDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, sectionDetails_.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.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail) + obj; + + if (!getMetric().equals(other.getMetric())) return false; + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + } + if (!getSectionDetailsList().equals(other.getSectionDetailsList())) 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) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetric().hashCode(); + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + if (getSectionDetailsCount() > 0) { + hash = (37 * hash) + SECTION_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getSectionDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * Aggregated result on metric level. This contains the evaluation results
                                          +       * of all the sections.
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metric_ = ""; + score_ = 0F; + if (sectionDetailsBuilder_ == null) { + sectionDetails_ = java.util.Collections.emptyList(); + } else { + sectionDetails_ = null; + sectionDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_MetricDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + result) { + if (sectionDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sectionDetails_ = java.util.Collections.unmodifiableList(sectionDetails_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sectionDetails_ = sectionDetails_; + } else { + result.sectionDetails_ = sectionDetailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metric_ = metric_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.getDefaultInstance()) return this; + if (!other.getMetric().isEmpty()) { + metric_ = other.metric_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasScore()) { + setScore(other.getScore()); + } + if (sectionDetailsBuilder_ == null) { + if (!other.sectionDetails_.isEmpty()) { + if (sectionDetails_.isEmpty()) { + sectionDetails_ = other.sectionDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSectionDetailsIsMutable(); + sectionDetails_.addAll(other.sectionDetails_); + } + onChanged(); + } + } else { + if (!other.sectionDetails_.isEmpty()) { + if (sectionDetailsBuilder_.isEmpty()) { + sectionDetailsBuilder_.dispose(); + sectionDetailsBuilder_ = null; + sectionDetails_ = other.sectionDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + sectionDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSectionDetailsFieldBuilder() + : null; + } else { + sectionDetailsBuilder_.addAllMessages(other.sectionDetails_); + } + } + } + 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: + { + metric_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 34: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.parser(), + extensionRegistry); + if (sectionDetailsBuilder_ == null) { + ensureSectionDetailsIsMutable(); + sectionDetails_.add(m); + } else { + sectionDetailsBuilder_.addMessage(m); + } + break; + } // case 34 + 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 metric_ = ""; + + /** + * + * + *
                                          +         * Output only. Metrics name. e.g. accuracy, adherence, completeness.
                                          +         * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metric. + */ + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metric_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Output only. Metrics name. e.g. accuracy, adherence, completeness.
                                          +         * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metric. + */ + public com.google.protobuf.ByteString getMetricBytes() { + java.lang.Object ref = metric_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metric_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Output only. Metrics name. e.g. accuracy, adherence, completeness.
                                          +         * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The metric to set. + * @return This builder for chaining. + */ + public Builder setMetric(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metric_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. Metrics name. e.g. accuracy, adherence, completeness.
                                          +         * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMetric() { + metric_ = getDefaultInstance().getMetric(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. Metrics name. e.g. accuracy, adherence, completeness.
                                          +         * 
                                          + * + * string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for metric to set. + * @return This builder for chaining. + */ + public Builder setMetricBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metric_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float score_; + + /** + * + * + *
                                          +         * Output only. Aggregated(average) score on this metric across all
                                          +         * sections.
                                          +         * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +         * Output only. Aggregated(average) score on this metric across all
                                          +         * sections.
                                          +         * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + /** + * + * + *
                                          +         * Output only. Aggregated(average) score on this metric across all
                                          +         * sections.
                                          +         * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Output only. Aggregated(average) score on this metric across all
                                          +         * sections.
                                          +         * 
                                          + * + * optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000002); + score_ = 0F; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail> + sectionDetails_ = java.util.Collections.emptyList(); + + private void ensureSectionDetailsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sectionDetails_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail>(sectionDetails_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetailOrBuilder> + sectionDetailsBuilder_; + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail> + getSectionDetailsList() { + if (sectionDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sectionDetails_); + } else { + return sectionDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSectionDetailsCount() { + if (sectionDetailsBuilder_ == null) { + return sectionDetails_.size(); + } else { + return sectionDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + getSectionDetails(int index) { + if (sectionDetailsBuilder_ == null) { + return sectionDetails_.get(index); + } else { + return sectionDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSectionDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + value) { + if (sectionDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionDetailsIsMutable(); + sectionDetails_.set(index, value); + onChanged(); + } else { + sectionDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSectionDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail.Builder + builderForValue) { + if (sectionDetailsBuilder_ == null) { + ensureSectionDetailsIsMutable(); + sectionDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + sectionDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSectionDetails( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + value) { + if (sectionDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionDetailsIsMutable(); + sectionDetails_.add(value); + onChanged(); + } else { + sectionDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSectionDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail + value) { + if (sectionDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionDetailsIsMutable(); + sectionDetails_.add(index, value); + onChanged(); + } else { + sectionDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSectionDetails( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail.Builder + builderForValue) { + if (sectionDetailsBuilder_ == null) { + ensureSectionDetailsIsMutable(); + sectionDetails_.add(builderForValue.build()); + onChanged(); + } else { + sectionDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSectionDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail.Builder + builderForValue) { + if (sectionDetailsBuilder_ == null) { + ensureSectionDetailsIsMutable(); + sectionDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + sectionDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSectionDetails( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail> + values) { + if (sectionDetailsBuilder_ == null) { + ensureSectionDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sectionDetails_); + onChanged(); + } else { + sectionDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSectionDetails() { + if (sectionDetailsBuilder_ == null) { + sectionDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sectionDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSectionDetails(int index) { + if (sectionDetailsBuilder_ == null) { + ensureSectionDetailsIsMutable(); + sectionDetails_.remove(index); + onChanged(); + } else { + sectionDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail.Builder + getSectionDetailsBuilder(int index) { + return getSectionDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetailOrBuilder + getSectionDetailsOrBuilder(int index) { + if (sectionDetailsBuilder_ == null) { + return sectionDetails_.get(index); + } else { + return sectionDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetailOrBuilder> + getSectionDetailsOrBuilderList() { + if (sectionDetailsBuilder_ != null) { + return sectionDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sectionDetails_); + } + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail.Builder + addSectionDetailsBuilder() { + return getSectionDetailsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.getDefaultInstance()); + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.SectionDetail.Builder + addSectionDetailsBuilder(int index) { + return getSectionDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.getDefaultInstance()); + } + + /** + * + * + *
                                          +         * Output only. List of section details.
                                          +         * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail.SectionDetail section_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.Builder> + getSectionDetailsBuilderList() { + return getSectionDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetailOrBuilder> + getSectionDetailsFieldBuilder() { + if (sectionDetailsBuilder_ == null) { + sectionDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetail.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.SectionDetailOrBuilder>( + sectionDetails_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + sectionDetails_ = null; + } + return sectionDetailsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricDetail 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int MESSAGE_ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List messageEntries_; + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getMessageEntriesList() { + return messageEntries_; + } + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getMessageEntriesOrBuilderList() { + return messageEntries_; + } + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getMessageEntriesCount() { + return messageEntries_.size(); + } + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.MessageEntry getMessageEntries(int index) { + return messageEntries_.get(index); + } + + /** + * + * + *
                                          +     * Output only. Conversation transcript that used for summarization
                                          +     * evaluation as a reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.MessageEntryOrBuilder getMessageEntriesOrBuilder( + int index) { + return messageEntries_.get(index); + } + + public static final int SUMMARY_SECTIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + summarySections_; + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getSummarySectionsList() { + return summarySections_; + } + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionOrBuilder> + getSummarySectionsOrBuilderList() { + return summarySections_; + } + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSummarySectionsCount() { + return summarySections_.size(); + } + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection getSummarySections( + int index) { + return summarySections_.get(index); + } + + /** + * + * + *
                                          +     * Output only. Summary sections that used for summarization evaluation as a
                                          +     * reference.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionOrBuilder + getSummarySectionsOrBuilder(int index) { + return summarySections_.get(index); + } + + public static final int METRIC_DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail> + metricDetails_; + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail> + getMetricDetailsList() { + return metricDetails_; + } + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetailOrBuilder> + getMetricDetailsOrBuilderList() { + return metricDetails_; + } + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getMetricDetailsCount() { + return metricDetails_.size(); + } + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + getMetricDetails(int index) { + return metricDetails_.get(index); + } + + /** + * + * + *
                                          +     * Output only. List of metric details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetailOrBuilder + getMetricDetailsOrBuilder(int index) { + return metricDetails_.get(index); + } + + public static final int SECTION_TOKENS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken> + sectionTokens_; + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken> + getSectionTokensList() { + return sectionTokens_; + } + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + getSectionTokensOrBuilderList() { + return sectionTokens_; + } + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSectionTokensCount() { + return sectionTokens_.size(); + } + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + getSectionTokens(int index) { + return sectionTokens_.get(index); + } + + /** + * + * + *
                                          +     * Output only. Conversation level token count per section. This is an
                                          +     * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +     * single conversation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionTokenOrBuilder + getSectionTokensOrBuilder(int index) { + return sectionTokens_.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 < messageEntries_.size(); i++) { + output.writeMessage(1, messageEntries_.get(i)); + } + for (int i = 0; i < metricDetails_.size(); i++) { + output.writeMessage(2, metricDetails_.get(i)); + } + for (int i = 0; i < sectionTokens_.size(); i++) { + output.writeMessage(3, sectionTokens_.get(i)); + } + for (int i = 0; i < summarySections_.size(); i++) { + output.writeMessage(4, summarySections_.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 < messageEntries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messageEntries_.get(i)); + } + for (int i = 0; i < metricDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricDetails_.get(i)); + } + for (int i = 0; i < sectionTokens_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, sectionTokens_.get(i)); + } + for (int i = 0; i < summarySections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, summarySections_.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.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail) + obj; + + if (!getMessageEntriesList().equals(other.getMessageEntriesList())) return false; + if (!getSummarySectionsList().equals(other.getSummarySectionsList())) return false; + if (!getMetricDetailsList().equals(other.getMetricDetailsList())) return false; + if (!getSectionTokensList().equals(other.getSectionTokensList())) 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 (getMessageEntriesCount() > 0) { + hash = (37 * hash) + MESSAGE_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getMessageEntriesList().hashCode(); + } + if (getSummarySectionsCount() > 0) { + hash = (37 * hash) + SUMMARY_SECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSummarySectionsList().hashCode(); + } + if (getMetricDetailsCount() > 0) { + hash = (37 * hash) + METRIC_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getMetricDetailsList().hashCode(); + } + if (getSectionTokensCount() > 0) { + hash = (37 * hash) + SECTION_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + getSectionTokensList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Aggregated evaluation result on conversation level. This contains
                                          +     * evaluation results of all the metrics and sections.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (messageEntriesBuilder_ == null) { + messageEntries_ = java.util.Collections.emptyList(); + } else { + messageEntries_ = null; + messageEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (summarySectionsBuilder_ == null) { + summarySections_ = java.util.Collections.emptyList(); + } else { + summarySections_ = null; + summarySectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (metricDetailsBuilder_ == null) { + metricDetails_ = java.util.Collections.emptyList(); + } else { + metricDetails_ = null; + metricDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (sectionTokensBuilder_ == null) { + sectionTokens_ = java.util.Collections.emptyList(); + } else { + sectionTokens_ = null; + sectionTokensBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_ConversationDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + result) { + if (messageEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + messageEntries_ = java.util.Collections.unmodifiableList(messageEntries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.messageEntries_ = messageEntries_; + } else { + result.messageEntries_ = messageEntriesBuilder_.build(); + } + if (summarySectionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + summarySections_ = java.util.Collections.unmodifiableList(summarySections_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.summarySections_ = summarySections_; + } else { + result.summarySections_ = summarySectionsBuilder_.build(); + } + if (metricDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + metricDetails_ = java.util.Collections.unmodifiableList(metricDetails_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.metricDetails_ = metricDetails_; + } else { + result.metricDetails_ = metricDetailsBuilder_.build(); + } + if (sectionTokensBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + sectionTokens_ = java.util.Collections.unmodifiableList(sectionTokens_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.sectionTokens_ = sectionTokens_; + } else { + result.sectionTokens_ = sectionTokensBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .getDefaultInstance()) return this; + if (messageEntriesBuilder_ == null) { + if (!other.messageEntries_.isEmpty()) { + if (messageEntries_.isEmpty()) { + messageEntries_ = other.messageEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessageEntriesIsMutable(); + messageEntries_.addAll(other.messageEntries_); + } + onChanged(); + } + } else { + if (!other.messageEntries_.isEmpty()) { + if (messageEntriesBuilder_.isEmpty()) { + messageEntriesBuilder_.dispose(); + messageEntriesBuilder_ = null; + messageEntries_ = other.messageEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + messageEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessageEntriesFieldBuilder() + : null; + } else { + messageEntriesBuilder_.addAllMessages(other.messageEntries_); + } + } + } + if (summarySectionsBuilder_ == null) { + if (!other.summarySections_.isEmpty()) { + if (summarySections_.isEmpty()) { + summarySections_ = other.summarySections_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSummarySectionsIsMutable(); + summarySections_.addAll(other.summarySections_); + } + onChanged(); + } + } else { + if (!other.summarySections_.isEmpty()) { + if (summarySectionsBuilder_.isEmpty()) { + summarySectionsBuilder_.dispose(); + summarySectionsBuilder_ = null; + summarySections_ = other.summarySections_; + bitField0_ = (bitField0_ & ~0x00000002); + summarySectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSummarySectionsFieldBuilder() + : null; + } else { + summarySectionsBuilder_.addAllMessages(other.summarySections_); + } + } + } + if (metricDetailsBuilder_ == null) { + if (!other.metricDetails_.isEmpty()) { + if (metricDetails_.isEmpty()) { + metricDetails_ = other.metricDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMetricDetailsIsMutable(); + metricDetails_.addAll(other.metricDetails_); + } + onChanged(); + } + } else { + if (!other.metricDetails_.isEmpty()) { + if (metricDetailsBuilder_.isEmpty()) { + metricDetailsBuilder_.dispose(); + metricDetailsBuilder_ = null; + metricDetails_ = other.metricDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + metricDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricDetailsFieldBuilder() + : null; + } else { + metricDetailsBuilder_.addAllMessages(other.metricDetails_); + } + } + } + if (sectionTokensBuilder_ == null) { + if (!other.sectionTokens_.isEmpty()) { + if (sectionTokens_.isEmpty()) { + sectionTokens_ = other.sectionTokens_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSectionTokensIsMutable(); + sectionTokens_.addAll(other.sectionTokens_); + } + onChanged(); + } + } else { + if (!other.sectionTokens_.isEmpty()) { + if (sectionTokensBuilder_.isEmpty()) { + sectionTokensBuilder_.dispose(); + sectionTokensBuilder_ = null; + sectionTokens_ = other.sectionTokens_; + bitField0_ = (bitField0_ & ~0x00000008); + sectionTokensBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSectionTokensFieldBuilder() + : null; + } else { + sectionTokensBuilder_.addAllMessages(other.sectionTokens_); + } + } + } + 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.dialogflow.v2beta1.MessageEntry m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.MessageEntry.parser(), + extensionRegistry); + if (messageEntriesBuilder_ == null) { + ensureMessageEntriesIsMutable(); + messageEntries_.add(m); + } else { + messageEntriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.parser(), + extensionRegistry); + if (metricDetailsBuilder_ == null) { + ensureMetricDetailsIsMutable(); + metricDetails_.add(m); + } else { + metricDetailsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionToken.parser(), + extensionRegistry); + if (sectionTokensBuilder_ == null) { + ensureSectionTokensIsMutable(); + sectionTokens_.add(m); + } else { + sectionTokensBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection + .parser(), + extensionRegistry); + if (summarySectionsBuilder_ == null) { + ensureSummarySectionsIsMutable(); + summarySections_.add(m); + } else { + summarySectionsBuilder_.addMessage(m); + } + break; + } // case 34 + 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 messageEntries_ = + java.util.Collections.emptyList(); + + private void ensureMessageEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + messageEntries_ = + new java.util.ArrayList( + messageEntries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.MessageEntry, + com.google.cloud.dialogflow.v2beta1.MessageEntry.Builder, + com.google.cloud.dialogflow.v2beta1.MessageEntryOrBuilder> + messageEntriesBuilder_; + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMessageEntriesList() { + if (messageEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messageEntries_); + } else { + return messageEntriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getMessageEntriesCount() { + if (messageEntriesBuilder_ == null) { + return messageEntries_.size(); + } else { + return messageEntriesBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.MessageEntry getMessageEntries(int index) { + if (messageEntriesBuilder_ == null) { + return messageEntries_.get(index); + } else { + return messageEntriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMessageEntries( + int index, com.google.cloud.dialogflow.v2beta1.MessageEntry value) { + if (messageEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageEntriesIsMutable(); + messageEntries_.set(index, value); + onChanged(); + } else { + messageEntriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMessageEntries( + int index, com.google.cloud.dialogflow.v2beta1.MessageEntry.Builder builderForValue) { + if (messageEntriesBuilder_ == null) { + ensureMessageEntriesIsMutable(); + messageEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + messageEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMessageEntries(com.google.cloud.dialogflow.v2beta1.MessageEntry value) { + if (messageEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageEntriesIsMutable(); + messageEntries_.add(value); + onChanged(); + } else { + messageEntriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMessageEntries( + int index, com.google.cloud.dialogflow.v2beta1.MessageEntry value) { + if (messageEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageEntriesIsMutable(); + messageEntries_.add(index, value); + onChanged(); + } else { + messageEntriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMessageEntries( + com.google.cloud.dialogflow.v2beta1.MessageEntry.Builder builderForValue) { + if (messageEntriesBuilder_ == null) { + ensureMessageEntriesIsMutable(); + messageEntries_.add(builderForValue.build()); + onChanged(); + } else { + messageEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMessageEntries( + int index, com.google.cloud.dialogflow.v2beta1.MessageEntry.Builder builderForValue) { + if (messageEntriesBuilder_ == null) { + ensureMessageEntriesIsMutable(); + messageEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + messageEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllMessageEntries( + java.lang.Iterable values) { + if (messageEntriesBuilder_ == null) { + ensureMessageEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageEntries_); + onChanged(); + } else { + messageEntriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMessageEntries() { + if (messageEntriesBuilder_ == null) { + messageEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + messageEntriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeMessageEntries(int index) { + if (messageEntriesBuilder_ == null) { + ensureMessageEntriesIsMutable(); + messageEntries_.remove(index); + onChanged(); + } else { + messageEntriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.MessageEntry.Builder getMessageEntriesBuilder( + int index) { + return getMessageEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.MessageEntryOrBuilder getMessageEntriesOrBuilder( + int index) { + if (messageEntriesBuilder_ == null) { + return messageEntries_.get(index); + } else { + return messageEntriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMessageEntriesOrBuilderList() { + if (messageEntriesBuilder_ != null) { + return messageEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messageEntries_); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.MessageEntry.Builder addMessageEntriesBuilder() { + return getMessageEntriesFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.MessageEntry.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.MessageEntry.Builder addMessageEntriesBuilder( + int index) { + return getMessageEntriesFieldBuilder() + .addBuilder( + index, com.google.cloud.dialogflow.v2beta1.MessageEntry.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Conversation transcript that used for summarization
                                          +       * evaluation as a reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMessageEntriesBuilderList() { + return getMessageEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.MessageEntry, + com.google.cloud.dialogflow.v2beta1.MessageEntry.Builder, + com.google.cloud.dialogflow.v2beta1.MessageEntryOrBuilder> + getMessageEntriesFieldBuilder() { + if (messageEntriesBuilder_ == null) { + messageEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.MessageEntry, + com.google.cloud.dialogflow.v2beta1.MessageEntry.Builder, + com.google.cloud.dialogflow.v2beta1.MessageEntryOrBuilder>( + messageEntries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + messageEntries_ = null; + } + return messageEntriesBuilder_; + } + + private java.util.List + summarySections_ = java.util.Collections.emptyList(); + + private void ensureSummarySectionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + summarySections_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection>( + summarySections_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionOrBuilder> + summarySectionsBuilder_; + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSummarySectionsList() { + if (summarySectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(summarySections_); + } else { + return summarySectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSummarySectionsCount() { + if (summarySectionsBuilder_ == null) { + return summarySections_.size(); + } else { + return summarySectionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection + getSummarySections(int index) { + if (summarySectionsBuilder_ == null) { + return summarySections_.get(index); + } else { + return summarySectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSummarySections( + int index, com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection value) { + if (summarySectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarySectionsIsMutable(); + summarySections_.set(index, value); + onChanged(); + } else { + summarySectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSummarySections( + int index, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder + builderForValue) { + if (summarySectionsBuilder_ == null) { + ensureSummarySectionsIsMutable(); + summarySections_.set(index, builderForValue.build()); + onChanged(); + } else { + summarySectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSummarySections( + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection value) { + if (summarySectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarySectionsIsMutable(); + summarySections_.add(value); + onChanged(); + } else { + summarySectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSummarySections( + int index, com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection value) { + if (summarySectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarySectionsIsMutable(); + summarySections_.add(index, value); + onChanged(); + } else { + summarySectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSummarySections( + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder + builderForValue) { + if (summarySectionsBuilder_ == null) { + ensureSummarySectionsIsMutable(); + summarySections_.add(builderForValue.build()); + onChanged(); + } else { + summarySectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSummarySections( + int index, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder + builderForValue) { + if (summarySectionsBuilder_ == null) { + ensureSummarySectionsIsMutable(); + summarySections_.add(index, builderForValue.build()); + onChanged(); + } else { + summarySectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSummarySections( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection> + values) { + if (summarySectionsBuilder_ == null) { + ensureSummarySectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, summarySections_); + onChanged(); + } else { + summarySectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSummarySections() { + if (summarySectionsBuilder_ == null) { + summarySections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + summarySectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSummarySections(int index) { + if (summarySectionsBuilder_ == null) { + ensureSummarySectionsIsMutable(); + summarySections_.remove(index); + onChanged(); + } else { + summarySectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder + getSummarySectionsBuilder(int index) { + return getSummarySectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionOrBuilder + getSummarySectionsOrBuilder(int index) { + if (summarySectionsBuilder_ == null) { + return summarySections_.get(index); + } else { + return summarySectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionOrBuilder> + getSummarySectionsOrBuilderList() { + if (summarySectionsBuilder_ != null) { + return summarySectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(summarySections_); + } + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder + addSummarySectionsBuilder() { + return getSummarySectionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection + .getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder + addSummarySectionsBuilder(int index) { + return getSummarySectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection + .getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Summary sections that used for summarization evaluation as a
                                          +       * reference.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection summary_sections = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder> + getSummarySectionsBuilderList() { + return getSummarySectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionOrBuilder> + getSummarySectionsFieldBuilder() { + if (summarySectionsBuilder_ == null) { + summarySectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySection.Builder, + com.google.cloud.dialogflow.v2beta1.SummarySuggestion.SummarySectionOrBuilder>( + summarySections_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + summarySections_ = null; + } + return summarySectionsBuilder_; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail> + metricDetails_ = java.util.Collections.emptyList(); + + private void ensureMetricDetailsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + metricDetails_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail>(metricDetails_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetailOrBuilder> + metricDetailsBuilder_; + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail> + getMetricDetailsList() { + if (metricDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricDetails_); + } else { + return metricDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getMetricDetailsCount() { + if (metricDetailsBuilder_ == null) { + return metricDetails_.size(); + } else { + return metricDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + getMetricDetails(int index) { + if (metricDetailsBuilder_ == null) { + return metricDetails_.get(index); + } else { + return metricDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetricDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + value) { + if (metricDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDetailsIsMutable(); + metricDetails_.set(index, value); + onChanged(); + } else { + metricDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetricDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.Builder + builderForValue) { + if (metricDetailsBuilder_ == null) { + ensureMetricDetailsIsMutable(); + metricDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + metricDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMetricDetails( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + value) { + if (metricDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDetailsIsMutable(); + metricDetails_.add(value); + onChanged(); + } else { + metricDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMetricDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail + value) { + if (metricDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDetailsIsMutable(); + metricDetails_.add(index, value); + onChanged(); + } else { + metricDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMetricDetails( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.Builder + builderForValue) { + if (metricDetailsBuilder_ == null) { + ensureMetricDetailsIsMutable(); + metricDetails_.add(builderForValue.build()); + onChanged(); + } else { + metricDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addMetricDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.Builder + builderForValue) { + if (metricDetailsBuilder_ == null) { + ensureMetricDetailsIsMutable(); + metricDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + metricDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllMetricDetails( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail> + values) { + if (metricDetailsBuilder_ == null) { + ensureMetricDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricDetails_); + onChanged(); + } else { + metricDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMetricDetails() { + if (metricDetailsBuilder_ == null) { + metricDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + metricDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeMetricDetails(int index) { + if (metricDetailsBuilder_ == null) { + ensureMetricDetailsIsMutable(); + metricDetails_.remove(index); + onChanged(); + } else { + metricDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.Builder + getMetricDetailsBuilder(int index) { + return getMetricDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetailOrBuilder + getMetricDetailsOrBuilder(int index) { + if (metricDetailsBuilder_ == null) { + return metricDetails_.get(index); + } else { + return metricDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetailOrBuilder> + getMetricDetailsOrBuilderList() { + if (metricDetailsBuilder_ != null) { + return metricDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricDetails_); + } + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.Builder + addMetricDetailsBuilder() { + return getMetricDetailsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.Builder + addMetricDetailsBuilder(int index) { + return getMetricDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. List of metric details.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail metric_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.Builder> + getMetricDetailsBuilderList() { + return getMetricDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetail.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .MetricDetailOrBuilder> + getMetricDetailsFieldBuilder() { + if (metricDetailsBuilder_ == null) { + metricDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetail.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.MetricDetailOrBuilder>( + metricDetails_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + metricDetails_ = null; + } + return metricDetailsBuilder_; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken> + sectionTokens_ = java.util.Collections.emptyList(); + + private void ensureSectionTokensIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + sectionTokens_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken>( + sectionTokens_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + sectionTokensBuilder_; + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken> + getSectionTokensList() { + if (sectionTokensBuilder_ == null) { + return java.util.Collections.unmodifiableList(sectionTokens_); + } else { + return sectionTokensBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSectionTokensCount() { + if (sectionTokensBuilder_ == null) { + return sectionTokens_.size(); + } else { + return sectionTokensBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + getSectionTokens(int index) { + if (sectionTokensBuilder_ == null) { + return sectionTokens_.get(index); + } else { + return sectionTokensBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSectionTokens( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken value) { + if (sectionTokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionTokensIsMutable(); + sectionTokens_.set(index, value); + onChanged(); + } else { + sectionTokensBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSectionTokens( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + builderForValue) { + if (sectionTokensBuilder_ == null) { + ensureSectionTokensIsMutable(); + sectionTokens_.set(index, builderForValue.build()); + onChanged(); + } else { + sectionTokensBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSectionTokens( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken value) { + if (sectionTokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionTokensIsMutable(); + sectionTokens_.add(value); + onChanged(); + } else { + sectionTokensBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSectionTokens( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken value) { + if (sectionTokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionTokensIsMutable(); + sectionTokens_.add(index, value); + onChanged(); + } else { + sectionTokensBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSectionTokens( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + builderForValue) { + if (sectionTokensBuilder_ == null) { + ensureSectionTokensIsMutable(); + sectionTokens_.add(builderForValue.build()); + onChanged(); + } else { + sectionTokensBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSectionTokens( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + builderForValue) { + if (sectionTokensBuilder_ == null) { + ensureSectionTokensIsMutable(); + sectionTokens_.add(index, builderForValue.build()); + onChanged(); + } else { + sectionTokensBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSectionTokens( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionToken> + values) { + if (sectionTokensBuilder_ == null) { + ensureSectionTokensIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sectionTokens_); + onChanged(); + } else { + sectionTokensBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSectionTokens() { + if (sectionTokensBuilder_ == null) { + sectionTokens_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + sectionTokensBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSectionTokens(int index) { + if (sectionTokensBuilder_ == null) { + ensureSectionTokensIsMutable(); + sectionTokens_.remove(index); + onChanged(); + } else { + sectionTokensBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + getSectionTokensBuilder(int index) { + return getSectionTokensFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder + getSectionTokensOrBuilder(int index) { + if (sectionTokensBuilder_ == null) { + return sectionTokens_.get(index); + } else { + return sectionTokensBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + getSectionTokensOrBuilderList() { + if (sectionTokensBuilder_ != null) { + return sectionTokensBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sectionTokens_); + } + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + addSectionTokensBuilder() { + return getSectionTokensFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + addSectionTokensBuilder(int index) { + return getSectionTokensFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Output only. Conversation level token count per section. This is an
                                          +       * aggregated(sum) result of input token of summary acorss all metrics for a
                                          +       * single conversation.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken section_tokens = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .Builder> + getSectionTokensBuilderList() { + return getSectionTokensFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + getSectionTokensFieldBuilder() { + if (sectionTokensBuilder_ == null) { + sectionTokensBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder>( + sectionTokens_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + sectionTokens_ = null; + } + return sectionTokensBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationDetail 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.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SUMMARIZATION_EVALUATION_RESULTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult> + summarizationEvaluationResults_; + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult> + getSummarizationEvaluationResultsList() { + return summarizationEvaluationResults_; + } + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder> + getSummarizationEvaluationResultsOrBuilderList() { + return summarizationEvaluationResults_; + } + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSummarizationEvaluationResultsCount() { + return summarizationEvaluationResults_.size(); + } + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + getSummarizationEvaluationResults(int index) { + return summarizationEvaluationResults_.get(index); + } + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder + getSummarizationEvaluationResultsOrBuilder(int index) { + return summarizationEvaluationResults_.get(index); + } + + public static final int SUMMARIZATION_EVALUATION_MERGED_RESULTS_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object summarizationEvaluationMergedResultsUri_ = ""; + + /** + * + * + *
                                          +   * Output only. User bucket uri for merged evaluation score and aggregation
                                          +   * score csv.
                                          +   * 
                                          + * + * + * string summarization_evaluation_merged_results_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The summarizationEvaluationMergedResultsUri. + */ + @java.lang.Override + public java.lang.String getSummarizationEvaluationMergedResultsUri() { + java.lang.Object ref = summarizationEvaluationMergedResultsUri_; + 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(); + summarizationEvaluationMergedResultsUri_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Output only. User bucket uri for merged evaluation score and aggregation
                                          +   * score csv.
                                          +   * 
                                          + * + * + * string summarization_evaluation_merged_results_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for summarizationEvaluationMergedResultsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSummarizationEvaluationMergedResultsUriBytes() { + java.lang.Object ref = summarizationEvaluationMergedResultsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summarizationEvaluationMergedResultsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OVERALL_METRICS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric> + overallMetrics_; + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric> + getOverallMetricsList() { + return overallMetrics_; + } + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetricOrBuilder> + getOverallMetricsOrBuilderList() { + return overallMetrics_; + } + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getOverallMetricsCount() { + return overallMetrics_.size(); + } + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + getOverallMetrics(int index) { + return overallMetrics_.get(index); + } + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetricOrBuilder + getOverallMetricsOrBuilder(int index) { + return overallMetrics_.get(index); + } + + public static final int OVERALL_SECTION_TOKENS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken> + overallSectionTokens_; + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken> + getOverallSectionTokensList() { + return overallSectionTokens_; + } + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + getOverallSectionTokensOrBuilderList() { + return overallSectionTokens_; + } + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getOverallSectionTokensCount() { + return overallSectionTokens_.size(); + } + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + getOverallSectionTokens(int index) { + return overallSectionTokens_.get(index); + } + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionTokenOrBuilder + getOverallSectionTokensOrBuilder(int index) { + return overallSectionTokens_.get(index); + } + + public static final int CONVERSATION_DETAILS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail> + conversationDetails_; + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail> + getConversationDetailsList() { + return conversationDetails_; + } + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetailOrBuilder> + getConversationDetailsOrBuilderList() { + return conversationDetails_; + } + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConversationDetailsCount() { + return conversationDetails_.size(); + } + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + getConversationDetails(int index) { + return conversationDetails_.get(index); + } + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetailOrBuilder + getConversationDetailsOrBuilder(int index) { + return conversationDetails_.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 < summarizationEvaluationResults_.size(); i++) { + output.writeMessage(4, summarizationEvaluationResults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + summarizationEvaluationMergedResultsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, summarizationEvaluationMergedResultsUri_); + } + for (int i = 0; i < overallMetrics_.size(); i++) { + output.writeMessage(6, overallMetrics_.get(i)); + } + for (int i = 0; i < overallSectionTokens_.size(); i++) { + output.writeMessage(7, overallSectionTokens_.get(i)); + } + for (int i = 0; i < conversationDetails_.size(); i++) { + output.writeMessage(8, conversationDetails_.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 < summarizationEvaluationResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, summarizationEvaluationResults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + summarizationEvaluationMergedResultsUri_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 5, summarizationEvaluationMergedResultsUri_); + } + for (int i = 0; i < overallMetrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, overallMetrics_.get(i)); + } + for (int i = 0; i < overallSectionTokens_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, overallSectionTokens_.get(i)); + } + for (int i = 0; i < conversationDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, conversationDetails_.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.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics other = + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) obj; + + if (!getSummarizationEvaluationResultsList() + .equals(other.getSummarizationEvaluationResultsList())) return false; + if (!getSummarizationEvaluationMergedResultsUri() + .equals(other.getSummarizationEvaluationMergedResultsUri())) return false; + if (!getOverallMetricsList().equals(other.getOverallMetricsList())) return false; + if (!getOverallSectionTokensList().equals(other.getOverallSectionTokensList())) return false; + if (!getConversationDetailsList().equals(other.getConversationDetailsList())) 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 (getSummarizationEvaluationResultsCount() > 0) { + hash = (37 * hash) + SUMMARIZATION_EVALUATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getSummarizationEvaluationResultsList().hashCode(); + } + hash = (37 * hash) + SUMMARIZATION_EVALUATION_MERGED_RESULTS_URI_FIELD_NUMBER; + hash = (53 * hash) + getSummarizationEvaluationMergedResultsUri().hashCode(); + if (getOverallMetricsCount() > 0) { + hash = (37 * hash) + OVERALL_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getOverallMetricsList().hashCode(); + } + if (getOverallSectionTokensCount() > 0) { + hash = (37 * hash) + OVERALL_SECTION_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + getOverallSectionTokensList().hashCode(); + } + if (getConversationDetailsCount() > 0) { + hash = (37 * hash) + CONVERSATION_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getConversationDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics 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.dialogflow.v2beta1.SummarizationEvaluationMetrics parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics 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.dialogflow.v2beta1.SummarizationEvaluationMetrics parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Evaluation metrics for summarization generator.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetricsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.class, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (summarizationEvaluationResultsBuilder_ == null) { + summarizationEvaluationResults_ = java.util.Collections.emptyList(); + } else { + summarizationEvaluationResults_ = null; + summarizationEvaluationResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + summarizationEvaluationMergedResultsUri_ = ""; + if (overallMetricsBuilder_ == null) { + overallMetrics_ = java.util.Collections.emptyList(); + } else { + overallMetrics_ = null; + overallMetricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (overallSectionTokensBuilder_ == null) { + overallSectionTokens_ = java.util.Collections.emptyList(); + } else { + overallSectionTokens_ = null; + overallSectionTokensBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (conversationDetailsBuilder_ == null) { + conversationDetails_ = java.util.Collections.emptyList(); + } else { + conversationDetails_ = null; + conversationDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationProto + .internal_static_google_cloud_dialogflow_v2beta1_SummarizationEvaluationMetrics_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics build() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics buildPartial() { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics result = + new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics result) { + if (summarizationEvaluationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + summarizationEvaluationResults_ = + java.util.Collections.unmodifiableList(summarizationEvaluationResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.summarizationEvaluationResults_ = summarizationEvaluationResults_; + } else { + result.summarizationEvaluationResults_ = summarizationEvaluationResultsBuilder_.build(); + } + if (overallMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + overallMetrics_ = java.util.Collections.unmodifiableList(overallMetrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.overallMetrics_ = overallMetrics_; + } else { + result.overallMetrics_ = overallMetricsBuilder_.build(); + } + if (overallSectionTokensBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + overallSectionTokens_ = java.util.Collections.unmodifiableList(overallSectionTokens_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.overallSectionTokens_ = overallSectionTokens_; + } else { + result.overallSectionTokens_ = overallSectionTokensBuilder_.build(); + } + if (conversationDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + conversationDetails_ = java.util.Collections.unmodifiableList(conversationDetails_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.conversationDetails_ = conversationDetails_; + } else { + result.conversationDetails_ = conversationDetailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summarizationEvaluationMergedResultsUri_ = summarizationEvaluationMergedResultsUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .getDefaultInstance()) return this; + if (summarizationEvaluationResultsBuilder_ == null) { + if (!other.summarizationEvaluationResults_.isEmpty()) { + if (summarizationEvaluationResults_.isEmpty()) { + summarizationEvaluationResults_ = other.summarizationEvaluationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSummarizationEvaluationResultsIsMutable(); + summarizationEvaluationResults_.addAll(other.summarizationEvaluationResults_); + } + onChanged(); + } + } else { + if (!other.summarizationEvaluationResults_.isEmpty()) { + if (summarizationEvaluationResultsBuilder_.isEmpty()) { + summarizationEvaluationResultsBuilder_.dispose(); + summarizationEvaluationResultsBuilder_ = null; + summarizationEvaluationResults_ = other.summarizationEvaluationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + summarizationEvaluationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSummarizationEvaluationResultsFieldBuilder() + : null; + } else { + summarizationEvaluationResultsBuilder_.addAllMessages( + other.summarizationEvaluationResults_); + } + } + } + if (!other.getSummarizationEvaluationMergedResultsUri().isEmpty()) { + summarizationEvaluationMergedResultsUri_ = other.summarizationEvaluationMergedResultsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (overallMetricsBuilder_ == null) { + if (!other.overallMetrics_.isEmpty()) { + if (overallMetrics_.isEmpty()) { + overallMetrics_ = other.overallMetrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOverallMetricsIsMutable(); + overallMetrics_.addAll(other.overallMetrics_); + } + onChanged(); + } + } else { + if (!other.overallMetrics_.isEmpty()) { + if (overallMetricsBuilder_.isEmpty()) { + overallMetricsBuilder_.dispose(); + overallMetricsBuilder_ = null; + overallMetrics_ = other.overallMetrics_; + bitField0_ = (bitField0_ & ~0x00000004); + overallMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOverallMetricsFieldBuilder() + : null; + } else { + overallMetricsBuilder_.addAllMessages(other.overallMetrics_); + } + } + } + if (overallSectionTokensBuilder_ == null) { + if (!other.overallSectionTokens_.isEmpty()) { + if (overallSectionTokens_.isEmpty()) { + overallSectionTokens_ = other.overallSectionTokens_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureOverallSectionTokensIsMutable(); + overallSectionTokens_.addAll(other.overallSectionTokens_); + } + onChanged(); + } + } else { + if (!other.overallSectionTokens_.isEmpty()) { + if (overallSectionTokensBuilder_.isEmpty()) { + overallSectionTokensBuilder_.dispose(); + overallSectionTokensBuilder_ = null; + overallSectionTokens_ = other.overallSectionTokens_; + bitField0_ = (bitField0_ & ~0x00000008); + overallSectionTokensBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOverallSectionTokensFieldBuilder() + : null; + } else { + overallSectionTokensBuilder_.addAllMessages(other.overallSectionTokens_); + } + } + } + if (conversationDetailsBuilder_ == null) { + if (!other.conversationDetails_.isEmpty()) { + if (conversationDetails_.isEmpty()) { + conversationDetails_ = other.conversationDetails_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureConversationDetailsIsMutable(); + conversationDetails_.addAll(other.conversationDetails_); + } + onChanged(); + } + } else { + if (!other.conversationDetails_.isEmpty()) { + if (conversationDetailsBuilder_.isEmpty()) { + conversationDetailsBuilder_.dispose(); + conversationDetailsBuilder_ = null; + conversationDetails_ = other.conversationDetails_; + bitField0_ = (bitField0_ & ~0x00000010); + conversationDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConversationDetailsFieldBuilder() + : null; + } else { + conversationDetailsBuilder_.addAllMessages(other.conversationDetails_); + } + } + } + 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 34: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.parser(), + extensionRegistry); + if (summarizationEvaluationResultsBuilder_ == null) { + ensureSummarizationEvaluationResultsIsMutable(); + summarizationEvaluationResults_.add(m); + } else { + summarizationEvaluationResultsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + summarizationEvaluationMergedResultsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.parser(), + extensionRegistry); + if (overallMetricsBuilder_ == null) { + ensureOverallMetricsIsMutable(); + overallMetrics_.add(m); + } else { + overallMetricsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionToken.parser(), + extensionRegistry); + if (overallSectionTokensBuilder_ == null) { + ensureOverallSectionTokensIsMutable(); + overallSectionTokens_.add(m); + } else { + overallSectionTokensBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.parser(), + extensionRegistry); + if (conversationDetailsBuilder_ == null) { + ensureConversationDetailsIsMutable(); + conversationDetails_.add(m); + } else { + conversationDetailsBuilder_.addMessage(m); + } + 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 java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult> + summarizationEvaluationResults_ = java.util.Collections.emptyList(); + + private void ensureSummarizationEvaluationResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + summarizationEvaluationResults_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult>(summarizationEvaluationResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder> + summarizationEvaluationResultsBuilder_; + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult> + getSummarizationEvaluationResultsList() { + if (summarizationEvaluationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(summarizationEvaluationResults_); + } else { + return summarizationEvaluationResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSummarizationEvaluationResultsCount() { + if (summarizationEvaluationResultsBuilder_ == null) { + return summarizationEvaluationResults_.size(); + } else { + return summarizationEvaluationResultsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + getSummarizationEvaluationResults(int index) { + if (summarizationEvaluationResultsBuilder_ == null) { + return summarizationEvaluationResults_.get(index); + } else { + return summarizationEvaluationResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSummarizationEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + value) { + if (summarizationEvaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizationEvaluationResultsIsMutable(); + summarizationEvaluationResults_.set(index, value); + onChanged(); + } else { + summarizationEvaluationResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSummarizationEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder + builderForValue) { + if (summarizationEvaluationResultsBuilder_ == null) { + ensureSummarizationEvaluationResultsIsMutable(); + summarizationEvaluationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + summarizationEvaluationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSummarizationEvaluationResults( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + value) { + if (summarizationEvaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizationEvaluationResultsIsMutable(); + summarizationEvaluationResults_.add(value); + onChanged(); + } else { + summarizationEvaluationResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSummarizationEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult + value) { + if (summarizationEvaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizationEvaluationResultsIsMutable(); + summarizationEvaluationResults_.add(index, value); + onChanged(); + } else { + summarizationEvaluationResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSummarizationEvaluationResults( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder + builderForValue) { + if (summarizationEvaluationResultsBuilder_ == null) { + ensureSummarizationEvaluationResultsIsMutable(); + summarizationEvaluationResults_.add(builderForValue.build()); + onChanged(); + } else { + summarizationEvaluationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSummarizationEvaluationResults( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder + builderForValue) { + if (summarizationEvaluationResultsBuilder_ == null) { + ensureSummarizationEvaluationResultsIsMutable(); + summarizationEvaluationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + summarizationEvaluationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSummarizationEvaluationResults( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult> + values) { + if (summarizationEvaluationResultsBuilder_ == null) { + ensureSummarizationEvaluationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, summarizationEvaluationResults_); + onChanged(); + } else { + summarizationEvaluationResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSummarizationEvaluationResults() { + if (summarizationEvaluationResultsBuilder_ == null) { + summarizationEvaluationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + summarizationEvaluationResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSummarizationEvaluationResults(int index) { + if (summarizationEvaluationResultsBuilder_ == null) { + ensureSummarizationEvaluationResultsIsMutable(); + summarizationEvaluationResults_.remove(index); + onChanged(); + } else { + summarizationEvaluationResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder + getSummarizationEvaluationResultsBuilder(int index) { + return getSummarizationEvaluationResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder + getSummarizationEvaluationResultsOrBuilder(int index) { + if (summarizationEvaluationResultsBuilder_ == null) { + return summarizationEvaluationResults_.get(index); + } else { + return summarizationEvaluationResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder> + getSummarizationEvaluationResultsOrBuilderList() { + if (summarizationEvaluationResultsBuilder_ != null) { + return summarizationEvaluationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(summarizationEvaluationResults_); + } + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder + addSummarizationEvaluationResultsBuilder() { + return getSummarizationEvaluationResultsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder + addSummarizationEvaluationResultsBuilder(int index) { + return getSummarizationEvaluationResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Output only. A list of evaluation results per conversation(&summary),
                                          +     * metric and section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder> + getSummarizationEvaluationResultsBuilderList() { + return getSummarizationEvaluationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder> + getSummarizationEvaluationResultsFieldBuilder() { + if (summarizationEvaluationResultsBuilder_ == null) { + summarizationEvaluationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder>( + summarizationEvaluationResults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + summarizationEvaluationResults_ = null; + } + return summarizationEvaluationResultsBuilder_; + } + + private java.lang.Object summarizationEvaluationMergedResultsUri_ = ""; + + /** + * + * + *
                                          +     * Output only. User bucket uri for merged evaluation score and aggregation
                                          +     * score csv.
                                          +     * 
                                          + * + * + * string summarization_evaluation_merged_results_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The summarizationEvaluationMergedResultsUri. + */ + public java.lang.String getSummarizationEvaluationMergedResultsUri() { + java.lang.Object ref = summarizationEvaluationMergedResultsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summarizationEvaluationMergedResultsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Output only. User bucket uri for merged evaluation score and aggregation
                                          +     * score csv.
                                          +     * 
                                          + * + * + * string summarization_evaluation_merged_results_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for summarizationEvaluationMergedResultsUri. + */ + public com.google.protobuf.ByteString getSummarizationEvaluationMergedResultsUriBytes() { + java.lang.Object ref = summarizationEvaluationMergedResultsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summarizationEvaluationMergedResultsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Output only. User bucket uri for merged evaluation score and aggregation
                                          +     * score csv.
                                          +     * 
                                          + * + * + * string summarization_evaluation_merged_results_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The summarizationEvaluationMergedResultsUri to set. + * @return This builder for chaining. + */ + public Builder setSummarizationEvaluationMergedResultsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + summarizationEvaluationMergedResultsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. User bucket uri for merged evaluation score and aggregation
                                          +     * score csv.
                                          +     * 
                                          + * + * + * string summarization_evaluation_merged_results_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSummarizationEvaluationMergedResultsUri() { + summarizationEvaluationMergedResultsUri_ = + getDefaultInstance().getSummarizationEvaluationMergedResultsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. User bucket uri for merged evaluation score and aggregation
                                          +     * score csv.
                                          +     * 
                                          + * + * + * string summarization_evaluation_merged_results_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for summarizationEvaluationMergedResultsUri to set. + * @return This builder for chaining. + */ + public Builder setSummarizationEvaluationMergedResultsUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summarizationEvaluationMergedResultsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric> + overallMetrics_ = java.util.Collections.emptyList(); + + private void ensureOverallMetricsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + overallMetrics_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric>(overallMetrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetricOrBuilder> + overallMetricsBuilder_; + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric> + getOverallMetricsList() { + if (overallMetricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(overallMetrics_); + } else { + return overallMetricsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getOverallMetricsCount() { + if (overallMetricsBuilder_ == null) { + return overallMetrics_.size(); + } else { + return overallMetricsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + getOverallMetrics(int index) { + if (overallMetricsBuilder_ == null) { + return overallMetrics_.get(index); + } else { + return overallMetricsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOverallMetrics( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + value) { + if (overallMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverallMetricsIsMutable(); + overallMetrics_.set(index, value); + onChanged(); + } else { + overallMetricsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOverallMetrics( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + .Builder + builderForValue) { + if (overallMetricsBuilder_ == null) { + ensureOverallMetricsIsMutable(); + overallMetrics_.set(index, builderForValue.build()); + onChanged(); + } else { + overallMetricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOverallMetrics( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + value) { + if (overallMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverallMetricsIsMutable(); + overallMetrics_.add(value); + onChanged(); + } else { + overallMetricsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOverallMetrics( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + value) { + if (overallMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverallMetricsIsMutable(); + overallMetrics_.add(index, value); + onChanged(); + } else { + overallMetricsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOverallMetrics( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + .Builder + builderForValue) { + if (overallMetricsBuilder_ == null) { + ensureOverallMetricsIsMutable(); + overallMetrics_.add(builderForValue.build()); + onChanged(); + } else { + overallMetricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOverallMetrics( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + .Builder + builderForValue) { + if (overallMetricsBuilder_ == null) { + ensureOverallMetricsIsMutable(); + overallMetrics_.add(index, builderForValue.build()); + onChanged(); + } else { + overallMetricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllOverallMetrics( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric> + values) { + if (overallMetricsBuilder_ == null) { + ensureOverallMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, overallMetrics_); + onChanged(); + } else { + overallMetricsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOverallMetrics() { + if (overallMetricsBuilder_ == null) { + overallMetrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + overallMetricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeOverallMetrics(int index) { + if (overallMetricsBuilder_ == null) { + ensureOverallMetricsIsMutable(); + overallMetrics_.remove(index); + onChanged(); + } else { + overallMetricsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + .Builder + getOverallMetricsBuilder(int index) { + return getOverallMetricsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetricOrBuilder + getOverallMetricsOrBuilder(int index) { + if (overallMetricsBuilder_ == null) { + return overallMetrics_.get(index); + } else { + return overallMetricsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetricOrBuilder> + getOverallMetricsOrBuilderList() { + if (overallMetricsBuilder_ != null) { + return overallMetricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(overallMetrics_); + } + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + .Builder + addOverallMetricsBuilder() { + return getOverallMetricsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + .Builder + addOverallMetricsBuilder(int index) { + return getOverallMetricsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Output only. A list of aggregated(average) scores per metric section.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + .Builder> + getOverallMetricsBuilderList() { + return getOverallMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetricOrBuilder> + getOverallMetricsFieldBuilder() { + if (overallMetricsBuilder_ == null) { + overallMetricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetric.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetricOrBuilder>( + overallMetrics_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + overallMetrics_ = null; + } + return overallMetricsBuilder_; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken> + overallSectionTokens_ = java.util.Collections.emptyList(); + + private void ensureOverallSectionTokensIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + overallSectionTokens_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken>( + overallSectionTokens_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + overallSectionTokensBuilder_; + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken> + getOverallSectionTokensList() { + if (overallSectionTokensBuilder_ == null) { + return java.util.Collections.unmodifiableList(overallSectionTokens_); + } else { + return overallSectionTokensBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getOverallSectionTokensCount() { + if (overallSectionTokensBuilder_ == null) { + return overallSectionTokens_.size(); + } else { + return overallSectionTokensBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + getOverallSectionTokens(int index) { + if (overallSectionTokensBuilder_ == null) { + return overallSectionTokens_.get(index); + } else { + return overallSectionTokensBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOverallSectionTokens( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken value) { + if (overallSectionTokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverallSectionTokensIsMutable(); + overallSectionTokens_.set(index, value); + onChanged(); + } else { + overallSectionTokensBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOverallSectionTokens( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + builderForValue) { + if (overallSectionTokensBuilder_ == null) { + ensureOverallSectionTokensIsMutable(); + overallSectionTokens_.set(index, builderForValue.build()); + onChanged(); + } else { + overallSectionTokensBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOverallSectionTokens( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken value) { + if (overallSectionTokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverallSectionTokensIsMutable(); + overallSectionTokens_.add(value); + onChanged(); + } else { + overallSectionTokensBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOverallSectionTokens( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken value) { + if (overallSectionTokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverallSectionTokensIsMutable(); + overallSectionTokens_.add(index, value); + onChanged(); + } else { + overallSectionTokensBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOverallSectionTokens( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + builderForValue) { + if (overallSectionTokensBuilder_ == null) { + ensureOverallSectionTokensIsMutable(); + overallSectionTokens_.add(builderForValue.build()); + onChanged(); + } else { + overallSectionTokensBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOverallSectionTokens( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + builderForValue) { + if (overallSectionTokensBuilder_ == null) { + ensureOverallSectionTokensIsMutable(); + overallSectionTokens_.add(index, builderForValue.build()); + onChanged(); + } else { + overallSectionTokensBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllOverallSectionTokens( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken> + values) { + if (overallSectionTokensBuilder_ == null) { + ensureOverallSectionTokensIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, overallSectionTokens_); + onChanged(); + } else { + overallSectionTokensBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOverallSectionTokens() { + if (overallSectionTokensBuilder_ == null) { + overallSectionTokens_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + overallSectionTokensBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeOverallSectionTokens(int index) { + if (overallSectionTokensBuilder_ == null) { + ensureOverallSectionTokensIsMutable(); + overallSectionTokens_.remove(index); + onChanged(); + } else { + overallSectionTokensBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + getOverallSectionTokensBuilder(int index) { + return getOverallSectionTokensFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionTokenOrBuilder + getOverallSectionTokensOrBuilder(int index) { + if (overallSectionTokensBuilder_ == null) { + return overallSectionTokens_.get(index); + } else { + return overallSectionTokensBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + getOverallSectionTokensOrBuilderList() { + if (overallSectionTokensBuilder_ != null) { + return overallSectionTokensBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(overallSectionTokens_); + } + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + addOverallSectionTokensBuilder() { + return getOverallSectionTokensFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder + addOverallSectionTokensBuilder(int index) { + return getOverallSectionTokensFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Output only. Overall token per section. This is an aggregated(sum) result
                                          +     * of input token of summary acorss all conversations that are selected for
                                          +     * summarization evaluation.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder> + getOverallSectionTokensBuilderList() { + return getOverallSectionTokensFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + getOverallSectionTokensFieldBuilder() { + if (overallSectionTokensBuilder_ == null) { + overallSectionTokensBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder>( + overallSectionTokens_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + overallSectionTokens_ = null; + } + return overallSectionTokensBuilder_; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail> + conversationDetails_ = java.util.Collections.emptyList(); + + private void ensureConversationDetailsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + conversationDetails_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail>(conversationDetails_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetailOrBuilder> + conversationDetailsBuilder_; + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail> + getConversationDetailsList() { + if (conversationDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversationDetails_); + } else { + return conversationDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConversationDetailsCount() { + if (conversationDetailsBuilder_ == null) { + return conversationDetails_.size(); + } else { + return conversationDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + getConversationDetails(int index) { + if (conversationDetailsBuilder_ == null) { + return conversationDetails_.get(index); + } else { + return conversationDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConversationDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + value) { + if (conversationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationDetailsIsMutable(); + conversationDetails_.set(index, value); + onChanged(); + } else { + conversationDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConversationDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder + builderForValue) { + if (conversationDetailsBuilder_ == null) { + ensureConversationDetailsIsMutable(); + conversationDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + conversationDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConversationDetails( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + value) { + if (conversationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationDetailsIsMutable(); + conversationDetails_.add(value); + onChanged(); + } else { + conversationDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConversationDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + value) { + if (conversationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationDetailsIsMutable(); + conversationDetails_.add(index, value); + onChanged(); + } else { + conversationDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConversationDetails( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder + builderForValue) { + if (conversationDetailsBuilder_ == null) { + ensureConversationDetailsIsMutable(); + conversationDetails_.add(builderForValue.build()); + onChanged(); + } else { + conversationDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConversationDetails( + int index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder + builderForValue) { + if (conversationDetailsBuilder_ == null) { + ensureConversationDetailsIsMutable(); + conversationDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + conversationDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConversationDetails( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail> + values) { + if (conversationDetailsBuilder_ == null) { + ensureConversationDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversationDetails_); + onChanged(); + } else { + conversationDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConversationDetails() { + if (conversationDetailsBuilder_ == null) { + conversationDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + conversationDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConversationDetails(int index) { + if (conversationDetailsBuilder_ == null) { + ensureConversationDetailsIsMutable(); + conversationDetails_.remove(index); + onChanged(); + } else { + conversationDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder + getConversationDetailsBuilder(int index) { + return getConversationDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetailOrBuilder + getConversationDetailsOrBuilder(int index) { + if (conversationDetailsBuilder_ == null) { + return conversationDetails_.get(index); + } else { + return conversationDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetailOrBuilder> + getConversationDetailsOrBuilderList() { + if (conversationDetailsBuilder_ != null) { + return conversationDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversationDetails_); + } + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder + addConversationDetailsBuilder() { + return getConversationDetailsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder + addConversationDetailsBuilder(int index) { + return getConversationDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Output only. List of conversation details.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder> + getConversationDetailsBuilderList() { + return getConversationDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + .Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetailOrBuilder> + getConversationDetailsFieldBuilder() { + if (conversationDetailsBuilder_ == null) { + conversationDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetail.Builder, + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetailOrBuilder>( + conversationDetails_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + conversationDetails_ = null; + } + return conversationDetailsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) + private static final com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics(); + } + + public static com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarizationEvaluationMetrics 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.dialogflow.v2beta1.SummarizationEvaluationMetrics + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SummarizationEvaluationMetricsOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SummarizationEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000000..f5818f0b01d5 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SummarizationEvaluationMetricsOrBuilder.java @@ -0,0 +1,366 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/generator_evaluation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface SummarizationEvaluationMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResult> + getSummarizationEvaluationResultsList(); + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult + getSummarizationEvaluationResults(int index); + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSummarizationEvaluationResultsCount(); + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder> + getSummarizationEvaluationResultsOrBuilderList(); + + /** + * + * + *
                                          +   * Output only. A list of evaluation results per conversation(&summary),
                                          +   * metric and section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SummarizationEvaluationResult summarization_evaluation_results = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SummarizationEvaluationResultOrBuilder + getSummarizationEvaluationResultsOrBuilder(int index); + + /** + * + * + *
                                          +   * Output only. User bucket uri for merged evaluation score and aggregation
                                          +   * score csv.
                                          +   * 
                                          + * + * + * string summarization_evaluation_merged_results_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The summarizationEvaluationMergedResultsUri. + */ + java.lang.String getSummarizationEvaluationMergedResultsUri(); + + /** + * + * + *
                                          +   * Output only. User bucket uri for merged evaluation score and aggregation
                                          +   * score csv.
                                          +   * 
                                          + * + * + * string summarization_evaluation_merged_results_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for summarizationEvaluationMergedResultsUri. + */ + com.google.protobuf.ByteString getSummarizationEvaluationMergedResultsUriBytes(); + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric> + getOverallMetricsList(); + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric + getOverallMetrics(int index); + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getOverallMetricsCount(); + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .OverallScoresByMetricOrBuilder> + getOverallMetricsOrBuilderList(); + + /** + * + * + *
                                          +   * Output only. A list of aggregated(average) scores per metric section.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetric overall_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.OverallScoresByMetricOrBuilder + getOverallMetricsOrBuilder(int index); + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getOverallSectionTokensList(); + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken + getOverallSectionTokens(int index); + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getOverallSectionTokensCount(); + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .SectionTokenOrBuilder> + getOverallSectionTokensOrBuilderList(); + + /** + * + * + *
                                          +   * Output only. Overall token per section. This is an aggregated(sum) result
                                          +   * of input token of summary acorss all conversations that are selected for
                                          +   * summarization evaluation.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionToken overall_section_tokens = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.SectionTokenOrBuilder + getOverallSectionTokensOrBuilder(int index); + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail> + getConversationDetailsList(); + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail + getConversationDetails(int index); + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConversationDetailsCount(); + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics + .ConversationDetailOrBuilder> + getConversationDetailsOrBuilderList(); + + /** + * + * + *
                                          +   * Output only. List of conversation details.
                                          +   * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetail conversation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.SummarizationEvaluationMetrics.ConversationDetailOrBuilder + getConversationDetailsOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java index 54ad582b1f2a..94a72db22dd1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java @@ -41,6 +41,7 @@ private SynthesizeSpeechConfig(com.google.protobuf.GeneratedMessageV3.Builder private SynthesizeSpeechConfig() { effectsProfileId_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pronunciations_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -269,6 +270,92 @@ public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoic : voice_; } + public static final int PRONUNCIATIONS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + pronunciations_; + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + @java.lang.Override + public java.util.List + getPronunciationsList() { + return pronunciations_; + } + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.CustomPronunciationParamsOrBuilder> + getPronunciationsOrBuilderList() { + return pronunciations_; + } + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + @java.lang.Override + public int getPronunciationsCount() { + return pronunciations_.size(); + } + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams getPronunciations( + int index) { + return pronunciations_.get(index); + } + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParamsOrBuilder + getPronunciationsOrBuilder(int index) { + return pronunciations_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -298,6 +385,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < effectsProfileId_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, effectsProfileId_.getRaw(i)); } + for (int i = 0; i < pronunciations_.size(); i++) { + output.writeMessage(6, pronunciations_.get(i)); + } getUnknownFields().writeTo(output); } @@ -327,6 +417,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getEffectsProfileIdList().size(); } + for (int i = 0; i < pronunciations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, pronunciations_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -354,6 +447,7 @@ public boolean equals(final java.lang.Object obj) { if (hasVoice()) { if (!getVoice().equals(other.getVoice())) return false; } + if (!getPronunciationsList().equals(other.getPronunciationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -387,6 +481,10 @@ public int hashCode() { hash = (37 * hash) + VOICE_FIELD_NUMBER; hash = (53 * hash) + getVoice().hashCode(); } + if (getPronunciationsCount() > 0) { + hash = (37 * hash) + PRONUNCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getPronunciationsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -530,6 +628,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVoiceFieldBuilder(); + getPronunciationsFieldBuilder(); } } @@ -546,6 +645,13 @@ public Builder clear() { voiceBuilder_.dispose(); voiceBuilder_ = null; } + if (pronunciationsBuilder_ == null) { + pronunciations_ = java.util.Collections.emptyList(); + } else { + pronunciations_ = null; + pronunciationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -573,6 +679,7 @@ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig build() { public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig buildPartial() { com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig result = new com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -580,6 +687,19 @@ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig buildPartial() return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig result) { + if (pronunciationsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + pronunciations_ = java.util.Collections.unmodifiableList(pronunciations_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.pronunciations_ = pronunciations_; + } else { + result.pronunciations_ = pronunciationsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -671,6 +791,33 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechCon if (other.hasVoice()) { mergeVoice(other.getVoice()); } + if (pronunciationsBuilder_ == null) { + if (!other.pronunciations_.isEmpty()) { + if (pronunciations_.isEmpty()) { + pronunciations_ = other.pronunciations_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensurePronunciationsIsMutable(); + pronunciations_.addAll(other.pronunciations_); + } + onChanged(); + } + } else { + if (!other.pronunciations_.isEmpty()) { + if (pronunciationsBuilder_.isEmpty()) { + pronunciationsBuilder_.dispose(); + pronunciationsBuilder_ = null; + pronunciations_ = other.pronunciations_; + bitField0_ = (bitField0_ & ~0x00000020); + pronunciationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPronunciationsFieldBuilder() + : null; + } else { + pronunciationsBuilder_.addAllMessages(other.pronunciations_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -728,6 +875,20 @@ public Builder mergeFrom( effectsProfileId_.add(s); break; } // case 42 + case 50: + { + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.parser(), + extensionRegistry); + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.add(m); + } else { + pronunciationsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1375,6 +1536,412 @@ public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoic return voiceBuilder_; } + private java.util.List + pronunciations_ = java.util.Collections.emptyList(); + + private void ensurePronunciationsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + pronunciations_ = + new java.util.ArrayList( + pronunciations_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParamsOrBuilder> + pronunciationsBuilder_; + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public java.util.List + getPronunciationsList() { + if (pronunciationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pronunciations_); + } else { + return pronunciationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public int getPronunciationsCount() { + if (pronunciationsBuilder_ == null) { + return pronunciations_.size(); + } else { + return pronunciationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams getPronunciations( + int index) { + if (pronunciationsBuilder_ == null) { + return pronunciations_.get(index); + } else { + return pronunciationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public Builder setPronunciations( + int index, com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams value) { + if (pronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePronunciationsIsMutable(); + pronunciations_.set(index, value); + onChanged(); + } else { + pronunciationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public Builder setPronunciations( + int index, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder builderForValue) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.set(index, builderForValue.build()); + onChanged(); + } else { + pronunciationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public Builder addPronunciations( + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams value) { + if (pronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePronunciationsIsMutable(); + pronunciations_.add(value); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public Builder addPronunciations( + int index, com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams value) { + if (pronunciationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePronunciationsIsMutable(); + pronunciations_.add(index, value); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public Builder addPronunciations( + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder builderForValue) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.add(builderForValue.build()); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public Builder addPronunciations( + int index, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder builderForValue) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.add(index, builderForValue.build()); + onChanged(); + } else { + pronunciationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public Builder addAllPronunciations( + java.lang.Iterable + values) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pronunciations_); + onChanged(); + } else { + pronunciationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public Builder clearPronunciations() { + if (pronunciationsBuilder_ == null) { + pronunciations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + pronunciationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public Builder removePronunciations(int index) { + if (pronunciationsBuilder_ == null) { + ensurePronunciationsIsMutable(); + pronunciations_.remove(index); + onChanged(); + } else { + pronunciationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder + getPronunciationsBuilder(int index) { + return getPronunciationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParamsOrBuilder + getPronunciationsOrBuilder(int index) { + if (pronunciationsBuilder_ == null) { + return pronunciations_.get(index); + } else { + return pronunciationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.CustomPronunciationParamsOrBuilder> + getPronunciationsOrBuilderList() { + if (pronunciationsBuilder_ != null) { + return pronunciationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pronunciations_); + } + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder + addPronunciationsBuilder() { + return getPronunciationsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder + addPronunciationsBuilder(int index) { + return getPronunciationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. The custom pronunciations for the synthesized audio.
                                          +     * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + public java.util.List + getPronunciationsBuilderList() { + return getPronunciationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParamsOrBuilder> + getPronunciationsFieldBuilder() { + if (pronunciationsBuilder_ == null) { + pronunciationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams.Builder, + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParamsOrBuilder>( + pronunciations_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + pronunciations_ = null; + } + return pronunciationsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java index 146ec13cc323..ae61ddd4c3b4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java @@ -179,4 +179,67 @@ public interface SynthesizeSpeechConfigOrBuilder * */ com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + java.util.List + getPronunciationsList(); + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParams getPronunciations(int index); + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + int getPronunciationsCount(); + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + java.util.List + getPronunciationsOrBuilderList(); + + /** + * + * + *
                                          +   * Optional. The custom pronunciations for the synthesized audio.
                                          +   * 
                                          + * + * repeated .google.cloud.dialogflow.v2beta1.CustomPronunciationParams pronunciations = 6; + * + */ + com.google.cloud.dialogflow.v2beta1.CustomPronunciationParamsOrBuilder getPronunciationsOrBuilder( + int index); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Tool.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Tool.java new file mode 100644 index 000000000000..2a9919988fff --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Tool.java @@ -0,0 +1,23350 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Represents a tool.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool} + */ +public final class Tool extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool) + ToolOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Tool.newBuilder() to construct. + private Tool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tool() { + name_ = ""; + toolKey_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Tool(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 17: + return internalGetActionConfirmationRequirement(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.class, + com.google.cloud.dialogflow.v2beta1.Tool.Builder.class); + } + + /** + * + * + *
                                          +   * Types of confirmation requirement.
                                          +   * 
                                          + * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement} + */ + public enum ConfirmationRequirement implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +     * Unspecified. Whether the action requires confirmation is inferred from
                                          +     * method_type.
                                          +     * 
                                          + * + * CONFIRMATION_REQUIREMENT_UNSPECIFIED = 0; + */ + CONFIRMATION_REQUIREMENT_UNSPECIFIED(0), + /** + * + * + *
                                          +     * Conformation is required.
                                          +     * 
                                          + * + * REQUIRED = 1; + */ + REQUIRED(1), + /** + * + * + *
                                          +     * Conformation is not required.
                                          +     * 
                                          + * + * NOT_REQUIRED = 2; + */ + NOT_REQUIRED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +     * Unspecified. Whether the action requires confirmation is inferred from
                                          +     * method_type.
                                          +     * 
                                          + * + * CONFIRMATION_REQUIREMENT_UNSPECIFIED = 0; + */ + public static final int CONFIRMATION_REQUIREMENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +     * Conformation is required.
                                          +     * 
                                          + * + * REQUIRED = 1; + */ + public static final int REQUIRED_VALUE = 1; + + /** + * + * + *
                                          +     * Conformation is not required.
                                          +     * 
                                          + * + * NOT_REQUIRED = 2; + */ + public static final int NOT_REQUIRED_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 ConfirmationRequirement 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 ConfirmationRequirement forNumber(int value) { + switch (value) { + case 0: + return CONFIRMATION_REQUIREMENT_UNSPECIFIED; + case 1: + return REQUIRED; + case 2: + return NOT_REQUIRED; + 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 ConfirmationRequirement findValueByNumber(int number) { + return ConfirmationRequirement.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Tool.getDescriptor().getEnumTypes().get(0); + } + + private static final ConfirmationRequirement[] VALUES = values(); + + public static ConfirmationRequirement 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 ConfirmationRequirement(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement) + } + + /** + * + * + *
                                          +   * The method type of the function.
                                          +   * 
                                          + * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.Tool.MethodType} + */ + public enum MethodType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +     * Unspecified.
                                          +     * 
                                          + * + * METHOD_TYPE_UNSPECIFIED = 0; + */ + METHOD_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                          +     * GET method.
                                          +     * 
                                          + * + * GET = 1; + */ + GET(1), + /** + * + * + *
                                          +     * POST method.
                                          +     * 
                                          + * + * POST = 2; + */ + POST(2), + /** + * + * + *
                                          +     * PUT method.
                                          +     * 
                                          + * + * PUT = 3; + */ + PUT(3), + /** + * + * + *
                                          +     * DELETE method.
                                          +     * 
                                          + * + * DELETE = 4; + */ + DELETE(4), + /** + * + * + *
                                          +     * PATCH method.
                                          +     * 
                                          + * + * PATCH = 5; + */ + PATCH(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +     * Unspecified.
                                          +     * 
                                          + * + * METHOD_TYPE_UNSPECIFIED = 0; + */ + public static final int METHOD_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +     * GET method.
                                          +     * 
                                          + * + * GET = 1; + */ + public static final int GET_VALUE = 1; + + /** + * + * + *
                                          +     * POST method.
                                          +     * 
                                          + * + * POST = 2; + */ + public static final int POST_VALUE = 2; + + /** + * + * + *
                                          +     * PUT method.
                                          +     * 
                                          + * + * PUT = 3; + */ + public static final int PUT_VALUE = 3; + + /** + * + * + *
                                          +     * DELETE method.
                                          +     * 
                                          + * + * DELETE = 4; + */ + public static final int DELETE_VALUE = 4; + + /** + * + * + *
                                          +     * PATCH method.
                                          +     * 
                                          + * + * PATCH = 5; + */ + public static final int PATCH_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 MethodType 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 MethodType forNumber(int value) { + switch (value) { + case 0: + return METHOD_TYPE_UNSPECIFIED; + case 1: + return GET; + case 2: + return POST; + case 3: + return PUT; + case 4: + return DELETE; + case 5: + return PATCH; + 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 MethodType findValueByNumber(int number) { + return MethodType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Tool.getDescriptor().getEnumTypes().get(1); + } + + private static final MethodType[] VALUES = values(); + + public static MethodType 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 MethodType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Tool.MethodType) + } + + public interface ExtensionToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Required. The full name of the referenced vertex extension.
                                          +     * Format:
                                          +     * `projects/{project}/locations/{location}/extensions/{extension}`
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +     * Required. The full name of the referenced vertex extension.
                                          +     * Format:
                                          +     * `projects/{project}/locations/{location}/extensions/{extension}`
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + } + + /** + * + * + *
                                          +   * An ExtensionTool is a way to use Vertex Extensions as a tool.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.ExtensionTool} + */ + public static final class ExtensionTool extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) + ExtensionToolOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExtensionTool.newBuilder() to construct. + private ExtensionTool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExtensionTool() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExtensionTool(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.class, + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +     * Required. The full name of the referenced vertex extension.
                                          +     * Format:
                                          +     * `projects/{project}/locations/{location}/extensions/{extension}`
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The full name of the referenced vertex extension.
                                          +     * Format:
                                          +     * `projects/{project}/locations/{location}/extensions/{extension}`
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.Tool.ExtensionTool)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool other = + (com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) 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.dialogflow.v2beta1.Tool.ExtensionTool parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool 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.dialogflow.v2beta1.Tool.ExtensionTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool 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.dialogflow.v2beta1.Tool.ExtensionTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * An ExtensionTool is a way to use Vertex Extensions as a tool.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.ExtensionTool} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.class, + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool build() { + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool result = + new com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool other) { + if (other == com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.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. The full name of the referenced vertex extension.
                                          +       * Format:
                                          +       * `projects/{project}/locations/{location}/extensions/{extension}`
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The full name of the referenced vertex extension.
                                          +       * Format:
                                          +       * `projects/{project}/locations/{location}/extensions/{extension}`
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The full name of the referenced vertex extension.
                                          +       * Format:
                                          +       * `projects/{project}/locations/{location}/extensions/{extension}`
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The full name of the referenced vertex extension.
                                          +       * Format:
                                          +       * `projects/{project}/locations/{location}/extensions/{extension}`
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The full name of the referenced vertex extension.
                                          +       * Format:
                                          +       * `projects/{project}/locations/{location}/extensions/{extension}`
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) + private static final com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtensionTool 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.dialogflow.v2beta1.Tool.ExtensionTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FunctionToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.FunctionTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +     * the function. This input is a JSON object that contains the function's
                                          +     * parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputSchema field is set. + */ + boolean hasInputSchema(); + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +     * the function. This input is a JSON object that contains the function's
                                          +     * parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputSchema. + */ + com.google.protobuf.Struct getInputSchema(); + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +     * the function. This input is a JSON object that contains the function's
                                          +     * parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getInputSchemaOrBuilder(); + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +     * of the function. This output is a JSON object that contains the
                                          +     * function's parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputSchema field is set. + */ + boolean hasOutputSchema(); + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +     * of the function. This output is a JSON object that contains the
                                          +     * function's parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputSchema. + */ + com.google.protobuf.Struct getOutputSchema(); + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +     * of the function. This output is a JSON object that contains the
                                          +     * function's parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getOutputSchemaOrBuilder(); + + /** + * + * + *
                                          +     * Optional. The method type of the function. If not specified, the default
                                          +     * value is GET.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for methodType. + */ + int getMethodTypeValue(); + + /** + * + * + *
                                          +     * Optional. The method type of the function. If not specified, the default
                                          +     * value is GET.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The methodType. + */ + com.google.cloud.dialogflow.v2beta1.Tool.MethodType getMethodType(); + } + + /** + * + * + *
                                          +   * A Function tool describes the functions to be invoked on the client side.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.FunctionTool} + */ + public static final class FunctionTool extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.FunctionTool) + FunctionToolOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FunctionTool.newBuilder() to construct. + private FunctionTool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunctionTool() { + methodType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunctionTool(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.class, + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.Builder.class); + } + + private int bitField0_; + public static final int INPUT_SCHEMA_FIELD_NUMBER = 1; + private com.google.protobuf.Struct inputSchema_; + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +     * the function. This input is a JSON object that contains the function's
                                          +     * parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputSchema field is set. + */ + @java.lang.Override + public boolean hasInputSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +     * the function. This input is a JSON object that contains the function's
                                          +     * parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputSchema. + */ + @java.lang.Override + public com.google.protobuf.Struct getInputSchema() { + return inputSchema_ == null ? com.google.protobuf.Struct.getDefaultInstance() : inputSchema_; + } + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +     * the function. This input is a JSON object that contains the function's
                                          +     * parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getInputSchemaOrBuilder() { + return inputSchema_ == null ? com.google.protobuf.Struct.getDefaultInstance() : inputSchema_; + } + + public static final int OUTPUT_SCHEMA_FIELD_NUMBER = 2; + private com.google.protobuf.Struct outputSchema_; + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +     * of the function. This output is a JSON object that contains the
                                          +     * function's parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputSchema field is set. + */ + @java.lang.Override + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +     * of the function. This output is a JSON object that contains the
                                          +     * function's parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputSchema. + */ + @java.lang.Override + public com.google.protobuf.Struct getOutputSchema() { + return outputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputSchema_; + } + + /** + * + * + *
                                          +     * Optional. The JSON schema is encapsulated in a
                                          +     * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +     * of the function. This output is a JSON object that contains the
                                          +     * function's parameters as properties of the object.
                                          +     * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getOutputSchemaOrBuilder() { + return outputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputSchema_; + } + + public static final int METHOD_TYPE_FIELD_NUMBER = 4; + private int methodType_ = 0; + + /** + * + * + *
                                          +     * Optional. The method type of the function. If not specified, the default
                                          +     * value is GET.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for methodType. + */ + @java.lang.Override + public int getMethodTypeValue() { + return methodType_; + } + + /** + * + * + *
                                          +     * Optional. The method type of the function. If not specified, the default
                                          +     * value is GET.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The methodType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.MethodType getMethodType() { + com.google.cloud.dialogflow.v2beta1.Tool.MethodType result = + com.google.cloud.dialogflow.v2beta1.Tool.MethodType.forNumber(methodType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.MethodType.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInputSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getOutputSchema()); + } + if (methodType_ + != com.google.cloud.dialogflow.v2beta1.Tool.MethodType.METHOD_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, methodType_); + } + 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, getInputSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputSchema()); + } + if (methodType_ + != com.google.cloud.dialogflow.v2beta1.Tool.MethodType.METHOD_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, methodType_); + } + 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.dialogflow.v2beta1.Tool.FunctionTool)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool other = + (com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) obj; + + if (hasInputSchema() != other.hasInputSchema()) return false; + if (hasInputSchema()) { + if (!getInputSchema().equals(other.getInputSchema())) return false; + } + if (hasOutputSchema() != other.hasOutputSchema()) return false; + if (hasOutputSchema()) { + if (!getOutputSchema().equals(other.getOutputSchema())) return false; + } + if (methodType_ != other.methodType_) 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 (hasInputSchema()) { + hash = (37 * hash) + INPUT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getInputSchema().hashCode(); + } + if (hasOutputSchema()) { + hash = (37 * hash) + OUTPUT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getOutputSchema().hashCode(); + } + hash = (37 * hash) + METHOD_TYPE_FIELD_NUMBER; + hash = (53 * hash) + methodType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool 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.dialogflow.v2beta1.Tool.FunctionTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool 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.dialogflow.v2beta1.Tool.FunctionTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * A Function tool describes the functions to be invoked on the client side.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.FunctionTool} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.FunctionTool) + com.google.cloud.dialogflow.v2beta1.Tool.FunctionToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.class, + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInputSchemaFieldBuilder(); + getOutputSchemaFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputSchema_ = null; + if (inputSchemaBuilder_ != null) { + inputSchemaBuilder_.dispose(); + inputSchemaBuilder_ = null; + } + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + methodType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool build() { + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool result = + new com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputSchema_ = + inputSchemaBuilder_ == null ? inputSchema_ : inputSchemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputSchema_ = + outputSchemaBuilder_ == null ? outputSchema_ : outputSchemaBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.methodType_ = methodType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool other) { + if (other == com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.getDefaultInstance()) + return this; + if (other.hasInputSchema()) { + mergeInputSchema(other.getInputSchema()); + } + if (other.hasOutputSchema()) { + mergeOutputSchema(other.getOutputSchema()); + } + if (other.methodType_ != 0) { + setMethodTypeValue(other.getMethodTypeValue()); + } + 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(getInputSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOutputSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + methodType_ = input.readEnum(); + bitField0_ |= 0x00000004; + 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 com.google.protobuf.Struct inputSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + inputSchemaBuilder_; + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +       * the function. This input is a JSON object that contains the function's
                                          +       * parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputSchema field is set. + */ + public boolean hasInputSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +       * the function. This input is a JSON object that contains the function's
                                          +       * parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputSchema. + */ + public com.google.protobuf.Struct getInputSchema() { + if (inputSchemaBuilder_ == null) { + return inputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputSchema_; + } else { + return inputSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +       * the function. This input is a JSON object that contains the function's
                                          +       * parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputSchema(com.google.protobuf.Struct value) { + if (inputSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputSchema_ = value; + } else { + inputSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +       * the function. This input is a JSON object that contains the function's
                                          +       * parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputSchema(com.google.protobuf.Struct.Builder builderForValue) { + if (inputSchemaBuilder_ == null) { + inputSchema_ = builderForValue.build(); + } else { + inputSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +       * the function. This input is a JSON object that contains the function's
                                          +       * parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInputSchema(com.google.protobuf.Struct value) { + if (inputSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && inputSchema_ != null + && inputSchema_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInputSchemaBuilder().mergeFrom(value); + } else { + inputSchema_ = value; + } + } else { + inputSchemaBuilder_.mergeFrom(value); + } + if (inputSchema_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +       * the function. This input is a JSON object that contains the function's
                                          +       * parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputSchema() { + bitField0_ = (bitField0_ & ~0x00000001); + inputSchema_ = null; + if (inputSchemaBuilder_ != null) { + inputSchemaBuilder_.dispose(); + inputSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +       * the function. This input is a JSON object that contains the function's
                                          +       * parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getInputSchemaBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInputSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +       * the function. This input is a JSON object that contains the function's
                                          +       * parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getInputSchemaOrBuilder() { + if (inputSchemaBuilder_ != null) { + return inputSchemaBuilder_.getMessageOrBuilder(); + } else { + return inputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputSchema_; + } + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the input of
                                          +       * the function. This input is a JSON object that contains the function's
                                          +       * parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getInputSchemaFieldBuilder() { + if (inputSchemaBuilder_ == null) { + inputSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getInputSchema(), getParentForChildren(), isClean()); + inputSchema_ = null; + } + return inputSchemaBuilder_; + } + + private com.google.protobuf.Struct outputSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + outputSchemaBuilder_; + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +       * of the function. This output is a JSON object that contains the
                                          +       * function's parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputSchema field is set. + */ + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +       * of the function. This output is a JSON object that contains the
                                          +       * function's parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputSchema. + */ + public com.google.protobuf.Struct getOutputSchema() { + if (outputSchemaBuilder_ == null) { + return outputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputSchema_; + } else { + return outputSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +       * of the function. This output is a JSON object that contains the
                                          +       * function's parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputSchema(com.google.protobuf.Struct value) { + if (outputSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputSchema_ = value; + } else { + outputSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +       * of the function. This output is a JSON object that contains the
                                          +       * function's parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputSchema(com.google.protobuf.Struct.Builder builderForValue) { + if (outputSchemaBuilder_ == null) { + outputSchema_ = builderForValue.build(); + } else { + outputSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +       * of the function. This output is a JSON object that contains the
                                          +       * function's parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOutputSchema(com.google.protobuf.Struct value) { + if (outputSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && outputSchema_ != null + && outputSchema_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOutputSchemaBuilder().mergeFrom(value); + } else { + outputSchema_ = value; + } + } else { + outputSchemaBuilder_.mergeFrom(value); + } + if (outputSchema_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +       * of the function. This output is a JSON object that contains the
                                          +       * function's parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputSchema() { + bitField0_ = (bitField0_ & ~0x00000002); + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +       * of the function. This output is a JSON object that contains the
                                          +       * function's parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getOutputSchemaBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getOutputSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +       * of the function. This output is a JSON object that contains the
                                          +       * function's parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getOutputSchemaOrBuilder() { + if (outputSchemaBuilder_ != null) { + return outputSchemaBuilder_.getMessageOrBuilder(); + } else { + return outputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputSchema_; + } + } + + /** + * + * + *
                                          +       * Optional. The JSON schema is encapsulated in a
                                          +       * [google.protobuf.Struct][google.protobuf.Struct] to describe the output
                                          +       * of the function. This output is a JSON object that contains the
                                          +       * function's parameters as properties of the object.
                                          +       * 
                                          + * + * .google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getOutputSchemaFieldBuilder() { + if (outputSchemaBuilder_ == null) { + outputSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOutputSchema(), getParentForChildren(), isClean()); + outputSchema_ = null; + } + return outputSchemaBuilder_; + } + + private int methodType_ = 0; + + /** + * + * + *
                                          +       * Optional. The method type of the function. If not specified, the default
                                          +       * value is GET.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for methodType. + */ + @java.lang.Override + public int getMethodTypeValue() { + return methodType_; + } + + /** + * + * + *
                                          +       * Optional. The method type of the function. If not specified, the default
                                          +       * value is GET.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for methodType to set. + * @return This builder for chaining. + */ + public Builder setMethodTypeValue(int value) { + methodType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The method type of the function. If not specified, the default
                                          +       * value is GET.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The methodType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.MethodType getMethodType() { + com.google.cloud.dialogflow.v2beta1.Tool.MethodType result = + com.google.cloud.dialogflow.v2beta1.Tool.MethodType.forNumber(methodType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.MethodType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +       * Optional. The method type of the function. If not specified, the default
                                          +       * value is GET.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The methodType to set. + * @return This builder for chaining. + */ + public Builder setMethodType(com.google.cloud.dialogflow.v2beta1.Tool.MethodType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + methodType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The method type of the function. If not specified, the default
                                          +       * value is GET.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMethodType() { + bitField0_ = (bitField0_ & ~0x00000004); + methodType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.FunctionTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.FunctionTool) + private static final com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunctionTool 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.dialogflow.v2beta1.Tool.FunctionTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OpenApiToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Required. The OpenAPI schema specified as a text.
                                          +     * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the textSchema field is set. + */ + boolean hasTextSchema(); + + /** + * + * + *
                                          +     * Required. The OpenAPI schema specified as a text.
                                          +     * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The textSchema. + */ + java.lang.String getTextSchema(); + + /** + * + * + *
                                          +     * Required. The OpenAPI schema specified as a text.
                                          +     * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for textSchema. + */ + com.google.protobuf.ByteString getTextSchemaBytes(); + + /** + * + * + *
                                          +     * Optional. Authentication information required by the API.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authentication field is set. + */ + boolean hasAuthentication(); + + /** + * + * + *
                                          +     * Optional. Authentication information required by the API.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authentication. + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication getAuthentication(); + + /** + * + * + *
                                          +     * Optional. Authentication information required by the API.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.AuthenticationOrBuilder getAuthenticationOrBuilder(); + + /** + * + * + *
                                          +     * Optional. TLS configuration for the HTTPS verification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + boolean hasTlsConfig(); + + /** + * + * + *
                                          +     * Optional. TLS configuration for the HTTPS verification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig getTlsConfig(); + + /** + * + * + *
                                          +     * Optional. TLS configuration for the HTTPS verification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfigOrBuilder getTlsConfigOrBuilder(); + + /** + * + * + *
                                          +     * Optional. Service Directory configuration.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + + /** + * + * + *
                                          +     * Optional. Service Directory configuration.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig getServiceDirectoryConfig(); + + /** + * + * + *
                                          +     * Optional. Service Directory configuration.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.SchemaCase getSchemaCase(); + } + + /** + * + * + *
                                          +   * An OpenAPI tool is a way to provide the Tool specifications in the Open API
                                          +   * schema format.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.OpenApiTool} + */ + public static final class OpenApiTool extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) + OpenApiToolOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OpenApiTool.newBuilder() to construct. + private OpenApiTool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OpenApiTool() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OpenApiTool(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.class, + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.Builder.class); + } + + private int bitField0_; + private int schemaCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object schema_; + + public enum SchemaCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT_SCHEMA(1), + SCHEMA_NOT_SET(0); + private final int value; + + private SchemaCase(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 SchemaCase valueOf(int value) { + return forNumber(value); + } + + public static SchemaCase forNumber(int value) { + switch (value) { + case 1: + return TEXT_SCHEMA; + case 0: + return SCHEMA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SchemaCase getSchemaCase() { + return SchemaCase.forNumber(schemaCase_); + } + + public static final int TEXT_SCHEMA_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +     * Required. The OpenAPI schema specified as a text.
                                          +     * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the textSchema field is set. + */ + public boolean hasTextSchema() { + return schemaCase_ == 1; + } + + /** + * + * + *
                                          +     * Required. The OpenAPI schema specified as a text.
                                          +     * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The textSchema. + */ + public java.lang.String getTextSchema() { + java.lang.Object ref = ""; + if (schemaCase_ == 1) { + ref = schema_; + } + 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 (schemaCase_ == 1) { + schema_ = s; + } + return s; + } + } + + /** + * + * + *
                                          +     * Required. The OpenAPI schema specified as a text.
                                          +     * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for textSchema. + */ + public com.google.protobuf.ByteString getTextSchemaBytes() { + java.lang.Object ref = ""; + if (schemaCase_ == 1) { + ref = schema_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (schemaCase_ == 1) { + schema_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHENTICATION_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.Tool.Authentication authentication_; + + /** + * + * + *
                                          +     * Optional. Authentication information required by the API.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authentication field is set. + */ + @java.lang.Override + public boolean hasAuthentication() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Optional. Authentication information required by the API.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authentication. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication getAuthentication() { + return authentication_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.getDefaultInstance() + : authentication_; + } + + /** + * + * + *
                                          +     * Optional. Authentication information required by the API.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.AuthenticationOrBuilder + getAuthenticationOrBuilder() { + return authentication_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.getDefaultInstance() + : authentication_; + } + + public static final int TLS_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig tlsConfig_; + + /** + * + * + *
                                          +     * Optional. TLS configuration for the HTTPS verification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + @java.lang.Override + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Optional. TLS configuration for the HTTPS verification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig getTlsConfig() { + return tlsConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.getDefaultInstance() + : tlsConfig_; + } + + /** + * + * + *
                                          +     * Optional. TLS configuration for the HTTPS verification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfigOrBuilder getTlsConfigOrBuilder() { + return tlsConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.getDefaultInstance() + : tlsConfig_; + } + + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig serviceDirectoryConfig_; + + /** + * + * + *
                                          +     * Optional. Service Directory configuration.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +     * Optional. Service Directory configuration.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + /** + * + * + *
                                          +     * Optional. Service Directory configuration.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + 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 (schemaCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAuthentication()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getTlsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getServiceDirectoryConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (schemaCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAuthentication()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTlsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getServiceDirectoryConfig()); + } + 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.dialogflow.v2beta1.Tool.OpenApiTool)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool other = + (com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) obj; + + if (hasAuthentication() != other.hasAuthentication()) return false; + if (hasAuthentication()) { + if (!getAuthentication().equals(other.getAuthentication())) return false; + } + if (hasTlsConfig() != other.hasTlsConfig()) return false; + if (hasTlsConfig()) { + if (!getTlsConfig().equals(other.getTlsConfig())) return false; + } + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } + if (!getSchemaCase().equals(other.getSchemaCase())) return false; + switch (schemaCase_) { + case 1: + if (!getTextSchema().equals(other.getTextSchema())) 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(); + if (hasAuthentication()) { + hash = (37 * hash) + AUTHENTICATION_FIELD_NUMBER; + hash = (53 * hash) + getAuthentication().hashCode(); + } + if (hasTlsConfig()) { + hash = (37 * hash) + TLS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTlsConfig().hashCode(); + } + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } + switch (schemaCase_) { + case 1: + hash = (37 * hash) + TEXT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getTextSchema().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool 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.dialogflow.v2beta1.Tool.OpenApiTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool 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.dialogflow.v2beta1.Tool.OpenApiTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * An OpenAPI tool is a way to provide the Tool specifications in the Open API
                                          +     * schema format.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.OpenApiTool} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.class, + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAuthenticationFieldBuilder(); + getTlsConfigFieldBuilder(); + getServiceDirectoryConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authentication_ = null; + if (authenticationBuilder_ != null) { + authenticationBuilder_.dispose(); + authenticationBuilder_ = null; + } + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + schemaCase_ = 0; + schema_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool build() { + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool result = + new com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authentication_ = + authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool result) { + result.schemaCase_ = schemaCase_; + result.schema_ = this.schema_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool other) { + if (other == com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.getDefaultInstance()) + return this; + if (other.hasAuthentication()) { + mergeAuthentication(other.getAuthentication()); + } + if (other.hasTlsConfig()) { + mergeTlsConfig(other.getTlsConfig()); + } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } + switch (other.getSchemaCase()) { + case TEXT_SCHEMA: + { + schemaCase_ = 1; + schema_ = other.schema_; + onChanged(); + break; + } + case SCHEMA_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: + { + java.lang.String s = input.readStringRequireUtf8(); + schemaCase_ = 1; + schema_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + getAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getTlsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getServiceDirectoryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 schemaCase_ = 0; + private java.lang.Object schema_; + + public SchemaCase getSchemaCase() { + return SchemaCase.forNumber(schemaCase_); + } + + public Builder clearSchema() { + schemaCase_ = 0; + schema_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                          +       * Required. The OpenAPI schema specified as a text.
                                          +       * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the textSchema field is set. + */ + @java.lang.Override + public boolean hasTextSchema() { + return schemaCase_ == 1; + } + + /** + * + * + *
                                          +       * Required. The OpenAPI schema specified as a text.
                                          +       * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The textSchema. + */ + @java.lang.Override + public java.lang.String getTextSchema() { + java.lang.Object ref = ""; + if (schemaCase_ == 1) { + ref = schema_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (schemaCase_ == 1) { + schema_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Required. The OpenAPI schema specified as a text.
                                          +       * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for textSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextSchemaBytes() { + java.lang.Object ref = ""; + if (schemaCase_ == 1) { + ref = schema_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (schemaCase_ == 1) { + schema_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Required. The OpenAPI schema specified as a text.
                                          +       * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The textSchema to set. + * @return This builder for chaining. + */ + public Builder setTextSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schemaCase_ = 1; + schema_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The OpenAPI schema specified as a text.
                                          +       * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTextSchema() { + if (schemaCase_ == 1) { + schemaCase_ = 0; + schema_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Required. The OpenAPI schema specified as a text.
                                          +       * 
                                          + * + * string text_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for textSchema to set. + * @return This builder for chaining. + */ + public Builder setTextSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaCase_ = 1; + schema_ = value; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.Tool.Authentication authentication_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.AuthenticationOrBuilder> + authenticationBuilder_; + + /** + * + * + *
                                          +       * Optional. Authentication information required by the API.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authentication field is set. + */ + public boolean hasAuthentication() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * Optional. Authentication information required by the API.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authentication. + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication getAuthentication() { + if (authenticationBuilder_ == null) { + return authentication_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.getDefaultInstance() + : authentication_; + } else { + return authenticationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. Authentication information required by the API.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthentication( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication value) { + if (authenticationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authentication_ = value; + } else { + authenticationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Authentication information required by the API.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthentication( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.Builder builderForValue) { + if (authenticationBuilder_ == null) { + authentication_ = builderForValue.build(); + } else { + authenticationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Authentication information required by the API.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAuthentication( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication value) { + if (authenticationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && authentication_ != null + && authentication_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.getDefaultInstance()) { + getAuthenticationBuilder().mergeFrom(value); + } else { + authentication_ = value; + } + } else { + authenticationBuilder_.mergeFrom(value); + } + if (authentication_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. Authentication information required by the API.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuthentication() { + bitField0_ = (bitField0_ & ~0x00000002); + authentication_ = null; + if (authenticationBuilder_ != null) { + authenticationBuilder_.dispose(); + authenticationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Authentication information required by the API.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.Builder + getAuthenticationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAuthenticationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. Authentication information required by the API.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.AuthenticationOrBuilder + getAuthenticationOrBuilder() { + if (authenticationBuilder_ != null) { + return authenticationBuilder_.getMessageOrBuilder(); + } else { + return authentication_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.getDefaultInstance() + : authentication_; + } + } + + /** + * + * + *
                                          +       * Optional. Authentication information required by the API.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.AuthenticationOrBuilder> + getAuthenticationFieldBuilder() { + if (authenticationBuilder_ == null) { + authenticationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.AuthenticationOrBuilder>( + getAuthentication(), getParentForChildren(), isClean()); + authentication_ = null; + } + return authenticationBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig tlsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfigOrBuilder> + tlsConfigBuilder_; + + /** + * + * + *
                                          +       * Optional. TLS configuration for the HTTPS verification.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * Optional. TLS configuration for the HTTPS verification.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig getTlsConfig() { + if (tlsConfigBuilder_ == null) { + return tlsConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.getDefaultInstance() + : tlsConfig_; + } else { + return tlsConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. TLS configuration for the HTTPS verification.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig value) { + if (tlsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tlsConfig_ = value; + } else { + tlsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. TLS configuration for the HTTPS verification.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.Builder builderForValue) { + if (tlsConfigBuilder_ == null) { + tlsConfig_ = builderForValue.build(); + } else { + tlsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. TLS configuration for the HTTPS verification.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTlsConfig(com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig value) { + if (tlsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && tlsConfig_ != null + && tlsConfig_ + != com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.getDefaultInstance()) { + getTlsConfigBuilder().mergeFrom(value); + } else { + tlsConfig_ = value; + } + } else { + tlsConfigBuilder_.mergeFrom(value); + } + if (tlsConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. TLS configuration for the HTTPS verification.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTlsConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. TLS configuration for the HTTPS verification.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.Builder getTlsConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTlsConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. TLS configuration for the HTTPS verification.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfigOrBuilder getTlsConfigOrBuilder() { + if (tlsConfigBuilder_ != null) { + return tlsConfigBuilder_.getMessageOrBuilder(); + } else { + return tlsConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.getDefaultInstance() + : tlsConfig_; + } + } + + /** + * + * + *
                                          +       * Optional. TLS configuration for the HTTPS verification.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfigOrBuilder> + getTlsConfigFieldBuilder() { + if (tlsConfigBuilder_ == null) { + tlsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfigOrBuilder>( + getTlsConfig(), getParentForChildren(), isClean()); + tlsConfig_ = null; + } + return tlsConfigBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig, + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + + /** + * + * + *
                                          +       * Optional. Service Directory configuration.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +       * Optional. Service Directory configuration.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * Optional. Service Directory configuration.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Service Directory configuration.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Service Directory configuration.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + .getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * Optional. Service Directory configuration.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. Service Directory configuration.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getServiceDirectoryConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Optional. Service Directory configuration.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + + /** + * + * + *
                                          +       * Optional. Service Directory configuration.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig, + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfigOrBuilder> + getServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig, + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) + private static final com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenApiTool 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.dialogflow.v2beta1.Tool.OpenApiTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConnectorToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Required. The full resource name of the referenced Integration Connectors
                                          +     * Connection. Format: 'projects/*/locations/*/connections/*'
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +     * Required. The full resource name of the referenced Integration Connectors
                                          +     * Connection. Format: 'projects/*/locations/*/connections/*'
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getActionsList(); + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action getActions(int index); + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getActionsCount(); + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getActionsOrBuilderList(); + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.ActionOrBuilder getActionsOrBuilder( + int index); + } + + /** + * + * + *
                                          +   * A ConnectorTool enabling using Integration Connectors Connections as tools.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.ConnectorTool} + */ + public static final class ConnectorTool extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) + ConnectorToolOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConnectorTool.newBuilder() to construct. + private ConnectorTool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConnectorTool() { + name_ = ""; + actions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConnectorTool(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.class, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Builder.class); + } + + public interface ActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * ID of a Connection action for the tool to use.
                                          +       * 
                                          + * + * string connection_action_id = 4; + * + * @return Whether the connectionActionId field is set. + */ + boolean hasConnectionActionId(); + + /** + * + * + *
                                          +       * ID of a Connection action for the tool to use.
                                          +       * 
                                          + * + * string connection_action_id = 4; + * + * @return The connectionActionId. + */ + java.lang.String getConnectionActionId(); + + /** + * + * + *
                                          +       * ID of a Connection action for the tool to use.
                                          +       * 
                                          + * + * string connection_action_id = 4; + * + * @return The bytes for connectionActionId. + */ + com.google.protobuf.ByteString getConnectionActionIdBytes(); + + /** + * + * + *
                                          +       * Entity operation configuration for the tool to use.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + * + * @return Whether the entityOperation field is set. + */ + boolean hasEntityOperation(); + + /** + * + * + *
                                          +       * Entity operation configuration for the tool to use.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + * + * @return The entityOperation. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + getEntityOperation(); + + /** + * + * + *
                                          +       * Entity operation configuration for the tool to use.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperationOrBuilder + getEntityOperationOrBuilder(); + + /** + * + * + *
                                          +       * Optional. Entity fields to use as inputs for the operation.
                                          +       * If no fields are specified, all fields of the Entity will be used.
                                          +       * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the inputFields. + */ + java.util.List getInputFieldsList(); + + /** + * + * + *
                                          +       * Optional. Entity fields to use as inputs for the operation.
                                          +       * If no fields are specified, all fields of the Entity will be used.
                                          +       * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of inputFields. + */ + int getInputFieldsCount(); + + /** + * + * + *
                                          +       * Optional. Entity fields to use as inputs for the operation.
                                          +       * If no fields are specified, all fields of the Entity will be used.
                                          +       * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The inputFields at the given index. + */ + java.lang.String getInputFields(int index); + + /** + * + * + *
                                          +       * Optional. Entity fields to use as inputs for the operation.
                                          +       * If no fields are specified, all fields of the Entity will be used.
                                          +       * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the inputFields at the given index. + */ + com.google.protobuf.ByteString getInputFieldsBytes(int index); + + /** + * + * + *
                                          +       * Optional. Entity fields to return from the operation.
                                          +       * If no fields are specified, all fields of the Entity will be returned.
                                          +       * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the outputFields. + */ + java.util.List getOutputFieldsList(); + + /** + * + * + *
                                          +       * Optional. Entity fields to return from the operation.
                                          +       * If no fields are specified, all fields of the Entity will be returned.
                                          +       * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of outputFields. + */ + int getOutputFieldsCount(); + + /** + * + * + *
                                          +       * Optional. Entity fields to return from the operation.
                                          +       * If no fields are specified, all fields of the Entity will be returned.
                                          +       * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The outputFields at the given index. + */ + java.lang.String getOutputFields(int index); + + /** + * + * + *
                                          +       * Optional. Entity fields to return from the operation.
                                          +       * If no fields are specified, all fields of the Entity will be returned.
                                          +       * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the outputFields at the given index. + */ + com.google.protobuf.ByteString getOutputFieldsBytes(int index); + + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.ActionSpecCase + getActionSpecCase(); + } + + /** + * + * + *
                                          +     * Configuration of a Connection operation for the tool to use.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action} + */ + public static final class Action extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action) + ActionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Action.newBuilder() to construct. + private Action(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Action() { + inputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + outputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Action(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.class, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder.class); + } + + public interface EntityOperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +         * Required. ID of the entity.
                                          +         * 
                                          + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + java.lang.String getEntityId(); + + /** + * + * + *
                                          +         * Required. ID of the entity.
                                          +         * 
                                          + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + com.google.protobuf.ByteString getEntityIdBytes(); + + /** + * + * + *
                                          +         * Required. Operation to perform on the entity.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + int getOperationValue(); + + /** + * + * + *
                                          +         * Required. Operation to perform on the entity.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType + getOperation(); + } + + /** + * + * + *
                                          +       * Entity CRUD operation specification.
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation} + */ + public static final class EntityOperation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + EntityOperationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EntityOperation.newBuilder() to construct. + private EntityOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityOperation() { + entityId_ = ""; + operation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityOperation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .class, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .Builder.class); + } + + /** + * + * + *
                                          +         * The operation to perform on the entity.
                                          +         * 
                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType} + */ + public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +           * Operation type unspecified. Invalid, ConnectorTool create/update
                                          +           * will fail.
                                          +           * 
                                          + * + * OPERATION_TYPE_UNSPECIFIED = 0; + */ + OPERATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                          +           * List operation.
                                          +           * 
                                          + * + * LIST = 1; + */ + LIST(1), + /** + * + * + *
                                          +           * Get operation.
                                          +           * 
                                          + * + * GET = 2; + */ + GET(2), + /** + * + * + *
                                          +           * Create operation.
                                          +           * 
                                          + * + * CREATE = 3; + */ + CREATE(3), + /** + * + * + *
                                          +           * Update operation.
                                          +           * 
                                          + * + * UPDATE = 4; + */ + UPDATE(4), + /** + * + * + *
                                          +           * Delete operation.
                                          +           * 
                                          + * + * DELETE = 5; + */ + DELETE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +           * Operation type unspecified. Invalid, ConnectorTool create/update
                                          +           * will fail.
                                          +           * 
                                          + * + * OPERATION_TYPE_UNSPECIFIED = 0; + */ + public static final int OPERATION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +           * List operation.
                                          +           * 
                                          + * + * LIST = 1; + */ + public static final int LIST_VALUE = 1; + + /** + * + * + *
                                          +           * Get operation.
                                          +           * 
                                          + * + * GET = 2; + */ + public static final int GET_VALUE = 2; + + /** + * + * + *
                                          +           * Create operation.
                                          +           * 
                                          + * + * CREATE = 3; + */ + public static final int CREATE_VALUE = 3; + + /** + * + * + *
                                          +           * Update operation.
                                          +           * 
                                          + * + * UPDATE = 4; + */ + public static final int UPDATE_VALUE = 4; + + /** + * + * + *
                                          +           * Delete operation.
                                          +           * 
                                          + * + * DELETE = 5; + */ + public static final int DELETE_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 OperationType 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 OperationType forNumber(int value) { + switch (value) { + case 0: + return OPERATION_TYPE_UNSPECIFIED; + case 1: + return LIST; + case 2: + return GET; + case 3: + return CREATE; + case 4: + return UPDATE; + case 5: + return DELETE; + 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 OperationType findValueByNumber(int number) { + return OperationType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final OperationType[] VALUES = values(); + + public static OperationType 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 OperationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType) + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; + + /** + * + * + *
                                          +         * Required. ID of the entity.
                                          +         * 
                                          + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + @java.lang.Override + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + 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(); + entityId_ = s; + return s; + } + } + + /** + * + * + *
                                          +         * Required. ID of the entity.
                                          +         * 
                                          + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_FIELD_NUMBER = 2; + private int operation_ = 0; + + /** + * + * + *
                                          +         * Required. Operation to perform on the entity.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + + /** + * + * + *
                                          +         * Required. Operation to perform on the entity.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType + getOperation() { + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType + result = + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType.forNumber(operation_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); + } + if (operation_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType.OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, operation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); + } + if (operation_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType.OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, operation_); + } + 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.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation other = + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) obj; + + if (!getEntityId().equals(other.getEntityId())) return false; + if (operation_ != other.operation_) 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) + ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + operation_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + 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.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + 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.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +         * Entity CRUD operation specification.
                                          +         * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .class, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + entityId_ = ""; + operation_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + build() { + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation result = + new com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityId_ = entityId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operation_ = operation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDefaultInstance()) return this; + if (!other.getEntityId().isEmpty()) { + entityId_ = other.entityId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.operation_ != 0) { + setOperationValue(other.getOperationValue()); + } + 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: + { + entityId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + operation_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 entityId_ = ""; + + /** + * + * + *
                                          +           * Required. ID of the entity.
                                          +           * 
                                          + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +           * Required. ID of the entity.
                                          +           * 
                                          + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +           * Required. ID of the entity.
                                          +           * 
                                          + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * Required. ID of the entity.
                                          +           * 
                                          + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEntityId() { + entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * Required. ID of the entity.
                                          +           * 
                                          + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int operation_ = 0; + + /** + * + * + *
                                          +           * Required. Operation to perform on the entity.
                                          +           * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + + /** + * + * + *
                                          +           * Required. Operation to perform on the entity.
                                          +           * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationValue(int value) { + operation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * Required. Operation to perform on the entity.
                                          +           * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType + getOperation() { + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType + result = + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType.forNumber(operation_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +           * Required. Operation to perform on the entity.
                                          +           * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .OperationType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + operation_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * Required. Operation to perform on the entity.
                                          +           * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + bitField0_ = (bitField0_ & ~0x00000002); + operation_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + private static final com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + .EntityOperation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityOperation 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.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int actionSpecCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object actionSpec_; + + public enum ActionSpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONNECTION_ACTION_ID(4), + ENTITY_OPERATION(5), + ACTIONSPEC_NOT_SET(0); + private final int value; + + private ActionSpecCase(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 ActionSpecCase valueOf(int value) { + return forNumber(value); + } + + public static ActionSpecCase forNumber(int value) { + switch (value) { + case 4: + return CONNECTION_ACTION_ID; + case 5: + return ENTITY_OPERATION; + case 0: + return ACTIONSPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionSpecCase getActionSpecCase() { + return ActionSpecCase.forNumber(actionSpecCase_); + } + + public static final int CONNECTION_ACTION_ID_FIELD_NUMBER = 4; + + /** + * + * + *
                                          +       * ID of a Connection action for the tool to use.
                                          +       * 
                                          + * + * string connection_action_id = 4; + * + * @return Whether the connectionActionId field is set. + */ + public boolean hasConnectionActionId() { + return actionSpecCase_ == 4; + } + + /** + * + * + *
                                          +       * ID of a Connection action for the tool to use.
                                          +       * 
                                          + * + * string connection_action_id = 4; + * + * @return The connectionActionId. + */ + public java.lang.String getConnectionActionId() { + java.lang.Object ref = ""; + if (actionSpecCase_ == 4) { + ref = actionSpec_; + } + 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 (actionSpecCase_ == 4) { + actionSpec_ = s; + } + return s; + } + } + + /** + * + * + *
                                          +       * ID of a Connection action for the tool to use.
                                          +       * 
                                          + * + * string connection_action_id = 4; + * + * @return The bytes for connectionActionId. + */ + public com.google.protobuf.ByteString getConnectionActionIdBytes() { + java.lang.Object ref = ""; + if (actionSpecCase_ == 4) { + ref = actionSpec_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionSpecCase_ == 4) { + actionSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_OPERATION_FIELD_NUMBER = 5; + + /** + * + * + *
                                          +       * Entity operation configuration for the tool to use.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + * + * @return Whether the entityOperation field is set. + */ + @java.lang.Override + public boolean hasEntityOperation() { + return actionSpecCase_ == 5; + } + + /** + * + * + *
                                          +       * Entity operation configuration for the tool to use.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + * + * @return The entityOperation. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + getEntityOperation() { + if (actionSpecCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + actionSpec_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDefaultInstance(); + } + + /** + * + * + *
                                          +       * Entity operation configuration for the tool to use.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperationOrBuilder + getEntityOperationOrBuilder() { + if (actionSpecCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + actionSpec_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDefaultInstance(); + } + + public static final int INPUT_FIELDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList inputFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                          +       * Optional. Entity fields to use as inputs for the operation.
                                          +       * If no fields are specified, all fields of the Entity will be used.
                                          +       * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the inputFields. + */ + public com.google.protobuf.ProtocolStringList getInputFieldsList() { + return inputFields_; + } + + /** + * + * + *
                                          +       * Optional. Entity fields to use as inputs for the operation.
                                          +       * If no fields are specified, all fields of the Entity will be used.
                                          +       * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of inputFields. + */ + public int getInputFieldsCount() { + return inputFields_.size(); + } + + /** + * + * + *
                                          +       * Optional. Entity fields to use as inputs for the operation.
                                          +       * If no fields are specified, all fields of the Entity will be used.
                                          +       * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The inputFields at the given index. + */ + public java.lang.String getInputFields(int index) { + return inputFields_.get(index); + } + + /** + * + * + *
                                          +       * Optional. Entity fields to use as inputs for the operation.
                                          +       * If no fields are specified, all fields of the Entity will be used.
                                          +       * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the inputFields at the given index. + */ + public com.google.protobuf.ByteString getInputFieldsBytes(int index) { + return inputFields_.getByteString(index); + } + + public static final int OUTPUT_FIELDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList outputFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                          +       * Optional. Entity fields to return from the operation.
                                          +       * If no fields are specified, all fields of the Entity will be returned.
                                          +       * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the outputFields. + */ + public com.google.protobuf.ProtocolStringList getOutputFieldsList() { + return outputFields_; + } + + /** + * + * + *
                                          +       * Optional. Entity fields to return from the operation.
                                          +       * If no fields are specified, all fields of the Entity will be returned.
                                          +       * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of outputFields. + */ + public int getOutputFieldsCount() { + return outputFields_.size(); + } + + /** + * + * + *
                                          +       * Optional. Entity fields to return from the operation.
                                          +       * If no fields are specified, all fields of the Entity will be returned.
                                          +       * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The outputFields at the given index. + */ + public java.lang.String getOutputFields(int index) { + return outputFields_.get(index); + } + + /** + * + * + *
                                          +       * Optional. Entity fields to return from the operation.
                                          +       * If no fields are specified, all fields of the Entity will be returned.
                                          +       * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the outputFields at the given index. + */ + public com.google.protobuf.ByteString getOutputFieldsBytes(int index) { + return outputFields_.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 < inputFields_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputFields_.getRaw(i)); + } + for (int i = 0; i < outputFields_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputFields_.getRaw(i)); + } + if (actionSpecCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, actionSpec_); + } + if (actionSpecCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + actionSpec_); + } + 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 < inputFields_.size(); i++) { + dataSize += computeStringSizeNoTag(inputFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getInputFieldsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < outputFields_.size(); i++) { + dataSize += computeStringSizeNoTag(outputFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getOutputFieldsList().size(); + } + if (actionSpecCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, actionSpec_); + } + if (actionSpecCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + actionSpec_); + } + 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.dialogflow.v2beta1.Tool.ConnectorTool.Action)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action other = + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action) obj; + + if (!getInputFieldsList().equals(other.getInputFieldsList())) return false; + if (!getOutputFieldsList().equals(other.getOutputFieldsList())) return false; + if (!getActionSpecCase().equals(other.getActionSpecCase())) return false; + switch (actionSpecCase_) { + case 4: + if (!getConnectionActionId().equals(other.getConnectionActionId())) return false; + break; + case 5: + if (!getEntityOperation().equals(other.getEntityOperation())) 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(); + if (getInputFieldsCount() > 0) { + hash = (37 * hash) + INPUT_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getInputFieldsList().hashCode(); + } + if (getOutputFieldsCount() > 0) { + hash = (37 * hash) + OUTPUT_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getOutputFieldsList().hashCode(); + } + switch (actionSpecCase_) { + case 4: + hash = (37 * hash) + CONNECTION_ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionActionId().hashCode(); + break; + case 5: + hash = (37 * hash) + ENTITY_OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getEntityOperation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action 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.dialogflow.v2beta1.Tool.ConnectorTool.Action parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action 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.dialogflow.v2beta1.Tool.ConnectorTool.Action parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * Configuration of a Connection operation for the tool to use.
                                          +       * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action) + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.ActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.class, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entityOperationBuilder_ != null) { + entityOperationBuilder_.clear(); + } + inputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + outputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + actionSpecCase_ = 0; + actionSpec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action build() { + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action result = + new com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + inputFields_.makeImmutable(); + result.inputFields_ = inputFields_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + outputFields_.makeImmutable(); + result.outputFields_ = outputFields_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action result) { + result.actionSpecCase_ = actionSpecCase_; + result.actionSpec_ = this.actionSpec_; + if (actionSpecCase_ == 5 && entityOperationBuilder_ != null) { + result.actionSpec_ = entityOperationBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.getDefaultInstance()) + return this; + if (!other.inputFields_.isEmpty()) { + if (inputFields_.isEmpty()) { + inputFields_ = other.inputFields_; + bitField0_ |= 0x00000004; + } else { + ensureInputFieldsIsMutable(); + inputFields_.addAll(other.inputFields_); + } + onChanged(); + } + if (!other.outputFields_.isEmpty()) { + if (outputFields_.isEmpty()) { + outputFields_ = other.outputFields_; + bitField0_ |= 0x00000008; + } else { + ensureOutputFieldsIsMutable(); + outputFields_.addAll(other.outputFields_); + } + onChanged(); + } + switch (other.getActionSpecCase()) { + case CONNECTION_ACTION_ID: + { + actionSpecCase_ = 4; + actionSpec_ = other.actionSpec_; + onChanged(); + break; + } + case ENTITY_OPERATION: + { + mergeEntityOperation(other.getEntityOperation()); + break; + } + case ACTIONSPEC_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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInputFieldsIsMutable(); + inputFields_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOutputFieldsIsMutable(); + outputFields_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + actionSpecCase_ = 4; + actionSpec_ = s; + break; + } // case 34 + case 42: + { + input.readMessage( + getEntityOperationFieldBuilder().getBuilder(), extensionRegistry); + actionSpecCase_ = 5; + 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 actionSpecCase_ = 0; + private java.lang.Object actionSpec_; + + public ActionSpecCase getActionSpecCase() { + return ActionSpecCase.forNumber(actionSpecCase_); + } + + public Builder clearActionSpec() { + actionSpecCase_ = 0; + actionSpec_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                          +         * ID of a Connection action for the tool to use.
                                          +         * 
                                          + * + * string connection_action_id = 4; + * + * @return Whether the connectionActionId field is set. + */ + @java.lang.Override + public boolean hasConnectionActionId() { + return actionSpecCase_ == 4; + } + + /** + * + * + *
                                          +         * ID of a Connection action for the tool to use.
                                          +         * 
                                          + * + * string connection_action_id = 4; + * + * @return The connectionActionId. + */ + @java.lang.Override + public java.lang.String getConnectionActionId() { + java.lang.Object ref = ""; + if (actionSpecCase_ == 4) { + ref = actionSpec_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (actionSpecCase_ == 4) { + actionSpec_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * ID of a Connection action for the tool to use.
                                          +         * 
                                          + * + * string connection_action_id = 4; + * + * @return The bytes for connectionActionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionActionIdBytes() { + java.lang.Object ref = ""; + if (actionSpecCase_ == 4) { + ref = actionSpec_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionSpecCase_ == 4) { + actionSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * ID of a Connection action for the tool to use.
                                          +         * 
                                          + * + * string connection_action_id = 4; + * + * @param value The connectionActionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionActionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + actionSpecCase_ = 4; + actionSpec_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * ID of a Connection action for the tool to use.
                                          +         * 
                                          + * + * string connection_action_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearConnectionActionId() { + if (actionSpecCase_ == 4) { + actionSpecCase_ = 0; + actionSpec_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +         * ID of a Connection action for the tool to use.
                                          +         * 
                                          + * + * string connection_action_id = 4; + * + * @param value The bytes for connectionActionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionActionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionSpecCase_ = 4; + actionSpec_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + .EntityOperationOrBuilder> + entityOperationBuilder_; + + /** + * + * + *
                                          +         * Entity operation configuration for the tool to use.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + * + * @return Whether the entityOperation field is set. + */ + @java.lang.Override + public boolean hasEntityOperation() { + return actionSpecCase_ == 5; + } + + /** + * + * + *
                                          +         * Entity operation configuration for the tool to use.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + * + * @return The entityOperation. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + getEntityOperation() { + if (entityOperationBuilder_ == null) { + if (actionSpecCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + actionSpec_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDefaultInstance(); + } else { + if (actionSpecCase_ == 5) { + return entityOperationBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +         * Entity operation configuration for the tool to use.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + */ + public Builder setEntityOperation( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation value) { + if (entityOperationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionSpec_ = value; + onChanged(); + } else { + entityOperationBuilder_.setMessage(value); + } + actionSpecCase_ = 5; + return this; + } + + /** + * + * + *
                                          +         * Entity operation configuration for the tool to use.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + */ + public Builder setEntityOperation( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.Builder + builderForValue) { + if (entityOperationBuilder_ == null) { + actionSpec_ = builderForValue.build(); + onChanged(); + } else { + entityOperationBuilder_.setMessage(builderForValue.build()); + } + actionSpecCase_ = 5; + return this; + } + + /** + * + * + *
                                          +         * Entity operation configuration for the tool to use.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + */ + public Builder mergeEntityOperation( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation value) { + if (entityOperationBuilder_ == null) { + if (actionSpecCase_ == 5 + && actionSpec_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDefaultInstance()) { + actionSpec_ = + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + .EntityOperation) + actionSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + actionSpec_ = value; + } + onChanged(); + } else { + if (actionSpecCase_ == 5) { + entityOperationBuilder_.mergeFrom(value); + } else { + entityOperationBuilder_.setMessage(value); + } + } + actionSpecCase_ = 5; + return this; + } + + /** + * + * + *
                                          +         * Entity operation configuration for the tool to use.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + */ + public Builder clearEntityOperation() { + if (entityOperationBuilder_ == null) { + if (actionSpecCase_ == 5) { + actionSpecCase_ = 0; + actionSpec_ = null; + onChanged(); + } + } else { + if (actionSpecCase_ == 5) { + actionSpecCase_ = 0; + actionSpec_ = null; + } + entityOperationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +         * Entity operation configuration for the tool to use.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation.Builder + getEntityOperationBuilder() { + return getEntityOperationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +         * Entity operation configuration for the tool to use.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + .EntityOperationOrBuilder + getEntityOperationOrBuilder() { + if ((actionSpecCase_ == 5) && (entityOperationBuilder_ != null)) { + return entityOperationBuilder_.getMessageOrBuilder(); + } else { + if (actionSpecCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + actionSpec_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +         * Entity operation configuration for the tool to use.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + .EntityOperationOrBuilder> + getEntityOperationFieldBuilder() { + if (entityOperationBuilder_ == null) { + if (!(actionSpecCase_ == 5)) { + actionSpec_ = + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .getDefaultInstance(); + } + entityOperationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation + .Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + .EntityOperationOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperation) + actionSpec_, + getParentForChildren(), + isClean()); + actionSpec_ = null; + } + actionSpecCase_ = 5; + onChanged(); + return entityOperationBuilder_; + } + + private com.google.protobuf.LazyStringArrayList inputFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInputFieldsIsMutable() { + if (!inputFields_.isModifiable()) { + inputFields_ = new com.google.protobuf.LazyStringArrayList(inputFields_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to use as inputs for the operation.
                                          +         * If no fields are specified, all fields of the Entity will be used.
                                          +         * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the inputFields. + */ + public com.google.protobuf.ProtocolStringList getInputFieldsList() { + inputFields_.makeImmutable(); + return inputFields_; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to use as inputs for the operation.
                                          +         * If no fields are specified, all fields of the Entity will be used.
                                          +         * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of inputFields. + */ + public int getInputFieldsCount() { + return inputFields_.size(); + } + + /** + * + * + *
                                          +         * Optional. Entity fields to use as inputs for the operation.
                                          +         * If no fields are specified, all fields of the Entity will be used.
                                          +         * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The inputFields at the given index. + */ + public java.lang.String getInputFields(int index) { + return inputFields_.get(index); + } + + /** + * + * + *
                                          +         * Optional. Entity fields to use as inputs for the operation.
                                          +         * If no fields are specified, all fields of the Entity will be used.
                                          +         * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the inputFields at the given index. + */ + public com.google.protobuf.ByteString getInputFieldsBytes(int index) { + return inputFields_.getByteString(index); + } + + /** + * + * + *
                                          +         * Optional. Entity fields to use as inputs for the operation.
                                          +         * If no fields are specified, all fields of the Entity will be used.
                                          +         * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The inputFields to set. + * @return This builder for chaining. + */ + public Builder setInputFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputFieldsIsMutable(); + inputFields_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to use as inputs for the operation.
                                          +         * If no fields are specified, all fields of the Entity will be used.
                                          +         * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inputFields to add. + * @return This builder for chaining. + */ + public Builder addInputFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputFieldsIsMutable(); + inputFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to use as inputs for the operation.
                                          +         * If no fields are specified, all fields of the Entity will be used.
                                          +         * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The inputFields to add. + * @return This builder for chaining. + */ + public Builder addAllInputFields(java.lang.Iterable values) { + ensureInputFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputFields_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to use as inputs for the operation.
                                          +         * If no fields are specified, all fields of the Entity will be used.
                                          +         * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInputFields() { + inputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to use as inputs for the operation.
                                          +         * If no fields are specified, all fields of the Entity will be used.
                                          +         * 
                                          + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the inputFields to add. + * @return This builder for chaining. + */ + public Builder addInputFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInputFieldsIsMutable(); + inputFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList outputFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOutputFieldsIsMutable() { + if (!outputFields_.isModifiable()) { + outputFields_ = new com.google.protobuf.LazyStringArrayList(outputFields_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to return from the operation.
                                          +         * If no fields are specified, all fields of the Entity will be returned.
                                          +         * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the outputFields. + */ + public com.google.protobuf.ProtocolStringList getOutputFieldsList() { + outputFields_.makeImmutable(); + return outputFields_; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to return from the operation.
                                          +         * If no fields are specified, all fields of the Entity will be returned.
                                          +         * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of outputFields. + */ + public int getOutputFieldsCount() { + return outputFields_.size(); + } + + /** + * + * + *
                                          +         * Optional. Entity fields to return from the operation.
                                          +         * If no fields are specified, all fields of the Entity will be returned.
                                          +         * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The outputFields at the given index. + */ + public java.lang.String getOutputFields(int index) { + return outputFields_.get(index); + } + + /** + * + * + *
                                          +         * Optional. Entity fields to return from the operation.
                                          +         * If no fields are specified, all fields of the Entity will be returned.
                                          +         * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the outputFields at the given index. + */ + public com.google.protobuf.ByteString getOutputFieldsBytes(int index) { + return outputFields_.getByteString(index); + } + + /** + * + * + *
                                          +         * Optional. Entity fields to return from the operation.
                                          +         * If no fields are specified, all fields of the Entity will be returned.
                                          +         * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The outputFields to set. + * @return This builder for chaining. + */ + public Builder setOutputFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputFieldsIsMutable(); + outputFields_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to return from the operation.
                                          +         * If no fields are specified, all fields of the Entity will be returned.
                                          +         * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputFields to add. + * @return This builder for chaining. + */ + public Builder addOutputFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputFieldsIsMutable(); + outputFields_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to return from the operation.
                                          +         * If no fields are specified, all fields of the Entity will be returned.
                                          +         * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The outputFields to add. + * @return This builder for chaining. + */ + public Builder addAllOutputFields(java.lang.Iterable values) { + ensureOutputFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputFields_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to return from the operation.
                                          +         * If no fields are specified, all fields of the Entity will be returned.
                                          +         * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputFields() { + outputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Entity fields to return from the operation.
                                          +         * If no fields are specified, all fields of the Entity will be returned.
                                          +         * 
                                          + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the outputFields to add. + * @return This builder for chaining. + */ + public Builder addOutputFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOutputFieldsIsMutable(); + outputFields_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action) + private static final com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Action 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.dialogflow.v2beta1.Tool.ConnectorTool.Action + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +     * Required. The full resource name of the referenced Integration Connectors
                                          +     * Connection. Format: 'projects/*/locations/*/connections/*'
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The full resource name of the referenced Integration Connectors
                                          +     * Connection. Format: 'projects/*/locations/*/connections/*'
                                          +     * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 ACTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List actions_; + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getActionsList() { + return actions_; + } + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.ActionOrBuilder> + getActionsOrBuilderList() { + return actions_; + } + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getActionsCount() { + return actions_.size(); + } + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action getActions(int index) { + return actions_.get(index); + } + + /** + * + * + *
                                          +     * Required. Actions for the tool to use.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.ActionOrBuilder + getActionsOrBuilder(int index) { + return actions_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < actions_.size(); i++) { + output.writeMessage(2, actions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (int i = 0; i < actions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, actions_.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.cloud.dialogflow.v2beta1.Tool.ConnectorTool)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool other = + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getActionsList().equals(other.getActionsList())) 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(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool 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.dialogflow.v2beta1.Tool.ConnectorTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool 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.dialogflow.v2beta1.Tool.ConnectorTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * A ConnectorTool enabling using Integration Connectors Connections as tools.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.ConnectorTool} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.class, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + } else { + actions_ = null; + actionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool build() { + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool result = + new com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool result) { + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool other) { + if (other == com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000002); + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getActionsFieldBuilder() + : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } + 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: + { + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.parser(), + extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.addMessage(m); + } + 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. The full resource name of the referenced Integration Connectors
                                          +       * Connection. Format: 'projects/*/locations/*/connections/*'
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The full resource name of the referenced Integration Connectors
                                          +       * Connection. Format: 'projects/*/locations/*/connections/*'
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The full resource name of the referenced Integration Connectors
                                          +       * Connection. Format: 'projects/*/locations/*/connections/*'
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The full resource name of the referenced Integration Connectors
                                          +       * Connection. Format: 'projects/*/locations/*/connections/*'
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The full resource name of the referenced Integration Connectors
                                          +       * Connection. Format: 'projects/*/locations/*/connections/*'
                                          +       * 
                                          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.util.List + actions_ = java.util.Collections.emptyList(); + + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + actions_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action>(actions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.ActionOrBuilder> + actionsBuilder_; + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getActionsList() { + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getActionsCount() { + if (actionsBuilder_ == null) { + return actions_.size(); + } else { + return actionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action getActions(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setActions( + int index, com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + onChanged(); + } else { + actionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setActions( + int index, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.set(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addActions( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + onChanged(); + } else { + actionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addActions( + int index, com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(index, value); + onChanged(); + } else { + actionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addActions( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addActions( + int index, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllActions( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action> + values) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); + onChanged(); + } else { + actionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearActions() { + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + actionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeActions(int index) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.remove(index); + onChanged(); + } else { + actionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder + getActionsBuilder(int index) { + return getActionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.ActionOrBuilder + getActionsOrBuilder(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.ActionOrBuilder> + getActionsOrBuilderList() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actions_); + } + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder + addActionsBuilder() { + return getActionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder + addActionsBuilder(int index) { + return getActionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Required. Actions for the tool to use.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getActionsBuilderList() { + return getActionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.ActionOrBuilder> + getActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.ActionOrBuilder>( + actions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + actions_ = null; + } + return actionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) + private static final com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectorTool 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.dialogflow.v2beta1.Tool.ConnectorTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AuthenticationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.Authentication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Config for API key auth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + * + * @return Whether the apiKeyConfig field is set. + */ + boolean hasApiKeyConfig(); + + /** + * + * + *
                                          +     * Config for API key auth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + * + * @return The apiKeyConfig. + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig getApiKeyConfig(); + + /** + * + * + *
                                          +     * Config for API key auth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder(); + + /** + * + * + *
                                          +     * Config for OAuth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + * + * @return Whether the oauthConfig field is set. + */ + boolean hasOauthConfig(); + + /** + * + * + *
                                          +     * Config for OAuth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + * + * @return The oauthConfig. + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig getOauthConfig(); + + /** + * + * + *
                                          +     * Config for OAuth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfigOrBuilder + getOauthConfigOrBuilder(); + + /** + * + * + *
                                          +     * Config for [Diglogflow service
                                          +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +     * auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + * + * @return Whether the serviceAgentAuthConfig field is set. + */ + boolean hasServiceAgentAuthConfig(); + + /** + * + * + *
                                          +     * Config for [Diglogflow service
                                          +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +     * auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + * + * @return The serviceAgentAuthConfig. + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + getServiceAgentAuthConfig(); + + /** + * + * + *
                                          +     * Config for [Diglogflow service
                                          +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +     * auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfigOrBuilder + getServiceAgentAuthConfigOrBuilder(); + + /** + * + * + *
                                          +     * Config for bearer token auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + * + * @return Whether the bearerTokenConfig field is set. + */ + boolean hasBearerTokenConfig(); + + /** + * + * + *
                                          +     * Config for bearer token auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + * + * @return The bearerTokenConfig. + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + getBearerTokenConfig(); + + /** + * + * + *
                                          +     * Config for bearer token auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfigOrBuilder + getBearerTokenConfigOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.AuthConfigCase getAuthConfigCase(); + } + + /** + * + * + *
                                          +   * Authentication information required for API calls
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.Authentication} + */ + public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication) + AuthenticationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Authentication.newBuilder() to construct. + private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Authentication() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Authentication(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.Builder.class); + } + + /** + * + * + *
                                          +     * The location of the API key in the request.
                                          +     * 
                                          + * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation} + */ + public enum RequestLocation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +       * Default value. This value is unused.
                                          +       * 
                                          + * + * REQUEST_LOCATION_UNSPECIFIED = 0; + */ + REQUEST_LOCATION_UNSPECIFIED(0), + /** + * + * + *
                                          +       * Represents the key in http header.
                                          +       * 
                                          + * + * HEADER = 1; + */ + HEADER(1), + /** + * + * + *
                                          +       * Represents the key in query string.
                                          +       * 
                                          + * + * QUERY_STRING = 2; + */ + QUERY_STRING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +       * Default value. This value is unused.
                                          +       * 
                                          + * + * REQUEST_LOCATION_UNSPECIFIED = 0; + */ + public static final int REQUEST_LOCATION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +       * Represents the key in http header.
                                          +       * 
                                          + * + * HEADER = 1; + */ + public static final int HEADER_VALUE = 1; + + /** + * + * + *
                                          +       * Represents the key in query string.
                                          +       * 
                                          + * + * QUERY_STRING = 2; + */ + public static final int QUERY_STRING_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 RequestLocation 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 RequestLocation forNumber(int value) { + switch (value) { + case 0: + return REQUEST_LOCATION_UNSPECIFIED; + case 1: + return HEADER; + case 2: + return QUERY_STRING; + 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 RequestLocation findValueByNumber(int number) { + return RequestLocation.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RequestLocation[] VALUES = values(); + + public static RequestLocation 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 RequestLocation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation) + } + + public interface ApiKeyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Required. The parameter name or the header name of the API key.
                                          +       * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
                                          +       * KEY>", "X-Api-Key" would be the parameter name.
                                          +       * 
                                          + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyName. + */ + java.lang.String getKeyName(); + + /** + * + * + *
                                          +       * Required. The parameter name or the header name of the API key.
                                          +       * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
                                          +       * KEY>", "X-Api-Key" would be the parameter name.
                                          +       * 
                                          + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyName. + */ + com.google.protobuf.ByteString getKeyNameBytes(); + + /** + * + * + *
                                          +       * Optional. The API key. If the `secret_version_for_api_key` field is
                                          +       * set, this field will be ignored.
                                          +       * 
                                          + * + * string api_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The apiKey. + */ + java.lang.String getApiKey(); + + /** + * + * + *
                                          +       * Optional. The API key. If the `secret_version_for_api_key` field is
                                          +       * set, this field will be ignored.
                                          +       * 
                                          + * + * string api_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for apiKey. + */ + com.google.protobuf.ByteString getApiKeyBytes(); + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the API key. If this field is set, the `api_key` field will be ignored.
                                          +       * Format: `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_api_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secretVersionForApiKey. + */ + java.lang.String getSecretVersionForApiKey(); + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the API key. If this field is set, the `api_key` field will be ignored.
                                          +       * Format: `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_api_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secretVersionForApiKey. + */ + com.google.protobuf.ByteString getSecretVersionForApiKeyBytes(); + + /** + * + * + *
                                          +       * Required. Key location in the request.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for requestLocation. + */ + int getRequestLocationValue(); + + /** + * + * + *
                                          +       * Required. Key location in the request.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requestLocation. + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation getRequestLocation(); + } + + /** + * + * + *
                                          +     * Config for authentication with API key.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig} + */ + public static final class ApiKeyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) + ApiKeyConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ApiKeyConfig.newBuilder() to construct. + private ApiKeyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApiKeyConfig() { + keyName_ = ""; + apiKey_ = ""; + secretVersionForApiKey_ = ""; + requestLocation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApiKeyConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.Builder.class); + } + + public static final int KEY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyName_ = ""; + + /** + * + * + *
                                          +       * Required. The parameter name or the header name of the API key.
                                          +       * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
                                          +       * KEY>", "X-Api-Key" would be the parameter name.
                                          +       * 
                                          + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyName. + */ + @java.lang.Override + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + 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(); + keyName_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Required. The parameter name or the header name of the API key.
                                          +       * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
                                          +       * KEY>", "X-Api-Key" would be the parameter name.
                                          +       * 
                                          + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_KEY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiKey_ = ""; + + /** + * + * + *
                                          +       * Optional. The API key. If the `secret_version_for_api_key` field is
                                          +       * set, this field will be ignored.
                                          +       * 
                                          + * + * string api_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The apiKey. + */ + @java.lang.Override + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + 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(); + apiKey_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Optional. The API key. If the `secret_version_for_api_key` field is
                                          +       * set, this field will be ignored.
                                          +       * 
                                          + * + * string api_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for apiKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_VERSION_FOR_API_KEY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretVersionForApiKey_ = ""; + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the API key. If this field is set, the `api_key` field will be ignored.
                                          +       * Format: `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_api_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secretVersionForApiKey. + */ + @java.lang.Override + public java.lang.String getSecretVersionForApiKey() { + java.lang.Object ref = secretVersionForApiKey_; + 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(); + secretVersionForApiKey_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the API key. If this field is set, the `api_key` field will be ignored.
                                          +       * Format: `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_api_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secretVersionForApiKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretVersionForApiKeyBytes() { + java.lang.Object ref = secretVersionForApiKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretVersionForApiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_LOCATION_FIELD_NUMBER = 3; + private int requestLocation_ = 0; + + /** + * + * + *
                                          +       * Required. Key location in the request.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for requestLocation. + */ + @java.lang.Override + public int getRequestLocationValue() { + return requestLocation_; + } + + /** + * + * + *
                                          +       * Required. Key location in the request.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requestLocation. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation + getRequestLocation() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation result = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation.forNumber( + requestLocation_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, apiKey_); + } + if (requestLocation_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation + .REQUEST_LOCATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, requestLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretVersionForApiKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secretVersionForApiKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, apiKey_); + } + if (requestLocation_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation + .REQUEST_LOCATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, requestLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretVersionForApiKey_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secretVersionForApiKey_); + } + 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.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig other = + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) obj; + + if (!getKeyName().equals(other.getKeyName())) return false; + if (!getApiKey().equals(other.getApiKey())) return false; + if (!getSecretVersionForApiKey().equals(other.getSecretVersionForApiKey())) return false; + if (requestLocation_ != other.requestLocation_) 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_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKeyName().hashCode(); + hash = (37 * hash) + API_KEY_FIELD_NUMBER; + hash = (53 * hash) + getApiKey().hashCode(); + hash = (37 * hash) + SECRET_VERSION_FOR_API_KEY_FIELD_NUMBER; + hash = (53 * hash) + getSecretVersionForApiKey().hashCode(); + hash = (37 * hash) + REQUEST_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + requestLocation_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig 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.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig 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.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * Config for authentication with API key.
                                          +       * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyName_ = ""; + apiKey_ = ""; + secretVersionForApiKey_ = ""; + requestLocation_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig build() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig result = + new com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyName_ = keyName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.apiKey_ = apiKey_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.secretVersionForApiKey_ = secretVersionForApiKey_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestLocation_ = requestLocation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance()) return this; + if (!other.getKeyName().isEmpty()) { + keyName_ = other.keyName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getApiKey().isEmpty()) { + apiKey_ = other.apiKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSecretVersionForApiKey().isEmpty()) { + secretVersionForApiKey_ = other.secretVersionForApiKey_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.requestLocation_ != 0) { + setRequestLocationValue(other.getRequestLocationValue()); + } + 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: + { + keyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + apiKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + requestLocation_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + secretVersionForApiKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + 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 keyName_ = ""; + + /** + * + * + *
                                          +         * Required. The parameter name or the header name of the API key.
                                          +         * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
                                          +         * KEY>", "X-Api-Key" would be the parameter name.
                                          +         * 
                                          + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyName. + */ + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Required. The parameter name or the header name of the API key.
                                          +         * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
                                          +         * KEY>", "X-Api-Key" would be the parameter name.
                                          +         * 
                                          + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyName. + */ + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Required. The parameter name or the header name of the API key.
                                          +         * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
                                          +         * KEY>", "X-Api-Key" would be the parameter name.
                                          +         * 
                                          + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + keyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The parameter name or the header name of the API key.
                                          +         * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
                                          +         * KEY>", "X-Api-Key" would be the parameter name.
                                          +         * 
                                          + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearKeyName() { + keyName_ = getDefaultInstance().getKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The parameter name or the header name of the API key.
                                          +         * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
                                          +         * KEY>", "X-Api-Key" would be the parameter name.
                                          +         * 
                                          + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object apiKey_ = ""; + + /** + * + * + *
                                          +         * Optional. The API key. If the `secret_version_for_api_key` field is
                                          +         * set, this field will be ignored.
                                          +         * 
                                          + * + * string api_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The apiKey. + */ + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The API key. If the `secret_version_for_api_key` field is
                                          +         * set, this field will be ignored.
                                          +         * 
                                          + * + * string api_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for apiKey. + */ + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The API key. If the `secret_version_for_api_key` field is
                                          +         * set, this field will be ignored.
                                          +         * 
                                          + * + * string api_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The API key. If the `secret_version_for_api_key` field is
                                          +         * set, this field will be ignored.
                                          +         * 
                                          + * + * string api_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearApiKey() { + apiKey_ = getDefaultInstance().getApiKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The API key. If the `secret_version_for_api_key` field is
                                          +         * set, this field will be ignored.
                                          +         * 
                                          + * + * string api_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object secretVersionForApiKey_ = ""; + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the API key. If this field is set, the `api_key` field will be ignored.
                                          +         * Format: `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_api_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secretVersionForApiKey. + */ + public java.lang.String getSecretVersionForApiKey() { + java.lang.Object ref = secretVersionForApiKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretVersionForApiKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the API key. If this field is set, the `api_key` field will be ignored.
                                          +         * Format: `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_api_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secretVersionForApiKey. + */ + public com.google.protobuf.ByteString getSecretVersionForApiKeyBytes() { + java.lang.Object ref = secretVersionForApiKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretVersionForApiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the API key. If this field is set, the `api_key` field will be ignored.
                                          +         * Format: `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_api_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The secretVersionForApiKey to set. + * @return This builder for chaining. + */ + public Builder setSecretVersionForApiKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretVersionForApiKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the API key. If this field is set, the `api_key` field will be ignored.
                                          +         * Format: `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_api_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSecretVersionForApiKey() { + secretVersionForApiKey_ = getDefaultInstance().getSecretVersionForApiKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the API key. If this field is set, the `api_key` field will be ignored.
                                          +         * Format: `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_api_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for secretVersionForApiKey to set. + * @return This builder for chaining. + */ + public Builder setSecretVersionForApiKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretVersionForApiKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int requestLocation_ = 0; + + /** + * + * + *
                                          +         * Required. Key location in the request.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for requestLocation. + */ + @java.lang.Override + public int getRequestLocationValue() { + return requestLocation_; + } + + /** + * + * + *
                                          +         * Required. Key location in the request.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for requestLocation to set. + * @return This builder for chaining. + */ + public Builder setRequestLocationValue(int value) { + requestLocation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. Key location in the request.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requestLocation. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation + getRequestLocation() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation result = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation.forNumber( + requestLocation_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +         * Required. Key location in the request.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The requestLocation to set. + * @return This builder for chaining. + */ + public Builder setRequestLocation( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + requestLocation_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. Key location in the request.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearRequestLocation() { + bitField0_ = (bitField0_ & ~0x00000008); + requestLocation_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) + private static final com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiKeyConfig 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.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Required. OAuth grant types.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for oauthGrantType. + */ + int getOauthGrantTypeValue(); + + /** + * + * + *
                                          +       * Required. OAuth grant types.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthGrantType. + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + getOauthGrantType(); + + /** + * + * + *
                                          +       * Required. The client ID from the OAuth provider.
                                          +       * 
                                          + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + + /** + * + * + *
                                          +       * Required. The client ID from the OAuth provider.
                                          +       * 
                                          + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
                                          +       * Optional. The client secret from the OAuth provider. If the
                                          +       * `secret_version_for_client_secret` field is set, this field will be
                                          +       * ignored.
                                          +       * 
                                          + * + * string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + + /** + * + * + *
                                          +       * Optional. The client secret from the OAuth provider. If the
                                          +       * `secret_version_for_client_secret` field is set, this field will be
                                          +       * ignored.
                                          +       * 
                                          + * + * string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString getClientSecretBytes(); + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the client secret. If this field is set, the `client_secret` field will
                                          +       * be ignored. Format:
                                          +       * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secretVersionForClientSecret. + */ + java.lang.String getSecretVersionForClientSecret(); + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the client secret. If this field is set, the `client_secret` field will
                                          +       * be ignored. Format:
                                          +       * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secretVersionForClientSecret. + */ + com.google.protobuf.ByteString getSecretVersionForClientSecretBytes(); + + /** + * + * + *
                                          +       * Required. The token endpoint in the OAuth provider to exchange for an
                                          +       * access token.
                                          +       * 
                                          + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tokenEndpoint. + */ + java.lang.String getTokenEndpoint(); + + /** + * + * + *
                                          +       * Required. The token endpoint in the OAuth provider to exchange for an
                                          +       * access token.
                                          +       * 
                                          + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tokenEndpoint. + */ + com.google.protobuf.ByteString getTokenEndpointBytes(); + + /** + * + * + *
                                          +       * Optional. The OAuth scopes to grant.
                                          +       * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
                                          +       * Optional. The OAuth scopes to grant.
                                          +       * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
                                          +       * Optional. The OAuth scopes to grant.
                                          +       * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
                                          +       * Optional. The OAuth scopes to grant.
                                          +       * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); + } + + /** + * + * + *
                                          +     * Config for authentication with OAuth.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig} + */ + public static final class OAuthConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) + OAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OAuthConfig.newBuilder() to construct. + private OAuthConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OAuthConfig() { + oauthGrantType_ = 0; + clientId_ = ""; + clientSecret_ = ""; + secretVersionForClientSecret_ = ""; + tokenEndpoint_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OAuthConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.Builder.class); + } + + /** + * + * + *
                                          +       * OAuth grant types. Only [client credential
                                          +       * grant](https://oauth.net/2/grant-types/client-credentials) is
                                          +       * supported.
                                          +       * 
                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType} + */ + public enum OauthGrantType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +         * Default value. This value is unused.
                                          +         * 
                                          + * + * OAUTH_GRANT_TYPE_UNSPECIFIED = 0; + */ + OAUTH_GRANT_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                          +         * Represents the [client credential
                                          +         * flow](https://oauth.net/2/grant-types/client-credentials).
                                          +         * 
                                          + * + * CLIENT_CREDENTIAL = 1; + */ + CLIENT_CREDENTIAL(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +         * Default value. This value is unused.
                                          +         * 
                                          + * + * OAUTH_GRANT_TYPE_UNSPECIFIED = 0; + */ + public static final int OAUTH_GRANT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +         * Represents the [client credential
                                          +         * flow](https://oauth.net/2/grant-types/client-credentials).
                                          +         * 
                                          + * + * CLIENT_CREDENTIAL = 1; + */ + public static final int CLIENT_CREDENTIAL_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 OauthGrantType 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 OauthGrantType forNumber(int value) { + switch (value) { + case 0: + return OAUTH_GRANT_TYPE_UNSPECIFIED; + case 1: + return CLIENT_CREDENTIAL; + 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 OauthGrantType findValueByNumber(int number) { + return OauthGrantType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final OauthGrantType[] VALUES = values(); + + public static OauthGrantType 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 OauthGrantType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType) + } + + public static final int OAUTH_GRANT_TYPE_FIELD_NUMBER = 1; + private int oauthGrantType_ = 0; + + /** + * + * + *
                                          +       * Required. OAuth grant types.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for oauthGrantType. + */ + @java.lang.Override + public int getOauthGrantTypeValue() { + return oauthGrantType_; + } + + /** + * + * + *
                                          +       * Required. OAuth grant types.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthGrantType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + getOauthGrantType() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType result = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + .forNumber(oauthGrantType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + .UNRECOGNIZED + : result; + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + + /** + * + * + *
                                          +       * Required. The client ID from the OAuth provider.
                                          +       * 
                                          + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + 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(); + clientId_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Required. The client ID from the OAuth provider.
                                          +       * 
                                          + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + + /** + * + * + *
                                          +       * Optional. The client secret from the OAuth provider. If the
                                          +       * `secret_version_for_client_secret` field is set, this field will be
                                          +       * ignored.
                                          +       * 
                                          + * + * string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + 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(); + clientSecret_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Optional. The client secret from the OAuth provider. If the
                                          +       * `secret_version_for_client_secret` field is set, this field will be
                                          +       * ignored.
                                          +       * 
                                          + * + * string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_VERSION_FOR_CLIENT_SECRET_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretVersionForClientSecret_ = ""; + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the client secret. If this field is set, the `client_secret` field will
                                          +       * be ignored. Format:
                                          +       * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secretVersionForClientSecret. + */ + @java.lang.Override + public java.lang.String getSecretVersionForClientSecret() { + java.lang.Object ref = secretVersionForClientSecret_; + 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(); + secretVersionForClientSecret_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the client secret. If this field is set, the `client_secret` field will
                                          +       * be ignored. Format:
                                          +       * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secretVersionForClientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretVersionForClientSecretBytes() { + java.lang.Object ref = secretVersionForClientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretVersionForClientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_ENDPOINT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenEndpoint_ = ""; + + /** + * + * + *
                                          +       * Required. The token endpoint in the OAuth provider to exchange for an
                                          +       * access token.
                                          +       * 
                                          + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tokenEndpoint. + */ + @java.lang.Override + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + 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(); + tokenEndpoint_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Required. The token endpoint in the OAuth provider to exchange for an
                                          +       * access token.
                                          +       * 
                                          + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tokenEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                          +       * Optional. The OAuth scopes to grant.
                                          +       * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
                                          +       * Optional. The OAuth scopes to grant.
                                          +       * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
                                          +       * Optional. The OAuth scopes to grant.
                                          +       * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
                                          +       * Optional. The OAuth scopes to grant.
                                          +       * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.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 { + if (oauthGrantType_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + .OAUTH_GRANT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, oauthGrantType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tokenEndpoint_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, scopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretVersionForClientSecret_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 6, secretVersionForClientSecret_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oauthGrantType_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + .OAUTH_GRANT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, oauthGrantType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tokenEndpoint_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretVersionForClientSecret_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 6, secretVersionForClientSecret_); + } + 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.dialogflow.v2beta1.Tool.Authentication.OAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig other = + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) obj; + + if (oauthGrantType_ != other.oauthGrantType_) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getClientSecret().equals(other.getClientSecret())) return false; + if (!getSecretVersionForClientSecret().equals(other.getSecretVersionForClientSecret())) + return false; + if (!getTokenEndpoint().equals(other.getTokenEndpoint())) return false; + if (!getScopesList().equals(other.getScopesList())) 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) + OAUTH_GRANT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + oauthGrantType_; + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + hash = (37 * hash) + SECRET_VERSION_FOR_CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getSecretVersionForClientSecret().hashCode(); + hash = (37 * hash) + TOKEN_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getTokenEndpoint().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig 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.dialogflow.v2beta1.Tool.Authentication.OAuthConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig 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.dialogflow.v2beta1.Tool.Authentication.OAuthConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * Config for authentication with OAuth.
                                          +       * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oauthGrantType_ = 0; + clientId_ = ""; + clientSecret_ = ""; + secretVersionForClientSecret_ = ""; + tokenEndpoint_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig build() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig result = + new com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.oauthGrantType_ = oauthGrantType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientSecret_ = clientSecret_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.secretVersionForClientSecret_ = secretVersionForClientSecret_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tokenEndpoint_ = tokenEndpoint_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance()) return this; + if (other.oauthGrantType_ != 0) { + setOauthGrantTypeValue(other.getOauthGrantTypeValue()); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClientSecret().isEmpty()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getSecretVersionForClientSecret().isEmpty()) { + secretVersionForClientSecret_ = other.secretVersionForClientSecret_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTokenEndpoint().isEmpty()) { + tokenEndpoint_ = other.tokenEndpoint_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000020; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + 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 8: + { + oauthGrantType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + tokenEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 42 + case 50: + { + secretVersionForClientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + 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 oauthGrantType_ = 0; + + /** + * + * + *
                                          +         * Required. OAuth grant types.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for oauthGrantType. + */ + @java.lang.Override + public int getOauthGrantTypeValue() { + return oauthGrantType_; + } + + /** + * + * + *
                                          +         * Required. OAuth grant types.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for oauthGrantType to set. + * @return This builder for chaining. + */ + public Builder setOauthGrantTypeValue(int value) { + oauthGrantType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. OAuth grant types.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthGrantType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + getOauthGrantType() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + result = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + .forNumber(oauthGrantType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +         * Required. OAuth grant types.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The oauthGrantType to set. + * @return This builder for chaining. + */ + public Builder setOauthGrantType( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + oauthGrantType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. OAuth grant types.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOauthGrantType() { + bitField0_ = (bitField0_ & ~0x00000001); + oauthGrantType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + + /** + * + * + *
                                          +         * Required. The client ID from the OAuth provider.
                                          +         * 
                                          + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Required. The client ID from the OAuth provider.
                                          +         * 
                                          + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Required. The client ID from the OAuth provider.
                                          +         * 
                                          + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The client ID from the OAuth provider.
                                          +         * 
                                          + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The client ID from the OAuth provider.
                                          +         * 
                                          + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clientSecret_ = ""; + + /** + * + * + *
                                          +         * Optional. The client secret from the OAuth provider. If the
                                          +         * `secret_version_for_client_secret` field is set, this field will be
                                          +         * ignored.
                                          +         * 
                                          + * + * string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The client secret from the OAuth provider. If the
                                          +         * `secret_version_for_client_secret` field is set, this field will be
                                          +         * ignored.
                                          +         * 
                                          + * + * string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The client secret from the OAuth provider. If the
                                          +         * `secret_version_for_client_secret` field is set, this field will be
                                          +         * ignored.
                                          +         * 
                                          + * + * string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The client secret from the OAuth provider. If the
                                          +         * `secret_version_for_client_secret` field is set, this field will be
                                          +         * ignored.
                                          +         * 
                                          + * + * string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The client secret from the OAuth provider. If the
                                          +         * `secret_version_for_client_secret` field is set, this field will be
                                          +         * ignored.
                                          +         * 
                                          + * + * string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientSecret_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object secretVersionForClientSecret_ = ""; + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the client secret. If this field is set, the `client_secret` field will
                                          +         * be ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secretVersionForClientSecret. + */ + public java.lang.String getSecretVersionForClientSecret() { + java.lang.Object ref = secretVersionForClientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretVersionForClientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the client secret. If this field is set, the `client_secret` field will
                                          +         * be ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secretVersionForClientSecret. + */ + public com.google.protobuf.ByteString getSecretVersionForClientSecretBytes() { + java.lang.Object ref = secretVersionForClientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretVersionForClientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the client secret. If this field is set, the `client_secret` field will
                                          +         * be ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The secretVersionForClientSecret to set. + * @return This builder for chaining. + */ + public Builder setSecretVersionForClientSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretVersionForClientSecret_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the client secret. If this field is set, the `client_secret` field will
                                          +         * be ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSecretVersionForClientSecret() { + secretVersionForClientSecret_ = getDefaultInstance().getSecretVersionForClientSecret(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the client secret. If this field is set, the `client_secret` field will
                                          +         * be ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for secretVersionForClientSecret to set. + * @return This builder for chaining. + */ + public Builder setSecretVersionForClientSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretVersionForClientSecret_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object tokenEndpoint_ = ""; + + /** + * + * + *
                                          +         * Required. The token endpoint in the OAuth provider to exchange for an
                                          +         * access token.
                                          +         * 
                                          + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tokenEndpoint. + */ + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Required. The token endpoint in the OAuth provider to exchange for an
                                          +         * access token.
                                          +         * 
                                          + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tokenEndpoint. + */ + public com.google.protobuf.ByteString getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Required. The token endpoint in the OAuth provider to exchange for an
                                          +         * access token.
                                          +         * 
                                          + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tokenEndpoint to set. + * @return This builder for chaining. + */ + public Builder setTokenEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenEndpoint_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The token endpoint in the OAuth provider to exchange for an
                                          +         * access token.
                                          +         * 
                                          + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTokenEndpoint() { + tokenEndpoint_ = getDefaultInstance().getTokenEndpoint(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The token endpoint in the OAuth provider to exchange for an
                                          +         * access token.
                                          +         * 
                                          + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tokenEndpoint to set. + * @return This builder for chaining. + */ + public Builder setTokenEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenEndpoint_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                                          +         * Optional. The OAuth scopes to grant.
                                          +         * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
                                          +         * Optional. The OAuth scopes to grant.
                                          +         * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
                                          +         * Optional. The OAuth scopes to grant.
                                          +         * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
                                          +         * Optional. The OAuth scopes to grant.
                                          +         * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + /** + * + * + *
                                          +         * Optional. The OAuth scopes to grant.
                                          +         * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The OAuth scopes to grant.
                                          +         * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The OAuth scopes to grant.
                                          +         * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The OAuth scopes to grant.
                                          +         * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The OAuth scopes to grant.
                                          +         * 
                                          + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) + private static final com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuthConfig 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.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ServiceAgentAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Optional. Indicate the auth token type generated from the [Diglogflow
                                          +       * service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * The generated token is sent in the Authorization header.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentAuth. + */ + int getServiceAgentAuthValue(); + + /** + * + * + *
                                          +       * Optional. Indicate the auth token type generated from the [Diglogflow
                                          +       * service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * The generated token is sent in the Authorization header.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentAuth. + */ + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth + getServiceAgentAuth(); + } + + /** + * + * + *
                                          +     * Config for auth using [Dialogflow service
                                          +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig} + */ + public static final class ServiceAgentAuthConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + ServiceAgentAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ServiceAgentAuthConfig.newBuilder() to construct. + private ServiceAgentAuthConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceAgentAuthConfig() { + serviceAgentAuth_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceAgentAuthConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .Builder.class); + } + + /** + * + * + *
                                          +       * Indicate the auth token type generated from the [Diaglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth} + */ + public enum ServiceAgentAuth implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +         * Service agent auth type unspecified. Default to ID_TOKEN.
                                          +         * 
                                          + * + * SERVICE_AGENT_AUTH_UNSPECIFIED = 0; + */ + SERVICE_AGENT_AUTH_UNSPECIFIED(0), + /** + * + * + *
                                          +         * Use [ID
                                          +         * token](https://cloud.google.com/docs/authentication/token-types#id)
                                          +         * generated from service agent. This can be used to access Cloud
                                          +         * Function and Cloud Run after you grant Invoker role to
                                          +         * `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
                                          +         * 
                                          + * + * ID_TOKEN = 1; + */ + ID_TOKEN(1), + /** + * + * + *
                                          +         * Use [access
                                          +         * token](https://cloud.google.com/docs/authentication/token-types#access)
                                          +         * generated from service agent. This can be used to access other Google
                                          +         * Cloud APIs after you grant required roles to
                                          +         * `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
                                          +         * 
                                          + * + * ACCESS_TOKEN = 2; + */ + ACCESS_TOKEN(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +         * Service agent auth type unspecified. Default to ID_TOKEN.
                                          +         * 
                                          + * + * SERVICE_AGENT_AUTH_UNSPECIFIED = 0; + */ + public static final int SERVICE_AGENT_AUTH_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +         * Use [ID
                                          +         * token](https://cloud.google.com/docs/authentication/token-types#id)
                                          +         * generated from service agent. This can be used to access Cloud
                                          +         * Function and Cloud Run after you grant Invoker role to
                                          +         * `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
                                          +         * 
                                          + * + * ID_TOKEN = 1; + */ + public static final int ID_TOKEN_VALUE = 1; + + /** + * + * + *
                                          +         * Use [access
                                          +         * token](https://cloud.google.com/docs/authentication/token-types#access)
                                          +         * generated from service agent. This can be used to access other Google
                                          +         * Cloud APIs after you grant required roles to
                                          +         * `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
                                          +         * 
                                          + * + * ACCESS_TOKEN = 2; + */ + public static final int ACCESS_TOKEN_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 ServiceAgentAuth 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 ServiceAgentAuth forNumber(int value) { + switch (value) { + case 0: + return SERVICE_AGENT_AUTH_UNSPECIFIED; + case 1: + return ID_TOKEN; + case 2: + return ACCESS_TOKEN; + 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 ServiceAgentAuth findValueByNumber(int number) { + return ServiceAgentAuth.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ServiceAgentAuth[] VALUES = values(); + + public static ServiceAgentAuth 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 ServiceAgentAuth(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth) + } + + public static final int SERVICE_AGENT_AUTH_FIELD_NUMBER = 1; + private int serviceAgentAuth_ = 0; + + /** + * + * + *
                                          +       * Optional. Indicate the auth token type generated from the [Diglogflow
                                          +       * service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * The generated token is sent in the Authorization header.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentAuth. + */ + @java.lang.Override + public int getServiceAgentAuthValue() { + return serviceAgentAuth_; + } + + /** + * + * + *
                                          +       * Optional. Indicate the auth token type generated from the [Diglogflow
                                          +       * service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * The generated token is sent in the Authorization header.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentAuth. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth + getServiceAgentAuth() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth + result = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth.forNumber(serviceAgentAuth_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth.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 (serviceAgentAuth_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth.SERVICE_AGENT_AUTH_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, serviceAgentAuth_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (serviceAgentAuth_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth.SERVICE_AGENT_AUTH_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, serviceAgentAuth_); + } + 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.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig other = + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) obj; + + if (serviceAgentAuth_ != other.serviceAgentAuth_) 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) + SERVICE_AGENT_AUTH_FIELD_NUMBER; + hash = (53 * hash) + serviceAgentAuth_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + 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.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + 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.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * Config for auth using [Dialogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAgentAuth_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + build() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig result = + new com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAgentAuth_ = serviceAgentAuth_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDefaultInstance()) return this; + if (other.serviceAgentAuth_ != 0) { + setServiceAgentAuthValue(other.getServiceAgentAuthValue()); + } + 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: + { + serviceAgentAuth_ = 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 serviceAgentAuth_ = 0; + + /** + * + * + *
                                          +         * Optional. Indicate the auth token type generated from the [Diglogflow
                                          +         * service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * The generated token is sent in the Authorization header.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentAuth. + */ + @java.lang.Override + public int getServiceAgentAuthValue() { + return serviceAgentAuth_; + } + + /** + * + * + *
                                          +         * Optional. Indicate the auth token type generated from the [Diglogflow
                                          +         * service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * The generated token is sent in the Authorization header.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for serviceAgentAuth to set. + * @return This builder for chaining. + */ + public Builder setServiceAgentAuthValue(int value) { + serviceAgentAuth_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Indicate the auth token type generated from the [Diglogflow
                                          +         * service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * The generated token is sent in the Authorization header.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentAuth. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth + getServiceAgentAuth() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth + result = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth.forNumber(serviceAgentAuth_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +         * Optional. Indicate the auth token type generated from the [Diglogflow
                                          +         * service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * The generated token is sent in the Authorization header.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The serviceAgentAuth to set. + * @return This builder for chaining. + */ + public Builder setServiceAgentAuth( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .ServiceAgentAuth + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + serviceAgentAuth_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. Indicate the auth token type generated from the [Diglogflow
                                          +         * service
                                          +         * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
                                          +         * The generated token is sent in the Authorization header.
                                          +         * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAgentAuth() { + bitField0_ = (bitField0_ & ~0x00000001); + serviceAgentAuth_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + private static final com.google.cloud.dialogflow.v2beta1.Tool.Authentication + .ServiceAgentAuthConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAgentAuthConfig 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.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BearerTokenConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Optional. The text token appended to the text `Bearer` to the request
                                          +       * Authorization header.
                                          +       * [Session parameters
                                          +       * reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
                                          +       * can be used to pass the token dynamically, e.g.
                                          +       * `$session.params.parameter-id`.
                                          +       * 
                                          + * + * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The token. + */ + java.lang.String getToken(); + + /** + * + * + *
                                          +       * Optional. The text token appended to the text `Bearer` to the request
                                          +       * Authorization header.
                                          +       * [Session parameters
                                          +       * reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
                                          +       * can be used to pass the token dynamically, e.g.
                                          +       * `$session.params.parameter-id`.
                                          +       * 
                                          + * + * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for token. + */ + com.google.protobuf.ByteString getTokenBytes(); + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the Bearer token. If this field is set, the `token` field will be
                                          +       * ignored. Format:
                                          +       * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secretVersionForToken. + */ + java.lang.String getSecretVersionForToken(); + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the Bearer token. If this field is set, the `token` field will be
                                          +       * ignored. Format:
                                          +       * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secretVersionForToken. + */ + com.google.protobuf.ByteString getSecretVersionForTokenBytes(); + } + + /** + * + * + *
                                          +     * Config for authentication using bearer token.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig} + */ + public static final class BearerTokenConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + BearerTokenConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BearerTokenConfig.newBuilder() to construct. + private BearerTokenConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BearerTokenConfig() { + token_ = ""; + secretVersionForToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BearerTokenConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.Builder + .class); + } + + public static final int TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + + /** + * + * + *
                                          +       * Optional. The text token appended to the text `Bearer` to the request
                                          +       * Authorization header.
                                          +       * [Session parameters
                                          +       * reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
                                          +       * can be used to pass the token dynamically, e.g.
                                          +       * `$session.params.parameter-id`.
                                          +       * 
                                          + * + * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Optional. The text token appended to the text `Bearer` to the request
                                          +       * Authorization header.
                                          +       * [Session parameters
                                          +       * reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
                                          +       * can be used to pass the token dynamically, e.g.
                                          +       * `$session.params.parameter-id`.
                                          +       * 
                                          + * + * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_VERSION_FOR_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretVersionForToken_ = ""; + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the Bearer token. If this field is set, the `token` field will be
                                          +       * ignored. Format:
                                          +       * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secretVersionForToken. + */ + @java.lang.Override + public java.lang.String getSecretVersionForToken() { + java.lang.Object ref = secretVersionForToken_; + 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(); + secretVersionForToken_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Optional. The name of the SecretManager secret version resource storing
                                          +       * the Bearer token. If this field is set, the `token` field will be
                                          +       * ignored. Format:
                                          +       * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +       * 
                                          + * + * + * string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secretVersionForToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretVersionForTokenBytes() { + java.lang.Object ref = secretVersionForToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretVersionForToken_ = 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.GeneratedMessageV3.isStringEmpty(token_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretVersionForToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secretVersionForToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretVersionForToken_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secretVersionForToken_); + } + 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.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig other = + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) obj; + + if (!getToken().equals(other.getToken())) return false; + if (!getSecretVersionForToken().equals(other.getSecretVersionForToken())) 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) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + SECRET_VERSION_FOR_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getSecretVersionForToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + 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.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + 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.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * Config for authentication using bearer token.
                                          +       * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = ""; + secretVersionForToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig build() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig result = + new com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = token_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.secretVersionForToken_ = secretVersionForToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .getDefaultInstance()) return this; + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSecretVersionForToken().isEmpty()) { + secretVersionForToken_ = other.secretVersionForToken_; + 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: + { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + secretVersionForToken_ = 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 token_ = ""; + + /** + * + * + *
                                          +         * Optional. The text token appended to the text `Bearer` to the request
                                          +         * Authorization header.
                                          +         * [Session parameters
                                          +         * reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
                                          +         * can be used to pass the token dynamically, e.g.
                                          +         * `$session.params.parameter-id`.
                                          +         * 
                                          + * + * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The text token appended to the text `Bearer` to the request
                                          +         * Authorization header.
                                          +         * [Session parameters
                                          +         * reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
                                          +         * can be used to pass the token dynamically, e.g.
                                          +         * `$session.params.parameter-id`.
                                          +         * 
                                          + * + * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for token. + */ + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The text token appended to the text `Bearer` to the request
                                          +         * Authorization header.
                                          +         * [Session parameters
                                          +         * reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
                                          +         * can be used to pass the token dynamically, e.g.
                                          +         * `$session.params.parameter-id`.
                                          +         * 
                                          + * + * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The text token appended to the text `Bearer` to the request
                                          +         * Authorization header.
                                          +         * [Session parameters
                                          +         * reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
                                          +         * can be used to pass the token dynamically, e.g.
                                          +         * `$session.params.parameter-id`.
                                          +         * 
                                          + * + * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The text token appended to the text `Bearer` to the request
                                          +         * Authorization header.
                                          +         * [Session parameters
                                          +         * reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)
                                          +         * can be used to pass the token dynamically, e.g.
                                          +         * `$session.params.parameter-id`.
                                          +         * 
                                          + * + * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object secretVersionForToken_ = ""; + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the Bearer token. If this field is set, the `token` field will be
                                          +         * ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secretVersionForToken. + */ + public java.lang.String getSecretVersionForToken() { + java.lang.Object ref = secretVersionForToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretVersionForToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the Bearer token. If this field is set, the `token` field will be
                                          +         * ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secretVersionForToken. + */ + public com.google.protobuf.ByteString getSecretVersionForTokenBytes() { + java.lang.Object ref = secretVersionForToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretVersionForToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the Bearer token. If this field is set, the `token` field will be
                                          +         * ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The secretVersionForToken to set. + * @return This builder for chaining. + */ + public Builder setSecretVersionForToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretVersionForToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the Bearer token. If this field is set, the `token` field will be
                                          +         * ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSecretVersionForToken() { + secretVersionForToken_ = getDefaultInstance().getSecretVersionForToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Optional. The name of the SecretManager secret version resource storing
                                          +         * the Bearer token. If this field is set, the `token` field will be
                                          +         * ignored. Format:
                                          +         * `projects/{project}/secrets/{secret}/versions/{version}`
                                          +         * 
                                          + * + * + * string secret_version_for_token = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for secretVersionForToken to set. + * @return This builder for chaining. + */ + public Builder setSecretVersionForTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretVersionForToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + private static final com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BearerTokenConfig 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.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int authConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object authConfig_; + + public enum AuthConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_KEY_CONFIG(1), + OAUTH_CONFIG(2), + SERVICE_AGENT_AUTH_CONFIG(3), + BEARER_TOKEN_CONFIG(4), + AUTHCONFIG_NOT_SET(0); + private final int value; + + private AuthConfigCase(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 AuthConfigCase valueOf(int value) { + return forNumber(value); + } + + public static AuthConfigCase forNumber(int value) { + switch (value) { + case 1: + return API_KEY_CONFIG; + case 2: + return OAUTH_CONFIG; + case 3: + return SERVICE_AGENT_AUTH_CONFIG; + case 4: + return BEARER_TOKEN_CONFIG; + case 0: + return AUTHCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public static final int API_KEY_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +     * Config for API key auth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return authConfigCase_ == 1; + } + + /** + * + * + *
                                          +     * Config for API key auth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig getApiKeyConfig() { + if (authConfigCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Config for API key auth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder() { + if (authConfigCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance(); + } + + public static final int OAUTH_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
                                          +     * Config for OAuth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + * + * @return Whether the oauthConfig field is set. + */ + @java.lang.Override + public boolean hasOauthConfig() { + return authConfigCase_ == 2; + } + + /** + * + * + *
                                          +     * Config for OAuth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + * + * @return The oauthConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig getOauthConfig() { + if (authConfigCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Config for OAuth.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfigOrBuilder + getOauthConfigOrBuilder() { + if (authConfigCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance(); + } + + public static final int SERVICE_AGENT_AUTH_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
                                          +     * Config for [Diglogflow service
                                          +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +     * auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + * + * @return Whether the serviceAgentAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAgentAuthConfig() { + return authConfigCase_ == 3; + } + + /** + * + * + *
                                          +     * Config for [Diglogflow service
                                          +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +     * auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + * + * @return The serviceAgentAuthConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + getServiceAgentAuthConfig() { + if (authConfigCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Config for [Diglogflow service
                                          +     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +     * auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfigOrBuilder + getServiceAgentAuthConfigOrBuilder() { + if (authConfigCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDefaultInstance(); + } + + public static final int BEARER_TOKEN_CONFIG_FIELD_NUMBER = 4; + + /** + * + * + *
                                          +     * Config for bearer token auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + * + * @return Whether the bearerTokenConfig field is set. + */ + @java.lang.Override + public boolean hasBearerTokenConfig() { + return authConfigCase_ == 4; + } + + /** + * + * + *
                                          +     * Config for bearer token auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + * + * @return The bearerTokenConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + getBearerTokenConfig() { + if (authConfigCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .getDefaultInstance(); + } + + /** + * + * + *
                                          +     * Config for bearer token auth.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfigOrBuilder + getBearerTokenConfigOrBuilder() { + if (authConfigCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (authConfigCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) authConfig_); + } + if (authConfigCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) authConfig_); + } + if (authConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + authConfig_); + } + if (authConfigCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + authConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (authConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) authConfig_); + } + if (authConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) authConfig_); + } + if (authConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + authConfig_); + } + if (authConfigCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + authConfig_); + } + 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.dialogflow.v2beta1.Tool.Authentication)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.Authentication other = + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication) obj; + + if (!getAuthConfigCase().equals(other.getAuthConfigCase())) return false; + switch (authConfigCase_) { + case 1: + if (!getApiKeyConfig().equals(other.getApiKeyConfig())) return false; + break; + case 2: + if (!getOauthConfig().equals(other.getOauthConfig())) return false; + break; + case 3: + if (!getServiceAgentAuthConfig().equals(other.getServiceAgentAuthConfig())) return false; + break; + case 4: + if (!getBearerTokenConfig().equals(other.getBearerTokenConfig())) 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(); + switch (authConfigCase_) { + case 1: + hash = (37 * hash) + API_KEY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getApiKeyConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + OAUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOauthConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + SERVICE_AGENT_AUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceAgentAuthConfig().hashCode(); + break; + case 4: + hash = (37 * hash) + BEARER_TOKEN_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBearerTokenConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication 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.dialogflow.v2beta1.Tool.Authentication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication 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.dialogflow.v2beta1.Tool.Authentication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Authentication information required for API calls
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.Authentication} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.Authentication) + com.google.cloud.dialogflow.v2beta1.Tool.AuthenticationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.class, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Tool.Authentication.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.clear(); + } + if (oauthConfigBuilder_ != null) { + oauthConfigBuilder_.clear(); + } + if (serviceAgentAuthConfigBuilder_ != null) { + serviceAgentAuthConfigBuilder_.clear(); + } + if (bearerTokenConfigBuilder_ != null) { + bearerTokenConfigBuilder_.clear(); + } + authConfigCase_ = 0; + authConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication build() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.Authentication result = + new com.google.cloud.dialogflow.v2beta1.Tool.Authentication(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Tool.Authentication result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication result) { + result.authConfigCase_ = authConfigCase_; + result.authConfig_ = this.authConfig_; + if (authConfigCase_ == 1 && apiKeyConfigBuilder_ != null) { + result.authConfig_ = apiKeyConfigBuilder_.build(); + } + if (authConfigCase_ == 2 && oauthConfigBuilder_ != null) { + result.authConfig_ = oauthConfigBuilder_.build(); + } + if (authConfigCase_ == 3 && serviceAgentAuthConfigBuilder_ != null) { + result.authConfig_ = serviceAgentAuthConfigBuilder_.build(); + } + if (authConfigCase_ == 4 && bearerTokenConfigBuilder_ != null) { + result.authConfig_ = bearerTokenConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool.Authentication) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool.Authentication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Tool.Authentication other) { + if (other == com.google.cloud.dialogflow.v2beta1.Tool.Authentication.getDefaultInstance()) + return this; + switch (other.getAuthConfigCase()) { + case API_KEY_CONFIG: + { + mergeApiKeyConfig(other.getApiKeyConfig()); + break; + } + case OAUTH_CONFIG: + { + mergeOauthConfig(other.getOauthConfig()); + break; + } + case SERVICE_AGENT_AUTH_CONFIG: + { + mergeServiceAgentAuthConfig(other.getServiceAgentAuthConfig()); + break; + } + case BEARER_TOKEN_CONFIG: + { + mergeBearerTokenConfig(other.getBearerTokenConfig()); + break; + } + case AUTHCONFIG_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: + { + input.readMessage(getApiKeyConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOauthConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getServiceAgentAuthConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getBearerTokenConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 4; + break; + } // case 34 + 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 authConfigCase_ = 0; + private java.lang.Object authConfig_; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public Builder clearAuthConfig() { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfigOrBuilder> + apiKeyConfigBuilder_; + + /** + * + * + *
                                          +       * Config for API key auth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return authConfigCase_ == 1; + } + + /** + * + * + *
                                          +       * Config for API key auth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + getApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + if (authConfigCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance(); + } else { + if (authConfigCase_ == 1) { + return apiKeyConfigBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Config for API key auth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + public Builder setApiKeyConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + apiKeyConfigBuilder_.setMessage(value); + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
                                          +       * Config for API key auth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + public Builder setApiKeyConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.Builder + builderForValue) { + if (apiKeyConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + apiKeyConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
                                          +       * Config for API key auth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + public Builder mergeApiKeyConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (authConfigCase_ == 1 + && authConfig_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance()) { + authConfig_ = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) + authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 1) { + apiKeyConfigBuilder_.mergeFrom(value); + } else { + apiKeyConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
                                          +       * Config for API key auth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + public Builder clearApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + } + apiKeyConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Config for API key auth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.Builder + getApiKeyConfigBuilder() { + return getApiKeyConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Config for API key auth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder() { + if ((authConfigCase_ == 1) && (apiKeyConfigBuilder_ != null)) { + return apiKeyConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Config for API key auth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig api_key_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfigOrBuilder> + getApiKeyConfigFieldBuilder() { + if (apiKeyConfigBuilder_ == null) { + if (!(authConfigCase_ == 1)) { + authConfig_ = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig + .getDefaultInstance(); + } + apiKeyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfigOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfig) + authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 1; + onChanged(); + return apiKeyConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfigOrBuilder> + oauthConfigBuilder_; + + /** + * + * + *
                                          +       * Config for OAuth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + * + * @return Whether the oauthConfig field is set. + */ + @java.lang.Override + public boolean hasOauthConfig() { + return authConfigCase_ == 2; + } + + /** + * + * + *
                                          +       * Config for OAuth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + * + * @return The oauthConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig getOauthConfig() { + if (oauthConfigBuilder_ == null) { + if (authConfigCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance(); + } else { + if (authConfigCase_ == 2) { + return oauthConfigBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Config for OAuth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + public Builder setOauthConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig value) { + if (oauthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + oauthConfigBuilder_.setMessage(value); + } + authConfigCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * Config for OAuth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + public Builder setOauthConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.Builder + builderForValue) { + if (oauthConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + oauthConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * Config for OAuth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + public Builder mergeOauthConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig value) { + if (oauthConfigBuilder_ == null) { + if (authConfigCase_ == 2 + && authConfig_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance()) { + authConfig_ = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) + authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 2) { + oauthConfigBuilder_.mergeFrom(value); + } else { + oauthConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 2; + return this; + } + + /** + * + * + *
                                          +       * Config for OAuth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + public Builder clearOauthConfig() { + if (oauthConfigBuilder_ == null) { + if (authConfigCase_ == 2) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 2) { + authConfigCase_ = 0; + authConfig_ = null; + } + oauthConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Config for OAuth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.Builder + getOauthConfigBuilder() { + return getOauthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Config for OAuth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfigOrBuilder + getOauthConfigOrBuilder() { + if ((authConfigCase_ == 2) && (oauthConfigBuilder_ != null)) { + return oauthConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Config for OAuth.
                                          +       * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig oauth_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfigOrBuilder> + getOauthConfigFieldBuilder() { + if (oauthConfigBuilder_ == null) { + if (!(authConfigCase_ == 2)) { + authConfig_ = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig + .getDefaultInstance(); + } + oauthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfigOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.OAuthConfig) authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 2; + onChanged(); + return oauthConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication + .ServiceAgentAuthConfigOrBuilder> + serviceAgentAuthConfigBuilder_; + + /** + * + * + *
                                          +       * Config for [Diglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +       * auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + * + * @return Whether the serviceAgentAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAgentAuthConfig() { + return authConfigCase_ == 3; + } + + /** + * + * + *
                                          +       * Config for [Diglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +       * auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + * + * @return The serviceAgentAuthConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + getServiceAgentAuthConfig() { + if (serviceAgentAuthConfigBuilder_ == null) { + if (authConfigCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDefaultInstance(); + } else { + if (authConfigCase_ == 3) { + return serviceAgentAuthConfigBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Config for [Diglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +       * auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + */ + public Builder setServiceAgentAuthConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig value) { + if (serviceAgentAuthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + serviceAgentAuthConfigBuilder_.setMessage(value); + } + authConfigCase_ = 3; + return this; + } + + /** + * + * + *
                                          +       * Config for [Diglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +       * auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + */ + public Builder setServiceAgentAuthConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.Builder + builderForValue) { + if (serviceAgentAuthConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + serviceAgentAuthConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 3; + return this; + } + + /** + * + * + *
                                          +       * Config for [Diglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +       * auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + */ + public Builder mergeServiceAgentAuthConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig value) { + if (serviceAgentAuthConfigBuilder_ == null) { + if (authConfigCase_ == 3 + && authConfig_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDefaultInstance()) { + authConfig_ = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication + .ServiceAgentAuthConfig) + authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 3) { + serviceAgentAuthConfigBuilder_.mergeFrom(value); + } else { + serviceAgentAuthConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 3; + return this; + } + + /** + * + * + *
                                          +       * Config for [Diglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +       * auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + */ + public Builder clearServiceAgentAuthConfig() { + if (serviceAgentAuthConfigBuilder_ == null) { + if (authConfigCase_ == 3) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 3) { + authConfigCase_ = 0; + authConfig_ = null; + } + serviceAgentAuthConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Config for [Diglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +       * auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig.Builder + getServiceAgentAuthConfigBuilder() { + return getServiceAgentAuthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Config for [Diglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +       * auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfigOrBuilder + getServiceAgentAuthConfigOrBuilder() { + if ((authConfigCase_ == 3) && (serviceAgentAuthConfigBuilder_ != null)) { + return serviceAgentAuthConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Config for [Diglogflow service
                                          +       * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
                                          +       * auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication + .ServiceAgentAuthConfigOrBuilder> + getServiceAgentAuthConfigFieldBuilder() { + if (serviceAgentAuthConfigBuilder_ == null) { + if (!(authConfigCase_ == 3)) { + authConfig_ = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .getDefaultInstance(); + } + serviceAgentAuthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig + .Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication + .ServiceAgentAuthConfigOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.ServiceAgentAuthConfig) + authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 3; + onChanged(); + return serviceAgentAuthConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfigOrBuilder> + bearerTokenConfigBuilder_; + + /** + * + * + *
                                          +       * Config for bearer token auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + * + * @return Whether the bearerTokenConfig field is set. + */ + @java.lang.Override + public boolean hasBearerTokenConfig() { + return authConfigCase_ == 4; + } + + /** + * + * + *
                                          +       * Config for bearer token auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + * + * @return The bearerTokenConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + getBearerTokenConfig() { + if (bearerTokenConfigBuilder_ == null) { + if (authConfigCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .getDefaultInstance(); + } else { + if (authConfigCase_ == 4) { + return bearerTokenConfigBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Config for bearer token auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + */ + public Builder setBearerTokenConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig value) { + if (bearerTokenConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + bearerTokenConfigBuilder_.setMessage(value); + } + authConfigCase_ = 4; + return this; + } + + /** + * + * + *
                                          +       * Config for bearer token auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + */ + public Builder setBearerTokenConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.Builder + builderForValue) { + if (bearerTokenConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + bearerTokenConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 4; + return this; + } + + /** + * + * + *
                                          +       * Config for bearer token auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + */ + public Builder mergeBearerTokenConfig( + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig value) { + if (bearerTokenConfigBuilder_ == null) { + if (authConfigCase_ == 4 + && authConfig_ + != com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .getDefaultInstance()) { + authConfig_ = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 4) { + bearerTokenConfigBuilder_.mergeFrom(value); + } else { + bearerTokenConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 4; + return this; + } + + /** + * + * + *
                                          +       * Config for bearer token auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + */ + public Builder clearBearerTokenConfig() { + if (bearerTokenConfigBuilder_ == null) { + if (authConfigCase_ == 4) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 4) { + authConfigCase_ = 0; + authConfig_ = null; + } + bearerTokenConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Config for bearer token auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.Builder + getBearerTokenConfigBuilder() { + return getBearerTokenConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * Config for bearer token auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfigOrBuilder + getBearerTokenConfigOrBuilder() { + if ((authConfigCase_ == 4) && (bearerTokenConfigBuilder_ != null)) { + return bearerTokenConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + authConfig_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +       * Config for bearer token auth.
                                          +       * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig bearer_token_config = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfigOrBuilder> + getBearerTokenConfigFieldBuilder() { + if (bearerTokenConfigBuilder_ == null) { + if (!(authConfigCase_ == 4)) { + authConfig_ = + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig + .getDefaultInstance(); + } + bearerTokenConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.Authentication + .BearerTokenConfigOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfig) + authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 4; + onChanged(); + return bearerTokenConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.Authentication) + private static final com.google.cloud.dialogflow.v2beta1.Tool.Authentication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool.Authentication(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.Authentication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication 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.dialogflow.v2beta1.Tool.Authentication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TLSConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.TLSConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getCaCertsList(); + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert getCaCerts(int index); + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getCaCertsCount(); + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getCaCertsOrBuilderList(); + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertOrBuilder getCaCertsOrBuilder( + int index); + } + + /** + * + * + *
                                          +   * The TLS configuration.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.TLSConfig} + */ + public static final class TLSConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.TLSConfig) + TLSConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TLSConfig.newBuilder() to construct. + private TLSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TLSConfig() { + caCerts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TLSConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.Builder.class); + } + + public interface CACertOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * Required. The name of the allowed custom CA certificates. This
                                          +       * can be used to disambiguate the custom CA certificates.
                                          +       * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                          +       * Required. The name of the allowed custom CA certificates. This
                                          +       * can be used to disambiguate the custom CA certificates.
                                          +       * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                          +       * Required. The allowed custom CA certificates (in DER format) for
                                          +       * HTTPS verification. This overrides the default SSL trust store. If this
                                          +       * is empty or unspecified, Dialogflow will use Google's default trust
                                          +       * store to verify certificates. N.B. Make sure the HTTPS server
                                          +       * certificates are signed with "subject alt name". For instance a
                                          +       * certificate can be self-signed using the following command,
                                          +       * ```
                                          +       *    openssl x509 -req -days 200 -in example.com.csr \
                                          +       *      -signkey example.com.key \
                                          +       *      -out example.com.crt \
                                          +       *      -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
                                          +       * ```
                                          +       * 
                                          + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cert. + */ + com.google.protobuf.ByteString getCert(); + } + + /** + * + * + *
                                          +     * The CA certificate.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert} + */ + public static final class CACert extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert) + CACertOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CACert.newBuilder() to construct. + private CACert(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CACert() { + displayName_ = ""; + cert_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CACert(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.class, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +       * Required. The name of the allowed custom CA certificates. This
                                          +       * can be used to disambiguate the custom CA certificates.
                                          +       * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * Required. The name of the allowed custom CA certificates. This
                                          +       * can be used to disambiguate the custom CA certificates.
                                          +       * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERT_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
                                          +       * Required. The allowed custom CA certificates (in DER format) for
                                          +       * HTTPS verification. This overrides the default SSL trust store. If this
                                          +       * is empty or unspecified, Dialogflow will use Google's default trust
                                          +       * store to verify certificates. N.B. Make sure the HTTPS server
                                          +       * certificates are signed with "subject alt name". For instance a
                                          +       * certificate can be self-signed using the following command,
                                          +       * ```
                                          +       *    openssl x509 -req -days 200 -in example.com.csr \
                                          +       *      -signkey example.com.key \
                                          +       *      -out example.com.crt \
                                          +       *      -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
                                          +       * ```
                                          +       * 
                                          + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!cert_.isEmpty()) { + output.writeBytes(2, cert_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!cert_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, cert_); + } + 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.dialogflow.v2beta1.Tool.TLSConfig.CACert)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert other = + (com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getCert().equals(other.getCert())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CERT_FIELD_NUMBER; + hash = (53 * hash) + getCert().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert 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.dialogflow.v2beta1.Tool.TLSConfig.CACert parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert 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.dialogflow.v2beta1.Tool.TLSConfig.CACert parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * The CA certificate.
                                          +       * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert) + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.class, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + cert_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert build() { + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert result = + new com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cert_ = cert_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getCert() != com.google.protobuf.ByteString.EMPTY) { + setCert(other.getCert()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + cert_ = input.readBytes(); + 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 displayName_ = ""; + + /** + * + * + *
                                          +         * Required. The name of the allowed custom CA certificates. This
                                          +         * can be used to disambiguate the custom CA certificates.
                                          +         * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * Required. The name of the allowed custom CA certificates. This
                                          +         * can be used to disambiguate the custom CA certificates.
                                          +         * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * Required. The name of the allowed custom CA certificates. This
                                          +         * can be used to disambiguate the custom CA certificates.
                                          +         * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The name of the allowed custom CA certificates. This
                                          +         * can be used to disambiguate the custom CA certificates.
                                          +         * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The name of the allowed custom CA certificates. This
                                          +         * can be used to disambiguate the custom CA certificates.
                                          +         * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
                                          +         * Required. The allowed custom CA certificates (in DER format) for
                                          +         * HTTPS verification. This overrides the default SSL trust store. If this
                                          +         * is empty or unspecified, Dialogflow will use Google's default trust
                                          +         * store to verify certificates. N.B. Make sure the HTTPS server
                                          +         * certificates are signed with "subject alt name". For instance a
                                          +         * certificate can be self-signed using the following command,
                                          +         * ```
                                          +         *    openssl x509 -req -days 200 -in example.com.csr \
                                          +         *      -signkey example.com.key \
                                          +         *      -out example.com.crt \
                                          +         *      -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
                                          +         * ```
                                          +         * 
                                          + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } + + /** + * + * + *
                                          +         * Required. The allowed custom CA certificates (in DER format) for
                                          +         * HTTPS verification. This overrides the default SSL trust store. If this
                                          +         * is empty or unspecified, Dialogflow will use Google's default trust
                                          +         * store to verify certificates. N.B. Make sure the HTTPS server
                                          +         * certificates are signed with "subject alt name". For instance a
                                          +         * certificate can be self-signed using the following command,
                                          +         * ```
                                          +         *    openssl x509 -req -days 200 -in example.com.csr \
                                          +         *      -signkey example.com.key \
                                          +         *      -out example.com.crt \
                                          +         *      -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
                                          +         * ```
                                          +         * 
                                          + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The cert to set. + * @return This builder for chaining. + */ + public Builder setCert(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + cert_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * Required. The allowed custom CA certificates (in DER format) for
                                          +         * HTTPS verification. This overrides the default SSL trust store. If this
                                          +         * is empty or unspecified, Dialogflow will use Google's default trust
                                          +         * store to verify certificates. N.B. Make sure the HTTPS server
                                          +         * certificates are signed with "subject alt name". For instance a
                                          +         * certificate can be self-signed using the following command,
                                          +         * ```
                                          +         *    openssl x509 -req -days 200 -in example.com.csr \
                                          +         *      -signkey example.com.key \
                                          +         *      -out example.com.crt \
                                          +         *      -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
                                          +         * ```
                                          +         * 
                                          + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCert() { + bitField0_ = (bitField0_ & ~0x00000002); + cert_ = getDefaultInstance().getCert(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert) + private static final com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CACert 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.dialogflow.v2beta1.Tool.TLSConfig.CACert getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CA_CERTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List caCerts_; + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getCaCertsList() { + return caCerts_; + } + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertOrBuilder> + getCaCertsOrBuilderList() { + return caCerts_; + } + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getCaCertsCount() { + return caCerts_.size(); + } + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert getCaCerts(int index) { + return caCerts_.get(index); + } + + /** + * + * + *
                                          +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +     * verification.
                                          +     * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertOrBuilder getCaCertsOrBuilder( + int index) { + return caCerts_.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 < caCerts_.size(); i++) { + output.writeMessage(1, caCerts_.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 < caCerts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, caCerts_.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.cloud.dialogflow.v2beta1.Tool.TLSConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig other = + (com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig) obj; + + if (!getCaCertsList().equals(other.getCaCertsList())) 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 (getCaCertsCount() > 0) { + hash = (37 * hash) + CA_CERTS_FIELD_NUMBER; + hash = (53 * hash) + getCaCertsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig 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.dialogflow.v2beta1.Tool.TLSConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig 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.dialogflow.v2beta1.Tool.TLSConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * The TLS configuration.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.TLSConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.TLSConfig) + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (caCertsBuilder_ == null) { + caCerts_ = java.util.Collections.emptyList(); + } else { + caCerts_ = null; + caCertsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig build() { + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig result = + new com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig result) { + if (caCertsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + caCerts_ = java.util.Collections.unmodifiableList(caCerts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.caCerts_ = caCerts_; + } else { + result.caCerts_ = caCertsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig other) { + if (other == com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.getDefaultInstance()) + return this; + if (caCertsBuilder_ == null) { + if (!other.caCerts_.isEmpty()) { + if (caCerts_.isEmpty()) { + caCerts_ = other.caCerts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCaCertsIsMutable(); + caCerts_.addAll(other.caCerts_); + } + onChanged(); + } + } else { + if (!other.caCerts_.isEmpty()) { + if (caCertsBuilder_.isEmpty()) { + caCertsBuilder_.dispose(); + caCertsBuilder_ = null; + caCerts_ = other.caCerts_; + bitField0_ = (bitField0_ & ~0x00000001); + caCertsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCaCertsFieldBuilder() + : null; + } else { + caCertsBuilder_.addAllMessages(other.caCerts_); + } + } + } + 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.dialogflow.v2beta1.Tool.TLSConfig.CACert m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.parser(), + extensionRegistry); + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(m); + } else { + caCertsBuilder_.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 caCerts_ = + java.util.Collections.emptyList(); + + private void ensureCaCertsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + caCerts_ = + new java.util.ArrayList( + caCerts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertOrBuilder> + caCertsBuilder_; + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getCaCertsList() { + if (caCertsBuilder_ == null) { + return java.util.Collections.unmodifiableList(caCerts_); + } else { + return caCertsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getCaCertsCount() { + if (caCertsBuilder_ == null) { + return caCerts_.size(); + } else { + return caCertsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert getCaCerts(int index) { + if (caCertsBuilder_ == null) { + return caCerts_.get(index); + } else { + return caCertsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCaCerts( + int index, com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.set(index, value); + onChanged(); + } else { + caCertsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCaCerts( + int index, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.set(index, builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCaCerts(com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.add(value); + onChanged(); + } else { + caCertsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCaCerts( + int index, com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.add(index, value); + onChanged(); + } else { + caCertsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCaCerts( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCaCerts( + int index, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(index, builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllCaCerts( + java.lang.Iterable + values) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCerts_); + onChanged(); + } else { + caCertsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCaCerts() { + if (caCertsBuilder_ == null) { + caCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + caCertsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeCaCerts(int index) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.remove(index); + onChanged(); + } else { + caCertsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder getCaCertsBuilder( + int index) { + return getCaCertsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertOrBuilder getCaCertsOrBuilder( + int index) { + if (caCertsBuilder_ == null) { + return caCerts_.get(index); + } else { + return caCertsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertOrBuilder> + getCaCertsOrBuilderList() { + if (caCertsBuilder_ != null) { + return caCertsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(caCerts_); + } + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder addCaCertsBuilder() { + return getCaCertsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder addCaCertsBuilder( + int index) { + return getCaCertsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.getDefaultInstance()); + } + + /** + * + * + *
                                          +       * Required. Specifies a list of allowed custom CA certificates for HTTPS
                                          +       * verification.
                                          +       * 
                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getCaCertsBuilderList() { + return getCaCertsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertOrBuilder> + getCaCertsFieldBuilder() { + if (caCertsBuilder_ == null) { + caCertsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACert.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertOrBuilder>( + caCerts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + caCerts_ = null; + } + return caCertsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.TLSConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.TLSConfig) + private static final com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.TLSConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TLSConfig 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.dialogflow.v2beta1.Tool.TLSConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ServiceDirectoryConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Required. The name of [Service
                                          +     * Directory](https://cloud.google.com/service-directory) service.
                                          +     * Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
                                          +     * `LocationID` of the service directory must be the same as the location
                                          +     * of the tool.
                                          +     * 
                                          + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + java.lang.String getService(); + + /** + * + * + *
                                          +     * Required. The name of [Service
                                          +     * Directory](https://cloud.google.com/service-directory) service.
                                          +     * Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
                                          +     * `LocationID` of the service directory must be the same as the location
                                          +     * of the tool.
                                          +     * 
                                          + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + com.google.protobuf.ByteString getServiceBytes(); + } + + /** + * + * + *
                                          +   * Configuration for tools using Service Directory.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig} + */ + public static final class ServiceDirectoryConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig) + ServiceDirectoryConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ServiceDirectoryConfig.newBuilder() to construct. + private ServiceDirectoryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceDirectoryConfig() { + service_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceDirectoryConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; + + /** + * + * + *
                                          +     * Required. The name of [Service
                                          +     * Directory](https://cloud.google.com/service-directory) service.
                                          +     * Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
                                          +     * `LocationID` of the service directory must be the same as the location
                                          +     * of the tool.
                                          +     * 
                                          + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + 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(); + service_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Required. The name of [Service
                                          +     * Directory](https://cloud.google.com/service-directory) service.
                                          +     * Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
                                          +     * `LocationID` of the service directory must be the same as the location
                                          +     * of the tool.
                                          +     * 
                                          + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = 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.GeneratedMessageV3.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + 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.dialogflow.v2beta1.Tool.ServiceDirectoryConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig other = + (com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig) obj; + + if (!getService().equals(other.getService())) 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) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig 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.dialogflow.v2beta1.Tool.ServiceDirectoryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig 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.dialogflow.v2beta1.Tool.ServiceDirectoryConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Configuration for tools using Service Directory.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig) + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.class, + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + service_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig build() { + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig result = + new com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.service_ = service_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig.getDefaultInstance()) + return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + 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: + { + service_ = 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 service_ = ""; + + /** + * + * + *
                                          +       * Required. The name of [Service
                                          +       * Directory](https://cloud.google.com/service-directory) service.
                                          +       * Format:
                                          +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
                                          +       * `LocationID` of the service directory must be the same as the location
                                          +       * of the tool.
                                          +       * 
                                          + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Required. The name of [Service
                                          +       * Directory](https://cloud.google.com/service-directory) service.
                                          +       * Format:
                                          +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
                                          +       * `LocationID` of the service directory must be the same as the location
                                          +       * of the tool.
                                          +       * 
                                          + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Required. The name of [Service
                                          +       * Directory](https://cloud.google.com/service-directory) service.
                                          +       * Format:
                                          +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
                                          +       * `LocationID` of the service directory must be the same as the location
                                          +       * of the tool.
                                          +       * 
                                          + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The name of [Service
                                          +       * Directory](https://cloud.google.com/service-directory) service.
                                          +       * Format:
                                          +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
                                          +       * `LocationID` of the service directory must be the same as the location
                                          +       * of the tool.
                                          +       * 
                                          + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearService() { + service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Required. The name of [Service
                                          +       * Directory](https://cloud.google.com/service-directory) service.
                                          +       * Format:
                                          +       * `projects/<ProjectID>/locations/<LocationID>/namespaces/<NamespaceID>/services/<ServiceID>`.
                                          +       * `LocationID` of the service directory must be the same as the location
                                          +       * of the tool.
                                          +       * 
                                          + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig) + private static final com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceDirectoryConfig 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.dialogflow.v2beta1.Tool.ServiceDirectoryConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int specificationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object specification_; + + public enum SpecificationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated + EXTENSION_SPEC(4), + FUNCTION_SPEC(13), + CONNECTOR_SPEC(18), + OPEN_API_SPEC(20), + SPECIFICATION_NOT_SET(0); + private final int value; + + private SpecificationCase(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 SpecificationCase valueOf(int value) { + return forNumber(value); + } + + public static SpecificationCase forNumber(int value) { + switch (value) { + case 4: + return EXTENSION_SPEC; + case 13: + return FUNCTION_SPEC; + case 18: + return CONNECTOR_SPEC; + case 20: + return OPEN_API_SPEC; + case 0: + return SPECIFICATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SpecificationCase getSpecificationCase() { + return SpecificationCase.forNumber(specificationCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +   * Output only. Identifier. The resource name of the tool. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
                                          +   * Output only. Identifier. The resource name of the tool. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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 TOOL_KEY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolKey_ = ""; + + /** + * + * + *
                                          +   * Required. A human readable short name of the tool, which should be unique
                                          +   * within the project. It should only contain letters, numbers, and
                                          +   * underscores, and it will be used by LLM to identify the tool.
                                          +   * 
                                          + * + * string tool_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolKey. + */ + @java.lang.Override + public java.lang.String getToolKey() { + java.lang.Object ref = toolKey_; + 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(); + toolKey_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Required. A human readable short name of the tool, which should be unique
                                          +   * within the project. It should only contain letters, numbers, and
                                          +   * underscores, and it will be used by LLM to identify the tool.
                                          +   * 
                                          + * + * string tool_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolKeyBytes() { + java.lang.Object ref = toolKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +   * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +   * 
                                          + * + * string display_name = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +   * 
                                          + * + * string display_name = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                          +   * Optional. A human readable description of the tool.
                                          +   * 
                                          + * + * string description = 3 [(.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 human readable description of the tool.
                                          +   * 
                                          + * + * string description = 3 [(.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 ACTION_CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 17; + + private static final class ActionConfirmationRequirementDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_ActionConfirmationRequirementEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + actionConfirmationRequirement_; + + private com.google.protobuf.MapField + internalGetActionConfirmationRequirement() { + if (actionConfirmationRequirement_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ActionConfirmationRequirementDefaultEntryHolder.defaultEntry); + } + return actionConfirmationRequirement_; + } + + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> + actionConfirmationRequirementValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .internalGetValueMap(), + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> + internalGetAdaptedActionConfirmationRequirementMap( + java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement, + java.lang.Integer>(map, actionConfirmationRequirementValueConverter); + } + + public int getActionConfirmationRequirementCount() { + return internalGetActionConfirmationRequirement().getMap().size(); + } + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsActionConfirmationRequirement(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetActionConfirmationRequirement().getMap().containsKey(key); + } + + /** Use {@link #getActionConfirmationRequirementMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> + getActionConfirmationRequirement() { + return getActionConfirmationRequirementMap(); + } + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> + getActionConfirmationRequirementMap() { + return internalGetAdaptedActionConfirmationRequirementMap( + internalGetActionConfirmationRequirement().getMap()); + } + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getActionConfirmationRequirementOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetActionConfirmationRequirement().getMap(); + return map.containsKey(key) + ? actionConfirmationRequirementValueConverter.doForward(map.get(key)) + : defaultValue; + } + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getActionConfirmationRequirementOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetActionConfirmationRequirement().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return actionConfirmationRequirementValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getActionConfirmationRequirementValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getActionConfirmationRequirementValue() { + return getActionConfirmationRequirementValueMap(); + } + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getActionConfirmationRequirementValueMap() { + return internalGetActionConfirmationRequirement().getMap(); + } + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getActionConfirmationRequirementValueOrDefault( + java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetActionConfirmationRequirement().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getActionConfirmationRequirementValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetActionConfirmationRequirement().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int EXTENSION_SPEC_FIELD_NUMBER = 4; + + /** + * + * + *
                                          +   * Vertex extension tool specification.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + * + * @deprecated google.cloud.dialogflow.v2beta1.Tool.extension_spec is deprecated. See + * google/cloud/dialogflow/v2beta1/tool.proto;l=563 + * @return Whether the extensionSpec field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasExtensionSpec() { + return specificationCase_ == 4; + } + + /** + * + * + *
                                          +   * Vertex extension tool specification.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + * + * @deprecated google.cloud.dialogflow.v2beta1.Tool.extension_spec is deprecated. See + * google/cloud/dialogflow/v2beta1/tool.proto;l=563 + * @return The extensionSpec. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool getExtensionSpec() { + if (specificationCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Vertex extension tool specification.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.Tool.ExtensionToolOrBuilder + getExtensionSpecOrBuilder() { + if (specificationCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.getDefaultInstance(); + } + + public static final int FUNCTION_SPEC_FIELD_NUMBER = 13; + + /** + * + * + *
                                          +   * Client side executed function specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + * + * @return Whether the functionSpec field is set. + */ + @java.lang.Override + public boolean hasFunctionSpec() { + return specificationCase_ == 13; + } + + /** + * + * + *
                                          +   * Client side executed function specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + * + * @return The functionSpec. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool getFunctionSpec() { + if (specificationCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Client side executed function specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.FunctionToolOrBuilder getFunctionSpecOrBuilder() { + if (specificationCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.getDefaultInstance(); + } + + public static final int CONNECTOR_SPEC_FIELD_NUMBER = 18; + + /** + * + * + *
                                          +   * Integration connectors tool specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + * + * @return Whether the connectorSpec field is set. + */ + @java.lang.Override + public boolean hasConnectorSpec() { + return specificationCase_ == 18; + } + + /** + * + * + *
                                          +   * Integration connectors tool specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + * + * @return The connectorSpec. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool getConnectorSpec() { + if (specificationCase_ == 18) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Integration connectors tool specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorToolOrBuilder + getConnectorSpecOrBuilder() { + if (specificationCase_ == 18) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.getDefaultInstance(); + } + + public static final int OPEN_API_SPEC_FIELD_NUMBER = 20; + + /** + * + * + *
                                          +   * OpenAPI tool.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + * + * @return Whether the openApiSpec field is set. + */ + @java.lang.Override + public boolean hasOpenApiSpec() { + return specificationCase_ == 20; + } + + /** + * + * + *
                                          +   * OpenAPI tool.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + * + * @return The openApiSpec. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool getOpenApiSpec() { + if (specificationCase_ == 20) { + return (com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * OpenAPI tool.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.OpenApiToolOrBuilder getOpenApiSpecOrBuilder() { + if (specificationCase_ == 20) { + return (com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.getDefaultInstance(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                          +   * Output only. Creation time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Creation time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Creation time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 5 [(.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 = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                          +   * Output only. Update time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp update_time = 6 [(.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. Update time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp update_time = 6 [(.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. Update time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp update_time = 6 [(.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 SATISFIES_PZS_FIELD_NUMBER = 14; + private boolean satisfiesPzs_ = false; + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Separation
                                          +   * status of the tool. If the field is absent, it means the status is unknown.
                                          +   * 
                                          + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Separation
                                          +   * status of the tool. If the field is absent, it means the status is unknown.
                                          +   * 
                                          + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 15; + private boolean satisfiesPzi_ = false; + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Isolation status
                                          +   * of the tool. If the field is absent, it means the status is unknown.
                                          +   * 
                                          + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Isolation status
                                          +   * of the tool. If the field is absent, it means the status is unknown.
                                          +   * 
                                          + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toolKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (specificationCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) specification_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (specificationCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) specification_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(14, satisfiesPzs_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(15, satisfiesPzi_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetActionConfirmationRequirement(), + ActionConfirmationRequirementDefaultEntryHolder.defaultEntry, + 17); + if (specificationCase_ == 18) { + output.writeMessage( + 18, (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) specification_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, displayName_); + } + if (specificationCase_ == 20) { + output.writeMessage( + 20, (com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) specification_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toolKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (specificationCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) specification_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (specificationCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) specification_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, satisfiesPzs_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, satisfiesPzi_); + } + for (java.util.Map.Entry entry : + internalGetActionConfirmationRequirement().getMap().entrySet()) { + com.google.protobuf.MapEntry + actionConfirmationRequirement__ = + ActionConfirmationRequirementDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, actionConfirmationRequirement__); + } + if (specificationCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) specification_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, displayName_); + } + if (specificationCase_ == 20) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, (com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) specification_); + } + 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.dialogflow.v2beta1.Tool)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Tool other = (com.google.cloud.dialogflow.v2beta1.Tool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getToolKey().equals(other.getToolKey())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!internalGetActionConfirmationRequirement() + .equals(other.internalGetActionConfirmationRequirement())) 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 (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; + if (hasSatisfiesPzs()) { + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + } + if (hasSatisfiesPzi() != other.hasSatisfiesPzi()) return false; + if (hasSatisfiesPzi()) { + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; + } + if (!getSpecificationCase().equals(other.getSpecificationCase())) return false; + switch (specificationCase_) { + case 4: + if (!getExtensionSpec().equals(other.getExtensionSpec())) return false; + break; + case 13: + if (!getFunctionSpec().equals(other.getFunctionSpec())) return false; + break; + case 18: + if (!getConnectorSpec().equals(other.getConnectorSpec())) return false; + break; + case 20: + if (!getOpenApiSpec().equals(other.getOpenApiSpec())) 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(); + hash = (37 * hash) + TOOL_KEY_FIELD_NUMBER; + hash = (53 * hash) + getToolKey().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (!internalGetActionConfirmationRequirement().getMap().isEmpty()) { + hash = (37 * hash) + ACTION_CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + internalGetActionConfirmationRequirement().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 (hasSatisfiesPzs()) { + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + } + if (hasSatisfiesPzi()) { + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); + } + switch (specificationCase_) { + case 4: + hash = (37 * hash) + EXTENSION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getExtensionSpec().hashCode(); + break; + case 13: + hash = (37 * hash) + FUNCTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getFunctionSpec().hashCode(); + break; + case 18: + hash = (37 * hash) + CONNECTOR_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getConnectorSpec().hashCode(); + break; + case 20: + hash = (37 * hash) + OPEN_API_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getOpenApiSpec().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Tool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool 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.dialogflow.v2beta1.Tool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool 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.dialogflow.v2beta1.Tool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Tool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Represents a tool.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Tool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Tool) + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 17: + return internalGetActionConfirmationRequirement(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 17: + return internalGetMutableActionConfirmationRequirement(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Tool.class, + com.google.cloud.dialogflow.v2beta1.Tool.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Tool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + toolKey_ = ""; + displayName_ = ""; + description_ = ""; + internalGetMutableActionConfirmationRequirement().clear(); + if (extensionSpecBuilder_ != null) { + extensionSpecBuilder_.clear(); + } + if (functionSpecBuilder_ != null) { + functionSpecBuilder_.clear(); + } + if (connectorSpecBuilder_ != null) { + connectorSpecBuilder_.clear(); + } + if (openApiSpecBuilder_ != null) { + openApiSpecBuilder_.clear(); + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + satisfiesPzs_ = false; + satisfiesPzi_ = false; + specificationCase_ = 0; + specification_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool build() { + com.google.cloud.dialogflow.v2beta1.Tool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool buildPartial() { + com.google.cloud.dialogflow.v2beta1.Tool result = + new com.google.cloud.dialogflow.v2beta1.Tool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Tool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolKey_ = toolKey_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.actionConfirmationRequirement_ = internalGetActionConfirmationRequirement(); + result.actionConfirmationRequirement_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.Tool result) { + result.specificationCase_ = specificationCase_; + result.specification_ = this.specification_; + if (specificationCase_ == 4 && extensionSpecBuilder_ != null) { + result.specification_ = extensionSpecBuilder_.build(); + } + if (specificationCase_ == 13 && functionSpecBuilder_ != null) { + result.specification_ = functionSpecBuilder_.build(); + } + if (specificationCase_ == 18 && connectorSpecBuilder_ != null) { + result.specification_ = connectorSpecBuilder_.build(); + } + if (specificationCase_ == 20 && openApiSpecBuilder_ != null) { + result.specification_ = openApiSpecBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Tool) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Tool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Tool other) { + if (other == com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getToolKey().isEmpty()) { + toolKey_ = other.toolKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableActionConfirmationRequirement() + .mergeFrom(other.internalGetActionConfirmationRequirement()); + bitField0_ |= 0x00000010; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasSatisfiesPzs()) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.hasSatisfiesPzi()) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } + switch (other.getSpecificationCase()) { + case EXTENSION_SPEC: + { + mergeExtensionSpec(other.getExtensionSpec()); + break; + } + case FUNCTION_SPEC: + { + mergeFunctionSpec(other.getFunctionSpec()); + break; + } + case CONNECTOR_SPEC: + { + mergeConnectorSpec(other.getConnectorSpec()); + break; + } + case OPEN_API_SPEC: + { + mergeOpenApiSpec(other.getOpenApiSpec()); + break; + } + case SPECIFICATION_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_ |= 0x00000001; + break; + } // case 10 + case 18: + { + toolKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage(getExtensionSpecFieldBuilder().getBuilder(), extensionRegistry); + specificationCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 50 + case 106: + { + input.readMessage(getFunctionSpecFieldBuilder().getBuilder(), extensionRegistry); + specificationCase_ = 13; + break; + } // case 106 + case 112: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 112 + case 120: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 120 + case 138: + { + com.google.protobuf.MapEntry + actionConfirmationRequirement__ = + input.readMessage( + ActionConfirmationRequirementDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableActionConfirmationRequirement() + .getMutableMap() + .put( + actionConfirmationRequirement__.getKey(), + actionConfirmationRequirement__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 138 + case 146: + { + input.readMessage(getConnectorSpecFieldBuilder().getBuilder(), extensionRegistry); + specificationCase_ = 18; + break; + } // case 146 + case 154: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 154 + case 162: + { + input.readMessage(getOpenApiSpecFieldBuilder().getBuilder(), extensionRegistry); + specificationCase_ = 20; + break; + } // case 162 + 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 specificationCase_ = 0; + private java.lang.Object specification_; + + public SpecificationCase getSpecificationCase() { + return SpecificationCase.forNumber(specificationCase_); + } + + public Builder clearSpecification() { + specificationCase_ = 0; + specification_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the tool. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the tool. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + } + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the tool. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + } + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the tool. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Identifier. The resource name of the tool. Format:
                                          +     * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.
                                          +     * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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 toolKey_ = ""; + + /** + * + * + *
                                          +     * Required. A human readable short name of the tool, which should be unique
                                          +     * within the project. It should only contain letters, numbers, and
                                          +     * underscores, and it will be used by LLM to identify the tool.
                                          +     * 
                                          + * + * string tool_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolKey. + */ + public java.lang.String getToolKey() { + java.lang.Object ref = toolKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Required. A human readable short name of the tool, which should be unique
                                          +     * within the project. It should only contain letters, numbers, and
                                          +     * underscores, and it will be used by LLM to identify the tool.
                                          +     * 
                                          + * + * string tool_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolKey. + */ + public com.google.protobuf.ByteString getToolKeyBytes() { + java.lang.Object ref = toolKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Required. A human readable short name of the tool, which should be unique
                                          +     * within the project. It should only contain letters, numbers, and
                                          +     * underscores, and it will be used by LLM to identify the tool.
                                          +     * 
                                          + * + * string tool_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The toolKey to set. + * @return This builder for chaining. + */ + public Builder setToolKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. A human readable short name of the tool, which should be unique
                                          +     * within the project. It should only contain letters, numbers, and
                                          +     * underscores, and it will be used by LLM to identify the tool.
                                          +     * 
                                          + * + * string tool_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearToolKey() { + toolKey_ = getDefaultInstance().getToolKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. A human readable short name of the tool, which should be unique
                                          +     * within the project. It should only contain letters, numbers, and
                                          +     * underscores, and it will be used by LLM to identify the tool.
                                          +     * 
                                          + * + * string tool_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for toolKey to set. + * @return This builder for chaining. + */ + public Builder setToolKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string display_name = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string display_name = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string display_name = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string display_name = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string display_name = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                          +     * Optional. A human readable description of the tool.
                                          +     * 
                                          + * + * string description = 3 [(.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 human readable description of the tool.
                                          +     * 
                                          + * + * string description = 3 [(.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 human readable description of the tool.
                                          +     * 
                                          + * + * string description = 3 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A human readable description of the tool.
                                          +     * 
                                          + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A human readable description of the tool.
                                          +     * 
                                          + * + * string description = 3 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField + actionConfirmationRequirement_; + + private com.google.protobuf.MapField + internalGetActionConfirmationRequirement() { + if (actionConfirmationRequirement_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ActionConfirmationRequirementDefaultEntryHolder.defaultEntry); + } + return actionConfirmationRequirement_; + } + + private com.google.protobuf.MapField + internalGetMutableActionConfirmationRequirement() { + if (actionConfirmationRequirement_ == null) { + actionConfirmationRequirement_ = + com.google.protobuf.MapField.newMapField( + ActionConfirmationRequirementDefaultEntryHolder.defaultEntry); + } + if (!actionConfirmationRequirement_.isMutable()) { + actionConfirmationRequirement_ = actionConfirmationRequirement_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return actionConfirmationRequirement_; + } + + public int getActionConfirmationRequirementCount() { + return internalGetActionConfirmationRequirement().getMap().size(); + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsActionConfirmationRequirement(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetActionConfirmationRequirement().getMap().containsKey(key); + } + + /** Use {@link #getActionConfirmationRequirementMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> + getActionConfirmationRequirement() { + return getActionConfirmationRequirementMap(); + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> + getActionConfirmationRequirementMap() { + return internalGetAdaptedActionConfirmationRequirementMap( + internalGetActionConfirmationRequirement().getMap()); + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getActionConfirmationRequirementOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetActionConfirmationRequirement().getMap(); + return map.containsKey(key) + ? actionConfirmationRequirementValueConverter.doForward(map.get(key)) + : defaultValue; + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getActionConfirmationRequirementOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetActionConfirmationRequirement().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return actionConfirmationRequirementValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getActionConfirmationRequirementValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getActionConfirmationRequirementValue() { + return getActionConfirmationRequirementValueMap(); + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getActionConfirmationRequirementValueMap() { + return internalGetActionConfirmationRequirement().getMap(); + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getActionConfirmationRequirementValueOrDefault( + java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetActionConfirmationRequirement().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getActionConfirmationRequirementValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetActionConfirmationRequirement().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearActionConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableActionConfirmationRequirement().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeActionConfirmationRequirement(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableActionConfirmationRequirement().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> + getMutableActionConfirmationRequirement() { + bitField0_ |= 0x00000010; + return internalGetAdaptedActionConfirmationRequirementMap( + internalGetMutableActionConfirmationRequirement().getMutableMap()); + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putActionConfirmationRequirement( + java.lang.String key, + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableActionConfirmationRequirement() + .getMutableMap() + .put(key, actionConfirmationRequirementValueConverter.doBackward(value)); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllActionConfirmationRequirement( + java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> + values) { + internalGetAdaptedActionConfirmationRequirementMap( + internalGetMutableActionConfirmationRequirement().getMutableMap()) + .putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableActionConfirmationRequirementValue() { + bitField0_ |= 0x00000010; + return internalGetMutableActionConfirmationRequirement().getMutableMap(); + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putActionConfirmationRequirementValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableActionConfirmationRequirement().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
                                          +     * Optional. Confirmation requirement for the actions. Each key is an action
                                          +     * name in the action_schemas. If an action's confirmation requirement is
                                          +     * unspecified (either the key is not present, or its value is
                                          +     * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +     * action's method_type - confirmation is not required if and only if
                                          +     * method_type is GET.
                                          +     * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllActionConfirmationRequirementValue( + java.util.Map values) { + internalGetMutableActionConfirmationRequirement().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool, + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionToolOrBuilder> + extensionSpecBuilder_; + + /** + * + * + *
                                          +     * Vertex extension tool specification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + * + * @deprecated google.cloud.dialogflow.v2beta1.Tool.extension_spec is deprecated. See + * google/cloud/dialogflow/v2beta1/tool.proto;l=563 + * @return Whether the extensionSpec field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasExtensionSpec() { + return specificationCase_ == 4; + } + + /** + * + * + *
                                          +     * Vertex extension tool specification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + * + * @deprecated google.cloud.dialogflow.v2beta1.Tool.extension_spec is deprecated. See + * google/cloud/dialogflow/v2beta1/tool.proto;l=563 + * @return The extensionSpec. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool getExtensionSpec() { + if (extensionSpecBuilder_ == null) { + if (specificationCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.getDefaultInstance(); + } else { + if (specificationCase_ == 4) { + return extensionSpecBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Vertex extension tool specification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setExtensionSpec(com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool value) { + if (extensionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + specification_ = value; + onChanged(); + } else { + extensionSpecBuilder_.setMessage(value); + } + specificationCase_ = 4; + return this; + } + + /** + * + * + *
                                          +     * Vertex extension tool specification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setExtensionSpec( + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.Builder builderForValue) { + if (extensionSpecBuilder_ == null) { + specification_ = builderForValue.build(); + onChanged(); + } else { + extensionSpecBuilder_.setMessage(builderForValue.build()); + } + specificationCase_ = 4; + return this; + } + + /** + * + * + *
                                          +     * Vertex extension tool specification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeExtensionSpec( + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool value) { + if (extensionSpecBuilder_ == null) { + if (specificationCase_ == 4 + && specification_ + != com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.getDefaultInstance()) { + specification_ = + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) specification_) + .mergeFrom(value) + .buildPartial(); + } else { + specification_ = value; + } + onChanged(); + } else { + if (specificationCase_ == 4) { + extensionSpecBuilder_.mergeFrom(value); + } else { + extensionSpecBuilder_.setMessage(value); + } + } + specificationCase_ = 4; + return this; + } + + /** + * + * + *
                                          +     * Vertex extension tool specification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearExtensionSpec() { + if (extensionSpecBuilder_ == null) { + if (specificationCase_ == 4) { + specificationCase_ = 0; + specification_ = null; + onChanged(); + } + } else { + if (specificationCase_ == 4) { + specificationCase_ = 0; + specification_ = null; + } + extensionSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Vertex extension tool specification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.Builder + getExtensionSpecBuilder() { + return getExtensionSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Vertex extension tool specification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dialogflow.v2beta1.Tool.ExtensionToolOrBuilder + getExtensionSpecOrBuilder() { + if ((specificationCase_ == 4) && (extensionSpecBuilder_ != null)) { + return extensionSpecBuilder_.getMessageOrBuilder(); + } else { + if (specificationCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Vertex extension tool specification.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool, + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionToolOrBuilder> + getExtensionSpecFieldBuilder() { + if (extensionSpecBuilder_ == null) { + if (!(specificationCase_ == 4)) { + specification_ = + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.getDefaultInstance(); + } + extensionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool, + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionToolOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool) specification_, + getParentForChildren(), + isClean()); + specification_ = null; + } + specificationCase_ = 4; + onChanged(); + return extensionSpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool, + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.FunctionToolOrBuilder> + functionSpecBuilder_; + + /** + * + * + *
                                          +     * Client side executed function specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + * + * @return Whether the functionSpec field is set. + */ + @java.lang.Override + public boolean hasFunctionSpec() { + return specificationCase_ == 13; + } + + /** + * + * + *
                                          +     * Client side executed function specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + * + * @return The functionSpec. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool getFunctionSpec() { + if (functionSpecBuilder_ == null) { + if (specificationCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.getDefaultInstance(); + } else { + if (specificationCase_ == 13) { + return functionSpecBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Client side executed function specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + */ + public Builder setFunctionSpec(com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool value) { + if (functionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + specification_ = value; + onChanged(); + } else { + functionSpecBuilder_.setMessage(value); + } + specificationCase_ = 13; + return this; + } + + /** + * + * + *
                                          +     * Client side executed function specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + */ + public Builder setFunctionSpec( + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.Builder builderForValue) { + if (functionSpecBuilder_ == null) { + specification_ = builderForValue.build(); + onChanged(); + } else { + functionSpecBuilder_.setMessage(builderForValue.build()); + } + specificationCase_ = 13; + return this; + } + + /** + * + * + *
                                          +     * Client side executed function specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + */ + public Builder mergeFunctionSpec(com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool value) { + if (functionSpecBuilder_ == null) { + if (specificationCase_ == 13 + && specification_ + != com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.getDefaultInstance()) { + specification_ = + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) specification_) + .mergeFrom(value) + .buildPartial(); + } else { + specification_ = value; + } + onChanged(); + } else { + if (specificationCase_ == 13) { + functionSpecBuilder_.mergeFrom(value); + } else { + functionSpecBuilder_.setMessage(value); + } + } + specificationCase_ = 13; + return this; + } + + /** + * + * + *
                                          +     * Client side executed function specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + */ + public Builder clearFunctionSpec() { + if (functionSpecBuilder_ == null) { + if (specificationCase_ == 13) { + specificationCase_ = 0; + specification_ = null; + onChanged(); + } + } else { + if (specificationCase_ == 13) { + specificationCase_ = 0; + specification_ = null; + } + functionSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Client side executed function specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + */ + public com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.Builder getFunctionSpecBuilder() { + return getFunctionSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Client side executed function specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.FunctionToolOrBuilder + getFunctionSpecOrBuilder() { + if ((specificationCase_ == 13) && (functionSpecBuilder_ != null)) { + return functionSpecBuilder_.getMessageOrBuilder(); + } else { + if (specificationCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Client side executed function specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool, + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.FunctionToolOrBuilder> + getFunctionSpecFieldBuilder() { + if (functionSpecBuilder_ == null) { + if (!(specificationCase_ == 13)) { + specification_ = + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.getDefaultInstance(); + } + functionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool, + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.FunctionToolOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool) specification_, + getParentForChildren(), + isClean()); + specification_ = null; + } + specificationCase_ = 13; + onChanged(); + return functionSpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorToolOrBuilder> + connectorSpecBuilder_; + + /** + * + * + *
                                          +     * Integration connectors tool specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + * + * @return Whether the connectorSpec field is set. + */ + @java.lang.Override + public boolean hasConnectorSpec() { + return specificationCase_ == 18; + } + + /** + * + * + *
                                          +     * Integration connectors tool specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + * + * @return The connectorSpec. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool getConnectorSpec() { + if (connectorSpecBuilder_ == null) { + if (specificationCase_ == 18) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.getDefaultInstance(); + } else { + if (specificationCase_ == 18) { + return connectorSpecBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Integration connectors tool specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + */ + public Builder setConnectorSpec(com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool value) { + if (connectorSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + specification_ = value; + onChanged(); + } else { + connectorSpecBuilder_.setMessage(value); + } + specificationCase_ = 18; + return this; + } + + /** + * + * + *
                                          +     * Integration connectors tool specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + */ + public Builder setConnectorSpec( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Builder builderForValue) { + if (connectorSpecBuilder_ == null) { + specification_ = builderForValue.build(); + onChanged(); + } else { + connectorSpecBuilder_.setMessage(builderForValue.build()); + } + specificationCase_ = 18; + return this; + } + + /** + * + * + *
                                          +     * Integration connectors tool specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + */ + public Builder mergeConnectorSpec( + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool value) { + if (connectorSpecBuilder_ == null) { + if (specificationCase_ == 18 + && specification_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.getDefaultInstance()) { + specification_ = + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) specification_) + .mergeFrom(value) + .buildPartial(); + } else { + specification_ = value; + } + onChanged(); + } else { + if (specificationCase_ == 18) { + connectorSpecBuilder_.mergeFrom(value); + } else { + connectorSpecBuilder_.setMessage(value); + } + } + specificationCase_ = 18; + return this; + } + + /** + * + * + *
                                          +     * Integration connectors tool specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + */ + public Builder clearConnectorSpec() { + if (connectorSpecBuilder_ == null) { + if (specificationCase_ == 18) { + specificationCase_ = 0; + specification_ = null; + onChanged(); + } + } else { + if (specificationCase_ == 18) { + specificationCase_ = 0; + specification_ = null; + } + connectorSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Integration connectors tool specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + */ + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Builder + getConnectorSpecBuilder() { + return getConnectorSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Integration connectors tool specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConnectorToolOrBuilder + getConnectorSpecOrBuilder() { + if ((specificationCase_ == 18) && (connectorSpecBuilder_ != null)) { + return connectorSpecBuilder_.getMessageOrBuilder(); + } else { + if (specificationCase_ == 18) { + return (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Integration connectors tool specification.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorToolOrBuilder> + getConnectorSpecFieldBuilder() { + if (connectorSpecBuilder_ == null) { + if (!(specificationCase_ == 18)) { + specification_ = + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.getDefaultInstance(); + } + connectorSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorToolOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool) specification_, + getParentForChildren(), + isClean()); + specification_ = null; + } + specificationCase_ = 18; + onChanged(); + return connectorSpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool, + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiToolOrBuilder> + openApiSpecBuilder_; + + /** + * + * + *
                                          +     * OpenAPI tool.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + * + * @return Whether the openApiSpec field is set. + */ + @java.lang.Override + public boolean hasOpenApiSpec() { + return specificationCase_ == 20; + } + + /** + * + * + *
                                          +     * OpenAPI tool.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + * + * @return The openApiSpec. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool getOpenApiSpec() { + if (openApiSpecBuilder_ == null) { + if (specificationCase_ == 20) { + return (com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.getDefaultInstance(); + } else { + if (specificationCase_ == 20) { + return openApiSpecBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * OpenAPI tool.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + */ + public Builder setOpenApiSpec(com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool value) { + if (openApiSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + specification_ = value; + onChanged(); + } else { + openApiSpecBuilder_.setMessage(value); + } + specificationCase_ = 20; + return this; + } + + /** + * + * + *
                                          +     * OpenAPI tool.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + */ + public Builder setOpenApiSpec( + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.Builder builderForValue) { + if (openApiSpecBuilder_ == null) { + specification_ = builderForValue.build(); + onChanged(); + } else { + openApiSpecBuilder_.setMessage(builderForValue.build()); + } + specificationCase_ = 20; + return this; + } + + /** + * + * + *
                                          +     * OpenAPI tool.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + */ + public Builder mergeOpenApiSpec(com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool value) { + if (openApiSpecBuilder_ == null) { + if (specificationCase_ == 20 + && specification_ + != com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.getDefaultInstance()) { + specification_ = + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) specification_) + .mergeFrom(value) + .buildPartial(); + } else { + specification_ = value; + } + onChanged(); + } else { + if (specificationCase_ == 20) { + openApiSpecBuilder_.mergeFrom(value); + } else { + openApiSpecBuilder_.setMessage(value); + } + } + specificationCase_ = 20; + return this; + } + + /** + * + * + *
                                          +     * OpenAPI tool.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + */ + public Builder clearOpenApiSpec() { + if (openApiSpecBuilder_ == null) { + if (specificationCase_ == 20) { + specificationCase_ = 0; + specification_ = null; + onChanged(); + } + } else { + if (specificationCase_ == 20) { + specificationCase_ = 0; + specification_ = null; + } + openApiSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * OpenAPI tool.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + */ + public com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.Builder getOpenApiSpecBuilder() { + return getOpenApiSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * OpenAPI tool.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.OpenApiToolOrBuilder getOpenApiSpecOrBuilder() { + if ((specificationCase_ == 20) && (openApiSpecBuilder_ != null)) { + return openApiSpecBuilder_.getMessageOrBuilder(); + } else { + if (specificationCase_ == 20) { + return (com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) specification_; + } + return com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * OpenAPI tool.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool, + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiToolOrBuilder> + getOpenApiSpecFieldBuilder() { + if (openApiSpecBuilder_ == null) { + if (!(specificationCase_ == 20)) { + specification_ = + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.getDefaultInstance(); + } + openApiSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool, + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool.Builder, + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiToolOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool) specification_, + getParentForChildren(), + isClean()); + specification_ = null; + } + specificationCase_ = 20; + onChanged(); + return openApiSpecBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                          +     * Output only. Creation time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                                          +     * Output only. Creation time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Creation time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Creation time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Creation time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Creation time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Creation time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Creation time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Creation time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                          +     * Output only. Update time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
                                          +     * Output only. Update time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. Update time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Update time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Update time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Update time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Update time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Update time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. Update time of this tool.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private boolean satisfiesPzs_; + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Separation
                                          +     * status of the tool. If the field is absent, it means the status is unknown.
                                          +     * 
                                          + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Separation
                                          +     * status of the tool. If the field is absent, it means the status is unknown.
                                          +     * 
                                          + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Separation
                                          +     * status of the tool. If the field is absent, it means the status is unknown.
                                          +     * 
                                          + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Separation
                                          +     * status of the tool. If the field is absent, it means the status is unknown.
                                          +     * 
                                          + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00000800); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Isolation status
                                          +     * of the tool. If the field is absent, it means the status is unknown.
                                          +     * 
                                          + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Isolation status
                                          +     * of the tool. If the field is absent, it means the status is unknown.
                                          +     * 
                                          + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Isolation status
                                          +     * of the tool. If the field is absent, it means the status is unknown.
                                          +     * 
                                          + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. A read only boolean field reflecting Zone Isolation status
                                          +     * of the tool. If the field is absent, it means the status is unknown.
                                          +     * 
                                          + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00001000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Tool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Tool) + private static final com.google.cloud.dialogflow.v2beta1.Tool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Tool(); + } + + public static com.google.cloud.dialogflow.v2beta1.Tool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tool 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.dialogflow.v2beta1.Tool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java new file mode 100644 index 000000000000..d7f4cba63850 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java @@ -0,0 +1,2494 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool_call.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Represents a call of a specific tool's action with the specified inputs.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolCall} + */ +public final class ToolCall extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ToolCall) + ToolCallOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ToolCall.newBuilder() to construct. + private ToolCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToolCall() { + toolDisplayName_ = ""; + toolDisplayDetails_ = ""; + action_ = ""; + answerRecord_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToolCall(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolCall.class, + com.google.cloud.dialogflow.v2beta1.ToolCall.Builder.class); + } + + /** + * + * + *
                                          +   * Tool call states.
                                          +   * 
                                          + * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.ToolCall.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +     * Default value.
                                          +     * 
                                          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                          +     * The tool call has been triggered.
                                          +     * 
                                          + * + * TRIGGERED = 1; + */ + TRIGGERED(1), + /** + * + * + *
                                          +     * The tool call requires confirmation from a human.
                                          +     * 
                                          + * + * NEEDS_CONFIRMATION = 2; + */ + NEEDS_CONFIRMATION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +     * Default value.
                                          +     * 
                                          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +     * The tool call has been triggered.
                                          +     * 
                                          + * + * TRIGGERED = 1; + */ + public static final int TRIGGERED_VALUE = 1; + + /** + * + * + *
                                          +     * The tool call requires confirmation from a human.
                                          +     * 
                                          + * + * NEEDS_CONFIRMATION = 2; + */ + public static final int NEEDS_CONFIRMATION_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return TRIGGERED; + case 2: + return NEEDS_CONFIRMATION; + 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 State findValueByNumber(int number) { + return State.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolCall.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.ToolCall.State) + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL(1), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return TOOL; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return sourceCase_ == 1; + } + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + 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(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_DISPLAY_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolDisplayName_ = ""; + + /** + * + * + *
                                          +   * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +   * 
                                          + * + * string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolDisplayName. + */ + @java.lang.Override + public java.lang.String getToolDisplayName() { + java.lang.Object ref = toolDisplayName_; + 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(); + toolDisplayName_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +   * 
                                          + * + * string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolDisplayNameBytes() { + java.lang.Object ref = toolDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_DISPLAY_DETAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolDisplayDetails_ = ""; + + /** + * + * + *
                                          +   * Optional. A human readable description of the tool.
                                          +   * 
                                          + * + * string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolDisplayDetails. + */ + @java.lang.Override + public java.lang.String getToolDisplayDetails() { + java.lang.Object ref = toolDisplayDetails_; + 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(); + toolDisplayDetails_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. A human readable description of the tool.
                                          +   * 
                                          + * + * string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolDisplayDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolDisplayDetailsBytes() { + java.lang.Object ref = toolDisplayDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolDisplayDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object action_ = ""; + + /** + * + * + *
                                          +   * Optional. The name of the tool's action associated with this call.
                                          +   * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The action. + */ + @java.lang.Override + public java.lang.String getAction() { + java.lang.Object ref = action_; + 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(); + action_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The name of the tool's action associated with this call.
                                          +   * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for action. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_PARAMETERS_FIELD_NUMBER = 3; + private com.google.protobuf.Struct inputParameters_; + + /** + * + * + *
                                          +   * Optional. The action's input parameters.
                                          +   * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + @java.lang.Override + public boolean hasInputParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Optional. The action's input parameters.
                                          +   * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getInputParameters() { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + + /** + * + * + *
                                          +   * Optional. The action's input parameters.
                                          +   * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                          +   * Output only. Create time of the tool call.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +   * Output only. Create time of the tool call.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Create time of the tool call.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.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 ANSWER_RECORD_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + + /** + * + * + *
                                          +   * Optional. The answer record associated with this tool call.
                                          +   * 
                                          + * + * string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + 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(); + answerRecord_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The answer record associated with this tool call.
                                          +   * 
                                          + * + * string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
                                          +   * Output only. State of the tool call
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                          +   * Output only. State of the tool call
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCall.State getState() { + com.google.cloud.dialogflow.v2beta1.ToolCall.State result = + com.google.cloud.dialogflow.v2beta1.ToolCall.State.forNumber(state_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.ToolCall.State.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 (sourceCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getInputParameters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, answerRecord_); + } + if (state_ + != com.google.cloud.dialogflow.v2beta1.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, toolDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolDisplayDetails_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, toolDisplayDetails_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputParameters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, answerRecord_); + } + if (state_ + != com.google.cloud.dialogflow.v2beta1.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, toolDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolDisplayDetails_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, toolDisplayDetails_); + } + 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.dialogflow.v2beta1.ToolCall)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ToolCall other = + (com.google.cloud.dialogflow.v2beta1.ToolCall) obj; + + if (!getToolDisplayName().equals(other.getToolDisplayName())) return false; + if (!getToolDisplayDetails().equals(other.getToolDisplayDetails())) return false; + if (!getAction().equals(other.getAction())) return false; + if (hasInputParameters() != other.hasInputParameters()) return false; + if (hasInputParameters()) { + if (!getInputParameters().equals(other.getInputParameters())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (state_ != other.state_) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getTool().equals(other.getTool())) 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) + TOOL_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolDisplayName().hashCode(); + hash = (37 * hash) + TOOL_DISPLAY_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getToolDisplayDetails().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + if (hasInputParameters()) { + hash = (37 * hash) + INPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getInputParameters().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (sourceCase_) { + case 1: + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall 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.dialogflow.v2beta1.ToolCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall 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.dialogflow.v2beta1.ToolCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.ToolCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Represents a call of a specific tool's action with the specified inputs.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ToolCall) + com.google.cloud.dialogflow.v2beta1.ToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolCall.class, + com.google.cloud.dialogflow.v2beta1.ToolCall.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ToolCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInputParametersFieldBuilder(); + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolDisplayName_ = ""; + toolDisplayDetails_ = ""; + action_ = ""; + inputParameters_ = null; + if (inputParametersBuilder_ != null) { + inputParametersBuilder_.dispose(); + inputParametersBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + answerRecord_ = ""; + state_ = 0; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCall getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ToolCall.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCall build() { + com.google.cloud.dialogflow.v2beta1.ToolCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCall buildPartial() { + com.google.cloud.dialogflow.v2beta1.ToolCall result = + new com.google.cloud.dialogflow.v2beta1.ToolCall(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ToolCall result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolDisplayName_ = toolDisplayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.toolDisplayDetails_ = toolDisplayDetails_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.action_ = action_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.inputParameters_ = + inputParametersBuilder_ == null ? inputParameters_ : inputParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.answerRecord_ = answerRecord_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.ToolCall result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ToolCall) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ToolCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCall other) { + if (other == com.google.cloud.dialogflow.v2beta1.ToolCall.getDefaultInstance()) return this; + if (!other.getToolDisplayName().isEmpty()) { + toolDisplayName_ = other.toolDisplayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getToolDisplayDetails().isEmpty()) { + toolDisplayDetails_ = other.toolDisplayDetails_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAction().isEmpty()) { + action_ = other.action_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasInputParameters()) { + mergeInputParameters(other.getInputParameters()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getSourceCase()) { + case TOOL: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_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: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 18: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage(getInputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 50: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 74: + { + toolDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 74 + case 82: + { + toolDisplayDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 82 + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return sourceCase_ == 1; + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + private java.lang.Object toolDisplayName_ = ""; + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolDisplayName. + */ + public java.lang.String getToolDisplayName() { + java.lang.Object ref = toolDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolDisplayName. + */ + public com.google.protobuf.ByteString getToolDisplayNameBytes() { + java.lang.Object ref = toolDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolDisplayName to set. + * @return This builder for chaining. + */ + public Builder setToolDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolDisplayName() { + toolDisplayName_ = getDefaultInstance().getToolDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +     * 
                                          + * + * string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for toolDisplayName to set. + * @return This builder for chaining. + */ + public Builder setToolDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object toolDisplayDetails_ = ""; + + /** + * + * + *
                                          +     * Optional. A human readable description of the tool.
                                          +     * 
                                          + * + * string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolDisplayDetails. + */ + public java.lang.String getToolDisplayDetails() { + java.lang.Object ref = toolDisplayDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolDisplayDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. A human readable description of the tool.
                                          +     * 
                                          + * + * string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolDisplayDetails. + */ + public com.google.protobuf.ByteString getToolDisplayDetailsBytes() { + java.lang.Object ref = toolDisplayDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolDisplayDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. A human readable description of the tool.
                                          +     * 
                                          + * + * string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolDisplayDetails to set. + * @return This builder for chaining. + */ + public Builder setToolDisplayDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolDisplayDetails_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A human readable description of the tool.
                                          +     * 
                                          + * + * string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolDisplayDetails() { + toolDisplayDetails_ = getDefaultInstance().getToolDisplayDetails(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A human readable description of the tool.
                                          +     * 
                                          + * + * string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for toolDisplayDetails to set. + * @return This builder for chaining. + */ + public Builder setToolDisplayDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolDisplayDetails_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object action_ = ""; + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The action. + */ + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + action_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for action. + */ + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = getDefaultInstance().getAction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for action to set. + * @return This builder for chaining. + */ + public Builder setActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Struct inputParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + inputParametersBuilder_; + + /** + * + * + *
                                          +     * Optional. The action's input parameters.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + public boolean hasInputParameters() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                          +     * Optional. The action's input parameters.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + public com.google.protobuf.Struct getInputParameters() { + if (inputParametersBuilder_ == null) { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } else { + return inputParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Optional. The action's input parameters.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputParameters(com.google.protobuf.Struct value) { + if (inputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputParameters_ = value; + } else { + inputParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The action's input parameters.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (inputParametersBuilder_ == null) { + inputParameters_ = builderForValue.build(); + } else { + inputParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The action's input parameters.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInputParameters(com.google.protobuf.Struct value) { + if (inputParametersBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && inputParameters_ != null + && inputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInputParametersBuilder().mergeFrom(value); + } else { + inputParameters_ = value; + } + } else { + inputParametersBuilder_.mergeFrom(value); + } + if (inputParameters_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The action's input parameters.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputParameters() { + bitField0_ = (bitField0_ & ~0x00000010); + inputParameters_ = null; + if (inputParametersBuilder_ != null) { + inputParametersBuilder_.dispose(); + inputParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The action's input parameters.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getInputParametersBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getInputParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. The action's input parameters.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { + if (inputParametersBuilder_ != null) { + return inputParametersBuilder_.getMessageOrBuilder(); + } else { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + } + + /** + * + * + *
                                          +     * Optional. The action's input parameters.
                                          +     * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getInputParametersFieldBuilder() { + if (inputParametersBuilder_ == null) { + inputParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getInputParameters(), getParentForChildren(), isClean()); + inputParameters_ = null; + } + return inputParametersBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                          +     * Output only. Create time of the tool call.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Create time of the tool call.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Create time of the tool call.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.lang.Object answerRecord_ = ""; + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call.
                                          +     * 
                                          + * + * string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call.
                                          +     * 
                                          + * + * string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call.
                                          +     * 
                                          + * + * string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call.
                                          +     * 
                                          + * + * string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call.
                                          +     * 
                                          + * + * string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                          +     * Output only. State of the tool call
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                          +     * Output only. State of the tool call
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. State of the tool call
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCall.State getState() { + com.google.cloud.dialogflow.v2beta1.ToolCall.State result = + com.google.cloud.dialogflow.v2beta1.ToolCall.State.forNumber(state_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.ToolCall.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +     * Output only. State of the tool call
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dialogflow.v2beta1.ToolCall.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. State of the tool call
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ToolCall) + private static final com.google.cloud.dialogflow.v2beta1.ToolCall DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ToolCall(); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCall 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.dialogflow.v2beta1.ToolCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java new file mode 100644 index 000000000000..a9b3241af017 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java @@ -0,0 +1,293 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool_call.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface ToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
                                          +   * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +   * 
                                          + * + * string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolDisplayName. + */ + java.lang.String getToolDisplayName(); + + /** + * + * + *
                                          +   * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +   * 
                                          + * + * string tool_display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolDisplayName. + */ + com.google.protobuf.ByteString getToolDisplayNameBytes(); + + /** + * + * + *
                                          +   * Optional. A human readable description of the tool.
                                          +   * 
                                          + * + * string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolDisplayDetails. + */ + java.lang.String getToolDisplayDetails(); + + /** + * + * + *
                                          +   * Optional. A human readable description of the tool.
                                          +   * 
                                          + * + * string tool_display_details = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolDisplayDetails. + */ + com.google.protobuf.ByteString getToolDisplayDetailsBytes(); + + /** + * + * + *
                                          +   * Optional. The name of the tool's action associated with this call.
                                          +   * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The action. + */ + java.lang.String getAction(); + + /** + * + * + *
                                          +   * Optional. The name of the tool's action associated with this call.
                                          +   * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for action. + */ + com.google.protobuf.ByteString getActionBytes(); + + /** + * + * + *
                                          +   * Optional. The action's input parameters.
                                          +   * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + boolean hasInputParameters(); + + /** + * + * + *
                                          +   * Optional. The action's input parameters.
                                          +   * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + com.google.protobuf.Struct getInputParameters(); + + /** + * + * + *
                                          +   * Optional. The action's input parameters.
                                          +   * 
                                          + * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getInputParametersOrBuilder(); + + /** + * + * + *
                                          +   * Output only. Create time of the tool call.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                          +   * Output only. Create time of the tool call.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                          +   * Output only. Create time of the tool call.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                          +   * Optional. The answer record associated with this tool call.
                                          +   * 
                                          + * + * string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); + + /** + * + * + *
                                          +   * Optional. The answer record associated with this tool call.
                                          +   * 
                                          + * + * string answer_record = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + + /** + * + * + *
                                          +   * Output only. State of the tool call
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                          +   * Output only. State of the tool call
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.ToolCall.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dialogflow.v2beta1.ToolCall.State getState(); + + com.google.cloud.dialogflow.v2beta1.ToolCall.SourceCase getSourceCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java new file mode 100644 index 000000000000..c6deb4c47dea --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool_call.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public final class ToolCallProto { + private ToolCallProto() {} + + 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_dialogflow_v2beta1_ToolCall_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ToolCall_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_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/cloud/dialogflow/v2beta1/tool_call.proto\022\037google.cloud.dialogflow.v2bet" + + "a1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\034google/protobuf/" + + "struct.proto\032\037google/protobuf/timestamp.proto\"\272\003\n" + + "\010ToolCall\0226\n" + + "\004tool\030\001 \001(\tB&\340A\001\372A \n" + + "\036dialogflow.googleapis.com/ToolH\000\022\036\n" + + "\021tool_display_name\030\t \001(\tB\003\340A\001\022!\n" + + "\024tool_display_details\030\n" + + " \001(\tB\003\340A\001\022\023\n" + + "\006action\030\002 \001(\tB\003\340A\001\0226\n" + + "\020input_parameters\030\003" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\0224\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\r" + + "answer_record\030\006 \001(\tB\003\340A\001\022C\n" + + "\005state\030\007 \001(\0162/.go" + + "ogle.cloud.dialogflow.v2beta1.ToolCall.StateB\003\340A\003\"E\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\r\n" + + "\tTRIGGERED\020\001\022\026\n" + + "\022NEEDS_CONFIRMATION\020\002B\010\n" + + "\006source\"\324\002\n" + + "\016ToolCallResult\0226\n" + + "\004tool\030\001 \001(\tB&\340A\001\372A \n" + + "\036dialogflow.googleapis.com/ToolH\000\022\023\n" + + "\006action\030\002 \001(\tB\003\340A\001\022F\n" + + "\005error\030\003 \001(" + + "\01325.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorH\001\022\025\n" + + "\013raw_content\030\005 \001(\014H\001\022\021\n" + + "\007content\030\006 \001(\tH\001\0224\n" + + "\013create_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\r" + + "answer_record\030\t \001(\tB\003\340A\001\032\035\n" + + "\005Error\022\024\n" + + "\007message\030\001 \001(\tB\003\340A\001B\010\n" + + "\006sourceB\010\n" + + "\006resultB\242\001\n" + + "#com.google.cloud.dialogflow.v2beta1B\r" + + "ToolCallProtoP\001ZCcloud.google.com/go/dialogfl" + + "ow/apiv2beta1/dialogflowpb;dialogflowpb\242" + + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\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.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_ToolCall_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_ToolCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ToolCall_descriptor, + new java.lang.String[] { + "Tool", + "ToolDisplayName", + "ToolDisplayDetails", + "Action", + "InputParameters", + "CreateTime", + "AnswerRecord", + "State", + "Source", + }); + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_descriptor, + new java.lang.String[] { + "Tool", + "Action", + "Error", + "RawContent", + "Content", + "CreateTime", + "AnswerRecord", + "Source", + "Result", + }); + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_descriptor, + new java.lang.String[] { + "Message", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java new file mode 100644 index 000000000000..dcbdc9b13ee8 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java @@ -0,0 +1,2917 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool_call.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * The result of calling a tool's action.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolCallResult} + */ +public final class ToolCallResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ToolCallResult) + ToolCallResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ToolCallResult.newBuilder() to construct. + private ToolCallResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToolCallResult() { + action_ = ""; + answerRecord_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToolCallResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolCallResult.class, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Builder.class); + } + + public interface ErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ToolCallResult.Error) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * Optional. The error message of the function.
                                          +     * 
                                          + * + * string message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
                                          +     * Optional. The error message of the function.
                                          +     * 
                                          + * + * string message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + } + + /** + * + * + *
                                          +   * An error produced by the tool call.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolCallResult.Error} + */ + public static final class Error extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ToolCallResult.Error) + ErrorOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Error.newBuilder() to construct. + private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Error() { + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Error(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.class, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
                                          +     * Optional. The error message of the function.
                                          +     * 
                                          + * + * string message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * Optional. The error message of the function.
                                          +     * 
                                          + * + * string message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = 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.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + 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.dialogflow.v2beta1.ToolCallResult.Error)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error other = + (com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) obj; + + if (!getMessage().equals(other.getMessage())) 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) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error 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.dialogflow.v2beta1.ToolCallResult.Error parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error 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.dialogflow.v2beta1.ToolCallResult.Error parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * An error produced by the tool call.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolCallResult.Error} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ToolCallResult.Error) + com.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.class, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_Error_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error build() { + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error buildPartial() { + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error result = + new com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error other) { + if (other == com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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: + { + message_ = 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 message_ = ""; + + /** + * + * + *
                                          +       * Optional. The error message of the function.
                                          +       * 
                                          + * + * string message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * Optional. The error message of the function.
                                          +       * 
                                          + * + * string message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * Optional. The error message of the function.
                                          +       * 
                                          + * + * string message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The error message of the function.
                                          +       * 
                                          + * + * string message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Optional. The error message of the function.
                                          +       * 
                                          + * + * string message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ToolCallResult.Error) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ToolCallResult.Error) + private static final com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error(); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error 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.dialogflow.v2beta1.ToolCallResult.Error getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL(1), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return TOOL; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ERROR(3), + RAW_CONTENT(5), + CONTENT(6), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(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 ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 3: + return ERROR; + case 5: + return RAW_CONTENT; + case 6: + return CONTENT; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return sourceCase_ == 1; + } + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + 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(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object action_ = ""; + + /** + * + * + *
                                          +   * Optional. The name of the tool's action associated with this call.
                                          +   * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The action. + */ + @java.lang.Override + public java.lang.String getAction() { + java.lang.Object ref = action_; + 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(); + action_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The name of the tool's action associated with this call.
                                          +   * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for action. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 3; + + /** + * + * + *
                                          +   * The tool call's error.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return resultCase_ == 3; + } + + /** + * + * + *
                                          +   * The tool call's error.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + * + * @return The error. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error getError() { + if (resultCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) result_; + } + return com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * The tool call's error.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorOrBuilder getErrorOrBuilder() { + if (resultCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) result_; + } + return com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.getDefaultInstance(); + } + + public static final int RAW_CONTENT_FIELD_NUMBER = 5; + + /** + * + * + *
                                          +   * Only populated if the response content is not utf-8 encoded.
                                          +   * (by definition byte fields are base64 encoded).
                                          +   * 
                                          + * + * bytes raw_content = 5; + * + * @return Whether the rawContent field is set. + */ + @java.lang.Override + public boolean hasRawContent() { + return resultCase_ == 5; + } + + /** + * + * + *
                                          +   * Only populated if the response content is not utf-8 encoded.
                                          +   * (by definition byte fields are base64 encoded).
                                          +   * 
                                          + * + * bytes raw_content = 5; + * + * @return The rawContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRawContent() { + if (resultCase_ == 5) { + return (com.google.protobuf.ByteString) result_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int CONTENT_FIELD_NUMBER = 6; + + /** + * + * + *
                                          +   * Only populated if the response content is utf-8 encoded.
                                          +   * 
                                          + * + * string content = 6; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return resultCase_ == 6; + } + + /** + * + * + *
                                          +   * Only populated if the response content is utf-8 encoded.
                                          +   * 
                                          + * + * string content = 6; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = ""; + if (resultCase_ == 6) { + ref = result_; + } + 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 (resultCase_ == 6) { + result_ = s; + } + return s; + } + } + + /** + * + * + *
                                          +   * Only populated if the response content is utf-8 encoded.
                                          +   * 
                                          + * + * string content = 6; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 6) { + ref = result_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 6) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                          +   * Output only. Create time of the tool call result.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 7 [(.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. Create time of the tool call result.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 7 [(.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. Create time of the tool call result.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 7 [(.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 ANSWER_RECORD_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + + /** + * + * + *
                                          +   * Optional. The answer record associated with this tool call result.
                                          +   * 
                                          + * + * string answer_record = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + 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(); + answerRecord_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The answer record associated with this tool call result.
                                          +   * 
                                          + * + * string answer_record = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = 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 (sourceCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, action_); + } + if (resultCase_ == 3) { + output.writeMessage(3, (com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) result_); + } + if (resultCase_ == 5) { + output.writeBytes(5, (com.google.protobuf.ByteString) result_); + } + if (resultCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, result_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, answerRecord_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, action_); + } + if (resultCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) result_); + } + if (resultCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 5, (com.google.protobuf.ByteString) result_); + } + if (resultCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, result_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, answerRecord_); + } + 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.dialogflow.v2beta1.ToolCallResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ToolCallResult other = + (com.google.cloud.dialogflow.v2beta1.ToolCallResult) obj; + + if (!getAction().equals(other.getAction())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getTool().equals(other.getTool())) return false; + break; + case 0: + default: + } + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 3: + if (!getError().equals(other.getError())) return false; + break; + case 5: + if (!getRawContent().equals(other.getRawContent())) return false; + break; + case 6: + if (!getContent().equals(other.getContent())) 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) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + break; + case 0: + default: + } + switch (resultCase_) { + case 3: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 5: + hash = (37 * hash) + RAW_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getRawContent().hashCode(); + break; + case 6: + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult 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.dialogflow.v2beta1.ToolCallResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult 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.dialogflow.v2beta1.ToolCallResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.ToolCallResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * The result of calling a tool's action.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolCallResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ToolCallResult) + com.google.cloud.dialogflow.v2beta1.ToolCallResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolCallResult.class, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ToolCallResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + action_ = ""; + if (errorBuilder_ != null) { + errorBuilder_.clear(); + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + answerRecord_ = ""; + sourceCase_ = 0; + source_ = null; + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ToolCallResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult build() { + com.google.cloud.dialogflow.v2beta1.ToolCallResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult buildPartial() { + com.google.cloud.dialogflow.v2beta1.ToolCallResult result = + new com.google.cloud.dialogflow.v2beta1.ToolCallResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ToolCallResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.action_ = action_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.answerRecord_ = answerRecord_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.ToolCallResult result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 3 && errorBuilder_ != null) { + result.result_ = errorBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ToolCallResult) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ToolCallResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCallResult other) { + if (other == com.google.cloud.dialogflow.v2beta1.ToolCallResult.getDefaultInstance()) + return this; + if (!other.getAction().isEmpty()) { + action_ = other.action_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + bitField0_ |= 0x00000040; + onChanged(); + } + switch (other.getSourceCase()) { + case TOOL: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + switch (other.getResultCase()) { + case ERROR: + { + mergeError(other.getError()); + break; + } + case RAW_CONTENT: + { + setRawContent(other.getRawContent()); + break; + } + case CONTENT: + { + resultCase_ = 6; + result_ = other.result_; + onChanged(); + break; + } + case RESULT_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: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 18: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 3; + break; + } // case 26 + case 42: + { + result_ = input.readBytes(); + resultCase_ = 5; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + resultCase_ = 6; + result_ = s; + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 74: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return sourceCase_ == 1; + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +     * with this call. Format:
                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +     * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + private java.lang.Object action_ = ""; + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The action. + */ + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + action_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for action. + */ + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = getDefaultInstance().getAction(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The name of the tool's action associated with this call.
                                          +     * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for action to set. + * @return This builder for chaining. + */ + public Builder setActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.Builder, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorOrBuilder> + errorBuilder_; + + /** + * + * + *
                                          +     * The tool call's error.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return resultCase_ == 3; + } + + /** + * + * + *
                                          +     * The tool call's error.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + * + * @return The error. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error getError() { + if (errorBuilder_ == null) { + if (resultCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) result_; + } + return com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.getDefaultInstance(); + } else { + if (resultCase_ == 3) { + return errorBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * The tool call's error.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + */ + public Builder setError(com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + resultCase_ = 3; + return this; + } + + /** + * + * + *
                                          +     * The tool call's error.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + */ + public Builder setError( + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 3; + return this; + } + + /** + * + * + *
                                          +     * The tool call's error.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + */ + public Builder mergeError(com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error value) { + if (errorBuilder_ == null) { + if (resultCase_ == 3 + && result_ + != com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.getDefaultInstance()) { + result_ = + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.newBuilder( + (com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 3) { + errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); + } + } + resultCase_ = 3; + return this; + } + + /** + * + * + *
                                          +     * The tool call's error.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + } + errorBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * The tool call's error.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + */ + public com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * The tool call's error.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorOrBuilder getErrorOrBuilder() { + if ((resultCase_ == 3) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) result_; + } + return com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * The tool call's error.
                                          +     * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.Builder, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(resultCase_ == 3)) { + result_ = com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.getDefaultInstance(); + } + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error.Builder, + com.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 3; + onChanged(); + return errorBuilder_; + } + + /** + * + * + *
                                          +     * Only populated if the response content is not utf-8 encoded.
                                          +     * (by definition byte fields are base64 encoded).
                                          +     * 
                                          + * + * bytes raw_content = 5; + * + * @return Whether the rawContent field is set. + */ + public boolean hasRawContent() { + return resultCase_ == 5; + } + + /** + * + * + *
                                          +     * Only populated if the response content is not utf-8 encoded.
                                          +     * (by definition byte fields are base64 encoded).
                                          +     * 
                                          + * + * bytes raw_content = 5; + * + * @return The rawContent. + */ + public com.google.protobuf.ByteString getRawContent() { + if (resultCase_ == 5) { + return (com.google.protobuf.ByteString) result_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
                                          +     * Only populated if the response content is not utf-8 encoded.
                                          +     * (by definition byte fields are base64 encoded).
                                          +     * 
                                          + * + * bytes raw_content = 5; + * + * @param value The rawContent to set. + * @return This builder for chaining. + */ + public Builder setRawContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + resultCase_ = 5; + result_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Only populated if the response content is not utf-8 encoded.
                                          +     * (by definition byte fields are base64 encoded).
                                          +     * 
                                          + * + * bytes raw_content = 5; + * + * @return This builder for chaining. + */ + public Builder clearRawContent() { + if (resultCase_ == 5) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Only populated if the response content is utf-8 encoded.
                                          +     * 
                                          + * + * string content = 6; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return resultCase_ == 6; + } + + /** + * + * + *
                                          +     * Only populated if the response content is utf-8 encoded.
                                          +     * 
                                          + * + * string content = 6; + * + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = ""; + if (resultCase_ == 6) { + ref = result_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resultCase_ == 6) { + result_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Only populated if the response content is utf-8 encoded.
                                          +     * 
                                          + * + * string content = 6; + * + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 6) { + ref = result_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 6) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Only populated if the response content is utf-8 encoded.
                                          +     * 
                                          + * + * string content = 6; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resultCase_ = 6; + result_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Only populated if the response content is utf-8 encoded.
                                          +     * 
                                          + * + * string content = 6; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + if (resultCase_ == 6) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Only populated if the response content is utf-8 encoded.
                                          +     * 
                                          + * + * string content = 6; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resultCase_ = 6; + result_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                          +     * Output only. Create time of the tool call result.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call result.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. Create time of the tool call result.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call result.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call result.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call result.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call result.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Output only. Create time of the tool call result.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. Create time of the tool call result.
                                          +     * 
                                          + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.lang.Object answerRecord_ = ""; + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call result.
                                          +     * 
                                          + * + * string answer_record = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call result.
                                          +     * 
                                          + * + * string answer_record = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call result.
                                          +     * 
                                          + * + * string answer_record = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call result.
                                          +     * 
                                          + * + * string answer_record = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The answer record associated with this tool call result.
                                          +     * 
                                          + * + * string answer_record = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ToolCallResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ToolCallResult) + private static final com.google.cloud.dialogflow.v2beta1.ToolCallResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ToolCallResult(); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolCallResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCallResult 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.dialogflow.v2beta1.ToolCallResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java new file mode 100644 index 000000000000..0935aecde72c --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java @@ -0,0 +1,277 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool_call.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface ToolCallResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ToolCallResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
                                          +   * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                          +   * with this call. Format:
                                          +   * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                          +   * 
                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
                                          +   * Optional. The name of the tool's action associated with this call.
                                          +   * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The action. + */ + java.lang.String getAction(); + + /** + * + * + *
                                          +   * Optional. The name of the tool's action associated with this call.
                                          +   * 
                                          + * + * string action = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for action. + */ + com.google.protobuf.ByteString getActionBytes(); + + /** + * + * + *
                                          +   * The tool call's error.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
                                          +   * The tool call's error.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + * + * @return The error. + */ + com.google.cloud.dialogflow.v2beta1.ToolCallResult.Error getError(); + + /** + * + * + *
                                          +   * The tool call's error.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.ToolCallResult.Error error = 3; + */ + com.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorOrBuilder getErrorOrBuilder(); + + /** + * + * + *
                                          +   * Only populated if the response content is not utf-8 encoded.
                                          +   * (by definition byte fields are base64 encoded).
                                          +   * 
                                          + * + * bytes raw_content = 5; + * + * @return Whether the rawContent field is set. + */ + boolean hasRawContent(); + + /** + * + * + *
                                          +   * Only populated if the response content is not utf-8 encoded.
                                          +   * (by definition byte fields are base64 encoded).
                                          +   * 
                                          + * + * bytes raw_content = 5; + * + * @return The rawContent. + */ + com.google.protobuf.ByteString getRawContent(); + + /** + * + * + *
                                          +   * Only populated if the response content is utf-8 encoded.
                                          +   * 
                                          + * + * string content = 6; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
                                          +   * Only populated if the response content is utf-8 encoded.
                                          +   * 
                                          + * + * string content = 6; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * + * + *
                                          +   * Only populated if the response content is utf-8 encoded.
                                          +   * 
                                          + * + * string content = 6; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + + /** + * + * + *
                                          +   * Output only. Create time of the tool call result.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                          +   * Output only. Create time of the tool call result.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                          +   * Output only. Create time of the tool call result.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                          +   * Optional. The answer record associated with this tool call result.
                                          +   * 
                                          + * + * string answer_record = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); + + /** + * + * + *
                                          +   * Optional. The answer record associated with this tool call result.
                                          +   * 
                                          + * + * string answer_record = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + + com.google.cloud.dialogflow.v2beta1.ToolCallResult.SourceCase getSourceCase(); + + com.google.cloud.dialogflow.v2beta1.ToolCallResult.ResultCase getResultCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolName.java new file mode 100644 index 000000000000..9135ae84874d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolName.java @@ -0,0 +1,217 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1; + +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 ToolName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_TOOL = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/tools/{tool}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String tool; + + @Deprecated + protected ToolName() { + project = null; + location = null; + tool = null; + } + + private ToolName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + tool = Preconditions.checkNotNull(builder.getTool()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTool() { + return tool; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ToolName of(String project, String location, String tool) { + return newBuilder().setProject(project).setLocation(location).setTool(tool).build(); + } + + public static String format(String project, String location, String tool) { + return newBuilder().setProject(project).setLocation(location).setTool(tool).build().toString(); + } + + public static ToolName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TOOL.validatedMatch( + formattedString, "ToolName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("tool")); + } + + 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 (ToolName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TOOL.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 (tool != null) { + fieldMapBuilder.put("tool", tool); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TOOL.instantiate( + "project", project, "location", location, "tool", tool); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ToolName that = ((ToolName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.tool, that.tool); + } + 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(tool); + return h; + } + + /** Builder for projects/{project}/locations/{location}/tools/{tool}. */ + public static class Builder { + private String project; + private String location; + private String tool; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTool() { + return tool; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTool(String tool) { + this.tool = tool; + return this; + } + + private Builder(ToolName toolName) { + this.project = toolName.project; + this.location = toolName.location; + this.tool = toolName.tool; + } + + public ToolName build() { + return new ToolName(this); + } + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolOrBuilder.java new file mode 100644 index 000000000000..78226ae91f9c --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolOrBuilder.java @@ -0,0 +1,599 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface ToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Tool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Output only. Identifier. The resource name of the tool. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +   * Output only. Identifier. The resource name of the tool. Format:
                                          +   * `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                          +   * Required. A human readable short name of the tool, which should be unique
                                          +   * within the project. It should only contain letters, numbers, and
                                          +   * underscores, and it will be used by LLM to identify the tool.
                                          +   * 
                                          + * + * string tool_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolKey. + */ + java.lang.String getToolKey(); + + /** + * + * + *
                                          +   * Required. A human readable short name of the tool, which should be unique
                                          +   * within the project. It should only contain letters, numbers, and
                                          +   * underscores, and it will be used by LLM to identify the tool.
                                          +   * 
                                          + * + * string tool_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolKey. + */ + com.google.protobuf.ByteString getToolKeyBytes(); + + /** + * + * + *
                                          +   * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +   * 
                                          + * + * string display_name = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                          +   * Optional. A human readable short name of the tool, to be shown on the UI.
                                          +   * 
                                          + * + * string display_name = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                          +   * Optional. A human readable description of the tool.
                                          +   * 
                                          + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                          +   * Optional. A human readable description of the tool.
                                          +   * 
                                          + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getActionConfirmationRequirementCount(); + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsActionConfirmationRequirement(java.lang.String key); + + /** Use {@link #getActionConfirmationRequirementMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getActionConfirmationRequirement(); + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getActionConfirmationRequirementMap(); + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getActionConfirmationRequirementOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement defaultValue); + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getActionConfirmationRequirementOrThrow(java.lang.String key); + + /** Use {@link #getActionConfirmationRequirementValueMap()} instead. */ + @java.lang.Deprecated + java.util.Map getActionConfirmationRequirementValue(); + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getActionConfirmationRequirementValueMap(); + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getActionConfirmationRequirementValueOrDefault(java.lang.String key, int defaultValue); + + /** + * + * + *
                                          +   * Optional. Confirmation requirement for the actions. Each key is an action
                                          +   * name in the action_schemas. If an action's confirmation requirement is
                                          +   * unspecified (either the key is not present, or its value is
                                          +   * CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
                                          +   * action's method_type - confirmation is not required if and only if
                                          +   * method_type is GET.
                                          +   * 
                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement> action_confirmation_requirement = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getActionConfirmationRequirementValueOrThrow(java.lang.String key); + + /** + * + * + *
                                          +   * Vertex extension tool specification.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + * + * @deprecated google.cloud.dialogflow.v2beta1.Tool.extension_spec is deprecated. See + * google/cloud/dialogflow/v2beta1/tool.proto;l=563 + * @return Whether the extensionSpec field is set. + */ + @java.lang.Deprecated + boolean hasExtensionSpec(); + + /** + * + * + *
                                          +   * Vertex extension tool specification.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + * + * @deprecated google.cloud.dialogflow.v2beta1.Tool.extension_spec is deprecated. See + * google/cloud/dialogflow/v2beta1/tool.proto;l=563 + * @return The extensionSpec. + */ + @java.lang.Deprecated + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionTool getExtensionSpec(); + + /** + * + * + *
                                          +   * Vertex extension tool specification.
                                          +   * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ExtensionTool extension_spec = 4 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.cloud.dialogflow.v2beta1.Tool.ExtensionToolOrBuilder getExtensionSpecOrBuilder(); + + /** + * + * + *
                                          +   * Client side executed function specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + * + * @return Whether the functionSpec field is set. + */ + boolean hasFunctionSpec(); + + /** + * + * + *
                                          +   * Client side executed function specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + * + * @return The functionSpec. + */ + com.google.cloud.dialogflow.v2beta1.Tool.FunctionTool getFunctionSpec(); + + /** + * + * + *
                                          +   * Client side executed function specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.FunctionTool function_spec = 13; + */ + com.google.cloud.dialogflow.v2beta1.Tool.FunctionToolOrBuilder getFunctionSpecOrBuilder(); + + /** + * + * + *
                                          +   * Integration connectors tool specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + * + * @return Whether the connectorSpec field is set. + */ + boolean hasConnectorSpec(); + + /** + * + * + *
                                          +   * Integration connectors tool specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + * + * @return The connectorSpec. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorTool getConnectorSpec(); + + /** + * + * + *
                                          +   * Integration connectors tool specification.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.ConnectorTool connector_spec = 18; + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConnectorToolOrBuilder getConnectorSpecOrBuilder(); + + /** + * + * + *
                                          +   * OpenAPI tool.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + * + * @return Whether the openApiSpec field is set. + */ + boolean hasOpenApiSpec(); + + /** + * + * + *
                                          +   * OpenAPI tool.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + * + * @return The openApiSpec. + */ + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiTool getOpenApiSpec(); + + /** + * + * + *
                                          +   * OpenAPI tool.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool.OpenApiTool open_api_spec = 20; + */ + com.google.cloud.dialogflow.v2beta1.Tool.OpenApiToolOrBuilder getOpenApiSpecOrBuilder(); + + /** + * + * + *
                                          +   * Output only. Creation time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                          +   * Output only. Creation time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                          +   * Output only. Creation time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                          +   * Output only. Update time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                          +   * Output only. Update time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                          +   * Output only. Update time of this tool.
                                          +   * 
                                          + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Separation
                                          +   * status of the tool. If the field is absent, it means the status is unknown.
                                          +   * 
                                          + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + boolean hasSatisfiesPzs(); + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Separation
                                          +   * status of the tool. If the field is absent, it means the status is unknown.
                                          +   * 
                                          + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Isolation status
                                          +   * of the tool. If the field is absent, it means the status is unknown.
                                          +   * 
                                          + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + boolean hasSatisfiesPzi(); + + /** + * + * + *
                                          +   * Output only. A read only boolean field reflecting Zone Isolation status
                                          +   * of the tool. If the field is absent, it means the status is unknown.
                                          +   * 
                                          + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + + com.google.cloud.dialogflow.v2beta1.Tool.SpecificationCase getSpecificationCase(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolProto.java new file mode 100644 index 000000000000..ec8503ef0981 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolProto.java @@ -0,0 +1,566 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public final class ToolProto { + private ToolProto() {} + + 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_dialogflow_v2beta1_CreateToolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_CreateToolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Tool_ActionConfirmationRequirementEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Tool_ActionConfirmationRequirementEntry_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/cloud/dialogflow/v2beta1/tool.p" + + "roto\022\037google.cloud.dialogflow.v2beta1\032\034g" + + "oogle/api/annotations.proto\032\027google/api/" + + "client.proto\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\034google/protobuf/struct." + + "proto\032\037google/protobuf/timestamp.proto\"\233\001\n" + + "\021CreateToolRequest\0226\n" + + "\006parent\030\001 \001(\tB&\340A\002\372A" + + " \022\036dialogflow.googleapis.com/Tool\0228\n" + + "\004tool\030\002" + + " \001(\0132%.google.cloud.dialogflow.v2beta1.ToolB\003\340A\002\022\024\n" + + "\007tool_id\030\003 \001(\tB\003\340A\001\"F\n" + + "\016GetToolRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dialogflow.googleapis.com/Tool\"{\n" + + "\020ListToolsRequest\0226\n" + + "\006parent\030\001 \001(\tB&\340A\002\372A" + + " \022\036dialogflow.googleapis.com/Tool\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\"b\n" + + "\021ListToolsResponse\0224\n" + + "\005tools\030\001 \003(\0132%.google.cloud.dialogflow.v2beta1.Tool\022\027\n" + + "\017next_page_token\030\002 \001(\t\"I\n" + + "\021DeleteToolRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dialogflow.googleapis.com/Tool\"\203\001\n" + + "\021UpdateToolRequest\0228\n" + + "\004tool\030\001 \001(\0132%.google.cloud.dialogflow.v2beta1.ToolB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\230" + + " \n" + + "\004Tool\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\025\n" + + "\010tool_key\030\002 \001(\tB\003\340A\002\022\031\n" + + "\014display_name\030\023 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022v\n" + + "\037action_confirmation_requirement\030\021 \003(\0132H.google.cloud.dialogflow.v2b" + + "eta1.Tool.ActionConfirmationRequirementEntryB\003\340A\001\022Q\n" + + "\016extension_spec\030\004 \001(\01323.goog" + + "le.cloud.dialogflow.v2beta1.Tool.ExtensionToolB\002\030\001H\000\022K\n\r" + + "function_spec\030\r" + + " \001(\01322.google.cloud.dialogflow.v2beta1.Tool.FunctionToolH\000\022M\n" + + "\016connector_spec\030\022 \001(\01323.goog" + + "le.cloud.dialogflow.v2beta1.Tool.ConnectorToolH\000\022J\n\r" + + "open_api_spec\030\024 \001(\01321.google" + + ".cloud.dialogflow.v2beta1.Tool.OpenApiToolH\000\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n\r" + + "satisfies_pzs\030\016 \001(\010B\003\340A\003H\001\210\001\001\022\037\n\r" + + "satisfies_pzi\030\017 \001(\010B\003\340A\003H\002\210\001\001\032\"\n\r" + + "ExtensionTool\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\032\303\001\n" + + "\014FunctionTool\0222\n" + + "\014input_schema\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001\0223\n\r" + + "output_schema\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022J\n" + + "\013method_type\030\004 \001(\01620." + + "google.cloud.dialogflow.v2beta1.Tool.MethodTypeB\003\340A\001\032\265\002\n" + + "\013OpenApiTool\022\032\n" + + "\013text_schema\030\001 \001(\tB\003\340A\002H\000\022Q\n" + + "\016authentication\030\002 \001(\013" + + "24.google.cloud.dialogflow.v2beta1.Tool.AuthenticationB\003\340A\001\022H\n\n" + + "tls_config\030\003 \001(\0132" + + "/.google.cloud.dialogflow.v2beta1.Tool.TLSConfigB\003\340A\001\022c\n" + + "\030service_directory_config\030\004" + + " \001(\0132<.google.cloud.dialogflow.v2beta1.Tool.ServiceDirectoryConfigB\003\340A\001B\010\n" + + "\006schema\032\323\004\n\r" + + "ConnectorTool\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022P\n" + + "\007actions\030\002 \003(\0132:.google.cloud.dialog" + + "flow.v2beta1.Tool.ConnectorTool.ActionB\003\340A\002\032\334\003\n" + + "\006Action\022\036\n" + + "\024connection_action_id\030\004 \001(\tH\000\022f\n" + + "\020entity_operation\030\005 \001(\0132J.googl" + + "e.cloud.dialogflow.v2beta1.Tool.ConnectorTool.Action.EntityOperationH\000\022\031\n" + + "\014input_fields\030\002 \003(\tB\003\340A\001\022\032\n\r" + + "output_fields\030\003 \003(\tB\003\340A\001\032\203\002\n" + + "\017EntityOperation\022\026\n" + + "\tentity_id\030\001 \001(\tB\003\340A\002\022p\n" + + "\toperation\030\002 \001(\0162X.google.cloud.dialogflow.v2beta1.Tool.ConnectorToo" + + "l.Action.EntityOperation.OperationTypeB\003\340A\002\"f\n\r" + + "OperationType\022\036\n" + + "\032OPERATION_TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004LIST\020\001\022\007\n" + + "\003GET\020\002\022\n\n" + + "\006CREATE\020\003\022\n\n" + + "\006UPDATE\020\004\022\n\n" + + "\006DELETE\020\005B\r\n" + + "\013action_spec\032\375\013\n" + + "\016Authentication\022[\n" + + "\016api_key_config\030\001" + + " \001(\0132A.google.cloud.dialogflow.v2beta1.Tool.Authentication.ApiKeyConfigH\000\022X\n" + + "\014oauth_config\030\002 \001(\0132@.google.cloud.dialogfl" + + "ow.v2beta1.Tool.Authentication.OAuthConfigH\000\022p\n" + + "\031service_agent_auth_config\030\003 \001(\0132" + + "K.google.cloud.dialogflow.v2beta1.Tool.A" + + "uthentication.ServiceAgentAuthConfigH\000\022e\n" + + "\023bearer_token_config\030\004 \001(\0132F.google.clo" + + "ud.dialogflow.v2beta1.Tool.Authentication.BearerTokenConfigH\000\032\370\001\n" + + "\014ApiKeyConfig\022\025\n" + + "\010key_name\030\001 \001(\tB\003\340A\002\022\024\n" + + "\007api_key\030\002 \001(\tB\003\340A\001\022V\n" + + "\032secret_version_for_api_key\030\004 \001(\tB2\340A\001\372A,\n" + + "*secretmanager.googleapis.com/SecretVersion\022c\n" + + "\020request_location\030\003 \001(\0162D." + + "google.cloud.dialogflow.v2beta1.Tool.Authentication.RequestLocationB\003\340A\002\032\214\003\n" + + "\013OAuthConfig\022n\n" + + "\020oauth_grant_type\030\001 \001(\0162O.google.cloud.dialogflow.v2beta1.Tool.Authen" + + "tication.OAuthConfig.OauthGrantTypeB\003\340A\002\022\026\n" + + "\tclient_id\030\002 \001(\tB\003\340A\002\022\032\n\r" + + "client_secret\030\003 \001(\tB\003\340A\001\022\\\n" + + " secret_version_for_client_secret\030\006 \001(\tB2\340A\001\372A,\n" + + "*secretmanager.googleapis.com/SecretVersion\022\033\n" + + "\016token_endpoint\030\004 \001(\tB\003\340A\002\022\023\n" + + "\006scopes\030\005 \003(\tB\003\340A\001\"I\n" + + "\016OauthGrantType\022 \n" + + "\034OAUTH_GRANT_TYPE_UNSPECIFIED\020\000\022\025\n" + + "\021CLIENT_CREDENTIAL\020\001\032\357\001\n" + + "\026ServiceAgentAuthConfig\022}\n" + + "\022service_agent_auth\030\001 \001(\0162\\.google.cloud.dialogflow.v2beta1" + + ".Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuthB\003\340A\001\"V\n" + + "\020ServiceAgentAuth\022\"\n" + + "\036SERVICE_AGENT_AUTH_UNSPECIFIED\020\000\022\014\n" + + "\010ID_TOKEN\020\001\022\020\n" + + "\014ACCESS_TOKEN\020\002\032}\n" + + "\021BearerTokenConfig\022\022\n" + + "\005token\030\001 \001(\tB\003\340A\001\022T\n" + + "\030secret_version_for_token\030\002 \001(\tB2\340A\001\372A,\n" + + "*secretmanager.googleapis.com/SecretVersion\"Q\n" + + "\017RequestLocation\022 \n" + + "\034REQUEST_LOCATION_UNSPECIFIED\020\000\022\n\n" + + "\006HEADER\020\001\022\020\n" + + "\014QUERY_STRING\020\002B\r\n" + + "\013auth_config\032\222\001\n" + + "\tTLSConfig\022M\n" + + "\010ca_certs\030\001" + + " \003(\01326.google.cloud.dialogflow.v2beta1.Tool.TLSConfig.CACertB\003\340A\002\0326\n" + + "\006CACert\022\031\n" + + "\014display_name\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004cert\030\002 \001(\014B\003\340A\002\032Z\n" + + "\026ServiceDirectoryConfig\022@\n" + + "\007service\030\001 \001(\tB/\340A\002\372A)\n" + + "\'servicedirectory.googleapis.com/Service\032\203\001\n" + + "\"ActionConfirmationRequirementEntry\022\013\n" + + "\003key\030\001 \001(\t\022L\n" + + "\005value\030\002" + + " \001(\0162=.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement:\0028\001\"c\n" + + "\027ConfirmationRequirement\022(\n" + + "$CONFIRMATION_REQUIREMENT_UNSPECIFIED\020\000\022\014\n" + + "\010REQUIRED\020\001\022\020\n" + + "\014NOT_REQUIRED\020\002\"\\\n\n" + + "MethodType\022\033\n" + + "\027METHOD_TYPE_UNSPECIFIED\020\000\022\007\n" + + "\003GET\020\001\022\010\n" + + "\004POST\020\002\022\007\n" + + "\003PUT\020\003\022\n\n" + + "\006DELETE\020\004\022\t\n" + + "\005PATCH\020\005:f\352Ac\n" + + "\036dialogflow.googleapis.com/Tool\0224projects/{pro" + + "ject}/locations/{location}/tools/{tool}*\005tools2\004toolB\017\n\r" + + "specificationB\020\n" + + "\016_satisfies_pzsB\020\n" + + "\016_satisfies_pzi2\362\007\n" + + "\005Tools\022\273\001\n\n" + + "CreateTool\0222.google.cloud.dialogflow.v2beta1.CreateToolRequest\032%.google.cloud.di" + + "alogflow.v2beta1.Tool\"R\332A\023parent,tool,to" + + "ol_id\202\323\344\223\0026\"./v2beta1/{parent=projects/*/locations/*}/tools:\004tool\022\240\001\n" + + "\007GetTool\022/.google.cloud.dialogflow.v2beta1.GetToolR" + + "equest\032%.google.cloud.dialogflow.v2beta1" + + ".Tool\"=\332A\004name\202\323\344\223\0020\022./v2beta1/{name=projects/*/locations/*/tools/*}\022\263\001\n" + + "\tListTools\0221.google.cloud.dialogflow.v2beta1.Lis" + + "tToolsRequest\0322.google.cloud.dialogflow." + + "v2beta1.ListToolsResponse\"?\332A\006parent\202\323\344\223" + + "\0020\022./v2beta1/{parent=projects/*/locations/*}/tools\022\227\001\n\n" + + "DeleteTool\0222.google.cloud.dialogflow.v2beta1.DeleteToolRequest\032\026." + + "google.protobuf.Empty\"=\332A\004name\202\323\344\223\0020*./v" + + "2beta1/{name=projects/*/locations/*/tools/*}\022\275\001\n\n" + + "UpdateTool\0222.google.cloud.dialogflow.v2beta1.UpdateToolRequest\032%.google" + + ".cloud.dialogflow.v2beta1.Tool\"T\332A\020tool," + + "update_mask\202\323\344\223\002;23/v2beta1/{tool.name=p" + + "rojects/*/locations/*/tools/*}:\004tool\032x\312A" + + "\031dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/dialogflowB\205\002\n" + + "#com.google.cloud.dialogflow.v2beta1B\tToolProtoP\001ZCcloud.google.com/go/dialogf" + + "low/apiv2beta1/dialogflowpb;dialogflowpb" + + "\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352Ad\n" + + "*secretmanager.googleapis.com/SecretVersion\0226projects/{project}/secrets/{secr" + + "et}/versions/{version}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_CreateToolRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_CreateToolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_CreateToolRequest_descriptor, + new java.lang.String[] { + "Parent", "Tool", "ToolId", + }); + internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GetToolRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ListToolsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ListToolsResponse_descriptor, + new java.lang.String[] { + "Tools", "NextPageToken", + }); + internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_DeleteToolRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_descriptor, + new java.lang.String[] { + "Tool", "UpdateMask", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2beta1_Tool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor, + new java.lang.String[] { + "Name", + "ToolKey", + "DisplayName", + "Description", + "ActionConfirmationRequirement", + "ExtensionSpec", + "FunctionSpec", + "ConnectorSpec", + "OpenApiSpec", + "CreateTime", + "UpdateTime", + "SatisfiesPzs", + "SatisfiesPzi", + "Specification", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_ExtensionTool_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_FunctionTool_descriptor, + new java.lang.String[] { + "InputSchema", "OutputSchema", "MethodType", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_OpenApiTool_descriptor, + new java.lang.String[] { + "TextSchema", "Authentication", "TlsConfig", "ServiceDirectoryConfig", "Schema", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_descriptor, + new java.lang.String[] { + "Name", "Actions", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_descriptor, + new java.lang.String[] { + "ConnectionActionId", "EntityOperation", "InputFields", "OutputFields", "ActionSpec", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_ConnectorTool_Action_EntityOperation_descriptor, + new java.lang.String[] { + "EntityId", "Operation", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor, + new java.lang.String[] { + "ApiKeyConfig", + "OauthConfig", + "ServiceAgentAuthConfig", + "BearerTokenConfig", + "AuthConfig", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ApiKeyConfig_descriptor, + new java.lang.String[] { + "KeyName", "ApiKey", "SecretVersionForApiKey", "RequestLocation", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_OAuthConfig_descriptor, + new java.lang.String[] { + "OauthGrantType", + "ClientId", + "ClientSecret", + "SecretVersionForClientSecret", + "TokenEndpoint", + "Scopes", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_ServiceAgentAuthConfig_descriptor, + new java.lang.String[] { + "ServiceAgentAuth", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_Authentication_BearerTokenConfig_descriptor, + new java.lang.String[] { + "Token", "SecretVersionForToken", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_descriptor, + new java.lang.String[] { + "CaCerts", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_TLSConfig_CACert_descriptor, + new java.lang.String[] { + "DisplayName", "Cert", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_ServiceDirectoryConfig_descriptor, + new java.lang.String[] { + "Service", + }); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ActionConfirmationRequirementEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Tool_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_dialogflow_v2beta1_Tool_ActionConfirmationRequirementEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Tool_ActionConfirmationRequirementEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + 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); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateToolRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateToolRequest.java new file mode 100644 index 000000000000..8e51b5faab67 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateToolRequest.java @@ -0,0 +1,1065 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                          + * Request of UpdateTool.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateToolRequest} + */ +public final class UpdateToolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.UpdateToolRequest) + UpdateToolRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateToolRequest.newBuilder() to construct. + private UpdateToolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateToolRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateToolRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest.class, + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest.Builder.class); + } + + private int bitField0_; + public static final int TOOL_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2beta1.Tool tool_; + + /** + * + * + *
                                          +   * Required. The tool to update.
                                          +   * The name field of tool is to identify the tool to
                                          +   * update.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Required. The tool to update.
                                          +   * The name field of tool is to identify the tool to
                                          +   * update.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tool. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool getTool() { + return tool_ == null ? com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance() : tool_; + } + + /** + * + * + *
                                          +   * Required. The tool to update.
                                          +   * The name field of tool is to identify the tool to
                                          +   * update.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolOrBuilder getToolOrBuilder() { + return tool_ == null ? com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance() : tool_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                          +   * Optional. The list of fields to update.
                                          +   * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +   * Optional. The list of fields to update.
                                          +   * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The list of fields to update.
                                          +   * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getTool()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getTool()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.dialogflow.v2beta1.UpdateToolRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest other = + (com.google.cloud.dialogflow.v2beta1.UpdateToolRequest) obj; + + if (hasTool() != other.hasTool()) return false; + if (hasTool()) { + if (!getTool().equals(other.getTool())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasTool()) { + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest 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.dialogflow.v2beta1.UpdateToolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest 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.dialogflow.v2beta1.UpdateToolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request of UpdateTool.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateToolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.UpdateToolRequest) + com.google.cloud.dialogflow.v2beta1.UpdateToolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest.class, + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.UpdateToolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getToolFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tool_ = null; + if (toolBuilder_ != null) { + toolBuilder_.dispose(); + toolBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateToolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.UpdateToolRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.UpdateToolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.UpdateToolRequest build() { + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.UpdateToolRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.UpdateToolRequest result = + new com.google.cloud.dialogflow.v2beta1.UpdateToolRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.UpdateToolRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tool_ = toolBuilder_ == null ? tool_ : toolBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.UpdateToolRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.UpdateToolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.UpdateToolRequest other) { + if (other == com.google.cloud.dialogflow.v2beta1.UpdateToolRequest.getDefaultInstance()) + return this; + if (other.hasTool()) { + mergeTool(other.getTool()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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(getToolFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().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.dialogflow.v2beta1.Tool tool_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool, + com.google.cloud.dialogflow.v2beta1.Tool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder> + toolBuilder_; + + /** + * + * + *
                                          +     * Required. The tool to update.
                                          +     * The name field of tool is to identify the tool to
                                          +     * update.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Required. The tool to update.
                                          +     * The name field of tool is to identify the tool to
                                          +     * update.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tool. + */ + public com.google.cloud.dialogflow.v2beta1.Tool getTool() { + if (toolBuilder_ == null) { + return tool_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance() + : tool_; + } else { + return toolBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Required. The tool to update.
                                          +     * The name field of tool is to identify the tool to
                                          +     * update.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTool(com.google.cloud.dialogflow.v2beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + } else { + toolBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The tool to update.
                                          +     * The name field of tool is to identify the tool to
                                          +     * update.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTool(com.google.cloud.dialogflow.v2beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + tool_ = builderForValue.build(); + } else { + toolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The tool to update.
                                          +     * The name field of tool is to identify the tool to
                                          +     * update.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTool(com.google.cloud.dialogflow.v2beta1.Tool value) { + if (toolBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && tool_ != null + && tool_ != com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance()) { + getToolBuilder().mergeFrom(value); + } else { + tool_ = value; + } + } else { + toolBuilder_.mergeFrom(value); + } + if (tool_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Required. The tool to update.
                                          +     * The name field of tool is to identify the tool to
                                          +     * update.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTool() { + bitField0_ = (bitField0_ & ~0x00000001); + tool_ = null; + if (toolBuilder_ != null) { + toolBuilder_.dispose(); + toolBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The tool to update.
                                          +     * The name field of tool is to identify the tool to
                                          +     * update.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Tool.Builder getToolBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Required. The tool to update.
                                          +     * The name field of tool is to identify the tool to
                                          +     * update.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolOrBuilder getToolOrBuilder() { + if (toolBuilder_ != null) { + return toolBuilder_.getMessageOrBuilder(); + } else { + return tool_ == null + ? com.google.cloud.dialogflow.v2beta1.Tool.getDefaultInstance() + : tool_; + } + } + + /** + * + * + *
                                          +     * Required. The tool to update.
                                          +     * The name field of tool is to identify the tool to
                                          +     * update.
                                          +     * 
                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool, + com.google.cloud.dialogflow.v2beta1.Tool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder> + getToolFieldBuilder() { + if (toolBuilder_ == null) { + toolBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Tool, + com.google.cloud.dialogflow.v2beta1.Tool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder>( + getTool(), getParentForChildren(), isClean()); + tool_ = null; + } + return toolBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                          +     * Optional. The list of fields to update.
                                          +     * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Optional. The list of fields to update.
                                          +     * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The list of fields to update.
                                          +     * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The list of fields to update.
                                          +     * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The list of fields to update.
                                          +     * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. The list of fields to update.
                                          +     * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The list of fields to update.
                                          +     * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. The list of fields to update.
                                          +     * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The list of fields to update.
                                          +     * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.UpdateToolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.UpdateToolRequest) + private static final com.google.cloud.dialogflow.v2beta1.UpdateToolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.UpdateToolRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateToolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateToolRequest 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.dialogflow.v2beta1.UpdateToolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateToolRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateToolRequestOrBuilder.java new file mode 100644 index 000000000000..666387c09da2 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateToolRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2025 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! +// source: google/cloud/dialogflow/v2beta1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.dialogflow.v2beta1; + +public interface UpdateToolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.UpdateToolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The tool to update.
                                          +   * The name field of tool is to identify the tool to
                                          +   * update.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
                                          +   * Required. The tool to update.
                                          +   * The name field of tool is to identify the tool to
                                          +   * update.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tool. + */ + com.google.cloud.dialogflow.v2beta1.Tool getTool(); + + /** + * + * + *
                                          +   * Required. The tool to update.
                                          +   * The name field of tool is to identify the tool to
                                          +   * update.
                                          +   * 
                                          + * + * .google.cloud.dialogflow.v2beta1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dialogflow.v2beta1.ToolOrBuilder getToolOrBuilder(); + + /** + * + * + *
                                          +   * Optional. The list of fields to update.
                                          +   * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                          +   * Optional. The list of fields to update.
                                          +   * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                          +   * Optional. The list of fields to update.
                                          +   * 
                                          + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java index dde7127f7075..cc41db8135ea 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java @@ -51,43 +51,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/dialogflow/v2beta1/webhoo" + "k.proto\022\037google.cloud.dialogflow.v2beta1" - + "\032-google/cloud/dialogflow/v2beta1/contex" - + "t.proto\032,google/cloud/dialogflow/v2beta1" - + "/intent.proto\032-google/cloud/dialogflow/v" - + "2beta1/session.proto\0329google/cloud/dialo" - + "gflow/v2beta1/session_entity_type.proto\032" - + "\034google/protobuf/struct.proto\"\261\002\n\016Webhoo" - + "kRequest\022\017\n\007session\030\004 \001(\t\022\023\n\013response_id" - + "\030\001 \001(\t\022B\n\014query_result\030\002 \001(\0132,.google.cl" - + "oud.dialogflow.v2beta1.QueryResult\022O\n\031al" - + "ternative_query_results\030\005 \003(\0132,.google.c" - + "loud.dialogflow.v2beta1.QueryResult\022d\n\036o" - + "riginal_detect_intent_request\030\003 \001(\0132<.go" - + "ogle.cloud.dialogflow.v2beta1.OriginalDe" - + "tectIntentRequest\"\311\003\n\017WebhookResponse\022\030\n" - + "\020fulfillment_text\030\001 \001(\t\022M\n\024fulfillment_m" - + "essages\030\002 \003(\0132/.google.cloud.dialogflow." - + "v2beta1.Intent.Message\022\016\n\006source\030\003 \001(\t\022(" - + "\n\007payload\030\004 \001(\0132\027.google.protobuf.Struct" - + "\022A\n\017output_contexts\030\005 \003(\0132(.google.cloud" - + ".dialogflow.v2beta1.Context\022I\n\024followup_" - + "event_input\030\006 \001(\0132+.google.cloud.dialogf" - + "low.v2beta1.EventInput\022\032\n\022live_agent_han" - + "doff\030\007 \001(\010\022\027\n\017end_interaction\030\010 \001(\010\022P\n\024s" - + "ession_entity_types\030\n \003(\01322.google.cloud" - + ".dialogflow.v2beta1.SessionEntityType\"h\n" - + "\033OriginalDetectIntentRequest\022\016\n\006source\030\001" - + " \001(\t\022\017\n\007version\030\002 \001(\t\022(\n\007payload\030\003 \001(\0132\027" - + ".google.protobuf.StructB\241\001\n#com.google.c" - + "loud.dialogflow.v2beta1B\014WebhookProtoP\001Z" - + "Ccloud.google.com/go/dialogflow/apiv2bet" - + "a1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Goog" - + "le.Cloud.Dialogflow.V2Beta1b\006proto3" + + "\032\031google/api/resource.proto\032-google/clou" + + "d/dialogflow/v2beta1/context.proto\032,goog" + + "le/cloud/dialogflow/v2beta1/intent.proto" + + "\032-google/cloud/dialogflow/v2beta1/sessio" + + "n.proto\0329google/cloud/dialogflow/v2beta1" + + "/session_entity_type.proto\032\034google/proto" + + "buf/struct.proto\"\261\002\n\016WebhookRequest\022\017\n\007s" + + "ession\030\004 \001(\t\022\023\n\013response_id\030\001 \001(\t\022B\n\014que" + + "ry_result\030\002 \001(\0132,.google.cloud.dialogflo" + + "w.v2beta1.QueryResult\022O\n\031alternative_que" + + "ry_results\030\005 \003(\0132,.google.cloud.dialogfl" + + "ow.v2beta1.QueryResult\022d\n\036original_detec" + + "t_intent_request\030\003 \001(\0132<.google.cloud.di" + + "alogflow.v2beta1.OriginalDetectIntentReq" + + "uest\"\311\003\n\017WebhookResponse\022\030\n\020fulfillment_" + + "text\030\001 \001(\t\022M\n\024fulfillment_messages\030\002 \003(\013" + + "2/.google.cloud.dialogflow.v2beta1.Inten" + + "t.Message\022\016\n\006source\030\003 \001(\t\022(\n\007payload\030\004 \001" + + "(\0132\027.google.protobuf.Struct\022A\n\017output_co" + + "ntexts\030\005 \003(\0132(.google.cloud.dialogflow.v" + + "2beta1.Context\022I\n\024followup_event_input\030\006" + + " \001(\0132+.google.cloud.dialogflow.v2beta1.E" + + "ventInput\022\032\n\022live_agent_handoff\030\007 \001(\010\022\027\n" + + "\017end_interaction\030\010 \001(\010\022P\n\024session_entity" + + "_types\030\n \003(\01322.google.cloud.dialogflow.v" + + "2beta1.SessionEntityType\"h\n\033OriginalDete" + + "ctIntentRequest\022\016\n\006source\030\001 \001(\t\022\017\n\007versi" + + "on\030\002 \001(\t\022(\n\007payload\030\003 \001(\0132\027.google.proto" + + "buf.StructB\240\002\n#com.google.cloud.dialogfl" + + "ow.v2beta1B\014WebhookProtoP\001ZCcloud.google" + + ".com/go/dialogflow/apiv2beta1/dialogflow" + + "pb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dial" + + "ogflow.V2Beta1\352A|\n\'servicedirectory.goog" + + "leapis.com/Service\022Qprojects/{project}/l" + + "ocations/{location}/namespaces/{namespac" + + "e}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.SessionProto.getDescriptor(), @@ -130,6 +135,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Source", "Version", "Payload", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceDefinition); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.SessionProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto new file mode 100644 index 000000000000..53731a223fae --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto @@ -0,0 +1,76 @@ +// Copyright 2025 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.dialogflow.v2beta1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "AgentCoachingInstructionProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Agent Coaching instructions that customer can configure. +message AgentCoachingInstruction { + // Duplication check for the suggestion. + message DuplicateCheckResult { + // The duplicate suggestion details. + message DuplicateSuggestion { + // Output only. The answer record id of the past duplicate suggestion. + string answer_record = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The index of the duplicate suggestion in the past + // suggestion list. + int32 suggestion_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The similarity score of between the past and current + // suggestion. + float similarity_score = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The duplicate suggestions. + repeated DuplicateSuggestion duplicate_suggestions = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Optional. Display name for the instruction. + string display_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The detailed description of this instruction. + string display_details = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The condition of the instruction. For example, "the customer + // wants to cancel an order". If the users want the instruction to be + // triggered unconditionally, the condition can be empty. + string condition = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The action that human agent should take. For example, "apologize + // for the slow shipping". If the users only want to use agent coaching for + // intent detection, agent_action can be empty + string agent_action = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The action that system should take. For example, + // "call GetOrderTime with order_number={order number provided by the + // customer}". If the users don't have plugins or don't want to trigger + // plugins, the system_action can be empty + string system_action = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Duplication check for the AgentCoachingInstruction. + DuplicateCheckResult duplicate_check_result = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto index cf2b057c4e79..491947ad1f02 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/generator.proto"; import "google/cloud/dialogflow/v2beta1/participant.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -147,6 +148,10 @@ message AgentAssistantRecord { // Output only. The Dialogflow assist answer. DialogflowAssistAnswer dialogflow_assist_answer = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The generator suggestion. + GeneratorSuggestion generator_suggestion = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto index c7dd12cdb1f2..52bbce5e2d24 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -151,6 +151,8 @@ message InputAudioConfig { // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. Note that queries in // the same session do not necessarily need to specify the same language. + // If not set, the language is inferred from the + // [ConversationProfile.stt_config][google.cloud.dialogflow.v2beta1.ConversationProfile.stt_config]. string language_code = 3 [(google.api.field_behavior) = REQUIRED]; // If `true`, Dialogflow returns @@ -281,6 +283,38 @@ message SynthesizeSpeechConfig { // Optional. The desired voice of the synthesized audio. VoiceSelectionParams voice = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The custom pronunciations for the synthesized audio. + repeated CustomPronunciationParams pronunciations = 6; +} + +// Pronunciation customization for a phrase. +message CustomPronunciationParams { + // The phonetic encoding of the phrase. + enum PhoneticEncoding { + // Not specified. + PHONETIC_ENCODING_UNSPECIFIED = 0; + + // IPA, such as apple -> ˈæpəl. + // https://en.wikipedia.org/wiki/International_Phonetic_Alphabet + PHONETIC_ENCODING_IPA = 1; + + // X-SAMPA, such as apple -> "{p@l". + // https://en.wikipedia.org/wiki/X-SAMPA + PHONETIC_ENCODING_X_SAMPA = 2; + } + + // The phrase to which the customization is applied. + // The phrase can be multiple words, such as proper nouns, but shouldn't span + // the length of the sentence. + string phrase = 1; + + // The phonetic encoding of the phrase. + PhoneticEncoding phonetic_encoding = 2; + + // The pronunciation of the phrase. This must be in the phonetic encoding + // specified above. + string pronunciation = 3; } // Instructs the speech synthesizer how to generate the output audio content. @@ -368,6 +402,9 @@ message SpeechToTextConfig { // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. Note that queries in // the same session do not necessarily need to specify the same language. + // If not specified, the default language configured at + // [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] + // is used. string language_code = 8; // If `true`, Dialogflow returns diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto index 2e3ad694d623..ef9a92b62795 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto @@ -38,6 +38,10 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}" pattern: "projects/{project}/locations/{location}/dataStores/{data_store}" }; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/Tool" + pattern: "projects/{project}/locations/{location}/apps/{app}/tools/{tool}" +}; // Service for managing // [Conversations][google.cloud.dialogflow.v2beta1.Conversation]. @@ -302,8 +306,9 @@ message Conversation { // Output only. The number dialed to connect this call in E.164 format. string dialed_number = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. SDP of the call. It's initially the SDP answer to the endpoint, - // but maybe later updated for the purpose of making the link active, etc. + // Optional. SDP of the call. It's initially the SDP answer to the incoming + // call, but maybe later updated for the purpose of making the link active, + // etc. string sdp = 5 [(google.api.field_behavior) = OPTIONAL]; // Output only. The SIP headers from the initial SIP INVITE. @@ -341,6 +346,12 @@ message Conversation { // relevant context reference. google.protobuf.Timestamp ingestion_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // If the context content was generated from a tool call, specify the + // answer record associated with the tool call. + // Format: `projects//locations//answerRecords/`. + string answer_record = 4; } // Represents the mode in which context reference contents are updated. @@ -862,6 +873,16 @@ message GenerateStatelessSuggestionRequest { // it's trigger event is included here. repeated TriggerEvent trigger_events = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Name of the CX SecuritySettings which is used to redact generated + // response. If this field is empty, try to fetch v2 security_settings, which + // is a project level setting. If this field is empty and no v2 + // security_settings set up in this project, no redaction will be done. + // + // Format: + // `projects//locations//securitySettings/`. + string security_settings = 8 [(google.api.field_behavior) = OPTIONAL]; } // The response message for diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto index b6e9d6ba3c3d..1d15f22172b9 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package google.cloud.dialogflow.v2beta1; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/participant.proto"; import "google/cloud/dialogflow/v2beta1/session.proto"; import "google/rpc/status.proto"; @@ -41,6 +43,8 @@ message ConversationEvent { // An existing conversation has closed. This is fired when a telephone call // is terminated, or a conversation is closed via the API. + // The event is fired for every CompleteConversation call, even if the + // conversation is already closed. CONVERSATION_FINISHED = 2; // An existing conversation has received notification from Dialogflow that diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto index 9fc69b9f7d56..2da9d2d6c146 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/audio_config.proto"; +import "google/cloud/dialogflow/v2beta1/generator.proto"; import "google/cloud/dialogflow/v2beta1/participant.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -362,6 +363,21 @@ message HumanAgentAssistantConfig { bool enable_query_suggestion_only = 17 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Enable returning detailed reasons for suggestion results. + // + // For example, with this field disabled, Knowledge Search feature returns + // NotFound error when no answer is found for the input query. Enabling this + // field will change the behavior to return an OK response with + // detailed information indicating the lack of results. + // + // Supported features: KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST + bool enable_response_debug_info = 18 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings for Responsible AI checks. + // Supported features: KNOWLEDGE_ASSIST + RaiSettings rai_settings = 19 [(google.api.field_behavior) = OPTIONAL]; + // Settings of suggestion trigger. // // Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use @@ -414,6 +430,25 @@ message HumanAgentAssistantConfig { // KNOWLEDGE_ASSIST bool disable_high_latency_features_sync_delivery = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enable skipping event based suggestion if the suggestion is + // empty. + // + // For example, with this field disabled, Knowledge Assist feature sends + // a Pub/Sub message when there are no suggestions. Enabling this field + // will change the behavior to skip the Pub/Sub message in this situation. + bool skip_empty_event_based_suggestion = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, + // use unredacted transcript data (Supported features: AI_COACH) and + // use unredacted ingested context (Supported features: All Agent Assist + // features) + bool use_unredacted_conversation_data = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, enable asynchronous execution of tools. + bool enable_async_tool_call = 9 [(google.api.field_behavior) = OPTIONAL]; } // Config for suggestion query. @@ -613,11 +648,12 @@ message HumanAgentAssistantConfig { // Version of current baseline model. It will be ignored if // [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] // is set. Valid versions are: - // Article Suggestion baseline model: - // - 0.9 - // - 1.0 (default) - // Summarization baseline model: - // - 1.0 + // + // - Article Suggestion baseline model: + // - 0.9 + // - 1.0 (default) + // - Summarization baseline model: + // - 1.0 string baseline_model_version = 8; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto index 9996b3774398..ffdf4bb4789a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto @@ -609,6 +609,9 @@ message KnowledgeOperationMetadata { // Metadata for the Export Data Operation such as the destination of export. ExportOperationMetadata export_operation_metadata = 4; } + + // The time when the operation finished. + google.protobuf.Timestamp done_time = 5; } // Request message for diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto index 2b5c2dffae22..d4128e60a9a4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto @@ -20,6 +20,8 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto"; +import "google/cloud/dialogflow/v2beta1/tool_call.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -30,6 +32,10 @@ option java_multiple_files = true; option java_outer_classname = "GeneratorProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "discoveryengine.googleapis.com/Engine" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}" +}; // Generator Service for LLM powered Agent Assist. This service manages the // configurations of user owned Generators, such as description, context and @@ -283,6 +289,24 @@ message InferenceParameter { optional double top_p = 4 [(google.api.field_behavior) = OPTIONAL]; } +// Agent Coaching context that customer can configure. +message AgentCoachingContext { + // Optional. The overarching guidance for the agent coaching. This should be + // set only for v1.5 and later versions. + string overarching_guidance = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Customized instructions for agent coaching. + repeated AgentCoachingInstruction instructions = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Version of the feature. If not set, default to latest version. + // Current candidates are ["2.5"]. + string version = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output language code. + string output_language_code = 9 [(google.api.field_behavior) = OPTIONAL]; +} + // Represents the section of summarization. message SummarizationSection { // Type enum of the summarization sections. @@ -392,6 +416,9 @@ message Generator { // Input of free from generator to LLM. FreeFormContext free_form_context = 11; + // Input of Agent Coaching feature. + AgentCoachingContext agent_coaching_context = 12; + // Input of Summarization feature. SummarizationContext summarization_context = 13; } @@ -423,6 +450,18 @@ message Generator { // Output only. Update time of this generator. google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Resource names of the tools that the generator can choose from. + // Format: `projects//locations//tools/`. + repeated string tools = 14 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Tool" } + ]; + + // Optional. Configuration for suggestion deduping. This is only applicable to + // AI Coach feature. + SuggestionDedupingConfig suggestion_deduping_config = 23 + [(google.api.field_behavior) = OPTIONAL]; } // Suggestion generated using free form generator. @@ -447,8 +486,94 @@ message SummarySuggestion { [(google.api.field_behavior) = REQUIRED]; } +// Suggestion for coaching agents. +message AgentCoachingSuggestion { + // Sources for the suggestion. + message Sources { + // Output only. Source instruction indexes for the suggestion. This is the + // index of the applicable_instructions field. + repeated int32 instruction_indexes = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Duplication check for the suggestion. + message DuplicateCheckResult { + // The duplicate suggestion details. + // Keeping answer_record and sources together as they are identifiers for + // duplicate suggestions. + message DuplicateSuggestion { + // Output only. The answer record id of the past duplicate suggestion. + string answer_record = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Sources for the suggestion. + Sources sources = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The index of the duplicate suggestion in the past + // suggestion list. + int32 suggestion_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The similarity score of between the past and current + // suggestion. + float similarity_score = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The duplicate suggestions. + repeated DuplicateSuggestion duplicate_suggestions = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Actions suggested for the agent. This is based on applicable instructions. + message AgentActionSuggestion { + // Optional. The suggested action for the agent. + string agent_action = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Sources for the agent action suggestion. + Sources sources = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Duplicate check result for the agent action suggestion. + DuplicateCheckResult duplicate_check_result = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Sample response that the agent can use. This could be based on applicable + // instructions and ingested data from other systems. + message SampleResponse { + // Optional. Sample response for Agent in text. + string response_text = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Sources for the Sample Response. + Sources sources = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Duplicate check result for the sample response. + DuplicateCheckResult duplicate_check_result = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Optional. Instructions applicable based on the current context. + repeated AgentCoachingInstruction applicable_instructions = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Suggested actions for the agent to take. + repeated AgentActionSuggestion agent_action_suggestions = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sample response for the Agent. + repeated SampleResponse sample_responses = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + // Suggestion generated using a Generator. message GeneratorSuggestion { + // Request and response for a tool call. + message ToolCallInfo { + // Required. Request for a tool call. + ToolCall tool_call = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Response for a tool call. + ToolCallResult tool_call_result = 2 + [(google.api.field_behavior) = REQUIRED]; + } + // The suggestion could be one of the many types oneof suggestion { // Optional. Free form suggestion. @@ -458,7 +583,83 @@ message GeneratorSuggestion { // Optional. Suggested summary. SummarySuggestion summary_suggestion = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Suggestion to coach the agent. + AgentCoachingSuggestion agent_coaching_suggestion = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. List of request and response for tool calls executed. + repeated ToolCallInfo tool_call_info = 9 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Config for suggestion deduping. +// NEXT_ID: 3 +message SuggestionDedupingConfig { + // Optional. Whether to enable suggestion deduping. + bool enable_deduping = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The threshold for similarity between two suggestions. + // Acceptable value is [0.0, 1.0], default to 0.8 + float similarity_threshold = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for Responsible AI checks. +message RaiSettings { + // Configuration for a specific RAI category. + message RaiCategoryConfig { + // Enum for RAI category. + enum RaiCategory { + // Default value. + RAI_CATEGORY_UNSPECIFIED = 0; + + // Dangerous content. + DANGEROUS_CONTENT = 1; + + // Sexually explicit content. + SEXUALLY_EXPLICIT = 2; + + // Harassment content. + HARASSMENT = 3; + + // Hate speech content. + HATE_SPEECH = 4; + } + + // Enum for user-configurable sensitivity levels. + enum SensitivityLevel { + // Default value. + // If unspecified, the default behavior is: + // - DANGEROUS_CONTENT: BLOCK_FEW + // - SEXUALLY_EXPLICIT: BLOCK_SOME + // - HARASSMENT: BLOCK_SOME + // - HATE_SPEECH: BLOCK_SOME + SENSITIVITY_LEVEL_UNSPECIFIED = 0; + + // Block most potentially sensitive responses. + BLOCK_MOST = 1; + + // Block some potentially sensitive responses. + BLOCK_SOME = 2; + + // Block a few potentially sensitive responses. + BLOCK_FEW = 3; + + // No filtering for this category. + BLOCK_NONE = 4; + } + + // Optional. The RAI category. + RaiCategory category = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sensitivity level for this category. + SensitivityLevel sensitivity_level = 2 + [(google.api.field_behavior) = OPTIONAL]; } + + // Configuration for a set of RAI categories. + repeated RaiCategoryConfig rai_category_configs = 1; } // The event that triggers the generator and LLM execution. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto new file mode 100644 index 000000000000..b0fbfe8046e3 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto @@ -0,0 +1,579 @@ +// Copyright 2025 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.dialogflow.v2beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/generator.proto"; +import "google/cloud/dialogflow/v2beta1/operations.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "GeneratorEvaluationProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Service for managing generator evaluations. +service GeneratorEvaluations { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Creates evaluation of a generator. + rpc CreateGeneratorEvaluation(CreateGeneratorEvaluationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/locations/*/generators/*}/evaluations" + body: "generator_evaluation" + }; + option (google.api.method_signature) = "parent,generator_evaluation"; + option (google.longrunning.operation_info) = { + response_type: "GeneratorEvaluation" + metadata_type: "google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata" + }; + } + + // Gets an evaluation of generator. + rpc GetGeneratorEvaluation(GetGeneratorEvaluationRequest) + returns (GeneratorEvaluation) { + option (google.api.http) = { + get: "/v2beta1/{name=projects/*/locations/*/generators/*/evaluations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists evaluations of generator. + rpc ListGeneratorEvaluations(ListGeneratorEvaluationsRequest) + returns (ListGeneratorEvaluationsResponse) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*/locations/*/generators/*}/evaluations" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes an evaluation of generator. + rpc DeleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2beta1/{name=projects/*/locations/*/generators/*/evaluations/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request of CreateGeneratorEvaluation. +message CreateGeneratorEvaluationRequest { + // Required. The generator resource name. Format: + // `projects//locations//generators/` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/GeneratorEvaluation" + } + ]; + + // Required. The generator evaluation to be created. + GeneratorEvaluation generator_evaluation = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request of GetGeneratorEvaluation. +message GetGeneratorEvaluationRequest { + // Required. The generator evaluation resource name. Format: + // `projects//locations//generators//evaluations/` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/GeneratorEvaluation" + } + ]; +} + +// Request of ListGeneratorEvaluations. +message ListGeneratorEvaluationsRequest { + // Required. The generator resource name. Format: + // `projects//locations//generators/` + // Wildcard value `-` is supported on generator_id to list evaluations across + // all generators under same project. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/GeneratorEvaluation" + } + ]; + + // Optional. Maximum number of evaluations to return in a + // single page. By default 100 and at most 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response of ListGeneratorEvaluations. +message ListGeneratorEvaluationsResponse { + // The list of evaluations to return. + repeated GeneratorEvaluation generator_evaluations = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// Request of DeleteGeneratorEvaluation. +message DeleteGeneratorEvaluationRequest { + // Required. The generator evaluation resource name. Format: + // `projects//locations//generators// + // evaluations/` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/GeneratorEvaluation" + } + ]; +} + +// Represents evaluation result of a generator. +message GeneratorEvaluation { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/GeneratorEvaluation" + pattern: "projects/{project}/locations/{location}/generators/{generator}/evaluations/{evaluation}" + plural: "generatorEvaluations" + singular: "generatorEvaluation" + }; + + // Output only. Identifier. The resource name of the evaluation. Format: + // `projects//locations//generators// + // evaluations/` + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. The display name of the generator evaluation. At most 64 bytes + // long. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The configuration of the evaluation task. + GeneratorEvaluationConfig generator_evaluation_config = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. Creation time of this generator evaluation. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Completion time of this generator evaluation. + google.protobuf.Timestamp complete_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The initial generator that was used when creating this + // evaluation. This is a copy of the generator read from storage when creating + // the evaluation. + Generator initial_generator = 5 [(google.api.field_behavior) = REQUIRED]; + + // Metrics details. + oneof metrics { + // Output only. Only available when the summarization generator is provided. + SummarizationEvaluationMetrics summarization_metrics = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The result status of the evaluation pipeline. Provides the + // status information including if the evaluation is still in progress, + // completed or failed with certain error and user actionable message. + EvaluationStatus evaluation_status = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A read only boolean field reflecting Zone Separation + // status of the model. The field is an aggregated + // value of ZS status of its underlying dependencies. See more details in + // go/zicy-resource-placement#resource-status + optional bool satisfies_pzs = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A read only boolean field reflecting Zone Isolation status + // of the model. The field is an aggregated value of + // ZI status of its underlying dependencies. See more details in + // go/zicy-resource-placement#resource-status + optional bool satisfies_pzi = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Evaluation metrics for summarization generator. +message SummarizationEvaluationMetrics { + // Decomposition details for accuracy. + message AccuracyDecomposition { + // Output only. The breakdown point of the summary. + string point = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The accuracy reasoning of the breakdown point. + string accuracy_reasoning = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the breakdown point is accurate or not. + optional bool is_accurate = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Decomposition details for adherence. + message AdherenceDecomposition { + option deprecated = true; + + // Output only. The breakdown point of the given instructions. + string point = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The adherence reasoning of the breakdown point. + string adherence_reasoning = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the breakdown point is adherent or not. + bool is_adherent = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Rubric result of the adherence evaluation. A rubric is ued to determine + // if the summary adheres to all aspects of the given instructions. + message AdherenceRubric { + // Output only. The question generated from instruction that used to + // evaluate summary. + string question = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The reasoning of the rubric question is addressed or not. + string reasoning = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A boolean that indicates whether the rubric question is + // addressed or not. + optional bool is_addressed = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Rubric details of the completeness evaluation result. + message CompletenessRubric { + // Output only. The question generated from instruction that used to + // evaluate summary. + string question = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A boolean that indicates whether the rubric question is + // addressed or not. + optional bool is_addressed = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Decomposition details + message Decomposition { + option deprecated = true; + + // One of decomposition details. + oneof decomposition { + // only available for accuracy metric. + AccuracyDecomposition accuracy_decomposition = 1; + + // only available for adherence metric. + AdherenceDecomposition adherence_decomposition = 2; + } + } + + // Evaluation result that contains one of accuracy, adherence or completeness + // evaluation result. + message EvaluationResult { + // One of evaluation result details. + oneof result { + // Only available for accuracy metric. + AccuracyDecomposition accuracy_decomposition = 1; + + // Only available for adherence metric. + AdherenceRubric adherence_rubric = 2; + + // Only available for completeness metric. + CompletenessRubric completeness_rubric = 3; + } + } + + // Evaluation result per conversation(&summary), metric and section. + message SummarizationEvaluationResult { + // Output only. conversation session id + string session_id = 1 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. metric name, e.g. accuracy, completeness, adherence, etc. + string metric = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. section/task name, e.g. action, situation, etc + string section = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. score calculated from decompositions + float score = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary of this section + string section_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of decompostion details + repeated Decomposition decompositions = 7 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of evaluation results. + repeated EvaluationResult evaluation_results = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Overall performance per metric. This is the aggregated score for each + // metric across all conversations that are selected for summarization + // evaluation. + message OverallScoresByMetric { + // Output only. Metric name. e.g. accuracy, adherence, completeness. + string metric = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // A pair of section name and input token count of the input summary section. + message SectionToken { + // Output only. The name of the summary instruction. + string section = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Token count. + optional int64 token_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Aggregated evaluation result on conversation level. This contains + // evaluation results of all the metrics and sections. + message ConversationDetail { + // Aggregated result on metric level. This contains the evaluation results + // of all the sections. + message MetricDetail { + // Section level result. + message SectionDetail { + // Output only. The name of the summary instruction. + string section = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Aggregated(average) score on this section across all + // evaluation results. Either decompositions or rubrics. + optional float score = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary for this section + string section_summary = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of evaluation result. The list only contains one + // kind of the evaluation result. + repeated EvaluationResult evaluation_results = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Metrics name. e.g. accuracy, adherence, completeness. + string metric = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Aggregated(average) score on this metric across all + // sections. + optional float score = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of section details. + repeated SectionDetail section_details = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Conversation transcript that used for summarization + // evaluation as a reference. + repeated MessageEntry message_entries = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary sections that used for summarization evaluation as a + // reference. + repeated SummarySuggestion.SummarySection summary_sections = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of metric details. + repeated MetricDetail metric_details = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Conversation level token count per section. This is an + // aggregated(sum) result of input token of summary acorss all metrics for a + // single conversation. + repeated SectionToken section_tokens = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. A list of evaluation results per conversation(&summary), + // metric and section. + repeated SummarizationEvaluationResult summarization_evaluation_results = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. User bucket uri for merged evaluation score and aggregation + // score csv. + string summarization_evaluation_merged_results_uri = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of aggregated(average) scores per metric section. + repeated OverallScoresByMetric overall_metrics = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Overall token per section. This is an aggregated(sum) result + // of input token of summary acorss all conversations that are selected for + // summarization evaluation. + repeated SectionToken overall_section_tokens = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of conversation details. + repeated ConversationDetail conversation_details = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Generator evaluation input config. +message GeneratorEvaluationConfig { + // Enumeration of input data source type. + enum InputDataSourceType { + // Unspecified InputDataSourceType. Should not be used. + INPUT_DATA_SOURCE_TYPE_UNSPECIFIED = 0; + + // Fetch data from Agent Assist storage. If this source type is chosen, + // input_data_config.start_time and input_data_config.end_timestamp must be + // provided. + AGENT_ASSIST_CONVERSATIONS = 1; + + // Fetch data from Insights storage. If this source type is chosen, + // input_data_config.start_time and input_data_config.end_timestamp must be + // provided. + INSIGHTS_CONVERSATIONS = 2; + } + + // The distinctive configs for Agent Assist conversations as the conversation + // source. + message AgentAssistInputDataConfig { + // Required. The start of the time range for conversations to be evaluated. + // Only conversations created at or after this timestamp will be sampled. + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The end of the time range for conversations to be evaluated. + // Only conversations ended at or before this timestamp will be sampled. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = REQUIRED]; + } + + // The distinctive configs for dataset as the conversation source. + message DatasetInputDataConfig { + // Required. The identifier of the dataset to be evaluated. + // Format: + // `projects//locations//datasets/`. + string dataset = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Input data config details + message InputDataConfig { + // Summary generation options. + enum SummaryGenerationOption { + // Default option will not be used + SUMMARY_GENERATION_OPTION_UNSPECIFIED = 0; + + // Always Generate summary for all conversations. + ALWAYS_GENERATE = 1; + + // Gnerate only missing summaries. + GENERATE_IF_MISSING = 2; + + // Do not generate new summaries. Only use existing summaries found. + DO_NOT_GENERATE = 3; + } + + // Required. The source type of input data. + InputDataSourceType input_data_source_type = 1 + [deprecated = true, (google.api.field_behavior) = REQUIRED]; + + // Optional. The start timestamp to fetch conversation data. + google.protobuf.Timestamp start_time = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. The end timestamp to fetch conversation data. + google.protobuf.Timestamp end_time = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Desired number of conversation-summary pairs to be evaluated. + int32 sample_size = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the summary generation is allowed when the pre-existing + // qualified summaries are insufficient to cover the sample size. + bool is_summary_generation_allowed = 5 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Option to control whether summaries are generated during + // evaluation. + SummaryGenerationOption summary_generation_option = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // The source specific config for the input data. + oneof source_specific_config { + // The distinctive configs for Agent Assist conversations as the + // conversation source. + AgentAssistInputDataConfig agent_assist_input_data_config = 6; + + // The distinctive configs for dataset as the conversation source. + DatasetInputDataConfig dataset_input_data_config = 7; + } + } + + // Evaluation configs for summarization generator. + message SummarizationConfig { + // Optional. Enable accuracy evaluation. + bool enable_accuracy_evaluation = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Version for summarization accuracy. This will determine the + // prompt and model used at backend. + string accuracy_evaluation_version = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Enable completeness evaluation. + bool enable_completeness_evaluation = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Version for summarization completeness. This will determine the + // prompt and model used at backend. + string completeness_evaluation_version = 4 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Version for summarization evaluation. + optional string evaluator_version = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The config/source of input data. + InputDataConfig input_data_config = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The output Cloud Storage bucket path to store eval files, e.g. + // per_summary_accuracy_score report. This path is provided by customer and + // files stored in it are visible to customer, no internal data should be + // stored in this path. + string output_gcs_bucket_path = 2 [(google.api.field_behavior) = REQUIRED]; + + // Feature used for evaluation. + oneof evaluation_feature_config { + // Evaluation configs for summarization generator. + SummarizationConfig summarization_config = 3; + } +} + +// A common evalaution pipeline status. +message EvaluationStatus { + // Output only. If the value is `false`, it means the evaluation is still in + // progress. If `true`, the operation is completed, and either `error` or + // `response` is available. + optional bool done = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error result of the evaluation in case of failure in + // evaluation pipeline. + google.rpc.Status pipeline_status = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto new file mode 100644 index 000000000000..82e7e8262b39 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto @@ -0,0 +1,37 @@ +// Copyright 2025 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.dialogflow.v2beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "OperationsProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Metadata for a +// [GeneratorEvaluations.CreateGeneratorEvaluation][google.cloud.dialogflow.v2beta1.GeneratorEvaluations.CreateGeneratorEvaluation] +// operation. +message GeneratorEvaluationOperationMetadata { + // Output only. The resource name of the generator evaluation. Format: + // `projects//locations//generators//evaluations/` + string generator_evaluation = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index 3641864dfbc0..bdfaad14076e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -130,6 +130,11 @@ service Participants { rpc StreamingAnalyzeContent(stream StreamingAnalyzeContentRequest) returns (stream StreamingAnalyzeContentResponse) {} + // Bidirectional endless streaming version of + // [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]. + rpc BidiStreamingAnalyzeContent(stream BidiStreamingAnalyzeContentRequest) + returns (stream BidiStreamingAnalyzeContentResponse) {} + // Gets suggested articles for a participant based on specific historical // messages. // @@ -272,6 +277,29 @@ message Participant { END_USER = 3; } + // Enumeration of the Agent Desktop Source when using prebuilt Agent + // Assist integration modules. + enum AgentDesktopSource { + // Agent Desktop Source is not specified. + AGENT_DESKTOP_SOURCE_UNSPECIFIED = 0; + + // Agent Desktop Source is Live Person. + LIVE_PERSON = 1; + + // Agent Desktop Source is Genesys Cloud. + GENESYS_CLOUD = 2; + + // Agent Desktop Source is Twilio. + TWILIO = 3; + + // Agent Desktop Source is Salesforce. + SALESFORCE = 4; + + // UI Modules are in use but the desktop is either not currently released or + // setting this field to the applicable desktop. + OTHER = 8; + } + // Optional. The unique identifier of this participant. // Format: `projects//locations//conversations//participants/`. @@ -336,6 +364,19 @@ message Participant { // ``` map documents_metadata_filters = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. For tracking the utilization of prebuilt Agent Assist integration + // modules. This field is only inscope for Integration type that include UI + // Modules, Backend Modules, and Agent Desktop connector, it is out of scope + // for CCaaS and Direct Integration. + // For each human agent, prebuilt UI Modules needs to trigger the + // UpdateParticipant API to update this field. Both + // [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant] + // and + // [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant] + // will be supported. + AgentDesktopSource agent_desktop_source = 10 + [(google.api.field_behavior) = OPTIONAL]; } // Represents a message posted into a conversation. @@ -560,47 +601,51 @@ message AutomatedAgentReply { bytes call_companion_auth_code = 12; } -// Represents the selection of a suggestion. +// Represents the action to take for a tool call that requires confirmation. message SuggestionInput { - // Required. The ID of a suggestion selected by the human agent. - // The suggestion(s) were generated in a previous call to - // request Dialogflow assist. - // The format is: - // `projects//locations//answerRecords/` where is an alphanumeric string. + // Indicate what type of action to take with the tool call. + enum Action { + // Action not specified. + ACTION_UNSPECIFIED = 0; + + // Indicates the user chooses to not make the tool call. It + // is only applicable to tool calls that are waiting for user + // confirmation. + CANCEL = 1; + + // Makes the tool call with provided parameters. This action is intended + // for tool calls that only read but not write data. + REVISE = 2; + + // Makes the tool call with provided parameters. This action is intended + // for tool calls that may write data. + CONFIRM = 3; + } + + // Required. Format: `projects//locations//answerRecords/` + // The answer record associated with the tool call. string answer_record = 1; // Optional. If the customer edited the suggestion before using it, include // the revised text here. TextInput text_override = 2; - // In Dialogflow assist for v3, the user can submit a form by sending - // a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The - // form is uniquely determined by the - // [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] - // field, which identifies a v3 - // [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the - // current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters - // are specified via the - // [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] - // field. - // - // Depending on your protocol or client library language, this is a - // map, associative array, symbol table, dictionary, or JSON object - // composed of a collection of (MapKey, MapValue) pairs: - // - // * MapKey type: string - // * MapKey value: parameter name - // * MapValue type: If parameter's entity type is a composite entity then use - // map, otherwise, depending on the parameter value type, it could be one of - // string, number, boolean, null, list or map. - // * MapValue value: If parameter's entity type is a composite entity then use - // map from composite entity property names to property values, otherwise, - // use parameter value. + // Parameters to be used for the tool call. If not provided, the tool + // will be called without any parameters. google.protobuf.Struct parameters = 4; + // Optional. The type of action to take with the tool. + Action action = 5 [(google.api.field_behavior) = OPTIONAL]; + // The intent to be triggered on V3 agent. IntentInput intent_input = 6; + + // Optional. Time when the current suggest input is sent. For tool calls, this + // timestamp (along with the answer record) will be included in the + // corresponding tool call result so that it can be identified. + google.protobuf.Timestamp send_time = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Represents the intent to trigger programmatically rather than as a result of @@ -931,12 +976,13 @@ message StreamingAnalyzeContentRequest { // The intent to be triggered on V3 agent. // Format: `projects//locations//locations/ - // /agents//intents/`. + // /agents//intents/`. This can only be + // used to trigger the Welcome intent id if you are using text_config. string input_intent = 17; // The input event name. // This can only be sent once and would cancel the ongoing speech - // recognition if any. + // recognition if any. To trigger the Welcome intent use the event "WELCOME" string input_event = 20; } @@ -1873,3 +1919,141 @@ message KnowledgeAssistAnswer { // Records/`. string answer_record = 3; } + +// The request message for +// [Participants.BidiStreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.BidiStreamingAnalyzeContent]. +message BidiStreamingAnalyzeContentRequest { + // The config of the session. + message Config { + // The config about how to process the audio for a voice-based session. + message VoiceSessionConfig { + // Required. The encoding of input audio. + AudioEncoding input_audio_encoding = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The sample rate of input audio. + int32 input_audio_sample_rate_hertz = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The encoding of output audio. + OutputAudioEncoding output_audio_encoding = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The sample rate of output audio. + int32 output_audio_sample_rate_hertz = 4 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether to enable CX proactive processing. + bool enable_cx_proactive_processing = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, Dialogflow will stream the audio bytes from Cloud + // TTS for speech synthesis using the StreamingSynthesize api. + bool enable_streaming_synthesize = 23 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The name of the participant to fetch response for. + // Format: `projects//locations//conversations//participants/`. + string participant = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // The config of the session. + oneof config { + // Configure a voice-based session. + VoiceSessionConfig voice_session_config = 2; + } + + // Parameters to be passed to the virtual agent at the beginning. + google.protobuf.Struct initial_virtual_agent_parameters = 3; + + // Initial parameters for the virtual-agent. + QueryParameters initial_virtual_agent_query_params = 4; + } + + // Input that forms data for a single turn. + message TurnInput { + // Content that indicates the end of the turn. + oneof main_content { + // The UTF-8 encoded natural language text to be processed. + string text = 1; + + // The intent to be triggered on V3 agent. + // Format: `projects//locations//locations/ + // /agents//intents/`. This can only be + // used to trigger the Welcome intent id if the modality is text. + string intent = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // The input event name. + // This can only be sent once and would cancel the ongoing speech + // recognition if any. To trigger the Welcome intent use the + // event "WELCOME" + string event = 3; + } + + // Optional. Parameters to be passed to the virtual agent. + google.protobuf.Struct virtual_agent_parameters = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Input for the conversation. + message Input { + oneof input { + // The content of audio stream to be recognized. + bytes audio = 1; + + // The DTMF digits used to invoke intent and fill in parameter value. + // + // This input is ignored if the previous response indicated that DTMF + // input is not accepted. + TelephonyDtmfEvents dtmf = 2; + + // Turn input. + TurnInput turn = 3; + } + } + + // Required. Possible request types for BidiStreamingAnalyzeContent. + oneof request { + // The config message for this conversation. + Config config = 1; + + // Text, audio or other multi-modality inputs. + // This is the second and following messages sent by the client. + Input input = 2; + } +} + +// The response message for +// [Participants.BidiStreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.BidiStreamingAnalyzeContent]. +message BidiStreamingAnalyzeContentResponse { + // Indicate the user barge-in has been detected. + message BargeInSignal {} + + // Indicate that the turn is complete. + message TurnComplete {} + + // The output response. + oneof response { + // The result of speech recognition. + StreamingRecognitionResult recognition_result = 1; + + // + // Indicate the user barge-in has been detected, and client should stop + // playing back the audio. + BargeInSignal barge_in_signal = 2; + + // The agent response from analyze content. + AnalyzeContentResponse analyze_content_response = 3; + + // Indicate that the turn is complete. + TurnComplete turn_complete = 4; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto index fae69427d200..f23e915d499c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto @@ -769,9 +769,6 @@ message StreamingRecognitionResult { // Message contains a (possibly partial) transcript. TRANSCRIPT = 1; - // Message contains DTMF digits. - DTMF_DIGITS = 3; - // This event indicates that the server has detected the end of the user's // speech utterance and expects no additional speech. Therefore, the server // will not process additional audio (although it may subsequently return @@ -781,6 +778,9 @@ message StreamingRecognitionResult { // `single_utterance` was set to `true`, and is not used otherwise. END_OF_SINGLE_UTTERANCE = 2; + // Message contains DTMF digits. + DTMF_DIGITS = 3; + // Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, // a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected // up to the time of sending, which represents an intermediate result. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto new file mode 100644 index 000000000000..f638695b5b56 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto @@ -0,0 +1,591 @@ +// Copyright 2025 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.dialogflow.v2beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "ToolProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "secretmanager.googleapis.com/SecretVersion" + pattern: "projects/{project}/secrets/{secret}/versions/{version}" +}; + +// Tool Service for LLM powered Agent Assist. Tools can be used to interact with +// remote APIs (e.g. fetching orders) to retrieve additional information as +// input to LLM. +service Tools { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Creates a tool. + rpc CreateTool(CreateToolRequest) returns (Tool) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/locations/*}/tools" + body: "tool" + }; + option (google.api.method_signature) = "parent,tool,tool_id"; + } + + // Retrieves a tool. + rpc GetTool(GetToolRequest) returns (Tool) { + option (google.api.http) = { + get: "/v2beta1/{name=projects/*/locations/*/tools/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists tools. + rpc ListTools(ListToolsRequest) returns (ListToolsResponse) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*/locations/*}/tools" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a tool. + rpc DeleteTool(DeleteToolRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2beta1/{name=projects/*/locations/*/tools/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a tool. + rpc UpdateTool(UpdateToolRequest) returns (Tool) { + option (google.api.http) = { + patch: "/v2beta1/{tool.name=projects/*/locations/*/tools/*}" + body: "tool" + }; + option (google.api.method_signature) = "tool,update_mask"; + } +} + +// Request message of CreateTool. +message CreateToolRequest { + // Required. The project/location to create tool for. Format: + // `projects//locations/` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Tool" + } + ]; + + // Required. The tool to create. + Tool tool = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The ID to use for the tool, which will become the final + // component of the tool's resource name. + // + // The tool ID must be compliant with the regression formula + // `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64]. + // If the field is not provide, an Id will be auto-generated. + // If the field is provided, the caller is responsible for + // 1. the uniqueness of the ID, otherwise the request will be rejected. + // 2. the consistency for whether to use custom ID or not under a project to + // better ensure uniqueness. + string tool_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message of GetTool. +message GetToolRequest { + // Required. The tool resource name to retrieve. Format: + // `projects//locations//tools/` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Tool" } + ]; +} + +// Request message of ListTools. +message ListToolsRequest { + // Required. The project/location to list tools for. Format: + // `projects//locations/` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Tool" + } + ]; + + // Optional. Maximum number of conversation models to return in a single page. + // Default to 10. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response of ListTools. +message ListToolsResponse { + // List of tools retrieved. + repeated Tool tools = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// Request of DeleteTool. +message DeleteToolRequest { + // Required. The tool resource name to delete. Format: + // `projects//locations//tools/` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Tool" } + ]; +} + +// Request of UpdateTool. +message UpdateToolRequest { + // Required. The tool to update. + // The name field of tool is to identify the tool to + // update. + Tool tool = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a tool. +message Tool { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Tool" + pattern: "projects/{project}/locations/{location}/tools/{tool}" + plural: "tools" + singular: "tool" + }; + + // Types of confirmation requirement. + enum ConfirmationRequirement { + // Unspecified. Whether the action requires confirmation is inferred from + // method_type. + CONFIRMATION_REQUIREMENT_UNSPECIFIED = 0; + + // Conformation is required. + REQUIRED = 1; + + // Conformation is not required. + NOT_REQUIRED = 2; + } + + // The method type of the function. + enum MethodType { + // Unspecified. + METHOD_TYPE_UNSPECIFIED = 0; + + // GET method. + GET = 1; + + // POST method. + POST = 2; + + // PUT method. + PUT = 3; + + // DELETE method. + DELETE = 4; + + // PATCH method. + PATCH = 5; + } + + // An ExtensionTool is a way to use Vertex Extensions as a tool. + message ExtensionTool { + // Required. The full name of the referenced vertex extension. + // Format: + // `projects/{project}/locations/{location}/extensions/{extension}` + string name = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // A Function tool describes the functions to be invoked on the client side. + message FunctionTool { + // Optional. The JSON schema is encapsulated in a + // [google.protobuf.Struct][google.protobuf.Struct] to describe the input of + // the function. This input is a JSON object that contains the function's + // parameters as properties of the object. + google.protobuf.Struct input_schema = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The JSON schema is encapsulated in a + // [google.protobuf.Struct][google.protobuf.Struct] to describe the output + // of the function. This output is a JSON object that contains the + // function's parameters as properties of the object. + google.protobuf.Struct output_schema = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The method type of the function. If not specified, the default + // value is GET. + MethodType method_type = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // An OpenAPI tool is a way to provide the Tool specifications in the Open API + // schema format. + message OpenApiTool { + // Schema representation. + oneof schema { + // Required. The OpenAPI schema specified as a text. + string text_schema = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. Authentication information required by the API. + Authentication authentication = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. TLS configuration for the HTTPS verification. + TLSConfig tls_config = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service Directory configuration. + ServiceDirectoryConfig service_directory_config = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // A ConnectorTool enabling using Integration Connectors Connections as tools. + message ConnectorTool { + // Configuration of a Connection operation for the tool to use. + message Action { + // Entity CRUD operation specification. + message EntityOperation { + // The operation to perform on the entity. + enum OperationType { + // Operation type unspecified. Invalid, ConnectorTool create/update + // will fail. + OPERATION_TYPE_UNSPECIFIED = 0; + + // List operation. + LIST = 1; + + // Get operation. + GET = 2; + + // Create operation. + CREATE = 3; + + // Update operation. + UPDATE = 4; + + // Delete operation. + DELETE = 5; + } + + // Required. ID of the entity. + string entity_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Operation to perform on the entity. + OperationType operation = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Specification for an action to configure for the tool to use. + oneof action_spec { + // ID of a Connection action for the tool to use. + string connection_action_id = 4; + + // Entity operation configuration for the tool to use. + EntityOperation entity_operation = 5; + } + + // Optional. Entity fields to use as inputs for the operation. + // If no fields are specified, all fields of the Entity will be used. + repeated string input_fields = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Entity fields to return from the operation. + // If no fields are specified, all fields of the Entity will be returned. + repeated string output_fields = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The full resource name of the referenced Integration Connectors + // Connection. Format: 'projects/*/locations/*/connections/*' + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Actions for the tool to use. + repeated Action actions = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Authentication information required for API calls + message Authentication { + // Config for authentication with API key. + message ApiKeyConfig { + // Required. The parameter name or the header name of the API key. + // E.g., If the API request is "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + string key_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The API key. If the `secret_version_for_api_key` field is + // set, this field will be ignored. + string api_key = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the SecretManager secret version resource storing + // the API key. If this field is set, the `api_key` field will be ignored. + // Format: `projects/{project}/secrets/{secret}/versions/{version}` + string secret_version_for_api_key = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Required. Key location in the request. + RequestLocation request_location = 3 + [(google.api.field_behavior) = REQUIRED]; + } + + // The location of the API key in the request. + enum RequestLocation { + // Default value. This value is unused. + REQUEST_LOCATION_UNSPECIFIED = 0; + + // Represents the key in http header. + HEADER = 1; + + // Represents the key in query string. + QUERY_STRING = 2; + } + + // Config for authentication with OAuth. + message OAuthConfig { + // OAuth grant types. Only [client credential + // grant](https://oauth.net/2/grant-types/client-credentials) is + // supported. + enum OauthGrantType { + // Default value. This value is unused. + OAUTH_GRANT_TYPE_UNSPECIFIED = 0; + + // Represents the [client credential + // flow](https://oauth.net/2/grant-types/client-credentials). + CLIENT_CREDENTIAL = 1; + } + + // Required. OAuth grant types. + OauthGrantType oauth_grant_type = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The client ID from the OAuth provider. + string client_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The client secret from the OAuth provider. If the + // `secret_version_for_client_secret` field is set, this field will be + // ignored. + string client_secret = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the SecretManager secret version resource storing + // the client secret. If this field is set, the `client_secret` field will + // be ignored. Format: + // `projects/{project}/secrets/{secret}/versions/{version}` + string secret_version_for_client_secret = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Required. The token endpoint in the OAuth provider to exchange for an + // access token. + string token_endpoint = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The OAuth scopes to grant. + repeated string scopes = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Config for auth using [Dialogflow service + // agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). + message ServiceAgentAuthConfig { + // Indicate the auth token type generated from the [Diaglogflow service + // agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). + enum ServiceAgentAuth { + // Service agent auth type unspecified. Default to ID_TOKEN. + SERVICE_AGENT_AUTH_UNSPECIFIED = 0; + + // Use [ID + // token](https://cloud.google.com/docs/authentication/token-types#id) + // generated from service agent. This can be used to access Cloud + // Function and Cloud Run after you grant Invoker role to + // `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`. + ID_TOKEN = 1; + + // Use [access + // token](https://cloud.google.com/docs/authentication/token-types#access) + // generated from service agent. This can be used to access other Google + // Cloud APIs after you grant required roles to + // `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`. + ACCESS_TOKEN = 2; + } + + // Optional. Indicate the auth token type generated from the [Diglogflow + // service + // agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). + // The generated token is sent in the Authorization header. + ServiceAgentAuth service_agent_auth = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Config for authentication using bearer token. + message BearerTokenConfig { + // Optional. The text token appended to the text `Bearer` to the request + // Authorization header. + // [Session parameters + // reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref) + // can be used to pass the token dynamically, e.g. + // `$session.params.parameter-id`. + string token = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the SecretManager secret version resource storing + // the Bearer token. If this field is set, the `token` field will be + // ignored. Format: + // `projects/{project}/secrets/{secret}/versions/{version}` + string secret_version_for_token = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + } + + // The auth configuration. + oneof auth_config { + // Config for API key auth. + ApiKeyConfig api_key_config = 1; + + // Config for OAuth. + OAuthConfig oauth_config = 2; + + // Config for [Diglogflow service + // agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent) + // auth. + ServiceAgentAuthConfig service_agent_auth_config = 3; + + // Config for bearer token auth. + BearerTokenConfig bearer_token_config = 4; + } + } + + // The TLS configuration. + message TLSConfig { + // The CA certificate. + message CACert { + // Required. The name of the allowed custom CA certificates. This + // can be used to disambiguate the custom CA certificates. + string display_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The allowed custom CA certificates (in DER format) for + // HTTPS verification. This overrides the default SSL trust store. If this + // is empty or unspecified, Dialogflow will use Google's default trust + // store to verify certificates. N.B. Make sure the HTTPS server + // certificates are signed with "subject alt name". For instance a + // certificate can be self-signed using the following command, + // ``` + // openssl x509 -req -days 200 -in example.com.csr \ + // -signkey example.com.key \ + // -out example.com.crt \ + // -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + // ``` + bytes cert = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Specifies a list of allowed custom CA certificates for HTTPS + // verification. + repeated CACert ca_certs = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Configuration for tools using Service Directory. + message ServiceDirectoryConfig { + // Required. The name of [Service + // Directory](https://cloud.google.com/service-directory) service. + // Format: + // `projects//locations//namespaces//services/`. + // `LocationID` of the service directory must be the same as the location + // of the tool. + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; + } + + // Output only. Identifier. The resource name of the tool. Format: + // `projects//locations//tools/`. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Required. A human readable short name of the tool, which should be unique + // within the project. It should only contain letters, numbers, and + // underscores, and it will be used by LLM to identify the tool. + string tool_key = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A human readable short name of the tool, to be shown on the UI. + string display_name = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A human readable description of the tool. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Confirmation requirement for the actions. Each key is an action + // name in the action_schemas. If an action's confirmation requirement is + // unspecified (either the key is not present, or its value is + // CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the + // action's method_type - confirmation is not required if and only if + // method_type is GET. + map action_confirmation_requirement = 17 + [(google.api.field_behavior) = OPTIONAL]; + + // Specification of the Tool. + oneof specification { + // Vertex extension tool specification. + ExtensionTool extension_spec = 4 [deprecated = true]; + + // Client side executed function specification. + FunctionTool function_spec = 13; + + // Integration connectors tool specification. + ConnectorTool connector_spec = 18; + + // OpenAPI tool. + OpenApiTool open_api_spec = 20; + } + + // Output only. Creation time of this tool. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time of this tool. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A read only boolean field reflecting Zone Separation + // status of the tool. If the field is absent, it means the status is unknown. + optional bool satisfies_pzs = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A read only boolean field reflecting Zone Isolation status + // of the tool. If the field is absent, it means the status is unknown. + optional bool satisfies_pzi = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto new file mode 100644 index 000000000000..5086b9d8b70c --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto @@ -0,0 +1,125 @@ +// Copyright 2025 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.dialogflow.v2beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "ToolCallProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Represents a call of a specific tool's action with the specified inputs. +message ToolCall { + // Tool call states. + enum State { + // Default value. + STATE_UNSPECIFIED = 0; + + // The tool call has been triggered. + TRIGGERED = 1; + + // The tool call requires confirmation from a human. + NEEDS_CONFIRMATION = 2; + } + + // Specifies the source of this tool call. + oneof source { + // Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated + // with this call. Format: + // `projects//locations//tools/`. + string tool = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Tool" + } + ]; + } + + // Optional. A human readable short name of the tool, to be shown on the UI. + string tool_display_name = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A human readable description of the tool. + string tool_display_details = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the tool's action associated with this call. + string action = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The action's input parameters. + google.protobuf.Struct input_parameters = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Create time of the tool call. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The answer record associated with this tool call. + string answer_record = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the tool call + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The result of calling a tool's action. +message ToolCallResult { + // An error produced by the tool call. + message Error { + // Optional. The error message of the function. + string message = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Specifies the source of this tool call. + oneof source { + // Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated + // with this call. Format: + // `projects//locations//tools/`. + string tool = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Tool" + } + ]; + } + + // Optional. The name of the tool's action associated with this call. + string action = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The tool call's result. + oneof result { + // The tool call's error. + Error error = 3; + + // Only populated if the response content is not utf-8 encoded. + // (by definition byte fields are base64 encoded). + bytes raw_content = 5; + + // Only populated if the response content is utf-8 encoded. + string content = 6; + } + + // Output only. Create time of the tool call result. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The answer record associated with this tool call result. + string answer_record = 9 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto index 201f68ff23ec..a9f5e291bebf 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.cloud.dialogflow.v2beta1; +import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/context.proto"; import "google/cloud/dialogflow/v2beta1/intent.proto"; import "google/cloud/dialogflow/v2beta1/session.proto"; @@ -28,6 +29,10 @@ option java_multiple_files = true; option java_outer_classname = "WebhookProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "servicedirectory.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" +}; // The request message for a webhook call. message WebhookRequest { diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/generatestatelesssuggestion/AsyncGenerateStatelessSuggestion.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/generatestatelesssuggestion/AsyncGenerateStatelessSuggestion.java index 5b78ba51cf6a..63f4d0c28c1f 100644 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/generatestatelesssuggestion/AsyncGenerateStatelessSuggestion.java +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/generatestatelesssuggestion/AsyncGenerateStatelessSuggestion.java @@ -47,6 +47,7 @@ public static void asyncGenerateStatelessSuggestion() throws Exception { .putAllContextReferences(new HashMap()) .setConversationContext(ConversationContext.newBuilder().build()) .addAllTriggerEvents(new ArrayList()) + .setSecuritySettings("securitySettings-1062971517") .build(); ApiFuture future = conversationsClient.generateStatelessSuggestionCallable().futureCall(request); diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/generatestatelesssuggestion/SyncGenerateStatelessSuggestion.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/generatestatelesssuggestion/SyncGenerateStatelessSuggestion.java index 385177b613c3..f43dc5818eaf 100644 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/generatestatelesssuggestion/SyncGenerateStatelessSuggestion.java +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/conversations/generatestatelesssuggestion/SyncGenerateStatelessSuggestion.java @@ -46,6 +46,7 @@ public static void syncGenerateStatelessSuggestion() throws Exception { .putAllContextReferences(new HashMap()) .setConversationContext(ConversationContext.newBuilder().build()) .addAllTriggerEvents(new ArrayList()) + .setSecuritySettings("securitySettings-1062971517") .build(); GenerateStatelessSuggestionResponse response = conversationsClient.generateStatelessSuggestion(request); diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/create/SyncCreateSetCredentialsProvider.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..8264a2e15aa2 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsSettings; +import com.google.cloud.dialogflow.v2beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + GeneratorEvaluationsSettings generatorEvaluationsSettings = + GeneratorEvaluationsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create(generatorEvaluationsSettings); + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_Create_SetCredentialsProvider_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/create/SyncCreateSetEndpoint.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..b0514bbb68e8 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_Create_SetEndpoint_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsSettings; +import com.google.cloud.dialogflow.v2beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + GeneratorEvaluationsSettings generatorEvaluationsSettings = + GeneratorEvaluationsSettings.newBuilder().setEndpoint(myEndpoint).build(); + GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create(generatorEvaluationsSettings); + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_Create_SetEndpoint_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9fa27d1adcda --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + GeneratorEvaluationsSettings generatorEvaluationsSettings = + GeneratorEvaluationsSettings.newHttpJsonBuilder().build(); + GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create(generatorEvaluationsSettings); + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/AsyncCreateGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/AsyncCreateGeneratorEvaluation.java new file mode 100644 index 000000000000..e836428177a5 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/AsyncCreateGeneratorEvaluation.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; +import com.google.longrunning.Operation; + +public class AsyncCreateGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + asyncCreateGeneratorEvaluation(); + } + + public static void asyncCreateGeneratorEvaluation() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + CreateGeneratorEvaluationRequest request = + CreateGeneratorEvaluationRequest.newBuilder() + .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString()) + .setGeneratorEvaluation(GeneratorEvaluation.newBuilder().build()) + .build(); + ApiFuture future = + generatorEvaluationsClient.createGeneratorEvaluationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/AsyncCreateGeneratorEvaluationLRO.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/AsyncCreateGeneratorEvaluationLRO.java new file mode 100644 index 000000000000..d8fe8c9e10f6 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/AsyncCreateGeneratorEvaluationLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationOperationMetadata; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; + +public class AsyncCreateGeneratorEvaluationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateGeneratorEvaluationLRO(); + } + + public static void asyncCreateGeneratorEvaluationLRO() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + CreateGeneratorEvaluationRequest request = + CreateGeneratorEvaluationRequest.newBuilder() + .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString()) + .setGeneratorEvaluation(GeneratorEvaluation.newBuilder().build()) + .build(); + OperationFuture future = + generatorEvaluationsClient + .createGeneratorEvaluationOperationCallable() + .futureCall(request); + // Do something. + GeneratorEvaluation response = future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_LRO_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/SyncCreateGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/SyncCreateGeneratorEvaluation.java new file mode 100644 index 000000000000..c14f87271fc0 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/SyncCreateGeneratorEvaluation.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_sync] +import com.google.cloud.dialogflow.v2beta1.CreateGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; + +public class SyncCreateGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateGeneratorEvaluation(); + } + + public static void syncCreateGeneratorEvaluation() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + CreateGeneratorEvaluationRequest request = + CreateGeneratorEvaluationRequest.newBuilder() + .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString()) + .setGeneratorEvaluation(GeneratorEvaluation.newBuilder().build()) + .build(); + GeneratorEvaluation response = + generatorEvaluationsClient.createGeneratorEvaluationAsync(request).get(); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/SyncCreateGeneratorEvaluationGeneratornameGeneratorevaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/SyncCreateGeneratorEvaluationGeneratornameGeneratorevaluation.java new file mode 100644 index 000000000000..78df49030655 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/SyncCreateGeneratorEvaluationGeneratornameGeneratorevaluation.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_GeneratornameGeneratorevaluation_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; + +public class SyncCreateGeneratorEvaluationGeneratornameGeneratorevaluation { + + public static void main(String[] args) throws Exception { + syncCreateGeneratorEvaluationGeneratornameGeneratorevaluation(); + } + + public static void syncCreateGeneratorEvaluationGeneratornameGeneratorevaluation() + 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + GeneratorEvaluation response = + generatorEvaluationsClient + .createGeneratorEvaluationAsync(parent, generatorEvaluation) + .get(); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_GeneratornameGeneratorevaluation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/SyncCreateGeneratorEvaluationStringGeneratorevaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/SyncCreateGeneratorEvaluationStringGeneratorevaluation.java new file mode 100644 index 000000000000..81fbc0a2919b --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/creategeneratorevaluation/SyncCreateGeneratorEvaluationStringGeneratorevaluation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_StringGeneratorevaluation_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; + +public class SyncCreateGeneratorEvaluationStringGeneratorevaluation { + + public static void main(String[] args) throws Exception { + syncCreateGeneratorEvaluationStringGeneratorevaluation(); + } + + public static void syncCreateGeneratorEvaluationStringGeneratorevaluation() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + String parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString(); + GeneratorEvaluation generatorEvaluation = GeneratorEvaluation.newBuilder().build(); + GeneratorEvaluation response = + generatorEvaluationsClient + .createGeneratorEvaluationAsync(parent, generatorEvaluation) + .get(); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_StringGeneratorevaluation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/AsyncDeleteGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/AsyncDeleteGeneratorEvaluation.java new file mode 100644 index 000000000000..7372c6440766 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/AsyncDeleteGeneratorEvaluation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationName; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + asyncDeleteGeneratorEvaluation(); + } + + public static void asyncDeleteGeneratorEvaluation() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + DeleteGeneratorEvaluationRequest request = + DeleteGeneratorEvaluationRequest.newBuilder() + .setName( + GeneratorEvaluationName.of( + "[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .build(); + ApiFuture future = + generatorEvaluationsClient.deleteGeneratorEvaluationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/SyncDeleteGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/SyncDeleteGeneratorEvaluation.java new file mode 100644 index 000000000000..1b8c7d81e1d0 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/SyncDeleteGeneratorEvaluation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_sync] +import com.google.cloud.dialogflow.v2beta1.DeleteGeneratorEvaluationRequest; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationName; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + syncDeleteGeneratorEvaluation(); + } + + public static void syncDeleteGeneratorEvaluation() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + DeleteGeneratorEvaluationRequest request = + DeleteGeneratorEvaluationRequest.newBuilder() + .setName( + GeneratorEvaluationName.of( + "[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .build(); + generatorEvaluationsClient.deleteGeneratorEvaluation(request); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/SyncDeleteGeneratorEvaluationGeneratorevaluationname.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/SyncDeleteGeneratorEvaluationGeneratorevaluationname.java new file mode 100644 index 000000000000..1f45f8cdad70 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/SyncDeleteGeneratorEvaluationGeneratorevaluationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_Generatorevaluationname_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationName; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGeneratorEvaluationGeneratorevaluationname { + + public static void main(String[] args) throws Exception { + syncDeleteGeneratorEvaluationGeneratorevaluationname(); + } + + public static void syncDeleteGeneratorEvaluationGeneratorevaluationname() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + generatorEvaluationsClient.deleteGeneratorEvaluation(name); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_Generatorevaluationname_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/SyncDeleteGeneratorEvaluationString.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/SyncDeleteGeneratorEvaluationString.java new file mode 100644 index 000000000000..2cbf4690dbe5 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/deletegeneratorevaluation/SyncDeleteGeneratorEvaluationString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_String_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationName; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGeneratorEvaluationString { + + public static void main(String[] args) throws Exception { + syncDeleteGeneratorEvaluationString(); + } + + public static void syncDeleteGeneratorEvaluationString() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + String name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString(); + generatorEvaluationsClient.deleteGeneratorEvaluation(name); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_String_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/AsyncGetGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/AsyncGetGeneratorEvaluation.java new file mode 100644 index 000000000000..005b5ec130ee --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/AsyncGetGeneratorEvaluation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_GetGeneratorEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationName; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest; + +public class AsyncGetGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + asyncGetGeneratorEvaluation(); + } + + public static void asyncGetGeneratorEvaluation() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + GetGeneratorEvaluationRequest request = + GetGeneratorEvaluationRequest.newBuilder() + .setName( + GeneratorEvaluationName.of( + "[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .build(); + ApiFuture future = + generatorEvaluationsClient.getGeneratorEvaluationCallable().futureCall(request); + // Do something. + GeneratorEvaluation response = future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_GetGeneratorEvaluation_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/SyncGetGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/SyncGetGeneratorEvaluation.java new file mode 100644 index 000000000000..819613e58fb3 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/SyncGetGeneratorEvaluation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_GetGeneratorEvaluation_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationName; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GetGeneratorEvaluationRequest; + +public class SyncGetGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + syncGetGeneratorEvaluation(); + } + + public static void syncGetGeneratorEvaluation() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + GetGeneratorEvaluationRequest request = + GetGeneratorEvaluationRequest.newBuilder() + .setName( + GeneratorEvaluationName.of( + "[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString()) + .build(); + GeneratorEvaluation response = generatorEvaluationsClient.getGeneratorEvaluation(request); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_GetGeneratorEvaluation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/SyncGetGeneratorEvaluationGeneratorevaluationname.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/SyncGetGeneratorEvaluationGeneratorevaluationname.java new file mode 100644 index 000000000000..385cd5a3ad48 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/SyncGetGeneratorEvaluationGeneratorevaluationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_GetGeneratorEvaluation_Generatorevaluationname_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationName; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; + +public class SyncGetGeneratorEvaluationGeneratorevaluationname { + + public static void main(String[] args) throws Exception { + syncGetGeneratorEvaluationGeneratorevaluationname(); + } + + public static void syncGetGeneratorEvaluationGeneratorevaluationname() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + GeneratorEvaluationName name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]"); + GeneratorEvaluation response = generatorEvaluationsClient.getGeneratorEvaluation(name); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_GetGeneratorEvaluation_Generatorevaluationname_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/SyncGetGeneratorEvaluationString.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/SyncGetGeneratorEvaluationString.java new file mode 100644 index 000000000000..8026a10836c6 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getgeneratorevaluation/SyncGetGeneratorEvaluationString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_GetGeneratorEvaluation_String_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationName; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; + +public class SyncGetGeneratorEvaluationString { + + public static void main(String[] args) throws Exception { + syncGetGeneratorEvaluationString(); + } + + public static void syncGetGeneratorEvaluationString() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + String name = + GeneratorEvaluationName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]", "[EVALUATION]") + .toString(); + GeneratorEvaluation response = generatorEvaluationsClient.getGeneratorEvaluation(name); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_GetGeneratorEvaluation_String_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getlocation/AsyncGetLocation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..7d9ae1c44e82 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getlocation/AsyncGetLocation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + generatorEvaluationsClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_GetLocation_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getlocation/SyncGetLocation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..34492e2e5407 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/getlocation/SyncGetLocation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_GetLocation_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = generatorEvaluationsClient.getLocation(request); + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_GetLocation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/AsyncListGeneratorEvaluations.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/AsyncListGeneratorEvaluations.java new file mode 100644 index 000000000000..e990ee94edd7 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/AsyncListGeneratorEvaluations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest; + +public class AsyncListGeneratorEvaluations { + + public static void main(String[] args) throws Exception { + asyncListGeneratorEvaluations(); + } + + public static void asyncListGeneratorEvaluations() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + ListGeneratorEvaluationsRequest request = + ListGeneratorEvaluationsRequest.newBuilder() + .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + generatorEvaluationsClient.listGeneratorEvaluationsPagedCallable().futureCall(request); + // Do something. + for (GeneratorEvaluation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/AsyncListGeneratorEvaluationsPaged.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/AsyncListGeneratorEvaluationsPaged.java new file mode 100644 index 000000000000..da83109d7324 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/AsyncListGeneratorEvaluationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_Paged_async] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse; +import com.google.common.base.Strings; + +public class AsyncListGeneratorEvaluationsPaged { + + public static void main(String[] args) throws Exception { + asyncListGeneratorEvaluationsPaged(); + } + + public static void asyncListGeneratorEvaluationsPaged() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + ListGeneratorEvaluationsRequest request = + ListGeneratorEvaluationsRequest.newBuilder() + .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListGeneratorEvaluationsResponse response = + generatorEvaluationsClient.listGeneratorEvaluationsCallable().call(request); + for (GeneratorEvaluation element : response.getGeneratorEvaluationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_Paged_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/SyncListGeneratorEvaluations.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/SyncListGeneratorEvaluations.java new file mode 100644 index 000000000000..11f534db6116 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/SyncListGeneratorEvaluations.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; +import com.google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsRequest; + +public class SyncListGeneratorEvaluations { + + public static void main(String[] args) throws Exception { + syncListGeneratorEvaluations(); + } + + public static void syncListGeneratorEvaluations() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + ListGeneratorEvaluationsRequest request = + ListGeneratorEvaluationsRequest.newBuilder() + .setParent(GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (GeneratorEvaluation element : + generatorEvaluationsClient.listGeneratorEvaluations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/SyncListGeneratorEvaluationsGeneratorname.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/SyncListGeneratorEvaluationsGeneratorname.java new file mode 100644 index 000000000000..09d5584ee9f1 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/SyncListGeneratorEvaluationsGeneratorname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_Generatorname_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; + +public class SyncListGeneratorEvaluationsGeneratorname { + + public static void main(String[] args) throws Exception { + syncListGeneratorEvaluationsGeneratorname(); + } + + public static void syncListGeneratorEvaluationsGeneratorname() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + GeneratorName parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]"); + for (GeneratorEvaluation element : + generatorEvaluationsClient.listGeneratorEvaluations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_Generatorname_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/SyncListGeneratorEvaluationsString.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/SyncListGeneratorEvaluationsString.java new file mode 100644 index 000000000000..2ce32044c7bb --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listgeneratorevaluations/SyncListGeneratorEvaluationsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_String_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluation; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.dialogflow.v2beta1.GeneratorName; + +public class SyncListGeneratorEvaluationsString { + + public static void main(String[] args) throws Exception { + syncListGeneratorEvaluationsString(); + } + + public static void syncListGeneratorEvaluationsString() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + String parent = GeneratorName.of("[PROJECT]", "[LOCATION]", "[GENERATOR]").toString(); + for (GeneratorEvaluation element : + generatorEvaluationsClient.listGeneratorEvaluations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_String_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listlocations/AsyncListLocations.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..831c89564ef5 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + generatorEvaluationsClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_ListLocations_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listlocations/AsyncListLocationsPaged.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..c37db22cb8bc --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_ListLocations_Paged_async] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + generatorEvaluationsClient.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; + } + } + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_ListLocations_Paged_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listlocations/SyncListLocations.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..5f709cfdc791 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluations/listlocations/SyncListLocations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluations_ListLocations_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (GeneratorEvaluationsClient generatorEvaluationsClient = + GeneratorEvaluationsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : generatorEvaluationsClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluations_ListLocations_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluationssettings/creategeneratorevaluation/SyncCreateGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluationssettings/creategeneratorevaluation/SyncCreateGeneratorEvaluation.java new file mode 100644 index 000000000000..7738328e27dd --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluationssettings/creategeneratorevaluation/SyncCreateGeneratorEvaluation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluationsSettings_CreateGeneratorEvaluation_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsSettings; +import java.time.Duration; + +public class SyncCreateGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateGeneratorEvaluation(); + } + + public static void syncCreateGeneratorEvaluation() 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 + GeneratorEvaluationsSettings.Builder generatorEvaluationsSettingsBuilder = + GeneratorEvaluationsSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + generatorEvaluationsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluationsSettings_CreateGeneratorEvaluation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluationssettings/getgeneratorevaluation/SyncGetGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluationssettings/getgeneratorevaluation/SyncGetGeneratorEvaluation.java new file mode 100644 index 000000000000..6f262f4642d0 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/generatorevaluationssettings/getgeneratorevaluation/SyncGetGeneratorEvaluation.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluationsSettings_GetGeneratorEvaluation_sync] +import com.google.cloud.dialogflow.v2beta1.GeneratorEvaluationsSettings; +import java.time.Duration; + +public class SyncGetGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + syncGetGeneratorEvaluation(); + } + + public static void syncGetGeneratorEvaluation() 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 + GeneratorEvaluationsSettings.Builder generatorEvaluationsSettingsBuilder = + GeneratorEvaluationsSettings.newBuilder(); + generatorEvaluationsSettingsBuilder + .getGeneratorEvaluationSettings() + .setRetrySettings( + generatorEvaluationsSettingsBuilder + .getGeneratorEvaluationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + GeneratorEvaluationsSettings generatorEvaluationsSettings = + generatorEvaluationsSettingsBuilder.build(); + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluationsSettings_GetGeneratorEvaluation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/bidistreaminganalyzecontent/AsyncBidiStreamingAnalyzeContent.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/bidistreaminganalyzecontent/AsyncBidiStreamingAnalyzeContent.java new file mode 100644 index 000000000000..aa288edc517c --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/bidistreaminganalyzecontent/AsyncBidiStreamingAnalyzeContent.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Participants_BidiStreamingAnalyzeContent_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest; +import com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse; +import com.google.cloud.dialogflow.v2beta1.ParticipantsClient; + +public class AsyncBidiStreamingAnalyzeContent { + + public static void main(String[] args) throws Exception { + asyncBidiStreamingAnalyzeContent(); + } + + public static void asyncBidiStreamingAnalyzeContent() 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 (ParticipantsClient participantsClient = ParticipantsClient.create()) { + BidiStream + bidiStream = participantsClient.bidiStreamingAnalyzeContentCallable().call(); + BidiStreamingAnalyzeContentRequest request = + BidiStreamingAnalyzeContentRequest.newBuilder().build(); + bidiStream.send(request); + for (BidiStreamingAnalyzeContentResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END dialogflow_v2beta1_generated_Participants_BidiStreamingAnalyzeContent_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/stub/generatorevaluationsstubsettings/creategeneratorevaluation/SyncCreateGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/stub/generatorevaluationsstubsettings/creategeneratorevaluation/SyncCreateGeneratorEvaluation.java new file mode 100644 index 000000000000..786960024ccd --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/stub/generatorevaluationsstubsettings/creategeneratorevaluation/SyncCreateGeneratorEvaluation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluationsStubSettings_CreateGeneratorEvaluation_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.dialogflow.v2beta1.stub.GeneratorEvaluationsStubSettings; +import java.time.Duration; + +public class SyncCreateGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateGeneratorEvaluation(); + } + + public static void syncCreateGeneratorEvaluation() 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 + GeneratorEvaluationsStubSettings.Builder generatorEvaluationsSettingsBuilder = + GeneratorEvaluationsStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + generatorEvaluationsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluationsStubSettings_CreateGeneratorEvaluation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/stub/generatorevaluationsstubsettings/getgeneratorevaluation/SyncGetGeneratorEvaluation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/stub/generatorevaluationsstubsettings/getgeneratorevaluation/SyncGetGeneratorEvaluation.java new file mode 100644 index 000000000000..fccbdecbfa5c --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/stub/generatorevaluationsstubsettings/getgeneratorevaluation/SyncGetGeneratorEvaluation.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub.samples; + +// [START dialogflow_v2beta1_generated_GeneratorEvaluationsStubSettings_GetGeneratorEvaluation_sync] +import com.google.cloud.dialogflow.v2beta1.stub.GeneratorEvaluationsStubSettings; +import java.time.Duration; + +public class SyncGetGeneratorEvaluation { + + public static void main(String[] args) throws Exception { + syncGetGeneratorEvaluation(); + } + + public static void syncGetGeneratorEvaluation() 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 + GeneratorEvaluationsStubSettings.Builder generatorEvaluationsSettingsBuilder = + GeneratorEvaluationsStubSettings.newBuilder(); + generatorEvaluationsSettingsBuilder + .getGeneratorEvaluationSettings() + .setRetrySettings( + generatorEvaluationsSettingsBuilder + .getGeneratorEvaluationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + GeneratorEvaluationsStubSettings generatorEvaluationsSettings = + generatorEvaluationsSettingsBuilder.build(); + } +} +// [END dialogflow_v2beta1_generated_GeneratorEvaluationsStubSettings_GetGeneratorEvaluation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/stub/toolsstubsettings/createtool/SyncCreateTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/stub/toolsstubsettings/createtool/SyncCreateTool.java new file mode 100644 index 000000000000..07fa7a1d158a --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/stub/toolsstubsettings/createtool/SyncCreateTool.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.stub.samples; + +// [START dialogflow_v2beta1_generated_ToolsStubSettings_CreateTool_sync] +import com.google.cloud.dialogflow.v2beta1.stub.ToolsStubSettings; +import java.time.Duration; + +public class SyncCreateTool { + + public static void main(String[] args) throws Exception { + syncCreateTool(); + } + + public static void syncCreateTool() 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 + ToolsStubSettings.Builder toolsSettingsBuilder = ToolsStubSettings.newBuilder(); + toolsSettingsBuilder + .createToolSettings() + .setRetrySettings( + toolsSettingsBuilder + .createToolSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ToolsStubSettings toolsSettings = toolsSettingsBuilder.build(); + } +} +// [END dialogflow_v2beta1_generated_ToolsStubSettings_CreateTool_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/create/SyncCreateSetCredentialsProvider.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..adc1c1c3324a --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.dialogflow.v2beta1.ToolsSettings; +import com.google.cloud.dialogflow.v2beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + ToolsSettings toolsSettings = + ToolsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ToolsClient toolsClient = ToolsClient.create(toolsSettings); + } +} +// [END dialogflow_v2beta1_generated_Tools_Create_SetCredentialsProvider_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/create/SyncCreateSetEndpoint.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..2d933db245da --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/create/SyncCreateSetEndpoint.java @@ -0,0 +1,40 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_Create_SetEndpoint_sync] +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.dialogflow.v2beta1.ToolsSettings; +import com.google.cloud.dialogflow.v2beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + ToolsSettings toolsSettings = ToolsSettings.newBuilder().setEndpoint(myEndpoint).build(); + ToolsClient toolsClient = ToolsClient.create(toolsSettings); + } +} +// [END dialogflow_v2beta1_generated_Tools_Create_SetEndpoint_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/create/SyncCreateUseHttpJsonTransport.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c0fd8094342d --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_Create_UseHttpJsonTransport_sync] +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.dialogflow.v2beta1.ToolsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + ToolsSettings toolsSettings = ToolsSettings.newHttpJsonBuilder().build(); + ToolsClient toolsClient = ToolsClient.create(toolsSettings); + } +} +// [END dialogflow_v2beta1_generated_Tools_Create_UseHttpJsonTransport_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/AsyncCreateTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/AsyncCreateTool.java new file mode 100644 index 000000000000..47dacea8ee8c --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/AsyncCreateTool.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_CreateTool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.CreateToolRequest; +import com.google.cloud.dialogflow.v2beta1.LocationName; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class AsyncCreateTool { + + public static void main(String[] args) throws Exception { + asyncCreateTool(); + } + + public static void asyncCreateTool() 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 (ToolsClient toolsClient = ToolsClient.create()) { + CreateToolRequest request = + CreateToolRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTool(Tool.newBuilder().build()) + .setToolId("toolId-868061997") + .build(); + ApiFuture future = toolsClient.createToolCallable().futureCall(request); + // Do something. + Tool response = future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_CreateTool_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/SyncCreateTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/SyncCreateTool.java new file mode 100644 index 000000000000..b3014ee8fec7 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/SyncCreateTool.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_CreateTool_sync] +import com.google.cloud.dialogflow.v2beta1.CreateToolRequest; +import com.google.cloud.dialogflow.v2beta1.LocationName; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class SyncCreateTool { + + public static void main(String[] args) throws Exception { + syncCreateTool(); + } + + public static void syncCreateTool() 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 (ToolsClient toolsClient = ToolsClient.create()) { + CreateToolRequest request = + CreateToolRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTool(Tool.newBuilder().build()) + .setToolId("toolId-868061997") + .build(); + Tool response = toolsClient.createTool(request); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_CreateTool_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/SyncCreateToolLocationnameToolString.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/SyncCreateToolLocationnameToolString.java new file mode 100644 index 000000000000..dc6323b0a3b2 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/SyncCreateToolLocationnameToolString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_CreateTool_LocationnameToolString_sync] +import com.google.cloud.dialogflow.v2beta1.LocationName; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class SyncCreateToolLocationnameToolString { + + public static void main(String[] args) throws Exception { + syncCreateToolLocationnameToolString(); + } + + public static void syncCreateToolLocationnameToolString() 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 (ToolsClient toolsClient = ToolsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + Tool response = toolsClient.createTool(parent, tool, toolId); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_CreateTool_LocationnameToolString_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/SyncCreateToolStringToolString.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/SyncCreateToolStringToolString.java new file mode 100644 index 000000000000..9f4391b4ed13 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/createtool/SyncCreateToolStringToolString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_CreateTool_StringToolString_sync] +import com.google.cloud.dialogflow.v2beta1.LocationName; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class SyncCreateToolStringToolString { + + public static void main(String[] args) throws Exception { + syncCreateToolStringToolString(); + } + + public static void syncCreateToolStringToolString() 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 (ToolsClient toolsClient = ToolsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + Tool response = toolsClient.createTool(parent, tool, toolId); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_CreateTool_StringToolString_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/AsyncDeleteTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/AsyncDeleteTool.java new file mode 100644 index 000000000000..1e91728875fe --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/AsyncDeleteTool.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_DeleteTool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.DeleteToolRequest; +import com.google.cloud.dialogflow.v2beta1.ToolName; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteTool { + + public static void main(String[] args) throws Exception { + asyncDeleteTool(); + } + + public static void asyncDeleteTool() 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 (ToolsClient toolsClient = ToolsClient.create()) { + DeleteToolRequest request = + DeleteToolRequest.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .build(); + ApiFuture future = toolsClient.deleteToolCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_DeleteTool_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/SyncDeleteTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/SyncDeleteTool.java new file mode 100644 index 000000000000..1368bdd02e5e --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/SyncDeleteTool.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_DeleteTool_sync] +import com.google.cloud.dialogflow.v2beta1.DeleteToolRequest; +import com.google.cloud.dialogflow.v2beta1.ToolName; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteTool { + + public static void main(String[] args) throws Exception { + syncDeleteTool(); + } + + public static void syncDeleteTool() 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 (ToolsClient toolsClient = ToolsClient.create()) { + DeleteToolRequest request = + DeleteToolRequest.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .build(); + toolsClient.deleteTool(request); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_DeleteTool_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/SyncDeleteToolString.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/SyncDeleteToolString.java new file mode 100644 index 000000000000..7f233fa5e41c --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/SyncDeleteToolString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_DeleteTool_String_sync] +import com.google.cloud.dialogflow.v2beta1.ToolName; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteToolString { + + public static void main(String[] args) throws Exception { + syncDeleteToolString(); + } + + public static void syncDeleteToolString() 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 (ToolsClient toolsClient = ToolsClient.create()) { + String name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString(); + toolsClient.deleteTool(name); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_DeleteTool_String_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/SyncDeleteToolToolname.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/SyncDeleteToolToolname.java new file mode 100644 index 000000000000..95f97f61eaf0 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/deletetool/SyncDeleteToolToolname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_DeleteTool_Toolname_sync] +import com.google.cloud.dialogflow.v2beta1.ToolName; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteToolToolname { + + public static void main(String[] args) throws Exception { + syncDeleteToolToolname(); + } + + public static void syncDeleteToolToolname() 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 (ToolsClient toolsClient = ToolsClient.create()) { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + toolsClient.deleteTool(name); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_DeleteTool_Toolname_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/getlocation/AsyncGetLocation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..3f1f5107e89b --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (ToolsClient toolsClient = ToolsClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = toolsClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_GetLocation_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/getlocation/SyncGetLocation.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..1fdeaa1b7d52 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_GetLocation_sync] +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (ToolsClient toolsClient = ToolsClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = toolsClient.getLocation(request); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_GetLocation_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/AsyncGetTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/AsyncGetTool.java new file mode 100644 index 000000000000..38dcc33ffb50 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/AsyncGetTool.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_GetTool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.GetToolRequest; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolName; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class AsyncGetTool { + + public static void main(String[] args) throws Exception { + asyncGetTool(); + } + + public static void asyncGetTool() 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 (ToolsClient toolsClient = ToolsClient.create()) { + GetToolRequest request = + GetToolRequest.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .build(); + ApiFuture future = toolsClient.getToolCallable().futureCall(request); + // Do something. + Tool response = future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_GetTool_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/SyncGetTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/SyncGetTool.java new file mode 100644 index 000000000000..a24eea11c335 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/SyncGetTool.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_GetTool_sync] +import com.google.cloud.dialogflow.v2beta1.GetToolRequest; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolName; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class SyncGetTool { + + public static void main(String[] args) throws Exception { + syncGetTool(); + } + + public static void syncGetTool() 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 (ToolsClient toolsClient = ToolsClient.create()) { + GetToolRequest request = + GetToolRequest.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString()) + .build(); + Tool response = toolsClient.getTool(request); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_GetTool_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/SyncGetToolString.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/SyncGetToolString.java new file mode 100644 index 000000000000..9173fe07e924 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/SyncGetToolString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_GetTool_String_sync] +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolName; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class SyncGetToolString { + + public static void main(String[] args) throws Exception { + syncGetToolString(); + } + + public static void syncGetToolString() 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 (ToolsClient toolsClient = ToolsClient.create()) { + String name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]").toString(); + Tool response = toolsClient.getTool(name); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_GetTool_String_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/SyncGetToolToolname.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/SyncGetToolToolname.java new file mode 100644 index 000000000000..d612ca76824e --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/gettool/SyncGetToolToolname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_GetTool_Toolname_sync] +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolName; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class SyncGetToolToolname { + + public static void main(String[] args) throws Exception { + syncGetToolToolname(); + } + + public static void syncGetToolToolname() 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 (ToolsClient toolsClient = ToolsClient.create()) { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[TOOL]"); + Tool response = toolsClient.getTool(name); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_GetTool_Toolname_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listlocations/AsyncListLocations.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..39628843d56b --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listlocations/AsyncListLocations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (ToolsClient toolsClient = ToolsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = toolsClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_Tools_ListLocations_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listlocations/AsyncListLocationsPaged.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..377a3ba2aee5 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_ListLocations_Paged_async] +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (ToolsClient toolsClient = ToolsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = toolsClient.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; + } + } + } + } +} +// [END dialogflow_v2beta1_generated_Tools_ListLocations_Paged_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listlocations/SyncListLocations.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..9e468e4d95db --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_ListLocations_sync] +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (ToolsClient toolsClient = ToolsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : toolsClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_Tools_ListLocations_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/AsyncListTools.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/AsyncListTools.java new file mode 100644 index 000000000000..a46f75265198 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/AsyncListTools.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_ListTools_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.ListToolsRequest; +import com.google.cloud.dialogflow.v2beta1.LocationName; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class AsyncListTools { + + public static void main(String[] args) throws Exception { + asyncListTools(); + } + + public static void asyncListTools() 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 (ToolsClient toolsClient = ToolsClient.create()) { + ListToolsRequest request = + ListToolsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = toolsClient.listToolsPagedCallable().futureCall(request); + // Do something. + for (Tool element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_Tools_ListTools_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/AsyncListToolsPaged.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/AsyncListToolsPaged.java new file mode 100644 index 000000000000..5a42f5b682f1 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/AsyncListToolsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_ListTools_Paged_async] +import com.google.cloud.dialogflow.v2beta1.ListToolsRequest; +import com.google.cloud.dialogflow.v2beta1.ListToolsResponse; +import com.google.cloud.dialogflow.v2beta1.LocationName; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.common.base.Strings; + +public class AsyncListToolsPaged { + + public static void main(String[] args) throws Exception { + asyncListToolsPaged(); + } + + public static void asyncListToolsPaged() 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 (ToolsClient toolsClient = ToolsClient.create()) { + ListToolsRequest request = + ListToolsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListToolsResponse response = toolsClient.listToolsCallable().call(request); + for (Tool element : response.getToolsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dialogflow_v2beta1_generated_Tools_ListTools_Paged_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/SyncListTools.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/SyncListTools.java new file mode 100644 index 000000000000..f7b7fc6c4f95 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/SyncListTools.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_ListTools_sync] +import com.google.cloud.dialogflow.v2beta1.ListToolsRequest; +import com.google.cloud.dialogflow.v2beta1.LocationName; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class SyncListTools { + + public static void main(String[] args) throws Exception { + syncListTools(); + } + + public static void syncListTools() 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 (ToolsClient toolsClient = ToolsClient.create()) { + ListToolsRequest request = + ListToolsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Tool element : toolsClient.listTools(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_Tools_ListTools_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/SyncListToolsLocationname.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/SyncListToolsLocationname.java new file mode 100644 index 000000000000..4ceef39715f6 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/SyncListToolsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_ListTools_Locationname_sync] +import com.google.cloud.dialogflow.v2beta1.LocationName; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class SyncListToolsLocationname { + + public static void main(String[] args) throws Exception { + syncListToolsLocationname(); + } + + public static void syncListToolsLocationname() 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 (ToolsClient toolsClient = ToolsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Tool element : toolsClient.listTools(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_Tools_ListTools_Locationname_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/SyncListToolsString.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/SyncListToolsString.java new file mode 100644 index 000000000000..c9848e2e7ef1 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/listtools/SyncListToolsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_ListTools_String_sync] +import com.google.cloud.dialogflow.v2beta1.LocationName; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; + +public class SyncListToolsString { + + public static void main(String[] args) throws Exception { + syncListToolsString(); + } + + public static void syncListToolsString() 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 (ToolsClient toolsClient = ToolsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Tool element : toolsClient.listTools(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dialogflow_v2beta1_generated_Tools_ListTools_String_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/updatetool/AsyncUpdateTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/updatetool/AsyncUpdateTool.java new file mode 100644 index 000000000000..e4e1f6ecbde6 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/updatetool/AsyncUpdateTool.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_UpdateTool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.dialogflow.v2beta1.UpdateToolRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTool { + + public static void main(String[] args) throws Exception { + asyncUpdateTool(); + } + + public static void asyncUpdateTool() 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 (ToolsClient toolsClient = ToolsClient.create()) { + UpdateToolRequest request = + UpdateToolRequest.newBuilder() + .setTool(Tool.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = toolsClient.updateToolCallable().futureCall(request); + // Do something. + Tool response = future.get(); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_UpdateTool_async] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/updatetool/SyncUpdateTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/updatetool/SyncUpdateTool.java new file mode 100644 index 000000000000..1497029a7067 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/updatetool/SyncUpdateTool.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_UpdateTool_sync] +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.cloud.dialogflow.v2beta1.UpdateToolRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTool { + + public static void main(String[] args) throws Exception { + syncUpdateTool(); + } + + public static void syncUpdateTool() 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 (ToolsClient toolsClient = ToolsClient.create()) { + UpdateToolRequest request = + UpdateToolRequest.newBuilder() + .setTool(Tool.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Tool response = toolsClient.updateTool(request); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_UpdateTool_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/updatetool/SyncUpdateToolToolFieldmask.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/updatetool/SyncUpdateToolToolFieldmask.java new file mode 100644 index 000000000000..2f2faa1862f0 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/tools/updatetool/SyncUpdateToolToolFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_Tools_UpdateTool_ToolFieldmask_sync] +import com.google.cloud.dialogflow.v2beta1.Tool; +import com.google.cloud.dialogflow.v2beta1.ToolsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateToolToolFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateToolToolFieldmask(); + } + + public static void syncUpdateToolToolFieldmask() 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 (ToolsClient toolsClient = ToolsClient.create()) { + Tool tool = Tool.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Tool response = toolsClient.updateTool(tool, updateMask); + } + } +} +// [END dialogflow_v2beta1_generated_Tools_UpdateTool_ToolFieldmask_sync] diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/toolssettings/createtool/SyncCreateTool.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/toolssettings/createtool/SyncCreateTool.java new file mode 100644 index 000000000000..b066d1fd2879 --- /dev/null +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/toolssettings/createtool/SyncCreateTool.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.dialogflow.v2beta1.samples; + +// [START dialogflow_v2beta1_generated_ToolsSettings_CreateTool_sync] +import com.google.cloud.dialogflow.v2beta1.ToolsSettings; +import java.time.Duration; + +public class SyncCreateTool { + + public static void main(String[] args) throws Exception { + syncCreateTool(); + } + + public static void syncCreateTool() 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 + ToolsSettings.Builder toolsSettingsBuilder = ToolsSettings.newBuilder(); + toolsSettingsBuilder + .createToolSettings() + .setRetrySettings( + toolsSettingsBuilder + .createToolSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ToolsSettings toolsSettings = toolsSettingsBuilder.build(); + } +} +// [END dialogflow_v2beta1_generated_ToolsSettings_CreateTool_sync] diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 90b8af56a34e..b3ae5835e196 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.73.0 + 0.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.73.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.74.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceGrpc.java index faaaada2df69..deb89eca33a6 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing Assistant configuration and assisting users. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/assistant_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AssistantServiceGrpc { diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceGrpc.java index 1e8578938437..2bff1125ce85 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing CMEK related tasks * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/cmek_config_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CmekConfigServiceGrpc { @@ -484,8 +481,9 @@ protected CmekConfigServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation updateCmekConfig( - com.google.cloud.discoveryengine.v1.UpdateCmekConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateCmekConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCmekConfigMethod(), getCallOptions(), request); } @@ -497,8 +495,9 @@ public com.google.longrunning.Operation updateCmekConfig( * */ public com.google.cloud.discoveryengine.v1.CmekConfig getCmekConfig( - com.google.cloud.discoveryengine.v1.GetCmekConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetCmekConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCmekConfigMethod(), getCallOptions(), request); } @@ -511,8 +510,9 @@ public com.google.cloud.discoveryengine.v1.CmekConfig getCmekConfig( * */ public com.google.cloud.discoveryengine.v1.ListCmekConfigsResponse listCmekConfigs( - com.google.cloud.discoveryengine.v1.ListCmekConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListCmekConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCmekConfigsMethod(), getCallOptions(), request); } @@ -524,8 +524,9 @@ public com.google.cloud.discoveryengine.v1.ListCmekConfigsResponse listCmekConfi * */ public com.google.longrunning.Operation deleteCmekConfig( - com.google.cloud.discoveryengine.v1.DeleteCmekConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteCmekConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCmekConfigMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java index b8c9fa13a8be..de9bd0bf9234 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for Auto-Completion. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/completion_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompletionServiceGrpc { @@ -588,8 +585,9 @@ protected CompletionServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.CompleteQueryResponse completeQuery( - com.google.cloud.discoveryengine.v1.CompleteQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CompleteQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } @@ -603,8 +601,9 @@ public com.google.cloud.discoveryengine.v1.CompleteQueryResponse completeQuery( * */ public com.google.longrunning.Operation importSuggestionDenyListEntries( - com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportSuggestionDenyListEntriesMethod(), getCallOptions(), request); } @@ -618,8 +617,9 @@ public com.google.longrunning.Operation importSuggestionDenyListEntries( * */ public com.google.longrunning.Operation purgeSuggestionDenyListEntries( - com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeSuggestionDenyListEntriesMethod(), getCallOptions(), request); } @@ -633,8 +633,9 @@ public com.google.longrunning.Operation purgeSuggestionDenyListEntries( * */ public com.google.longrunning.Operation importCompletionSuggestions( - com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportCompletionSuggestionsMethod(), getCallOptions(), request); } @@ -648,8 +649,9 @@ public com.google.longrunning.Operation importCompletionSuggestions( * */ public com.google.longrunning.Operation purgeCompletionSuggestions( - com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeCompletionSuggestionsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceGrpc.java index 7cea86e73da0..207f5bb96bd8 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceGrpc.java @@ -27,9 +27,6 @@ * request. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/control_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ControlServiceGrpc { @@ -577,8 +574,9 @@ protected ControlServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.Control createControl( - com.google.cloud.discoveryengine.v1.CreateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateControlMethod(), getCallOptions(), request); } @@ -592,8 +590,9 @@ public com.google.cloud.discoveryengine.v1.Control createControl( * */ public com.google.protobuf.Empty deleteControl( - com.google.cloud.discoveryengine.v1.DeleteControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteControlMethod(), getCallOptions(), request); } @@ -608,8 +607,9 @@ public com.google.protobuf.Empty deleteControl( * */ public com.google.cloud.discoveryengine.v1.Control updateControl( - com.google.cloud.discoveryengine.v1.UpdateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateControlMethod(), getCallOptions(), request); } @@ -621,8 +621,9 @@ public com.google.cloud.discoveryengine.v1.Control updateControl( * */ public com.google.cloud.discoveryengine.v1.Control getControl( - com.google.cloud.discoveryengine.v1.GetControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetControlMethod(), getCallOptions(), request); } @@ -635,8 +636,9 @@ public com.google.cloud.discoveryengine.v1.Control getControl( * */ public com.google.cloud.discoveryengine.v1.ListControlsResponse listControls( - com.google.cloud.discoveryengine.v1.ListControlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListControlsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListControlsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java index d895d7a2bda9..f991a7da823a 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java @@ -24,9 +24,6 @@ * Service for conversational search. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/conversational_search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationalSearchServiceGrpc { @@ -1322,8 +1319,9 @@ protected ConversationalSearchServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.ConverseConversationResponse converseConversation( - com.google.cloud.discoveryengine.v1.ConverseConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ConverseConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConverseConversationMethod(), getCallOptions(), request); } @@ -1337,8 +1335,9 @@ public com.google.cloud.discoveryengine.v1.ConverseConversationResponse converse * */ public com.google.cloud.discoveryengine.v1.Conversation createConversation( - com.google.cloud.discoveryengine.v1.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } @@ -1352,8 +1351,9 @@ public com.google.cloud.discoveryengine.v1.Conversation createConversation( * */ public com.google.protobuf.Empty deleteConversation( - com.google.cloud.discoveryengine.v1.DeleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversationMethod(), getCallOptions(), request); } @@ -1369,8 +1369,9 @@ public com.google.protobuf.Empty deleteConversation( * */ public com.google.cloud.discoveryengine.v1.Conversation updateConversation( - com.google.cloud.discoveryengine.v1.UpdateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversationMethod(), getCallOptions(), request); } @@ -1382,8 +1383,9 @@ public com.google.cloud.discoveryengine.v1.Conversation updateConversation( * */ public com.google.cloud.discoveryengine.v1.Conversation getConversation( - com.google.cloud.discoveryengine.v1.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationMethod(), getCallOptions(), request); } @@ -1396,8 +1398,9 @@ public com.google.cloud.discoveryengine.v1.Conversation getConversation( * */ public com.google.cloud.discoveryengine.v1.ListConversationsResponse listConversations( - com.google.cloud.discoveryengine.v1.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -1409,8 +1412,9 @@ public com.google.cloud.discoveryengine.v1.ListConversationsResponse listConvers * */ public com.google.cloud.discoveryengine.v1.AnswerQueryResponse answerQuery( - com.google.cloud.discoveryengine.v1.AnswerQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.AnswerQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnswerQueryMethod(), getCallOptions(), request); } @@ -1442,8 +1446,9 @@ public com.google.cloud.discoveryengine.v1.AnswerQueryResponse answerQuery( * */ public com.google.cloud.discoveryengine.v1.Answer getAnswer( - com.google.cloud.discoveryengine.v1.GetAnswerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetAnswerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnswerMethod(), getCallOptions(), request); } @@ -1457,8 +1462,9 @@ public com.google.cloud.discoveryengine.v1.Answer getAnswer( * */ public com.google.cloud.discoveryengine.v1.Session createSession( - com.google.cloud.discoveryengine.v1.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } @@ -1472,8 +1478,9 @@ public com.google.cloud.discoveryengine.v1.Session createSession( * */ public com.google.protobuf.Empty deleteSession( - com.google.cloud.discoveryengine.v1.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionMethod(), getCallOptions(), request); } @@ -1488,8 +1495,9 @@ public com.google.protobuf.Empty deleteSession( * */ public com.google.cloud.discoveryengine.v1.Session updateSession( - com.google.cloud.discoveryengine.v1.UpdateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionMethod(), getCallOptions(), request); } @@ -1501,8 +1509,9 @@ public com.google.cloud.discoveryengine.v1.Session updateSession( * */ public com.google.cloud.discoveryengine.v1.Session getSession( - com.google.cloud.discoveryengine.v1.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionMethod(), getCallOptions(), request); } @@ -1515,8 +1524,9 @@ public com.google.cloud.discoveryengine.v1.Session getSession( * */ public com.google.cloud.discoveryengine.v1.ListSessionsResponse listSessions( - com.google.cloud.discoveryengine.v1.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceGrpc.java index 9590f2375d8e..61ee20492a26 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceGrpc.java @@ -25,9 +25,6 @@ * configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/data_store_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataStoreServiceGrpc { @@ -572,8 +569,9 @@ protected DataStoreServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createDataStore( - com.google.cloud.discoveryengine.v1.CreateDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataStoreMethod(), getCallOptions(), request); } @@ -585,8 +583,9 @@ public com.google.longrunning.Operation createDataStore( * */ public com.google.cloud.discoveryengine.v1.DataStore getDataStore( - com.google.cloud.discoveryengine.v1.GetDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataStoreMethod(), getCallOptions(), request); } @@ -599,8 +598,9 @@ public com.google.cloud.discoveryengine.v1.DataStore getDataStore( * */ public com.google.cloud.discoveryengine.v1.ListDataStoresResponse listDataStores( - com.google.cloud.discoveryengine.v1.ListDataStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListDataStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataStoresMethod(), getCallOptions(), request); } @@ -612,8 +612,9 @@ public com.google.cloud.discoveryengine.v1.ListDataStoresResponse listDataStores * */ public com.google.longrunning.Operation deleteDataStore( - com.google.cloud.discoveryengine.v1.DeleteDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataStoreMethod(), getCallOptions(), request); } @@ -625,8 +626,9 @@ public com.google.longrunning.Operation deleteDataStore( * */ public com.google.cloud.discoveryengine.v1.DataStore updateDataStore( - com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataStoreMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java index 96f3f9636609..71400e71b520 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java @@ -25,9 +25,6 @@ * information of the customer's website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/document_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentServiceGrpc { @@ -832,8 +829,9 @@ protected DocumentServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.Document getDocument( - com.google.cloud.discoveryengine.v1.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDocumentMethod(), getCallOptions(), request); } @@ -845,8 +843,9 @@ public com.google.cloud.discoveryengine.v1.Document getDocument( * */ public com.google.cloud.discoveryengine.v1.ListDocumentsResponse listDocuments( - com.google.cloud.discoveryengine.v1.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDocumentsMethod(), getCallOptions(), request); } @@ -858,8 +857,9 @@ public com.google.cloud.discoveryengine.v1.ListDocumentsResponse listDocuments( * */ public com.google.cloud.discoveryengine.v1.Document createDocument( - com.google.cloud.discoveryengine.v1.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } @@ -871,8 +871,9 @@ public com.google.cloud.discoveryengine.v1.Document createDocument( * */ public com.google.cloud.discoveryengine.v1.Document updateDocument( - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } @@ -884,8 +885,9 @@ public com.google.cloud.discoveryengine.v1.Document updateDocument( * */ public com.google.protobuf.Empty deleteDocument( - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } @@ -902,8 +904,9 @@ public com.google.protobuf.Empty deleteDocument( * */ public com.google.longrunning.Operation importDocuments( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDocumentsMethod(), getCallOptions(), request); } @@ -928,8 +931,9 @@ public com.google.longrunning.Operation importDocuments( * */ public com.google.longrunning.Operation purgeDocuments( - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeDocumentsMethod(), getCallOptions(), request); } @@ -944,8 +948,9 @@ public com.google.longrunning.Operation purgeDocuments( */ public com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse batchGetDocumentsMetadata( - com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchGetDocumentsMetadataMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceGrpc.java index 1e96774f6190..44cfe574a2ed 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceGrpc.java @@ -25,9 +25,6 @@ * configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/engine_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EngineServiceGrpc { @@ -543,8 +540,9 @@ protected EngineServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createEngine( - com.google.cloud.discoveryengine.v1.CreateEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEngineMethod(), getCallOptions(), request); } @@ -556,8 +554,9 @@ public com.google.longrunning.Operation createEngine( * */ public com.google.longrunning.Operation deleteEngine( - com.google.cloud.discoveryengine.v1.DeleteEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEngineMethod(), getCallOptions(), request); } @@ -569,8 +568,9 @@ public com.google.longrunning.Operation deleteEngine( * */ public com.google.cloud.discoveryengine.v1.Engine updateEngine( - com.google.cloud.discoveryengine.v1.UpdateEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEngineMethod(), getCallOptions(), request); } @@ -582,8 +582,9 @@ public com.google.cloud.discoveryengine.v1.Engine updateEngine( * */ public com.google.cloud.discoveryengine.v1.Engine getEngine( - com.google.cloud.discoveryengine.v1.GetEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEngineMethod(), getCallOptions(), request); } @@ -596,8 +597,9 @@ public com.google.cloud.discoveryengine.v1.Engine getEngine( * */ public com.google.cloud.discoveryengine.v1.ListEnginesResponse listEngines( - com.google.cloud.discoveryengine.v1.ListEnginesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListEnginesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnginesMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceGrpc.java index b5c04c1606cf..014cb14e3503 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceGrpc.java @@ -24,9 +24,6 @@ * Service for grounded generation. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/grounded_generation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GroundedGenerationServiceGrpc { @@ -437,8 +434,9 @@ protected GroundedGenerationServiceBlockingV2Stub build( */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse generateGroundedContent( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateGroundedContentMethod(), getCallOptions(), request); } @@ -450,8 +448,9 @@ protected GroundedGenerationServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.CheckGroundingResponse checkGrounding( - com.google.cloud.discoveryengine.v1.CheckGroundingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CheckGroundingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckGroundingMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceGrpc.java index ffda1cd82a7c..9c9560e65742 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing Identity Mapping Stores. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/identity_mapping_store_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IdentityMappingStoreServiceGrpc { @@ -758,8 +755,9 @@ protected IdentityMappingStoreServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.IdentityMappingStore createIdentityMappingStore( - com.google.cloud.discoveryengine.v1.CreateIdentityMappingStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateIdentityMappingStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIdentityMappingStoreMethod(), getCallOptions(), request); } @@ -771,8 +769,9 @@ public com.google.cloud.discoveryengine.v1.IdentityMappingStore createIdentityMa * */ public com.google.cloud.discoveryengine.v1.IdentityMappingStore getIdentityMappingStore( - com.google.cloud.discoveryengine.v1.GetIdentityMappingStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetIdentityMappingStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIdentityMappingStoreMethod(), getCallOptions(), request); } @@ -784,8 +783,9 @@ public com.google.cloud.discoveryengine.v1.IdentityMappingStore getIdentityMappi * */ public com.google.longrunning.Operation deleteIdentityMappingStore( - com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIdentityMappingStoreMethod(), getCallOptions(), request); } @@ -797,8 +797,9 @@ public com.google.longrunning.Operation deleteIdentityMappingStore( * */ public com.google.longrunning.Operation importIdentityMappings( - com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportIdentityMappingsMethod(), getCallOptions(), request); } @@ -811,8 +812,9 @@ public com.google.longrunning.Operation importIdentityMappings( * */ public com.google.longrunning.Operation purgeIdentityMappings( - com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeIdentityMappingsMethod(), getCallOptions(), request); } @@ -824,8 +826,9 @@ public com.google.longrunning.Operation purgeIdentityMappings( * */ public com.google.cloud.discoveryengine.v1.ListIdentityMappingsResponse listIdentityMappings( - com.google.cloud.discoveryengine.v1.ListIdentityMappingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListIdentityMappingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIdentityMappingsMethod(), getCallOptions(), request); } @@ -838,8 +841,9 @@ public com.google.cloud.discoveryengine.v1.ListIdentityMappingsResponse listIden */ public com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresResponse listIdentityMappingStores( - com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIdentityMappingStoresMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceGrpc.java index 9877f2f10bc6..0ff3d8a87d47 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceGrpc.java @@ -25,9 +25,6 @@ * [Project][google.cloud.discoveryengine.v1.Project]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/project_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProjectServiceGrpc { @@ -255,8 +252,9 @@ protected ProjectServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation provisionProject( - com.google.cloud.discoveryengine.v1.ProvisionProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProvisionProjectMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceGrpc.java index 2fe40503eb3b..99c21980bc6b 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ranking text records. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/rank_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RankServiceGrpc { @@ -234,8 +231,8 @@ protected RankServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.RankResponse rank( - com.google.cloud.discoveryengine.v1.RankRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.RankRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRankMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceGrpc.java index fcf07cab06b9..9053abeebd02 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceGrpc.java @@ -24,9 +24,6 @@ * Service for making recommendations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/recommendation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RecommendationServiceGrpc { @@ -240,8 +237,9 @@ protected RecommendationServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.RecommendResponse recommend( - com.google.cloud.discoveryengine.v1.RecommendRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.RecommendRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecommendMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java index 0ba3fb0f52ab..01de9942e304 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/schema_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SchemaServiceGrpc { @@ -534,8 +531,9 @@ protected SchemaServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.Schema getSchema( - com.google.cloud.discoveryengine.v1.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSchemaMethod(), getCallOptions(), request); } @@ -547,8 +545,9 @@ public com.google.cloud.discoveryengine.v1.Schema getSchema( * */ public com.google.cloud.discoveryengine.v1.ListSchemasResponse listSchemas( - com.google.cloud.discoveryengine.v1.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListSchemasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchemasMethod(), getCallOptions(), request); } @@ -560,8 +559,9 @@ public com.google.cloud.discoveryengine.v1.ListSchemasResponse listSchemas( * */ public com.google.longrunning.Operation createSchema( - com.google.cloud.discoveryengine.v1.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSchemaMethod(), getCallOptions(), request); } @@ -573,8 +573,9 @@ public com.google.longrunning.Operation createSchema( * */ public com.google.longrunning.Operation updateSchema( - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSchemaMethod(), getCallOptions(), request); } @@ -586,8 +587,9 @@ public com.google.longrunning.Operation updateSchema( * */ public com.google.longrunning.Operation deleteSchema( - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java index 8eda375c430c..1ee787f711a9 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java @@ -24,9 +24,6 @@ * Service for search. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchServiceGrpc { @@ -332,8 +329,8 @@ protected SearchServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.SearchResponse search( - com.google.cloud.discoveryengine.v1.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.SearchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } @@ -355,8 +352,8 @@ public com.google.cloud.discoveryengine.v1.SearchResponse search( * */ public com.google.cloud.discoveryengine.v1.SearchResponse searchLite( - com.google.cloud.discoveryengine.v1.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.SearchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchLiteMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceGrpc.java index 79fe63535dee..a4a8fcb72e16 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceGrpc.java @@ -24,9 +24,6 @@ * Service for search tuning. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/search_tuning_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchTuningServiceGrpc { @@ -321,8 +318,9 @@ protected SearchTuningServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation trainCustomModel( - com.google.cloud.discoveryengine.v1.TrainCustomModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.TrainCustomModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTrainCustomModelMethod(), getCallOptions(), request); } @@ -334,8 +332,9 @@ public com.google.longrunning.Operation trainCustomModel( * */ public com.google.cloud.discoveryengine.v1.ListCustomModelsResponse listCustomModels( - com.google.cloud.discoveryengine.v1.ListCustomModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListCustomModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomModelsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceGrpc.java index 61dc81fc31cf..35849e4b73bb 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceGrpc.java @@ -25,9 +25,6 @@ * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/serving_config_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServingConfigServiceGrpc { @@ -254,8 +251,9 @@ protected ServingConfigServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.ServingConfig updateServingConfig( - com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServingConfigMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceGrpc.java index efe734fd71d5..d59e5a9f9240 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing Sessions and Session-related resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/session_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionServiceGrpc { @@ -556,8 +553,9 @@ protected SessionServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.Session createSession( - com.google.cloud.discoveryengine.v1.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } @@ -571,8 +569,9 @@ public com.google.cloud.discoveryengine.v1.Session createSession( * */ public com.google.protobuf.Empty deleteSession( - com.google.cloud.discoveryengine.v1.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionMethod(), getCallOptions(), request); } @@ -587,8 +586,9 @@ public com.google.protobuf.Empty deleteSession( * */ public com.google.cloud.discoveryengine.v1.Session updateSession( - com.google.cloud.discoveryengine.v1.UpdateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionMethod(), getCallOptions(), request); } @@ -600,8 +600,9 @@ public com.google.cloud.discoveryengine.v1.Session updateSession( * */ public com.google.cloud.discoveryengine.v1.Session getSession( - com.google.cloud.discoveryengine.v1.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionMethod(), getCallOptions(), request); } @@ -614,8 +615,9 @@ public com.google.cloud.discoveryengine.v1.Session getSession( * */ public com.google.cloud.discoveryengine.v1.ListSessionsResponse listSessions( - com.google.cloud.discoveryengine.v1.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceGrpc.java index 2a87b13d111b..4aab23faa7b2 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing site search related resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/site_search_engine_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SiteSearchEngineServiceGrpc { @@ -1376,8 +1373,9 @@ protected SiteSearchEngineServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.SiteSearchEngine getSiteSearchEngine( - com.google.cloud.discoveryengine.v1.GetSiteSearchEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetSiteSearchEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSiteSearchEngineMethod(), getCallOptions(), request); } @@ -1389,8 +1387,9 @@ public com.google.cloud.discoveryengine.v1.SiteSearchEngine getSiteSearchEngine( * */ public com.google.longrunning.Operation createTargetSite( - com.google.cloud.discoveryengine.v1.CreateTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTargetSiteMethod(), getCallOptions(), request); } @@ -1403,8 +1402,9 @@ public com.google.longrunning.Operation createTargetSite( * */ public com.google.longrunning.Operation batchCreateTargetSites( - com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateTargetSitesMethod(), getCallOptions(), request); } @@ -1416,8 +1416,9 @@ public com.google.longrunning.Operation batchCreateTargetSites( * */ public com.google.cloud.discoveryengine.v1.TargetSite getTargetSite( - com.google.cloud.discoveryengine.v1.GetTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.GetTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTargetSiteMethod(), getCallOptions(), request); } @@ -1429,8 +1430,9 @@ public com.google.cloud.discoveryengine.v1.TargetSite getTargetSite( * */ public com.google.longrunning.Operation updateTargetSite( - com.google.cloud.discoveryengine.v1.UpdateTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.UpdateTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTargetSiteMethod(), getCallOptions(), request); } @@ -1442,8 +1444,9 @@ public com.google.longrunning.Operation updateTargetSite( * */ public com.google.longrunning.Operation deleteTargetSite( - com.google.cloud.discoveryengine.v1.DeleteTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTargetSiteMethod(), getCallOptions(), request); } @@ -1455,8 +1458,9 @@ public com.google.longrunning.Operation deleteTargetSite( * */ public com.google.cloud.discoveryengine.v1.ListTargetSitesResponse listTargetSites( - com.google.cloud.discoveryengine.v1.ListTargetSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListTargetSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTargetSitesMethod(), getCallOptions(), request); } @@ -1468,8 +1472,9 @@ public com.google.cloud.discoveryengine.v1.ListTargetSitesResponse listTargetSit * */ public com.google.longrunning.Operation createSitemap( - com.google.cloud.discoveryengine.v1.CreateSitemapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CreateSitemapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSitemapMethod(), getCallOptions(), request); } @@ -1481,8 +1486,9 @@ public com.google.longrunning.Operation createSitemap( * */ public com.google.longrunning.Operation deleteSitemap( - com.google.cloud.discoveryengine.v1.DeleteSitemapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DeleteSitemapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSitemapMethod(), getCallOptions(), request); } @@ -1495,8 +1501,9 @@ public com.google.longrunning.Operation deleteSitemap( * */ public com.google.cloud.discoveryengine.v1.FetchSitemapsResponse fetchSitemaps( - com.google.cloud.discoveryengine.v1.FetchSitemapsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.FetchSitemapsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchSitemapsMethod(), getCallOptions(), request); } @@ -1508,8 +1515,9 @@ public com.google.cloud.discoveryengine.v1.FetchSitemapsResponse fetchSitemaps( * */ public com.google.longrunning.Operation enableAdvancedSiteSearch( - com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableAdvancedSiteSearchMethod(), getCallOptions(), request); } @@ -1521,8 +1529,9 @@ public com.google.longrunning.Operation enableAdvancedSiteSearch( * */ public com.google.longrunning.Operation disableAdvancedSiteSearch( - com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableAdvancedSiteSearchMethod(), getCallOptions(), request); } @@ -1534,8 +1543,9 @@ public com.google.longrunning.Operation disableAdvancedSiteSearch( * */ public com.google.longrunning.Operation recrawlUris( - com.google.cloud.discoveryengine.v1.RecrawlUrisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.RecrawlUrisRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecrawlUrisMethod(), getCallOptions(), request); } @@ -1549,8 +1559,9 @@ public com.google.longrunning.Operation recrawlUris( * */ public com.google.longrunning.Operation batchVerifyTargetSites( - com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchVerifyTargetSitesMethod(), getCallOptions(), request); } @@ -1565,8 +1576,9 @@ public com.google.longrunning.Operation batchVerifyTargetSites( */ public com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusResponse fetchDomainVerificationStatus( - com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchDomainVerificationStatusMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java index b6fd37672f66..5874e6b5bca6 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ingesting end user actions on a website to Discovery Engine API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/user_event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserEventServiceGrpc { @@ -488,8 +485,9 @@ protected UserEventServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.UserEvent writeUserEvent( - com.google.cloud.discoveryengine.v1.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.WriteUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteUserEventMethod(), getCallOptions(), request); } @@ -504,8 +502,9 @@ public com.google.cloud.discoveryengine.v1.UserEvent writeUserEvent( * */ public com.google.api.HttpBody collectUserEvent( - com.google.cloud.discoveryengine.v1.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.CollectUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } @@ -520,8 +519,9 @@ public com.google.api.HttpBody collectUserEvent( * */ public com.google.longrunning.Operation purgeUserEvents( - com.google.cloud.discoveryengine.v1.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.PurgeUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); } @@ -538,8 +538,9 @@ public com.google.longrunning.Operation purgeUserEvents( * */ public com.google.longrunning.Operation importUserEvents( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportUserEventsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceGrpc.java index 89687ebb44e8..caacc247f444 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing User Licenses. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/user_license_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserLicenseServiceGrpc { @@ -326,8 +323,9 @@ protected UserLicenseServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1.ListUserLicensesResponse listUserLicenses( - com.google.cloud.discoveryengine.v1.ListUserLicensesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.ListUserLicensesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUserLicensesMethod(), getCallOptions(), request); } @@ -340,8 +338,9 @@ public com.google.cloud.discoveryengine.v1.ListUserLicensesResponse listUserLice * */ public com.google.longrunning.Operation batchUpdateUserLicenses( - com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateUserLicensesMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceGrpc.java index 796b28e8b7c1..4f32730a9190 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing Acl Configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/acl_config_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AclConfigServiceGrpc { @@ -327,8 +324,9 @@ protected AclConfigServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.AclConfig updateAclConfig( - com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAclConfigMethod(), getCallOptions(), request); } @@ -340,8 +338,9 @@ public com.google.cloud.discoveryengine.v1alpha.AclConfig updateAclConfig( * */ public com.google.cloud.discoveryengine.v1alpha.AclConfig getAclConfig( - com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAclConfigMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceGrpc.java index 22c49d0d24a9..5c10d4633511 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceGrpc.java @@ -26,9 +26,6 @@ * customer's unstructured data. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/chunk_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ChunkServiceGrpc { @@ -321,8 +318,9 @@ protected ChunkServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.Chunk getChunk( - com.google.cloud.discoveryengine.v1alpha.GetChunkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChunkMethod(), getCallOptions(), request); } @@ -334,8 +332,9 @@ public com.google.cloud.discoveryengine.v1alpha.Chunk getChunk( * */ public com.google.cloud.discoveryengine.v1alpha.ListChunksResponse listChunks( - com.google.cloud.discoveryengine.v1alpha.ListChunksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChunksMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java index ebda35137941..c96534027c0d 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for Auto-Completion. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/completion_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompletionServiceGrpc { @@ -593,8 +590,9 @@ protected CompletionServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse completeQuery( - com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } @@ -608,8 +606,9 @@ public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse completeQu * */ public com.google.longrunning.Operation importSuggestionDenyListEntries( - com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportSuggestionDenyListEntriesMethod(), getCallOptions(), request); } @@ -623,8 +622,9 @@ public com.google.longrunning.Operation importSuggestionDenyListEntries( * */ public com.google.longrunning.Operation purgeSuggestionDenyListEntries( - com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeSuggestionDenyListEntriesMethod(), getCallOptions(), request); } @@ -638,8 +638,9 @@ public com.google.longrunning.Operation purgeSuggestionDenyListEntries( * */ public com.google.longrunning.Operation importCompletionSuggestions( - com.google.cloud.discoveryengine.v1alpha.ImportCompletionSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ImportCompletionSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportCompletionSuggestionsMethod(), getCallOptions(), request); } @@ -653,8 +654,9 @@ public com.google.longrunning.Operation importCompletionSuggestions( * */ public com.google.longrunning.Operation purgeCompletionSuggestions( - com.google.cloud.discoveryengine.v1alpha.PurgeCompletionSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.PurgeCompletionSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeCompletionSuggestionsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceGrpc.java index 0034d37a4e47..a3a57c476a5b 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceGrpc.java @@ -27,9 +27,6 @@ * request. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/control_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ControlServiceGrpc { @@ -587,8 +584,9 @@ protected ControlServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.Control createControl( - com.google.cloud.discoveryengine.v1alpha.CreateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateControlMethod(), getCallOptions(), request); } @@ -602,8 +600,9 @@ public com.google.cloud.discoveryengine.v1alpha.Control createControl( * */ public com.google.protobuf.Empty deleteControl( - com.google.cloud.discoveryengine.v1alpha.DeleteControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteControlMethod(), getCallOptions(), request); } @@ -618,8 +617,9 @@ public com.google.protobuf.Empty deleteControl( * */ public com.google.cloud.discoveryengine.v1alpha.Control updateControl( - com.google.cloud.discoveryengine.v1alpha.UpdateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateControlMethod(), getCallOptions(), request); } @@ -631,8 +631,9 @@ public com.google.cloud.discoveryengine.v1alpha.Control updateControl( * */ public com.google.cloud.discoveryengine.v1alpha.Control getControl( - com.google.cloud.discoveryengine.v1alpha.GetControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetControlMethod(), getCallOptions(), request); } @@ -645,8 +646,9 @@ public com.google.cloud.discoveryengine.v1alpha.Control getControl( * */ public com.google.cloud.discoveryengine.v1alpha.ListControlsResponse listControls( - com.google.cloud.discoveryengine.v1alpha.ListControlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListControlsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListControlsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceGrpc.java index b173eeb96e39..4581c8f5e5e8 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceGrpc.java @@ -24,9 +24,6 @@ * Service for conversational search. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationalSearchServiceGrpc { @@ -1246,8 +1243,9 @@ protected ConversationalSearchServiceBlockingV2Stub build( */ public com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse converseConversation( - com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConverseConversationMethod(), getCallOptions(), request); } @@ -1261,8 +1259,9 @@ protected ConversationalSearchServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.Conversation createConversation( - com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } @@ -1276,8 +1275,9 @@ public com.google.cloud.discoveryengine.v1alpha.Conversation createConversation( * */ public com.google.protobuf.Empty deleteConversation( - com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversationMethod(), getCallOptions(), request); } @@ -1293,8 +1293,9 @@ public com.google.protobuf.Empty deleteConversation( * */ public com.google.cloud.discoveryengine.v1alpha.Conversation updateConversation( - com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversationMethod(), getCallOptions(), request); } @@ -1306,8 +1307,9 @@ public com.google.cloud.discoveryengine.v1alpha.Conversation updateConversation( * */ public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation( - com.google.cloud.discoveryengine.v1alpha.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationMethod(), getCallOptions(), request); } @@ -1320,8 +1322,9 @@ public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation( * */ public com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse listConversations( - com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -1333,8 +1336,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse listCo * */ public com.google.cloud.discoveryengine.v1alpha.AnswerQueryResponse answerQuery( - com.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnswerQueryMethod(), getCallOptions(), request); } @@ -1346,8 +1350,9 @@ public com.google.cloud.discoveryengine.v1alpha.AnswerQueryResponse answerQuery( * */ public com.google.cloud.discoveryengine.v1alpha.Answer getAnswer( - com.google.cloud.discoveryengine.v1alpha.GetAnswerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetAnswerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnswerMethod(), getCallOptions(), request); } @@ -1361,8 +1366,9 @@ public com.google.cloud.discoveryengine.v1alpha.Answer getAnswer( * */ public com.google.cloud.discoveryengine.v1alpha.Session createSession( - com.google.cloud.discoveryengine.v1alpha.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } @@ -1376,8 +1382,9 @@ public com.google.cloud.discoveryengine.v1alpha.Session createSession( * */ public com.google.protobuf.Empty deleteSession( - com.google.cloud.discoveryengine.v1alpha.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionMethod(), getCallOptions(), request); } @@ -1392,8 +1399,9 @@ public com.google.protobuf.Empty deleteSession( * */ public com.google.cloud.discoveryengine.v1alpha.Session updateSession( - com.google.cloud.discoveryengine.v1alpha.UpdateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionMethod(), getCallOptions(), request); } @@ -1405,8 +1413,9 @@ public com.google.cloud.discoveryengine.v1alpha.Session updateSession( * */ public com.google.cloud.discoveryengine.v1alpha.Session getSession( - com.google.cloud.discoveryengine.v1alpha.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionMethod(), getCallOptions(), request); } @@ -1419,8 +1428,9 @@ public com.google.cloud.discoveryengine.v1alpha.Session getSession( * */ public com.google.cloud.discoveryengine.v1alpha.ListSessionsResponse listSessions( - com.google.cloud.discoveryengine.v1alpha.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceGrpc.java index 79e936efb56f..77c04e97aa03 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceGrpc.java @@ -25,9 +25,6 @@ * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/data_store_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataStoreServiceGrpc { @@ -767,8 +764,9 @@ protected DataStoreServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createDataStore( - com.google.cloud.discoveryengine.v1alpha.CreateDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataStoreMethod(), getCallOptions(), request); } @@ -780,8 +778,9 @@ public com.google.longrunning.Operation createDataStore( * */ public com.google.cloud.discoveryengine.v1alpha.DataStore getDataStore( - com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataStoreMethod(), getCallOptions(), request); } @@ -794,8 +793,9 @@ public com.google.cloud.discoveryengine.v1alpha.DataStore getDataStore( * */ public com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse listDataStores( - com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataStoresMethod(), getCallOptions(), request); } @@ -807,8 +807,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse listDataS * */ public com.google.longrunning.Operation deleteDataStore( - com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataStoreMethod(), getCallOptions(), request); } @@ -820,8 +821,9 @@ public com.google.longrunning.Operation deleteDataStore( * */ public com.google.cloud.discoveryengine.v1alpha.DataStore updateDataStore( - com.google.cloud.discoveryengine.v1alpha.UpdateDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataStoreMethod(), getCallOptions(), request); } @@ -835,8 +837,9 @@ public com.google.cloud.discoveryengine.v1alpha.DataStore updateDataStore( */ public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig getDocumentProcessingConfig( - com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDocumentProcessingConfigMethod(), getCallOptions(), request); } @@ -856,9 +859,9 @@ public com.google.cloud.discoveryengine.v1alpha.DataStore updateDataStore( */ public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig updateDocumentProcessingConfig( - com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDocumentProcessingConfigMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceGrpc.java index 05548d4ed1c7..8af72571095e 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceGrpc.java @@ -26,9 +26,6 @@ * customer's website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/document_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentServiceGrpc { @@ -929,8 +926,9 @@ protected DocumentServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.Document getDocument( - com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDocumentMethod(), getCallOptions(), request); } @@ -942,8 +940,9 @@ public com.google.cloud.discoveryengine.v1alpha.Document getDocument( * */ public com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse listDocuments( - com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDocumentsMethod(), getCallOptions(), request); } @@ -955,8 +954,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse listDocume * */ public com.google.cloud.discoveryengine.v1alpha.Document createDocument( - com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } @@ -968,8 +968,9 @@ public com.google.cloud.discoveryengine.v1alpha.Document createDocument( * */ public com.google.cloud.discoveryengine.v1alpha.Document updateDocument( - com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } @@ -981,8 +982,9 @@ public com.google.cloud.discoveryengine.v1alpha.Document updateDocument( * */ public com.google.protobuf.Empty deleteDocument( - com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } @@ -999,8 +1001,9 @@ public com.google.protobuf.Empty deleteDocument( * */ public com.google.longrunning.Operation importDocuments( - com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDocumentsMethod(), getCallOptions(), request); } @@ -1026,8 +1029,9 @@ public com.google.longrunning.Operation importDocuments( * */ public com.google.longrunning.Operation purgeDocuments( - com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeDocumentsMethod(), getCallOptions(), request); } @@ -1040,8 +1044,9 @@ public com.google.longrunning.Operation purgeDocuments( * */ public com.google.cloud.discoveryengine.v1alpha.ProcessedDocument getProcessedDocument( - com.google.cloud.discoveryengine.v1alpha.GetProcessedDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetProcessedDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessedDocumentMethod(), getCallOptions(), request); } @@ -1056,8 +1061,9 @@ public com.google.cloud.discoveryengine.v1alpha.ProcessedDocument getProcessedDo */ public com.google.cloud.discoveryengine.v1alpha.BatchGetDocumentsMetadataResponse batchGetDocumentsMetadata( - com.google.cloud.discoveryengine.v1alpha.BatchGetDocumentsMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.BatchGetDocumentsMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchGetDocumentsMetadataMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceGrpc.java index f031b3a78ec2..746686206905 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceGrpc.java @@ -25,9 +25,6 @@ * configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/engine_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EngineServiceGrpc { @@ -790,8 +787,9 @@ protected EngineServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createEngine( - com.google.cloud.discoveryengine.v1alpha.CreateEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEngineMethod(), getCallOptions(), request); } @@ -803,8 +801,9 @@ public com.google.longrunning.Operation createEngine( * */ public com.google.longrunning.Operation deleteEngine( - com.google.cloud.discoveryengine.v1alpha.DeleteEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEngineMethod(), getCallOptions(), request); } @@ -816,8 +815,9 @@ public com.google.longrunning.Operation deleteEngine( * */ public com.google.cloud.discoveryengine.v1alpha.Engine updateEngine( - com.google.cloud.discoveryengine.v1alpha.UpdateEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEngineMethod(), getCallOptions(), request); } @@ -829,8 +829,9 @@ public com.google.cloud.discoveryengine.v1alpha.Engine updateEngine( * */ public com.google.cloud.discoveryengine.v1alpha.Engine getEngine( - com.google.cloud.discoveryengine.v1alpha.GetEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEngineMethod(), getCallOptions(), request); } @@ -843,8 +844,9 @@ public com.google.cloud.discoveryengine.v1alpha.Engine getEngine( * */ public com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse listEngines( - com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnginesMethod(), getCallOptions(), request); } @@ -858,8 +860,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse listEngines( * */ public com.google.cloud.discoveryengine.v1alpha.Engine pauseEngine( - com.google.cloud.discoveryengine.v1alpha.PauseEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.PauseEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseEngineMethod(), getCallOptions(), request); } @@ -873,8 +876,9 @@ public com.google.cloud.discoveryengine.v1alpha.Engine pauseEngine( * */ public com.google.cloud.discoveryengine.v1alpha.Engine resumeEngine( - com.google.cloud.discoveryengine.v1alpha.ResumeEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ResumeEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeEngineMethod(), getCallOptions(), request); } @@ -888,8 +892,9 @@ public com.google.cloud.discoveryengine.v1alpha.Engine resumeEngine( * */ public com.google.longrunning.Operation tuneEngine( - com.google.cloud.discoveryengine.v1alpha.TuneEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.TuneEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTuneEngineMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceGrpc.java index d38c25d5dd10..0cc43de7ac91 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing billing estimations resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EstimateBillingServiceGrpc { @@ -242,8 +239,9 @@ protected EstimateBillingServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation estimateDataSize( - com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEstimateDataSizeMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceGrpc.java index 9f8fc72e99b0..5e6797ecc76b 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceGrpc.java @@ -25,9 +25,6 @@ * [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s, * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/evaluation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EvaluationServiceGrpc { @@ -497,8 +494,9 @@ protected EvaluationServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.Evaluation getEvaluation( - com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEvaluationMethod(), getCallOptions(), request); } @@ -511,8 +509,9 @@ public com.google.cloud.discoveryengine.v1alpha.Evaluation getEvaluation( * */ public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse listEvaluations( - com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEvaluationsMethod(), getCallOptions(), request); } @@ -526,8 +525,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse listEval * */ public com.google.longrunning.Operation createEvaluation( - com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEvaluationMethod(), getCallOptions(), request); } @@ -541,8 +541,9 @@ public com.google.longrunning.Operation createEvaluation( */ public com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse listEvaluationResults( - com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListEvaluationResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEvaluationResultsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceGrpc.java index 2e07e19ec988..aaa0aa3819f7 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceGrpc.java @@ -24,9 +24,6 @@ * Service for grounded generation. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GroundedGenerationServiceGrpc { @@ -245,8 +242,9 @@ protected GroundedGenerationServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.CheckGroundingResponse checkGrounding( - com.google.cloud.discoveryengine.v1alpha.CheckGroundingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CheckGroundingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckGroundingMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceGrpc.java index 2889b3f96306..a7c6f49c392f 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceGrpc.java @@ -25,9 +25,6 @@ * [Project][google.cloud.discoveryengine.v1alpha.Project]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/project_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProjectServiceGrpc { @@ -416,8 +413,9 @@ protected ProjectServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.Project getProject( - com.google.cloud.discoveryengine.v1alpha.GetProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProjectMethod(), getCallOptions(), request); } @@ -433,8 +431,9 @@ public com.google.cloud.discoveryengine.v1alpha.Project getProject( * */ public com.google.longrunning.Operation provisionProject( - com.google.cloud.discoveryengine.v1alpha.ProvisionProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ProvisionProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProvisionProjectMethod(), getCallOptions(), request); } @@ -449,8 +448,9 @@ public com.google.longrunning.Operation provisionProject( * */ public com.google.cloud.discoveryengine.v1alpha.Project reportConsentChange( - com.google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportConsentChangeMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceGrpc.java index 7edf97b867f1..110010541ac7 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ranking text records. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/rank_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RankServiceGrpc { @@ -236,8 +233,9 @@ protected RankServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.RankResponse rank( - com.google.cloud.discoveryengine.v1alpha.RankRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.RankRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRankMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceGrpc.java index 7a32fdbfb450..342e57296907 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceGrpc.java @@ -24,9 +24,6 @@ * Service for making recommendations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/recommendation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RecommendationServiceGrpc { @@ -240,8 +237,9 @@ protected RecommendationServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.RecommendResponse recommend( - com.google.cloud.discoveryengine.v1alpha.RecommendRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.RecommendRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecommendMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceGrpc.java index acc304eb8038..bb7836a54c4d 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceGrpc.java @@ -25,9 +25,6 @@ * [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s, * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/sample_query_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SampleQueryServiceGrpc { @@ -658,8 +655,9 @@ protected SampleQueryServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery( - com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetSampleQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSampleQueryMethod(), getCallOptions(), request); } @@ -672,8 +670,9 @@ public com.google.cloud.discoveryengine.v1alpha.SampleQuery getSampleQuery( * */ public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse listSampleQueries( - com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSampleQueriesMethod(), getCallOptions(), request); } @@ -685,8 +684,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse listSa * */ public com.google.cloud.discoveryengine.v1alpha.SampleQuery createSampleQuery( - com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSampleQueryMethod(), getCallOptions(), request); } @@ -698,8 +698,9 @@ public com.google.cloud.discoveryengine.v1alpha.SampleQuery createSampleQuery( * */ public com.google.cloud.discoveryengine.v1alpha.SampleQuery updateSampleQuery( - com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSampleQueryMethod(), getCallOptions(), request); } @@ -711,8 +712,9 @@ public com.google.cloud.discoveryengine.v1alpha.SampleQuery updateSampleQuery( * */ public com.google.protobuf.Empty deleteSampleQuery( - com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSampleQueryMethod(), getCallOptions(), request); } @@ -729,8 +731,9 @@ public com.google.protobuf.Empty deleteSampleQuery( * */ public com.google.longrunning.Operation importSampleQueries( - com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportSampleQueriesMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceGrpc.java index bb77eac5b3a3..7d0693c23d60 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceGrpc.java @@ -25,9 +25,6 @@ * [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s, * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SampleQuerySetServiceGrpc { @@ -591,8 +588,9 @@ protected SampleQuerySetServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySet( - com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetSampleQuerySetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSampleQuerySetMethod(), getCallOptions(), request); } @@ -605,8 +603,9 @@ public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet getSampleQuerySet * */ public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse listSampleQuerySets( - com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSampleQuerySetsMethod(), getCallOptions(), request); } @@ -619,8 +618,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse list * */ public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet createSampleQuerySet( - com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSampleQuerySetMethod(), getCallOptions(), request); } @@ -633,8 +633,9 @@ public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet createSampleQuery * */ public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet updateSampleQuerySet( - com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateSampleQuerySetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSampleQuerySetMethod(), getCallOptions(), request); } @@ -647,8 +648,9 @@ public com.google.cloud.discoveryengine.v1alpha.SampleQuerySet updateSampleQuery * */ public com.google.protobuf.Empty deleteSampleQuerySet( - com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteSampleQuerySetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSampleQuerySetMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceGrpc.java index 8c85410d657f..df5a77cf0bf5 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/schema_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SchemaServiceGrpc { @@ -542,8 +539,9 @@ protected SchemaServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.Schema getSchema( - com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSchemaMethod(), getCallOptions(), request); } @@ -555,8 +553,9 @@ public com.google.cloud.discoveryengine.v1alpha.Schema getSchema( * */ public com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse listSchemas( - com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchemasMethod(), getCallOptions(), request); } @@ -568,8 +567,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse listSchemas( * */ public com.google.longrunning.Operation createSchema( - com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSchemaMethod(), getCallOptions(), request); } @@ -581,8 +581,9 @@ public com.google.longrunning.Operation createSchema( * */ public com.google.longrunning.Operation updateSchema( - com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSchemaMethod(), getCallOptions(), request); } @@ -594,8 +595,9 @@ public com.google.longrunning.Operation updateSchema( * */ public com.google.longrunning.Operation deleteSchema( - com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceGrpc.java index 892c65b3fd11..283d70ec90e4 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceGrpc.java @@ -24,9 +24,6 @@ * Service for search. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchServiceGrpc { @@ -237,8 +234,9 @@ protected SearchServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.SearchResponse search( - com.google.cloud.discoveryengine.v1alpha.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.SearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceGrpc.java index 868b15628f62..7610390d873c 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceGrpc.java @@ -24,9 +24,6 @@ * Service for search tuning. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/search_tuning_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchTuningServiceGrpc { @@ -323,8 +320,9 @@ protected SearchTuningServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation trainCustomModel( - com.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTrainCustomModelMethod(), getCallOptions(), request); } @@ -336,8 +334,9 @@ public com.google.longrunning.Operation trainCustomModel( * */ public com.google.cloud.discoveryengine.v1alpha.ListCustomModelsResponse listCustomModels( - com.google.cloud.discoveryengine.v1alpha.ListCustomModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListCustomModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomModelsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceGrpc.java index 50203bba4b63..a46cca8d4791 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceGrpc.java @@ -25,9 +25,6 @@ * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/serving_config_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServingConfigServiceGrpc { @@ -419,8 +416,9 @@ protected ServingConfigServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.ServingConfig updateServingConfig( - com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServingConfigMethod(), getCallOptions(), request); } @@ -433,8 +431,9 @@ public com.google.cloud.discoveryengine.v1alpha.ServingConfig updateServingConfi * */ public com.google.cloud.discoveryengine.v1alpha.ServingConfig getServingConfig( - com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServingConfigMethod(), getCallOptions(), request); } @@ -446,8 +445,9 @@ public com.google.cloud.discoveryengine.v1alpha.ServingConfig getServingConfig( * */ public com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse listServingConfigs( - com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServingConfigsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceGrpc.java index f17b76a71428..888f6d4d5b46 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing Sessions and Session-related resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/session_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionServiceGrpc { @@ -641,8 +638,9 @@ protected SessionServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.Session createSession( - com.google.cloud.discoveryengine.v1alpha.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } @@ -656,8 +654,9 @@ public com.google.cloud.discoveryengine.v1alpha.Session createSession( * */ public com.google.protobuf.Empty deleteSession( - com.google.cloud.discoveryengine.v1alpha.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionMethod(), getCallOptions(), request); } @@ -672,8 +671,9 @@ public com.google.protobuf.Empty deleteSession( * */ public com.google.cloud.discoveryengine.v1alpha.Session updateSession( - com.google.cloud.discoveryengine.v1alpha.UpdateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionMethod(), getCallOptions(), request); } @@ -685,8 +685,9 @@ public com.google.cloud.discoveryengine.v1alpha.Session updateSession( * */ public com.google.cloud.discoveryengine.v1alpha.Session getSession( - com.google.cloud.discoveryengine.v1alpha.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionMethod(), getCallOptions(), request); } @@ -699,8 +700,9 @@ public com.google.cloud.discoveryengine.v1alpha.Session getSession( * */ public com.google.cloud.discoveryengine.v1alpha.ListSessionsResponse listSessions( - com.google.cloud.discoveryengine.v1alpha.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } @@ -712,8 +714,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListSessionsResponse listSession * */ public com.google.cloud.discoveryengine.v1alpha.ListFilesResponse listFiles( - com.google.cloud.discoveryengine.v1alpha.ListFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFilesMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceGrpc.java index dc83a7c89ad0..2f3f8f2a461a 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing site search related resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SiteSearchEngineServiceGrpc { @@ -1328,8 +1325,9 @@ protected SiteSearchEngineServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.SiteSearchEngine getSiteSearchEngine( - com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSiteSearchEngineMethod(), getCallOptions(), request); } @@ -1341,8 +1339,9 @@ public com.google.cloud.discoveryengine.v1alpha.SiteSearchEngine getSiteSearchEn * */ public com.google.longrunning.Operation createTargetSite( - com.google.cloud.discoveryengine.v1alpha.CreateTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CreateTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTargetSiteMethod(), getCallOptions(), request); } @@ -1355,8 +1354,9 @@ public com.google.longrunning.Operation createTargetSite( * */ public com.google.longrunning.Operation batchCreateTargetSites( - com.google.cloud.discoveryengine.v1alpha.BatchCreateTargetSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.BatchCreateTargetSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateTargetSitesMethod(), getCallOptions(), request); } @@ -1368,8 +1368,9 @@ public com.google.longrunning.Operation batchCreateTargetSites( * */ public com.google.cloud.discoveryengine.v1alpha.TargetSite getTargetSite( - com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTargetSiteMethod(), getCallOptions(), request); } @@ -1381,8 +1382,9 @@ public com.google.cloud.discoveryengine.v1alpha.TargetSite getTargetSite( * */ public com.google.longrunning.Operation updateTargetSite( - com.google.cloud.discoveryengine.v1alpha.UpdateTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.UpdateTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTargetSiteMethod(), getCallOptions(), request); } @@ -1394,8 +1396,9 @@ public com.google.longrunning.Operation updateTargetSite( * */ public com.google.longrunning.Operation deleteTargetSite( - com.google.cloud.discoveryengine.v1alpha.DeleteTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DeleteTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTargetSiteMethod(), getCallOptions(), request); } @@ -1408,8 +1411,9 @@ public com.google.longrunning.Operation deleteTargetSite( * */ public com.google.cloud.discoveryengine.v1alpha.ListTargetSitesResponse listTargetSites( - com.google.cloud.discoveryengine.v1alpha.ListTargetSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ListTargetSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTargetSitesMethod(), getCallOptions(), request); } @@ -1421,8 +1425,9 @@ public com.google.cloud.discoveryengine.v1alpha.ListTargetSitesResponse listTarg * */ public com.google.longrunning.Operation enableAdvancedSiteSearch( - com.google.cloud.discoveryengine.v1alpha.EnableAdvancedSiteSearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.EnableAdvancedSiteSearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableAdvancedSiteSearchMethod(), getCallOptions(), request); } @@ -1434,8 +1439,9 @@ public com.google.longrunning.Operation enableAdvancedSiteSearch( * */ public com.google.longrunning.Operation disableAdvancedSiteSearch( - com.google.cloud.discoveryengine.v1alpha.DisableAdvancedSiteSearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.DisableAdvancedSiteSearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableAdvancedSiteSearchMethod(), getCallOptions(), request); } @@ -1447,8 +1453,9 @@ public com.google.longrunning.Operation disableAdvancedSiteSearch( * */ public com.google.longrunning.Operation recrawlUris( - com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecrawlUrisMethod(), getCallOptions(), request); } @@ -1462,8 +1469,9 @@ public com.google.longrunning.Operation recrawlUris( * */ public com.google.longrunning.Operation batchVerifyTargetSites( - com.google.cloud.discoveryengine.v1alpha.BatchVerifyTargetSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.BatchVerifyTargetSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchVerifyTargetSitesMethod(), getCallOptions(), request); } @@ -1478,8 +1486,9 @@ public com.google.longrunning.Operation batchVerifyTargetSites( */ public com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusResponse fetchDomainVerificationStatus( - com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchDomainVerificationStatusMethod(), getCallOptions(), request); } @@ -1492,8 +1501,9 @@ public com.google.longrunning.Operation batchVerifyTargetSites( * */ public com.google.longrunning.Operation setUriPatternDocumentData( - com.google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetUriPatternDocumentDataMethod(), getCallOptions(), request); } @@ -1507,8 +1517,9 @@ public com.google.longrunning.Operation setUriPatternDocumentData( */ public com.google.cloud.discoveryengine.v1alpha.GetUriPatternDocumentDataResponse getUriPatternDocumentData( - com.google.cloud.discoveryengine.v1alpha.GetUriPatternDocumentDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.GetUriPatternDocumentDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUriPatternDocumentDataMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceGrpc.java index b136e471ac96..532340b81ef5 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ingesting end user actions on a website to Discovery Engine API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1alpha/user_event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserEventServiceGrpc { @@ -490,8 +487,9 @@ protected UserEventServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1alpha.UserEvent writeUserEvent( - com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteUserEventMethod(), getCallOptions(), request); } @@ -506,8 +504,9 @@ public com.google.cloud.discoveryengine.v1alpha.UserEvent writeUserEvent( * */ public com.google.api.HttpBody collectUserEvent( - com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } @@ -522,8 +521,9 @@ public com.google.api.HttpBody collectUserEvent( * */ public com.google.longrunning.Operation purgeUserEvents( - com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); } @@ -540,8 +540,9 @@ public com.google.longrunning.Operation purgeUserEvents( * */ public com.google.longrunning.Operation importUserEvents( - com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportUserEventsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java index 1678ffc262ac..ad880365a041 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for Auto-Completion. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/completion_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompletionServiceGrpc { @@ -676,8 +673,9 @@ protected CompletionServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse completeQuery( - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } @@ -690,8 +688,9 @@ public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse completeQue */ public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse advancedCompleteQuery( - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAdvancedCompleteQueryMethod(), getCallOptions(), request); } @@ -705,8 +704,9 @@ public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse completeQue * */ public com.google.longrunning.Operation importSuggestionDenyListEntries( - com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportSuggestionDenyListEntriesMethod(), getCallOptions(), request); } @@ -720,8 +720,9 @@ public com.google.longrunning.Operation importSuggestionDenyListEntries( * */ public com.google.longrunning.Operation purgeSuggestionDenyListEntries( - com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeSuggestionDenyListEntriesMethod(), getCallOptions(), request); } @@ -735,8 +736,9 @@ public com.google.longrunning.Operation purgeSuggestionDenyListEntries( * */ public com.google.longrunning.Operation importCompletionSuggestions( - com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportCompletionSuggestionsMethod(), getCallOptions(), request); } @@ -750,8 +752,9 @@ public com.google.longrunning.Operation importCompletionSuggestions( * */ public com.google.longrunning.Operation purgeCompletionSuggestions( - com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeCompletionSuggestionsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceGrpc.java index d13a05f723a7..13b4d43c3411 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceGrpc.java @@ -27,9 +27,6 @@ * request. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/control_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ControlServiceGrpc { @@ -583,8 +580,9 @@ protected ControlServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.Control createControl( - com.google.cloud.discoveryengine.v1beta.CreateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateControlMethod(), getCallOptions(), request); } @@ -598,8 +596,9 @@ public com.google.cloud.discoveryengine.v1beta.Control createControl( * */ public com.google.protobuf.Empty deleteControl( - com.google.cloud.discoveryengine.v1beta.DeleteControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteControlMethod(), getCallOptions(), request); } @@ -614,8 +613,9 @@ public com.google.protobuf.Empty deleteControl( * */ public com.google.cloud.discoveryengine.v1beta.Control updateControl( - com.google.cloud.discoveryengine.v1beta.UpdateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateControlMethod(), getCallOptions(), request); } @@ -627,8 +627,9 @@ public com.google.cloud.discoveryengine.v1beta.Control updateControl( * */ public com.google.cloud.discoveryengine.v1beta.Control getControl( - com.google.cloud.discoveryengine.v1beta.GetControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetControlMethod(), getCallOptions(), request); } @@ -641,8 +642,9 @@ public com.google.cloud.discoveryengine.v1beta.Control getControl( * */ public com.google.cloud.discoveryengine.v1beta.ListControlsResponse listControls( - com.google.cloud.discoveryengine.v1beta.ListControlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListControlsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListControlsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java index dcded622f5bd..5c268355f479 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java @@ -24,9 +24,6 @@ * Service for conversational search. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationalSearchServiceGrpc { @@ -1242,8 +1239,9 @@ protected ConversationalSearchServiceBlockingV2Stub build( */ public com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse converseConversation( - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConverseConversationMethod(), getCallOptions(), request); } @@ -1257,8 +1255,9 @@ protected ConversationalSearchServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.Conversation createConversation( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } @@ -1272,8 +1271,9 @@ public com.google.cloud.discoveryengine.v1beta.Conversation createConversation( * */ public com.google.protobuf.Empty deleteConversation( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversationMethod(), getCallOptions(), request); } @@ -1289,8 +1289,9 @@ public com.google.protobuf.Empty deleteConversation( * */ public com.google.cloud.discoveryengine.v1beta.Conversation updateConversation( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversationMethod(), getCallOptions(), request); } @@ -1302,8 +1303,9 @@ public com.google.cloud.discoveryengine.v1beta.Conversation updateConversation( * */ public com.google.cloud.discoveryengine.v1beta.Conversation getConversation( - com.google.cloud.discoveryengine.v1beta.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationMethod(), getCallOptions(), request); } @@ -1316,8 +1318,9 @@ public com.google.cloud.discoveryengine.v1beta.Conversation getConversation( * */ public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse listConversations( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -1329,8 +1332,9 @@ public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse listCon * */ public com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse answerQuery( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnswerQueryMethod(), getCallOptions(), request); } @@ -1342,8 +1346,9 @@ public com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse answerQuery( * */ public com.google.cloud.discoveryengine.v1beta.Answer getAnswer( - com.google.cloud.discoveryengine.v1beta.GetAnswerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetAnswerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnswerMethod(), getCallOptions(), request); } @@ -1357,8 +1362,9 @@ public com.google.cloud.discoveryengine.v1beta.Answer getAnswer( * */ public com.google.cloud.discoveryengine.v1beta.Session createSession( - com.google.cloud.discoveryengine.v1beta.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } @@ -1372,8 +1378,9 @@ public com.google.cloud.discoveryengine.v1beta.Session createSession( * */ public com.google.protobuf.Empty deleteSession( - com.google.cloud.discoveryengine.v1beta.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionMethod(), getCallOptions(), request); } @@ -1388,8 +1395,9 @@ public com.google.protobuf.Empty deleteSession( * */ public com.google.cloud.discoveryengine.v1beta.Session updateSession( - com.google.cloud.discoveryengine.v1beta.UpdateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionMethod(), getCallOptions(), request); } @@ -1401,8 +1409,9 @@ public com.google.cloud.discoveryengine.v1beta.Session updateSession( * */ public com.google.cloud.discoveryengine.v1beta.Session getSession( - com.google.cloud.discoveryengine.v1beta.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionMethod(), getCallOptions(), request); } @@ -1415,8 +1424,9 @@ public com.google.cloud.discoveryengine.v1beta.Session getSession( * */ public com.google.cloud.discoveryengine.v1beta.ListSessionsResponse listSessions( - com.google.cloud.discoveryengine.v1beta.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceGrpc.java index e7f71fe10db9..83f50455c4c6 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceGrpc.java @@ -25,9 +25,6 @@ * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/data_store_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataStoreServiceGrpc { @@ -574,8 +571,9 @@ protected DataStoreServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createDataStore( - com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataStoreMethod(), getCallOptions(), request); } @@ -587,8 +585,9 @@ public com.google.longrunning.Operation createDataStore( * */ public com.google.cloud.discoveryengine.v1beta.DataStore getDataStore( - com.google.cloud.discoveryengine.v1beta.GetDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataStoreMethod(), getCallOptions(), request); } @@ -601,8 +600,9 @@ public com.google.cloud.discoveryengine.v1beta.DataStore getDataStore( * */ public com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse listDataStores( - com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataStoresMethod(), getCallOptions(), request); } @@ -614,8 +614,9 @@ public com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse listDataSt * */ public com.google.longrunning.Operation deleteDataStore( - com.google.cloud.discoveryengine.v1beta.DeleteDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataStoreMethod(), getCallOptions(), request); } @@ -627,8 +628,9 @@ public com.google.longrunning.Operation deleteDataStore( * */ public com.google.cloud.discoveryengine.v1beta.DataStore updateDataStore( - com.google.cloud.discoveryengine.v1beta.UpdateDataStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateDataStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataStoreMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java index f33affba4c71..6f891d6925c2 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java @@ -26,9 +26,6 @@ * customer's website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/document_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentServiceGrpc { @@ -844,8 +841,9 @@ protected DocumentServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.Document getDocument( - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDocumentMethod(), getCallOptions(), request); } @@ -857,8 +855,9 @@ public com.google.cloud.discoveryengine.v1beta.Document getDocument( * */ public com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse listDocuments( - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDocumentsMethod(), getCallOptions(), request); } @@ -870,8 +869,9 @@ public com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse listDocumen * */ public com.google.cloud.discoveryengine.v1beta.Document createDocument( - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } @@ -883,8 +883,9 @@ public com.google.cloud.discoveryengine.v1beta.Document createDocument( * */ public com.google.cloud.discoveryengine.v1beta.Document updateDocument( - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } @@ -896,8 +897,9 @@ public com.google.cloud.discoveryengine.v1beta.Document updateDocument( * */ public com.google.protobuf.Empty deleteDocument( - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } @@ -914,8 +916,9 @@ public com.google.protobuf.Empty deleteDocument( * */ public com.google.longrunning.Operation importDocuments( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDocumentsMethod(), getCallOptions(), request); } @@ -941,8 +944,9 @@ public com.google.longrunning.Operation importDocuments( * */ public com.google.longrunning.Operation purgeDocuments( - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeDocumentsMethod(), getCallOptions(), request); } @@ -957,8 +961,9 @@ public com.google.longrunning.Operation purgeDocuments( */ public com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse batchGetDocumentsMetadata( - com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchGetDocumentsMetadataMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceGrpc.java index 45712c36a43d..ed8a2abe0a37 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceGrpc.java @@ -25,9 +25,6 @@ * configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/engine_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EngineServiceGrpc { @@ -790,8 +787,9 @@ protected EngineServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createEngine( - com.google.cloud.discoveryengine.v1beta.CreateEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEngineMethod(), getCallOptions(), request); } @@ -803,8 +801,9 @@ public com.google.longrunning.Operation createEngine( * */ public com.google.longrunning.Operation deleteEngine( - com.google.cloud.discoveryengine.v1beta.DeleteEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEngineMethod(), getCallOptions(), request); } @@ -816,8 +815,9 @@ public com.google.longrunning.Operation deleteEngine( * */ public com.google.cloud.discoveryengine.v1beta.Engine updateEngine( - com.google.cloud.discoveryengine.v1beta.UpdateEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEngineMethod(), getCallOptions(), request); } @@ -829,8 +829,9 @@ public com.google.cloud.discoveryengine.v1beta.Engine updateEngine( * */ public com.google.cloud.discoveryengine.v1beta.Engine getEngine( - com.google.cloud.discoveryengine.v1beta.GetEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEngineMethod(), getCallOptions(), request); } @@ -843,8 +844,9 @@ public com.google.cloud.discoveryengine.v1beta.Engine getEngine( * */ public com.google.cloud.discoveryengine.v1beta.ListEnginesResponse listEngines( - com.google.cloud.discoveryengine.v1beta.ListEnginesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListEnginesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnginesMethod(), getCallOptions(), request); } @@ -858,8 +860,9 @@ public com.google.cloud.discoveryengine.v1beta.ListEnginesResponse listEngines( * */ public com.google.cloud.discoveryengine.v1beta.Engine pauseEngine( - com.google.cloud.discoveryengine.v1beta.PauseEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.PauseEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseEngineMethod(), getCallOptions(), request); } @@ -873,8 +876,9 @@ public com.google.cloud.discoveryengine.v1beta.Engine pauseEngine( * */ public com.google.cloud.discoveryengine.v1beta.Engine resumeEngine( - com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeEngineMethod(), getCallOptions(), request); } @@ -888,8 +892,9 @@ public com.google.cloud.discoveryengine.v1beta.Engine resumeEngine( * */ public com.google.longrunning.Operation tuneEngine( - com.google.cloud.discoveryengine.v1beta.TuneEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.TuneEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTuneEngineMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceGrpc.java index 4c2f5bcc410a..dfb24ce3d074 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceGrpc.java @@ -25,9 +25,6 @@ * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s, * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/evaluation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EvaluationServiceGrpc { @@ -495,8 +492,9 @@ protected EvaluationServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.Evaluation getEvaluation( - com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEvaluationMethod(), getCallOptions(), request); } @@ -509,8 +507,9 @@ public com.google.cloud.discoveryengine.v1beta.Evaluation getEvaluation( * */ public com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse listEvaluations( - com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEvaluationsMethod(), getCallOptions(), request); } @@ -524,8 +523,9 @@ public com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse listEvalu * */ public com.google.longrunning.Operation createEvaluation( - com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEvaluationMethod(), getCallOptions(), request); } @@ -539,8 +539,9 @@ public com.google.longrunning.Operation createEvaluation( */ public com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse listEvaluationResults( - com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEvaluationResultsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceGrpc.java index e5bba906e26a..2b72f7e750ca 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceGrpc.java @@ -24,9 +24,6 @@ * Service for grounded generation. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/grounded_generation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GroundedGenerationServiceGrpc { @@ -437,8 +434,9 @@ protected GroundedGenerationServiceBlockingV2Stub build( */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse generateGroundedContent( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateGroundedContentMethod(), getCallOptions(), request); } @@ -450,8 +448,9 @@ protected GroundedGenerationServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse checkGrounding( - com.google.cloud.discoveryengine.v1beta.CheckGroundingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CheckGroundingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckGroundingMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceGrpc.java index bae306b6b20b..4fa6263884b7 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceGrpc.java @@ -25,9 +25,6 @@ * [Project][google.cloud.discoveryengine.v1beta.Project]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/project_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProjectServiceGrpc { @@ -255,8 +252,9 @@ protected ProjectServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation provisionProject( - com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProvisionProjectMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceGrpc.java index 6315a009f76c..31af71c04f41 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ranking text records. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/rank_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RankServiceGrpc { @@ -236,8 +233,9 @@ protected RankServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.RankResponse rank( - com.google.cloud.discoveryengine.v1beta.RankRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.RankRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRankMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java index 72e5f0398919..843dc37cf0ba 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java @@ -24,9 +24,6 @@ * Service for making recommendations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/recommendation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RecommendationServiceGrpc { @@ -240,8 +237,9 @@ protected RecommendationServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.RecommendResponse recommend( - com.google.cloud.discoveryengine.v1beta.RecommendRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.RecommendRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecommendMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceGrpc.java index f696862fce45..e9cc2296b148 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceGrpc.java @@ -25,9 +25,6 @@ * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s, * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/sample_query_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SampleQueryServiceGrpc { @@ -658,8 +655,9 @@ protected SampleQueryServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery( - com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSampleQueryMethod(), getCallOptions(), request); } @@ -672,8 +670,9 @@ public com.google.cloud.discoveryengine.v1beta.SampleQuery getSampleQuery( * */ public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse listSampleQueries( - com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSampleQueriesMethod(), getCallOptions(), request); } @@ -685,8 +684,9 @@ public com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse listSam * */ public com.google.cloud.discoveryengine.v1beta.SampleQuery createSampleQuery( - com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSampleQueryMethod(), getCallOptions(), request); } @@ -698,8 +698,9 @@ public com.google.cloud.discoveryengine.v1beta.SampleQuery createSampleQuery( * */ public com.google.cloud.discoveryengine.v1beta.SampleQuery updateSampleQuery( - com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSampleQueryMethod(), getCallOptions(), request); } @@ -711,8 +712,9 @@ public com.google.cloud.discoveryengine.v1beta.SampleQuery updateSampleQuery( * */ public com.google.protobuf.Empty deleteSampleQuery( - com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSampleQueryMethod(), getCallOptions(), request); } @@ -729,8 +731,9 @@ public com.google.protobuf.Empty deleteSampleQuery( * */ public com.google.longrunning.Operation importSampleQueries( - com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportSampleQueriesMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceGrpc.java index bcb1e786904d..c9274dae037c 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceGrpc.java @@ -25,9 +25,6 @@ * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s, * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/sample_query_set_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SampleQuerySetServiceGrpc { @@ -591,8 +588,9 @@ protected SampleQuerySetServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySet( - com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSampleQuerySetMethod(), getCallOptions(), request); } @@ -605,8 +603,9 @@ public com.google.cloud.discoveryengine.v1beta.SampleQuerySet getSampleQuerySet( * */ public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse listSampleQuerySets( - com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSampleQuerySetsMethod(), getCallOptions(), request); } @@ -619,8 +618,9 @@ public com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse listS * */ public com.google.cloud.discoveryengine.v1beta.SampleQuerySet createSampleQuerySet( - com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSampleQuerySetMethod(), getCallOptions(), request); } @@ -633,8 +633,9 @@ public com.google.cloud.discoveryengine.v1beta.SampleQuerySet createSampleQueryS * */ public com.google.cloud.discoveryengine.v1beta.SampleQuerySet updateSampleQuerySet( - com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSampleQuerySetMethod(), getCallOptions(), request); } @@ -647,8 +648,9 @@ public com.google.cloud.discoveryengine.v1beta.SampleQuerySet updateSampleQueryS * */ public com.google.protobuf.Empty deleteSampleQuerySet( - com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSampleQuerySetMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java index 7c15fd98546f..46c920c79db6 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/schema_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SchemaServiceGrpc { @@ -542,8 +539,9 @@ protected SchemaServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.Schema getSchema( - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSchemaMethod(), getCallOptions(), request); } @@ -555,8 +553,9 @@ public com.google.cloud.discoveryengine.v1beta.Schema getSchema( * */ public com.google.cloud.discoveryengine.v1beta.ListSchemasResponse listSchemas( - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchemasMethod(), getCallOptions(), request); } @@ -568,8 +567,9 @@ public com.google.cloud.discoveryengine.v1beta.ListSchemasResponse listSchemas( * */ public com.google.longrunning.Operation createSchema( - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSchemaMethod(), getCallOptions(), request); } @@ -581,8 +581,9 @@ public com.google.longrunning.Operation createSchema( * */ public com.google.longrunning.Operation updateSchema( - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSchemaMethod(), getCallOptions(), request); } @@ -594,8 +595,9 @@ public com.google.longrunning.Operation updateSchema( * */ public com.google.longrunning.Operation deleteSchema( - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java index 645ee7677f61..7a6926308325 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java @@ -24,9 +24,6 @@ * Service for search. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchServiceGrpc { @@ -332,8 +329,9 @@ protected SearchServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.SearchResponse search( - com.google.cloud.discoveryengine.v1beta.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.SearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } @@ -355,8 +353,9 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse search( * */ public com.google.cloud.discoveryengine.v1beta.SearchResponse searchLite( - com.google.cloud.discoveryengine.v1beta.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.SearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchLiteMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceGrpc.java index 2bb420be687c..ee6257543e0f 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceGrpc.java @@ -24,9 +24,6 @@ * Service for search tuning. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/search_tuning_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchTuningServiceGrpc { @@ -323,8 +320,9 @@ protected SearchTuningServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation trainCustomModel( - com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTrainCustomModelMethod(), getCallOptions(), request); } @@ -336,8 +334,9 @@ public com.google.longrunning.Operation trainCustomModel( * */ public com.google.cloud.discoveryengine.v1beta.ListCustomModelsResponse listCustomModels( - com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomModelsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java index 61e9c43cd63d..34f0fc70bbce 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java @@ -25,9 +25,6 @@ * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/serving_config_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServingConfigServiceGrpc { @@ -419,8 +416,9 @@ protected ServingConfigServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.ServingConfig updateServingConfig( - com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServingConfigMethod(), getCallOptions(), request); } @@ -433,8 +431,9 @@ public com.google.cloud.discoveryengine.v1beta.ServingConfig updateServingConfig * */ public com.google.cloud.discoveryengine.v1beta.ServingConfig getServingConfig( - com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServingConfigMethod(), getCallOptions(), request); } @@ -446,8 +445,9 @@ public com.google.cloud.discoveryengine.v1beta.ServingConfig getServingConfig( * */ public com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse listServingConfigs( - com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServingConfigsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceGrpc.java index 92157eccb217..24bf53aae9d4 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing Sessions and Session-related resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/session_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SessionServiceGrpc { @@ -562,8 +559,9 @@ protected SessionServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.Session createSession( - com.google.cloud.discoveryengine.v1beta.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } @@ -577,8 +575,9 @@ public com.google.cloud.discoveryengine.v1beta.Session createSession( * */ public com.google.protobuf.Empty deleteSession( - com.google.cloud.discoveryengine.v1beta.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSessionMethod(), getCallOptions(), request); } @@ -593,8 +592,9 @@ public com.google.protobuf.Empty deleteSession( * */ public com.google.cloud.discoveryengine.v1beta.Session updateSession( - com.google.cloud.discoveryengine.v1beta.UpdateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSessionMethod(), getCallOptions(), request); } @@ -606,8 +606,9 @@ public com.google.cloud.discoveryengine.v1beta.Session updateSession( * */ public com.google.cloud.discoveryengine.v1beta.Session getSession( - com.google.cloud.discoveryengine.v1beta.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSessionMethod(), getCallOptions(), request); } @@ -620,8 +621,9 @@ public com.google.cloud.discoveryengine.v1beta.Session getSession( * */ public com.google.cloud.discoveryengine.v1beta.ListSessionsResponse listSessions( - com.google.cloud.discoveryengine.v1beta.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceGrpc.java index b2c0b46329e6..4ca15e2b7ad4 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing site search related resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/site_search_engine_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SiteSearchEngineServiceGrpc { @@ -1384,8 +1381,9 @@ protected SiteSearchEngineServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.SiteSearchEngine getSiteSearchEngine( - com.google.cloud.discoveryengine.v1beta.GetSiteSearchEngineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetSiteSearchEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSiteSearchEngineMethod(), getCallOptions(), request); } @@ -1397,8 +1395,9 @@ public com.google.cloud.discoveryengine.v1beta.SiteSearchEngine getSiteSearchEng * */ public com.google.longrunning.Operation createTargetSite( - com.google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTargetSiteMethod(), getCallOptions(), request); } @@ -1411,8 +1410,9 @@ public com.google.longrunning.Operation createTargetSite( * */ public com.google.longrunning.Operation batchCreateTargetSites( - com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateTargetSitesMethod(), getCallOptions(), request); } @@ -1424,8 +1424,9 @@ public com.google.longrunning.Operation batchCreateTargetSites( * */ public com.google.cloud.discoveryengine.v1beta.TargetSite getTargetSite( - com.google.cloud.discoveryengine.v1beta.GetTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.GetTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTargetSiteMethod(), getCallOptions(), request); } @@ -1437,8 +1438,9 @@ public com.google.cloud.discoveryengine.v1beta.TargetSite getTargetSite( * */ public com.google.longrunning.Operation updateTargetSite( - com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTargetSiteMethod(), getCallOptions(), request); } @@ -1450,8 +1452,9 @@ public com.google.longrunning.Operation updateTargetSite( * */ public com.google.longrunning.Operation deleteTargetSite( - com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTargetSiteMethod(), getCallOptions(), request); } @@ -1464,8 +1467,9 @@ public com.google.longrunning.Operation deleteTargetSite( * */ public com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse listTargetSites( - com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTargetSitesMethod(), getCallOptions(), request); } @@ -1477,8 +1481,9 @@ public com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse listTarge * */ public com.google.longrunning.Operation createSitemap( - com.google.cloud.discoveryengine.v1beta.CreateSitemapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CreateSitemapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSitemapMethod(), getCallOptions(), request); } @@ -1490,8 +1495,9 @@ public com.google.longrunning.Operation createSitemap( * */ public com.google.longrunning.Operation deleteSitemap( - com.google.cloud.discoveryengine.v1beta.DeleteSitemapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DeleteSitemapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSitemapMethod(), getCallOptions(), request); } @@ -1504,8 +1510,9 @@ public com.google.longrunning.Operation deleteSitemap( * */ public com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse fetchSitemaps( - com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchSitemapsMethod(), getCallOptions(), request); } @@ -1517,8 +1524,9 @@ public com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse fetchSitema * */ public com.google.longrunning.Operation enableAdvancedSiteSearch( - com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableAdvancedSiteSearchMethod(), getCallOptions(), request); } @@ -1530,8 +1538,9 @@ public com.google.longrunning.Operation enableAdvancedSiteSearch( * */ public com.google.longrunning.Operation disableAdvancedSiteSearch( - com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableAdvancedSiteSearchMethod(), getCallOptions(), request); } @@ -1543,8 +1552,9 @@ public com.google.longrunning.Operation disableAdvancedSiteSearch( * */ public com.google.longrunning.Operation recrawlUris( - com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecrawlUrisMethod(), getCallOptions(), request); } @@ -1558,8 +1568,9 @@ public com.google.longrunning.Operation recrawlUris( * */ public com.google.longrunning.Operation batchVerifyTargetSites( - com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchVerifyTargetSitesMethod(), getCallOptions(), request); } @@ -1574,8 +1585,9 @@ public com.google.longrunning.Operation batchVerifyTargetSites( */ public com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse fetchDomainVerificationStatus( - com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchDomainVerificationStatusMethod(), getCallOptions(), request); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java index 6f641b2982d9..2f6fe9af960d 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ingesting end user actions on a website to Discovery Engine API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/user_event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserEventServiceGrpc { @@ -490,8 +487,9 @@ protected UserEventServiceBlockingV2Stub build( * */ public com.google.cloud.discoveryengine.v1beta.UserEvent writeUserEvent( - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteUserEventMethod(), getCallOptions(), request); } @@ -506,8 +504,9 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent writeUserEvent( * */ public com.google.api.HttpBody collectUserEvent( - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } @@ -522,8 +521,9 @@ public com.google.api.HttpBody collectUserEvent( * */ public com.google.longrunning.Operation purgeUserEvents( - com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); } @@ -540,8 +540,9 @@ public com.google.longrunning.Operation purgeUserEvents( * */ public com.google.longrunning.Operation importUserEvents( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportUserEventsMethod(), getCallOptions(), request); } } diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 2be86e5f1301..7981169fc6e9 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.74.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.74.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.75.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerGrpc.java b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerGrpc.java index 3a36e16e679b..c16b5041d18d 100644 --- a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerGrpc.java +++ b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerGrpc.java @@ -25,9 +25,6 @@ * Cloud deployments. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/edgecontainer/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EdgeContainerGrpc { @@ -1697,8 +1694,9 @@ protected EdgeContainerBlockingV2Stub build( * */ public com.google.cloud.edgecontainer.v1.ListClustersResponse listClusters( - com.google.cloud.edgecontainer.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.ListClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -1710,8 +1708,9 @@ public com.google.cloud.edgecontainer.v1.ListClustersResponse listClusters( * */ public com.google.cloud.edgecontainer.v1.Cluster getCluster( - com.google.cloud.edgecontainer.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.GetClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -1723,8 +1722,9 @@ public com.google.cloud.edgecontainer.v1.Cluster getCluster( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.edgecontainer.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.CreateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -1736,8 +1736,9 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.edgecontainer.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.UpdateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -1749,8 +1750,9 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation upgradeCluster( - com.google.cloud.edgecontainer.v1.UpgradeClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.UpgradeClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeClusterMethod(), getCallOptions(), request); } @@ -1762,8 +1764,9 @@ public com.google.longrunning.Operation upgradeCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.edgecontainer.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.DeleteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -1775,8 +1778,9 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.cloud.edgecontainer.v1.GenerateAccessTokenResponse generateAccessToken( - com.google.cloud.edgecontainer.v1.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.GenerateAccessTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); } @@ -1789,8 +1793,9 @@ public com.google.cloud.edgecontainer.v1.GenerateAccessTokenResponse generateAcc */ public com.google.cloud.edgecontainer.v1.GenerateOfflineCredentialResponse generateOfflineCredential( - com.google.cloud.edgecontainer.v1.GenerateOfflineCredentialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.GenerateOfflineCredentialRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateOfflineCredentialMethod(), getCallOptions(), request); } @@ -1802,8 +1807,9 @@ public com.google.cloud.edgecontainer.v1.GenerateAccessTokenResponse generateAcc * */ public com.google.cloud.edgecontainer.v1.ListNodePoolsResponse listNodePools( - com.google.cloud.edgecontainer.v1.ListNodePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.ListNodePoolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNodePoolsMethod(), getCallOptions(), request); } @@ -1815,8 +1821,9 @@ public com.google.cloud.edgecontainer.v1.ListNodePoolsResponse listNodePools( * */ public com.google.cloud.edgecontainer.v1.NodePool getNodePool( - com.google.cloud.edgecontainer.v1.GetNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.GetNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNodePoolMethod(), getCallOptions(), request); } @@ -1828,8 +1835,9 @@ public com.google.cloud.edgecontainer.v1.NodePool getNodePool( * */ public com.google.longrunning.Operation createNodePool( - com.google.cloud.edgecontainer.v1.CreateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.CreateNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNodePoolMethod(), getCallOptions(), request); } @@ -1841,8 +1849,9 @@ public com.google.longrunning.Operation createNodePool( * */ public com.google.longrunning.Operation updateNodePool( - com.google.cloud.edgecontainer.v1.UpdateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.UpdateNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNodePoolMethod(), getCallOptions(), request); } @@ -1854,8 +1863,9 @@ public com.google.longrunning.Operation updateNodePool( * */ public com.google.longrunning.Operation deleteNodePool( - com.google.cloud.edgecontainer.v1.DeleteNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.DeleteNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNodePoolMethod(), getCallOptions(), request); } @@ -1867,8 +1877,9 @@ public com.google.longrunning.Operation deleteNodePool( * */ public com.google.cloud.edgecontainer.v1.ListMachinesResponse listMachines( - com.google.cloud.edgecontainer.v1.ListMachinesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.ListMachinesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMachinesMethod(), getCallOptions(), request); } @@ -1880,8 +1891,9 @@ public com.google.cloud.edgecontainer.v1.ListMachinesResponse listMachines( * */ public com.google.cloud.edgecontainer.v1.Machine getMachine( - com.google.cloud.edgecontainer.v1.GetMachineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.GetMachineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMachineMethod(), getCallOptions(), request); } @@ -1893,8 +1905,9 @@ public com.google.cloud.edgecontainer.v1.Machine getMachine( * */ public com.google.cloud.edgecontainer.v1.ListVpnConnectionsResponse listVpnConnections( - com.google.cloud.edgecontainer.v1.ListVpnConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.ListVpnConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVpnConnectionsMethod(), getCallOptions(), request); } @@ -1906,8 +1919,9 @@ public com.google.cloud.edgecontainer.v1.ListVpnConnectionsResponse listVpnConne * */ public com.google.cloud.edgecontainer.v1.VpnConnection getVpnConnection( - com.google.cloud.edgecontainer.v1.GetVpnConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.GetVpnConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVpnConnectionMethod(), getCallOptions(), request); } @@ -1919,8 +1933,9 @@ public com.google.cloud.edgecontainer.v1.VpnConnection getVpnConnection( * */ public com.google.longrunning.Operation createVpnConnection( - com.google.cloud.edgecontainer.v1.CreateVpnConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.CreateVpnConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVpnConnectionMethod(), getCallOptions(), request); } @@ -1932,8 +1947,9 @@ public com.google.longrunning.Operation createVpnConnection( * */ public com.google.longrunning.Operation deleteVpnConnection( - com.google.cloud.edgecontainer.v1.DeleteVpnConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.DeleteVpnConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVpnConnectionMethod(), getCallOptions(), request); } @@ -1945,8 +1961,9 @@ public com.google.longrunning.Operation deleteVpnConnection( * */ public com.google.cloud.edgecontainer.v1.ServerConfig getServerConfig( - com.google.cloud.edgecontainer.v1.GetServerConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgecontainer.v1.GetServerConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServerConfigMethod(), getCallOptions(), request); } } diff --git a/java-dlp/README.md b/java-dlp/README.md index 308a4150d200..97f415082832 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.81.0 + 3.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.81.0' +implementation 'com.google.cloud:google-cloud-dlp:3.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.82.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java index 9ea15d114fa0..73b47ef48601 100644 --- a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java +++ b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java @@ -28,9 +28,6 @@ * https://cloud.google.com/sensitive-data-protection/docs/. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/privacy/dlp/v2/dlp.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DlpServiceGrpc { @@ -4677,8 +4674,8 @@ protected DlpServiceBlockingV2Stub build( * */ public com.google.privacy.dlp.v2.InspectContentResponse inspectContent( - com.google.privacy.dlp.v2.InspectContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.InspectContentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInspectContentMethod(), getCallOptions(), request); } @@ -4699,8 +4696,8 @@ public com.google.privacy.dlp.v2.InspectContentResponse inspectContent( * */ public com.google.privacy.dlp.v2.RedactImageResponse redactImage( - com.google.privacy.dlp.v2.RedactImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.RedactImageRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRedactImageMethod(), getCallOptions(), request); } @@ -4719,8 +4716,8 @@ public com.google.privacy.dlp.v2.RedactImageResponse redactImage( * */ public com.google.privacy.dlp.v2.DeidentifyContentResponse deidentifyContent( - com.google.privacy.dlp.v2.DeidentifyContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeidentifyContentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeidentifyContentMethod(), getCallOptions(), request); } @@ -4735,8 +4732,8 @@ public com.google.privacy.dlp.v2.DeidentifyContentResponse deidentifyContent( * */ public com.google.privacy.dlp.v2.ReidentifyContentResponse reidentifyContent( - com.google.privacy.dlp.v2.ReidentifyContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ReidentifyContentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReidentifyContentMethod(), getCallOptions(), request); } @@ -4751,8 +4748,8 @@ public com.google.privacy.dlp.v2.ReidentifyContentResponse reidentifyContent( * */ public com.google.privacy.dlp.v2.ListInfoTypesResponse listInfoTypes( - com.google.privacy.dlp.v2.ListInfoTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListInfoTypesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInfoTypesMethod(), getCallOptions(), request); } @@ -4768,8 +4765,9 @@ public com.google.privacy.dlp.v2.ListInfoTypesResponse listInfoTypes( * */ public com.google.privacy.dlp.v2.InspectTemplate createInspectTemplate( - com.google.privacy.dlp.v2.CreateInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.CreateInspectTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInspectTemplateMethod(), getCallOptions(), request); } @@ -4784,8 +4782,9 @@ public com.google.privacy.dlp.v2.InspectTemplate createInspectTemplate( * */ public com.google.privacy.dlp.v2.InspectTemplate updateInspectTemplate( - com.google.privacy.dlp.v2.UpdateInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.UpdateInspectTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInspectTemplateMethod(), getCallOptions(), request); } @@ -4800,8 +4799,9 @@ public com.google.privacy.dlp.v2.InspectTemplate updateInspectTemplate( * */ public com.google.privacy.dlp.v2.InspectTemplate getInspectTemplate( - com.google.privacy.dlp.v2.GetInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetInspectTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInspectTemplateMethod(), getCallOptions(), request); } @@ -4816,8 +4816,9 @@ public com.google.privacy.dlp.v2.InspectTemplate getInspectTemplate( * */ public com.google.privacy.dlp.v2.ListInspectTemplatesResponse listInspectTemplates( - com.google.privacy.dlp.v2.ListInspectTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListInspectTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInspectTemplatesMethod(), getCallOptions(), request); } @@ -4832,8 +4833,9 @@ public com.google.privacy.dlp.v2.ListInspectTemplatesResponse listInspectTemplat * */ public com.google.protobuf.Empty deleteInspectTemplate( - com.google.privacy.dlp.v2.DeleteInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeleteInspectTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInspectTemplateMethod(), getCallOptions(), request); } @@ -4849,8 +4851,9 @@ public com.google.protobuf.Empty deleteInspectTemplate( * */ public com.google.privacy.dlp.v2.DeidentifyTemplate createDeidentifyTemplate( - com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeidentifyTemplateMethod(), getCallOptions(), request); } @@ -4865,8 +4868,9 @@ public com.google.privacy.dlp.v2.DeidentifyTemplate createDeidentifyTemplate( * */ public com.google.privacy.dlp.v2.DeidentifyTemplate updateDeidentifyTemplate( - com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeidentifyTemplateMethod(), getCallOptions(), request); } @@ -4881,8 +4885,9 @@ public com.google.privacy.dlp.v2.DeidentifyTemplate updateDeidentifyTemplate( * */ public com.google.privacy.dlp.v2.DeidentifyTemplate getDeidentifyTemplate( - com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeidentifyTemplateMethod(), getCallOptions(), request); } @@ -4897,8 +4902,9 @@ public com.google.privacy.dlp.v2.DeidentifyTemplate getDeidentifyTemplate( * */ public com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse listDeidentifyTemplates( - com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeidentifyTemplatesMethod(), getCallOptions(), request); } @@ -4913,8 +4919,9 @@ public com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse listDeidentifyT * */ public com.google.protobuf.Empty deleteDeidentifyTemplate( - com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeidentifyTemplateMethod(), getCallOptions(), request); } @@ -4930,8 +4937,8 @@ public com.google.protobuf.Empty deleteDeidentifyTemplate( * */ public com.google.privacy.dlp.v2.JobTrigger createJobTrigger( - com.google.privacy.dlp.v2.CreateJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.CreateJobTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobTriggerMethod(), getCallOptions(), request); } @@ -4946,8 +4953,8 @@ public com.google.privacy.dlp.v2.JobTrigger createJobTrigger( * */ public com.google.privacy.dlp.v2.JobTrigger updateJobTrigger( - com.google.privacy.dlp.v2.UpdateJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.UpdateJobTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateJobTriggerMethod(), getCallOptions(), request); } @@ -4961,8 +4968,9 @@ public com.google.privacy.dlp.v2.JobTrigger updateJobTrigger( * */ public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectJobTrigger( - com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getHybridInspectJobTriggerMethod(), getCallOptions(), request); } @@ -4977,8 +4985,8 @@ public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectJobTrigger( * */ public com.google.privacy.dlp.v2.JobTrigger getJobTrigger( - com.google.privacy.dlp.v2.GetJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetJobTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobTriggerMethod(), getCallOptions(), request); } @@ -4993,8 +5001,8 @@ public com.google.privacy.dlp.v2.JobTrigger getJobTrigger( * */ public com.google.privacy.dlp.v2.ListJobTriggersResponse listJobTriggers( - com.google.privacy.dlp.v2.ListJobTriggersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListJobTriggersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobTriggersMethod(), getCallOptions(), request); } @@ -5009,8 +5017,8 @@ public com.google.privacy.dlp.v2.ListJobTriggersResponse listJobTriggers( * */ public com.google.protobuf.Empty deleteJobTrigger( - com.google.privacy.dlp.v2.DeleteJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeleteJobTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobTriggerMethod(), getCallOptions(), request); } @@ -5023,8 +5031,9 @@ public com.google.protobuf.Empty deleteJobTrigger( * */ public com.google.privacy.dlp.v2.DlpJob activateJobTrigger( - com.google.privacy.dlp.v2.ActivateJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ActivateJobTriggerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getActivateJobTriggerMethod(), getCallOptions(), request); } @@ -5036,8 +5045,9 @@ public com.google.privacy.dlp.v2.DlpJob activateJobTrigger( * */ public com.google.privacy.dlp.v2.DiscoveryConfig createDiscoveryConfig( - com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDiscoveryConfigMethod(), getCallOptions(), request); } @@ -5049,8 +5059,9 @@ public com.google.privacy.dlp.v2.DiscoveryConfig createDiscoveryConfig( * */ public com.google.privacy.dlp.v2.DiscoveryConfig updateDiscoveryConfig( - com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDiscoveryConfigMethod(), getCallOptions(), request); } @@ -5062,8 +5073,9 @@ public com.google.privacy.dlp.v2.DiscoveryConfig updateDiscoveryConfig( * */ public com.google.privacy.dlp.v2.DiscoveryConfig getDiscoveryConfig( - com.google.privacy.dlp.v2.GetDiscoveryConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetDiscoveryConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDiscoveryConfigMethod(), getCallOptions(), request); } @@ -5075,8 +5087,9 @@ public com.google.privacy.dlp.v2.DiscoveryConfig getDiscoveryConfig( * */ public com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse listDiscoveryConfigs( - com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDiscoveryConfigsMethod(), getCallOptions(), request); } @@ -5088,8 +5101,9 @@ public com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse listDiscoveryConfi * */ public com.google.protobuf.Empty deleteDiscoveryConfig( - com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDiscoveryConfigMethod(), getCallOptions(), request); } @@ -5109,8 +5123,8 @@ public com.google.protobuf.Empty deleteDiscoveryConfig( * */ public com.google.privacy.dlp.v2.DlpJob createDlpJob( - com.google.privacy.dlp.v2.CreateDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.CreateDlpJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDlpJobMethod(), getCallOptions(), request); } @@ -5127,8 +5141,8 @@ public com.google.privacy.dlp.v2.DlpJob createDlpJob( * */ public com.google.privacy.dlp.v2.ListDlpJobsResponse listDlpJobs( - com.google.privacy.dlp.v2.ListDlpJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListDlpJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDlpJobsMethod(), getCallOptions(), request); } @@ -5145,8 +5159,8 @@ public com.google.privacy.dlp.v2.ListDlpJobsResponse listDlpJobs( * */ public com.google.privacy.dlp.v2.DlpJob getDlpJob( - com.google.privacy.dlp.v2.GetDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetDlpJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDlpJobMethod(), getCallOptions(), request); } @@ -5165,8 +5179,8 @@ public com.google.privacy.dlp.v2.DlpJob getDlpJob( * */ public com.google.protobuf.Empty deleteDlpJob( - com.google.privacy.dlp.v2.DeleteDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeleteDlpJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDlpJobMethod(), getCallOptions(), request); } @@ -5185,8 +5199,8 @@ public com.google.protobuf.Empty deleteDlpJob( * */ public com.google.protobuf.Empty cancelDlpJob( - com.google.privacy.dlp.v2.CancelDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.CancelDlpJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelDlpJobMethod(), getCallOptions(), request); } @@ -5201,8 +5215,9 @@ public com.google.protobuf.Empty cancelDlpJob( * */ public com.google.privacy.dlp.v2.StoredInfoType createStoredInfoType( - com.google.privacy.dlp.v2.CreateStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.CreateStoredInfoTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateStoredInfoTypeMethod(), getCallOptions(), request); } @@ -5218,8 +5233,9 @@ public com.google.privacy.dlp.v2.StoredInfoType createStoredInfoType( * */ public com.google.privacy.dlp.v2.StoredInfoType updateStoredInfoType( - com.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateStoredInfoTypeMethod(), getCallOptions(), request); } @@ -5234,8 +5250,8 @@ public com.google.privacy.dlp.v2.StoredInfoType updateStoredInfoType( * */ public com.google.privacy.dlp.v2.StoredInfoType getStoredInfoType( - com.google.privacy.dlp.v2.GetStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetStoredInfoTypeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStoredInfoTypeMethod(), getCallOptions(), request); } @@ -5250,8 +5266,9 @@ public com.google.privacy.dlp.v2.StoredInfoType getStoredInfoType( * */ public com.google.privacy.dlp.v2.ListStoredInfoTypesResponse listStoredInfoTypes( - com.google.privacy.dlp.v2.ListStoredInfoTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListStoredInfoTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListStoredInfoTypesMethod(), getCallOptions(), request); } @@ -5266,8 +5283,9 @@ public com.google.privacy.dlp.v2.ListStoredInfoTypesResponse listStoredInfoTypes * */ public com.google.protobuf.Empty deleteStoredInfoType( - com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteStoredInfoTypeMethod(), getCallOptions(), request); } @@ -5279,8 +5297,9 @@ public com.google.protobuf.Empty deleteStoredInfoType( * */ public com.google.privacy.dlp.v2.ListProjectDataProfilesResponse listProjectDataProfiles( - com.google.privacy.dlp.v2.ListProjectDataProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProjectDataProfilesMethod(), getCallOptions(), request); } @@ -5292,8 +5311,9 @@ public com.google.privacy.dlp.v2.ListProjectDataProfilesResponse listProjectData * */ public com.google.privacy.dlp.v2.ListTableDataProfilesResponse listTableDataProfiles( - com.google.privacy.dlp.v2.ListTableDataProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListTableDataProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTableDataProfilesMethod(), getCallOptions(), request); } @@ -5305,8 +5325,9 @@ public com.google.privacy.dlp.v2.ListTableDataProfilesResponse listTableDataProf * */ public com.google.privacy.dlp.v2.ListColumnDataProfilesResponse listColumnDataProfiles( - com.google.privacy.dlp.v2.ListColumnDataProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListColumnDataProfilesMethod(), getCallOptions(), request); } @@ -5318,8 +5339,9 @@ public com.google.privacy.dlp.v2.ListColumnDataProfilesResponse listColumnDataPr * */ public com.google.privacy.dlp.v2.ProjectDataProfile getProjectDataProfile( - com.google.privacy.dlp.v2.GetProjectDataProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetProjectDataProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProjectDataProfileMethod(), getCallOptions(), request); } @@ -5331,8 +5353,9 @@ public com.google.privacy.dlp.v2.ProjectDataProfile getProjectDataProfile( * */ public com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse listFileStoreDataProfiles( - com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListFileStoreDataProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFileStoreDataProfilesMethod(), getCallOptions(), request); } @@ -5344,8 +5367,9 @@ public com.google.privacy.dlp.v2.ListFileStoreDataProfilesResponse listFileStore * */ public com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreDataProfile( - com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetFileStoreDataProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFileStoreDataProfileMethod(), getCallOptions(), request); } @@ -5358,8 +5382,9 @@ public com.google.privacy.dlp.v2.FileStoreDataProfile getFileStoreDataProfile( * */ public com.google.protobuf.Empty deleteFileStoreDataProfile( - com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFileStoreDataProfileMethod(), getCallOptions(), request); } @@ -5371,8 +5396,9 @@ public com.google.protobuf.Empty deleteFileStoreDataProfile( * */ public com.google.privacy.dlp.v2.TableDataProfile getTableDataProfile( - com.google.privacy.dlp.v2.GetTableDataProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetTableDataProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTableDataProfileMethod(), getCallOptions(), request); } @@ -5384,8 +5410,9 @@ public com.google.privacy.dlp.v2.TableDataProfile getTableDataProfile( * */ public com.google.privacy.dlp.v2.ColumnDataProfile getColumnDataProfile( - com.google.privacy.dlp.v2.GetColumnDataProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetColumnDataProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetColumnDataProfileMethod(), getCallOptions(), request); } @@ -5398,8 +5425,9 @@ public com.google.privacy.dlp.v2.ColumnDataProfile getColumnDataProfile( * */ public com.google.protobuf.Empty deleteTableDataProfile( - com.google.privacy.dlp.v2.DeleteTableDataProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeleteTableDataProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTableDataProfileMethod(), getCallOptions(), request); } @@ -5413,8 +5441,9 @@ public com.google.protobuf.Empty deleteTableDataProfile( * */ public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectDlpJob( - com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getHybridInspectDlpJobMethod(), getCallOptions(), request); } @@ -5427,8 +5456,8 @@ public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectDlpJob( * */ public com.google.protobuf.Empty finishDlpJob( - com.google.privacy.dlp.v2.FinishDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.FinishDlpJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFinishDlpJobMethod(), getCallOptions(), request); } @@ -5440,8 +5469,8 @@ public com.google.protobuf.Empty finishDlpJob( * */ public com.google.privacy.dlp.v2.Connection createConnection( - com.google.privacy.dlp.v2.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.CreateConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectionMethod(), getCallOptions(), request); } @@ -5453,8 +5482,8 @@ public com.google.privacy.dlp.v2.Connection createConnection( * */ public com.google.privacy.dlp.v2.Connection getConnection( - com.google.privacy.dlp.v2.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.GetConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionMethod(), getCallOptions(), request); } @@ -5467,8 +5496,8 @@ public com.google.privacy.dlp.v2.Connection getConnection( * */ public com.google.privacy.dlp.v2.ListConnectionsResponse listConnections( - com.google.privacy.dlp.v2.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.ListConnectionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectionsMethod(), getCallOptions(), request); } @@ -5480,8 +5509,8 @@ public com.google.privacy.dlp.v2.ListConnectionsResponse listConnections( * */ public com.google.privacy.dlp.v2.SearchConnectionsResponse searchConnections( - com.google.privacy.dlp.v2.SearchConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.SearchConnectionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchConnectionsMethod(), getCallOptions(), request); } @@ -5493,8 +5522,8 @@ public com.google.privacy.dlp.v2.SearchConnectionsResponse searchConnections( * */ public com.google.protobuf.Empty deleteConnection( - com.google.privacy.dlp.v2.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.DeleteConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); } @@ -5506,8 +5535,8 @@ public com.google.protobuf.Empty deleteConnection( * */ public com.google.privacy.dlp.v2.Connection updateConnection( - com.google.privacy.dlp.v2.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.privacy.dlp.v2.UpdateConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); } } diff --git a/java-dms/README.md b/java-dms/README.md index b676c0678cd7..85bae3275bd8 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.76.0 + 2.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.76.0' +implementation 'com.google.cloud:google-cloud-dms:2.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java b/java-dms/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java index 4adb5a946518..d2f1870f6865 100644 --- a/java-dms/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java +++ b/java-dms/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java @@ -24,9 +24,6 @@ * Database Migration service * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/clouddms/v1/clouddms.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataMigrationServiceGrpc { @@ -3495,8 +3492,9 @@ protected DataMigrationServiceBlockingV2Stub build( * */ public com.google.cloud.clouddms.v1.ListMigrationJobsResponse listMigrationJobs( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMigrationJobsMethod(), getCallOptions(), request); } @@ -3508,8 +3506,9 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsResponse listMigrationJobs( * */ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob( - com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.GetMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMigrationJobMethod(), getCallOptions(), request); } @@ -3521,8 +3520,9 @@ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob( * */ public com.google.longrunning.Operation createMigrationJob( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMigrationJobMethod(), getCallOptions(), request); } @@ -3534,8 +3534,9 @@ public com.google.longrunning.Operation createMigrationJob( * */ public com.google.longrunning.Operation updateMigrationJob( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMigrationJobMethod(), getCallOptions(), request); } @@ -3547,8 +3548,9 @@ public com.google.longrunning.Operation updateMigrationJob( * */ public com.google.longrunning.Operation deleteMigrationJob( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMigrationJobMethod(), getCallOptions(), request); } @@ -3560,8 +3562,9 @@ public com.google.longrunning.Operation deleteMigrationJob( * */ public com.google.longrunning.Operation startMigrationJob( - com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.StartMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartMigrationJobMethod(), getCallOptions(), request); } @@ -3573,8 +3576,9 @@ public com.google.longrunning.Operation startMigrationJob( * */ public com.google.longrunning.Operation stopMigrationJob( - com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.StopMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopMigrationJobMethod(), getCallOptions(), request); } @@ -3587,8 +3591,9 @@ public com.google.longrunning.Operation stopMigrationJob( * */ public com.google.longrunning.Operation resumeMigrationJob( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeMigrationJobMethod(), getCallOptions(), request); } @@ -3601,8 +3606,9 @@ public com.google.longrunning.Operation resumeMigrationJob( * */ public com.google.longrunning.Operation promoteMigrationJob( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPromoteMigrationJobMethod(), getCallOptions(), request); } @@ -3615,8 +3621,9 @@ public com.google.longrunning.Operation promoteMigrationJob( * */ public com.google.longrunning.Operation verifyMigrationJob( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getVerifyMigrationJobMethod(), getCallOptions(), request); } @@ -3630,8 +3637,9 @@ public com.google.longrunning.Operation verifyMigrationJob( * */ public com.google.longrunning.Operation restartMigrationJob( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestartMigrationJobMethod(), getCallOptions(), request); } @@ -3644,8 +3652,9 @@ public com.google.longrunning.Operation restartMigrationJob( * */ public com.google.cloud.clouddms.v1.SshScript generateSshScript( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateSshScriptMethod(), getCallOptions(), request); } @@ -3658,8 +3667,9 @@ public com.google.cloud.clouddms.v1.SshScript generateSshScript( * */ public com.google.cloud.clouddms.v1.TcpProxyScript generateTcpProxyScript( - com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateTcpProxyScriptMethod(), getCallOptions(), request); } @@ -3672,8 +3682,9 @@ public com.google.cloud.clouddms.v1.TcpProxyScript generateTcpProxyScript( * */ public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse listConnectionProfiles( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); } @@ -3685,8 +3696,9 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse listConnectio * */ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); } @@ -3698,8 +3710,9 @@ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile( * */ public com.google.longrunning.Operation createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); } @@ -3711,8 +3724,9 @@ public com.google.longrunning.Operation createConnectionProfile( * */ public com.google.longrunning.Operation updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); } @@ -3726,8 +3740,9 @@ public com.google.longrunning.Operation updateConnectionProfile( * */ public com.google.longrunning.Operation deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); } @@ -3739,8 +3754,9 @@ public com.google.longrunning.Operation deleteConnectionProfile( * */ public com.google.longrunning.Operation createPrivateConnection( - com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); } @@ -3752,8 +3768,9 @@ public com.google.longrunning.Operation createPrivateConnection( * */ public com.google.cloud.clouddms.v1.PrivateConnection getPrivateConnection( - com.google.cloud.clouddms.v1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); } @@ -3765,8 +3782,9 @@ public com.google.cloud.clouddms.v1.PrivateConnection getPrivateConnection( * */ public com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse listPrivateConnections( - com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); } @@ -3778,8 +3796,9 @@ public com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse listPrivateCo * */ public com.google.longrunning.Operation deletePrivateConnection( - com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); } @@ -3791,8 +3810,9 @@ public com.google.longrunning.Operation deletePrivateConnection( * */ public com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspace( - com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversionWorkspaceMethod(), getCallOptions(), request); } @@ -3804,8 +3824,9 @@ public com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspace( * */ public com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse listConversionWorkspaces( - com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversionWorkspacesMethod(), getCallOptions(), request); } @@ -3817,8 +3838,9 @@ public com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse listConvers * */ public com.google.longrunning.Operation createConversionWorkspace( - com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversionWorkspaceMethod(), getCallOptions(), request); } @@ -3830,8 +3852,9 @@ public com.google.longrunning.Operation createConversionWorkspace( * */ public com.google.longrunning.Operation updateConversionWorkspace( - com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversionWorkspaceMethod(), getCallOptions(), request); } @@ -3843,8 +3866,9 @@ public com.google.longrunning.Operation updateConversionWorkspace( * */ public com.google.longrunning.Operation deleteConversionWorkspace( - com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversionWorkspaceMethod(), getCallOptions(), request); } @@ -3856,8 +3880,9 @@ public com.google.longrunning.Operation deleteConversionWorkspace( * */ public com.google.cloud.clouddms.v1.MappingRule createMappingRule( - com.google.cloud.clouddms.v1.CreateMappingRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.CreateMappingRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMappingRuleMethod(), getCallOptions(), request); } @@ -3869,8 +3894,9 @@ public com.google.cloud.clouddms.v1.MappingRule createMappingRule( * */ public com.google.protobuf.Empty deleteMappingRule( - com.google.cloud.clouddms.v1.DeleteMappingRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.DeleteMappingRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMappingRuleMethod(), getCallOptions(), request); } @@ -3882,8 +3908,9 @@ public com.google.protobuf.Empty deleteMappingRule( * */ public com.google.cloud.clouddms.v1.ListMappingRulesResponse listMappingRules( - com.google.cloud.clouddms.v1.ListMappingRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.ListMappingRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMappingRulesMethod(), getCallOptions(), request); } @@ -3895,8 +3922,8 @@ public com.google.cloud.clouddms.v1.ListMappingRulesResponse listMappingRules( * */ public com.google.cloud.clouddms.v1.MappingRule getMappingRule( - com.google.cloud.clouddms.v1.GetMappingRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.GetMappingRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMappingRuleMethod(), getCallOptions(), request); } @@ -3909,8 +3936,9 @@ public com.google.cloud.clouddms.v1.MappingRule getMappingRule( * */ public com.google.longrunning.Operation seedConversionWorkspace( - com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSeedConversionWorkspaceMethod(), getCallOptions(), request); } @@ -3923,8 +3951,9 @@ public com.google.longrunning.Operation seedConversionWorkspace( * */ public com.google.longrunning.Operation importMappingRules( - com.google.cloud.clouddms.v1.ImportMappingRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportMappingRulesMethod(), getCallOptions(), request); } @@ -3936,8 +3965,9 @@ public com.google.longrunning.Operation importMappingRules( * */ public com.google.longrunning.Operation convertConversionWorkspace( - com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConvertConversionWorkspaceMethod(), getCallOptions(), request); } @@ -3949,8 +3979,9 @@ public com.google.longrunning.Operation convertConversionWorkspace( * */ public com.google.longrunning.Operation commitConversionWorkspace( - com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCommitConversionWorkspaceMethod(), getCallOptions(), request); } @@ -3962,8 +3993,9 @@ public com.google.longrunning.Operation commitConversionWorkspace( * */ public com.google.longrunning.Operation rollbackConversionWorkspace( - com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackConversionWorkspaceMethod(), getCallOptions(), request); } @@ -3975,8 +4007,9 @@ public com.google.longrunning.Operation rollbackConversionWorkspace( * */ public com.google.longrunning.Operation applyConversionWorkspace( - com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApplyConversionWorkspaceMethod(), getCallOptions(), request); } @@ -3992,8 +4025,9 @@ public com.google.longrunning.Operation applyConversionWorkspace( * */ public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse describeDatabaseEntities( - com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDescribeDatabaseEntitiesMethod(), getCallOptions(), request); } @@ -4009,8 +4043,9 @@ public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse describeDat * */ public com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse searchBackgroundJobs( - com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchBackgroundJobsMethod(), getCallOptions(), request); } @@ -4024,8 +4059,9 @@ public com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse searchBackgroun */ public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse describeConversionWorkspaceRevisions( - com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDescribeConversionWorkspaceRevisionsMethod(), getCallOptions(), request); } @@ -4038,8 +4074,8 @@ public com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse searchBackgroun * */ public com.google.cloud.clouddms.v1.FetchStaticIpsResponse fetchStaticIps( - com.google.cloud.clouddms.v1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.clouddms.v1.FetchStaticIpsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); } } diff --git a/java-document-ai/README.md b/java-document-ai/README.md index a742bd76ba08..b0fa45658819 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.81.0 + 2.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.81.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.82.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java b/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java index 7c721754dbd1..968688238eef 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java +++ b/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java @@ -27,9 +27,6 @@ * structured information from unstructured or semi-structured documents. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/documentai/v1/document_processor_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentProcessorServiceGrpc { @@ -1973,8 +1970,8 @@ protected DocumentProcessorServiceBlockingV2Stub build( * */ public com.google.cloud.documentai.v1.ProcessResponse processDocument( - com.google.cloud.documentai.v1.ProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.ProcessRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProcessDocumentMethod(), getCallOptions(), request); } @@ -1987,8 +1984,8 @@ public com.google.cloud.documentai.v1.ProcessResponse processDocument( * */ public com.google.longrunning.Operation batchProcessDocuments( - com.google.cloud.documentai.v1.BatchProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.BatchProcessRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchProcessDocumentsMethod(), getCallOptions(), request); } @@ -2002,8 +1999,9 @@ public com.google.longrunning.Operation batchProcessDocuments( * */ public com.google.cloud.documentai.v1.FetchProcessorTypesResponse fetchProcessorTypes( - com.google.cloud.documentai.v1.FetchProcessorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.FetchProcessorTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchProcessorTypesMethod(), getCallOptions(), request); } @@ -2015,8 +2013,9 @@ public com.google.cloud.documentai.v1.FetchProcessorTypesResponse fetchProcessor * */ public com.google.cloud.documentai.v1.ListProcessorTypesResponse listProcessorTypes( - com.google.cloud.documentai.v1.ListProcessorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.ListProcessorTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProcessorTypesMethod(), getCallOptions(), request); } @@ -2028,8 +2027,9 @@ public com.google.cloud.documentai.v1.ListProcessorTypesResponse listProcessorTy * */ public com.google.cloud.documentai.v1.ProcessorType getProcessorType( - com.google.cloud.documentai.v1.GetProcessorTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.GetProcessorTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessorTypeMethod(), getCallOptions(), request); } @@ -2041,8 +2041,9 @@ public com.google.cloud.documentai.v1.ProcessorType getProcessorType( * */ public com.google.cloud.documentai.v1.ListProcessorsResponse listProcessors( - com.google.cloud.documentai.v1.ListProcessorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.ListProcessorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProcessorsMethod(), getCallOptions(), request); } @@ -2054,8 +2055,8 @@ public com.google.cloud.documentai.v1.ListProcessorsResponse listProcessors( * */ public com.google.cloud.documentai.v1.Processor getProcessor( - com.google.cloud.documentai.v1.GetProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.GetProcessorRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessorMethod(), getCallOptions(), request); } @@ -2069,8 +2070,9 @@ public com.google.cloud.documentai.v1.Processor getProcessor( * */ public com.google.longrunning.Operation trainProcessorVersion( - com.google.cloud.documentai.v1.TrainProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.TrainProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTrainProcessorVersionMethod(), getCallOptions(), request); } @@ -2082,8 +2084,9 @@ public com.google.longrunning.Operation trainProcessorVersion( * */ public com.google.cloud.documentai.v1.ProcessorVersion getProcessorVersion( - com.google.cloud.documentai.v1.GetProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.GetProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessorVersionMethod(), getCallOptions(), request); } @@ -2095,8 +2098,9 @@ public com.google.cloud.documentai.v1.ProcessorVersion getProcessorVersion( * */ public com.google.cloud.documentai.v1.ListProcessorVersionsResponse listProcessorVersions( - com.google.cloud.documentai.v1.ListProcessorVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.ListProcessorVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProcessorVersionsMethod(), getCallOptions(), request); } @@ -2109,8 +2113,9 @@ public com.google.cloud.documentai.v1.ListProcessorVersionsResponse listProcesso * */ public com.google.longrunning.Operation deleteProcessorVersion( - com.google.cloud.documentai.v1.DeleteProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.DeleteProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProcessorVersionMethod(), getCallOptions(), request); } @@ -2122,8 +2127,9 @@ public com.google.longrunning.Operation deleteProcessorVersion( * */ public com.google.longrunning.Operation deployProcessorVersion( - com.google.cloud.documentai.v1.DeployProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.DeployProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployProcessorVersionMethod(), getCallOptions(), request); } @@ -2135,8 +2141,9 @@ public com.google.longrunning.Operation deployProcessorVersion( * */ public com.google.longrunning.Operation undeployProcessorVersion( - com.google.cloud.documentai.v1.UndeployProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.UndeployProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployProcessorVersionMethod(), getCallOptions(), request); } @@ -2154,8 +2161,9 @@ public com.google.longrunning.Operation undeployProcessorVersion( * */ public com.google.cloud.documentai.v1.Processor createProcessor( - com.google.cloud.documentai.v1.CreateProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.CreateProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProcessorMethod(), getCallOptions(), request); } @@ -2168,8 +2176,9 @@ public com.google.cloud.documentai.v1.Processor createProcessor( * */ public com.google.longrunning.Operation deleteProcessor( - com.google.cloud.documentai.v1.DeleteProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.DeleteProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProcessorMethod(), getCallOptions(), request); } @@ -2181,8 +2190,9 @@ public com.google.longrunning.Operation deleteProcessor( * */ public com.google.longrunning.Operation enableProcessor( - com.google.cloud.documentai.v1.EnableProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.EnableProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableProcessorMethod(), getCallOptions(), request); } @@ -2194,8 +2204,9 @@ public com.google.longrunning.Operation enableProcessor( * */ public com.google.longrunning.Operation disableProcessor( - com.google.cloud.documentai.v1.DisableProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.DisableProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableProcessorMethod(), getCallOptions(), request); } @@ -2211,8 +2222,9 @@ public com.google.longrunning.Operation disableProcessor( * */ public com.google.longrunning.Operation setDefaultProcessorVersion( - com.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetDefaultProcessorVersionMethod(), getCallOptions(), request); } @@ -2225,8 +2237,9 @@ public com.google.longrunning.Operation setDefaultProcessorVersion( * */ public com.google.longrunning.Operation reviewDocument( - com.google.cloud.documentai.v1.ReviewDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.ReviewDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReviewDocumentMethod(), getCallOptions(), request); } @@ -2239,8 +2252,9 @@ public com.google.longrunning.Operation reviewDocument( * */ public com.google.longrunning.Operation evaluateProcessorVersion( - com.google.cloud.documentai.v1.EvaluateProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.EvaluateProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEvaluateProcessorVersionMethod(), getCallOptions(), request); } @@ -2252,8 +2266,9 @@ public com.google.longrunning.Operation evaluateProcessorVersion( * */ public com.google.cloud.documentai.v1.Evaluation getEvaluation( - com.google.cloud.documentai.v1.GetEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.GetEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEvaluationMethod(), getCallOptions(), request); } @@ -2265,8 +2280,9 @@ public com.google.cloud.documentai.v1.Evaluation getEvaluation( * */ public com.google.cloud.documentai.v1.ListEvaluationsResponse listEvaluations( - com.google.cloud.documentai.v1.ListEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1.ListEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEvaluationsMethod(), getCallOptions(), request); } } diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java index f843c6a43e2d..86c7e6acf81c 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java @@ -27,9 +27,6 @@ * structured information from unstructured or semi-structured documents. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/documentai/v1beta3/document_processor_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentProcessorServiceGrpc { @@ -2079,8 +2076,8 @@ protected DocumentProcessorServiceBlockingV2Stub build( * */ public com.google.cloud.documentai.v1beta3.ProcessResponse processDocument( - com.google.cloud.documentai.v1beta3.ProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.ProcessRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProcessDocumentMethod(), getCallOptions(), request); } @@ -2093,8 +2090,9 @@ public com.google.cloud.documentai.v1beta3.ProcessResponse processDocument( * */ public com.google.longrunning.Operation batchProcessDocuments( - com.google.cloud.documentai.v1beta3.BatchProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.BatchProcessRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchProcessDocumentsMethod(), getCallOptions(), request); } @@ -2108,8 +2106,9 @@ public com.google.longrunning.Operation batchProcessDocuments( * */ public com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse fetchProcessorTypes( - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchProcessorTypesMethod(), getCallOptions(), request); } @@ -2121,8 +2120,9 @@ public com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse fetchProc * */ public com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse listProcessorTypes( - com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.ListProcessorTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProcessorTypesMethod(), getCallOptions(), request); } @@ -2134,8 +2134,9 @@ public com.google.cloud.documentai.v1beta3.ListProcessorTypesResponse listProces * */ public com.google.cloud.documentai.v1beta3.ProcessorType getProcessorType( - com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.GetProcessorTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessorTypeMethod(), getCallOptions(), request); } @@ -2147,8 +2148,9 @@ public com.google.cloud.documentai.v1beta3.ProcessorType getProcessorType( * */ public com.google.cloud.documentai.v1beta3.ListProcessorsResponse listProcessors( - com.google.cloud.documentai.v1beta3.ListProcessorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.ListProcessorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProcessorsMethod(), getCallOptions(), request); } @@ -2160,8 +2162,9 @@ public com.google.cloud.documentai.v1beta3.ListProcessorsResponse listProcessors * */ public com.google.cloud.documentai.v1beta3.Processor getProcessor( - com.google.cloud.documentai.v1beta3.GetProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.GetProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessorMethod(), getCallOptions(), request); } @@ -2175,8 +2178,9 @@ public com.google.cloud.documentai.v1beta3.Processor getProcessor( * */ public com.google.longrunning.Operation trainProcessorVersion( - com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTrainProcessorVersionMethod(), getCallOptions(), request); } @@ -2188,8 +2192,9 @@ public com.google.longrunning.Operation trainProcessorVersion( * */ public com.google.cloud.documentai.v1beta3.ProcessorVersion getProcessorVersion( - com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.GetProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessorVersionMethod(), getCallOptions(), request); } @@ -2201,8 +2206,9 @@ public com.google.cloud.documentai.v1beta3.ProcessorVersion getProcessorVersion( * */ public com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse listProcessorVersions( - com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.ListProcessorVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProcessorVersionsMethod(), getCallOptions(), request); } @@ -2215,8 +2221,9 @@ public com.google.cloud.documentai.v1beta3.ListProcessorVersionsResponse listPro * */ public com.google.longrunning.Operation deleteProcessorVersion( - com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProcessorVersionMethod(), getCallOptions(), request); } @@ -2228,8 +2235,9 @@ public com.google.longrunning.Operation deleteProcessorVersion( * */ public com.google.longrunning.Operation deployProcessorVersion( - com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.DeployProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployProcessorVersionMethod(), getCallOptions(), request); } @@ -2241,8 +2249,9 @@ public com.google.longrunning.Operation deployProcessorVersion( * */ public com.google.longrunning.Operation undeployProcessorVersion( - com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployProcessorVersionMethod(), getCallOptions(), request); } @@ -2260,8 +2269,9 @@ public com.google.longrunning.Operation undeployProcessorVersion( * */ public com.google.cloud.documentai.v1beta3.Processor createProcessor( - com.google.cloud.documentai.v1beta3.CreateProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.CreateProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProcessorMethod(), getCallOptions(), request); } @@ -2274,8 +2284,9 @@ public com.google.cloud.documentai.v1beta3.Processor createProcessor( * */ public com.google.longrunning.Operation deleteProcessor( - com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProcessorMethod(), getCallOptions(), request); } @@ -2287,8 +2298,9 @@ public com.google.longrunning.Operation deleteProcessor( * */ public com.google.longrunning.Operation enableProcessor( - com.google.cloud.documentai.v1beta3.EnableProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.EnableProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableProcessorMethod(), getCallOptions(), request); } @@ -2300,8 +2312,9 @@ public com.google.longrunning.Operation enableProcessor( * */ public com.google.longrunning.Operation disableProcessor( - com.google.cloud.documentai.v1beta3.DisableProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.DisableProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableProcessorMethod(), getCallOptions(), request); } @@ -2317,8 +2330,9 @@ public com.google.longrunning.Operation disableProcessor( * */ public com.google.longrunning.Operation setDefaultProcessorVersion( - com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetDefaultProcessorVersionMethod(), getCallOptions(), request); } @@ -2331,8 +2345,9 @@ public com.google.longrunning.Operation setDefaultProcessorVersion( * */ public com.google.longrunning.Operation reviewDocument( - com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReviewDocumentMethod(), getCallOptions(), request); } @@ -2345,8 +2360,9 @@ public com.google.longrunning.Operation reviewDocument( * */ public com.google.longrunning.Operation evaluateProcessorVersion( - com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEvaluateProcessorVersionMethod(), getCallOptions(), request); } @@ -2358,8 +2374,9 @@ public com.google.longrunning.Operation evaluateProcessorVersion( * */ public com.google.cloud.documentai.v1beta3.Evaluation getEvaluation( - com.google.cloud.documentai.v1beta3.GetEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.GetEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEvaluationMethod(), getCallOptions(), request); } @@ -2371,8 +2388,9 @@ public com.google.cloud.documentai.v1beta3.Evaluation getEvaluation( * */ public com.google.cloud.documentai.v1beta3.ListEvaluationsResponse listEvaluations( - com.google.cloud.documentai.v1beta3.ListEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.ListEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEvaluationsMethod(), getCallOptions(), request); } @@ -2384,8 +2402,9 @@ public com.google.cloud.documentai.v1beta3.ListEvaluationsResponse listEvaluatio * */ public com.google.longrunning.Operation importProcessorVersion( - com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.ImportProcessorVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportProcessorVersionMethod(), getCallOptions(), request); } } diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceGrpc.java b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceGrpc.java index 7763a530a3d1..062bed579895 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceGrpc.java +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceGrpc.java @@ -24,9 +24,6 @@ * Service to call Cloud DocumentAI to manage document collection (dataset). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/documentai/v1beta3/document_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DocumentServiceGrpc { @@ -727,8 +724,9 @@ protected DocumentServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation updateDataset( - com.google.cloud.documentai.v1beta3.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } @@ -740,8 +738,9 @@ public com.google.longrunning.Operation updateDataset( * */ public com.google.longrunning.Operation importDocuments( - com.google.cloud.documentai.v1beta3.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.ImportDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDocumentsMethod(), getCallOptions(), request); } @@ -753,8 +752,9 @@ public com.google.longrunning.Operation importDocuments( * */ public com.google.cloud.documentai.v1beta3.GetDocumentResponse getDocument( - com.google.cloud.documentai.v1beta3.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.GetDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDocumentMethod(), getCallOptions(), request); } @@ -766,8 +766,9 @@ public com.google.cloud.documentai.v1beta3.GetDocumentResponse getDocument( * */ public com.google.cloud.documentai.v1beta3.ListDocumentsResponse listDocuments( - com.google.cloud.documentai.v1beta3.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.ListDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDocumentsMethod(), getCallOptions(), request); } @@ -779,8 +780,9 @@ public com.google.cloud.documentai.v1beta3.ListDocumentsResponse listDocuments( * */ public com.google.longrunning.Operation batchDeleteDocuments( - com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.BatchDeleteDocumentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteDocumentsMethod(), getCallOptions(), request); } @@ -792,8 +794,9 @@ public com.google.longrunning.Operation batchDeleteDocuments( * */ public com.google.cloud.documentai.v1beta3.DatasetSchema getDatasetSchema( - com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetSchemaMethod(), getCallOptions(), request); } @@ -805,8 +808,9 @@ public com.google.cloud.documentai.v1beta3.DatasetSchema getDatasetSchema( * */ public com.google.cloud.documentai.v1beta3.DatasetSchema updateDatasetSchema( - com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetSchemaMethod(), getCallOptions(), request); } } diff --git a/java-domains/README.md b/java-domains/README.md index e009d83a8d4e..1938b2b4fa36 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.74.0 + 1.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.74.0' +implementation 'com.google.cloud:google-cloud-domains:1.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.75.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-domains/grpc-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsGrpc.java b/java-domains/grpc-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsGrpc.java index 14b86cc17fe9..cc94cecd8084 100644 --- a/java-domains/grpc-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsGrpc.java +++ b/java-domains/grpc-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/DomainsGrpc.java @@ -24,9 +24,6 @@ * The Cloud Domains API enables management and configuration of domain names. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/domains/v1/domains.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DomainsGrpc { @@ -1442,8 +1439,8 @@ protected DomainsBlockingV2Stub build( * */ public com.google.cloud.domains.v1.SearchDomainsResponse searchDomains( - com.google.cloud.domains.v1.SearchDomainsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.SearchDomainsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchDomainsMethod(), getCallOptions(), request); } @@ -1457,8 +1454,9 @@ public com.google.cloud.domains.v1.SearchDomainsResponse searchDomains( */ public com.google.cloud.domains.v1.RetrieveRegisterParametersResponse retrieveRegisterParameters( - com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveRegisterParametersMethod(), getCallOptions(), request); } @@ -1480,8 +1478,8 @@ public com.google.cloud.domains.v1.SearchDomainsResponse searchDomains( * */ public com.google.longrunning.Operation registerDomain( - com.google.cloud.domains.v1.RegisterDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.RegisterDomainRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRegisterDomainMethod(), getCallOptions(), request); } @@ -1497,8 +1495,9 @@ public com.google.longrunning.Operation registerDomain( */ public com.google.cloud.domains.v1.RetrieveTransferParametersResponse retrieveTransferParameters( - com.google.cloud.domains.v1.RetrieveTransferParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.RetrieveTransferParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveTransferParametersMethod(), getCallOptions(), request); } @@ -1526,8 +1525,8 @@ public com.google.longrunning.Operation registerDomain( * */ public com.google.longrunning.Operation transferDomain( - com.google.cloud.domains.v1.TransferDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.TransferDomainRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTransferDomainMethod(), getCallOptions(), request); } @@ -1539,8 +1538,9 @@ public com.google.longrunning.Operation transferDomain( * */ public com.google.cloud.domains.v1.ListRegistrationsResponse listRegistrations( - com.google.cloud.domains.v1.ListRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.ListRegistrationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRegistrationsMethod(), getCallOptions(), request); } @@ -1552,8 +1552,8 @@ public com.google.cloud.domains.v1.ListRegistrationsResponse listRegistrations( * */ public com.google.cloud.domains.v1.Registration getRegistration( - com.google.cloud.domains.v1.GetRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.GetRegistrationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRegistrationMethod(), getCallOptions(), request); } @@ -1569,8 +1569,9 @@ public com.google.cloud.domains.v1.Registration getRegistration( * */ public com.google.longrunning.Operation updateRegistration( - com.google.cloud.domains.v1.UpdateRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.UpdateRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRegistrationMethod(), getCallOptions(), request); } @@ -1582,8 +1583,9 @@ public com.google.longrunning.Operation updateRegistration( * */ public com.google.longrunning.Operation configureManagementSettings( - com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConfigureManagementSettingsMethod(), getCallOptions(), request); } @@ -1595,8 +1597,9 @@ public com.google.longrunning.Operation configureManagementSettings( * */ public com.google.longrunning.Operation configureDnsSettings( - com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConfigureDnsSettingsMethod(), getCallOptions(), request); } @@ -1609,8 +1612,9 @@ public com.google.longrunning.Operation configureDnsSettings( * */ public com.google.longrunning.Operation configureContactSettings( - com.google.cloud.domains.v1.ConfigureContactSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.ConfigureContactSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConfigureContactSettingsMethod(), getCallOptions(), request); } @@ -1629,8 +1633,9 @@ public com.google.longrunning.Operation configureContactSettings( * */ public com.google.longrunning.Operation exportRegistration( - com.google.cloud.domains.v1.ExportRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.ExportRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportRegistrationMethod(), getCallOptions(), request); } @@ -1656,8 +1661,9 @@ public com.google.longrunning.Operation exportRegistration( * */ public com.google.longrunning.Operation deleteRegistration( - com.google.cloud.domains.v1.DeleteRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.DeleteRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRegistrationMethod(), getCallOptions(), request); } @@ -1672,8 +1678,9 @@ public com.google.longrunning.Operation deleteRegistration( * */ public com.google.cloud.domains.v1.AuthorizationCode retrieveAuthorizationCode( - com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveAuthorizationCodeMethod(), getCallOptions(), request); } @@ -1687,8 +1694,9 @@ public com.google.cloud.domains.v1.AuthorizationCode retrieveAuthorizationCode( * */ public com.google.cloud.domains.v1.AuthorizationCode resetAuthorizationCode( - com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetAuthorizationCodeMethod(), getCallOptions(), request); } } diff --git a/java-domains/grpc-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsGrpc.java b/java-domains/grpc-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsGrpc.java index 6a4f5b10a556..65f10e68aa0d 100644 --- a/java-domains/grpc-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsGrpc.java +++ b/java-domains/grpc-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/DomainsGrpc.java @@ -24,9 +24,6 @@ * The Cloud Domains API enables management and configuration of domain names. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/domains/v1alpha2/domains.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DomainsGrpc { @@ -1463,8 +1460,9 @@ protected DomainsBlockingV2Stub build( * */ public com.google.cloud.domains.v1alpha2.SearchDomainsResponse searchDomains( - com.google.cloud.domains.v1alpha2.SearchDomainsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.SearchDomainsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchDomainsMethod(), getCallOptions(), request); } @@ -1478,8 +1476,9 @@ public com.google.cloud.domains.v1alpha2.SearchDomainsResponse searchDomains( */ public com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse retrieveRegisterParameters( - com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.RetrieveRegisterParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveRegisterParametersMethod(), getCallOptions(), request); } @@ -1501,8 +1500,9 @@ public com.google.cloud.domains.v1alpha2.SearchDomainsResponse searchDomains( * */ public com.google.longrunning.Operation registerDomain( - com.google.cloud.domains.v1alpha2.RegisterDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.RegisterDomainRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRegisterDomainMethod(), getCallOptions(), request); } @@ -1518,8 +1518,9 @@ public com.google.longrunning.Operation registerDomain( */ public com.google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse retrieveTransferParameters( - com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.RetrieveTransferParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveTransferParametersMethod(), getCallOptions(), request); } @@ -1547,8 +1548,9 @@ public com.google.longrunning.Operation registerDomain( * */ public com.google.longrunning.Operation transferDomain( - com.google.cloud.domains.v1alpha2.TransferDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.TransferDomainRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTransferDomainMethod(), getCallOptions(), request); } @@ -1560,8 +1562,9 @@ public com.google.longrunning.Operation transferDomain( * */ public com.google.cloud.domains.v1alpha2.ListRegistrationsResponse listRegistrations( - com.google.cloud.domains.v1alpha2.ListRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.ListRegistrationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRegistrationsMethod(), getCallOptions(), request); } @@ -1573,8 +1576,9 @@ public com.google.cloud.domains.v1alpha2.ListRegistrationsResponse listRegistrat * */ public com.google.cloud.domains.v1alpha2.Registration getRegistration( - com.google.cloud.domains.v1alpha2.GetRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.GetRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRegistrationMethod(), getCallOptions(), request); } @@ -1590,8 +1594,9 @@ public com.google.cloud.domains.v1alpha2.Registration getRegistration( * */ public com.google.longrunning.Operation updateRegistration( - com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.UpdateRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRegistrationMethod(), getCallOptions(), request); } @@ -1603,8 +1608,9 @@ public com.google.longrunning.Operation updateRegistration( * */ public com.google.longrunning.Operation configureManagementSettings( - com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.ConfigureManagementSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConfigureManagementSettingsMethod(), getCallOptions(), request); } @@ -1616,8 +1622,9 @@ public com.google.longrunning.Operation configureManagementSettings( * */ public com.google.longrunning.Operation configureDnsSettings( - com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.ConfigureDnsSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConfigureDnsSettingsMethod(), getCallOptions(), request); } @@ -1630,8 +1637,9 @@ public com.google.longrunning.Operation configureDnsSettings( * */ public com.google.longrunning.Operation configureContactSettings( - com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.ConfigureContactSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConfigureContactSettingsMethod(), getCallOptions(), request); } @@ -1650,8 +1658,9 @@ public com.google.longrunning.Operation configureContactSettings( * */ public com.google.longrunning.Operation exportRegistration( - com.google.cloud.domains.v1alpha2.ExportRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.ExportRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportRegistrationMethod(), getCallOptions(), request); } @@ -1677,8 +1686,9 @@ public com.google.longrunning.Operation exportRegistration( * */ public com.google.longrunning.Operation deleteRegistration( - com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.DeleteRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRegistrationMethod(), getCallOptions(), request); } @@ -1693,8 +1703,9 @@ public com.google.longrunning.Operation deleteRegistration( * */ public com.google.cloud.domains.v1alpha2.AuthorizationCode retrieveAuthorizationCode( - com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.RetrieveAuthorizationCodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveAuthorizationCodeMethod(), getCallOptions(), request); } @@ -1708,8 +1719,9 @@ public com.google.cloud.domains.v1alpha2.AuthorizationCode retrieveAuthorization * */ public com.google.cloud.domains.v1alpha2.AuthorizationCode resetAuthorizationCode( - com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1alpha2.ResetAuthorizationCodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetAuthorizationCodeMethod(), getCallOptions(), request); } } diff --git a/java-domains/grpc-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsGrpc.java b/java-domains/grpc-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsGrpc.java index cc409b79cc95..3b18ee80ce3f 100644 --- a/java-domains/grpc-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsGrpc.java +++ b/java-domains/grpc-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/DomainsGrpc.java @@ -24,9 +24,6 @@ * The Cloud Domains API enables management and configuration of domain names. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/domains/v1beta1/domains.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DomainsGrpc { @@ -1463,8 +1460,9 @@ protected DomainsBlockingV2Stub build( * */ public com.google.cloud.domains.v1beta1.SearchDomainsResponse searchDomains( - com.google.cloud.domains.v1beta1.SearchDomainsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.SearchDomainsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchDomainsMethod(), getCallOptions(), request); } @@ -1478,8 +1476,9 @@ public com.google.cloud.domains.v1beta1.SearchDomainsResponse searchDomains( */ public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse retrieveRegisterParameters( - com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveRegisterParametersMethod(), getCallOptions(), request); } @@ -1501,8 +1500,9 @@ public com.google.cloud.domains.v1beta1.SearchDomainsResponse searchDomains( * */ public com.google.longrunning.Operation registerDomain( - com.google.cloud.domains.v1beta1.RegisterDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.RegisterDomainRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRegisterDomainMethod(), getCallOptions(), request); } @@ -1518,8 +1518,9 @@ public com.google.longrunning.Operation registerDomain( */ public com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse retrieveTransferParameters( - com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveTransferParametersMethod(), getCallOptions(), request); } @@ -1547,8 +1548,9 @@ public com.google.longrunning.Operation registerDomain( * */ public com.google.longrunning.Operation transferDomain( - com.google.cloud.domains.v1beta1.TransferDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.TransferDomainRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTransferDomainMethod(), getCallOptions(), request); } @@ -1560,8 +1562,9 @@ public com.google.longrunning.Operation transferDomain( * */ public com.google.cloud.domains.v1beta1.ListRegistrationsResponse listRegistrations( - com.google.cloud.domains.v1beta1.ListRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.ListRegistrationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRegistrationsMethod(), getCallOptions(), request); } @@ -1573,8 +1576,9 @@ public com.google.cloud.domains.v1beta1.ListRegistrationsResponse listRegistrati * */ public com.google.cloud.domains.v1beta1.Registration getRegistration( - com.google.cloud.domains.v1beta1.GetRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.GetRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRegistrationMethod(), getCallOptions(), request); } @@ -1590,8 +1594,9 @@ public com.google.cloud.domains.v1beta1.Registration getRegistration( * */ public com.google.longrunning.Operation updateRegistration( - com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRegistrationMethod(), getCallOptions(), request); } @@ -1603,8 +1608,9 @@ public com.google.longrunning.Operation updateRegistration( * */ public com.google.longrunning.Operation configureManagementSettings( - com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConfigureManagementSettingsMethod(), getCallOptions(), request); } @@ -1616,8 +1622,9 @@ public com.google.longrunning.Operation configureManagementSettings( * */ public com.google.longrunning.Operation configureDnsSettings( - com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConfigureDnsSettingsMethod(), getCallOptions(), request); } @@ -1630,8 +1637,9 @@ public com.google.longrunning.Operation configureDnsSettings( * */ public com.google.longrunning.Operation configureContactSettings( - com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConfigureContactSettingsMethod(), getCallOptions(), request); } @@ -1650,8 +1658,9 @@ public com.google.longrunning.Operation configureContactSettings( * */ public com.google.longrunning.Operation exportRegistration( - com.google.cloud.domains.v1beta1.ExportRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.ExportRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportRegistrationMethod(), getCallOptions(), request); } @@ -1677,8 +1686,9 @@ public com.google.longrunning.Operation exportRegistration( * */ public com.google.longrunning.Operation deleteRegistration( - com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRegistrationMethod(), getCallOptions(), request); } @@ -1693,8 +1703,9 @@ public com.google.longrunning.Operation deleteRegistration( * */ public com.google.cloud.domains.v1beta1.AuthorizationCode retrieveAuthorizationCode( - com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveAuthorizationCodeMethod(), getCallOptions(), request); } @@ -1708,8 +1719,9 @@ public com.google.cloud.domains.v1beta1.AuthorizationCode retrieveAuthorizationC * */ public com.google.cloud.domains.v1beta1.AuthorizationCode resetAuthorizationCode( - com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetAuthorizationCodeMethod(), getCallOptions(), request); } } diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 7ae8b315be55..156a45f35804 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.45.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.46.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/main/resources/META-INF/native-image/com.google.cloud.edgenetwork.v1/reflect-config.json b/java-edgenetwork/google-cloud-edgenetwork/src/main/resources/META-INF/native-image/com.google.cloud.edgenetwork.v1/reflect-config.json index 8c5a714d7800..eb54c83255fd 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/resources/META-INF/native-image/com.google.cloud.edgenetwork.v1/reflect-config.json +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/resources/META-INF/native-image/com.google.cloud.edgenetwork.v1/reflect-config.json @@ -1250,6 +1250,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.edgenetwork.v1.ResourceState", "queryAllDeclaredConstructors": true, diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/test/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClientHttpJsonTest.java b/java-edgenetwork/google-cloud-edgenetwork/src/test/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClientHttpJsonTest.java index 67dc26b6fb44..0996be0a345c 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/test/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClientHttpJsonTest.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/test/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClientHttpJsonTest.java @@ -1494,6 +1494,7 @@ public void getInterconnectTest() throws Exception { .setUuid("uuid3601339") .setDeviceCloudResourceName("deviceCloudResourceName-1996267816") .addAllPhysicalPorts(new ArrayList()) + .setRemotePeeringNetworkType(RemotePeeringNetworkType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -1549,6 +1550,7 @@ public void getInterconnectTest2() throws Exception { .setUuid("uuid3601339") .setDeviceCloudResourceName("deviceCloudResourceName-1996267816") .addAllPhysicalPorts(new ArrayList()) + .setRemotePeeringNetworkType(RemotePeeringNetworkType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -1805,6 +1807,7 @@ public void getInterconnectAttachmentTest() throws Exception { .setVlanId(536153463) .setMtu(108462) .setState(ResourceState.forNumber(0)) + .setPeeringType(RemotePeeringNetworkType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -1867,6 +1870,7 @@ public void getInterconnectAttachmentTest2() throws Exception { .setVlanId(536153463) .setMtu(108462) .setState(ResourceState.forNumber(0)) + .setPeeringType(RemotePeeringNetworkType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -1927,6 +1931,7 @@ public void createInterconnectAttachmentTest() throws Exception { .setVlanId(536153463) .setMtu(108462) .setState(ResourceState.forNumber(0)) + .setPeeringType(RemotePeeringNetworkType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -2001,6 +2006,7 @@ public void createInterconnectAttachmentTest2() throws Exception { .setVlanId(536153463) .setMtu(108462) .setState(ResourceState.forNumber(0)) + .setPeeringType(RemotePeeringNetworkType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/test/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClientTest.java b/java-edgenetwork/google-cloud-edgenetwork/src/test/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClientTest.java index 6730985c4733..6447ef7930d9 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/test/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClientTest.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/test/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClientTest.java @@ -1340,6 +1340,7 @@ public void getInterconnectTest() throws Exception { .setUuid("uuid3601339") .setDeviceCloudResourceName("deviceCloudResourceName-1996267816") .addAllPhysicalPorts(new ArrayList()) + .setRemotePeeringNetworkType(RemotePeeringNetworkType.forNumber(0)) .build(); mockEdgeNetwork.addResponse(expectedResponse); @@ -1389,6 +1390,7 @@ public void getInterconnectTest2() throws Exception { .setUuid("uuid3601339") .setDeviceCloudResourceName("deviceCloudResourceName-1996267816") .addAllPhysicalPorts(new ArrayList()) + .setRemotePeeringNetworkType(RemotePeeringNetworkType.forNumber(0)) .build(); mockEdgeNetwork.addResponse(expectedResponse); @@ -1615,6 +1617,7 @@ public void getInterconnectAttachmentTest() throws Exception { .setVlanId(536153463) .setMtu(108462) .setState(ResourceState.forNumber(0)) + .setPeeringType(RemotePeeringNetworkType.forNumber(0)) .build(); mockEdgeNetwork.addResponse(expectedResponse); @@ -1672,6 +1675,7 @@ public void getInterconnectAttachmentTest2() throws Exception { .setVlanId(536153463) .setMtu(108462) .setState(ResourceState.forNumber(0)) + .setPeeringType(RemotePeeringNetworkType.forNumber(0)) .build(); mockEdgeNetwork.addResponse(expectedResponse); @@ -1725,6 +1729,7 @@ public void createInterconnectAttachmentTest() throws Exception { .setVlanId(536153463) .setMtu(108462) .setState(ResourceState.forNumber(0)) + .setPeeringType(RemotePeeringNetworkType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -1799,6 +1804,7 @@ public void createInterconnectAttachmentTest2() throws Exception { .setVlanId(536153463) .setMtu(108462) .setState(ResourceState.forNumber(0)) + .setPeeringType(RemotePeeringNetworkType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkGrpc.java b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkGrpc.java index c229a797ec42..5437b3aac13a 100644 --- a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkGrpc.java +++ b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkGrpc.java @@ -27,9 +27,6 @@ * configure the network setup and property to meet the workload requirement. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/edgenetwork/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EdgeNetworkGrpc { @@ -2154,8 +2151,9 @@ protected EdgeNetworkBlockingV2Stub build( * */ public com.google.cloud.edgenetwork.v1.InitializeZoneResponse initializeZone( - com.google.cloud.edgenetwork.v1.InitializeZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.InitializeZoneRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInitializeZoneMethod(), getCallOptions(), request); } @@ -2169,8 +2167,8 @@ public com.google.cloud.edgenetwork.v1.InitializeZoneResponse initializeZone( */ @java.lang.Deprecated public com.google.cloud.edgenetwork.v1.ListZonesResponse listZones( - com.google.cloud.edgenetwork.v1.ListZonesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.ListZonesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListZonesMethod(), getCallOptions(), request); } @@ -2184,8 +2182,8 @@ public com.google.cloud.edgenetwork.v1.ListZonesResponse listZones( */ @java.lang.Deprecated public com.google.cloud.edgenetwork.v1.Zone getZone( - com.google.cloud.edgenetwork.v1.GetZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.GetZoneRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetZoneMethod(), getCallOptions(), request); } @@ -2197,8 +2195,9 @@ public com.google.cloud.edgenetwork.v1.Zone getZone( * */ public com.google.cloud.edgenetwork.v1.ListNetworksResponse listNetworks( - com.google.cloud.edgenetwork.v1.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.ListNetworksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNetworksMethod(), getCallOptions(), request); } @@ -2210,8 +2209,8 @@ public com.google.cloud.edgenetwork.v1.ListNetworksResponse listNetworks( * */ public com.google.cloud.edgenetwork.v1.Network getNetwork( - com.google.cloud.edgenetwork.v1.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.GetNetworkRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNetworkMethod(), getCallOptions(), request); } @@ -2223,8 +2222,9 @@ public com.google.cloud.edgenetwork.v1.Network getNetwork( * */ public com.google.cloud.edgenetwork.v1.DiagnoseNetworkResponse diagnoseNetwork( - com.google.cloud.edgenetwork.v1.DiagnoseNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.DiagnoseNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiagnoseNetworkMethod(), getCallOptions(), request); } @@ -2236,8 +2236,9 @@ public com.google.cloud.edgenetwork.v1.DiagnoseNetworkResponse diagnoseNetwork( * */ public com.google.longrunning.Operation createNetwork( - com.google.cloud.edgenetwork.v1.CreateNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.CreateNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNetworkMethod(), getCallOptions(), request); } @@ -2249,8 +2250,9 @@ public com.google.longrunning.Operation createNetwork( * */ public com.google.longrunning.Operation deleteNetwork( - com.google.cloud.edgenetwork.v1.DeleteNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.DeleteNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNetworkMethod(), getCallOptions(), request); } @@ -2262,8 +2264,8 @@ public com.google.longrunning.Operation deleteNetwork( * */ public com.google.cloud.edgenetwork.v1.ListSubnetsResponse listSubnets( - com.google.cloud.edgenetwork.v1.ListSubnetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.ListSubnetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubnetsMethod(), getCallOptions(), request); } @@ -2275,8 +2277,8 @@ public com.google.cloud.edgenetwork.v1.ListSubnetsResponse listSubnets( * */ public com.google.cloud.edgenetwork.v1.Subnet getSubnet( - com.google.cloud.edgenetwork.v1.GetSubnetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.GetSubnetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSubnetMethod(), getCallOptions(), request); } @@ -2288,8 +2290,9 @@ public com.google.cloud.edgenetwork.v1.Subnet getSubnet( * */ public com.google.longrunning.Operation createSubnet( - com.google.cloud.edgenetwork.v1.CreateSubnetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.CreateSubnetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSubnetMethod(), getCallOptions(), request); } @@ -2301,8 +2304,9 @@ public com.google.longrunning.Operation createSubnet( * */ public com.google.longrunning.Operation updateSubnet( - com.google.cloud.edgenetwork.v1.UpdateSubnetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.UpdateSubnetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSubnetMethod(), getCallOptions(), request); } @@ -2314,8 +2318,9 @@ public com.google.longrunning.Operation updateSubnet( * */ public com.google.longrunning.Operation deleteSubnet( - com.google.cloud.edgenetwork.v1.DeleteSubnetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.DeleteSubnetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSubnetMethod(), getCallOptions(), request); } @@ -2327,8 +2332,9 @@ public com.google.longrunning.Operation deleteSubnet( * */ public com.google.cloud.edgenetwork.v1.ListInterconnectsResponse listInterconnects( - com.google.cloud.edgenetwork.v1.ListInterconnectsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.ListInterconnectsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInterconnectsMethod(), getCallOptions(), request); } @@ -2340,8 +2346,9 @@ public com.google.cloud.edgenetwork.v1.ListInterconnectsResponse listInterconnec * */ public com.google.cloud.edgenetwork.v1.Interconnect getInterconnect( - com.google.cloud.edgenetwork.v1.GetInterconnectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.GetInterconnectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInterconnectMethod(), getCallOptions(), request); } @@ -2353,8 +2360,9 @@ public com.google.cloud.edgenetwork.v1.Interconnect getInterconnect( * */ public com.google.cloud.edgenetwork.v1.DiagnoseInterconnectResponse diagnoseInterconnect( - com.google.cloud.edgenetwork.v1.DiagnoseInterconnectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.DiagnoseInterconnectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiagnoseInterconnectMethod(), getCallOptions(), request); } @@ -2367,8 +2375,9 @@ public com.google.cloud.edgenetwork.v1.DiagnoseInterconnectResponse diagnoseInte */ public com.google.cloud.edgenetwork.v1.ListInterconnectAttachmentsResponse listInterconnectAttachments( - com.google.cloud.edgenetwork.v1.ListInterconnectAttachmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.ListInterconnectAttachmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInterconnectAttachmentsMethod(), getCallOptions(), request); } @@ -2380,8 +2389,9 @@ public com.google.cloud.edgenetwork.v1.DiagnoseInterconnectResponse diagnoseInte * */ public com.google.cloud.edgenetwork.v1.InterconnectAttachment getInterconnectAttachment( - com.google.cloud.edgenetwork.v1.GetInterconnectAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.GetInterconnectAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInterconnectAttachmentMethod(), getCallOptions(), request); } @@ -2393,8 +2403,9 @@ public com.google.cloud.edgenetwork.v1.InterconnectAttachment getInterconnectAtt * */ public com.google.longrunning.Operation createInterconnectAttachment( - com.google.cloud.edgenetwork.v1.CreateInterconnectAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.CreateInterconnectAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInterconnectAttachmentMethod(), getCallOptions(), request); } @@ -2406,8 +2417,9 @@ public com.google.longrunning.Operation createInterconnectAttachment( * */ public com.google.longrunning.Operation deleteInterconnectAttachment( - com.google.cloud.edgenetwork.v1.DeleteInterconnectAttachmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.DeleteInterconnectAttachmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInterconnectAttachmentMethod(), getCallOptions(), request); } @@ -2419,8 +2431,8 @@ public com.google.longrunning.Operation deleteInterconnectAttachment( * */ public com.google.cloud.edgenetwork.v1.ListRoutersResponse listRouters( - com.google.cloud.edgenetwork.v1.ListRoutersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.ListRoutersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRoutersMethod(), getCallOptions(), request); } @@ -2432,8 +2444,8 @@ public com.google.cloud.edgenetwork.v1.ListRoutersResponse listRouters( * */ public com.google.cloud.edgenetwork.v1.Router getRouter( - com.google.cloud.edgenetwork.v1.GetRouterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.GetRouterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRouterMethod(), getCallOptions(), request); } @@ -2445,8 +2457,9 @@ public com.google.cloud.edgenetwork.v1.Router getRouter( * */ public com.google.cloud.edgenetwork.v1.DiagnoseRouterResponse diagnoseRouter( - com.google.cloud.edgenetwork.v1.DiagnoseRouterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.DiagnoseRouterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiagnoseRouterMethod(), getCallOptions(), request); } @@ -2458,8 +2471,9 @@ public com.google.cloud.edgenetwork.v1.DiagnoseRouterResponse diagnoseRouter( * */ public com.google.longrunning.Operation createRouter( - com.google.cloud.edgenetwork.v1.CreateRouterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.CreateRouterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRouterMethod(), getCallOptions(), request); } @@ -2471,8 +2485,9 @@ public com.google.longrunning.Operation createRouter( * */ public com.google.longrunning.Operation updateRouter( - com.google.cloud.edgenetwork.v1.UpdateRouterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.UpdateRouterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRouterMethod(), getCallOptions(), request); } @@ -2484,8 +2499,9 @@ public com.google.longrunning.Operation updateRouter( * */ public com.google.longrunning.Operation deleteRouter( - com.google.cloud.edgenetwork.v1.DeleteRouterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.edgenetwork.v1.DeleteRouterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRouterMethod(), getCallOptions(), request); } } diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/Interconnect.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/Interconnect.java index 0139ea3c15bf..9d444e8c9846 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/Interconnect.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/Interconnect.java @@ -46,6 +46,7 @@ private Interconnect() { uuid_ = ""; deviceCloudResourceName_ = ""; physicalPorts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + remotePeeringNetworkType_ = 0; } @java.lang.Override @@ -764,6 +765,52 @@ public com.google.protobuf.ByteString getPhysicalPortsBytes(int index) { return physicalPorts_.getByteString(index); } + public static final int REMOTE_PEERING_NETWORK_TYPE_FIELD_NUMBER = 10; + private int remotePeeringNetworkType_ = 0; + + /** + * + * + *
                                          +   * Optional. The remote peering network type of the interconnect. It is
                                          +   * required when peering separation is enabled.
                                          +   * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType remote_peering_network_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for remotePeeringNetworkType. + */ + @java.lang.Override + public int getRemotePeeringNetworkTypeValue() { + return remotePeeringNetworkType_; + } + + /** + * + * + *
                                          +   * Optional. The remote peering network type of the interconnect. It is
                                          +   * required when peering separation is enabled.
                                          +   * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType remote_peering_network_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remotePeeringNetworkType. + */ + @java.lang.Override + public com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType getRemotePeeringNetworkType() { + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType result = + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType.forNumber( + remotePeeringNetworkType_); + return result == null + ? com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -807,6 +854,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < physicalPorts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, physicalPorts_.getRaw(i)); } + if (remotePeeringNetworkType_ + != com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType + .REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, remotePeeringNetworkType_); + } getUnknownFields().writeTo(output); } @@ -858,6 +911,12 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPhysicalPortsList().size(); } + if (remotePeeringNetworkType_ + != com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType + .REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, remotePeeringNetworkType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -889,6 +948,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUuid().equals(other.getUuid())) return false; if (!getDeviceCloudResourceName().equals(other.getDeviceCloudResourceName())) return false; if (!getPhysicalPortsList().equals(other.getPhysicalPortsList())) return false; + if (remotePeeringNetworkType_ != other.remotePeeringNetworkType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -926,6 +986,8 @@ public int hashCode() { hash = (37 * hash) + PHYSICAL_PORTS_FIELD_NUMBER; hash = (53 * hash) + getPhysicalPortsList().hashCode(); } + hash = (37 * hash) + REMOTE_PEERING_NETWORK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + remotePeeringNetworkType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1115,6 +1177,7 @@ public Builder clear() { uuid_ = ""; deviceCloudResourceName_ = ""; physicalPorts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + remotePeeringNetworkType_ = 0; return this; } @@ -1183,6 +1246,9 @@ private void buildPartial0(com.google.cloud.edgenetwork.v1.Interconnect result) physicalPorts_.makeImmutable(); result.physicalPorts_ = physicalPorts_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.remotePeeringNetworkType_ = remotePeeringNetworkType_; + } result.bitField0_ |= to_bitField0_; } @@ -1272,6 +1338,9 @@ public Builder mergeFrom(com.google.cloud.edgenetwork.v1.Interconnect other) { } onChanged(); } + if (other.remotePeeringNetworkType_ != 0) { + setRemotePeeringNetworkTypeValue(other.getRemotePeeringNetworkTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1359,6 +1428,12 @@ public Builder mergeFrom( physicalPorts_.add(s); break; } // case 74 + case 80: + { + remotePeeringNetworkType_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2734,6 +2809,120 @@ public Builder addPhysicalPortsBytes(com.google.protobuf.ByteString value) { return this; } + private int remotePeeringNetworkType_ = 0; + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the interconnect. It is
                                          +     * required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType remote_peering_network_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for remotePeeringNetworkType. + */ + @java.lang.Override + public int getRemotePeeringNetworkTypeValue() { + return remotePeeringNetworkType_; + } + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the interconnect. It is
                                          +     * required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType remote_peering_network_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for remotePeeringNetworkType to set. + * @return This builder for chaining. + */ + public Builder setRemotePeeringNetworkTypeValue(int value) { + remotePeeringNetworkType_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the interconnect. It is
                                          +     * required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType remote_peering_network_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remotePeeringNetworkType. + */ + @java.lang.Override + public com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType getRemotePeeringNetworkType() { + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType result = + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType.forNumber( + remotePeeringNetworkType_); + return result == null + ? com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the interconnect. It is
                                          +     * required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType remote_peering_network_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The remotePeeringNetworkType to set. + * @return This builder for chaining. + */ + public Builder setRemotePeeringNetworkType( + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + remotePeeringNetworkType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the interconnect. It is
                                          +     * required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType remote_peering_network_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRemotePeeringNetworkType() { + bitField0_ = (bitField0_ & ~0x00000200); + remotePeeringNetworkType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachment.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachment.java index 74c651096be6..e1291a4a661e 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachment.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachment.java @@ -45,6 +45,7 @@ private InterconnectAttachment() { interconnect_ = ""; network_ = ""; state_ = 0; + peeringType_ = 0; } @java.lang.Override @@ -601,6 +602,51 @@ public com.google.cloud.edgenetwork.v1.ResourceState getState() { return result == null ? com.google.cloud.edgenetwork.v1.ResourceState.UNRECOGNIZED : result; } + public static final int PEERING_TYPE_FIELD_NUMBER = 12; + private int peeringType_ = 0; + + /** + * + * + *
                                          +   * Optional. The remote peering network type of the underlying interconnect.
                                          +   * It is required when peering separation is enabled.
                                          +   * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType peering_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for peeringType. + */ + @java.lang.Override + public int getPeeringTypeValue() { + return peeringType_; + } + + /** + * + * + *
                                          +   * Optional. The remote peering network type of the underlying interconnect.
                                          +   * It is required when peering separation is enabled.
                                          +   * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType peering_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The peeringType. + */ + @java.lang.Override + public com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType getPeeringType() { + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType result = + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType.forNumber(peeringType_); + return result == null + ? com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -644,6 +690,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, network_); } + if (peeringType_ + != com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType + .REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, peeringType_); + } getUnknownFields().writeTo(output); } @@ -690,6 +742,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, network_); } + if (peeringType_ + != com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType + .REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, peeringType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -722,6 +780,7 @@ public boolean equals(final java.lang.Object obj) { if (getVlanId() != other.getVlanId()) return false; if (getMtu() != other.getMtu()) return false; if (state_ != other.state_) return false; + if (peeringType_ != other.peeringType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -759,6 +818,8 @@ public int hashCode() { hash = (53 * hash) + getMtu(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + hash = (37 * hash) + PEERING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + peeringType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -950,6 +1011,7 @@ public Builder clear() { vlanId_ = 0; mtu_ = 0; state_ = 0; + peeringType_ = 0; return this; } @@ -1020,6 +1082,9 @@ private void buildPartial0(com.google.cloud.edgenetwork.v1.InterconnectAttachmen if (((from_bitField0_ & 0x00000200) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.peeringType_ = peeringType_; + } result.bitField0_ |= to_bitField0_; } @@ -1106,6 +1171,9 @@ public Builder mergeFrom(com.google.cloud.edgenetwork.v1.InterconnectAttachment if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.peeringType_ != 0) { + setPeeringTypeValue(other.getPeeringTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1198,6 +1266,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 90 + case 96: + { + peeringType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2520,6 +2594,118 @@ public Builder clearState() { return this; } + private int peeringType_ = 0; + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the underlying interconnect.
                                          +     * It is required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType peering_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for peeringType. + */ + @java.lang.Override + public int getPeeringTypeValue() { + return peeringType_; + } + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the underlying interconnect.
                                          +     * It is required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType peering_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for peeringType to set. + * @return This builder for chaining. + */ + public Builder setPeeringTypeValue(int value) { + peeringType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the underlying interconnect.
                                          +     * It is required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType peering_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The peeringType. + */ + @java.lang.Override + public com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType getPeeringType() { + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType result = + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType.forNumber(peeringType_); + return result == null + ? com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the underlying interconnect.
                                          +     * It is required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType peering_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The peeringType to set. + * @return This builder for chaining. + */ + public Builder setPeeringType(com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + peeringType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The remote peering network type of the underlying interconnect.
                                          +     * It is required when peering separation is enabled.
                                          +     * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType peering_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPeeringType() { + bitField0_ = (bitField0_ & ~0x00000400); + peeringType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachmentOrBuilder.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachmentOrBuilder.java index 74583a93f62b..01b640aa6447 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachmentOrBuilder.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachmentOrBuilder.java @@ -344,4 +344,36 @@ java.lang.String getLabelsOrDefault( * @return The state. */ com.google.cloud.edgenetwork.v1.ResourceState getState(); + + /** + * + * + *
                                          +   * Optional. The remote peering network type of the underlying interconnect.
                                          +   * It is required when peering separation is enabled.
                                          +   * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType peering_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for peeringType. + */ + int getPeeringTypeValue(); + + /** + * + * + *
                                          +   * Optional. The remote peering network type of the underlying interconnect.
                                          +   * It is required when peering separation is enabled.
                                          +   * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType peering_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The peeringType. + */ + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType getPeeringType(); } diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectOrBuilder.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectOrBuilder.java index 8332a88e7e1c..cfb30ac0b9b1 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectOrBuilder.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectOrBuilder.java @@ -364,4 +364,36 @@ java.lang.String getLabelsOrDefault( * @return The bytes of the physicalPorts at the given index. */ com.google.protobuf.ByteString getPhysicalPortsBytes(int index); + + /** + * + * + *
                                          +   * Optional. The remote peering network type of the interconnect. It is
                                          +   * required when peering separation is enabled.
                                          +   * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType remote_peering_network_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for remotePeeringNetworkType. + */ + int getRemotePeeringNetworkTypeValue(); + + /** + * + * + *
                                          +   * Optional. The remote peering network type of the interconnect. It is
                                          +   * required when peering separation is enabled.
                                          +   * 
                                          + * + * + * .google.cloud.edgenetwork.v1.RemotePeeringNetworkType remote_peering_network_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remotePeeringNetworkType. + */ + com.google.cloud.edgenetwork.v1.RemotePeeringNetworkType getRemotePeeringNetworkType(); } diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/RemotePeeringNetworkType.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/RemotePeeringNetworkType.java new file mode 100644 index 000000000000..7b2e71ed06e1 --- /dev/null +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/RemotePeeringNetworkType.java @@ -0,0 +1,183 @@ +/* + * Copyright 2025 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! +// source: google/cloud/edgenetwork/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.edgenetwork.v1; + +/** + * + * + *
                                          + * Defines the remote peering destination for the interface. It is required
                                          + * when peering separation is enabled.
                                          + * 
                                          + * + * Protobuf enum {@code google.cloud.edgenetwork.v1.RemotePeeringNetworkType} + */ +public enum RemotePeeringNetworkType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +   * Unspecified.
                                          +   * 
                                          + * + * REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED = 0; + */ + REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                          +   * Customer's trusted internal network.
                                          +   * 
                                          + * + * REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNAL = 1; + */ + REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNAL(1), + /** + * + * + *
                                          +   * Customer's untrust network that has internet access.
                                          +   * 
                                          + * + * REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNET = 2; + */ + REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNET(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +   * Unspecified.
                                          +   * 
                                          + * + * REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED = 0; + */ + public static final int REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +   * Customer's trusted internal network.
                                          +   * 
                                          + * + * REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNAL = 1; + */ + public static final int REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNAL_VALUE = 1; + + /** + * + * + *
                                          +   * Customer's untrust network that has internet access.
                                          +   * 
                                          + * + * REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNET = 2; + */ + public static final int REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNET_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 RemotePeeringNetworkType 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 RemotePeeringNetworkType forNumber(int value) { + switch (value) { + case 0: + return REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED; + case 1: + return REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNAL; + case 2: + return REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNET; + 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 RemotePeeringNetworkType findValueByNumber(int number) { + return RemotePeeringNetworkType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.edgenetwork.v1.ResourcesProto.getDescriptor().getEnumTypes().get(1); + } + + private static final RemotePeeringNetworkType[] VALUES = values(); + + public static RemotePeeringNetworkType 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 RemotePeeringNetworkType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.edgenetwork.v1.RemotePeeringNetworkType) +} diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ResourcesProto.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ResourcesProto.java index dd6f48abe0e0..fb9d11db4886 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ResourcesProto.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ResourcesProto.java @@ -191,7 +191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006BONDED\020\001\022\016\n\n" + "NON_BONDED\020\002:m\352Aj\n" + "!edgenetwork.googleapis.com/Subnet\022Eprojects/" - + "{project}/locations/{location}/zones/{zone}/subnets/{subnet}\"\231\005\n" + + "{project}/locations/{location}/zones/{zone}/subnets/{subnet}\"\372\005\n" + "\014Interconnect\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -203,21 +203,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162:.google.cloud.edgenetwork.v1.Interconnect.InterconnectTypeB\003\340A\001\022\021\n" + "\004uuid\030\007 \001(\tB\003\340A\003\022\'\n" + "\032device_cloud_resource_name\030\010 \001(\tB\003\340A\003\022\033\n" - + "\016physical_ports\030\t \003(\tB\003\340A\003\032-\n" + + "\016physical_ports\030\t \003(\tB\003\340A\003\022_\n" + + "\033remote_peering_network_type\030\n" + + " \001(\01625.google.cloud.edgenetwork.v1.RemotePeeringNetworkTypeB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"D\n" + "\020InterconnectType\022!\n" + "\035INTERCONNECT_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tDEDICATED\020\001:\177\352A|\n" - + "\'edgenetwork.googleapis.com/Interconnect\022Qprojects/{project}/locations/{loc" - + "ation}/zones/{zone}/interconnects/{interconnect}\"\272\005\n" + + "\'edgenetwork.googleapis.com/Interconnect\022Qprojects/{projec" + + "t}/locations/{location}/zones/{zone}/interconnects/{interconnect}\"\214\006\n" + "\026InterconnectAttachment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\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\022O\n" - + "\006labels\030\004 \003(\0132?.google.cloud.edgene" - + "twork.v1.InterconnectAttachment.LabelsEntry\022\030\n" + + "\006labels\030\004 \003(\0132?.go" + + "ogle.cloud.edgenetwork.v1.InterconnectAttachment.LabelsEntry\022\030\n" + "\013description\030\005 \001(\tB\003\340A\001\022E\n" + "\014interconnect\030\006 \001(\tB/\340A\002\372A)\n" + "\'edgenetwork.googleapis.com/Interconnect\022;\n" @@ -226,19 +228,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007vlan_id\030\010 \001(\005B\003\340A\002\022\013\n" + "\003mtu\030\t \001(\005\022>\n" + "\005state\030\n" - + " \001(\0162*.google.cloud.edgenetwork.v1.ResourceStateB\003\340A\003\032-\n" + + " \001(\0162*.google.cloud.edgenetwork.v1.ResourceStateB\003\340A\003\022P\n" + + "\014peering_type\030\014 \001(\01625.google.cloud.edgen" + + "etwork.v1.RemotePeeringNetworkTypeB\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" - + "1edgenetwork.googleapis.com/InterconnectAttac" - + "hment\022fprojects/{project}/locations/{loc" - + "ation}/zones/{zone}/interconnectAttachments/{interconnect_attachment}\"\360\010\n" + + "1edgenetwork.googleapis.com/InterconnectAttachment\022fprojects/{proj" + + "ect}/locations/{location}/zones/{zone}/i" + + "nterconnectAttachments/{interconnect_attachment}\"\360\010\n" + "\006Router\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\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?\n" - + "\006labels\030\004" - + " \003(\0132/.google.cloud.edgenetwork.v1.Router.LabelsEntry\022\030\n" + + "\006labels\030\004 \003" + + "(\0132/.google.cloud.edgenetwork.v1.Router.LabelsEntry\022\030\n" + "\013description\030\005 \001(\tB\003\340A\001\022;\n" + "\007network\030\006 \001(\tB*\340A\002\372A$\n" + "\"edgenetwork.googleapis.com/Network\022@\n" @@ -272,33 +276,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035keepalive_interval_in_seconds\030\002 \001(\r" + "\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:m\352Aj\n" - + "!edgenetwork.googleapis.com/Router\022Eprojects/{project}/lo" - + "cations/{location}/zones/{zone}/routers/{router}\";\n" + + "!edgenetwork.googleapis.com/Router\022Epr" + + "ojects/{project}/locations/{location}/zones/{zone}/routers/{router}\";\n" + "\020LinkLayerAddress\022\023\n" + "\013mac_address\030\001 \001(\t\022\022\n\n" + "ip_address\030\002 \001(\t\"~\n" + "\014SubnetStatus\022\014\n" + "\004name\030\001 \001(\t\022\023\n" + "\013mac_address\030\002 \001(\t\022K\n" - + "\024link_layer_addresses\030\003 \003(\0132-.google." - + "cloud.edgenetwork.v1.LinkLayerAddress\"\361\010\n" + + "\024link_layer_addresses\030\003" + + " \003(\0132-.google.cloud.edgenetwork.v1.LinkLayerAddress\"\361\010\n" + "\027InterconnectDiagnostics\022\023\n" + "\013mac_address\030\001 \001(\t\022K\n" - + "\024link_layer_addresses\030\002 \003(\0132-.g" - + "oogle.cloud.edgenetwork.v1.LinkLayerAddress\022N\n" - + "\005links\030\003 \003(\0132?.google.cloud.edgene" - + "twork.v1.InterconnectDiagnostics.LinkStatus\032\260\002\n\n" - + "LinkStatus\022\022\n\n" + + "\024link_layer_addresses\030\002" + + " \003(\0132-.google.cloud.edgenetwork.v1.LinkLayerAddress\022N\n" + + "\005links\030\003 \003(\0132?." + + "google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkStatus\032\260\002\n\n" + + "LinkStatus\022\022\n" + + "\n" + "circuit_id\030\001 \001(\t\022X\n" - + "\013lacp_status\030\002 \001(\0132C.google.cloud.edgen" - + "etwork.v1.InterconnectDiagnostics.LinkLACPStatus\022Z\n\r" - + "lldp_statuses\030\003 \003(\0132C.google" - + ".cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLLDPStatus\022X\n\r" - + "packet_counts\030\004 " - + "\001(\0132A.google.cloud.edgenetwork.v1.InterconnectDiagnostics.PacketCounts\032\247\001\n" + + "\013lacp_status\030\002 \001(\0132C" + + ".google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus\022Z\n\r" + + "lldp_statuses\030\003 \003(\0132C.google.cloud.edgenetwork.v1" + + ".InterconnectDiagnostics.LinkLLDPStatus\022X\n\r" + + "packet_counts\030\004 \001(\0132A.google.cloud.ed" + + "genetwork.v1.InterconnectDiagnostics.PacketCounts\032\247\001\n" + "\014PacketCounts\022\027\n" + "\017inbound_unicast\030\001 \001(\003\022\026\n" + "\016inbound_errors\030\002 \001(\003\022\030\n" @@ -307,8 +311,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017outbound_errors\030\005 \001(\003\022\031\n" + "\021outbound_discards\030\006 \001(\003\032\220\002\n" + "\016LinkLACPStatus\022X\n" - + "\005state\030\001 \001(\0162I.goo" - + "gle.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus.State\022\030\n" + + "\005state\030\001 \001(\0162I.google.cloud.edgenetwork" + + ".v1.InterconnectDiagnostics.LinkLACPStatus.State\022\030\n" + "\020google_system_id\030\002 \001(\t\022\032\n" + "\022neighbor_system_id\030\003 \001(\t\022\024\n" + "\014aggregatable\030\004 \001(\010\022\022\n\n" @@ -328,19 +332,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014RouterStatus\0228\n" + "\007network\030\001 \001(\tB\'\372A$\n" + "\"edgenetwork.googleapis.com/Network\022P\n" - + "\017bgp_peer_status\030\002 \003(\01327." - + "google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus\032\321\002\n\r" + + "\017bgp_peer_status\030\002" + + " \003(\01327.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus\032\321\002\n\r" + "BgpPeerStatus\022\014\n" + "\004name\030\001 \001(\t\022\022\n\n" + "ip_address\030\002 \001(\t\022\027\n" + "\017peer_ip_address\030\003 \001(\t\022Q\n" - + "\006status\030\004 \001(\0162A.google.clo" - + "ud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus\022\r\n" + + "\006status\030\004" + + " \001(\0162A.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus\022\r\n" + "\005state\030\005 \001(\t\022\016\n" + "\006uptime\030\006 \001(\t\022\026\n" + "\016uptime_seconds\030\007 \001(\003\022O\n" - + "\016prefix_counter\030\010" - + " \001(\01327.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter\"*\n" + + "\016prefix_counter\030\010 \001(\01327.googl" + + "e.cloud.edgenetwork.v1.RouterStatus.PrefixCounter\"*\n" + "\tBgpStatus\022\013\n" + "\007UNKNOWN\020\000\022\006\n" + "\002UP\020\001\022\010\n" @@ -358,12 +362,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022STATE_PROVISIONING\020\002\022\021\n\r" + "STATE_RUNNING\020\003\022\023\n" + "\017STATE_SUSPENDED\020\004\022\022\n" - + "\016STATE_DELETING\020\005B\323\001\n" - + "\037com.google.cloud.edgenetwork.v1B\016ResourcesProtoP\001ZAcloud." - + "google.com/go/edgenetwork/apiv1/edgenetw" - + "orkpb;edgenetworkpb\252\002\033Google.Cloud.EdgeN" - + "etwork.V1\312\002\033Google\\Cloud\\EdgeNetwork\\V1\352" - + "\002\036Google::Cloud::EdgeNetwork::V1b\006proto3" + + "\016STATE_DELETING\020\005*\255\001\n" + + "\030RemotePeeringNetworkType\022+\n" + + "\'REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED\020\000\0221\n" + + "-REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNAL\020\001\0221\n" + + "-REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNET\020\002B\323\001\n" + + "\037com.google.cloud.edgenetwork.v1B\016ResourcesProtoP\001ZAcloud.googl" + + "e.com/go/edgenetwork/apiv1/edgenetworkpb" + + ";edgenetworkpb\252\002\033Google.Cloud.EdgeNetwor" + + "k.V1\312\002\033Google\\Cloud\\EdgeNetwork\\V1\352\002\036Goo" + + "gle::Cloud::EdgeNetwork::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -446,6 +454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uuid", "DeviceCloudResourceName", "PhysicalPorts", + "RemotePeeringNetworkType", }); internal_static_google_cloud_edgenetwork_v1_Interconnect_LabelsEntry_descriptor = internal_static_google_cloud_edgenetwork_v1_Interconnect_descriptor.getNestedTypes().get(0); @@ -471,6 +480,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VlanId", "Mtu", "State", + "PeeringType", }); internal_static_google_cloud_edgenetwork_v1_InterconnectAttachment_LabelsEntry_descriptor = internal_static_google_cloud_edgenetwork_v1_InterconnectAttachment_descriptor diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/Zone.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/Zone.java index 7e9857e00b23..6659bcd9ec5b 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/Zone.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/Zone.java @@ -367,7 +367,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * string layout_name = 5 [deprecated = true]; * * @deprecated google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See - * google/cloud/edgenetwork/v1/resources.proto;l=79 + * google/cloud/edgenetwork/v1/resources.proto;l=92 * @return The layoutName. */ @java.lang.Override @@ -395,7 +395,7 @@ public java.lang.String getLayoutName() { * string layout_name = 5 [deprecated = true]; * * @deprecated google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See - * google/cloud/edgenetwork/v1/resources.proto;l=79 + * google/cloud/edgenetwork/v1/resources.proto;l=92 * @return The bytes for layoutName. */ @java.lang.Override @@ -1647,7 +1647,7 @@ public Builder putAllLabels(java.util.Map va * string layout_name = 5 [deprecated = true]; * * @deprecated google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See - * google/cloud/edgenetwork/v1/resources.proto;l=79 + * google/cloud/edgenetwork/v1/resources.proto;l=92 * @return The layoutName. */ @java.lang.Deprecated @@ -1674,7 +1674,7 @@ public java.lang.String getLayoutName() { * string layout_name = 5 [deprecated = true]; * * @deprecated google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See - * google/cloud/edgenetwork/v1/resources.proto;l=79 + * google/cloud/edgenetwork/v1/resources.proto;l=92 * @return The bytes for layoutName. */ @java.lang.Deprecated @@ -1701,7 +1701,7 @@ public com.google.protobuf.ByteString getLayoutNameBytes() { * string layout_name = 5 [deprecated = true]; * * @deprecated google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See - * google/cloud/edgenetwork/v1/resources.proto;l=79 + * google/cloud/edgenetwork/v1/resources.proto;l=92 * @param value The layoutName to set. * @return This builder for chaining. */ @@ -1727,7 +1727,7 @@ public Builder setLayoutName(java.lang.String value) { * string layout_name = 5 [deprecated = true]; * * @deprecated google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See - * google/cloud/edgenetwork/v1/resources.proto;l=79 + * google/cloud/edgenetwork/v1/resources.proto;l=92 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1749,7 +1749,7 @@ public Builder clearLayoutName() { * string layout_name = 5 [deprecated = true]; * * @deprecated google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See - * google/cloud/edgenetwork/v1/resources.proto;l=79 + * google/cloud/edgenetwork/v1/resources.proto;l=92 * @param value The bytes for layoutName to set. * @return This builder for chaining. */ diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ZoneOrBuilder.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ZoneOrBuilder.java index ef2add1b006f..ad95c74a8ddb 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ZoneOrBuilder.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ZoneOrBuilder.java @@ -213,7 +213,7 @@ java.lang.String getLabelsOrDefault( * string layout_name = 5 [deprecated = true]; * * @deprecated google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See - * google/cloud/edgenetwork/v1/resources.proto;l=79 + * google/cloud/edgenetwork/v1/resources.proto;l=92 * @return The layoutName. */ @java.lang.Deprecated @@ -230,7 +230,7 @@ java.lang.String getLabelsOrDefault( * string layout_name = 5 [deprecated = true]; * * @deprecated google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See - * google/cloud/edgenetwork/v1/resources.proto;l=79 + * google/cloud/edgenetwork/v1/resources.proto;l=92 * @return The bytes for layoutName. */ @java.lang.Deprecated diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/proto/google/cloud/edgenetwork/v1/resources.proto b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/proto/google/cloud/edgenetwork/v1/resources.proto index 8fc9f3019f42..1f933364b1b0 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/proto/google/cloud/edgenetwork/v1/resources.proto +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/proto/google/cloud/edgenetwork/v1/resources.proto @@ -53,6 +53,19 @@ enum ResourceState { STATE_DELETING = 5; } +// Defines the remote peering destination for the interface. It is required +// when peering separation is enabled. +enum RemotePeeringNetworkType { + // Unspecified. + REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED = 0; + + // Customer's trusted internal network. + REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNAL = 1; + + // Customer's untrust network that has internet access. + REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNET = 2; +} + // A Google Edge Cloud zone. message Zone { option (google.api.resource) = { @@ -231,6 +244,11 @@ message Interconnect { // interconnect. repeated string physical_ports = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The remote peering network type of the interconnect. It is + // required when peering separation is enabled. + RemotePeeringNetworkType remote_peering_network_type = 10 + [(google.api.field_behavior) = OPTIONAL]; } // Message describing InterconnectAttachment object @@ -287,6 +305,11 @@ message InterconnectAttachment { // Output only. Current stage of the resource to the device by config push. ResourceState state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The remote peering network type of the underlying interconnect. + // It is required when peering separation is enabled. + RemotePeeringNetworkType peering_type = 12 + [(google.api.field_behavior) = OPTIONAL]; } // Message describing Router object diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index ebc773a93dd8..a4eac5a2c1df 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.73.0 + 0.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.73.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.74.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java index cb69bc92aed7..a2a34d817f0d 100644 --- a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java +++ b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceGrpc.java @@ -24,9 +24,6 @@ * APIs for enterprise knowledge graph product. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/enterpriseknowledgegraph/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EnterpriseKnowledgeGraphServiceGrpc { @@ -936,8 +933,9 @@ protected EnterpriseKnowledgeGraphServiceBlockingV2Stub build( public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob createEntityReconciliationJob( com.google.cloud.enterpriseknowledgegraph.v1.CreateEntityReconciliationJobRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntityReconciliationJobMethod(), getCallOptions(), request); } @@ -950,9 +948,9 @@ protected EnterpriseKnowledgeGraphServiceBlockingV2Stub build( */ public com.google.cloud.enterpriseknowledgegraph.v1.EntityReconciliationJob getEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.enterpriseknowledgegraph.v1.GetEntityReconciliationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntityReconciliationJobMethod(), getCallOptions(), request); } @@ -966,8 +964,9 @@ protected EnterpriseKnowledgeGraphServiceBlockingV2Stub build( public com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsResponse listEntityReconciliationJobs( com.google.cloud.enterpriseknowledgegraph.v1.ListEntityReconciliationJobsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntityReconciliationJobsMethod(), getCallOptions(), request); } @@ -980,8 +979,9 @@ protected EnterpriseKnowledgeGraphServiceBlockingV2Stub build( * */ public com.google.protobuf.Empty cancelEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.enterpriseknowledgegraph.v1.CancelEntityReconciliationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelEntityReconciliationJobMethod(), getCallOptions(), request); } @@ -995,8 +995,9 @@ public com.google.protobuf.Empty cancelEntityReconciliationJob( * */ public com.google.protobuf.Empty deleteEntityReconciliationJob( - com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.enterpriseknowledgegraph.v1.DeleteEntityReconciliationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntityReconciliationJobMethod(), getCallOptions(), request); } @@ -1008,8 +1009,9 @@ public com.google.protobuf.Empty deleteEntityReconciliationJob( * */ public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse lookup( - com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.enterpriseknowledgegraph.v1.LookupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupMethod(), getCallOptions(), request); } @@ -1021,8 +1023,9 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupResponse lookup( * */ public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse search( - com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.enterpriseknowledgegraph.v1.SearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } @@ -1034,8 +1037,9 @@ public com.google.cloud.enterpriseknowledgegraph.v1.SearchResponse search( * */ public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse lookupPublicKg( - com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupPublicKgMethod(), getCallOptions(), request); } @@ -1047,8 +1051,9 @@ public com.google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgResponse looku * */ public com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgResponse searchPublicKg( - com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.enterpriseknowledgegraph.v1.SearchPublicKgRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchPublicKgMethod(), getCallOptions(), request); } } diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index e1865cc9ac98..13116eddf09d 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.198.0-beta + 0.199.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.198.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.199.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.198.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.199.0-beta" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.198.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.199.0-beta [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceGrpc.java b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceGrpc.java index a30b462aab1c..98b308dcb21d 100644 --- a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceGrpc.java +++ b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceGrpc.java @@ -24,9 +24,6 @@ * Service for retrieving and updating individual error groups. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ErrorGroupServiceGrpc { @@ -321,8 +318,9 @@ protected ErrorGroupServiceBlockingV2Stub build( * */ public com.google.devtools.clouderrorreporting.v1beta1.ErrorGroup getGroup( - com.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGroupMethod(), getCallOptions(), request); } @@ -335,8 +333,9 @@ public com.google.devtools.clouderrorreporting.v1beta1.ErrorGroup getGroup( * */ public com.google.devtools.clouderrorreporting.v1beta1.ErrorGroup updateGroup( - com.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGroupMethod(), getCallOptions(), request); } } diff --git a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceGrpc.java b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceGrpc.java index 136d9c9ff091..df52dca38708 100644 --- a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceGrpc.java +++ b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceGrpc.java @@ -25,9 +25,6 @@ * individual events. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ErrorStatsServiceGrpc { @@ -409,8 +406,9 @@ protected ErrorStatsServiceBlockingV2Stub build( * */ public com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse listGroupStats( - com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGroupStatsMethod(), getCallOptions(), request); } @@ -422,8 +420,9 @@ public com.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse li * */ public com.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse listEvents( - com.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEventsMethod(), getCallOptions(), request); } @@ -435,8 +434,9 @@ public com.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse listEv * */ public com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse deleteEvents( - com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEventsMethod(), getCallOptions(), request); } } diff --git a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceGrpc.java b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceGrpc.java index 076fdfc9d85d..288563248fec 100644 --- a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceGrpc.java +++ b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceGrpc.java @@ -24,9 +24,6 @@ * An API for reporting error events. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReportErrorsServiceGrpc { @@ -292,8 +289,9 @@ protected ReportErrorsServiceBlockingV2Stub build( */ public com.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse reportErrorEvent( - com.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportErrorEventMethod(), getCallOptions(), request); } } diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index 3b3f0e86b2bc..559725f21557 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.77.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java index f49e6c210cc4..0c4c01348572 100644 --- a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java +++ b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java @@ -24,9 +24,6 @@ * Manages contacts for important Google Cloud notifications. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/essentialcontacts/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EssentialContactsServiceGrpc { @@ -714,8 +711,9 @@ protected EssentialContactsServiceBlockingV2Stub build( * */ public com.google.cloud.essentialcontacts.v1.Contact createContact( - com.google.cloud.essentialcontacts.v1.CreateContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.essentialcontacts.v1.CreateContactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateContactMethod(), getCallOptions(), request); } @@ -728,8 +726,9 @@ public com.google.cloud.essentialcontacts.v1.Contact createContact( * */ public com.google.cloud.essentialcontacts.v1.Contact updateContact( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateContactMethod(), getCallOptions(), request); } @@ -741,8 +740,9 @@ public com.google.cloud.essentialcontacts.v1.Contact updateContact( * */ public com.google.cloud.essentialcontacts.v1.ListContactsResponse listContacts( - com.google.cloud.essentialcontacts.v1.ListContactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.essentialcontacts.v1.ListContactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListContactsMethod(), getCallOptions(), request); } @@ -754,8 +754,9 @@ public com.google.cloud.essentialcontacts.v1.ListContactsResponse listContacts( * */ public com.google.cloud.essentialcontacts.v1.Contact getContact( - com.google.cloud.essentialcontacts.v1.GetContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.essentialcontacts.v1.GetContactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetContactMethod(), getCallOptions(), request); } @@ -767,8 +768,9 @@ public com.google.cloud.essentialcontacts.v1.Contact getContact( * */ public com.google.protobuf.Empty deleteContact( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteContactMethod(), getCallOptions(), request); } @@ -782,8 +784,9 @@ public com.google.protobuf.Empty deleteContact( * */ public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse computeContacts( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeContactsMethod(), getCallOptions(), request); } @@ -796,8 +799,9 @@ public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse computeCont * */ public com.google.protobuf.Empty sendTestMessage( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSendTestMessageMethod(), getCallOptions(), request); } } diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 779150193bd3..0bb570d019d2 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.77.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.77.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java index 37ccdfaafaed..066eb13608fd 100644 --- a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java +++ b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java @@ -44,9 +44,6 @@ * Publisher allows an event provider to publish events to Eventarc. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/eventarc/publishing/v1/publisher.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PublisherGrpc { @@ -503,8 +500,9 @@ protected PublisherBlockingV2Stub build( */ public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse publishChannelConnectionEvents( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPublishChannelConnectionEventsMethod(), getCallOptions(), request); } @@ -516,8 +514,9 @@ protected PublisherBlockingV2Stub build( * */ public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse publishEvents( - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPublishEventsMethod(), getCallOptions(), request); } @@ -529,8 +528,9 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse publishEven * */ public com.google.cloud.eventarc.publishing.v1.PublishResponse publish( - com.google.cloud.eventarc.publishing.v1.PublishRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.publishing.v1.PublishRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPublishMethod(), getCallOptions(), request); } } diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 1d2cbb74d89e..9beaa98863e4 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.77.0 + 1.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.77.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc/grpc-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/EventarcGrpc.java b/java-eventarc/grpc-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/EventarcGrpc.java index f31d8254938a..4a5d2984b59d 100644 --- a/java-eventarc/grpc-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/EventarcGrpc.java +++ b/java-eventarc/grpc-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/EventarcGrpc.java @@ -25,9 +25,6 @@ * Google Cloud services and forward them to supported destinations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/eventarc/v1/eventarc.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EventarcGrpc { @@ -3098,8 +3095,8 @@ protected EventarcBlockingV2Stub build( * */ public com.google.cloud.eventarc.v1.Trigger getTrigger( - com.google.cloud.eventarc.v1.GetTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.GetTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTriggerMethod(), getCallOptions(), request); } @@ -3111,8 +3108,8 @@ public com.google.cloud.eventarc.v1.Trigger getTrigger( * */ public com.google.cloud.eventarc.v1.ListTriggersResponse listTriggers( - com.google.cloud.eventarc.v1.ListTriggersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.ListTriggersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTriggersMethod(), getCallOptions(), request); } @@ -3124,8 +3121,8 @@ public com.google.cloud.eventarc.v1.ListTriggersResponse listTriggers( * */ public com.google.longrunning.Operation createTrigger( - com.google.cloud.eventarc.v1.CreateTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.CreateTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTriggerMethod(), getCallOptions(), request); } @@ -3137,8 +3134,8 @@ public com.google.longrunning.Operation createTrigger( * */ public com.google.longrunning.Operation updateTrigger( - com.google.cloud.eventarc.v1.UpdateTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.UpdateTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTriggerMethod(), getCallOptions(), request); } @@ -3150,8 +3147,8 @@ public com.google.longrunning.Operation updateTrigger( * */ public com.google.longrunning.Operation deleteTrigger( - com.google.cloud.eventarc.v1.DeleteTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.DeleteTriggerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTriggerMethod(), getCallOptions(), request); } @@ -3163,8 +3160,8 @@ public com.google.longrunning.Operation deleteTrigger( * */ public com.google.cloud.eventarc.v1.Channel getChannel( - com.google.cloud.eventarc.v1.GetChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.GetChannelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChannelMethod(), getCallOptions(), request); } @@ -3176,8 +3173,8 @@ public com.google.cloud.eventarc.v1.Channel getChannel( * */ public com.google.cloud.eventarc.v1.ListChannelsResponse listChannels( - com.google.cloud.eventarc.v1.ListChannelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.ListChannelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChannelsMethod(), getCallOptions(), request); } @@ -3189,8 +3186,8 @@ public com.google.cloud.eventarc.v1.ListChannelsResponse listChannels( * */ public com.google.longrunning.Operation createChannel( - com.google.cloud.eventarc.v1.CreateChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.CreateChannelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateChannelMethod(), getCallOptions(), request); } @@ -3202,8 +3199,8 @@ public com.google.longrunning.Operation createChannel( * */ public com.google.longrunning.Operation updateChannel( - com.google.cloud.eventarc.v1.UpdateChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.UpdateChannelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateChannelMethod(), getCallOptions(), request); } @@ -3215,8 +3212,8 @@ public com.google.longrunning.Operation updateChannel( * */ public com.google.longrunning.Operation deleteChannel( - com.google.cloud.eventarc.v1.DeleteChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.DeleteChannelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteChannelMethod(), getCallOptions(), request); } @@ -3228,8 +3225,8 @@ public com.google.longrunning.Operation deleteChannel( * */ public com.google.cloud.eventarc.v1.Provider getProvider( - com.google.cloud.eventarc.v1.GetProviderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.GetProviderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProviderMethod(), getCallOptions(), request); } @@ -3241,8 +3238,8 @@ public com.google.cloud.eventarc.v1.Provider getProvider( * */ public com.google.cloud.eventarc.v1.ListProvidersResponse listProviders( - com.google.cloud.eventarc.v1.ListProvidersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.ListProvidersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProvidersMethod(), getCallOptions(), request); } @@ -3254,8 +3251,9 @@ public com.google.cloud.eventarc.v1.ListProvidersResponse listProviders( * */ public com.google.cloud.eventarc.v1.ChannelConnection getChannelConnection( - com.google.cloud.eventarc.v1.GetChannelConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.GetChannelConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChannelConnectionMethod(), getCallOptions(), request); } @@ -3267,8 +3265,9 @@ public com.google.cloud.eventarc.v1.ChannelConnection getChannelConnection( * */ public com.google.cloud.eventarc.v1.ListChannelConnectionsResponse listChannelConnections( - com.google.cloud.eventarc.v1.ListChannelConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.ListChannelConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChannelConnectionsMethod(), getCallOptions(), request); } @@ -3280,8 +3279,9 @@ public com.google.cloud.eventarc.v1.ListChannelConnectionsResponse listChannelCo * */ public com.google.longrunning.Operation createChannelConnection( - com.google.cloud.eventarc.v1.CreateChannelConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.CreateChannelConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateChannelConnectionMethod(), getCallOptions(), request); } @@ -3293,8 +3293,9 @@ public com.google.longrunning.Operation createChannelConnection( * */ public com.google.longrunning.Operation deleteChannelConnection( - com.google.cloud.eventarc.v1.DeleteChannelConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.DeleteChannelConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteChannelConnectionMethod(), getCallOptions(), request); } @@ -3308,8 +3309,9 @@ public com.google.longrunning.Operation deleteChannelConnection( * */ public com.google.cloud.eventarc.v1.GoogleChannelConfig getGoogleChannelConfig( - com.google.cloud.eventarc.v1.GetGoogleChannelConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.GetGoogleChannelConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGoogleChannelConfigMethod(), getCallOptions(), request); } @@ -3321,8 +3323,9 @@ public com.google.cloud.eventarc.v1.GoogleChannelConfig getGoogleChannelConfig( * */ public com.google.cloud.eventarc.v1.GoogleChannelConfig updateGoogleChannelConfig( - com.google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGoogleChannelConfigMethod(), getCallOptions(), request); } @@ -3334,8 +3337,8 @@ public com.google.cloud.eventarc.v1.GoogleChannelConfig updateGoogleChannelConfi * */ public com.google.cloud.eventarc.v1.MessageBus getMessageBus( - com.google.cloud.eventarc.v1.GetMessageBusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.GetMessageBusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMessageBusMethod(), getCallOptions(), request); } @@ -3347,8 +3350,9 @@ public com.google.cloud.eventarc.v1.MessageBus getMessageBus( * */ public com.google.cloud.eventarc.v1.ListMessageBusesResponse listMessageBuses( - com.google.cloud.eventarc.v1.ListMessageBusesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.ListMessageBusesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMessageBusesMethod(), getCallOptions(), request); } @@ -3360,8 +3364,9 @@ public com.google.cloud.eventarc.v1.ListMessageBusesResponse listMessageBuses( * */ public com.google.cloud.eventarc.v1.ListMessageBusEnrollmentsResponse listMessageBusEnrollments( - com.google.cloud.eventarc.v1.ListMessageBusEnrollmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.ListMessageBusEnrollmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMessageBusEnrollmentsMethod(), getCallOptions(), request); } @@ -3373,8 +3378,9 @@ public com.google.cloud.eventarc.v1.ListMessageBusEnrollmentsResponse listMessag * */ public com.google.longrunning.Operation createMessageBus( - com.google.cloud.eventarc.v1.CreateMessageBusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.CreateMessageBusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMessageBusMethod(), getCallOptions(), request); } @@ -3386,8 +3392,9 @@ public com.google.longrunning.Operation createMessageBus( * */ public com.google.longrunning.Operation updateMessageBus( - com.google.cloud.eventarc.v1.UpdateMessageBusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.UpdateMessageBusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMessageBusMethod(), getCallOptions(), request); } @@ -3399,8 +3406,9 @@ public com.google.longrunning.Operation updateMessageBus( * */ public com.google.longrunning.Operation deleteMessageBus( - com.google.cloud.eventarc.v1.DeleteMessageBusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.DeleteMessageBusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMessageBusMethod(), getCallOptions(), request); } @@ -3412,8 +3420,8 @@ public com.google.longrunning.Operation deleteMessageBus( * */ public com.google.cloud.eventarc.v1.Enrollment getEnrollment( - com.google.cloud.eventarc.v1.GetEnrollmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.GetEnrollmentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnrollmentMethod(), getCallOptions(), request); } @@ -3425,8 +3433,9 @@ public com.google.cloud.eventarc.v1.Enrollment getEnrollment( * */ public com.google.cloud.eventarc.v1.ListEnrollmentsResponse listEnrollments( - com.google.cloud.eventarc.v1.ListEnrollmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.ListEnrollmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnrollmentsMethod(), getCallOptions(), request); } @@ -3438,8 +3447,9 @@ public com.google.cloud.eventarc.v1.ListEnrollmentsResponse listEnrollments( * */ public com.google.longrunning.Operation createEnrollment( - com.google.cloud.eventarc.v1.CreateEnrollmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.CreateEnrollmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnrollmentMethod(), getCallOptions(), request); } @@ -3451,8 +3461,9 @@ public com.google.longrunning.Operation createEnrollment( * */ public com.google.longrunning.Operation updateEnrollment( - com.google.cloud.eventarc.v1.UpdateEnrollmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.UpdateEnrollmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEnrollmentMethod(), getCallOptions(), request); } @@ -3464,8 +3475,9 @@ public com.google.longrunning.Operation updateEnrollment( * */ public com.google.longrunning.Operation deleteEnrollment( - com.google.cloud.eventarc.v1.DeleteEnrollmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.DeleteEnrollmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnrollmentMethod(), getCallOptions(), request); } @@ -3477,8 +3489,8 @@ public com.google.longrunning.Operation deleteEnrollment( * */ public com.google.cloud.eventarc.v1.Pipeline getPipeline( - com.google.cloud.eventarc.v1.GetPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.GetPipelineRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPipelineMethod(), getCallOptions(), request); } @@ -3490,8 +3502,8 @@ public com.google.cloud.eventarc.v1.Pipeline getPipeline( * */ public com.google.cloud.eventarc.v1.ListPipelinesResponse listPipelines( - com.google.cloud.eventarc.v1.ListPipelinesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.ListPipelinesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPipelinesMethod(), getCallOptions(), request); } @@ -3503,8 +3515,8 @@ public com.google.cloud.eventarc.v1.ListPipelinesResponse listPipelines( * */ public com.google.longrunning.Operation createPipeline( - com.google.cloud.eventarc.v1.CreatePipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.CreatePipelineRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePipelineMethod(), getCallOptions(), request); } @@ -3516,8 +3528,8 @@ public com.google.longrunning.Operation createPipeline( * */ public com.google.longrunning.Operation updatePipeline( - com.google.cloud.eventarc.v1.UpdatePipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.UpdatePipelineRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePipelineMethod(), getCallOptions(), request); } @@ -3529,8 +3541,8 @@ public com.google.longrunning.Operation updatePipeline( * */ public com.google.longrunning.Operation deletePipeline( - com.google.cloud.eventarc.v1.DeletePipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.DeletePipelineRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePipelineMethod(), getCallOptions(), request); } @@ -3542,8 +3554,9 @@ public com.google.longrunning.Operation deletePipeline( * */ public com.google.cloud.eventarc.v1.GoogleApiSource getGoogleApiSource( - com.google.cloud.eventarc.v1.GetGoogleApiSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.GetGoogleApiSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGoogleApiSourceMethod(), getCallOptions(), request); } @@ -3555,8 +3568,9 @@ public com.google.cloud.eventarc.v1.GoogleApiSource getGoogleApiSource( * */ public com.google.cloud.eventarc.v1.ListGoogleApiSourcesResponse listGoogleApiSources( - com.google.cloud.eventarc.v1.ListGoogleApiSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.ListGoogleApiSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGoogleApiSourcesMethod(), getCallOptions(), request); } @@ -3568,8 +3582,9 @@ public com.google.cloud.eventarc.v1.ListGoogleApiSourcesResponse listGoogleApiSo * */ public com.google.longrunning.Operation createGoogleApiSource( - com.google.cloud.eventarc.v1.CreateGoogleApiSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.CreateGoogleApiSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGoogleApiSourceMethod(), getCallOptions(), request); } @@ -3581,8 +3596,9 @@ public com.google.longrunning.Operation createGoogleApiSource( * */ public com.google.longrunning.Operation updateGoogleApiSource( - com.google.cloud.eventarc.v1.UpdateGoogleApiSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.UpdateGoogleApiSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGoogleApiSourceMethod(), getCallOptions(), request); } @@ -3594,8 +3610,9 @@ public com.google.longrunning.Operation updateGoogleApiSource( * */ public com.google.longrunning.Operation deleteGoogleApiSource( - com.google.cloud.eventarc.v1.DeleteGoogleApiSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.eventarc.v1.DeleteGoogleApiSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGoogleApiSourceMethod(), getCallOptions(), request); } } diff --git a/java-filestore/README.md b/java-filestore/README.md index 974dc75c2288..6a84d9fcec6b 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.78.0 + 1.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.78.0' +implementation 'com.google.cloud:google-cloud-filestore:1.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java b/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java index a6586f7fd895..f1347227c3b1 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java +++ b/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java @@ -39,9 +39,6 @@ * * `projects/12345/locations/us-central1/backups/my-backup` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/filestore/v1/cloud_filestore_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudFilestoreManagerGrpc { @@ -1589,8 +1586,8 @@ protected CloudFilestoreManagerBlockingV2Stub build( * */ public com.google.cloud.filestore.v1.ListInstancesResponse listInstances( - com.google.cloud.filestore.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.ListInstancesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -1602,8 +1599,8 @@ public com.google.cloud.filestore.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.filestore.v1.Instance getInstance( - com.google.cloud.filestore.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -1618,8 +1615,9 @@ public com.google.cloud.filestore.v1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.filestore.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -1631,8 +1629,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.filestore.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -1647,8 +1646,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation restoreInstance( - com.google.cloud.filestore.v1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.RestoreInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); } @@ -1660,8 +1660,9 @@ public com.google.longrunning.Operation restoreInstance( * */ public com.google.longrunning.Operation revertInstance( - com.google.cloud.filestore.v1.RevertInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.RevertInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRevertInstanceMethod(), getCallOptions(), request); } @@ -1673,8 +1674,9 @@ public com.google.longrunning.Operation revertInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.filestore.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -1687,8 +1689,8 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.cloud.filestore.v1.ListSnapshotsResponse listSnapshots( - com.google.cloud.filestore.v1.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.ListSnapshotsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } @@ -1700,8 +1702,8 @@ public com.google.cloud.filestore.v1.ListSnapshotsResponse listSnapshots( * */ public com.google.cloud.filestore.v1.Snapshot getSnapshot( - com.google.cloud.filestore.v1.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.GetSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } @@ -1713,8 +1715,9 @@ public com.google.cloud.filestore.v1.Snapshot getSnapshot( * */ public com.google.longrunning.Operation createSnapshot( - com.google.cloud.filestore.v1.CreateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.CreateSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } @@ -1726,8 +1729,9 @@ public com.google.longrunning.Operation createSnapshot( * */ public com.google.longrunning.Operation deleteSnapshot( - com.google.cloud.filestore.v1.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.DeleteSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } @@ -1739,8 +1743,9 @@ public com.google.longrunning.Operation deleteSnapshot( * */ public com.google.longrunning.Operation updateSnapshot( - com.google.cloud.filestore.v1.UpdateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.UpdateSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } @@ -1753,8 +1758,8 @@ public com.google.longrunning.Operation updateSnapshot( * */ public com.google.cloud.filestore.v1.ListBackupsResponse listBackups( - com.google.cloud.filestore.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.ListBackupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -1766,8 +1771,8 @@ public com.google.cloud.filestore.v1.ListBackupsResponse listBackups( * */ public com.google.cloud.filestore.v1.Backup getBackup( - com.google.cloud.filestore.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -1779,8 +1784,8 @@ public com.google.cloud.filestore.v1.Backup getBackup( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.filestore.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.CreateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -1792,8 +1797,8 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.filestore.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.DeleteBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -1805,8 +1810,8 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.longrunning.Operation updateBackup( - com.google.cloud.filestore.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.UpdateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } @@ -1818,8 +1823,9 @@ public com.google.longrunning.Operation updateBackup( * */ public com.google.longrunning.Operation promoteReplica( - com.google.cloud.filestore.v1.PromoteReplicaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1.PromoteReplicaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPromoteReplicaMethod(), getCallOptions(), request); } } diff --git a/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java b/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java index f2079231bf7b..3325f1cf26fc 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java +++ b/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java @@ -40,9 +40,6 @@ * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudFilestoreManagerGrpc { @@ -2000,8 +1997,9 @@ protected CloudFilestoreManagerBlockingV2Stub build( * */ public com.google.cloud.filestore.v1beta1.ListInstancesResponse listInstances( - com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -2013,8 +2011,9 @@ public com.google.cloud.filestore.v1beta1.ListInstancesResponse listInstances( * */ public com.google.cloud.filestore.v1beta1.Instance getInstance( - com.google.cloud.filestore.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -2029,8 +2028,9 @@ public com.google.cloud.filestore.v1beta1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -2042,8 +2042,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -2058,8 +2059,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation restoreInstance( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); } @@ -2071,8 +2073,9 @@ public com.google.longrunning.Operation restoreInstance( * */ public com.google.longrunning.Operation revertInstance( - com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRevertInstanceMethod(), getCallOptions(), request); } @@ -2084,8 +2087,9 @@ public com.google.longrunning.Operation revertInstance( * */ public com.google.longrunning.Operation promoteReplica( - com.google.cloud.filestore.v1beta1.PromoteReplicaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.PromoteReplicaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPromoteReplicaMethod(), getCallOptions(), request); } @@ -2097,8 +2101,9 @@ public com.google.longrunning.Operation promoteReplica( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -2111,8 +2116,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse listSnapshots( - com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } @@ -2124,8 +2130,9 @@ public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse listSnapshots( * */ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot( - com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } @@ -2137,8 +2144,9 @@ public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot( * */ public com.google.longrunning.Operation createSnapshot( - com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } @@ -2150,8 +2158,9 @@ public com.google.longrunning.Operation createSnapshot( * */ public com.google.longrunning.Operation deleteSnapshot( - com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } @@ -2163,8 +2172,9 @@ public com.google.longrunning.Operation deleteSnapshot( * */ public com.google.longrunning.Operation updateSnapshot( - com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } @@ -2177,8 +2187,9 @@ public com.google.longrunning.Operation updateSnapshot( * */ public com.google.cloud.filestore.v1beta1.ListBackupsResponse listBackups( - com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.ListBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -2190,8 +2201,9 @@ public com.google.cloud.filestore.v1beta1.ListBackupsResponse listBackups( * */ public com.google.cloud.filestore.v1beta1.Backup getBackup( - com.google.cloud.filestore.v1beta1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.GetBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -2203,8 +2215,9 @@ public com.google.cloud.filestore.v1beta1.Backup getBackup( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.filestore.v1beta1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.CreateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -2216,8 +2229,9 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.DeleteBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -2229,8 +2243,9 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.longrunning.Operation updateBackup( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.UpdateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } @@ -2242,8 +2257,9 @@ public com.google.longrunning.Operation updateBackup( * */ public com.google.cloud.filestore.v1beta1.ListSharesResponse listShares( - com.google.cloud.filestore.v1beta1.ListSharesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.ListSharesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSharesMethod(), getCallOptions(), request); } @@ -2255,8 +2271,8 @@ public com.google.cloud.filestore.v1beta1.ListSharesResponse listShares( * */ public com.google.cloud.filestore.v1beta1.Share getShare( - com.google.cloud.filestore.v1beta1.GetShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.GetShareRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetShareMethod(), getCallOptions(), request); } @@ -2268,8 +2284,9 @@ public com.google.cloud.filestore.v1beta1.Share getShare( * */ public com.google.longrunning.Operation createShare( - com.google.cloud.filestore.v1beta1.CreateShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.CreateShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateShareMethod(), getCallOptions(), request); } @@ -2281,8 +2298,9 @@ public com.google.longrunning.Operation createShare( * */ public com.google.longrunning.Operation deleteShare( - com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.DeleteShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteShareMethod(), getCallOptions(), request); } @@ -2294,8 +2312,9 @@ public com.google.longrunning.Operation deleteShare( * */ public com.google.longrunning.Operation updateShare( - com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.filestore.v1beta1.UpdateShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateShareMethod(), getCallOptions(), request); } } diff --git a/java-financialservices/README.md b/java-financialservices/README.md index 4079680e0983..e9750976450a 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 0.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.18.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.19.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.19.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-financialservices/grpc-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/AMLGrpc.java b/java-financialservices/grpc-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/AMLGrpc.java index 98b7806a08be..b6e327732e92 100644 --- a/java-financialservices/grpc-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/AMLGrpc.java +++ b/java-financialservices/grpc-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/AMLGrpc.java @@ -25,9 +25,6 @@ * operations on aml. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/financialservices/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AMLGrpc { @@ -3111,8 +3108,9 @@ protected AMLBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions c * */ public com.google.cloud.financialservices.v1.ListInstancesResponse listInstances( - com.google.cloud.financialservices.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -3124,8 +3122,9 @@ public com.google.cloud.financialservices.v1.ListInstancesResponse listInstances * */ public com.google.cloud.financialservices.v1.Instance getInstance( - com.google.cloud.financialservices.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -3137,8 +3136,9 @@ public com.google.cloud.financialservices.v1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.financialservices.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -3150,8 +3150,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.financialservices.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -3163,8 +3164,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.financialservices.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -3179,8 +3181,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation importRegisteredParties( - com.google.cloud.financialservices.v1.ImportRegisteredPartiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ImportRegisteredPartiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportRegisteredPartiesMethod(), getCallOptions(), request); } @@ -3195,8 +3198,9 @@ public com.google.longrunning.Operation importRegisteredParties( * */ public com.google.longrunning.Operation exportRegisteredParties( - com.google.cloud.financialservices.v1.ExportRegisteredPartiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ExportRegisteredPartiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportRegisteredPartiesMethod(), getCallOptions(), request); } @@ -3208,8 +3212,9 @@ public com.google.longrunning.Operation exportRegisteredParties( * */ public com.google.cloud.financialservices.v1.ListDatasetsResponse listDatasets( - com.google.cloud.financialservices.v1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ListDatasetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetsMethod(), getCallOptions(), request); } @@ -3221,8 +3226,9 @@ public com.google.cloud.financialservices.v1.ListDatasetsResponse listDatasets( * */ public com.google.cloud.financialservices.v1.Dataset getDataset( - com.google.cloud.financialservices.v1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.GetDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } @@ -3234,8 +3240,9 @@ public com.google.cloud.financialservices.v1.Dataset getDataset( * */ public com.google.longrunning.Operation createDataset( - com.google.cloud.financialservices.v1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.CreateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } @@ -3247,8 +3254,9 @@ public com.google.longrunning.Operation createDataset( * */ public com.google.longrunning.Operation updateDataset( - com.google.cloud.financialservices.v1.UpdateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.UpdateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); } @@ -3260,8 +3268,9 @@ public com.google.longrunning.Operation updateDataset( * */ public com.google.longrunning.Operation deleteDataset( - com.google.cloud.financialservices.v1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.DeleteDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } @@ -3273,8 +3282,9 @@ public com.google.longrunning.Operation deleteDataset( * */ public com.google.cloud.financialservices.v1.ListModelsResponse listModels( - com.google.cloud.financialservices.v1.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ListModelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } @@ -3286,8 +3296,9 @@ public com.google.cloud.financialservices.v1.ListModelsResponse listModels( * */ public com.google.cloud.financialservices.v1.Model getModel( - com.google.cloud.financialservices.v1.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.GetModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } @@ -3299,8 +3310,9 @@ public com.google.cloud.financialservices.v1.Model getModel( * */ public com.google.longrunning.Operation createModel( - com.google.cloud.financialservices.v1.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.CreateModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelMethod(), getCallOptions(), request); } @@ -3312,8 +3324,9 @@ public com.google.longrunning.Operation createModel( * */ public com.google.longrunning.Operation updateModel( - com.google.cloud.financialservices.v1.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.UpdateModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelMethod(), getCallOptions(), request); } @@ -3328,8 +3341,9 @@ public com.google.longrunning.Operation updateModel( * */ public com.google.longrunning.Operation exportModelMetadata( - com.google.cloud.financialservices.v1.ExportModelMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ExportModelMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportModelMetadataMethod(), getCallOptions(), request); } @@ -3341,8 +3355,9 @@ public com.google.longrunning.Operation exportModelMetadata( * */ public com.google.longrunning.Operation deleteModel( - com.google.cloud.financialservices.v1.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.DeleteModelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } @@ -3354,8 +3369,9 @@ public com.google.longrunning.Operation deleteModel( * */ public com.google.cloud.financialservices.v1.ListEngineConfigsResponse listEngineConfigs( - com.google.cloud.financialservices.v1.ListEngineConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ListEngineConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEngineConfigsMethod(), getCallOptions(), request); } @@ -3367,8 +3383,9 @@ public com.google.cloud.financialservices.v1.ListEngineConfigsResponse listEngin * */ public com.google.cloud.financialservices.v1.EngineConfig getEngineConfig( - com.google.cloud.financialservices.v1.GetEngineConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.GetEngineConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEngineConfigMethod(), getCallOptions(), request); } @@ -3380,8 +3397,9 @@ public com.google.cloud.financialservices.v1.EngineConfig getEngineConfig( * */ public com.google.longrunning.Operation createEngineConfig( - com.google.cloud.financialservices.v1.CreateEngineConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.CreateEngineConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEngineConfigMethod(), getCallOptions(), request); } @@ -3393,8 +3411,9 @@ public com.google.longrunning.Operation createEngineConfig( * */ public com.google.longrunning.Operation updateEngineConfig( - com.google.cloud.financialservices.v1.UpdateEngineConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.UpdateEngineConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEngineConfigMethod(), getCallOptions(), request); } @@ -3409,8 +3428,9 @@ public com.google.longrunning.Operation updateEngineConfig( * */ public com.google.longrunning.Operation exportEngineConfigMetadata( - com.google.cloud.financialservices.v1.ExportEngineConfigMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ExportEngineConfigMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportEngineConfigMetadataMethod(), getCallOptions(), request); } @@ -3422,8 +3442,9 @@ public com.google.longrunning.Operation exportEngineConfigMetadata( * */ public com.google.longrunning.Operation deleteEngineConfig( - com.google.cloud.financialservices.v1.DeleteEngineConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.DeleteEngineConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEngineConfigMethod(), getCallOptions(), request); } @@ -3435,8 +3456,9 @@ public com.google.longrunning.Operation deleteEngineConfig( * */ public com.google.cloud.financialservices.v1.EngineVersion getEngineVersion( - com.google.cloud.financialservices.v1.GetEngineVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.GetEngineVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEngineVersionMethod(), getCallOptions(), request); } @@ -3448,8 +3470,9 @@ public com.google.cloud.financialservices.v1.EngineVersion getEngineVersion( * */ public com.google.cloud.financialservices.v1.ListEngineVersionsResponse listEngineVersions( - com.google.cloud.financialservices.v1.ListEngineVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ListEngineVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEngineVersionsMethod(), getCallOptions(), request); } @@ -3462,8 +3485,9 @@ public com.google.cloud.financialservices.v1.ListEngineVersionsResponse listEngi */ public com.google.cloud.financialservices.v1.ListPredictionResultsResponse listPredictionResults( - com.google.cloud.financialservices.v1.ListPredictionResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ListPredictionResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPredictionResultsMethod(), getCallOptions(), request); } @@ -3475,8 +3499,9 @@ public com.google.cloud.financialservices.v1.ListEngineVersionsResponse listEngi * */ public com.google.cloud.financialservices.v1.PredictionResult getPredictionResult( - com.google.cloud.financialservices.v1.GetPredictionResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.GetPredictionResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPredictionResultMethod(), getCallOptions(), request); } @@ -3488,8 +3513,9 @@ public com.google.cloud.financialservices.v1.PredictionResult getPredictionResul * */ public com.google.longrunning.Operation createPredictionResult( - com.google.cloud.financialservices.v1.CreatePredictionResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.CreatePredictionResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePredictionResultMethod(), getCallOptions(), request); } @@ -3501,8 +3527,9 @@ public com.google.longrunning.Operation createPredictionResult( * */ public com.google.longrunning.Operation updatePredictionResult( - com.google.cloud.financialservices.v1.UpdatePredictionResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.UpdatePredictionResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePredictionResultMethod(), getCallOptions(), request); } @@ -3517,8 +3544,9 @@ public com.google.longrunning.Operation updatePredictionResult( * */ public com.google.longrunning.Operation exportPredictionResultMetadata( - com.google.cloud.financialservices.v1.ExportPredictionResultMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ExportPredictionResultMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportPredictionResultMetadataMethod(), getCallOptions(), request); } @@ -3530,8 +3558,9 @@ public com.google.longrunning.Operation exportPredictionResultMetadata( * */ public com.google.longrunning.Operation deletePredictionResult( - com.google.cloud.financialservices.v1.DeletePredictionResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.DeletePredictionResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePredictionResultMethod(), getCallOptions(), request); } @@ -3543,8 +3572,9 @@ public com.google.longrunning.Operation deletePredictionResult( * */ public com.google.cloud.financialservices.v1.ListBacktestResultsResponse listBacktestResults( - com.google.cloud.financialservices.v1.ListBacktestResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ListBacktestResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBacktestResultsMethod(), getCallOptions(), request); } @@ -3556,8 +3586,9 @@ public com.google.cloud.financialservices.v1.ListBacktestResultsResponse listBac * */ public com.google.cloud.financialservices.v1.BacktestResult getBacktestResult( - com.google.cloud.financialservices.v1.GetBacktestResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.GetBacktestResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBacktestResultMethod(), getCallOptions(), request); } @@ -3569,8 +3600,9 @@ public com.google.cloud.financialservices.v1.BacktestResult getBacktestResult( * */ public com.google.longrunning.Operation createBacktestResult( - com.google.cloud.financialservices.v1.CreateBacktestResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.CreateBacktestResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBacktestResultMethod(), getCallOptions(), request); } @@ -3582,8 +3614,9 @@ public com.google.longrunning.Operation createBacktestResult( * */ public com.google.longrunning.Operation updateBacktestResult( - com.google.cloud.financialservices.v1.UpdateBacktestResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.UpdateBacktestResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBacktestResultMethod(), getCallOptions(), request); } @@ -3598,8 +3631,9 @@ public com.google.longrunning.Operation updateBacktestResult( * */ public com.google.longrunning.Operation exportBacktestResultMetadata( - com.google.cloud.financialservices.v1.ExportBacktestResultMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.ExportBacktestResultMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportBacktestResultMetadataMethod(), getCallOptions(), request); } @@ -3611,8 +3645,9 @@ public com.google.longrunning.Operation exportBacktestResultMetadata( * */ public com.google.longrunning.Operation deleteBacktestResult( - com.google.cloud.financialservices.v1.DeleteBacktestResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.financialservices.v1.DeleteBacktestResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBacktestResultMethod(), getCallOptions(), request); } } diff --git a/java-functions/README.md b/java-functions/README.md index fbed818a3857..5bf054e81d18 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.79.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.79.0' +implementation 'com.google.cloud:google-cloud-functions:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java b/java-functions/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java index 12e71eeac9d7..70501b7bf234 100644 --- a/java-functions/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java +++ b/java-functions/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java @@ -24,9 +24,6 @@ * A service that application uses to manipulate triggers and functions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/functions/v1/functions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudFunctionsServiceGrpc { @@ -1065,8 +1062,8 @@ protected CloudFunctionsServiceBlockingV2Stub build( * */ public com.google.cloud.functions.v1.ListFunctionsResponse listFunctions( - com.google.cloud.functions.v1.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v1.ListFunctionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFunctionsMethod(), getCallOptions(), request); } @@ -1078,8 +1075,8 @@ public com.google.cloud.functions.v1.ListFunctionsResponse listFunctions( * */ public com.google.cloud.functions.v1.CloudFunction getFunction( - com.google.cloud.functions.v1.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v1.GetFunctionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFunctionMethod(), getCallOptions(), request); } @@ -1093,8 +1090,9 @@ public com.google.cloud.functions.v1.CloudFunction getFunction( * */ public com.google.longrunning.Operation createFunction( - com.google.cloud.functions.v1.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v1.CreateFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFunctionMethod(), getCallOptions(), request); } @@ -1106,8 +1104,9 @@ public com.google.longrunning.Operation createFunction( * */ public com.google.longrunning.Operation updateFunction( - com.google.cloud.functions.v1.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v1.UpdateFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); } @@ -1121,8 +1120,9 @@ public com.google.longrunning.Operation updateFunction( * */ public com.google.longrunning.Operation deleteFunction( - com.google.cloud.functions.v1.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v1.DeleteFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); } @@ -1137,8 +1137,8 @@ public com.google.longrunning.Operation deleteFunction( * */ public com.google.cloud.functions.v1.CallFunctionResponse callFunction( - com.google.cloud.functions.v1.CallFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v1.CallFunctionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCallFunctionMethod(), getCallOptions(), request); } @@ -1168,8 +1168,9 @@ public com.google.cloud.functions.v1.CallFunctionResponse callFunction( * */ public com.google.cloud.functions.v1.GenerateUploadUrlResponse generateUploadUrl( - com.google.cloud.functions.v1.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v1.GenerateUploadUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); } @@ -1185,8 +1186,9 @@ public com.google.cloud.functions.v1.GenerateUploadUrlResponse generateUploadUrl * */ public com.google.cloud.functions.v1.GenerateDownloadUrlResponse generateDownloadUrl( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); } @@ -1198,8 +1200,9 @@ public com.google.cloud.functions.v1.GenerateDownloadUrlResponse generateDownloa * Replaces any existing policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1212,8 +1215,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * set. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1228,8 +1232,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-functions/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java b/java-functions/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java index bd4e61b95692..0e71dc8cf02d 100644 --- a/java-functions/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java +++ b/java-functions/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java @@ -28,9 +28,6 @@ * executed and how it is triggered. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/functions/v2/functions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FunctionServiceGrpc { @@ -841,8 +838,8 @@ protected FunctionServiceBlockingV2Stub build( * */ public com.google.cloud.functions.v2.Function getFunction( - com.google.cloud.functions.v2.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2.GetFunctionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFunctionMethod(), getCallOptions(), request); } @@ -854,8 +851,8 @@ public com.google.cloud.functions.v2.Function getFunction( * */ public com.google.cloud.functions.v2.ListFunctionsResponse listFunctions( - com.google.cloud.functions.v2.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2.ListFunctionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFunctionsMethod(), getCallOptions(), request); } @@ -869,8 +866,9 @@ public com.google.cloud.functions.v2.ListFunctionsResponse listFunctions( * */ public com.google.longrunning.Operation createFunction( - com.google.cloud.functions.v2.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2.CreateFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFunctionMethod(), getCallOptions(), request); } @@ -882,8 +880,9 @@ public com.google.longrunning.Operation createFunction( * */ public com.google.longrunning.Operation updateFunction( - com.google.cloud.functions.v2.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2.UpdateFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); } @@ -897,8 +896,9 @@ public com.google.longrunning.Operation updateFunction( * */ public com.google.longrunning.Operation deleteFunction( - com.google.cloud.functions.v2.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2.DeleteFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); } @@ -926,8 +926,9 @@ public com.google.longrunning.Operation deleteFunction( * */ public com.google.cloud.functions.v2.GenerateUploadUrlResponse generateUploadUrl( - com.google.cloud.functions.v2.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2.GenerateUploadUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); } @@ -943,8 +944,9 @@ public com.google.cloud.functions.v2.GenerateUploadUrlResponse generateUploadUrl * */ public com.google.cloud.functions.v2.GenerateDownloadUrlResponse generateDownloadUrl( - com.google.cloud.functions.v2.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); } @@ -956,8 +958,8 @@ public com.google.cloud.functions.v2.GenerateDownloadUrlResponse generateDownloa * */ public com.google.cloud.functions.v2.ListRuntimesResponse listRuntimes( - com.google.cloud.functions.v2.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2.ListRuntimesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRuntimesMethod(), getCallOptions(), request); } } diff --git a/java-functions/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java b/java-functions/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java index be00da585d42..b4631f7612c0 100644 --- a/java-functions/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java +++ b/java-functions/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java @@ -28,9 +28,6 @@ * executed and how it is triggered. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/functions/v2alpha/functions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FunctionServiceGrpc { @@ -853,8 +850,9 @@ protected FunctionServiceBlockingV2Stub build( * */ public com.google.cloud.functions.v2alpha.Function getFunction( - com.google.cloud.functions.v2alpha.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2alpha.GetFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFunctionMethod(), getCallOptions(), request); } @@ -866,8 +864,9 @@ public com.google.cloud.functions.v2alpha.Function getFunction( * */ public com.google.cloud.functions.v2alpha.ListFunctionsResponse listFunctions( - com.google.cloud.functions.v2alpha.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2alpha.ListFunctionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFunctionsMethod(), getCallOptions(), request); } @@ -881,8 +880,9 @@ public com.google.cloud.functions.v2alpha.ListFunctionsResponse listFunctions( * */ public com.google.longrunning.Operation createFunction( - com.google.cloud.functions.v2alpha.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2alpha.CreateFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFunctionMethod(), getCallOptions(), request); } @@ -894,8 +894,9 @@ public com.google.longrunning.Operation createFunction( * */ public com.google.longrunning.Operation updateFunction( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); } @@ -909,8 +910,9 @@ public com.google.longrunning.Operation updateFunction( * */ public com.google.longrunning.Operation deleteFunction( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); } @@ -938,8 +940,9 @@ public com.google.longrunning.Operation deleteFunction( * */ public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse generateUploadUrl( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); } @@ -955,8 +958,9 @@ public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse generateUplo * */ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse generateDownloadUrl( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); } @@ -968,8 +972,9 @@ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse generateDo * */ public com.google.cloud.functions.v2alpha.ListRuntimesResponse listRuntimes( - com.google.cloud.functions.v2alpha.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2alpha.ListRuntimesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRuntimesMethod(), getCallOptions(), request); } } diff --git a/java-functions/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java b/java-functions/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java index 21cebc2133c3..f3ade3e8e60e 100644 --- a/java-functions/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java +++ b/java-functions/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java @@ -28,9 +28,6 @@ * executed and how it is triggered. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/functions/v2beta/functions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FunctionServiceGrpc { @@ -847,8 +844,9 @@ protected FunctionServiceBlockingV2Stub build( * */ public com.google.cloud.functions.v2beta.Function getFunction( - com.google.cloud.functions.v2beta.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2beta.GetFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFunctionMethod(), getCallOptions(), request); } @@ -860,8 +858,9 @@ public com.google.cloud.functions.v2beta.Function getFunction( * */ public com.google.cloud.functions.v2beta.ListFunctionsResponse listFunctions( - com.google.cloud.functions.v2beta.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2beta.ListFunctionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFunctionsMethod(), getCallOptions(), request); } @@ -875,8 +874,9 @@ public com.google.cloud.functions.v2beta.ListFunctionsResponse listFunctions( * */ public com.google.longrunning.Operation createFunction( - com.google.cloud.functions.v2beta.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2beta.CreateFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFunctionMethod(), getCallOptions(), request); } @@ -888,8 +888,9 @@ public com.google.longrunning.Operation createFunction( * */ public com.google.longrunning.Operation updateFunction( - com.google.cloud.functions.v2beta.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2beta.UpdateFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); } @@ -903,8 +904,9 @@ public com.google.longrunning.Operation updateFunction( * */ public com.google.longrunning.Operation deleteFunction( - com.google.cloud.functions.v2beta.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2beta.DeleteFunctionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); } @@ -932,8 +934,9 @@ public com.google.longrunning.Operation deleteFunction( * */ public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse generateUploadUrl( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); } @@ -949,8 +952,9 @@ public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse generateUploa * */ public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse generateDownloadUrl( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); } @@ -962,8 +966,9 @@ public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse generateDow * */ public com.google.cloud.functions.v2beta.ListRuntimesResponse listRuntimes( - com.google.cloud.functions.v2beta.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.functions.v2beta.ListRuntimesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRuntimesMethod(), getCallOptions(), request); } } diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index 30ad2e20e1ec..d79a2e8e7832 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.32.0 + 0.33.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.32.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.33.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java index 81ef4a2fe29a..6f85672f8475 100644 --- a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java +++ b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java @@ -24,9 +24,6 @@ * The GDC Hardware Management service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gdchardwaremanagement/v1alpha/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GDCHardwareManagementGrpc { @@ -3039,8 +3036,9 @@ protected GDCHardwareManagementBlockingV2Stub build( * */ public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse listOrders( - com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrdersMethod(), getCallOptions(), request); } @@ -3052,8 +3050,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse listOrd * */ public com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrder( - com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrderMethod(), getCallOptions(), request); } @@ -3065,8 +3064,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrder( * */ public com.google.longrunning.Operation createOrder( - com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOrderMethod(), getCallOptions(), request); } @@ -3078,8 +3078,9 @@ public com.google.longrunning.Operation createOrder( * */ public com.google.longrunning.Operation updateOrder( - com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOrderMethod(), getCallOptions(), request); } @@ -3091,8 +3092,9 @@ public com.google.longrunning.Operation updateOrder( * */ public com.google.longrunning.Operation deleteOrder( - com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOrderMethod(), getCallOptions(), request); } @@ -3104,8 +3106,9 @@ public com.google.longrunning.Operation deleteOrder( * */ public com.google.longrunning.Operation submitOrder( - com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitOrderMethod(), getCallOptions(), request); } @@ -3117,8 +3120,9 @@ public com.google.longrunning.Operation submitOrder( * */ public com.google.longrunning.Operation cancelOrder( - com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelOrderMethod(), getCallOptions(), request); } @@ -3130,8 +3134,9 @@ public com.google.longrunning.Operation cancelOrder( * */ public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse listSites( - com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSitesMethod(), getCallOptions(), request); } @@ -3143,8 +3148,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse listSite * */ public com.google.cloud.gdchardwaremanagement.v1alpha.Site getSite( - com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSiteMethod(), getCallOptions(), request); } @@ -3156,8 +3162,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Site getSite( * */ public com.google.longrunning.Operation createSite( - com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSiteMethod(), getCallOptions(), request); } @@ -3169,8 +3176,9 @@ public com.google.longrunning.Operation createSite( * */ public com.google.longrunning.Operation updateSite( - com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSiteMethod(), getCallOptions(), request); } @@ -3182,8 +3190,9 @@ public com.google.longrunning.Operation updateSite( * */ public com.google.longrunning.Operation deleteSite( - com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteSiteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSiteMethod(), getCallOptions(), request); } @@ -3196,8 +3205,9 @@ public com.google.longrunning.Operation deleteSite( */ public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse listHardwareGroups( - com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHardwareGroupsMethod(), getCallOptions(), request); } @@ -3209,8 +3219,9 @@ public com.google.longrunning.Operation deleteSite( * */ public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroup( - com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHardwareGroupMethod(), getCallOptions(), request); } @@ -3222,8 +3233,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareG * */ public com.google.longrunning.Operation createHardwareGroup( - com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateHardwareGroupMethod(), getCallOptions(), request); } @@ -3235,8 +3247,9 @@ public com.google.longrunning.Operation createHardwareGroup( * */ public com.google.longrunning.Operation updateHardwareGroup( - com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHardwareGroupMethod(), getCallOptions(), request); } @@ -3248,8 +3261,9 @@ public com.google.longrunning.Operation updateHardwareGroup( * */ public com.google.longrunning.Operation deleteHardwareGroup( - com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteHardwareGroupMethod(), getCallOptions(), request); } @@ -3261,8 +3275,9 @@ public com.google.longrunning.Operation deleteHardwareGroup( * */ public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse listHardware( - com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHardwareMethod(), getCallOptions(), request); } @@ -3274,8 +3289,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse listH * */ public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware( - com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHardwareMethod(), getCallOptions(), request); } @@ -3287,8 +3303,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware( * */ public com.google.longrunning.Operation createHardware( - com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateHardwareMethod(), getCallOptions(), request); } @@ -3300,8 +3317,9 @@ public com.google.longrunning.Operation createHardware( * */ public com.google.longrunning.Operation updateHardware( - com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHardwareMethod(), getCallOptions(), request); } @@ -3313,8 +3331,9 @@ public com.google.longrunning.Operation updateHardware( * */ public com.google.longrunning.Operation deleteHardware( - com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteHardwareMethod(), getCallOptions(), request); } @@ -3326,8 +3345,9 @@ public com.google.longrunning.Operation deleteHardware( * */ public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse listComments( - com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCommentsMethod(), getCallOptions(), request); } @@ -3339,8 +3359,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse listC * */ public com.google.cloud.gdchardwaremanagement.v1alpha.Comment getComment( - com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCommentMethod(), getCallOptions(), request); } @@ -3352,8 +3373,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Comment getComment( * */ public com.google.longrunning.Operation createComment( - com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCommentMethod(), getCallOptions(), request); } @@ -3368,8 +3390,9 @@ public com.google.longrunning.Operation createComment( * */ public com.google.cloud.gdchardwaremanagement.v1alpha.Comment recordActionOnComment( - com.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecordActionOnCommentMethod(), getCallOptions(), request); } @@ -3382,8 +3405,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Comment recordActionOnComm */ public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse listChangeLogEntries( - com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChangeLogEntriesMethod(), getCallOptions(), request); } @@ -3395,8 +3419,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Comment recordActionOnComm * */ public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry getChangeLogEntry( - com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChangeLogEntryMethod(), getCallOptions(), request); } @@ -3408,8 +3433,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry getChangeLo * */ public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse listSkus( - com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSkusMethod(), getCallOptions(), request); } @@ -3421,8 +3447,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse listSkus( * */ public com.google.cloud.gdchardwaremanagement.v1alpha.Sku getSku( - com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSkuMethod(), getCallOptions(), request); } @@ -3434,8 +3461,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Sku getSku( * */ public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse listZones( - com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListZonesMethod(), getCallOptions(), request); } @@ -3447,8 +3475,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse listZone * */ public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZone( - com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetZoneMethod(), getCallOptions(), request); } @@ -3460,8 +3489,9 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZone( * */ public com.google.longrunning.Operation createZone( - com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateZoneMethod(), getCallOptions(), request); } @@ -3473,8 +3503,9 @@ public com.google.longrunning.Operation createZone( * */ public com.google.longrunning.Operation updateZone( - com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateZoneMethod(), getCallOptions(), request); } @@ -3486,8 +3517,9 @@ public com.google.longrunning.Operation updateZone( * */ public com.google.longrunning.Operation deleteZone( - com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteZoneMethod(), getCallOptions(), request); } @@ -3499,8 +3531,9 @@ public com.google.longrunning.Operation deleteZone( * */ public com.google.longrunning.Operation signalZoneState( - com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSignalZoneStateMethod(), getCallOptions(), request); } @@ -3512,8 +3545,9 @@ public com.google.longrunning.Operation signalZoneState( * */ public com.google.longrunning.Operation requestOrderDateChange( - com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRequestOrderDateChangeMethod(), getCallOptions(), request); } } diff --git a/java-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index 7a259569f0d9..99c013dbd4ff 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.5.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.5.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.6.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java index 5ec7acdec4ee..9440f12124cb 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java @@ -33,6 +33,7 @@ import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -103,6 +104,25 @@ * * * + *

                                          DeleteConversation + *

                                          Deletes a conversation. + * + *

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

                                          + *
                                            + *
                                          • deleteConversation(DeleteConversationRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • deleteConversation(ConversationName name) + *

                                          • deleteConversation(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.

                                          + *
                                            + *
                                          • deleteConversationCallable() + *

                                          + * + * + * *

                                          GetConversation *

                                          Gets details of a single conversation by using conversation id and parent. * @@ -476,6 +496,120 @@ public final UnaryCallable createConver return stub.createConversationCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a conversation. + * + *

                                          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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
                                          +   *   ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
                                          +   *   dataChatServiceClient.deleteConversation(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversation(ConversationName name) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a conversation. + * + *

                                          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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
                                          +   *   String name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
                                          +   *   dataChatServiceClient.deleteConversation(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/conversations/{conversation}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversation(String name) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder().setName(name).build(); + deleteConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a conversation. + * + *

                                          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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
                                          +   *   DeleteConversationRequest request =
                                          +   *       DeleteConversationRequest.newBuilder()
                                          +   *           .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
                                          +   *           .build();
                                          +   *   dataChatServiceClient.deleteConversation(request);
                                          +   * }
                                          +   * }
                                          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversation(DeleteConversationRequest request) { + deleteConversationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a conversation. + * + *

                                          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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
                                          +   *   DeleteConversationRequest request =
                                          +   *       DeleteConversationRequest.newBuilder()
                                          +   *           .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       dataChatServiceClient.deleteConversationCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable deleteConversationCallable() { + return stub.deleteConversationCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets details of a single conversation by using conversation id and parent. diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java index 71a691e2f611..40b2a593cec8 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java @@ -38,6 +38,7 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -107,6 +108,11 @@ public UnaryCallSettings createConversa return ((DataChatServiceStubSettings) getStubSettings()).createConversationSettings(); } + /** Returns the object with the settings used for calls to deleteConversation. */ + public UnaryCallSettings deleteConversationSettings() { + return ((DataChatServiceStubSettings) getStubSettings()).deleteConversationSettings(); + } + /** Returns the object with the settings used for calls to getConversation. */ public UnaryCallSettings getConversationSettings() { return ((DataChatServiceStubSettings) getStubSettings()).getConversationSettings(); @@ -259,6 +265,12 @@ public ServerStreamingCallSettings.Builder chatSettings() return getStubSettingsBuilder().createConversationSettings(); } + /** Returns the builder for the settings used for calls to deleteConversation. */ + public UnaryCallSettings.Builder + deleteConversationSettings() { + return getStubSettingsBuilder().deleteConversationSettings(); + } + /** Returns the builder for the settings used for calls to getConversation. */ public UnaryCallSettings.Builder getConversationSettings() { diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json index 29d5a436a2a5..2319e37cfc04 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json @@ -55,6 +55,9 @@ "CreateConversation": { "methods": ["createConversation", "createConversation", "createConversation", "createConversationCallable"] }, + "DeleteConversation": { + "methods": ["deleteConversation", "deleteConversation", "deleteConversation", "deleteConversationCallable"] + }, "GetConversation": { "methods": ["getConversation", "getConversation", "getConversation", "getConversationCallable"] }, diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java index 791928ec6a55..e7ce32eb4980 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java @@ -612,10 +612,10 @@ public static class Builder extends StubSettings.Builder createConversation throw new UnsupportedOperationException("Not implemented: createConversationCallable()"); } + public UnaryCallable deleteConversationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteConversationCallable()"); + } + public UnaryCallable getConversationCallable() { throw new UnsupportedOperationException("Not implemented: getConversationCallable()"); } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java index 42e6b2d7ecd6..b7984d5f4bbb 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java @@ -50,6 +50,7 @@ import com.google.cloud.geminidataanalytics.v1beta.ChatRequest; import com.google.cloud.geminidataanalytics.v1beta.Conversation; import com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest; +import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; import com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest; import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; import com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse; @@ -65,6 +66,7 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.protobuf.Empty; import java.io.IOException; import java.time.Duration; import java.util.List; @@ -131,6 +133,7 @@ public class DataChatServiceStubSettings extends StubSettings chatSettings; private final UnaryCallSettings createConversationSettings; + private final UnaryCallSettings deleteConversationSettings; private final UnaryCallSettings getConversationSettings; private final PagedCallSettings< ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> @@ -315,6 +318,11 @@ public UnaryCallSettings createConversa return createConversationSettings; } + /** Returns the object with the settings used for calls to deleteConversation. */ + public UnaryCallSettings deleteConversationSettings() { + return deleteConversationSettings; + } + /** Returns the object with the settings used for calls to getConversation. */ public UnaryCallSettings getConversationSettings() { return getConversationSettings; @@ -457,6 +465,7 @@ protected DataChatServiceStubSettings(Builder settingsBuilder) throws IOExceptio chatSettings = settingsBuilder.chatSettings().build(); createConversationSettings = settingsBuilder.createConversationSettings().build(); + deleteConversationSettings = settingsBuilder.deleteConversationSettings().build(); getConversationSettings = settingsBuilder.getConversationSettings().build(); listConversationsSettings = settingsBuilder.listConversationsSettings().build(); listMessagesSettings = settingsBuilder.listMessagesSettings().build(); @@ -470,6 +479,8 @@ public static class Builder extends StubSettings.Builder chatSettings; private final UnaryCallSettings.Builder createConversationSettings; + private final UnaryCallSettings.Builder + deleteConversationSettings; private final UnaryCallSettings.Builder getConversationSettings; private final PagedCallSettings.Builder< @@ -504,10 +515,10 @@ public static class Builder extends StubSettings.Builder>of( createConversationSettings, + deleteConversationSettings, getConversationSettings, listConversationsSettings, listMessagesSettings, @@ -544,6 +557,7 @@ protected Builder(DataChatServiceStubSettings settings) { chatSettings = settings.chatSettings.toBuilder(); createConversationSettings = settings.createConversationSettings.toBuilder(); + deleteConversationSettings = settings.deleteConversationSettings.toBuilder(); getConversationSettings = settings.getConversationSettings.toBuilder(); listConversationsSettings = settings.listConversationsSettings.toBuilder(); listMessagesSettings = settings.listMessagesSettings.toBuilder(); @@ -553,6 +567,7 @@ protected Builder(DataChatServiceStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( createConversationSettings, + deleteConversationSettings, getConversationSettings, listConversationsSettings, listMessagesSettings, @@ -595,6 +610,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .deleteConversationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getConversationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -649,6 +669,12 @@ public ServerStreamingCallSettings.Builder chatSettings() return createConversationSettings; } + /** Returns the builder for the settings used for calls to deleteConversation. */ + public UnaryCallSettings.Builder + deleteConversationSettings() { + return deleteConversationSettings; + } + /** Returns the builder for the settings used for calls to getConversation. */ public UnaryCallSettings.Builder getConversationSettings() { diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java index 21159e8122e4..8c5e2c391b60 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java @@ -32,6 +32,7 @@ import com.google.cloud.geminidataanalytics.v1beta.ChatRequest; import com.google.cloud.geminidataanalytics.v1beta.Conversation; import com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest; +import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; import com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest; import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; import com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse; @@ -43,6 +44,7 @@ import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; @@ -79,6 +81,18 @@ public class GrpcDataChatServiceStub extends DataChatServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + deleteConversationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.geminidataanalytics.v1beta.DataChatService/DeleteConversation") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConversationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getConversationMethodDescriptor = MethodDescriptor.newBuilder() @@ -139,6 +153,7 @@ public class GrpcDataChatServiceStub extends DataChatServiceStub { private final ServerStreamingCallable chatCallable; private final UnaryCallable createConversationCallable; + private final UnaryCallable deleteConversationCallable; private final UnaryCallable getConversationCallable; private final UnaryCallable listConversationsCallable; @@ -216,6 +231,16 @@ protected GrpcDataChatServiceStub( return builder.build(); }) .build(); + GrpcCallSettings deleteConversationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConversationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings getConversationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getConversationMethodDescriptor) @@ -276,6 +301,11 @@ protected GrpcDataChatServiceStub( createConversationTransportSettings, settings.createConversationSettings(), clientContext); + this.deleteConversationCallable = + callableFactory.createUnaryCallable( + deleteConversationTransportSettings, + settings.deleteConversationSettings(), + clientContext); this.getConversationCallable = callableFactory.createUnaryCallable( getConversationTransportSettings, settings.getConversationSettings(), clientContext); @@ -323,6 +353,11 @@ public UnaryCallable createConversation return createConversationCallable; } + @Override + public UnaryCallable deleteConversationCallable() { + return deleteConversationCallable; + } + @Override public UnaryCallable getConversationCallable() { return getConversationCallable; diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java index 23ad0c280768..4f5d1a39b091 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java @@ -37,6 +37,7 @@ import com.google.cloud.geminidataanalytics.v1beta.ChatRequest; import com.google.cloud.geminidataanalytics.v1beta.Conversation; import com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest; +import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; import com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest; import com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest; import com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse; @@ -47,6 +48,7 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -142,6 +144,41 @@ public class HttpJsonDataChatServiceStub extends DataChatServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + deleteConversationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.geminidataanalytics.v1beta.DataChatService/DeleteConversation") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/conversations/*}", + 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(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getConversationMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -323,6 +360,7 @@ public class HttpJsonDataChatServiceStub extends DataChatServiceStub { private final ServerStreamingCallable chatCallable; private final UnaryCallable createConversationCallable; + private final UnaryCallable deleteConversationCallable; private final UnaryCallable getConversationCallable; private final UnaryCallable listConversationsCallable; @@ -401,6 +439,17 @@ protected HttpJsonDataChatServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings deleteConversationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteConversationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getConversationTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getConversationMethodDescriptor) @@ -467,6 +516,11 @@ protected HttpJsonDataChatServiceStub( createConversationTransportSettings, settings.createConversationSettings(), clientContext); + this.deleteConversationCallable = + callableFactory.createUnaryCallable( + deleteConversationTransportSettings, + settings.deleteConversationSettings(), + clientContext); this.getConversationCallable = callableFactory.createUnaryCallable( getConversationTransportSettings, settings.getConversationSettings(), clientContext); @@ -505,6 +559,7 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(chatMethodDescriptor); methodDescriptors.add(createConversationMethodDescriptor); + methodDescriptors.add(deleteConversationMethodDescriptor); methodDescriptors.add(getConversationMethodDescriptor); methodDescriptors.add(listConversationsMethodDescriptor); methodDescriptors.add(listMessagesMethodDescriptor); @@ -523,6 +578,11 @@ public UnaryCallable createConversation return createConversationCallable; } + @Override + public UnaryCallable deleteConversationCallable() { + return deleteConversationCallable; + } + @Override public UnaryCallable getConversationCallable() { return getConversationCallable; diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json index 9c0b84358931..eeec2b14cb7a 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json @@ -764,6 +764,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.Context", "queryAllDeclaredConstructors": true, @@ -782,6 +800,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship$SchemaPaths", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship$SchemaPaths$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.Context$SchemaRelationship$Source", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.Conversation", "queryAllDeclaredConstructors": true, @@ -1052,6 +1115,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences", "queryAllDeclaredConstructors": true, @@ -1070,6 +1151,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest", "queryAllDeclaredConstructors": true, @@ -1106,6 +1205,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExampleQueries", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExampleQueries$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.ExampleQuery", "queryAllDeclaredConstructors": true, @@ -1178,6 +1295,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest", "queryAllDeclaredConstructors": true, @@ -1673,6 +1808,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.TextMessage$TextType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest", "queryAllDeclaredConstructors": true, @@ -2186,6 +2330,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.BoolValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BoolValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BytesValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BytesValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, @@ -2915,6 +3095,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DoubleValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DoubleValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Duration", "queryAllDeclaredConstructors": true, @@ -2969,6 +3167,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.FloatValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FloatValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int32Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int32Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int64Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int64Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.ListValue", "queryAllDeclaredConstructors": true, @@ -2996,6 +3248,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.StringValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.StringValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Struct", "queryAllDeclaredConstructors": true, @@ -3032,6 +3302,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.UInt32Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt32Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt64Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt64Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Value", "queryAllDeclaredConstructors": true, diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java index 89211e7b7971..b91a7322cdf2 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java @@ -36,6 +36,7 @@ import com.google.cloud.location.Location; import com.google.common.collect.Lists; import com.google.protobuf.Any; +import com.google.protobuf.Empty; import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; @@ -200,6 +201,86 @@ public void createConversationExceptionTest2() throws Exception { } } + @Test + public void deleteConversationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); + + client.deleteConversation(name); + + 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 deleteConversationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3338/locations/location-3338/conversations/conversation-3338"; + + client.deleteConversation(name); + + 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 deleteConversationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3338/locations/location-3338/conversations/conversation-3338"; + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getConversationTest() throws Exception { Conversation expectedResponse = diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java index a8dc0bc540c5..78f0b8a9ae9e 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java @@ -37,6 +37,7 @@ import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Empty; import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; @@ -242,6 +243,74 @@ public void createConversationExceptionTest2() throws Exception { } } + @Test + public void deleteConversationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataChatService.addResponse(expectedResponse); + + ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); + + client.deleteConversation(name); + + List actualRequests = mockDataChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversationRequest actualRequest = ((DeleteConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataChatService.addException(exception); + + try { + ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataChatService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteConversation(name); + + List actualRequests = mockDataChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversationRequest actualRequest = ((DeleteConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataChatService.addException(exception); + + try { + String name = "name3373707"; + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getConversationTest() throws Exception { Conversation expectedResponse = diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java index 9715594d800b..e4b1d3de53cb 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java @@ -19,6 +19,7 @@ import com.google.api.core.BetaApi; import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceGrpc.DataChatServiceImplBase; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; @@ -99,6 +100,27 @@ public void createConversation( } } + @Override + public void deleteConversation( + DeleteConversationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteConversation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getConversation( GetConversationRequest request, StreamObserver responseObserver) { diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceGrpc.java b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceGrpc.java index 03db14a4040a..fa4f794e43a5 100644 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceGrpc.java +++ b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/geminidataanalytics/v1beta/data_agent_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataAgentServiceGrpc { @@ -779,8 +776,9 @@ protected DataAgentServiceBlockingV2Stub build( * */ public com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse listDataAgents( - com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataAgentsMethod(), getCallOptions(), request); } @@ -794,8 +792,9 @@ public com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse listDa */ public com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse listAccessibleDataAgents( - com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccessibleDataAgentsMethod(), getCallOptions(), request); } @@ -807,8 +806,9 @@ public com.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse listDa * */ public com.google.cloud.geminidataanalytics.v1beta.DataAgent getDataAgent( - com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataAgentMethod(), getCallOptions(), request); } @@ -820,8 +820,9 @@ public com.google.cloud.geminidataanalytics.v1beta.DataAgent getDataAgent( * */ public com.google.longrunning.Operation createDataAgent( - com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataAgentMethod(), getCallOptions(), request); } @@ -833,8 +834,9 @@ public com.google.longrunning.Operation createDataAgent( * */ public com.google.longrunning.Operation updateDataAgent( - com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataAgentMethod(), getCallOptions(), request); } @@ -846,8 +848,9 @@ public com.google.longrunning.Operation updateDataAgent( * */ public com.google.longrunning.Operation deleteDataAgent( - com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataAgentMethod(), getCallOptions(), request); } @@ -858,8 +861,9 @@ public com.google.longrunning.Operation deleteDataAgent( * Gets the IAM policy for DataAgent * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -870,8 +874,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM policy for a DataAgent. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } } diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java index 79fadacd3709..100f97ba51da 100644 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java +++ b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java @@ -26,9 +26,6 @@ * to help provide a rich conversational answer. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataChatServiceGrpc { @@ -132,6 +129,53 @@ private DataChatServiceGrpc() {} return getCreateConversationMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest, + com.google.protobuf.Empty> + getDeleteConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversation", + requestType = com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest, + com.google.protobuf.Empty> + getDeleteConversationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest, + com.google.protobuf.Empty> + getDeleteConversationMethod; + if ((getDeleteConversationMethod = DataChatServiceGrpc.getDeleteConversationMethod) == null) { + synchronized (DataChatServiceGrpc.class) { + if ((getDeleteConversationMethod = DataChatServiceGrpc.getDeleteConversationMethod) + == null) { + DataChatServiceGrpc.getDeleteConversationMethod = + getDeleteConversationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataChatServiceMethodDescriptorSupplier("DeleteConversation")) + .build(); + } + } + } + return getDeleteConversationMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest, com.google.cloud.geminidataanalytics.v1beta.Conversation> @@ -369,6 +413,20 @@ default void createConversation( getCreateConversationMethod(), responseObserver); } + /** + * + * + *
                                          +     * Deletes a conversation.
                                          +     * 
                                          + */ + default void deleteConversation( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConversationMethod(), responseObserver); + } + /** * * @@ -489,6 +547,22 @@ public void createConversation( responseObserver); } + /** + * + * + *
                                          +     * Deletes a conversation.
                                          +     * 
                                          + */ + public void deleteConversation( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -589,11 +663,26 @@ protected DataChatServiceBlockingV2Stub build( * */ public com.google.cloud.geminidataanalytics.v1beta.Conversation createConversation( - com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } + /** + * + * + *
                                          +     * Deletes a conversation.
                                          +     * 
                                          + */ + public com.google.protobuf.Empty deleteConversation( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteConversationMethod(), getCallOptions(), request); + } + /** * * @@ -602,8 +691,9 @@ public com.google.cloud.geminidataanalytics.v1beta.Conversation createConversati * */ public com.google.cloud.geminidataanalytics.v1beta.Conversation getConversation( - com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversationMethod(), getCallOptions(), request); } @@ -615,8 +705,9 @@ public com.google.cloud.geminidataanalytics.v1beta.Conversation getConversation( * */ public com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse listConversations( - com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } @@ -628,8 +719,9 @@ public com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse lis * */ public com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse listMessages( - com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMessagesMethod(), getCallOptions(), request); } } @@ -683,6 +775,19 @@ public com.google.cloud.geminidataanalytics.v1beta.Conversation createConversati getChannel(), getCreateConversationMethod(), getCallOptions(), request); } + /** + * + * + *
                                          +     * Deletes a conversation.
                                          +     * 
                                          + */ + public com.google.protobuf.Empty deleteConversation( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversationMethod(), getCallOptions(), request); + } + /** * * @@ -760,6 +865,20 @@ protected DataChatServiceFutureStub build( getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); } + /** + * + * + *
                                          +     * Deletes a conversation.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteConversation( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request); + } + /** * * @@ -807,9 +926,10 @@ protected DataChatServiceFutureStub build( private static final int METHODID_CHAT = 0; private static final int METHODID_CREATE_CONVERSATION = 1; - private static final int METHODID_GET_CONVERSATION = 2; - private static final int METHODID_LIST_CONVERSATIONS = 3; - private static final int METHODID_LIST_MESSAGES = 4; + private static final int METHODID_DELETE_CONVERSATION = 2; + private static final int METHODID_GET_CONVERSATION = 3; + private static final int METHODID_LIST_CONVERSATIONS = 4; + private static final int METHODID_LIST_MESSAGES = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -841,6 +961,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.geminidataanalytics.v1beta.Conversation>) responseObserver); break; + case METHODID_DELETE_CONVERSATION: + serviceImpl.deleteConversation( + (com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_CONVERSATION: serviceImpl.getConversation( (com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest) request, @@ -893,6 +1018,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest, com.google.cloud.geminidataanalytics.v1beta.Conversation>( service, METHODID_CREATE_CONVERSATION))) + .addMethod( + getDeleteConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_CONVERSATION))) .addMethod( getGetConversationMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -967,6 +1098,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new DataChatServiceFileDescriptorSupplier()) .addMethod(getChatMethod()) .addMethod(getCreateConversationMethod()) + .addMethod(getDeleteConversationMethod()) .addMethod(getGetConversationMethod()) .addMethod(getListConversationsMethod()) .addMethod(getListMessagesMethod()) diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java index 03e3cf599b26..71955464c5f0 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java @@ -78,6 +78,7 @@ public enum ContextProviderCase INLINE_CONTEXT(101), CONVERSATION_REFERENCE(103), DATA_AGENT_CONTEXT(104), + CLIENT_MANAGED_RESOURCE_CONTEXT(105), CONTEXTPROVIDER_NOT_SET(0); private final int value; @@ -103,6 +104,8 @@ public static ContextProviderCase forNumber(int value) { return CONVERSATION_REFERENCE; case 104: return DATA_AGENT_CONTEXT; + case 105: + return CLIENT_MANAGED_RESOURCE_CONTEXT; case 0: return CONTEXTPROVIDER_NOT_SET; default: @@ -314,6 +317,81 @@ public com.google.cloud.geminidataanalytics.v1beta.DataAgentContext getDataAgent return com.google.cloud.geminidataanalytics.v1beta.DataAgentContext.getDefaultInstance(); } + public static final int CLIENT_MANAGED_RESOURCE_CONTEXT_FIELD_NUMBER = 105; + + /** + * + * + *
                                          +   * Optional. Context with client managed resources.
                                          +   * Some clients may not use GDA managed resources including
                                          +   * conversations and agents, instead they create and manage their own
                                          +   * conversations and agents resources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientManagedResourceContext field is set. + */ + @java.lang.Override + public boolean hasClientManagedResourceContext() { + return contextProviderCase_ == 105; + } + + /** + * + * + *
                                          +   * Optional. Context with client managed resources.
                                          +   * Some clients may not use GDA managed resources including
                                          +   * conversations and agents, instead they create and manage their own
                                          +   * conversations and agents resources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientManagedResourceContext. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + getClientManagedResourceContext() { + if (contextProviderCase_ == 105) { + return (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + contextProvider_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + .getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Optional. Context with client managed resources.
                                          +   * Some clients may not use GDA managed resources including
                                          +   * conversations and agents, instead they create and manage their own
                                          +   * conversations and agents resources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextOrBuilder + getClientManagedResourceContextOrBuilder() { + if (contextProviderCase_ == 105) { + return (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + contextProvider_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + .getDefaultInstance(); + } + public static final int PROJECT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -331,7 +409,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataAgentContext getDataAgent * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 * @return The project. */ @java.lang.Override @@ -360,7 +438,7 @@ public java.lang.String getProject() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 * @return The bytes for project. */ @java.lang.Override @@ -555,6 +633,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 104, (com.google.cloud.geminidataanalytics.v1beta.DataAgentContext) contextProvider_); } + if (contextProviderCase_ == 105) { + output.writeMessage( + 105, + (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + contextProvider_); + } getUnknownFields().writeTo(output); } @@ -589,6 +673,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 104, (com.google.cloud.geminidataanalytics.v1beta.DataAgentContext) contextProvider_); } + if (contextProviderCase_ == 105) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 105, + (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + contextProvider_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -619,6 +710,10 @@ public boolean equals(final java.lang.Object obj) { case 104: if (!getDataAgentContext().equals(other.getDataAgentContext())) return false; break; + case 105: + if (!getClientManagedResourceContext().equals(other.getClientManagedResourceContext())) + return false; + break; case 0: default: } @@ -654,6 +749,10 @@ public int hashCode() { hash = (37 * hash) + DATA_AGENT_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getDataAgentContext().hashCode(); break; + case 105: + hash = (37 * hash) + CLIENT_MANAGED_RESOURCE_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getClientManagedResourceContext().hashCode(); + break; case 0: default: } @@ -807,6 +906,9 @@ public Builder clear() { if (dataAgentContextBuilder_ != null) { dataAgentContextBuilder_.clear(); } + if (clientManagedResourceContextBuilder_ != null) { + clientManagedResourceContextBuilder_.clear(); + } project_ = ""; parent_ = ""; if (messagesBuilder_ == null) { @@ -815,7 +917,7 @@ public Builder clear() { messages_ = null; messagesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); contextProviderCase_ = 0; contextProvider_ = null; return this; @@ -857,9 +959,9 @@ public com.google.cloud.geminidataanalytics.v1beta.ChatRequest buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.geminidataanalytics.v1beta.ChatRequest result) { if (messagesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); } result.messages_ = messages_; } else { @@ -869,10 +971,10 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.ChatRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.project_ = project_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.parent_ = parent_; } } @@ -890,6 +992,9 @@ private void buildPartialOneofs( if (contextProviderCase_ == 104 && dataAgentContextBuilder_ != null) { result.contextProvider_ = dataAgentContextBuilder_.build(); } + if (contextProviderCase_ == 105 && clientManagedResourceContextBuilder_ != null) { + result.contextProvider_ = clientManagedResourceContextBuilder_.build(); + } } @java.lang.Override @@ -940,19 +1045,19 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.ChatRequest return this; if (!other.getProject().isEmpty()) { project_ = other.project_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getParent().isEmpty()) { parent_ = other.parent_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (messagesBuilder_ == null) { if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); @@ -965,7 +1070,7 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.ChatRequest messagesBuilder_.dispose(); messagesBuilder_ = null; messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); messagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessagesFieldBuilder() @@ -991,6 +1096,11 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.ChatRequest mergeDataAgentContext(other.getDataAgentContext()); break; } + case CLIENT_MANAGED_RESOURCE_CONTEXT: + { + mergeClientManagedResourceContext(other.getClientManagedResourceContext()); + break; + } case CONTEXTPROVIDER_NOT_SET: { break; @@ -1025,7 +1135,7 @@ public Builder mergeFrom( case 10: { project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 10 case 18: @@ -1045,7 +1155,7 @@ public Builder mergeFrom( case 26: { parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 810: @@ -1068,6 +1178,13 @@ public Builder mergeFrom( contextProviderCase_ = 104; break; } // case 834 + case 842: + { + input.readMessage( + getClientManagedResourceContextFieldBuilder().getBuilder(), extensionRegistry); + contextProviderCase_ = 105; + break; + } // case 842 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1872,6 +1989,286 @@ public Builder clearDataAgentContext() { return dataAgentContextBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext, + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextOrBuilder> + clientManagedResourceContextBuilder_; + + /** + * + * + *
                                          +     * Optional. Context with client managed resources.
                                          +     * Some clients may not use GDA managed resources including
                                          +     * conversations and agents, instead they create and manage their own
                                          +     * conversations and agents resources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientManagedResourceContext field is set. + */ + @java.lang.Override + public boolean hasClientManagedResourceContext() { + return contextProviderCase_ == 105; + } + + /** + * + * + *
                                          +     * Optional. Context with client managed resources.
                                          +     * Some clients may not use GDA managed resources including
                                          +     * conversations and agents, instead they create and manage their own
                                          +     * conversations and agents resources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientManagedResourceContext. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + getClientManagedResourceContext() { + if (clientManagedResourceContextBuilder_ == null) { + if (contextProviderCase_ == 105) { + return (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + contextProvider_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + .getDefaultInstance(); + } else { + if (contextProviderCase_ == 105) { + return clientManagedResourceContextBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Optional. Context with client managed resources.
                                          +     * Some clients may not use GDA managed resources including
                                          +     * conversations and agents, instead they create and manage their own
                                          +     * conversations and agents resources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientManagedResourceContext( + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext value) { + if (clientManagedResourceContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contextProvider_ = value; + onChanged(); + } else { + clientManagedResourceContextBuilder_.setMessage(value); + } + contextProviderCase_ = 105; + return this; + } + + /** + * + * + *
                                          +     * Optional. Context with client managed resources.
                                          +     * Some clients may not use GDA managed resources including
                                          +     * conversations and agents, instead they create and manage their own
                                          +     * conversations and agents resources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientManagedResourceContext( + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.Builder + builderForValue) { + if (clientManagedResourceContextBuilder_ == null) { + contextProvider_ = builderForValue.build(); + onChanged(); + } else { + clientManagedResourceContextBuilder_.setMessage(builderForValue.build()); + } + contextProviderCase_ = 105; + return this; + } + + /** + * + * + *
                                          +     * Optional. Context with client managed resources.
                                          +     * Some clients may not use GDA managed resources including
                                          +     * conversations and agents, instead they create and manage their own
                                          +     * conversations and agents resources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeClientManagedResourceContext( + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext value) { + if (clientManagedResourceContextBuilder_ == null) { + if (contextProviderCase_ == 105 + && contextProvider_ + != com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + .getDefaultInstance()) { + contextProvider_ = + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + contextProvider_) + .mergeFrom(value) + .buildPartial(); + } else { + contextProvider_ = value; + } + onChanged(); + } else { + if (contextProviderCase_ == 105) { + clientManagedResourceContextBuilder_.mergeFrom(value); + } else { + clientManagedResourceContextBuilder_.setMessage(value); + } + } + contextProviderCase_ = 105; + return this; + } + + /** + * + * + *
                                          +     * Optional. Context with client managed resources.
                                          +     * Some clients may not use GDA managed resources including
                                          +     * conversations and agents, instead they create and manage their own
                                          +     * conversations and agents resources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClientManagedResourceContext() { + if (clientManagedResourceContextBuilder_ == null) { + if (contextProviderCase_ == 105) { + contextProviderCase_ = 0; + contextProvider_ = null; + onChanged(); + } + } else { + if (contextProviderCase_ == 105) { + contextProviderCase_ = 0; + contextProvider_ = null; + } + clientManagedResourceContextBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Context with client managed resources.
                                          +     * Some clients may not use GDA managed resources including
                                          +     * conversations and agents, instead they create and manage their own
                                          +     * conversations and agents resources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.Builder + getClientManagedResourceContextBuilder() { + return getClientManagedResourceContextFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. Context with client managed resources.
                                          +     * Some clients may not use GDA managed resources including
                                          +     * conversations and agents, instead they create and manage their own
                                          +     * conversations and agents resources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextOrBuilder + getClientManagedResourceContextOrBuilder() { + if ((contextProviderCase_ == 105) && (clientManagedResourceContextBuilder_ != null)) { + return clientManagedResourceContextBuilder_.getMessageOrBuilder(); + } else { + if (contextProviderCase_ == 105) { + return (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + contextProvider_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + .getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Optional. Context with client managed resources.
                                          +     * Some clients may not use GDA managed resources including
                                          +     * conversations and agents, instead they create and manage their own
                                          +     * conversations and agents resources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext, + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextOrBuilder> + getClientManagedResourceContextFieldBuilder() { + if (clientManagedResourceContextBuilder_ == null) { + if (!(contextProviderCase_ == 105)) { + contextProvider_ = + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + .getDefaultInstance(); + } + clientManagedResourceContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext, + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + contextProvider_, + getParentForChildren(), + isClean()); + contextProvider_ = null; + } + contextProviderCase_ = 105; + onChanged(); + return clientManagedResourceContextBuilder_; + } + private java.lang.Object project_ = ""; /** @@ -1886,7 +2283,7 @@ public Builder clearDataAgentContext() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 * @return The project. */ @java.lang.Deprecated @@ -1914,7 +2311,7 @@ public java.lang.String getProject() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 * @return The bytes for project. */ @java.lang.Deprecated @@ -1942,7 +2339,7 @@ public com.google.protobuf.ByteString getProjectBytes() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 * @param value The project to set. * @return This builder for chaining. */ @@ -1952,7 +2349,7 @@ public Builder setProject(java.lang.String value) { throw new NullPointerException(); } project_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1969,13 +2366,13 @@ public Builder setProject(java.lang.String value) { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProject() { project_ = getDefaultInstance().getProject(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1992,7 +2389,7 @@ public Builder clearProject() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 * @param value The bytes for project to set. * @return This builder for chaining. */ @@ -2003,7 +2400,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); project_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2076,7 +2473,7 @@ public Builder setParent(java.lang.String value) { throw new NullPointerException(); } parent_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2095,7 +2492,7 @@ public Builder setParent(java.lang.String value) { */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2119,7 +2516,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); parent_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2128,10 +2525,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { messages_ = new java.util.ArrayList(messages_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } @@ -2381,7 +2778,7 @@ public Builder addAllMessages( public Builder clearMessages() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { messagesBuilder_.clear(); @@ -2528,7 +2925,7 @@ public com.google.cloud.geminidataanalytics.v1beta.Message.Builder addMessagesBu com.google.cloud.geminidataanalytics.v1beta.Message, com.google.cloud.geminidataanalytics.v1beta.Message.Builder, com.google.cloud.geminidataanalytics.v1beta.MessageOrBuilder>( - messages_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + messages_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequestOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequestOrBuilder.java index 373ffca8fc1e..df7b6be6e7a3 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequestOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequestOrBuilder.java @@ -167,6 +167,60 @@ public interface ChatRequestOrBuilder com.google.cloud.geminidataanalytics.v1beta.DataAgentContextOrBuilder getDataAgentContextOrBuilder(); + /** + * + * + *
                                          +   * Optional. Context with client managed resources.
                                          +   * Some clients may not use GDA managed resources including
                                          +   * conversations and agents, instead they create and manage their own
                                          +   * conversations and agents resources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientManagedResourceContext field is set. + */ + boolean hasClientManagedResourceContext(); + + /** + * + * + *
                                          +   * Optional. Context with client managed resources.
                                          +   * Some clients may not use GDA managed resources including
                                          +   * conversations and agents, instead they create and manage their own
                                          +   * conversations and agents resources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientManagedResourceContext. + */ + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + getClientManagedResourceContext(); + + /** + * + * + *
                                          +   * Optional. Context with client managed resources.
                                          +   * Some clients may not use GDA managed resources including
                                          +   * conversations and agents, instead they create and manage their own
                                          +   * conversations and agents resources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextOrBuilder + getClientManagedResourceContextOrBuilder(); + /** * * @@ -179,7 +233,7 @@ public interface ChatRequestOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 * @return The project. */ @java.lang.Deprecated @@ -197,7 +251,7 @@ public interface ChatRequestOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 * @return The bytes for project. */ @java.lang.Deprecated diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientManagedResourceContext.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientManagedResourceContext.java new file mode 100644 index 000000000000..cd6ffe696d9a --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientManagedResourceContext.java @@ -0,0 +1,1177 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
                                          + * Context with client managed resources.
                                          + * Some clients may not use GDA managed resources including
                                          + * conversations and agents, instead they create and manage their own
                                          + * conversations and agents resources.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext} + */ +public final class ClientManagedResourceContext extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + ClientManagedResourceContextOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ClientManagedResourceContext.newBuilder() to construct. + private ClientManagedResourceContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientManagedResourceContext() { + conversationId_ = ""; + agentId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClientManagedResourceContext(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.class, + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.Builder.class); + } + + private int bitField0_; + public static final int INLINE_CONTEXT_FIELD_NUMBER = 1; + private com.google.cloud.geminidataanalytics.v1beta.Context inlineContext_; + + /** + * + * + *
                                          +   * Required. Context for the chat request. Use this to chat without GDA API
                                          +   * managed conversation and agent persistence by passing all context inline.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inlineContext field is set. + */ + @java.lang.Override + public boolean hasInlineContext() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Required. Context for the chat request. Use this to chat without GDA API
                                          +   * managed conversation and agent persistence by passing all context inline.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inlineContext. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context getInlineContext() { + return inlineContext_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.getDefaultInstance() + : inlineContext_; + } + + /** + * + * + *
                                          +   * Required. Context for the chat request. Use this to chat without GDA API
                                          +   * managed conversation and agent persistence by passing all context inline.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ContextOrBuilder getInlineContextOrBuilder() { + return inlineContext_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.getDefaultInstance() + : inlineContext_; + } + + public static final int CONVERSATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationId_ = ""; + + /** + * + * + *
                                          +   * Optional. The client managed conversation id.
                                          +   * 
                                          + * + * string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + @java.lang.Override + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + 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(); + conversationId_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The client managed conversation id.
                                          +   * 
                                          + * + * string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentId_ = ""; + + /** + * + * + *
                                          +   * Optional. The client managed agent id.
                                          +   * 
                                          + * + * string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + @java.lang.Override + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + 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(); + agentId_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The client managed agent id.
                                          +   * 
                                          + * + * string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInlineContext()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, conversationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, agentId_); + } + 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, getInlineContext()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, conversationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, agentId_); + } + 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.geminidataanalytics.v1beta.ClientManagedResourceContext)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext other = + (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) obj; + + if (hasInlineContext() != other.hasInlineContext()) return false; + if (hasInlineContext()) { + if (!getInlineContext().equals(other.getInlineContext())) return false; + } + if (!getConversationId().equals(other.getConversationId())) return false; + if (!getAgentId().equals(other.getAgentId())) 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 (hasInlineContext()) { + hash = (37 * hash) + INLINE_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getInlineContext().hashCode(); + } + hash = (37 * hash) + CONVERSATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversationId().hashCode(); + hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext 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.geminidataanalytics.v1beta.ClientManagedResourceContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext 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.geminidataanalytics.v1beta.ClientManagedResourceContext parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Context with client managed resources.
                                          +   * Some clients may not use GDA managed resources including
                                          +   * conversations and agents, instead they create and manage their own
                                          +   * conversations and agents resources.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.class, + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.Builder + .class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInlineContextFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inlineContext_ = null; + if (inlineContextBuilder_ != null) { + inlineContextBuilder_.dispose(); + inlineContextBuilder_ = null; + } + conversationId_ = ""; + agentId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext build() { + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext result = + new com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inlineContext_ = + inlineContextBuilder_ == null ? inlineContext_ : inlineContextBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conversationId_ = conversationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.agentId_ = agentId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + .getDefaultInstance()) return this; + if (other.hasInlineContext()) { + mergeInlineContext(other.getInlineContext()); + } + if (!other.getConversationId().isEmpty()) { + conversationId_ = other.conversationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAgentId().isEmpty()) { + agentId_ = other.agentId_; + 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: + { + input.readMessage(getInlineContextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + conversationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + agentId_ = 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.cloud.geminidataanalytics.v1beta.Context inlineContext_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.Context, + com.google.cloud.geminidataanalytics.v1beta.Context.Builder, + com.google.cloud.geminidataanalytics.v1beta.ContextOrBuilder> + inlineContextBuilder_; + + /** + * + * + *
                                          +     * Required. Context for the chat request. Use this to chat without GDA API
                                          +     * managed conversation and agent persistence by passing all context inline.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inlineContext field is set. + */ + public boolean hasInlineContext() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Required. Context for the chat request. Use this to chat without GDA API
                                          +     * managed conversation and agent persistence by passing all context inline.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inlineContext. + */ + public com.google.cloud.geminidataanalytics.v1beta.Context getInlineContext() { + if (inlineContextBuilder_ == null) { + return inlineContext_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.getDefaultInstance() + : inlineContext_; + } else { + return inlineContextBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Required. Context for the chat request. Use this to chat without GDA API
                                          +     * managed conversation and agent persistence by passing all context inline.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInlineContext(com.google.cloud.geminidataanalytics.v1beta.Context value) { + if (inlineContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inlineContext_ = value; + } else { + inlineContextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. Context for the chat request. Use this to chat without GDA API
                                          +     * managed conversation and agent persistence by passing all context inline.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInlineContext( + com.google.cloud.geminidataanalytics.v1beta.Context.Builder builderForValue) { + if (inlineContextBuilder_ == null) { + inlineContext_ = builderForValue.build(); + } else { + inlineContextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. Context for the chat request. Use this to chat without GDA API
                                          +     * managed conversation and agent persistence by passing all context inline.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInlineContext(com.google.cloud.geminidataanalytics.v1beta.Context value) { + if (inlineContextBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && inlineContext_ != null + && inlineContext_ + != com.google.cloud.geminidataanalytics.v1beta.Context.getDefaultInstance()) { + getInlineContextBuilder().mergeFrom(value); + } else { + inlineContext_ = value; + } + } else { + inlineContextBuilder_.mergeFrom(value); + } + if (inlineContext_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Required. Context for the chat request. Use this to chat without GDA API
                                          +     * managed conversation and agent persistence by passing all context inline.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInlineContext() { + bitField0_ = (bitField0_ & ~0x00000001); + inlineContext_ = null; + if (inlineContextBuilder_ != null) { + inlineContextBuilder_.dispose(); + inlineContextBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. Context for the chat request. Use this to chat without GDA API
                                          +     * managed conversation and agent persistence by passing all context inline.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.Context.Builder getInlineContextBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInlineContextFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Required. Context for the chat request. Use this to chat without GDA API
                                          +     * managed conversation and agent persistence by passing all context inline.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ContextOrBuilder + getInlineContextOrBuilder() { + if (inlineContextBuilder_ != null) { + return inlineContextBuilder_.getMessageOrBuilder(); + } else { + return inlineContext_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.getDefaultInstance() + : inlineContext_; + } + } + + /** + * + * + *
                                          +     * Required. Context for the chat request. Use this to chat without GDA API
                                          +     * managed conversation and agent persistence by passing all context inline.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.Context, + com.google.cloud.geminidataanalytics.v1beta.Context.Builder, + com.google.cloud.geminidataanalytics.v1beta.ContextOrBuilder> + getInlineContextFieldBuilder() { + if (inlineContextBuilder_ == null) { + inlineContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.Context, + com.google.cloud.geminidataanalytics.v1beta.Context.Builder, + com.google.cloud.geminidataanalytics.v1beta.ContextOrBuilder>( + getInlineContext(), getParentForChildren(), isClean()); + inlineContext_ = null; + } + return inlineContextBuilder_; + } + + private java.lang.Object conversationId_ = ""; + + /** + * + * + *
                                          +     * Optional. The client managed conversation id.
                                          +     * 
                                          + * + * string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The client managed conversation id.
                                          +     * 
                                          + * + * string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The client managed conversation id.
                                          +     * 
                                          + * + * string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The client managed conversation id.
                                          +     * 
                                          + * + * string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConversationId() { + conversationId_ = getDefaultInstance().getConversationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The client managed conversation id.
                                          +     * 
                                          + * + * string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object agentId_ = ""; + + /** + * + * + *
                                          +     * Optional. The client managed agent id.
                                          +     * 
                                          + * + * string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The client managed agent id.
                                          +     * 
                                          + * + * string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The client managed agent id.
                                          +     * 
                                          + * + * string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The client managed agent id.
                                          +     * 
                                          + * + * string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentId() { + agentId_ = getDefaultInstance().getAgentId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The client managed agent id.
                                          +     * 
                                          + * + * string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + private static final com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientManagedResourceContext 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.geminidataanalytics.v1beta.ClientManagedResourceContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientManagedResourceContextOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientManagedResourceContextOrBuilder.java new file mode 100644 index 000000000000..42b557b2e77f --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientManagedResourceContextOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface ClientManagedResourceContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. Context for the chat request. Use this to chat without GDA API
                                          +   * managed conversation and agent persistence by passing all context inline.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inlineContext field is set. + */ + boolean hasInlineContext(); + + /** + * + * + *
                                          +   * Required. Context for the chat request. Use this to chat without GDA API
                                          +   * managed conversation and agent persistence by passing all context inline.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inlineContext. + */ + com.google.cloud.geminidataanalytics.v1beta.Context getInlineContext(); + + /** + * + * + *
                                          +   * Required. Context for the chat request. Use this to chat without GDA API
                                          +   * managed conversation and agent persistence by passing all context inline.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ContextOrBuilder getInlineContextOrBuilder(); + + /** + * + * + *
                                          +   * Optional. The client managed conversation id.
                                          +   * 
                                          + * + * string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + java.lang.String getConversationId(); + + /** + * + * + *
                                          +   * Optional. The client managed conversation id.
                                          +   * 
                                          + * + * string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + com.google.protobuf.ByteString getConversationIdBytes(); + + /** + * + * + *
                                          +   * Optional. The client managed agent id.
                                          +   * 
                                          + * + * string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + java.lang.String getAgentId(); + + /** + * + * + *
                                          +   * Optional. The client managed agent id.
                                          +   * 
                                          + * + * string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + com.google.protobuf.ByteString getAgentIdBytes(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Context.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Context.java index 400866e8b3f4..93b23febec28 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Context.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Context.java @@ -42,6 +42,8 @@ private Context(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Context() { systemInstruction_ = ""; exampleQueries_ = java.util.Collections.emptyList(); + glossaryTerms_ = java.util.Collections.emptyList(); + schemaRelationships_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -65,842 +67,5272 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.geminidataanalytics.v1beta.Context.Builder.class); } - private int bitField0_; - public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 1; + public interface SchemaRelationshipOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object systemInstruction_ = ""; + /** + * + * + *
                                          +     * An ordered list of fields for the join from the first table.
                                          +     * The size of this list must be the same as `right_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `right_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + * + * @return Whether the leftSchemaPaths field is set. + */ + boolean hasLeftSchemaPaths(); - /** - * - * - *
                                          -   * Optional. The basic entry point for data owners creating domain knowledge
                                          -   * for Agent.
                                          -   *
                                          -   * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          -   * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          -   * can help the model understand the business context around a user question.
                                          -   * 
                                          - * - * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The systemInstruction. - */ - @java.lang.Override - public java.lang.String getSystemInstruction() { - java.lang.Object ref = systemInstruction_; - 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(); - systemInstruction_ = s; - return s; - } - } + /** + * + * + *
                                          +     * An ordered list of fields for the join from the first table.
                                          +     * The size of this list must be the same as `right_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `right_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + * + * @return The leftSchemaPaths. + */ + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + getLeftSchemaPaths(); - /** - * - * - *
                                          -   * Optional. The basic entry point for data owners creating domain knowledge
                                          -   * for Agent.
                                          -   *
                                          -   * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          -   * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          -   * can help the model understand the business context around a user question.
                                          -   * 
                                          - * - * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for systemInstruction. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSystemInstructionBytes() { - java.lang.Object ref = systemInstruction_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - systemInstruction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
                                          +     * An ordered list of fields for the join from the first table.
                                          +     * The size of this list must be the same as `right_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `right_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + */ + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPathsOrBuilder + getLeftSchemaPathsOrBuilder(); - public static final int DATASOURCE_REFERENCES_FIELD_NUMBER = 7; - private com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasourceReferences_; + /** + * + * + *
                                          +     * An ordered list of fields for the join from the second table.
                                          +     * The size of this list must be the same as `left_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `left_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + * + * @return Whether the rightSchemaPaths field is set. + */ + boolean hasRightSchemaPaths(); - /** - * - * - *
                                          -   * Required. Data sources that are available for answering the question.
                                          -   * 
                                          - * - * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the datasourceReferences field is set. - */ - @java.lang.Override - public boolean hasDatasourceReferences() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
                                          +     * An ordered list of fields for the join from the second table.
                                          +     * The size of this list must be the same as `left_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `left_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + * + * @return The rightSchemaPaths. + */ + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + getRightSchemaPaths(); - /** - * - * - *
                                          -   * Required. Data sources that are available for answering the question.
                                          -   * 
                                          - * - * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The datasourceReferences. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences - getDatasourceReferences() { - return datasourceReferences_ == null - ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() - : datasourceReferences_; + /** + * + * + *
                                          +     * An ordered list of fields for the join from the second table.
                                          +     * The size of this list must be the same as `left_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `left_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + */ + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPathsOrBuilder + getRightSchemaPathsOrBuilder(); + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return A list containing the sources. + */ + java.util.List + getSourcesList(); + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return The count of sources. + */ + int getSourcesCount(); + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param index The index of the element to return. + * @return The sources at the given index. + */ + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source getSources( + int index); + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return A list containing the enum numeric values on the wire for sources. + */ + java.util.List getSourcesValueList(); + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sources at the given index. + */ + int getSourcesValue(int index); + + /** + * + * + *
                                          +     * A confidence score for the suggested relationship.
                                          +     * Manually added edges have the highest confidence score.
                                          +     * 
                                          + * + * float confidence_score = 4; + * + * @return The confidenceScore. + */ + float getConfidenceScore(); } /** * * *
                                          -   * Required. Data sources that are available for answering the question.
                                          +   * The relationship between two tables, including referencing and referenced
                                          +   * columns. This is a derived context retrieved from Dataplex Dataset
                                          +   * Insights.
                                              * 
                                          * - * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship} */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder - getDatasourceReferencesOrBuilder() { - return datasourceReferences_ == null - ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() - : datasourceReferences_; - } + public static final class SchemaRelationship extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship) + SchemaRelationshipOrBuilder { + private static final long serialVersionUID = 0L; - public static final int OPTIONS_FIELD_NUMBER = 3; - private com.google.cloud.geminidataanalytics.v1beta.ConversationOptions options_; + // Use SchemaRelationship.newBuilder() to construct. + private SchemaRelationship(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * - * - *
                                          -   * Optional. Additional options for the conversation.
                                          -   * 
                                          - * - * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000002) != 0); - } + private SchemaRelationship() { + sources_ = java.util.Collections.emptyList(); + } - /** - * - * - *
                                          -   * Optional. Additional options for the conversation.
                                          -   * 
                                          - * - * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The options. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ConversationOptions getOptions() { - return options_ == null - ? com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.getDefaultInstance() - : options_; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SchemaRelationship(); + } - /** - * - * - *
                                          -   * Optional. Additional options for the conversation.
                                          -   * 
                                          - * - * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder - getOptionsOrBuilder() { - return options_ == null - ? com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.getDefaultInstance() - : options_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_descriptor; + } - public static final int EXAMPLE_QUERIES_FIELD_NUMBER = 5; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.class, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder.class); + } - @SuppressWarnings("serial") - private java.util.List exampleQueries_; + /** + * + * + *
                                          +     * Source which generated the schema relation edge.
                                          +     * 
                                          + * + * Protobuf enum {@code + * google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source} + */ + public enum Source implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +       * The source of the schema relationship is unspecified.
                                          +       * 
                                          + * + * SOURCE_UNSPECIFIED = 0; + */ + SOURCE_UNSPECIFIED(0), + /** + * + * + *
                                          +       * The source of the schema relationship is BigQuery job history.
                                          +       * 
                                          + * + * BIGQUERY_JOB_HISTORY = 1; + */ + BIGQUERY_JOB_HISTORY(1), + /** + * + * + *
                                          +       * The source of the schema relationship is LLM suggested.
                                          +       * 
                                          + * + * LLM_SUGGESTED = 2; + */ + LLM_SUGGESTED(2), + /** + * + * + *
                                          +       * The source of the schema relationship is BigQuery table constraints.
                                          +       * 
                                          + * + * BIGQUERY_TABLE_CONSTRAINTS = 3; + */ + BIGQUERY_TABLE_CONSTRAINTS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +       * The source of the schema relationship is unspecified.
                                          +       * 
                                          + * + * SOURCE_UNSPECIFIED = 0; + */ + public static final int SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +       * The source of the schema relationship is BigQuery job history.
                                          +       * 
                                          + * + * BIGQUERY_JOB_HISTORY = 1; + */ + public static final int BIGQUERY_JOB_HISTORY_VALUE = 1; + + /** + * + * + *
                                          +       * The source of the schema relationship is LLM suggested.
                                          +       * 
                                          + * + * LLM_SUGGESTED = 2; + */ + public static final int LLM_SUGGESTED_VALUE = 2; + + /** + * + * + *
                                          +       * The source of the schema relationship is BigQuery table constraints.
                                          +       * 
                                          + * + * BIGQUERY_TABLE_CONSTRAINTS = 3; + */ + public static final int BIGQUERY_TABLE_CONSTRAINTS_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; + } - /** - * - * - *
                                          -   * Optional. A list of example queries, providing examples of relevant and
                                          -   * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          -   * 
                                          - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getExampleQueriesList() { - return exampleQueries_; - } + /** + * @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 Source valueOf(int value) { + return forNumber(value); + } - /** - * - * - *
                                          -   * Optional. A list of example queries, providing examples of relevant and
                                          -   * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          -   * 
                                          - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getExampleQueriesOrBuilderList() { - return exampleQueries_; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Source forNumber(int value) { + switch (value) { + case 0: + return SOURCE_UNSPECIFIED; + case 1: + return BIGQUERY_JOB_HISTORY; + case 2: + return LLM_SUGGESTED; + case 3: + return BIGQUERY_TABLE_CONSTRAINTS; + default: + return null; + } + } - /** - * - * - *
                                          -   * Optional. A list of example queries, providing examples of relevant and
                                          -   * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          -   * 
                                          - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getExampleQueriesCount() { - return exampleQueries_.size(); - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - /** - * - * - *
                                          -   * Optional. A list of example queries, providing examples of relevant and
                                          -   * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          -   * 
                                          - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery getExampleQueries(int index) { - return exampleQueries_.get(index); - } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Source findValueByNumber(int number) { + return Source.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()); + } - /** - * - * - *
                                          -   * Optional. A list of example queries, providing examples of relevant and
                                          -   * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          -   * 
                                          - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder - getExampleQueriesOrBuilder(int index) { - return exampleQueries_.get(index); - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - private byte memoizedIsInitialized = -1; + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .getDescriptor() + .getEnumTypes() + .get(0); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final Source[] VALUES = values(); - memoizedIsInitialized = 1; - return true; - } + public static Source 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()]; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemInstruction_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, systemInstruction_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getOptions()); - } - for (int i = 0; i < exampleQueries_.size(); i++) { - output.writeMessage(5, exampleQueries_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(7, getDatasourceReferences()); - } - getUnknownFields().writeTo(output); - } + private final int value; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private Source(int value) { + this.value = value; + } - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemInstruction_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, systemInstruction_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOptions()); - } - for (int i = 0; i < exampleQueries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, exampleQueries_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDatasourceReferences()); + // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source) } - 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.geminidataanalytics.v1beta.Context)) { - return super.equals(obj); + public interface SchemaPathsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * The service-qualified full resource name of the table
                                          +       * Ex:
                                          +       * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +       * 
                                          + * + * string table_fqn = 1; + * + * @return The tableFqn. + */ + java.lang.String getTableFqn(); + + /** + * + * + *
                                          +       * The service-qualified full resource name of the table
                                          +       * Ex:
                                          +       * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +       * 
                                          + * + * string table_fqn = 1; + * + * @return The bytes for tableFqn. + */ + com.google.protobuf.ByteString getTableFqnBytes(); + + /** + * + * + *
                                          +       * The ordered list of paths within the table schema.
                                          +       * 
                                          + * + * repeated string paths = 2; + * + * @return A list containing the paths. + */ + java.util.List getPathsList(); + + /** + * + * + *
                                          +       * The ordered list of paths within the table schema.
                                          +       * 
                                          + * + * repeated string paths = 2; + * + * @return The count of paths. + */ + int getPathsCount(); + + /** + * + * + *
                                          +       * The ordered list of paths within the table schema.
                                          +       * 
                                          + * + * repeated string paths = 2; + * + * @param index The index of the element to return. + * @return The paths at the given index. + */ + java.lang.String getPaths(int index); + + /** + * + * + *
                                          +       * The ordered list of paths within the table schema.
                                          +       * 
                                          + * + * repeated string paths = 2; + * + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + com.google.protobuf.ByteString getPathsBytes(int index); } - com.google.cloud.geminidataanalytics.v1beta.Context other = - (com.google.cloud.geminidataanalytics.v1beta.Context) obj; - if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; - if (hasDatasourceReferences() != other.hasDatasourceReferences()) return false; - if (hasDatasourceReferences()) { - if (!getDatasourceReferences().equals(other.getDatasourceReferences())) return false; - } - if (hasOptions() != other.hasOptions()) return false; - if (hasOptions()) { - if (!getOptions().equals(other.getOptions())) return false; - } - if (!getExampleQueriesList().equals(other.getExampleQueriesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * + * + *
                                          +     * Represents an ordered set of paths within the table schema.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths} + */ + public static final class SchemaPaths extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths) + SchemaPathsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SchemaPaths.newBuilder() to construct. + private SchemaPaths(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER; - hash = (53 * hash) + getSystemInstruction().hashCode(); - if (hasDatasourceReferences()) { - hash = (37 * hash) + DATASOURCE_REFERENCES_FIELD_NUMBER; - hash = (53 * hash) + getDatasourceReferences().hashCode(); - } - if (hasOptions()) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptions().hashCode(); - } - if (getExampleQueriesCount() > 0) { - hash = (37 * hash) + EXAMPLE_QUERIES_FIELD_NUMBER; - hash = (53 * hash) + getExampleQueriesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + private SchemaPaths() { + tableFqn_ = ""; + paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SchemaPaths(); + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_descriptor; + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .class, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder.class); + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int TABLE_FQN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tableFqn_ = ""; + + /** + * + * + *
                                          +       * The service-qualified full resource name of the table
                                          +       * Ex:
                                          +       * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +       * 
                                          + * + * string table_fqn = 1; + * + * @return The tableFqn. + */ + @java.lang.Override + public java.lang.String getTableFqn() { + java.lang.Object ref = tableFqn_; + 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(); + tableFqn_ = s; + return s; + } + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
                                          +       * The service-qualified full resource name of the table
                                          +       * Ex:
                                          +       * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +       * 
                                          + * + * string table_fqn = 1; + * + * @return The bytes for tableFqn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableFqnBytes() { + java.lang.Object ref = tableFqn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int PATHS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList paths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                          +       * The ordered list of paths within the table schema.
                                          +       * 
                                          + * + * repeated string paths = 2; + * + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList getPathsList() { + return paths_; + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + /** + * + * + *
                                          +       * The ordered list of paths within the table schema.
                                          +       * 
                                          + * + * repeated string paths = 2; + * + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
                                          +       * The ordered list of paths within the table schema.
                                          +       * 
                                          + * + * repeated string paths = 2; + * + * @param index The index of the element to return. + * @return The paths at the given index. + */ + public java.lang.String getPaths(int index) { + return paths_.get(index); + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
                                          +       * The ordered list of paths within the table schema.
                                          +       * 
                                          + * + * repeated string paths = 2; + * + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + public com.google.protobuf.ByteString getPathsBytes(int index) { + return paths_.getByteString(index); + } - public static com.google.cloud.geminidataanalytics.v1beta.Context parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableFqn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableFqn_); + } + for (int i = 0; i < paths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paths_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static Builder newBuilder(com.google.cloud.geminidataanalytics.v1beta.Context prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableFqn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableFqn_); + } + { + int dataSize = 0; + for (int i = 0; i < paths_.size(); i++) { + dataSize += computeStringSizeNoTag(paths_.getRaw(i)); + } + size += dataSize; + size += 1 * getPathsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths other = + (com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths) + obj; + + if (!getTableFqn().equals(other.getTableFqn())) return false; + if (!getPathsList().equals(other.getPathsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_FQN_FIELD_NUMBER; + hash = (53 * hash) + getTableFqn().hashCode(); + if (getPathsCount() > 0) { + hash = (37 * hash) + PATHS_FIELD_NUMBER; + hash = (53 * hash) + getPathsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
                                          -   * A collection of context to apply to this conversation
                                          -   * 
                                          - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.Context} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.Context) - com.google.cloud.geminidataanalytics.v1beta.ContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.ContextProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Context_descriptor; - } + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.ContextProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Context_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.Context.class, - com.google.cloud.geminidataanalytics.v1beta.Context.Builder.class); - } + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // Construct using com.google.cloud.geminidataanalytics.v1beta.Context.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDatasourceReferencesFieldBuilder(); - getOptionsFieldBuilder(); - getExampleQueriesFieldBuilder(); + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - systemInstruction_ = ""; - datasourceReferences_ = null; - if (datasourceReferencesBuilder_ != null) { - datasourceReferencesBuilder_.dispose(); - datasourceReferencesBuilder_ = null; + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * Represents an ordered set of paths within the table schema.
                                          +       * 
                                          + * + * Protobuf type {@code + * google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths) + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .class, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder.class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tableFqn_ = ""; + paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + build() { + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + result = + new com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tableFqn_ = tableFqn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + paths_.makeImmutable(); + result.paths_ = paths_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance()) return this; + if (!other.getTableFqn().isEmpty()) { + tableFqn_ = other.tableFqn_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.paths_.isEmpty()) { + if (paths_.isEmpty()) { + paths_ = other.paths_; + bitField0_ |= 0x00000002; + } else { + ensurePathsIsMutable(); + paths_.addAll(other.paths_); + } + 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: + { + tableFqn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePathsIsMutable(); + paths_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tableFqn_ = ""; + + /** + * + * + *
                                          +         * The service-qualified full resource name of the table
                                          +         * Ex:
                                          +         * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +         * 
                                          + * + * string table_fqn = 1; + * + * @return The tableFqn. + */ + public java.lang.String getTableFqn() { + java.lang.Object ref = tableFqn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableFqn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * The service-qualified full resource name of the table
                                          +         * Ex:
                                          +         * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +         * 
                                          + * + * string table_fqn = 1; + * + * @return The bytes for tableFqn. + */ + public com.google.protobuf.ByteString getTableFqnBytes() { + java.lang.Object ref = tableFqn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableFqn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * The service-qualified full resource name of the table
                                          +         * Ex:
                                          +         * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +         * 
                                          + * + * string table_fqn = 1; + * + * @param value The tableFqn to set. + * @return This builder for chaining. + */ + public Builder setTableFqn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tableFqn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The service-qualified full resource name of the table
                                          +         * Ex:
                                          +         * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +         * 
                                          + * + * string table_fqn = 1; + * + * @return This builder for chaining. + */ + public Builder clearTableFqn() { + tableFqn_ = getDefaultInstance().getTableFqn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The service-qualified full resource name of the table
                                          +         * Ex:
                                          +         * bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
                                          +         * 
                                          + * + * string table_fqn = 1; + * + * @param value The bytes for tableFqn to set. + * @return This builder for chaining. + */ + public Builder setTableFqnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tableFqn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList paths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePathsIsMutable() { + if (!paths_.isModifiable()) { + paths_ = new com.google.protobuf.LazyStringArrayList(paths_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
                                          +         * The ordered list of paths within the table schema.
                                          +         * 
                                          + * + * repeated string paths = 2; + * + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList getPathsList() { + paths_.makeImmutable(); + return paths_; + } + + /** + * + * + *
                                          +         * The ordered list of paths within the table schema.
                                          +         * 
                                          + * + * repeated string paths = 2; + * + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } + + /** + * + * + *
                                          +         * The ordered list of paths within the table schema.
                                          +         * 
                                          + * + * repeated string paths = 2; + * + * @param index The index of the element to return. + * @return The paths at the given index. + */ + public java.lang.String getPaths(int index) { + return paths_.get(index); + } + + /** + * + * + *
                                          +         * The ordered list of paths within the table schema.
                                          +         * 
                                          + * + * repeated string paths = 2; + * + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + public com.google.protobuf.ByteString getPathsBytes(int index) { + return paths_.getByteString(index); + } + + /** + * + * + *
                                          +         * The ordered list of paths within the table schema.
                                          +         * 
                                          + * + * repeated string paths = 2; + * + * @param index The index to set the value at. + * @param value The paths to set. + * @return This builder for chaining. + */ + public Builder setPaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The ordered list of paths within the table schema.
                                          +         * 
                                          + * + * repeated string paths = 2; + * + * @param value The paths to add. + * @return This builder for chaining. + */ + public Builder addPaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The ordered list of paths within the table schema.
                                          +         * 
                                          + * + * repeated string paths = 2; + * + * @param values The paths to add. + * @return This builder for chaining. + */ + public Builder addAllPaths(java.lang.Iterable values) { + ensurePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The ordered list of paths within the table schema.
                                          +         * 
                                          + * + * repeated string paths = 2; + * + * @return This builder for chaining. + */ + public Builder clearPaths() { + paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The ordered list of paths within the table schema.
                                          +         * 
                                          + * + * repeated string paths = 2; + * + * @param value The bytes of the paths to add. + * @return This builder for chaining. + */ + public Builder addPathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePathsIsMutable(); + paths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths) + private static final com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaPaths 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.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int LEFT_SCHEMA_PATHS_FIELD_NUMBER = 1; + private com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + leftSchemaPaths_; + + /** + * + * + *
                                          +     * An ordered list of fields for the join from the first table.
                                          +     * The size of this list must be the same as `right_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `right_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + * + * @return Whether the leftSchemaPaths field is set. + */ + @java.lang.Override + public boolean hasLeftSchemaPaths() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * An ordered list of fields for the join from the first table.
                                          +     * The size of this list must be the same as `right_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `right_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + * + * @return The leftSchemaPaths. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + getLeftSchemaPaths() { + return leftSchemaPaths_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : leftSchemaPaths_; + } + + /** + * + * + *
                                          +     * An ordered list of fields for the join from the first table.
                                          +     * The size of this list must be the same as `right_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `right_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder + getLeftSchemaPathsOrBuilder() { + return leftSchemaPaths_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : leftSchemaPaths_; + } + + public static final int RIGHT_SCHEMA_PATHS_FIELD_NUMBER = 2; + private com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + rightSchemaPaths_; + + /** + * + * + *
                                          +     * An ordered list of fields for the join from the second table.
                                          +     * The size of this list must be the same as `left_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `left_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + * + * @return Whether the rightSchemaPaths field is set. + */ + @java.lang.Override + public boolean hasRightSchemaPaths() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * An ordered list of fields for the join from the second table.
                                          +     * The size of this list must be the same as `left_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `left_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + * + * @return The rightSchemaPaths. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + getRightSchemaPaths() { + return rightSchemaPaths_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : rightSchemaPaths_; + } + + /** + * + * + *
                                          +     * An ordered list of fields for the join from the second table.
                                          +     * The size of this list must be the same as `left_schema_paths`.
                                          +     * Each field at index i in this list must correspond to a field at the same
                                          +     * index in the `left_schema_paths` list.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder + getRightSchemaPathsOrBuilder() { + return rightSchemaPaths_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : rightSchemaPaths_; + } + + public static final int SOURCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List sources_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source> + sources_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source>() { + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source + convert(java.lang.Integer from) { + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source + result = + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .Source.forNumber(from); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source + .UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return A list containing the sources. + */ + @java.lang.Override + public java.util.List< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source> + getSourcesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source>( + sources_, sources_converter_); + } + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return The count of sources. + */ + @java.lang.Override + public int getSourcesCount() { + return sources_.size(); + } + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param index The index of the element to return. + * @return The sources at the given index. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source getSources( + int index) { + return sources_converter_.convert(sources_.get(index)); + } + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return A list containing the enum numeric values on the wire for sources. + */ + @java.lang.Override + public java.util.List getSourcesValueList() { + return sources_; + } + + /** + * + * + *
                                          +     * Sources which generated the schema relation edge.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sources at the given index. + */ + @java.lang.Override + public int getSourcesValue(int index) { + return sources_.get(index); + } + + private int sourcesMemoizedSerializedSize; + + public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 4; + private float confidenceScore_ = 0F; + + /** + * + * + *
                                          +     * A confidence score for the suggested relationship.
                                          +     * Manually added edges have the highest confidence score.
                                          +     * 
                                          + * + * float confidence_score = 4; + * + * @return The confidenceScore. + */ + @java.lang.Override + public float getConfidenceScore() { + return confidenceScore_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLeftSchemaPaths()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRightSchemaPaths()); + } + if (getSourcesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(sourcesMemoizedSerializedSize); + } + for (int i = 0; i < sources_.size(); i++) { + output.writeEnumNoTag(sources_.get(i)); + } + if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { + output.writeFloat(4, confidenceScore_); + } + 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, getLeftSchemaPaths()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRightSchemaPaths()); + } + { + int dataSize = 0; + for (int i = 0; i < sources_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(sources_.get(i)); + } + size += dataSize; + if (!getSourcesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + sourcesMemoizedSerializedSize = dataSize; + } + if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidenceScore_); + } + 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.geminidataanalytics.v1beta.Context.SchemaRelationship)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship other = + (com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship) obj; + + if (hasLeftSchemaPaths() != other.hasLeftSchemaPaths()) return false; + if (hasLeftSchemaPaths()) { + if (!getLeftSchemaPaths().equals(other.getLeftSchemaPaths())) return false; + } + if (hasRightSchemaPaths() != other.hasRightSchemaPaths()) return false; + if (hasRightSchemaPaths()) { + if (!getRightSchemaPaths().equals(other.getRightSchemaPaths())) return false; + } + if (!sources_.equals(other.sources_)) return false; + if (java.lang.Float.floatToIntBits(getConfidenceScore()) + != java.lang.Float.floatToIntBits(other.getConfidenceScore())) 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 (hasLeftSchemaPaths()) { + hash = (37 * hash) + LEFT_SCHEMA_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getLeftSchemaPaths().hashCode(); + } + if (hasRightSchemaPaths()) { + hash = (37 * hash) + RIGHT_SCHEMA_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getRightSchemaPaths().hashCode(); + } + if (getSourcesCount() > 0) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + sources_.hashCode(); + } + hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship 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.geminidataanalytics.v1beta.Context.SchemaRelationship parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship 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.geminidataanalytics.v1beta.Context.SchemaRelationship parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * The relationship between two tables, including referencing and referenced
                                          +     * columns. This is a derived context retrieved from Dataplex Dataset
                                          +     * Insights.
                                          +     * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship) + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.class, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder + .class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLeftSchemaPathsFieldBuilder(); + getRightSchemaPathsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + leftSchemaPaths_ = null; + if (leftSchemaPathsBuilder_ != null) { + leftSchemaPathsBuilder_.dispose(); + leftSchemaPathsBuilder_ = null; + } + rightSchemaPaths_ = null; + if (rightSchemaPathsBuilder_ != null) { + rightSchemaPathsBuilder_.dispose(); + rightSchemaPathsBuilder_ = null; + } + sources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + confidenceScore_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship build() { + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship result = + new com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship result) { + if (((bitField0_ & 0x00000004) != 0)) { + sources_ = java.util.Collections.unmodifiableList(sources_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sources_ = sources_; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.leftSchemaPaths_ = + leftSchemaPathsBuilder_ == null ? leftSchemaPaths_ : leftSchemaPathsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rightSchemaPaths_ = + rightSchemaPathsBuilder_ == null + ? rightSchemaPaths_ + : rightSchemaPathsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.confidenceScore_ = confidenceScore_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .getDefaultInstance()) return this; + if (other.hasLeftSchemaPaths()) { + mergeLeftSchemaPaths(other.getLeftSchemaPaths()); + } + if (other.hasRightSchemaPaths()) { + mergeRightSchemaPaths(other.getRightSchemaPaths()); + } + if (!other.sources_.isEmpty()) { + if (sources_.isEmpty()) { + sources_ = other.sources_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSourcesIsMutable(); + sources_.addAll(other.sources_); + } + onChanged(); + } + if (other.getConfidenceScore() != 0F) { + setConfidenceScore(other.getConfidenceScore()); + } + 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( + getLeftSchemaPathsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getRightSchemaPathsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + int tmpRaw = input.readEnum(); + ensureSourcesIsMutable(); + sources_.add(tmpRaw); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureSourcesIsMutable(); + sources_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + case 37: + { + confidenceScore_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + 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.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + leftSchemaPaths_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder> + leftSchemaPathsBuilder_; + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the first table.
                                          +       * The size of this list must be the same as `right_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `right_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + * + * @return Whether the leftSchemaPaths field is set. + */ + public boolean hasLeftSchemaPaths() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the first table.
                                          +       * The size of this list must be the same as `right_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `right_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + * + * @return The leftSchemaPaths. + */ + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + getLeftSchemaPaths() { + if (leftSchemaPathsBuilder_ == null) { + return leftSchemaPaths_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : leftSchemaPaths_; + } else { + return leftSchemaPathsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the first table.
                                          +       * The size of this list must be the same as `right_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `right_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + */ + public Builder setLeftSchemaPaths( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + value) { + if (leftSchemaPathsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftSchemaPaths_ = value; + } else { + leftSchemaPathsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the first table.
                                          +       * The size of this list must be the same as `right_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `right_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + */ + public Builder setLeftSchemaPaths( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths.Builder + builderForValue) { + if (leftSchemaPathsBuilder_ == null) { + leftSchemaPaths_ = builderForValue.build(); + } else { + leftSchemaPathsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the first table.
                                          +       * The size of this list must be the same as `right_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `right_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + */ + public Builder mergeLeftSchemaPaths( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + value) { + if (leftSchemaPathsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && leftSchemaPaths_ != null + && leftSchemaPaths_ + != com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths.getDefaultInstance()) { + getLeftSchemaPathsBuilder().mergeFrom(value); + } else { + leftSchemaPaths_ = value; + } + } else { + leftSchemaPathsBuilder_.mergeFrom(value); + } + if (leftSchemaPaths_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the first table.
                                          +       * The size of this list must be the same as `right_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `right_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + */ + public Builder clearLeftSchemaPaths() { + bitField0_ = (bitField0_ & ~0x00000001); + leftSchemaPaths_ = null; + if (leftSchemaPathsBuilder_ != null) { + leftSchemaPathsBuilder_.dispose(); + leftSchemaPathsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the first table.
                                          +       * The size of this list must be the same as `right_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `right_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder + getLeftSchemaPathsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLeftSchemaPathsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the first table.
                                          +       * The size of this list must be the same as `right_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `right_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder + getLeftSchemaPathsOrBuilder() { + if (leftSchemaPathsBuilder_ != null) { + return leftSchemaPathsBuilder_.getMessageOrBuilder(); + } else { + return leftSchemaPaths_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : leftSchemaPaths_; + } + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the first table.
                                          +       * The size of this list must be the same as `right_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `right_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder> + getLeftSchemaPathsFieldBuilder() { + if (leftSchemaPathsBuilder_ == null) { + leftSchemaPathsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder>( + getLeftSchemaPaths(), getParentForChildren(), isClean()); + leftSchemaPaths_ = null; + } + return leftSchemaPathsBuilder_; + } + + private com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + rightSchemaPaths_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder> + rightSchemaPathsBuilder_; + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the second table.
                                          +       * The size of this list must be the same as `left_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `left_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + * + * @return Whether the rightSchemaPaths field is set. + */ + public boolean hasRightSchemaPaths() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the second table.
                                          +       * The size of this list must be the same as `left_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `left_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + * + * @return The rightSchemaPaths. + */ + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + getRightSchemaPaths() { + if (rightSchemaPathsBuilder_ == null) { + return rightSchemaPaths_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : rightSchemaPaths_; + } else { + return rightSchemaPathsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the second table.
                                          +       * The size of this list must be the same as `left_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `left_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + */ + public Builder setRightSchemaPaths( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + value) { + if (rightSchemaPathsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightSchemaPaths_ = value; + } else { + rightSchemaPathsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the second table.
                                          +       * The size of this list must be the same as `left_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `left_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + */ + public Builder setRightSchemaPaths( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths.Builder + builderForValue) { + if (rightSchemaPathsBuilder_ == null) { + rightSchemaPaths_ = builderForValue.build(); + } else { + rightSchemaPathsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the second table.
                                          +       * The size of this list must be the same as `left_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `left_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + */ + public Builder mergeRightSchemaPaths( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + value) { + if (rightSchemaPathsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rightSchemaPaths_ != null + && rightSchemaPaths_ + != com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths.getDefaultInstance()) { + getRightSchemaPathsBuilder().mergeFrom(value); + } else { + rightSchemaPaths_ = value; + } + } else { + rightSchemaPathsBuilder_.mergeFrom(value); + } + if (rightSchemaPaths_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the second table.
                                          +       * The size of this list must be the same as `left_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `left_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + */ + public Builder clearRightSchemaPaths() { + bitField0_ = (bitField0_ & ~0x00000002); + rightSchemaPaths_ = null; + if (rightSchemaPathsBuilder_ != null) { + rightSchemaPathsBuilder_.dispose(); + rightSchemaPathsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the second table.
                                          +       * The size of this list must be the same as `left_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `left_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder + getRightSchemaPathsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRightSchemaPathsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the second table.
                                          +       * The size of this list must be the same as `left_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `left_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder + getRightSchemaPathsOrBuilder() { + if (rightSchemaPathsBuilder_ != null) { + return rightSchemaPathsBuilder_.getMessageOrBuilder(); + } else { + return rightSchemaPaths_ == null + ? com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .getDefaultInstance() + : rightSchemaPaths_; + } + } + + /** + * + * + *
                                          +       * An ordered list of fields for the join from the second table.
                                          +       * The size of this list must be the same as `left_schema_paths`.
                                          +       * Each field at index i in this list must correspond to a field at the same
                                          +       * index in the `left_schema_paths` list.
                                          +       * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder> + getRightSchemaPathsFieldBuilder() { + if (rightSchemaPathsBuilder_ == null) { + rightSchemaPathsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPaths, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths + .Builder, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .SchemaPathsOrBuilder>( + getRightSchemaPaths(), getParentForChildren(), isClean()); + rightSchemaPaths_ = null; + } + return rightSchemaPathsBuilder_; + } + + private java.util.List sources_ = java.util.Collections.emptyList(); + + private void ensureSourcesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sources_ = new java.util.ArrayList(sources_); + bitField0_ |= 0x00000004; + } + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return A list containing the sources. + */ + public java.util.List< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source> + getSourcesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source>( + sources_, sources_converter_); + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return The count of sources. + */ + public int getSourcesCount() { + return sources_.size(); + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param index The index of the element to return. + * @return The sources at the given index. + */ + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source + getSources(int index) { + return sources_converter_.convert(sources_.get(index)); + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param index The index to set the value at. + * @param value The sources to set. + * @return This builder for chaining. + */ + public Builder setSources( + int index, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param value The sources to add. + * @return This builder for chaining. + */ + public Builder addSources( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param values The sources to add. + * @return This builder for chaining. + */ + public Builder addAllSources( + java.lang.Iterable< + ? extends + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source> + values) { + ensureSourcesIsMutable(); + for (com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source value : + values) { + sources_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearSources() { + sources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @return A list containing the enum numeric values on the wire for sources. + */ + public java.util.List getSourcesValueList() { + return java.util.Collections.unmodifiableList(sources_); + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sources at the given index. + */ + public int getSourcesValue(int index) { + return sources_.get(index); + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for sources to set. + * @return This builder for chaining. + */ + public Builder setSourcesValue(int index, int value) { + ensureSourcesIsMutable(); + sources_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param value The enum numeric value on the wire for sources to add. + * @return This builder for chaining. + */ + public Builder addSourcesValue(int value) { + ensureSourcesIsMutable(); + sources_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Sources which generated the schema relation edge.
                                          +       * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3; + * + * + * @param values The enum numeric values on the wire for sources to add. + * @return This builder for chaining. + */ + public Builder addAllSourcesValue(java.lang.Iterable values) { + ensureSourcesIsMutable(); + for (int value : values) { + sources_.add(value); + } + onChanged(); + return this; + } + + private float confidenceScore_; + + /** + * + * + *
                                          +       * A confidence score for the suggested relationship.
                                          +       * Manually added edges have the highest confidence score.
                                          +       * 
                                          + * + * float confidence_score = 4; + * + * @return The confidenceScore. + */ + @java.lang.Override + public float getConfidenceScore() { + return confidenceScore_; + } + + /** + * + * + *
                                          +       * A confidence score for the suggested relationship.
                                          +       * Manually added edges have the highest confidence score.
                                          +       * 
                                          + * + * float confidence_score = 4; + * + * @param value The confidenceScore to set. + * @return This builder for chaining. + */ + public Builder setConfidenceScore(float value) { + + confidenceScore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * A confidence score for the suggested relationship.
                                          +       * Manually added edges have the highest confidence score.
                                          +       * 
                                          + * + * float confidence_score = 4; + * + * @return This builder for chaining. + */ + public Builder clearConfidenceScore() { + bitField0_ = (bitField0_ & ~0x00000008); + confidenceScore_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship) + private static final com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaRelationship 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.geminidataanalytics.v1beta.Context.SchemaRelationship + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object systemInstruction_ = ""; + + /** + * + * + *
                                          +   * Optional. The basic entry point for data owners creating domain knowledge
                                          +   * for Agent.
                                          +   *
                                          +   * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          +   * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          +   * can help the model understand the business context around a user question.
                                          +   * 
                                          + * + * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemInstruction. + */ + @java.lang.Override + public java.lang.String getSystemInstruction() { + java.lang.Object ref = systemInstruction_; + 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(); + systemInstruction_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Optional. The basic entry point for data owners creating domain knowledge
                                          +   * for Agent.
                                          +   *
                                          +   * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          +   * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          +   * can help the model understand the business context around a user question.
                                          +   * 
                                          + * + * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSystemInstructionBytes() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASOURCE_REFERENCES_FIELD_NUMBER = 7; + private com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasourceReferences_; + + /** + * + * + *
                                          +   * Required. Data sources that are available for answering the question.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasourceReferences field is set. + */ + @java.lang.Override + public boolean hasDatasourceReferences() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Required. Data sources that are available for answering the question.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasourceReferences. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences + getDatasourceReferences() { + return datasourceReferences_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() + : datasourceReferences_; + } + + /** + * + * + *
                                          +   * Required. Data sources that are available for answering the question.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder + getDatasourceReferencesOrBuilder() { + return datasourceReferences_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() + : datasourceReferences_; + } + + public static final int OPTIONS_FIELD_NUMBER = 3; + private com.google.cloud.geminidataanalytics.v1beta.ConversationOptions options_; + + /** + * + * + *
                                          +   * Optional. Additional options for the conversation.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the options field is set. + */ + @java.lang.Override + public boolean hasOptions() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +   * Optional. Additional options for the conversation.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The options. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ConversationOptions getOptions() { + return options_ == null + ? com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.getDefaultInstance() + : options_; + } + + /** + * + * + *
                                          +   * Optional. Additional options for the conversation.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder + getOptionsOrBuilder() { + return options_ == null + ? com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.getDefaultInstance() + : options_; + } + + public static final int EXAMPLE_QUERIES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List exampleQueries_; + + /** + * + * + *
                                          +   * Optional. A list of example queries, providing examples of relevant and
                                          +   * commonly used SQL queries and their corresponding natural language queries
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExampleQueriesList() { + return exampleQueries_; + } + + /** + * + * + *
                                          +   * Optional. A list of example queries, providing examples of relevant and
                                          +   * commonly used SQL queries and their corresponding natural language queries
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExampleQueriesOrBuilderList() { + return exampleQueries_; + } + + /** + * + * + *
                                          +   * Optional. A list of example queries, providing examples of relevant and
                                          +   * commonly used SQL queries and their corresponding natural language queries
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getExampleQueriesCount() { + return exampleQueries_.size(); + } + + /** + * + * + *
                                          +   * Optional. A list of example queries, providing examples of relevant and
                                          +   * commonly used SQL queries and their corresponding natural language queries
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery getExampleQueries(int index) { + return exampleQueries_.get(index); + } + + /** + * + * + *
                                          +   * Optional. A list of example queries, providing examples of relevant and
                                          +   * commonly used SQL queries and their corresponding natural language queries
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder + getExampleQueriesOrBuilder(int index) { + return exampleQueries_.get(index); + } + + public static final int GLOSSARY_TERMS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List glossaryTerms_; + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGlossaryTermsList() { + return glossaryTerms_; + } + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGlossaryTermsOrBuilderList() { + return glossaryTerms_; + } + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getGlossaryTermsCount() { + return glossaryTerms_.size(); + } + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm getGlossaryTerms(int index) { + return glossaryTerms_.get(index); + } + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTermOrBuilder + getGlossaryTermsOrBuilder(int index) { + return glossaryTerms_.get(index); + } + + public static final int SCHEMA_RELATIONSHIPS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + schemaRelationships_; + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSchemaRelationshipsList() { + return schemaRelationships_; + } + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder> + getSchemaRelationshipsOrBuilderList() { + return schemaRelationships_; + } + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSchemaRelationshipsCount() { + return schemaRelationships_.size(); + } + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + getSchemaRelationships(int index) { + return schemaRelationships_.get(index); + } + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder + getSchemaRelationshipsOrBuilder(int index) { + return schemaRelationships_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemInstruction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, systemInstruction_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getOptions()); + } + for (int i = 0; i < exampleQueries_.size(); i++) { + output.writeMessage(5, exampleQueries_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getDatasourceReferences()); + } + for (int i = 0; i < glossaryTerms_.size(); i++) { + output.writeMessage(8, glossaryTerms_.get(i)); + } + for (int i = 0; i < schemaRelationships_.size(); i++) { + output.writeMessage(9, schemaRelationships_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemInstruction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, systemInstruction_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOptions()); + } + for (int i = 0; i < exampleQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, exampleQueries_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDatasourceReferences()); + } + for (int i = 0; i < glossaryTerms_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, glossaryTerms_.get(i)); + } + for (int i = 0; i < schemaRelationships_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, schemaRelationships_.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.cloud.geminidataanalytics.v1beta.Context)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.Context other = + (com.google.cloud.geminidataanalytics.v1beta.Context) obj; + + if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; + if (hasDatasourceReferences() != other.hasDatasourceReferences()) return false; + if (hasDatasourceReferences()) { + if (!getDatasourceReferences().equals(other.getDatasourceReferences())) return false; + } + if (hasOptions() != other.hasOptions()) return false; + if (hasOptions()) { + if (!getOptions().equals(other.getOptions())) return false; + } + if (!getExampleQueriesList().equals(other.getExampleQueriesList())) return false; + if (!getGlossaryTermsList().equals(other.getGlossaryTermsList())) return false; + if (!getSchemaRelationshipsList().equals(other.getSchemaRelationshipsList())) 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) + SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getSystemInstruction().hashCode(); + if (hasDatasourceReferences()) { + hash = (37 * hash) + DATASOURCE_REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getDatasourceReferences().hashCode(); + } + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } + if (getExampleQueriesCount() > 0) { + hash = (37 * hash) + EXAMPLE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getExampleQueriesList().hashCode(); + } + if (getGlossaryTermsCount() > 0) { + hash = (37 * hash) + GLOSSARY_TERMS_FIELD_NUMBER; + hash = (53 * hash) + getGlossaryTermsList().hashCode(); + } + if (getSchemaRelationshipsCount() > 0) { + hash = (37 * hash) + SCHEMA_RELATIONSHIPS_FIELD_NUMBER; + hash = (53 * hash) + getSchemaRelationshipsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context 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.geminidataanalytics.v1beta.Context parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context 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.geminidataanalytics.v1beta.Context parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.Context parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.geminidataanalytics.v1beta.Context prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * A collection of context to apply to this conversation
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.Context} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.Context) + com.google.cloud.geminidataanalytics.v1beta.ContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.Context.class, + com.google.cloud.geminidataanalytics.v1beta.Context.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.Context.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDatasourceReferencesFieldBuilder(); + getOptionsFieldBuilder(); + getExampleQueriesFieldBuilder(); + getGlossaryTermsFieldBuilder(); + getSchemaRelationshipsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + systemInstruction_ = ""; + datasourceReferences_ = null; + if (datasourceReferencesBuilder_ != null) { + datasourceReferencesBuilder_.dispose(); + datasourceReferencesBuilder_ = null; + } + options_ = null; + if (optionsBuilder_ != null) { + optionsBuilder_.dispose(); + optionsBuilder_ = null; + } + if (exampleQueriesBuilder_ == null) { + exampleQueries_ = java.util.Collections.emptyList(); + } else { + exampleQueries_ = null; + exampleQueriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (glossaryTermsBuilder_ == null) { + glossaryTerms_ = java.util.Collections.emptyList(); + } else { + glossaryTerms_ = null; + glossaryTermsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (schemaRelationshipsBuilder_ == null) { + schemaRelationships_ = java.util.Collections.emptyList(); + } else { + schemaRelationships_ = null; + schemaRelationshipsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_Context_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.Context.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context build() { + com.google.cloud.geminidataanalytics.v1beta.Context result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.Context buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.Context result = + new com.google.cloud.geminidataanalytics.v1beta.Context(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1beta.Context result) { + if (exampleQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + exampleQueries_ = java.util.Collections.unmodifiableList(exampleQueries_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.exampleQueries_ = exampleQueries_; + } else { + result.exampleQueries_ = exampleQueriesBuilder_.build(); + } + if (glossaryTermsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + glossaryTerms_ = java.util.Collections.unmodifiableList(glossaryTerms_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.glossaryTerms_ = glossaryTerms_; + } else { + result.glossaryTerms_ = glossaryTermsBuilder_.build(); + } + if (schemaRelationshipsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + schemaRelationships_ = java.util.Collections.unmodifiableList(schemaRelationships_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.schemaRelationships_ = schemaRelationships_; + } else { + result.schemaRelationships_ = schemaRelationshipsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.Context result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.systemInstruction_ = systemInstruction_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasourceReferences_ = + datasourceReferencesBuilder_ == null + ? datasourceReferences_ + : datasourceReferencesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.Context) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.Context) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.Context other) { + if (other == com.google.cloud.geminidataanalytics.v1beta.Context.getDefaultInstance()) + return this; + if (!other.getSystemInstruction().isEmpty()) { + systemInstruction_ = other.systemInstruction_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDatasourceReferences()) { + mergeDatasourceReferences(other.getDatasourceReferences()); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + if (exampleQueriesBuilder_ == null) { + if (!other.exampleQueries_.isEmpty()) { + if (exampleQueries_.isEmpty()) { + exampleQueries_ = other.exampleQueries_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureExampleQueriesIsMutable(); + exampleQueries_.addAll(other.exampleQueries_); + } + onChanged(); + } + } else { + if (!other.exampleQueries_.isEmpty()) { + if (exampleQueriesBuilder_.isEmpty()) { + exampleQueriesBuilder_.dispose(); + exampleQueriesBuilder_ = null; + exampleQueries_ = other.exampleQueries_; + bitField0_ = (bitField0_ & ~0x00000008); + exampleQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExampleQueriesFieldBuilder() + : null; + } else { + exampleQueriesBuilder_.addAllMessages(other.exampleQueries_); + } + } + } + if (glossaryTermsBuilder_ == null) { + if (!other.glossaryTerms_.isEmpty()) { + if (glossaryTerms_.isEmpty()) { + glossaryTerms_ = other.glossaryTerms_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGlossaryTermsIsMutable(); + glossaryTerms_.addAll(other.glossaryTerms_); + } + onChanged(); + } + } else { + if (!other.glossaryTerms_.isEmpty()) { + if (glossaryTermsBuilder_.isEmpty()) { + glossaryTermsBuilder_.dispose(); + glossaryTermsBuilder_ = null; + glossaryTerms_ = other.glossaryTerms_; + bitField0_ = (bitField0_ & ~0x00000010); + glossaryTermsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGlossaryTermsFieldBuilder() + : null; + } else { + glossaryTermsBuilder_.addAllMessages(other.glossaryTerms_); + } + } + } + if (schemaRelationshipsBuilder_ == null) { + if (!other.schemaRelationships_.isEmpty()) { + if (schemaRelationships_.isEmpty()) { + schemaRelationships_ = other.schemaRelationships_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.addAll(other.schemaRelationships_); + } + onChanged(); + } + } else { + if (!other.schemaRelationships_.isEmpty()) { + if (schemaRelationshipsBuilder_.isEmpty()) { + schemaRelationshipsBuilder_.dispose(); + schemaRelationshipsBuilder_ = null; + schemaRelationships_ = other.schemaRelationships_; + bitField0_ = (bitField0_ & ~0x00000020); + schemaRelationshipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSchemaRelationshipsFieldBuilder() + : null; + } else { + schemaRelationshipsBuilder_.addAllMessages(other.schemaRelationships_); + } + } + } + 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: + { + systemInstruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.parser(), + extensionRegistry); + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + exampleQueries_.add(m); + } else { + exampleQueriesBuilder_.addMessage(m); + } + break; + } // case 42 + case 58: + { + input.readMessage( + getDatasourceReferencesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 58 + case 66: + { + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.parser(), + extensionRegistry); + if (glossaryTermsBuilder_ == null) { + ensureGlossaryTermsIsMutable(); + glossaryTerms_.add(m); + } else { + glossaryTermsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .parser(), + extensionRegistry); + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(m); + } else { + schemaRelationshipsBuilder_.addMessage(m); + } + break; + } // case 74 + 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 systemInstruction_ = ""; + + /** + * + * + *
                                          +     * Optional. The basic entry point for data owners creating domain knowledge
                                          +     * for Agent.
                                          +     *
                                          +     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          +     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          +     * can help the model understand the business context around a user question.
                                          +     * 
                                          + * + * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemInstruction. + */ + public java.lang.String getSystemInstruction() { + java.lang.Object ref = systemInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + systemInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The basic entry point for data owners creating domain knowledge
                                          +     * for Agent.
                                          +     *
                                          +     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          +     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          +     * can help the model understand the business context around a user question.
                                          +     * 
                                          + * + * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemInstruction. + */ + public com.google.protobuf.ByteString getSystemInstructionBytes() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Optional. The basic entry point for data owners creating domain knowledge
                                          +     * for Agent.
                                          +     *
                                          +     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          +     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          +     * can help the model understand the business context around a user question.
                                          +     * 
                                          + * + * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The systemInstruction to set. + * @return This builder for chaining. + */ + public Builder setSystemInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The basic entry point for data owners creating domain knowledge
                                          +     * for Agent.
                                          +     *
                                          +     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          +     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          +     * can help the model understand the business context around a user question.
                                          +     * 
                                          + * + * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSystemInstruction() { + systemInstruction_ = getDefaultInstance().getSystemInstruction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The basic entry point for data owners creating domain knowledge
                                          +     * for Agent.
                                          +     *
                                          +     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          +     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          +     * can help the model understand the business context around a user question.
                                          +     * 
                                          + * + * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for systemInstruction to set. + * @return This builder for chaining. + */ + public Builder setSystemInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + systemInstruction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasourceReferences_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder> + datasourceReferencesBuilder_; + + /** + * + * + *
                                          +     * Required. Data sources that are available for answering the question.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasourceReferences field is set. + */ + public boolean hasDatasourceReferences() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Required. Data sources that are available for answering the question.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasourceReferences. + */ + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences + getDatasourceReferences() { + if (datasourceReferencesBuilder_ == null) { + return datasourceReferences_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() + : datasourceReferences_; + } else { + return datasourceReferencesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Required. Data sources that are available for answering the question.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasourceReferences( + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences value) { + if (datasourceReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasourceReferences_ = value; + } else { + datasourceReferencesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. Data sources that are available for answering the question.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasourceReferences( + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder builderForValue) { + if (datasourceReferencesBuilder_ == null) { + datasourceReferences_ = builderForValue.build(); + } else { + datasourceReferencesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. Data sources that are available for answering the question.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatasourceReferences( + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences value) { + if (datasourceReferencesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && datasourceReferences_ != null + && datasourceReferences_ + != com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences + .getDefaultInstance()) { + getDatasourceReferencesBuilder().mergeFrom(value); + } else { + datasourceReferences_ = value; + } + } else { + datasourceReferencesBuilder_.mergeFrom(value); + } + if (datasourceReferences_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Required. Data sources that are available for answering the question.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatasourceReferences() { + bitField0_ = (bitField0_ & ~0x00000002); + datasourceReferences_ = null; + if (datasourceReferencesBuilder_ != null) { + datasourceReferencesBuilder_.dispose(); + datasourceReferencesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. Data sources that are available for answering the question.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder + getDatasourceReferencesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDatasourceReferencesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Required. Data sources that are available for answering the question.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder + getDatasourceReferencesOrBuilder() { + if (datasourceReferencesBuilder_ != null) { + return datasourceReferencesBuilder_.getMessageOrBuilder(); + } else { + return datasourceReferences_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() + : datasourceReferences_; + } + } + + /** + * + * + *
                                          +     * Required. Data sources that are available for answering the question.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder> + getDatasourceReferencesFieldBuilder() { + if (datasourceReferencesBuilder_ == null) { + datasourceReferencesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder>( + getDatasourceReferences(), getParentForChildren(), isClean()); + datasourceReferences_ = null; + } + return datasourceReferencesBuilder_; + } + + private com.google.cloud.geminidataanalytics.v1beta.ConversationOptions options_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ConversationOptions, + com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder, + com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder> + optionsBuilder_; + + /** + * + * + *
                                          +     * Optional. Additional options for the conversation.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +     * Optional. Additional options for the conversation.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The options. + */ + public com.google.cloud.geminidataanalytics.v1beta.ConversationOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null + ? com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.getDefaultInstance() + : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Optional. Additional options for the conversation.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOptions( + com.google.cloud.geminidataanalytics.v1beta.ConversationOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + } else { + optionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Additional options for the conversation.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOptions( + com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Additional options for the conversation.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOptions( + com.google.cloud.geminidataanalytics.v1beta.ConversationOptions value) { + if (optionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && options_ != null + && options_ + != com.google.cloud.geminidataanalytics.v1beta.ConversationOptions + .getDefaultInstance()) { + getOptionsBuilder().mergeFrom(value); + } else { + options_ = value; + } + } else { + optionsBuilder_.mergeFrom(value); + } + if (options_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Additional options for the conversation.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOptions() { + bitField0_ = (bitField0_ & ~0x00000004); + options_ = null; + if (optionsBuilder_ != null) { + optionsBuilder_.dispose(); + optionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Additional options for the conversation.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder + getOptionsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. Additional options for the conversation.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder + getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null + ? com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.getDefaultInstance() + : options_; + } + } + + /** + * + * + *
                                          +     * Optional. Additional options for the conversation.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ConversationOptions, + com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder, + com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ConversationOptions, + com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder, + com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder>( + getOptions(), getParentForChildren(), isClean()); + options_ = null; + } + return optionsBuilder_; + } + + private java.util.List + exampleQueries_ = java.util.Collections.emptyList(); + + private void ensureExampleQueriesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + exampleQueries_ = + new java.util.ArrayList( + exampleQueries_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> + exampleQueriesBuilder_; + + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExampleQueriesList() { + if (exampleQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(exampleQueries_); + } else { + return exampleQueriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getExampleQueriesCount() { if (exampleQueriesBuilder_ == null) { - exampleQueries_ = java.util.Collections.emptyList(); + return exampleQueries_.size(); } else { - exampleQueries_ = null; - exampleQueriesBuilder_.clear(); + return exampleQueriesBuilder_.getCount(); } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.ContextProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Context_descriptor; } - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Context getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.Context.getDefaultInstance(); + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery getExampleQueries(int index) { + if (exampleQueriesBuilder_ == null) { + return exampleQueries_.get(index); + } else { + return exampleQueriesBuilder_.getMessage(index); + } } - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Context build() { - com.google.cloud.geminidataanalytics.v1beta.Context result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExampleQueries( + int index, com.google.cloud.geminidataanalytics.v1beta.ExampleQuery value) { + if (exampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExampleQueriesIsMutable(); + exampleQueries_.set(index, value); + onChanged(); + } else { + exampleQueriesBuilder_.setMessage(index, value); } - return result; + return this; } - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Context buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.Context result = - new com.google.cloud.geminidataanalytics.v1beta.Context(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExampleQueries( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder builderForValue) { + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + exampleQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + exampleQueriesBuilder_.setMessage(index, builderForValue.build()); } - onBuilt(); - return result; + return this; } - private void buildPartialRepeatedFields( - com.google.cloud.geminidataanalytics.v1beta.Context result) { + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExampleQueries( + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery value) { if (exampleQueriesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - exampleQueries_ = java.util.Collections.unmodifiableList(exampleQueries_); - bitField0_ = (bitField0_ & ~0x00000008); + if (value == null) { + throw new NullPointerException(); } - result.exampleQueries_ = exampleQueries_; + ensureExampleQueriesIsMutable(); + exampleQueries_.add(value); + onChanged(); } else { - result.exampleQueries_ = exampleQueriesBuilder_.build(); + exampleQueriesBuilder_.addMessage(value); } + return this; } - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.Context result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.systemInstruction_ = systemInstruction_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.datasourceReferences_ = - datasourceReferencesBuilder_ == null - ? datasourceReferences_ - : datasourceReferencesBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); - to_bitField0_ |= 0x00000002; + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExampleQueries( + int index, com.google.cloud.geminidataanalytics.v1beta.ExampleQuery value) { + if (exampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExampleQueriesIsMutable(); + exampleQueries_.add(index, value); + onChanged(); + } else { + exampleQueriesBuilder_.addMessage(index, value); } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.Context) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.Context) other); + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExampleQueries( + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder builderForValue) { + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + exampleQueries_.add(builderForValue.build()); + onChanged(); } else { - super.mergeFrom(other); - return this; + exampleQueriesBuilder_.addMessage(builderForValue.build()); } + return this; } - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.Context other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.Context.getDefaultInstance()) - return this; - if (!other.getSystemInstruction().isEmpty()) { - systemInstruction_ = other.systemInstruction_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasDatasourceReferences()) { - mergeDatasourceReferences(other.getDatasourceReferences()); - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExampleQueries( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder builderForValue) { if (exampleQueriesBuilder_ == null) { - if (!other.exampleQueries_.isEmpty()) { - if (exampleQueries_.isEmpty()) { - exampleQueries_ = other.exampleQueries_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureExampleQueriesIsMutable(); - exampleQueries_.addAll(other.exampleQueries_); - } - onChanged(); - } + ensureExampleQueriesIsMutable(); + exampleQueries_.add(index, builderForValue.build()); + onChanged(); } else { - if (!other.exampleQueries_.isEmpty()) { - if (exampleQueriesBuilder_.isEmpty()) { - exampleQueriesBuilder_.dispose(); - exampleQueriesBuilder_ = null; - exampleQueries_ = other.exampleQueries_; - bitField0_ = (bitField0_ & ~0x00000008); - exampleQueriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getExampleQueriesFieldBuilder() - : null; - } else { - exampleQueriesBuilder_.addAllMessages(other.exampleQueries_); - } - } + exampleQueriesBuilder_.addMessage(index, builderForValue.build()); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllExampleQueries( + java.lang.Iterable + values) { + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exampleQueries_); + onChanged(); + } else { + exampleQueriesBuilder_.addAllMessages(values); + } + return this; } - @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: - { - systemInstruction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.parser(), - extensionRegistry); - if (exampleQueriesBuilder_ == null) { - ensureExampleQueriesIsMutable(); - exampleQueries_.add(m); - } else { - exampleQueriesBuilder_.addMessage(m); - } - break; - } // case 42 - case 58: - { - input.readMessage( - getDatasourceReferencesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 58 - 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 { + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExampleQueries() { + if (exampleQueriesBuilder_ == null) { + exampleQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); - } // finally + } else { + exampleQueriesBuilder_.clear(); + } return this; } - private int bitField0_; - - private java.lang.Object systemInstruction_ = ""; - /** * * *
                                          -     * Optional. The basic entry point for data owners creating domain knowledge
                                          -     * for Agent.
                                          -     *
                                          -     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          -     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          -     * can help the model understand the business context around a user question.
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                                * 
                                          * - * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The systemInstruction. + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getSystemInstruction() { - java.lang.Object ref = systemInstruction_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - systemInstruction_ = s; - return s; + public Builder removeExampleQueries(int index) { + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + exampleQueries_.remove(index); + onChanged(); } else { - return (java.lang.String) ref; + exampleQueriesBuilder_.remove(index); } + return this; } /** * * *
                                          -     * Optional. The basic entry point for data owners creating domain knowledge
                                          -     * for Agent.
                                          -     *
                                          -     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          -     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          -     * can help the model understand the business context around a user question.
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                                * 
                                          * - * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder + getExampleQueriesBuilder(int index) { + return getExampleQueriesFieldBuilder().getBuilder(index); + } + + /** * - * @return The bytes for systemInstruction. + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getSystemInstructionBytes() { - java.lang.Object ref = systemInstruction_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - systemInstruction_ = b; - return b; + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder + getExampleQueriesOrBuilder(int index) { + if (exampleQueriesBuilder_ == null) { + return exampleQueries_.get(index); } else { - return (com.google.protobuf.ByteString) ref; + return exampleQueriesBuilder_.getMessageOrBuilder(index); } } @@ -908,125 +5340,157 @@ public com.google.protobuf.ByteString getSystemInstructionBytes() { * * *
                                          -     * Optional. The basic entry point for data owners creating domain knowledge
                                          -     * for Agent.
                                          -     *
                                          -     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          -     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          -     * can help the model understand the business context around a user question.
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                                * 
                                          * - * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The systemInstruction to set. - * @return This builder for chaining. + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSystemInstruction(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> + getExampleQueriesOrBuilderList() { + if (exampleQueriesBuilder_ != null) { + return exampleQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exampleQueries_); } - systemInstruction_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } /** * * *
                                          -     * Optional. The basic entry point for data owners creating domain knowledge
                                          -     * for Agent.
                                          -     *
                                          -     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          -     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          -     * can help the model understand the business context around a user question.
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder + addExampleQueriesBuilder() { + return getExampleQueriesFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                                * 
                                          * - * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSystemInstruction() { - systemInstruction_ = getDefaultInstance().getSystemInstruction(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder + addExampleQueriesBuilder(int index) { + return getExampleQueriesFieldBuilder() + .addBuilder( + index, com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.getDefaultInstance()); } /** * * *
                                          -     * Optional. The basic entry point for data owners creating domain knowledge
                                          -     * for Agent.
                                          -     *
                                          -     * Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age
                                          -     * is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
                                          -     * can help the model understand the business context around a user question.
                                          +     * Optional. A list of example queries, providing examples of relevant and
                                          +     * commonly used SQL queries and their corresponding natural language queries
                                          +     * optionally present. Currently only used for BigQuery data sources.
                                                * 
                                          * - * string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for systemInstruction to set. - * @return This builder for chaining. + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSystemInstructionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getExampleQueriesBuilderList() { + return getExampleQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> + getExampleQueriesFieldBuilder() { + if (exampleQueriesBuilder_ == null) { + exampleQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder>( + exampleQueries_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + exampleQueries_ = null; } - checkByteStringIsUtf8(value); - systemInstruction_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + return exampleQueriesBuilder_; } - private com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasourceReferences_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences, - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder, - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder> - datasourceReferencesBuilder_; + private java.util.List + glossaryTerms_ = java.util.Collections.emptyList(); + + private void ensureGlossaryTermsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + glossaryTerms_ = + new java.util.ArrayList( + glossaryTerms_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTermOrBuilder> + glossaryTermsBuilder_; /** * * *
                                          -     * Required. Data sources that are available for answering the question.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the datasourceReferences field is set. */ - public boolean hasDatasourceReferences() { - return ((bitField0_ & 0x00000002) != 0); + public java.util.List + getGlossaryTermsList() { + if (glossaryTermsBuilder_ == null) { + return java.util.Collections.unmodifiableList(glossaryTerms_); + } else { + return glossaryTermsBuilder_.getMessageList(); + } } /** * * *
                                          -     * Required. Data sources that are available for answering the question.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The datasourceReferences. */ - public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences - getDatasourceReferences() { - if (datasourceReferencesBuilder_ == null) { - return datasourceReferences_ == null - ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() - : datasourceReferences_; + public int getGlossaryTermsCount() { + if (glossaryTermsBuilder_ == null) { + return glossaryTerms_.size(); } else { - return datasourceReferencesBuilder_.getMessage(); + return glossaryTermsBuilder_.getCount(); } } @@ -1034,48 +5498,44 @@ public boolean hasDatasourceReferences() { * * *
                                          -     * Required. Data sources that are available for answering the question.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setDatasourceReferences( - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences value) { - if (datasourceReferencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - datasourceReferences_ = value; + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm getGlossaryTerms(int index) { + if (glossaryTermsBuilder_ == null) { + return glossaryTerms_.get(index); } else { - datasourceReferencesBuilder_.setMessage(value); + return glossaryTermsBuilder_.getMessage(index); } - bitField0_ |= 0x00000002; - onChanged(); - return this; } /** * * *
                                          -     * Required. Data sources that are available for answering the question.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setDatasourceReferences( - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder builderForValue) { - if (datasourceReferencesBuilder_ == null) { - datasourceReferences_ = builderForValue.build(); + public Builder setGlossaryTerms( + int index, com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm value) { + if (glossaryTermsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGlossaryTermsIsMutable(); + glossaryTerms_.set(index, value); + onChanged(); } else { - datasourceReferencesBuilder_.setMessage(builderForValue.build()); + glossaryTermsBuilder_.setMessage(index, value); } - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -1083,31 +5543,22 @@ public Builder setDatasourceReferences( * * *
                                          -     * Required. Data sources that are available for answering the question.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeDatasourceReferences( - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences value) { - if (datasourceReferencesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && datasourceReferences_ != null - && datasourceReferences_ - != com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences - .getDefaultInstance()) { - getDatasourceReferencesBuilder().mergeFrom(value); - } else { - datasourceReferences_ = value; - } - } else { - datasourceReferencesBuilder_.mergeFrom(value); - } - if (datasourceReferences_ != null) { - bitField0_ |= 0x00000002; + public Builder setGlossaryTerms( + int index, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder builderForValue) { + if (glossaryTermsBuilder_ == null) { + ensureGlossaryTermsIsMutable(); + glossaryTerms_.set(index, builderForValue.build()); onChanged(); + } else { + glossaryTermsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -1116,21 +5567,25 @@ public Builder mergeDatasourceReferences( * * *
                                          -     * Required. Data sources that are available for answering the question.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearDatasourceReferences() { - bitField0_ = (bitField0_ & ~0x00000002); - datasourceReferences_ = null; - if (datasourceReferencesBuilder_ != null) { - datasourceReferencesBuilder_.dispose(); - datasourceReferencesBuilder_ = null; + public Builder addGlossaryTerms( + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm value) { + if (glossaryTermsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGlossaryTermsIsMutable(); + glossaryTerms_.add(value); + onChanged(); + } else { + glossaryTermsBuilder_.addMessage(value); } - onChanged(); return this; } @@ -1138,140 +5593,140 @@ public Builder clearDatasourceReferences() { * * *
                                          -     * Required. Data sources that are available for answering the question.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder - getDatasourceReferencesBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getDatasourceReferencesFieldBuilder().getBuilder(); + public Builder addGlossaryTerms( + int index, com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm value) { + if (glossaryTermsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGlossaryTermsIsMutable(); + glossaryTerms_.add(index, value); + onChanged(); + } else { + glossaryTermsBuilder_.addMessage(index, value); + } + return this; } /** * * *
                                          -     * Required. Data sources that are available for answering the question.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder - getDatasourceReferencesOrBuilder() { - if (datasourceReferencesBuilder_ != null) { - return datasourceReferencesBuilder_.getMessageOrBuilder(); + public Builder addGlossaryTerms( + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder builderForValue) { + if (glossaryTermsBuilder_ == null) { + ensureGlossaryTermsIsMutable(); + glossaryTerms_.add(builderForValue.build()); + onChanged(); } else { - return datasourceReferences_ == null - ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() - : datasourceReferences_; + glossaryTermsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
                                          -     * Required. Data sources that are available for answering the question.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences, - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder, - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder> - getDatasourceReferencesFieldBuilder() { - if (datasourceReferencesBuilder_ == null) { - datasourceReferencesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences, - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder, - com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder>( - getDatasourceReferences(), getParentForChildren(), isClean()); - datasourceReferences_ = null; + public Builder addGlossaryTerms( + int index, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder builderForValue) { + if (glossaryTermsBuilder_ == null) { + ensureGlossaryTermsIsMutable(); + glossaryTerms_.add(index, builderForValue.build()); + onChanged(); + } else { + glossaryTermsBuilder_.addMessage(index, builderForValue.build()); } - return datasourceReferencesBuilder_; + return this; } - private com.google.cloud.geminidataanalytics.v1beta.ConversationOptions options_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.geminidataanalytics.v1beta.ConversationOptions, - com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder, - com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder> - optionsBuilder_; - /** * * *
                                          -     * Optional. Additional options for the conversation.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the options field is set. */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); + public Builder addAllGlossaryTerms( + java.lang.Iterable + values) { + if (glossaryTermsBuilder_ == null) { + ensureGlossaryTermsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, glossaryTerms_); + onChanged(); + } else { + glossaryTermsBuilder_.addAllMessages(values); + } + return this; } /** * * *
                                          -     * Optional. Additional options for the conversation.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The options. */ - public com.google.cloud.geminidataanalytics.v1beta.ConversationOptions getOptions() { - if (optionsBuilder_ == null) { - return options_ == null - ? com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.getDefaultInstance() - : options_; + public Builder clearGlossaryTerms() { + if (glossaryTermsBuilder_ == null) { + glossaryTerms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); } else { - return optionsBuilder_.getMessage(); + glossaryTermsBuilder_.clear(); } + return this; } /** * * *
                                          -     * Optional. Additional options for the conversation.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setOptions( - com.google.cloud.geminidataanalytics.v1beta.ConversationOptions value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; + public Builder removeGlossaryTerms(int index) { + if (glossaryTermsBuilder_ == null) { + ensureGlossaryTermsIsMutable(); + glossaryTerms_.remove(index); + onChanged(); } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); + glossaryTermsBuilder_.remove(index); + } return this; } @@ -1279,185 +5734,168 @@ public Builder setOptions( * * *
                                          -     * Optional. Additional options for the conversation.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setOptions( - com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder getGlossaryTermsBuilder( + int index) { + return getGlossaryTermsFieldBuilder().getBuilder(index); } /** * * *
                                          -     * Optional. Additional options for the conversation.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeOptions( - com.google.cloud.geminidataanalytics.v1beta.ConversationOptions value) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && options_ != null - && options_ - != com.google.cloud.geminidataanalytics.v1beta.ConversationOptions - .getDefaultInstance()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTermOrBuilder + getGlossaryTermsOrBuilder(int index) { + if (glossaryTermsBuilder_ == null) { + return glossaryTerms_.get(index); } else { - optionsBuilder_.mergeFrom(value); - } - if (options_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + return glossaryTermsBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
                                          -     * Optional. Additional options for the conversation.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000004); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.GlossaryTermOrBuilder> + getGlossaryTermsOrBuilderList() { + if (glossaryTermsBuilder_ != null) { + return glossaryTermsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(glossaryTerms_); } - onChanged(); - return this; } /** * * *
                                          -     * Optional. Additional options for the conversation.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder - getOptionsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder + addGlossaryTermsBuilder() { + return getGlossaryTermsFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.getDefaultInstance()); } /** * * *
                                          -     * Optional. Additional options for the conversation.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder - getOptionsOrBuilder() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilder(); - } else { - return options_ == null - ? com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.getDefaultInstance() - : options_; - } + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder addGlossaryTermsBuilder( + int index) { + return getGlossaryTermsFieldBuilder() + .addBuilder( + index, com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.getDefaultInstance()); } /** * * *
                                          -     * Optional. Additional options for the conversation.
                                          +     * Optional. Term definitions (currently, only user authored)
                                                * 
                                          * * - * .google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.geminidataanalytics.v1beta.ConversationOptions, - com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder, - com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.geminidataanalytics.v1beta.ConversationOptions, - com.google.cloud.geminidataanalytics.v1beta.ConversationOptions.Builder, - com.google.cloud.geminidataanalytics.v1beta.ConversationOptionsOrBuilder>( - getOptions(), getParentForChildren(), isClean()); - options_ = null; + public java.util.List + getGlossaryTermsBuilderList() { + return getGlossaryTermsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTermOrBuilder> + getGlossaryTermsFieldBuilder() { + if (glossaryTermsBuilder_ == null) { + glossaryTermsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTermOrBuilder>( + glossaryTerms_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + glossaryTerms_ = null; } - return optionsBuilder_; + return glossaryTermsBuilder_; } - private java.util.List - exampleQueries_ = java.util.Collections.emptyList(); + private java.util.List + schemaRelationships_ = java.util.Collections.emptyList(); - private void ensureExampleQueriesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - exampleQueries_ = - new java.util.ArrayList( - exampleQueries_); - bitField0_ |= 0x00000008; + private void ensureSchemaRelationshipsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + schemaRelationships_ = + new java.util.ArrayList< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship>( + schemaRelationships_); + bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery, - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder, - com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> - exampleQueriesBuilder_; + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder> + schemaRelationshipsBuilder_; /** * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getExampleQueriesList() { - if (exampleQueriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(exampleQueries_); + public java.util.List + getSchemaRelationshipsList() { + if (schemaRelationshipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(schemaRelationships_); } else { - return exampleQueriesBuilder_.getMessageList(); + return schemaRelationshipsBuilder_.getMessageList(); } } @@ -1465,20 +5903,19 @@ private void ensureExampleQueriesIsMutable() { * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public int getExampleQueriesCount() { - if (exampleQueriesBuilder_ == null) { - return exampleQueries_.size(); + public int getSchemaRelationshipsCount() { + if (schemaRelationshipsBuilder_ == null) { + return schemaRelationships_.size(); } else { - return exampleQueriesBuilder_.getCount(); + return schemaRelationshipsBuilder_.getCount(); } } @@ -1486,20 +5923,20 @@ public int getExampleQueriesCount() { * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery getExampleQueries(int index) { - if (exampleQueriesBuilder_ == null) { - return exampleQueries_.get(index); + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + getSchemaRelationships(int index) { + if (schemaRelationshipsBuilder_ == null) { + return schemaRelationships_.get(index); } else { - return exampleQueriesBuilder_.getMessage(index); + return schemaRelationshipsBuilder_.getMessage(index); } } @@ -1507,26 +5944,25 @@ public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery getExampleQuerie * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setExampleQueries( - int index, com.google.cloud.geminidataanalytics.v1beta.ExampleQuery value) { - if (exampleQueriesBuilder_ == null) { + public Builder setSchemaRelationships( + int index, com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship value) { + if (schemaRelationshipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureExampleQueriesIsMutable(); - exampleQueries_.set(index, value); + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.set(index, value); onChanged(); } else { - exampleQueriesBuilder_.setMessage(index, value); + schemaRelationshipsBuilder_.setMessage(index, value); } return this; } @@ -1535,24 +5971,24 @@ public Builder setExampleQueries( * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setExampleQueries( + public Builder setSchemaRelationships( int index, - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder builderForValue) { - if (exampleQueriesBuilder_ == null) { - ensureExampleQueriesIsMutable(); - exampleQueries_.set(index, builderForValue.build()); + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder + builderForValue) { + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.set(index, builderForValue.build()); onChanged(); } else { - exampleQueriesBuilder_.setMessage(index, builderForValue.build()); + schemaRelationshipsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -1561,26 +5997,25 @@ public Builder setExampleQueries( * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addExampleQueries( - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery value) { - if (exampleQueriesBuilder_ == null) { + public Builder addSchemaRelationships( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship value) { + if (schemaRelationshipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureExampleQueriesIsMutable(); - exampleQueries_.add(value); + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(value); onChanged(); } else { - exampleQueriesBuilder_.addMessage(value); + schemaRelationshipsBuilder_.addMessage(value); } return this; } @@ -1589,26 +6024,25 @@ public Builder addExampleQueries( * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addExampleQueries( - int index, com.google.cloud.geminidataanalytics.v1beta.ExampleQuery value) { - if (exampleQueriesBuilder_ == null) { + public Builder addSchemaRelationships( + int index, com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship value) { + if (schemaRelationshipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureExampleQueriesIsMutable(); - exampleQueries_.add(index, value); + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(index, value); onChanged(); } else { - exampleQueriesBuilder_.addMessage(index, value); + schemaRelationshipsBuilder_.addMessage(index, value); } return this; } @@ -1617,23 +6051,23 @@ public Builder addExampleQueries( * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addExampleQueries( - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder builderForValue) { - if (exampleQueriesBuilder_ == null) { - ensureExampleQueriesIsMutable(); - exampleQueries_.add(builderForValue.build()); + public Builder addSchemaRelationships( + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder + builderForValue) { + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(builderForValue.build()); onChanged(); } else { - exampleQueriesBuilder_.addMessage(builderForValue.build()); + schemaRelationshipsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -1642,24 +6076,24 @@ public Builder addExampleQueries( * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addExampleQueries( + public Builder addSchemaRelationships( int index, - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder builderForValue) { - if (exampleQueriesBuilder_ == null) { - ensureExampleQueriesIsMutable(); - exampleQueries_.add(index, builderForValue.build()); + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder + builderForValue) { + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.add(index, builderForValue.build()); onChanged(); } else { - exampleQueriesBuilder_.addMessage(index, builderForValue.build()); + schemaRelationshipsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -1668,24 +6102,24 @@ public Builder addExampleQueries( * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllExampleQueries( - java.lang.Iterable + public Builder addAllSchemaRelationships( + java.lang.Iterable< + ? extends com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship> values) { - if (exampleQueriesBuilder_ == null) { - ensureExampleQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exampleQueries_); + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemaRelationships_); onChanged(); } else { - exampleQueriesBuilder_.addAllMessages(values); + schemaRelationshipsBuilder_.addAllMessages(values); } return this; } @@ -1694,22 +6128,21 @@ public Builder addAllExampleQueries( * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearExampleQueries() { - if (exampleQueriesBuilder_ == null) { - exampleQueries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearSchemaRelationships() { + if (schemaRelationshipsBuilder_ == null) { + schemaRelationships_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { - exampleQueriesBuilder_.clear(); + schemaRelationshipsBuilder_.clear(); } return this; } @@ -1718,22 +6151,21 @@ public Builder clearExampleQueries() { * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeExampleQueries(int index) { - if (exampleQueriesBuilder_ == null) { - ensureExampleQueriesIsMutable(); - exampleQueries_.remove(index); + public Builder removeSchemaRelationships(int index) { + if (schemaRelationshipsBuilder_ == null) { + ensureSchemaRelationshipsIsMutable(); + schemaRelationships_.remove(index); onChanged(); } else { - exampleQueriesBuilder_.remove(index); + schemaRelationshipsBuilder_.remove(index); } return this; } @@ -1742,39 +6174,37 @@ public Builder removeExampleQueries(int index) { * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder - getExampleQueriesBuilder(int index) { - return getExampleQueriesFieldBuilder().getBuilder(index); + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder + getSchemaRelationshipsBuilder(int index) { + return getSchemaRelationshipsFieldBuilder().getBuilder(index); } /** * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder - getExampleQueriesOrBuilder(int index) { - if (exampleQueriesBuilder_ == null) { - return exampleQueries_.get(index); + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder + getSchemaRelationshipsOrBuilder(int index) { + if (schemaRelationshipsBuilder_ == null) { + return schemaRelationships_.get(index); } else { - return exampleQueriesBuilder_.getMessageOrBuilder(index); + return schemaRelationshipsBuilder_.getMessageOrBuilder(index); } } @@ -1782,22 +6212,22 @@ public Builder removeExampleQueries(int index) { * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< - ? extends com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> - getExampleQueriesOrBuilderList() { - if (exampleQueriesBuilder_ != null) { - return exampleQueriesBuilder_.getMessageOrBuilderList(); + ? extends + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder> + getSchemaRelationshipsOrBuilderList() { + if (schemaRelationshipsBuilder_ != null) { + return schemaRelationshipsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(exampleQueries_); + return java.util.Collections.unmodifiableList(schemaRelationships_); } } @@ -1805,78 +6235,79 @@ public Builder removeExampleQueries(int index) { * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder - addExampleQueriesBuilder() { - return getExampleQueriesFieldBuilder() + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder + addSchemaRelationshipsBuilder() { + return getSchemaRelationshipsFieldBuilder() .addBuilder( - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.getDefaultInstance()); + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .getDefaultInstance()); } /** * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder - addExampleQueriesBuilder(int index) { - return getExampleQueriesFieldBuilder() + public com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder + addSchemaRelationshipsBuilder(int index) { + return getSchemaRelationshipsFieldBuilder() .addBuilder( - index, com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.getDefaultInstance()); + index, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship + .getDefaultInstance()); } /** * * *
                                          -     * Optional. A list of example queries, providing examples of relevant and
                                          -     * commonly used SQL queries and their corresponding natural language queries
                                          -     * optionally present.
                                          +     * Optional. Relationships between table schema, including referencing and
                                          +     * referenced columns.
                                                * 
                                          * * - * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getExampleQueriesBuilderList() { - return getExampleQueriesFieldBuilder().getBuilderList(); + public java.util.List< + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder> + getSchemaRelationshipsBuilderList() { + return getSchemaRelationshipsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery, - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder, - com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> - getExampleQueriesFieldBuilder() { - if (exampleQueriesBuilder_ == null) { - exampleQueriesBuilder_ = + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder> + getSchemaRelationshipsFieldBuilder() { + if (schemaRelationshipsBuilder_ == null) { + schemaRelationshipsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery, - com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder, - com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder>( - exampleQueries_, - ((bitField0_ & 0x00000008) != 0), + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Builder, + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder>( + schemaRelationships_, + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); - exampleQueries_ = null; + schemaRelationships_ = null; } - return exampleQueriesBuilder_; + return schemaRelationshipsBuilder_; } @java.lang.Override diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextOrBuilder.java index fbfb83033abe..5a4449043533 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextOrBuilder.java @@ -153,7 +153,7 @@ public interface ContextOrBuilder *
                                              * Optional. A list of example queries, providing examples of relevant and
                                              * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                              * 
                                          * * @@ -168,7 +168,7 @@ public interface ContextOrBuilder *
                                              * Optional. A list of example queries, providing examples of relevant and
                                              * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                              * 
                                          * * @@ -183,7 +183,7 @@ public interface ContextOrBuilder *
                                              * Optional. A list of example queries, providing examples of relevant and
                                              * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                              * 
                                          * * @@ -198,7 +198,7 @@ public interface ContextOrBuilder *
                                              * Optional. A list of example queries, providing examples of relevant and
                                              * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                              * 
                                          * * @@ -214,7 +214,7 @@ public interface ContextOrBuilder *
                                              * Optional. A list of example queries, providing examples of relevant and
                                              * commonly used SQL queries and their corresponding natural language queries
                                          -   * optionally present.
                                          +   * optionally present. Currently only used for BigQuery data sources.
                                              * 
                                          * * @@ -223,4 +223,146 @@ public interface ContextOrBuilder */ com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder getExampleQueriesOrBuilder( int index); + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getGlossaryTermsList(); + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm getGlossaryTerms(int index); + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getGlossaryTermsCount(); + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getGlossaryTermsOrBuilderList(); + + /** + * + * + *
                                          +   * Optional. Term definitions (currently, only user authored)
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.GlossaryTerm glossary_terms = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.GlossaryTermOrBuilder getGlossaryTermsOrBuilder( + int index); + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSchemaRelationshipsList(); + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship getSchemaRelationships( + int index); + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSchemaRelationshipsCount(); + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder> + getSchemaRelationshipsOrBuilderList(); + + /** + * + * + *
                                          +   * Optional. Relationships between table schema, including referencing and
                                          +   * referenced columns.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship schema_relationships = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipOrBuilder + getSchemaRelationshipsOrBuilder(int index); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextProto.java index 78ca0a61c058..602d7e23dd4d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ContextProto.java @@ -32,14 +32,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_geminidataanalytics_v1beta_Context_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1beta_Context_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQuery_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1beta_ConversationOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1beta_ConversationOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1beta_ChartOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -73,45 +89,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n5google/cloud/geminidataanalytics/v1bet" - + "a/context.proto\022\'google.cloud.geminidata" + "\n" + + "5google/cloud/geminidataanalytics/v1beta/context.proto\022\'google.cloud.geminidata" + "analytics.v1beta\032\037google/api/field_behav" + "ior.proto\0328google/cloud/geminidataanalyt" - + "ics/v1beta/datasource.proto\"\266\002\n\007Context\022" - + "\037\n\022system_instruction\030\001 \001(\tB\003\340A\001\022a\n\025data" - + "source_references\030\007 \001(\0132=.google.cloud.g" - + "eminidataanalytics.v1beta.DatasourceRefe" - + "rencesB\003\340A\002\022R\n\007options\030\003 \001(\0132<.google.cl" - + "oud.geminidataanalytics.v1beta.Conversat" - + "ionOptionsB\003\340A\001\022S\n\017example_queries\030\005 \003(\013" - + "25.google.cloud.geminidataanalytics.v1be" - + "ta.ExampleQueryB\003\340A\001\"Y\n\014ExampleQuery\022\030\n\t" - + "sql_query\030e \001(\tB\003\340A\001H\000\022&\n\031natural_langua" - + "ge_question\030\001 \001(\tB\003\340A\001B\007\n\005query\"\261\001\n\023Conv" - + "ersationOptions\022I\n\005chart\030\001 \001(\01325.google." - + "cloud.geminidataanalytics.v1beta.ChartOp" - + "tionsB\003\340A\001\022O\n\010analysis\030\002 \001(\01328.google.cl" - + "oud.geminidataanalytics.v1beta.AnalysisO" - + "ptionsB\003\340A\001\"\326\002\n\014ChartOptions\022V\n\005image\030\001 " - + "\001(\0132B.google.cloud.geminidataanalytics.v" - + "1beta.ChartOptions.ImageOptionsB\003\340A\001\032\355\001\n" - + "\014ImageOptions\022^\n\010no_image\030\001 \001(\0132J.google" - + ".cloud.geminidataanalytics.v1beta.ChartO" - + "ptions.ImageOptions.NoImageH\000\022\\\n\003svg\030\002 \001" - + "(\0132M.google.cloud.geminidataanalytics.v1" - + "beta.ChartOptions.ImageOptions.SvgOption" - + "sH\000\032\t\n\007NoImage\032\014\n\nSvgOptionsB\006\n\004kind\"\207\001\n" - + "\017AnalysisOptions\022T\n\006python\030\001 \001(\0132?.googl" - + "e.cloud.geminidataanalytics.v1beta.Analy" - + "sisOptions.PythonB\003\340A\001\032\036\n\006Python\022\024\n\007enab" - + "led\030\001 \001(\010B\003\340A\001B\235\002\n+com.google.cloud.gemi" - + "nidataanalytics.v1betaB\014ContextProtoP\001Z]" - + "cloud.google.com/go/geminidataanalytics/" - + "apiv1beta/geminidataanalyticspb;geminida" - + "taanalyticspb\252\002\'Google.Cloud.GeminiDataA" - + "nalytics.V1Beta\312\002\'Google\\Cloud\\GeminiDat" - + "aAnalytics\\V1beta\352\002*Google::Cloud::Gemin" - + "iDataAnalytics::V1betab\006proto3" + + "ics/v1beta/datasource.proto\032\036google/protobuf/wrappers.proto\"\371\007\n" + + "\007Context\022\037\n" + + "\022system_instruction\030\001 \001(\tB\003\340A\001\022a\n" + + "\025datasource_references\030\007 \001(\0132=.google.cloud.geminidat" + + "aanalytics.v1beta.DatasourceReferencesB\003\340A\002\022R\n" + + "\007options\030\003 \001(\0132<.google.cloud.gemi" + + "nidataanalytics.v1beta.ConversationOptionsB\003\340A\001\022S\n" + + "\017example_queries\030\005 \003(\01325.googl" + + "e.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\022R\n" + + "\016glossary_terms\030\010 \003(\01325.g" + + "oogle.cloud.geminidataanalytics.v1beta.GlossaryTermB\003\340A\001\022f\n" + + "\024schema_relationships\030\t \003(\0132C.google.cloud.geminidataanalytic" + + "s.v1beta.Context.SchemaRelationshipB\003\340A\001\032\204\004\n" + + "\022SchemaRelationship\022j\n" + + "\021left_schema_paths\030\001 \001(\0132O.google.cloud.geminidataanal" + + "ytics.v1beta.Context.SchemaRelationship.SchemaPaths\022k\n" + + "\022right_schema_paths\030\002 \001(\0132O.google.cloud.geminidataanalytics.v1bet" + + "a.Context.SchemaRelationship.SchemaPaths\022[\n" + + "\007sources\030\003 \003(\0162J.google.cloud.geminid" + + "ataanalytics.v1beta.Context.SchemaRelationship.Source\022\030\n" + + "\020confidence_score\030\004 \001(\002\032/\n" + + "\013SchemaPaths\022\021\n" + + "\ttable_fqn\030\001 \001(\t\022\r\n" + + "\005paths\030\002 \003(\t\"m\n" + + "\006Source\022\026\n" + + "\022SOURCE_UNSPECIFIED\020\000\022\030\n" + + "\024BIGQUERY_JOB_HISTORY\020\001\022\021\n\r" + + "LLM_SUGGESTED\020\002\022\036\n" + + "\032BIGQUERY_TABLE_CONSTRAINTS\020\003\"Y\n" + + "\014ExampleQuery\022\030\n" + + "\tsql_query\030e \001(\tB\003\340A\001H\000\022&\n" + + "\031natural_language_question\030\001 \001(\tB\003\340A\001B\007\n" + + "\005query\"X\n" + + "\014GlossaryTerm\022\031\n" + + "\014display_name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\002\022\023\n" + + "\006labels\030\003 \003(\tB\003\340A\001\"\206\002\n" + + "\023ConversationOptions\022I\n" + + "\005chart\030\001 \001(\01325.google.cloud.gemin" + + "idataanalytics.v1beta.ChartOptionsB\003\340A\001\022O\n" + + "\010analysis\030\002 \001(\01328.google.cloud.geminid" + + "ataanalytics.v1beta.AnalysisOptionsB\003\340A\001\022S\n\n" + + "datasource\030\003 \001(\0132:.google.cloud.gemi" + + "nidataanalytics.v1beta.DatasourceOptionsB\003\340A\001\"Y\n" + + "\021DatasourceOptions\022D\n" + + "\032big_query_max_billed_bytes\030\001" + + " \001(\0132\033.google.protobuf.Int64ValueB\003\340A\001\"\326\002\n" + + "\014ChartOptions\022V\n" + + "\005image\030\001 \001(\0132B.google.cloud.geminidataanalyt" + + "ics.v1beta.ChartOptions.ImageOptionsB\003\340A\001\032\355\001\n" + + "\014ImageOptions\022^\n" + + "\010no_image\030\001 \001(\0132J.g" + + "oogle.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\000\022\\\n" + + "\003svg\030\002 \001(\0132M.google.cloud.geminidataanalyti" + + "cs.v1beta.ChartOptions.ImageOptions.SvgOptionsH\000\032\t\n" + + "\007NoImage\032\014\n\n" + + "SvgOptionsB\006\n" + + "\004kind\"\207\001\n" + + "\017AnalysisOptions\022T\n" + + "\006python\030\001 \001(\0132?." + + "google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\003\340A\001\032\036\n" + + "\006Python\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\001B\235\002\n" + + "+com.google.cloud.geminidataanalytics.v1betaB\014ContextProt" + + "oP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;gem" + + "inidataanalyticspb\252\002\'Google.Cloud.Gemini" + + "DataAnalytics.V1Beta\312\002\'Google\\Cloud\\Gemi" + + "niDataAnalytics\\V1beta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -119,6 +168,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.geminidataanalytics.v1beta.DatasourceProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), }); internal_static_google_cloud_geminidataanalytics_v1beta_Context_descriptor = getDescriptor().getMessageTypes().get(0); @@ -126,7 +176,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Context_descriptor, new java.lang.String[] { - "SystemInstruction", "DatasourceReferences", "Options", "ExampleQueries", + "SystemInstruction", + "DatasourceReferences", + "Options", + "ExampleQueries", + "GlossaryTerms", + "SchemaRelationships", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_Context_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_descriptor, + new java.lang.String[] { + "LeftSchemaPaths", "RightSchemaPaths", "Sources", "ConfidenceScore", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_Context_SchemaRelationship_SchemaPaths_descriptor, + new java.lang.String[] { + "TableFqn", "Paths", }); internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQuery_descriptor = getDescriptor().getMessageTypes().get(1); @@ -136,16 +211,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SqlQuery", "NaturalLanguageQuestion", "Query", }); - internal_static_google_cloud_geminidataanalytics_v1beta_ConversationOptions_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_descriptor, + new java.lang.String[] { + "DisplayName", "Description", "Labels", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ConversationOptions_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_geminidataanalytics_v1beta_ConversationOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ConversationOptions_descriptor, new java.lang.String[] { - "Chart", "Analysis", + "Chart", "Analysis", "Datasource", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_descriptor, + new java.lang.String[] { + "BigQueryMaxBilledBytes", }); internal_static_google_cloud_geminidataanalytics_v1beta_ChartOptions_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_geminidataanalytics_v1beta_ChartOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ChartOptions_descriptor, @@ -179,7 +270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_geminidataanalytics_v1beta_ChartOptions_ImageOptions_SvgOptions_descriptor, new java.lang.String[] {}); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisOptions_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisOptions_descriptor, @@ -203,6 +294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.geminidataanalytics.v1beta.DatasourceProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Conversation.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Conversation.java index c297c21e3d6d..5de9787e00c8 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Conversation.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Conversation.java @@ -94,7 +94,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * https://google.aip.dev/122#resource-id-segments * * Example: - * `projects/1234567890/locations/us-central1/conversations/my-conversation`. + * `projects/1234567890/locations/global/conversations/my-conversation`. * * It is recommended to skip setting this field during conversation creation * as it will be inferred automatically and overwritten with the @@ -131,7 +131,7 @@ public java.lang.String getName() { * https://google.aip.dev/122#resource-id-segments * * Example: - * `projects/1234567890/locations/us-central1/conversations/my-conversation`. + * `projects/1234567890/locations/global/conversations/my-conversation`. * * It is recommended to skip setting this field during conversation creation * as it will be inferred automatically and overwritten with the @@ -993,7 +993,7 @@ public Builder mergeFrom( * https://google.aip.dev/122#resource-id-segments * * Example: - * `projects/1234567890/locations/us-central1/conversations/my-conversation`. + * `projects/1234567890/locations/global/conversations/my-conversation`. * * It is recommended to skip setting this field during conversation creation * as it will be inferred automatically and overwritten with the @@ -1029,7 +1029,7 @@ public java.lang.String getName() { * https://google.aip.dev/122#resource-id-segments * * Example: - * `projects/1234567890/locations/us-central1/conversations/my-conversation`. + * `projects/1234567890/locations/global/conversations/my-conversation`. * * It is recommended to skip setting this field during conversation creation * as it will be inferred automatically and overwritten with the @@ -1065,7 +1065,7 @@ public com.google.protobuf.ByteString getNameBytes() { * https://google.aip.dev/122#resource-id-segments * * Example: - * `projects/1234567890/locations/us-central1/conversations/my-conversation`. + * `projects/1234567890/locations/global/conversations/my-conversation`. * * It is recommended to skip setting this field during conversation creation * as it will be inferred automatically and overwritten with the @@ -1100,7 +1100,7 @@ public Builder setName(java.lang.String value) { * https://google.aip.dev/122#resource-id-segments * * Example: - * `projects/1234567890/locations/us-central1/conversations/my-conversation`. + * `projects/1234567890/locations/global/conversations/my-conversation`. * * It is recommended to skip setting this field during conversation creation * as it will be inferred automatically and overwritten with the @@ -1131,7 +1131,7 @@ public Builder clearName() { * https://google.aip.dev/122#resource-id-segments * * Example: - * `projects/1234567890/locations/us-central1/conversations/my-conversation`. + * `projects/1234567890/locations/global/conversations/my-conversation`. * * It is recommended to skip setting this field during conversation creation * as it will be inferred automatically and overwritten with the diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOptions.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOptions.java index 9b10b090b330..3530d36c6c65 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOptions.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOptions.java @@ -182,6 +182,66 @@ public com.google.cloud.geminidataanalytics.v1beta.AnalysisOptions getAnalysis() : analysis_; } + public static final int DATASOURCE_FIELD_NUMBER = 3; + private com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource_; + + /** + * + * + *
                                          +   * Optional. Options for datasources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the datasource field is set. + */ + @java.lang.Override + public boolean hasDatasource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +   * Optional. Options for datasources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The datasource. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions getDatasource() { + return datasource_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.getDefaultInstance() + : datasource_; + } + + /** + * + * + *
                                          +   * Optional. Options for datasources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsOrBuilder + getDatasourceOrBuilder() { + return datasource_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.getDefaultInstance() + : datasource_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -202,6 +262,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getAnalysis()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getDatasource()); + } getUnknownFields().writeTo(output); } @@ -217,6 +280,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnalysis()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDatasource()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -241,6 +307,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAnalysis()) { if (!getAnalysis().equals(other.getAnalysis())) return false; } + if (hasDatasource() != other.hasDatasource()) return false; + if (hasDatasource()) { + if (!getDatasource().equals(other.getDatasource())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,6 +330,10 @@ public int hashCode() { hash = (37 * hash) + ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + getAnalysis().hashCode(); } + if (hasDatasource()) { + hash = (37 * hash) + DATASOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDatasource().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -404,6 +478,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getChartFieldBuilder(); getAnalysisFieldBuilder(); + getDatasourceFieldBuilder(); } } @@ -421,6 +496,11 @@ public Builder clear() { analysisBuilder_.dispose(); analysisBuilder_ = null; } + datasource_ = null; + if (datasourceBuilder_ != null) { + datasourceBuilder_.dispose(); + datasourceBuilder_ = null; + } return this; } @@ -468,6 +548,10 @@ private void buildPartial0( result.analysis_ = analysisBuilder_ == null ? analysis_ : analysisBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.datasource_ = datasourceBuilder_ == null ? datasource_ : datasourceBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -525,6 +609,9 @@ public Builder mergeFrom( if (other.hasAnalysis()) { mergeAnalysis(other.getAnalysis()); } + if (other.hasDatasource()) { + mergeDatasource(other.getDatasource()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -563,6 +650,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + input.readMessage(getDatasourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1014,6 +1107,225 @@ public Builder clearAnalysis() { return analysisBuilder_; } + private com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions, + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.Builder, + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsOrBuilder> + datasourceBuilder_; + + /** + * + * + *
                                          +     * Optional. Options for datasources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the datasource field is set. + */ + public boolean hasDatasource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +     * Optional. Options for datasources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The datasource. + */ + public com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions getDatasource() { + if (datasourceBuilder_ == null) { + return datasource_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.getDefaultInstance() + : datasource_; + } else { + return datasourceBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Optional. Options for datasources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDatasource( + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions value) { + if (datasourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasource_ = value; + } else { + datasourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Options for datasources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDatasource( + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.Builder builderForValue) { + if (datasourceBuilder_ == null) { + datasource_ = builderForValue.build(); + } else { + datasourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Options for datasources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDatasource( + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions value) { + if (datasourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && datasource_ != null + && datasource_ + != com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions + .getDefaultInstance()) { + getDatasourceBuilder().mergeFrom(value); + } else { + datasource_ = value; + } + } else { + datasourceBuilder_.mergeFrom(value); + } + if (datasource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. Options for datasources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDatasource() { + bitField0_ = (bitField0_ & ~0x00000004); + datasource_ = null; + if (datasourceBuilder_ != null) { + datasourceBuilder_.dispose(); + datasourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. Options for datasources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.Builder + getDatasourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDatasourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. Options for datasources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsOrBuilder + getDatasourceOrBuilder() { + if (datasourceBuilder_ != null) { + return datasourceBuilder_.getMessageOrBuilder(); + } else { + return datasource_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.getDefaultInstance() + : datasource_; + } + } + + /** + * + * + *
                                          +     * Optional. Options for datasources.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions, + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.Builder, + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsOrBuilder> + getDatasourceFieldBuilder() { + if (datasourceBuilder_ == null) { + datasourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions, + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.Builder, + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsOrBuilder>( + getDatasource(), getParentForChildren(), isClean()); + datasource_ = null; + } + return datasourceBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOptionsOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOptionsOrBuilder.java index 4e3bc7f95a0f..c1f688ffdbe0 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOptionsOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOptionsOrBuilder.java @@ -109,4 +109,47 @@ public interface ConversationOptionsOrBuilder *
                                          */ com.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsOrBuilder getAnalysisOrBuilder(); + + /** + * + * + *
                                          +   * Optional. Options for datasources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the datasource field is set. + */ + boolean hasDatasource(); + + /** + * + * + *
                                          +   * Optional. Options for datasources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The datasource. + */ + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions getDatasource(); + + /** + * + * + *
                                          +   * Optional. Options for datasources.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceOptions datasource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsOrBuilder getDatasourceOrBuilder(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOrBuilder.java index a2298794a5b6..bed4411ffb57 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationOrBuilder.java @@ -35,7 +35,7 @@ public interface ConversationOrBuilder * https://google.aip.dev/122#resource-id-segments * * Example: - * `projects/1234567890/locations/us-central1/conversations/my-conversation`. + * `projects/1234567890/locations/global/conversations/my-conversation`. * * It is recommended to skip setting this field during conversation creation * as it will be inferred automatically and overwritten with the @@ -61,7 +61,7 @@ public interface ConversationOrBuilder * https://google.aip.dev/122#resource-id-segments * * Example: - * `projects/1234567890/locations/us-central1/conversations/my-conversation`. + * `projects/1234567890/locations/global/conversations/my-conversation`. * * It is recommended to skip setting this field during conversation creation * as it will be inferred automatically and overwritten with the diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationProto.java index ff7c3b88d1cf..c5676b8ddb09 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_geminidataanalytics_v1beta_ListConversationsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1beta_ListConversationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -99,12 +103,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListConversationsResponse\022L\n\r" + "conversations\030\001" + " \003(\01325.google.cloud.geminidataanalytics.v1beta.Conversation\022\027\n" - + "\017next_page_token\030\002 \001(\tB\242\002\n" - + "+com.google.cloud.geminidataanalytics.v1betaB\021ConversationProt" - + "oP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;gem" - + "inidataanalyticspb\252\002\'Google.Cloud.Gemini" - + "DataAnalytics.V1Beta\312\002\'Google\\Cloud\\Gemi" - + "niDataAnalytics\\V1beta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3" + + "\017next_page_token\030\002 \001(\t\"b\n" + + "\031DeleteConversationRequest\022E\n" + + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + + "/geminidataanalytics.googleapis.com/ConversationB\242\002\n" + + "+com.google.cloud.geminidataanalytics.v1be" + + "taB\021ConversationProtoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/gemin" + + "idataanalyticspb;geminidataanalyticspb\252\002" + + "\'Google.Cloud.GeminiDataAnalytics.V1Beta" + + "\312\002\'Google\\Cloud\\GeminiDataAnalytics\\V1be" + + "ta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -165,6 +173,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Conversations", "NextPageToken", }); + internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_descriptor, + new java.lang.String[] { + "Name", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgent.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgent.java index d431f6b1c30a..9ebd9b8f9969 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgent.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgent.java @@ -200,7 +200,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent getDataAna * must match the format described in * https://google.aip.dev/122#resource-id-segments * - * Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. * * It is recommended to skip setting this field during agent creation as it * will be inferred automatically and overwritten with the @@ -237,7 +237,7 @@ public java.lang.String getName() { * must match the format described in * https://google.aip.dev/122#resource-id-segments * - * Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. * * It is recommended to skip setting this field during agent creation as it * will be inferred automatically and overwritten with the @@ -1628,7 +1628,7 @@ public Builder clearDataAnalyticsAgent() { * must match the format described in * https://google.aip.dev/122#resource-id-segments * - * Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. * * It is recommended to skip setting this field during agent creation as it * will be inferred automatically and overwritten with the @@ -1664,7 +1664,7 @@ public java.lang.String getName() { * must match the format described in * https://google.aip.dev/122#resource-id-segments * - * Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. * * It is recommended to skip setting this field during agent creation as it * will be inferred automatically and overwritten with the @@ -1700,7 +1700,7 @@ public com.google.protobuf.ByteString getNameBytes() { * must match the format described in * https://google.aip.dev/122#resource-id-segments * - * Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. * * It is recommended to skip setting this field during agent creation as it * will be inferred automatically and overwritten with the @@ -1735,7 +1735,7 @@ public Builder setName(java.lang.String value) { * must match the format described in * https://google.aip.dev/122#resource-id-segments * - * Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. * * It is recommended to skip setting this field during agent creation as it * will be inferred automatically and overwritten with the @@ -1766,7 +1766,7 @@ public Builder clearName() { * must match the format described in * https://google.aip.dev/122#resource-id-segments * - * Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. * * It is recommended to skip setting this field during agent creation as it * will be inferred automatically and overwritten with the diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentOrBuilder.java index 4f0cc16cf45a..b31d9b318d17 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentOrBuilder.java @@ -76,7 +76,7 @@ public interface DataAgentOrBuilder * must match the format described in * https://google.aip.dev/122#resource-id-segments * - * Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. * * It is recommended to skip setting this field during agent creation as it * will be inferred automatically and overwritten with the @@ -102,7 +102,7 @@ public interface DataAgentOrBuilder * must match the format described in * https://google.aip.dev/122#resource-id-segments * - * Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + * Example: `projects/1234567890/locations/global/dataAgents/my-agent`. * * It is recommended to skip setting this field during agent creation as it * will be inferred automatically and overwritten with the diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java index 859df45ac356..7cd1b78a3014 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_geminidataanalytics_v1beta_ConversationReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1beta_ConversationReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1beta_Message_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -132,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -153,42 +161,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/api/resource.proto\0325google/cloud/geminidataanalytics/v1beta/context.proto\032:go" + "ogle/cloud/geminidataanalytics/v1beta/conversation.proto\0329google/cloud/geminidat" + "aanalytics/v1beta/credentials.proto\0328google/cloud/geminidataanalytics/v1beta/dat" - + "asource.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\244\001\n" + + "asource.proto\032\033google/protobuf/empty.pro" + + "to\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\244\001\n" + "\023ListMessagesRequest\022G\n" + "\006parent\030\001 \001(\tB7\340A\002\372A1\n" + "/geminidataanalytics.googleapis.com/Conversation\022\026\n" - + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"z\n" + "\024ListMessagesResponse\022I\n" - + "\010messages\030\001" - + " \003(\01327.google.cloud.geminidataanalytics.v1beta.StorageMessage\022\027\n" + + "\010messages\030\001 \003(\01327.goo" + + "gle.cloud.geminidataanalytics.v1beta.StorageMessage\022\027\n" + "\017next_page_token\030\002 \001(\t\"g\n" + "\016StorageMessage\022\022\n\n" + "message_id\030\001 \001(\t\022A\n" + "\007message\030\002" - + " \001(\01320.google.cloud.geminidataanalytics.v1beta.Message\"\335\003\n" + + " \001(\01320.google.cloud.geminidataanalytics.v1beta.Message\"\324\004\n" + "\013ChatRequest\022O\n" - + "\016inline_context\030e \001(\01320.googl" - + "e.cloud.geminidataanalytics.v1beta.ContextB\003\340A\001H\000\022e\n" - + "\026conversation_reference\030g \001(" - + "\0132>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\003\340A\001H\000\022\\\n" - + "\022data_agent_context\030h \001(\01329.google.cloud.gemi" - + "nidataanalytics.v1beta.DataAgentContextB\003\340A\001H\000\022F\n" + + "\016inline_context\030e \001(\01320.google.cloud.gem" + + "inidataanalytics.v1beta.ContextB\003\340A\001H\000\022e\n" + + "\026conversation_reference\030g \001(\0132>.google." + + "cloud.geminidataanalytics.v1beta.ConversationReferenceB\003\340A\001H\000\022\\\n" + + "\022data_agent_context\030h" + + " \001(\01329.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\003\340A\001H\000\022u\n" + + "\037client_managed_resource_context\030i \001(\0132E.g" + + "oogle.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\003\340A\001H\000\022F\n" + "\007project\030\001 \001(\tB5\030\001\340A\001\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\023\n" + "\006parent\030\003 \001(\tB\003\340A\002\022G\n" - + "\010messages\030\002 \003(\01320." - + "google.cloud.geminidataanalytics.v1beta.MessageB\003\340A\002B\022\n" + + "\010messages\030\002 \003(\01320.google.cloud" + + ".geminidataanalytics.v1beta.MessageB\003\340A\002B\022\n" + "\020context_provider\"\343\002\n" + "\020DataAgentContext\022H\n\n" + "data_agent\030\001 \001(\tB4\340A\002\372A.\n" + ",geminidataanalytics.googleapis.com/DataAgent\022N\n" - + "\013credentials\030\002 \001(\01324.google.cl" - + "oud.geminidataanalytics.v1beta.CredentialsB\003\340A\001\022f\n" - + "\017context_version\030\003 \001(\0162H.googl" - + "e.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\003\340A\001\"M\n" + + "\013credentials\030\002" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.CredentialsB\003\340A\001\022f\n" + + "\017context_version\030\003 \001(\0162H.google.cloud.gemi" + + "nidataanalytics.v1beta.DataAgentContext.ContextVersionB\003\340A\001\"M\n" + "\016ContextVersion\022\037\n" + "\033CONTEXT_VERSION_UNSPECIFIED\020\000\022\013\n" + "\007STAGING\020\001\022\r\n" @@ -196,94 +206,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ConversationReference\022M\n" + "\014conversation\030\001 \001(\tB7\340A\002\372A1\n" + "/geminidataanalytics.googleapis.com/Conversation\022Z\n" - + "\022data_agent_context\030\003 " - + "\001(\01329.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\003\340A\002\"\376\001\n" + + "\022data_agent_context\030\003 \001(\01329.google" + + ".cloud.geminidataanalytics.v1beta.DataAgentContextB\003\340A\002\"\242\001\n" + + "\034ClientManagedResourceContext\022M\n" + + "\016inline_context\030\001 \001(\01320.googl" + + "e.cloud.geminidataanalytics.v1beta.ContextB\003\340A\002\022\034\n" + + "\017conversation_id\030\002 \001(\tB\003\340A\001\022\025\n" + + "\010agent_id\030\003 \001(\tB\003\340A\001\"\376\001\n" + "\007Message\022L\n" + "\014user_message\030\002" + " \001(\01324.google.cloud.geminidataanalytics.v1beta.UserMessageH\000\022P\n" - + "\016system_message\030\003 \001(\01326.google.cloud.gem" - + "inidataanalytics.v1beta.SystemMessageH\000\0222\n" + + "\016system_message\030\003" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.SystemMessageH\000\0222\n" + "\ttimestamp\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\027\n\n" + "message_id\030\004 \001(\tB\003\340A\001B\006\n" + "\004kind\"%\n" + "\013UserMessage\022\016\n" + "\004text\030\001 \001(\tH\000B\006\n" - + "\004kind\"\357\003\n\r" + + "\004kind\"\310\004\n" + + "\r" + "SystemMessage\022D\n" - + "\004text\030\001 \001(\01324.go" - + "ogle.cloud.geminidataanalytics.v1beta.TextMessageH\000\022H\n" - + "\006schema\030\002 \001(\01326.google.clo" - + "ud.geminidataanalytics.v1beta.SchemaMessageH\000\022D\n" + + "\004text\030\001 \001(\01324.google.cl" + + "oud.geminidataanalytics.v1beta.TextMessageH\000\022H\n" + + "\006schema\030\002 \001(\01326.google.cloud.gemi" + + "nidataanalytics.v1beta.SchemaMessageH\000\022D\n" + "\004data\030\003" + " \001(\01324.google.cloud.geminidataanalytics.v1beta.DataMessageH\000\022L\n" + "\010analysis\030\004" + " \001(\01328.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\000\022F\n" - + "\005chart\030\005" - + " \001(\01325.google.cloud.geminidataanalytics.v1beta.ChartMessageH\000\022F\n" - + "\005error\030\006 \001(\013" - + "25.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\000\022\025\n" + + "\005chart\030\005 \001(" + + "\01325.google.cloud.geminidataanalytics.v1beta.ChartMessageH\000\022F\n" + + "\005error\030\006 \001(\01325.goog" + + "le.cloud.geminidataanalytics.v1beta.ErrorMessageH\000\022W\n" + + "\017example_queries\030\r" + + " \001(\01327.go" + + "ogle.cloud.geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022\025\n" + "\010group_id\030\014 \001(\005H\001\210\001\001B\006\n" + "\004kindB\013\n" - + "\t_group_id\"!\n" + + "\t_group_id\"\316\001\n" + "\013TextMessage\022\022\n" - + "\005parts\030\001 \003(\tB\003\340A\001\"\247\001\n\r" + + "\005parts\030\001 \003(\tB\003\340A\001\022U\n" + + "\ttext_type\030\002 \001(\0162=" + + ".google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\"T\n" + + "\010TextType\022\031\n" + + "\025TEXT_TYPE_UNSPECIFIED\020\000\022\022\n" + + "\016FINAL_RESPONSE\020\001\022\013\n" + + "\007THOUGHT\020\002\022\014\n" + + "\010PROGRESS\020\003\"\247\001\n\r" + "SchemaMessage\022E\n" - + "\005query\030\001" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\000\022G\n" - + "\006result\030\002 \001(" - + "\01325.google.cloud.geminidataanalytics.v1beta.SchemaResultH\000B\006\n" + + "\005query\030\001 \001(\01324.google.cloud" + + ".geminidataanalytics.v1beta.SchemaQueryH\000\022G\n" + + "\006result\030\002" + + " \001(\01325.google.cloud.geminidataanalytics.v1beta.SchemaResultH\000B\006\n" + "\004kind\"$\n" + "\013SchemaQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\"]\n" + "\014SchemaResult\022M\n" - + "\013datasources\030\001 \003(\01323.google.cloud.gem" - + "inidataanalytics.v1beta.DatasourceB\003\340A\001\"\341\002\n" + + "\013datasources\030\001 \003(\01323." + + "google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n" + "\013DataMessage\022C\n" - + "\005query\030\001 \001(\01322.google." - + "cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r" + + "\005query\030\001" + + " \001(\01322.google.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r" + "generated_sql\030\002 \001(\tH\000\022E\n" + "\006result\030\003" - + " \001(\01323.google.cloud.geminidataanalytics.v1beta.DataResultH\000\022V\n" - + "\026generated_looker_query\030\004" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryH\000\022M\n\r" - + "big_query_job\030\005" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\000B\006\n" + + " \001(\01323.google.cloud.geminidataanalytics.v1beta.DataResultH\000\022Z\n" + + "\026generated_looker_query\030\004 \001(\01324.google.cl" + + "oud.geminidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n\r" + + "big_query_job\030\005 \001(\01324.google" + + ".cloud.geminidataanalytics.v1beta.BigQueryJobH\000B\006\n" + "\004kind\"\210\002\n" + "\013LookerQuery\022\022\n" + "\005model\030\001 \001(\tB\003\340A\002\022\024\n" + "\007explore\030\002 \001(\tB\003\340A\002\022\023\n" + "\006fields\030\003 \003(\tB\003\340A\001\022Q\n" - + "\007filters\030\004" - + " \003(\0132;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\003\340A\001\022\022\n" + + "\007filters\030\004 \003(\0132;.google" + + ".cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\003\340A\001\022\022\n" + "\005sorts\030\005 \003(\tB\003\340A\001\022\027\n" + "\005limit\030\006 \001(\tB\003\340A\001H\000\210\001\001\0320\n" + "\006Filter\022\022\n" + "\005field\030\001 \001(\tB\003\340A\002\022\022\n" + "\005value\030\002 \001(\tB\003\340A\002B\010\n" - + "\006_limit\"\204\001\n" - + "\tDataQuery\022\025\n" + + "\006_limit\"\337\001\n" + + "\tDataQuery\022K\n" + + "\006looker\030\004 \001(\01324.googl" + + "e.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022M\n" - + "\013datasources\030\002 \003(\01323.google.cloud.gemin" - + "idataanalytics.v1beta.DatasourceB\003\340A\001\"\221\001\n\n" + + "\013datasources\030\002 \003(\01323.g" + + "oogle.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n" + + "query_type\"\221\001\n\n" + "DataResult\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022D\n" - + "\006schema\030\005" - + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" + + "\006schema\030\005 \001(\0132/" + + ".google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n" + "\013BigQueryJob\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006job_id\030\002 \001(\tB\003\340A\002\022\025\n" + "\010location\030\005 \001(\tB\003\340A\001\022_\n" - + "\021destination_table\030\003 \001(\0132?.google.cloud.geminid" - + "ataanalytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" - + "\006schema\030\007 \001(\0132/.google.cloud.g" - + "eminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n" + + "\021destination_table\030\003 \001(\0132?.google.cloud.geminidataanalyt" + + "ics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" + + "\006schema\030\007" + + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n" + "\017AnalysisMessage\022G\n" - + "\005query\030\001 \001(\01326.googl" - + "e.cloud.geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" - + "\016progress_event\030\002 \001(\01326.goo" - + "gle.cloud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + + "\005query\030\001 \001(\01326.google.cloud.g" + + "eminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" + + "\016progress_event\030\002 \001(\01326.google.cloud" + + ".geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + "\004kind\"F\n\r" + "AnalysisQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\036\n" @@ -302,8 +331,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005error\030\013 \001(\tH\000B\006\n" + "\004kind\"\244\001\n" + "\014ChartMessage\022D\n" - + "\005query\030\001 \001(\01323.google.cloud" - + ".geminidataanalytics.v1beta.ChartQueryH\000\022F\n" + + "\005query\030\001" + + " \001(\01323.google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n" + "\006result\030\002" + " \001(\01324.google.cloud.geminidataanalytics.v1beta.ChartResultH\000B\006\n" + "\004kind\"F\n\n" @@ -312,42 +341,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020data_result_name\030\002 \001(\tB\003\340A\001\"\203\001\n" + "\013ChartResult\0221\n" + "\013vega_config\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022A\n" - + "\005image\030\003 \001(\0132-.goo" - + "gle.cloud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n" + + "\005image\030\003" + + " \001(\0132-.google.cloud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n" + "\014ErrorMessage\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\003\"1\n" + + "\004text\030\001 \001(\tB\003\340A\003\"e\n" + + "\016ExampleQueries\022S\n" + + "\017example_queries\030\001 \003(\01325.go" + + "ogle.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n" + "\004Blob\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" - + "\004data\030\002 \001(\014B\003\340A\0022\262\t\n" + + "\004data\030\002 \001(\014B\003\340A\0022\353\n\n" + "\017DataChatService\022\251\001\n" - + "\004Chat\0224.google.cloud.geminidataanalytics.v1b" - + "eta.ChatRequest\0320.google.cloud.geminidat" - + "aanalytics.v1beta.Message\"7\202\323\344\223\0021\",/v1be" - + "ta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" - + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v1beta.CreateConv" - + "ersationRequest\0325.google.cloud.geminidat" - + "aanalytics.v1beta.Conversation\"q\332A#paren" - + "t,conversation,conversation_id\202\323\344\223\002E\"5/v" - + "1beta/{parent=projects/*/locations/*}/conversations:\014conversation\022\317\001\n" - + "\017GetConversation\022?.google.cloud.geminidataanalytics" - + ".v1beta.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Convers" - + "ation\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" - + "\021ListConversations\022A.google.cloud.geminid" - + "ataanalytics.v1beta.ListConversationsRequest\032B.google.cloud.geminidataanalytics." - + "v1beta.ListConversationsResponse\"F\332A\006par" - + "ent\202\323\344\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n" - + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1b" - + "eta.ListMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesRe" - + "sponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{parent" - + "=projects/*/locations/*/conversations/*}" - + "/messages\032V\312A\"geminidataanalytics.google" - + "apis.com\322A.https://www.googleapis.com/auth/cloud-platformB\245\002\n" - + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServi" - + "ceProtoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalytics" - + "pb;geminidataanalyticspb\252\002\'Google.Cloud." - + "GeminiDataAnalytics.V1Beta\312\002\'Google\\Clou" - + "d\\GeminiDataAnalytics\\V1beta\352\002*Google::C" - + "loud::GeminiDataAnalytics::V1betab\006proto3" + + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google.c" + + "loud.geminidataanalytics.v1beta.Message\"" + + "7\202\323\344\223\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" + + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v1b" + + "eta.CreateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversa" + + "tion\"q\332A#parent,conversation,conversatio" + + "n_id\202\323\344\223\002E\"5/v1beta/{parent=projects/*/l" + + "ocations/*}/conversations:\014conversation\022\266\001\n" + + "\022DeleteConversation\022B.google.cloud.geminidataanalytics.v1beta.DeleteConversat" + + "ionRequest\032\026.google.protobuf.Empty\"D\332A\004n" + + "ame\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n" + + "\017GetConversation\022?.google.cloud.geminidataanalytics." + + "v1beta.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversa" + + "tion\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" + + "\021ListConversations\022A.google.cloud.geminida" + + "taanalytics.v1beta.ListConversationsRequest\032B.google.cloud.geminidataanalytics.v" + + "1beta.ListConversationsResponse\"F\332A\006pare" + + "nt\202\323\344\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n" + + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1be" + + "ta.ListMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesRes" + + "ponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{parent=" + + "projects/*/locations/*/conversations/*}/" + + "messages\032V\312A\"geminidataanalytics.googlea" + + "pis.com\322A.https://www.googleapis.com/auth/cloud-platformB\245\002\n" + + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServic" + + "eProtoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticsp" + + "b;geminidataanalyticspb\252\002\'Google.Cloud.G" + + "eminiDataAnalytics.V1Beta\312\002\'Google\\Cloud" + + "\\GeminiDataAnalytics\\V1beta\352\002*Google::Cl" + + "oud::GeminiDataAnalytics::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -361,6 +395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.geminidataanalytics.v1beta.ConversationProto.getDescriptor(), com.google.cloud.geminidataanalytics.v1beta.CredentialsProto.getDescriptor(), com.google.cloud.geminidataanalytics.v1beta.DatasourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -397,6 +432,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InlineContext", "ConversationReference", "DataAgentContext", + "ClientManagedResourceContext", "Project", "Parent", "Messages", @@ -418,8 +454,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Conversation", "DataAgentContext", }); - internal_static_google_cloud_geminidataanalytics_v1beta_Message_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_descriptor, + new java.lang.String[] { + "InlineContext", "ConversationId", "AgentId", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_Message_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_geminidataanalytics_v1beta_Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Message_descriptor, @@ -427,7 +471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserMessage", "SystemMessage", "Timestamp", "MessageId", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_UserMessage_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_geminidataanalytics_v1beta_UserMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_UserMessage_descriptor, @@ -435,23 +479,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_SystemMessage_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_geminidataanalytics_v1beta_SystemMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SystemMessage_descriptor, new java.lang.String[] { - "Text", "Schema", "Data", "Analysis", "Chart", "Error", "GroupId", "Kind", + "Text", + "Schema", + "Data", + "Analysis", + "Chart", + "Error", + "ExampleQueries", + "GroupId", + "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_descriptor, new java.lang.String[] { - "Parts", + "Parts", "TextType", }); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_descriptor, @@ -459,7 +511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Query", "Result", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaQuery_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SchemaQuery_descriptor, @@ -467,7 +519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Question", }); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaResult_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SchemaResult_descriptor, @@ -475,7 +527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Datasources", }); internal_static_google_cloud_geminidataanalytics_v1beta_DataMessage_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_geminidataanalytics_v1beta_DataMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataMessage_descriptor, @@ -483,7 +535,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Query", "GeneratedSql", "Result", "GeneratedLookerQuery", "BigQueryJob", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_LookerQuery_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_geminidataanalytics_v1beta_LookerQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_LookerQuery_descriptor, @@ -501,15 +553,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Field", "Value", }); internal_static_google_cloud_geminidataanalytics_v1beta_DataQuery_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_geminidataanalytics_v1beta_DataQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataQuery_descriptor, new java.lang.String[] { - "Question", "Name", "Datasources", + "Looker", "Question", "Name", "Datasources", "QueryType", }); internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_descriptor, @@ -517,7 +569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Schema", "Data", }); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_descriptor, @@ -525,7 +577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "JobId", "Location", "DestinationTable", "Schema", }); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisMessage_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisMessage_descriptor, @@ -533,7 +585,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Query", "ProgressEvent", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisQuery_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisQuery_descriptor, @@ -541,7 +593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Question", "DataResultNames", }); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisEvent_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisEvent_descriptor, @@ -559,7 +611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_ChartMessage_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_geminidataanalytics_v1beta_ChartMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ChartMessage_descriptor, @@ -567,7 +619,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Query", "Result", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_ChartQuery_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_geminidataanalytics_v1beta_ChartQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ChartQuery_descriptor, @@ -575,7 +627,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instructions", "DataResultName", }); internal_static_google_cloud_geminidataanalytics_v1beta_ChartResult_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_geminidataanalytics_v1beta_ChartResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ChartResult_descriptor, @@ -583,15 +635,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VegaConfig", "Image", }); internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_descriptor, new java.lang.String[] { "Text", }); + internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor, + new java.lang.String[] { + "ExampleQueries", + }); internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_geminidataanalytics_v1beta_Blob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor, @@ -616,6 +676,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.geminidataanalytics.v1beta.ConversationProto.getDescriptor(); com.google.cloud.geminidataanalytics.v1beta.CredentialsProto.getDescriptor(); com.google.cloud.geminidataanalytics.v1beta.DatasourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java index 6b81b7242df1..a9176a750703 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java @@ -74,6 +74,7 @@ public enum KindCase QUERY(1), GENERATED_SQL(2), RESULT(3), + @java.lang.Deprecated GENERATED_LOOKER_QUERY(4), BIG_QUERY_JOB(5), KIND_NOT_SET(0); @@ -309,13 +310,19 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult * *
                                              * Looker Query generated by the system to retrieve data.
                                          +   * DEPRECATED: generated looker query is now under DataQuery.looker.
                                              * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * * + * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasGeneratedLookerQuery() { return kindCase_ == 4; } @@ -325,13 +332,19 @@ public boolean hasGeneratedLookerQuery() { * *
                                              * Looker Query generated by the system to retrieve data.
                                          +   * DEPRECATED: generated looker query is now under DataQuery.looker.
                                              * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * * + * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 * @return The generatedLookerQuery. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.geminidataanalytics.v1beta.LookerQuery getGeneratedLookerQuery() { if (kindCase_ == 4) { return (com.google.cloud.geminidataanalytics.v1beta.LookerQuery) kind_; @@ -344,11 +357,15 @@ public com.google.cloud.geminidataanalytics.v1beta.LookerQuery getGeneratedLooke * *
                                              * Looker Query generated by the system to retrieve data.
                                          +   * DEPRECATED: generated looker query is now under DataQuery.looker.
                                              * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.geminidataanalytics.v1beta.LookerQueryOrBuilder getGeneratedLookerQueryOrBuilder() { if (kindCase_ == 4) { @@ -1514,13 +1531,19 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult * *
                                                * Looker Query generated by the system to retrieve data.
                                          +     * DEPRECATED: generated looker query is now under DataQuery.looker.
                                                * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * * + * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasGeneratedLookerQuery() { return kindCase_ == 4; } @@ -1530,13 +1553,19 @@ public boolean hasGeneratedLookerQuery() { * *
                                                * Looker Query generated by the system to retrieve data.
                                          +     * DEPRECATED: generated looker query is now under DataQuery.looker.
                                                * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * * + * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 * @return The generatedLookerQuery. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.geminidataanalytics.v1beta.LookerQuery getGeneratedLookerQuery() { if (generatedLookerQueryBuilder_ == null) { if (kindCase_ == 4) { @@ -1556,10 +1585,14 @@ public com.google.cloud.geminidataanalytics.v1beta.LookerQuery getGeneratedLooke * *
                                                * Looker Query generated by the system to retrieve data.
                                          +     * DEPRECATED: generated looker query is now under DataQuery.looker.
                                                * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setGeneratedLookerQuery( com.google.cloud.geminidataanalytics.v1beta.LookerQuery value) { if (generatedLookerQueryBuilder_ == null) { @@ -1580,10 +1613,14 @@ public Builder setGeneratedLookerQuery( * *
                                                * Looker Query generated by the system to retrieve data.
                                          +     * DEPRECATED: generated looker query is now under DataQuery.looker.
                                                * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setGeneratedLookerQuery( com.google.cloud.geminidataanalytics.v1beta.LookerQuery.Builder builderForValue) { if (generatedLookerQueryBuilder_ == null) { @@ -1601,10 +1638,14 @@ public Builder setGeneratedLookerQuery( * *
                                                * Looker Query generated by the system to retrieve data.
                                          +     * DEPRECATED: generated looker query is now under DataQuery.looker.
                                                * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeGeneratedLookerQuery( com.google.cloud.geminidataanalytics.v1beta.LookerQuery value) { if (generatedLookerQueryBuilder_ == null) { @@ -1636,10 +1677,14 @@ public Builder mergeGeneratedLookerQuery( * *
                                                * Looker Query generated by the system to retrieve data.
                                          +     * DEPRECATED: generated looker query is now under DataQuery.looker.
                                                * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearGeneratedLookerQuery() { if (generatedLookerQueryBuilder_ == null) { if (kindCase_ == 4) { @@ -1662,10 +1707,14 @@ public Builder clearGeneratedLookerQuery() { * *
                                                * Looker Query generated by the system to retrieve data.
                                          +     * DEPRECATED: generated looker query is now under DataQuery.looker.
                                                * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.geminidataanalytics.v1beta.LookerQuery.Builder getGeneratedLookerQueryBuilder() { return getGeneratedLookerQueryFieldBuilder().getBuilder(); @@ -1676,11 +1725,15 @@ public Builder clearGeneratedLookerQuery() { * *
                                                * Looker Query generated by the system to retrieve data.
                                          +     * DEPRECATED: generated looker query is now under DataQuery.looker.
                                                * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.geminidataanalytics.v1beta.LookerQueryOrBuilder getGeneratedLookerQueryOrBuilder() { if ((kindCase_ == 4) && (generatedLookerQueryBuilder_ != null)) { @@ -1698,9 +1751,12 @@ public Builder clearGeneratedLookerQuery() { * *
                                                * Looker Query generated by the system to retrieve data.
                                          +     * DEPRECATED: generated looker query is now under DataQuery.looker.
                                                * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.geminidataanalytics.v1beta.LookerQuery, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java index 368bf70a1ff6..d0f494ef670d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java @@ -142,12 +142,18 @@ public interface DataMessageOrBuilder * *
                                              * Looker Query generated by the system to retrieve data.
                                          +   * DEPRECATED: generated looker query is now under DataQuery.looker.
                                              * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * * + * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 * @return Whether the generatedLookerQuery field is set. */ + @java.lang.Deprecated boolean hasGeneratedLookerQuery(); /** @@ -155,12 +161,18 @@ public interface DataMessageOrBuilder * *
                                              * Looker Query generated by the system to retrieve data.
                                          +   * DEPRECATED: generated looker query is now under DataQuery.looker.
                                              * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * * + * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 * @return The generatedLookerQuery. */ + @java.lang.Deprecated com.google.cloud.geminidataanalytics.v1beta.LookerQuery getGeneratedLookerQuery(); /** @@ -168,10 +180,14 @@ public interface DataMessageOrBuilder * *
                                              * Looker Query generated by the system to retrieve data.
                                          +   * DEPRECATED: generated looker query is now under DataQuery.looker.
                                              * 
                                          * - * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4; + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery generated_looker_query = 4 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.cloud.geminidataanalytics.v1beta.LookerQueryOrBuilder getGeneratedLookerQueryOrBuilder(); diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataQuery.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataQuery.java index 5844d9e4b416..b1a0703ce126 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataQuery.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataQuery.java @@ -66,6 +66,113 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.geminidataanalytics.v1beta.DataQuery.Builder.class); } + private int queryTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object queryType_; + + public enum QueryTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LOOKER(4), + QUERYTYPE_NOT_SET(0); + private final int value; + + private QueryTypeCase(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 QueryTypeCase valueOf(int value) { + return forNumber(value); + } + + public static QueryTypeCase forNumber(int value) { + switch (value) { + case 4: + return LOOKER; + case 0: + return QUERYTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public QueryTypeCase getQueryTypeCase() { + return QueryTypeCase.forNumber(queryTypeCase_); + } + + public static final int LOOKER_FIELD_NUMBER = 4; + + /** + * + * + *
                                          +   * Optional. A query for retrieving data from a Looker explore.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the looker field is set. + */ + @java.lang.Override + public boolean hasLooker() { + return queryTypeCase_ == 4; + } + + /** + * + * + *
                                          +   * Optional. A query for retrieving data from a Looker explore.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The looker. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.LookerQuery getLooker() { + if (queryTypeCase_ == 4) { + return (com.google.cloud.geminidataanalytics.v1beta.LookerQuery) queryType_; + } + return com.google.cloud.geminidataanalytics.v1beta.LookerQuery.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Optional. A query for retrieving data from a Looker explore.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.LookerQueryOrBuilder getLookerOrBuilder() { + if (queryTypeCase_ == 4) { + return (com.google.cloud.geminidataanalytics.v1beta.LookerQuery) queryType_; + } + return com.google.cloud.geminidataanalytics.v1beta.LookerQuery.getDefaultInstance(); + } + public static final int QUESTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -293,6 +400,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } + if (queryTypeCase_ == 4) { + output.writeMessage(4, (com.google.cloud.geminidataanalytics.v1beta.LookerQuery) queryType_); + } getUnknownFields().writeTo(output); } @@ -311,6 +421,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } + if (queryTypeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.geminidataanalytics.v1beta.LookerQuery) queryType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -330,6 +445,14 @@ public boolean equals(final java.lang.Object obj) { if (!getQuestion().equals(other.getQuestion())) return false; if (!getName().equals(other.getName())) return false; if (!getDatasourcesList().equals(other.getDatasourcesList())) return false; + if (!getQueryTypeCase().equals(other.getQueryTypeCase())) return false; + switch (queryTypeCase_) { + case 4: + if (!getLooker().equals(other.getLooker())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,6 +472,14 @@ public int hashCode() { hash = (37 * hash) + DATASOURCES_FIELD_NUMBER; hash = (53 * hash) + getDatasourcesList().hashCode(); } + switch (queryTypeCase_) { + case 4: + hash = (37 * hash) + LOOKER_FIELD_NUMBER; + hash = (53 * hash) + getLooker().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -490,6 +621,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (lookerBuilder_ != null) { + lookerBuilder_.clear(); + } question_ = ""; name_ = ""; if (datasourcesBuilder_ == null) { @@ -498,7 +632,9 @@ public Builder clear() { datasources_ = null; datasourcesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); + queryTypeCase_ = 0; + queryType_ = null; return this; } @@ -530,6 +666,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataQuery buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -537,9 +674,9 @@ public com.google.cloud.geminidataanalytics.v1beta.DataQuery buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.geminidataanalytics.v1beta.DataQuery result) { if (datasourcesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { datasources_ = java.util.Collections.unmodifiableList(datasources_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.datasources_ = datasources_; } else { @@ -549,14 +686,22 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.DataQuery result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.question_ = question_; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.name_ = name_; } } + private void buildPartialOneofs(com.google.cloud.geminidataanalytics.v1beta.DataQuery result) { + result.queryTypeCase_ = queryTypeCase_; + result.queryType_ = this.queryType_; + if (queryTypeCase_ == 4 && lookerBuilder_ != null) { + result.queryType_ = lookerBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -605,19 +750,19 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.DataQuery o return this; if (!other.getQuestion().isEmpty()) { question_ = other.question_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (datasourcesBuilder_ == null) { if (!other.datasources_.isEmpty()) { if (datasources_.isEmpty()) { datasources_ = other.datasources_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDatasourcesIsMutable(); datasources_.addAll(other.datasources_); @@ -630,7 +775,7 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.DataQuery o datasourcesBuilder_.dispose(); datasourcesBuilder_ = null; datasources_ = other.datasources_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); datasourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDatasourcesFieldBuilder() @@ -640,6 +785,17 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.DataQuery o } } } + switch (other.getQueryTypeCase()) { + case LOOKER: + { + mergeLooker(other.getLooker()); + break; + } + case QUERYTYPE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -669,7 +825,7 @@ public Builder mergeFrom( case 10: { question_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 10 case 18: @@ -689,9 +845,15 @@ public Builder mergeFrom( case 26: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage(getLookerFieldBuilder().getBuilder(), extensionRegistry); + queryTypeCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -709,8 +871,259 @@ public Builder mergeFrom( return this; } + private int queryTypeCase_ = 0; + private java.lang.Object queryType_; + + public QueryTypeCase getQueryTypeCase() { + return QueryTypeCase.forNumber(queryTypeCase_); + } + + public Builder clearQueryType() { + queryTypeCase_ = 0; + queryType_ = null; + onChanged(); + return this; + } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.LookerQuery, + com.google.cloud.geminidataanalytics.v1beta.LookerQuery.Builder, + com.google.cloud.geminidataanalytics.v1beta.LookerQueryOrBuilder> + lookerBuilder_; + + /** + * + * + *
                                          +     * Optional. A query for retrieving data from a Looker explore.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the looker field is set. + */ + @java.lang.Override + public boolean hasLooker() { + return queryTypeCase_ == 4; + } + + /** + * + * + *
                                          +     * Optional. A query for retrieving data from a Looker explore.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The looker. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.LookerQuery getLooker() { + if (lookerBuilder_ == null) { + if (queryTypeCase_ == 4) { + return (com.google.cloud.geminidataanalytics.v1beta.LookerQuery) queryType_; + } + return com.google.cloud.geminidataanalytics.v1beta.LookerQuery.getDefaultInstance(); + } else { + if (queryTypeCase_ == 4) { + return lookerBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.LookerQuery.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Optional. A query for retrieving data from a Looker explore.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLooker(com.google.cloud.geminidataanalytics.v1beta.LookerQuery value) { + if (lookerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryType_ = value; + onChanged(); + } else { + lookerBuilder_.setMessage(value); + } + queryTypeCase_ = 4; + return this; + } + + /** + * + * + *
                                          +     * Optional. A query for retrieving data from a Looker explore.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLooker( + com.google.cloud.geminidataanalytics.v1beta.LookerQuery.Builder builderForValue) { + if (lookerBuilder_ == null) { + queryType_ = builderForValue.build(); + onChanged(); + } else { + lookerBuilder_.setMessage(builderForValue.build()); + } + queryTypeCase_ = 4; + return this; + } + + /** + * + * + *
                                          +     * Optional. A query for retrieving data from a Looker explore.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLooker(com.google.cloud.geminidataanalytics.v1beta.LookerQuery value) { + if (lookerBuilder_ == null) { + if (queryTypeCase_ == 4 + && queryType_ + != com.google.cloud.geminidataanalytics.v1beta.LookerQuery.getDefaultInstance()) { + queryType_ = + com.google.cloud.geminidataanalytics.v1beta.LookerQuery.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.LookerQuery) queryType_) + .mergeFrom(value) + .buildPartial(); + } else { + queryType_ = value; + } + onChanged(); + } else { + if (queryTypeCase_ == 4) { + lookerBuilder_.mergeFrom(value); + } else { + lookerBuilder_.setMessage(value); + } + } + queryTypeCase_ = 4; + return this; + } + + /** + * + * + *
                                          +     * Optional. A query for retrieving data from a Looker explore.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLooker() { + if (lookerBuilder_ == null) { + if (queryTypeCase_ == 4) { + queryTypeCase_ = 0; + queryType_ = null; + onChanged(); + } + } else { + if (queryTypeCase_ == 4) { + queryTypeCase_ = 0; + queryType_ = null; + } + lookerBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A query for retrieving data from a Looker explore.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.LookerQuery.Builder getLookerBuilder() { + return getLookerFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. A query for retrieving data from a Looker explore.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.LookerQueryOrBuilder getLookerOrBuilder() { + if ((queryTypeCase_ == 4) && (lookerBuilder_ != null)) { + return lookerBuilder_.getMessageOrBuilder(); + } else { + if (queryTypeCase_ == 4) { + return (com.google.cloud.geminidataanalytics.v1beta.LookerQuery) queryType_; + } + return com.google.cloud.geminidataanalytics.v1beta.LookerQuery.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Optional. A query for retrieving data from a Looker explore.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.LookerQuery, + com.google.cloud.geminidataanalytics.v1beta.LookerQuery.Builder, + com.google.cloud.geminidataanalytics.v1beta.LookerQueryOrBuilder> + getLookerFieldBuilder() { + if (lookerBuilder_ == null) { + if (!(queryTypeCase_ == 4)) { + queryType_ = com.google.cloud.geminidataanalytics.v1beta.LookerQuery.getDefaultInstance(); + } + lookerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.LookerQuery, + com.google.cloud.geminidataanalytics.v1beta.LookerQuery.Builder, + com.google.cloud.geminidataanalytics.v1beta.LookerQueryOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.LookerQuery) queryType_, + getParentForChildren(), + isClean()); + queryType_ = null; + } + queryTypeCase_ = 4; + onChanged(); + return lookerBuilder_; + } + private java.lang.Object question_ = ""; /** @@ -776,7 +1189,7 @@ public Builder setQuestion(java.lang.String value) { throw new NullPointerException(); } question_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -794,7 +1207,7 @@ public Builder setQuestion(java.lang.String value) { */ public Builder clearQuestion() { question_ = getDefaultInstance().getQuestion(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -817,7 +1230,7 @@ public Builder setQuestionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); question_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -902,7 +1315,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -925,7 +1338,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -953,7 +1366,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -962,11 +1375,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureDatasourcesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { datasources_ = new java.util.ArrayList( datasources_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } @@ -1218,7 +1631,7 @@ public Builder addAllDatasources( public Builder clearDatasources() { if (datasourcesBuilder_ == null) { datasources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { datasourcesBuilder_.clear(); @@ -1365,7 +1778,7 @@ public com.google.cloud.geminidataanalytics.v1beta.Datasource.Builder addDatasou com.google.cloud.geminidataanalytics.v1beta.Datasource, com.google.cloud.geminidataanalytics.v1beta.Datasource.Builder, com.google.cloud.geminidataanalytics.v1beta.DatasourceOrBuilder>( - datasources_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + datasources_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); datasources_ = null; } return datasourcesBuilder_; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataQueryOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataQueryOrBuilder.java index 561ffdb29191..9e37193531e6 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataQueryOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataQueryOrBuilder.java @@ -24,6 +24,49 @@ public interface DataQueryOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.DataQuery) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                          +   * Optional. A query for retrieving data from a Looker explore.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the looker field is set. + */ + boolean hasLooker(); + + /** + * + * + *
                                          +   * Optional. A query for retrieving data from a Looker explore.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The looker. + */ + com.google.cloud.geminidataanalytics.v1beta.LookerQuery getLooker(); + + /** + * + * + *
                                          +   * Optional. A query for retrieving data from a Looker explore.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.LookerQueryOrBuilder getLookerOrBuilder(); + /** * * @@ -152,4 +195,6 @@ public interface DataQueryOrBuilder */ com.google.cloud.geminidataanalytics.v1beta.DatasourceOrBuilder getDatasourcesOrBuilder( int index); + + com.google.cloud.geminidataanalytics.v1beta.DataQuery.QueryTypeCase getQueryTypeCase(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Datasource.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Datasource.java index 773181799182..1039332dc1df 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Datasource.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Datasource.java @@ -372,6 +372,73 @@ public com.google.cloud.geminidataanalytics.v1beta.SchemaOrBuilder getSchemaOrBu : schema_; } + public static final int STRUCT_SCHEMA_FIELD_NUMBER = 10; + private com.google.protobuf.Struct structSchema_; + + /** + * + * + *
                                          +   * Optional. A struct representation of the schema.
                                          +   * This is populated for datasources with schemas that cannot be
                                          +   * fully represented by the strongly-typed `schema` field.
                                          +   *
                                          +   * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +   * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +   * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the structSchema field is set. + */ + @java.lang.Override + public boolean hasStructSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +   * Optional. A struct representation of the schema.
                                          +   * This is populated for datasources with schemas that cannot be
                                          +   * fully represented by the strongly-typed `schema` field.
                                          +   *
                                          +   * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +   * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +   * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The structSchema. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructSchema() { + return structSchema_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structSchema_; + } + + /** + * + * + *
                                          +   * Optional. A struct representation of the schema.
                                          +   * This is populated for datasources with schemas that cannot be
                                          +   * fully represented by the strongly-typed `schema` field.
                                          +   *
                                          +   * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +   * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +   * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { + return structSchema_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structSchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -400,6 +467,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getSchema()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10, getStructSchema()); + } getUnknownFields().writeTo(output); } @@ -425,6 +495,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSchema()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getStructSchema()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -445,6 +518,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSchema()) { if (!getSchema().equals(other.getSchema())) return false; } + if (hasStructSchema() != other.hasStructSchema()) return false; + if (hasStructSchema()) { + if (!getStructSchema().equals(other.getStructSchema())) return false; + } if (!getReferenceCase().equals(other.getReferenceCase())) return false; switch (referenceCase_) { case 1: @@ -474,6 +551,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } + if (hasStructSchema()) { + hash = (37 * hash) + STRUCT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getStructSchema().hashCode(); + } switch (referenceCase_) { case 1: hash = (37 * hash) + BIGQUERY_TABLE_REFERENCE_FIELD_NUMBER; @@ -633,6 +714,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); + getStructSchemaFieldBuilder(); } } @@ -651,6 +733,11 @@ public Builder clear() { schemaBuilder_.dispose(); schemaBuilder_ = null; } + structSchema_ = null; + if (structSchemaBuilder_ != null) { + structSchemaBuilder_.dispose(); + structSchemaBuilder_ = null; + } referenceCase_ = 0; reference_ = null; return this; @@ -695,6 +782,11 @@ private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.Datasourc result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.structSchema_ = + structSchemaBuilder_ == null ? structSchema_ : structSchemaBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -758,6 +850,9 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.Datasource if (other.hasSchema()) { mergeSchema(other.getSchema()); } + if (other.hasStructSchema()) { + mergeStructSchema(other.getStructSchema()); + } switch (other.getReferenceCase()) { case BIGQUERY_TABLE_REFERENCE: { @@ -834,6 +929,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 58 + case 82: + { + input.readMessage(getStructSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1719,6 +1820,254 @@ public com.google.cloud.geminidataanalytics.v1beta.SchemaOrBuilder getSchemaOrBu return schemaBuilder_; } + private com.google.protobuf.Struct structSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + structSchemaBuilder_; + + /** + * + * + *
                                          +     * Optional. A struct representation of the schema.
                                          +     * This is populated for datasources with schemas that cannot be
                                          +     * fully represented by the strongly-typed `schema` field.
                                          +     *
                                          +     * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +     * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +     * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the structSchema field is set. + */ + public boolean hasStructSchema() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                          +     * Optional. A struct representation of the schema.
                                          +     * This is populated for datasources with schemas that cannot be
                                          +     * fully represented by the strongly-typed `schema` field.
                                          +     *
                                          +     * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +     * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +     * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The structSchema. + */ + public com.google.protobuf.Struct getStructSchema() { + if (structSchemaBuilder_ == null) { + return structSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structSchema_; + } else { + return structSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Optional. A struct representation of the schema.
                                          +     * This is populated for datasources with schemas that cannot be
                                          +     * fully represented by the strongly-typed `schema` field.
                                          +     *
                                          +     * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +     * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +     * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStructSchema(com.google.protobuf.Struct value) { + if (structSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structSchema_ = value; + } else { + structSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A struct representation of the schema.
                                          +     * This is populated for datasources with schemas that cannot be
                                          +     * fully represented by the strongly-typed `schema` field.
                                          +     *
                                          +     * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +     * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +     * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValue) { + if (structSchemaBuilder_ == null) { + structSchema_ = builderForValue.build(); + } else { + structSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A struct representation of the schema.
                                          +     * This is populated for datasources with schemas that cannot be
                                          +     * fully represented by the strongly-typed `schema` field.
                                          +     *
                                          +     * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +     * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +     * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStructSchema(com.google.protobuf.Struct value) { + if (structSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && structSchema_ != null + && structSchema_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStructSchemaBuilder().mergeFrom(value); + } else { + structSchema_ = value; + } + } else { + structSchemaBuilder_.mergeFrom(value); + } + if (structSchema_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A struct representation of the schema.
                                          +     * This is populated for datasources with schemas that cannot be
                                          +     * fully represented by the strongly-typed `schema` field.
                                          +     *
                                          +     * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +     * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +     * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStructSchema() { + bitField0_ = (bitField0_ & ~0x00000010); + structSchema_ = null; + if (structSchemaBuilder_ != null) { + structSchemaBuilder_.dispose(); + structSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A struct representation of the schema.
                                          +     * This is populated for datasources with schemas that cannot be
                                          +     * fully represented by the strongly-typed `schema` field.
                                          +     *
                                          +     * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +     * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +     * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getStructSchemaBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStructSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. A struct representation of the schema.
                                          +     * This is populated for datasources with schemas that cannot be
                                          +     * fully represented by the strongly-typed `schema` field.
                                          +     *
                                          +     * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +     * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +     * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { + if (structSchemaBuilder_ != null) { + return structSchemaBuilder_.getMessageOrBuilder(); + } else { + return structSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structSchema_; + } + } + + /** + * + * + *
                                          +     * Optional. A struct representation of the schema.
                                          +     * This is populated for datasources with schemas that cannot be
                                          +     * fully represented by the strongly-typed `schema` field.
                                          +     *
                                          +     * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +     * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +     * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getStructSchemaFieldBuilder() { + if (structSchemaBuilder_ == null) { + structSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStructSchema(), getParentForChildren(), isClean()); + structSchema_ = null; + } + return structSchemaBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOptions.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOptions.java new file mode 100644 index 000000000000..3e285b3f219e --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOptions.java @@ -0,0 +1,806 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/context.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
                                          + * Options for datasources configurations.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.DatasourceOptions} + */ +public final class DatasourceOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.DatasourceOptions) + DatasourceOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DatasourceOptions.newBuilder() to construct. + private DatasourceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasourceOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatasourceOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.class, + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.Builder.class); + } + + private int bitField0_; + public static final int BIG_QUERY_MAX_BILLED_BYTES_FIELD_NUMBER = 1; + private com.google.protobuf.Int64Value bigQueryMaxBilledBytes_; + + /** + * + * + *
                                          +   * Optional. This option applies to datasources that require BigQuery queries
                                          +   * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +   * bytes billed beyond this limit will fail (without incurring a charge).
                                          +   * If unspecified, no limit will be applied.
                                          +   * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigQueryMaxBilledBytes field is set. + */ + @java.lang.Override + public boolean hasBigQueryMaxBilledBytes() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Optional. This option applies to datasources that require BigQuery queries
                                          +   * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +   * bytes billed beyond this limit will fail (without incurring a charge).
                                          +   * If unspecified, no limit will be applied.
                                          +   * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigQueryMaxBilledBytes. + */ + @java.lang.Override + public com.google.protobuf.Int64Value getBigQueryMaxBilledBytes() { + return bigQueryMaxBilledBytes_ == null + ? com.google.protobuf.Int64Value.getDefaultInstance() + : bigQueryMaxBilledBytes_; + } + + /** + * + * + *
                                          +   * Optional. This option applies to datasources that require BigQuery queries
                                          +   * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +   * bytes billed beyond this limit will fail (without incurring a charge).
                                          +   * If unspecified, no limit will be applied.
                                          +   * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.Int64ValueOrBuilder getBigQueryMaxBilledBytesOrBuilder() { + return bigQueryMaxBilledBytes_ == null + ? com.google.protobuf.Int64Value.getDefaultInstance() + : bigQueryMaxBilledBytes_; + } + + 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, getBigQueryMaxBilledBytes()); + } + 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, getBigQueryMaxBilledBytes()); + } + 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.geminidataanalytics.v1beta.DatasourceOptions)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions other = + (com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions) obj; + + if (hasBigQueryMaxBilledBytes() != other.hasBigQueryMaxBilledBytes()) return false; + if (hasBigQueryMaxBilledBytes()) { + if (!getBigQueryMaxBilledBytes().equals(other.getBigQueryMaxBilledBytes())) 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 (hasBigQueryMaxBilledBytes()) { + hash = (37 * hash) + BIG_QUERY_MAX_BILLED_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getBigQueryMaxBilledBytes().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions 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.geminidataanalytics.v1beta.DatasourceOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions 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.geminidataanalytics.v1beta.DatasourceOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Options for datasources configurations.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.DatasourceOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.DatasourceOptions) + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.class, + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBigQueryMaxBilledBytesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bigQueryMaxBilledBytes_ = null; + if (bigQueryMaxBilledBytesBuilder_ != null) { + bigQueryMaxBilledBytesBuilder_.dispose(); + bigQueryMaxBilledBytesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions build() { + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions result = + new com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bigQueryMaxBilledBytes_ = + bigQueryMaxBilledBytesBuilder_ == null + ? bigQueryMaxBilledBytes_ + : bigQueryMaxBilledBytesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions.getDefaultInstance()) + return this; + if (other.hasBigQueryMaxBilledBytes()) { + mergeBigQueryMaxBilledBytes(other.getBigQueryMaxBilledBytes()); + } + 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( + getBigQueryMaxBilledBytesFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.protobuf.Int64Value bigQueryMaxBilledBytes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + bigQueryMaxBilledBytesBuilder_; + + /** + * + * + *
                                          +     * Optional. This option applies to datasources that require BigQuery queries
                                          +     * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +     * bytes billed beyond this limit will fail (without incurring a charge).
                                          +     * If unspecified, no limit will be applied.
                                          +     * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigQueryMaxBilledBytes field is set. + */ + public boolean hasBigQueryMaxBilledBytes() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * Optional. This option applies to datasources that require BigQuery queries
                                          +     * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +     * bytes billed beyond this limit will fail (without incurring a charge).
                                          +     * If unspecified, no limit will be applied.
                                          +     * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigQueryMaxBilledBytes. + */ + public com.google.protobuf.Int64Value getBigQueryMaxBilledBytes() { + if (bigQueryMaxBilledBytesBuilder_ == null) { + return bigQueryMaxBilledBytes_ == null + ? com.google.protobuf.Int64Value.getDefaultInstance() + : bigQueryMaxBilledBytes_; + } else { + return bigQueryMaxBilledBytesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Optional. This option applies to datasources that require BigQuery queries
                                          +     * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +     * bytes billed beyond this limit will fail (without incurring a charge).
                                          +     * If unspecified, no limit will be applied.
                                          +     * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigQueryMaxBilledBytes(com.google.protobuf.Int64Value value) { + if (bigQueryMaxBilledBytesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigQueryMaxBilledBytes_ = value; + } else { + bigQueryMaxBilledBytesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. This option applies to datasources that require BigQuery queries
                                          +     * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +     * bytes billed beyond this limit will fail (without incurring a charge).
                                          +     * If unspecified, no limit will be applied.
                                          +     * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigQueryMaxBilledBytes( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (bigQueryMaxBilledBytesBuilder_ == null) { + bigQueryMaxBilledBytes_ = builderForValue.build(); + } else { + bigQueryMaxBilledBytesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. This option applies to datasources that require BigQuery queries
                                          +     * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +     * bytes billed beyond this limit will fail (without incurring a charge).
                                          +     * If unspecified, no limit will be applied.
                                          +     * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBigQueryMaxBilledBytes(com.google.protobuf.Int64Value value) { + if (bigQueryMaxBilledBytesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && bigQueryMaxBilledBytes_ != null + && bigQueryMaxBilledBytes_ != com.google.protobuf.Int64Value.getDefaultInstance()) { + getBigQueryMaxBilledBytesBuilder().mergeFrom(value); + } else { + bigQueryMaxBilledBytes_ = value; + } + } else { + bigQueryMaxBilledBytesBuilder_.mergeFrom(value); + } + if (bigQueryMaxBilledBytes_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. This option applies to datasources that require BigQuery queries
                                          +     * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +     * bytes billed beyond this limit will fail (without incurring a charge).
                                          +     * If unspecified, no limit will be applied.
                                          +     * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBigQueryMaxBilledBytes() { + bitField0_ = (bitField0_ & ~0x00000001); + bigQueryMaxBilledBytes_ = null; + if (bigQueryMaxBilledBytesBuilder_ != null) { + bigQueryMaxBilledBytesBuilder_.dispose(); + bigQueryMaxBilledBytesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. This option applies to datasources that require BigQuery queries
                                          +     * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +     * bytes billed beyond this limit will fail (without incurring a charge).
                                          +     * If unspecified, no limit will be applied.
                                          +     * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Int64Value.Builder getBigQueryMaxBilledBytesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBigQueryMaxBilledBytesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. This option applies to datasources that require BigQuery queries
                                          +     * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +     * bytes billed beyond this limit will fail (without incurring a charge).
                                          +     * If unspecified, no limit will be applied.
                                          +     * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Int64ValueOrBuilder getBigQueryMaxBilledBytesOrBuilder() { + if (bigQueryMaxBilledBytesBuilder_ != null) { + return bigQueryMaxBilledBytesBuilder_.getMessageOrBuilder(); + } else { + return bigQueryMaxBilledBytes_ == null + ? com.google.protobuf.Int64Value.getDefaultInstance() + : bigQueryMaxBilledBytes_; + } + } + + /** + * + * + *
                                          +     * Optional. This option applies to datasources that require BigQuery queries
                                          +     * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +     * bytes billed beyond this limit will fail (without incurring a charge).
                                          +     * If unspecified, no limit will be applied.
                                          +     * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + getBigQueryMaxBilledBytesFieldBuilder() { + if (bigQueryMaxBilledBytesBuilder_ == null) { + bigQueryMaxBilledBytesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder>( + getBigQueryMaxBilledBytes(), getParentForChildren(), isClean()); + bigQueryMaxBilledBytes_ = null; + } + return bigQueryMaxBilledBytesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.DatasourceOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.DatasourceOptions) + private static final com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DatasourceOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasourceOptions 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.geminidataanalytics.v1beta.DatasourceOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOptionsOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOptionsOrBuilder.java new file mode 100644 index 000000000000..6493dc795b95 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOptionsOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/context.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface DatasourceOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.DatasourceOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. This option applies to datasources that require BigQuery queries
                                          +   * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +   * bytes billed beyond this limit will fail (without incurring a charge).
                                          +   * If unspecified, no limit will be applied.
                                          +   * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigQueryMaxBilledBytes field is set. + */ + boolean hasBigQueryMaxBilledBytes(); + + /** + * + * + *
                                          +   * Optional. This option applies to datasources that require BigQuery queries
                                          +   * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +   * bytes billed beyond this limit will fail (without incurring a charge).
                                          +   * If unspecified, no limit will be applied.
                                          +   * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigQueryMaxBilledBytes. + */ + com.google.protobuf.Int64Value getBigQueryMaxBilledBytes(); + + /** + * + * + *
                                          +   * Optional. This option applies to datasources that require BigQuery queries
                                          +   * only. Limits the bytes billed for each BQ query job. Queries that will have
                                          +   * bytes billed beyond this limit will fail (without incurring a charge).
                                          +   * If unspecified, no limit will be applied.
                                          +   * 
                                          + * + * + * .google.protobuf.Int64Value big_query_max_billed_bytes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.Int64ValueOrBuilder getBigQueryMaxBilledBytesOrBuilder(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOrBuilder.java index a961fefe1948..5699f4b4598a 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOrBuilder.java @@ -194,5 +194,60 @@ public interface DatasourceOrBuilder */ com.google.cloud.geminidataanalytics.v1beta.SchemaOrBuilder getSchemaOrBuilder(); + /** + * + * + *
                                          +   * Optional. A struct representation of the schema.
                                          +   * This is populated for datasources with schemas that cannot be
                                          +   * fully represented by the strongly-typed `schema` field.
                                          +   *
                                          +   * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +   * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +   * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the structSchema field is set. + */ + boolean hasStructSchema(); + + /** + * + * + *
                                          +   * Optional. A struct representation of the schema.
                                          +   * This is populated for datasources with schemas that cannot be
                                          +   * fully represented by the strongly-typed `schema` field.
                                          +   *
                                          +   * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +   * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +   * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The structSchema. + */ + com.google.protobuf.Struct getStructSchema(); + + /** + * + * + *
                                          +   * Optional. A struct representation of the schema.
                                          +   * This is populated for datasources with schemas that cannot be
                                          +   * fully represented by the strongly-typed `schema` field.
                                          +   *
                                          +   * For Looker datasources, this maps to the LookmlModelExplore type:
                                          +   * https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
                                          +   * 
                                          + * + * .google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder(); + com.google.cloud.geminidataanalytics.v1beta.Datasource.ReferenceCase getReferenceCase(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java index c3429658df7c..b1c94cd69f54 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java @@ -88,65 +88,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "8google/cloud/geminidataanalytics/v1beta/datasource.proto\022\'google.cloud.geminid" + "ataanalytics.v1beta\032\037google/api/field_be" - + "havior.proto\0329google/cloud/geminidataanalytics/v1beta/credentials.proto\"\237\002\n" + + "havior.proto\0329google/cloud/geminidataana" + + "lytics/v1beta/credentials.proto\032\034google/protobuf/struct.proto\"\237\002\n" + "\024DatasourceReferences\022N\n" - + "\002bq\030\001 \001(\0132@.google.cl" - + "oud.geminidataanalytics.v1beta.BigQueryTableReferencesH\000\022U\n" - + "\006studio\030\002 \001(\0132C.googl" - + "e.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\000\022R\n" - + "\006looker\030\003 \001(\0132" - + "@.google.cloud.geminidataanalytics.v1beta.LookerExploreReferencesH\000B\014\n\n" + + "\002bq\030\001 \001(\0132@.google.cloud.gemini" + + "dataanalytics.v1beta.BigQueryTableReferencesH\000\022U\n" + + "\006studio\030\002 \001(\0132C.google.cloud.ge" + + "minidataanalytics.v1beta.StudioDatasourceReferencesH\000\022R\n" + + "\006looker\030\003 \001(\0132@.google.c" + + "loud.geminidataanalytics.v1beta.LookerExploreReferencesH\000B\014\n\n" + "references\"y\n" + "\027BigQueryTableReferences\022^\n" - + "\020table_references\030\001 \003(\0132?.google.cloud.geminidata" - + "analytics.v1beta.BigQueryTableReferenceB\003\340A\002\"\247\001\n" + + "\020table_references\030\001" + + " \003(\0132?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\002\"\247\001\n" + "\026BigQueryTableReference\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\027\n\n" + "dataset_id\030\003 \001(\tB\003\340A\002\022\025\n" + "\010table_id\030\004 \001(\tB\003\340A\002\022D\n" - + "\006schema\030\006 \001(\013" - + "2/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"{\n" + + "\006schema\030\006 \001(\0132/.google." + + "cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"{\n" + "\032StudioDatasourceReferences\022]\n" - + "\021studio_references\030\002 \003(\0132B.google" - + ".cloud.geminidataanalytics.v1beta.StudioDatasourceReference\"7\n" + + "\021studio_references\030\002 \003(\0132B.google.cloud.gem" + + "inidataanalytics.v1beta.StudioDatasourceReference\"7\n" + "\031StudioDatasourceReference\022\032\n\r" + "datasource_id\030\001 \001(\tB\003\340A\002\"\313\001\n" + "\027LookerExploreReferences\022`\n" - + "\022explore_references\030\001 \003(\0132?.google.cloud.geminidataan" - + "alytics.v1beta.LookerExploreReferenceB\003\340A\002\022N\n" - + "\013credentials\030\002 \001(\01324.google.cloud.g" - + "eminidataanalytics.v1beta.CredentialsB\003\340A\001\"\246\002\n" + + "\022explore_references\030\001 \003" + + "(\0132?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\003\340A\002\022N\n" + + "\013credentials\030\002" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.CredentialsB\003\340A\001\"\246\002\n" + "\026LookerExploreReference\022\035\n" + "\023looker_instance_uri\030\t \001(\tH\000\022j\n" + "\034private_looker_instance_info\030\n" - + " \001(\0132B.google.cloud.gemini" - + "dataanalytics.v1beta.PrivateLookerInstanceInfoH\000\022\031\n" + + " \001(\0132B.google.cloud.geminidataanalyt" + + "ics.v1beta.PrivateLookerInstanceInfoH\000\022\031\n" + "\014lookml_model\030\004 \001(\tB\003\340A\002\022\024\n" + "\007explore\030\005 \001(\tB\003\340A\002\022D\n" - + "\006schema\030\010 \001(\0132/.goog" - + "le.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001B\n\n" + + "\006schema\030\010" + + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001B\n\n" + "\010instance\"W\n" + "\031PrivateLookerInstanceInfo\022\032\n" + "\022looker_instance_id\030\001 \001(\t\022\036\n" - + "\026service_directory_name\030\002 \001(\t\"\311\002\n\n" + + "\026service_directory_name\030\002 \001(\t\"\376\002\n\n" + "Datasource\022c\n" - + "\030bigquery_table_reference\030\001 \001(\0132?." - + "google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceH\000\022\036\n" + + "\030bigquery_table_reference\030\001 \001(\0132?.google.clo" + + "ud.geminidataanalytics.v1beta.BigQueryTableReferenceH\000\022\036\n" + "\024studio_datasource_id\030\002 \001(\tH\000\022c\n" - + "\030looker_explore_reference\030\004" - + " \001(\0132?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\000\022D\n" - + "\006schema\030\007" - + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001B\013\n" + + "\030looker_explore_reference\030\004 \001(\013" + + "2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\000\022D\n" + + "\006schema\030\007 " + + "\001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\0223\n\r" + + "struct_schema\030\n" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001B\013\n" + "\treference\"\367\001\n" + "\006Schema\022C\n" - + "\006fields\030\001 \003(\0132..google.clo" - + "ud.geminidataanalytics.v1beta.FieldB\003\340A\001\022\030\n" + + "\006fields\030\001 \003(\0132..google." + + "cloud.geminidataanalytics.v1beta.FieldB\003\340A\001\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022\025\n" + "\010synonyms\030\003 \003(\tB\003\340A\001\022\021\n" + "\004tags\030\004 \003(\tB\003\340A\001\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\001\022I\n" - + "\007filters\030\006 \003(\01323.googl" - + "e.cloud.geminidataanalytics.v1beta.DataFilterB\003\340A\001\"\231\002\n" + + "\007filters\030\006 \003(\01323.go" + + "ogle.cloud.geminidataanalytics.v1beta.DataFilterB\003\340A\001\"\231\002\n" + "\005Field\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\021\n" + "\004type\030\002 \001(\tB\003\340A\001\022\030\n" @@ -155,25 +158,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010synonyms\030\006 \003(\tB\003\340A\001\022\021\n" + "\004tags\030\007 \003(\tB\003\340A\001\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\001\022F\n" - + "\tsubfields\030\t \003(\0132..google" - + ".cloud.geminidataanalytics.v1beta.FieldB\003\340A\001\022\025\n" + + "\tsubfields\030\t \003(\0132..goo" + + "gle.cloud.geminidataanalytics.v1beta.FieldB\003\340A\001\022\025\n" + "\010category\030\n" + " \001(\tB\003\340A\001\022\031\n" + "\014value_format\030\013 \001(\tB\003\340A\001\"\200\001\n\n" + "DataFilter\022\022\n" + "\005field\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\tB\003\340A\001\022J\n" - + "\004type\030\003 " - + "\001(\01627.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\003\340A\001*E\n" + + "\004type\030\003" + + " \001(\01627.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\003\340A\001*E\n" + "\016DataFilterType\022 \n" - + "\034DATA_FILTER_TYPE_UNSPECIFIED\020\000\022\021\n" - + "\r" + + "\034DATA_FILTER_TYPE_UNSPECIFIED\020\000\022\021\n\r" + "ALWAYS_FILTER\020\001B\240\002\n" - + "+com.google.cloud.geminidataanalytics.v1betaB\017DatasourceProt" - + "oP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;gem" - + "inidataanalyticspb\252\002\'Google.Cloud.Gemini" - + "DataAnalytics.V1Beta\312\002\'Google\\Cloud\\Gemi" - + "niDataAnalytics\\V1beta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3" + + "+com.google.cloud.geminidataanalytics.v1betaB\017DatasourceP" + + "rotoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;" + + "geminidataanalyticspb\252\002\'Google.Cloud.Gem" + + "iniDataAnalytics.V1Beta\312\002\'Google\\Cloud\\G" + + "eminiDataAnalytics\\V1beta\352\002*Google::Clou" + + "d::GeminiDataAnalytics::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -181,6 +184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.geminidataanalytics.v1beta.CredentialsProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), }); internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceReferences_descriptor = getDescriptor().getMessageTypes().get(0); @@ -261,6 +265,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StudioDatasourceId", "LookerExploreReference", "Schema", + "StructSchema", "Reference", }); internal_static_google_cloud_geminidataanalytics_v1beta_Schema_descriptor = @@ -303,6 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.geminidataanalytics.v1beta.CredentialsProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DeleteConversationRequest.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DeleteConversationRequest.java new file mode 100644 index 000000000000..dd84dd6cd843 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DeleteConversationRequest.java @@ -0,0 +1,674 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/conversation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
                                          + * Request for deleting a conversation based on parent and conversation id.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest} + */ +public final class DeleteConversationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest) + DeleteConversationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteConversationRequest.newBuilder() to construct. + private DeleteConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteConversationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteConversationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ConversationProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ConversationProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest.class, + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                          +   * Required. Name of the resource.
                                          +   * Format:
                                          +   * `projects/{project}/locations/{location}/conversations/{conversation}`
                                          +   * 
                                          + * + * + * 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. Name of the resource.
                                          +   * Format:
                                          +   * `projects/{project}/locations/{location}/conversations/{conversation}`
                                          +   * 
                                          + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.geminidataanalytics.v1beta.DeleteConversationRequest)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest other = + (com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest) 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.geminidataanalytics.v1beta.DeleteConversationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest 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.geminidataanalytics.v1beta.DeleteConversationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest 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.geminidataanalytics.v1beta.DeleteConversationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request for deleting a conversation based on parent and conversation id.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest) + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ConversationProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ConversationProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest.class, + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.geminidataanalytics.v1beta.ConversationProto + .internal_static_google_cloud_geminidataanalytics_v1beta_DeleteConversationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest build() { + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest result = + new com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest + .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. Name of the resource.
                                          +     * Format:
                                          +     * `projects/{project}/locations/{location}/conversations/{conversation}`
                                          +     * 
                                          + * + * + * 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. Name of the resource.
                                          +     * Format:
                                          +     * `projects/{project}/locations/{location}/conversations/{conversation}`
                                          +     * 
                                          + * + * + * 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. Name of the resource.
                                          +     * Format:
                                          +     * `projects/{project}/locations/{location}/conversations/{conversation}`
                                          +     * 
                                          + * + * + * 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. Name of the resource.
                                          +     * Format:
                                          +     * `projects/{project}/locations/{location}/conversations/{conversation}`
                                          +     * 
                                          + * + * + * 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. Name of the resource.
                                          +     * Format:
                                          +     * `projects/{project}/locations/{location}/conversations/{conversation}`
                                          +     * 
                                          + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest) + private static final com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversationRequest 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.geminidataanalytics.v1beta.DeleteConversationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DeleteConversationRequestOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DeleteConversationRequestOrBuilder.java new file mode 100644 index 000000000000..765bf51927bd --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DeleteConversationRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/conversation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface DeleteConversationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. Name of the resource.
                                          +   * Format:
                                          +   * `projects/{project}/locations/{location}/conversations/{conversation}`
                                          +   * 
                                          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                          +   * Required. Name of the resource.
                                          +   * Format:
                                          +   * `projects/{project}/locations/{location}/conversations/{conversation}`
                                          +   * 
                                          + * + * + * 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-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ErrorMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ErrorMessage.java index 0b7b4d30604e..4e2897fde991 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ErrorMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ErrorMessage.java @@ -23,7 +23,20 @@ * * *
                                          - * An error message.
                                          + * An error message from a tool call.
                                          + * This message is used to represent an error that occurred while an agent was
                                          + * trying to use a tool. It's important to note that not all errors are
                                          + * terminal. Many are recoverable, and the agent may use the information from
                                          + * this error message to self-correct and retry the tool call or try a
                                          + * different approach.
                                          + *
                                          + * For example, if a data query fails, the agent might receive an
                                          + * `ErrorMessage`, analyze it, and then generate a corrected query.
                                          + *
                                          + * Clients should be cautious about interpreting this message as a definitive
                                          + * failure. It can be part of the agent's normal, iterative process of
                                          + * completing a task. Surfacing these errors directly to end-users without
                                          + * context (e.g., as a "hard failure") may be misleading.
                                            * 
                                          * * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ErrorMessage} @@ -282,7 +295,20 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                          -   * An error message.
                                          +   * An error message from a tool call.
                                          +   * This message is used to represent an error that occurred while an agent was
                                          +   * trying to use a tool. It's important to note that not all errors are
                                          +   * terminal. Many are recoverable, and the agent may use the information from
                                          +   * this error message to self-correct and retry the tool call or try a
                                          +   * different approach.
                                          +   *
                                          +   * For example, if a data query fails, the agent might receive an
                                          +   * `ErrorMessage`, analyze it, and then generate a corrected query.
                                          +   *
                                          +   * Clients should be cautious about interpreting this message as a definitive
                                          +   * failure. It can be part of the agent's normal, iterative process of
                                          +   * completing a task. Surfacing these errors directly to end-users without
                                          +   * context (e.g., as a "hard failure") may be misleading.
                                              * 
                                          * * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ErrorMessage} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQueries.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQueries.java new file mode 100644 index 000000000000..c917a34a8a9e --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQueries.java @@ -0,0 +1,1099 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
                                          + * A message containing derived and authored example queries.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExampleQueries} + */ +public final class ExampleQueries extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ExampleQueries) + ExampleQueriesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExampleQueries.newBuilder() to construct. + private ExampleQueries(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExampleQueries() { + exampleQueries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExampleQueries(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.class, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.Builder.class); + } + + public static final int EXAMPLE_QUERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List exampleQueries_; + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExampleQueriesList() { + return exampleQueries_; + } + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExampleQueriesOrBuilderList() { + return exampleQueries_; + } + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getExampleQueriesCount() { + return exampleQueries_.size(); + } + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery getExampleQueries(int index) { + return exampleQueries_.get(index); + } + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder + getExampleQueriesOrBuilder(int index) { + return exampleQueries_.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 < exampleQueries_.size(); i++) { + output.writeMessage(1, exampleQueries_.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 < exampleQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, exampleQueries_.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.cloud.geminidataanalytics.v1beta.ExampleQueries)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries other = + (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) obj; + + if (!getExampleQueriesList().equals(other.getExampleQueriesList())) 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 (getExampleQueriesCount() > 0) { + hash = (37 * hash) + EXAMPLE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getExampleQueriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries 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.geminidataanalytics.v1beta.ExampleQueries parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries 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.geminidataanalytics.v1beta.ExampleQueries parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * A message containing derived and authored example queries.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExampleQueries} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ExampleQueries) + com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.class, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (exampleQueriesBuilder_ == null) { + exampleQueries_ = java.util.Collections.emptyList(); + } else { + exampleQueries_ = null; + exampleQueriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries build() { + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries result = + new com.google.cloud.geminidataanalytics.v1beta.ExampleQueries(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries result) { + if (exampleQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + exampleQueries_ = java.util.Collections.unmodifiableList(exampleQueries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.exampleQueries_ = exampleQueries_; + } else { + result.exampleQueries_ = exampleQueriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.ExampleQueries result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.ExampleQueries other) { + if (other == com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance()) + return this; + if (exampleQueriesBuilder_ == null) { + if (!other.exampleQueries_.isEmpty()) { + if (exampleQueries_.isEmpty()) { + exampleQueries_ = other.exampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExampleQueriesIsMutable(); + exampleQueries_.addAll(other.exampleQueries_); + } + onChanged(); + } + } else { + if (!other.exampleQueries_.isEmpty()) { + if (exampleQueriesBuilder_.isEmpty()) { + exampleQueriesBuilder_.dispose(); + exampleQueriesBuilder_ = null; + exampleQueries_ = other.exampleQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + exampleQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExampleQueriesFieldBuilder() + : null; + } else { + exampleQueriesBuilder_.addAllMessages(other.exampleQueries_); + } + } + } + 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.geminidataanalytics.v1beta.ExampleQuery m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.parser(), + extensionRegistry); + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + exampleQueries_.add(m); + } else { + exampleQueriesBuilder_.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 + exampleQueries_ = java.util.Collections.emptyList(); + + private void ensureExampleQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + exampleQueries_ = + new java.util.ArrayList( + exampleQueries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> + exampleQueriesBuilder_; + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExampleQueriesList() { + if (exampleQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(exampleQueries_); + } else { + return exampleQueriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getExampleQueriesCount() { + if (exampleQueriesBuilder_ == null) { + return exampleQueries_.size(); + } else { + return exampleQueriesBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery getExampleQueries(int index) { + if (exampleQueriesBuilder_ == null) { + return exampleQueries_.get(index); + } else { + return exampleQueriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExampleQueries( + int index, com.google.cloud.geminidataanalytics.v1beta.ExampleQuery value) { + if (exampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExampleQueriesIsMutable(); + exampleQueries_.set(index, value); + onChanged(); + } else { + exampleQueriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExampleQueries( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder builderForValue) { + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + exampleQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + exampleQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExampleQueries( + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery value) { + if (exampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExampleQueriesIsMutable(); + exampleQueries_.add(value); + onChanged(); + } else { + exampleQueriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExampleQueries( + int index, com.google.cloud.geminidataanalytics.v1beta.ExampleQuery value) { + if (exampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExampleQueriesIsMutable(); + exampleQueries_.add(index, value); + onChanged(); + } else { + exampleQueriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExampleQueries( + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder builderForValue) { + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + exampleQueries_.add(builderForValue.build()); + onChanged(); + } else { + exampleQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExampleQueries( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder builderForValue) { + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + exampleQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + exampleQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllExampleQueries( + java.lang.Iterable + values) { + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exampleQueries_); + onChanged(); + } else { + exampleQueriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExampleQueries() { + if (exampleQueriesBuilder_ == null) { + exampleQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + exampleQueriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeExampleQueries(int index) { + if (exampleQueriesBuilder_ == null) { + ensureExampleQueriesIsMutable(); + exampleQueries_.remove(index); + onChanged(); + } else { + exampleQueriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder + getExampleQueriesBuilder(int index) { + return getExampleQueriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder + getExampleQueriesOrBuilder(int index) { + if (exampleQueriesBuilder_ == null) { + return exampleQueries_.get(index); + } else { + return exampleQueriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> + getExampleQueriesOrBuilderList() { + if (exampleQueriesBuilder_ != null) { + return exampleQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exampleQueries_); + } + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder + addExampleQueriesBuilder() { + return getExampleQueriesFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder + addExampleQueriesBuilder(int index) { + return getExampleQueriesFieldBuilder() + .addBuilder( + index, com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Optional. A list of derived and authored example queries, providing
                                          +     * examples of relevant and commonly used SQL queries and their corresponding
                                          +     * natural language queries optionally present. Currently only used for
                                          +     * BigQuery data sources.
                                          +     * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExampleQueriesBuilderList() { + return getExampleQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> + getExampleQueriesFieldBuilder() { + if (exampleQueriesBuilder_ == null) { + exampleQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery, + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder>( + exampleQueries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + exampleQueries_ = null; + } + return exampleQueriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ExampleQueries) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ExampleQueries) + private static final com.google.cloud.geminidataanalytics.v1beta.ExampleQueries DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ExampleQueries(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExampleQueries getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExampleQueries 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.geminidataanalytics.v1beta.ExampleQueries getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQueriesOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQueriesOrBuilder.java new file mode 100644 index 000000000000..2826c6b981dc --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQueriesOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface ExampleQueriesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ExampleQueries) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getExampleQueriesList(); + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ExampleQuery getExampleQueries(int index); + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getExampleQueriesCount(); + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getExampleQueriesOrBuilderList(); + + /** + * + * + *
                                          +   * Optional. A list of derived and authored example queries, providing
                                          +   * examples of relevant and commonly used SQL queries and their corresponding
                                          +   * natural language queries optionally present. Currently only used for
                                          +   * BigQuery data sources.
                                          +   * 
                                          + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder getExampleQueriesOrBuilder( + int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQuery.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQuery.java index f93ddca0d70f..8174ba53eee9 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQuery.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExampleQuery.java @@ -24,7 +24,8 @@ * *
                                            * Example of relevant and commonly used SQL query and its corresponding natural
                                          - * language queries optionally present.
                                          + * language queries optionally present. Currently only used for BigQuery data
                                          + * sources.
                                            * 
                                          * * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExampleQuery} @@ -434,7 +435,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                              * Example of relevant and commonly used SQL query and its corresponding natural
                                          -   * language queries optionally present.
                                          +   * language queries optionally present. Currently only used for BigQuery data
                                          +   * sources.
                                              * 
                                          * * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExampleQuery} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Field.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Field.java index 70f25cb511c8..f00118826176 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Field.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Field.java @@ -296,7 +296,8 @@ public com.google.protobuf.ByteString getModeBytes() { * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to this field. For example: ["id", "customerid", "cust_id"]
                                          +   * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -312,7 +313,8 @@ public com.google.protobuf.ProtocolStringList getSynonymsList() { * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to this field. For example: ["id", "customerid", "cust_id"]
                                          +   * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -328,7 +330,8 @@ public int getSynonymsCount() { * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to this field. For example: ["id", "customerid", "cust_id"]
                                          +   * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -345,7 +348,8 @@ public java.lang.String getSynonyms(int index) { * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to this field. For example: ["id", "customerid", "cust_id"]
                                          +   * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -368,7 +372,8 @@ public com.google.protobuf.ByteString getSynonymsBytes(int index) { * *
                                              * Optional. A list of tags or keywords associated with the field, used for
                                          -   * categorization. For example: ["identifier", "customer", "pii"]
                                          +   * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +   * only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -384,7 +389,8 @@ public com.google.protobuf.ProtocolStringList getTagsList() { * *
                                              * Optional. A list of tags or keywords associated with the field, used for
                                          -   * categorization. For example: ["identifier", "customer", "pii"]
                                          +   * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +   * only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -400,7 +406,8 @@ public int getTagsCount() { * *
                                              * Optional. A list of tags or keywords associated with the field, used for
                                          -   * categorization. For example: ["identifier", "customer", "pii"]
                                          +   * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +   * only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -417,7 +424,8 @@ public java.lang.String getTags(int index) { * *
                                              * Optional. A list of tags or keywords associated with the field, used for
                                          -   * categorization. For example: ["identifier", "customer", "pii"]
                                          +   * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +   * only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1778,7 +1786,8 @@ private void ensureSynonymsIsMutable() { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to this field. For example: ["id", "customerid", "cust_id"]
                                          +     * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1795,7 +1804,8 @@ public com.google.protobuf.ProtocolStringList getSynonymsList() { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to this field. For example: ["id", "customerid", "cust_id"]
                                          +     * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1811,7 +1821,8 @@ public int getSynonymsCount() { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to this field. For example: ["id", "customerid", "cust_id"]
                                          +     * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1828,7 +1839,8 @@ public java.lang.String getSynonyms(int index) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to this field. For example: ["id", "customerid", "cust_id"]
                                          +     * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1845,7 +1857,8 @@ public com.google.protobuf.ByteString getSynonymsBytes(int index) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to this field. For example: ["id", "customerid", "cust_id"]
                                          +     * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1870,7 +1883,8 @@ public Builder setSynonyms(int index, java.lang.String value) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to this field. For example: ["id", "customerid", "cust_id"]
                                          +     * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1894,7 +1908,8 @@ public Builder addSynonyms(java.lang.String value) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to this field. For example: ["id", "customerid", "cust_id"]
                                          +     * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1915,7 +1930,8 @@ public Builder addAllSynonyms(java.lang.Iterable values) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to this field. For example: ["id", "customerid", "cust_id"]
                                          +     * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1935,7 +1951,8 @@ public Builder clearSynonyms() { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to this field. For example: ["id", "customerid", "cust_id"]
                                          +     * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1970,7 +1987,8 @@ private void ensureTagsIsMutable() { * *
                                                * Optional. A list of tags or keywords associated with the field, used for
                                          -     * categorization. For example: ["identifier", "customer", "pii"]
                                          +     * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +     * only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1987,7 +2005,8 @@ public com.google.protobuf.ProtocolStringList getTagsList() { * *
                                                * Optional. A list of tags or keywords associated with the field, used for
                                          -     * categorization. For example: ["identifier", "customer", "pii"]
                                          +     * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +     * only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2003,7 +2022,8 @@ public int getTagsCount() { * *
                                                * Optional. A list of tags or keywords associated with the field, used for
                                          -     * categorization. For example: ["identifier", "customer", "pii"]
                                          +     * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +     * only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2020,7 +2040,8 @@ public java.lang.String getTags(int index) { * *
                                                * Optional. A list of tags or keywords associated with the field, used for
                                          -     * categorization. For example: ["identifier", "customer", "pii"]
                                          +     * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +     * only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2037,7 +2058,8 @@ public com.google.protobuf.ByteString getTagsBytes(int index) { * *
                                                * Optional. A list of tags or keywords associated with the field, used for
                                          -     * categorization. For example: ["identifier", "customer", "pii"]
                                          +     * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +     * only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2062,7 +2084,8 @@ public Builder setTags(int index, java.lang.String value) { * *
                                                * Optional. A list of tags or keywords associated with the field, used for
                                          -     * categorization. For example: ["identifier", "customer", "pii"]
                                          +     * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +     * only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2086,7 +2109,8 @@ public Builder addTags(java.lang.String value) { * *
                                                * Optional. A list of tags or keywords associated with the field, used for
                                          -     * categorization. For example: ["identifier", "customer", "pii"]
                                          +     * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +     * only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2107,7 +2131,8 @@ public Builder addAllTags(java.lang.Iterable values) { * *
                                                * Optional. A list of tags or keywords associated with the field, used for
                                          -     * categorization. For example: ["identifier", "customer", "pii"]
                                          +     * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +     * only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2127,7 +2152,8 @@ public Builder clearTags() { * *
                                                * Optional. A list of tags or keywords associated with the field, used for
                                          -     * categorization. For example: ["identifier", "customer", "pii"]
                                          +     * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +     * only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FieldOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FieldOrBuilder.java index f134de3768e6..ea87b5da394d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FieldOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FieldOrBuilder.java @@ -133,7 +133,8 @@ public interface FieldOrBuilder * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to this field. For example: ["id", "customerid", "cust_id"]
                                          +   * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -147,7 +148,8 @@ public interface FieldOrBuilder * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to this field. For example: ["id", "customerid", "cust_id"]
                                          +   * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -161,7 +163,8 @@ public interface FieldOrBuilder * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to this field. For example: ["id", "customerid", "cust_id"]
                                          +   * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -176,7 +179,8 @@ public interface FieldOrBuilder * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to this field. For example: ["id", "customerid", "cust_id"]
                                          +   * to this field. For example: ["id", "customerid", "cust_id"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -191,7 +195,8 @@ public interface FieldOrBuilder * *
                                              * Optional. A list of tags or keywords associated with the field, used for
                                          -   * categorization. For example: ["identifier", "customer", "pii"]
                                          +   * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +   * only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -205,7 +210,8 @@ public interface FieldOrBuilder * *
                                              * Optional. A list of tags or keywords associated with the field, used for
                                          -   * categorization. For example: ["identifier", "customer", "pii"]
                                          +   * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +   * only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -219,7 +225,8 @@ public interface FieldOrBuilder * *
                                              * Optional. A list of tags or keywords associated with the field, used for
                                          -   * categorization. For example: ["identifier", "customer", "pii"]
                                          +   * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +   * only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -234,7 +241,8 @@ public interface FieldOrBuilder * *
                                              * Optional. A list of tags or keywords associated with the field, used for
                                          -   * categorization. For example: ["identifier", "customer", "pii"]
                                          +   * categorization. For example: ["identifier", "customer", "pii"]. Currently
                                          +   * only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 7 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GlossaryTerm.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GlossaryTerm.java new file mode 100644 index 000000000000..7e6acba67680 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GlossaryTerm.java @@ -0,0 +1,1148 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/context.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
                                          + * Definition of a term within a specific domain.
                                          + * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.GlossaryTerm} + */ +public final class GlossaryTerm extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.GlossaryTerm) + GlossaryTermOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GlossaryTerm.newBuilder() to construct. + private GlossaryTerm(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GlossaryTerm() { + displayName_ = ""; + description_ = ""; + labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GlossaryTerm(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.class, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +   * Required. User friendly display name of the glossary term being defined.
                                          +   * For example: "CTR", "conversion rate", "pending"
                                          +   * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Required. User friendly display name of the glossary term being defined.
                                          +   * For example: "CTR", "conversion rate", "pending"
                                          +   * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                          +   * Required. The description or meaning of the term.
                                          +   * For example: "Click-through rate", "The percentage of users who complete a
                                          +   * desired action", "An order that is waiting to be processed."
                                          +   * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                                          +   * Required. The description or meaning of the term.
                                          +   * For example: "Click-through rate", "The percentage of users who complete a
                                          +   * desired action", "An order that is waiting to be processed."
                                          +   * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 LABELS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList labels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                          +   * Optional. A list of general purpose labels associated to this term.
                                          +   * For example: ["click rate", "clickthrough", "waiting"]
                                          +   * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the labels. + */ + public com.google.protobuf.ProtocolStringList getLabelsList() { + return labels_; + } + + /** + * + * + *
                                          +   * Optional. A list of general purpose labels associated to this term.
                                          +   * For example: ["click rate", "clickthrough", "waiting"]
                                          +   * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of labels. + */ + public int getLabelsCount() { + return labels_.size(); + } + + /** + * + * + *
                                          +   * Optional. A list of general purpose labels associated to this term.
                                          +   * For example: ["click rate", "clickthrough", "waiting"]
                                          +   * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The labels at the given index. + */ + public java.lang.String getLabels(int index) { + return labels_.get(index); + } + + /** + * + * + *
                                          +   * Optional. A list of general purpose labels associated to this term.
                                          +   * For example: ["click rate", "clickthrough", "waiting"]
                                          +   * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the labels at the given index. + */ + public com.google.protobuf.ByteString getLabelsBytes(int index) { + return labels_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + for (int i = 0; i < labels_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, labels_.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + { + int dataSize = 0; + for (int i = 0; i < labels_.size(); i++) { + dataSize += computeStringSizeNoTag(labels_.getRaw(i)); + } + size += dataSize; + size += 1 * getLabelsList().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.geminidataanalytics.v1beta.GlossaryTerm)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm other = + (com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getLabelsList().equals(other.getLabelsList())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getLabelsCount() > 0) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabelsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm 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.geminidataanalytics.v1beta.GlossaryTerm parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm 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.geminidataanalytics.v1beta.GlossaryTerm parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Definition of a term within a specific domain.
                                          +   * 
                                          + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.GlossaryTerm} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.GlossaryTerm) + com.google.cloud.geminidataanalytics.v1beta.GlossaryTermOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.class, + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + description_ = ""; + labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.ContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GlossaryTerm_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm build() { + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm result = + new com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + labels_.makeImmutable(); + result.labels_ = labels_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm other) { + if (other == com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.labels_.isEmpty()) { + if (labels_.isEmpty()) { + labels_ = other.labels_; + bitField0_ |= 0x00000004; + } else { + ensureLabelsIsMutable(); + labels_.addAll(other.labels_); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLabelsIsMutable(); + labels_.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.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +     * Required. User friendly display name of the glossary term being defined.
                                          +     * For example: "CTR", "conversion rate", "pending"
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Required. User friendly display name of the glossary term being defined.
                                          +     * For example: "CTR", "conversion rate", "pending"
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Required. User friendly display name of the glossary term being defined.
                                          +     * For example: "CTR", "conversion rate", "pending"
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. User friendly display name of the glossary term being defined.
                                          +     * For example: "CTR", "conversion rate", "pending"
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. User friendly display name of the glossary term being defined.
                                          +     * For example: "CTR", "conversion rate", "pending"
                                          +     * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                          +     * Required. The description or meaning of the term.
                                          +     * For example: "Click-through rate", "The percentage of users who complete a
                                          +     * desired action", "An order that is waiting to be processed."
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                                          +     * Required. The description or meaning of the term.
                                          +     * For example: "Click-through rate", "The percentage of users who complete a
                                          +     * desired action", "An order that is waiting to be processed."
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
                                          +     * Required. The description or meaning of the term.
                                          +     * For example: "Click-through rate", "The percentage of users who complete a
                                          +     * desired action", "An order that is waiting to be processed."
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The description or meaning of the term.
                                          +     * For example: "Click-through rate", "The percentage of users who complete a
                                          +     * desired action", "An order that is waiting to be processed."
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The description or meaning of the term.
                                          +     * For example: "Click-through rate", "The percentage of users who complete a
                                          +     * desired action", "An order that is waiting to be processed."
                                          +     * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList labels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureLabelsIsMutable() { + if (!labels_.isModifiable()) { + labels_ = new com.google.protobuf.LazyStringArrayList(labels_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
                                          +     * Optional. A list of general purpose labels associated to this term.
                                          +     * For example: ["click rate", "clickthrough", "waiting"]
                                          +     * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the labels. + */ + public com.google.protobuf.ProtocolStringList getLabelsList() { + labels_.makeImmutable(); + return labels_; + } + + /** + * + * + *
                                          +     * Optional. A list of general purpose labels associated to this term.
                                          +     * For example: ["click rate", "clickthrough", "waiting"]
                                          +     * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of labels. + */ + public int getLabelsCount() { + return labels_.size(); + } + + /** + * + * + *
                                          +     * Optional. A list of general purpose labels associated to this term.
                                          +     * For example: ["click rate", "clickthrough", "waiting"]
                                          +     * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The labels at the given index. + */ + public java.lang.String getLabels(int index) { + return labels_.get(index); + } + + /** + * + * + *
                                          +     * Optional. A list of general purpose labels associated to this term.
                                          +     * For example: ["click rate", "clickthrough", "waiting"]
                                          +     * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the labels at the given index. + */ + public com.google.protobuf.ByteString getLabelsBytes(int index) { + return labels_.getByteString(index); + } + + /** + * + * + *
                                          +     * Optional. A list of general purpose labels associated to this term.
                                          +     * For example: ["click rate", "clickthrough", "waiting"]
                                          +     * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The labels to set. + * @return This builder for chaining. + */ + public Builder setLabels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLabelsIsMutable(); + labels_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of general purpose labels associated to this term.
                                          +     * For example: ["click rate", "clickthrough", "waiting"]
                                          +     * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The labels to add. + * @return This builder for chaining. + */ + public Builder addLabels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLabelsIsMutable(); + labels_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of general purpose labels associated to this term.
                                          +     * For example: ["click rate", "clickthrough", "waiting"]
                                          +     * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The labels to add. + * @return This builder for chaining. + */ + public Builder addAllLabels(java.lang.Iterable values) { + ensureLabelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labels_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of general purpose labels associated to this term.
                                          +     * For example: ["click rate", "clickthrough", "waiting"]
                                          +     * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLabels() { + labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A list of general purpose labels associated to this term.
                                          +     * For example: ["click rate", "clickthrough", "waiting"]
                                          +     * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the labels to add. + * @return This builder for chaining. + */ + public Builder addLabelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLabelsIsMutable(); + labels_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.GlossaryTerm) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.GlossaryTerm) + private static final com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GlossaryTerm 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.geminidataanalytics.v1beta.GlossaryTerm getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GlossaryTermOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GlossaryTermOrBuilder.java new file mode 100644 index 000000000000..851655469536 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GlossaryTermOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2025 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! +// source: google/cloud/geminidataanalytics/v1beta/context.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface GlossaryTermOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.GlossaryTerm) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. User friendly display name of the glossary term being defined.
                                          +   * For example: "CTR", "conversion rate", "pending"
                                          +   * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                          +   * Required. User friendly display name of the glossary term being defined.
                                          +   * For example: "CTR", "conversion rate", "pending"
                                          +   * 
                                          + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                          +   * Required. The description or meaning of the term.
                                          +   * For example: "Click-through rate", "The percentage of users who complete a
                                          +   * desired action", "An order that is waiting to be processed."
                                          +   * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                          +   * Required. The description or meaning of the term.
                                          +   * For example: "Click-through rate", "The percentage of users who complete a
                                          +   * desired action", "An order that is waiting to be processed."
                                          +   * 
                                          + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                          +   * Optional. A list of general purpose labels associated to this term.
                                          +   * For example: ["click rate", "clickthrough", "waiting"]
                                          +   * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the labels. + */ + java.util.List getLabelsList(); + + /** + * + * + *
                                          +   * Optional. A list of general purpose labels associated to this term.
                                          +   * For example: ["click rate", "clickthrough", "waiting"]
                                          +   * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of labels. + */ + int getLabelsCount(); + + /** + * + * + *
                                          +   * Optional. A list of general purpose labels associated to this term.
                                          +   * For example: ["click rate", "clickthrough", "waiting"]
                                          +   * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The labels at the given index. + */ + java.lang.String getLabels(int index); + + /** + * + * + *
                                          +   * Optional. A list of general purpose labels associated to this term.
                                          +   * For example: ["click rate", "clickthrough", "waiting"]
                                          +   * 
                                          + * + * repeated string labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the labels at the given index. + */ + com.google.protobuf.ByteString getLabelsBytes(int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ListConversationsRequest.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ListConversationsRequest.java index 1c4eef9e6450..3b59805300dc 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ListConversationsRequest.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ListConversationsRequest.java @@ -210,7 +210,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
                                              * Optional. Returned conversations will match criteria specified within the
                                              * filter. ListConversations allows filtering by:
                                          -   *  * agent_id
                                          +   *  * agents
                                              *  * labels
                                              * 
                                          * @@ -237,7 +237,7 @@ public java.lang.String getFilter() { *
                                              * Optional. Returned conversations will match criteria specified within the
                                              * filter. ListConversations allows filtering by:
                                          -   *  * agent_id
                                          +   *  * agents
                                              *  * labels
                                              * 
                                          * @@ -987,7 +987,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { *
                                                * Optional. Returned conversations will match criteria specified within the
                                                * filter. ListConversations allows filtering by:
                                          -     *  * agent_id
                                          +     *  * agents
                                                *  * labels
                                                * 
                                          * @@ -1013,7 +1013,7 @@ public java.lang.String getFilter() { *
                                                * Optional. Returned conversations will match criteria specified within the
                                                * filter. ListConversations allows filtering by:
                                          -     *  * agent_id
                                          +     *  * agents
                                                *  * labels
                                                * 
                                          * @@ -1039,7 +1039,7 @@ public com.google.protobuf.ByteString getFilterBytes() { *
                                                * Optional. Returned conversations will match criteria specified within the
                                                * filter. ListConversations allows filtering by:
                                          -     *  * agent_id
                                          +     *  * agents
                                                *  * labels
                                                * 
                                          * @@ -1064,7 +1064,7 @@ public Builder setFilter(java.lang.String value) { *
                                                * Optional. Returned conversations will match criteria specified within the
                                                * filter. ListConversations allows filtering by:
                                          -     *  * agent_id
                                          +     *  * agents
                                                *  * labels
                                                * 
                                          * @@ -1085,7 +1085,7 @@ public Builder clearFilter() { *
                                                * Optional. Returned conversations will match criteria specified within the
                                                * filter. ListConversations allows filtering by:
                                          -     *  * agent_id
                                          +     *  * agents
                                                *  * labels
                                                * 
                                          * diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ListConversationsRequestOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ListConversationsRequestOrBuilder.java index 801a4884c44f..7afe4337cecb 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ListConversationsRequestOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ListConversationsRequestOrBuilder.java @@ -103,7 +103,7 @@ public interface ListConversationsRequestOrBuilder *
                                              * Optional. Returned conversations will match criteria specified within the
                                              * filter. ListConversations allows filtering by:
                                          -   *  * agent_id
                                          +   *  * agents
                                              *  * labels
                                              * 
                                          * @@ -119,7 +119,7 @@ public interface ListConversationsRequestOrBuilder *
                                              * Optional. Returned conversations will match criteria specified within the
                                              * filter. ListConversations allows filtering by:
                                          -   *  * agent_id
                                          +   *  * agents
                                              *  * labels
                                              * 
                                          * diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Schema.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Schema.java index 4aad59e7535c..e5051d941dcd 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Schema.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Schema.java @@ -166,7 +166,7 @@ public com.google.cloud.geminidataanalytics.v1beta.FieldOrBuilder getFieldsOrBui *
                                              * Optional. A textual description of the table's content and purpose.
                                              * For example: "Contains information about customer orders in our e-commerce
                                          -   * store."
                                          +   * store." Currently only used for BigQuery data sources.
                                              * 
                                          * * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -192,7 +192,7 @@ public java.lang.String getDescription() { *
                                              * Optional. A textual description of the table's content and purpose.
                                              * For example: "Contains information about customer orders in our e-commerce
                                          -   * store."
                                          +   * store." Currently only used for BigQuery data sources.
                                              * 
                                          * * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -223,7 +223,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to the table. For example: ["sales", "orders", "purchases"]
                                          +   * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -239,7 +240,8 @@ public com.google.protobuf.ProtocolStringList getSynonymsList() { * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to the table. For example: ["sales", "orders", "purchases"]
                                          +   * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -255,7 +257,8 @@ public int getSynonymsCount() { * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to the table. For example: ["sales", "orders", "purchases"]
                                          +   * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -272,7 +275,8 @@ public java.lang.String getSynonyms(int index) { * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to the table. For example: ["sales", "orders", "purchases"]
                                          +   * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -295,7 +299,8 @@ public com.google.protobuf.ByteString getSynonymsBytes(int index) { * *
                                              * Optional. A list of tags or keywords associated with the table, used for
                                          -   * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +   * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +   * Currently only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -311,7 +316,8 @@ public com.google.protobuf.ProtocolStringList getTagsList() { * *
                                              * Optional. A list of tags or keywords associated with the table, used for
                                          -   * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +   * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +   * Currently only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -327,7 +333,8 @@ public int getTagsCount() { * *
                                              * Optional. A list of tags or keywords associated with the table, used for
                                          -   * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +   * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +   * Currently only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -344,7 +351,8 @@ public java.lang.String getTags(int index) { * *
                                              * Optional. A list of tags or keywords associated with the table, used for
                                          -   * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +   * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +   * Currently only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1503,7 +1511,7 @@ public com.google.cloud.geminidataanalytics.v1beta.Field.Builder addFieldsBuilde *
                                                * Optional. A textual description of the table's content and purpose.
                                                * For example: "Contains information about customer orders in our e-commerce
                                          -     * store."
                                          +     * store." Currently only used for BigQuery data sources.
                                                * 
                                          * * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1528,7 +1536,7 @@ public java.lang.String getDescription() { *
                                                * Optional. A textual description of the table's content and purpose.
                                                * For example: "Contains information about customer orders in our e-commerce
                                          -     * store."
                                          +     * store." Currently only used for BigQuery data sources.
                                                * 
                                          * * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1553,7 +1561,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { *
                                                * Optional. A textual description of the table's content and purpose.
                                                * For example: "Contains information about customer orders in our e-commerce
                                          -     * store."
                                          +     * store." Currently only used for BigQuery data sources.
                                                * 
                                          * * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1577,7 +1585,7 @@ public Builder setDescription(java.lang.String value) { *
                                                * Optional. A textual description of the table's content and purpose.
                                                * For example: "Contains information about customer orders in our e-commerce
                                          -     * store."
                                          +     * store." Currently only used for BigQuery data sources.
                                                * 
                                          * * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1597,7 +1605,7 @@ public Builder clearDescription() { *
                                                * Optional. A textual description of the table's content and purpose.
                                                * For example: "Contains information about customer orders in our e-commerce
                                          -     * store."
                                          +     * store." Currently only used for BigQuery data sources.
                                                * 
                                          * * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1631,7 +1639,8 @@ private void ensureSynonymsIsMutable() { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to the table. For example: ["sales", "orders", "purchases"]
                                          +     * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1648,7 +1657,8 @@ public com.google.protobuf.ProtocolStringList getSynonymsList() { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to the table. For example: ["sales", "orders", "purchases"]
                                          +     * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1664,7 +1674,8 @@ public int getSynonymsCount() { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to the table. For example: ["sales", "orders", "purchases"]
                                          +     * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1681,7 +1692,8 @@ public java.lang.String getSynonyms(int index) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to the table. For example: ["sales", "orders", "purchases"]
                                          +     * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1698,7 +1710,8 @@ public com.google.protobuf.ByteString getSynonymsBytes(int index) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to the table. For example: ["sales", "orders", "purchases"]
                                          +     * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1723,7 +1736,8 @@ public Builder setSynonyms(int index, java.lang.String value) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to the table. For example: ["sales", "orders", "purchases"]
                                          +     * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1747,7 +1761,8 @@ public Builder addSynonyms(java.lang.String value) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to the table. For example: ["sales", "orders", "purchases"]
                                          +     * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1768,7 +1783,8 @@ public Builder addAllSynonyms(java.lang.Iterable values) { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to the table. For example: ["sales", "orders", "purchases"]
                                          +     * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1788,7 +1804,8 @@ public Builder clearSynonyms() { * *
                                                * Optional. A list of alternative names or synonyms that can be used to refer
                                          -     * to the table. For example: ["sales", "orders", "purchases"]
                                          +     * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +     * used for BigQuery data sources.
                                                * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1823,7 +1840,8 @@ private void ensureTagsIsMutable() { * *
                                                * Optional. A list of tags or keywords associated with the table, used for
                                          -     * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +     * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +     * Currently only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1840,7 +1858,8 @@ public com.google.protobuf.ProtocolStringList getTagsList() { * *
                                                * Optional. A list of tags or keywords associated with the table, used for
                                          -     * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +     * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +     * Currently only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1856,7 +1875,8 @@ public int getTagsCount() { * *
                                                * Optional. A list of tags or keywords associated with the table, used for
                                          -     * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +     * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +     * Currently only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1873,7 +1893,8 @@ public java.lang.String getTags(int index) { * *
                                                * Optional. A list of tags or keywords associated with the table, used for
                                          -     * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +     * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +     * Currently only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1890,7 +1911,8 @@ public com.google.protobuf.ByteString getTagsBytes(int index) { * *
                                                * Optional. A list of tags or keywords associated with the table, used for
                                          -     * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +     * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +     * Currently only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1915,7 +1937,8 @@ public Builder setTags(int index, java.lang.String value) { * *
                                                * Optional. A list of tags or keywords associated with the table, used for
                                          -     * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +     * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +     * Currently only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1939,7 +1962,8 @@ public Builder addTags(java.lang.String value) { * *
                                                * Optional. A list of tags or keywords associated with the table, used for
                                          -     * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +     * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +     * Currently only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1960,7 +1984,8 @@ public Builder addAllTags(java.lang.Iterable values) { * *
                                                * Optional. A list of tags or keywords associated with the table, used for
                                          -     * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +     * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +     * Currently only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1980,7 +2005,8 @@ public Builder clearTags() { * *
                                                * Optional. A list of tags or keywords associated with the table, used for
                                          -     * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +     * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +     * Currently only used for BigQuery data sources.
                                                * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SchemaOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SchemaOrBuilder.java index cfa5f542ffe3..58519bc1d056 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SchemaOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SchemaOrBuilder.java @@ -96,7 +96,7 @@ public interface SchemaOrBuilder *
                                              * Optional. A textual description of the table's content and purpose.
                                              * For example: "Contains information about customer orders in our e-commerce
                                          -   * store."
                                          +   * store." Currently only used for BigQuery data sources.
                                              * 
                                          * * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -111,7 +111,7 @@ public interface SchemaOrBuilder *
                                              * Optional. A textual description of the table's content and purpose.
                                              * For example: "Contains information about customer orders in our e-commerce
                                          -   * store."
                                          +   * store." Currently only used for BigQuery data sources.
                                              * 
                                          * * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -125,7 +125,8 @@ public interface SchemaOrBuilder * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to the table. For example: ["sales", "orders", "purchases"]
                                          +   * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -139,7 +140,8 @@ public interface SchemaOrBuilder * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to the table. For example: ["sales", "orders", "purchases"]
                                          +   * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -153,7 +155,8 @@ public interface SchemaOrBuilder * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to the table. For example: ["sales", "orders", "purchases"]
                                          +   * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -168,7 +171,8 @@ public interface SchemaOrBuilder * *
                                              * Optional. A list of alternative names or synonyms that can be used to refer
                                          -   * to the table. For example: ["sales", "orders", "purchases"]
                                          +   * to the table. For example: ["sales", "orders", "purchases"]. Currently only
                                          +   * used for BigQuery data sources.
                                              * 
                                          * * repeated string synonyms = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -183,7 +187,8 @@ public interface SchemaOrBuilder * *
                                              * Optional. A list of tags or keywords associated with the table, used for
                                          -   * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +   * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +   * Currently only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -197,7 +202,8 @@ public interface SchemaOrBuilder * *
                                              * Optional. A list of tags or keywords associated with the table, used for
                                          -   * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +   * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +   * Currently only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -211,7 +217,8 @@ public interface SchemaOrBuilder * *
                                              * Optional. A list of tags or keywords associated with the table, used for
                                          -   * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +   * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +   * Currently only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -226,7 +233,8 @@ public interface SchemaOrBuilder * *
                                              * Optional. A list of tags or keywords associated with the table, used for
                                          -   * categorization. For example: ["transaction", "revenue", "customer_data"]
                                          +   * categorization. For example: ["transaction", "revenue", "customer_data"].
                                          +   * Currently only used for BigQuery data sources.
                                              * 
                                          * * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java index 1ae42bf4f2b9..8358c258cc68 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java @@ -80,6 +80,7 @@ public enum KindCase ANALYSIS(4), CHART(5), ERROR(6), + EXAMPLE_QUERIES(13), KIND_NOT_SET(0); private final int value; @@ -111,6 +112,8 @@ public static KindCase forNumber(int value) { return CHART; case 6: return ERROR; + case 13: + return EXAMPLE_QUERIES; case 0: return KIND_NOT_SET; default: @@ -452,6 +455,67 @@ public com.google.cloud.geminidataanalytics.v1beta.ErrorMessageOrBuilder getErro return com.google.cloud.geminidataanalytics.v1beta.ErrorMessage.getDefaultInstance(); } + public static final int EXAMPLE_QUERIES_FIELD_NUMBER = 13; + + /** + * + * + *
                                          +   * Optional. A message containing example queries.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exampleQueries field is set. + */ + @java.lang.Override + public boolean hasExampleQueries() { + return kindCase_ == 13; + } + + /** + * + * + *
                                          +   * Optional. A message containing example queries.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exampleQueries. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries getExampleQueries() { + if (kindCase_ == 13) { + return (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance(); + } + + /** + * + * + *
                                          +   * Optional. A message containing example queries.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder + getExampleQueriesOrBuilder() { + if (kindCase_ == 13) { + return (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance(); + } + public static final int GROUP_ID_FIELD_NUMBER = 12; private int groupId_ = 0; @@ -526,6 +590,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(12, groupId_); } + if (kindCase_ == 13) { + output.writeMessage(13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_); + } getUnknownFields().writeTo(output); } @@ -568,6 +635,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, groupId_); } + if (kindCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -608,6 +680,9 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getError().equals(other.getError())) return false; break; + case 13: + if (!getExampleQueries().equals(other.getExampleQueries())) return false; + break; case 0: default: } @@ -651,6 +726,10 @@ public int hashCode() { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); break; + case 13: + hash = (37 * hash) + EXAMPLE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getExampleQueries().hashCode(); + break; case 0: default: } @@ -815,6 +894,9 @@ public Builder clear() { if (errorBuilder_ != null) { errorBuilder_.clear(); } + if (exampleQueriesBuilder_ != null) { + exampleQueriesBuilder_.clear(); + } groupId_ = 0; kindCase_ = 0; kind_ = null; @@ -856,7 +938,7 @@ public com.google.cloud.geminidataanalytics.v1beta.SystemMessage buildPartial() private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.SystemMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.groupId_ = groupId_; to_bitField0_ |= 0x00000001; } @@ -885,6 +967,9 @@ private void buildPartialOneofs( if (kindCase_ == 6 && errorBuilder_ != null) { result.kind_ = errorBuilder_.build(); } + if (kindCase_ == 13 && exampleQueriesBuilder_ != null) { + result.kind_ = exampleQueriesBuilder_.build(); + } } @java.lang.Override @@ -967,6 +1052,11 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.SystemMessa mergeError(other.getError()); break; } + case EXAMPLE_QUERIES: + { + mergeExampleQueries(other.getExampleQueries()); + break; + } case KIND_NOT_SET: { break; @@ -1037,9 +1127,15 @@ public Builder mergeFrom( case 96: { groupId_ = input.readInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 96 + case 106: + { + input.readMessage(getExampleQueriesFieldBuilder().getBuilder(), extensionRegistry); + kindCase_ = 13; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2391,6 +2487,248 @@ public com.google.cloud.geminidataanalytics.v1beta.ErrorMessageOrBuilder getErro return errorBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder> + exampleQueriesBuilder_; + + /** + * + * + *
                                          +     * Optional. A message containing example queries.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exampleQueries field is set. + */ + @java.lang.Override + public boolean hasExampleQueries() { + return kindCase_ == 13; + } + + /** + * + * + *
                                          +     * Optional. A message containing example queries.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exampleQueries. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries getExampleQueries() { + if (exampleQueriesBuilder_ == null) { + if (kindCase_ == 13) { + return (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance(); + } else { + if (kindCase_ == 13) { + return exampleQueriesBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Optional. A message containing example queries.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExampleQueries( + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries value) { + if (exampleQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + exampleQueriesBuilder_.setMessage(value); + } + kindCase_ = 13; + return this; + } + + /** + * + * + *
                                          +     * Optional. A message containing example queries.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExampleQueries( + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.Builder builderForValue) { + if (exampleQueriesBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + exampleQueriesBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 13; + return this; + } + + /** + * + * + *
                                          +     * Optional. A message containing example queries.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExampleQueries( + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries value) { + if (exampleQueriesBuilder_ == null) { + if (kindCase_ == 13 + && kind_ + != com.google.cloud.geminidataanalytics.v1beta.ExampleQueries + .getDefaultInstance()) { + kind_ = + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_) + .mergeFrom(value) + .buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 13) { + exampleQueriesBuilder_.mergeFrom(value); + } else { + exampleQueriesBuilder_.setMessage(value); + } + } + kindCase_ = 13; + return this; + } + + /** + * + * + *
                                          +     * Optional. A message containing example queries.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExampleQueries() { + if (exampleQueriesBuilder_ == null) { + if (kindCase_ == 13) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 13) { + kindCase_ = 0; + kind_ = null; + } + exampleQueriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Optional. A message containing example queries.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.Builder + getExampleQueriesBuilder() { + return getExampleQueriesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Optional. A message containing example queries.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder + getExampleQueriesOrBuilder() { + if ((kindCase_ == 13) && (exampleQueriesBuilder_ != null)) { + return exampleQueriesBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 13) { + return (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance(); + } + } + + /** + * + * + *
                                          +     * Optional. A message containing example queries.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder> + getExampleQueriesFieldBuilder() { + if (exampleQueriesBuilder_ == null) { + if (!(kindCase_ == 13)) { + kind_ = com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance(); + } + exampleQueriesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 13; + onChanged(); + return exampleQueriesBuilder_; + } + private int groupId_; /** @@ -2408,7 +2746,7 @@ public com.google.cloud.geminidataanalytics.v1beta.ErrorMessageOrBuilder getErro */ @java.lang.Override public boolean hasGroupId() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2446,7 +2784,7 @@ public int getGroupId() { public Builder setGroupId(int value) { groupId_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2465,7 +2803,7 @@ public Builder setGroupId(int value) { * @return This builder for chaining. */ public Builder clearGroupId() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); groupId_ = 0; onChanged(); return this; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java index 26b480b4b69b..ea7aa627e881 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java @@ -246,6 +246,49 @@ public interface SystemMessageOrBuilder */ com.google.cloud.geminidataanalytics.v1beta.ErrorMessageOrBuilder getErrorOrBuilder(); + /** + * + * + *
                                          +   * Optional. A message containing example queries.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exampleQueries field is set. + */ + boolean hasExampleQueries(); + + /** + * + * + *
                                          +   * Optional. A message containing example queries.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exampleQueries. + */ + com.google.cloud.geminidataanalytics.v1beta.ExampleQueries getExampleQueries(); + + /** + * + * + *
                                          +   * Optional. A message containing example queries.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.ExampleQueries example_queries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder getExampleQueriesOrBuilder(); + /** * * diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java index bf89409cb55d..660629088bfc 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java @@ -41,6 +41,7 @@ private TextMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TextMessage() { parts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + textType_ = 0; } @java.lang.Override @@ -64,6 +65,198 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.geminidataanalytics.v1beta.TextMessage.Builder.class); } + /** + * + * + *
                                          +   * The type of the text message.
                                          +   * 
                                          + * + * Protobuf enum {@code google.cloud.geminidataanalytics.v1beta.TextMessage.TextType} + */ + public enum TextType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +     * The default text type.
                                          +     * 
                                          + * + * TEXT_TYPE_UNSPECIFIED = 0; + */ + TEXT_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                          +     * The text is a final response to the user question.
                                          +     * 
                                          + * + * FINAL_RESPONSE = 1; + */ + FINAL_RESPONSE(1), + /** + * + * + *
                                          +     * The text is a thinking plan generated by the thinking tool.
                                          +     * 
                                          + * + * THOUGHT = 2; + */ + THOUGHT(2), + /** + * + * + *
                                          +     * The text is an informational message about the agent's progress, such as
                                          +     * a tool being invoked. This is distinct from the agent's internal thought
                                          +     * process (`THOUGHT`) and the final answer to the user
                                          +     * (`FINAL_RESPONSE`). These messages provide insight into the agent's
                                          +     * actions.
                                          +     * 
                                          + * + * PROGRESS = 3; + */ + PROGRESS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +     * The default text type.
                                          +     * 
                                          + * + * TEXT_TYPE_UNSPECIFIED = 0; + */ + public static final int TEXT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +     * The text is a final response to the user question.
                                          +     * 
                                          + * + * FINAL_RESPONSE = 1; + */ + public static final int FINAL_RESPONSE_VALUE = 1; + + /** + * + * + *
                                          +     * The text is a thinking plan generated by the thinking tool.
                                          +     * 
                                          + * + * THOUGHT = 2; + */ + public static final int THOUGHT_VALUE = 2; + + /** + * + * + *
                                          +     * The text is an informational message about the agent's progress, such as
                                          +     * a tool being invoked. This is distinct from the agent's internal thought
                                          +     * process (`THOUGHT`) and the final answer to the user
                                          +     * (`FINAL_RESPONSE`). These messages provide insight into the agent's
                                          +     * actions.
                                          +     * 
                                          + * + * PROGRESS = 3; + */ + public static final int PROGRESS_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 TextType 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 TextType forNumber(int value) { + switch (value) { + case 0: + return TEXT_TYPE_UNSPECIFIED; + case 1: + return FINAL_RESPONSE; + case 2: + return THOUGHT; + case 3: + return PROGRESS; + 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 TextType findValueByNumber(int number) { + return TextType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.TextMessage.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final TextType[] VALUES = values(); + + public static TextType 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 TextType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.TextMessage.TextType) + } + public static final int PARTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -132,6 +325,49 @@ public com.google.protobuf.ByteString getPartsBytes(int index) { return parts_.getByteString(index); } + public static final int TEXT_TYPE_FIELD_NUMBER = 2; + private int textType_ = 0; + + /** + * + * + *
                                          +   * Optional. The type of the text message.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for textType. + */ + @java.lang.Override + public int getTextTypeValue() { + return textType_; + } + + /** + * + * + *
                                          +   * Optional. The type of the text message.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textType. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextType() { + com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType result = + com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType.forNumber(textType_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -149,6 +385,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < parts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parts_.getRaw(i)); } + if (textType_ + != com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType.TEXT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, textType_); + } getUnknownFields().writeTo(output); } @@ -166,6 +407,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPartsList().size(); } + if (textType_ + != com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType.TEXT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, textType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -183,6 +429,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.geminidataanalytics.v1beta.TextMessage) obj; if (!getPartsList().equals(other.getPartsList())) return false; + if (textType_ != other.textType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,6 +445,8 @@ public int hashCode() { hash = (37 * hash) + PARTS_FIELD_NUMBER; hash = (53 * hash) + getPartsList().hashCode(); } + hash = (37 * hash) + TEXT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + textType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -340,6 +589,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; parts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + textType_ = 0; return this; } @@ -380,6 +630,9 @@ private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.TextMessa parts_.makeImmutable(); result.parts_ = parts_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.textType_ = textType_; + } } @java.lang.Override @@ -438,6 +691,9 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.TextMessage } onChanged(); } + if (other.textType_ != 0) { + setTextTypeValue(other.getTextTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -471,6 +727,12 @@ public Builder mergeFrom( parts_.add(s); break; } // case 10 + case 16: + { + textType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -673,6 +935,114 @@ public Builder addPartsBytes(com.google.protobuf.ByteString value) { return this; } + private int textType_ = 0; + + /** + * + * + *
                                          +     * Optional. The type of the text message.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for textType. + */ + @java.lang.Override + public int getTextTypeValue() { + return textType_; + } + + /** + * + * + *
                                          +     * Optional. The type of the text message.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for textType to set. + * @return This builder for chaining. + */ + public Builder setTextTypeValue(int value) { + textType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The type of the text message.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textType. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextType() { + com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType result = + com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType.forNumber(textType_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +     * Optional. The type of the text message.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The textType to set. + * @return This builder for chaining. + */ + public Builder setTextType( + com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + textType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The type of the text message.
                                          +     * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTextType() { + bitField0_ = (bitField0_ & ~0x00000002); + textType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java index aa3217feb05a..9653ec00ed90 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java @@ -77,4 +77,34 @@ public interface TextMessageOrBuilder * @return The bytes of the parts at the given index. */ com.google.protobuf.ByteString getPartsBytes(int index); + + /** + * + * + *
                                          +   * Optional. The type of the text message.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for textType. + */ + int getTextTypeValue(); + + /** + * + * + *
                                          +   * Optional. The type of the text message.
                                          +   * 
                                          + * + * + * .google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textType. + */ + com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextType(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/context.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/context.proto index c093e0a21515..196608cce80d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/context.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/context.proto @@ -18,6 +18,7 @@ package google.cloud.geminidataanalytics.v1beta; import "google/api/field_behavior.proto"; import "google/cloud/geminidataanalytics/v1beta/datasource.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.GeminiDataAnalytics.V1Beta"; option go_package = "cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb"; @@ -29,6 +30,56 @@ option ruby_package = "Google::Cloud::GeminiDataAnalytics::V1beta"; // A collection of context to apply to this conversation message Context { + // The relationship between two tables, including referencing and referenced + // columns. This is a derived context retrieved from Dataplex Dataset + // Insights. + message SchemaRelationship { + // Represents an ordered set of paths within the table schema. + message SchemaPaths { + // The service-qualified full resource name of the table + // Ex: + // bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + string table_fqn = 1; + + // The ordered list of paths within the table schema. + repeated string paths = 2; + } + + // Source which generated the schema relation edge. + enum Source { + // The source of the schema relationship is unspecified. + SOURCE_UNSPECIFIED = 0; + + // The source of the schema relationship is BigQuery job history. + BIGQUERY_JOB_HISTORY = 1; + + // The source of the schema relationship is LLM suggested. + LLM_SUGGESTED = 2; + + // The source of the schema relationship is BigQuery table constraints. + BIGQUERY_TABLE_CONSTRAINTS = 3; + } + + // An ordered list of fields for the join from the first table. + // The size of this list must be the same as `right_schema_paths`. + // Each field at index i in this list must correspond to a field at the same + // index in the `right_schema_paths` list. + SchemaPaths left_schema_paths = 1; + + // An ordered list of fields for the join from the second table. + // The size of this list must be the same as `left_schema_paths`. + // Each field at index i in this list must correspond to a field at the same + // index in the `left_schema_paths` list. + SchemaPaths right_schema_paths = 2; + + // Sources which generated the schema relation edge. + repeated Source sources = 3; + + // A confidence score for the suggested relationship. + // Manually added edges have the highest confidence score. + float confidence_score = 4; + } + // Optional. The basic entry point for data owners creating domain knowledge // for Agent. // @@ -46,13 +97,23 @@ message Context { // Optional. A list of example queries, providing examples of relevant and // commonly used SQL queries and their corresponding natural language queries - // optionally present. + // optionally present. Currently only used for BigQuery data sources. repeated ExampleQuery example_queries = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Term definitions (currently, only user authored) + repeated GlossaryTerm glossary_terms = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Relationships between table schema, including referencing and + // referenced columns. + repeated SchemaRelationship schema_relationships = 9 + [(google.api.field_behavior) = OPTIONAL]; } // Example of relevant and commonly used SQL query and its corresponding natural -// language queries optionally present. +// language queries optionally present. Currently only used for BigQuery data +// sources. message ExampleQuery { // The SQL or Looker query that should be generated to answer the natural // language query. @@ -68,6 +129,22 @@ message ExampleQuery { string natural_language_question = 1 [(google.api.field_behavior) = OPTIONAL]; } +// Definition of a term within a specific domain. +message GlossaryTerm { + // Required. User friendly display name of the glossary term being defined. + // For example: "CTR", "conversion rate", "pending" + string display_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The description or meaning of the term. + // For example: "Click-through rate", "The percentage of users who complete a + // desired action", "An order that is waiting to be processed." + string description = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A list of general purpose labels associated to this term. + // For example: ["click rate", "clickthrough", "waiting"] + repeated string labels = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Options for the conversation. message ConversationOptions { // Optional. Options for chart generation. @@ -75,6 +152,19 @@ message ConversationOptions { // Optional. Options for analysis. AnalysisOptions analysis = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Options for datasources. + DatasourceOptions datasource = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Options for datasources configurations. +message DatasourceOptions { + // Optional. This option applies to datasources that require BigQuery queries + // only. Limits the bytes billed for each BQ query job. Queries that will have + // bytes billed beyond this limit will fail (without incurring a charge). + // If unspecified, no limit will be applied. + google.protobuf.Int64Value big_query_max_billed_bytes = 1 + [(google.api.field_behavior) = OPTIONAL]; } // Options for chart generation. diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/conversation.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/conversation.proto index 460733881c69..4f40811b2252 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/conversation.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/conversation.proto @@ -45,7 +45,7 @@ message Conversation { // https://google.aip.dev/122#resource-id-segments // // Example: - // `projects/1234567890/locations/us-central1/conversations/my-conversation`. + // `projects/1234567890/locations/global/conversations/my-conversation`. // // It is recommended to skip setting this field during conversation creation // as it will be inferred automatically and overwritten with the @@ -139,7 +139,7 @@ message ListConversationsRequest { // Optional. Returned conversations will match criteria specified within the // filter. ListConversations allows filtering by: - // * agent_id + // * agents // * labels string filter = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -152,3 +152,16 @@ message ListConversationsResponse { // A token identifying a page of results the server should return. string next_page_token = 2; } + +// Request for deleting a conversation based on parent and conversation id. +message DeleteConversationRequest { + // Required. Name of the resource. + // Format: + // `projects/{project}/locations/{location}/conversations/{conversation}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "geminidataanalytics.googleapis.com/Conversation" + } + ]; +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent.proto index f4bbf3adb2ad..01e413257af9 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent.proto @@ -53,7 +53,7 @@ message DataAgent { // must match the format described in // https://google.aip.dev/122#resource-id-segments // - // Example: `projects/1234567890/locations/us-central1/dataAgents/my-agent`. + // Example: `projects/1234567890/locations/global/dataAgents/my-agent`. // // It is recommended to skip setting this field during agent creation as it // will be inferred automatically and overwritten with the diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto index 145efb2a384b..ba3a683c223e 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto @@ -24,6 +24,7 @@ import "google/cloud/geminidataanalytics/v1beta/context.proto"; import "google/cloud/geminidataanalytics/v1beta/conversation.proto"; import "google/cloud/geminidataanalytics/v1beta/credentials.proto"; import "google/cloud/geminidataanalytics/v1beta/datasource.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -63,6 +64,15 @@ service DataChatService { "parent,conversation,conversation_id"; } + // Deletes a conversation. + rpc DeleteConversation(DeleteConversationRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/conversations/*}" + }; + option (google.api.method_signature) = "name"; + } + // Gets details of a single conversation by using conversation id and parent. rpc GetConversation(GetConversationRequest) returns (Conversation) { option (google.api.http) = { @@ -159,6 +169,13 @@ message ChatRequest { // statelessly, without managed conversation persistence. DataAgentContext data_agent_context = 104 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Context with client managed resources. + // Some clients may not use GDA managed resources including + // conversations and agents, instead they create and manage their own + // conversations and agents resources. + ClientManagedResourceContext client_managed_resource_context = 105 + [(google.api.field_behavior) = OPTIONAL]; } // Optional. The Google Cloud project to be used for quota and billing. @@ -233,6 +250,22 @@ message ConversationReference { [(google.api.field_behavior) = REQUIRED]; } +// Context with client managed resources. +// Some clients may not use GDA managed resources including +// conversations and agents, instead they create and manage their own +// conversations and agents resources. +message ClientManagedResourceContext { + // Required. Context for the chat request. Use this to chat without GDA API + // managed conversation and agent persistence by passing all context inline. + Context inline_context = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The client managed conversation id. + string conversation_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The client managed agent id. + string agent_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // A message from an interaction between the user and the system. message Message { // The kind of message. @@ -286,6 +319,10 @@ message SystemMessage { // An error message. ErrorMessage error = 6; + + // Optional. A message containing example queries. + ExampleQueries example_queries = 13 + [(google.api.field_behavior) = OPTIONAL]; } // Identifies the group that the event belongs to. Similar events are deemed @@ -296,8 +333,30 @@ message SystemMessage { // A multi-part text message. message TextMessage { + // The type of the text message. + enum TextType { + // The default text type. + TEXT_TYPE_UNSPECIFIED = 0; + + // The text is a final response to the user question. + FINAL_RESPONSE = 1; + + // The text is a thinking plan generated by the thinking tool. + THOUGHT = 2; + + // The text is an informational message about the agent's progress, such as + // a tool being invoked. This is distinct from the agent's internal thought + // process (`THOUGHT`) and the final answer to the user + // (`FINAL_RESPONSE`). These messages provide insight into the agent's + // actions. + PROGRESS = 3; + } + // Optional. The parts of the message. repeated string parts = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of the text message. + TextType text_type = 2 [(google.api.field_behavior) = OPTIONAL]; } // A message produced during schema resolution. @@ -340,7 +399,8 @@ message DataMessage { DataResult result = 3; // Looker Query generated by the system to retrieve data. - LookerQuery generated_looker_query = 4; + // DEPRECATED: generated looker query is now under DataQuery.looker. + LookerQuery generated_looker_query = 4 [deprecated = true]; // A BigQuery job executed by the system to retrieve data. BigQueryJob big_query_job = 5; @@ -381,6 +441,12 @@ message LookerQuery { // A query for retrieving data. message DataQuery { + // The type of query to execute. + oneof query_type { + // Optional. A query for retrieving data from a Looker explore. + LookerQuery looker = 4 [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. A natural language question to answer. string question = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -543,12 +609,35 @@ message ChartResult { Blob image = 3 [(google.api.field_behavior) = OPTIONAL]; } -// An error message. +// An error message from a tool call. +// This message is used to represent an error that occurred while an agent was +// trying to use a tool. It's important to note that not all errors are +// terminal. Many are recoverable, and the agent may use the information from +// this error message to self-correct and retry the tool call or try a +// different approach. +// +// For example, if a data query fails, the agent might receive an +// `ErrorMessage`, analyze it, and then generate a corrected query. +// +// Clients should be cautious about interpreting this message as a definitive +// failure. It can be part of the agent's normal, iterative process of +// completing a task. Surfacing these errors directly to end-users without +// context (e.g., as a "hard failure") may be misleading. message ErrorMessage { // Output only. The text of the error. string text = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// A message containing derived and authored example queries. +message ExampleQueries { + // Optional. A list of derived and authored example queries, providing + // examples of relevant and commonly used SQL queries and their corresponding + // natural language queries optionally present. Currently only used for + // BigQuery data sources. + repeated ExampleQuery example_queries = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + // A blob of data with a MIME type. message Blob { // Required. The IANA standard MIME type of the message data. diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto index 206279d2237c..14ecfc2a29b3 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto @@ -18,6 +18,7 @@ package google.cloud.geminidataanalytics.v1beta; import "google/api/field_behavior.proto"; import "google/cloud/geminidataanalytics/v1beta/credentials.proto"; +import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.GeminiDataAnalytics.V1Beta"; option go_package = "cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb"; @@ -155,6 +156,15 @@ message Datasource { // Optional. The schema of the datasource. Schema schema = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A struct representation of the schema. + // This is populated for datasources with schemas that cannot be + // fully represented by the strongly-typed `schema` field. + // + // For Looker datasources, this maps to the LookmlModelExplore type: + // https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore + google.protobuf.Struct struct_schema = 10 + [(google.api.field_behavior) = OPTIONAL]; } // The schema of a Datasource or QueryResult instance. @@ -164,15 +174,17 @@ message Schema { // Optional. A textual description of the table's content and purpose. // For example: "Contains information about customer orders in our e-commerce - // store." + // store." Currently only used for BigQuery data sources. string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A list of alternative names or synonyms that can be used to refer - // to the table. For example: ["sales", "orders", "purchases"] + // to the table. For example: ["sales", "orders", "purchases"]. Currently only + // used for BigQuery data sources. repeated string synonyms = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A list of tags or keywords associated with the table, used for - // categorization. For example: ["transaction", "revenue", "customer_data"] + // categorization. For example: ["transaction", "revenue", "customer_data"]. + // Currently only used for BigQuery data sources. repeated string tags = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Table display_name (same as label in @@ -200,11 +212,13 @@ message Field { string mode = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A list of alternative names or synonyms that can be used to refer - // to this field. For example: ["id", "customerid", "cust_id"] + // to this field. For example: ["id", "customerid", "cust_id"]. Currently only + // used for BigQuery data sources. repeated string synonyms = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. A list of tags or keywords associated with the field, used for - // categorization. For example: ["identifier", "customer", "pii"] + // categorization. For example: ["identifier", "customer", "pii"]. Currently + // only used for BigQuery data sources. repeated string tags = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. Field display_name (same as label in diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/AsyncDeleteConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/AsyncDeleteConversation.java new file mode 100644 index 000000000000..2dc040f4035d --- /dev/null +++ b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/AsyncDeleteConversation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.geminidataanalytics.v1beta.samples; + +// [START geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.geminidataanalytics.v1beta.ConversationName; +import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; +import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteConversation { + + public static void main(String[] args) throws Exception { + asyncDeleteConversation(); + } + + public static void asyncDeleteConversation() 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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder() + .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) + .build(); + ApiFuture future = + dataChatServiceClient.deleteConversationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversation.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversation.java new file mode 100644 index 000000000000..8be57c817795 --- /dev/null +++ b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.geminidataanalytics.v1beta.samples; + +// [START geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_sync] +import com.google.cloud.geminidataanalytics.v1beta.ConversationName; +import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; +import com.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteConversation { + + public static void main(String[] args) throws Exception { + syncDeleteConversation(); + } + + public static void syncDeleteConversation() 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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder() + .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) + .build(); + dataChatServiceClient.deleteConversation(request); + } + } +} +// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationConversationname.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationConversationname.java new file mode 100644 index 000000000000..3f826e58089d --- /dev/null +++ b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationConversationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.geminidataanalytics.v1beta.samples; + +// [START geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_Conversationname_sync] +import com.google.cloud.geminidataanalytics.v1beta.ConversationName; +import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConversationConversationname { + + public static void main(String[] args) throws Exception { + syncDeleteConversationConversationname(); + } + + public static void syncDeleteConversationConversationname() 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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { + ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); + dataChatServiceClient.deleteConversation(name); + } + } +} +// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_Conversationname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationString.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationString.java new file mode 100644 index 000000000000..1a36956c63f5 --- /dev/null +++ b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/deleteconversation/SyncDeleteConversationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.geminidataanalytics.v1beta.samples; + +// [START geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_String_sync] +import com.google.cloud.geminidataanalytics.v1beta.ConversationName; +import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConversationString { + + public static void main(String[] args) throws Exception { + syncDeleteConversationString(); + } + + public static void syncDeleteConversationString() 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 (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { + String name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString(); + dataChatServiceClient.deleteConversation(name); + } + } +} +// [END geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_String_sync] diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 153fd7f3d54d..f66e6395244d 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.76.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.76.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.77.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-backup/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java b/java-gke-backup/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java index 6a0b9664a958..af4488c7a137 100644 --- a/java-gke-backup/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java +++ b/java-gke-backup/grpc-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEGrpc.java @@ -25,9 +25,6 @@ * manage backup and restore operations for their GKE clusters. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkebackup/v1/gkebackup.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BackupForGKEGrpc { @@ -3145,8 +3142,9 @@ protected BackupForGKEBlockingV2Stub build( * */ public com.google.longrunning.Operation createBackupPlan( - com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.CreateBackupPlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupPlanMethod(), getCallOptions(), request); } @@ -3158,8 +3156,9 @@ public com.google.longrunning.Operation createBackupPlan( * */ public com.google.cloud.gkebackup.v1.ListBackupPlansResponse listBackupPlans( - com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListBackupPlansRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupPlansMethod(), getCallOptions(), request); } @@ -3171,8 +3170,8 @@ public com.google.cloud.gkebackup.v1.ListBackupPlansResponse listBackupPlans( * */ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan( - com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetBackupPlanRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupPlanMethod(), getCallOptions(), request); } @@ -3184,8 +3183,9 @@ public com.google.cloud.gkebackup.v1.BackupPlan getBackupPlan( * */ public com.google.longrunning.Operation updateBackupPlan( - com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupPlanMethod(), getCallOptions(), request); } @@ -3197,8 +3197,9 @@ public com.google.longrunning.Operation updateBackupPlan( * */ public com.google.longrunning.Operation deleteBackupPlan( - com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); } @@ -3210,8 +3211,9 @@ public com.google.longrunning.Operation deleteBackupPlan( * */ public com.google.longrunning.Operation createBackupChannel( - com.google.cloud.gkebackup.v1.CreateBackupChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.CreateBackupChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupChannelMethod(), getCallOptions(), request); } @@ -3223,8 +3225,9 @@ public com.google.longrunning.Operation createBackupChannel( * */ public com.google.cloud.gkebackup.v1.ListBackupChannelsResponse listBackupChannels( - com.google.cloud.gkebackup.v1.ListBackupChannelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListBackupChannelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupChannelsMethod(), getCallOptions(), request); } @@ -3236,8 +3239,9 @@ public com.google.cloud.gkebackup.v1.ListBackupChannelsResponse listBackupChanne * */ public com.google.cloud.gkebackup.v1.BackupChannel getBackupChannel( - com.google.cloud.gkebackup.v1.GetBackupChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetBackupChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupChannelMethod(), getCallOptions(), request); } @@ -3249,8 +3253,9 @@ public com.google.cloud.gkebackup.v1.BackupChannel getBackupChannel( * */ public com.google.longrunning.Operation updateBackupChannel( - com.google.cloud.gkebackup.v1.UpdateBackupChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.UpdateBackupChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupChannelMethod(), getCallOptions(), request); } @@ -3262,8 +3267,9 @@ public com.google.longrunning.Operation updateBackupChannel( * */ public com.google.longrunning.Operation deleteBackupChannel( - com.google.cloud.gkebackup.v1.DeleteBackupChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.DeleteBackupChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupChannelMethod(), getCallOptions(), request); } @@ -3275,8 +3281,9 @@ public com.google.longrunning.Operation deleteBackupChannel( * */ public com.google.cloud.gkebackup.v1.ListBackupPlanBindingsResponse listBackupPlanBindings( - com.google.cloud.gkebackup.v1.ListBackupPlanBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListBackupPlanBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupPlanBindingsMethod(), getCallOptions(), request); } @@ -3288,8 +3295,9 @@ public com.google.cloud.gkebackup.v1.ListBackupPlanBindingsResponse listBackupPl * */ public com.google.cloud.gkebackup.v1.BackupPlanBinding getBackupPlanBinding( - com.google.cloud.gkebackup.v1.GetBackupPlanBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetBackupPlanBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupPlanBindingMethod(), getCallOptions(), request); } @@ -3301,8 +3309,8 @@ public com.google.cloud.gkebackup.v1.BackupPlanBinding getBackupPlanBinding( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.gkebackup.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.CreateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -3314,8 +3322,8 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.cloud.gkebackup.v1.ListBackupsResponse listBackups( - com.google.cloud.gkebackup.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListBackupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -3327,8 +3335,8 @@ public com.google.cloud.gkebackup.v1.ListBackupsResponse listBackups( * */ public com.google.cloud.gkebackup.v1.Backup getBackup( - com.google.cloud.gkebackup.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -3340,8 +3348,8 @@ public com.google.cloud.gkebackup.v1.Backup getBackup( * */ public com.google.longrunning.Operation updateBackup( - com.google.cloud.gkebackup.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.UpdateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } @@ -3353,8 +3361,8 @@ public com.google.longrunning.Operation updateBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.gkebackup.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.DeleteBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -3366,8 +3374,9 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse listVolumeBackups( - com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVolumeBackupsMethod(), getCallOptions(), request); } @@ -3379,8 +3388,9 @@ public com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse listVolumeBackups * */ public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackup( - com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetVolumeBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVolumeBackupMethod(), getCallOptions(), request); } @@ -3392,8 +3402,9 @@ public com.google.cloud.gkebackup.v1.VolumeBackup getVolumeBackup( * */ public com.google.longrunning.Operation createRestorePlan( - com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.CreateRestorePlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRestorePlanMethod(), getCallOptions(), request); } @@ -3405,8 +3416,9 @@ public com.google.longrunning.Operation createRestorePlan( * */ public com.google.cloud.gkebackup.v1.ListRestorePlansResponse listRestorePlans( - com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListRestorePlansRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRestorePlansMethod(), getCallOptions(), request); } @@ -3418,8 +3430,9 @@ public com.google.cloud.gkebackup.v1.ListRestorePlansResponse listRestorePlans( * */ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan( - com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetRestorePlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRestorePlanMethod(), getCallOptions(), request); } @@ -3431,8 +3444,9 @@ public com.google.cloud.gkebackup.v1.RestorePlan getRestorePlan( * */ public com.google.longrunning.Operation updateRestorePlan( - com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRestorePlanMethod(), getCallOptions(), request); } @@ -3444,8 +3458,9 @@ public com.google.longrunning.Operation updateRestorePlan( * */ public com.google.longrunning.Operation deleteRestorePlan( - com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRestorePlanMethod(), getCallOptions(), request); } @@ -3457,8 +3472,9 @@ public com.google.longrunning.Operation deleteRestorePlan( * */ public com.google.longrunning.Operation createRestoreChannel( - com.google.cloud.gkebackup.v1.CreateRestoreChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.CreateRestoreChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRestoreChannelMethod(), getCallOptions(), request); } @@ -3470,8 +3486,9 @@ public com.google.longrunning.Operation createRestoreChannel( * */ public com.google.cloud.gkebackup.v1.ListRestoreChannelsResponse listRestoreChannels( - com.google.cloud.gkebackup.v1.ListRestoreChannelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListRestoreChannelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRestoreChannelsMethod(), getCallOptions(), request); } @@ -3483,8 +3500,9 @@ public com.google.cloud.gkebackup.v1.ListRestoreChannelsResponse listRestoreChan * */ public com.google.cloud.gkebackup.v1.RestoreChannel getRestoreChannel( - com.google.cloud.gkebackup.v1.GetRestoreChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetRestoreChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRestoreChannelMethod(), getCallOptions(), request); } @@ -3496,8 +3514,9 @@ public com.google.cloud.gkebackup.v1.RestoreChannel getRestoreChannel( * */ public com.google.longrunning.Operation updateRestoreChannel( - com.google.cloud.gkebackup.v1.UpdateRestoreChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.UpdateRestoreChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRestoreChannelMethod(), getCallOptions(), request); } @@ -3509,8 +3528,9 @@ public com.google.longrunning.Operation updateRestoreChannel( * */ public com.google.longrunning.Operation deleteRestoreChannel( - com.google.cloud.gkebackup.v1.DeleteRestoreChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.DeleteRestoreChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRestoreChannelMethod(), getCallOptions(), request); } @@ -3522,8 +3542,9 @@ public com.google.longrunning.Operation deleteRestoreChannel( * */ public com.google.cloud.gkebackup.v1.ListRestorePlanBindingsResponse listRestorePlanBindings( - com.google.cloud.gkebackup.v1.ListRestorePlanBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListRestorePlanBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRestorePlanBindingsMethod(), getCallOptions(), request); } @@ -3535,8 +3556,9 @@ public com.google.cloud.gkebackup.v1.ListRestorePlanBindingsResponse listRestore * */ public com.google.cloud.gkebackup.v1.RestorePlanBinding getRestorePlanBinding( - com.google.cloud.gkebackup.v1.GetRestorePlanBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetRestorePlanBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRestorePlanBindingMethod(), getCallOptions(), request); } @@ -3548,8 +3570,8 @@ public com.google.cloud.gkebackup.v1.RestorePlanBinding getRestorePlanBinding( * */ public com.google.longrunning.Operation createRestore( - com.google.cloud.gkebackup.v1.CreateRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.CreateRestoreRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRestoreMethod(), getCallOptions(), request); } @@ -3561,8 +3583,8 @@ public com.google.longrunning.Operation createRestore( * */ public com.google.cloud.gkebackup.v1.ListRestoresResponse listRestores( - com.google.cloud.gkebackup.v1.ListRestoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListRestoresRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRestoresMethod(), getCallOptions(), request); } @@ -3574,8 +3596,8 @@ public com.google.cloud.gkebackup.v1.ListRestoresResponse listRestores( * */ public com.google.cloud.gkebackup.v1.Restore getRestore( - com.google.cloud.gkebackup.v1.GetRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetRestoreRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRestoreMethod(), getCallOptions(), request); } @@ -3587,8 +3609,8 @@ public com.google.cloud.gkebackup.v1.Restore getRestore( * */ public com.google.longrunning.Operation updateRestore( - com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.UpdateRestoreRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRestoreMethod(), getCallOptions(), request); } @@ -3600,8 +3622,8 @@ public com.google.longrunning.Operation updateRestore( * */ public com.google.longrunning.Operation deleteRestore( - com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.DeleteRestoreRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRestoreMethod(), getCallOptions(), request); } @@ -3613,8 +3635,9 @@ public com.google.longrunning.Operation deleteRestore( * */ public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse listVolumeRestores( - com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVolumeRestoresMethod(), getCallOptions(), request); } @@ -3626,8 +3649,9 @@ public com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse listVolumeRestor * */ public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestore( - com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVolumeRestoreMethod(), getCallOptions(), request); } @@ -3640,8 +3664,9 @@ public com.google.cloud.gkebackup.v1.VolumeRestore getVolumeRestore( */ public com.google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlResponse getBackupIndexDownloadUrl( - com.google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupIndexDownloadUrlMethod(), getCallOptions(), request); } } diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index ef74426c062c..9b0d68f4cee1 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.78.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.78.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 2f30e431b362..a0087e913e81 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.76.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.76.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.77.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersGrpc.java b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersGrpc.java index 83017e29bb2e..562ecc7cf5fc 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersGrpc.java +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersGrpc.java @@ -26,9 +26,6 @@ * infrastructure. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkemulticloud/v1/attached_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AttachedClustersGrpc { @@ -963,8 +960,9 @@ protected AttachedClustersBlockingV2Stub build( * */ public com.google.longrunning.Operation createAttachedCluster( - com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAttachedClusterMethod(), getCallOptions(), request); } @@ -977,8 +975,9 @@ public com.google.longrunning.Operation createAttachedCluster( * */ public com.google.longrunning.Operation updateAttachedCluster( - com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAttachedClusterMethod(), getCallOptions(), request); } @@ -997,8 +996,9 @@ public com.google.longrunning.Operation updateAttachedCluster( * */ public com.google.longrunning.Operation importAttachedCluster( - com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportAttachedClusterMethod(), getCallOptions(), request); } @@ -1011,8 +1011,9 @@ public com.google.longrunning.Operation importAttachedCluster( * */ public com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedCluster( - com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttachedClusterMethod(), getCallOptions(), request); } @@ -1025,8 +1026,9 @@ public com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedCluster( * */ public com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse listAttachedClusters( - com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAttachedClustersMethod(), getCallOptions(), request); } @@ -1042,8 +1044,9 @@ public com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse listAttach * */ public com.google.longrunning.Operation deleteAttachedCluster( - com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAttachedClusterMethod(), getCallOptions(), request); } @@ -1056,8 +1059,9 @@ public com.google.longrunning.Operation deleteAttachedCluster( * */ public com.google.cloud.gkemulticloud.v1.AttachedServerConfig getAttachedServerConfig( - com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttachedServerConfigMethod(), getCallOptions(), request); } @@ -1070,9 +1074,9 @@ public com.google.cloud.gkemulticloud.v1.AttachedServerConfig getAttachedServerC */ public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse generateAttachedClusterInstallManifest( - com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAttachedClusterInstallManifestMethod(), getCallOptions(), @@ -1088,8 +1092,9 @@ public com.google.cloud.gkemulticloud.v1.AttachedServerConfig getAttachedServerC */ public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterAgentTokenResponse generateAttachedClusterAgentToken( - com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterAgentTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterAgentTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAttachedClusterAgentTokenMethod(), getCallOptions(), request); } } diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java index 3e2ed718ad91..f141411c2edb 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java @@ -25,9 +25,6 @@ * to create and manage Anthos clusters that run on AWS infrastructure. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkemulticloud/v1/aws_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AwsClustersGrpc { @@ -1495,8 +1492,9 @@ protected AwsClustersBlockingV2Stub build( * */ public com.google.longrunning.Operation createAwsCluster( - com.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAwsClusterMethod(), getCallOptions(), request); } @@ -1508,8 +1506,9 @@ public com.google.longrunning.Operation createAwsCluster( * */ public com.google.longrunning.Operation updateAwsCluster( - com.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAwsClusterMethod(), getCallOptions(), request); } @@ -1522,8 +1521,9 @@ public com.google.longrunning.Operation updateAwsCluster( * */ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster( - com.google.cloud.gkemulticloud.v1.GetAwsClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAwsClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAwsClusterMethod(), getCallOptions(), request); } @@ -1536,8 +1536,9 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster( * */ public com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse listAwsClusters( - com.google.cloud.gkemulticloud.v1.ListAwsClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.ListAwsClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAwsClustersMethod(), getCallOptions(), request); } @@ -1555,8 +1556,9 @@ public com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse listAwsClusters * */ public com.google.longrunning.Operation deleteAwsCluster( - com.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAwsClusterMethod(), getCallOptions(), request); } @@ -1569,8 +1571,9 @@ public com.google.longrunning.Operation deleteAwsCluster( */ public com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenResponse generateAwsClusterAgentToken( - com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAwsClusterAgentTokenMethod(), getCallOptions(), request); } @@ -1583,8 +1586,9 @@ public com.google.longrunning.Operation deleteAwsCluster( * */ public com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse generateAwsAccessToken( - com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAwsAccessTokenMethod(), getCallOptions(), request); } @@ -1600,8 +1604,9 @@ public com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse generate * */ public com.google.longrunning.Operation createAwsNodePool( - com.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAwsNodePoolMethod(), getCallOptions(), request); } @@ -1613,8 +1618,9 @@ public com.google.longrunning.Operation createAwsNodePool( * */ public com.google.longrunning.Operation updateAwsNodePool( - com.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAwsNodePoolMethod(), getCallOptions(), request); } @@ -1631,8 +1637,9 @@ public com.google.longrunning.Operation updateAwsNodePool( * */ public com.google.longrunning.Operation rollbackAwsNodePoolUpdate( - com.google.cloud.gkemulticloud.v1.RollbackAwsNodePoolUpdateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.RollbackAwsNodePoolUpdateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackAwsNodePoolUpdateMethod(), getCallOptions(), request); } @@ -1645,8 +1652,9 @@ public com.google.longrunning.Operation rollbackAwsNodePoolUpdate( * */ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool( - com.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAwsNodePoolMethod(), getCallOptions(), request); } @@ -1660,8 +1668,9 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool( * */ public com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse listAwsNodePools( - com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAwsNodePoolsMethod(), getCallOptions(), request); } @@ -1677,8 +1686,9 @@ public com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse listAwsNodePoo * */ public com.google.longrunning.Operation deleteAwsNodePool( - com.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAwsNodePoolMethod(), getCallOptions(), request); } @@ -1694,8 +1704,9 @@ public com.google.longrunning.Operation deleteAwsNodePool( * */ public com.google.cloud.gkemulticloud.v1.AwsOpenIdConfig getAwsOpenIdConfig( - com.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAwsOpenIdConfigMethod(), getCallOptions(), request); } @@ -1708,8 +1719,9 @@ public com.google.cloud.gkemulticloud.v1.AwsOpenIdConfig getAwsOpenIdConfig( * */ public com.google.cloud.gkemulticloud.v1.AwsJsonWebKeys getAwsJsonWebKeys( - com.google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAwsJsonWebKeysMethod(), getCallOptions(), request); } @@ -1722,8 +1734,9 @@ public com.google.cloud.gkemulticloud.v1.AwsJsonWebKeys getAwsJsonWebKeys( * */ public com.google.cloud.gkemulticloud.v1.AwsServerConfig getAwsServerConfig( - com.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAwsServerConfigMethod(), getCallOptions(), request); } } diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java index 46c3e559ea9d..1b9248ea424d 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java @@ -25,9 +25,6 @@ * to create and manage Anthos clusters that run on Azure infrastructure. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkemulticloud/v1/azure_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AzureClustersGrpc { @@ -1765,8 +1762,9 @@ protected AzureClustersBlockingV2Stub build( * */ public com.google.longrunning.Operation createAzureClient( - com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAzureClientMethod(), getCallOptions(), request); } @@ -1779,8 +1777,9 @@ public com.google.longrunning.Operation createAzureClient( * */ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient( - com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAzureClientMethod(), getCallOptions(), request); } @@ -1793,8 +1792,9 @@ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient( * */ public com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse listAzureClients( - com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAzureClientsMethod(), getCallOptions(), request); } @@ -1812,8 +1812,9 @@ public com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse listAzureClien * */ public com.google.longrunning.Operation deleteAzureClient( - com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAzureClientMethod(), getCallOptions(), request); } @@ -1829,8 +1830,9 @@ public com.google.longrunning.Operation deleteAzureClient( * */ public com.google.longrunning.Operation createAzureCluster( - com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAzureClusterMethod(), getCallOptions(), request); } @@ -1842,8 +1844,9 @@ public com.google.longrunning.Operation createAzureCluster( * */ public com.google.longrunning.Operation updateAzureCluster( - com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAzureClusterMethod(), getCallOptions(), request); } @@ -1856,8 +1859,9 @@ public com.google.longrunning.Operation updateAzureCluster( * */ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster( - com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAzureClusterMethod(), getCallOptions(), request); } @@ -1870,8 +1874,9 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster( * */ public com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse listAzureClusters( - com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAzureClustersMethod(), getCallOptions(), request); } @@ -1889,8 +1894,9 @@ public com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse listAzureClus * */ public com.google.longrunning.Operation deleteAzureCluster( - com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAzureClusterMethod(), getCallOptions(), request); } @@ -1903,8 +1909,9 @@ public com.google.longrunning.Operation deleteAzureCluster( */ public com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenResponse generateAzureClusterAgentToken( - com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAzureClusterAgentTokenMethod(), getCallOptions(), request); } @@ -1918,8 +1925,9 @@ public com.google.longrunning.Operation deleteAzureCluster( */ public com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse generateAzureAccessToken( - com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAzureAccessTokenMethod(), getCallOptions(), request); } @@ -1936,8 +1944,9 @@ public com.google.longrunning.Operation deleteAzureCluster( * */ public com.google.longrunning.Operation createAzureNodePool( - com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAzureNodePoolMethod(), getCallOptions(), request); } @@ -1949,8 +1958,9 @@ public com.google.longrunning.Operation createAzureNodePool( * */ public com.google.longrunning.Operation updateAzureNodePool( - com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAzureNodePoolMethod(), getCallOptions(), request); } @@ -1963,8 +1973,9 @@ public com.google.longrunning.Operation updateAzureNodePool( * */ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool( - com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAzureNodePoolMethod(), getCallOptions(), request); } @@ -1978,8 +1989,9 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool( * */ public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNodePools( - com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAzureNodePoolsMethod(), getCallOptions(), request); } @@ -1995,8 +2007,9 @@ public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNod * */ public com.google.longrunning.Operation deleteAzureNodePool( - com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAzureNodePoolMethod(), getCallOptions(), request); } @@ -2012,8 +2025,9 @@ public com.google.longrunning.Operation deleteAzureNodePool( * */ public com.google.cloud.gkemulticloud.v1.AzureOpenIdConfig getAzureOpenIdConfig( - com.google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAzureOpenIdConfigMethod(), getCallOptions(), request); } @@ -2026,8 +2040,9 @@ public com.google.cloud.gkemulticloud.v1.AzureOpenIdConfig getAzureOpenIdConfig( * */ public com.google.cloud.gkemulticloud.v1.AzureJsonWebKeys getAzureJsonWebKeys( - com.google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAzureJsonWebKeysMethod(), getCallOptions(), request); } @@ -2040,8 +2055,9 @@ public com.google.cloud.gkemulticloud.v1.AzureJsonWebKeys getAzureJsonWebKeys( * */ public com.google.cloud.gkemulticloud.v1.AzureServerConfig getAzureServerConfig( - com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAzureServerConfigMethod(), getCallOptions(), request); } } diff --git a/java-gkehub/README.md b/java-gkehub/README.md index 1569519660df..53b8d89f94d5 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.77.0 + 1.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.77.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java b/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java index e3f27b6bee8e..29ed13076fee 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java +++ b/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java @@ -36,9 +36,6 @@ * with Membership resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkehub/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GkeHubGrpc { @@ -1036,8 +1033,8 @@ protected GkeHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.ListMembershipsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMembershipsMethod(), getCallOptions(), request); } @@ -1049,8 +1046,8 @@ public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( * */ public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.ListFeaturesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeaturesMethod(), getCallOptions(), request); } @@ -1062,8 +1059,8 @@ public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( * */ public com.google.cloud.gkehub.v1.Membership getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.GetMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMembershipMethod(), getCallOptions(), request); } @@ -1075,8 +1072,8 @@ public com.google.cloud.gkehub.v1.Membership getMembership( * */ public com.google.cloud.gkehub.v1.Feature getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.GetFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureMethod(), getCallOptions(), request); } @@ -1091,8 +1088,8 @@ public com.google.cloud.gkehub.v1.Feature getFeature( * */ public com.google.longrunning.Operation createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.CreateMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMembershipMethod(), getCallOptions(), request); } @@ -1104,8 +1101,8 @@ public com.google.longrunning.Operation createMembership( * */ public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.CreateFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureMethod(), getCallOptions(), request); } @@ -1120,8 +1117,8 @@ public com.google.longrunning.Operation createFeature( * */ public com.google.longrunning.Operation deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); } @@ -1133,8 +1130,8 @@ public com.google.longrunning.Operation deleteMembership( * */ public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); } @@ -1146,8 +1143,8 @@ public com.google.longrunning.Operation deleteFeature( * */ public com.google.longrunning.Operation updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); } @@ -1159,8 +1156,8 @@ public com.google.longrunning.Operation updateMembership( * */ public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); } @@ -1174,8 +1171,9 @@ public com.google.longrunning.Operation updateFeature( * */ public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); } } diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java index e8fe73429ede..d4ab62a5ad40 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java +++ b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java @@ -33,9 +33,6 @@ * with Membership resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkehub/v1alpha/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GkeHubGrpc { @@ -568,8 +565,9 @@ protected GkeHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeaturesMethod(), getCallOptions(), request); } @@ -581,8 +579,8 @@ public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse listFeatures( * */ public com.google.cloud.gkehub.v1alpha.Feature getFeature( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureMethod(), getCallOptions(), request); } @@ -594,8 +592,9 @@ public com.google.cloud.gkehub.v1alpha.Feature getFeature( * */ public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureMethod(), getCallOptions(), request); } @@ -607,8 +606,9 @@ public com.google.longrunning.Operation createFeature( * */ public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); } @@ -620,8 +620,9 @@ public com.google.longrunning.Operation deleteFeature( * */ public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); } } diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java b/java-gkehub/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java index 4664341f0da8..5ac45d885fc6 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java @@ -33,9 +33,6 @@ * with Membership resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkehub/v1beta/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GkeHubGrpc { @@ -566,8 +563,8 @@ protected GkeHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.gkehub.v1beta.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFeaturesMethod(), getCallOptions(), request); } @@ -579,8 +576,8 @@ public com.google.cloud.gkehub.v1beta.ListFeaturesResponse listFeatures( * */ public com.google.cloud.gkehub.v1beta.Feature getFeature( - com.google.cloud.gkehub.v1beta.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta.GetFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFeatureMethod(), getCallOptions(), request); } @@ -592,8 +589,9 @@ public com.google.cloud.gkehub.v1beta.Feature getFeature( * */ public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFeatureMethod(), getCallOptions(), request); } @@ -605,8 +603,9 @@ public com.google.longrunning.Operation createFeature( * */ public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); } @@ -618,8 +617,9 @@ public com.google.longrunning.Operation deleteFeature( * */ public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); } } diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java index aba43e0b7b7d..895811901441 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java @@ -31,9 +31,6 @@ * with Membership resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkehub/v1beta1/membership.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GkeHubMembershipServiceGrpc { @@ -875,8 +872,9 @@ protected GkeHubMembershipServiceBlockingV2Stub build( * */ public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse listMemberships( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMembershipsMethod(), getCallOptions(), request); } @@ -888,8 +886,9 @@ public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse listMemberships( * */ public com.google.cloud.gkehub.v1beta1.Membership getMembership( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMembershipMethod(), getCallOptions(), request); } @@ -904,8 +903,9 @@ public com.google.cloud.gkehub.v1beta1.Membership getMembership( * */ public com.google.longrunning.Operation createMembership( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMembershipMethod(), getCallOptions(), request); } @@ -920,8 +920,9 @@ public com.google.longrunning.Operation createMembership( * */ public com.google.longrunning.Operation deleteMembership( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); } @@ -933,8 +934,9 @@ public com.google.longrunning.Operation deleteMembership( * */ public com.google.longrunning.Operation updateMembership( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); } @@ -948,8 +950,9 @@ public com.google.longrunning.Operation updateMembership( * */ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse generateConnectManifest( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); } @@ -962,8 +965,9 @@ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse generateC * */ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse validateExclusivity( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateExclusivityMethod(), getCallOptions(), request); } @@ -985,8 +989,9 @@ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse validateExclu */ public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse generateExclusivityManifest( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateExclusivityManifestMethod(), getCallOptions(), request); } } diff --git a/java-grafeas/README.md b/java-grafeas/README.md index 1cea639716d1..da97ac9ab465 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: io.grafeas grafeas - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.78.0' +implementation 'io.grafeas:grafeas:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.78.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java index 69448dc3ecaa..fd80c6fcb413 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java @@ -35,9 +35,6 @@ * image with the vulnerability referring to that note. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: grafeas/v1/grafeas.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GrafeasGrpc { @@ -1168,8 +1165,9 @@ protected GrafeasBlockingV2Stub build( * Gets the specified occurrence. * */ - public io.grafeas.v1.Occurrence getOccurrence(io.grafeas.v1.GetOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1.Occurrence getOccurrence(io.grafeas.v1.GetOccurrenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOccurrenceMethod(), getCallOptions(), request); } @@ -1181,8 +1179,8 @@ public io.grafeas.v1.Occurrence getOccurrence(io.grafeas.v1.GetOccurrenceRequest * */ public io.grafeas.v1.ListOccurrencesResponse listOccurrences( - io.grafeas.v1.ListOccurrencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1.ListOccurrencesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOccurrencesMethod(), getCallOptions(), request); } @@ -1195,9 +1193,9 @@ public io.grafeas.v1.ListOccurrencesResponse listOccurrences( * resource. * */ - public com.google.protobuf.Empty deleteOccurrence( - io.grafeas.v1.DeleteOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteOccurrence(io.grafeas.v1.DeleteOccurrenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOccurrenceMethod(), getCallOptions(), request); } @@ -1208,9 +1206,9 @@ public com.google.protobuf.Empty deleteOccurrence( * Creates a new occurrence. * */ - public io.grafeas.v1.Occurrence createOccurrence( - io.grafeas.v1.CreateOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1.Occurrence createOccurrence(io.grafeas.v1.CreateOccurrenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOccurrenceMethod(), getCallOptions(), request); } @@ -1222,8 +1220,8 @@ public io.grafeas.v1.Occurrence createOccurrence( * */ public io.grafeas.v1.BatchCreateOccurrencesResponse batchCreateOccurrences( - io.grafeas.v1.BatchCreateOccurrencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1.BatchCreateOccurrencesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateOccurrencesMethod(), getCallOptions(), request); } @@ -1234,9 +1232,9 @@ public io.grafeas.v1.BatchCreateOccurrencesResponse batchCreateOccurrences( * Updates the specified occurrence. * */ - public io.grafeas.v1.Occurrence updateOccurrence( - io.grafeas.v1.UpdateOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1.Occurrence updateOccurrence(io.grafeas.v1.UpdateOccurrenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOccurrenceMethod(), getCallOptions(), request); } @@ -1248,8 +1246,9 @@ public io.grafeas.v1.Occurrence updateOccurrence( * use this method to get a note that belongs to a provider project. * */ - public io.grafeas.v1.Note getOccurrenceNote(io.grafeas.v1.GetOccurrenceNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1.Note getOccurrenceNote(io.grafeas.v1.GetOccurrenceNoteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOccurrenceNoteMethod(), getCallOptions(), request); } @@ -1260,8 +1259,9 @@ public io.grafeas.v1.Note getOccurrenceNote(io.grafeas.v1.GetOccurrenceNoteReque * Gets the specified note. * */ - public io.grafeas.v1.Note getNote(io.grafeas.v1.GetNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1.Note getNote(io.grafeas.v1.GetNoteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNoteMethod(), getCallOptions(), request); } @@ -1272,8 +1272,9 @@ public io.grafeas.v1.Note getNote(io.grafeas.v1.GetNoteRequest request) { * Lists notes for the specified project. * */ - public io.grafeas.v1.ListNotesResponse listNotes(io.grafeas.v1.ListNotesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1.ListNotesResponse listNotes(io.grafeas.v1.ListNotesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotesMethod(), getCallOptions(), request); } @@ -1284,8 +1285,9 @@ public io.grafeas.v1.ListNotesResponse listNotes(io.grafeas.v1.ListNotesRequest * Deletes the specified note. * */ - public com.google.protobuf.Empty deleteNote(io.grafeas.v1.DeleteNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteNote(io.grafeas.v1.DeleteNoteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNoteMethod(), getCallOptions(), request); } @@ -1296,8 +1298,9 @@ public com.google.protobuf.Empty deleteNote(io.grafeas.v1.DeleteNoteRequest requ * Creates a new note. * */ - public io.grafeas.v1.Note createNote(io.grafeas.v1.CreateNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1.Note createNote(io.grafeas.v1.CreateNoteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNoteMethod(), getCallOptions(), request); } @@ -1309,8 +1312,8 @@ public io.grafeas.v1.Note createNote(io.grafeas.v1.CreateNoteRequest request) { * */ public io.grafeas.v1.BatchCreateNotesResponse batchCreateNotes( - io.grafeas.v1.BatchCreateNotesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1.BatchCreateNotesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateNotesMethod(), getCallOptions(), request); } @@ -1321,8 +1324,9 @@ public io.grafeas.v1.BatchCreateNotesResponse batchCreateNotes( * Updates the specified note. * */ - public io.grafeas.v1.Note updateNote(io.grafeas.v1.UpdateNoteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public io.grafeas.v1.Note updateNote(io.grafeas.v1.UpdateNoteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNoteMethod(), getCallOptions(), request); } @@ -1336,8 +1340,8 @@ public io.grafeas.v1.Note updateNote(io.grafeas.v1.UpdateNoteRequest request) { * */ public io.grafeas.v1.ListNoteOccurrencesResponse listNoteOccurrences( - io.grafeas.v1.ListNoteOccurrencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + io.grafeas.v1.ListNoteOccurrencesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNoteOccurrencesMethod(), getCallOptions(), request); } } diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index d443950b8c76..5af1e0b75eb8 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.77.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java index 63455c25b397..cf7a7b8d0e6b 100644 --- a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java +++ b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java @@ -47,9 +47,6 @@ * for details. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gsuiteaddons/v1/gsuiteaddons.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GSuiteAddOnsGrpc { @@ -968,8 +965,9 @@ protected GSuiteAddOnsBlockingV2Stub build( * */ public com.google.cloud.gsuiteaddons.v1.Authorization getAuthorization( - com.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAuthorizationMethod(), getCallOptions(), request); } @@ -981,8 +979,9 @@ public com.google.cloud.gsuiteaddons.v1.Authorization getAuthorization( * */ public com.google.cloud.gsuiteaddons.v1.Deployment createDeployment( - com.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeploymentMethod(), getCallOptions(), request); } @@ -994,8 +993,9 @@ public com.google.cloud.gsuiteaddons.v1.Deployment createDeployment( * */ public com.google.cloud.gsuiteaddons.v1.Deployment replaceDeployment( - com.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReplaceDeploymentMethod(), getCallOptions(), request); } @@ -1007,8 +1007,9 @@ public com.google.cloud.gsuiteaddons.v1.Deployment replaceDeployment( * */ public com.google.cloud.gsuiteaddons.v1.Deployment getDeployment( - com.google.cloud.gsuiteaddons.v1.GetDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gsuiteaddons.v1.GetDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeploymentMethod(), getCallOptions(), request); } @@ -1020,8 +1021,9 @@ public com.google.cloud.gsuiteaddons.v1.Deployment getDeployment( * */ public com.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse listDeployments( - com.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentsMethod(), getCallOptions(), request); } @@ -1033,8 +1035,9 @@ public com.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse listDeployments( * */ public com.google.protobuf.Empty deleteDeployment( - com.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeploymentMethod(), getCallOptions(), request); } @@ -1048,8 +1051,9 @@ public com.google.protobuf.Empty deleteDeployment( * */ public com.google.protobuf.Empty installDeployment( - com.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInstallDeploymentMethod(), getCallOptions(), request); } @@ -1063,8 +1067,9 @@ public com.google.protobuf.Empty installDeployment( * */ public com.google.protobuf.Empty uninstallDeployment( - com.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUninstallDeploymentMethod(), getCallOptions(), request); } @@ -1076,8 +1081,9 @@ public com.google.protobuf.Empty uninstallDeployment( * */ public com.google.cloud.gsuiteaddons.v1.InstallStatus getInstallStatus( - com.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstallStatusMethod(), getCallOptions(), request); } } diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index a418c9f52833..ba61570114db 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.72.0 + 3.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.72.0' +implementation 'com.google.cloud:google-iam-admin:3.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.72.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.73.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.73.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-admin/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java b/java-iam-admin/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java index b4b5e8fba84b..cbf7f9bf83f4 100644 --- a/java-iam-admin/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java +++ b/java-iam-admin/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java @@ -46,9 +46,6 @@ * received. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/iam/admin/v1/iam.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IAMGrpc { @@ -2740,8 +2737,8 @@ protected IAMBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions c * */ public com.google.iam.admin.v1.ListServiceAccountsResponse listServiceAccounts( - com.google.iam.admin.v1.ListServiceAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.ListServiceAccountsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceAccountsMethod(), getCallOptions(), request); } @@ -2753,8 +2750,8 @@ public com.google.iam.admin.v1.ListServiceAccountsResponse listServiceAccounts( * */ public com.google.iam.admin.v1.ServiceAccount getServiceAccount( - com.google.iam.admin.v1.GetServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.GetServiceAccountRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceAccountMethod(), getCallOptions(), request); } @@ -2766,8 +2763,9 @@ public com.google.iam.admin.v1.ServiceAccount getServiceAccount( * */ public com.google.iam.admin.v1.ServiceAccount createServiceAccount( - com.google.iam.admin.v1.CreateServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.CreateServiceAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceAccountMethod(), getCallOptions(), request); } @@ -2782,8 +2780,8 @@ public com.google.iam.admin.v1.ServiceAccount createServiceAccount( * */ public com.google.iam.admin.v1.ServiceAccount updateServiceAccount( - com.google.iam.admin.v1.ServiceAccount request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.ServiceAccount request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceAccountMethod(), getCallOptions(), request); } @@ -2795,8 +2793,8 @@ public com.google.iam.admin.v1.ServiceAccount updateServiceAccount( * */ public com.google.iam.admin.v1.ServiceAccount patchServiceAccount( - com.google.iam.admin.v1.PatchServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.PatchServiceAccountRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPatchServiceAccountMethod(), getCallOptions(), request); } @@ -2819,8 +2817,9 @@ public com.google.iam.admin.v1.ServiceAccount patchServiceAccount( * */ public com.google.protobuf.Empty deleteServiceAccount( - com.google.iam.admin.v1.DeleteServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.DeleteServiceAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceAccountMethod(), getCallOptions(), request); } @@ -2837,8 +2836,9 @@ public com.google.protobuf.Empty deleteServiceAccount( * */ public com.google.iam.admin.v1.UndeleteServiceAccountResponse undeleteServiceAccount( - com.google.iam.admin.v1.UndeleteServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.UndeleteServiceAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteServiceAccountMethod(), getCallOptions(), request); } @@ -2855,8 +2855,9 @@ public com.google.iam.admin.v1.UndeleteServiceAccountResponse undeleteServiceAcc * */ public com.google.protobuf.Empty enableServiceAccount( - com.google.iam.admin.v1.EnableServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.EnableServiceAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableServiceAccountMethod(), getCallOptions(), request); } @@ -2880,8 +2881,9 @@ public com.google.protobuf.Empty enableServiceAccount( * */ public com.google.protobuf.Empty disableServiceAccount( - com.google.iam.admin.v1.DisableServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.DisableServiceAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableServiceAccountMethod(), getCallOptions(), request); } @@ -2893,8 +2895,9 @@ public com.google.protobuf.Empty disableServiceAccount( * */ public com.google.iam.admin.v1.ListServiceAccountKeysResponse listServiceAccountKeys( - com.google.iam.admin.v1.ListServiceAccountKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.ListServiceAccountKeysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceAccountKeysMethod(), getCallOptions(), request); } @@ -2906,8 +2909,9 @@ public com.google.iam.admin.v1.ListServiceAccountKeysResponse listServiceAccount * */ public com.google.iam.admin.v1.ServiceAccountKey getServiceAccountKey( - com.google.iam.admin.v1.GetServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.GetServiceAccountKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceAccountKeyMethod(), getCallOptions(), request); } @@ -2919,8 +2923,9 @@ public com.google.iam.admin.v1.ServiceAccountKey getServiceAccountKey( * */ public com.google.iam.admin.v1.ServiceAccountKey createServiceAccountKey( - com.google.iam.admin.v1.CreateServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.CreateServiceAccountKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceAccountKeyMethod(), getCallOptions(), request); } @@ -2935,8 +2940,9 @@ public com.google.iam.admin.v1.ServiceAccountKey createServiceAccountKey( * */ public com.google.iam.admin.v1.ServiceAccountKey uploadServiceAccountKey( - com.google.iam.admin.v1.UploadServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.UploadServiceAccountKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUploadServiceAccountKeyMethod(), getCallOptions(), request); } @@ -2950,8 +2956,9 @@ public com.google.iam.admin.v1.ServiceAccountKey uploadServiceAccountKey( * */ public com.google.protobuf.Empty deleteServiceAccountKey( - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.DeleteServiceAccountKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceAccountKeyMethod(), getCallOptions(), request); } @@ -2964,8 +2971,9 @@ public com.google.protobuf.Empty deleteServiceAccountKey( * */ public com.google.protobuf.Empty disableServiceAccountKey( - com.google.iam.admin.v1.DisableServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.DisableServiceAccountKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableServiceAccountKeyMethod(), getCallOptions(), request); } @@ -2977,8 +2985,9 @@ public com.google.protobuf.Empty disableServiceAccountKey( * */ public com.google.protobuf.Empty enableServiceAccountKey( - com.google.iam.admin.v1.EnableServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.EnableServiceAccountKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableServiceAccountKeyMethod(), getCallOptions(), request); } @@ -2997,8 +3006,8 @@ public com.google.protobuf.Empty enableServiceAccountKey( */ @java.lang.Deprecated public com.google.iam.admin.v1.SignBlobResponse signBlob( - com.google.iam.admin.v1.SignBlobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.SignBlobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSignBlobMethod(), getCallOptions(), request); } @@ -3018,8 +3027,8 @@ public com.google.iam.admin.v1.SignBlobResponse signBlob( */ @java.lang.Deprecated public com.google.iam.admin.v1.SignJwtResponse signJwt( - com.google.iam.admin.v1.SignJwtRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.SignJwtRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSignJwtMethod(), getCallOptions(), request); } @@ -3038,8 +3047,9 @@ public com.google.iam.admin.v1.SignJwtResponse signJwt( * method. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -3064,8 +3074,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * resources](https://cloud.google.com/iam/help/access/manage-other-resources). * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -3078,8 +3089,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -3093,8 +3104,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.iam.admin.v1.QueryGrantableRolesResponse queryGrantableRoles( - com.google.iam.admin.v1.QueryGrantableRolesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.QueryGrantableRolesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryGrantableRolesMethod(), getCallOptions(), request); } @@ -3107,8 +3118,8 @@ public com.google.iam.admin.v1.QueryGrantableRolesResponse queryGrantableRoles( * */ public com.google.iam.admin.v1.ListRolesResponse listRoles( - com.google.iam.admin.v1.ListRolesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.ListRolesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRolesMethod(), getCallOptions(), request); } @@ -3119,8 +3130,9 @@ public com.google.iam.admin.v1.ListRolesResponse listRoles( * Gets the definition of a [Role][google.iam.admin.v1.Role]. * */ - public com.google.iam.admin.v1.Role getRole(com.google.iam.admin.v1.GetRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.admin.v1.Role getRole(com.google.iam.admin.v1.GetRoleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRoleMethod(), getCallOptions(), request); } @@ -3132,8 +3144,8 @@ public com.google.iam.admin.v1.Role getRole(com.google.iam.admin.v1.GetRoleReque * */ public com.google.iam.admin.v1.Role createRole( - com.google.iam.admin.v1.CreateRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.CreateRoleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRoleMethod(), getCallOptions(), request); } @@ -3145,8 +3157,8 @@ public com.google.iam.admin.v1.Role createRole( * */ public com.google.iam.admin.v1.Role updateRole( - com.google.iam.admin.v1.UpdateRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.UpdateRoleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRoleMethod(), getCallOptions(), request); } @@ -3170,8 +3182,8 @@ public com.google.iam.admin.v1.Role updateRole( * */ public com.google.iam.admin.v1.Role deleteRole( - com.google.iam.admin.v1.DeleteRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.DeleteRoleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRoleMethod(), getCallOptions(), request); } @@ -3183,8 +3195,8 @@ public com.google.iam.admin.v1.Role deleteRole( * */ public com.google.iam.admin.v1.Role undeleteRole( - com.google.iam.admin.v1.UndeleteRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.UndeleteRoleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteRoleMethod(), getCallOptions(), request); } @@ -3198,8 +3210,9 @@ public com.google.iam.admin.v1.Role undeleteRole( * */ public com.google.iam.admin.v1.QueryTestablePermissionsResponse queryTestablePermissions( - com.google.iam.admin.v1.QueryTestablePermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.QueryTestablePermissionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryTestablePermissionsMethod(), getCallOptions(), request); } @@ -3214,8 +3227,9 @@ public com.google.iam.admin.v1.QueryTestablePermissionsResponse queryTestablePer * */ public com.google.iam.admin.v1.QueryAuditableServicesResponse queryAuditableServices( - com.google.iam.admin.v1.QueryAuditableServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.QueryAuditableServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryAuditableServicesMethod(), getCallOptions(), request); } @@ -3231,8 +3245,8 @@ public com.google.iam.admin.v1.QueryAuditableServicesResponse queryAuditableServ * */ public com.google.iam.admin.v1.LintPolicyResponse lintPolicy( - com.google.iam.admin.v1.LintPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.admin.v1.LintPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLintPolicyMethod(), getCallOptions(), request); } } diff --git a/java-iam/README.md b/java-iam/README.md index 96287c5456e0..47690c63fe28 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.75.0 + 1.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.75.0' +implementation 'com.google.cloud:google-iam-policy:1.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.75.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index cded328854d7..1c0461e0a70c 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.77.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsGrpc.java b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsGrpc.java index fd78d7d2910d..4a0f45d53fc7 100644 --- a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsGrpc.java +++ b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsGrpc.java @@ -31,9 +31,6 @@ * more. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/iam/credentials/v1/iamcredentials.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IAMCredentialsGrpc { @@ -506,8 +503,9 @@ protected IAMCredentialsBlockingV2Stub build( * */ public com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse generateAccessToken( - com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); } @@ -519,8 +517,9 @@ public com.google.cloud.iam.credentials.v1.GenerateAccessTokenResponse generateA * */ public com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse generateIdToken( - com.google.cloud.iam.credentials.v1.GenerateIdTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iam.credentials.v1.GenerateIdTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateIdTokenMethod(), getCallOptions(), request); } @@ -532,8 +531,9 @@ public com.google.cloud.iam.credentials.v1.GenerateIdTokenResponse generateIdTok * */ public com.google.cloud.iam.credentials.v1.SignBlobResponse signBlob( - com.google.cloud.iam.credentials.v1.SignBlobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iam.credentials.v1.SignBlobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSignBlobMethod(), getCallOptions(), request); } @@ -545,8 +545,8 @@ public com.google.cloud.iam.credentials.v1.SignBlobResponse signBlob( * */ public com.google.cloud.iam.credentials.v1.SignJwtResponse signJwt( - com.google.cloud.iam.credentials.v1.SignJwtRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iam.credentials.v1.SignJwtRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSignJwtMethod(), getCallOptions(), request); } } diff --git a/java-iap/README.md b/java-iap/README.md index 5d5c6ed80d44..a0af620160ed 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.33.0' +implementation 'com.google.cloud:google-cloud-iap:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.34.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iap/grpc-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceGrpc.java b/java-iap/grpc-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceGrpc.java index 9c43ab35e57e..310940e3d091 100644 --- a/java-iap/grpc-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceGrpc.java +++ b/java-iap/grpc-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceGrpc.java @@ -24,9 +24,6 @@ * APIs for Identity-Aware Proxy Admin configurations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/iap/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IdentityAwareProxyAdminServiceGrpc { @@ -1063,8 +1060,9 @@ protected IdentityAwareProxyAdminServiceBlockingV2Stub build( * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1078,8 +1076,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1094,8 +1093,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -1107,8 +1106,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.iap.v1.IapSettings getIapSettings( - com.google.cloud.iap.v1.GetIapSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.GetIapSettingsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIapSettingsMethod(), getCallOptions(), request); } @@ -1121,8 +1120,8 @@ public com.google.cloud.iap.v1.IapSettings getIapSettings( * */ public com.google.cloud.iap.v1.IapSettings updateIapSettings( - com.google.cloud.iap.v1.UpdateIapSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.UpdateIapSettingsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIapSettingsMethod(), getCallOptions(), request); } @@ -1135,8 +1134,9 @@ public com.google.cloud.iap.v1.IapSettings updateIapSettings( */ public com.google.cloud.iap.v1.ValidateIapAttributeExpressionResponse validateIapAttributeExpression( - com.google.cloud.iap.v1.ValidateIapAttributeExpressionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.ValidateIapAttributeExpressionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateIapAttributeExpressionMethod(), getCallOptions(), request); } @@ -1150,8 +1150,9 @@ public com.google.cloud.iap.v1.IapSettings updateIapSettings( * */ public com.google.cloud.iap.v1.ListTunnelDestGroupsResponse listTunnelDestGroups( - com.google.cloud.iap.v1.ListTunnelDestGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.ListTunnelDestGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTunnelDestGroupsMethod(), getCallOptions(), request); } @@ -1163,8 +1164,9 @@ public com.google.cloud.iap.v1.ListTunnelDestGroupsResponse listTunnelDestGroups * */ public com.google.cloud.iap.v1.TunnelDestGroup createTunnelDestGroup( - com.google.cloud.iap.v1.CreateTunnelDestGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.CreateTunnelDestGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTunnelDestGroupMethod(), getCallOptions(), request); } @@ -1176,8 +1178,8 @@ public com.google.cloud.iap.v1.TunnelDestGroup createTunnelDestGroup( * */ public com.google.cloud.iap.v1.TunnelDestGroup getTunnelDestGroup( - com.google.cloud.iap.v1.GetTunnelDestGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.GetTunnelDestGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTunnelDestGroupMethod(), getCallOptions(), request); } @@ -1189,8 +1191,9 @@ public com.google.cloud.iap.v1.TunnelDestGroup getTunnelDestGroup( * */ public com.google.protobuf.Empty deleteTunnelDestGroup( - com.google.cloud.iap.v1.DeleteTunnelDestGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.DeleteTunnelDestGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTunnelDestGroupMethod(), getCallOptions(), request); } @@ -1202,8 +1205,9 @@ public com.google.protobuf.Empty deleteTunnelDestGroup( * */ public com.google.cloud.iap.v1.TunnelDestGroup updateTunnelDestGroup( - com.google.cloud.iap.v1.UpdateTunnelDestGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.UpdateTunnelDestGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTunnelDestGroupMethod(), getCallOptions(), request); } } diff --git a/java-iap/grpc-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceGrpc.java b/java-iap/grpc-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceGrpc.java index 76da00300bfd..8a50051cd766 100644 --- a/java-iap/grpc-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceGrpc.java +++ b/java-iap/grpc-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceGrpc.java @@ -26,9 +26,6 @@ * clients. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/iap/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IdentityAwareProxyOAuthServiceGrpc { @@ -833,8 +830,8 @@ protected IdentityAwareProxyOAuthServiceBlockingV2Stub build( * */ public com.google.cloud.iap.v1.ListBrandsResponse listBrands( - com.google.cloud.iap.v1.ListBrandsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.ListBrandsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBrandsMethod(), getCallOptions(), request); } @@ -853,8 +850,8 @@ public com.google.cloud.iap.v1.ListBrandsResponse listBrands( * */ public com.google.cloud.iap.v1.Brand createBrand( - com.google.cloud.iap.v1.CreateBrandRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.CreateBrandRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBrandMethod(), getCallOptions(), request); } @@ -865,8 +862,9 @@ public com.google.cloud.iap.v1.Brand createBrand( * Retrieves the OAuth brand of the project. * */ - public com.google.cloud.iap.v1.Brand getBrand(com.google.cloud.iap.v1.GetBrandRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.iap.v1.Brand getBrand(com.google.cloud.iap.v1.GetBrandRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBrandMethod(), getCallOptions(), request); } @@ -880,8 +878,9 @@ public com.google.cloud.iap.v1.Brand getBrand(com.google.cloud.iap.v1.GetBrandRe * */ public com.google.cloud.iap.v1.IdentityAwareProxyClient createIdentityAwareProxyClient( - com.google.cloud.iap.v1.CreateIdentityAwareProxyClientRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.CreateIdentityAwareProxyClientRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIdentityAwareProxyClientMethod(), getCallOptions(), request); } @@ -894,8 +893,9 @@ public com.google.cloud.iap.v1.IdentityAwareProxyClient createIdentityAwareProxy */ public com.google.cloud.iap.v1.ListIdentityAwareProxyClientsResponse listIdentityAwareProxyClients( - com.google.cloud.iap.v1.ListIdentityAwareProxyClientsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.ListIdentityAwareProxyClientsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIdentityAwareProxyClientsMethod(), getCallOptions(), request); } @@ -908,8 +908,9 @@ public com.google.cloud.iap.v1.IdentityAwareProxyClient createIdentityAwareProxy * */ public com.google.cloud.iap.v1.IdentityAwareProxyClient getIdentityAwareProxyClient( - com.google.cloud.iap.v1.GetIdentityAwareProxyClientRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.GetIdentityAwareProxyClientRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIdentityAwareProxyClientMethod(), getCallOptions(), request); } @@ -922,8 +923,9 @@ public com.google.cloud.iap.v1.IdentityAwareProxyClient getIdentityAwareProxyCli * */ public com.google.cloud.iap.v1.IdentityAwareProxyClient resetIdentityAwareProxyClientSecret( - com.google.cloud.iap.v1.ResetIdentityAwareProxyClientSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.ResetIdentityAwareProxyClientSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetIdentityAwareProxyClientSecretMethod(), getCallOptions(), request); } @@ -937,8 +939,9 @@ public com.google.cloud.iap.v1.IdentityAwareProxyClient resetIdentityAwareProxyC * */ public com.google.protobuf.Empty deleteIdentityAwareProxyClient( - com.google.cloud.iap.v1.DeleteIdentityAwareProxyClientRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iap.v1.DeleteIdentityAwareProxyClientRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIdentityAwareProxyClientMethod(), getCallOptions(), request); } } diff --git a/java-ids/README.md b/java-ids/README.md index f71504401a23..272ff7a1ef88 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.76.0 + 1.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.76.0' +implementation 'com.google.cloud:google-cloud-ids:1.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ids/grpc-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/IDSGrpc.java b/java-ids/grpc-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/IDSGrpc.java index c32b46a5043e..f8cdf3efa0d4 100644 --- a/java-ids/grpc-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/IDSGrpc.java +++ b/java-ids/grpc-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/IDSGrpc.java @@ -24,9 +24,6 @@ * The IDS Service * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/ids/v1/ids.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IDSGrpc { @@ -444,8 +441,8 @@ protected IDSBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions c * */ public com.google.cloud.ids.v1.ListEndpointsResponse listEndpoints( - com.google.cloud.ids.v1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.ids.v1.ListEndpointsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEndpointsMethod(), getCallOptions(), request); } @@ -457,8 +454,8 @@ public com.google.cloud.ids.v1.ListEndpointsResponse listEndpoints( * */ public com.google.cloud.ids.v1.Endpoint getEndpoint( - com.google.cloud.ids.v1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.ids.v1.GetEndpointRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEndpointMethod(), getCallOptions(), request); } @@ -470,8 +467,8 @@ public com.google.cloud.ids.v1.Endpoint getEndpoint( * */ public com.google.longrunning.Operation createEndpoint( - com.google.cloud.ids.v1.CreateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.ids.v1.CreateEndpointRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEndpointMethod(), getCallOptions(), request); } @@ -483,8 +480,8 @@ public com.google.longrunning.Operation createEndpoint( * */ public com.google.longrunning.Operation deleteEndpoint( - com.google.cloud.ids.v1.DeleteEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.ids.v1.DeleteEndpointRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); } } diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index cc2392728820..3b3f567ac60c 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.54.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java b/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java index e4613b92b0a6..446a3cd31660 100644 --- a/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java +++ b/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java @@ -25,9 +25,6 @@ * management of Google Cloud infrastructure resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/config/v1/config.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConfigGrpc { @@ -2184,8 +2181,8 @@ protected ConfigBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.config.v1.ListDeploymentsResponse listDeployments( - com.google.cloud.config.v1.ListDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ListDeploymentsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentsMethod(), getCallOptions(), request); } @@ -2197,8 +2194,8 @@ public com.google.cloud.config.v1.ListDeploymentsResponse listDeployments( * */ public com.google.cloud.config.v1.Deployment getDeployment( - com.google.cloud.config.v1.GetDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.GetDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeploymentMethod(), getCallOptions(), request); } @@ -2210,8 +2207,8 @@ public com.google.cloud.config.v1.Deployment getDeployment( * */ public com.google.longrunning.Operation createDeployment( - com.google.cloud.config.v1.CreateDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.CreateDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeploymentMethod(), getCallOptions(), request); } @@ -2223,8 +2220,8 @@ public com.google.longrunning.Operation createDeployment( * */ public com.google.longrunning.Operation updateDeployment( - com.google.cloud.config.v1.UpdateDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.UpdateDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeploymentMethod(), getCallOptions(), request); } @@ -2236,8 +2233,8 @@ public com.google.longrunning.Operation updateDeployment( * */ public com.google.longrunning.Operation deleteDeployment( - com.google.cloud.config.v1.DeleteDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.DeleteDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeploymentMethod(), getCallOptions(), request); } @@ -2249,8 +2246,8 @@ public com.google.longrunning.Operation deleteDeployment( * */ public com.google.cloud.config.v1.ListRevisionsResponse listRevisions( - com.google.cloud.config.v1.ListRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ListRevisionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRevisionsMethod(), getCallOptions(), request); } @@ -2262,8 +2259,8 @@ public com.google.cloud.config.v1.ListRevisionsResponse listRevisions( * */ public com.google.cloud.config.v1.Revision getRevision( - com.google.cloud.config.v1.GetRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.GetRevisionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRevisionMethod(), getCallOptions(), request); } @@ -2276,8 +2273,8 @@ public com.google.cloud.config.v1.Revision getRevision( * */ public com.google.cloud.config.v1.Resource getResource( - com.google.cloud.config.v1.GetResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.GetResourceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetResourceMethod(), getCallOptions(), request); } @@ -2289,8 +2286,8 @@ public com.google.cloud.config.v1.Resource getResource( * */ public com.google.cloud.config.v1.ListResourcesResponse listResources( - com.google.cloud.config.v1.ListResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ListResourcesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListResourcesMethod(), getCallOptions(), request); } @@ -2302,8 +2299,9 @@ public com.google.cloud.config.v1.ListResourcesResponse listResources( * */ public com.google.cloud.config.v1.Statefile exportDeploymentStatefile( - com.google.cloud.config.v1.ExportDeploymentStatefileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ExportDeploymentStatefileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDeploymentStatefileMethod(), getCallOptions(), request); } @@ -2315,8 +2313,9 @@ public com.google.cloud.config.v1.Statefile exportDeploymentStatefile( * */ public com.google.cloud.config.v1.Statefile exportRevisionStatefile( - com.google.cloud.config.v1.ExportRevisionStatefileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ExportRevisionStatefileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportRevisionStatefileMethod(), getCallOptions(), request); } @@ -2329,8 +2328,8 @@ public com.google.cloud.config.v1.Statefile exportRevisionStatefile( * */ public com.google.cloud.config.v1.Statefile importStatefile( - com.google.cloud.config.v1.ImportStatefileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ImportStatefileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportStatefileMethod(), getCallOptions(), request); } @@ -2342,8 +2341,8 @@ public com.google.cloud.config.v1.Statefile importStatefile( * */ public com.google.protobuf.Empty deleteStatefile( - com.google.cloud.config.v1.DeleteStatefileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.DeleteStatefileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteStatefileMethod(), getCallOptions(), request); } @@ -2355,8 +2354,8 @@ public com.google.protobuf.Empty deleteStatefile( * */ public com.google.longrunning.Operation lockDeployment( - com.google.cloud.config.v1.LockDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.LockDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLockDeploymentMethod(), getCallOptions(), request); } @@ -2368,8 +2367,8 @@ public com.google.longrunning.Operation lockDeployment( * */ public com.google.longrunning.Operation unlockDeployment( - com.google.cloud.config.v1.UnlockDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.UnlockDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnlockDeploymentMethod(), getCallOptions(), request); } @@ -2381,8 +2380,8 @@ public com.google.longrunning.Operation unlockDeployment( * */ public com.google.cloud.config.v1.LockInfo exportLockInfo( - com.google.cloud.config.v1.ExportLockInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ExportLockInfoRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportLockInfoMethod(), getCallOptions(), request); } @@ -2394,8 +2393,8 @@ public com.google.cloud.config.v1.LockInfo exportLockInfo( * */ public com.google.longrunning.Operation createPreview( - com.google.cloud.config.v1.CreatePreviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.CreatePreviewRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePreviewMethod(), getCallOptions(), request); } @@ -2407,8 +2406,8 @@ public com.google.longrunning.Operation createPreview( * */ public com.google.cloud.config.v1.Preview getPreview( - com.google.cloud.config.v1.GetPreviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.GetPreviewRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPreviewMethod(), getCallOptions(), request); } @@ -2421,8 +2420,8 @@ public com.google.cloud.config.v1.Preview getPreview( * */ public com.google.cloud.config.v1.ListPreviewsResponse listPreviews( - com.google.cloud.config.v1.ListPreviewsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ListPreviewsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPreviewsMethod(), getCallOptions(), request); } @@ -2434,8 +2433,8 @@ public com.google.cloud.config.v1.ListPreviewsResponse listPreviews( * */ public com.google.longrunning.Operation deletePreview( - com.google.cloud.config.v1.DeletePreviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.DeletePreviewRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePreviewMethod(), getCallOptions(), request); } @@ -2447,8 +2446,9 @@ public com.google.longrunning.Operation deletePreview( * */ public com.google.cloud.config.v1.ExportPreviewResultResponse exportPreviewResult( - com.google.cloud.config.v1.ExportPreviewResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ExportPreviewResultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportPreviewResultMethod(), getCallOptions(), request); } @@ -2461,8 +2461,9 @@ public com.google.cloud.config.v1.ExportPreviewResultResponse exportPreviewResul * */ public com.google.cloud.config.v1.ListTerraformVersionsResponse listTerraformVersions( - com.google.cloud.config.v1.ListTerraformVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ListTerraformVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTerraformVersionsMethod(), getCallOptions(), request); } @@ -2475,8 +2476,9 @@ public com.google.cloud.config.v1.ListTerraformVersionsResponse listTerraformVer * */ public com.google.cloud.config.v1.TerraformVersion getTerraformVersion( - com.google.cloud.config.v1.GetTerraformVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.GetTerraformVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTerraformVersionMethod(), getCallOptions(), request); } @@ -2488,8 +2490,9 @@ public com.google.cloud.config.v1.TerraformVersion getTerraformVersion( * */ public com.google.cloud.config.v1.ListResourceChangesResponse listResourceChanges( - com.google.cloud.config.v1.ListResourceChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ListResourceChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListResourceChangesMethod(), getCallOptions(), request); } @@ -2501,8 +2504,9 @@ public com.google.cloud.config.v1.ListResourceChangesResponse listResourceChange * */ public com.google.cloud.config.v1.ResourceChange getResourceChange( - com.google.cloud.config.v1.GetResourceChangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.GetResourceChangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetResourceChangeMethod(), getCallOptions(), request); } @@ -2514,8 +2518,9 @@ public com.google.cloud.config.v1.ResourceChange getResourceChange( * */ public com.google.cloud.config.v1.ListResourceDriftsResponse listResourceDrifts( - com.google.cloud.config.v1.ListResourceDriftsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.ListResourceDriftsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListResourceDriftsMethod(), getCallOptions(), request); } @@ -2527,8 +2532,8 @@ public com.google.cloud.config.v1.ListResourceDriftsResponse listResourceDrifts( * */ public com.google.cloud.config.v1.ResourceDrift getResourceDrift( - com.google.cloud.config.v1.GetResourceDriftRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.config.v1.GetResourceDriftRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetResourceDriftMethod(), getCallOptions(), request); } } diff --git a/java-iot/README.md b/java-iot/README.md index af5bedcf1f03..06d5d655772f 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.77.0' +implementation 'com.google.cloud:google-cloud-iot:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iot/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java b/java-iot/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java index 001ccf32b463..380d190210de 100644 --- a/java-iot/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java +++ b/java-iot/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java @@ -24,9 +24,6 @@ * Internet of Things (IoT) service. Securely connect and manage IoT devices. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/iot/v1/device_manager.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeviceManagerGrpc { @@ -1637,8 +1634,9 @@ protected DeviceManagerBlockingV2Stub build( * */ public com.google.cloud.iot.v1.DeviceRegistry createDeviceRegistry( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeviceRegistryMethod(), getCallOptions(), request); } @@ -1650,8 +1648,8 @@ public com.google.cloud.iot.v1.DeviceRegistry createDeviceRegistry( * */ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry( - com.google.cloud.iot.v1.GetDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.GetDeviceRegistryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeviceRegistryMethod(), getCallOptions(), request); } @@ -1663,8 +1661,9 @@ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry( * */ public com.google.cloud.iot.v1.DeviceRegistry updateDeviceRegistry( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeviceRegistryMethod(), getCallOptions(), request); } @@ -1676,8 +1675,9 @@ public com.google.cloud.iot.v1.DeviceRegistry updateDeviceRegistry( * */ public com.google.protobuf.Empty deleteDeviceRegistry( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeviceRegistryMethod(), getCallOptions(), request); } @@ -1689,8 +1689,9 @@ public com.google.protobuf.Empty deleteDeviceRegistry( * */ public com.google.cloud.iot.v1.ListDeviceRegistriesResponse listDeviceRegistries( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeviceRegistriesMethod(), getCallOptions(), request); } @@ -1702,8 +1703,8 @@ public com.google.cloud.iot.v1.ListDeviceRegistriesResponse listDeviceRegistries * */ public com.google.cloud.iot.v1.Device createDevice( - com.google.cloud.iot.v1.CreateDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.CreateDeviceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeviceMethod(), getCallOptions(), request); } @@ -1715,8 +1716,8 @@ public com.google.cloud.iot.v1.Device createDevice( * */ public com.google.cloud.iot.v1.Device getDevice( - com.google.cloud.iot.v1.GetDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.GetDeviceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeviceMethod(), getCallOptions(), request); } @@ -1728,8 +1729,8 @@ public com.google.cloud.iot.v1.Device getDevice( * */ public com.google.cloud.iot.v1.Device updateDevice( - com.google.cloud.iot.v1.UpdateDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.UpdateDeviceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeviceMethod(), getCallOptions(), request); } @@ -1741,8 +1742,8 @@ public com.google.cloud.iot.v1.Device updateDevice( * */ public com.google.protobuf.Empty deleteDevice( - com.google.cloud.iot.v1.DeleteDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.DeleteDeviceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeviceMethod(), getCallOptions(), request); } @@ -1754,8 +1755,8 @@ public com.google.protobuf.Empty deleteDevice( * */ public com.google.cloud.iot.v1.ListDevicesResponse listDevices( - com.google.cloud.iot.v1.ListDevicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.ListDevicesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDevicesMethod(), getCallOptions(), request); } @@ -1769,8 +1770,9 @@ public com.google.cloud.iot.v1.ListDevicesResponse listDevices( * */ public com.google.cloud.iot.v1.DeviceConfig modifyCloudToDeviceConfig( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModifyCloudToDeviceConfigMethod(), getCallOptions(), request); } @@ -1783,8 +1785,9 @@ public com.google.cloud.iot.v1.DeviceConfig modifyCloudToDeviceConfig( * */ public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse listDeviceConfigVersions( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeviceConfigVersionsMethod(), getCallOptions(), request); } @@ -1797,8 +1800,8 @@ public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse listDeviceConfig * */ public com.google.cloud.iot.v1.ListDeviceStatesResponse listDeviceStates( - com.google.cloud.iot.v1.ListDeviceStatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.ListDeviceStatesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeviceStatesMethod(), getCallOptions(), request); } @@ -1810,8 +1813,9 @@ public com.google.cloud.iot.v1.ListDeviceStatesResponse listDeviceStates( * existing policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1824,8 +1828,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * set. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1839,8 +1844,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -1864,8 +1869,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.iot.v1.SendCommandToDeviceResponse sendCommandToDevice( - com.google.cloud.iot.v1.SendCommandToDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.SendCommandToDeviceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSendCommandToDeviceMethod(), getCallOptions(), request); } @@ -1877,8 +1882,8 @@ public com.google.cloud.iot.v1.SendCommandToDeviceResponse sendCommandToDevice( * */ public com.google.cloud.iot.v1.BindDeviceToGatewayResponse bindDeviceToGateway( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBindDeviceToGatewayMethod(), getCallOptions(), request); } @@ -1890,8 +1895,9 @@ public com.google.cloud.iot.v1.BindDeviceToGatewayResponse bindDeviceToGateway( * */ public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse unbindDeviceFromGateway( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnbindDeviceFromGatewayMethod(), getCallOptions(), request); } } diff --git a/java-java-shopping-merchant-issue-resolution/README.md b/java-java-shopping-merchant-issue-resolution/README.md index 2a3b3075b009..c183e0fe2440 100644 --- a/java-java-shopping-merchant-issue-resolution/README.md +++ b/java-java-shopping-merchant-issue-resolution/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-issue-resolution - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceGrpc.java b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceGrpc.java index 5b446f375c26..2f191c9cc7c4 100644 --- a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceGrpc.java +++ b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage aggregate product statuses. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/issueresolution/v1/aggregateproductstatuses.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AggregateProductStatusesServiceGrpc { @@ -273,8 +270,9 @@ protected AggregateProductStatusesServiceBlockingV2Stub build( public com.google.shopping.merchant.issueresolution.v1.ListAggregateProductStatusesResponse listAggregateProductStatuses( com.google.shopping.merchant.issueresolution.v1.ListAggregateProductStatusesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAggregateProductStatusesMethod(), getCallOptions(), request); } } diff --git a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceGrpc.java b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceGrpc.java index 946afc504507..7f10ec7540ad 100644 --- a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceGrpc.java +++ b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceGrpc.java @@ -25,9 +25,6 @@ * issues. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/issueresolution/v1/issueresolution.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IssueResolutionServiceGrpc { @@ -453,8 +450,9 @@ protected IssueResolutionServiceBlockingV2Stub build( */ public com.google.shopping.merchant.issueresolution.v1.RenderAccountIssuesResponse renderAccountIssues( - com.google.shopping.merchant.issueresolution.v1.RenderAccountIssuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.issueresolution.v1.RenderAccountIssuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenderAccountIssuesMethod(), getCallOptions(), request); } @@ -469,8 +467,9 @@ protected IssueResolutionServiceBlockingV2Stub build( */ public com.google.shopping.merchant.issueresolution.v1.RenderProductIssuesResponse renderProductIssues( - com.google.shopping.merchant.issueresolution.v1.RenderProductIssuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.issueresolution.v1.RenderProductIssuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenderProductIssuesMethod(), getCallOptions(), request); } @@ -491,8 +490,9 @@ protected IssueResolutionServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.issueresolution.v1.TriggerActionResponse triggerAction( - com.google.shopping.merchant.issueresolution.v1.TriggerActionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.issueresolution.v1.TriggerActionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTriggerActionMethod(), getCallOptions(), request); } } diff --git a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceGrpc.java b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceGrpc.java index 5d92d9794b46..caf93ea060f5 100644 --- a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceGrpc.java +++ b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceGrpc.java @@ -24,10 +24,6 @@ * Service to manage aggregate product statuses. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = - "Source: google/shopping/merchant/issueresolution/v1beta/aggregateproductstatuses.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AggregateProductStatusesServiceGrpc { @@ -278,8 +274,9 @@ protected AggregateProductStatusesServiceBlockingV2Stub build( public com.google.shopping.merchant.issueresolution.v1beta.ListAggregateProductStatusesResponse listAggregateProductStatuses( com.google.shopping.merchant.issueresolution.v1beta.ListAggregateProductStatusesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAggregateProductStatusesMethod(), getCallOptions(), request); } } diff --git a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceGrpc.java b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceGrpc.java index 9947ec91c1ef..f21a9a9d776e 100644 --- a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceGrpc.java +++ b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceGrpc.java @@ -25,9 +25,6 @@ * issues. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/issueresolution/v1beta/issueresolution.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IssueResolutionServiceGrpc { @@ -456,9 +453,9 @@ protected IssueResolutionServiceBlockingV2Stub build( */ public com.google.shopping.merchant.issueresolution.v1beta.RenderAccountIssuesResponse renderAccountIssues( - com.google.shopping.merchant.issueresolution.v1beta.RenderAccountIssuesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.issueresolution.v1beta.RenderAccountIssuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenderAccountIssuesMethod(), getCallOptions(), request); } @@ -473,9 +470,9 @@ protected IssueResolutionServiceBlockingV2Stub build( */ public com.google.shopping.merchant.issueresolution.v1beta.RenderProductIssuesResponse renderProductIssues( - com.google.shopping.merchant.issueresolution.v1beta.RenderProductIssuesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.issueresolution.v1beta.RenderProductIssuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenderProductIssuesMethod(), getCallOptions(), request); } @@ -496,8 +493,9 @@ protected IssueResolutionServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.issueresolution.v1beta.TriggerActionResponse triggerAction( - com.google.shopping.merchant.issueresolution.v1beta.TriggerActionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.issueresolution.v1beta.TriggerActionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTriggerActionMethod(), getCallOptions(), request); } } diff --git a/java-java-shopping-merchant-order-tracking/README.md b/java-java-shopping-merchant-order-tracking/README.md index 204e44363bd6..8c6b3aa38106 100644 --- a/java-java-shopping-merchant-order-tracking/README.md +++ b/java-java-shopping-merchant-order-tracking/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-order-tracking - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceGrpc.java b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceGrpc.java index 2852539fc1d9..3f775808de8b 100644 --- a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceGrpc.java +++ b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to serve order tracking signals public API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/ordertracking/v1/order_tracking_signals.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OrderTrackingSignalsServiceGrpc { @@ -256,9 +253,9 @@ protected OrderTrackingSignalsServiceBlockingV2Stub build( */ public com.google.shopping.merchant.ordertracking.v1.OrderTrackingSignal createOrderTrackingSignal( - com.google.shopping.merchant.ordertracking.v1.CreateOrderTrackingSignalRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.ordertracking.v1.CreateOrderTrackingSignalRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOrderTrackingSignalMethod(), getCallOptions(), request); } } diff --git a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceGrpc.java b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceGrpc.java index 88d82a5514ec..282ad7bac23e 100644 --- a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceGrpc.java +++ b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to serve order tracking signals public API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/ordertracking/v1beta/order_tracking_signals.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OrderTrackingSignalsServiceGrpc { @@ -257,8 +254,9 @@ protected OrderTrackingSignalsServiceBlockingV2Stub build( public com.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal createOrderTrackingSignal( com.google.shopping.merchant.ordertracking.v1beta.CreateOrderTrackingSignalRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOrderTrackingSignalMethod(), getCallOptions(), request); } } diff --git a/java-kms/README.md b/java-kms/README.md index ca7975355ded..98061efe513c 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.80.0 + 2.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.80.0' +implementation 'com.google.cloud:google-cloud-kms:2.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyAdminGrpc.java b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyAdminGrpc.java index 9a1b4144db82..43553327344a 100644 --- a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyAdminGrpc.java +++ b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyAdminGrpc.java @@ -31,9 +31,6 @@ * Managed Encryption Key (CMEK) use, on-demand. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/kms/v1/autokey_admin.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutokeyAdminGrpc { @@ -447,8 +444,8 @@ protected AutokeyAdminBlockingV2Stub build( * */ public com.google.cloud.kms.v1.AutokeyConfig updateAutokeyConfig( - com.google.cloud.kms.v1.UpdateAutokeyConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.UpdateAutokeyConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAutokeyConfigMethod(), getCallOptions(), request); } @@ -461,8 +458,8 @@ public com.google.cloud.kms.v1.AutokeyConfig updateAutokeyConfig( * */ public com.google.cloud.kms.v1.AutokeyConfig getAutokeyConfig( - com.google.cloud.kms.v1.GetAutokeyConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GetAutokeyConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAutokeyConfigMethod(), getCallOptions(), request); } @@ -474,8 +471,9 @@ public com.google.cloud.kms.v1.AutokeyConfig getAutokeyConfig( * */ public com.google.cloud.kms.v1.ShowEffectiveAutokeyConfigResponse showEffectiveAutokeyConfig( - com.google.cloud.kms.v1.ShowEffectiveAutokeyConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.ShowEffectiveAutokeyConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getShowEffectiveAutokeyConfigMethod(), getCallOptions(), request); } } diff --git a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyGrpc.java b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyGrpc.java index 5778a4d81a55..b48e86fd4aa0 100644 --- a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyGrpc.java +++ b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyGrpc.java @@ -40,9 +40,6 @@ * [ShowEffectiveAutokeyConfig][google.cloud.kms.v1.AutokeyAdmin.ShowEffectiveAutokeyConfig]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/kms/v1/autokey.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutokeyGrpc { @@ -474,8 +471,8 @@ protected AutokeyBlockingV2Stub build( * */ public com.google.longrunning.Operation createKeyHandle( - com.google.cloud.kms.v1.CreateKeyHandleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.CreateKeyHandleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateKeyHandleMethod(), getCallOptions(), request); } @@ -487,8 +484,8 @@ public com.google.longrunning.Operation createKeyHandle( * */ public com.google.cloud.kms.v1.KeyHandle getKeyHandle( - com.google.cloud.kms.v1.GetKeyHandleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GetKeyHandleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKeyHandleMethod(), getCallOptions(), request); } @@ -500,8 +497,8 @@ public com.google.cloud.kms.v1.KeyHandle getKeyHandle( * */ public com.google.cloud.kms.v1.ListKeyHandlesResponse listKeyHandles( - com.google.cloud.kms.v1.ListKeyHandlesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.ListKeyHandlesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListKeyHandlesMethod(), getCallOptions(), request); } } diff --git a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java index 51ad029b96f3..224d22c5b8c2 100644 --- a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java +++ b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java @@ -27,9 +27,6 @@ * * [EkmConnection][google.cloud.kms.v1.EkmConnection] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/kms/v1/ekm_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EkmServiceGrpc { @@ -712,8 +709,8 @@ protected EkmServiceBlockingV2Stub build( * */ public com.google.cloud.kms.v1.ListEkmConnectionsResponse listEkmConnections( - com.google.cloud.kms.v1.ListEkmConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.ListEkmConnectionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEkmConnectionsMethod(), getCallOptions(), request); } @@ -726,8 +723,8 @@ public com.google.cloud.kms.v1.ListEkmConnectionsResponse listEkmConnections( * */ public com.google.cloud.kms.v1.EkmConnection getEkmConnection( - com.google.cloud.kms.v1.GetEkmConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GetEkmConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEkmConnectionMethod(), getCallOptions(), request); } @@ -740,8 +737,8 @@ public com.google.cloud.kms.v1.EkmConnection getEkmConnection( * */ public com.google.cloud.kms.v1.EkmConnection createEkmConnection( - com.google.cloud.kms.v1.CreateEkmConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.CreateEkmConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEkmConnectionMethod(), getCallOptions(), request); } @@ -753,8 +750,8 @@ public com.google.cloud.kms.v1.EkmConnection createEkmConnection( * */ public com.google.cloud.kms.v1.EkmConnection updateEkmConnection( - com.google.cloud.kms.v1.UpdateEkmConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.UpdateEkmConnectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEkmConnectionMethod(), getCallOptions(), request); } @@ -767,8 +764,8 @@ public com.google.cloud.kms.v1.EkmConnection updateEkmConnection( * */ public com.google.cloud.kms.v1.EkmConfig getEkmConfig( - com.google.cloud.kms.v1.GetEkmConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GetEkmConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEkmConfigMethod(), getCallOptions(), request); } @@ -781,8 +778,8 @@ public com.google.cloud.kms.v1.EkmConfig getEkmConfig( * */ public com.google.cloud.kms.v1.EkmConfig updateEkmConfig( - com.google.cloud.kms.v1.UpdateEkmConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.UpdateEkmConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEkmConfigMethod(), getCallOptions(), request); } @@ -798,8 +795,8 @@ public com.google.cloud.kms.v1.EkmConfig updateEkmConfig( * */ public com.google.cloud.kms.v1.VerifyConnectivityResponse verifyConnectivity( - com.google.cloud.kms.v1.VerifyConnectivityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.VerifyConnectivityRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getVerifyConnectivityMethod(), getCallOptions(), request); } } diff --git a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java index 367a129744a3..46d577762ea8 100644 --- a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java +++ b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java @@ -32,9 +32,6 @@ * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/kms/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class KeyManagementServiceGrpc { @@ -2578,8 +2575,8 @@ protected KeyManagementServiceBlockingV2Stub build( * */ public com.google.cloud.kms.v1.ListKeyRingsResponse listKeyRings( - com.google.cloud.kms.v1.ListKeyRingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.ListKeyRingsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListKeyRingsMethod(), getCallOptions(), request); } @@ -2591,8 +2588,8 @@ public com.google.cloud.kms.v1.ListKeyRingsResponse listKeyRings( * */ public com.google.cloud.kms.v1.ListCryptoKeysResponse listCryptoKeys( - com.google.cloud.kms.v1.ListCryptoKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.ListCryptoKeysRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCryptoKeysMethod(), getCallOptions(), request); } @@ -2604,8 +2601,9 @@ public com.google.cloud.kms.v1.ListCryptoKeysResponse listCryptoKeys( * */ public com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse listCryptoKeyVersions( - com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCryptoKeyVersionsMethod(), getCallOptions(), request); } @@ -2617,8 +2615,8 @@ public com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse listCryptoKeyVersio * */ public com.google.cloud.kms.v1.ListImportJobsResponse listImportJobs( - com.google.cloud.kms.v1.ListImportJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.ListImportJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListImportJobsMethod(), getCallOptions(), request); } @@ -2630,8 +2628,8 @@ public com.google.cloud.kms.v1.ListImportJobsResponse listImportJobs( * */ public com.google.cloud.kms.v1.KeyRing getKeyRing( - com.google.cloud.kms.v1.GetKeyRingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GetKeyRingRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKeyRingMethod(), getCallOptions(), request); } @@ -2645,8 +2643,8 @@ public com.google.cloud.kms.v1.KeyRing getKeyRing( * */ public com.google.cloud.kms.v1.CryptoKey getCryptoKey( - com.google.cloud.kms.v1.GetCryptoKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GetCryptoKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCryptoKeyMethod(), getCallOptions(), request); } @@ -2659,8 +2657,8 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKey( * */ public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion( - com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCryptoKeyVersionMethod(), getCallOptions(), request); } @@ -2677,8 +2675,8 @@ public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion( * */ public com.google.cloud.kms.v1.PublicKey getPublicKey( - com.google.cloud.kms.v1.GetPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GetPublicKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPublicKeyMethod(), getCallOptions(), request); } @@ -2690,8 +2688,8 @@ public com.google.cloud.kms.v1.PublicKey getPublicKey( * */ public com.google.cloud.kms.v1.ImportJob getImportJob( - com.google.cloud.kms.v1.GetImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GetImportJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetImportJobMethod(), getCallOptions(), request); } @@ -2704,8 +2702,8 @@ public com.google.cloud.kms.v1.ImportJob getImportJob( * */ public com.google.cloud.kms.v1.KeyRing createKeyRing( - com.google.cloud.kms.v1.CreateKeyRingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.CreateKeyRingRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateKeyRingMethod(), getCallOptions(), request); } @@ -2721,8 +2719,8 @@ public com.google.cloud.kms.v1.KeyRing createKeyRing( * */ public com.google.cloud.kms.v1.CryptoKey createCryptoKey( - com.google.cloud.kms.v1.CreateCryptoKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.CreateCryptoKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCryptoKeyMethod(), getCallOptions(), request); } @@ -2738,8 +2736,9 @@ public com.google.cloud.kms.v1.CryptoKey createCryptoKey( * */ public com.google.cloud.kms.v1.CryptoKeyVersion createCryptoKeyVersion( - com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCryptoKeyVersionMethod(), getCallOptions(), request); } @@ -2757,8 +2756,9 @@ public com.google.cloud.kms.v1.CryptoKeyVersion createCryptoKeyVersion( * */ public com.google.cloud.kms.v1.CryptoKeyVersion importCryptoKeyVersion( - com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportCryptoKeyVersionMethod(), getCallOptions(), request); } @@ -2773,8 +2773,8 @@ public com.google.cloud.kms.v1.CryptoKeyVersion importCryptoKeyVersion( * */ public com.google.cloud.kms.v1.ImportJob createImportJob( - com.google.cloud.kms.v1.CreateImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.CreateImportJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateImportJobMethod(), getCallOptions(), request); } @@ -2786,8 +2786,8 @@ public com.google.cloud.kms.v1.ImportJob createImportJob( * */ public com.google.cloud.kms.v1.CryptoKey updateCryptoKey( - com.google.cloud.kms.v1.UpdateCryptoKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.UpdateCryptoKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCryptoKeyMethod(), getCallOptions(), request); } @@ -2809,8 +2809,9 @@ public com.google.cloud.kms.v1.CryptoKey updateCryptoKey( * */ public com.google.cloud.kms.v1.CryptoKeyVersion updateCryptoKeyVersion( - com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCryptoKeyVersionMethod(), getCallOptions(), request); } @@ -2826,8 +2827,9 @@ public com.google.cloud.kms.v1.CryptoKeyVersion updateCryptoKeyVersion( * */ public com.google.cloud.kms.v1.CryptoKey updateCryptoKeyPrimaryVersion( - com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCryptoKeyPrimaryVersionMethod(), getCallOptions(), request); } @@ -2857,8 +2859,9 @@ public com.google.cloud.kms.v1.CryptoKey updateCryptoKeyPrimaryVersion( * */ public com.google.cloud.kms.v1.CryptoKeyVersion destroyCryptoKeyVersion( - com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDestroyCryptoKeyVersionMethod(), getCallOptions(), request); } @@ -2877,8 +2880,9 @@ public com.google.cloud.kms.v1.CryptoKeyVersion destroyCryptoKeyVersion( * */ public com.google.cloud.kms.v1.CryptoKeyVersion restoreCryptoKeyVersion( - com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreCryptoKeyVersionMethod(), getCallOptions(), request); } @@ -2893,8 +2897,8 @@ public com.google.cloud.kms.v1.CryptoKeyVersion restoreCryptoKeyVersion( * */ public com.google.cloud.kms.v1.EncryptResponse encrypt( - com.google.cloud.kms.v1.EncryptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.EncryptRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEncryptMethod(), getCallOptions(), request); } @@ -2909,8 +2913,8 @@ public com.google.cloud.kms.v1.EncryptResponse encrypt( * */ public com.google.cloud.kms.v1.DecryptResponse decrypt( - com.google.cloud.kms.v1.DecryptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.DecryptRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDecryptMethod(), getCallOptions(), request); } @@ -2927,8 +2931,8 @@ public com.google.cloud.kms.v1.DecryptResponse decrypt( * */ public com.google.cloud.kms.v1.RawEncryptResponse rawEncrypt( - com.google.cloud.kms.v1.RawEncryptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.RawEncryptRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRawEncryptMethod(), getCallOptions(), request); } @@ -2943,8 +2947,8 @@ public com.google.cloud.kms.v1.RawEncryptResponse rawEncrypt( * */ public com.google.cloud.kms.v1.RawDecryptResponse rawDecrypt( - com.google.cloud.kms.v1.RawDecryptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.RawDecryptRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRawDecryptMethod(), getCallOptions(), request); } @@ -2960,8 +2964,8 @@ public com.google.cloud.kms.v1.RawDecryptResponse rawDecrypt( * */ public com.google.cloud.kms.v1.AsymmetricSignResponse asymmetricSign( - com.google.cloud.kms.v1.AsymmetricSignRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.AsymmetricSignRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAsymmetricSignMethod(), getCallOptions(), request); } @@ -2977,8 +2981,8 @@ public com.google.cloud.kms.v1.AsymmetricSignResponse asymmetricSign( * */ public com.google.cloud.kms.v1.AsymmetricDecryptResponse asymmetricDecrypt( - com.google.cloud.kms.v1.AsymmetricDecryptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.AsymmetricDecryptRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAsymmetricDecryptMethod(), getCallOptions(), request); } @@ -2992,8 +2996,8 @@ public com.google.cloud.kms.v1.AsymmetricDecryptResponse asymmetricDecrypt( * */ public com.google.cloud.kms.v1.MacSignResponse macSign( - com.google.cloud.kms.v1.MacSignRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.MacSignRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMacSignMethod(), getCallOptions(), request); } @@ -3008,8 +3012,8 @@ public com.google.cloud.kms.v1.MacSignResponse macSign( * */ public com.google.cloud.kms.v1.MacVerifyResponse macVerify( - com.google.cloud.kms.v1.MacVerifyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.MacVerifyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMacVerifyMethod(), getCallOptions(), request); } @@ -3025,8 +3029,8 @@ public com.google.cloud.kms.v1.MacVerifyResponse macVerify( * */ public com.google.cloud.kms.v1.DecapsulateResponse decapsulate( - com.google.cloud.kms.v1.DecapsulateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.DecapsulateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDecapsulateMethod(), getCallOptions(), request); } @@ -3039,8 +3043,8 @@ public com.google.cloud.kms.v1.DecapsulateResponse decapsulate( * */ public com.google.cloud.kms.v1.GenerateRandomBytesResponse generateRandomBytes( - com.google.cloud.kms.v1.GenerateRandomBytesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.v1.GenerateRandomBytesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateRandomBytesMethod(), getCallOptions(), request); } } diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 3360c1f32683..a15eb113d9da 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.66.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.67.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java index 2551ad3585f4..ec0ff328bbc7 100644 --- a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java +++ b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java @@ -24,9 +24,6 @@ * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/kms/inventory/v1/key_dashboard_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class KeyDashboardServiceGrpc { @@ -249,8 +246,9 @@ protected KeyDashboardServiceBlockingV2Stub build( * */ public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse listCryptoKeys( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCryptoKeysMethod(), getCallOptions(), request); } } diff --git a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java index 5880e623253a..d7025feacbd4 100644 --- a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java +++ b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java @@ -25,9 +25,6 @@ * given Cloud KMS key via CMEK. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/kms/inventory/v1/key_tracking_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class KeyTrackingServiceGrpc { @@ -355,8 +352,9 @@ protected KeyTrackingServiceBlockingV2Stub build( * */ public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getProtectedResourcesSummary( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProtectedResourcesSummaryMethod(), getCallOptions(), request); } @@ -370,8 +368,9 @@ public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getProtectedR */ public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse searchProtectedResources( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchProtectedResourcesMethod(), getCallOptions(), request); } } diff --git a/java-language/README.md b/java-language/README.md index 9c79f9237bb5..b28a38aae4d3 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.78.0' +implementation 'com.google.cloud:google-cloud-language:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.79.0" ``` ## Authentication @@ -226,7 +226,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-language/grpc-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/LanguageServiceGrpc.java b/java-language/grpc-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/LanguageServiceGrpc.java index 4d2c76b90224..992f6b772c87 100644 --- a/java-language/grpc-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/LanguageServiceGrpc.java +++ b/java-language/grpc-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/LanguageServiceGrpc.java @@ -25,9 +25,6 @@ * recognition. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/language/v1/language_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LanguageServiceGrpc { @@ -739,8 +736,9 @@ protected LanguageServiceBlockingV2Stub build( * */ public com.google.cloud.language.v1.AnalyzeSentimentResponse analyzeSentiment( - com.google.cloud.language.v1.AnalyzeSentimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1.AnalyzeSentimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeSentimentMethod(), getCallOptions(), request); } @@ -754,8 +752,9 @@ public com.google.cloud.language.v1.AnalyzeSentimentResponse analyzeSentiment( * */ public com.google.cloud.language.v1.AnalyzeEntitiesResponse analyzeEntities( - com.google.cloud.language.v1.AnalyzeEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1.AnalyzeEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeEntitiesMethod(), getCallOptions(), request); } @@ -770,8 +769,9 @@ public com.google.cloud.language.v1.AnalyzeEntitiesResponse analyzeEntities( * */ public com.google.cloud.language.v1.AnalyzeEntitySentimentResponse analyzeEntitySentiment( - com.google.cloud.language.v1.AnalyzeEntitySentimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1.AnalyzeEntitySentimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeEntitySentimentMethod(), getCallOptions(), request); } @@ -785,8 +785,8 @@ public com.google.cloud.language.v1.AnalyzeEntitySentimentResponse analyzeEntity * */ public com.google.cloud.language.v1.AnalyzeSyntaxResponse analyzeSyntax( - com.google.cloud.language.v1.AnalyzeSyntaxRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1.AnalyzeSyntaxRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeSyntaxMethod(), getCallOptions(), request); } @@ -798,8 +798,8 @@ public com.google.cloud.language.v1.AnalyzeSyntaxResponse analyzeSyntax( * */ public com.google.cloud.language.v1.ClassifyTextResponse classifyText( - com.google.cloud.language.v1.ClassifyTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1.ClassifyTextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getClassifyTextMethod(), getCallOptions(), request); } @@ -811,8 +811,8 @@ public com.google.cloud.language.v1.ClassifyTextResponse classifyText( * */ public com.google.cloud.language.v1.ModerateTextResponse moderateText( - com.google.cloud.language.v1.ModerateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1.ModerateTextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModerateTextMethod(), getCallOptions(), request); } @@ -825,8 +825,8 @@ public com.google.cloud.language.v1.ModerateTextResponse moderateText( * */ public com.google.cloud.language.v1.AnnotateTextResponse annotateText( - com.google.cloud.language.v1.AnnotateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1.AnnotateTextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateTextMethod(), getCallOptions(), request); } } diff --git a/java-language/grpc-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceGrpc.java b/java-language/grpc-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceGrpc.java index 925be9607c59..980639e0e7f3 100644 --- a/java-language/grpc-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceGrpc.java +++ b/java-language/grpc-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceGrpc.java @@ -25,9 +25,6 @@ * recognition. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/language/v1beta2/language_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LanguageServiceGrpc { @@ -742,8 +739,9 @@ protected LanguageServiceBlockingV2Stub build( * */ public com.google.cloud.language.v1beta2.AnalyzeSentimentResponse analyzeSentiment( - com.google.cloud.language.v1beta2.AnalyzeSentimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1beta2.AnalyzeSentimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeSentimentMethod(), getCallOptions(), request); } @@ -757,8 +755,9 @@ public com.google.cloud.language.v1beta2.AnalyzeSentimentResponse analyzeSentime * */ public com.google.cloud.language.v1beta2.AnalyzeEntitiesResponse analyzeEntities( - com.google.cloud.language.v1beta2.AnalyzeEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1beta2.AnalyzeEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeEntitiesMethod(), getCallOptions(), request); } @@ -773,8 +772,9 @@ public com.google.cloud.language.v1beta2.AnalyzeEntitiesResponse analyzeEntities * */ public com.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse analyzeEntitySentiment( - com.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeEntitySentimentMethod(), getCallOptions(), request); } @@ -788,8 +788,9 @@ public com.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse analyzeE * */ public com.google.cloud.language.v1beta2.AnalyzeSyntaxResponse analyzeSyntax( - com.google.cloud.language.v1beta2.AnalyzeSyntaxRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1beta2.AnalyzeSyntaxRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeSyntaxMethod(), getCallOptions(), request); } @@ -801,8 +802,9 @@ public com.google.cloud.language.v1beta2.AnalyzeSyntaxResponse analyzeSyntax( * */ public com.google.cloud.language.v1beta2.ClassifyTextResponse classifyText( - com.google.cloud.language.v1beta2.ClassifyTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1beta2.ClassifyTextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getClassifyTextMethod(), getCallOptions(), request); } @@ -814,8 +816,9 @@ public com.google.cloud.language.v1beta2.ClassifyTextResponse classifyText( * */ public com.google.cloud.language.v1beta2.ModerateTextResponse moderateText( - com.google.cloud.language.v1beta2.ModerateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1beta2.ModerateTextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModerateTextMethod(), getCallOptions(), request); } @@ -828,8 +831,9 @@ public com.google.cloud.language.v1beta2.ModerateTextResponse moderateText( * */ public com.google.cloud.language.v1beta2.AnnotateTextResponse annotateText( - com.google.cloud.language.v1beta2.AnnotateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v1beta2.AnnotateTextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateTextMethod(), getCallOptions(), request); } } diff --git a/java-language/grpc-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/LanguageServiceGrpc.java b/java-language/grpc-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/LanguageServiceGrpc.java index f2aaaa114a6a..95e6091b785b 100644 --- a/java-language/grpc-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/LanguageServiceGrpc.java +++ b/java-language/grpc-google-cloud-language-v2/src/main/java/com/google/cloud/language/v2/LanguageServiceGrpc.java @@ -25,9 +25,6 @@ * recognition. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/language/v2/language_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LanguageServiceGrpc { @@ -566,8 +563,9 @@ protected LanguageServiceBlockingV2Stub build( * */ public com.google.cloud.language.v2.AnalyzeSentimentResponse analyzeSentiment( - com.google.cloud.language.v2.AnalyzeSentimentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v2.AnalyzeSentimentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeSentimentMethod(), getCallOptions(), request); } @@ -581,8 +579,9 @@ public com.google.cloud.language.v2.AnalyzeSentimentResponse analyzeSentiment( * */ public com.google.cloud.language.v2.AnalyzeEntitiesResponse analyzeEntities( - com.google.cloud.language.v2.AnalyzeEntitiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v2.AnalyzeEntitiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeEntitiesMethod(), getCallOptions(), request); } @@ -594,8 +593,8 @@ public com.google.cloud.language.v2.AnalyzeEntitiesResponse analyzeEntities( * */ public com.google.cloud.language.v2.ClassifyTextResponse classifyText( - com.google.cloud.language.v2.ClassifyTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v2.ClassifyTextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getClassifyTextMethod(), getCallOptions(), request); } @@ -607,8 +606,8 @@ public com.google.cloud.language.v2.ClassifyTextResponse classifyText( * */ public com.google.cloud.language.v2.ModerateTextResponse moderateText( - com.google.cloud.language.v2.ModerateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v2.ModerateTextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModerateTextMethod(), getCallOptions(), request); } @@ -620,8 +619,8 @@ public com.google.cloud.language.v2.ModerateTextResponse moderateText( * */ public com.google.cloud.language.v2.AnnotateTextResponse annotateText( - com.google.cloud.language.v2.AnnotateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.language.v2.AnnotateTextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateTextMethod(), getCallOptions(), request); } } diff --git a/java-licensemanager/README.md b/java-licensemanager/README.md index ef35a5ef8d8a..11cf1627acfa 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-licensemanager - 0.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-licensemanager:0.10.0' +implementation 'com.google.cloud:google-cloud-licensemanager:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.11.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-licensemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-licensemanager/grpc-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerGrpc.java b/java-licensemanager/grpc-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerGrpc.java index 164c909a497d..1b6eb6f9feda 100644 --- a/java-licensemanager/grpc-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerGrpc.java +++ b/java-licensemanager/grpc-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/licensemanager/v1/licensemanager.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LicenseManagerGrpc { @@ -1186,8 +1183,9 @@ protected LicenseManagerBlockingV2Stub build( * */ public com.google.cloud.licensemanager.v1.ListConfigurationsResponse listConfigurations( - com.google.cloud.licensemanager.v1.ListConfigurationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConfigurationsMethod(), getCallOptions(), request); } @@ -1199,8 +1197,9 @@ public com.google.cloud.licensemanager.v1.ListConfigurationsResponse listConfigu * */ public com.google.cloud.licensemanager.v1.Configuration getConfiguration( - com.google.cloud.licensemanager.v1.GetConfigurationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.GetConfigurationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConfigurationMethod(), getCallOptions(), request); } @@ -1212,8 +1211,9 @@ public com.google.cloud.licensemanager.v1.Configuration getConfiguration( * */ public com.google.longrunning.Operation createConfiguration( - com.google.cloud.licensemanager.v1.CreateConfigurationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConfigurationMethod(), getCallOptions(), request); } @@ -1225,8 +1225,9 @@ public com.google.longrunning.Operation createConfiguration( * */ public com.google.longrunning.Operation updateConfiguration( - com.google.cloud.licensemanager.v1.UpdateConfigurationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConfigurationMethod(), getCallOptions(), request); } @@ -1238,8 +1239,9 @@ public com.google.longrunning.Operation updateConfiguration( * */ public com.google.longrunning.Operation deleteConfiguration( - com.google.cloud.licensemanager.v1.DeleteConfigurationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConfigurationMethod(), getCallOptions(), request); } @@ -1251,8 +1253,9 @@ public com.google.longrunning.Operation deleteConfiguration( * */ public com.google.cloud.licensemanager.v1.ListInstancesResponse listInstances( - com.google.cloud.licensemanager.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -1264,8 +1267,9 @@ public com.google.cloud.licensemanager.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.licensemanager.v1.Instance getInstance( - com.google.cloud.licensemanager.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -1277,8 +1281,9 @@ public com.google.cloud.licensemanager.v1.Instance getInstance( * */ public com.google.longrunning.Operation deactivateConfiguration( - com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeactivateConfigurationMethod(), getCallOptions(), request); } @@ -1290,8 +1295,9 @@ public com.google.longrunning.Operation deactivateConfiguration( * */ public com.google.longrunning.Operation reactivateConfiguration( - com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReactivateConfigurationMethod(), getCallOptions(), request); } @@ -1304,8 +1310,9 @@ public com.google.longrunning.Operation reactivateConfiguration( */ public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse queryConfigurationLicenseUsage( - com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryConfigurationLicenseUsageMethod(), getCallOptions(), request); } @@ -1317,8 +1324,9 @@ public com.google.longrunning.Operation reactivateConfiguration( * */ public com.google.cloud.licensemanager.v1.AggregateUsageResponse aggregateUsage( - com.google.cloud.licensemanager.v1.AggregateUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.AggregateUsageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAggregateUsageMethod(), getCallOptions(), request); } @@ -1330,8 +1338,9 @@ public com.google.cloud.licensemanager.v1.AggregateUsageResponse aggregateUsage( * */ public com.google.cloud.licensemanager.v1.ListProductsResponse listProducts( - com.google.cloud.licensemanager.v1.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.ListProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } @@ -1343,8 +1352,9 @@ public com.google.cloud.licensemanager.v1.ListProductsResponse listProducts( * */ public com.google.cloud.licensemanager.v1.Product getProduct( - com.google.cloud.licensemanager.v1.GetProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.licensemanager.v1.GetProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } } diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index 172947c43df7..c2abfa73e801 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.79.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.80.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaGrpc.java b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaGrpc.java index b6f25db0cb88..914c08ad4191 100644 --- a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaGrpc.java +++ b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaGrpc.java @@ -25,9 +25,6 @@ * containers. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/lifesciences/v2beta/workflows.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WorkflowsServiceV2BetaGrpc { @@ -285,8 +282,9 @@ protected WorkflowsServiceV2BetaBlockingV2Stub build( * */ public com.google.longrunning.Operation runPipeline( - com.google.cloud.lifesciences.v2beta.RunPipelineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.lifesciences.v2beta.RunPipelineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunPipelineMethod(), getCallOptions(), request); } } diff --git a/java-locationfinder/README.md b/java-locationfinder/README.md index cde6cd4a0142..f8cfdf6a79e4 100644 --- a/java-locationfinder/README.md +++ b/java-locationfinder/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-locationfinder - 0.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-locationfinder:0.2.0' +implementation 'com.google.cloud:google-cloud-locationfinder:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.3.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-locationfinder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-locationfinder/grpc-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderGrpc.java b/java-locationfinder/grpc-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderGrpc.java index debb9754b1a0..cffedf6034f2 100644 --- a/java-locationfinder/grpc-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderGrpc.java +++ b/java-locationfinder/grpc-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/locationfinder/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudLocationFinderGrpc { @@ -407,8 +404,9 @@ protected CloudLocationFinderBlockingV2Stub build( * */ public com.google.cloud.locationfinder.v1.ListCloudLocationsResponse listCloudLocations( - com.google.cloud.locationfinder.v1.ListCloudLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.locationfinder.v1.ListCloudLocationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCloudLocationsMethod(), getCallOptions(), request); } @@ -420,8 +418,9 @@ public com.google.cloud.locationfinder.v1.ListCloudLocationsResponse listCloudLo * */ public com.google.cloud.locationfinder.v1.CloudLocation getCloudLocation( - com.google.cloud.locationfinder.v1.GetCloudLocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.locationfinder.v1.GetCloudLocationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCloudLocationMethod(), getCallOptions(), request); } @@ -433,8 +432,9 @@ public com.google.cloud.locationfinder.v1.CloudLocation getCloudLocation( * */ public com.google.cloud.locationfinder.v1.SearchCloudLocationsResponse searchCloudLocations( - com.google.cloud.locationfinder.v1.SearchCloudLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.locationfinder.v1.SearchCloudLocationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchCloudLocationsMethod(), getCallOptions(), request); } } diff --git a/java-lustre/README.md b/java-lustre/README.md index d7b09724df86..c5c74685b96d 100644 --- a/java-lustre/README.md +++ b/java-lustre/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-lustre - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-lustre:0.17.0' +implementation 'com.google.cloud:google-cloud-lustre:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.18.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-lustre.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-lustre/grpc-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/LustreGrpc.java b/java-lustre/grpc-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/LustreGrpc.java index 97601b01ba55..9f396568b039 100644 --- a/java-lustre/grpc-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/LustreGrpc.java +++ b/java-lustre/grpc-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/LustreGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/lustre/v1/lustre.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LustreGrpc { @@ -657,8 +654,8 @@ protected LustreBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.lustre.v1.ListInstancesResponse listInstances( - com.google.cloud.lustre.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.lustre.v1.ListInstancesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -670,8 +667,8 @@ public com.google.cloud.lustre.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.lustre.v1.Instance getInstance( - com.google.cloud.lustre.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.lustre.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -683,8 +680,8 @@ public com.google.cloud.lustre.v1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.lustre.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.lustre.v1.CreateInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -696,8 +693,8 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.lustre.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.lustre.v1.UpdateInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -709,8 +706,8 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.lustre.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.lustre.v1.DeleteInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -722,8 +719,8 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation importData( - com.google.cloud.lustre.v1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.lustre.v1.ImportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } @@ -735,8 +732,8 @@ public com.google.longrunning.Operation importData( * */ public com.google.longrunning.Operation exportData( - com.google.cloud.lustre.v1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.lustre.v1.ExportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } } diff --git a/java-maintenance/README.md b/java-maintenance/README.md index 73e96ccd4f3a..e25d47318781 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-maintenance - 0.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-maintenance:0.11.0' +implementation 'com.google.cloud:google-cloud-maintenance:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.11.0" +libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.12.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-maintenance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.12.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maintenance/grpc-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceGrpc.java b/java-maintenance/grpc-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceGrpc.java index 13a427b78908..89fa46ea7ec7 100644 --- a/java-maintenance/grpc-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceGrpc.java +++ b/java-maintenance/grpc-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceGrpc.java @@ -24,9 +24,6 @@ * Unified Maintenance service * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/maintenance/api/v1beta/maintenance_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MaintenanceGrpc { @@ -411,8 +408,9 @@ protected MaintenanceBlockingV2Stub build( */ public com.google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse summarizeMaintenances( - com.google.cloud.maintenance.api.v1beta.SummarizeMaintenancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.maintenance.api.v1beta.SummarizeMaintenancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSummarizeMaintenancesMethod(), getCallOptions(), request); } @@ -425,8 +423,9 @@ protected MaintenanceBlockingV2Stub build( */ public com.google.cloud.maintenance.api.v1beta.ListResourceMaintenancesResponse listResourceMaintenances( - com.google.cloud.maintenance.api.v1beta.ListResourceMaintenancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.maintenance.api.v1beta.ListResourceMaintenancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListResourceMaintenancesMethod(), getCallOptions(), request); } @@ -438,8 +437,9 @@ protected MaintenanceBlockingV2Stub build( * */ public com.google.cloud.maintenance.api.v1beta.ResourceMaintenance getResourceMaintenance( - com.google.cloud.maintenance.api.v1beta.GetResourceMaintenanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.maintenance.api.v1beta.GetResourceMaintenanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetResourceMaintenanceMethod(), getCallOptions(), request); } } diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index aa301031240c..ebff7d94a5ee 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managed-identities - 1.75.0 + 1.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.75.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managed-identities/grpc-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceGrpc.java b/java-managed-identities/grpc-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceGrpc.java index cf6afd2b9f02..df2d9a0fc217 100644 --- a/java-managed-identities/grpc-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceGrpc.java +++ b/java-managed-identities/grpc-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceGrpc.java @@ -47,9 +47,6 @@ * * Must be unique within the customer project. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/managedidentities/v1/managed_identities_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ManagedIdentitiesServiceGrpc { @@ -1060,8 +1057,9 @@ protected ManagedIdentitiesServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createMicrosoftAdDomain( - com.google.cloud.managedidentities.v1.CreateMicrosoftAdDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.CreateMicrosoftAdDomainRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMicrosoftAdDomainMethod(), getCallOptions(), request); } @@ -1073,8 +1071,9 @@ public com.google.longrunning.Operation createMicrosoftAdDomain( * */ public com.google.cloud.managedidentities.v1.ResetAdminPasswordResponse resetAdminPassword( - com.google.cloud.managedidentities.v1.ResetAdminPasswordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.ResetAdminPasswordRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetAdminPasswordMethod(), getCallOptions(), request); } @@ -1086,8 +1085,9 @@ public com.google.cloud.managedidentities.v1.ResetAdminPasswordResponse resetAdm * */ public com.google.cloud.managedidentities.v1.ListDomainsResponse listDomains( - com.google.cloud.managedidentities.v1.ListDomainsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.ListDomainsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDomainsMethod(), getCallOptions(), request); } @@ -1099,8 +1099,9 @@ public com.google.cloud.managedidentities.v1.ListDomainsResponse listDomains( * */ public com.google.cloud.managedidentities.v1.Domain getDomain( - com.google.cloud.managedidentities.v1.GetDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.GetDomainRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDomainMethod(), getCallOptions(), request); } @@ -1112,8 +1113,9 @@ public com.google.cloud.managedidentities.v1.Domain getDomain( * */ public com.google.longrunning.Operation updateDomain( - com.google.cloud.managedidentities.v1.UpdateDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.UpdateDomainRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDomainMethod(), getCallOptions(), request); } @@ -1125,8 +1127,9 @@ public com.google.longrunning.Operation updateDomain( * */ public com.google.longrunning.Operation deleteDomain( - com.google.cloud.managedidentities.v1.DeleteDomainRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.DeleteDomainRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDomainMethod(), getCallOptions(), request); } @@ -1138,8 +1141,9 @@ public com.google.longrunning.Operation deleteDomain( * */ public com.google.longrunning.Operation attachTrust( - com.google.cloud.managedidentities.v1.AttachTrustRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.AttachTrustRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAttachTrustMethod(), getCallOptions(), request); } @@ -1151,8 +1155,9 @@ public com.google.longrunning.Operation attachTrust( * */ public com.google.longrunning.Operation reconfigureTrust( - com.google.cloud.managedidentities.v1.ReconfigureTrustRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.ReconfigureTrustRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReconfigureTrustMethod(), getCallOptions(), request); } @@ -1164,8 +1169,9 @@ public com.google.longrunning.Operation reconfigureTrust( * */ public com.google.longrunning.Operation detachTrust( - com.google.cloud.managedidentities.v1.DetachTrustRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.DetachTrustRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetachTrustMethod(), getCallOptions(), request); } @@ -1178,8 +1184,9 @@ public com.google.longrunning.Operation detachTrust( * */ public com.google.longrunning.Operation validateTrust( - com.google.cloud.managedidentities.v1.ValidateTrustRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedidentities.v1.ValidateTrustRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateTrustMethod(), getCallOptions(), request); } } diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index 57e3f834aba4..223727dfadb7 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.33.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.34.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managedkafka/grpc-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectGrpc.java b/java-managedkafka/grpc-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectGrpc.java index abe1363e1d5d..99dd90706e38 100644 --- a/java-managedkafka/grpc-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectGrpc.java +++ b/java-managedkafka/grpc-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectGrpc.java @@ -25,9 +25,6 @@ * clusters and connectors. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/managedkafka/v1/managed_kafka_connect.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ManagedKafkaConnectGrpc { @@ -1264,8 +1261,9 @@ protected ManagedKafkaConnectBlockingV2Stub build( * */ public com.google.cloud.managedkafka.v1.ListConnectClustersResponse listConnectClusters( - com.google.cloud.managedkafka.v1.ListConnectClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.ListConnectClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectClustersMethod(), getCallOptions(), request); } @@ -1277,8 +1275,9 @@ public com.google.cloud.managedkafka.v1.ListConnectClustersResponse listConnectC * */ public com.google.cloud.managedkafka.v1.ConnectCluster getConnectCluster( - com.google.cloud.managedkafka.v1.GetConnectClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.GetConnectClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectClusterMethod(), getCallOptions(), request); } @@ -1290,8 +1289,9 @@ public com.google.cloud.managedkafka.v1.ConnectCluster getConnectCluster( * */ public com.google.longrunning.Operation createConnectCluster( - com.google.cloud.managedkafka.v1.CreateConnectClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.CreateConnectClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectClusterMethod(), getCallOptions(), request); } @@ -1303,8 +1303,9 @@ public com.google.longrunning.Operation createConnectCluster( * */ public com.google.longrunning.Operation updateConnectCluster( - com.google.cloud.managedkafka.v1.UpdateConnectClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.UpdateConnectClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectClusterMethod(), getCallOptions(), request); } @@ -1316,8 +1317,9 @@ public com.google.longrunning.Operation updateConnectCluster( * */ public com.google.longrunning.Operation deleteConnectCluster( - com.google.cloud.managedkafka.v1.DeleteConnectClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.DeleteConnectClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectClusterMethod(), getCallOptions(), request); } @@ -1329,8 +1331,9 @@ public com.google.longrunning.Operation deleteConnectCluster( * */ public com.google.cloud.managedkafka.v1.ListConnectorsResponse listConnectors( - com.google.cloud.managedkafka.v1.ListConnectorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.ListConnectorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectorsMethod(), getCallOptions(), request); } @@ -1342,8 +1345,9 @@ public com.google.cloud.managedkafka.v1.ListConnectorsResponse listConnectors( * */ public com.google.cloud.managedkafka.v1.Connector getConnector( - com.google.cloud.managedkafka.v1.GetConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.GetConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectorMethod(), getCallOptions(), request); } @@ -1355,8 +1359,9 @@ public com.google.cloud.managedkafka.v1.Connector getConnector( * */ public com.google.cloud.managedkafka.v1.Connector createConnector( - com.google.cloud.managedkafka.v1.CreateConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.CreateConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectorMethod(), getCallOptions(), request); } @@ -1368,8 +1373,9 @@ public com.google.cloud.managedkafka.v1.Connector createConnector( * */ public com.google.cloud.managedkafka.v1.Connector updateConnector( - com.google.cloud.managedkafka.v1.UpdateConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.UpdateConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectorMethod(), getCallOptions(), request); } @@ -1381,8 +1387,9 @@ public com.google.cloud.managedkafka.v1.Connector updateConnector( * */ public com.google.protobuf.Empty deleteConnector( - com.google.cloud.managedkafka.v1.DeleteConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.DeleteConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectorMethod(), getCallOptions(), request); } @@ -1394,8 +1401,9 @@ public com.google.protobuf.Empty deleteConnector( * */ public com.google.cloud.managedkafka.v1.PauseConnectorResponse pauseConnector( - com.google.cloud.managedkafka.v1.PauseConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.PauseConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseConnectorMethod(), getCallOptions(), request); } @@ -1407,8 +1415,9 @@ public com.google.cloud.managedkafka.v1.PauseConnectorResponse pauseConnector( * */ public com.google.cloud.managedkafka.v1.ResumeConnectorResponse resumeConnector( - com.google.cloud.managedkafka.v1.ResumeConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.ResumeConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeConnectorMethod(), getCallOptions(), request); } @@ -1420,8 +1429,9 @@ public com.google.cloud.managedkafka.v1.ResumeConnectorResponse resumeConnector( * */ public com.google.cloud.managedkafka.v1.RestartConnectorResponse restartConnector( - com.google.cloud.managedkafka.v1.RestartConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.RestartConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestartConnectorMethod(), getCallOptions(), request); } @@ -1433,8 +1443,9 @@ public com.google.cloud.managedkafka.v1.RestartConnectorResponse restartConnecto * */ public com.google.cloud.managedkafka.v1.StopConnectorResponse stopConnector( - com.google.cloud.managedkafka.v1.StopConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.StopConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopConnectorMethod(), getCallOptions(), request); } } diff --git a/java-managedkafka/grpc-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaGrpc.java b/java-managedkafka/grpc-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaGrpc.java index 728470c03ec0..6d5ca730606f 100644 --- a/java-managedkafka/grpc-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaGrpc.java +++ b/java-managedkafka/grpc-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaGrpc.java @@ -25,9 +25,6 @@ * topics and consumer groups. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/managedkafka/v1/managed_kafka.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ManagedKafkaGrpc { @@ -1727,8 +1724,9 @@ protected ManagedKafkaBlockingV2Stub build( * */ public com.google.cloud.managedkafka.v1.ListClustersResponse listClusters( - com.google.cloud.managedkafka.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.ListClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -1740,8 +1738,8 @@ public com.google.cloud.managedkafka.v1.ListClustersResponse listClusters( * */ public com.google.cloud.managedkafka.v1.Cluster getCluster( - com.google.cloud.managedkafka.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.GetClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -1753,8 +1751,9 @@ public com.google.cloud.managedkafka.v1.Cluster getCluster( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.managedkafka.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.CreateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -1766,8 +1765,9 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.managedkafka.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.UpdateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -1779,8 +1779,9 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.managedkafka.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.DeleteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -1792,8 +1793,8 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.cloud.managedkafka.v1.ListTopicsResponse listTopics( - com.google.cloud.managedkafka.v1.ListTopicsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.ListTopicsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTopicsMethod(), getCallOptions(), request); } @@ -1805,8 +1806,8 @@ public com.google.cloud.managedkafka.v1.ListTopicsResponse listTopics( * */ public com.google.cloud.managedkafka.v1.Topic getTopic( - com.google.cloud.managedkafka.v1.GetTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.GetTopicRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTopicMethod(), getCallOptions(), request); } @@ -1818,8 +1819,9 @@ public com.google.cloud.managedkafka.v1.Topic getTopic( * */ public com.google.cloud.managedkafka.v1.Topic createTopic( - com.google.cloud.managedkafka.v1.CreateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.CreateTopicRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTopicMethod(), getCallOptions(), request); } @@ -1831,8 +1833,9 @@ public com.google.cloud.managedkafka.v1.Topic createTopic( * */ public com.google.cloud.managedkafka.v1.Topic updateTopic( - com.google.cloud.managedkafka.v1.UpdateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.UpdateTopicRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTopicMethod(), getCallOptions(), request); } @@ -1844,8 +1847,9 @@ public com.google.cloud.managedkafka.v1.Topic updateTopic( * */ public com.google.protobuf.Empty deleteTopic( - com.google.cloud.managedkafka.v1.DeleteTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.DeleteTopicRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTopicMethod(), getCallOptions(), request); } @@ -1857,8 +1861,9 @@ public com.google.protobuf.Empty deleteTopic( * */ public com.google.cloud.managedkafka.v1.ListConsumerGroupsResponse listConsumerGroups( - com.google.cloud.managedkafka.v1.ListConsumerGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.ListConsumerGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConsumerGroupsMethod(), getCallOptions(), request); } @@ -1870,8 +1875,9 @@ public com.google.cloud.managedkafka.v1.ListConsumerGroupsResponse listConsumerG * */ public com.google.cloud.managedkafka.v1.ConsumerGroup getConsumerGroup( - com.google.cloud.managedkafka.v1.GetConsumerGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.GetConsumerGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConsumerGroupMethod(), getCallOptions(), request); } @@ -1883,8 +1889,9 @@ public com.google.cloud.managedkafka.v1.ConsumerGroup getConsumerGroup( * */ public com.google.cloud.managedkafka.v1.ConsumerGroup updateConsumerGroup( - com.google.cloud.managedkafka.v1.UpdateConsumerGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.UpdateConsumerGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConsumerGroupMethod(), getCallOptions(), request); } @@ -1896,8 +1903,9 @@ public com.google.cloud.managedkafka.v1.ConsumerGroup updateConsumerGroup( * */ public com.google.protobuf.Empty deleteConsumerGroup( - com.google.cloud.managedkafka.v1.DeleteConsumerGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.DeleteConsumerGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConsumerGroupMethod(), getCallOptions(), request); } @@ -1909,8 +1917,8 @@ public com.google.protobuf.Empty deleteConsumerGroup( * */ public com.google.cloud.managedkafka.v1.ListAclsResponse listAcls( - com.google.cloud.managedkafka.v1.ListAclsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.ListAclsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAclsMethod(), getCallOptions(), request); } @@ -1922,8 +1930,8 @@ public com.google.cloud.managedkafka.v1.ListAclsResponse listAcls( * */ public com.google.cloud.managedkafka.v1.Acl getAcl( - com.google.cloud.managedkafka.v1.GetAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.GetAclRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAclMethod(), getCallOptions(), request); } @@ -1935,8 +1943,8 @@ public com.google.cloud.managedkafka.v1.Acl getAcl( * */ public com.google.cloud.managedkafka.v1.Acl createAcl( - com.google.cloud.managedkafka.v1.CreateAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.CreateAclRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAclMethod(), getCallOptions(), request); } @@ -1948,8 +1956,8 @@ public com.google.cloud.managedkafka.v1.Acl createAcl( * */ public com.google.cloud.managedkafka.v1.Acl updateAcl( - com.google.cloud.managedkafka.v1.UpdateAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.UpdateAclRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAclMethod(), getCallOptions(), request); } @@ -1961,8 +1969,8 @@ public com.google.cloud.managedkafka.v1.Acl updateAcl( * */ public com.google.protobuf.Empty deleteAcl( - com.google.cloud.managedkafka.v1.DeleteAclRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.DeleteAclRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAclMethod(), getCallOptions(), request); } @@ -1975,8 +1983,9 @@ public com.google.protobuf.Empty deleteAcl( * */ public com.google.cloud.managedkafka.v1.AddAclEntryResponse addAclEntry( - com.google.cloud.managedkafka.v1.AddAclEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.AddAclEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddAclEntryMethod(), getCallOptions(), request); } @@ -1990,8 +1999,9 @@ public com.google.cloud.managedkafka.v1.AddAclEntryResponse addAclEntry( * */ public com.google.cloud.managedkafka.v1.RemoveAclEntryResponse removeAclEntry( - com.google.cloud.managedkafka.v1.RemoveAclEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.managedkafka.v1.RemoveAclEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveAclEntryMethod(), getCallOptions(), request); } } diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 05622620e75f..d56da98f8bc0 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-addressvalidation - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.71.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.71.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.72.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.72.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationGrpc.java b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationGrpc.java index f2a2fabf6042..d9cdff9a30ca 100644 --- a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationGrpc.java +++ b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationGrpc.java @@ -24,9 +24,6 @@ * The service for validating addresses. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/addressvalidation/v1/address_validation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AddressValidationGrpc { @@ -338,8 +335,9 @@ protected AddressValidationBlockingV2Stub build( * */ public com.google.maps.addressvalidation.v1.ValidateAddressResponse validateAddress( - com.google.maps.addressvalidation.v1.ValidateAddressRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.addressvalidation.v1.ValidateAddressRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateAddressMethod(), getCallOptions(), request); } @@ -356,8 +354,9 @@ public com.google.maps.addressvalidation.v1.ValidateAddressResponse validateAddr */ public com.google.maps.addressvalidation.v1.ProvideValidationFeedbackResponse provideValidationFeedback( - com.google.maps.addressvalidation.v1.ProvideValidationFeedbackRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.addressvalidation.v1.ProvideValidationFeedbackRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProvideValidationFeedbackMethod(), getCallOptions(), request); } } diff --git a/java-maps-area-insights/README.md b/java-maps-area-insights/README.md index fd6608ad8c55..5057c3133e90 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-area-insights - 0.28.0 + 0.29.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.28.0' +implementation 'com.google.maps:google-maps-area-insights:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.28.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.29.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.29.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-area-insights/grpc-google-maps-area-insights-v1/src/main/java/com/google/maps/areainsights/v1/AreaInsightsGrpc.java b/java-maps-area-insights/grpc-google-maps-area-insights-v1/src/main/java/com/google/maps/areainsights/v1/AreaInsightsGrpc.java index e96d3e8d568f..1e05cb74edc0 100644 --- a/java-maps-area-insights/grpc-google-maps-area-insights-v1/src/main/java/com/google/maps/areainsights/v1/AreaInsightsGrpc.java +++ b/java-maps-area-insights/grpc-google-maps-area-insights-v1/src/main/java/com/google/maps/areainsights/v1/AreaInsightsGrpc.java @@ -24,9 +24,6 @@ * Service definition for the Places Aggregate RPC. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/areainsights/v1/area_insights_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AreaInsightsGrpc { @@ -264,8 +261,9 @@ protected AreaInsightsBlockingV2Stub build( * */ public com.google.maps.areainsights.v1.ComputeInsightsResponse computeInsights( - com.google.maps.areainsights.v1.ComputeInsightsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.areainsights.v1.ComputeInsightsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeInsightsMethod(), getCallOptions(), request); } } diff --git a/java-maps-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index f61138c68203..449fb6ef227c 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-fleetengine-delivery - 0.24.0 + 0.25.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.24.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.24.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.25.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.25.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceGrpc.java b/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceGrpc.java index daa3e049ba6e..fe6ed671c6d1 100644 --- a/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceGrpc.java +++ b/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceGrpc.java @@ -24,9 +24,6 @@ * The Last Mile Delivery service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/fleetengine/delivery/v1/delivery_api.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeliveryServiceGrpc { @@ -1121,8 +1118,9 @@ protected DeliveryServiceBlockingV2Stub build( * */ public com.google.maps.fleetengine.delivery.v1.DeliveryVehicle createDeliveryVehicle( - com.google.maps.fleetengine.delivery.v1.CreateDeliveryVehicleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.CreateDeliveryVehicleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeliveryVehicleMethod(), getCallOptions(), request); } @@ -1134,8 +1132,9 @@ public com.google.maps.fleetengine.delivery.v1.DeliveryVehicle createDeliveryVeh * */ public com.google.maps.fleetengine.delivery.v1.DeliveryVehicle getDeliveryVehicle( - com.google.maps.fleetengine.delivery.v1.GetDeliveryVehicleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.GetDeliveryVehicleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeliveryVehicleMethod(), getCallOptions(), request); } @@ -1149,8 +1148,9 @@ public com.google.maps.fleetengine.delivery.v1.DeliveryVehicle getDeliveryVehicl * */ public com.google.protobuf.Empty deleteDeliveryVehicle( - com.google.maps.fleetengine.delivery.v1.DeleteDeliveryVehicleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.DeleteDeliveryVehicleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDeliveryVehicleMethod(), getCallOptions(), request); } @@ -1168,8 +1168,9 @@ public com.google.protobuf.Empty deleteDeliveryVehicle( * */ public com.google.maps.fleetengine.delivery.v1.DeliveryVehicle updateDeliveryVehicle( - com.google.maps.fleetengine.delivery.v1.UpdateDeliveryVehicleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.UpdateDeliveryVehicleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeliveryVehicleMethod(), getCallOptions(), request); } @@ -1181,8 +1182,9 @@ public com.google.maps.fleetengine.delivery.v1.DeliveryVehicle updateDeliveryVeh * */ public com.google.maps.fleetengine.delivery.v1.BatchCreateTasksResponse batchCreateTasks( - com.google.maps.fleetengine.delivery.v1.BatchCreateTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.BatchCreateTasksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateTasksMethod(), getCallOptions(), request); } @@ -1194,8 +1196,9 @@ public com.google.maps.fleetengine.delivery.v1.BatchCreateTasksResponse batchCre * */ public com.google.maps.fleetengine.delivery.v1.Task createTask( - com.google.maps.fleetengine.delivery.v1.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.CreateTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTaskMethod(), getCallOptions(), request); } @@ -1207,8 +1210,9 @@ public com.google.maps.fleetengine.delivery.v1.Task createTask( * */ public com.google.maps.fleetengine.delivery.v1.Task getTask( - com.google.maps.fleetengine.delivery.v1.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.GetTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaskMethod(), getCallOptions(), request); } @@ -1222,8 +1226,9 @@ public com.google.maps.fleetengine.delivery.v1.Task getTask( * */ public com.google.protobuf.Empty deleteTask( - com.google.maps.fleetengine.delivery.v1.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.DeleteTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } @@ -1235,8 +1240,9 @@ public com.google.protobuf.Empty deleteTask( * */ public com.google.maps.fleetengine.delivery.v1.Task updateTask( - com.google.maps.fleetengine.delivery.v1.UpdateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.UpdateTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTaskMethod(), getCallOptions(), request); } @@ -1248,8 +1254,9 @@ public com.google.maps.fleetengine.delivery.v1.Task updateTask( * */ public com.google.maps.fleetengine.delivery.v1.ListTasksResponse listTasks( - com.google.maps.fleetengine.delivery.v1.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.ListTasksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTasksMethod(), getCallOptions(), request); } @@ -1261,8 +1268,9 @@ public com.google.maps.fleetengine.delivery.v1.ListTasksResponse listTasks( * */ public com.google.maps.fleetengine.delivery.v1.TaskTrackingInfo getTaskTrackingInfo( - com.google.maps.fleetengine.delivery.v1.GetTaskTrackingInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.GetTaskTrackingInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaskTrackingInfoMethod(), getCallOptions(), request); } @@ -1275,8 +1283,9 @@ public com.google.maps.fleetengine.delivery.v1.TaskTrackingInfo getTaskTrackingI */ public com.google.maps.fleetengine.delivery.v1.ListDeliveryVehiclesResponse listDeliveryVehicles( - com.google.maps.fleetengine.delivery.v1.ListDeliveryVehiclesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.delivery.v1.ListDeliveryVehiclesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeliveryVehiclesMethod(), getCallOptions(), request); } } diff --git a/java-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index db6b6ae47259..c90c5168f887 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-fleetengine - 0.24.0 + 0.25.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.24.0' +implementation 'com.google.maps:google-maps-fleetengine:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.24.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.25.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.25.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripServiceGrpc.java b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripServiceGrpc.java index 6db101eef391..91189aab5dc7 100644 --- a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripServiceGrpc.java +++ b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripServiceGrpc.java @@ -24,9 +24,6 @@ * Trip management service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/fleetengine/v1/trip_api.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TripServiceGrpc { @@ -589,8 +586,8 @@ protected TripServiceBlockingV2Stub build( * */ public com.google.maps.fleetengine.v1.Trip createTrip( - com.google.maps.fleetengine.v1.CreateTripRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.CreateTripRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTripMethod(), getCallOptions(), request); } @@ -602,8 +599,8 @@ public com.google.maps.fleetengine.v1.Trip createTrip( * */ public com.google.maps.fleetengine.v1.Trip getTrip( - com.google.maps.fleetengine.v1.GetTripRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.GetTripRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTripMethod(), getCallOptions(), request); } @@ -617,8 +614,8 @@ public com.google.maps.fleetengine.v1.Trip getTrip( * */ public com.google.protobuf.Empty deleteTrip( - com.google.maps.fleetengine.v1.DeleteTripRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.DeleteTripRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTripMethod(), getCallOptions(), request); } @@ -630,8 +627,9 @@ public com.google.protobuf.Empty deleteTrip( * */ public com.google.protobuf.Empty reportBillableTrip( - com.google.maps.fleetengine.v1.ReportBillableTripRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.ReportBillableTripRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportBillableTripMethod(), getCallOptions(), request); } @@ -643,8 +641,8 @@ public com.google.protobuf.Empty reportBillableTrip( * */ public com.google.maps.fleetengine.v1.SearchTripsResponse searchTrips( - com.google.maps.fleetengine.v1.SearchTripsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.SearchTripsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchTripsMethod(), getCallOptions(), request); } @@ -656,8 +654,8 @@ public com.google.maps.fleetengine.v1.SearchTripsResponse searchTrips( * */ public com.google.maps.fleetengine.v1.Trip updateTrip( - com.google.maps.fleetengine.v1.UpdateTripRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.UpdateTripRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTripMethod(), getCallOptions(), request); } } diff --git a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceGrpc.java b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceGrpc.java index c1fcf88618ea..c84e710d3c1d 100644 --- a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceGrpc.java +++ b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceGrpc.java @@ -24,9 +24,6 @@ * Vehicle management service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/fleetengine/v1/vehicle_api.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VehicleServiceGrpc { @@ -800,8 +797,9 @@ protected VehicleServiceBlockingV2Stub build( * */ public com.google.maps.fleetengine.v1.Vehicle createVehicle( - com.google.maps.fleetengine.v1.CreateVehicleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.CreateVehicleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVehicleMethod(), getCallOptions(), request); } @@ -813,8 +811,8 @@ public com.google.maps.fleetengine.v1.Vehicle createVehicle( * */ public com.google.maps.fleetengine.v1.Vehicle getVehicle( - com.google.maps.fleetengine.v1.GetVehicleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.GetVehicleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVehicleMethod(), getCallOptions(), request); } @@ -828,8 +826,9 @@ public com.google.maps.fleetengine.v1.Vehicle getVehicle( * */ public com.google.protobuf.Empty deleteVehicle( - com.google.maps.fleetengine.v1.DeleteVehicleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.DeleteVehicleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVehicleMethod(), getCallOptions(), request); } @@ -853,8 +852,9 @@ public com.google.protobuf.Empty deleteVehicle( * */ public com.google.maps.fleetengine.v1.Vehicle updateVehicle( - com.google.maps.fleetengine.v1.UpdateVehicleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.UpdateVehicleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVehicleMethod(), getCallOptions(), request); } @@ -870,8 +870,9 @@ public com.google.maps.fleetengine.v1.Vehicle updateVehicle( * */ public com.google.maps.fleetengine.v1.UpdateVehicleAttributesResponse updateVehicleAttributes( - com.google.maps.fleetengine.v1.UpdateVehicleAttributesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.UpdateVehicleAttributesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVehicleAttributesMethod(), getCallOptions(), request); } @@ -884,8 +885,8 @@ public com.google.maps.fleetengine.v1.UpdateVehicleAttributesResponse updateVehi * */ public com.google.maps.fleetengine.v1.ListVehiclesResponse listVehicles( - com.google.maps.fleetengine.v1.ListVehiclesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.ListVehiclesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVehiclesMethod(), getCallOptions(), request); } @@ -897,8 +898,9 @@ public com.google.maps.fleetengine.v1.ListVehiclesResponse listVehicles( * */ public com.google.maps.fleetengine.v1.SearchVehiclesResponse searchVehicles( - com.google.maps.fleetengine.v1.SearchVehiclesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.fleetengine.v1.SearchVehiclesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchVehiclesMethod(), getCallOptions(), request); } } diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index fddafd557c5a..8175b6a9f569 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-mapsplatformdatasets - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.66.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.66.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.67.0" ``` ## Authentication @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsGrpc.java b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsGrpc.java index 4a8c901b21d5..5f225180528d 100644 --- a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsGrpc.java +++ b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsGrpc.java @@ -24,9 +24,6 @@ * Service definition for the Maps Platform Datasets API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/mapsplatformdatasets/v1/maps_platform_datasets_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MapsPlatformDatasetsGrpc { @@ -634,8 +631,9 @@ protected MapsPlatformDatasetsBlockingV2Stub build( * */ public com.google.maps.mapsplatformdatasets.v1.Dataset createDataset( - com.google.maps.mapsplatformdatasets.v1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.mapsplatformdatasets.v1.CreateDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } @@ -647,8 +645,9 @@ public com.google.maps.mapsplatformdatasets.v1.Dataset createDataset( * */ public com.google.maps.mapsplatformdatasets.v1.Dataset updateDatasetMetadata( - com.google.maps.mapsplatformdatasets.v1.UpdateDatasetMetadataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.mapsplatformdatasets.v1.UpdateDatasetMetadataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetMetadataMethod(), getCallOptions(), request); } @@ -660,8 +659,9 @@ public com.google.maps.mapsplatformdatasets.v1.Dataset updateDatasetMetadata( * */ public com.google.maps.mapsplatformdatasets.v1.Dataset getDataset( - com.google.maps.mapsplatformdatasets.v1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.mapsplatformdatasets.v1.GetDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } @@ -673,8 +673,9 @@ public com.google.maps.mapsplatformdatasets.v1.Dataset getDataset( * */ public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse fetchDatasetErrors( - com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchDatasetErrorsMethod(), getCallOptions(), request); } @@ -686,8 +687,9 @@ public com.google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse fetchD * */ public com.google.maps.mapsplatformdatasets.v1.ListDatasetsResponse listDatasets( - com.google.maps.mapsplatformdatasets.v1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.mapsplatformdatasets.v1.ListDatasetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetsMethod(), getCallOptions(), request); } @@ -699,8 +701,9 @@ public com.google.maps.mapsplatformdatasets.v1.ListDatasetsResponse listDatasets * */ public com.google.protobuf.Empty deleteDataset( - com.google.maps.mapsplatformdatasets.v1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.mapsplatformdatasets.v1.DeleteDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } } diff --git a/java-maps-places/README.md b/java-maps-places/README.md index 114521f50d84..5353b0a32dc8 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-places - 0.48.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.48.0' +implementation 'com.google.maps:google-maps-places:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.48.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.49.0" ``` ## Authentication @@ -204,7 +204,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json index d4842786577f..17d02eb869ee 100644 --- a/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json +++ b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json @@ -1088,6 +1088,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.places.v1.Place$ConsumerAlert", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$ConsumerAlert$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$ConsumerAlert$Details", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$ConsumerAlert$Details$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$ConsumerAlert$Details$Link", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$ConsumerAlert$Details$Link$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.places.v1.Place$ContainingPlace", "queryAllDeclaredConstructors": true, diff --git a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java index d1c0bb1aa698..d15cede73e73 100644 --- a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java +++ b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java @@ -389,7 +389,8 @@ public void getPlaceTest() throws Exception { .setReviewSummary(Place.ReviewSummary.newBuilder().build()) .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) .setNeighborhoodSummary(Place.NeighborhoodSummary.newBuilder().build()) - .setMovedPlace("movedPlace-1127226860") + .setConsumerAlert(Place.ConsumerAlert.newBuilder().build()) + .setMovedPlace(PlaceName.of("[PLACE_ID]").toString()) .setMovedPlaceId("movedPlaceId-933251505") .build(); mockService.addResponse(expectedResponse); @@ -504,7 +505,8 @@ public void getPlaceTest2() throws Exception { .setReviewSummary(Place.ReviewSummary.newBuilder().build()) .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) .setNeighborhoodSummary(Place.NeighborhoodSummary.newBuilder().build()) - .setMovedPlace("movedPlace-1127226860") + .setConsumerAlert(Place.ConsumerAlert.newBuilder().build()) + .setMovedPlace(PlaceName.of("[PLACE_ID]").toString()) .setMovedPlaceId("movedPlaceId-933251505") .build(); mockService.addResponse(expectedResponse); diff --git a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java index 8a0e9bdddc18..f2bc1548370b 100644 --- a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java +++ b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java @@ -399,7 +399,8 @@ public void getPlaceTest() throws Exception { .setReviewSummary(Place.ReviewSummary.newBuilder().build()) .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) .setNeighborhoodSummary(Place.NeighborhoodSummary.newBuilder().build()) - .setMovedPlace("movedPlace-1127226860") + .setConsumerAlert(Place.ConsumerAlert.newBuilder().build()) + .setMovedPlace(PlaceName.of("[PLACE_ID]").toString()) .setMovedPlaceId("movedPlaceId-933251505") .build(); mockPlaces.addResponse(expectedResponse); @@ -508,7 +509,8 @@ public void getPlaceTest2() throws Exception { .setReviewSummary(Place.ReviewSummary.newBuilder().build()) .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) .setNeighborhoodSummary(Place.NeighborhoodSummary.newBuilder().build()) - .setMovedPlace("movedPlace-1127226860") + .setConsumerAlert(Place.ConsumerAlert.newBuilder().build()) + .setMovedPlace(PlaceName.of("[PLACE_ID]").toString()) .setMovedPlaceId("movedPlaceId-933251505") .build(); mockPlaces.addResponse(expectedResponse); diff --git a/java-maps-places/grpc-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesGrpc.java b/java-maps-places/grpc-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesGrpc.java index 53d58a50b494..50474c333c81 100644 --- a/java-maps-places/grpc-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesGrpc.java +++ b/java-maps-places/grpc-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesGrpc.java @@ -29,9 +29,6 @@ * https://developers.google.com/maps/documentation/places/web-service/choose-fields * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/places/v1/places_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PlacesGrpc { @@ -547,8 +544,8 @@ protected PlacesBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.maps.places.v1.SearchNearbyResponse searchNearby( - com.google.maps.places.v1.SearchNearbyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.places.v1.SearchNearbyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchNearbyMethod(), getCallOptions(), request); } @@ -560,8 +557,8 @@ public com.google.maps.places.v1.SearchNearbyResponse searchNearby( * */ public com.google.maps.places.v1.SearchTextResponse searchText( - com.google.maps.places.v1.SearchTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.places.v1.SearchTextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchTextMethod(), getCallOptions(), request); } @@ -573,8 +570,8 @@ public com.google.maps.places.v1.SearchTextResponse searchText( * */ public com.google.maps.places.v1.PhotoMedia getPhotoMedia( - com.google.maps.places.v1.GetPhotoMediaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.places.v1.GetPhotoMediaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPhotoMediaMethod(), getCallOptions(), request); } @@ -587,8 +584,8 @@ public com.google.maps.places.v1.PhotoMedia getPhotoMedia( * */ public com.google.maps.places.v1.Place getPlace( - com.google.maps.places.v1.GetPlaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.places.v1.GetPlaceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPlaceMethod(), getCallOptions(), request); } @@ -600,8 +597,9 @@ public com.google.maps.places.v1.Place getPlace( * */ public com.google.maps.places.v1.AutocompletePlacesResponse autocompletePlaces( - com.google.maps.places.v1.AutocompletePlacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.places.v1.AutocompletePlacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAutocompletePlacesMethod(), getCallOptions(), request); } } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java index ff000876c4e3..e58e20248095 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java @@ -23157,6 +23157,3312 @@ public com.google.maps.places.v1.Place.NeighborhoodSummary getDefaultInstanceFor } } + public interface ConsumerAlertOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.ConsumerAlert) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * The overview of the consumer alert message.
                                          +     * 
                                          + * + * string overview = 1; + * + * @return The overview. + */ + java.lang.String getOverview(); + + /** + * + * + *
                                          +     * The overview of the consumer alert message.
                                          +     * 
                                          + * + * string overview = 1; + * + * @return The bytes for overview. + */ + com.google.protobuf.ByteString getOverviewBytes(); + + /** + * + * + *
                                          +     * The details of the consumer alert message.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + * + * @return Whether the details field is set. + */ + boolean hasDetails(); + + /** + * + * + *
                                          +     * The details of the consumer alert message.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + * + * @return The details. + */ + com.google.maps.places.v1.Place.ConsumerAlert.Details getDetails(); + + /** + * + * + *
                                          +     * The details of the consumer alert message.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + */ + com.google.maps.places.v1.Place.ConsumerAlert.DetailsOrBuilder getDetailsOrBuilder(); + + /** + * + * + *
                                          +     * The language code of the consumer alert message. This is a BCP 47
                                          +     * language code.
                                          +     * 
                                          + * + * string language_code = 3; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + + /** + * + * + *
                                          +     * The language code of the consumer alert message. This is a BCP 47
                                          +     * language code.
                                          +     * 
                                          + * + * string language_code = 3; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + } + + /** + * + * + *
                                          +   * The consumer alert message for the place when we detect suspicious review
                                          +   * activity on a business or a business violates our policies.
                                          +   * 
                                          + * + * Protobuf type {@code google.maps.places.v1.Place.ConsumerAlert} + */ + public static final class ConsumerAlert extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.ConsumerAlert) + ConsumerAlertOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConsumerAlert.newBuilder() to construct. + private ConsumerAlert(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConsumerAlert() { + overview_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConsumerAlert(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.ConsumerAlert.class, + com.google.maps.places.v1.Place.ConsumerAlert.Builder.class); + } + + public interface DetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.ConsumerAlert.Details) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +       * The title to show together with the description.
                                          +       * 
                                          + * + * string title = 1; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
                                          +       * The title to show together with the description.
                                          +       * 
                                          + * + * string title = 1; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
                                          +       * The description of the consumer alert message.
                                          +       * 
                                          + * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                          +       * The description of the consumer alert message.
                                          +       * 
                                          + * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                          +       * The link to show together with the description to provide more
                                          +       * information.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + * + * @return Whether the aboutLink field is set. + */ + boolean hasAboutLink(); + + /** + * + * + *
                                          +       * The link to show together with the description to provide more
                                          +       * information.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + * + * @return The aboutLink. + */ + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link getAboutLink(); + + /** + * + * + *
                                          +       * The link to show together with the description to provide more
                                          +       * information.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + */ + com.google.maps.places.v1.Place.ConsumerAlert.Details.LinkOrBuilder getAboutLinkOrBuilder(); + } + + /** + * + * + *
                                          +     * The details of the consumer alert message.
                                          +     * 
                                          + * + * Protobuf type {@code google.maps.places.v1.Place.ConsumerAlert.Details} + */ + public static final class Details extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.ConsumerAlert.Details) + DetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Details.newBuilder() to construct. + private Details(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Details() { + title_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Details(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.ConsumerAlert.Details.class, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Builder.class); + } + + public interface LinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.ConsumerAlert.Details.Link) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +         * The title to show for the link.
                                          +         * 
                                          + * + * string title = 1; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
                                          +         * The title to show for the link.
                                          +         * 
                                          + * + * string title = 1; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
                                          +         * The uri of the link.
                                          +         * 
                                          + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
                                          +         * The uri of the link.
                                          +         * 
                                          + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + } + + /** + * + * + *
                                          +       * The link to show together with the description to provide more
                                          +       * information.
                                          +       * 
                                          + * + * Protobuf type {@code google.maps.places.v1.Place.ConsumerAlert.Details.Link} + */ + public static final class Link extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.ConsumerAlert.Details.Link) + LinkOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Link.newBuilder() to construct. + private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Link() { + title_ = ""; + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Link(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.class, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
                                          +         * The title to show for the link.
                                          +         * 
                                          + * + * string title = 1; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + + /** + * + * + *
                                          +         * The title to show for the link.
                                          +         * 
                                          + * + * string title = 1; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
                                          +         * The uri of the link.
                                          +         * 
                                          + * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + + /** + * + * + *
                                          +         * The uri of the link.
                                          +         * 
                                          + * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = 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.GeneratedMessageV3.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + 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.maps.places.v1.Place.ConsumerAlert.Details.Link)) { + return super.equals(obj); + } + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link other = + (com.google.maps.places.v1.Place.ConsumerAlert.Details.Link) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (!getUri().equals(other.getUri())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link 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.maps.places.v1.Place.ConsumerAlert.Details.Link parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * Protobuf type {@code google.maps.places.v1.Place.ConsumerAlert.Details.Link} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.ConsumerAlert.Details.Link) + com.google.maps.places.v1.Place.ConsumerAlert.Details.LinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.class, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.Builder.class); + } + + // Construct using com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + uri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.Details.Link + getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.Details.Link build() { + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.Details.Link buildPartial() { + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link result = + new com.google.maps.places.v1.Place.ConsumerAlert.Details.Link(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.Place.ConsumerAlert.Details.Link) { + return mergeFrom((com.google.maps.places.v1.Place.ConsumerAlert.Details.Link) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link other) { + if (other + == com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = 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 title_ = ""; + + /** + * + * + *
                                          +           * The title to show for the link.
                                          +           * 
                                          + * + * string title = 1; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +           * The title to show for the link.
                                          +           * 
                                          + * + * string title = 1; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +           * The title to show for the link.
                                          +           * 
                                          + * + * string title = 1; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * The title to show for the link.
                                          +           * 
                                          + * + * string title = 1; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * The title to show for the link.
                                          +           * 
                                          + * + * string title = 1; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
                                          +           * The uri of the link.
                                          +           * 
                                          + * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +           * The uri of the link.
                                          +           * 
                                          + * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +           * The uri of the link.
                                          +           * 
                                          + * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * The uri of the link.
                                          +           * 
                                          + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +           * The uri of the link.
                                          +           * 
                                          + * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.ConsumerAlert.Details.Link) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.ConsumerAlert.Details.Link) + private static final com.google.maps.places.v1.Place.ConsumerAlert.Details.Link + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.ConsumerAlert.Details.Link(); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details.Link + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Link 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.maps.places.v1.Place.ConsumerAlert.Details.Link + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
                                          +       * The title to show together with the description.
                                          +       * 
                                          + * + * string title = 1; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + + /** + * + * + *
                                          +       * The title to show together with the description.
                                          +       * 
                                          + * + * string title = 1; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                          +       * The description of the consumer alert message.
                                          +       * 
                                          + * + * string description = 2; + * + * @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; + } + } + + /** + * + * + *
                                          +       * The description of the consumer alert message.
                                          +       * 
                                          + * + * string description = 2; + * + * @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 ABOUT_LINK_FIELD_NUMBER = 3; + private com.google.maps.places.v1.Place.ConsumerAlert.Details.Link aboutLink_; + + /** + * + * + *
                                          +       * The link to show together with the description to provide more
                                          +       * information.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + * + * @return Whether the aboutLink field is set. + */ + @java.lang.Override + public boolean hasAboutLink() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +       * The link to show together with the description to provide more
                                          +       * information.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + * + * @return The aboutLink. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.Details.Link getAboutLink() { + return aboutLink_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.getDefaultInstance() + : aboutLink_; + } + + /** + * + * + *
                                          +       * The link to show together with the description to provide more
                                          +       * information.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.Details.LinkOrBuilder + getAboutLinkOrBuilder() { + return aboutLink_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.getDefaultInstance() + : aboutLink_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAboutLink()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAboutLink()); + } + 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.maps.places.v1.Place.ConsumerAlert.Details)) { + return super.equals(obj); + } + com.google.maps.places.v1.Place.ConsumerAlert.Details other = + (com.google.maps.places.v1.Place.ConsumerAlert.Details) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasAboutLink() != other.hasAboutLink()) return false; + if (hasAboutLink()) { + if (!getAboutLink().equals(other.getAboutLink())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasAboutLink()) { + hash = (37 * hash) + ABOUT_LINK_FIELD_NUMBER; + hash = (53 * hash) + getAboutLink().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details 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.maps.places.v1.Place.ConsumerAlert.Details parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.places.v1.Place.ConsumerAlert.Details prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * Protobuf type {@code google.maps.places.v1.Place.ConsumerAlert.Details} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.ConsumerAlert.Details) + com.google.maps.places.v1.Place.ConsumerAlert.DetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.ConsumerAlert.Details.class, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Builder.class); + } + + // Construct using com.google.maps.places.v1.Place.ConsumerAlert.Details.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAboutLinkFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + description_ = ""; + aboutLink_ = null; + if (aboutLinkBuilder_ != null) { + aboutLinkBuilder_.dispose(); + aboutLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.Details getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.ConsumerAlert.Details.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.Details build() { + com.google.maps.places.v1.Place.ConsumerAlert.Details result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.Details buildPartial() { + com.google.maps.places.v1.Place.ConsumerAlert.Details result = + new com.google.maps.places.v1.Place.ConsumerAlert.Details(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.places.v1.Place.ConsumerAlert.Details result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aboutLink_ = aboutLinkBuilder_ == null ? aboutLink_ : aboutLinkBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.Place.ConsumerAlert.Details) { + return mergeFrom((com.google.maps.places.v1.Place.ConsumerAlert.Details) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.Place.ConsumerAlert.Details other) { + if (other == com.google.maps.places.v1.Place.ConsumerAlert.Details.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAboutLink()) { + mergeAboutLink(other.getAboutLink()); + } + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getAboutLinkFieldBuilder().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 title_ = ""; + + /** + * + * + *
                                          +         * The title to show together with the description.
                                          +         * 
                                          + * + * string title = 1; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +         * The title to show together with the description.
                                          +         * 
                                          + * + * string title = 1; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +         * The title to show together with the description.
                                          +         * 
                                          + * + * string title = 1; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The title to show together with the description.
                                          +         * 
                                          + * + * string title = 1; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The title to show together with the description.
                                          +         * 
                                          + * + * string title = 1; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                          +         * The description of the consumer alert message.
                                          +         * 
                                          + * + * string description = 2; + * + * @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; + } + } + + /** + * + * + *
                                          +         * The description of the consumer alert message.
                                          +         * 
                                          + * + * string description = 2; + * + * @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; + } + } + + /** + * + * + *
                                          +         * The description of the consumer alert message.
                                          +         * 
                                          + * + * string description = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The description of the consumer alert message.
                                          +         * 
                                          + * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The description of the consumer alert message.
                                          +         * 
                                          + * + * string description = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.maps.places.v1.Place.ConsumerAlert.Details.Link aboutLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.Builder, + com.google.maps.places.v1.Place.ConsumerAlert.Details.LinkOrBuilder> + aboutLinkBuilder_; + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + * + * @return Whether the aboutLink field is set. + */ + public boolean hasAboutLink() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + * + * @return The aboutLink. + */ + public com.google.maps.places.v1.Place.ConsumerAlert.Details.Link getAboutLink() { + if (aboutLinkBuilder_ == null) { + return aboutLink_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.getDefaultInstance() + : aboutLink_; + } else { + return aboutLinkBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + */ + public Builder setAboutLink( + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link value) { + if (aboutLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aboutLink_ = value; + } else { + aboutLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + */ + public Builder setAboutLink( + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.Builder builderForValue) { + if (aboutLinkBuilder_ == null) { + aboutLink_ = builderForValue.build(); + } else { + aboutLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + */ + public Builder mergeAboutLink( + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link value) { + if (aboutLinkBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && aboutLink_ != null + && aboutLink_ + != com.google.maps.places.v1.Place.ConsumerAlert.Details.Link + .getDefaultInstance()) { + getAboutLinkBuilder().mergeFrom(value); + } else { + aboutLink_ = value; + } + } else { + aboutLinkBuilder_.mergeFrom(value); + } + if (aboutLink_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + */ + public Builder clearAboutLink() { + bitField0_ = (bitField0_ & ~0x00000004); + aboutLink_ = null; + if (aboutLinkBuilder_ != null) { + aboutLinkBuilder_.dispose(); + aboutLinkBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + */ + public com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.Builder + getAboutLinkBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAboutLinkFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + */ + public com.google.maps.places.v1.Place.ConsumerAlert.Details.LinkOrBuilder + getAboutLinkOrBuilder() { + if (aboutLinkBuilder_ != null) { + return aboutLinkBuilder_.getMessageOrBuilder(); + } else { + return aboutLink_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.getDefaultInstance() + : aboutLink_; + } + } + + /** + * + * + *
                                          +         * The link to show together with the description to provide more
                                          +         * information.
                                          +         * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details.Link about_link = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.Builder, + com.google.maps.places.v1.Place.ConsumerAlert.Details.LinkOrBuilder> + getAboutLinkFieldBuilder() { + if (aboutLinkBuilder_ == null) { + aboutLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Link.Builder, + com.google.maps.places.v1.Place.ConsumerAlert.Details.LinkOrBuilder>( + getAboutLink(), getParentForChildren(), isClean()); + aboutLink_ = null; + } + return aboutLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.ConsumerAlert.Details) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.ConsumerAlert.Details) + private static final com.google.maps.places.v1.Place.ConsumerAlert.Details DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.ConsumerAlert.Details(); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert.Details getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
                                          PARSER = + new com.google.protobuf.AbstractParser
                                          () { + @java.lang.Override + public Details 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.maps.places.v1.Place.ConsumerAlert.Details getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int OVERVIEW_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object overview_ = ""; + + /** + * + * + *
                                          +     * The overview of the consumer alert message.
                                          +     * 
                                          + * + * string overview = 1; + * + * @return The overview. + */ + @java.lang.Override + public java.lang.String getOverview() { + java.lang.Object ref = overview_; + 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(); + overview_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * The overview of the consumer alert message.
                                          +     * 
                                          + * + * string overview = 1; + * + * @return The bytes for overview. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overview_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DETAILS_FIELD_NUMBER = 2; + private com.google.maps.places.v1.Place.ConsumerAlert.Details details_; + + /** + * + * + *
                                          +     * The details of the consumer alert message.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + * + * @return Whether the details field is set. + */ + @java.lang.Override + public boolean hasDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * The details of the consumer alert message.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + * + * @return The details. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.Details getDetails() { + return details_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.Details.getDefaultInstance() + : details_; + } + + /** + * + * + *
                                          +     * The details of the consumer alert message.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert.DetailsOrBuilder getDetailsOrBuilder() { + return details_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.Details.getDefaultInstance() + : details_; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + + /** + * + * + *
                                          +     * The language code of the consumer alert message. This is a BCP 47
                                          +     * language code.
                                          +     * 
                                          + * + * string language_code = 3; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + 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(); + languageCode_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * The language code of the consumer alert message. This is a BCP 47
                                          +     * language code.
                                          +     * 
                                          + * + * string language_code = 3; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = 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.GeneratedMessageV3.isStringEmpty(overview_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, overview_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDetails()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(overview_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, overview_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetails()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); + } + 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.maps.places.v1.Place.ConsumerAlert)) { + return super.equals(obj); + } + com.google.maps.places.v1.Place.ConsumerAlert other = + (com.google.maps.places.v1.Place.ConsumerAlert) obj; + + if (!getOverview().equals(other.getOverview())) return false; + if (hasDetails() != other.hasDetails()) return false; + if (hasDetails()) { + if (!getDetails().equals(other.getDetails())) return false; + } + if (!getLanguageCode().equals(other.getLanguageCode())) 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) + OVERVIEW_FIELD_NUMBER; + hash = (53 * hash) + getOverview().hashCode(); + if (hasDetails()) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); + } + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert 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.maps.places.v1.Place.ConsumerAlert parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.Place.ConsumerAlert prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * Protobuf type {@code google.maps.places.v1.Place.ConsumerAlert} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.ConsumerAlert) + com.google.maps.places.v1.Place.ConsumerAlertOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.ConsumerAlert.class, + com.google.maps.places.v1.Place.ConsumerAlert.Builder.class); + } + + // Construct using com.google.maps.places.v1.Place.ConsumerAlert.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + overview_ = ""; + details_ = null; + if (detailsBuilder_ != null) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + } + languageCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_ConsumerAlert_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.ConsumerAlert.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert build() { + com.google.maps.places.v1.Place.ConsumerAlert result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert buildPartial() { + com.google.maps.places.v1.Place.ConsumerAlert result = + new com.google.maps.places.v1.Place.ConsumerAlert(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.places.v1.Place.ConsumerAlert result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.overview_ = overview_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.details_ = detailsBuilder_ == null ? details_ : detailsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.Place.ConsumerAlert) { + return mergeFrom((com.google.maps.places.v1.Place.ConsumerAlert) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.Place.ConsumerAlert other) { + if (other == com.google.maps.places.v1.Place.ConsumerAlert.getDefaultInstance()) + return this; + if (!other.getOverview().isEmpty()) { + overview_ = other.overview_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDetails()) { + mergeDetails(other.getDetails()); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + 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: + { + overview_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + languageCode_ = 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 overview_ = ""; + + /** + * + * + *
                                          +       * The overview of the consumer alert message.
                                          +       * 
                                          + * + * string overview = 1; + * + * @return The overview. + */ + public java.lang.String getOverview() { + java.lang.Object ref = overview_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + overview_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * The overview of the consumer alert message.
                                          +       * 
                                          + * + * string overview = 1; + * + * @return The bytes for overview. + */ + public com.google.protobuf.ByteString getOverviewBytes() { + java.lang.Object ref = overview_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overview_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * The overview of the consumer alert message.
                                          +       * 
                                          + * + * string overview = 1; + * + * @param value The overview to set. + * @return This builder for chaining. + */ + public Builder setOverview(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + overview_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The overview of the consumer alert message.
                                          +       * 
                                          + * + * string overview = 1; + * + * @return This builder for chaining. + */ + public Builder clearOverview() { + overview_ = getDefaultInstance().getOverview(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The overview of the consumer alert message.
                                          +       * 
                                          + * + * string overview = 1; + * + * @param value The bytes for overview to set. + * @return This builder for chaining. + */ + public Builder setOverviewBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + overview_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.maps.places.v1.Place.ConsumerAlert.Details details_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ConsumerAlert.Details, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Builder, + com.google.maps.places.v1.Place.ConsumerAlert.DetailsOrBuilder> + detailsBuilder_; + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + * + * @return Whether the details field is set. + */ + public boolean hasDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + * + * @return The details. + */ + public com.google.maps.places.v1.Place.ConsumerAlert.Details getDetails() { + if (detailsBuilder_ == null) { + return details_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.Details.getDefaultInstance() + : details_; + } else { + return detailsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + */ + public Builder setDetails(com.google.maps.places.v1.Place.ConsumerAlert.Details value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + } else { + detailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + */ + public Builder setDetails( + com.google.maps.places.v1.Place.ConsumerAlert.Details.Builder builderForValue) { + if (detailsBuilder_ == null) { + details_ = builderForValue.build(); + } else { + detailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + */ + public Builder mergeDetails(com.google.maps.places.v1.Place.ConsumerAlert.Details value) { + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && details_ != null + && details_ + != com.google.maps.places.v1.Place.ConsumerAlert.Details.getDefaultInstance()) { + getDetailsBuilder().mergeFrom(value); + } else { + details_ = value; + } + } else { + detailsBuilder_.mergeFrom(value); + } + if (details_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + */ + public Builder clearDetails() { + bitField0_ = (bitField0_ & ~0x00000002); + details_ = null; + if (detailsBuilder_ != null) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + */ + public com.google.maps.places.v1.Place.ConsumerAlert.Details.Builder getDetailsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + */ + public com.google.maps.places.v1.Place.ConsumerAlert.DetailsOrBuilder getDetailsOrBuilder() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilder(); + } else { + return details_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.Details.getDefaultInstance() + : details_; + } + } + + /** + * + * + *
                                          +       * The details of the consumer alert message.
                                          +       * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert.Details details = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ConsumerAlert.Details, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Builder, + com.google.maps.places.v1.Place.ConsumerAlert.DetailsOrBuilder> + getDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ConsumerAlert.Details, + com.google.maps.places.v1.Place.ConsumerAlert.Details.Builder, + com.google.maps.places.v1.Place.ConsumerAlert.DetailsOrBuilder>( + getDetails(), getParentForChildren(), isClean()); + details_ = null; + } + return detailsBuilder_; + } + + private java.lang.Object languageCode_ = ""; + + /** + * + * + *
                                          +       * The language code of the consumer alert message. This is a BCP 47
                                          +       * language code.
                                          +       * 
                                          + * + * string language_code = 3; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * The language code of the consumer alert message. This is a BCP 47
                                          +       * language code.
                                          +       * 
                                          + * + * string language_code = 3; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * The language code of the consumer alert message. This is a BCP 47
                                          +       * language code.
                                          +       * 
                                          + * + * string language_code = 3; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The language code of the consumer alert message. This is a BCP 47
                                          +       * language code.
                                          +       * 
                                          + * + * string language_code = 3; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The language code of the consumer alert message. This is a BCP 47
                                          +       * language code.
                                          +       * 
                                          + * + * string language_code = 3; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.ConsumerAlert) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.ConsumerAlert) + private static final com.google.maps.places.v1.Place.ConsumerAlert DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.ConsumerAlert(); + } + + public static com.google.maps.places.v1.Place.ConsumerAlert getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConsumerAlert 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.maps.places.v1.Place.ConsumerAlert getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int bitField1_; public static final int NAME_FIELD_NUMBER = 1; @@ -26868,6 +30174,62 @@ public com.google.maps.places.v1.Place.NeighborhoodSummary getNeighborhoodSummar : neighborhoodSummary_; } + public static final int CONSUMER_ALERT_FIELD_NUMBER = 92; + private com.google.maps.places.v1.Place.ConsumerAlert consumerAlert_; + + /** + * + * + *
                                          +   * The consumer alert message for the place when we detect suspicious review
                                          +   * activity on a business or a business violates our policies.
                                          +   * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + * + * @return Whether the consumerAlert field is set. + */ + @java.lang.Override + public boolean hasConsumerAlert() { + return ((bitField1_ & 0x00008000) != 0); + } + + /** + * + * + *
                                          +   * The consumer alert message for the place when we detect suspicious review
                                          +   * activity on a business or a business violates our policies.
                                          +   * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + * + * @return The consumerAlert. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlert getConsumerAlert() { + return consumerAlert_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.getDefaultInstance() + : consumerAlert_; + } + + /** + * + * + *
                                          +   * The consumer alert message for the place when we detect suspicious review
                                          +   * activity on a business or a business violates our policies.
                                          +   * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ConsumerAlertOrBuilder getConsumerAlertOrBuilder() { + return consumerAlert_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.getDefaultInstance() + : consumerAlert_; + } + public static final int MOVED_PLACE_FIELD_NUMBER = 93; @SuppressWarnings("serial") @@ -26884,7 +30246,7 @@ public com.google.maps.places.v1.Place.NeighborhoodSummary getNeighborhoodSummar * moved. * * - * string moved_place = 93; + * string moved_place = 93 [(.google.api.resource_reference) = { ... } * * @return The movedPlace. */ @@ -26912,7 +30274,7 @@ public java.lang.String getMovedPlace() { * moved. * * - * string moved_place = 93; + * string moved_place = 93 [(.google.api.resource_reference) = { ... } * * @return The bytes for movedPlace. */ @@ -27216,6 +30578,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x00004000) != 0)) { output.writeMessage(91, getNeighborhoodSummary()); } + if (((bitField1_ & 0x00008000) != 0)) { + output.writeMessage(92, getConsumerAlert()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(movedPlace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 93, movedPlace_); } @@ -27463,6 +30828,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(91, getNeighborhoodSummary()); } + if (((bitField1_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(92, getConsumerAlert()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(movedPlace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(93, movedPlace_); } @@ -27699,6 +31067,10 @@ public boolean equals(final java.lang.Object obj) { if (hasNeighborhoodSummary()) { if (!getNeighborhoodSummary().equals(other.getNeighborhoodSummary())) return false; } + if (hasConsumerAlert() != other.hasConsumerAlert()) return false; + if (hasConsumerAlert()) { + if (!getConsumerAlert().equals(other.getConsumerAlert())) return false; + } if (!getMovedPlace().equals(other.getMovedPlace())) return false; if (!getMovedPlaceId().equals(other.getMovedPlaceId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -27968,6 +31340,10 @@ public int hashCode() { hash = (37 * hash) + NEIGHBORHOOD_SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getNeighborhoodSummary().hashCode(); } + if (hasConsumerAlert()) { + hash = (37 * hash) + CONSUMER_ALERT_FIELD_NUMBER; + hash = (53 * hash) + getConsumerAlert().hashCode(); + } hash = (37 * hash) + MOVED_PLACE_FIELD_NUMBER; hash = (53 * hash) + getMovedPlace().hashCode(); hash = (37 * hash) + MOVED_PLACE_ID_FIELD_NUMBER; @@ -28140,6 +31516,7 @@ private void maybeForceBuilderInitialization() { getReviewSummaryFieldBuilder(); getEvChargeAmenitySummaryFieldBuilder(); getNeighborhoodSummaryFieldBuilder(); + getConsumerAlertFieldBuilder(); } } @@ -28352,6 +31729,11 @@ public Builder clear() { neighborhoodSummaryBuilder_.dispose(); neighborhoodSummaryBuilder_ = null; } + consumerAlert_ = null; + if (consumerAlertBuilder_ != null) { + consumerAlertBuilder_.dispose(); + consumerAlertBuilder_ = null; + } movedPlace_ = ""; movedPlaceId_ = ""; return this; @@ -28758,9 +32140,14 @@ private void buildPartial2(com.google.maps.places.v1.Place result) { to_bitField1_ |= 0x00004000; } if (((from_bitField2_ & 0x00000080) != 0)) { - result.movedPlace_ = movedPlace_; + result.consumerAlert_ = + consumerAlertBuilder_ == null ? consumerAlert_ : consumerAlertBuilder_.build(); + to_bitField1_ |= 0x00008000; } if (((from_bitField2_ & 0x00000100) != 0)) { + result.movedPlace_ = movedPlace_; + } + if (((from_bitField2_ & 0x00000200) != 0)) { result.movedPlaceId_ = movedPlaceId_; } result.bitField1_ |= to_bitField1_; @@ -29249,14 +32636,17 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (other.hasNeighborhoodSummary()) { mergeNeighborhoodSummary(other.getNeighborhoodSummary()); } + if (other.hasConsumerAlert()) { + mergeConsumerAlert(other.getConsumerAlert()); + } if (!other.getMovedPlace().isEmpty()) { movedPlace_ = other.movedPlace_; - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000100; onChanged(); } if (!other.getMovedPlaceId().isEmpty()) { movedPlaceId_ = other.movedPlaceId_; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000200; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -29777,16 +33167,22 @@ public Builder mergeFrom( bitField2_ |= 0x00000040; break; } // case 730 + case 738: + { + input.readMessage(getConsumerAlertFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000080; + break; + } // case 738 case 746: { movedPlace_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000100; break; } // case 746 case 754: { movedPlaceId_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000200; break; } // case 754 default: @@ -41464,6 +44860,211 @@ public Builder clearNeighborhoodSummary() { return neighborhoodSummaryBuilder_; } + private com.google.maps.places.v1.Place.ConsumerAlert consumerAlert_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ConsumerAlert, + com.google.maps.places.v1.Place.ConsumerAlert.Builder, + com.google.maps.places.v1.Place.ConsumerAlertOrBuilder> + consumerAlertBuilder_; + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + * + * @return Whether the consumerAlert field is set. + */ + public boolean hasConsumerAlert() { + return ((bitField2_ & 0x00000080) != 0); + } + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + * + * @return The consumerAlert. + */ + public com.google.maps.places.v1.Place.ConsumerAlert getConsumerAlert() { + if (consumerAlertBuilder_ == null) { + return consumerAlert_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.getDefaultInstance() + : consumerAlert_; + } else { + return consumerAlertBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + */ + public Builder setConsumerAlert(com.google.maps.places.v1.Place.ConsumerAlert value) { + if (consumerAlertBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + consumerAlert_ = value; + } else { + consumerAlertBuilder_.setMessage(value); + } + bitField2_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + */ + public Builder setConsumerAlert( + com.google.maps.places.v1.Place.ConsumerAlert.Builder builderForValue) { + if (consumerAlertBuilder_ == null) { + consumerAlert_ = builderForValue.build(); + } else { + consumerAlertBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + */ + public Builder mergeConsumerAlert(com.google.maps.places.v1.Place.ConsumerAlert value) { + if (consumerAlertBuilder_ == null) { + if (((bitField2_ & 0x00000080) != 0) + && consumerAlert_ != null + && consumerAlert_ + != com.google.maps.places.v1.Place.ConsumerAlert.getDefaultInstance()) { + getConsumerAlertBuilder().mergeFrom(value); + } else { + consumerAlert_ = value; + } + } else { + consumerAlertBuilder_.mergeFrom(value); + } + if (consumerAlert_ != null) { + bitField2_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + */ + public Builder clearConsumerAlert() { + bitField2_ = (bitField2_ & ~0x00000080); + consumerAlert_ = null; + if (consumerAlertBuilder_ != null) { + consumerAlertBuilder_.dispose(); + consumerAlertBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + */ + public com.google.maps.places.v1.Place.ConsumerAlert.Builder getConsumerAlertBuilder() { + bitField2_ |= 0x00000080; + onChanged(); + return getConsumerAlertFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + */ + public com.google.maps.places.v1.Place.ConsumerAlertOrBuilder getConsumerAlertOrBuilder() { + if (consumerAlertBuilder_ != null) { + return consumerAlertBuilder_.getMessageOrBuilder(); + } else { + return consumerAlert_ == null + ? com.google.maps.places.v1.Place.ConsumerAlert.getDefaultInstance() + : consumerAlert_; + } + } + + /** + * + * + *
                                          +     * The consumer alert message for the place when we detect suspicious review
                                          +     * activity on a business or a business violates our policies.
                                          +     * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ConsumerAlert, + com.google.maps.places.v1.Place.ConsumerAlert.Builder, + com.google.maps.places.v1.Place.ConsumerAlertOrBuilder> + getConsumerAlertFieldBuilder() { + if (consumerAlertBuilder_ == null) { + consumerAlertBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ConsumerAlert, + com.google.maps.places.v1.Place.ConsumerAlert.Builder, + com.google.maps.places.v1.Place.ConsumerAlertOrBuilder>( + getConsumerAlert(), getParentForChildren(), isClean()); + consumerAlert_ = null; + } + return consumerAlertBuilder_; + } + private java.lang.Object movedPlace_ = ""; /** @@ -41477,7 +45078,7 @@ public Builder clearNeighborhoodSummary() { * moved. * * - * string moved_place = 93; + * string moved_place = 93 [(.google.api.resource_reference) = { ... } * * @return The movedPlace. */ @@ -41504,7 +45105,7 @@ public java.lang.String getMovedPlace() { * moved. * * - * string moved_place = 93; + * string moved_place = 93 [(.google.api.resource_reference) = { ... } * * @return The bytes for movedPlace. */ @@ -41531,7 +45132,7 @@ public com.google.protobuf.ByteString getMovedPlaceBytes() { * moved. * * - * string moved_place = 93; + * string moved_place = 93 [(.google.api.resource_reference) = { ... } * * @param value The movedPlace to set. * @return This builder for chaining. @@ -41541,7 +45142,7 @@ public Builder setMovedPlace(java.lang.String value) { throw new NullPointerException(); } movedPlace_ = value; - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -41557,13 +45158,13 @@ public Builder setMovedPlace(java.lang.String value) { * moved. * * - * string moved_place = 93; + * string moved_place = 93 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearMovedPlace() { movedPlace_ = getDefaultInstance().getMovedPlace(); - bitField2_ = (bitField2_ & ~0x00000080); + bitField2_ = (bitField2_ & ~0x00000100); onChanged(); return this; } @@ -41579,7 +45180,7 @@ public Builder clearMovedPlace() { * moved. * * - * string moved_place = 93; + * string moved_place = 93 [(.google.api.resource_reference) = { ... } * * @param value The bytes for movedPlace to set. * @return This builder for chaining. @@ -41590,7 +45191,7 @@ public Builder setMovedPlaceBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); movedPlace_ = value; - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -41669,7 +45270,7 @@ public Builder setMovedPlaceId(java.lang.String value) { throw new NullPointerException(); } movedPlaceId_ = value; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000200; onChanged(); return this; } @@ -41690,7 +45291,7 @@ public Builder setMovedPlaceId(java.lang.String value) { */ public Builder clearMovedPlaceId() { movedPlaceId_ = getDefaultInstance().getMovedPlaceId(); - bitField2_ = (bitField2_ & ~0x00000100); + bitField2_ = (bitField2_ & ~0x00000200); onChanged(); return this; } @@ -41716,7 +45317,7 @@ public Builder setMovedPlaceIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); movedPlaceId_ = value; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000200; onChanged(); return this; } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java index 7c74e1da1f93..4600f1aa0b2f 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java @@ -2643,6 +2643,46 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening */ com.google.maps.places.v1.Place.NeighborhoodSummaryOrBuilder getNeighborhoodSummaryOrBuilder(); + /** + * + * + *
                                          +   * The consumer alert message for the place when we detect suspicious review
                                          +   * activity on a business or a business violates our policies.
                                          +   * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + * + * @return Whether the consumerAlert field is set. + */ + boolean hasConsumerAlert(); + + /** + * + * + *
                                          +   * The consumer alert message for the place when we detect suspicious review
                                          +   * activity on a business or a business violates our policies.
                                          +   * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + * + * @return The consumerAlert. + */ + com.google.maps.places.v1.Place.ConsumerAlert getConsumerAlert(); + + /** + * + * + *
                                          +   * The consumer alert message for the place when we detect suspicious review
                                          +   * activity on a business or a business violates our policies.
                                          +   * 
                                          + * + * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; + */ + com.google.maps.places.v1.Place.ConsumerAlertOrBuilder getConsumerAlertOrBuilder(); + /** * * @@ -2654,7 +2694,7 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * moved. * * - * string moved_place = 93; + * string moved_place = 93 [(.google.api.resource_reference) = { ... } * * @return The movedPlace. */ @@ -2671,7 +2711,7 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * moved. * * - * string moved_place = 93; + * string moved_place = 93 [(.google.api.resource_reference) = { ... } * * @return The bytes for movedPlace. */ diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java index d77eba823bb0..4e2ae2c364fa 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java @@ -96,6 +96,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_maps_places_v1_Place_NeighborhoodSummary_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_maps_places_v1_Place_NeighborhoodSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_Place_ConsumerAlert_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_Place_ConsumerAlert_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -116,7 +128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.proto\032\"google/maps/places/v1/review.pr" + "oto\032\037google/protobuf/timestamp.proto\032\026go" + "ogle/type/date.proto\032\032google/type/datetime.proto\032\030google/type/latlng.proto\032" - + " google/type/localized_text.proto\032 google/type/postal_address.proto\"\2557\n" + + " google/type/localized_text.proto\032 google/type/postal_address.proto\"\264:\n" + "\005Place\022\014\n" + "\004name\030\001 \001(\t\022\n\n" + "\002id\030\002 \001(\t\0220\n" @@ -203,8 +215,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ev_charge_amenity_summary\030Y" + " \001(\01323.google.maps.places.v1.Place.EvChargeAmenitySummary\022N\n" + "\024neighborhood_summary\030[" - + " \001(\01320.google.maps.places.v1.Place.NeighborhoodSummary\022\023\n" - + "\013moved_place\030] \001(\t\022\026\n" + + " \001(\01320.google.maps.places.v1.Place.NeighborhoodSummary\022B\n" + + "\016consumer_alert\030\\ \001(\0132*.google.maps.places.v1.Place.ConsumerAlert\0225\n" + + "\013moved_place\030] \001(\tB \372A\035\n" + + "\033places.googleapis.com/Place\022\026\n" + "\016moved_place_id\030^ \001(\t\032_\n" + "\020AddressComponent\022\021\n" + "\tlong_text\030\001 \001(\t\022\022\n\n" @@ -216,20 +230,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "compound_code\030\002 \001(\t\032\375\007\n" + "\014OpeningHours\022\025\n" + "\010open_now\030\001 \001(\010H\000\210\001\001\022A\n" - + "\007periods\030\002 \003(\01320.go" - + "ogle.maps.places.v1.Place.OpeningHours.Period\022\034\n" + + "\007periods\030\002" + + " \003(\01320.google.maps.places.v1.Place.OpeningHours.Period\022\034\n" + "\024weekday_descriptions\030\003 \003(\t\022Z\n" - + "\024secondary_hours_type\030\004 \001(\0162<.google.maps." - + "places.v1.Place.OpeningHours.SecondaryHoursType\022J\n" - + "\014special_days\030\005 \003(\01324.google.m" - + "aps.places.v1.Place.OpeningHours.SpecialDay\0222\n" + + "\024secondary_hours_type\030\004" + + " \001(\0162<.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType\022J\n" + + "\014special_days\030\005" + + " \003(\01324.google.maps.places.v1.Place.OpeningHours.SpecialDay\0222\n" + "\016next_open_time\030\006 \001(\0132\032.google.protobuf.Timestamp\0223\n" + "\017next_close_time\030\007 \001(\0132\032.google.protobuf.Timestamp\032\251\002\n" + "\006Period\022D\n" - + "\004open\030\001" - + " \001(\01326.google.maps.places.v1.Place.OpeningHours.Period.Point\022E\n" - + "\005close\030\002" - + " \001(\01326.google.maps.places.v1.Place.OpeningHours.Period.Point\032\221\001\n" + + "\004open\030\001 \001(\01326.go" + + "ogle.maps.places.v1.Place.OpeningHours.Period.Point\022E\n" + + "\005close\030\002 \001(\01326.google.maps" + + ".places.v1.Place.OpeningHours.Period.Point\032\221\001\n" + "\005Point\022\020\n" + "\003day\030\001 \001(\005H\000\210\001\001\022\021\n" + "\004hour\030\002 \001(\005H\001\210\001\001\022\023\n" @@ -243,7 +257,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004date\030\001 \001(\0132\021.google.type.Date\"\373\001\n" + "\022SecondaryHoursType\022$\n" + " SECONDARY_HOURS_TYPE_UNSPECIFIED\020\000\022\021\n\r" - + "DRIVE_THROUGH\020\001\022\016\n\n" + + "DRIVE_THROUGH\020\001\022\016\n" + + "\n" + "HAPPY_HOUR\020\002\022\014\n" + "\010DELIVERY\020\003\022\013\n" + "\007TAKEOUT\020\004\022\013\n" @@ -323,7 +338,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010overview\030\001 \001(\0132#.google.maps.places.v1.ContentBlock\0228\n" + "\013description\030\002 \001(\0132#.google.maps.places.v1.ContentBlock\022\030\n" + "\020flag_content_uri\030\003 \001(\t\0223\n" - + "\017disclosure_text\030\004 \001(\0132\032.google.type.LocalizedText\"r\n" + + "\017disclosure_text\030\004 \001(\0132\032.google.type.LocalizedText\032\236\002\n\r" + + "ConsumerAlert\022\020\n" + + "\010overview\030\001 \001(\t\022C\n" + + "\007details\030\002 \001(\0132" + + "2.google.maps.places.v1.Place.ConsumerAlert.Details\022\025\n\r" + + "language_code\030\003 \001(\t\032\236\001\n" + + "\007Details\022\r\n" + + "\005title\030\001 \001(\t\022\023\n" + + "\013description\030\002 \001(\t\022K\n\n" + + "about_link\030\003 \001(\01327.google.maps.pla" + + "ces.v1.Place.ConsumerAlert.Details.Link\032\"\n" + + "\004Link\022\r\n" + + "\005title\030\001 \001(\t\022\013\n" + + "\003uri\030\002 \001(\t\"r\n" + "\016BusinessStatus\022\037\n" + "\033BUSINESS_STATUS_UNSPECIFIED\020\000\022\017\n" + "\013OPERATIONAL\020\001\022\026\n" @@ -337,7 +365,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_dine_inB\022\n" + "\020_curbside_pickupB\r\n" + "\013_reservableB\023\n" - + "\021_serves_breakfastB\017\n\r" + + "\021_serves_breakfastB\017\n" + + "\r" + "_serves_lunchB\020\n" + "\016_serves_dinnerB\016\n" + "\014_serves_beerB\016\n" @@ -365,9 +394,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PRICE_LEVEL_EXPENSIVE\020\004\022\036\n" + "\032PRICE_LEVEL_VERY_EXPENSIVE\020\005B\233\001\n" + "\031com.google.maps.places.v1B\n" - + "PlaceProtoP\001Z7cloud.google.com/go/maps" - + "/places/apiv1/placespb;placespb\242\002\006GMPSV1" - + "\252\002\025Google.Maps.Places.V1\312\002\025Google\\Maps\\Places\\V1b\006proto3" + + "PlaceProtoP\001Z7cloud.google.com/go/maps/places/a" + + "piv1/placespb;placespb\242\002\006GMPSV1\252\002\025Google" + + ".Maps.Places.V1\312\002\025Google\\Maps\\Places\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -466,6 +495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReviewSummary", "EvChargeAmenitySummary", "NeighborhoodSummary", + "ConsumerAlert", "MovedPlace", "MovedPlaceId", }); @@ -614,6 +644,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Overview", "Description", "FlagContentUri", "DisclosureText", }); + internal_static_google_maps_places_v1_Place_ConsumerAlert_descriptor = + internal_static_google_maps_places_v1_Place_descriptor.getNestedTypes().get(13); + internal_static_google_maps_places_v1_Place_ConsumerAlert_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_Place_ConsumerAlert_descriptor, + new java.lang.String[] { + "Overview", "Details", "LanguageCode", + }); + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_descriptor = + internal_static_google_maps_places_v1_Place_ConsumerAlert_descriptor + .getNestedTypes() + .get(0); + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_descriptor, + new java.lang.String[] { + "Title", "Description", "AboutLink", + }); + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_descriptor = + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_descriptor + .getNestedTypes() + .get(0); + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_Place_ConsumerAlert_Details_Link_descriptor, + new java.lang.String[] { + "Title", "Uri", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ResourceProto.resource); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Review.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Review.java index 0d042c5695a2..7f6412950e86 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Review.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Review.java @@ -508,6 +508,58 @@ public com.google.protobuf.ByteString getGoogleMapsUriBytes() { } } + public static final int VISIT_DATE_FIELD_NUMBER = 17; + private com.google.type.Date visitDate_; + + /** + * + * + *
                                          +   * The date when the author visited the place. This is truncated to the year
                                          +   * and month of the visit.
                                          +   * 
                                          + * + * .google.type.Date visit_date = 17; + * + * @return Whether the visitDate field is set. + */ + @java.lang.Override + public boolean hasVisitDate() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                          +   * The date when the author visited the place. This is truncated to the year
                                          +   * and month of the visit.
                                          +   * 
                                          + * + * .google.type.Date visit_date = 17; + * + * @return The visitDate. + */ + @java.lang.Override + public com.google.type.Date getVisitDate() { + return visitDate_ == null ? com.google.type.Date.getDefaultInstance() : visitDate_; + } + + /** + * + * + *
                                          +   * The date when the author visited the place. This is truncated to the year
                                          +   * and month of the visit.
                                          +   * 
                                          + * + * .google.type.Date visit_date = 17; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getVisitDateOrBuilder() { + return visitDate_ == null ? com.google.type.Date.getDefaultInstance() : visitDate_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -550,6 +602,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, googleMapsUri_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(17, getVisitDate()); + } getUnknownFields().writeTo(output); } @@ -588,6 +643,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, googleMapsUri_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getVisitDate()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -626,6 +684,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getFlagContentUri().equals(other.getFlagContentUri())) return false; if (!getGoogleMapsUri().equals(other.getGoogleMapsUri())) return false; + if (hasVisitDate() != other.hasVisitDate()) return false; + if (hasVisitDate()) { + if (!getVisitDate().equals(other.getVisitDate())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -665,6 +727,10 @@ public int hashCode() { hash = (53 * hash) + getFlagContentUri().hashCode(); hash = (37 * hash) + GOOGLE_MAPS_URI_FIELD_NUMBER; hash = (53 * hash) + getGoogleMapsUri().hashCode(); + if (hasVisitDate()) { + hash = (37 * hash) + VISIT_DATE_FIELD_NUMBER; + hash = (53 * hash) + getVisitDate().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -809,6 +875,7 @@ private void maybeForceBuilderInitialization() { getOriginalTextFieldBuilder(); getAuthorAttributionFieldBuilder(); getPublishTimeFieldBuilder(); + getVisitDateFieldBuilder(); } } @@ -841,6 +908,11 @@ public Builder clear() { } flagContentUri_ = ""; googleMapsUri_ = ""; + visitDate_ = null; + if (visitDateBuilder_ != null) { + visitDateBuilder_.dispose(); + visitDateBuilder_ = null; + } return this; } @@ -913,6 +985,10 @@ private void buildPartial0(com.google.maps.places.v1.Review result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.googleMapsUri_ = googleMapsUri_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.visitDate_ = visitDateBuilder_ == null ? visitDate_ : visitDateBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -996,6 +1072,9 @@ public Builder mergeFrom(com.google.maps.places.v1.Review other) { bitField0_ |= 0x00000100; onChanged(); } + if (other.hasVisitDate()) { + mergeVisitDate(other.getVisitDate()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1077,6 +1156,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 130 + case 138: + { + input.readMessage(getVisitDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2385,6 +2470,199 @@ public Builder setGoogleMapsUriBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.type.Date visitDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + visitDateBuilder_; + + /** + * + * + *
                                          +     * The date when the author visited the place. This is truncated to the year
                                          +     * and month of the visit.
                                          +     * 
                                          + * + * .google.type.Date visit_date = 17; + * + * @return Whether the visitDate field is set. + */ + public boolean hasVisitDate() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                                          +     * The date when the author visited the place. This is truncated to the year
                                          +     * and month of the visit.
                                          +     * 
                                          + * + * .google.type.Date visit_date = 17; + * + * @return The visitDate. + */ + public com.google.type.Date getVisitDate() { + if (visitDateBuilder_ == null) { + return visitDate_ == null ? com.google.type.Date.getDefaultInstance() : visitDate_; + } else { + return visitDateBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * The date when the author visited the place. This is truncated to the year
                                          +     * and month of the visit.
                                          +     * 
                                          + * + * .google.type.Date visit_date = 17; + */ + public Builder setVisitDate(com.google.type.Date value) { + if (visitDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + visitDate_ = value; + } else { + visitDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The date when the author visited the place. This is truncated to the year
                                          +     * and month of the visit.
                                          +     * 
                                          + * + * .google.type.Date visit_date = 17; + */ + public Builder setVisitDate(com.google.type.Date.Builder builderForValue) { + if (visitDateBuilder_ == null) { + visitDate_ = builderForValue.build(); + } else { + visitDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The date when the author visited the place. This is truncated to the year
                                          +     * and month of the visit.
                                          +     * 
                                          + * + * .google.type.Date visit_date = 17; + */ + public Builder mergeVisitDate(com.google.type.Date value) { + if (visitDateBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && visitDate_ != null + && visitDate_ != com.google.type.Date.getDefaultInstance()) { + getVisitDateBuilder().mergeFrom(value); + } else { + visitDate_ = value; + } + } else { + visitDateBuilder_.mergeFrom(value); + } + if (visitDate_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * The date when the author visited the place. This is truncated to the year
                                          +     * and month of the visit.
                                          +     * 
                                          + * + * .google.type.Date visit_date = 17; + */ + public Builder clearVisitDate() { + bitField0_ = (bitField0_ & ~0x00000200); + visitDate_ = null; + if (visitDateBuilder_ != null) { + visitDateBuilder_.dispose(); + visitDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * The date when the author visited the place. This is truncated to the year
                                          +     * and month of the visit.
                                          +     * 
                                          + * + * .google.type.Date visit_date = 17; + */ + public com.google.type.Date.Builder getVisitDateBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getVisitDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * The date when the author visited the place. This is truncated to the year
                                          +     * and month of the visit.
                                          +     * 
                                          + * + * .google.type.Date visit_date = 17; + */ + public com.google.type.DateOrBuilder getVisitDateOrBuilder() { + if (visitDateBuilder_ != null) { + return visitDateBuilder_.getMessageOrBuilder(); + } else { + return visitDate_ == null ? com.google.type.Date.getDefaultInstance() : visitDate_; + } + } + + /** + * + * + *
                                          +     * The date when the author visited the place. This is truncated to the year
                                          +     * and month of the visit.
                                          +     * 
                                          + * + * .google.type.Date visit_date = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getVisitDateFieldBuilder() { + if (visitDateBuilder_ == null) { + visitDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getVisitDate(), getParentForChildren(), isClean()); + visitDate_ = null; + } + return visitDateBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewOrBuilder.java index c9d68a0b3ce0..6ec5cb2a82f4 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewOrBuilder.java @@ -294,4 +294,44 @@ public interface ReviewOrBuilder * @return The bytes for googleMapsUri. */ com.google.protobuf.ByteString getGoogleMapsUriBytes(); + + /** + * + * + *
                                          +   * The date when the author visited the place. This is truncated to the year
                                          +   * and month of the visit.
                                          +   * 
                                          + * + * .google.type.Date visit_date = 17; + * + * @return Whether the visitDate field is set. + */ + boolean hasVisitDate(); + + /** + * + * + *
                                          +   * The date when the author visited the place. This is truncated to the year
                                          +   * and month of the visit.
                                          +   * 
                                          + * + * .google.type.Date visit_date = 17; + * + * @return The visitDate. + */ + com.google.type.Date getVisitDate(); + + /** + * + * + *
                                          +   * The date when the author visited the place. This is truncated to the year
                                          +   * and month of the visit.
                                          +   * 
                                          + * + * .google.type.Date visit_date = 17; + */ + com.google.type.DateOrBuilder getVisitDateOrBuilder(); } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewProto.java index fe505b925b63..9997bc18ce18 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewProto.java @@ -46,7 +46,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\032\'google/maps/places/v1/attributio" + "n.proto\032\037google/protobuf/timestamp.proto" + "\032\026google/type/date.proto\032 google/type/lo" - + "calized_text.proto\"\256\003\n\006Review\022\014\n\004name\030\001 " + + "calized_text.proto\"\325\003\n\006Review\022\014\n\004name\030\001 " + "\001(\t\022)\n!relative_publish_time_description" + "\030\002 \001(\t\022(\n\004text\030\t \001(\0132\032.google.type.Local" + "izedText\0221\n\roriginal_text\030\014 \001(\0132\032.google" @@ -55,13 +55,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "aces.v1.AuthorAttribution\0220\n\014publish_tim" + "e\030\016 \001(\0132\032.google.protobuf.Timestamp\022\030\n\020f" + "lag_content_uri\030\017 \001(\t\022\027\n\017google_maps_uri" - + "\030\020 \001(\t:S\352AP\n\034places.googleapis.com/Revie" - + "w\022\037places/{place}/reviews/{review}*\007revi" - + "ews2\006reviewB\234\001\n\031com.google.maps.places.v" - + "1B\013ReviewProtoP\001Z7cloud.google.com/go/ma" - + "ps/places/apiv1/placespb;placespb\242\002\006GMPS" - + "V1\252\002\025Google.Maps.Places.V1\312\002\025Google\\Maps" - + "\\Places\\V1b\006proto3" + + "\030\020 \001(\t\022%\n\nvisit_date\030\021 \001(\0132\021.google.type" + + ".Date:S\352AP\n\034places.googleapis.com/Review" + + "\022\037places/{place}/reviews/{review}*\007revie" + + "ws2\006reviewB\234\001\n\031com.google.maps.places.v1" + + "B\013ReviewProtoP\001Z7cloud.google.com/go/map" + + "s/places/apiv1/placespb;placespb\242\002\006GMPSV" + + "1\252\002\025Google.Maps.Places.V1\312\002\025Google\\Maps\\" + + "Places\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -88,6 +89,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PublishTime", "FlagContentUri", "GoogleMapsUri", + "VisitDate", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto index 1786e441fb8a..4bf04c6da97e 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto @@ -408,6 +408,43 @@ message Place { google.type.LocalizedText disclosure_text = 4; } + // The consumer alert message for the place when we detect suspicious review + // activity on a business or a business violates our policies. + message ConsumerAlert { + // The details of the consumer alert message. + message Details { + // The link to show together with the description to provide more + // information. + message Link { + // The title to show for the link. + string title = 1; + + // The uri of the link. + string uri = 2; + } + + // The title to show together with the description. + string title = 1; + + // The description of the consumer alert message. + string description = 2; + + // The link to show together with the description to provide more + // information. + Link about_link = 3; + } + + // The overview of the consumer alert message. + string overview = 1; + + // The details of the consumer alert message. + Details details = 2; + + // The language code of the consumer alert message. This is a BCP 47 + // language code. + string language_code = 3; + } + // This Place's resource name, in `places/{place_id}` format. Can be used to // look up the Place. string name = 1; @@ -697,12 +734,18 @@ message Place { // A summary of points of interest near the place. NeighborhoodSummary neighborhood_summary = 91; + // The consumer alert message for the place when we detect suspicious review + // activity on a business or a business violates our policies. + ConsumerAlert consumer_alert = 92; + // If this Place is permanently closed and has moved to a new Place, this // field contains the new Place's resource name, in `places/{place_id}` // format. If this Place moved multiple times, this field will represent the // first moved place. This field will not be populated if this Place has not // moved. - string moved_place = 93; + string moved_place = 93 [ + (google.api.resource_reference) = { type: "places.googleapis.com/Place" } + ]; // If this Place is permanently closed and has moved to a new Place, this // field contains the new Place's place ID. If this Place moved multiple diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto index db6ca67648cb..be57f447c27d 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto @@ -68,4 +68,8 @@ message Review { // A link to show the review on Google Maps. string google_maps_uri = 16; + + // The date when the author visited the place. This is truncated to the year + // and month of the visit. + google.type.Date visit_date = 17; } diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index 84037d0bc48b..a8b513032989 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routeoptimization - 0.35.0 + 0.36.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.35.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.35.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.36.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.36.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationGrpc.java b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationGrpc.java index 17810b1989cf..a58b5d6e09b0 100644 --- a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationGrpc.java +++ b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationGrpc.java @@ -38,9 +38,6 @@ * * at least one of latitude and longitude must be non-zero. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/routeoptimization/v1/route_optimization_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RouteOptimizationGrpc { @@ -692,8 +689,9 @@ protected RouteOptimizationBlockingV2Stub build( * */ public com.google.maps.routeoptimization.v1.OptimizeToursResponse optimizeTours( - com.google.maps.routeoptimization.v1.OptimizeToursRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.routeoptimization.v1.OptimizeToursRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getOptimizeToursMethod(), getCallOptions(), request); } @@ -722,8 +720,9 @@ public com.google.maps.routeoptimization.v1.OptimizeToursResponse optimizeTours( * */ public com.google.longrunning.Operation batchOptimizeTours( - com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchOptimizeToursMethod(), getCallOptions(), request); } @@ -752,8 +751,9 @@ public com.google.longrunning.Operation batchOptimizeTours( * */ public com.google.longrunning.Operation optimizeToursLongRunning( - com.google.maps.routeoptimization.v1.OptimizeToursRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.routeoptimization.v1.OptimizeToursRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getOptimizeToursLongRunningMethod(), getCallOptions(), request); } @@ -787,8 +787,9 @@ public com.google.longrunning.Operation optimizeToursLongRunning( * */ public com.google.longrunning.Operation optimizeToursUri( - com.google.maps.routeoptimization.v1.OptimizeToursUriRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.routeoptimization.v1.OptimizeToursUriRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getOptimizeToursUriMethod(), getCallOptions(), request); } } diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index c957b7d9be3c..544dde40dad5 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routing - 1.62.0 + 1.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.62.0' +implementation 'com.google.maps:google-maps-routing:1.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.62.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.63.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.63.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java b/java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java index 5591a21006d8..fd431ec04184 100644 --- a/java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java +++ b/java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java @@ -24,9 +24,6 @@ * The Routes API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/routing/v2/routes_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RoutesGrpc { @@ -456,8 +453,8 @@ protected RoutesBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.maps.routing.v2.ComputeRoutesResponse computeRoutes( - com.google.maps.routing.v2.ComputeRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.routing.v2.ComputeRoutesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeRoutesMethod(), getCallOptions(), request); } diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 91bc0a728afa..38fdbfa76bc4 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-solar - 0.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.36.0' +implementation 'com.google.maps:google-maps-solar:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.36.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.37.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-solar/grpc-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/SolarGrpc.java b/java-maps-solar/grpc-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/SolarGrpc.java index d74852a7f1d6..6eb18351a4f0 100644 --- a/java-maps-solar/grpc-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/SolarGrpc.java +++ b/java-maps-solar/grpc-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/SolarGrpc.java @@ -24,9 +24,6 @@ * Service definition for the Solar API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/maps/solar/v1/solar_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SolarGrpc { @@ -382,8 +379,9 @@ protected SolarBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions * */ public com.google.maps.solar.v1.BuildingInsights findClosestBuildingInsights( - com.google.maps.solar.v1.FindClosestBuildingInsightsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.solar.v1.FindClosestBuildingInsightsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFindClosestBuildingInsightsMethod(), getCallOptions(), request); } @@ -397,8 +395,8 @@ public com.google.maps.solar.v1.BuildingInsights findClosestBuildingInsights( * */ public com.google.maps.solar.v1.DataLayers getDataLayers( - com.google.maps.solar.v1.GetDataLayersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.maps.solar.v1.GetDataLayersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataLayersMethod(), getCallOptions(), request); } @@ -409,8 +407,9 @@ public com.google.maps.solar.v1.DataLayers getDataLayers( * Returns an image by its ID. * */ - public com.google.api.HttpBody getGeoTiff(com.google.maps.solar.v1.GetGeoTiffRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.api.HttpBody getGeoTiff(com.google.maps.solar.v1.GetGeoTiffRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGeoTiffMethod(), getCallOptions(), request); } } diff --git a/java-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index c5bd4e11faa8..9b238c09e20c 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.ads-marketingplatform admin - 0.26.0 + 0.27.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.26.0' +implementation 'com.google.ads-marketingplatform:admin:0.27.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.26.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.27.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.27.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClient.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClient.java index b88adfc3b552..425b2e7577ae 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClient.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClient.java @@ -85,6 +85,36 @@ * * * + *

                                          ListOrganizations + *

                                          Returns a list of organizations that the user has access to. + * + *

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

                                          + *
                                            + *
                                          • listOrganizations(ListOrganizationsRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • listOrganizationsPagedCallable() + *

                                          • listOrganizationsCallable() + *

                                          + * + * + * + *

                                          FindSalesPartnerManagedClients + *

                                          Returns a list of clients managed by the sales partner organization. + *

                                          User needs to be an OrgAdmin/BillingAdmin on the sales partner organization in order to view the end clients. + * + *

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

                                          + *
                                            + *
                                          • findSalesPartnerManagedClients(FindSalesPartnerManagedClientsRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • findSalesPartnerManagedClientsCallable() + *

                                          + * + * + * *

                                          ListAnalyticsAccountLinks *

                                          Lists the Google Analytics accounts link to the specified Google Marketing Platform organization. * @@ -162,6 +192,26 @@ * * * + * + *

                                          ReportPropertyUsage + *

                                          Get the usage and billing data for properties within the organization for the specified month. + *

                                          Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order to view the billing and usage data. + *

                                          Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner client org in order to view the usage data only. + * + *

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

                                          + *
                                            + *
                                          • reportPropertyUsage(ReportPropertyUsageRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • reportPropertyUsage(String organization) + *

                                          + *

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

                                          + *
                                            + *
                                          • reportPropertyUsageCallable() + *

                                          + * + * * * *

                                          See the individual methods for example code. @@ -388,6 +438,184 @@ public final UnaryCallable getOrganization return stub.getOrganizationCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of organizations that the user has access to. + * + *

                                          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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient =
                                          +   *     MarketingplatformAdminServiceClient.create()) {
                                          +   *   ListOrganizationsRequest request =
                                          +   *       ListOrganizationsRequest.newBuilder()
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   for (Organization element :
                                          +   *       marketingplatformAdminServiceClient.listOrganizations(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 ListOrganizationsPagedResponse listOrganizations(ListOrganizationsRequest request) { + return listOrganizationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of organizations that the user has access to. + * + *

                                          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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient =
                                          +   *     MarketingplatformAdminServiceClient.create()) {
                                          +   *   ListOrganizationsRequest request =
                                          +   *       ListOrganizationsRequest.newBuilder()
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       marketingplatformAdminServiceClient.listOrganizationsPagedCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   for (Organization element : future.get().iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + listOrganizationsPagedCallable() { + return stub.listOrganizationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of organizations that the user has access to. + * + *

                                          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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient =
                                          +   *     MarketingplatformAdminServiceClient.create()) {
                                          +   *   ListOrganizationsRequest request =
                                          +   *       ListOrganizationsRequest.newBuilder()
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   while (true) {
                                          +   *     ListOrganizationsResponse response =
                                          +   *         marketingplatformAdminServiceClient.listOrganizationsCallable().call(request);
                                          +   *     for (Organization element : response.getOrganizationsList()) {
                                          +   *       // doThingsWith(element);
                                          +   *     }
                                          +   *     String nextPageToken = response.getNextPageToken();
                                          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                          +   *     } else {
                                          +   *       break;
                                          +   *     }
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + listOrganizationsCallable() { + return stub.listOrganizationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of clients managed by the sales partner organization. + * + *

                                          User needs to be an OrgAdmin/BillingAdmin on the sales partner organization in order to view + * the end clients. + * + *

                                          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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient =
                                          +   *     MarketingplatformAdminServiceClient.create()) {
                                          +   *   FindSalesPartnerManagedClientsRequest request =
                                          +   *       FindSalesPartnerManagedClientsRequest.newBuilder()
                                          +   *           .setOrganization(OrganizationName.of("[ORGANIZATION]").toString())
                                          +   *           .setIsActive(true)
                                          +   *           .build();
                                          +   *   FindSalesPartnerManagedClientsResponse response =
                                          +   *       marketingplatformAdminServiceClient.findSalesPartnerManagedClients(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 FindSalesPartnerManagedClientsResponse findSalesPartnerManagedClients( + FindSalesPartnerManagedClientsRequest request) { + return findSalesPartnerManagedClientsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of clients managed by the sales partner organization. + * + *

                                          User needs to be an OrgAdmin/BillingAdmin on the sales partner organization in order to view + * the end clients. + * + *

                                          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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient =
                                          +   *     MarketingplatformAdminServiceClient.create()) {
                                          +   *   FindSalesPartnerManagedClientsRequest request =
                                          +   *       FindSalesPartnerManagedClientsRequest.newBuilder()
                                          +   *           .setOrganization(OrganizationName.of("[ORGANIZATION]").toString())
                                          +   *           .setIsActive(true)
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       marketingplatformAdminServiceClient
                                          +   *           .findSalesPartnerManagedClientsCallable()
                                          +   *           .futureCall(request);
                                          +   *   // Do something.
                                          +   *   FindSalesPartnerManagedClientsResponse response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsCallable() { + return stub.findSalesPartnerManagedClientsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the Google Analytics accounts link to the specified Google Marketing Platform @@ -969,6 +1197,119 @@ public final SetPropertyServiceLevelResponse setPropertyServiceLevel( return stub.setPropertyServiceLevelCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the usage and billing data for properties within the organization for the specified month. + * + *

                                          Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order + * to view the billing and usage data. + * + *

                                          Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner + * org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner + * client org in order to view the usage data only. + * + *

                                          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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient =
                                          +   *     MarketingplatformAdminServiceClient.create()) {
                                          +   *   String organization = "organization1178922291";
                                          +   *   ReportPropertyUsageResponse response =
                                          +   *       marketingplatformAdminServiceClient.reportPropertyUsage(organization);
                                          +   * }
                                          +   * }
                                          + * + * @param organization Required. Specifies the organization whose property usage will be listed. + *

                                          Format: organizations/{org_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReportPropertyUsageResponse reportPropertyUsage(String organization) { + ReportPropertyUsageRequest request = + ReportPropertyUsageRequest.newBuilder().setOrganization(organization).build(); + return reportPropertyUsage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the usage and billing data for properties within the organization for the specified month. + * + *

                                          Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order + * to view the billing and usage data. + * + *

                                          Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner + * org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner + * client org in order to view the usage data only. + * + *

                                          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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient =
                                          +   *     MarketingplatformAdminServiceClient.create()) {
                                          +   *   ReportPropertyUsageRequest request =
                                          +   *       ReportPropertyUsageRequest.newBuilder()
                                          +   *           .setOrganization("organization1178922291")
                                          +   *           .setMonth("month104080000")
                                          +   *           .build();
                                          +   *   ReportPropertyUsageResponse response =
                                          +   *       marketingplatformAdminServiceClient.reportPropertyUsage(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 ReportPropertyUsageResponse reportPropertyUsage(ReportPropertyUsageRequest request) { + return reportPropertyUsageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the usage and billing data for properties within the organization for the specified month. + * + *

                                          Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order + * to view the billing and usage data. + * + *

                                          Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner + * org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner + * client org in order to view the usage data only. + * + *

                                          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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient =
                                          +   *     MarketingplatformAdminServiceClient.create()) {
                                          +   *   ReportPropertyUsageRequest request =
                                          +   *       ReportPropertyUsageRequest.newBuilder()
                                          +   *           .setOrganization("organization1178922291")
                                          +   *           .setMonth("month104080000")
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       marketingplatformAdminServiceClient.reportPropertyUsageCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   ReportPropertyUsageResponse response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + reportPropertyUsageCallable() { + return stub.reportPropertyUsageCallable(); + } + @Override public final void close() { stub.close(); @@ -999,6 +1340,86 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return stub.awaitTermination(duration, unit); } + public static class ListOrganizationsPagedResponse + extends AbstractPagedListResponse< + ListOrganizationsRequest, + ListOrganizationsResponse, + Organization, + ListOrganizationsPage, + ListOrganizationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOrganizationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListOrganizationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListOrganizationsPagedResponse(ListOrganizationsPage page) { + super(page, ListOrganizationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListOrganizationsPage + extends AbstractPage< + ListOrganizationsRequest, + ListOrganizationsResponse, + Organization, + ListOrganizationsPage> { + + private ListOrganizationsPage( + PageContext context, + ListOrganizationsResponse response) { + super(context, response); + } + + private static ListOrganizationsPage createEmptyPage() { + return new ListOrganizationsPage(null, null); + } + + @Override + protected ListOrganizationsPage createPage( + PageContext context, + ListOrganizationsResponse response) { + return new ListOrganizationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListOrganizationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListOrganizationsRequest, + ListOrganizationsResponse, + Organization, + ListOrganizationsPage, + ListOrganizationsFixedSizeCollection> { + + private ListOrganizationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListOrganizationsFixedSizeCollection createEmptyCollection() { + return new ListOrganizationsFixedSizeCollection(null, 0); + } + + @Override + protected ListOrganizationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOrganizationsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListAnalyticsAccountLinksPagedResponse extends AbstractPagedListResponse< ListAnalyticsAccountLinksRequest, diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceSettings.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceSettings.java index 7957ca9bfb5d..32d5459b9e28 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceSettings.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceSettings.java @@ -17,6 +17,7 @@ package com.google.ads.marketingplatform.admin.v1alpha; import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListAnalyticsAccountLinksPagedResponse; +import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListOrganizationsPagedResponse; import com.google.ads.marketingplatform.admin.v1alpha.stub.MarketingplatformAdminServiceStubSettings; import com.google.api.core.ApiFunction; @@ -99,6 +100,22 @@ public UnaryCallSettings getOrganizationSe .getOrganizationSettings(); } + /** Returns the object with the settings used for calls to listOrganizations. */ + public PagedCallSettings< + ListOrganizationsRequest, ListOrganizationsResponse, ListOrganizationsPagedResponse> + listOrganizationsSettings() { + return ((MarketingplatformAdminServiceStubSettings) getStubSettings()) + .listOrganizationsSettings(); + } + + /** Returns the object with the settings used for calls to findSalesPartnerManagedClients. */ + public UnaryCallSettings< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsSettings() { + return ((MarketingplatformAdminServiceStubSettings) getStubSettings()) + .findSalesPartnerManagedClientsSettings(); + } + /** Returns the object with the settings used for calls to listAnalyticsAccountLinks. */ public PagedCallSettings< ListAnalyticsAccountLinksRequest, @@ -130,6 +147,13 @@ public UnaryCallSettings getOrganizationSe .setPropertyServiceLevelSettings(); } + /** Returns the object with the settings used for calls to reportPropertyUsage. */ + public UnaryCallSettings + reportPropertyUsageSettings() { + return ((MarketingplatformAdminServiceStubSettings) getStubSettings()) + .reportPropertyUsageSettings(); + } + public static final MarketingplatformAdminServiceSettings create( MarketingplatformAdminServiceStubSettings stub) throws IOException { return new MarketingplatformAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -249,6 +273,20 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().getOrganizationSettings(); } + /** Returns the builder for the settings used for calls to listOrganizations. */ + public PagedCallSettings.Builder< + ListOrganizationsRequest, ListOrganizationsResponse, ListOrganizationsPagedResponse> + listOrganizationsSettings() { + return getStubSettingsBuilder().listOrganizationsSettings(); + } + + /** Returns the builder for the settings used for calls to findSalesPartnerManagedClients. */ + public UnaryCallSettings.Builder< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsSettings() { + return getStubSettingsBuilder().findSalesPartnerManagedClientsSettings(); + } + /** Returns the builder for the settings used for calls to listAnalyticsAccountLinks. */ public PagedCallSettings.Builder< ListAnalyticsAccountLinksRequest, @@ -277,6 +315,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().setPropertyServiceLevelSettings(); } + /** Returns the builder for the settings used for calls to reportPropertyUsage. */ + public UnaryCallSettings.Builder + reportPropertyUsageSettings() { + return getStubSettingsBuilder().reportPropertyUsageSettings(); + } + @Override public MarketingplatformAdminServiceSettings build() throws IOException { return new MarketingplatformAdminServiceSettings(this); diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/gapic_metadata.json b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/gapic_metadata.json index aaf8f7227621..711fb9cc6655 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/gapic_metadata.json +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/gapic_metadata.json @@ -16,12 +16,21 @@ "DeleteAnalyticsAccountLink": { "methods": ["deleteAnalyticsAccountLink", "deleteAnalyticsAccountLink", "deleteAnalyticsAccountLink", "deleteAnalyticsAccountLinkCallable"] }, + "FindSalesPartnerManagedClients": { + "methods": ["findSalesPartnerManagedClients", "findSalesPartnerManagedClientsCallable"] + }, "GetOrganization": { "methods": ["getOrganization", "getOrganization", "getOrganization", "getOrganizationCallable"] }, "ListAnalyticsAccountLinks": { "methods": ["listAnalyticsAccountLinks", "listAnalyticsAccountLinks", "listAnalyticsAccountLinks", "listAnalyticsAccountLinksPagedCallable", "listAnalyticsAccountLinksCallable"] }, + "ListOrganizations": { + "methods": ["listOrganizations", "listOrganizationsPagedCallable", "listOrganizationsCallable"] + }, + "ReportPropertyUsage": { + "methods": ["reportPropertyUsage", "reportPropertyUsage", "reportPropertyUsageCallable"] + }, "SetPropertyServiceLevel": { "methods": ["setPropertyServiceLevel", "setPropertyServiceLevel", "setPropertyServiceLevelCallable"] } diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/GrpcMarketingplatformAdminServiceStub.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/GrpcMarketingplatformAdminServiceStub.java index 3e0c9cccccbd..261491b555d0 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/GrpcMarketingplatformAdminServiceStub.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/GrpcMarketingplatformAdminServiceStub.java @@ -17,14 +17,21 @@ package com.google.ads.marketingplatform.admin.v1alpha.stub; import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListAnalyticsAccountLinksPagedResponse; +import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListOrganizationsPagedResponse; import com.google.ads.marketingplatform.admin.v1alpha.AnalyticsAccountLink; import com.google.ads.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest; import com.google.ads.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse; import com.google.ads.marketingplatform.admin.v1alpha.GetOrganizationRequest; import com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest; import com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse; +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse; import com.google.ads.marketingplatform.admin.v1alpha.Organization; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse; import com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest; import com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse; import com.google.api.core.BetaApi; @@ -64,6 +71,36 @@ public class GrpcMarketingplatformAdminServiceStub extends MarketingplatformAdmi .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listOrganizationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/ListOrganizations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListOrganizationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListOrganizationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/FindSalesPartnerManagedClients") + .setRequestMarshaller( + ProtoUtils.marshaller(FindSalesPartnerManagedClientsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + FindSalesPartnerManagedClientsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor< ListAnalyticsAccountLinksRequest, ListAnalyticsAccountLinksResponse> listAnalyticsAccountLinksMethodDescriptor = @@ -119,7 +156,27 @@ public class GrpcMarketingplatformAdminServiceStub extends MarketingplatformAdmi .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + reportPropertyUsageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/ReportPropertyUsage") + .setRequestMarshaller( + ProtoUtils.marshaller(ReportPropertyUsageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ReportPropertyUsageResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable getOrganizationCallable; + private final UnaryCallable + listOrganizationsCallable; + private final UnaryCallable + listOrganizationsPagedCallable; + private final UnaryCallable< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsCallable; private final UnaryCallable listAnalyticsAccountLinksCallable; private final UnaryCallable< @@ -131,6 +188,8 @@ public class GrpcMarketingplatformAdminServiceStub extends MarketingplatformAdmi deleteAnalyticsAccountLinkCallable; private final UnaryCallable setPropertyServiceLevelCallable; + private final UnaryCallable + reportPropertyUsageCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -189,6 +248,24 @@ protected GrpcMarketingplatformAdminServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + listOrganizationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOrganizationsMethodDescriptor) + .build(); + GrpcCallSettings + findSalesPartnerManagedClientsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(findSalesPartnerManagedClientsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("organization", String.valueOf(request.getOrganization())); + return builder.build(); + }) + .build(); GrpcCallSettings listAnalyticsAccountLinksTransportSettings = GrpcCallSettings @@ -237,10 +314,36 @@ protected GrpcMarketingplatformAdminServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + reportPropertyUsageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(reportPropertyUsageMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("organization", String.valueOf(request.getOrganization())); + return builder.build(); + }) + .build(); this.getOrganizationCallable = callableFactory.createUnaryCallable( getOrganizationTransportSettings, settings.getOrganizationSettings(), clientContext); + this.listOrganizationsCallable = + callableFactory.createUnaryCallable( + listOrganizationsTransportSettings, + settings.listOrganizationsSettings(), + clientContext); + this.listOrganizationsPagedCallable = + callableFactory.createPagedCallable( + listOrganizationsTransportSettings, + settings.listOrganizationsSettings(), + clientContext); + this.findSalesPartnerManagedClientsCallable = + callableFactory.createUnaryCallable( + findSalesPartnerManagedClientsTransportSettings, + settings.findSalesPartnerManagedClientsSettings(), + clientContext); this.listAnalyticsAccountLinksCallable = callableFactory.createUnaryCallable( listAnalyticsAccountLinksTransportSettings, @@ -266,6 +369,11 @@ protected GrpcMarketingplatformAdminServiceStub( setPropertyServiceLevelTransportSettings, settings.setPropertyServiceLevelSettings(), clientContext); + this.reportPropertyUsageCallable = + callableFactory.createUnaryCallable( + reportPropertyUsageTransportSettings, + settings.reportPropertyUsageSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -280,6 +388,25 @@ public UnaryCallable getOrganizationCallab return getOrganizationCallable; } + @Override + public UnaryCallable + listOrganizationsCallable() { + return listOrganizationsCallable; + } + + @Override + public UnaryCallable + listOrganizationsPagedCallable() { + return listOrganizationsPagedCallable; + } + + @Override + public UnaryCallable< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsCallable() { + return findSalesPartnerManagedClientsCallable; + } + @Override public UnaryCallable listAnalyticsAccountLinksCallable() { @@ -310,6 +437,12 @@ public UnaryCallable getOrganizationCallab return setPropertyServiceLevelCallable; } + @Override + public UnaryCallable + reportPropertyUsageCallable() { + return reportPropertyUsageCallable; + } + @Override public final void close() { try { diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/HttpJsonMarketingplatformAdminServiceStub.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/HttpJsonMarketingplatformAdminServiceStub.java index 05d8e1b56b33..643d7f413997 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/HttpJsonMarketingplatformAdminServiceStub.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/HttpJsonMarketingplatformAdminServiceStub.java @@ -17,14 +17,21 @@ package com.google.ads.marketingplatform.admin.v1alpha.stub; import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListAnalyticsAccountLinksPagedResponse; +import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListOrganizationsPagedResponse; import com.google.ads.marketingplatform.admin.v1alpha.AnalyticsAccountLink; import com.google.ads.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest; import com.google.ads.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse; import com.google.ads.marketingplatform.admin.v1alpha.GetOrganizationRequest; import com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest; import com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse; +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse; import com.google.ads.marketingplatform.admin.v1alpha.Organization; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse; import com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest; import com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse; import com.google.api.core.BetaApi; @@ -96,6 +103,86 @@ public class HttpJsonMarketingplatformAdminServiceStub extends Marketingplatform .build()) .build(); + private static final ApiMethodDescriptor + listOrganizationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/ListOrganizations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/organizations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOrganizationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/FindSalesPartnerManagedClients") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{organization=organizations/*}:findSalesPartnerManagedClients", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "organization", request.getOrganization()); + 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().clearOrganization().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + FindSalesPartnerManagedClientsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< ListAnalyticsAccountLinksRequest, ListAnalyticsAccountLinksResponse> listAnalyticsAccountLinksMethodDescriptor = @@ -255,7 +342,54 @@ public class HttpJsonMarketingplatformAdminServiceStub extends Marketingplatform .build()) .build(); + private static final ApiMethodDescriptor + reportPropertyUsageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/ReportPropertyUsage") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{organization=organizations/*}:reportPropertyUsage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "organization", request.getOrganization()); + 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().clearOrganization().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ReportPropertyUsageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getOrganizationCallable; + private final UnaryCallable + listOrganizationsCallable; + private final UnaryCallable + listOrganizationsPagedCallable; + private final UnaryCallable< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsCallable; private final UnaryCallable listAnalyticsAccountLinksCallable; private final UnaryCallable< @@ -267,6 +401,8 @@ public class HttpJsonMarketingplatformAdminServiceStub extends Marketingplatform deleteAnalyticsAccountLinkCallable; private final UnaryCallable setPropertyServiceLevelCallable; + private final UnaryCallable + reportPropertyUsageCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -324,6 +460,27 @@ protected HttpJsonMarketingplatformAdminServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listOrganizationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listOrganizationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(findSalesPartnerManagedClientsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("organization", String.valueOf(request.getOrganization())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listAnalyticsAccountLinksTransportSettings = HttpJsonCallSettings @@ -377,10 +534,38 @@ protected HttpJsonMarketingplatformAdminServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + reportPropertyUsageTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(reportPropertyUsageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("organization", String.valueOf(request.getOrganization())); + return builder.build(); + }) + .build(); this.getOrganizationCallable = callableFactory.createUnaryCallable( getOrganizationTransportSettings, settings.getOrganizationSettings(), clientContext); + this.listOrganizationsCallable = + callableFactory.createUnaryCallable( + listOrganizationsTransportSettings, + settings.listOrganizationsSettings(), + clientContext); + this.listOrganizationsPagedCallable = + callableFactory.createPagedCallable( + listOrganizationsTransportSettings, + settings.listOrganizationsSettings(), + clientContext); + this.findSalesPartnerManagedClientsCallable = + callableFactory.createUnaryCallable( + findSalesPartnerManagedClientsTransportSettings, + settings.findSalesPartnerManagedClientsSettings(), + clientContext); this.listAnalyticsAccountLinksCallable = callableFactory.createUnaryCallable( listAnalyticsAccountLinksTransportSettings, @@ -406,6 +591,11 @@ protected HttpJsonMarketingplatformAdminServiceStub( setPropertyServiceLevelTransportSettings, settings.setPropertyServiceLevelSettings(), clientContext); + this.reportPropertyUsageCallable = + callableFactory.createUnaryCallable( + reportPropertyUsageTransportSettings, + settings.reportPropertyUsageSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -415,10 +605,13 @@ protected HttpJsonMarketingplatformAdminServiceStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(getOrganizationMethodDescriptor); + methodDescriptors.add(listOrganizationsMethodDescriptor); + methodDescriptors.add(findSalesPartnerManagedClientsMethodDescriptor); methodDescriptors.add(listAnalyticsAccountLinksMethodDescriptor); methodDescriptors.add(createAnalyticsAccountLinkMethodDescriptor); methodDescriptors.add(deleteAnalyticsAccountLinkMethodDescriptor); methodDescriptors.add(setPropertyServiceLevelMethodDescriptor); + methodDescriptors.add(reportPropertyUsageMethodDescriptor); return methodDescriptors; } @@ -427,6 +620,25 @@ public UnaryCallable getOrganizationCallab return getOrganizationCallable; } + @Override + public UnaryCallable + listOrganizationsCallable() { + return listOrganizationsCallable; + } + + @Override + public UnaryCallable + listOrganizationsPagedCallable() { + return listOrganizationsPagedCallable; + } + + @Override + public UnaryCallable< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsCallable() { + return findSalesPartnerManagedClientsCallable; + } + @Override public UnaryCallable listAnalyticsAccountLinksCallable() { @@ -457,6 +669,12 @@ public UnaryCallable getOrganizationCallab return setPropertyServiceLevelCallable; } + @Override + public UnaryCallable + reportPropertyUsageCallable() { + return reportPropertyUsageCallable; + } + @Override public final void close() { try { diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStub.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStub.java index 5f7ae5fe58e5..33acfdb5225b 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStub.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStub.java @@ -17,14 +17,21 @@ package com.google.ads.marketingplatform.admin.v1alpha.stub; import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListAnalyticsAccountLinksPagedResponse; +import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListOrganizationsPagedResponse; import com.google.ads.marketingplatform.admin.v1alpha.AnalyticsAccountLink; import com.google.ads.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest; import com.google.ads.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse; import com.google.ads.marketingplatform.admin.v1alpha.GetOrganizationRequest; import com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest; import com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse; +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse; import com.google.ads.marketingplatform.admin.v1alpha.Organization; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse; import com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest; import com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse; import com.google.api.core.BetaApi; @@ -47,6 +54,23 @@ public UnaryCallable getOrganizationCallab throw new UnsupportedOperationException("Not implemented: getOrganizationCallable()"); } + public UnaryCallable + listOrganizationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listOrganizationsPagedCallable()"); + } + + public UnaryCallable + listOrganizationsCallable() { + throw new UnsupportedOperationException("Not implemented: listOrganizationsCallable()"); + } + + public UnaryCallable< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsCallable() { + throw new UnsupportedOperationException( + "Not implemented: findSalesPartnerManagedClientsCallable()"); + } + public UnaryCallable listAnalyticsAccountLinksPagedCallable() { throw new UnsupportedOperationException( @@ -75,6 +99,11 @@ public UnaryCallable getOrganizationCallab throw new UnsupportedOperationException("Not implemented: setPropertyServiceLevelCallable()"); } + public UnaryCallable + reportPropertyUsageCallable() { + throw new UnsupportedOperationException("Not implemented: reportPropertyUsageCallable()"); + } + @Override public abstract void close(); } diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStubSettings.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStubSettings.java index 3530a566c463..b3f2d43c515a 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStubSettings.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStubSettings.java @@ -17,14 +17,21 @@ package com.google.ads.marketingplatform.admin.v1alpha.stub; import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListAnalyticsAccountLinksPagedResponse; +import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListOrganizationsPagedResponse; import com.google.ads.marketingplatform.admin.v1alpha.AnalyticsAccountLink; import com.google.ads.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest; import com.google.ads.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse; import com.google.ads.marketingplatform.admin.v1alpha.GetOrganizationRequest; import com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest; import com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse; +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse; import com.google.ads.marketingplatform.admin.v1alpha.Organization; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse; import com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest; import com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse; import com.google.api.core.ApiFunction; @@ -127,6 +134,12 @@ public class MarketingplatformAdminServiceStubSettings .build(); private final UnaryCallSettings getOrganizationSettings; + private final PagedCallSettings< + ListOrganizationsRequest, ListOrganizationsResponse, ListOrganizationsPagedResponse> + listOrganizationsSettings; + private final UnaryCallSettings< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsSettings; private final PagedCallSettings< ListAnalyticsAccountLinksRequest, ListAnalyticsAccountLinksResponse, @@ -138,6 +151,46 @@ public class MarketingplatformAdminServiceStubSettings deleteAnalyticsAccountLinkSettings; private final UnaryCallSettings setPropertyServiceLevelSettings; + private final UnaryCallSettings + reportPropertyUsageSettings; + + private static final PagedListDescriptor< + ListOrganizationsRequest, ListOrganizationsResponse, Organization> + LIST_ORGANIZATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListOrganizationsRequest, ListOrganizationsResponse, Organization>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListOrganizationsRequest injectToken( + ListOrganizationsRequest payload, String token) { + return ListOrganizationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListOrganizationsRequest injectPageSize( + ListOrganizationsRequest payload, int pageSize) { + return ListOrganizationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListOrganizationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListOrganizationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListOrganizationsResponse payload) { + return payload.getOrganizationsList(); + } + }; private static final PagedListDescriptor< ListAnalyticsAccountLinksRequest, ListAnalyticsAccountLinksResponse, AnalyticsAccountLink> @@ -184,6 +237,27 @@ public Iterable extractResources( } }; + private static final PagedListResponseFactory< + ListOrganizationsRequest, ListOrganizationsResponse, ListOrganizationsPagedResponse> + LIST_ORGANIZATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOrganizationsRequest, + ListOrganizationsResponse, + ListOrganizationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListOrganizationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ORGANIZATIONS_PAGE_STR_DESC, request, context); + return ListOrganizationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListAnalyticsAccountLinksRequest, ListAnalyticsAccountLinksResponse, @@ -217,6 +291,20 @@ public UnaryCallSettings getOrganizationSe return getOrganizationSettings; } + /** Returns the object with the settings used for calls to listOrganizations. */ + public PagedCallSettings< + ListOrganizationsRequest, ListOrganizationsResponse, ListOrganizationsPagedResponse> + listOrganizationsSettings() { + return listOrganizationsSettings; + } + + /** Returns the object with the settings used for calls to findSalesPartnerManagedClients. */ + public UnaryCallSettings< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsSettings() { + return findSalesPartnerManagedClientsSettings; + } + /** Returns the object with the settings used for calls to listAnalyticsAccountLinks. */ public PagedCallSettings< ListAnalyticsAccountLinksRequest, @@ -244,6 +332,12 @@ public UnaryCallSettings getOrganizationSe return setPropertyServiceLevelSettings; } + /** Returns the object with the settings used for calls to reportPropertyUsage. */ + public UnaryCallSettings + reportPropertyUsageSettings() { + return reportPropertyUsageSettings; + } + public MarketingplatformAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -358,12 +452,16 @@ protected MarketingplatformAdminServiceStubSettings(Builder settingsBuilder) thr super(settingsBuilder); getOrganizationSettings = settingsBuilder.getOrganizationSettings().build(); + listOrganizationsSettings = settingsBuilder.listOrganizationsSettings().build(); + findSalesPartnerManagedClientsSettings = + settingsBuilder.findSalesPartnerManagedClientsSettings().build(); listAnalyticsAccountLinksSettings = settingsBuilder.listAnalyticsAccountLinksSettings().build(); createAnalyticsAccountLinkSettings = settingsBuilder.createAnalyticsAccountLinkSettings().build(); deleteAnalyticsAccountLinkSettings = settingsBuilder.deleteAnalyticsAccountLinkSettings().build(); setPropertyServiceLevelSettings = settingsBuilder.setPropertyServiceLevelSettings().build(); + reportPropertyUsageSettings = settingsBuilder.reportPropertyUsageSettings().build(); } /** Builder for MarketingplatformAdminServiceStubSettings. */ @@ -372,6 +470,12 @@ public static class Builder private final ImmutableList> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder getOrganizationSettings; + private final PagedCallSettings.Builder< + ListOrganizationsRequest, ListOrganizationsResponse, ListOrganizationsPagedResponse> + listOrganizationsSettings; + private final UnaryCallSettings.Builder< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsSettings; private final PagedCallSettings.Builder< ListAnalyticsAccountLinksRequest, ListAnalyticsAccountLinksResponse, @@ -384,6 +488,8 @@ public static class Builder private final UnaryCallSettings.Builder< SetPropertyServiceLevelRequest, SetPropertyServiceLevelResponse> setPropertyServiceLevelSettings; + private final UnaryCallSettings.Builder + reportPropertyUsageSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -425,19 +531,25 @@ protected Builder(ClientContext clientContext) { super(clientContext); getOrganizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listOrganizationsSettings = PagedCallSettings.newBuilder(LIST_ORGANIZATIONS_PAGE_STR_FACT); + findSalesPartnerManagedClientsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAnalyticsAccountLinksSettings = PagedCallSettings.newBuilder(LIST_ANALYTICS_ACCOUNT_LINKS_PAGE_STR_FACT); createAnalyticsAccountLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteAnalyticsAccountLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setPropertyServiceLevelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + reportPropertyUsageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( getOrganizationSettings, + listOrganizationsSettings, + findSalesPartnerManagedClientsSettings, listAnalyticsAccountLinksSettings, createAnalyticsAccountLinkSettings, deleteAnalyticsAccountLinkSettings, - setPropertyServiceLevelSettings); + setPropertyServiceLevelSettings, + reportPropertyUsageSettings); initDefaults(this); } @@ -445,18 +557,25 @@ protected Builder(MarketingplatformAdminServiceStubSettings settings) { super(settings); getOrganizationSettings = settings.getOrganizationSettings.toBuilder(); + listOrganizationsSettings = settings.listOrganizationsSettings.toBuilder(); + findSalesPartnerManagedClientsSettings = + settings.findSalesPartnerManagedClientsSettings.toBuilder(); listAnalyticsAccountLinksSettings = settings.listAnalyticsAccountLinksSettings.toBuilder(); createAnalyticsAccountLinkSettings = settings.createAnalyticsAccountLinkSettings.toBuilder(); deleteAnalyticsAccountLinkSettings = settings.deleteAnalyticsAccountLinkSettings.toBuilder(); setPropertyServiceLevelSettings = settings.setPropertyServiceLevelSettings.toBuilder(); + reportPropertyUsageSettings = settings.reportPropertyUsageSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( getOrganizationSettings, + listOrganizationsSettings, + findSalesPartnerManagedClientsSettings, listAnalyticsAccountLinksSettings, createAnalyticsAccountLinkSettings, deleteAnalyticsAccountLinkSettings, - setPropertyServiceLevelSettings); + setPropertyServiceLevelSettings, + reportPropertyUsageSettings); } private static Builder createDefault() { @@ -489,6 +608,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listOrganizationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .findSalesPartnerManagedClientsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listAnalyticsAccountLinksSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -509,6 +638,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .reportPropertyUsageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -533,6 +667,20 @@ public Builder applyToAllUnaryMethods( return getOrganizationSettings; } + /** Returns the builder for the settings used for calls to listOrganizations. */ + public PagedCallSettings.Builder< + ListOrganizationsRequest, ListOrganizationsResponse, ListOrganizationsPagedResponse> + listOrganizationsSettings() { + return listOrganizationsSettings; + } + + /** Returns the builder for the settings used for calls to findSalesPartnerManagedClients. */ + public UnaryCallSettings.Builder< + FindSalesPartnerManagedClientsRequest, FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClientsSettings() { + return findSalesPartnerManagedClientsSettings; + } + /** Returns the builder for the settings used for calls to listAnalyticsAccountLinks. */ public PagedCallSettings.Builder< ListAnalyticsAccountLinksRequest, @@ -561,6 +709,12 @@ public Builder applyToAllUnaryMethods( return setPropertyServiceLevelSettings; } + /** Returns the builder for the settings used for calls to reportPropertyUsage. */ + public UnaryCallSettings.Builder + reportPropertyUsageSettings() { + return reportPropertyUsageSettings; + } + @Override public MarketingplatformAdminServiceStubSettings build() throws IOException { return new MarketingplatformAdminServiceStubSettings(this); diff --git a/java-marketingplatformadminapi/admin/src/main/resources/META-INF/native-image/com.google.ads.marketingplatform.admin.v1alpha/reflect-config.json b/java-marketingplatformadminapi/admin/src/main/resources/META-INF/native-image/com.google.ads.marketingplatform.admin.v1alpha/reflect-config.json index d0633e8639bd..fe937ef06862 100644 --- a/java-marketingplatformadminapi/admin/src/main/resources/META-INF/native-image/com.google.ads.marketingplatform.admin.v1alpha/reflect-config.json +++ b/java-marketingplatformadminapi/admin/src/main/resources/META-INF/native-image/com.google.ads.marketingplatform.admin.v1alpha/reflect-config.json @@ -17,6 +17,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel", "queryAllDeclaredConstructors": true, @@ -62,6 +71,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse$ClientData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse$ClientData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.marketingplatform.admin.v1alpha.GetOrganizationRequest", "queryAllDeclaredConstructors": true, @@ -125,6 +188,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.marketingplatform.admin.v1alpha.Organization", "queryAllDeclaredConstructors": true, @@ -143,6 +242,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse$BillInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse$BillInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse$PropertyUsage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse$PropertyUsage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest", "queryAllDeclaredConstructors": true, @@ -1357,5 +1528,41 @@ "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true + }, + { + "name": "com.google.type.Date", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Date$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Money", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Money$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true } ] \ No newline at end of file diff --git a/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClientHttpJsonTest.java b/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClientHttpJsonTest.java index bf49dfb928d7..6a287483fce3 100644 --- a/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClientHttpJsonTest.java +++ b/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClientHttpJsonTest.java @@ -17,6 +17,7 @@ package com.google.ads.marketingplatform.admin.v1alpha; import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListAnalyticsAccountLinksPagedResponse; +import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListOrganizationsPagedResponse; import com.google.ads.marketingplatform.admin.v1alpha.stub.HttpJsonMarketingplatformAdminServiceStub; import com.google.api.gax.core.NoCredentialsProvider; @@ -31,6 +32,7 @@ import com.google.common.collect.Lists; import com.google.protobuf.Empty; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; @@ -166,6 +168,117 @@ public void getOrganizationExceptionTest2() throws Exception { } } + @Test + public void listOrganizationsTest() throws Exception { + Organization responsesElement = Organization.newBuilder().build(); + ListOrganizationsResponse expectedResponse = + ListOrganizationsResponse.newBuilder() + .setNextPageToken("") + .addAllOrganizations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListOrganizationsRequest request = + ListOrganizationsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListOrganizationsPagedResponse pagedListResponse = client.listOrganizations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrganizationsList().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 listOrganizationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListOrganizationsRequest request = + ListOrganizationsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listOrganizations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void findSalesPartnerManagedClientsTest() throws Exception { + FindSalesPartnerManagedClientsResponse expectedResponse = + FindSalesPartnerManagedClientsResponse.newBuilder() + .addAllClientData(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + FindSalesPartnerManagedClientsRequest request = + FindSalesPartnerManagedClientsRequest.newBuilder() + .setOrganization(OrganizationName.of("[ORGANIZATION]").toString()) + .setIsActive(true) + .build(); + + FindSalesPartnerManagedClientsResponse actualResponse = + client.findSalesPartnerManagedClients(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 findSalesPartnerManagedClientsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindSalesPartnerManagedClientsRequest request = + FindSalesPartnerManagedClientsRequest.newBuilder() + .setOrganization(OrganizationName.of("[ORGANIZATION]").toString()) + .setIsActive(true) + .build(); + client.findSalesPartnerManagedClients(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listAnalyticsAccountLinksTest() throws Exception { AnalyticsAccountLink responsesElement = AnalyticsAccountLink.newBuilder().build(); @@ -499,4 +612,49 @@ public void setPropertyServiceLevelExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void reportPropertyUsageTest() throws Exception { + ReportPropertyUsageResponse expectedResponse = + ReportPropertyUsageResponse.newBuilder() + .addAllPropertyUsages(new ArrayList()) + .setBillInfo(ReportPropertyUsageResponse.BillInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String organization = "organizations/organization-2552"; + + ReportPropertyUsageResponse actualResponse = client.reportPropertyUsage(organization); + 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 reportPropertyUsageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String organization = "organizations/organization-2552"; + client.reportPropertyUsage(organization); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClientTest.java b/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClientTest.java index 939905b1aeee..48c071d7bde0 100644 --- a/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClientTest.java +++ b/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClientTest.java @@ -17,6 +17,7 @@ package com.google.ads.marketingplatform.admin.v1alpha; import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListAnalyticsAccountLinksPagedResponse; +import static com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient.ListOrganizationsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -30,6 +31,7 @@ import com.google.protobuf.Empty; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.UUID; @@ -158,6 +160,108 @@ public void getOrganizationExceptionTest2() throws Exception { } } + @Test + public void listOrganizationsTest() throws Exception { + Organization responsesElement = Organization.newBuilder().build(); + ListOrganizationsResponse expectedResponse = + ListOrganizationsResponse.newBuilder() + .setNextPageToken("") + .addAllOrganizations(Arrays.asList(responsesElement)) + .build(); + mockMarketingplatformAdminService.addResponse(expectedResponse); + + ListOrganizationsRequest request = + ListOrganizationsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListOrganizationsPagedResponse pagedListResponse = client.listOrganizations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrganizationsList().get(0), resources.get(0)); + + List actualRequests = mockMarketingplatformAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOrganizationsRequest actualRequest = ((ListOrganizationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOrganizationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMarketingplatformAdminService.addException(exception); + + try { + ListOrganizationsRequest request = + ListOrganizationsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listOrganizations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void findSalesPartnerManagedClientsTest() throws Exception { + FindSalesPartnerManagedClientsResponse expectedResponse = + FindSalesPartnerManagedClientsResponse.newBuilder() + .addAllClientData(new ArrayList()) + .build(); + mockMarketingplatformAdminService.addResponse(expectedResponse); + + FindSalesPartnerManagedClientsRequest request = + FindSalesPartnerManagedClientsRequest.newBuilder() + .setOrganization(OrganizationName.of("[ORGANIZATION]").toString()) + .setIsActive(true) + .build(); + + FindSalesPartnerManagedClientsResponse actualResponse = + client.findSalesPartnerManagedClients(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMarketingplatformAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FindSalesPartnerManagedClientsRequest actualRequest = + ((FindSalesPartnerManagedClientsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getOrganization(), actualRequest.getOrganization()); + Assert.assertEquals(request.getIsActive(), actualRequest.getIsActive()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void findSalesPartnerManagedClientsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMarketingplatformAdminService.addException(exception); + + try { + FindSalesPartnerManagedClientsRequest request = + FindSalesPartnerManagedClientsRequest.newBuilder() + .setOrganization(OrganizationName.of("[ORGANIZATION]").toString()) + .setIsActive(true) + .build(); + client.findSalesPartnerManagedClients(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listAnalyticsAccountLinksTest() throws Exception { AnalyticsAccountLink responsesElement = AnalyticsAccountLink.newBuilder().build(); @@ -455,4 +559,43 @@ public void setPropertyServiceLevelExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void reportPropertyUsageTest() throws Exception { + ReportPropertyUsageResponse expectedResponse = + ReportPropertyUsageResponse.newBuilder() + .addAllPropertyUsages(new ArrayList()) + .setBillInfo(ReportPropertyUsageResponse.BillInfo.newBuilder().build()) + .build(); + mockMarketingplatformAdminService.addResponse(expectedResponse); + + String organization = "organization1178922291"; + + ReportPropertyUsageResponse actualResponse = client.reportPropertyUsage(organization); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMarketingplatformAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReportPropertyUsageRequest actualRequest = ((ReportPropertyUsageRequest) actualRequests.get(0)); + + Assert.assertEquals(organization, actualRequest.getOrganization()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void reportPropertyUsageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMarketingplatformAdminService.addException(exception); + + try { + String organization = "organization1178922291"; + client.reportPropertyUsage(organization); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MockMarketingplatformAdminServiceImpl.java b/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MockMarketingplatformAdminServiceImpl.java index 62108686caa9..da5b0782c5d1 100644 --- a/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MockMarketingplatformAdminServiceImpl.java +++ b/java-marketingplatformadminapi/admin/src/test/java/com/google/ads/marketingplatform/admin/v1alpha/MockMarketingplatformAdminServiceImpl.java @@ -80,6 +80,51 @@ public void getOrganization( } } + @Override + public void listOrganizations( + ListOrganizationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOrganizationsResponse) { + requests.add(request); + responseObserver.onNext(((ListOrganizationsResponse) 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 ListOrganizations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListOrganizationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void findSalesPartnerManagedClients( + FindSalesPartnerManagedClientsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FindSalesPartnerManagedClientsResponse) { + requests.add(request); + responseObserver.onNext(((FindSalesPartnerManagedClientsResponse) 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 FindSalesPartnerManagedClients," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FindSalesPartnerManagedClientsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listAnalyticsAccountLinks( ListAnalyticsAccountLinksRequest request, @@ -170,4 +215,26 @@ public void setPropertyServiceLevel( Exception.class.getName()))); } } + + @Override + public void reportPropertyUsage( + ReportPropertyUsageRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReportPropertyUsageResponse) { + requests.add(request); + responseObserver.onNext(((ReportPropertyUsageResponse) 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 ReportPropertyUsage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReportPropertyUsageResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-marketingplatformadminapi/grpc-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceGrpc.java b/java-marketingplatformadminapi/grpc-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceGrpc.java index 826666a34f4b..3f8ede18c656 100644 --- a/java-marketingplatformadminapi/grpc-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceGrpc.java +++ b/java-marketingplatformadminapi/grpc-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceGrpc.java @@ -24,9 +24,6 @@ * Service Interface for the Google Marketing Platform Admin API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MarketingplatformAdminServiceGrpc { @@ -86,6 +83,116 @@ private MarketingplatformAdminServiceGrpc() {} return getGetOrganizationMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest, + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse> + getListOrganizationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrganizations", + requestType = com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest.class, + responseType = com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest, + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse> + getListOrganizationsMethod() { + io.grpc.MethodDescriptor< + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest, + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse> + getListOrganizationsMethod; + if ((getListOrganizationsMethod = MarketingplatformAdminServiceGrpc.getListOrganizationsMethod) + == null) { + synchronized (MarketingplatformAdminServiceGrpc.class) { + if ((getListOrganizationsMethod = + MarketingplatformAdminServiceGrpc.getListOrganizationsMethod) + == null) { + MarketingplatformAdminServiceGrpc.getListOrganizationsMethod = + getListOrganizationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrganizations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.marketingplatform.admin.v1alpha + .ListOrganizationsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.marketingplatform.admin.v1alpha + .ListOrganizationsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MarketingplatformAdminServiceMethodDescriptorSupplier( + "ListOrganizations")) + .build(); + } + } + } + return getListOrganizationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse> + getFindSalesPartnerManagedClientsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FindSalesPartnerManagedClients", + requestType = + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + .class, + responseType = + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse> + getFindSalesPartnerManagedClientsMethod() { + io.grpc.MethodDescriptor< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse> + getFindSalesPartnerManagedClientsMethod; + if ((getFindSalesPartnerManagedClientsMethod = + MarketingplatformAdminServiceGrpc.getFindSalesPartnerManagedClientsMethod) + == null) { + synchronized (MarketingplatformAdminServiceGrpc.class) { + if ((getFindSalesPartnerManagedClientsMethod = + MarketingplatformAdminServiceGrpc.getFindSalesPartnerManagedClientsMethod) + == null) { + MarketingplatformAdminServiceGrpc.getFindSalesPartnerManagedClientsMethod = + getFindSalesPartnerManagedClientsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FindSalesPartnerManagedClients")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MarketingplatformAdminServiceMethodDescriptorSupplier( + "FindSalesPartnerManagedClients")) + .build(); + } + } + } + return getFindSalesPartnerManagedClientsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest, com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse> @@ -309,6 +416,61 @@ private MarketingplatformAdminServiceGrpc() {} return getSetPropertyServiceLevelMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse> + getReportPropertyUsageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReportPropertyUsage", + requestType = com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest.class, + responseType = + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse> + getReportPropertyUsageMethod() { + io.grpc.MethodDescriptor< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse> + getReportPropertyUsageMethod; + if ((getReportPropertyUsageMethod = + MarketingplatformAdminServiceGrpc.getReportPropertyUsageMethod) + == null) { + synchronized (MarketingplatformAdminServiceGrpc.class) { + if ((getReportPropertyUsageMethod = + MarketingplatformAdminServiceGrpc.getReportPropertyUsageMethod) + == null) { + MarketingplatformAdminServiceGrpc.getReportPropertyUsageMethod = + getReportPropertyUsageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ReportPropertyUsage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.marketingplatform.admin.v1alpha + .ReportPropertyUsageRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.marketingplatform.admin.v1alpha + .ReportPropertyUsageResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MarketingplatformAdminServiceMethodDescriptorSupplier( + "ReportPropertyUsage")) + .build(); + } + } + } + return getReportPropertyUsageMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static MarketingplatformAdminServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -388,6 +550,42 @@ default void getOrganization( getGetOrganizationMethod(), responseObserver); } + /** + * + * + *
                                          +     * Returns a list of organizations that the user has access to.
                                          +     * 
                                          + */ + default void listOrganizations( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest request, + io.grpc.stub.StreamObserver< + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOrganizationsMethod(), responseObserver); + } + + /** + * + * + *
                                          +     * Returns a list of clients managed by the sales partner organization.
                                          +     * User needs to be an OrgAdmin/BillingAdmin on the sales partner organization
                                          +     * in order to view the end clients.
                                          +     * 
                                          + */ + default void findSalesPartnerManagedClients( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + request, + io.grpc.stub.StreamObserver< + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFindSalesPartnerManagedClientsMethod(), responseObserver); + } + /** * * @@ -457,6 +655,29 @@ default void setPropertyServiceLevel( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getSetPropertyServiceLevelMethod(), responseObserver); } + + /** + * + * + *
                                          +     * Get the usage and billing data for properties within the organization for
                                          +     * the specified month.
                                          +     * Per direct client org, user needs to be OrgAdmin/BillingAdmin on the
                                          +     * organization in order to view the billing and usage data.
                                          +     * Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on
                                          +     * the sales partner org in order to view the billing and usage data, or
                                          +     * OrgAdmin/BillingAdmin on the sales partner client org in order to view the
                                          +     * usage data only.
                                          +     * 
                                          + */ + default void reportPropertyUsage( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest request, + io.grpc.stub.StreamObserver< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReportPropertyUsageMethod(), responseObserver); + } } /** @@ -512,6 +733,46 @@ public void getOrganization( responseObserver); } + /** + * + * + *
                                          +     * Returns a list of organizations that the user has access to.
                                          +     * 
                                          + */ + public void listOrganizations( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest request, + io.grpc.stub.StreamObserver< + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrganizationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                          +     * Returns a list of clients managed by the sales partner organization.
                                          +     * User needs to be an OrgAdmin/BillingAdmin on the sales partner organization
                                          +     * in order to view the end clients.
                                          +     * 
                                          + */ + public void findSalesPartnerManagedClients( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + request, + io.grpc.stub.StreamObserver< + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFindSalesPartnerManagedClientsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -589,6 +850,31 @@ public void setPropertyServiceLevel( request, responseObserver); } + + /** + * + * + *
                                          +     * Get the usage and billing data for properties within the organization for
                                          +     * the specified month.
                                          +     * Per direct client org, user needs to be OrgAdmin/BillingAdmin on the
                                          +     * organization in order to view the billing and usage data.
                                          +     * Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on
                                          +     * the sales partner org in order to view the billing and usage data, or
                                          +     * OrgAdmin/BillingAdmin on the sales partner client org in order to view the
                                          +     * usage data only.
                                          +     * 
                                          + */ + public void reportPropertyUsage( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest request, + io.grpc.stub.StreamObserver< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReportPropertyUsageMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -619,11 +905,45 @@ protected MarketingplatformAdminServiceBlockingV2Stub build( * */ public com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganization( - com.google.ads.marketingplatform.admin.v1alpha.GetOrganizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.ads.marketingplatform.admin.v1alpha.GetOrganizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrganizationMethod(), getCallOptions(), request); } + /** + * + * + *
                                          +     * Returns a list of organizations that the user has access to.
                                          +     * 
                                          + */ + public com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse + listOrganizations( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListOrganizationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Returns a list of clients managed by the sales partner organization.
                                          +     * User needs to be an OrgAdmin/BillingAdmin on the sales partner organization
                                          +     * in order to view the end clients.
                                          +     * 
                                          + */ + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + findSalesPartnerManagedClients( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFindSalesPartnerManagedClientsMethod(), getCallOptions(), request); + } + /** * * @@ -634,9 +954,9 @@ public com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganizati */ public com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse listAnalyticsAccountLinks( - com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnalyticsAccountLinksMethod(), getCallOptions(), request); } @@ -654,8 +974,9 @@ public com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganizati public com.google.ads.marketingplatform.admin.v1alpha.AnalyticsAccountLink createAnalyticsAccountLink( com.google.ads.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAnalyticsAccountLinkMethod(), getCallOptions(), request); } @@ -670,8 +991,9 @@ public com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganizati * */ public com.google.protobuf.Empty deleteAnalyticsAccountLink( - com.google.ads.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.ads.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAnalyticsAccountLinkMethod(), getCallOptions(), request); } @@ -684,10 +1006,33 @@ public com.google.protobuf.Empty deleteAnalyticsAccountLink( */ public com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse setPropertyServiceLevel( - com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetPropertyServiceLevelMethod(), getCallOptions(), request); } + + /** + * + * + *
                                          +     * Get the usage and billing data for properties within the organization for
                                          +     * the specified month.
                                          +     * Per direct client org, user needs to be OrgAdmin/BillingAdmin on the
                                          +     * organization in order to view the billing and usage data.
                                          +     * Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on
                                          +     * the sales partner org in order to view the billing and usage data, or
                                          +     * OrgAdmin/BillingAdmin on the sales partner client org in order to view the
                                          +     * usage data only.
                                          +     * 
                                          + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + reportPropertyUsage( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getReportPropertyUsageMethod(), getCallOptions(), request); + } } /** @@ -724,6 +1069,37 @@ public com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganizati getChannel(), getGetOrganizationMethod(), getCallOptions(), request); } + /** + * + * + *
                                          +     * Returns a list of organizations that the user has access to.
                                          +     * 
                                          + */ + public com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse + listOrganizations( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrganizationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                          +     * Returns a list of clients managed by the sales partner organization.
                                          +     * User needs to be an OrgAdmin/BillingAdmin on the sales partner organization
                                          +     * in order to view the end clients.
                                          +     * 
                                          + */ + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + findSalesPartnerManagedClients( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFindSalesPartnerManagedClientsMethod(), getCallOptions(), request); + } + /** * * @@ -788,6 +1164,27 @@ public com.google.protobuf.Empty deleteAnalyticsAccountLink( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSetPropertyServiceLevelMethod(), getCallOptions(), request); } + + /** + * + * + *
                                          +     * Get the usage and billing data for properties within the organization for
                                          +     * the specified month.
                                          +     * Per direct client org, user needs to be OrgAdmin/BillingAdmin on the
                                          +     * organization in order to view the billing and usage data.
                                          +     * Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on
                                          +     * the sales partner org in order to view the billing and usage data, or
                                          +     * OrgAdmin/BillingAdmin on the sales partner client org in order to view the
                                          +     * usage data only.
                                          +     * 
                                          + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + reportPropertyUsage( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReportPropertyUsageMethod(), getCallOptions(), request); + } } /** @@ -826,6 +1223,40 @@ protected MarketingplatformAdminServiceFutureStub build( getChannel().newCall(getGetOrganizationMethod(), getCallOptions()), request); } + /** + * + * + *
                                          +     * Returns a list of organizations that the user has access to.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse> + listOrganizations( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrganizationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                          +     * Returns a list of clients managed by the sales partner organization.
                                          +     * User needs to be an OrgAdmin/BillingAdmin on the sales partner organization
                                          +     * in order to view the end clients.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse> + findSalesPartnerManagedClients( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFindSalesPartnerManagedClientsMethod(), getCallOptions()), + request); + } + /** * * @@ -895,13 +1326,38 @@ protected MarketingplatformAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetPropertyServiceLevelMethod(), getCallOptions()), request); } + + /** + * + * + *
                                          +     * Get the usage and billing data for properties within the organization for
                                          +     * the specified month.
                                          +     * Per direct client org, user needs to be OrgAdmin/BillingAdmin on the
                                          +     * organization in order to view the billing and usage data.
                                          +     * Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on
                                          +     * the sales partner org in order to view the billing and usage data, or
                                          +     * OrgAdmin/BillingAdmin on the sales partner client org in order to view the
                                          +     * usage data only.
                                          +     * 
                                          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse> + reportPropertyUsage( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReportPropertyUsageMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ORGANIZATION = 0; - private static final int METHODID_LIST_ANALYTICS_ACCOUNT_LINKS = 1; - private static final int METHODID_CREATE_ANALYTICS_ACCOUNT_LINK = 2; - private static final int METHODID_DELETE_ANALYTICS_ACCOUNT_LINK = 3; - private static final int METHODID_SET_PROPERTY_SERVICE_LEVEL = 4; + private static final int METHODID_LIST_ORGANIZATIONS = 1; + private static final int METHODID_FIND_SALES_PARTNER_MANAGED_CLIENTS = 2; + private static final int METHODID_LIST_ANALYTICS_ACCOUNT_LINKS = 3; + private static final int METHODID_CREATE_ANALYTICS_ACCOUNT_LINK = 4; + private static final int METHODID_DELETE_ANALYTICS_ACCOUNT_LINK = 5; + private static final int METHODID_SET_PROPERTY_SERVICE_LEVEL = 6; + private static final int METHODID_REPORT_PROPERTY_USAGE = 7; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -927,6 +1383,22 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.ads.marketingplatform.admin.v1alpha.Organization>) responseObserver); break; + case METHODID_LIST_ORGANIZATIONS: + serviceImpl.listOrganizations( + (com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse>) + responseObserver); + break; + case METHODID_FIND_SALES_PARTNER_MANAGED_CLIENTS: + serviceImpl.findSalesPartnerManagedClients( + (com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse>) + responseObserver); + break; case METHODID_LIST_ANALYTICS_ACCOUNT_LINKS: serviceImpl.listAnalyticsAccountLinks( (com.google.ads.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest) @@ -959,6 +1431,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv .SetPropertyServiceLevelResponse>) responseObserver); break; + case METHODID_REPORT_PROPERTY_USAGE: + serviceImpl.reportPropertyUsage( + (com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest) request, + (io.grpc.stub.StreamObserver< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -984,6 +1463,22 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.ads.marketingplatform.admin.v1alpha.GetOrganizationRequest, com.google.ads.marketingplatform.admin.v1alpha.Organization>( service, METHODID_GET_ORGANIZATION))) + .addMethod( + getListOrganizationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest, + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse>( + service, METHODID_LIST_ORGANIZATIONS))) + .addMethod( + getFindSalesPartnerManagedClientsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsRequest, + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse>( + service, METHODID_FIND_SALES_PARTNER_MANAGED_CLIENTS))) .addMethod( getListAnalyticsAccountLinksMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1014,6 +1509,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest, com.google.ads.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse>( service, METHODID_SET_PROPERTY_SERVICE_LEVEL))) + .addMethod( + getReportPropertyUsageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse>( + service, METHODID_REPORT_PROPERTY_USAGE))) .build(); } @@ -1068,10 +1570,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor( new MarketingplatformAdminServiceFileDescriptorSupplier()) .addMethod(getGetOrganizationMethod()) + .addMethod(getListOrganizationsMethod()) + .addMethod(getFindSalesPartnerManagedClientsMethod()) .addMethod(getListAnalyticsAccountLinksMethod()) .addMethod(getCreateAnalyticsAccountLinkMethod()) .addMethod(getDeleteAnalyticsAccountLinkMethod()) .addMethod(getSetPropertyServiceLevelMethod()) + .addMethod(getReportPropertyUsageMethod()) .build(); } } diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsPropertyType.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsPropertyType.java new file mode 100644 index 000000000000..42d4ff3cc8d9 --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsPropertyType.java @@ -0,0 +1,207 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +/** + * + * + *
                                          + * Types of the Google Analytics Property.
                                          + * 
                                          + * + * Protobuf enum {@code google.marketingplatform.admin.v1alpha.AnalyticsPropertyType} + */ +public enum AnalyticsPropertyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                          +   * Unknown or unspecified property type
                                          +   * 
                                          + * + * ANALYTICS_PROPERTY_TYPE_UNSPECIFIED = 0; + */ + ANALYTICS_PROPERTY_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                          +   * Ordinary Google Analytics property
                                          +   * 
                                          + * + * ANALYTICS_PROPERTY_TYPE_ORDINARY = 1; + */ + ANALYTICS_PROPERTY_TYPE_ORDINARY(1), + /** + * + * + *
                                          +   * Google Analytics subproperty
                                          +   * 
                                          + * + * ANALYTICS_PROPERTY_TYPE_SUBPROPERTY = 2; + */ + ANALYTICS_PROPERTY_TYPE_SUBPROPERTY(2), + /** + * + * + *
                                          +   * Google Analytics rollup property
                                          +   * 
                                          + * + * ANALYTICS_PROPERTY_TYPE_ROLLUP = 3; + */ + ANALYTICS_PROPERTY_TYPE_ROLLUP(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                          +   * Unknown or unspecified property type
                                          +   * 
                                          + * + * ANALYTICS_PROPERTY_TYPE_UNSPECIFIED = 0; + */ + public static final int ANALYTICS_PROPERTY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                          +   * Ordinary Google Analytics property
                                          +   * 
                                          + * + * ANALYTICS_PROPERTY_TYPE_ORDINARY = 1; + */ + public static final int ANALYTICS_PROPERTY_TYPE_ORDINARY_VALUE = 1; + + /** + * + * + *
                                          +   * Google Analytics subproperty
                                          +   * 
                                          + * + * ANALYTICS_PROPERTY_TYPE_SUBPROPERTY = 2; + */ + public static final int ANALYTICS_PROPERTY_TYPE_SUBPROPERTY_VALUE = 2; + + /** + * + * + *
                                          +   * Google Analytics rollup property
                                          +   * 
                                          + * + * ANALYTICS_PROPERTY_TYPE_ROLLUP = 3; + */ + public static final int ANALYTICS_PROPERTY_TYPE_ROLLUP_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 AnalyticsPropertyType 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 AnalyticsPropertyType forNumber(int value) { + switch (value) { + case 0: + return ANALYTICS_PROPERTY_TYPE_UNSPECIFIED; + case 1: + return ANALYTICS_PROPERTY_TYPE_ORDINARY; + case 2: + return ANALYTICS_PROPERTY_TYPE_SUBPROPERTY; + case 3: + return ANALYTICS_PROPERTY_TYPE_ROLLUP; + 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 AnalyticsPropertyType findValueByNumber(int number) { + return AnalyticsPropertyType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.ResourcesProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final AnalyticsPropertyType[] VALUES = values(); + + public static AnalyticsPropertyType 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 AnalyticsPropertyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.marketingplatform.admin.v1alpha.AnalyticsPropertyType) +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsServiceLevel.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsServiceLevel.java index c37174de1909..97a1d01c7c55 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsServiceLevel.java +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsServiceLevel.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto +// source: google/marketingplatform/admin/v1alpha/resources.proto // Protobuf Java Version: 3.25.8 package com.google.ads.marketingplatform.admin.v1alpha; @@ -156,10 +156,9 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto - .getDescriptor() + return com.google.ads.marketingplatform.admin.v1alpha.ResourcesProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final AnalyticsServiceLevel[] VALUES = values(); diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsRequest.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsRequest.java new file mode 100644 index 000000000000..91f7309ac838 --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsRequest.java @@ -0,0 +1,792 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +/** + * + * + *
                                          + * Request message for FindSalesPartnerManagedClients RPC.
                                          + * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest} + */ +public final class FindSalesPartnerManagedClientsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest) + FindSalesPartnerManagedClientsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FindSalesPartnerManagedClientsRequest.newBuilder() to construct. + private FindSalesPartnerManagedClientsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FindSalesPartnerManagedClientsRequest() { + organization_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FindSalesPartnerManagedClientsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + .class, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + .Builder.class); + } + + public static final int ORGANIZATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object organization_ = ""; + + /** + * + * + *
                                          +   * Required. The name of the sales partner organization.
                                          +   * Format: organizations/{org_id}
                                          +   * 
                                          + * + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The organization. + */ + @java.lang.Override + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + 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(); + organization_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Required. The name of the sales partner organization.
                                          +   * Format: organizations/{org_id}
                                          +   * 
                                          + * + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for organization. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_ACTIVE_FIELD_NUMBER = 2; + private boolean isActive_ = false; + + /** + * + * + *
                                          +   * Optional. If set, only active and just ended clients will be returned.
                                          +   * 
                                          + * + * bool is_active = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isActive. + */ + @java.lang.Override + public boolean getIsActive() { + return isActive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organization_); + } + if (isActive_ != false) { + output.writeBool(2, isActive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, organization_); + } + if (isActive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isActive_); + } + 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.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest)) { + return super.equals(obj); + } + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest other = + (com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest) obj; + + if (!getOrganization().equals(other.getOrganization())) return false; + if (getIsActive() != other.getIsActive()) 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) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + hash = (37 * hash) + IS_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsActive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + 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.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + 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.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request message for FindSalesPartnerManagedClients RPC.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest) + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + .class, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + .Builder.class); + } + + // Construct using + // com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organization_ = ""; + isActive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + getDefaultInstanceForType() { + return com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + build() { + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + buildPartial() { + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest result = + new com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organization_ = organization_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isActive_ = isActive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest) { + return mergeFrom( + (com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + other) { + if (other + == com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + .getDefaultInstance()) return this; + if (!other.getOrganization().isEmpty()) { + organization_ = other.organization_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getIsActive() != false) { + setIsActive(other.getIsActive()); + } + 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: + { + organization_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + isActive_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 organization_ = ""; + + /** + * + * + *
                                          +     * Required. The name of the sales partner organization.
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The organization. + */ + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organization_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Required. The name of the sales partner organization.
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for organization. + */ + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Required. The name of the sales partner organization.
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The organization to set. + * @return This builder for chaining. + */ + public Builder setOrganization(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The name of the sales partner organization.
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOrganization() { + organization_ = getDefaultInstance().getOrganization(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The name of the sales partner organization.
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for organization to set. + * @return This builder for chaining. + */ + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean isActive_; + + /** + * + * + *
                                          +     * Optional. If set, only active and just ended clients will be returned.
                                          +     * 
                                          + * + * bool is_active = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isActive. + */ + @java.lang.Override + public boolean getIsActive() { + return isActive_; + } + + /** + * + * + *
                                          +     * Optional. If set, only active and just ended clients will be returned.
                                          +     * 
                                          + * + * bool is_active = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isActive to set. + * @return This builder for chaining. + */ + public Builder setIsActive(boolean value) { + + isActive_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. If set, only active and just ended clients will be returned.
                                          +     * 
                                          + * + * bool is_active = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsActive() { + bitField0_ = (bitField0_ & ~0x00000002); + isActive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest) + } + + // @@protoc_insertion_point(class_scope:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest) + private static final com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest(); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindSalesPartnerManagedClientsRequest 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.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsRequestOrBuilder.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsRequestOrBuilder.java new file mode 100644 index 000000000000..6faa06ed0564 --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsRequestOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +public interface FindSalesPartnerManagedClientsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. The name of the sales partner organization.
                                          +   * Format: organizations/{org_id}
                                          +   * 
                                          + * + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The organization. + */ + java.lang.String getOrganization(); + + /** + * + * + *
                                          +   * Required. The name of the sales partner organization.
                                          +   * Format: organizations/{org_id}
                                          +   * 
                                          + * + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for organization. + */ + com.google.protobuf.ByteString getOrganizationBytes(); + + /** + * + * + *
                                          +   * Optional. If set, only active and just ended clients will be returned.
                                          +   * 
                                          + * + * bool is_active = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isActive. + */ + boolean getIsActive(); +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsResponse.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsResponse.java new file mode 100644 index 000000000000..922ef2fc4840 --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsResponse.java @@ -0,0 +1,2588 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +/** + * + * + *
                                          + * Response message for FindSalesPartnerManagedClients RPC.
                                          + * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse} + */ +public final class FindSalesPartnerManagedClientsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse) + FindSalesPartnerManagedClientsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FindSalesPartnerManagedClientsResponse.newBuilder() to construct. + private FindSalesPartnerManagedClientsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FindSalesPartnerManagedClientsResponse() { + clientData_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FindSalesPartnerManagedClientsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .class, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .Builder.class); + } + + public interface ClientDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * The end client that has/had contract with the requested sales org.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + * + * @return Whether the organization field is set. + */ + boolean hasOrganization(); + + /** + * + * + *
                                          +     * The end client that has/had contract with the requested sales org.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + * + * @return The organization. + */ + com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganization(); + + /** + * + * + *
                                          +     * The end client that has/had contract with the requested sales org.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + */ + com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder getOrganizationOrBuilder(); + + /** + * + * + *
                                          +     * The start date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date start_date = 2; + * + * @return Whether the startDate field is set. + */ + boolean hasStartDate(); + + /** + * + * + *
                                          +     * The start date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date start_date = 2; + * + * @return The startDate. + */ + com.google.type.Date getStartDate(); + + /** + * + * + *
                                          +     * The start date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date start_date = 2; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
                                          +     * The end date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date end_date = 3; + * + * @return Whether the endDate field is set. + */ + boolean hasEndDate(); + + /** + * + * + *
                                          +     * The end date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date end_date = 3; + * + * @return The endDate. + */ + com.google.type.Date getEndDate(); + + /** + * + * + *
                                          +     * The end date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date end_date = 3; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + } + + /** + * + * + *
                                          +   * Contains the client data.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData} + */ + public static final class ClientData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData) + ClientDataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ClientData.newBuilder() to construct. + private ClientData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClientData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.class, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_FIELD_NUMBER = 1; + private com.google.ads.marketingplatform.admin.v1alpha.Organization organization_; + + /** + * + * + *
                                          +     * The end client that has/had contract with the requested sales org.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + * + * @return Whether the organization field is set. + */ + @java.lang.Override + public boolean hasOrganization() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * The end client that has/had contract with the requested sales org.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + * + * @return The organization. + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganization() { + return organization_ == null + ? com.google.ads.marketingplatform.admin.v1alpha.Organization.getDefaultInstance() + : organization_; + } + + /** + * + * + *
                                          +     * The end client that has/had contract with the requested sales org.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder + getOrganizationOrBuilder() { + return organization_ == null + ? com.google.ads.marketingplatform.admin.v1alpha.Organization.getDefaultInstance() + : organization_; + } + + public static final int START_DATE_FIELD_NUMBER = 2; + private com.google.type.Date startDate_; + + /** + * + * + *
                                          +     * The start date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date start_date = 2; + * + * @return Whether the startDate field is set. + */ + @java.lang.Override + public boolean hasStartDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * The start date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date start_date = 2; + * + * @return The startDate. + */ + @java.lang.Override + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + /** + * + * + *
                                          +     * The start date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date start_date = 2; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + public static final int END_DATE_FIELD_NUMBER = 3; + private com.google.type.Date endDate_; + + /** + * + * + *
                                          +     * The end date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date end_date = 3; + * + * @return Whether the endDate field is set. + */ + @java.lang.Override + public boolean hasEndDate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +     * The end date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date end_date = 3; + * + * @return The endDate. + */ + @java.lang.Override + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + /** + * + * + *
                                          +     * The end date of the contract between the sales org and the end client.
                                          +     * 
                                          + * + * .google.type.Date end_date = 3; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + 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, getOrganization()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getStartDate()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEndDate()); + } + 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, getOrganization()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartDate()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndDate()); + } + 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.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData)) { + return super.equals(obj); + } + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + other = + (com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData) + obj; + + if (hasOrganization() != other.hasOrganization()) return false; + if (hasOrganization()) { + if (!getOrganization().equals(other.getOrganization())) return false; + } + if (hasStartDate() != other.hasStartDate()) return false; + if (hasStartDate()) { + if (!getStartDate().equals(other.getStartDate())) return false; + } + if (hasEndDate() != other.hasEndDate()) return false; + if (hasEndDate()) { + if (!getEndDate().equals(other.getEndDate())) 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 (hasOrganization()) { + hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + } + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + 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.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + 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.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Contains the client data.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData) + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData.class, + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData.Builder.class); + } + + // Construct using + // com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOrganizationFieldBuilder(); + getStartDateFieldBuilder(); + getEndDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_descriptor; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + getDefaultInstanceForType() { + return com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + build() { + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + buildPartial() { + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + result = + new com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organization_ = + organizationBuilder_ == null ? organization_ : organizationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData) { + return mergeFrom( + (com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + other) { + if (other + == com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.getDefaultInstance()) return this; + if (other.hasOrganization()) { + mergeOrganization(other.getOrganization()); + } + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + 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(getOrganizationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndDateFieldBuilder().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 com.google.ads.marketingplatform.admin.v1alpha.Organization organization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.Organization, + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder, + com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder> + organizationBuilder_; + + /** + * + * + *
                                          +       * The end client that has/had contract with the requested sales org.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + * + * @return Whether the organization field is set. + */ + public boolean hasOrganization() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +       * The end client that has/had contract with the requested sales org.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + * + * @return The organization. + */ + public com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganization() { + if (organizationBuilder_ == null) { + return organization_ == null + ? com.google.ads.marketingplatform.admin.v1alpha.Organization.getDefaultInstance() + : organization_; + } else { + return organizationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * The end client that has/had contract with the requested sales org.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + */ + public Builder setOrganization( + com.google.ads.marketingplatform.admin.v1alpha.Organization value) { + if (organizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + } else { + organizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The end client that has/had contract with the requested sales org.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + */ + public Builder setOrganization( + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder builderForValue) { + if (organizationBuilder_ == null) { + organization_ = builderForValue.build(); + } else { + organizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The end client that has/had contract with the requested sales org.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + */ + public Builder mergeOrganization( + com.google.ads.marketingplatform.admin.v1alpha.Organization value) { + if (organizationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && organization_ != null + && organization_ + != com.google.ads.marketingplatform.admin.v1alpha.Organization + .getDefaultInstance()) { + getOrganizationBuilder().mergeFrom(value); + } else { + organization_ = value; + } + } else { + organizationBuilder_.mergeFrom(value); + } + if (organization_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The end client that has/had contract with the requested sales org.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + */ + public Builder clearOrganization() { + bitField0_ = (bitField0_ & ~0x00000001); + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The end client that has/had contract with the requested sales org.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + */ + public com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder + getOrganizationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOrganizationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The end client that has/had contract with the requested sales org.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + */ + public com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder + getOrganizationOrBuilder() { + if (organizationBuilder_ != null) { + return organizationBuilder_.getMessageOrBuilder(); + } else { + return organization_ == null + ? com.google.ads.marketingplatform.admin.v1alpha.Organization.getDefaultInstance() + : organization_; + } + } + + /** + * + * + *
                                          +       * The end client that has/had contract with the requested sales org.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.Organization organization = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.Organization, + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder, + com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder> + getOrganizationFieldBuilder() { + if (organizationBuilder_ == null) { + organizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.Organization, + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder, + com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder>( + getOrganization(), getParentForChildren(), isClean()); + organization_ = null; + } + return organizationBuilder_; + } + + private com.google.type.Date startDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + + /** + * + * + *
                                          +       * The start date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date start_date = 2; + * + * @return Whether the startDate field is set. + */ + public boolean hasStartDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * The start date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date start_date = 2; + * + * @return The startDate. + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * The start date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date start_date = 2; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + } else { + startDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The start date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date start_date = 2; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The start date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date start_date = 2; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startDate_ != null + && startDate_ != com.google.type.Date.getDefaultInstance()) { + getStartDateBuilder().mergeFrom(value); + } else { + startDate_ = value; + } + } else { + startDateBuilder_.mergeFrom(value); + } + if (startDate_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The start date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date start_date = 2; + */ + public Builder clearStartDate() { + bitField0_ = (bitField0_ & ~0x00000002); + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The start date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date start_date = 2; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The start date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date start_date = 2; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + + /** + * + * + *
                                          +       * The start date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date start_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, + com.google.type.Date.Builder, + com.google.type.DateOrBuilder>(getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + + /** + * + * + *
                                          +       * The end date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date end_date = 3; + * + * @return Whether the endDate field is set. + */ + public boolean hasEndDate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * The end date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date end_date = 3; + * + * @return The endDate. + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * The end date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date end_date = 3; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + } else { + endDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The end date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date end_date = 3; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The end date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date end_date = 3; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endDate_ != null + && endDate_ != com.google.type.Date.getDefaultInstance()) { + getEndDateBuilder().mergeFrom(value); + } else { + endDate_ = value; + } + } else { + endDateBuilder_.mergeFrom(value); + } + if (endDate_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The end date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date end_date = 3; + */ + public Builder clearEndDate() { + bitField0_ = (bitField0_ & ~0x00000004); + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The end date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date end_date = 3; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The end date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date end_date = 3; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + + /** + * + * + *
                                          +       * The end date of the contract between the sales org and the end client.
                                          +       * 
                                          + * + * .google.type.Date end_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, + com.google.type.Date.Builder, + com.google.type.DateOrBuilder>(getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData) + } + + // @@protoc_insertion_point(class_scope:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData) + private static final com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData(); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientData 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.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CLIENT_DATA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData> + clientData_; + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData> + getClientDataList() { + return clientData_; + } + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientDataOrBuilder> + getClientDataOrBuilderList() { + return clientData_; + } + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + @java.lang.Override + public int getClientDataCount() { + return clientData_.size(); + } + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + getClientData(int index) { + return clientData_.get(index); + } + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientDataOrBuilder + getClientDataOrBuilder(int index) { + return clientData_.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 < clientData_.size(); i++) { + output.writeMessage(1, clientData_.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 < clientData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clientData_.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.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse)) { + return super.equals(obj); + } + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse other = + (com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse) obj; + + if (!getClientDataList().equals(other.getClientDataList())) 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 (getClientDataCount() > 0) { + hash = (37 * hash) + CLIENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getClientDataList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + 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.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + 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.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Response message for FindSalesPartnerManagedClients RPC.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse) + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .class, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .Builder.class); + } + + // Construct using + // com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (clientDataBuilder_ == null) { + clientData_ = java.util.Collections.emptyList(); + } else { + clientData_ = null; + clientDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + getDefaultInstanceForType() { + return com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + build() { + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + buildPartial() { + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse result = + new com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + result) { + if (clientDataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clientData_ = java.util.Collections.unmodifiableList(clientData_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clientData_ = clientData_; + } else { + result.clientData_ = clientDataBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse) { + return mergeFrom( + (com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + other) { + if (other + == com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .getDefaultInstance()) return this; + if (clientDataBuilder_ == null) { + if (!other.clientData_.isEmpty()) { + if (clientData_.isEmpty()) { + clientData_ = other.clientData_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClientDataIsMutable(); + clientData_.addAll(other.clientData_); + } + onChanged(); + } + } else { + if (!other.clientData_.isEmpty()) { + if (clientDataBuilder_.isEmpty()) { + clientDataBuilder_.dispose(); + clientDataBuilder_ = null; + clientData_ = other.clientData_; + bitField0_ = (bitField0_ & ~0x00000001); + clientDataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClientDataFieldBuilder() + : null; + } else { + clientDataBuilder_.addAllMessages(other.clientData_); + } + } + } + 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.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData + m = + input.readMessage( + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData.parser(), + extensionRegistry); + if (clientDataBuilder_ == null) { + ensureClientDataIsMutable(); + clientData_.add(m); + } else { + clientDataBuilder_.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< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData> + clientData_ = java.util.Collections.emptyList(); + + private void ensureClientDataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + clientData_ = + new java.util.ArrayList< + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData>(clientData_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientDataOrBuilder> + clientDataBuilder_; + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData> + getClientDataList() { + if (clientDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(clientData_); + } else { + return clientDataBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public int getClientDataCount() { + if (clientDataBuilder_ == null) { + return clientData_.size(); + } else { + return clientDataBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + getClientData(int index) { + if (clientDataBuilder_ == null) { + return clientData_.get(index); + } else { + return clientDataBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public Builder setClientData( + int index, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + value) { + if (clientDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClientDataIsMutable(); + clientData_.set(index, value); + onChanged(); + } else { + clientDataBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public Builder setClientData( + int index, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder + builderForValue) { + if (clientDataBuilder_ == null) { + ensureClientDataIsMutable(); + clientData_.set(index, builderForValue.build()); + onChanged(); + } else { + clientDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public Builder addClientData( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + value) { + if (clientDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClientDataIsMutable(); + clientData_.add(value); + onChanged(); + } else { + clientDataBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public Builder addClientData( + int index, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData + value) { + if (clientDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClientDataIsMutable(); + clientData_.add(index, value); + onChanged(); + } else { + clientDataBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public Builder addClientData( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder + builderForValue) { + if (clientDataBuilder_ == null) { + ensureClientDataIsMutable(); + clientData_.add(builderForValue.build()); + onChanged(); + } else { + clientDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public Builder addClientData( + int index, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder + builderForValue) { + if (clientDataBuilder_ == null) { + ensureClientDataIsMutable(); + clientData_.add(index, builderForValue.build()); + onChanged(); + } else { + clientDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public Builder addAllClientData( + java.lang.Iterable< + ? extends + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData> + values) { + if (clientDataBuilder_ == null) { + ensureClientDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientData_); + onChanged(); + } else { + clientDataBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public Builder clearClientData() { + if (clientDataBuilder_ == null) { + clientData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + clientDataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public Builder removeClientData(int index) { + if (clientDataBuilder_ == null) { + ensureClientDataIsMutable(); + clientData_.remove(index); + onChanged(); + } else { + clientDataBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder + getClientDataBuilder(int index) { + return getClientDataFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientDataOrBuilder + getClientDataOrBuilder(int index) { + if (clientDataBuilder_ == null) { + return clientData_.get(index); + } else { + return clientDataBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public java.util.List< + ? extends + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientDataOrBuilder> + getClientDataOrBuilderList() { + if (clientDataBuilder_ != null) { + return clientDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clientData_); + } + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder + addClientDataBuilder() { + return getClientDataFieldBuilder() + .addBuilder( + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder + addClientDataBuilder(int index) { + return getClientDataFieldBuilder() + .addBuilder( + index, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * The clients managed by the sales org.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + public java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder> + getClientDataBuilderList() { + return getClientDataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData.Builder, + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientDataOrBuilder> + getClientDataFieldBuilder() { + if (clientDataBuilder_ == null) { + clientDataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData, + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientData.Builder, + com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse.ClientDataOrBuilder>( + clientData_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + clientData_ = null; + } + return clientDataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse) + } + + // @@protoc_insertion_point(class_scope:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse) + private static final com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse(); + } + + public static com.google.ads.marketingplatform.admin.v1alpha + .FindSalesPartnerManagedClientsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindSalesPartnerManagedClientsResponse 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.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsResponseOrBuilder.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsResponseOrBuilder.java new file mode 100644 index 000000000000..85afc10f0791 --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/FindSalesPartnerManagedClientsResponseOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +public interface FindSalesPartnerManagedClientsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientData> + getClientDataList(); + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData + getClientData(int index); + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + int getClientDataCount(); + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + java.util.List< + ? extends + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientDataOrBuilder> + getClientDataOrBuilderList(); + + /** + * + * + *
                                          +   * The clients managed by the sales org.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse.ClientData client_data = 1; + * + */ + com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse + .ClientDataOrBuilder + getClientDataOrBuilder(int index); +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsRequest.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsRequest.java new file mode 100644 index 000000000000..5555b7d95b3c --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsRequest.java @@ -0,0 +1,798 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +/** + * + * + *
                                          + * Request message for ListOrganizations RPC.
                                          + * 
                                          + * + * Protobuf type {@code google.marketingplatform.admin.v1alpha.ListOrganizationsRequest} + */ +public final class ListOrganizationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.marketingplatform.admin.v1alpha.ListOrganizationsRequest) + ListOrganizationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOrganizationsRequest.newBuilder() to construct. + private ListOrganizationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOrganizationsRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOrganizationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest.class, + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_ = 0; + + /** + * + * + *
                                          +   * Optional. The maximum number of organizations to return in one call. The
                                          +   * service may return fewer than this value.
                                          +   *
                                          +   * If unspecified, at most 50 organizations will be returned. The
                                          +   * maximum value is 1000; values above 1000 will be coerced to 1000.
                                          +   * 
                                          + * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                          +   * Optional. A page token, received from a previous ListOrganizations call.
                                          +   * Provide this to retrieve the subsequent page.
                                          +   *
                                          +   * When paginating, all other parameters provided to
                                          +   * `ListOrganizations` must match the call that provided the page
                                          +   * token.
                                          +   * 
                                          + * + * string page_token = 2 [(.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. A page token, received from a previous ListOrganizations call.
                                          +   * Provide this to retrieve the subsequent page.
                                          +   *
                                          +   * When paginating, all other parameters provided to
                                          +   * `ListOrganizations` must match the call that provided the page
                                          +   * token.
                                          +   * 
                                          + * + * string page_token = 2 [(.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; + } + } + + 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 (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + 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.marketingplatform.admin.v1alpha.ListOrganizationsRequest)) { + return super.equals(obj); + } + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest other = + (com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest) obj; + + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest 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.marketingplatform.admin.v1alpha.ListOrganizationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest 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.marketingplatform.admin.v1alpha.ListOrganizationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request message for ListOrganizations RPC.
                                          +   * 
                                          + * + * Protobuf type {@code google.marketingplatform.admin.v1alpha.ListOrganizationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.marketingplatform.admin.v1alpha.ListOrganizationsRequest) + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest.class, + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest.Builder + .class); + } + + // Construct using + // com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest + getDefaultInstanceForType() { + return com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest build() { + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest buildPartial() { + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest result = + new com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest) { + return mergeFrom( + (com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest other) { + if (other + == com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest + .getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = 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 int pageSize_; + + /** + * + * + *
                                          +     * Optional. The maximum number of organizations to return in one call. The
                                          +     * service may return fewer than this value.
                                          +     *
                                          +     * If unspecified, at most 50 organizations will be returned. The
                                          +     * maximum value is 1000; values above 1000 will be coerced to 1000.
                                          +     * 
                                          + * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                          +     * Optional. The maximum number of organizations to return in one call. The
                                          +     * service may return fewer than this value.
                                          +     *
                                          +     * If unspecified, at most 50 organizations will be returned. The
                                          +     * maximum value is 1000; values above 1000 will be coerced to 1000.
                                          +     * 
                                          + * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. The maximum number of organizations to return in one call. The
                                          +     * service may return fewer than this value.
                                          +     *
                                          +     * If unspecified, at most 50 organizations will be returned. The
                                          +     * maximum value is 1000; values above 1000 will be coerced to 1000.
                                          +     * 
                                          + * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                          +     * Optional. A page token, received from a previous ListOrganizations call.
                                          +     * Provide this to retrieve the subsequent page.
                                          +     *
                                          +     * When paginating, all other parameters provided to
                                          +     * `ListOrganizations` must match the call that provided the page
                                          +     * token.
                                          +     * 
                                          + * + * string page_token = 2 [(.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. A page token, received from a previous ListOrganizations call.
                                          +     * Provide this to retrieve the subsequent page.
                                          +     *
                                          +     * When paginating, all other parameters provided to
                                          +     * `ListOrganizations` must match the call that provided the page
                                          +     * token.
                                          +     * 
                                          + * + * string page_token = 2 [(.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. A page token, received from a previous ListOrganizations call.
                                          +     * Provide this to retrieve the subsequent page.
                                          +     *
                                          +     * When paginating, all other parameters provided to
                                          +     * `ListOrganizations` must match the call that provided the page
                                          +     * token.
                                          +     * 
                                          + * + * string page_token = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A page token, received from a previous ListOrganizations call.
                                          +     * Provide this to retrieve the subsequent page.
                                          +     *
                                          +     * When paginating, all other parameters provided to
                                          +     * `ListOrganizations` must match the call that provided the page
                                          +     * token.
                                          +     * 
                                          + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Optional. A page token, received from a previous ListOrganizations call.
                                          +     * Provide this to retrieve the subsequent page.
                                          +     *
                                          +     * When paginating, all other parameters provided to
                                          +     * `ListOrganizations` must match the call that provided the page
                                          +     * token.
                                          +     * 
                                          + * + * string page_token = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.marketingplatform.admin.v1alpha.ListOrganizationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.marketingplatform.admin.v1alpha.ListOrganizationsRequest) + private static final com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest(); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationsRequest 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.marketingplatform.admin.v1alpha.ListOrganizationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsRequestOrBuilder.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsRequestOrBuilder.java new file mode 100644 index 000000000000..2384c0d18a2d --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +public interface ListOrganizationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.marketingplatform.admin.v1alpha.ListOrganizationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Optional. The maximum number of organizations to return in one call. The
                                          +   * service may return fewer than this value.
                                          +   *
                                          +   * If unspecified, at most 50 organizations will be returned. The
                                          +   * maximum value is 1000; values above 1000 will be coerced to 1000.
                                          +   * 
                                          + * + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                          +   * Optional. A page token, received from a previous ListOrganizations call.
                                          +   * Provide this to retrieve the subsequent page.
                                          +   *
                                          +   * When paginating, all other parameters provided to
                                          +   * `ListOrganizations` must match the call that provided the page
                                          +   * token.
                                          +   * 
                                          + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                          +   * Optional. A page token, received from a previous ListOrganizations call.
                                          +   * Provide this to retrieve the subsequent page.
                                          +   *
                                          +   * When paginating, all other parameters provided to
                                          +   * `ListOrganizations` must match the call that provided the page
                                          +   * token.
                                          +   * 
                                          + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsResponse.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsResponse.java new file mode 100644 index 000000000000..7a1a0b8de3fb --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsResponse.java @@ -0,0 +1,1222 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +/** + * + * + *
                                          + * Response message for ListOrganizations RPC.
                                          + * 
                                          + * + * Protobuf type {@code google.marketingplatform.admin.v1alpha.ListOrganizationsResponse} + */ +public final class ListOrganizationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.marketingplatform.admin.v1alpha.ListOrganizationsResponse) + ListOrganizationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOrganizationsResponse.newBuilder() to construct. + private ListOrganizationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOrganizationsResponse() { + organizations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOrganizationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse.class, + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse.Builder.class); + } + + public static final int ORGANIZATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + organizations_; + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + @java.lang.Override + public java.util.List + getOrganizationsList() { + return organizations_; + } + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder> + getOrganizationsOrBuilderList() { + return organizations_; + } + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + @java.lang.Override + public int getOrganizationsCount() { + return organizations_.size(); + } + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganizations(int index) { + return organizations_.get(index); + } + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder + getOrganizationsOrBuilder(int index) { + return organizations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                          +   * A token, which can be sent as `page_token` to retrieve the next page.
                                          +   * If this field is omitted, there are no subsequent pages.
                                          +   * 
                                          + * + * 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; + } + } + + /** + * + * + *
                                          +   * A token, which can be sent as `page_token` to retrieve the next page.
                                          +   * If this field is omitted, there are no subsequent pages.
                                          +   * 
                                          + * + * 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; + } + } + + 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 < organizations_.size(); i++) { + output.writeMessage(1, organizations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < organizations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, organizations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.marketingplatform.admin.v1alpha.ListOrganizationsResponse)) { + return super.equals(obj); + } + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse other = + (com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse) obj; + + if (!getOrganizationsList().equals(other.getOrganizationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getOrganizationsCount() > 0) { + hash = (37 * hash) + ORGANIZATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse 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.marketingplatform.admin.v1alpha.ListOrganizationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse 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.marketingplatform.admin.v1alpha.ListOrganizationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Response message for ListOrganizations RPC.
                                          +   * 
                                          + * + * Protobuf type {@code google.marketingplatform.admin.v1alpha.ListOrganizationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.marketingplatform.admin.v1alpha.ListOrganizationsResponse) + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse.class, + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse.Builder + .class); + } + + // Construct using + // com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (organizationsBuilder_ == null) { + organizations_ = java.util.Collections.emptyList(); + } else { + organizations_ = null; + organizationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse + getDefaultInstanceForType() { + return com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse build() { + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse buildPartial() { + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse result = + new com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse result) { + if (organizationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + organizations_ = java.util.Collections.unmodifiableList(organizations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.organizations_ = organizations_; + } else { + result.organizations_ = organizationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse) { + return mergeFrom( + (com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse other) { + if (other + == com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse + .getDefaultInstance()) return this; + if (organizationsBuilder_ == null) { + if (!other.organizations_.isEmpty()) { + if (organizations_.isEmpty()) { + organizations_ = other.organizations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOrganizationsIsMutable(); + organizations_.addAll(other.organizations_); + } + onChanged(); + } + } else { + if (!other.organizations_.isEmpty()) { + if (organizationsBuilder_.isEmpty()) { + organizationsBuilder_.dispose(); + organizationsBuilder_ = null; + organizations_ = other.organizations_; + bitField0_ = (bitField0_ & ~0x00000001); + organizationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrganizationsFieldBuilder() + : null; + } else { + organizationsBuilder_.addAllMessages(other.organizations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.ads.marketingplatform.admin.v1alpha.Organization m = + input.readMessage( + com.google.ads.marketingplatform.admin.v1alpha.Organization.parser(), + extensionRegistry); + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.add(m); + } else { + organizationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + organizations_ = java.util.Collections.emptyList(); + + private void ensureOrganizationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + organizations_ = + new java.util.ArrayList( + organizations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.Organization, + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder, + com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder> + organizationsBuilder_; + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public java.util.List + getOrganizationsList() { + if (organizationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(organizations_); + } else { + return organizationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public int getOrganizationsCount() { + if (organizationsBuilder_ == null) { + return organizations_.size(); + } else { + return organizationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganizations(int index) { + if (organizationsBuilder_ == null) { + return organizations_.get(index); + } else { + return organizationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public Builder setOrganizations( + int index, com.google.ads.marketingplatform.admin.v1alpha.Organization value) { + if (organizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrganizationsIsMutable(); + organizations_.set(index, value); + onChanged(); + } else { + organizationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public Builder setOrganizations( + int index, + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder builderForValue) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.set(index, builderForValue.build()); + onChanged(); + } else { + organizationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public Builder addOrganizations( + com.google.ads.marketingplatform.admin.v1alpha.Organization value) { + if (organizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrganizationsIsMutable(); + organizations_.add(value); + onChanged(); + } else { + organizationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public Builder addOrganizations( + int index, com.google.ads.marketingplatform.admin.v1alpha.Organization value) { + if (organizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrganizationsIsMutable(); + organizations_.add(index, value); + onChanged(); + } else { + organizationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public Builder addOrganizations( + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder builderForValue) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.add(builderForValue.build()); + onChanged(); + } else { + organizationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public Builder addOrganizations( + int index, + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder builderForValue) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.add(index, builderForValue.build()); + onChanged(); + } else { + organizationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public Builder addAllOrganizations( + java.lang.Iterable + values) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, organizations_); + onChanged(); + } else { + organizationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public Builder clearOrganizations() { + if (organizationsBuilder_ == null) { + organizations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + organizationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public Builder removeOrganizations(int index) { + if (organizationsBuilder_ == null) { + ensureOrganizationsIsMutable(); + organizations_.remove(index); + onChanged(); + } else { + organizationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder + getOrganizationsBuilder(int index) { + return getOrganizationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder + getOrganizationsOrBuilder(int index) { + if (organizationsBuilder_ == null) { + return organizations_.get(index); + } else { + return organizationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public java.util.List< + ? extends com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder> + getOrganizationsOrBuilderList() { + if (organizationsBuilder_ != null) { + return organizationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(organizations_); + } + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder + addOrganizationsBuilder() { + return getOrganizationsFieldBuilder() + .addBuilder( + com.google.ads.marketingplatform.admin.v1alpha.Organization.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder + addOrganizationsBuilder(int index) { + return getOrganizationsFieldBuilder() + .addBuilder( + index, + com.google.ads.marketingplatform.admin.v1alpha.Organization.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * The Organization resource that the user has access to, which includes the
                                          +     * org id and display name.
                                          +     * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + public java.util.List + getOrganizationsBuilderList() { + return getOrganizationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.Organization, + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder, + com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder> + getOrganizationsFieldBuilder() { + if (organizationsBuilder_ == null) { + organizationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.Organization, + com.google.ads.marketingplatform.admin.v1alpha.Organization.Builder, + com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder>( + organizations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + organizations_ = null; + } + return organizationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                          +     * A token, which can be sent as `page_token` to retrieve the next page.
                                          +     * If this field is omitted, there are no subsequent pages.
                                          +     * 
                                          + * + * 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; + } + } + + /** + * + * + *
                                          +     * A token, which can be sent as `page_token` to retrieve the next page.
                                          +     * If this field is omitted, there are no subsequent pages.
                                          +     * 
                                          + * + * 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; + } + } + + /** + * + * + *
                                          +     * A token, which can be sent as `page_token` to retrieve the next page.
                                          +     * If this field is omitted, there are no subsequent pages.
                                          +     * 
                                          + * + * 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; + } + + /** + * + * + *
                                          +     * A token, which can be sent as `page_token` to retrieve the next page.
                                          +     * If this field is omitted, there are no subsequent pages.
                                          +     * 
                                          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * A token, which can be sent as `page_token` to retrieve the next page.
                                          +     * If this field is omitted, there are no subsequent pages.
                                          +     * 
                                          + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.marketingplatform.admin.v1alpha.ListOrganizationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.marketingplatform.admin.v1alpha.ListOrganizationsResponse) + private static final com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse(); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrganizationsResponse 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.marketingplatform.admin.v1alpha.ListOrganizationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsResponseOrBuilder.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsResponseOrBuilder.java new file mode 100644 index 000000000000..e1fa884fb92e --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ListOrganizationsResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +public interface ListOrganizationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.marketingplatform.admin.v1alpha.ListOrganizationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + java.util.List + getOrganizationsList(); + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + com.google.ads.marketingplatform.admin.v1alpha.Organization getOrganizations(int index); + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + int getOrganizationsCount(); + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + java.util.List + getOrganizationsOrBuilderList(); + + /** + * + * + *
                                          +   * The Organization resource that the user has access to, which includes the
                                          +   * org id and display name.
                                          +   * 
                                          + * + * repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1; + */ + com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder getOrganizationsOrBuilder( + int index); + + /** + * + * + *
                                          +   * A token, which can be sent as `page_token` to retrieve the next page.
                                          +   * If this field is omitted, there are no subsequent pages.
                                          +   * 
                                          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                          +   * A token, which can be sent as `page_token` to retrieve the next page.
                                          +   * If this field is omitted, there are no subsequent pages.
                                          +   * 
                                          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminProto.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminProto.java index 6749aff25feb..38554dc10d41 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminProto.java +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminProto.java @@ -32,6 +32,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_marketingplatform_admin_v1alpha_GetOrganizationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_marketingplatform_admin_v1alpha_GetOrganizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_marketingplatform_admin_v1alpha_ListAnalyticsAccountLinksRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -56,6 +76,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_marketingplatform_admin_v1alpha_SetPropertyServiceLevelResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_marketingplatform_admin_v1alpha_SetPropertyServiceLevelResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -65,90 +101,128 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\nDgoogle/marketingplatform/admin/v1alpha" - + "/marketingplatform_admin.proto\022&google.m" + "\n" + + "Dgoogle/marketingplatform/admin/v1alpha/marketingplatform_admin.proto\022&google.m" + "arketingplatform.admin.v1alpha\032\034google/a" + "pi/annotations.proto\032\027google/api/client." + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\0326google/market" - + "ingplatform/admin/v1alpha/resources.prot" - + "o\032\033google/protobuf/empty.proto\"b\n\026GetOrg" - + "anizationRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2" - + "marketingplatformadmin.googleapis.com/Or" - + "ganization\"\247\001\n ListAnalyticsAccountLinks" - + "Request\022R\n\006parent\030\001 \001(\tBB\340A\002\372A<\022:marketi" - + "ngplatformadmin.googleapis.com/Analytics" - + "AccountLink\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" - + "age_token\030\003 \001(\tB\003\340A\001\"\233\001\n!ListAnalyticsAc" - + "countLinksResponse\022]\n\027analytics_account_" - + "links\030\001 \003(\0132<.google.marketingplatform.a" - + "dmin.v1alpha.AnalyticsAccountLink\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"\332\001\n!CreateAnalyticsAc" - + "countLinkRequest\022R\n\006parent\030\001 \001(\tBB\340A\002\372A<" - + "\022:marketingplatformadmin.googleapis.com/" - + "AnalyticsAccountLink\022a\n\026analytics_accoun" - + "t_link\030\002 \001(\0132<.google.marketingplatform." - + "admin.v1alpha.AnalyticsAccountLinkB\003\340A\002\"" - + "u\n!DeleteAnalyticsAccountLinkRequest\022P\n\004" - + "name\030\001 \001(\tBB\340A\002\372A<\n:marketingplatformadm" - + "in.googleapis.com/AnalyticsAccountLink\"\354" - + "\001\n\036SetPropertyServiceLevelRequest\022#\n\026ana" - + "lytics_account_link\030\001 \001(\tB\003\340A\002\022J\n\022analyt" - + "ics_property\030\002 \001(\tB.\340A\002\372A(\n&analyticsadm" - + "in.googleapis.com/Property\022Y\n\rservice_le" - + "vel\030\003 \001(\0162=.google.marketingplatform.adm" - + "in.v1alpha.AnalyticsServiceLevelB\003\340A\002\"!\n" - + "\037SetPropertyServiceLevelResponse*\207\001\n\025Ana" - + "lyticsServiceLevel\022\'\n#ANALYTICS_SERVICE_" - + "LEVEL_UNSPECIFIED\020\000\022$\n ANALYTICS_SERVICE" - + "_LEVEL_STANDARD\020\001\022\037\n\033ANALYTICS_SERVICE_L" - + "EVEL_360\020\0022\262\013\n\035MarketingplatformAdminSer" - + "vice\022\267\001\n\017GetOrganization\022>.google.market" - + "ingplatform.admin.v1alpha.GetOrganizatio" - + "nRequest\0324.google.marketingplatform.admi" - + "n.v1alpha.Organization\".\332A\004name\202\323\344\223\002!\022\037/" - + "v1alpha/{name=organizations/*}\022\372\001\n\031ListA" - + "nalyticsAccountLinks\022H.google.marketingp" - + "latform.admin.v1alpha.ListAnalyticsAccou" - + "ntLinksRequest\032I.google.marketingplatfor" - + "m.admin.v1alpha.ListAnalyticsAccountLink" - + "sResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1alpha/{pa" - + "rent=organizations/*}/analyticsAccountLi" - + "nks\022\236\002\n\032CreateAnalyticsAccountLink\022I.goo" - + "gle.marketingplatform.admin.v1alpha.Crea" - + "teAnalyticsAccountLinkRequest\032<.google.m" - + "arketingplatform.admin.v1alpha.Analytics" - + "AccountLink\"w\332A\035parent,analytics_account" - + "_link\202\323\344\223\002Q\"7/v1alpha/{parent=organizati" - + "ons/*}/analyticsAccountLinks:\026analytics_" - + "account_link\022\307\001\n\032DeleteAnalyticsAccountL" - + "ink\022I.google.marketingplatform.admin.v1a" - + "lpha.DeleteAnalyticsAccountLinkRequest\032\026" - + ".google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/" - + "v1alpha/{name=organizations/*/analyticsA" - + "ccountLinks/*}\022\262\002\n\027SetPropertyServiceLev" - + "el\022F.google.marketingplatform.admin.v1al" - + "pha.SetPropertyServiceLevelRequest\032G.goo" - + "gle.marketingplatform.admin.v1alpha.SetP" - + "ropertyServiceLevelResponse\"\205\001\332A\026analyti" - + "cs_account_link\202\323\344\223\002f\"a/v1alpha/{analyti" - + "cs_account_link=organizations/*/analytic" - + "sAccountLinks/*}:setPropertyServiceLevel" - + ":\001*\032\271\001\312A%marketingplatformadmin.googleap" - + "is.com\322A\215\001https://www.googleapis.com/aut" - + "h/marketingplatformadmin.analytics.read," - + "https://www.googleapis.com/auth/marketin" - + "gplatformadmin.analytics.updateB\351\002\n.com." - + "google.ads.marketingplatform.admin.v1alp" - + "haB\033MarketingplatformAdminProtoP\001ZKgoogl" - + "e.golang.org/genproto/googleapis/marketi" - + "ngplatform/admin/v1alpha;admin\252\002*Google." - + "Ads.MarketingPlatform.Admin.V1Alpha\312\002*Go" - + "ogle\\Ads\\MarketingPlatform\\Admin\\V1alpha" - + "\352\002.Google::Ads::MarketingPlatform::Admin" - + "::V1alpha\352A?\n&analyticsadmin.googleapis." - + "com/Property\022\025properties/{property}b\006pro" - + "to3" + + "google/api/resource.proto\0326google/marketingplatform/admin/v1alpha/resources.prot" + + "o\032\033google/protobuf/empty.proto\032\026google/t" + + "ype/date.proto\032\027google/type/money.proto\"b\n" + + "\026GetOrganizationRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + + "2marketingplatformadmin.googleapis.com/Organization\"K\n" + + "\030ListOrganizationsRequest\022\026\n" + + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\"\201\001\n" + + "\031ListOrganizationsResponse\022K\n\r" + + "organizations\030\001 \003(\01324.google.m" + + "arketingplatform.admin.v1alpha.Organization\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\221\001\n" + + "%FindSalesPartnerManagedClientsRequest\022P\n" + + "\014organization\030\001 \001(\tB:\340A\002\372A4\n" + + "2marketingplatformadmin.googleapis.com/Organization\022\026\n" + + "\tis_active\030\002 \001(\010B\003\340A\001\"\277\002\n" + + "&FindSalesPartnerManagedClientsResponse\022n\n" + + "\013client_data\030\001 \003(\0132Y.google.marketingplatform.admin.v1alph" + + "a.FindSalesPartnerManagedClientsResponse.ClientData\032\244\001\n\n" + + "ClientData\022J\n" + + "\014organization\030\001" + + " \001(\01324.google.marketingplatform.admin.v1alpha.Organization\022%\n\n" + + "start_date\030\002 \001(\0132\021.google.type.Date\022#\n" + + "\010end_date\030\003 \001(\0132\021.google.type.Date\"\247\001\n" + + " ListAnalyticsAccountLinksRequest\022R\n" + + "\006parent\030\001 \001(\tBB\340A\002\372A<\022" + + ":marketingplatformadmin.googleapis.com/AnalyticsAccountLink\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\"\233\001\n" + + "!ListAnalyticsAccountLinksResponse\022]\n" + + "\027analytics_account_links\030\001 \003(\0132<.google.marketingpl" + + "atform.admin.v1alpha.AnalyticsAccountLink\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\332\001\n" + + "!CreateAnalyticsAccountLinkRequest\022R\n" + + "\006parent\030\001 \001(\t" + + "BB\340A\002\372A<\022:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\022a\n" + + "\026analytics_account_link\030\002 \001(\0132<.google.marketingp" + + "latform.admin.v1alpha.AnalyticsAccountLinkB\003\340A\002\"u\n" + + "!DeleteAnalyticsAccountLinkRequest\022P\n" + + "\004name\030\001 \001(\tBB\340A\002\372A<\n" + + ":marketingplatformadmin.googleapis.com/AnalyticsAccountLink\"\354\001\n" + + "\036SetPropertyServiceLevelRequest\022#\n" + + "\026analytics_account_link\030\001 \001(\tB\003\340A\002\022J\n" + + "\022analytics_property\030\002 \001(\tB.\340A\002\372A(\n" + + "&analyticsadmin.googleapis.com/Property\022Y\n\r" + + "service_level\030\003 \001(\0162=.google.marketingplat" + + "form.admin.v1alpha.AnalyticsServiceLevelB\003\340A\002\"!\n" + + "\037SetPropertyServiceLevelResponse\"K\n" + + "\032ReportPropertyUsageRequest\022\031\n" + + "\014organization\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005month\030\002 \001(\tB\003\340A\002\"\317\005\n" + + "\033ReportPropertyUsageResponse\022j\n" + + "\017property_usages\030\001 \003(\0132Q.google.marketingplatfor" + + "m.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage\022_\n" + + "\tbill_info\030\002 \001(\0132L.g" + + "oogle.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo\032\260\002\n\r" + + "PropertyUsage\022\020\n" + + "\010property\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t\022\022\n\n" + + "account_id\030\003 \001(\003\022T\n\r" + + "service_level\030\004 \001(\0162=.google.marketingplatfo" + + "rm.admin.v1alpha.AnalyticsServiceLevel\022T\n\r" + + "property_type\030\005 \001(\0162=.google.marketing" + + "platform.admin.v1alpha.AnalyticsPropertyType\022\031\n" + + "\021total_event_count\030\006 \001(\003\022\034\n" + + "\024billable_event_count\030\007 \001(\003\032\257\001\n" + + "\010BillInfo\022$\n" + + "\010base_fee\030\001 \001(\0132\022.google.type.Money\022%\n" + + "\tevent_fee\030\002 \001(\0132\022.google.type.Money\0223\n" + + "\027price_protection_credit\030\003 \001(\0132\022.google.type.Money\022!\n" + + "\005total\030\004 \001(\0132\022.google.type.Money2\372\020\n" + + "\035MarketingplatformAdminService\022\267\001\n" + + "\017GetOrganization\022>.google.marketingplatform" + + ".admin.v1alpha.GetOrganizationRequest\0324.google.marketingplatform.admin.v1alpha.O" + + "rganization\".\332A\004name\202\323\344\223\002!\022\037/v1alpha/{name=organizations/*}\022\270\001\n" + + "\021ListOrganizations\022@.google.marketingplatform.admin.v1alp" + + "ha.ListOrganizationsRequest\032A.google.marketingplatform.admin.v1alpha.ListOrganiz" + + "ationsResponse\"\036\202\323\344\223\002\030\022\026/v1alpha/organizations\022\222\002\n" + + "\036FindSalesPartnerManagedClients\022M.google.marketingplatform.admin.v1alp" + + "ha.FindSalesPartnerManagedClientsRequest\032N.google.marketingplatform.admin.v1alph" + + "a.FindSalesPartnerManagedClientsResponse" + + "\"Q\202\323\344\223\002K\"F/v1alpha/{organization=organiz" + + "ations/*}:findSalesPartnerManagedClients:\001*\022\372\001\n" + + "\031ListAnalyticsAccountLinks\022H.google.marketingplatform.admin.v1alpha.ListA" + + "nalyticsAccountLinksRequest\032I.google.marketingplatform.admin.v1alpha.ListAnalyti" + + "csAccountLinksResponse\"H\332A\006parent\202\323\344\223\0029\022" + + "7/v1alpha/{parent=organizations/*}/analyticsAccountLinks\022\236\002\n" + + "\032CreateAnalyticsAccountLink\022I.google.marketingplatform.admin" + + ".v1alpha.CreateAnalyticsAccountLinkRequest\032<.google.marketingplatform.admin.v1al" + + "pha.AnalyticsAccountLink\"w\332A\035parent,anal" + + "ytics_account_link\202\323\344\223\002Q\"7/v1alpha/{pare" + + "nt=organizations/*}/analyticsAccountLinks:\026analytics_account_link\022\307\001\n" + + "\032DeleteAnalyticsAccountLink\022I.google.marketingplatf" + + "orm.admin.v1alpha.DeleteAnalyticsAccount" + + "LinkRequest\032\026.google.protobuf.Empty\"F\332A\004" + + "name\202\323\344\223\0029*7/v1alpha/{name=organizations/*/analyticsAccountLinks/*}\022\262\002\n" + + "\027SetPropertyServiceLevel\022F.google.marketingplatfo" + + "rm.admin.v1alpha.SetPropertyServiceLevelRequest\032G.google.marketingplatform.admin" + + ".v1alpha.SetPropertyServiceLevelResponse" + + "\"\205\001\332A\026analytics_account_link\202\323\344\223\002f\"a/v1a" + + "lpha/{analytics_account_link=organizatio" + + "ns/*/analyticsAccountLinks/*}:setPropertyServiceLevel:\001*\022\365\001\n" + + "\023ReportPropertyUsage\022B.google.marketingplatform.admin.v1alph" + + "a.ReportPropertyUsageRequest\032C.google.marketingplatform.admin.v1alpha.ReportProp" + + "ertyUsageResponse\"U\332A\014organization\202\323\344\223\002@" + + "\";/v1alpha/{organization=organizations/*" + + "}:reportPropertyUsage:\001*\032\271\001\312A%marketingp" + + "latformadmin.googleapis.com\322A\215\001https://w" + + "ww.googleapis.com/auth/marketingplatformadmin.analytics.read,https://www.googlea" + + "pis.com/auth/marketingplatformadmin.analytics.updateB\351\002\n" + + ".com.google.ads.marketingplatform.admin.v1alphaB\033Marketingplatfo" + + "rmAdminProtoP\001ZKgoogle.golang.org/genproto/googleapis/marketingplatform/admin/v1" + + "alpha;admin\252\002*Google.Ads.MarketingPlatfo" + + "rm.Admin.V1Alpha\312\002*Google\\Ads\\MarketingP" + + "latform\\Admin\\V1alpha\352\002.Google::Ads::MarketingPlatform::Admin::V1alpha\352A?\n" + + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -160,6 +234,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.ads.marketingplatform.admin.v1alpha.ResourcesProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.MoneyProto.getDescriptor(), }); internal_static_google_marketingplatform_admin_v1alpha_GetOrganizationRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -169,8 +245,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_marketingplatform_admin_v1alpha_ListAnalyticsAccountLinksRequest_descriptor = + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", + }); + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_marketingplatform_admin_v1alpha_ListOrganizationsResponse_descriptor, + new java.lang.String[] { + "Organizations", "NextPageToken", + }); + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsRequest_descriptor, + new java.lang.String[] { + "Organization", "IsActive", + }); + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_descriptor, + new java.lang.String[] { + "ClientData", + }); + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_descriptor = + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_marketingplatform_admin_v1alpha_FindSalesPartnerManagedClientsResponse_ClientData_descriptor, + new java.lang.String[] { + "Organization", "StartDate", "EndDate", + }); + internal_static_google_marketingplatform_admin_v1alpha_ListAnalyticsAccountLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_marketingplatform_admin_v1alpha_ListAnalyticsAccountLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_marketingplatform_admin_v1alpha_ListAnalyticsAccountLinksRequest_descriptor, @@ -178,7 +296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_marketingplatform_admin_v1alpha_ListAnalyticsAccountLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(6); internal_static_google_marketingplatform_admin_v1alpha_ListAnalyticsAccountLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_marketingplatform_admin_v1alpha_ListAnalyticsAccountLinksResponse_descriptor, @@ -186,7 +304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AnalyticsAccountLinks", "NextPageToken", }); internal_static_google_marketingplatform_admin_v1alpha_CreateAnalyticsAccountLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(7); internal_static_google_marketingplatform_admin_v1alpha_CreateAnalyticsAccountLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_marketingplatform_admin_v1alpha_CreateAnalyticsAccountLinkRequest_descriptor, @@ -194,7 +312,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "AnalyticsAccountLink", }); internal_static_google_marketingplatform_admin_v1alpha_DeleteAnalyticsAccountLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(8); internal_static_google_marketingplatform_admin_v1alpha_DeleteAnalyticsAccountLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_marketingplatform_admin_v1alpha_DeleteAnalyticsAccountLinkRequest_descriptor, @@ -202,7 +320,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_marketingplatform_admin_v1alpha_SetPropertyServiceLevelRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(9); internal_static_google_marketingplatform_admin_v1alpha_SetPropertyServiceLevelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_marketingplatform_admin_v1alpha_SetPropertyServiceLevelRequest_descriptor, @@ -210,11 +328,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AnalyticsAccountLink", "AnalyticsProperty", "ServiceLevel", }); internal_static_google_marketingplatform_admin_v1alpha_SetPropertyServiceLevelResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(10); internal_static_google_marketingplatform_admin_v1alpha_SetPropertyServiceLevelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_marketingplatform_admin_v1alpha_SetPropertyServiceLevelResponse_descriptor, new java.lang.String[] {}); + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_descriptor, + new java.lang.String[] { + "Organization", "Month", + }); + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_descriptor, + new java.lang.String[] { + "PropertyUsages", "BillInfo", + }); + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_descriptor = + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_descriptor, + new java.lang.String[] { + "Property", + "DisplayName", + "AccountId", + "ServiceLevel", + "PropertyType", + "TotalEventCount", + "BillableEventCount", + }); + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_descriptor = + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_descriptor, + new java.lang.String[] { + "BaseFee", "EventFee", "PriceProtectionCredit", "Total", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -232,6 +392,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.ads.marketingplatform.admin.v1alpha.ResourcesProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.MoneyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageRequest.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageRequest.java new file mode 100644 index 000000000000..06d5e5dcbaf0 --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageRequest.java @@ -0,0 +1,870 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +/** + * + * + *
                                          + * Request message for ReportPropertyUsage RPC.
                                          + * 
                                          + * + * Protobuf type {@code google.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest} + */ +public final class ReportPropertyUsageRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest) + ReportPropertyUsageRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReportPropertyUsageRequest.newBuilder() to construct. + private ReportPropertyUsageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReportPropertyUsageRequest() { + organization_ = ""; + month_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportPropertyUsageRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest.class, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest.Builder + .class); + } + + public static final int ORGANIZATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object organization_ = ""; + + /** + * + * + *
                                          +   * Required. Specifies the organization whose property usage will be listed.
                                          +   *
                                          +   * Format: organizations/{org_id}
                                          +   * 
                                          + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The organization. + */ + @java.lang.Override + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + 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(); + organization_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Required. Specifies the organization whose property usage will be listed.
                                          +   *
                                          +   * Format: organizations/{org_id}
                                          +   * 
                                          + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for organization. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONTH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object month_ = ""; + + /** + * + * + *
                                          +   * Required. The target month to list property usages.
                                          +   *
                                          +   * Format: YYYY-MM. For example, "2025-05"
                                          +   * 
                                          + * + * string month = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The month. + */ + @java.lang.Override + public java.lang.String getMonth() { + java.lang.Object ref = month_; + 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(); + month_ = s; + return s; + } + } + + /** + * + * + *
                                          +   * Required. The target month to list property usages.
                                          +   *
                                          +   * Format: YYYY-MM. For example, "2025-05"
                                          +   * 
                                          + * + * string month = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for month. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMonthBytes() { + java.lang.Object ref = month_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + month_ = 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.GeneratedMessageV3.isStringEmpty(organization_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organization_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(month_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, month_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, organization_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(month_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, month_); + } + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest)) { + return super.equals(obj); + } + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest other = + (com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest) obj; + + if (!getOrganization().equals(other.getOrganization())) return false; + if (!getMonth().equals(other.getMonth())) 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) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + hash = (37 * hash) + MONTH_FIELD_NUMBER; + hash = (53 * hash) + getMonth().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest 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.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest 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.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Request message for ReportPropertyUsage RPC.
                                          +   * 
                                          + * + * Protobuf type {@code google.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest) + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest.class, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest.Builder + .class); + } + + // Construct using + // com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organization_ = ""; + month_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest + getDefaultInstanceForType() { + return com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest build() { + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest + buildPartial() { + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest result = + new com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organization_ = organization_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.month_ = month_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest) { + return mergeFrom( + (com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest other) { + if (other + == com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest + .getDefaultInstance()) return this; + if (!other.getOrganization().isEmpty()) { + organization_ = other.organization_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMonth().isEmpty()) { + month_ = other.month_; + 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: + { + organization_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + month_ = 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 organization_ = ""; + + /** + * + * + *
                                          +     * Required. Specifies the organization whose property usage will be listed.
                                          +     *
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The organization. + */ + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organization_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Required. Specifies the organization whose property usage will be listed.
                                          +     *
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for organization. + */ + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Required. Specifies the organization whose property usage will be listed.
                                          +     *
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The organization to set. + * @return This builder for chaining. + */ + public Builder setOrganization(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. Specifies the organization whose property usage will be listed.
                                          +     *
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOrganization() { + organization_ = getDefaultInstance().getOrganization(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. Specifies the organization whose property usage will be listed.
                                          +     *
                                          +     * Format: organizations/{org_id}
                                          +     * 
                                          + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for organization to set. + * @return This builder for chaining. + */ + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object month_ = ""; + + /** + * + * + *
                                          +     * Required. The target month to list property usages.
                                          +     *
                                          +     * Format: YYYY-MM. For example, "2025-05"
                                          +     * 
                                          + * + * string month = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The month. + */ + public java.lang.String getMonth() { + java.lang.Object ref = month_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + month_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +     * Required. The target month to list property usages.
                                          +     *
                                          +     * Format: YYYY-MM. For example, "2025-05"
                                          +     * 
                                          + * + * string month = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for month. + */ + public com.google.protobuf.ByteString getMonthBytes() { + java.lang.Object ref = month_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + month_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +     * Required. The target month to list property usages.
                                          +     *
                                          +     * Format: YYYY-MM. For example, "2025-05"
                                          +     * 
                                          + * + * string month = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The month to set. + * @return This builder for chaining. + */ + public Builder setMonth(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + month_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The target month to list property usages.
                                          +     *
                                          +     * Format: YYYY-MM. For example, "2025-05"
                                          +     * 
                                          + * + * string month = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMonth() { + month_ = getDefaultInstance().getMonth(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Required. The target month to list property usages.
                                          +     *
                                          +     * Format: YYYY-MM. For example, "2025-05"
                                          +     * 
                                          + * + * string month = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for month to set. + * @return This builder for chaining. + */ + public Builder setMonthBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + month_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest) + } + + // @@protoc_insertion_point(class_scope:google.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest) + private static final com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest(); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportPropertyUsageRequest 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.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageRequestOrBuilder.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageRequestOrBuilder.java new file mode 100644 index 000000000000..bf80c23b7426 --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageRequestOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +public interface ReportPropertyUsageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Required. Specifies the organization whose property usage will be listed.
                                          +   *
                                          +   * Format: organizations/{org_id}
                                          +   * 
                                          + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The organization. + */ + java.lang.String getOrganization(); + + /** + * + * + *
                                          +   * Required. Specifies the organization whose property usage will be listed.
                                          +   *
                                          +   * Format: organizations/{org_id}
                                          +   * 
                                          + * + * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for organization. + */ + com.google.protobuf.ByteString getOrganizationBytes(); + + /** + * + * + *
                                          +   * Required. The target month to list property usages.
                                          +   *
                                          +   * Format: YYYY-MM. For example, "2025-05"
                                          +   * 
                                          + * + * string month = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The month. + */ + java.lang.String getMonth(); + + /** + * + * + *
                                          +   * Required. The target month to list property usages.
                                          +   *
                                          +   * Format: YYYY-MM. For example, "2025-05"
                                          +   * 
                                          + * + * string month = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for month. + */ + com.google.protobuf.ByteString getMonthBytes(); +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageResponse.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageResponse.java new file mode 100644 index 000000000000..79be24257911 --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageResponse.java @@ -0,0 +1,4905 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +/** + * + * + *
                                          + * Response message for ReportPropertyUsage RPC.
                                          + * 
                                          + * + * Protobuf type {@code google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse} + */ +public final class ReportPropertyUsageResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse) + ReportPropertyUsageResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReportPropertyUsageResponse.newBuilder() to construct. + private ReportPropertyUsageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReportPropertyUsageResponse() { + propertyUsages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportPropertyUsageResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.class, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.Builder + .class); + } + + public interface PropertyUsageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * The name of the Google Analytics Admin API property resource.
                                          +     *
                                          +     * Format: analyticsadmin.googleapis.com/properties/{property_id}
                                          +     * 
                                          + * + * string property = 1; + * + * @return The property. + */ + java.lang.String getProperty(); + + /** + * + * + *
                                          +     * The name of the Google Analytics Admin API property resource.
                                          +     *
                                          +     * Format: analyticsadmin.googleapis.com/properties/{property_id}
                                          +     * 
                                          + * + * string property = 1; + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
                                          +     * The display name of the property.
                                          +     * 
                                          + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                          +     * The display name of the property.
                                          +     * 
                                          + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                          +     * The ID of the property's parent account.
                                          +     * 
                                          + * + * int64 account_id = 3; + * + * @return The accountId. + */ + long getAccountId(); + + /** + * + * + *
                                          +     * The service level of the property.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 4; + * + * @return The enum numeric value on the wire for serviceLevel. + */ + int getServiceLevelValue(); + + /** + * + * + *
                                          +     * The service level of the property.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 4; + * + * @return The serviceLevel. + */ + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel getServiceLevel(); + + /** + * + * + *
                                          +     * The subtype of the analytics property. This affects the billable event
                                          +     * count.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsPropertyType property_type = 5; + * + * @return The enum numeric value on the wire for propertyType. + */ + int getPropertyTypeValue(); + + /** + * + * + *
                                          +     * The subtype of the analytics property. This affects the billable event
                                          +     * count.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsPropertyType property_type = 5; + * + * @return The propertyType. + */ + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType getPropertyType(); + + /** + * + * + *
                                          +     * Total event count that the property received during the requested month.
                                          +     * 
                                          + * + * int64 total_event_count = 6; + * + * @return The totalEventCount. + */ + long getTotalEventCount(); + + /** + * + * + *
                                          +     * The number of events for which the property is billed in the requested
                                          +     * month.
                                          +     * 
                                          + * + * int64 billable_event_count = 7; + * + * @return The billableEventCount. + */ + long getBillableEventCount(); + } + + /** + * + * + *
                                          +   * Contains the count of events received by the property, along with metadata
                                          +   * that influences the volume of `billable` events.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage} + */ + public static final class PropertyUsage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage) + PropertyUsageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PropertyUsage.newBuilder() to construct. + private PropertyUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PropertyUsage() { + property_ = ""; + displayName_ = ""; + serviceLevel_ = 0; + propertyType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PropertyUsage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage.class, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + + /** + * + * + *
                                          +     * The name of the Google Analytics Admin API property resource.
                                          +     *
                                          +     * Format: analyticsadmin.googleapis.com/properties/{property_id}
                                          +     * 
                                          + * + * string property = 1; + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + 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(); + property_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * The name of the Google Analytics Admin API property resource.
                                          +     *
                                          +     * Format: analyticsadmin.googleapis.com/properties/{property_id}
                                          +     * 
                                          + * + * string property = 1; + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +     * The display name of the property.
                                          +     * 
                                          + * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                          +     * The display name of the property.
                                          +     * 
                                          + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCOUNT_ID_FIELD_NUMBER = 3; + private long accountId_ = 0L; + + /** + * + * + *
                                          +     * The ID of the property's parent account.
                                          +     * 
                                          + * + * int64 account_id = 3; + * + * @return The accountId. + */ + @java.lang.Override + public long getAccountId() { + return accountId_; + } + + public static final int SERVICE_LEVEL_FIELD_NUMBER = 4; + private int serviceLevel_ = 0; + + /** + * + * + *
                                          +     * The service level of the property.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 4; + * + * @return The enum numeric value on the wire for serviceLevel. + */ + @java.lang.Override + public int getServiceLevelValue() { + return serviceLevel_; + } + + /** + * + * + *
                                          +     * The service level of the property.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 4; + * + * @return The serviceLevel. + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel getServiceLevel() { + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel result = + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel.forNumber( + serviceLevel_); + return result == null + ? com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel.UNRECOGNIZED + : result; + } + + public static final int PROPERTY_TYPE_FIELD_NUMBER = 5; + private int propertyType_ = 0; + + /** + * + * + *
                                          +     * The subtype of the analytics property. This affects the billable event
                                          +     * count.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsPropertyType property_type = 5; + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + + /** + * + * + *
                                          +     * The subtype of the analytics property. This affects the billable event
                                          +     * count.
                                          +     * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsPropertyType property_type = 5; + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType getPropertyType() { + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType result = + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType.forNumber( + propertyType_); + return result == null + ? com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType.UNRECOGNIZED + : result; + } + + public static final int TOTAL_EVENT_COUNT_FIELD_NUMBER = 6; + private long totalEventCount_ = 0L; + + /** + * + * + *
                                          +     * Total event count that the property received during the requested month.
                                          +     * 
                                          + * + * int64 total_event_count = 6; + * + * @return The totalEventCount. + */ + @java.lang.Override + public long getTotalEventCount() { + return totalEventCount_; + } + + public static final int BILLABLE_EVENT_COUNT_FIELD_NUMBER = 7; + private long billableEventCount_ = 0L; + + /** + * + * + *
                                          +     * The number of events for which the property is billed in the requested
                                          +     * month.
                                          +     * 
                                          + * + * int64 billable_event_count = 7; + * + * @return The billableEventCount. + */ + @java.lang.Override + public long getBillableEventCount() { + return billableEventCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (accountId_ != 0L) { + output.writeInt64(3, accountId_); + } + if (serviceLevel_ + != com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel + .ANALYTICS_SERVICE_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, serviceLevel_); + } + if (propertyType_ + != com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType + .ANALYTICS_PROPERTY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, propertyType_); + } + if (totalEventCount_ != 0L) { + output.writeInt64(6, totalEventCount_); + } + if (billableEventCount_ != 0L) { + output.writeInt64(7, billableEventCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (accountId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, accountId_); + } + if (serviceLevel_ + != com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel + .ANALYTICS_SERVICE_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, serviceLevel_); + } + if (propertyType_ + != com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType + .ANALYTICS_PROPERTY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, propertyType_); + } + if (totalEventCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, totalEventCount_); + } + if (billableEventCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, billableEventCount_); + } + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage)) { + return super.equals(obj); + } + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + other = + (com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage) + obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getAccountId() != other.getAccountId()) return false; + if (serviceLevel_ != other.serviceLevel_) return false; + if (propertyType_ != other.propertyType_) return false; + if (getTotalEventCount() != other.getTotalEventCount()) return false; + if (getBillableEventCount() != other.getBillableEventCount()) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAccountId()); + hash = (37 * hash) + SERVICE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + serviceLevel_; + hash = (37 * hash) + PROPERTY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + propertyType_; + hash = (37 * hash) + TOTAL_EVENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalEventCount()); + hash = (37 * hash) + BILLABLE_EVENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBillableEventCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Contains the count of events received by the property, along with metadata
                                          +     * that influences the volume of `billable` events.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage) + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage.class, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage.Builder.class); + } + + // Construct using + // com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + displayName_ = ""; + accountId_ = 0L; + serviceLevel_ = 0; + propertyType_ = 0; + totalEventCount_ = 0L; + billableEventCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_PropertyUsage_descriptor; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + getDefaultInstanceForType() { + return com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + build() { + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + buildPartial() { + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + result = + new com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.accountId_ = accountId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceLevel_ = serviceLevel_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.propertyType_ = propertyType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.totalEventCount_ = totalEventCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.billableEventCount_ = billableEventCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage) { + return mergeFrom( + (com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + other) { + if (other + == com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage.getDefaultInstance()) return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getAccountId() != 0L) { + setAccountId(other.getAccountId()); + } + if (other.serviceLevel_ != 0) { + setServiceLevelValue(other.getServiceLevelValue()); + } + if (other.propertyType_ != 0) { + setPropertyTypeValue(other.getPropertyTypeValue()); + } + if (other.getTotalEventCount() != 0L) { + setTotalEventCount(other.getTotalEventCount()); + } + if (other.getBillableEventCount() != 0L) { + setBillableEventCount(other.getBillableEventCount()); + } + 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: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + accountId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + serviceLevel_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + propertyType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + totalEventCount_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + billableEventCount_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + 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 property_ = ""; + + /** + * + * + *
                                          +       * The name of the Google Analytics Admin API property resource.
                                          +       *
                                          +       * Format: analyticsadmin.googleapis.com/properties/{property_id}
                                          +       * 
                                          + * + * string property = 1; + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * The name of the Google Analytics Admin API property resource.
                                          +       *
                                          +       * Format: analyticsadmin.googleapis.com/properties/{property_id}
                                          +       * 
                                          + * + * string property = 1; + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * The name of the Google Analytics Admin API property resource.
                                          +       *
                                          +       * Format: analyticsadmin.googleapis.com/properties/{property_id}
                                          +       * 
                                          + * + * string property = 1; + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The name of the Google Analytics Admin API property resource.
                                          +       *
                                          +       * Format: analyticsadmin.googleapis.com/properties/{property_id}
                                          +       * 
                                          + * + * string property = 1; + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The name of the Google Analytics Admin API property resource.
                                          +       *
                                          +       * Format: analyticsadmin.googleapis.com/properties/{property_id}
                                          +       * 
                                          + * + * string property = 1; + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                          +       * The display name of the property.
                                          +       * 
                                          + * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                          +       * The display name of the property.
                                          +       * 
                                          + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                          +       * The display name of the property.
                                          +       * 
                                          + * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The display name of the property.
                                          +       * 
                                          + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The display name of the property.
                                          +       * 
                                          + * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long accountId_; + + /** + * + * + *
                                          +       * The ID of the property's parent account.
                                          +       * 
                                          + * + * int64 account_id = 3; + * + * @return The accountId. + */ + @java.lang.Override + public long getAccountId() { + return accountId_; + } + + /** + * + * + *
                                          +       * The ID of the property's parent account.
                                          +       * 
                                          + * + * int64 account_id = 3; + * + * @param value The accountId to set. + * @return This builder for chaining. + */ + public Builder setAccountId(long value) { + + accountId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The ID of the property's parent account.
                                          +       * 
                                          + * + * int64 account_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearAccountId() { + bitField0_ = (bitField0_ & ~0x00000004); + accountId_ = 0L; + onChanged(); + return this; + } + + private int serviceLevel_ = 0; + + /** + * + * + *
                                          +       * The service level of the property.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 4; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + @java.lang.Override + public int getServiceLevelValue() { + return serviceLevel_; + } + + /** + * + * + *
                                          +       * The service level of the property.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 4; + * + * + * @param value The enum numeric value on the wire for serviceLevel to set. + * @return This builder for chaining. + */ + public Builder setServiceLevelValue(int value) { + serviceLevel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The service level of the property.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 4; + * + * + * @return The serviceLevel. + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel + getServiceLevel() { + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel result = + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel.forNumber( + serviceLevel_); + return result == null + ? com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +       * The service level of the property.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 4; + * + * + * @param value The serviceLevel to set. + * @return This builder for chaining. + */ + public Builder setServiceLevel( + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsServiceLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + serviceLevel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The service level of the property.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceLevel() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceLevel_ = 0; + onChanged(); + return this; + } + + private int propertyType_ = 0; + + /** + * + * + *
                                          +       * The subtype of the analytics property. This affects the billable event
                                          +       * count.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsPropertyType property_type = 5; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + + /** + * + * + *
                                          +       * The subtype of the analytics property. This affects the billable event
                                          +       * count.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsPropertyType property_type = 5; + * + * + * @param value The enum numeric value on the wire for propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyTypeValue(int value) { + propertyType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The subtype of the analytics property. This affects the billable event
                                          +       * count.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsPropertyType property_type = 5; + * + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType + getPropertyType() { + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType result = + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType.forNumber( + propertyType_); + return result == null + ? com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                          +       * The subtype of the analytics property. This affects the billable event
                                          +       * count.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsPropertyType property_type = 5; + * + * + * @param value The propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyType( + com.google.ads.marketingplatform.admin.v1alpha.AnalyticsPropertyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + propertyType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The subtype of the analytics property. This affects the billable event
                                          +       * count.
                                          +       * 
                                          + * + * .google.marketingplatform.admin.v1alpha.AnalyticsPropertyType property_type = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearPropertyType() { + bitField0_ = (bitField0_ & ~0x00000010); + propertyType_ = 0; + onChanged(); + return this; + } + + private long totalEventCount_; + + /** + * + * + *
                                          +       * Total event count that the property received during the requested month.
                                          +       * 
                                          + * + * int64 total_event_count = 6; + * + * @return The totalEventCount. + */ + @java.lang.Override + public long getTotalEventCount() { + return totalEventCount_; + } + + /** + * + * + *
                                          +       * Total event count that the property received during the requested month.
                                          +       * 
                                          + * + * int64 total_event_count = 6; + * + * @param value The totalEventCount to set. + * @return This builder for chaining. + */ + public Builder setTotalEventCount(long value) { + + totalEventCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * Total event count that the property received during the requested month.
                                          +       * 
                                          + * + * int64 total_event_count = 6; + * + * @return This builder for chaining. + */ + public Builder clearTotalEventCount() { + bitField0_ = (bitField0_ & ~0x00000020); + totalEventCount_ = 0L; + onChanged(); + return this; + } + + private long billableEventCount_; + + /** + * + * + *
                                          +       * The number of events for which the property is billed in the requested
                                          +       * month.
                                          +       * 
                                          + * + * int64 billable_event_count = 7; + * + * @return The billableEventCount. + */ + @java.lang.Override + public long getBillableEventCount() { + return billableEventCount_; + } + + /** + * + * + *
                                          +       * The number of events for which the property is billed in the requested
                                          +       * month.
                                          +       * 
                                          + * + * int64 billable_event_count = 7; + * + * @param value The billableEventCount to set. + * @return This builder for chaining. + */ + public Builder setBillableEventCount(long value) { + + billableEventCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The number of events for which the property is billed in the requested
                                          +       * month.
                                          +       * 
                                          + * + * int64 billable_event_count = 7; + * + * @return This builder for chaining. + */ + public Builder clearBillableEventCount() { + bitField0_ = (bitField0_ & ~0x00000040); + billableEventCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage) + } + + // @@protoc_insertion_point(class_scope:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage) + private static final com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage(); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyUsage 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BillInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +     * The amount of the monthly base fee.
                                          +     * 
                                          + * + * .google.type.Money base_fee = 1; + * + * @return Whether the baseFee field is set. + */ + boolean hasBaseFee(); + + /** + * + * + *
                                          +     * The amount of the monthly base fee.
                                          +     * 
                                          + * + * .google.type.Money base_fee = 1; + * + * @return The baseFee. + */ + com.google.type.Money getBaseFee(); + + /** + * + * + *
                                          +     * The amount of the monthly base fee.
                                          +     * 
                                          + * + * .google.type.Money base_fee = 1; + */ + com.google.type.MoneyOrBuilder getBaseFeeOrBuilder(); + + /** + * + * + *
                                          +     * The amount of the event fee.
                                          +     * 
                                          + * + * .google.type.Money event_fee = 2; + * + * @return Whether the eventFee field is set. + */ + boolean hasEventFee(); + + /** + * + * + *
                                          +     * The amount of the event fee.
                                          +     * 
                                          + * + * .google.type.Money event_fee = 2; + * + * @return The eventFee. + */ + com.google.type.Money getEventFee(); + + /** + * + * + *
                                          +     * The amount of the event fee.
                                          +     * 
                                          + * + * .google.type.Money event_fee = 2; + */ + com.google.type.MoneyOrBuilder getEventFeeOrBuilder(); + + /** + * + * + *
                                          +     * The amount of the price protection credit, this is only available for
                                          +     * eligible customers.
                                          +     * 
                                          + * + * .google.type.Money price_protection_credit = 3; + * + * @return Whether the priceProtectionCredit field is set. + */ + boolean hasPriceProtectionCredit(); + + /** + * + * + *
                                          +     * The amount of the price protection credit, this is only available for
                                          +     * eligible customers.
                                          +     * 
                                          + * + * .google.type.Money price_protection_credit = 3; + * + * @return The priceProtectionCredit. + */ + com.google.type.Money getPriceProtectionCredit(); + + /** + * + * + *
                                          +     * The amount of the price protection credit, this is only available for
                                          +     * eligible customers.
                                          +     * 
                                          + * + * .google.type.Money price_protection_credit = 3; + */ + com.google.type.MoneyOrBuilder getPriceProtectionCreditOrBuilder(); + + /** + * + * + *
                                          +     * The total amount of the bill.
                                          +     * 
                                          + * + * .google.type.Money total = 4; + * + * @return Whether the total field is set. + */ + boolean hasTotal(); + + /** + * + * + *
                                          +     * The total amount of the bill.
                                          +     * 
                                          + * + * .google.type.Money total = 4; + * + * @return The total. + */ + com.google.type.Money getTotal(); + + /** + * + * + *
                                          +     * The total amount of the bill.
                                          +     * 
                                          + * + * .google.type.Money total = 4; + */ + com.google.type.MoneyOrBuilder getTotalOrBuilder(); + } + + /** + * + * + *
                                          +   * Contains the bill amount.
                                          +   * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo} + */ + public static final class BillInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo) + BillInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BillInfo.newBuilder() to construct. + private BillInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BillInfo() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BillInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .class, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .Builder.class); + } + + private int bitField0_; + public static final int BASE_FEE_FIELD_NUMBER = 1; + private com.google.type.Money baseFee_; + + /** + * + * + *
                                          +     * The amount of the monthly base fee.
                                          +     * 
                                          + * + * .google.type.Money base_fee = 1; + * + * @return Whether the baseFee field is set. + */ + @java.lang.Override + public boolean hasBaseFee() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +     * The amount of the monthly base fee.
                                          +     * 
                                          + * + * .google.type.Money base_fee = 1; + * + * @return The baseFee. + */ + @java.lang.Override + public com.google.type.Money getBaseFee() { + return baseFee_ == null ? com.google.type.Money.getDefaultInstance() : baseFee_; + } + + /** + * + * + *
                                          +     * The amount of the monthly base fee.
                                          +     * 
                                          + * + * .google.type.Money base_fee = 1; + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getBaseFeeOrBuilder() { + return baseFee_ == null ? com.google.type.Money.getDefaultInstance() : baseFee_; + } + + public static final int EVENT_FEE_FIELD_NUMBER = 2; + private com.google.type.Money eventFee_; + + /** + * + * + *
                                          +     * The amount of the event fee.
                                          +     * 
                                          + * + * .google.type.Money event_fee = 2; + * + * @return Whether the eventFee field is set. + */ + @java.lang.Override + public boolean hasEventFee() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * The amount of the event fee.
                                          +     * 
                                          + * + * .google.type.Money event_fee = 2; + * + * @return The eventFee. + */ + @java.lang.Override + public com.google.type.Money getEventFee() { + return eventFee_ == null ? com.google.type.Money.getDefaultInstance() : eventFee_; + } + + /** + * + * + *
                                          +     * The amount of the event fee.
                                          +     * 
                                          + * + * .google.type.Money event_fee = 2; + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getEventFeeOrBuilder() { + return eventFee_ == null ? com.google.type.Money.getDefaultInstance() : eventFee_; + } + + public static final int PRICE_PROTECTION_CREDIT_FIELD_NUMBER = 3; + private com.google.type.Money priceProtectionCredit_; + + /** + * + * + *
                                          +     * The amount of the price protection credit, this is only available for
                                          +     * eligible customers.
                                          +     * 
                                          + * + * .google.type.Money price_protection_credit = 3; + * + * @return Whether the priceProtectionCredit field is set. + */ + @java.lang.Override + public boolean hasPriceProtectionCredit() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +     * The amount of the price protection credit, this is only available for
                                          +     * eligible customers.
                                          +     * 
                                          + * + * .google.type.Money price_protection_credit = 3; + * + * @return The priceProtectionCredit. + */ + @java.lang.Override + public com.google.type.Money getPriceProtectionCredit() { + return priceProtectionCredit_ == null + ? com.google.type.Money.getDefaultInstance() + : priceProtectionCredit_; + } + + /** + * + * + *
                                          +     * The amount of the price protection credit, this is only available for
                                          +     * eligible customers.
                                          +     * 
                                          + * + * .google.type.Money price_protection_credit = 3; + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getPriceProtectionCreditOrBuilder() { + return priceProtectionCredit_ == null + ? com.google.type.Money.getDefaultInstance() + : priceProtectionCredit_; + } + + public static final int TOTAL_FIELD_NUMBER = 4; + private com.google.type.Money total_; + + /** + * + * + *
                                          +     * The total amount of the bill.
                                          +     * 
                                          + * + * .google.type.Money total = 4; + * + * @return Whether the total field is set. + */ + @java.lang.Override + public boolean hasTotal() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +     * The total amount of the bill.
                                          +     * 
                                          + * + * .google.type.Money total = 4; + * + * @return The total. + */ + @java.lang.Override + public com.google.type.Money getTotal() { + return total_ == null ? com.google.type.Money.getDefaultInstance() : total_; + } + + /** + * + * + *
                                          +     * The total amount of the bill.
                                          +     * 
                                          + * + * .google.type.Money total = 4; + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getTotalOrBuilder() { + return total_ == null ? com.google.type.Money.getDefaultInstance() : total_; + } + + 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, getBaseFee()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEventFee()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPriceProtectionCredit()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getTotal()); + } + 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, getBaseFee()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEventFee()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPriceProtectionCredit()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTotal()); + } + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo)) { + return super.equals(obj); + } + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo other = + (com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo) obj; + + if (hasBaseFee() != other.hasBaseFee()) return false; + if (hasBaseFee()) { + if (!getBaseFee().equals(other.getBaseFee())) return false; + } + if (hasEventFee() != other.hasEventFee()) return false; + if (hasEventFee()) { + if (!getEventFee().equals(other.getEventFee())) return false; + } + if (hasPriceProtectionCredit() != other.hasPriceProtectionCredit()) return false; + if (hasPriceProtectionCredit()) { + if (!getPriceProtectionCredit().equals(other.getPriceProtectionCredit())) return false; + } + if (hasTotal() != other.hasTotal()) return false; + if (hasTotal()) { + if (!getTotal().equals(other.getTotal())) 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 (hasBaseFee()) { + hash = (37 * hash) + BASE_FEE_FIELD_NUMBER; + hash = (53 * hash) + getBaseFee().hashCode(); + } + if (hasEventFee()) { + hash = (37 * hash) + EVENT_FEE_FIELD_NUMBER; + hash = (53 * hash) + getEventFee().hashCode(); + } + if (hasPriceProtectionCredit()) { + hash = (37 * hash) + PRICE_PROTECTION_CREDIT_FIELD_NUMBER; + hash = (53 * hash) + getPriceProtectionCredit().hashCode(); + } + if (hasTotal()) { + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +     * Contains the bill amount.
                                          +     * 
                                          + * + * Protobuf type {@code + * google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo) + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .class, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .Builder.class); + } + + // Construct using + // com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBaseFeeFieldBuilder(); + getEventFeeFieldBuilder(); + getPriceProtectionCreditFieldBuilder(); + getTotalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + baseFee_ = null; + if (baseFeeBuilder_ != null) { + baseFeeBuilder_.dispose(); + baseFeeBuilder_ = null; + } + eventFee_ = null; + if (eventFeeBuilder_ != null) { + eventFeeBuilder_.dispose(); + eventFeeBuilder_ = null; + } + priceProtectionCredit_ = null; + if (priceProtectionCreditBuilder_ != null) { + priceProtectionCreditBuilder_.dispose(); + priceProtectionCreditBuilder_ = null; + } + total_ = null; + if (totalBuilder_ != null) { + totalBuilder_.dispose(); + totalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_BillInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + getDefaultInstanceForType() { + return com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + build() { + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + buildPartial() { + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo result = + new com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseFee_ = baseFeeBuilder_ == null ? baseFee_ : baseFeeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventFee_ = eventFeeBuilder_ == null ? eventFee_ : eventFeeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.priceProtectionCredit_ = + priceProtectionCreditBuilder_ == null + ? priceProtectionCredit_ + : priceProtectionCreditBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.total_ = totalBuilder_ == null ? total_ : totalBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo) { + return mergeFrom( + (com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + other) { + if (other + == com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .getDefaultInstance()) return this; + if (other.hasBaseFee()) { + mergeBaseFee(other.getBaseFee()); + } + if (other.hasEventFee()) { + mergeEventFee(other.getEventFee()); + } + if (other.hasPriceProtectionCredit()) { + mergePriceProtectionCredit(other.getPriceProtectionCredit()); + } + if (other.hasTotal()) { + mergeTotal(other.getTotal()); + } + 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(getBaseFeeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEventFeeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getPriceProtectionCreditFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getTotalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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.type.Money baseFee_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + baseFeeBuilder_; + + /** + * + * + *
                                          +       * The amount of the monthly base fee.
                                          +       * 
                                          + * + * .google.type.Money base_fee = 1; + * + * @return Whether the baseFee field is set. + */ + public boolean hasBaseFee() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +       * The amount of the monthly base fee.
                                          +       * 
                                          + * + * .google.type.Money base_fee = 1; + * + * @return The baseFee. + */ + public com.google.type.Money getBaseFee() { + if (baseFeeBuilder_ == null) { + return baseFee_ == null ? com.google.type.Money.getDefaultInstance() : baseFee_; + } else { + return baseFeeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * The amount of the monthly base fee.
                                          +       * 
                                          + * + * .google.type.Money base_fee = 1; + */ + public Builder setBaseFee(com.google.type.Money value) { + if (baseFeeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + baseFee_ = value; + } else { + baseFeeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The amount of the monthly base fee.
                                          +       * 
                                          + * + * .google.type.Money base_fee = 1; + */ + public Builder setBaseFee(com.google.type.Money.Builder builderForValue) { + if (baseFeeBuilder_ == null) { + baseFee_ = builderForValue.build(); + } else { + baseFeeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The amount of the monthly base fee.
                                          +       * 
                                          + * + * .google.type.Money base_fee = 1; + */ + public Builder mergeBaseFee(com.google.type.Money value) { + if (baseFeeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && baseFee_ != null + && baseFee_ != com.google.type.Money.getDefaultInstance()) { + getBaseFeeBuilder().mergeFrom(value); + } else { + baseFee_ = value; + } + } else { + baseFeeBuilder_.mergeFrom(value); + } + if (baseFee_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The amount of the monthly base fee.
                                          +       * 
                                          + * + * .google.type.Money base_fee = 1; + */ + public Builder clearBaseFee() { + bitField0_ = (bitField0_ & ~0x00000001); + baseFee_ = null; + if (baseFeeBuilder_ != null) { + baseFeeBuilder_.dispose(); + baseFeeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The amount of the monthly base fee.
                                          +       * 
                                          + * + * .google.type.Money base_fee = 1; + */ + public com.google.type.Money.Builder getBaseFeeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBaseFeeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The amount of the monthly base fee.
                                          +       * 
                                          + * + * .google.type.Money base_fee = 1; + */ + public com.google.type.MoneyOrBuilder getBaseFeeOrBuilder() { + if (baseFeeBuilder_ != null) { + return baseFeeBuilder_.getMessageOrBuilder(); + } else { + return baseFee_ == null ? com.google.type.Money.getDefaultInstance() : baseFee_; + } + } + + /** + * + * + *
                                          +       * The amount of the monthly base fee.
                                          +       * 
                                          + * + * .google.type.Money base_fee = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getBaseFeeFieldBuilder() { + if (baseFeeBuilder_ == null) { + baseFeeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>(getBaseFee(), getParentForChildren(), isClean()); + baseFee_ = null; + } + return baseFeeBuilder_; + } + + private com.google.type.Money eventFee_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + eventFeeBuilder_; + + /** + * + * + *
                                          +       * The amount of the event fee.
                                          +       * 
                                          + * + * .google.type.Money event_fee = 2; + * + * @return Whether the eventFee field is set. + */ + public boolean hasEventFee() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +       * The amount of the event fee.
                                          +       * 
                                          + * + * .google.type.Money event_fee = 2; + * + * @return The eventFee. + */ + public com.google.type.Money getEventFee() { + if (eventFeeBuilder_ == null) { + return eventFee_ == null ? com.google.type.Money.getDefaultInstance() : eventFee_; + } else { + return eventFeeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * The amount of the event fee.
                                          +       * 
                                          + * + * .google.type.Money event_fee = 2; + */ + public Builder setEventFee(com.google.type.Money value) { + if (eventFeeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventFee_ = value; + } else { + eventFeeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The amount of the event fee.
                                          +       * 
                                          + * + * .google.type.Money event_fee = 2; + */ + public Builder setEventFee(com.google.type.Money.Builder builderForValue) { + if (eventFeeBuilder_ == null) { + eventFee_ = builderForValue.build(); + } else { + eventFeeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The amount of the event fee.
                                          +       * 
                                          + * + * .google.type.Money event_fee = 2; + */ + public Builder mergeEventFee(com.google.type.Money value) { + if (eventFeeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && eventFee_ != null + && eventFee_ != com.google.type.Money.getDefaultInstance()) { + getEventFeeBuilder().mergeFrom(value); + } else { + eventFee_ = value; + } + } else { + eventFeeBuilder_.mergeFrom(value); + } + if (eventFee_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The amount of the event fee.
                                          +       * 
                                          + * + * .google.type.Money event_fee = 2; + */ + public Builder clearEventFee() { + bitField0_ = (bitField0_ & ~0x00000002); + eventFee_ = null; + if (eventFeeBuilder_ != null) { + eventFeeBuilder_.dispose(); + eventFeeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The amount of the event fee.
                                          +       * 
                                          + * + * .google.type.Money event_fee = 2; + */ + public com.google.type.Money.Builder getEventFeeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEventFeeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The amount of the event fee.
                                          +       * 
                                          + * + * .google.type.Money event_fee = 2; + */ + public com.google.type.MoneyOrBuilder getEventFeeOrBuilder() { + if (eventFeeBuilder_ != null) { + return eventFeeBuilder_.getMessageOrBuilder(); + } else { + return eventFee_ == null ? com.google.type.Money.getDefaultInstance() : eventFee_; + } + } + + /** + * + * + *
                                          +       * The amount of the event fee.
                                          +       * 
                                          + * + * .google.type.Money event_fee = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getEventFeeFieldBuilder() { + if (eventFeeBuilder_ == null) { + eventFeeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>(getEventFee(), getParentForChildren(), isClean()); + eventFee_ = null; + } + return eventFeeBuilder_; + } + + private com.google.type.Money priceProtectionCredit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + priceProtectionCreditBuilder_; + + /** + * + * + *
                                          +       * The amount of the price protection credit, this is only available for
                                          +       * eligible customers.
                                          +       * 
                                          + * + * .google.type.Money price_protection_credit = 3; + * + * @return Whether the priceProtectionCredit field is set. + */ + public boolean hasPriceProtectionCredit() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                          +       * The amount of the price protection credit, this is only available for
                                          +       * eligible customers.
                                          +       * 
                                          + * + * .google.type.Money price_protection_credit = 3; + * + * @return The priceProtectionCredit. + */ + public com.google.type.Money getPriceProtectionCredit() { + if (priceProtectionCreditBuilder_ == null) { + return priceProtectionCredit_ == null + ? com.google.type.Money.getDefaultInstance() + : priceProtectionCredit_; + } else { + return priceProtectionCreditBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * The amount of the price protection credit, this is only available for
                                          +       * eligible customers.
                                          +       * 
                                          + * + * .google.type.Money price_protection_credit = 3; + */ + public Builder setPriceProtectionCredit(com.google.type.Money value) { + if (priceProtectionCreditBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + priceProtectionCredit_ = value; + } else { + priceProtectionCreditBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The amount of the price protection credit, this is only available for
                                          +       * eligible customers.
                                          +       * 
                                          + * + * .google.type.Money price_protection_credit = 3; + */ + public Builder setPriceProtectionCredit(com.google.type.Money.Builder builderForValue) { + if (priceProtectionCreditBuilder_ == null) { + priceProtectionCredit_ = builderForValue.build(); + } else { + priceProtectionCreditBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The amount of the price protection credit, this is only available for
                                          +       * eligible customers.
                                          +       * 
                                          + * + * .google.type.Money price_protection_credit = 3; + */ + public Builder mergePriceProtectionCredit(com.google.type.Money value) { + if (priceProtectionCreditBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && priceProtectionCredit_ != null + && priceProtectionCredit_ != com.google.type.Money.getDefaultInstance()) { + getPriceProtectionCreditBuilder().mergeFrom(value); + } else { + priceProtectionCredit_ = value; + } + } else { + priceProtectionCreditBuilder_.mergeFrom(value); + } + if (priceProtectionCredit_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The amount of the price protection credit, this is only available for
                                          +       * eligible customers.
                                          +       * 
                                          + * + * .google.type.Money price_protection_credit = 3; + */ + public Builder clearPriceProtectionCredit() { + bitField0_ = (bitField0_ & ~0x00000004); + priceProtectionCredit_ = null; + if (priceProtectionCreditBuilder_ != null) { + priceProtectionCreditBuilder_.dispose(); + priceProtectionCreditBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The amount of the price protection credit, this is only available for
                                          +       * eligible customers.
                                          +       * 
                                          + * + * .google.type.Money price_protection_credit = 3; + */ + public com.google.type.Money.Builder getPriceProtectionCreditBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPriceProtectionCreditFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The amount of the price protection credit, this is only available for
                                          +       * eligible customers.
                                          +       * 
                                          + * + * .google.type.Money price_protection_credit = 3; + */ + public com.google.type.MoneyOrBuilder getPriceProtectionCreditOrBuilder() { + if (priceProtectionCreditBuilder_ != null) { + return priceProtectionCreditBuilder_.getMessageOrBuilder(); + } else { + return priceProtectionCredit_ == null + ? com.google.type.Money.getDefaultInstance() + : priceProtectionCredit_; + } + } + + /** + * + * + *
                                          +       * The amount of the price protection credit, this is only available for
                                          +       * eligible customers.
                                          +       * 
                                          + * + * .google.type.Money price_protection_credit = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getPriceProtectionCreditFieldBuilder() { + if (priceProtectionCreditBuilder_ == null) { + priceProtectionCreditBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + getPriceProtectionCredit(), getParentForChildren(), isClean()); + priceProtectionCredit_ = null; + } + return priceProtectionCreditBuilder_; + } + + private com.google.type.Money total_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + totalBuilder_; + + /** + * + * + *
                                          +       * The total amount of the bill.
                                          +       * 
                                          + * + * .google.type.Money total = 4; + * + * @return Whether the total field is set. + */ + public boolean hasTotal() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                          +       * The total amount of the bill.
                                          +       * 
                                          + * + * .google.type.Money total = 4; + * + * @return The total. + */ + public com.google.type.Money getTotal() { + if (totalBuilder_ == null) { + return total_ == null ? com.google.type.Money.getDefaultInstance() : total_; + } else { + return totalBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +       * The total amount of the bill.
                                          +       * 
                                          + * + * .google.type.Money total = 4; + */ + public Builder setTotal(com.google.type.Money value) { + if (totalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + total_ = value; + } else { + totalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The total amount of the bill.
                                          +       * 
                                          + * + * .google.type.Money total = 4; + */ + public Builder setTotal(com.google.type.Money.Builder builderForValue) { + if (totalBuilder_ == null) { + total_ = builderForValue.build(); + } else { + totalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The total amount of the bill.
                                          +       * 
                                          + * + * .google.type.Money total = 4; + */ + public Builder mergeTotal(com.google.type.Money value) { + if (totalBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && total_ != null + && total_ != com.google.type.Money.getDefaultInstance()) { + getTotalBuilder().mergeFrom(value); + } else { + total_ = value; + } + } else { + totalBuilder_.mergeFrom(value); + } + if (total_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +       * The total amount of the bill.
                                          +       * 
                                          + * + * .google.type.Money total = 4; + */ + public Builder clearTotal() { + bitField0_ = (bitField0_ & ~0x00000008); + total_ = null; + if (totalBuilder_ != null) { + totalBuilder_.dispose(); + totalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +       * The total amount of the bill.
                                          +       * 
                                          + * + * .google.type.Money total = 4; + */ + public com.google.type.Money.Builder getTotalBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getTotalFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +       * The total amount of the bill.
                                          +       * 
                                          + * + * .google.type.Money total = 4; + */ + public com.google.type.MoneyOrBuilder getTotalOrBuilder() { + if (totalBuilder_ != null) { + return totalBuilder_.getMessageOrBuilder(); + } else { + return total_ == null ? com.google.type.Money.getDefaultInstance() : total_; + } + } + + /** + * + * + *
                                          +       * The total amount of the bill.
                                          +       * 
                                          + * + * .google.type.Money total = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getTotalFieldBuilder() { + if (totalBuilder_ == null) { + totalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>(getTotal(), getParentForChildren(), isClean()); + total_ = null; + } + return totalBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo) + } + + // @@protoc_insertion_point(class_scope:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo) + private static final com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo(); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillInfo 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PROPERTY_USAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage> + propertyUsages_; + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage> + getPropertyUsagesList() { + return propertyUsages_; + } + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsageOrBuilder> + getPropertyUsagesOrBuilderList() { + return propertyUsages_; + } + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + @java.lang.Override + public int getPropertyUsagesCount() { + return propertyUsages_.size(); + } + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + getPropertyUsages(int index) { + return propertyUsages_.get(index); + } + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsageOrBuilder + getPropertyUsagesOrBuilder(int index) { + return propertyUsages_.get(index); + } + + public static final int BILL_INFO_FIELD_NUMBER = 2; + private com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + billInfo_; + + /** + * + * + *
                                          +   * Bill amount in the specified organization and month.
                                          +   *
                                          +   * Will be empty if user only has access to usage data.
                                          +   * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + * + * @return Whether the billInfo field is set. + */ + @java.lang.Override + public boolean hasBillInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                          +   * Bill amount in the specified organization and month.
                                          +   *
                                          +   * Will be empty if user only has access to usage data.
                                          +   * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + * + * @return The billInfo. + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + getBillInfo() { + return billInfo_ == null + ? com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .getDefaultInstance() + : billInfo_; + } + + /** + * + * + *
                                          +   * Bill amount in the specified organization and month.
                                          +   *
                                          +   * Will be empty if user only has access to usage data.
                                          +   * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + */ + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfoOrBuilder + getBillInfoOrBuilder() { + return billInfo_ == null + ? com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .getDefaultInstance() + : billInfo_; + } + + 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 < propertyUsages_.size(); i++) { + output.writeMessage(1, propertyUsages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getBillInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < propertyUsages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, propertyUsages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBillInfo()); + } + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse)) { + return super.equals(obj); + } + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse other = + (com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse) obj; + + if (!getPropertyUsagesList().equals(other.getPropertyUsagesList())) return false; + if (hasBillInfo() != other.hasBillInfo()) return false; + if (hasBillInfo()) { + if (!getBillInfo().equals(other.getBillInfo())) 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 (getPropertyUsagesCount() > 0) { + hash = (37 * hash) + PROPERTY_USAGES_FIELD_NUMBER; + hash = (53 * hash) + getPropertyUsagesList().hashCode(); + } + if (hasBillInfo()) { + hash = (37 * hash) + BILL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getBillInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                          +   * Response message for ReportPropertyUsage RPC.
                                          +   * 
                                          + * + * Protobuf type {@code google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse) + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.class, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.Builder + .class); + } + + // Construct using + // com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertyUsagesFieldBuilder(); + getBillInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (propertyUsagesBuilder_ == null) { + propertyUsages_ = java.util.Collections.emptyList(); + } else { + propertyUsages_ = null; + propertyUsagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + billInfo_ = null; + if (billInfoBuilder_ != null) { + billInfoBuilder_.dispose(); + billInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminProto + .internal_static_google_marketingplatform_admin_v1alpha_ReportPropertyUsageResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + getDefaultInstanceForType() { + return com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse build() { + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + buildPartial() { + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse result = + new com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse result) { + if (propertyUsagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + propertyUsages_ = java.util.Collections.unmodifiableList(propertyUsages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.propertyUsages_ = propertyUsages_; + } else { + result.propertyUsages_ = propertyUsagesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.billInfo_ = billInfoBuilder_ == null ? billInfo_ : billInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse) { + return mergeFrom( + (com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse other) { + if (other + == com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .getDefaultInstance()) return this; + if (propertyUsagesBuilder_ == null) { + if (!other.propertyUsages_.isEmpty()) { + if (propertyUsages_.isEmpty()) { + propertyUsages_ = other.propertyUsages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePropertyUsagesIsMutable(); + propertyUsages_.addAll(other.propertyUsages_); + } + onChanged(); + } + } else { + if (!other.propertyUsages_.isEmpty()) { + if (propertyUsagesBuilder_.isEmpty()) { + propertyUsagesBuilder_.dispose(); + propertyUsagesBuilder_ = null; + propertyUsages_ = other.propertyUsages_; + bitField0_ = (bitField0_ & ~0x00000001); + propertyUsagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertyUsagesFieldBuilder() + : null; + } else { + propertyUsagesBuilder_.addAllMessages(other.propertyUsages_); + } + } + } + if (other.hasBillInfo()) { + mergeBillInfo(other.getBillInfo()); + } + 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage + m = + input.readMessage( + com.google.ads.marketingplatform.admin.v1alpha + .ReportPropertyUsageResponse.PropertyUsage.parser(), + extensionRegistry); + if (propertyUsagesBuilder_ == null) { + ensurePropertyUsagesIsMutable(); + propertyUsages_.add(m); + } else { + propertyUsagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage(getBillInfoFieldBuilder().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.util.List< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage> + propertyUsages_ = java.util.Collections.emptyList(); + + private void ensurePropertyUsagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + propertyUsages_ = + new java.util.ArrayList< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage>(propertyUsages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + .Builder, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsageOrBuilder> + propertyUsagesBuilder_; + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage> + getPropertyUsagesList() { + if (propertyUsagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(propertyUsages_); + } else { + return propertyUsagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public int getPropertyUsagesCount() { + if (propertyUsagesBuilder_ == null) { + return propertyUsages_.size(); + } else { + return propertyUsagesBuilder_.getCount(); + } + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + getPropertyUsages(int index) { + if (propertyUsagesBuilder_ == null) { + return propertyUsages_.get(index); + } else { + return propertyUsagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public Builder setPropertyUsages( + int index, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + value) { + if (propertyUsagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyUsagesIsMutable(); + propertyUsages_.set(index, value); + onChanged(); + } else { + propertyUsagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public Builder setPropertyUsages( + int index, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + .Builder + builderForValue) { + if (propertyUsagesBuilder_ == null) { + ensurePropertyUsagesIsMutable(); + propertyUsages_.set(index, builderForValue.build()); + onChanged(); + } else { + propertyUsagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public Builder addPropertyUsages( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + value) { + if (propertyUsagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyUsagesIsMutable(); + propertyUsages_.add(value); + onChanged(); + } else { + propertyUsagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public Builder addPropertyUsages( + int index, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + value) { + if (propertyUsagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyUsagesIsMutable(); + propertyUsages_.add(index, value); + onChanged(); + } else { + propertyUsagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public Builder addPropertyUsages( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + .Builder + builderForValue) { + if (propertyUsagesBuilder_ == null) { + ensurePropertyUsagesIsMutable(); + propertyUsages_.add(builderForValue.build()); + onChanged(); + } else { + propertyUsagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public Builder addPropertyUsages( + int index, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + .Builder + builderForValue) { + if (propertyUsagesBuilder_ == null) { + ensurePropertyUsagesIsMutable(); + propertyUsages_.add(index, builderForValue.build()); + onChanged(); + } else { + propertyUsagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public Builder addAllPropertyUsages( + java.lang.Iterable< + ? extends + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage> + values) { + if (propertyUsagesBuilder_ == null) { + ensurePropertyUsagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyUsages_); + onChanged(); + } else { + propertyUsagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public Builder clearPropertyUsages() { + if (propertyUsagesBuilder_ == null) { + propertyUsages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + propertyUsagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public Builder removePropertyUsages(int index) { + if (propertyUsagesBuilder_ == null) { + ensurePropertyUsagesIsMutable(); + propertyUsages_.remove(index); + onChanged(); + } else { + propertyUsagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + .Builder + getPropertyUsagesBuilder(int index) { + return getPropertyUsagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsageOrBuilder + getPropertyUsagesOrBuilder(int index) { + if (propertyUsagesBuilder_ == null) { + return propertyUsages_.get(index); + } else { + return propertyUsagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public java.util.List< + ? extends + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsageOrBuilder> + getPropertyUsagesOrBuilderList() { + if (propertyUsagesBuilder_ != null) { + return propertyUsagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(propertyUsages_); + } + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + .Builder + addPropertyUsagesBuilder() { + return getPropertyUsagesFieldBuilder() + .addBuilder( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + .Builder + addPropertyUsagesBuilder(int index) { + return getPropertyUsagesFieldBuilder() + .addBuilder( + index, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage.getDefaultInstance()); + } + + /** + * + * + *
                                          +     * Usage data for all properties in the specified organization and month.
                                          +     * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + public java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + .Builder> + getPropertyUsagesBuilderList() { + return getPropertyUsagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + .Builder, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsageOrBuilder> + getPropertyUsagesFieldBuilder() { + if (propertyUsagesBuilder_ == null) { + propertyUsagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsage.Builder, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsageOrBuilder>( + propertyUsages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + propertyUsages_ = null; + } + return propertyUsagesBuilder_; + } + + private com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + billInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .Builder, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfoOrBuilder> + billInfoBuilder_; + + /** + * + * + *
                                          +     * Bill amount in the specified organization and month.
                                          +     *
                                          +     * Will be empty if user only has access to usage data.
                                          +     * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + * + * @return Whether the billInfo field is set. + */ + public boolean hasBillInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                          +     * Bill amount in the specified organization and month.
                                          +     *
                                          +     * Will be empty if user only has access to usage data.
                                          +     * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + * + * @return The billInfo. + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + getBillInfo() { + if (billInfoBuilder_ == null) { + return billInfo_ == null + ? com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .getDefaultInstance() + : billInfo_; + } else { + return billInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                          +     * Bill amount in the specified organization and month.
                                          +     *
                                          +     * Will be empty if user only has access to usage data.
                                          +     * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + */ + public Builder setBillInfo( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo value) { + if (billInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + billInfo_ = value; + } else { + billInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Bill amount in the specified organization and month.
                                          +     *
                                          +     * Will be empty if user only has access to usage data.
                                          +     * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + */ + public Builder setBillInfo( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo.Builder + builderForValue) { + if (billInfoBuilder_ == null) { + billInfo_ = builderForValue.build(); + } else { + billInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Bill amount in the specified organization and month.
                                          +     *
                                          +     * Will be empty if user only has access to usage data.
                                          +     * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + */ + public Builder mergeBillInfo( + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo value) { + if (billInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && billInfo_ != null + && billInfo_ + != com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfo.getDefaultInstance()) { + getBillInfoBuilder().mergeFrom(value); + } else { + billInfo_ = value; + } + } else { + billInfoBuilder_.mergeFrom(value); + } + if (billInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                          +     * Bill amount in the specified organization and month.
                                          +     *
                                          +     * Will be empty if user only has access to usage data.
                                          +     * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + */ + public Builder clearBillInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + billInfo_ = null; + if (billInfoBuilder_ != null) { + billInfoBuilder_.dispose(); + billInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                          +     * Bill amount in the specified organization and month.
                                          +     *
                                          +     * Will be empty if user only has access to usage data.
                                          +     * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .Builder + getBillInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getBillInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                          +     * Bill amount in the specified organization and month.
                                          +     *
                                          +     * Will be empty if user only has access to usage data.
                                          +     * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + */ + public com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfoOrBuilder + getBillInfoOrBuilder() { + if (billInfoBuilder_ != null) { + return billInfoBuilder_.getMessageOrBuilder(); + } else { + return billInfo_ == null + ? com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .getDefaultInstance() + : billInfo_; + } + } + + /** + * + * + *
                                          +     * Bill amount in the specified organization and month.
                                          +     *
                                          +     * Will be empty if user only has access to usage data.
                                          +     * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .Builder, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfoOrBuilder> + getBillInfoFieldBuilder() { + if (billInfoBuilder_ == null) { + billInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo + .Builder, + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .BillInfoOrBuilder>(getBillInfo(), getParentForChildren(), isClean()); + billInfo_ = null; + } + return billInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse) + } + + // @@protoc_insertion_point(class_scope:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse) + private static final com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse(); + } + + public static com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportPropertyUsageResponse 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.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageResponseOrBuilder.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageResponseOrBuilder.java new file mode 100644 index 000000000000..cd08cd96cf6d --- /dev/null +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ReportPropertyUsageResponseOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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! +// source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.marketingplatform.admin.v1alpha; + +public interface ReportPropertyUsageResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + java.util.List< + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage> + getPropertyUsagesList(); + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage + getPropertyUsages(int index); + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + int getPropertyUsagesCount(); + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + java.util.List< + ? extends + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse + .PropertyUsageOrBuilder> + getPropertyUsagesOrBuilderList(); + + /** + * + * + *
                                          +   * Usage data for all properties in the specified organization and month.
                                          +   * 
                                          + * + * + * repeated .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage property_usages = 1; + * + */ + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsageOrBuilder + getPropertyUsagesOrBuilder(int index); + + /** + * + * + *
                                          +   * Bill amount in the specified organization and month.
                                          +   *
                                          +   * Will be empty if user only has access to usage data.
                                          +   * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + * + * @return Whether the billInfo field is set. + */ + boolean hasBillInfo(); + + /** + * + * + *
                                          +   * Bill amount in the specified organization and month.
                                          +   *
                                          +   * Will be empty if user only has access to usage data.
                                          +   * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + * + * @return The billInfo. + */ + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo getBillInfo(); + + /** + * + * + *
                                          +   * Bill amount in the specified organization and month.
                                          +   *
                                          +   * Will be empty if user only has access to usage data.
                                          +   * 
                                          + * + * + * .google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo bill_info = 2; + * + */ + com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfoOrBuilder + getBillInfoOrBuilder(); +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ResourcesProto.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ResourcesProto.java index 1fcb687c9664..9662a95c3ac4 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ResourcesProto.java +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/ResourcesProto.java @@ -67,7 +67,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ountLink*\220\001\n\025LinkVerificationState\022\'\n#LI" + "NK_VERIFICATION_STATE_UNSPECIFIED\020\000\022$\n L" + "INK_VERIFICATION_STATE_VERIFIED\020\001\022(\n$LIN" - + "K_VERIFICATION_STATE_NOT_VERIFIED\020\002B\330\002\n." + + "K_VERIFICATION_STATE_NOT_VERIFIED\020\002*\207\001\n\025" + + "AnalyticsServiceLevel\022\'\n#ANALYTICS_SERVI" + + "CE_LEVEL_UNSPECIFIED\020\000\022$\n ANALYTICS_SERV" + + "ICE_LEVEL_STANDARD\020\001\022\037\n\033ANALYTICS_SERVIC" + + "E_LEVEL_360\020\002*\263\001\n\025AnalyticsPropertyType\022" + + "\'\n#ANALYTICS_PROPERTY_TYPE_UNSPECIFIED\020\000" + + "\022$\n ANALYTICS_PROPERTY_TYPE_ORDINARY\020\001\022\'" + + "\n#ANALYTICS_PROPERTY_TYPE_SUBPROPERTY\020\002\022" + + "\"\n\036ANALYTICS_PROPERTY_TYPE_ROLLUP\020\003B\330\002\n." + "com.google.ads.marketingplatform.admin.v" + "1alphaB\016ResourcesProtoP\001ZKgoogle.golang." + "org/genproto/googleapis/marketingplatfor" diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/proto/google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/proto/google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto index 20283ec19aa3..32579bc26818 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/proto/google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/proto/google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto @@ -22,6 +22,8 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/marketingplatform/admin/v1alpha/resources.proto"; import "google/protobuf/empty.proto"; +import "google/type/date.proto"; +import "google/type/money.proto"; option csharp_namespace = "Google.Ads.MarketingPlatform.Admin.V1Alpha"; option go_package = "google.golang.org/genproto/googleapis/marketingplatform/admin/v1alpha;admin"; @@ -50,6 +52,26 @@ service MarketingplatformAdminService { option (google.api.method_signature) = "name"; } + // Returns a list of organizations that the user has access to. + rpc ListOrganizations(ListOrganizationsRequest) + returns (ListOrganizationsResponse) { + option (google.api.http) = { + get: "/v1alpha/organizations" + }; + } + + // Returns a list of clients managed by the sales partner organization. + // + // User needs to be an OrgAdmin/BillingAdmin on the sales partner organization + // in order to view the end clients. + rpc FindSalesPartnerManagedClients(FindSalesPartnerManagedClientsRequest) + returns (FindSalesPartnerManagedClientsResponse) { + option (google.api.http) = { + post: "/v1alpha/{organization=organizations/*}:findSalesPartnerManagedClients" + body: "*" + }; + } + // Lists the Google Analytics accounts link to the specified Google Marketing // Platform organization. rpc ListAnalyticsAccountLinks(ListAnalyticsAccountLinksRequest) @@ -97,18 +119,25 @@ service MarketingplatformAdminService { }; option (google.api.method_signature) = "analytics_account_link"; } -} - -// Various levels of service for Google Analytics. -enum AnalyticsServiceLevel { - // Service level unspecified. - ANALYTICS_SERVICE_LEVEL_UNSPECIFIED = 0; - // The standard version of Google Analytics. - ANALYTICS_SERVICE_LEVEL_STANDARD = 1; - - // The premium version of Google Analytics. - ANALYTICS_SERVICE_LEVEL_360 = 2; + // Get the usage and billing data for properties within the organization for + // the specified month. + // + // Per direct client org, user needs to be OrgAdmin/BillingAdmin on the + // organization in order to view the billing and usage data. + // + // Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on + // the sales partner org in order to view the billing and usage data, or + // OrgAdmin/BillingAdmin on the sales partner client org in order to view the + // usage data only. + rpc ReportPropertyUsage(ReportPropertyUsageRequest) + returns (ReportPropertyUsageResponse) { + option (google.api.http) = { + post: "/v1alpha/{organization=organizations/*}:reportPropertyUsage" + body: "*" + }; + option (google.api.method_signature) = "organization"; + } } // Request message for GetOrganization RPC. @@ -123,6 +152,68 @@ message GetOrganizationRequest { ]; } +// Request message for ListOrganizations RPC. +message ListOrganizationsRequest { + // Optional. The maximum number of organizations to return in one call. The + // service may return fewer than this value. + // + // If unspecified, at most 50 organizations will be returned. The + // maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous ListOrganizations call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListOrganizations` must match the call that provided the page + // token. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListOrganizations RPC. +message ListOrganizationsResponse { + // The Organization resource that the user has access to, which includes the + // org id and display name. + repeated Organization organizations = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for FindSalesPartnerManagedClients RPC. +message FindSalesPartnerManagedClientsRequest { + // Required. The name of the sales partner organization. + // Format: organizations/{org_id} + string organization = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "marketingplatformadmin.googleapis.com/Organization" + } + ]; + + // Optional. If set, only active and just ended clients will be returned. + bool is_active = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for FindSalesPartnerManagedClients RPC. +message FindSalesPartnerManagedClientsResponse { + // Contains the client data. + message ClientData { + // The end client that has/had contract with the requested sales org. + Organization organization = 1; + + // The start date of the contract between the sales org and the end client. + google.type.Date start_date = 2; + + // The end date of the contract between the sales org and the end client. + google.type.Date end_date = 3; + } + + // The clients managed by the sales org. + repeated ClientData client_data = 1; +} + // Request message for ListAnalyticsAccountLinks RPC. message ListAnalyticsAccountLinksRequest { // Required. The parent organization, which owns this collection of Analytics @@ -214,3 +305,72 @@ message SetPropertyServiceLevelRequest { // Response message for SetPropertyServiceLevel RPC. message SetPropertyServiceLevelResponse {} + +// Request message for ReportPropertyUsage RPC. +message ReportPropertyUsageRequest { + // Required. Specifies the organization whose property usage will be listed. + // + // Format: organizations/{org_id} + string organization = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The target month to list property usages. + // + // Format: YYYY-MM. For example, "2025-05" + string month = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for ReportPropertyUsage RPC. +message ReportPropertyUsageResponse { + // Contains the count of events received by the property, along with metadata + // that influences the volume of `billable` events. + message PropertyUsage { + // The name of the Google Analytics Admin API property resource. + // + // Format: analyticsadmin.googleapis.com/properties/{property_id} + string property = 1; + + // The display name of the property. + string display_name = 2; + + // The ID of the property's parent account. + int64 account_id = 3; + + // The service level of the property. + AnalyticsServiceLevel service_level = 4; + + // The subtype of the analytics property. This affects the billable event + // count. + AnalyticsPropertyType property_type = 5; + + // Total event count that the property received during the requested month. + int64 total_event_count = 6; + + // The number of events for which the property is billed in the requested + // month. + int64 billable_event_count = 7; + } + + // Contains the bill amount. + message BillInfo { + // The amount of the monthly base fee. + google.type.Money base_fee = 1; + + // The amount of the event fee. + google.type.Money event_fee = 2; + + // The amount of the price protection credit, this is only available for + // eligible customers. + google.type.Money price_protection_credit = 3; + + // The total amount of the bill. + google.type.Money total = 4; + } + + // Usage data for all properties in the specified organization and month. + repeated PropertyUsage property_usages = 1; + + // Bill amount in the specified organization and month. + // + // Will be empty if user only has access to usage data. + BillInfo bill_info = 2; +} diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/proto/google/marketingplatform/admin/v1alpha/resources.proto b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/proto/google/marketingplatform/admin/v1alpha/resources.proto index a894729f4a1f..ed8f5b192eb8 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/proto/google/marketingplatform/admin/v1alpha/resources.proto +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/proto/google/marketingplatform/admin/v1alpha/resources.proto @@ -45,6 +45,33 @@ enum LinkVerificationState { LINK_VERIFICATION_STATE_NOT_VERIFIED = 2; } +// Various levels of service for Google Analytics. +enum AnalyticsServiceLevel { + // Service level unspecified. + ANALYTICS_SERVICE_LEVEL_UNSPECIFIED = 0; + + // The standard version of Google Analytics. + ANALYTICS_SERVICE_LEVEL_STANDARD = 1; + + // The premium version of Google Analytics. + ANALYTICS_SERVICE_LEVEL_360 = 2; +} + +// Types of the Google Analytics Property. +enum AnalyticsPropertyType { + // Unknown or unspecified property type + ANALYTICS_PROPERTY_TYPE_UNSPECIFIED = 0; + + // Ordinary Google Analytics property + ANALYTICS_PROPERTY_TYPE_ORDINARY = 1; + + // Google Analytics subproperty + ANALYTICS_PROPERTY_TYPE_SUBPROPERTY = 2; + + // Google Analytics rollup property + ANALYTICS_PROPERTY_TYPE_ROLLUP = 3; +} + // A resource message representing a Google Marketing Platform organization. message Organization { option (google.api.resource) = { diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/findsalespartnermanagedclients/AsyncFindSalesPartnerManagedClients.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/findsalespartnermanagedclients/AsyncFindSalesPartnerManagedClients.java new file mode 100644 index 000000000000..5738120fc434 --- /dev/null +++ b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/findsalespartnermanagedclients/AsyncFindSalesPartnerManagedClients.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.marketingplatform.admin.v1alpha.samples; + +// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_FindSalesPartnerManagedClients_async] +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse; +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; +import com.google.ads.marketingplatform.admin.v1alpha.OrganizationName; +import com.google.api.core.ApiFuture; + +public class AsyncFindSalesPartnerManagedClients { + + public static void main(String[] args) throws Exception { + asyncFindSalesPartnerManagedClients(); + } + + public static void asyncFindSalesPartnerManagedClients() 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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = + MarketingplatformAdminServiceClient.create()) { + FindSalesPartnerManagedClientsRequest request = + FindSalesPartnerManagedClientsRequest.newBuilder() + .setOrganization(OrganizationName.of("[ORGANIZATION]").toString()) + .setIsActive(true) + .build(); + ApiFuture future = + marketingplatformAdminServiceClient + .findSalesPartnerManagedClientsCallable() + .futureCall(request); + // Do something. + FindSalesPartnerManagedClientsResponse response = future.get(); + } + } +} +// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_FindSalesPartnerManagedClients_async] diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/findsalespartnermanagedclients/SyncFindSalesPartnerManagedClients.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/findsalespartnermanagedclients/SyncFindSalesPartnerManagedClients.java new file mode 100644 index 000000000000..84fb78cb7ab9 --- /dev/null +++ b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/findsalespartnermanagedclients/SyncFindSalesPartnerManagedClients.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.marketingplatform.admin.v1alpha.samples; + +// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_FindSalesPartnerManagedClients_sync] +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse; +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; +import com.google.ads.marketingplatform.admin.v1alpha.OrganizationName; + +public class SyncFindSalesPartnerManagedClients { + + public static void main(String[] args) throws Exception { + syncFindSalesPartnerManagedClients(); + } + + public static void syncFindSalesPartnerManagedClients() 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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = + MarketingplatformAdminServiceClient.create()) { + FindSalesPartnerManagedClientsRequest request = + FindSalesPartnerManagedClientsRequest.newBuilder() + .setOrganization(OrganizationName.of("[ORGANIZATION]").toString()) + .setIsActive(true) + .build(); + FindSalesPartnerManagedClientsResponse response = + marketingplatformAdminServiceClient.findSalesPartnerManagedClients(request); + } + } +} +// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_FindSalesPartnerManagedClients_sync] diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/listorganizations/AsyncListOrganizations.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/listorganizations/AsyncListOrganizations.java new file mode 100644 index 000000000000..0923f0a356f2 --- /dev/null +++ b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/listorganizations/AsyncListOrganizations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.marketingplatform.admin.v1alpha.samples; + +// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ListOrganizations_async] +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; +import com.google.ads.marketingplatform.admin.v1alpha.Organization; +import com.google.api.core.ApiFuture; + +public class AsyncListOrganizations { + + public static void main(String[] args) throws Exception { + asyncListOrganizations(); + } + + public static void asyncListOrganizations() 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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = + MarketingplatformAdminServiceClient.create()) { + ListOrganizationsRequest request = + ListOrganizationsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + marketingplatformAdminServiceClient.listOrganizationsPagedCallable().futureCall(request); + // Do something. + for (Organization element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ListOrganizations_async] diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/listorganizations/AsyncListOrganizationsPaged.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/listorganizations/AsyncListOrganizationsPaged.java new file mode 100644 index 000000000000..362455893fcf --- /dev/null +++ b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/listorganizations/AsyncListOrganizationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 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.marketingplatform.admin.v1alpha.samples; + +// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ListOrganizations_Paged_async] +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsResponse; +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; +import com.google.ads.marketingplatform.admin.v1alpha.Organization; +import com.google.common.base.Strings; + +public class AsyncListOrganizationsPaged { + + public static void main(String[] args) throws Exception { + asyncListOrganizationsPaged(); + } + + public static void asyncListOrganizationsPaged() 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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = + MarketingplatformAdminServiceClient.create()) { + ListOrganizationsRequest request = + ListOrganizationsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListOrganizationsResponse response = + marketingplatformAdminServiceClient.listOrganizationsCallable().call(request); + for (Organization element : response.getOrganizationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ListOrganizations_Paged_async] diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/listorganizations/SyncListOrganizations.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/listorganizations/SyncListOrganizations.java new file mode 100644 index 000000000000..a718d0692386 --- /dev/null +++ b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/listorganizations/SyncListOrganizations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.marketingplatform.admin.v1alpha.samples; + +// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ListOrganizations_sync] +import com.google.ads.marketingplatform.admin.v1alpha.ListOrganizationsRequest; +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; +import com.google.ads.marketingplatform.admin.v1alpha.Organization; + +public class SyncListOrganizations { + + public static void main(String[] args) throws Exception { + syncListOrganizations(); + } + + public static void syncListOrganizations() 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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = + MarketingplatformAdminServiceClient.create()) { + ListOrganizationsRequest request = + ListOrganizationsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Organization element : + marketingplatformAdminServiceClient.listOrganizations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ListOrganizations_sync] diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/reportpropertyusage/AsyncReportPropertyUsage.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/reportpropertyusage/AsyncReportPropertyUsage.java new file mode 100644 index 000000000000..cd14c463d7ad --- /dev/null +++ b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/reportpropertyusage/AsyncReportPropertyUsage.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.marketingplatform.admin.v1alpha.samples; + +// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ReportPropertyUsage_async] +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse; +import com.google.api.core.ApiFuture; + +public class AsyncReportPropertyUsage { + + public static void main(String[] args) throws Exception { + asyncReportPropertyUsage(); + } + + public static void asyncReportPropertyUsage() 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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = + MarketingplatformAdminServiceClient.create()) { + ReportPropertyUsageRequest request = + ReportPropertyUsageRequest.newBuilder() + .setOrganization("organization1178922291") + .setMonth("month104080000") + .build(); + ApiFuture future = + marketingplatformAdminServiceClient.reportPropertyUsageCallable().futureCall(request); + // Do something. + ReportPropertyUsageResponse response = future.get(); + } + } +} +// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ReportPropertyUsage_async] diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/reportpropertyusage/SyncReportPropertyUsage.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/reportpropertyusage/SyncReportPropertyUsage.java new file mode 100644 index 000000000000..4fd51eb7001a --- /dev/null +++ b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/reportpropertyusage/SyncReportPropertyUsage.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.marketingplatform.admin.v1alpha.samples; + +// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ReportPropertyUsage_sync] +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageRequest; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse; + +public class SyncReportPropertyUsage { + + public static void main(String[] args) throws Exception { + syncReportPropertyUsage(); + } + + public static void syncReportPropertyUsage() 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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = + MarketingplatformAdminServiceClient.create()) { + ReportPropertyUsageRequest request = + ReportPropertyUsageRequest.newBuilder() + .setOrganization("organization1178922291") + .setMonth("month104080000") + .build(); + ReportPropertyUsageResponse response = + marketingplatformAdminServiceClient.reportPropertyUsage(request); + } + } +} +// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ReportPropertyUsage_sync] diff --git a/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/reportpropertyusage/SyncReportPropertyUsageString.java b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/reportpropertyusage/SyncReportPropertyUsageString.java new file mode 100644 index 000000000000..7093f19767cb --- /dev/null +++ b/java-marketingplatformadminapi/samples/snippets/generated/com/google/ads/marketingplatform/admin/v1alpha/marketingplatformadminservice/reportpropertyusage/SyncReportPropertyUsageString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.marketingplatform.admin.v1alpha.samples; + +// [START marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ReportPropertyUsage_String_sync] +import com.google.ads.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient; +import com.google.ads.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse; + +public class SyncReportPropertyUsageString { + + public static void main(String[] args) throws Exception { + syncReportPropertyUsageString(); + } + + public static void syncReportPropertyUsageString() 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 (MarketingplatformAdminServiceClient marketingplatformAdminServiceClient = + MarketingplatformAdminServiceClient.create()) { + String organization = "organization1178922291"; + ReportPropertyUsageResponse response = + marketingplatformAdminServiceClient.reportPropertyUsage(organization); + } + } +} +// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ReportPropertyUsage_String_sync] diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index d9518de20e69..078b0e4b74a4 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.83.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.83.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.84.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceGrpc.java b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceGrpc.java index 5bd9b81b9ece..9734bb77530d 100644 --- a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceGrpc.java +++ b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceGrpc.java @@ -24,9 +24,6 @@ * Provides translation from/to media types. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/mediatranslation/v1beta1/media_translation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SpeechTranslationServiceGrpc { diff --git a/java-meet/README.md b/java-meet/README.md index a70930e4cb6a..ca105ea0722a 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 0.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.44.0' +implementation 'com.google.cloud:google-cloud-meet:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.45.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceGrpc.java index 0454fef6b092..6d59f7416596 100644 --- a/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceGrpc.java +++ b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceGrpc.java @@ -24,9 +24,6 @@ * REST API for services dealing with conference records. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/apps/meet/v2/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConferenceRecordsServiceGrpc { @@ -1152,8 +1149,8 @@ protected ConferenceRecordsServiceBlockingV2Stub build( * */ public com.google.apps.meet.v2.ConferenceRecord getConferenceRecord( - com.google.apps.meet.v2.GetConferenceRecordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.GetConferenceRecordRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConferenceRecordMethod(), getCallOptions(), request); } @@ -1166,8 +1163,9 @@ public com.google.apps.meet.v2.ConferenceRecord getConferenceRecord( * */ public com.google.apps.meet.v2.ListConferenceRecordsResponse listConferenceRecords( - com.google.apps.meet.v2.ListConferenceRecordsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.ListConferenceRecordsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConferenceRecordsMethod(), getCallOptions(), request); } @@ -1179,8 +1177,8 @@ public com.google.apps.meet.v2.ListConferenceRecordsResponse listConferenceRecor * */ public com.google.apps.meet.v2.Participant getParticipant( - com.google.apps.meet.v2.GetParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.GetParticipantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetParticipantMethod(), getCallOptions(), request); } @@ -1196,8 +1194,8 @@ public com.google.apps.meet.v2.Participant getParticipant( * */ public com.google.apps.meet.v2.ListParticipantsResponse listParticipants( - com.google.apps.meet.v2.ListParticipantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.ListParticipantsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListParticipantsMethod(), getCallOptions(), request); } @@ -1209,8 +1207,9 @@ public com.google.apps.meet.v2.ListParticipantsResponse listParticipants( * */ public com.google.apps.meet.v2.ParticipantSession getParticipantSession( - com.google.apps.meet.v2.GetParticipantSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.GetParticipantSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetParticipantSessionMethod(), getCallOptions(), request); } @@ -1226,8 +1225,9 @@ public com.google.apps.meet.v2.ParticipantSession getParticipantSession( * */ public com.google.apps.meet.v2.ListParticipantSessionsResponse listParticipantSessions( - com.google.apps.meet.v2.ListParticipantSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.ListParticipantSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListParticipantSessionsMethod(), getCallOptions(), request); } @@ -1239,8 +1239,8 @@ public com.google.apps.meet.v2.ListParticipantSessionsResponse listParticipantSe * */ public com.google.apps.meet.v2.Recording getRecording( - com.google.apps.meet.v2.GetRecordingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.GetRecordingRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRecordingMethod(), getCallOptions(), request); } @@ -1253,8 +1253,8 @@ public com.google.apps.meet.v2.Recording getRecording( * */ public com.google.apps.meet.v2.ListRecordingsResponse listRecordings( - com.google.apps.meet.v2.ListRecordingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.ListRecordingsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRecordingsMethod(), getCallOptions(), request); } @@ -1266,8 +1266,8 @@ public com.google.apps.meet.v2.ListRecordingsResponse listRecordings( * */ public com.google.apps.meet.v2.Transcript getTranscript( - com.google.apps.meet.v2.GetTranscriptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.GetTranscriptRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTranscriptMethod(), getCallOptions(), request); } @@ -1280,8 +1280,8 @@ public com.google.apps.meet.v2.Transcript getTranscript( * */ public com.google.apps.meet.v2.ListTranscriptsResponse listTranscripts( - com.google.apps.meet.v2.ListTranscriptsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.ListTranscriptsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTranscriptsMethod(), getCallOptions(), request); } @@ -1296,8 +1296,8 @@ public com.google.apps.meet.v2.ListTranscriptsResponse listTranscripts( * */ public com.google.apps.meet.v2.TranscriptEntry getTranscriptEntry( - com.google.apps.meet.v2.GetTranscriptEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.GetTranscriptEntryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTranscriptEntryMethod(), getCallOptions(), request); } @@ -1313,8 +1313,9 @@ public com.google.apps.meet.v2.TranscriptEntry getTranscriptEntry( * */ public com.google.apps.meet.v2.ListTranscriptEntriesResponse listTranscriptEntries( - com.google.apps.meet.v2.ListTranscriptEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.ListTranscriptEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTranscriptEntriesMethod(), getCallOptions(), request); } } diff --git a/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java index 97a2eb64b868..d318b6b79ef4 100644 --- a/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java +++ b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java @@ -24,9 +24,6 @@ * REST API for services dealing with spaces. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/apps/meet/v2/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SpacesServiceGrpc { @@ -454,8 +451,8 @@ protected SpacesServiceBlockingV2Stub build( * */ public com.google.apps.meet.v2.Space createSpace( - com.google.apps.meet.v2.CreateSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.CreateSpaceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSpaceMethod(), getCallOptions(), request); } @@ -468,8 +465,9 @@ public com.google.apps.meet.v2.Space createSpace( * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * */ - public com.google.apps.meet.v2.Space getSpace(com.google.apps.meet.v2.GetSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.apps.meet.v2.Space getSpace(com.google.apps.meet.v2.GetSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpaceMethod(), getCallOptions(), request); } @@ -483,8 +481,8 @@ public com.google.apps.meet.v2.Space getSpace(com.google.apps.meet.v2.GetSpaceRe * */ public com.google.apps.meet.v2.Space updateSpace( - com.google.apps.meet.v2.UpdateSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.UpdateSpaceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSpaceMethod(), getCallOptions(), request); } @@ -498,8 +496,8 @@ public com.google.apps.meet.v2.Space updateSpace( * */ public com.google.protobuf.Empty endActiveConference( - com.google.apps.meet.v2.EndActiveConferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2.EndActiveConferenceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEndActiveConferenceMethod(), getCallOptions(), request); } } diff --git a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java index 749fa5f295b8..8d0e9a5c3abf 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java +++ b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java @@ -24,9 +24,6 @@ * REST API for services dealing with conference records. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/apps/meet/v2beta/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConferenceRecordsServiceGrpc { @@ -1167,8 +1164,9 @@ protected ConferenceRecordsServiceBlockingV2Stub build( * */ public com.google.apps.meet.v2beta.ConferenceRecord getConferenceRecord( - com.google.apps.meet.v2beta.GetConferenceRecordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.GetConferenceRecordRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConferenceRecordMethod(), getCallOptions(), request); } @@ -1181,8 +1179,9 @@ public com.google.apps.meet.v2beta.ConferenceRecord getConferenceRecord( * */ public com.google.apps.meet.v2beta.ListConferenceRecordsResponse listConferenceRecords( - com.google.apps.meet.v2beta.ListConferenceRecordsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.ListConferenceRecordsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConferenceRecordsMethod(), getCallOptions(), request); } @@ -1194,8 +1193,8 @@ public com.google.apps.meet.v2beta.ListConferenceRecordsResponse listConferenceR * */ public com.google.apps.meet.v2beta.Participant getParticipant( - com.google.apps.meet.v2beta.GetParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.GetParticipantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetParticipantMethod(), getCallOptions(), request); } @@ -1211,8 +1210,9 @@ public com.google.apps.meet.v2beta.Participant getParticipant( * */ public com.google.apps.meet.v2beta.ListParticipantsResponse listParticipants( - com.google.apps.meet.v2beta.ListParticipantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.ListParticipantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListParticipantsMethod(), getCallOptions(), request); } @@ -1224,8 +1224,9 @@ public com.google.apps.meet.v2beta.ListParticipantsResponse listParticipants( * */ public com.google.apps.meet.v2beta.ParticipantSession getParticipantSession( - com.google.apps.meet.v2beta.GetParticipantSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.GetParticipantSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetParticipantSessionMethod(), getCallOptions(), request); } @@ -1241,8 +1242,9 @@ public com.google.apps.meet.v2beta.ParticipantSession getParticipantSession( * */ public com.google.apps.meet.v2beta.ListParticipantSessionsResponse listParticipantSessions( - com.google.apps.meet.v2beta.ListParticipantSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.ListParticipantSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListParticipantSessionsMethod(), getCallOptions(), request); } @@ -1254,8 +1256,8 @@ public com.google.apps.meet.v2beta.ListParticipantSessionsResponse listParticipa * */ public com.google.apps.meet.v2beta.Recording getRecording( - com.google.apps.meet.v2beta.GetRecordingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.GetRecordingRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRecordingMethod(), getCallOptions(), request); } @@ -1268,8 +1270,8 @@ public com.google.apps.meet.v2beta.Recording getRecording( * */ public com.google.apps.meet.v2beta.ListRecordingsResponse listRecordings( - com.google.apps.meet.v2beta.ListRecordingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.ListRecordingsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRecordingsMethod(), getCallOptions(), request); } @@ -1281,8 +1283,8 @@ public com.google.apps.meet.v2beta.ListRecordingsResponse listRecordings( * */ public com.google.apps.meet.v2beta.Transcript getTranscript( - com.google.apps.meet.v2beta.GetTranscriptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.GetTranscriptRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTranscriptMethod(), getCallOptions(), request); } @@ -1295,8 +1297,8 @@ public com.google.apps.meet.v2beta.Transcript getTranscript( * */ public com.google.apps.meet.v2beta.ListTranscriptsResponse listTranscripts( - com.google.apps.meet.v2beta.ListTranscriptsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.ListTranscriptsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTranscriptsMethod(), getCallOptions(), request); } @@ -1311,8 +1313,9 @@ public com.google.apps.meet.v2beta.ListTranscriptsResponse listTranscripts( * */ public com.google.apps.meet.v2beta.TranscriptEntry getTranscriptEntry( - com.google.apps.meet.v2beta.GetTranscriptEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.GetTranscriptEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTranscriptEntryMethod(), getCallOptions(), request); } @@ -1328,8 +1331,9 @@ public com.google.apps.meet.v2beta.TranscriptEntry getTranscriptEntry( * */ public com.google.apps.meet.v2beta.ListTranscriptEntriesResponse listTranscriptEntries( - com.google.apps.meet.v2beta.ListTranscriptEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.ListTranscriptEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTranscriptEntriesMethod(), getCallOptions(), request); } } diff --git a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java index 7d03c5c0fc5a..8fef11b49b55 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java +++ b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java @@ -24,9 +24,6 @@ * REST API for services dealing with spaces. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/apps/meet/v2beta/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SpacesServiceGrpc { @@ -873,8 +870,8 @@ protected SpacesServiceBlockingV2Stub build( * */ public com.google.apps.meet.v2beta.Space createSpace( - com.google.apps.meet.v2beta.CreateSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.CreateSpaceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSpaceMethod(), getCallOptions(), request); } @@ -888,8 +885,8 @@ public com.google.apps.meet.v2beta.Space createSpace( * */ public com.google.apps.meet.v2beta.Space getSpace( - com.google.apps.meet.v2beta.GetSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.GetSpaceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpaceMethod(), getCallOptions(), request); } @@ -903,8 +900,8 @@ public com.google.apps.meet.v2beta.Space getSpace( * */ public com.google.apps.meet.v2beta.Space updateSpace( - com.google.apps.meet.v2beta.UpdateSpaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.UpdateSpaceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSpaceMethod(), getCallOptions(), request); } @@ -923,8 +920,9 @@ public com.google.apps.meet.v2beta.Space updateSpace( * */ public com.google.apps.meet.v2beta.ConnectActiveConferenceResponse connectActiveConference( - com.google.apps.meet.v2beta.ConnectActiveConferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.ConnectActiveConferenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getConnectActiveConferenceMethod(), getCallOptions(), request); } @@ -938,8 +936,9 @@ public com.google.apps.meet.v2beta.ConnectActiveConferenceResponse connectActive * */ public com.google.protobuf.Empty endActiveConference( - com.google.apps.meet.v2beta.EndActiveConferenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.EndActiveConferenceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEndActiveConferenceMethod(), getCallOptions(), request); } @@ -956,8 +955,8 @@ public com.google.protobuf.Empty endActiveConference( * */ public com.google.apps.meet.v2beta.Member createMember( - com.google.apps.meet.v2beta.CreateMemberRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.CreateMemberRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMemberMethod(), getCallOptions(), request); } @@ -974,8 +973,8 @@ public com.google.apps.meet.v2beta.Member createMember( * */ public com.google.apps.meet.v2beta.Member getMember( - com.google.apps.meet.v2beta.GetMemberRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.GetMemberRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMemberMethod(), getCallOptions(), request); } @@ -992,8 +991,8 @@ public com.google.apps.meet.v2beta.Member getMember( * */ public com.google.apps.meet.v2beta.ListMembersResponse listMembers( - com.google.apps.meet.v2beta.ListMembersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.ListMembersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMembersMethod(), getCallOptions(), request); } @@ -1006,8 +1005,8 @@ public com.google.apps.meet.v2beta.ListMembersResponse listMembers( * */ public com.google.protobuf.Empty deleteMember( - com.google.apps.meet.v2beta.DeleteMemberRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.meet.v2beta.DeleteMemberRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMemberMethod(), getCallOptions(), request); } } diff --git a/java-memcache/README.md b/java-memcache/README.md index b11e59923f36..e71885217809 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.77.0' +implementation 'com.google.cloud:google-cloud-memcache:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-memcache/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java b/java-memcache/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java index 1ec73e3265fb..19d2b8362f73 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java +++ b/java-memcache/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java @@ -35,9 +35,6 @@ * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/memcache/v1/cloud_memcache.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudMemcacheGrpc { @@ -818,8 +815,8 @@ protected CloudMemcacheBlockingV2Stub build( * */ public com.google.cloud.memcache.v1.ListInstancesResponse listInstances( - com.google.cloud.memcache.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1.ListInstancesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -831,8 +828,8 @@ public com.google.cloud.memcache.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.memcache.v1.Instance getInstance( - com.google.cloud.memcache.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -844,8 +841,8 @@ public com.google.cloud.memcache.v1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.memcache.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1.CreateInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -857,8 +854,8 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.memcache.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1.UpdateInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -873,8 +870,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation updateParameters( - com.google.cloud.memcache.v1.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1.UpdateParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateParametersMethod(), getCallOptions(), request); } @@ -886,8 +884,8 @@ public com.google.longrunning.Operation updateParameters( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.memcache.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1.DeleteInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -900,8 +898,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation applyParameters( - com.google.cloud.memcache.v1.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1.ApplyParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApplyParametersMethod(), getCallOptions(), request); } @@ -913,8 +912,9 @@ public com.google.longrunning.Operation applyParameters( * */ public com.google.longrunning.Operation rescheduleMaintenance( - com.google.cloud.memcache.v1.RescheduleMaintenanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1.RescheduleMaintenanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); } } diff --git a/java-memcache/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java b/java-memcache/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java index 0ba29e642bc9..1b81b7f916fc 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java +++ b/java-memcache/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java @@ -35,9 +35,6 @@ * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/memcache/v1beta2/cloud_memcache.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudMemcacheGrpc { @@ -909,8 +906,9 @@ protected CloudMemcacheBlockingV2Stub build( * */ public com.google.cloud.memcache.v1beta2.ListInstancesResponse listInstances( - com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1beta2.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -922,8 +920,9 @@ public com.google.cloud.memcache.v1beta2.ListInstancesResponse listInstances( * */ public com.google.cloud.memcache.v1beta2.Instance getInstance( - com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1beta2.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -935,8 +934,9 @@ public com.google.cloud.memcache.v1beta2.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -948,8 +948,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -964,8 +965,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation updateParameters( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateParametersMethod(), getCallOptions(), request); } @@ -977,8 +979,9 @@ public com.google.longrunning.Operation updateParameters( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -991,8 +994,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation applyParameters( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApplyParametersMethod(), getCallOptions(), request); } @@ -1004,8 +1008,9 @@ public com.google.longrunning.Operation applyParameters( * */ public com.google.longrunning.Operation applySoftwareUpdate( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApplySoftwareUpdateMethod(), getCallOptions(), request); } @@ -1017,8 +1022,9 @@ public com.google.longrunning.Operation applySoftwareUpdate( * */ public com.google.longrunning.Operation rescheduleMaintenance( - com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); } } diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index cc6d5b38aab1..e10bc47b4ffb 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.59.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.60.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterGrpc.java b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterGrpc.java index 62cd51d87f70..cdfd7d3000f9 100644 --- a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterGrpc.java +++ b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/migrationcenter/v1/migrationcenter.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MigrationCenterGrpc { @@ -3841,8 +3838,9 @@ protected MigrationCenterBlockingV2Stub build( * */ public com.google.cloud.migrationcenter.v1.ListAssetsResponse listAssets( - com.google.cloud.migrationcenter.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ListAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } @@ -3854,8 +3852,9 @@ public com.google.cloud.migrationcenter.v1.ListAssetsResponse listAssets( * */ public com.google.cloud.migrationcenter.v1.Asset getAsset( - com.google.cloud.migrationcenter.v1.GetAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetAssetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAssetMethod(), getCallOptions(), request); } @@ -3867,8 +3866,9 @@ public com.google.cloud.migrationcenter.v1.Asset getAsset( * */ public com.google.cloud.migrationcenter.v1.Asset updateAsset( - com.google.cloud.migrationcenter.v1.UpdateAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.UpdateAssetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAssetMethod(), getCallOptions(), request); } @@ -3880,8 +3880,9 @@ public com.google.cloud.migrationcenter.v1.Asset updateAsset( * */ public com.google.cloud.migrationcenter.v1.BatchUpdateAssetsResponse batchUpdateAssets( - com.google.cloud.migrationcenter.v1.BatchUpdateAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.BatchUpdateAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateAssetsMethod(), getCallOptions(), request); } @@ -3893,8 +3894,9 @@ public com.google.cloud.migrationcenter.v1.BatchUpdateAssetsResponse batchUpdate * */ public com.google.protobuf.Empty deleteAsset( - com.google.cloud.migrationcenter.v1.DeleteAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.DeleteAssetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAssetMethod(), getCallOptions(), request); } @@ -3906,8 +3908,9 @@ public com.google.protobuf.Empty deleteAsset( * */ public com.google.protobuf.Empty batchDeleteAssets( - com.google.cloud.migrationcenter.v1.BatchDeleteAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.BatchDeleteAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteAssetsMethod(), getCallOptions(), request); } @@ -3919,8 +3922,9 @@ public com.google.protobuf.Empty batchDeleteAssets( * */ public com.google.cloud.migrationcenter.v1.ReportAssetFramesResponse reportAssetFrames( - com.google.cloud.migrationcenter.v1.ReportAssetFramesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ReportAssetFramesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportAssetFramesMethod(), getCallOptions(), request); } @@ -3932,8 +3936,9 @@ public com.google.cloud.migrationcenter.v1.ReportAssetFramesResponse reportAsset * */ public com.google.cloud.migrationcenter.v1.AggregateAssetsValuesResponse aggregateAssetsValues( - com.google.cloud.migrationcenter.v1.AggregateAssetsValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.AggregateAssetsValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAggregateAssetsValuesMethod(), getCallOptions(), request); } @@ -3945,8 +3950,9 @@ public com.google.cloud.migrationcenter.v1.AggregateAssetsValuesResponse aggrega * */ public com.google.longrunning.Operation createImportJob( - com.google.cloud.migrationcenter.v1.CreateImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.CreateImportJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateImportJobMethod(), getCallOptions(), request); } @@ -3958,8 +3964,9 @@ public com.google.longrunning.Operation createImportJob( * */ public com.google.cloud.migrationcenter.v1.ListImportJobsResponse listImportJobs( - com.google.cloud.migrationcenter.v1.ListImportJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ListImportJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListImportJobsMethod(), getCallOptions(), request); } @@ -3971,8 +3978,9 @@ public com.google.cloud.migrationcenter.v1.ListImportJobsResponse listImportJobs * */ public com.google.cloud.migrationcenter.v1.ImportJob getImportJob( - com.google.cloud.migrationcenter.v1.GetImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetImportJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetImportJobMethod(), getCallOptions(), request); } @@ -3984,8 +3992,9 @@ public com.google.cloud.migrationcenter.v1.ImportJob getImportJob( * */ public com.google.longrunning.Operation deleteImportJob( - com.google.cloud.migrationcenter.v1.DeleteImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.DeleteImportJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteImportJobMethod(), getCallOptions(), request); } @@ -3997,8 +4006,9 @@ public com.google.longrunning.Operation deleteImportJob( * */ public com.google.longrunning.Operation updateImportJob( - com.google.cloud.migrationcenter.v1.UpdateImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.UpdateImportJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateImportJobMethod(), getCallOptions(), request); } @@ -4010,8 +4020,9 @@ public com.google.longrunning.Operation updateImportJob( * */ public com.google.longrunning.Operation validateImportJob( - com.google.cloud.migrationcenter.v1.ValidateImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ValidateImportJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateImportJobMethod(), getCallOptions(), request); } @@ -4023,8 +4034,9 @@ public com.google.longrunning.Operation validateImportJob( * */ public com.google.longrunning.Operation runImportJob( - com.google.cloud.migrationcenter.v1.RunImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.RunImportJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunImportJobMethod(), getCallOptions(), request); } @@ -4036,8 +4048,9 @@ public com.google.longrunning.Operation runImportJob( * */ public com.google.cloud.migrationcenter.v1.ImportDataFile getImportDataFile( - com.google.cloud.migrationcenter.v1.GetImportDataFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetImportDataFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetImportDataFileMethod(), getCallOptions(), request); } @@ -4049,8 +4062,9 @@ public com.google.cloud.migrationcenter.v1.ImportDataFile getImportDataFile( * */ public com.google.cloud.migrationcenter.v1.ListImportDataFilesResponse listImportDataFiles( - com.google.cloud.migrationcenter.v1.ListImportDataFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ListImportDataFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListImportDataFilesMethod(), getCallOptions(), request); } @@ -4062,8 +4076,9 @@ public com.google.cloud.migrationcenter.v1.ListImportDataFilesResponse listImpor * */ public com.google.longrunning.Operation createImportDataFile( - com.google.cloud.migrationcenter.v1.CreateImportDataFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.CreateImportDataFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateImportDataFileMethod(), getCallOptions(), request); } @@ -4075,8 +4090,9 @@ public com.google.longrunning.Operation createImportDataFile( * */ public com.google.longrunning.Operation deleteImportDataFile( - com.google.cloud.migrationcenter.v1.DeleteImportDataFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.DeleteImportDataFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteImportDataFileMethod(), getCallOptions(), request); } @@ -4088,8 +4104,9 @@ public com.google.longrunning.Operation deleteImportDataFile( * */ public com.google.cloud.migrationcenter.v1.ListGroupsResponse listGroups( - com.google.cloud.migrationcenter.v1.ListGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ListGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGroupsMethod(), getCallOptions(), request); } @@ -4101,8 +4118,9 @@ public com.google.cloud.migrationcenter.v1.ListGroupsResponse listGroups( * */ public com.google.cloud.migrationcenter.v1.Group getGroup( - com.google.cloud.migrationcenter.v1.GetGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGroupMethod(), getCallOptions(), request); } @@ -4114,8 +4132,9 @@ public com.google.cloud.migrationcenter.v1.Group getGroup( * */ public com.google.longrunning.Operation createGroup( - com.google.cloud.migrationcenter.v1.CreateGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.CreateGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGroupMethod(), getCallOptions(), request); } @@ -4127,8 +4146,9 @@ public com.google.longrunning.Operation createGroup( * */ public com.google.longrunning.Operation updateGroup( - com.google.cloud.migrationcenter.v1.UpdateGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.UpdateGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGroupMethod(), getCallOptions(), request); } @@ -4140,8 +4160,9 @@ public com.google.longrunning.Operation updateGroup( * */ public com.google.longrunning.Operation deleteGroup( - com.google.cloud.migrationcenter.v1.DeleteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.DeleteGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGroupMethod(), getCallOptions(), request); } @@ -4153,8 +4174,9 @@ public com.google.longrunning.Operation deleteGroup( * */ public com.google.longrunning.Operation addAssetsToGroup( - com.google.cloud.migrationcenter.v1.AddAssetsToGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.AddAssetsToGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddAssetsToGroupMethod(), getCallOptions(), request); } @@ -4166,8 +4188,9 @@ public com.google.longrunning.Operation addAssetsToGroup( * */ public com.google.longrunning.Operation removeAssetsFromGroup( - com.google.cloud.migrationcenter.v1.RemoveAssetsFromGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.RemoveAssetsFromGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveAssetsFromGroupMethod(), getCallOptions(), request); } @@ -4179,8 +4202,9 @@ public com.google.longrunning.Operation removeAssetsFromGroup( * */ public com.google.cloud.migrationcenter.v1.ListErrorFramesResponse listErrorFrames( - com.google.cloud.migrationcenter.v1.ListErrorFramesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ListErrorFramesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListErrorFramesMethod(), getCallOptions(), request); } @@ -4192,8 +4216,9 @@ public com.google.cloud.migrationcenter.v1.ListErrorFramesResponse listErrorFram * */ public com.google.cloud.migrationcenter.v1.ErrorFrame getErrorFrame( - com.google.cloud.migrationcenter.v1.GetErrorFrameRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetErrorFrameRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetErrorFrameMethod(), getCallOptions(), request); } @@ -4205,8 +4230,9 @@ public com.google.cloud.migrationcenter.v1.ErrorFrame getErrorFrame( * */ public com.google.cloud.migrationcenter.v1.ListSourcesResponse listSources( - com.google.cloud.migrationcenter.v1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ListSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSourcesMethod(), getCallOptions(), request); } @@ -4218,8 +4244,9 @@ public com.google.cloud.migrationcenter.v1.ListSourcesResponse listSources( * */ public com.google.cloud.migrationcenter.v1.Source getSource( - com.google.cloud.migrationcenter.v1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSourceMethod(), getCallOptions(), request); } @@ -4231,8 +4258,9 @@ public com.google.cloud.migrationcenter.v1.Source getSource( * */ public com.google.longrunning.Operation createSource( - com.google.cloud.migrationcenter.v1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.CreateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSourceMethod(), getCallOptions(), request); } @@ -4244,8 +4272,9 @@ public com.google.longrunning.Operation createSource( * */ public com.google.longrunning.Operation updateSource( - com.google.cloud.migrationcenter.v1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.UpdateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSourceMethod(), getCallOptions(), request); } @@ -4257,8 +4286,9 @@ public com.google.longrunning.Operation updateSource( * */ public com.google.longrunning.Operation deleteSource( - com.google.cloud.migrationcenter.v1.DeleteSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.DeleteSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSourceMethod(), getCallOptions(), request); } @@ -4270,8 +4300,9 @@ public com.google.longrunning.Operation deleteSource( * */ public com.google.cloud.migrationcenter.v1.ListPreferenceSetsResponse listPreferenceSets( - com.google.cloud.migrationcenter.v1.ListPreferenceSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ListPreferenceSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPreferenceSetsMethod(), getCallOptions(), request); } @@ -4283,8 +4314,9 @@ public com.google.cloud.migrationcenter.v1.ListPreferenceSetsResponse listPrefer * */ public com.google.cloud.migrationcenter.v1.PreferenceSet getPreferenceSet( - com.google.cloud.migrationcenter.v1.GetPreferenceSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetPreferenceSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPreferenceSetMethod(), getCallOptions(), request); } @@ -4296,8 +4328,9 @@ public com.google.cloud.migrationcenter.v1.PreferenceSet getPreferenceSet( * */ public com.google.longrunning.Operation createPreferenceSet( - com.google.cloud.migrationcenter.v1.CreatePreferenceSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.CreatePreferenceSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePreferenceSetMethod(), getCallOptions(), request); } @@ -4309,8 +4342,9 @@ public com.google.longrunning.Operation createPreferenceSet( * */ public com.google.longrunning.Operation updatePreferenceSet( - com.google.cloud.migrationcenter.v1.UpdatePreferenceSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.UpdatePreferenceSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePreferenceSetMethod(), getCallOptions(), request); } @@ -4322,8 +4356,9 @@ public com.google.longrunning.Operation updatePreferenceSet( * */ public com.google.longrunning.Operation deletePreferenceSet( - com.google.cloud.migrationcenter.v1.DeletePreferenceSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.DeletePreferenceSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePreferenceSetMethod(), getCallOptions(), request); } @@ -4335,8 +4370,9 @@ public com.google.longrunning.Operation deletePreferenceSet( * */ public com.google.cloud.migrationcenter.v1.Settings getSettings( - com.google.cloud.migrationcenter.v1.GetSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSettingsMethod(), getCallOptions(), request); } @@ -4348,8 +4384,9 @@ public com.google.cloud.migrationcenter.v1.Settings getSettings( * */ public com.google.longrunning.Operation updateSettings( - com.google.cloud.migrationcenter.v1.UpdateSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.UpdateSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSettingsMethod(), getCallOptions(), request); } @@ -4361,8 +4398,9 @@ public com.google.longrunning.Operation updateSettings( * */ public com.google.longrunning.Operation createReportConfig( - com.google.cloud.migrationcenter.v1.CreateReportConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.CreateReportConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReportConfigMethod(), getCallOptions(), request); } @@ -4374,8 +4412,9 @@ public com.google.longrunning.Operation createReportConfig( * */ public com.google.cloud.migrationcenter.v1.ReportConfig getReportConfig( - com.google.cloud.migrationcenter.v1.GetReportConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetReportConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReportConfigMethod(), getCallOptions(), request); } @@ -4387,8 +4426,9 @@ public com.google.cloud.migrationcenter.v1.ReportConfig getReportConfig( * */ public com.google.cloud.migrationcenter.v1.ListReportConfigsResponse listReportConfigs( - com.google.cloud.migrationcenter.v1.ListReportConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ListReportConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReportConfigsMethod(), getCallOptions(), request); } @@ -4400,8 +4440,9 @@ public com.google.cloud.migrationcenter.v1.ListReportConfigsResponse listReportC * */ public com.google.longrunning.Operation deleteReportConfig( - com.google.cloud.migrationcenter.v1.DeleteReportConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.DeleteReportConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReportConfigMethod(), getCallOptions(), request); } @@ -4413,8 +4454,9 @@ public com.google.longrunning.Operation deleteReportConfig( * */ public com.google.longrunning.Operation createReport( - com.google.cloud.migrationcenter.v1.CreateReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.CreateReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReportMethod(), getCallOptions(), request); } @@ -4426,8 +4468,9 @@ public com.google.longrunning.Operation createReport( * */ public com.google.cloud.migrationcenter.v1.Report getReport( - com.google.cloud.migrationcenter.v1.GetReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.GetReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReportMethod(), getCallOptions(), request); } @@ -4439,8 +4482,9 @@ public com.google.cloud.migrationcenter.v1.Report getReport( * */ public com.google.cloud.migrationcenter.v1.ListReportsResponse listReports( - com.google.cloud.migrationcenter.v1.ListReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.ListReportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReportsMethod(), getCallOptions(), request); } @@ -4452,8 +4496,9 @@ public com.google.cloud.migrationcenter.v1.ListReportsResponse listReports( * */ public com.google.longrunning.Operation deleteReport( - com.google.cloud.migrationcenter.v1.DeleteReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.migrationcenter.v1.DeleteReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReportMethod(), getCallOptions(), request); } } diff --git a/java-modelarmor/README.md b/java-modelarmor/README.md index c5ce381e4345..ba90b7aa72aa 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-modelarmor - 0.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-modelarmor:0.18.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.19.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-modelarmor.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.19.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-modelarmor/grpc-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorGrpc.java b/java-modelarmor/grpc-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorGrpc.java index a398c31746b4..1310e7eebc94 100644 --- a/java-modelarmor/grpc-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorGrpc.java +++ b/java-modelarmor/grpc-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/modelarmor/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelArmorGrpc { @@ -845,8 +842,9 @@ protected ModelArmorBlockingV2Stub build( * */ public com.google.cloud.modelarmor.v1.ListTemplatesResponse listTemplates( - com.google.cloud.modelarmor.v1.ListTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1.ListTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTemplatesMethod(), getCallOptions(), request); } @@ -858,8 +856,8 @@ public com.google.cloud.modelarmor.v1.ListTemplatesResponse listTemplates( * */ public com.google.cloud.modelarmor.v1.Template getTemplate( - com.google.cloud.modelarmor.v1.GetTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1.GetTemplateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTemplateMethod(), getCallOptions(), request); } @@ -871,8 +869,9 @@ public com.google.cloud.modelarmor.v1.Template getTemplate( * */ public com.google.cloud.modelarmor.v1.Template createTemplate( - com.google.cloud.modelarmor.v1.CreateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1.CreateTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTemplateMethod(), getCallOptions(), request); } @@ -884,8 +883,9 @@ public com.google.cloud.modelarmor.v1.Template createTemplate( * */ public com.google.cloud.modelarmor.v1.Template updateTemplate( - com.google.cloud.modelarmor.v1.UpdateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1.UpdateTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTemplateMethod(), getCallOptions(), request); } @@ -897,8 +897,9 @@ public com.google.cloud.modelarmor.v1.Template updateTemplate( * */ public com.google.protobuf.Empty deleteTemplate( - com.google.cloud.modelarmor.v1.DeleteTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1.DeleteTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTemplateMethod(), getCallOptions(), request); } @@ -910,8 +911,9 @@ public com.google.protobuf.Empty deleteTemplate( * */ public com.google.cloud.modelarmor.v1.FloorSetting getFloorSetting( - com.google.cloud.modelarmor.v1.GetFloorSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1.GetFloorSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFloorSettingMethod(), getCallOptions(), request); } @@ -923,8 +925,9 @@ public com.google.cloud.modelarmor.v1.FloorSetting getFloorSetting( * */ public com.google.cloud.modelarmor.v1.FloorSetting updateFloorSetting( - com.google.cloud.modelarmor.v1.UpdateFloorSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1.UpdateFloorSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFloorSettingMethod(), getCallOptions(), request); } @@ -936,8 +939,9 @@ public com.google.cloud.modelarmor.v1.FloorSetting updateFloorSetting( * */ public com.google.cloud.modelarmor.v1.SanitizeUserPromptResponse sanitizeUserPrompt( - com.google.cloud.modelarmor.v1.SanitizeUserPromptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1.SanitizeUserPromptRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSanitizeUserPromptMethod(), getCallOptions(), request); } @@ -949,8 +953,9 @@ public com.google.cloud.modelarmor.v1.SanitizeUserPromptResponse sanitizeUserPro * */ public com.google.cloud.modelarmor.v1.SanitizeModelResponseResponse sanitizeModelResponse( - com.google.cloud.modelarmor.v1.SanitizeModelResponseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1.SanitizeModelResponseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSanitizeModelResponseMethod(), getCallOptions(), request); } } diff --git a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorGrpc.java b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorGrpc.java index ad091f24d90e..b499f418b69b 100644 --- a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorGrpc.java +++ b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/modelarmor/v1beta/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelArmorGrpc { @@ -851,8 +848,9 @@ protected ModelArmorBlockingV2Stub build( * */ public com.google.cloud.modelarmor.v1beta.ListTemplatesResponse listTemplates( - com.google.cloud.modelarmor.v1beta.ListTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1beta.ListTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTemplatesMethod(), getCallOptions(), request); } @@ -864,8 +862,9 @@ public com.google.cloud.modelarmor.v1beta.ListTemplatesResponse listTemplates( * */ public com.google.cloud.modelarmor.v1beta.Template getTemplate( - com.google.cloud.modelarmor.v1beta.GetTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1beta.GetTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTemplateMethod(), getCallOptions(), request); } @@ -877,8 +876,9 @@ public com.google.cloud.modelarmor.v1beta.Template getTemplate( * */ public com.google.cloud.modelarmor.v1beta.Template createTemplate( - com.google.cloud.modelarmor.v1beta.CreateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1beta.CreateTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTemplateMethod(), getCallOptions(), request); } @@ -890,8 +890,9 @@ public com.google.cloud.modelarmor.v1beta.Template createTemplate( * */ public com.google.cloud.modelarmor.v1beta.Template updateTemplate( - com.google.cloud.modelarmor.v1beta.UpdateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1beta.UpdateTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTemplateMethod(), getCallOptions(), request); } @@ -903,8 +904,9 @@ public com.google.cloud.modelarmor.v1beta.Template updateTemplate( * */ public com.google.protobuf.Empty deleteTemplate( - com.google.cloud.modelarmor.v1beta.DeleteTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1beta.DeleteTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTemplateMethod(), getCallOptions(), request); } @@ -916,8 +918,9 @@ public com.google.protobuf.Empty deleteTemplate( * */ public com.google.cloud.modelarmor.v1beta.FloorSetting getFloorSetting( - com.google.cloud.modelarmor.v1beta.GetFloorSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1beta.GetFloorSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFloorSettingMethod(), getCallOptions(), request); } @@ -929,8 +932,9 @@ public com.google.cloud.modelarmor.v1beta.FloorSetting getFloorSetting( * */ public com.google.cloud.modelarmor.v1beta.FloorSetting updateFloorSetting( - com.google.cloud.modelarmor.v1beta.UpdateFloorSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1beta.UpdateFloorSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFloorSettingMethod(), getCallOptions(), request); } @@ -942,8 +946,9 @@ public com.google.cloud.modelarmor.v1beta.FloorSetting updateFloorSetting( * */ public com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse sanitizeUserPrompt( - com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSanitizeUserPromptMethod(), getCallOptions(), request); } @@ -955,8 +960,9 @@ public com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse sanitizeUse * */ public com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse sanitizeModelResponse( - com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSanitizeModelResponseMethod(), getCallOptions(), request); } } diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index fbb90157cfef..bc326da03a46 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-dashboard - 2.79.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.79.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java index b001369e877b..cd45756ede82 100644 --- a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java +++ b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java @@ -25,9 +25,6 @@ * widgets in a specific layout. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/dashboard/v1/dashboards_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DashboardsServiceGrpc { @@ -594,8 +591,9 @@ protected DashboardsServiceBlockingV2Stub build( * */ public com.google.monitoring.dashboard.v1.Dashboard createDashboard( - com.google.monitoring.dashboard.v1.CreateDashboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.dashboard.v1.CreateDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDashboardMethod(), getCallOptions(), request); } @@ -610,8 +608,9 @@ public com.google.monitoring.dashboard.v1.Dashboard createDashboard( * */ public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards( - com.google.monitoring.dashboard.v1.ListDashboardsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.dashboard.v1.ListDashboardsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDashboardsMethod(), getCallOptions(), request); } @@ -626,8 +625,9 @@ public com.google.monitoring.dashboard.v1.ListDashboardsResponse listDashboards( * */ public com.google.monitoring.dashboard.v1.Dashboard getDashboard( - com.google.monitoring.dashboard.v1.GetDashboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.dashboard.v1.GetDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDashboardMethod(), getCallOptions(), request); } @@ -642,8 +642,9 @@ public com.google.monitoring.dashboard.v1.Dashboard getDashboard( * */ public com.google.protobuf.Empty deleteDashboard( - com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.dashboard.v1.DeleteDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDashboardMethod(), getCallOptions(), request); } @@ -658,8 +659,9 @@ public com.google.protobuf.Empty deleteDashboard( * */ public com.google.monitoring.dashboard.v1.Dashboard updateDashboard( - com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.dashboard.v1.UpdateDashboardRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDashboardMethod(), getCallOptions(), request); } } diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index 286e1e76cc06..fba6cc4ecd31 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-metricsscope - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.71.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.72.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.72.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesGrpc.java b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesGrpc.java index eae33477f347..df0e3edbd059 100644 --- a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesGrpc.java +++ b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesGrpc.java @@ -25,9 +25,6 @@ * projects and AWS accounts. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/metricsscope/v1/metrics_scopes.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MetricsScopesGrpc { @@ -503,8 +500,9 @@ protected MetricsScopesBlockingV2Stub build( * */ public com.google.monitoring.metricsscope.v1.MetricsScope getMetricsScope( - com.google.monitoring.metricsscope.v1.GetMetricsScopeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.metricsscope.v1.GetMetricsScopeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetricsScopeMethod(), getCallOptions(), request); } @@ -520,8 +518,9 @@ public com.google.monitoring.metricsscope.v1.MetricsScope getMetricsScope( public com.google.monitoring.metricsscope.v1.ListMetricsScopesByMonitoredProjectResponse listMetricsScopesByMonitoredProject( com.google.monitoring.metricsscope.v1.ListMetricsScopesByMonitoredProjectRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetricsScopesByMonitoredProjectMethod(), getCallOptions(), request); } @@ -534,8 +533,9 @@ public com.google.monitoring.metricsscope.v1.MetricsScope getMetricsScope( * */ public com.google.longrunning.Operation createMonitoredProject( - com.google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMonitoredProjectMethod(), getCallOptions(), request); } @@ -547,8 +547,9 @@ public com.google.longrunning.Operation createMonitoredProject( * */ public com.google.longrunning.Operation deleteMonitoredProject( - com.google.monitoring.metricsscope.v1.DeleteMonitoredProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.metricsscope.v1.DeleteMonitoredProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMonitoredProjectMethod(), getCallOptions(), request); } } diff --git a/java-monitoring/README.md b/java-monitoring/README.md index 885eae72a088..418b1538930d 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.78.0 + 3.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.78.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java index 3671d84df3b2..ff5cea075774 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java @@ -32,9 +32,6 @@ * [Cloud console](https://console.cloud.google.com/). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/alert_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AlertPolicyServiceGrpc { @@ -601,8 +598,8 @@ protected AlertPolicyServiceBlockingV2Stub build( * */ public com.google.monitoring.v3.ListAlertPoliciesResponse listAlertPolicies( - com.google.monitoring.v3.ListAlertPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListAlertPoliciesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAlertPoliciesMethod(), getCallOptions(), request); } @@ -614,8 +611,8 @@ public com.google.monitoring.v3.ListAlertPoliciesResponse listAlertPolicies( * */ public com.google.monitoring.v3.AlertPolicy getAlertPolicy( - com.google.monitoring.v3.GetAlertPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetAlertPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAlertPolicyMethod(), getCallOptions(), request); } @@ -630,8 +627,8 @@ public com.google.monitoring.v3.AlertPolicy getAlertPolicy( * */ public com.google.monitoring.v3.AlertPolicy createAlertPolicy( - com.google.monitoring.v3.CreateAlertPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateAlertPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAlertPolicyMethod(), getCallOptions(), request); } @@ -646,8 +643,8 @@ public com.google.monitoring.v3.AlertPolicy createAlertPolicy( * */ public com.google.protobuf.Empty deleteAlertPolicy( - com.google.monitoring.v3.DeleteAlertPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.DeleteAlertPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAlertPolicyMethod(), getCallOptions(), request); } @@ -665,8 +662,8 @@ public com.google.protobuf.Empty deleteAlertPolicy( * */ public com.google.monitoring.v3.AlertPolicy updateAlertPolicy( - com.google.monitoring.v3.UpdateAlertPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.UpdateAlertPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAlertPolicyMethod(), getCallOptions(), request); } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java index b2264a1c4f3e..7263f307de10 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java @@ -34,9 +34,6 @@ * from the infrastructure. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/group_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GroupServiceGrpc { @@ -636,8 +633,8 @@ protected GroupServiceBlockingV2Stub build( * */ public com.google.monitoring.v3.ListGroupsResponse listGroups( - com.google.monitoring.v3.ListGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListGroupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGroupsMethod(), getCallOptions(), request); } @@ -648,9 +645,9 @@ public com.google.monitoring.v3.ListGroupsResponse listGroups( * Gets a single group. * */ - public com.google.monitoring.v3.Group getGroup( - com.google.monitoring.v3.GetGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.monitoring.v3.Group getGroup(com.google.monitoring.v3.GetGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGroupMethod(), getCallOptions(), request); } @@ -662,8 +659,8 @@ public com.google.monitoring.v3.Group getGroup( * */ public com.google.monitoring.v3.Group createGroup( - com.google.monitoring.v3.CreateGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGroupMethod(), getCallOptions(), request); } @@ -676,8 +673,8 @@ public com.google.monitoring.v3.Group createGroup( * */ public com.google.monitoring.v3.Group updateGroup( - com.google.monitoring.v3.UpdateGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.UpdateGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGroupMethod(), getCallOptions(), request); } @@ -689,8 +686,8 @@ public com.google.monitoring.v3.Group updateGroup( * */ public com.google.protobuf.Empty deleteGroup( - com.google.monitoring.v3.DeleteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.DeleteGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGroupMethod(), getCallOptions(), request); } @@ -702,8 +699,8 @@ public com.google.protobuf.Empty deleteGroup( * */ public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers( - com.google.monitoring.v3.ListGroupMembersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListGroupMembersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGroupMembersMethod(), getCallOptions(), request); } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java index 34ce554aa143..e3754ef60f59 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java @@ -25,9 +25,6 @@ * time series data. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/metric_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MetricServiceGrpc { @@ -911,8 +908,9 @@ protected MetricServiceBlockingV2Stub build( */ public com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse listMonitoredResourceDescriptors( - com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMonitoredResourceDescriptorsMethod(), getCallOptions(), request); } @@ -924,8 +922,9 @@ protected MetricServiceBlockingV2Stub build( * */ public com.google.api.MonitoredResourceDescriptor getMonitoredResourceDescriptor( - com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMonitoredResourceDescriptorMethod(), getCallOptions(), request); } @@ -937,8 +936,9 @@ public com.google.api.MonitoredResourceDescriptor getMonitoredResourceDescriptor * */ public com.google.monitoring.v3.ListMetricDescriptorsResponse listMetricDescriptors( - com.google.monitoring.v3.ListMetricDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListMetricDescriptorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMetricDescriptorsMethod(), getCallOptions(), request); } @@ -950,8 +950,9 @@ public com.google.monitoring.v3.ListMetricDescriptorsResponse listMetricDescript * */ public com.google.api.MetricDescriptor getMetricDescriptor( - com.google.monitoring.v3.GetMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetMetricDescriptorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetricDescriptorMethod(), getCallOptions(), request); } @@ -968,8 +969,9 @@ public com.google.api.MetricDescriptor getMetricDescriptor( * */ public com.google.api.MetricDescriptor createMetricDescriptor( - com.google.monitoring.v3.CreateMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateMetricDescriptorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMetricDescriptorMethod(), getCallOptions(), request); } @@ -983,8 +985,9 @@ public com.google.api.MetricDescriptor createMetricDescriptor( * */ public com.google.protobuf.Empty deleteMetricDescriptor( - com.google.monitoring.v3.DeleteMetricDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.DeleteMetricDescriptorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMetricDescriptorMethod(), getCallOptions(), request); } @@ -996,8 +999,8 @@ public com.google.protobuf.Empty deleteMetricDescriptor( * */ public com.google.monitoring.v3.ListTimeSeriesResponse listTimeSeries( - com.google.monitoring.v3.ListTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListTimeSeriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTimeSeriesMethod(), getCallOptions(), request); } @@ -1015,8 +1018,8 @@ public com.google.monitoring.v3.ListTimeSeriesResponse listTimeSeries( * */ public com.google.protobuf.Empty createTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateTimeSeriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTimeSeriesMethod(), getCallOptions(), request); } @@ -1036,8 +1039,8 @@ public com.google.protobuf.Empty createTimeSeries( * */ public com.google.protobuf.Empty createServiceTimeSeries( - com.google.monitoring.v3.CreateTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateTimeSeriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceTimeSeriesMethod(), getCallOptions(), request); } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java index 170a51977f27..261f1cc6e4f4 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java @@ -25,9 +25,6 @@ * controls how messages related to incidents are sent. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/notification_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NotificationChannelServiceGrpc { @@ -1108,8 +1105,9 @@ protected NotificationChannelServiceBlockingV2Stub build( */ public com.google.monitoring.v3.ListNotificationChannelDescriptorsResponse listNotificationChannelDescriptors( - com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListNotificationChannelDescriptorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotificationChannelDescriptorsMethod(), getCallOptions(), request); } @@ -1122,8 +1120,9 @@ protected NotificationChannelServiceBlockingV2Stub build( * */ public com.google.monitoring.v3.NotificationChannelDescriptor getNotificationChannelDescriptor( - com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetNotificationChannelDescriptorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationChannelDescriptorMethod(), getCallOptions(), request); } @@ -1137,8 +1136,9 @@ public com.google.monitoring.v3.NotificationChannelDescriptor getNotificationCha * */ public com.google.monitoring.v3.ListNotificationChannelsResponse listNotificationChannels( - com.google.monitoring.v3.ListNotificationChannelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListNotificationChannelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotificationChannelsMethod(), getCallOptions(), request); } @@ -1154,8 +1154,9 @@ public com.google.monitoring.v3.ListNotificationChannelsResponse listNotificatio * */ public com.google.monitoring.v3.NotificationChannel getNotificationChannel( - com.google.monitoring.v3.GetNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetNotificationChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationChannelMethod(), getCallOptions(), request); } @@ -1172,8 +1173,9 @@ public com.google.monitoring.v3.NotificationChannel getNotificationChannel( * */ public com.google.monitoring.v3.NotificationChannel createNotificationChannel( - com.google.monitoring.v3.CreateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateNotificationChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotificationChannelMethod(), getCallOptions(), request); } @@ -1190,8 +1192,9 @@ public com.google.monitoring.v3.NotificationChannel createNotificationChannel( * */ public com.google.monitoring.v3.NotificationChannel updateNotificationChannel( - com.google.monitoring.v3.UpdateNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.UpdateNotificationChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNotificationChannelMethod(), getCallOptions(), request); } @@ -1207,8 +1210,9 @@ public com.google.monitoring.v3.NotificationChannel updateNotificationChannel( * */ public com.google.protobuf.Empty deleteNotificationChannel( - com.google.monitoring.v3.DeleteNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.DeleteNotificationChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotificationChannelMethod(), getCallOptions(), request); } @@ -1221,8 +1225,9 @@ public com.google.protobuf.Empty deleteNotificationChannel( * */ public com.google.protobuf.Empty sendNotificationChannelVerificationCode( - com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSendNotificationChannelVerificationCodeMethod(), getCallOptions(), @@ -1257,8 +1262,9 @@ public com.google.protobuf.Empty sendNotificationChannelVerificationCode( */ public com.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse getNotificationChannelVerificationCode( - com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationChannelVerificationCodeMethod(), getCallOptions(), @@ -1275,8 +1281,9 @@ public com.google.protobuf.Empty sendNotificationChannelVerificationCode( * */ public com.google.monitoring.v3.NotificationChannel verifyNotificationChannel( - com.google.monitoring.v3.VerifyNotificationChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.VerifyNotificationChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getVerifyNotificationChannelMethod(), getCallOptions(), request); } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java index 873c50521f7b..f5e189055652 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java @@ -26,9 +26,6 @@ * the time-varying values of a metric. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/query_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class QueryServiceGrpc { @@ -261,8 +258,8 @@ protected QueryServiceBlockingV2Stub build( */ @java.lang.Deprecated public com.google.monitoring.v3.QueryTimeSeriesResponse queryTimeSeries( - com.google.monitoring.v3.QueryTimeSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.QueryTimeSeriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryTimeSeriesMethod(), getCallOptions(), request); } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java index f9a2ab15a3d3..baeaeb69d6b2 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java @@ -27,9 +27,6 @@ * taxonomy of categorized Health Metrics. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/service_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServiceMonitoringServiceGrpc { @@ -959,8 +956,8 @@ protected ServiceMonitoringServiceBlockingV2Stub build( * */ public com.google.monitoring.v3.Service createService( - com.google.monitoring.v3.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); } @@ -972,8 +969,8 @@ public com.google.monitoring.v3.Service createService( * */ public com.google.monitoring.v3.Service getService( - com.google.monitoring.v3.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -985,8 +982,8 @@ public com.google.monitoring.v3.Service getService( * */ public com.google.monitoring.v3.ListServicesResponse listServices( - com.google.monitoring.v3.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListServicesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -998,8 +995,8 @@ public com.google.monitoring.v3.ListServicesResponse listServices( * */ public com.google.monitoring.v3.Service updateService( - com.google.monitoring.v3.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.UpdateServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } @@ -1011,8 +1008,8 @@ public com.google.monitoring.v3.Service updateService( * */ public com.google.protobuf.Empty deleteService( - com.google.monitoring.v3.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.DeleteServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } @@ -1024,8 +1021,9 @@ public com.google.protobuf.Empty deleteService( * */ public com.google.monitoring.v3.ServiceLevelObjective createServiceLevelObjective( - com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateServiceLevelObjectiveRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceLevelObjectiveMethod(), getCallOptions(), request); } @@ -1037,8 +1035,9 @@ public com.google.monitoring.v3.ServiceLevelObjective createServiceLevelObjectiv * */ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective( - com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetServiceLevelObjectiveRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceLevelObjectiveMethod(), getCallOptions(), request); } @@ -1050,8 +1049,9 @@ public com.google.monitoring.v3.ServiceLevelObjective getServiceLevelObjective( * */ public com.google.monitoring.v3.ListServiceLevelObjectivesResponse listServiceLevelObjectives( - com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListServiceLevelObjectivesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceLevelObjectivesMethod(), getCallOptions(), request); } @@ -1063,8 +1063,9 @@ public com.google.monitoring.v3.ListServiceLevelObjectivesResponse listServiceLe * */ public com.google.monitoring.v3.ServiceLevelObjective updateServiceLevelObjective( - com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.UpdateServiceLevelObjectiveRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceLevelObjectiveMethod(), getCallOptions(), request); } @@ -1076,8 +1077,9 @@ public com.google.monitoring.v3.ServiceLevelObjective updateServiceLevelObjectiv * */ public com.google.protobuf.Empty deleteServiceLevelObjective( - com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.DeleteServiceLevelObjectiveRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceLevelObjectiveMethod(), getCallOptions(), request); } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java index 4690c4b2512d..1445a6be9192 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeServiceGrpc.java @@ -26,9 +26,6 @@ * or more alert policies should not fire alerts for the specified duration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/snooze_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SnoozeServiceGrpc { @@ -466,8 +463,8 @@ protected SnoozeServiceBlockingV2Stub build( * */ public com.google.monitoring.v3.Snooze createSnooze( - com.google.monitoring.v3.CreateSnoozeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateSnoozeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSnoozeMethod(), getCallOptions(), request); } @@ -480,8 +477,8 @@ public com.google.monitoring.v3.Snooze createSnooze( * */ public com.google.monitoring.v3.ListSnoozesResponse listSnoozes( - com.google.monitoring.v3.ListSnoozesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListSnoozesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSnoozesMethod(), getCallOptions(), request); } @@ -493,8 +490,8 @@ public com.google.monitoring.v3.ListSnoozesResponse listSnoozes( * */ public com.google.monitoring.v3.Snooze getSnooze( - com.google.monitoring.v3.GetSnoozeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetSnoozeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSnoozeMethod(), getCallOptions(), request); } @@ -507,8 +504,8 @@ public com.google.monitoring.v3.Snooze getSnooze( * */ public com.google.monitoring.v3.Snooze updateSnooze( - com.google.monitoring.v3.UpdateSnoozeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.UpdateSnoozeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSnoozeMethod(), getCallOptions(), request); } } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java index 53dcab4b7bc0..bd731e882364 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java @@ -31,9 +31,6 @@ * Monitoring, and then clicking on "Uptime". * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/monitoring/v3/uptime_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UptimeCheckServiceGrpc { @@ -691,8 +688,9 @@ protected UptimeCheckServiceBlockingV2Stub build( * */ public com.google.monitoring.v3.ListUptimeCheckConfigsResponse listUptimeCheckConfigs( - com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListUptimeCheckConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUptimeCheckConfigsMethod(), getCallOptions(), request); } @@ -704,8 +702,9 @@ public com.google.monitoring.v3.ListUptimeCheckConfigsResponse listUptimeCheckCo * */ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig( - com.google.monitoring.v3.GetUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.GetUptimeCheckConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUptimeCheckConfigMethod(), getCallOptions(), request); } @@ -717,8 +716,9 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig( * */ public com.google.monitoring.v3.UptimeCheckConfig createUptimeCheckConfig( - com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.CreateUptimeCheckConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUptimeCheckConfigMethod(), getCallOptions(), request); } @@ -733,8 +733,9 @@ public com.google.monitoring.v3.UptimeCheckConfig createUptimeCheckConfig( * */ public com.google.monitoring.v3.UptimeCheckConfig updateUptimeCheckConfig( - com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.UpdateUptimeCheckConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUptimeCheckConfigMethod(), getCallOptions(), request); } @@ -748,8 +749,9 @@ public com.google.monitoring.v3.UptimeCheckConfig updateUptimeCheckConfig( * */ public com.google.protobuf.Empty deleteUptimeCheckConfig( - com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.DeleteUptimeCheckConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUptimeCheckConfigMethod(), getCallOptions(), request); } @@ -761,8 +763,8 @@ public com.google.protobuf.Empty deleteUptimeCheckConfig( * */ public com.google.monitoring.v3.ListUptimeCheckIpsResponse listUptimeCheckIps( - com.google.monitoring.v3.ListUptimeCheckIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.monitoring.v3.ListUptimeCheckIpsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUptimeCheckIpsMethod(), getCallOptions(), request); } } diff --git a/java-netapp/README.md b/java-netapp/README.md index 089b6bab917d..5b5dfa537894 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.56.0' +implementation 'com.google.cloud:google-cloud-netapp:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.57.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java b/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java index 643d29251246..94bc5cdb3d26 100644 --- a/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java +++ b/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java @@ -24,9 +24,6 @@ * NetApp Files Google Cloud Service * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/netapp/v1/cloud_netapp_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NetAppGrpc { @@ -4582,8 +4579,8 @@ protected NetAppBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.netapp.v1.ListStoragePoolsResponse listStoragePools( - com.google.cloud.netapp.v1.ListStoragePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListStoragePoolsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListStoragePoolsMethod(), getCallOptions(), request); } @@ -4595,8 +4592,9 @@ public com.google.cloud.netapp.v1.ListStoragePoolsResponse listStoragePools( * */ public com.google.longrunning.Operation createStoragePool( - com.google.cloud.netapp.v1.CreateStoragePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateStoragePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateStoragePoolMethod(), getCallOptions(), request); } @@ -4608,8 +4606,8 @@ public com.google.longrunning.Operation createStoragePool( * */ public com.google.cloud.netapp.v1.StoragePool getStoragePool( - com.google.cloud.netapp.v1.GetStoragePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetStoragePoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStoragePoolMethod(), getCallOptions(), request); } @@ -4621,8 +4619,9 @@ public com.google.cloud.netapp.v1.StoragePool getStoragePool( * */ public com.google.longrunning.Operation updateStoragePool( - com.google.cloud.netapp.v1.UpdateStoragePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateStoragePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateStoragePoolMethod(), getCallOptions(), request); } @@ -4634,8 +4633,9 @@ public com.google.longrunning.Operation updateStoragePool( * */ public com.google.longrunning.Operation deleteStoragePool( - com.google.cloud.netapp.v1.DeleteStoragePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteStoragePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteStoragePoolMethod(), getCallOptions(), request); } @@ -4648,8 +4648,9 @@ public com.google.longrunning.Operation deleteStoragePool( * */ public com.google.longrunning.Operation validateDirectoryService( - com.google.cloud.netapp.v1.ValidateDirectoryServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ValidateDirectoryServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateDirectoryServiceMethod(), getCallOptions(), request); } @@ -4662,8 +4663,9 @@ public com.google.longrunning.Operation validateDirectoryService( * */ public com.google.longrunning.Operation switchActiveReplicaZone( - com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSwitchActiveReplicaZoneMethod(), getCallOptions(), request); } @@ -4675,8 +4677,8 @@ public com.google.longrunning.Operation switchActiveReplicaZone( * */ public com.google.cloud.netapp.v1.ListVolumesResponse listVolumes( - com.google.cloud.netapp.v1.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListVolumesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVolumesMethod(), getCallOptions(), request); } @@ -4688,8 +4690,8 @@ public com.google.cloud.netapp.v1.ListVolumesResponse listVolumes( * */ public com.google.cloud.netapp.v1.Volume getVolume( - com.google.cloud.netapp.v1.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetVolumeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVolumeMethod(), getCallOptions(), request); } @@ -4701,8 +4703,8 @@ public com.google.cloud.netapp.v1.Volume getVolume( * */ public com.google.longrunning.Operation createVolume( - com.google.cloud.netapp.v1.CreateVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateVolumeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVolumeMethod(), getCallOptions(), request); } @@ -4714,8 +4716,8 @@ public com.google.longrunning.Operation createVolume( * */ public com.google.longrunning.Operation updateVolume( - com.google.cloud.netapp.v1.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateVolumeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); } @@ -4727,8 +4729,8 @@ public com.google.longrunning.Operation updateVolume( * */ public com.google.longrunning.Operation deleteVolume( - com.google.cloud.netapp.v1.DeleteVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteVolumeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVolumeMethod(), getCallOptions(), request); } @@ -4742,8 +4744,8 @@ public com.google.longrunning.Operation deleteVolume( * */ public com.google.longrunning.Operation revertVolume( - com.google.cloud.netapp.v1.RevertVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.RevertVolumeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRevertVolumeMethod(), getCallOptions(), request); } @@ -4755,8 +4757,8 @@ public com.google.longrunning.Operation revertVolume( * */ public com.google.cloud.netapp.v1.ListSnapshotsResponse listSnapshots( - com.google.cloud.netapp.v1.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListSnapshotsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } @@ -4768,8 +4770,8 @@ public com.google.cloud.netapp.v1.ListSnapshotsResponse listSnapshots( * */ public com.google.cloud.netapp.v1.Snapshot getSnapshot( - com.google.cloud.netapp.v1.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } @@ -4781,8 +4783,8 @@ public com.google.cloud.netapp.v1.Snapshot getSnapshot( * */ public com.google.longrunning.Operation createSnapshot( - com.google.cloud.netapp.v1.CreateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } @@ -4794,8 +4796,8 @@ public com.google.longrunning.Operation createSnapshot( * */ public com.google.longrunning.Operation deleteSnapshot( - com.google.cloud.netapp.v1.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } @@ -4807,8 +4809,8 @@ public com.google.longrunning.Operation deleteSnapshot( * */ public com.google.longrunning.Operation updateSnapshot( - com.google.cloud.netapp.v1.UpdateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } @@ -4820,8 +4822,9 @@ public com.google.longrunning.Operation updateSnapshot( * */ public com.google.cloud.netapp.v1.ListActiveDirectoriesResponse listActiveDirectories( - com.google.cloud.netapp.v1.ListActiveDirectoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListActiveDirectoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListActiveDirectoriesMethod(), getCallOptions(), request); } @@ -4833,8 +4836,9 @@ public com.google.cloud.netapp.v1.ListActiveDirectoriesResponse listActiveDirect * */ public com.google.cloud.netapp.v1.ActiveDirectory getActiveDirectory( - com.google.cloud.netapp.v1.GetActiveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetActiveDirectoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetActiveDirectoryMethod(), getCallOptions(), request); } @@ -4847,8 +4851,9 @@ public com.google.cloud.netapp.v1.ActiveDirectory getActiveDirectory( * */ public com.google.longrunning.Operation createActiveDirectory( - com.google.cloud.netapp.v1.CreateActiveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateActiveDirectoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateActiveDirectoryMethod(), getCallOptions(), request); } @@ -4860,8 +4865,9 @@ public com.google.longrunning.Operation createActiveDirectory( * */ public com.google.longrunning.Operation updateActiveDirectory( - com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateActiveDirectoryMethod(), getCallOptions(), request); } @@ -4873,8 +4879,9 @@ public com.google.longrunning.Operation updateActiveDirectory( * */ public com.google.longrunning.Operation deleteActiveDirectory( - com.google.cloud.netapp.v1.DeleteActiveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteActiveDirectoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteActiveDirectoryMethod(), getCallOptions(), request); } @@ -4886,8 +4893,8 @@ public com.google.longrunning.Operation deleteActiveDirectory( * */ public com.google.cloud.netapp.v1.ListKmsConfigsResponse listKmsConfigs( - com.google.cloud.netapp.v1.ListKmsConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListKmsConfigsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListKmsConfigsMethod(), getCallOptions(), request); } @@ -4899,8 +4906,8 @@ public com.google.cloud.netapp.v1.ListKmsConfigsResponse listKmsConfigs( * */ public com.google.longrunning.Operation createKmsConfig( - com.google.cloud.netapp.v1.CreateKmsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateKmsConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateKmsConfigMethod(), getCallOptions(), request); } @@ -4912,8 +4919,8 @@ public com.google.longrunning.Operation createKmsConfig( * */ public com.google.cloud.netapp.v1.KmsConfig getKmsConfig( - com.google.cloud.netapp.v1.GetKmsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetKmsConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKmsConfigMethod(), getCallOptions(), request); } @@ -4925,8 +4932,8 @@ public com.google.cloud.netapp.v1.KmsConfig getKmsConfig( * */ public com.google.longrunning.Operation updateKmsConfig( - com.google.cloud.netapp.v1.UpdateKmsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateKmsConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateKmsConfigMethod(), getCallOptions(), request); } @@ -4939,8 +4946,8 @@ public com.google.longrunning.Operation updateKmsConfig( * */ public com.google.longrunning.Operation encryptVolumes( - com.google.cloud.netapp.v1.EncryptVolumesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.EncryptVolumesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEncryptVolumesMethod(), getCallOptions(), request); } @@ -4952,8 +4959,8 @@ public com.google.longrunning.Operation encryptVolumes( * */ public com.google.cloud.netapp.v1.VerifyKmsConfigResponse verifyKmsConfig( - com.google.cloud.netapp.v1.VerifyKmsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.VerifyKmsConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getVerifyKmsConfigMethod(), getCallOptions(), request); } @@ -4965,8 +4972,8 @@ public com.google.cloud.netapp.v1.VerifyKmsConfigResponse verifyKmsConfig( * */ public com.google.longrunning.Operation deleteKmsConfig( - com.google.cloud.netapp.v1.DeleteKmsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteKmsConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteKmsConfigMethod(), getCallOptions(), request); } @@ -4978,8 +4985,8 @@ public com.google.longrunning.Operation deleteKmsConfig( * */ public com.google.cloud.netapp.v1.ListReplicationsResponse listReplications( - com.google.cloud.netapp.v1.ListReplicationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListReplicationsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReplicationsMethod(), getCallOptions(), request); } @@ -4991,8 +4998,8 @@ public com.google.cloud.netapp.v1.ListReplicationsResponse listReplications( * */ public com.google.cloud.netapp.v1.Replication getReplication( - com.google.cloud.netapp.v1.GetReplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetReplicationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReplicationMethod(), getCallOptions(), request); } @@ -5004,8 +5011,9 @@ public com.google.cloud.netapp.v1.Replication getReplication( * */ public com.google.longrunning.Operation createReplication( - com.google.cloud.netapp.v1.CreateReplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateReplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReplicationMethod(), getCallOptions(), request); } @@ -5017,8 +5025,9 @@ public com.google.longrunning.Operation createReplication( * */ public com.google.longrunning.Operation deleteReplication( - com.google.cloud.netapp.v1.DeleteReplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteReplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReplicationMethod(), getCallOptions(), request); } @@ -5030,8 +5039,9 @@ public com.google.longrunning.Operation deleteReplication( * */ public com.google.longrunning.Operation updateReplication( - com.google.cloud.netapp.v1.UpdateReplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateReplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReplicationMethod(), getCallOptions(), request); } @@ -5043,8 +5053,8 @@ public com.google.longrunning.Operation updateReplication( * */ public com.google.longrunning.Operation stopReplication( - com.google.cloud.netapp.v1.StopReplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.StopReplicationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopReplicationMethod(), getCallOptions(), request); } @@ -5056,8 +5066,9 @@ public com.google.longrunning.Operation stopReplication( * */ public com.google.longrunning.Operation resumeReplication( - com.google.cloud.netapp.v1.ResumeReplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ResumeReplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeReplicationMethod(), getCallOptions(), request); } @@ -5070,8 +5081,9 @@ public com.google.longrunning.Operation resumeReplication( * */ public com.google.longrunning.Operation reverseReplicationDirection( - com.google.cloud.netapp.v1.ReverseReplicationDirectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ReverseReplicationDirectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReverseReplicationDirectionMethod(), getCallOptions(), request); } @@ -5083,8 +5095,8 @@ public com.google.longrunning.Operation reverseReplicationDirection( * */ public com.google.longrunning.Operation establishPeering( - com.google.cloud.netapp.v1.EstablishPeeringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.EstablishPeeringRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEstablishPeeringMethod(), getCallOptions(), request); } @@ -5097,8 +5109,8 @@ public com.google.longrunning.Operation establishPeering( * */ public com.google.longrunning.Operation syncReplication( - com.google.cloud.netapp.v1.SyncReplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.SyncReplicationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSyncReplicationMethod(), getCallOptions(), request); } @@ -5110,8 +5122,9 @@ public com.google.longrunning.Operation syncReplication( * */ public com.google.longrunning.Operation createBackupVault( - com.google.cloud.netapp.v1.CreateBackupVaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateBackupVaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupVaultMethod(), getCallOptions(), request); } @@ -5123,8 +5136,8 @@ public com.google.longrunning.Operation createBackupVault( * */ public com.google.cloud.netapp.v1.BackupVault getBackupVault( - com.google.cloud.netapp.v1.GetBackupVaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetBackupVaultRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupVaultMethod(), getCallOptions(), request); } @@ -5136,8 +5149,8 @@ public com.google.cloud.netapp.v1.BackupVault getBackupVault( * */ public com.google.cloud.netapp.v1.ListBackupVaultsResponse listBackupVaults( - com.google.cloud.netapp.v1.ListBackupVaultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListBackupVaultsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupVaultsMethod(), getCallOptions(), request); } @@ -5149,8 +5162,9 @@ public com.google.cloud.netapp.v1.ListBackupVaultsResponse listBackupVaults( * */ public com.google.longrunning.Operation updateBackupVault( - com.google.cloud.netapp.v1.UpdateBackupVaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateBackupVaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupVaultMethod(), getCallOptions(), request); } @@ -5162,8 +5176,9 @@ public com.google.longrunning.Operation updateBackupVault( * */ public com.google.longrunning.Operation deleteBackupVault( - com.google.cloud.netapp.v1.DeleteBackupVaultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteBackupVaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupVaultMethod(), getCallOptions(), request); } @@ -5178,8 +5193,8 @@ public com.google.longrunning.Operation deleteBackupVault( * */ public com.google.longrunning.Operation createBackup( - com.google.cloud.netapp.v1.CreateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } @@ -5191,8 +5206,8 @@ public com.google.longrunning.Operation createBackup( * */ public com.google.cloud.netapp.v1.Backup getBackup( - com.google.cloud.netapp.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -5204,8 +5219,8 @@ public com.google.cloud.netapp.v1.Backup getBackup( * */ public com.google.cloud.netapp.v1.ListBackupsResponse listBackups( - com.google.cloud.netapp.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListBackupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -5217,8 +5232,8 @@ public com.google.cloud.netapp.v1.ListBackupsResponse listBackups( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.netapp.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -5230,8 +5245,8 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.longrunning.Operation updateBackup( - com.google.cloud.netapp.v1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } @@ -5243,8 +5258,9 @@ public com.google.longrunning.Operation updateBackup( * */ public com.google.longrunning.Operation createBackupPolicy( - com.google.cloud.netapp.v1.CreateBackupPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateBackupPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBackupPolicyMethod(), getCallOptions(), request); } @@ -5256,8 +5272,8 @@ public com.google.longrunning.Operation createBackupPolicy( * */ public com.google.cloud.netapp.v1.BackupPolicy getBackupPolicy( - com.google.cloud.netapp.v1.GetBackupPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetBackupPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupPolicyMethod(), getCallOptions(), request); } @@ -5269,8 +5285,9 @@ public com.google.cloud.netapp.v1.BackupPolicy getBackupPolicy( * */ public com.google.cloud.netapp.v1.ListBackupPoliciesResponse listBackupPolicies( - com.google.cloud.netapp.v1.ListBackupPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListBackupPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupPoliciesMethod(), getCallOptions(), request); } @@ -5282,8 +5299,9 @@ public com.google.cloud.netapp.v1.ListBackupPoliciesResponse listBackupPolicies( * */ public com.google.longrunning.Operation updateBackupPolicy( - com.google.cloud.netapp.v1.UpdateBackupPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateBackupPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBackupPolicyMethod(), getCallOptions(), request); } @@ -5295,8 +5313,9 @@ public com.google.longrunning.Operation updateBackupPolicy( * */ public com.google.longrunning.Operation deleteBackupPolicy( - com.google.cloud.netapp.v1.DeleteBackupPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteBackupPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupPolicyMethod(), getCallOptions(), request); } @@ -5308,8 +5327,8 @@ public com.google.longrunning.Operation deleteBackupPolicy( * */ public com.google.cloud.netapp.v1.ListQuotaRulesResponse listQuotaRules( - com.google.cloud.netapp.v1.ListQuotaRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.ListQuotaRulesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQuotaRulesMethod(), getCallOptions(), request); } @@ -5321,8 +5340,8 @@ public com.google.cloud.netapp.v1.ListQuotaRulesResponse listQuotaRules( * */ public com.google.cloud.netapp.v1.QuotaRule getQuotaRule( - com.google.cloud.netapp.v1.GetQuotaRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.GetQuotaRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQuotaRuleMethod(), getCallOptions(), request); } @@ -5334,8 +5353,8 @@ public com.google.cloud.netapp.v1.QuotaRule getQuotaRule( * */ public com.google.longrunning.Operation createQuotaRule( - com.google.cloud.netapp.v1.CreateQuotaRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.CreateQuotaRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQuotaRuleMethod(), getCallOptions(), request); } @@ -5347,8 +5366,8 @@ public com.google.longrunning.Operation createQuotaRule( * */ public com.google.longrunning.Operation updateQuotaRule( - com.google.cloud.netapp.v1.UpdateQuotaRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.UpdateQuotaRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQuotaRuleMethod(), getCallOptions(), request); } @@ -5360,8 +5379,8 @@ public com.google.longrunning.Operation updateQuotaRule( * */ public com.google.longrunning.Operation deleteQuotaRule( - com.google.cloud.netapp.v1.DeleteQuotaRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.netapp.v1.DeleteQuotaRuleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQuotaRuleMethod(), getCallOptions(), request); } } diff --git a/java-network-management/README.md b/java-network-management/README.md index f48f912750c3..f4acc702036a 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-management - 1.78.0 + 1.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.78.0' +implementation 'com.google.cloud:google-cloud-network-management:1.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClient.java new file mode 100644 index 000000000000..d76005f64f8f --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClient.java @@ -0,0 +1,2112 @@ +/* + * Copyright 2025 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.networkmanagement.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.stub.OrganizationVpcFlowLogsServiceStub; +import com.google.cloud.networkmanagement.v1.stub.OrganizationVpcFlowLogsServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The VPC Flow Logs organization service in the Google Cloud Network + * Management API provides organization level configurations that generate Flow Logs. The service + * and the configuration resources created using this service are global. + * + *

                                          This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                          {@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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          + *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          + *   VpcFlowLogsConfigName name =
                                          + *       VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
                                          + *           "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
                                          + *   VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
                                          + * }
                                          + * }
                                          + * + *

                                          Note: close() needs to be called on the OrganizationVpcFlowLogsServiceClient object to clean + * up resources such as threads. In the example above, try-with-resources is used, which + * automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                          Methods
                                          MethodDescriptionMethod Variants

                                          ListVpcFlowLogsConfigs

                                          Lists all `VpcFlowLogsConfigs` in a given organization.

                                          + *

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

                                          + *
                                            + *
                                          • listVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • listVpcFlowLogsConfigs(LocationName parent) + *

                                          • listVpcFlowLogsConfigs(OrganizationLocationName parent) + *

                                          • listVpcFlowLogsConfigs(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.

                                          + *
                                            + *
                                          • listVpcFlowLogsConfigsPagedCallable() + *

                                          • listVpcFlowLogsConfigsCallable() + *

                                          + *

                                          GetVpcFlowLogsConfig

                                          Gets the details of a specific `VpcFlowLogsConfig`.

                                          + *

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

                                          + *
                                            + *
                                          • getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • getVpcFlowLogsConfig(VpcFlowLogsConfigName name) + *

                                          • getVpcFlowLogsConfig(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.

                                          + *
                                            + *
                                          • getVpcFlowLogsConfigCallable() + *

                                          + *

                                          CreateVpcFlowLogsConfig

                                          Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description

                                          + *

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

                                          + *
                                            + *
                                          • createVpcFlowLogsConfigAsync(CreateVpcFlowLogsConfigRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

                                          • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

                                          • createVpcFlowLogsConfigAsync(OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

                                          • createVpcFlowLogsConfigAsync(OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

                                          • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

                                          • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

                                          + *

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

                                          + *
                                            + *
                                          • createVpcFlowLogsConfigOperationCallable() + *

                                          • createVpcFlowLogsConfigCallable() + *

                                          + *

                                          UpdateVpcFlowLogsConfig

                                          Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: + *

                                          1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description

                                          + *

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

                                          + *
                                            + *
                                          • updateVpcFlowLogsConfigAsync(UpdateVpcFlowLogsConfigRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • updateVpcFlowLogsConfigAsync(VpcFlowLogsConfig vpcFlowLogsConfig, 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.

                                          + *
                                            + *
                                          • updateVpcFlowLogsConfigOperationCallable() + *

                                          • updateVpcFlowLogsConfigCallable() + *

                                          + *

                                          DeleteVpcFlowLogsConfig

                                          Deletes a specific `VpcFlowLogsConfig`.

                                          + *

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

                                          + *
                                            + *
                                          • deleteVpcFlowLogsConfigAsync(DeleteVpcFlowLogsConfigRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • deleteVpcFlowLogsConfigAsync(VpcFlowLogsConfigName name) + *

                                          • deleteVpcFlowLogsConfigAsync(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.

                                          + *
                                            + *
                                          • deleteVpcFlowLogsConfigOperationCallable() + *

                                          • deleteVpcFlowLogsConfigCallable() + *

                                          + *

                                          ListLocations

                                          Lists information about the supported locations for this service.

                                          + *

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

                                          + *
                                            + *
                                          • listLocations(ListLocationsRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • listLocationsPagedCallable() + *

                                          • listLocationsCallable() + *

                                          + *

                                          GetLocation

                                          Gets information about a location.

                                          + *

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

                                          + *
                                            + *
                                          • getLocation(GetLocationRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • getLocationCallable() + *

                                          + *

                                          SetIamPolicy

                                          Sets the access control policy on the specified resource. Replacesany existing policy. + *

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

                                          + *

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

                                          + *
                                            + *
                                          • setIamPolicy(SetIamPolicyRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • setIamPolicyCallable() + *

                                          + *

                                          GetIamPolicy

                                          Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

                                          + *

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

                                          + *
                                            + *
                                          • getIamPolicy(GetIamPolicyRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • getIamPolicyCallable() + *

                                          + *

                                          TestIamPermissions

                                          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.

                                          + *

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

                                          + *
                                            + *
                                          • testIamPermissions(TestIamPermissionsRequest request) + *

                                          + *

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

                                          + *
                                            + *
                                          • testIamPermissionsCallable() + *

                                          + *
                                          + * + *

                                          See the individual methods for example code. + * + *

                                          Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                          This class can be customized by passing in a custom instance of + * OrganizationVpcFlowLogsServiceSettings to create(). For example: + * + *

                                          To customize credentials: + * + *

                                          {@code
                                          + * // This snippet has been automatically generated and should be regarded as a code template only.
                                          + * // It will require modifications to work:
                                          + * // - It may require correct/in-range values for request initialization.
                                          + * // - It may require specifying regional endpoints when creating the service client as shown in
                                          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                          + * OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings =
                                          + *     OrganizationVpcFlowLogsServiceSettings.newBuilder()
                                          + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                          + *         .build();
                                          + * OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          + *     OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings);
                                          + * }
                                          + * + *

                                          To customize the endpoint: + * + *

                                          {@code
                                          + * // This snippet has been automatically generated and should be regarded as a code template only.
                                          + * // It will require modifications to work:
                                          + * // - It may require correct/in-range values for request initialization.
                                          + * // - It may require specifying regional endpoints when creating the service client as shown in
                                          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                          + * OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings =
                                          + *     OrganizationVpcFlowLogsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
                                          + * OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          + *     OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings);
                                          + * }
                                          + * + *

                                          To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                                          {@code
                                          + * // This snippet has been automatically generated and should be regarded as a code template only.
                                          + * // It will require modifications to work:
                                          + * // - It may require correct/in-range values for request initialization.
                                          + * // - It may require specifying regional endpoints when creating the service client as shown in
                                          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                          + * OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings =
                                          + *     OrganizationVpcFlowLogsServiceSettings.newHttpJsonBuilder().build();
                                          + * OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          + *     OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings);
                                          + * }
                                          + * + *

                                          Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class OrganizationVpcFlowLogsServiceClient implements BackgroundResource { + private final OrganizationVpcFlowLogsServiceSettings settings; + private final OrganizationVpcFlowLogsServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of OrganizationVpcFlowLogsServiceClient with default settings. */ + public static final OrganizationVpcFlowLogsServiceClient create() throws IOException { + return create(OrganizationVpcFlowLogsServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OrganizationVpcFlowLogsServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final OrganizationVpcFlowLogsServiceClient create( + OrganizationVpcFlowLogsServiceSettings settings) throws IOException { + return new OrganizationVpcFlowLogsServiceClient(settings); + } + + /** + * Constructs an instance of OrganizationVpcFlowLogsServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using + * create(OrganizationVpcFlowLogsServiceSettings). + */ + public static final OrganizationVpcFlowLogsServiceClient create( + OrganizationVpcFlowLogsServiceStub stub) { + return new OrganizationVpcFlowLogsServiceClient(stub); + } + + /** + * Constructs an instance of OrganizationVpcFlowLogsServiceClient, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected OrganizationVpcFlowLogsServiceClient(OrganizationVpcFlowLogsServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = + ((OrganizationVpcFlowLogsServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected OrganizationVpcFlowLogsServiceClient(OrganizationVpcFlowLogsServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final OrganizationVpcFlowLogsServiceSettings getSettings() { + return settings; + } + + public OrganizationVpcFlowLogsServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                          +   *   for (VpcFlowLogsConfig element :
                                          +   *       organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                          - For project-level resourcs: `projects/{project_id}/locations/global` + *

                                          - For organization-level resources: `organizations/{organization_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(LocationName parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVpcFlowLogsConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                          +   *   for (VpcFlowLogsConfig element :
                                          +   *       organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                          - For project-level resourcs: `projects/{project_id}/locations/global` + *

                                          - For organization-level resources: `organizations/{organization_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + OrganizationLocationName parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVpcFlowLogsConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                          +   *   for (VpcFlowLogsConfig element :
                                          +   *       organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                          - For project-level resourcs: `projects/{project_id}/locations/global` + *

                                          - For organization-level resources: `organizations/{organization_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(String parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder().setParent(parent).build(); + return listVpcFlowLogsConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   ListVpcFlowLogsConfigsRequest request =
                                          +   *       ListVpcFlowLogsConfigsRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setOrderBy("orderBy-1207110587")
                                          +   *           .build();
                                          +   *   for (VpcFlowLogsConfig element :
                                          +   *       organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(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 ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + ListVpcFlowLogsConfigsRequest request) { + return listVpcFlowLogsConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   ListVpcFlowLogsConfigsRequest request =
                                          +   *       ListVpcFlowLogsConfigsRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setOrderBy("orderBy-1207110587")
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .listVpcFlowLogsConfigsPagedCallable()
                                          +   *           .futureCall(request);
                                          +   *   // Do something.
                                          +   *   for (VpcFlowLogsConfig element : future.get().iterateAll()) {
                                          +   *     // doThingsWith(element);
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + return stub.listVpcFlowLogsConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   ListVpcFlowLogsConfigsRequest request =
                                          +   *       ListVpcFlowLogsConfigsRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setOrderBy("orderBy-1207110587")
                                          +   *           .build();
                                          +   *   while (true) {
                                          +   *     ListVpcFlowLogsConfigsResponse response =
                                          +   *         organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigsCallable().call(request);
                                          +   *     for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) {
                                          +   *       // doThingsWith(element);
                                          +   *     }
                                          +   *     String nextPageToken = response.getNextPageToken();
                                          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                          +   *     } else {
                                          +   *       break;
                                          +   *     }
                                          +   *   }
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + listVpcFlowLogsConfigsCallable() { + return stub.listVpcFlowLogsConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   VpcFlowLogsConfigName name =
                                          +   *       VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
                                          +   *           "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
                                          +   *   VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                          - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

                                          - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getVpcFlowLogsConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   String name =
                                          +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *           .toString();
                                          +   *   VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                          - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

                                          - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VpcFlowLogsConfig getVpcFlowLogsConfig(String name) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder().setName(name).build(); + return getVpcFlowLogsConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   GetVpcFlowLogsConfigRequest request =
                                          +   *       GetVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setName(
                                          +   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
                                          +   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *                   .toString())
                                          +   *           .build();
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(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 VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest request) { + return getVpcFlowLogsConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   GetVpcFlowLogsConfigRequest request =
                                          +   *       GetVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setName(
                                          +   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
                                          +   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *                   .toString())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfigCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   VpcFlowLogsConfig response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + getVpcFlowLogsConfigCallable() { + return stub.getVpcFlowLogsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                          +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
                                          +   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
                                          +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *           "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
                                          +   *           .get();
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                          - For project-level resources: `projects/{project_id}/locations/global` + *

                                          - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + LocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                          +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
                                          +   *   String vpcFlowLogsConfigId =
                                          +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *           .toString();
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
                                          +   *           .get();
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                          - For project-level resources: `projects/{project_id}/locations/global` + *

                                          - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                          +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
                                          +   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
                                          +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *           "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
                                          +   *           .get();
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                          - For project-level resources: `projects/{project_id}/locations/global` + *

                                          - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + OrganizationLocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                          +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
                                          +   *   String vpcFlowLogsConfigId =
                                          +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *           .toString();
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
                                          +   *           .get();
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                          - For project-level resources: `projects/{project_id}/locations/global` + *

                                          - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + OrganizationLocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                          +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
                                          +   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
                                          +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *           "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
                                          +   *           .get();
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                          - For project-level resources: `projects/{project_id}/locations/global` + *

                                          - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + String parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                          +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
                                          +   *   String vpcFlowLogsConfigId =
                                          +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *           .toString();
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
                                          +   *           .get();
                                          +   * }
                                          +   * }
                                          + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                          - For project-level resources: `projects/{project_id}/locations/global` + *

                                          - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + String parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   CreateVpcFlowLogsConfigRequest request =
                                          +   *       CreateVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setVpcFlowLogsConfigId(
                                          +   *               VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *                       "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *                   .toString())
                                          +   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
                                          +   *           .build();
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient.createVpcFlowLogsConfigAsync(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 createVpcFlowLogsConfigAsync( + CreateVpcFlowLogsConfigRequest request) { + return createVpcFlowLogsConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   CreateVpcFlowLogsConfigRequest request =
                                          +   *       CreateVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setVpcFlowLogsConfigId(
                                          +   *               VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *                       "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *                   .toString())
                                          +   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
                                          +   *           .build();
                                          +   *   OperationFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .createVpcFlowLogsConfigOperationCallable()
                                          +   *           .futureCall(request);
                                          +   *   // Do something.
                                          +   *   VpcFlowLogsConfig response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final OperationCallable< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationCallable() { + return stub.createVpcFlowLogsConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   CreateVpcFlowLogsConfigRequest request =
                                          +   *       CreateVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                          +   *           .setVpcFlowLogsConfigId(
                                          +   *               VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *                       "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *                   .toString())
                                          +   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .createVpcFlowLogsConfigCallable()
                                          +   *           .futureCall(request);
                                          +   *   // Do something.
                                          +   *   Operation response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + createVpcFlowLogsConfigCallable() { + return stub.createVpcFlowLogsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
                                          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask)
                                          +   *           .get();
                                          +   * }
                                          +   * }
                                          + * + * @param vpcFlowLogsConfig Required. Only fields specified in update_mask are updated. + * @param updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. For example, to change the state of the configuration to ENABLED, specify + * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: `vpc_flow_logs_config = + * { name = "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state = + * "ENABLED" }` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateVpcFlowLogsConfigAsync( + VpcFlowLogsConfig vpcFlowLogsConfig, FieldMask updateMask) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setUpdateMask(updateMask) + .build(); + return updateVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   UpdateVpcFlowLogsConfigRequest request =
                                          +   *       UpdateVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                          +   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
                                          +   *           .build();
                                          +   *   VpcFlowLogsConfig response =
                                          +   *       organizationVpcFlowLogsServiceClient.updateVpcFlowLogsConfigAsync(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 updateVpcFlowLogsConfigAsync( + UpdateVpcFlowLogsConfigRequest request) { + return updateVpcFlowLogsConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   UpdateVpcFlowLogsConfigRequest request =
                                          +   *       UpdateVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                          +   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
                                          +   *           .build();
                                          +   *   OperationFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .updateVpcFlowLogsConfigOperationCallable()
                                          +   *           .futureCall(request);
                                          +   *   // Do something.
                                          +   *   VpcFlowLogsConfig response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final OperationCallable< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationCallable() { + return stub.updateVpcFlowLogsConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

                                          1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   UpdateVpcFlowLogsConfigRequest request =
                                          +   *       UpdateVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                          +   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .updateVpcFlowLogsConfigCallable()
                                          +   *           .futureCall(request);
                                          +   *   // Do something.
                                          +   *   Operation response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + updateVpcFlowLogsConfigCallable() { + return stub.updateVpcFlowLogsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   VpcFlowLogsConfigName name =
                                          +   *       VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
                                          +   *           "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
                                          +   *   organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get();
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                          - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

                                          - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVpcFlowLogsConfigAsync( + VpcFlowLogsConfigName name) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   String name =
                                          +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                          +   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *           .toString();
                                          +   *   organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get();
                                          +   * }
                                          +   * }
                                          + * + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                          - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

                                          - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVpcFlowLogsConfigAsync(String name) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder().setName(name).build(); + return deleteVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   DeleteVpcFlowLogsConfigRequest request =
                                          +   *       DeleteVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setName(
                                          +   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
                                          +   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *                   .toString())
                                          +   *           .build();
                                          +   *   organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigAsync( + DeleteVpcFlowLogsConfigRequest request) { + return deleteVpcFlowLogsConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   DeleteVpcFlowLogsConfigRequest request =
                                          +   *       DeleteVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setName(
                                          +   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
                                          +   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *                   .toString())
                                          +   *           .build();
                                          +   *   OperationFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .deleteVpcFlowLogsConfigOperationCallable()
                                          +   *           .futureCall(request);
                                          +   *   // Do something.
                                          +   *   future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + return stub.deleteVpcFlowLogsConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   DeleteVpcFlowLogsConfigRequest request =
                                          +   *       DeleteVpcFlowLogsConfigRequest.newBuilder()
                                          +   *           .setName(
                                          +   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
                                          +   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                          +   *                   .toString())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient
                                          +   *           .deleteVpcFlowLogsConfigCallable()
                                          +   *           .futureCall(request);
                                          +   *   // Do something.
                                          +   *   future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + deleteVpcFlowLogsConfigCallable() { + return stub.deleteVpcFlowLogsConfigCallable(); + } + + // 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   ListLocationsRequest request =
                                          +   *       ListLocationsRequest.newBuilder()
                                          +   *           .setName("name3373707")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   for (Location element :
                                          +   *       organizationVpcFlowLogsServiceClient.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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   ListLocationsRequest request =
                                          +   *       ListLocationsRequest.newBuilder()
                                          +   *           .setName("name3373707")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient.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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   ListLocationsRequest request =
                                          +   *       ListLocationsRequest.newBuilder()
                                          +   *           .setName("name3373707")
                                          +   *           .setFilter("filter-1274492040")
                                          +   *           .setPageSize(883849137)
                                          +   *           .setPageToken("pageToken873572522")
                                          +   *           .build();
                                          +   *   while (true) {
                                          +   *     ListLocationsResponse response =
                                          +   *         organizationVpcFlowLogsServiceClient.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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                          +   *   Location response = organizationVpcFlowLogsServiceClient.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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient.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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   SetIamPolicyRequest request =
                                          +   *       SetIamPolicyRequest.newBuilder()
                                          +   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
                                          +   *           .setPolicy(Policy.newBuilder().build())
                                          +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                          +   *           .build();
                                          +   *   Policy response = organizationVpcFlowLogsServiceClient.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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   SetIamPolicyRequest request =
                                          +   *       SetIamPolicyRequest.newBuilder()
                                          +   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
                                          +   *           .setPolicy(Policy.newBuilder().build())
                                          +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient.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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   GetIamPolicyRequest request =
                                          +   *       GetIamPolicyRequest.newBuilder()
                                          +   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
                                          +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                          +   *           .build();
                                          +   *   Policy response = organizationVpcFlowLogsServiceClient.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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   GetIamPolicyRequest request =
                                          +   *       GetIamPolicyRequest.newBuilder()
                                          +   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
                                          +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient.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: + * + *

                                          {@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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   TestIamPermissionsRequest request =
                                          +   *       TestIamPermissionsRequest.newBuilder()
                                          +   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
                                          +   *           .addAllPermissions(new ArrayList())
                                          +   *           .build();
                                          +   *   TestIamPermissionsResponse response =
                                          +   *       organizationVpcFlowLogsServiceClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(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. + * + *

                                          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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                          +   *     OrganizationVpcFlowLogsServiceClient.create()) {
                                          +   *   TestIamPermissionsRequest request =
                                          +   *       TestIamPermissionsRequest.newBuilder()
                                          +   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
                                          +   *           .addAllPermissions(new ArrayList())
                                          +   *           .build();
                                          +   *   ApiFuture future =
                                          +   *       organizationVpcFlowLogsServiceClient.testIamPermissionsCallable().futureCall(request);
                                          +   *   // Do something.
                                          +   *   TestIamPermissionsResponse response = future.get();
                                          +   * }
                                          +   * }
                                          + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListVpcFlowLogsConfigsPagedResponse + extends AbstractPagedListResponse< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + ListVpcFlowLogsConfigsPage, + ListVpcFlowLogsConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListVpcFlowLogsConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListVpcFlowLogsConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListVpcFlowLogsConfigsPagedResponse(ListVpcFlowLogsConfigsPage page) { + super(page, ListVpcFlowLogsConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListVpcFlowLogsConfigsPage + extends AbstractPage< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + ListVpcFlowLogsConfigsPage> { + + private ListVpcFlowLogsConfigsPage( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ListVpcFlowLogsConfigsResponse response) { + super(context, response); + } + + private static ListVpcFlowLogsConfigsPage createEmptyPage() { + return new ListVpcFlowLogsConfigsPage(null, null); + } + + @Override + protected ListVpcFlowLogsConfigsPage createPage( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ListVpcFlowLogsConfigsResponse response) { + return new ListVpcFlowLogsConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListVpcFlowLogsConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + ListVpcFlowLogsConfigsPage, + ListVpcFlowLogsConfigsFixedSizeCollection> { + + private ListVpcFlowLogsConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListVpcFlowLogsConfigsFixedSizeCollection createEmptyCollection() { + return new ListVpcFlowLogsConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListVpcFlowLogsConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceSettings.java new file mode 100644 index 000000000000..a474407d368a --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceSettings.java @@ -0,0 +1,419 @@ +/* + * Copyright 2025 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.networkmanagement.v1; + +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.stub.OrganizationVpcFlowLogsServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OrganizationVpcFlowLogsServiceClient}. + * + *

                                          The default instance has everything set to sensible defaults: + * + *

                                            + *
                                          • The default service address (networkmanagement.googleapis.com) and default port (443) are + * used. + *
                                          • Credentials are acquired automatically through Application Default Credentials. + *
                                          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                          + * + *

                                          The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                          For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getVpcFlowLogsConfig: + * + *

                                          {@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
                                          + * OrganizationVpcFlowLogsServiceSettings.Builder organizationVpcFlowLogsServiceSettingsBuilder =
                                          + *     OrganizationVpcFlowLogsServiceSettings.newBuilder();
                                          + * organizationVpcFlowLogsServiceSettingsBuilder
                                          + *     .getVpcFlowLogsConfigSettings()
                                          + *     .setRetrySettings(
                                          + *         organizationVpcFlowLogsServiceSettingsBuilder
                                          + *             .getVpcFlowLogsConfigSettings()
                                          + *             .getRetrySettings()
                                          + *             .toBuilder()
                                          + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                          + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                          + *             .setMaxAttempts(5)
                                          + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                          + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                          + *             .setRetryDelayMultiplier(1.3)
                                          + *             .setRpcTimeoutMultiplier(1.5)
                                          + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                          + *             .build());
                                          + * OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings =
                                          + *     organizationVpcFlowLogsServiceSettingsBuilder.build();
                                          + * }
                                          + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

                                          To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createVpcFlowLogsConfig: + * + *

                                          {@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
                                          + * OrganizationVpcFlowLogsServiceSettings.Builder organizationVpcFlowLogsServiceSettingsBuilder =
                                          + *     OrganizationVpcFlowLogsServiceSettings.newBuilder();
                                          + * TimedRetryAlgorithm timedRetryAlgorithm =
                                          + *     OperationalTimedPollAlgorithm.create(
                                          + *         RetrySettings.newBuilder()
                                          + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                          + *             .setRetryDelayMultiplier(1.5)
                                          + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                          + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                          + *             .build());
                                          + * organizationVpcFlowLogsServiceSettingsBuilder
                                          + *     .createClusterOperationSettings()
                                          + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                          + *     .build();
                                          + * }
                                          + */ +@Generated("by gapic-generator-java") +public class OrganizationVpcFlowLogsServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to listVpcFlowLogsConfigs. */ + public PagedCallSettings< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .listVpcFlowLogsConfigsSettings(); + } + + /** Returns the object with the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings + getVpcFlowLogsConfigSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .getVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings + createVpcFlowLogsConfigSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .createVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings + createVpcFlowLogsConfigOperationSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .createVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings + updateVpcFlowLogsConfigSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .updateVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings + updateVpcFlowLogsConfigOperationSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .updateVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings + deleteVpcFlowLogsConfigSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .deleteVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings + deleteVpcFlowLogsConfigOperationSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .deleteVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .testIamPermissionsSettings(); + } + + public static final OrganizationVpcFlowLogsServiceSettings create( + OrganizationVpcFlowLogsServiceStubSettings stub) throws IOException { + return new OrganizationVpcFlowLogsServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OrganizationVpcFlowLogsServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OrganizationVpcFlowLogsServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OrganizationVpcFlowLogsServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for OrganizationVpcFlowLogsServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(OrganizationVpcFlowLogsServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(OrganizationVpcFlowLogsServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OrganizationVpcFlowLogsServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(OrganizationVpcFlowLogsServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(OrganizationVpcFlowLogsServiceStubSettings.newHttpJsonBuilder()); + } + + public OrganizationVpcFlowLogsServiceStubSettings.Builder getStubSettingsBuilder() { + return ((OrganizationVpcFlowLogsServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                          Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return getStubSettingsBuilder().listVpcFlowLogsConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + getVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().getVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + createVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().createVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings() { + return getStubSettingsBuilder().createVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + updateVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().updateVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings() { + return getStubSettingsBuilder().updateVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + deleteVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().deleteVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings.Builder + deleteVpcFlowLogsConfigOperationSettings() { + return getStubSettingsBuilder().deleteVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public OrganizationVpcFlowLogsServiceSettings build() throws IOException { + return new OrganizationVpcFlowLogsServiceSettings(this); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java index ba3f62385a89..4745b4e48610 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java @@ -65,7 +65,8 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * VpcFlowLogsConfigName name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); * } * } @@ -92,6 +93,7 @@ *

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

                                          *
                                            *
                                          • listVpcFlowLogsConfigs(LocationName parent) + *

                                          • listVpcFlowLogsConfigs(OrganizationLocationName parent) *

                                          • listVpcFlowLogsConfigs(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.

                                          @@ -123,7 +125,7 @@ * *

                                          CreateVpcFlowLogsConfig *

                                          Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: - *

                                          1. Creating a configuration with state=DISABLED will fail 2. The following fields are not considered as `settings` for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description + *

                                          1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description * *

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

                                          *
                                            @@ -133,6 +135,8 @@ *
                                              *
                                            • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) *

                                            • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

                                            • createVpcFlowLogsConfigAsync(OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

                                            • createVpcFlowLogsConfigAsync(OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) *

                                            • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) *

                                            • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) *

                                            @@ -146,7 +150,7 @@ * *

                                            UpdateVpcFlowLogsConfig *

                                            Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: - *

                                            1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not considered as `settings` for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description + *

                                            1. Updating a configuration with `state=DISABLED` will fail. 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description * *

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

                                            *
                                              @@ -184,6 +188,36 @@ * * * + *

                                              QueryOrgVpcFlowLogsConfigs + *

                                              QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs configurations applicable to the specified project. + * + *

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

                                              + *
                                                + *
                                              • queryOrgVpcFlowLogsConfigs(QueryOrgVpcFlowLogsConfigsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • queryOrgVpcFlowLogsConfigsPagedCallable() + *

                                              • queryOrgVpcFlowLogsConfigsCallable() + *

                                              + * + * + * + *

                                              ShowEffectiveFlowLogsConfigs + *

                                              ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a specified resource. + * + *

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

                                              + *
                                                + *
                                              • showEffectiveFlowLogsConfigs(ShowEffectiveFlowLogsConfigsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • showEffectiveFlowLogsConfigsPagedCallable() + *

                                              • showEffectiveFlowLogsConfigsCallable() + *

                                              + * + * + * *

                                              ListLocations *

                                              Lists information about the supported locations for this service. * @@ -410,8 +444,10 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * } * - * @param parent Required. The parent resource of the VpcFlowLogsConfig: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                              - For project-level resourcs: `projects/{project_id}/locations/global` + *

                                              - For organization-level resources: `organizations/{organization_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(LocationName parent) { @@ -422,6 +458,42 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(Location return listVpcFlowLogsConfigs(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given project. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                              +   *   for (VpcFlowLogsConfig element :
                                              +   *       vpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                              - For project-level resourcs: `projects/{project_id}/locations/global` + *

                                              - For organization-level resources: `organizations/{organization_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + OrganizationLocationName parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVpcFlowLogsConfigs(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all `VpcFlowLogsConfigs` in a given project. @@ -443,8 +515,10 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(Location * } * } * - * @param parent Required. The parent resource of the VpcFlowLogsConfig: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                              - For project-level resourcs: `projects/{project_id}/locations/global` + *

                                              - For organization-level resources: `organizations/{organization_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(String parent) { @@ -580,13 +654,18 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * VpcFlowLogsConfigName name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); * } * } * - * @param name Required. `VpcFlowLogsConfig` resource name using the form: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                              - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

                                              - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) { @@ -611,13 +690,19 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * String name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * .toString(); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); * } * } * - * @param name Required. `VpcFlowLogsConfig` resource name using the form: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                              - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

                                              - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final VpcFlowLogsConfig getVpcFlowLogsConfig(String name) { @@ -642,7 +727,8 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(String name) { * GetVpcFlowLogsConfigRequest request = * GetVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(request); @@ -672,7 +758,8 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * GetVpcFlowLogsConfigRequest request = * GetVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * ApiFuture future = @@ -692,8 +779,8 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already * exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Creating a configuration with state=DISABLED will fail 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - creating + *

                                              1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -709,7 +796,8 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); * VpcFlowLogsConfigName vpcFlowLogsConfigId = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = * vpcFlowLogsServiceClient * .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) @@ -717,8 +805,10 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * } * } * - * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                              - For project-level resources: `projects/{project_id}/locations/global` + *

                                              - For organization-level resources: `organizations/{organization_id}/locations/global` * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -742,8 +832,8 @@ public final OperationFuture createVpcFlow * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already * exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Creating a configuration with state=DISABLED will fail 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - creating + *

                                              1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -759,7 +849,9 @@ public final OperationFuture createVpcFlow * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); * String vpcFlowLogsConfigId = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * .toString(); * VpcFlowLogsConfig response = * vpcFlowLogsServiceClient * .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) @@ -767,8 +859,10 @@ public final OperationFuture createVpcFlow * } * } * - * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                              - For project-level resources: `projects/{project_id}/locations/global` + *

                                              - For organization-level resources: `organizations/{organization_id}/locations/global` * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -789,8 +883,114 @@ public final OperationFuture createVpcFlow * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already * exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Creating a configuration with state=DISABLED will fail 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - creating + *

                                              1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                              +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
                                              +   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
                                              +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                              +   *           "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
                                              +   *   VpcFlowLogsConfig response =
                                              +   *       vpcFlowLogsServiceClient
                                              +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                              - For project-level resources: `projects/{project_id}/locations/global` + *

                                              - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + OrganizationLocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                              1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                              +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
                                              +   *   String vpcFlowLogsConfigId =
                                              +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
                                              +   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
                                              +   *           .toString();
                                              +   *   VpcFlowLogsConfig response =
                                              +   *       vpcFlowLogsServiceClient
                                              +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                              - For project-level resources: `projects/{project_id}/locations/global` + *

                                              - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + OrganizationLocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

                                              1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -806,7 +1006,8 @@ public final OperationFuture createVpcFlow * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); * VpcFlowLogsConfigName vpcFlowLogsConfigId = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = * vpcFlowLogsServiceClient * .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) @@ -814,8 +1015,10 @@ public final OperationFuture createVpcFlow * } * } * - * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                              - For project-level resources: `projects/{project_id}/locations/global` + *

                                              - For organization-level resources: `organizations/{organization_id}/locations/global` * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -839,8 +1042,8 @@ public final OperationFuture createVpcFlow * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already * exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Creating a configuration with state=DISABLED will fail 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - creating + *

                                              1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -856,7 +1059,9 @@ public final OperationFuture createVpcFlow * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); * String vpcFlowLogsConfigId = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * .toString(); * VpcFlowLogsConfig response = * vpcFlowLogsServiceClient * .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) @@ -864,8 +1069,10 @@ public final OperationFuture createVpcFlow * } * } * - * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

                                              - For project-level resources: `projects/{project_id}/locations/global` + *

                                              - For organization-level resources: `organizations/{organization_id}/locations/global` * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -886,8 +1093,8 @@ public final OperationFuture createVpcFlow * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already * exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Creating a configuration with state=DISABLED will fail 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - creating + *

                                              1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -904,7 +1111,8 @@ public final OperationFuture createVpcFlow * CreateVpcFlowLogsConfigRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setVpcFlowLogsConfigId( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) * .build(); @@ -926,8 +1134,8 @@ public final OperationFuture createVpcFlow * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already * exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Creating a configuration with state=DISABLED will fail 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - creating + *

                                              1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -944,7 +1152,8 @@ public final OperationFuture createVpcFlow * CreateVpcFlowLogsConfigRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setVpcFlowLogsConfigId( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) * .build(); @@ -966,8 +1175,8 @@ public final OperationFuture createVpcFlow * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already * exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Creating a configuration with state=DISABLED will fail 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - creating + *

                                              1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -984,7 +1193,8 @@ public final OperationFuture createVpcFlow * CreateVpcFlowLogsConfigRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setVpcFlowLogsConfigId( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) * .build(); @@ -1005,8 +1215,8 @@ public final OperationFuture createVpcFlow * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings * already exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - updating + *

                                              1. Updating a configuration with `state=DISABLED` will fail. 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -1030,7 +1240,10 @@ public final OperationFuture createVpcFlow * * @param vpcFlowLogsConfig Required. Only fields specified in update_mask are updated. * @param updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. + * this field. For example, to change the state of the configuration to ENABLED, specify + * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: `vpc_flow_logs_config = + * { name = "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state = + * "ENABLED" }` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateVpcFlowLogsConfigAsync( @@ -1048,8 +1261,8 @@ public final OperationFuture updateVpcFlow * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings * already exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - updating + *

                                              1. Updating a configuration with `state=DISABLED` will fail. 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -1085,8 +1298,8 @@ public final OperationFuture updateVpcFlow * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings * already exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - updating + *

                                              1. Updating a configuration with `state=DISABLED` will fail. 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -1122,8 +1335,8 @@ public final OperationFuture updateVpcFlow * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings * already exists (even if the ID is different), the creation fails. Notes: * - *

                                              1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not - * considered as `settings` for the purpose of the check mentioned above, therefore - updating + *

                                              1. Updating a configuration with `state=DISABLED` will fail. 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating * another configuration with the same fields but different values for the following fields will * fail as well: * name * create_time * update_time * labels * description * @@ -1167,13 +1380,18 @@ public final OperationFuture updateVpcFlow * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * VpcFlowLogsConfigName name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); * } * } * - * @param name Required. `VpcFlowLogsConfig` resource name using the form: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                              - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

                                              - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVpcFlowLogsConfigAsync( @@ -1199,13 +1417,19 @@ public final OperationFuture deleteVpcFlowLogsConfigAs * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * String name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * .toString(); * vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); * } * } * - * @param name Required. `VpcFlowLogsConfig` resource name using the form: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

                                              - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

                                              - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVpcFlowLogsConfigAsync(String name) { @@ -1230,7 +1454,8 @@ public final OperationFuture deleteVpcFlowLogsConfigAs * DeleteVpcFlowLogsConfigRequest request = * DeleteVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(request).get(); @@ -1261,7 +1486,8 @@ public final OperationFuture deleteVpcFlowLogsConfigAs * DeleteVpcFlowLogsConfigRequest request = * DeleteVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * OperationFuture future = @@ -1292,7 +1518,8 @@ public final OperationFuture deleteVpcFlowLogsConfigAs * DeleteVpcFlowLogsConfigRequest request = * DeleteVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * ApiFuture future = @@ -1307,6 +1534,238 @@ public final OperationFuture deleteVpcFlowLogsConfigAs return stub.deleteVpcFlowLogsConfigCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs + * configurations applicable to the specified project. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   QueryOrgVpcFlowLogsConfigsRequest request =
                                              +   *       QueryOrgVpcFlowLogsConfigsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   for (VpcFlowLogsConfig element :
                                              +   *       vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigs(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 QueryOrgVpcFlowLogsConfigsPagedResponse queryOrgVpcFlowLogsConfigs( + QueryOrgVpcFlowLogsConfigsRequest request) { + return queryOrgVpcFlowLogsConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs + * configurations applicable to the specified project. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   QueryOrgVpcFlowLogsConfigsRequest request =
                                              +   *       QueryOrgVpcFlowLogsConfigsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (VpcFlowLogsConfig element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsPagedCallable() { + return stub.queryOrgVpcFlowLogsConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs + * configurations applicable to the specified project. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   QueryOrgVpcFlowLogsConfigsRequest request =
                                              +   *       QueryOrgVpcFlowLogsConfigsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     QueryOrgVpcFlowLogsConfigsResponse response =
                                              +   *         vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigsCallable().call(request);
                                              +   *     for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + queryOrgVpcFlowLogsConfigsCallable() { + return stub.queryOrgVpcFlowLogsConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a + * specified resource. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   ShowEffectiveFlowLogsConfigsRequest request =
                                              +   *       ShowEffectiveFlowLogsConfigsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setResource("resource-341064690")
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   for (EffectiveVpcFlowLogsConfig element :
                                              +   *       vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigs(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 ShowEffectiveFlowLogsConfigsPagedResponse showEffectiveFlowLogsConfigs( + ShowEffectiveFlowLogsConfigsRequest request) { + return showEffectiveFlowLogsConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a + * specified resource. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   ShowEffectiveFlowLogsConfigsRequest request =
                                              +   *       ShowEffectiveFlowLogsConfigsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setResource("resource-341064690")
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (EffectiveVpcFlowLogsConfig element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable() { + return stub.showEffectiveFlowLogsConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a + * specified resource. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   ShowEffectiveFlowLogsConfigsRequest request =
                                              +   *       ShowEffectiveFlowLogsConfigsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setResource("resource-341064690")
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ShowEffectiveFlowLogsConfigsResponse response =
                                              +   *         vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigsCallable().call(request);
                                              +   *     for (EffectiveVpcFlowLogsConfig element : response.getEffectiveFlowLogsConfigsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsCallable() { + return stub.showEffectiveFlowLogsConfigsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -1775,6 +2234,199 @@ protected ListVpcFlowLogsConfigsFixedSizeCollection createCollection( } } + public static class QueryOrgVpcFlowLogsConfigsPagedResponse + extends AbstractPagedListResponse< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + QueryOrgVpcFlowLogsConfigsPage, + QueryOrgVpcFlowLogsConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryOrgVpcFlowLogsConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryOrgVpcFlowLogsConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryOrgVpcFlowLogsConfigsPagedResponse(QueryOrgVpcFlowLogsConfigsPage page) { + super(page, QueryOrgVpcFlowLogsConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryOrgVpcFlowLogsConfigsPage + extends AbstractPage< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + QueryOrgVpcFlowLogsConfigsPage> { + + private QueryOrgVpcFlowLogsConfigsPage( + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + context, + QueryOrgVpcFlowLogsConfigsResponse response) { + super(context, response); + } + + private static QueryOrgVpcFlowLogsConfigsPage createEmptyPage() { + return new QueryOrgVpcFlowLogsConfigsPage(null, null); + } + + @Override + protected QueryOrgVpcFlowLogsConfigsPage createPage( + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + context, + QueryOrgVpcFlowLogsConfigsResponse response) { + return new QueryOrgVpcFlowLogsConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryOrgVpcFlowLogsConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + QueryOrgVpcFlowLogsConfigsPage, + QueryOrgVpcFlowLogsConfigsFixedSizeCollection> { + + private QueryOrgVpcFlowLogsConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryOrgVpcFlowLogsConfigsFixedSizeCollection createEmptyCollection() { + return new QueryOrgVpcFlowLogsConfigsFixedSizeCollection(null, 0); + } + + @Override + protected QueryOrgVpcFlowLogsConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryOrgVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ShowEffectiveFlowLogsConfigsPagedResponse + extends AbstractPagedListResponse< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig, + ShowEffectiveFlowLogsConfigsPage, + ShowEffectiveFlowLogsConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ShowEffectiveFlowLogsConfigsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ShowEffectiveFlowLogsConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ShowEffectiveFlowLogsConfigsPagedResponse(ShowEffectiveFlowLogsConfigsPage page) { + super(page, ShowEffectiveFlowLogsConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ShowEffectiveFlowLogsConfigsPage + extends AbstractPage< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig, + ShowEffectiveFlowLogsConfigsPage> { + + private ShowEffectiveFlowLogsConfigsPage( + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + context, + ShowEffectiveFlowLogsConfigsResponse response) { + super(context, response); + } + + private static ShowEffectiveFlowLogsConfigsPage createEmptyPage() { + return new ShowEffectiveFlowLogsConfigsPage(null, null); + } + + @Override + protected ShowEffectiveFlowLogsConfigsPage createPage( + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + context, + ShowEffectiveFlowLogsConfigsResponse response) { + return new ShowEffectiveFlowLogsConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ShowEffectiveFlowLogsConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig, + ShowEffectiveFlowLogsConfigsPage, + ShowEffectiveFlowLogsConfigsFixedSizeCollection> { + + private ShowEffectiveFlowLogsConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ShowEffectiveFlowLogsConfigsFixedSizeCollection createEmptyCollection() { + return new ShowEffectiveFlowLogsConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ShowEffectiveFlowLogsConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ShowEffectiveFlowLogsConfigsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java index 886285a0123f..f1fced5740f3 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java @@ -18,6 +18,8 @@ import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -183,6 +185,26 @@ public class VpcFlowLogsServiceSettings extends ClientSettings + queryOrgVpcFlowLogsConfigsSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()) + .queryOrgVpcFlowLogsConfigsSettings(); + } + + /** Returns the object with the settings used for calls to showEffectiveFlowLogsConfigs. */ + public PagedCallSettings< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()) + .showEffectiveFlowLogsConfigsSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -375,6 +397,24 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().deleteVpcFlowLogsConfigOperationSettings(); } + /** Returns the builder for the settings used for calls to queryOrgVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings() { + return getStubSettingsBuilder().queryOrgVpcFlowLogsConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to showEffectiveFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings() { + return getStubSettingsBuilder().showEffectiveFlowLogsConfigsSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json index 8e1992017e46..ff3f10b70afd 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json @@ -53,7 +53,7 @@ "libraryClient": "VpcFlowLogsServiceClient", "rpcs": { "CreateVpcFlowLogsConfig": { - "methods": ["createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigOperationCallable", "createVpcFlowLogsConfigCallable"] + "methods": ["createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigOperationCallable", "createVpcFlowLogsConfigCallable"] }, "DeleteVpcFlowLogsConfig": { "methods": ["deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigOperationCallable", "deleteVpcFlowLogsConfigCallable"] @@ -71,7 +71,52 @@ "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, "ListVpcFlowLogsConfigs": { - "methods": ["listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigsPagedCallable", "listVpcFlowLogsConfigsCallable"] + "methods": ["listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigsPagedCallable", "listVpcFlowLogsConfigsCallable"] + }, + "QueryOrgVpcFlowLogsConfigs": { + "methods": ["queryOrgVpcFlowLogsConfigs", "queryOrgVpcFlowLogsConfigsPagedCallable", "queryOrgVpcFlowLogsConfigsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "ShowEffectiveFlowLogsConfigs": { + "methods": ["showEffectiveFlowLogsConfigs", "showEffectiveFlowLogsConfigsPagedCallable", "showEffectiveFlowLogsConfigsCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateVpcFlowLogsConfig": { + "methods": ["updateVpcFlowLogsConfigAsync", "updateVpcFlowLogsConfigAsync", "updateVpcFlowLogsConfigOperationCallable", "updateVpcFlowLogsConfigCallable"] + } + } + } + } + }, + "OrganizationVpcFlowLogsService": { + "clients": { + "grpc": { + "libraryClient": "OrganizationVpcFlowLogsServiceClient", + "rpcs": { + "CreateVpcFlowLogsConfig": { + "methods": ["createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigOperationCallable", "createVpcFlowLogsConfigCallable"] + }, + "DeleteVpcFlowLogsConfig": { + "methods": ["deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigOperationCallable", "deleteVpcFlowLogsConfigCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetVpcFlowLogsConfig": { + "methods": ["getVpcFlowLogsConfig", "getVpcFlowLogsConfig", "getVpcFlowLogsConfig", "getVpcFlowLogsConfigCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListVpcFlowLogsConfigs": { + "methods": ["listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigsPagedCallable", "listVpcFlowLogsConfigsCallable"] }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java index 5023fcfbe6bb..7474800622b2 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java @@ -60,10 +60,34 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * VpcFlowLogsConfigName name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); * } * } + * + *

                                              ======================= OrganizationVpcFlowLogsServiceClient ======================= + * + *

                                              Service Description: The VPC Flow Logs organization service in the Google Cloud Network + * Management API provides organization level configurations that generate Flow Logs. The service + * and the configuration resources created using this service are global. + * + *

                                              Sample for OrganizationVpcFlowLogsServiceClient: + * + *

                                              {@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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
                                              + *     OrganizationVpcFlowLogsServiceClient.create()) {
                                              + *   VpcFlowLogsConfigName name =
                                              + *       VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
                                              + *           "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
                                              + *   VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
                                              + * }
                                              + * }
                                              */ @Generated("by gapic-generator-java") package com.google.cloud.networkmanagement.v1; diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcOrganizationVpcFlowLogsServiceCallableFactory.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcOrganizationVpcFlowLogsServiceCallableFactory.java new file mode 100644 index 000000000000..7b38567abb11 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcOrganizationVpcFlowLogsServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 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.networkmanagement.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the OrganizationVpcFlowLogsService service API. + * + *

                                              This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcOrganizationVpcFlowLogsServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcOrganizationVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcOrganizationVpcFlowLogsServiceStub.java new file mode 100644 index 000000000000..fb7e0c30491c --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcOrganizationVpcFlowLogsServiceStub.java @@ -0,0 +1,562 @@ +/* + * Copyright 2025 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.networkmanagement.v1.stub; + +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the OrganizationVpcFlowLogsService service API. + * + *

                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcOrganizationVpcFlowLogsServiceStub extends OrganizationVpcFlowLogsServiceStub { + private static final MethodDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse> + listVpcFlowLogsConfigsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/ListVpcFlowLogsConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListVpcFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListVpcFlowLogsConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/GetVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(VpcFlowLogsConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/CreateVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/UpdateVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/DeleteVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listVpcFlowLogsConfigsCallable; + private final UnaryCallable + listVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable + getVpcFlowLogsConfigCallable; + private final UnaryCallable + createVpcFlowLogsConfigCallable; + private final OperationCallable< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + updateVpcFlowLogsConfigCallable; + private final OperationCallable< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + deleteVpcFlowLogsConfigCallable; + private final OperationCallable + deleteVpcFlowLogsConfigOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcOrganizationVpcFlowLogsServiceStub create( + OrganizationVpcFlowLogsServiceStubSettings settings) throws IOException { + return new GrpcOrganizationVpcFlowLogsServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcOrganizationVpcFlowLogsServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcOrganizationVpcFlowLogsServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcOrganizationVpcFlowLogsServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected GrpcOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcOrganizationVpcFlowLogsServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcOrganizationVpcFlowLogsServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected GrpcOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listVpcFlowLogsConfigsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listVpcFlowLogsConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "vpc_flow_logs_config.name", + String.valueOf(request.getVpcFlowLogsConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.listVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.listVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.getVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + getVpcFlowLogsConfigTransportSettings, + settings.getVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigOperationSettings(), + clientContext, + operationsStub); + this.updateVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigSettings(), + clientContext); + this.updateVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigOperationSettings(), + clientContext, + operationsStub); + this.deleteVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigSettings(), + clientContext); + this.deleteVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsCallable() { + return listVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + return listVpcFlowLogsConfigsPagedCallable; + } + + @Override + public UnaryCallable + getVpcFlowLogsConfigCallable() { + return getVpcFlowLogsConfigCallable; + } + + @Override + public UnaryCallable + createVpcFlowLogsConfigCallable() { + return createVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + createVpcFlowLogsConfigOperationCallable() { + return createVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + updateVpcFlowLogsConfigCallable() { + return updateVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + updateVpcFlowLogsConfigOperationCallable() { + return updateVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteVpcFlowLogsConfigCallable() { + return deleteVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + return deleteVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceStub.java index 7e193ef29577..f7ad79eb52b5 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceStub.java @@ -18,6 +18,8 @@ import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -37,6 +39,10 @@ import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; import com.google.iam.v1.GetIamPolicyRequest; @@ -124,6 +130,37 @@ public class GrpcVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse> + queryOrgVpcFlowLogsConfigsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/QueryOrgVpcFlowLogsConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryOrgVpcFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryOrgVpcFlowLogsConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/ShowEffectiveFlowLogsConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ShowEffectiveFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ShowEffectiveFlowLogsConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -195,6 +232,17 @@ public class GrpcVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { deleteVpcFlowLogsConfigCallable; private final OperationCallable deleteVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + queryOrgVpcFlowLogsConfigsCallable; + private final UnaryCallable< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsCallable; + private final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -306,6 +354,31 @@ protected GrpcVpcFlowLogsServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + queryOrgVpcFlowLogsConfigsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(queryOrgVpcFlowLogsConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + showEffectiveFlowLogsConfigsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(showEffectiveFlowLogsConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -406,6 +479,26 @@ protected GrpcVpcFlowLogsServiceStub( settings.deleteVpcFlowLogsConfigOperationSettings(), clientContext, operationsStub); + this.queryOrgVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + queryOrgVpcFlowLogsConfigsTransportSettings, + settings.queryOrgVpcFlowLogsConfigsSettings(), + clientContext); + this.queryOrgVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + queryOrgVpcFlowLogsConfigsTransportSettings, + settings.queryOrgVpcFlowLogsConfigsSettings(), + clientContext); + this.showEffectiveFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + showEffectiveFlowLogsConfigsTransportSettings, + settings.showEffectiveFlowLogsConfigsSettings(), + clientContext); + this.showEffectiveFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + showEffectiveFlowLogsConfigsTransportSettings, + settings.showEffectiveFlowLogsConfigsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -489,6 +582,31 @@ public GrpcOperationsStub getOperationsStub() { return deleteVpcFlowLogsConfigOperationCallable; } + @Override + public UnaryCallable + queryOrgVpcFlowLogsConfigsCallable() { + return queryOrgVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + queryOrgVpcFlowLogsConfigsPagedCallable() { + return queryOrgVpcFlowLogsConfigsPagedCallable; + } + + @Override + public UnaryCallable + showEffectiveFlowLogsConfigsCallable() { + return showEffectiveFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable() { + return showEffectiveFlowLogsConfigsPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonOrganizationVpcFlowLogsServiceCallableFactory.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonOrganizationVpcFlowLogsServiceCallableFactory.java new file mode 100644 index 000000000000..56ea9b0a96ff --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonOrganizationVpcFlowLogsServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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.networkmanagement.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the OrganizationVpcFlowLogsService service API. + * + *

                                              This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonOrganizationVpcFlowLogsServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonOrganizationVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonOrganizationVpcFlowLogsServiceStub.java new file mode 100644 index 000000000000..18c1d71a534d --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonOrganizationVpcFlowLogsServiceStub.java @@ -0,0 +1,918 @@ +/* + * Copyright 2025 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.networkmanagement.v1.stub; + +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the OrganizationVpcFlowLogsService service API. + * + *

                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonOrganizationVpcFlowLogsServiceStub extends OrganizationVpcFlowLogsServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(VpcFlowLogsConfig.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse> + listVpcFlowLogsConfigsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/ListVpcFlowLogsConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListVpcFlowLogsConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/GetVpcFlowLogsConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}", + 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(VpcFlowLogsConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/CreateVpcFlowLogsConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs", + 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, "vpcFlowLogsConfigId", request.getVpcFlowLogsConfigId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "vpcFlowLogsConfig", request.getVpcFlowLogsConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateVpcFlowLogsConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/UpdateVpcFlowLogsConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{vpcFlowLogsConfig.name=organizations/*/locations/*/vpcFlowLogsConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "vpcFlowLogsConfig.name", + request.getVpcFlowLogsConfig().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( + "vpcFlowLogsConfig", request.getVpcFlowLogsConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateVpcFlowLogsConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService/DeleteVpcFlowLogsConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteVpcFlowLogsConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1/{name=organizations/*}/locations") + .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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1/{name=organizations/*/locations/*}") + .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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/global/connectivityTests/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/global/connectivityTests/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listVpcFlowLogsConfigsCallable; + private final UnaryCallable + listVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable + getVpcFlowLogsConfigCallable; + private final UnaryCallable + createVpcFlowLogsConfigCallable; + private final OperationCallable< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + updateVpcFlowLogsConfigCallable; + private final OperationCallable< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + deleteVpcFlowLogsConfigCallable; + private final OperationCallable + deleteVpcFlowLogsConfigOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonOrganizationVpcFlowLogsServiceStub create( + OrganizationVpcFlowLogsServiceStubSettings settings) throws IOException { + return new HttpJsonOrganizationVpcFlowLogsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonOrganizationVpcFlowLogsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonOrganizationVpcFlowLogsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonOrganizationVpcFlowLogsServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonOrganizationVpcFlowLogsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonOrganizationVpcFlowLogsServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/global/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1/{name=organizations/*/locations/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete("/v1/{name=organizations/*/locations/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=organizations/*/locations/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/global}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=organizations/*/locations/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings + listVpcFlowLogsConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listVpcFlowLogsConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "vpc_flow_logs_config.name", + String.valueOf(request.getVpcFlowLogsConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.listVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.listVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.getVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + getVpcFlowLogsConfigTransportSettings, + settings.getVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigSettings(), + clientContext); + this.updateVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigSettings(), + clientContext); + this.deleteVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listVpcFlowLogsConfigsMethodDescriptor); + methodDescriptors.add(getVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(createVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(updateVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(deleteVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsCallable() { + return listVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + return listVpcFlowLogsConfigsPagedCallable; + } + + @Override + public UnaryCallable + getVpcFlowLogsConfigCallable() { + return getVpcFlowLogsConfigCallable; + } + + @Override + public UnaryCallable + createVpcFlowLogsConfigCallable() { + return createVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + createVpcFlowLogsConfigOperationCallable() { + return createVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + updateVpcFlowLogsConfigCallable() { + return updateVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + updateVpcFlowLogsConfigOperationCallable() { + return updateVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteVpcFlowLogsConfigCallable() { + return deleteVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + return deleteVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonReachabilityServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonReachabilityServiceStub.java index d71c60b52de5..26c8be1dccc4 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonReachabilityServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonReachabilityServiceStub.java @@ -337,6 +337,7 @@ public class HttpJsonReachabilityServiceStub extends ReachabilityServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=organizations/*}/locations") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -371,6 +372,7 @@ public class HttpJsonReachabilityServiceStub extends ReachabilityServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=organizations/*/locations/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -583,21 +585,38 @@ protected HttpJsonReachabilityServiceStub( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/v1/{name=projects/*/locations/global/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1/{name=organizations/*/locations/*/operations/*}:cancel") + .build()) .build()) .put( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/v1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete("/v1/{name=organizations/*/locations/*/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=organizations/*/locations/*/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/global}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=organizations/*/locations/*}/operations") + .build()) .build()) .build()); diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceStub.java index 3e24c9029161..758d4aaf8c12 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceStub.java @@ -18,6 +18,8 @@ import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.HttpRule; import com.google.api.core.InternalApi; @@ -45,6 +47,10 @@ import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; import com.google.common.collect.ImmutableMap; @@ -283,6 +289,88 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse> + queryOrgVpcFlowLogsConfigsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/QueryOrgVpcFlowLogsConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryOrgVpcFlowLogsConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/ShowEffectiveFlowLogsConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "resource", request.getResource()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ShowEffectiveFlowLogsConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -300,6 +388,7 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=organizations/*}/locations") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -334,6 +423,7 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=organizations/*/locations/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -479,6 +569,17 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { deleteVpcFlowLogsConfigCallable; private final OperationCallable deleteVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + queryOrgVpcFlowLogsConfigsCallable; + private final UnaryCallable< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsCallable; + private final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -542,21 +643,38 @@ protected HttpJsonVpcFlowLogsServiceStub( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/v1/{name=projects/*/locations/global/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1/{name=organizations/*/locations/*/operations/*}:cancel") + .build()) .build()) .put( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/v1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete("/v1/{name=organizations/*/locations/*/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=organizations/*/locations/*/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/global}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=organizations/*/locations/*}/operations") + .build()) .build()) .build()); @@ -623,6 +741,33 @@ protected HttpJsonVpcFlowLogsServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + queryOrgVpcFlowLogsConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryOrgVpcFlowLogsConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + showEffectiveFlowLogsConfigsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(showEffectiveFlowLogsConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -729,6 +874,26 @@ protected HttpJsonVpcFlowLogsServiceStub( settings.deleteVpcFlowLogsConfigOperationSettings(), clientContext, httpJsonOperationsStub); + this.queryOrgVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + queryOrgVpcFlowLogsConfigsTransportSettings, + settings.queryOrgVpcFlowLogsConfigsSettings(), + clientContext); + this.queryOrgVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + queryOrgVpcFlowLogsConfigsTransportSettings, + settings.queryOrgVpcFlowLogsConfigsSettings(), + clientContext); + this.showEffectiveFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + showEffectiveFlowLogsConfigsTransportSettings, + settings.showEffectiveFlowLogsConfigsSettings(), + clientContext); + this.showEffectiveFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + showEffectiveFlowLogsConfigsTransportSettings, + settings.showEffectiveFlowLogsConfigsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -762,6 +927,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(createVpcFlowLogsConfigMethodDescriptor); methodDescriptors.add(updateVpcFlowLogsConfigMethodDescriptor); methodDescriptors.add(deleteVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(queryOrgVpcFlowLogsConfigsMethodDescriptor); + methodDescriptors.add(showEffectiveFlowLogsConfigsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -828,6 +995,31 @@ public HttpJsonOperationsStub getHttpJsonOperationsStub() { return deleteVpcFlowLogsConfigOperationCallable; } + @Override + public UnaryCallable + queryOrgVpcFlowLogsConfigsCallable() { + return queryOrgVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + queryOrgVpcFlowLogsConfigsPagedCallable() { + return queryOrgVpcFlowLogsConfigsPagedCallable; + } + + @Override + public UnaryCallable + showEffectiveFlowLogsConfigsCallable() { + return showEffectiveFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable() { + return showEffectiveFlowLogsConfigsPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStub.java new file mode 100644 index 000000000000..49db4465affc --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStub.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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.networkmanagement.v1.stub; + +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the OrganizationVpcFlowLogsService service API. + * + *

                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class OrganizationVpcFlowLogsServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listVpcFlowLogsConfigsPagedCallable()"); + } + + public UnaryCallable + listVpcFlowLogsConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listVpcFlowLogsConfigsCallable()"); + } + + public UnaryCallable + getVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getVpcFlowLogsConfigCallable()"); + } + + public OperationCallable + createVpcFlowLogsConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createVpcFlowLogsConfigOperationCallable()"); + } + + public UnaryCallable + createVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createVpcFlowLogsConfigCallable()"); + } + + public OperationCallable + updateVpcFlowLogsConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateVpcFlowLogsConfigOperationCallable()"); + } + + public UnaryCallable + updateVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateVpcFlowLogsConfigCallable()"); + } + + public OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteVpcFlowLogsConfigOperationCallable()"); + } + + public UnaryCallable + deleteVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteVpcFlowLogsConfigCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStubSettings.java new file mode 100644 index 000000000000..88f5ae8d3a89 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStubSettings.java @@ -0,0 +1,901 @@ +/* + * Copyright 2025 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.networkmanagement.v1.stub; + +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OrganizationVpcFlowLogsServiceStub}. + * + *

                                              The default instance has everything set to sensible defaults: + * + *

                                                + *
                                              • The default service address (networkmanagement.googleapis.com) and default port (443) are + * used. + *
                                              • Credentials are acquired automatically through Application Default Credentials. + *
                                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                              + * + *

                                              The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                              For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getVpcFlowLogsConfig: + * + *

                                              {@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
                                              + * OrganizationVpcFlowLogsServiceStubSettings.Builder
                                              + *     organizationVpcFlowLogsServiceSettingsBuilder =
                                              + *         OrganizationVpcFlowLogsServiceStubSettings.newBuilder();
                                              + * organizationVpcFlowLogsServiceSettingsBuilder
                                              + *     .getVpcFlowLogsConfigSettings()
                                              + *     .setRetrySettings(
                                              + *         organizationVpcFlowLogsServiceSettingsBuilder
                                              + *             .getVpcFlowLogsConfigSettings()
                                              + *             .getRetrySettings()
                                              + *             .toBuilder()
                                              + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                              + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                              + *             .setMaxAttempts(5)
                                              + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                              + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                              + *             .setRetryDelayMultiplier(1.3)
                                              + *             .setRpcTimeoutMultiplier(1.5)
                                              + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                              + *             .build());
                                              + * OrganizationVpcFlowLogsServiceStubSettings organizationVpcFlowLogsServiceSettings =
                                              + *     organizationVpcFlowLogsServiceSettingsBuilder.build();
                                              + * }
                                              + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

                                              To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createVpcFlowLogsConfig: + * + *

                                              {@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
                                              + * OrganizationVpcFlowLogsServiceStubSettings.Builder
                                              + *     organizationVpcFlowLogsServiceSettingsBuilder =
                                              + *         OrganizationVpcFlowLogsServiceStubSettings.newBuilder();
                                              + * TimedRetryAlgorithm timedRetryAlgorithm =
                                              + *     OperationalTimedPollAlgorithm.create(
                                              + *         RetrySettings.newBuilder()
                                              + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                              + *             .setRetryDelayMultiplier(1.5)
                                              + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                              + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                              + *             .build());
                                              + * organizationVpcFlowLogsServiceSettingsBuilder
                                              + *     .createClusterOperationSettings()
                                              + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                              + *     .build();
                                              + * }
                                              + */ +@Generated("by gapic-generator-java") +public class OrganizationVpcFlowLogsServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings; + private final UnaryCallSettings + getVpcFlowLogsConfigSettings; + private final UnaryCallSettings + createVpcFlowLogsConfigSettings; + private final OperationCallSettings< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings + updateVpcFlowLogsConfigSettings; + private final OperationCallSettings< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings + deleteVpcFlowLogsConfigSettings; + private final OperationCallSettings + deleteVpcFlowLogsConfigOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListVpcFlowLogsConfigsRequest injectToken( + ListVpcFlowLogsConfigsRequest payload, String token) { + return ListVpcFlowLogsConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListVpcFlowLogsConfigsRequest injectPageSize( + ListVpcFlowLogsConfigsRequest payload, int pageSize) { + return ListVpcFlowLogsConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListVpcFlowLogsConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListVpcFlowLogsConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListVpcFlowLogsConfigsResponse payload) { + return payload.getVpcFlowLogsConfigsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListVpcFlowLogsConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + pageContext = + PageContext.create( + callable, LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC, request, context); + return ListVpcFlowLogsConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listVpcFlowLogsConfigs. */ + public PagedCallSettings< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return listVpcFlowLogsConfigsSettings; + } + + /** Returns the object with the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings + getVpcFlowLogsConfigSettings() { + return getVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings + createVpcFlowLogsConfigSettings() { + return createVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings + createVpcFlowLogsConfigOperationSettings() { + return createVpcFlowLogsConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings + updateVpcFlowLogsConfigSettings() { + return updateVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings + updateVpcFlowLogsConfigOperationSettings() { + return updateVpcFlowLogsConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings + deleteVpcFlowLogsConfigSettings() { + return deleteVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings + deleteVpcFlowLogsConfigOperationSettings() { + return deleteVpcFlowLogsConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public OrganizationVpcFlowLogsServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcOrganizationVpcFlowLogsServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonOrganizationVpcFlowLogsServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networkmanagement"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "networkmanagement.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networkmanagement.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(OrganizationVpcFlowLogsServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(OrganizationVpcFlowLogsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OrganizationVpcFlowLogsServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listVpcFlowLogsConfigsSettings = settingsBuilder.listVpcFlowLogsConfigsSettings().build(); + getVpcFlowLogsConfigSettings = settingsBuilder.getVpcFlowLogsConfigSettings().build(); + createVpcFlowLogsConfigSettings = settingsBuilder.createVpcFlowLogsConfigSettings().build(); + createVpcFlowLogsConfigOperationSettings = + settingsBuilder.createVpcFlowLogsConfigOperationSettings().build(); + updateVpcFlowLogsConfigSettings = settingsBuilder.updateVpcFlowLogsConfigSettings().build(); + updateVpcFlowLogsConfigOperationSettings = + settingsBuilder.updateVpcFlowLogsConfigOperationSettings().build(); + deleteVpcFlowLogsConfigSettings = settingsBuilder.deleteVpcFlowLogsConfigSettings().build(); + deleteVpcFlowLogsConfigOperationSettings = + settingsBuilder.deleteVpcFlowLogsConfigOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for OrganizationVpcFlowLogsServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings; + private final UnaryCallSettings.Builder + getVpcFlowLogsConfigSettings; + private final UnaryCallSettings.Builder + createVpcFlowLogsConfigSettings; + private final OperationCallSettings.Builder< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings.Builder + updateVpcFlowLogsConfigSettings; + private final OperationCallSettings.Builder< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings.Builder + deleteVpcFlowLogsConfigSettings; + private final OperationCallSettings.Builder< + DeleteVpcFlowLogsConfigRequest, Empty, OperationMetadata> + deleteVpcFlowLogsConfigOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listVpcFlowLogsConfigsSettings = + PagedCallSettings.newBuilder(LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT); + getVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + updateVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + deleteVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listVpcFlowLogsConfigsSettings, + getVpcFlowLogsConfigSettings, + createVpcFlowLogsConfigSettings, + updateVpcFlowLogsConfigSettings, + deleteVpcFlowLogsConfigSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(OrganizationVpcFlowLogsServiceStubSettings settings) { + super(settings); + + listVpcFlowLogsConfigsSettings = settings.listVpcFlowLogsConfigsSettings.toBuilder(); + getVpcFlowLogsConfigSettings = settings.getVpcFlowLogsConfigSettings.toBuilder(); + createVpcFlowLogsConfigSettings = settings.createVpcFlowLogsConfigSettings.toBuilder(); + createVpcFlowLogsConfigOperationSettings = + settings.createVpcFlowLogsConfigOperationSettings.toBuilder(); + updateVpcFlowLogsConfigSettings = settings.updateVpcFlowLogsConfigSettings.toBuilder(); + updateVpcFlowLogsConfigOperationSettings = + settings.updateVpcFlowLogsConfigOperationSettings.toBuilder(); + deleteVpcFlowLogsConfigSettings = settings.deleteVpcFlowLogsConfigSettings.toBuilder(); + deleteVpcFlowLogsConfigOperationSettings = + settings.deleteVpcFlowLogsConfigOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listVpcFlowLogsConfigsSettings, + getVpcFlowLogsConfigSettings, + createVpcFlowLogsConfigSettings, + updateVpcFlowLogsConfigSettings, + deleteVpcFlowLogsConfigSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listVpcFlowLogsConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createVpcFlowLogsConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(VpcFlowLogsConfig.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 + .updateVpcFlowLogsConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(VpcFlowLogsConfig.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 + .deleteVpcFlowLogsConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                              Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return listVpcFlowLogsConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + getVpcFlowLogsConfigSettings() { + return getVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + createVpcFlowLogsConfigSettings() { + return createVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings() { + return createVpcFlowLogsConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + updateVpcFlowLogsConfigSettings() { + return updateVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings() { + return updateVpcFlowLogsConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + deleteVpcFlowLogsConfigSettings() { + return deleteVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings.Builder + deleteVpcFlowLogsConfigOperationSettings() { + return deleteVpcFlowLogsConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public OrganizationVpcFlowLogsServiceStubSettings build() throws IOException { + return new OrganizationVpcFlowLogsServiceStubSettings(this); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java index 4f3e6c7f43a4..284eb5468ec7 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java @@ -18,6 +18,8 @@ import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; @@ -32,6 +34,10 @@ import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; import com.google.iam.v1.GetIamPolicyRequest; @@ -110,6 +116,31 @@ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOp throw new UnsupportedOperationException("Not implemented: deleteVpcFlowLogsConfigCallable()"); } + public UnaryCallable + queryOrgVpcFlowLogsConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryOrgVpcFlowLogsConfigsPagedCallable()"); + } + + public UnaryCallable + queryOrgVpcFlowLogsConfigsCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryOrgVpcFlowLogsConfigsCallable()"); + } + + public UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: showEffectiveFlowLogsConfigsPagedCallable()"); + } + + public UnaryCallable + showEffectiveFlowLogsConfigsCallable() { + throw new UnsupportedOperationException( + "Not implemented: showEffectiveFlowLogsConfigsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java index 251314af429d..cd9e128a9ee3 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java @@ -18,6 +18,8 @@ import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -55,10 +57,15 @@ import com.google.cloud.location.Location; import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig; import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; import com.google.common.collect.ImmutableList; @@ -182,6 +189,16 @@ public class VpcFlowLogsServiceStubSettings extends StubSettings deleteVpcFlowLogsConfigOperationSettings; + private final PagedCallSettings< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings; + private final PagedCallSettings< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -232,6 +249,98 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + QUERY_ORG_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryOrgVpcFlowLogsConfigsRequest injectToken( + QueryOrgVpcFlowLogsConfigsRequest payload, String token) { + return QueryOrgVpcFlowLogsConfigsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public QueryOrgVpcFlowLogsConfigsRequest injectPageSize( + QueryOrgVpcFlowLogsConfigsRequest payload, int pageSize) { + return QueryOrgVpcFlowLogsConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(QueryOrgVpcFlowLogsConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryOrgVpcFlowLogsConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + QueryOrgVpcFlowLogsConfigsResponse payload) { + return payload.getVpcFlowLogsConfigsList(); + } + }; + + private static final PagedListDescriptor< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ShowEffectiveFlowLogsConfigsRequest injectToken( + ShowEffectiveFlowLogsConfigsRequest payload, String token) { + return ShowEffectiveFlowLogsConfigsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ShowEffectiveFlowLogsConfigsRequest injectPageSize( + ShowEffectiveFlowLogsConfigsRequest payload, int pageSize) { + return ShowEffectiveFlowLogsConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ShowEffectiveFlowLogsConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ShowEffectiveFlowLogsConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ShowEffectiveFlowLogsConfigsResponse payload) { + return payload.getEffectiveFlowLogsConfigsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -293,6 +402,69 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + QUERY_ORG_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + QueryOrgVpcFlowLogsConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + pageContext = + PageContext.create( + callable, + QUERY_ORG_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC, + request, + context); + return QueryOrgVpcFlowLogsConfigsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + callable, + ShowEffectiveFlowLogsConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + pageContext = + PageContext.create( + callable, + SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS_PAGE_STR_DESC, + request, + context); + return ShowEffectiveFlowLogsConfigsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -361,6 +533,24 @@ public ApiFuture getFuturePagedResponse( return deleteVpcFlowLogsConfigOperationSettings; } + /** Returns the object with the settings used for calls to queryOrgVpcFlowLogsConfigs. */ + public PagedCallSettings< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings() { + return queryOrgVpcFlowLogsConfigsSettings; + } + + /** Returns the object with the settings used for calls to showEffectiveFlowLogsConfigs. */ + public PagedCallSettings< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings() { + return showEffectiveFlowLogsConfigsSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -510,6 +700,10 @@ protected VpcFlowLogsServiceStubSettings(Builder settingsBuilder) throws IOExcep deleteVpcFlowLogsConfigSettings = settingsBuilder.deleteVpcFlowLogsConfigSettings().build(); deleteVpcFlowLogsConfigOperationSettings = settingsBuilder.deleteVpcFlowLogsConfigOperationSettings().build(); + queryOrgVpcFlowLogsConfigsSettings = + settingsBuilder.queryOrgVpcFlowLogsConfigsSettings().build(); + showEffectiveFlowLogsConfigsSettings = + settingsBuilder.showEffectiveFlowLogsConfigsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -543,6 +737,16 @@ public static class Builder private final OperationCallSettings.Builder< DeleteVpcFlowLogsConfigRequest, Empty, OperationMetadata> deleteVpcFlowLogsConfigOperationSettings; + private final PagedCallSettings.Builder< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings; + private final PagedCallSettings.Builder< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -587,6 +791,10 @@ protected Builder(ClientContext clientContext) { updateVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); deleteVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + queryOrgVpcFlowLogsConfigsSettings = + PagedCallSettings.newBuilder(QUERY_ORG_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT); + showEffectiveFlowLogsConfigsSettings = + PagedCallSettings.newBuilder(SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS_PAGE_STR_FACT); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -600,6 +808,8 @@ protected Builder(ClientContext clientContext) { createVpcFlowLogsConfigSettings, updateVpcFlowLogsConfigSettings, deleteVpcFlowLogsConfigSettings, + queryOrgVpcFlowLogsConfigsSettings, + showEffectiveFlowLogsConfigsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -622,6 +832,9 @@ protected Builder(VpcFlowLogsServiceStubSettings settings) { deleteVpcFlowLogsConfigSettings = settings.deleteVpcFlowLogsConfigSettings.toBuilder(); deleteVpcFlowLogsConfigOperationSettings = settings.deleteVpcFlowLogsConfigOperationSettings.toBuilder(); + queryOrgVpcFlowLogsConfigsSettings = settings.queryOrgVpcFlowLogsConfigsSettings.toBuilder(); + showEffectiveFlowLogsConfigsSettings = + settings.showEffectiveFlowLogsConfigsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -635,6 +848,8 @@ protected Builder(VpcFlowLogsServiceStubSettings settings) { createVpcFlowLogsConfigSettings, updateVpcFlowLogsConfigSettings, deleteVpcFlowLogsConfigSettings, + queryOrgVpcFlowLogsConfigsSettings, + showEffectiveFlowLogsConfigsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -692,6 +907,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .queryOrgVpcFlowLogsConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .showEffectiveFlowLogsConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -860,6 +1085,24 @@ public Builder applyToAllUnaryMethods( return deleteVpcFlowLogsConfigOperationSettings; } + /** Returns the builder for the settings used for calls to queryOrgVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings() { + return queryOrgVpcFlowLogsConfigsSettings; + } + + /** Returns the builder for the settings used for calls to showEffectiveFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings() { + return showEffectiveFlowLogsConfigsSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java index bee41c84f201..e4eb0453f8ca 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java @@ -203,6 +203,21 @@ * * * + *

                                              ShowEffectiveFlowLogsConfigs + *

                                              ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a specified resource. + * + *

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

                                              + *
                                                + *
                                              • showEffectiveFlowLogsConfigs(ShowEffectiveFlowLogsConfigsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • showEffectiveFlowLogsConfigsPagedCallable() + *

                                              • showEffectiveFlowLogsConfigsCallable() + *

                                              + * + * + * *

                                              ListLocations *

                                              Lists information about the supported locations for this service. * @@ -1634,6 +1649,124 @@ public final QueryOrgVpcFlowLogsConfigsPagedResponse queryOrgVpcFlowLogsConfigs( return stub.queryOrgVpcFlowLogsConfigsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a + * specified resource. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   ShowEffectiveFlowLogsConfigsRequest request =
                                              +   *       ShowEffectiveFlowLogsConfigsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setResource("resource-341064690")
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   for (EffectiveVpcFlowLogsConfig element :
                                              +   *       vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigs(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 ShowEffectiveFlowLogsConfigsPagedResponse showEffectiveFlowLogsConfigs( + ShowEffectiveFlowLogsConfigsRequest request) { + return showEffectiveFlowLogsConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a + * specified resource. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   ShowEffectiveFlowLogsConfigsRequest request =
                                              +   *       ShowEffectiveFlowLogsConfigsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setResource("resource-341064690")
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (EffectiveVpcFlowLogsConfig element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable() { + return stub.showEffectiveFlowLogsConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a + * specified resource. + * + *

                                              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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
                                              +   *   ShowEffectiveFlowLogsConfigsRequest request =
                                              +   *       ShowEffectiveFlowLogsConfigsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setResource("resource-341064690")
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ShowEffectiveFlowLogsConfigsResponse response =
                                              +   *         vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigsCallable().call(request);
                                              +   *     for (EffectiveVpcFlowLogsConfig element : response.getEffectiveFlowLogsConfigsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsCallable() { + return stub.showEffectiveFlowLogsConfigsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -2198,6 +2331,103 @@ protected QueryOrgVpcFlowLogsConfigsFixedSizeCollection createCollection( } } + public static class ShowEffectiveFlowLogsConfigsPagedResponse + extends AbstractPagedListResponse< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig, + ShowEffectiveFlowLogsConfigsPage, + ShowEffectiveFlowLogsConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ShowEffectiveFlowLogsConfigsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ShowEffectiveFlowLogsConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ShowEffectiveFlowLogsConfigsPagedResponse(ShowEffectiveFlowLogsConfigsPage page) { + super(page, ShowEffectiveFlowLogsConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ShowEffectiveFlowLogsConfigsPage + extends AbstractPage< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig, + ShowEffectiveFlowLogsConfigsPage> { + + private ShowEffectiveFlowLogsConfigsPage( + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + context, + ShowEffectiveFlowLogsConfigsResponse response) { + super(context, response); + } + + private static ShowEffectiveFlowLogsConfigsPage createEmptyPage() { + return new ShowEffectiveFlowLogsConfigsPage(null, null); + } + + @Override + protected ShowEffectiveFlowLogsConfigsPage createPage( + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + context, + ShowEffectiveFlowLogsConfigsResponse response) { + return new ShowEffectiveFlowLogsConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ShowEffectiveFlowLogsConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig, + ShowEffectiveFlowLogsConfigsPage, + ShowEffectiveFlowLogsConfigsFixedSizeCollection> { + + private ShowEffectiveFlowLogsConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ShowEffectiveFlowLogsConfigsFixedSizeCollection createEmptyCollection() { + return new ShowEffectiveFlowLogsConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ShowEffectiveFlowLogsConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ShowEffectiveFlowLogsConfigsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java index c1050b609f76..96e5621f52d7 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java @@ -19,6 +19,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -195,6 +196,16 @@ public class VpcFlowLogsServiceSettings extends ClientSettings + showEffectiveFlowLogsConfigsSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()) + .showEffectiveFlowLogsConfigsSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -396,6 +407,15 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().queryOrgVpcFlowLogsConfigsSettings(); } + /** Returns the builder for the settings used for calls to showEffectiveFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings() { + return getStubSettingsBuilder().showEffectiveFlowLogsConfigsSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/gapic_metadata.json b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/gapic_metadata.json index cd1a668a3e50..15378be73cd3 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/gapic_metadata.json +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/gapic_metadata.json @@ -79,6 +79,9 @@ "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, + "ShowEffectiveFlowLogsConfigs": { + "methods": ["showEffectiveFlowLogsConfigs", "showEffectiveFlowLogsConfigsPagedCallable", "showEffectiveFlowLogsConfigsCallable"] + }, "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissionsCallable"] }, diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcVpcFlowLogsServiceStub.java index aaaeddc20747..f059a417c9b8 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcVpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcVpcFlowLogsServiceStub.java @@ -19,6 +19,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -41,6 +42,8 @@ import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; import com.google.iam.v1.GetIamPolicyRequest; @@ -144,6 +147,22 @@ public class GrpcVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService/ShowEffectiveFlowLogsConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ShowEffectiveFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ShowEffectiveFlowLogsConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -220,6 +239,12 @@ public class GrpcVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { private final UnaryCallable< QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsPagedResponse> queryOrgVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsCallable; + private final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -343,6 +368,19 @@ protected GrpcVpcFlowLogsServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + showEffectiveFlowLogsConfigsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(showEffectiveFlowLogsConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -453,6 +491,16 @@ protected GrpcVpcFlowLogsServiceStub( queryOrgVpcFlowLogsConfigsTransportSettings, settings.queryOrgVpcFlowLogsConfigsSettings(), clientContext); + this.showEffectiveFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + showEffectiveFlowLogsConfigsTransportSettings, + settings.showEffectiveFlowLogsConfigsSettings(), + clientContext); + this.showEffectiveFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + showEffectiveFlowLogsConfigsTransportSettings, + settings.showEffectiveFlowLogsConfigsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -548,6 +596,19 @@ public GrpcOperationsStub getOperationsStub() { return queryOrgVpcFlowLogsConfigsPagedCallable; } + @Override + public UnaryCallable + showEffectiveFlowLogsConfigsCallable() { + return showEffectiveFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable() { + return showEffectiveFlowLogsConfigsPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonVpcFlowLogsServiceStub.java index b69f23c1ffe3..7bbce81cfb86 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonVpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonVpcFlowLogsServiceStub.java @@ -19,6 +19,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.HttpRule; import com.google.api.core.BetaApi; @@ -49,6 +50,8 @@ import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; import com.google.common.collect.ImmutableMap; @@ -328,6 +331,48 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService/ShowEffectiveFlowLogsConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "resource", request.getResource()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ShowEffectiveFlowLogsConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -531,6 +576,12 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { private final UnaryCallable< QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsPagedResponse> queryOrgVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigsCallable; + private final UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -708,6 +759,20 @@ protected HttpJsonVpcFlowLogsServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + showEffectiveFlowLogsConfigsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(showEffectiveFlowLogsConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -824,6 +889,16 @@ protected HttpJsonVpcFlowLogsServiceStub( queryOrgVpcFlowLogsConfigsTransportSettings, settings.queryOrgVpcFlowLogsConfigsSettings(), clientContext); + this.showEffectiveFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + showEffectiveFlowLogsConfigsTransportSettings, + settings.showEffectiveFlowLogsConfigsSettings(), + clientContext); + this.showEffectiveFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + showEffectiveFlowLogsConfigsTransportSettings, + settings.showEffectiveFlowLogsConfigsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -858,6 +933,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateVpcFlowLogsConfigMethodDescriptor); methodDescriptors.add(deleteVpcFlowLogsConfigMethodDescriptor); methodDescriptors.add(queryOrgVpcFlowLogsConfigsMethodDescriptor); + methodDescriptors.add(showEffectiveFlowLogsConfigsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -936,6 +1012,19 @@ public HttpJsonOperationsStub getHttpJsonOperationsStub() { return queryOrgVpcFlowLogsConfigsPagedCallable; } + @Override + public UnaryCallable + showEffectiveFlowLogsConfigsCallable() { + return showEffectiveFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable() { + return showEffectiveFlowLogsConfigsPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java index 9c309a3d9adf..559a1f83fe04 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java @@ -19,6 +19,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -36,6 +37,8 @@ import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; import com.google.iam.v1.GetIamPolicyRequest; @@ -127,6 +130,19 @@ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOp "Not implemented: queryOrgVpcFlowLogsConfigsCallable()"); } + public UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: showEffectiveFlowLogsConfigsPagedCallable()"); + } + + public UnaryCallable + showEffectiveFlowLogsConfigsCallable() { + throw new UnsupportedOperationException( + "Not implemented: showEffectiveFlowLogsConfigsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java index 49e18687b7e3..61c0b9851b0c 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java @@ -19,6 +19,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -56,12 +57,15 @@ import com.google.cloud.location.Location; import com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig; import com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; import com.google.common.collect.ImmutableList; @@ -191,6 +195,11 @@ public class VpcFlowLogsServiceStubSettings extends StubSettings queryOrgVpcFlowLogsConfigsSettings; + private final PagedCallSettings< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -286,6 +295,53 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ShowEffectiveFlowLogsConfigsRequest injectToken( + ShowEffectiveFlowLogsConfigsRequest payload, String token) { + return ShowEffectiveFlowLogsConfigsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ShowEffectiveFlowLogsConfigsRequest injectPageSize( + ShowEffectiveFlowLogsConfigsRequest payload, int pageSize) { + return ShowEffectiveFlowLogsConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ShowEffectiveFlowLogsConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ShowEffectiveFlowLogsConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ShowEffectiveFlowLogsConfigsResponse payload) { + return payload.getEffectiveFlowLogsConfigsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -378,6 +434,38 @@ public ApiFuture getFuturePagedResponse } }; + private static final PagedListResponseFactory< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse> + callable, + ShowEffectiveFlowLogsConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + EffectiveVpcFlowLogsConfig> + pageContext = + PageContext.create( + callable, + SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS_PAGE_STR_DESC, + request, + context); + return ShowEffectiveFlowLogsConfigsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -455,6 +543,15 @@ public ApiFuture getFuturePagedResponse( return queryOrgVpcFlowLogsConfigsSettings; } + /** Returns the object with the settings used for calls to showEffectiveFlowLogsConfigs. */ + public PagedCallSettings< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings() { + return showEffectiveFlowLogsConfigsSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -606,6 +703,8 @@ protected VpcFlowLogsServiceStubSettings(Builder settingsBuilder) throws IOExcep settingsBuilder.deleteVpcFlowLogsConfigOperationSettings().build(); queryOrgVpcFlowLogsConfigsSettings = settingsBuilder.queryOrgVpcFlowLogsConfigsSettings().build(); + showEffectiveFlowLogsConfigsSettings = + settingsBuilder.showEffectiveFlowLogsConfigsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -644,6 +743,11 @@ public static class Builder QueryOrgVpcFlowLogsConfigsResponse, QueryOrgVpcFlowLogsConfigsPagedResponse> queryOrgVpcFlowLogsConfigsSettings; + private final PagedCallSettings.Builder< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -690,6 +794,8 @@ protected Builder(ClientContext clientContext) { deleteVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); queryOrgVpcFlowLogsConfigsSettings = PagedCallSettings.newBuilder(QUERY_ORG_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT); + showEffectiveFlowLogsConfigsSettings = + PagedCallSettings.newBuilder(SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS_PAGE_STR_FACT); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -704,6 +810,7 @@ protected Builder(ClientContext clientContext) { updateVpcFlowLogsConfigSettings, deleteVpcFlowLogsConfigSettings, queryOrgVpcFlowLogsConfigsSettings, + showEffectiveFlowLogsConfigsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -727,6 +834,8 @@ protected Builder(VpcFlowLogsServiceStubSettings settings) { deleteVpcFlowLogsConfigOperationSettings = settings.deleteVpcFlowLogsConfigOperationSettings.toBuilder(); queryOrgVpcFlowLogsConfigsSettings = settings.queryOrgVpcFlowLogsConfigsSettings.toBuilder(); + showEffectiveFlowLogsConfigsSettings = + settings.showEffectiveFlowLogsConfigsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -741,6 +850,7 @@ protected Builder(VpcFlowLogsServiceStubSettings settings) { updateVpcFlowLogsConfigSettings, deleteVpcFlowLogsConfigSettings, queryOrgVpcFlowLogsConfigsSettings, + showEffectiveFlowLogsConfigsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -803,6 +913,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .showEffectiveFlowLogsConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -980,6 +1095,15 @@ public Builder applyToAllUnaryMethods( return queryOrgVpcFlowLogsConfigsSettings; } + /** Returns the builder for the settings used for calls to showEffectiveFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ShowEffectiveFlowLogsConfigsRequest, + ShowEffectiveFlowLogsConfigsResponse, + ShowEffectiveFlowLogsConfigsPagedResponse> + showEffectiveFlowLogsConfigsSettings() { + return showEffectiveFlowLogsConfigsSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json index 66a1f09b6050..97c4a5424022 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json @@ -737,6 +737,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.DeliverInfo$GoogleServiceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.DeliverInfo$Target", "queryAllDeclaredConstructors": true, @@ -791,6 +800,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig$Scope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.Endpoint", "queryAllDeclaredConstructors": true, @@ -926,6 +962,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.FirewallInfo$TargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.ForwardInfo", "queryAllDeclaredConstructors": true, @@ -1052,6 +1097,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.HybridSubnetInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.HybridSubnetInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.InstanceInfo", "queryAllDeclaredConstructors": true, @@ -1070,6 +1133,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.InstanceInfo$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.LatencyDistribution", "queryAllDeclaredConstructors": true, @@ -1394,6 +1493,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.ProbingDetails$SingleEdgeResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.ProbingDetails$SingleEdgeResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.ProxyConnectionInfo", "queryAllDeclaredConstructors": true, @@ -1412,6 +1529,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.ReachabilityDetails", "queryAllDeclaredConstructors": true, @@ -1574,6 +1727,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.Step", "queryAllDeclaredConstructors": true, @@ -1718,6 +1907,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig$CrossProjectMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig$Metadata", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json index 12f4ca6285cb..2cbcfc49b16d 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json @@ -800,6 +800,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig$Scope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.Endpoint", "queryAllDeclaredConstructors": true, @@ -935,6 +962,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.FirewallInfo$TargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.ForwardInfo", "queryAllDeclaredConstructors": true, @@ -1061,6 +1097,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.InstanceInfo", "queryAllDeclaredConstructors": true, @@ -1088,6 +1142,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.LatencyDistribution", "queryAllDeclaredConstructors": true, @@ -1646,6 +1727,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.Step", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockOrganizationVpcFlowLogsService.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockOrganizationVpcFlowLogsService.java new file mode 100644 index 000000000000..11ab1b70767d --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockOrganizationVpcFlowLogsService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.networkmanagement.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockOrganizationVpcFlowLogsService implements MockGrpcService { + private final MockOrganizationVpcFlowLogsServiceImpl serviceImpl; + + public MockOrganizationVpcFlowLogsService() { + serviceImpl = new MockOrganizationVpcFlowLogsServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockOrganizationVpcFlowLogsServiceImpl.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockOrganizationVpcFlowLogsServiceImpl.java new file mode 100644 index 000000000000..622be0dd9ab1 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockOrganizationVpcFlowLogsServiceImpl.java @@ -0,0 +1,172 @@ +/* + * Copyright 2025 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.networkmanagement.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceGrpc.OrganizationVpcFlowLogsServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockOrganizationVpcFlowLogsServiceImpl extends OrganizationVpcFlowLogsServiceImplBase { + private List requests; + private Queue responses; + + public MockOrganizationVpcFlowLogsServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listVpcFlowLogsConfigs( + ListVpcFlowLogsConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListVpcFlowLogsConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListVpcFlowLogsConfigsResponse) 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 ListVpcFlowLogsConfigs, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListVpcFlowLogsConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getVpcFlowLogsConfig( + GetVpcFlowLogsConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof VpcFlowLogsConfig) { + requests.add(request); + responseObserver.onNext(((VpcFlowLogsConfig) 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 GetVpcFlowLogsConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + VpcFlowLogsConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createVpcFlowLogsConfig( + CreateVpcFlowLogsConfigRequest 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 CreateVpcFlowLogsConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateVpcFlowLogsConfig( + UpdateVpcFlowLogsConfigRequest 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 UpdateVpcFlowLogsConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteVpcFlowLogsConfig( + DeleteVpcFlowLogsConfigRequest 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 DeleteVpcFlowLogsConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsServiceImpl.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsServiceImpl.java index eb7d6db22f9f..78390e684fc6 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsServiceImpl.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsServiceImpl.java @@ -169,4 +169,50 @@ public void deleteVpcFlowLogsConfig( Exception.class.getName()))); } } + + @Override + public void queryOrgVpcFlowLogsConfigs( + QueryOrgVpcFlowLogsConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryOrgVpcFlowLogsConfigsResponse) { + requests.add(request); + responseObserver.onNext(((QueryOrgVpcFlowLogsConfigsResponse) 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 QueryOrgVpcFlowLogsConfigs, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + QueryOrgVpcFlowLogsConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void showEffectiveFlowLogsConfigs( + ShowEffectiveFlowLogsConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ShowEffectiveFlowLogsConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ShowEffectiveFlowLogsConfigsResponse) 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 ShowEffectiveFlowLogsConfigs, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ShowEffectiveFlowLogsConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..6a321b56e98a --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java @@ -0,0 +1,1225 @@ +/* + * Copyright 2025 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.networkmanagement.v1; + +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.stub.HttpJsonOrganizationVpcFlowLogsServiceStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class OrganizationVpcFlowLogsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static OrganizationVpcFlowLogsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonOrganizationVpcFlowLogsServiceStub.getMethodDescriptors(), + OrganizationVpcFlowLogsServiceSettings.getDefaultEndpoint()); + OrganizationVpcFlowLogsServiceSettings settings = + OrganizationVpcFlowLogsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + OrganizationVpcFlowLogsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OrganizationVpcFlowLogsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") + @Test + public void listVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest() 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.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest2() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest3() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(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 getVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-7429/locations/location-7429/vpcFlowLogsConfigs/vpcFlowLogsConfig-7429"; + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(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 getVpcFlowLogsConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-7429/locations/location-7429/vpcFlowLogsConfigs/vpcFlowLogsConfig-7429"; + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") + @Test + public void createVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest() 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]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") + @Test + public void createVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest2() 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]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest3() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest4() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest5() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-9365/locations/location-9365"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest5() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest6() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-9365/locations/location-9365"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest6() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VpcFlowLogsConfig vpcFlowLogsConfig = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VpcFlowLogsConfig actualResponse = + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, 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 updateVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcFlowLogsConfig vpcFlowLogsConfig = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteVpcFlowLogsConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + client.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.deleteVpcFlowLogsConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteVpcFlowLogsConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "organizations/organization-7429/locations/location-7429/vpcFlowLogsConfigs/vpcFlowLogsConfig-7429"; + + client.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-7429/locations/location-7429/vpcFlowLogsConfigs/vpcFlowLogsConfig-7429"; + client.deleteVpcFlowLogsConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(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 setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(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 getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(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 testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClientTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClientTest.java new file mode 100644 index 000000000000..f3bfed91729d --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClientTest.java @@ -0,0 +1,1142 @@ +/* + * Copyright 2025 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.networkmanagement.v1; + +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class OrganizationVpcFlowLogsServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockOrganizationVpcFlowLogsService mockOrganizationVpcFlowLogsService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private OrganizationVpcFlowLogsServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockOrganizationVpcFlowLogsService = new MockOrganizationVpcFlowLogsService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockOrganizationVpcFlowLogsService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + OrganizationVpcFlowLogsServiceSettings settings = + OrganizationVpcFlowLogsServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OrganizationVpcFlowLogsServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest2() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest3() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVpcFlowLogsConfigRequest actualRequest = + ((GetVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + String name = "name3373707"; + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVpcFlowLogsConfigRequest actualRequest = + ((GetVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVpcFlowLogsConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String name = "name3373707"; + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest3() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest4() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest5() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest6() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest6() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 updateVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VpcFlowLogsConfig actualResponse = + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateVpcFlowLogsConfigRequest actualRequest = + ((UpdateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, 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 deleteVpcFlowLogsConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + client.deleteVpcFlowLogsConfigAsync(name).get(); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVpcFlowLogsConfigRequest actualRequest = + ((DeleteVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteVpcFlowLogsConfigAsync(name).get(); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVpcFlowLogsConfigRequest actualRequest = + ((DeleteVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVpcFlowLogsConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String name = "name3373707"; + client.deleteVpcFlowLogsConfigAsync(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(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java index 814dfa0865c7..0552726e6102 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java @@ -18,6 +18,8 @@ import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -159,7 +161,7 @@ public void listVpcFlowLogsConfigsTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); @@ -190,6 +192,56 @@ public void listVpcFlowLogsConfigsExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest3() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest3() 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.listVpcFlowLogsConfigs(parent); @@ -204,7 +256,8 @@ public void getVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -217,7 +270,8 @@ public void getVpcFlowLogsConfigTest() throws Exception { mockService.addResponse(expectedResponse); VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -246,7 +300,8 @@ public void getVpcFlowLogsConfigExceptionTest() throws Exception { try { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.getVpcFlowLogsConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -259,7 +314,8 @@ public void getVpcFlowLogsConfigTest2() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -314,7 +370,8 @@ public void createVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -335,7 +392,8 @@ public void createVpcFlowLogsConfigTest() throws Exception { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); @@ -367,7 +425,8 @@ public void createVpcFlowLogsConfigExceptionTest() throws Exception { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -379,7 +438,8 @@ public void createVpcFlowLogsConfigTest2() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -443,7 +503,8 @@ public void createVpcFlowLogsConfigTest3() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -461,10 +522,11 @@ public void createVpcFlowLogsConfigTest3() throws Exception { .build(); mockService.addResponse(resultOperation); - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); @@ -493,10 +555,11 @@ public void createVpcFlowLogsConfigExceptionTest3() throws Exception { mockService.addException(exception); try { - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -509,7 +572,8 @@ public void createVpcFlowLogsConfigTest4() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -527,7 +591,7 @@ public void createVpcFlowLogsConfigTest4() throws Exception { .build(); mockService.addResponse(resultOperation); - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; @@ -557,6 +621,138 @@ public void createVpcFlowLogsConfigExceptionTest4() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest5() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest5() 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"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest6() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest6() 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"; VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); @@ -572,7 +768,8 @@ public void updateVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -593,7 +790,8 @@ public void updateVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -635,7 +833,8 @@ public void updateVpcFlowLogsConfigExceptionTest() throws Exception { VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -664,7 +863,8 @@ public void deleteVpcFlowLogsConfigTest() throws Exception { mockService.addResponse(resultOperation); VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.deleteVpcFlowLogsConfigAsync(name).get(); @@ -692,7 +892,8 @@ public void deleteVpcFlowLogsConfigExceptionTest() throws Exception { try { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.deleteVpcFlowLogsConfigAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -746,6 +947,135 @@ public void deleteVpcFlowLogsConfigExceptionTest2() throws Exception { } } + @Test + public void queryOrgVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + QueryOrgVpcFlowLogsConfigsResponse expectedResponse = + QueryOrgVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + QueryOrgVpcFlowLogsConfigsPagedResponse pagedListResponse = + client.queryOrgVpcFlowLogsConfigs(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 queryOrgVpcFlowLogsConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.queryOrgVpcFlowLogsConfigs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showEffectiveFlowLogsConfigsTest() throws Exception { + EffectiveVpcFlowLogsConfig responsesElement = EffectiveVpcFlowLogsConfig.newBuilder().build(); + ShowEffectiveFlowLogsConfigsResponse expectedResponse = + ShowEffectiveFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllEffectiveFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + ShowEffectiveFlowLogsConfigsPagedResponse pagedListResponse = + client.showEffectiveFlowLogsConfigs(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getEffectiveFlowLogsConfigsList().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 showEffectiveFlowLogsConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.showEffectiveFlowLogsConfigs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientTest.java index a100644e0a11..f0f1997c8da0 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientTest.java @@ -18,6 +18,8 @@ import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -161,6 +163,51 @@ public void listVpcFlowLogsConfigsTest2() throws Exception { .build(); mockVpcFlowLogsService.addResponse(expectedResponse); + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest3() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + String parent = "parent-995424086"; ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); @@ -183,7 +230,7 @@ public void listVpcFlowLogsConfigsTest2() throws Exception { } @Test - public void listVpcFlowLogsConfigsExceptionTest2() throws Exception { + public void listVpcFlowLogsConfigsExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVpcFlowLogsService.addException(exception); @@ -201,7 +248,8 @@ public void getVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -214,7 +262,8 @@ public void getVpcFlowLogsConfigTest() throws Exception { mockVpcFlowLogsService.addResponse(expectedResponse); VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -238,7 +287,8 @@ public void getVpcFlowLogsConfigExceptionTest() throws Exception { try { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.getVpcFlowLogsConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -251,7 +301,8 @@ public void getVpcFlowLogsConfigTest2() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -299,7 +350,8 @@ public void createVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -320,7 +372,8 @@ public void createVpcFlowLogsConfigTest() throws Exception { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); @@ -349,7 +402,8 @@ public void createVpcFlowLogsConfigExceptionTest() throws Exception { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -364,7 +418,8 @@ public void createVpcFlowLogsConfigTest2() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -427,7 +482,140 @@ public void createVpcFlowLogsConfigTest3() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest4() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest5() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -448,7 +636,8 @@ public void createVpcFlowLogsConfigTest3() throws Exception { String parent = "parent-995424086"; VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); @@ -469,7 +658,7 @@ public void createVpcFlowLogsConfigTest3() throws Exception { } @Test - public void createVpcFlowLogsConfigExceptionTest3() throws Exception { + public void createVpcFlowLogsConfigExceptionTest5() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVpcFlowLogsService.addException(exception); @@ -477,7 +666,8 @@ public void createVpcFlowLogsConfigExceptionTest3() throws Exception { String parent = "parent-995424086"; VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -488,11 +678,12 @@ public void createVpcFlowLogsConfigExceptionTest3() throws Exception { } @Test - public void createVpcFlowLogsConfigTest4() throws Exception { + public void createVpcFlowLogsConfigTest6() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -533,7 +724,7 @@ public void createVpcFlowLogsConfigTest4() throws Exception { } @Test - public void createVpcFlowLogsConfigExceptionTest4() throws Exception { + public void createVpcFlowLogsConfigExceptionTest6() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVpcFlowLogsService.addException(exception); @@ -555,7 +746,8 @@ public void updateVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -622,7 +814,8 @@ public void deleteVpcFlowLogsConfigTest() throws Exception { mockVpcFlowLogsService.addResponse(resultOperation); VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.deleteVpcFlowLogsConfigAsync(name).get(); @@ -645,7 +838,8 @@ public void deleteVpcFlowLogsConfigExceptionTest() throws Exception { try { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.deleteVpcFlowLogsConfigAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -698,6 +892,132 @@ public void deleteVpcFlowLogsConfigExceptionTest2() throws Exception { } } + @Test + public void queryOrgVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + QueryOrgVpcFlowLogsConfigsResponse expectedResponse = + QueryOrgVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + QueryOrgVpcFlowLogsConfigsPagedResponse pagedListResponse = + client.queryOrgVpcFlowLogsConfigs(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryOrgVpcFlowLogsConfigsRequest actualRequest = + ((QueryOrgVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryOrgVpcFlowLogsConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.queryOrgVpcFlowLogsConfigs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showEffectiveFlowLogsConfigsTest() throws Exception { + EffectiveVpcFlowLogsConfig responsesElement = EffectiveVpcFlowLogsConfig.newBuilder().build(); + ShowEffectiveFlowLogsConfigsResponse expectedResponse = + ShowEffectiveFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllEffectiveFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + ShowEffectiveFlowLogsConfigsPagedResponse pagedListResponse = + client.showEffectiveFlowLogsConfigs(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getEffectiveFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowEffectiveFlowLogsConfigsRequest actualRequest = + ((ShowEffectiveFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showEffectiveFlowLogsConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.showEffectiveFlowLogsConfigs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockVpcFlowLogsServiceImpl.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockVpcFlowLogsServiceImpl.java index 226d549f20f4..b40695347aa8 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockVpcFlowLogsServiceImpl.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockVpcFlowLogsServiceImpl.java @@ -192,4 +192,27 @@ public void queryOrgVpcFlowLogsConfigs( Exception.class.getName()))); } } + + @Override + public void showEffectiveFlowLogsConfigs( + ShowEffectiveFlowLogsConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ShowEffectiveFlowLogsConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ShowEffectiveFlowLogsConfigsResponse) 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 ShowEffectiveFlowLogsConfigs, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ShowEffectiveFlowLogsConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java index 44a9ec697d54..6629b00641b8 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java @@ -19,6 +19,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -1009,6 +1010,72 @@ public void queryOrgVpcFlowLogsConfigsExceptionTest() throws Exception { } } + @Test + public void showEffectiveFlowLogsConfigsTest() throws Exception { + EffectiveVpcFlowLogsConfig responsesElement = EffectiveVpcFlowLogsConfig.newBuilder().build(); + ShowEffectiveFlowLogsConfigsResponse expectedResponse = + ShowEffectiveFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllEffectiveFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + ShowEffectiveFlowLogsConfigsPagedResponse pagedListResponse = + client.showEffectiveFlowLogsConfigs(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getEffectiveFlowLogsConfigsList().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 showEffectiveFlowLogsConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.showEffectiveFlowLogsConfigs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java index 1b6092287ba8..e51b2eff536e 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java @@ -19,6 +19,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ShowEffectiveFlowLogsConfigsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -952,6 +953,71 @@ public void queryOrgVpcFlowLogsConfigsExceptionTest() throws Exception { } } + @Test + public void showEffectiveFlowLogsConfigsTest() throws Exception { + EffectiveVpcFlowLogsConfig responsesElement = EffectiveVpcFlowLogsConfig.newBuilder().build(); + ShowEffectiveFlowLogsConfigsResponse expectedResponse = + ShowEffectiveFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllEffectiveFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + ShowEffectiveFlowLogsConfigsPagedResponse pagedListResponse = + client.showEffectiveFlowLogsConfigs(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getEffectiveFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowEffectiveFlowLogsConfigsRequest actualRequest = + ((ShowEffectiveFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showEffectiveFlowLogsConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.showEffectiveFlowLogsConfigs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceGrpc.java new file mode 100644 index 000000000000..ac6332ff2e8b --- /dev/null +++ b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceGrpc.java @@ -0,0 +1,1149 @@ +/* + * Copyright 2025 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.networkmanagement.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                              + * The VPC Flow Logs organization service in the Google Cloud Network Management
                                              + * API provides organization level configurations that generate Flow Logs. The
                                              + * service and the configuration resources created using this service are
                                              + * global.
                                              + * 
                                              + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class OrganizationVpcFlowLogsServiceGrpc { + + private OrganizationVpcFlowLogsServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + getListVpcFlowLogsConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVpcFlowLogsConfigs", + requestType = com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest.class, + responseType = com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + getListVpcFlowLogsConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + getListVpcFlowLogsConfigsMethod; + if ((getListVpcFlowLogsConfigsMethod = + OrganizationVpcFlowLogsServiceGrpc.getListVpcFlowLogsConfigsMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getListVpcFlowLogsConfigsMethod = + OrganizationVpcFlowLogsServiceGrpc.getListVpcFlowLogsConfigsMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getListVpcFlowLogsConfigsMethod = + getListVpcFlowLogsConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListVpcFlowLogsConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "ListVpcFlowLogsConfigs")) + .build(); + } + } + } + return getListVpcFlowLogsConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig> + getGetVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest.class, + responseType = com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig> + getGetVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig> + getGetVpcFlowLogsConfigMethod; + if ((getGetVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getGetVpcFlowLogsConfigMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getGetVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getGetVpcFlowLogsConfigMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getGetVpcFlowLogsConfigMethod = + getGetVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "GetVpcFlowLogsConfig")) + .build(); + } + } + } + return getGetVpcFlowLogsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getCreateVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getCreateVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getCreateVpcFlowLogsConfigMethod; + if ((getCreateVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getCreateVpcFlowLogsConfigMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getCreateVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getCreateVpcFlowLogsConfigMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getCreateVpcFlowLogsConfigMethod = + getCreateVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "CreateVpcFlowLogsConfig")) + .build(); + } + } + } + return getCreateVpcFlowLogsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getUpdateVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getUpdateVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getUpdateVpcFlowLogsConfigMethod; + if ((getUpdateVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getUpdateVpcFlowLogsConfigMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getUpdateVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getUpdateVpcFlowLogsConfigMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getUpdateVpcFlowLogsConfigMethod = + getUpdateVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "UpdateVpcFlowLogsConfig")) + .build(); + } + } + } + return getUpdateVpcFlowLogsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getDeleteVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getDeleteVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getDeleteVpcFlowLogsConfigMethod; + if ((getDeleteVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getDeleteVpcFlowLogsConfigMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getDeleteVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getDeleteVpcFlowLogsConfigMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getDeleteVpcFlowLogsConfigMethod = + getDeleteVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "DeleteVpcFlowLogsConfig")) + .build(); + } + } + } + return getDeleteVpcFlowLogsConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static OrganizationVpcFlowLogsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationVpcFlowLogsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceStub(channel, callOptions); + } + }; + return OrganizationVpcFlowLogsServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static OrganizationVpcFlowLogsServiceBlockingV2Stub newBlockingV2Stub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationVpcFlowLogsServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceBlockingV2Stub(channel, callOptions); + } + }; + return OrganizationVpcFlowLogsServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static OrganizationVpcFlowLogsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationVpcFlowLogsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceBlockingStub(channel, callOptions); + } + }; + return OrganizationVpcFlowLogsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static OrganizationVpcFlowLogsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationVpcFlowLogsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceFutureStub(channel, callOptions); + } + }; + return OrganizationVpcFlowLogsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                              +   * The VPC Flow Logs organization service in the Google Cloud Network Management
                                              +   * API provides organization level configurations that generate Flow Logs. The
                                              +   * service and the configuration resources created using this service are
                                              +   * global.
                                              +   * 
                                              + */ + public interface AsyncService { + + /** + * + * + *
                                              +     * Lists all `VpcFlowLogsConfigs` in a given organization.
                                              +     * 
                                              + */ + default void listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVpcFlowLogsConfigsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets the details of a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + default void getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetVpcFlowLogsConfigMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Creating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - creating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + default void createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateVpcFlowLogsConfigMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Updates an existing `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Updating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - updating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + default void updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVpcFlowLogsConfigMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + default void deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteVpcFlowLogsConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service OrganizationVpcFlowLogsService. + * + *
                                              +   * The VPC Flow Logs organization service in the Google Cloud Network Management
                                              +   * API provides organization level configurations that generate Flow Logs. The
                                              +   * service and the configuration resources created using this service are
                                              +   * global.
                                              +   * 
                                              + */ + public abstract static class OrganizationVpcFlowLogsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return OrganizationVpcFlowLogsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service OrganizationVpcFlowLogsService. + * + *
                                              +   * The VPC Flow Logs organization service in the Google Cloud Network Management
                                              +   * API provides organization level configurations that generate Flow Logs. The
                                              +   * service and the configuration resources created using this service are
                                              +   * global.
                                              +   * 
                                              + */ + public static final class OrganizationVpcFlowLogsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private OrganizationVpcFlowLogsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationVpcFlowLogsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceStub(channel, callOptions); + } + + /** + * + * + *
                                              +     * Lists all `VpcFlowLogsConfigs` in a given organization.
                                              +     * 
                                              + */ + public void listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVpcFlowLogsConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets the details of a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + public void getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Creating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - creating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + public void createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Updates an existing `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Updating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - updating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + public void updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + public void deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service OrganizationVpcFlowLogsService. + * + *
                                              +   * The VPC Flow Logs organization service in the Google Cloud Network Management
                                              +   * API provides organization level configurations that generate Flow Logs. The
                                              +   * service and the configuration resources created using this service are
                                              +   * global.
                                              +   * 
                                              + */ + public static final class OrganizationVpcFlowLogsServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private OrganizationVpcFlowLogsServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationVpcFlowLogsServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                              +     * Lists all `VpcFlowLogsConfigs` in a given organization.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListVpcFlowLogsConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets the details of a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Creating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - creating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Updates an existing `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Updating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - updating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + public com.google.longrunning.Operation updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * OrganizationVpcFlowLogsService. + * + *
                                              +   * The VPC Flow Logs organization service in the Google Cloud Network Management
                                              +   * API provides organization level configurations that generate Flow Logs. The
                                              +   * service and the configuration resources created using this service are
                                              +   * global.
                                              +   * 
                                              + */ + public static final class OrganizationVpcFlowLogsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private OrganizationVpcFlowLogsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationVpcFlowLogsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                              +     * Lists all `VpcFlowLogsConfigs` in a given organization.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVpcFlowLogsConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets the details of a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Creating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - creating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Updates an existing `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Updating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - updating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + public com.google.longrunning.Operation updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * OrganizationVpcFlowLogsService. + * + *
                                              +   * The VPC Flow Logs organization service in the Google Cloud Network Management
                                              +   * API provides organization level configurations that generate Flow Logs. The
                                              +   * service and the configuration resources created using this service are
                                              +   * global.
                                              +   * 
                                              + */ + public static final class OrganizationVpcFlowLogsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private OrganizationVpcFlowLogsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationVpcFlowLogsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                                              +     * Lists all `VpcFlowLogsConfigs` in a given organization.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVpcFlowLogsConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Gets the details of a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig> + getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Creates a new `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Creating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - creating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Updates an existing `VpcFlowLogsConfig`.
                                              +     * If a configuration with the exact same settings already exists (even if the
                                              +     * ID is different), the creation fails.
                                              +     * Notes:
                                              +     *   1. Updating a configuration with `state=DISABLED` will fail
                                              +     *   2. The following fields are not considered as settings for the purpose
                                              +     *   of the check mentioned above, therefore - updating another configuration
                                              +     *   with the same fields but different values for the following fields will
                                              +     *   fail as well:
                                              +     *       * name
                                              +     *       * create_time
                                              +     *       * update_time
                                              +     *       * labels
                                              +     *       * description
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Deletes a specific `VpcFlowLogsConfig`.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_VPC_FLOW_LOGS_CONFIGS = 0; + private static final int METHODID_GET_VPC_FLOW_LOGS_CONFIG = 1; + private static final int METHODID_CREATE_VPC_FLOW_LOGS_CONFIG = 2; + private static final int METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG = 3; + private static final int METHODID_DELETE_VPC_FLOW_LOGS_CONFIG = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_VPC_FLOW_LOGS_CONFIGS: + serviceImpl.listVpcFlowLogsConfigs( + (com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse>) + responseObserver); + break; + case METHODID_GET_VPC_FLOW_LOGS_CONFIG: + serviceImpl.getVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_VPC_FLOW_LOGS_CONFIG: + serviceImpl.createVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG: + serviceImpl.updateVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_VPC_FLOW_LOGS_CONFIG: + serviceImpl.deleteVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListVpcFlowLogsConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse>( + service, METHODID_LIST_VPC_FLOW_LOGS_CONFIGS))) + .addMethod( + getGetVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig>( + service, METHODID_GET_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getCreateVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getUpdateVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getDeleteVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_VPC_FLOW_LOGS_CONFIG))) + .build(); + } + + private abstract static class OrganizationVpcFlowLogsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + OrganizationVpcFlowLogsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("OrganizationVpcFlowLogsService"); + } + } + + private static final class OrganizationVpcFlowLogsServiceFileDescriptorSupplier + extends OrganizationVpcFlowLogsServiceBaseDescriptorSupplier { + OrganizationVpcFlowLogsServiceFileDescriptorSupplier() {} + } + + private static final class OrganizationVpcFlowLogsServiceMethodDescriptorSupplier + extends OrganizationVpcFlowLogsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + OrganizationVpcFlowLogsServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceFileDescriptorSupplier()) + .addMethod(getListVpcFlowLogsConfigsMethod()) + .addMethod(getGetVpcFlowLogsConfigMethod()) + .addMethod(getCreateVpcFlowLogsConfigMethod()) + .addMethod(getUpdateVpcFlowLogsConfigMethod()) + .addMethod(getDeleteVpcFlowLogsConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceGrpc.java index f4288b96e5fc..6a067763c154 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceGrpc.java +++ b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceGrpc.java @@ -30,9 +30,6 @@ * to troubleshoot connectivity issues. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkmanagement/v1/reachability.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReachabilityServiceGrpc { @@ -742,8 +739,9 @@ protected ReachabilityServiceBlockingV2Stub build( */ public com.google.cloud.networkmanagement.v1.ListConnectivityTestsResponse listConnectivityTests( - com.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectivityTestsMethod(), getCallOptions(), request); } @@ -755,8 +753,9 @@ protected ReachabilityServiceBlockingV2Stub build( * */ public com.google.cloud.networkmanagement.v1.ConnectivityTest getConnectivityTest( - com.google.cloud.networkmanagement.v1.GetConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.GetConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectivityTestMethod(), getCallOptions(), request); } @@ -778,8 +777,9 @@ public com.google.cloud.networkmanagement.v1.ConnectivityTest getConnectivityTes * */ public com.google.longrunning.Operation createConnectivityTest( - com.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectivityTestMethod(), getCallOptions(), request); } @@ -802,8 +802,9 @@ public com.google.longrunning.Operation createConnectivityTest( * */ public com.google.longrunning.Operation updateConnectivityTest( - com.google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectivityTestMethod(), getCallOptions(), request); } @@ -824,8 +825,9 @@ public com.google.longrunning.Operation updateConnectivityTest( * */ public com.google.longrunning.Operation rerunConnectivityTest( - com.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRerunConnectivityTestMethod(), getCallOptions(), request); } @@ -837,8 +839,9 @@ public com.google.longrunning.Operation rerunConnectivityTest( * */ public com.google.longrunning.Operation deleteConnectivityTest( - com.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectivityTestMethod(), getCallOptions(), request); } } diff --git a/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceGrpc.java index c3a9cfaaa31a..9d6c79ec1ae0 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceGrpc.java +++ b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceGrpc.java @@ -26,9 +26,6 @@ * resources created using this service are global. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VpcFlowLogsServiceGrpc { @@ -289,6 +286,114 @@ private VpcFlowLogsServiceGrpc() {} return getDeleteVpcFlowLogsConfigMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse> + getQueryOrgVpcFlowLogsConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryOrgVpcFlowLogsConfigs", + requestType = com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest.class, + responseType = com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse> + getQueryOrgVpcFlowLogsConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse> + getQueryOrgVpcFlowLogsConfigsMethod; + if ((getQueryOrgVpcFlowLogsConfigsMethod = + VpcFlowLogsServiceGrpc.getQueryOrgVpcFlowLogsConfigsMethod) + == null) { + synchronized (VpcFlowLogsServiceGrpc.class) { + if ((getQueryOrgVpcFlowLogsConfigsMethod = + VpcFlowLogsServiceGrpc.getQueryOrgVpcFlowLogsConfigsMethod) + == null) { + VpcFlowLogsServiceGrpc.getQueryOrgVpcFlowLogsConfigsMethod = + getQueryOrgVpcFlowLogsConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryOrgVpcFlowLogsConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1 + .QueryOrgVpcFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1 + .QueryOrgVpcFlowLogsConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new VpcFlowLogsServiceMethodDescriptorSupplier( + "QueryOrgVpcFlowLogsConfigs")) + .build(); + } + } + } + return getQueryOrgVpcFlowLogsConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse> + getShowEffectiveFlowLogsConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ShowEffectiveFlowLogsConfigs", + requestType = com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest.class, + responseType = + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse> + getShowEffectiveFlowLogsConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse> + getShowEffectiveFlowLogsConfigsMethod; + if ((getShowEffectiveFlowLogsConfigsMethod = + VpcFlowLogsServiceGrpc.getShowEffectiveFlowLogsConfigsMethod) + == null) { + synchronized (VpcFlowLogsServiceGrpc.class) { + if ((getShowEffectiveFlowLogsConfigsMethod = + VpcFlowLogsServiceGrpc.getShowEffectiveFlowLogsConfigsMethod) + == null) { + VpcFlowLogsServiceGrpc.getShowEffectiveFlowLogsConfigsMethod = + getShowEffectiveFlowLogsConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ShowEffectiveFlowLogsConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1 + .ShowEffectiveFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1 + .ShowEffectiveFlowLogsConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new VpcFlowLogsServiceMethodDescriptorSupplier( + "ShowEffectiveFlowLogsConfigs")) + .build(); + } + } + } + return getShowEffectiveFlowLogsConfigsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static VpcFlowLogsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -393,8 +498,8 @@ default void getVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail - * 2. The following fields are not considered as `settings` for the purpose + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - creating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -420,8 +525,8 @@ default void createVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Updating a configuration with state=DISABLED will fail. - * 2. The following fields are not considered as `settings` for the purpose + * 1. Updating a configuration with `state=DISABLED` will fail. + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - updating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -452,6 +557,40 @@ default void deleteVpcFlowLogsConfig( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteVpcFlowLogsConfigMethod(), responseObserver); } + + /** + * + * + *
                                              +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
                                              +     * Flow Logs configurations applicable to the specified project.
                                              +     * 
                                              + */ + default void queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryOrgVpcFlowLogsConfigsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + default void showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getShowEffectiveFlowLogsConfigsMethod(), responseObserver); + } } /** @@ -536,8 +675,8 @@ public void getVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail - * 2. The following fields are not considered as `settings` for the purpose + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - creating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -565,8 +704,8 @@ public void createVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Updating a configuration with state=DISABLED will fail. - * 2. The following fields are not considered as `settings` for the purpose + * 1. Updating a configuration with `state=DISABLED` will fail. + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - updating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -601,6 +740,44 @@ public void deleteVpcFlowLogsConfig( request, responseObserver); } + + /** + * + * + *
                                              +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
                                              +     * Flow Logs configurations applicable to the specified project.
                                              +     * 
                                              + */ + public void queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + public void showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getShowEffectiveFlowLogsConfigsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -634,8 +811,9 @@ protected VpcFlowLogsServiceBlockingV2Stub build( */ public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse listVpcFlowLogsConfigs( - com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVpcFlowLogsConfigsMethod(), getCallOptions(), request); } @@ -647,8 +825,9 @@ protected VpcFlowLogsServiceBlockingV2Stub build( * */ public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -660,8 +839,8 @@ public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsCon * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail - * 2. The following fields are not considered as `settings` for the purpose + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - creating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -673,8 +852,9 @@ public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsCon * */ public com.google.longrunning.Operation createVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -686,8 +866,8 @@ public com.google.longrunning.Operation createVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Updating a configuration with state=DISABLED will fail. - * 2. The following fields are not considered as `settings` for the purpose + * 1. Updating a configuration with `state=DISABLED` will fail. + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - updating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -699,8 +879,9 @@ public com.google.longrunning.Operation createVpcFlowLogsConfig( * */ public com.google.longrunning.Operation updateVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -712,10 +893,43 @@ public com.google.longrunning.Operation updateVpcFlowLogsConfig( * */ public com.google.longrunning.Operation deleteVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
                                              +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
                                              +     * Flow Logs configurations applicable to the specified project.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getShowEffectiveFlowLogsConfigsMethod(), getCallOptions(), request); + } } /** @@ -775,8 +989,8 @@ public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsCon * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail - * 2. The following fields are not considered as `settings` for the purpose + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - creating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -801,8 +1015,8 @@ public com.google.longrunning.Operation createVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Updating a configuration with state=DISABLED will fail. - * 2. The following fields are not considered as `settings` for the purpose + * 1. Updating a configuration with `state=DISABLED` will fail. + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - updating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -831,6 +1045,36 @@ public com.google.longrunning.Operation deleteVpcFlowLogsConfig( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
                                              +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
                                              +     * Flow Logs configurations applicable to the specified project.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getShowEffectiveFlowLogsConfigsMethod(), getCallOptions(), request); + } } /** @@ -892,8 +1136,8 @@ protected VpcFlowLogsServiceFutureStub build( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail - * 2. The following fields are not considered as `settings` for the purpose + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - creating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -919,8 +1163,8 @@ protected VpcFlowLogsServiceFutureStub build( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Updating a configuration with state=DISABLED will fail. - * 2. The following fields are not considered as `settings` for the purpose + * 1. Updating a configuration with `state=DISABLED` will fail. + * 2. The following fields are not considered as settings for the purpose * of the check mentioned above, therefore - updating another configuration * with the same fields but different values for the following fields will * fail as well: @@ -951,6 +1195,38 @@ protected VpcFlowLogsServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteVpcFlowLogsConfigMethod(), getCallOptions()), request); } + + /** + * + * + *
                                              +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
                                              +     * Flow Logs configurations applicable to the specified project.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse> + queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getShowEffectiveFlowLogsConfigsMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_VPC_FLOW_LOGS_CONFIGS = 0; @@ -958,6 +1234,8 @@ protected VpcFlowLogsServiceFutureStub build( private static final int METHODID_CREATE_VPC_FLOW_LOGS_CONFIG = 2; private static final int METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG = 3; private static final int METHODID_DELETE_VPC_FLOW_LOGS_CONFIG = 4; + private static final int METHODID_QUERY_ORG_VPC_FLOW_LOGS_CONFIGS = 5; + private static final int METHODID_SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1004,6 +1282,20 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_QUERY_ORG_VPC_FLOW_LOGS_CONFIGS: + serviceImpl.queryOrgVpcFlowLogsConfigs( + (com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse>) + responseObserver); + break; + case METHODID_SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS: + serviceImpl.showEffectiveFlowLogsConfigs( + (com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -1057,6 +1349,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest, com.google.longrunning.Operation>( service, METHODID_DELETE_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getQueryOrgVpcFlowLogsConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse>( + service, METHODID_QUERY_ORG_VPC_FLOW_LOGS_CONFIGS))) + .addMethod( + getShowEffectiveFlowLogsConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse>( + service, METHODID_SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS))) .build(); } @@ -1113,6 +1419,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateVpcFlowLogsConfigMethod()) .addMethod(getUpdateVpcFlowLogsConfigMethod()) .addMethod(getDeleteVpcFlowLogsConfigMethod()) + .addMethod(getQueryOrgVpcFlowLogsConfigsMethod()) + .addMethod(getShowEffectiveFlowLogsConfigsMethod()) .build(); } } diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceGrpc.java index b031f32992d0..83e63584a5c9 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceGrpc.java +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceGrpc.java @@ -27,9 +27,6 @@ * global. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OrganizationVpcFlowLogsServiceGrpc { @@ -654,8 +651,9 @@ protected OrganizationVpcFlowLogsServiceBlockingV2Stub build( */ public com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse listVpcFlowLogsConfigs( - com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVpcFlowLogsConfigsMethod(), getCallOptions(), request); } @@ -667,8 +665,9 @@ protected OrganizationVpcFlowLogsServiceBlockingV2Stub build( * */ public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -693,8 +692,9 @@ public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLo * */ public com.google.longrunning.Operation createVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -719,8 +719,9 @@ public com.google.longrunning.Operation createVpcFlowLogsConfig( * */ public com.google.longrunning.Operation updateVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -732,8 +733,9 @@ public com.google.longrunning.Operation updateVpcFlowLogsConfig( * */ public com.google.longrunning.Operation deleteVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); } } diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceGrpc.java index 5637ed0fd8b5..6cbff0781638 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceGrpc.java +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceGrpc.java @@ -30,9 +30,6 @@ * to troubleshoot connectivity issues. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkmanagement/v1beta1/reachability.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReachabilityServiceGrpc { @@ -742,8 +739,9 @@ protected ReachabilityServiceBlockingV2Stub build( */ public com.google.cloud.networkmanagement.v1beta1.ListConnectivityTestsResponse listConnectivityTests( - com.google.cloud.networkmanagement.v1beta1.ListConnectivityTestsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.ListConnectivityTestsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectivityTestsMethod(), getCallOptions(), request); } @@ -755,8 +753,9 @@ protected ReachabilityServiceBlockingV2Stub build( * */ public com.google.cloud.networkmanagement.v1beta1.ConnectivityTest getConnectivityTest( - com.google.cloud.networkmanagement.v1beta1.GetConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.GetConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectivityTestMethod(), getCallOptions(), request); } @@ -778,8 +777,9 @@ public com.google.cloud.networkmanagement.v1beta1.ConnectivityTest getConnectivi * */ public com.google.longrunning.Operation createConnectivityTest( - com.google.cloud.networkmanagement.v1beta1.CreateConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.CreateConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectivityTestMethod(), getCallOptions(), request); } @@ -802,8 +802,9 @@ public com.google.longrunning.Operation createConnectivityTest( * */ public com.google.longrunning.Operation updateConnectivityTest( - com.google.cloud.networkmanagement.v1beta1.UpdateConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.UpdateConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConnectivityTestMethod(), getCallOptions(), request); } @@ -824,8 +825,9 @@ public com.google.longrunning.Operation updateConnectivityTest( * */ public com.google.longrunning.Operation rerunConnectivityTest( - com.google.cloud.networkmanagement.v1beta1.RerunConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.RerunConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRerunConnectivityTestMethod(), getCallOptions(), request); } @@ -837,8 +839,9 @@ public com.google.longrunning.Operation rerunConnectivityTest( * */ public com.google.longrunning.Operation deleteConnectivityTest( - com.google.cloud.networkmanagement.v1beta1.DeleteConnectivityTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.DeleteConnectivityTestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectivityTestMethod(), getCallOptions(), request); } } diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceGrpc.java index 47b9f2d68862..d3a201883982 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceGrpc.java +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceGrpc.java @@ -26,9 +26,6 @@ * resources created using this service are global. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VpcFlowLogsServiceGrpc { @@ -347,6 +344,63 @@ private VpcFlowLogsServiceGrpc() {} return getQueryOrgVpcFlowLogsConfigsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse> + getShowEffectiveFlowLogsConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ShowEffectiveFlowLogsConfigs", + requestType = + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest.class, + responseType = + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse> + getShowEffectiveFlowLogsConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse> + getShowEffectiveFlowLogsConfigsMethod; + if ((getShowEffectiveFlowLogsConfigsMethod = + VpcFlowLogsServiceGrpc.getShowEffectiveFlowLogsConfigsMethod) + == null) { + synchronized (VpcFlowLogsServiceGrpc.class) { + if ((getShowEffectiveFlowLogsConfigsMethod = + VpcFlowLogsServiceGrpc.getShowEffectiveFlowLogsConfigsMethod) + == null) { + VpcFlowLogsServiceGrpc.getShowEffectiveFlowLogsConfigsMethod = + getShowEffectiveFlowLogsConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ShowEffectiveFlowLogsConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1 + .ShowEffectiveFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1 + .ShowEffectiveFlowLogsConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new VpcFlowLogsServiceMethodDescriptorSupplier( + "ShowEffectiveFlowLogsConfigs")) + .build(); + } + } + } + return getShowEffectiveFlowLogsConfigsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static VpcFlowLogsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -527,6 +581,23 @@ default void queryOrgVpcFlowLogsConfigs( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getQueryOrgVpcFlowLogsConfigsMethod(), responseObserver); } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + default void showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getShowEffectiveFlowLogsConfigsMethod(), responseObserver); + } } /** @@ -695,6 +766,25 @@ public void queryOrgVpcFlowLogsConfigs( request, responseObserver); } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + public void showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getShowEffectiveFlowLogsConfigsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -728,8 +818,9 @@ protected VpcFlowLogsServiceBlockingV2Stub build( */ public com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse listVpcFlowLogsConfigs( - com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVpcFlowLogsConfigsMethod(), getCallOptions(), request); } @@ -741,8 +832,9 @@ protected VpcFlowLogsServiceBlockingV2Stub build( * */ public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -767,8 +859,9 @@ public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLo * */ public com.google.longrunning.Operation createVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -793,8 +886,9 @@ public com.google.longrunning.Operation createVpcFlowLogsConfig( * */ public com.google.longrunning.Operation updateVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -806,8 +900,9 @@ public com.google.longrunning.Operation updateVpcFlowLogsConfig( * */ public com.google.longrunning.Operation deleteVpcFlowLogsConfig( - com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); } @@ -821,10 +916,27 @@ public com.google.longrunning.Operation deleteVpcFlowLogsConfig( */ public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse queryOrgVpcFlowLogsConfigs( - com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions(), request); } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getShowEffectiveFlowLogsConfigsMethod(), getCallOptions(), request); + } } /** @@ -955,6 +1067,22 @@ public com.google.longrunning.Operation deleteVpcFlowLogsConfig( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions(), request); } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + public com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getShowEffectiveFlowLogsConfigsMethod(), getCallOptions(), request); + } } /** @@ -1091,6 +1219,23 @@ protected VpcFlowLogsServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions()), request); } + + /** + * + * + *
                                              +     * ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
                                              +     * configurations applicable to a specified resource.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse> + showEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getShowEffectiveFlowLogsConfigsMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_VPC_FLOW_LOGS_CONFIGS = 0; @@ -1099,6 +1244,7 @@ protected VpcFlowLogsServiceFutureStub build( private static final int METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG = 3; private static final int METHODID_DELETE_VPC_FLOW_LOGS_CONFIG = 4; private static final int METHODID_QUERY_ORG_VPC_FLOW_LOGS_CONFIGS = 5; + private static final int METHODID_SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1155,6 +1301,15 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv .QueryOrgVpcFlowLogsConfigsResponse>) responseObserver); break; + case METHODID_SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS: + serviceImpl.showEffectiveFlowLogsConfigs( + (com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1 + .ShowEffectiveFlowLogsConfigsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -1215,6 +1370,14 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest, com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse>( service, METHODID_QUERY_ORG_VPC_FLOW_LOGS_CONFIGS))) + .addMethod( + getShowEffectiveFlowLogsConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1 + .ShowEffectiveFlowLogsConfigsResponse>( + service, METHODID_SHOW_EFFECTIVE_FLOW_LOGS_CONFIGS))) .build(); } @@ -1272,6 +1435,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateVpcFlowLogsConfigMethod()) .addMethod(getDeleteVpcFlowLogsConfigMethod()) .addMethod(getQueryOrgVpcFlowLogsConfigsMethod()) + .addMethod(getShowEffectiveFlowLogsConfigsMethod()) .build(); } } diff --git a/java-network-management/owlbot.py b/java-network-management/owlbot.py index 091a382f7e60..b8137084afac 100644 --- a/java-network-management/owlbot.py +++ b/java-network-management/owlbot.py @@ -20,6 +20,7 @@ v1beta1_vpcflowlogs_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java" v1_vpcflowlogs_file_name = "owl-bot-staging/v1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java" v1beta1_org_vpcflowlogs_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java" +v1_org_vpcflowlogs_file_name = "owl-bot-staging/v1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java" for library in s.get_staging_dirs(): # put any special-case replacements here @@ -158,6 +159,26 @@ r'\s+@Test\n\s+public void listVpcFlowLogsConfigsTest\(\) throws Exception.*', '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void listVpcFlowLogsConfigsTest() throws Exception {' ) + s.replace( + v1_org_vpcflowlogs_file_name, + r'^import org.junit.Test;', + 'import org.junit.Ignore;\nimport org.junit.Test;' + ) + s.replace( + v1_org_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest() throws Exception {' + ) + s.replace( + v1_org_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest2\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest2() throws Exception {' + ) + s.replace( + v1_org_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void listVpcFlowLogsConfigsTest\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void listVpcFlowLogsConfigsTest() throws Exception {' + ) s.move(library) s.remove_staging_dirs() diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AbortInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AbortInfo.java index 3bc7f45f60aa..80ed19dceb39 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AbortInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/AbortInfo.java @@ -395,13 +395,24 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Aborted because a PSC endpoint selection for the Google-managed service
                                              +     * Aborted because PSC endpoint selection for the Google-managed service
                                                    * is ambiguous (several PSC endpoints satisfy test input).
                                                    * 
                                              * * GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19; */ GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT(19), + /** + * + * + *
                                              +     * Aborted because endpoint selection for the Google-managed service is
                                              +     * ambiguous (several endpoints satisfy test input).
                                              +     * 
                                              + * + * GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; + */ + GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT(39), /** * * @@ -488,6 +499,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * NO_SERVERLESS_IP_RANGES = 37; */ NO_SERVERLESS_IP_RANGES(37), + /** + * + * + *
                                              +     * Aborted because the used protocol is not supported for the used IP
                                              +     * version.
                                              +     * 
                                              + * + * IP_VERSION_PROTOCOL_MISMATCH = 40; + */ + IP_VERSION_PROTOCOL_MISMATCH(40), UNRECOGNIZED(-1), ; @@ -829,7 +851,7 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Aborted because a PSC endpoint selection for the Google-managed service
                                              +     * Aborted because PSC endpoint selection for the Google-managed service
                                                    * is ambiguous (several PSC endpoints satisfy test input).
                                                    * 
                                              * @@ -837,6 +859,18 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT_VALUE = 19; + /** + * + * + *
                                              +     * Aborted because endpoint selection for the Google-managed service is
                                              +     * ambiguous (several endpoints satisfy test input).
                                              +     * 
                                              + * + * GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; + */ + public static final int GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT_VALUE = 39; + /** * * @@ -931,6 +965,18 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_SERVERLESS_IP_RANGES_VALUE = 37; + /** + * + * + *
                                              +     * Aborted because the used protocol is not supported for the used IP
                                              +     * version.
                                              +     * 
                                              + * + * IP_VERSION_PROTOCOL_MISMATCH = 40; + */ + public static final int IP_VERSION_PROTOCOL_MISMATCH_VALUE = 40; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1013,6 +1059,8 @@ public static Cause forNumber(int value) { return ROUTE_CONFIG_NOT_FOUND; case 19: return GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT; + case 39: + return GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT; case 20: return SOURCE_PSC_CLOUD_SQL_UNSUPPORTED; case 34: @@ -1029,6 +1077,8 @@ public static Cause forNumber(int value) { return UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG; case 37: return NO_SERVERLESS_IP_RANGES; + case 40: + return IP_VERSION_PROTOCOL_MISMATCH; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequest.java index 95e43fb319dd..d8b5767e2460 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequest.java @@ -76,8 +76,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                              -   * Required. The parent resource of the VPC Flow Logs configuration to create:
                                              -   *     `projects/{project_id}/locations/global`
                                              +   * Required. The parent resource of the VpcFlowLogsConfig to create,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resources: `projects/{project_id}/locations/global`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global`
                                                  * 
                                              * * @@ -103,8 +108,13 @@ public java.lang.String getParent() { * * *
                                              -   * Required. The parent resource of the VPC Flow Logs configuration to create:
                                              -   *     `projects/{project_id}/locations/global`
                                              +   * Required. The parent resource of the VpcFlowLogsConfig to create,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resources: `projects/{project_id}/locations/global`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global`
                                                  * 
                                              * * @@ -672,8 +682,13 @@ public Builder mergeFrom( * * *
                                              -     * Required. The parent resource of the VPC Flow Logs configuration to create:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig to create,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * @@ -698,8 +713,13 @@ public java.lang.String getParent() { * * *
                                              -     * Required. The parent resource of the VPC Flow Logs configuration to create:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig to create,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * @@ -724,8 +744,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                              -     * Required. The parent resource of the VPC Flow Logs configuration to create:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig to create,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * @@ -749,8 +774,13 @@ public Builder setParent(java.lang.String value) { * * *
                                              -     * Required. The parent resource of the VPC Flow Logs configuration to create:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig to create,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * @@ -770,8 +800,13 @@ public Builder clearParent() { * * *
                                              -     * Required. The parent resource of the VPC Flow Logs configuration to create:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig to create,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequestOrBuilder.java index b2a8e2867b76..e0f8ebbc931f 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequestOrBuilder.java @@ -28,8 +28,13 @@ public interface CreateVpcFlowLogsConfigRequestOrBuilder * * *
                                              -   * Required. The parent resource of the VPC Flow Logs configuration to create:
                                              -   *     `projects/{project_id}/locations/global`
                                              +   * Required. The parent resource of the VpcFlowLogsConfig to create,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resources: `projects/{project_id}/locations/global`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global`
                                                  * 
                                              * * @@ -44,8 +49,13 @@ public interface CreateVpcFlowLogsConfigRequestOrBuilder * * *
                                              -   * Required. The parent resource of the VPC Flow Logs configuration to create:
                                              -   *     `projects/{project_id}/locations/global`
                                              +   * Required. The parent resource of the VpcFlowLogsConfig to create,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resources: `projects/{project_id}/locations/global`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global`
                                                  * 
                                              * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequest.java index 36972f0954e5..1bf8c94bff76 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequest.java @@ -74,8 +74,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                              -   * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +   * Required. The resource name of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For a project-level resource:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For an organization-level resource:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * @@ -101,8 +107,14 @@ public java.lang.String getName() { * * *
                                              -   * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +   * Required. The resource name of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For a project-level resource:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For an organization-level resource:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * @@ -482,8 +494,14 @@ public Builder mergeFrom( * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For a project-level resource:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For an organization-level resource:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * @@ -508,8 +526,14 @@ public java.lang.String getName() { * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For a project-level resource:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For an organization-level resource:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * @@ -534,8 +558,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For a project-level resource:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For an organization-level resource:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * @@ -559,8 +589,14 @@ public Builder setName(java.lang.String value) { * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For a project-level resource:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For an organization-level resource:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * @@ -580,8 +616,14 @@ public Builder clearName() { * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For a project-level resource:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For an organization-level resource:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequestOrBuilder.java index d1ab0d293fdd..a7f5d94042dd 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequestOrBuilder.java @@ -28,8 +28,14 @@ public interface DeleteVpcFlowLogsConfigRequestOrBuilder * * *
                                              -   * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +   * Required. The resource name of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For a project-level resource:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For an organization-level resource:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * @@ -44,8 +50,14 @@ public interface DeleteVpcFlowLogsConfigRequestOrBuilder * * *
                                              -   * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +   * Required. The resource name of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For a project-level resource:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For an organization-level resource:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java index 5393def718be..62d262d1f44c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java @@ -45,6 +45,7 @@ private DeliverInfo() { ipAddress_ = ""; storageBucket_ = ""; pscGoogleApiTarget_ = ""; + googleServiceType_ = 0; } @java.lang.Override @@ -580,6 +581,259 @@ private Target(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.DeliverInfo.Target) } + /** + * + * + *
                                              +   * Recognized type of a Google Service.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType} + */ + public enum GoogleServiceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Unspecified Google Service.
                                              +     * 
                                              + * + * GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + */ + GOOGLE_SERVICE_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Identity aware proxy.
                                              +     * https://cloud.google.com/iap/docs/using-tcp-forwarding
                                              +     * 
                                              + * + * IAP = 1; + */ + IAP(1), + /** + * + * + *
                                              +     * One of two services sharing IP ranges:
                                              +     * * Load Balancer proxy
                                              +     * * Centralized Health Check prober
                                              +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                              +     * 
                                              + * + * GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + */ + GFE_PROXY_OR_HEALTH_CHECK_PROBER(2), + /** + * + * + *
                                              +     * Connectivity from Cloud DNS to forwarding targets or alternate name
                                              +     * servers that use private routing.
                                              +     * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules
                                              +     * https://cloud.google.com/dns/docs/policies#firewall-rules
                                              +     * 
                                              + * + * CLOUD_DNS = 3; + */ + CLOUD_DNS(3), + /** + * + * + *
                                              +     * private.googleapis.com and restricted.googleapis.com
                                              +     * 
                                              + * + * PRIVATE_GOOGLE_ACCESS = 4; + */ + PRIVATE_GOOGLE_ACCESS(4), + /** + * + * + *
                                              +     * Google API via Private Service Connect.
                                              +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-apis
                                              +     * Google API via Serverless VPC Access.
                                              +     * https://cloud.google.com/vpc/docs/serverless-vpc-access
                                              +     * 
                                              + * + * SERVERLESS_VPC_ACCESS = 5; + */ + SERVERLESS_VPC_ACCESS(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Unspecified Google Service.
                                              +     * 
                                              + * + * GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + */ + public static final int GOOGLE_SERVICE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Identity aware proxy.
                                              +     * https://cloud.google.com/iap/docs/using-tcp-forwarding
                                              +     * 
                                              + * + * IAP = 1; + */ + public static final int IAP_VALUE = 1; + + /** + * + * + *
                                              +     * One of two services sharing IP ranges:
                                              +     * * Load Balancer proxy
                                              +     * * Centralized Health Check prober
                                              +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                              +     * 
                                              + * + * GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + */ + public static final int GFE_PROXY_OR_HEALTH_CHECK_PROBER_VALUE = 2; + + /** + * + * + *
                                              +     * Connectivity from Cloud DNS to forwarding targets or alternate name
                                              +     * servers that use private routing.
                                              +     * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules
                                              +     * https://cloud.google.com/dns/docs/policies#firewall-rules
                                              +     * 
                                              + * + * CLOUD_DNS = 3; + */ + public static final int CLOUD_DNS_VALUE = 3; + + /** + * + * + *
                                              +     * private.googleapis.com and restricted.googleapis.com
                                              +     * 
                                              + * + * PRIVATE_GOOGLE_ACCESS = 4; + */ + public static final int PRIVATE_GOOGLE_ACCESS_VALUE = 4; + + /** + * + * + *
                                              +     * Google API via Private Service Connect.
                                              +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-apis
                                              +     * Google API via Serverless VPC Access.
                                              +     * https://cloud.google.com/vpc/docs/serverless-vpc-access
                                              +     * 
                                              + * + * SERVERLESS_VPC_ACCESS = 5; + */ + public static final int SERVERLESS_VPC_ACCESS_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 GoogleServiceType 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 GoogleServiceType forNumber(int value) { + switch (value) { + case 0: + return GOOGLE_SERVICE_TYPE_UNSPECIFIED; + case 1: + return IAP; + case 2: + return GFE_PROXY_OR_HEALTH_CHECK_PROBER; + case 3: + return CLOUD_DNS; + case 4: + return PRIVATE_GOOGLE_ACCESS; + case 5: + return SERVERLESS_VPC_ACCESS; + 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 GoogleServiceType findValueByNumber(int number) { + return GoogleServiceType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.DeliverInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final GoogleServiceType[] VALUES = values(); + + public static GoogleServiceType 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 GoogleServiceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType) + } + public static final int TARGET_FIELD_NUMBER = 1; private int target_ = 0; @@ -833,6 +1087,51 @@ public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { } } + public static final int GOOGLE_SERVICE_TYPE_FIELD_NUMBER = 6; + private int googleServiceType_ = 0; + + /** + * + * + *
                                              +   * Recognized type of a Google Service the packet is delivered to (if
                                              +   * applicable).
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The enum numeric value on the wire for googleServiceType. + */ + @java.lang.Override + public int getGoogleServiceTypeValue() { + return googleServiceType_; + } + + /** + * + * + *
                                              +   * Recognized type of a Google Service the packet is delivered to (if
                                              +   * applicable).
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The googleServiceType. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType + getGoogleServiceType() { + com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType result = + com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType.forNumber( + googleServiceType_); + return result == null + ? com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -864,6 +1163,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pscGoogleApiTarget_); } + if (googleServiceType_ + != com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType + .GOOGLE_SERVICE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, googleServiceType_); + } getUnknownFields().writeTo(output); } @@ -890,6 +1195,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pscGoogleApiTarget_); } + if (googleServiceType_ + != com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType + .GOOGLE_SERVICE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, googleServiceType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -911,6 +1222,7 @@ public boolean equals(final java.lang.Object obj) { if (!getIpAddress().equals(other.getIpAddress())) return false; if (!getStorageBucket().equals(other.getStorageBucket())) return false; if (!getPscGoogleApiTarget().equals(other.getPscGoogleApiTarget())) return false; + if (googleServiceType_ != other.googleServiceType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -932,6 +1244,8 @@ public int hashCode() { hash = (53 * hash) + getStorageBucket().hashCode(); hash = (37 * hash) + PSC_GOOGLE_API_TARGET_FIELD_NUMBER; hash = (53 * hash) + getPscGoogleApiTarget().hashCode(); + hash = (37 * hash) + GOOGLE_SERVICE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + googleServiceType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1077,6 +1391,7 @@ public Builder clear() { ipAddress_ = ""; storageBucket_ = ""; pscGoogleApiTarget_ = ""; + googleServiceType_ = 0; return this; } @@ -1128,6 +1443,9 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.DeliverInfo res if (((from_bitField0_ & 0x00000010) != 0)) { result.pscGoogleApiTarget_ = pscGoogleApiTarget_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.googleServiceType_ = googleServiceType_; + } } @java.lang.Override @@ -1199,6 +1517,9 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.DeliverInfo other bitField0_ |= 0x00000010; onChanged(); } + if (other.googleServiceType_ != 0) { + setGoogleServiceTypeValue(other.getGoogleServiceTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1255,6 +1576,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + googleServiceType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1820,6 +2147,121 @@ public Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value) return this; } + private int googleServiceType_ = 0; + + /** + * + * + *
                                              +     * Recognized type of a Google Service the packet is delivered to (if
                                              +     * applicable).
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The enum numeric value on the wire for googleServiceType. + */ + @java.lang.Override + public int getGoogleServiceTypeValue() { + return googleServiceType_; + } + + /** + * + * + *
                                              +     * Recognized type of a Google Service the packet is delivered to (if
                                              +     * applicable).
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @param value The enum numeric value on the wire for googleServiceType to set. + * @return This builder for chaining. + */ + public Builder setGoogleServiceTypeValue(int value) { + googleServiceType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Recognized type of a Google Service the packet is delivered to (if
                                              +     * applicable).
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The googleServiceType. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType + getGoogleServiceType() { + com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType result = + com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType.forNumber( + googleServiceType_); + return result == null + ? com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Recognized type of a Google Service the packet is delivered to (if
                                              +     * applicable).
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @param value The googleServiceType to set. + * @return This builder for chaining. + */ + public Builder setGoogleServiceType( + com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + googleServiceType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Recognized type of a Google Service the packet is delivered to (if
                                              +     * applicable).
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearGoogleServiceType() { + bitField0_ = (bitField0_ & ~0x00000020); + googleServiceType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java index e799242d4b6f..9ab0ec38967a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfoOrBuilder.java @@ -155,4 +155,34 @@ public interface DeliverInfoOrBuilder * @return The bytes for pscGoogleApiTarget. */ com.google.protobuf.ByteString getPscGoogleApiTargetBytes(); + + /** + * + * + *
                                              +   * Recognized type of a Google Service the packet is delivered to (if
                                              +   * applicable).
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The enum numeric value on the wire for googleServiceType. + */ + int getGoogleServiceTypeValue(); + + /** + * + * + *
                                              +   * Recognized type of a Google Service the packet is delivered to (if
                                              +   * applicable).
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The googleServiceType. + */ + com.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType getGoogleServiceType(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java index 5058c60a9ca1..c8a033b1ebe1 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java @@ -45,6 +45,8 @@ private DropInfo() { sourceIp_ = ""; destinationIp_ = ""; region_ = ""; + sourceGeolocationCode_ = ""; + destinationGeolocationCode_ = ""; } @java.lang.Override @@ -230,12 +232,24 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Packet is sent from the Internet to the private IPv6 address.
                                              +     * Packet is sent from the Internet or Google service to the private IPv6
                                              +     * address.
                                                    * 
                                              * * NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; */ NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS(44), + /** + * + * + *
                                              +     * Packet is sent from the external IPv6 source address of an instance to
                                              +     * the private IPv6 address of an instance.
                                              +     * 
                                              + * + * NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; + */ + NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS(98), /** * * @@ -270,8 +284,9 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Instance with only an internal IP address tries to access Google API and
                                              -     * services, but private Google access is not enabled in the subnet.
                                              +     * Endpoint with only an internal IP address tries to access Google API and
                                              +     * services, but Private Google Access is not enabled in the subnet or is
                                              +     * not applicable.
                                                    * 
                                              * * PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; @@ -293,9 +308,8 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Instance with only an internal IP address tries to access external hosts,
                                              -     * but Cloud NAT is not enabled in the subnet, unless special configurations
                                              -     * on a VM allow this connection.
                                              +     * Endpoint with only an internal IP address tries to access external hosts,
                                              +     * but there is no matching Cloud NAT gateway in the subnet.
                                                    * 
                                              * * NO_EXTERNAL_ADDRESS = 9; @@ -1043,6 +1057,117 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION = 88; */ UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION(88), + /** + * + * + *
                                              +     * Packet could be dropped because hybrid endpoint like a VPN gateway or
                                              +     * Interconnect is not allowed to send traffic to the Internet.
                                              +     * 
                                              + * + * TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; + */ + TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED(89), + /** + * + * + *
                                              +     * Packet with destination IP address within the reserved NAT64 range is
                                              +     * dropped due to no matching NAT gateway in the subnet.
                                              +     * 
                                              + * + * NO_MATCHING_NAT64_GATEWAY = 90; + */ + NO_MATCHING_NAT64_GATEWAY(90), + /** + * + * + *
                                              +     * Packet is dropped due to being sent to a backend of a passthrough load
                                              +     * balancer that doesn't use the same IP version as the frontend.
                                              +     * 
                                              + * + * LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; + */ + LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH(96), + /** + * + * + *
                                              +     * Packet from the unknown NCC network is dropped due to no known route
                                              +     * from the source network to the destination IP address.
                                              +     * 
                                              + * + * NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; + */ + NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION(97), + /** + * + * + *
                                              +     * Packet is dropped by Cloud NAT due to using an unsupported protocol.
                                              +     * 
                                              + * + * CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; + */ + CLOUD_NAT_PROTOCOL_UNSUPPORTED(99), + /** + * + * + *
                                              +     * Packet is dropped due to using an unsupported protocol (any other than
                                              +     * UDP) for L2 Interconnect.
                                              +     * 
                                              + * + * L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; + */ + L2_INTERCONNECT_UNSUPPORTED_PROTOCOL(100), + /** + * + * + *
                                              +     * Packet is dropped due to using an unsupported port (any other than
                                              +     * 6081) for L2 Interconnect.
                                              +     * 
                                              + * + * L2_INTERCONNECT_UNSUPPORTED_PORT = 101; + */ + L2_INTERCONNECT_UNSUPPORTED_PORT(101), + /** + * + * + *
                                              +     * Packet is dropped due to destination IP not matching the appliance
                                              +     * mapping IPs configured on the L2 Interconnect attachment.
                                              +     * 
                                              + * + * L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; + */ + L2_INTERCONNECT_DESTINATION_IP_MISMATCH(102), + /** + * + * + *
                                              +     * Packet could be dropped because it matches a route associated with an NCC
                                              +     * spoke in the hybrid subnet context, but such a configuration is not
                                              +     * supported.
                                              +     * 
                                              + * + * NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; + */ + NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED(104), + /** + * + * + *
                                              +     * Packet is dropped because the region of the hybrid subnet is different
                                              +     * from the region of the next hop of the route matched within this hybrid
                                              +     * subnet.
                                              +     * 
                                              + * + * HYBRID_SUBNET_REGION_MISMATCH = 105; + */ + HYBRID_SUBNET_REGION_MISMATCH(105), UNRECOGNIZED(-1), ; @@ -1212,13 +1337,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Packet is sent from the Internet to the private IPv6 address.
                                              +     * Packet is sent from the Internet or Google service to the private IPv6
                                              +     * address.
                                                    * 
                                              * * NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; */ public static final int NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS_VALUE = 44; + /** + * + * + *
                                              +     * Packet is sent from the external IPv6 source address of an instance to
                                              +     * the private IPv6 address of an instance.
                                              +     * 
                                              + * + * NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; + */ + public static final int NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS_VALUE = 98; + /** * * @@ -1256,8 +1394,9 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Instance with only an internal IP address tries to access Google API and
                                              -     * services, but private Google access is not enabled in the subnet.
                                              +     * Endpoint with only an internal IP address tries to access Google API and
                                              +     * services, but Private Google Access is not enabled in the subnet or is
                                              +     * not applicable.
                                                    * 
                                              * * PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; @@ -1281,9 +1420,8 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Instance with only an internal IP address tries to access external hosts,
                                              -     * but Cloud NAT is not enabled in the subnet, unless special configurations
                                              -     * on a VM allow this connection.
                                              +     * Endpoint with only an internal IP address tries to access external hosts,
                                              +     * but there is no matching Cloud NAT gateway in the subnet.
                                                    * 
                                              * * NO_EXTERNAL_ADDRESS = 9; @@ -2099,6 +2237,127 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION_VALUE = 88; + /** + * + * + *
                                              +     * Packet could be dropped because hybrid endpoint like a VPN gateway or
                                              +     * Interconnect is not allowed to send traffic to the Internet.
                                              +     * 
                                              + * + * TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; + */ + public static final int TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED_VALUE = 89; + + /** + * + * + *
                                              +     * Packet with destination IP address within the reserved NAT64 range is
                                              +     * dropped due to no matching NAT gateway in the subnet.
                                              +     * 
                                              + * + * NO_MATCHING_NAT64_GATEWAY = 90; + */ + public static final int NO_MATCHING_NAT64_GATEWAY_VALUE = 90; + + /** + * + * + *
                                              +     * Packet is dropped due to being sent to a backend of a passthrough load
                                              +     * balancer that doesn't use the same IP version as the frontend.
                                              +     * 
                                              + * + * LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; + */ + public static final int LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH_VALUE = 96; + + /** + * + * + *
                                              +     * Packet from the unknown NCC network is dropped due to no known route
                                              +     * from the source network to the destination IP address.
                                              +     * 
                                              + * + * NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; + */ + public static final int NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION_VALUE = 97; + + /** + * + * + *
                                              +     * Packet is dropped by Cloud NAT due to using an unsupported protocol.
                                              +     * 
                                              + * + * CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; + */ + public static final int CLOUD_NAT_PROTOCOL_UNSUPPORTED_VALUE = 99; + + /** + * + * + *
                                              +     * Packet is dropped due to using an unsupported protocol (any other than
                                              +     * UDP) for L2 Interconnect.
                                              +     * 
                                              + * + * L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; + */ + public static final int L2_INTERCONNECT_UNSUPPORTED_PROTOCOL_VALUE = 100; + + /** + * + * + *
                                              +     * Packet is dropped due to using an unsupported port (any other than
                                              +     * 6081) for L2 Interconnect.
                                              +     * 
                                              + * + * L2_INTERCONNECT_UNSUPPORTED_PORT = 101; + */ + public static final int L2_INTERCONNECT_UNSUPPORTED_PORT_VALUE = 101; + + /** + * + * + *
                                              +     * Packet is dropped due to destination IP not matching the appliance
                                              +     * mapping IPs configured on the L2 Interconnect attachment.
                                              +     * 
                                              + * + * L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; + */ + public static final int L2_INTERCONNECT_DESTINATION_IP_MISMATCH_VALUE = 102; + + /** + * + * + *
                                              +     * Packet could be dropped because it matches a route associated with an NCC
                                              +     * spoke in the hybrid subnet context, but such a configuration is not
                                              +     * supported.
                                              +     * 
                                              + * + * NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; + */ + public static final int NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED_VALUE = 104; + + /** + * + * + *
                                              +     * Packet is dropped because the region of the hybrid subnet is different
                                              +     * from the region of the next hop of the route matched within this hybrid
                                              +     * subnet.
                                              +     * 
                                              + * + * HYBRID_SUBNET_REGION_MISMATCH = 105; + */ + public static final int HYBRID_SUBNET_REGION_MISMATCH_VALUE = 105; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2153,6 +2412,8 @@ public static Cause forNumber(int value) { return ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID; case 44: return NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS; + case 98: + return NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS; case 45: return VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH; case 46: @@ -2299,6 +2560,26 @@ public static Cause forNumber(int value) { return PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED; case 88: return UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION; + case 89: + return TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED; + case 90: + return NO_MATCHING_NAT64_GATEWAY; + case 96: + return LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH; + case 97: + return NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION; + case 99: + return CLOUD_NAT_PROTOCOL_UNSUPPORTED; + case 100: + return L2_INTERCONNECT_UNSUPPORTED_PROTOCOL; + case 101: + return L2_INTERCONNECT_UNSUPPORTED_PORT; + case 102: + return L2_INTERCONNECT_DESTINATION_IP_MISMATCH; + case 104: + return NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED; + case 105: + return HYBRID_SUBNET_REGION_MISMATCH; default: return null; } @@ -2603,6 +2884,112 @@ public com.google.protobuf.ByteString getRegionBytes() { } } + public static final int SOURCE_GEOLOCATION_CODE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceGeolocationCode_ = ""; + + /** + * + * + *
                                              +   * Geolocation (region code) of the source IP address (if relevant).
                                              +   * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The sourceGeolocationCode. + */ + @java.lang.Override + public java.lang.String getSourceGeolocationCode() { + java.lang.Object ref = sourceGeolocationCode_; + 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(); + sourceGeolocationCode_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Geolocation (region code) of the source IP address (if relevant).
                                              +   * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The bytes for sourceGeolocationCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceGeolocationCodeBytes() { + java.lang.Object ref = sourceGeolocationCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGeolocationCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_GEOLOCATION_CODE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationGeolocationCode_ = ""; + + /** + * + * + *
                                              +   * Geolocation (region code) of the destination IP address (if relevant).
                                              +   * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The destinationGeolocationCode. + */ + @java.lang.Override + public java.lang.String getDestinationGeolocationCode() { + java.lang.Object ref = destinationGeolocationCode_; + 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(); + destinationGeolocationCode_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Geolocation (region code) of the destination IP address (if relevant).
                                              +   * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The bytes for destinationGeolocationCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationGeolocationCodeBytes() { + java.lang.Object ref = destinationGeolocationCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationGeolocationCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2633,6 +3020,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, region_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceGeolocationCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sourceGeolocationCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationGeolocationCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, destinationGeolocationCode_); + } getUnknownFields().writeTo(output); } @@ -2658,6 +3051,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceGeolocationCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sourceGeolocationCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationGeolocationCode_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(7, destinationGeolocationCode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2679,6 +3079,9 @@ public boolean equals(final java.lang.Object obj) { if (!getSourceIp().equals(other.getSourceIp())) return false; if (!getDestinationIp().equals(other.getDestinationIp())) return false; if (!getRegion().equals(other.getRegion())) return false; + if (!getSourceGeolocationCode().equals(other.getSourceGeolocationCode())) return false; + if (!getDestinationGeolocationCode().equals(other.getDestinationGeolocationCode())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2700,6 +3103,10 @@ public int hashCode() { hash = (53 * hash) + getDestinationIp().hashCode(); hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + SOURCE_GEOLOCATION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSourceGeolocationCode().hashCode(); + hash = (37 * hash) + DESTINATION_GEOLOCATION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getDestinationGeolocationCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2845,6 +3252,8 @@ public Builder clear() { sourceIp_ = ""; destinationIp_ = ""; region_ = ""; + sourceGeolocationCode_ = ""; + destinationGeolocationCode_ = ""; return this; } @@ -2896,6 +3305,12 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.DropInfo result if (((from_bitField0_ & 0x00000010) != 0)) { result.region_ = region_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sourceGeolocationCode_ = sourceGeolocationCode_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.destinationGeolocationCode_ = destinationGeolocationCode_; + } } @java.lang.Override @@ -2966,6 +3381,16 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.DropInfo other) { bitField0_ |= 0x00000010; onChanged(); } + if (!other.getSourceGeolocationCode().isEmpty()) { + sourceGeolocationCode_ = other.sourceGeolocationCode_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDestinationGeolocationCode().isEmpty()) { + destinationGeolocationCode_ = other.destinationGeolocationCode_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3022,6 +3447,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + sourceGeolocationCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + destinationGeolocationCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3582,6 +4019,228 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object sourceGeolocationCode_ = ""; + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The sourceGeolocationCode. + */ + public java.lang.String getSourceGeolocationCode() { + java.lang.Object ref = sourceGeolocationCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceGeolocationCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The bytes for sourceGeolocationCode. + */ + public com.google.protobuf.ByteString getSourceGeolocationCodeBytes() { + java.lang.Object ref = sourceGeolocationCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGeolocationCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @param value The sourceGeolocationCode to set. + * @return This builder for chaining. + */ + public Builder setSourceGeolocationCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceGeolocationCode_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @return This builder for chaining. + */ + public Builder clearSourceGeolocationCode() { + sourceGeolocationCode_ = getDefaultInstance().getSourceGeolocationCode(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @param value The bytes for sourceGeolocationCode to set. + * @return This builder for chaining. + */ + public Builder setSourceGeolocationCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceGeolocationCode_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object destinationGeolocationCode_ = ""; + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The destinationGeolocationCode. + */ + public java.lang.String getDestinationGeolocationCode() { + java.lang.Object ref = destinationGeolocationCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationGeolocationCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The bytes for destinationGeolocationCode. + */ + public com.google.protobuf.ByteString getDestinationGeolocationCodeBytes() { + java.lang.Object ref = destinationGeolocationCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationGeolocationCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @param value The destinationGeolocationCode to set. + * @return This builder for chaining. + */ + public Builder setDestinationGeolocationCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationGeolocationCode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return This builder for chaining. + */ + public Builder clearDestinationGeolocationCode() { + destinationGeolocationCode_ = getDefaultInstance().getDestinationGeolocationCode(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @param value The bytes for destinationGeolocationCode to set. + * @return This builder for chaining. + */ + public Builder setDestinationGeolocationCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationGeolocationCode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfoOrBuilder.java index 34e043890bf4..7642f45d2aeb 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfoOrBuilder.java @@ -153,4 +153,56 @@ public interface DropInfoOrBuilder * @return The bytes for region. */ com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
                                              +   * Geolocation (region code) of the source IP address (if relevant).
                                              +   * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The sourceGeolocationCode. + */ + java.lang.String getSourceGeolocationCode(); + + /** + * + * + *
                                              +   * Geolocation (region code) of the source IP address (if relevant).
                                              +   * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The bytes for sourceGeolocationCode. + */ + com.google.protobuf.ByteString getSourceGeolocationCodeBytes(); + + /** + * + * + *
                                              +   * Geolocation (region code) of the destination IP address (if relevant).
                                              +   * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The destinationGeolocationCode. + */ + java.lang.String getDestinationGeolocationCode(); + + /** + * + * + *
                                              +   * Geolocation (region code) of the destination IP address (if relevant).
                                              +   * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The bytes for destinationGeolocationCode. + */ + com.google.protobuf.ByteString getDestinationGeolocationCodeBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EffectiveVpcFlowLogsConfig.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EffectiveVpcFlowLogsConfig.java new file mode 100644 index 000000000000..e9236a85aaa0 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EffectiveVpcFlowLogsConfig.java @@ -0,0 +1,3877 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                              + * A configuration to generate a response for GetEffectiveVpcFlowLogsConfig
                                              + * request.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig} + */ +public final class EffectiveVpcFlowLogsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig) + EffectiveVpcFlowLogsConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EffectiveVpcFlowLogsConfig.newBuilder() to construct. + private EffectiveVpcFlowLogsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EffectiveVpcFlowLogsConfig() { + name_ = ""; + state_ = 0; + aggregationInterval_ = 0; + metadata_ = 0; + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + filterExpr_ = ""; + crossProjectMetadata_ = 0; + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EffectiveVpcFlowLogsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_EffectiveVpcFlowLogsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_EffectiveVpcFlowLogsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.class, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder.class); + } + + /** + * + * + *
                                              +   * The scope for this flow log configuration.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Scope is unspecified.
                                              +     * 
                                              + * + * SCOPE_UNSPECIFIED = 0; + */ + SCOPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Target resource is a subnet (Network Management API).
                                              +     * 
                                              + * + * SUBNET = 1; + */ + SUBNET(1), + /** + * + * + *
                                              +     * Target resource is a subnet, and the config originates from the Compute
                                              +     * API.
                                              +     * 
                                              + * + * COMPUTE_API_SUBNET = 2; + */ + COMPUTE_API_SUBNET(2), + /** + * + * + *
                                              +     * Target resource is a network.
                                              +     * 
                                              + * + * NETWORK = 3; + */ + NETWORK(3), + /** + * + * + *
                                              +     * Target resource is a VPN tunnel.
                                              +     * 
                                              + * + * VPN_TUNNEL = 4; + */ + VPN_TUNNEL(4), + /** + * + * + *
                                              +     * Target resource is an interconnect attachment.
                                              +     * 
                                              + * + * INTERCONNECT_ATTACHMENT = 5; + */ + INTERCONNECT_ATTACHMENT(5), + /** + * + * + *
                                              +     * Configuration applies to an entire organization.
                                              +     * 
                                              + * + * ORGANIZATION = 6; + */ + ORGANIZATION(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Scope is unspecified.
                                              +     * 
                                              + * + * SCOPE_UNSPECIFIED = 0; + */ + public static final int SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Target resource is a subnet (Network Management API).
                                              +     * 
                                              + * + * SUBNET = 1; + */ + public static final int SUBNET_VALUE = 1; + + /** + * + * + *
                                              +     * Target resource is a subnet, and the config originates from the Compute
                                              +     * API.
                                              +     * 
                                              + * + * COMPUTE_API_SUBNET = 2; + */ + public static final int COMPUTE_API_SUBNET_VALUE = 2; + + /** + * + * + *
                                              +     * Target resource is a network.
                                              +     * 
                                              + * + * NETWORK = 3; + */ + public static final int NETWORK_VALUE = 3; + + /** + * + * + *
                                              +     * Target resource is a VPN tunnel.
                                              +     * 
                                              + * + * VPN_TUNNEL = 4; + */ + public static final int VPN_TUNNEL_VALUE = 4; + + /** + * + * + *
                                              +     * Target resource is an interconnect attachment.
                                              +     * 
                                              + * + * INTERCONNECT_ATTACHMENT = 5; + */ + public static final int INTERCONNECT_ATTACHMENT_VALUE = 5; + + /** + * + * + *
                                              +     * Configuration applies to an entire organization.
                                              +     * 
                                              + * + * ORGANIZATION = 6; + */ + public static final int ORGANIZATION_VALUE = 6; + + 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 Scope 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 Scope forNumber(int value) { + switch (value) { + case 0: + return SCOPE_UNSPECIFIED; + case 1: + return SUBNET; + case 2: + return COMPUTE_API_SUBNET; + case 3: + return NETWORK; + case 4: + return VPN_TUNNEL; + case 5: + return INTERCONNECT_ATTACHMENT; + case 6: + return ORGANIZATION; + 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 Scope findValueByNumber(int number) { + return Scope.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope 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 Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope) + } + + private int bitField0_; + private int targetResourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetResource_; + + public enum TargetResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NETWORK(100), + SUBNET(101), + INTERCONNECT_ATTACHMENT(102), + VPN_TUNNEL(103), + TARGETRESOURCE_NOT_SET(0); + private final int value; + + private TargetResourceCase(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 TargetResourceCase valueOf(int value) { + return forNumber(value); + } + + public static TargetResourceCase forNumber(int value) { + switch (value) { + case 100: + return NETWORK; + case 101: + return SUBNET; + case 102: + return INTERCONNECT_ATTACHMENT; + case 103: + return VPN_TUNNEL; + case 0: + return TARGETRESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetResourceCase getTargetResourceCase() { + return TargetResourceCase.forNumber(targetResourceCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Unique name of the configuration. The name can have one of the following
                                              +   * forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For a Compute config, the name will be the path of the subnet:
                                              +   * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +   * 
                                              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
                                              +   * Unique name of the configuration. The name can have one of the following
                                              +   * forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For a Compute config, the name will be the path of the subnet:
                                              +   * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +   * 
                                              + * + * string name = 1; + * + * @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 STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State getState() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State.UNRECOGNIZED + : result; + } + + public static final int AGGREGATION_INTERVAL_FIELD_NUMBER = 4; + private int aggregationInterval_ = 0; + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return Whether the aggregationInterval field is set. + */ + @java.lang.Override + public boolean hasAggregationInterval() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + @java.lang.Override + public int getAggregationIntervalValue() { + return aggregationInterval_; + } + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The aggregationInterval. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval.forNumber( + aggregationInterval_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval.UNRECOGNIZED + : result; + } + + public static final int FLOW_SAMPLING_FIELD_NUMBER = 5; + private float flowSampling_ = 0F; + + /** + * + * + *
                                              +   * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +   * Logs where 1.0 means all collected logs are reported.
                                              +   * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +   * Flow Logs, use the state field instead.
                                              +   * Default value is 1.0.
                                              +   * 
                                              + * + * optional float flow_sampling = 5; + * + * @return Whether the flowSampling field is set. + */ + @java.lang.Override + public boolean hasFlowSampling() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +   * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +   * Logs where 1.0 means all collected logs are reported.
                                              +   * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +   * Flow Logs, use the state field instead.
                                              +   * Default value is 1.0.
                                              +   * 
                                              + * + * optional float flow_sampling = 5; + * + * @return The flowSampling. + */ + @java.lang.Override + public float getFlowSampling() { + return flowSampling_; + } + + public static final int METADATA_FIELD_NUMBER = 6; + private int metadata_ = 0; + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The enum numeric value on the wire for metadata. + */ + @java.lang.Override + public int getMetadataValue() { + return metadata_; + } + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata getMetadata() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata.forNumber(metadata_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata.UNRECOGNIZED + : result; + } + + public static final int METADATA_FIELDS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList metadataFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return A list containing the metadataFields. + */ + public com.google.protobuf.ProtocolStringList getMetadataFieldsList() { + return metadataFields_; + } + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return The count of metadataFields. + */ + public int getMetadataFieldsCount() { + return metadataFields_.size(); + } + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + public java.lang.String getMetadataFields(int index) { + return metadataFields_.get(index); + } + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) { + return metadataFields_.getByteString(index); + } + + public static final int FILTER_EXPR_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object filterExpr_ = ""; + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return Whether the filterExpr field is set. + */ + @java.lang.Override + public boolean hasFilterExpr() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return The filterExpr. + */ + @java.lang.Override + public java.lang.String getFilterExpr() { + java.lang.Object ref = filterExpr_; + 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(); + filterExpr_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return The bytes for filterExpr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterExprBytes() { + java.lang.Object ref = filterExpr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filterExpr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CROSS_PROJECT_METADATA_FIELD_NUMBER = 13; + private int crossProjectMetadata_ = 0; + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + @java.lang.Override + public boolean hasCrossProjectMetadata() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + @java.lang.Override + public int getCrossProjectMetadataValue() { + return crossProjectMetadata_; + } + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The crossProjectMetadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata.forNumber( + crossProjectMetadata_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata.UNRECOGNIZED + : result; + } + + public static final int NETWORK_FIELD_NUMBER = 100; + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return Whether the network field is set. + */ + public boolean hasNetwork() { + return targetResourceCase_ == 100; + } + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 100) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 100) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNET_FIELD_NUMBER = 101; + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + public boolean hasSubnet() { + return targetResourceCase_ == 101; + } + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The subnet. + */ + public java.lang.String getSubnet() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 101) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 101) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 102; + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + public boolean hasInterconnectAttachment() { + return targetResourceCase_ == 102; + } + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + public java.lang.String getInterconnectAttachment() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 102) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + public com.google.protobuf.ByteString getInterconnectAttachmentBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 102) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPN_TUNNEL_FIELD_NUMBER = 103; + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + public boolean hasVpnTunnel() { + return targetResourceCase_ == 103; + } + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + public java.lang.String getVpnTunnel() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 103) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + public com.google.protobuf.ByteString getVpnTunnelBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 103) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 12; + private int scope_ = 0; + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope getScope() { + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope result = + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(4, aggregationInterval_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeFloat(5, flowSampling_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(6, metadata_); + } + for (int i = 0; i < metadataFields_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, metadataFields_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, filterExpr_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(12, scope_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(13, crossProjectMetadata_); + } + if (targetResourceCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, targetResource_); + } + if (targetResourceCase_ == 101) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, targetResource_); + } + if (targetResourceCase_ == 102) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, targetResource_); + } + if (targetResourceCase_ == 103) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 103, targetResource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, aggregationInterval_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, flowSampling_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, metadata_); + } + { + int dataSize = 0; + for (int i = 0; i < metadataFields_.size(); i++) { + dataSize += computeStringSizeNoTag(metadataFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getMetadataFieldsList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filterExpr_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, scope_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, crossProjectMetadata_); + } + if (targetResourceCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, targetResource_); + } + if (targetResourceCase_ == 101) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, targetResource_); + } + if (targetResourceCase_ == 102) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, targetResource_); + } + if (targetResourceCase_ == 103) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, targetResource_); + } + 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.networkmanagement.v1.EffectiveVpcFlowLogsConfig)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig other = + (com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (state_ != other.state_) return false; + } + if (hasAggregationInterval() != other.hasAggregationInterval()) return false; + if (hasAggregationInterval()) { + if (aggregationInterval_ != other.aggregationInterval_) return false; + } + if (hasFlowSampling() != other.hasFlowSampling()) return false; + if (hasFlowSampling()) { + if (java.lang.Float.floatToIntBits(getFlowSampling()) + != java.lang.Float.floatToIntBits(other.getFlowSampling())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (metadata_ != other.metadata_) return false; + } + if (!getMetadataFieldsList().equals(other.getMetadataFieldsList())) return false; + if (hasFilterExpr() != other.hasFilterExpr()) return false; + if (hasFilterExpr()) { + if (!getFilterExpr().equals(other.getFilterExpr())) return false; + } + if (hasCrossProjectMetadata() != other.hasCrossProjectMetadata()) return false; + if (hasCrossProjectMetadata()) { + if (crossProjectMetadata_ != other.crossProjectMetadata_) return false; + } + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (scope_ != other.scope_) return false; + } + if (!getTargetResourceCase().equals(other.getTargetResourceCase())) return false; + switch (targetResourceCase_) { + case 100: + if (!getNetwork().equals(other.getNetwork())) return false; + break; + case 101: + if (!getSubnet().equals(other.getSubnet())) return false; + break; + case 102: + if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; + break; + case 103: + if (!getVpnTunnel().equals(other.getVpnTunnel())) 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 (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + } + if (hasAggregationInterval()) { + hash = (37 * hash) + AGGREGATION_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + aggregationInterval_; + } + if (hasFlowSampling()) { + hash = (37 * hash) + FLOW_SAMPLING_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFlowSampling()); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + metadata_; + } + if (getMetadataFieldsCount() > 0) { + hash = (37 * hash) + METADATA_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getMetadataFieldsList().hashCode(); + } + if (hasFilterExpr()) { + hash = (37 * hash) + FILTER_EXPR_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpr().hashCode(); + } + if (hasCrossProjectMetadata()) { + hash = (37 * hash) + CROSS_PROJECT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + crossProjectMetadata_; + } + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + } + switch (targetResourceCase_) { + case 100: + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + break; + case 101: + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + break; + case 102: + hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getInterconnectAttachment().hashCode(); + break; + case 103: + hash = (37 * hash) + VPN_TUNNEL_FIELD_NUMBER; + hash = (53 * hash) + getVpnTunnel().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig 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.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig 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.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * A configuration to generate a response for GetEffectiveVpcFlowLogsConfig
                                              +   * request.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig) + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_EffectiveVpcFlowLogsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_EffectiveVpcFlowLogsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.class, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + aggregationInterval_ = 0; + flowSampling_ = 0F; + metadata_ = 0; + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + filterExpr_ = ""; + crossProjectMetadata_ = 0; + scope_ = 0; + targetResourceCase_ = 0; + targetResource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_EffectiveVpcFlowLogsConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig build() { + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig buildPartial() { + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig result = + new com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aggregationInterval_ = aggregationInterval_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.flowSampling_ = flowSampling_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metadata_ = metadata_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + metadataFields_.makeImmutable(); + result.metadataFields_ = metadataFields_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.filterExpr_ = filterExpr_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.crossProjectMetadata_ = crossProjectMetadata_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.scope_ = scope_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig result) { + result.targetResourceCase_ = targetResourceCase_; + result.targetResource_ = this.targetResource_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig) { + return mergeFrom((com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig other) { + if (other + == com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasState()) { + setState(other.getState()); + } + if (other.hasAggregationInterval()) { + setAggregationInterval(other.getAggregationInterval()); + } + if (other.hasFlowSampling()) { + setFlowSampling(other.getFlowSampling()); + } + if (other.hasMetadata()) { + setMetadata(other.getMetadata()); + } + if (!other.metadataFields_.isEmpty()) { + if (metadataFields_.isEmpty()) { + metadataFields_ = other.metadataFields_; + bitField0_ |= 0x00000020; + } else { + ensureMetadataFieldsIsMutable(); + metadataFields_.addAll(other.metadataFields_); + } + onChanged(); + } + if (other.hasFilterExpr()) { + filterExpr_ = other.filterExpr_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCrossProjectMetadata()) { + setCrossProjectMetadata(other.getCrossProjectMetadata()); + } + if (other.hasScope()) { + setScope(other.getScope()); + } + switch (other.getTargetResourceCase()) { + case NETWORK: + { + targetResourceCase_ = 100; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case SUBNET: + { + targetResourceCase_ = 101; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case INTERCONNECT_ATTACHMENT: + { + targetResourceCase_ = 102; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case VPN_TUNNEL: + { + targetResourceCase_ = 103; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case TARGETRESOURCE_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_ |= 0x00000001; + break; + } // case 10 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + aggregationInterval_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 45: + { + flowSampling_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 45 + case 48: + { + metadata_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMetadataFieldsIsMutable(); + metadataFields_.add(s); + break; + } // case 58 + case 66: + { + filterExpr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 96: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 96 + case 104: + { + crossProjectMetadata_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 104 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 100; + targetResource_ = s; + break; + } // case 802 + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 101; + targetResource_ = s; + break; + } // case 810 + case 818: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 102; + targetResource_ = s; + break; + } // case 818 + case 826: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 103; + targetResource_ = s; + break; + } // case 826 + 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 targetResourceCase_ = 0; + private java.lang.Object targetResource_; + + public TargetResourceCase getTargetResourceCase() { + return TargetResourceCase.forNumber(targetResourceCase_); + } + + public Builder clearTargetResource() { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @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; + } + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @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 int state_ = 0; + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State getState() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private int aggregationInterval_ = 0; + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return Whether the aggregationInterval field is set. + */ + @java.lang.Override + public boolean hasAggregationInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + @java.lang.Override + public int getAggregationIntervalValue() { + return aggregationInterval_; + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @param value The enum numeric value on the wire for aggregationInterval to set. + * @return This builder for chaining. + */ + public Builder setAggregationIntervalValue(int value) { + aggregationInterval_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The aggregationInterval. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval.forNumber( + aggregationInterval_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @param value The aggregationInterval to set. + * @return This builder for chaining. + */ + public Builder setAggregationInterval( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + aggregationInterval_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearAggregationInterval() { + bitField0_ = (bitField0_ & ~0x00000004); + aggregationInterval_ = 0; + onChanged(); + return this; + } + + private float flowSampling_; + + /** + * + * + *
                                              +     * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +     * Logs where 1.0 means all collected logs are reported.
                                              +     * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +     * Flow Logs, use the state field instead.
                                              +     * Default value is 1.0.
                                              +     * 
                                              + * + * optional float flow_sampling = 5; + * + * @return Whether the flowSampling field is set. + */ + @java.lang.Override + public boolean hasFlowSampling() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +     * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +     * Logs where 1.0 means all collected logs are reported.
                                              +     * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +     * Flow Logs, use the state field instead.
                                              +     * Default value is 1.0.
                                              +     * 
                                              + * + * optional float flow_sampling = 5; + * + * @return The flowSampling. + */ + @java.lang.Override + public float getFlowSampling() { + return flowSampling_; + } + + /** + * + * + *
                                              +     * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +     * Logs where 1.0 means all collected logs are reported.
                                              +     * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +     * Flow Logs, use the state field instead.
                                              +     * Default value is 1.0.
                                              +     * 
                                              + * + * optional float flow_sampling = 5; + * + * @param value The flowSampling to set. + * @return This builder for chaining. + */ + public Builder setFlowSampling(float value) { + + flowSampling_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +     * Logs where 1.0 means all collected logs are reported.
                                              +     * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +     * Flow Logs, use the state field instead.
                                              +     * Default value is 1.0.
                                              +     * 
                                              + * + * optional float flow_sampling = 5; + * + * @return This builder for chaining. + */ + public Builder clearFlowSampling() { + bitField0_ = (bitField0_ & ~0x00000008); + flowSampling_ = 0F; + onChanged(); + return this; + } + + private int metadata_ = 0; + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The enum numeric value on the wire for metadata. + */ + @java.lang.Override + public int getMetadataValue() { + return metadata_; + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @param value The enum numeric value on the wire for metadata to set. + * @return This builder for chaining. + */ + public Builder setMetadataValue(int value) { + metadata_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata getMetadata() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata.forNumber(metadata_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @param value The metadata to set. + * @return This builder for chaining. + */ + public Builder setMetadata( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + metadata_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + metadata_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList metadataFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureMetadataFieldsIsMutable() { + if (!metadataFields_.isModifiable()) { + metadataFields_ = new com.google.protobuf.LazyStringArrayList(metadataFields_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return A list containing the metadataFields. + */ + public com.google.protobuf.ProtocolStringList getMetadataFieldsList() { + metadataFields_.makeImmutable(); + return metadataFields_; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return The count of metadataFields. + */ + public int getMetadataFieldsCount() { + return metadataFields_.size(); + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + public java.lang.String getMetadataFields(int index) { + return metadataFields_.get(index); + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) { + return metadataFields_.getByteString(index); + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index to set the value at. + * @param value The metadataFields to set. + * @return This builder for chaining. + */ + public Builder setMetadataFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataFieldsIsMutable(); + metadataFields_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param value The metadataFields to add. + * @return This builder for chaining. + */ + public Builder addMetadataFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataFieldsIsMutable(); + metadataFields_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param values The metadataFields to add. + * @return This builder for chaining. + */ + public Builder addAllMetadataFields(java.lang.Iterable values) { + ensureMetadataFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadataFields_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return This builder for chaining. + */ + public Builder clearMetadataFields() { + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param value The bytes of the metadataFields to add. + * @return This builder for chaining. + */ + public Builder addMetadataFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMetadataFieldsIsMutable(); + metadataFields_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object filterExpr_ = ""; + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @return Whether the filterExpr field is set. + */ + public boolean hasFilterExpr() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @return The filterExpr. + */ + public java.lang.String getFilterExpr() { + java.lang.Object ref = filterExpr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filterExpr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @return The bytes for filterExpr. + */ + public com.google.protobuf.ByteString getFilterExprBytes() { + java.lang.Object ref = filterExpr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filterExpr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @param value The filterExpr to set. + * @return This builder for chaining. + */ + public Builder setFilterExpr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filterExpr_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @return This builder for chaining. + */ + public Builder clearFilterExpr() { + filterExpr_ = getDefaultInstance().getFilterExpr(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @param value The bytes for filterExpr to set. + * @return This builder for chaining. + */ + public Builder setFilterExprBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filterExpr_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int crossProjectMetadata_ = 0; + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + @java.lang.Override + public boolean hasCrossProjectMetadata() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + @java.lang.Override + public int getCrossProjectMetadataValue() { + return crossProjectMetadata_; + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @param value The enum numeric value on the wire for crossProjectMetadata to set. + * @return This builder for chaining. + */ + public Builder setCrossProjectMetadataValue(int value) { + crossProjectMetadata_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The crossProjectMetadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata.forNumber( + crossProjectMetadata_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @param value The crossProjectMetadata to set. + * @return This builder for chaining. + */ + public Builder setCrossProjectMetadata( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + crossProjectMetadata_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return This builder for chaining. + */ + public Builder clearCrossProjectMetadata() { + bitField0_ = (bitField0_ & ~0x00000080); + crossProjectMetadata_ = 0; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return Whether the network field is set. + */ + @java.lang.Override + public boolean hasNetwork() { + return targetResourceCase_ == 100; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 100) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 100) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 100; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + if (targetResourceCase_ == 100) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 100; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + @java.lang.Override + public boolean hasSubnet() { + return targetResourceCase_ == 101; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return The subnet. + */ + @java.lang.Override + public java.lang.String getSubnet() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 101) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 101) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @param value The subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 101; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return This builder for chaining. + */ + public Builder clearSubnet() { + if (targetResourceCase_ == 101) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @param value The bytes for subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 101; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasInterconnectAttachment() { + return targetResourceCase_ == 102; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + @java.lang.Override + public java.lang.String getInterconnectAttachment() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 102) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterconnectAttachmentBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 102) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @param value The interconnectAttachment to set. + * @return This builder for chaining. + */ + public Builder setInterconnectAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 102; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @return This builder for chaining. + */ + public Builder clearInterconnectAttachment() { + if (targetResourceCase_ == 102) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @param value The bytes for interconnectAttachment to set. + * @return This builder for chaining. + */ + public Builder setInterconnectAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 102; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + @java.lang.Override + public boolean hasVpnTunnel() { + return targetResourceCase_ == 103; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + @java.lang.Override + public java.lang.String getVpnTunnel() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 103) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpnTunnelBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 103) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @param value The vpnTunnel to set. + * @return This builder for chaining. + */ + public Builder setVpnTunnel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 103; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @return This builder for chaining. + */ + public Builder clearVpnTunnel() { + if (targetResourceCase_ == 103) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @param value The bytes for vpnTunnel to set. + * @return This builder for chaining. + */ + public Builder setVpnTunnelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 103; + targetResource_ = value; + onChanged(); + return this; + } + + private int scope_ = 0; + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope getScope() { + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope result = + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + scope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00001000); + scope_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig) + private static final com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig(); + } + + public static com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EffectiveVpcFlowLogsConfig 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.networkmanagement.v1.EffectiveVpcFlowLogsConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EffectiveVpcFlowLogsConfigOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EffectiveVpcFlowLogsConfigOrBuilder.java new file mode 100644 index 000000000000..1ce34fc56d2b --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EffectiveVpcFlowLogsConfigOrBuilder.java @@ -0,0 +1,613 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +public interface EffectiveVpcFlowLogsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Unique name of the configuration. The name can have one of the following
                                              +   * forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For a Compute config, the name will be the path of the subnet:
                                              +   * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +   * 
                                              + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Unique name of the configuration. The name can have one of the following
                                              +   * forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For a Compute config, the name will be the path of the subnet:
                                              +   * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +   * 
                                              + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3; + * + * @return The state. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State getState(); + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return Whether the aggregationInterval field is set. + */ + boolean hasAggregationInterval(); + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + int getAggregationIntervalValue(); + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The aggregationInterval. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval(); + + /** + * + * + *
                                              +   * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +   * Logs where 1.0 means all collected logs are reported.
                                              +   * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +   * Flow Logs, use the state field instead.
                                              +   * Default value is 1.0.
                                              +   * 
                                              + * + * optional float flow_sampling = 5; + * + * @return Whether the flowSampling field is set. + */ + boolean hasFlowSampling(); + + /** + * + * + *
                                              +   * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +   * Logs where 1.0 means all collected logs are reported.
                                              +   * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +   * Flow Logs, use the state field instead.
                                              +   * Default value is 1.0.
                                              +   * 
                                              + * + * optional float flow_sampling = 5; + * + * @return The flowSampling. + */ + float getFlowSampling(); + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The enum numeric value on the wire for metadata. + */ + int getMetadataValue(); + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The metadata. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata getMetadata(); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return A list containing the metadataFields. + */ + java.util.List getMetadataFieldsList(); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return The count of metadataFields. + */ + int getMetadataFieldsCount(); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + java.lang.String getMetadataFields(int index); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + com.google.protobuf.ByteString getMetadataFieldsBytes(int index); + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return Whether the filterExpr field is set. + */ + boolean hasFilterExpr(); + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return The filterExpr. + */ + java.lang.String getFilterExpr(); + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return The bytes for filterExpr. + */ + com.google.protobuf.ByteString getFilterExprBytes(); + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + boolean hasCrossProjectMetadata(); + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + int getCrossProjectMetadataValue(); + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The crossProjectMetadata. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return Whether the network field is set. + */ + boolean hasNetwork(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + boolean hasSubnet(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The subnet. + */ + java.lang.String getSubnet(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + com.google.protobuf.ByteString getSubnetBytes(); + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + boolean hasInterconnectAttachment(); + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + java.lang.String getInterconnectAttachment(); + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + com.google.protobuf.ByteString getInterconnectAttachmentBytes(); + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + boolean hasVpnTunnel(); + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + java.lang.String getVpnTunnel(); + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + com.google.protobuf.ByteString getVpnTunnelBytes(); + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The scope. + */ + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Scope getScope(); + + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.TargetResourceCase + getTargetResourceCase(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java index 7eaa313aa435..e4d1b72e2768 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java @@ -1821,7 +1821,7 @@ public interface CloudRunRevisionEndpointOrBuilder * A [Cloud Run](https://cloud.google.com/run) * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * URI. The format is: - * `projects/{project}/locations/{location}/revisions/{revision}` + * projects/{project}/locations/{location}/revisions/{revision} * * * string uri = 1; @@ -1837,7 +1837,7 @@ public interface CloudRunRevisionEndpointOrBuilder * A [Cloud Run](https://cloud.google.com/run) * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * URI. The format is: - * `projects/{project}/locations/{location}/revisions/{revision}` + * projects/{project}/locations/{location}/revisions/{revision} * * * string uri = 1; @@ -1852,7 +1852,7 @@ public interface CloudRunRevisionEndpointOrBuilder *
                                                    * Output only. The URI of the Cloud Run service that the revision belongs
                                                    * to. The format is:
                                              -     * `projects/{project}/locations/{location}/services/{service}`
                                              +     * projects/{project}/locations/{location}/services/{service}
                                                    * 
                                              * * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1867,7 +1867,7 @@ public interface CloudRunRevisionEndpointOrBuilder *
                                                    * Output only. The URI of the Cloud Run service that the revision belongs
                                                    * to. The format is:
                                              -     * `projects/{project}/locations/{location}/services/{service}`
                                              +     * projects/{project}/locations/{location}/services/{service}
                                                    * 
                                              * * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1936,7 +1936,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * A [Cloud Run](https://cloud.google.com/run) * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * URI. The format is: - * `projects/{project}/locations/{location}/revisions/{revision}` + * projects/{project}/locations/{location}/revisions/{revision} * * * string uri = 1; @@ -1963,7 +1963,7 @@ public java.lang.String getUri() { * A [Cloud Run](https://cloud.google.com/run) * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * URI. The format is: - * `projects/{project}/locations/{location}/revisions/{revision}` + * projects/{project}/locations/{location}/revisions/{revision} * * * string uri = 1; @@ -1994,7 +1994,7 @@ public com.google.protobuf.ByteString getUriBytes() { *
                                                    * Output only. The URI of the Cloud Run service that the revision belongs
                                                    * to. The format is:
                                              -     * `projects/{project}/locations/{location}/services/{service}`
                                              +     * projects/{project}/locations/{location}/services/{service}
                                                    * 
                                              * * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2020,7 +2020,7 @@ public java.lang.String getServiceUri() { *
                                                    * Output only. The URI of the Cloud Run service that the revision belongs
                                                    * to. The format is:
                                              -     * `projects/{project}/locations/{location}/services/{service}`
                                              +     * projects/{project}/locations/{location}/services/{service}
                                                    * 
                                              * * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2434,7 +2434,7 @@ public Builder mergeFrom( * A [Cloud Run](https://cloud.google.com/run) * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * URI. The format is: - * `projects/{project}/locations/{location}/revisions/{revision}` + * projects/{project}/locations/{location}/revisions/{revision} * * * string uri = 1; @@ -2460,7 +2460,7 @@ public java.lang.String getUri() { * A [Cloud Run](https://cloud.google.com/run) * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * URI. The format is: - * `projects/{project}/locations/{location}/revisions/{revision}` + * projects/{project}/locations/{location}/revisions/{revision} * * * string uri = 1; @@ -2486,7 +2486,7 @@ public com.google.protobuf.ByteString getUriBytes() { * A [Cloud Run](https://cloud.google.com/run) * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * URI. The format is: - * `projects/{project}/locations/{location}/revisions/{revision}` + * projects/{project}/locations/{location}/revisions/{revision} * * * string uri = 1; @@ -2511,7 +2511,7 @@ public Builder setUri(java.lang.String value) { * A [Cloud Run](https://cloud.google.com/run) * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * URI. The format is: - * `projects/{project}/locations/{location}/revisions/{revision}` + * projects/{project}/locations/{location}/revisions/{revision} * * * string uri = 1; @@ -2532,7 +2532,7 @@ public Builder clearUri() { * A [Cloud Run](https://cloud.google.com/run) * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) * URI. The format is: - * `projects/{project}/locations/{location}/revisions/{revision}` + * projects/{project}/locations/{location}/revisions/{revision} * * * string uri = 1; @@ -2559,7 +2559,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { *
                                                      * Output only. The URI of the Cloud Run service that the revision belongs
                                                      * to. The format is:
                                              -       * `projects/{project}/locations/{location}/services/{service}`
                                              +       * projects/{project}/locations/{location}/services/{service}
                                                      * 
                                              * * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2584,7 +2584,7 @@ public java.lang.String getServiceUri() { *
                                                      * Output only. The URI of the Cloud Run service that the revision belongs
                                                      * to. The format is:
                                              -       * `projects/{project}/locations/{location}/services/{service}`
                                              +       * projects/{project}/locations/{location}/services/{service}
                                                      * 
                                              * * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2609,7 +2609,7 @@ public com.google.protobuf.ByteString getServiceUriBytes() { *
                                                      * Output only. The URI of the Cloud Run service that the revision belongs
                                                      * to. The format is:
                                              -       * `projects/{project}/locations/{location}/services/{service}`
                                              +       * projects/{project}/locations/{location}/services/{service}
                                                      * 
                                              * * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2633,7 +2633,7 @@ public Builder setServiceUri(java.lang.String value) { *
                                                      * Output only. The URI of the Cloud Run service that the revision belongs
                                                      * to. The format is:
                                              -       * `projects/{project}/locations/{location}/services/{service}`
                                              +       * projects/{project}/locations/{location}/services/{service}
                                                      * 
                                              * * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2653,7 +2653,7 @@ public Builder clearServiceUri() { *
                                                      * Output only. The URI of the Cloud Run service that the revision belongs
                                                      * to. The format is:
                                              -       * `projects/{project}/locations/{location}/services/{service}`
                                              +       * projects/{project}/locations/{location}/services/{service}
                                                      * 
                                              * * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2881,8 +2881,8 @@ public com.google.protobuf.ByteString getInstanceBytes() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -2911,8 +2911,8 @@ public java.lang.String getForwardingRule() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -4869,8 +4869,8 @@ public Builder setInstanceBytes(com.google.protobuf.ByteString value) { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -4898,8 +4898,8 @@ public java.lang.String getForwardingRule() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -4927,8 +4927,8 @@ public com.google.protobuf.ByteString getForwardingRuleBytes() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -4955,8 +4955,8 @@ public Builder setForwardingRule(java.lang.String value) { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -4979,8 +4979,8 @@ public Builder clearForwardingRule() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java index ca740ce27e36..1eee3a2244ea 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java @@ -99,8 +99,8 @@ public interface EndpointOrBuilder * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -118,8 +118,8 @@ public interface EndpointOrBuilder * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * `projects/{project}/global/forwardingRules/{id}` or - * `projects/{project}/regions/{region}/forwardingRules/{id}` + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java index 82799adc9fa1..4601768bf5fa 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfo.java @@ -51,6 +51,7 @@ private FirewallInfo() { policy_ = ""; policyUri_ = ""; firewallRuleType_ = 0; + targetType_ = 0; } @java.lang.Override @@ -438,6 +439,169 @@ private FirewallRuleType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType) } + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.networkmanagement.v1.FirewallInfo.TargetType} + */ + public enum TargetType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Target type is not specified. In this case we treat the rule as applying
                                              +     * to INSTANCES target type.
                                              +     * 
                                              + * + * TARGET_TYPE_UNSPECIFIED = 0; + */ + TARGET_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Firewall rule applies to instances.
                                              +     * 
                                              + * + * INSTANCES = 1; + */ + INSTANCES(1), + /** + * + * + *
                                              +     * Firewall rule applies to internal managed load balancers.
                                              +     * 
                                              + * + * INTERNAL_MANAGED_LB = 2; + */ + INTERNAL_MANAGED_LB(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Target type is not specified. In this case we treat the rule as applying
                                              +     * to INSTANCES target type.
                                              +     * 
                                              + * + * TARGET_TYPE_UNSPECIFIED = 0; + */ + public static final int TARGET_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Firewall rule applies to instances.
                                              +     * 
                                              + * + * INSTANCES = 1; + */ + public static final int INSTANCES_VALUE = 1; + + /** + * + * + *
                                              +     * Firewall rule applies to internal managed load balancers.
                                              +     * 
                                              + * + * INTERNAL_MANAGED_LB = 2; + */ + public static final int INTERNAL_MANAGED_LB_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 TargetType 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 TargetType forNumber(int value) { + switch (value) { + case 0: + return TARGET_TYPE_UNSPECIFIED; + case 1: + return INSTANCES; + case 2: + return INTERNAL_MANAGED_LB; + 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 TargetType findValueByNumber(int number) { + return TargetType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.FirewallInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final TargetType[] VALUES = values(); + + public static TargetType 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 TargetType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.FirewallInfo.TargetType) + } + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1024,6 +1188,66 @@ public com.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType getFi : result; } + public static final int POLICY_PRIORITY_FIELD_NUMBER = 12; + private int policyPriority_ = 0; + + /** + * + * + *
                                              +   * The priority of the firewall policy that this rule is associated with.
                                              +   * This field is not applicable to VPC firewall rules and implied VPC firewall
                                              +   * rules.
                                              +   * 
                                              + * + * int32 policy_priority = 12; + * + * @return The policyPriority. + */ + @java.lang.Override + public int getPolicyPriority() { + return policyPriority_; + } + + public static final int TARGET_TYPE_FIELD_NUMBER = 13; + private int targetType_ = 0; + + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * + * @return The enum numeric value on the wire for targetType. + */ + @java.lang.Override + public int getTargetTypeValue() { + return targetType_; + } + + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * + * @return The targetType. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType getTargetType() { + com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType result = + com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType.forNumber(targetType_); + return result == null + ? com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1075,6 +1299,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, policyUri_); } + if (policyPriority_ != 0) { + output.writeInt32(12, policyPriority_); + } + if (targetType_ + != com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType.TARGET_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, targetType_); + } getUnknownFields().writeTo(output); } @@ -1130,6 +1362,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, policyUri_); } + if (policyPriority_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, policyPriority_); + } + if (targetType_ + != com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType.TARGET_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, targetType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1157,6 +1397,8 @@ public boolean equals(final java.lang.Object obj) { if (!getPolicy().equals(other.getPolicy())) return false; if (!getPolicyUri().equals(other.getPolicyUri())) return false; if (firewallRuleType_ != other.firewallRuleType_) return false; + if (getPolicyPriority() != other.getPolicyPriority()) return false; + if (targetType_ != other.targetType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1194,6 +1436,10 @@ public int hashCode() { hash = (53 * hash) + getPolicyUri().hashCode(); hash = (37 * hash) + FIREWALL_RULE_TYPE_FIELD_NUMBER; hash = (53 * hash) + firewallRuleType_; + hash = (37 * hash) + POLICY_PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getPolicyPriority(); + hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + targetType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1346,6 +1592,8 @@ public Builder clear() { policy_ = ""; policyUri_ = ""; firewallRuleType_ = 0; + policyPriority_ = 0; + targetType_ = 0; return this; } @@ -1417,6 +1665,12 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.FirewallInfo re if (((from_bitField0_ & 0x00000400) != 0)) { result.firewallRuleType_ = firewallRuleType_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.policyPriority_ = policyPriority_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.targetType_ = targetType_; + } } @java.lang.Override @@ -1526,6 +1780,12 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.FirewallInfo othe if (other.firewallRuleType_ != 0) { setFirewallRuleTypeValue(other.getFirewallRuleTypeValue()); } + if (other.getPolicyPriority() != 0) { + setPolicyPriority(other.getPolicyPriority()); + } + if (other.targetType_ != 0) { + setTargetTypeValue(other.getTargetTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1620,6 +1880,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 90 + case 96: + { + policyPriority_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + targetType_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2993,6 +3265,166 @@ public Builder clearFirewallRuleType() { return this; } + private int policyPriority_; + + /** + * + * + *
                                              +     * The priority of the firewall policy that this rule is associated with.
                                              +     * This field is not applicable to VPC firewall rules and implied VPC firewall
                                              +     * rules.
                                              +     * 
                                              + * + * int32 policy_priority = 12; + * + * @return The policyPriority. + */ + @java.lang.Override + public int getPolicyPriority() { + return policyPriority_; + } + + /** + * + * + *
                                              +     * The priority of the firewall policy that this rule is associated with.
                                              +     * This field is not applicable to VPC firewall rules and implied VPC firewall
                                              +     * rules.
                                              +     * 
                                              + * + * int32 policy_priority = 12; + * + * @param value The policyPriority to set. + * @return This builder for chaining. + */ + public Builder setPolicyPriority(int value) { + + policyPriority_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The priority of the firewall policy that this rule is associated with.
                                              +     * This field is not applicable to VPC firewall rules and implied VPC firewall
                                              +     * rules.
                                              +     * 
                                              + * + * int32 policy_priority = 12; + * + * @return This builder for chaining. + */ + public Builder clearPolicyPriority() { + bitField0_ = (bitField0_ & ~0x00000800); + policyPriority_ = 0; + onChanged(); + return this; + } + + private int targetType_ = 0; + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * + * @return The enum numeric value on the wire for targetType. + */ + @java.lang.Override + public int getTargetTypeValue() { + return targetType_; + } + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * + * @param value The enum numeric value on the wire for targetType to set. + * @return This builder for chaining. + */ + public Builder setTargetTypeValue(int value) { + targetType_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * + * @return The targetType. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType getTargetType() { + com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType result = + com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType.forNumber(targetType_); + return result == null + ? com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * + * @param value The targetType to set. + * @return This builder for chaining. + */ + public Builder setTargetType( + com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + targetType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * + * @return This builder for chaining. + */ + public Builder clearTargetType() { + bitField0_ = (bitField0_ & ~0x00001000); + targetType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java index ea6c73629995..470e3e53deae 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/FirewallInfoOrBuilder.java @@ -372,4 +372,45 @@ public interface FirewallInfoOrBuilder * @return The firewallRuleType. */ com.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType getFirewallRuleType(); + + /** + * + * + *
                                              +   * The priority of the firewall policy that this rule is associated with.
                                              +   * This field is not applicable to VPC firewall rules and implied VPC firewall
                                              +   * rules.
                                              +   * 
                                              + * + * int32 policy_priority = 12; + * + * @return The policyPriority. + */ + int getPolicyPriority(); + + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * + * @return The enum numeric value on the wire for targetType. + */ + int getTargetTypeValue(); + + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.FirewallInfo.TargetType target_type = 13; + * + * @return The targetType. + */ + com.google.cloud.networkmanagement.v1.FirewallInfo.TargetType getTargetType(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardInfo.java index 2a7fc097ab8b..2e501df0883d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ForwardInfo.java @@ -178,6 +178,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * ROUTER_APPLIANCE = 9; */ ROUTER_APPLIANCE(9), + /** + * + * + *
                                              +     * Forwarded to a Secure Web Proxy Gateway.
                                              +     * 
                                              + * + * SECURE_WEB_PROXY_GATEWAY = 10; + */ + SECURE_WEB_PROXY_GATEWAY(10), UNRECOGNIZED(-1), ; @@ -291,6 +301,17 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROUTER_APPLIANCE_VALUE = 9; + /** + * + * + *
                                              +     * Forwarded to a Secure Web Proxy Gateway.
                                              +     * 
                                              + * + * SECURE_WEB_PROXY_GATEWAY = 10; + */ + public static final int SECURE_WEB_PROXY_GATEWAY_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -335,6 +356,8 @@ public static Target forNumber(int value) { return NCC_HUB; case 9: return ROUTER_APPLIANCE; + case 10: + return SECURE_WEB_PROXY_GATEWAY; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequest.java index 9c3430e31fe3..23104788fe78 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequest.java @@ -73,8 +73,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                              -   * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +   * Required. The resource name of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resources:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * @@ -100,8 +106,14 @@ public java.lang.String getName() { * * *
                                              -   * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +   * Required. The resource name of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resources:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * @@ -479,8 +491,14 @@ public Builder mergeFrom( * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * @@ -505,8 +523,14 @@ public java.lang.String getName() { * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * @@ -531,8 +555,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * @@ -556,8 +586,14 @@ public Builder setName(java.lang.String value) { * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * @@ -577,8 +613,14 @@ public Builder clearName() { * * *
                                              -     * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +     * Required. The resource name of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resources:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequestOrBuilder.java index b824a7b95695..4f4329229614 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequestOrBuilder.java @@ -28,8 +28,14 @@ public interface GetVpcFlowLogsConfigRequestOrBuilder * * *
                                              -   * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +   * Required. The resource name of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resources:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * @@ -44,8 +50,14 @@ public interface GetVpcFlowLogsConfigRequestOrBuilder * * *
                                              -   * Required. `VpcFlowLogsConfig` resource name using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
                                              +   * Required. The resource name of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resources:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/HybridSubnetInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/HybridSubnetInfo.java new file mode 100644 index 000000000000..8c707f82a05f --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/HybridSubnetInfo.java @@ -0,0 +1,1013 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                              + * For display only. Metadata associated with a hybrid subnet.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.HybridSubnetInfo} + */ +public final class HybridSubnetInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.HybridSubnetInfo) + HybridSubnetInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use HybridSubnetInfo.newBuilder() to construct. + private HybridSubnetInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridSubnetInfo() { + displayName_ = ""; + uri_ = ""; + region_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridSubnetInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.HybridSubnetInfo.class, + com.google.cloud.networkmanagement.v1.HybridSubnetInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +   * Name of a hybrid subnet.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Name of a hybrid subnet.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
                                              +   * URI of a hybrid subnet.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * URI of a hybrid subnet.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +   * 
                                              + * + * string region = 3; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +   * 
                                              + * + * string region = 3; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = 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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); + } + 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.networkmanagement.v1.HybridSubnetInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.HybridSubnetInfo other = + (com.google.cloud.networkmanagement.v1.HybridSubnetInfo) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getRegion().equals(other.getRegion())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo 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.networkmanagement.v1.HybridSubnetInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo 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.networkmanagement.v1.HybridSubnetInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.HybridSubnetInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * For display only. Metadata associated with a hybrid subnet.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.HybridSubnetInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.HybridSubnetInfo) + com.google.cloud.networkmanagement.v1.HybridSubnetInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.HybridSubnetInfo.class, + com.google.cloud.networkmanagement.v1.HybridSubnetInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.HybridSubnetInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + uri_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.HybridSubnetInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.HybridSubnetInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.HybridSubnetInfo build() { + com.google.cloud.networkmanagement.v1.HybridSubnetInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.HybridSubnetInfo buildPartial() { + com.google.cloud.networkmanagement.v1.HybridSubnetInfo result = + new com.google.cloud.networkmanagement.v1.HybridSubnetInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.HybridSubnetInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.HybridSubnetInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.HybridSubnetInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.HybridSubnetInfo other) { + if (other == com.google.cloud.networkmanagement.v1.HybridSubnetInfo.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + region_ = 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 displayName_ = ""; + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.HybridSubnetInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.HybridSubnetInfo) + private static final com.google.cloud.networkmanagement.v1.HybridSubnetInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.HybridSubnetInfo(); + } + + public static com.google.cloud.networkmanagement.v1.HybridSubnetInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridSubnetInfo 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.networkmanagement.v1.HybridSubnetInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/HybridSubnetInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/HybridSubnetInfoOrBuilder.java new file mode 100644 index 000000000000..8a497a64a833 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/HybridSubnetInfoOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +public interface HybridSubnetInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.HybridSubnetInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Name of a hybrid subnet.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                              +   * Name of a hybrid subnet.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                              +   * URI of a hybrid subnet.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
                                              +   * URI of a hybrid subnet.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +   * 
                                              + * + * string region = 3; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +   * 
                                              + * + * string region = 3; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java index 9387d144bb1f..a0e7ad00963a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java @@ -49,6 +49,7 @@ private InstanceInfo() { networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; pscNetworkAttachmentUri_ = ""; + status_ = 0; } @java.lang.Override @@ -72,6 +73,168 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.networkmanagement.v1.InstanceInfo.Builder.class); } + /** + * + * + *
                                              +   * The status of the instance. We treat all states other than "RUNNING" as
                                              +   * not running.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.networkmanagement.v1.InstanceInfo.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
                                              +     * The instance is running.
                                              +     * 
                                              + * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
                                              +     * The instance has any status other than "RUNNING".
                                              +     * 
                                              + * + * NOT_RUNNING = 2; + */ + NOT_RUNNING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * The instance is running.
                                              +     * 
                                              + * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + + /** + * + * + *
                                              +     * The instance has any status other than "RUNNING".
                                              +     * 
                                              + * + * NOT_RUNNING = 2; + */ + public static final int NOT_RUNNING_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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return NOT_RUNNING; + 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 Status findValueByNumber(int number) { + return Status.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.InstanceInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.InstanceInfo.Status) + } + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -473,7 +636,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=340 + * google/cloud/networkmanagement/v1/trace.proto;l=363 * @return The serviceAccount. */ @java.lang.Override @@ -500,7 +663,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=340 + * google/cloud/networkmanagement/v1/trace.proto;l=363 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -570,6 +733,68 @@ public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { } } + public static final int RUNNING_FIELD_NUMBER = 10; + private boolean running_ = false; + + /** + * + * + *
                                              +   * Indicates whether the Compute Engine instance is running.
                                              +   * Deprecated: use the `status` field instead.
                                              +   * 
                                              + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1/trace.proto;l=370 + * @return The running. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getRunning() { + return running_; + } + + public static final int STATUS_FIELD_NUMBER = 11; + private int status_ = 0; + + /** + * + * + *
                                              +   * The status of the instance.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
                                              +   * The status of the instance.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InstanceInfo.Status getStatus() { + com.google.cloud.networkmanagement.v1.InstanceInfo.Status result = + com.google.cloud.networkmanagement.v1.InstanceInfo.Status.forNumber(status_); + return result == null + ? com.google.cloud.networkmanagement.v1.InstanceInfo.Status.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -611,6 +836,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscNetworkAttachmentUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pscNetworkAttachmentUri_); } + if (running_ != false) { + output.writeBool(10, running_); + } + if (status_ + != com.google.cloud.networkmanagement.v1.InstanceInfo.Status.STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, status_); + } getUnknownFields().writeTo(output); } @@ -652,6 +885,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscNetworkAttachmentUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pscNetworkAttachmentUri_); } + if (running_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, running_); + } + if (status_ + != com.google.cloud.networkmanagement.v1.InstanceInfo.Status.STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, status_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -677,6 +918,8 @@ public boolean equals(final java.lang.Object obj) { if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getPscNetworkAttachmentUri().equals(other.getPscNetworkAttachmentUri())) return false; + if (getRunning() != other.getRunning()) return false; + if (status_ != other.status_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -708,6 +951,10 @@ public int hashCode() { hash = (53 * hash) + getServiceAccount().hashCode(); hash = (37 * hash) + PSC_NETWORK_ATTACHMENT_URI_FIELD_NUMBER; hash = (53 * hash) + getPscNetworkAttachmentUri().hashCode(); + hash = (37 * hash) + RUNNING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunning()); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -857,6 +1104,8 @@ public Builder clear() { networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; pscNetworkAttachmentUri_ = ""; + running_ = false; + status_ = 0; return this; } @@ -921,6 +1170,12 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.InstanceInfo re if (((from_bitField0_ & 0x00000100) != 0)) { result.pscNetworkAttachmentUri_ = pscNetworkAttachmentUri_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.running_ = running_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.status_ = status_; + } } @java.lang.Override @@ -1019,6 +1274,12 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.InstanceInfo othe bitField0_ |= 0x00000100; onChanged(); } + if (other.getRunning() != false) { + setRunning(other.getRunning()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1100,6 +1361,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 80: + { + running_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1980,7 +2253,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=340 + * google/cloud/networkmanagement/v1/trace.proto;l=363 * @return The serviceAccount. */ @java.lang.Deprecated @@ -2006,7 +2279,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=340 + * google/cloud/networkmanagement/v1/trace.proto;l=363 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -2032,7 +2305,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=340 + * google/cloud/networkmanagement/v1/trace.proto;l=363 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -2057,7 +2330,7 @@ public Builder setServiceAccount(java.lang.String value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=340 + * google/cloud/networkmanagement/v1/trace.proto;l=363 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2078,7 +2351,7 @@ public Builder clearServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=340 + * google/cloud/networkmanagement/v1/trace.proto;l=363 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ @@ -2205,6 +2478,171 @@ public Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString va return this; } + private boolean running_; + + /** + * + * + *
                                              +     * Indicates whether the Compute Engine instance is running.
                                              +     * Deprecated: use the `status` field instead.
                                              +     * 
                                              + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1/trace.proto;l=370 + * @return The running. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getRunning() { + return running_; + } + + /** + * + * + *
                                              +     * Indicates whether the Compute Engine instance is running.
                                              +     * Deprecated: use the `status` field instead.
                                              +     * 
                                              + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1/trace.proto;l=370 + * @param value The running to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setRunning(boolean value) { + + running_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Indicates whether the Compute Engine instance is running.
                                              +     * Deprecated: use the `status` field instead.
                                              +     * 
                                              + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1/trace.proto;l=370 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearRunning() { + bitField0_ = (bitField0_ & ~0x00000200); + running_ = false; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
                                              +     * The status of the instance.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
                                              +     * The status of the instance.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The status of the instance.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InstanceInfo.Status getStatus() { + com.google.cloud.networkmanagement.v1.InstanceInfo.Status result = + com.google.cloud.networkmanagement.v1.InstanceInfo.Status.forNumber(status_); + return result == null + ? com.google.cloud.networkmanagement.v1.InstanceInfo.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * The status of the instance.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.networkmanagement.v1.InstanceInfo.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The status of the instance.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000400); + status_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java index 98f883416e3a..c5dcb5f45323 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java @@ -244,7 +244,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=340 + * google/cloud/networkmanagement/v1/trace.proto;l=363 * @return The serviceAccount. */ @java.lang.Deprecated @@ -260,7 +260,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=340 + * google/cloud/networkmanagement/v1/trace.proto;l=363 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -291,4 +291,47 @@ public interface InstanceInfoOrBuilder * @return The bytes for pscNetworkAttachmentUri. */ com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes(); + + /** + * + * + *
                                              +   * Indicates whether the Compute Engine instance is running.
                                              +   * Deprecated: use the `status` field instead.
                                              +   * 
                                              + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1/trace.proto;l=370 + * @return The running. + */ + @java.lang.Deprecated + boolean getRunning(); + + /** + * + * + *
                                              +   * The status of the instance.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
                                              +   * The status of the instance.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.InstanceInfo.Status status = 11; + * + * @return The status. + */ + com.google.cloud.networkmanagement.v1.InstanceInfo.Status getStatus(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InterconnectAttachmentInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InterconnectAttachmentInfo.java new file mode 100644 index 000000000000..11998c31282e --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InterconnectAttachmentInfo.java @@ -0,0 +1,1975 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                              + * For display only. Metadata associated with an Interconnect attachment.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.InterconnectAttachmentInfo} + */ +public final class InterconnectAttachmentInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) + InterconnectAttachmentInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use InterconnectAttachmentInfo.newBuilder() to construct. + private InterconnectAttachmentInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InterconnectAttachmentInfo() { + displayName_ = ""; + uri_ = ""; + interconnectUri_ = ""; + region_ = ""; + cloudRouterUri_ = ""; + type_ = 0; + l2AttachmentMatchedIpAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InterconnectAttachmentInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.class, + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Builder.class); + } + + /** + * + * + *
                                              +   * What type of interconnect attachment this is.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Unspecified type.
                                              +     * 
                                              + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Attachment to a dedicated interconnect.
                                              +     * 
                                              + * + * DEDICATED = 1; + */ + DEDICATED(1), + /** + * + * + *
                                              +     * Attachment to a partner interconnect, created by the customer.
                                              +     * 
                                              + * + * PARTNER = 2; + */ + PARTNER(2), + /** + * + * + *
                                              +     * Attachment to a partner interconnect, created by the partner.
                                              +     * 
                                              + * + * PARTNER_PROVIDER = 3; + */ + PARTNER_PROVIDER(3), + /** + * + * + *
                                              +     * Attachment to a L2 interconnect, created by the customer.
                                              +     * 
                                              + * + * L2_DEDICATED = 4; + */ + L2_DEDICATED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Unspecified type.
                                              +     * 
                                              + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Attachment to a dedicated interconnect.
                                              +     * 
                                              + * + * DEDICATED = 1; + */ + public static final int DEDICATED_VALUE = 1; + + /** + * + * + *
                                              +     * Attachment to a partner interconnect, created by the customer.
                                              +     * 
                                              + * + * PARTNER = 2; + */ + public static final int PARTNER_VALUE = 2; + + /** + * + * + *
                                              +     * Attachment to a partner interconnect, created by the partner.
                                              +     * 
                                              + * + * PARTNER_PROVIDER = 3; + */ + public static final int PARTNER_PROVIDER_VALUE = 3; + + /** + * + * + *
                                              +     * Attachment to a L2 interconnect, created by the customer.
                                              +     * 
                                              + * + * L2_DEDICATED = 4; + */ + public static final int L2_DEDICATED_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return DEDICATED; + case 2: + return PARTNER; + case 3: + return PARTNER_PROVIDER; + case 4: + return L2_DEDICATED; + 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 Type findValueByNumber(int number) { + return Type.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type) + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +   * Name of an Interconnect attachment.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Name of an Interconnect attachment.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
                                              +   * URI of an Interconnect attachment.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * URI of an Interconnect attachment.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCONNECT_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object interconnectUri_ = ""; + + /** + * + * + *
                                              +   * URI of the Interconnect where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string interconnect_uri = 3; + * + * @return The interconnectUri. + */ + @java.lang.Override + public java.lang.String getInterconnectUri() { + java.lang.Object ref = interconnectUri_; + 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(); + interconnectUri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * URI of the Interconnect where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string interconnect_uri = 3; + * + * @return The bytes for interconnectUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterconnectUriBytes() { + java.lang.Object ref = interconnectUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interconnectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string region = 4; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string region = 4; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_ROUTER_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudRouterUri_ = ""; + + /** + * + * + *
                                              +   * URI of the Cloud Router to be used for dynamic routing.
                                              +   * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The cloudRouterUri. + */ + @java.lang.Override + public java.lang.String getCloudRouterUri() { + java.lang.Object ref = cloudRouterUri_; + 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(); + cloudRouterUri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * URI of the Cloud Router to be used for dynamic routing.
                                              +   * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The bytes for cloudRouterUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudRouterUriBytes() { + java.lang.Object ref = cloudRouterUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudRouterUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_ = 0; + + /** + * + * + *
                                              +   * The type of interconnect attachment this is.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                              +   * The type of interconnect attachment this is.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type getType() { + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type result = + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type.forNumber(type_); + return result == null + ? com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type.UNRECOGNIZED + : result; + } + + public static final int L2_ATTACHMENT_MATCHED_IP_ADDRESS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object l2AttachmentMatchedIpAddress_ = ""; + + /** + * + * + *
                                              +   * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +   * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The l2AttachmentMatchedIpAddress. + */ + @java.lang.Override + public java.lang.String getL2AttachmentMatchedIpAddress() { + java.lang.Object ref = l2AttachmentMatchedIpAddress_; + 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(); + l2AttachmentMatchedIpAddress_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +   * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The bytes for l2AttachmentMatchedIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getL2AttachmentMatchedIpAddressBytes() { + java.lang.Object ref = l2AttachmentMatchedIpAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + l2AttachmentMatchedIpAddress_ = 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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interconnectUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, interconnectUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudRouterUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cloudRouterUri_); + } + if (type_ + != com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(l2AttachmentMatchedIpAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, l2AttachmentMatchedIpAddress_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interconnectUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, interconnectUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudRouterUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cloudRouterUri_); + } + if (type_ + != com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(l2AttachmentMatchedIpAddress_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 7, l2AttachmentMatchedIpAddress_); + } + 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.networkmanagement.v1.InterconnectAttachmentInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo other = + (com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getInterconnectUri().equals(other.getInterconnectUri())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getCloudRouterUri().equals(other.getCloudRouterUri())) return false; + if (type_ != other.type_) return false; + if (!getL2AttachmentMatchedIpAddress().equals(other.getL2AttachmentMatchedIpAddress())) + 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + INTERCONNECT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInterconnectUri().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + CLOUD_ROUTER_URI_FIELD_NUMBER; + hash = (53 * hash) + getCloudRouterUri().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + L2_ATTACHMENT_MATCHED_IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getL2AttachmentMatchedIpAddress().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo 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.networkmanagement.v1.InterconnectAttachmentInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo 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.networkmanagement.v1.InterconnectAttachmentInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * For display only. Metadata associated with an Interconnect attachment.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.InterconnectAttachmentInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.class, + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + uri_ = ""; + interconnectUri_ = ""; + region_ = ""; + cloudRouterUri_ = ""; + type_ = 0; + l2AttachmentMatchedIpAddress_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo build() { + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo buildPartial() { + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo result = + new com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.interconnectUri_ = interconnectUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.cloudRouterUri_ = cloudRouterUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.l2AttachmentMatchedIpAddress_ = l2AttachmentMatchedIpAddress_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo other) { + if (other + == com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getInterconnectUri().isEmpty()) { + interconnectUri_ = other.interconnectUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getCloudRouterUri().isEmpty()) { + cloudRouterUri_ = other.cloudRouterUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getL2AttachmentMatchedIpAddress().isEmpty()) { + l2AttachmentMatchedIpAddress_ = other.l2AttachmentMatchedIpAddress_; + bitField0_ |= 0x00000040; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + interconnectUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + cloudRouterUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + l2AttachmentMatchedIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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 displayName_ = ""; + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object interconnectUri_ = ""; + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @return The interconnectUri. + */ + public java.lang.String getInterconnectUri() { + java.lang.Object ref = interconnectUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interconnectUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @return The bytes for interconnectUri. + */ + public com.google.protobuf.ByteString getInterconnectUriBytes() { + java.lang.Object ref = interconnectUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interconnectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @param value The interconnectUri to set. + * @return This builder for chaining. + */ + public Builder setInterconnectUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interconnectUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearInterconnectUri() { + interconnectUri_ = getDefaultInstance().getInterconnectUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @param value The bytes for interconnectUri to set. + * @return This builder for chaining. + */ + public Builder setInterconnectUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interconnectUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object cloudRouterUri_ = ""; + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The cloudRouterUri. + */ + public java.lang.String getCloudRouterUri() { + java.lang.Object ref = cloudRouterUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudRouterUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The bytes for cloudRouterUri. + */ + public com.google.protobuf.ByteString getCloudRouterUriBytes() { + java.lang.Object ref = cloudRouterUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudRouterUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @param value The cloudRouterUri to set. + * @return This builder for chaining. + */ + public Builder setCloudRouterUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudRouterUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearCloudRouterUri() { + cloudRouterUri_ = getDefaultInstance().getCloudRouterUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @param value The bytes for cloudRouterUri to set. + * @return This builder for chaining. + */ + public Builder setCloudRouterUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudRouterUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type getType() { + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type result = + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type.forNumber(type_); + return result == null + ? com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000020); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object l2AttachmentMatchedIpAddress_ = ""; + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The l2AttachmentMatchedIpAddress. + */ + public java.lang.String getL2AttachmentMatchedIpAddress() { + java.lang.Object ref = l2AttachmentMatchedIpAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + l2AttachmentMatchedIpAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The bytes for l2AttachmentMatchedIpAddress. + */ + public com.google.protobuf.ByteString getL2AttachmentMatchedIpAddressBytes() { + java.lang.Object ref = l2AttachmentMatchedIpAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + l2AttachmentMatchedIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @param value The l2AttachmentMatchedIpAddress to set. + * @return This builder for chaining. + */ + public Builder setL2AttachmentMatchedIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + l2AttachmentMatchedIpAddress_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearL2AttachmentMatchedIpAddress() { + l2AttachmentMatchedIpAddress_ = getDefaultInstance().getL2AttachmentMatchedIpAddress(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @param value The bytes for l2AttachmentMatchedIpAddress to set. + * @return This builder for chaining. + */ + public Builder setL2AttachmentMatchedIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + l2AttachmentMatchedIpAddress_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) + private static final com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo(); + } + + public static com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterconnectAttachmentInfo 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.networkmanagement.v1.InterconnectAttachmentInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InterconnectAttachmentInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InterconnectAttachmentInfoOrBuilder.java new file mode 100644 index 000000000000..72de1ae4331c --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InterconnectAttachmentInfoOrBuilder.java @@ -0,0 +1,212 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +public interface InterconnectAttachmentInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Name of an Interconnect attachment.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                              +   * Name of an Interconnect attachment.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                              +   * URI of an Interconnect attachment.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
                                              +   * URI of an Interconnect attachment.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
                                              +   * URI of the Interconnect where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string interconnect_uri = 3; + * + * @return The interconnectUri. + */ + java.lang.String getInterconnectUri(); + + /** + * + * + *
                                              +   * URI of the Interconnect where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string interconnect_uri = 3; + * + * @return The bytes for interconnectUri. + */ + com.google.protobuf.ByteString getInterconnectUriBytes(); + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string region = 4; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string region = 4; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
                                              +   * URI of the Cloud Router to be used for dynamic routing.
                                              +   * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The cloudRouterUri. + */ + java.lang.String getCloudRouterUri(); + + /** + * + * + *
                                              +   * URI of the Cloud Router to be used for dynamic routing.
                                              +   * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The bytes for cloudRouterUri. + */ + com.google.protobuf.ByteString getCloudRouterUriBytes(); + + /** + * + * + *
                                              +   * The type of interconnect attachment this is.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
                                              +   * The type of interconnect attachment this is.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The type. + */ + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type getType(); + + /** + * + * + *
                                              +   * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +   * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The l2AttachmentMatchedIpAddress. + */ + java.lang.String getL2AttachmentMatchedIpAddress(); + + /** + * + * + *
                                              +   * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +   * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The bytes for l2AttachmentMatchedIpAddress. + */ + com.google.protobuf.ByteString getL2AttachmentMatchedIpAddressBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequest.java index d2c4702ecc69..19e9b21588e9 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequest.java @@ -76,8 +76,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                              -   * Required. The parent resource of the VpcFlowLogsConfig:
                                              -   *     `projects/{project_id}/locations/global`
                                              +   * Required. The parent resource of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resourcs: `projects/{project_id}/locations/global`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global`
                                                  * 
                                              * * @@ -103,8 +108,13 @@ public java.lang.String getParent() { * * *
                                              -   * Required. The parent resource of the VpcFlowLogsConfig:
                                              -   *     `projects/{project_id}/locations/global`
                                              +   * Required. The parent resource of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resourcs: `projects/{project_id}/locations/global`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global`
                                                  * 
                                              * * @@ -762,8 +772,13 @@ public Builder mergeFrom( * * *
                                              -     * Required. The parent resource of the VpcFlowLogsConfig:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resourcs: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * @@ -788,8 +803,13 @@ public java.lang.String getParent() { * * *
                                              -     * Required. The parent resource of the VpcFlowLogsConfig:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resourcs: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * @@ -814,8 +834,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                              -     * Required. The parent resource of the VpcFlowLogsConfig:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resourcs: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * @@ -839,8 +864,13 @@ public Builder setParent(java.lang.String value) { * * *
                                              -     * Required. The parent resource of the VpcFlowLogsConfig:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resourcs: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * @@ -860,8 +890,13 @@ public Builder clearParent() { * * *
                                              -     * Required. The parent resource of the VpcFlowLogsConfig:
                                              -     *     `projects/{project_id}/locations/global`
                                              +     * Required. The parent resource of the VpcFlowLogsConfig,
                                              +     * in one of the following formats:
                                              +     *
                                              +     * - For project-level resourcs: `projects/{project_id}/locations/global`
                                              +     *
                                              +     * - For organization-level resources:
                                              +     * `organizations/{organization_id}/locations/global`
                                                    * 
                                              * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequestOrBuilder.java index c6d3e5edc2eb..81096c030e3b 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequestOrBuilder.java @@ -28,8 +28,13 @@ public interface ListVpcFlowLogsConfigsRequestOrBuilder * * *
                                              -   * Required. The parent resource of the VpcFlowLogsConfig:
                                              -   *     `projects/{project_id}/locations/global`
                                              +   * Required. The parent resource of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resourcs: `projects/{project_id}/locations/global`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global`
                                                  * 
                                              * * @@ -44,8 +49,13 @@ public interface ListVpcFlowLogsConfigsRequestOrBuilder * * *
                                              -   * Required. The parent resource of the VpcFlowLogsConfig:
                                              -   *     `projects/{project_id}/locations/global`
                                              +   * Required. The parent resource of the VpcFlowLogsConfig,
                                              +   * in one of the following formats:
                                              +   *
                                              +   * - For project-level resourcs: `projects/{project_id}/locations/global`
                                              +   *
                                              +   * - For organization-level resources:
                                              +   * `organizations/{organization_id}/locations/global`
                                                  * 
                                              * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java index 9af497981660..b163c780ba30 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java @@ -546,7 +546,7 @@ public int getLoadBalancerTypeValue() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=781 + * See google/cloud/networkmanagement/v1/trace.proto;l=834 * @return The healthCheckUri. */ @java.lang.Override @@ -575,7 +575,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=781 + * See google/cloud/networkmanagement/v1/trace.proto;l=834 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1384,7 +1384,7 @@ public Builder clearLoadBalancerType() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=834 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1412,7 +1412,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=834 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1440,7 +1440,7 @@ public com.google.protobuf.ByteString getHealthCheckUriBytes() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=834 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1467,7 +1467,7 @@ public Builder setHealthCheckUri(java.lang.String value) { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=834 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1490,7 +1490,7 @@ public Builder clearHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=834 * @param value The bytes for healthCheckUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java index dc5b94758d6f..3c2106948e6d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java @@ -66,7 +66,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=781 + * See google/cloud/networkmanagement/v1/trace.proto;l=834 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -84,7 +84,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=781 + * See google/cloud/networkmanagement/v1/trace.proto;l=834 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfo.java index bd950a757126..9b8379b4cae3 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfo.java @@ -132,6 +132,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * PRIVATE_SERVICE_CONNECT = 4; */ PRIVATE_SERVICE_CONNECT(4), + /** + * + * + *
                                              +     * GKE Pod IP address masquerading.
                                              +     * 
                                              + * + * GKE_POD_IP_MASQUERADING = 5; + */ + GKE_POD_IP_MASQUERADING(5), UNRECOGNIZED(-1), ; @@ -190,6 +200,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRIVATE_SERVICE_CONNECT_VALUE = 4; + /** + * + * + *
                                              +     * GKE Pod IP address masquerading.
                                              +     * 
                                              + * + * GKE_POD_IP_MASQUERADING = 5; + */ + public static final int GKE_POD_IP_MASQUERADING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -224,6 +245,8 @@ public static Type forNumber(int value) { return CLOUD_NAT; case 4: return PRIVATE_SERVICE_CONNECT; + case 5: + return GKE_POD_IP_MASQUERADING; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfo.java index 62074e9669b6..c2cd59270919 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NetworkInfo.java @@ -24,7 +24,6 @@ * *
                                                * For display only. Metadata associated with a Compute Engine network.
                                              - * Next ID: 7
                                                * 
                                              * * Protobuf type {@code google.cloud.networkmanagement.v1.NetworkInfo} @@ -535,7 +534,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                                  * For display only. Metadata associated with a Compute Engine network.
                                              -   * Next ID: 7
                                                  * 
                                              * * Protobuf type {@code google.cloud.networkmanagement.v1.NetworkInfo} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationLocationName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationLocationName.java new file mode 100644 index 000000000000..db2ab9dc4ed2 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationLocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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.networkmanagement.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 OrganizationLocationName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String organization; + private final String location; + + @Deprecated + protected OrganizationLocationName() { + organization = null; + location = null; + } + + private OrganizationLocationName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OrganizationLocationName of(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build(); + } + + public static String format(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build().toString(); + } + + public static OrganizationLocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + ORGANIZATION_LOCATION.validatedMatch( + formattedString, "OrganizationLocationName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("location")); + } + + 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 (OrganizationLocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return ORGANIZATION_LOCATION.instantiate("organization", organization, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OrganizationLocationName that = ((OrganizationLocationName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for organizations/{organization}/locations/{location}. */ + public static class Builder { + private String organization; + private String location; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(OrganizationLocationName organizationLocationName) { + this.organization = organizationLocationName.organization; + this.location = organizationLocationName.location; + } + + public OrganizationLocationName build() { + return new OrganizationLocationName(this); + } + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetails.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetails.java index 7e4008df8532..1ac3e67825b8 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetails.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetails.java @@ -42,6 +42,7 @@ private ProbingDetails(com.google.protobuf.GeneratedMessageV3.Builder builder private ProbingDetails() { result_ = 0; abortCause_ = 0; + edgeResponses_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1112,155 +1113,2046 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int RESULT_FIELD_NUMBER = 1; - private int result_ = 0; + public interface SingleEdgeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
                                              -   * The overall result of active probing.
                                              -   * 
                                              - * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - * - * @return The enum numeric value on the wire for result. - */ - @java.lang.Override - public int getResultValue() { - return result_; - } + /** + * + * + *
                                              +     * The overall result of active probing for this egress device.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The enum numeric value on the wire for result. + */ + int getResultValue(); - /** - * - * - *
                                              -   * The overall result of active probing.
                                              -   * 
                                              - * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - * - * @return The result. - */ - @java.lang.Override - public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult() { - com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = - com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.forNumber(result_); - return result == null - ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.UNRECOGNIZED - : result; - } + /** + * + * + *
                                              +     * The overall result of active probing for this egress device.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The result. + */ + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult(); - public static final int VERIFY_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp verifyTime_; + /** + * + * + *
                                              +     * Number of probes sent.
                                              +     * 
                                              + * + * int32 sent_probe_count = 2; + * + * @return The sentProbeCount. + */ + int getSentProbeCount(); - /** - * - * - *
                                              -   * The time that reachability was assessed through active probing.
                                              -   * 
                                              - * - * .google.protobuf.Timestamp verify_time = 2; - * - * @return Whether the verifyTime field is set. - */ - @java.lang.Override - public boolean hasVerifyTime() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
                                              +     * Number of probes that reached the destination.
                                              +     * 
                                              + * + * int32 successful_probe_count = 3; + * + * @return The successfulProbeCount. + */ + int getSuccessfulProbeCount(); - /** - * - * - *
                                              -   * The time that reachability was assessed through active probing.
                                              -   * 
                                              - * - * .google.protobuf.Timestamp verify_time = 2; - * - * @return The verifyTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVerifyTime() { - return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_; - } + /** + * + * + *
                                              +     * Latency as measured by active probing in one direction: from the source
                                              +     * to the destination endpoint.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + * + * @return Whether the probingLatency field is set. + */ + boolean hasProbingLatency(); - /** - * - * - *
                                              -   * The time that reachability was assessed through active probing.
                                              -   * 
                                              - * - * .google.protobuf.Timestamp verify_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() { - return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_; - } + /** + * + * + *
                                              +     * Latency as measured by active probing in one direction: from the source
                                              +     * to the destination endpoint.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + * + * @return The probingLatency. + */ + com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency(); - public static final int ERROR_FIELD_NUMBER = 3; - private com.google.rpc.Status error_; + /** + * + * + *
                                              +     * Latency as measured by active probing in one direction: from the source
                                              +     * to the destination endpoint.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder getProbingLatencyOrBuilder(); - /** - * - * - *
                                              -   * Details about an internal failure or the cancellation of active probing.
                                              -   * 
                                              - * - * .google.rpc.Status error = 3; - * - * @return Whether the error field is set. - */ - @java.lang.Override - public boolean hasError() { - return ((bitField0_ & 0x00000002) != 0); - } + /** + * + * + *
                                              +     * The EdgeLocation from which a packet, destined to the internet, will
                                              +     * egress the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return Whether the destinationEgressLocation field is set. + */ + boolean hasDestinationEgressLocation(); - /** - * - * - *
                                              -   * Details about an internal failure or the cancellation of active probing.
                                              -   * 
                                              - * - * .google.rpc.Status error = 3; - * - * @return The error. - */ - @java.lang.Override - public com.google.rpc.Status getError() { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + /** + * + * + *
                                              +     * The EdgeLocation from which a packet, destined to the internet, will
                                              +     * egress the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return The destinationEgressLocation. + */ + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + getDestinationEgressLocation(); + + /** + * + * + *
                                              +     * The EdgeLocation from which a packet, destined to the internet, will
                                              +     * egress the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder + getDestinationEgressLocationOrBuilder(); + + /** + * + * + *
                                              +     * Router name in the format '{router}.{metroshard}'. For example:
                                              +     * pf01.aaa01, pr02.aaa01.
                                              +     * 
                                              + * + * string destination_router = 6; + * + * @return The destinationRouter. + */ + java.lang.String getDestinationRouter(); + + /** + * + * + *
                                              +     * Router name in the format '{router}.{metroshard}'. For example:
                                              +     * pf01.aaa01, pr02.aaa01.
                                              +     * 
                                              + * + * string destination_router = 6; + * + * @return The bytes for destinationRouter. + */ + com.google.protobuf.ByteString getDestinationRouterBytes(); } /** * * *
                                              -   * Details about an internal failure or the cancellation of active probing.
                                              +   * Probing results for a single edge device.
                                                  * 
                                              * - * .google.rpc.Status error = 3; + * Protobuf type {@code google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse} */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; - } + public static final class SingleEdgeResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse) + SingleEdgeResponseOrBuilder { + private static final long serialVersionUID = 0L; - public static final int ABORT_CAUSE_FIELD_NUMBER = 4; - private int abortCause_ = 0; + // Use SingleEdgeResponse.newBuilder() to construct. + private SingleEdgeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * - * - *
                                              -   * The reason probing was aborted.
                                              -   * 
                                              - * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; + private SingleEdgeResponse() { + result_ = 0; + destinationRouter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SingleEdgeResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.class, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder + .class); + } + + private int bitField0_; + public static final int RESULT_FIELD_NUMBER = 1; + private int result_ = 0; + + /** + * + * + *
                                              +     * The overall result of active probing for this egress device.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
                                              +     * The overall result of active probing for this egress device.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult() { + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.forNumber(result_); + return result == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.UNRECOGNIZED + : result; + } + + public static final int SENT_PROBE_COUNT_FIELD_NUMBER = 2; + private int sentProbeCount_ = 0; + + /** + * + * + *
                                              +     * Number of probes sent.
                                              +     * 
                                              + * + * int32 sent_probe_count = 2; + * + * @return The sentProbeCount. + */ + @java.lang.Override + public int getSentProbeCount() { + return sentProbeCount_; + } + + public static final int SUCCESSFUL_PROBE_COUNT_FIELD_NUMBER = 3; + private int successfulProbeCount_ = 0; + + /** + * + * + *
                                              +     * Number of probes that reached the destination.
                                              +     * 
                                              + * + * int32 successful_probe_count = 3; + * + * @return The successfulProbeCount. + */ + @java.lang.Override + public int getSuccessfulProbeCount() { + return successfulProbeCount_; + } + + public static final int PROBING_LATENCY_FIELD_NUMBER = 4; + private com.google.cloud.networkmanagement.v1.LatencyDistribution probingLatency_; + + /** + * + * + *
                                              +     * Latency as measured by active probing in one direction: from the source
                                              +     * to the destination endpoint.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + * + * @return Whether the probingLatency field is set. + */ + @java.lang.Override + public boolean hasProbingLatency() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +     * Latency as measured by active probing in one direction: from the source
                                              +     * to the destination endpoint.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + * + * @return The probingLatency. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency() { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } + + /** + * + * + *
                                              +     * Latency as measured by active probing in one direction: from the source
                                              +     * to the destination endpoint.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder + getProbingLatencyOrBuilder() { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } + + public static final int DESTINATION_EGRESS_LOCATION_FIELD_NUMBER = 5; + private com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + destinationEgressLocation_; + + /** + * + * + *
                                              +     * The EdgeLocation from which a packet, destined to the internet, will
                                              +     * egress the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return Whether the destinationEgressLocation field is set. + */ + @java.lang.Override + public boolean hasDestinationEgressLocation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * The EdgeLocation from which a packet, destined to the internet, will
                                              +     * egress the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return The destinationEgressLocation. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + getDestinationEgressLocation() { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() + : destinationEgressLocation_; + } + + /** + * + * + *
                                              +     * The EdgeLocation from which a packet, destined to the internet, will
                                              +     * egress the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder + getDestinationEgressLocationOrBuilder() { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() + : destinationEgressLocation_; + } + + public static final int DESTINATION_ROUTER_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationRouter_ = ""; + + /** + * + * + *
                                              +     * Router name in the format '{router}.{metroshard}'. For example:
                                              +     * pf01.aaa01, pr02.aaa01.
                                              +     * 
                                              + * + * string destination_router = 6; + * + * @return The destinationRouter. + */ + @java.lang.Override + public java.lang.String getDestinationRouter() { + java.lang.Object ref = destinationRouter_; + 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(); + destinationRouter_ = s; + return s; + } + } + + /** + * + * + *
                                              +     * Router name in the format '{router}.{metroshard}'. For example:
                                              +     * pf01.aaa01, pr02.aaa01.
                                              +     * 
                                              + * + * string destination_router = 6; + * + * @return The bytes for destinationRouter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationRouterBytes() { + java.lang.Object ref = destinationRouter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationRouter_ = 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 (result_ + != com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult + .PROBING_RESULT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, result_); + } + if (sentProbeCount_ != 0) { + output.writeInt32(2, sentProbeCount_); + } + if (successfulProbeCount_ != 0) { + output.writeInt32(3, successfulProbeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getProbingLatency()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getDestinationEgressLocation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationRouter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, destinationRouter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (result_ + != com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult + .PROBING_RESULT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, result_); + } + if (sentProbeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sentProbeCount_); + } + if (successfulProbeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, successfulProbeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProbingLatency()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getDestinationEgressLocation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationRouter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destinationRouter_); + } + 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.networkmanagement.v1.ProbingDetails.SingleEdgeResponse)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse other = + (com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse) obj; + + if (result_ != other.result_) return false; + if (getSentProbeCount() != other.getSentProbeCount()) return false; + if (getSuccessfulProbeCount() != other.getSuccessfulProbeCount()) return false; + if (hasProbingLatency() != other.hasProbingLatency()) return false; + if (hasProbingLatency()) { + if (!getProbingLatency().equals(other.getProbingLatency())) return false; + } + if (hasDestinationEgressLocation() != other.hasDestinationEgressLocation()) return false; + if (hasDestinationEgressLocation()) { + if (!getDestinationEgressLocation().equals(other.getDestinationEgressLocation())) + return false; + } + if (!getDestinationRouter().equals(other.getDestinationRouter())) 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) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + result_; + hash = (37 * hash) + SENT_PROBE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSentProbeCount(); + hash = (37 * hash) + SUCCESSFUL_PROBE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSuccessfulProbeCount(); + if (hasProbingLatency()) { + hash = (37 * hash) + PROBING_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getProbingLatency().hashCode(); + } + if (hasDestinationEgressLocation()) { + hash = (37 * hash) + DESTINATION_EGRESS_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getDestinationEgressLocation().hashCode(); + } + hash = (37 * hash) + DESTINATION_ROUTER_FIELD_NUMBER; + hash = (53 * hash) + getDestinationRouter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse 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.networkmanagement.v1.ProbingDetails.SingleEdgeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse 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.networkmanagement.v1.ProbingDetails.SingleEdgeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +     * Probing results for a single edge device.
                                              +     * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse) + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.class, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProbingLatencyFieldBuilder(); + getDestinationEgressLocationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = 0; + sentProbeCount_ = 0; + successfulProbeCount_ = 0; + probingLatency_ = null; + if (probingLatencyBuilder_ != null) { + probingLatencyBuilder_.dispose(); + probingLatencyBuilder_ = null; + } + destinationEgressLocation_ = null; + if (destinationEgressLocationBuilder_ != null) { + destinationEgressLocationBuilder_.dispose(); + destinationEgressLocationBuilder_ = null; + } + destinationRouter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse build() { + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + buildPartial() { + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse result = + new com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = result_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sentProbeCount_ = sentProbeCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successfulProbeCount_ = successfulProbeCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.probingLatency_ = + probingLatencyBuilder_ == null ? probingLatency_ : probingLatencyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.destinationEgressLocation_ = + destinationEgressLocationBuilder_ == null + ? destinationEgressLocation_ + : destinationEgressLocationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.destinationRouter_ = destinationRouter_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse other) { + if (other + == com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + .getDefaultInstance()) return this; + if (other.result_ != 0) { + setResultValue(other.getResultValue()); + } + if (other.getSentProbeCount() != 0) { + setSentProbeCount(other.getSentProbeCount()); + } + if (other.getSuccessfulProbeCount() != 0) { + setSuccessfulProbeCount(other.getSuccessfulProbeCount()); + } + if (other.hasProbingLatency()) { + mergeProbingLatency(other.getProbingLatency()); + } + if (other.hasDestinationEgressLocation()) { + mergeDestinationEgressLocation(other.getDestinationEgressLocation()); + } + if (!other.getDestinationRouter().isEmpty()) { + destinationRouter_ = other.destinationRouter_; + bitField0_ |= 0x00000020; + 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 8: + { + result_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sentProbeCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + successfulProbeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getProbingLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getDestinationEgressLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + destinationRouter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + 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 result_ = 0; + + /** + * + * + *
                                              +       * The overall result of active probing for this egress device.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
                                              +       * The overall result of active probing for this egress device.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + result_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * The overall result of active probing for this egress device.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult() { + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.forNumber(result_); + return result == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +       * The overall result of active probing for this egress device.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult( + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + result_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * The overall result of active probing for this egress device.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return This builder for chaining. + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000001); + result_ = 0; + onChanged(); + return this; + } + + private int sentProbeCount_; + + /** + * + * + *
                                              +       * Number of probes sent.
                                              +       * 
                                              + * + * int32 sent_probe_count = 2; + * + * @return The sentProbeCount. + */ + @java.lang.Override + public int getSentProbeCount() { + return sentProbeCount_; + } + + /** + * + * + *
                                              +       * Number of probes sent.
                                              +       * 
                                              + * + * int32 sent_probe_count = 2; + * + * @param value The sentProbeCount to set. + * @return This builder for chaining. + */ + public Builder setSentProbeCount(int value) { + + sentProbeCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * Number of probes sent.
                                              +       * 
                                              + * + * int32 sent_probe_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearSentProbeCount() { + bitField0_ = (bitField0_ & ~0x00000002); + sentProbeCount_ = 0; + onChanged(); + return this; + } + + private int successfulProbeCount_; + + /** + * + * + *
                                              +       * Number of probes that reached the destination.
                                              +       * 
                                              + * + * int32 successful_probe_count = 3; + * + * @return The successfulProbeCount. + */ + @java.lang.Override + public int getSuccessfulProbeCount() { + return successfulProbeCount_; + } + + /** + * + * + *
                                              +       * Number of probes that reached the destination.
                                              +       * 
                                              + * + * int32 successful_probe_count = 3; + * + * @param value The successfulProbeCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessfulProbeCount(int value) { + + successfulProbeCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * Number of probes that reached the destination.
                                              +       * 
                                              + * + * int32 successful_probe_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccessfulProbeCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successfulProbeCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.networkmanagement.v1.LatencyDistribution probingLatency_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.LatencyDistribution, + com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder> + probingLatencyBuilder_; + + /** + * + * + *
                                              +       * Latency as measured by active probing in one direction: from the source
                                              +       * to the destination endpoint.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + * + * @return Whether the probingLatency field is set. + */ + public boolean hasProbingLatency() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +       * Latency as measured by active probing in one direction: from the source
                                              +       * to the destination endpoint.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + * + * @return The probingLatency. + */ + public com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency() { + if (probingLatencyBuilder_ == null) { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } else { + return probingLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +       * Latency as measured by active probing in one direction: from the source
                                              +       * to the destination endpoint.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + public Builder setProbingLatency( + com.google.cloud.networkmanagement.v1.LatencyDistribution value) { + if (probingLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + probingLatency_ = value; + } else { + probingLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * Latency as measured by active probing in one direction: from the source
                                              +       * to the destination endpoint.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + public Builder setProbingLatency( + com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder builderForValue) { + if (probingLatencyBuilder_ == null) { + probingLatency_ = builderForValue.build(); + } else { + probingLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * Latency as measured by active probing in one direction: from the source
                                              +       * to the destination endpoint.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + public Builder mergeProbingLatency( + com.google.cloud.networkmanagement.v1.LatencyDistribution value) { + if (probingLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && probingLatency_ != null + && probingLatency_ + != com.google.cloud.networkmanagement.v1.LatencyDistribution + .getDefaultInstance()) { + getProbingLatencyBuilder().mergeFrom(value); + } else { + probingLatency_ = value; + } + } else { + probingLatencyBuilder_.mergeFrom(value); + } + if (probingLatency_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +       * Latency as measured by active probing in one direction: from the source
                                              +       * to the destination endpoint.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + public Builder clearProbingLatency() { + bitField0_ = (bitField0_ & ~0x00000008); + probingLatency_ = null; + if (probingLatencyBuilder_ != null) { + probingLatencyBuilder_.dispose(); + probingLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * Latency as measured by active probing in one direction: from the source
                                              +       * to the destination endpoint.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + public com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder + getProbingLatencyBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getProbingLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +       * Latency as measured by active probing in one direction: from the source
                                              +       * to the destination endpoint.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + public com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder + getProbingLatencyOrBuilder() { + if (probingLatencyBuilder_ != null) { + return probingLatencyBuilder_.getMessageOrBuilder(); + } else { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } + } + + /** + * + * + *
                                              +       * Latency as measured by active probing in one direction: from the source
                                              +       * to the destination endpoint.
                                              +       * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.LatencyDistribution, + com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder> + getProbingLatencyFieldBuilder() { + if (probingLatencyBuilder_ == null) { + probingLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.LatencyDistribution, + com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder>( + getProbingLatency(), getParentForChildren(), isClean()); + probingLatency_ = null; + } + return probingLatencyBuilder_; + } + + private com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + destinationEgressLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder> + destinationEgressLocationBuilder_; + + /** + * + * + *
                                              +       * The EdgeLocation from which a packet, destined to the internet, will
                                              +       * egress the Google network.
                                              +       * This will only be populated for a connectivity test which has an internet
                                              +       * destination address.
                                              +       * The absence of this field *must not* be used as an indication that the
                                              +       * destination is part of the Google network.
                                              +       * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return Whether the destinationEgressLocation field is set. + */ + public boolean hasDestinationEgressLocation() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                              +       * The EdgeLocation from which a packet, destined to the internet, will
                                              +       * egress the Google network.
                                              +       * This will only be populated for a connectivity test which has an internet
                                              +       * destination address.
                                              +       * The absence of this field *must not* be used as an indication that the
                                              +       * destination is part of the Google network.
                                              +       * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return The destinationEgressLocation. + */ + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + getDestinationEgressLocation() { + if (destinationEgressLocationBuilder_ == null) { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + .getDefaultInstance() + : destinationEgressLocation_; + } else { + return destinationEgressLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +       * The EdgeLocation from which a packet, destined to the internet, will
                                              +       * egress the Google network.
                                              +       * This will only be populated for a connectivity test which has an internet
                                              +       * destination address.
                                              +       * The absence of this field *must not* be used as an indication that the
                                              +       * destination is part of the Google network.
                                              +       * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public Builder setDestinationEgressLocation( + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation value) { + if (destinationEgressLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationEgressLocation_ = value; + } else { + destinationEgressLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * The EdgeLocation from which a packet, destined to the internet, will
                                              +       * egress the Google network.
                                              +       * This will only be populated for a connectivity test which has an internet
                                              +       * destination address.
                                              +       * The absence of this field *must not* be used as an indication that the
                                              +       * destination is part of the Google network.
                                              +       * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public Builder setDestinationEgressLocation( + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder + builderForValue) { + if (destinationEgressLocationBuilder_ == null) { + destinationEgressLocation_ = builderForValue.build(); + } else { + destinationEgressLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * The EdgeLocation from which a packet, destined to the internet, will
                                              +       * egress the Google network.
                                              +       * This will only be populated for a connectivity test which has an internet
                                              +       * destination address.
                                              +       * The absence of this field *must not* be used as an indication that the
                                              +       * destination is part of the Google network.
                                              +       * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public Builder mergeDestinationEgressLocation( + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation value) { + if (destinationEgressLocationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && destinationEgressLocation_ != null + && destinationEgressLocation_ + != com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + .getDefaultInstance()) { + getDestinationEgressLocationBuilder().mergeFrom(value); + } else { + destinationEgressLocation_ = value; + } + } else { + destinationEgressLocationBuilder_.mergeFrom(value); + } + if (destinationEgressLocation_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +       * The EdgeLocation from which a packet, destined to the internet, will
                                              +       * egress the Google network.
                                              +       * This will only be populated for a connectivity test which has an internet
                                              +       * destination address.
                                              +       * The absence of this field *must not* be used as an indication that the
                                              +       * destination is part of the Google network.
                                              +       * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public Builder clearDestinationEgressLocation() { + bitField0_ = (bitField0_ & ~0x00000010); + destinationEgressLocation_ = null; + if (destinationEgressLocationBuilder_ != null) { + destinationEgressLocationBuilder_.dispose(); + destinationEgressLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * The EdgeLocation from which a packet, destined to the internet, will
                                              +       * egress the Google network.
                                              +       * This will only be populated for a connectivity test which has an internet
                                              +       * destination address.
                                              +       * The absence of this field *must not* be used as an indication that the
                                              +       * destination is part of the Google network.
                                              +       * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder + getDestinationEgressLocationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getDestinationEgressLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +       * The EdgeLocation from which a packet, destined to the internet, will
                                              +       * egress the Google network.
                                              +       * This will only be populated for a connectivity test which has an internet
                                              +       * destination address.
                                              +       * The absence of this field *must not* be used as an indication that the
                                              +       * destination is part of the Google network.
                                              +       * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder + getDestinationEgressLocationOrBuilder() { + if (destinationEgressLocationBuilder_ != null) { + return destinationEgressLocationBuilder_.getMessageOrBuilder(); + } else { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + .getDefaultInstance() + : destinationEgressLocation_; + } + } + + /** + * + * + *
                                              +       * The EdgeLocation from which a packet, destined to the internet, will
                                              +       * egress the Google network.
                                              +       * This will only be populated for a connectivity test which has an internet
                                              +       * destination address.
                                              +       * The absence of this field *must not* be used as an indication that the
                                              +       * destination is part of the Google network.
                                              +       * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder> + getDestinationEgressLocationFieldBuilder() { + if (destinationEgressLocationBuilder_ == null) { + destinationEgressLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder>( + getDestinationEgressLocation(), getParentForChildren(), isClean()); + destinationEgressLocation_ = null; + } + return destinationEgressLocationBuilder_; + } + + private java.lang.Object destinationRouter_ = ""; + + /** + * + * + *
                                              +       * Router name in the format '{router}.{metroshard}'. For example:
                                              +       * pf01.aaa01, pr02.aaa01.
                                              +       * 
                                              + * + * string destination_router = 6; + * + * @return The destinationRouter. + */ + public java.lang.String getDestinationRouter() { + java.lang.Object ref = destinationRouter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationRouter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +       * Router name in the format '{router}.{metroshard}'. For example:
                                              +       * pf01.aaa01, pr02.aaa01.
                                              +       * 
                                              + * + * string destination_router = 6; + * + * @return The bytes for destinationRouter. + */ + public com.google.protobuf.ByteString getDestinationRouterBytes() { + java.lang.Object ref = destinationRouter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationRouter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +       * Router name in the format '{router}.{metroshard}'. For example:
                                              +       * pf01.aaa01, pr02.aaa01.
                                              +       * 
                                              + * + * string destination_router = 6; + * + * @param value The destinationRouter to set. + * @return This builder for chaining. + */ + public Builder setDestinationRouter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationRouter_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * Router name in the format '{router}.{metroshard}'. For example:
                                              +       * pf01.aaa01, pr02.aaa01.
                                              +       * 
                                              + * + * string destination_router = 6; + * + * @return This builder for chaining. + */ + public Builder clearDestinationRouter() { + destinationRouter_ = getDefaultInstance().getDestinationRouter(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * Router name in the format '{router}.{metroshard}'. For example:
                                              +       * pf01.aaa01, pr02.aaa01.
                                              +       * 
                                              + * + * string destination_router = 6; + * + * @param value The bytes for destinationRouter to set. + * @return This builder for chaining. + */ + public Builder setDestinationRouterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationRouter_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse) + private static final com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse(); + } + + public static com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleEdgeResponse 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.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RESULT_FIELD_NUMBER = 1; + private int result_ = 0; + + /** + * + * + *
                                              +   * The overall result of active probing.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
                                              +   * The overall result of active probing.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult() { + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.forNumber(result_); + return result == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.UNRECOGNIZED + : result; + } + + public static final int VERIFY_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp verifyTime_; + + /** + * + * + *
                                              +   * The time that reachability was assessed through active probing.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + * + * @return Whether the verifyTime field is set. + */ + @java.lang.Override + public boolean hasVerifyTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * The time that reachability was assessed through active probing.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + * + * @return The verifyTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getVerifyTime() { + return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_; + } + + /** + * + * + *
                                              +   * The time that reachability was assessed through active probing.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() { + return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_; + } + + public static final int ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status error_; + + /** + * + * + *
                                              +   * Details about an internal failure or the cancellation of active probing.
                                              +   * 
                                              + * + * .google.rpc.Status error = 3; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Details about an internal failure or the cancellation of active probing.
                                              +   * 
                                              + * + * .google.rpc.Status error = 3; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
                                              +   * Details about an internal failure or the cancellation of active probing.
                                              +   * 
                                              + * + * .google.rpc.Status error = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int ABORT_CAUSE_FIELD_NUMBER = 4; + private int abortCause_ = 0; + + /** + * + * + *
                                              +   * The reason probing was aborted.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; * * * @return The enum numeric value on the wire for abortCause. @@ -1402,122 +3294,233 @@ public com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointIn * @return Whether the probingLatency field is set. */ @java.lang.Override - public boolean hasProbingLatency() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasProbingLatency() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +   * Latency as measured by active probing in one direction:
                                              +   * from the source to the destination endpoint.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * @return The probingLatency. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency() { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } + + /** + * + * + *
                                              +   * Latency as measured by active probing in one direction:
                                              +   * from the source to the destination endpoint.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder + getProbingLatencyOrBuilder() { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } + + public static final int DESTINATION_EGRESS_LOCATION_FIELD_NUMBER = 9; + private com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + destinationEgressLocation_; + + /** + * + * + *
                                              +   * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +   * the Google network.
                                              +   * This will only be populated for a connectivity test which has an internet
                                              +   * destination address.
                                              +   * The absence of this field *must not* be used as an indication that the
                                              +   * destination is part of the Google network.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * + * + * @return Whether the destinationEgressLocation field is set. + */ + @java.lang.Override + public boolean hasDestinationEgressLocation() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                              +   * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +   * the Google network.
                                              +   * This will only be populated for a connectivity test which has an internet
                                              +   * destination address.
                                              +   * The absence of this field *must not* be used as an indication that the
                                              +   * destination is part of the Google network.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * + * + * @return The destinationEgressLocation. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + getDestinationEgressLocation() { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() + : destinationEgressLocation_; + } + + /** + * + * + *
                                              +   * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +   * the Google network.
                                              +   * This will only be populated for a connectivity test which has an internet
                                              +   * destination address.
                                              +   * The absence of this field *must not* be used as an indication that the
                                              +   * destination is part of the Google network.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder + getDestinationEgressLocationOrBuilder() { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() + : destinationEgressLocation_; + } + + public static final int EDGE_RESPONSES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + edgeResponses_; + + /** + * + * + *
                                              +   * Probing results for all edge devices.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + @java.lang.Override + public java.util.List + getEdgeResponsesList() { + return edgeResponses_; } /** * * *
                                              -   * Latency as measured by active probing in one direction:
                                              -   * from the source to the destination endpoint.
                                              +   * Probing results for all edge devices.
                                                  * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; - * - * @return The probingLatency. + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ @java.lang.Override - public com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency() { - return probingLatency_ == null - ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() - : probingLatency_; + public java.util.List< + ? extends + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder> + getEdgeResponsesOrBuilderList() { + return edgeResponses_; } /** * * *
                                              -   * Latency as measured by active probing in one direction:
                                              -   * from the source to the destination endpoint.
                                              +   * Probing results for all edge devices.
                                                  * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ @java.lang.Override - public com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder - getProbingLatencyOrBuilder() { - return probingLatency_ == null - ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() - : probingLatency_; + public int getEdgeResponsesCount() { + return edgeResponses_.size(); } - public static final int DESTINATION_EGRESS_LOCATION_FIELD_NUMBER = 9; - private com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation - destinationEgressLocation_; - /** * * *
                                              -   * The EdgeLocation from which a packet destined for/originating from the
                                              -   * internet will egress/ingress the Google network.
                                              -   * This will only be populated for a connectivity test which has an internet
                                              -   * destination/source address.
                                              -   * The absence of this field *must not* be used as an indication that the
                                              -   * destination/source is part of the Google network.
                                              +   * Probing results for all edge devices.
                                                  * 
                                              * * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * - * - * @return Whether the destinationEgressLocation field is set. */ @java.lang.Override - public boolean hasDestinationEgressLocation() { - return ((bitField0_ & 0x00000010) != 0); + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse getEdgeResponses( + int index) { + return edgeResponses_.get(index); } /** * * *
                                              -   * The EdgeLocation from which a packet destined for/originating from the
                                              -   * internet will egress/ingress the Google network.
                                              -   * This will only be populated for a connectivity test which has an internet
                                              -   * destination/source address.
                                              -   * The absence of this field *must not* be used as an indication that the
                                              -   * destination/source is part of the Google network.
                                              +   * Probing results for all edge devices.
                                                  * 
                                              * * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * - * - * @return The destinationEgressLocation. */ @java.lang.Override - public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation - getDestinationEgressLocation() { - return destinationEgressLocation_ == null - ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() - : destinationEgressLocation_; + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder + getEdgeResponsesOrBuilder(int index) { + return edgeResponses_.get(index); } + public static final int PROBED_ALL_DEVICES_FIELD_NUMBER = 11; + private boolean probedAllDevices_ = false; + /** * * *
                                              -   * The EdgeLocation from which a packet destined for/originating from the
                                              -   * internet will egress/ingress the Google network.
                                              -   * This will only be populated for a connectivity test which has an internet
                                              -   * destination/source address.
                                              -   * The absence of this field *must not* be used as an indication that the
                                              -   * destination/source is part of the Google network.
                                              +   * Whether all relevant edge devices were probed.
                                                  * 
                                              * - * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; - * + * bool probed_all_devices = 11; + * + * @return The probedAllDevices. */ @java.lang.Override - public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder - getDestinationEgressLocationOrBuilder() { - return destinationEgressLocation_ == null - ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() - : destinationEgressLocation_; + public boolean getProbedAllDevices() { + return probedAllDevices_; } private byte memoizedIsInitialized = -1; @@ -1567,6 +3570,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getDestinationEgressLocation()); } + for (int i = 0; i < edgeResponses_.size(); i++) { + output.writeMessage(10, edgeResponses_.get(i)); + } + if (probedAllDevices_ != false) { + output.writeBool(11, probedAllDevices_); + } getUnknownFields().writeTo(output); } @@ -1611,6 +3620,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, getDestinationEgressLocation()); } + for (int i = 0; i < edgeResponses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, edgeResponses_.get(i)); + } + if (probedAllDevices_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, probedAllDevices_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1652,6 +3667,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDestinationEgressLocation().equals(other.getDestinationEgressLocation())) return false; } + if (!getEdgeResponsesList().equals(other.getEdgeResponsesList())) return false; + if (getProbedAllDevices() != other.getProbedAllDevices()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1691,6 +3708,12 @@ public int hashCode() { hash = (37 * hash) + DESTINATION_EGRESS_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getDestinationEgressLocation().hashCode(); } + if (getEdgeResponsesCount() > 0) { + hash = (37 * hash) + EDGE_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getEdgeResponsesList().hashCode(); + } + hash = (37 * hash) + PROBED_ALL_DEVICES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProbedAllDevices()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1781,381 +3804,843 @@ public static Builder newBuilder(com.google.cloud.networkmanagement.v1.ProbingDe 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 + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Results of active probing from the last run of the test.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.ProbingDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.ProbingDetails) + com.google.cloud.networkmanagement.v1.ProbingDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ProbingDetails.class, + com.google.cloud.networkmanagement.v1.ProbingDetails.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.ProbingDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVerifyTimeFieldBuilder(); + getErrorFieldBuilder(); + getEndpointInfoFieldBuilder(); + getProbingLatencyFieldBuilder(); + getDestinationEgressLocationFieldBuilder(); + getEdgeResponsesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = 0; + verifyTime_ = null; + if (verifyTimeBuilder_ != null) { + verifyTimeBuilder_.dispose(); + verifyTimeBuilder_ = null; + } + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + abortCause_ = 0; + sentProbeCount_ = 0; + successfulProbeCount_ = 0; + endpointInfo_ = null; + if (endpointInfoBuilder_ != null) { + endpointInfoBuilder_.dispose(); + endpointInfoBuilder_ = null; + } + probingLatency_ = null; + if (probingLatencyBuilder_ != null) { + probingLatencyBuilder_.dispose(); + probingLatencyBuilder_ = null; + } + destinationEgressLocation_ = null; + if (destinationEgressLocationBuilder_ != null) { + destinationEgressLocationBuilder_.dispose(); + destinationEgressLocationBuilder_ = null; + } + if (edgeResponsesBuilder_ == null) { + edgeResponses_ = java.util.Collections.emptyList(); + } else { + edgeResponses_ = null; + edgeResponsesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + probedAllDevices_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.ProbingDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails build() { + com.google.cloud.networkmanagement.v1.ProbingDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails buildPartial() { + com.google.cloud.networkmanagement.v1.ProbingDetails result = + new com.google.cloud.networkmanagement.v1.ProbingDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkmanagement.v1.ProbingDetails result) { + if (edgeResponsesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + edgeResponses_ = java.util.Collections.unmodifiableList(edgeResponses_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.edgeResponses_ = edgeResponses_; + } else { + result.edgeResponses_ = edgeResponsesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.ProbingDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = result_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.verifyTime_ = verifyTimeBuilder_ == null ? verifyTime_ : verifyTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.abortCause_ = abortCause_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sentProbeCount_ = sentProbeCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.successfulProbeCount_ = successfulProbeCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endpointInfo_ = + endpointInfoBuilder_ == null ? endpointInfo_ : endpointInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.probingLatency_ = + probingLatencyBuilder_ == null ? probingLatency_ : probingLatencyBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.destinationEgressLocation_ = + destinationEgressLocationBuilder_ == null + ? destinationEgressLocation_ + : destinationEgressLocationBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.probedAllDevices_ = probedAllDevices_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - * - * - *
                                              -   * Results of active probing from the last run of the test.
                                              -   * 
                                              - * - * Protobuf type {@code google.cloud.networkmanagement.v1.ProbingDetails} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.ProbingDetails) - com.google.cloud.networkmanagement.v1.ProbingDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkmanagement.v1.TestOuterClass - .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_descriptor; + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkmanagement.v1.TestOuterClass - .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkmanagement.v1.ProbingDetails.class, - com.google.cloud.networkmanagement.v1.ProbingDetails.Builder.class); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.ProbingDetails) { + return mergeFrom((com.google.cloud.networkmanagement.v1.ProbingDetails) other); + } else { + super.mergeFrom(other); + return this; + } } - // Construct using com.google.cloud.networkmanagement.v1.ProbingDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.ProbingDetails other) { + if (other == com.google.cloud.networkmanagement.v1.ProbingDetails.getDefaultInstance()) + return this; + if (other.result_ != 0) { + setResultValue(other.getResultValue()); + } + if (other.hasVerifyTime()) { + mergeVerifyTime(other.getVerifyTime()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.abortCause_ != 0) { + setAbortCauseValue(other.getAbortCauseValue()); + } + if (other.getSentProbeCount() != 0) { + setSentProbeCount(other.getSentProbeCount()); + } + if (other.getSuccessfulProbeCount() != 0) { + setSuccessfulProbeCount(other.getSuccessfulProbeCount()); + } + if (other.hasEndpointInfo()) { + mergeEndpointInfo(other.getEndpointInfo()); + } + if (other.hasProbingLatency()) { + mergeProbingLatency(other.getProbingLatency()); + } + if (other.hasDestinationEgressLocation()) { + mergeDestinationEgressLocation(other.getDestinationEgressLocation()); + } + if (edgeResponsesBuilder_ == null) { + if (!other.edgeResponses_.isEmpty()) { + if (edgeResponses_.isEmpty()) { + edgeResponses_ = other.edgeResponses_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureEdgeResponsesIsMutable(); + edgeResponses_.addAll(other.edgeResponses_); + } + onChanged(); + } + } else { + if (!other.edgeResponses_.isEmpty()) { + if (edgeResponsesBuilder_.isEmpty()) { + edgeResponsesBuilder_.dispose(); + edgeResponsesBuilder_ = null; + edgeResponses_ = other.edgeResponses_; + bitField0_ = (bitField0_ & ~0x00000200); + edgeResponsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEdgeResponsesFieldBuilder() + : null; + } else { + edgeResponsesBuilder_.addAllMessages(other.edgeResponses_); + } + } + } + if (other.getProbedAllDevices() != false) { + setProbedAllDevices(other.getProbedAllDevices()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public final boolean isInitialized() { + return true; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getVerifyTimeFieldBuilder(); - getErrorFieldBuilder(); - getEndpointInfoFieldBuilder(); - getProbingLatencyFieldBuilder(); - getDestinationEgressLocationFieldBuilder(); + @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: + { + result_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getVerifyTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + abortCause_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + sentProbeCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + successfulProbeCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage(getEndpointInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getProbingLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + getDestinationEgressLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse m = + input.readMessage( + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + .parser(), + extensionRegistry); + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(m); + } else { + edgeResponsesBuilder_.addMessage(m); + } + break; + } // case 82 + case 88: + { + probedAllDevices_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + 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 result_ = 0; + + /** + * + * + *
                                              +     * The overall result of active probing.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
                                              +     * The overall result of active probing.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + result_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The overall result of active probing.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult() { + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.forNumber(result_); + return result == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.UNRECOGNIZED + : result; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - result_ = 0; - verifyTime_ = null; - if (verifyTimeBuilder_ != null) { - verifyTimeBuilder_.dispose(); - verifyTimeBuilder_ = null; - } - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; - } - abortCause_ = 0; - sentProbeCount_ = 0; - successfulProbeCount_ = 0; - endpointInfo_ = null; - if (endpointInfoBuilder_ != null) { - endpointInfoBuilder_.dispose(); - endpointInfoBuilder_ = null; - } - probingLatency_ = null; - if (probingLatencyBuilder_ != null) { - probingLatencyBuilder_.dispose(); - probingLatencyBuilder_ = null; - } - destinationEgressLocation_ = null; - if (destinationEgressLocationBuilder_ != null) { - destinationEgressLocationBuilder_.dispose(); - destinationEgressLocationBuilder_ = null; + /** + * + * + *
                                              +     * The overall result of active probing.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult( + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000001; + result_ = value.getNumber(); + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkmanagement.v1.TestOuterClass - .internal_static_google_cloud_networkmanagement_v1_ProbingDetails_descriptor; + /** + * + * + *
                                              +     * The overall result of active probing.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * + * @return This builder for chaining. + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000001); + result_ = 0; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.networkmanagement.v1.ProbingDetails getDefaultInstanceForType() { - return com.google.cloud.networkmanagement.v1.ProbingDetails.getDefaultInstance(); + private com.google.protobuf.Timestamp verifyTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + verifyTimeBuilder_; + + /** + * + * + *
                                              +     * The time that reachability was assessed through active probing.
                                              +     * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + * + * @return Whether the verifyTime field is set. + */ + public boolean hasVerifyTime() { + return ((bitField0_ & 0x00000002) != 0); } - @java.lang.Override - public com.google.cloud.networkmanagement.v1.ProbingDetails build() { - com.google.cloud.networkmanagement.v1.ProbingDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
                                              +     * The time that reachability was assessed through active probing.
                                              +     * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + * + * @return The verifyTime. + */ + public com.google.protobuf.Timestamp getVerifyTime() { + if (verifyTimeBuilder_ == null) { + return verifyTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : verifyTime_; + } else { + return verifyTimeBuilder_.getMessage(); } - return result; } - @java.lang.Override - public com.google.cloud.networkmanagement.v1.ProbingDetails buildPartial() { - com.google.cloud.networkmanagement.v1.ProbingDetails result = - new com.google.cloud.networkmanagement.v1.ProbingDetails(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
                                              +     * The time that reachability was assessed through active probing.
                                              +     * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public Builder setVerifyTime(com.google.protobuf.Timestamp value) { + if (verifyTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verifyTime_ = value; + } else { + verifyTimeBuilder_.setMessage(value); } - onBuilt(); - return result; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - private void buildPartial0(com.google.cloud.networkmanagement.v1.ProbingDetails result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.result_ = result_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.verifyTime_ = verifyTimeBuilder_ == null ? verifyTime_ : verifyTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.abortCause_ = abortCause_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.sentProbeCount_ = sentProbeCount_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.successfulProbeCount_ = successfulProbeCount_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.endpointInfo_ = - endpointInfoBuilder_ == null ? endpointInfo_ : endpointInfoBuilder_.build(); - to_bitField0_ |= 0x00000004; + /** + * + * + *
                                              +     * The time that reachability was assessed through active probing.
                                              +     * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public Builder setVerifyTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (verifyTimeBuilder_ == null) { + verifyTime_ = builderForValue.build(); + } else { + verifyTimeBuilder_.setMessage(builderForValue.build()); } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.probingLatency_ = - probingLatencyBuilder_ == null ? probingLatency_ : probingLatencyBuilder_.build(); - to_bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The time that reachability was assessed through active probing.
                                              +     * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public Builder mergeVerifyTime(com.google.protobuf.Timestamp value) { + if (verifyTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && verifyTime_ != null + && verifyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getVerifyTimeBuilder().mergeFrom(value); + } else { + verifyTime_ = value; + } + } else { + verifyTimeBuilder_.mergeFrom(value); } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.destinationEgressLocation_ = - destinationEgressLocationBuilder_ == null - ? destinationEgressLocation_ - : destinationEgressLocationBuilder_.build(); - to_bitField0_ |= 0x00000010; + if (verifyTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); } - result.bitField0_ |= to_bitField0_; + return this; } - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
                                              +     * The time that reachability was assessed through active probing.
                                              +     * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public Builder clearVerifyTime() { + bitField0_ = (bitField0_ & ~0x00000002); + verifyTime_ = null; + if (verifyTimeBuilder_ != null) { + verifyTimeBuilder_.dispose(); + verifyTimeBuilder_ = null; + } + onChanged(); + return this; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
                                              +     * The time that reachability was assessed through active probing.
                                              +     * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getVerifyTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getVerifyTimeFieldBuilder().getBuilder(); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
                                              +     * The time that reachability was assessed through active probing.
                                              +     * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() { + if (verifyTimeBuilder_ != null) { + return verifyTimeBuilder_.getMessageOrBuilder(); + } else { + return verifyTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : verifyTime_; + } } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
                                              +     * The time that reachability was assessed through active probing.
                                              +     * 
                                              + * + * .google.protobuf.Timestamp verify_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getVerifyTimeFieldBuilder() { + if (verifyTimeBuilder_ == null) { + verifyTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getVerifyTime(), getParentForChildren(), isClean()); + verifyTime_ = null; + } + return verifyTimeBuilder_; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
                                              +     * Details about an internal failure or the cancellation of active probing.
                                              +     * 
                                              + * + * .google.rpc.Status error = 3; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000004) != 0); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.networkmanagement.v1.ProbingDetails) { - return mergeFrom((com.google.cloud.networkmanagement.v1.ProbingDetails) other); + /** + * + * + *
                                              +     * Details about an internal failure or the cancellation of active probing.
                                              +     * 
                                              + * + * .google.rpc.Status error = 3; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } else { - super.mergeFrom(other); - return this; + return errorBuilder_.getMessage(); } } - public Builder mergeFrom(com.google.cloud.networkmanagement.v1.ProbingDetails other) { - if (other == com.google.cloud.networkmanagement.v1.ProbingDetails.getDefaultInstance()) - return this; - if (other.result_ != 0) { - setResultValue(other.getResultValue()); - } - if (other.hasVerifyTime()) { - mergeVerifyTime(other.getVerifyTime()); - } - if (other.hasError()) { - mergeError(other.getError()); - } - if (other.abortCause_ != 0) { - setAbortCauseValue(other.getAbortCauseValue()); - } - if (other.getSentProbeCount() != 0) { - setSentProbeCount(other.getSentProbeCount()); - } - if (other.getSuccessfulProbeCount() != 0) { - setSuccessfulProbeCount(other.getSuccessfulProbeCount()); - } - if (other.hasEndpointInfo()) { - mergeEndpointInfo(other.getEndpointInfo()); - } - if (other.hasProbingLatency()) { - mergeProbingLatency(other.getProbingLatency()); - } - if (other.hasDestinationEgressLocation()) { - mergeDestinationEgressLocation(other.getDestinationEgressLocation()); + /** + * + * + *
                                              +     * Details about an internal failure or the cancellation of active probing.
                                              +     * 
                                              + * + * .google.rpc.Status error = 3; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000004; 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(); + /** + * + * + *
                                              +     * Details about an internal failure or the cancellation of active probing.
                                              +     * 
                                              + * + * .google.rpc.Status error = 3; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - result_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getVerifyTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - abortCause_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - sentProbeCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - successfulProbeCount_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - input.readMessage(getEndpointInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage(getProbingLatencyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - input.readMessage( - getDestinationEgressLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - 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 + bitField0_ |= 0x00000004; + onChanged(); return this; } - private int bitField0_; - - private int result_ = 0; - /** * * *
                                              -     * The overall result of active probing.
                                              +     * Details about an internal failure or the cancellation of active probing.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - * - * @return The enum numeric value on the wire for result. + * .google.rpc.Status error = 3; */ - @java.lang.Override - public int getResultValue() { - return result_; + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; } /** * * *
                                              -     * The overall result of active probing.
                                              +     * Details about an internal failure or the cancellation of active probing.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - * - * @param value The enum numeric value on the wire for result to set. - * @return This builder for chaining. + * .google.rpc.Status error = 3; */ - public Builder setResultValue(int value) { - result_ = value; - bitField0_ |= 0x00000001; + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000004); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } onChanged(); return this; } @@ -2164,174 +4649,196 @@ public Builder setResultValue(int value) { * * *
                                              -     * The overall result of active probing.
                                              +     * Details about an internal failure or the cancellation of active probing.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; - * - * @return The result. + * .google.rpc.Status error = 3; */ - @java.lang.Override - public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult getResult() { - com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = - com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.forNumber(result_); - return result == null - ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult.UNRECOGNIZED - : result; + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getErrorFieldBuilder().getBuilder(); } /** * * *
                                              -     * The overall result of active probing.
                                              +     * Details about an internal failure or the cancellation of active probing.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * .google.rpc.Status error = 3; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** * - * @param value The result to set. - * @return This builder for chaining. + * + *
                                              +     * Details about an internal failure or the cancellation of active probing.
                                              +     * 
                                              + * + * .google.rpc.Status error = 3; */ - public Builder setResult( - com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; } - bitField0_ |= 0x00000001; - result_ = value.getNumber(); - onChanged(); - return this; + return errorBuilder_; } + private int abortCause_ = 0; + /** * * *
                                              -     * The overall result of active probing.
                                              +     * The reason probing was aborted.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult result = 1; + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * + * + * @return The enum numeric value on the wire for abortCause. + */ + @java.lang.Override + public int getAbortCauseValue() { + return abortCause_; + } + + /** + * + * + *
                                              +     * The reason probing was aborted.
                                              +     * 
                                              * + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * + * + * @param value The enum numeric value on the wire for abortCause to set. * @return This builder for chaining. */ - public Builder clearResult() { - bitField0_ = (bitField0_ & ~0x00000001); - result_ = 0; + public Builder setAbortCauseValue(int value) { + abortCause_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private com.google.protobuf.Timestamp verifyTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - verifyTimeBuilder_; - /** * * *
                                              -     * The time that reachability was assessed through active probing.
                                              +     * The reason probing was aborted.
                                                    * 
                                              * - * .google.protobuf.Timestamp verify_time = 2; + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * * - * @return Whether the verifyTime field is set. + * @return The abortCause. */ - public boolean hasVerifyTime() { - return ((bitField0_ & 0x00000002) != 0); + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause getAbortCause() { + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause result = + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause.forNumber( + abortCause_); + return result == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause.UNRECOGNIZED + : result; } /** * * *
                                              -     * The time that reachability was assessed through active probing.
                                              +     * The reason probing was aborted.
                                                    * 
                                              * - * .google.protobuf.Timestamp verify_time = 2; + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * * - * @return The verifyTime. + * @param value The abortCause to set. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp getVerifyTime() { - if (verifyTimeBuilder_ == null) { - return verifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : verifyTime_; - } else { - return verifyTimeBuilder_.getMessage(); + public Builder setAbortCause( + com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000008; + abortCause_ = value.getNumber(); + onChanged(); + return this; } /** * * *
                                              -     * The time that reachability was assessed through active probing.
                                              +     * The reason probing was aborted.
                                                    * 
                                              * - * .google.protobuf.Timestamp verify_time = 2; + * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * + * + * @return This builder for chaining. */ - public Builder setVerifyTime(com.google.protobuf.Timestamp value) { - if (verifyTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - verifyTime_ = value; - } else { - verifyTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; + public Builder clearAbortCause() { + bitField0_ = (bitField0_ & ~0x00000008); + abortCause_ = 0; onChanged(); return this; } + private int sentProbeCount_; + /** * * *
                                              -     * The time that reachability was assessed through active probing.
                                              +     * Number of probes sent.
                                                    * 
                                              * - * .google.protobuf.Timestamp verify_time = 2; + * int32 sent_probe_count = 5; + * + * @return The sentProbeCount. */ - public Builder setVerifyTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (verifyTimeBuilder_ == null) { - verifyTime_ = builderForValue.build(); - } else { - verifyTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public int getSentProbeCount() { + return sentProbeCount_; } /** * * *
                                              -     * The time that reachability was assessed through active probing.
                                              +     * Number of probes sent.
                                                    * 
                                              * - * .google.protobuf.Timestamp verify_time = 2; + * int32 sent_probe_count = 5; + * + * @param value The sentProbeCount to set. + * @return This builder for chaining. */ - public Builder mergeVerifyTime(com.google.protobuf.Timestamp value) { - if (verifyTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && verifyTime_ != null - && verifyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getVerifyTimeBuilder().mergeFrom(value); - } else { - verifyTime_ = value; - } - } else { - verifyTimeBuilder_.mergeFrom(value); - } - if (verifyTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } + public Builder setSentProbeCount(int value) { + + sentProbeCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); return this; } @@ -2339,118 +4846,118 @@ public Builder mergeVerifyTime(com.google.protobuf.Timestamp value) { * * *
                                              -     * The time that reachability was assessed through active probing.
                                              +     * Number of probes sent.
                                                    * 
                                              * - * .google.protobuf.Timestamp verify_time = 2; + * int32 sent_probe_count = 5; + * + * @return This builder for chaining. */ - public Builder clearVerifyTime() { - bitField0_ = (bitField0_ & ~0x00000002); - verifyTime_ = null; - if (verifyTimeBuilder_ != null) { - verifyTimeBuilder_.dispose(); - verifyTimeBuilder_ = null; - } + public Builder clearSentProbeCount() { + bitField0_ = (bitField0_ & ~0x00000010); + sentProbeCount_ = 0; onChanged(); return this; } + private int successfulProbeCount_; + /** * * *
                                              -     * The time that reachability was assessed through active probing.
                                              +     * Number of probes that reached the destination.
                                                    * 
                                              * - * .google.protobuf.Timestamp verify_time = 2; + * int32 successful_probe_count = 6; + * + * @return The successfulProbeCount. */ - public com.google.protobuf.Timestamp.Builder getVerifyTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getVerifyTimeFieldBuilder().getBuilder(); + @java.lang.Override + public int getSuccessfulProbeCount() { + return successfulProbeCount_; } /** * * *
                                              -     * The time that reachability was assessed through active probing.
                                              +     * Number of probes that reached the destination.
                                                    * 
                                              * - * .google.protobuf.Timestamp verify_time = 2; + * int32 successful_probe_count = 6; + * + * @param value The successfulProbeCount to set. + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() { - if (verifyTimeBuilder_ != null) { - return verifyTimeBuilder_.getMessageOrBuilder(); - } else { - return verifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : verifyTime_; - } + public Builder setSuccessfulProbeCount(int value) { + + successfulProbeCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
                                              -     * The time that reachability was assessed through active probing.
                                              +     * Number of probes that reached the destination.
                                                    * 
                                              * - * .google.protobuf.Timestamp verify_time = 2; + * int32 successful_probe_count = 6; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getVerifyTimeFieldBuilder() { - if (verifyTimeBuilder_ == null) { - verifyTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getVerifyTime(), getParentForChildren(), isClean()); - verifyTime_ = null; - } - return verifyTimeBuilder_; + public Builder clearSuccessfulProbeCount() { + bitField0_ = (bitField0_ & ~0x00000020); + successfulProbeCount_ = 0; + onChanged(); + return this; } - private com.google.rpc.Status error_; + private com.google.cloud.networkmanagement.v1.EndpointInfo endpointInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.cloud.networkmanagement.v1.EndpointInfo, + com.google.cloud.networkmanagement.v1.EndpointInfo.Builder, + com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder> + endpointInfoBuilder_; /** * * *
                                              -     * Details about an internal failure or the cancellation of active probing.
                                              +     * The source and destination endpoints derived from the test input and used
                                              +     * for active probing.
                                                    * 
                                              * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; * - * @return Whether the error field is set. + * @return Whether the endpointInfo field is set. */ - public boolean hasError() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasEndpointInfo() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
                                              -     * Details about an internal failure or the cancellation of active probing.
                                              +     * The source and destination endpoints derived from the test input and used
                                              +     * for active probing.
                                                    * 
                                              * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; * - * @return The error. + * @return The endpointInfo. */ - public com.google.rpc.Status getError() { - if (errorBuilder_ == null) { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + public com.google.cloud.networkmanagement.v1.EndpointInfo getEndpointInfo() { + if (endpointInfoBuilder_ == null) { + return endpointInfo_ == null + ? com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance() + : endpointInfo_; } else { - return errorBuilder_.getMessage(); + return endpointInfoBuilder_.getMessage(); } } @@ -2458,21 +4965,22 @@ public com.google.rpc.Status getError() { * * *
                                              -     * Details about an internal failure or the cancellation of active probing.
                                              +     * The source and destination endpoints derived from the test input and used
                                              +     * for active probing.
                                                    * 
                                              * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; */ - public Builder setError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { + public Builder setEndpointInfo(com.google.cloud.networkmanagement.v1.EndpointInfo value) { + if (endpointInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - error_ = value; + endpointInfo_ = value; } else { - errorBuilder_.setMessage(value); + endpointInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2481,18 +4989,20 @@ public Builder setError(com.google.rpc.Status value) { * * *
                                              -     * Details about an internal failure or the cancellation of active probing.
                                              +     * The source and destination endpoints derived from the test input and used
                                              +     * for active probing.
                                                    * 
                                              * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); + public Builder setEndpointInfo( + com.google.cloud.networkmanagement.v1.EndpointInfo.Builder builderForValue) { + if (endpointInfoBuilder_ == null) { + endpointInfo_ = builderForValue.build(); } else { - errorBuilder_.setMessage(builderForValue.build()); + endpointInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2501,25 +5011,27 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
                                              -     * Details about an internal failure or the cancellation of active probing.
                                              +     * The source and destination endpoints derived from the test input and used
                                              +     * for active probing.
                                                    * 
                                              * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; */ - public Builder mergeError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { - getErrorBuilder().mergeFrom(value); + public Builder mergeEndpointInfo(com.google.cloud.networkmanagement.v1.EndpointInfo value) { + if (endpointInfoBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && endpointInfo_ != null + && endpointInfo_ + != com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance()) { + getEndpointInfoBuilder().mergeFrom(value); } else { - error_ = value; + endpointInfo_ = value; } } else { - errorBuilder_.mergeFrom(value); + endpointInfoBuilder_.mergeFrom(value); } - if (error_ != null) { - bitField0_ |= 0x00000004; + if (endpointInfo_ != null) { + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2529,17 +5041,18 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
                                              -     * Details about an internal failure or the cancellation of active probing.
                                              +     * The source and destination endpoints derived from the test input and used
                                              +     * for active probing.
                                                    * 
                                              * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; */ - public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000004); - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; + public Builder clearEndpointInfo() { + bitField0_ = (bitField0_ & ~0x00000040); + endpointInfo_ = null; + if (endpointInfoBuilder_ != null) { + endpointInfoBuilder_.dispose(); + endpointInfoBuilder_ = null; } onChanged(); return this; @@ -2549,31 +5062,35 @@ public Builder clearError() { * * *
                                              -     * Details about an internal failure or the cancellation of active probing.
                                              +     * The source and destination endpoints derived from the test input and used
                                              +     * for active probing.
                                                    * 
                                              * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; */ - public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00000004; + public com.google.cloud.networkmanagement.v1.EndpointInfo.Builder getEndpointInfoBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return getErrorFieldBuilder().getBuilder(); + return getEndpointInfoFieldBuilder().getBuilder(); } /** * * *
                                              -     * Details about an internal failure or the cancellation of active probing.
                                              +     * The source and destination endpoints derived from the test input and used
                                              +     * for active probing.
                                                    * 
                                              * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; */ - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); + public com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointInfoOrBuilder() { + if (endpointInfoBuilder_ != null) { + return endpointInfoBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + return endpointInfo_ == null + ? com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance() + : endpointInfo_; } } @@ -2581,106 +5098,95 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
                                              -     * Details about an internal failure or the cancellation of active probing.
                                              +     * The source and destination endpoints derived from the test input and used
                                              +     * for active probing.
                                                    * 
                                              * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - errorBuilder_ = + com.google.cloud.networkmanagement.v1.EndpointInfo, + com.google.cloud.networkmanagement.v1.EndpointInfo.Builder, + com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder> + getEndpointInfoFieldBuilder() { + if (endpointInfoBuilder_ == null) { + endpointInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); - error_ = null; - } - return errorBuilder_; - } - - private int abortCause_ = 0; - - /** - * - * - *
                                              -     * The reason probing was aborted.
                                              -     * 
                                              - * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * - * - * @return The enum numeric value on the wire for abortCause. - */ - @java.lang.Override - public int getAbortCauseValue() { - return abortCause_; + com.google.cloud.networkmanagement.v1.EndpointInfo, + com.google.cloud.networkmanagement.v1.EndpointInfo.Builder, + com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder>( + getEndpointInfo(), getParentForChildren(), isClean()); + endpointInfo_ = null; + } + return endpointInfoBuilder_; } + private com.google.cloud.networkmanagement.v1.LatencyDistribution probingLatency_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.LatencyDistribution, + com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder> + probingLatencyBuilder_; + /** * * *
                                              -     * The reason probing was aborted.
                                              +     * Latency as measured by active probing in one direction:
                                              +     * from the source to the destination endpoint.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; * - * @param value The enum numeric value on the wire for abortCause to set. - * @return This builder for chaining. + * @return Whether the probingLatency field is set. */ - public Builder setAbortCauseValue(int value) { - abortCause_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + public boolean hasProbingLatency() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
                                              -     * The reason probing was aborted.
                                              +     * Latency as measured by active probing in one direction:
                                              +     * from the source to the destination endpoint.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; * - * @return The abortCause. + * @return The probingLatency. */ - @java.lang.Override - public com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause getAbortCause() { - com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause result = - com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause.forNumber( - abortCause_); - return result == null - ? com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause.UNRECOGNIZED - : result; + public com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency() { + if (probingLatencyBuilder_ == null) { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } else { + return probingLatencyBuilder_.getMessage(); + } } /** * * *
                                              -     * The reason probing was aborted.
                                              +     * Latency as measured by active probing in one direction:
                                              +     * from the source to the destination endpoint.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * - * - * @param value The abortCause to set. - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; */ - public Builder setAbortCause( - com.google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause value) { - if (value == null) { - throw new NullPointerException(); + public Builder setProbingLatency( + com.google.cloud.networkmanagement.v1.LatencyDistribution value) { + if (probingLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + probingLatency_ = value; + } else { + probingLatencyBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; - abortCause_ = value.getNumber(); + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2689,56 +5195,52 @@ public Builder setAbortCause( * * *
                                              -     * The reason probing was aborted.
                                              +     * Latency as measured by active probing in one direction:
                                              +     * from the source to the destination endpoint.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * - * - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; */ - public Builder clearAbortCause() { - bitField0_ = (bitField0_ & ~0x00000008); - abortCause_ = 0; + public Builder setProbingLatency( + com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder builderForValue) { + if (probingLatencyBuilder_ == null) { + probingLatency_ = builderForValue.build(); + } else { + probingLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; onChanged(); return this; } - private int sentProbeCount_; - - /** - * - * - *
                                              -     * Number of probes sent.
                                              -     * 
                                              - * - * int32 sent_probe_count = 5; - * - * @return The sentProbeCount. - */ - @java.lang.Override - public int getSentProbeCount() { - return sentProbeCount_; - } - /** * * *
                                              -     * Number of probes sent.
                                              +     * Latency as measured by active probing in one direction:
                                              +     * from the source to the destination endpoint.
                                                    * 
                                              * - * int32 sent_probe_count = 5; - * - * @param value The sentProbeCount to set. - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; */ - public Builder setSentProbeCount(int value) { - - sentProbeCount_ = value; - bitField0_ |= 0x00000010; - onChanged(); + public Builder mergeProbingLatency( + com.google.cloud.networkmanagement.v1.LatencyDistribution value) { + if (probingLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && probingLatency_ != null + && probingLatency_ + != com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance()) { + getProbingLatencyBuilder().mergeFrom(value); + } else { + probingLatency_ = value; + } + } else { + probingLatencyBuilder_.mergeFrom(value); + } + if (probingLatency_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } @@ -2746,118 +5248,144 @@ public Builder setSentProbeCount(int value) { * * *
                                              -     * Number of probes sent.
                                              +     * Latency as measured by active probing in one direction:
                                              +     * from the source to the destination endpoint.
                                                    * 
                                              * - * int32 sent_probe_count = 5; - * - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; */ - public Builder clearSentProbeCount() { - bitField0_ = (bitField0_ & ~0x00000010); - sentProbeCount_ = 0; + public Builder clearProbingLatency() { + bitField0_ = (bitField0_ & ~0x00000080); + probingLatency_ = null; + if (probingLatencyBuilder_ != null) { + probingLatencyBuilder_.dispose(); + probingLatencyBuilder_ = null; + } onChanged(); return this; } - private int successfulProbeCount_; - /** * * *
                                              -     * Number of probes that reached the destination.
                                              +     * Latency as measured by active probing in one direction:
                                              +     * from the source to the destination endpoint.
                                                    * 
                                              * - * int32 successful_probe_count = 6; - * - * @return The successfulProbeCount. + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; */ - @java.lang.Override - public int getSuccessfulProbeCount() { - return successfulProbeCount_; + public com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder + getProbingLatencyBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getProbingLatencyFieldBuilder().getBuilder(); } /** * * *
                                              -     * Number of probes that reached the destination.
                                              +     * Latency as measured by active probing in one direction:
                                              +     * from the source to the destination endpoint.
                                                    * 
                                              * - * int32 successful_probe_count = 6; - * - * @param value The successfulProbeCount to set. - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; */ - public Builder setSuccessfulProbeCount(int value) { - - successfulProbeCount_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; + public com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder + getProbingLatencyOrBuilder() { + if (probingLatencyBuilder_ != null) { + return probingLatencyBuilder_.getMessageOrBuilder(); + } else { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } } /** * * *
                                              -     * Number of probes that reached the destination.
                                              +     * Latency as measured by active probing in one direction:
                                              +     * from the source to the destination endpoint.
                                                    * 
                                              * - * int32 successful_probe_count = 6; - * - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; */ - public Builder clearSuccessfulProbeCount() { - bitField0_ = (bitField0_ & ~0x00000020); - successfulProbeCount_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.LatencyDistribution, + com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder> + getProbingLatencyFieldBuilder() { + if (probingLatencyBuilder_ == null) { + probingLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.LatencyDistribution, + com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder>( + getProbingLatency(), getParentForChildren(), isClean()); + probingLatency_ = null; + } + return probingLatencyBuilder_; } - private com.google.cloud.networkmanagement.v1.EndpointInfo endpointInfo_; + private com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + destinationEgressLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.EndpointInfo, - com.google.cloud.networkmanagement.v1.EndpointInfo.Builder, - com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder> - endpointInfoBuilder_; + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder> + destinationEgressLocationBuilder_; /** * * *
                                              -     * The source and destination endpoints derived from the test input and used
                                              -     * for active probing.
                                              +     * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +     * the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * * - * @return Whether the endpointInfo field is set. + * @return Whether the destinationEgressLocation field is set. */ - public boolean hasEndpointInfo() { - return ((bitField0_ & 0x00000040) != 0); + public boolean hasDestinationEgressLocation() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
                                              -     * The source and destination endpoints derived from the test input and used
                                              -     * for active probing.
                                              +     * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +     * the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * * - * @return The endpointInfo. + * @return The destinationEgressLocation. */ - public com.google.cloud.networkmanagement.v1.EndpointInfo getEndpointInfo() { - if (endpointInfoBuilder_ == null) { - return endpointInfo_ == null - ? com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance() - : endpointInfo_; + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + getDestinationEgressLocation() { + if (destinationEgressLocationBuilder_ == null) { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() + : destinationEgressLocation_; } else { - return endpointInfoBuilder_.getMessage(); + return destinationEgressLocationBuilder_.getMessage(); } } @@ -2865,22 +5393,29 @@ public com.google.cloud.networkmanagement.v1.EndpointInfo getEndpointInfo() { * * *
                                              -     * The source and destination endpoints derived from the test input and used
                                              -     * for active probing.
                                              +     * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +     * the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public Builder setEndpointInfo(com.google.cloud.networkmanagement.v1.EndpointInfo value) { - if (endpointInfoBuilder_ == null) { + public Builder setDestinationEgressLocation( + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation value) { + if (destinationEgressLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - endpointInfo_ = value; + destinationEgressLocation_ = value; } else { - endpointInfoBuilder_.setMessage(value); + destinationEgressLocationBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2889,20 +5424,26 @@ public Builder setEndpointInfo(com.google.cloud.networkmanagement.v1.EndpointInf * * *
                                              -     * The source and destination endpoints derived from the test input and used
                                              -     * for active probing.
                                              +     * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +     * the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public Builder setEndpointInfo( - com.google.cloud.networkmanagement.v1.EndpointInfo.Builder builderForValue) { - if (endpointInfoBuilder_ == null) { - endpointInfo_ = builderForValue.build(); + public Builder setDestinationEgressLocation( + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder builderForValue) { + if (destinationEgressLocationBuilder_ == null) { + destinationEgressLocation_ = builderForValue.build(); } else { - endpointInfoBuilder_.setMessage(builderForValue.build()); + destinationEgressLocationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2911,27 +5452,35 @@ public Builder setEndpointInfo( * * *
                                              -     * The source and destination endpoints derived from the test input and used
                                              -     * for active probing.
                                              +     * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +     * the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public Builder mergeEndpointInfo(com.google.cloud.networkmanagement.v1.EndpointInfo value) { - if (endpointInfoBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && endpointInfo_ != null - && endpointInfo_ - != com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance()) { - getEndpointInfoBuilder().mergeFrom(value); + public Builder mergeDestinationEgressLocation( + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation value) { + if (destinationEgressLocationBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && destinationEgressLocation_ != null + && destinationEgressLocation_ + != com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation + .getDefaultInstance()) { + getDestinationEgressLocationBuilder().mergeFrom(value); } else { - endpointInfo_ = value; + destinationEgressLocation_ = value; } } else { - endpointInfoBuilder_.mergeFrom(value); + destinationEgressLocationBuilder_.mergeFrom(value); } - if (endpointInfo_ != null) { - bitField0_ |= 0x00000040; + if (destinationEgressLocation_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2941,18 +5490,24 @@ public Builder mergeEndpointInfo(com.google.cloud.networkmanagement.v1.EndpointI * * *
                                              -     * The source and destination endpoints derived from the test input and used
                                              -     * for active probing.
                                              +     * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +     * the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public Builder clearEndpointInfo() { - bitField0_ = (bitField0_ & ~0x00000040); - endpointInfo_ = null; - if (endpointInfoBuilder_ != null) { - endpointInfoBuilder_.dispose(); - endpointInfoBuilder_ = null; + public Builder clearDestinationEgressLocation() { + bitField0_ = (bitField0_ & ~0x00000100); + destinationEgressLocation_ = null; + if (destinationEgressLocationBuilder_ != null) { + destinationEgressLocationBuilder_.dispose(); + destinationEgressLocationBuilder_ = null; } onChanged(); return this; @@ -2962,35 +5517,49 @@ public Builder clearEndpointInfo() { * * *
                                              -     * The source and destination endpoints derived from the test input and used
                                              -     * for active probing.
                                              +     * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +     * the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public com.google.cloud.networkmanagement.v1.EndpointInfo.Builder getEndpointInfoBuilder() { - bitField0_ |= 0x00000040; + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder + getDestinationEgressLocationBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return getEndpointInfoFieldBuilder().getBuilder(); + return getDestinationEgressLocationFieldBuilder().getBuilder(); } /** * * *
                                              -     * The source and destination endpoints derived from the test input and used
                                              -     * for active probing.
                                              +     * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +     * the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointInfoOrBuilder() { - if (endpointInfoBuilder_ != null) { - return endpointInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder + getDestinationEgressLocationOrBuilder() { + if (destinationEgressLocationBuilder_ != null) { + return destinationEgressLocationBuilder_.getMessageOrBuilder(); } else { - return endpointInfo_ == null - ? com.google.cloud.networkmanagement.v1.EndpointInfo.getDefaultInstance() - : endpointInfo_; + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() + : destinationEgressLocation_; } } @@ -2998,96 +5567,187 @@ public com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder getEndpointIn * * *
                                              -     * The source and destination endpoints derived from the test input and used
                                              -     * for active probing.
                                              +     * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +     * the Google network.
                                              +     * This will only be populated for a connectivity test which has an internet
                                              +     * destination address.
                                              +     * The absence of this field *must not* be used as an indication that the
                                              +     * destination is part of the Google network.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.EndpointInfo, - com.google.cloud.networkmanagement.v1.EndpointInfo.Builder, - com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder> - getEndpointInfoFieldBuilder() { - if (endpointInfoBuilder_ == null) { - endpointInfoBuilder_ = + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder> + getDestinationEgressLocationFieldBuilder() { + if (destinationEgressLocationBuilder_ == null) { + destinationEgressLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.EndpointInfo, - com.google.cloud.networkmanagement.v1.EndpointInfo.Builder, - com.google.cloud.networkmanagement.v1.EndpointInfoOrBuilder>( - getEndpointInfo(), getParentForChildren(), isClean()); - endpointInfo_ = null; + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder>( + getDestinationEgressLocation(), getParentForChildren(), isClean()); + destinationEgressLocation_ = null; } - return endpointInfoBuilder_; + return destinationEgressLocationBuilder_; } - private com.google.cloud.networkmanagement.v1.LatencyDistribution probingLatency_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.LatencyDistribution, - com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder, - com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder> - probingLatencyBuilder_; + private java.util.List + edgeResponses_ = java.util.Collections.emptyList(); + + private void ensureEdgeResponsesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + edgeResponses_ = + new java.util.ArrayList< + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse>( + edgeResponses_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder> + edgeResponsesBuilder_; /** * * *
                                              -     * Latency as measured by active probing in one direction:
                                              -     * from the source to the destination endpoint.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + public java.util.List + getEdgeResponsesList() { + if (edgeResponsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(edgeResponses_); + } else { + return edgeResponsesBuilder_.getMessageList(); + } + } + + /** * - * @return Whether the probingLatency field is set. + * + *
                                              +     * Probing results for all edge devices.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public boolean hasProbingLatency() { - return ((bitField0_ & 0x00000080) != 0); + public int getEdgeResponsesCount() { + if (edgeResponsesBuilder_ == null) { + return edgeResponses_.size(); + } else { + return edgeResponsesBuilder_.getCount(); + } } /** * * *
                                              -     * Latency as measured by active probing in one direction:
                                              -     * from the source to the destination endpoint.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse getEdgeResponses( + int index) { + if (edgeResponsesBuilder_ == null) { + return edgeResponses_.get(index); + } else { + return edgeResponsesBuilder_.getMessage(index); + } + } + + /** * - * @return The probingLatency. + * + *
                                              +     * Probing results for all edge devices.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public com.google.cloud.networkmanagement.v1.LatencyDistribution getProbingLatency() { - if (probingLatencyBuilder_ == null) { - return probingLatency_ == null - ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() - : probingLatency_; + public Builder setEdgeResponses( + int index, com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse value) { + if (edgeResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeResponsesIsMutable(); + edgeResponses_.set(index, value); + onChanged(); } else { - return probingLatencyBuilder_.getMessage(); + edgeResponsesBuilder_.setMessage(index, value); } + return this; } /** * * *
                                              -     * Latency as measured by active probing in one direction:
                                              -     * from the source to the destination endpoint.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + public Builder setEdgeResponses( + int index, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder + builderForValue) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.set(index, builderForValue.build()); + onChanged(); + } else { + edgeResponsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Probing results for all edge devices.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public Builder setProbingLatency( - com.google.cloud.networkmanagement.v1.LatencyDistribution value) { - if (probingLatencyBuilder_ == null) { + public Builder addEdgeResponses( + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse value) { + if (edgeResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - probingLatency_ = value; + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(value); + onChanged(); } else { - probingLatencyBuilder_.setMessage(value); + edgeResponsesBuilder_.addMessage(value); } - bitField0_ |= 0x00000080; - onChanged(); return this; } @@ -3095,21 +5755,25 @@ public Builder setProbingLatency( * * *
                                              -     * Latency as measured by active probing in one direction:
                                              -     * from the source to the destination endpoint.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public Builder setProbingLatency( - com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder builderForValue) { - if (probingLatencyBuilder_ == null) { - probingLatency_ = builderForValue.build(); + public Builder addEdgeResponses( + int index, com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse value) { + if (edgeResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(index, value); + onChanged(); } else { - probingLatencyBuilder_.setMessage(builderForValue.build()); + edgeResponsesBuilder_.addMessage(index, value); } - bitField0_ |= 0x00000080; - onChanged(); return this; } @@ -3117,29 +5781,22 @@ public Builder setProbingLatency( * * *
                                              -     * Latency as measured by active probing in one direction:
                                              -     * from the source to the destination endpoint.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public Builder mergeProbingLatency( - com.google.cloud.networkmanagement.v1.LatencyDistribution value) { - if (probingLatencyBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && probingLatency_ != null - && probingLatency_ - != com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance()) { - getProbingLatencyBuilder().mergeFrom(value); - } else { - probingLatency_ = value; - } - } else { - probingLatencyBuilder_.mergeFrom(value); - } - if (probingLatency_ != null) { - bitField0_ |= 0x00000080; + public Builder addEdgeResponses( + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder + builderForValue) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(builderForValue.build()); onChanged(); + } else { + edgeResponsesBuilder_.addMessage(builderForValue.build()); } return this; } @@ -3148,20 +5805,24 @@ public Builder mergeProbingLatency( * * *
                                              -     * Latency as measured by active probing in one direction:
                                              -     * from the source to the destination endpoint.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public Builder clearProbingLatency() { - bitField0_ = (bitField0_ & ~0x00000080); - probingLatency_ = null; - if (probingLatencyBuilder_ != null) { - probingLatencyBuilder_.dispose(); - probingLatencyBuilder_ = null; + public Builder addEdgeResponses( + int index, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder + builderForValue) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(index, builderForValue.build()); + onChanged(); + } else { + edgeResponsesBuilder_.addMessage(index, builderForValue.build()); } - onChanged(); return this; } @@ -3169,123 +5830,104 @@ public Builder clearProbingLatency() { * * *
                                              -     * Latency as measured by active probing in one direction:
                                              -     * from the source to the destination endpoint.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder - getProbingLatencyBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getProbingLatencyFieldBuilder().getBuilder(); + public Builder addAllEdgeResponses( + java.lang.Iterable< + ? extends com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse> + values) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, edgeResponses_); + onChanged(); + } else { + edgeResponsesBuilder_.addAllMessages(values); + } + return this; } /** * * *
                                              -     * Latency as measured by active probing in one direction:
                                              -     * from the source to the destination endpoint.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder - getProbingLatencyOrBuilder() { - if (probingLatencyBuilder_ != null) { - return probingLatencyBuilder_.getMessageOrBuilder(); + public Builder clearEdgeResponses() { + if (edgeResponsesBuilder_ == null) { + edgeResponses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); } else { - return probingLatency_ == null - ? com.google.cloud.networkmanagement.v1.LatencyDistribution.getDefaultInstance() - : probingLatency_; + edgeResponsesBuilder_.clear(); } + return this; } /** * * *
                                              -     * Latency as measured by active probing in one direction:
                                              -     * from the source to the destination endpoint.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * - * .google.cloud.networkmanagement.v1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.LatencyDistribution, - com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder, - com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder> - getProbingLatencyFieldBuilder() { - if (probingLatencyBuilder_ == null) { - probingLatencyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.LatencyDistribution, - com.google.cloud.networkmanagement.v1.LatencyDistribution.Builder, - com.google.cloud.networkmanagement.v1.LatencyDistributionOrBuilder>( - getProbingLatency(), getParentForChildren(), isClean()); - probingLatency_ = null; + public Builder removeEdgeResponses(int index) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.remove(index); + onChanged(); + } else { + edgeResponsesBuilder_.remove(index); } - return probingLatencyBuilder_; + return this; } - private com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation - destinationEgressLocation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation, - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder, - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder> - destinationEgressLocationBuilder_; - /** * * *
                                              -     * The EdgeLocation from which a packet destined for/originating from the
                                              -     * internet will egress/ingress the Google network.
                                              -     * This will only be populated for a connectivity test which has an internet
                                              -     * destination/source address.
                                              -     * The absence of this field *must not* be used as an indication that the
                                              -     * destination/source is part of the Google network.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * - * - * @return Whether the destinationEgressLocation field is set. */ - public boolean hasDestinationEgressLocation() { - return ((bitField0_ & 0x00000100) != 0); + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder + getEdgeResponsesBuilder(int index) { + return getEdgeResponsesFieldBuilder().getBuilder(index); } /** * * *
                                              -     * The EdgeLocation from which a packet destined for/originating from the
                                              -     * internet will egress/ingress the Google network.
                                              -     * This will only be populated for a connectivity test which has an internet
                                              -     * destination/source address.
                                              -     * The absence of this field *must not* be used as an indication that the
                                              -     * destination/source is part of the Google network.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * - * - * @return The destinationEgressLocation. */ - public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation - getDestinationEgressLocation() { - if (destinationEgressLocationBuilder_ == null) { - return destinationEgressLocation_ == null - ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() - : destinationEgressLocation_; + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder + getEdgeResponsesOrBuilder(int index) { + if (edgeResponsesBuilder_ == null) { + return edgeResponses_.get(index); } else { - return destinationEgressLocationBuilder_.getMessage(); + return edgeResponsesBuilder_.getMessageOrBuilder(index); } } @@ -3293,207 +5935,154 @@ public boolean hasDestinationEgressLocation() { * * *
                                              -     * The EdgeLocation from which a packet destined for/originating from the
                                              -     * internet will egress/ingress the Google network.
                                              -     * This will only be populated for a connectivity test which has an internet
                                              -     * destination/source address.
                                              -     * The absence of this field *must not* be used as an indication that the
                                              -     * destination/source is part of the Google network.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * */ - public Builder setDestinationEgressLocation( - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation value) { - if (destinationEgressLocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - destinationEgressLocation_ = value; + public java.util.List< + ? extends + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder> + getEdgeResponsesOrBuilderList() { + if (edgeResponsesBuilder_ != null) { + return edgeResponsesBuilder_.getMessageOrBuilderList(); } else { - destinationEgressLocationBuilder_.setMessage(value); + return java.util.Collections.unmodifiableList(edgeResponses_); } - bitField0_ |= 0x00000100; - onChanged(); - return this; } /** * * *
                                              -     * The EdgeLocation from which a packet destined for/originating from the
                                              -     * internet will egress/ingress the Google network.
                                              -     * This will only be populated for a connectivity test which has an internet
                                              -     * destination/source address.
                                              -     * The absence of this field *must not* be used as an indication that the
                                              -     * destination/source is part of the Google network.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * */ - public Builder setDestinationEgressLocation( - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder builderForValue) { - if (destinationEgressLocationBuilder_ == null) { - destinationEgressLocation_ = builderForValue.build(); - } else { - destinationEgressLocationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder + addEdgeResponsesBuilder() { + return getEdgeResponsesFieldBuilder() + .addBuilder( + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + .getDefaultInstance()); } /** * * *
                                              -     * The EdgeLocation from which a packet destined for/originating from the
                                              -     * internet will egress/ingress the Google network.
                                              -     * This will only be populated for a connectivity test which has an internet
                                              -     * destination/source address.
                                              -     * The absence of this field *must not* be used as an indication that the
                                              -     * destination/source is part of the Google network.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * */ - public Builder mergeDestinationEgressLocation( - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation value) { - if (destinationEgressLocationBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && destinationEgressLocation_ != null - && destinationEgressLocation_ - != com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation - .getDefaultInstance()) { - getDestinationEgressLocationBuilder().mergeFrom(value); - } else { - destinationEgressLocation_ = value; - } - } else { - destinationEgressLocationBuilder_.mergeFrom(value); - } - if (destinationEgressLocation_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; + public com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder + addEdgeResponsesBuilder(int index) { + return getEdgeResponsesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse + .getDefaultInstance()); } /** * * *
                                              -     * The EdgeLocation from which a packet destined for/originating from the
                                              -     * internet will egress/ingress the Google network.
                                              -     * This will only be populated for a connectivity test which has an internet
                                              -     * destination/source address.
                                              -     * The absence of this field *must not* be used as an indication that the
                                              -     * destination/source is part of the Google network.
                                              +     * Probing results for all edge devices.
                                                    * 
                                              * * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * */ - public Builder clearDestinationEgressLocation() { - bitField0_ = (bitField0_ & ~0x00000100); - destinationEgressLocation_ = null; - if (destinationEgressLocationBuilder_ != null) { - destinationEgressLocationBuilder_.dispose(); - destinationEgressLocationBuilder_ = null; + public java.util.List< + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder> + getEdgeResponsesBuilderList() { + return getEdgeResponsesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder> + getEdgeResponsesFieldBuilder() { + if (edgeResponsesBuilder_ == null) { + edgeResponsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse.Builder, + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder>( + edgeResponses_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + edgeResponses_ = null; } - onChanged(); - return this; + return edgeResponsesBuilder_; } + private boolean probedAllDevices_; + /** * * *
                                              -     * The EdgeLocation from which a packet destined for/originating from the
                                              -     * internet will egress/ingress the Google network.
                                              -     * This will only be populated for a connectivity test which has an internet
                                              -     * destination/source address.
                                              -     * The absence of this field *must not* be used as an indication that the
                                              -     * destination/source is part of the Google network.
                                              +     * Whether all relevant edge devices were probed.
                                                    * 
                                              * - * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; - * + * bool probed_all_devices = 11; + * + * @return The probedAllDevices. */ - public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder - getDestinationEgressLocationBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getDestinationEgressLocationFieldBuilder().getBuilder(); + @java.lang.Override + public boolean getProbedAllDevices() { + return probedAllDevices_; } /** * * *
                                              -     * The EdgeLocation from which a packet destined for/originating from the
                                              -     * internet will egress/ingress the Google network.
                                              -     * This will only be populated for a connectivity test which has an internet
                                              -     * destination/source address.
                                              -     * The absence of this field *must not* be used as an indication that the
                                              -     * destination/source is part of the Google network.
                                              +     * Whether all relevant edge devices were probed.
                                                    * 
                                              * - * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; - * + * bool probed_all_devices = 11; + * + * @param value The probedAllDevices to set. + * @return This builder for chaining. */ - public com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder - getDestinationEgressLocationOrBuilder() { - if (destinationEgressLocationBuilder_ != null) { - return destinationEgressLocationBuilder_.getMessageOrBuilder(); - } else { - return destinationEgressLocation_ == null - ? com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.getDefaultInstance() - : destinationEgressLocation_; - } + public Builder setProbedAllDevices(boolean value) { + + probedAllDevices_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; } /** * * *
                                              -     * The EdgeLocation from which a packet destined for/originating from the
                                              -     * internet will egress/ingress the Google network.
                                              -     * This will only be populated for a connectivity test which has an internet
                                              -     * destination/source address.
                                              -     * The absence of this field *must not* be used as an indication that the
                                              -     * destination/source is part of the Google network.
                                              +     * Whether all relevant edge devices were probed.
                                                    * 
                                              * - * - * .google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation destination_egress_location = 9; - * + * bool probed_all_devices = 11; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation, - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder, - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder> - getDestinationEgressLocationFieldBuilder() { - if (destinationEgressLocationBuilder_ == null) { - destinationEgressLocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation, - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation.Builder, - com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder>( - getDestinationEgressLocation(), getParentForChildren(), isClean()); - destinationEgressLocation_ = null; - } - return destinationEgressLocationBuilder_; + public Builder clearProbedAllDevices() { + bitField0_ = (bitField0_ & ~0x00000400); + probedAllDevices_ = false; + onChanged(); + return this; } @java.lang.Override diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetailsOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetailsOrBuilder.java index 108c69a6c542..c22876cac729 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetailsOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProbingDetailsOrBuilder.java @@ -262,12 +262,12 @@ public interface ProbingDetailsOrBuilder * * *
                                              -   * The EdgeLocation from which a packet destined for/originating from the
                                              -   * internet will egress/ingress the Google network.
                                              +   * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +   * the Google network.
                                                  * This will only be populated for a connectivity test which has an internet
                                              -   * destination/source address.
                                              +   * destination address.
                                                  * The absence of this field *must not* be used as an indication that the
                                              -   * destination/source is part of the Google network.
                                              +   * destination is part of the Google network.
                                                  * 
                                              * * @@ -282,12 +282,12 @@ public interface ProbingDetailsOrBuilder * * *
                                              -   * The EdgeLocation from which a packet destined for/originating from the
                                              -   * internet will egress/ingress the Google network.
                                              +   * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +   * the Google network.
                                                  * This will only be populated for a connectivity test which has an internet
                                              -   * destination/source address.
                                              +   * destination address.
                                                  * The absence of this field *must not* be used as an indication that the
                                              -   * destination/source is part of the Google network.
                                              +   * destination is part of the Google network.
                                                  * 
                                              * * @@ -302,12 +302,12 @@ public interface ProbingDetailsOrBuilder * * *
                                              -   * The EdgeLocation from which a packet destined for/originating from the
                                              -   * internet will egress/ingress the Google network.
                                              +   * The EdgeLocation from which a packet, destined to the internet, will egress
                                              +   * the Google network.
                                                  * This will only be populated for a connectivity test which has an internet
                                              -   * destination/source address.
                                              +   * destination address.
                                                  * The absence of this field *must not* be used as an indication that the
                                              -   * destination/source is part of the Google network.
                                              +   * destination is part of the Google network.
                                                  * 
                                              * * @@ -316,4 +316,88 @@ public interface ProbingDetailsOrBuilder */ com.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocationOrBuilder getDestinationEgressLocationOrBuilder(); + + /** + * + * + *
                                              +   * Probing results for all edge devices.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + java.util.List + getEdgeResponsesList(); + + /** + * + * + *
                                              +   * Probing results for all edge devices.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse getEdgeResponses( + int index); + + /** + * + * + *
                                              +   * Probing results for all edge devices.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + int getEdgeResponsesCount(); + + /** + * + * + *
                                              +   * Probing results for all edge devices.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + java.util.List< + ? extends + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder> + getEdgeResponsesOrBuilderList(); + + /** + * + * + *
                                              +   * Probing results for all edge devices.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + com.google.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponseOrBuilder + getEdgeResponsesOrBuilder(int index); + + /** + * + * + *
                                              +   * Whether all relevant edge devices were probed.
                                              +   * 
                                              + * + * bool probed_all_devices = 11; + * + * @return The probedAllDevices. + */ + boolean getProbedAllDevices(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsRequest.java new file mode 100644 index 000000000000..983df60364b6 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsRequest.java @@ -0,0 +1,1168 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                              + * Request for the `QueryOrgVpcFlowLogsConfigs` method.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest} + */ +public final class QueryOrgVpcFlowLogsConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest) + QueryOrgVpcFlowLogsConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryOrgVpcFlowLogsConfigsRequest.newBuilder() to construct. + private QueryOrgVpcFlowLogsConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryOrgVpcFlowLogsConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryOrgVpcFlowLogsConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent resource of the VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * 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. Number of `VpcFlowLogsConfigs` to return.
                                              +   * 
                                              + * + * 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. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * 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. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
                                              +   * A filter expression must use the supported [CEL logic operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * string filter = 4 [(.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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
                                              +   * A filter expression must use the supported [CEL logic operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * string filter = 4 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest other = + (com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest 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.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest 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.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Request for the `QueryOrgVpcFlowLogsConfigs` method.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest) + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest build() { + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest buildPartial() { + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest result = + new com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest 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.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest other) { + if (other + == com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest + .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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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. Number of `VpcFlowLogsConfigs` to return.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. Number of `VpcFlowLogsConfigs` to return.
                                              +     * 
                                              + * + * 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. Number of `VpcFlowLogsConfigs` to return.
                                              +     * 
                                              + * + * 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. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * 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. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * 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. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * 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. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * 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. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
                                              +     * A filter expression must use the supported [CEL logic operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * string filter = 4 [(.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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
                                              +     * A filter expression must use the supported [CEL logic operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * string filter = 4 [(.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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
                                              +     * A filter expression must use the supported [CEL logic operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
                                              +     * A filter expression must use the supported [CEL logic operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
                                              +     * A filter expression must use the supported [CEL logic operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest) + private static final com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest(); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryOrgVpcFlowLogsConfigsRequest 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.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..8201a10d0abf --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +public interface QueryOrgVpcFlowLogsConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent resource of the VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. Number of `VpcFlowLogsConfigs` to return.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
                                              +   * A filter expression must use the supported [CEL logic operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
                                              +   * A filter expression must use the supported [CEL logic operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsResponse.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsResponse.java new file mode 100644 index 000000000000..e88406d6fdf8 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsResponse.java @@ -0,0 +1,1523 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                              + * Response for the `QueryVpcFlowLogsConfigs` method.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse} + */ +public final class QueryOrgVpcFlowLogsConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse) + QueryOrgVpcFlowLogsConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryOrgVpcFlowLogsConfigsResponse.newBuilder() to construct. + private QueryOrgVpcFlowLogsConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryOrgVpcFlowLogsConfigsResponse() { + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryOrgVpcFlowLogsConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse.Builder.class); + } + + public static final int VPC_FLOW_LOGS_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + vpcFlowLogsConfigs_; + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getVpcFlowLogsConfigsList() { + return vpcFlowLogsConfigs_; + } + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getVpcFlowLogsConfigsOrBuilderList() { + return vpcFlowLogsConfigs_; + } + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public int getVpcFlowLogsConfigsCount() { + return vpcFlowLogsConfigs_.size(); + } + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfigs(int index) { + return vpcFlowLogsConfigs_.get(index); + } + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigsOrBuilder(int index) { + return vpcFlowLogsConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * 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(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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 < vpcFlowLogsConfigs_.size(); i++) { + output.writeMessage(1, vpcFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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 < vpcFlowLogsConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, vpcFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse other = + (com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse) obj; + + if (!getVpcFlowLogsConfigsList().equals(other.getVpcFlowLogsConfigsList())) 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 (getVpcFlowLogsConfigsCount() > 0) { + hash = (37 * hash) + VPC_FLOW_LOGS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getVpcFlowLogsConfigsList().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.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse 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.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse 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.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Response for the `QueryVpcFlowLogsConfigs` method.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse) + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vpcFlowLogsConfigsBuilder_ == null) { + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + } else { + vpcFlowLogsConfigs_ = null; + vpcFlowLogsConfigsBuilder_.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.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse build() { + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse buildPartial() { + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse result = + new com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse result) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + vpcFlowLogsConfigs_ = java.util.Collections.unmodifiableList(vpcFlowLogsConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vpcFlowLogsConfigs_ = vpcFlowLogsConfigs_; + } else { + result.vpcFlowLogsConfigs_ = vpcFlowLogsConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse 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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse other) { + if (other + == com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + .getDefaultInstance()) return this; + if (vpcFlowLogsConfigsBuilder_ == null) { + if (!other.vpcFlowLogsConfigs_.isEmpty()) { + if (vpcFlowLogsConfigs_.isEmpty()) { + vpcFlowLogsConfigs_ = other.vpcFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.addAll(other.vpcFlowLogsConfigs_); + } + onChanged(); + } + } else { + if (!other.vpcFlowLogsConfigs_.isEmpty()) { + if (vpcFlowLogsConfigsBuilder_.isEmpty()) { + vpcFlowLogsConfigsBuilder_.dispose(); + vpcFlowLogsConfigsBuilder_ = null; + vpcFlowLogsConfigs_ = other.vpcFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + vpcFlowLogsConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVpcFlowLogsConfigsFieldBuilder() + : null; + } else { + vpcFlowLogsConfigsBuilder_.addAllMessages(other.vpcFlowLogsConfigs_); + } + } + } + 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.networkmanagement.v1.VpcFlowLogsConfig m = + input.readMessage( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.parser(), + extensionRegistry); + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(m); + } else { + vpcFlowLogsConfigsBuilder_.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 + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + + private void ensureVpcFlowLogsConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + vpcFlowLogsConfigs_ = + new java.util.ArrayList( + vpcFlowLogsConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + vpcFlowLogsConfigsBuilder_; + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public java.util.List + getVpcFlowLogsConfigsList() { + if (vpcFlowLogsConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(vpcFlowLogsConfigs_); + } else { + return vpcFlowLogsConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public int getVpcFlowLogsConfigsCount() { + if (vpcFlowLogsConfigsBuilder_ == null) { + return vpcFlowLogsConfigs_.size(); + } else { + return vpcFlowLogsConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfigs( + int index) { + if (vpcFlowLogsConfigsBuilder_ == null) { + return vpcFlowLogsConfigs_.get(index); + } else { + return vpcFlowLogsConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder setVpcFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.set(index, value); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder setVpcFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(value); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(index, value); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(builderForValue.build()); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addAllVpcFlowLogsConfigs( + java.lang.Iterable + values) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vpcFlowLogsConfigs_); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder clearVpcFlowLogsConfigs() { + if (vpcFlowLogsConfigsBuilder_ == null) { + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder removeVpcFlowLogsConfigs(int index) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.remove(index); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder + getVpcFlowLogsConfigsBuilder(int index) { + return getVpcFlowLogsConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigsOrBuilder(int index) { + if (vpcFlowLogsConfigsBuilder_ == null) { + return vpcFlowLogsConfigs_.get(index); + } else { + return vpcFlowLogsConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + getVpcFlowLogsConfigsOrBuilderList() { + if (vpcFlowLogsConfigsBuilder_ != null) { + return vpcFlowLogsConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vpcFlowLogsConfigs_); + } + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder + addVpcFlowLogsConfigsBuilder() { + return getVpcFlowLogsConfigsFieldBuilder() + .addBuilder(com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder + addVpcFlowLogsConfigsBuilder(int index) { + return getVpcFlowLogsConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * List of VPC Flow Log configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public java.util.List + getVpcFlowLogsConfigsBuilderList() { + return getVpcFlowLogsConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + getVpcFlowLogsConfigsFieldBuilder() { + if (vpcFlowLogsConfigsBuilder_ == null) { + vpcFlowLogsConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder>( + vpcFlowLogsConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + vpcFlowLogsConfigs_ = null; + } + return vpcFlowLogsConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse) + private static final com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse(); + } + + public static com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryOrgVpcFlowLogsConfigsResponse 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.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsResponseOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..2c263d03d04b --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/QueryOrgVpcFlowLogsConfigsResponseOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +public interface QueryOrgVpcFlowLogsConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + java.util.List + getVpcFlowLogsConfigsList(); + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfigs(int index); + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + int getVpcFlowLogsConfigsCount(); + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + java.util.List + getVpcFlowLogsConfigsOrBuilderList(); + + /** + * + * + *
                                              +   * List of VPC Flow Log configurations.
                                              +   * 
                                              + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder getVpcFlowLogsConfigsOrBuilder( + int index); + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java index 52dacf148901..53adea7e1ee0 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java @@ -536,6 +536,16 @@ public enum NextHopType implements com.google.protobuf.ProtocolMessageEnum { * NEXT_HOP_NCC_HUB = 12; */ NEXT_HOP_NCC_HUB(12), + /** + * + * + *
                                              +     * Next hop is Secure Web Proxy Gateway.
                                              +     * 
                                              + * + * SECURE_WEB_PROXY_GATEWAY = 13; + */ + SECURE_WEB_PROXY_GATEWAY(13), UNRECOGNIZED(-1), ; @@ -691,6 +701,17 @@ public enum NextHopType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NEXT_HOP_NCC_HUB_VALUE = 12; + /** + * + * + *
                                              +     * Next hop is Secure Web Proxy Gateway.
                                              +     * 
                                              + * + * SECURE_WEB_PROXY_GATEWAY = 13; + */ + public static final int SECURE_WEB_PROXY_GATEWAY_VALUE = 13; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -741,6 +762,8 @@ public static NextHopType forNumber(int value) { return NEXT_HOP_ROUTER_APPLIANCE; case 12: return NEXT_HOP_NCC_HUB; + case 13: + return SECURE_WEB_PROXY_GATEWAY; default: return null; } @@ -1048,7 +1071,7 @@ public com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType getNextHopTyp *
                                              * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=568 + * google/cloud/networkmanagement/v1/trace.proto;l=621 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -1070,7 +1093,7 @@ public int getRouteScopeValue() { *
                                              * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=568 + * google/cloud/networkmanagement/v1/trace.proto;l=621 * @return The routeScope. */ @java.lang.Override @@ -1318,7 +1341,7 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=588 + * google/cloud/networkmanagement/v1/trace.proto;l=641 * @return The nextHop. */ @java.lang.Override @@ -1347,7 +1370,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=588 + * google/cloud/networkmanagement/v1/trace.proto;l=641 * @return The bytes for nextHop. */ @java.lang.Override @@ -1996,7 +2019,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Override @@ -2019,7 +2042,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return The advertisedRouteNextHopUri. */ @java.lang.Override @@ -2050,7 +2073,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Override @@ -3539,7 +3562,7 @@ public Builder clearNextHopType() { *
                                              * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=568 + * google/cloud/networkmanagement/v1/trace.proto;l=621 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -3561,7 +3584,7 @@ public int getRouteScopeValue() { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=568 + * google/cloud/networkmanagement/v1/trace.proto;l=621 * @param value The enum numeric value on the wire for routeScope to set. * @return This builder for chaining. */ @@ -3586,7 +3609,7 @@ public Builder setRouteScopeValue(int value) { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=568 + * google/cloud/networkmanagement/v1/trace.proto;l=621 * @return The routeScope. */ @java.lang.Override @@ -3612,7 +3635,7 @@ public com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope getRouteScope( * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=568 + * google/cloud/networkmanagement/v1/trace.proto;l=621 * @param value The routeScope to set. * @return This builder for chaining. */ @@ -3640,7 +3663,7 @@ public Builder setRouteScope(com.google.cloud.networkmanagement.v1.RouteInfo.Rou * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=568 + * google/cloud/networkmanagement/v1/trace.proto;l=621 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4124,7 +4147,7 @@ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=588 + * google/cloud/networkmanagement/v1/trace.proto;l=641 * @return The nextHop. */ @java.lang.Deprecated @@ -4152,7 +4175,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=588 + * google/cloud/networkmanagement/v1/trace.proto;l=641 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -4180,7 +4203,7 @@ public com.google.protobuf.ByteString getNextHopBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=588 + * google/cloud/networkmanagement/v1/trace.proto;l=641 * @param value The nextHop to set. * @return This builder for chaining. */ @@ -4207,7 +4230,7 @@ public Builder setNextHop(java.lang.String value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=588 + * google/cloud/networkmanagement/v1/trace.proto;l=641 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4230,7 +4253,7 @@ public Builder clearNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=588 + * google/cloud/networkmanagement/v1/trace.proto;l=641 * @param value The bytes for nextHop to set. * @return This builder for chaining. */ @@ -5668,7 +5691,7 @@ public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteSt * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -5690,7 +5713,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5720,7 +5743,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5750,7 +5773,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @param value The advertisedRouteNextHopUri to set. * @return This builder for chaining. */ @@ -5779,7 +5802,7 @@ public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5804,7 +5827,7 @@ public Builder clearAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @param value The bytes for advertisedRouteNextHopUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java index f7ef50588390..fda18ced596d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java @@ -89,7 +89,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=568 + * google/cloud/networkmanagement/v1/trace.proto;l=621 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Deprecated @@ -108,7 +108,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=568 + * google/cloud/networkmanagement/v1/trace.proto;l=621 * @return The routeScope. */ @java.lang.Deprecated @@ -236,7 +236,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=588 + * google/cloud/networkmanagement/v1/trace.proto;l=641 * @return The nextHop. */ @java.lang.Deprecated @@ -254,7 +254,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=588 + * google/cloud/networkmanagement/v1/trace.proto;l=641 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -681,7 +681,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -701,7 +701,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -721,7 +721,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=681 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsRequest.java new file mode 100644 index 000000000000..cc0ff3f83f39 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsRequest.java @@ -0,0 +1,1389 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                              + * Request for the `ShowEffectiveFlowLogsConfigs` method.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest} + */ +public final class ShowEffectiveFlowLogsConfigsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest) + ShowEffectiveFlowLogsConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ShowEffectiveFlowLogsConfigsRequest.newBuilder() to construct. + private ShowEffectiveFlowLogsConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShowEffectiveFlowLogsConfigsRequest() { + parent_ = ""; + resource_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShowEffectiveFlowLogsConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent resource of the VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * 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 RESOURCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
                                              +   * Required. The resource to get the effective VPC Flow Logs configuration
                                              +   * for. The resource must belong to the same project as the parent. The
                                              +   * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +   * tunnel, or a project.
                                              +   * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The resource to get the effective VPC Flow Logs configuration
                                              +   * for. The resource must belong to the same project as the parent. The
                                              +   * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +   * tunnel, or a project.
                                              +   * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
                                              +   * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +   * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                              +   * Optional. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 4 [(.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. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 4 [(.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 FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +   * expression. A filter expression must use the supported [CEL logic
                                              +   * operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +   * expression. A filter expression must use the supported [CEL logic
                                              +   * operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + 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.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest other = + (com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getResource().equals(other.getResource())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest 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.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest 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.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Request for the `ShowEffectiveFlowLogsConfigs` method.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest) + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + resource_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest build() { + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + buildPartial() { + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest result = + new com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest other) { + if (other + == com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                              +     * Required. The parent resource of the VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 resource_ = ""; + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                              +     * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +     * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +     * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +     * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                              +     * Optional. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.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. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.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. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest) + private static final com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest(); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShowEffectiveFlowLogsConfigsRequest 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.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..eb3f16d8257c --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsRequestOrBuilder.java @@ -0,0 +1,163 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +public interface ShowEffectiveFlowLogsConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent resource of the VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Required. The resource to get the effective VPC Flow Logs configuration
                                              +   * for. The resource must belong to the same project as the parent. The
                                              +   * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +   * tunnel, or a project.
                                              +   * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
                                              +   * Required. The resource to get the effective VPC Flow Logs configuration
                                              +   * for. The resource must belong to the same project as the parent. The
                                              +   * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +   * tunnel, or a project.
                                              +   * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
                                              +   * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +   * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +   * expression. A filter expression must use the supported [CEL logic
                                              +   * operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +   * expression. A filter expression must use the supported [CEL logic
                                              +   * operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsResponse.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsResponse.java new file mode 100644 index 000000000000..4ed020698a32 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsResponse.java @@ -0,0 +1,1547 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                              + * Response for the `ShowEffectiveFlowLogsConfigs` method.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse} + */ +public final class ShowEffectiveFlowLogsConfigsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse) + ShowEffectiveFlowLogsConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ShowEffectiveFlowLogsConfigsResponse.newBuilder() to construct. + private ShowEffectiveFlowLogsConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShowEffectiveFlowLogsConfigsResponse() { + effectiveFlowLogsConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShowEffectiveFlowLogsConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse.Builder + .class); + } + + public static final int EFFECTIVE_FLOW_LOGS_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + effectiveFlowLogsConfigs_; + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getEffectiveFlowLogsConfigsList() { + return effectiveFlowLogsConfigs_; + } + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder> + getEffectiveFlowLogsConfigsOrBuilderList() { + return effectiveFlowLogsConfigs_; + } + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public int getEffectiveFlowLogsConfigsCount() { + return effectiveFlowLogsConfigs_.size(); + } + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig + getEffectiveFlowLogsConfigs(int index) { + return effectiveFlowLogsConfigs_.get(index); + } + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder + getEffectiveFlowLogsConfigsOrBuilder(int index) { + return effectiveFlowLogsConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * 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(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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 < effectiveFlowLogsConfigs_.size(); i++) { + output.writeMessage(1, effectiveFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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 < effectiveFlowLogsConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, effectiveFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse other = + (com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse) obj; + + if (!getEffectiveFlowLogsConfigsList().equals(other.getEffectiveFlowLogsConfigsList())) + 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 (getEffectiveFlowLogsConfigsCount() > 0) { + hash = (37 * hash) + EFFECTIVE_FLOW_LOGS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveFlowLogsConfigsList().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.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + 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.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + 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.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Response for the `ShowEffectiveFlowLogsConfigs` method.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse) + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (effectiveFlowLogsConfigsBuilder_ == null) { + effectiveFlowLogsConfigs_ = java.util.Collections.emptyList(); + } else { + effectiveFlowLogsConfigs_ = null; + effectiveFlowLogsConfigsBuilder_.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.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse build() { + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + buildPartial() { + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse result = + new com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse result) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + effectiveFlowLogsConfigs_ = + java.util.Collections.unmodifiableList(effectiveFlowLogsConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.effectiveFlowLogsConfigs_ = effectiveFlowLogsConfigs_; + } else { + result.effectiveFlowLogsConfigs_ = effectiveFlowLogsConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse 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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse other) { + if (other + == com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + .getDefaultInstance()) return this; + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (!other.effectiveFlowLogsConfigs_.isEmpty()) { + if (effectiveFlowLogsConfigs_.isEmpty()) { + effectiveFlowLogsConfigs_ = other.effectiveFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.addAll(other.effectiveFlowLogsConfigs_); + } + onChanged(); + } + } else { + if (!other.effectiveFlowLogsConfigs_.isEmpty()) { + if (effectiveFlowLogsConfigsBuilder_.isEmpty()) { + effectiveFlowLogsConfigsBuilder_.dispose(); + effectiveFlowLogsConfigsBuilder_ = null; + effectiveFlowLogsConfigs_ = other.effectiveFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + effectiveFlowLogsConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEffectiveFlowLogsConfigsFieldBuilder() + : null; + } else { + effectiveFlowLogsConfigsBuilder_.addAllMessages(other.effectiveFlowLogsConfigs_); + } + } + } + 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.networkmanagement.v1.EffectiveVpcFlowLogsConfig m = + input.readMessage( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.parser(), + extensionRegistry); + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(m); + } else { + effectiveFlowLogsConfigsBuilder_.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 + effectiveFlowLogsConfigs_ = java.util.Collections.emptyList(); + + private void ensureEffectiveFlowLogsConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + effectiveFlowLogsConfigs_ = + new java.util.ArrayList< + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig>( + effectiveFlowLogsConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder> + effectiveFlowLogsConfigsBuilder_; + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public java.util.List + getEffectiveFlowLogsConfigsList() { + if (effectiveFlowLogsConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(effectiveFlowLogsConfigs_); + } else { + return effectiveFlowLogsConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public int getEffectiveFlowLogsConfigsCount() { + if (effectiveFlowLogsConfigsBuilder_ == null) { + return effectiveFlowLogsConfigs_.size(); + } else { + return effectiveFlowLogsConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig + getEffectiveFlowLogsConfigs(int index) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + return effectiveFlowLogsConfigs_.get(index); + } else { + return effectiveFlowLogsConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder setEffectiveFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig value) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.set(index, value); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder setEffectiveFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder builderForValue) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig value) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(value); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addEffectiveFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig value) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(index, value); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder builderForValue) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(builderForValue.build()); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addEffectiveFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder builderForValue) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addAllEffectiveFlowLogsConfigs( + java.lang.Iterable< + ? extends com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig> + values) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectiveFlowLogsConfigs_); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder clearEffectiveFlowLogsConfigs() { + if (effectiveFlowLogsConfigsBuilder_ == null) { + effectiveFlowLogsConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder removeEffectiveFlowLogsConfigs(int index) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.remove(index); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder + getEffectiveFlowLogsConfigsBuilder(int index) { + return getEffectiveFlowLogsConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder + getEffectiveFlowLogsConfigsOrBuilder(int index) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + return effectiveFlowLogsConfigs_.get(index); + } else { + return effectiveFlowLogsConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder> + getEffectiveFlowLogsConfigsOrBuilderList() { + if (effectiveFlowLogsConfigsBuilder_ != null) { + return effectiveFlowLogsConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(effectiveFlowLogsConfigs_); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder + addEffectiveFlowLogsConfigsBuilder() { + return getEffectiveFlowLogsConfigsFieldBuilder() + .addBuilder( + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig + .getDefaultInstance()); + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder + addEffectiveFlowLogsConfigsBuilder(int index) { + return getEffectiveFlowLogsConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig + .getDefaultInstance()); + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public java.util.List + getEffectiveFlowLogsConfigsBuilderList() { + return getEffectiveFlowLogsConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder> + getEffectiveFlowLogsConfigsFieldBuilder() { + if (effectiveFlowLogsConfigsBuilder_ == null) { + effectiveFlowLogsConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder>( + effectiveFlowLogsConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + effectiveFlowLogsConfigs_ = null; + } + return effectiveFlowLogsConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse) + private static final com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse(); + } + + public static com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShowEffectiveFlowLogsConfigsResponse 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.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsResponseOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..75ff4836091c --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ShowEffectiveFlowLogsConfigsResponseOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1; + +public interface ShowEffectiveFlowLogsConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + java.util.List + getEffectiveFlowLogsConfigsList(); + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig getEffectiveFlowLogsConfigs( + int index); + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + int getEffectiveFlowLogsConfigsCount(); + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + java.util.List< + ? extends com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder> + getEffectiveFlowLogsConfigsOrBuilderList(); + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfigOrBuilder + getEffectiveFlowLogsConfigsOrBuilder(int index); + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java index 1d8611a724b8..847d014e4fa4 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java @@ -322,8 +322,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
                                                    * Forwarding state: arriving at a Compute Engine internal load balancer.
                                              -     * Deprecated in favor of the `ANALYZE_LOAD_BALANCER_BACKEND` state, not
                                              -     * used in new tests.
                                                    * 
                                              * * ARRIVE_AT_INTERNAL_LOAD_BALANCER = 10 [deprecated = true]; @@ -335,14 +333,23 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
                                                    * Forwarding state: arriving at a Compute Engine external load balancer.
                                              -     * Deprecated in favor of the `ANALYZE_LOAD_BALANCER_BACKEND` state, not
                                              -     * used in new tests.
                                                    * 
                                              * * ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11 [deprecated = true]; */ @java.lang.Deprecated ARRIVE_AT_EXTERNAL_LOAD_BALANCER(11), + /** + * + * + *
                                              +     * Forwarding state: arriving at a hybrid subnet. Appropriate routing
                                              +     * configuration will be determined here.
                                              +     * 
                                              + * + * ARRIVE_AT_HYBRID_SUBNET = 38; + */ + ARRIVE_AT_HYBRID_SUBNET(38), /** * * @@ -363,6 +370,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ARRIVE_AT_VPN_TUNNEL = 13; */ ARRIVE_AT_VPN_TUNNEL(13), + /** + * + * + *
                                              +     * Forwarding state: arriving at an interconnect attachment.
                                              +     * 
                                              + * + * ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; + */ + ARRIVE_AT_INTERCONNECT_ATTACHMENT(37), /** * * @@ -399,7 +416,8 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Transition state: packet header translated.
                                              +     * Transition state: packet header translated. The `nat` field is populated
                                              +     * with the translation information.
                                                    * 
                                              * * NAT = 14; @@ -737,8 +755,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
                                                    * Forwarding state: arriving at a Compute Engine internal load balancer.
                                              -     * Deprecated in favor of the `ANALYZE_LOAD_BALANCER_BACKEND` state, not
                                              -     * used in new tests.
                                                    * 
                                              * * ARRIVE_AT_INTERNAL_LOAD_BALANCER = 10 [deprecated = true]; @@ -750,14 +766,24 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
                                                    * Forwarding state: arriving at a Compute Engine external load balancer.
                                              -     * Deprecated in favor of the `ANALYZE_LOAD_BALANCER_BACKEND` state, not
                                              -     * used in new tests.
                                                    * 
                                              * * ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11 [deprecated = true]; */ @java.lang.Deprecated public static final int ARRIVE_AT_EXTERNAL_LOAD_BALANCER_VALUE = 11; + /** + * + * + *
                                              +     * Forwarding state: arriving at a hybrid subnet. Appropriate routing
                                              +     * configuration will be determined here.
                                              +     * 
                                              + * + * ARRIVE_AT_HYBRID_SUBNET = 38; + */ + public static final int ARRIVE_AT_HYBRID_SUBNET_VALUE = 38; + /** * * @@ -780,6 +806,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ARRIVE_AT_VPN_TUNNEL_VALUE = 13; + /** + * + * + *
                                              +     * Forwarding state: arriving at an interconnect attachment.
                                              +     * 
                                              + * + * ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; + */ + public static final int ARRIVE_AT_INTERCONNECT_ATTACHMENT_VALUE = 37; + /** * * @@ -819,7 +856,8 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Transition state: packet header translated.
                                              +     * Transition state: packet header translated. The `nat` field is populated
                                              +     * with the translation information.
                                                    * 
                                              * * NAT = 14; @@ -967,10 +1005,14 @@ public static State forNumber(int value) { return ARRIVE_AT_INTERNAL_LOAD_BALANCER; case 11: return ARRIVE_AT_EXTERNAL_LOAD_BALANCER; + case 38: + return ARRIVE_AT_HYBRID_SUBNET; case 12: return ARRIVE_AT_VPN_GATEWAY; case 13: return ARRIVE_AT_VPN_TUNNEL; + case 37: + return ARRIVE_AT_INTERCONNECT_ATTACHMENT; case 24: return ARRIVE_AT_VPC_CONNECTOR; case 35: @@ -1059,8 +1101,10 @@ public enum StepInfoCase ENDPOINT(8), GOOGLE_SERVICE(24), FORWARDING_RULE(9), + HYBRID_SUBNET(36), VPN_GATEWAY(10), VPN_TUNNEL(11), + INTERCONNECT_ATTACHMENT(35), VPC_CONNECTOR(21), DIRECT_VPC_EGRESS_CONNECTION(33), SERVERLESS_EXTERNAL_CONNECTION(34), @@ -1114,10 +1158,14 @@ public static StepInfoCase forNumber(int value) { return GOOGLE_SERVICE; case 9: return FORWARDING_RULE; + case 36: + return HYBRID_SUBNET; case 10: return VPN_GATEWAY; case 11: return VPN_TUNNEL; + case 35: + return INTERCONNECT_ATTACHMENT; case 21: return VPC_CONNECTOR; case 33: @@ -1673,6 +1721,61 @@ public com.google.cloud.networkmanagement.v1.ForwardingRuleInfo getForwardingRul return com.google.cloud.networkmanagement.v1.ForwardingRuleInfo.getDefaultInstance(); } + public static final int HYBRID_SUBNET_FIELD_NUMBER = 36; + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return Whether the hybridSubnet field is set. + */ + @java.lang.Override + public boolean hasHybridSubnet() { + return stepInfoCase_ == 36; + } + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return The hybridSubnet. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.HybridSubnetInfo getHybridSubnet() { + if (stepInfoCase_ == 36) { + return (com.google.cloud.networkmanagement.v1.HybridSubnetInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.HybridSubnetInfo.getDefaultInstance(); + } + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.HybridSubnetInfoOrBuilder + getHybridSubnetOrBuilder() { + if (stepInfoCase_ == 36) { + return (com.google.cloud.networkmanagement.v1.HybridSubnetInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.HybridSubnetInfo.getDefaultInstance(); + } + public static final int VPN_GATEWAY_FIELD_NUMBER = 10; /** @@ -1781,6 +1884,68 @@ public com.google.cloud.networkmanagement.v1.VpnTunnelInfoOrBuilder getVpnTunnel return com.google.cloud.networkmanagement.v1.VpnTunnelInfo.getDefaultInstance(); } + public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 35; + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return Whether the interconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasInterconnectAttachment() { + return stepInfoCase_ == 35; + } + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return The interconnectAttachment. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + getInterconnectAttachment() { + if (stepInfoCase_ == 35) { + return (com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.getDefaultInstance(); + } + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfoOrBuilder + getInterconnectAttachmentOrBuilder() { + if (stepInfoCase_ == 35) { + return (com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.getDefaultInstance(); + } + public static final int VPC_CONNECTOR_FIELD_NUMBER = 21; /** @@ -2193,7 +2358,7 @@ public com.google.cloud.networkmanagement.v1.DropInfoOrBuilder getDropOrBuilder( * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=272 + * google/cloud/networkmanagement/v1/trace.proto;l=282 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -2215,7 +2380,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=272 + * google/cloud/networkmanagement/v1/trace.proto;l=282 * @return The loadBalancer. */ @java.lang.Override @@ -3091,6 +3256,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 34, (com.google.cloud.networkmanagement.v1.ServerlessExternalConnectionInfo) stepInfo_); } + if (stepInfoCase_ == 35) { + output.writeMessage( + 35, (com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) stepInfo_); + } + if (stepInfoCase_ == 36) { + output.writeMessage(36, (com.google.cloud.networkmanagement.v1.HybridSubnetInfo) stepInfo_); + } getUnknownFields().writeTo(output); } @@ -3258,6 +3430,16 @@ public int getSerializedSize() { 34, (com.google.cloud.networkmanagement.v1.ServerlessExternalConnectionInfo) stepInfo_); } + if (stepInfoCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, (com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) stepInfo_); + } + if (stepInfoCase_ == 36) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 36, (com.google.cloud.networkmanagement.v1.HybridSubnetInfo) stepInfo_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3298,12 +3480,18 @@ public boolean equals(final java.lang.Object obj) { case 9: if (!getForwardingRule().equals(other.getForwardingRule())) return false; break; + case 36: + if (!getHybridSubnet().equals(other.getHybridSubnet())) return false; + break; case 10: if (!getVpnGateway().equals(other.getVpnGateway())) return false; break; case 11: if (!getVpnTunnel().equals(other.getVpnTunnel())) return false; break; + case 35: + if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; + break; case 21: if (!getVpcConnector().equals(other.getVpcConnector())) return false; break; @@ -3416,6 +3604,10 @@ public int hashCode() { hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER; hash = (53 * hash) + getForwardingRule().hashCode(); break; + case 36: + hash = (37 * hash) + HYBRID_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getHybridSubnet().hashCode(); + break; case 10: hash = (37 * hash) + VPN_GATEWAY_FIELD_NUMBER; hash = (53 * hash) + getVpnGateway().hashCode(); @@ -3424,6 +3616,10 @@ public int hashCode() { hash = (37 * hash) + VPN_TUNNEL_FIELD_NUMBER; hash = (53 * hash) + getVpnTunnel().hashCode(); break; + case 35: + hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getInterconnectAttachment().hashCode(); + break; case 21: hash = (37 * hash) + VPC_CONNECTOR_FIELD_NUMBER; hash = (53 * hash) + getVpcConnector().hashCode(); @@ -3675,12 +3871,18 @@ public Builder clear() { if (forwardingRuleBuilder_ != null) { forwardingRuleBuilder_.clear(); } + if (hybridSubnetBuilder_ != null) { + hybridSubnetBuilder_.clear(); + } if (vpnGatewayBuilder_ != null) { vpnGatewayBuilder_.clear(); } if (vpnTunnelBuilder_ != null) { vpnTunnelBuilder_.clear(); } + if (interconnectAttachmentBuilder_ != null) { + interconnectAttachmentBuilder_.clear(); + } if (vpcConnectorBuilder_ != null) { vpcConnectorBuilder_.clear(); } @@ -3825,12 +4027,18 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1.Step resul if (stepInfoCase_ == 9 && forwardingRuleBuilder_ != null) { result.stepInfo_ = forwardingRuleBuilder_.build(); } + if (stepInfoCase_ == 36 && hybridSubnetBuilder_ != null) { + result.stepInfo_ = hybridSubnetBuilder_.build(); + } if (stepInfoCase_ == 10 && vpnGatewayBuilder_ != null) { result.stepInfo_ = vpnGatewayBuilder_.build(); } if (stepInfoCase_ == 11 && vpnTunnelBuilder_ != null) { result.stepInfo_ = vpnTunnelBuilder_.build(); } + if (stepInfoCase_ == 35 && interconnectAttachmentBuilder_ != null) { + result.stepInfo_ = interconnectAttachmentBuilder_.build(); + } if (stepInfoCase_ == 21 && vpcConnectorBuilder_ != null) { result.stepInfo_ = vpcConnectorBuilder_.build(); } @@ -3988,6 +4196,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) { mergeForwardingRule(other.getForwardingRule()); break; } + case HYBRID_SUBNET: + { + mergeHybridSubnet(other.getHybridSubnet()); + break; + } case VPN_GATEWAY: { mergeVpnGateway(other.getVpnGateway()); @@ -3998,6 +4211,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) { mergeVpnTunnel(other.getVpnTunnel()); break; } + case INTERCONNECT_ATTACHMENT: + { + mergeInterconnectAttachment(other.getInterconnectAttachment()); + break; + } case VPC_CONNECTOR: { mergeVpcConnector(other.getVpcConnector()); @@ -4338,6 +4556,19 @@ public Builder mergeFrom( stepInfoCase_ = 34; break; } // case 274 + case 282: + { + input.readMessage( + getInterconnectAttachmentFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 35; + break; + } // case 282 + case 290: + { + input.readMessage(getHybridSubnetFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 36; + break; + } // case 290 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6094,6 +6325,226 @@ public Builder clearForwardingRule() { return forwardingRuleBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.HybridSubnetInfo, + com.google.cloud.networkmanagement.v1.HybridSubnetInfo.Builder, + com.google.cloud.networkmanagement.v1.HybridSubnetInfoOrBuilder> + hybridSubnetBuilder_; + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return Whether the hybridSubnet field is set. + */ + @java.lang.Override + public boolean hasHybridSubnet() { + return stepInfoCase_ == 36; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return The hybridSubnet. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.HybridSubnetInfo getHybridSubnet() { + if (hybridSubnetBuilder_ == null) { + if (stepInfoCase_ == 36) { + return (com.google.cloud.networkmanagement.v1.HybridSubnetInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.HybridSubnetInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 36) { + return hybridSubnetBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.HybridSubnetInfo.getDefaultInstance(); + } + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + */ + public Builder setHybridSubnet(com.google.cloud.networkmanagement.v1.HybridSubnetInfo value) { + if (hybridSubnetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + hybridSubnetBuilder_.setMessage(value); + } + stepInfoCase_ = 36; + return this; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + */ + public Builder setHybridSubnet( + com.google.cloud.networkmanagement.v1.HybridSubnetInfo.Builder builderForValue) { + if (hybridSubnetBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + hybridSubnetBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 36; + return this; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + */ + public Builder mergeHybridSubnet(com.google.cloud.networkmanagement.v1.HybridSubnetInfo value) { + if (hybridSubnetBuilder_ == null) { + if (stepInfoCase_ == 36 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.HybridSubnetInfo.getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.HybridSubnetInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.HybridSubnetInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 36) { + hybridSubnetBuilder_.mergeFrom(value); + } else { + hybridSubnetBuilder_.setMessage(value); + } + } + stepInfoCase_ = 36; + return this; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + */ + public Builder clearHybridSubnet() { + if (hybridSubnetBuilder_ == null) { + if (stepInfoCase_ == 36) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 36) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + hybridSubnetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + */ + public com.google.cloud.networkmanagement.v1.HybridSubnetInfo.Builder getHybridSubnetBuilder() { + return getHybridSubnetFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.HybridSubnetInfoOrBuilder + getHybridSubnetOrBuilder() { + if ((stepInfoCase_ == 36) && (hybridSubnetBuilder_ != null)) { + return hybridSubnetBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 36) { + return (com.google.cloud.networkmanagement.v1.HybridSubnetInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.HybridSubnetInfo.getDefaultInstance(); + } + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.HybridSubnetInfo, + com.google.cloud.networkmanagement.v1.HybridSubnetInfo.Builder, + com.google.cloud.networkmanagement.v1.HybridSubnetInfoOrBuilder> + getHybridSubnetFieldBuilder() { + if (hybridSubnetBuilder_ == null) { + if (!(stepInfoCase_ == 36)) { + stepInfo_ = com.google.cloud.networkmanagement.v1.HybridSubnetInfo.getDefaultInstance(); + } + hybridSubnetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.HybridSubnetInfo, + com.google.cloud.networkmanagement.v1.HybridSubnetInfo.Builder, + com.google.cloud.networkmanagement.v1.HybridSubnetInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.HybridSubnetInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 36; + onChanged(); + return hybridSubnetBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.networkmanagement.v1.VpnGatewayInfo, com.google.cloud.networkmanagement.v1.VpnGatewayInfo.Builder, @@ -6532,6 +6983,253 @@ public com.google.cloud.networkmanagement.v1.VpnTunnelInfoOrBuilder getVpnTunnel return vpnTunnelBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo, + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Builder, + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfoOrBuilder> + interconnectAttachmentBuilder_; + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return Whether the interconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasInterconnectAttachment() { + return stepInfoCase_ == 35; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return The interconnectAttachment. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + getInterconnectAttachment() { + if (interconnectAttachmentBuilder_ == null) { + if (stepInfoCase_ == 35) { + return (com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + .getDefaultInstance(); + } else { + if (stepInfoCase_ == 35) { + return interconnectAttachmentBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + .getDefaultInstance(); + } + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public Builder setInterconnectAttachment( + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo value) { + if (interconnectAttachmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + interconnectAttachmentBuilder_.setMessage(value); + } + stepInfoCase_ = 35; + return this; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public Builder setInterconnectAttachment( + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Builder builderForValue) { + if (interconnectAttachmentBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + interconnectAttachmentBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 35; + return this; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public Builder mergeInterconnectAttachment( + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo value) { + if (interconnectAttachmentBuilder_ == null) { + if (stepInfoCase_ == 35 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 35) { + interconnectAttachmentBuilder_.mergeFrom(value); + } else { + interconnectAttachmentBuilder_.setMessage(value); + } + } + stepInfoCase_ = 35; + return this; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public Builder clearInterconnectAttachment() { + if (interconnectAttachmentBuilder_ == null) { + if (stepInfoCase_ == 35) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 35) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + interconnectAttachmentBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Builder + getInterconnectAttachmentBuilder() { + return getInterconnectAttachmentFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfoOrBuilder + getInterconnectAttachmentOrBuilder() { + if ((stepInfoCase_ == 35) && (interconnectAttachmentBuilder_ != null)) { + return interconnectAttachmentBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 35) { + return (com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo + .getDefaultInstance(); + } + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo, + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Builder, + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfoOrBuilder> + getInterconnectAttachmentFieldBuilder() { + if (interconnectAttachmentBuilder_ == null) { + if (!(stepInfoCase_ == 35)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.getDefaultInstance(); + } + interconnectAttachmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo, + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Builder, + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 35; + onChanged(); + return interconnectAttachmentBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.networkmanagement.v1.VpcConnectorInfo, com.google.cloud.networkmanagement.v1.VpcConnectorInfo.Builder, @@ -8144,7 +8842,7 @@ public com.google.cloud.networkmanagement.v1.DropInfoOrBuilder getDropOrBuilder( * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=272 + * google/cloud/networkmanagement/v1/trace.proto;l=282 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -8166,7 +8864,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=272 + * google/cloud/networkmanagement/v1/trace.proto;l=282 * @return The loadBalancer. */ @java.lang.Override diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java index 6449a14a3cd2..588da09726b8 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java @@ -346,6 +346,43 @@ public interface StepOrBuilder */ com.google.cloud.networkmanagement.v1.ForwardingRuleInfoOrBuilder getForwardingRuleOrBuilder(); + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return Whether the hybridSubnet field is set. + */ + boolean hasHybridSubnet(); + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return The hybridSubnet. + */ + com.google.cloud.networkmanagement.v1.HybridSubnetInfo getHybridSubnet(); + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1.HybridSubnetInfo hybrid_subnet = 36; + */ + com.google.cloud.networkmanagement.v1.HybridSubnetInfoOrBuilder getHybridSubnetOrBuilder(); + /** * * @@ -420,6 +457,50 @@ public interface StepOrBuilder */ com.google.cloud.networkmanagement.v1.VpnTunnelInfoOrBuilder getVpnTunnelOrBuilder(); + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return Whether the interconnectAttachment field is set. + */ + boolean hasInterconnectAttachment(); + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return The interconnectAttachment. + */ + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo getInterconnectAttachment(); + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + com.google.cloud.networkmanagement.v1.InterconnectAttachmentInfoOrBuilder + getInterconnectAttachmentOrBuilder(); + /** * * @@ -708,7 +789,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=272 + * google/cloud/networkmanagement/v1/trace.proto;l=282 * @return Whether the loadBalancer field is set. */ @java.lang.Deprecated @@ -727,7 +808,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=272 + * google/cloud/networkmanagement/v1/trace.proto;l=282 * @return The loadBalancer. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java index d06cd3e48707..22cfce6829ba 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1_ProbingDetails_EdgeLocation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1_ProbingDetails_EdgeLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -178,7 +182,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latency_micros\030\002 \001(\003\"h\n" + "\023LatencyDistribution\022Q\n" + "\023latency_percentiles\030\001" - + " \003(\01324.google.cloud.networkmanagement.v1.LatencyPercentile\"\336\006\n" + + " \003(\01324.google.cloud.networkmanagement.v1.LatencyPercentile\"\314\n\n" + "\016ProbingDetails\022O\n" + "\006result\030\001 \001(\0162?.google.cloud.netwo" + "rkmanagement.v1.ProbingDetails.ProbingResult\022/\n" @@ -193,9 +197,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017probing_latency\030\010" + " \001(\01326.google.cloud.networkmanagement.v1.LatencyDistribution\022c\n" + "\033destination_egress_location\030\t \001(\0132>.google.clou" - + "d.networkmanagement.v1.ProbingDetails.EdgeLocation\032)\n" + + "d.networkmanagement.v1.ProbingDetails.EdgeLocation\022\\\n" + + "\016edge_responses\030\n" + + " \003(\0132D.goo" + + "gle.cloud.networkmanagement.v1.ProbingDetails.SingleEdgeResponse\022\032\n" + + "\022probed_all_devices\030\013 \001(\010\032)\n" + "\014EdgeLocation\022\031\n" - + "\021metropolitan_area\030\001 \001(\t\"\200\001\n\r" + + "\021metropolitan_area\030\001 \001(\t\032\361\002\n" + + "\022SingleEdgeResponse\022O\n" + + "\006result\030\001 \001(\0162?.google.cloud.networkman" + + "agement.v1.ProbingDetails.ProbingResult\022\030\n" + + "\020sent_probe_count\030\002 \001(\005\022\036\n" + + "\026successful_probe_count\030\003 \001(\005\022O\n" + + "\017probing_latency\030\004 \001" + + "(\01326.google.cloud.networkmanagement.v1.LatencyDistribution\022c\n" + + "\033destination_egress_location\030\005 \001(\0132>.google.cloud.networkma" + + "nagement.v1.ProbingDetails.EdgeLocation\022\032\n" + + "\022destination_router\030\006 \001(\t\"\200\001\n\r" + "ProbingResult\022\036\n" + "\032PROBING_RESULT_UNSPECIFIED\020\000\022\r\n" + "\tREACHABLE\020\001\022\017\n" @@ -206,10 +224,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037PROBING_ABORT_CAUSE_UNSPECIFIED\020\000\022\025\n" + "\021PERMISSION_DENIED\020\001\022\026\n" + "\022NO_SOURCE_LOCATION\020\002B\375\001\n" - + "%com.google.cloud.networkmanagement.v1B\016TestOuterClassP\001ZScloud.goo" - + "gle.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb\252\002!Goo" - + "gle.Cloud.NetworkManagement.V1\312\002!Google\\" - + "Cloud\\NetworkManagement\\V1\352\002$Google::Cloud::NetworkManagement::V1b\006proto3" + + "%com.google.cloud.networkmanagement.v1B\016TestOuterClas" + + "sP\001ZScloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmana" + + "gementpb\252\002!Google.Cloud.NetworkManagemen" + + "t.V1\312\002!Google\\Cloud\\NetworkManagement\\V1" + + "\352\002$Google::Cloud::NetworkManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -347,6 +366,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EndpointInfo", "ProbingLatency", "DestinationEgressLocation", + "EdgeResponses", + "ProbedAllDevices", }); internal_static_google_cloud_networkmanagement_v1_ProbingDetails_EdgeLocation_descriptor = internal_static_google_cloud_networkmanagement_v1_ProbingDetails_descriptor @@ -358,6 +379,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MetropolitanArea", }); + internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_descriptor = + internal_static_google_cloud_networkmanagement_v1_ProbingDetails_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_ProbingDetails_SingleEdgeResponse_descriptor, + new java.lang.String[] { + "Result", + "SentProbeCount", + "SuccessfulProbeCount", + "ProbingLatency", + "DestinationEgressLocation", + "DestinationRouter", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java index cb7abeac8d21..c72a6f85d62d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java @@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackend_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackend_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkmanagement_v1_VpnGatewayInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -76,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1_VpnTunnelInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1_VpnTunnelInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkmanagement_v1_EndpointInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -172,7 +180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "endpoint_info\030\001" + " \001(\0132/.google.cloud.networkmanagement.v1.EndpointInfo\0226\n" + "\005steps\030\002 \003(\0132\'.google.cloud.networkmanagement.v1.Step\022\030\n" - + "\020forward_trace_id\030\004 \001(\005\"\311\032\n" + + "\020forward_trace_id\030\004 \001(\005\"\275\034\n" + "\004Step\022\023\n" + "\013description\030\001 \001(\t\022<\n" + "\005state\030\002 \001(\0162-.google.cloud.networkmanagement.v1.Step.State\022\023\n" @@ -188,50 +196,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016google_service\030\030" + " \001(\01324.google.cloud.networkmanagement.v1.GoogleServiceInfoH\000\022P\n" + "\017forwarding_rule\030\t" - + " \001(\01325.google.cloud.networkmanagement.v1.ForwardingRuleInfoH\000\022H\n" + + " \001(\01325.google.cloud.networkmanagement.v1.ForwardingRuleInfoH\000\022L\n\r" + + "hybrid_subnet\030$" + + " \001(\01323.google.cloud.networkmanagement.v1.HybridSubnetInfoH\000\022H\n" + "\013vpn_gateway\030\n" + " \001(\01321.google.cloud.networkmanagement.v1.VpnGatewayInfoH\000\022F\n\n" + "vpn_tunnel\030\013" - + " \001(\01320.google.cloud.networkmanagement.v1.VpnTunnelInfoH\000\022L\n\r" - + "vpc_connector\030\025 \001" - + "(\01323.google.cloud.networkmanagement.v1.VpcConnectorInfoH\000\022h\n" - + "\034direct_vpc_egress_connection\030! \001(\0132@.google.cloud.networkma" - + "nagement.v1.DirectVpcEgressConnectionInfoH\000\022m\n" - + "\036serverless_external_connection\030\" " - + "\001(\0132C.google.cloud.networkmanagement.v1.ServerlessExternalConnectionInfoH\000\022A\n" + + " \001(\01320.google.cloud.networkmanagement.v1.VpnTunnelInfoH\000\022`\n" + + "\027interconnect_attachment\030#" + + " \001(\0132=.google.cloud.networkmanagement.v1.InterconnectAttachmentInfoH\000\022L\n\r" + + "vpc_connector\030\025" + + " \001(\01323.google.cloud.networkmanagement.v1.VpcConnectorInfoH\000\022h\n" + + "\034direct_vpc_egress_connection\030! \001(\0132@.google" + + ".cloud.networkmanagement.v1.DirectVpcEgressConnectionInfoH\000\022m\n" + + "\036serverless_external_connection\030\" \001(\0132C.google.cloud.netwo" + + "rkmanagement.v1.ServerlessExternalConnectionInfoH\000\022A\n" + "\007deliver\030\014" + " \001(\0132..google.cloud.networkmanagement.v1.DeliverInfoH\000\022A\n" + "\007forward\030\r" + " \001(\0132..google.cloud.networkmanagement.v1.ForwardInfoH\000\022=\n" + "\005abort\030\016 \001(\0132,.google.cloud.networkmanagement.v1.AbortInfoH\000\022;\n" + "\004drop\030\017 \001(\0132+.google.cloud.networkmanagement.v1.DropInfoH\000\022P\n\r" - + "load_balancer\030\020 \001(\01323.go" - + "ogle.cloud.networkmanagement.v1.LoadBalancerInfoB\002\030\001H\000\022A\n" - + "\007network\030\021 \001(\0132..google" - + ".cloud.networkmanagement.v1.NetworkInfoH\000\022F\n\n" - + "gke_master\030\022" - + " \001(\01320.google.cloud.networkmanagement.v1.GKEMasterInfoH\000\022U\n" - + "\022cloud_sql_instance\030\023 \001(\01327.google.cloud.net" - + "workmanagement.v1.CloudSQLInstanceInfoH\000\022N\n" - + "\016redis_instance\030\036 \001(\01324.google.cloud." - + "networkmanagement.v1.RedisInstanceInfoH\000\022L\n\r" - + "redis_cluster\030\037 \001(\01323.google.cloud.n" - + "etworkmanagement.v1.RedisClusterInfoH\000\022N\n" - + "\016cloud_function\030\024 \001(\01324.google.cloud.ne" - + "tworkmanagement.v1.CloudFunctionInfoH\000\022U\n" - + "\022app_engine_version\030\026 \001(\01327.google.clou" - + "d.networkmanagement.v1.AppEngineVersionInfoH\000\022U\n" - + "\022cloud_run_revision\030\027 \001(\01327.goog" - + "le.cloud.networkmanagement.v1.CloudRunRevisionInfoH\000\0229\n" + + "load_balancer\030\020" + + " \001(\01323.google.cloud.networkmanagement.v1.LoadBalancerInfoB\002\030\001H\000\022A\n" + + "\007network\030\021" + + " \001(\0132..google.cloud.networkmanagement.v1.NetworkInfoH\000\022F\n\n" + + "gke_master\030\022 \001(\01320." + + "google.cloud.networkmanagement.v1.GKEMasterInfoH\000\022U\n" + + "\022cloud_sql_instance\030\023 \001(\01327." + + "google.cloud.networkmanagement.v1.CloudSQLInstanceInfoH\000\022N\n" + + "\016redis_instance\030\036 \001(\013" + + "24.google.cloud.networkmanagement.v1.RedisInstanceInfoH\000\022L\n\r" + + "redis_cluster\030\037 \001(\0132" + + "3.google.cloud.networkmanagement.v1.RedisClusterInfoH\000\022N\n" + + "\016cloud_function\030\024 \001(\01324" + + ".google.cloud.networkmanagement.v1.CloudFunctionInfoH\000\022U\n" + + "\022app_engine_version\030\026 \001" + + "(\01327.google.cloud.networkmanagement.v1.AppEngineVersionInfoH\000\022U\n" + + "\022cloud_run_revision\030\027" + + " \001(\01327.google.cloud.networkmanagement.v1.CloudRunRevisionInfoH\000\0229\n" + "\003nat\030\031 \001(\0132*.google.cloud.networkmanagement.v1.NatInfoH\000\022R\n" - + "\020proxy_connection\030\032" - + " \001(\01326.google.cloud.networkmanagement.v1.ProxyConnectionInfoH\000\022`\n" - + "\032load_balancer_backend_info\030\033 \001(\0132:.google" - + ".cloud.networkmanagement.v1.LoadBalancerBackendInfoH\000\022N\n" - + "\016storage_bucket\030\034 \001(\01324." - + "google.cloud.networkmanagement.v1.StorageBucketInfoH\000\022N\n" - + "\016serverless_neg\030\035 \001(\01324." - + "google.cloud.networkmanagement.v1.ServerlessNegInfoH\000\"\353\007\n" + + "\020proxy_connection\030\032 \001(\01326.goog" + + "le.cloud.networkmanagement.v1.ProxyConnectionInfoH\000\022`\n" + + "\032load_balancer_backend_info\030\033" + + " \001(\0132:.google.cloud.networkmanagement.v1.LoadBalancerBackendInfoH\000\022N\n" + + "\016storage_bucket\030\034" + + " \001(\01324.google.cloud.networkmanagement.v1.StorageBucketInfoH\000\022N\n" + + "\016serverless_neg\030\035" + + " \001(\01324.google.cloud.networkmanagement.v1.ServerlessNegInfoH\000\"\257\010\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\027\n" + "\023START_FROM_INSTANCE\020\001\022\027\n" @@ -257,10 +269,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ARRIVE_AT_INSTANCE\020\t\022(\n" + " ARRIVE_AT_INTERNAL_LOAD_BALANCER\020\n" + "\032\002\010\001\022(\n" - + " ARRIVE_AT_EXTERNAL_LOAD_BALANCER\020\013\032\002\010\001\022\031\n" + + " ARRIVE_AT_EXTERNAL_LOAD_BALANCER\020\013\032\002\010\001\022\033\n" + + "\027ARRIVE_AT_HYBRID_SUBNET\020&\022\031\n" + "\025ARRIVE_AT_VPN_GATEWAY\020\014\022\030\n" + "\024ARRIVE_AT_VPN_TUNNEL\020\r" - + "\022\033\n" + + "\022%\n" + + "!ARRIVE_AT_INTERCONNECT_ATTACHMENT\020%\022\033\n" + "\027ARRIVE_AT_VPC_CONNECTOR\020\030\022 \n" + "\034DIRECT_VPC_EGRESS_CONNECTION\020#\022\"\n" + "\036SERVERLESS_EXTERNAL_CONNECTION\020$\022\007\n" @@ -271,7 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007FORWARD\020\022\022\t\n" + "\005ABORT\020\023\022\035\n" + "\031VIEWER_PERMISSION_MISSING\020\024B\013\n" - + "\tstep_info\"\332\001\n" + + "\tstep_info\"\367\002\n" + "\014InstanceInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\021\n" @@ -281,13 +295,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013external_ip\030\006 \001(\t\022\024\n" + "\014network_tags\030\007 \003(\t\022\033\n" + "\017service_account\030\010 \001(\tB\002\030\001\022\"\n" - + "\032psc_network_attachment_uri\030\t \001(\t\"v\n" + + "\032psc_network_attachment_uri\030\t \001(\t\022\023\n" + + "\007running\030\n" + + " \001(\010B\002\030\001\022F\n" + + "\006status\030\013" + + " \001(\01626.google.cloud.networkmanagement.v1.InstanceInfo.Status\">\n" + + "\006Status\022\026\n" + + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + + "\007RUNNING\020\001\022\017\n" + + "\013NOT_RUNNING\020\002\"v\n" + "\013NetworkInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\032\n" + "\022matched_subnet_uri\030\005 \001(\t\022\030\n" + "\020matched_ip_range\030\004 \001(\t\022\016\n" - + "\006region\030\006 \001(\t\"\227\005\n" + + "\006region\030\006 \001(\t\"\324\006\n" + "\014FirewallInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\021\n" @@ -300,8 +322,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006policy\030\t \001(\t\022\022\n\n" + "policy_uri\030\013 \001(\t\022\\\n" + "\022firewall_rule_type\030\n" - + " \001(\0162@.google.cloud.network" - + "management.v1.FirewallInfo.FirewallRuleType\"\341\002\n" + + " \001(\0162@.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType\022\027\n" + + "\017policy_priority\030\014 \001(\005\022O\n" + + "\013target_type\030\r" + + " \001(\0162:.google.cloud.networkmanagement.v1.FirewallInfo.TargetType\"\341\002\n" + "\020FirewallRuleType\022\"\n" + "\036FIREWALL_RULE_TYPE_UNSPECIFIED\020\000\022%\n" + "!HIERARCHICAL_FIREWALL_POLICY_RULE\020\001\022\025\n" @@ -312,14 +336,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%NETWORK_REGIONAL_FIREWALL_POLICY_RULE\020\006\022$\n" + " UNSUPPORTED_FIREWALL_POLICY_RULE\020d\022\022\n" + "\016TRACKING_STATE\020e\022\024\n" - + "\020ANALYSIS_SKIPPED\020f\"\316\013\n" + + "\020ANALYSIS_SKIPPED\020f\"Q\n\n" + + "TargetType\022\033\n" + + "\027TARGET_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tINSTANCES\020\001\022\027\n" + + "\023INTERNAL_MANAGED_LB\020\002\"\354\013\n" + "\tRouteInfo\022J\n\n" - + "route_type\030\010 \001(\01626.goog" - + "le.cloud.networkmanagement.v1.RouteInfo.RouteType\022O\n\r" - + "next_hop_type\030\t \001(\01628.googl" - + "e.cloud.networkmanagement.v1.RouteInfo.NextHopType\022P\n" - + "\013route_scope\030\016 \001(\01627.google" - + ".cloud.networkmanagement.v1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + + "route_type\030\010 \001(\01626.google.cloud.n" + + "etworkmanagement.v1.RouteInfo.RouteType\022O\n\r" + + "next_hop_type\030\t \001(\01628.google.cloud.ne" + + "tworkmanagement.v1.RouteInfo.NextHopType\022P\n" + + "\013route_scope\030\016 \001(\01627.google.cloud.net" + + "workmanagement.v1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\016\n" + "\006region\030\023 \001(\t\022\025\n\r" @@ -353,7 +381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016PEERING_STATIC\020\005\022\023\n" + "\017PEERING_DYNAMIC\020\006\022\020\n" + "\014POLICY_BASED\020\007\022\016\n\n" - + "ADVERTISED\020e\"\314\002\n" + + "ADVERTISED\020e\"\352\002\n" + "\013NextHopType\022\035\n" + "\031NEXT_HOP_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013NEXT_HOP_IP\020\001\022\025\n" @@ -368,7 +396,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014NEXT_HOP_ILB\020\n" + "\022\035\n" + "\031NEXT_HOP_ROUTER_APPLIANCE\020\013\022\024\n" - + "\020NEXT_HOP_NCC_HUB\020\014\"C\n\n" + + "\020NEXT_HOP_NCC_HUB\020\014\022\034\n" + + "\030SECURE_WEB_PROXY_GATEWAY\020\r" + + "\"C\n\n" + "RouteScope\022\033\n" + "\027ROUTE_SCOPE_UNSPECIFIED\020\000\022\013\n" + "\007NETWORK\020\001\022\013\n" @@ -379,8 +409,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036_advertised_route_next_hop_uri\"\332\002\n" + "\021GoogleServiceInfo\022\021\n" + "\tsource_ip\030\001 \001(\t\022c\n" - + "\023google_service_type\030\002 \001(\0162F" - + ".google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + + "\023google_service_type\030\002 \001(\0162F.google.cloud.networ" + + "kmanagement.v1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -404,13 +434,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t\022\035\n" + "\025psc_google_api_target\030\013 \001(\t\"\302\004\n" + "\020LoadBalancerInfo\022`\n" - + "\022load_balancer_type\030\001 \001(\0162" - + "D.google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType\022\034\n" + + "\022load_balancer_type\030\001 \001(\0162D.google.cloud.netwo" + + "rkmanagement.v1.LoadBalancerInfo.LoadBalancerType\022\034\n" + "\020health_check_uri\030\002 \001(\tB\002\030\001\022H\n" - + "\010backends\030\003 \003(\01326." - + "google.cloud.networkmanagement.v1.LoadBalancerBackend\022U\n" - + "\014backend_type\030\004 \001(\0162?.go" - + "ogle.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType\022\023\n" + + "\010backends\030\003" + + " \003(\01326.google.cloud.networkmanagement.v1.LoadBalancerBackend\022U\n" + + "\014backend_type\030\004 \001(\0162?.google.cloud.networkma" + + "nagement.v1.LoadBalancerInfo.BackendType\022\023\n" + "\013backend_uri\030\005 \001(\t\"\217\001\n" + "\020LoadBalancerType\022\"\n" + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\024\n" @@ -427,14 +457,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023LoadBalancerBackend\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022t\n" - + "\033health_check_firewall_state\030\003 \001(\0162O.google.clo" - + "ud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + + "\033health_check_firewall_state\030\003 \001(\0162O.google.cloud.networkmanagement" + + ".v1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + "$health_check_allowing_firewall_rules\030\004 \003(\t\022,\n" + "$health_check_blocking_firewall_rules\030\005 \003(\t\"j\n" + "\030HealthCheckFirewallState\022+\n" + "\'HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED\020\000\022\016\n\n" + "CONFIGURED\020\001\022\021\n\r" - + "MISCONFIGURED\020\002\"\204\001\n" + + "MISCONFIGURED\020\002\"E\n" + + "\020HybridSubnetInfo\022\024\n" + + "\014display_name\030\001 \001(\t\022\013\n" + + "\003uri\030\002 \001(\t\022\016\n" + + "\006region\030\003 \001(\t\"\204\001\n" + "\016VpnGatewayInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\023\n" @@ -451,13 +485,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021source_gateway_ip\030\006 \001(\t\022\023\n" + "\013network_uri\030\007 \001(\t\022\016\n" + "\006region\030\010 \001(\t\022R\n" - + "\014routing_type\030\t \001(\0162<.google.cloud.network" - + "management.v1.VpnTunnelInfo.RoutingType\"[\n" + + "\014routing_type\030\t \001(\0162<.google.cl" + + "oud.networkmanagement.v1.VpnTunnelInfo.RoutingType\"[\n" + "\013RoutingType\022\034\n" + "\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013ROUTE_BASED\020\001\022\020\n" + "\014POLICY_BASED\020\002\022\013\n" - + "\007DYNAMIC\020\003\"\321\001\n" + + "\007DYNAMIC\020\003\"\353\002\n" + + "\032InterconnectAttachmentInfo\022\024\n" + + "\014display_name\030\001 \001(\t\022\013\n" + + "\003uri\030\002 \001(\t\022\030\n" + + "\020interconnect_uri\030\003 \001(\t\022\016\n" + + "\006region\030\004 \001(\t\022\030\n" + + "\020cloud_router_uri\030\005 \001(\t\022P\n" + + "\004type\030\006 \001(\0162B.google.cloud.networkmanage" + + "ment.v1.InterconnectAttachmentInfo.Type\0222\n" + + " l2_attachment_matched_ip_address\030\007 \001(" + + "\tB\010\342\214\317\327\010\002\010\004\"`\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tDEDICATED\020\001\022\013\n" + + "\007PARTNER\020\002\022\024\n" + + "\020PARTNER_PROVIDER\020\003\022\020\n" + + "\014L2_DEDICATED\020\004\"\321\001\n" + "\014EndpointInfo\022\021\n" + "\tsource_ip\030\001 \001(\t\022\026\n" + "\016destination_ip\030\002 \001(\t\022\020\n" @@ -466,14 +516,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020destination_port\030\005 \001(\005\022\032\n" + "\022source_network_uri\030\006 \001(\t\022\037\n" + "\027destination_network_uri\030\007 \001(\t\022\030\n" - + "\020source_agent_uri\030\010 \001(\t\"\271\004\n" + + "\020source_agent_uri\030\010 \001(\t\"\307\006\n" + "\013DeliverInfo\022E\n" - + "\006target\030\001" - + " \001(\01625.google.cloud.networkmanagement.v1.DeliverInfo.Target\022\024\n" + + "\006target\030\001 \001(\01625.goog" + + "le.cloud.networkmanagement.v1.DeliverInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\022\026\n" + "\016storage_bucket\030\004 \001(\t\022\035\n" - + "\025psc_google_api_target\030\005 \001(\t\"\367\002\n" + + "\025psc_google_api_target\030\005 \001(\t\022]\n" + + "\023google_service_type\030\006 \001(\0162@.google.cloud." + + "networkmanagement.v1.DeliverInfo.GoogleServiceType\"\367\002\n" + "\006Target\022\026\n" + "\022TARGET_UNSPECIFIED\020\000\022\014\n" + "\010INSTANCE\020\001\022\014\n" @@ -494,12 +546,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022CLOUD_RUN_REVISION\020\016\022\032\n" + "\026GOOGLE_MANAGED_SERVICE\020\017\022\022\n" + "\016REDIS_INSTANCE\020\020\022\021\n\r" - + "REDIS_CLUSTER\020\021\"\353\002\n" + + "REDIS_CLUSTER\020\021\"\254\001\n" + + "\021GoogleServiceType\022#\n" + + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + + "\003IAP\020\001\022$\n" + + " GFE_PROXY_OR_HEALTH_CHECK_PROBER\020\002\022\r\n" + + "\tCLOUD_DNS\020\003\022\031\n" + + "\025PRIVATE_GOOGLE_ACCESS\020\004\022\031\n" + + "\025SERVERLESS_VPC_ACCESS\020\005\"\211\003\n" + "\013ForwardInfo\022E\n" - + "\006target\030\001 \001(\01625.google.cl" - + "oud.networkmanagement.v1.ForwardInfo.Target\022\024\n" + + "\006target\030\001 \001(\01625.go" + + "ogle.cloud.networkmanagement.v1.ForwardInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" - + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\340\001\n" + + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\376\001\n" + "\006Target\022\026\n" + "\022TARGET_UNSPECIFIED\020\000\022\017\n" + "\013PEERING_VPC\020\001\022\017\n" @@ -510,13 +569,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022CLOUD_SQL_INSTANCE\020\006\032\002\010\001\022\023\n" + "\017ANOTHER_PROJECT\020\007\022\013\n" + "\007NCC_HUB\020\010\022\024\n" - + "\020ROUTER_APPLIANCE\020\t\"\365\n\n" + + "\020ROUTER_APPLIANCE\020\t\022\034\n" + + "\030SECURE_WEB_PROXY_GATEWAY\020\n" + + "\"\306\013\n" + "\tAbortInfo\022A\n" - + "\005cause\030\001 \001(\01622.google" - + ".cloud.networkmanagement.v1.AbortInfo.Cause\022\024\n" + + "\005cause\030\001 \001(\01622.google.cl" + + "oud.networkmanagement.v1.AbortInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022#\n" - + "\033projects_missing_permission\030\003 \003(\t\"\313\t\n" + + "\033projects_missing_permission\030\003 \003(\t\"\234\n\n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\027\n" + "\017UNKNOWN_NETWORK\020\001\032\002\010\001\022\027\n" @@ -548,7 +609,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030NETWORK_CONFIG_NOT_FOUND\020\031\022\035\n" + "\031FIREWALL_CONFIG_NOT_FOUND\020\032\022\032\n" + "\026ROUTE_CONFIG_NOT_FOUND\020\033\0221\n" - + "-GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT\020\023\022$\n" + + "-GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT\020\023\022-\n" + + ")GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT\020\'\022$\n" + " SOURCE_PSC_CLOUD_SQL_UNSUPPORTED\020\024\022$\n" + " SOURCE_REDIS_CLUSTER_UNSUPPORTED\020\"\022%\n" + "!SOURCE_REDIS_INSTANCE_UNSUPPORTED\020#\022&\n" @@ -556,14 +618,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027NON_ROUTABLE_IP_ADDRESS\020\026\022+\n" + "\'UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT\020\036\022-\n" + ")UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG\020\037\022\033\n" - + "\027NO_SERVERLESS_IP_RANGES\020%\"\225\034\n" + + "\027NO_SERVERLESS_IP_RANGES\020%\022 \n" + + "\034IP_VERSION_PROTOCOL_MISMATCH\020(\"\313 \n" + "\010DropInfo\022@\n" - + "\005cause\030\001 \001(\01621.google." - + "cloud.networkmanagement.v1.DropInfo.Cause\022\024\n" + + "\005cause\030\001 \001(\01621.google.cl" + + "oud.networkmanagement.v1.DropInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\021\n" + "\tsource_ip\030\003 \001(\t\022\026\n" + "\016destination_ip\030\004 \001(\t\022\016\n" - + "\006region\030\005 \001(\t\"\365\032\n" + + "\006region\030\005 \001(\t\022\037\n" + + "\027source_geolocation_code\030\006 \001(\t\022$\n" + + "\034destination_geolocation_code\030\007 \001(\t\"\344\036\n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\034\n" + "\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031\n" @@ -579,7 +644,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH\0203\022-\n" + ")ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED\0204\022/\n" + "+ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID\0205\0222\n" - + ".NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS\020,\022&\n" + + ".NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS\020,\022>\n" + + ":NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS\020b\022&\n" + "\"VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH\020-\022\'\n" + "#VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH\020.\022\037\n" + "\033PRIVATE_TRAFFIC_TO_INTERNET\020\007\022$\n" @@ -654,7 +720,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED\020S\022\"\n" + "\036PSC_PORT_MAPPING_PORT_MISMATCH\020V\0227\n" + "3PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED\020W\0223\n" - + "/UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION\020X\"\201\001\n\r" + + "/UNSUPPORTED_ROUTE_MATCHED_", + "FOR_NAT64_DESTINATION\020X\0227\n" + + "3TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED\020Y\022\035\n" + + "\031NO_MATCHING_NAT64_GATEWAY\020Z\022-\n" + + ")LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH\020`\0222\n" + + ".NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION\020a\022\"\n" + + "\036CLOUD_NAT_PROTOCOL_UNSUPPORTED\020c\022(\n" + + "$L2_INTERCONNECT_UNSUPPORTED_PROTOCOL\020d\022$\n" + + " L2_INTERCONNECT_UNSUPPORTED_PORT\020e\022+\n" + + "\'L2_INTERCONNECT_DESTINATION_IP_MISMATCH\020f\022.\n" + + "*NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED\020h\022!\n" + + "\035HYBRID_SUBNET_REGION_MISMATCH\020i\"\201\001\n\r" + "GKEMasterInfo\022\023\n" + "\013cluster_uri\030\002 \001(\t\022\033\n" + "\023cluster_network_uri\030\004 \001(\t\022\023\n" @@ -711,7 +788,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\005 \001(\t\"I\n" + " ServerlessExternalConnectionInfo\022%\n" + "\023selected_ip_address\030\001 \001(" - + "\tB\010\342\214\317\327\010\002\010\004\"\357\003\n" + + "\tB\010\342\214\317\327\010\002\010\004\"\215\004\n" + "\007NatInfo\022=\n" + "\004type\030\001 \001(\0162/.google.cloud.networkmanagement.v1.NatInfo.Type\022\020\n" + "\010protocol\030\002 \001(\t\022\023\n" @@ -724,53 +801,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017new_source_port\030\t \001(\005\022\034\n" + "\024old_destination_port\030\n" + " \001(\005\022\034\n" - + "\024new_destination_port\030\013 \001(\005\022\022\n", - "\nrouter_uri\030\014 \001(\t\022\030\n\020nat_gateway_name\030\r " - + "\001(\t\"|\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\030\n\024INT" - + "ERNAL_TO_EXTERNAL\020\001\022\030\n\024EXTERNAL_TO_INTER" - + "NAL\020\002\022\r\n\tCLOUD_NAT\020\003\022\033\n\027PRIVATE_SERVICE_" - + "CONNECT\020\004\"\244\002\n\023ProxyConnectionInfo\022\020\n\010pro" - + "tocol\030\001 \001(\t\022\025\n\rold_source_ip\030\002 \001(\t\022\025\n\rne" - + "w_source_ip\030\003 \001(\t\022\032\n\022old_destination_ip\030" - + "\004 \001(\t\022\032\n\022new_destination_ip\030\005 \001(\t\022\027\n\017old" - + "_source_port\030\006 \001(\005\022\027\n\017new_source_port\030\007 " - + "\001(\005\022\034\n\024old_destination_port\030\010 \001(\005\022\034\n\024new" - + "_destination_port\030\t \001(\005\022\022\n\nsubnet_uri\030\n " - + "\001(\t\022\023\n\013network_uri\030\013 \001(\t\"\362\004\n\027LoadBalance" - + "rBackendInfo\022\014\n\004name\030\001 \001(\t\022\024\n\014instance_u" - + "ri\030\002 \001(\t\022\033\n\023backend_service_uri\030\003 \001(\t\022\032\n" - + "\022instance_group_uri\030\004 \001(\t\022\"\n\032network_end" - + "point_group_uri\030\005 \001(\t\022\032\n\022backend_bucket_" - + "uri\030\010 \001(\t\022\"\n\032psc_service_attachment_uri\030" - + "\t \001(\t\022\035\n\025psc_google_api_target\030\n \001(\t\022\030\n\020" - + "health_check_uri\030\006 \001(\t\022\214\001\n#health_check_" - + "firewalls_config_state\030\007 \001(\0162Z.google.cl" - + "oud.networkmanagement.v1.LoadBalancerBac" - + "kendInfo.HealthCheckFirewallsConfigState" - + "B\003\340A\003\"\315\001\n\037HealthCheckFirewallsConfigStat" - + "e\0223\n/HEALTH_CHECK_FIREWALLS_CONFIG_STATE" - + "_UNSPECIFIED\020\000\022\030\n\024FIREWALLS_CONFIGURED\020\001" - + "\022\"\n\036FIREWALLS_PARTIALLY_CONFIGURED\020\002\022\034\n\030" - + "FIREWALLS_NOT_CONFIGURED\020\003\022\031\n\025FIREWALLS_" - + "UNSUPPORTED\020\004\"#\n\021StorageBucketInfo\022\016\n\006bu" - + "cket\030\001 \001(\t\"$\n\021ServerlessNegInfo\022\017\n\007neg_u" - + "ri\030\001 \001(\t*\366\002\n\020LoadBalancerType\022\"\n\036LOAD_BA" - + "LANCER_TYPE_UNSPECIFIED\020\000\022 \n\034HTTPS_ADVAN" - + "CED_LOAD_BALANCER\020\001\022\027\n\023HTTPS_LOAD_BALANC" - + "ER\020\002\022 \n\034REGIONAL_HTTPS_LOAD_BALANCER\020\003\022 " - + "\n\034INTERNAL_HTTPS_LOAD_BALANCER\020\004\022\033\n\027SSL_" - + "PROXY_LOAD_BALANCER\020\005\022\033\n\027TCP_PROXY_LOAD_" - + "BALANCER\020\006\022$\n INTERNAL_TCP_PROXY_LOAD_BA" - + "LANCER\020\007\022\031\n\025NETWORK_LOAD_BALANCER\020\010\022 \n\034L" - + "EGACY_NETWORK_LOAD_BALANCER\020\t\022\"\n\036TCP_UDP" - + "_INTERNAL_LOAD_BALANCER\020\nB\371\001\n%com.google" - + ".cloud.networkmanagement.v1B\nTraceProtoP" - + "\001ZScloud.google.com/go/networkmanagement" - + "/apiv1/networkmanagementpb;networkmanage" - + "mentpb\252\002!Google.Cloud.NetworkManagement." - + "V1\312\002!Google\\Cloud\\NetworkManagement\\V1\352\002" - + "$Google::Cloud::NetworkManagement::V1b\006p" - + "roto3" + + "\024new_destination_port\030\013 \001(\005\022\022\n\n" + + "router_uri\030\014 \001(\t\022\030\n" + + "\020nat_gateway_name\030\r" + + " \001(\t\"\231\001\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\030\n" + + "\024INTERNAL_TO_EXTERNAL\020\001\022\030\n" + + "\024EXTERNAL_TO_INTERNAL\020\002\022\r\n" + + "\tCLOUD_NAT\020\003\022\033\n" + + "\027PRIVATE_SERVICE_CONNECT\020\004\022\033\n" + + "\027GKE_POD_IP_MASQUERADING\020\005\"\244\002\n" + + "\023ProxyConnectionInfo\022\020\n" + + "\010protocol\030\001 \001(\t\022\025\n\r" + + "old_source_ip\030\002 \001(\t\022\025\n\r" + + "new_source_ip\030\003 \001(\t\022\032\n" + + "\022old_destination_ip\030\004 \001(\t\022\032\n" + + "\022new_destination_ip\030\005 \001(\t\022\027\n" + + "\017old_source_port\030\006 \001(\005\022\027\n" + + "\017new_source_port\030\007 \001(\005\022\034\n" + + "\024old_destination_port\030\010 \001(\005\022\034\n" + + "\024new_destination_port\030\t \001(\005\022\022\n\n" + + "subnet_uri\030\n" + + " \001(\t\022\023\n" + + "\013network_uri\030\013 \001(\t\"\362\004\n" + + "\027LoadBalancerBackendInfo\022\014\n" + + "\004name\030\001 \001(\t\022\024\n" + + "\014instance_uri\030\002 \001(\t\022\033\n" + + "\023backend_service_uri\030\003 \001(\t\022\032\n" + + "\022instance_group_uri\030\004 \001(\t\022\"\n" + + "\032network_endpoint_group_uri\030\005 \001(\t\022\032\n" + + "\022backend_bucket_uri\030\010 \001(\t\022\"\n" + + "\032psc_service_attachment_uri\030\t \001(\t\022\035\n" + + "\025psc_google_api_target\030\n" + + " \001(\t\022\030\n" + + "\020health_check_uri\030\006 \001(\t\022\214\001\n" + + "#health_check_firewalls_config_state\030\007 \001(\0162Z.google.cloud.ne" + + "tworkmanagement.v1.LoadBalancerBackendIn" + + "fo.HealthCheckFirewallsConfigStateB\003\340A\003\"\315\001\n" + + "\037HealthCheckFirewallsConfigState\0223\n" + + "/HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED\020\000\022\030\n" + + "\024FIREWALLS_CONFIGURED\020\001\022\"\n" + + "\036FIREWALLS_PARTIALLY_CONFIGURED\020\002\022\034\n" + + "\030FIREWALLS_NOT_CONFIGURED\020\003\022\031\n" + + "\025FIREWALLS_UNSUPPORTED\020\004\"#\n" + + "\021StorageBucketInfo\022\016\n" + + "\006bucket\030\001 \001(\t\"$\n" + + "\021ServerlessNegInfo\022\017\n" + + "\007neg_uri\030\001 \001(\t*\366\002\n" + + "\020LoadBalancerType\022\"\n" + + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022 \n" + + "\034HTTPS_ADVANCED_LOAD_BALANCER\020\001\022\027\n" + + "\023HTTPS_LOAD_BALANCER\020\002\022 \n" + + "\034REGIONAL_HTTPS_LOAD_BALANCER\020\003\022 \n" + + "\034INTERNAL_HTTPS_LOAD_BALANCER\020\004\022\033\n" + + "\027SSL_PROXY_LOAD_BALANCER\020\005\022\033\n" + + "\027TCP_PROXY_LOAD_BALANCER\020\006\022$\n" + + " INTERNAL_TCP_PROXY_LOAD_BALANCER\020\007\022\031\n" + + "\025NETWORK_LOAD_BALANCER\020\010\022 \n" + + "\034LEGACY_NETWORK_LOAD_BALANCER\020\t\022\"\n" + + "\036TCP_UDP_INTERNAL_LOAD_BALANCER\020\n" + + "B\371\001\n" + + "%com.google.cloud.networkmanagement.v1B\n" + + "TraceProtoP\001ZScloud.google.com/go/networkmanagement/apiv1" + + "/networkmanagementpb;networkmanagementpb" + + "\252\002!Google.Cloud.NetworkManagement.V1\312\002!G" + + "oogle\\Cloud\\NetworkManagement\\V1\352\002$Googl" + + "e::Cloud::NetworkManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -803,8 +900,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "GoogleService", "ForwardingRule", + "HybridSubnet", "VpnGateway", "VpnTunnel", + "InterconnectAttachment", "VpcConnector", "DirectVpcEgressConnection", "ServerlessExternalConnection", @@ -843,6 +942,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkTags", "ServiceAccount", "PscNetworkAttachmentUri", + "Running", + "Status", }); internal_static_google_cloud_networkmanagement_v1_NetworkInfo_descriptor = getDescriptor().getMessageTypes().get(3); @@ -869,6 +970,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Policy", "PolicyUri", "FirewallRuleType", + "PolicyPriority", + "TargetType", }); internal_static_google_cloud_networkmanagement_v1_RouteInfo_descriptor = getDescriptor().getMessageTypes().get(5); @@ -947,8 +1050,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckAllowingFirewallRules", "HealthCheckBlockingFirewallRules", }); - internal_static_google_cloud_networkmanagement_v1_VpnGatewayInfo_descriptor = + internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_HybridSubnetInfo_descriptor, + new java.lang.String[] { + "DisplayName", "Uri", "Region", + }); + internal_static_google_cloud_networkmanagement_v1_VpnGatewayInfo_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_networkmanagement_v1_VpnGatewayInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_VpnGatewayInfo_descriptor, @@ -956,7 +1067,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "NetworkUri", "IpAddress", "VpnTunnelUri", "Region", }); internal_static_google_cloud_networkmanagement_v1_VpnTunnelInfo_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_networkmanagement_v1_VpnTunnelInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_VpnTunnelInfo_descriptor, @@ -971,8 +1082,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Region", "RoutingType", }); + internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_InterconnectAttachmentInfo_descriptor, + new java.lang.String[] { + "DisplayName", + "Uri", + "InterconnectUri", + "Region", + "CloudRouterUri", + "Type", + "L2AttachmentMatchedIpAddress", + }); internal_static_google_cloud_networkmanagement_v1_EndpointInfo_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_networkmanagement_v1_EndpointInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_EndpointInfo_descriptor, @@ -987,15 +1112,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceAgentUri", }); internal_static_google_cloud_networkmanagement_v1_DeliverInfo_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_networkmanagement_v1_DeliverInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_DeliverInfo_descriptor, new java.lang.String[] { - "Target", "ResourceUri", "IpAddress", "StorageBucket", "PscGoogleApiTarget", + "Target", + "ResourceUri", + "IpAddress", + "StorageBucket", + "PscGoogleApiTarget", + "GoogleServiceType", }); internal_static_google_cloud_networkmanagement_v1_ForwardInfo_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_networkmanagement_v1_ForwardInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_ForwardInfo_descriptor, @@ -1003,7 +1133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Target", "ResourceUri", "IpAddress", }); internal_static_google_cloud_networkmanagement_v1_AbortInfo_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_networkmanagement_v1_AbortInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_AbortInfo_descriptor, @@ -1011,15 +1141,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Cause", "ResourceUri", "IpAddress", "ProjectsMissingPermission", }); internal_static_google_cloud_networkmanagement_v1_DropInfo_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_networkmanagement_v1_DropInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_DropInfo_descriptor, new java.lang.String[] { - "Cause", "ResourceUri", "SourceIp", "DestinationIp", "Region", + "Cause", + "ResourceUri", + "SourceIp", + "DestinationIp", + "Region", + "SourceGeolocationCode", + "DestinationGeolocationCode", }); internal_static_google_cloud_networkmanagement_v1_GKEMasterInfo_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_networkmanagement_v1_GKEMasterInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_GKEMasterInfo_descriptor, @@ -1027,7 +1163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClusterUri", "ClusterNetworkUri", "InternalIp", "ExternalIp", "DnsEndpoint", }); internal_static_google_cloud_networkmanagement_v1_CloudSQLInstanceInfo_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_networkmanagement_v1_CloudSQLInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_CloudSQLInstanceInfo_descriptor, @@ -1035,7 +1171,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "NetworkUri", "InternalIp", "ExternalIp", "Region", }); internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_RedisInstanceInfo_descriptor, @@ -1043,7 +1179,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "NetworkUri", "PrimaryEndpointIp", "ReadEndpointIp", "Region", }); internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_RedisClusterInfo_descriptor, @@ -1056,7 +1192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", }); internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_CloudFunctionInfo_descriptor, @@ -1064,7 +1200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", "VersionId", }); internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_descriptor, @@ -1072,7 +1208,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", "ServiceUri", }); internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor, @@ -1080,7 +1216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Runtime", "Environment", }); internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor, @@ -1088,7 +1224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", }); internal_static_google_cloud_networkmanagement_v1_DirectVpcEgressConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_networkmanagement_v1_DirectVpcEgressConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_DirectVpcEgressConnectionInfo_descriptor, @@ -1096,7 +1232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkUri", "SubnetworkUri", "SelectedIpRange", "SelectedIpAddress", "Region", }); internal_static_google_cloud_networkmanagement_v1_ServerlessExternalConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_networkmanagement_v1_ServerlessExternalConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_ServerlessExternalConnectionInfo_descriptor, @@ -1104,7 +1240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SelectedIpAddress", }); internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_networkmanagement_v1_NatInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor, @@ -1124,7 +1260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NatGatewayName", }); internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor, @@ -1142,7 +1278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkUri", }); internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor, @@ -1159,7 +1295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckFirewallsConfigState", }); internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor, @@ -1167,7 +1303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bucket", }); internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor, diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequest.java index 6e84c6a70daf..d26996cc0ee2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequest.java @@ -73,6 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                                                  * Required. Mask of fields to update. At least one path must be supplied in
                                                  * this field.
                                              +   * For example, to change the state of the configuration to ENABLED, specify
                                              +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +   *   `vpc_flow_logs_config = {
                                              +   *     name =
                                              +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +   *     state = "ENABLED" }`
                                                  * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -91,6 +97,12 @@ public boolean hasUpdateMask() { *
                                                  * Required. Mask of fields to update. At least one path must be supplied in
                                                  * this field.
                                              +   * For example, to change the state of the configuration to ENABLED, specify
                                              +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +   *   `vpc_flow_logs_config = {
                                              +   *     name =
                                              +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +   *     state = "ENABLED" }`
                                                  * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -109,6 +121,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { *
                                                  * Required. Mask of fields to update. At least one path must be supplied in
                                                  * this field.
                                              +   * For example, to change the state of the configuration to ENABLED, specify
                                              +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +   *   `vpc_flow_logs_config = {
                                              +   *     name =
                                              +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +   *     state = "ENABLED" }`
                                                  * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -600,6 +618,12 @@ public Builder mergeFrom( *
                                                    * Required. Mask of fields to update. At least one path must be supplied in
                                                    * this field.
                                              +     * For example, to change the state of the configuration to ENABLED, specify
                                              +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +     *   `vpc_flow_logs_config = {
                                              +     *     name =
                                              +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +     *     state = "ENABLED" }`
                                                    * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -617,6 +641,12 @@ public boolean hasUpdateMask() { *
                                                    * Required. Mask of fields to update. At least one path must be supplied in
                                                    * this field.
                                              +     * For example, to change the state of the configuration to ENABLED, specify
                                              +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +     *   `vpc_flow_logs_config = {
                                              +     *     name =
                                              +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +     *     state = "ENABLED" }`
                                                    * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -640,6 +670,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { *
                                                    * Required. Mask of fields to update. At least one path must be supplied in
                                                    * this field.
                                              +     * For example, to change the state of the configuration to ENABLED, specify
                                              +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +     *   `vpc_flow_logs_config = {
                                              +     *     name =
                                              +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +     *     state = "ENABLED" }`
                                                    * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -665,6 +701,12 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { *
                                                    * Required. Mask of fields to update. At least one path must be supplied in
                                                    * this field.
                                              +     * For example, to change the state of the configuration to ENABLED, specify
                                              +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +     *   `vpc_flow_logs_config = {
                                              +     *     name =
                                              +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +     *     state = "ENABLED" }`
                                                    * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -687,6 +729,12 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal *
                                                    * Required. Mask of fields to update. At least one path must be supplied in
                                                    * this field.
                                              +     * For example, to change the state of the configuration to ENABLED, specify
                                              +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +     *   `vpc_flow_logs_config = {
                                              +     *     name =
                                              +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +     *     state = "ENABLED" }`
                                                    * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -717,6 +765,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { *
                                                    * Required. Mask of fields to update. At least one path must be supplied in
                                                    * this field.
                                              +     * For example, to change the state of the configuration to ENABLED, specify
                                              +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +     *   `vpc_flow_logs_config = {
                                              +     *     name =
                                              +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +     *     state = "ENABLED" }`
                                                    * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -739,6 +793,12 @@ public Builder clearUpdateMask() { *
                                                    * Required. Mask of fields to update. At least one path must be supplied in
                                                    * this field.
                                              +     * For example, to change the state of the configuration to ENABLED, specify
                                              +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +     *   `vpc_flow_logs_config = {
                                              +     *     name =
                                              +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +     *     state = "ENABLED" }`
                                                    * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -756,6 +816,12 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { *
                                                    * Required. Mask of fields to update. At least one path must be supplied in
                                                    * this field.
                                              +     * For example, to change the state of the configuration to ENABLED, specify
                                              +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +     *   `vpc_flow_logs_config = {
                                              +     *     name =
                                              +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +     *     state = "ENABLED" }`
                                                    * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -777,6 +843,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { *
                                                    * Required. Mask of fields to update. At least one path must be supplied in
                                                    * this field.
                                              +     * For example, to change the state of the configuration to ENABLED, specify
                                              +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +     *   `vpc_flow_logs_config = {
                                              +     *     name =
                                              +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +     *     state = "ENABLED" }`
                                                    * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequestOrBuilder.java index 175efd5d8ebb..61b47e1242c6 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequestOrBuilder.java @@ -30,6 +30,12 @@ public interface UpdateVpcFlowLogsConfigRequestOrBuilder *
                                                  * Required. Mask of fields to update. At least one path must be supplied in
                                                  * this field.
                                              +   * For example, to change the state of the configuration to ENABLED, specify
                                              +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +   *   `vpc_flow_logs_config = {
                                              +   *     name =
                                              +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +   *     state = "ENABLED" }`
                                                  * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,6 +51,12 @@ public interface UpdateVpcFlowLogsConfigRequestOrBuilder *
                                                  * Required. Mask of fields to update. At least one path must be supplied in
                                                  * this field.
                                              +   * For example, to change the state of the configuration to ENABLED, specify
                                              +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +   *   `vpc_flow_logs_config = {
                                              +   *     name =
                                              +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +   *     state = "ENABLED" }`
                                                  * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -60,6 +72,12 @@ public interface UpdateVpcFlowLogsConfigRequestOrBuilder *
                                                  * Required. Mask of fields to update. At least one path must be supplied in
                                                  * this field.
                                              +   * For example, to change the state of the configuration to ENABLED, specify
                                              +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
                                              +   *   `vpc_flow_logs_config = {
                                              +   *     name =
                                              +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
                                              +   *     state = "ENABLED" }`
                                                  * 
                                              * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfig.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfig.java index 814aa2294fb6..833e00c67d0c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfig.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfig.java @@ -47,6 +47,7 @@ private VpcFlowLogsConfig() { metadata_ = 0; metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); filterExpr_ = ""; + crossProjectMetadata_ = 0; targetResourceState_ = 0; } @@ -88,7 +89,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
                                                  * Determines whether this configuration will be generating logs.
                                              -   * Setting state=DISABLED will pause the log generation for this config.
                                                  * 
                                              * * Protobuf enum {@code google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State} @@ -689,8 +689,177 @@ private Metadata(int value) { * * *
                                              -   * Optional states of the target resource that are used as part of the
                                              -   * diagnostic bit.
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * Project configurations will always have CROSS_PROJECT_METADATA_DISABLED.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata} + */ + public enum CrossProjectMetadata implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * If not specified, the default is CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * CROSS_PROJECT_METADATA_UNSPECIFIED = 0; + */ + CROSS_PROJECT_METADATA_UNSPECIFIED(0), + /** + * + * + *
                                              +     * When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be
                                              +     * included in the logs.
                                              +     * 
                                              + * + * CROSS_PROJECT_METADATA_ENABLED = 1; + */ + CROSS_PROJECT_METADATA_ENABLED(1), + /** + * + * + *
                                              +     * When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will
                                              +     * not be included in the logs.
                                              +     * 
                                              + * + * CROSS_PROJECT_METADATA_DISABLED = 2; + */ + CROSS_PROJECT_METADATA_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * If not specified, the default is CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * CROSS_PROJECT_METADATA_UNSPECIFIED = 0; + */ + public static final int CROSS_PROJECT_METADATA_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be
                                              +     * included in the logs.
                                              +     * 
                                              + * + * CROSS_PROJECT_METADATA_ENABLED = 1; + */ + public static final int CROSS_PROJECT_METADATA_ENABLED_VALUE = 1; + + /** + * + * + *
                                              +     * When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will
                                              +     * not be included in the logs.
                                              +     * 
                                              + * + * CROSS_PROJECT_METADATA_DISABLED = 2; + */ + public static final int CROSS_PROJECT_METADATA_DISABLED_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 CrossProjectMetadata 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 CrossProjectMetadata forNumber(int value) { + switch (value) { + case 0: + return CROSS_PROJECT_METADATA_UNSPECIFIED; + case 1: + return CROSS_PROJECT_METADATA_ENABLED; + case 2: + return CROSS_PROJECT_METADATA_DISABLED; + 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 CrossProjectMetadata findValueByNumber(int number) { + return CrossProjectMetadata.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final CrossProjectMetadata[] VALUES = values(); + + public static CrossProjectMetadata 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 CrossProjectMetadata(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata) + } + + /** + * + * + *
                                              +   * Output only. Indicates whether the target resource exists, for diagnostic
                                              +   * purposes.
                                                  * 
                                              * * Protobuf enum {@code google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState} @@ -825,7 +994,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDescriptor() .getEnumTypes() - .get(3); + .get(4); } private static final TargetResourceState[] VALUES = values(); @@ -860,6 +1029,8 @@ public enum TargetResourceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NETWORK(100), + SUBNET(101), INTERCONNECT_ATTACHMENT(102), VPN_TUNNEL(103), TARGETRESOURCE_NOT_SET(0); @@ -881,6 +1052,10 @@ public static TargetResourceCase valueOf(int value) { public static TargetResourceCase forNumber(int value) { switch (value) { + case 100: + return NETWORK; + case 101: + return SUBNET; case 102: return INTERCONNECT_ATTACHMENT; case 103: @@ -910,8 +1085,14 @@ public TargetResourceCase getTargetResourceCase() { * * *
                                              -   * Identifier. Unique name of the configuration using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   * Identifier. Unique name of the configuration. The name can have one of the
                                              +   * following forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -935,8 +1116,14 @@ public java.lang.String getName() { * * *
                                              -   * Identifier. Unique name of the configuration using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   * Identifier. Unique name of the configuration. The name can have one of the
                                              +   * following forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1036,7 +1223,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * *
                                                  * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -   * ENABLED. When creating a new configuration, it must be enabled.
                                              +   * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +   * state=DISABLED will pause the log generation for this config.
                                                  * 
                                              * * @@ -1055,7 +1243,8 @@ public boolean hasState() { * *
                                                  * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -   * ENABLED. When creating a new configuration, it must be enabled.
                                              +   * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +   * state=DISABLED will pause the log generation for this config.
                                                  * 
                                              * * @@ -1074,7 +1263,8 @@ public int getStateValue() { * *
                                                  * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -   * ENABLED. When creating a new configuration, it must be enabled.
                                              +   * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +   * state=DISABLED will pause the log generation for this config.
                                                  * 
                                              * * @@ -1410,6 +1600,75 @@ public com.google.protobuf.ByteString getFilterExprBytes() { } } + public static final int CROSS_PROJECT_METADATA_FIELD_NUMBER = 13; + private int crossProjectMetadata_ = 0; + + /** + * + * + *
                                              +   * Optional. Determines whether to include cross project annotations in the
                                              +   * logs. This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + @java.lang.Override + public boolean hasCrossProjectMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                              +   * Optional. Determines whether to include cross project annotations in the
                                              +   * logs. This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + @java.lang.Override + public int getCrossProjectMetadataValue() { + return crossProjectMetadata_; + } + + /** + * + * + *
                                              +   * Optional. Determines whether to include cross project annotations in the
                                              +   * logs. This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The crossProjectMetadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata.forNumber( + crossProjectMetadata_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata.UNRECOGNIZED + : result; + } + public static final int TARGET_RESOURCE_STATE_FIELD_NUMBER = 12; private int targetResourceState_ = 0; @@ -1417,8 +1676,8 @@ public com.google.protobuf.ByteString getFilterExprBytes() { * * *
                                              -   * Output only. A diagnostic bit - describes the state of the configured
                                              -   * target resource for diagnostic purposes.
                                              +   * Output only. Describes the state of the configured target resource for
                                              +   * diagnostic purposes.
                                                  * 
                                              * * @@ -1429,15 +1688,15 @@ public com.google.protobuf.ByteString getFilterExprBytes() { */ @java.lang.Override public boolean hasTargetResourceState() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * * *
                                              -   * Output only. A diagnostic bit - describes the state of the configured
                                              -   * target resource for diagnostic purposes.
                                              +   * Output only. Describes the state of the configured target resource for
                                              +   * diagnostic purposes.
                                                  * 
                                              * * @@ -1455,8 +1714,8 @@ public int getTargetResourceStateValue() { * * *
                                              -   * Output only. A diagnostic bit - describes the state of the configured
                                              -   * target resource for diagnostic purposes.
                                              +   * Output only. Describes the state of the configured target resource for
                                              +   * diagnostic purposes.
                                                  * 
                                              * * @@ -1476,41 +1735,41 @@ public int getTargetResourceStateValue() { : result; } - public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 102; + public static final int NETWORK_FIELD_NUMBER = 100; /** * * *
                                              -   * Traffic will be logged from the Interconnect Attachment.
                                              -   * Format:
                                              -   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                                  * 
                                              * - * string interconnect_attachment = 102; + * string network = 100; * - * @return Whether the interconnectAttachment field is set. + * @return Whether the network field is set. */ - public boolean hasInterconnectAttachment() { - return targetResourceCase_ == 102; + public boolean hasNetwork() { + return targetResourceCase_ == 100; } /** * * *
                                              -   * Traffic will be logged from the Interconnect Attachment.
                                              -   * Format:
                                              -   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                                  * 
                                              * - * string interconnect_attachment = 102; + * string network = 100; * - * @return The interconnectAttachment. + * @return The network. */ - public java.lang.String getInterconnectAttachment() { + public java.lang.String getNetwork() { java.lang.Object ref = ""; - if (targetResourceCase_ == 102) { + if (targetResourceCase_ == 100) { ref = targetResource_; } if (ref instanceof java.lang.String) { @@ -1518,7 +1777,7 @@ public java.lang.String getInterconnectAttachment() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (targetResourceCase_ == 102) { + if (targetResourceCase_ == 100) { targetResource_ = s; } return s; @@ -1529,24 +1788,24 @@ public java.lang.String getInterconnectAttachment() { * * *
                                              -   * Traffic will be logged from the Interconnect Attachment.
                                              -   * Format:
                                              -   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                                  * 
                                              * - * string interconnect_attachment = 102; + * string network = 100; * - * @return The bytes for interconnectAttachment. + * @return The bytes for network. */ - public com.google.protobuf.ByteString getInterconnectAttachmentBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = ""; - if (targetResourceCase_ == 102) { + if (targetResourceCase_ == 100) { ref = targetResource_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetResourceCase_ == 102) { + if (targetResourceCase_ == 100) { targetResource_ = b; } return b; @@ -1555,39 +1814,39 @@ public com.google.protobuf.ByteString getInterconnectAttachmentBytes() { } } - public static final int VPN_TUNNEL_FIELD_NUMBER = 103; + public static final int SUBNET_FIELD_NUMBER = 101; /** * * *
                                              -   * Traffic will be logged from the VPN Tunnel.
                                              -   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                                  * 
                                              * - * string vpn_tunnel = 103; + * string subnet = 101; * - * @return Whether the vpnTunnel field is set. + * @return Whether the subnet field is set. */ - public boolean hasVpnTunnel() { - return targetResourceCase_ == 103; + public boolean hasSubnet() { + return targetResourceCase_ == 101; } /** * * *
                                              -   * Traffic will be logged from the VPN Tunnel.
                                              -   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                                  * 
                                              * - * string vpn_tunnel = 103; + * string subnet = 101; * - * @return The vpnTunnel. + * @return The subnet. */ - public java.lang.String getVpnTunnel() { + public java.lang.String getSubnet() { java.lang.Object ref = ""; - if (targetResourceCase_ == 103) { + if (targetResourceCase_ == 101) { ref = targetResource_; } if (ref instanceof java.lang.String) { @@ -1595,7 +1854,7 @@ public java.lang.String getVpnTunnel() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (targetResourceCase_ == 103) { + if (targetResourceCase_ == 101) { targetResource_ = s; } return s; @@ -1606,23 +1865,23 @@ public java.lang.String getVpnTunnel() { * * *
                                              -   * Traffic will be logged from the VPN Tunnel.
                                              -   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                                  * 
                                              * - * string vpn_tunnel = 103; + * string subnet = 101; * - * @return The bytes for vpnTunnel. + * @return The bytes for subnet. */ - public com.google.protobuf.ByteString getVpnTunnelBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = ""; - if (targetResourceCase_ == 103) { + if (targetResourceCase_ == 101) { ref = targetResource_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetResourceCase_ == 103) { + if (targetResourceCase_ == 101) { targetResource_ = b; } return b; @@ -1631,41 +1890,196 @@ public com.google.protobuf.ByteString getVpnTunnelBytes() { } } - public static final int LABELS_FIELD_NUMBER = 11; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto - .internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_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(); - } + public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 102; /** * * *
                                              -   * Optional. Resource labels to represent user-provided metadata.
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                                  * 
                                              * - * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + public boolean hasInterconnectAttachment() { + return targetResourceCase_ == 102; + } + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + public java.lang.String getInterconnectAttachment() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 102) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + public com.google.protobuf.ByteString getInterconnectAttachmentBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 102) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPN_TUNNEL_FIELD_NUMBER = 103; + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + public boolean hasVpnTunnel() { + return targetResourceCase_ == 103; + } + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + public java.lang.String getVpnTunnel() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 103) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + public com.google.protobuf.ByteString getVpnTunnelBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 103) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 11; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_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. Resource labels to represent user-provided metadata.
                                              +   * 
                                              + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -1755,7 +2169,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -1807,7 +2221,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -1880,17 +2294,26 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, filterExpr_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(9, getCreateTime()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(10, getUpdateTime()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeEnum(12, targetResourceState_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(13, crossProjectMetadata_); + } + if (targetResourceCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, targetResource_); + } + if (targetResourceCase_ == 101) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, targetResource_); + } if (targetResourceCase_ == 102) { com.google.protobuf.GeneratedMessageV3.writeString(output, 102, targetResource_); } @@ -1935,10 +2358,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filterExpr_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } for (java.util.Map.Entry entry : @@ -1951,9 +2374,18 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, targetResourceState_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, crossProjectMetadata_); + } + if (targetResourceCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, targetResource_); + } + if (targetResourceCase_ == 101) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, targetResource_); + } if (targetResourceCase_ == 102) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, targetResource_); } @@ -2003,6 +2435,10 @@ public boolean equals(final java.lang.Object obj) { if (hasFilterExpr()) { if (!getFilterExpr().equals(other.getFilterExpr())) return false; } + if (hasCrossProjectMetadata() != other.hasCrossProjectMetadata()) return false; + if (hasCrossProjectMetadata()) { + if (crossProjectMetadata_ != other.crossProjectMetadata_) return false; + } if (hasTargetResourceState() != other.hasTargetResourceState()) return false; if (hasTargetResourceState()) { if (targetResourceState_ != other.targetResourceState_) return false; @@ -2018,6 +2454,12 @@ public boolean equals(final java.lang.Object obj) { } if (!getTargetResourceCase().equals(other.getTargetResourceCase())) return false; switch (targetResourceCase_) { + case 100: + if (!getNetwork().equals(other.getNetwork())) return false; + break; + case 101: + if (!getSubnet().equals(other.getSubnet())) return false; + break; case 102: if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; break; @@ -2068,6 +2510,10 @@ public int hashCode() { hash = (37 * hash) + FILTER_EXPR_FIELD_NUMBER; hash = (53 * hash) + getFilterExpr().hashCode(); } + if (hasCrossProjectMetadata()) { + hash = (37 * hash) + CROSS_PROJECT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + crossProjectMetadata_; + } if (hasTargetResourceState()) { hash = (37 * hash) + TARGET_RESOURCE_STATE_FIELD_NUMBER; hash = (53 * hash) + targetResourceState_; @@ -2085,6 +2531,14 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().hashCode(); } switch (targetResourceCase_) { + case 100: + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + break; + case 101: + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + break; case 102: hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; hash = (53 * hash) + getInterconnectAttachment().hashCode(); @@ -2277,6 +2731,7 @@ public Builder clear() { metadata_ = 0; metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); filterExpr_ = ""; + crossProjectMetadata_ = 0; targetResourceState_ = 0; internalGetMutableLabels().clear(); createTime_ = null; @@ -2361,20 +2816,24 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.VpcFlowLogsConf to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.targetResourceState_ = targetResourceState_; + result.crossProjectMetadata_ = crossProjectMetadata_; to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { + result.targetResourceState_ = targetResourceState_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000200; } result.bitField0_ |= to_bitField0_; } @@ -2468,11 +2927,14 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig bitField0_ |= 0x00000080; onChanged(); } + if (other.hasCrossProjectMetadata()) { + setCrossProjectMetadata(other.getCrossProjectMetadata()); + } if (other.hasTargetResourceState()) { setTargetResourceState(other.getTargetResourceState()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -2480,6 +2942,20 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig mergeUpdateTime(other.getUpdateTime()); } switch (other.getTargetResourceCase()) { + case NETWORK: + { + targetResourceCase_ = 100; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case SUBNET: + { + targetResourceCase_ = 101; + targetResource_ = other.targetResource_; + onChanged(); + break; + } case INTERCONNECT_ATTACHMENT: { targetResourceCase_ = 102; @@ -2577,13 +3053,13 @@ public Builder mergeFrom( case 74: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; break; } // case 82 case 90: @@ -2595,15 +3071,35 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; break; } // case 90 case 96: { targetResourceState_ = input.readEnum(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 96 + case 104: + { + crossProjectMetadata_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 104 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 100; + targetResource_ = s; + break; + } // case 802 + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 101; + targetResource_ = s; + break; + } // case 810 case 818: { java.lang.String s = input.readStringRequireUtf8(); @@ -2657,8 +3153,14 @@ public Builder clearTargetResource() { * * *
                                              -     * Identifier. Unique name of the configuration using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     * Identifier. Unique name of the configuration. The name can have one of the
                                              +     * following forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -2681,8 +3183,14 @@ public java.lang.String getName() { * * *
                                              -     * Identifier. Unique name of the configuration using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     * Identifier. Unique name of the configuration. The name can have one of the
                                              +     * following forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -2705,8 +3213,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                              -     * Identifier. Unique name of the configuration using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     * Identifier. Unique name of the configuration. The name can have one of the
                                              +     * following forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -2728,8 +3242,14 @@ public Builder setName(java.lang.String value) { * * *
                                              -     * Identifier. Unique name of the configuration using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     * Identifier. Unique name of the configuration. The name can have one of the
                                              +     * following forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -2747,8 +3267,14 @@ public Builder clearName() { * * *
                                              -     * Identifier. Unique name of the configuration using the form:
                                              -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     * Identifier. Unique name of the configuration. The name can have one of the
                                              +     * following forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                    * 
                                              * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -2906,7 +3432,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * *
                                                    * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -     * ENABLED. When creating a new configuration, it must be enabled.
                                              +     * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +     * state=DISABLED will pause the log generation for this config.
                                                    * 
                                              * * @@ -2925,7 +3452,8 @@ public boolean hasState() { * *
                                                    * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -     * ENABLED. When creating a new configuration, it must be enabled.
                                              +     * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +     * state=DISABLED will pause the log generation for this config.
                                                    * 
                                              * * @@ -2944,7 +3472,8 @@ public int getStateValue() { * *
                                                    * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -     * ENABLED. When creating a new configuration, it must be enabled.
                                              +     * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +     * state=DISABLED will pause the log generation for this config.
                                                    * 
                                              * * @@ -2966,7 +3495,8 @@ public Builder setStateValue(int value) { * *
                                                    * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -     * ENABLED. When creating a new configuration, it must be enabled.
                                              +     * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +     * state=DISABLED will pause the log generation for this config.
                                                    * 
                                              * * @@ -2989,7 +3519,8 @@ public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State getState() * *
                                                    * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -     * ENABLED. When creating a new configuration, it must be enabled.
                                              +     * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +     * state=DISABLED will pause the log generation for this config.
                                                    * 
                                              * * @@ -3014,7 +3545,8 @@ public Builder setState(com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig. * *
                                                    * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -     * ENABLED. When creating a new configuration, it must be enabled.
                                              +     * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +     * state=DISABLED will pause the log generation for this config.
                                                    * 
                                              * * @@ -3710,24 +4242,25 @@ public Builder setFilterExprBytes(com.google.protobuf.ByteString value) { return this; } - private int targetResourceState_ = 0; + private int crossProjectMetadata_ = 0; /** * * *
                                              -     * Output only. A diagnostic bit - describes the state of the configured
                                              -     * target resource for diagnostic purposes.
                                              +     * Optional. Determines whether to include cross project annotations in the
                                              +     * logs. This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                                    * 
                                              * * - * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the targetResourceState field is set. + * @return Whether the crossProjectMetadata field is set. */ @java.lang.Override - public boolean hasTargetResourceState() { + public boolean hasCrossProjectMetadata() { return ((bitField0_ & 0x00000100) != 0); } @@ -3735,39 +4268,179 @@ public boolean hasTargetResourceState() { * * *
                                              -     * Output only. A diagnostic bit - describes the state of the configured
                                              -     * target resource for diagnostic purposes.
                                              +     * Optional. Determines whether to include cross project annotations in the
                                              +     * logs. This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                                    * 
                                              * * - * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The enum numeric value on the wire for targetResourceState. + * @return The enum numeric value on the wire for crossProjectMetadata. */ @java.lang.Override - public int getTargetResourceStateValue() { - return targetResourceState_; + public int getCrossProjectMetadataValue() { + return crossProjectMetadata_; } /** * * *
                                              -     * Output only. A diagnostic bit - describes the state of the configured
                                              -     * target resource for diagnostic purposes.
                                              +     * Optional. Determines whether to include cross project annotations in the
                                              +     * logs. This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                                    * 
                                              * * - * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The enum numeric value on the wire for targetResourceState to set. + * @param value The enum numeric value on the wire for crossProjectMetadata to set. + * @return This builder for chaining. + */ + public Builder setCrossProjectMetadataValue(int value) { + crossProjectMetadata_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Determines whether to include cross project annotations in the
                                              +     * logs. This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The crossProjectMetadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata.forNumber( + crossProjectMetadata_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Optional. Determines whether to include cross project annotations in the
                                              +     * logs. This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The crossProjectMetadata to set. + * @return This builder for chaining. + */ + public Builder setCrossProjectMetadata( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + crossProjectMetadata_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Determines whether to include cross project annotations in the
                                              +     * logs. This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCrossProjectMetadata() { + bitField0_ = (bitField0_ & ~0x00000100); + crossProjectMetadata_ = 0; + onChanged(); + return this; + } + + private int targetResourceState_ = 0; + + /** + * + * + *
                                              +     * Output only. Describes the state of the configured target resource for
                                              +     * diagnostic purposes.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the targetResourceState field is set. + */ + @java.lang.Override + public boolean hasTargetResourceState() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                                              +     * Output only. Describes the state of the configured target resource for
                                              +     * diagnostic purposes.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for targetResourceState. + */ + @java.lang.Override + public int getTargetResourceStateValue() { + return targetResourceState_; + } + + /** + * + * + *
                                              +     * Output only. Describes the state of the configured target resource for
                                              +     * diagnostic purposes.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for targetResourceState to set. * @return This builder for chaining. */ public Builder setTargetResourceStateValue(int value) { targetResourceState_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3776,8 +4449,8 @@ public Builder setTargetResourceStateValue(int value) { * * *
                                              -     * Output only. A diagnostic bit - describes the state of the configured
                                              -     * target resource for diagnostic purposes.
                                              +     * Output only. Describes the state of the configured target resource for
                                              +     * diagnostic purposes.
                                                    * 
                                              * * @@ -3801,8 +4474,8 @@ public Builder setTargetResourceStateValue(int value) { * * *
                                              -     * Output only. A diagnostic bit - describes the state of the configured
                                              -     * target resource for diagnostic purposes.
                                              +     * Output only. Describes the state of the configured target resource for
                                              +     * diagnostic purposes.
                                                    * 
                                              * * @@ -3817,7 +4490,7 @@ public Builder setTargetResourceState( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; targetResourceState_ = value.getNumber(); onChanged(); return this; @@ -3827,8 +4500,8 @@ public Builder setTargetResourceState( * * *
                                              -     * Output only. A diagnostic bit - describes the state of the configured
                                              -     * target resource for diagnostic purposes.
                                              +     * Output only. Describes the state of the configured target resource for
                                              +     * diagnostic purposes.
                                                    * 
                                              * * @@ -3838,12 +4511,308 @@ public Builder setTargetResourceState( * @return This builder for chaining. */ public Builder clearTargetResourceState() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); targetResourceState_ = 0; onChanged(); return this; } + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return Whether the network field is set. + */ + @java.lang.Override + public boolean hasNetwork() { + return targetResourceCase_ == 100; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 100) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 100) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 100; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + if (targetResourceCase_ == 100) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 100; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + @java.lang.Override + public boolean hasSubnet() { + return targetResourceCase_ == 101; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return The subnet. + */ + @java.lang.Override + public java.lang.String getSubnet() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 101) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 101) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @param value The subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 101; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return This builder for chaining. + */ + public Builder clearSubnet() { + if (targetResourceCase_ == 101) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @param value The bytes for subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 101; + targetResource_ = value; + onChanged(); + return this; + } + /** * * @@ -4157,7 +5126,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); return labels_; } @@ -4247,7 +5216,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4272,7 +5241,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; return internalGetMutableLabels().getMutableMap(); } @@ -4293,7 +5262,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; return this; } @@ -4308,7 +5277,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; return this; } @@ -4333,7 +5302,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -4379,7 +5348,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4401,7 +5370,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4419,7 +5388,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00008000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4430,7 +5399,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -4448,7 +5417,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
                                              */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00008000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4470,7 +5439,7 @@ public Builder clearCreateTime() { *
                                              */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4545,7 +5514,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -4591,7 +5560,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4613,7 +5582,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4631,7 +5600,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00010000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -4642,7 +5611,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -4660,7 +5629,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
                                              */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00010000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -4682,7 +5651,7 @@ public Builder clearUpdateTime() { *
                                              */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java index 925e4a85e89d..6fa88b461f6d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; @@ -32,22 +33,39 @@ public class VpcFlowLogsConfigName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}"); + private static final PathTemplate ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String project; private final String location; private final String vpcFlowLogsConfig; + private final String organization; @Deprecated protected VpcFlowLogsConfigName() { project = null; location = null; vpcFlowLogsConfig = null; + organization = null; } private VpcFlowLogsConfigName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); vpcFlowLogsConfig = Preconditions.checkNotNull(builder.getVpcFlowLogsConfig()); + organization = null; + pathTemplate = PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG; + } + + private VpcFlowLogsConfigName(OrganizationLocationVpcFlowLogsConfigBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + vpcFlowLogsConfig = Preconditions.checkNotNull(builder.getVpcFlowLogsConfig()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG; } public String getProject() { @@ -62,10 +80,23 @@ public String getVpcFlowLogsConfig() { return vpcFlowLogsConfig; } + public String getOrganization() { + return organization; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newProjectLocationVpcFlowLogsConfigBuilder() { + return new Builder(); + } + + public static OrganizationLocationVpcFlowLogsConfigBuilder + newOrganizationLocationVpcFlowLogsConfigBuilder() { + return new OrganizationLocationVpcFlowLogsConfigBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -79,6 +110,24 @@ public static VpcFlowLogsConfigName of( .build(); } + public static VpcFlowLogsConfigName ofProjectLocationVpcFlowLogsConfigName( + String project, String location, String vpcFlowLogsConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build(); + } + + public static VpcFlowLogsConfigName ofOrganizationLocationVpcFlowLogsConfigName( + String organization, String location, String vpcFlowLogsConfig) { + return newOrganizationLocationVpcFlowLogsConfigBuilder() + .setOrganization(organization) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build(); + } + public static String format(String project, String location, String vpcFlowLogsConfig) { return newBuilder() .setProject(project) @@ -88,15 +137,44 @@ public static String format(String project, String location, String vpcFlowLogsC .toString(); } + public static String formatProjectLocationVpcFlowLogsConfigName( + String project, String location, String vpcFlowLogsConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build() + .toString(); + } + + public static String formatOrganizationLocationVpcFlowLogsConfigName( + String organization, String location, String vpcFlowLogsConfig) { + return newOrganizationLocationVpcFlowLogsConfigBuilder() + .setOrganization(organization) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build() + .toString(); + } + public static VpcFlowLogsConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.validatedMatch( - formattedString, "VpcFlowLogsConfigName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), matchMap.get("location"), matchMap.get("vpc_flow_logs_config")); + if (PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.match(formattedString); + return ofProjectLocationVpcFlowLogsConfigName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("vpc_flow_logs_config")); + } else if (ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG.match(formattedString); + return ofOrganizationLocationVpcFlowLogsConfigName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("vpc_flow_logs_config")); + } + throw new ValidationException( + "VpcFlowLogsConfigName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -120,7 +198,8 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString); + return PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString) + || ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString); } @Override @@ -138,6 +217,9 @@ public Map getFieldValuesMap() { if (vpcFlowLogsConfig != null) { fieldMapBuilder.put("vpc_flow_logs_config", vpcFlowLogsConfig); } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -151,8 +233,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.instantiate( - "project", project, "location", location, "vpc_flow_logs_config", vpcFlowLogsConfig); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -164,7 +245,8 @@ public boolean equals(Object o) { VpcFlowLogsConfigName that = ((VpcFlowLogsConfigName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.location, that.location) - && Objects.equals(this.vpcFlowLogsConfig, that.vpcFlowLogsConfig); + && Objects.equals(this.vpcFlowLogsConfig, that.vpcFlowLogsConfig) + && Objects.equals(this.organization, that.organization); } return false; } @@ -173,11 +255,15 @@ public boolean equals(Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(project); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(vpcFlowLogsConfig); + h *= 1000003; + h ^= Objects.hashCode(organization); return h; } @@ -219,6 +305,10 @@ public Builder setVpcFlowLogsConfig(String vpcFlowLogsConfig) { } private Builder(VpcFlowLogsConfigName vpcFlowLogsConfigName) { + Preconditions.checkArgument( + Objects.equals(vpcFlowLogsConfigName.pathTemplate, PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG), + "toBuilder is only supported when VpcFlowLogsConfigName has the pattern of" + + " projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}"); this.project = vpcFlowLogsConfigName.project; this.location = vpcFlowLogsConfigName.location; this.vpcFlowLogsConfig = vpcFlowLogsConfigName.vpcFlowLogsConfig; @@ -228,4 +318,48 @@ public VpcFlowLogsConfigName build() { return new VpcFlowLogsConfigName(this); } } + + /** + * Builder for + * organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}. + */ + public static class OrganizationLocationVpcFlowLogsConfigBuilder { + private String organization; + private String location; + private String vpcFlowLogsConfig; + + protected OrganizationLocationVpcFlowLogsConfigBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getVpcFlowLogsConfig() { + return vpcFlowLogsConfig; + } + + public OrganizationLocationVpcFlowLogsConfigBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationVpcFlowLogsConfigBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationVpcFlowLogsConfigBuilder setVpcFlowLogsConfig( + String vpcFlowLogsConfig) { + this.vpcFlowLogsConfig = vpcFlowLogsConfig; + return this; + } + + public VpcFlowLogsConfigName build() { + return new VpcFlowLogsConfigName(this); + } + } } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigOrBuilder.java index 56d785857d53..2966e42e25b7 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigOrBuilder.java @@ -28,8 +28,14 @@ public interface VpcFlowLogsConfigOrBuilder * * *
                                              -   * Identifier. Unique name of the configuration using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   * Identifier. Unique name of the configuration. The name can have one of the
                                              +   * following forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,8 +48,14 @@ public interface VpcFlowLogsConfigOrBuilder * * *
                                              -   * Identifier. Unique name of the configuration using the form:
                                              -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   * Identifier. Unique name of the configuration. The name can have one of the
                                              +   * following forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                                  * 
                                              * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -99,7 +111,8 @@ public interface VpcFlowLogsConfigOrBuilder * *
                                                  * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -   * ENABLED. When creating a new configuration, it must be enabled.
                                              +   * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +   * state=DISABLED will pause the log generation for this config.
                                                  * 
                                              * * @@ -115,7 +128,8 @@ public interface VpcFlowLogsConfigOrBuilder * *
                                                  * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -   * ENABLED. When creating a new configuration, it must be enabled.
                                              +   * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +   * state=DISABLED will pause the log generation for this config.
                                                  * 
                                              * * @@ -131,7 +145,8 @@ public interface VpcFlowLogsConfigOrBuilder * *
                                                  * Optional. The state of the VPC Flow Log configuration. Default value is
                                              -   * ENABLED. When creating a new configuration, it must be enabled.
                                              +   * ENABLED. When creating a new configuration, it must be enabled. Setting
                                              +   * state=DISABLED will pause the log generation for this config.
                                                  * 
                                              * * @@ -378,8 +393,60 @@ public interface VpcFlowLogsConfigOrBuilder * * *
                                              -   * Output only. A diagnostic bit - describes the state of the configured
                                              -   * target resource for diagnostic purposes.
                                              +   * Optional. Determines whether to include cross project annotations in the
                                              +   * logs. This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + boolean hasCrossProjectMetadata(); + + /** + * + * + *
                                              +   * Optional. Determines whether to include cross project annotations in the
                                              +   * logs. This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + int getCrossProjectMetadataValue(); + + /** + * + * + *
                                              +   * Optional. Determines whether to include cross project annotations in the
                                              +   * logs. This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The crossProjectMetadata. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata(); + + /** + * + * + *
                                              +   * Output only. Describes the state of the configured target resource for
                                              +   * diagnostic purposes.
                                                  * 
                                              * * @@ -394,8 +461,8 @@ public interface VpcFlowLogsConfigOrBuilder * * *
                                              -   * Output only. A diagnostic bit - describes the state of the configured
                                              -   * target resource for diagnostic purposes.
                                              +   * Output only. Describes the state of the configured target resource for
                                              +   * diagnostic purposes.
                                                  * 
                                              * * @@ -410,8 +477,8 @@ public interface VpcFlowLogsConfigOrBuilder * * *
                                              -   * Output only. A diagnostic bit - describes the state of the configured
                                              -   * target resource for diagnostic purposes.
                                              +   * Output only. Describes the state of the configured target resource for
                                              +   * diagnostic purposes.
                                                  * 
                                              * * @@ -423,6 +490,93 @@ public interface VpcFlowLogsConfigOrBuilder com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState getTargetResourceState(); + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return Whether the network field is set. + */ + boolean hasNetwork(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + boolean hasSubnet(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The subnet. + */ + java.lang.String getSubnet(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + com.google.protobuf.ByteString getSubnetBytes(); + /** * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigProto.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigProto.java index 667e36fec0e4..448edaabcb90 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_EffectiveVpcFlowLogsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_EffectiveVpcFlowLogsConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -48,7 +52,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ".go" - + "ogle.cloud.networkmanagement.v1.GetVpcFl" - + "owLogsConfigRequest\0324.google.cloud.netwo" - + "rkmanagement.v1.VpcFlowLogsConfig\"E\332A\004na" - + "me\202\323\344\223\0028\0226/v1/{name=projects/*/locations" - + "/*/vpcFlowLogsConfigs/*}\022\323\002\n\027CreateVpcFl" - + "owLogsConfig\022A.google.cloud.networkmanag" - + "ement.v1.CreateVpcFlowLogsConfigRequest\032" - + "\035.google.longrunning.Operation\"\325\001\312AH\n\021Vp" - + "cFlowLogsConfig\0223google.cloud.networkman" - + "agement.v1.OperationMetadata\332A3parent,vp" - + "c_flow_logs_config,vpc_flow_logs_config_" - + "id\202\323\344\223\002N\"6/v1/{parent=projects/*/locatio" - + "ns/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_" - + "config\022\325\002\n\027UpdateVpcFlowLogsConfig\022A.goo" - + "gle.cloud.networkmanagement.v1.UpdateVpc" - + "FlowLogsConfigRequest\032\035.google.longrunni" - + "ng.Operation\"\327\001\312AH\n\021VpcFlowLogsConfig\0223g" - + "oogle.cloud.networkmanagement.v1.Operati" - + "onMetadata\332A vpc_flow_logs_config,update" - + "_mask\202\323\344\223\002c2K/v1/{vpc_flow_logs_config.n" - + "ame=projects/*/locations/*/vpcFlowLogsCo" - + "nfigs/*}:\024vpc_flow_logs_config\022\222\002\n\027Delet" - + "eVpcFlowLogsConfig\022A.google.cloud.networ" - + "kmanagement.v1.DeleteVpcFlowLogsConfigRe" - + "quest\032\035.google.longrunning.Operation\"\224\001\312" - + "AL\n\025google.protobuf.Empty\0223google.cloud." - + "networkmanagement.v1.OperationMetadata\332A" - + "\004name\202\323\344\223\0028*6/v1/{name=projects/*/locati" - + "ons/*/vpcFlowLogsConfigs/*}\032T\312A networkm" - + "anagement.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\377\001\n%co" - + "m.google.cloud.networkmanagement.v1B\020Vpc" - + "FlowLogsProtoP\001ZScloud.google.com/go/net" - + "workmanagement/apiv1/networkmanagementpb" + + "ud.networkmanagement.v1.VpcFlowLogsConfigB\003\340A\002\"j\n" + + "\036DeleteVpcFlowLogsConfigRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + + "2networkmanagement.googleapis.com/VpcFlowLogsConfig\"\265\001\n" + + "!QueryOrgVpcFlowLogsConfigsRequest\022J\n" + + "\006parent\030\001 \001(" + + "\tB:\340A\002\372A4\0222networkmanagement.googleapis.com/VpcFlowLogsConfig\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\"\247\001\n" + + "\"QueryOrgVpcFlowLogsConfigsResponse\022S\n" + + "\025vpc_flow_logs_configs\030\001" + + " \003(\01324.google.cloud.networkmanagement.v1.VpcFlowLogsConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\316\001\n" + + "#ShowEffectiveFlowLogsConfigsRequest\022J\n" + + "\006parent\030\001 \001(" + + "\tB:\340A\002\372A4\0222networkmanagement.googleapis.com/VpcFlowLogsConfig\022\025\n" + + "\010resource\030\002 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\270\001\n" + + "$ShowEffectiveFlowLogsConfigsResponse\022b\n" + + "\033effective_flow_logs_configs\030\001 \003(\0132=.go" + + "ogle.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t2\202\020\n" + + "\022VpcFlowLogsService\022\346\001\n" + + "\026ListVpcFlowLogsConfigs\022@.google.cloud.networkmanagement.v1.ListVpcFl" + + "owLogsConfigsRequest\032A.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsR" + + "esponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=pr" + + "ojects/*/locations/*}/vpcFlowLogsConfigs\022\323\001\n" + + "\024GetVpcFlowLogsConfig\022>.google.cloud.networkmanagement.v1.GetVpcFlowLogsConf" + + "igRequest\0324.google.cloud.networkmanageme" + + "nt.v1.VpcFlowLogsConfig\"E\332A\004name\202\323\344\223\0028\0226" + + "/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}\022\323\002\n" + + "\027CreateVpcFlowLogsConfig\022A.google.cloud.networkmanagement.v1.C" + + "reateVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\325\001\312AH\n" + + "\021VpcFlowLogsConfig\0223google.cloud.networkmanagement.v1" + + ".OperationMetadata\332A3parent,vpc_flow_log" + + "s_config,vpc_flow_logs_config_id\202\323\344\223\002N\"6" + + "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_config\022\325\002\n" + + "\027UpdateVpcFlowLogsConfig\022A.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsCo" + + "nfigRequest\032\035.google.longrunning.Operation\"\327\001\312AH\n" + + "\021VpcFlowLogsConfig\0223google.cloud.networkmanagement.v1.OperationMetadata\332A" + + " vpc_flow_logs_config,update_mask\202\323\344\223\002" + + "c2K/v1/{vpc_flow_logs_config.name=projec" + + "ts/*/locations/*/vpcFlowLogsConfigs/*}:\024vpc_flow_logs_config\022\222\002\n" + + "\027DeleteVpcFlowLogsConfig\022A.google.cloud.networkmanagemen" + + "t.v1.DeleteVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\224\001\312AL\n" + + "\025google.protobuf.Empty\0223google.cloud.networkman" + + "agement.v1.OperationMetadata\332A\004name\202\323\344\223\002" + + "8*6/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}\022\204\002\n" + + "\032QueryOrgVpcFlowLogsConfigs\022D.google.cloud.networkmanagemen" + + "t.v1.QueryOrgVpcFlowLogsConfigsRequest\032E.google.cloud.networkmanagement.v1.Query" + + "OrgVpcFlowLogsConfigsResponse\"Y\202\323\344\223\002S\022Q/" + + "v1/{parent=projects/*/locations/*}/vpcFl" + + "owLogsConfigs:queryOrgVpcFlowLogsConfigs\022\214\002\n" + + "\034ShowEffectiveFlowLogsConfigs\022F.google.cloud.networkmanagement.v1.ShowEffect" + + "iveFlowLogsConfigsRequest\032G.google.cloud.networkmanagement.v1.ShowEffectiveFlowL" + + "ogsConfigsResponse\"[\202\323\344\223\002U\022S/v1/{parent=" + + "projects/*/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs\032T\312A netw" + + "orkmanagement.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platform2\221\014\n" + + "\036OrganizationVpcFlowLogsService\022\353\001\n" + + "\026ListVpcFlowLogsConfigs\022@.google.cloud.netwo" + + "rkmanagement.v1.ListVpcFlowLogsConfigsRequest\032A.google.cloud.networkmanagement.v" + + "1.ListVpcFlowLogsConfigsResponse\"L\332A\006par" + + "ent\202\323\344\223\002=\022;/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs\022\330\001\n" + + "\024GetVpcFlowLogsConfig\022>.google.cloud.networkma" + + "nagement.v1.GetVpcFlowLogsConfigRequest\0324.google.cloud.networkmanagement.v1.VpcF" + + "lowLogsConfig\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=" + + "organizations/*/locations/*/vpcFlowLogsConfigs/*}\022\330\002\n" + + "\027CreateVpcFlowLogsConfig\022A.google.cloud.networkmanagement.v1.Create" + + "VpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\332\001\312AH\n" + + "\021VpcFlowLogsConfig\0223google.cloud.networkmanagement.v1.Oper" + + "ationMetadata\332A3parent,vpc_flow_logs_con" + + "fig,vpc_flow_logs_config_id\202\323\344\223\002S\";/v1/{" + + "parent=organizations/*/locations/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_config\022\332\002\n" + + "\027UpdateVpcFlowLogsConfig\022A.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsCo" + + "nfigRequest\032\035.google.longrunning.Operation\"\334\001\312AH\n" + + "\021VpcFlowLogsConfig\0223google.cloud.networkmanagement.v1.OperationMetadata\332A" + + " vpc_flow_logs_config,update_mask\202\323\344\223\002" + + "h2P/v1/{vpc_flow_logs_config.name=organi" + + "zations/*/locations/*/vpcFlowLogsConfigs/*}:\024vpc_flow_logs_config\022\227\002\n" + + "\027DeleteVpcFlowLogsConfig\022A.google.cloud.networkmana" + + "gement.v1.DeleteVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\231\001\312AL\n" + + "\025google.protobuf.Empty\0223google.cloud.netwo" + + "rkmanagement.v1.OperationMetadata\332A\004name" + + "\202\323\344\223\002=*;/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}\032T\312A" + + " networkm" + + "anagement.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\377\001\n" + + "%com.google.cloud.networkmanagement.v1B\020Vpc" + + "FlowLogsProtoP\001ZScloud.google.com/go/networkmanagement/apiv1/networkmanagementpb" + ";networkmanagementpb\252\002!Google.Cloud.Netw" + "orkManagement.V1\312\002!Google\\Cloud\\NetworkM" - + "anagement\\V1\352\002$Google::Cloud::NetworkMan" - + "agement::V1b\006proto3" + + "anagement\\V1\352\002$Google::Cloud::NetworkManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -206,6 +271,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_QueryOrgVpcFlowLogsConfigsResponse_descriptor, + new java.lang.String[] { + "VpcFlowLogsConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "Resource", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_ShowEffectiveFlowLogsConfigsResponse_descriptor, + new java.lang.String[] { + "EffectiveFlowLogsConfigs", "NextPageToken", "Unreachable", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto index f05aabecb869..f6eebf5378ef 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto @@ -171,12 +171,12 @@ message Endpoint { // A [Cloud Run](https://cloud.google.com/run) // [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) // URI. The format is: - // `projects/{project}/locations/{location}/revisions/{revision}` + // projects/{project}/locations/{location}/revisions/{revision} string uri = 1; // Output only. The URI of the Cloud Run service that the revision belongs // to. The format is: - // `projects/{project}/locations/{location}/services/{service}` + // projects/{project}/locations/{location}/services/{service} string service_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -195,8 +195,8 @@ message Endpoint { // used for protocol forwarding, Private Service Connect and other network // services to provide forwarding information in the control plane. Applicable // only to destination endpoint. Format: - // `projects/{project}/global/forwardingRules/{id}` or - // `projects/{project}/regions/{region}/forwardingRules/{id}` + // `projects/{project}/global/forwardingRules/{id}` or + // `projects/{project}/regions/{region}/forwardingRules/{id}` string forwarding_rule = 13; // Output only. Specifies the type of the target of the forwarding rule. @@ -381,6 +381,34 @@ message ProbingDetails { string metropolitan_area = 1; } + // Probing results for a single edge device. + message SingleEdgeResponse { + // The overall result of active probing for this egress device. + ProbingResult result = 1; + + // Number of probes sent. + int32 sent_probe_count = 2; + + // Number of probes that reached the destination. + int32 successful_probe_count = 3; + + // Latency as measured by active probing in one direction: from the source + // to the destination endpoint. + LatencyDistribution probing_latency = 4; + + // The EdgeLocation from which a packet, destined to the internet, will + // egress the Google network. + // This will only be populated for a connectivity test which has an internet + // destination address. + // The absence of this field *must not* be used as an indication that the + // destination is part of the Google network. + EdgeLocation destination_egress_location = 5; + + // Router name in the format '{router}.{metroshard}'. For example: + // pf01.aaa01, pr02.aaa01. + string destination_router = 6; + } + // The overall result of active probing. ProbingResult result = 1; @@ -407,11 +435,17 @@ message ProbingDetails { // from the source to the destination endpoint. LatencyDistribution probing_latency = 8; - // The EdgeLocation from which a packet destined for/originating from the - // internet will egress/ingress the Google network. + // The EdgeLocation from which a packet, destined to the internet, will egress + // the Google network. // This will only be populated for a connectivity test which has an internet - // destination/source address. + // destination address. // The absence of this field *must not* be used as an indication that the - // destination/source is part of the Google network. + // destination is part of the Google network. EdgeLocation destination_egress_location = 9; + + // Probing results for all edge devices. + repeated SingleEdgeResponse edge_responses = 10; + + // Whether all relevant edge devices were probed. + bool probed_all_devices = 11; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto index b4eb28d784d4..30d411b36c47 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto @@ -151,21 +151,24 @@ message Step { ARRIVE_AT_INSTANCE = 9; // Forwarding state: arriving at a Compute Engine internal load balancer. - // Deprecated in favor of the `ANALYZE_LOAD_BALANCER_BACKEND` state, not - // used in new tests. ARRIVE_AT_INTERNAL_LOAD_BALANCER = 10 [deprecated = true]; // Forwarding state: arriving at a Compute Engine external load balancer. - // Deprecated in favor of the `ANALYZE_LOAD_BALANCER_BACKEND` state, not - // used in new tests. ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11 [deprecated = true]; + // Forwarding state: arriving at a hybrid subnet. Appropriate routing + // configuration will be determined here. + ARRIVE_AT_HYBRID_SUBNET = 38; + // Forwarding state: arriving at a Cloud VPN gateway. ARRIVE_AT_VPN_GATEWAY = 12; // Forwarding state: arriving at a Cloud VPN tunnel. ARRIVE_AT_VPN_TUNNEL = 13; + // Forwarding state: arriving at an interconnect attachment. + ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; + // Forwarding state: arriving at a VPC connector. ARRIVE_AT_VPC_CONNECTOR = 24; @@ -177,7 +180,8 @@ message Step { // forwarded through public (external) connectivity. SERVERLESS_EXTERNAL_CONNECTION = 36; - // Transition state: packet header translated. + // Transition state: packet header translated. The `nat` field is populated + // with the translation information. NAT = 14; // Transition state: original connection is terminated and a new proxied @@ -241,12 +245,18 @@ message Step { // Display information of a Compute Engine forwarding rule. ForwardingRuleInfo forwarding_rule = 9; + // Display information of a hybrid subnet. + HybridSubnetInfo hybrid_subnet = 36; + // Display information of a Compute Engine VPN gateway. VpnGatewayInfo vpn_gateway = 10; // Display information of a Compute Engine VPN tunnel. VpnTunnelInfo vpn_tunnel = 11; + // Display information of an interconnect attachment. + InterconnectAttachmentInfo interconnect_attachment = 35; + // Display information of a VPC connector. VpcConnectorInfo vpc_connector = 21; @@ -316,6 +326,19 @@ message Step { // For display only. Metadata associated with a Compute Engine instance. message InstanceInfo { + // The status of the instance. We treat all states other than "RUNNING" as + // not running. + enum Status { + // Default unspecified value. + STATUS_UNSPECIFIED = 0; + + // The instance is running. + RUNNING = 1; + + // The instance has any status other than "RUNNING". + NOT_RUNNING = 2; + } + // Name of a Compute Engine instance. string display_name = 1; @@ -342,10 +365,16 @@ message InstanceInfo { // URI of the PSC network attachment the NIC is attached to (if relevant). string psc_network_attachment_uri = 9; + + // Indicates whether the Compute Engine instance is running. + // Deprecated: use the `status` field instead. + bool running = 10 [deprecated = true]; + + // The status of the instance. + Status status = 11; } // For display only. Metadata associated with a Compute Engine network. -// Next ID: 7 message NetworkInfo { // Name of a Compute Engine network. string display_name = 1; @@ -419,6 +448,19 @@ message FirewallInfo { ANALYSIS_SKIPPED = 102; } + // Target type of the firewall rule. + enum TargetType { + // Target type is not specified. In this case we treat the rule as applying + // to INSTANCES target type. + TARGET_TYPE_UNSPECIFIED = 0; + + // Firewall rule applies to instances. + INSTANCES = 1; + + // Firewall rule applies to internal managed load balancers. + INTERNAL_MANAGED_LB = 2; + } + // The display name of the firewall rule. This field might be empty for // firewall policy rules. string display_name = 1; @@ -459,6 +501,14 @@ message FirewallInfo { // The firewall rule's type. FirewallRuleType firewall_rule_type = 10; + + // The priority of the firewall policy that this rule is associated with. + // This field is not applicable to VPC firewall rules and implied VPC firewall + // rules. + int32 policy_priority = 12; + + // Target type of the firewall rule. + TargetType target_type = 13; } // For display only. Metadata associated with a Compute Engine route. @@ -544,6 +594,9 @@ message RouteInfo { // Next hop is an NCC hub. This scenario only happens when the user doesn't // have permissions to the project where the next hop resource is located. NEXT_HOP_NCC_HUB = 12; + + // Next hop is Secure Web Proxy Gateway. + SECURE_WEB_PROXY_GATEWAY = 13; } // Indicates where routes are applicable. @@ -826,6 +879,18 @@ message LoadBalancerBackend { repeated string health_check_blocking_firewall_rules = 5; } +// For display only. Metadata associated with a hybrid subnet. +message HybridSubnetInfo { + // Name of a hybrid subnet. + string display_name = 1; + + // URI of a hybrid subnet. + string uri = 2; + + // Name of a Google Cloud region where the hybrid subnet is configured. + string region = 3; +} + // For display only. Metadata associated with a Compute Engine VPN gateway. message VpnGatewayInfo { // Name of a VPN gateway. @@ -895,6 +960,51 @@ message VpnTunnelInfo { RoutingType routing_type = 9; } +// For display only. Metadata associated with an Interconnect attachment. +message InterconnectAttachmentInfo { + // What type of interconnect attachment this is. + enum Type { + // Unspecified type. + TYPE_UNSPECIFIED = 0; + + // Attachment to a dedicated interconnect. + DEDICATED = 1; + + // Attachment to a partner interconnect, created by the customer. + PARTNER = 2; + + // Attachment to a partner interconnect, created by the partner. + PARTNER_PROVIDER = 3; + + // Attachment to a L2 interconnect, created by the customer. + L2_DEDICATED = 4; + } + + // Name of an Interconnect attachment. + string display_name = 1; + + // URI of an Interconnect attachment. + string uri = 2; + + // URI of the Interconnect where the Interconnect attachment is + // configured. + string interconnect_uri = 3; + + // Name of a Google Cloud region where the Interconnect attachment is + // configured. + string region = 4; + + // URI of the Cloud Router to be used for dynamic routing. + string cloud_router_uri = 5; + + // The type of interconnect attachment this is. + Type type = 6; + + // Appliance IP address that was matched for L2_DEDICATED attachments. + string l2_attachment_matched_ip_address = 7 + [(google.api.field_info).format = IPV4_OR_IPV6]; +} + // For display only. The specification of the endpoints for the test. // EndpointInfo is derived from source and destination Endpoint and validated // by the backend data plane model. @@ -986,6 +1096,37 @@ message DeliverInfo { REDIS_CLUSTER = 17; } + // Recognized type of a Google Service. + enum GoogleServiceType { + // Unspecified Google Service. + GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + + // Identity aware proxy. + // https://cloud.google.com/iap/docs/using-tcp-forwarding + IAP = 1; + + // One of two services sharing IP ranges: + // * Load Balancer proxy + // * Centralized Health Check prober + // https://cloud.google.com/load-balancing/docs/firewall-rules + GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + + // Connectivity from Cloud DNS to forwarding targets or alternate name + // servers that use private routing. + // https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules + // https://cloud.google.com/dns/docs/policies#firewall-rules + CLOUD_DNS = 3; + + // private.googleapis.com and restricted.googleapis.com + PRIVATE_GOOGLE_ACCESS = 4; + + // Google API via Private Service Connect. + // https://cloud.google.com/vpc/docs/configure-private-service-connect-apis + // Google API via Serverless VPC Access. + // https://cloud.google.com/vpc/docs/serverless-vpc-access + SERVERLESS_VPC_ACCESS = 5; + } + // Target type where the packet is delivered to. Target target = 1; @@ -1001,6 +1142,10 @@ message DeliverInfo { // PSC Google API target the packet is delivered to (if applicable). string psc_google_api_target = 5; + + // Recognized type of a Google Service the packet is delivered to (if + // applicable). + GoogleServiceType google_service_type = 6; } // Details of the final state "forward" and associated resource. @@ -1036,6 +1181,9 @@ message ForwardInfo { // Forwarded to a router appliance. ROUTER_APPLIANCE = 9; + + // Forwarded to a Secure Web Proxy Gateway. + SECURE_WEB_PROXY_GATEWAY = 10; } // Target type where this packet is forwarded to. @@ -1162,10 +1310,14 @@ message AbortInfo { // Aborted because expected route configuration was missing. ROUTE_CONFIG_NOT_FOUND = 27; - // Aborted because a PSC endpoint selection for the Google-managed service + // Aborted because PSC endpoint selection for the Google-managed service // is ambiguous (several PSC endpoints satisfy test input). GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19; + // Aborted because endpoint selection for the Google-managed service is + // ambiguous (several endpoints satisfy test input). + GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; + // Aborted because tests with a PSC-based Cloud SQL instance as a source are // not supported. SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; @@ -1195,6 +1347,10 @@ message AbortInfo { // Aborted because the source endpoint is a Cloud Run revision with direct // VPC access enabled, but there are no reserved serverless IP ranges. NO_SERVERLESS_IP_RANGES = 37; + + // Aborted because the used protocol is not supported for the used IP + // version. + IP_VERSION_PROTOCOL_MISMATCH = 40; } // Causes that the analysis is aborted. @@ -1265,9 +1421,14 @@ message DropInfo { // rule of the internal passthrough load balancer). ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID = 53; - // Packet is sent from the Internet to the private IPv6 address. + // Packet is sent from the Internet or Google service to the private IPv6 + // address. NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; + // Packet is sent from the external IPv6 source address of an instance to + // the private IPv6 address of an instance. + NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; + // The packet does not match a policy-based VPN tunnel local selector. VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH = 45; @@ -1277,8 +1438,9 @@ message DropInfo { // Packet with internal destination address sent to the internet gateway. PRIVATE_TRAFFIC_TO_INTERNET = 7; - // Instance with only an internal IP address tries to access Google API and - // services, but private Google access is not enabled in the subnet. + // Endpoint with only an internal IP address tries to access Google API and + // services, but Private Google Access is not enabled in the subnet or is + // not applicable. PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; // Source endpoint tries to access Google API and services through the VPN @@ -1286,9 +1448,8 @@ message DropInfo { // in the source endpoint network. PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED = 47; - // Instance with only an internal IP address tries to access external hosts, - // but Cloud NAT is not enabled in the subnet, unless special configurations - // on a VM allow this connection. + // Endpoint with only an internal IP address tries to access external hosts, + // but there is no matching Cloud NAT gateway in the subnet. NO_EXTERNAL_ADDRESS = 9; // Destination internal address cannot be resolved to a known target. If @@ -1563,6 +1724,47 @@ message DropInfo { // Packet with destination IP address within the reserved NAT64 range is // dropped due to matching a route of an unsupported type. UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION = 88; + + // Packet could be dropped because hybrid endpoint like a VPN gateway or + // Interconnect is not allowed to send traffic to the Internet. + TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; + + // Packet with destination IP address within the reserved NAT64 range is + // dropped due to no matching NAT gateway in the subnet. + NO_MATCHING_NAT64_GATEWAY = 90; + + // Packet is dropped due to being sent to a backend of a passthrough load + // balancer that doesn't use the same IP version as the frontend. + LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; + + // Packet from the unknown NCC network is dropped due to no known route + // from the source network to the destination IP address. + NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; + + // Packet is dropped by Cloud NAT due to using an unsupported protocol. + CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; + + // Packet is dropped due to using an unsupported protocol (any other than + // UDP) for L2 Interconnect. + L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; + + // Packet is dropped due to using an unsupported port (any other than + // 6081) for L2 Interconnect. + L2_INTERCONNECT_UNSUPPORTED_PORT = 101; + + // Packet is dropped due to destination IP not matching the appliance + // mapping IPs configured on the L2 Interconnect attachment. + L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; + + // Packet could be dropped because it matches a route associated with an NCC + // spoke in the hybrid subnet context, but such a configuration is not + // supported. + NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; + + // Packet is dropped because the region of the hybrid subnet is different + // from the region of the next hop of the route matched within this hybrid + // subnet. + HYBRID_SUBNET_REGION_MISMATCH = 105; } // Cause that the packet is dropped. @@ -1579,6 +1781,12 @@ message DropInfo { // Region of the dropped packet (if relevant). string region = 5; + + // Geolocation (region code) of the source IP address (if relevant). + string source_geolocation_code = 6; + + // Geolocation (region code) of the destination IP address (if relevant). + string destination_geolocation_code = 7; } // For display only. Metadata associated with a Google Kubernetes Engine (GKE) @@ -1771,6 +1979,9 @@ message NatInfo { // Private service connect NAT. PRIVATE_SERVICE_CONNECT = 4; + + // GKE Pod IP address masquerading. + GKE_POD_IP_MASQUERADING = 5; } // Type of NAT. diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs.proto index 5b21d87938b4..f2ff4a3488a0 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs.proto @@ -65,8 +65,8 @@ service VpcFlowLogsService { // ID is different), the creation fails. // Notes: // - // 1. Creating a configuration with state=DISABLED will fail - // 2. The following fields are not considered as `settings` for the purpose + // 1. Creating a configuration with `state=DISABLED` will fail + // 2. The following fields are not considered as settings for the purpose // of the check mentioned above, therefore - creating another configuration // with the same fields but different values for the following fields will // fail as well: @@ -94,8 +94,8 @@ service VpcFlowLogsService { // ID is different), the creation fails. // Notes: // - // 1. Updating a configuration with state=DISABLED will fail. - // 2. The following fields are not considered as `settings` for the purpose + // 1. Updating a configuration with `state=DISABLED` will fail. + // 2. The following fields are not considered as settings for the purpose // of the check mentioned above, therefore - updating another configuration // with the same fields but different values for the following fields will // fail as well: @@ -129,12 +129,133 @@ service VpcFlowLogsService { metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata" }; } + + // QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC + // Flow Logs configurations applicable to the specified project. + rpc QueryOrgVpcFlowLogsConfigs(QueryOrgVpcFlowLogsConfigsRequest) + returns (QueryOrgVpcFlowLogsConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs" + }; + } + + // ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs + // configurations applicable to a specified resource. + rpc ShowEffectiveFlowLogsConfigs(ShowEffectiveFlowLogsConfigsRequest) + returns (ShowEffectiveFlowLogsConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs" + }; + } +} + +// The VPC Flow Logs organization service in the Google Cloud Network Management +// API provides organization level configurations that generate Flow Logs. The +// service and the configuration resources created using this service are +// global. +service OrganizationVpcFlowLogsService { + option (google.api.default_host) = "networkmanagement.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists all `VpcFlowLogsConfigs` in a given organization. + rpc ListVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest) + returns (ListVpcFlowLogsConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a specific `VpcFlowLogsConfig`. + rpc GetVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest) + returns (VpcFlowLogsConfig) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new `VpcFlowLogsConfig`. + // If a configuration with the exact same settings already exists (even if the + // ID is different), the creation fails. + // Notes: + // + // 1. Creating a configuration with `state=DISABLED` will fail + // 2. The following fields are not considered as settings for the purpose + // of the check mentioned above, therefore - creating another configuration + // with the same fields but different values for the following fields will + // fail as well: + // * name + // * create_time + // * update_time + // * labels + // * description + rpc CreateVpcFlowLogsConfig(CreateVpcFlowLogsConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs" + body: "vpc_flow_logs_config" + }; + option (google.api.method_signature) = + "parent,vpc_flow_logs_config,vpc_flow_logs_config_id"; + option (google.longrunning.operation_info) = { + response_type: "VpcFlowLogsConfig" + metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata" + }; + } + + // Updates an existing `VpcFlowLogsConfig`. + // If a configuration with the exact same settings already exists (even if the + // ID is different), the creation fails. + // Notes: + // + // 1. Updating a configuration with `state=DISABLED` will fail + // 2. The following fields are not considered as settings for the purpose + // of the check mentioned above, therefore - updating another configuration + // with the same fields but different values for the following fields will + // fail as well: + // * name + // * create_time + // * update_time + // * labels + // * description + rpc UpdateVpcFlowLogsConfig(UpdateVpcFlowLogsConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{vpc_flow_logs_config.name=organizations/*/locations/*/vpcFlowLogsConfigs/*}" + body: "vpc_flow_logs_config" + }; + option (google.api.method_signature) = "vpc_flow_logs_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "VpcFlowLogsConfig" + metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata" + }; + } + + // Deletes a specific `VpcFlowLogsConfig`. + rpc DeleteVpcFlowLogsConfig(DeleteVpcFlowLogsConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata" + }; + } } // Request for the `ListVpcFlowLogsConfigs` method. message ListVpcFlowLogsConfigsRequest { - // Required. The parent resource of the VpcFlowLogsConfig: - // `projects/{project_id}/locations/global` + // Required. The parent resource of the VpcFlowLogsConfig, + // in one of the following formats: + // + // - For project-level resourcs: `projects/{project_id}/locations/global` + // + // - For organization-level resources: + // `organizations/{organization_id}/locations/global` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -172,8 +293,14 @@ message ListVpcFlowLogsConfigsResponse { // Request for the `GetVpcFlowLogsConfig` method. message GetVpcFlowLogsConfigRequest { - // Required. `VpcFlowLogsConfig` resource name using the form: - // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + // Required. The resource name of the VpcFlowLogsConfig, + // in one of the following formats: + // + // - For project-level resources: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For organization-level resources: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -184,8 +311,13 @@ message GetVpcFlowLogsConfigRequest { // Request for the `CreateVpcFlowLogsConfig` method. message CreateVpcFlowLogsConfigRequest { - // Required. The parent resource of the VPC Flow Logs configuration to create: - // `projects/{project_id}/locations/global` + // Required. The parent resource of the VpcFlowLogsConfig to create, + // in one of the following formats: + // + // - For project-level resources: `projects/{project_id}/locations/global` + // + // - For organization-level resources: + // `organizations/{organization_id}/locations/global` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -210,6 +342,12 @@ message CreateVpcFlowLogsConfigRequest { message UpdateVpcFlowLogsConfigRequest { // Required. Mask of fields to update. At least one path must be supplied in // this field. + // For example, to change the state of the configuration to ENABLED, specify + // `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: + // `vpc_flow_logs_config = { + // name = + // "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" + // state = "ENABLED" }` google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; @@ -220,8 +358,14 @@ message UpdateVpcFlowLogsConfigRequest { // Request for the `DeleteVpcFlowLogsConfig` method. message DeleteVpcFlowLogsConfigRequest { - // Required. `VpcFlowLogsConfig` resource name using the form: - // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + // Required. The resource name of the VpcFlowLogsConfig, + // in one of the following formats: + // + // - For a project-level resource: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For an organization-level resource: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -229,3 +373,82 @@ message DeleteVpcFlowLogsConfigRequest { } ]; } + +// Request for the `QueryOrgVpcFlowLogsConfigs` method. +message QueryOrgVpcFlowLogsConfigsRequest { + // Required. The parent resource of the VpcFlowLogsConfig, specified in + // the following format: `projects/{project_id}/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + } + ]; + + // Optional. Number of `VpcFlowLogsConfigs` to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token from an earlier query, as returned in + // `next_page_token`. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + // A filter expression must use the supported [CEL logic operators] + // (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the `QueryVpcFlowLogsConfigs` method. +message QueryOrgVpcFlowLogsConfigsResponse { + // List of VPC Flow Log configurations. + repeated VpcFlowLogsConfig vpc_flow_logs_configs = 1; + + // Page token to fetch the next set of configurations. + string next_page_token = 2; + + // Locations that could not be reached (when querying all locations with `-`). + repeated string unreachable = 3; +} + +// Request for the `ShowEffectiveFlowLogsConfigs` method. +message ShowEffectiveFlowLogsConfigsRequest { + // Required. The parent resource of the VpcFlowLogsConfig, specified in + // the following format: `projects/{project_id}/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + } + ]; + + // Required. The resource to get the effective VPC Flow Logs configuration + // for. The resource must belong to the same project as the parent. The + // resource must be a network, subnetwork, interconnect attachment, VPN + // tunnel, or a project. + string resource = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token from an earlier query, as returned in + // `next_page_token`. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter + // expression. A filter expression must use the supported [CEL logic + // operators] + // (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the `ShowEffectiveFlowLogsConfigs` method. +message ShowEffectiveFlowLogsConfigsResponse { + // List of Effective Vpc Flow Logs configurations. + repeated EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + + // Page token to fetch the next set of configurations. + string next_page_token = 2; + + // Locations that could not be reached (when querying all locations with `-`). + repeated string unreachable = 3; +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto index b0b83f2655b8..36c65735ff1a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto @@ -27,18 +27,26 @@ option java_outer_classname = "VpcFlowLogsConfigProto"; option java_package = "com.google.cloud.networkmanagement.v1"; option php_namespace = "Google\\Cloud\\NetworkManagement\\V1"; option ruby_package = "Google::Cloud::NetworkManagement::V1"; +option (google.api.resource_definition) = { + type: "networkmanagement.googleapis.com/OrganizationLocation" + pattern: "organizations/{organization}/locations/{location}" +}; + +// Definition of a VpcFlowLogsConfig resource, which contains the configuration +// for VPC Flow Logs. +// LINT: LEGACY_NAMES // A configuration to generate VPC Flow Logs. message VpcFlowLogsConfig { option (google.api.resource) = { type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" pattern: "projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}" + pattern: "organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}" plural: "vpcFlowLogsConfigs" singular: "vpcFlowLogsConfig" }; // Determines whether this configuration will be generating logs. - // Setting state=DISABLED will pause the log generation for this config. enum State { // If not specified, will default to ENABLED. STATE_UNSPECIFIED = 0; @@ -89,8 +97,23 @@ message VpcFlowLogsConfig { CUSTOM_METADATA = 3; } - // Optional states of the target resource that are used as part of the - // diagnostic bit. + // Determines whether to include cross project annotations in the logs. + // Project configurations will always have CROSS_PROJECT_METADATA_DISABLED. + enum CrossProjectMetadata { + // If not specified, the default is CROSS_PROJECT_METADATA_ENABLED. + CROSS_PROJECT_METADATA_UNSPECIFIED = 0; + + // When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be + // included in the logs. + CROSS_PROJECT_METADATA_ENABLED = 1; + + // When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will + // not be included in the logs. + CROSS_PROJECT_METADATA_DISABLED = 2; + } + + // Output only. Indicates whether the target resource exists, for diagnostic + // purposes. enum TargetResourceState { // Unspecified target resource state. TARGET_RESOURCE_STATE_UNSPECIFIED = 0; @@ -102,8 +125,14 @@ message VpcFlowLogsConfig { TARGET_RESOURCE_DOES_NOT_EXIST = 2; } - // Identifier. Unique name of the configuration using the form: - // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // Identifier. Unique name of the configuration. The name can have one of the + // following forms: + // + // - For project-level configurations: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For organization-level configurations: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. The user-supplied description of the VPC Flow Logs configuration. @@ -111,7 +140,8 @@ message VpcFlowLogsConfig { optional string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The state of the VPC Flow Log configuration. Default value is - // ENABLED. When creating a new configuration, it must be enabled. + // ENABLED. When creating a new configuration, it must be enabled. Setting + // state=DISABLED will pause the log generation for this config. optional State state = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The aggregation interval for the logs. Default value is @@ -138,15 +168,31 @@ message VpcFlowLogsConfig { // logged. optional string filter_expr = 8 [(google.api.field_behavior) = OPTIONAL]; - // Output only. A diagnostic bit - describes the state of the configured - // target resource for diagnostic purposes. + // Optional. Determines whether to include cross project annotations in the + // logs. This field is available only for organization configurations. If not + // specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + optional CrossProjectMetadata cross_project_metadata = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Describes the state of the configured target resource for + // diagnostic purposes. optional TargetResourceState target_resource_state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Reference to the resource of the config scope. That is, the scope from // which traffic is logged. The target resource must belong to the same // project as the configuration. + // This field is not supported for organization level configurations. oneof target_resource { + // Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + // within the network. + // Format: projects/{project_id}/global/networks/{name} + string network = 100; + + // Traffic will be logged from VMs within the subnetwork. + // Format: projects/{project_id}/regions/{region}/subnetworks/{name} + string subnet = 101; + // Traffic will be logged from the Interconnect Attachment. // Format: // projects/{project_id}/regions/{region}/interconnectAttachments/{name} @@ -168,3 +214,104 @@ message VpcFlowLogsConfig { google.protobuf.Timestamp update_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// A configuration to generate a response for GetEffectiveVpcFlowLogsConfig +// request. +message EffectiveVpcFlowLogsConfig { + // The scope for this flow log configuration. + enum Scope { + // Scope is unspecified. + SCOPE_UNSPECIFIED = 0; + + // Target resource is a subnet (Network Management API). + SUBNET = 1; + + // Target resource is a subnet, and the config originates from the Compute + // API. + COMPUTE_API_SUBNET = 2; + + // Target resource is a network. + NETWORK = 3; + + // Target resource is a VPN tunnel. + VPN_TUNNEL = 4; + + // Target resource is an interconnect attachment. + INTERCONNECT_ATTACHMENT = 5; + + // Configuration applies to an entire organization. + ORGANIZATION = 6; + } + + // Unique name of the configuration. The name can have one of the following + // forms: + // + // - For project-level configurations: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For organization-level configurations: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For a Compute config, the name will be the path of the subnet: + // `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` + string name = 1; + + // The state of the VPC Flow Log configuration. Default value is ENABLED. + // When creating a new configuration, it must be enabled. + // Setting state=DISABLED will pause the log generation for this config. + optional VpcFlowLogsConfig.State state = 3; + + // The aggregation interval for the logs. Default value is INTERVAL_5_SEC. + optional VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + + // The value of the field must be in (0, 1]. The sampling rate of VPC Flow + // Logs where 1.0 means all collected logs are reported. + // Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC + // Flow Logs, use the state field instead. + // Default value is 1.0. + optional float flow_sampling = 5; + + // Configures whether all, none or a subset of metadata fields should be + // added to the reported VPC flow logs. + // Default value is INCLUDE_ALL_METADATA. + optional VpcFlowLogsConfig.Metadata metadata = 6; + + // Custom metadata fields to include in the reported VPC flow logs. + // Can only be specified if "metadata" was set to CUSTOM_METADATA. + repeated string metadata_fields = 7; + + // Export filter used to define which VPC Flow Logs should be logged. + optional string filter_expr = 8; + + // Determines whether to include cross project annotations in the logs. + // This field is available only for organization configurations. If not + // specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + optional VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + + // Reference to the resource of the config scope. That is, the scope from + // which traffic is logged. The target resource must belong to the same + // project as the configuration. + // This field is not supported for organization level configurations. + oneof target_resource { + // Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + // within the network. + // Format: projects/{project_id}/global/networks/{name} + string network = 100; + + // Traffic will be logged from VMs within the subnetwork. + // Format: projects/{project_id}/regions/{region}/subnetworks/{name} + string subnet = 101; + + // Traffic will be logged from the Interconnect Attachment. + // Format: + // projects/{project_id}/regions/{region}/interconnectAttachments/{name} + string interconnect_attachment = 102; + + // Traffic will be logged from the VPN Tunnel. + // Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + string vpn_tunnel = 103; + } + + // Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). + optional Scope scope = 12; +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java index 87681702fd60..71c936d72081 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java @@ -499,6 +499,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * NO_SERVERLESS_IP_RANGES = 37; */ NO_SERVERLESS_IP_RANGES(37), + /** + * + * + *
                                              +     * Aborted because the used protocol is not supported for the used IP
                                              +     * version.
                                              +     * 
                                              + * + * IP_VERSION_PROTOCOL_MISMATCH = 40; + */ + IP_VERSION_PROTOCOL_MISMATCH(40), UNRECOGNIZED(-1), ; @@ -954,6 +965,18 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_SERVERLESS_IP_RANGES_VALUE = 37; + /** + * + * + *
                                              +     * Aborted because the used protocol is not supported for the used IP
                                              +     * version.
                                              +     * 
                                              + * + * IP_VERSION_PROTOCOL_MISMATCH = 40; + */ + public static final int IP_VERSION_PROTOCOL_MISMATCH_VALUE = 40; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1054,6 +1077,8 @@ public static Cause forNumber(int value) { return UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG; case 37: return NO_SERVERLESS_IP_RANGES; + case 40: + return IP_VERSION_PROTOCOL_MISMATCH; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java index 86c5f1dbe37e..0f2ebd2eb792 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java @@ -45,6 +45,8 @@ private DropInfo() { sourceIp_ = ""; destinationIp_ = ""; region_ = ""; + sourceGeolocationCode_ = ""; + destinationGeolocationCode_ = ""; } @java.lang.Override @@ -1099,6 +1101,73 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; */ NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION(97), + /** + * + * + *
                                              +     * Packet is dropped by Cloud NAT due to using an unsupported protocol.
                                              +     * 
                                              + * + * CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; + */ + CLOUD_NAT_PROTOCOL_UNSUPPORTED(99), + /** + * + * + *
                                              +     * Packet is dropped due to using an unsupported protocol (any other than
                                              +     * UDP) for L2 Interconnect.
                                              +     * 
                                              + * + * L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; + */ + L2_INTERCONNECT_UNSUPPORTED_PROTOCOL(100), + /** + * + * + *
                                              +     * Packet is dropped due to using an unsupported port (any other than
                                              +     * 6081) for L2 Interconnect.
                                              +     * 
                                              + * + * L2_INTERCONNECT_UNSUPPORTED_PORT = 101; + */ + L2_INTERCONNECT_UNSUPPORTED_PORT(101), + /** + * + * + *
                                              +     * Packet is dropped due to destination IP not matching the appliance
                                              +     * mapping IPs configured on the L2 Interconnect attachment.
                                              +     * 
                                              + * + * L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; + */ + L2_INTERCONNECT_DESTINATION_IP_MISMATCH(102), + /** + * + * + *
                                              +     * Packet could be dropped because it matches a route associated with an NCC
                                              +     * spoke in the hybrid subnet context, but such a configuration is not
                                              +     * supported.
                                              +     * 
                                              + * + * NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; + */ + NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED(104), + /** + * + * + *
                                              +     * Packet is dropped because the region of the hybrid subnet is different
                                              +     * from the region of the next hop of the route matched within this hybrid
                                              +     * subnet.
                                              +     * 
                                              + * + * HYBRID_SUBNET_REGION_MISMATCH = 105; + */ + HYBRID_SUBNET_REGION_MISMATCH(105), UNRECOGNIZED(-1), ; @@ -2216,6 +2285,79 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION_VALUE = 97; + /** + * + * + *
                                              +     * Packet is dropped by Cloud NAT due to using an unsupported protocol.
                                              +     * 
                                              + * + * CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; + */ + public static final int CLOUD_NAT_PROTOCOL_UNSUPPORTED_VALUE = 99; + + /** + * + * + *
                                              +     * Packet is dropped due to using an unsupported protocol (any other than
                                              +     * UDP) for L2 Interconnect.
                                              +     * 
                                              + * + * L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; + */ + public static final int L2_INTERCONNECT_UNSUPPORTED_PROTOCOL_VALUE = 100; + + /** + * + * + *
                                              +     * Packet is dropped due to using an unsupported port (any other than
                                              +     * 6081) for L2 Interconnect.
                                              +     * 
                                              + * + * L2_INTERCONNECT_UNSUPPORTED_PORT = 101; + */ + public static final int L2_INTERCONNECT_UNSUPPORTED_PORT_VALUE = 101; + + /** + * + * + *
                                              +     * Packet is dropped due to destination IP not matching the appliance
                                              +     * mapping IPs configured on the L2 Interconnect attachment.
                                              +     * 
                                              + * + * L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; + */ + public static final int L2_INTERCONNECT_DESTINATION_IP_MISMATCH_VALUE = 102; + + /** + * + * + *
                                              +     * Packet could be dropped because it matches a route associated with an NCC
                                              +     * spoke in the hybrid subnet context, but such a configuration is not
                                              +     * supported.
                                              +     * 
                                              + * + * NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; + */ + public static final int NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED_VALUE = 104; + + /** + * + * + *
                                              +     * Packet is dropped because the region of the hybrid subnet is different
                                              +     * from the region of the next hop of the route matched within this hybrid
                                              +     * subnet.
                                              +     * 
                                              + * + * HYBRID_SUBNET_REGION_MISMATCH = 105; + */ + public static final int HYBRID_SUBNET_REGION_MISMATCH_VALUE = 105; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2426,6 +2568,18 @@ public static Cause forNumber(int value) { return LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH; case 97: return NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION; + case 99: + return CLOUD_NAT_PROTOCOL_UNSUPPORTED; + case 100: + return L2_INTERCONNECT_UNSUPPORTED_PROTOCOL; + case 101: + return L2_INTERCONNECT_UNSUPPORTED_PORT; + case 102: + return L2_INTERCONNECT_DESTINATION_IP_MISMATCH; + case 104: + return NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED; + case 105: + return HYBRID_SUBNET_REGION_MISMATCH; default: return null; } @@ -2732,6 +2886,112 @@ public com.google.protobuf.ByteString getRegionBytes() { } } + public static final int SOURCE_GEOLOCATION_CODE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceGeolocationCode_ = ""; + + /** + * + * + *
                                              +   * Geolocation (region code) of the source IP address (if relevant).
                                              +   * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The sourceGeolocationCode. + */ + @java.lang.Override + public java.lang.String getSourceGeolocationCode() { + java.lang.Object ref = sourceGeolocationCode_; + 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(); + sourceGeolocationCode_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Geolocation (region code) of the source IP address (if relevant).
                                              +   * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The bytes for sourceGeolocationCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceGeolocationCodeBytes() { + java.lang.Object ref = sourceGeolocationCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGeolocationCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_GEOLOCATION_CODE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationGeolocationCode_ = ""; + + /** + * + * + *
                                              +   * Geolocation (region code) of the destination IP address (if relevant).
                                              +   * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The destinationGeolocationCode. + */ + @java.lang.Override + public java.lang.String getDestinationGeolocationCode() { + java.lang.Object ref = destinationGeolocationCode_; + 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(); + destinationGeolocationCode_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Geolocation (region code) of the destination IP address (if relevant).
                                              +   * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The bytes for destinationGeolocationCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationGeolocationCodeBytes() { + java.lang.Object ref = destinationGeolocationCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationGeolocationCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2763,6 +3023,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, region_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceGeolocationCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sourceGeolocationCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationGeolocationCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, destinationGeolocationCode_); + } getUnknownFields().writeTo(output); } @@ -2789,6 +3055,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceGeolocationCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sourceGeolocationCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationGeolocationCode_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(7, destinationGeolocationCode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2810,6 +3083,9 @@ public boolean equals(final java.lang.Object obj) { if (!getSourceIp().equals(other.getSourceIp())) return false; if (!getDestinationIp().equals(other.getDestinationIp())) return false; if (!getRegion().equals(other.getRegion())) return false; + if (!getSourceGeolocationCode().equals(other.getSourceGeolocationCode())) return false; + if (!getDestinationGeolocationCode().equals(other.getDestinationGeolocationCode())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2831,6 +3107,10 @@ public int hashCode() { hash = (53 * hash) + getDestinationIp().hashCode(); hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + SOURCE_GEOLOCATION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSourceGeolocationCode().hashCode(); + hash = (37 * hash) + DESTINATION_GEOLOCATION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getDestinationGeolocationCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2976,6 +3256,8 @@ public Builder clear() { sourceIp_ = ""; destinationIp_ = ""; region_ = ""; + sourceGeolocationCode_ = ""; + destinationGeolocationCode_ = ""; return this; } @@ -3027,6 +3309,12 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.DropInfo r if (((from_bitField0_ & 0x00000010) != 0)) { result.region_ = region_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sourceGeolocationCode_ = sourceGeolocationCode_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.destinationGeolocationCode_ = destinationGeolocationCode_; + } } @java.lang.Override @@ -3098,6 +3386,16 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.DropInfo oth bitField0_ |= 0x00000010; onChanged(); } + if (!other.getSourceGeolocationCode().isEmpty()) { + sourceGeolocationCode_ = other.sourceGeolocationCode_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDestinationGeolocationCode().isEmpty()) { + destinationGeolocationCode_ = other.destinationGeolocationCode_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3154,6 +3452,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + sourceGeolocationCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + destinationGeolocationCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3714,6 +4024,228 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object sourceGeolocationCode_ = ""; + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The sourceGeolocationCode. + */ + public java.lang.String getSourceGeolocationCode() { + java.lang.Object ref = sourceGeolocationCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceGeolocationCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The bytes for sourceGeolocationCode. + */ + public com.google.protobuf.ByteString getSourceGeolocationCodeBytes() { + java.lang.Object ref = sourceGeolocationCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGeolocationCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @param value The sourceGeolocationCode to set. + * @return This builder for chaining. + */ + public Builder setSourceGeolocationCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceGeolocationCode_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @return This builder for chaining. + */ + public Builder clearSourceGeolocationCode() { + sourceGeolocationCode_ = getDefaultInstance().getSourceGeolocationCode(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the source IP address (if relevant).
                                              +     * 
                                              + * + * string source_geolocation_code = 6; + * + * @param value The bytes for sourceGeolocationCode to set. + * @return This builder for chaining. + */ + public Builder setSourceGeolocationCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceGeolocationCode_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object destinationGeolocationCode_ = ""; + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The destinationGeolocationCode. + */ + public java.lang.String getDestinationGeolocationCode() { + java.lang.Object ref = destinationGeolocationCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationGeolocationCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The bytes for destinationGeolocationCode. + */ + public com.google.protobuf.ByteString getDestinationGeolocationCodeBytes() { + java.lang.Object ref = destinationGeolocationCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationGeolocationCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @param value The destinationGeolocationCode to set. + * @return This builder for chaining. + */ + public Builder setDestinationGeolocationCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationGeolocationCode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return This builder for chaining. + */ + public Builder clearDestinationGeolocationCode() { + destinationGeolocationCode_ = getDefaultInstance().getDestinationGeolocationCode(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Geolocation (region code) of the destination IP address (if relevant).
                                              +     * 
                                              + * + * string destination_geolocation_code = 7; + * + * @param value The bytes for destinationGeolocationCode to set. + * @return This builder for chaining. + */ + public Builder setDestinationGeolocationCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationGeolocationCode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfoOrBuilder.java index 7a63a35a7636..65bb77fefc1f 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfoOrBuilder.java @@ -153,4 +153,56 @@ public interface DropInfoOrBuilder * @return The bytes for region. */ com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
                                              +   * Geolocation (region code) of the source IP address (if relevant).
                                              +   * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The sourceGeolocationCode. + */ + java.lang.String getSourceGeolocationCode(); + + /** + * + * + *
                                              +   * Geolocation (region code) of the source IP address (if relevant).
                                              +   * 
                                              + * + * string source_geolocation_code = 6; + * + * @return The bytes for sourceGeolocationCode. + */ + com.google.protobuf.ByteString getSourceGeolocationCodeBytes(); + + /** + * + * + *
                                              +   * Geolocation (region code) of the destination IP address (if relevant).
                                              +   * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The destinationGeolocationCode. + */ + java.lang.String getDestinationGeolocationCode(); + + /** + * + * + *
                                              +   * Geolocation (region code) of the destination IP address (if relevant).
                                              +   * 
                                              + * + * string destination_geolocation_code = 7; + * + * @return The bytes for destinationGeolocationCode. + */ + com.google.protobuf.ByteString getDestinationGeolocationCodeBytes(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EffectiveVpcFlowLogsConfig.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EffectiveVpcFlowLogsConfig.java new file mode 100644 index 000000000000..ab43574f0b03 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EffectiveVpcFlowLogsConfig.java @@ -0,0 +1,3906 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
                                              + * A configuration to generate a response for GetEffectiveVpcFlowLogsConfig
                                              + * request.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig} + */ +public final class EffectiveVpcFlowLogsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig) + EffectiveVpcFlowLogsConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EffectiveVpcFlowLogsConfig.newBuilder() to construct. + private EffectiveVpcFlowLogsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EffectiveVpcFlowLogsConfig() { + name_ = ""; + state_ = 0; + aggregationInterval_ = 0; + metadata_ = 0; + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + filterExpr_ = ""; + crossProjectMetadata_ = 0; + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EffectiveVpcFlowLogsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.class, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder.class); + } + + /** + * + * + *
                                              +   * The scope for this flow log configuration.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Scope is unspecified.
                                              +     * 
                                              + * + * SCOPE_UNSPECIFIED = 0; + */ + SCOPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Target resource is a subnet (Network Management API).
                                              +     * 
                                              + * + * SUBNET = 1; + */ + SUBNET(1), + /** + * + * + *
                                              +     * Target resource is a subnet, and the config originates from the Compute
                                              +     * API.
                                              +     * 
                                              + * + * COMPUTE_API_SUBNET = 2; + */ + COMPUTE_API_SUBNET(2), + /** + * + * + *
                                              +     * Target resource is a network.
                                              +     * 
                                              + * + * NETWORK = 3; + */ + NETWORK(3), + /** + * + * + *
                                              +     * Target resource is a VPN tunnel.
                                              +     * 
                                              + * + * VPN_TUNNEL = 4; + */ + VPN_TUNNEL(4), + /** + * + * + *
                                              +     * Target resource is an interconnect attachment.
                                              +     * 
                                              + * + * INTERCONNECT_ATTACHMENT = 5; + */ + INTERCONNECT_ATTACHMENT(5), + /** + * + * + *
                                              +     * Configuration applies to an entire organization.
                                              +     * 
                                              + * + * ORGANIZATION = 6; + */ + ORGANIZATION(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Scope is unspecified.
                                              +     * 
                                              + * + * SCOPE_UNSPECIFIED = 0; + */ + public static final int SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Target resource is a subnet (Network Management API).
                                              +     * 
                                              + * + * SUBNET = 1; + */ + public static final int SUBNET_VALUE = 1; + + /** + * + * + *
                                              +     * Target resource is a subnet, and the config originates from the Compute
                                              +     * API.
                                              +     * 
                                              + * + * COMPUTE_API_SUBNET = 2; + */ + public static final int COMPUTE_API_SUBNET_VALUE = 2; + + /** + * + * + *
                                              +     * Target resource is a network.
                                              +     * 
                                              + * + * NETWORK = 3; + */ + public static final int NETWORK_VALUE = 3; + + /** + * + * + *
                                              +     * Target resource is a VPN tunnel.
                                              +     * 
                                              + * + * VPN_TUNNEL = 4; + */ + public static final int VPN_TUNNEL_VALUE = 4; + + /** + * + * + *
                                              +     * Target resource is an interconnect attachment.
                                              +     * 
                                              + * + * INTERCONNECT_ATTACHMENT = 5; + */ + public static final int INTERCONNECT_ATTACHMENT_VALUE = 5; + + /** + * + * + *
                                              +     * Configuration applies to an entire organization.
                                              +     * 
                                              + * + * ORGANIZATION = 6; + */ + public static final int ORGANIZATION_VALUE = 6; + + 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 Scope 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 Scope forNumber(int value) { + switch (value) { + case 0: + return SCOPE_UNSPECIFIED; + case 1: + return SUBNET; + case 2: + return COMPUTE_API_SUBNET; + case 3: + return NETWORK; + case 4: + return VPN_TUNNEL; + case 5: + return INTERCONNECT_ATTACHMENT; + case 6: + return ORGANIZATION; + 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 Scope findValueByNumber(int number) { + return Scope.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope 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 Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope) + } + + private int bitField0_; + private int targetResourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetResource_; + + public enum TargetResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NETWORK(100), + SUBNET(101), + INTERCONNECT_ATTACHMENT(102), + VPN_TUNNEL(103), + TARGETRESOURCE_NOT_SET(0); + private final int value; + + private TargetResourceCase(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 TargetResourceCase valueOf(int value) { + return forNumber(value); + } + + public static TargetResourceCase forNumber(int value) { + switch (value) { + case 100: + return NETWORK; + case 101: + return SUBNET; + case 102: + return INTERCONNECT_ATTACHMENT; + case 103: + return VPN_TUNNEL; + case 0: + return TARGETRESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetResourceCase getTargetResourceCase() { + return TargetResourceCase.forNumber(targetResourceCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Unique name of the configuration. The name can have one of the following
                                              +   * forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For a Compute config, the name will be the path of the subnet:
                                              +   * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +   * 
                                              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
                                              +   * Unique name of the configuration. The name can have one of the following
                                              +   * forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For a Compute config, the name will be the path of the subnet:
                                              +   * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +   * 
                                              + * + * string name = 1; + * + * @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 STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State getState() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State.UNRECOGNIZED + : result; + } + + public static final int AGGREGATION_INTERVAL_FIELD_NUMBER = 4; + private int aggregationInterval_ = 0; + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return Whether the aggregationInterval field is set. + */ + @java.lang.Override + public boolean hasAggregationInterval() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + @java.lang.Override + public int getAggregationIntervalValue() { + return aggregationInterval_; + } + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The aggregationInterval. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval.forNumber( + aggregationInterval_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval + .UNRECOGNIZED + : result; + } + + public static final int FLOW_SAMPLING_FIELD_NUMBER = 5; + private float flowSampling_ = 0F; + + /** + * + * + *
                                              +   * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +   * Logs where 1.0 means all collected logs are reported.
                                              +   * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +   * Flow Logs, use the state field instead.
                                              +   * Default value is 1.0.
                                              +   * 
                                              + * + * optional float flow_sampling = 5; + * + * @return Whether the flowSampling field is set. + */ + @java.lang.Override + public boolean hasFlowSampling() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +   * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +   * Logs where 1.0 means all collected logs are reported.
                                              +   * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +   * Flow Logs, use the state field instead.
                                              +   * Default value is 1.0.
                                              +   * 
                                              + * + * optional float flow_sampling = 5; + * + * @return The flowSampling. + */ + @java.lang.Override + public float getFlowSampling() { + return flowSampling_; + } + + public static final int METADATA_FIELD_NUMBER = 6; + private int metadata_ = 0; + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The enum numeric value on the wire for metadata. + */ + @java.lang.Override + public int getMetadataValue() { + return metadata_; + } + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata getMetadata() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata.forNumber(metadata_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata.UNRECOGNIZED + : result; + } + + public static final int METADATA_FIELDS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList metadataFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return A list containing the metadataFields. + */ + public com.google.protobuf.ProtocolStringList getMetadataFieldsList() { + return metadataFields_; + } + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return The count of metadataFields. + */ + public int getMetadataFieldsCount() { + return metadataFields_.size(); + } + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + public java.lang.String getMetadataFields(int index) { + return metadataFields_.get(index); + } + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) { + return metadataFields_.getByteString(index); + } + + public static final int FILTER_EXPR_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object filterExpr_ = ""; + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return Whether the filterExpr field is set. + */ + @java.lang.Override + public boolean hasFilterExpr() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return The filterExpr. + */ + @java.lang.Override + public java.lang.String getFilterExpr() { + java.lang.Object ref = filterExpr_; + 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(); + filterExpr_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return The bytes for filterExpr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterExprBytes() { + java.lang.Object ref = filterExpr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filterExpr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CROSS_PROJECT_METADATA_FIELD_NUMBER = 13; + private int crossProjectMetadata_ = 0; + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + @java.lang.Override + public boolean hasCrossProjectMetadata() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + @java.lang.Override + public int getCrossProjectMetadataValue() { + return crossProjectMetadata_; + } + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The crossProjectMetadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata.forNumber( + crossProjectMetadata_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + .UNRECOGNIZED + : result; + } + + public static final int NETWORK_FIELD_NUMBER = 100; + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return Whether the network field is set. + */ + public boolean hasNetwork() { + return targetResourceCase_ == 100; + } + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 100) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 100) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNET_FIELD_NUMBER = 101; + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + public boolean hasSubnet() { + return targetResourceCase_ == 101; + } + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The subnet. + */ + public java.lang.String getSubnet() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 101) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 101) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 102; + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + public boolean hasInterconnectAttachment() { + return targetResourceCase_ == 102; + } + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + public java.lang.String getInterconnectAttachment() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 102) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + public com.google.protobuf.ByteString getInterconnectAttachmentBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 102) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPN_TUNNEL_FIELD_NUMBER = 103; + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + public boolean hasVpnTunnel() { + return targetResourceCase_ == 103; + } + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + public java.lang.String getVpnTunnel() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + 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 (targetResourceCase_ == 103) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + public com.google.protobuf.ByteString getVpnTunnelBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 103) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 12; + private int scope_ = 0; + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope getScope() { + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope result = + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope.forNumber( + scope_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(4, aggregationInterval_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeFloat(5, flowSampling_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(6, metadata_); + } + for (int i = 0; i < metadataFields_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, metadataFields_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, filterExpr_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(12, scope_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(13, crossProjectMetadata_); + } + if (targetResourceCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, targetResource_); + } + if (targetResourceCase_ == 101) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, targetResource_); + } + if (targetResourceCase_ == 102) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, targetResource_); + } + if (targetResourceCase_ == 103) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 103, targetResource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, aggregationInterval_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, flowSampling_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, metadata_); + } + { + int dataSize = 0; + for (int i = 0; i < metadataFields_.size(); i++) { + dataSize += computeStringSizeNoTag(metadataFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getMetadataFieldsList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filterExpr_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, scope_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, crossProjectMetadata_); + } + if (targetResourceCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, targetResource_); + } + if (targetResourceCase_ == 101) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, targetResource_); + } + if (targetResourceCase_ == 102) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, targetResource_); + } + if (targetResourceCase_ == 103) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, targetResource_); + } + 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.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig other = + (com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (state_ != other.state_) return false; + } + if (hasAggregationInterval() != other.hasAggregationInterval()) return false; + if (hasAggregationInterval()) { + if (aggregationInterval_ != other.aggregationInterval_) return false; + } + if (hasFlowSampling() != other.hasFlowSampling()) return false; + if (hasFlowSampling()) { + if (java.lang.Float.floatToIntBits(getFlowSampling()) + != java.lang.Float.floatToIntBits(other.getFlowSampling())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (metadata_ != other.metadata_) return false; + } + if (!getMetadataFieldsList().equals(other.getMetadataFieldsList())) return false; + if (hasFilterExpr() != other.hasFilterExpr()) return false; + if (hasFilterExpr()) { + if (!getFilterExpr().equals(other.getFilterExpr())) return false; + } + if (hasCrossProjectMetadata() != other.hasCrossProjectMetadata()) return false; + if (hasCrossProjectMetadata()) { + if (crossProjectMetadata_ != other.crossProjectMetadata_) return false; + } + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (scope_ != other.scope_) return false; + } + if (!getTargetResourceCase().equals(other.getTargetResourceCase())) return false; + switch (targetResourceCase_) { + case 100: + if (!getNetwork().equals(other.getNetwork())) return false; + break; + case 101: + if (!getSubnet().equals(other.getSubnet())) return false; + break; + case 102: + if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; + break; + case 103: + if (!getVpnTunnel().equals(other.getVpnTunnel())) 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 (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + } + if (hasAggregationInterval()) { + hash = (37 * hash) + AGGREGATION_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + aggregationInterval_; + } + if (hasFlowSampling()) { + hash = (37 * hash) + FLOW_SAMPLING_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFlowSampling()); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + metadata_; + } + if (getMetadataFieldsCount() > 0) { + hash = (37 * hash) + METADATA_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getMetadataFieldsList().hashCode(); + } + if (hasFilterExpr()) { + hash = (37 * hash) + FILTER_EXPR_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpr().hashCode(); + } + if (hasCrossProjectMetadata()) { + hash = (37 * hash) + CROSS_PROJECT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + crossProjectMetadata_; + } + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + } + switch (targetResourceCase_) { + case 100: + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + break; + case 101: + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + break; + case 102: + hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getInterconnectAttachment().hashCode(); + break; + case 103: + hash = (37 * hash) + VPN_TUNNEL_FIELD_NUMBER; + hash = (53 * hash) + getVpnTunnel().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig 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.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig 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.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * A configuration to generate a response for GetEffectiveVpcFlowLogsConfig
                                              +   * request.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig) + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.class, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + aggregationInterval_ = 0; + flowSampling_ = 0F; + metadata_ = 0; + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + filterExpr_ = ""; + crossProjectMetadata_ = 0; + scope_ = 0; + targetResourceCase_ = 0; + targetResource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig build() { + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig buildPartial() { + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig result = + new com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aggregationInterval_ = aggregationInterval_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.flowSampling_ = flowSampling_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metadata_ = metadata_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + metadataFields_.makeImmutable(); + result.metadataFields_ = metadataFields_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.filterExpr_ = filterExpr_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.crossProjectMetadata_ = crossProjectMetadata_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.scope_ = scope_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig result) { + result.targetResourceCase_ = targetResourceCase_; + result.targetResource_ = this.targetResource_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasState()) { + setState(other.getState()); + } + if (other.hasAggregationInterval()) { + setAggregationInterval(other.getAggregationInterval()); + } + if (other.hasFlowSampling()) { + setFlowSampling(other.getFlowSampling()); + } + if (other.hasMetadata()) { + setMetadata(other.getMetadata()); + } + if (!other.metadataFields_.isEmpty()) { + if (metadataFields_.isEmpty()) { + metadataFields_ = other.metadataFields_; + bitField0_ |= 0x00000020; + } else { + ensureMetadataFieldsIsMutable(); + metadataFields_.addAll(other.metadataFields_); + } + onChanged(); + } + if (other.hasFilterExpr()) { + filterExpr_ = other.filterExpr_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCrossProjectMetadata()) { + setCrossProjectMetadata(other.getCrossProjectMetadata()); + } + if (other.hasScope()) { + setScope(other.getScope()); + } + switch (other.getTargetResourceCase()) { + case NETWORK: + { + targetResourceCase_ = 100; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case SUBNET: + { + targetResourceCase_ = 101; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case INTERCONNECT_ATTACHMENT: + { + targetResourceCase_ = 102; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case VPN_TUNNEL: + { + targetResourceCase_ = 103; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case TARGETRESOURCE_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_ |= 0x00000001; + break; + } // case 10 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + aggregationInterval_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 45: + { + flowSampling_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 45 + case 48: + { + metadata_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMetadataFieldsIsMutable(); + metadataFields_.add(s); + break; + } // case 58 + case 66: + { + filterExpr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 96: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 96 + case 104: + { + crossProjectMetadata_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 104 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 100; + targetResource_ = s; + break; + } // case 802 + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 101; + targetResource_ = s; + break; + } // case 810 + case 818: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 102; + targetResource_ = s; + break; + } // case 818 + case 826: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 103; + targetResource_ = s; + break; + } // case 826 + 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 targetResourceCase_ = 0; + private java.lang.Object targetResource_; + + public TargetResourceCase getTargetResourceCase() { + return TargetResourceCase.forNumber(targetResourceCase_); + } + + public Builder clearTargetResource() { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @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; + } + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Unique name of the configuration. The name can have one of the following
                                              +     * forms:
                                              +     *
                                              +     * - For project-level configurations:
                                              +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For organization-level configurations:
                                              +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +     *
                                              +     * - For a Compute config, the name will be the path of the subnet:
                                              +     * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +     * 
                                              + * + * string name = 1; + * + * @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 int state_ = 0; + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State getState() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +     * When creating a new configuration, it must be enabled.
                                              +     * Setting state=DISABLED will pause the log generation for this config.
                                              +     * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private int aggregationInterval_ = 0; + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return Whether the aggregationInterval field is set. + */ + @java.lang.Override + public boolean hasAggregationInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + @java.lang.Override + public int getAggregationIntervalValue() { + return aggregationInterval_; + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @param value The enum numeric value on the wire for aggregationInterval to set. + * @return This builder for chaining. + */ + public Builder setAggregationIntervalValue(int value) { + aggregationInterval_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The aggregationInterval. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval + .forNumber(aggregationInterval_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @param value The aggregationInterval to set. + * @return This builder for chaining. + */ + public Builder setAggregationInterval( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + aggregationInterval_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearAggregationInterval() { + bitField0_ = (bitField0_ & ~0x00000004); + aggregationInterval_ = 0; + onChanged(); + return this; + } + + private float flowSampling_; + + /** + * + * + *
                                              +     * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +     * Logs where 1.0 means all collected logs are reported.
                                              +     * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +     * Flow Logs, use the state field instead.
                                              +     * Default value is 1.0.
                                              +     * 
                                              + * + * optional float flow_sampling = 5; + * + * @return Whether the flowSampling field is set. + */ + @java.lang.Override + public boolean hasFlowSampling() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +     * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +     * Logs where 1.0 means all collected logs are reported.
                                              +     * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +     * Flow Logs, use the state field instead.
                                              +     * Default value is 1.0.
                                              +     * 
                                              + * + * optional float flow_sampling = 5; + * + * @return The flowSampling. + */ + @java.lang.Override + public float getFlowSampling() { + return flowSampling_; + } + + /** + * + * + *
                                              +     * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +     * Logs where 1.0 means all collected logs are reported.
                                              +     * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +     * Flow Logs, use the state field instead.
                                              +     * Default value is 1.0.
                                              +     * 
                                              + * + * optional float flow_sampling = 5; + * + * @param value The flowSampling to set. + * @return This builder for chaining. + */ + public Builder setFlowSampling(float value) { + + flowSampling_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +     * Logs where 1.0 means all collected logs are reported.
                                              +     * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +     * Flow Logs, use the state field instead.
                                              +     * Default value is 1.0.
                                              +     * 
                                              + * + * optional float flow_sampling = 5; + * + * @return This builder for chaining. + */ + public Builder clearFlowSampling() { + bitField0_ = (bitField0_ & ~0x00000008); + flowSampling_ = 0F; + onChanged(); + return this; + } + + private int metadata_ = 0; + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The enum numeric value on the wire for metadata. + */ + @java.lang.Override + public int getMetadataValue() { + return metadata_; + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @param value The enum numeric value on the wire for metadata to set. + * @return This builder for chaining. + */ + public Builder setMetadataValue(int value) { + metadata_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata getMetadata() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata.forNumber( + metadata_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @param value The metadata to set. + * @return This builder for chaining. + */ + public Builder setMetadata( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + metadata_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Configures whether all, none or a subset of metadata fields should be
                                              +     * added to the reported VPC flow logs.
                                              +     * Default value is INCLUDE_ALL_METADATA.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + metadata_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList metadataFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureMetadataFieldsIsMutable() { + if (!metadataFields_.isModifiable()) { + metadataFields_ = new com.google.protobuf.LazyStringArrayList(metadataFields_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return A list containing the metadataFields. + */ + public com.google.protobuf.ProtocolStringList getMetadataFieldsList() { + metadataFields_.makeImmutable(); + return metadataFields_; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return The count of metadataFields. + */ + public int getMetadataFieldsCount() { + return metadataFields_.size(); + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + public java.lang.String getMetadataFields(int index) { + return metadataFields_.get(index); + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) { + return metadataFields_.getByteString(index); + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index to set the value at. + * @param value The metadataFields to set. + * @return This builder for chaining. + */ + public Builder setMetadataFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataFieldsIsMutable(); + metadataFields_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param value The metadataFields to add. + * @return This builder for chaining. + */ + public Builder addMetadataFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataFieldsIsMutable(); + metadataFields_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param values The metadataFields to add. + * @return This builder for chaining. + */ + public Builder addAllMetadataFields(java.lang.Iterable values) { + ensureMetadataFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadataFields_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return This builder for chaining. + */ + public Builder clearMetadataFields() { + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Custom metadata fields to include in the reported VPC flow logs.
                                              +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +     * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param value The bytes of the metadataFields to add. + * @return This builder for chaining. + */ + public Builder addMetadataFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMetadataFieldsIsMutable(); + metadataFields_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object filterExpr_ = ""; + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @return Whether the filterExpr field is set. + */ + public boolean hasFilterExpr() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @return The filterExpr. + */ + public java.lang.String getFilterExpr() { + java.lang.Object ref = filterExpr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filterExpr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @return The bytes for filterExpr. + */ + public com.google.protobuf.ByteString getFilterExprBytes() { + java.lang.Object ref = filterExpr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filterExpr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @param value The filterExpr to set. + * @return This builder for chaining. + */ + public Builder setFilterExpr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filterExpr_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @return This builder for chaining. + */ + public Builder clearFilterExpr() { + filterExpr_ = getDefaultInstance().getFilterExpr(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Export filter used to define which VPC Flow Logs should be logged.
                                              +     * 
                                              + * + * optional string filter_expr = 8; + * + * @param value The bytes for filterExpr to set. + * @return This builder for chaining. + */ + public Builder setFilterExprBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filterExpr_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int crossProjectMetadata_ = 0; + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + @java.lang.Override + public boolean hasCrossProjectMetadata() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + @java.lang.Override + public int getCrossProjectMetadataValue() { + return crossProjectMetadata_; + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @param value The enum numeric value on the wire for crossProjectMetadata to set. + * @return This builder for chaining. + */ + public Builder setCrossProjectMetadataValue(int value) { + crossProjectMetadata_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The crossProjectMetadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + .forNumber(crossProjectMetadata_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @param value The crossProjectMetadata to set. + * @return This builder for chaining. + */ + public Builder setCrossProjectMetadata( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + crossProjectMetadata_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Determines whether to include cross project annotations in the logs.
                                              +     * This field is available only for organization configurations. If not
                                              +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return This builder for chaining. + */ + public Builder clearCrossProjectMetadata() { + bitField0_ = (bitField0_ & ~0x00000080); + crossProjectMetadata_ = 0; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return Whether the network field is set. + */ + @java.lang.Override + public boolean hasNetwork() { + return targetResourceCase_ == 100; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 100) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 100) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 100; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + if (targetResourceCase_ == 100) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +     * within the network.
                                              +     * Format: projects/{project_id}/global/networks/{name}
                                              +     * 
                                              + * + * string network = 100; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 100; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + @java.lang.Override + public boolean hasSubnet() { + return targetResourceCase_ == 101; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return The subnet. + */ + @java.lang.Override + public java.lang.String getSubnet() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 101) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 101) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @param value The subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 101; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @return This builder for chaining. + */ + public Builder clearSubnet() { + if (targetResourceCase_ == 101) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from VMs within the subnetwork.
                                              +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +     * 
                                              + * + * string subnet = 101; + * + * @param value The bytes for subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 101; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasInterconnectAttachment() { + return targetResourceCase_ == 102; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + @java.lang.Override + public java.lang.String getInterconnectAttachment() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 102) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterconnectAttachmentBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 102) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @param value The interconnectAttachment to set. + * @return This builder for chaining. + */ + public Builder setInterconnectAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 102; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @return This builder for chaining. + */ + public Builder clearInterconnectAttachment() { + if (targetResourceCase_ == 102) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the Interconnect Attachment.
                                              +     * Format:
                                              +     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +     * 
                                              + * + * string interconnect_attachment = 102; + * + * @param value The bytes for interconnectAttachment to set. + * @return This builder for chaining. + */ + public Builder setInterconnectAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 102; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + @java.lang.Override + public boolean hasVpnTunnel() { + return targetResourceCase_ == 103; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + @java.lang.Override + public java.lang.String getVpnTunnel() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 103) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpnTunnelBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 103) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @param value The vpnTunnel to set. + * @return This builder for chaining. + */ + public Builder setVpnTunnel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 103; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @return This builder for chaining. + */ + public Builder clearVpnTunnel() { + if (targetResourceCase_ == 103) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Traffic will be logged from the VPN Tunnel.
                                              +     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +     * 
                                              + * + * string vpn_tunnel = 103; + * + * @param value The bytes for vpnTunnel to set. + * @return This builder for chaining. + */ + public Builder setVpnTunnelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 103; + targetResource_ = value; + onChanged(); + return this; + } + + private int scope_ = 0; + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope getScope() { + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope result = + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope.forNumber( + scope_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + scope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +     * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00001000); + scope_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig) + private static final com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig(); + } + + public static com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EffectiveVpcFlowLogsConfig 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.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EffectiveVpcFlowLogsConfigOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EffectiveVpcFlowLogsConfigOrBuilder.java new file mode 100644 index 000000000000..da2bbfd71fa4 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EffectiveVpcFlowLogsConfigOrBuilder.java @@ -0,0 +1,619 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +public interface EffectiveVpcFlowLogsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Unique name of the configuration. The name can have one of the following
                                              +   * forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For a Compute config, the name will be the path of the subnet:
                                              +   * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +   * 
                                              + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Unique name of the configuration. The name can have one of the following
                                              +   * forms:
                                              +   *
                                              +   * - For project-level configurations:
                                              +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For organization-level configurations:
                                              +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
                                              +   *
                                              +   * - For a Compute config, the name will be the path of the subnet:
                                              +   * `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
                                              +   * 
                                              + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                              +   * The state of the VPC Flow Log configuration. Default value is ENABLED.
                                              +   * When creating a new configuration, it must be enabled.
                                              +   * Setting state=DISABLED will pause the log generation for this config.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3; + * + * + * @return The state. + */ + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State getState(); + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return Whether the aggregationInterval field is set. + */ + boolean hasAggregationInterval(); + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + int getAggregationIntervalValue(); + + /** + * + * + *
                                              +   * The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + * + * + * @return The aggregationInterval. + */ + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval(); + + /** + * + * + *
                                              +   * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +   * Logs where 1.0 means all collected logs are reported.
                                              +   * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +   * Flow Logs, use the state field instead.
                                              +   * Default value is 1.0.
                                              +   * 
                                              + * + * optional float flow_sampling = 5; + * + * @return Whether the flowSampling field is set. + */ + boolean hasFlowSampling(); + + /** + * + * + *
                                              +   * The value of the field must be in (0, 1]. The sampling rate of VPC Flow
                                              +   * Logs where 1.0 means all collected logs are reported.
                                              +   * Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC
                                              +   * Flow Logs, use the state field instead.
                                              +   * Default value is 1.0.
                                              +   * 
                                              + * + * optional float flow_sampling = 5; + * + * @return The flowSampling. + */ + float getFlowSampling(); + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The enum numeric value on the wire for metadata. + */ + int getMetadataValue(); + + /** + * + * + *
                                              +   * Configures whether all, none or a subset of metadata fields should be
                                              +   * added to the reported VPC flow logs.
                                              +   * Default value is INCLUDE_ALL_METADATA.
                                              +   * 
                                              + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6; + * + * + * @return The metadata. + */ + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata getMetadata(); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return A list containing the metadataFields. + */ + java.util.List getMetadataFieldsList(); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @return The count of metadataFields. + */ + int getMetadataFieldsCount(); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + java.lang.String getMetadataFields(int index); + + /** + * + * + *
                                              +   * Custom metadata fields to include in the reported VPC flow logs.
                                              +   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
                                              +   * 
                                              + * + * repeated string metadata_fields = 7; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + com.google.protobuf.ByteString getMetadataFieldsBytes(int index); + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return Whether the filterExpr field is set. + */ + boolean hasFilterExpr(); + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return The filterExpr. + */ + java.lang.String getFilterExpr(); + + /** + * + * + *
                                              +   * Export filter used to define which VPC Flow Logs should be logged.
                                              +   * 
                                              + * + * optional string filter_expr = 8; + * + * @return The bytes for filterExpr. + */ + com.google.protobuf.ByteString getFilterExprBytes(); + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + boolean hasCrossProjectMetadata(); + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + int getCrossProjectMetadataValue(); + + /** + * + * + *
                                              +   * Determines whether to include cross project annotations in the logs.
                                              +   * This field is available only for organization configurations. If not
                                              +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + * + * + * @return The crossProjectMetadata. + */ + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return Whether the network field is set. + */ + boolean hasNetwork(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
                                              +   * within the network.
                                              +   * Format: projects/{project_id}/global/networks/{name}
                                              +   * 
                                              + * + * string network = 100; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + boolean hasSubnet(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The subnet. + */ + java.lang.String getSubnet(); + + /** + * + * + *
                                              +   * Traffic will be logged from VMs within the subnetwork.
                                              +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
                                              +   * 
                                              + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + com.google.protobuf.ByteString getSubnetBytes(); + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + boolean hasInterconnectAttachment(); + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + java.lang.String getInterconnectAttachment(); + + /** + * + * + *
                                              +   * Traffic will be logged from the Interconnect Attachment.
                                              +   * Format:
                                              +   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
                                              +   * 
                                              + * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + com.google.protobuf.ByteString getInterconnectAttachmentBytes(); + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + boolean hasVpnTunnel(); + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + java.lang.String getVpnTunnel(); + + /** + * + * + *
                                              +   * Traffic will be logged from the VPN Tunnel.
                                              +   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
                                              +   * 
                                              + * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + com.google.protobuf.ByteString getVpnTunnelBytes(); + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + + /** + * + * + *
                                              +   * Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
                                              +   * 
                                              + * + * + * optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12; + * + * + * @return The scope. + */ + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope getScope(); + + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.TargetResourceCase + getTargetResourceCase(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java index dbac2d088157..012a4978602a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java @@ -2914,8 +2914,8 @@ public com.google.protobuf.ByteString getInstanceBytes() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -2944,8 +2944,8 @@ public java.lang.String getForwardingRule() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -4911,8 +4911,8 @@ public Builder setInstanceBytes(com.google.protobuf.ByteString value) { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -4940,8 +4940,8 @@ public java.lang.String getForwardingRule() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -4969,8 +4969,8 @@ public com.google.protobuf.ByteString getForwardingRuleBytes() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -4997,8 +4997,8 @@ public Builder setForwardingRule(java.lang.String value) { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -5021,8 +5021,8 @@ public Builder clearForwardingRule() { * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java index 3648cbf23e49..e7e9256d5746 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java @@ -99,8 +99,8 @@ public interface EndpointOrBuilder * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; @@ -118,8 +118,8 @@ public interface EndpointOrBuilder * used for protocol forwarding, Private Service Connect and other network * services to provide forwarding information in the control plane. Applicable * only to destination endpoint. Format: - * projects/{project}/global/forwardingRules/{id} or - * projects/{project}/regions/{region}/forwardingRules/{id} + * `projects/{project}/global/forwardingRules/{id}` or + * `projects/{project}/regions/{region}/forwardingRules/{id}` * * * string forwarding_rule = 13; diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java index 2e7f8b00541a..7ee6ce782957 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java @@ -51,6 +51,7 @@ private FirewallInfo() { policy_ = ""; policyUri_ = ""; firewallRuleType_ = 0; + targetType_ = 0; } @java.lang.Override @@ -438,6 +439,169 @@ private FirewallRuleType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType) } + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType} + */ + public enum TargetType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Target type is not specified. In this case we treat the rule as applying
                                              +     * to INSTANCES target type.
                                              +     * 
                                              + * + * TARGET_TYPE_UNSPECIFIED = 0; + */ + TARGET_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Firewall rule applies to instances.
                                              +     * 
                                              + * + * INSTANCES = 1; + */ + INSTANCES(1), + /** + * + * + *
                                              +     * Firewall rule applies to internal managed load balancers.
                                              +     * 
                                              + * + * INTERNAL_MANAGED_LB = 2; + */ + INTERNAL_MANAGED_LB(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Target type is not specified. In this case we treat the rule as applying
                                              +     * to INSTANCES target type.
                                              +     * 
                                              + * + * TARGET_TYPE_UNSPECIFIED = 0; + */ + public static final int TARGET_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Firewall rule applies to instances.
                                              +     * 
                                              + * + * INSTANCES = 1; + */ + public static final int INSTANCES_VALUE = 1; + + /** + * + * + *
                                              +     * Firewall rule applies to internal managed load balancers.
                                              +     * 
                                              + * + * INTERNAL_MANAGED_LB = 2; + */ + public static final int INTERNAL_MANAGED_LB_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 TargetType 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 TargetType forNumber(int value) { + switch (value) { + case 0: + return TARGET_TYPE_UNSPECIFIED; + case 1: + return INSTANCES; + case 2: + return INTERNAL_MANAGED_LB; + 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 TargetType findValueByNumber(int number) { + return TargetType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.FirewallInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final TargetType[] VALUES = values(); + + public static TargetType 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 TargetType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType) + } + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1048,6 +1212,45 @@ public int getPolicyPriority() { return policyPriority_; } + public static final int TARGET_TYPE_FIELD_NUMBER = 13; + private int targetType_ = 0; + + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13; + * + * @return The enum numeric value on the wire for targetType. + */ + @java.lang.Override + public int getTargetTypeValue() { + return targetType_; + } + + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13; + * + * @return The targetType. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType getTargetType() { + com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType result = + com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType.forNumber(targetType_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1102,6 +1305,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (policyPriority_ != 0) { output.writeInt32(12, policyPriority_); } + if (targetType_ + != com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType + .TARGET_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, targetType_); + } getUnknownFields().writeTo(output); } @@ -1160,6 +1369,12 @@ public int getSerializedSize() { if (policyPriority_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, policyPriority_); } + if (targetType_ + != com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType + .TARGET_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, targetType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1188,6 +1403,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPolicyUri().equals(other.getPolicyUri())) return false; if (firewallRuleType_ != other.firewallRuleType_) return false; if (getPolicyPriority() != other.getPolicyPriority()) return false; + if (targetType_ != other.targetType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1227,6 +1443,8 @@ public int hashCode() { hash = (53 * hash) + firewallRuleType_; hash = (37 * hash) + POLICY_PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPolicyPriority(); + hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + targetType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1381,6 +1599,7 @@ public Builder clear() { policyUri_ = ""; firewallRuleType_ = 0; policyPriority_ = 0; + targetType_ = 0; return this; } @@ -1455,6 +1674,9 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.FirewallIn if (((from_bitField0_ & 0x00000800) != 0)) { result.policyPriority_ = policyPriority_; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.targetType_ = targetType_; + } } @java.lang.Override @@ -1567,6 +1789,9 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.FirewallInfo if (other.getPolicyPriority() != 0) { setPolicyPriority(other.getPolicyPriority()); } + if (other.targetType_ != 0) { + setTargetTypeValue(other.getTargetTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1667,6 +1892,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 96 + case 104: + { + targetType_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3102,6 +3333,109 @@ public Builder clearPolicyPriority() { return this; } + private int targetType_ = 0; + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13; + * + * + * @return The enum numeric value on the wire for targetType. + */ + @java.lang.Override + public int getTargetTypeValue() { + return targetType_; + } + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13; + * + * + * @param value The enum numeric value on the wire for targetType to set. + * @return This builder for chaining. + */ + public Builder setTargetTypeValue(int value) { + targetType_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13; + * + * + * @return The targetType. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType getTargetType() { + com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType result = + com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType.forNumber(targetType_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13; + * + * + * @param value The targetType to set. + * @return This builder for chaining. + */ + public Builder setTargetType( + com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + targetType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Target type of the firewall rule.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13; + * + * + * @return This builder for chaining. + */ + public Builder clearTargetType() { + bitField0_ = (bitField0_ & ~0x00001000); + targetType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java index f641de03918e..d8b18d614a55 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java @@ -389,4 +389,30 @@ public interface FirewallInfoOrBuilder * @return The policyPriority. */ int getPolicyPriority(); + + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13; + * + * @return The enum numeric value on the wire for targetType. + */ + int getTargetTypeValue(); + + /** + * + * + *
                                              +   * Target type of the firewall rule.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13; + * + * @return The targetType. + */ + com.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType getTargetType(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/HybridSubnetInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/HybridSubnetInfo.java new file mode 100644 index 000000000000..80b7ea9fb3e4 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/HybridSubnetInfo.java @@ -0,0 +1,1013 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
                                              + * For display only. Metadata associated with a hybrid subnet.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.HybridSubnetInfo} + */ +public final class HybridSubnetInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) + HybridSubnetInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use HybridSubnetInfo.newBuilder() to construct. + private HybridSubnetInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridSubnetInfo() { + displayName_ = ""; + uri_ = ""; + region_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridSubnetInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.class, + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +   * Name of a hybrid subnet.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Name of a hybrid subnet.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
                                              +   * URI of a hybrid subnet.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * URI of a hybrid subnet.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +   * 
                                              + * + * string region = 3; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +   * 
                                              + * + * string region = 3; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = 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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); + } + 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.networkmanagement.v1beta1.HybridSubnetInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo other = + (com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getRegion().equals(other.getRegion())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo 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.networkmanagement.v1beta1.HybridSubnetInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo 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.networkmanagement.v1beta1.HybridSubnetInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * For display only. Metadata associated with a hybrid subnet.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.HybridSubnetInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.class, + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + uri_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo build() { + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo result = + new com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo other) { + if (other == com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + region_ = 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 displayName_ = ""; + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a hybrid subnet.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of a hybrid subnet.
                                              +     * 
                                              + * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +     * 
                                              + * + * string region = 3; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) + private static final com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridSubnetInfo 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.networkmanagement.v1beta1.HybridSubnetInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/HybridSubnetInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/HybridSubnetInfoOrBuilder.java new file mode 100644 index 000000000000..bec3cebbcdaf --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/HybridSubnetInfoOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +public interface HybridSubnetInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Name of a hybrid subnet.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                              +   * Name of a hybrid subnet.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                              +   * URI of a hybrid subnet.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
                                              +   * URI of a hybrid subnet.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +   * 
                                              + * + * string region = 3; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the hybrid subnet is configured.
                                              +   * 
                                              + * + * string region = 3; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java index 7c8f72afe103..98c34ccec378 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java @@ -636,7 +636,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=367 * @return The serviceAccount. */ @java.lang.Override @@ -663,7 +663,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=367 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -747,7 +747,7 @@ public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=374 * @return The running. */ @java.lang.Override @@ -2254,7 +2254,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=367 * @return The serviceAccount. */ @java.lang.Deprecated @@ -2280,7 +2280,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=367 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -2306,7 +2306,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=367 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -2331,7 +2331,7 @@ public Builder setServiceAccount(java.lang.String value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=367 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2352,7 +2352,7 @@ public Builder clearServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=367 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ @@ -2492,7 +2492,7 @@ public Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString va * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=374 * @return The running. */ @java.lang.Override @@ -2512,7 +2512,7 @@ public boolean getRunning() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=374 * @param value The running to set. * @return This builder for chaining. */ @@ -2536,7 +2536,7 @@ public Builder setRunning(boolean value) { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=374 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java index a6d1b1e728f8..b0f446e70dab 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java @@ -244,7 +244,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=367 * @return The serviceAccount. */ @java.lang.Deprecated @@ -260,7 +260,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=367 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -303,7 +303,7 @@ public interface InstanceInfoOrBuilder * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=374 * @return The running. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InterconnectAttachmentInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InterconnectAttachmentInfo.java new file mode 100644 index 000000000000..1fc0d5cb3326 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InterconnectAttachmentInfo.java @@ -0,0 +1,1987 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
                                              + * For display only. Metadata associated with an Interconnect attachment.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo} + */ +public final class InterconnectAttachmentInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) + InterconnectAttachmentInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use InterconnectAttachmentInfo.newBuilder() to construct. + private InterconnectAttachmentInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InterconnectAttachmentInfo() { + displayName_ = ""; + uri_ = ""; + interconnectUri_ = ""; + region_ = ""; + cloudRouterUri_ = ""; + type_ = 0; + l2AttachmentMatchedIpAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InterconnectAttachmentInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.class, + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Builder.class); + } + + /** + * + * + *
                                              +   * What type of interconnect attachment this is.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Unspecified type.
                                              +     * 
                                              + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Attachment to a dedicated interconnect.
                                              +     * 
                                              + * + * DEDICATED = 1; + */ + DEDICATED(1), + /** + * + * + *
                                              +     * Attachment to a partner interconnect, created by the customer.
                                              +     * 
                                              + * + * PARTNER = 2; + */ + PARTNER(2), + /** + * + * + *
                                              +     * Attachment to a partner interconnect, created by the partner.
                                              +     * 
                                              + * + * PARTNER_PROVIDER = 3; + */ + PARTNER_PROVIDER(3), + /** + * + * + *
                                              +     * Attachment to a L2 interconnect, created by the customer.
                                              +     * 
                                              + * + * L2_DEDICATED = 4; + */ + L2_DEDICATED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Unspecified type.
                                              +     * 
                                              + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Attachment to a dedicated interconnect.
                                              +     * 
                                              + * + * DEDICATED = 1; + */ + public static final int DEDICATED_VALUE = 1; + + /** + * + * + *
                                              +     * Attachment to a partner interconnect, created by the customer.
                                              +     * 
                                              + * + * PARTNER = 2; + */ + public static final int PARTNER_VALUE = 2; + + /** + * + * + *
                                              +     * Attachment to a partner interconnect, created by the partner.
                                              +     * 
                                              + * + * PARTNER_PROVIDER = 3; + */ + public static final int PARTNER_PROVIDER_VALUE = 3; + + /** + * + * + *
                                              +     * Attachment to a L2 interconnect, created by the customer.
                                              +     * 
                                              + * + * L2_DEDICATED = 4; + */ + public static final int L2_DEDICATED_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return DEDICATED; + case 2: + return PARTNER; + case 3: + return PARTNER_PROVIDER; + case 4: + return L2_DEDICATED; + 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 Type findValueByNumber(int number) { + return Type.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type) + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +   * Name of an Interconnect attachment.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Name of an Interconnect attachment.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
                                              +   * URI of an Interconnect attachment.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * URI of an Interconnect attachment.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCONNECT_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object interconnectUri_ = ""; + + /** + * + * + *
                                              +   * URI of the Interconnect where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string interconnect_uri = 3; + * + * @return The interconnectUri. + */ + @java.lang.Override + public java.lang.String getInterconnectUri() { + java.lang.Object ref = interconnectUri_; + 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(); + interconnectUri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * URI of the Interconnect where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string interconnect_uri = 3; + * + * @return The bytes for interconnectUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterconnectUriBytes() { + java.lang.Object ref = interconnectUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interconnectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string region = 4; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string region = 4; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_ROUTER_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudRouterUri_ = ""; + + /** + * + * + *
                                              +   * URI of the Cloud Router to be used for dynamic routing.
                                              +   * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The cloudRouterUri. + */ + @java.lang.Override + public java.lang.String getCloudRouterUri() { + java.lang.Object ref = cloudRouterUri_; + 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(); + cloudRouterUri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * URI of the Cloud Router to be used for dynamic routing.
                                              +   * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The bytes for cloudRouterUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudRouterUriBytes() { + java.lang.Object ref = cloudRouterUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudRouterUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_ = 0; + + /** + * + * + *
                                              +   * The type of interconnect attachment this is.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                              +   * The type of interconnect attachment this is.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type getType() { + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type result = + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type.forNumber(type_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type.UNRECOGNIZED + : result; + } + + public static final int L2_ATTACHMENT_MATCHED_IP_ADDRESS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object l2AttachmentMatchedIpAddress_ = ""; + + /** + * + * + *
                                              +   * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +   * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The l2AttachmentMatchedIpAddress. + */ + @java.lang.Override + public java.lang.String getL2AttachmentMatchedIpAddress() { + java.lang.Object ref = l2AttachmentMatchedIpAddress_; + 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(); + l2AttachmentMatchedIpAddress_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +   * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The bytes for l2AttachmentMatchedIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getL2AttachmentMatchedIpAddressBytes() { + java.lang.Object ref = l2AttachmentMatchedIpAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + l2AttachmentMatchedIpAddress_ = 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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interconnectUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, interconnectUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudRouterUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cloudRouterUri_); + } + if (type_ + != com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type + .TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(l2AttachmentMatchedIpAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, l2AttachmentMatchedIpAddress_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interconnectUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, interconnectUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudRouterUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cloudRouterUri_); + } + if (type_ + != com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type + .TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(l2AttachmentMatchedIpAddress_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 7, l2AttachmentMatchedIpAddress_); + } + 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.networkmanagement.v1beta1.InterconnectAttachmentInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo other = + (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getInterconnectUri().equals(other.getInterconnectUri())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getCloudRouterUri().equals(other.getCloudRouterUri())) return false; + if (type_ != other.type_) return false; + if (!getL2AttachmentMatchedIpAddress().equals(other.getL2AttachmentMatchedIpAddress())) + 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + INTERCONNECT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInterconnectUri().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + CLOUD_ROUTER_URI_FIELD_NUMBER; + hash = (53 * hash) + getCloudRouterUri().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + L2_ATTACHMENT_MATCHED_IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getL2AttachmentMatchedIpAddress().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo 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.networkmanagement.v1beta1.InterconnectAttachmentInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo 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.networkmanagement.v1beta1.InterconnectAttachmentInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * For display only. Metadata associated with an Interconnect attachment.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.class, + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + uri_ = ""; + interconnectUri_ = ""; + region_ = ""; + cloudRouterUri_ = ""; + type_ = 0; + l2AttachmentMatchedIpAddress_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo build() { + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo result = + new com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.interconnectUri_ = interconnectUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.cloudRouterUri_ = cloudRouterUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.l2AttachmentMatchedIpAddress_ = l2AttachmentMatchedIpAddress_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + .getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getInterconnectUri().isEmpty()) { + interconnectUri_ = other.interconnectUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getCloudRouterUri().isEmpty()) { + cloudRouterUri_ = other.cloudRouterUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getL2AttachmentMatchedIpAddress().isEmpty()) { + l2AttachmentMatchedIpAddress_ = other.l2AttachmentMatchedIpAddress_; + bitField0_ |= 0x00000040; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + interconnectUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + cloudRouterUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + l2AttachmentMatchedIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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 displayName_ = ""; + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of an Interconnect attachment.
                                              +     * 
                                              + * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of an Interconnect attachment.
                                              +     * 
                                              + * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object interconnectUri_ = ""; + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @return The interconnectUri. + */ + public java.lang.String getInterconnectUri() { + java.lang.Object ref = interconnectUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interconnectUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @return The bytes for interconnectUri. + */ + public com.google.protobuf.ByteString getInterconnectUriBytes() { + java.lang.Object ref = interconnectUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interconnectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @param value The interconnectUri to set. + * @return This builder for chaining. + */ + public Builder setInterconnectUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interconnectUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearInterconnectUri() { + interconnectUri_ = getDefaultInstance().getInterconnectUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of the Interconnect where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string interconnect_uri = 3; + * + * @param value The bytes for interconnectUri to set. + * @return This builder for chaining. + */ + public Builder setInterconnectUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interconnectUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Name of a Google Cloud region where the Interconnect attachment is
                                              +     * configured.
                                              +     * 
                                              + * + * string region = 4; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object cloudRouterUri_ = ""; + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The cloudRouterUri. + */ + public java.lang.String getCloudRouterUri() { + java.lang.Object ref = cloudRouterUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudRouterUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The bytes for cloudRouterUri. + */ + public com.google.protobuf.ByteString getCloudRouterUriBytes() { + java.lang.Object ref = cloudRouterUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudRouterUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @param value The cloudRouterUri to set. + * @return This builder for chaining. + */ + public Builder setCloudRouterUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudRouterUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearCloudRouterUri() { + cloudRouterUri_ = getDefaultInstance().getCloudRouterUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * URI of the Cloud Router to be used for dynamic routing.
                                              +     * 
                                              + * + * string cloud_router_uri = 5; + * + * @param value The bytes for cloudRouterUri to set. + * @return This builder for chaining. + */ + public Builder setCloudRouterUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudRouterUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type type = 6; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type type = 6; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type type = 6; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type getType() { + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type result = + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type.forNumber( + type_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type type = 6; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The type of interconnect attachment this is.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type type = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000020); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object l2AttachmentMatchedIpAddress_ = ""; + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The l2AttachmentMatchedIpAddress. + */ + public java.lang.String getL2AttachmentMatchedIpAddress() { + java.lang.Object ref = l2AttachmentMatchedIpAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + l2AttachmentMatchedIpAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The bytes for l2AttachmentMatchedIpAddress. + */ + public com.google.protobuf.ByteString getL2AttachmentMatchedIpAddressBytes() { + java.lang.Object ref = l2AttachmentMatchedIpAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + l2AttachmentMatchedIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @param value The l2AttachmentMatchedIpAddress to set. + * @return This builder for chaining. + */ + public Builder setL2AttachmentMatchedIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + l2AttachmentMatchedIpAddress_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearL2AttachmentMatchedIpAddress() { + l2AttachmentMatchedIpAddress_ = getDefaultInstance().getL2AttachmentMatchedIpAddress(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +     * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @param value The bytes for l2AttachmentMatchedIpAddress to set. + * @return This builder for chaining. + */ + public Builder setL2AttachmentMatchedIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + l2AttachmentMatchedIpAddress_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) + private static final com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterconnectAttachmentInfo 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.networkmanagement.v1beta1.InterconnectAttachmentInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InterconnectAttachmentInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InterconnectAttachmentInfoOrBuilder.java new file mode 100644 index 000000000000..d089bdd74dcd --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InterconnectAttachmentInfoOrBuilder.java @@ -0,0 +1,212 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +public interface InterconnectAttachmentInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Name of an Interconnect attachment.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                              +   * Name of an Interconnect attachment.
                                              +   * 
                                              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                              +   * URI of an Interconnect attachment.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
                                              +   * URI of an Interconnect attachment.
                                              +   * 
                                              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
                                              +   * URI of the Interconnect where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string interconnect_uri = 3; + * + * @return The interconnectUri. + */ + java.lang.String getInterconnectUri(); + + /** + * + * + *
                                              +   * URI of the Interconnect where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string interconnect_uri = 3; + * + * @return The bytes for interconnectUri. + */ + com.google.protobuf.ByteString getInterconnectUriBytes(); + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string region = 4; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
                                              +   * Name of a Google Cloud region where the Interconnect attachment is
                                              +   * configured.
                                              +   * 
                                              + * + * string region = 4; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
                                              +   * URI of the Cloud Router to be used for dynamic routing.
                                              +   * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The cloudRouterUri. + */ + java.lang.String getCloudRouterUri(); + + /** + * + * + *
                                              +   * URI of the Cloud Router to be used for dynamic routing.
                                              +   * 
                                              + * + * string cloud_router_uri = 5; + * + * @return The bytes for cloudRouterUri. + */ + com.google.protobuf.ByteString getCloudRouterUriBytes(); + + /** + * + * + *
                                              +   * The type of interconnect attachment this is.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
                                              +   * The type of interconnect attachment this is.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type type = 6; + * + * @return The type. + */ + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type getType(); + + /** + * + * + *
                                              +   * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +   * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The l2AttachmentMatchedIpAddress. + */ + java.lang.String getL2AttachmentMatchedIpAddress(); + + /** + * + * + *
                                              +   * Appliance IP address that was matched for L2_DEDICATED attachments.
                                              +   * 
                                              + * + * string l2_attachment_matched_ip_address = 7 [(.google.api.field_info) = { ... } + * + * @return The bytes for l2AttachmentMatchedIpAddress. + */ + com.google.protobuf.ByteString getL2AttachmentMatchedIpAddressBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java index 4531aec723e8..252381e4c264 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java @@ -546,7 +546,7 @@ public int getLoadBalancerTypeValue() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=838 * @return The healthCheckUri. */ @java.lang.Override @@ -575,7 +575,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=838 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1388,7 +1388,7 @@ public Builder clearLoadBalancerType() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=838 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1416,7 +1416,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=838 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1444,7 +1444,7 @@ public com.google.protobuf.ByteString getHealthCheckUriBytes() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=838 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1471,7 +1471,7 @@ public Builder setHealthCheckUri(java.lang.String value) { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=838 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1494,7 +1494,7 @@ public Builder clearHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=838 * @param value The bytes for healthCheckUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java index 355d0e72264c..5145c9b123a8 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java @@ -67,7 +67,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=838 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -85,7 +85,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=838 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfo.java index f90c8aad5b3b..936955c7bcdd 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfo.java @@ -132,6 +132,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * PRIVATE_SERVICE_CONNECT = 4; */ PRIVATE_SERVICE_CONNECT(4), + /** + * + * + *
                                              +     * GKE Pod IP address masquerading.
                                              +     * 
                                              + * + * GKE_POD_IP_MASQUERADING = 5; + */ + GKE_POD_IP_MASQUERADING(5), UNRECOGNIZED(-1), ; @@ -190,6 +200,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRIVATE_SERVICE_CONNECT_VALUE = 4; + /** + * + * + *
                                              +     * GKE Pod IP address masquerading.
                                              +     * 
                                              + * + * GKE_POD_IP_MASQUERADING = 5; + */ + public static final int GKE_POD_IP_MASQUERADING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -224,6 +245,8 @@ public static Type forNumber(int value) { return CLOUD_NAT; case 4: return PRIVATE_SERVICE_CONNECT; + case 5: + return GKE_POD_IP_MASQUERADING; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java index fd3bfd4a4ff6..1a4b3aeea0b2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java @@ -1077,7 +1077,7 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType getNextH *
                                              * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=625 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -1099,7 +1099,7 @@ public int getRouteScopeValue() { *
                                              * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=625 * @return The routeScope. */ @java.lang.Override @@ -1347,7 +1347,7 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=645 * @return The nextHop. */ @java.lang.Override @@ -1376,7 +1376,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=645 * @return The bytes for nextHop. */ @java.lang.Override @@ -2025,7 +2025,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Override @@ -2048,7 +2048,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return The advertisedRouteNextHopUri. */ @java.lang.Override @@ -2079,7 +2079,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Override @@ -3571,7 +3571,7 @@ public Builder clearNextHopType() { *
                                              * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=625 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -3593,7 +3593,7 @@ public int getRouteScopeValue() { *
                                              * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=625 * @param value The enum numeric value on the wire for routeScope to set. * @return This builder for chaining. */ @@ -3618,7 +3618,7 @@ public Builder setRouteScopeValue(int value) { *
                                              * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=625 * @return The routeScope. */ @java.lang.Override @@ -3644,7 +3644,7 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope getRouteS *
                                              * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=625 * @param value The routeScope to set. * @return This builder for chaining. */ @@ -3673,7 +3673,7 @@ public Builder setRouteScope( * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=625 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4157,7 +4157,7 @@ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=645 * @return The nextHop. */ @java.lang.Deprecated @@ -4185,7 +4185,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=645 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -4213,7 +4213,7 @@ public com.google.protobuf.ByteString getNextHopBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=645 * @param value The nextHop to set. * @return This builder for chaining. */ @@ -4240,7 +4240,7 @@ public Builder setNextHop(java.lang.String value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=645 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4263,7 +4263,7 @@ public Builder clearNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=645 * @param value The bytes for nextHop to set. * @return This builder for chaining. */ @@ -5701,7 +5701,7 @@ public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteSt * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -5723,7 +5723,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5753,7 +5753,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5783,7 +5783,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @param value The advertisedRouteNextHopUri to set. * @return This builder for chaining. */ @@ -5812,7 +5812,7 @@ public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5837,7 +5837,7 @@ public Builder clearAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @param value The bytes for advertisedRouteNextHopUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java index 58000de41d13..853ee89616b9 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java @@ -89,7 +89,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=625 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Deprecated @@ -108,7 +108,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=625 * @return The routeScope. */ @java.lang.Deprecated @@ -236,7 +236,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=645 * @return The nextHop. */ @java.lang.Deprecated @@ -254,7 +254,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=645 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -681,7 +681,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -701,7 +701,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -721,7 +721,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=685 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsRequest.java new file mode 100644 index 000000000000..0431c888155f --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsRequest.java @@ -0,0 +1,1398 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
                                              + * Request for the `ShowEffectiveFlowLogsConfigs` method.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest} + */ +public final class ShowEffectiveFlowLogsConfigsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest) + ShowEffectiveFlowLogsConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ShowEffectiveFlowLogsConfigsRequest.newBuilder() to construct. + private ShowEffectiveFlowLogsConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShowEffectiveFlowLogsConfigsRequest() { + parent_ = ""; + resource_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShowEffectiveFlowLogsConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent resource of the VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * 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 RESOURCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
                                              +   * Required. The resource to get the effective VPC Flow Logs configuration
                                              +   * for. The resource must belong to the same project as the parent. The
                                              +   * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +   * tunnel, or a project.
                                              +   * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The resource to get the effective VPC Flow Logs configuration
                                              +   * for. The resource must belong to the same project as the parent. The
                                              +   * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +   * tunnel, or a project.
                                              +   * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
                                              +   * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +   * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                              +   * Optional. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 4 [(.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. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 4 [(.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 FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +   * expression. A filter expression must use the supported [CEL logic
                                              +   * operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +   * expression. A filter expression must use the supported [CEL logic
                                              +   * operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + 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.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest other = + (com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getResource().equals(other.getResource())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + 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.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + 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.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Request for the `ShowEffectiveFlowLogsConfigs` method.
                                              +   * 
                                              + * + * Protobuf type {@code + * google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest) + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + resource_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest build() { + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + buildPartial() { + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest result = + new com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                              +     * Required. The parent resource of the VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +     * the following format: `projects/{project_id}/locations/global`
                                              +     * 
                                              + * + * + * 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 resource_ = ""; + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource to get the effective VPC Flow Logs configuration
                                              +     * for. The resource must belong to the same project as the parent. The
                                              +     * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +     * tunnel, or a project.
                                              +     * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                              +     * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +     * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +     * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +     * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                              +     * Optional. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.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. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.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. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Page token from an earlier query, as returned in
                                              +     * `next_page_token`.
                                              +     * 
                                              + * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +     * expression. A filter expression must use the supported [CEL logic
                                              +     * operators]
                                              +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest) + private static final com.google.cloud.networkmanagement.v1beta1 + .ShowEffectiveFlowLogsConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest(); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShowEffectiveFlowLogsConfigsRequest 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.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..e34162c86863 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsRequestOrBuilder.java @@ -0,0 +1,163 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +public interface ShowEffectiveFlowLogsConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent resource of the VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * 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 VpcFlowLogsConfig, specified in
                                              +   * the following format: `projects/{project_id}/locations/global`
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Required. The resource to get the effective VPC Flow Logs configuration
                                              +   * for. The resource must belong to the same project as the parent. The
                                              +   * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +   * tunnel, or a project.
                                              +   * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
                                              +   * Required. The resource to get the effective VPC Flow Logs configuration
                                              +   * for. The resource must belong to the same project as the parent. The
                                              +   * resource must be a network, subnetwork, interconnect attachment, VPN
                                              +   * tunnel, or a project.
                                              +   * 
                                              + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
                                              +   * Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
                                              +   * 
                                              + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. Page token from an earlier query, as returned in
                                              +   * `next_page_token`.
                                              +   * 
                                              + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +   * expression. A filter expression must use the supported [CEL logic
                                              +   * operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
                                              +   * expression. A filter expression must use the supported [CEL logic
                                              +   * operators]
                                              +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
                                              +   * 
                                              + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsResponse.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsResponse.java new file mode 100644 index 000000000000..e0984ad3a454 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsResponse.java @@ -0,0 +1,1558 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
                                              + * Response for the `ShowEffectiveFlowLogsConfigs` method.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse} + */ +public final class ShowEffectiveFlowLogsConfigsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse) + ShowEffectiveFlowLogsConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ShowEffectiveFlowLogsConfigsResponse.newBuilder() to construct. + private ShowEffectiveFlowLogsConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShowEffectiveFlowLogsConfigsResponse() { + effectiveFlowLogsConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShowEffectiveFlowLogsConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse.Builder + .class); + } + + public static final int EFFECTIVE_FLOW_LOGS_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + effectiveFlowLogsConfigs_; + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getEffectiveFlowLogsConfigsList() { + return effectiveFlowLogsConfigs_; + } + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder> + getEffectiveFlowLogsConfigsOrBuilderList() { + return effectiveFlowLogsConfigs_; + } + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public int getEffectiveFlowLogsConfigsCount() { + return effectiveFlowLogsConfigs_.size(); + } + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + getEffectiveFlowLogsConfigs(int index) { + return effectiveFlowLogsConfigs_.get(index); + } + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder + getEffectiveFlowLogsConfigsOrBuilder(int index) { + return effectiveFlowLogsConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * 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(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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 < effectiveFlowLogsConfigs_.size(); i++) { + output.writeMessage(1, effectiveFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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 < effectiveFlowLogsConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, effectiveFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse other = + (com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse) obj; + + if (!getEffectiveFlowLogsConfigsList().equals(other.getEffectiveFlowLogsConfigsList())) + 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 (getEffectiveFlowLogsConfigsCount() > 0) { + hash = (37 * hash) + EFFECTIVE_FLOW_LOGS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveFlowLogsConfigsList().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.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + 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.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + 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.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Response for the `ShowEffectiveFlowLogsConfigs` method.
                                              +   * 
                                              + * + * Protobuf type {@code + * google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse) + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (effectiveFlowLogsConfigsBuilder_ == null) { + effectiveFlowLogsConfigs_ = java.util.Collections.emptyList(); + } else { + effectiveFlowLogsConfigs_ = null; + effectiveFlowLogsConfigsBuilder_.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.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse build() { + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + buildPartial() { + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse result = + new com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse result) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + effectiveFlowLogsConfigs_ = + java.util.Collections.unmodifiableList(effectiveFlowLogsConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.effectiveFlowLogsConfigs_ = effectiveFlowLogsConfigs_; + } else { + result.effectiveFlowLogsConfigs_ = effectiveFlowLogsConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse 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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + .getDefaultInstance()) return this; + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (!other.effectiveFlowLogsConfigs_.isEmpty()) { + if (effectiveFlowLogsConfigs_.isEmpty()) { + effectiveFlowLogsConfigs_ = other.effectiveFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.addAll(other.effectiveFlowLogsConfigs_); + } + onChanged(); + } + } else { + if (!other.effectiveFlowLogsConfigs_.isEmpty()) { + if (effectiveFlowLogsConfigsBuilder_.isEmpty()) { + effectiveFlowLogsConfigsBuilder_.dispose(); + effectiveFlowLogsConfigsBuilder_ = null; + effectiveFlowLogsConfigs_ = other.effectiveFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + effectiveFlowLogsConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEffectiveFlowLogsConfigsFieldBuilder() + : null; + } else { + effectiveFlowLogsConfigsBuilder_.addAllMessages(other.effectiveFlowLogsConfigs_); + } + } + } + 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.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig m = + input.readMessage( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + .parser(), + extensionRegistry); + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(m); + } else { + effectiveFlowLogsConfigsBuilder_.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 + effectiveFlowLogsConfigs_ = java.util.Collections.emptyList(); + + private void ensureEffectiveFlowLogsConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + effectiveFlowLogsConfigs_ = + new java.util.ArrayList< + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig>( + effectiveFlowLogsConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder> + effectiveFlowLogsConfigsBuilder_; + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public java.util.List + getEffectiveFlowLogsConfigsList() { + if (effectiveFlowLogsConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(effectiveFlowLogsConfigs_); + } else { + return effectiveFlowLogsConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public int getEffectiveFlowLogsConfigsCount() { + if (effectiveFlowLogsConfigsBuilder_ == null) { + return effectiveFlowLogsConfigs_.size(); + } else { + return effectiveFlowLogsConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + getEffectiveFlowLogsConfigs(int index) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + return effectiveFlowLogsConfigs_.get(index); + } else { + return effectiveFlowLogsConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder setEffectiveFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig value) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.set(index, value); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder setEffectiveFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder + builderForValue) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig value) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(value); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addEffectiveFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig value) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(index, value); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addEffectiveFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder + builderForValue) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(builderForValue.build()); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addEffectiveFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder + builderForValue) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder addAllEffectiveFlowLogsConfigs( + java.lang.Iterable< + ? extends com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig> + values) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectiveFlowLogsConfigs_); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder clearEffectiveFlowLogsConfigs() { + if (effectiveFlowLogsConfigsBuilder_ == null) { + effectiveFlowLogsConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public Builder removeEffectiveFlowLogsConfigs(int index) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + ensureEffectiveFlowLogsConfigsIsMutable(); + effectiveFlowLogsConfigs_.remove(index); + onChanged(); + } else { + effectiveFlowLogsConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder + getEffectiveFlowLogsConfigsBuilder(int index) { + return getEffectiveFlowLogsConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder + getEffectiveFlowLogsConfigsOrBuilder(int index) { + if (effectiveFlowLogsConfigsBuilder_ == null) { + return effectiveFlowLogsConfigs_.get(index); + } else { + return effectiveFlowLogsConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder> + getEffectiveFlowLogsConfigsOrBuilderList() { + if (effectiveFlowLogsConfigsBuilder_ != null) { + return effectiveFlowLogsConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(effectiveFlowLogsConfigs_); + } + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder + addEffectiveFlowLogsConfigsBuilder() { + return getEffectiveFlowLogsConfigsFieldBuilder() + .addBuilder( + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + .getDefaultInstance()); + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder + addEffectiveFlowLogsConfigsBuilder(int index) { + return getEffectiveFlowLogsConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig + .getDefaultInstance()); + } + + /** + * + * + *
                                              +     * List of Effective Vpc Flow Logs configurations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + public java.util.List< + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder> + getEffectiveFlowLogsConfigsBuilderList() { + return getEffectiveFlowLogsConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder> + getEffectiveFlowLogsConfigsFieldBuilder() { + if (effectiveFlowLogsConfigsBuilder_ == null) { + effectiveFlowLogsConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder>( + effectiveFlowLogsConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + effectiveFlowLogsConfigs_ = null; + } + return effectiveFlowLogsConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Page token to fetch the next set of configurations.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Locations that could not be reached (when querying all locations with `-`).
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse) + private static final com.google.cloud.networkmanagement.v1beta1 + .ShowEffectiveFlowLogsConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse(); + } + + public static com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShowEffectiveFlowLogsConfigsResponse 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.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsResponseOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..1f4033fd560b --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ShowEffectiveFlowLogsConfigsResponseOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +public interface ShowEffectiveFlowLogsConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + java.util.List + getEffectiveFlowLogsConfigsList(); + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig getEffectiveFlowLogsConfigs( + int index); + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + int getEffectiveFlowLogsConfigsCount(); + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + java.util.List< + ? extends com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder> + getEffectiveFlowLogsConfigsOrBuilderList(); + + /** + * + * + *
                                              +   * List of Effective Vpc Flow Logs configurations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfigOrBuilder + getEffectiveFlowLogsConfigsOrBuilder(int index); + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * Page token to fetch the next set of configurations.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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); + + /** + * + * + *
                                              +   * Locations that could not be reached (when querying all locations with `-`).
                                              +   * 
                                              + * + * 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-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java index 4a6e564e12bc..edd39ed97b3e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java @@ -343,6 +343,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ @java.lang.Deprecated ARRIVE_AT_EXTERNAL_LOAD_BALANCER(11), + /** + * + * + *
                                              +     * Forwarding state: arriving at a hybrid subnet. Appropriate routing
                                              +     * configuration will be determined here.
                                              +     * 
                                              + * + * ARRIVE_AT_HYBRID_SUBNET = 38; + */ + ARRIVE_AT_HYBRID_SUBNET(38), /** * * @@ -363,6 +374,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ARRIVE_AT_VPN_TUNNEL = 13; */ ARRIVE_AT_VPN_TUNNEL(13), + /** + * + * + *
                                              +     * Forwarding state: arriving at an interconnect attachment.
                                              +     * 
                                              + * + * ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; + */ + ARRIVE_AT_INTERCONNECT_ATTACHMENT(37), /** * * @@ -399,7 +420,8 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Transition state: packet header translated.
                                              +     * Transition state: packet header translated. The `nat` field is populated
                                              +     * with the translation information.
                                                    * 
                                              * * NAT = 14; @@ -758,6 +780,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ @java.lang.Deprecated public static final int ARRIVE_AT_EXTERNAL_LOAD_BALANCER_VALUE = 11; + /** + * + * + *
                                              +     * Forwarding state: arriving at a hybrid subnet. Appropriate routing
                                              +     * configuration will be determined here.
                                              +     * 
                                              + * + * ARRIVE_AT_HYBRID_SUBNET = 38; + */ + public static final int ARRIVE_AT_HYBRID_SUBNET_VALUE = 38; + /** * * @@ -780,6 +814,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ARRIVE_AT_VPN_TUNNEL_VALUE = 13; + /** + * + * + *
                                              +     * Forwarding state: arriving at an interconnect attachment.
                                              +     * 
                                              + * + * ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; + */ + public static final int ARRIVE_AT_INTERCONNECT_ATTACHMENT_VALUE = 37; + /** * * @@ -819,7 +864,8 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
                                              -     * Transition state: packet header translated.
                                              +     * Transition state: packet header translated. The `nat` field is populated
                                              +     * with the translation information.
                                                    * 
                                              * * NAT = 14; @@ -967,10 +1013,14 @@ public static State forNumber(int value) { return ARRIVE_AT_INTERNAL_LOAD_BALANCER; case 11: return ARRIVE_AT_EXTERNAL_LOAD_BALANCER; + case 38: + return ARRIVE_AT_HYBRID_SUBNET; case 12: return ARRIVE_AT_VPN_GATEWAY; case 13: return ARRIVE_AT_VPN_TUNNEL; + case 37: + return ARRIVE_AT_INTERCONNECT_ATTACHMENT; case 24: return ARRIVE_AT_VPC_CONNECTOR; case 35: @@ -1059,8 +1109,10 @@ public enum StepInfoCase ENDPOINT(8), GOOGLE_SERVICE(24), FORWARDING_RULE(9), + HYBRID_SUBNET(36), VPN_GATEWAY(10), VPN_TUNNEL(11), + INTERCONNECT_ATTACHMENT(35), VPC_CONNECTOR(21), DIRECT_VPC_EGRESS_CONNECTION(33), SERVERLESS_EXTERNAL_CONNECTION(34), @@ -1114,10 +1166,14 @@ public static StepInfoCase forNumber(int value) { return GOOGLE_SERVICE; case 9: return FORWARDING_RULE; + case 36: + return HYBRID_SUBNET; case 10: return VPN_GATEWAY; case 11: return VPN_TUNNEL; + case 35: + return INTERCONNECT_ATTACHMENT; case 21: return VPC_CONNECTOR; case 33: @@ -1675,6 +1731,61 @@ public com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo getForwardi return com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfo.getDefaultInstance(); } + public static final int HYBRID_SUBNET_FIELD_NUMBER = 36; + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return Whether the hybridSubnet field is set. + */ + @java.lang.Override + public boolean hasHybridSubnet() { + return stepInfoCase_ == 36; + } + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return The hybridSubnet. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo getHybridSubnet() { + if (stepInfoCase_ == 36) { + return (com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.getDefaultInstance(); + } + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfoOrBuilder + getHybridSubnetOrBuilder() { + if (stepInfoCase_ == 36) { + return (com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.getDefaultInstance(); + } + public static final int VPN_GATEWAY_FIELD_NUMBER = 10; /** @@ -1784,6 +1895,70 @@ public com.google.cloud.networkmanagement.v1beta1.VpnTunnelInfoOrBuilder getVpnT return com.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.getDefaultInstance(); } + public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 35; + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return Whether the interconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasInterconnectAttachment() { + return stepInfoCase_ == 35; + } + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return The interconnectAttachment. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + getInterconnectAttachment() { + if (stepInfoCase_ == 35) { + return (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + .getDefaultInstance(); + } + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfoOrBuilder + getInterconnectAttachmentOrBuilder() { + if (stepInfoCase_ == 35) { + return (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + .getDefaultInstance(); + } + public static final int VPC_CONNECTOR_FIELD_NUMBER = 21; /** @@ -2200,7 +2375,7 @@ public com.google.cloud.networkmanagement.v1beta1.DropInfoOrBuilder getDropOrBui * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=272 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=286 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -2222,7 +2397,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=272 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=286 * @return The loadBalancer. */ @java.lang.Override @@ -3119,6 +3294,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 34, (com.google.cloud.networkmanagement.v1beta1.ServerlessExternalConnectionInfo) stepInfo_); } + if (stepInfoCase_ == 35) { + output.writeMessage( + 35, (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) stepInfo_); + } + if (stepInfoCase_ == 36) { + output.writeMessage( + 36, (com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) stepInfo_); + } getUnknownFields().writeTo(output); } @@ -3289,6 +3472,17 @@ public int getSerializedSize() { (com.google.cloud.networkmanagement.v1beta1.ServerlessExternalConnectionInfo) stepInfo_); } + if (stepInfoCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, + (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) stepInfo_); + } + if (stepInfoCase_ == 36) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 36, (com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) stepInfo_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3329,12 +3523,18 @@ public boolean equals(final java.lang.Object obj) { case 9: if (!getForwardingRule().equals(other.getForwardingRule())) return false; break; + case 36: + if (!getHybridSubnet().equals(other.getHybridSubnet())) return false; + break; case 10: if (!getVpnGateway().equals(other.getVpnGateway())) return false; break; case 11: if (!getVpnTunnel().equals(other.getVpnTunnel())) return false; break; + case 35: + if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; + break; case 21: if (!getVpcConnector().equals(other.getVpcConnector())) return false; break; @@ -3447,6 +3647,10 @@ public int hashCode() { hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER; hash = (53 * hash) + getForwardingRule().hashCode(); break; + case 36: + hash = (37 * hash) + HYBRID_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getHybridSubnet().hashCode(); + break; case 10: hash = (37 * hash) + VPN_GATEWAY_FIELD_NUMBER; hash = (53 * hash) + getVpnGateway().hashCode(); @@ -3455,6 +3659,10 @@ public int hashCode() { hash = (37 * hash) + VPN_TUNNEL_FIELD_NUMBER; hash = (53 * hash) + getVpnTunnel().hashCode(); break; + case 35: + hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getInterconnectAttachment().hashCode(); + break; case 21: hash = (37 * hash) + VPC_CONNECTOR_FIELD_NUMBER; hash = (53 * hash) + getVpcConnector().hashCode(); @@ -3706,12 +3914,18 @@ public Builder clear() { if (forwardingRuleBuilder_ != null) { forwardingRuleBuilder_.clear(); } + if (hybridSubnetBuilder_ != null) { + hybridSubnetBuilder_.clear(); + } if (vpnGatewayBuilder_ != null) { vpnGatewayBuilder_.clear(); } if (vpnTunnelBuilder_ != null) { vpnTunnelBuilder_.clear(); } + if (interconnectAttachmentBuilder_ != null) { + interconnectAttachmentBuilder_.clear(); + } if (vpcConnectorBuilder_ != null) { vpcConnectorBuilder_.clear(); } @@ -3856,12 +4070,18 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1beta1.Step if (stepInfoCase_ == 9 && forwardingRuleBuilder_ != null) { result.stepInfo_ = forwardingRuleBuilder_.build(); } + if (stepInfoCase_ == 36 && hybridSubnetBuilder_ != null) { + result.stepInfo_ = hybridSubnetBuilder_.build(); + } if (stepInfoCase_ == 10 && vpnGatewayBuilder_ != null) { result.stepInfo_ = vpnGatewayBuilder_.build(); } if (stepInfoCase_ == 11 && vpnTunnelBuilder_ != null) { result.stepInfo_ = vpnTunnelBuilder_.build(); } + if (stepInfoCase_ == 35 && interconnectAttachmentBuilder_ != null) { + result.stepInfo_ = interconnectAttachmentBuilder_.build(); + } if (stepInfoCase_ == 21 && vpcConnectorBuilder_ != null) { result.stepInfo_ = vpcConnectorBuilder_.build(); } @@ -4020,6 +4240,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Step other) mergeForwardingRule(other.getForwardingRule()); break; } + case HYBRID_SUBNET: + { + mergeHybridSubnet(other.getHybridSubnet()); + break; + } case VPN_GATEWAY: { mergeVpnGateway(other.getVpnGateway()); @@ -4030,6 +4255,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Step other) mergeVpnTunnel(other.getVpnTunnel()); break; } + case INTERCONNECT_ATTACHMENT: + { + mergeInterconnectAttachment(other.getInterconnectAttachment()); + break; + } case VPC_CONNECTOR: { mergeVpcConnector(other.getVpcConnector()); @@ -4370,6 +4600,19 @@ public Builder mergeFrom( stepInfoCase_ = 34; break; } // case 274 + case 282: + { + input.readMessage( + getInterconnectAttachmentFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 35; + break; + } // case 282 + case 290: + { + input.readMessage(getHybridSubnetFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 36; + break; + } // case 290 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6132,6 +6375,231 @@ public Builder clearForwardingRule() { return forwardingRuleBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo, + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfoOrBuilder> + hybridSubnetBuilder_; + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return Whether the hybridSubnet field is set. + */ + @java.lang.Override + public boolean hasHybridSubnet() { + return stepInfoCase_ == 36; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return The hybridSubnet. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo getHybridSubnet() { + if (hybridSubnetBuilder_ == null) { + if (stepInfoCase_ == 36) { + return (com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 36) { + return hybridSubnetBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.getDefaultInstance(); + } + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + */ + public Builder setHybridSubnet( + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo value) { + if (hybridSubnetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + hybridSubnetBuilder_.setMessage(value); + } + stepInfoCase_ = 36; + return this; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + */ + public Builder setHybridSubnet( + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.Builder builderForValue) { + if (hybridSubnetBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + hybridSubnetBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 36; + return this; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + */ + public Builder mergeHybridSubnet( + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo value) { + if (hybridSubnetBuilder_ == null) { + if (stepInfoCase_ == 36 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 36) { + hybridSubnetBuilder_.mergeFrom(value); + } else { + hybridSubnetBuilder_.setMessage(value); + } + } + stepInfoCase_ = 36; + return this; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + */ + public Builder clearHybridSubnet() { + if (hybridSubnetBuilder_ == null) { + if (stepInfoCase_ == 36) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 36) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + hybridSubnetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + */ + public com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.Builder + getHybridSubnetBuilder() { + return getHybridSubnetFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfoOrBuilder + getHybridSubnetOrBuilder() { + if ((stepInfoCase_ == 36) && (hybridSubnetBuilder_ != null)) { + return hybridSubnetBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 36) { + return (com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.getDefaultInstance(); + } + } + + /** + * + * + *
                                              +     * Display information of a hybrid subnet.
                                              +     * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo, + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfoOrBuilder> + getHybridSubnetFieldBuilder() { + if (hybridSubnetBuilder_ == null) { + if (!(stepInfoCase_ == 36)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.getDefaultInstance(); + } + hybridSubnetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo, + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 36; + onChanged(); + return hybridSubnetBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo, com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo.Builder, @@ -6575,6 +7043,256 @@ public com.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.Builder getVpnTu return vpnTunnelBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo, + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfoOrBuilder> + interconnectAttachmentBuilder_; + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return Whether the interconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasInterconnectAttachment() { + return stepInfoCase_ == 35; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return The interconnectAttachment. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + getInterconnectAttachment() { + if (interconnectAttachmentBuilder_ == null) { + if (stepInfoCase_ == 35) { + return (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + .getDefaultInstance(); + } else { + if (stepInfoCase_ == 35) { + return interconnectAttachmentBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + .getDefaultInstance(); + } + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public Builder setInterconnectAttachment( + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo value) { + if (interconnectAttachmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + interconnectAttachmentBuilder_.setMessage(value); + } + stepInfoCase_ = 35; + return this; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public Builder setInterconnectAttachment( + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Builder + builderForValue) { + if (interconnectAttachmentBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + interconnectAttachmentBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 35; + return this; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public Builder mergeInterconnectAttachment( + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo value) { + if (interconnectAttachmentBuilder_ == null) { + if (stepInfoCase_ == 35 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) + stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 35) { + interconnectAttachmentBuilder_.mergeFrom(value); + } else { + interconnectAttachmentBuilder_.setMessage(value); + } + } + stepInfoCase_ = 35; + return this; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public Builder clearInterconnectAttachment() { + if (interconnectAttachmentBuilder_ == null) { + if (stepInfoCase_ == 35) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 35) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + interconnectAttachmentBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Builder + getInterconnectAttachmentBuilder() { + return getInterconnectAttachmentFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfoOrBuilder + getInterconnectAttachmentOrBuilder() { + if ((stepInfoCase_ == 35) && (interconnectAttachmentBuilder_ != null)) { + return interconnectAttachmentBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 35) { + return (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + .getDefaultInstance(); + } + } + + /** + * + * + *
                                              +     * Display information of an interconnect attachment.
                                              +     * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo, + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfoOrBuilder> + getInterconnectAttachmentFieldBuilder() { + if (interconnectAttachmentBuilder_ == null) { + if (!(stepInfoCase_ == 35)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo + .getDefaultInstance(); + } + interconnectAttachmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo, + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 35; + onChanged(); + return interconnectAttachmentBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.networkmanagement.v1beta1.VpcConnectorInfo, com.google.cloud.networkmanagement.v1beta1.VpcConnectorInfo.Builder, @@ -8203,7 +8921,7 @@ public com.google.cloud.networkmanagement.v1beta1.DropInfoOrBuilder getDropOrBui * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=272 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=286 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -8225,7 +8943,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=272 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=286 * @return The loadBalancer. */ @java.lang.Override diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java index c54058048780..caeae7d158e2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java @@ -347,6 +347,43 @@ public interface StepOrBuilder com.google.cloud.networkmanagement.v1beta1.ForwardingRuleInfoOrBuilder getForwardingRuleOrBuilder(); + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return Whether the hybridSubnet field is set. + */ + boolean hasHybridSubnet(); + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + * + * @return The hybridSubnet. + */ + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfo getHybridSubnet(); + + /** + * + * + *
                                              +   * Display information of a hybrid subnet.
                                              +   * 
                                              + * + * .google.cloud.networkmanagement.v1beta1.HybridSubnetInfo hybrid_subnet = 36; + */ + com.google.cloud.networkmanagement.v1beta1.HybridSubnetInfoOrBuilder getHybridSubnetOrBuilder(); + /** * * @@ -421,6 +458,50 @@ public interface StepOrBuilder */ com.google.cloud.networkmanagement.v1beta1.VpnTunnelInfoOrBuilder getVpnTunnelOrBuilder(); + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return Whether the interconnectAttachment field is set. + */ + boolean hasInterconnectAttachment(); + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + * + * @return The interconnectAttachment. + */ + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo getInterconnectAttachment(); + + /** + * + * + *
                                              +   * Display information of an interconnect attachment.
                                              +   * 
                                              + * + * + * .google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo interconnect_attachment = 35; + * + */ + com.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfoOrBuilder + getInterconnectAttachmentOrBuilder(); + /** * * @@ -709,7 +790,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=272 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=286 * @return Whether the loadBalancer field is set. */ @java.lang.Deprecated @@ -728,7 +809,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=272 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=286 * @return The loadBalancer. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TraceProto.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TraceProto.java index cb4cb49dc6c1..0f26118afc91 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TraceProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TraceProto.java @@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackend_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackend_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkmanagement_v1beta1_VpnGatewayInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -76,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1beta1_VpnTunnelInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1beta1_VpnTunnelInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkmanagement_v1beta1_EndpointInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -172,7 +180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "endpoint_info\030\001 \001(\01324.google.clo" + "ud.networkmanagement.v1beta1.EndpointInfo\022;\n" + "\005steps\030\002 \003(\0132,.google.cloud.networkmanagement.v1beta1.Step\022\030\n" - + "\020forward_trace_id\030\004 \001(\005\"\337\033\n" + + "\020forward_trace_id\030\004 \001(\005\"\335\035\n" + "\004Step\022\023\n" + "\013description\030\001 \001(\t\022A\n" + "\005state\030\002" @@ -190,52 +198,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016google_service\030\030 \001(\01329.google.cloud.netw" + "orkmanagement.v1beta1.GoogleServiceInfoH\000\022U\n" + "\017forwarding_rule\030\t \001(\0132:.google.clou" - + "d.networkmanagement.v1beta1.ForwardingRuleInfoH\000\022M\n" + + "d.networkmanagement.v1beta1.ForwardingRuleInfoH\000\022Q\n\r" + + "hybrid_subnet\030$ \001(\01328.google" + + ".cloud.networkmanagement.v1beta1.HybridSubnetInfoH\000\022M\n" + "\013vpn_gateway\030\n" + " \001(\01326.google.cloud.networkmanagement.v1beta1.VpnGatewayInfoH\000\022K\n\n" - + "vpn_tunnel\030\013 \001(\01325.google.clo" - + "ud.networkmanagement.v1beta1.VpnTunnelInfoH\000\022Q\n\r" - + "vpc_connector\030\025 \001(\01328.google.clo" - + "ud.networkmanagement.v1beta1.VpcConnectorInfoH\000\022m\n" - + "\034direct_vpc_egress_connection\030! \001(\0132E.google.cloud.networkmanagement.v" - + "1beta1.DirectVpcEgressConnectionInfoH\000\022r\n" - + "\036serverless_external_connection\030\" \001(\0132H" - + ".google.cloud.networkmanagement.v1beta1.ServerlessExternalConnectionInfoH\000\022F\n" - + "\007deliver\030\014" - + " \001(\01323.google.cloud.networkmanagement.v1beta1.DeliverInfoH\000\022F\n" + + "vpn_tunnel\030\013 \001(\01325.google." + + "cloud.networkmanagement.v1beta1.VpnTunnelInfoH\000\022e\n" + + "\027interconnect_attachment\030# \001(\013" + + "2B.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfoH\000\022Q\n\r" + + "vpc_connector\030\025" + + " \001(\01328.google.cloud.networkmanagement.v1beta1.VpcConnectorInfoH\000\022m\n" + + "\034direct_vpc_egress_connection\030! \001(\0132E.google" + + ".cloud.networkmanagement.v1beta1.DirectVpcEgressConnectionInfoH\000\022r\n" + + "\036serverless_external_connection\030\" \001(\0132H.google.cloud." + + "networkmanagement.v1beta1.ServerlessExternalConnectionInfoH\000\022F\n" + + "\007deliver\030\014 \001(\01323." + + "google.cloud.networkmanagement.v1beta1.DeliverInfoH\000\022F\n" + "\007forward\030\r" + " \001(\01323.google.cloud.networkmanagement.v1beta1.ForwardInfoH\000\022B\n" - + "\005abort\030\016 \001(\01321.goog" - + "le.cloud.networkmanagement.v1beta1.AbortInfoH\000\022@\n" + + "\005abort\030\016" + + " \001(\01321.google.cloud.networkmanagement.v1beta1.AbortInfoH\000\022@\n" + "\004drop\030\017" + " \001(\01320.google.cloud.networkmanagement.v1beta1.DropInfoH\000\022U\n\r" - + "load_balancer\030\020 \001(\01328.google.cloud.networkma" - + "nagement.v1beta1.LoadBalancerInfoB\002\030\001H\000\022F\n" - + "\007network\030\021" - + " \001(\01323.google.cloud.networkmanagement.v1beta1.NetworkInfoH\000\022K\n\n" - + "gke_master\030\022" - + " \001(\01325.google.cloud.networkmanagement.v1beta1.GKEMasterInfoH\000\022Z\n" - + "\022cloud_sql_instance\030\023 \001(\0132<.google.cloud.networkm" - + "anagement.v1beta1.CloudSQLInstanceInfoH\000\022S\n" - + "\016redis_instance\030\036 \001(\01329.google.cloud." - + "networkmanagement.v1beta1.RedisInstanceInfoH\000\022Q\n\r" - + "redis_cluster\030\037 \001(\01328.google.cl" - + "oud.networkmanagement.v1beta1.RedisClusterInfoH\000\022S\n" - + "\016cloud_function\030\024 \001(\01329.googl" - + "e.cloud.networkmanagement.v1beta1.CloudFunctionInfoH\000\022Z\n" - + "\022app_engine_version\030\026 \001(" - + "\0132<.google.cloud.networkmanagement.v1beta1.AppEngineVersionInfoH\000\022Z\n" - + "\022cloud_run_revision\030\027" - + " \001(\0132<.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoH\000\022>\n" + + "load_balancer\030\020 \001(" + + "\01328.google.cloud.networkmanagement.v1beta1.LoadBalancerInfoB\002\030\001H\000\022F\n" + + "\007network\030\021 \001" + + "(\01323.google.cloud.networkmanagement.v1beta1.NetworkInfoH\000\022K\n\n" + + "gke_master\030\022 \001(\01325." + + "google.cloud.networkmanagement.v1beta1.GKEMasterInfoH\000\022Z\n" + + "\022cloud_sql_instance\030\023 \001" + + "(\0132<.google.cloud.networkmanagement.v1beta1.CloudSQLInstanceInfoH\000\022S\n" + + "\016redis_instance\030\036" + + " \001(\01329.google.cloud.networkmanagement.v1beta1.RedisInstanceInfoH\000\022Q\n\r" + + "redis_cluster\030\037" + + " \001(\01328.google.cloud.networkmanagement.v1beta1.RedisClusterInfoH\000\022S\n" + + "\016cloud_function\030\024 \001(\01329.google.cloud.networ" + + "kmanagement.v1beta1.CloudFunctionInfoH\000\022Z\n" + + "\022app_engine_version\030\026 \001(\0132<.google.clo" + + "ud.networkmanagement.v1beta1.AppEngineVersionInfoH\000\022Z\n" + + "\022cloud_run_revision\030\027 \001(\0132" + + "<.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoH\000\022>\n" + "\003nat\030\031 \001(\0132/.google.cloud.networkmanagement.v1beta1.NatInfoH\000\022W\n" - + "\020proxy_connection\030\032" - + " \001(\0132;.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfoH\000\022e\n" - + "\032load_balancer_backend_info\030\033 \001(\0132?.google.clou" - + "d.networkmanagement.v1beta1.LoadBalancerBackendInfoH\000\022S\n" - + "\016storage_bucket\030\034 \001(\01329." - + "google.cloud.networkmanagement.v1beta1.StorageBucketInfoH\000\022S\n" - + "\016serverless_neg\030\035 \001" - + "(\01329.google.cloud.networkmanagement.v1beta1.ServerlessNegInfoH\000\"\353\007\n" + + "\020proxy_connection\030\032 \001(\0132;.goog" + + "le.cloud.networkmanagement.v1beta1.ProxyConnectionInfoH\000\022e\n" + + "\032load_balancer_backend_info\030\033 \001(\0132?.google.cloud.networkmanag" + + "ement.v1beta1.LoadBalancerBackendInfoH\000\022S\n" + + "\016storage_bucket\030\034 \001(\01329.google.cloud.n" + + "etworkmanagement.v1beta1.StorageBucketInfoH\000\022S\n" + + "\016serverless_neg\030\035 \001(\01329.google.cl" + + "oud.networkmanagement.v1beta1.ServerlessNegInfoH\000\"\257\010\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\027\n" + "\023START_FROM_INSTANCE\020\001\022\027\n" @@ -261,10 +273,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ARRIVE_AT_INSTANCE\020\t\022(\n" + " ARRIVE_AT_INTERNAL_LOAD_BALANCER\020\n" + "\032\002\010\001\022(\n" - + " ARRIVE_AT_EXTERNAL_LOAD_BALANCER\020\013\032\002\010\001\022\031\n" + + " ARRIVE_AT_EXTERNAL_LOAD_BALANCER\020\013\032\002\010\001\022\033\n" + + "\027ARRIVE_AT_HYBRID_SUBNET\020&\022\031\n" + "\025ARRIVE_AT_VPN_GATEWAY\020\014\022\030\n" + "\024ARRIVE_AT_VPN_TUNNEL\020\r" - + "\022\033\n" + + "\022%\n" + + "!ARRIVE_AT_INTERCONNECT_ATTACHMENT\020%\022\033\n" + "\027ARRIVE_AT_VPC_CONNECTOR\020\030\022 \n" + "\034DIRECT_VPC_EGRESS_CONNECTION\020#\022\"\n" + "\036SERVERLESS_EXTERNAL_CONNECTION\020$\022\007\n" @@ -288,8 +302,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032psc_network_attachment_uri\030\t \001(\t\022\023\n" + "\007running\030\n" + " \001(\010B\002\030\001\022K\n" - + "\006status\030\013 \001(\0162;.google.cloud.netw" - + "orkmanagement.v1beta1.InstanceInfo.Status\">\n" + + "\006status\030\013 \001(\0162;.goo" + + "gle.cloud.networkmanagement.v1beta1.InstanceInfo.Status\">\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\017\n" @@ -299,7 +313,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uri\030\002 \001(\t\022\032\n" + "\022matched_subnet_uri\030\005 \001(\t\022\030\n" + "\020matched_ip_range\030\004 \001(\t\022\016\n" - + "\006region\030\006 \001(\t\"\265\005\n" + + "\006region\030\006 \001(\t\"\336\006\n" + "\014FirewallInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\021\n" @@ -312,9 +326,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006policy\030\t \001(\t\022\022\n\n" + "policy_uri\030\013 \001(\t\022a\n" + "\022firewall_rule_type\030\n" - + " \001(\0162E.google.c" - + "loud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType\022\027\n" - + "\017policy_priority\030\014 \001(\005\"\341\002\n" + + " \001(\0162E.google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType\022\027\n" + + "\017policy_priority\030\014 \001(\005\022T\n" + + "\013target_type\030\r" + + " \001(\016" + + "2?.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType\"\341\002\n" + "\020FirewallRuleType\022\"\n" + "\036FIREWALL_RULE_TYPE_UNSPECIFIED\020\000\022%\n" + "!HIERARCHICAL_FIREWALL_POLICY_RULE\020\001\022\025\n" @@ -325,14 +341,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%NETWORK_REGIONAL_FIREWALL_POLICY_RULE\020\006\022$\n" + " UNSUPPORTED_FIREWALL_POLICY_RULE\020d\022\022\n" + "\016TRACKING_STATE\020e\022\024\n" - + "\020ANALYSIS_SKIPPED\020f\"\373\013\n" + + "\020ANALYSIS_SKIPPED\020f\"Q\n\n" + + "TargetType\022\033\n" + + "\027TARGET_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tINSTANCES\020\001\022\027\n" + + "\023INTERNAL_MANAGED_LB\020\002\"\373\013\n" + "\tRouteInfo\022O\n\n" - + "route_type\030\010 \001(\0162;.go" - + "ogle.cloud.networkmanagement.v1beta1.RouteInfo.RouteType\022T\n\r" - + "next_hop_type\030\t \001(\0162" - + "=.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType\022U\n" - + "\013route_scope\030\016 " - + "\001(\0162<.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + + "route_type\030\010 \001(\0162;.google.cloud.networ" + + "kmanagement.v1beta1.RouteInfo.RouteType\022T\n\r" + + "next_hop_type\030\t \001(\0162=.google.cloud.ne" + + "tworkmanagement.v1beta1.RouteInfo.NextHopType\022U\n" + + "\013route_scope\030\016 \001(\0162<.google.clou" + + "d.networkmanagement.v1beta1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\016\n" + "\006region\030\023 \001(\t\022\025\n\r" @@ -394,8 +414,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036_advertised_route_next_hop_uri\"\337\002\n" + "\021GoogleServiceInfo\022\021\n" + "\tsource_ip\030\001 \001(\t\022h\n" - + "\023google_service_type\030\002 \001(\0162K.google.cloud.networkmanagement.v" - + "1beta1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + + "\023google_service_type\030\002 \001(\0162K.google.cl" + + "oud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -419,13 +439,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t\022\035\n" + "\025psc_google_api_target\030\013 \001(\t\"\321\004\n" + "\020LoadBalancerInfo\022e\n" - + "\022load_balancer_type\030\001 \001(\0162I.google.cloud.networkmanage" - + "ment.v1beta1.LoadBalancerInfo.LoadBalancerType\022\034\n" + + "\022load_balancer_type\030\001 \001(\0162I.goo" + + "gle.cloud.networkmanagement.v1beta1.LoadBalancerInfo.LoadBalancerType\022\034\n" + "\020health_check_uri\030\002 \001(\tB\002\030\001\022M\n" - + "\010backends\030\003" - + " \003(\0132;.google.cloud.networkmanagement.v1beta1.LoadBalancerBackend\022Z\n" - + "\014backend_type\030\004 \001(\0162D.google.cloud.network" - + "management.v1beta1.LoadBalancerInfo.BackendType\022\023\n" + + "\010backends\030\003 \003(\0132;." + + "google.cloud.networkmanagement.v1beta1.LoadBalancerBackend\022Z\n" + + "\014backend_type\030\004 \001(\016" + + "2D.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.BackendType\022\023\n" + "\013backend_uri\030\005 \001(\t\"\217\001\n" + "\020LoadBalancerType\022\"\n" + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\024\n" @@ -442,14 +462,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023LoadBalancerBackend\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022y\n" - + "\033health_check_firewall_state\030\003 \001(\0162T.google.cloud.networkman" - + "agement.v1beta1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + + "\033health_check_firewall_state\030\003 \001(\0162T." + + "google.cloud.networkmanagement.v1beta1.L" + + "oadBalancerBackend.HealthCheckFirewallState\022,\n" + "$health_check_allowing_firewall_rules\030\004 \003(\t\022,\n" + "$health_check_blocking_firewall_rules\030\005 \003(\t\"j\n" + "\030HealthCheckFirewallState\022+\n" + "\'HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED\020\000\022\016\n\n" + "CONFIGURED\020\001\022\021\n\r" - + "MISCONFIGURED\020\002\"\204\001\n" + + "MISCONFIGURED\020\002\"E\n" + + "\020HybridSubnetInfo\022\024\n" + + "\014display_name\030\001 \001(\t\022\013\n" + + "\003uri\030\002 \001(\t\022\016\n" + + "\006region\030\003 \001(\t\"\204\001\n" + "\016VpnGatewayInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\023\n" @@ -466,13 +491,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021source_gateway_ip\030\006 \001(\t\022\023\n" + "\013network_uri\030\007 \001(\t\022\016\n" + "\006region\030\010 \001(\t\022W\n" - + "\014routing_type\030\t" - + " \001(\0162A.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType\"[\n" + + "\014routing_type\030\t \001(\0162A.google.cloud.n" + + "etworkmanagement.v1beta1.VpnTunnelInfo.RoutingType\"[\n" + "\013RoutingType\022\034\n" + "\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013ROUTE_BASED\020\001\022\020\n" + "\014POLICY_BASED\020\002\022\013\n" - + "\007DYNAMIC\020\003\"\321\001\n" + + "\007DYNAMIC\020\003\"\360\002\n" + + "\032InterconnectAttachmentInfo\022\024\n" + + "\014display_name\030\001 \001(\t\022\013\n" + + "\003uri\030\002 \001(\t\022\030\n" + + "\020interconnect_uri\030\003 \001(\t\022\016\n" + + "\006region\030\004 \001(\t\022\030\n" + + "\020cloud_router_uri\030\005 \001(\t\022U\n" + + "\004type\030\006 \001(\0162G.google.cloud.networkmanage" + + "ment.v1beta1.InterconnectAttachmentInfo.Type\0222\n" + + " l2_attachment_matched_ip_address\030\007 \001(" + + "\tB\010\342\214\317\327\010\002\010\004\"`\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tDEDICATED\020\001\022\013\n" + + "\007PARTNER\020\002\022\024\n" + + "\020PARTNER_PROVIDER\020\003\022\020\n" + + "\014L2_DEDICATED\020\004\"\321\001\n" + "\014EndpointInfo\022\021\n" + "\tsource_ip\030\001 \001(\t\022\026\n" + "\016destination_ip\030\002 \001(\t\022\020\n" @@ -483,14 +524,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027destination_network_uri\030\007 \001(\t\022\030\n" + "\020source_agent_uri\030\010 \001(\t\"\321\006\n" + "\013DeliverInfo\022J\n" - + "\006target\030\001" - + " \001(\0162:.google.cloud.networkmanagement.v1beta1.DeliverInfo.Target\022\024\n" + + "\006target\030\001 \001(\0162:" + + ".google.cloud.networkmanagement.v1beta1.DeliverInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\022\026\n" + "\016storage_bucket\030\004 \001(\t\022\035\n" + "\025psc_google_api_target\030\005 \001(\t\022b\n" - + "\023google_service_type\030\006 \001(\0162E.google.cloud.networkmanageme" - + "nt.v1beta1.DeliverInfo.GoogleServiceType\"\367\002\n" + + "\023google_service_type\030\006 \001(\0162E.goo" + + "gle.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType\"\367\002\n" + "\006Target\022\026\n" + "\022TARGET_UNSPECIFIED\020\000\022\014\n" + "\010INSTANCE\020\001\022\014\n" @@ -520,8 +561,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PRIVATE_GOOGLE_ACCESS\020\004\022\031\n" + "\025SERVERLESS_VPC_ACCESS\020\005\"\216\003\n" + "\013ForwardInfo\022J\n" - + "\006target\030\001 \001(\0162:.google.cloud" - + ".networkmanagement.v1beta1.ForwardInfo.Target\022\024\n" + + "\006target\030\001" + + " \001(\0162:.google.cloud.networkmanagement.v1beta1.ForwardInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\376\001\n" + "\006Target\022\026\n" @@ -536,13 +577,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007NCC_HUB\020\010\022\024\n" + "\020ROUTER_APPLIANCE\020\t\022\034\n" + "\030SECURE_WEB_PROXY_GATEWAY\020\n" - + "\"\251\013\n" + + "\"\313\013\n" + "\tAbortInfo\022F\n" - + "\005cause\030\001 \001(\01627.google.cloud.n" - + "etworkmanagement.v1beta1.AbortInfo.Cause\022\024\n" + + "\005cause\030\001" + + " \001(\01627.google.cloud.networkmanagement.v1beta1.AbortInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022#\n" - + "\033projects_missing_permission\030\003 \003(\t\"\372\t\n" + + "\033projects_missing_permission\030\003 \003(\t\"\234\n\n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\027\n" + "\017UNKNOWN_NETWORK\020\001\032\002\010\001\022\027\n" @@ -583,14 +624,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027NON_ROUTABLE_IP_ADDRESS\020\026\022+\n" + "\'UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT\020\036\022-\n" + ")UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG\020\037\022\033\n" - + "\027NO_SERVERLESS_IP_RANGES\020%\"\225\036\n" + + "\027NO_SERVERLESS_IP_RANGES\020%\022 \n" + + "\034IP_VERSION_PROTOCOL_MISMATCH\020(\"\320 \n" + "\010DropInfo\022E\n" - + "\005cause\030\001 \001(\01626.goo" - + "gle.cloud.networkmanagement.v1beta1.DropInfo.Cause\022\024\n" + + "\005cause\030\001" + + " \001(\01626.google.cloud.networkmanagement.v1beta1.DropInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\021\n" + "\tsource_ip\030\003 \001(\t\022\026\n" + "\016destination_ip\030\004 \001(\t\022\016\n" - + "\006region\030\005 \001(\t\"\360\034\n" + + "\006region\030\005 \001(\t\022\037\n" + + "\027source_geolocation_code\030\006 \001(\t\022$\n" + + "\034destination_geolocation_code\030\007 \001(\t\"\344\036\n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\034\n" + "\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031\n" @@ -676,7 +720,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036REDIS_CLUSTER_UNSUPPORTED_PORT\020L\022 \n" + "\034REDIS_CLUSTER_NO_EXTERNAL_IP\020M\022&\n" + "\"REDIS_CLUSTER_UNSUPPORTED_PROTOCOL\020O\022*\n" - + "&NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION\020P\022*\n" + + "&NO_ADVERTISED_ROUTE_TO_GCP_DESTINATIO", + "N\020P\022*\n" + "&NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION\020Q\0225\n" + "1NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION\020R\022+\n" + "\'PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED\020S\022\"\n" @@ -686,7 +731,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "3TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED\020Y\022\035\n" + "\031NO_MATCHING_NAT64_GATEWAY\020Z\022-\n" + ")LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH\020`\0222\n" - + ".NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION\020a\"\201\001\n\r" + + ".NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION\020a\022\"\n" + + "\036CLOUD_NAT_PROTOCOL_UNSUPPORTED\020c\022(\n" + + "$L2_INTERCONNECT_UNSUPPORTED_PROTOCOL\020d\022$\n" + + " L2_INTERCONNECT_UNSUPPORTED_PORT\020e\022+\n" + + "\'L2_INTERCONNECT_DESTINATION_IP_MISMATCH\020f\022.\n" + + "*NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED\020h\022!\n" + + "\035HYBRID_SUBNET_REGION_MISMATCH\020i\"\201\001\n\r" + "GKEMasterInfo\022\023\n" + "\013cluster_uri\030\002 \001(\t\022\033\n" + "\023cluster_network_uri\030\004 \001(\t\022\023\n" @@ -710,8 +761,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020RedisClusterInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\023\n" - + "\013network_ur", - "i\030\003 \001(\t\022/\n" + + "\013network_uri\030\003 \001(\t\022/\n" + "\035discovery_endpoint_ip_address\030\004 \001(" + "\tB\010\342\214\317\327\010\002\010\004\022/\n" + "\035secondary_endpoint_ip_address\030\005 \001(" @@ -720,8 +770,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CloudFunctionInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\020\n" - + "\010location\030\003 \001(\t\022\022\n" - + "\n" + + "\010location\030\003 \001(\t\022\022\n\n" + "version_id\030\004 \001(\003\"`\n" + "\024CloudRunRevisionInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" @@ -745,10 +794,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\005 \001(\t\"I\n" + " ServerlessExternalConnectionInfo\022%\n" + "\023selected_ip_address\030\001 \001(" - + "\tB\010\342\214\317\327\010\002\010\004\"\364\003\n" + + "\tB\010\342\214\317\327\010\002\010\004\"\222\004\n" + "\007NatInfo\022B\n" - + "\004type\030\001 \001(\01624." - + "google.cloud.networkmanagement.v1beta1.NatInfo.Type\022\020\n" + + "\004type\030\001" + + " \001(\01624.google.cloud.networkmanagement.v1beta1.NatInfo.Type\022\020\n" + "\010protocol\030\002 \001(\t\022\023\n" + "\013network_uri\030\003 \001(\t\022\025\n\r" + "old_source_ip\030\004 \001(\t\022\025\n\r" @@ -762,13 +811,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024new_destination_port\030\013 \001(\005\022\022\n\n" + "router_uri\030\014 \001(\t\022\030\n" + "\020nat_gateway_name\030\r" - + " \001(\t\"|\n" + + " \001(\t\"\231\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\030\n" + "\024INTERNAL_TO_EXTERNAL\020\001\022\030\n" + "\024EXTERNAL_TO_INTERNAL\020\002\022\r\n" + "\tCLOUD_NAT\020\003\022\033\n" - + "\027PRIVATE_SERVICE_CONNECT\020\004\"\244\002\n" + + "\027PRIVATE_SERVICE_CONNECT\020\004\022\033\n" + + "\027GKE_POD_IP_MASQUERADING\020\005\"\244\002\n" + "\023ProxyConnectionInfo\022\020\n" + "\010protocol\030\001 \001(\t\022\025\n\r" + "old_source_ip\030\002 \001(\t\022\025\n\r" @@ -793,8 +843,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025psc_google_api_target\030\n" + " \001(\t\022\030\n" + "\020health_check_uri\030\006 \001(\t\022\221\001\n" - + "#health_check_firewalls_config_state\030\007 \001(\0162_.google.cloud.networkmana" - + "gement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigStateB\003\340A\003\"\315\001\n" + + "#health_check_firewalls_config_state\030\007 \001(\0162_.google.cloud.network" + + "management.v1beta1.LoadBalancerBackendIn" + + "fo.HealthCheckFirewallsConfigStateB\003\340A\003\"\315\001\n" + "\037HealthCheckFirewallsConfigState\0223\n" + "/HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED\020\000\022\030\n" + "\024FIREWALLS_CONFIGURED\020\001\022\"\n" @@ -819,10 +870,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036TCP_UDP_INTERNAL_LOAD_BALANCER\020\n" + "B\222\002\n" + "*com.google.cloud.networkmanagement.v1beta1B\n" - + "TraceProtoP\001ZXcloud.google.com/go/networkmanagement/apiv" - + "1beta1/networkmanagementpb;networkmanagementpb\252\002&Google.Cloud.NetworkManagement." - + "V1Beta1\312\002&Google\\Cloud\\NetworkManagement" - + "\\V1beta1\352\002)Google::Cloud::NetworkManagement::V1beta1b\006proto3" + + "TraceProtoP\001ZXcloud.google.com/go/networkmanagement/" + + "apiv1beta1/networkmanagementpb;networkmanagementpb\252\002&Google.Cloud.NetworkManagem" + + "ent.V1Beta1\312\002&Google\\Cloud\\NetworkManage" + + "ment\\V1beta1\352\002)Google::Cloud::NetworkManagement::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -855,8 +906,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "GoogleService", "ForwardingRule", + "HybridSubnet", "VpnGateway", "VpnTunnel", + "InterconnectAttachment", "VpcConnector", "DirectVpcEgressConnection", "ServerlessExternalConnection", @@ -924,6 +977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PolicyUri", "FirewallRuleType", "PolicyPriority", + "TargetType", }); internal_static_google_cloud_networkmanagement_v1beta1_RouteInfo_descriptor = getDescriptor().getMessageTypes().get(5); @@ -1002,8 +1056,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckAllowingFirewallRules", "HealthCheckBlockingFirewallRules", }); - internal_static_google_cloud_networkmanagement_v1beta1_VpnGatewayInfo_descriptor = + internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_HybridSubnetInfo_descriptor, + new java.lang.String[] { + "DisplayName", "Uri", "Region", + }); + internal_static_google_cloud_networkmanagement_v1beta1_VpnGatewayInfo_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_networkmanagement_v1beta1_VpnGatewayInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_VpnGatewayInfo_descriptor, @@ -1011,7 +1073,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "NetworkUri", "IpAddress", "VpnTunnelUri", "Region", }); internal_static_google_cloud_networkmanagement_v1beta1_VpnTunnelInfo_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_networkmanagement_v1beta1_VpnTunnelInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_VpnTunnelInfo_descriptor, @@ -1026,8 +1088,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Region", "RoutingType", }); + internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_InterconnectAttachmentInfo_descriptor, + new java.lang.String[] { + "DisplayName", + "Uri", + "InterconnectUri", + "Region", + "CloudRouterUri", + "Type", + "L2AttachmentMatchedIpAddress", + }); internal_static_google_cloud_networkmanagement_v1beta1_EndpointInfo_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_networkmanagement_v1beta1_EndpointInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_EndpointInfo_descriptor, @@ -1042,7 +1118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceAgentUri", }); internal_static_google_cloud_networkmanagement_v1beta1_DeliverInfo_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_networkmanagement_v1beta1_DeliverInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_DeliverInfo_descriptor, @@ -1055,7 +1131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleServiceType", }); internal_static_google_cloud_networkmanagement_v1beta1_ForwardInfo_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_networkmanagement_v1beta1_ForwardInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_ForwardInfo_descriptor, @@ -1063,7 +1139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Target", "ResourceUri", "IpAddress", }); internal_static_google_cloud_networkmanagement_v1beta1_AbortInfo_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_networkmanagement_v1beta1_AbortInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_AbortInfo_descriptor, @@ -1071,15 +1147,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Cause", "ResourceUri", "IpAddress", "ProjectsMissingPermission", }); internal_static_google_cloud_networkmanagement_v1beta1_DropInfo_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_networkmanagement_v1beta1_DropInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_DropInfo_descriptor, new java.lang.String[] { - "Cause", "ResourceUri", "SourceIp", "DestinationIp", "Region", + "Cause", + "ResourceUri", + "SourceIp", + "DestinationIp", + "Region", + "SourceGeolocationCode", + "DestinationGeolocationCode", }); internal_static_google_cloud_networkmanagement_v1beta1_GKEMasterInfo_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_networkmanagement_v1beta1_GKEMasterInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_GKEMasterInfo_descriptor, @@ -1087,7 +1169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClusterUri", "ClusterNetworkUri", "InternalIp", "ExternalIp", "DnsEndpoint", }); internal_static_google_cloud_networkmanagement_v1beta1_CloudSQLInstanceInfo_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_networkmanagement_v1beta1_CloudSQLInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_CloudSQLInstanceInfo_descriptor, @@ -1095,7 +1177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "NetworkUri", "InternalIp", "ExternalIp", "Region", }); internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_RedisInstanceInfo_descriptor, @@ -1103,7 +1185,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "NetworkUri", "PrimaryEndpointIp", "ReadEndpointIp", "Region", }); internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_RedisClusterInfo_descriptor, @@ -1116,7 +1198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", }); internal_static_google_cloud_networkmanagement_v1beta1_CloudFunctionInfo_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_networkmanagement_v1beta1_CloudFunctionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_CloudFunctionInfo_descriptor, @@ -1124,7 +1206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", "VersionId", }); internal_static_google_cloud_networkmanagement_v1beta1_CloudRunRevisionInfo_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_networkmanagement_v1beta1_CloudRunRevisionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_CloudRunRevisionInfo_descriptor, @@ -1132,7 +1214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", "ServiceUri", }); internal_static_google_cloud_networkmanagement_v1beta1_AppEngineVersionInfo_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_networkmanagement_v1beta1_AppEngineVersionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_AppEngineVersionInfo_descriptor, @@ -1140,7 +1222,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Runtime", "Environment", }); internal_static_google_cloud_networkmanagement_v1beta1_VpcConnectorInfo_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_networkmanagement_v1beta1_VpcConnectorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_VpcConnectorInfo_descriptor, @@ -1148,7 +1230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", }); internal_static_google_cloud_networkmanagement_v1beta1_DirectVpcEgressConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_networkmanagement_v1beta1_DirectVpcEgressConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_DirectVpcEgressConnectionInfo_descriptor, @@ -1156,7 +1238,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkUri", "SubnetworkUri", "SelectedIpRange", "SelectedIpAddress", "Region", }); internal_static_google_cloud_networkmanagement_v1beta1_ServerlessExternalConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_networkmanagement_v1beta1_ServerlessExternalConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_ServerlessExternalConnectionInfo_descriptor, @@ -1164,7 +1246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SelectedIpAddress", }); internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor, @@ -1184,7 +1266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NatGatewayName", }); internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor, @@ -1202,7 +1284,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkUri", }); internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor, @@ -1219,7 +1301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckFirewallsConfigState", }); internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor, @@ -1227,7 +1309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bucket", }); internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_ServerlessNegInfo_descriptor, diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigProto.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigProto.java index 56146109a90c..2df8aa48f5b4 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1beta1_VpcFlowLogsConfig_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1beta1_VpcFlowLogsConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -117,14 +121,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_metadataB\016\n" + "\014_filter_exprB\031\n" + "\027_cross_project_metadataB\030\n" - + "\026_target_resource_stateB\213\003\n" - + "*com.google.cloud.networkmanagement.v1beta1B\026VpcFlowLogsConfigProtoP\001ZXcloud.go" - + "ogle.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmanagementpb" - + "\252\002&Google.Cloud.NetworkManagement.V1Beta" - + "1\312\002&Google\\Cloud\\NetworkManagement\\V1bet" - + "a1\352\002)Google::Cloud::NetworkManagement::V1beta1\352Aj\n" - + "5networkmanagement.googleapis.com/OrganizationLocation\0221organizations/" - + "{organization}/locations/{location}b\006proto3" + + "\026_target_resource_state\"\347\007\n" + + "\032EffectiveVpcFlowLogsConfig\022\014\n" + + "\004name\030\001 \001(\t\022S\n" + + "\005state\030\003 \001(\0162?.google.cloud.network" + + "management.v1beta1.VpcFlowLogsConfig.StateH\001\210\001\001\022p\n" + + "\024aggregation_interval\030\004 \001(\0162M.google.cloud.networkmanagement.v1beta1.V" + + "pcFlowLogsConfig.AggregationIntervalH\002\210\001\001\022\032\n\r" + + "flow_sampling\030\005 \001(\002H\003\210\001\001\022Y\n" + + "\010metadata\030\006 \001(\0162B.google.cloud.networkmanagement" + + ".v1beta1.VpcFlowLogsConfig.MetadataH\004\210\001\001\022\027\n" + + "\017metadata_fields\030\007 \003(\t\022\030\n" + + "\013filter_expr\030\010 \001(\tH\005\210\001\001\022s\n" + + "\026cross_project_metadata\030\r" + + " \001(\0162N.google.cloud.networkmanagement.v1b" + + "eta1.VpcFlowLogsConfig.CrossProjectMetadataH\006\210\001\001\022\021\n" + + "\007network\030d \001(\tH\000\022\020\n" + + "\006subnet\030e \001(\tH\000\022!\n" + + "\027interconnect_attachment\030f \001(\tH\000\022\024\n\n" + + "vpn_tunnel\030g \001(\tH\000\022\\\n" + + "\005scope\030\014 \001(\0162H." + + "google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.ScopeH\007\210\001\001\"\216\001\n" + + "\005Scope\022\025\n" + + "\021SCOPE_UNSPECIFIED\020\000\022\n\n" + + "\006SUBNET\020\001\022\026\n" + + "\022COMPUTE_API_SUBNET\020\002\022\013\n" + + "\007NETWORK\020\003\022\016\n\n" + + "VPN_TUNNEL\020\004\022\033\n" + + "\027INTERCONNECT_ATTACHMENT\020\005\022\020\n" + + "\014ORGANIZATION\020\006B\021\n" + + "\017target_resourceB\010\n" + + "\006_stateB\027\n" + + "\025_aggregation_intervalB\020\n" + + "\016_flow_samplingB\013\n" + + "\t_metadataB\016\n" + + "\014_filter_exprB\031\n" + + "\027_cross_project_metadataB\010\n" + + "\006_scopeB\213\003\n" + + "*com.google.cloud.networkmanagement.v1beta1B\026VpcFlowLogsConfigProtoP\001ZXcloud." + + "google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmanagement" + + "pb\252\002&Google.Cloud.NetworkManagement.V1Be" + + "ta1\312\002&Google\\Cloud\\NetworkManagement\\V1b" + + "eta1\352\002)Google::Cloud::NetworkManagement::V1beta1\352Aj\n" + + "5networkmanagement.googleapis.com/OrganizationLocation\0221organization" + + "s/{organization}/locations/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -169,6 +209,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_EffectiveVpcFlowLogsConfig_descriptor, + new java.lang.String[] { + "Name", + "State", + "AggregationInterval", + "FlowSampling", + "Metadata", + "MetadataFields", + "FilterExpr", + "CrossProjectMetadata", + "Network", + "Subnet", + "InterconnectAttachment", + "VpnTunnel", + "Scope", + "TargetResource", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsProto.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsProto.java index 318555ae8e6c..18ec0a208e07 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsProto.java @@ -60,6 +60,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -117,76 +125,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025vpc_flow_logs_configs\030\001 " + "\003(\01329.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t2\315\016\n" + + "\013unreachable\030\003 \003(\t\"\316\001\n" + + "#ShowEffectiveFlowLogsConfigsRequest\022J\n" + + "\006parent\030\001 \001(" + + "\tB:\340A\002\372A4\0222networkmanagement.googleapis.com/VpcFlowLogsConfig\022\025\n" + + "\010resource\030\002 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\275\001\n" + + "$ShowEffectiveFlowLogsConfigsResponse\022g\n" + + "\033effective_flow_logs_configs\030\001 \003(\0132B.go" + + "ogle.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t2\353\020\n" + "\022VpcFlowLogsService\022\365\001\n" - + "\026ListVpcFlowLogsConfigs\022E.google.cloud.networkmanagement.v1beta1." - + "ListVpcFlowLogsConfigsRequest\032F.google.cloud.networkmanagement.v1beta1.ListVpcFl" - + "owLogsConfigsResponse\"L\332A\006parent\202\323\344\223\002=\022;" - + "/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs\022\342\001\n" - + "\024GetVpcFlowLogsConfig\022C.google.cloud.networkmanagement.v1" - + "beta1.GetVpcFlowLogsConfigRequest\0329.google.cloud.networkmanagement.v1beta1.VpcFl" - + "owLogsConfig\"J\332A\004name\202\323\344\223\002=\022;/v1beta1/{n" - + "ame=projects/*/locations/*/vpcFlowLogsConfigs/*}\022\342\002\n" - + "\027CreateVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Cr" - + "eateVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\337\001\312AM\n" - + "\021VpcFlowLogsConfig\0228google.cloud.networkmanagement.v1b" - + "eta1.OperationMetadata\332A3parent,vpc_flow" - + "_logs_config,vpc_flow_logs_config_id\202\323\344\223" - + "\002S\";/v1beta1/{parent=projects/*/location" - + "s/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_config\022\344\002\n" - + "\027UpdateVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Updat" - + "eVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\341\001\312AM\n" - + "\021VpcFlowLogsConfi" - + "g\0228google.cloud.networkmanagement.v1beta1.OperationMetadata\332A vpc_flow_logs_conf" - + "ig,update_mask\202\323\344\223\002h2P/v1beta1/{vpc_flow" - + "_logs_config.name=projects/*/locations/*" - + "/vpcFlowLogsConfigs/*}:\024vpc_flow_logs_config\022\241\002\n" - + "\027DeleteVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Delete" - + "VpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\236\001\312AQ\n" - + "\025google.protobuf.Empty\0228google.cloud.networkmanagement.v1b" - + "eta1.OperationMetadata\332A\004name\202\323\344\223\002=*;/v1" - + "beta1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}\022\223\002\n" - + "\032QueryOrgVpcFlowLogsConfigs\022I.google.cloud.networkmanagement" - + ".v1beta1.QueryOrgVpcFlowLogsConfigsRequest\032J.google.cloud.networkmanagement.v1be" - + "ta1.QueryOrgVpcFlowLogsConfigsResponse\"^" - + "\202\323\344\223\002X\022V/v1beta1/{parent=projects/*/loca" - + "tions/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs\032T\312A networkmanagement.goo" - + "gleapis.com\322A.https://www.googleapis.com/auth/cloud-platform2\334\014\n" + + "\026ListVpcFlowLogsConfigs\022E.google.cloud.networkmanagement.v1beta1" + + ".ListVpcFlowLogsConfigsRequest\032F.google.cloud.networkmanagement.v1beta1.ListVpcF" + + "lowLogsConfigsResponse\"L\332A\006parent\202\323\344\223\002=\022" + + ";/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs\022\342\001\n" + + "\024GetVpcFlowLogsConfig\022C.google.cloud.networkmanagement.v" + + "1beta1.GetVpcFlowLogsConfigRequest\0329.google.cloud.networkmanagement.v1beta1.VpcF" + + "lowLogsConfig\"J\332A\004name\202\323\344\223\002=\022;/v1beta1/{" + + "name=projects/*/locations/*/vpcFlowLogsConfigs/*}\022\342\002\n" + + "\027CreateVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.C" + + "reateVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\337\001\312AM\n" + + "\021VpcFlowLogsConfig\0228google.cloud.networkmanagement.v1" + + "beta1.OperationMetadata\332A3parent,vpc_flo" + + "w_logs_config,vpc_flow_logs_config_id\202\323\344" + + "\223\002S\";/v1beta1/{parent=projects/*/locatio" + + "ns/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_config\022\344\002\n" + + "\027UpdateVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Upda" + + "teVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\341\001\312AM\n" + + "\021VpcFlowLogsConf" + + "ig\0228google.cloud.networkmanagement.v1beta1.OperationMetadata\332A vpc_flow_logs_con" + + "fig,update_mask\202\323\344\223\002h2P/v1beta1/{vpc_flo" + + "w_logs_config.name=projects/*/locations/" + + "*/vpcFlowLogsConfigs/*}:\024vpc_flow_logs_config\022\241\002\n" + + "\027DeleteVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Delet" + + "eVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\236\001\312AQ\n" + + "\025google.protobuf.Empty\0228google.cloud.networkmanagement.v1" + + "beta1.OperationMetadata\332A\004name\202\323\344\223\002=*;/v" + + "1beta1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}\022\223\002\n" + + "\032QueryOrgVpcFlowLogsConfigs\022I.google.cloud.networkmanagemen" + + "t.v1beta1.QueryOrgVpcFlowLogsConfigsRequest\032J.google.cloud.networkmanagement.v1b" + + "eta1.QueryOrgVpcFlowLogsConfigsResponse\"" + + "^\202\323\344\223\002X\022V/v1beta1/{parent=projects/*/loc" + + "ations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs\022\233\002\n" + + "\034ShowEffectiveFlowLogsConfigs\022K.google.cloud.networkmanagemen" + + "t.v1beta1.ShowEffectiveFlowLogsConfigsRequest\032L.google.cloud.networkmanagement.v" + + "1beta1.ShowEffectiveFlowLogsConfigsRespo" + + "nse\"`\202\323\344\223\002Z\022X/v1beta1/{parent=projects/*" + + "/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs\032T\312A networkmanagem" + + "ent.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform2\334\014\n" + "\036OrganizationVpcFlowLogsService\022\372\001\n" - + "\026ListVpcFlowLogsConfigs\022E.google.cloud.networkmanagement.v1be" - + "ta1.ListVpcFlowLogsConfigsRequest\032F.google.cloud.networkmanagement.v1beta1.ListV" - + "pcFlowLogsConfigsResponse\"Q\332A\006parent\202\323\344\223" - + "\002B\022@/v1beta1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs\022\347\001\n" - + "\024GetVpcFlowLogsConfig\022C.google.cloud.networkmana" - + "gement.v1beta1.GetVpcFlowLogsConfigRequest\0329.google.cloud.networkmanagement.v1be" - + "ta1.VpcFlowLogsConfig\"O\332A\004name\202\323\344\223\002B\022@/v" - + "1beta1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}\022\347\002\n" - + "\027CreateVpcFlowLogsConfig\022F.google.cloud.networkmanagem" - + "ent.v1beta1.CreateVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\344\001\312AM\n" - + "\021VpcFlowLogsConfig\0228google.cloud.network" - + "management.v1beta1.OperationMetadata\332A3parent,vpc_flow_logs_config,vpc_flow_logs" - + "_config_id\202\323\344\223\002X\"@/v1beta1/{parent=organ" - + "izations/*/locations/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_config\022\351\002\n" - + "\027UpdateVpcFlowLogsConfig\022F.google.cloud.networkmanag" - + "ement.v1beta1.UpdateVpcFlowLogsConfigReq" - + "uest\032\035.google.longrunning.Operation\"\346\001\312AM\n" - + "\021VpcFlowLogsConfig\0228google.cloud.netwo" - + "rkmanagement.v1beta1.OperationMetadata\332A" - + " vpc_flow_logs_config,update_mask\202\323\344\223\002m2" - + "U/v1beta1/{vpc_flow_logs_config.name=org" - + "anizations/*/locations/*/vpcFlowLogsConfigs/*}:\024vpc_flow_logs_config\022\246\002\n" - + "\027DeleteVpcFlowLogsConfig\022F.google.cloud.networkm" - + "anagement.v1beta1.DeleteVpcFlowLogsConfi" - + "gRequest\032\035.google.longrunning.Operation\"\243\001\312AQ\n" - + "\025google.protobuf.Empty\0228google.cloud.networkmanagement.v1beta1.OperationMe" - + "tadata\332A\004name\202\323\344\223\002B*@/v1beta1/{name=orga" - + "nizations/*/locations/*/vpcFlowLogsConfigs/*}\032T\312A networkmanagement.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/cloud-platformB\230\002\n" - + "*com.google.cloud.networkmanagement.v1beta1B\020VpcFlowLogsProtoP\001ZX" - + "cloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmana" - + "gementpb\252\002&Google.Cloud.NetworkManagemen" - + "t.V1Beta1\312\002&Google\\Cloud\\NetworkManageme" - + "nt\\V1beta1\352\002)Google::Cloud::NetworkManagement::V1beta1b\006proto3" + + "\026ListVpcFlowLogsConfigs\022E.google.cloud.networkmanageme" + + "nt.v1beta1.ListVpcFlowLogsConfigsRequest\032F.google.cloud.networkmanagement.v1beta" + + "1.ListVpcFlowLogsConfigsResponse\"Q\332A\006par" + + "ent\202\323\344\223\002B\022@/v1beta1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs\022\347\001\n" + + "\024GetVpcFlowLogsConfig\022C.google.cloud.netw" + + "orkmanagement.v1beta1.GetVpcFlowLogsConfigRequest\0329.google.cloud.networkmanageme" + + "nt.v1beta1.VpcFlowLogsConfig\"O\332A\004name\202\323\344" + + "\223\002B\022@/v1beta1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}\022\347\002\n" + + "\027CreateVpcFlowLogsConfig\022F.google.cloud.network" + + "management.v1beta1.CreateVpcFlowLogsConf" + + "igRequest\032\035.google.longrunning.Operation\"\344\001\312AM\n" + + "\021VpcFlowLogsConfig\0228google.cloud.networkmanagement.v1beta1.OperationMetad" + + "ata\332A3parent,vpc_flow_logs_config,vpc_fl" + + "ow_logs_config_id\202\323\344\223\002X\"@/v1beta1/{paren" + + "t=organizations/*/locations/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_config\022\351\002\n" + + "\027UpdateVpcFlowLogsConfig\022F.google.cloud.netwo" + + "rkmanagement.v1beta1.UpdateVpcFlowLogsCo" + + "nfigRequest\032\035.google.longrunning.Operation\"\346\001\312AM\n" + + "\021VpcFlowLogsConfig\0228google.clou" + + "d.networkmanagement.v1beta1.OperationMetadata\332A vpc_flow_logs_config,update_mask" + + "\202\323\344\223\002m2U/v1beta1/{vpc_flow_logs_config.n" + + "ame=organizations/*/locations/*/vpcFlowLogsConfigs/*}:\024vpc_flow_logs_config\022\246\002\n" + + "\027DeleteVpcFlowLogsConfig\022F.google.cloud.n" + + "etworkmanagement.v1beta1.DeleteVpcFlowLo" + + "gsConfigRequest\032\035.google.longrunning.Operation\"\243\001\312AQ\n" + + "\025google.protobuf.Empty\0228google.cloud.networkmanagement.v1beta1.Oper" + + "ationMetadata\332A\004name\202\323\344\223\002B*@/v1beta1/{na" + + "me=organizations/*/locations/*/vpcFlowLogsConfigs/*}\032T\312A networkmanagement.googl" + + "eapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\230\002\n" + + "*com.google.cloud.networkmanagement.v1beta1B\020VpcFlowLogsPr" + + "otoP\001ZXcloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;netw" + + "orkmanagementpb\252\002&Google.Cloud.NetworkMa" + + "nagement.V1Beta1\312\002&Google\\Cloud\\NetworkM" + + "anagement\\V1beta1\352\002)Google::Cloud::NetworkManagement::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -266,6 +291,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "VpcFlowLogsConfigs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "Resource", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_ShowEffectiveFlowLogsConfigsResponse_descriptor, + new java.lang.String[] { + "EffectiveFlowLogsConfigs", "NextPageToken", "Unreachable", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto index 547dc87a81ef..ffb3abd65003 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto @@ -195,8 +195,8 @@ message Endpoint { // used for protocol forwarding, Private Service Connect and other network // services to provide forwarding information in the control plane. Applicable // only to destination endpoint. Format: - // projects/{project}/global/forwardingRules/{id} or - // projects/{project}/regions/{region}/forwardingRules/{id} + // `projects/{project}/global/forwardingRules/{id}` or + // `projects/{project}/regions/{region}/forwardingRules/{id}` string forwarding_rule = 13; // Output only. Specifies the type of the target of the forwarding rule. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto index 2419955c7166..d7f6ff052f55 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto @@ -160,12 +160,19 @@ message Step { // used in new tests. ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11 [deprecated = true]; + // Forwarding state: arriving at a hybrid subnet. Appropriate routing + // configuration will be determined here. + ARRIVE_AT_HYBRID_SUBNET = 38; + // Forwarding state: arriving at a Cloud VPN gateway. ARRIVE_AT_VPN_GATEWAY = 12; // Forwarding state: arriving at a Cloud VPN tunnel. ARRIVE_AT_VPN_TUNNEL = 13; + // Forwarding state: arriving at an interconnect attachment. + ARRIVE_AT_INTERCONNECT_ATTACHMENT = 37; + // Forwarding state: arriving at a VPC connector. ARRIVE_AT_VPC_CONNECTOR = 24; @@ -177,7 +184,8 @@ message Step { // forwarded through public (external) connectivity. SERVERLESS_EXTERNAL_CONNECTION = 36; - // Transition state: packet header translated. + // Transition state: packet header translated. The `nat` field is populated + // with the translation information. NAT = 14; // Transition state: original connection is terminated and a new proxied @@ -241,12 +249,18 @@ message Step { // Display information of a Compute Engine forwarding rule. ForwardingRuleInfo forwarding_rule = 9; + // Display information of a hybrid subnet. + HybridSubnetInfo hybrid_subnet = 36; + // Display information of a Compute Engine VPN gateway. VpnGatewayInfo vpn_gateway = 10; // Display information of a Compute Engine VPN tunnel. VpnTunnelInfo vpn_tunnel = 11; + // Display information of an interconnect attachment. + InterconnectAttachmentInfo interconnect_attachment = 35; + // Display information of a VPC connector. VpcConnectorInfo vpc_connector = 21; @@ -438,6 +452,19 @@ message FirewallInfo { ANALYSIS_SKIPPED = 102; } + // Target type of the firewall rule. + enum TargetType { + // Target type is not specified. In this case we treat the rule as applying + // to INSTANCES target type. + TARGET_TYPE_UNSPECIFIED = 0; + + // Firewall rule applies to instances. + INSTANCES = 1; + + // Firewall rule applies to internal managed load balancers. + INTERNAL_MANAGED_LB = 2; + } + // The display name of the firewall rule. This field might be empty for // firewall policy rules. string display_name = 1; @@ -483,6 +510,9 @@ message FirewallInfo { // This field is not applicable to VPC firewall rules and implied VPC firewall // rules. int32 policy_priority = 12; + + // Target type of the firewall rule. + TargetType target_type = 13; } // For display only. Metadata associated with a Compute Engine route. @@ -853,6 +883,18 @@ message LoadBalancerBackend { repeated string health_check_blocking_firewall_rules = 5; } +// For display only. Metadata associated with a hybrid subnet. +message HybridSubnetInfo { + // Name of a hybrid subnet. + string display_name = 1; + + // URI of a hybrid subnet. + string uri = 2; + + // Name of a Google Cloud region where the hybrid subnet is configured. + string region = 3; +} + // For display only. Metadata associated with a Compute Engine VPN gateway. message VpnGatewayInfo { // Name of a VPN gateway. @@ -922,6 +964,51 @@ message VpnTunnelInfo { RoutingType routing_type = 9; } +// For display only. Metadata associated with an Interconnect attachment. +message InterconnectAttachmentInfo { + // What type of interconnect attachment this is. + enum Type { + // Unspecified type. + TYPE_UNSPECIFIED = 0; + + // Attachment to a dedicated interconnect. + DEDICATED = 1; + + // Attachment to a partner interconnect, created by the customer. + PARTNER = 2; + + // Attachment to a partner interconnect, created by the partner. + PARTNER_PROVIDER = 3; + + // Attachment to a L2 interconnect, created by the customer. + L2_DEDICATED = 4; + } + + // Name of an Interconnect attachment. + string display_name = 1; + + // URI of an Interconnect attachment. + string uri = 2; + + // URI of the Interconnect where the Interconnect attachment is + // configured. + string interconnect_uri = 3; + + // Name of a Google Cloud region where the Interconnect attachment is + // configured. + string region = 4; + + // URI of the Cloud Router to be used for dynamic routing. + string cloud_router_uri = 5; + + // The type of interconnect attachment this is. + Type type = 6; + + // Appliance IP address that was matched for L2_DEDICATED attachments. + string l2_attachment_matched_ip_address = 7 + [(google.api.field_info).format = IPV4_OR_IPV6]; +} + // For display only. The specification of the endpoints for the test. // EndpointInfo is derived from source and destination Endpoint and validated // by the backend data plane model. @@ -1262,6 +1349,10 @@ message AbortInfo { // Aborted because the source endpoint is a Cloud Run revision with direct // VPC access enabled, but there are no reserved serverless IP ranges. NO_SERVERLESS_IP_RANGES = 37; + + // Aborted because the used protocol is not supported for the used IP + // version. + IP_VERSION_PROTOCOL_MISMATCH = 40; } // Causes that the analysis is aborted. @@ -1651,6 +1742,31 @@ message DropInfo { // Packet from the unknown NCC network is dropped due to no known route // from the source network to the destination IP address. NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; + + // Packet is dropped by Cloud NAT due to using an unsupported protocol. + CLOUD_NAT_PROTOCOL_UNSUPPORTED = 99; + + // Packet is dropped due to using an unsupported protocol (any other than + // UDP) for L2 Interconnect. + L2_INTERCONNECT_UNSUPPORTED_PROTOCOL = 100; + + // Packet is dropped due to using an unsupported port (any other than + // 6081) for L2 Interconnect. + L2_INTERCONNECT_UNSUPPORTED_PORT = 101; + + // Packet is dropped due to destination IP not matching the appliance + // mapping IPs configured on the L2 Interconnect attachment. + L2_INTERCONNECT_DESTINATION_IP_MISMATCH = 102; + + // Packet could be dropped because it matches a route associated with an NCC + // spoke in the hybrid subnet context, but such a configuration is not + // supported. + NCC_ROUTE_WITHIN_HYBRID_SUBNET_UNSUPPORTED = 104; + + // Packet is dropped because the region of the hybrid subnet is different + // from the region of the next hop of the route matched within this hybrid + // subnet. + HYBRID_SUBNET_REGION_MISMATCH = 105; } // Cause that the packet is dropped. @@ -1667,6 +1783,12 @@ message DropInfo { // Region of the dropped packet (if relevant). string region = 5; + + // Geolocation (region code) of the source IP address (if relevant). + string source_geolocation_code = 6; + + // Geolocation (region code) of the destination IP address (if relevant). + string destination_geolocation_code = 7; } // For display only. Metadata associated with a Google Kubernetes Engine (GKE) @@ -1859,6 +1981,9 @@ message NatInfo { // Private service connect NAT. PRIVATE_SERVICE_CONNECT = 4; + + // GKE Pod IP address masquerading. + GKE_POD_IP_MASQUERADING = 5; } // Type of NAT. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto index e1a73bdd051d..de0fce9b18ac 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto @@ -138,6 +138,15 @@ service VpcFlowLogsService { get: "/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs" }; } + + // ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs + // configurations applicable to a specified resource. + rpc ShowEffectiveFlowLogsConfigs(ShowEffectiveFlowLogsConfigsRequest) + returns (ShowEffectiveFlowLogsConfigsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs" + }; + } } // The VPC Flow Logs organization service in the Google Cloud Network Management @@ -400,3 +409,46 @@ message QueryOrgVpcFlowLogsConfigsResponse { // Locations that could not be reached (when querying all locations with `-`). repeated string unreachable = 3; } + +// Request for the `ShowEffectiveFlowLogsConfigs` method. +message ShowEffectiveFlowLogsConfigsRequest { + // Required. The parent resource of the VpcFlowLogsConfig, specified in + // the following format: `projects/{project_id}/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + } + ]; + + // Required. The resource to get the effective VPC Flow Logs configuration + // for. The resource must belong to the same project as the parent. The + // resource must be a network, subnetwork, interconnect attachment, VPN + // tunnel, or a project. + string resource = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token from an earlier query, as returned in + // `next_page_token`. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter + // expression. A filter expression must use the supported [CEL logic + // operators] + // (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the `ShowEffectiveFlowLogsConfigs` method. +message ShowEffectiveFlowLogsConfigsResponse { + // List of Effective Vpc Flow Logs configurations. + repeated EffectiveVpcFlowLogsConfig effective_flow_logs_configs = 1; + + // Page token to fetch the next set of configurations. + string next_page_token = 2; + + // Locations that could not be reached (when querying all locations with `-`). + repeated string unreachable = 3; +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto index 24399457b968..e54d845d5643 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto @@ -210,3 +210,104 @@ message VpcFlowLogsConfig { google.protobuf.Timestamp update_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// A configuration to generate a response for GetEffectiveVpcFlowLogsConfig +// request. +message EffectiveVpcFlowLogsConfig { + // The scope for this flow log configuration. + enum Scope { + // Scope is unspecified. + SCOPE_UNSPECIFIED = 0; + + // Target resource is a subnet (Network Management API). + SUBNET = 1; + + // Target resource is a subnet, and the config originates from the Compute + // API. + COMPUTE_API_SUBNET = 2; + + // Target resource is a network. + NETWORK = 3; + + // Target resource is a VPN tunnel. + VPN_TUNNEL = 4; + + // Target resource is an interconnect attachment. + INTERCONNECT_ATTACHMENT = 5; + + // Configuration applies to an entire organization. + ORGANIZATION = 6; + } + + // Unique name of the configuration. The name can have one of the following + // forms: + // + // - For project-level configurations: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For organization-level configurations: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For a Compute config, the name will be the path of the subnet: + // `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` + string name = 1; + + // The state of the VPC Flow Log configuration. Default value is ENABLED. + // When creating a new configuration, it must be enabled. + // Setting state=DISABLED will pause the log generation for this config. + optional VpcFlowLogsConfig.State state = 3; + + // The aggregation interval for the logs. Default value is INTERVAL_5_SEC. + optional VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4; + + // The value of the field must be in (0, 1]. The sampling rate of VPC Flow + // Logs where 1.0 means all collected logs are reported. + // Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC + // Flow Logs, use the state field instead. + // Default value is 1.0. + optional float flow_sampling = 5; + + // Configures whether all, none or a subset of metadata fields should be + // added to the reported VPC flow logs. + // Default value is INCLUDE_ALL_METADATA. + optional VpcFlowLogsConfig.Metadata metadata = 6; + + // Custom metadata fields to include in the reported VPC flow logs. + // Can only be specified if "metadata" was set to CUSTOM_METADATA. + repeated string metadata_fields = 7; + + // Export filter used to define which VPC Flow Logs should be logged. + optional string filter_expr = 8; + + // Determines whether to include cross project annotations in the logs. + // This field is available only for organization configurations. If not + // specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + optional VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13; + + // Reference to the resource of the config scope. That is, the scope from + // which traffic is logged. The target resource must belong to the same + // project as the configuration. + // This field is not supported for organization level configurations. + oneof target_resource { + // Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + // within the network. + // Format: projects/{project_id}/global/networks/{name} + string network = 100; + + // Traffic will be logged from VMs within the subnetwork. + // Format: projects/{project_id}/regions/{region}/subnetworks/{name} + string subnet = 101; + + // Traffic will be logged from the Interconnect Attachment. + // Format: + // projects/{project_id}/regions/{region}/interconnectAttachments/{name} + string interconnect_attachment = 102; + + // Traffic will be logged from the VPN Tunnel. + // Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + string vpn_tunnel = 103; + } + + // Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). + optional Scope scope = 12; +} diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/create/SyncCreateSetCredentialsProvider.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..ca6384e865c4 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceSettings; +import com.google.cloud.networkmanagement.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings = + OrganizationVpcFlowLogsServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_Create_SetCredentialsProvider_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/create/SyncCreateSetEndpoint.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..f876a836a5ce --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_Create_SetEndpoint_sync] +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceSettings; +import com.google.cloud.networkmanagement.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings = + OrganizationVpcFlowLogsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_Create_SetEndpoint_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..86810372dda0 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings = + OrganizationVpcFlowLogsServiceSettings.newHttpJsonBuilder().build(); + OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_Create_UseHttpJsonTransport_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..8d51a5f8714e --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.longrunning.Operation; + +public class AsyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncCreateVpcFlowLogsConfig(); + } + + public static void asyncCreateVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVpcFlowLogsConfigId( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java new file mode 100644 index 000000000000..e6c1875b816c --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class AsyncCreateVpcFlowLogsConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateVpcFlowLogsConfigLRO(); + } + + public static void asyncCreateVpcFlowLogsConfigLRO() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVpcFlowLogsConfigId( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + OperationFuture future = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigOperationCallable() + .futureCall(request); + // Do something. + VpcFlowLogsConfig response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LRO_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..0127ad0a3674 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfig(); + } + + public static void syncCreateVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVpcFlowLogsConfigId( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient.createVpcFlowLogsConfigAsync(request).get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java new file mode 100644 index 000000000000..5b003a3d7d19 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..63912aa1fb04 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java new file mode 100644 index 000000000000..cf21451530ae --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..b2aec11098c4 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public +class SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java new file mode 100644 index 000000000000..8e5fbe28a362 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..f4892c96c227 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java new file mode 100644 index 000000000000..0225c6447929 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.longrunning.Operation; + +public class AsyncDeleteVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteVpcFlowLogsConfig(); + } + + public static void asyncDeleteVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient + .deleteVpcFlowLogsConfigCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java new file mode 100644 index 000000000000..1991f2c1f7da --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.protobuf.Empty; + +public class AsyncDeleteVpcFlowLogsConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteVpcFlowLogsConfigLRO(); + } + + public static void asyncDeleteVpcFlowLogsConfigLRO() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + OperationFuture future = + organizationVpcFlowLogsServiceClient + .deleteVpcFlowLogsConfigOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_LRO_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java new file mode 100644 index 000000000000..5141c2cb0d33 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncDeleteVpcFlowLogsConfig(); + } + + public static void syncDeleteVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(request).get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java new file mode 100644 index 000000000000..0d7a425ea968 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_String_sync] +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteVpcFlowLogsConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteVpcFlowLogsConfigString(); + } + + public static void syncDeleteVpcFlowLogsConfigString() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String name = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_String_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..5bb4f6cdbf6a --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteVpcFlowLogsConfigVpcflowlogsconfigname(); + } + + public static void syncDeleteVpcFlowLogsConfigVpcflowlogsconfigname() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..a1561506cd4d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..cca405d4bb52 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = organizationVpcFlowLogsServiceClient.getIamPolicy(request); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getlocation/AsyncGetLocation.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..4d665e2f5fa2 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetLocation_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getlocation/SyncGetLocation.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..aa4f89b50520 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getlocation/SyncGetLocation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = organizationVpcFlowLogsServiceClient.getLocation(request); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetLocation_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..1ba43b33ba93 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class AsyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncGetVpcFlowLogsConfig(); + } + + public static void asyncGetVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfigCallable().futureCall(request); + // Do something. + VpcFlowLogsConfig response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..87fbb3e2fc36 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class SyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfig(); + } + + public static void syncGetVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(request); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java new file mode 100644 index 000000000000..0f9ff16148ff --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_String_sync] +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class SyncGetVpcFlowLogsConfigString { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfigString(); + } + + public static void syncGetVpcFlowLogsConfigString() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String name = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_String_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..98501c51261c --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; + +public class SyncGetVpcFlowLogsConfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfigVpcflowlogsconfigname(); + } + + public static void syncGetVpcFlowLogsConfigVpcflowlogsconfigname() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listlocations/AsyncListLocations.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..e331552466ef --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListLocations_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listlocations/AsyncListLocationsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..0a90122d3918 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + organizationVpcFlowLogsServiceClient.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; + } + } + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListLocations_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listlocations/SyncListLocations.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..ce040d378146 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listlocations/SyncListLocations.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : + organizationVpcFlowLogsServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListLocations_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..c191f08369a6 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigs.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; + +public class AsyncListVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + asyncListVpcFlowLogsConfigs(); + } + + public static void asyncListVpcFlowLogsConfigs() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient + .listVpcFlowLogsConfigsPagedCallable() + .futureCall(request); + // Do something. + for (VpcFlowLogsConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigsPaged.java new file mode 100644 index 000000000000..94145370eafa --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Paged_async] +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.common.base.Strings; + +public class AsyncListVpcFlowLogsConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListVpcFlowLogsConfigsPaged(); + } + + public static void asyncListVpcFlowLogsConfigsPaged() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListVpcFlowLogsConfigsResponse response = + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigsCallable().call(request); + for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..ba5435300a7d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigs.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_sync] +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; + +public class SyncListVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigs(); + } + + public static void syncListVpcFlowLogsConfigs() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (VpcFlowLogsConfig element : + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsLocationname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsLocationname.java new file mode 100644 index 000000000000..b148b7460256 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Locationname_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; + +public class SyncListVpcFlowLogsConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsLocationname(); + } + + public static void syncListVpcFlowLogsConfigsLocationname() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (VpcFlowLogsConfig element : + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Locationname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java new file mode 100644 index 000000000000..f5f33559fd11 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Organizationlocationname_sync] +import com.google.cloud.networkmanagement.v1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; + +public class SyncListVpcFlowLogsConfigsOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsOrganizationlocationname(); + } + + public static void syncListVpcFlowLogsConfigsOrganizationlocationname() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (VpcFlowLogsConfig element : + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Organizationlocationname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsString.java new file mode 100644 index 000000000000..979f0689c39f --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_String_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; + +public class SyncListVpcFlowLogsConfigsString { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsString(); + } + + public static void syncListVpcFlowLogsConfigsString() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (VpcFlowLogsConfig element : + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_String_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..1671f8156091 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..e375431d0b75 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = organizationVpcFlowLogsServiceClient.setIamPolicy(request); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..ec0df51849f2 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..e2a724bf0885 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + organizationVpcFlowLogsServiceClient.testIamPermissions(request); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..08e3e7e7af12 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfig.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateVpcFlowLogsConfig(); + } + + public static void asyncUpdateVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient + .updateVpcFlowLogsConfigCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfigLRO.java new file mode 100644 index 000000000000..78331e1f9ecc --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfigLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVpcFlowLogsConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateVpcFlowLogsConfigLRO(); + } + + public static void asyncUpdateVpcFlowLogsConfigLRO() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + OperationFuture future = + organizationVpcFlowLogsServiceClient + .updateVpcFlowLogsConfigOperationCallable() + .futureCall(request); + // Do something. + VpcFlowLogsConfig response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_LRO_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..e53626393792 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncUpdateVpcFlowLogsConfig(); + } + + public static void syncUpdateVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient.updateVpcFlowLogsConfigAsync(request).get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask.java new file mode 100644 index 000000000000..07f7fd8d6c9d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_VpcflowlogsconfigFieldmask_sync] +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask(); + } + + public static void syncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask) + .get(); + } + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_VpcflowlogsconfigFieldmask_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservicesettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservicesettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..cea803b24067 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservicesettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsServiceSettings_CreateVpcFlowLogsConfig_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceSettings; +import java.time.Duration; + +public class SyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfig(); + } + + public static void syncCreateVpcFlowLogsConfig() 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 + OrganizationVpcFlowLogsServiceSettings.Builder organizationVpcFlowLogsServiceSettingsBuilder = + OrganizationVpcFlowLogsServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + organizationVpcFlowLogsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsServiceSettings_CreateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservicesettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservicesettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..65b5bb6e3c4e --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/organizationvpcflowlogsservicesettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsServiceSettings_GetVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceSettings; +import java.time.Duration; + +public class SyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfig(); + } + + public static void syncGetVpcFlowLogsConfig() 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 + OrganizationVpcFlowLogsServiceSettings.Builder organizationVpcFlowLogsServiceSettingsBuilder = + OrganizationVpcFlowLogsServiceSettings.newBuilder(); + organizationVpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .setRetrySettings( + organizationVpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings = + organizationVpcFlowLogsServiceSettingsBuilder.build(); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsServiceSettings_GetVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/organizationvpcflowlogsservicestubsettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/organizationvpcflowlogsservicestubsettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..18572c5df009 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/organizationvpcflowlogsservicestubsettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.networkmanagement.v1.stub.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsServiceStubSettings_CreateVpcFlowLogsConfig_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networkmanagement.v1.stub.OrganizationVpcFlowLogsServiceStubSettings; +import java.time.Duration; + +public class SyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfig(); + } + + public static void syncCreateVpcFlowLogsConfig() 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 + OrganizationVpcFlowLogsServiceStubSettings.Builder + organizationVpcFlowLogsServiceSettingsBuilder = + OrganizationVpcFlowLogsServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + organizationVpcFlowLogsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsServiceStubSettings_CreateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/organizationvpcflowlogsservicestubsettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/organizationvpcflowlogsservicestubsettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..14c40a767ec8 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/organizationvpcflowlogsservicestubsettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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.networkmanagement.v1.stub.samples; + +// [START networkmanagement_v1_generated_OrganizationVpcFlowLogsServiceStubSettings_GetVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.stub.OrganizationVpcFlowLogsServiceStubSettings; +import java.time.Duration; + +public class SyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfig(); + } + + public static void syncGetVpcFlowLogsConfig() 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 + OrganizationVpcFlowLogsServiceStubSettings.Builder + organizationVpcFlowLogsServiceSettingsBuilder = + OrganizationVpcFlowLogsServiceStubSettings.newBuilder(); + organizationVpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .setRetrySettings( + organizationVpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + OrganizationVpcFlowLogsServiceStubSettings organizationVpcFlowLogsServiceSettings = + organizationVpcFlowLogsServiceSettingsBuilder.build(); + } +} +// [END networkmanagement_v1_generated_OrganizationVpcFlowLogsServiceStubSettings_GetVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java index 6758fb769118..c668ad3f8982 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java @@ -42,7 +42,8 @@ public static void asyncCreateVpcFlowLogsConfig() throws Exception { CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVpcFlowLogsConfigId( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java index 0a7788d846d0..691c9b00417d 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java @@ -42,7 +42,8 @@ public static void asyncCreateVpcFlowLogsConfigLRO() throws Exception { CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVpcFlowLogsConfigId( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java index 6009d7e0d8d1..a600434e0d4f 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -40,7 +40,8 @@ public static void syncCreateVpcFlowLogsConfig() throws Exception { CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVpcFlowLogsConfigId( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java index 00e7f9e3ecc2..3645be515d6a 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java @@ -39,7 +39,9 @@ public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigStrin LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); String vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); VpcFlowLogsConfig response = vpcFlowLogsServiceClient .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java index febf9014f3b5..2995872a5a34 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java @@ -39,7 +39,8 @@ public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcfl LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig response = vpcFlowLogsServiceClient .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java new file mode 100644 index 000000000000..ac53999aec34 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString() + 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..7f2a1fb34a5c --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public +class SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname() + 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java index ea6712279ba1..f3cd9ae442d0 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java @@ -38,7 +38,9 @@ public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString() th String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); String vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); VpcFlowLogsConfig response = vpcFlowLogsServiceClient .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java index 00673fa06ae2..410ef09ccaa3 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java @@ -39,7 +39,8 @@ public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogs String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig response = vpcFlowLogsServiceClient .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java index 0aed7aef30f8..e36c6e8fd702 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java @@ -39,7 +39,8 @@ public static void asyncDeleteVpcFlowLogsConfig() throws Exception { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java index e75bd4ec66a4..d201b6715545 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java @@ -40,7 +40,8 @@ public static void asyncDeleteVpcFlowLogsConfigLRO() throws Exception { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); OperationFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java index 19cd4b51fffb..c0fa8f5ba139 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java @@ -38,7 +38,8 @@ public static void syncDeleteVpcFlowLogsConfig() throws Exception { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(request).get(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java index 0f90db852020..9d73c22660c2 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java @@ -35,7 +35,9 @@ public static void syncDeleteVpcFlowLogsConfigString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { String name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java index 7a8f588b3a71..54ceb2200fc7 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -35,7 +35,8 @@ public static void syncDeleteVpcFlowLogsConfigVpcflowlogsconfigname() throws Exc // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java index 6a590c82c9a4..dd47cf573ab3 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java @@ -39,7 +39,8 @@ public static void asyncGetVpcFlowLogsConfig() throws Exception { GetVpcFlowLogsConfigRequest request = GetVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java index d86501ffda15..7c4cecdf0596 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -38,7 +38,8 @@ public static void syncGetVpcFlowLogsConfig() throws Exception { GetVpcFlowLogsConfigRequest request = GetVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(request); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java index e5839ce840b5..56c1880d6317 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java @@ -35,7 +35,9 @@ public static void syncGetVpcFlowLogsConfigString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { String name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java index 4fe4c659a5e9..cb6c014c74af 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -35,7 +35,8 @@ public static void syncGetVpcFlowLogsConfigVpcflowlogsconfigname() throws Except // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java new file mode 100644 index 000000000000..3469a9708423 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_Organizationlocationname_sync] +import com.google.cloud.networkmanagement.v1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncListVpcFlowLogsConfigsOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsOrganizationlocationname(); + } + + public static void syncListVpcFlowLogsConfigsOrganizationlocationname() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (VpcFlowLogsConfig element : + vpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_Organizationlocationname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..ac370c461575 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigs.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class AsyncQueryOrgVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + asyncQueryOrgVpcFlowLogsConfigs(); + } + + public static void asyncQueryOrgVpcFlowLogsConfigs() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigsPagedCallable().futureCall(request); + // Do something. + for (VpcFlowLogsConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigsPaged.java new file mode 100644 index 000000000000..619e0fe20bdc --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_Paged_async] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.common.base.Strings; + +public class AsyncQueryOrgVpcFlowLogsConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryOrgVpcFlowLogsConfigsPaged(); + } + + public static void asyncQueryOrgVpcFlowLogsConfigsPaged() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryOrgVpcFlowLogsConfigsResponse response = + vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigsCallable().call(request); + for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/SyncQueryOrgVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/SyncQueryOrgVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..beb66de02edf --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/SyncQueryOrgVpcFlowLogsConfigs.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncQueryOrgVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + syncQueryOrgVpcFlowLogsConfigs(); + } + + public static void syncQueryOrgVpcFlowLogsConfigs() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (VpcFlowLogsConfig element : + vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigs.java new file mode 100644 index 000000000000..8ab77beea71a --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigs.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class AsyncShowEffectiveFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + asyncShowEffectiveFlowLogsConfigs(); + } + + public static void asyncShowEffectiveFlowLogsConfigs() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigsPagedCallable().futureCall(request); + // Do something. + for (EffectiveVpcFlowLogsConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigsPaged.java new file mode 100644 index 000000000000..b4675b85ef00 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_Paged_async] +import com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.common.base.Strings; + +public class AsyncShowEffectiveFlowLogsConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncShowEffectiveFlowLogsConfigsPaged(); + } + + public static void asyncShowEffectiveFlowLogsConfigsPaged() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ShowEffectiveFlowLogsConfigsResponse response = + vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigsCallable().call(request); + for (EffectiveVpcFlowLogsConfig element : response.getEffectiveFlowLogsConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/showeffectiveflowlogsconfigs/SyncShowEffectiveFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/showeffectiveflowlogsconfigs/SyncShowEffectiveFlowLogsConfigs.java new file mode 100644 index 000000000000..52b4e3a259f3 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/showeffectiveflowlogsconfigs/SyncShowEffectiveFlowLogsConfigs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_sync] +import com.google.cloud.networkmanagement.v1.EffectiveVpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncShowEffectiveFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + syncShowEffectiveFlowLogsConfigs(); + } + + public static void syncShowEffectiveFlowLogsConfigs() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (EffectiveVpcFlowLogsConfig element : + vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigs.java new file mode 100644 index 000000000000..fe95b92403ef --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigs.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; + +public class AsyncShowEffectiveFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + asyncShowEffectiveFlowLogsConfigs(); + } + + public static void asyncShowEffectiveFlowLogsConfigs() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigsPagedCallable().futureCall(request); + // Do something. + for (EffectiveVpcFlowLogsConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigsPaged.java new file mode 100644 index 000000000000..3cb0bf9c20b6 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/showeffectiveflowlogsconfigs/AsyncShowEffectiveFlowLogsConfigsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_Paged_async] +import com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; +import com.google.common.base.Strings; + +public class AsyncShowEffectiveFlowLogsConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncShowEffectiveFlowLogsConfigsPaged(); + } + + public static void asyncShowEffectiveFlowLogsConfigsPaged() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ShowEffectiveFlowLogsConfigsResponse response = + vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigsCallable().call(request); + for (EffectiveVpcFlowLogsConfig element : response.getEffectiveFlowLogsConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/showeffectiveflowlogsconfigs/SyncShowEffectiveFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/showeffectiveflowlogsconfigs/SyncShowEffectiveFlowLogsConfigs.java new file mode 100644 index 000000000000..c7d79f2fd3d1 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/showeffectiveflowlogsconfigs/SyncShowEffectiveFlowLogsConfigs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_sync] +import com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; + +public class SyncShowEffectiveFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + syncShowEffectiveFlowLogsConfigs(); + } + + public static void syncShowEffectiveFlowLogsConfigs() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ShowEffectiveFlowLogsConfigsRequest request = + ShowEffectiveFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setResource("resource-341064690") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (EffectiveVpcFlowLogsConfig element : + vpcFlowLogsServiceClient.showEffectiveFlowLogsConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_sync] diff --git a/java-network-security/README.md b/java-network-security/README.md index 8c0946c60b35..b570d4910a97 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.80.0' +implementation 'com.google.cloud:google-cloud-network-security:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceGrpc.java index fcf513bcb51d..749aed884e77 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceGrpc.java +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceGrpc.java @@ -26,9 +26,6 @@ * all the IP or Domain Names from the Address Group. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networksecurity/v1/address_group.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AddressGroupServiceGrpc { @@ -895,8 +892,9 @@ protected AddressGroupServiceBlockingV2Stub build( * */ public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse listAddressGroups( - com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAddressGroupsMethod(), getCallOptions(), request); } @@ -908,8 +906,9 @@ public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse listAddress * */ public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup( - com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAddressGroupMethod(), getCallOptions(), request); } @@ -921,8 +920,9 @@ public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup( * */ public com.google.longrunning.Operation createAddressGroup( - com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAddressGroupMethod(), getCallOptions(), request); } @@ -934,8 +934,9 @@ public com.google.longrunning.Operation createAddressGroup( * */ public com.google.longrunning.Operation updateAddressGroup( - com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAddressGroupMethod(), getCallOptions(), request); } @@ -947,8 +948,9 @@ public com.google.longrunning.Operation updateAddressGroup( * */ public com.google.longrunning.Operation addAddressGroupItems( - com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddAddressGroupItemsMethod(), getCallOptions(), request); } @@ -960,8 +962,9 @@ public com.google.longrunning.Operation addAddressGroupItems( * */ public com.google.longrunning.Operation removeAddressGroupItems( - com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveAddressGroupItemsMethod(), getCallOptions(), request); } @@ -973,8 +976,9 @@ public com.google.longrunning.Operation removeAddressGroupItems( * */ public com.google.longrunning.Operation cloneAddressGroupItems( - com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCloneAddressGroupItemsMethod(), getCallOptions(), request); } @@ -986,8 +990,9 @@ public com.google.longrunning.Operation cloneAddressGroupItems( * */ public com.google.longrunning.Operation deleteAddressGroup( - com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAddressGroupMethod(), getCallOptions(), request); } @@ -1000,8 +1005,9 @@ public com.google.longrunning.Operation deleteAddressGroup( */ public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse listAddressGroupReferences( - com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAddressGroupReferencesMethod(), getCallOptions(), request); } } diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java index 9cf97e661a0b..f3263fa040f1 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java @@ -26,9 +26,6 @@ * information. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networksecurity/v1/network_security.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NetworkSecurityGrpc { @@ -1387,8 +1384,9 @@ protected NetworkSecurityBlockingV2Stub build( */ public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); } @@ -1400,8 +1398,9 @@ protected NetworkSecurityBlockingV2Stub build( * */ public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); } @@ -1413,8 +1412,9 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationP * */ public com.google.longrunning.Operation createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); } @@ -1426,8 +1426,9 @@ public com.google.longrunning.Operation createAuthorizationPolicy( * */ public com.google.longrunning.Operation updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); } @@ -1439,8 +1440,9 @@ public com.google.longrunning.Operation updateAuthorizationPolicy( * */ public com.google.longrunning.Operation deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); } @@ -1452,8 +1454,9 @@ public com.google.longrunning.Operation deleteAuthorizationPolicy( * */ public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); } @@ -1465,8 +1468,9 @@ public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse listSer * */ public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); } @@ -1478,8 +1482,9 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy( * */ public com.google.longrunning.Operation createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); } @@ -1491,8 +1496,9 @@ public com.google.longrunning.Operation createServerTlsPolicy( * */ public com.google.longrunning.Operation updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); } @@ -1504,8 +1510,9 @@ public com.google.longrunning.Operation updateServerTlsPolicy( * */ public com.google.longrunning.Operation deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); } @@ -1517,8 +1524,9 @@ public com.google.longrunning.Operation deleteServerTlsPolicy( * */ public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); } @@ -1530,8 +1538,9 @@ public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse listCli * */ public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); } @@ -1543,8 +1552,9 @@ public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy( * */ public com.google.longrunning.Operation createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); } @@ -1556,8 +1566,9 @@ public com.google.longrunning.Operation createClientTlsPolicy( * */ public com.google.longrunning.Operation updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); } @@ -1569,8 +1580,9 @@ public com.google.longrunning.Operation updateClientTlsPolicy( * */ public com.google.longrunning.Operation deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); } } diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceGrpc.java index 23afc1dcddb3..2e17af55df90 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceGrpc.java +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceGrpc.java @@ -26,9 +26,6 @@ * activation/quota/visibility check. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networksecurity/v1/address_group.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OrganizationAddressGroupServiceGrpc { @@ -921,8 +918,9 @@ protected OrganizationAddressGroupServiceBlockingV2Stub build( * */ public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse listAddressGroups( - com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAddressGroupsMethod(), getCallOptions(), request); } @@ -934,8 +932,9 @@ public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse listAddress * */ public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup( - com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAddressGroupMethod(), getCallOptions(), request); } @@ -947,8 +946,9 @@ public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup( * */ public com.google.longrunning.Operation createAddressGroup( - com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAddressGroupMethod(), getCallOptions(), request); } @@ -960,8 +960,9 @@ public com.google.longrunning.Operation createAddressGroup( * */ public com.google.longrunning.Operation updateAddressGroup( - com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAddressGroupMethod(), getCallOptions(), request); } @@ -973,8 +974,9 @@ public com.google.longrunning.Operation updateAddressGroup( * */ public com.google.longrunning.Operation addAddressGroupItems( - com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddAddressGroupItemsMethod(), getCallOptions(), request); } @@ -986,8 +988,9 @@ public com.google.longrunning.Operation addAddressGroupItems( * */ public com.google.longrunning.Operation removeAddressGroupItems( - com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveAddressGroupItemsMethod(), getCallOptions(), request); } @@ -999,8 +1002,9 @@ public com.google.longrunning.Operation removeAddressGroupItems( * */ public com.google.longrunning.Operation cloneAddressGroupItems( - com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCloneAddressGroupItemsMethod(), getCallOptions(), request); } @@ -1012,8 +1016,9 @@ public com.google.longrunning.Operation cloneAddressGroupItems( * */ public com.google.longrunning.Operation deleteAddressGroup( - com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAddressGroupMethod(), getCallOptions(), request); } @@ -1026,8 +1031,9 @@ public com.google.longrunning.Operation deleteAddressGroup( */ public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse listAddressGroupReferences( - com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAddressGroupReferencesMethod(), getCallOptions(), request); } } diff --git a/java-network-security/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java index c2840fb1072b..ee6b3656ee3a 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java +++ b/java-network-security/grpc-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityGrpc.java @@ -26,9 +26,6 @@ * information. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networksecurity/v1beta1/network_security.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NetworkSecurityGrpc { @@ -1389,8 +1386,9 @@ protected NetworkSecurityBlockingV2Stub build( */ public com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse listAuthorizationPolicies( - com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); } @@ -1402,8 +1400,9 @@ protected NetworkSecurityBlockingV2Stub build( * */ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); } @@ -1415,8 +1414,9 @@ public com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy getAuthoriza * */ public com.google.longrunning.Operation createAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); } @@ -1428,8 +1428,9 @@ public com.google.longrunning.Operation createAuthorizationPolicy( * */ public com.google.longrunning.Operation updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); } @@ -1441,8 +1442,9 @@ public com.google.longrunning.Operation updateAuthorizationPolicy( * */ public com.google.longrunning.Operation deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); } @@ -1455,8 +1457,9 @@ public com.google.longrunning.Operation deleteAuthorizationPolicy( */ public com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse listServerTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); } @@ -1468,8 +1471,9 @@ public com.google.longrunning.Operation deleteAuthorizationPolicy( * */ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); } @@ -1481,8 +1485,9 @@ public com.google.cloud.networksecurity.v1beta1.ServerTlsPolicy getServerTlsPoli * */ public com.google.longrunning.Operation createServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); } @@ -1494,8 +1499,9 @@ public com.google.longrunning.Operation createServerTlsPolicy( * */ public com.google.longrunning.Operation updateServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); } @@ -1507,8 +1513,9 @@ public com.google.longrunning.Operation updateServerTlsPolicy( * */ public com.google.longrunning.Operation deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); } @@ -1521,8 +1528,9 @@ public com.google.longrunning.Operation deleteServerTlsPolicy( */ public com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse listClientTlsPolicies( - com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); } @@ -1534,8 +1542,9 @@ public com.google.longrunning.Operation deleteServerTlsPolicy( * */ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); } @@ -1547,8 +1556,9 @@ public com.google.cloud.networksecurity.v1beta1.ClientTlsPolicy getClientTlsPoli * */ public com.google.longrunning.Operation createClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); } @@ -1560,8 +1570,9 @@ public com.google.longrunning.Operation createClientTlsPolicy( * */ public com.google.longrunning.Operation updateClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); } @@ -1573,8 +1584,9 @@ public com.google.longrunning.Operation updateClientTlsPolicy( * */ public com.google.longrunning.Operation deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); } } diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index 6193ddfb1954..68f17d312c0b 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.76.0 + 1.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.76.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceGrpc.java index a5ae100aaf8d..56c589a83706 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceGrpc.java +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceGrpc.java @@ -24,9 +24,6 @@ * The service for CrossNetworkAutomation resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/cross_network_automation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CrossNetworkAutomationServiceGrpc { @@ -1685,8 +1682,9 @@ protected CrossNetworkAutomationServiceBlockingV2Stub build( */ public com.google.cloud.networkconnectivity.v1.ListServiceConnectionMapsResponse listServiceConnectionMaps( - com.google.cloud.networkconnectivity.v1.ListServiceConnectionMapsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListServiceConnectionMapsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceConnectionMapsMethod(), getCallOptions(), request); } @@ -1698,8 +1696,9 @@ protected CrossNetworkAutomationServiceBlockingV2Stub build( * */ public com.google.cloud.networkconnectivity.v1.ServiceConnectionMap getServiceConnectionMap( - com.google.cloud.networkconnectivity.v1.GetServiceConnectionMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetServiceConnectionMapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceConnectionMapMethod(), getCallOptions(), request); } @@ -1711,8 +1710,9 @@ public com.google.cloud.networkconnectivity.v1.ServiceConnectionMap getServiceCo * */ public com.google.longrunning.Operation createServiceConnectionMap( - com.google.cloud.networkconnectivity.v1.CreateServiceConnectionMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.CreateServiceConnectionMapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceConnectionMapMethod(), getCallOptions(), request); } @@ -1724,8 +1724,9 @@ public com.google.longrunning.Operation createServiceConnectionMap( * */ public com.google.longrunning.Operation updateServiceConnectionMap( - com.google.cloud.networkconnectivity.v1.UpdateServiceConnectionMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.UpdateServiceConnectionMapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceConnectionMapMethod(), getCallOptions(), request); } @@ -1737,8 +1738,9 @@ public com.google.longrunning.Operation updateServiceConnectionMap( * */ public com.google.longrunning.Operation deleteServiceConnectionMap( - com.google.cloud.networkconnectivity.v1.DeleteServiceConnectionMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeleteServiceConnectionMapRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceConnectionMapMethod(), getCallOptions(), request); } @@ -1751,8 +1753,9 @@ public com.google.longrunning.Operation deleteServiceConnectionMap( */ public com.google.cloud.networkconnectivity.v1.ListServiceConnectionPoliciesResponse listServiceConnectionPolicies( - com.google.cloud.networkconnectivity.v1.ListServiceConnectionPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListServiceConnectionPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceConnectionPoliciesMethod(), getCallOptions(), request); } @@ -1765,8 +1768,9 @@ public com.google.longrunning.Operation deleteServiceConnectionMap( */ public com.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy getServiceConnectionPolicy( - com.google.cloud.networkconnectivity.v1.GetServiceConnectionPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetServiceConnectionPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceConnectionPolicyMethod(), getCallOptions(), request); } @@ -1778,8 +1782,9 @@ public com.google.longrunning.Operation deleteServiceConnectionMap( * */ public com.google.longrunning.Operation createServiceConnectionPolicy( - com.google.cloud.networkconnectivity.v1.CreateServiceConnectionPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.CreateServiceConnectionPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceConnectionPolicyMethod(), getCallOptions(), request); } @@ -1791,8 +1796,9 @@ public com.google.longrunning.Operation createServiceConnectionPolicy( * */ public com.google.longrunning.Operation updateServiceConnectionPolicy( - com.google.cloud.networkconnectivity.v1.UpdateServiceConnectionPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.UpdateServiceConnectionPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceConnectionPolicyMethod(), getCallOptions(), request); } @@ -1804,8 +1810,9 @@ public com.google.longrunning.Operation updateServiceConnectionPolicy( * */ public com.google.longrunning.Operation deleteServiceConnectionPolicy( - com.google.cloud.networkconnectivity.v1.DeleteServiceConnectionPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeleteServiceConnectionPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceConnectionPolicyMethod(), getCallOptions(), request); } @@ -1817,8 +1824,9 @@ public com.google.longrunning.Operation deleteServiceConnectionPolicy( * */ public com.google.cloud.networkconnectivity.v1.ListServiceClassesResponse listServiceClasses( - com.google.cloud.networkconnectivity.v1.ListServiceClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListServiceClassesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceClassesMethod(), getCallOptions(), request); } @@ -1830,8 +1838,9 @@ public com.google.cloud.networkconnectivity.v1.ListServiceClassesResponse listSe * */ public com.google.cloud.networkconnectivity.v1.ServiceClass getServiceClass( - com.google.cloud.networkconnectivity.v1.GetServiceClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetServiceClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceClassMethod(), getCallOptions(), request); } @@ -1843,8 +1852,9 @@ public com.google.cloud.networkconnectivity.v1.ServiceClass getServiceClass( * */ public com.google.longrunning.Operation updateServiceClass( - com.google.cloud.networkconnectivity.v1.UpdateServiceClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.UpdateServiceClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceClassMethod(), getCallOptions(), request); } @@ -1856,8 +1866,9 @@ public com.google.longrunning.Operation updateServiceClass( * */ public com.google.longrunning.Operation deleteServiceClass( - com.google.cloud.networkconnectivity.v1.DeleteServiceClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeleteServiceClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceClassMethod(), getCallOptions(), request); } @@ -1869,8 +1880,9 @@ public com.google.longrunning.Operation deleteServiceClass( * */ public com.google.cloud.networkconnectivity.v1.ServiceConnectionToken getServiceConnectionToken( - com.google.cloud.networkconnectivity.v1.GetServiceConnectionTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetServiceConnectionTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceConnectionTokenMethod(), getCallOptions(), request); } @@ -1883,8 +1895,9 @@ public com.google.cloud.networkconnectivity.v1.ServiceConnectionToken getService */ public com.google.cloud.networkconnectivity.v1.ListServiceConnectionTokensResponse listServiceConnectionTokens( - com.google.cloud.networkconnectivity.v1.ListServiceConnectionTokensRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListServiceConnectionTokensRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceConnectionTokensMethod(), getCallOptions(), request); } @@ -1896,8 +1909,9 @@ public com.google.cloud.networkconnectivity.v1.ServiceConnectionToken getService * */ public com.google.longrunning.Operation createServiceConnectionToken( - com.google.cloud.networkconnectivity.v1.CreateServiceConnectionTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.CreateServiceConnectionTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceConnectionTokenMethod(), getCallOptions(), request); } @@ -1909,8 +1923,9 @@ public com.google.longrunning.Operation createServiceConnectionToken( * */ public com.google.longrunning.Operation deleteServiceConnectionToken( - com.google.cloud.networkconnectivity.v1.DeleteServiceConnectionTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeleteServiceConnectionTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceConnectionTokenMethod(), getCallOptions(), request); } } diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceGrpc.java index d5afa78a8ee7..52dcc0dbb642 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceGrpc.java +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceGrpc.java @@ -24,9 +24,6 @@ * DataTransferService is the service for the Data Transfer API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/data_transfer.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataTransferServiceGrpc { @@ -1209,8 +1206,9 @@ protected DataTransferServiceBlockingV2Stub build( public com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse listMulticloudDataTransferConfigs( com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMulticloudDataTransferConfigsMethod(), getCallOptions(), request); } @@ -1223,9 +1221,9 @@ protected DataTransferServiceBlockingV2Stub build( */ public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig getMulticloudDataTransferConfig( - com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMulticloudDataTransferConfigMethod(), getCallOptions(), request); } @@ -1238,8 +1236,9 @@ protected DataTransferServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createMulticloudDataTransferConfig( - com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMulticloudDataTransferConfigMethod(), getCallOptions(), request); } @@ -1252,8 +1251,9 @@ public com.google.longrunning.Operation createMulticloudDataTransferConfig( * */ public com.google.longrunning.Operation updateMulticloudDataTransferConfig( - com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMulticloudDataTransferConfigMethod(), getCallOptions(), request); } @@ -1265,8 +1265,9 @@ public com.google.longrunning.Operation updateMulticloudDataTransferConfig( * */ public com.google.longrunning.Operation deleteMulticloudDataTransferConfig( - com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMulticloudDataTransferConfigMethod(), getCallOptions(), request); } @@ -1278,8 +1279,9 @@ public com.google.longrunning.Operation deleteMulticloudDataTransferConfig( * */ public com.google.cloud.networkconnectivity.v1.ListDestinationsResponse listDestinations( - com.google.cloud.networkconnectivity.v1.ListDestinationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDestinationsMethod(), getCallOptions(), request); } @@ -1291,8 +1293,9 @@ public com.google.cloud.networkconnectivity.v1.ListDestinationsResponse listDest * */ public com.google.cloud.networkconnectivity.v1.Destination getDestination( - com.google.cloud.networkconnectivity.v1.GetDestinationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetDestinationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDestinationMethod(), getCallOptions(), request); } @@ -1304,8 +1307,9 @@ public com.google.cloud.networkconnectivity.v1.Destination getDestination( * */ public com.google.longrunning.Operation createDestination( - com.google.cloud.networkconnectivity.v1.CreateDestinationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDestinationMethod(), getCallOptions(), request); } @@ -1317,8 +1321,9 @@ public com.google.longrunning.Operation createDestination( * */ public com.google.longrunning.Operation updateDestination( - com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDestinationMethod(), getCallOptions(), request); } @@ -1330,8 +1335,9 @@ public com.google.longrunning.Operation updateDestination( * */ public com.google.longrunning.Operation deleteDestination( - com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDestinationMethod(), getCallOptions(), request); } @@ -1346,8 +1352,9 @@ public com.google.longrunning.Operation deleteDestination( public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService getMulticloudDataTransferSupportedService( com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMulticloudDataTransferSupportedServiceMethod(), getCallOptions(), @@ -1367,8 +1374,9 @@ public com.google.longrunning.Operation deleteDestination( listMulticloudDataTransferSupportedServices( com.google.cloud.networkconnectivity.v1 .ListMulticloudDataTransferSupportedServicesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMulticloudDataTransferSupportedServicesMethod(), getCallOptions(), diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java index 14b932bd56ac..79ea056147e8 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java @@ -26,9 +26,6 @@ * through a simple, centralized connectivity management model. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") @io.grpc.stub.annotations.GrpcGenerated public final class HubServiceGrpc { @@ -1912,8 +1909,9 @@ protected HubServiceBlockingV2Stub build( * */ public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHubsMethod(), getCallOptions(), request); } @@ -1925,8 +1923,9 @@ public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs( * */ public com.google.cloud.networkconnectivity.v1.Hub getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetHubRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHubMethod(), getCallOptions(), request); } @@ -1938,8 +1937,9 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub( * */ public com.google.longrunning.Operation createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateHubMethod(), getCallOptions(), request); } @@ -1952,8 +1952,9 @@ public com.google.longrunning.Operation createHub( * */ public com.google.longrunning.Operation updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHubMethod(), getCallOptions(), request); } @@ -1965,8 +1966,9 @@ public com.google.longrunning.Operation updateHub( * */ public com.google.longrunning.Operation deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteHubMethod(), getCallOptions(), request); } @@ -1980,8 +1982,9 @@ public com.google.longrunning.Operation deleteHub( * */ public com.google.cloud.networkconnectivity.v1.ListHubSpokesResponse listHubSpokes( - com.google.cloud.networkconnectivity.v1.ListHubSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListHubSpokesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHubSpokesMethod(), getCallOptions(), request); } @@ -1994,8 +1997,9 @@ public com.google.cloud.networkconnectivity.v1.ListHubSpokesResponse listHubSpok * */ public com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse queryHubStatus( - com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getQueryHubStatusMethod(), getCallOptions(), request); } @@ -2008,8 +2012,9 @@ public com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse queryHubSt * */ public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSpokesMethod(), getCallOptions(), request); } @@ -2021,8 +2026,9 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes( * */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpokeMethod(), getCallOptions(), request); } @@ -2034,8 +2040,9 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke( * */ public com.google.longrunning.Operation createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSpokeMethod(), getCallOptions(), request); } @@ -2047,8 +2054,9 @@ public com.google.longrunning.Operation createSpoke( * */ public com.google.longrunning.Operation updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); } @@ -2063,8 +2071,9 @@ public com.google.longrunning.Operation updateSpoke( * */ public com.google.longrunning.Operation rejectHubSpoke( - com.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRejectHubSpokeMethod(), getCallOptions(), request); } @@ -2077,8 +2086,9 @@ public com.google.longrunning.Operation rejectHubSpoke( * */ public com.google.longrunning.Operation acceptHubSpoke( - com.google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.AcceptHubSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcceptHubSpokeMethod(), getCallOptions(), request); } @@ -2090,8 +2100,9 @@ public com.google.longrunning.Operation acceptHubSpoke( * */ public com.google.longrunning.Operation acceptSpokeUpdate( - com.google.cloud.networkconnectivity.v1.AcceptSpokeUpdateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.AcceptSpokeUpdateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcceptSpokeUpdateMethod(), getCallOptions(), request); } @@ -2103,8 +2114,9 @@ public com.google.longrunning.Operation acceptSpokeUpdate( * */ public com.google.longrunning.Operation rejectSpokeUpdate( - com.google.cloud.networkconnectivity.v1.RejectSpokeUpdateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.RejectSpokeUpdateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRejectSpokeUpdateMethod(), getCallOptions(), request); } @@ -2116,8 +2128,9 @@ public com.google.longrunning.Operation rejectSpokeUpdate( * */ public com.google.longrunning.Operation deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); } @@ -2129,8 +2142,9 @@ public com.google.longrunning.Operation deleteSpoke( * */ public com.google.cloud.networkconnectivity.v1.RouteTable getRouteTable( - com.google.cloud.networkconnectivity.v1.GetRouteTableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetRouteTableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRouteTableMethod(), getCallOptions(), request); } @@ -2142,8 +2156,9 @@ public com.google.cloud.networkconnectivity.v1.RouteTable getRouteTable( * */ public com.google.cloud.networkconnectivity.v1.Route getRoute( - com.google.cloud.networkconnectivity.v1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRouteMethod(), getCallOptions(), request); } @@ -2155,8 +2170,9 @@ public com.google.cloud.networkconnectivity.v1.Route getRoute( * */ public com.google.cloud.networkconnectivity.v1.ListRoutesResponse listRoutes( - com.google.cloud.networkconnectivity.v1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRoutesMethod(), getCallOptions(), request); } @@ -2168,8 +2184,9 @@ public com.google.cloud.networkconnectivity.v1.ListRoutesResponse listRoutes( * */ public com.google.cloud.networkconnectivity.v1.ListRouteTablesResponse listRouteTables( - com.google.cloud.networkconnectivity.v1.ListRouteTablesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListRouteTablesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRouteTablesMethod(), getCallOptions(), request); } @@ -2181,8 +2198,9 @@ public com.google.cloud.networkconnectivity.v1.ListRouteTablesResponse listRoute * */ public com.google.cloud.networkconnectivity.v1.Group getGroup( - com.google.cloud.networkconnectivity.v1.GetGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGroupMethod(), getCallOptions(), request); } @@ -2194,8 +2212,9 @@ public com.google.cloud.networkconnectivity.v1.Group getGroup( * */ public com.google.cloud.networkconnectivity.v1.ListGroupsResponse listGroups( - com.google.cloud.networkconnectivity.v1.ListGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGroupsMethod(), getCallOptions(), request); } @@ -2207,8 +2226,9 @@ public com.google.cloud.networkconnectivity.v1.ListGroupsResponse listGroups( * */ public com.google.longrunning.Operation updateGroup( - com.google.cloud.networkconnectivity.v1.UpdateGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGroupMethod(), getCallOptions(), request); } } diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceGrpc.java index bd98028c2047..6383c5c8cf2d 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceGrpc.java +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceGrpc.java @@ -25,9 +25,6 @@ * operations within a VPC network. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/internal_range.proto") @io.grpc.stub.annotations.GrpcGenerated public final class InternalRangeServiceGrpc { @@ -569,8 +566,9 @@ protected InternalRangeServiceBlockingV2Stub build( * */ public com.google.cloud.networkconnectivity.v1.ListInternalRangesResponse listInternalRanges( - com.google.cloud.networkconnectivity.v1.ListInternalRangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListInternalRangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInternalRangesMethod(), getCallOptions(), request); } @@ -582,8 +580,9 @@ public com.google.cloud.networkconnectivity.v1.ListInternalRangesResponse listIn * */ public com.google.cloud.networkconnectivity.v1.InternalRange getInternalRange( - com.google.cloud.networkconnectivity.v1.GetInternalRangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetInternalRangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInternalRangeMethod(), getCallOptions(), request); } @@ -595,8 +594,9 @@ public com.google.cloud.networkconnectivity.v1.InternalRange getInternalRange( * */ public com.google.longrunning.Operation createInternalRange( - com.google.cloud.networkconnectivity.v1.CreateInternalRangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.CreateInternalRangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInternalRangeMethod(), getCallOptions(), request); } @@ -608,8 +608,9 @@ public com.google.longrunning.Operation createInternalRange( * */ public com.google.longrunning.Operation updateInternalRange( - com.google.cloud.networkconnectivity.v1.UpdateInternalRangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.UpdateInternalRangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInternalRangeMethod(), getCallOptions(), request); } @@ -621,8 +622,9 @@ public com.google.longrunning.Operation updateInternalRange( * */ public com.google.longrunning.Operation deleteInternalRange( - com.google.cloud.networkconnectivity.v1.DeleteInternalRangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeleteInternalRangeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInternalRangeMethod(), getCallOptions(), request); } } diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java index 910a0954e6dd..f4fce15c2a47 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java @@ -25,9 +25,6 @@ * policies for Layer 4 traffic traversing through the connected service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/policy_based_routing.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PolicyBasedRoutingServiceGrpc { @@ -506,8 +503,9 @@ protected PolicyBasedRoutingServiceBlockingV2Stub build( */ public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPolicyBasedRoutesMethod(), getCallOptions(), request); } @@ -519,8 +517,9 @@ protected PolicyBasedRoutingServiceBlockingV2Stub build( * */ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPolicyBasedRouteMethod(), getCallOptions(), request); } @@ -532,8 +531,9 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRo * */ public com.google.longrunning.Operation createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePolicyBasedRouteMethod(), getCallOptions(), request); } @@ -545,8 +545,9 @@ public com.google.longrunning.Operation createPolicyBasedRoute( * */ public com.google.longrunning.Operation deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePolicyBasedRouteMethod(), getCallOptions(), request); } } diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java index 15230bea21f3..11ce6d4c2562 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java @@ -27,9 +27,6 @@ * model. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") @io.grpc.stub.annotations.GrpcGenerated public final class HubServiceGrpc { @@ -917,8 +914,9 @@ protected HubServiceBlockingV2Stub build( * */ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHubsMethod(), getCallOptions(), request); } @@ -930,8 +928,9 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs( * */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHubMethod(), getCallOptions(), request); } @@ -943,8 +942,9 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub( * */ public com.google.longrunning.Operation createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateHubMethod(), getCallOptions(), request); } @@ -956,8 +956,9 @@ public com.google.longrunning.Operation createHub( * */ public com.google.longrunning.Operation updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHubMethod(), getCallOptions(), request); } @@ -969,8 +970,9 @@ public com.google.longrunning.Operation updateHub( * */ public com.google.longrunning.Operation deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteHubMethod(), getCallOptions(), request); } @@ -982,8 +984,9 @@ public com.google.longrunning.Operation deleteHub( * */ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSpokesMethod(), getCallOptions(), request); } @@ -995,8 +998,9 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpok * */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSpokeMethod(), getCallOptions(), request); } @@ -1008,8 +1012,9 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke( * */ public com.google.longrunning.Operation createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSpokeMethod(), getCallOptions(), request); } @@ -1021,8 +1026,9 @@ public com.google.longrunning.Operation createSpoke( * */ public com.google.longrunning.Operation updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); } @@ -1034,8 +1040,9 @@ public com.google.longrunning.Operation updateSpoke( * */ public com.google.longrunning.Operation deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); } } diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 9c3d1c6485f3..896041e78459 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.33.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.34.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceClient.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceClient.java index 1db2ac0ee6af..604edab1483b 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceClient.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceClient.java @@ -275,6 +275,104 @@ * * * + *

                                              ListLbEdgeExtensions + *

                                              Lists `LbEdgeExtension` resources in a given project and location. + * + *

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

                                              + *
                                                + *
                                              • listLbEdgeExtensions(ListLbEdgeExtensionsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listLbEdgeExtensions(LocationName parent) + *

                                              • listLbEdgeExtensions(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.

                                              + *
                                                + *
                                              • listLbEdgeExtensionsPagedCallable() + *

                                              • listLbEdgeExtensionsCallable() + *

                                              + * + * + * + *

                                              GetLbEdgeExtension + *

                                              Gets details of the specified `LbEdgeExtension` resource. + * + *

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

                                              + *
                                                + *
                                              • getLbEdgeExtension(GetLbEdgeExtensionRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • getLbEdgeExtension(LbEdgeExtensionName name) + *

                                              • getLbEdgeExtension(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.

                                              + *
                                                + *
                                              • getLbEdgeExtensionCallable() + *

                                              + * + * + * + *

                                              CreateLbEdgeExtension + *

                                              Creates a new `LbEdgeExtension` resource in a given project and location. + * + *

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

                                              + *
                                                + *
                                              • createLbEdgeExtensionAsync(CreateLbEdgeExtensionRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • createLbEdgeExtensionAsync(LocationName parent, LbEdgeExtension lbEdgeExtension, String lbEdgeExtensionId) + *

                                              • createLbEdgeExtensionAsync(String parent, LbEdgeExtension lbEdgeExtension, String lbEdgeExtensionId) + *

                                              + *

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

                                              + *
                                                + *
                                              • createLbEdgeExtensionOperationCallable() + *

                                              • createLbEdgeExtensionCallable() + *

                                              + * + * + * + *

                                              UpdateLbEdgeExtension + *

                                              Updates the parameters of the specified `LbEdgeExtension` resource. + * + *

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

                                              + *
                                                + *
                                              • updateLbEdgeExtensionAsync(UpdateLbEdgeExtensionRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • updateLbEdgeExtensionAsync(LbEdgeExtension lbEdgeExtension, 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.

                                              + *
                                                + *
                                              • updateLbEdgeExtensionOperationCallable() + *

                                              • updateLbEdgeExtensionCallable() + *

                                              + * + * + * + *

                                              DeleteLbEdgeExtension + *

                                              Deletes the specified `LbEdgeExtension` resource. + * + *

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

                                              + *
                                                + *
                                              • deleteLbEdgeExtensionAsync(DeleteLbEdgeExtensionRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • deleteLbEdgeExtensionAsync(LbEdgeExtensionName name) + *

                                              • deleteLbEdgeExtensionAsync(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.

                                              + *
                                                + *
                                              • deleteLbEdgeExtensionOperationCallable() + *

                                              • deleteLbEdgeExtensionCallable() + *

                                              + * + * + * *

                                              ListAuthzExtensions *

                                              Lists `AuthzExtension` resources in a given project and location. * @@ -2107,7 +2205,7 @@ public final OperationFuture deleteLbRouteExtensionAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `AuthzExtension` resources in a given project and location. + * Lists `LbEdgeExtension` resources in a given project and location. * *

                                              Sample code: * @@ -2119,28 +2217,28 @@ public final OperationFuture deleteLbRouteExtensionAsy * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DepServiceClient depServiceClient = DepServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (AuthzExtension element : depServiceClient.listAuthzExtensions(parent).iterateAll()) { + * for (LbEdgeExtension element : depServiceClient.listLbEdgeExtensions(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The project and location from which the `AuthzExtension` resources are + * @param parent Required. The project and location from which the `LbEdgeExtension` resources are * listed. These values are specified in the following format: * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuthzExtensionsPagedResponse listAuthzExtensions(LocationName parent) { - ListAuthzExtensionsRequest request = - ListAuthzExtensionsRequest.newBuilder() + public final ListLbEdgeExtensionsPagedResponse listLbEdgeExtensions(LocationName parent) { + ListLbEdgeExtensionsRequest request = + ListLbEdgeExtensionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listAuthzExtensions(request); + return listLbEdgeExtensions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `AuthzExtension` resources in a given project and location. + * Lists `LbEdgeExtension` resources in a given project and location. * *

                                              Sample code: * @@ -2152,26 +2250,26 @@ public final ListAuthzExtensionsPagedResponse listAuthzExtensions(LocationName p * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DepServiceClient depServiceClient = DepServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (AuthzExtension element : depServiceClient.listAuthzExtensions(parent).iterateAll()) { + * for (LbEdgeExtension element : depServiceClient.listLbEdgeExtensions(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The project and location from which the `AuthzExtension` resources are + * @param parent Required. The project and location from which the `LbEdgeExtension` resources are * listed. These values are specified in the following format: * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuthzExtensionsPagedResponse listAuthzExtensions(String parent) { - ListAuthzExtensionsRequest request = - ListAuthzExtensionsRequest.newBuilder().setParent(parent).build(); - return listAuthzExtensions(request); + public final ListLbEdgeExtensionsPagedResponse listLbEdgeExtensions(String parent) { + ListLbEdgeExtensionsRequest request = + ListLbEdgeExtensionsRequest.newBuilder().setParent(parent).build(); + return listLbEdgeExtensions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `AuthzExtension` resources in a given project and location. + * Lists `LbEdgeExtension` resources in a given project and location. * *

                                              Sample code: * @@ -2182,15 +2280,15 @@ public final ListAuthzExtensionsPagedResponse listAuthzExtensions(String parent) * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * ListAuthzExtensionsRequest request = - * ListAuthzExtensionsRequest.newBuilder() + * ListLbEdgeExtensionsRequest request = + * ListLbEdgeExtensionsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") * .build(); - * for (AuthzExtension element : depServiceClient.listAuthzExtensions(request).iterateAll()) { + * for (LbEdgeExtension element : depServiceClient.listLbEdgeExtensions(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2199,14 +2297,14 @@ public final ListAuthzExtensionsPagedResponse listAuthzExtensions(String parent) * @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 ListAuthzExtensionsPagedResponse listAuthzExtensions( - ListAuthzExtensionsRequest request) { - return listAuthzExtensionsPagedCallable().call(request); + public final ListLbEdgeExtensionsPagedResponse listLbEdgeExtensions( + ListLbEdgeExtensionsRequest request) { + return listLbEdgeExtensionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `AuthzExtension` resources in a given project and location. + * Lists `LbEdgeExtension` resources in a given project and location. * *

                                              Sample code: * @@ -2217,31 +2315,31 @@ public final ListAuthzExtensionsPagedResponse listAuthzExtensions( * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * ListAuthzExtensionsRequest request = - * ListAuthzExtensionsRequest.newBuilder() + * ListLbEdgeExtensionsRequest request = + * ListLbEdgeExtensionsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * depServiceClient.listAuthzExtensionsPagedCallable().futureCall(request); + * ApiFuture future = + * depServiceClient.listLbEdgeExtensionsPagedCallable().futureCall(request); * // Do something. - * for (AuthzExtension element : future.get().iterateAll()) { + * for (LbEdgeExtension element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listAuthzExtensionsPagedCallable() { - return stub.listAuthzExtensionsPagedCallable(); + public final UnaryCallable + listLbEdgeExtensionsPagedCallable() { + return stub.listLbEdgeExtensionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists `AuthzExtension` resources in a given project and location. + * Lists `LbEdgeExtension` resources in a given project and location. * *

                                              Sample code: * @@ -2252,8 +2350,8 @@ public final ListAuthzExtensionsPagedResponse listAuthzExtensions( * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * ListAuthzExtensionsRequest request = - * ListAuthzExtensionsRequest.newBuilder() + * ListLbEdgeExtensionsRequest request = + * ListLbEdgeExtensionsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -2261,9 +2359,9 @@ public final ListAuthzExtensionsPagedResponse listAuthzExtensions( * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * ListAuthzExtensionsResponse response = - * depServiceClient.listAuthzExtensionsCallable().call(request); - * for (AuthzExtension element : response.getAuthzExtensionsList()) { + * ListLbEdgeExtensionsResponse response = + * depServiceClient.listLbEdgeExtensionsCallable().call(request); + * for (LbEdgeExtension element : response.getLbEdgeExtensionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2276,14 +2374,14 @@ public final ListAuthzExtensionsPagedResponse listAuthzExtensions( * } * } */ - public final UnaryCallable - listAuthzExtensionsCallable() { - return stub.listAuthzExtensionsCallable(); + public final UnaryCallable + listLbEdgeExtensionsCallable() { + return stub.listLbEdgeExtensionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of the specified `AuthzExtension` resource. + * Gets details of the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2294,27 +2392,27 @@ public final ListAuthzExtensionsPagedResponse listAuthzExtensions( * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * AuthzExtensionName name = - * AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]"); - * AuthzExtension response = depServiceClient.getAuthzExtension(name); + * LbEdgeExtensionName name = + * LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + * LbEdgeExtension response = depServiceClient.getLbEdgeExtension(name); * } * } * - * @param name Required. A name of the `AuthzExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + * @param name Required. A name of the `LbEdgeExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthzExtension getAuthzExtension(AuthzExtensionName name) { - GetAuthzExtensionRequest request = - GetAuthzExtensionRequest.newBuilder() + public final LbEdgeExtension getLbEdgeExtension(LbEdgeExtensionName name) { + GetLbEdgeExtensionRequest request = + GetLbEdgeExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getAuthzExtension(request); + return getLbEdgeExtension(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of the specified `AuthzExtension` resource. + * Gets details of the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2326,23 +2424,24 @@ public final AuthzExtension getAuthzExtension(AuthzExtensionName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DepServiceClient depServiceClient = DepServiceClient.create()) { * String name = - * AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]").toString(); - * AuthzExtension response = depServiceClient.getAuthzExtension(name); + * LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString(); + * LbEdgeExtension response = depServiceClient.getLbEdgeExtension(name); * } * } * - * @param name Required. A name of the `AuthzExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + * @param name Required. A name of the `LbEdgeExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthzExtension getAuthzExtension(String name) { - GetAuthzExtensionRequest request = GetAuthzExtensionRequest.newBuilder().setName(name).build(); - return getAuthzExtension(request); + public final LbEdgeExtension getLbEdgeExtension(String name) { + GetLbEdgeExtensionRequest request = + GetLbEdgeExtensionRequest.newBuilder().setName(name).build(); + return getLbEdgeExtension(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of the specified `AuthzExtension` resource. + * Gets details of the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2353,25 +2452,26 @@ public final AuthzExtension getAuthzExtension(String name) { * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * GetAuthzExtensionRequest request = - * GetAuthzExtensionRequest.newBuilder() + * GetLbEdgeExtensionRequest request = + * GetLbEdgeExtensionRequest.newBuilder() * .setName( - * AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]").toString()) + * LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]") + * .toString()) * .build(); - * AuthzExtension response = depServiceClient.getAuthzExtension(request); + * LbEdgeExtension response = depServiceClient.getLbEdgeExtension(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 AuthzExtension getAuthzExtension(GetAuthzExtensionRequest request) { - return getAuthzExtensionCallable().call(request); + public final LbEdgeExtension getLbEdgeExtension(GetLbEdgeExtensionRequest request) { + return getLbEdgeExtensionCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of the specified `AuthzExtension` resource. + * Gets details of the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2382,25 +2482,27 @@ public final AuthzExtension getAuthzExtension(GetAuthzExtensionRequest 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * GetAuthzExtensionRequest request = - * GetAuthzExtensionRequest.newBuilder() + * GetLbEdgeExtensionRequest request = + * GetLbEdgeExtensionRequest.newBuilder() * .setName( - * AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]").toString()) + * LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]") + * .toString()) * .build(); - * ApiFuture future = - * depServiceClient.getAuthzExtensionCallable().futureCall(request); + * ApiFuture future = + * depServiceClient.getLbEdgeExtensionCallable().futureCall(request); * // Do something. - * AuthzExtension response = future.get(); + * LbEdgeExtension response = future.get(); * } * } */ - public final UnaryCallable getAuthzExtensionCallable() { - return stub.getAuthzExtensionCallable(); + public final UnaryCallable + getLbEdgeExtensionCallable() { + return stub.getLbEdgeExtensionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `AuthzExtension` resource in a given project and location. + * Creates a new `LbEdgeExtension` resource in a given project and location. * *

                                              Sample code: * @@ -2412,36 +2514,36 @@ public final UnaryCallable getAuthzExt * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DepServiceClient depServiceClient = DepServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * AuthzExtension authzExtension = AuthzExtension.newBuilder().build(); - * String authzExtensionId = "authzExtensionId-973067640"; - * AuthzExtension response = + * LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + * String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + * LbEdgeExtension response = * depServiceClient - * .createAuthzExtensionAsync(parent, authzExtension, authzExtensionId) + * .createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId) * .get(); * } * } * - * @param parent Required. The parent resource of the `AuthzExtension` resource. Must be in the + * @param parent Required. The parent resource of the `LbEdgeExtension` resource. Must be in the * format `projects/{project}/locations/{location}`. - * @param authzExtension Required. `AuthzExtension` resource to be created. - * @param authzExtensionId Required. User-provided ID of the `AuthzExtension` resource to be + * @param lbEdgeExtension Required. `LbEdgeExtension` resource to be created. + * @param lbEdgeExtensionId Required. User-provided ID of the `LbEdgeExtension` resource to be * created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createAuthzExtensionAsync( - LocationName parent, AuthzExtension authzExtension, String authzExtensionId) { - CreateAuthzExtensionRequest request = - CreateAuthzExtensionRequest.newBuilder() + public final OperationFuture createLbEdgeExtensionAsync( + LocationName parent, LbEdgeExtension lbEdgeExtension, String lbEdgeExtensionId) { + CreateLbEdgeExtensionRequest request = + CreateLbEdgeExtensionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setAuthzExtension(authzExtension) - .setAuthzExtensionId(authzExtensionId) + .setLbEdgeExtension(lbEdgeExtension) + .setLbEdgeExtensionId(lbEdgeExtensionId) .build(); - return createAuthzExtensionAsync(request); + return createLbEdgeExtensionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `AuthzExtension` resource in a given project and location. + * Creates a new `LbEdgeExtension` resource in a given project and location. * *

                                              Sample code: * @@ -2453,36 +2555,36 @@ public final OperationFuture createAuthzExten * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DepServiceClient depServiceClient = DepServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * AuthzExtension authzExtension = AuthzExtension.newBuilder().build(); - * String authzExtensionId = "authzExtensionId-973067640"; - * AuthzExtension response = + * LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + * String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + * LbEdgeExtension response = * depServiceClient - * .createAuthzExtensionAsync(parent, authzExtension, authzExtensionId) + * .createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId) * .get(); * } * } * - * @param parent Required. The parent resource of the `AuthzExtension` resource. Must be in the + * @param parent Required. The parent resource of the `LbEdgeExtension` resource. Must be in the * format `projects/{project}/locations/{location}`. - * @param authzExtension Required. `AuthzExtension` resource to be created. - * @param authzExtensionId Required. User-provided ID of the `AuthzExtension` resource to be + * @param lbEdgeExtension Required. `LbEdgeExtension` resource to be created. + * @param lbEdgeExtensionId Required. User-provided ID of the `LbEdgeExtension` resource to be * created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createAuthzExtensionAsync( - String parent, AuthzExtension authzExtension, String authzExtensionId) { - CreateAuthzExtensionRequest request = - CreateAuthzExtensionRequest.newBuilder() + public final OperationFuture createLbEdgeExtensionAsync( + String parent, LbEdgeExtension lbEdgeExtension, String lbEdgeExtensionId) { + CreateLbEdgeExtensionRequest request = + CreateLbEdgeExtensionRequest.newBuilder() .setParent(parent) - .setAuthzExtension(authzExtension) - .setAuthzExtensionId(authzExtensionId) + .setLbEdgeExtension(lbEdgeExtension) + .setLbEdgeExtensionId(lbEdgeExtensionId) .build(); - return createAuthzExtensionAsync(request); + return createLbEdgeExtensionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `AuthzExtension` resource in a given project and location. + * Creates a new `LbEdgeExtension` resource in a given project and location. * *

                                              Sample code: * @@ -2493,28 +2595,28 @@ public final OperationFuture createAuthzExten * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * CreateAuthzExtensionRequest request = - * CreateAuthzExtensionRequest.newBuilder() + * CreateLbEdgeExtensionRequest request = + * CreateLbEdgeExtensionRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setAuthzExtensionId("authzExtensionId-973067640") - * .setAuthzExtension(AuthzExtension.newBuilder().build()) + * .setLbEdgeExtensionId("lbEdgeExtensionId673551207") + * .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * AuthzExtension response = depServiceClient.createAuthzExtensionAsync(request).get(); + * LbEdgeExtension response = depServiceClient.createLbEdgeExtensionAsync(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 createAuthzExtensionAsync( - CreateAuthzExtensionRequest request) { - return createAuthzExtensionOperationCallable().futureCall(request); + public final OperationFuture createLbEdgeExtensionAsync( + CreateLbEdgeExtensionRequest request) { + return createLbEdgeExtensionOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `AuthzExtension` resource in a given project and location. + * Creates a new `LbEdgeExtension` resource in a given project and location. * *

                                              Sample code: * @@ -2525,28 +2627,28 @@ public final OperationFuture createAuthzExten * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * CreateAuthzExtensionRequest request = - * CreateAuthzExtensionRequest.newBuilder() + * CreateLbEdgeExtensionRequest request = + * CreateLbEdgeExtensionRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setAuthzExtensionId("authzExtensionId-973067640") - * .setAuthzExtension(AuthzExtension.newBuilder().build()) + * .setLbEdgeExtensionId("lbEdgeExtensionId673551207") + * .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * depServiceClient.createAuthzExtensionOperationCallable().futureCall(request); + * OperationFuture future = + * depServiceClient.createLbEdgeExtensionOperationCallable().futureCall(request); * // Do something. - * AuthzExtension response = future.get(); + * LbEdgeExtension response = future.get(); * } * } */ - public final OperationCallable - createAuthzExtensionOperationCallable() { - return stub.createAuthzExtensionOperationCallable(); + public final OperationCallable + createLbEdgeExtensionOperationCallable() { + return stub.createLbEdgeExtensionOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new `AuthzExtension` resource in a given project and location. + * Creates a new `LbEdgeExtension` resource in a given project and location. * *

                                              Sample code: * @@ -2557,28 +2659,28 @@ public final OperationFuture createAuthzExten * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * CreateAuthzExtensionRequest request = - * CreateAuthzExtensionRequest.newBuilder() + * CreateLbEdgeExtensionRequest request = + * CreateLbEdgeExtensionRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setAuthzExtensionId("authzExtensionId-973067640") - * .setAuthzExtension(AuthzExtension.newBuilder().build()) + * .setLbEdgeExtensionId("lbEdgeExtensionId673551207") + * .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * depServiceClient.createAuthzExtensionCallable().futureCall(request); + * depServiceClient.createLbEdgeExtensionCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable - createAuthzExtensionCallable() { - return stub.createAuthzExtensionCallable(); + public final UnaryCallable + createLbEdgeExtensionCallable() { + return stub.createLbEdgeExtensionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of the specified `AuthzExtension` resource. + * Updates the parameters of the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2589,33 +2691,33 @@ public final OperationFuture createAuthzExten * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * AuthzExtension authzExtension = AuthzExtension.newBuilder().build(); + * LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * AuthzExtension response = - * depServiceClient.updateAuthzExtensionAsync(authzExtension, updateMask).get(); + * LbEdgeExtension response = + * depServiceClient.updateLbEdgeExtensionAsync(lbEdgeExtension, updateMask).get(); * } * } * - * @param authzExtension Required. `AuthzExtension` resource being updated. - * @param updateMask Required. Used to specify the fields to be overwritten in the - * `AuthzExtension` resource by the update. The fields specified in the `update_mask` are + * @param lbEdgeExtension Required. `LbEdgeExtension` resource being updated. + * @param updateMask Optional. Used to specify the fields to be overwritten in the + * `LbEdgeExtension` resource by the update. The fields specified in the `update_mask` are * relative to the resource, not the full request. A field is overwritten if it is in the * mask. If the user does not specify a mask, then all fields are overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateAuthzExtensionAsync( - AuthzExtension authzExtension, FieldMask updateMask) { - UpdateAuthzExtensionRequest request = - UpdateAuthzExtensionRequest.newBuilder() - .setAuthzExtension(authzExtension) + public final OperationFuture updateLbEdgeExtensionAsync( + LbEdgeExtension lbEdgeExtension, FieldMask updateMask) { + UpdateLbEdgeExtensionRequest request = + UpdateLbEdgeExtensionRequest.newBuilder() + .setLbEdgeExtension(lbEdgeExtension) .setUpdateMask(updateMask) .build(); - return updateAuthzExtensionAsync(request); + return updateLbEdgeExtensionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of the specified `AuthzExtension` resource. + * Updates the parameters of the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2626,27 +2728,27 @@ public final OperationFuture updateAuthzExten * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * UpdateAuthzExtensionRequest request = - * UpdateAuthzExtensionRequest.newBuilder() + * UpdateLbEdgeExtensionRequest request = + * UpdateLbEdgeExtensionRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setAuthzExtension(AuthzExtension.newBuilder().build()) + * .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * AuthzExtension response = depServiceClient.updateAuthzExtensionAsync(request).get(); + * LbEdgeExtension response = depServiceClient.updateLbEdgeExtensionAsync(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 updateAuthzExtensionAsync( - UpdateAuthzExtensionRequest request) { - return updateAuthzExtensionOperationCallable().futureCall(request); + public final OperationFuture updateLbEdgeExtensionAsync( + UpdateLbEdgeExtensionRequest request) { + return updateLbEdgeExtensionOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of the specified `AuthzExtension` resource. + * Updates the parameters of the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2657,27 +2759,27 @@ public final OperationFuture updateAuthzExten * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * UpdateAuthzExtensionRequest request = - * UpdateAuthzExtensionRequest.newBuilder() + * UpdateLbEdgeExtensionRequest request = + * UpdateLbEdgeExtensionRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setAuthzExtension(AuthzExtension.newBuilder().build()) + * .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * depServiceClient.updateAuthzExtensionOperationCallable().futureCall(request); + * OperationFuture future = + * depServiceClient.updateLbEdgeExtensionOperationCallable().futureCall(request); * // Do something. - * AuthzExtension response = future.get(); + * LbEdgeExtension response = future.get(); * } * } */ - public final OperationCallable - updateAuthzExtensionOperationCallable() { - return stub.updateAuthzExtensionOperationCallable(); + public final OperationCallable + updateLbEdgeExtensionOperationCallable() { + return stub.updateLbEdgeExtensionOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of the specified `AuthzExtension` resource. + * Updates the parameters of the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2688,27 +2790,27 @@ public final OperationFuture updateAuthzExten * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * UpdateAuthzExtensionRequest request = - * UpdateAuthzExtensionRequest.newBuilder() + * UpdateLbEdgeExtensionRequest request = + * UpdateLbEdgeExtensionRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setAuthzExtension(AuthzExtension.newBuilder().build()) + * .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * depServiceClient.updateAuthzExtensionCallable().futureCall(request); + * depServiceClient.updateLbEdgeExtensionCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable - updateAuthzExtensionCallable() { - return stub.updateAuthzExtensionCallable(); + public final UnaryCallable + updateLbEdgeExtensionCallable() { + return stub.updateLbEdgeExtensionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified `AuthzExtension` resource. + * Deletes the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2719,28 +2821,28 @@ public final OperationFuture updateAuthzExten * // - It may require 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { - * AuthzExtensionName name = - * AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]"); - * depServiceClient.deleteAuthzExtensionAsync(name).get(); + * LbEdgeExtensionName name = + * LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + * depServiceClient.deleteLbEdgeExtensionAsync(name).get(); * } * } * - * @param name Required. The name of the `AuthzExtension` resource to delete. Must be in the - * format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + * @param name Required. The name of the `LbEdgeExtension` resource to delete. Must be in the + * format `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAuthzExtensionAsync( - AuthzExtensionName name) { - DeleteAuthzExtensionRequest request = - DeleteAuthzExtensionRequest.newBuilder() + public final OperationFuture deleteLbEdgeExtensionAsync( + LbEdgeExtensionName name) { + DeleteLbEdgeExtensionRequest request = + DeleteLbEdgeExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return deleteAuthzExtensionAsync(request); + return deleteLbEdgeExtensionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified `AuthzExtension` resource. + * Deletes the specified `LbEdgeExtension` resource. * *

                                              Sample code: * @@ -2752,16 +2854,774 @@ public final OperationFuture deleteAuthzExtensionAsync * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DepServiceClient depServiceClient = DepServiceClient.create()) { * String name = - * AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]").toString(); - * depServiceClient.deleteAuthzExtensionAsync(name).get(); + * LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString(); + * depServiceClient.deleteLbEdgeExtensionAsync(name).get(); * } * } * - * @param name Required. The name of the `AuthzExtension` resource to delete. Must be in the - * format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + * @param name Required. The name of the `LbEdgeExtension` resource to delete. Must be in the + * format `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAuthzExtensionAsync(String name) { + public final OperationFuture deleteLbEdgeExtensionAsync(String name) { + DeleteLbEdgeExtensionRequest request = + DeleteLbEdgeExtensionRequest.newBuilder().setName(name).build(); + return deleteLbEdgeExtensionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified `LbEdgeExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   DeleteLbEdgeExtensionRequest request =
                                              +   *       DeleteLbEdgeExtensionRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   depServiceClient.deleteLbEdgeExtensionAsync(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 deleteLbEdgeExtensionAsync( + DeleteLbEdgeExtensionRequest request) { + return deleteLbEdgeExtensionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified `LbEdgeExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   DeleteLbEdgeExtensionRequest request =
                                              +   *       DeleteLbEdgeExtensionRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       depServiceClient.deleteLbEdgeExtensionOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + deleteLbEdgeExtensionOperationCallable() { + return stub.deleteLbEdgeExtensionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified `LbEdgeExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   DeleteLbEdgeExtensionRequest request =
                                              +   *       DeleteLbEdgeExtensionRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       depServiceClient.deleteLbEdgeExtensionCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + deleteLbEdgeExtensionCallable() { + return stub.deleteLbEdgeExtensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `AuthzExtension` resources 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (AuthzExtension element : depServiceClient.listAuthzExtensions(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The project and location from which the `AuthzExtension` resources are + * listed. These values are specified in the following format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthzExtensionsPagedResponse listAuthzExtensions(LocationName parent) { + ListAuthzExtensionsRequest request = + ListAuthzExtensionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAuthzExtensions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `AuthzExtension` resources 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (AuthzExtension element : depServiceClient.listAuthzExtensions(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The project and location from which the `AuthzExtension` resources are + * listed. These values are specified in the following format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthzExtensionsPagedResponse listAuthzExtensions(String parent) { + ListAuthzExtensionsRequest request = + ListAuthzExtensionsRequest.newBuilder().setParent(parent).build(); + return listAuthzExtensions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `AuthzExtension` resources 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   ListAuthzExtensionsRequest request =
                                              +   *       ListAuthzExtensionsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   for (AuthzExtension element : depServiceClient.listAuthzExtensions(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 ListAuthzExtensionsPagedResponse listAuthzExtensions( + ListAuthzExtensionsRequest request) { + return listAuthzExtensionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `AuthzExtension` resources 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   ListAuthzExtensionsRequest request =
                                              +   *       ListAuthzExtensionsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       depServiceClient.listAuthzExtensionsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (AuthzExtension element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listAuthzExtensionsPagedCallable() { + return stub.listAuthzExtensionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `AuthzExtension` resources 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   ListAuthzExtensionsRequest request =
                                              +   *       ListAuthzExtensionsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListAuthzExtensionsResponse response =
                                              +   *         depServiceClient.listAuthzExtensionsCallable().call(request);
                                              +   *     for (AuthzExtension element : response.getAuthzExtensionsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listAuthzExtensionsCallable() { + return stub.listAuthzExtensionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   AuthzExtensionName name =
                                              +   *       AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]");
                                              +   *   AuthzExtension response = depServiceClient.getAuthzExtension(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. A name of the `AuthzExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthzExtension getAuthzExtension(AuthzExtensionName name) { + GetAuthzExtensionRequest request = + GetAuthzExtensionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAuthzExtension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   String name =
                                              +   *       AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]").toString();
                                              +   *   AuthzExtension response = depServiceClient.getAuthzExtension(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. A name of the `AuthzExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthzExtension getAuthzExtension(String name) { + GetAuthzExtensionRequest request = GetAuthzExtensionRequest.newBuilder().setName(name).build(); + return getAuthzExtension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   GetAuthzExtensionRequest request =
                                              +   *       GetAuthzExtensionRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]").toString())
                                              +   *           .build();
                                              +   *   AuthzExtension response = depServiceClient.getAuthzExtension(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 AuthzExtension getAuthzExtension(GetAuthzExtensionRequest request) { + return getAuthzExtensionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   GetAuthzExtensionRequest request =
                                              +   *       GetAuthzExtensionRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]").toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       depServiceClient.getAuthzExtensionCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AuthzExtension response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable getAuthzExtensionCallable() { + return stub.getAuthzExtensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `AuthzExtension` resource 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   AuthzExtension authzExtension = AuthzExtension.newBuilder().build();
                                              +   *   String authzExtensionId = "authzExtensionId-973067640";
                                              +   *   AuthzExtension response =
                                              +   *       depServiceClient
                                              +   *           .createAuthzExtensionAsync(parent, authzExtension, authzExtensionId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent resource of the `AuthzExtension` resource. Must be in the + * format `projects/{project}/locations/{location}`. + * @param authzExtension Required. `AuthzExtension` resource to be created. + * @param authzExtensionId Required. User-provided ID of the `AuthzExtension` resource to be + * created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAuthzExtensionAsync( + LocationName parent, AuthzExtension authzExtension, String authzExtensionId) { + CreateAuthzExtensionRequest request = + CreateAuthzExtensionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAuthzExtension(authzExtension) + .setAuthzExtensionId(authzExtensionId) + .build(); + return createAuthzExtensionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `AuthzExtension` resource 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   AuthzExtension authzExtension = AuthzExtension.newBuilder().build();
                                              +   *   String authzExtensionId = "authzExtensionId-973067640";
                                              +   *   AuthzExtension response =
                                              +   *       depServiceClient
                                              +   *           .createAuthzExtensionAsync(parent, authzExtension, authzExtensionId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent resource of the `AuthzExtension` resource. Must be in the + * format `projects/{project}/locations/{location}`. + * @param authzExtension Required. `AuthzExtension` resource to be created. + * @param authzExtensionId Required. User-provided ID of the `AuthzExtension` resource to be + * created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAuthzExtensionAsync( + String parent, AuthzExtension authzExtension, String authzExtensionId) { + CreateAuthzExtensionRequest request = + CreateAuthzExtensionRequest.newBuilder() + .setParent(parent) + .setAuthzExtension(authzExtension) + .setAuthzExtensionId(authzExtensionId) + .build(); + return createAuthzExtensionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `AuthzExtension` resource 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   CreateAuthzExtensionRequest request =
                                              +   *       CreateAuthzExtensionRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setAuthzExtensionId("authzExtensionId-973067640")
                                              +   *           .setAuthzExtension(AuthzExtension.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   AuthzExtension response = depServiceClient.createAuthzExtensionAsync(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 createAuthzExtensionAsync( + CreateAuthzExtensionRequest request) { + return createAuthzExtensionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `AuthzExtension` resource 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   CreateAuthzExtensionRequest request =
                                              +   *       CreateAuthzExtensionRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setAuthzExtensionId("authzExtensionId-973067640")
                                              +   *           .setAuthzExtension(AuthzExtension.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       depServiceClient.createAuthzExtensionOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AuthzExtension response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + createAuthzExtensionOperationCallable() { + return stub.createAuthzExtensionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `AuthzExtension` resource 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   CreateAuthzExtensionRequest request =
                                              +   *       CreateAuthzExtensionRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setAuthzExtensionId("authzExtensionId-973067640")
                                              +   *           .setAuthzExtension(AuthzExtension.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       depServiceClient.createAuthzExtensionCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + createAuthzExtensionCallable() { + return stub.createAuthzExtensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   AuthzExtension authzExtension = AuthzExtension.newBuilder().build();
                                              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                              +   *   AuthzExtension response =
                                              +   *       depServiceClient.updateAuthzExtensionAsync(authzExtension, updateMask).get();
                                              +   * }
                                              +   * }
                                              + * + * @param authzExtension Required. `AuthzExtension` resource being updated. + * @param updateMask Required. Used to specify the fields to be overwritten in the + * `AuthzExtension` resource by the update. The fields specified in the `update_mask` are + * relative to the resource, not the full request. A field is overwritten if it is in the + * mask. If the user does not specify a mask, then all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAuthzExtensionAsync( + AuthzExtension authzExtension, FieldMask updateMask) { + UpdateAuthzExtensionRequest request = + UpdateAuthzExtensionRequest.newBuilder() + .setAuthzExtension(authzExtension) + .setUpdateMask(updateMask) + .build(); + return updateAuthzExtensionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   UpdateAuthzExtensionRequest request =
                                              +   *       UpdateAuthzExtensionRequest.newBuilder()
                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                              +   *           .setAuthzExtension(AuthzExtension.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   AuthzExtension response = depServiceClient.updateAuthzExtensionAsync(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 updateAuthzExtensionAsync( + UpdateAuthzExtensionRequest request) { + return updateAuthzExtensionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   UpdateAuthzExtensionRequest request =
                                              +   *       UpdateAuthzExtensionRequest.newBuilder()
                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                              +   *           .setAuthzExtension(AuthzExtension.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       depServiceClient.updateAuthzExtensionOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AuthzExtension response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + updateAuthzExtensionOperationCallable() { + return stub.updateAuthzExtensionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   UpdateAuthzExtensionRequest request =
                                              +   *       UpdateAuthzExtensionRequest.newBuilder()
                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                              +   *           .setAuthzExtension(AuthzExtension.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       depServiceClient.updateAuthzExtensionCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + updateAuthzExtensionCallable() { + return stub.updateAuthzExtensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   AuthzExtensionName name =
                                              +   *       AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]");
                                              +   *   depServiceClient.deleteAuthzExtensionAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the `AuthzExtension` resource to delete. Must be in the + * format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAuthzExtensionAsync( + AuthzExtensionName name) { + DeleteAuthzExtensionRequest request = + DeleteAuthzExtensionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAuthzExtensionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified `AuthzExtension` resource. + * + *

                                              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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
                                              +   *   String name =
                                              +   *       AuthzExtensionName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_EXTENSION]").toString();
                                              +   *   depServiceClient.deleteAuthzExtensionAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the `AuthzExtension` resource to delete. Must be in the + * format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAuthzExtensionAsync(String name) { DeleteAuthzExtensionRequest request = DeleteAuthzExtensionRequest.newBuilder().setName(name).build(); return deleteAuthzExtensionAsync(request); @@ -3414,6 +4274,90 @@ protected ListLbRouteExtensionsFixedSizeCollection createCollection( } } + public static class ListLbEdgeExtensionsPagedResponse + extends AbstractPagedListResponse< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + LbEdgeExtension, + ListLbEdgeExtensionsPage, + ListLbEdgeExtensionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLbEdgeExtensionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLbEdgeExtensionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLbEdgeExtensionsPagedResponse(ListLbEdgeExtensionsPage page) { + super(page, ListLbEdgeExtensionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLbEdgeExtensionsPage + extends AbstractPage< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + LbEdgeExtension, + ListLbEdgeExtensionsPage> { + + private ListLbEdgeExtensionsPage( + PageContext + context, + ListLbEdgeExtensionsResponse response) { + super(context, response); + } + + private static ListLbEdgeExtensionsPage createEmptyPage() { + return new ListLbEdgeExtensionsPage(null, null); + } + + @Override + protected ListLbEdgeExtensionsPage createPage( + PageContext + context, + ListLbEdgeExtensionsResponse response) { + return new ListLbEdgeExtensionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLbEdgeExtensionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + LbEdgeExtension, + ListLbEdgeExtensionsPage, + ListLbEdgeExtensionsFixedSizeCollection> { + + private ListLbEdgeExtensionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLbEdgeExtensionsFixedSizeCollection createEmptyCollection() { + return new ListLbEdgeExtensionsFixedSizeCollection(null, 0); + } + + @Override + protected ListLbEdgeExtensionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLbEdgeExtensionsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListAuthzExtensionsPagedResponse extends AbstractPagedListResponse< ListAuthzExtensionsRequest, diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceSettings.java index 606a74d02fb2..2a5e18939b6d 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.networkservices.v1; import static com.google.cloud.networkservices.v1.DepServiceClient.ListAuthzExtensionsPagedResponse; +import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbEdgeExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbRouteExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbTrafficExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLocationsPagedResponse; @@ -232,6 +233,57 @@ public class DepServiceSettings extends ClientSettings { return ((DepServiceStubSettings) getStubSettings()).deleteLbRouteExtensionOperationSettings(); } + /** Returns the object with the settings used for calls to listLbEdgeExtensions. */ + public PagedCallSettings< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + ListLbEdgeExtensionsPagedResponse> + listLbEdgeExtensionsSettings() { + return ((DepServiceStubSettings) getStubSettings()).listLbEdgeExtensionsSettings(); + } + + /** Returns the object with the settings used for calls to getLbEdgeExtension. */ + public UnaryCallSettings + getLbEdgeExtensionSettings() { + return ((DepServiceStubSettings) getStubSettings()).getLbEdgeExtensionSettings(); + } + + /** Returns the object with the settings used for calls to createLbEdgeExtension. */ + public UnaryCallSettings + createLbEdgeExtensionSettings() { + return ((DepServiceStubSettings) getStubSettings()).createLbEdgeExtensionSettings(); + } + + /** Returns the object with the settings used for calls to createLbEdgeExtension. */ + public OperationCallSettings + createLbEdgeExtensionOperationSettings() { + return ((DepServiceStubSettings) getStubSettings()).createLbEdgeExtensionOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateLbEdgeExtension. */ + public UnaryCallSettings + updateLbEdgeExtensionSettings() { + return ((DepServiceStubSettings) getStubSettings()).updateLbEdgeExtensionSettings(); + } + + /** Returns the object with the settings used for calls to updateLbEdgeExtension. */ + public OperationCallSettings + updateLbEdgeExtensionOperationSettings() { + return ((DepServiceStubSettings) getStubSettings()).updateLbEdgeExtensionOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteLbEdgeExtension. */ + public UnaryCallSettings + deleteLbEdgeExtensionSettings() { + return ((DepServiceStubSettings) getStubSettings()).deleteLbEdgeExtensionSettings(); + } + + /** Returns the object with the settings used for calls to deleteLbEdgeExtension. */ + public OperationCallSettings + deleteLbEdgeExtensionOperationSettings() { + return ((DepServiceStubSettings) getStubSettings()).deleteLbEdgeExtensionOperationSettings(); + } + /** Returns the object with the settings used for calls to listAuthzExtensions. */ public PagedCallSettings< ListAuthzExtensionsRequest, ListAuthzExtensionsResponse, ListAuthzExtensionsPagedResponse> @@ -521,6 +573,59 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().deleteLbRouteExtensionOperationSettings(); } + /** Returns the builder for the settings used for calls to listLbEdgeExtensions. */ + public PagedCallSettings.Builder< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + ListLbEdgeExtensionsPagedResponse> + listLbEdgeExtensionsSettings() { + return getStubSettingsBuilder().listLbEdgeExtensionsSettings(); + } + + /** Returns the builder for the settings used for calls to getLbEdgeExtension. */ + public UnaryCallSettings.Builder + getLbEdgeExtensionSettings() { + return getStubSettingsBuilder().getLbEdgeExtensionSettings(); + } + + /** Returns the builder for the settings used for calls to createLbEdgeExtension. */ + public UnaryCallSettings.Builder + createLbEdgeExtensionSettings() { + return getStubSettingsBuilder().createLbEdgeExtensionSettings(); + } + + /** Returns the builder for the settings used for calls to createLbEdgeExtension. */ + public OperationCallSettings.Builder< + CreateLbEdgeExtensionRequest, LbEdgeExtension, OperationMetadata> + createLbEdgeExtensionOperationSettings() { + return getStubSettingsBuilder().createLbEdgeExtensionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateLbEdgeExtension. */ + public UnaryCallSettings.Builder + updateLbEdgeExtensionSettings() { + return getStubSettingsBuilder().updateLbEdgeExtensionSettings(); + } + + /** Returns the builder for the settings used for calls to updateLbEdgeExtension. */ + public OperationCallSettings.Builder< + UpdateLbEdgeExtensionRequest, LbEdgeExtension, OperationMetadata> + updateLbEdgeExtensionOperationSettings() { + return getStubSettingsBuilder().updateLbEdgeExtensionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLbEdgeExtension. */ + public UnaryCallSettings.Builder + deleteLbEdgeExtensionSettings() { + return getStubSettingsBuilder().deleteLbEdgeExtensionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLbEdgeExtension. */ + public OperationCallSettings.Builder + deleteLbEdgeExtensionOperationSettings() { + return getStubSettingsBuilder().deleteLbEdgeExtensionOperationSettings(); + } + /** Returns the builder for the settings used for calls to listAuthzExtensions. */ public PagedCallSettings.Builder< ListAuthzExtensionsRequest, 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 5e5c17bd9597..52d3ed7c7c54 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 @@ -13,6 +13,9 @@ "CreateAuthzExtension": { "methods": ["createAuthzExtensionAsync", "createAuthzExtensionAsync", "createAuthzExtensionAsync", "createAuthzExtensionOperationCallable", "createAuthzExtensionCallable"] }, + "CreateLbEdgeExtension": { + "methods": ["createLbEdgeExtensionAsync", "createLbEdgeExtensionAsync", "createLbEdgeExtensionAsync", "createLbEdgeExtensionOperationCallable", "createLbEdgeExtensionCallable"] + }, "CreateLbRouteExtension": { "methods": ["createLbRouteExtensionAsync", "createLbRouteExtensionAsync", "createLbRouteExtensionAsync", "createLbRouteExtensionOperationCallable", "createLbRouteExtensionCallable"] }, @@ -22,6 +25,9 @@ "DeleteAuthzExtension": { "methods": ["deleteAuthzExtensionAsync", "deleteAuthzExtensionAsync", "deleteAuthzExtensionAsync", "deleteAuthzExtensionOperationCallable", "deleteAuthzExtensionCallable"] }, + "DeleteLbEdgeExtension": { + "methods": ["deleteLbEdgeExtensionAsync", "deleteLbEdgeExtensionAsync", "deleteLbEdgeExtensionAsync", "deleteLbEdgeExtensionOperationCallable", "deleteLbEdgeExtensionCallable"] + }, "DeleteLbRouteExtension": { "methods": ["deleteLbRouteExtensionAsync", "deleteLbRouteExtensionAsync", "deleteLbRouteExtensionAsync", "deleteLbRouteExtensionOperationCallable", "deleteLbRouteExtensionCallable"] }, @@ -34,6 +40,9 @@ "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, + "GetLbEdgeExtension": { + "methods": ["getLbEdgeExtension", "getLbEdgeExtension", "getLbEdgeExtension", "getLbEdgeExtensionCallable"] + }, "GetLbRouteExtension": { "methods": ["getLbRouteExtension", "getLbRouteExtension", "getLbRouteExtension", "getLbRouteExtensionCallable"] }, @@ -46,6 +55,9 @@ "ListAuthzExtensions": { "methods": ["listAuthzExtensions", "listAuthzExtensions", "listAuthzExtensions", "listAuthzExtensionsPagedCallable", "listAuthzExtensionsCallable"] }, + "ListLbEdgeExtensions": { + "methods": ["listLbEdgeExtensions", "listLbEdgeExtensions", "listLbEdgeExtensions", "listLbEdgeExtensionsPagedCallable", "listLbEdgeExtensionsCallable"] + }, "ListLbRouteExtensions": { "methods": ["listLbRouteExtensions", "listLbRouteExtensions", "listLbRouteExtensions", "listLbRouteExtensionsPagedCallable", "listLbRouteExtensionsCallable"] }, @@ -64,6 +76,9 @@ "UpdateAuthzExtension": { "methods": ["updateAuthzExtensionAsync", "updateAuthzExtensionAsync", "updateAuthzExtensionOperationCallable", "updateAuthzExtensionCallable"] }, + "UpdateLbEdgeExtension": { + "methods": ["updateLbEdgeExtensionAsync", "updateLbEdgeExtensionAsync", "updateLbEdgeExtensionOperationCallable", "updateLbEdgeExtensionCallable"] + }, "UpdateLbRouteExtension": { "methods": ["updateLbRouteExtensionAsync", "updateLbRouteExtensionAsync", "updateLbRouteExtensionOperationCallable", "updateLbRouteExtensionCallable"] }, diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStub.java index 9200ba546386..1407c7adb1ba 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStub.java @@ -17,6 +17,7 @@ package com.google.cloud.networkservices.v1.stub; import static com.google.cloud.networkservices.v1.DepServiceClient.ListAuthzExtensionsPagedResponse; +import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbEdgeExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbRouteExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbTrafficExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLocationsPagedResponse; @@ -30,24 +31,31 @@ import com.google.cloud.location.Location; import com.google.cloud.networkservices.v1.AuthzExtension; import com.google.cloud.networkservices.v1.CreateAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.CreateLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.CreateLbTrafficExtensionRequest; import com.google.cloud.networkservices.v1.DeleteAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.DeleteLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.DeleteLbTrafficExtensionRequest; import com.google.cloud.networkservices.v1.GetAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.GetLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.GetLbTrafficExtensionRequest; +import com.google.cloud.networkservices.v1.LbEdgeExtension; import com.google.cloud.networkservices.v1.LbRouteExtension; import com.google.cloud.networkservices.v1.LbTrafficExtension; import com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest; import com.google.cloud.networkservices.v1.ListAuthzExtensionsResponse; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse; import com.google.cloud.networkservices.v1.ListLbRouteExtensionsRequest; import com.google.cloud.networkservices.v1.ListLbRouteExtensionsResponse; import com.google.cloud.networkservices.v1.ListLbTrafficExtensionsRequest; import com.google.cloud.networkservices.v1.ListLbTrafficExtensionsResponse; import com.google.cloud.networkservices.v1.OperationMetadata; import com.google.cloud.networkservices.v1.UpdateAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.UpdateLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.UpdateLbTrafficExtensionRequest; import com.google.iam.v1.GetIamPolicyRequest; @@ -171,6 +179,50 @@ public UnaryCallable deleteLbRouteExte throw new UnsupportedOperationException("Not implemented: deleteLbRouteExtensionCallable()"); } + public UnaryCallable + listLbEdgeExtensionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLbEdgeExtensionsPagedCallable()"); + } + + public UnaryCallable + listLbEdgeExtensionsCallable() { + throw new UnsupportedOperationException("Not implemented: listLbEdgeExtensionsCallable()"); + } + + public UnaryCallable getLbEdgeExtensionCallable() { + throw new UnsupportedOperationException("Not implemented: getLbEdgeExtensionCallable()"); + } + + public OperationCallable + createLbEdgeExtensionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createLbEdgeExtensionOperationCallable()"); + } + + public UnaryCallable createLbEdgeExtensionCallable() { + throw new UnsupportedOperationException("Not implemented: createLbEdgeExtensionCallable()"); + } + + public OperationCallable + updateLbEdgeExtensionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateLbEdgeExtensionOperationCallable()"); + } + + public UnaryCallable updateLbEdgeExtensionCallable() { + throw new UnsupportedOperationException("Not implemented: updateLbEdgeExtensionCallable()"); + } + + public OperationCallable + deleteLbEdgeExtensionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteLbEdgeExtensionOperationCallable()"); + } + + public UnaryCallable deleteLbEdgeExtensionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteLbEdgeExtensionCallable()"); + } + public UnaryCallable listAuthzExtensionsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listAuthzExtensionsPagedCallable()"); diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java index d61ebb441129..046452db6c9c 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.networkservices.v1.stub; import static com.google.cloud.networkservices.v1.DepServiceClient.ListAuthzExtensionsPagedResponse; +import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbEdgeExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbRouteExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbTrafficExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLocationsPagedResponse; @@ -57,24 +58,31 @@ import com.google.cloud.location.Location; import com.google.cloud.networkservices.v1.AuthzExtension; import com.google.cloud.networkservices.v1.CreateAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.CreateLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.CreateLbTrafficExtensionRequest; import com.google.cloud.networkservices.v1.DeleteAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.DeleteLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.DeleteLbTrafficExtensionRequest; import com.google.cloud.networkservices.v1.GetAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.GetLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.GetLbTrafficExtensionRequest; +import com.google.cloud.networkservices.v1.LbEdgeExtension; import com.google.cloud.networkservices.v1.LbRouteExtension; import com.google.cloud.networkservices.v1.LbTrafficExtension; import com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest; import com.google.cloud.networkservices.v1.ListAuthzExtensionsResponse; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse; import com.google.cloud.networkservices.v1.ListLbRouteExtensionsRequest; import com.google.cloud.networkservices.v1.ListLbRouteExtensionsResponse; import com.google.cloud.networkservices.v1.ListLbTrafficExtensionsRequest; import com.google.cloud.networkservices.v1.ListLbTrafficExtensionsResponse; import com.google.cloud.networkservices.v1.OperationMetadata; import com.google.cloud.networkservices.v1.UpdateAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.UpdateLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.UpdateLbTrafficExtensionRequest; import com.google.common.collect.ImmutableList; @@ -216,6 +224,27 @@ public class DepServiceStubSettings extends StubSettings deleteLbRouteExtensionSettings; private final OperationCallSettings deleteLbRouteExtensionOperationSettings; + private final PagedCallSettings< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + ListLbEdgeExtensionsPagedResponse> + listLbEdgeExtensionsSettings; + private final UnaryCallSettings + getLbEdgeExtensionSettings; + private final UnaryCallSettings + createLbEdgeExtensionSettings; + private final OperationCallSettings< + CreateLbEdgeExtensionRequest, LbEdgeExtension, OperationMetadata> + createLbEdgeExtensionOperationSettings; + private final UnaryCallSettings + updateLbEdgeExtensionSettings; + private final OperationCallSettings< + UpdateLbEdgeExtensionRequest, LbEdgeExtension, OperationMetadata> + updateLbEdgeExtensionOperationSettings; + private final UnaryCallSettings + deleteLbEdgeExtensionSettings; + private final OperationCallSettings + deleteLbEdgeExtensionOperationSettings; private final PagedCallSettings< ListAuthzExtensionsRequest, ListAuthzExtensionsResponse, ListAuthzExtensionsPagedResponse> listAuthzExtensionsSettings; @@ -326,6 +355,45 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListLbEdgeExtensionsRequest, ListLbEdgeExtensionsResponse, LbEdgeExtension> + LIST_LB_EDGE_EXTENSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListLbEdgeExtensionsRequest, ListLbEdgeExtensionsResponse, LbEdgeExtension>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLbEdgeExtensionsRequest injectToken( + ListLbEdgeExtensionsRequest payload, String token) { + return ListLbEdgeExtensionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLbEdgeExtensionsRequest injectPageSize( + ListLbEdgeExtensionsRequest payload, int pageSize) { + return ListLbEdgeExtensionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLbEdgeExtensionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLbEdgeExtensionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListLbEdgeExtensionsResponse payload) { + return payload.getLbEdgeExtensionsList(); + } + }; + private static final PagedListDescriptor< ListAuthzExtensionsRequest, ListAuthzExtensionsResponse, AuthzExtension> LIST_AUTHZ_EXTENSIONS_PAGE_STR_DESC = @@ -449,6 +517,30 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + ListLbEdgeExtensionsPagedResponse> + LIST_LB_EDGE_EXTENSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + ListLbEdgeExtensionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLbEdgeExtensionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListLbEdgeExtensionsRequest, ListLbEdgeExtensionsResponse, LbEdgeExtension> + pageContext = + PageContext.create( + callable, LIST_LB_EDGE_EXTENSIONS_PAGE_STR_DESC, request, context); + return ListLbEdgeExtensionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListAuthzExtensionsRequest, ListAuthzExtensionsResponse, ListAuthzExtensionsPagedResponse> LIST_AUTHZ_EXTENSIONS_PAGE_STR_FACT = @@ -591,6 +683,57 @@ public ApiFuture getFuturePagedResponse( return deleteLbRouteExtensionOperationSettings; } + /** Returns the object with the settings used for calls to listLbEdgeExtensions. */ + public PagedCallSettings< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + ListLbEdgeExtensionsPagedResponse> + listLbEdgeExtensionsSettings() { + return listLbEdgeExtensionsSettings; + } + + /** Returns the object with the settings used for calls to getLbEdgeExtension. */ + public UnaryCallSettings + getLbEdgeExtensionSettings() { + return getLbEdgeExtensionSettings; + } + + /** Returns the object with the settings used for calls to createLbEdgeExtension. */ + public UnaryCallSettings + createLbEdgeExtensionSettings() { + return createLbEdgeExtensionSettings; + } + + /** Returns the object with the settings used for calls to createLbEdgeExtension. */ + public OperationCallSettings + createLbEdgeExtensionOperationSettings() { + return createLbEdgeExtensionOperationSettings; + } + + /** Returns the object with the settings used for calls to updateLbEdgeExtension. */ + public UnaryCallSettings + updateLbEdgeExtensionSettings() { + return updateLbEdgeExtensionSettings; + } + + /** Returns the object with the settings used for calls to updateLbEdgeExtension. */ + public OperationCallSettings + updateLbEdgeExtensionOperationSettings() { + return updateLbEdgeExtensionOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteLbEdgeExtension. */ + public UnaryCallSettings + deleteLbEdgeExtensionSettings() { + return deleteLbEdgeExtensionSettings; + } + + /** Returns the object with the settings used for calls to deleteLbEdgeExtension. */ + public OperationCallSettings + deleteLbEdgeExtensionOperationSettings() { + return deleteLbEdgeExtensionOperationSettings; + } + /** Returns the object with the settings used for calls to listAuthzExtensions. */ public PagedCallSettings< ListAuthzExtensionsRequest, ListAuthzExtensionsResponse, ListAuthzExtensionsPagedResponse> @@ -796,6 +939,17 @@ protected DepServiceStubSettings(Builder settingsBuilder) throws IOException { deleteLbRouteExtensionSettings = settingsBuilder.deleteLbRouteExtensionSettings().build(); deleteLbRouteExtensionOperationSettings = settingsBuilder.deleteLbRouteExtensionOperationSettings().build(); + listLbEdgeExtensionsSettings = settingsBuilder.listLbEdgeExtensionsSettings().build(); + getLbEdgeExtensionSettings = settingsBuilder.getLbEdgeExtensionSettings().build(); + createLbEdgeExtensionSettings = settingsBuilder.createLbEdgeExtensionSettings().build(); + createLbEdgeExtensionOperationSettings = + settingsBuilder.createLbEdgeExtensionOperationSettings().build(); + updateLbEdgeExtensionSettings = settingsBuilder.updateLbEdgeExtensionSettings().build(); + updateLbEdgeExtensionOperationSettings = + settingsBuilder.updateLbEdgeExtensionOperationSettings().build(); + deleteLbEdgeExtensionSettings = settingsBuilder.deleteLbEdgeExtensionSettings().build(); + deleteLbEdgeExtensionOperationSettings = + settingsBuilder.deleteLbEdgeExtensionOperationSettings().build(); listAuthzExtensionsSettings = settingsBuilder.listAuthzExtensionsSettings().build(); getAuthzExtensionSettings = settingsBuilder.getAuthzExtensionSettings().build(); createAuthzExtensionSettings = settingsBuilder.createAuthzExtensionSettings().build(); @@ -861,6 +1015,28 @@ public static class Builder extends StubSettings.Builder deleteLbRouteExtensionOperationSettings; + private final PagedCallSettings.Builder< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + ListLbEdgeExtensionsPagedResponse> + listLbEdgeExtensionsSettings; + private final UnaryCallSettings.Builder + getLbEdgeExtensionSettings; + private final UnaryCallSettings.Builder + createLbEdgeExtensionSettings; + private final OperationCallSettings.Builder< + CreateLbEdgeExtensionRequest, LbEdgeExtension, OperationMetadata> + createLbEdgeExtensionOperationSettings; + private final UnaryCallSettings.Builder + updateLbEdgeExtensionSettings; + private final OperationCallSettings.Builder< + UpdateLbEdgeExtensionRequest, LbEdgeExtension, OperationMetadata> + updateLbEdgeExtensionOperationSettings; + private final UnaryCallSettings.Builder + deleteLbEdgeExtensionSettings; + private final OperationCallSettings.Builder< + DeleteLbEdgeExtensionRequest, Empty, OperationMetadata> + deleteLbEdgeExtensionOperationSettings; private final PagedCallSettings.Builder< ListAuthzExtensionsRequest, ListAuthzExtensionsResponse, @@ -943,6 +1119,15 @@ protected Builder(ClientContext clientContext) { updateLbRouteExtensionOperationSettings = OperationCallSettings.newBuilder(); deleteLbRouteExtensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteLbRouteExtensionOperationSettings = OperationCallSettings.newBuilder(); + listLbEdgeExtensionsSettings = + PagedCallSettings.newBuilder(LIST_LB_EDGE_EXTENSIONS_PAGE_STR_FACT); + getLbEdgeExtensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLbEdgeExtensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLbEdgeExtensionOperationSettings = OperationCallSettings.newBuilder(); + updateLbEdgeExtensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateLbEdgeExtensionOperationSettings = OperationCallSettings.newBuilder(); + deleteLbEdgeExtensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteLbEdgeExtensionOperationSettings = OperationCallSettings.newBuilder(); listAuthzExtensionsSettings = PagedCallSettings.newBuilder(LIST_AUTHZ_EXTENSIONS_PAGE_STR_FACT); getAuthzExtensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -970,6 +1155,11 @@ protected Builder(ClientContext clientContext) { createLbRouteExtensionSettings, updateLbRouteExtensionSettings, deleteLbRouteExtensionSettings, + listLbEdgeExtensionsSettings, + getLbEdgeExtensionSettings, + createLbEdgeExtensionSettings, + updateLbEdgeExtensionSettings, + deleteLbEdgeExtensionSettings, listAuthzExtensionsSettings, getAuthzExtensionSettings, createAuthzExtensionSettings, @@ -1008,6 +1198,17 @@ protected Builder(DepServiceStubSettings settings) { deleteLbRouteExtensionSettings = settings.deleteLbRouteExtensionSettings.toBuilder(); deleteLbRouteExtensionOperationSettings = settings.deleteLbRouteExtensionOperationSettings.toBuilder(); + listLbEdgeExtensionsSettings = settings.listLbEdgeExtensionsSettings.toBuilder(); + getLbEdgeExtensionSettings = settings.getLbEdgeExtensionSettings.toBuilder(); + createLbEdgeExtensionSettings = settings.createLbEdgeExtensionSettings.toBuilder(); + createLbEdgeExtensionOperationSettings = + settings.createLbEdgeExtensionOperationSettings.toBuilder(); + updateLbEdgeExtensionSettings = settings.updateLbEdgeExtensionSettings.toBuilder(); + updateLbEdgeExtensionOperationSettings = + settings.updateLbEdgeExtensionOperationSettings.toBuilder(); + deleteLbEdgeExtensionSettings = settings.deleteLbEdgeExtensionSettings.toBuilder(); + deleteLbEdgeExtensionOperationSettings = + settings.deleteLbEdgeExtensionOperationSettings.toBuilder(); listAuthzExtensionsSettings = settings.listAuthzExtensionsSettings.toBuilder(); getAuthzExtensionSettings = settings.getAuthzExtensionSettings.toBuilder(); createAuthzExtensionSettings = settings.createAuthzExtensionSettings.toBuilder(); @@ -1037,6 +1238,11 @@ protected Builder(DepServiceStubSettings settings) { createLbRouteExtensionSettings, updateLbRouteExtensionSettings, deleteLbRouteExtensionSettings, + listLbEdgeExtensionsSettings, + getLbEdgeExtensionSettings, + createLbEdgeExtensionSettings, + updateLbEdgeExtensionSettings, + deleteLbEdgeExtensionSettings, listAuthzExtensionsSettings, getAuthzExtensionSettings, createAuthzExtensionSettings, @@ -1124,6 +1330,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 + .listLbEdgeExtensionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getLbEdgeExtensionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createLbEdgeExtensionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateLbEdgeExtensionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteLbEdgeExtensionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listAuthzExtensionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1318,6 +1549,78 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createLbEdgeExtensionOperationSettings() + .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(LbEdgeExtension.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 + .updateLbEdgeExtensionOperationSettings() + .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(LbEdgeExtension.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 + .deleteLbEdgeExtensionOperationSettings() + .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())); + builder .createAuthzExtensionOperationSettings() .setInitialCallSettings( @@ -1514,6 +1817,59 @@ public Builder applyToAllUnaryMethods( return deleteLbRouteExtensionOperationSettings; } + /** Returns the builder for the settings used for calls to listLbEdgeExtensions. */ + public PagedCallSettings.Builder< + ListLbEdgeExtensionsRequest, + ListLbEdgeExtensionsResponse, + ListLbEdgeExtensionsPagedResponse> + listLbEdgeExtensionsSettings() { + return listLbEdgeExtensionsSettings; + } + + /** Returns the builder for the settings used for calls to getLbEdgeExtension. */ + public UnaryCallSettings.Builder + getLbEdgeExtensionSettings() { + return getLbEdgeExtensionSettings; + } + + /** Returns the builder for the settings used for calls to createLbEdgeExtension. */ + public UnaryCallSettings.Builder + createLbEdgeExtensionSettings() { + return createLbEdgeExtensionSettings; + } + + /** Returns the builder for the settings used for calls to createLbEdgeExtension. */ + public OperationCallSettings.Builder< + CreateLbEdgeExtensionRequest, LbEdgeExtension, OperationMetadata> + createLbEdgeExtensionOperationSettings() { + return createLbEdgeExtensionOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateLbEdgeExtension. */ + public UnaryCallSettings.Builder + updateLbEdgeExtensionSettings() { + return updateLbEdgeExtensionSettings; + } + + /** Returns the builder for the settings used for calls to updateLbEdgeExtension. */ + public OperationCallSettings.Builder< + UpdateLbEdgeExtensionRequest, LbEdgeExtension, OperationMetadata> + updateLbEdgeExtensionOperationSettings() { + return updateLbEdgeExtensionOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteLbEdgeExtension. */ + public UnaryCallSettings.Builder + deleteLbEdgeExtensionSettings() { + return deleteLbEdgeExtensionSettings; + } + + /** Returns the builder for the settings used for calls to deleteLbEdgeExtension. */ + public OperationCallSettings.Builder + deleteLbEdgeExtensionOperationSettings() { + return deleteLbEdgeExtensionOperationSettings; + } + /** Returns the builder for the settings used for calls to listAuthzExtensions. */ public PagedCallSettings.Builder< ListAuthzExtensionsRequest, diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcDepServiceStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcDepServiceStub.java index 249636fae83f..11cceced1d92 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcDepServiceStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcDepServiceStub.java @@ -17,6 +17,7 @@ package com.google.cloud.networkservices.v1.stub; import static com.google.cloud.networkservices.v1.DepServiceClient.ListAuthzExtensionsPagedResponse; +import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbEdgeExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbRouteExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbTrafficExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLocationsPagedResponse; @@ -35,24 +36,31 @@ import com.google.cloud.location.Location; import com.google.cloud.networkservices.v1.AuthzExtension; import com.google.cloud.networkservices.v1.CreateAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.CreateLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.CreateLbTrafficExtensionRequest; import com.google.cloud.networkservices.v1.DeleteAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.DeleteLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.DeleteLbTrafficExtensionRequest; import com.google.cloud.networkservices.v1.GetAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.GetLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.GetLbTrafficExtensionRequest; +import com.google.cloud.networkservices.v1.LbEdgeExtension; import com.google.cloud.networkservices.v1.LbRouteExtension; import com.google.cloud.networkservices.v1.LbTrafficExtension; import com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest; import com.google.cloud.networkservices.v1.ListAuthzExtensionsResponse; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse; import com.google.cloud.networkservices.v1.ListLbRouteExtensionsRequest; import com.google.cloud.networkservices.v1.ListLbRouteExtensionsResponse; import com.google.cloud.networkservices.v1.ListLbTrafficExtensionsRequest; import com.google.cloud.networkservices.v1.ListLbTrafficExtensionsResponse; import com.google.cloud.networkservices.v1.OperationMetadata; import com.google.cloud.networkservices.v1.UpdateAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.UpdateLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.UpdateLbTrafficExtensionRequest; import com.google.iam.v1.GetIamPolicyRequest; @@ -198,6 +206,62 @@ public class GrpcDepServiceStub extends DepServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listLbEdgeExtensionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networkservices.v1.DepService/ListLbEdgeExtensions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLbEdgeExtensionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLbEdgeExtensionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getLbEdgeExtensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networkservices.v1.DepService/GetLbEdgeExtension") + .setRequestMarshaller( + ProtoUtils.marshaller(GetLbEdgeExtensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LbEdgeExtension.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createLbEdgeExtensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networkservices.v1.DepService/CreateLbEdgeExtension") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateLbEdgeExtensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateLbEdgeExtensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networkservices.v1.DepService/UpdateLbEdgeExtension") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateLbEdgeExtensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteLbEdgeExtensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networkservices.v1.DepService/DeleteLbEdgeExtension") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteLbEdgeExtensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listAuthzExtensionsMethodDescriptor = MethodDescriptor.newBuilder() @@ -345,6 +409,24 @@ public class GrpcDepServiceStub extends DepServiceStub { deleteLbRouteExtensionCallable; private final OperationCallable deleteLbRouteExtensionOperationCallable; + private final UnaryCallable + listLbEdgeExtensionsCallable; + private final UnaryCallable + listLbEdgeExtensionsPagedCallable; + private final UnaryCallable + getLbEdgeExtensionCallable; + private final UnaryCallable + createLbEdgeExtensionCallable; + private final OperationCallable + createLbEdgeExtensionOperationCallable; + private final UnaryCallable + updateLbEdgeExtensionCallable; + private final OperationCallable + updateLbEdgeExtensionOperationCallable; + private final UnaryCallable + deleteLbEdgeExtensionCallable; + private final OperationCallable + deleteLbEdgeExtensionOperationCallable; private final UnaryCallable listAuthzExtensionsCallable; private final UnaryCallable @@ -526,6 +608,63 @@ protected GrpcDepServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + listLbEdgeExtensionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLbEdgeExtensionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getLbEdgeExtensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLbEdgeExtensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createLbEdgeExtensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createLbEdgeExtensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateLbEdgeExtensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateLbEdgeExtensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "lb_edge_extension.name", + String.valueOf(request.getLbEdgeExtension().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteLbEdgeExtensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteLbEdgeExtensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listAuthzExtensionsTransportSettings = GrpcCallSettings.newBuilder() @@ -727,6 +866,54 @@ protected GrpcDepServiceStub( settings.deleteLbRouteExtensionOperationSettings(), clientContext, operationsStub); + this.listLbEdgeExtensionsCallable = + callableFactory.createUnaryCallable( + listLbEdgeExtensionsTransportSettings, + settings.listLbEdgeExtensionsSettings(), + clientContext); + this.listLbEdgeExtensionsPagedCallable = + callableFactory.createPagedCallable( + listLbEdgeExtensionsTransportSettings, + settings.listLbEdgeExtensionsSettings(), + clientContext); + this.getLbEdgeExtensionCallable = + callableFactory.createUnaryCallable( + getLbEdgeExtensionTransportSettings, + settings.getLbEdgeExtensionSettings(), + clientContext); + this.createLbEdgeExtensionCallable = + callableFactory.createUnaryCallable( + createLbEdgeExtensionTransportSettings, + settings.createLbEdgeExtensionSettings(), + clientContext); + this.createLbEdgeExtensionOperationCallable = + callableFactory.createOperationCallable( + createLbEdgeExtensionTransportSettings, + settings.createLbEdgeExtensionOperationSettings(), + clientContext, + operationsStub); + this.updateLbEdgeExtensionCallable = + callableFactory.createUnaryCallable( + updateLbEdgeExtensionTransportSettings, + settings.updateLbEdgeExtensionSettings(), + clientContext); + this.updateLbEdgeExtensionOperationCallable = + callableFactory.createOperationCallable( + updateLbEdgeExtensionTransportSettings, + settings.updateLbEdgeExtensionOperationSettings(), + clientContext, + operationsStub); + this.deleteLbEdgeExtensionCallable = + callableFactory.createUnaryCallable( + deleteLbEdgeExtensionTransportSettings, + settings.deleteLbEdgeExtensionSettings(), + clientContext); + this.deleteLbEdgeExtensionOperationCallable = + callableFactory.createOperationCallable( + deleteLbEdgeExtensionTransportSettings, + settings.deleteLbEdgeExtensionOperationSettings(), + clientContext, + operationsStub); this.listAuthzExtensionsCallable = callableFactory.createUnaryCallable( listAuthzExtensionsTransportSettings, @@ -908,6 +1095,56 @@ public UnaryCallable deleteLbRouteExte return deleteLbRouteExtensionOperationCallable; } + @Override + public UnaryCallable + listLbEdgeExtensionsCallable() { + return listLbEdgeExtensionsCallable; + } + + @Override + public UnaryCallable + listLbEdgeExtensionsPagedCallable() { + return listLbEdgeExtensionsPagedCallable; + } + + @Override + public UnaryCallable getLbEdgeExtensionCallable() { + return getLbEdgeExtensionCallable; + } + + @Override + public UnaryCallable createLbEdgeExtensionCallable() { + return createLbEdgeExtensionCallable; + } + + @Override + public OperationCallable + createLbEdgeExtensionOperationCallable() { + return createLbEdgeExtensionOperationCallable; + } + + @Override + public UnaryCallable updateLbEdgeExtensionCallable() { + return updateLbEdgeExtensionCallable; + } + + @Override + public OperationCallable + updateLbEdgeExtensionOperationCallable() { + return updateLbEdgeExtensionOperationCallable; + } + + @Override + public UnaryCallable deleteLbEdgeExtensionCallable() { + return deleteLbEdgeExtensionCallable; + } + + @Override + public OperationCallable + deleteLbEdgeExtensionOperationCallable() { + return deleteLbEdgeExtensionOperationCallable; + } + @Override public UnaryCallable listAuthzExtensionsCallable() { diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonDepServiceStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonDepServiceStub.java index aca34d899d6f..2ff0390352a1 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonDepServiceStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonDepServiceStub.java @@ -17,6 +17,7 @@ package com.google.cloud.networkservices.v1.stub; import static com.google.cloud.networkservices.v1.DepServiceClient.ListAuthzExtensionsPagedResponse; +import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbEdgeExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbRouteExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbTrafficExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLocationsPagedResponse; @@ -43,24 +44,31 @@ import com.google.cloud.location.Location; import com.google.cloud.networkservices.v1.AuthzExtension; import com.google.cloud.networkservices.v1.CreateAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.CreateLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.CreateLbTrafficExtensionRequest; import com.google.cloud.networkservices.v1.DeleteAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.DeleteLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.DeleteLbTrafficExtensionRequest; import com.google.cloud.networkservices.v1.GetAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.GetLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.GetLbTrafficExtensionRequest; +import com.google.cloud.networkservices.v1.LbEdgeExtension; import com.google.cloud.networkservices.v1.LbRouteExtension; import com.google.cloud.networkservices.v1.LbTrafficExtension; import com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest; import com.google.cloud.networkservices.v1.ListAuthzExtensionsResponse; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse; import com.google.cloud.networkservices.v1.ListLbRouteExtensionsRequest; import com.google.cloud.networkservices.v1.ListLbRouteExtensionsResponse; import com.google.cloud.networkservices.v1.ListLbTrafficExtensionsRequest; import com.google.cloud.networkservices.v1.ListLbTrafficExtensionsResponse; import com.google.cloud.networkservices.v1.OperationMetadata; import com.google.cloud.networkservices.v1.UpdateAuthzExtensionRequest; +import com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest; import com.google.cloud.networkservices.v1.UpdateLbRouteExtensionRequest; import com.google.cloud.networkservices.v1.UpdateLbTrafficExtensionRequest; import com.google.common.collect.ImmutableMap; @@ -95,6 +103,7 @@ public class HttpJsonDepServiceStub extends DepServiceStub { .add(LbTrafficExtension.getDescriptor()) .add(OperationMetadata.getDescriptor()) .add(AuthzExtension.getDescriptor()) + .add(LbEdgeExtension.getDescriptor()) .build(); private static final ApiMethodDescriptor< @@ -506,6 +515,206 @@ public class HttpJsonDepServiceStub extends DepServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + ListLbEdgeExtensionsRequest, ListLbEdgeExtensionsResponse> + listLbEdgeExtensionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.networkservices.v1.DepService/ListLbEdgeExtensions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/lbEdgeExtensions", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLbEdgeExtensionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLbEdgeExtensionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.networkservices.v1.DepService/GetLbEdgeExtension") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}", + 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(LbEdgeExtension.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createLbEdgeExtensionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.networkservices.v1.DepService/CreateLbEdgeExtension") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/lbEdgeExtensions", + 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, "lbEdgeExtensionId", request.getLbEdgeExtensionId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("lbEdgeExtension", request.getLbEdgeExtension(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateLbEdgeExtensionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateLbEdgeExtensionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.networkservices.v1.DepService/UpdateLbEdgeExtension") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{lbEdgeExtension.name=projects/*/locations/*/lbEdgeExtensions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "lbEdgeExtension.name", + request.getLbEdgeExtension().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("lbEdgeExtension", request.getLbEdgeExtension(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateLbEdgeExtensionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteLbEdgeExtensionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.networkservices.v1.DepService/DeleteLbEdgeExtension") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteLbEdgeExtensionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listAuthzExtensionsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -941,6 +1150,24 @@ public class HttpJsonDepServiceStub extends DepServiceStub { deleteLbRouteExtensionCallable; private final OperationCallable deleteLbRouteExtensionOperationCallable; + private final UnaryCallable + listLbEdgeExtensionsCallable; + private final UnaryCallable + listLbEdgeExtensionsPagedCallable; + private final UnaryCallable + getLbEdgeExtensionCallable; + private final UnaryCallable + createLbEdgeExtensionCallable; + private final OperationCallable + createLbEdgeExtensionOperationCallable; + private final UnaryCallable + updateLbEdgeExtensionCallable; + private final OperationCallable + updateLbEdgeExtensionOperationCallable; + private final UnaryCallable + deleteLbEdgeExtensionCallable; + private final OperationCallable + deleteLbEdgeExtensionOperationCallable; private final UnaryCallable listAuthzExtensionsCallable; private final UnaryCallable @@ -1160,6 +1387,69 @@ protected HttpJsonDepServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listLbEdgeExtensionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listLbEdgeExtensionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getLbEdgeExtensionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLbEdgeExtensionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createLbEdgeExtensionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createLbEdgeExtensionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateLbEdgeExtensionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateLbEdgeExtensionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "lb_edge_extension.name", + String.valueOf(request.getLbEdgeExtension().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteLbEdgeExtensionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteLbEdgeExtensionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listAuthzExtensionsTransportSettings = HttpJsonCallSettings @@ -1377,6 +1667,54 @@ protected HttpJsonDepServiceStub( settings.deleteLbRouteExtensionOperationSettings(), clientContext, httpJsonOperationsStub); + this.listLbEdgeExtensionsCallable = + callableFactory.createUnaryCallable( + listLbEdgeExtensionsTransportSettings, + settings.listLbEdgeExtensionsSettings(), + clientContext); + this.listLbEdgeExtensionsPagedCallable = + callableFactory.createPagedCallable( + listLbEdgeExtensionsTransportSettings, + settings.listLbEdgeExtensionsSettings(), + clientContext); + this.getLbEdgeExtensionCallable = + callableFactory.createUnaryCallable( + getLbEdgeExtensionTransportSettings, + settings.getLbEdgeExtensionSettings(), + clientContext); + this.createLbEdgeExtensionCallable = + callableFactory.createUnaryCallable( + createLbEdgeExtensionTransportSettings, + settings.createLbEdgeExtensionSettings(), + clientContext); + this.createLbEdgeExtensionOperationCallable = + callableFactory.createOperationCallable( + createLbEdgeExtensionTransportSettings, + settings.createLbEdgeExtensionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateLbEdgeExtensionCallable = + callableFactory.createUnaryCallable( + updateLbEdgeExtensionTransportSettings, + settings.updateLbEdgeExtensionSettings(), + clientContext); + this.updateLbEdgeExtensionOperationCallable = + callableFactory.createOperationCallable( + updateLbEdgeExtensionTransportSettings, + settings.updateLbEdgeExtensionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteLbEdgeExtensionCallable = + callableFactory.createUnaryCallable( + deleteLbEdgeExtensionTransportSettings, + settings.deleteLbEdgeExtensionSettings(), + clientContext); + this.deleteLbEdgeExtensionOperationCallable = + callableFactory.createOperationCallable( + deleteLbEdgeExtensionTransportSettings, + settings.deleteLbEdgeExtensionOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listAuthzExtensionsCallable = callableFactory.createUnaryCallable( listAuthzExtensionsTransportSettings, @@ -1463,6 +1801,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(createLbRouteExtensionMethodDescriptor); methodDescriptors.add(updateLbRouteExtensionMethodDescriptor); methodDescriptors.add(deleteLbRouteExtensionMethodDescriptor); + methodDescriptors.add(listLbEdgeExtensionsMethodDescriptor); + methodDescriptors.add(getLbEdgeExtensionMethodDescriptor); + methodDescriptors.add(createLbEdgeExtensionMethodDescriptor); + methodDescriptors.add(updateLbEdgeExtensionMethodDescriptor); + methodDescriptors.add(deleteLbEdgeExtensionMethodDescriptor); methodDescriptors.add(listAuthzExtensionsMethodDescriptor); methodDescriptors.add(getAuthzExtensionMethodDescriptor); methodDescriptors.add(createAuthzExtensionMethodDescriptor); @@ -1584,6 +1927,56 @@ public UnaryCallable deleteLbRouteExte return deleteLbRouteExtensionOperationCallable; } + @Override + public UnaryCallable + listLbEdgeExtensionsCallable() { + return listLbEdgeExtensionsCallable; + } + + @Override + public UnaryCallable + listLbEdgeExtensionsPagedCallable() { + return listLbEdgeExtensionsPagedCallable; + } + + @Override + public UnaryCallable getLbEdgeExtensionCallable() { + return getLbEdgeExtensionCallable; + } + + @Override + public UnaryCallable createLbEdgeExtensionCallable() { + return createLbEdgeExtensionCallable; + } + + @Override + public OperationCallable + createLbEdgeExtensionOperationCallable() { + return createLbEdgeExtensionOperationCallable; + } + + @Override + public UnaryCallable updateLbEdgeExtensionCallable() { + return updateLbEdgeExtensionCallable; + } + + @Override + public OperationCallable + updateLbEdgeExtensionOperationCallable() { + return updateLbEdgeExtensionOperationCallable; + } + + @Override + public UnaryCallable deleteLbEdgeExtensionCallable() { + return deleteLbEdgeExtensionCallable; + } + + @Override + public OperationCallable + deleteLbEdgeExtensionOperationCallable() { + return deleteLbEdgeExtensionOperationCallable; + } + @Override public UnaryCallable listAuthzExtensionsCallable() { 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 fc4e6413fa69..f24906e6ab7a 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 @@ -638,6 +638,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.CreateLbRouteExtensionRequest", "queryAllDeclaredConstructors": true, @@ -890,6 +908,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.DeleteLbRouteExtensionRequest", "queryAllDeclaredConstructors": true, @@ -1385,6 +1421,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.GetLbRouteExtensionRequest", "queryAllDeclaredConstructors": true, @@ -2150,6 +2204,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.LbEdgeExtension", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.LbEdgeExtension$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.LbRouteExtension", "queryAllDeclaredConstructors": true, @@ -2402,6 +2474,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.ListLbRouteExtensionsRequest", "queryAllDeclaredConstructors": true, @@ -3230,6 +3338,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.UpdateLbRouteExtensionRequest", "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 23b5564ad695..63966196a5e6 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 @@ -17,6 +17,7 @@ package com.google.cloud.networkservices.v1; import static com.google.cloud.networkservices.v1.DepServiceClient.ListAuthzExtensionsPagedResponse; +import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbEdgeExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbRouteExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbTrafficExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLocationsPagedResponse; @@ -1148,6 +1149,515 @@ public void deleteLbRouteExtensionExceptionTest2() throws Exception { } } + @Test + public void listLbEdgeExtensionsTest() throws Exception { + LbEdgeExtension responsesElement = LbEdgeExtension.newBuilder().build(); + ListLbEdgeExtensionsResponse expectedResponse = + ListLbEdgeExtensionsResponse.newBuilder() + .setNextPageToken("") + .addAllLbEdgeExtensions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListLbEdgeExtensionsPagedResponse pagedListResponse = client.listLbEdgeExtensions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLbEdgeExtensionsList().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 listLbEdgeExtensionsExceptionTest() 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.listLbEdgeExtensions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLbEdgeExtensionsTest2() throws Exception { + LbEdgeExtension responsesElement = LbEdgeExtension.newBuilder().build(); + ListLbEdgeExtensionsResponse expectedResponse = + ListLbEdgeExtensionsResponse.newBuilder() + .setNextPageToken("") + .addAllLbEdgeExtensions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListLbEdgeExtensionsPagedResponse pagedListResponse = client.listLbEdgeExtensions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLbEdgeExtensionsList().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 listLbEdgeExtensionsExceptionTest2() 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.listLbEdgeExtensions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLbEdgeExtensionTest() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + + LbEdgeExtension actualResponse = client.getLbEdgeExtension(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 getLbEdgeExtensionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + client.getLbEdgeExtension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLbEdgeExtensionTest2() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7431/locations/location-7431/lbEdgeExtensions/lbEdgeExtension-7431"; + + LbEdgeExtension actualResponse = client.getLbEdgeExtension(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 getLbEdgeExtensionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7431/locations/location-7431/lbEdgeExtensions/lbEdgeExtension-7431"; + client.getLbEdgeExtension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLbEdgeExtensionTest() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + + LbEdgeExtension actualResponse = + client.createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId).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 createLbEdgeExtensionExceptionTest() 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]"); + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + client.createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createLbEdgeExtensionTest2() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + + LbEdgeExtension actualResponse = + client.createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId).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 createLbEdgeExtensionExceptionTest2() 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"; + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + client.createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateLbEdgeExtensionTest() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LbEdgeExtension lbEdgeExtension = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LbEdgeExtension actualResponse = + client.updateLbEdgeExtensionAsync(lbEdgeExtension, 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 updateLbEdgeExtensionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LbEdgeExtension lbEdgeExtension = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLbEdgeExtensionAsync(lbEdgeExtension, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteLbEdgeExtensionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + + client.deleteLbEdgeExtensionAsync(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 deleteLbEdgeExtensionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + client.deleteLbEdgeExtensionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteLbEdgeExtensionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7431/locations/location-7431/lbEdgeExtensions/lbEdgeExtension-7431"; + + client.deleteLbEdgeExtensionAsync(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 deleteLbEdgeExtensionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7431/locations/location-7431/lbEdgeExtensions/lbEdgeExtension-7431"; + client.deleteLbEdgeExtensionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listAuthzExtensionsTest() throws Exception { AuthzExtension responsesElement = AuthzExtension.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 0467af102a11..b895130b24c7 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 @@ -17,6 +17,7 @@ package com.google.cloud.networkservices.v1; import static com.google.cloud.networkservices.v1.DepServiceClient.ListAuthzExtensionsPagedResponse; +import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbEdgeExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbRouteExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLbTrafficExtensionsPagedResponse; import static com.google.cloud.networkservices.v1.DepServiceClient.ListLocationsPagedResponse; @@ -1046,6 +1047,461 @@ public void deleteLbRouteExtensionExceptionTest2() throws Exception { } } + @Test + public void listLbEdgeExtensionsTest() throws Exception { + LbEdgeExtension responsesElement = LbEdgeExtension.newBuilder().build(); + ListLbEdgeExtensionsResponse expectedResponse = + ListLbEdgeExtensionsResponse.newBuilder() + .setNextPageToken("") + .addAllLbEdgeExtensions(Arrays.asList(responsesElement)) + .build(); + mockDepService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListLbEdgeExtensionsPagedResponse pagedListResponse = client.listLbEdgeExtensions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLbEdgeExtensionsList().get(0), resources.get(0)); + + List actualRequests = mockDepService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLbEdgeExtensionsRequest actualRequest = + ((ListLbEdgeExtensionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLbEdgeExtensionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDepService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listLbEdgeExtensions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLbEdgeExtensionsTest2() throws Exception { + LbEdgeExtension responsesElement = LbEdgeExtension.newBuilder().build(); + ListLbEdgeExtensionsResponse expectedResponse = + ListLbEdgeExtensionsResponse.newBuilder() + .setNextPageToken("") + .addAllLbEdgeExtensions(Arrays.asList(responsesElement)) + .build(); + mockDepService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLbEdgeExtensionsPagedResponse pagedListResponse = client.listLbEdgeExtensions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLbEdgeExtensionsList().get(0), resources.get(0)); + + List actualRequests = mockDepService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLbEdgeExtensionsRequest actualRequest = + ((ListLbEdgeExtensionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLbEdgeExtensionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDepService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLbEdgeExtensions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLbEdgeExtensionTest() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + mockDepService.addResponse(expectedResponse); + + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + + LbEdgeExtension actualResponse = client.getLbEdgeExtension(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDepService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLbEdgeExtensionRequest actualRequest = ((GetLbEdgeExtensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLbEdgeExtensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDepService.addException(exception); + + try { + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + client.getLbEdgeExtension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLbEdgeExtensionTest2() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + mockDepService.addResponse(expectedResponse); + + String name = "name3373707"; + + LbEdgeExtension actualResponse = client.getLbEdgeExtension(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDepService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLbEdgeExtensionRequest actualRequest = ((GetLbEdgeExtensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLbEdgeExtensionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDepService.addException(exception); + + try { + String name = "name3373707"; + client.getLbEdgeExtension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLbEdgeExtensionTest() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDepService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + + LbEdgeExtension actualResponse = + client.createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDepService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLbEdgeExtensionRequest actualRequest = + ((CreateLbEdgeExtensionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(lbEdgeExtension, actualRequest.getLbEdgeExtension()); + Assert.assertEquals(lbEdgeExtensionId, actualRequest.getLbEdgeExtensionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLbEdgeExtensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDepService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + client.createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId).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 createLbEdgeExtensionTest2() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDepService.addResponse(resultOperation); + + String parent = "parent-995424086"; + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + + LbEdgeExtension actualResponse = + client.createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDepService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLbEdgeExtensionRequest actualRequest = + ((CreateLbEdgeExtensionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(lbEdgeExtension, actualRequest.getLbEdgeExtension()); + Assert.assertEquals(lbEdgeExtensionId, actualRequest.getLbEdgeExtensionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLbEdgeExtensionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDepService.addException(exception); + + try { + String parent = "parent-995424086"; + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + client.createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId).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 updateLbEdgeExtensionTest() throws Exception { + LbEdgeExtension expectedResponse = + LbEdgeExtension.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .putAllLabels(new HashMap()) + .addAllForwardingRules(new ArrayList()) + .addAllExtensionChains(new ArrayList()) + .setLoadBalancingScheme(LoadBalancingScheme.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDepService.addResponse(resultOperation); + + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LbEdgeExtension actualResponse = + client.updateLbEdgeExtensionAsync(lbEdgeExtension, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDepService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateLbEdgeExtensionRequest actualRequest = + ((UpdateLbEdgeExtensionRequest) actualRequests.get(0)); + + Assert.assertEquals(lbEdgeExtension, actualRequest.getLbEdgeExtension()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateLbEdgeExtensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDepService.addException(exception); + + try { + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLbEdgeExtensionAsync(lbEdgeExtension, 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 deleteLbEdgeExtensionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDepService.addResponse(resultOperation); + + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + + client.deleteLbEdgeExtensionAsync(name).get(); + + List actualRequests = mockDepService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLbEdgeExtensionRequest actualRequest = + ((DeleteLbEdgeExtensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLbEdgeExtensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDepService.addException(exception); + + try { + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + client.deleteLbEdgeExtensionAsync(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 deleteLbEdgeExtensionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLbEdgeExtensionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDepService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteLbEdgeExtensionAsync(name).get(); + + List actualRequests = mockDepService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLbEdgeExtensionRequest actualRequest = + ((DeleteLbEdgeExtensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLbEdgeExtensionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDepService.addException(exception); + + try { + String name = "name3373707"; + client.deleteLbEdgeExtensionAsync(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 listAuthzExtensionsTest() throws Exception { AuthzExtension responsesElement = AuthzExtension.newBuilder().build(); diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockDepServiceImpl.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockDepServiceImpl.java index a46d2096e7ac..ce5729addb3c 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockDepServiceImpl.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockDepServiceImpl.java @@ -280,6 +280,116 @@ public void deleteLbRouteExtension( } } + @Override + public void listLbEdgeExtensions( + ListLbEdgeExtensionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLbEdgeExtensionsResponse) { + requests.add(request); + responseObserver.onNext(((ListLbEdgeExtensionsResponse) 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 ListLbEdgeExtensions, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListLbEdgeExtensionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLbEdgeExtension( + GetLbEdgeExtensionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LbEdgeExtension) { + requests.add(request); + responseObserver.onNext(((LbEdgeExtension) 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 GetLbEdgeExtension, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LbEdgeExtension.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createLbEdgeExtension( + CreateLbEdgeExtensionRequest 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 CreateLbEdgeExtension, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateLbEdgeExtension( + UpdateLbEdgeExtensionRequest 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 UpdateLbEdgeExtension, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteLbEdgeExtension( + DeleteLbEdgeExtensionRequest 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 DeleteLbEdgeExtension, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listAuthzExtensions( ListAuthzExtensionsRequest request, diff --git a/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepServiceGrpc.java b/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepServiceGrpc.java index eb1dd1e51476..76c2fad62b73 100644 --- a/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepServiceGrpc.java +++ b/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepServiceGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkservices/v1/dep.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DepServiceGrpc { @@ -525,6 +522,246 @@ private DepServiceGrpc() {} return getDeleteLbRouteExtensionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest, + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse> + getListLbEdgeExtensionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLbEdgeExtensions", + requestType = com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest.class, + responseType = com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest, + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse> + getListLbEdgeExtensionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest, + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse> + getListLbEdgeExtensionsMethod; + if ((getListLbEdgeExtensionsMethod = DepServiceGrpc.getListLbEdgeExtensionsMethod) == null) { + synchronized (DepServiceGrpc.class) { + if ((getListLbEdgeExtensionsMethod = DepServiceGrpc.getListLbEdgeExtensionsMethod) + == null) { + DepServiceGrpc.getListLbEdgeExtensionsMethod = + getListLbEdgeExtensionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListLbEdgeExtensions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DepServiceMethodDescriptorSupplier("ListLbEdgeExtensions")) + .build(); + } + } + } + return getListLbEdgeExtensionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest, + com.google.cloud.networkservices.v1.LbEdgeExtension> + getGetLbEdgeExtensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLbEdgeExtension", + requestType = com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest.class, + responseType = com.google.cloud.networkservices.v1.LbEdgeExtension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest, + com.google.cloud.networkservices.v1.LbEdgeExtension> + getGetLbEdgeExtensionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest, + com.google.cloud.networkservices.v1.LbEdgeExtension> + getGetLbEdgeExtensionMethod; + if ((getGetLbEdgeExtensionMethod = DepServiceGrpc.getGetLbEdgeExtensionMethod) == null) { + synchronized (DepServiceGrpc.class) { + if ((getGetLbEdgeExtensionMethod = DepServiceGrpc.getGetLbEdgeExtensionMethod) == null) { + DepServiceGrpc.getGetLbEdgeExtensionMethod = + getGetLbEdgeExtensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLbEdgeExtension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.LbEdgeExtension + .getDefaultInstance())) + .setSchemaDescriptor( + new DepServiceMethodDescriptorSupplier("GetLbEdgeExtension")) + .build(); + } + } + } + return getGetLbEdgeExtensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest, + com.google.longrunning.Operation> + getCreateLbEdgeExtensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateLbEdgeExtension", + requestType = com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest, + com.google.longrunning.Operation> + getCreateLbEdgeExtensionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest, + com.google.longrunning.Operation> + getCreateLbEdgeExtensionMethod; + if ((getCreateLbEdgeExtensionMethod = DepServiceGrpc.getCreateLbEdgeExtensionMethod) == null) { + synchronized (DepServiceGrpc.class) { + if ((getCreateLbEdgeExtensionMethod = DepServiceGrpc.getCreateLbEdgeExtensionMethod) + == null) { + DepServiceGrpc.getCreateLbEdgeExtensionMethod = + getCreateLbEdgeExtensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateLbEdgeExtension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DepServiceMethodDescriptorSupplier("CreateLbEdgeExtension")) + .build(); + } + } + } + return getCreateLbEdgeExtensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest, + com.google.longrunning.Operation> + getUpdateLbEdgeExtensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateLbEdgeExtension", + requestType = com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest, + com.google.longrunning.Operation> + getUpdateLbEdgeExtensionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest, + com.google.longrunning.Operation> + getUpdateLbEdgeExtensionMethod; + if ((getUpdateLbEdgeExtensionMethod = DepServiceGrpc.getUpdateLbEdgeExtensionMethod) == null) { + synchronized (DepServiceGrpc.class) { + if ((getUpdateLbEdgeExtensionMethod = DepServiceGrpc.getUpdateLbEdgeExtensionMethod) + == null) { + DepServiceGrpc.getUpdateLbEdgeExtensionMethod = + getUpdateLbEdgeExtensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateLbEdgeExtension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DepServiceMethodDescriptorSupplier("UpdateLbEdgeExtension")) + .build(); + } + } + } + return getUpdateLbEdgeExtensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest, + com.google.longrunning.Operation> + getDeleteLbEdgeExtensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteLbEdgeExtension", + requestType = com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest, + com.google.longrunning.Operation> + getDeleteLbEdgeExtensionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest, + com.google.longrunning.Operation> + getDeleteLbEdgeExtensionMethod; + if ((getDeleteLbEdgeExtensionMethod = DepServiceGrpc.getDeleteLbEdgeExtensionMethod) == null) { + synchronized (DepServiceGrpc.class) { + if ((getDeleteLbEdgeExtensionMethod = DepServiceGrpc.getDeleteLbEdgeExtensionMethod) + == null) { + DepServiceGrpc.getDeleteLbEdgeExtensionMethod = + getDeleteLbEdgeExtensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteLbEdgeExtension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DepServiceMethodDescriptorSupplier("DeleteLbEdgeExtension")) + .build(); + } + } + } + return getDeleteLbEdgeExtensionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest, com.google.cloud.networkservices.v1.ListAuthzExtensionsResponse> @@ -973,6 +1210,79 @@ default void deleteLbRouteExtension( getDeleteLbRouteExtensionMethod(), responseObserver); } + /** + * + * + *
                                              +     * Lists `LbEdgeExtension` resources in a given project and location.
                                              +     * 
                                              + */ + default void listLbEdgeExtensions( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLbEdgeExtensionsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + default void getLbEdgeExtension( + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLbEdgeExtensionMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new `LbEdgeExtension` resource in a given project and location.
                                              +     * 
                                              + */ + default void createLbEdgeExtension( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateLbEdgeExtensionMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Updates the parameters of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + default void updateLbEdgeExtension( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateLbEdgeExtensionMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + default void deleteLbEdgeExtension( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteLbEdgeExtensionMethod(), responseObserver); + } + /** * * @@ -1247,6 +1557,89 @@ public void deleteLbRouteExtension( responseObserver); } + /** + * + * + *
                                              +     * Lists `LbEdgeExtension` resources in a given project and location.
                                              +     * 
                                              + */ + public void listLbEdgeExtensions( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLbEdgeExtensionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public void getLbEdgeExtension( + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLbEdgeExtensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new `LbEdgeExtension` resource in a given project and location.
                                              +     * 
                                              + */ + public void createLbEdgeExtension( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateLbEdgeExtensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Updates the parameters of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public void updateLbEdgeExtension( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateLbEdgeExtensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public void deleteLbEdgeExtension( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteLbEdgeExtensionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1360,8 +1753,9 @@ protected DepServiceBlockingV2Stub build( */ public com.google.cloud.networkservices.v1.ListLbTrafficExtensionsResponse listLbTrafficExtensions( - com.google.cloud.networkservices.v1.ListLbTrafficExtensionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListLbTrafficExtensionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLbTrafficExtensionsMethod(), getCallOptions(), request); } @@ -1373,8 +1767,9 @@ protected DepServiceBlockingV2Stub build( * */ public com.google.cloud.networkservices.v1.LbTrafficExtension getLbTrafficExtension( - com.google.cloud.networkservices.v1.GetLbTrafficExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetLbTrafficExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLbTrafficExtensionMethod(), getCallOptions(), request); } @@ -1387,8 +1782,9 @@ public com.google.cloud.networkservices.v1.LbTrafficExtension getLbTrafficExtens * */ public com.google.longrunning.Operation createLbTrafficExtension( - com.google.cloud.networkservices.v1.CreateLbTrafficExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateLbTrafficExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateLbTrafficExtensionMethod(), getCallOptions(), request); } @@ -1400,8 +1796,9 @@ public com.google.longrunning.Operation createLbTrafficExtension( * */ public com.google.longrunning.Operation updateLbTrafficExtension( - com.google.cloud.networkservices.v1.UpdateLbTrafficExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateLbTrafficExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateLbTrafficExtensionMethod(), getCallOptions(), request); } @@ -1413,8 +1810,9 @@ public com.google.longrunning.Operation updateLbTrafficExtension( * */ public com.google.longrunning.Operation deleteLbTrafficExtension( - com.google.cloud.networkservices.v1.DeleteLbTrafficExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteLbTrafficExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLbTrafficExtensionMethod(), getCallOptions(), request); } @@ -1426,8 +1824,9 @@ public com.google.longrunning.Operation deleteLbTrafficExtension( * */ public com.google.cloud.networkservices.v1.ListLbRouteExtensionsResponse listLbRouteExtensions( - com.google.cloud.networkservices.v1.ListLbRouteExtensionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListLbRouteExtensionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLbRouteExtensionsMethod(), getCallOptions(), request); } @@ -1439,8 +1838,9 @@ public com.google.cloud.networkservices.v1.ListLbRouteExtensionsResponse listLbR * */ public com.google.cloud.networkservices.v1.LbRouteExtension getLbRouteExtension( - com.google.cloud.networkservices.v1.GetLbRouteExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetLbRouteExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLbRouteExtensionMethod(), getCallOptions(), request); } @@ -1452,8 +1852,9 @@ public com.google.cloud.networkservices.v1.LbRouteExtension getLbRouteExtension( * */ public com.google.longrunning.Operation createLbRouteExtension( - com.google.cloud.networkservices.v1.CreateLbRouteExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateLbRouteExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateLbRouteExtensionMethod(), getCallOptions(), request); } @@ -1465,8 +1866,9 @@ public com.google.longrunning.Operation createLbRouteExtension( * */ public com.google.longrunning.Operation updateLbRouteExtension( - com.google.cloud.networkservices.v1.UpdateLbRouteExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateLbRouteExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateLbRouteExtensionMethod(), getCallOptions(), request); } @@ -1478,11 +1880,82 @@ public com.google.longrunning.Operation updateLbRouteExtension( * */ public com.google.longrunning.Operation deleteLbRouteExtension( - com.google.cloud.networkservices.v1.DeleteLbRouteExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteLbRouteExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLbRouteExtensionMethod(), getCallOptions(), request); } + /** + * + * + *
                                              +     * Lists `LbEdgeExtension` resources in a given project and location.
                                              +     * 
                                              + */ + public com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse listLbEdgeExtensions( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListLbEdgeExtensionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets details of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtension( + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetLbEdgeExtensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new `LbEdgeExtension` resource in a given project and location.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createLbEdgeExtension( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateLbEdgeExtensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Updates the parameters of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation updateLbEdgeExtension( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateLbEdgeExtensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteLbEdgeExtension( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteLbEdgeExtensionMethod(), getCallOptions(), request); + } + /** * * @@ -1491,8 +1964,9 @@ public com.google.longrunning.Operation deleteLbRouteExtension( * */ public com.google.cloud.networkservices.v1.ListAuthzExtensionsResponse listAuthzExtensions( - com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAuthzExtensionsMethod(), getCallOptions(), request); } @@ -1504,8 +1978,9 @@ public com.google.cloud.networkservices.v1.ListAuthzExtensionsResponse listAuthz * */ public com.google.cloud.networkservices.v1.AuthzExtension getAuthzExtension( - com.google.cloud.networkservices.v1.GetAuthzExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetAuthzExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAuthzExtensionMethod(), getCallOptions(), request); } @@ -1518,8 +1993,9 @@ public com.google.cloud.networkservices.v1.AuthzExtension getAuthzExtension( * */ public com.google.longrunning.Operation createAuthzExtension( - com.google.cloud.networkservices.v1.CreateAuthzExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateAuthzExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAuthzExtensionMethod(), getCallOptions(), request); } @@ -1532,8 +2008,9 @@ public com.google.longrunning.Operation createAuthzExtension( * */ public com.google.longrunning.Operation updateAuthzExtension( - com.google.cloud.networkservices.v1.UpdateAuthzExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateAuthzExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAuthzExtensionMethod(), getCallOptions(), request); } @@ -1545,8 +2022,9 @@ public com.google.longrunning.Operation updateAuthzExtension( * */ public com.google.longrunning.Operation deleteAuthzExtension( - com.google.cloud.networkservices.v1.DeleteAuthzExtensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteAuthzExtensionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAuthzExtensionMethod(), getCallOptions(), request); } } @@ -1702,6 +2180,71 @@ public com.google.longrunning.Operation deleteLbRouteExtension( getChannel(), getDeleteLbRouteExtensionMethod(), getCallOptions(), request); } + /** + * + * + *
                                              +     * Lists `LbEdgeExtension` resources in a given project and location.
                                              +     * 
                                              + */ + public com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse listLbEdgeExtensions( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLbEdgeExtensionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets details of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtension( + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLbEdgeExtensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new `LbEdgeExtension` resource in a given project and location.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createLbEdgeExtension( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateLbEdgeExtensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Updates the parameters of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation updateLbEdgeExtension( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateLbEdgeExtensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteLbEdgeExtension( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteLbEdgeExtensionMethod(), getCallOptions(), request); + } + /** * * @@ -1933,6 +2476,77 @@ protected DepServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption getChannel().newCall(getDeleteLbRouteExtensionMethod(), getCallOptions()), request); } + /** + * + * + *
                                              +     * Lists `LbEdgeExtension` resources in a given project and location.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse> + listLbEdgeExtensions( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLbEdgeExtensionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Gets details of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkservices.v1.LbEdgeExtension> + getLbEdgeExtension(com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLbEdgeExtensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Creates a new `LbEdgeExtension` resource in a given project and location.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createLbEdgeExtension( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateLbEdgeExtensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Updates the parameters of the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateLbEdgeExtension( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateLbEdgeExtensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Deletes the specified `LbEdgeExtension` resource.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteLbEdgeExtension( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteLbEdgeExtensionMethod(), getCallOptions()), request); + } + /** * * @@ -2017,11 +2631,16 @@ protected DepServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_CREATE_LB_ROUTE_EXTENSION = 7; private static final int METHODID_UPDATE_LB_ROUTE_EXTENSION = 8; private static final int METHODID_DELETE_LB_ROUTE_EXTENSION = 9; - private static final int METHODID_LIST_AUTHZ_EXTENSIONS = 10; - private static final int METHODID_GET_AUTHZ_EXTENSION = 11; - private static final int METHODID_CREATE_AUTHZ_EXTENSION = 12; - private static final int METHODID_UPDATE_AUTHZ_EXTENSION = 13; - private static final int METHODID_DELETE_AUTHZ_EXTENSION = 14; + private static final int METHODID_LIST_LB_EDGE_EXTENSIONS = 10; + private static final int METHODID_GET_LB_EDGE_EXTENSION = 11; + private static final int METHODID_CREATE_LB_EDGE_EXTENSION = 12; + private static final int METHODID_UPDATE_LB_EDGE_EXTENSION = 13; + private static final int METHODID_DELETE_LB_EDGE_EXTENSION = 14; + private static final int METHODID_LIST_AUTHZ_EXTENSIONS = 15; + private static final int METHODID_GET_AUTHZ_EXTENSION = 16; + private static final int METHODID_CREATE_AUTHZ_EXTENSION = 17; + private static final int METHODID_UPDATE_AUTHZ_EXTENSION = 18; + private static final int METHODID_DELETE_AUTHZ_EXTENSION = 19; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2096,6 +2715,34 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.networkservices.v1.DeleteLbRouteExtensionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_LB_EDGE_EXTENSIONS: + serviceImpl.listLbEdgeExtensions( + (com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse>) + responseObserver); + break; + case METHODID_GET_LB_EDGE_EXTENSION: + serviceImpl.getLbEdgeExtension( + (com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_LB_EDGE_EXTENSION: + serviceImpl.createLbEdgeExtension( + (com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_LB_EDGE_EXTENSION: + serviceImpl.updateLbEdgeExtension( + (com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_LB_EDGE_EXTENSION: + serviceImpl.deleteLbEdgeExtension( + (com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_AUTHZ_EXTENSIONS: serviceImpl.listAuthzExtensions( (com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest) request, @@ -2209,6 +2856,38 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.networkservices.v1.DeleteLbRouteExtensionRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_LB_ROUTE_EXTENSION))) + .addMethod( + getListLbEdgeExtensionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest, + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse>( + service, METHODID_LIST_LB_EDGE_EXTENSIONS))) + .addMethod( + getGetLbEdgeExtensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest, + com.google.cloud.networkservices.v1.LbEdgeExtension>( + service, METHODID_GET_LB_EDGE_EXTENSION))) + .addMethod( + getCreateLbEdgeExtensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_LB_EDGE_EXTENSION))) + .addMethod( + getUpdateLbEdgeExtensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_LB_EDGE_EXTENSION))) + .addMethod( + getDeleteLbEdgeExtensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_LB_EDGE_EXTENSION))) .addMethod( getListAuthzExtensionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2302,6 +2981,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateLbRouteExtensionMethod()) .addMethod(getUpdateLbRouteExtensionMethod()) .addMethod(getDeleteLbRouteExtensionMethod()) + .addMethod(getListLbEdgeExtensionsMethod()) + .addMethod(getGetLbEdgeExtensionMethod()) + .addMethod(getCreateLbEdgeExtensionMethod()) + .addMethod(getUpdateLbEdgeExtensionMethod()) + .addMethod(getDeleteLbEdgeExtensionMethod()) .addMethod(getListAuthzExtensionsMethod()) .addMethod(getGetAuthzExtensionMethod()) .addMethod(getCreateAuthzExtensionMethod()) 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 ef042e5f5d75..38372374c2bf 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 @@ -24,9 +24,6 @@ * Service describing handlers for resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkservices/v1/network_services.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NetworkServicesGrpc { @@ -4682,8 +4679,9 @@ protected NetworkServicesBlockingV2Stub build( * */ public com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse listEndpointPolicies( - com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEndpointPoliciesMethod(), getCallOptions(), request); } @@ -4695,8 +4693,9 @@ public com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse listEndp * */ public com.google.cloud.networkservices.v1.EndpointPolicy getEndpointPolicy( - com.google.cloud.networkservices.v1.GetEndpointPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetEndpointPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEndpointPolicyMethod(), getCallOptions(), request); } @@ -4708,8 +4707,9 @@ public com.google.cloud.networkservices.v1.EndpointPolicy getEndpointPolicy( * */ public com.google.longrunning.Operation createEndpointPolicy( - com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEndpointPolicyMethod(), getCallOptions(), request); } @@ -4721,8 +4721,9 @@ public com.google.longrunning.Operation createEndpointPolicy( * */ public com.google.longrunning.Operation updateEndpointPolicy( - com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEndpointPolicyMethod(), getCallOptions(), request); } @@ -4734,8 +4735,9 @@ public com.google.longrunning.Operation updateEndpointPolicy( * */ public com.google.longrunning.Operation deleteEndpointPolicy( - com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEndpointPolicyMethod(), getCallOptions(), request); } @@ -4749,8 +4751,9 @@ public com.google.longrunning.Operation deleteEndpointPolicy( */ public com.google.cloud.networkservices.v1.ListWasmPluginVersionsResponse listWasmPluginVersions( - com.google.cloud.networkservices.v1.ListWasmPluginVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListWasmPluginVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWasmPluginVersionsMethod(), getCallOptions(), request); } @@ -4762,8 +4765,9 @@ public com.google.longrunning.Operation deleteEndpointPolicy( * */ public com.google.cloud.networkservices.v1.WasmPluginVersion getWasmPluginVersion( - com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWasmPluginVersionMethod(), getCallOptions(), request); } @@ -4776,8 +4780,9 @@ public com.google.cloud.networkservices.v1.WasmPluginVersion getWasmPluginVersio * */ public com.google.longrunning.Operation createWasmPluginVersion( - com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWasmPluginVersionMethod(), getCallOptions(), request); } @@ -4789,8 +4794,9 @@ public com.google.longrunning.Operation createWasmPluginVersion( * */ public com.google.longrunning.Operation deleteWasmPluginVersion( - com.google.cloud.networkservices.v1.DeleteWasmPluginVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteWasmPluginVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWasmPluginVersionMethod(), getCallOptions(), request); } @@ -4803,8 +4809,9 @@ public com.google.longrunning.Operation deleteWasmPluginVersion( * */ public com.google.cloud.networkservices.v1.ListWasmPluginsResponse listWasmPlugins( - com.google.cloud.networkservices.v1.ListWasmPluginsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListWasmPluginsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWasmPluginsMethod(), getCallOptions(), request); } @@ -4816,8 +4823,9 @@ public com.google.cloud.networkservices.v1.ListWasmPluginsResponse listWasmPlugi * */ public com.google.cloud.networkservices.v1.WasmPlugin getWasmPlugin( - com.google.cloud.networkservices.v1.GetWasmPluginRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetWasmPluginRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWasmPluginMethod(), getCallOptions(), request); } @@ -4830,8 +4838,9 @@ public com.google.cloud.networkservices.v1.WasmPlugin getWasmPlugin( * */ public com.google.longrunning.Operation createWasmPlugin( - com.google.cloud.networkservices.v1.CreateWasmPluginRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateWasmPluginRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWasmPluginMethod(), getCallOptions(), request); } @@ -4843,8 +4852,9 @@ public com.google.longrunning.Operation createWasmPlugin( * */ public com.google.longrunning.Operation updateWasmPlugin( - com.google.cloud.networkservices.v1.UpdateWasmPluginRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateWasmPluginRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWasmPluginMethod(), getCallOptions(), request); } @@ -4856,8 +4866,9 @@ public com.google.longrunning.Operation updateWasmPlugin( * */ public com.google.longrunning.Operation deleteWasmPlugin( - com.google.cloud.networkservices.v1.DeleteWasmPluginRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteWasmPluginRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWasmPluginMethod(), getCallOptions(), request); } @@ -4869,8 +4880,9 @@ public com.google.longrunning.Operation deleteWasmPlugin( * */ public com.google.cloud.networkservices.v1.ListGatewaysResponse listGateways( - com.google.cloud.networkservices.v1.ListGatewaysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListGatewaysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGatewaysMethod(), getCallOptions(), request); } @@ -4882,8 +4894,9 @@ public com.google.cloud.networkservices.v1.ListGatewaysResponse listGateways( * */ public com.google.cloud.networkservices.v1.Gateway getGateway( - com.google.cloud.networkservices.v1.GetGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGatewayMethod(), getCallOptions(), request); } @@ -4895,8 +4908,9 @@ public com.google.cloud.networkservices.v1.Gateway getGateway( * */ public com.google.longrunning.Operation createGateway( - com.google.cloud.networkservices.v1.CreateGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGatewayMethod(), getCallOptions(), request); } @@ -4908,8 +4922,9 @@ public com.google.longrunning.Operation createGateway( * */ public com.google.longrunning.Operation updateGateway( - com.google.cloud.networkservices.v1.UpdateGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGatewayMethod(), getCallOptions(), request); } @@ -4921,8 +4936,9 @@ public com.google.longrunning.Operation updateGateway( * */ public com.google.longrunning.Operation deleteGateway( - com.google.cloud.networkservices.v1.DeleteGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGatewayMethod(), getCallOptions(), request); } @@ -4934,8 +4950,9 @@ public com.google.longrunning.Operation deleteGateway( * */ public com.google.cloud.networkservices.v1.ListGrpcRoutesResponse listGrpcRoutes( - com.google.cloud.networkservices.v1.ListGrpcRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListGrpcRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGrpcRoutesMethod(), getCallOptions(), request); } @@ -4947,8 +4964,9 @@ public com.google.cloud.networkservices.v1.ListGrpcRoutesResponse listGrpcRoutes * */ public com.google.cloud.networkservices.v1.GrpcRoute getGrpcRoute( - com.google.cloud.networkservices.v1.GetGrpcRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetGrpcRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGrpcRouteMethod(), getCallOptions(), request); } @@ -4960,8 +4978,9 @@ public com.google.cloud.networkservices.v1.GrpcRoute getGrpcRoute( * */ public com.google.longrunning.Operation createGrpcRoute( - com.google.cloud.networkservices.v1.CreateGrpcRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateGrpcRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGrpcRouteMethod(), getCallOptions(), request); } @@ -4973,8 +4992,9 @@ public com.google.longrunning.Operation createGrpcRoute( * */ public com.google.longrunning.Operation updateGrpcRoute( - com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGrpcRouteMethod(), getCallOptions(), request); } @@ -4986,8 +5006,9 @@ public com.google.longrunning.Operation updateGrpcRoute( * */ public com.google.longrunning.Operation deleteGrpcRoute( - com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGrpcRouteMethod(), getCallOptions(), request); } @@ -4999,8 +5020,9 @@ public com.google.longrunning.Operation deleteGrpcRoute( * */ public com.google.cloud.networkservices.v1.ListHttpRoutesResponse listHttpRoutes( - com.google.cloud.networkservices.v1.ListHttpRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListHttpRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHttpRoutesMethod(), getCallOptions(), request); } @@ -5012,8 +5034,9 @@ public com.google.cloud.networkservices.v1.ListHttpRoutesResponse listHttpRoutes * */ public com.google.cloud.networkservices.v1.HttpRoute getHttpRoute( - com.google.cloud.networkservices.v1.GetHttpRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetHttpRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHttpRouteMethod(), getCallOptions(), request); } @@ -5025,8 +5048,9 @@ public com.google.cloud.networkservices.v1.HttpRoute getHttpRoute( * */ public com.google.longrunning.Operation createHttpRoute( - com.google.cloud.networkservices.v1.CreateHttpRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateHttpRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateHttpRouteMethod(), getCallOptions(), request); } @@ -5038,8 +5062,9 @@ public com.google.longrunning.Operation createHttpRoute( * */ public com.google.longrunning.Operation updateHttpRoute( - com.google.cloud.networkservices.v1.UpdateHttpRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateHttpRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHttpRouteMethod(), getCallOptions(), request); } @@ -5051,8 +5076,9 @@ public com.google.longrunning.Operation updateHttpRoute( * */ public com.google.longrunning.Operation deleteHttpRoute( - com.google.cloud.networkservices.v1.DeleteHttpRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteHttpRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteHttpRouteMethod(), getCallOptions(), request); } @@ -5064,8 +5090,9 @@ public com.google.longrunning.Operation deleteHttpRoute( * */ public com.google.cloud.networkservices.v1.ListTcpRoutesResponse listTcpRoutes( - com.google.cloud.networkservices.v1.ListTcpRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListTcpRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTcpRoutesMethod(), getCallOptions(), request); } @@ -5077,8 +5104,9 @@ public com.google.cloud.networkservices.v1.ListTcpRoutesResponse listTcpRoutes( * */ public com.google.cloud.networkservices.v1.TcpRoute getTcpRoute( - com.google.cloud.networkservices.v1.GetTcpRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetTcpRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTcpRouteMethod(), getCallOptions(), request); } @@ -5090,8 +5118,9 @@ public com.google.cloud.networkservices.v1.TcpRoute getTcpRoute( * */ public com.google.longrunning.Operation createTcpRoute( - com.google.cloud.networkservices.v1.CreateTcpRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateTcpRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTcpRouteMethod(), getCallOptions(), request); } @@ -5103,8 +5132,9 @@ public com.google.longrunning.Operation createTcpRoute( * */ public com.google.longrunning.Operation updateTcpRoute( - com.google.cloud.networkservices.v1.UpdateTcpRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateTcpRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTcpRouteMethod(), getCallOptions(), request); } @@ -5116,8 +5146,9 @@ public com.google.longrunning.Operation updateTcpRoute( * */ public com.google.longrunning.Operation deleteTcpRoute( - com.google.cloud.networkservices.v1.DeleteTcpRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteTcpRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTcpRouteMethod(), getCallOptions(), request); } @@ -5129,8 +5160,9 @@ public com.google.longrunning.Operation deleteTcpRoute( * */ public com.google.cloud.networkservices.v1.ListTlsRoutesResponse listTlsRoutes( - com.google.cloud.networkservices.v1.ListTlsRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListTlsRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTlsRoutesMethod(), getCallOptions(), request); } @@ -5142,8 +5174,9 @@ public com.google.cloud.networkservices.v1.ListTlsRoutesResponse listTlsRoutes( * */ public com.google.cloud.networkservices.v1.TlsRoute getTlsRoute( - com.google.cloud.networkservices.v1.GetTlsRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetTlsRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTlsRouteMethod(), getCallOptions(), request); } @@ -5155,8 +5188,9 @@ public com.google.cloud.networkservices.v1.TlsRoute getTlsRoute( * */ public com.google.longrunning.Operation createTlsRoute( - com.google.cloud.networkservices.v1.CreateTlsRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateTlsRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTlsRouteMethod(), getCallOptions(), request); } @@ -5168,8 +5202,9 @@ public com.google.longrunning.Operation createTlsRoute( * */ public com.google.longrunning.Operation updateTlsRoute( - com.google.cloud.networkservices.v1.UpdateTlsRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateTlsRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTlsRouteMethod(), getCallOptions(), request); } @@ -5181,8 +5216,9 @@ public com.google.longrunning.Operation updateTlsRoute( * */ public com.google.longrunning.Operation deleteTlsRoute( - com.google.cloud.networkservices.v1.DeleteTlsRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteTlsRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTlsRouteMethod(), getCallOptions(), request); } @@ -5194,8 +5230,9 @@ public com.google.longrunning.Operation deleteTlsRoute( * */ public com.google.cloud.networkservices.v1.ListServiceBindingsResponse listServiceBindings( - com.google.cloud.networkservices.v1.ListServiceBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListServiceBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceBindingsMethod(), getCallOptions(), request); } @@ -5207,8 +5244,9 @@ public com.google.cloud.networkservices.v1.ListServiceBindingsResponse listServi * */ public com.google.cloud.networkservices.v1.ServiceBinding getServiceBinding( - com.google.cloud.networkservices.v1.GetServiceBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetServiceBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceBindingMethod(), getCallOptions(), request); } @@ -5220,8 +5258,9 @@ public com.google.cloud.networkservices.v1.ServiceBinding getServiceBinding( * */ public com.google.longrunning.Operation createServiceBinding( - com.google.cloud.networkservices.v1.CreateServiceBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateServiceBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceBindingMethod(), getCallOptions(), request); } @@ -5233,8 +5272,9 @@ public com.google.longrunning.Operation createServiceBinding( * */ public com.google.longrunning.Operation updateServiceBinding( - com.google.cloud.networkservices.v1.UpdateServiceBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateServiceBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceBindingMethod(), getCallOptions(), request); } @@ -5246,8 +5286,9 @@ public com.google.longrunning.Operation updateServiceBinding( * */ public com.google.longrunning.Operation deleteServiceBinding( - com.google.cloud.networkservices.v1.DeleteServiceBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteServiceBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceBindingMethod(), getCallOptions(), request); } @@ -5259,8 +5300,9 @@ public com.google.longrunning.Operation deleteServiceBinding( * */ public com.google.cloud.networkservices.v1.ListMeshesResponse listMeshes( - com.google.cloud.networkservices.v1.ListMeshesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListMeshesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMeshesMethod(), getCallOptions(), request); } @@ -5272,8 +5314,8 @@ public com.google.cloud.networkservices.v1.ListMeshesResponse listMeshes( * */ public com.google.cloud.networkservices.v1.Mesh getMesh( - com.google.cloud.networkservices.v1.GetMeshRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetMeshRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMeshMethod(), getCallOptions(), request); } @@ -5285,8 +5327,9 @@ public com.google.cloud.networkservices.v1.Mesh getMesh( * */ public com.google.longrunning.Operation createMesh( - com.google.cloud.networkservices.v1.CreateMeshRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateMeshRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMeshMethod(), getCallOptions(), request); } @@ -5298,8 +5341,9 @@ public com.google.longrunning.Operation createMesh( * */ public com.google.longrunning.Operation updateMesh( - com.google.cloud.networkservices.v1.UpdateMeshRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateMeshRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMeshMethod(), getCallOptions(), request); } @@ -5311,8 +5355,9 @@ public com.google.longrunning.Operation updateMesh( * */ public com.google.longrunning.Operation deleteMesh( - com.google.cloud.networkservices.v1.DeleteMeshRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteMeshRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMeshMethod(), getCallOptions(), request); } @@ -5324,8 +5369,9 @@ public com.google.longrunning.Operation deleteMesh( * */ public com.google.cloud.networkservices.v1.ListServiceLbPoliciesResponse listServiceLbPolicies( - com.google.cloud.networkservices.v1.ListServiceLbPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListServiceLbPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceLbPoliciesMethod(), getCallOptions(), request); } @@ -5337,8 +5383,9 @@ public com.google.cloud.networkservices.v1.ListServiceLbPoliciesResponse listSer * */ public com.google.cloud.networkservices.v1.ServiceLbPolicy getServiceLbPolicy( - com.google.cloud.networkservices.v1.GetServiceLbPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetServiceLbPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceLbPolicyMethod(), getCallOptions(), request); } @@ -5350,8 +5397,9 @@ public com.google.cloud.networkservices.v1.ServiceLbPolicy getServiceLbPolicy( * */ public com.google.longrunning.Operation createServiceLbPolicy( - com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceLbPolicyMethod(), getCallOptions(), request); } @@ -5363,8 +5411,9 @@ public com.google.longrunning.Operation createServiceLbPolicy( * */ public com.google.longrunning.Operation updateServiceLbPolicy( - com.google.cloud.networkservices.v1.UpdateServiceLbPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.UpdateServiceLbPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceLbPolicyMethod(), getCallOptions(), request); } @@ -5376,8 +5425,9 @@ public com.google.longrunning.Operation updateServiceLbPolicy( * */ public com.google.longrunning.Operation deleteServiceLbPolicy( - com.google.cloud.networkservices.v1.DeleteServiceLbPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.DeleteServiceLbPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceLbPolicyMethod(), getCallOptions(), request); } @@ -5389,8 +5439,9 @@ public com.google.longrunning.Operation deleteServiceLbPolicy( * */ public com.google.cloud.networkservices.v1.GatewayRouteView getGatewayRouteView( - com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGatewayRouteViewMethod(), getCallOptions(), request); } @@ -5402,8 +5453,9 @@ public com.google.cloud.networkservices.v1.GatewayRouteView getGatewayRouteView( * */ public com.google.cloud.networkservices.v1.MeshRouteView getMeshRouteView( - com.google.cloud.networkservices.v1.GetMeshRouteViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.GetMeshRouteViewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMeshRouteViewMethod(), getCallOptions(), request); } @@ -5415,8 +5467,9 @@ public com.google.cloud.networkservices.v1.MeshRouteView getMeshRouteView( * */ public com.google.cloud.networkservices.v1.ListGatewayRouteViewsResponse listGatewayRouteViews( - com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGatewayRouteViewsMethod(), getCallOptions(), request); } @@ -5428,8 +5481,9 @@ public com.google.cloud.networkservices.v1.ListGatewayRouteViewsResponse listGat * */ public com.google.cloud.networkservices.v1.ListMeshRouteViewsResponse listMeshRouteViews( - com.google.cloud.networkservices.v1.ListMeshRouteViewsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.networkservices.v1.ListMeshRouteViewsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMeshRouteViewsMethod(), getCallOptions(), request); } } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateLbEdgeExtensionRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateLbEdgeExtensionRequest.java new file mode 100644 index 000000000000..5cd6388f1f71 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateLbEdgeExtensionRequest.java @@ -0,0 +1,1452 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +/** + * + * + *
                                              + * Message for creating a `LbEdgeExtension` resource.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest} + */ +public final class CreateLbEdgeExtensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest) + CreateLbEdgeExtensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateLbEdgeExtensionRequest.newBuilder() to construct. + private CreateLbEdgeExtensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateLbEdgeExtensionRequest() { + parent_ = ""; + lbEdgeExtensionId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateLbEdgeExtensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest.class, + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest.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 `LbEdgeExtension` resource. Must be in
                                              +   * the format `projects/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * 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 `LbEdgeExtension` resource. Must be in
                                              +   * the format `projects/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * 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 LB_EDGE_EXTENSION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object lbEdgeExtensionId_ = ""; + + /** + * + * + *
                                              +   * Required. User-provided ID of the `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * string lb_edge_extension_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lbEdgeExtensionId. + */ + @java.lang.Override + public java.lang.String getLbEdgeExtensionId() { + java.lang.Object ref = lbEdgeExtensionId_; + 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(); + lbEdgeExtensionId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. User-provided ID of the `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * string lb_edge_extension_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for lbEdgeExtensionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLbEdgeExtensionIdBytes() { + java.lang.Object ref = lbEdgeExtensionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lbEdgeExtensionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LB_EDGE_EXTENSION_FIELD_NUMBER = 3; + private com.google.cloud.networkservices.v1.LbEdgeExtension lbEdgeExtension_; + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lbEdgeExtension field is set. + */ + @java.lang.Override + public boolean hasLbEdgeExtension() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lbEdgeExtension. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtension() { + return lbEdgeExtension_ == null + ? com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance() + : lbEdgeExtension_; + } + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder + getLbEdgeExtensionOrBuilder() { + return lbEdgeExtension_ == null + ? com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance() + : lbEdgeExtension_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lbEdgeExtensionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lbEdgeExtensionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getLbEdgeExtension()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lbEdgeExtensionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lbEdgeExtensionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLbEdgeExtension()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + 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.CreateLbEdgeExtensionRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest other = + (com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getLbEdgeExtensionId().equals(other.getLbEdgeExtensionId())) return false; + if (hasLbEdgeExtension() != other.hasLbEdgeExtension()) return false; + if (hasLbEdgeExtension()) { + if (!getLbEdgeExtension().equals(other.getLbEdgeExtension())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + LB_EDGE_EXTENSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLbEdgeExtensionId().hashCode(); + if (hasLbEdgeExtension()) { + hash = (37 * hash) + LB_EDGE_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getLbEdgeExtension().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest 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.CreateLbEdgeExtensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest 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.CreateLbEdgeExtensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest 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.CreateLbEdgeExtensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Message for creating a `LbEdgeExtension` resource.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest) + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest.class, + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLbEdgeExtensionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + lbEdgeExtensionId_ = ""; + lbEdgeExtension_ = null; + if (lbEdgeExtensionBuilder_ != null) { + lbEdgeExtensionBuilder_.dispose(); + lbEdgeExtensionBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest build() { + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest buildPartial() { + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest result = + new com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lbEdgeExtensionId_ = lbEdgeExtensionId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lbEdgeExtension_ = + lbEdgeExtensionBuilder_ == null ? lbEdgeExtension_ : lbEdgeExtensionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest other) { + if (other + == com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLbEdgeExtensionId().isEmpty()) { + lbEdgeExtensionId_ = other.lbEdgeExtensionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasLbEdgeExtension()) { + mergeLbEdgeExtension(other.getLbEdgeExtension()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + lbEdgeExtensionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getLbEdgeExtensionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 `LbEdgeExtension` resource. Must be in
                                              +     * the format `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension` resource. Must be in
                                              +     * the format `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension` resource. Must be in
                                              +     * the format `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension` resource. Must be in
                                              +     * the format `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension` resource. Must be in
                                              +     * the format `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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 lbEdgeExtensionId_ = ""; + + /** + * + * + *
                                              +     * Required. User-provided ID of the `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * string lb_edge_extension_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lbEdgeExtensionId. + */ + public java.lang.String getLbEdgeExtensionId() { + java.lang.Object ref = lbEdgeExtensionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lbEdgeExtensionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. User-provided ID of the `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * string lb_edge_extension_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for lbEdgeExtensionId. + */ + public com.google.protobuf.ByteString getLbEdgeExtensionIdBytes() { + java.lang.Object ref = lbEdgeExtensionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lbEdgeExtensionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. User-provided ID of the `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * string lb_edge_extension_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The lbEdgeExtensionId to set. + * @return This builder for chaining. + */ + public Builder setLbEdgeExtensionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + lbEdgeExtensionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. User-provided ID of the `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * string lb_edge_extension_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLbEdgeExtensionId() { + lbEdgeExtensionId_ = getDefaultInstance().getLbEdgeExtensionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. User-provided ID of the `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * string lb_edge_extension_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for lbEdgeExtensionId to set. + * @return This builder for chaining. + */ + public Builder setLbEdgeExtensionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lbEdgeExtensionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networkservices.v1.LbEdgeExtension lbEdgeExtension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkservices.v1.LbEdgeExtension, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder, + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder> + lbEdgeExtensionBuilder_; + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lbEdgeExtension field is set. + */ + public boolean hasLbEdgeExtension() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lbEdgeExtension. + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtension() { + if (lbEdgeExtensionBuilder_ == null) { + return lbEdgeExtension_ == null + ? com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance() + : lbEdgeExtension_; + } else { + return lbEdgeExtensionBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLbEdgeExtension(com.google.cloud.networkservices.v1.LbEdgeExtension value) { + if (lbEdgeExtensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lbEdgeExtension_ = value; + } else { + lbEdgeExtensionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLbEdgeExtension( + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder builderForValue) { + if (lbEdgeExtensionBuilder_ == null) { + lbEdgeExtension_ = builderForValue.build(); + } else { + lbEdgeExtensionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLbEdgeExtension(com.google.cloud.networkservices.v1.LbEdgeExtension value) { + if (lbEdgeExtensionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && lbEdgeExtension_ != null + && lbEdgeExtension_ + != com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance()) { + getLbEdgeExtensionBuilder().mergeFrom(value); + } else { + lbEdgeExtension_ = value; + } + } else { + lbEdgeExtensionBuilder_.mergeFrom(value); + } + if (lbEdgeExtension_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLbEdgeExtension() { + bitField0_ = (bitField0_ & ~0x00000004); + lbEdgeExtension_ = null; + if (lbEdgeExtensionBuilder_ != null) { + lbEdgeExtensionBuilder_.dispose(); + lbEdgeExtensionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension.Builder getLbEdgeExtensionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLbEdgeExtensionFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder + getLbEdgeExtensionOrBuilder() { + if (lbEdgeExtensionBuilder_ != null) { + return lbEdgeExtensionBuilder_.getMessageOrBuilder(); + } else { + return lbEdgeExtension_ == null + ? com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance() + : lbEdgeExtension_; + } + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource to be created.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkservices.v1.LbEdgeExtension, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder, + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder> + getLbEdgeExtensionFieldBuilder() { + if (lbEdgeExtensionBuilder_ == null) { + lbEdgeExtensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkservices.v1.LbEdgeExtension, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder, + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder>( + getLbEdgeExtension(), getParentForChildren(), isClean()); + lbEdgeExtension_ = null; + } + return lbEdgeExtensionBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest) + private static final com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest(); + } + + public static com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLbEdgeExtensionRequest 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.CreateLbEdgeExtensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateLbEdgeExtensionRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateLbEdgeExtensionRequestOrBuilder.java new file mode 100644 index 000000000000..261d54f8f814 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateLbEdgeExtensionRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +public interface CreateLbEdgeExtensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent resource of the `LbEdgeExtension` resource. Must be in
                                              +   * the format `projects/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * 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 `LbEdgeExtension` resource. Must be in
                                              +   * the format `projects/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Required. User-provided ID of the `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * string lb_edge_extension_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lbEdgeExtensionId. + */ + java.lang.String getLbEdgeExtensionId(); + + /** + * + * + *
                                              +   * Required. User-provided ID of the `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * string lb_edge_extension_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for lbEdgeExtensionId. + */ + com.google.protobuf.ByteString getLbEdgeExtensionIdBytes(); + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lbEdgeExtension field is set. + */ + boolean hasLbEdgeExtension(); + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lbEdgeExtension. + */ + com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtension(); + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource to be created.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder getLbEdgeExtensionOrBuilder(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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/DeleteLbEdgeExtensionRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteLbEdgeExtensionRequest.java new file mode 100644 index 000000000000..98920f1a1020 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteLbEdgeExtensionRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +/** + * + * + *
                                              + * Message for deleting a `LbEdgeExtension` resource.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest} + */ +public final class DeleteLbEdgeExtensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest) + DeleteLbEdgeExtensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteLbEdgeExtensionRequest.newBuilder() to construct. + private DeleteLbEdgeExtensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteLbEdgeExtensionRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteLbEdgeExtensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest.class, + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the `LbEdgeExtension` resource to delete. Must be in
                                              +   * the format
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * 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. The name of the `LbEdgeExtension` resource to delete. Must be in
                                              +   * the format
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes after the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes after the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + 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.DeleteLbEdgeExtensionRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest other = + (com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest 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.DeleteLbEdgeExtensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest 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.DeleteLbEdgeExtensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest 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.DeleteLbEdgeExtensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Message for deleting a `LbEdgeExtension` resource.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest) + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest.class, + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest build() { + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest buildPartial() { + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest result = + new com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest other) { + if (other + == com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + requestId_ = 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. The name of the `LbEdgeExtension` resource to delete. Must be in
                                              +     * the format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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. The name of the `LbEdgeExtension` resource to delete. Must be in
                                              +     * the format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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. The name of the `LbEdgeExtension` resource to delete. Must be in
                                              +     * the format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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. The name of the `LbEdgeExtension` resource to delete. Must be in
                                              +     * the format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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. The name of the `LbEdgeExtension` resource to delete. Must be in
                                              +     * the format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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 requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes after the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes after the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes after the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes after the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes after the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest) + private static final com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest(); + } + + public static com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLbEdgeExtensionRequest 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.DeleteLbEdgeExtensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteLbEdgeExtensionRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteLbEdgeExtensionRequestOrBuilder.java new file mode 100644 index 000000000000..a654f2ba78e0 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteLbEdgeExtensionRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +public interface DeleteLbEdgeExtensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the `LbEdgeExtension` resource to delete. Must be in
                                              +   * the format
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the `LbEdgeExtension` resource to delete. Must be in
                                              +   * the format
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes after the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes after the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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/DepProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepProto.java index fa05fa3da0ed..8743be395a68 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 @@ -104,6 +104,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkservices_v1_DeleteLbRouteExtensionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkservices_v1_DeleteLbRouteExtensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkservices_v1_AuthzExtension_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -278,6 +310,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035DeleteLbRouteExtensionRequest\022E\n" + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + "/networkservices.googleapis.com/LbRouteExtension\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\240\005\n" + + "\017LbEdgeExtension\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\022Q\n" + + "\006labels\030\004 \003(\0132<.google.cloud.networkse" + + "rvices.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" + + "\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" + + "\033ListLbEdgeExtensionsRequest\022F\n" + + "\006parent\030\001 \001(\tB6\340A\002\372A0\022.netw" + + "orkservices.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" + + "\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" + + "\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" + + "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" + + "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" + "\016AuthzExtension\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" @@ -285,10 +367,10 @@ 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\004 \001(\tB\003\340A\001\022P\n" - + "\006labels\030\005 \003(\0132;.google.cloud.networkser" - + "vices.v1.AuthzExtension.LabelsEntryB\003\340A\001\022X\n" - + "\025load_balancing_scheme\030\006 \001(\01624.google" - + ".cloud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022\026\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" + "\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" @@ -296,14 +378,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \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.cl" - + "oud.networkservices.v1.WireFormatB\003\340A\001\032-\n" + + "\013wire_format\030\016 \001(\0162+.google.c" + + "loud.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/{au" - + "thz_extension}*\017authzExtensions2\016authzExtension\"\300\001\n" + + "-networkservices.googleapis.com/AuthzExtension\022Iprojects/{project}" + + "/locations/{location}/authzExtensions/{a" + + "uthz_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" @@ -349,87 +431,110 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020EXTERNAL_MANAGED\020\002*<\n\n" + "WireFormat\022\033\n" + "\027WIRE_FORMAT_UNSPECIFIED\020\000\022\021\n\r" - + "EXT_PROC_GRPC\020\0012\244\036\n\n" + + "EXT_PROC_GRPC\020\0012\371\'\n\n" + "DepService\022\346\001\n" - + "\027ListLbTrafficExtensions\022?.google.cloud.networkservice" - + "s.v1.ListLbTrafficExtensionsRequest\032@.google.cloud.networkservices.v1.ListLbTraf" - + "ficExtensionsResponse\"H\332A\006parent\202\323\344\223\0029\0227" - + "/v1/{parent=projects/*/locations/*}/lbTrafficExtensions\022\323\001\n" - + "\025GetLbTrafficExtension\022=.google.cloud.networkservices.v1.GetL" - + "bTrafficExtensionRequest\0323.google.cloud." - + "networkservices.v1.LbTrafficExtension\"F\332" - + "A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locations/*/lbTrafficExtensions/*}\022\263\002\n" - + "\030CreateLbTrafficExtension\022@.google.cloud.networ" - + "kservices.v1.CreateLbTrafficExtensionReq" - + "uest\032\035.google.longrunning.Operation\"\265\001\312A\'\n" - + "\022LbTrafficExtension\022\021OperationMetadata" - + "\332A3parent,lb_traffic_extension,lb_traffi" - + "c_extension_id\202\323\344\223\002O\"7/v1/{parent=projec" - + "ts/*/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_traf" - + "fic_extension,update_mask\202\323\344\223\002d2L/v1/{lb" - + "_traffic_extension.name=projects/*/locat" - + "ions/*/lbTrafficExtensions/*}:\024lb_traffic_extension\022\360\001\n" - + "\030DeleteLbTrafficExtension\022@.google.cloud.networkservices.v1.Delet" - + "eLbTrafficExtensionRequest\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.ListL" - + "bRouteExtensionsRequest\032>.google.cloud.networkservices.v1.ListLbRouteExtensionsR" - + "esponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=pr" - + "ojects/*/locations/*}/lbRouteExtensions\022\313\001\n" - + "\023GetLbRouteExtension\022;.google.cloud.networkservices.v1.GetLbRouteExtensionReq" - + "uest\0321.google.cloud.networkservices.v1.L" - + "bRouteExtension\"D\332A\004name\202\323\344\223\0027\0225/v1/{nam" - + "e=projects/*/locations/*/lbRouteExtensions/*}\022\245\002\n" - + "\026CreateLbRouteExtension\022>.google.cloud.networkservices.v1.CreateLbRoute" - + "ExtensionRequest\032\035.google.longrunning.Operation\"\253\001\312A%\n" - + "\020LbRouteExtension\022\021OperationMetadata\332A/parent,lb_route_extension,l" - + "b_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_ex" - + "tension,update_mask\202\323\344\223\002^2H/v1/{lb_route" - + "_extension.name=projects/*/locations/*/l" - + "bRouteExtensions/*}:\022lb_route_extension\022\352\001\n" - + "\026DeleteLbRouteExtension\022>.google.cloud.networkservices.v1.DeleteLbRouteExtens" - + "ionRequest\032\035.google.longrunning.Operation\"q\312A*\n" - + "\025google.protobuf.Empty\022\021Operation" - + "Metadata\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/locations/*/lbRouteExtensions/*}\022\326\001\n" - + "\023ListAuthzExtensions\022;.google.cloud.networkservices.v1.ListAuthzExtensionsReques" - + "t\032<.google.cloud.networkservices.v1.List" - + "AuthzExtensionsResponse\"D\332A\006parent\202\323\344\223\0025" - + "\0223/v1/{parent=projects/*/locations/*}/authzExtensions\022\303\001\n" - + "\021GetAuthzExtension\0229.google.cloud.networkservices.v1.GetAuthzEx" - + "tensionRequest\032/.google.cloud.networkser" - + "vices.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.CreateAut" - + "hzExtensionRequest\032\035.google.longrunning.Operation\"\236\001\312A#\n" - + "\016AuthzExtension\022\021OperationMetadata\332A)parent,authz_extension,auth" - + "z_extension_id\202\323\344\223\002F\"3/v1/{parent=projec" - + "ts/*/locations/*}/authzExtensions:\017authz_extension\022\226\002\n" - + "\024UpdateAuthzExtension\022<.google.cloud.networkservices.v1.UpdateAuth" - + "zExtensionRequest\032\035.google.longrunning.Operation\"\240\001\312A#\n" - + "\016AuthzExtension\022\021OperationMetadata\332A\033authz_extension,update_mask\202" - + "\323\344\223\002V2C/v1/{authz_extension.name=project" - + "s/*/locations/*/authzExtensions/*}:\017authz_extension\022\344\001\n" - + "\024DeleteAuthzExtension\022<.google.cloud.networkservices.v1.DeleteAut" - + "hzExtensionRequest\032\035.google.longrunning.Operation\"o\312A*\n" - + "\025google.protobuf.Empty\022\021O" - + "perationMetadata\332A\004name\202\323\344\223\0025*3/v1/{name" - + "=projects/*/locations/*/authzExtensions/" - + "*}\032R\312A\036networkservices.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-platformB\351\001\n" - + "#com.google.cloud.networkservices.v1B\010DepProtoP\001ZMcloud.google.com/go/" - + "networkservices/apiv1/networkservicespb;" - + "networkservicespb\252\002\037Google.Cloud.Network" - + "Services.V1\312\002\037Google\\Cloud\\NetworkServic" - + "es\\V1\352\002\"Google::Cloud::NetworkServices::V1b\006proto3" + + "\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -631,8 +736,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_networkservices_v1_AuthzExtension_descriptor = + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Description", + "Labels", + "ForwardingRules", + "ExtensionChains", + "LoadBalancingScheme", + }); + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_LabelsEntry_descriptor = + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_LbEdgeExtension_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_descriptor, + new java.lang.String[] { + "LbEdgeExtensions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_CreateLbEdgeExtensionRequest_descriptor, + new java.lang.String[] { + "Parent", "LbEdgeExtensionId", "LbEdgeExtension", "RequestId", + }); + internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "LbEdgeExtension", "RequestId", + }); + internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_DeleteLbEdgeExtensionRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networkservices_v1_AuthzExtension_descriptor = + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_networkservices_v1_AuthzExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_AuthzExtension_descriptor, @@ -662,7 +840,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_networkservices_v1_ListAuthzExtensionsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_networkservices_v1_ListAuthzExtensionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_ListAuthzExtensionsRequest_descriptor, @@ -670,7 +848,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_networkservices_v1_ListAuthzExtensionsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_networkservices_v1_ListAuthzExtensionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_ListAuthzExtensionsResponse_descriptor, @@ -678,7 +856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AuthzExtensions", "NextPageToken", "Unreachable", }); internal_static_google_cloud_networkservices_v1_GetAuthzExtensionRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_networkservices_v1_GetAuthzExtensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_GetAuthzExtensionRequest_descriptor, @@ -686,7 +864,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_networkservices_v1_CreateAuthzExtensionRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_networkservices_v1_CreateAuthzExtensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_CreateAuthzExtensionRequest_descriptor, @@ -694,7 +872,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "AuthzExtensionId", "AuthzExtension", "RequestId", }); internal_static_google_cloud_networkservices_v1_UpdateAuthzExtensionRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_networkservices_v1_UpdateAuthzExtensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_UpdateAuthzExtensionRequest_descriptor, @@ -702,7 +880,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "AuthzExtension", "RequestId", }); internal_static_google_cloud_networkservices_v1_DeleteAuthzExtensionRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_networkservices_v1_DeleteAuthzExtensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_DeleteAuthzExtensionRequest_descriptor, diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetLbEdgeExtensionRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetLbEdgeExtensionRequest.java new file mode 100644 index 000000000000..42abba69c6e1 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetLbEdgeExtensionRequest.java @@ -0,0 +1,667 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +/** + * + * + *
                                              + * Message for getting a `LbEdgeExtension` resource.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.GetLbEdgeExtensionRequest} + */ +public final class GetLbEdgeExtensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.GetLbEdgeExtensionRequest) + GetLbEdgeExtensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetLbEdgeExtensionRequest.newBuilder() to construct. + private GetLbEdgeExtensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetLbEdgeExtensionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetLbEdgeExtensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest.class, + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. A name of the `LbEdgeExtension` resource to get. Must be in the
                                              +   * format
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * 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 `LbEdgeExtension` resource to get. Must be in the
                                              +   * format
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GetLbEdgeExtensionRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest other = + (com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest) 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.GetLbEdgeExtensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest 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.GetLbEdgeExtensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest 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.GetLbEdgeExtensionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest 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.GetLbEdgeExtensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Message for getting a `LbEdgeExtension` resource.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.GetLbEdgeExtensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.GetLbEdgeExtensionRequest) + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest.class, + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.DepProto + .internal_static_google_cloud_networkservices_v1_GetLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest build() { + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest buildPartial() { + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest result = + new com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest other) { + if (other + == com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest.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 `LbEdgeExtension` resource to get. Must be in the
                                              +     * format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension` resource to get. Must be in the
                                              +     * format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension` resource to get. Must be in the
                                              +     * format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension` resource to get. Must be in the
                                              +     * format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension` resource to get. Must be in the
                                              +     * format
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.GetLbEdgeExtensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.GetLbEdgeExtensionRequest) + private static final com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest(); + } + + public static com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLbEdgeExtensionRequest 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.GetLbEdgeExtensionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetLbEdgeExtensionRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetLbEdgeExtensionRequestOrBuilder.java new file mode 100644 index 000000000000..b31407e4df60 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetLbEdgeExtensionRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +public interface GetLbEdgeExtensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.GetLbEdgeExtensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. A name of the `LbEdgeExtension` resource to get. Must be in the
                                              +   * format
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. A name of the `LbEdgeExtension` resource to get. Must be in the
                                              +   * format
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * 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/LbEdgeExtension.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtension.java new file mode 100644 index 000000000000..2a7e39675afd --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtension.java @@ -0,0 +1,3067 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +/** + * + * + *
                                              + * `LbEdgeExtension` is a resource that lets the extension service influence
                                              + * the selection of backend services and Cloud CDN cache keys by modifying
                                              + * request headers.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.LbEdgeExtension} + */ +public final class LbEdgeExtension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.LbEdgeExtension) + LbEdgeExtensionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LbEdgeExtension.newBuilder() to construct. + private LbEdgeExtension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LbEdgeExtension() { + name_ = ""; + description_ = ""; + forwardingRules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + extensionChains_ = java.util.Collections.emptyList(); + loadBalancingScheme_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LbEdgeExtension(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_LbEdgeExtension_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.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_LbEdgeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.LbEdgeExtension.class, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. Identifier. Name of the `LbEdgeExtension` resource in the
                                              +   * following format:
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
                                              +   * Required. Identifier. Name of the `LbEdgeExtension` resource in the
                                              +   * following format:
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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 DESCRIPTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                              +   * Optional. A human-readable description of the resource.
                                              +   * 
                                              + * + * string description = 9 [(.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 human-readable description of the resource.
                                              +   * 
                                              + * + * string description = 9 [(.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 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.DepProto + .internal_static_google_cloud_networkservices_v1_LbEdgeExtension_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 labels associated with the `LbEdgeExtension` resource.
                                              +   *
                                              +   * The format must comply with [the requirements for
                                              +   * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +   * for Google Cloud resources.
                                              +   * 
                                              + * + * 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 labels associated with the `LbEdgeExtension` resource.
                                              +   *
                                              +   * The format must comply with [the requirements for
                                              +   * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +   * for Google Cloud resources.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +   * Optional. Set of labels associated with the `LbEdgeExtension` resource.
                                              +   *
                                              +   * The format must comply with [the requirements for
                                              +   * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +   * for Google Cloud resources.
                                              +   * 
                                              + * + * 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 labels associated with the `LbEdgeExtension` resource.
                                              +   *
                                              +   * The format must comply with [the requirements for
                                              +   * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +   * for Google Cloud resources.
                                              +   * 
                                              + * + * 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 FORWARDING_RULES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList forwardingRules_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Required. A list of references to the forwarding rules to which this
                                              +   * service extension is attached. At least one forwarding rule is required.
                                              +   * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +   * rule.
                                              +   * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the forwardingRules. + */ + public com.google.protobuf.ProtocolStringList getForwardingRulesList() { + return forwardingRules_; + } + + /** + * + * + *
                                              +   * Required. A list of references to the forwarding rules to which this
                                              +   * service extension is attached. At least one forwarding rule is required.
                                              +   * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +   * rule.
                                              +   * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of forwardingRules. + */ + public int getForwardingRulesCount() { + return forwardingRules_.size(); + } + + /** + * + * + *
                                              +   * Required. A list of references to the forwarding rules to which this
                                              +   * service extension is attached. At least one forwarding rule is required.
                                              +   * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +   * rule.
                                              +   * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The forwardingRules at the given index. + */ + public java.lang.String getForwardingRules(int index) { + return forwardingRules_.get(index); + } + + /** + * + * + *
                                              +   * Required. A list of references to the forwarding rules to which this
                                              +   * service extension is attached. At least one forwarding rule is required.
                                              +   * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +   * rule.
                                              +   * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the forwardingRules at the given index. + */ + public com.google.protobuf.ByteString getForwardingRulesBytes(int index) { + return forwardingRules_.getByteString(index); + } + + public static final int EXTENSION_CHAINS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List extensionChains_; + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getExtensionChainsList() { + return extensionChains_; + } + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getExtensionChainsOrBuilderList() { + return extensionChains_; + } + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getExtensionChainsCount() { + return extensionChains_.size(); + } + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.ExtensionChain getExtensionChains(int index) { + return extensionChains_.get(index); + } + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.ExtensionChainOrBuilder getExtensionChainsOrBuilder( + int index) { + return extensionChains_.get(index); + } + + public static final int LOAD_BALANCING_SCHEME_FIELD_NUMBER = 7; + private int loadBalancingScheme_ = 0; + + /** + * + * + *
                                              +   * Required. All forwarding rules referenced by this extension must
                                              +   * share the same load balancing scheme.
                                              +   * Supported values: `EXTERNAL_MANAGED`.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for loadBalancingScheme. + */ + @java.lang.Override + public int getLoadBalancingSchemeValue() { + return loadBalancingScheme_; + } + + /** + * + * + *
                                              +   * Required. All forwarding rules referenced by this extension must
                                              +   * share the same load balancing scheme.
                                              +   * Supported values: `EXTERNAL_MANAGED`.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loadBalancingScheme. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.LoadBalancingScheme getLoadBalancingScheme() { + com.google.cloud.networkservices.v1.LoadBalancingScheme result = + com.google.cloud.networkservices.v1.LoadBalancingScheme.forNumber(loadBalancingScheme_); + return result == null + ? com.google.cloud.networkservices.v1.LoadBalancingScheme.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + for (int i = 0; i < forwardingRules_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, forwardingRules_.getRaw(i)); + } + for (int i = 0; i < extensionChains_.size(); i++) { + output.writeMessage(6, extensionChains_.get(i)); + } + if (loadBalancingScheme_ + != com.google.cloud.networkservices.v1.LoadBalancingScheme.LOAD_BALANCING_SCHEME_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, loadBalancingScheme_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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__); + } + { + int dataSize = 0; + for (int i = 0; i < forwardingRules_.size(); i++) { + dataSize += computeStringSizeNoTag(forwardingRules_.getRaw(i)); + } + size += dataSize; + size += 1 * getForwardingRulesList().size(); + } + for (int i = 0; i < extensionChains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, extensionChains_.get(i)); + } + if (loadBalancingScheme_ + != com.google.cloud.networkservices.v1.LoadBalancingScheme.LOAD_BALANCING_SCHEME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, loadBalancingScheme_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, description_); + } + 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.LbEdgeExtension)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.LbEdgeExtension other = + (com.google.cloud.networkservices.v1.LbEdgeExtension) 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 (!getDescription().equals(other.getDescription())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getForwardingRulesList().equals(other.getForwardingRulesList())) return false; + if (!getExtensionChainsList().equals(other.getExtensionChainsList())) return false; + if (loadBalancingScheme_ != other.loadBalancingScheme_) 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(); + 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(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (getForwardingRulesCount() > 0) { + hash = (37 * hash) + FORWARDING_RULES_FIELD_NUMBER; + hash = (53 * hash) + getForwardingRulesList().hashCode(); + } + if (getExtensionChainsCount() > 0) { + hash = (37 * hash) + EXTENSION_CHAINS_FIELD_NUMBER; + hash = (53 * hash) + getExtensionChainsList().hashCode(); + } + hash = (37 * hash) + LOAD_BALANCING_SCHEME_FIELD_NUMBER; + hash = (53 * hash) + loadBalancingScheme_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension 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.LbEdgeExtension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension 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.LbEdgeExtension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension 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.LbEdgeExtension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.networkservices.v1.LbEdgeExtension prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * `LbEdgeExtension` is a resource that lets the extension service influence
                                              +   * the selection of backend services and Cloud CDN cache keys by modifying
                                              +   * request headers.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.LbEdgeExtension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.LbEdgeExtension) + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_LbEdgeExtension_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.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_LbEdgeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.LbEdgeExtension.class, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.LbEdgeExtension.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getExtensionChainsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + description_ = ""; + internalGetMutableLabels().clear(); + forwardingRules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (extensionChainsBuilder_ == null) { + extensionChains_ = java.util.Collections.emptyList(); + } else { + extensionChains_ = null; + extensionChainsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + loadBalancingScheme_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_LbEdgeExtension_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.LbEdgeExtension getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.LbEdgeExtension build() { + com.google.cloud.networkservices.v1.LbEdgeExtension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.LbEdgeExtension buildPartial() { + com.google.cloud.networkservices.v1.LbEdgeExtension result = + new com.google.cloud.networkservices.v1.LbEdgeExtension(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkservices.v1.LbEdgeExtension result) { + if (extensionChainsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + extensionChains_ = java.util.Collections.unmodifiableList(extensionChains_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.extensionChains_ = extensionChains_; + } else { + result.extensionChains_ = extensionChainsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networkservices.v1.LbEdgeExtension result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + forwardingRules_.makeImmutable(); + result.forwardingRules_ = forwardingRules_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.loadBalancingScheme_ = loadBalancingScheme_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.LbEdgeExtension) { + return mergeFrom((com.google.cloud.networkservices.v1.LbEdgeExtension) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.LbEdgeExtension other) { + if (other == com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (!other.forwardingRules_.isEmpty()) { + if (forwardingRules_.isEmpty()) { + forwardingRules_ = other.forwardingRules_; + bitField0_ |= 0x00000020; + } else { + ensureForwardingRulesIsMutable(); + forwardingRules_.addAll(other.forwardingRules_); + } + onChanged(); + } + if (extensionChainsBuilder_ == null) { + if (!other.extensionChains_.isEmpty()) { + if (extensionChains_.isEmpty()) { + extensionChains_ = other.extensionChains_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureExtensionChainsIsMutable(); + extensionChains_.addAll(other.extensionChains_); + } + onChanged(); + } + } else { + if (!other.extensionChains_.isEmpty()) { + if (extensionChainsBuilder_.isEmpty()) { + extensionChainsBuilder_.dispose(); + extensionChainsBuilder_ = null; + extensionChains_ = other.extensionChains_; + bitField0_ = (bitField0_ & ~0x00000040); + extensionChainsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExtensionChainsFieldBuilder() + : null; + } else { + extensionChainsBuilder_.addAllMessages(other.extensionChains_); + } + } + } + if (other.loadBalancingScheme_ != 0) { + setLoadBalancingSchemeValue(other.getLoadBalancingSchemeValue()); + } + 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureForwardingRulesIsMutable(); + forwardingRules_.add(s); + break; + } // case 42 + case 50: + { + com.google.cloud.networkservices.v1.ExtensionChain m = + input.readMessage( + com.google.cloud.networkservices.v1.ExtensionChain.parser(), + extensionRegistry); + if (extensionChainsBuilder_ == null) { + ensureExtensionChainsIsMutable(); + extensionChains_.add(m); + } else { + extensionChainsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: + { + loadBalancingScheme_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 74: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 + 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. Identifier. Name of the `LbEdgeExtension` resource in the
                                              +     * following format:
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
                                              +     * Required. Identifier. Name of the `LbEdgeExtension` resource in the
                                              +     * following format:
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
                                              +     * Required. Identifier. Name of the `LbEdgeExtension` resource in the
                                              +     * following format:
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Identifier. Name of the `LbEdgeExtension` resource in the
                                              +     * following format:
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Identifier. Name of the `LbEdgeExtension` resource in the
                                              +     * following format:
                                              +     * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +     * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + 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_ & 0x00000002) != 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_ |= 0x00000002; + 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_ |= 0x00000002; + 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_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + 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_ & ~0x00000002); + 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_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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_ & 0x00000004) != 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_ |= 0x00000004; + 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_ |= 0x00000004; + 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_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + 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_ & ~0x00000004); + 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_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                              +     * Optional. A human-readable description of the resource.
                                              +     * 
                                              + * + * string description = 9 [(.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 human-readable description of the resource.
                                              +     * 
                                              + * + * string description = 9 [(.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 human-readable description of the resource.
                                              +     * 
                                              + * + * string description = 9 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. A human-readable description of the resource.
                                              +     * 
                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. A human-readable description of the resource.
                                              +     * 
                                              + * + * string description = 9 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + 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_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                              +     * Optional. Set of labels associated with the `LbEdgeExtension` resource.
                                              +     *
                                              +     * The format must comply with [the requirements for
                                              +     * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +     * for Google Cloud resources.
                                              +     * 
                                              + * + * 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 labels associated with the `LbEdgeExtension` resource.
                                              +     *
                                              +     * The format must comply with [the requirements for
                                              +     * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +     * for Google Cloud resources.
                                              +     * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +     * Optional. Set of labels associated with the `LbEdgeExtension` resource.
                                              +     *
                                              +     * The format must comply with [the requirements for
                                              +     * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +     * for Google Cloud resources.
                                              +     * 
                                              + * + * 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 labels associated with the `LbEdgeExtension` resource.
                                              +     *
                                              +     * The format must comply with [the requirements for
                                              +     * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +     * for Google Cloud resources.
                                              +     * 
                                              + * + * 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_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Set of labels associated with the `LbEdgeExtension` resource.
                                              +     *
                                              +     * The format must comply with [the requirements for
                                              +     * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +     * for Google Cloud resources.
                                              +     * 
                                              + * + * 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_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                              +     * Optional. Set of labels associated with the `LbEdgeExtension` resource.
                                              +     *
                                              +     * The format must comply with [the requirements for
                                              +     * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +     * for Google Cloud resources.
                                              +     * 
                                              + * + * 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_ |= 0x00000010; + return this; + } + + /** + * + * + *
                                              +     * Optional. Set of labels associated with the `LbEdgeExtension` resource.
                                              +     *
                                              +     * The format must comply with [the requirements for
                                              +     * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +     * for Google Cloud resources.
                                              +     * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private com.google.protobuf.LazyStringArrayList forwardingRules_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureForwardingRulesIsMutable() { + if (!forwardingRules_.isModifiable()) { + forwardingRules_ = new com.google.protobuf.LazyStringArrayList(forwardingRules_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                                              +     * Required. A list of references to the forwarding rules to which this
                                              +     * service extension is attached. At least one forwarding rule is required.
                                              +     * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +     * rule.
                                              +     * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the forwardingRules. + */ + public com.google.protobuf.ProtocolStringList getForwardingRulesList() { + forwardingRules_.makeImmutable(); + return forwardingRules_; + } + + /** + * + * + *
                                              +     * Required. A list of references to the forwarding rules to which this
                                              +     * service extension is attached. At least one forwarding rule is required.
                                              +     * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +     * rule.
                                              +     * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of forwardingRules. + */ + public int getForwardingRulesCount() { + return forwardingRules_.size(); + } + + /** + * + * + *
                                              +     * Required. A list of references to the forwarding rules to which this
                                              +     * service extension is attached. At least one forwarding rule is required.
                                              +     * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +     * rule.
                                              +     * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The forwardingRules at the given index. + */ + public java.lang.String getForwardingRules(int index) { + return forwardingRules_.get(index); + } + + /** + * + * + *
                                              +     * Required. A list of references to the forwarding rules to which this
                                              +     * service extension is attached. At least one forwarding rule is required.
                                              +     * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +     * rule.
                                              +     * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the forwardingRules at the given index. + */ + public com.google.protobuf.ByteString getForwardingRulesBytes(int index) { + return forwardingRules_.getByteString(index); + } + + /** + * + * + *
                                              +     * Required. A list of references to the forwarding rules to which this
                                              +     * service extension is attached. At least one forwarding rule is required.
                                              +     * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +     * rule.
                                              +     * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The forwardingRules to set. + * @return This builder for chaining. + */ + public Builder setForwardingRules(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardingRulesIsMutable(); + forwardingRules_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. A list of references to the forwarding rules to which this
                                              +     * service extension is attached. At least one forwarding rule is required.
                                              +     * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +     * rule.
                                              +     * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The forwardingRules to add. + * @return This builder for chaining. + */ + public Builder addForwardingRules(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardingRulesIsMutable(); + forwardingRules_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. A list of references to the forwarding rules to which this
                                              +     * service extension is attached. At least one forwarding rule is required.
                                              +     * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +     * rule.
                                              +     * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The forwardingRules to add. + * @return This builder for chaining. + */ + public Builder addAllForwardingRules(java.lang.Iterable values) { + ensureForwardingRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forwardingRules_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. A list of references to the forwarding rules to which this
                                              +     * service extension is attached. At least one forwarding rule is required.
                                              +     * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +     * rule.
                                              +     * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearForwardingRules() { + forwardingRules_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. A list of references to the forwarding rules to which this
                                              +     * service extension is attached. At least one forwarding rule is required.
                                              +     * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +     * rule.
                                              +     * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the forwardingRules to add. + * @return This builder for chaining. + */ + public Builder addForwardingRulesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureForwardingRulesIsMutable(); + forwardingRules_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List extensionChains_ = + java.util.Collections.emptyList(); + + private void ensureExtensionChainsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + extensionChains_ = + new java.util.ArrayList( + extensionChains_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkservices.v1.ExtensionChain, + com.google.cloud.networkservices.v1.ExtensionChain.Builder, + com.google.cloud.networkservices.v1.ExtensionChainOrBuilder> + extensionChainsBuilder_; + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getExtensionChainsList() { + if (extensionChainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(extensionChains_); + } else { + return extensionChainsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getExtensionChainsCount() { + if (extensionChainsBuilder_ == null) { + return extensionChains_.size(); + } else { + return extensionChainsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.ExtensionChain getExtensionChains(int index) { + if (extensionChainsBuilder_ == null) { + return extensionChains_.get(index); + } else { + return extensionChainsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExtensionChains( + int index, com.google.cloud.networkservices.v1.ExtensionChain value) { + if (extensionChainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtensionChainsIsMutable(); + extensionChains_.set(index, value); + onChanged(); + } else { + extensionChainsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExtensionChains( + int index, com.google.cloud.networkservices.v1.ExtensionChain.Builder builderForValue) { + if (extensionChainsBuilder_ == null) { + ensureExtensionChainsIsMutable(); + extensionChains_.set(index, builderForValue.build()); + onChanged(); + } else { + extensionChainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addExtensionChains(com.google.cloud.networkservices.v1.ExtensionChain value) { + if (extensionChainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtensionChainsIsMutable(); + extensionChains_.add(value); + onChanged(); + } else { + extensionChainsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addExtensionChains( + int index, com.google.cloud.networkservices.v1.ExtensionChain value) { + if (extensionChainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtensionChainsIsMutable(); + extensionChains_.add(index, value); + onChanged(); + } else { + extensionChainsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addExtensionChains( + com.google.cloud.networkservices.v1.ExtensionChain.Builder builderForValue) { + if (extensionChainsBuilder_ == null) { + ensureExtensionChainsIsMutable(); + extensionChains_.add(builderForValue.build()); + onChanged(); + } else { + extensionChainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addExtensionChains( + int index, com.google.cloud.networkservices.v1.ExtensionChain.Builder builderForValue) { + if (extensionChainsBuilder_ == null) { + ensureExtensionChainsIsMutable(); + extensionChains_.add(index, builderForValue.build()); + onChanged(); + } else { + extensionChainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllExtensionChains( + java.lang.Iterable values) { + if (extensionChainsBuilder_ == null) { + ensureExtensionChainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extensionChains_); + onChanged(); + } else { + extensionChainsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExtensionChains() { + if (extensionChainsBuilder_ == null) { + extensionChains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + extensionChainsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeExtensionChains(int index) { + if (extensionChainsBuilder_ == null) { + ensureExtensionChainsIsMutable(); + extensionChains_.remove(index); + onChanged(); + } else { + extensionChainsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.ExtensionChain.Builder getExtensionChainsBuilder( + int index) { + return getExtensionChainsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.ExtensionChainOrBuilder getExtensionChainsOrBuilder( + int index) { + if (extensionChainsBuilder_ == null) { + return extensionChains_.get(index); + } else { + return extensionChainsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getExtensionChainsOrBuilderList() { + if (extensionChainsBuilder_ != null) { + return extensionChainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(extensionChains_); + } + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.ExtensionChain.Builder addExtensionChainsBuilder() { + return getExtensionChainsFieldBuilder() + .addBuilder(com.google.cloud.networkservices.v1.ExtensionChain.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.ExtensionChain.Builder addExtensionChainsBuilder( + int index) { + return getExtensionChainsFieldBuilder() + .addBuilder( + index, com.google.cloud.networkservices.v1.ExtensionChain.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Required. A set of ordered extension chains that contain the match
                                              +     * conditions and extensions to execute. Match conditions for each extension
                                              +     * chain are evaluated in sequence for a given request. The first extension
                                              +     * chain that has a condition that matches the request is executed.
                                              +     * Any subsequent extension chains do not execute.
                                              +     * Limited to 5 extension chains per resource.
                                              +     * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getExtensionChainsBuilderList() { + return getExtensionChainsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkservices.v1.ExtensionChain, + com.google.cloud.networkservices.v1.ExtensionChain.Builder, + com.google.cloud.networkservices.v1.ExtensionChainOrBuilder> + getExtensionChainsFieldBuilder() { + if (extensionChainsBuilder_ == null) { + extensionChainsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkservices.v1.ExtensionChain, + com.google.cloud.networkservices.v1.ExtensionChain.Builder, + com.google.cloud.networkservices.v1.ExtensionChainOrBuilder>( + extensionChains_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + extensionChains_ = null; + } + return extensionChainsBuilder_; + } + + private int loadBalancingScheme_ = 0; + + /** + * + * + *
                                              +     * Required. All forwarding rules referenced by this extension must
                                              +     * share the same load balancing scheme.
                                              +     * Supported values: `EXTERNAL_MANAGED`.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for loadBalancingScheme. + */ + @java.lang.Override + public int getLoadBalancingSchemeValue() { + return loadBalancingScheme_; + } + + /** + * + * + *
                                              +     * Required. All forwarding rules referenced by this extension must
                                              +     * share the same load balancing scheme.
                                              +     * Supported values: `EXTERNAL_MANAGED`.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for loadBalancingScheme to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancingSchemeValue(int value) { + loadBalancingScheme_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. All forwarding rules referenced by this extension must
                                              +     * share the same load balancing scheme.
                                              +     * Supported values: `EXTERNAL_MANAGED`.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loadBalancingScheme. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.LoadBalancingScheme getLoadBalancingScheme() { + com.google.cloud.networkservices.v1.LoadBalancingScheme result = + com.google.cloud.networkservices.v1.LoadBalancingScheme.forNumber(loadBalancingScheme_); + return result == null + ? com.google.cloud.networkservices.v1.LoadBalancingScheme.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Required. All forwarding rules referenced by this extension must
                                              +     * share the same load balancing scheme.
                                              +     * Supported values: `EXTERNAL_MANAGED`.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The loadBalancingScheme to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancingScheme( + com.google.cloud.networkservices.v1.LoadBalancingScheme value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + loadBalancingScheme_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. All forwarding rules referenced by this extension must
                                              +     * share the same load balancing scheme.
                                              +     * Supported values: `EXTERNAL_MANAGED`.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearLoadBalancingScheme() { + bitField0_ = (bitField0_ & ~0x00000080); + loadBalancingScheme_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.LbEdgeExtension) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.LbEdgeExtension) + private static final com.google.cloud.networkservices.v1.LbEdgeExtension DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.LbEdgeExtension(); + } + + public static com.google.cloud.networkservices.v1.LbEdgeExtension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LbEdgeExtension 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.LbEdgeExtension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionName.java new file mode 100644 index 000000000000..a12ef615a5c0 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 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 LbEdgeExtensionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_LB_EDGE_EXTENSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String lbEdgeExtension; + + @Deprecated + protected LbEdgeExtensionName() { + project = null; + location = null; + lbEdgeExtension = null; + } + + private LbEdgeExtensionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + lbEdgeExtension = Preconditions.checkNotNull(builder.getLbEdgeExtension()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getLbEdgeExtension() { + return lbEdgeExtension; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LbEdgeExtensionName of(String project, String location, String lbEdgeExtension) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setLbEdgeExtension(lbEdgeExtension) + .build(); + } + + public static String format(String project, String location, String lbEdgeExtension) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setLbEdgeExtension(lbEdgeExtension) + .build() + .toString(); + } + + public static LbEdgeExtensionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_LB_EDGE_EXTENSION.validatedMatch( + formattedString, "LbEdgeExtensionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("lb_edge_extension")); + } + + 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 (LbEdgeExtensionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_LB_EDGE_EXTENSION.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 (lbEdgeExtension != null) { + fieldMapBuilder.put("lb_edge_extension", lbEdgeExtension); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_LB_EDGE_EXTENSION.instantiate( + "project", project, "location", location, "lb_edge_extension", lbEdgeExtension); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LbEdgeExtensionName that = ((LbEdgeExtensionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.lbEdgeExtension, that.lbEdgeExtension); + } + 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(lbEdgeExtension); + return h; + } + + /** Builder for projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}. */ + public static class Builder { + private String project; + private String location; + private String lbEdgeExtension; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getLbEdgeExtension() { + return lbEdgeExtension; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setLbEdgeExtension(String lbEdgeExtension) { + this.lbEdgeExtension = lbEdgeExtension; + return this; + } + + private Builder(LbEdgeExtensionName lbEdgeExtensionName) { + this.project = lbEdgeExtensionName.project; + this.location = lbEdgeExtensionName.location; + this.lbEdgeExtension = lbEdgeExtensionName.lbEdgeExtension; + } + + public LbEdgeExtensionName build() { + return new LbEdgeExtensionName(this); + } + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionOrBuilder.java new file mode 100644 index 000000000000..9df25a62ccc2 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionOrBuilder.java @@ -0,0 +1,441 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +public interface LbEdgeExtensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.LbEdgeExtension) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. Identifier. Name of the `LbEdgeExtension` resource in the
                                              +   * following format:
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. Identifier. Name of the `LbEdgeExtension` resource in the
                                              +   * following format:
                                              +   * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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. A human-readable description of the resource.
                                              +   * 
                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                              +   * Optional. A human-readable description of the resource.
                                              +   * 
                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                              +   * Optional. Set of labels associated with the `LbEdgeExtension` resource.
                                              +   *
                                              +   * The format must comply with [the requirements for
                                              +   * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +   * for Google Cloud resources.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                              +   * Optional. Set of labels associated with the `LbEdgeExtension` resource.
                                              +   *
                                              +   * The format must comply with [the requirements for
                                              +   * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +   * for Google Cloud resources.
                                              +   * 
                                              + * + * 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 labels associated with the `LbEdgeExtension` resource.
                                              +   *
                                              +   * The format must comply with [the requirements for
                                              +   * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +   * for Google Cloud resources.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                              +   * Optional. Set of labels associated with the `LbEdgeExtension` resource.
                                              +   *
                                              +   * The format must comply with [the requirements for
                                              +   * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +   * for Google Cloud resources.
                                              +   * 
                                              + * + * 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 labels associated with the `LbEdgeExtension` resource.
                                              +   *
                                              +   * The format must comply with [the requirements for
                                              +   * labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
                                              +   * for Google Cloud resources.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                              +   * Required. A list of references to the forwarding rules to which this
                                              +   * service extension is attached. At least one forwarding rule is required.
                                              +   * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +   * rule.
                                              +   * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the forwardingRules. + */ + java.util.List getForwardingRulesList(); + + /** + * + * + *
                                              +   * Required. A list of references to the forwarding rules to which this
                                              +   * service extension is attached. At least one forwarding rule is required.
                                              +   * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +   * rule.
                                              +   * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of forwardingRules. + */ + int getForwardingRulesCount(); + + /** + * + * + *
                                              +   * Required. A list of references to the forwarding rules to which this
                                              +   * service extension is attached. At least one forwarding rule is required.
                                              +   * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +   * rule.
                                              +   * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The forwardingRules at the given index. + */ + java.lang.String getForwardingRules(int index); + + /** + * + * + *
                                              +   * Required. A list of references to the forwarding rules to which this
                                              +   * service extension is attached. At least one forwarding rule is required.
                                              +   * Only one `LbEdgeExtension` resource can be associated with a forwarding
                                              +   * rule.
                                              +   * 
                                              + * + * repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the forwardingRules at the given index. + */ + com.google.protobuf.ByteString getForwardingRulesBytes(int index); + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getExtensionChainsList(); + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkservices.v1.ExtensionChain getExtensionChains(int index); + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getExtensionChainsCount(); + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getExtensionChainsOrBuilderList(); + + /** + * + * + *
                                              +   * Required. A set of ordered extension chains that contain the match
                                              +   * conditions and extensions to execute. Match conditions for each extension
                                              +   * chain are evaluated in sequence for a given request. The first extension
                                              +   * chain that has a condition that matches the request is executed.
                                              +   * Any subsequent extension chains do not execute.
                                              +   * Limited to 5 extension chains per resource.
                                              +   * 
                                              + * + * + * repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkservices.v1.ExtensionChainOrBuilder getExtensionChainsOrBuilder( + int index); + + /** + * + * + *
                                              +   * Required. All forwarding rules referenced by this extension must
                                              +   * share the same load balancing scheme.
                                              +   * Supported values: `EXTERNAL_MANAGED`.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for loadBalancingScheme. + */ + int getLoadBalancingSchemeValue(); + + /** + * + * + *
                                              +   * Required. All forwarding rules referenced by this extension must
                                              +   * share the same load balancing scheme.
                                              +   * Supported values: `EXTERNAL_MANAGED`.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loadBalancingScheme. + */ + com.google.cloud.networkservices.v1.LoadBalancingScheme getLoadBalancingScheme(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsRequest.java new file mode 100644 index 000000000000..7723c0bb43ae --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsRequest.java @@ -0,0 +1,1338 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +/** + * + * + *
                                              + * Message for requesting list of `LbEdgeExtension` resources.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest} + */ +public final class ListLbEdgeExtensionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest) + ListLbEdgeExtensionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListLbEdgeExtensionsRequest.newBuilder() to construct. + private ListLbEdgeExtensionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLbEdgeExtensionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLbEdgeExtensionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest.class, + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest.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 `LbEdgeExtension`
                                              +   * resources are listed. These values are specified in the following format:
                                              +   * `projects/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * 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 `LbEdgeExtension`
                                              +   * resources are listed. These values are specified in the following format:
                                              +   * `projects/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * 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. Requested page size. The server might return fewer items than
                                              +   * requested. If unspecified, the server picks an appropriate default.
                                              +   * 
                                              + * + * 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. A token identifying a page of results that the server returns.
                                              +   * 
                                              + * + * 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. A token identifying a page of results that the server returns.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. Filtering results.
                                              +   * 
                                              + * + * string filter = 4 [(.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. Filtering results.
                                              +   * 
                                              + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +   * Optional. Hint about how to order the results.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. Hint about how to order the results.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + 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.ListLbEdgeExtensionsRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest other = + (com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest 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.ListLbEdgeExtensionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest 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.ListLbEdgeExtensionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest 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.ListLbEdgeExtensionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Message for requesting list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest) + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest.class, + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest build() { + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest buildPartial() { + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest result = + new com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest other) { + if (other + == com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                              +     * Required. The project and location from which the `LbEdgeExtension`
                                              +     * resources are listed. These values are specified in the following format:
                                              +     * `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension`
                                              +     * resources are listed. These values are specified in the following format:
                                              +     * `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension`
                                              +     * resources are listed. These values are specified in the following format:
                                              +     * `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension`
                                              +     * resources are listed. These values are specified in the following format:
                                              +     * `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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 `LbEdgeExtension`
                                              +     * resources are listed. These values are specified in the following format:
                                              +     * `projects/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * 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. Requested page size. The server might return fewer items than
                                              +     * requested. If unspecified, the server picks an appropriate default.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. Requested page size. The server might return fewer items than
                                              +     * requested. If unspecified, the server picks an appropriate default.
                                              +     * 
                                              + * + * 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. Requested page size. The server might return fewer items than
                                              +     * requested. If unspecified, the server picks an appropriate default.
                                              +     * 
                                              + * + * 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. A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * 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. A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * 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. A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * 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. A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * 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. A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. Filtering results.
                                              +     * 
                                              + * + * string filter = 4 [(.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. Filtering results.
                                              +     * 
                                              + * + * string filter = 4 [(.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. Filtering results.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Filtering results.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Filtering results.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +     * Optional. Hint about how to order the results.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Hint about how to order the results.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Hint about how to order the results.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Hint about how to order the results.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Hint about how to order the results.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest) + private static final com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest(); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLbEdgeExtensionsRequest 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.ListLbEdgeExtensionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsRequestOrBuilder.java new file mode 100644 index 000000000000..64eea6962dcb --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsRequestOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +public interface ListLbEdgeExtensionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The project and location from which the `LbEdgeExtension`
                                              +   * resources are listed. These values are specified in the following format:
                                              +   * `projects/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * 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 `LbEdgeExtension`
                                              +   * resources are listed. These values are specified in the following format:
                                              +   * `projects/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. Requested page size. The server might return fewer items than
                                              +   * requested. If unspecified, the server picks an appropriate default.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results that the server returns.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results that the server returns.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. Filtering results.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. Filtering results.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                              +   * Optional. Hint about how to order the results.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                              +   * Optional. Hint about how to order the results.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsResponse.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsResponse.java new file mode 100644 index 000000000000..b09b4b714fe1 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsResponse.java @@ -0,0 +1,1482 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +/** + * + * + *
                                              + * Message for response to listing `LbEdgeExtension` resources.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse} + */ +public final class ListLbEdgeExtensionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse) + ListLbEdgeExtensionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListLbEdgeExtensionsResponse.newBuilder() to construct. + private ListLbEdgeExtensionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLbEdgeExtensionsResponse() { + lbEdgeExtensions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLbEdgeExtensionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse.class, + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse.Builder.class); + } + + public static final int LB_EDGE_EXTENSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List lbEdgeExtensions_; + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + @java.lang.Override + public java.util.List + getLbEdgeExtensionsList() { + return lbEdgeExtensions_; + } + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + @java.lang.Override + public java.util.List + getLbEdgeExtensionsOrBuilderList() { + return lbEdgeExtensions_; + } + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + @java.lang.Override + public int getLbEdgeExtensionsCount() { + return lbEdgeExtensions_.size(); + } + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtensions(int index) { + return lbEdgeExtensions_.get(index); + } + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder getLbEdgeExtensionsOrBuilder( + int index) { + return lbEdgeExtensions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results that the server returns.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results that the server returns.
                                              +   * 
                                              + * + * 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(); + + /** + * + * + *
                                              +   * Locations that could not be reached.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                              +   * Locations that could not be reached.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +   * Locations that could not be reached.
                                              +   * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +   * Locations that could not be reached.
                                              +   * 
                                              + * + * 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 < lbEdgeExtensions_.size(); i++) { + output.writeMessage(1, lbEdgeExtensions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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 < lbEdgeExtensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, lbEdgeExtensions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.ListLbEdgeExtensionsResponse)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse other = + (com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse) obj; + + if (!getLbEdgeExtensionsList().equals(other.getLbEdgeExtensionsList())) 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 (getLbEdgeExtensionsCount() > 0) { + hash = (37 * hash) + LB_EDGE_EXTENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getLbEdgeExtensionsList().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.ListLbEdgeExtensionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse 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.ListLbEdgeExtensionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse 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.ListLbEdgeExtensionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse 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.ListLbEdgeExtensionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Message for response to listing `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse) + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse.class, + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (lbEdgeExtensionsBuilder_ == null) { + lbEdgeExtensions_ = java.util.Collections.emptyList(); + } else { + lbEdgeExtensions_ = null; + lbEdgeExtensionsBuilder_.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.DepProto + .internal_static_google_cloud_networkservices_v1_ListLbEdgeExtensionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse build() { + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse buildPartial() { + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse result = + new com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse result) { + if (lbEdgeExtensionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + lbEdgeExtensions_ = java.util.Collections.unmodifiableList(lbEdgeExtensions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.lbEdgeExtensions_ = lbEdgeExtensions_; + } else { + result.lbEdgeExtensions_ = lbEdgeExtensionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse 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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse) { + return mergeFrom((com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse other) { + if (other + == com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse.getDefaultInstance()) + return this; + if (lbEdgeExtensionsBuilder_ == null) { + if (!other.lbEdgeExtensions_.isEmpty()) { + if (lbEdgeExtensions_.isEmpty()) { + lbEdgeExtensions_ = other.lbEdgeExtensions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLbEdgeExtensionsIsMutable(); + lbEdgeExtensions_.addAll(other.lbEdgeExtensions_); + } + onChanged(); + } + } else { + if (!other.lbEdgeExtensions_.isEmpty()) { + if (lbEdgeExtensionsBuilder_.isEmpty()) { + lbEdgeExtensionsBuilder_.dispose(); + lbEdgeExtensionsBuilder_ = null; + lbEdgeExtensions_ = other.lbEdgeExtensions_; + bitField0_ = (bitField0_ & ~0x00000001); + lbEdgeExtensionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLbEdgeExtensionsFieldBuilder() + : null; + } else { + lbEdgeExtensionsBuilder_.addAllMessages(other.lbEdgeExtensions_); + } + } + } + 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.LbEdgeExtension m = + input.readMessage( + com.google.cloud.networkservices.v1.LbEdgeExtension.parser(), + extensionRegistry); + if (lbEdgeExtensionsBuilder_ == null) { + ensureLbEdgeExtensionsIsMutable(); + lbEdgeExtensions_.add(m); + } else { + lbEdgeExtensionsBuilder_.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 lbEdgeExtensions_ = + java.util.Collections.emptyList(); + + private void ensureLbEdgeExtensionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + lbEdgeExtensions_ = + new java.util.ArrayList( + lbEdgeExtensions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkservices.v1.LbEdgeExtension, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder, + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder> + lbEdgeExtensionsBuilder_; + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public java.util.List + getLbEdgeExtensionsList() { + if (lbEdgeExtensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(lbEdgeExtensions_); + } else { + return lbEdgeExtensionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public int getLbEdgeExtensionsCount() { + if (lbEdgeExtensionsBuilder_ == null) { + return lbEdgeExtensions_.size(); + } else { + return lbEdgeExtensionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtensions(int index) { + if (lbEdgeExtensionsBuilder_ == null) { + return lbEdgeExtensions_.get(index); + } else { + return lbEdgeExtensionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public Builder setLbEdgeExtensions( + int index, com.google.cloud.networkservices.v1.LbEdgeExtension value) { + if (lbEdgeExtensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLbEdgeExtensionsIsMutable(); + lbEdgeExtensions_.set(index, value); + onChanged(); + } else { + lbEdgeExtensionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public Builder setLbEdgeExtensions( + int index, com.google.cloud.networkservices.v1.LbEdgeExtension.Builder builderForValue) { + if (lbEdgeExtensionsBuilder_ == null) { + ensureLbEdgeExtensionsIsMutable(); + lbEdgeExtensions_.set(index, builderForValue.build()); + onChanged(); + } else { + lbEdgeExtensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public Builder addLbEdgeExtensions(com.google.cloud.networkservices.v1.LbEdgeExtension value) { + if (lbEdgeExtensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLbEdgeExtensionsIsMutable(); + lbEdgeExtensions_.add(value); + onChanged(); + } else { + lbEdgeExtensionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public Builder addLbEdgeExtensions( + int index, com.google.cloud.networkservices.v1.LbEdgeExtension value) { + if (lbEdgeExtensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLbEdgeExtensionsIsMutable(); + lbEdgeExtensions_.add(index, value); + onChanged(); + } else { + lbEdgeExtensionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public Builder addLbEdgeExtensions( + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder builderForValue) { + if (lbEdgeExtensionsBuilder_ == null) { + ensureLbEdgeExtensionsIsMutable(); + lbEdgeExtensions_.add(builderForValue.build()); + onChanged(); + } else { + lbEdgeExtensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public Builder addLbEdgeExtensions( + int index, com.google.cloud.networkservices.v1.LbEdgeExtension.Builder builderForValue) { + if (lbEdgeExtensionsBuilder_ == null) { + ensureLbEdgeExtensionsIsMutable(); + lbEdgeExtensions_.add(index, builderForValue.build()); + onChanged(); + } else { + lbEdgeExtensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public Builder addAllLbEdgeExtensions( + java.lang.Iterable values) { + if (lbEdgeExtensionsBuilder_ == null) { + ensureLbEdgeExtensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lbEdgeExtensions_); + onChanged(); + } else { + lbEdgeExtensionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public Builder clearLbEdgeExtensions() { + if (lbEdgeExtensionsBuilder_ == null) { + lbEdgeExtensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + lbEdgeExtensionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public Builder removeLbEdgeExtensions(int index) { + if (lbEdgeExtensionsBuilder_ == null) { + ensureLbEdgeExtensionsIsMutable(); + lbEdgeExtensions_.remove(index); + onChanged(); + } else { + lbEdgeExtensionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension.Builder getLbEdgeExtensionsBuilder( + int index) { + return getLbEdgeExtensionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder + getLbEdgeExtensionsOrBuilder(int index) { + if (lbEdgeExtensionsBuilder_ == null) { + return lbEdgeExtensions_.get(index); + } else { + return lbEdgeExtensionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public java.util.List + getLbEdgeExtensionsOrBuilderList() { + if (lbEdgeExtensionsBuilder_ != null) { + return lbEdgeExtensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(lbEdgeExtensions_); + } + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension.Builder + addLbEdgeExtensionsBuilder() { + return getLbEdgeExtensionsFieldBuilder() + .addBuilder(com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension.Builder addLbEdgeExtensionsBuilder( + int index) { + return getLbEdgeExtensionsFieldBuilder() + .addBuilder( + index, com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of `LbEdgeExtension` resources.
                                              +     * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + * + */ + public java.util.List + getLbEdgeExtensionsBuilderList() { + return getLbEdgeExtensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkservices.v1.LbEdgeExtension, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder, + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder> + getLbEdgeExtensionsFieldBuilder() { + if (lbEdgeExtensionsBuilder_ == null) { + lbEdgeExtensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkservices.v1.LbEdgeExtension, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder, + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder>( + lbEdgeExtensions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + lbEdgeExtensions_ = null; + } + return lbEdgeExtensionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results that the server returns.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached.
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                              +     * Locations that could not be reached.
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +     * Locations that could not be reached.
                                              +     * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +     * Locations that could not be reached.
                                              +     * 
                                              + * + * 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); + } + + /** + * + * + *
                                              +     * Locations that could not be reached.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * Locations that could not be reached.
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Locations that could not be reached.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse) + private static final com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse(); + } + + public static com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLbEdgeExtensionsResponse 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.ListLbEdgeExtensionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsResponseOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsResponseOrBuilder.java new file mode 100644 index 000000000000..641d14fb580e --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListLbEdgeExtensionsResponseOrBuilder.java @@ -0,0 +1,163 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +public interface ListLbEdgeExtensionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + java.util.List getLbEdgeExtensionsList(); + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtensions(int index); + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + int getLbEdgeExtensionsCount(); + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + java.util.List + getLbEdgeExtensionsOrBuilderList(); + + /** + * + * + *
                                              +   * The list of `LbEdgeExtension` resources.
                                              +   * 
                                              + * + * repeated .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extensions = 1; + */ + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder getLbEdgeExtensionsOrBuilder( + int index); + + /** + * + * + *
                                              +   * A token identifying a page of results that the server returns.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results that the server returns.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                              +   * Locations that could not be reached.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                              +   * Locations that could not be reached.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                              +   * Locations that could not be reached.
                                              +   * 
                                              + * + * 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); + + /** + * + * + *
                                              +   * Locations that could not be reached.
                                              +   * 
                                              + * + * 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/UpdateLbEdgeExtensionRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateLbEdgeExtensionRequest.java new file mode 100644 index 000000000000..d2fb0237d6f3 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateLbEdgeExtensionRequest.java @@ -0,0 +1,1389 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +/** + * + * + *
                                              + * Message for updating a `LbEdgeExtension` resource.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest} + */ +public final class UpdateLbEdgeExtensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest) + UpdateLbEdgeExtensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateLbEdgeExtensionRequest.newBuilder() to construct. + private UpdateLbEdgeExtensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateLbEdgeExtensionRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateLbEdgeExtensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest.class, + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                              +   * Optional. Used to specify the fields to be overwritten in the
                                              +   * `LbEdgeExtension` resource by the update.
                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                              +   * user does not specify a mask, then all fields are 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. Used to specify the fields to be overwritten in the
                                              +   * `LbEdgeExtension` resource by the update.
                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                              +   * user does not specify a mask, then all fields are 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. Used to specify the fields to be overwritten in the
                                              +   * `LbEdgeExtension` resource by the update.
                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                              +   * user does not specify a mask, then all fields are 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 LB_EDGE_EXTENSION_FIELD_NUMBER = 2; + private com.google.cloud.networkservices.v1.LbEdgeExtension lbEdgeExtension_; + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lbEdgeExtension field is set. + */ + @java.lang.Override + public boolean hasLbEdgeExtension() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lbEdgeExtension. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtension() { + return lbEdgeExtension_ == null + ? com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance() + : lbEdgeExtension_; + } + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder + getLbEdgeExtensionOrBuilder() { + return lbEdgeExtension_ == null + ? com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance() + : lbEdgeExtension_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.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. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.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 + 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, getLbEdgeExtension()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + 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, getLbEdgeExtension()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + 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.UpdateLbEdgeExtensionRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest other = + (com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasLbEdgeExtension() != other.hasLbEdgeExtension()) return false; + if (hasLbEdgeExtension()) { + if (!getLbEdgeExtension().equals(other.getLbEdgeExtension())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasLbEdgeExtension()) { + hash = (37 * hash) + LB_EDGE_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getLbEdgeExtension().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest 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.UpdateLbEdgeExtensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest 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.UpdateLbEdgeExtensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest 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.UpdateLbEdgeExtensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Message for updating a `LbEdgeExtension` resource.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest) + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest.class, + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getLbEdgeExtensionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + lbEdgeExtension_ = null; + if (lbEdgeExtensionBuilder_ != null) { + lbEdgeExtensionBuilder_.dispose(); + lbEdgeExtensionBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.DepProto + .internal_static_google_cloud_networkservices_v1_UpdateLbEdgeExtensionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest build() { + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest buildPartial() { + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest result = + new com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest 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.lbEdgeExtension_ = + lbEdgeExtensionBuilder_ == null ? lbEdgeExtension_ : lbEdgeExtensionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest other) { + if (other + == com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasLbEdgeExtension()) { + mergeLbEdgeExtension(other.getLbEdgeExtension()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getLbEdgeExtensionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                              +     * Optional. Used to specify the fields to be overwritten in the
                                              +     * `LbEdgeExtension` resource by the update.
                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                              +     * user does not specify a mask, then all fields are 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. Used to specify the fields to be overwritten in the
                                              +     * `LbEdgeExtension` resource by the update.
                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                              +     * user does not specify a mask, then all fields are 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. Used to specify the fields to be overwritten in the
                                              +     * `LbEdgeExtension` resource by the update.
                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                              +     * user does not specify a mask, then all fields are 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. Used to specify the fields to be overwritten in the
                                              +     * `LbEdgeExtension` resource by the update.
                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                              +     * user does not specify a mask, then all fields are 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. Used to specify the fields to be overwritten in the
                                              +     * `LbEdgeExtension` resource by the update.
                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                              +     * user does not specify a mask, then all fields are 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. Used to specify the fields to be overwritten in the
                                              +     * `LbEdgeExtension` resource by the update.
                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                              +     * user does not specify a mask, then all fields are 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. Used to specify the fields to be overwritten in the
                                              +     * `LbEdgeExtension` resource by the update.
                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                              +     * user does not specify a mask, then all fields are overwritten.
                                              +     * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. Used to specify the fields to be overwritten in the
                                              +     * `LbEdgeExtension` resource by the update.
                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                              +     * user does not specify a mask, then all fields are 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. Used to specify the fields to be overwritten in the
                                              +     * `LbEdgeExtension` resource by the update.
                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                              +     * user does not specify a mask, then all fields are overwritten.
                                              +     * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.LbEdgeExtension lbEdgeExtension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkservices.v1.LbEdgeExtension, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder, + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder> + lbEdgeExtensionBuilder_; + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lbEdgeExtension field is set. + */ + public boolean hasLbEdgeExtension() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lbEdgeExtension. + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtension() { + if (lbEdgeExtensionBuilder_ == null) { + return lbEdgeExtension_ == null + ? com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance() + : lbEdgeExtension_; + } else { + return lbEdgeExtensionBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLbEdgeExtension(com.google.cloud.networkservices.v1.LbEdgeExtension value) { + if (lbEdgeExtensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lbEdgeExtension_ = value; + } else { + lbEdgeExtensionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLbEdgeExtension( + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder builderForValue) { + if (lbEdgeExtensionBuilder_ == null) { + lbEdgeExtension_ = builderForValue.build(); + } else { + lbEdgeExtensionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLbEdgeExtension(com.google.cloud.networkservices.v1.LbEdgeExtension value) { + if (lbEdgeExtensionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && lbEdgeExtension_ != null + && lbEdgeExtension_ + != com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance()) { + getLbEdgeExtensionBuilder().mergeFrom(value); + } else { + lbEdgeExtension_ = value; + } + } else { + lbEdgeExtensionBuilder_.mergeFrom(value); + } + if (lbEdgeExtension_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLbEdgeExtension() { + bitField0_ = (bitField0_ & ~0x00000002); + lbEdgeExtension_ = null; + if (lbEdgeExtensionBuilder_ != null) { + lbEdgeExtensionBuilder_.dispose(); + lbEdgeExtensionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.LbEdgeExtension.Builder getLbEdgeExtensionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLbEdgeExtensionFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder + getLbEdgeExtensionOrBuilder() { + if (lbEdgeExtensionBuilder_ != null) { + return lbEdgeExtensionBuilder_.getMessageOrBuilder(); + } else { + return lbEdgeExtension_ == null + ? com.google.cloud.networkservices.v1.LbEdgeExtension.getDefaultInstance() + : lbEdgeExtension_; + } + } + + /** + * + * + *
                                              +     * Required. `LbEdgeExtension` resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkservices.v1.LbEdgeExtension, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder, + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder> + getLbEdgeExtensionFieldBuilder() { + if (lbEdgeExtensionBuilder_ == null) { + lbEdgeExtensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkservices.v1.LbEdgeExtension, + com.google.cloud.networkservices.v1.LbEdgeExtension.Builder, + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder>( + getLbEdgeExtension(), getParentForChildren(), isClean()); + lbEdgeExtension_ = null; + } + return lbEdgeExtensionBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server can ignore
                                              +     * the request if it has already been completed. The server guarantees
                                              +     * that for 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server ignores the second request This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest) + private static final com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest(); + } + + public static com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLbEdgeExtensionRequest 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.UpdateLbEdgeExtensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateLbEdgeExtensionRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateLbEdgeExtensionRequestOrBuilder.java new file mode 100644 index 000000000000..95ddef750726 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateLbEdgeExtensionRequestOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2025 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! +// source: google/cloud/networkservices/v1/dep.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkservices.v1; + +public interface UpdateLbEdgeExtensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. Used to specify the fields to be overwritten in the
                                              +   * `LbEdgeExtension` resource by the update.
                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                              +   * user does not specify a mask, then all fields are overwritten.
                                              +   * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                              +   * Optional. Used to specify the fields to be overwritten in the
                                              +   * `LbEdgeExtension` resource by the update.
                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                              +   * user does not specify a mask, then all fields are overwritten.
                                              +   * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                              +   * Optional. Used to specify the fields to be overwritten in the
                                              +   * `LbEdgeExtension` resource by the update.
                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                              +   * user does not specify a mask, then all fields are overwritten.
                                              +   * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lbEdgeExtension field is set. + */ + boolean hasLbEdgeExtension(); + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lbEdgeExtension. + */ + com.google.cloud.networkservices.v1.LbEdgeExtension getLbEdgeExtension(); + + /** + * + * + *
                                              +   * Required. `LbEdgeExtension` resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.networkservices.v1.LbEdgeExtension lb_edge_extension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkservices.v1.LbEdgeExtensionOrBuilder getLbEdgeExtensionOrBuilder(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server can ignore
                                              +   * the request if it has already been completed. The server guarantees
                                              +   * that for 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server ignores the second request This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.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/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 fc4921a7eb90..1ec1ee251c01 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 @@ -164,6 +164,65 @@ service DepService { }; } + // Lists `LbEdgeExtension` resources in a given project and location. + rpc ListLbEdgeExtensions(ListLbEdgeExtensionsRequest) + returns (ListLbEdgeExtensionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/lbEdgeExtensions" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified `LbEdgeExtension` resource. + rpc GetLbEdgeExtension(GetLbEdgeExtensionRequest) returns (LbEdgeExtension) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new `LbEdgeExtension` resource in a given project and location. + rpc CreateLbEdgeExtension(CreateLbEdgeExtensionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/lbEdgeExtensions" + body: "lb_edge_extension" + }; + option (google.api.method_signature) = + "parent,lb_edge_extension,lb_edge_extension_id"; + option (google.longrunning.operation_info) = { + response_type: "LbEdgeExtension" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of the specified `LbEdgeExtension` resource. + rpc UpdateLbEdgeExtension(UpdateLbEdgeExtensionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{lb_edge_extension.name=projects/*/locations/*/lbEdgeExtensions/*}" + body: "lb_edge_extension" + }; + option (google.api.method_signature) = "lb_edge_extension,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "LbEdgeExtension" + metadata_type: "OperationMetadata" + }; + } + + // Deletes the specified `LbEdgeExtension` resource. + rpc DeleteLbEdgeExtension(DeleteLbEdgeExtensionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + // Lists `AuthzExtension` resources in a given project and location. rpc ListAuthzExtensions(ListAuthzExtensionsRequest) returns (ListAuthzExtensionsResponse) { @@ -904,6 +963,214 @@ message DeleteLbRouteExtensionRequest { ]; } +// `LbEdgeExtension` is a resource that lets the extension service influence +// the selection of backend services and Cloud CDN cache keys by modifying +// request headers. +message LbEdgeExtension { + option (google.api.resource) = { + type: "networkservices.googleapis.com/LbEdgeExtension" + pattern: "projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}" + plural: "lbEdgeExtensions" + singular: "lbEdgeExtension" + }; + + // Required. Identifier. Name of the `LbEdgeExtension` resource in the + // following format: + // `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (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. A human-readable description of the resource. + string description = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Set of labels associated with the `LbEdgeExtension` resource. + // + // The format must comply with [the requirements for + // labels](https://cloud.google.com/compute/docs/labeling-resources#requirements) + // for Google Cloud resources. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. A list of references to the forwarding rules to which this + // service extension is attached. At least one forwarding rule is required. + // Only one `LbEdgeExtension` resource can be associated with a forwarding + // rule. + repeated string forwarding_rules = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. A set of ordered extension chains that contain the match + // conditions and extensions to execute. Match conditions for each extension + // chain are evaluated in sequence for a given request. The first extension + // chain that has a condition that matches the request is executed. + // Any subsequent extension chains do not execute. + // Limited to 5 extension chains per resource. + repeated ExtensionChain extension_chains = 6 + [(google.api.field_behavior) = REQUIRED]; + + // Required. All forwarding rules referenced by this extension must + // share the same load balancing scheme. + // Supported values: `EXTERNAL_MANAGED`. + LoadBalancingScheme load_balancing_scheme = 7 + [(google.api.field_behavior) = REQUIRED]; +} + +// Message for requesting list of `LbEdgeExtension` resources. +message ListLbEdgeExtensionsRequest { + // Required. The project and location from which the `LbEdgeExtension` + // resources are listed. These values are specified in the following format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkservices.googleapis.com/LbEdgeExtension" + } + ]; + + // Optional. Requested page size. The server might return fewer items than + // requested. If unspecified, the server picks an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results that the server returns. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint about how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing `LbEdgeExtension` resources. +message ListLbEdgeExtensionsResponse { + // The list of `LbEdgeExtension` resources. + repeated LbEdgeExtension lb_edge_extensions = 1; + + // A token identifying a page of results that the server returns. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a `LbEdgeExtension` resource. +message GetLbEdgeExtensionRequest { + // Required. A name of the `LbEdgeExtension` resource to get. Must be in the + // format + // `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkservices.googleapis.com/LbEdgeExtension" + } + ]; +} + +// Message for creating a `LbEdgeExtension` resource. +message CreateLbEdgeExtensionRequest { + // Required. The parent resource of the `LbEdgeExtension` resource. Must be in + // the format `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkservices.googleapis.com/LbEdgeExtension" + } + ]; + + // Required. User-provided ID of the `LbEdgeExtension` resource to be created. + string lb_edge_extension_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. `LbEdgeExtension` resource to be created. + LbEdgeExtension lb_edge_extension = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server guarantees + // that for 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server ignores the second request This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for updating a `LbEdgeExtension` resource. +message UpdateLbEdgeExtensionRequest { + // Optional. Used to specify the fields to be overwritten in the + // `LbEdgeExtension` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field is overwritten if it is in the mask. If the + // user does not specify a mask, then all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. `LbEdgeExtension` resource being updated. + LbEdgeExtension lb_edge_extension = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server guarantees + // that for 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server ignores the second request This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for deleting a `LbEdgeExtension` resource. +message DeleteLbEdgeExtensionRequest { + // Required. The name of the `LbEdgeExtension` resource to delete. Must be in + // the format + // `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkservices.googleapis.com/LbEdgeExtension" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server guarantees + // that for 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server ignores the second request This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // `AuthzExtension` is a resource that allows traffic forwarding // to a callout backend service to make an authorization decision. message AuthzExtension { diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/AsyncCreateLbEdgeExtension.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/AsyncCreateLbEdgeExtension.java new file mode 100644 index 000000000000..9594d6c5c9c5 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/AsyncCreateLbEdgeExtension.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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_DepService_CreateLbEdgeExtension_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateLbEdgeExtension { + + public static void main(String[] args) throws Exception { + asyncCreateLbEdgeExtension(); + } + + public static void asyncCreateLbEdgeExtension() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + CreateLbEdgeExtensionRequest request = + CreateLbEdgeExtensionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setLbEdgeExtensionId("lbEdgeExtensionId673551207") + .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + depServiceClient.createLbEdgeExtensionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkservices_v1_generated_DepService_CreateLbEdgeExtension_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/AsyncCreateLbEdgeExtensionLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/AsyncCreateLbEdgeExtensionLRO.java new file mode 100644 index 000000000000..d1b2b4907ad4 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/AsyncCreateLbEdgeExtensionLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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_DepService_CreateLbEdgeExtension_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.OperationMetadata; + +public class AsyncCreateLbEdgeExtensionLRO { + + public static void main(String[] args) throws Exception { + asyncCreateLbEdgeExtensionLRO(); + } + + public static void asyncCreateLbEdgeExtensionLRO() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + CreateLbEdgeExtensionRequest request = + CreateLbEdgeExtensionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setLbEdgeExtensionId("lbEdgeExtensionId673551207") + .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + depServiceClient.createLbEdgeExtensionOperationCallable().futureCall(request); + // Do something. + LbEdgeExtension response = future.get(); + } + } +} +// [END networkservices_v1_generated_DepService_CreateLbEdgeExtension_LRO_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/SyncCreateLbEdgeExtension.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/SyncCreateLbEdgeExtension.java new file mode 100644 index 000000000000..4a81d54d07a5 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/SyncCreateLbEdgeExtension.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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_DepService_CreateLbEdgeExtension_sync] +import com.google.cloud.networkservices.v1.CreateLbEdgeExtensionRequest; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LocationName; + +public class SyncCreateLbEdgeExtension { + + public static void main(String[] args) throws Exception { + syncCreateLbEdgeExtension(); + } + + public static void syncCreateLbEdgeExtension() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + CreateLbEdgeExtensionRequest request = + CreateLbEdgeExtensionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setLbEdgeExtensionId("lbEdgeExtensionId673551207") + .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + LbEdgeExtension response = depServiceClient.createLbEdgeExtensionAsync(request).get(); + } + } +} +// [END networkservices_v1_generated_DepService_CreateLbEdgeExtension_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/SyncCreateLbEdgeExtensionLocationnameLbedgeextensionString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/SyncCreateLbEdgeExtensionLocationnameLbedgeextensionString.java new file mode 100644 index 000000000000..b84050e7928c --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/SyncCreateLbEdgeExtensionLocationnameLbedgeextensionString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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_DepService_CreateLbEdgeExtension_LocationnameLbedgeextensionString_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LocationName; + +public class SyncCreateLbEdgeExtensionLocationnameLbedgeextensionString { + + public static void main(String[] args) throws Exception { + syncCreateLbEdgeExtensionLocationnameLbedgeextensionString(); + } + + public static void syncCreateLbEdgeExtensionLocationnameLbedgeextensionString() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + LbEdgeExtension response = + depServiceClient + .createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId) + .get(); + } + } +} +// [END networkservices_v1_generated_DepService_CreateLbEdgeExtension_LocationnameLbedgeextensionString_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/SyncCreateLbEdgeExtensionStringLbedgeextensionString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/SyncCreateLbEdgeExtensionStringLbedgeextensionString.java new file mode 100644 index 000000000000..862702f74605 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/createlbedgeextension/SyncCreateLbEdgeExtensionStringLbedgeextensionString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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_DepService_CreateLbEdgeExtension_StringLbedgeextensionString_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LocationName; + +public class SyncCreateLbEdgeExtensionStringLbedgeextensionString { + + public static void main(String[] args) throws Exception { + syncCreateLbEdgeExtensionStringLbedgeextensionString(); + } + + public static void syncCreateLbEdgeExtensionStringLbedgeextensionString() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + String lbEdgeExtensionId = "lbEdgeExtensionId673551207"; + LbEdgeExtension response = + depServiceClient + .createLbEdgeExtensionAsync(parent, lbEdgeExtension, lbEdgeExtensionId) + .get(); + } + } +} +// [END networkservices_v1_generated_DepService_CreateLbEdgeExtension_StringLbedgeextensionString_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/AsyncDeleteLbEdgeExtension.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/AsyncDeleteLbEdgeExtension.java new file mode 100644 index 000000000000..bf1341fd7604 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/AsyncDeleteLbEdgeExtension.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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_DepService_DeleteLbEdgeExtension_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtensionName; +import com.google.longrunning.Operation; + +public class AsyncDeleteLbEdgeExtension { + + public static void main(String[] args) throws Exception { + asyncDeleteLbEdgeExtension(); + } + + public static void asyncDeleteLbEdgeExtension() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + DeleteLbEdgeExtensionRequest request = + DeleteLbEdgeExtensionRequest.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + depServiceClient.deleteLbEdgeExtensionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkservices_v1_generated_DepService_DeleteLbEdgeExtension_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/AsyncDeleteLbEdgeExtensionLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/AsyncDeleteLbEdgeExtensionLRO.java new file mode 100644 index 000000000000..16d6d45e431b --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/AsyncDeleteLbEdgeExtensionLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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_DepService_DeleteLbEdgeExtension_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtensionName; +import com.google.cloud.networkservices.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteLbEdgeExtensionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteLbEdgeExtensionLRO(); + } + + public static void asyncDeleteLbEdgeExtensionLRO() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + DeleteLbEdgeExtensionRequest request = + DeleteLbEdgeExtensionRequest.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + depServiceClient.deleteLbEdgeExtensionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkservices_v1_generated_DepService_DeleteLbEdgeExtension_LRO_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/SyncDeleteLbEdgeExtension.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/SyncDeleteLbEdgeExtension.java new file mode 100644 index 000000000000..5d182cc54422 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/SyncDeleteLbEdgeExtension.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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_DepService_DeleteLbEdgeExtension_sync] +import com.google.cloud.networkservices.v1.DeleteLbEdgeExtensionRequest; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtensionName; +import com.google.protobuf.Empty; + +public class SyncDeleteLbEdgeExtension { + + public static void main(String[] args) throws Exception { + syncDeleteLbEdgeExtension(); + } + + public static void syncDeleteLbEdgeExtension() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + DeleteLbEdgeExtensionRequest request = + DeleteLbEdgeExtensionRequest.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + depServiceClient.deleteLbEdgeExtensionAsync(request).get(); + } + } +} +// [END networkservices_v1_generated_DepService_DeleteLbEdgeExtension_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/SyncDeleteLbEdgeExtensionLbedgeextensionname.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/SyncDeleteLbEdgeExtensionLbedgeextensionname.java new file mode 100644 index 000000000000..d0c9899955d2 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/SyncDeleteLbEdgeExtensionLbedgeextensionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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_DepService_DeleteLbEdgeExtension_Lbedgeextensionname_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtensionName; +import com.google.protobuf.Empty; + +public class SyncDeleteLbEdgeExtensionLbedgeextensionname { + + public static void main(String[] args) throws Exception { + syncDeleteLbEdgeExtensionLbedgeextensionname(); + } + + public static void syncDeleteLbEdgeExtensionLbedgeextensionname() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + depServiceClient.deleteLbEdgeExtensionAsync(name).get(); + } + } +} +// [END networkservices_v1_generated_DepService_DeleteLbEdgeExtension_Lbedgeextensionname_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/SyncDeleteLbEdgeExtensionString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/SyncDeleteLbEdgeExtensionString.java new file mode 100644 index 000000000000..fb5672d041b6 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/deletelbedgeextension/SyncDeleteLbEdgeExtensionString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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_DepService_DeleteLbEdgeExtension_String_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtensionName; +import com.google.protobuf.Empty; + +public class SyncDeleteLbEdgeExtensionString { + + public static void main(String[] args) throws Exception { + syncDeleteLbEdgeExtensionString(); + } + + public static void syncDeleteLbEdgeExtensionString() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + String name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString(); + depServiceClient.deleteLbEdgeExtensionAsync(name).get(); + } + } +} +// [END networkservices_v1_generated_DepService_DeleteLbEdgeExtension_String_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/AsyncGetLbEdgeExtension.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/AsyncGetLbEdgeExtension.java new file mode 100644 index 000000000000..828e744c71ae --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/AsyncGetLbEdgeExtension.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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_DepService_GetLbEdgeExtension_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LbEdgeExtensionName; + +public class AsyncGetLbEdgeExtension { + + public static void main(String[] args) throws Exception { + asyncGetLbEdgeExtension(); + } + + public static void asyncGetLbEdgeExtension() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + GetLbEdgeExtensionRequest request = + GetLbEdgeExtensionRequest.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]") + .toString()) + .build(); + ApiFuture future = + depServiceClient.getLbEdgeExtensionCallable().futureCall(request); + // Do something. + LbEdgeExtension response = future.get(); + } + } +} +// [END networkservices_v1_generated_DepService_GetLbEdgeExtension_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/SyncGetLbEdgeExtension.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/SyncGetLbEdgeExtension.java new file mode 100644 index 000000000000..e23933b72076 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/SyncGetLbEdgeExtension.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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_DepService_GetLbEdgeExtension_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.GetLbEdgeExtensionRequest; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LbEdgeExtensionName; + +public class SyncGetLbEdgeExtension { + + public static void main(String[] args) throws Exception { + syncGetLbEdgeExtension(); + } + + public static void syncGetLbEdgeExtension() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + GetLbEdgeExtensionRequest request = + GetLbEdgeExtensionRequest.newBuilder() + .setName( + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]") + .toString()) + .build(); + LbEdgeExtension response = depServiceClient.getLbEdgeExtension(request); + } + } +} +// [END networkservices_v1_generated_DepService_GetLbEdgeExtension_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/SyncGetLbEdgeExtensionLbedgeextensionname.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/SyncGetLbEdgeExtensionLbedgeextensionname.java new file mode 100644 index 000000000000..2166cc56c99c --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/SyncGetLbEdgeExtensionLbedgeextensionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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_DepService_GetLbEdgeExtension_Lbedgeextensionname_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LbEdgeExtensionName; + +public class SyncGetLbEdgeExtensionLbedgeextensionname { + + public static void main(String[] args) throws Exception { + syncGetLbEdgeExtensionLbedgeextensionname(); + } + + public static void syncGetLbEdgeExtensionLbedgeextensionname() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + LbEdgeExtensionName name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]"); + LbEdgeExtension response = depServiceClient.getLbEdgeExtension(name); + } + } +} +// [END networkservices_v1_generated_DepService_GetLbEdgeExtension_Lbedgeextensionname_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/SyncGetLbEdgeExtensionString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/SyncGetLbEdgeExtensionString.java new file mode 100644 index 000000000000..56f40d4a7362 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/getlbedgeextension/SyncGetLbEdgeExtensionString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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_DepService_GetLbEdgeExtension_String_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LbEdgeExtensionName; + +public class SyncGetLbEdgeExtensionString { + + public static void main(String[] args) throws Exception { + syncGetLbEdgeExtensionString(); + } + + public static void syncGetLbEdgeExtensionString() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + String name = + LbEdgeExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_EDGE_EXTENSION]").toString(); + LbEdgeExtension response = depServiceClient.getLbEdgeExtension(name); + } + } +} +// [END networkservices_v1_generated_DepService_GetLbEdgeExtension_String_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/AsyncListLbEdgeExtensions.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/AsyncListLbEdgeExtensions.java new file mode 100644 index 000000000000..c3c0603eea8c --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/AsyncListLbEdgeExtensions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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_DepService_ListLbEdgeExtensions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest; +import com.google.cloud.networkservices.v1.LocationName; + +public class AsyncListLbEdgeExtensions { + + public static void main(String[] args) throws Exception { + asyncListLbEdgeExtensions(); + } + + public static void asyncListLbEdgeExtensions() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + ListLbEdgeExtensionsRequest request = + ListLbEdgeExtensionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + depServiceClient.listLbEdgeExtensionsPagedCallable().futureCall(request); + // Do something. + for (LbEdgeExtension element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_DepService_ListLbEdgeExtensions_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/AsyncListLbEdgeExtensionsPaged.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/AsyncListLbEdgeExtensionsPaged.java new file mode 100644 index 000000000000..58cc22ac64c4 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/AsyncListLbEdgeExtensionsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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_DepService_ListLbEdgeExtensions_Paged_async] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListLbEdgeExtensionsPaged { + + public static void main(String[] args) throws Exception { + asyncListLbEdgeExtensionsPaged(); + } + + public static void asyncListLbEdgeExtensionsPaged() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + ListLbEdgeExtensionsRequest request = + ListLbEdgeExtensionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListLbEdgeExtensionsResponse response = + depServiceClient.listLbEdgeExtensionsCallable().call(request); + for (LbEdgeExtension element : response.getLbEdgeExtensionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkservices_v1_generated_DepService_ListLbEdgeExtensions_Paged_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/SyncListLbEdgeExtensions.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/SyncListLbEdgeExtensions.java new file mode 100644 index 000000000000..9192f5f408d7 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/SyncListLbEdgeExtensions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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_DepService_ListLbEdgeExtensions_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.ListLbEdgeExtensionsRequest; +import com.google.cloud.networkservices.v1.LocationName; + +public class SyncListLbEdgeExtensions { + + public static void main(String[] args) throws Exception { + syncListLbEdgeExtensions(); + } + + public static void syncListLbEdgeExtensions() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + ListLbEdgeExtensionsRequest request = + ListLbEdgeExtensionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (LbEdgeExtension element : depServiceClient.listLbEdgeExtensions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_DepService_ListLbEdgeExtensions_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/SyncListLbEdgeExtensionsLocationname.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/SyncListLbEdgeExtensionsLocationname.java new file mode 100644 index 000000000000..769de2eb8d21 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/SyncListLbEdgeExtensionsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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_DepService_ListLbEdgeExtensions_Locationname_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LocationName; + +public class SyncListLbEdgeExtensionsLocationname { + + public static void main(String[] args) throws Exception { + syncListLbEdgeExtensionsLocationname(); + } + + public static void syncListLbEdgeExtensionsLocationname() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (LbEdgeExtension element : depServiceClient.listLbEdgeExtensions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_DepService_ListLbEdgeExtensions_Locationname_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/SyncListLbEdgeExtensionsString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/SyncListLbEdgeExtensionsString.java new file mode 100644 index 000000000000..11806313975a --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/listlbedgeextensions/SyncListLbEdgeExtensionsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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_DepService_ListLbEdgeExtensions_String_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.LocationName; + +public class SyncListLbEdgeExtensionsString { + + public static void main(String[] args) throws Exception { + syncListLbEdgeExtensionsString(); + } + + public static void syncListLbEdgeExtensionsString() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (LbEdgeExtension element : depServiceClient.listLbEdgeExtensions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_DepService_ListLbEdgeExtensions_String_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/AsyncUpdateLbEdgeExtension.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/AsyncUpdateLbEdgeExtension.java new file mode 100644 index 000000000000..e9e9b15c5353 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/AsyncUpdateLbEdgeExtension.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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_DepService_UpdateLbEdgeExtension_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateLbEdgeExtension { + + public static void main(String[] args) throws Exception { + asyncUpdateLbEdgeExtension(); + } + + public static void asyncUpdateLbEdgeExtension() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + UpdateLbEdgeExtensionRequest request = + UpdateLbEdgeExtensionRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + depServiceClient.updateLbEdgeExtensionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkservices_v1_generated_DepService_UpdateLbEdgeExtension_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/AsyncUpdateLbEdgeExtensionLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/AsyncUpdateLbEdgeExtensionLRO.java new file mode 100644 index 000000000000..d658ac4b05cb --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/AsyncUpdateLbEdgeExtensionLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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_DepService_UpdateLbEdgeExtension_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.OperationMetadata; +import com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateLbEdgeExtensionLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateLbEdgeExtensionLRO(); + } + + public static void asyncUpdateLbEdgeExtensionLRO() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + UpdateLbEdgeExtensionRequest request = + UpdateLbEdgeExtensionRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + depServiceClient.updateLbEdgeExtensionOperationCallable().futureCall(request); + // Do something. + LbEdgeExtension response = future.get(); + } + } +} +// [END networkservices_v1_generated_DepService_UpdateLbEdgeExtension_LRO_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/SyncUpdateLbEdgeExtension.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/SyncUpdateLbEdgeExtension.java new file mode 100644 index 000000000000..4abc59534959 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/SyncUpdateLbEdgeExtension.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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_DepService_UpdateLbEdgeExtension_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.cloud.networkservices.v1.UpdateLbEdgeExtensionRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLbEdgeExtension { + + public static void main(String[] args) throws Exception { + syncUpdateLbEdgeExtension(); + } + + public static void syncUpdateLbEdgeExtension() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + UpdateLbEdgeExtensionRequest request = + UpdateLbEdgeExtensionRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setLbEdgeExtension(LbEdgeExtension.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + LbEdgeExtension response = depServiceClient.updateLbEdgeExtensionAsync(request).get(); + } + } +} +// [END networkservices_v1_generated_DepService_UpdateLbEdgeExtension_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/SyncUpdateLbEdgeExtensionLbedgeextensionFieldmask.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/SyncUpdateLbEdgeExtensionLbedgeextensionFieldmask.java new file mode 100644 index 000000000000..fcbe5ccf5f4d --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/depservice/updatelbedgeextension/SyncUpdateLbEdgeExtensionLbedgeextensionFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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_DepService_UpdateLbEdgeExtension_LbedgeextensionFieldmask_sync] +import com.google.cloud.networkservices.v1.DepServiceClient; +import com.google.cloud.networkservices.v1.LbEdgeExtension; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLbEdgeExtensionLbedgeextensionFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateLbEdgeExtensionLbedgeextensionFieldmask(); + } + + public static void syncUpdateLbEdgeExtensionLbedgeextensionFieldmask() 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 (DepServiceClient depServiceClient = DepServiceClient.create()) { + LbEdgeExtension lbEdgeExtension = LbEdgeExtension.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LbEdgeExtension response = + depServiceClient.updateLbEdgeExtensionAsync(lbEdgeExtension, updateMask).get(); + } + } +} +// [END networkservices_v1_generated_DepService_UpdateLbEdgeExtension_LbedgeextensionFieldmask_sync] diff --git a/java-notebooks/README.md b/java-notebooks/README.md index 681d88be6aa8..ea7b13e43253 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.75.0 + 1.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.75.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java b/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java index ddc18a93cb16..8485f424b066 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java +++ b/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java @@ -24,9 +24,6 @@ * API v1 service for Managed Notebooks. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/notebooks/v1/managed_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ManagedNotebookServiceGrpc { @@ -1154,8 +1151,8 @@ protected ManagedNotebookServiceBlockingV2Stub build( * */ public com.google.cloud.notebooks.v1.ListRuntimesResponse listRuntimes( - com.google.cloud.notebooks.v1.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.ListRuntimesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRuntimesMethod(), getCallOptions(), request); } @@ -1168,8 +1165,8 @@ public com.google.cloud.notebooks.v1.ListRuntimesResponse listRuntimes( * */ public com.google.cloud.notebooks.v1.Runtime getRuntime( - com.google.cloud.notebooks.v1.GetRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.GetRuntimeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRuntimeMethod(), getCallOptions(), request); } @@ -1181,8 +1178,8 @@ public com.google.cloud.notebooks.v1.Runtime getRuntime( * */ public com.google.longrunning.Operation createRuntime( - com.google.cloud.notebooks.v1.CreateRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.CreateRuntimeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRuntimeMethod(), getCallOptions(), request); } @@ -1194,8 +1191,8 @@ public com.google.longrunning.Operation createRuntime( * */ public com.google.longrunning.Operation updateRuntime( - com.google.cloud.notebooks.v1.UpdateRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.UpdateRuntimeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRuntimeMethod(), getCallOptions(), request); } @@ -1207,8 +1204,8 @@ public com.google.longrunning.Operation updateRuntime( * */ public com.google.longrunning.Operation deleteRuntime( - com.google.cloud.notebooks.v1.DeleteRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.DeleteRuntimeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRuntimeMethod(), getCallOptions(), request); } @@ -1224,8 +1221,8 @@ public com.google.longrunning.Operation deleteRuntime( * */ public com.google.longrunning.Operation startRuntime( - com.google.cloud.notebooks.v1.StartRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.StartRuntimeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartRuntimeMethod(), getCallOptions(), request); } @@ -1241,8 +1238,8 @@ public com.google.longrunning.Operation startRuntime( * */ public com.google.longrunning.Operation stopRuntime( - com.google.cloud.notebooks.v1.StopRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.StopRuntimeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopRuntimeMethod(), getCallOptions(), request); } @@ -1254,8 +1251,8 @@ public com.google.longrunning.Operation stopRuntime( * */ public com.google.longrunning.Operation switchRuntime( - com.google.cloud.notebooks.v1.SwitchRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.SwitchRuntimeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSwitchRuntimeMethod(), getCallOptions(), request); } @@ -1267,8 +1264,8 @@ public com.google.longrunning.Operation switchRuntime( * */ public com.google.longrunning.Operation resetRuntime( - com.google.cloud.notebooks.v1.ResetRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.ResetRuntimeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetRuntimeMethod(), getCallOptions(), request); } @@ -1280,8 +1277,9 @@ public com.google.longrunning.Operation resetRuntime( * */ public com.google.longrunning.Operation upgradeRuntime( - com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeRuntimeMethod(), getCallOptions(), request); } @@ -1293,8 +1291,9 @@ public com.google.longrunning.Operation upgradeRuntime( * */ public com.google.longrunning.Operation reportRuntimeEvent( - com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportRuntimeEventMethod(), getCallOptions(), request); } @@ -1308,8 +1307,9 @@ public com.google.longrunning.Operation reportRuntimeEvent( */ public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal( - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRefreshRuntimeTokenInternalMethod(), getCallOptions(), request); } @@ -1321,8 +1321,9 @@ public com.google.longrunning.Operation reportRuntimeEvent( * */ public com.google.longrunning.Operation diagnoseRuntime( - com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiagnoseRuntimeMethod(), getCallOptions(), request); } } diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java b/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java index 039948e14012..ac49e590aeab 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java +++ b/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java @@ -24,9 +24,6 @@ * API v1 service for Cloud AI Platform Notebooks. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/notebooks/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NotebookServiceGrpc { @@ -2758,8 +2755,8 @@ protected NotebookServiceBlockingV2Stub build( * */ public com.google.cloud.notebooks.v1.ListInstancesResponse listInstances( - com.google.cloud.notebooks.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.ListInstancesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -2771,8 +2768,8 @@ public com.google.cloud.notebooks.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.notebooks.v1.Instance getInstance( - com.google.cloud.notebooks.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -2784,8 +2781,9 @@ public com.google.cloud.notebooks.v1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.notebooks.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -2800,8 +2798,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation registerInstance( - com.google.cloud.notebooks.v1.RegisterInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.RegisterInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRegisterInstanceMethod(), getCallOptions(), request); } @@ -2813,8 +2812,9 @@ public com.google.longrunning.Operation registerInstance( * */ public com.google.longrunning.Operation setInstanceAccelerator( - com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetInstanceAcceleratorMethod(), getCallOptions(), request); } @@ -2826,8 +2826,9 @@ public com.google.longrunning.Operation setInstanceAccelerator( * */ public com.google.longrunning.Operation setInstanceMachineType( - com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetInstanceMachineTypeMethod(), getCallOptions(), request); } @@ -2839,8 +2840,9 @@ public com.google.longrunning.Operation setInstanceMachineType( * */ public com.google.longrunning.Operation updateInstanceConfig( - com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceConfigMethod(), getCallOptions(), request); } @@ -2852,8 +2854,9 @@ public com.google.longrunning.Operation updateInstanceConfig( * */ public com.google.longrunning.Operation updateShieldedInstanceConfig( - com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateShieldedInstanceConfigMethod(), getCallOptions(), request); } @@ -2865,8 +2868,9 @@ public com.google.longrunning.Operation updateShieldedInstanceConfig( * */ public com.google.longrunning.Operation setInstanceLabels( - com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetInstanceLabelsMethod(), getCallOptions(), request); } @@ -2879,8 +2883,9 @@ public com.google.longrunning.Operation setInstanceLabels( */ public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse updateInstanceMetadataItems( - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMetadataItemsMethod(), getCallOptions(), request); } @@ -2892,8 +2897,9 @@ public com.google.longrunning.Operation setInstanceLabels( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.notebooks.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -2905,8 +2911,8 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation startInstance( - com.google.cloud.notebooks.v1.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.StartInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartInstanceMethod(), getCallOptions(), request); } @@ -2918,8 +2924,8 @@ public com.google.longrunning.Operation startInstance( * */ public com.google.longrunning.Operation stopInstance( - com.google.cloud.notebooks.v1.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.StopInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopInstanceMethod(), getCallOptions(), request); } @@ -2931,8 +2937,8 @@ public com.google.longrunning.Operation stopInstance( * */ public com.google.longrunning.Operation resetInstance( - com.google.cloud.notebooks.v1.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.ResetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetInstanceMethod(), getCallOptions(), request); } @@ -2947,8 +2953,9 @@ public com.google.longrunning.Operation resetInstance( * */ public com.google.longrunning.Operation reportInstanceInfo( - com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportInstanceInfoMethod(), getCallOptions(), request); } @@ -2960,8 +2967,9 @@ public com.google.longrunning.Operation reportInstanceInfo( * */ public com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse isInstanceUpgradeable( - com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getIsInstanceUpgradeableMethod(), getCallOptions(), request); } @@ -2973,8 +2981,9 @@ public com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse isInstanceUpg * */ public com.google.cloud.notebooks.v1.GetInstanceHealthResponse getInstanceHealth( - com.google.cloud.notebooks.v1.GetInstanceHealthRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.GetInstanceHealthRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceHealthMethod(), getCallOptions(), request); } @@ -2986,8 +2995,9 @@ public com.google.cloud.notebooks.v1.GetInstanceHealthResponse getInstanceHealth * */ public com.google.longrunning.Operation upgradeInstance( - com.google.cloud.notebooks.v1.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.UpgradeInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } @@ -2999,8 +3009,9 @@ public com.google.longrunning.Operation upgradeInstance( * */ public com.google.longrunning.Operation rollbackInstance( - com.google.cloud.notebooks.v1.RollbackInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.RollbackInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackInstanceMethod(), getCallOptions(), request); } @@ -3012,8 +3023,9 @@ public com.google.longrunning.Operation rollbackInstance( * */ public com.google.longrunning.Operation diagnoseInstance( - com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiagnoseInstanceMethod(), getCallOptions(), request); } @@ -3026,8 +3038,9 @@ public com.google.longrunning.Operation diagnoseInstance( * */ public com.google.longrunning.Operation upgradeInstanceInternal( - com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeInstanceInternalMethod(), getCallOptions(), request); } @@ -3039,8 +3052,9 @@ public com.google.longrunning.Operation upgradeInstanceInternal( * */ public com.google.cloud.notebooks.v1.ListEnvironmentsResponse listEnvironments( - com.google.cloud.notebooks.v1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.ListEnvironmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } @@ -3052,8 +3066,9 @@ public com.google.cloud.notebooks.v1.ListEnvironmentsResponse listEnvironments( * */ public com.google.cloud.notebooks.v1.Environment getEnvironment( - com.google.cloud.notebooks.v1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.GetEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -3065,8 +3080,9 @@ public com.google.cloud.notebooks.v1.Environment getEnvironment( * */ public com.google.longrunning.Operation createEnvironment( - com.google.cloud.notebooks.v1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.CreateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); } @@ -3078,8 +3094,9 @@ public com.google.longrunning.Operation createEnvironment( * */ public com.google.longrunning.Operation deleteEnvironment( - com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); } @@ -3091,8 +3108,8 @@ public com.google.longrunning.Operation deleteEnvironment( * */ public com.google.cloud.notebooks.v1.ListSchedulesResponse listSchedules( - com.google.cloud.notebooks.v1.ListSchedulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.ListSchedulesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchedulesMethod(), getCallOptions(), request); } @@ -3104,8 +3121,8 @@ public com.google.cloud.notebooks.v1.ListSchedulesResponse listSchedules( * */ public com.google.cloud.notebooks.v1.Schedule getSchedule( - com.google.cloud.notebooks.v1.GetScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.GetScheduleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetScheduleMethod(), getCallOptions(), request); } @@ -3117,8 +3134,9 @@ public com.google.cloud.notebooks.v1.Schedule getSchedule( * */ public com.google.longrunning.Operation deleteSchedule( - com.google.cloud.notebooks.v1.DeleteScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.DeleteScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteScheduleMethod(), getCallOptions(), request); } @@ -3130,8 +3148,9 @@ public com.google.longrunning.Operation deleteSchedule( * */ public com.google.longrunning.Operation createSchedule( - com.google.cloud.notebooks.v1.CreateScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.CreateScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateScheduleMethod(), getCallOptions(), request); } @@ -3143,8 +3162,9 @@ public com.google.longrunning.Operation createSchedule( * */ public com.google.longrunning.Operation triggerSchedule( - com.google.cloud.notebooks.v1.TriggerScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.TriggerScheduleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTriggerScheduleMethod(), getCallOptions(), request); } @@ -3156,8 +3176,9 @@ public com.google.longrunning.Operation triggerSchedule( * */ public com.google.cloud.notebooks.v1.ListExecutionsResponse listExecutions( - com.google.cloud.notebooks.v1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.ListExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExecutionsMethod(), getCallOptions(), request); } @@ -3169,8 +3190,8 @@ public com.google.cloud.notebooks.v1.ListExecutionsResponse listExecutions( * */ public com.google.cloud.notebooks.v1.Execution getExecution( - com.google.cloud.notebooks.v1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.GetExecutionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExecutionMethod(), getCallOptions(), request); } @@ -3182,8 +3203,9 @@ public com.google.cloud.notebooks.v1.Execution getExecution( * */ public com.google.longrunning.Operation deleteExecution( - com.google.cloud.notebooks.v1.DeleteExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.DeleteExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); } @@ -3195,8 +3217,9 @@ public com.google.longrunning.Operation deleteExecution( * */ public com.google.longrunning.Operation createExecution( - com.google.cloud.notebooks.v1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1.CreateExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExecutionMethod(), getCallOptions(), request); } } diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java index 5e940a9be2d1..165dd8dffa60 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java +++ b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java @@ -24,9 +24,6 @@ * API v1beta1 service for Cloud AI Platform Notebooks. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/notebooks/v1beta1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NotebookServiceGrpc { @@ -1654,8 +1651,9 @@ protected NotebookServiceBlockingV2Stub build( * */ public com.google.cloud.notebooks.v1beta1.ListInstancesResponse listInstances( - com.google.cloud.notebooks.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -1667,8 +1665,9 @@ public com.google.cloud.notebooks.v1beta1.ListInstancesResponse listInstances( * */ public com.google.cloud.notebooks.v1beta1.Instance getInstance( - com.google.cloud.notebooks.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -1680,8 +1679,9 @@ public com.google.cloud.notebooks.v1beta1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -1696,8 +1696,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation registerInstance( - com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRegisterInstanceMethod(), getCallOptions(), request); } @@ -1709,8 +1710,9 @@ public com.google.longrunning.Operation registerInstance( * */ public com.google.longrunning.Operation setInstanceAccelerator( - com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetInstanceAcceleratorMethod(), getCallOptions(), request); } @@ -1722,8 +1724,9 @@ public com.google.longrunning.Operation setInstanceAccelerator( * */ public com.google.longrunning.Operation setInstanceMachineType( - com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetInstanceMachineTypeMethod(), getCallOptions(), request); } @@ -1735,8 +1738,9 @@ public com.google.longrunning.Operation setInstanceMachineType( * */ public com.google.longrunning.Operation setInstanceLabels( - com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetInstanceLabelsMethod(), getCallOptions(), request); } @@ -1748,8 +1752,9 @@ public com.google.longrunning.Operation setInstanceLabels( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -1761,8 +1766,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation startInstance( - com.google.cloud.notebooks.v1beta1.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.StartInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartInstanceMethod(), getCallOptions(), request); } @@ -1774,8 +1780,9 @@ public com.google.longrunning.Operation startInstance( * */ public com.google.longrunning.Operation stopInstance( - com.google.cloud.notebooks.v1beta1.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.StopInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopInstanceMethod(), getCallOptions(), request); } @@ -1787,8 +1794,9 @@ public com.google.longrunning.Operation stopInstance( * */ public com.google.longrunning.Operation resetInstance( - com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetInstanceMethod(), getCallOptions(), request); } @@ -1803,8 +1811,9 @@ public com.google.longrunning.Operation resetInstance( * */ public com.google.longrunning.Operation reportInstanceInfo( - com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportInstanceInfoMethod(), getCallOptions(), request); } @@ -1818,8 +1827,9 @@ public com.google.longrunning.Operation reportInstanceInfo( */ @java.lang.Deprecated public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse isInstanceUpgradeable( - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getIsInstanceUpgradeableMethod(), getCallOptions(), request); } @@ -1833,8 +1843,9 @@ public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse isInstan */ @java.lang.Deprecated public com.google.longrunning.Operation upgradeInstance( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } @@ -1849,8 +1860,9 @@ public com.google.longrunning.Operation upgradeInstance( */ @java.lang.Deprecated public com.google.longrunning.Operation upgradeInstanceInternal( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeInstanceInternalMethod(), getCallOptions(), request); } @@ -1862,8 +1874,9 @@ public com.google.longrunning.Operation upgradeInstanceInternal( * */ public com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse listEnvironments( - com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } @@ -1875,8 +1888,9 @@ public com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse listEnvironme * */ public com.google.cloud.notebooks.v1beta1.Environment getEnvironment( - com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -1888,8 +1902,9 @@ public com.google.cloud.notebooks.v1beta1.Environment getEnvironment( * */ public com.google.longrunning.Operation createEnvironment( - com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); } @@ -1901,8 +1916,9 @@ public com.google.longrunning.Operation createEnvironment( * */ public com.google.longrunning.Operation deleteEnvironment( - com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); } } diff --git a/java-notebooks/grpc-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceGrpc.java b/java-notebooks/grpc-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceGrpc.java index fa028c363fc9..70fc37a7ef7d 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceGrpc.java +++ b/java-notebooks/grpc-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceGrpc.java @@ -24,9 +24,6 @@ * API v2 service for Workbench Notebooks Instances. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/notebooks/v2/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NotebookServiceGrpc { @@ -1058,8 +1055,8 @@ protected NotebookServiceBlockingV2Stub build( * */ public com.google.cloud.notebooks.v2.ListInstancesResponse listInstances( - com.google.cloud.notebooks.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.ListInstancesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -1071,8 +1068,8 @@ public com.google.cloud.notebooks.v2.ListInstancesResponse listInstances( * */ public com.google.cloud.notebooks.v2.Instance getInstance( - com.google.cloud.notebooks.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -1084,8 +1081,9 @@ public com.google.cloud.notebooks.v2.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.notebooks.v2.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -1097,8 +1095,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.notebooks.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -1110,8 +1109,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.notebooks.v2.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -1123,8 +1123,8 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation startInstance( - com.google.cloud.notebooks.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.StartInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartInstanceMethod(), getCallOptions(), request); } @@ -1136,8 +1136,8 @@ public com.google.longrunning.Operation startInstance( * */ public com.google.longrunning.Operation stopInstance( - com.google.cloud.notebooks.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.StopInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopInstanceMethod(), getCallOptions(), request); } @@ -1149,8 +1149,8 @@ public com.google.longrunning.Operation stopInstance( * */ public com.google.longrunning.Operation resetInstance( - com.google.cloud.notebooks.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.ResetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetInstanceMethod(), getCallOptions(), request); } @@ -1163,8 +1163,9 @@ public com.google.longrunning.Operation resetInstance( */ public com.google.cloud.notebooks.v2.CheckInstanceUpgradabilityResponse checkInstanceUpgradability( - com.google.cloud.notebooks.v2.CheckInstanceUpgradabilityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.CheckInstanceUpgradabilityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckInstanceUpgradabilityMethod(), getCallOptions(), request); } @@ -1176,8 +1177,9 @@ public com.google.longrunning.Operation resetInstance( * */ public com.google.longrunning.Operation upgradeInstance( - com.google.cloud.notebooks.v2.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.UpgradeInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } @@ -1189,8 +1191,9 @@ public com.google.longrunning.Operation upgradeInstance( * */ public com.google.longrunning.Operation rollbackInstance( - com.google.cloud.notebooks.v2.RollbackInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.RollbackInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackInstanceMethod(), getCallOptions(), request); } @@ -1202,8 +1205,9 @@ public com.google.longrunning.Operation rollbackInstance( * */ public com.google.longrunning.Operation diagnoseInstance( - com.google.cloud.notebooks.v2.DiagnoseInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.notebooks.v2.DiagnoseInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiagnoseInstanceMethod(), getCallOptions(), request); } } diff --git a/java-optimization/README.md b/java-optimization/README.md index e619f46be2ed..c945032f7ca7 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.75.0 + 1.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.75.0' +implementation 'com.google.cloud:google-cloud-optimization:1.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java b/java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java index a6f4bfcd2169..abfd9787984a 100644 --- a/java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java +++ b/java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java @@ -38,9 +38,6 @@ * * at least one of latitude and longitude must be non-zero. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/optimization/v1/fleet_routing.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FleetRoutingGrpc { @@ -435,8 +432,9 @@ protected FleetRoutingBlockingV2Stub build( * */ public com.google.cloud.optimization.v1.OptimizeToursResponse optimizeTours( - com.google.cloud.optimization.v1.OptimizeToursRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.optimization.v1.OptimizeToursRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getOptimizeToursMethod(), getCallOptions(), request); } @@ -456,8 +454,9 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse optimizeTours( * */ public com.google.longrunning.Operation batchOptimizeTours( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchOptimizeToursMethod(), getCallOptions(), request); } } diff --git a/java-oracledatabase/README.md b/java-oracledatabase/README.md index 74978f43cc1e..fe585699a808 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-oracledatabase - 0.26.0 + 0.27.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.26.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.27.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.26.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.27.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.27.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java index 6c45fbdac153..44561f568ffe 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java @@ -37,6 +37,7 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.List; @@ -284,6 +285,7 @@ *

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

                                              *
                                                *
                                              • listDbNodes(CloudVmClusterName parent) + *

                                              • listDbNodes(ExadbVmClusterName parent) *

                                              • listDbNodes(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.

                                              @@ -314,6 +316,26 @@ * * * + *

                                              ListMinorVersions + *

                                              Lists all the valid minor versions for the given project, location, gi version and shape family. + * + *

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

                                              + *
                                                + *
                                              • listMinorVersions(ListMinorVersionsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listMinorVersions(GiVersionName parent) + *

                                              • listMinorVersions(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.

                                              + *
                                                + *
                                              • listMinorVersionsPagedCallable() + *

                                              • listMinorVersionsCallable() + *

                                              + * + * + * *

                                              ListDbSystemShapes *

                                              Lists the database system shapes available for the project and location. * @@ -393,6 +415,25 @@ * * * + *

                                              UpdateAutonomousDatabase + *

                                              Updates the parameters of a single Autonomous Database. + * + *

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

                                              + *
                                                + *
                                              • updateAutonomousDatabaseAsync(UpdateAutonomousDatabaseRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • updateAutonomousDatabaseAsync(AutonomousDatabase autonomousDatabase, 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.

                                              + *
                                                + *
                                              • updateAutonomousDatabaseOperationCallable() + *

                                              • updateAutonomousDatabaseCallable() + *

                                              + * + * + * *

                                              DeleteAutonomousDatabase *

                                              Deletes a single Autonomous Database. * @@ -572,249 +613,867 @@ * * * - *

                                              ListLocations - *

                                              Lists information about the supported locations for this service. + *

                                              SwitchoverAutonomousDatabase + *

                                              Initiates a switchover of specified autonomous database to the associated peer database. * *

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

                                              *
                                                - *
                                              • listLocations(ListLocationsRequest request) + *

                                              • switchoverAutonomousDatabaseAsync(SwitchoverAutonomousDatabaseRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase) + *

                                              • switchoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase) + *

                                              • switchoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase) + *

                                              • switchoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase) *

                                              *

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

                                              *
                                                - *
                                              • listLocationsPagedCallable() - *

                                              • listLocationsCallable() + *

                                              • switchoverAutonomousDatabaseOperationCallable() + *

                                              • switchoverAutonomousDatabaseCallable() *

                                              * * * - *

                                              GetLocation - *

                                              Gets information about a location. + *

                                              FailoverAutonomousDatabase + *

                                              Initiates a failover to target autonomous database from the associated primary database. * *

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

                                              *
                                                - *
                                              • getLocation(GetLocationRequest request) + *

                                              • failoverAutonomousDatabaseAsync(FailoverAutonomousDatabaseRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase) + *

                                              • failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase) + *

                                              • failoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase) + *

                                              • failoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase) *

                                              *

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

                                              *
                                                - *
                                              • getLocationCallable() + *

                                              • failoverAutonomousDatabaseOperationCallable() + *

                                              • failoverAutonomousDatabaseCallable() *

                                              * * - * - * - *

                                              See the individual methods for example code. - * - *

                                              Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

                                              This class can be customized by passing in a custom instance of OracleDatabaseSettings to - * create(). For example: - * - *

                                              To customize credentials: - * - *

                                              {@code
                                              - * // This snippet has been automatically generated and should be regarded as a code template only.
                                              - * // It will require modifications to work:
                                              - * // - It may require correct/in-range values for request initialization.
                                              - * // - It may require specifying regional endpoints when creating the service client as shown in
                                              - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                              - * OracleDatabaseSettings oracleDatabaseSettings =
                                              - *     OracleDatabaseSettings.newBuilder()
                                              - *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                              - *         .build();
                                              - * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
                                              - * }
                                              - * - *

                                              To customize the endpoint: - * - *

                                              {@code
                                              - * // This snippet has been automatically generated and should be regarded as a code template only.
                                              - * // It will require modifications to work:
                                              - * // - It may require correct/in-range values for request initialization.
                                              - * // - It may require specifying regional endpoints when creating the service client as shown in
                                              - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                              - * OracleDatabaseSettings oracleDatabaseSettings =
                                              - *     OracleDatabaseSettings.newBuilder().setEndpoint(myEndpoint).build();
                                              - * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
                                              - * }
                                              - * - *

                                              To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

                                              {@code
                                              - * // This snippet has been automatically generated and should be regarded as a code template only.
                                              - * // It will require modifications to work:
                                              - * // - It may require correct/in-range values for request initialization.
                                              - * // - It may require specifying regional endpoints when creating the service client as shown in
                                              - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                              - * OracleDatabaseSettings oracleDatabaseSettings =
                                              - *     OracleDatabaseSettings.newHttpJsonBuilder().build();
                                              - * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
                                              - * }
                                              - * - *

                                              Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class OracleDatabaseClient implements BackgroundResource { - private final OracleDatabaseSettings settings; - private final OracleDatabaseStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of OracleDatabaseClient with default settings. */ - public static final OracleDatabaseClient create() throws IOException { - return create(OracleDatabaseSettings.newBuilder().build()); - } - - /** - * Constructs an instance of OracleDatabaseClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final OracleDatabaseClient create(OracleDatabaseSettings settings) - throws IOException { - return new OracleDatabaseClient(settings); - } - - /** - * Constructs an instance of OracleDatabaseClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(OracleDatabaseSettings). - */ - public static final OracleDatabaseClient create(OracleDatabaseStub stub) { - return new OracleDatabaseClient(stub); - } - - /** - * Constructs an instance of OracleDatabaseClient, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected OracleDatabaseClient(OracleDatabaseSettings settings) throws IOException { - this.settings = settings; - this.stub = ((OracleDatabaseStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected OracleDatabaseClient(OracleDatabaseStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final OracleDatabaseSettings getSettings() { - return settings; - } - - public OracleDatabaseStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Exadata Infrastructures 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              -   *   for (CloudExadataInfrastructure element :
                                              -   *       oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
                                              -   *     // doThingsWith(element);
                                              -   *   }
                                              -   * }
                                              -   * }
                                              - * - * @param parent Required. The parent value for CloudExadataInfrastructure in the following - * format: projects/{project}/locations/{location}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures( - LocationName parent) { - ListCloudExadataInfrastructuresRequest request = - ListCloudExadataInfrastructuresRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCloudExadataInfrastructures(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Exadata Infrastructures 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              -   *   for (CloudExadataInfrastructure element :
                                              -   *       oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
                                              -   *     // doThingsWith(element);
                                              -   *   }
                                              -   * }
                                              -   * }
                                              - * - * @param parent Required. The parent value for CloudExadataInfrastructure in the following - * format: projects/{project}/locations/{location}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures( - String parent) { - ListCloudExadataInfrastructuresRequest request = - ListCloudExadataInfrastructuresRequest.newBuilder().setParent(parent).build(); - return listCloudExadataInfrastructures(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Exadata Infrastructures 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   ListCloudExadataInfrastructuresRequest request =
                                              -   *       ListCloudExadataInfrastructuresRequest.newBuilder()
                                              -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              -   *           .setPageSize(883849137)
                                              -   *           .setPageToken("pageToken873572522")
                                              -   *           .build();
                                              + *    
                                              + *      

                                              ListOdbNetworks + *

                                              Lists the ODB Networks in a given project and location. + * + *

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

                                              + *
                                                + *
                                              • listOdbNetworks(ListOdbNetworksRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listOdbNetworks(LocationName parent) + *

                                              • listOdbNetworks(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.

                                              + *
                                                + *
                                              • listOdbNetworksPagedCallable() + *

                                              • listOdbNetworksCallable() + *

                                              + * + * + * + *

                                              GetOdbNetwork + *

                                              Gets details of a single ODB Network. + * + *

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

                                              + *
                                                + *
                                              • getOdbNetwork(GetOdbNetworkRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • getOdbNetwork(OdbNetworkName name) + *

                                              • getOdbNetwork(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.

                                              + *
                                                + *
                                              • getOdbNetworkCallable() + *

                                              + * + * + * + *

                                              CreateOdbNetwork + *

                                              Creates a new ODB Network in a given project and location. + * + *

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

                                              + *
                                                + *
                                              • createOdbNetworkAsync(CreateOdbNetworkRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • createOdbNetworkAsync(LocationName parent, OdbNetwork odbNetwork, String odbNetworkId) + *

                                              • createOdbNetworkAsync(String parent, OdbNetwork odbNetwork, String odbNetworkId) + *

                                              + *

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

                                              + *
                                                + *
                                              • createOdbNetworkOperationCallable() + *

                                              • createOdbNetworkCallable() + *

                                              + * + * + * + *

                                              DeleteOdbNetwork + *

                                              Deletes a single ODB Network. + * + *

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

                                              + *
                                                + *
                                              • deleteOdbNetworkAsync(DeleteOdbNetworkRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • deleteOdbNetworkAsync(OdbNetworkName name) + *

                                              • deleteOdbNetworkAsync(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.

                                              + *
                                                + *
                                              • deleteOdbNetworkOperationCallable() + *

                                              • deleteOdbNetworkCallable() + *

                                              + * + * + * + *

                                              ListOdbSubnets + *

                                              Lists all the ODB Subnets in a given ODB Network. + * + *

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

                                              + *
                                                + *
                                              • listOdbSubnets(ListOdbSubnetsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listOdbSubnets(OdbNetworkName parent) + *

                                              • listOdbSubnets(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.

                                              + *
                                                + *
                                              • listOdbSubnetsPagedCallable() + *

                                              • listOdbSubnetsCallable() + *

                                              + * + * + * + *

                                              GetOdbSubnet + *

                                              Gets details of a single ODB Subnet. + * + *

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

                                              + *
                                                + *
                                              • getOdbSubnet(GetOdbSubnetRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • getOdbSubnet(OdbSubnetName name) + *

                                              • getOdbSubnet(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.

                                              + *
                                                + *
                                              • getOdbSubnetCallable() + *

                                              + * + * + * + *

                                              CreateOdbSubnet + *

                                              Creates a new ODB Subnet in a given ODB Network. + * + *

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

                                              + *
                                                + *
                                              • createOdbSubnetAsync(CreateOdbSubnetRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • createOdbSubnetAsync(OdbNetworkName parent, OdbSubnet odbSubnet, String odbSubnetId) + *

                                              • createOdbSubnetAsync(String parent, OdbSubnet odbSubnet, String odbSubnetId) + *

                                              + *

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

                                              + *
                                                + *
                                              • createOdbSubnetOperationCallable() + *

                                              • createOdbSubnetCallable() + *

                                              + * + * + * + *

                                              DeleteOdbSubnet + *

                                              Deletes a single ODB Subnet. + * + *

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

                                              + *
                                                + *
                                              • deleteOdbSubnetAsync(DeleteOdbSubnetRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • deleteOdbSubnetAsync(OdbSubnetName name) + *

                                              • deleteOdbSubnetAsync(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.

                                              + *
                                                + *
                                              • deleteOdbSubnetOperationCallable() + *

                                              • deleteOdbSubnetCallable() + *

                                              + * + * + * + *

                                              ListExadbVmClusters + *

                                              Lists all the Exadb (Exascale) VM Clusters for the given project and location. + * + *

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

                                              + *
                                                + *
                                              • listExadbVmClusters(ListExadbVmClustersRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listExadbVmClusters(LocationName parent) + *

                                              • listExadbVmClusters(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.

                                              + *
                                                + *
                                              • listExadbVmClustersPagedCallable() + *

                                              • listExadbVmClustersCallable() + *

                                              + * + * + * + *

                                              GetExadbVmCluster + *

                                              Gets details of a single Exadb (Exascale) VM Cluster. + * + *

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

                                              + *
                                                + *
                                              • getExadbVmCluster(GetExadbVmClusterRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • getExadbVmCluster(ExadbVmClusterName name) + *

                                              • getExadbVmCluster(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.

                                              + *
                                                + *
                                              • getExadbVmClusterCallable() + *

                                              + * + * + * + *

                                              CreateExadbVmCluster + *

                                              Creates a new Exadb (Exascale) VM Cluster resource. + * + *

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

                                              + *
                                                + *
                                              • createExadbVmClusterAsync(CreateExadbVmClusterRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • createExadbVmClusterAsync(LocationName parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId) + *

                                              • createExadbVmClusterAsync(String parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId) + *

                                              + *

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

                                              + *
                                                + *
                                              • createExadbVmClusterOperationCallable() + *

                                              • createExadbVmClusterCallable() + *

                                              + * + * + * + *

                                              DeleteExadbVmCluster + *

                                              Deletes a single Exadb (Exascale) VM Cluster. + * + *

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

                                              + *
                                                + *
                                              • deleteExadbVmClusterAsync(DeleteExadbVmClusterRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • deleteExadbVmClusterAsync(ExadbVmClusterName name) + *

                                              • deleteExadbVmClusterAsync(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.

                                              + *
                                                + *
                                              • deleteExadbVmClusterOperationCallable() + *

                                              • deleteExadbVmClusterCallable() + *

                                              + * + * + * + *

                                              UpdateExadbVmCluster + *

                                              Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count. + * + *

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

                                              + *
                                                + *
                                              • updateExadbVmClusterAsync(UpdateExadbVmClusterRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • updateExadbVmClusterAsync(ExadbVmCluster exadbVmCluster, 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.

                                              + *
                                                + *
                                              • updateExadbVmClusterOperationCallable() + *

                                              • updateExadbVmClusterCallable() + *

                                              + * + * + * + *

                                              RemoveVirtualMachineExadbVmCluster + *

                                              Removes virtual machines from an existing exadb vm cluster. + * + *

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

                                              + *
                                                + *
                                              • removeVirtualMachineExadbVmClusterAsync(RemoveVirtualMachineExadbVmClusterRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • removeVirtualMachineExadbVmClusterAsync(ExadbVmClusterName name, List<String> hostnames) + *

                                              • removeVirtualMachineExadbVmClusterAsync(String name, List<String> hostnames) + *

                                              + *

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

                                              + *
                                                + *
                                              • removeVirtualMachineExadbVmClusterOperationCallable() + *

                                              • removeVirtualMachineExadbVmClusterCallable() + *

                                              + * + * + * + *

                                              ListExascaleDbStorageVaults + *

                                              Lists all the ExascaleDB Storage Vaults for the given project and location. + * + *

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

                                              + *
                                                + *
                                              • listExascaleDbStorageVaults(ListExascaleDbStorageVaultsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listExascaleDbStorageVaults(LocationName parent) + *

                                              • listExascaleDbStorageVaults(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.

                                              + *
                                                + *
                                              • listExascaleDbStorageVaultsPagedCallable() + *

                                              • listExascaleDbStorageVaultsCallable() + *

                                              + * + * + * + *

                                              GetExascaleDbStorageVault + *

                                              Gets details of a single ExascaleDB Storage Vault. + * + *

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

                                              + *
                                                + *
                                              • getExascaleDbStorageVault(GetExascaleDbStorageVaultRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • getExascaleDbStorageVault(ExascaleDbStorageVaultName name) + *

                                              • getExascaleDbStorageVault(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.

                                              + *
                                                + *
                                              • getExascaleDbStorageVaultCallable() + *

                                              + * + * + * + *

                                              CreateExascaleDbStorageVault + *

                                              Creates a new ExascaleDB Storage Vault resource. + * + *

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

                                              + *
                                                + *
                                              • createExascaleDbStorageVaultAsync(CreateExascaleDbStorageVaultRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • createExascaleDbStorageVaultAsync(LocationName parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId) + *

                                              • createExascaleDbStorageVaultAsync(String parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId) + *

                                              + *

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

                                              + *
                                                + *
                                              • createExascaleDbStorageVaultOperationCallable() + *

                                              • createExascaleDbStorageVaultCallable() + *

                                              + * + * + * + *

                                              DeleteExascaleDbStorageVault + *

                                              Deletes a single ExascaleDB Storage Vault. + * + *

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

                                              + *
                                                + *
                                              • deleteExascaleDbStorageVaultAsync(DeleteExascaleDbStorageVaultRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • deleteExascaleDbStorageVaultAsync(ExascaleDbStorageVaultName name) + *

                                              • deleteExascaleDbStorageVaultAsync(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.

                                              + *
                                                + *
                                              • deleteExascaleDbStorageVaultOperationCallable() + *

                                              • deleteExascaleDbStorageVaultCallable() + *

                                              + * + * + * + *

                                              ListDbSystemInitialStorageSizes + *

                                              Lists all the DbSystemInitialStorageSizes for the given project and location. + * + *

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

                                              + *
                                                + *
                                              • listDbSystemInitialStorageSizes(ListDbSystemInitialStorageSizesRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listDbSystemInitialStorageSizes(LocationName parent) + *

                                              • listDbSystemInitialStorageSizes(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.

                                              + *
                                                + *
                                              • listDbSystemInitialStorageSizesPagedCallable() + *

                                              • listDbSystemInitialStorageSizesCallable() + *

                                              + * + * + * + *

                                              ListDatabases + *

                                              Lists all the Databases for the given project, location and DbSystem. + * + *

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

                                              + *
                                                + *
                                              • listDatabases(ListDatabasesRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listDatabases(LocationName parent) + *

                                              • listDatabases(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.

                                              + *
                                                + *
                                              • listDatabasesPagedCallable() + *

                                              • listDatabasesCallable() + *

                                              + * + * + * + *

                                              GetDatabase + *

                                              Gets details of a single Database. + * + *

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

                                              + *
                                                + *
                                              • getDatabase(GetDatabaseRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • getDatabase(DatabaseName name) + *

                                              • getDatabase(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.

                                              + *
                                                + *
                                              • getDatabaseCallable() + *

                                              + * + * + * + *

                                              ListPluggableDatabases + *

                                              Lists all the PluggableDatabases for the given project, location and Container Database. + * + *

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

                                              + *
                                                + *
                                              • listPluggableDatabases(ListPluggableDatabasesRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listPluggableDatabases(LocationName parent) + *

                                              • listPluggableDatabases(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.

                                              + *
                                                + *
                                              • listPluggableDatabasesPagedCallable() + *

                                              • listPluggableDatabasesCallable() + *

                                              + * + * + * + *

                                              GetPluggableDatabase + *

                                              Gets details of a single PluggableDatabase. + * + *

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

                                              + *
                                                + *
                                              • getPluggableDatabase(GetPluggableDatabaseRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • getPluggableDatabase(PluggableDatabaseName name) + *

                                              • getPluggableDatabase(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.

                                              + *
                                                + *
                                              • getPluggableDatabaseCallable() + *

                                              + * + * + * + *

                                              ListDbSystems + *

                                              Lists all the DbSystems for the given project and location. + * + *

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

                                              + *
                                                + *
                                              • listDbSystems(ListDbSystemsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listDbSystems(LocationName parent) + *

                                              • listDbSystems(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.

                                              + *
                                                + *
                                              • listDbSystemsPagedCallable() + *

                                              • listDbSystemsCallable() + *

                                              + * + * + * + *

                                              GetDbSystem + *

                                              Gets details of a single DbSystem. + * + *

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

                                              + *
                                                + *
                                              • getDbSystem(GetDbSystemRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • getDbSystem(DbSystemName name) + *

                                              • getDbSystem(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.

                                              + *
                                                + *
                                              • getDbSystemCallable() + *

                                              + * + * + * + *

                                              CreateDbSystem + *

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

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

                                              + *
                                                + *
                                              • createDbSystemAsync(CreateDbSystemRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • createDbSystemAsync(LocationName parent, DbSystem dbSystem, String dbSystemId) + *

                                              • createDbSystemAsync(String parent, DbSystem dbSystem, String dbSystemId) + *

                                              + *

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

                                              + *
                                                + *
                                              • createDbSystemOperationCallable() + *

                                              • createDbSystemCallable() + *

                                              + * + * + * + *

                                              DeleteDbSystem + *

                                              Deletes a single DbSystem. + * + *

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

                                              + *
                                                + *
                                              • deleteDbSystemAsync(DeleteDbSystemRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • deleteDbSystemAsync(DbSystemName name) + *

                                              • deleteDbSystemAsync(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.

                                              + *
                                                + *
                                              • deleteDbSystemOperationCallable() + *

                                              • deleteDbSystemCallable() + *

                                              + * + * + * + *

                                              ListDbVersions + *

                                              List DbVersions for the given project and location. + * + *

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

                                              + *
                                                + *
                                              • listDbVersions(ListDbVersionsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listDbVersions(LocationName parent) + *

                                              • listDbVersions(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.

                                              + *
                                                + *
                                              • listDbVersionsPagedCallable() + *

                                              • listDbVersionsCallable() + *

                                              + * + * + * + *

                                              ListDatabaseCharacterSets + *

                                              List DatabaseCharacterSets for the given project and location. + * + *

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

                                              + *
                                                + *
                                              • listDatabaseCharacterSets(ListDatabaseCharacterSetsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listDatabaseCharacterSets(LocationName parent) + *

                                              • listDatabaseCharacterSets(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.

                                              + *
                                                + *
                                              • listDatabaseCharacterSetsPagedCallable() + *

                                              • listDatabaseCharacterSetsCallable() + *

                                              + * + * + * + *

                                              ListLocations + *

                                              Lists information about the supported locations for this service. + * + *

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

                                              + *
                                                + *
                                              • listLocations(ListLocationsRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • listLocationsPagedCallable() + *

                                              • listLocationsCallable() + *

                                              + * + * + * + *

                                              GetLocation + *

                                              Gets information about a location. + * + *

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

                                              + *
                                                + *
                                              • getLocation(GetLocationRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • getLocationCallable() + *

                                              + * + * + * + * + *

                                              See the individual methods for example code. + * + *

                                              Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                              This class can be customized by passing in a custom instance of OracleDatabaseSettings to + * create(). For example: + * + *

                                              To customize credentials: + * + *

                                              {@code
                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                              + * // It will require modifications to work:
                                              + * // - It may require correct/in-range values for request initialization.
                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                              + * OracleDatabaseSettings oracleDatabaseSettings =
                                              + *     OracleDatabaseSettings.newBuilder()
                                              + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                              + *         .build();
                                              + * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
                                              + * }
                                              + * + *

                                              To customize the endpoint: + * + *

                                              {@code
                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                              + * // It will require modifications to work:
                                              + * // - It may require correct/in-range values for request initialization.
                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                              + * OracleDatabaseSettings oracleDatabaseSettings =
                                              + *     OracleDatabaseSettings.newBuilder().setEndpoint(myEndpoint).build();
                                              + * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
                                              + * }
                                              + * + *

                                              To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                                              {@code
                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                              + * // It will require modifications to work:
                                              + * // - It may require correct/in-range values for request initialization.
                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                              + * OracleDatabaseSettings oracleDatabaseSettings =
                                              + *     OracleDatabaseSettings.newHttpJsonBuilder().build();
                                              + * OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create(oracleDatabaseSettings);
                                              + * }
                                              + * + *

                                              Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class OracleDatabaseClient implements BackgroundResource { + private final OracleDatabaseSettings settings; + private final OracleDatabaseStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of OracleDatabaseClient with default settings. */ + public static final OracleDatabaseClient create() throws IOException { + return create(OracleDatabaseSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OracleDatabaseClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final OracleDatabaseClient create(OracleDatabaseSettings settings) + throws IOException { + return new OracleDatabaseClient(settings); + } + + /** + * Constructs an instance of OracleDatabaseClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(OracleDatabaseSettings). + */ + public static final OracleDatabaseClient create(OracleDatabaseStub stub) { + return new OracleDatabaseClient(stub); + } + + /** + * Constructs an instance of OracleDatabaseClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected OracleDatabaseClient(OracleDatabaseSettings settings) throws IOException { + this.settings = settings; + this.stub = ((OracleDatabaseStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected OracleDatabaseClient(OracleDatabaseStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final OracleDatabaseSettings getSettings() { + return settings; + } + + public OracleDatabaseStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (CloudExadataInfrastructure element :
                                              +   *       oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures( + LocationName parent) { + ListCloudExadataInfrastructuresRequest request = + ListCloudExadataInfrastructuresRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCloudExadataInfrastructures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (CloudExadataInfrastructure element :
                                              +   *       oracleDatabaseClient.listCloudExadataInfrastructures(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures( + String parent) { + ListCloudExadataInfrastructuresRequest request = + ListCloudExadataInfrastructuresRequest.newBuilder().setParent(parent).build(); + return listCloudExadataInfrastructures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListCloudExadataInfrastructuresRequest request =
                                              +   *       ListCloudExadataInfrastructuresRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                                  *   for (CloudExadataInfrastructure element :
                                                  *       oracleDatabaseClient.listCloudExadataInfrastructures(request).iterateAll()) {
                                                  *     // doThingsWith(element);
                                              @@ -825,14 +1484,6219 @@ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfras
                                                  * @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 ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(
                                              -      ListCloudExadataInfrastructuresRequest request) {
                                              -    return listCloudExadataInfrastructuresPagedCallable().call(request);
                                              +  public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures(
                                              +      ListCloudExadataInfrastructuresRequest request) {
                                              +    return listCloudExadataInfrastructuresPagedCallable().call(request);
                                              +  }
                                              +
                                              +  // AUTO-GENERATED DOCUMENTATION AND METHOD.
                                              +  /**
                                              +   * Lists Exadata Infrastructures 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListCloudExadataInfrastructuresRequest request =
                                              +   *       ListCloudExadataInfrastructuresRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listCloudExadataInfrastructuresPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (CloudExadataInfrastructure element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresPagedCallable() { + return stub.listCloudExadataInfrastructuresPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Exadata Infrastructures 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListCloudExadataInfrastructuresRequest request =
                                              +   *       ListCloudExadataInfrastructuresRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListCloudExadataInfrastructuresResponse response =
                                              +   *         oracleDatabaseClient.listCloudExadataInfrastructuresCallable().call(request);
                                              +   *     for (CloudExadataInfrastructure element : response.getCloudExadataInfrastructuresList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> + listCloudExadataInfrastructuresCallable() { + return stub.listCloudExadataInfrastructuresCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Exadata Infrastructure. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CloudExadataInfrastructureName name =
                                              +   *       CloudExadataInfrastructureName.of(
                                              +   *           "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
                                              +   *   CloudExadataInfrastructure response =
                                              +   *       oracleDatabaseClient.getCloudExadataInfrastructure(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CloudExadataInfrastructure getCloudExadataInfrastructure( + CloudExadataInfrastructureName name) { + GetCloudExadataInfrastructureRequest request = + GetCloudExadataInfrastructureRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCloudExadataInfrastructure(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Exadata Infrastructure. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       CloudExadataInfrastructureName.of(
                                              +   *               "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *           .toString();
                                              +   *   CloudExadataInfrastructure response =
                                              +   *       oracleDatabaseClient.getCloudExadataInfrastructure(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CloudExadataInfrastructure getCloudExadataInfrastructure(String name) { + GetCloudExadataInfrastructureRequest request = + GetCloudExadataInfrastructureRequest.newBuilder().setName(name).build(); + return getCloudExadataInfrastructure(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Exadata Infrastructure. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetCloudExadataInfrastructureRequest request =
                                              +   *       GetCloudExadataInfrastructureRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudExadataInfrastructureName.of(
                                              +   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   CloudExadataInfrastructure response =
                                              +   *       oracleDatabaseClient.getCloudExadataInfrastructure(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 CloudExadataInfrastructure getCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request) { + return getCloudExadataInfrastructureCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Exadata Infrastructure. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetCloudExadataInfrastructureRequest request =
                                              +   *       GetCloudExadataInfrastructureRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudExadataInfrastructureName.of(
                                              +   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.getCloudExadataInfrastructureCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   CloudExadataInfrastructure response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + getCloudExadataInfrastructureCallable() { + return stub.getCloudExadataInfrastructureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   CloudExadataInfrastructure cloudExadataInfrastructure =
                                              +   *       CloudExadataInfrastructure.newBuilder().build();
                                              +   *   String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409";
                                              +   *   CloudExadataInfrastructure response =
                                              +   *       oracleDatabaseClient
                                              +   *           .createCloudExadataInfrastructureAsync(
                                              +   *               parent, cloudExadataInfrastructure, cloudExadataInfrastructureId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @param cloudExadataInfrastructure Required. Details of the Exadata Infrastructure instance to + * create. + * @param cloudExadataInfrastructureId Required. The ID of the Exadata Infrastructure to create. + * This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 + * characters in length. The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCloudExadataInfrastructureAsync( + LocationName parent, + CloudExadataInfrastructure cloudExadataInfrastructure, + String cloudExadataInfrastructureId) { + CreateCloudExadataInfrastructureRequest request = + CreateCloudExadataInfrastructureRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCloudExadataInfrastructure(cloudExadataInfrastructure) + .setCloudExadataInfrastructureId(cloudExadataInfrastructureId) + .build(); + return createCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   CloudExadataInfrastructure cloudExadataInfrastructure =
                                              +   *       CloudExadataInfrastructure.newBuilder().build();
                                              +   *   String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409";
                                              +   *   CloudExadataInfrastructure response =
                                              +   *       oracleDatabaseClient
                                              +   *           .createCloudExadataInfrastructureAsync(
                                              +   *               parent, cloudExadataInfrastructure, cloudExadataInfrastructureId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @param cloudExadataInfrastructure Required. Details of the Exadata Infrastructure instance to + * create. + * @param cloudExadataInfrastructureId Required. The ID of the Exadata Infrastructure to create. + * This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 + * characters in length. The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCloudExadataInfrastructureAsync( + String parent, + CloudExadataInfrastructure cloudExadataInfrastructure, + String cloudExadataInfrastructureId) { + CreateCloudExadataInfrastructureRequest request = + CreateCloudExadataInfrastructureRequest.newBuilder() + .setParent(parent) + .setCloudExadataInfrastructure(cloudExadataInfrastructure) + .setCloudExadataInfrastructureId(cloudExadataInfrastructureId) + .build(); + return createCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateCloudExadataInfrastructureRequest request =
                                              +   *       CreateCloudExadataInfrastructureRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
                                              +   *           .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   CloudExadataInfrastructure response =
                                              +   *       oracleDatabaseClient.createCloudExadataInfrastructureAsync(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 + createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest request) { + return createCloudExadataInfrastructureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateCloudExadataInfrastructureRequest request =
                                              +   *       CreateCloudExadataInfrastructureRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
                                              +   *           .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient
                                              +   *           .createCloudExadataInfrastructureOperationCallable()
                                              +   *           .futureCall(request);
                                              +   *   // Do something.
                                              +   *   CloudExadataInfrastructure response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationCallable() { + return stub.createCloudExadataInfrastructureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadata Infrastructure 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateCloudExadataInfrastructureRequest request =
                                              +   *       CreateCloudExadataInfrastructureRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409")
                                              +   *           .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.createCloudExadataInfrastructureCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + createCloudExadataInfrastructureCallable() { + return stub.createCloudExadataInfrastructureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CloudExadataInfrastructureName name =
                                              +   *       CloudExadataInfrastructureName.of(
                                              +   *           "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
                                              +   *   oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudExadataInfrastructureAsync( + CloudExadataInfrastructureName name) { + DeleteCloudExadataInfrastructureRequest request = + DeleteCloudExadataInfrastructureRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       CloudExadataInfrastructureName.of(
                                              +   *               "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *           .toString();
                                              +   *   oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudExadataInfrastructureAsync( + String name) { + DeleteCloudExadataInfrastructureRequest request = + DeleteCloudExadataInfrastructureRequest.newBuilder().setName(name).build(); + return deleteCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteCloudExadataInfrastructureRequest request =
                                              +   *       DeleteCloudExadataInfrastructureRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudExadataInfrastructureName.of(
                                              +   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .setForce(true)
                                              +   *           .build();
                                              +   *   oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(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 deleteCloudExadataInfrastructureAsync( + DeleteCloudExadataInfrastructureRequest request) { + return deleteCloudExadataInfrastructureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteCloudExadataInfrastructureRequest request =
                                              +   *       DeleteCloudExadataInfrastructureRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudExadataInfrastructureName.of(
                                              +   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .setForce(true)
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient
                                              +   *           .deleteCloudExadataInfrastructureOperationCallable()
                                              +   *           .futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + deleteCloudExadataInfrastructureOperationCallable() { + return stub.deleteCloudExadataInfrastructureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadata Infrastructure. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteCloudExadataInfrastructureRequest request =
                                              +   *       DeleteCloudExadataInfrastructureRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudExadataInfrastructureName.of(
                                              +   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .setForce(true)
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.deleteCloudExadataInfrastructureCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + deleteCloudExadataInfrastructureCallable() { + return stub.deleteCloudExadataInfrastructureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudVmClustersPagedResponse listCloudVmClusters(LocationName parent) { + ListCloudVmClustersRequest request = + ListCloudVmClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCloudVmClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudVmClustersPagedResponse listCloudVmClusters(String parent) { + ListCloudVmClustersRequest request = + ListCloudVmClustersRequest.newBuilder().setParent(parent).build(); + return listCloudVmClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListCloudVmClustersRequest request =
                                              +   *       ListCloudVmClustersRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   for (CloudVmCluster element :
                                              +   *       oracleDatabaseClient.listCloudVmClusters(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 ListCloudVmClustersPagedResponse listCloudVmClusters( + ListCloudVmClustersRequest request) { + return listCloudVmClustersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListCloudVmClustersRequest request =
                                              +   *       ListCloudVmClustersRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listCloudVmClustersPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (CloudVmCluster element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listCloudVmClustersPagedCallable() { + return stub.listCloudVmClustersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the VM Clusters 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListCloudVmClustersRequest request =
                                              +   *       ListCloudVmClustersRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListCloudVmClustersResponse response =
                                              +   *         oracleDatabaseClient.listCloudVmClustersCallable().call(request);
                                              +   *     for (CloudVmCluster element : response.getCloudVmClustersList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listCloudVmClustersCallable() { + return stub.listCloudVmClustersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CloudVmClusterName name =
                                              +   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
                                              +   *   CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CloudVmCluster getCloudVmCluster(CloudVmClusterName name) { + GetCloudVmClusterRequest request = + GetCloudVmClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCloudVmCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
                                              +   *   CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CloudVmCluster getCloudVmCluster(String name) { + GetCloudVmClusterRequest request = GetCloudVmClusterRequest.newBuilder().setName(name).build(); + return getCloudVmCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetCloudVmClusterRequest request =
                                              +   *       GetCloudVmClusterRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
                                              +   *           .build();
                                              +   *   CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(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 CloudVmCluster getCloudVmCluster(GetCloudVmClusterRequest request) { + return getCloudVmClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetCloudVmClusterRequest request =
                                              +   *       GetCloudVmClusterRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.getCloudVmClusterCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   CloudVmCluster response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable getCloudVmClusterCallable() { + return stub.getCloudVmClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build();
                                              +   *   String cloudVmClusterId = "cloudVmClusterId-1217103287";
                                              +   *   CloudVmCluster response =
                                              +   *       oracleDatabaseClient
                                              +   *           .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @param cloudVmCluster Required. The resource being created + * @param cloudVmClusterId Required. The ID of the VM Cluster to create. This value is restricted + * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. + * The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCloudVmClusterAsync( + LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) { + CreateCloudVmClusterRequest request = + CreateCloudVmClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCloudVmCluster(cloudVmCluster) + .setCloudVmClusterId(cloudVmClusterId) + .build(); + return createCloudVmClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build();
                                              +   *   String cloudVmClusterId = "cloudVmClusterId-1217103287";
                                              +   *   CloudVmCluster response =
                                              +   *       oracleDatabaseClient
                                              +   *           .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @param cloudVmCluster Required. The resource being created + * @param cloudVmClusterId Required. The ID of the VM Cluster to create. This value is restricted + * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. + * The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCloudVmClusterAsync( + String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) { + CreateCloudVmClusterRequest request = + CreateCloudVmClusterRequest.newBuilder() + .setParent(parent) + .setCloudVmCluster(cloudVmCluster) + .setCloudVmClusterId(cloudVmClusterId) + .build(); + return createCloudVmClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateCloudVmClusterRequest request =
                                              +   *       CreateCloudVmClusterRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setCloudVmClusterId("cloudVmClusterId-1217103287")
                                              +   *           .setCloudVmCluster(CloudVmCluster.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   CloudVmCluster response = oracleDatabaseClient.createCloudVmClusterAsync(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 createCloudVmClusterAsync( + CreateCloudVmClusterRequest request) { + return createCloudVmClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateCloudVmClusterRequest request =
                                              +   *       CreateCloudVmClusterRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setCloudVmClusterId("cloudVmClusterId-1217103287")
                                              +   *           .setCloudVmCluster(CloudVmCluster.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.createCloudVmClusterOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   CloudVmCluster response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + createCloudVmClusterOperationCallable() { + return stub.createCloudVmClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VM Cluster 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateCloudVmClusterRequest request =
                                              +   *       CreateCloudVmClusterRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setCloudVmClusterId("cloudVmClusterId-1217103287")
                                              +   *           .setCloudVmCluster(CloudVmCluster.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.createCloudVmClusterCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + createCloudVmClusterCallable() { + return stub.createCloudVmClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CloudVmClusterName name =
                                              +   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
                                              +   *   oracleDatabaseClient.deleteCloudVmClusterAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudVmClusterAsync( + CloudVmClusterName name) { + DeleteCloudVmClusterRequest request = + DeleteCloudVmClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCloudVmClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
                                              +   *   oracleDatabaseClient.deleteCloudVmClusterAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCloudVmClusterAsync(String name) { + DeleteCloudVmClusterRequest request = + DeleteCloudVmClusterRequest.newBuilder().setName(name).build(); + return deleteCloudVmClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteCloudVmClusterRequest request =
                                              +   *       DeleteCloudVmClusterRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .setForce(true)
                                              +   *           .build();
                                              +   *   oracleDatabaseClient.deleteCloudVmClusterAsync(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 deleteCloudVmClusterAsync( + DeleteCloudVmClusterRequest request) { + return deleteCloudVmClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteCloudVmClusterRequest request =
                                              +   *       DeleteCloudVmClusterRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .setForce(true)
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.deleteCloudVmClusterOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + deleteCloudVmClusterOperationCallable() { + return stub.deleteCloudVmClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteCloudVmClusterRequest request =
                                              +   *       DeleteCloudVmClusterRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .setForce(true)
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.deleteCloudVmClusterCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + deleteCloudVmClusterCallable() { + return stub.deleteCloudVmClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the entitlement in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEntitlementsPagedResponse listEntitlements(LocationName parent) { + ListEntitlementsRequest request = + ListEntitlementsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEntitlements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the entitlement in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEntitlementsPagedResponse listEntitlements(String parent) { + ListEntitlementsRequest request = + ListEntitlementsRequest.newBuilder().setParent(parent).build(); + return listEntitlements(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListEntitlementsRequest request =
                                              +   *       ListEntitlementsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   for (Entitlement element : oracleDatabaseClient.listEntitlements(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 ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequest request) { + return listEntitlementsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListEntitlementsRequest request =
                                              +   *       ListEntitlementsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listEntitlementsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (Entitlement element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listEntitlementsPagedCallable() { + return stub.listEntitlementsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the entitlements in a given project. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListEntitlementsRequest request =
                                              +   *       ListEntitlementsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListEntitlementsResponse response =
                                              +   *         oracleDatabaseClient.listEntitlementsCallable().call(request);
                                              +   *     for (Entitlement element : response.getEntitlementsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listEntitlementsCallable() { + return stub.listEntitlementsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CloudExadataInfrastructureName parent =
                                              +   *       CloudExadataInfrastructureName.of(
                                              +   *           "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
                                              +   *   for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for database server in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbServersPagedResponse listDbServers(CloudExadataInfrastructureName parent) { + ListDbServersRequest request = + ListDbServersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDbServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent =
                                              +   *       CloudExadataInfrastructureName.of(
                                              +   *               "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *           .toString();
                                              +   *   for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for database server in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbServersPagedResponse listDbServers(String parent) { + ListDbServersRequest request = ListDbServersRequest.newBuilder().setParent(parent).build(); + return listDbServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListDbServersRequest request =
                                              +   *       ListDbServersRequest.newBuilder()
                                              +   *           .setParent(
                                              +   *               CloudExadataInfrastructureName.of(
                                              +   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *                   .toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   for (DbServer element : oracleDatabaseClient.listDbServers(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 ListDbServersPagedResponse listDbServers(ListDbServersRequest request) { + return listDbServersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListDbServersRequest request =
                                              +   *       ListDbServersRequest.newBuilder()
                                              +   *           .setParent(
                                              +   *               CloudExadataInfrastructureName.of(
                                              +   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *                   .toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listDbServersPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (DbServer element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listDbServersPagedCallable() { + return stub.listDbServersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListDbServersRequest request =
                                              +   *       ListDbServersRequest.newBuilder()
                                              +   *           .setParent(
                                              +   *               CloudExadataInfrastructureName.of(
                                              +   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
                                              +   *                   .toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListDbServersResponse response = oracleDatabaseClient.listDbServersCallable().call(request);
                                              +   *     for (DbServer element : response.getDbServersList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable listDbServersCallable() { + return stub.listDbServersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CloudVmClusterName parent =
                                              +   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]");
                                              +   *   for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. . + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbNodesPagedResponse listDbNodes(CloudVmClusterName parent) { + ListDbNodesRequest request = + ListDbNodesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDbNodes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ExadbVmClusterName parent =
                                              +   *       ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]");
                                              +   *   for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. . + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbNodesPagedResponse listDbNodes(ExadbVmClusterName parent) { + ListDbNodesRequest request = + ListDbNodesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDbNodes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent =
                                              +   *       CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString();
                                              +   *   for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. . + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbNodesPagedResponse listDbNodes(String parent) { + ListDbNodesRequest request = ListDbNodesRequest.newBuilder().setParent(parent).build(); + return listDbNodes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListDbNodesRequest request =
                                              +   *       ListDbNodesRequest.newBuilder()
                                              +   *           .setParent(
                                              +   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   for (DbNode element : oracleDatabaseClient.listDbNodes(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 ListDbNodesPagedResponse listDbNodes(ListDbNodesRequest request) { + return listDbNodesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListDbNodesRequest request =
                                              +   *       ListDbNodesRequest.newBuilder()
                                              +   *           .setParent(
                                              +   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listDbNodesPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (DbNode element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listDbNodesPagedCallable() { + return stub.listDbNodesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database nodes of a VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListDbNodesRequest request =
                                              +   *       ListDbNodesRequest.newBuilder()
                                              +   *           .setParent(
                                              +   *               CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListDbNodesResponse response = oracleDatabaseClient.listDbNodesCallable().call(request);
                                              +   *     for (DbNode element : response.getDbNodesList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable listDbNodesCallable() { + return stub.listDbNodesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for Grid Infrastructure Version in the following + * format: Format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGiVersionsPagedResponse listGiVersions(LocationName parent) { + ListGiVersionsRequest request = + ListGiVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGiVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for Grid Infrastructure Version in the following + * format: Format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGiVersionsPagedResponse listGiVersions(String parent) { + ListGiVersionsRequest request = ListGiVersionsRequest.newBuilder().setParent(parent).build(); + return listGiVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListGiVersionsRequest request =
                                              +   *       ListGiVersionsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   for (GiVersion element : oracleDatabaseClient.listGiVersions(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 ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest request) { + return listGiVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListGiVersionsRequest request =
                                              +   *       ListGiVersionsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (GiVersion element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listGiVersionsPagedCallable() { + return stub.listGiVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListGiVersionsRequest request =
                                              +   *       ListGiVersionsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListGiVersionsResponse response =
                                              +   *         oracleDatabaseClient.listGiVersionsCallable().call(request);
                                              +   *     for (GiVersion element : response.getGiVersionsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listGiVersionsCallable() { + return stub.listGiVersionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid minor versions for the given project, location, gi version and shape + * family. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GiVersionName parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]");
                                              +   *   for (MinorVersion element : oracleDatabaseClient.listMinorVersions(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the MinorVersion resource with the format: + * projects/{project}/locations/{location}/giVersions/{gi_version} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMinorVersionsPagedResponse listMinorVersions(GiVersionName parent) { + ListMinorVersionsRequest request = + ListMinorVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMinorVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid minor versions for the given project, location, gi version and shape + * family. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString();
                                              +   *   for (MinorVersion element : oracleDatabaseClient.listMinorVersions(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the MinorVersion resource with the format: + * projects/{project}/locations/{location}/giVersions/{gi_version} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMinorVersionsPagedResponse listMinorVersions(String parent) { + ListMinorVersionsRequest request = + ListMinorVersionsRequest.newBuilder().setParent(parent).build(); + return listMinorVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid minor versions for the given project, location, gi version and shape + * family. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListMinorVersionsRequest request =
                                              +   *       ListMinorVersionsRequest.newBuilder()
                                              +   *           .setParent(GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   for (MinorVersion element : oracleDatabaseClient.listMinorVersions(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 ListMinorVersionsPagedResponse listMinorVersions(ListMinorVersionsRequest request) { + return listMinorVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid minor versions for the given project, location, gi version and shape + * family. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListMinorVersionsRequest request =
                                              +   *       ListMinorVersionsRequest.newBuilder()
                                              +   *           .setParent(GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listMinorVersionsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (MinorVersion element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listMinorVersionsPagedCallable() { + return stub.listMinorVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the valid minor versions for the given project, location, gi version and shape + * family. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListMinorVersionsRequest request =
                                              +   *       ListMinorVersionsRequest.newBuilder()
                                              +   *           .setParent(GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListMinorVersionsResponse response =
                                              +   *         oracleDatabaseClient.listMinorVersionsCallable().call(request);
                                              +   *     for (MinorVersion element : response.getMinorVersionsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listMinorVersionsCallable() { + return stub.listMinorVersionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for Database System Shapes in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbSystemShapesPagedResponse listDbSystemShapes(LocationName parent) { + ListDbSystemShapesRequest request = + ListDbSystemShapesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDbSystemShapes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for Database System Shapes in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDbSystemShapesPagedResponse listDbSystemShapes(String parent) { + ListDbSystemShapesRequest request = + ListDbSystemShapesRequest.newBuilder().setParent(parent).build(); + return listDbSystemShapes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListDbSystemShapesRequest request =
                                              +   *       ListDbSystemShapesRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(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 ListDbSystemShapesPagedResponse listDbSystemShapes( + ListDbSystemShapesRequest request) { + return listDbSystemShapesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListDbSystemShapesRequest request =
                                              +   *       ListDbSystemShapesRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listDbSystemShapesPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (DbSystemShape element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listDbSystemShapesPagedCallable() { + return stub.listDbSystemShapesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the database system shapes available for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListDbSystemShapesRequest request =
                                              +   *       ListDbSystemShapesRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListDbSystemShapesResponse response =
                                              +   *         oracleDatabaseClient.listDbSystemShapesCallable().call(request);
                                              +   *     for (DbSystemShape element : response.getDbSystemShapesList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listDbSystemShapesCallable() { + return stub.listDbSystemShapesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (AutonomousDatabase element :
                                              +   *       oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(LocationName parent) { + ListAutonomousDatabasesRequest request = + ListAutonomousDatabasesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutonomousDatabases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (AutonomousDatabase element :
                                              +   *       oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(String parent) { + ListAutonomousDatabasesRequest request = + ListAutonomousDatabasesRequest.newBuilder().setParent(parent).build(); + return listAutonomousDatabases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDatabasesRequest request =
                                              +   *       ListAutonomousDatabasesRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   for (AutonomousDatabase element :
                                              +   *       oracleDatabaseClient.listAutonomousDatabases(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 ListAutonomousDatabasesPagedResponse listAutonomousDatabases( + ListAutonomousDatabasesRequest request) { + return listAutonomousDatabasesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDatabasesRequest request =
                                              +   *       ListAutonomousDatabasesRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listAutonomousDatabasesPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (AutonomousDatabase element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listAutonomousDatabasesPagedCallable() { + return stub.listAutonomousDatabasesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the Autonomous Databases 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDatabasesRequest request =
                                              +   *       ListAutonomousDatabasesRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListAutonomousDatabasesResponse response =
                                              +   *         oracleDatabaseClient.listAutonomousDatabasesCallable().call(request);
                                              +   *     for (AutonomousDatabase element : response.getAutonomousDatabasesList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listAutonomousDatabasesCallable() { + return stub.listAutonomousDatabasesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AutonomousDatabase getAutonomousDatabase(AutonomousDatabaseName name) { + GetAutonomousDatabaseRequest request = + GetAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAutonomousDatabase(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AutonomousDatabase getAutonomousDatabase(String name) { + GetAutonomousDatabaseRequest request = + GetAutonomousDatabaseRequest.newBuilder().setName(name).build(); + return getAutonomousDatabase(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetAutonomousDatabaseRequest request =
                                              +   *       GetAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(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 AutonomousDatabase getAutonomousDatabase(GetAutonomousDatabaseRequest request) { + return getAutonomousDatabaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetAutonomousDatabaseRequest request =
                                              +   *       GetAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.getAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AutonomousDatabase response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + getAutonomousDatabaseCallable() { + return stub.getAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
                                              +   *   String autonomousDatabaseId = "autonomousDatabaseId-1972693114";
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient
                                              +   *           .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @param autonomousDatabase Required. The Autonomous Database being created. + * @param autonomousDatabaseId Required. The ID of the Autonomous Database to create. This value + * is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters + * in length. The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAutonomousDatabaseAsync( + LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) { + CreateAutonomousDatabaseRequest request = + CreateAutonomousDatabaseRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAutonomousDatabase(autonomousDatabase) + .setAutonomousDatabaseId(autonomousDatabaseId) + .build(); + return createAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
                                              +   *   String autonomousDatabaseId = "autonomousDatabaseId-1972693114";
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient
                                              +   *           .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @param autonomousDatabase Required. The Autonomous Database being created. + * @param autonomousDatabaseId Required. The ID of the Autonomous Database to create. This value + * is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters + * in length. The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAutonomousDatabaseAsync( + String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) { + CreateAutonomousDatabaseRequest request = + CreateAutonomousDatabaseRequest.newBuilder() + .setParent(parent) + .setAutonomousDatabase(autonomousDatabase) + .setAutonomousDatabaseId(autonomousDatabaseId) + .build(); + return createAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateAutonomousDatabaseRequest request =
                                              +   *       CreateAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
                                              +   *           .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.createAutonomousDatabaseAsync(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 createAutonomousDatabaseAsync( + CreateAutonomousDatabaseRequest request) { + return createAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateAutonomousDatabaseRequest request =
                                              +   *       CreateAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
                                              +   *           .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.createAutonomousDatabaseOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AutonomousDatabase response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationCallable() { + return stub.createAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Autonomous Database 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateAutonomousDatabaseRequest request =
                                              +   *       CreateAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setAutonomousDatabaseId("autonomousDatabaseId-1972693114")
                                              +   *           .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.createAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + createAutonomousDatabaseCallable() { + return stub.createAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build();
                                              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.updateAutonomousDatabaseAsync(autonomousDatabase, updateMask).get();
                                              +   * }
                                              +   * }
                                              + * + * @param autonomousDatabase Required. The resource being updated + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * Exadata 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 updateAutonomousDatabaseAsync( + AutonomousDatabase autonomousDatabase, FieldMask updateMask) { + UpdateAutonomousDatabaseRequest request = + UpdateAutonomousDatabaseRequest.newBuilder() + .setAutonomousDatabase(autonomousDatabase) + .setUpdateMask(updateMask) + .build(); + return updateAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   UpdateAutonomousDatabaseRequest request =
                                              +   *       UpdateAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                              +   *           .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.updateAutonomousDatabaseAsync(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 updateAutonomousDatabaseAsync( + UpdateAutonomousDatabaseRequest request) { + return updateAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   UpdateAutonomousDatabaseRequest request =
                                              +   *       UpdateAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                              +   *           .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.updateAutonomousDatabaseOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AutonomousDatabase response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable< + UpdateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + updateAutonomousDatabaseOperationCallable() { + return stub.updateAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   UpdateAutonomousDatabaseRequest request =
                                              +   *       UpdateAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                              +   *           .setAutonomousDatabase(AutonomousDatabase.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.updateAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + updateAutonomousDatabaseCallable() { + return stub.updateAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAutonomousDatabaseAsync( + AutonomousDatabaseName name) { + DeleteAutonomousDatabaseRequest request = + DeleteAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAutonomousDatabaseAsync( + String name) { + DeleteAutonomousDatabaseRequest request = + DeleteAutonomousDatabaseRequest.newBuilder().setName(name).build(); + return deleteAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteAutonomousDatabaseRequest request =
                                              +   *       DeleteAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   oracleDatabaseClient.deleteAutonomousDatabaseAsync(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 deleteAutonomousDatabaseAsync( + DeleteAutonomousDatabaseRequest request) { + return deleteAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteAutonomousDatabaseRequest request =
                                              +   *       DeleteAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.deleteAutonomousDatabaseOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + deleteAutonomousDatabaseOperationCallable() { + return stub.deleteAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteAutonomousDatabaseRequest request =
                                              +   *       DeleteAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.deleteAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + deleteAutonomousDatabaseCallable() { + return stub.deleteAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   Timestamp restoreTime = Timestamp.newBuilder().build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param restoreTime Required. The time and date to restore the database to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime) { + RestoreAutonomousDatabaseRequest request = + RestoreAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRestoreTime(restoreTime) + .build(); + return restoreAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   Timestamp restoreTime = Timestamp.newBuilder().build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param restoreTime Required. The time and date to restore the database to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restoreAutonomousDatabaseAsync(String name, Timestamp restoreTime) { + RestoreAutonomousDatabaseRequest request = + RestoreAutonomousDatabaseRequest.newBuilder() + .setName(name) + .setRestoreTime(restoreTime) + .build(); + return restoreAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   RestoreAutonomousDatabaseRequest request =
                                              +   *       RestoreAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setRestoreTime(Timestamp.newBuilder().build())
                                              +   *           .build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.restoreAutonomousDatabaseAsync(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 + restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest request) { + return restoreAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   RestoreAutonomousDatabaseRequest request =
                                              +   *       RestoreAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setRestoreTime(Timestamp.newBuilder().build())
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.restoreAutonomousDatabaseOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AutonomousDatabase response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationCallable() { + return stub.restoreAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a single Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   RestoreAutonomousDatabaseRequest request =
                                              +   *       RestoreAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setRestoreTime(Timestamp.newBuilder().build())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.restoreAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + restoreAutonomousDatabaseCallable() { + return stub.restoreAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a wallet for an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   GenerateType type = GenerateType.forNumber(0);
                                              +   *   boolean isRegional = true;
                                              +   *   String password = "password1216985755";
                                              +   *   GenerateAutonomousDatabaseWalletResponse response =
                                              +   *       oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param type Optional. The type of wallet generation for the Autonomous Database. The default + * value is SINGLE. + * @param isRegional Optional. True when requesting regional connection strings in PDB connect + * info, applicable to cross-region Data Guard only. + * @param password Required. The password used to encrypt the keys inside the wallet. The password + * must be a minimum of 8 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( + AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password) { + GenerateAutonomousDatabaseWalletRequest request = + GenerateAutonomousDatabaseWalletRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setType(type) + .setIsRegional(isRegional) + .setPassword(password) + .build(); + return generateAutonomousDatabaseWallet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a wallet for an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   GenerateType type = GenerateType.forNumber(0);
                                              +   *   boolean isRegional = true;
                                              +   *   String password = "password1216985755";
                                              +   *   GenerateAutonomousDatabaseWalletResponse response =
                                              +   *       oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param type Optional. The type of wallet generation for the Autonomous Database. The default + * value is SINGLE. + * @param isRegional Optional. True when requesting regional connection strings in PDB connect + * info, applicable to cross-region Data Guard only. + * @param password Required. The password used to encrypt the keys inside the wallet. The password + * must be a minimum of 8 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( + String name, GenerateType type, boolean isRegional, String password) { + GenerateAutonomousDatabaseWalletRequest request = + GenerateAutonomousDatabaseWalletRequest.newBuilder() + .setName(name) + .setType(type) + .setIsRegional(isRegional) + .setPassword(password) + .build(); + return generateAutonomousDatabaseWallet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a wallet for an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GenerateAutonomousDatabaseWalletRequest request =
                                              +   *       GenerateAutonomousDatabaseWalletRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setType(GenerateType.forNumber(0))
                                              +   *           .setIsRegional(true)
                                              +   *           .setPassword("password1216985755")
                                              +   *           .build();
                                              +   *   GenerateAutonomousDatabaseWalletResponse response =
                                              +   *       oracleDatabaseClient.generateAutonomousDatabaseWallet(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 GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( + GenerateAutonomousDatabaseWalletRequest request) { + return generateAutonomousDatabaseWalletCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a wallet for an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GenerateAutonomousDatabaseWalletRequest request =
                                              +   *       GenerateAutonomousDatabaseWalletRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setType(GenerateType.forNumber(0))
                                              +   *           .setIsRegional(true)
                                              +   *           .setPassword("password1216985755")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.generateAutonomousDatabaseWalletCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   GenerateAutonomousDatabaseWalletResponse response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletCallable() { + return stub.generateAutonomousDatabaseWalletCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (AutonomousDbVersion element :
                                              +   *       oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(LocationName parent) { + ListAutonomousDbVersionsRequest request = + ListAutonomousDbVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutonomousDbVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (AutonomousDbVersion element :
                                              +   *       oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(String parent) { + ListAutonomousDbVersionsRequest request = + ListAutonomousDbVersionsRequest.newBuilder().setParent(parent).build(); + return listAutonomousDbVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDbVersionsRequest request =
                                              +   *       ListAutonomousDbVersionsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   for (AutonomousDbVersion element :
                                              +   *       oracleDatabaseClient.listAutonomousDbVersions(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 ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions( + ListAutonomousDbVersionsRequest request) { + return listAutonomousDbVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDbVersionsRequest request =
                                              +   *       ListAutonomousDbVersionsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listAutonomousDbVersionsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (AutonomousDbVersion element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listAutonomousDbVersionsPagedCallable() { + return stub.listAutonomousDbVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the available Autonomous Database versions for a 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDbVersionsRequest request =
                                              +   *       ListAutonomousDbVersionsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListAutonomousDbVersionsResponse response =
                                              +   *         oracleDatabaseClient.listAutonomousDbVersionsCallable().call(request);
                                              +   *     for (AutonomousDbVersion element : response.getAutonomousDbVersionsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listAutonomousDbVersionsCallable() { + return stub.listAutonomousDbVersionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (AutonomousDatabaseCharacterSet element :
                                              +   *       oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( + LocationName parent) { + ListAutonomousDatabaseCharacterSetsRequest request = + ListAutonomousDatabaseCharacterSetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutonomousDatabaseCharacterSets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (AutonomousDatabaseCharacterSet element :
                                              +   *       oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the Autonomous Database in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( + String parent) { + ListAutonomousDatabaseCharacterSetsRequest request = + ListAutonomousDatabaseCharacterSetsRequest.newBuilder().setParent(parent).build(); + return listAutonomousDatabaseCharacterSets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDatabaseCharacterSetsRequest request =
                                              +   *       ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   for (AutonomousDatabaseCharacterSet element :
                                              +   *       oracleDatabaseClient.listAutonomousDatabaseCharacterSets(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 ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( + ListAutonomousDatabaseCharacterSetsRequest request) { + return listAutonomousDatabaseCharacterSetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDatabaseCharacterSetsRequest request =
                                              +   *       ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient
                                              +   *           .listAutonomousDatabaseCharacterSetsPagedCallable()
                                              +   *           .futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (AutonomousDatabaseCharacterSet element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsPagedCallable() { + return stub.listAutonomousDatabaseCharacterSetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Autonomous Database Character Sets 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDatabaseCharacterSetsRequest request =
                                              +   *       ListAutonomousDatabaseCharacterSetsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListAutonomousDatabaseCharacterSetsResponse response =
                                              +   *         oracleDatabaseClient.listAutonomousDatabaseCharacterSetsCallable().call(request);
                                              +   *     for (AutonomousDatabaseCharacterSet element :
                                              +   *         response.getAutonomousDatabaseCharacterSetsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> + listAutonomousDatabaseCharacterSetsCallable() { + return stub.listAutonomousDatabaseCharacterSetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (AutonomousDatabaseBackup element :
                                              +   *       oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for ListAutonomousDatabaseBackups in the following + * format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( + LocationName parent) { + ListAutonomousDatabaseBackupsRequest request = + ListAutonomousDatabaseBackupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutonomousDatabaseBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (AutonomousDatabaseBackup element :
                                              +   *       oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for ListAutonomousDatabaseBackups in the following + * format: projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( + String parent) { + ListAutonomousDatabaseBackupsRequest request = + ListAutonomousDatabaseBackupsRequest.newBuilder().setParent(parent).build(); + return listAutonomousDatabaseBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDatabaseBackupsRequest request =
                                              +   *       ListAutonomousDatabaseBackupsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   for (AutonomousDatabaseBackup element :
                                              +   *       oracleDatabaseClient.listAutonomousDatabaseBackups(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 ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( + ListAutonomousDatabaseBackupsRequest request) { + return listAutonomousDatabaseBackupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDatabaseBackupsRequest request =
                                              +   *       ListAutonomousDatabaseBackupsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listAutonomousDatabaseBackupsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (AutonomousDatabaseBackup element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsPagedCallable() { + return stub.listAutonomousDatabaseBackupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListAutonomousDatabaseBackupsRequest request =
                                              +   *       ListAutonomousDatabaseBackupsRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListAutonomousDatabaseBackupsResponse response =
                                              +   *         oracleDatabaseClient.listAutonomousDatabaseBackupsCallable().call(request);
                                              +   *     for (AutonomousDatabaseBackup element : response.getAutonomousDatabaseBackupsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> + listAutonomousDatabaseBackupsCallable() { + return stub.listAutonomousDatabaseBackupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.stopAutonomousDatabaseAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture stopAutonomousDatabaseAsync( + AutonomousDatabaseName name) { + StopAutonomousDatabaseRequest request = + StopAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return stopAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.stopAutonomousDatabaseAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture stopAutonomousDatabaseAsync( + String name) { + StopAutonomousDatabaseRequest request = + StopAutonomousDatabaseRequest.newBuilder().setName(name).build(); + return stopAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   StopAutonomousDatabaseRequest request =
                                              +   *       StopAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.stopAutonomousDatabaseAsync(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 stopAutonomousDatabaseAsync( + StopAutonomousDatabaseRequest request) { + return stopAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   StopAutonomousDatabaseRequest request =
                                              +   *       StopAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.stopAutonomousDatabaseOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AutonomousDatabase response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable< + StopAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + stopAutonomousDatabaseOperationCallable() { + return stub.stopAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   StopAutonomousDatabaseRequest request =
                                              +   *       StopAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.stopAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + stopAutonomousDatabaseCallable() { + return stub.stopAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.startAutonomousDatabaseAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startAutonomousDatabaseAsync( + AutonomousDatabaseName name) { + StartAutonomousDatabaseRequest request = + StartAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return startAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.startAutonomousDatabaseAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startAutonomousDatabaseAsync( + String name) { + StartAutonomousDatabaseRequest request = + StartAutonomousDatabaseRequest.newBuilder().setName(name).build(); + return startAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   StartAutonomousDatabaseRequest request =
                                              +   *       StartAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.startAutonomousDatabaseAsync(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 startAutonomousDatabaseAsync( + StartAutonomousDatabaseRequest request) { + return startAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   StartAutonomousDatabaseRequest request =
                                              +   *       StartAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.startAutonomousDatabaseOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AutonomousDatabase response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable< + StartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + startAutonomousDatabaseOperationCallable() { + return stub.startAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   StartAutonomousDatabaseRequest request =
                                              +   *       StartAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.startAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + startAutonomousDatabaseCallable() { + return stub.startAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restarts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.restartAutonomousDatabaseAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restartAutonomousDatabaseAsync(AutonomousDatabaseName name) { + RestartAutonomousDatabaseRequest request = + RestartAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return restartAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restarts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabase response = oracleDatabaseClient.restartAutonomousDatabaseAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restartAutonomousDatabaseAsync(String name) { + RestartAutonomousDatabaseRequest request = + RestartAutonomousDatabaseRequest.newBuilder().setName(name).build(); + return restartAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restarts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   RestartAutonomousDatabaseRequest request =
                                              +   *       RestartAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.restartAutonomousDatabaseAsync(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 + restartAutonomousDatabaseAsync(RestartAutonomousDatabaseRequest request) { + return restartAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restarts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   RestartAutonomousDatabaseRequest request =
                                              +   *       RestartAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.restartAutonomousDatabaseOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AutonomousDatabase response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable< + RestartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restartAutonomousDatabaseOperationCallable() { + return stub.restartAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restarts an Autonomous Database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   RestartAutonomousDatabaseRequest request =
                                              +   *       RestartAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.restartAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + restartAutonomousDatabaseCallable() { + return stub.restartAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a switchover of specified autonomous database to the associated peer database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabaseName peerAutonomousDatabase =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient
                                              +   *           .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param peerAutonomousDatabase Required. The peer database name to switch over to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + switchoverAutonomousDatabaseAsync( + AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase) { + SwitchoverAutonomousDatabaseRequest request = + SwitchoverAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPeerAutonomousDatabase( + peerAutonomousDatabase == null ? null : peerAutonomousDatabase.toString()) + .build(); + return switchoverAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a switchover of specified autonomous database to the associated peer database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   String peerAutonomousDatabase =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient
                                              +   *           .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param peerAutonomousDatabase Required. The peer database name to switch over to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + switchoverAutonomousDatabaseAsync( + AutonomousDatabaseName name, String peerAutonomousDatabase) { + SwitchoverAutonomousDatabaseRequest request = + SwitchoverAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPeerAutonomousDatabase(peerAutonomousDatabase) + .build(); + return switchoverAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a switchover of specified autonomous database to the associated peer database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabaseName peerAutonomousDatabase =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient
                                              +   *           .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param peerAutonomousDatabase Required. The peer database name to switch over to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + switchoverAutonomousDatabaseAsync( + String name, AutonomousDatabaseName peerAutonomousDatabase) { + SwitchoverAutonomousDatabaseRequest request = + SwitchoverAutonomousDatabaseRequest.newBuilder() + .setName(name) + .setPeerAutonomousDatabase( + peerAutonomousDatabase == null ? null : peerAutonomousDatabase.toString()) + .build(); + return switchoverAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a switchover of specified autonomous database to the associated peer database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   String peerAutonomousDatabase =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient
                                              +   *           .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase)
                                              +   *           .get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param peerAutonomousDatabase Required. The peer database name to switch over to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + switchoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase) { + SwitchoverAutonomousDatabaseRequest request = + SwitchoverAutonomousDatabaseRequest.newBuilder() + .setName(name) + .setPeerAutonomousDatabase(peerAutonomousDatabase) + .build(); + return switchoverAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a switchover of specified autonomous database to the associated peer database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   SwitchoverAutonomousDatabaseRequest request =
                                              +   *       SwitchoverAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setPeerAutonomousDatabase(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.switchoverAutonomousDatabaseAsync(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 + switchoverAutonomousDatabaseAsync(SwitchoverAutonomousDatabaseRequest request) { + return switchoverAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a switchover of specified autonomous database to the associated peer database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   SwitchoverAutonomousDatabaseRequest request =
                                              +   *       SwitchoverAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setPeerAutonomousDatabase(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.switchoverAutonomousDatabaseOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AutonomousDatabase response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationCallable() { + return stub.switchoverAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a switchover of specified autonomous database to the associated peer database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   SwitchoverAutonomousDatabaseRequest request =
                                              +   *       SwitchoverAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setPeerAutonomousDatabase(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.switchoverAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + switchoverAutonomousDatabaseCallable() { + return stub.switchoverAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a failover to target autonomous database from the associated primary database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabaseName peerAutonomousDatabase =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param peerAutonomousDatabase Required. The peer database name to fail over to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + failoverAutonomousDatabaseAsync( + AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase) { + FailoverAutonomousDatabaseRequest request = + FailoverAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPeerAutonomousDatabase( + peerAutonomousDatabase == null ? null : peerAutonomousDatabase.toString()) + .build(); + return failoverAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a failover to target autonomous database from the associated primary database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   AutonomousDatabaseName name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   String peerAutonomousDatabase =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param peerAutonomousDatabase Required. The peer database name to fail over to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase) { + FailoverAutonomousDatabaseRequest request = + FailoverAutonomousDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPeerAutonomousDatabase(peerAutonomousDatabase) + .build(); + return failoverAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a failover to target autonomous database from the associated primary database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabaseName peerAutonomousDatabase =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param peerAutonomousDatabase Required. The peer database name to fail over to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + failoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase) { + FailoverAutonomousDatabaseRequest request = + FailoverAutonomousDatabaseRequest.newBuilder() + .setName(name) + .setPeerAutonomousDatabase( + peerAutonomousDatabase == null ? null : peerAutonomousDatabase.toString()) + .build(); + return failoverAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a failover to target autonomous database from the associated primary database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   String peerAutonomousDatabase =
                                              +   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param peerAutonomousDatabase Required. The peer database name to fail over to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + failoverAutonomousDatabaseAsync(String name, String peerAutonomousDatabase) { + FailoverAutonomousDatabaseRequest request = + FailoverAutonomousDatabaseRequest.newBuilder() + .setName(name) + .setPeerAutonomousDatabase(peerAutonomousDatabase) + .build(); + return failoverAutonomousDatabaseAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a failover to target autonomous database from the associated primary database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   FailoverAutonomousDatabaseRequest request =
                                              +   *       FailoverAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setPeerAutonomousDatabase(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   AutonomousDatabase response =
                                              +   *       oracleDatabaseClient.failoverAutonomousDatabaseAsync(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 + failoverAutonomousDatabaseAsync(FailoverAutonomousDatabaseRequest request) { + return failoverAutonomousDatabaseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a failover to target autonomous database from the associated primary database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   FailoverAutonomousDatabaseRequest request =
                                              +   *       FailoverAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setPeerAutonomousDatabase(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.failoverAutonomousDatabaseOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   AutonomousDatabase response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable< + FailoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + failoverAutonomousDatabaseOperationCallable() { + return stub.failoverAutonomousDatabaseOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a failover to target autonomous database from the associated primary database. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   FailoverAutonomousDatabaseRequest request =
                                              +   *       FailoverAutonomousDatabaseRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .setPeerAutonomousDatabase(
                                              +   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.failoverAutonomousDatabaseCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + failoverAutonomousDatabaseCallable() { + return stub.failoverAutonomousDatabaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the ODB Networks 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the ODB Network in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOdbNetworksPagedResponse listOdbNetworks(LocationName parent) { + ListOdbNetworksRequest request = + ListOdbNetworksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOdbNetworks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the ODB Networks 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the ODB Network in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOdbNetworksPagedResponse listOdbNetworks(String parent) { + ListOdbNetworksRequest request = ListOdbNetworksRequest.newBuilder().setParent(parent).build(); + return listOdbNetworks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the ODB Networks 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListOdbNetworksRequest request =
                                              +   *       ListOdbNetworksRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   for (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(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 ListOdbNetworksPagedResponse listOdbNetworks(ListOdbNetworksRequest request) { + return listOdbNetworksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the ODB Networks 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListOdbNetworksRequest request =
                                              +   *       ListOdbNetworksRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listOdbNetworksPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (OdbNetwork element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listOdbNetworksPagedCallable() { + return stub.listOdbNetworksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the ODB Networks 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListOdbNetworksRequest request =
                                              +   *       ListOdbNetworksRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListOdbNetworksResponse response =
                                              +   *         oracleDatabaseClient.listOdbNetworksCallable().call(request);
                                              +   *     for (OdbNetwork element : response.getOdbNetworksList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listOdbNetworksCallable() { + return stub.listOdbNetworksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
                                              +   *   OdbNetwork response = oracleDatabaseClient.getOdbNetwork(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the OdbNetwork in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OdbNetwork getOdbNetwork(OdbNetworkName name) { + GetOdbNetworkRequest request = + GetOdbNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getOdbNetwork(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
                                              +   *   OdbNetwork response = oracleDatabaseClient.getOdbNetwork(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the OdbNetwork in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OdbNetwork getOdbNetwork(String name) { + GetOdbNetworkRequest request = GetOdbNetworkRequest.newBuilder().setName(name).build(); + return getOdbNetwork(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetOdbNetworkRequest request =
                                              +   *       GetOdbNetworkRequest.newBuilder()
                                              +   *           .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .build();
                                              +   *   OdbNetwork response = oracleDatabaseClient.getOdbNetwork(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 OdbNetwork getOdbNetwork(GetOdbNetworkRequest request) { + return getOdbNetworkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetOdbNetworkRequest request =
                                              +   *       GetOdbNetworkRequest.newBuilder()
                                              +   *           .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.getOdbNetworkCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   OdbNetwork response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable getOdbNetworkCallable() { + return stub.getOdbNetworkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Network 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   OdbNetwork odbNetwork = OdbNetwork.newBuilder().build();
                                              +   *   String odbNetworkId = "odbNetworkId-169900740";
                                              +   *   OdbNetwork response =
                                              +   *       oracleDatabaseClient.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the OdbNetwork in the following format: + * projects/{project}/locations/{location}. + * @param odbNetwork Required. Details of the OdbNetwork instance to create. + * @param odbNetworkId Required. The ID of the OdbNetwork to create. This value is restricted to + * (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The + * value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createOdbNetworkAsync( + LocationName parent, OdbNetwork odbNetwork, String odbNetworkId) { + CreateOdbNetworkRequest request = + CreateOdbNetworkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setOdbNetwork(odbNetwork) + .setOdbNetworkId(odbNetworkId) + .build(); + return createOdbNetworkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Network 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   OdbNetwork odbNetwork = OdbNetwork.newBuilder().build();
                                              +   *   String odbNetworkId = "odbNetworkId-169900740";
                                              +   *   OdbNetwork response =
                                              +   *       oracleDatabaseClient.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the OdbNetwork in the following format: + * projects/{project}/locations/{location}. + * @param odbNetwork Required. Details of the OdbNetwork instance to create. + * @param odbNetworkId Required. The ID of the OdbNetwork to create. This value is restricted to + * (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The + * value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createOdbNetworkAsync( + String parent, OdbNetwork odbNetwork, String odbNetworkId) { + CreateOdbNetworkRequest request = + CreateOdbNetworkRequest.newBuilder() + .setParent(parent) + .setOdbNetwork(odbNetwork) + .setOdbNetworkId(odbNetworkId) + .build(); + return createOdbNetworkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Network 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateOdbNetworkRequest request =
                                              +   *       CreateOdbNetworkRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setOdbNetworkId("odbNetworkId-169900740")
                                              +   *           .setOdbNetwork(OdbNetwork.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OdbNetwork response = oracleDatabaseClient.createOdbNetworkAsync(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 createOdbNetworkAsync( + CreateOdbNetworkRequest request) { + return createOdbNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Network 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateOdbNetworkRequest request =
                                              +   *       CreateOdbNetworkRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setOdbNetworkId("odbNetworkId-169900740")
                                              +   *           .setOdbNetwork(OdbNetwork.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.createOdbNetworkOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   OdbNetwork response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + createOdbNetworkOperationCallable() { + return stub.createOdbNetworkOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Network 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateOdbNetworkRequest request =
                                              +   *       CreateOdbNetworkRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setOdbNetworkId("odbNetworkId-169900740")
                                              +   *           .setOdbNetwork(OdbNetwork.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.createOdbNetworkCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable createOdbNetworkCallable() { + return stub.createOdbNetworkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
                                              +   *   oracleDatabaseClient.deleteOdbNetworkAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOdbNetworkAsync( + OdbNetworkName name) { + DeleteOdbNetworkRequest request = + DeleteOdbNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteOdbNetworkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
                                              +   *   oracleDatabaseClient.deleteOdbNetworkAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOdbNetworkAsync(String name) { + DeleteOdbNetworkRequest request = DeleteOdbNetworkRequest.newBuilder().setName(name).build(); + return deleteOdbNetworkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteOdbNetworkRequest request =
                                              +   *       DeleteOdbNetworkRequest.newBuilder()
                                              +   *           .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   oracleDatabaseClient.deleteOdbNetworkAsync(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 deleteOdbNetworkAsync( + DeleteOdbNetworkRequest request) { + return deleteOdbNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteOdbNetworkRequest request =
                                              +   *       DeleteOdbNetworkRequest.newBuilder()
                                              +   *           .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.deleteOdbNetworkOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + deleteOdbNetworkOperationCallable() { + return stub.deleteOdbNetworkOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteOdbNetworkRequest request =
                                              +   *       DeleteOdbNetworkRequest.newBuilder()
                                              +   *           .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.deleteOdbNetworkCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable deleteOdbNetworkCallable() { + return stub.deleteOdbNetworkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the ODB Subnets in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
                                              +   *   for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the OdbSubnet in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOdbSubnetsPagedResponse listOdbSubnets(OdbNetworkName parent) { + ListOdbSubnetsRequest request = + ListOdbSubnetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOdbSubnets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the ODB Subnets in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
                                              +   *   for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the OdbSubnet in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOdbSubnetsPagedResponse listOdbSubnets(String parent) { + ListOdbSubnetsRequest request = ListOdbSubnetsRequest.newBuilder().setParent(parent).build(); + return listOdbSubnets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the ODB Subnets in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListOdbSubnetsRequest request =
                                              +   *       ListOdbSubnetsRequest.newBuilder()
                                              +   *           .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(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 ListOdbSubnetsPagedResponse listOdbSubnets(ListOdbSubnetsRequest request) { + return listOdbSubnetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the ODB Subnets in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListOdbSubnetsRequest request =
                                              +   *       ListOdbSubnetsRequest.newBuilder()
                                              +   *           .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.listOdbSubnetsPagedCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   for (OdbSubnet element : future.get().iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listOdbSubnetsPagedCallable() { + return stub.listOdbSubnetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the ODB Subnets in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListOdbSubnetsRequest request =
                                              +   *       ListOdbSubnetsRequest.newBuilder()
                                              +   *           .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   while (true) {
                                              +   *     ListOdbSubnetsResponse response =
                                              +   *         oracleDatabaseClient.listOdbSubnetsCallable().call(request);
                                              +   *     for (OdbSubnet element : response.getOdbSubnetsList()) {
                                              +   *       // doThingsWith(element);
                                              +   *     }
                                              +   *     String nextPageToken = response.getNextPageToken();
                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              +   *     } else {
                                              +   *       break;
                                              +   *     }
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + listOdbSubnetsCallable() { + return stub.listOdbSubnetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ODB Subnet. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   OdbSubnetName name =
                                              +   *       OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]");
                                              +   *   OdbSubnet response = oracleDatabaseClient.getOdbSubnet(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the OdbSubnet in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OdbSubnet getOdbSubnet(OdbSubnetName name) { + GetOdbSubnetRequest request = + GetOdbSubnetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getOdbSubnet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ODB Subnet. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]").toString();
                                              +   *   OdbSubnet response = oracleDatabaseClient.getOdbSubnet(name);
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the OdbSubnet in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OdbSubnet getOdbSubnet(String name) { + GetOdbSubnetRequest request = GetOdbSubnetRequest.newBuilder().setName(name).build(); + return getOdbSubnet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ODB Subnet. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetOdbSubnetRequest request =
                                              +   *       GetOdbSubnetRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   OdbSubnet response = oracleDatabaseClient.getOdbSubnet(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 OdbSubnet getOdbSubnet(GetOdbSubnetRequest request) { + return getOdbSubnetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ODB Subnet. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   GetOdbSubnetRequest request =
                                              +   *       GetOdbSubnetRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                                              +   *                   .toString())
                                              +   *           .build();
                                              +   *   ApiFuture future = oracleDatabaseClient.getOdbSubnetCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   OdbSubnet response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable getOdbSubnetCallable() { + return stub.getOdbSubnetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Subnet in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]");
                                              +   *   OdbSubnet odbSubnet = OdbSubnet.newBuilder().build();
                                              +   *   String odbSubnetId = "odbSubnetId1186954661";
                                              +   *   OdbSubnet response =
                                              +   *       oracleDatabaseClient.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the OdbSubnet in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}. + * @param odbSubnet Required. Details of the OdbSubnet instance to create. + * @param odbSubnetId Required. The ID of the OdbSubnet to create. This value is restricted to + * (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The + * value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createOdbSubnetAsync( + OdbNetworkName parent, OdbSubnet odbSubnet, String odbSubnetId) { + CreateOdbSubnetRequest request = + CreateOdbSubnetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setOdbSubnet(odbSubnet) + .setOdbSubnetId(odbSubnetId) + .build(); + return createOdbSubnetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Subnet in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString();
                                              +   *   OdbSubnet odbSubnet = OdbSubnet.newBuilder().build();
                                              +   *   String odbSubnetId = "odbSubnetId1186954661";
                                              +   *   OdbSubnet response =
                                              +   *       oracleDatabaseClient.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get();
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for the OdbSubnet in the following format: + * projects/{project}/locations/{location}/odbNetworks/{odb_network}. + * @param odbSubnet Required. Details of the OdbSubnet instance to create. + * @param odbSubnetId Required. The ID of the OdbSubnet to create. This value is restricted to + * (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The + * value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createOdbSubnetAsync( + String parent, OdbSubnet odbSubnet, String odbSubnetId) { + CreateOdbSubnetRequest request = + CreateOdbSubnetRequest.newBuilder() + .setParent(parent) + .setOdbSubnet(odbSubnet) + .setOdbSubnetId(odbSubnetId) + .build(); + return createOdbSubnetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Subnet in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateOdbSubnetRequest request =
                                              +   *       CreateOdbSubnetRequest.newBuilder()
                                              +   *           .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .setOdbSubnetId("odbSubnetId1186954661")
                                              +   *           .setOdbSubnet(OdbSubnet.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OdbSubnet response = oracleDatabaseClient.createOdbSubnetAsync(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 createOdbSubnetAsync( + CreateOdbSubnetRequest request) { + return createOdbSubnetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Subnet in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateOdbSubnetRequest request =
                                              +   *       CreateOdbSubnetRequest.newBuilder()
                                              +   *           .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .setOdbSubnetId("odbSubnetId1186954661")
                                              +   *           .setOdbSubnet(OdbSubnet.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.createOdbSubnetOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   OdbSubnet response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + createOdbSubnetOperationCallable() { + return stub.createOdbSubnetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ODB Subnet in a given ODB Network. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateOdbSubnetRequest request =
                                              +   *       CreateOdbSubnetRequest.newBuilder()
                                              +   *           .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString())
                                              +   *           .setOdbSubnetId("odbSubnetId1186954661")
                                              +   *           .setOdbSubnet(OdbSubnet.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.createOdbSubnetCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable createOdbSubnetCallable() { + return stub.createOdbSubnetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Subnet. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   OdbSubnetName name =
                                              +   *       OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]");
                                              +   *   oracleDatabaseClient.deleteOdbSubnetAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the resource in the following format: + * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOdbSubnetAsync(OdbSubnetName name) { + DeleteOdbSubnetRequest request = + DeleteOdbSubnetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteOdbSubnetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Subnet. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String name =
                                              +   *       OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]").toString();
                                              +   *   oracleDatabaseClient.deleteOdbSubnetAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the resource in the following format: + * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOdbSubnetAsync(String name) { + DeleteOdbSubnetRequest request = DeleteOdbSubnetRequest.newBuilder().setName(name).build(); + return deleteOdbSubnetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Subnet. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteOdbSubnetRequest request =
                                              +   *       DeleteOdbSubnetRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   oracleDatabaseClient.deleteOdbSubnetAsync(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 deleteOdbSubnetAsync( + DeleteOdbSubnetRequest request) { + return deleteOdbSubnetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Subnet. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteOdbSubnetRequest request =
                                              +   *       DeleteOdbSubnetRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.deleteOdbSubnetOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + deleteOdbSubnetOperationCallable() { + return stub.deleteOdbSubnetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ODB Subnet. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   DeleteOdbSubnetRequest request =
                                              +   *       DeleteOdbSubnetRequest.newBuilder()
                                              +   *           .setName(
                                              +   *               OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]")
                                              +   *                   .toString())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.deleteOdbSubnetCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable deleteOdbSubnetCallable() { + return stub.deleteOdbSubnetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the Exadb (Exascale) VM Clusters for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (ExadbVmCluster element : oracleDatabaseClient.listExadbVmClusters(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for ExadbVmClusters in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExadbVmClustersPagedResponse listExadbVmClusters(LocationName parent) { + ListExadbVmClustersRequest request = + ListExadbVmClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExadbVmClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the Exadb (Exascale) VM Clusters for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              +   *   for (ExadbVmCluster element : oracleDatabaseClient.listExadbVmClusters(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * + * @param parent Required. The parent value for ExadbVmClusters in the following format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExadbVmClustersPagedResponse listExadbVmClusters(String parent) { + ListExadbVmClustersRequest request = + ListExadbVmClustersRequest.newBuilder().setParent(parent).build(); + return listExadbVmClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the Exadb (Exascale) VM Clusters for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ListExadbVmClustersRequest request =
                                              +   *       ListExadbVmClustersRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setPageSize(883849137)
                                              +   *           .setPageToken("pageToken873572522")
                                              +   *           .setFilter("filter-1274492040")
                                              +   *           .setOrderBy("orderBy-1207110587")
                                              +   *           .build();
                                              +   *   for (ExadbVmCluster element :
                                              +   *       oracleDatabaseClient.listExadbVmClusters(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 ListExadbVmClustersPagedResponse listExadbVmClusters( + ListExadbVmClustersRequest request) { + return listExadbVmClustersPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Exadata Infrastructures in a given project and location. + * Lists all the Exadb (Exascale) VM Clusters for the given project and location. * *

                                              Sample code: * @@ -843,30 +7707,31 @@ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfras * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListCloudExadataInfrastructuresRequest request = - * ListCloudExadataInfrastructuresRequest.newBuilder() + * ListExadbVmClustersRequest request = + * ListExadbVmClustersRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * oracleDatabaseClient.listCloudExadataInfrastructuresPagedCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.listExadbVmClustersPagedCallable().futureCall(request); * // Do something. - * for (CloudExadataInfrastructure element : future.get().iterateAll()) { + * for (ExadbVmCluster element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

                                              */ - public final UnaryCallable< - ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresPagedResponse> - listCloudExadataInfrastructuresPagedCallable() { - return stub.listCloudExadataInfrastructuresPagedCallable(); + public final UnaryCallable + listExadbVmClustersPagedCallable() { + return stub.listExadbVmClustersPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Exadata Infrastructures in a given project and location. + * Lists all the Exadb (Exascale) VM Clusters for the given project and location. * *

                                              Sample code: * @@ -877,16 +7742,18 @@ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfras * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListCloudExadataInfrastructuresRequest request = - * ListCloudExadataInfrastructuresRequest.newBuilder() + * ListExadbVmClustersRequest request = + * ListExadbVmClustersRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * ListCloudExadataInfrastructuresResponse response = - * oracleDatabaseClient.listCloudExadataInfrastructuresCallable().call(request); - * for (CloudExadataInfrastructure element : response.getCloudExadataInfrastructuresList()) { + * ListExadbVmClustersResponse response = + * oracleDatabaseClient.listExadbVmClustersCallable().call(request); + * for (ExadbVmCluster element : response.getExadbVmClustersList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -899,15 +7766,14 @@ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfras * } * }

                                              */ - public final UnaryCallable< - ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> - listCloudExadataInfrastructuresCallable() { - return stub.listCloudExadataInfrastructuresCallable(); + public final UnaryCallable + listExadbVmClustersCallable() { + return stub.listExadbVmClustersCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Exadata Infrastructure. + * Gets details of a single Exadb (Exascale) VM Cluster. * *

                                              Sample code: * @@ -918,30 +7784,27 @@ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfras * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CloudExadataInfrastructureName name = - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); - * CloudExadataInfrastructure response = - * oracleDatabaseClient.getCloudExadataInfrastructure(name); + * ExadbVmClusterName name = + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + * ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(name); * } * } * - * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: - * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @param name Required. The name of the ExadbVmCluster in the following format: + * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloudExadataInfrastructure getCloudExadataInfrastructure( - CloudExadataInfrastructureName name) { - GetCloudExadataInfrastructureRequest request = - GetCloudExadataInfrastructureRequest.newBuilder() + public final ExadbVmCluster getExadbVmCluster(ExadbVmClusterName name) { + GetExadbVmClusterRequest request = + GetExadbVmClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getCloudExadataInfrastructure(request); + return getExadbVmCluster(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Exadata Infrastructure. + * Gets details of a single Exadb (Exascale) VM Cluster. * *

                                              Sample code: * @@ -953,27 +7816,23 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { * String name = - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString(); - * CloudExadataInfrastructure response = - * oracleDatabaseClient.getCloudExadataInfrastructure(name); + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString(); + * ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(name); * } * } * - * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: - * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @param name Required. The name of the ExadbVmCluster in the following format: + * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloudExadataInfrastructure getCloudExadataInfrastructure(String name) { - GetCloudExadataInfrastructureRequest request = - GetCloudExadataInfrastructureRequest.newBuilder().setName(name).build(); - return getCloudExadataInfrastructure(request); + public final ExadbVmCluster getExadbVmCluster(String name) { + GetExadbVmClusterRequest request = GetExadbVmClusterRequest.newBuilder().setName(name).build(); + return getExadbVmCluster(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Exadata Infrastructure. + * Gets details of a single Exadb (Exascale) VM Cluster. * *

                                              Sample code: * @@ -984,29 +7843,25 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure(String nam * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * GetCloudExadataInfrastructureRequest request = - * GetCloudExadataInfrastructureRequest.newBuilder() + * GetExadbVmClusterRequest request = + * GetExadbVmClusterRequest.newBuilder() * .setName( - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString()) + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) * .build(); - * CloudExadataInfrastructure response = - * oracleDatabaseClient.getCloudExadataInfrastructure(request); + * ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(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 CloudExadataInfrastructure getCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request) { - return getCloudExadataInfrastructureCallable().call(request); + public final ExadbVmCluster getExadbVmCluster(GetExadbVmClusterRequest request) { + return getExadbVmClusterCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Exadata Infrastructure. + * Gets details of a single Exadb (Exascale) VM Cluster. * *

                                              Sample code: * @@ -1017,28 +7872,25 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * GetCloudExadataInfrastructureRequest request = - * GetCloudExadataInfrastructureRequest.newBuilder() + * GetExadbVmClusterRequest request = + * GetExadbVmClusterRequest.newBuilder() * .setName( - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString()) + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) * .build(); - * ApiFuture future = - * oracleDatabaseClient.getCloudExadataInfrastructureCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.getExadbVmClusterCallable().futureCall(request); * // Do something. - * CloudExadataInfrastructure response = future.get(); + * ExadbVmCluster response = future.get(); * } * } */ - public final UnaryCallable - getCloudExadataInfrastructureCallable() { - return stub.getCloudExadataInfrastructureCallable(); + public final UnaryCallable getExadbVmClusterCallable() { + return stub.getExadbVmClusterCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Exadata Infrastructure in a given project and location. + * Creates a new Exadb (Exascale) VM Cluster resource. * *

                                              Sample code: * @@ -1050,43 +7902,37 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * CloudExadataInfrastructure cloudExadataInfrastructure = - * CloudExadataInfrastructure.newBuilder().build(); - * String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409"; - * CloudExadataInfrastructure response = + * ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + * String exadbVmClusterId = "exadbVmClusterId1890152722"; + * ExadbVmCluster response = * oracleDatabaseClient - * .createCloudExadataInfrastructureAsync( - * parent, cloudExadataInfrastructure, cloudExadataInfrastructureId) + * .createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId) * .get(); * } * } * - * @param parent Required. The parent value for CloudExadataInfrastructure in the following - * format: projects/{project}/locations/{location}. - * @param cloudExadataInfrastructure Required. Details of the Exadata Infrastructure instance to - * create. - * @param cloudExadataInfrastructureId Required. The ID of the Exadata Infrastructure to create. - * This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 - * characters in length. The value must start with a letter and end with a letter or a number. + * @param parent Required. The value for parent of the ExadbVmCluster in the following format: + * projects/{project}/locations/{location}. + * @param exadbVmCluster Required. The resource being created. + * @param exadbVmClusterId Required. The ID of the ExadbVmCluster to create. This value is + * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in + * length. The value must start with a letter and end with a letter or a number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - createCloudExadataInfrastructureAsync( - LocationName parent, - CloudExadataInfrastructure cloudExadataInfrastructure, - String cloudExadataInfrastructureId) { - CreateCloudExadataInfrastructureRequest request = - CreateCloudExadataInfrastructureRequest.newBuilder() + public final OperationFuture createExadbVmClusterAsync( + LocationName parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId) { + CreateExadbVmClusterRequest request = + CreateExadbVmClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setCloudExadataInfrastructure(cloudExadataInfrastructure) - .setCloudExadataInfrastructureId(cloudExadataInfrastructureId) + .setExadbVmCluster(exadbVmCluster) + .setExadbVmClusterId(exadbVmClusterId) .build(); - return createCloudExadataInfrastructureAsync(request); + return createExadbVmClusterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Exadata Infrastructure in a given project and location. + * Creates a new Exadb (Exascale) VM Cluster resource. * *

                                              Sample code: * @@ -1098,43 +7944,165 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * CloudExadataInfrastructure cloudExadataInfrastructure = - * CloudExadataInfrastructure.newBuilder().build(); - * String cloudExadataInfrastructureId = "cloudExadataInfrastructureId975345409"; - * CloudExadataInfrastructure response = + * ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + * String exadbVmClusterId = "exadbVmClusterId1890152722"; + * ExadbVmCluster response = * oracleDatabaseClient - * .createCloudExadataInfrastructureAsync( - * parent, cloudExadataInfrastructure, cloudExadataInfrastructureId) + * .createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId) * .get(); * } * } * - * @param parent Required. The parent value for CloudExadataInfrastructure in the following - * format: projects/{project}/locations/{location}. - * @param cloudExadataInfrastructure Required. Details of the Exadata Infrastructure instance to - * create. - * @param cloudExadataInfrastructureId Required. The ID of the Exadata Infrastructure to create. - * This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 - * characters in length. The value must start with a letter and end with a letter or a number. + * @param parent Required. The value for parent of the ExadbVmCluster in the following format: + * projects/{project}/locations/{location}. + * @param exadbVmCluster Required. The resource being created. + * @param exadbVmClusterId Required. The ID of the ExadbVmCluster to create. This value is + * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in + * length. The value must start with a letter and end with a letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createExadbVmClusterAsync( + String parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId) { + CreateExadbVmClusterRequest request = + CreateExadbVmClusterRequest.newBuilder() + .setParent(parent) + .setExadbVmCluster(exadbVmCluster) + .setExadbVmClusterId(exadbVmClusterId) + .build(); + return createExadbVmClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadb (Exascale) VM Cluster resource. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateExadbVmClusterRequest request =
                                              +   *       CreateExadbVmClusterRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setExadbVmClusterId("exadbVmClusterId1890152722")
                                              +   *           .setExadbVmCluster(ExadbVmCluster.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ExadbVmCluster response = oracleDatabaseClient.createExadbVmClusterAsync(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 createExadbVmClusterAsync( + CreateExadbVmClusterRequest request) { + return createExadbVmClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadb (Exascale) VM Cluster resource. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateExadbVmClusterRequest request =
                                              +   *       CreateExadbVmClusterRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setExadbVmClusterId("exadbVmClusterId1890152722")
                                              +   *           .setExadbVmCluster(ExadbVmCluster.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       oracleDatabaseClient.createExadbVmClusterOperationCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   ExadbVmCluster response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final OperationCallable + createExadbVmClusterOperationCallable() { + return stub.createExadbVmClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Exadb (Exascale) VM Cluster resource. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   CreateExadbVmClusterRequest request =
                                              +   *       CreateExadbVmClusterRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .setExadbVmClusterId("exadbVmClusterId1890152722")
                                              +   *           .setExadbVmCluster(ExadbVmCluster.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       oracleDatabaseClient.createExadbVmClusterCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   Operation response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable + createExadbVmClusterCallable() { + return stub.createExadbVmClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Exadb (Exascale) VM Cluster. + * + *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   ExadbVmClusterName name =
                                              +   *       ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]");
                                              +   *   oracleDatabaseClient.deleteExadbVmClusterAsync(name).get();
                                              +   * }
                                              +   * }
                                              + * + * @param name Required. The name of the ExadbVmCluster in the following format: + * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - createCloudExadataInfrastructureAsync( - String parent, - CloudExadataInfrastructure cloudExadataInfrastructure, - String cloudExadataInfrastructureId) { - CreateCloudExadataInfrastructureRequest request = - CreateCloudExadataInfrastructureRequest.newBuilder() - .setParent(parent) - .setCloudExadataInfrastructure(cloudExadataInfrastructure) - .setCloudExadataInfrastructureId(cloudExadataInfrastructureId) + public final OperationFuture deleteExadbVmClusterAsync( + ExadbVmClusterName name) { + DeleteExadbVmClusterRequest request = + DeleteExadbVmClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createCloudExadataInfrastructureAsync(request); + return deleteExadbVmClusterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Exadata Infrastructure in a given project and location. + * Deletes a single Exadb (Exascale) VM Cluster. * *

                                              Sample code: * @@ -1145,29 +8113,25 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CreateCloudExadataInfrastructureRequest request = - * CreateCloudExadataInfrastructureRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409") - * .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * CloudExadataInfrastructure response = - * oracleDatabaseClient.createCloudExadataInfrastructureAsync(request).get(); + * String name = + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString(); + * oracleDatabaseClient.deleteExadbVmClusterAsync(name).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the ExadbVmCluster in the following format: + * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest request) { - return createCloudExadataInfrastructureOperationCallable().futureCall(request); + public final OperationFuture deleteExadbVmClusterAsync(String name) { + DeleteExadbVmClusterRequest request = + DeleteExadbVmClusterRequest.newBuilder().setName(name).build(); + return deleteExadbVmClusterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Exadata Infrastructure in a given project and location. + * Deletes a single Exadb (Exascale) VM Cluster. * *

                                              Sample code: * @@ -1178,31 +8142,27 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CreateCloudExadataInfrastructureRequest request = - * CreateCloudExadataInfrastructureRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409") - * .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build()) + * DeleteExadbVmClusterRequest request = + * DeleteExadbVmClusterRequest.newBuilder() + * .setName( + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * oracleDatabaseClient - * .createCloudExadataInfrastructureOperationCallable() - * .futureCall(request); - * // Do something. - * CloudExadataInfrastructure response = future.get(); + * oracleDatabaseClient.deleteExadbVmClusterAsync(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 OperationCallable< - CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> - createCloudExadataInfrastructureOperationCallable() { - return stub.createCloudExadataInfrastructureOperationCallable(); + public final OperationFuture deleteExadbVmClusterAsync( + DeleteExadbVmClusterRequest request) { + return deleteExadbVmClusterOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Exadata Infrastructure in a given project and location. + * Deletes a single Exadb (Exascale) VM Cluster. * *

                                              Sample code: * @@ -1213,28 +8173,27 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CreateCloudExadataInfrastructureRequest request = - * CreateCloudExadataInfrastructureRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setCloudExadataInfrastructureId("cloudExadataInfrastructureId975345409") - * .setCloudExadataInfrastructure(CloudExadataInfrastructure.newBuilder().build()) + * DeleteExadbVmClusterRequest request = + * DeleteExadbVmClusterRequest.newBuilder() + * .setName( + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * oracleDatabaseClient.createCloudExadataInfrastructureCallable().futureCall(request); + * OperationFuture future = + * oracleDatabaseClient.deleteExadbVmClusterOperationCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - createCloudExadataInfrastructureCallable() { - return stub.createCloudExadataInfrastructureCallable(); + public final OperationCallable + deleteExadbVmClusterOperationCallable() { + return stub.deleteExadbVmClusterOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Exadata Infrastructure. + * Deletes a single Exadb (Exascale) VM Cluster. * *

                                              Sample code: * @@ -1245,29 +8204,28 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CloudExadataInfrastructureName name = - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); - * oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get(); + * DeleteExadbVmClusterRequest request = + * DeleteExadbVmClusterRequest.newBuilder() + * .setName( + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture future = + * oracleDatabaseClient.deleteExadbVmClusterCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: - * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteCloudExadataInfrastructureAsync( - CloudExadataInfrastructureName name) { - DeleteCloudExadataInfrastructureRequest request = - DeleteCloudExadataInfrastructureRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return deleteCloudExadataInfrastructureAsync(request); + public final UnaryCallable + deleteExadbVmClusterCallable() { + return stub.deleteExadbVmClusterCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Exadata Infrastructure. + * Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm + * cluster, only pass the node count. * *

                                              Sample code: * @@ -1278,28 +8236,33 @@ public final OperationFuture deleteCloudExadataInfrast * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String name = - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString(); - * oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(name).get(); + * ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * ExadbVmCluster response = + * oracleDatabaseClient.updateExadbVmClusterAsync(exadbVmCluster, updateMask).get(); * } * } * - * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: - * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @param exadbVmCluster Required. The resource being updated. + * @param updateMask Optional. A mask specifying which fields in th VM Cluster should be updated. + * A field specified in the mask is overwritten. If a mask isn't provided then all the fields + * in the VM Cluster are overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteCloudExadataInfrastructureAsync( - String name) { - DeleteCloudExadataInfrastructureRequest request = - DeleteCloudExadataInfrastructureRequest.newBuilder().setName(name).build(); - return deleteCloudExadataInfrastructureAsync(request); + public final OperationFuture updateExadbVmClusterAsync( + ExadbVmCluster exadbVmCluster, FieldMask updateMask) { + UpdateExadbVmClusterRequest request = + UpdateExadbVmClusterRequest.newBuilder() + .setExadbVmCluster(exadbVmCluster) + .setUpdateMask(updateMask) + .build(); + return updateExadbVmClusterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Exadata Infrastructure. + * Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm + * cluster, only pass the node count. * *

                                              Sample code: * @@ -1310,30 +8273,28 @@ public final OperationFuture deleteCloudExadataInfrast * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * DeleteCloudExadataInfrastructureRequest request = - * DeleteCloudExadataInfrastructureRequest.newBuilder() - * .setName( - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString()) + * UpdateExadbVmClusterRequest request = + * UpdateExadbVmClusterRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setExadbVmCluster(ExadbVmCluster.newBuilder().build()) * .setRequestId("requestId693933066") - * .setForce(true) * .build(); - * oracleDatabaseClient.deleteCloudExadataInfrastructureAsync(request).get(); + * ExadbVmCluster response = oracleDatabaseClient.updateExadbVmClusterAsync(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 deleteCloudExadataInfrastructureAsync( - DeleteCloudExadataInfrastructureRequest request) { - return deleteCloudExadataInfrastructureOperationCallable().futureCall(request); + public final OperationFuture updateExadbVmClusterAsync( + UpdateExadbVmClusterRequest request) { + return updateExadbVmClusterOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Exadata Infrastructure. + * Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm + * cluster, only pass the node count. * *

                                              Sample code: * @@ -1344,32 +8305,28 @@ public final OperationFuture deleteCloudExadataInfrast * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * DeleteCloudExadataInfrastructureRequest request = - * DeleteCloudExadataInfrastructureRequest.newBuilder() - * .setName( - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString()) + * UpdateExadbVmClusterRequest request = + * UpdateExadbVmClusterRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setExadbVmCluster(ExadbVmCluster.newBuilder().build()) * .setRequestId("requestId693933066") - * .setForce(true) * .build(); - * OperationFuture future = - * oracleDatabaseClient - * .deleteCloudExadataInfrastructureOperationCallable() - * .futureCall(request); + * OperationFuture future = + * oracleDatabaseClient.updateExadbVmClusterOperationCallable().futureCall(request); * // Do something. - * future.get(); + * ExadbVmCluster response = future.get(); * } * } */ - public final OperationCallable - deleteCloudExadataInfrastructureOperationCallable() { - return stub.deleteCloudExadataInfrastructureOperationCallable(); + public final OperationCallable + updateExadbVmClusterOperationCallable() { + return stub.updateExadbVmClusterOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Exadata Infrastructure. + * Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm + * cluster, only pass the node count. * *

                                              Sample code: * @@ -1380,30 +8337,27 @@ public final OperationFuture deleteCloudExadataInfrast * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * DeleteCloudExadataInfrastructureRequest request = - * DeleteCloudExadataInfrastructureRequest.newBuilder() - * .setName( - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString()) + * UpdateExadbVmClusterRequest request = + * UpdateExadbVmClusterRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setExadbVmCluster(ExadbVmCluster.newBuilder().build()) * .setRequestId("requestId693933066") - * .setForce(true) * .build(); * ApiFuture future = - * oracleDatabaseClient.deleteCloudExadataInfrastructureCallable().futureCall(request); + * oracleDatabaseClient.updateExadbVmClusterCallable().futureCall(request); * // Do something. - * future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable - deleteCloudExadataInfrastructureCallable() { - return stub.deleteCloudExadataInfrastructureCallable(); + public final UnaryCallable + updateExadbVmClusterCallable() { + return stub.updateExadbVmClusterCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the VM Clusters in a given project and location. + * Removes virtual machines from an existing exadb vm cluster. * *

                                              Sample code: * @@ -1414,28 +8368,33 @@ public final OperationFuture deleteCloudExadataInfrast * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) { - * // doThingsWith(element); - * } + * ExadbVmClusterName name = + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + * List hostnames = new ArrayList<>(); + * ExadbVmCluster response = + * oracleDatabaseClient.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get(); * } * } * - * @param parent Required. The name of the parent in the following format: - * projects/{project}/locations/{location}. + * @param name Required. The name of the ExadbVmCluster in the following format: + * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. + * @param hostnames Required. The list of host names of db nodes to be removed from the + * ExadbVmCluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCloudVmClustersPagedResponse listCloudVmClusters(LocationName parent) { - ListCloudVmClustersRequest request = - ListCloudVmClustersRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final OperationFuture + removeVirtualMachineExadbVmClusterAsync(ExadbVmClusterName name, List hostnames) { + RemoveVirtualMachineExadbVmClusterRequest request = + RemoveVirtualMachineExadbVmClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .addAllHostnames(hostnames) .build(); - return listCloudVmClusters(request); + return removeVirtualMachineExadbVmClusterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the VM Clusters in a given project and location. + * Removes virtual machines from an existing exadb vm cluster. * *

                                              Sample code: * @@ -1446,26 +8405,33 @@ public final ListCloudVmClustersPagedResponse listCloudVmClusters(LocationName p * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (CloudVmCluster element : oracleDatabaseClient.listCloudVmClusters(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString(); + * List hostnames = new ArrayList<>(); + * ExadbVmCluster response = + * oracleDatabaseClient.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get(); * } * } * - * @param parent Required. The name of the parent in the following format: - * projects/{project}/locations/{location}. + * @param name Required. The name of the ExadbVmCluster in the following format: + * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. + * @param hostnames Required. The list of host names of db nodes to be removed from the + * ExadbVmCluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCloudVmClustersPagedResponse listCloudVmClusters(String parent) { - ListCloudVmClustersRequest request = - ListCloudVmClustersRequest.newBuilder().setParent(parent).build(); - return listCloudVmClusters(request); + public final OperationFuture + removeVirtualMachineExadbVmClusterAsync(String name, List hostnames) { + RemoveVirtualMachineExadbVmClusterRequest request = + RemoveVirtualMachineExadbVmClusterRequest.newBuilder() + .setName(name) + .addAllHostnames(hostnames) + .build(); + return removeVirtualMachineExadbVmClusterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the VM Clusters in a given project and location. + * Removes virtual machines from an existing exadb vm cluster. * *

                                              Sample code: * @@ -1476,31 +8442,29 @@ public final ListCloudVmClustersPagedResponse listCloudVmClusters(String parent) * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListCloudVmClustersRequest request = - * ListCloudVmClustersRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") + * RemoveVirtualMachineExadbVmClusterRequest request = + * RemoveVirtualMachineExadbVmClusterRequest.newBuilder() + * .setName( + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + * .setRequestId("requestId693933066") + * .addAllHostnames(new ArrayList()) * .build(); - * for (CloudVmCluster element : - * oracleDatabaseClient.listCloudVmClusters(request).iterateAll()) { - * // doThingsWith(element); - * } + * ExadbVmCluster response = + * oracleDatabaseClient.removeVirtualMachineExadbVmClusterAsync(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 ListCloudVmClustersPagedResponse listCloudVmClusters( - ListCloudVmClustersRequest request) { - return listCloudVmClustersPagedCallable().call(request); + public final OperationFuture + removeVirtualMachineExadbVmClusterAsync(RemoveVirtualMachineExadbVmClusterRequest request) { + return removeVirtualMachineExadbVmClusterOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the VM Clusters in a given project and location. + * Removes virtual machines from an existing exadb vm cluster. * *

                                              Sample code: * @@ -1511,30 +8475,31 @@ public final ListCloudVmClustersPagedResponse listCloudVmClusters( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListCloudVmClustersRequest request = - * ListCloudVmClustersRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") + * RemoveVirtualMachineExadbVmClusterRequest request = + * RemoveVirtualMachineExadbVmClusterRequest.newBuilder() + * .setName( + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + * .setRequestId("requestId693933066") + * .addAllHostnames(new ArrayList()) * .build(); - * ApiFuture future = - * oracleDatabaseClient.listCloudVmClustersPagedCallable().futureCall(request); + * OperationFuture future = + * oracleDatabaseClient + * .removeVirtualMachineExadbVmClusterOperationCallable() + * .futureCall(request); * // Do something. - * for (CloudVmCluster element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * ExadbVmCluster response = future.get(); * } * } */ - public final UnaryCallable - listCloudVmClustersPagedCallable() { - return stub.listCloudVmClustersPagedCallable(); + public final OperationCallable< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationCallable() { + return stub.removeVirtualMachineExadbVmClusterOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the VM Clusters in a given project and location. + * Removes virtual machines from an existing exadb vm cluster. * *

                                              Sample code: * @@ -1545,37 +8510,28 @@ public final ListCloudVmClustersPagedResponse listCloudVmClusters( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListCloudVmClustersRequest request = - * ListCloudVmClustersRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") + * RemoveVirtualMachineExadbVmClusterRequest request = + * RemoveVirtualMachineExadbVmClusterRequest.newBuilder() + * .setName( + * ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + * .setRequestId("requestId693933066") + * .addAllHostnames(new ArrayList()) * .build(); - * while (true) { - * ListCloudVmClustersResponse response = - * oracleDatabaseClient.listCloudVmClustersCallable().call(request); - * for (CloudVmCluster element : response.getCloudVmClustersList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * oracleDatabaseClient.removeVirtualMachineExadbVmClusterCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable - listCloudVmClustersCallable() { - return stub.listCloudVmClustersCallable(); + public final UnaryCallable + removeVirtualMachineExadbVmClusterCallable() { + return stub.removeVirtualMachineExadbVmClusterCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single VM Cluster. + * Lists all the ExascaleDB Storage Vaults for the given project and location. * *

                                              Sample code: * @@ -1586,27 +8542,30 @@ public final ListCloudVmClustersPagedResponse listCloudVmClusters( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CloudVmClusterName name = - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); - * CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (ExascaleDbStorageVault element : + * oracleDatabaseClient.listExascaleDbStorageVaults(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the Cloud VM Cluster in the following format: - * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @param parent Required. The parent value for ExascaleDbStorageVault in the following format: + * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloudVmCluster getCloudVmCluster(CloudVmClusterName name) { - GetCloudVmClusterRequest request = - GetCloudVmClusterRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final ListExascaleDbStorageVaultsPagedResponse listExascaleDbStorageVaults( + LocationName parent) { + ListExascaleDbStorageVaultsRequest request = + ListExascaleDbStorageVaultsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - return getCloudVmCluster(request); + return listExascaleDbStorageVaults(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single VM Cluster. + * Lists all the ExascaleDB Storage Vaults for the given project and location. * *

                                              Sample code: * @@ -1617,24 +8576,27 @@ public final CloudVmCluster getCloudVmCluster(CloudVmClusterName name) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String name = - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString(); - * CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(name); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (ExascaleDbStorageVault element : + * oracleDatabaseClient.listExascaleDbStorageVaults(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the Cloud VM Cluster in the following format: - * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @param parent Required. The parent value for ExascaleDbStorageVault in the following format: + * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloudVmCluster getCloudVmCluster(String name) { - GetCloudVmClusterRequest request = GetCloudVmClusterRequest.newBuilder().setName(name).build(); - return getCloudVmCluster(request); + public final ListExascaleDbStorageVaultsPagedResponse listExascaleDbStorageVaults(String parent) { + ListExascaleDbStorageVaultsRequest request = + ListExascaleDbStorageVaultsRequest.newBuilder().setParent(parent).build(); + return listExascaleDbStorageVaults(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single VM Cluster. + * Lists all the ExascaleDB Storage Vaults for the given project and location. * *

                                              Sample code: * @@ -1645,25 +8607,32 @@ public final CloudVmCluster getCloudVmCluster(String name) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * GetCloudVmClusterRequest request = - * GetCloudVmClusterRequest.newBuilder() - * .setName( - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + * ListExascaleDbStorageVaultsRequest request = + * ListExascaleDbStorageVaultsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * CloudVmCluster response = oracleDatabaseClient.getCloudVmCluster(request); + * for (ExascaleDbStorageVault element : + * oracleDatabaseClient.listExascaleDbStorageVaults(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 CloudVmCluster getCloudVmCluster(GetCloudVmClusterRequest request) { - return getCloudVmClusterCallable().call(request); + public final ListExascaleDbStorageVaultsPagedResponse listExascaleDbStorageVaults( + ListExascaleDbStorageVaultsRequest request) { + return listExascaleDbStorageVaultsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single VM Cluster. + * Lists all the ExascaleDB Storage Vaults for the given project and location. * *

                                              Sample code: * @@ -1674,25 +8643,32 @@ public final CloudVmCluster getCloudVmCluster(GetCloudVmClusterRequest 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * GetCloudVmClusterRequest request = - * GetCloudVmClusterRequest.newBuilder() - * .setName( - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + * ListExascaleDbStorageVaultsRequest request = + * ListExascaleDbStorageVaultsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * oracleDatabaseClient.getCloudVmClusterCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.listExascaleDbStorageVaultsPagedCallable().futureCall(request); * // Do something. - * CloudVmCluster response = future.get(); + * for (ExascaleDbStorageVault element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable getCloudVmClusterCallable() { - return stub.getCloudVmClusterCallable(); + public final UnaryCallable< + ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsPagedResponse> + listExascaleDbStorageVaultsPagedCallable() { + return stub.listExascaleDbStorageVaultsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VM Cluster in a given project and location. + * Lists all the ExascaleDB Storage Vaults for the given project and location. * *

                                              Sample code: * @@ -1703,38 +8679,39 @@ public final UnaryCallable getCloudVmC * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build(); - * String cloudVmClusterId = "cloudVmClusterId-1217103287"; - * CloudVmCluster response = - * oracleDatabaseClient - * .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId) - * .get(); + * ListExascaleDbStorageVaultsRequest request = + * ListExascaleDbStorageVaultsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * while (true) { + * ListExascaleDbStorageVaultsResponse response = + * oracleDatabaseClient.listExascaleDbStorageVaultsCallable().call(request); + * for (ExascaleDbStorageVault element : response.getExascaleDbStorageVaultsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param parent Required. The name of the parent in the following format: - * projects/{project}/locations/{location}. - * @param cloudVmCluster Required. The resource being created - * @param cloudVmClusterId Required. The ID of the VM Cluster to create. This value is restricted - * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. - * The value must start with a letter and end with a letter or a number. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createCloudVmClusterAsync( - LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) { - CreateCloudVmClusterRequest request = - CreateCloudVmClusterRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCloudVmCluster(cloudVmCluster) - .setCloudVmClusterId(cloudVmClusterId) - .build(); - return createCloudVmClusterAsync(request); + public final UnaryCallable< + ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse> + listExascaleDbStorageVaultsCallable() { + return stub.listExascaleDbStorageVaultsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VM Cluster in a given project and location. + * Gets details of a single ExascaleDB Storage Vault. * *

                                              Sample code: * @@ -1745,38 +8722,27 @@ public final OperationFuture createCloudVmClu * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * CloudVmCluster cloudVmCluster = CloudVmCluster.newBuilder().build(); - * String cloudVmClusterId = "cloudVmClusterId-1217103287"; - * CloudVmCluster response = - * oracleDatabaseClient - * .createCloudVmClusterAsync(parent, cloudVmCluster, cloudVmClusterId) - * .get(); + * ExascaleDbStorageVaultName name = + * ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + * ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(name); * } * } * - * @param parent Required. The name of the parent in the following format: - * projects/{project}/locations/{location}. - * @param cloudVmCluster Required. The resource being created - * @param cloudVmClusterId Required. The ID of the VM Cluster to create. This value is restricted - * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. - * The value must start with a letter and end with a letter or a number. + * @param name Required. The name of the ExascaleDbStorageVault in the following format: + * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createCloudVmClusterAsync( - String parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) { - CreateCloudVmClusterRequest request = - CreateCloudVmClusterRequest.newBuilder() - .setParent(parent) - .setCloudVmCluster(cloudVmCluster) - .setCloudVmClusterId(cloudVmClusterId) + public final ExascaleDbStorageVault getExascaleDbStorageVault(ExascaleDbStorageVaultName name) { + GetExascaleDbStorageVaultRequest request = + GetExascaleDbStorageVaultRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createCloudVmClusterAsync(request); + return getExascaleDbStorageVault(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VM Cluster in a given project and location. + * Gets details of a single ExascaleDB Storage Vault. * *

                                              Sample code: * @@ -1787,28 +8753,26 @@ public final OperationFuture createCloudVmClu * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CreateCloudVmClusterRequest request = - * CreateCloudVmClusterRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setCloudVmClusterId("cloudVmClusterId-1217103287") - * .setCloudVmCluster(CloudVmCluster.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * CloudVmCluster response = oracleDatabaseClient.createCloudVmClusterAsync(request).get(); + * String name = + * ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + * .toString(); + * ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the ExascaleDbStorageVault in the following format: + * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createCloudVmClusterAsync( - CreateCloudVmClusterRequest request) { - return createCloudVmClusterOperationCallable().futureCall(request); + public final ExascaleDbStorageVault getExascaleDbStorageVault(String name) { + GetExascaleDbStorageVaultRequest request = + GetExascaleDbStorageVaultRequest.newBuilder().setName(name).build(); + return getExascaleDbStorageVault(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VM Cluster in a given project and location. + * Gets details of a single ExascaleDB Storage Vault. * *

                                              Sample code: * @@ -1819,28 +8783,28 @@ public final OperationFuture createCloudVmClu * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CreateCloudVmClusterRequest request = - * CreateCloudVmClusterRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setCloudVmClusterId("cloudVmClusterId-1217103287") - * .setCloudVmCluster(CloudVmCluster.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetExascaleDbStorageVaultRequest request = + * GetExascaleDbStorageVaultRequest.newBuilder() + * .setName( + * ExascaleDbStorageVaultName.of( + * "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + * .toString()) * .build(); - * OperationFuture future = - * oracleDatabaseClient.createCloudVmClusterOperationCallable().futureCall(request); - * // Do something. - * CloudVmCluster response = future.get(); + * ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(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 OperationCallable - createCloudVmClusterOperationCallable() { - return stub.createCloudVmClusterOperationCallable(); + public final ExascaleDbStorageVault getExascaleDbStorageVault( + GetExascaleDbStorageVaultRequest request) { + return getExascaleDbStorageVaultCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new VM Cluster in a given project and location. + * Gets details of a single ExascaleDB Storage Vault. * *

                                              Sample code: * @@ -1851,28 +8815,28 @@ public final OperationFuture createCloudVmClu * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CreateCloudVmClusterRequest request = - * CreateCloudVmClusterRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setCloudVmClusterId("cloudVmClusterId-1217103287") - * .setCloudVmCluster(CloudVmCluster.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetExascaleDbStorageVaultRequest request = + * GetExascaleDbStorageVaultRequest.newBuilder() + * .setName( + * ExascaleDbStorageVaultName.of( + * "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + * .toString()) * .build(); - * ApiFuture future = - * oracleDatabaseClient.createCloudVmClusterCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.getExascaleDbStorageVaultCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * ExascaleDbStorageVault response = future.get(); * } * } */ - public final UnaryCallable - createCloudVmClusterCallable() { - return stub.createCloudVmClusterCallable(); + public final UnaryCallable + getExascaleDbStorageVaultCallable() { + return stub.getExascaleDbStorageVaultCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single VM Cluster. + * Creates a new ExascaleDB Storage Vault resource. * *

                                              Sample code: * @@ -1883,28 +8847,42 @@ public final OperationFuture createCloudVmClu * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CloudVmClusterName name = - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); - * oracleDatabaseClient.deleteCloudVmClusterAsync(name).get(); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + * String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + * ExascaleDbStorageVault response = + * oracleDatabaseClient + * .createExascaleDbStorageVaultAsync( + * parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + * .get(); * } * } * - * @param name Required. The name of the Cloud VM Cluster in the following format: - * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @param parent Required. The value for parent of the ExascaleDbStorageVault in the following + * format: projects/{project}/locations/{location}. + * @param exascaleDbStorageVault Required. The resource being created. + * @param exascaleDbStorageVaultId Required. The ID of the ExascaleDbStorageVault to create. This + * value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 + * characters in length. The value must start with a letter and end with a letter or a number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteCloudVmClusterAsync( - CloudVmClusterName name) { - DeleteCloudVmClusterRequest request = - DeleteCloudVmClusterRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final OperationFuture + createExascaleDbStorageVaultAsync( + LocationName parent, + ExascaleDbStorageVault exascaleDbStorageVault, + String exascaleDbStorageVaultId) { + CreateExascaleDbStorageVaultRequest request = + CreateExascaleDbStorageVaultRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExascaleDbStorageVault(exascaleDbStorageVault) + .setExascaleDbStorageVaultId(exascaleDbStorageVaultId) .build(); - return deleteCloudVmClusterAsync(request); + return createExascaleDbStorageVaultAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single VM Cluster. + * Creates a new ExascaleDB Storage Vault resource. * *

                                              Sample code: * @@ -1915,25 +8893,42 @@ public final OperationFuture deleteCloudVmClusterAsync * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String name = - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString(); - * oracleDatabaseClient.deleteCloudVmClusterAsync(name).get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + * String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + * ExascaleDbStorageVault response = + * oracleDatabaseClient + * .createExascaleDbStorageVaultAsync( + * parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + * .get(); * } * } * - * @param name Required. The name of the Cloud VM Cluster in the following format: - * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @param parent Required. The value for parent of the ExascaleDbStorageVault in the following + * format: projects/{project}/locations/{location}. + * @param exascaleDbStorageVault Required. The resource being created. + * @param exascaleDbStorageVaultId Required. The ID of the ExascaleDbStorageVault to create. This + * value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 + * characters in length. The value must start with a letter and end with a letter or a number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteCloudVmClusterAsync(String name) { - DeleteCloudVmClusterRequest request = - DeleteCloudVmClusterRequest.newBuilder().setName(name).build(); - return deleteCloudVmClusterAsync(request); + public final OperationFuture + createExascaleDbStorageVaultAsync( + String parent, + ExascaleDbStorageVault exascaleDbStorageVault, + String exascaleDbStorageVaultId) { + CreateExascaleDbStorageVaultRequest request = + CreateExascaleDbStorageVaultRequest.newBuilder() + .setParent(parent) + .setExascaleDbStorageVault(exascaleDbStorageVault) + .setExascaleDbStorageVaultId(exascaleDbStorageVaultId) + .build(); + return createExascaleDbStorageVaultAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single VM Cluster. + * Creates a new ExascaleDB Storage Vault resource. * *

                                              Sample code: * @@ -1944,28 +8939,29 @@ public final OperationFuture deleteCloudVmClusterAsync * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * DeleteCloudVmClusterRequest request = - * DeleteCloudVmClusterRequest.newBuilder() - * .setName( - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + * CreateExascaleDbStorageVaultRequest request = + * CreateExascaleDbStorageVaultRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132") + * .setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build()) * .setRequestId("requestId693933066") - * .setForce(true) * .build(); - * oracleDatabaseClient.deleteCloudVmClusterAsync(request).get(); + * ExascaleDbStorageVault response = + * oracleDatabaseClient.createExascaleDbStorageVaultAsync(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 deleteCloudVmClusterAsync( - DeleteCloudVmClusterRequest request) { - return deleteCloudVmClusterOperationCallable().futureCall(request); + public final OperationFuture + createExascaleDbStorageVaultAsync(CreateExascaleDbStorageVaultRequest request) { + return createExascaleDbStorageVaultOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single VM Cluster. + * Creates a new ExascaleDB Storage Vault resource. * *

                                              Sample code: * @@ -1976,28 +8972,29 @@ public final OperationFuture deleteCloudVmClusterAsync * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * DeleteCloudVmClusterRequest request = - * DeleteCloudVmClusterRequest.newBuilder() - * .setName( - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + * CreateExascaleDbStorageVaultRequest request = + * CreateExascaleDbStorageVaultRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132") + * .setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build()) * .setRequestId("requestId693933066") - * .setForce(true) * .build(); - * OperationFuture future = - * oracleDatabaseClient.deleteCloudVmClusterOperationCallable().futureCall(request); + * OperationFuture future = + * oracleDatabaseClient.createExascaleDbStorageVaultOperationCallable().futureCall(request); * // Do something. - * future.get(); + * ExascaleDbStorageVault response = future.get(); * } * } */ - public final OperationCallable - deleteCloudVmClusterOperationCallable() { - return stub.deleteCloudVmClusterOperationCallable(); + public final OperationCallable< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationCallable() { + return stub.createExascaleDbStorageVaultOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single VM Cluster. + * Creates a new ExascaleDB Storage Vault resource. * *

                                              Sample code: * @@ -2008,28 +9005,28 @@ public final OperationFuture deleteCloudVmClusterAsync * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * DeleteCloudVmClusterRequest request = - * DeleteCloudVmClusterRequest.newBuilder() - * .setName( - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + * CreateExascaleDbStorageVaultRequest request = + * CreateExascaleDbStorageVaultRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132") + * .setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build()) * .setRequestId("requestId693933066") - * .setForce(true) * .build(); * ApiFuture future = - * oracleDatabaseClient.deleteCloudVmClusterCallable().futureCall(request); + * oracleDatabaseClient.createExascaleDbStorageVaultCallable().futureCall(request); * // Do something. - * future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable - deleteCloudVmClusterCallable() { - return stub.deleteCloudVmClusterCallable(); + public final UnaryCallable + createExascaleDbStorageVaultCallable() { + return stub.createExascaleDbStorageVaultCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the entitlements in a given project. + * Deletes a single ExascaleDB Storage Vault. * *

                                              Sample code: * @@ -2040,28 +9037,28 @@ public final OperationFuture deleteCloudVmClusterAsync * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) { - * // doThingsWith(element); - * } + * ExascaleDbStorageVaultName name = + * ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + * oracleDatabaseClient.deleteExascaleDbStorageVaultAsync(name).get(); * } * } * - * @param parent Required. The parent value for the entitlement in the following format: - * projects/{project}/locations/{location}. + * @param name Required. The name of the ExascaleDbStorageVault in the following format: + * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntitlementsPagedResponse listEntitlements(LocationName parent) { - ListEntitlementsRequest request = - ListEntitlementsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final OperationFuture deleteExascaleDbStorageVaultAsync( + ExascaleDbStorageVaultName name) { + DeleteExascaleDbStorageVaultRequest request = + DeleteExascaleDbStorageVaultRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return listEntitlements(request); + return deleteExascaleDbStorageVaultAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the entitlements in a given project. + * Deletes a single ExascaleDB Storage Vault. * *

                                              Sample code: * @@ -2072,26 +9069,27 @@ public final ListEntitlementsPagedResponse listEntitlements(LocationName parent) * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Entitlement element : oracleDatabaseClient.listEntitlements(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + * .toString(); + * oracleDatabaseClient.deleteExascaleDbStorageVaultAsync(name).get(); * } * } * - * @param parent Required. The parent value for the entitlement in the following format: - * projects/{project}/locations/{location}. + * @param name Required. The name of the ExascaleDbStorageVault in the following format: + * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntitlementsPagedResponse listEntitlements(String parent) { - ListEntitlementsRequest request = - ListEntitlementsRequest.newBuilder().setParent(parent).build(); - return listEntitlements(request); + public final OperationFuture deleteExascaleDbStorageVaultAsync( + String name) { + DeleteExascaleDbStorageVaultRequest request = + DeleteExascaleDbStorageVaultRequest.newBuilder().setName(name).build(); + return deleteExascaleDbStorageVaultAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the entitlements in a given project. + * Deletes a single ExascaleDB Storage Vault. * *

                                              Sample code: * @@ -2102,28 +9100,29 @@ public final ListEntitlementsPagedResponse listEntitlements(String parent) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListEntitlementsRequest request = - * ListEntitlementsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteExascaleDbStorageVaultRequest request = + * DeleteExascaleDbStorageVaultRequest.newBuilder() + * .setName( + * ExascaleDbStorageVaultName.of( + * "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * for (Entitlement element : oracleDatabaseClient.listEntitlements(request).iterateAll()) { - * // doThingsWith(element); - * } + * oracleDatabaseClient.deleteExascaleDbStorageVaultAsync(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 ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequest request) { - return listEntitlementsPagedCallable().call(request); + public final OperationFuture deleteExascaleDbStorageVaultAsync( + DeleteExascaleDbStorageVaultRequest request) { + return deleteExascaleDbStorageVaultOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the entitlements in a given project. + * Deletes a single ExascaleDB Storage Vault. * *

                                              Sample code: * @@ -2134,29 +9133,29 @@ public final ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequ * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListEntitlementsRequest request = - * ListEntitlementsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteExascaleDbStorageVaultRequest request = + * DeleteExascaleDbStorageVaultRequest.newBuilder() + * .setName( + * ExascaleDbStorageVaultName.of( + * "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * oracleDatabaseClient.listEntitlementsPagedCallable().futureCall(request); + * OperationFuture future = + * oracleDatabaseClient.deleteExascaleDbStorageVaultOperationCallable().futureCall(request); * // Do something. - * for (Entitlement element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * future.get(); * } * } */ - public final UnaryCallable - listEntitlementsPagedCallable() { - return stub.listEntitlementsPagedCallable(); + public final OperationCallable + deleteExascaleDbStorageVaultOperationCallable() { + return stub.deleteExascaleDbStorageVaultOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the entitlements in a given project. + * Deletes a single ExascaleDB Storage Vault. * *

                                              Sample code: * @@ -2167,36 +9166,29 @@ public final ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequ * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListEntitlementsRequest request = - * ListEntitlementsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteExascaleDbStorageVaultRequest request = + * DeleteExascaleDbStorageVaultRequest.newBuilder() + * .setName( + * ExascaleDbStorageVaultName.of( + * "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * ListEntitlementsResponse response = - * oracleDatabaseClient.listEntitlementsCallable().call(request); - * for (Entitlement element : response.getEntitlementsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * oracleDatabaseClient.deleteExascaleDbStorageVaultCallable().futureCall(request); + * // Do something. + * future.get(); * } * } */ - public final UnaryCallable - listEntitlementsCallable() { - return stub.listEntitlementsCallable(); + public final UnaryCallable + deleteExascaleDbStorageVaultCallable() { + return stub.deleteExascaleDbStorageVaultCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database servers of an Exadata Infrastructure instance. + * Lists all the DbSystemInitialStorageSizes for the given project and location. * *

                                              Sample code: * @@ -2207,30 +9199,30 @@ public final ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequ * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CloudExadataInfrastructureName parent = - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); - * for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (DbSystemInitialStorageSize element : + * oracleDatabaseClient.listDbSystemInitialStorageSizes(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The parent value for database server in the following format: - * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * @param parent Required. The parent value for the DbSystemInitialStorageSize resource with the + * format: projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbServersPagedResponse listDbServers(CloudExadataInfrastructureName parent) { - ListDbServersRequest request = - ListDbServersRequest.newBuilder() + public final ListDbSystemInitialStorageSizesPagedResponse listDbSystemInitialStorageSizes( + LocationName parent) { + ListDbSystemInitialStorageSizesRequest request = + ListDbSystemInitialStorageSizesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listDbServers(request); + return listDbSystemInitialStorageSizes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database servers of an Exadata Infrastructure instance. + * Lists all the DbSystemInitialStorageSizes for the given project and location. * *

                                              Sample code: * @@ -2241,28 +9233,28 @@ public final ListDbServersPagedResponse listDbServers(CloudExadataInfrastructure * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String parent = - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString(); - * for (DbServer element : oracleDatabaseClient.listDbServers(parent).iterateAll()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (DbSystemInitialStorageSize element : + * oracleDatabaseClient.listDbSystemInitialStorageSizes(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The parent value for database server in the following format: - * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * @param parent Required. The parent value for the DbSystemInitialStorageSize resource with the + * format: projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbServersPagedResponse listDbServers(String parent) { - ListDbServersRequest request = ListDbServersRequest.newBuilder().setParent(parent).build(); - return listDbServers(request); + public final ListDbSystemInitialStorageSizesPagedResponse listDbSystemInitialStorageSizes( + String parent) { + ListDbSystemInitialStorageSizesRequest request = + ListDbSystemInitialStorageSizesRequest.newBuilder().setParent(parent).build(); + return listDbSystemInitialStorageSizes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database servers of an Exadata Infrastructure instance. + * Lists all the DbSystemInitialStorageSizes for the given project and location. * *

                                              Sample code: * @@ -2273,16 +9265,14 @@ public final ListDbServersPagedResponse listDbServers(String parent) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListDbServersRequest request = - * ListDbServersRequest.newBuilder() - * .setParent( - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString()) + * ListDbSystemInitialStorageSizesRequest request = + * ListDbSystemInitialStorageSizesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (DbServer element : oracleDatabaseClient.listDbServers(request).iterateAll()) { + * for (DbSystemInitialStorageSize element : + * oracleDatabaseClient.listDbSystemInitialStorageSizes(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2291,13 +9281,14 @@ public final ListDbServersPagedResponse listDbServers(String parent) { * @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 ListDbServersPagedResponse listDbServers(ListDbServersRequest request) { - return listDbServersPagedCallable().call(request); + public final ListDbSystemInitialStorageSizesPagedResponse listDbSystemInitialStorageSizes( + ListDbSystemInitialStorageSizesRequest request) { + return listDbSystemInitialStorageSizesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database servers of an Exadata Infrastructure instance. + * Lists all the DbSystemInitialStorageSizes for the given project and location. * *

                                              Sample code: * @@ -2308,32 +9299,30 @@ public final ListDbServersPagedResponse listDbServers(ListDbServersRequest 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListDbServersRequest request = - * ListDbServersRequest.newBuilder() - * .setParent( - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString()) + * ListDbSystemInitialStorageSizesRequest request = + * ListDbSystemInitialStorageSizesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * oracleDatabaseClient.listDbServersPagedCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.listDbSystemInitialStorageSizesPagedCallable().futureCall(request); * // Do something. - * for (DbServer element : future.get().iterateAll()) { + * for (DbSystemInitialStorageSize element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listDbServersPagedCallable() { - return stub.listDbServersPagedCallable(); + public final UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesPagedCallable() { + return stub.listDbSystemInitialStorageSizesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database servers of an Exadata Infrastructure instance. + * Lists all the DbSystemInitialStorageSizes for the given project and location. * *

                                              Sample code: * @@ -2344,18 +9333,16 @@ public final ListDbServersPagedResponse listDbServers(ListDbServersRequest 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListDbServersRequest request = - * ListDbServersRequest.newBuilder() - * .setParent( - * CloudExadataInfrastructureName.of( - * "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") - * .toString()) + * ListDbSystemInitialStorageSizesRequest request = + * ListDbSystemInitialStorageSizesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListDbServersResponse response = oracleDatabaseClient.listDbServersCallable().call(request); - * for (DbServer element : response.getDbServersList()) { + * ListDbSystemInitialStorageSizesResponse response = + * oracleDatabaseClient.listDbSystemInitialStorageSizesCallable().call(request); + * for (DbSystemInitialStorageSize element : response.getDbSystemInitialStorageSizesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2368,13 +9355,15 @@ public final ListDbServersPagedResponse listDbServers(ListDbServersRequest reque * } * } */ - public final UnaryCallable listDbServersCallable() { - return stub.listDbServersCallable(); + public final UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesCallable() { + return stub.listDbSystemInitialStorageSizesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database nodes of a VM Cluster. + * Lists all the Databases for the given project, location and DbSystem. * *

                                              Sample code: * @@ -2385,29 +9374,28 @@ public final UnaryCallable listDbSe * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CloudVmClusterName parent = - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]"); - * for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (Database element : oracleDatabaseClient.listDatabases(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The parent value for database node in the following format: - * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + * @param parent Required. The parent resource name in the following format: + * projects/{project}/locations/{region} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbNodesPagedResponse listDbNodes(CloudVmClusterName parent) { - ListDbNodesRequest request = - ListDbNodesRequest.newBuilder() + public final ListDatabasesPagedResponse listDatabases(LocationName parent) { + ListDatabasesRequest request = + ListDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listDbNodes(request); + return listDatabases(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database nodes of a VM Cluster. + * Lists all the Databases for the given project, location and DbSystem. * *

                                              Sample code: * @@ -2418,26 +9406,25 @@ public final ListDbNodesPagedResponse listDbNodes(CloudVmClusterName parent) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String parent = - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString(); - * for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (Database element : oracleDatabaseClient.listDatabases(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The parent value for database node in the following format: - * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + * @param parent Required. The parent resource name in the following format: + * projects/{project}/locations/{region} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbNodesPagedResponse listDbNodes(String parent) { - ListDbNodesRequest request = ListDbNodesRequest.newBuilder().setParent(parent).build(); - return listDbNodes(request); + public final ListDatabasesPagedResponse listDatabases(String parent) { + ListDatabasesRequest request = ListDatabasesRequest.newBuilder().setParent(parent).build(); + return listDatabases(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database nodes of a VM Cluster. + * Lists all the Databases for the given project, location and DbSystem. * *

                                              Sample code: * @@ -2448,14 +9435,14 @@ public final ListDbNodesPagedResponse listDbNodes(String parent) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListDbNodesRequest request = - * ListDbNodesRequest.newBuilder() - * .setParent( - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + * ListDatabasesRequest request = + * ListDatabasesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * for (DbNode element : oracleDatabaseClient.listDbNodes(request).iterateAll()) { + * for (Database element : oracleDatabaseClient.listDatabases(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2464,13 +9451,13 @@ public final ListDbNodesPagedResponse listDbNodes(String parent) { * @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 ListDbNodesPagedResponse listDbNodes(ListDbNodesRequest request) { - return listDbNodesPagedCallable().call(request); + public final ListDatabasesPagedResponse listDatabases(ListDatabasesRequest request) { + return listDatabasesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database nodes of a VM Cluster. + * Lists all the Databases for the given project, location and DbSystem. * *

                                              Sample code: * @@ -2481,30 +9468,30 @@ public final ListDbNodesPagedResponse listDbNodes(ListDbNodesRequest 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListDbNodesRequest request = - * ListDbNodesRequest.newBuilder() - * .setParent( - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + * ListDatabasesRequest request = + * ListDatabasesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * oracleDatabaseClient.listDbNodesPagedCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.listDatabasesPagedCallable().futureCall(request); * // Do something. - * for (DbNode element : future.get().iterateAll()) { + * for (Database element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listDbNodesPagedCallable() { - return stub.listDbNodesPagedCallable(); + public final UnaryCallable + listDatabasesPagedCallable() { + return stub.listDatabasesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database nodes of a VM Cluster. + * Lists all the Databases for the given project, location and DbSystem. * *

                                              Sample code: * @@ -2515,16 +9502,16 @@ public final ListDbNodesPagedResponse listDbNodes(ListDbNodesRequest 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListDbNodesRequest request = - * ListDbNodesRequest.newBuilder() - * .setParent( - * CloudVmClusterName.of("[PROJECT]", "[LOCATION]", "[CLOUD_VM_CLUSTER]").toString()) + * ListDatabasesRequest request = + * ListDatabasesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListDbNodesResponse response = oracleDatabaseClient.listDbNodesCallable().call(request); - * for (DbNode element : response.getDbNodesList()) { + * ListDatabasesResponse response = oracleDatabaseClient.listDatabasesCallable().call(request); + * for (Database element : response.getDatabasesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2537,14 +9524,13 @@ public final ListDbNodesPagedResponse listDbNodes(ListDbNodesRequest request) { * } * } */ - public final UnaryCallable listDbNodesCallable() { - return stub.listDbNodesCallable(); + public final UnaryCallable listDatabasesCallable() { + return stub.listDatabasesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and - * location. + * Gets details of a single Database. * *

                                              Sample code: * @@ -2555,29 +9541,24 @@ public final UnaryCallable listDbNodesC * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) { - * // doThingsWith(element); - * } + * DatabaseName name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]"); + * Database response = oracleDatabaseClient.getDatabase(name); * } * } * - * @param parent Required. The parent value for Grid Infrastructure Version in the following - * format: Format: projects/{project}/locations/{location}. + * @param name Required. The name of the Database resource in the following format: + * projects/{project}/locations/{region}/databases/{database} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGiVersionsPagedResponse listGiVersions(LocationName parent) { - ListGiVersionsRequest request = - ListGiVersionsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listGiVersions(request); + public final Database getDatabase(DatabaseName name) { + GetDatabaseRequest request = + GetDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDatabase(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and - * location. + * Gets details of a single Database. * *

                                              Sample code: * @@ -2588,26 +9569,23 @@ public final ListGiVersionsPagedResponse listGiVersions(LocationName parent) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (GiVersion element : oracleDatabaseClient.listGiVersions(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString(); + * Database response = oracleDatabaseClient.getDatabase(name); * } * } * - * @param parent Required. The parent value for Grid Infrastructure Version in the following - * format: Format: projects/{project}/locations/{location}. + * @param name Required. The name of the Database resource in the following format: + * projects/{project}/locations/{region}/databases/{database} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGiVersionsPagedResponse listGiVersions(String parent) { - ListGiVersionsRequest request = ListGiVersionsRequest.newBuilder().setParent(parent).build(); - return listGiVersions(request); + public final Database getDatabase(String name) { + GetDatabaseRequest request = GetDatabaseRequest.newBuilder().setName(name).build(); + return getDatabase(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and - * location. + * Gets details of a single Database. * *

                                              Sample code: * @@ -2618,63 +9596,24 @@ public final ListGiVersionsPagedResponse listGiVersions(String parent) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListGiVersionsRequest request = - * ListGiVersionsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetDatabaseRequest request = + * GetDatabaseRequest.newBuilder() + * .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString()) * .build(); - * for (GiVersion element : oracleDatabaseClient.listGiVersions(request).iterateAll()) { - * // doThingsWith(element); - * } + * Database response = oracleDatabaseClient.getDatabase(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 ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest request) { - return listGiVersionsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all the valid Oracle Grid Infrastructure (GI) versions for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   ListGiVersionsRequest request =
                                              -   *       ListGiVersionsRequest.newBuilder()
                                              -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              -   *           .setPageSize(883849137)
                                              -   *           .setPageToken("pageToken873572522")
                                              -   *           .build();
                                              -   *   ApiFuture future =
                                              -   *       oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   for (GiVersion element : future.get().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 UnaryCallable - listGiVersionsPagedCallable() { - return stub.listGiVersionsPagedCallable(); + public final Database getDatabase(GetDatabaseRequest request) { + return getDatabaseCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and - * location. + * Gets details of a single Database. * *

                                              Sample code: * @@ -2685,36 +9624,23 @@ public final ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest re * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListGiVersionsRequest request = - * ListGiVersionsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetDatabaseRequest request = + * GetDatabaseRequest.newBuilder() + * .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString()) * .build(); - * while (true) { - * ListGiVersionsResponse response = - * oracleDatabaseClient.listGiVersionsCallable().call(request); - * for (GiVersion element : response.getGiVersionsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = oracleDatabaseClient.getDatabaseCallable().futureCall(request); + * // Do something. + * Database response = future.get(); * } * } */ - public final UnaryCallable - listGiVersionsCallable() { - return stub.listGiVersionsCallable(); + public final UnaryCallable getDatabaseCallable() { + return stub.getDatabaseCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database system shapes available for the project and location. + * Lists all the PluggableDatabases for the given project, location and Container Database. * *

                                              Sample code: * @@ -2726,27 +9652,28 @@ public final ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest re * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) { + * for (PluggableDatabase element : + * oracleDatabaseClient.listPluggableDatabases(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The parent value for Database System Shapes in the following format: - * projects/{project}/locations/{location}. + * @param parent Required. The parent, which owns this collection of PluggableDatabases. Format: + * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbSystemShapesPagedResponse listDbSystemShapes(LocationName parent) { - ListDbSystemShapesRequest request = - ListDbSystemShapesRequest.newBuilder() + public final ListPluggableDatabasesPagedResponse listPluggableDatabases(LocationName parent) { + ListPluggableDatabasesRequest request = + ListPluggableDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listDbSystemShapes(request); + return listPluggableDatabases(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database system shapes available for the project and location. + * Lists all the PluggableDatabases for the given project, location and Container Database. * *

                                              Sample code: * @@ -2758,25 +9685,26 @@ public final ListDbSystemShapesPagedResponse listDbSystemShapes(LocationName par * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(parent).iterateAll()) { + * for (PluggableDatabase element : + * oracleDatabaseClient.listPluggableDatabases(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The parent value for Database System Shapes in the following format: - * projects/{project}/locations/{location}. + * @param parent Required. The parent, which owns this collection of PluggableDatabases. Format: + * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbSystemShapesPagedResponse listDbSystemShapes(String parent) { - ListDbSystemShapesRequest request = - ListDbSystemShapesRequest.newBuilder().setParent(parent).build(); - return listDbSystemShapes(request); + public final ListPluggableDatabasesPagedResponse listPluggableDatabases(String parent) { + ListPluggableDatabasesRequest request = + ListPluggableDatabasesRequest.newBuilder().setParent(parent).build(); + return listPluggableDatabases(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database system shapes available for the project and location. + * Lists all the PluggableDatabases for the given project, location and Container Database. * *

                                              Sample code: * @@ -2787,13 +9715,15 @@ public final ListDbSystemShapesPagedResponse listDbSystemShapes(String parent) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListDbSystemShapesRequest request = - * ListDbSystemShapesRequest.newBuilder() + * ListPluggableDatabasesRequest request = + * ListPluggableDatabasesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(request).iterateAll()) { + * for (PluggableDatabase element : + * oracleDatabaseClient.listPluggableDatabases(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2802,14 +9732,14 @@ public final ListDbSystemShapesPagedResponse listDbSystemShapes(String parent) { * @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 ListDbSystemShapesPagedResponse listDbSystemShapes( - ListDbSystemShapesRequest request) { - return listDbSystemShapesPagedCallable().call(request); + public final ListPluggableDatabasesPagedResponse listPluggableDatabases( + ListPluggableDatabasesRequest request) { + return listPluggableDatabasesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database system shapes available for the project and location. + * Lists all the PluggableDatabases for the given project, location and Container Database. * *

                                              Sample code: * @@ -2820,29 +9750,30 @@ public final ListDbSystemShapesPagedResponse listDbSystemShapes( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListDbSystemShapesRequest request = - * ListDbSystemShapesRequest.newBuilder() + * ListPluggableDatabasesRequest request = + * ListPluggableDatabasesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * oracleDatabaseClient.listDbSystemShapesPagedCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.listPluggableDatabasesPagedCallable().futureCall(request); * // Do something. - * for (DbSystemShape element : future.get().iterateAll()) { + * for (PluggableDatabase element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listDbSystemShapesPagedCallable() { - return stub.listDbSystemShapesPagedCallable(); + public final UnaryCallable + listPluggableDatabasesPagedCallable() { + return stub.listPluggableDatabasesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the database system shapes available for the project and location. + * Lists all the PluggableDatabases for the given project, location and Container Database. * *

                                              Sample code: * @@ -2853,16 +9784,17 @@ public final ListDbSystemShapesPagedResponse listDbSystemShapes( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListDbSystemShapesRequest request = - * ListDbSystemShapesRequest.newBuilder() + * ListPluggableDatabasesRequest request = + * ListPluggableDatabasesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListDbSystemShapesResponse response = - * oracleDatabaseClient.listDbSystemShapesCallable().call(request); - * for (DbSystemShape element : response.getDbSystemShapesList()) { + * ListPluggableDatabasesResponse response = + * oracleDatabaseClient.listPluggableDatabasesCallable().call(request); + * for (PluggableDatabase element : response.getPluggableDatabasesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2875,14 +9807,14 @@ public final ListDbSystemShapesPagedResponse listDbSystemShapes( * } * } */ - public final UnaryCallable - listDbSystemShapesCallable() { - return stub.listDbSystemShapesCallable(); + public final UnaryCallable + listPluggableDatabasesCallable() { + return stub.listPluggableDatabasesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Autonomous Databases in a given project and location. + * Gets details of a single PluggableDatabase. * *

                                              Sample code: * @@ -2893,29 +9825,27 @@ public final ListDbSystemShapesPagedResponse listDbSystemShapes( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (AutonomousDatabase element : - * oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) { - * // doThingsWith(element); - * } + * PluggableDatabaseName name = + * PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]"); + * PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(name); * } * } * - * @param parent Required. The parent value for the Autonomous Database in the following format: - * projects/{project}/locations/{location}. + * @param name Required. The name of the PluggableDatabase resource in the following format: + * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(LocationName parent) { - ListAutonomousDatabasesRequest request = - ListAutonomousDatabasesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final PluggableDatabase getPluggableDatabase(PluggableDatabaseName name) { + GetPluggableDatabaseRequest request = + GetPluggableDatabaseRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return listAutonomousDatabases(request); + return getPluggableDatabase(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Autonomous Databases in a given project and location. + * Gets details of a single PluggableDatabase. * *

                                              Sample code: * @@ -2926,27 +9856,25 @@ public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(Locati * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (AutonomousDatabase element : - * oracleDatabaseClient.listAutonomousDatabases(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]").toString(); + * PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(name); * } * } * - * @param parent Required. The parent value for the Autonomous Database in the following format: - * projects/{project}/locations/{location}. + * @param name Required. The name of the PluggableDatabase resource in the following format: + * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(String parent) { - ListAutonomousDatabasesRequest request = - ListAutonomousDatabasesRequest.newBuilder().setParent(parent).build(); - return listAutonomousDatabases(request); + public final PluggableDatabase getPluggableDatabase(String name) { + GetPluggableDatabaseRequest request = + GetPluggableDatabaseRequest.newBuilder().setName(name).build(); + return getPluggableDatabase(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Autonomous Databases in a given project and location. + * Gets details of a single PluggableDatabase. * *

                                              Sample code: * @@ -2957,32 +9885,26 @@ public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(String * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListAutonomousDatabasesRequest request = - * ListAutonomousDatabasesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * GetPluggableDatabaseRequest request = + * GetPluggableDatabaseRequest.newBuilder() + * .setName( + * PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]") + * .toString()) * .build(); - * for (AutonomousDatabase element : - * oracleDatabaseClient.listAutonomousDatabases(request).iterateAll()) { - * // doThingsWith(element); - * } + * PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(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 ListAutonomousDatabasesPagedResponse listAutonomousDatabases( - ListAutonomousDatabasesRequest request) { - return listAutonomousDatabasesPagedCallable().call(request); + public final PluggableDatabase getPluggableDatabase(GetPluggableDatabaseRequest request) { + return getPluggableDatabaseCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Autonomous Databases in a given project and location. + * Gets details of a single PluggableDatabase. * *

                                              Sample code: * @@ -2993,31 +9915,27 @@ public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListAutonomousDatabasesRequest request = - * ListAutonomousDatabasesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * GetPluggableDatabaseRequest request = + * GetPluggableDatabaseRequest.newBuilder() + * .setName( + * PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]") + * .toString()) * .build(); - * ApiFuture future = - * oracleDatabaseClient.listAutonomousDatabasesPagedCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.getPluggableDatabaseCallable().futureCall(request); * // Do something. - * for (AutonomousDatabase element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * PluggableDatabase response = future.get(); * } * } */ - public final UnaryCallable - listAutonomousDatabasesPagedCallable() { - return stub.listAutonomousDatabasesPagedCallable(); + public final UnaryCallable + getPluggableDatabaseCallable() { + return stub.getPluggableDatabaseCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Autonomous Databases in a given project and location. + * Lists all the DbSystems for the given project and location. * *

                                              Sample code: * @@ -3028,69 +9946,28 @@ public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListAutonomousDatabasesRequest request = - * ListAutonomousDatabasesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") - * .build(); - * while (true) { - * ListAutonomousDatabasesResponse response = - * oracleDatabaseClient.listAutonomousDatabasesCallable().call(request); - * for (AutonomousDatabase element : response.getAutonomousDatabasesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (DbSystem element : oracleDatabaseClient.listDbSystems(parent).iterateAll()) { + * // doThingsWith(element); * } * } * } - */ - public final UnaryCallable - listAutonomousDatabasesCallable() { - return stub.listAutonomousDatabasesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a single Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   AutonomousDatabaseName name =
                                              -   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              -   *   AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name);
                                              -   * }
                                              -   * }
                                              * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param parent Required. The parent value for DbSystems in the following format: + * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutonomousDatabase getAutonomousDatabase(AutonomousDatabaseName name) { - GetAutonomousDatabaseRequest request = - GetAutonomousDatabaseRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final ListDbSystemsPagedResponse listDbSystems(LocationName parent) { + ListDbSystemsRequest request = + ListDbSystemsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - return getAutonomousDatabase(request); + return listDbSystems(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a single Autonomous Database. + * Lists all the DbSystems for the given project and location. * *

                                              Sample code: * @@ -3101,25 +9978,25 @@ public final AutonomousDatabase getAutonomousDatabase(AutonomousDatabaseName nam * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String name = - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); - * AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(name); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (DbSystem element : oracleDatabaseClient.listDbSystems(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param parent Required. The parent value for DbSystems in the following format: + * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutonomousDatabase getAutonomousDatabase(String name) { - GetAutonomousDatabaseRequest request = - GetAutonomousDatabaseRequest.newBuilder().setName(name).build(); - return getAutonomousDatabase(request); + public final ListDbSystemsPagedResponse listDbSystems(String parent) { + ListDbSystemsRequest request = ListDbSystemsRequest.newBuilder().setParent(parent).build(); + return listDbSystems(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a single Autonomous Database. + * Lists all the DbSystems for the given project and location. * *

                                              Sample code: * @@ -3130,26 +10007,30 @@ public final AutonomousDatabase getAutonomousDatabase(String name) { * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * GetAutonomousDatabaseRequest request = - * GetAutonomousDatabaseRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) + * ListDbSystemsRequest request = + * ListDbSystemsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * AutonomousDatabase response = oracleDatabaseClient.getAutonomousDatabase(request); + * for (DbSystem element : oracleDatabaseClient.listDbSystems(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 AutonomousDatabase getAutonomousDatabase(GetAutonomousDatabaseRequest request) { - return getAutonomousDatabaseCallable().call(request); + public final ListDbSystemsPagedResponse listDbSystems(ListDbSystemsRequest request) { + return listDbSystemsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a single Autonomous Database. + * Lists all the DbSystems for the given project and location. * *

                                              Sample code: * @@ -3160,27 +10041,31 @@ public final AutonomousDatabase getAutonomousDatabase(GetAutonomousDatabaseReque * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * GetAutonomousDatabaseRequest request = - * GetAutonomousDatabaseRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) + * ListDbSystemsRequest request = + * ListDbSystemsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * oracleDatabaseClient.getAutonomousDatabaseCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.listDbSystemsPagedCallable().futureCall(request); * // Do something. - * AutonomousDatabase response = future.get(); + * for (DbSystem element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable - getAutonomousDatabaseCallable() { - return stub.getAutonomousDatabaseCallable(); + public final UnaryCallable + listDbSystemsPagedCallable() { + return stub.listDbSystemsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Autonomous Database in a given project and location. + * Lists all the DbSystems for the given project and location. * *

                                              Sample code: * @@ -3191,38 +10076,36 @@ public final AutonomousDatabase getAutonomousDatabase(GetAutonomousDatabaseReque * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); - * String autonomousDatabaseId = "autonomousDatabaseId-1972693114"; - * AutonomousDatabase response = - * oracleDatabaseClient - * .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId) - * .get(); + * ListDbSystemsRequest request = + * ListDbSystemsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * while (true) { + * ListDbSystemsResponse response = oracleDatabaseClient.listDbSystemsCallable().call(request); + * for (DbSystem element : response.getDbSystemsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param parent Required. The name of the parent in the following format: - * projects/{project}/locations/{location}. - * @param autonomousDatabase Required. The Autonomous Database being created. - * @param autonomousDatabaseId Required. The ID of the Autonomous Database to create. This value - * is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters - * in length. The value must start with a letter and end with a letter or a number. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createAutonomousDatabaseAsync( - LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) { - CreateAutonomousDatabaseRequest request = - CreateAutonomousDatabaseRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setAutonomousDatabase(autonomousDatabase) - .setAutonomousDatabaseId(autonomousDatabaseId) - .build(); - return createAutonomousDatabaseAsync(request); + public final UnaryCallable listDbSystemsCallable() { + return stub.listDbSystemsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Autonomous Database in a given project and location. + * Gets details of a single DbSystem. * *

                                              Sample code: * @@ -3233,38 +10116,24 @@ public final OperationFuture createAutono * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); - * String autonomousDatabaseId = "autonomousDatabaseId-1972693114"; - * AutonomousDatabase response = - * oracleDatabaseClient - * .createAutonomousDatabaseAsync(parent, autonomousDatabase, autonomousDatabaseId) - * .get(); + * DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + * DbSystem response = oracleDatabaseClient.getDbSystem(name); * } * } * - * @param parent Required. The name of the parent in the following format: - * projects/{project}/locations/{location}. - * @param autonomousDatabase Required. The Autonomous Database being created. - * @param autonomousDatabaseId Required. The ID of the Autonomous Database to create. This value - * is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters - * in length. The value must start with a letter and end with a letter or a number. + * @param name Required. The name of the DbSystem in the following format: + * projects/{project}/locations/{location}/dbSystems/{db_system}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createAutonomousDatabaseAsync( - String parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) { - CreateAutonomousDatabaseRequest request = - CreateAutonomousDatabaseRequest.newBuilder() - .setParent(parent) - .setAutonomousDatabase(autonomousDatabase) - .setAutonomousDatabaseId(autonomousDatabaseId) - .build(); - return createAutonomousDatabaseAsync(request); + public final DbSystem getDbSystem(DbSystemName name) { + GetDbSystemRequest request = + GetDbSystemRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDbSystem(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Autonomous Database in a given project and location. + * Gets details of a single DbSystem. * *

                                              Sample code: * @@ -3275,29 +10144,23 @@ public final OperationFuture createAutono * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CreateAutonomousDatabaseRequest request = - * CreateAutonomousDatabaseRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setAutonomousDatabaseId("autonomousDatabaseId-1972693114") - * .setAutonomousDatabase(AutonomousDatabase.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * AutonomousDatabase response = - * oracleDatabaseClient.createAutonomousDatabaseAsync(request).get(); + * String name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString(); + * DbSystem response = oracleDatabaseClient.getDbSystem(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the DbSystem in the following format: + * projects/{project}/locations/{location}/dbSystems/{db_system}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createAutonomousDatabaseAsync( - CreateAutonomousDatabaseRequest request) { - return createAutonomousDatabaseOperationCallable().futureCall(request); + public final DbSystem getDbSystem(String name) { + GetDbSystemRequest request = GetDbSystemRequest.newBuilder().setName(name).build(); + return getDbSystem(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Autonomous Database in a given project and location. + * Gets details of a single DbSystem. * *

                                              Sample code: * @@ -3308,29 +10171,24 @@ public final OperationFuture createAutono * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CreateAutonomousDatabaseRequest request = - * CreateAutonomousDatabaseRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setAutonomousDatabaseId("autonomousDatabaseId-1972693114") - * .setAutonomousDatabase(AutonomousDatabase.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetDbSystemRequest request = + * GetDbSystemRequest.newBuilder() + * .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) * .build(); - * OperationFuture future = - * oracleDatabaseClient.createAutonomousDatabaseOperationCallable().futureCall(request); - * // Do something. - * AutonomousDatabase response = future.get(); + * DbSystem response = oracleDatabaseClient.getDbSystem(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 OperationCallable< - CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - createAutonomousDatabaseOperationCallable() { - return stub.createAutonomousDatabaseOperationCallable(); + public final DbSystem getDbSystem(GetDbSystemRequest request) { + return getDbSystemCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Autonomous Database in a given project and location. + * Gets details of a single DbSystem. * *

                                              Sample code: * @@ -3341,28 +10199,23 @@ public final OperationFuture createAutono * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * CreateAutonomousDatabaseRequest request = - * CreateAutonomousDatabaseRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setAutonomousDatabaseId("autonomousDatabaseId-1972693114") - * .setAutonomousDatabase(AutonomousDatabase.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetDbSystemRequest request = + * GetDbSystemRequest.newBuilder() + * .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) * .build(); - * ApiFuture future = - * oracleDatabaseClient.createAutonomousDatabaseCallable().futureCall(request); + * ApiFuture future = oracleDatabaseClient.getDbSystemCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * DbSystem response = future.get(); * } * } */ - public final UnaryCallable - createAutonomousDatabaseCallable() { - return stub.createAutonomousDatabaseCallable(); + public final UnaryCallable getDbSystemCallable() { + return stub.getDbSystemCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Autonomous Database. + * Creates a new DbSystem in a given project and location. * *

                                              Sample code: * @@ -3373,28 +10226,36 @@ public final OperationFuture createAutono * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * AutonomousDatabaseName name = - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); - * oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get(); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * DbSystem dbSystem = DbSystem.newBuilder().build(); + * String dbSystemId = "dbSystemId-1467630008"; + * DbSystem response = + * oracleDatabaseClient.createDbSystemAsync(parent, dbSystem, dbSystemId).get(); * } * } * - * @param name Required. The name of the resource in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param parent Required. The value for parent of the DbSystem in the following format: + * projects/{project}/locations/{location}. + * @param dbSystem Required. The resource being created. + * @param dbSystemId Required. The ID of the DbSystem to create. This value is restricted to + * (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The + * value must start with a letter and end with a letter or a number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAutonomousDatabaseAsync( - AutonomousDatabaseName name) { - DeleteAutonomousDatabaseRequest request = - DeleteAutonomousDatabaseRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final OperationFuture createDbSystemAsync( + LocationName parent, DbSystem dbSystem, String dbSystemId) { + CreateDbSystemRequest request = + CreateDbSystemRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDbSystem(dbSystem) + .setDbSystemId(dbSystemId) .build(); - return deleteAutonomousDatabaseAsync(request); + return createDbSystemAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Autonomous Database. + * Creates a new DbSystem in a given project and location. * *

                                              Sample code: * @@ -3405,26 +10266,36 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String name = - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); - * oracleDatabaseClient.deleteAutonomousDatabaseAsync(name).get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * DbSystem dbSystem = DbSystem.newBuilder().build(); + * String dbSystemId = "dbSystemId-1467630008"; + * DbSystem response = + * oracleDatabaseClient.createDbSystemAsync(parent, dbSystem, dbSystemId).get(); * } * } * - * @param name Required. The name of the resource in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @param parent Required. The value for parent of the DbSystem in the following format: + * projects/{project}/locations/{location}. + * @param dbSystem Required. The resource being created. + * @param dbSystemId Required. The ID of the DbSystem to create. This value is restricted to + * (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The + * value must start with a letter and end with a letter or a number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAutonomousDatabaseAsync( - String name) { - DeleteAutonomousDatabaseRequest request = - DeleteAutonomousDatabaseRequest.newBuilder().setName(name).build(); - return deleteAutonomousDatabaseAsync(request); + public final OperationFuture createDbSystemAsync( + String parent, DbSystem dbSystem, String dbSystemId) { + CreateDbSystemRequest request = + CreateDbSystemRequest.newBuilder() + .setParent(parent) + .setDbSystem(dbSystem) + .setDbSystemId(dbSystemId) + .build(); + return createDbSystemAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Autonomous Database. + * Creates a new DbSystem in a given project and location. * *

                                              Sample code: * @@ -3435,28 +10306,28 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * DeleteAutonomousDatabaseRequest request = - * DeleteAutonomousDatabaseRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) + * CreateDbSystemRequest request = + * CreateDbSystemRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setDbSystemId("dbSystemId-1467630008") + * .setDbSystem(DbSystem.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * oracleDatabaseClient.deleteAutonomousDatabaseAsync(request).get(); + * DbSystem response = oracleDatabaseClient.createDbSystemAsync(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 deleteAutonomousDatabaseAsync( - DeleteAutonomousDatabaseRequest request) { - return deleteAutonomousDatabaseOperationCallable().futureCall(request); + public final OperationFuture createDbSystemAsync( + CreateDbSystemRequest request) { + return createDbSystemOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Autonomous Database. + * Creates a new DbSystem in a given project and location. * *

                                              Sample code: * @@ -3467,28 +10338,28 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * DeleteAutonomousDatabaseRequest request = - * DeleteAutonomousDatabaseRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) + * CreateDbSystemRequest request = + * CreateDbSystemRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setDbSystemId("dbSystemId-1467630008") + * .setDbSystem(DbSystem.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * oracleDatabaseClient.deleteAutonomousDatabaseOperationCallable().futureCall(request); + * OperationFuture future = + * oracleDatabaseClient.createDbSystemOperationCallable().futureCall(request); * // Do something. - * future.get(); + * DbSystem response = future.get(); * } * } */ - public final OperationCallable - deleteAutonomousDatabaseOperationCallable() { - return stub.deleteAutonomousDatabaseOperationCallable(); + public final OperationCallable + createDbSystemOperationCallable() { + return stub.createDbSystemOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Autonomous Database. + * Creates a new DbSystem in a given project and location. * *

                                              Sample code: * @@ -3499,28 +10370,27 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * DeleteAutonomousDatabaseRequest request = - * DeleteAutonomousDatabaseRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) + * CreateDbSystemRequest request = + * CreateDbSystemRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setDbSystemId("dbSystemId-1467630008") + * .setDbSystem(DbSystem.newBuilder().build()) * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * oracleDatabaseClient.deleteAutonomousDatabaseCallable().futureCall(request); + * oracleDatabaseClient.createDbSystemCallable().futureCall(request); * // Do something. - * future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable - deleteAutonomousDatabaseCallable() { - return stub.deleteAutonomousDatabaseCallable(); + public final UnaryCallable createDbSystemCallable() { + return stub.createDbSystemCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a single Autonomous Database. + * Deletes a single DbSystem. * *

                                              Sample code: * @@ -3531,32 +10401,24 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * AutonomousDatabaseName name = - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); - * Timestamp restoreTime = Timestamp.newBuilder().build(); - * AutonomousDatabase response = - * oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get(); + * DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + * oracleDatabaseClient.deleteDbSystemAsync(name).get(); * } * } * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @param restoreTime Required. The time and date to restore the database to. + * @param name Required. The name of the DbSystem in the following format: + * projects/{project}/locations/{location}/dbSystems/{db_system}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime) { - RestoreAutonomousDatabaseRequest request = - RestoreAutonomousDatabaseRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setRestoreTime(restoreTime) - .build(); - return restoreAutonomousDatabaseAsync(request); + public final OperationFuture deleteDbSystemAsync(DbSystemName name) { + DeleteDbSystemRequest request = + DeleteDbSystemRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteDbSystemAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a single Autonomous Database. + * Deletes a single DbSystem. * *

                                              Sample code: * @@ -3567,32 +10429,23 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String name = - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); - * Timestamp restoreTime = Timestamp.newBuilder().build(); - * AutonomousDatabase response = - * oracleDatabaseClient.restoreAutonomousDatabaseAsync(name, restoreTime).get(); + * String name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString(); + * oracleDatabaseClient.deleteDbSystemAsync(name).get(); * } * } * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @param restoreTime Required. The time and date to restore the database to. + * @param name Required. The name of the DbSystem in the following format: + * projects/{project}/locations/{location}/dbSystems/{db_system}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - restoreAutonomousDatabaseAsync(String name, Timestamp restoreTime) { - RestoreAutonomousDatabaseRequest request = - RestoreAutonomousDatabaseRequest.newBuilder() - .setName(name) - .setRestoreTime(restoreTime) - .build(); - return restoreAutonomousDatabaseAsync(request); + public final OperationFuture deleteDbSystemAsync(String name) { + DeleteDbSystemRequest request = DeleteDbSystemRequest.newBuilder().setName(name).build(); + return deleteDbSystemAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a single Autonomous Database. + * Deletes a single DbSystem. * *

                                              Sample code: * @@ -3603,29 +10456,26 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * RestoreAutonomousDatabaseRequest request = - * RestoreAutonomousDatabaseRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) - * .setRestoreTime(Timestamp.newBuilder().build()) + * DeleteDbSystemRequest request = + * DeleteDbSystemRequest.newBuilder() + * .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + * .setRequestId("requestId693933066") * .build(); - * AutonomousDatabase response = - * oracleDatabaseClient.restoreAutonomousDatabaseAsync(request).get(); + * oracleDatabaseClient.deleteDbSystemAsync(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 - restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest request) { - return restoreAutonomousDatabaseOperationCallable().futureCall(request); + public final OperationFuture deleteDbSystemAsync( + DeleteDbSystemRequest request) { + return deleteDbSystemOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a single Autonomous Database. + * Deletes a single DbSystem. * *

                                              Sample code: * @@ -3636,29 +10486,26 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * RestoreAutonomousDatabaseRequest request = - * RestoreAutonomousDatabaseRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) - * .setRestoreTime(Timestamp.newBuilder().build()) + * DeleteDbSystemRequest request = + * DeleteDbSystemRequest.newBuilder() + * .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * oracleDatabaseClient.restoreAutonomousDatabaseOperationCallable().futureCall(request); + * OperationFuture future = + * oracleDatabaseClient.deleteDbSystemOperationCallable().futureCall(request); * // Do something. - * AutonomousDatabase response = future.get(); + * future.get(); * } * } */ - public final OperationCallable< - RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - restoreAutonomousDatabaseOperationCallable() { - return stub.restoreAutonomousDatabaseOperationCallable(); + public final OperationCallable + deleteDbSystemOperationCallable() { + return stub.deleteDbSystemOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restores a single Autonomous Database. + * Deletes a single DbSystem. * *

                                              Sample code: * @@ -3669,28 +10516,57 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * RestoreAutonomousDatabaseRequest request = - * RestoreAutonomousDatabaseRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) - * .setRestoreTime(Timestamp.newBuilder().build()) + * DeleteDbSystemRequest request = + * DeleteDbSystemRequest.newBuilder() + * .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * oracleDatabaseClient.restoreAutonomousDatabaseCallable().futureCall(request); + * oracleDatabaseClient.deleteDbSystemCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * future.get(); + * } + * } + */ + public final UnaryCallable deleteDbSystemCallable() { + return stub.deleteDbSystemCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DbVersions for the 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                                  * }
                                                  * }
                                              + * + * @param parent Required. The parent value for the DbVersion resource with the format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - restoreAutonomousDatabaseCallable() { - return stub.restoreAutonomousDatabaseCallable(); + public final ListDbVersionsPagedResponse listDbVersions(LocationName parent) { + ListDbVersionsRequest request = + ListDbVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDbVersions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Generates a wallet for an Autonomous Database. + * List DbVersions for the given project and location. * *

                                              Sample code: * @@ -3701,41 +10577,25 @@ public final OperationFuture deleteAutonomousDatabaseA * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * AutonomousDatabaseName name = - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); - * GenerateType type = GenerateType.forNumber(0); - * boolean isRegional = true; - * String password = "password1216985755"; - * GenerateAutonomousDatabaseWalletResponse response = - * oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @param type Optional. The type of wallet generation for the Autonomous Database. The default - * value is SINGLE. - * @param isRegional Optional. True when requesting regional connection strings in PDB connect - * info, applicable to cross-region Data Guard only. - * @param password Required. The password used to encrypt the keys inside the wallet. The password - * must be a minimum of 8 characters. + * @param parent Required. The parent value for the DbVersion resource with the format: + * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( - AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password) { - GenerateAutonomousDatabaseWalletRequest request = - GenerateAutonomousDatabaseWalletRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setType(type) - .setIsRegional(isRegional) - .setPassword(password) - .build(); - return generateAutonomousDatabaseWallet(request); + public final ListDbVersionsPagedResponse listDbVersions(String parent) { + ListDbVersionsRequest request = ListDbVersionsRequest.newBuilder().setParent(parent).build(); + return listDbVersions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Generates a wallet for an Autonomous Database. + * List DbVersions for the given project and location. * *

                                              Sample code: * @@ -3746,41 +10606,29 @@ public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabase * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String name = - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); - * GenerateType type = GenerateType.forNumber(0); - * boolean isRegional = true; - * String password = "password1216985755"; - * GenerateAutonomousDatabaseWalletResponse response = - * oracleDatabaseClient.generateAutonomousDatabaseWallet(name, type, isRegional, password); + * ListDbVersionsRequest request = + * ListDbVersionsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (DbVersion element : oracleDatabaseClient.listDbVersions(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @param type Optional. The type of wallet generation for the Autonomous Database. The default - * value is SINGLE. - * @param isRegional Optional. True when requesting regional connection strings in PDB connect - * info, applicable to cross-region Data Guard only. - * @param password Required. The password used to encrypt the keys inside the wallet. The password - * must be a minimum of 8 characters. + * @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 GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( - String name, GenerateType type, boolean isRegional, String password) { - GenerateAutonomousDatabaseWalletRequest request = - GenerateAutonomousDatabaseWalletRequest.newBuilder() - .setName(name) - .setType(type) - .setIsRegional(isRegional) - .setPassword(password) - .build(); - return generateAutonomousDatabaseWallet(request); + public final ListDbVersionsPagedResponse listDbVersions(ListDbVersionsRequest request) { + return listDbVersionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Generates a wallet for an Autonomous Database. + * List DbVersions for the given project and location. * *

                                              Sample code: * @@ -3791,31 +10639,30 @@ public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabase * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * GenerateAutonomousDatabaseWalletRequest request = - * GenerateAutonomousDatabaseWalletRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) - * .setType(GenerateType.forNumber(0)) - * .setIsRegional(true) - * .setPassword("password1216985755") + * ListDbVersionsRequest request = + * ListDbVersionsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * GenerateAutonomousDatabaseWalletResponse response = - * oracleDatabaseClient.generateAutonomousDatabaseWallet(request); + * ApiFuture future = + * oracleDatabaseClient.listDbVersionsPagedCallable().futureCall(request); + * // Do something. + * for (DbVersion element : future.get().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 GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( - GenerateAutonomousDatabaseWalletRequest request) { - return generateAutonomousDatabaseWalletCallable().call(request); + public final UnaryCallable + listDbVersionsPagedCallable() { + return stub.listDbVersionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Generates a wallet for an Autonomous Database. + * List DbVersions for the given project and location. * *

                                              Sample code: * @@ -3826,31 +10673,37 @@ public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabase * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * GenerateAutonomousDatabaseWalletRequest request = - * GenerateAutonomousDatabaseWalletRequest.newBuilder() - * .setName( - * AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") - * .toString()) - * .setType(GenerateType.forNumber(0)) - * .setIsRegional(true) - * .setPassword("password1216985755") + * ListDbVersionsRequest request = + * ListDbVersionsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * oracleDatabaseClient.generateAutonomousDatabaseWalletCallable().futureCall(request); - * // Do something. - * GenerateAutonomousDatabaseWalletResponse response = future.get(); + * while (true) { + * ListDbVersionsResponse response = + * oracleDatabaseClient.listDbVersionsCallable().call(request); + * for (DbVersion element : response.getDbVersionsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable< - GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> - generateAutonomousDatabaseWalletCallable() { - return stub.generateAutonomousDatabaseWalletCallable(); + public final UnaryCallable + listDbVersionsCallable() { + return stub.listDbVersionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the available Autonomous Database versions for a project and location. + * List DatabaseCharacterSets for the given project and location. * *

                                              Sample code: * @@ -3862,28 +10715,29 @@ public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabase * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (AutonomousDbVersion element : - * oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) { + * for (DatabaseCharacterSet element : + * oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The parent value for the Autonomous Database in the following format: + * @param parent Required. The parent value for DatabaseCharacterSets in the following format: * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(LocationName parent) { - ListAutonomousDbVersionsRequest request = - ListAutonomousDbVersionsRequest.newBuilder() + public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets( + LocationName parent) { + ListDatabaseCharacterSetsRequest request = + ListDatabaseCharacterSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listAutonomousDbVersions(request); + return listDatabaseCharacterSets(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the available Autonomous Database versions for a project and location. + * List DatabaseCharacterSets for the given project and location. * *

                                              Sample code: * @@ -3895,26 +10749,26 @@ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(Loca * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (AutonomousDbVersion element : - * oracleDatabaseClient.listAutonomousDbVersions(parent).iterateAll()) { + * for (DatabaseCharacterSet element : + * oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The parent value for the Autonomous Database in the following format: + * @param parent Required. The parent value for DatabaseCharacterSets in the following format: * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(String parent) { - ListAutonomousDbVersionsRequest request = - ListAutonomousDbVersionsRequest.newBuilder().setParent(parent).build(); - return listAutonomousDbVersions(request); + public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets(String parent) { + ListDatabaseCharacterSetsRequest request = + ListDatabaseCharacterSetsRequest.newBuilder().setParent(parent).build(); + return listDatabaseCharacterSets(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the available Autonomous Database versions for a project and location. + * List DatabaseCharacterSets for the given project and location. * *

                                              Sample code: * @@ -3925,14 +10779,15 @@ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(Stri * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListAutonomousDbVersionsRequest request = - * ListAutonomousDbVersionsRequest.newBuilder() + * ListDatabaseCharacterSetsRequest request = + * ListDatabaseCharacterSetsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * for (AutonomousDbVersion element : - * oracleDatabaseClient.listAutonomousDbVersions(request).iterateAll()) { + * for (DatabaseCharacterSet element : + * oracleDatabaseClient.listDatabaseCharacterSets(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -3941,14 +10796,14 @@ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(Stri * @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 ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions( - ListAutonomousDbVersionsRequest request) { - return listAutonomousDbVersionsPagedCallable().call(request); + public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets( + ListDatabaseCharacterSetsRequest request) { + return listDatabaseCharacterSetsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the available Autonomous Database versions for a project and location. + * List DatabaseCharacterSets for the given project and location. * *

                                              Sample code: * @@ -3959,29 +10814,31 @@ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListAutonomousDbVersionsRequest request = - * ListAutonomousDbVersionsRequest.newBuilder() + * ListDatabaseCharacterSetsRequest request = + * ListDatabaseCharacterSetsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * oracleDatabaseClient.listAutonomousDbVersionsPagedCallable().futureCall(request); + * ApiFuture future = + * oracleDatabaseClient.listDatabaseCharacterSetsPagedCallable().futureCall(request); * // Do something. - * for (AutonomousDbVersion element : future.get().iterateAll()) { + * for (DatabaseCharacterSet element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listAutonomousDbVersionsPagedCallable() { - return stub.listAutonomousDbVersionsPagedCallable(); + public final UnaryCallable< + ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsPagedResponse> + listDatabaseCharacterSetsPagedCallable() { + return stub.listDatabaseCharacterSetsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the available Autonomous Database versions for a project and location. + * List DatabaseCharacterSets for the given project and location. * *

                                              Sample code: * @@ -3992,16 +10849,17 @@ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListAutonomousDbVersionsRequest request = - * ListAutonomousDbVersionsRequest.newBuilder() + * ListDatabaseCharacterSetsRequest request = + * ListDatabaseCharacterSetsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListAutonomousDbVersionsResponse response = - * oracleDatabaseClient.listAutonomousDbVersionsCallable().call(request); - * for (AutonomousDbVersion element : response.getAutonomousDbVersionsList()) { + * ListDatabaseCharacterSetsResponse response = + * oracleDatabaseClient.listDatabaseCharacterSetsCallable().call(request); + * for (DatabaseCharacterSet element : response.getDatabaseCharacterSetsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -4014,14 +10872,14 @@ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions( * } * } */ - public final UnaryCallable - listAutonomousDbVersionsCallable() { - return stub.listAutonomousDbVersionsCallable(); + public final UnaryCallable + listDatabaseCharacterSetsCallable() { + return stub.listDatabaseCharacterSetsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Autonomous Database Character Sets in a given project and location. + * Lists information about the supported locations for this service. * *

                                              Sample code: * @@ -4032,30 +10890,29 @@ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions( * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (AutonomousDatabaseCharacterSet element : - * oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) { + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Location element : oracleDatabaseClient.listLocations(request).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The parent value for the Autonomous Database in the following format: - * projects/{project}/locations/{location}. + * @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 ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( - LocationName parent) { - ListAutonomousDatabaseCharacterSetsRequest request = - ListAutonomousDatabaseCharacterSetsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listAutonomousDatabaseCharacterSets(request); + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Autonomous Database Character Sets in a given project and location. + * Lists information about the supported locations for this service. * *

                                              Sample code: * @@ -4066,28 +10923,30 @@ public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousData * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (AutonomousDatabaseCharacterSet element : - * oracleDatabaseClient.listAutonomousDatabaseCharacterSets(parent).iterateAll()) { + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture future = + * oracleDatabaseClient.listLocationsPagedCallable().futureCall(request); + * // Do something. + * for (Location element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } - * - * @param parent Required. The parent value for the Autonomous Database in the following format: - * projects/{project}/locations/{location}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( - String parent) { - ListAutonomousDatabaseCharacterSetsRequest request = - ListAutonomousDatabaseCharacterSetsRequest.newBuilder().setParent(parent).build(); - return listAutonomousDatabaseCharacterSets(request); + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Autonomous Database Character Sets in a given project and location. + * Lists information about the supported locations for this service. * *

                                              Sample code: * @@ -4098,31 +10957,35 @@ public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousData * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListAutonomousDatabaseCharacterSetsRequest request = - * ListAutonomousDatabaseCharacterSetsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * for (AutonomousDatabaseCharacterSet element : - * oracleDatabaseClient.listAutonomousDatabaseCharacterSets(request).iterateAll()) { - * // doThingsWith(element); + * while (true) { + * ListLocationsResponse response = oracleDatabaseClient.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; + * } * } * } - * } - * - * @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 ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( - ListAutonomousDatabaseCharacterSetsRequest request) { - return listAutonomousDatabaseCharacterSetsPagedCallable().call(request); + * } + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Autonomous Database Character Sets in a given project and location. + * Gets information about a location. * *

                                              Sample code: * @@ -4133,34 +10996,21 @@ public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousData * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListAutonomousDatabaseCharacterSetsRequest request = - * ListAutonomousDatabaseCharacterSetsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .build(); - * ApiFuture future = - * oracleDatabaseClient - * .listAutonomousDatabaseCharacterSetsPagedCallable() - * .futureCall(request); - * // Do something. - * for (AutonomousDatabaseCharacterSet element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + * Location response = oracleDatabaseClient.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 UnaryCallable< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsPagedResponse> - listAutonomousDatabaseCharacterSetsPagedCallable() { - return stub.listAutonomousDatabaseCharacterSetsPagedCallable(); + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Autonomous Database Character Sets in a given project and location. + * Gets information about a location. * *

                                              Sample code: * @@ -4171,1808 +11021,1909 @@ public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousData * // - It may require 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - * ListAutonomousDatabaseCharacterSetsRequest request = - * ListAutonomousDatabaseCharacterSetsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .build(); - * while (true) { - * ListAutonomousDatabaseCharacterSetsResponse response = - * oracleDatabaseClient.listAutonomousDatabaseCharacterSetsCallable().call(request); - * for (AutonomousDatabaseCharacterSet element : - * response.getAutonomousDatabaseCharacterSetsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + * ApiFuture future = oracleDatabaseClient.getLocationCallable().futureCall(request); + * // Do something. + * Location response = future.get(); * } * } */ - public final UnaryCallable< - ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> - listAutonomousDatabaseCharacterSetsCallable() { - return stub.listAutonomousDatabaseCharacterSetsCallable(); + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListCloudExadataInfrastructuresPagedResponse + extends AbstractPagedListResponse< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure, + ListCloudExadataInfrastructuresPage, + ListCloudExadataInfrastructuresFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCloudExadataInfrastructuresPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCloudExadataInfrastructuresPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCloudExadataInfrastructuresPagedResponse(ListCloudExadataInfrastructuresPage page) { + super(page, ListCloudExadataInfrastructuresFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCloudExadataInfrastructuresPage + extends AbstractPage< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure, + ListCloudExadataInfrastructuresPage> { + + private ListCloudExadataInfrastructuresPage( + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + context, + ListCloudExadataInfrastructuresResponse response) { + super(context, response); + } + + private static ListCloudExadataInfrastructuresPage createEmptyPage() { + return new ListCloudExadataInfrastructuresPage(null, null); + } + + @Override + protected ListCloudExadataInfrastructuresPage createPage( + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + context, + ListCloudExadataInfrastructuresResponse response) { + return new ListCloudExadataInfrastructuresPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCloudExadataInfrastructuresFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure, + ListCloudExadataInfrastructuresPage, + ListCloudExadataInfrastructuresFixedSizeCollection> { + + private ListCloudExadataInfrastructuresFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCloudExadataInfrastructuresFixedSizeCollection createEmptyCollection() { + return new ListCloudExadataInfrastructuresFixedSizeCollection(null, 0); + } + + @Override + protected ListCloudExadataInfrastructuresFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCloudExadataInfrastructuresFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListCloudVmClustersPagedResponse + extends AbstractPagedListResponse< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + CloudVmCluster, + ListCloudVmClustersPage, + ListCloudVmClustersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCloudVmClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCloudVmClustersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCloudVmClustersPagedResponse(ListCloudVmClustersPage page) { + super(page, ListCloudVmClustersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCloudVmClustersPage + extends AbstractPage< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + CloudVmCluster, + ListCloudVmClustersPage> { + + private ListCloudVmClustersPage( + PageContext + context, + ListCloudVmClustersResponse response) { + super(context, response); + } + + private static ListCloudVmClustersPage createEmptyPage() { + return new ListCloudVmClustersPage(null, null); + } + + @Override + protected ListCloudVmClustersPage createPage( + PageContext + context, + ListCloudVmClustersResponse response) { + return new ListCloudVmClustersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCloudVmClustersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + CloudVmCluster, + ListCloudVmClustersPage, + ListCloudVmClustersFixedSizeCollection> { + + private ListCloudVmClustersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCloudVmClustersFixedSizeCollection createEmptyCollection() { + return new ListCloudVmClustersFixedSizeCollection(null, 0); + } + + @Override + protected ListCloudVmClustersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCloudVmClustersFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the long-term and automatic backups of an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              -   *   for (AutonomousDatabaseBackup element :
                                              -   *       oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
                                              -   *     // doThingsWith(element);
                                              -   *   }
                                              -   * }
                                              -   * }
                                              - * - * @param parent Required. The parent value for ListAutonomousDatabaseBackups in the following - * format: projects/{project}/locations/{location}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( - LocationName parent) { - ListAutonomousDatabaseBackupsRequest request = - ListAutonomousDatabaseBackupsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listAutonomousDatabaseBackups(request); + public static class ListEntitlementsPagedResponse + extends AbstractPagedListResponse< + ListEntitlementsRequest, + ListEntitlementsResponse, + Entitlement, + ListEntitlementsPage, + ListEntitlementsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEntitlementsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEntitlementsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEntitlementsPagedResponse(ListEntitlementsPage page) { + super(page, ListEntitlementsFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the long-term and automatic backups of an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                              -   *   for (AutonomousDatabaseBackup element :
                                              -   *       oracleDatabaseClient.listAutonomousDatabaseBackups(parent).iterateAll()) {
                                              -   *     // doThingsWith(element);
                                              -   *   }
                                              -   * }
                                              -   * }
                                              - * - * @param parent Required. The parent value for ListAutonomousDatabaseBackups in the following - * format: projects/{project}/locations/{location}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( - String parent) { - ListAutonomousDatabaseBackupsRequest request = - ListAutonomousDatabaseBackupsRequest.newBuilder().setParent(parent).build(); - return listAutonomousDatabaseBackups(request); + public static class ListEntitlementsPage + extends AbstractPage< + ListEntitlementsRequest, ListEntitlementsResponse, Entitlement, ListEntitlementsPage> { + + private ListEntitlementsPage( + PageContext context, + ListEntitlementsResponse response) { + super(context, response); + } + + private static ListEntitlementsPage createEmptyPage() { + return new ListEntitlementsPage(null, null); + } + + @Override + protected ListEntitlementsPage createPage( + PageContext context, + ListEntitlementsResponse response) { + return new ListEntitlementsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the long-term and automatic backups of an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   ListAutonomousDatabaseBackupsRequest request =
                                              -   *       ListAutonomousDatabaseBackupsRequest.newBuilder()
                                              -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              -   *           .setFilter("filter-1274492040")
                                              -   *           .setPageSize(883849137)
                                              -   *           .setPageToken("pageToken873572522")
                                              -   *           .build();
                                              -   *   for (AutonomousDatabaseBackup element :
                                              -   *       oracleDatabaseClient.listAutonomousDatabaseBackups(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 ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( - ListAutonomousDatabaseBackupsRequest request) { - return listAutonomousDatabaseBackupsPagedCallable().call(request); + public static class ListEntitlementsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEntitlementsRequest, + ListEntitlementsResponse, + Entitlement, + ListEntitlementsPage, + ListEntitlementsFixedSizeCollection> { + + private ListEntitlementsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEntitlementsFixedSizeCollection createEmptyCollection() { + return new ListEntitlementsFixedSizeCollection(null, 0); + } + + @Override + protected ListEntitlementsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEntitlementsFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the long-term and automatic backups of an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   ListAutonomousDatabaseBackupsRequest request =
                                              -   *       ListAutonomousDatabaseBackupsRequest.newBuilder()
                                              -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              -   *           .setFilter("filter-1274492040")
                                              -   *           .setPageSize(883849137)
                                              -   *           .setPageToken("pageToken873572522")
                                              -   *           .build();
                                              -   *   ApiFuture future =
                                              -   *       oracleDatabaseClient.listAutonomousDatabaseBackupsPagedCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   for (AutonomousDatabaseBackup element : future.get().iterateAll()) {
                                              -   *     // doThingsWith(element);
                                              -   *   }
                                              -   * }
                                              -   * }
                                              - */ - public final UnaryCallable< - ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsPagedResponse> - listAutonomousDatabaseBackupsPagedCallable() { - return stub.listAutonomousDatabaseBackupsPagedCallable(); + public static class ListDbServersPagedResponse + extends AbstractPagedListResponse< + ListDbServersRequest, + ListDbServersResponse, + DbServer, + ListDbServersPage, + ListDbServersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDbServersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDbServersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDbServersPagedResponse(ListDbServersPage page) { + super(page, ListDbServersFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the long-term and automatic backups of an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   ListAutonomousDatabaseBackupsRequest request =
                                              -   *       ListAutonomousDatabaseBackupsRequest.newBuilder()
                                              -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              -   *           .setFilter("filter-1274492040")
                                              -   *           .setPageSize(883849137)
                                              -   *           .setPageToken("pageToken873572522")
                                              -   *           .build();
                                              -   *   while (true) {
                                              -   *     ListAutonomousDatabaseBackupsResponse response =
                                              -   *         oracleDatabaseClient.listAutonomousDatabaseBackupsCallable().call(request);
                                              -   *     for (AutonomousDatabaseBackup element : response.getAutonomousDatabaseBackupsList()) {
                                              -   *       // doThingsWith(element);
                                              -   *     }
                                              -   *     String nextPageToken = response.getNextPageToken();
                                              -   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                              -   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                              -   *     } else {
                                              -   *       break;
                                              -   *     }
                                              -   *   }
                                              -   * }
                                              -   * }
                                              - */ - public final UnaryCallable< - ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> - listAutonomousDatabaseBackupsCallable() { - return stub.listAutonomousDatabaseBackupsCallable(); + public static class ListDbServersPage + extends AbstractPage< + ListDbServersRequest, ListDbServersResponse, DbServer, ListDbServersPage> { + + private ListDbServersPage( + PageContext context, + ListDbServersResponse response) { + super(context, response); + } + + private static ListDbServersPage createEmptyPage() { + return new ListDbServersPage(null, null); + } + + @Override + protected ListDbServersPage createPage( + PageContext context, + ListDbServersResponse response) { + return new ListDbServersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Stops an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   AutonomousDatabaseName name =
                                              -   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              -   *   AutonomousDatabase response = oracleDatabaseClient.stopAutonomousDatabaseAsync(name).get();
                                              -   * }
                                              -   * }
                                              - * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture stopAutonomousDatabaseAsync( - AutonomousDatabaseName name) { - StopAutonomousDatabaseRequest request = - StopAutonomousDatabaseRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return stopAutonomousDatabaseAsync(request); + public static class ListDbServersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDbServersRequest, + ListDbServersResponse, + DbServer, + ListDbServersPage, + ListDbServersFixedSizeCollection> { + + private ListDbServersFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDbServersFixedSizeCollection createEmptyCollection() { + return new ListDbServersFixedSizeCollection(null, 0); + } + + @Override + protected ListDbServersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDbServersFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Stops an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   String name =
                                              -   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              -   *   AutonomousDatabase response = oracleDatabaseClient.stopAutonomousDatabaseAsync(name).get();
                                              -   * }
                                              -   * }
                                              - * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture stopAutonomousDatabaseAsync( - String name) { - StopAutonomousDatabaseRequest request = - StopAutonomousDatabaseRequest.newBuilder().setName(name).build(); - return stopAutonomousDatabaseAsync(request); + public static class ListDbNodesPagedResponse + extends AbstractPagedListResponse< + ListDbNodesRequest, + ListDbNodesResponse, + DbNode, + ListDbNodesPage, + ListDbNodesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDbNodesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListDbNodesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListDbNodesPagedResponse(ListDbNodesPage page) { + super(page, ListDbNodesFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Stops an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   StopAutonomousDatabaseRequest request =
                                              -   *       StopAutonomousDatabaseRequest.newBuilder()
                                              -   *           .setName(
                                              -   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              -   *                   .toString())
                                              -   *           .build();
                                              -   *   AutonomousDatabase response = oracleDatabaseClient.stopAutonomousDatabaseAsync(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 stopAutonomousDatabaseAsync( - StopAutonomousDatabaseRequest request) { - return stopAutonomousDatabaseOperationCallable().futureCall(request); + public static class ListDbNodesPage + extends AbstractPage { + + private ListDbNodesPage( + PageContext context, + ListDbNodesResponse response) { + super(context, response); + } + + private static ListDbNodesPage createEmptyPage() { + return new ListDbNodesPage(null, null); + } + + @Override + protected ListDbNodesPage createPage( + PageContext context, + ListDbNodesResponse response) { + return new ListDbNodesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Stops an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   StopAutonomousDatabaseRequest request =
                                              -   *       StopAutonomousDatabaseRequest.newBuilder()
                                              -   *           .setName(
                                              -   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              -   *                   .toString())
                                              -   *           .build();
                                              -   *   OperationFuture future =
                                              -   *       oracleDatabaseClient.stopAutonomousDatabaseOperationCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   AutonomousDatabase response = future.get();
                                              -   * }
                                              -   * }
                                              - */ - public final OperationCallable< - StopAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - stopAutonomousDatabaseOperationCallable() { - return stub.stopAutonomousDatabaseOperationCallable(); + public static class ListDbNodesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDbNodesRequest, + ListDbNodesResponse, + DbNode, + ListDbNodesPage, + ListDbNodesFixedSizeCollection> { + + private ListDbNodesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDbNodesFixedSizeCollection createEmptyCollection() { + return new ListDbNodesFixedSizeCollection(null, 0); + } + + @Override + protected ListDbNodesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDbNodesFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Stops an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   StopAutonomousDatabaseRequest request =
                                              -   *       StopAutonomousDatabaseRequest.newBuilder()
                                              -   *           .setName(
                                              -   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              -   *                   .toString())
                                              -   *           .build();
                                              -   *   ApiFuture future =
                                              -   *       oracleDatabaseClient.stopAutonomousDatabaseCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   Operation response = future.get();
                                              -   * }
                                              -   * }
                                              - */ - public final UnaryCallable - stopAutonomousDatabaseCallable() { - return stub.stopAutonomousDatabaseCallable(); - } + public static class ListGiVersionsPagedResponse + extends AbstractPagedListResponse< + ListGiVersionsRequest, + ListGiVersionsResponse, + GiVersion, + ListGiVersionsPage, + ListGiVersionsFixedSizeCollection> { - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   AutonomousDatabaseName name =
                                              -   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              -   *   AutonomousDatabase response = oracleDatabaseClient.startAutonomousDatabaseAsync(name).get();
                                              -   * }
                                              -   * }
                                              - * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture startAutonomousDatabaseAsync( - AutonomousDatabaseName name) { - StartAutonomousDatabaseRequest request = - StartAutonomousDatabaseRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return startAutonomousDatabaseAsync(request); + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGiVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGiVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGiVersionsPagedResponse(ListGiVersionsPage page) { + super(page, ListGiVersionsFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   String name =
                                              -   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              -   *   AutonomousDatabase response = oracleDatabaseClient.startAutonomousDatabaseAsync(name).get();
                                              -   * }
                                              -   * }
                                              - * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture startAutonomousDatabaseAsync( - String name) { - StartAutonomousDatabaseRequest request = - StartAutonomousDatabaseRequest.newBuilder().setName(name).build(); - return startAutonomousDatabaseAsync(request); + public static class ListGiVersionsPage + extends AbstractPage< + ListGiVersionsRequest, ListGiVersionsResponse, GiVersion, ListGiVersionsPage> { + + private ListGiVersionsPage( + PageContext context, + ListGiVersionsResponse response) { + super(context, response); + } + + private static ListGiVersionsPage createEmptyPage() { + return new ListGiVersionsPage(null, null); + } + + @Override + protected ListGiVersionsPage createPage( + PageContext context, + ListGiVersionsResponse response) { + return new ListGiVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   StartAutonomousDatabaseRequest request =
                                              -   *       StartAutonomousDatabaseRequest.newBuilder()
                                              -   *           .setName(
                                              -   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              -   *                   .toString())
                                              -   *           .build();
                                              -   *   AutonomousDatabase response =
                                              -   *       oracleDatabaseClient.startAutonomousDatabaseAsync(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 startAutonomousDatabaseAsync( - StartAutonomousDatabaseRequest request) { - return startAutonomousDatabaseOperationCallable().futureCall(request); + public static class ListGiVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGiVersionsRequest, + ListGiVersionsResponse, + GiVersion, + ListGiVersionsPage, + ListGiVersionsFixedSizeCollection> { + + private ListGiVersionsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGiVersionsFixedSizeCollection createEmptyCollection() { + return new ListGiVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListGiVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGiVersionsFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   StartAutonomousDatabaseRequest request =
                                              -   *       StartAutonomousDatabaseRequest.newBuilder()
                                              -   *           .setName(
                                              -   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              -   *                   .toString())
                                              -   *           .build();
                                              -   *   OperationFuture future =
                                              -   *       oracleDatabaseClient.startAutonomousDatabaseOperationCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   AutonomousDatabase response = future.get();
                                              -   * }
                                              -   * }
                                              - */ - public final OperationCallable< - StartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - startAutonomousDatabaseOperationCallable() { - return stub.startAutonomousDatabaseOperationCallable(); + public static class ListMinorVersionsPagedResponse + extends AbstractPagedListResponse< + ListMinorVersionsRequest, + ListMinorVersionsResponse, + MinorVersion, + ListMinorVersionsPage, + ListMinorVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMinorVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMinorVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMinorVersionsPagedResponse(ListMinorVersionsPage page) { + super(page, ListMinorVersionsFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   StartAutonomousDatabaseRequest request =
                                              -   *       StartAutonomousDatabaseRequest.newBuilder()
                                              -   *           .setName(
                                              -   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              -   *                   .toString())
                                              -   *           .build();
                                              -   *   ApiFuture future =
                                              -   *       oracleDatabaseClient.startAutonomousDatabaseCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   Operation response = future.get();
                                              -   * }
                                              -   * }
                                              - */ - public final UnaryCallable - startAutonomousDatabaseCallable() { - return stub.startAutonomousDatabaseCallable(); + public static class ListMinorVersionsPage + extends AbstractPage< + ListMinorVersionsRequest, + ListMinorVersionsResponse, + MinorVersion, + ListMinorVersionsPage> { + + private ListMinorVersionsPage( + PageContext context, + ListMinorVersionsResponse response) { + super(context, response); + } + + private static ListMinorVersionsPage createEmptyPage() { + return new ListMinorVersionsPage(null, null); + } + + @Override + protected ListMinorVersionsPage createPage( + PageContext context, + ListMinorVersionsResponse response) { + return new ListMinorVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Restarts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   AutonomousDatabaseName name =
                                              -   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]");
                                              -   *   AutonomousDatabase response = oracleDatabaseClient.restartAutonomousDatabaseAsync(name).get();
                                              -   * }
                                              -   * }
                                              - * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - restartAutonomousDatabaseAsync(AutonomousDatabaseName name) { - RestartAutonomousDatabaseRequest request = - RestartAutonomousDatabaseRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return restartAutonomousDatabaseAsync(request); + public static class ListMinorVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMinorVersionsRequest, + ListMinorVersionsResponse, + MinorVersion, + ListMinorVersionsPage, + ListMinorVersionsFixedSizeCollection> { + + private ListMinorVersionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMinorVersionsFixedSizeCollection createEmptyCollection() { + return new ListMinorVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListMinorVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMinorVersionsFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Restarts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   String name =
                                              -   *       AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString();
                                              -   *   AutonomousDatabase response = oracleDatabaseClient.restartAutonomousDatabaseAsync(name).get();
                                              -   * }
                                              -   * }
                                              - * - * @param name Required. The name of the Autonomous Database in the following format: - * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - restartAutonomousDatabaseAsync(String name) { - RestartAutonomousDatabaseRequest request = - RestartAutonomousDatabaseRequest.newBuilder().setName(name).build(); - return restartAutonomousDatabaseAsync(request); + public static class ListDbSystemShapesPagedResponse + extends AbstractPagedListResponse< + ListDbSystemShapesRequest, + ListDbSystemShapesResponse, + DbSystemShape, + ListDbSystemShapesPage, + ListDbSystemShapesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDbSystemShapesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDbSystemShapesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDbSystemShapesPagedResponse(ListDbSystemShapesPage page) { + super(page, ListDbSystemShapesFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Restarts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   RestartAutonomousDatabaseRequest request =
                                              -   *       RestartAutonomousDatabaseRequest.newBuilder()
                                              -   *           .setName(
                                              -   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              -   *                   .toString())
                                              -   *           .build();
                                              -   *   AutonomousDatabase response =
                                              -   *       oracleDatabaseClient.restartAutonomousDatabaseAsync(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 - restartAutonomousDatabaseAsync(RestartAutonomousDatabaseRequest request) { - return restartAutonomousDatabaseOperationCallable().futureCall(request); + public static class ListDbSystemShapesPage + extends AbstractPage< + ListDbSystemShapesRequest, + ListDbSystemShapesResponse, + DbSystemShape, + ListDbSystemShapesPage> { + + private ListDbSystemShapesPage( + PageContext context, + ListDbSystemShapesResponse response) { + super(context, response); + } + + private static ListDbSystemShapesPage createEmptyPage() { + return new ListDbSystemShapesPage(null, null); + } + + @Override + protected ListDbSystemShapesPage createPage( + PageContext context, + ListDbSystemShapesResponse response) { + return new ListDbSystemShapesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Restarts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   RestartAutonomousDatabaseRequest request =
                                              -   *       RestartAutonomousDatabaseRequest.newBuilder()
                                              -   *           .setName(
                                              -   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              -   *                   .toString())
                                              -   *           .build();
                                              -   *   OperationFuture future =
                                              -   *       oracleDatabaseClient.restartAutonomousDatabaseOperationCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   AutonomousDatabase response = future.get();
                                              -   * }
                                              -   * }
                                              - */ - public final OperationCallable< - RestartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - restartAutonomousDatabaseOperationCallable() { - return stub.restartAutonomousDatabaseOperationCallable(); + public static class ListDbSystemShapesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDbSystemShapesRequest, + ListDbSystemShapesResponse, + DbSystemShape, + ListDbSystemShapesPage, + ListDbSystemShapesFixedSizeCollection> { + + private ListDbSystemShapesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDbSystemShapesFixedSizeCollection createEmptyCollection() { + return new ListDbSystemShapesFixedSizeCollection(null, 0); + } + + @Override + protected ListDbSystemShapesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDbSystemShapesFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Restarts an Autonomous Database. - * - *

                                              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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   RestartAutonomousDatabaseRequest request =
                                              -   *       RestartAutonomousDatabaseRequest.newBuilder()
                                              -   *           .setName(
                                              -   *               AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]")
                                              -   *                   .toString())
                                              -   *           .build();
                                              -   *   ApiFuture future =
                                              -   *       oracleDatabaseClient.restartAutonomousDatabaseCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   Operation response = future.get();
                                              -   * }
                                              -   * }
                                              - */ - public final UnaryCallable - restartAutonomousDatabaseCallable() { - return stub.restartAutonomousDatabaseCallable(); + public static class ListAutonomousDatabasesPagedResponse + extends AbstractPagedListResponse< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + AutonomousDatabase, + ListAutonomousDatabasesPage, + ListAutonomousDatabasesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutonomousDatabasesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAutonomousDatabasesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAutonomousDatabasesPagedResponse(ListAutonomousDatabasesPage page) { + super(page, ListAutonomousDatabasesFixedSizeCollection.createEmptyCollection()); + } } - // 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   ListLocationsRequest request =
                                              -   *       ListLocationsRequest.newBuilder()
                                              -   *           .setName("name3373707")
                                              -   *           .setFilter("filter-1274492040")
                                              -   *           .setPageSize(883849137)
                                              -   *           .setPageToken("pageToken873572522")
                                              -   *           .build();
                                              -   *   for (Location element : oracleDatabaseClient.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); + public static class ListAutonomousDatabasesPage + extends AbstractPage< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + AutonomousDatabase, + ListAutonomousDatabasesPage> { + + private ListAutonomousDatabasesPage( + PageContext< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + context, + ListAutonomousDatabasesResponse response) { + super(context, response); + } + + private static ListAutonomousDatabasesPage createEmptyPage() { + return new ListAutonomousDatabasesPage(null, null); + } + + @Override + protected ListAutonomousDatabasesPage createPage( + PageContext< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + context, + ListAutonomousDatabasesResponse response) { + return new ListAutonomousDatabasesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   ListLocationsRequest request =
                                              -   *       ListLocationsRequest.newBuilder()
                                              -   *           .setName("name3373707")
                                              -   *           .setFilter("filter-1274492040")
                                              -   *           .setPageSize(883849137)
                                              -   *           .setPageToken("pageToken873572522")
                                              -   *           .build();
                                              -   *   ApiFuture future =
                                              -   *       oracleDatabaseClient.listLocationsPagedCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   for (Location element : future.get().iterateAll()) {
                                              -   *     // doThingsWith(element);
                                              -   *   }
                                              -   * }
                                              -   * }
                                              - */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public static class ListAutonomousDatabasesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + AutonomousDatabase, + ListAutonomousDatabasesPage, + ListAutonomousDatabasesFixedSizeCollection> { + + private ListAutonomousDatabasesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAutonomousDatabasesFixedSizeCollection createEmptyCollection() { + return new ListAutonomousDatabasesFixedSizeCollection(null, 0); + } + + @Override + protected ListAutonomousDatabasesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAutonomousDatabasesFixedSizeCollection(pages, collectionSize); + } } - // 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   ListLocationsRequest request =
                                              -   *       ListLocationsRequest.newBuilder()
                                              -   *           .setName("name3373707")
                                              -   *           .setFilter("filter-1274492040")
                                              -   *           .setPageSize(883849137)
                                              -   *           .setPageToken("pageToken873572522")
                                              -   *           .build();
                                              -   *   while (true) {
                                              -   *     ListLocationsResponse response = oracleDatabaseClient.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(); + public static class ListAutonomousDbVersionsPagedResponse + extends AbstractPagedListResponse< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion, + ListAutonomousDbVersionsPage, + ListAutonomousDbVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutonomousDbVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAutonomousDbVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAutonomousDbVersionsPagedResponse(ListAutonomousDbVersionsPage page) { + super(page, ListAutonomousDbVersionsFixedSizeCollection.createEmptyCollection()); + } } - // 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                              -   *   Location response = oracleDatabaseClient.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); + public static class ListAutonomousDbVersionsPage + extends AbstractPage< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion, + ListAutonomousDbVersionsPage> { + + private ListAutonomousDbVersionsPage( + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + context, + ListAutonomousDbVersionsResponse response) { + super(context, response); + } + + private static ListAutonomousDbVersionsPage createEmptyPage() { + return new ListAutonomousDbVersionsPage(null, null); + } + + @Override + protected ListAutonomousDbVersionsPage createPage( + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + context, + ListAutonomousDbVersionsResponse response) { + return new ListAutonomousDbVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
                                              -   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                              -   *   ApiFuture future = oracleDatabaseClient.getLocationCallable().futureCall(request);
                                              -   *   // Do something.
                                              -   *   Location response = future.get();
                                              -   * }
                                              -   * }
                                              - */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); - } + public static class ListAutonomousDbVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion, + ListAutonomousDbVersionsPage, + ListAutonomousDbVersionsFixedSizeCollection> { - @Override - public final void close() { - stub.close(); - } + private ListAutonomousDbVersionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } - @Override - public void shutdown() { - stub.shutdown(); - } + private static ListAutonomousDbVersionsFixedSizeCollection createEmptyCollection() { + return new ListAutonomousDbVersionsFixedSizeCollection(null, 0); + } - @Override - public boolean isShutdown() { - return stub.isShutdown(); + @Override + protected ListAutonomousDbVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAutonomousDbVersionsFixedSizeCollection(pages, collectionSize); + } } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + public static class ListAutonomousDatabaseCharacterSetsPagedResponse + extends AbstractPagedListResponse< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet, + ListAutonomousDatabaseCharacterSetsPage, + ListAutonomousDatabaseCharacterSetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutonomousDatabaseCharacterSetsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAutonomousDatabaseCharacterSetsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAutonomousDatabaseCharacterSetsPagedResponse( + ListAutonomousDatabaseCharacterSetsPage page) { + super(page, ListAutonomousDatabaseCharacterSetsFixedSizeCollection.createEmptyCollection()); + } } - @Override - public void shutdownNow() { - stub.shutdownNow(); + public static class ListAutonomousDatabaseCharacterSetsPage + extends AbstractPage< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet, + ListAutonomousDatabaseCharacterSetsPage> { + + private ListAutonomousDatabaseCharacterSetsPage( + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + context, + ListAutonomousDatabaseCharacterSetsResponse response) { + super(context, response); + } + + private static ListAutonomousDatabaseCharacterSetsPage createEmptyPage() { + return new ListAutonomousDatabaseCharacterSetsPage(null, null); + } + + @Override + protected ListAutonomousDatabaseCharacterSetsPage createPage( + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + context, + ListAutonomousDatabaseCharacterSetsResponse response) { + return new ListAutonomousDatabaseCharacterSetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + public static class ListAutonomousDatabaseCharacterSetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet, + ListAutonomousDatabaseCharacterSetsPage, + ListAutonomousDatabaseCharacterSetsFixedSizeCollection> { + + private ListAutonomousDatabaseCharacterSetsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAutonomousDatabaseCharacterSetsFixedSizeCollection createEmptyCollection() { + return new ListAutonomousDatabaseCharacterSetsFixedSizeCollection(null, 0); + } + + @Override + protected ListAutonomousDatabaseCharacterSetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAutonomousDatabaseCharacterSetsFixedSizeCollection(pages, collectionSize); + } } - public static class ListCloudExadataInfrastructuresPagedResponse + public static class ListAutonomousDatabaseBackupsPagedResponse extends AbstractPagedListResponse< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - CloudExadataInfrastructure, - ListCloudExadataInfrastructuresPage, - ListCloudExadataInfrastructuresFixedSizeCollection> { + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup, + ListAutonomousDatabaseBackupsPage, + ListAutonomousDatabaseBackupsFixedSizeCollection> { - public static ApiFuture createAsync( + public static ApiFuture createAsync( PageContext< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - CloudExadataInfrastructure> + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCloudExadataInfrastructuresPage.createEmptyPage() + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutonomousDatabaseBackupsPage.createEmptyPage() .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListCloudExadataInfrastructuresPagedResponse(input), + input -> new ListAutonomousDatabaseBackupsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListCloudExadataInfrastructuresPagedResponse(ListCloudExadataInfrastructuresPage page) { - super(page, ListCloudExadataInfrastructuresFixedSizeCollection.createEmptyCollection()); + private ListAutonomousDatabaseBackupsPagedResponse(ListAutonomousDatabaseBackupsPage page) { + super(page, ListAutonomousDatabaseBackupsFixedSizeCollection.createEmptyCollection()); } } - public static class ListCloudExadataInfrastructuresPage + public static class ListAutonomousDatabaseBackupsPage extends AbstractPage< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - CloudExadataInfrastructure, - ListCloudExadataInfrastructuresPage> { + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup, + ListAutonomousDatabaseBackupsPage> { - private ListCloudExadataInfrastructuresPage( + private ListAutonomousDatabaseBackupsPage( PageContext< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - CloudExadataInfrastructure> + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> context, - ListCloudExadataInfrastructuresResponse response) { + ListAutonomousDatabaseBackupsResponse response) { super(context, response); } - private static ListCloudExadataInfrastructuresPage createEmptyPage() { - return new ListCloudExadataInfrastructuresPage(null, null); + private static ListAutonomousDatabaseBackupsPage createEmptyPage() { + return new ListAutonomousDatabaseBackupsPage(null, null); } @Override - protected ListCloudExadataInfrastructuresPage createPage( + protected ListAutonomousDatabaseBackupsPage createPage( PageContext< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - CloudExadataInfrastructure> + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> context, - ListCloudExadataInfrastructuresResponse response) { - return new ListCloudExadataInfrastructuresPage(context, response); + ListAutonomousDatabaseBackupsResponse response) { + return new ListAutonomousDatabaseBackupsPage(context, response); } @Override - public ApiFuture createPageAsync( + public ApiFuture createPageAsync( PageContext< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - CloudExadataInfrastructure> + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> context, - ApiFuture futureResponse) { + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListCloudExadataInfrastructuresFixedSizeCollection + public static class ListAutonomousDatabaseBackupsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - CloudExadataInfrastructure, - ListCloudExadataInfrastructuresPage, - ListCloudExadataInfrastructuresFixedSizeCollection> { + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup, + ListAutonomousDatabaseBackupsPage, + ListAutonomousDatabaseBackupsFixedSizeCollection> { - private ListCloudExadataInfrastructuresFixedSizeCollection( - List pages, int collectionSize) { + private ListAutonomousDatabaseBackupsFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListCloudExadataInfrastructuresFixedSizeCollection createEmptyCollection() { - return new ListCloudExadataInfrastructuresFixedSizeCollection(null, 0); + private static ListAutonomousDatabaseBackupsFixedSizeCollection createEmptyCollection() { + return new ListAutonomousDatabaseBackupsFixedSizeCollection(null, 0); } @Override - protected ListCloudExadataInfrastructuresFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCloudExadataInfrastructuresFixedSizeCollection(pages, collectionSize); + protected ListAutonomousDatabaseBackupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAutonomousDatabaseBackupsFixedSizeCollection(pages, collectionSize); } } - public static class ListCloudVmClustersPagedResponse + public static class ListOdbNetworksPagedResponse extends AbstractPagedListResponse< - ListCloudVmClustersRequest, - ListCloudVmClustersResponse, - CloudVmCluster, - ListCloudVmClustersPage, - ListCloudVmClustersFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCloudVmClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + ListOdbNetworksRequest, + ListOdbNetworksResponse, + OdbNetwork, + ListOdbNetworksPage, + ListOdbNetworksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOdbNetworksPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListCloudVmClustersPagedResponse(input), + input -> new ListOdbNetworksPagedResponse(input), MoreExecutors.directExecutor()); } - private ListCloudVmClustersPagedResponse(ListCloudVmClustersPage page) { - super(page, ListCloudVmClustersFixedSizeCollection.createEmptyCollection()); + private ListOdbNetworksPagedResponse(ListOdbNetworksPage page) { + super(page, ListOdbNetworksFixedSizeCollection.createEmptyCollection()); } } - public static class ListCloudVmClustersPage + public static class ListOdbNetworksPage extends AbstractPage< - ListCloudVmClustersRequest, - ListCloudVmClustersResponse, - CloudVmCluster, - ListCloudVmClustersPage> { + ListOdbNetworksRequest, ListOdbNetworksResponse, OdbNetwork, ListOdbNetworksPage> { - private ListCloudVmClustersPage( - PageContext - context, - ListCloudVmClustersResponse response) { + private ListOdbNetworksPage( + PageContext context, + ListOdbNetworksResponse response) { super(context, response); } - private static ListCloudVmClustersPage createEmptyPage() { - return new ListCloudVmClustersPage(null, null); + private static ListOdbNetworksPage createEmptyPage() { + return new ListOdbNetworksPage(null, null); } @Override - protected ListCloudVmClustersPage createPage( - PageContext - context, - ListCloudVmClustersResponse response) { - return new ListCloudVmClustersPage(context, response); + protected ListOdbNetworksPage createPage( + PageContext context, + ListOdbNetworksResponse response) { + return new ListOdbNetworksPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListCloudVmClustersFixedSizeCollection + public static class ListOdbNetworksFixedSizeCollection extends AbstractFixedSizeCollection< - ListCloudVmClustersRequest, - ListCloudVmClustersResponse, - CloudVmCluster, - ListCloudVmClustersPage, - ListCloudVmClustersFixedSizeCollection> { - - private ListCloudVmClustersFixedSizeCollection( - List pages, int collectionSize) { + ListOdbNetworksRequest, + ListOdbNetworksResponse, + OdbNetwork, + ListOdbNetworksPage, + ListOdbNetworksFixedSizeCollection> { + + private ListOdbNetworksFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListCloudVmClustersFixedSizeCollection createEmptyCollection() { - return new ListCloudVmClustersFixedSizeCollection(null, 0); + private static ListOdbNetworksFixedSizeCollection createEmptyCollection() { + return new ListOdbNetworksFixedSizeCollection(null, 0); } @Override - protected ListCloudVmClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCloudVmClustersFixedSizeCollection(pages, collectionSize); + protected ListOdbNetworksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOdbNetworksFixedSizeCollection(pages, collectionSize); } } - public static class ListEntitlementsPagedResponse + public static class ListOdbSubnetsPagedResponse extends AbstractPagedListResponse< - ListEntitlementsRequest, - ListEntitlementsResponse, - Entitlement, - ListEntitlementsPage, - ListEntitlementsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListEntitlementsPage.createEmptyPage().createPageAsync(context, futureResponse); + ListOdbSubnetsRequest, + ListOdbSubnetsResponse, + OdbSubnet, + ListOdbSubnetsPage, + ListOdbSubnetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOdbSubnetsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListEntitlementsPagedResponse(input), + input -> new ListOdbSubnetsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListEntitlementsPagedResponse(ListEntitlementsPage page) { - super(page, ListEntitlementsFixedSizeCollection.createEmptyCollection()); + private ListOdbSubnetsPagedResponse(ListOdbSubnetsPage page) { + super(page, ListOdbSubnetsFixedSizeCollection.createEmptyCollection()); } } - public static class ListEntitlementsPage + public static class ListOdbSubnetsPage extends AbstractPage< - ListEntitlementsRequest, ListEntitlementsResponse, Entitlement, ListEntitlementsPage> { + ListOdbSubnetsRequest, ListOdbSubnetsResponse, OdbSubnet, ListOdbSubnetsPage> { - private ListEntitlementsPage( - PageContext context, - ListEntitlementsResponse response) { + private ListOdbSubnetsPage( + PageContext context, + ListOdbSubnetsResponse response) { super(context, response); } - private static ListEntitlementsPage createEmptyPage() { - return new ListEntitlementsPage(null, null); + private static ListOdbSubnetsPage createEmptyPage() { + return new ListOdbSubnetsPage(null, null); } @Override - protected ListEntitlementsPage createPage( - PageContext context, - ListEntitlementsResponse response) { - return new ListEntitlementsPage(context, response); + protected ListOdbSubnetsPage createPage( + PageContext context, + ListOdbSubnetsResponse response) { + return new ListOdbSubnetsPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListEntitlementsFixedSizeCollection + public static class ListOdbSubnetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListEntitlementsRequest, - ListEntitlementsResponse, - Entitlement, - ListEntitlementsPage, - ListEntitlementsFixedSizeCollection> { + ListOdbSubnetsRequest, + ListOdbSubnetsResponse, + OdbSubnet, + ListOdbSubnetsPage, + ListOdbSubnetsFixedSizeCollection> { - private ListEntitlementsFixedSizeCollection( - List pages, int collectionSize) { + private ListOdbSubnetsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } - private static ListEntitlementsFixedSizeCollection createEmptyCollection() { - return new ListEntitlementsFixedSizeCollection(null, 0); + private static ListOdbSubnetsFixedSizeCollection createEmptyCollection() { + return new ListOdbSubnetsFixedSizeCollection(null, 0); } @Override - protected ListEntitlementsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListEntitlementsFixedSizeCollection(pages, collectionSize); + protected ListOdbSubnetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOdbSubnetsFixedSizeCollection(pages, collectionSize); } } - public static class ListDbServersPagedResponse + public static class ListExadbVmClustersPagedResponse extends AbstractPagedListResponse< - ListDbServersRequest, - ListDbServersResponse, - DbServer, - ListDbServersPage, - ListDbServersFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDbServersPage.createEmptyPage().createPageAsync(context, futureResponse); + ListExadbVmClustersRequest, + ListExadbVmClustersResponse, + ExadbVmCluster, + ListExadbVmClustersPage, + ListExadbVmClustersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExadbVmClustersPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListDbServersPagedResponse(input), + input -> new ListExadbVmClustersPagedResponse(input), MoreExecutors.directExecutor()); } - private ListDbServersPagedResponse(ListDbServersPage page) { - super(page, ListDbServersFixedSizeCollection.createEmptyCollection()); + private ListExadbVmClustersPagedResponse(ListExadbVmClustersPage page) { + super(page, ListExadbVmClustersFixedSizeCollection.createEmptyCollection()); } } - public static class ListDbServersPage + public static class ListExadbVmClustersPage extends AbstractPage< - ListDbServersRequest, ListDbServersResponse, DbServer, ListDbServersPage> { + ListExadbVmClustersRequest, + ListExadbVmClustersResponse, + ExadbVmCluster, + ListExadbVmClustersPage> { - private ListDbServersPage( - PageContext context, - ListDbServersResponse response) { + private ListExadbVmClustersPage( + PageContext + context, + ListExadbVmClustersResponse response) { super(context, response); } - private static ListDbServersPage createEmptyPage() { - return new ListDbServersPage(null, null); + private static ListExadbVmClustersPage createEmptyPage() { + return new ListExadbVmClustersPage(null, null); } @Override - protected ListDbServersPage createPage( - PageContext context, - ListDbServersResponse response) { - return new ListDbServersPage(context, response); + protected ListExadbVmClustersPage createPage( + PageContext + context, + ListExadbVmClustersResponse response) { + return new ListExadbVmClustersPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListDbServersFixedSizeCollection + public static class ListExadbVmClustersFixedSizeCollection extends AbstractFixedSizeCollection< - ListDbServersRequest, - ListDbServersResponse, - DbServer, - ListDbServersPage, - ListDbServersFixedSizeCollection> { - - private ListDbServersFixedSizeCollection(List pages, int collectionSize) { + ListExadbVmClustersRequest, + ListExadbVmClustersResponse, + ExadbVmCluster, + ListExadbVmClustersPage, + ListExadbVmClustersFixedSizeCollection> { + + private ListExadbVmClustersFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListDbServersFixedSizeCollection createEmptyCollection() { - return new ListDbServersFixedSizeCollection(null, 0); + private static ListExadbVmClustersFixedSizeCollection createEmptyCollection() { + return new ListExadbVmClustersFixedSizeCollection(null, 0); } @Override - protected ListDbServersFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDbServersFixedSizeCollection(pages, collectionSize); + protected ListExadbVmClustersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExadbVmClustersFixedSizeCollection(pages, collectionSize); } } - public static class ListDbNodesPagedResponse + public static class ListExascaleDbStorageVaultsPagedResponse extends AbstractPagedListResponse< - ListDbNodesRequest, - ListDbNodesResponse, - DbNode, - ListDbNodesPage, - ListDbNodesFixedSizeCollection> { + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault, + ListExascaleDbStorageVaultsPage, + ListExascaleDbStorageVaultsFixedSizeCollection> { - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDbNodesPage.createEmptyPage().createPageAsync(context, futureResponse); + public static ApiFuture createAsync( + PageContext< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExascaleDbStorageVaultsPage.createEmptyPage() + .createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, input -> new ListDbNodesPagedResponse(input), MoreExecutors.directExecutor()); + futurePage, + input -> new ListExascaleDbStorageVaultsPagedResponse(input), + MoreExecutors.directExecutor()); } - private ListDbNodesPagedResponse(ListDbNodesPage page) { - super(page, ListDbNodesFixedSizeCollection.createEmptyCollection()); + private ListExascaleDbStorageVaultsPagedResponse(ListExascaleDbStorageVaultsPage page) { + super(page, ListExascaleDbStorageVaultsFixedSizeCollection.createEmptyCollection()); } } - public static class ListDbNodesPage - extends AbstractPage { + public static class ListExascaleDbStorageVaultsPage + extends AbstractPage< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault, + ListExascaleDbStorageVaultsPage> { - private ListDbNodesPage( - PageContext context, - ListDbNodesResponse response) { + private ListExascaleDbStorageVaultsPage( + PageContext< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault> + context, + ListExascaleDbStorageVaultsResponse response) { super(context, response); } - private static ListDbNodesPage createEmptyPage() { - return new ListDbNodesPage(null, null); + private static ListExascaleDbStorageVaultsPage createEmptyPage() { + return new ListExascaleDbStorageVaultsPage(null, null); } @Override - protected ListDbNodesPage createPage( - PageContext context, - ListDbNodesResponse response) { - return new ListDbNodesPage(context, response); + protected ListExascaleDbStorageVaultsPage createPage( + PageContext< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault> + context, + ListExascaleDbStorageVaultsResponse response) { + return new ListExascaleDbStorageVaultsPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault> + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListDbNodesFixedSizeCollection + public static class ListExascaleDbStorageVaultsFixedSizeCollection extends AbstractFixedSizeCollection< - ListDbNodesRequest, - ListDbNodesResponse, - DbNode, - ListDbNodesPage, - ListDbNodesFixedSizeCollection> { - - private ListDbNodesFixedSizeCollection(List pages, int collectionSize) { + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault, + ListExascaleDbStorageVaultsPage, + ListExascaleDbStorageVaultsFixedSizeCollection> { + + private ListExascaleDbStorageVaultsFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListDbNodesFixedSizeCollection createEmptyCollection() { - return new ListDbNodesFixedSizeCollection(null, 0); + private static ListExascaleDbStorageVaultsFixedSizeCollection createEmptyCollection() { + return new ListExascaleDbStorageVaultsFixedSizeCollection(null, 0); } @Override - protected ListDbNodesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDbNodesFixedSizeCollection(pages, collectionSize); + protected ListExascaleDbStorageVaultsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExascaleDbStorageVaultsFixedSizeCollection(pages, collectionSize); } } - public static class ListGiVersionsPagedResponse + public static class ListDbSystemInitialStorageSizesPagedResponse extends AbstractPagedListResponse< - ListGiVersionsRequest, - ListGiVersionsResponse, - GiVersion, - ListGiVersionsPage, - ListGiVersionsFixedSizeCollection> { + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize, + ListDbSystemInitialStorageSizesPage, + ListDbSystemInitialStorageSizesFixedSizeCollection> { - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListGiVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + public static ApiFuture createAsync( + PageContext< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDbSystemInitialStorageSizesPage.createEmptyPage() + .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListGiVersionsPagedResponse(input), + input -> new ListDbSystemInitialStorageSizesPagedResponse(input), MoreExecutors.directExecutor()); } - private ListGiVersionsPagedResponse(ListGiVersionsPage page) { - super(page, ListGiVersionsFixedSizeCollection.createEmptyCollection()); + private ListDbSystemInitialStorageSizesPagedResponse(ListDbSystemInitialStorageSizesPage page) { + super(page, ListDbSystemInitialStorageSizesFixedSizeCollection.createEmptyCollection()); } } - public static class ListGiVersionsPage + public static class ListDbSystemInitialStorageSizesPage extends AbstractPage< - ListGiVersionsRequest, ListGiVersionsResponse, GiVersion, ListGiVersionsPage> { + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize, + ListDbSystemInitialStorageSizesPage> { - private ListGiVersionsPage( - PageContext context, - ListGiVersionsResponse response) { + private ListDbSystemInitialStorageSizesPage( + PageContext< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize> + context, + ListDbSystemInitialStorageSizesResponse response) { super(context, response); } - private static ListGiVersionsPage createEmptyPage() { - return new ListGiVersionsPage(null, null); + private static ListDbSystemInitialStorageSizesPage createEmptyPage() { + return new ListDbSystemInitialStorageSizesPage(null, null); } @Override - protected ListGiVersionsPage createPage( - PageContext context, - ListGiVersionsResponse response) { - return new ListGiVersionsPage(context, response); + protected ListDbSystemInitialStorageSizesPage createPage( + PageContext< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize> + context, + ListDbSystemInitialStorageSizesResponse response) { + return new ListDbSystemInitialStorageSizesPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize> + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListGiVersionsFixedSizeCollection + public static class ListDbSystemInitialStorageSizesFixedSizeCollection extends AbstractFixedSizeCollection< - ListGiVersionsRequest, - ListGiVersionsResponse, - GiVersion, - ListGiVersionsPage, - ListGiVersionsFixedSizeCollection> { - - private ListGiVersionsFixedSizeCollection(List pages, int collectionSize) { + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize, + ListDbSystemInitialStorageSizesPage, + ListDbSystemInitialStorageSizesFixedSizeCollection> { + + private ListDbSystemInitialStorageSizesFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListGiVersionsFixedSizeCollection createEmptyCollection() { - return new ListGiVersionsFixedSizeCollection(null, 0); + private static ListDbSystemInitialStorageSizesFixedSizeCollection createEmptyCollection() { + return new ListDbSystemInitialStorageSizesFixedSizeCollection(null, 0); } @Override - protected ListGiVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListGiVersionsFixedSizeCollection(pages, collectionSize); + protected ListDbSystemInitialStorageSizesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDbSystemInitialStorageSizesFixedSizeCollection(pages, collectionSize); } } - public static class ListDbSystemShapesPagedResponse + public static class ListDatabasesPagedResponse extends AbstractPagedListResponse< - ListDbSystemShapesRequest, - ListDbSystemShapesResponse, - DbSystemShape, - ListDbSystemShapesPage, - ListDbSystemShapesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDbSystemShapesPage.createEmptyPage().createPageAsync(context, futureResponse); + ListDatabasesRequest, + ListDatabasesResponse, + Database, + ListDatabasesPage, + ListDatabasesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDatabasesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListDbSystemShapesPagedResponse(input), + input -> new ListDatabasesPagedResponse(input), MoreExecutors.directExecutor()); } - private ListDbSystemShapesPagedResponse(ListDbSystemShapesPage page) { - super(page, ListDbSystemShapesFixedSizeCollection.createEmptyCollection()); + private ListDatabasesPagedResponse(ListDatabasesPage page) { + super(page, ListDatabasesFixedSizeCollection.createEmptyCollection()); } } - public static class ListDbSystemShapesPage + public static class ListDatabasesPage extends AbstractPage< - ListDbSystemShapesRequest, - ListDbSystemShapesResponse, - DbSystemShape, - ListDbSystemShapesPage> { + ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> { - private ListDbSystemShapesPage( - PageContext context, - ListDbSystemShapesResponse response) { + private ListDatabasesPage( + PageContext context, + ListDatabasesResponse response) { super(context, response); } - private static ListDbSystemShapesPage createEmptyPage() { - return new ListDbSystemShapesPage(null, null); + private static ListDatabasesPage createEmptyPage() { + return new ListDatabasesPage(null, null); } @Override - protected ListDbSystemShapesPage createPage( - PageContext context, - ListDbSystemShapesResponse response) { - return new ListDbSystemShapesPage(context, response); + protected ListDatabasesPage createPage( + PageContext context, + ListDatabasesResponse response) { + return new ListDatabasesPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListDbSystemShapesFixedSizeCollection + public static class ListDatabasesFixedSizeCollection extends AbstractFixedSizeCollection< - ListDbSystemShapesRequest, - ListDbSystemShapesResponse, - DbSystemShape, - ListDbSystemShapesPage, - ListDbSystemShapesFixedSizeCollection> { + ListDatabasesRequest, + ListDatabasesResponse, + Database, + ListDatabasesPage, + ListDatabasesFixedSizeCollection> { - private ListDbSystemShapesFixedSizeCollection( - List pages, int collectionSize) { + private ListDatabasesFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } - private static ListDbSystemShapesFixedSizeCollection createEmptyCollection() { - return new ListDbSystemShapesFixedSizeCollection(null, 0); + private static ListDatabasesFixedSizeCollection createEmptyCollection() { + return new ListDatabasesFixedSizeCollection(null, 0); } @Override - protected ListDbSystemShapesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDbSystemShapesFixedSizeCollection(pages, collectionSize); + protected ListDatabasesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDatabasesFixedSizeCollection(pages, collectionSize); } } - public static class ListAutonomousDatabasesPagedResponse + public static class ListPluggableDatabasesPagedResponse extends AbstractPagedListResponse< - ListAutonomousDatabasesRequest, - ListAutonomousDatabasesResponse, - AutonomousDatabase, - ListAutonomousDatabasesPage, - ListAutonomousDatabasesFixedSizeCollection> { + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + PluggableDatabase, + ListPluggableDatabasesPage, + ListPluggableDatabasesFixedSizeCollection> { - public static ApiFuture createAsync( + public static ApiFuture createAsync( PageContext< - ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, PluggableDatabase> context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAutonomousDatabasesPage.createEmptyPage().createPageAsync(context, futureResponse); + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPluggableDatabasesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListAutonomousDatabasesPagedResponse(input), + input -> new ListPluggableDatabasesPagedResponse(input), MoreExecutors.directExecutor()); } - private ListAutonomousDatabasesPagedResponse(ListAutonomousDatabasesPage page) { - super(page, ListAutonomousDatabasesFixedSizeCollection.createEmptyCollection()); + private ListPluggableDatabasesPagedResponse(ListPluggableDatabasesPage page) { + super(page, ListPluggableDatabasesFixedSizeCollection.createEmptyCollection()); } } - public static class ListAutonomousDatabasesPage + public static class ListPluggableDatabasesPage extends AbstractPage< - ListAutonomousDatabasesRequest, - ListAutonomousDatabasesResponse, - AutonomousDatabase, - ListAutonomousDatabasesPage> { + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + PluggableDatabase, + ListPluggableDatabasesPage> { - private ListAutonomousDatabasesPage( + private ListPluggableDatabasesPage( PageContext< - ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, PluggableDatabase> context, - ListAutonomousDatabasesResponse response) { + ListPluggableDatabasesResponse response) { super(context, response); } - private static ListAutonomousDatabasesPage createEmptyPage() { - return new ListAutonomousDatabasesPage(null, null); + private static ListPluggableDatabasesPage createEmptyPage() { + return new ListPluggableDatabasesPage(null, null); } @Override - protected ListAutonomousDatabasesPage createPage( + protected ListPluggableDatabasesPage createPage( PageContext< - ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, PluggableDatabase> context, - ListAutonomousDatabasesResponse response) { - return new ListAutonomousDatabasesPage(context, response); + ListPluggableDatabasesResponse response) { + return new ListPluggableDatabasesPage(context, response); } @Override - public ApiFuture createPageAsync( + public ApiFuture createPageAsync( PageContext< - ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> + ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, PluggableDatabase> context, - ApiFuture futureResponse) { + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListAutonomousDatabasesFixedSizeCollection + public static class ListPluggableDatabasesFixedSizeCollection extends AbstractFixedSizeCollection< - ListAutonomousDatabasesRequest, - ListAutonomousDatabasesResponse, - AutonomousDatabase, - ListAutonomousDatabasesPage, - ListAutonomousDatabasesFixedSizeCollection> { - - private ListAutonomousDatabasesFixedSizeCollection( - List pages, int collectionSize) { + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + PluggableDatabase, + ListPluggableDatabasesPage, + ListPluggableDatabasesFixedSizeCollection> { + + private ListPluggableDatabasesFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListAutonomousDatabasesFixedSizeCollection createEmptyCollection() { - return new ListAutonomousDatabasesFixedSizeCollection(null, 0); + private static ListPluggableDatabasesFixedSizeCollection createEmptyCollection() { + return new ListPluggableDatabasesFixedSizeCollection(null, 0); } @Override - protected ListAutonomousDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAutonomousDatabasesFixedSizeCollection(pages, collectionSize); + protected ListPluggableDatabasesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPluggableDatabasesFixedSizeCollection(pages, collectionSize); } } - public static class ListAutonomousDbVersionsPagedResponse + public static class ListDbSystemsPagedResponse extends AbstractPagedListResponse< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - AutonomousDbVersion, - ListAutonomousDbVersionsPage, - ListAutonomousDbVersionsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - AutonomousDbVersion> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAutonomousDbVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + ListDbSystemsRequest, + ListDbSystemsResponse, + DbSystem, + ListDbSystemsPage, + ListDbSystemsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDbSystemsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListAutonomousDbVersionsPagedResponse(input), + input -> new ListDbSystemsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListAutonomousDbVersionsPagedResponse(ListAutonomousDbVersionsPage page) { - super(page, ListAutonomousDbVersionsFixedSizeCollection.createEmptyCollection()); + private ListDbSystemsPagedResponse(ListDbSystemsPage page) { + super(page, ListDbSystemsFixedSizeCollection.createEmptyCollection()); } } - public static class ListAutonomousDbVersionsPage + public static class ListDbSystemsPage extends AbstractPage< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - AutonomousDbVersion, - ListAutonomousDbVersionsPage> { + ListDbSystemsRequest, ListDbSystemsResponse, DbSystem, ListDbSystemsPage> { - private ListAutonomousDbVersionsPage( - PageContext< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - AutonomousDbVersion> - context, - ListAutonomousDbVersionsResponse response) { + private ListDbSystemsPage( + PageContext context, + ListDbSystemsResponse response) { super(context, response); } - private static ListAutonomousDbVersionsPage createEmptyPage() { - return new ListAutonomousDbVersionsPage(null, null); + private static ListDbSystemsPage createEmptyPage() { + return new ListDbSystemsPage(null, null); } @Override - protected ListAutonomousDbVersionsPage createPage( - PageContext< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - AutonomousDbVersion> - context, - ListAutonomousDbVersionsResponse response) { - return new ListAutonomousDbVersionsPage(context, response); + protected ListDbSystemsPage createPage( + PageContext context, + ListDbSystemsResponse response) { + return new ListDbSystemsPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - AutonomousDbVersion> - context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListAutonomousDbVersionsFixedSizeCollection + public static class ListDbSystemsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - AutonomousDbVersion, - ListAutonomousDbVersionsPage, - ListAutonomousDbVersionsFixedSizeCollection> { + ListDbSystemsRequest, + ListDbSystemsResponse, + DbSystem, + ListDbSystemsPage, + ListDbSystemsFixedSizeCollection> { - private ListAutonomousDbVersionsFixedSizeCollection( - List pages, int collectionSize) { + private ListDbSystemsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } - private static ListAutonomousDbVersionsFixedSizeCollection createEmptyCollection() { - return new ListAutonomousDbVersionsFixedSizeCollection(null, 0); + private static ListDbSystemsFixedSizeCollection createEmptyCollection() { + return new ListDbSystemsFixedSizeCollection(null, 0); } @Override - protected ListAutonomousDbVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAutonomousDbVersionsFixedSizeCollection(pages, collectionSize); + protected ListDbSystemsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDbSystemsFixedSizeCollection(pages, collectionSize); } } - public static class ListAutonomousDatabaseCharacterSetsPagedResponse + public static class ListDbVersionsPagedResponse extends AbstractPagedListResponse< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - AutonomousDatabaseCharacterSet, - ListAutonomousDatabaseCharacterSetsPage, - ListAutonomousDatabaseCharacterSetsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - AutonomousDatabaseCharacterSet> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAutonomousDatabaseCharacterSetsPage.createEmptyPage() - .createPageAsync(context, futureResponse); + ListDbVersionsRequest, + ListDbVersionsResponse, + DbVersion, + ListDbVersionsPage, + ListDbVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDbVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListAutonomousDatabaseCharacterSetsPagedResponse(input), + input -> new ListDbVersionsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListAutonomousDatabaseCharacterSetsPagedResponse( - ListAutonomousDatabaseCharacterSetsPage page) { - super(page, ListAutonomousDatabaseCharacterSetsFixedSizeCollection.createEmptyCollection()); + private ListDbVersionsPagedResponse(ListDbVersionsPage page) { + super(page, ListDbVersionsFixedSizeCollection.createEmptyCollection()); } } - public static class ListAutonomousDatabaseCharacterSetsPage + public static class ListDbVersionsPage extends AbstractPage< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - AutonomousDatabaseCharacterSet, - ListAutonomousDatabaseCharacterSetsPage> { + ListDbVersionsRequest, ListDbVersionsResponse, DbVersion, ListDbVersionsPage> { - private ListAutonomousDatabaseCharacterSetsPage( - PageContext< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - AutonomousDatabaseCharacterSet> - context, - ListAutonomousDatabaseCharacterSetsResponse response) { + private ListDbVersionsPage( + PageContext context, + ListDbVersionsResponse response) { super(context, response); } - private static ListAutonomousDatabaseCharacterSetsPage createEmptyPage() { - return new ListAutonomousDatabaseCharacterSetsPage(null, null); + private static ListDbVersionsPage createEmptyPage() { + return new ListDbVersionsPage(null, null); } @Override - protected ListAutonomousDatabaseCharacterSetsPage createPage( - PageContext< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - AutonomousDatabaseCharacterSet> - context, - ListAutonomousDatabaseCharacterSetsResponse response) { - return new ListAutonomousDatabaseCharacterSetsPage(context, response); + protected ListDbVersionsPage createPage( + PageContext context, + ListDbVersionsResponse response) { + return new ListDbVersionsPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - AutonomousDatabaseCharacterSet> - context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListAutonomousDatabaseCharacterSetsFixedSizeCollection + public static class ListDbVersionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - AutonomousDatabaseCharacterSet, - ListAutonomousDatabaseCharacterSetsPage, - ListAutonomousDatabaseCharacterSetsFixedSizeCollection> { + ListDbVersionsRequest, + ListDbVersionsResponse, + DbVersion, + ListDbVersionsPage, + ListDbVersionsFixedSizeCollection> { - private ListAutonomousDatabaseCharacterSetsFixedSizeCollection( - List pages, int collectionSize) { + private ListDbVersionsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } - private static ListAutonomousDatabaseCharacterSetsFixedSizeCollection createEmptyCollection() { - return new ListAutonomousDatabaseCharacterSetsFixedSizeCollection(null, 0); + private static ListDbVersionsFixedSizeCollection createEmptyCollection() { + return new ListDbVersionsFixedSizeCollection(null, 0); } @Override - protected ListAutonomousDatabaseCharacterSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAutonomousDatabaseCharacterSetsFixedSizeCollection(pages, collectionSize); + protected ListDbVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDbVersionsFixedSizeCollection(pages, collectionSize); } } - public static class ListAutonomousDatabaseBackupsPagedResponse + public static class ListDatabaseCharacterSetsPagedResponse extends AbstractPagedListResponse< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - AutonomousDatabaseBackup, - ListAutonomousDatabaseBackupsPage, - ListAutonomousDatabaseBackupsFixedSizeCollection> { + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + DatabaseCharacterSet, + ListDatabaseCharacterSetsPage, + ListDatabaseCharacterSetsFixedSizeCollection> { - public static ApiFuture createAsync( + public static ApiFuture createAsync( PageContext< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - AutonomousDatabaseBackup> + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + DatabaseCharacterSet> context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAutonomousDatabaseBackupsPage.createEmptyPage() - .createPageAsync(context, futureResponse); + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDatabaseCharacterSetsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListAutonomousDatabaseBackupsPagedResponse(input), + input -> new ListDatabaseCharacterSetsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListAutonomousDatabaseBackupsPagedResponse(ListAutonomousDatabaseBackupsPage page) { - super(page, ListAutonomousDatabaseBackupsFixedSizeCollection.createEmptyCollection()); + private ListDatabaseCharacterSetsPagedResponse(ListDatabaseCharacterSetsPage page) { + super(page, ListDatabaseCharacterSetsFixedSizeCollection.createEmptyCollection()); } } - public static class ListAutonomousDatabaseBackupsPage + public static class ListDatabaseCharacterSetsPage extends AbstractPage< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - AutonomousDatabaseBackup, - ListAutonomousDatabaseBackupsPage> { + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + DatabaseCharacterSet, + ListDatabaseCharacterSetsPage> { - private ListAutonomousDatabaseBackupsPage( + private ListDatabaseCharacterSetsPage( PageContext< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - AutonomousDatabaseBackup> + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + DatabaseCharacterSet> context, - ListAutonomousDatabaseBackupsResponse response) { + ListDatabaseCharacterSetsResponse response) { super(context, response); } - private static ListAutonomousDatabaseBackupsPage createEmptyPage() { - return new ListAutonomousDatabaseBackupsPage(null, null); + private static ListDatabaseCharacterSetsPage createEmptyPage() { + return new ListDatabaseCharacterSetsPage(null, null); } @Override - protected ListAutonomousDatabaseBackupsPage createPage( + protected ListDatabaseCharacterSetsPage createPage( PageContext< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - AutonomousDatabaseBackup> + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + DatabaseCharacterSet> context, - ListAutonomousDatabaseBackupsResponse response) { - return new ListAutonomousDatabaseBackupsPage(context, response); + ListDatabaseCharacterSetsResponse response) { + return new ListDatabaseCharacterSetsPage(context, response); } @Override - public ApiFuture createPageAsync( + public ApiFuture createPageAsync( PageContext< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - AutonomousDatabaseBackup> + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + DatabaseCharacterSet> context, - ApiFuture futureResponse) { + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListAutonomousDatabaseBackupsFixedSizeCollection + public static class ListDatabaseCharacterSetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - AutonomousDatabaseBackup, - ListAutonomousDatabaseBackupsPage, - ListAutonomousDatabaseBackupsFixedSizeCollection> { - - private ListAutonomousDatabaseBackupsFixedSizeCollection( - List pages, int collectionSize) { + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + DatabaseCharacterSet, + ListDatabaseCharacterSetsPage, + ListDatabaseCharacterSetsFixedSizeCollection> { + + private ListDatabaseCharacterSetsFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListAutonomousDatabaseBackupsFixedSizeCollection createEmptyCollection() { - return new ListAutonomousDatabaseBackupsFixedSizeCollection(null, 0); + private static ListDatabaseCharacterSetsFixedSizeCollection createEmptyCollection() { + return new ListDatabaseCharacterSetsFixedSizeCollection(null, 0); } @Override - protected ListAutonomousDatabaseBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAutonomousDatabaseBackupsFixedSizeCollection(pages, collectionSize); + protected ListDatabaseCharacterSetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDatabaseCharacterSetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java index aa77da3c0f55..9aac2f3bac49 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java @@ -22,12 +22,23 @@ import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabasesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExadbVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListMinorVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbNetworksPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbSubnetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListPluggableDatabasesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -238,6 +249,13 @@ public UnaryCallSettings deleteCloudVmCl return ((OracleDatabaseStubSettings) getStubSettings()).listGiVersionsSettings(); } + /** Returns the object with the settings used for calls to listMinorVersions. */ + public PagedCallSettings< + ListMinorVersionsRequest, ListMinorVersionsResponse, ListMinorVersionsPagedResponse> + listMinorVersionsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listMinorVersionsSettings(); + } + /** Returns the object with the settings used for calls to listDbSystemShapes. */ public PagedCallSettings< ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> @@ -274,6 +292,20 @@ public UnaryCallSettings deleteCloudVmCl .createAutonomousDatabaseOperationSettings(); } + /** Returns the object with the settings used for calls to updateAutonomousDatabase. */ + public UnaryCallSettings + updateAutonomousDatabaseSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).updateAutonomousDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to updateAutonomousDatabase. */ + public OperationCallSettings< + UpdateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + updateAutonomousDatabaseOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .updateAutonomousDatabaseOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteAutonomousDatabase. */ public UnaryCallSettings deleteAutonomousDatabaseSettings() { @@ -378,6 +410,289 @@ public UnaryCallSettings deleteCloudVmCl .restartAutonomousDatabaseOperationSettings(); } + /** Returns the object with the settings used for calls to switchoverAutonomousDatabase. */ + public UnaryCallSettings + switchoverAutonomousDatabaseSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).switchoverAutonomousDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to switchoverAutonomousDatabase. */ + public OperationCallSettings< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .switchoverAutonomousDatabaseOperationSettings(); + } + + /** Returns the object with the settings used for calls to failoverAutonomousDatabase. */ + public UnaryCallSettings + failoverAutonomousDatabaseSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).failoverAutonomousDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to failoverAutonomousDatabase. */ + public OperationCallSettings< + FailoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + failoverAutonomousDatabaseOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .failoverAutonomousDatabaseOperationSettings(); + } + + /** Returns the object with the settings used for calls to listOdbNetworks. */ + public PagedCallSettings< + ListOdbNetworksRequest, ListOdbNetworksResponse, ListOdbNetworksPagedResponse> + listOdbNetworksSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listOdbNetworksSettings(); + } + + /** Returns the object with the settings used for calls to getOdbNetwork. */ + public UnaryCallSettings getOdbNetworkSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getOdbNetworkSettings(); + } + + /** Returns the object with the settings used for calls to createOdbNetwork. */ + public UnaryCallSettings createOdbNetworkSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createOdbNetworkSettings(); + } + + /** Returns the object with the settings used for calls to createOdbNetwork. */ + public OperationCallSettings + createOdbNetworkOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createOdbNetworkOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteOdbNetwork. */ + public UnaryCallSettings deleteOdbNetworkSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteOdbNetworkSettings(); + } + + /** Returns the object with the settings used for calls to deleteOdbNetwork. */ + public OperationCallSettings + deleteOdbNetworkOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteOdbNetworkOperationSettings(); + } + + /** Returns the object with the settings used for calls to listOdbSubnets. */ + public PagedCallSettings< + ListOdbSubnetsRequest, ListOdbSubnetsResponse, ListOdbSubnetsPagedResponse> + listOdbSubnetsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listOdbSubnetsSettings(); + } + + /** Returns the object with the settings used for calls to getOdbSubnet. */ + public UnaryCallSettings getOdbSubnetSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getOdbSubnetSettings(); + } + + /** Returns the object with the settings used for calls to createOdbSubnet. */ + public UnaryCallSettings createOdbSubnetSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createOdbSubnetSettings(); + } + + /** Returns the object with the settings used for calls to createOdbSubnet. */ + public OperationCallSettings + createOdbSubnetOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createOdbSubnetOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteOdbSubnet. */ + public UnaryCallSettings deleteOdbSubnetSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteOdbSubnetSettings(); + } + + /** Returns the object with the settings used for calls to deleteOdbSubnet. */ + public OperationCallSettings + deleteOdbSubnetOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteOdbSubnetOperationSettings(); + } + + /** Returns the object with the settings used for calls to listExadbVmClusters. */ + public PagedCallSettings< + ListExadbVmClustersRequest, ListExadbVmClustersResponse, ListExadbVmClustersPagedResponse> + listExadbVmClustersSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listExadbVmClustersSettings(); + } + + /** Returns the object with the settings used for calls to getExadbVmCluster. */ + public UnaryCallSettings getExadbVmClusterSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getExadbVmClusterSettings(); + } + + /** Returns the object with the settings used for calls to createExadbVmCluster. */ + public UnaryCallSettings createExadbVmClusterSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createExadbVmClusterSettings(); + } + + /** Returns the object with the settings used for calls to createExadbVmCluster. */ + public OperationCallSettings + createExadbVmClusterOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createExadbVmClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteExadbVmCluster. */ + public UnaryCallSettings deleteExadbVmClusterSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteExadbVmClusterSettings(); + } + + /** Returns the object with the settings used for calls to deleteExadbVmCluster. */ + public OperationCallSettings + deleteExadbVmClusterOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteExadbVmClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateExadbVmCluster. */ + public UnaryCallSettings updateExadbVmClusterSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).updateExadbVmClusterSettings(); + } + + /** Returns the object with the settings used for calls to updateExadbVmCluster. */ + public OperationCallSettings + updateExadbVmClusterOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).updateExadbVmClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to removeVirtualMachineExadbVmCluster. */ + public UnaryCallSettings + removeVirtualMachineExadbVmClusterSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .removeVirtualMachineExadbVmClusterSettings(); + } + + /** Returns the object with the settings used for calls to removeVirtualMachineExadbVmCluster. */ + public OperationCallSettings< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .removeVirtualMachineExadbVmClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to listExascaleDbStorageVaults. */ + public PagedCallSettings< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ListExascaleDbStorageVaultsPagedResponse> + listExascaleDbStorageVaultsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listExascaleDbStorageVaultsSettings(); + } + + /** Returns the object with the settings used for calls to getExascaleDbStorageVault. */ + public UnaryCallSettings + getExascaleDbStorageVaultSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getExascaleDbStorageVaultSettings(); + } + + /** Returns the object with the settings used for calls to createExascaleDbStorageVault. */ + public UnaryCallSettings + createExascaleDbStorageVaultSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createExascaleDbStorageVaultSettings(); + } + + /** Returns the object with the settings used for calls to createExascaleDbStorageVault. */ + public OperationCallSettings< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .createExascaleDbStorageVaultOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteExascaleDbStorageVault. */ + public UnaryCallSettings + deleteExascaleDbStorageVaultSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteExascaleDbStorageVaultSettings(); + } + + /** Returns the object with the settings used for calls to deleteExascaleDbStorageVault. */ + public OperationCallSettings + deleteExascaleDbStorageVaultOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .deleteExascaleDbStorageVaultOperationSettings(); + } + + /** Returns the object with the settings used for calls to listDbSystemInitialStorageSizes. */ + public PagedCallSettings< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .listDbSystemInitialStorageSizesSettings(); + } + + /** Returns the object with the settings used for calls to listDatabases. */ + public PagedCallSettings + listDatabasesSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listDatabasesSettings(); + } + + /** Returns the object with the settings used for calls to getDatabase. */ + public UnaryCallSettings getDatabaseSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to listPluggableDatabases. */ + public PagedCallSettings< + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + ListPluggableDatabasesPagedResponse> + listPluggableDatabasesSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listPluggableDatabasesSettings(); + } + + /** Returns the object with the settings used for calls to getPluggableDatabase. */ + public UnaryCallSettings + getPluggableDatabaseSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getPluggableDatabaseSettings(); + } + + /** Returns the object with the settings used for calls to listDbSystems. */ + public PagedCallSettings + listDbSystemsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listDbSystemsSettings(); + } + + /** Returns the object with the settings used for calls to getDbSystem. */ + public UnaryCallSettings getDbSystemSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).getDbSystemSettings(); + } + + /** Returns the object with the settings used for calls to createDbSystem. */ + public UnaryCallSettings createDbSystemSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createDbSystemSettings(); + } + + /** Returns the object with the settings used for calls to createDbSystem. */ + public OperationCallSettings + createDbSystemOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).createDbSystemOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteDbSystem. */ + public UnaryCallSettings deleteDbSystemSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteDbSystemSettings(); + } + + /** Returns the object with the settings used for calls to deleteDbSystem. */ + public OperationCallSettings + deleteDbSystemOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).deleteDbSystemOperationSettings(); + } + + /** Returns the object with the settings used for calls to listDbVersions. */ + public PagedCallSettings< + ListDbVersionsRequest, ListDbVersionsResponse, ListDbVersionsPagedResponse> + listDbVersionsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listDbVersionsSettings(); + } + + /** Returns the object with the settings used for calls to listDatabaseCharacterSets. */ + public PagedCallSettings< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + ListDatabaseCharacterSetsPagedResponse> + listDatabaseCharacterSetsSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).listDatabaseCharacterSetsSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -611,6 +926,13 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().listGiVersionsSettings(); } + /** Returns the builder for the settings used for calls to listMinorVersions. */ + public PagedCallSettings.Builder< + ListMinorVersionsRequest, ListMinorVersionsResponse, ListMinorVersionsPagedResponse> + listMinorVersionsSettings() { + return getStubSettingsBuilder().listMinorVersionsSettings(); + } + /** Returns the builder for the settings used for calls to listDbSystemShapes. */ public PagedCallSettings.Builder< ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> @@ -646,6 +968,19 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().createAutonomousDatabaseOperationSettings(); } + /** Returns the builder for the settings used for calls to updateAutonomousDatabase. */ + public UnaryCallSettings.Builder + updateAutonomousDatabaseSettings() { + return getStubSettingsBuilder().updateAutonomousDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to updateAutonomousDatabase. */ + public OperationCallSettings.Builder< + UpdateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + updateAutonomousDatabaseOperationSettings() { + return getStubSettingsBuilder().updateAutonomousDatabaseOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteAutonomousDatabase. */ public UnaryCallSettings.Builder deleteAutonomousDatabaseSettings() { @@ -746,6 +1081,299 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().restartAutonomousDatabaseOperationSettings(); } + /** Returns the builder for the settings used for calls to switchoverAutonomousDatabase. */ + public UnaryCallSettings.Builder + switchoverAutonomousDatabaseSettings() { + return getStubSettingsBuilder().switchoverAutonomousDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to switchoverAutonomousDatabase. */ + public OperationCallSettings.Builder< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationSettings() { + return getStubSettingsBuilder().switchoverAutonomousDatabaseOperationSettings(); + } + + /** Returns the builder for the settings used for calls to failoverAutonomousDatabase. */ + public UnaryCallSettings.Builder + failoverAutonomousDatabaseSettings() { + return getStubSettingsBuilder().failoverAutonomousDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to failoverAutonomousDatabase. */ + public OperationCallSettings.Builder< + FailoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + failoverAutonomousDatabaseOperationSettings() { + return getStubSettingsBuilder().failoverAutonomousDatabaseOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listOdbNetworks. */ + public PagedCallSettings.Builder< + ListOdbNetworksRequest, ListOdbNetworksResponse, ListOdbNetworksPagedResponse> + listOdbNetworksSettings() { + return getStubSettingsBuilder().listOdbNetworksSettings(); + } + + /** Returns the builder for the settings used for calls to getOdbNetwork. */ + public UnaryCallSettings.Builder getOdbNetworkSettings() { + return getStubSettingsBuilder().getOdbNetworkSettings(); + } + + /** Returns the builder for the settings used for calls to createOdbNetwork. */ + public UnaryCallSettings.Builder + createOdbNetworkSettings() { + return getStubSettingsBuilder().createOdbNetworkSettings(); + } + + /** Returns the builder for the settings used for calls to createOdbNetwork. */ + public OperationCallSettings.Builder + createOdbNetworkOperationSettings() { + return getStubSettingsBuilder().createOdbNetworkOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOdbNetwork. */ + public UnaryCallSettings.Builder + deleteOdbNetworkSettings() { + return getStubSettingsBuilder().deleteOdbNetworkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOdbNetwork. */ + public OperationCallSettings.Builder + deleteOdbNetworkOperationSettings() { + return getStubSettingsBuilder().deleteOdbNetworkOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listOdbSubnets. */ + public PagedCallSettings.Builder< + ListOdbSubnetsRequest, ListOdbSubnetsResponse, ListOdbSubnetsPagedResponse> + listOdbSubnetsSettings() { + return getStubSettingsBuilder().listOdbSubnetsSettings(); + } + + /** Returns the builder for the settings used for calls to getOdbSubnet. */ + public UnaryCallSettings.Builder getOdbSubnetSettings() { + return getStubSettingsBuilder().getOdbSubnetSettings(); + } + + /** Returns the builder for the settings used for calls to createOdbSubnet. */ + public UnaryCallSettings.Builder createOdbSubnetSettings() { + return getStubSettingsBuilder().createOdbSubnetSettings(); + } + + /** Returns the builder for the settings used for calls to createOdbSubnet. */ + public OperationCallSettings.Builder + createOdbSubnetOperationSettings() { + return getStubSettingsBuilder().createOdbSubnetOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOdbSubnet. */ + public UnaryCallSettings.Builder deleteOdbSubnetSettings() { + return getStubSettingsBuilder().deleteOdbSubnetSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOdbSubnet. */ + public OperationCallSettings.Builder + deleteOdbSubnetOperationSettings() { + return getStubSettingsBuilder().deleteOdbSubnetOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listExadbVmClusters. */ + public PagedCallSettings.Builder< + ListExadbVmClustersRequest, + ListExadbVmClustersResponse, + ListExadbVmClustersPagedResponse> + listExadbVmClustersSettings() { + return getStubSettingsBuilder().listExadbVmClustersSettings(); + } + + /** Returns the builder for the settings used for calls to getExadbVmCluster. */ + public UnaryCallSettings.Builder + getExadbVmClusterSettings() { + return getStubSettingsBuilder().getExadbVmClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createExadbVmCluster. */ + public UnaryCallSettings.Builder + createExadbVmClusterSettings() { + return getStubSettingsBuilder().createExadbVmClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createExadbVmCluster. */ + public OperationCallSettings.Builder< + CreateExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + createExadbVmClusterOperationSettings() { + return getStubSettingsBuilder().createExadbVmClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExadbVmCluster. */ + public UnaryCallSettings.Builder + deleteExadbVmClusterSettings() { + return getStubSettingsBuilder().deleteExadbVmClusterSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExadbVmCluster. */ + public OperationCallSettings.Builder + deleteExadbVmClusterOperationSettings() { + return getStubSettingsBuilder().deleteExadbVmClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateExadbVmCluster. */ + public UnaryCallSettings.Builder + updateExadbVmClusterSettings() { + return getStubSettingsBuilder().updateExadbVmClusterSettings(); + } + + /** Returns the builder for the settings used for calls to updateExadbVmCluster. */ + public OperationCallSettings.Builder< + UpdateExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + updateExadbVmClusterOperationSettings() { + return getStubSettingsBuilder().updateExadbVmClusterOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to removeVirtualMachineExadbVmCluster. + */ + public UnaryCallSettings.Builder + removeVirtualMachineExadbVmClusterSettings() { + return getStubSettingsBuilder().removeVirtualMachineExadbVmClusterSettings(); + } + + /** + * Returns the builder for the settings used for calls to removeVirtualMachineExadbVmCluster. + */ + public OperationCallSettings.Builder< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationSettings() { + return getStubSettingsBuilder().removeVirtualMachineExadbVmClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listExascaleDbStorageVaults. */ + public PagedCallSettings.Builder< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ListExascaleDbStorageVaultsPagedResponse> + listExascaleDbStorageVaultsSettings() { + return getStubSettingsBuilder().listExascaleDbStorageVaultsSettings(); + } + + /** Returns the builder for the settings used for calls to getExascaleDbStorageVault. */ + public UnaryCallSettings.Builder + getExascaleDbStorageVaultSettings() { + return getStubSettingsBuilder().getExascaleDbStorageVaultSettings(); + } + + /** Returns the builder for the settings used for calls to createExascaleDbStorageVault. */ + public UnaryCallSettings.Builder + createExascaleDbStorageVaultSettings() { + return getStubSettingsBuilder().createExascaleDbStorageVaultSettings(); + } + + /** Returns the builder for the settings used for calls to createExascaleDbStorageVault. */ + public OperationCallSettings.Builder< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationSettings() { + return getStubSettingsBuilder().createExascaleDbStorageVaultOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExascaleDbStorageVault. */ + public UnaryCallSettings.Builder + deleteExascaleDbStorageVaultSettings() { + return getStubSettingsBuilder().deleteExascaleDbStorageVaultSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExascaleDbStorageVault. */ + public OperationCallSettings.Builder< + DeleteExascaleDbStorageVaultRequest, Empty, OperationMetadata> + deleteExascaleDbStorageVaultOperationSettings() { + return getStubSettingsBuilder().deleteExascaleDbStorageVaultOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listDbSystemInitialStorageSizes. */ + public PagedCallSettings.Builder< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesSettings() { + return getStubSettingsBuilder().listDbSystemInitialStorageSizesSettings(); + } + + /** Returns the builder for the settings used for calls to listDatabases. */ + public PagedCallSettings.Builder< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + listDatabasesSettings() { + return getStubSettingsBuilder().listDatabasesSettings(); + } + + /** Returns the builder for the settings used for calls to getDatabase. */ + public UnaryCallSettings.Builder getDatabaseSettings() { + return getStubSettingsBuilder().getDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to listPluggableDatabases. */ + public PagedCallSettings.Builder< + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + ListPluggableDatabasesPagedResponse> + listPluggableDatabasesSettings() { + return getStubSettingsBuilder().listPluggableDatabasesSettings(); + } + + /** Returns the builder for the settings used for calls to getPluggableDatabase. */ + public UnaryCallSettings.Builder + getPluggableDatabaseSettings() { + return getStubSettingsBuilder().getPluggableDatabaseSettings(); + } + + /** Returns the builder for the settings used for calls to listDbSystems. */ + public PagedCallSettings.Builder< + ListDbSystemsRequest, ListDbSystemsResponse, ListDbSystemsPagedResponse> + listDbSystemsSettings() { + return getStubSettingsBuilder().listDbSystemsSettings(); + } + + /** Returns the builder for the settings used for calls to getDbSystem. */ + public UnaryCallSettings.Builder getDbSystemSettings() { + return getStubSettingsBuilder().getDbSystemSettings(); + } + + /** Returns the builder for the settings used for calls to createDbSystem. */ + public UnaryCallSettings.Builder createDbSystemSettings() { + return getStubSettingsBuilder().createDbSystemSettings(); + } + + /** Returns the builder for the settings used for calls to createDbSystem. */ + public OperationCallSettings.Builder + createDbSystemOperationSettings() { + return getStubSettingsBuilder().createDbSystemOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDbSystem. */ + public UnaryCallSettings.Builder deleteDbSystemSettings() { + return getStubSettingsBuilder().deleteDbSystemSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDbSystem. */ + public OperationCallSettings.Builder + deleteDbSystemOperationSettings() { + return getStubSettingsBuilder().deleteDbSystemOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listDbVersions. */ + public PagedCallSettings.Builder< + ListDbVersionsRequest, ListDbVersionsResponse, ListDbVersionsPagedResponse> + listDbVersionsSettings() { + return getStubSettingsBuilder().listDbVersionsSettings(); + } + + /** Returns the builder for the settings used for calls to listDatabaseCharacterSets. */ + public PagedCallSettings.Builder< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + ListDatabaseCharacterSetsPagedResponse> + listDatabaseCharacterSetsSettings() { + return getStubSettingsBuilder().listDatabaseCharacterSetsSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json index dfbfc0489d8a..8d3003c608c9 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json @@ -19,6 +19,21 @@ "CreateCloudVmCluster": { "methods": ["createCloudVmClusterAsync", "createCloudVmClusterAsync", "createCloudVmClusterAsync", "createCloudVmClusterOperationCallable", "createCloudVmClusterCallable"] }, + "CreateDbSystem": { + "methods": ["createDbSystemAsync", "createDbSystemAsync", "createDbSystemAsync", "createDbSystemOperationCallable", "createDbSystemCallable"] + }, + "CreateExadbVmCluster": { + "methods": ["createExadbVmClusterAsync", "createExadbVmClusterAsync", "createExadbVmClusterAsync", "createExadbVmClusterOperationCallable", "createExadbVmClusterCallable"] + }, + "CreateExascaleDbStorageVault": { + "methods": ["createExascaleDbStorageVaultAsync", "createExascaleDbStorageVaultAsync", "createExascaleDbStorageVaultAsync", "createExascaleDbStorageVaultOperationCallable", "createExascaleDbStorageVaultCallable"] + }, + "CreateOdbNetwork": { + "methods": ["createOdbNetworkAsync", "createOdbNetworkAsync", "createOdbNetworkAsync", "createOdbNetworkOperationCallable", "createOdbNetworkCallable"] + }, + "CreateOdbSubnet": { + "methods": ["createOdbSubnetAsync", "createOdbSubnetAsync", "createOdbSubnetAsync", "createOdbSubnetOperationCallable", "createOdbSubnetCallable"] + }, "DeleteAutonomousDatabase": { "methods": ["deleteAutonomousDatabaseAsync", "deleteAutonomousDatabaseAsync", "deleteAutonomousDatabaseAsync", "deleteAutonomousDatabaseOperationCallable", "deleteAutonomousDatabaseCallable"] }, @@ -28,6 +43,24 @@ "DeleteCloudVmCluster": { "methods": ["deleteCloudVmClusterAsync", "deleteCloudVmClusterAsync", "deleteCloudVmClusterAsync", "deleteCloudVmClusterOperationCallable", "deleteCloudVmClusterCallable"] }, + "DeleteDbSystem": { + "methods": ["deleteDbSystemAsync", "deleteDbSystemAsync", "deleteDbSystemAsync", "deleteDbSystemOperationCallable", "deleteDbSystemCallable"] + }, + "DeleteExadbVmCluster": { + "methods": ["deleteExadbVmClusterAsync", "deleteExadbVmClusterAsync", "deleteExadbVmClusterAsync", "deleteExadbVmClusterOperationCallable", "deleteExadbVmClusterCallable"] + }, + "DeleteExascaleDbStorageVault": { + "methods": ["deleteExascaleDbStorageVaultAsync", "deleteExascaleDbStorageVaultAsync", "deleteExascaleDbStorageVaultAsync", "deleteExascaleDbStorageVaultOperationCallable", "deleteExascaleDbStorageVaultCallable"] + }, + "DeleteOdbNetwork": { + "methods": ["deleteOdbNetworkAsync", "deleteOdbNetworkAsync", "deleteOdbNetworkAsync", "deleteOdbNetworkOperationCallable", "deleteOdbNetworkCallable"] + }, + "DeleteOdbSubnet": { + "methods": ["deleteOdbSubnetAsync", "deleteOdbSubnetAsync", "deleteOdbSubnetAsync", "deleteOdbSubnetOperationCallable", "deleteOdbSubnetCallable"] + }, + "FailoverAutonomousDatabase": { + "methods": ["failoverAutonomousDatabaseAsync", "failoverAutonomousDatabaseAsync", "failoverAutonomousDatabaseAsync", "failoverAutonomousDatabaseAsync", "failoverAutonomousDatabaseAsync", "failoverAutonomousDatabaseOperationCallable", "failoverAutonomousDatabaseCallable"] + }, "GenerateAutonomousDatabaseWallet": { "methods": ["generateAutonomousDatabaseWallet", "generateAutonomousDatabaseWallet", "generateAutonomousDatabaseWallet", "generateAutonomousDatabaseWalletCallable"] }, @@ -40,9 +73,30 @@ "GetCloudVmCluster": { "methods": ["getCloudVmCluster", "getCloudVmCluster", "getCloudVmCluster", "getCloudVmClusterCallable"] }, + "GetDatabase": { + "methods": ["getDatabase", "getDatabase", "getDatabase", "getDatabaseCallable"] + }, + "GetDbSystem": { + "methods": ["getDbSystem", "getDbSystem", "getDbSystem", "getDbSystemCallable"] + }, + "GetExadbVmCluster": { + "methods": ["getExadbVmCluster", "getExadbVmCluster", "getExadbVmCluster", "getExadbVmClusterCallable"] + }, + "GetExascaleDbStorageVault": { + "methods": ["getExascaleDbStorageVault", "getExascaleDbStorageVault", "getExascaleDbStorageVault", "getExascaleDbStorageVaultCallable"] + }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, + "GetOdbNetwork": { + "methods": ["getOdbNetwork", "getOdbNetwork", "getOdbNetwork", "getOdbNetworkCallable"] + }, + "GetOdbSubnet": { + "methods": ["getOdbSubnet", "getOdbSubnet", "getOdbSubnet", "getOdbSubnetCallable"] + }, + "GetPluggableDatabase": { + "methods": ["getPluggableDatabase", "getPluggableDatabase", "getPluggableDatabase", "getPluggableDatabaseCallable"] + }, "ListAutonomousDatabaseBackups": { "methods": ["listAutonomousDatabaseBackups", "listAutonomousDatabaseBackups", "listAutonomousDatabaseBackups", "listAutonomousDatabaseBackupsPagedCallable", "listAutonomousDatabaseBackupsCallable"] }, @@ -61,24 +115,60 @@ "ListCloudVmClusters": { "methods": ["listCloudVmClusters", "listCloudVmClusters", "listCloudVmClusters", "listCloudVmClustersPagedCallable", "listCloudVmClustersCallable"] }, + "ListDatabaseCharacterSets": { + "methods": ["listDatabaseCharacterSets", "listDatabaseCharacterSets", "listDatabaseCharacterSets", "listDatabaseCharacterSetsPagedCallable", "listDatabaseCharacterSetsCallable"] + }, + "ListDatabases": { + "methods": ["listDatabases", "listDatabases", "listDatabases", "listDatabasesPagedCallable", "listDatabasesCallable"] + }, "ListDbNodes": { - "methods": ["listDbNodes", "listDbNodes", "listDbNodes", "listDbNodesPagedCallable", "listDbNodesCallable"] + "methods": ["listDbNodes", "listDbNodes", "listDbNodes", "listDbNodes", "listDbNodesPagedCallable", "listDbNodesCallable"] }, "ListDbServers": { "methods": ["listDbServers", "listDbServers", "listDbServers", "listDbServersPagedCallable", "listDbServersCallable"] }, + "ListDbSystemInitialStorageSizes": { + "methods": ["listDbSystemInitialStorageSizes", "listDbSystemInitialStorageSizes", "listDbSystemInitialStorageSizes", "listDbSystemInitialStorageSizesPagedCallable", "listDbSystemInitialStorageSizesCallable"] + }, "ListDbSystemShapes": { "methods": ["listDbSystemShapes", "listDbSystemShapes", "listDbSystemShapes", "listDbSystemShapesPagedCallable", "listDbSystemShapesCallable"] }, + "ListDbSystems": { + "methods": ["listDbSystems", "listDbSystems", "listDbSystems", "listDbSystemsPagedCallable", "listDbSystemsCallable"] + }, + "ListDbVersions": { + "methods": ["listDbVersions", "listDbVersions", "listDbVersions", "listDbVersionsPagedCallable", "listDbVersionsCallable"] + }, "ListEntitlements": { "methods": ["listEntitlements", "listEntitlements", "listEntitlements", "listEntitlementsPagedCallable", "listEntitlementsCallable"] }, + "ListExadbVmClusters": { + "methods": ["listExadbVmClusters", "listExadbVmClusters", "listExadbVmClusters", "listExadbVmClustersPagedCallable", "listExadbVmClustersCallable"] + }, + "ListExascaleDbStorageVaults": { + "methods": ["listExascaleDbStorageVaults", "listExascaleDbStorageVaults", "listExascaleDbStorageVaults", "listExascaleDbStorageVaultsPagedCallable", "listExascaleDbStorageVaultsCallable"] + }, "ListGiVersions": { "methods": ["listGiVersions", "listGiVersions", "listGiVersions", "listGiVersionsPagedCallable", "listGiVersionsCallable"] }, "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "ListMinorVersions": { + "methods": ["listMinorVersions", "listMinorVersions", "listMinorVersions", "listMinorVersionsPagedCallable", "listMinorVersionsCallable"] + }, + "ListOdbNetworks": { + "methods": ["listOdbNetworks", "listOdbNetworks", "listOdbNetworks", "listOdbNetworksPagedCallable", "listOdbNetworksCallable"] + }, + "ListOdbSubnets": { + "methods": ["listOdbSubnets", "listOdbSubnets", "listOdbSubnets", "listOdbSubnetsPagedCallable", "listOdbSubnetsCallable"] + }, + "ListPluggableDatabases": { + "methods": ["listPluggableDatabases", "listPluggableDatabases", "listPluggableDatabases", "listPluggableDatabasesPagedCallable", "listPluggableDatabasesCallable"] + }, + "RemoveVirtualMachineExadbVmCluster": { + "methods": ["removeVirtualMachineExadbVmClusterAsync", "removeVirtualMachineExadbVmClusterAsync", "removeVirtualMachineExadbVmClusterAsync", "removeVirtualMachineExadbVmClusterOperationCallable", "removeVirtualMachineExadbVmClusterCallable"] + }, "RestartAutonomousDatabase": { "methods": ["restartAutonomousDatabaseAsync", "restartAutonomousDatabaseAsync", "restartAutonomousDatabaseAsync", "restartAutonomousDatabaseOperationCallable", "restartAutonomousDatabaseCallable"] }, @@ -90,6 +180,15 @@ }, "StopAutonomousDatabase": { "methods": ["stopAutonomousDatabaseAsync", "stopAutonomousDatabaseAsync", "stopAutonomousDatabaseAsync", "stopAutonomousDatabaseOperationCallable", "stopAutonomousDatabaseCallable"] + }, + "SwitchoverAutonomousDatabase": { + "methods": ["switchoverAutonomousDatabaseAsync", "switchoverAutonomousDatabaseAsync", "switchoverAutonomousDatabaseAsync", "switchoverAutonomousDatabaseAsync", "switchoverAutonomousDatabaseAsync", "switchoverAutonomousDatabaseOperationCallable", "switchoverAutonomousDatabaseCallable"] + }, + "UpdateAutonomousDatabase": { + "methods": ["updateAutonomousDatabaseAsync", "updateAutonomousDatabaseAsync", "updateAutonomousDatabaseOperationCallable", "updateAutonomousDatabaseCallable"] + }, + "UpdateExadbVmCluster": { + "methods": ["updateExadbVmClusterAsync", "updateExadbVmClusterAsync", "updateExadbVmClusterOperationCallable", "updateExadbVmClusterCallable"] } } } diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java index 0ab031f8d466..edc474dd1dce 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java @@ -22,12 +22,23 @@ import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabasesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExadbVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListMinorVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbNetworksPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbSubnetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListPluggableDatabasesPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -47,14 +58,36 @@ import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.CreateDbSystemRequest; +import com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.DbSystem; import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest; +import com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest; import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; import com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GetDatabaseRequest; +import com.google.cloud.oracledatabase.v1.GetDbSystemRequest; +import com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; @@ -67,21 +100,50 @@ import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse; import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; import com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse; +import com.google.cloud.oracledatabase.v1.ListDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListDatabasesResponse; import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; import com.google.cloud.oracledatabase.v1.ListDbNodesResponse; import com.google.cloud.oracledatabase.v1.ListDbServersRequest; import com.google.cloud.oracledatabase.v1.ListDbServersResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse; import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; import com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemsRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemsResponse; +import com.google.cloud.oracledatabase.v1.ListDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListDbVersionsResponse; import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; import com.google.cloud.oracledatabase.v1.ListEntitlementsResponse; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse; import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; import com.google.cloud.oracledatabase.v1.ListGiVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OdbSubnet; import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; +import com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest; import com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -253,6 +315,18 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listMinorVersionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListMinorVersions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMinorVersionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMinorVersionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listDbSystemShapesMethodDescriptor = MethodDescriptor.newBuilder() @@ -304,6 +378,18 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateAutonomousDatabaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/UpdateAutonomousDatabase") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAutonomousDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteAutonomousDatabaseMethodDescriptor = MethodDescriptor.newBuilder() @@ -432,6 +518,380 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + switchoverAutonomousDatabaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/SwitchoverAutonomousDatabase") + .setRequestMarshaller( + ProtoUtils.marshaller(SwitchoverAutonomousDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + failoverAutonomousDatabaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/FailoverAutonomousDatabase") + .setRequestMarshaller( + ProtoUtils.marshaller(FailoverAutonomousDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listOdbNetworksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListOdbNetworks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListOdbNetworksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListOdbNetworksResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getOdbNetworkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetOdbNetwork") + .setRequestMarshaller( + ProtoUtils.marshaller(GetOdbNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(OdbNetwork.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createOdbNetworkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/CreateOdbNetwork") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateOdbNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteOdbNetworkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/DeleteOdbNetwork") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteOdbNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listOdbSubnetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListOdbSubnets") + .setRequestMarshaller( + ProtoUtils.marshaller(ListOdbSubnetsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListOdbSubnetsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getOdbSubnetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetOdbSubnet") + .setRequestMarshaller(ProtoUtils.marshaller(GetOdbSubnetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(OdbSubnet.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createOdbSubnetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/CreateOdbSubnet") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateOdbSubnetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteOdbSubnetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/DeleteOdbSubnet") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteOdbSubnetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listExadbVmClustersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListExadbVmClusters") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExadbVmClustersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExadbVmClustersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getExadbVmClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetExadbVmCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(GetExadbVmClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExadbVmCluster.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createExadbVmClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/CreateExadbVmCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateExadbVmClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteExadbVmClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/DeleteExadbVmCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExadbVmClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateExadbVmClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/UpdateExadbVmCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateExadbVmClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + removeVirtualMachineExadbVmClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/RemoveVirtualMachineExadbVmCluster") + .setRequestMarshaller( + ProtoUtils.marshaller( + RemoveVirtualMachineExadbVmClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse> + listExascaleDbStorageVaultsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListExascaleDbStorageVaults") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExascaleDbStorageVaultsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExascaleDbStorageVaultsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getExascaleDbStorageVaultMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/GetExascaleDbStorageVault") + .setRequestMarshaller( + ProtoUtils.marshaller(GetExascaleDbStorageVaultRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ExascaleDbStorageVault.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createExascaleDbStorageVaultMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/CreateExascaleDbStorageVault") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateExascaleDbStorageVaultRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteExascaleDbStorageVaultMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/DeleteExascaleDbStorageVault") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExascaleDbStorageVaultRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListDbSystemInitialStorageSizes") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListDbSystemInitialStorageSizesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListDbSystemInitialStorageSizesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listDatabasesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListDatabases") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDatabasesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDatabasesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getDatabaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetDatabase") + .setRequestMarshaller(ProtoUtils.marshaller(GetDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Database.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListPluggableDatabasesRequest, ListPluggableDatabasesResponse> + listPluggableDatabasesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListPluggableDatabases") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPluggableDatabasesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPluggableDatabasesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getPluggableDatabaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/GetPluggableDatabase") + .setRequestMarshaller( + ProtoUtils.marshaller(GetPluggableDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PluggableDatabase.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listDbSystemsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListDbSystems") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDbSystemsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDbSystemsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getDbSystemMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetDbSystem") + .setRequestMarshaller(ProtoUtils.marshaller(GetDbSystemRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DbSystem.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createDbSystemMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/CreateDbSystem") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDbSystemRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteDbSystemMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/DeleteDbSystem") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDbSystemRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listDbVersionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListDbVersions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDbVersionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDbVersionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsResponse> + listDatabaseCharacterSetsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListDatabaseCharacterSets") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDatabaseCharacterSetsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDatabaseCharacterSetsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -494,6 +954,10 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { private final UnaryCallable listGiVersionsCallable; private final UnaryCallable listGiVersionsPagedCallable; + private final UnaryCallable + listMinorVersionsCallable; + private final UnaryCallable + listMinorVersionsPagedCallable; private final UnaryCallable listDbSystemShapesCallable; private final UnaryCallable @@ -509,6 +973,11 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { private final OperationCallable< CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> createAutonomousDatabaseOperationCallable; + private final UnaryCallable + updateAutonomousDatabaseCallable; + private final OperationCallable< + UpdateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + updateAutonomousDatabaseOperationCallable; private final UnaryCallable deleteAutonomousDatabaseCallable; private final OperationCallable @@ -554,6 +1023,107 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { private final OperationCallable< RestartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> restartAutonomousDatabaseOperationCallable; + private final UnaryCallable + switchoverAutonomousDatabaseCallable; + private final OperationCallable< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationCallable; + private final UnaryCallable + failoverAutonomousDatabaseCallable; + private final OperationCallable< + FailoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + failoverAutonomousDatabaseOperationCallable; + private final UnaryCallable + listOdbNetworksCallable; + private final UnaryCallable + listOdbNetworksPagedCallable; + private final UnaryCallable getOdbNetworkCallable; + private final UnaryCallable createOdbNetworkCallable; + private final OperationCallable + createOdbNetworkOperationCallable; + private final UnaryCallable deleteOdbNetworkCallable; + private final OperationCallable + deleteOdbNetworkOperationCallable; + private final UnaryCallable listOdbSubnetsCallable; + private final UnaryCallable + listOdbSubnetsPagedCallable; + private final UnaryCallable getOdbSubnetCallable; + private final UnaryCallable createOdbSubnetCallable; + private final OperationCallable + createOdbSubnetOperationCallable; + private final UnaryCallable deleteOdbSubnetCallable; + private final OperationCallable + deleteOdbSubnetOperationCallable; + private final UnaryCallable + listExadbVmClustersCallable; + private final UnaryCallable + listExadbVmClustersPagedCallable; + private final UnaryCallable getExadbVmClusterCallable; + private final UnaryCallable createExadbVmClusterCallable; + private final OperationCallable + createExadbVmClusterOperationCallable; + private final UnaryCallable deleteExadbVmClusterCallable; + private final OperationCallable + deleteExadbVmClusterOperationCallable; + private final UnaryCallable updateExadbVmClusterCallable; + private final OperationCallable + updateExadbVmClusterOperationCallable; + private final UnaryCallable + removeVirtualMachineExadbVmClusterCallable; + private final OperationCallable< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationCallable; + private final UnaryCallable< + ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse> + listExascaleDbStorageVaultsCallable; + private final UnaryCallable< + ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsPagedResponse> + listExascaleDbStorageVaultsPagedCallable; + private final UnaryCallable + getExascaleDbStorageVaultCallable; + private final UnaryCallable + createExascaleDbStorageVaultCallable; + private final OperationCallable< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationCallable; + private final UnaryCallable + deleteExascaleDbStorageVaultCallable; + private final OperationCallable + deleteExascaleDbStorageVaultOperationCallable; + private final UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesCallable; + private final UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesPagedCallable; + private final UnaryCallable listDatabasesCallable; + private final UnaryCallable + listDatabasesPagedCallable; + private final UnaryCallable getDatabaseCallable; + private final UnaryCallable + listPluggableDatabasesCallable; + private final UnaryCallable + listPluggableDatabasesPagedCallable; + private final UnaryCallable + getPluggableDatabaseCallable; + private final UnaryCallable listDbSystemsCallable; + private final UnaryCallable + listDbSystemsPagedCallable; + private final UnaryCallable getDbSystemCallable; + private final UnaryCallable createDbSystemCallable; + private final OperationCallable + createDbSystemOperationCallable; + private final UnaryCallable deleteDbSystemCallable; + private final OperationCallable + deleteDbSystemOperationCallable; + private final UnaryCallable listDbVersionsCallable; + private final UnaryCallable + listDbVersionsPagedCallable; + private final UnaryCallable + listDatabaseCharacterSetsCallable; + private final UnaryCallable< + ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsPagedResponse> + listDatabaseCharacterSetsPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -734,6 +1304,17 @@ protected GrpcOracleDatabaseStub( return builder.build(); }) .build(); + GrpcCallSettings + listMinorVersionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listMinorVersionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listDbSystemShapesTransportSettings = GrpcCallSettings.newBuilder() @@ -779,6 +1360,19 @@ protected GrpcOracleDatabaseStub( return builder.build(); }) .build(); + GrpcCallSettings + updateAutonomousDatabaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAutonomousDatabaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "autonomous_database.name", + String.valueOf(request.getAutonomousDatabase().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteAutonomousDatabaseTransportSettings = GrpcCallSettings.newBuilder() @@ -888,22 +1482,356 @@ protected GrpcOracleDatabaseStub( return builder.build(); }) .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getLocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); + GrpcCallSettings + switchoverAutonomousDatabaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(switchoverAutonomousDatabaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + failoverAutonomousDatabaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(failoverAutonomousDatabaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listOdbNetworksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOdbNetworksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getOdbNetworkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOdbNetworkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createOdbNetworkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createOdbNetworkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteOdbNetworkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteOdbNetworkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listOdbSubnetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOdbSubnetsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getOdbSubnetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOdbSubnetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createOdbSubnetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createOdbSubnetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteOdbSubnetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteOdbSubnetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listExadbVmClustersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listExadbVmClustersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getExadbVmClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExadbVmClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createExadbVmClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createExadbVmClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteExadbVmClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExadbVmClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateExadbVmClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateExadbVmClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "exadb_vm_cluster.name", + String.valueOf(request.getExadbVmCluster().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + removeVirtualMachineExadbVmClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeVirtualMachineExadbVmClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listExascaleDbStorageVaultsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listExascaleDbStorageVaultsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getExascaleDbStorageVaultTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExascaleDbStorageVaultMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createExascaleDbStorageVaultTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createExascaleDbStorageVaultMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteExascaleDbStorageVaultTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExascaleDbStorageVaultMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listDbSystemInitialStorageSizesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listDatabasesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDatabasesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDatabaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDatabaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listPluggableDatabasesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listPluggableDatabasesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getPluggableDatabaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPluggableDatabaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listDbSystemsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDbSystemsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDbSystemTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDbSystemMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createDbSystemTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDbSystemMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDbSystemTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDbSystemMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDbVersionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDbVersionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDatabaseCharacterSetsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listDatabaseCharacterSetsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) @@ -1007,6 +1935,16 @@ protected GrpcOracleDatabaseStub( this.listGiVersionsPagedCallable = callableFactory.createPagedCallable( listGiVersionsTransportSettings, settings.listGiVersionsSettings(), clientContext); + this.listMinorVersionsCallable = + callableFactory.createUnaryCallable( + listMinorVersionsTransportSettings, + settings.listMinorVersionsSettings(), + clientContext); + this.listMinorVersionsPagedCallable = + callableFactory.createPagedCallable( + listMinorVersionsTransportSettings, + settings.listMinorVersionsSettings(), + clientContext); this.listDbSystemShapesCallable = callableFactory.createUnaryCallable( listDbSystemShapesTransportSettings, @@ -1043,96 +1981,356 @@ protected GrpcOracleDatabaseStub( settings.createAutonomousDatabaseOperationSettings(), clientContext, operationsStub); + this.updateAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + updateAutonomousDatabaseTransportSettings, + settings.updateAutonomousDatabaseSettings(), + clientContext); + this.updateAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + updateAutonomousDatabaseTransportSettings, + settings.updateAutonomousDatabaseOperationSettings(), + clientContext, + operationsStub); this.deleteAutonomousDatabaseCallable = callableFactory.createUnaryCallable( - deleteAutonomousDatabaseTransportSettings, - settings.deleteAutonomousDatabaseSettings(), + deleteAutonomousDatabaseTransportSettings, + settings.deleteAutonomousDatabaseSettings(), + clientContext); + this.deleteAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + deleteAutonomousDatabaseTransportSettings, + settings.deleteAutonomousDatabaseOperationSettings(), + clientContext, + operationsStub); + this.restoreAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + restoreAutonomousDatabaseTransportSettings, + settings.restoreAutonomousDatabaseSettings(), + clientContext); + this.restoreAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + restoreAutonomousDatabaseTransportSettings, + settings.restoreAutonomousDatabaseOperationSettings(), + clientContext, + operationsStub); + this.generateAutonomousDatabaseWalletCallable = + callableFactory.createUnaryCallable( + generateAutonomousDatabaseWalletTransportSettings, + settings.generateAutonomousDatabaseWalletSettings(), + clientContext); + this.listAutonomousDbVersionsCallable = + callableFactory.createUnaryCallable( + listAutonomousDbVersionsTransportSettings, + settings.listAutonomousDbVersionsSettings(), + clientContext); + this.listAutonomousDbVersionsPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDbVersionsTransportSettings, + settings.listAutonomousDbVersionsSettings(), + clientContext); + this.listAutonomousDatabaseCharacterSetsCallable = + callableFactory.createUnaryCallable( + listAutonomousDatabaseCharacterSetsTransportSettings, + settings.listAutonomousDatabaseCharacterSetsSettings(), + clientContext); + this.listAutonomousDatabaseCharacterSetsPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDatabaseCharacterSetsTransportSettings, + settings.listAutonomousDatabaseCharacterSetsSettings(), + clientContext); + this.listAutonomousDatabaseBackupsCallable = + callableFactory.createUnaryCallable( + listAutonomousDatabaseBackupsTransportSettings, + settings.listAutonomousDatabaseBackupsSettings(), + clientContext); + this.listAutonomousDatabaseBackupsPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDatabaseBackupsTransportSettings, + settings.listAutonomousDatabaseBackupsSettings(), + clientContext); + this.stopAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + stopAutonomousDatabaseTransportSettings, + settings.stopAutonomousDatabaseSettings(), + clientContext); + this.stopAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + stopAutonomousDatabaseTransportSettings, + settings.stopAutonomousDatabaseOperationSettings(), + clientContext, + operationsStub); + this.startAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + startAutonomousDatabaseTransportSettings, + settings.startAutonomousDatabaseSettings(), + clientContext); + this.startAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + startAutonomousDatabaseTransportSettings, + settings.startAutonomousDatabaseOperationSettings(), + clientContext, + operationsStub); + this.restartAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + restartAutonomousDatabaseTransportSettings, + settings.restartAutonomousDatabaseSettings(), + clientContext); + this.restartAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + restartAutonomousDatabaseTransportSettings, + settings.restartAutonomousDatabaseOperationSettings(), + clientContext, + operationsStub); + this.switchoverAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + switchoverAutonomousDatabaseTransportSettings, + settings.switchoverAutonomousDatabaseSettings(), + clientContext); + this.switchoverAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + switchoverAutonomousDatabaseTransportSettings, + settings.switchoverAutonomousDatabaseOperationSettings(), + clientContext, + operationsStub); + this.failoverAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + failoverAutonomousDatabaseTransportSettings, + settings.failoverAutonomousDatabaseSettings(), + clientContext); + this.failoverAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + failoverAutonomousDatabaseTransportSettings, + settings.failoverAutonomousDatabaseOperationSettings(), + clientContext, + operationsStub); + this.listOdbNetworksCallable = + callableFactory.createUnaryCallable( + listOdbNetworksTransportSettings, settings.listOdbNetworksSettings(), clientContext); + this.listOdbNetworksPagedCallable = + callableFactory.createPagedCallable( + listOdbNetworksTransportSettings, settings.listOdbNetworksSettings(), clientContext); + this.getOdbNetworkCallable = + callableFactory.createUnaryCallable( + getOdbNetworkTransportSettings, settings.getOdbNetworkSettings(), clientContext); + this.createOdbNetworkCallable = + callableFactory.createUnaryCallable( + createOdbNetworkTransportSettings, settings.createOdbNetworkSettings(), clientContext); + this.createOdbNetworkOperationCallable = + callableFactory.createOperationCallable( + createOdbNetworkTransportSettings, + settings.createOdbNetworkOperationSettings(), + clientContext, + operationsStub); + this.deleteOdbNetworkCallable = + callableFactory.createUnaryCallable( + deleteOdbNetworkTransportSettings, settings.deleteOdbNetworkSettings(), clientContext); + this.deleteOdbNetworkOperationCallable = + callableFactory.createOperationCallable( + deleteOdbNetworkTransportSettings, + settings.deleteOdbNetworkOperationSettings(), + clientContext, + operationsStub); + this.listOdbSubnetsCallable = + callableFactory.createUnaryCallable( + listOdbSubnetsTransportSettings, settings.listOdbSubnetsSettings(), clientContext); + this.listOdbSubnetsPagedCallable = + callableFactory.createPagedCallable( + listOdbSubnetsTransportSettings, settings.listOdbSubnetsSettings(), clientContext); + this.getOdbSubnetCallable = + callableFactory.createUnaryCallable( + getOdbSubnetTransportSettings, settings.getOdbSubnetSettings(), clientContext); + this.createOdbSubnetCallable = + callableFactory.createUnaryCallable( + createOdbSubnetTransportSettings, settings.createOdbSubnetSettings(), clientContext); + this.createOdbSubnetOperationCallable = + callableFactory.createOperationCallable( + createOdbSubnetTransportSettings, + settings.createOdbSubnetOperationSettings(), + clientContext, + operationsStub); + this.deleteOdbSubnetCallable = + callableFactory.createUnaryCallable( + deleteOdbSubnetTransportSettings, settings.deleteOdbSubnetSettings(), clientContext); + this.deleteOdbSubnetOperationCallable = + callableFactory.createOperationCallable( + deleteOdbSubnetTransportSettings, + settings.deleteOdbSubnetOperationSettings(), + clientContext, + operationsStub); + this.listExadbVmClustersCallable = + callableFactory.createUnaryCallable( + listExadbVmClustersTransportSettings, + settings.listExadbVmClustersSettings(), + clientContext); + this.listExadbVmClustersPagedCallable = + callableFactory.createPagedCallable( + listExadbVmClustersTransportSettings, + settings.listExadbVmClustersSettings(), + clientContext); + this.getExadbVmClusterCallable = + callableFactory.createUnaryCallable( + getExadbVmClusterTransportSettings, + settings.getExadbVmClusterSettings(), + clientContext); + this.createExadbVmClusterCallable = + callableFactory.createUnaryCallable( + createExadbVmClusterTransportSettings, + settings.createExadbVmClusterSettings(), + clientContext); + this.createExadbVmClusterOperationCallable = + callableFactory.createOperationCallable( + createExadbVmClusterTransportSettings, + settings.createExadbVmClusterOperationSettings(), + clientContext, + operationsStub); + this.deleteExadbVmClusterCallable = + callableFactory.createUnaryCallable( + deleteExadbVmClusterTransportSettings, + settings.deleteExadbVmClusterSettings(), + clientContext); + this.deleteExadbVmClusterOperationCallable = + callableFactory.createOperationCallable( + deleteExadbVmClusterTransportSettings, + settings.deleteExadbVmClusterOperationSettings(), + clientContext, + operationsStub); + this.updateExadbVmClusterCallable = + callableFactory.createUnaryCallable( + updateExadbVmClusterTransportSettings, + settings.updateExadbVmClusterSettings(), + clientContext); + this.updateExadbVmClusterOperationCallable = + callableFactory.createOperationCallable( + updateExadbVmClusterTransportSettings, + settings.updateExadbVmClusterOperationSettings(), + clientContext, + operationsStub); + this.removeVirtualMachineExadbVmClusterCallable = + callableFactory.createUnaryCallable( + removeVirtualMachineExadbVmClusterTransportSettings, + settings.removeVirtualMachineExadbVmClusterSettings(), clientContext); - this.deleteAutonomousDatabaseOperationCallable = + this.removeVirtualMachineExadbVmClusterOperationCallable = callableFactory.createOperationCallable( - deleteAutonomousDatabaseTransportSettings, - settings.deleteAutonomousDatabaseOperationSettings(), + removeVirtualMachineExadbVmClusterTransportSettings, + settings.removeVirtualMachineExadbVmClusterOperationSettings(), clientContext, operationsStub); - this.restoreAutonomousDatabaseCallable = + this.listExascaleDbStorageVaultsCallable = callableFactory.createUnaryCallable( - restoreAutonomousDatabaseTransportSettings, - settings.restoreAutonomousDatabaseSettings(), + listExascaleDbStorageVaultsTransportSettings, + settings.listExascaleDbStorageVaultsSettings(), clientContext); - this.restoreAutonomousDatabaseOperationCallable = + this.listExascaleDbStorageVaultsPagedCallable = + callableFactory.createPagedCallable( + listExascaleDbStorageVaultsTransportSettings, + settings.listExascaleDbStorageVaultsSettings(), + clientContext); + this.getExascaleDbStorageVaultCallable = + callableFactory.createUnaryCallable( + getExascaleDbStorageVaultTransportSettings, + settings.getExascaleDbStorageVaultSettings(), + clientContext); + this.createExascaleDbStorageVaultCallable = + callableFactory.createUnaryCallable( + createExascaleDbStorageVaultTransportSettings, + settings.createExascaleDbStorageVaultSettings(), + clientContext); + this.createExascaleDbStorageVaultOperationCallable = callableFactory.createOperationCallable( - restoreAutonomousDatabaseTransportSettings, - settings.restoreAutonomousDatabaseOperationSettings(), + createExascaleDbStorageVaultTransportSettings, + settings.createExascaleDbStorageVaultOperationSettings(), clientContext, operationsStub); - this.generateAutonomousDatabaseWalletCallable = + this.deleteExascaleDbStorageVaultCallable = callableFactory.createUnaryCallable( - generateAutonomousDatabaseWalletTransportSettings, - settings.generateAutonomousDatabaseWalletSettings(), + deleteExascaleDbStorageVaultTransportSettings, + settings.deleteExascaleDbStorageVaultSettings(), clientContext); - this.listAutonomousDbVersionsCallable = + this.deleteExascaleDbStorageVaultOperationCallable = + callableFactory.createOperationCallable( + deleteExascaleDbStorageVaultTransportSettings, + settings.deleteExascaleDbStorageVaultOperationSettings(), + clientContext, + operationsStub); + this.listDbSystemInitialStorageSizesCallable = callableFactory.createUnaryCallable( - listAutonomousDbVersionsTransportSettings, - settings.listAutonomousDbVersionsSettings(), + listDbSystemInitialStorageSizesTransportSettings, + settings.listDbSystemInitialStorageSizesSettings(), clientContext); - this.listAutonomousDbVersionsPagedCallable = + this.listDbSystemInitialStorageSizesPagedCallable = callableFactory.createPagedCallable( - listAutonomousDbVersionsTransportSettings, - settings.listAutonomousDbVersionsSettings(), + listDbSystemInitialStorageSizesTransportSettings, + settings.listDbSystemInitialStorageSizesSettings(), clientContext); - this.listAutonomousDatabaseCharacterSetsCallable = + this.listDatabasesCallable = callableFactory.createUnaryCallable( - listAutonomousDatabaseCharacterSetsTransportSettings, - settings.listAutonomousDatabaseCharacterSetsSettings(), - clientContext); - this.listAutonomousDatabaseCharacterSetsPagedCallable = + listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext); + this.listDatabasesPagedCallable = callableFactory.createPagedCallable( - listAutonomousDatabaseCharacterSetsTransportSettings, - settings.listAutonomousDatabaseCharacterSetsSettings(), - clientContext); - this.listAutonomousDatabaseBackupsCallable = + listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext); + this.getDatabaseCallable = callableFactory.createUnaryCallable( - listAutonomousDatabaseBackupsTransportSettings, - settings.listAutonomousDatabaseBackupsSettings(), + getDatabaseTransportSettings, settings.getDatabaseSettings(), clientContext); + this.listPluggableDatabasesCallable = + callableFactory.createUnaryCallable( + listPluggableDatabasesTransportSettings, + settings.listPluggableDatabasesSettings(), clientContext); - this.listAutonomousDatabaseBackupsPagedCallable = + this.listPluggableDatabasesPagedCallable = callableFactory.createPagedCallable( - listAutonomousDatabaseBackupsTransportSettings, - settings.listAutonomousDatabaseBackupsSettings(), + listPluggableDatabasesTransportSettings, + settings.listPluggableDatabasesSettings(), clientContext); - this.stopAutonomousDatabaseCallable = + this.getPluggableDatabaseCallable = callableFactory.createUnaryCallable( - stopAutonomousDatabaseTransportSettings, - settings.stopAutonomousDatabaseSettings(), + getPluggableDatabaseTransportSettings, + settings.getPluggableDatabaseSettings(), clientContext); - this.stopAutonomousDatabaseOperationCallable = + this.listDbSystemsCallable = + callableFactory.createUnaryCallable( + listDbSystemsTransportSettings, settings.listDbSystemsSettings(), clientContext); + this.listDbSystemsPagedCallable = + callableFactory.createPagedCallable( + listDbSystemsTransportSettings, settings.listDbSystemsSettings(), clientContext); + this.getDbSystemCallable = + callableFactory.createUnaryCallable( + getDbSystemTransportSettings, settings.getDbSystemSettings(), clientContext); + this.createDbSystemCallable = + callableFactory.createUnaryCallable( + createDbSystemTransportSettings, settings.createDbSystemSettings(), clientContext); + this.createDbSystemOperationCallable = callableFactory.createOperationCallable( - stopAutonomousDatabaseTransportSettings, - settings.stopAutonomousDatabaseOperationSettings(), + createDbSystemTransportSettings, + settings.createDbSystemOperationSettings(), clientContext, operationsStub); - this.startAutonomousDatabaseCallable = + this.deleteDbSystemCallable = callableFactory.createUnaryCallable( - startAutonomousDatabaseTransportSettings, - settings.startAutonomousDatabaseSettings(), - clientContext); - this.startAutonomousDatabaseOperationCallable = + deleteDbSystemTransportSettings, settings.deleteDbSystemSettings(), clientContext); + this.deleteDbSystemOperationCallable = callableFactory.createOperationCallable( - startAutonomousDatabaseTransportSettings, - settings.startAutonomousDatabaseOperationSettings(), + deleteDbSystemTransportSettings, + settings.deleteDbSystemOperationSettings(), clientContext, operationsStub); - this.restartAutonomousDatabaseCallable = + this.listDbVersionsCallable = callableFactory.createUnaryCallable( - restartAutonomousDatabaseTransportSettings, - settings.restartAutonomousDatabaseSettings(), + listDbVersionsTransportSettings, settings.listDbVersionsSettings(), clientContext); + this.listDbVersionsPagedCallable = + callableFactory.createPagedCallable( + listDbVersionsTransportSettings, settings.listDbVersionsSettings(), clientContext); + this.listDatabaseCharacterSetsCallable = + callableFactory.createUnaryCallable( + listDatabaseCharacterSetsTransportSettings, + settings.listDatabaseCharacterSetsSettings(), + clientContext); + this.listDatabaseCharacterSetsPagedCallable = + callableFactory.createPagedCallable( + listDatabaseCharacterSetsTransportSettings, + settings.listDatabaseCharacterSetsSettings(), clientContext); - this.restartAutonomousDatabaseOperationCallable = - callableFactory.createOperationCallable( - restartAutonomousDatabaseTransportSettings, - settings.restartAutonomousDatabaseOperationSettings(), - clientContext, - operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1279,6 +2477,18 @@ public UnaryCallable listGiVersio return listGiVersionsPagedCallable; } + @Override + public UnaryCallable + listMinorVersionsCallable() { + return listMinorVersionsCallable; + } + + @Override + public UnaryCallable + listMinorVersionsPagedCallable() { + return listMinorVersionsPagedCallable; + } + @Override public UnaryCallable listDbSystemShapesCallable() { @@ -1321,6 +2531,18 @@ public UnaryCallable listGiVersio return createAutonomousDatabaseOperationCallable; } + @Override + public UnaryCallable + updateAutonomousDatabaseCallable() { + return updateAutonomousDatabaseCallable; + } + + @Override + public OperationCallable + updateAutonomousDatabaseOperationCallable() { + return updateAutonomousDatabaseOperationCallable; + } + @Override public UnaryCallable deleteAutonomousDatabaseCallable() { @@ -1427,6 +2649,322 @@ public UnaryCallable stopAutonomousDat return restartAutonomousDatabaseOperationCallable; } + @Override + public UnaryCallable + switchoverAutonomousDatabaseCallable() { + return switchoverAutonomousDatabaseCallable; + } + + @Override + public OperationCallable< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationCallable() { + return switchoverAutonomousDatabaseOperationCallable; + } + + @Override + public UnaryCallable + failoverAutonomousDatabaseCallable() { + return failoverAutonomousDatabaseCallable; + } + + @Override + public OperationCallable + failoverAutonomousDatabaseOperationCallable() { + return failoverAutonomousDatabaseOperationCallable; + } + + @Override + public UnaryCallable listOdbNetworksCallable() { + return listOdbNetworksCallable; + } + + @Override + public UnaryCallable + listOdbNetworksPagedCallable() { + return listOdbNetworksPagedCallable; + } + + @Override + public UnaryCallable getOdbNetworkCallable() { + return getOdbNetworkCallable; + } + + @Override + public UnaryCallable createOdbNetworkCallable() { + return createOdbNetworkCallable; + } + + @Override + public OperationCallable + createOdbNetworkOperationCallable() { + return createOdbNetworkOperationCallable; + } + + @Override + public UnaryCallable deleteOdbNetworkCallable() { + return deleteOdbNetworkCallable; + } + + @Override + public OperationCallable + deleteOdbNetworkOperationCallable() { + return deleteOdbNetworkOperationCallable; + } + + @Override + public UnaryCallable listOdbSubnetsCallable() { + return listOdbSubnetsCallable; + } + + @Override + public UnaryCallable + listOdbSubnetsPagedCallable() { + return listOdbSubnetsPagedCallable; + } + + @Override + public UnaryCallable getOdbSubnetCallable() { + return getOdbSubnetCallable; + } + + @Override + public UnaryCallable createOdbSubnetCallable() { + return createOdbSubnetCallable; + } + + @Override + public OperationCallable + createOdbSubnetOperationCallable() { + return createOdbSubnetOperationCallable; + } + + @Override + public UnaryCallable deleteOdbSubnetCallable() { + return deleteOdbSubnetCallable; + } + + @Override + public OperationCallable + deleteOdbSubnetOperationCallable() { + return deleteOdbSubnetOperationCallable; + } + + @Override + public UnaryCallable + listExadbVmClustersCallable() { + return listExadbVmClustersCallable; + } + + @Override + public UnaryCallable + listExadbVmClustersPagedCallable() { + return listExadbVmClustersPagedCallable; + } + + @Override + public UnaryCallable getExadbVmClusterCallable() { + return getExadbVmClusterCallable; + } + + @Override + public UnaryCallable createExadbVmClusterCallable() { + return createExadbVmClusterCallable; + } + + @Override + public OperationCallable + createExadbVmClusterOperationCallable() { + return createExadbVmClusterOperationCallable; + } + + @Override + public UnaryCallable deleteExadbVmClusterCallable() { + return deleteExadbVmClusterCallable; + } + + @Override + public OperationCallable + deleteExadbVmClusterOperationCallable() { + return deleteExadbVmClusterOperationCallable; + } + + @Override + public UnaryCallable updateExadbVmClusterCallable() { + return updateExadbVmClusterCallable; + } + + @Override + public OperationCallable + updateExadbVmClusterOperationCallable() { + return updateExadbVmClusterOperationCallable; + } + + @Override + public UnaryCallable + removeVirtualMachineExadbVmClusterCallable() { + return removeVirtualMachineExadbVmClusterCallable; + } + + @Override + public OperationCallable< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationCallable() { + return removeVirtualMachineExadbVmClusterOperationCallable; + } + + @Override + public UnaryCallable + listExascaleDbStorageVaultsCallable() { + return listExascaleDbStorageVaultsCallable; + } + + @Override + public UnaryCallable + listExascaleDbStorageVaultsPagedCallable() { + return listExascaleDbStorageVaultsPagedCallable; + } + + @Override + public UnaryCallable + getExascaleDbStorageVaultCallable() { + return getExascaleDbStorageVaultCallable; + } + + @Override + public UnaryCallable + createExascaleDbStorageVaultCallable() { + return createExascaleDbStorageVaultCallable; + } + + @Override + public OperationCallable< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationCallable() { + return createExascaleDbStorageVaultOperationCallable; + } + + @Override + public UnaryCallable + deleteExascaleDbStorageVaultCallable() { + return deleteExascaleDbStorageVaultCallable; + } + + @Override + public OperationCallable + deleteExascaleDbStorageVaultOperationCallable() { + return deleteExascaleDbStorageVaultOperationCallable; + } + + @Override + public UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesCallable() { + return listDbSystemInitialStorageSizesCallable; + } + + @Override + public UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesPagedCallable() { + return listDbSystemInitialStorageSizesPagedCallable; + } + + @Override + public UnaryCallable listDatabasesCallable() { + return listDatabasesCallable; + } + + @Override + public UnaryCallable + listDatabasesPagedCallable() { + return listDatabasesPagedCallable; + } + + @Override + public UnaryCallable getDatabaseCallable() { + return getDatabaseCallable; + } + + @Override + public UnaryCallable + listPluggableDatabasesCallable() { + return listPluggableDatabasesCallable; + } + + @Override + public UnaryCallable + listPluggableDatabasesPagedCallable() { + return listPluggableDatabasesPagedCallable; + } + + @Override + public UnaryCallable + getPluggableDatabaseCallable() { + return getPluggableDatabaseCallable; + } + + @Override + public UnaryCallable listDbSystemsCallable() { + return listDbSystemsCallable; + } + + @Override + public UnaryCallable + listDbSystemsPagedCallable() { + return listDbSystemsPagedCallable; + } + + @Override + public UnaryCallable getDbSystemCallable() { + return getDbSystemCallable; + } + + @Override + public UnaryCallable createDbSystemCallable() { + return createDbSystemCallable; + } + + @Override + public OperationCallable + createDbSystemOperationCallable() { + return createDbSystemOperationCallable; + } + + @Override + public UnaryCallable deleteDbSystemCallable() { + return deleteDbSystemCallable; + } + + @Override + public OperationCallable + deleteDbSystemOperationCallable() { + return deleteDbSystemOperationCallable; + } + + @Override + public UnaryCallable listDbVersionsCallable() { + return listDbVersionsCallable; + } + + @Override + public UnaryCallable + listDbVersionsPagedCallable() { + return listDbVersionsPagedCallable; + } + + @Override + public UnaryCallable + listDatabaseCharacterSetsCallable() { + return listDatabaseCharacterSetsCallable; + } + + @Override + public UnaryCallable + listDatabaseCharacterSetsPagedCallable() { + return listDatabaseCharacterSetsPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java index c75ac340c687..2259a7637d7b 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java @@ -22,12 +22,23 @@ import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabasesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExadbVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListMinorVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbNetworksPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbSubnetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListPluggableDatabasesPagedResponse; import com.google.api.HttpRule; import com.google.api.core.InternalApi; @@ -55,14 +66,36 @@ import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.CreateDbSystemRequest; +import com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.DbSystem; import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest; +import com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest; import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; import com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GetDatabaseRequest; +import com.google.cloud.oracledatabase.v1.GetDbSystemRequest; +import com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; @@ -75,21 +108,50 @@ import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse; import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; import com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse; +import com.google.cloud.oracledatabase.v1.ListDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListDatabasesResponse; import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; import com.google.cloud.oracledatabase.v1.ListDbNodesResponse; import com.google.cloud.oracledatabase.v1.ListDbServersRequest; import com.google.cloud.oracledatabase.v1.ListDbServersResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse; import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; import com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemsRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemsResponse; +import com.google.cloud.oracledatabase.v1.ListDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListDbVersionsResponse; import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; import com.google.cloud.oracledatabase.v1.ListEntitlementsResponse; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse; import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; import com.google.cloud.oracledatabase.v1.ListGiVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OdbSubnet; import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; +import com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest; import com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -114,9 +176,14 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { TypeRegistry.newBuilder() .add(CloudVmCluster.getDescriptor()) .add(Empty.getDescriptor()) + .add(OdbNetwork.getDescriptor()) .add(AutonomousDatabase.getDescriptor()) + .add(ExadbVmCluster.getDescriptor()) .add(CloudExadataInfrastructure.getDescriptor()) + .add(ExascaleDbStorageVault.getDescriptor()) .add(OperationMetadata.getDescriptor()) + .add(OdbSubnet.getDescriptor()) + .add(DbSystem.getDescriptor()) .build(); private static final ApiMethodDescriptor< @@ -145,6 +212,8 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); @@ -531,6 +600,8 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*/exadbVmClusters/*}/dbNodes") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -572,6 +643,7 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { 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(fields, "$alt", "json;enum-encoding=int"); @@ -586,6 +658,43 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { .build()) .build(); + private static final ApiMethodDescriptor + listMinorVersionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListMinorVersions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/giVersions/*}/minorVersions", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListMinorVersionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listDbSystemShapesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -608,6 +717,7 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { 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(fields, "$alt", "json;enum-encoding=int"); @@ -743,6 +853,53 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + updateAutonomousDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/UpdateAutonomousDatabase") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{autonomousDatabase.name=projects/*/locations/*/autonomousDatabases/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "autonomousDatabase.name", + request.getAutonomousDatabase().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "autonomousDatabase", request.getAutonomousDatabase(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAutonomousDatabaseRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteAutonomousDatabaseMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1114,19 +1271,20 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { HttpJsonOperationSnapshot.create(response)) .build(); - private static final ApiMethodDescriptor - listLocationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setHttpMethod("GET") + private static final ApiMethodDescriptor + switchoverAutonomousDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/SwitchoverAutonomousDatabase") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*}/locations", + "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:switchover", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -1134,33 +1292,118 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SwitchoverAutonomousDatabaseRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + failoverAutonomousDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/FailoverAutonomousDatabase") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:failover", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (FailoverAutonomousDatabaseRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listOdbNetworksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListOdbNetworks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/odbNetworks", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOdbNetworksResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getLocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/GetLocation") + private static final ApiMethodDescriptor + getOdbNetworkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetOdbNetwork") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*/locations/*}", + "/v1/{name=projects/*/locations/*/odbNetworks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -1168,7 +1411,7 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -1176,114 +1419,1350 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Location.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OdbNetwork.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private final UnaryCallable< - ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> - listCloudExadataInfrastructuresCallable; - private final UnaryCallable< - ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresPagedResponse> - listCloudExadataInfrastructuresPagedCallable; - private final UnaryCallable - getCloudExadataInfrastructureCallable; - private final UnaryCallable - createCloudExadataInfrastructureCallable; - private final OperationCallable< - CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> - createCloudExadataInfrastructureOperationCallable; - private final UnaryCallable - deleteCloudExadataInfrastructureCallable; - private final OperationCallable - deleteCloudExadataInfrastructureOperationCallable; - private final UnaryCallable - listCloudVmClustersCallable; - private final UnaryCallable - listCloudVmClustersPagedCallable; - private final UnaryCallable getCloudVmClusterCallable; - private final UnaryCallable createCloudVmClusterCallable; - private final OperationCallable - createCloudVmClusterOperationCallable; - private final UnaryCallable deleteCloudVmClusterCallable; - private final OperationCallable - deleteCloudVmClusterOperationCallable; - private final UnaryCallable - listEntitlementsCallable; - private final UnaryCallable - listEntitlementsPagedCallable; - private final UnaryCallable listDbServersCallable; - private final UnaryCallable - listDbServersPagedCallable; - private final UnaryCallable listDbNodesCallable; - private final UnaryCallable - listDbNodesPagedCallable; - private final UnaryCallable listGiVersionsCallable; - private final UnaryCallable - listGiVersionsPagedCallable; - private final UnaryCallable - listDbSystemShapesCallable; - private final UnaryCallable - listDbSystemShapesPagedCallable; - private final UnaryCallable - listAutonomousDatabasesCallable; - private final UnaryCallable - listAutonomousDatabasesPagedCallable; - private final UnaryCallable - getAutonomousDatabaseCallable; - private final UnaryCallable - createAutonomousDatabaseCallable; - private final OperationCallable< - CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - createAutonomousDatabaseOperationCallable; - private final UnaryCallable - deleteAutonomousDatabaseCallable; - private final OperationCallable - deleteAutonomousDatabaseOperationCallable; - private final UnaryCallable - restoreAutonomousDatabaseCallable; - private final OperationCallable< - RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - restoreAutonomousDatabaseOperationCallable; - private final UnaryCallable< - GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> - generateAutonomousDatabaseWalletCallable; - private final UnaryCallable - listAutonomousDbVersionsCallable; - private final UnaryCallable< - ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsPagedResponse> - listAutonomousDbVersionsPagedCallable; - private final UnaryCallable< - ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> - listAutonomousDatabaseCharacterSetsCallable; - private final UnaryCallable< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsPagedResponse> - listAutonomousDatabaseCharacterSetsPagedCallable; - private final UnaryCallable< - ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> - listAutonomousDatabaseBackupsCallable; - private final UnaryCallable< - ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsPagedResponse> - listAutonomousDatabaseBackupsPagedCallable; - private final UnaryCallable - stopAutonomousDatabaseCallable; - private final OperationCallable< - StopAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - stopAutonomousDatabaseOperationCallable; - private final UnaryCallable - startAutonomousDatabaseCallable; - private final OperationCallable< - StartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - startAutonomousDatabaseOperationCallable; - private final UnaryCallable - restartAutonomousDatabaseCallable; - private final OperationCallable< - RestartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - restartAutonomousDatabaseOperationCallable; - private final UnaryCallable listLocationsCallable; + private static final ApiMethodDescriptor + createOdbNetworkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/CreateOdbNetwork") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/odbNetworks", + 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, "odbNetworkId", request.getOdbNetworkId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("odbNetwork", request.getOdbNetwork(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateOdbNetworkRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteOdbNetworkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/DeleteOdbNetwork") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/odbNetworks/*}", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteOdbNetworkRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listOdbSubnetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListOdbSubnets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/odbNetworks/*}/odbSubnets", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOdbSubnetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getOdbSubnetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetOdbSubnet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/odbNetworks/*/odbSubnets/*}", + 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(OdbSubnet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createOdbSubnetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/CreateOdbSubnet") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/odbNetworks/*}/odbSubnets", + 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, "odbSubnetId", request.getOdbSubnetId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("odbSubnet", request.getOdbSubnet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateOdbSubnetRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteOdbSubnetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/DeleteOdbSubnet") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/odbNetworks/*/odbSubnets/*}", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteOdbSubnetRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listExadbVmClustersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListExadbVmClusters") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/exadbVmClusters", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListExadbVmClustersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getExadbVmClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetExadbVmCluster") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/exadbVmClusters/*}", + 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(ExadbVmCluster.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createExadbVmClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/CreateExadbVmCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/exadbVmClusters", + 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, "exadbVmClusterId", request.getExadbVmClusterId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("exadbVmCluster", request.getExadbVmCluster(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateExadbVmClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteExadbVmClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/DeleteExadbVmCluster") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/exadbVmClusters/*}", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteExadbVmClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateExadbVmClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/UpdateExadbVmCluster") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{exadbVmCluster.name=projects/*/locations/*/exadbVmClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "exadbVmCluster.name", + request.getExadbVmCluster().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("exadbVmCluster", request.getExadbVmCluster(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateExadbVmClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + removeVirtualMachineExadbVmClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/RemoveVirtualMachineExadbVmCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/exadbVmClusters/*}:removeVirtualMachine", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RemoveVirtualMachineExadbVmClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse> + listExascaleDbStorageVaultsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListExascaleDbStorageVaults") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/exascaleDbStorageVaults", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListExascaleDbStorageVaultsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getExascaleDbStorageVaultMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/GetExascaleDbStorageVault") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/exascaleDbStorageVaults/*}", + 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(ExascaleDbStorageVault.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createExascaleDbStorageVaultMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/CreateExascaleDbStorageVault") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/exascaleDbStorageVaults", + 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, + "exascaleDbStorageVaultId", + request.getExascaleDbStorageVaultId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "exascaleDbStorageVault", + request.getExascaleDbStorageVault(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateExascaleDbStorageVaultRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteExascaleDbStorageVaultMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/DeleteExascaleDbStorageVault") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/exascaleDbStorageVaults/*}", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteExascaleDbStorageVaultRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListDbSystemInitialStorageSizes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/dbSystemInitialStorageSizes", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListDbSystemInitialStorageSizesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDatabasesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListDatabases") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/databases", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDatabasesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetDatabase") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/databases/*}", + 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(Database.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListPluggableDatabasesRequest, ListPluggableDatabasesResponse> + listPluggableDatabasesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListPluggableDatabases") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/pluggableDatabases", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListPluggableDatabasesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getPluggableDatabaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/GetPluggableDatabase") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/pluggableDatabases/*}", + 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(PluggableDatabase.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDbSystemsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListDbSystems") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/dbSystems", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDbSystemsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDbSystemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/GetDbSystem") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dbSystems/*}", + 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(DbSystem.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createDbSystemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/CreateDbSystem") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/dbSystems", + 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, "dbSystemId", request.getDbSystemId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("dbSystem", request.getDbSystem(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateDbSystemRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteDbSystemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/DeleteDbSystem") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dbSystems/*}", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteDbSystemRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listDbVersionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/ListDbVersions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/dbVersions", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDbVersionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsResponse> + listDatabaseCharacterSetsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ListDatabaseCharacterSets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/databaseCharacterSets", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDatabaseCharacterSetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + 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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + 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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse> + listCloudExadataInfrastructuresCallable; + private final UnaryCallable< + ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresPagedCallable; + private final UnaryCallable + getCloudExadataInfrastructureCallable; + private final UnaryCallable + createCloudExadataInfrastructureCallable; + private final OperationCallable< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationCallable; + private final UnaryCallable + deleteCloudExadataInfrastructureCallable; + private final OperationCallable + deleteCloudExadataInfrastructureOperationCallable; + private final UnaryCallable + listCloudVmClustersCallable; + private final UnaryCallable + listCloudVmClustersPagedCallable; + private final UnaryCallable getCloudVmClusterCallable; + private final UnaryCallable createCloudVmClusterCallable; + private final OperationCallable + createCloudVmClusterOperationCallable; + private final UnaryCallable deleteCloudVmClusterCallable; + private final OperationCallable + deleteCloudVmClusterOperationCallable; + private final UnaryCallable + listEntitlementsCallable; + private final UnaryCallable + listEntitlementsPagedCallable; + private final UnaryCallable listDbServersCallable; + private final UnaryCallable + listDbServersPagedCallable; + private final UnaryCallable listDbNodesCallable; + private final UnaryCallable + listDbNodesPagedCallable; + private final UnaryCallable listGiVersionsCallable; + private final UnaryCallable + listGiVersionsPagedCallable; + private final UnaryCallable + listMinorVersionsCallable; + private final UnaryCallable + listMinorVersionsPagedCallable; + private final UnaryCallable + listDbSystemShapesCallable; + private final UnaryCallable + listDbSystemShapesPagedCallable; + private final UnaryCallable + listAutonomousDatabasesCallable; + private final UnaryCallable + listAutonomousDatabasesPagedCallable; + private final UnaryCallable + getAutonomousDatabaseCallable; + private final UnaryCallable + createAutonomousDatabaseCallable; + private final OperationCallable< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationCallable; + private final UnaryCallable + updateAutonomousDatabaseCallable; + private final OperationCallable< + UpdateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + updateAutonomousDatabaseOperationCallable; + private final UnaryCallable + deleteAutonomousDatabaseCallable; + private final OperationCallable + deleteAutonomousDatabaseOperationCallable; + private final UnaryCallable + restoreAutonomousDatabaseCallable; + private final OperationCallable< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationCallable; + private final UnaryCallable< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletCallable; + private final UnaryCallable + listAutonomousDbVersionsCallable; + private final UnaryCallable< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsPagedResponse> + listAutonomousDbVersionsPagedCallable; + private final UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> + listAutonomousDatabaseCharacterSetsCallable; + private final UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsPagedCallable; + private final UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> + listAutonomousDatabaseBackupsCallable; + private final UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsPagedCallable; + private final UnaryCallable + stopAutonomousDatabaseCallable; + private final OperationCallable< + StopAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + stopAutonomousDatabaseOperationCallable; + private final UnaryCallable + startAutonomousDatabaseCallable; + private final OperationCallable< + StartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + startAutonomousDatabaseOperationCallable; + private final UnaryCallable + restartAutonomousDatabaseCallable; + private final OperationCallable< + RestartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restartAutonomousDatabaseOperationCallable; + private final UnaryCallable + switchoverAutonomousDatabaseCallable; + private final OperationCallable< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationCallable; + private final UnaryCallable + failoverAutonomousDatabaseCallable; + private final OperationCallable< + FailoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + failoverAutonomousDatabaseOperationCallable; + private final UnaryCallable + listOdbNetworksCallable; + private final UnaryCallable + listOdbNetworksPagedCallable; + private final UnaryCallable getOdbNetworkCallable; + private final UnaryCallable createOdbNetworkCallable; + private final OperationCallable + createOdbNetworkOperationCallable; + private final UnaryCallable deleteOdbNetworkCallable; + private final OperationCallable + deleteOdbNetworkOperationCallable; + private final UnaryCallable listOdbSubnetsCallable; + private final UnaryCallable + listOdbSubnetsPagedCallable; + private final UnaryCallable getOdbSubnetCallable; + private final UnaryCallable createOdbSubnetCallable; + private final OperationCallable + createOdbSubnetOperationCallable; + private final UnaryCallable deleteOdbSubnetCallable; + private final OperationCallable + deleteOdbSubnetOperationCallable; + private final UnaryCallable + listExadbVmClustersCallable; + private final UnaryCallable + listExadbVmClustersPagedCallable; + private final UnaryCallable getExadbVmClusterCallable; + private final UnaryCallable createExadbVmClusterCallable; + private final OperationCallable + createExadbVmClusterOperationCallable; + private final UnaryCallable deleteExadbVmClusterCallable; + private final OperationCallable + deleteExadbVmClusterOperationCallable; + private final UnaryCallable updateExadbVmClusterCallable; + private final OperationCallable + updateExadbVmClusterOperationCallable; + private final UnaryCallable + removeVirtualMachineExadbVmClusterCallable; + private final OperationCallable< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationCallable; + private final UnaryCallable< + ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse> + listExascaleDbStorageVaultsCallable; + private final UnaryCallable< + ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsPagedResponse> + listExascaleDbStorageVaultsPagedCallable; + private final UnaryCallable + getExascaleDbStorageVaultCallable; + private final UnaryCallable + createExascaleDbStorageVaultCallable; + private final OperationCallable< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationCallable; + private final UnaryCallable + deleteExascaleDbStorageVaultCallable; + private final OperationCallable + deleteExascaleDbStorageVaultOperationCallable; + private final UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesCallable; + private final UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesPagedCallable; + private final UnaryCallable listDatabasesCallable; + private final UnaryCallable + listDatabasesPagedCallable; + private final UnaryCallable getDatabaseCallable; + private final UnaryCallable + listPluggableDatabasesCallable; + private final UnaryCallable + listPluggableDatabasesPagedCallable; + private final UnaryCallable + getPluggableDatabaseCallable; + private final UnaryCallable listDbSystemsCallable; + private final UnaryCallable + listDbSystemsPagedCallable; + private final UnaryCallable getDbSystemCallable; + private final UnaryCallable createDbSystemCallable; + private final OperationCallable + createDbSystemOperationCallable; + private final UnaryCallable deleteDbSystemCallable; + private final OperationCallable + deleteDbSystemOperationCallable; + private final UnaryCallable listDbVersionsCallable; + private final UnaryCallable + listDbVersionsPagedCallable; + private final UnaryCallable + listDatabaseCharacterSetsCallable; + private final UnaryCallable< + ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsPagedResponse> + listDatabaseCharacterSetsPagedCallable; + private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; @@ -1373,11 +2852,180 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - getCloudExadataInfrastructureTransportSettings = + HttpJsonCallSettings + getCloudExadataInfrastructureTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getCloudExadataInfrastructureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createCloudExadataInfrastructureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCloudExadataInfrastructureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteCloudExadataInfrastructureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCloudExadataInfrastructureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listCloudVmClustersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCloudVmClustersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getCloudVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCloudVmClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createCloudVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCloudVmClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteCloudVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCloudVmClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listEntitlementsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listEntitlementsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDbServersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDbServersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listDbNodesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDbNodesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listGiVersionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listGiVersionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listMinorVersionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listMinorVersionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDbSystemShapesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDbSystemShapesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listAutonomousDatabasesTransportSettings = HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(getCloudExadataInfrastructureMethodDescriptor) + .newBuilder() + .setMethodDescriptor(listAutonomousDatabasesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAutonomousDatabaseMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1386,10 +3034,10 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - createCloudExadataInfrastructureTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createCloudExadataInfrastructureMethodDescriptor) + HttpJsonCallSettings + createAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAutonomousDatabaseMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1398,10 +3046,24 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - deleteCloudExadataInfrastructureTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteCloudExadataInfrastructureMethodDescriptor) + HttpJsonCallSettings + updateAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "autonomous_database.name", + String.valueOf(request.getAutonomousDatabase().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAutonomousDatabaseMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1410,11 +3072,38 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - listCloudVmClustersTransportSettings = + HttpJsonCallSettings + restoreAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletTransportSettings = HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listCloudVmClustersMethodDescriptor) + . + newBuilder() + .setMethodDescriptor(generateAutonomousDatabaseWalletMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listAutonomousDbVersionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAutonomousDbVersionsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1423,22 +3112,29 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - getCloudVmClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getCloudVmClusterMethodDescriptor) + HttpJsonCallSettings< + ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> + listAutonomousDatabaseCharacterSetsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listAutonomousDatabaseCharacterSetsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); - HttpJsonCallSettings - createCloudVmClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createCloudVmClusterMethodDescriptor) + HttpJsonCallSettings< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> + listAutonomousDatabaseBackupsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listAutonomousDatabaseBackupsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1447,10 +3143,10 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - deleteCloudVmClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteCloudVmClusterMethodDescriptor) + HttpJsonCallSettings + stopAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(stopAutonomousDatabaseMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1459,10 +3155,58 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - listEntitlementsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listEntitlementsMethodDescriptor) + HttpJsonCallSettings + startAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(startAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + restartAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restartAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + switchoverAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(switchoverAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + failoverAutonomousDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(failoverAutonomousDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listOdbNetworksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listOdbNetworksMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1471,10 +3215,43 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - listDbServersTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listDbServersMethodDescriptor) + HttpJsonCallSettings getOdbNetworkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOdbNetworkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createOdbNetworkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createOdbNetworkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteOdbNetworkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteOdbNetworkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listOdbSubnetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listOdbSubnetsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1483,9 +3260,20 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings listDbNodesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listDbNodesMethodDescriptor) + HttpJsonCallSettings getOdbSubnetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOdbSubnetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createOdbSubnetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createOdbSubnetMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1494,10 +3282,22 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - listGiVersionsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listGiVersionsMethodDescriptor) + HttpJsonCallSettings deleteOdbSubnetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteOdbSubnetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listExadbVmClustersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listExadbVmClustersMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1506,10 +3306,22 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - listDbSystemShapesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listDbSystemShapesMethodDescriptor) + HttpJsonCallSettings + getExadbVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getExadbVmClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createExadbVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createExadbVmClusterMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1518,59 +3330,87 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings - listAutonomousDatabasesTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listAutonomousDatabasesMethodDescriptor) + HttpJsonCallSettings + deleteExadbVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteExadbVmClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateExadbVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateExadbVmClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "exadb_vm_cluster.name", + String.valueOf(request.getExadbVmCluster().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + removeVirtualMachineExadbVmClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(removeVirtualMachineExadbVmClusterMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); + builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); - HttpJsonCallSettings - getAutonomousDatabaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getAutonomousDatabaseMethodDescriptor) + HttpJsonCallSettings + listExascaleDbStorageVaultsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listExascaleDbStorageVaultsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); - HttpJsonCallSettings - createAutonomousDatabaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createAutonomousDatabaseMethodDescriptor) + HttpJsonCallSettings + getExascaleDbStorageVaultTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getExascaleDbStorageVaultMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); + builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); - HttpJsonCallSettings - deleteAutonomousDatabaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteAutonomousDatabaseMethodDescriptor) + HttpJsonCallSettings + createExascaleDbStorageVaultTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createExascaleDbStorageVaultMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); - HttpJsonCallSettings - restoreAutonomousDatabaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(restoreAutonomousDatabaseMethodDescriptor) + HttpJsonCallSettings + deleteExascaleDbStorageVaultTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteExascaleDbStorageVaultMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1580,25 +3420,24 @@ protected HttpJsonOracleDatabaseStub( }) .build(); HttpJsonCallSettings< - GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> - generateAutonomousDatabaseWalletTransportSettings = + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesTransportSettings = HttpJsonCallSettings - . + . newBuilder() - .setMethodDescriptor(generateAutonomousDatabaseWalletMethodDescriptor) + .setMethodDescriptor(listDbSystemInitialStorageSizesMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); - HttpJsonCallSettings - listAutonomousDbVersionsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listAutonomousDbVersionsMethodDescriptor) + HttpJsonCallSettings + listDatabasesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDatabasesMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1607,14 +3446,22 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings< - ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse> - listAutonomousDatabaseCharacterSetsTransportSettings = + HttpJsonCallSettings getDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDatabaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listPluggableDatabasesTransportSettings = HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(listAutonomousDatabaseCharacterSetsMethodDescriptor) + .newBuilder() + .setMethodDescriptor(listPluggableDatabasesMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1623,54 +3470,85 @@ protected HttpJsonOracleDatabaseStub( return builder.build(); }) .build(); - HttpJsonCallSettings< - ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> - listAutonomousDatabaseBackupsTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(listAutonomousDatabaseBackupsMethodDescriptor) + HttpJsonCallSettings + getPluggableDatabaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPluggableDatabaseMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); + builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); - HttpJsonCallSettings - stopAutonomousDatabaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(stopAutonomousDatabaseMethodDescriptor) + HttpJsonCallSettings + listDbSystemsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDbSystemsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); - HttpJsonCallSettings - startAutonomousDatabaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(startAutonomousDatabaseMethodDescriptor) + HttpJsonCallSettings getDbSystemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDbSystemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createDbSystemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDbSystemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteDbSystemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDbSystemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDbVersionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDbVersionsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); - HttpJsonCallSettings - restartAutonomousDatabaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(restartAutonomousDatabaseMethodDescriptor) + HttpJsonCallSettings + listDatabaseCharacterSetsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listDatabaseCharacterSetsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); @@ -1796,6 +3674,16 @@ protected HttpJsonOracleDatabaseStub( this.listGiVersionsPagedCallable = callableFactory.createPagedCallable( listGiVersionsTransportSettings, settings.listGiVersionsSettings(), clientContext); + this.listMinorVersionsCallable = + callableFactory.createUnaryCallable( + listMinorVersionsTransportSettings, + settings.listMinorVersionsSettings(), + clientContext); + this.listMinorVersionsPagedCallable = + callableFactory.createPagedCallable( + listMinorVersionsTransportSettings, + settings.listMinorVersionsSettings(), + clientContext); this.listDbSystemShapesCallable = callableFactory.createUnaryCallable( listDbSystemShapesTransportSettings, @@ -1832,96 +3720,356 @@ protected HttpJsonOracleDatabaseStub( settings.createAutonomousDatabaseOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + updateAutonomousDatabaseTransportSettings, + settings.updateAutonomousDatabaseSettings(), + clientContext); + this.updateAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + updateAutonomousDatabaseTransportSettings, + settings.updateAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteAutonomousDatabaseCallable = callableFactory.createUnaryCallable( - deleteAutonomousDatabaseTransportSettings, - settings.deleteAutonomousDatabaseSettings(), + deleteAutonomousDatabaseTransportSettings, + settings.deleteAutonomousDatabaseSettings(), + clientContext); + this.deleteAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + deleteAutonomousDatabaseTransportSettings, + settings.deleteAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.restoreAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + restoreAutonomousDatabaseTransportSettings, + settings.restoreAutonomousDatabaseSettings(), + clientContext); + this.restoreAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + restoreAutonomousDatabaseTransportSettings, + settings.restoreAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateAutonomousDatabaseWalletCallable = + callableFactory.createUnaryCallable( + generateAutonomousDatabaseWalletTransportSettings, + settings.generateAutonomousDatabaseWalletSettings(), + clientContext); + this.listAutonomousDbVersionsCallable = + callableFactory.createUnaryCallable( + listAutonomousDbVersionsTransportSettings, + settings.listAutonomousDbVersionsSettings(), + clientContext); + this.listAutonomousDbVersionsPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDbVersionsTransportSettings, + settings.listAutonomousDbVersionsSettings(), + clientContext); + this.listAutonomousDatabaseCharacterSetsCallable = + callableFactory.createUnaryCallable( + listAutonomousDatabaseCharacterSetsTransportSettings, + settings.listAutonomousDatabaseCharacterSetsSettings(), + clientContext); + this.listAutonomousDatabaseCharacterSetsPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDatabaseCharacterSetsTransportSettings, + settings.listAutonomousDatabaseCharacterSetsSettings(), + clientContext); + this.listAutonomousDatabaseBackupsCallable = + callableFactory.createUnaryCallable( + listAutonomousDatabaseBackupsTransportSettings, + settings.listAutonomousDatabaseBackupsSettings(), + clientContext); + this.listAutonomousDatabaseBackupsPagedCallable = + callableFactory.createPagedCallable( + listAutonomousDatabaseBackupsTransportSettings, + settings.listAutonomousDatabaseBackupsSettings(), + clientContext); + this.stopAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + stopAutonomousDatabaseTransportSettings, + settings.stopAutonomousDatabaseSettings(), + clientContext); + this.stopAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + stopAutonomousDatabaseTransportSettings, + settings.stopAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.startAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + startAutonomousDatabaseTransportSettings, + settings.startAutonomousDatabaseSettings(), + clientContext); + this.startAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + startAutonomousDatabaseTransportSettings, + settings.startAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.restartAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + restartAutonomousDatabaseTransportSettings, + settings.restartAutonomousDatabaseSettings(), + clientContext); + this.restartAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + restartAutonomousDatabaseTransportSettings, + settings.restartAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.switchoverAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + switchoverAutonomousDatabaseTransportSettings, + settings.switchoverAutonomousDatabaseSettings(), + clientContext); + this.switchoverAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + switchoverAutonomousDatabaseTransportSettings, + settings.switchoverAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.failoverAutonomousDatabaseCallable = + callableFactory.createUnaryCallable( + failoverAutonomousDatabaseTransportSettings, + settings.failoverAutonomousDatabaseSettings(), + clientContext); + this.failoverAutonomousDatabaseOperationCallable = + callableFactory.createOperationCallable( + failoverAutonomousDatabaseTransportSettings, + settings.failoverAutonomousDatabaseOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listOdbNetworksCallable = + callableFactory.createUnaryCallable( + listOdbNetworksTransportSettings, settings.listOdbNetworksSettings(), clientContext); + this.listOdbNetworksPagedCallable = + callableFactory.createPagedCallable( + listOdbNetworksTransportSettings, settings.listOdbNetworksSettings(), clientContext); + this.getOdbNetworkCallable = + callableFactory.createUnaryCallable( + getOdbNetworkTransportSettings, settings.getOdbNetworkSettings(), clientContext); + this.createOdbNetworkCallable = + callableFactory.createUnaryCallable( + createOdbNetworkTransportSettings, settings.createOdbNetworkSettings(), clientContext); + this.createOdbNetworkOperationCallable = + callableFactory.createOperationCallable( + createOdbNetworkTransportSettings, + settings.createOdbNetworkOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteOdbNetworkCallable = + callableFactory.createUnaryCallable( + deleteOdbNetworkTransportSettings, settings.deleteOdbNetworkSettings(), clientContext); + this.deleteOdbNetworkOperationCallable = + callableFactory.createOperationCallable( + deleteOdbNetworkTransportSettings, + settings.deleteOdbNetworkOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listOdbSubnetsCallable = + callableFactory.createUnaryCallable( + listOdbSubnetsTransportSettings, settings.listOdbSubnetsSettings(), clientContext); + this.listOdbSubnetsPagedCallable = + callableFactory.createPagedCallable( + listOdbSubnetsTransportSettings, settings.listOdbSubnetsSettings(), clientContext); + this.getOdbSubnetCallable = + callableFactory.createUnaryCallable( + getOdbSubnetTransportSettings, settings.getOdbSubnetSettings(), clientContext); + this.createOdbSubnetCallable = + callableFactory.createUnaryCallable( + createOdbSubnetTransportSettings, settings.createOdbSubnetSettings(), clientContext); + this.createOdbSubnetOperationCallable = + callableFactory.createOperationCallable( + createOdbSubnetTransportSettings, + settings.createOdbSubnetOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteOdbSubnetCallable = + callableFactory.createUnaryCallable( + deleteOdbSubnetTransportSettings, settings.deleteOdbSubnetSettings(), clientContext); + this.deleteOdbSubnetOperationCallable = + callableFactory.createOperationCallable( + deleteOdbSubnetTransportSettings, + settings.deleteOdbSubnetOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listExadbVmClustersCallable = + callableFactory.createUnaryCallable( + listExadbVmClustersTransportSettings, + settings.listExadbVmClustersSettings(), + clientContext); + this.listExadbVmClustersPagedCallable = + callableFactory.createPagedCallable( + listExadbVmClustersTransportSettings, + settings.listExadbVmClustersSettings(), + clientContext); + this.getExadbVmClusterCallable = + callableFactory.createUnaryCallable( + getExadbVmClusterTransportSettings, + settings.getExadbVmClusterSettings(), + clientContext); + this.createExadbVmClusterCallable = + callableFactory.createUnaryCallable( + createExadbVmClusterTransportSettings, + settings.createExadbVmClusterSettings(), + clientContext); + this.createExadbVmClusterOperationCallable = + callableFactory.createOperationCallable( + createExadbVmClusterTransportSettings, + settings.createExadbVmClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteExadbVmClusterCallable = + callableFactory.createUnaryCallable( + deleteExadbVmClusterTransportSettings, + settings.deleteExadbVmClusterSettings(), + clientContext); + this.deleteExadbVmClusterOperationCallable = + callableFactory.createOperationCallable( + deleteExadbVmClusterTransportSettings, + settings.deleteExadbVmClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateExadbVmClusterCallable = + callableFactory.createUnaryCallable( + updateExadbVmClusterTransportSettings, + settings.updateExadbVmClusterSettings(), + clientContext); + this.updateExadbVmClusterOperationCallable = + callableFactory.createOperationCallable( + updateExadbVmClusterTransportSettings, + settings.updateExadbVmClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.removeVirtualMachineExadbVmClusterCallable = + callableFactory.createUnaryCallable( + removeVirtualMachineExadbVmClusterTransportSettings, + settings.removeVirtualMachineExadbVmClusterSettings(), clientContext); - this.deleteAutonomousDatabaseOperationCallable = + this.removeVirtualMachineExadbVmClusterOperationCallable = callableFactory.createOperationCallable( - deleteAutonomousDatabaseTransportSettings, - settings.deleteAutonomousDatabaseOperationSettings(), + removeVirtualMachineExadbVmClusterTransportSettings, + settings.removeVirtualMachineExadbVmClusterOperationSettings(), clientContext, httpJsonOperationsStub); - this.restoreAutonomousDatabaseCallable = + this.listExascaleDbStorageVaultsCallable = callableFactory.createUnaryCallable( - restoreAutonomousDatabaseTransportSettings, - settings.restoreAutonomousDatabaseSettings(), + listExascaleDbStorageVaultsTransportSettings, + settings.listExascaleDbStorageVaultsSettings(), clientContext); - this.restoreAutonomousDatabaseOperationCallable = + this.listExascaleDbStorageVaultsPagedCallable = + callableFactory.createPagedCallable( + listExascaleDbStorageVaultsTransportSettings, + settings.listExascaleDbStorageVaultsSettings(), + clientContext); + this.getExascaleDbStorageVaultCallable = + callableFactory.createUnaryCallable( + getExascaleDbStorageVaultTransportSettings, + settings.getExascaleDbStorageVaultSettings(), + clientContext); + this.createExascaleDbStorageVaultCallable = + callableFactory.createUnaryCallable( + createExascaleDbStorageVaultTransportSettings, + settings.createExascaleDbStorageVaultSettings(), + clientContext); + this.createExascaleDbStorageVaultOperationCallable = callableFactory.createOperationCallable( - restoreAutonomousDatabaseTransportSettings, - settings.restoreAutonomousDatabaseOperationSettings(), + createExascaleDbStorageVaultTransportSettings, + settings.createExascaleDbStorageVaultOperationSettings(), clientContext, httpJsonOperationsStub); - this.generateAutonomousDatabaseWalletCallable = + this.deleteExascaleDbStorageVaultCallable = callableFactory.createUnaryCallable( - generateAutonomousDatabaseWalletTransportSettings, - settings.generateAutonomousDatabaseWalletSettings(), + deleteExascaleDbStorageVaultTransportSettings, + settings.deleteExascaleDbStorageVaultSettings(), clientContext); - this.listAutonomousDbVersionsCallable = + this.deleteExascaleDbStorageVaultOperationCallable = + callableFactory.createOperationCallable( + deleteExascaleDbStorageVaultTransportSettings, + settings.deleteExascaleDbStorageVaultOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listDbSystemInitialStorageSizesCallable = callableFactory.createUnaryCallable( - listAutonomousDbVersionsTransportSettings, - settings.listAutonomousDbVersionsSettings(), + listDbSystemInitialStorageSizesTransportSettings, + settings.listDbSystemInitialStorageSizesSettings(), clientContext); - this.listAutonomousDbVersionsPagedCallable = + this.listDbSystemInitialStorageSizesPagedCallable = callableFactory.createPagedCallable( - listAutonomousDbVersionsTransportSettings, - settings.listAutonomousDbVersionsSettings(), + listDbSystemInitialStorageSizesTransportSettings, + settings.listDbSystemInitialStorageSizesSettings(), clientContext); - this.listAutonomousDatabaseCharacterSetsCallable = + this.listDatabasesCallable = callableFactory.createUnaryCallable( - listAutonomousDatabaseCharacterSetsTransportSettings, - settings.listAutonomousDatabaseCharacterSetsSettings(), - clientContext); - this.listAutonomousDatabaseCharacterSetsPagedCallable = + listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext); + this.listDatabasesPagedCallable = callableFactory.createPagedCallable( - listAutonomousDatabaseCharacterSetsTransportSettings, - settings.listAutonomousDatabaseCharacterSetsSettings(), - clientContext); - this.listAutonomousDatabaseBackupsCallable = + listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext); + this.getDatabaseCallable = callableFactory.createUnaryCallable( - listAutonomousDatabaseBackupsTransportSettings, - settings.listAutonomousDatabaseBackupsSettings(), + getDatabaseTransportSettings, settings.getDatabaseSettings(), clientContext); + this.listPluggableDatabasesCallable = + callableFactory.createUnaryCallable( + listPluggableDatabasesTransportSettings, + settings.listPluggableDatabasesSettings(), clientContext); - this.listAutonomousDatabaseBackupsPagedCallable = + this.listPluggableDatabasesPagedCallable = callableFactory.createPagedCallable( - listAutonomousDatabaseBackupsTransportSettings, - settings.listAutonomousDatabaseBackupsSettings(), + listPluggableDatabasesTransportSettings, + settings.listPluggableDatabasesSettings(), clientContext); - this.stopAutonomousDatabaseCallable = + this.getPluggableDatabaseCallable = callableFactory.createUnaryCallable( - stopAutonomousDatabaseTransportSettings, - settings.stopAutonomousDatabaseSettings(), + getPluggableDatabaseTransportSettings, + settings.getPluggableDatabaseSettings(), clientContext); - this.stopAutonomousDatabaseOperationCallable = + this.listDbSystemsCallable = + callableFactory.createUnaryCallable( + listDbSystemsTransportSettings, settings.listDbSystemsSettings(), clientContext); + this.listDbSystemsPagedCallable = + callableFactory.createPagedCallable( + listDbSystemsTransportSettings, settings.listDbSystemsSettings(), clientContext); + this.getDbSystemCallable = + callableFactory.createUnaryCallable( + getDbSystemTransportSettings, settings.getDbSystemSettings(), clientContext); + this.createDbSystemCallable = + callableFactory.createUnaryCallable( + createDbSystemTransportSettings, settings.createDbSystemSettings(), clientContext); + this.createDbSystemOperationCallable = callableFactory.createOperationCallable( - stopAutonomousDatabaseTransportSettings, - settings.stopAutonomousDatabaseOperationSettings(), + createDbSystemTransportSettings, + settings.createDbSystemOperationSettings(), clientContext, httpJsonOperationsStub); - this.startAutonomousDatabaseCallable = + this.deleteDbSystemCallable = callableFactory.createUnaryCallable( - startAutonomousDatabaseTransportSettings, - settings.startAutonomousDatabaseSettings(), - clientContext); - this.startAutonomousDatabaseOperationCallable = + deleteDbSystemTransportSettings, settings.deleteDbSystemSettings(), clientContext); + this.deleteDbSystemOperationCallable = callableFactory.createOperationCallable( - startAutonomousDatabaseTransportSettings, - settings.startAutonomousDatabaseOperationSettings(), + deleteDbSystemTransportSettings, + settings.deleteDbSystemOperationSettings(), clientContext, httpJsonOperationsStub); - this.restartAutonomousDatabaseCallable = + this.listDbVersionsCallable = callableFactory.createUnaryCallable( - restartAutonomousDatabaseTransportSettings, - settings.restartAutonomousDatabaseSettings(), + listDbVersionsTransportSettings, settings.listDbVersionsSettings(), clientContext); + this.listDbVersionsPagedCallable = + callableFactory.createPagedCallable( + listDbVersionsTransportSettings, settings.listDbVersionsSettings(), clientContext); + this.listDatabaseCharacterSetsCallable = + callableFactory.createUnaryCallable( + listDatabaseCharacterSetsTransportSettings, + settings.listDatabaseCharacterSetsSettings(), + clientContext); + this.listDatabaseCharacterSetsPagedCallable = + callableFactory.createPagedCallable( + listDatabaseCharacterSetsTransportSettings, + settings.listDatabaseCharacterSetsSettings(), clientContext); - this.restartAutonomousDatabaseOperationCallable = - callableFactory.createOperationCallable( - restartAutonomousDatabaseTransportSettings, - settings.restartAutonomousDatabaseOperationSettings(), - clientContext, - httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1951,10 +4099,12 @@ public static List getMethodDescriptors() { methodDescriptors.add(listDbServersMethodDescriptor); methodDescriptors.add(listDbNodesMethodDescriptor); methodDescriptors.add(listGiVersionsMethodDescriptor); + methodDescriptors.add(listMinorVersionsMethodDescriptor); methodDescriptors.add(listDbSystemShapesMethodDescriptor); methodDescriptors.add(listAutonomousDatabasesMethodDescriptor); methodDescriptors.add(getAutonomousDatabaseMethodDescriptor); methodDescriptors.add(createAutonomousDatabaseMethodDescriptor); + methodDescriptors.add(updateAutonomousDatabaseMethodDescriptor); methodDescriptors.add(deleteAutonomousDatabaseMethodDescriptor); methodDescriptors.add(restoreAutonomousDatabaseMethodDescriptor); methodDescriptors.add(generateAutonomousDatabaseWalletMethodDescriptor); @@ -1964,6 +4114,37 @@ public static List getMethodDescriptors() { methodDescriptors.add(stopAutonomousDatabaseMethodDescriptor); methodDescriptors.add(startAutonomousDatabaseMethodDescriptor); methodDescriptors.add(restartAutonomousDatabaseMethodDescriptor); + methodDescriptors.add(switchoverAutonomousDatabaseMethodDescriptor); + methodDescriptors.add(failoverAutonomousDatabaseMethodDescriptor); + methodDescriptors.add(listOdbNetworksMethodDescriptor); + methodDescriptors.add(getOdbNetworkMethodDescriptor); + methodDescriptors.add(createOdbNetworkMethodDescriptor); + methodDescriptors.add(deleteOdbNetworkMethodDescriptor); + methodDescriptors.add(listOdbSubnetsMethodDescriptor); + methodDescriptors.add(getOdbSubnetMethodDescriptor); + methodDescriptors.add(createOdbSubnetMethodDescriptor); + methodDescriptors.add(deleteOdbSubnetMethodDescriptor); + methodDescriptors.add(listExadbVmClustersMethodDescriptor); + methodDescriptors.add(getExadbVmClusterMethodDescriptor); + methodDescriptors.add(createExadbVmClusterMethodDescriptor); + methodDescriptors.add(deleteExadbVmClusterMethodDescriptor); + methodDescriptors.add(updateExadbVmClusterMethodDescriptor); + methodDescriptors.add(removeVirtualMachineExadbVmClusterMethodDescriptor); + methodDescriptors.add(listExascaleDbStorageVaultsMethodDescriptor); + methodDescriptors.add(getExascaleDbStorageVaultMethodDescriptor); + methodDescriptors.add(createExascaleDbStorageVaultMethodDescriptor); + methodDescriptors.add(deleteExascaleDbStorageVaultMethodDescriptor); + methodDescriptors.add(listDbSystemInitialStorageSizesMethodDescriptor); + methodDescriptors.add(listDatabasesMethodDescriptor); + methodDescriptors.add(getDatabaseMethodDescriptor); + methodDescriptors.add(listPluggableDatabasesMethodDescriptor); + methodDescriptors.add(getPluggableDatabaseMethodDescriptor); + methodDescriptors.add(listDbSystemsMethodDescriptor); + methodDescriptors.add(getDbSystemMethodDescriptor); + methodDescriptors.add(createDbSystemMethodDescriptor); + methodDescriptors.add(deleteDbSystemMethodDescriptor); + methodDescriptors.add(listDbVersionsMethodDescriptor); + methodDescriptors.add(listDatabaseCharacterSetsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -2101,6 +4282,18 @@ public UnaryCallable listGiVersio return listGiVersionsPagedCallable; } + @Override + public UnaryCallable + listMinorVersionsCallable() { + return listMinorVersionsCallable; + } + + @Override + public UnaryCallable + listMinorVersionsPagedCallable() { + return listMinorVersionsPagedCallable; + } + @Override public UnaryCallable listDbSystemShapesCallable() { @@ -2143,6 +4336,18 @@ public UnaryCallable listGiVersio return createAutonomousDatabaseOperationCallable; } + @Override + public UnaryCallable + updateAutonomousDatabaseCallable() { + return updateAutonomousDatabaseCallable; + } + + @Override + public OperationCallable + updateAutonomousDatabaseOperationCallable() { + return updateAutonomousDatabaseOperationCallable; + } + @Override public UnaryCallable deleteAutonomousDatabaseCallable() { @@ -2249,6 +4454,322 @@ public UnaryCallable stopAutonomousDat return restartAutonomousDatabaseOperationCallable; } + @Override + public UnaryCallable + switchoverAutonomousDatabaseCallable() { + return switchoverAutonomousDatabaseCallable; + } + + @Override + public OperationCallable< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationCallable() { + return switchoverAutonomousDatabaseOperationCallable; + } + + @Override + public UnaryCallable + failoverAutonomousDatabaseCallable() { + return failoverAutonomousDatabaseCallable; + } + + @Override + public OperationCallable + failoverAutonomousDatabaseOperationCallable() { + return failoverAutonomousDatabaseOperationCallable; + } + + @Override + public UnaryCallable listOdbNetworksCallable() { + return listOdbNetworksCallable; + } + + @Override + public UnaryCallable + listOdbNetworksPagedCallable() { + return listOdbNetworksPagedCallable; + } + + @Override + public UnaryCallable getOdbNetworkCallable() { + return getOdbNetworkCallable; + } + + @Override + public UnaryCallable createOdbNetworkCallable() { + return createOdbNetworkCallable; + } + + @Override + public OperationCallable + createOdbNetworkOperationCallable() { + return createOdbNetworkOperationCallable; + } + + @Override + public UnaryCallable deleteOdbNetworkCallable() { + return deleteOdbNetworkCallable; + } + + @Override + public OperationCallable + deleteOdbNetworkOperationCallable() { + return deleteOdbNetworkOperationCallable; + } + + @Override + public UnaryCallable listOdbSubnetsCallable() { + return listOdbSubnetsCallable; + } + + @Override + public UnaryCallable + listOdbSubnetsPagedCallable() { + return listOdbSubnetsPagedCallable; + } + + @Override + public UnaryCallable getOdbSubnetCallable() { + return getOdbSubnetCallable; + } + + @Override + public UnaryCallable createOdbSubnetCallable() { + return createOdbSubnetCallable; + } + + @Override + public OperationCallable + createOdbSubnetOperationCallable() { + return createOdbSubnetOperationCallable; + } + + @Override + public UnaryCallable deleteOdbSubnetCallable() { + return deleteOdbSubnetCallable; + } + + @Override + public OperationCallable + deleteOdbSubnetOperationCallable() { + return deleteOdbSubnetOperationCallable; + } + + @Override + public UnaryCallable + listExadbVmClustersCallable() { + return listExadbVmClustersCallable; + } + + @Override + public UnaryCallable + listExadbVmClustersPagedCallable() { + return listExadbVmClustersPagedCallable; + } + + @Override + public UnaryCallable getExadbVmClusterCallable() { + return getExadbVmClusterCallable; + } + + @Override + public UnaryCallable createExadbVmClusterCallable() { + return createExadbVmClusterCallable; + } + + @Override + public OperationCallable + createExadbVmClusterOperationCallable() { + return createExadbVmClusterOperationCallable; + } + + @Override + public UnaryCallable deleteExadbVmClusterCallable() { + return deleteExadbVmClusterCallable; + } + + @Override + public OperationCallable + deleteExadbVmClusterOperationCallable() { + return deleteExadbVmClusterOperationCallable; + } + + @Override + public UnaryCallable updateExadbVmClusterCallable() { + return updateExadbVmClusterCallable; + } + + @Override + public OperationCallable + updateExadbVmClusterOperationCallable() { + return updateExadbVmClusterOperationCallable; + } + + @Override + public UnaryCallable + removeVirtualMachineExadbVmClusterCallable() { + return removeVirtualMachineExadbVmClusterCallable; + } + + @Override + public OperationCallable< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationCallable() { + return removeVirtualMachineExadbVmClusterOperationCallable; + } + + @Override + public UnaryCallable + listExascaleDbStorageVaultsCallable() { + return listExascaleDbStorageVaultsCallable; + } + + @Override + public UnaryCallable + listExascaleDbStorageVaultsPagedCallable() { + return listExascaleDbStorageVaultsPagedCallable; + } + + @Override + public UnaryCallable + getExascaleDbStorageVaultCallable() { + return getExascaleDbStorageVaultCallable; + } + + @Override + public UnaryCallable + createExascaleDbStorageVaultCallable() { + return createExascaleDbStorageVaultCallable; + } + + @Override + public OperationCallable< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationCallable() { + return createExascaleDbStorageVaultOperationCallable; + } + + @Override + public UnaryCallable + deleteExascaleDbStorageVaultCallable() { + return deleteExascaleDbStorageVaultCallable; + } + + @Override + public OperationCallable + deleteExascaleDbStorageVaultOperationCallable() { + return deleteExascaleDbStorageVaultOperationCallable; + } + + @Override + public UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesCallable() { + return listDbSystemInitialStorageSizesCallable; + } + + @Override + public UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesPagedCallable() { + return listDbSystemInitialStorageSizesPagedCallable; + } + + @Override + public UnaryCallable listDatabasesCallable() { + return listDatabasesCallable; + } + + @Override + public UnaryCallable + listDatabasesPagedCallable() { + return listDatabasesPagedCallable; + } + + @Override + public UnaryCallable getDatabaseCallable() { + return getDatabaseCallable; + } + + @Override + public UnaryCallable + listPluggableDatabasesCallable() { + return listPluggableDatabasesCallable; + } + + @Override + public UnaryCallable + listPluggableDatabasesPagedCallable() { + return listPluggableDatabasesPagedCallable; + } + + @Override + public UnaryCallable + getPluggableDatabaseCallable() { + return getPluggableDatabaseCallable; + } + + @Override + public UnaryCallable listDbSystemsCallable() { + return listDbSystemsCallable; + } + + @Override + public UnaryCallable + listDbSystemsPagedCallable() { + return listDbSystemsPagedCallable; + } + + @Override + public UnaryCallable getDbSystemCallable() { + return getDbSystemCallable; + } + + @Override + public UnaryCallable createDbSystemCallable() { + return createDbSystemCallable; + } + + @Override + public OperationCallable + createDbSystemOperationCallable() { + return createDbSystemOperationCallable; + } + + @Override + public UnaryCallable deleteDbSystemCallable() { + return deleteDbSystemCallable; + } + + @Override + public OperationCallable + deleteDbSystemOperationCallable() { + return deleteDbSystemOperationCallable; + } + + @Override + public UnaryCallable listDbVersionsCallable() { + return listDbVersionsCallable; + } + + @Override + public UnaryCallable + listDbVersionsPagedCallable() { + return listDbVersionsPagedCallable; + } + + @Override + public UnaryCallable + listDatabaseCharacterSetsCallable() { + return listDatabaseCharacterSetsCallable; + } + + @Override + public UnaryCallable + listDatabaseCharacterSetsPagedCallable() { + return listDatabaseCharacterSetsPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java index 823458ac7884..ae4d1dd549f6 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java @@ -22,12 +22,23 @@ import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabasesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExadbVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListMinorVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbNetworksPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbSubnetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListPluggableDatabasesPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; @@ -42,14 +53,36 @@ import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.CreateDbSystemRequest; +import com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.DbSystem; import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest; +import com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest; import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; import com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GetDatabaseRequest; +import com.google.cloud.oracledatabase.v1.GetDbSystemRequest; +import com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; @@ -62,21 +95,50 @@ import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse; import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; import com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse; +import com.google.cloud.oracledatabase.v1.ListDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListDatabasesResponse; import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; import com.google.cloud.oracledatabase.v1.ListDbNodesResponse; import com.google.cloud.oracledatabase.v1.ListDbServersRequest; import com.google.cloud.oracledatabase.v1.ListDbServersResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse; import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; import com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemsRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemsResponse; +import com.google.cloud.oracledatabase.v1.ListDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListDbVersionsResponse; import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; import com.google.cloud.oracledatabase.v1.ListEntitlementsResponse; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse; import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; import com.google.cloud.oracledatabase.v1.ListGiVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OdbSubnet; import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; +import com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest; import com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -214,6 +276,16 @@ public UnaryCallable listGiVersio throw new UnsupportedOperationException("Not implemented: listGiVersionsCallable()"); } + public UnaryCallable + listMinorVersionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listMinorVersionsPagedCallable()"); + } + + public UnaryCallable + listMinorVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: listMinorVersionsCallable()"); + } + public UnaryCallable listDbSystemShapesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listDbSystemShapesPagedCallable()"); @@ -251,6 +323,17 @@ public UnaryCallable listGiVersio throw new UnsupportedOperationException("Not implemented: createAutonomousDatabaseCallable()"); } + public OperationCallable + updateAutonomousDatabaseOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAutonomousDatabaseOperationCallable()"); + } + + public UnaryCallable + updateAutonomousDatabaseCallable() { + throw new UnsupportedOperationException("Not implemented: updateAutonomousDatabaseCallable()"); + } + public OperationCallable deleteAutonomousDatabaseOperationCallable() { throw new UnsupportedOperationException( @@ -351,6 +434,286 @@ public UnaryCallable stopAutonomousDat throw new UnsupportedOperationException("Not implemented: restartAutonomousDatabaseCallable()"); } + public OperationCallable< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: switchoverAutonomousDatabaseOperationCallable()"); + } + + public UnaryCallable + switchoverAutonomousDatabaseCallable() { + throw new UnsupportedOperationException( + "Not implemented: switchoverAutonomousDatabaseCallable()"); + } + + public OperationCallable + failoverAutonomousDatabaseOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: failoverAutonomousDatabaseOperationCallable()"); + } + + public UnaryCallable + failoverAutonomousDatabaseCallable() { + throw new UnsupportedOperationException( + "Not implemented: failoverAutonomousDatabaseCallable()"); + } + + public UnaryCallable + listOdbNetworksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listOdbNetworksPagedCallable()"); + } + + public UnaryCallable listOdbNetworksCallable() { + throw new UnsupportedOperationException("Not implemented: listOdbNetworksCallable()"); + } + + public UnaryCallable getOdbNetworkCallable() { + throw new UnsupportedOperationException("Not implemented: getOdbNetworkCallable()"); + } + + public OperationCallable + createOdbNetworkOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createOdbNetworkOperationCallable()"); + } + + public UnaryCallable createOdbNetworkCallable() { + throw new UnsupportedOperationException("Not implemented: createOdbNetworkCallable()"); + } + + public OperationCallable + deleteOdbNetworkOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOdbNetworkOperationCallable()"); + } + + public UnaryCallable deleteOdbNetworkCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOdbNetworkCallable()"); + } + + public UnaryCallable + listOdbSubnetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listOdbSubnetsPagedCallable()"); + } + + public UnaryCallable listOdbSubnetsCallable() { + throw new UnsupportedOperationException("Not implemented: listOdbSubnetsCallable()"); + } + + public UnaryCallable getOdbSubnetCallable() { + throw new UnsupportedOperationException("Not implemented: getOdbSubnetCallable()"); + } + + public OperationCallable + createOdbSubnetOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createOdbSubnetOperationCallable()"); + } + + public UnaryCallable createOdbSubnetCallable() { + throw new UnsupportedOperationException("Not implemented: createOdbSubnetCallable()"); + } + + public OperationCallable + deleteOdbSubnetOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOdbSubnetOperationCallable()"); + } + + public UnaryCallable deleteOdbSubnetCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOdbSubnetCallable()"); + } + + public UnaryCallable + listExadbVmClustersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listExadbVmClustersPagedCallable()"); + } + + public UnaryCallable + listExadbVmClustersCallable() { + throw new UnsupportedOperationException("Not implemented: listExadbVmClustersCallable()"); + } + + public UnaryCallable getExadbVmClusterCallable() { + throw new UnsupportedOperationException("Not implemented: getExadbVmClusterCallable()"); + } + + public OperationCallable + createExadbVmClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createExadbVmClusterOperationCallable()"); + } + + public UnaryCallable createExadbVmClusterCallable() { + throw new UnsupportedOperationException("Not implemented: createExadbVmClusterCallable()"); + } + + public OperationCallable + deleteExadbVmClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteExadbVmClusterOperationCallable()"); + } + + public UnaryCallable deleteExadbVmClusterCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExadbVmClusterCallable()"); + } + + public OperationCallable + updateExadbVmClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateExadbVmClusterOperationCallable()"); + } + + public UnaryCallable updateExadbVmClusterCallable() { + throw new UnsupportedOperationException("Not implemented: updateExadbVmClusterCallable()"); + } + + public OperationCallable< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: removeVirtualMachineExadbVmClusterOperationCallable()"); + } + + public UnaryCallable + removeVirtualMachineExadbVmClusterCallable() { + throw new UnsupportedOperationException( + "Not implemented: removeVirtualMachineExadbVmClusterCallable()"); + } + + public UnaryCallable + listExascaleDbStorageVaultsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listExascaleDbStorageVaultsPagedCallable()"); + } + + public UnaryCallable + listExascaleDbStorageVaultsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listExascaleDbStorageVaultsCallable()"); + } + + public UnaryCallable + getExascaleDbStorageVaultCallable() { + throw new UnsupportedOperationException("Not implemented: getExascaleDbStorageVaultCallable()"); + } + + public OperationCallable< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createExascaleDbStorageVaultOperationCallable()"); + } + + public UnaryCallable + createExascaleDbStorageVaultCallable() { + throw new UnsupportedOperationException( + "Not implemented: createExascaleDbStorageVaultCallable()"); + } + + public OperationCallable + deleteExascaleDbStorageVaultOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteExascaleDbStorageVaultOperationCallable()"); + } + + public UnaryCallable + deleteExascaleDbStorageVaultCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteExascaleDbStorageVaultCallable()"); + } + + public UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDbSystemInitialStorageSizesPagedCallable()"); + } + + public UnaryCallable< + ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDbSystemInitialStorageSizesCallable()"); + } + + public UnaryCallable + listDatabasesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDatabasesPagedCallable()"); + } + + public UnaryCallable listDatabasesCallable() { + throw new UnsupportedOperationException("Not implemented: listDatabasesCallable()"); + } + + public UnaryCallable getDatabaseCallable() { + throw new UnsupportedOperationException("Not implemented: getDatabaseCallable()"); + } + + public UnaryCallable + listPluggableDatabasesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listPluggableDatabasesPagedCallable()"); + } + + public UnaryCallable + listPluggableDatabasesCallable() { + throw new UnsupportedOperationException("Not implemented: listPluggableDatabasesCallable()"); + } + + public UnaryCallable + getPluggableDatabaseCallable() { + throw new UnsupportedOperationException("Not implemented: getPluggableDatabaseCallable()"); + } + + public UnaryCallable + listDbSystemsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDbSystemsPagedCallable()"); + } + + public UnaryCallable listDbSystemsCallable() { + throw new UnsupportedOperationException("Not implemented: listDbSystemsCallable()"); + } + + public UnaryCallable getDbSystemCallable() { + throw new UnsupportedOperationException("Not implemented: getDbSystemCallable()"); + } + + public OperationCallable + createDbSystemOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createDbSystemOperationCallable()"); + } + + public UnaryCallable createDbSystemCallable() { + throw new UnsupportedOperationException("Not implemented: createDbSystemCallable()"); + } + + public OperationCallable + deleteDbSystemOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDbSystemOperationCallable()"); + } + + public UnaryCallable deleteDbSystemCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDbSystemCallable()"); + } + + public UnaryCallable + listDbVersionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDbVersionsPagedCallable()"); + } + + public UnaryCallable listDbVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: listDbVersionsCallable()"); + } + + public UnaryCallable + listDatabaseCharacterSetsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDatabaseCharacterSetsPagedCallable()"); + } + + public UnaryCallable + listDatabaseCharacterSetsCallable() { + throw new UnsupportedOperationException("Not implemented: listDatabaseCharacterSetsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java index 7f4c96004628..1216ae26bc62 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java @@ -22,12 +22,23 @@ import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabasesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExadbVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListMinorVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbNetworksPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbSubnetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListPluggableDatabasesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -72,18 +83,43 @@ import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.CreateDbSystemRequest; +import com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.DatabaseCharacterSet; import com.google.cloud.oracledatabase.v1.DbNode; import com.google.cloud.oracledatabase.v1.DbServer; +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize; import com.google.cloud.oracledatabase.v1.DbSystemShape; +import com.google.cloud.oracledatabase.v1.DbVersion; import com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest; +import com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest; import com.google.cloud.oracledatabase.v1.Entitlement; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest; import com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse; import com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GetDatabaseRequest; +import com.google.cloud.oracledatabase.v1.GetDbSystemRequest; +import com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; import com.google.cloud.oracledatabase.v1.GiVersion; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; @@ -97,21 +133,51 @@ import com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse; import com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest; import com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse; +import com.google.cloud.oracledatabase.v1.ListDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListDatabasesResponse; import com.google.cloud.oracledatabase.v1.ListDbNodesRequest; import com.google.cloud.oracledatabase.v1.ListDbNodesResponse; import com.google.cloud.oracledatabase.v1.ListDbServersRequest; import com.google.cloud.oracledatabase.v1.ListDbServersResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse; import com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest; import com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse; +import com.google.cloud.oracledatabase.v1.ListDbSystemsRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemsResponse; +import com.google.cloud.oracledatabase.v1.ListDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListDbVersionsResponse; import com.google.cloud.oracledatabase.v1.ListEntitlementsRequest; import com.google.cloud.oracledatabase.v1.ListEntitlementsResponse; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse; import com.google.cloud.oracledatabase.v1.ListGiVersionsRequest; import com.google.cloud.oracledatabase.v1.ListGiVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse; +import com.google.cloud.oracledatabase.v1.MinorVersion; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OdbSubnet; import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; +import com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest; import com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -248,6 +314,9 @@ public class OracleDatabaseStubSettings extends StubSettings listGiVersionsSettings; + private final PagedCallSettings< + ListMinorVersionsRequest, ListMinorVersionsResponse, ListMinorVersionsPagedResponse> + listMinorVersionsSettings; private final PagedCallSettings< ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> listDbSystemShapesSettings; @@ -263,6 +332,11 @@ public class OracleDatabaseStubSettings extends StubSettings createAutonomousDatabaseOperationSettings; + private final UnaryCallSettings + updateAutonomousDatabaseSettings; + private final OperationCallSettings< + UpdateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + updateAutonomousDatabaseOperationSettings; private final UnaryCallSettings deleteAutonomousDatabaseSettings; private final OperationCallSettings @@ -305,6 +379,110 @@ public class OracleDatabaseStubSettings extends StubSettings restartAutonomousDatabaseOperationSettings; + private final UnaryCallSettings + switchoverAutonomousDatabaseSettings; + private final OperationCallSettings< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationSettings; + private final UnaryCallSettings + failoverAutonomousDatabaseSettings; + private final OperationCallSettings< + FailoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + failoverAutonomousDatabaseOperationSettings; + private final PagedCallSettings< + ListOdbNetworksRequest, ListOdbNetworksResponse, ListOdbNetworksPagedResponse> + listOdbNetworksSettings; + private final UnaryCallSettings getOdbNetworkSettings; + private final UnaryCallSettings createOdbNetworkSettings; + private final OperationCallSettings + createOdbNetworkOperationSettings; + private final UnaryCallSettings deleteOdbNetworkSettings; + private final OperationCallSettings + deleteOdbNetworkOperationSettings; + private final PagedCallSettings< + ListOdbSubnetsRequest, ListOdbSubnetsResponse, ListOdbSubnetsPagedResponse> + listOdbSubnetsSettings; + private final UnaryCallSettings getOdbSubnetSettings; + private final UnaryCallSettings createOdbSubnetSettings; + private final OperationCallSettings + createOdbSubnetOperationSettings; + private final UnaryCallSettings deleteOdbSubnetSettings; + private final OperationCallSettings + deleteOdbSubnetOperationSettings; + private final PagedCallSettings< + ListExadbVmClustersRequest, ListExadbVmClustersResponse, ListExadbVmClustersPagedResponse> + listExadbVmClustersSettings; + private final UnaryCallSettings + getExadbVmClusterSettings; + private final UnaryCallSettings + createExadbVmClusterSettings; + private final OperationCallSettings< + CreateExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + createExadbVmClusterOperationSettings; + private final UnaryCallSettings + deleteExadbVmClusterSettings; + private final OperationCallSettings + deleteExadbVmClusterOperationSettings; + private final UnaryCallSettings + updateExadbVmClusterSettings; + private final OperationCallSettings< + UpdateExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + updateExadbVmClusterOperationSettings; + private final UnaryCallSettings + removeVirtualMachineExadbVmClusterSettings; + private final OperationCallSettings< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationSettings; + private final PagedCallSettings< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ListExascaleDbStorageVaultsPagedResponse> + listExascaleDbStorageVaultsSettings; + private final UnaryCallSettings + getExascaleDbStorageVaultSettings; + private final UnaryCallSettings + createExascaleDbStorageVaultSettings; + private final OperationCallSettings< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationSettings; + private final UnaryCallSettings + deleteExascaleDbStorageVaultSettings; + private final OperationCallSettings + deleteExascaleDbStorageVaultOperationSettings; + private final PagedCallSettings< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesSettings; + private final PagedCallSettings< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + listDatabasesSettings; + private final UnaryCallSettings getDatabaseSettings; + private final PagedCallSettings< + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + ListPluggableDatabasesPagedResponse> + listPluggableDatabasesSettings; + private final UnaryCallSettings + getPluggableDatabaseSettings; + private final PagedCallSettings< + ListDbSystemsRequest, ListDbSystemsResponse, ListDbSystemsPagedResponse> + listDbSystemsSettings; + private final UnaryCallSettings getDbSystemSettings; + private final UnaryCallSettings createDbSystemSettings; + private final OperationCallSettings + createDbSystemOperationSettings; + private final UnaryCallSettings deleteDbSystemSettings; + private final OperationCallSettings + deleteDbSystemOperationSettings; + private final PagedCallSettings< + ListDbVersionsRequest, ListDbVersionsResponse, ListDbVersionsPagedResponse> + listDbVersionsSettings; + private final PagedCallSettings< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + ListDatabaseCharacterSetsPagedResponse> + listDatabaseCharacterSetsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -536,6 +714,44 @@ public Iterable extractResources(ListGiVersionsResponse payload) { } }; + private static final PagedListDescriptor< + ListMinorVersionsRequest, ListMinorVersionsResponse, MinorVersion> + LIST_MINOR_VERSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMinorVersionsRequest, ListMinorVersionsResponse, MinorVersion>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMinorVersionsRequest injectToken( + ListMinorVersionsRequest payload, String token) { + return ListMinorVersionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMinorVersionsRequest injectPageSize( + ListMinorVersionsRequest payload, int pageSize) { + return ListMinorVersionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMinorVersionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMinorVersionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListMinorVersionsResponse payload) { + return payload.getMinorVersionsList(); + } + }; + private static final PagedListDescriptor< ListDbSystemShapesRequest, ListDbSystemShapesResponse, DbSystemShape> LIST_DB_SYSTEM_SHAPES_PAGE_STR_DESC = @@ -756,654 +972,1590 @@ public Iterable extractResources( } }; - private static final PagedListDescriptor - LIST_LOCATIONS_PAGE_STR_DESC = - new PagedListDescriptor() { + private static final PagedListDescriptor< + ListOdbNetworksRequest, ListOdbNetworksResponse, OdbNetwork> + LIST_ODB_NETWORKS_PAGE_STR_DESC = + new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override - public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { - return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + public ListOdbNetworksRequest injectToken( + ListOdbNetworksRequest payload, String token) { + return ListOdbNetworksRequest.newBuilder(payload).setPageToken(token).build(); } @Override - public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { - return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + public ListOdbNetworksRequest injectPageSize( + ListOdbNetworksRequest payload, int pageSize) { + return ListOdbNetworksRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override - public Integer extractPageSize(ListLocationsRequest payload) { + public Integer extractPageSize(ListOdbNetworksRequest payload) { return payload.getPageSize(); } @Override - public String extractNextToken(ListLocationsResponse payload) { + public String extractNextToken(ListOdbNetworksResponse payload) { return payload.getNextPageToken(); } @Override - public Iterable extractResources(ListLocationsResponse payload) { - return payload.getLocationsList(); + public Iterable extractResources(ListOdbNetworksResponse payload) { + return payload.getOdbNetworksList(); } }; - private static final PagedListResponseFactory< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - ListCloudExadataInfrastructuresPagedResponse> - LIST_CLOUD_EXADATA_INFRASTRUCTURES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - ListCloudExadataInfrastructuresPagedResponse>() { + private static final PagedListDescriptor + LIST_ODB_SUBNETS_PAGE_STR_DESC = + new PagedListDescriptor() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse> - callable, - ListCloudExadataInfrastructuresRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - CloudExadataInfrastructure> - pageContext = - PageContext.create( - callable, - LIST_CLOUD_EXADATA_INFRASTRUCTURES_PAGE_STR_DESC, - request, - context); - return ListCloudExadataInfrastructuresPagedResponse.createAsync( - pageContext, futureResponse); + public String emptyToken() { + return ""; } - }; - private static final PagedListResponseFactory< - ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> - LIST_CLOUD_VM_CLUSTERS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCloudVmClustersRequest, - ListCloudVmClustersResponse, - ListCloudVmClustersPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListCloudVmClustersRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_CLOUD_VM_CLUSTERS_PAGE_STR_DESC, request, context); - return ListCloudVmClustersPagedResponse.createAsync(pageContext, futureResponse); + public ListOdbSubnetsRequest injectToken(ListOdbSubnetsRequest payload, String token) { + return ListOdbSubnetsRequest.newBuilder(payload).setPageToken(token).build(); } - }; - private static final PagedListResponseFactory< - ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> - LIST_ENTITLEMENTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListEntitlementsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_ENTITLEMENTS_PAGE_STR_DESC, request, context); - return ListEntitlementsPagedResponse.createAsync(pageContext, futureResponse); + public ListOdbSubnetsRequest injectPageSize( + ListOdbSubnetsRequest payload, int pageSize) { + return ListOdbSubnetsRequest.newBuilder(payload).setPageSize(pageSize).build(); } - }; - private static final PagedListResponseFactory< - ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse> - LIST_DB_SERVERS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListDbServersRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_DB_SERVERS_PAGE_STR_DESC, request, context); - return ListDbServersPagedResponse.createAsync(pageContext, futureResponse); + public Integer extractPageSize(ListOdbSubnetsRequest payload) { + return payload.getPageSize(); } - }; - private static final PagedListResponseFactory< - ListDbNodesRequest, ListDbNodesResponse, ListDbNodesPagedResponse> - LIST_DB_NODES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListDbNodesRequest, ListDbNodesResponse, ListDbNodesPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListDbNodesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_DB_NODES_PAGE_STR_DESC, request, context); - return ListDbNodesPagedResponse.createAsync(pageContext, futureResponse); + public String extractNextToken(ListOdbSubnetsResponse payload) { + return payload.getNextPageToken(); } - }; - private static final PagedListResponseFactory< - ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> - LIST_GI_VERSIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListGiVersionsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_GI_VERSIONS_PAGE_STR_DESC, request, context); - return ListGiVersionsPagedResponse.createAsync(pageContext, futureResponse); + public Iterable extractResources(ListOdbSubnetsResponse payload) { + return payload.getOdbSubnetsList(); } }; - private static final PagedListResponseFactory< - ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> - LIST_DB_SYSTEM_SHAPES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListDbSystemShapesRequest, - ListDbSystemShapesResponse, - ListDbSystemShapesPagedResponse>() { + private static final PagedListDescriptor< + ListExadbVmClustersRequest, ListExadbVmClustersResponse, ExadbVmCluster> + LIST_EXADB_VM_CLUSTERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListExadbVmClustersRequest, ListExadbVmClustersResponse, ExadbVmCluster>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListDbSystemShapesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_DB_SYSTEM_SHAPES_PAGE_STR_DESC, request, context); - return ListDbSystemShapesPagedResponse.createAsync(pageContext, futureResponse); + public String emptyToken() { + return ""; } - }; - private static final PagedListResponseFactory< - ListAutonomousDatabasesRequest, - ListAutonomousDatabasesResponse, - ListAutonomousDatabasesPagedResponse> - LIST_AUTONOMOUS_DATABASES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAutonomousDatabasesRequest, - ListAutonomousDatabasesResponse, - ListAutonomousDatabasesPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListAutonomousDatabasesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAutonomousDatabasesRequest, - ListAutonomousDatabasesResponse, - AutonomousDatabase> - pageContext = - PageContext.create( - callable, LIST_AUTONOMOUS_DATABASES_PAGE_STR_DESC, request, context); - return ListAutonomousDatabasesPagedResponse.createAsync(pageContext, futureResponse); + public ListExadbVmClustersRequest injectToken( + ListExadbVmClustersRequest payload, String token) { + return ListExadbVmClustersRequest.newBuilder(payload).setPageToken(token).build(); } - }; - private static final PagedListResponseFactory< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - ListAutonomousDbVersionsPagedResponse> - LIST_AUTONOMOUS_DB_VERSIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - ListAutonomousDbVersionsPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListAutonomousDbVersionsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - AutonomousDbVersion> - pageContext = - PageContext.create( - callable, LIST_AUTONOMOUS_DB_VERSIONS_PAGE_STR_DESC, request, context); - return ListAutonomousDbVersionsPagedResponse.createAsync(pageContext, futureResponse); + public ListExadbVmClustersRequest injectPageSize( + ListExadbVmClustersRequest payload, int pageSize) { + return ListExadbVmClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListExadbVmClustersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExadbVmClustersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListExadbVmClustersResponse payload) { + return payload.getExadbVmClustersList(); } }; - private static final PagedListResponseFactory< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - ListAutonomousDatabaseCharacterSetsPagedResponse> - LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - ListAutonomousDatabaseCharacterSetsPagedResponse>() { + private static final PagedListDescriptor< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault> + LIST_EXASCALE_DB_STORAGE_VAULTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault>() { @Override - public ApiFuture - getFuturePagedResponse( - UnaryCallable< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse> - callable, - ListAutonomousDatabaseCharacterSetsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - AutonomousDatabaseCharacterSet> - pageContext = - PageContext.create( - callable, - LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS_PAGE_STR_DESC, - request, - context); - return ListAutonomousDatabaseCharacterSetsPagedResponse.createAsync( - pageContext, futureResponse); + public String emptyToken() { + return ""; } - }; - private static final PagedListResponseFactory< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - ListAutonomousDatabaseBackupsPagedResponse> - LIST_AUTONOMOUS_DATABASE_BACKUPS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - ListAutonomousDatabaseBackupsPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable< - ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> - callable, - ListAutonomousDatabaseBackupsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - AutonomousDatabaseBackup> - pageContext = - PageContext.create( - callable, - LIST_AUTONOMOUS_DATABASE_BACKUPS_PAGE_STR_DESC, - request, - context); - return ListAutonomousDatabaseBackupsPagedResponse.createAsync( - pageContext, futureResponse); + public ListExascaleDbStorageVaultsRequest injectToken( + ListExascaleDbStorageVaultsRequest payload, String token) { + return ListExascaleDbStorageVaultsRequest.newBuilder(payload) + .setPageToken(token) + .build(); } - }; - private static final PagedListResponseFactory< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - LIST_LOCATIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListLocationsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); - return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + public ListExascaleDbStorageVaultsRequest injectPageSize( + ListExascaleDbStorageVaultsRequest payload, int pageSize) { + return ListExascaleDbStorageVaultsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); } - }; - /** Returns the object with the settings used for calls to listCloudExadataInfrastructures. */ - public PagedCallSettings< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse, - ListCloudExadataInfrastructuresPagedResponse> - listCloudExadataInfrastructuresSettings() { - return listCloudExadataInfrastructuresSettings; - } + @Override + public Integer extractPageSize(ListExascaleDbStorageVaultsRequest payload) { + return payload.getPageSize(); + } - /** Returns the object with the settings used for calls to getCloudExadataInfrastructure. */ - public UnaryCallSettings - getCloudExadataInfrastructureSettings() { - return getCloudExadataInfrastructureSettings; - } + @Override + public String extractNextToken(ListExascaleDbStorageVaultsResponse payload) { + return payload.getNextPageToken(); + } - /** Returns the object with the settings used for calls to createCloudExadataInfrastructure. */ - public UnaryCallSettings - createCloudExadataInfrastructureSettings() { - return createCloudExadataInfrastructureSettings; - } + @Override + public Iterable extractResources( + ListExascaleDbStorageVaultsResponse payload) { + return payload.getExascaleDbStorageVaultsList(); + } + }; - /** Returns the object with the settings used for calls to createCloudExadataInfrastructure. */ - public OperationCallSettings< - CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> - createCloudExadataInfrastructureOperationSettings() { - return createCloudExadataInfrastructureOperationSettings; - } + private static final PagedListDescriptor< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize> + LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES_PAGE_STR_DESC = + new PagedListDescriptor< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize>() { + @Override + public String emptyToken() { + return ""; + } - /** Returns the object with the settings used for calls to deleteCloudExadataInfrastructure. */ - public UnaryCallSettings - deleteCloudExadataInfrastructureSettings() { - return deleteCloudExadataInfrastructureSettings; - } + @Override + public ListDbSystemInitialStorageSizesRequest injectToken( + ListDbSystemInitialStorageSizesRequest payload, String token) { + return ListDbSystemInitialStorageSizesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } - /** Returns the object with the settings used for calls to deleteCloudExadataInfrastructure. */ - public OperationCallSettings - deleteCloudExadataInfrastructureOperationSettings() { - return deleteCloudExadataInfrastructureOperationSettings; - } + @Override + public ListDbSystemInitialStorageSizesRequest injectPageSize( + ListDbSystemInitialStorageSizesRequest payload, int pageSize) { + return ListDbSystemInitialStorageSizesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } - /** Returns the object with the settings used for calls to listCloudVmClusters. */ - public PagedCallSettings< - ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> - listCloudVmClustersSettings() { - return listCloudVmClustersSettings; - } + @Override + public Integer extractPageSize(ListDbSystemInitialStorageSizesRequest payload) { + return payload.getPageSize(); + } - /** Returns the object with the settings used for calls to getCloudVmCluster. */ - public UnaryCallSettings getCloudVmClusterSettings() { - return getCloudVmClusterSettings; - } + @Override + public String extractNextToken(ListDbSystemInitialStorageSizesResponse payload) { + return payload.getNextPageToken(); + } - /** Returns the object with the settings used for calls to createCloudVmCluster. */ - public UnaryCallSettings createCloudVmClusterSettings() { - return createCloudVmClusterSettings; - } + @Override + public Iterable extractResources( + ListDbSystemInitialStorageSizesResponse payload) { + return payload.getDbSystemInitialStorageSizesList(); + } + }; - /** Returns the object with the settings used for calls to createCloudVmCluster. */ - public OperationCallSettings - createCloudVmClusterOperationSettings() { - return createCloudVmClusterOperationSettings; - } + private static final PagedListDescriptor + LIST_DATABASES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } - /** Returns the object with the settings used for calls to deleteCloudVmCluster. */ - public UnaryCallSettings deleteCloudVmClusterSettings() { - return deleteCloudVmClusterSettings; - } + @Override + public ListDatabasesRequest injectToken(ListDatabasesRequest payload, String token) { + return ListDatabasesRequest.newBuilder(payload).setPageToken(token).build(); + } - /** Returns the object with the settings used for calls to deleteCloudVmCluster. */ - public OperationCallSettings - deleteCloudVmClusterOperationSettings() { - return deleteCloudVmClusterOperationSettings; - } + @Override + public ListDatabasesRequest injectPageSize(ListDatabasesRequest payload, int pageSize) { + return ListDatabasesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } - /** Returns the object with the settings used for calls to listEntitlements. */ - public PagedCallSettings< - ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> - listEntitlementsSettings() { - return listEntitlementsSettings; - } + @Override + public Integer extractPageSize(ListDatabasesRequest payload) { + return payload.getPageSize(); + } - /** Returns the object with the settings used for calls to listDbServers. */ - public PagedCallSettings - listDbServersSettings() { - return listDbServersSettings; - } + @Override + public String extractNextToken(ListDatabasesResponse payload) { + return payload.getNextPageToken(); + } - /** Returns the object with the settings used for calls to listDbNodes. */ - public PagedCallSettings - listDbNodesSettings() { - return listDbNodesSettings; - } + @Override + public Iterable extractResources(ListDatabasesResponse payload) { + return payload.getDatabasesList(); + } + }; - /** Returns the object with the settings used for calls to listGiVersions. */ - public PagedCallSettings< - ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> - listGiVersionsSettings() { - return listGiVersionsSettings; - } + private static final PagedListDescriptor< + ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, PluggableDatabase> + LIST_PLUGGABLE_DATABASES_PAGE_STR_DESC = + new PagedListDescriptor< + ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, PluggableDatabase>() { + @Override + public String emptyToken() { + return ""; + } - /** Returns the object with the settings used for calls to listDbSystemShapes. */ - public PagedCallSettings< - ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> - listDbSystemShapesSettings() { - return listDbSystemShapesSettings; - } + @Override + public ListPluggableDatabasesRequest injectToken( + ListPluggableDatabasesRequest payload, String token) { + return ListPluggableDatabasesRequest.newBuilder(payload).setPageToken(token).build(); + } - /** Returns the object with the settings used for calls to listAutonomousDatabases. */ - public PagedCallSettings< - ListAutonomousDatabasesRequest, - ListAutonomousDatabasesResponse, - ListAutonomousDatabasesPagedResponse> - listAutonomousDatabasesSettings() { - return listAutonomousDatabasesSettings; - } + @Override + public ListPluggableDatabasesRequest injectPageSize( + ListPluggableDatabasesRequest payload, int pageSize) { + return ListPluggableDatabasesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } - /** Returns the object with the settings used for calls to getAutonomousDatabase. */ - public UnaryCallSettings - getAutonomousDatabaseSettings() { - return getAutonomousDatabaseSettings; - } + @Override + public Integer extractPageSize(ListPluggableDatabasesRequest payload) { + return payload.getPageSize(); + } - /** Returns the object with the settings used for calls to createAutonomousDatabase. */ - public UnaryCallSettings - createAutonomousDatabaseSettings() { - return createAutonomousDatabaseSettings; - } + @Override + public String extractNextToken(ListPluggableDatabasesResponse payload) { + return payload.getNextPageToken(); + } - /** Returns the object with the settings used for calls to createAutonomousDatabase. */ - public OperationCallSettings< - CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - createAutonomousDatabaseOperationSettings() { - return createAutonomousDatabaseOperationSettings; - } + @Override + public Iterable extractResources( + ListPluggableDatabasesResponse payload) { + return payload.getPluggableDatabasesList(); + } + }; - /** Returns the object with the settings used for calls to deleteAutonomousDatabase. */ - public UnaryCallSettings - deleteAutonomousDatabaseSettings() { - return deleteAutonomousDatabaseSettings; - } - - /** Returns the object with the settings used for calls to deleteAutonomousDatabase. */ - public OperationCallSettings - deleteAutonomousDatabaseOperationSettings() { - return deleteAutonomousDatabaseOperationSettings; - } - - /** Returns the object with the settings used for calls to restoreAutonomousDatabase. */ - public UnaryCallSettings - restoreAutonomousDatabaseSettings() { - return restoreAutonomousDatabaseSettings; - } - - /** Returns the object with the settings used for calls to restoreAutonomousDatabase. */ - public OperationCallSettings< - RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - restoreAutonomousDatabaseOperationSettings() { - return restoreAutonomousDatabaseOperationSettings; - } - - /** Returns the object with the settings used for calls to generateAutonomousDatabaseWallet. */ - public UnaryCallSettings< - GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> - generateAutonomousDatabaseWalletSettings() { - return generateAutonomousDatabaseWalletSettings; - } - - /** Returns the object with the settings used for calls to listAutonomousDbVersions. */ - public PagedCallSettings< - ListAutonomousDbVersionsRequest, - ListAutonomousDbVersionsResponse, - ListAutonomousDbVersionsPagedResponse> - listAutonomousDbVersionsSettings() { - return listAutonomousDbVersionsSettings; - } + private static final PagedListDescriptor + LIST_DB_SYSTEMS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } - /** Returns the object with the settings used for calls to listAutonomousDatabaseCharacterSets. */ - public PagedCallSettings< - ListAutonomousDatabaseCharacterSetsRequest, - ListAutonomousDatabaseCharacterSetsResponse, - ListAutonomousDatabaseCharacterSetsPagedResponse> - listAutonomousDatabaseCharacterSetsSettings() { - return listAutonomousDatabaseCharacterSetsSettings; - } + @Override + public ListDbSystemsRequest injectToken(ListDbSystemsRequest payload, String token) { + return ListDbSystemsRequest.newBuilder(payload).setPageToken(token).build(); + } - /** Returns the object with the settings used for calls to listAutonomousDatabaseBackups. */ - public PagedCallSettings< - ListAutonomousDatabaseBackupsRequest, - ListAutonomousDatabaseBackupsResponse, - ListAutonomousDatabaseBackupsPagedResponse> - listAutonomousDatabaseBackupsSettings() { - return listAutonomousDatabaseBackupsSettings; - } + @Override + public ListDbSystemsRequest injectPageSize(ListDbSystemsRequest payload, int pageSize) { + return ListDbSystemsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } - /** Returns the object with the settings used for calls to stopAutonomousDatabase. */ - public UnaryCallSettings - stopAutonomousDatabaseSettings() { - return stopAutonomousDatabaseSettings; - } + @Override + public Integer extractPageSize(ListDbSystemsRequest payload) { + return payload.getPageSize(); + } - /** Returns the object with the settings used for calls to stopAutonomousDatabase. */ - public OperationCallSettings - stopAutonomousDatabaseOperationSettings() { - return stopAutonomousDatabaseOperationSettings; - } + @Override + public String extractNextToken(ListDbSystemsResponse payload) { + return payload.getNextPageToken(); + } - /** Returns the object with the settings used for calls to startAutonomousDatabase. */ - public UnaryCallSettings - startAutonomousDatabaseSettings() { - return startAutonomousDatabaseSettings; - } + @Override + public Iterable extractResources(ListDbSystemsResponse payload) { + return payload.getDbSystemsList(); + } + }; - /** Returns the object with the settings used for calls to startAutonomousDatabase. */ - public OperationCallSettings< - StartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - startAutonomousDatabaseOperationSettings() { - return startAutonomousDatabaseOperationSettings; - } + private static final PagedListDescriptor + LIST_DB_VERSIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } - /** Returns the object with the settings used for calls to restartAutonomousDatabase. */ - public UnaryCallSettings - restartAutonomousDatabaseSettings() { - return restartAutonomousDatabaseSettings; - } + @Override + public ListDbVersionsRequest injectToken(ListDbVersionsRequest payload, String token) { + return ListDbVersionsRequest.newBuilder(payload).setPageToken(token).build(); + } - /** Returns the object with the settings used for calls to restartAutonomousDatabase. */ - public OperationCallSettings< - RestartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - restartAutonomousDatabaseOperationSettings() { - return restartAutonomousDatabaseOperationSettings; - } + @Override + public ListDbVersionsRequest injectPageSize( + ListDbVersionsRequest payload, int pageSize) { + return ListDbVersionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return listLocationsSettings; - } + @Override + public Integer extractPageSize(ListDbVersionsRequest payload) { + return payload.getPageSize(); + } - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return getLocationSettings; - } + @Override + public String extractNextToken(ListDbVersionsResponse payload) { + return payload.getNextPageToken(); + } - public OracleDatabaseStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcOracleDatabaseStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonOracleDatabaseStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } + @Override + public Iterable extractResources(ListDbVersionsResponse payload) { + return payload.getDbVersionsList(); + } + }; - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "oracledatabase"; - } + private static final PagedListDescriptor< + ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsResponse, DatabaseCharacterSet> + LIST_DATABASE_CHARACTER_SETS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + DatabaseCharacterSet>() { + @Override + public String emptyToken() { + return ""; + } - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } + @Override + public ListDatabaseCharacterSetsRequest injectToken( + ListDatabaseCharacterSetsRequest payload, String token) { + return ListDatabaseCharacterSetsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } - /** Returns the default service endpoint. */ - @ObsoleteApi("Use getEndpoint() instead") - public static String getDefaultEndpoint() { - return "oracledatabase.googleapis.com:443"; - } + @Override + public ListDatabaseCharacterSetsRequest injectPageSize( + ListDatabaseCharacterSetsRequest payload, int pageSize) { + return ListDatabaseCharacterSetsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "oracledatabase.mtls.googleapis.com:443"; - } + @Override + public Integer extractPageSize(ListDatabaseCharacterSetsRequest payload) { + return payload.getPageSize(); + } - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } + @Override + public String extractNextToken(ListDatabaseCharacterSetsResponse payload) { + return payload.getNextPageToken(); + } - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } + @Override + public Iterable extractResources( + ListDatabaseCharacterSetsResponse payload) { + return payload.getDatabaseCharacterSetsList(); + } + }; - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(OracleDatabaseStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(OracleDatabaseStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return OracleDatabaseStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; - /** Returns a new gRPC builder for this class. */ + private static final PagedListResponseFactory< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse> + LIST_CLOUD_EXADATA_INFRASTRUCTURES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse> + callable, + ListCloudExadataInfrastructuresRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + CloudExadataInfrastructure> + pageContext = + PageContext.create( + callable, + LIST_CLOUD_EXADATA_INFRASTRUCTURES_PAGE_STR_DESC, + request, + context); + return ListCloudExadataInfrastructuresPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> + LIST_CLOUD_VM_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCloudVmClustersRequest, + ListCloudVmClustersResponse, + ListCloudVmClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCloudVmClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CLOUD_VM_CLUSTERS_PAGE_STR_DESC, request, context); + return ListCloudVmClustersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> + LIST_ENTITLEMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEntitlementsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ENTITLEMENTS_PAGE_STR_DESC, request, context); + return ListEntitlementsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse> + LIST_DB_SERVERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDbServersRequest, ListDbServersResponse, ListDbServersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDbServersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DB_SERVERS_PAGE_STR_DESC, request, context); + return ListDbServersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDbNodesRequest, ListDbNodesResponse, ListDbNodesPagedResponse> + LIST_DB_NODES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDbNodesRequest, ListDbNodesResponse, ListDbNodesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDbNodesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DB_NODES_PAGE_STR_DESC, request, context); + return ListDbNodesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> + LIST_GI_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGiVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GI_VERSIONS_PAGE_STR_DESC, request, context); + return ListGiVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMinorVersionsRequest, ListMinorVersionsResponse, ListMinorVersionsPagedResponse> + LIST_MINOR_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMinorVersionsRequest, + ListMinorVersionsResponse, + ListMinorVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMinorVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_MINOR_VERSIONS_PAGE_STR_DESC, request, context); + return ListMinorVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> + LIST_DB_SYSTEM_SHAPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDbSystemShapesRequest, + ListDbSystemShapesResponse, + ListDbSystemShapesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDbSystemShapesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_DB_SYSTEM_SHAPES_PAGE_STR_DESC, request, context); + return ListDbSystemShapesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse> + LIST_AUTONOMOUS_DATABASES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAutonomousDatabasesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + AutonomousDatabase> + pageContext = + PageContext.create( + callable, LIST_AUTONOMOUS_DATABASES_PAGE_STR_DESC, request, context); + return ListAutonomousDatabasesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse> + LIST_AUTONOMOUS_DB_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAutonomousDbVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + AutonomousDbVersion> + pageContext = + PageContext.create( + callable, LIST_AUTONOMOUS_DB_VERSIONS_PAGE_STR_DESC, request, context); + return ListAutonomousDbVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse> + LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse> + callable, + ListAutonomousDatabaseCharacterSetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + AutonomousDatabaseCharacterSet> + pageContext = + PageContext.create( + callable, + LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS_PAGE_STR_DESC, + request, + context); + return ListAutonomousDatabaseCharacterSetsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse> + LIST_AUTONOMOUS_DATABASE_BACKUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse> + callable, + ListAutonomousDatabaseBackupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + AutonomousDatabaseBackup> + pageContext = + PageContext.create( + callable, + LIST_AUTONOMOUS_DATABASE_BACKUPS_PAGE_STR_DESC, + request, + context); + return ListAutonomousDatabaseBackupsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListOdbNetworksRequest, ListOdbNetworksResponse, ListOdbNetworksPagedResponse> + LIST_ODB_NETWORKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOdbNetworksRequest, ListOdbNetworksResponse, ListOdbNetworksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListOdbNetworksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ODB_NETWORKS_PAGE_STR_DESC, request, context); + return ListOdbNetworksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListOdbSubnetsRequest, ListOdbSubnetsResponse, ListOdbSubnetsPagedResponse> + LIST_ODB_SUBNETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOdbSubnetsRequest, ListOdbSubnetsResponse, ListOdbSubnetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListOdbSubnetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ODB_SUBNETS_PAGE_STR_DESC, request, context); + return ListOdbSubnetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListExadbVmClustersRequest, ListExadbVmClustersResponse, ListExadbVmClustersPagedResponse> + LIST_EXADB_VM_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExadbVmClustersRequest, + ListExadbVmClustersResponse, + ListExadbVmClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListExadbVmClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_EXADB_VM_CLUSTERS_PAGE_STR_DESC, request, context); + return ListExadbVmClustersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ListExascaleDbStorageVaultsPagedResponse> + LIST_EXASCALE_DB_STORAGE_VAULTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ListExascaleDbStorageVaultsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse> + callable, + ListExascaleDbStorageVaultsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ExascaleDbStorageVault> + pageContext = + PageContext.create( + callable, + LIST_EXASCALE_DB_STORAGE_VAULTS_PAGE_STR_DESC, + request, + context); + return ListExascaleDbStorageVaultsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + ListDbSystemInitialStorageSizesPagedResponse> + LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + ListDbSystemInitialStorageSizesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse> + callable, + ListDbSystemInitialStorageSizesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + DbSystemInitialStorageSize> + pageContext = + PageContext.create( + callable, + LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES_PAGE_STR_DESC, + request, + context); + return ListDbSystemInitialStorageSizesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + LIST_DATABASES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDatabasesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DATABASES_PAGE_STR_DESC, request, context); + return ListDatabasesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + ListPluggableDatabasesPagedResponse> + LIST_PLUGGABLE_DATABASES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + ListPluggableDatabasesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListPluggableDatabasesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + PluggableDatabase> + pageContext = + PageContext.create( + callable, LIST_PLUGGABLE_DATABASES_PAGE_STR_DESC, request, context); + return ListPluggableDatabasesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDbSystemsRequest, ListDbSystemsResponse, ListDbSystemsPagedResponse> + LIST_DB_SYSTEMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDbSystemsRequest, ListDbSystemsResponse, ListDbSystemsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDbSystemsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DB_SYSTEMS_PAGE_STR_DESC, request, context); + return ListDbSystemsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDbVersionsRequest, ListDbVersionsResponse, ListDbVersionsPagedResponse> + LIST_DB_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDbVersionsRequest, ListDbVersionsResponse, ListDbVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDbVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DB_VERSIONS_PAGE_STR_DESC, request, context); + return ListDbVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + ListDatabaseCharacterSetsPagedResponse> + LIST_DATABASE_CHARACTER_SETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + ListDatabaseCharacterSetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListDatabaseCharacterSetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + DatabaseCharacterSet> + pageContext = + PageContext.create( + callable, LIST_DATABASE_CHARACTER_SETS_PAGE_STR_DESC, request, context); + return ListDatabaseCharacterSetsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listCloudExadataInfrastructures. */ + public PagedCallSettings< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse, + ListCloudExadataInfrastructuresPagedResponse> + listCloudExadataInfrastructuresSettings() { + return listCloudExadataInfrastructuresSettings; + } + + /** Returns the object with the settings used for calls to getCloudExadataInfrastructure. */ + public UnaryCallSettings + getCloudExadataInfrastructureSettings() { + return getCloudExadataInfrastructureSettings; + } + + /** Returns the object with the settings used for calls to createCloudExadataInfrastructure. */ + public UnaryCallSettings + createCloudExadataInfrastructureSettings() { + return createCloudExadataInfrastructureSettings; + } + + /** Returns the object with the settings used for calls to createCloudExadataInfrastructure. */ + public OperationCallSettings< + CreateCloudExadataInfrastructureRequest, CloudExadataInfrastructure, OperationMetadata> + createCloudExadataInfrastructureOperationSettings() { + return createCloudExadataInfrastructureOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteCloudExadataInfrastructure. */ + public UnaryCallSettings + deleteCloudExadataInfrastructureSettings() { + return deleteCloudExadataInfrastructureSettings; + } + + /** Returns the object with the settings used for calls to deleteCloudExadataInfrastructure. */ + public OperationCallSettings + deleteCloudExadataInfrastructureOperationSettings() { + return deleteCloudExadataInfrastructureOperationSettings; + } + + /** Returns the object with the settings used for calls to listCloudVmClusters. */ + public PagedCallSettings< + ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> + listCloudVmClustersSettings() { + return listCloudVmClustersSettings; + } + + /** Returns the object with the settings used for calls to getCloudVmCluster. */ + public UnaryCallSettings getCloudVmClusterSettings() { + return getCloudVmClusterSettings; + } + + /** Returns the object with the settings used for calls to createCloudVmCluster. */ + public UnaryCallSettings createCloudVmClusterSettings() { + return createCloudVmClusterSettings; + } + + /** Returns the object with the settings used for calls to createCloudVmCluster. */ + public OperationCallSettings + createCloudVmClusterOperationSettings() { + return createCloudVmClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteCloudVmCluster. */ + public UnaryCallSettings deleteCloudVmClusterSettings() { + return deleteCloudVmClusterSettings; + } + + /** Returns the object with the settings used for calls to deleteCloudVmCluster. */ + public OperationCallSettings + deleteCloudVmClusterOperationSettings() { + return deleteCloudVmClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to listEntitlements. */ + public PagedCallSettings< + ListEntitlementsRequest, ListEntitlementsResponse, ListEntitlementsPagedResponse> + listEntitlementsSettings() { + return listEntitlementsSettings; + } + + /** Returns the object with the settings used for calls to listDbServers. */ + public PagedCallSettings + listDbServersSettings() { + return listDbServersSettings; + } + + /** Returns the object with the settings used for calls to listDbNodes. */ + public PagedCallSettings + listDbNodesSettings() { + return listDbNodesSettings; + } + + /** Returns the object with the settings used for calls to listGiVersions. */ + public PagedCallSettings< + ListGiVersionsRequest, ListGiVersionsResponse, ListGiVersionsPagedResponse> + listGiVersionsSettings() { + return listGiVersionsSettings; + } + + /** Returns the object with the settings used for calls to listMinorVersions. */ + public PagedCallSettings< + ListMinorVersionsRequest, ListMinorVersionsResponse, ListMinorVersionsPagedResponse> + listMinorVersionsSettings() { + return listMinorVersionsSettings; + } + + /** Returns the object with the settings used for calls to listDbSystemShapes. */ + public PagedCallSettings< + ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> + listDbSystemShapesSettings() { + return listDbSystemShapesSettings; + } + + /** Returns the object with the settings used for calls to listAutonomousDatabases. */ + public PagedCallSettings< + ListAutonomousDatabasesRequest, + ListAutonomousDatabasesResponse, + ListAutonomousDatabasesPagedResponse> + listAutonomousDatabasesSettings() { + return listAutonomousDatabasesSettings; + } + + /** Returns the object with the settings used for calls to getAutonomousDatabase. */ + public UnaryCallSettings + getAutonomousDatabaseSettings() { + return getAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to createAutonomousDatabase. */ + public UnaryCallSettings + createAutonomousDatabaseSettings() { + return createAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to createAutonomousDatabase. */ + public OperationCallSettings< + CreateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + createAutonomousDatabaseOperationSettings() { + return createAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to updateAutonomousDatabase. */ + public UnaryCallSettings + updateAutonomousDatabaseSettings() { + return updateAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to updateAutonomousDatabase. */ + public OperationCallSettings< + UpdateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + updateAutonomousDatabaseOperationSettings() { + return updateAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAutonomousDatabase. */ + public UnaryCallSettings + deleteAutonomousDatabaseSettings() { + return deleteAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to deleteAutonomousDatabase. */ + public OperationCallSettings + deleteAutonomousDatabaseOperationSettings() { + return deleteAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to restoreAutonomousDatabase. */ + public UnaryCallSettings + restoreAutonomousDatabaseSettings() { + return restoreAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to restoreAutonomousDatabase. */ + public OperationCallSettings< + RestoreAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restoreAutonomousDatabaseOperationSettings() { + return restoreAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to generateAutonomousDatabaseWallet. */ + public UnaryCallSettings< + GenerateAutonomousDatabaseWalletRequest, GenerateAutonomousDatabaseWalletResponse> + generateAutonomousDatabaseWalletSettings() { + return generateAutonomousDatabaseWalletSettings; + } + + /** Returns the object with the settings used for calls to listAutonomousDbVersions. */ + public PagedCallSettings< + ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + ListAutonomousDbVersionsPagedResponse> + listAutonomousDbVersionsSettings() { + return listAutonomousDbVersionsSettings; + } + + /** Returns the object with the settings used for calls to listAutonomousDatabaseCharacterSets. */ + public PagedCallSettings< + ListAutonomousDatabaseCharacterSetsRequest, + ListAutonomousDatabaseCharacterSetsResponse, + ListAutonomousDatabaseCharacterSetsPagedResponse> + listAutonomousDatabaseCharacterSetsSettings() { + return listAutonomousDatabaseCharacterSetsSettings; + } + + /** Returns the object with the settings used for calls to listAutonomousDatabaseBackups. */ + public PagedCallSettings< + ListAutonomousDatabaseBackupsRequest, + ListAutonomousDatabaseBackupsResponse, + ListAutonomousDatabaseBackupsPagedResponse> + listAutonomousDatabaseBackupsSettings() { + return listAutonomousDatabaseBackupsSettings; + } + + /** Returns the object with the settings used for calls to stopAutonomousDatabase. */ + public UnaryCallSettings + stopAutonomousDatabaseSettings() { + return stopAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to stopAutonomousDatabase. */ + public OperationCallSettings + stopAutonomousDatabaseOperationSettings() { + return stopAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to startAutonomousDatabase. */ + public UnaryCallSettings + startAutonomousDatabaseSettings() { + return startAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to startAutonomousDatabase. */ + public OperationCallSettings< + StartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + startAutonomousDatabaseOperationSettings() { + return startAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to restartAutonomousDatabase. */ + public UnaryCallSettings + restartAutonomousDatabaseSettings() { + return restartAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to restartAutonomousDatabase. */ + public OperationCallSettings< + RestartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restartAutonomousDatabaseOperationSettings() { + return restartAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to switchoverAutonomousDatabase. */ + public UnaryCallSettings + switchoverAutonomousDatabaseSettings() { + return switchoverAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to switchoverAutonomousDatabase. */ + public OperationCallSettings< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationSettings() { + return switchoverAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to failoverAutonomousDatabase. */ + public UnaryCallSettings + failoverAutonomousDatabaseSettings() { + return failoverAutonomousDatabaseSettings; + } + + /** Returns the object with the settings used for calls to failoverAutonomousDatabase. */ + public OperationCallSettings< + FailoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + failoverAutonomousDatabaseOperationSettings() { + return failoverAutonomousDatabaseOperationSettings; + } + + /** Returns the object with the settings used for calls to listOdbNetworks. */ + public PagedCallSettings< + ListOdbNetworksRequest, ListOdbNetworksResponse, ListOdbNetworksPagedResponse> + listOdbNetworksSettings() { + return listOdbNetworksSettings; + } + + /** Returns the object with the settings used for calls to getOdbNetwork. */ + public UnaryCallSettings getOdbNetworkSettings() { + return getOdbNetworkSettings; + } + + /** Returns the object with the settings used for calls to createOdbNetwork. */ + public UnaryCallSettings createOdbNetworkSettings() { + return createOdbNetworkSettings; + } + + /** Returns the object with the settings used for calls to createOdbNetwork. */ + public OperationCallSettings + createOdbNetworkOperationSettings() { + return createOdbNetworkOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteOdbNetwork. */ + public UnaryCallSettings deleteOdbNetworkSettings() { + return deleteOdbNetworkSettings; + } + + /** Returns the object with the settings used for calls to deleteOdbNetwork. */ + public OperationCallSettings + deleteOdbNetworkOperationSettings() { + return deleteOdbNetworkOperationSettings; + } + + /** Returns the object with the settings used for calls to listOdbSubnets. */ + public PagedCallSettings< + ListOdbSubnetsRequest, ListOdbSubnetsResponse, ListOdbSubnetsPagedResponse> + listOdbSubnetsSettings() { + return listOdbSubnetsSettings; + } + + /** Returns the object with the settings used for calls to getOdbSubnet. */ + public UnaryCallSettings getOdbSubnetSettings() { + return getOdbSubnetSettings; + } + + /** Returns the object with the settings used for calls to createOdbSubnet. */ + public UnaryCallSettings createOdbSubnetSettings() { + return createOdbSubnetSettings; + } + + /** Returns the object with the settings used for calls to createOdbSubnet. */ + public OperationCallSettings + createOdbSubnetOperationSettings() { + return createOdbSubnetOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteOdbSubnet. */ + public UnaryCallSettings deleteOdbSubnetSettings() { + return deleteOdbSubnetSettings; + } + + /** Returns the object with the settings used for calls to deleteOdbSubnet. */ + public OperationCallSettings + deleteOdbSubnetOperationSettings() { + return deleteOdbSubnetOperationSettings; + } + + /** Returns the object with the settings used for calls to listExadbVmClusters. */ + public PagedCallSettings< + ListExadbVmClustersRequest, ListExadbVmClustersResponse, ListExadbVmClustersPagedResponse> + listExadbVmClustersSettings() { + return listExadbVmClustersSettings; + } + + /** Returns the object with the settings used for calls to getExadbVmCluster. */ + public UnaryCallSettings getExadbVmClusterSettings() { + return getExadbVmClusterSettings; + } + + /** Returns the object with the settings used for calls to createExadbVmCluster. */ + public UnaryCallSettings createExadbVmClusterSettings() { + return createExadbVmClusterSettings; + } + + /** Returns the object with the settings used for calls to createExadbVmCluster. */ + public OperationCallSettings + createExadbVmClusterOperationSettings() { + return createExadbVmClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteExadbVmCluster. */ + public UnaryCallSettings deleteExadbVmClusterSettings() { + return deleteExadbVmClusterSettings; + } + + /** Returns the object with the settings used for calls to deleteExadbVmCluster. */ + public OperationCallSettings + deleteExadbVmClusterOperationSettings() { + return deleteExadbVmClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to updateExadbVmCluster. */ + public UnaryCallSettings updateExadbVmClusterSettings() { + return updateExadbVmClusterSettings; + } + + /** Returns the object with the settings used for calls to updateExadbVmCluster. */ + public OperationCallSettings + updateExadbVmClusterOperationSettings() { + return updateExadbVmClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to removeVirtualMachineExadbVmCluster. */ + public UnaryCallSettings + removeVirtualMachineExadbVmClusterSettings() { + return removeVirtualMachineExadbVmClusterSettings; + } + + /** Returns the object with the settings used for calls to removeVirtualMachineExadbVmCluster. */ + public OperationCallSettings< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationSettings() { + return removeVirtualMachineExadbVmClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to listExascaleDbStorageVaults. */ + public PagedCallSettings< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ListExascaleDbStorageVaultsPagedResponse> + listExascaleDbStorageVaultsSettings() { + return listExascaleDbStorageVaultsSettings; + } + + /** Returns the object with the settings used for calls to getExascaleDbStorageVault. */ + public UnaryCallSettings + getExascaleDbStorageVaultSettings() { + return getExascaleDbStorageVaultSettings; + } + + /** Returns the object with the settings used for calls to createExascaleDbStorageVault. */ + public UnaryCallSettings + createExascaleDbStorageVaultSettings() { + return createExascaleDbStorageVaultSettings; + } + + /** Returns the object with the settings used for calls to createExascaleDbStorageVault. */ + public OperationCallSettings< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationSettings() { + return createExascaleDbStorageVaultOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteExascaleDbStorageVault. */ + public UnaryCallSettings + deleteExascaleDbStorageVaultSettings() { + return deleteExascaleDbStorageVaultSettings; + } + + /** Returns the object with the settings used for calls to deleteExascaleDbStorageVault. */ + public OperationCallSettings + deleteExascaleDbStorageVaultOperationSettings() { + return deleteExascaleDbStorageVaultOperationSettings; + } + + /** Returns the object with the settings used for calls to listDbSystemInitialStorageSizes. */ + public PagedCallSettings< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesSettings() { + return listDbSystemInitialStorageSizesSettings; + } + + /** Returns the object with the settings used for calls to listDatabases. */ + public PagedCallSettings + listDatabasesSettings() { + return listDatabasesSettings; + } + + /** Returns the object with the settings used for calls to getDatabase. */ + public UnaryCallSettings getDatabaseSettings() { + return getDatabaseSettings; + } + + /** Returns the object with the settings used for calls to listPluggableDatabases. */ + public PagedCallSettings< + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + ListPluggableDatabasesPagedResponse> + listPluggableDatabasesSettings() { + return listPluggableDatabasesSettings; + } + + /** Returns the object with the settings used for calls to getPluggableDatabase. */ + public UnaryCallSettings + getPluggableDatabaseSettings() { + return getPluggableDatabaseSettings; + } + + /** Returns the object with the settings used for calls to listDbSystems. */ + public PagedCallSettings + listDbSystemsSettings() { + return listDbSystemsSettings; + } + + /** Returns the object with the settings used for calls to getDbSystem. */ + public UnaryCallSettings getDbSystemSettings() { + return getDbSystemSettings; + } + + /** Returns the object with the settings used for calls to createDbSystem. */ + public UnaryCallSettings createDbSystemSettings() { + return createDbSystemSettings; + } + + /** Returns the object with the settings used for calls to createDbSystem. */ + public OperationCallSettings + createDbSystemOperationSettings() { + return createDbSystemOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteDbSystem. */ + public UnaryCallSettings deleteDbSystemSettings() { + return deleteDbSystemSettings; + } + + /** Returns the object with the settings used for calls to deleteDbSystem. */ + public OperationCallSettings + deleteDbSystemOperationSettings() { + return deleteDbSystemOperationSettings; + } + + /** Returns the object with the settings used for calls to listDbVersions. */ + public PagedCallSettings< + ListDbVersionsRequest, ListDbVersionsResponse, ListDbVersionsPagedResponse> + listDbVersionsSettings() { + return listDbVersionsSettings; + } + + /** Returns the object with the settings used for calls to listDatabaseCharacterSets. */ + public PagedCallSettings< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + ListDatabaseCharacterSetsPagedResponse> + listDatabaseCharacterSetsSettings() { + return listDatabaseCharacterSetsSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public OracleDatabaseStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcOracleDatabaseStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonOracleDatabaseStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "oracledatabase"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "oracledatabase.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "oracledatabase.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(OracleDatabaseStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(OracleDatabaseStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OracleDatabaseStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } @@ -1450,12 +2602,16 @@ protected OracleDatabaseStubSettings(Builder settingsBuilder) throws IOException listDbServersSettings = settingsBuilder.listDbServersSettings().build(); listDbNodesSettings = settingsBuilder.listDbNodesSettings().build(); listGiVersionsSettings = settingsBuilder.listGiVersionsSettings().build(); + listMinorVersionsSettings = settingsBuilder.listMinorVersionsSettings().build(); listDbSystemShapesSettings = settingsBuilder.listDbSystemShapesSettings().build(); listAutonomousDatabasesSettings = settingsBuilder.listAutonomousDatabasesSettings().build(); getAutonomousDatabaseSettings = settingsBuilder.getAutonomousDatabaseSettings().build(); createAutonomousDatabaseSettings = settingsBuilder.createAutonomousDatabaseSettings().build(); createAutonomousDatabaseOperationSettings = settingsBuilder.createAutonomousDatabaseOperationSettings().build(); + updateAutonomousDatabaseSettings = settingsBuilder.updateAutonomousDatabaseSettings().build(); + updateAutonomousDatabaseOperationSettings = + settingsBuilder.updateAutonomousDatabaseOperationSettings().build(); deleteAutonomousDatabaseSettings = settingsBuilder.deleteAutonomousDatabaseSettings().build(); deleteAutonomousDatabaseOperationSettings = settingsBuilder.deleteAutonomousDatabaseOperationSettings().build(); @@ -1478,6 +2634,66 @@ protected OracleDatabaseStubSettings(Builder settingsBuilder) throws IOException restartAutonomousDatabaseSettings = settingsBuilder.restartAutonomousDatabaseSettings().build(); restartAutonomousDatabaseOperationSettings = settingsBuilder.restartAutonomousDatabaseOperationSettings().build(); + switchoverAutonomousDatabaseSettings = + settingsBuilder.switchoverAutonomousDatabaseSettings().build(); + switchoverAutonomousDatabaseOperationSettings = + settingsBuilder.switchoverAutonomousDatabaseOperationSettings().build(); + failoverAutonomousDatabaseSettings = + settingsBuilder.failoverAutonomousDatabaseSettings().build(); + failoverAutonomousDatabaseOperationSettings = + settingsBuilder.failoverAutonomousDatabaseOperationSettings().build(); + listOdbNetworksSettings = settingsBuilder.listOdbNetworksSettings().build(); + getOdbNetworkSettings = settingsBuilder.getOdbNetworkSettings().build(); + createOdbNetworkSettings = settingsBuilder.createOdbNetworkSettings().build(); + createOdbNetworkOperationSettings = settingsBuilder.createOdbNetworkOperationSettings().build(); + deleteOdbNetworkSettings = settingsBuilder.deleteOdbNetworkSettings().build(); + deleteOdbNetworkOperationSettings = settingsBuilder.deleteOdbNetworkOperationSettings().build(); + listOdbSubnetsSettings = settingsBuilder.listOdbSubnetsSettings().build(); + getOdbSubnetSettings = settingsBuilder.getOdbSubnetSettings().build(); + createOdbSubnetSettings = settingsBuilder.createOdbSubnetSettings().build(); + createOdbSubnetOperationSettings = settingsBuilder.createOdbSubnetOperationSettings().build(); + deleteOdbSubnetSettings = settingsBuilder.deleteOdbSubnetSettings().build(); + deleteOdbSubnetOperationSettings = settingsBuilder.deleteOdbSubnetOperationSettings().build(); + listExadbVmClustersSettings = settingsBuilder.listExadbVmClustersSettings().build(); + getExadbVmClusterSettings = settingsBuilder.getExadbVmClusterSettings().build(); + createExadbVmClusterSettings = settingsBuilder.createExadbVmClusterSettings().build(); + createExadbVmClusterOperationSettings = + settingsBuilder.createExadbVmClusterOperationSettings().build(); + deleteExadbVmClusterSettings = settingsBuilder.deleteExadbVmClusterSettings().build(); + deleteExadbVmClusterOperationSettings = + settingsBuilder.deleteExadbVmClusterOperationSettings().build(); + updateExadbVmClusterSettings = settingsBuilder.updateExadbVmClusterSettings().build(); + updateExadbVmClusterOperationSettings = + settingsBuilder.updateExadbVmClusterOperationSettings().build(); + removeVirtualMachineExadbVmClusterSettings = + settingsBuilder.removeVirtualMachineExadbVmClusterSettings().build(); + removeVirtualMachineExadbVmClusterOperationSettings = + settingsBuilder.removeVirtualMachineExadbVmClusterOperationSettings().build(); + listExascaleDbStorageVaultsSettings = + settingsBuilder.listExascaleDbStorageVaultsSettings().build(); + getExascaleDbStorageVaultSettings = settingsBuilder.getExascaleDbStorageVaultSettings().build(); + createExascaleDbStorageVaultSettings = + settingsBuilder.createExascaleDbStorageVaultSettings().build(); + createExascaleDbStorageVaultOperationSettings = + settingsBuilder.createExascaleDbStorageVaultOperationSettings().build(); + deleteExascaleDbStorageVaultSettings = + settingsBuilder.deleteExascaleDbStorageVaultSettings().build(); + deleteExascaleDbStorageVaultOperationSettings = + settingsBuilder.deleteExascaleDbStorageVaultOperationSettings().build(); + listDbSystemInitialStorageSizesSettings = + settingsBuilder.listDbSystemInitialStorageSizesSettings().build(); + listDatabasesSettings = settingsBuilder.listDatabasesSettings().build(); + getDatabaseSettings = settingsBuilder.getDatabaseSettings().build(); + listPluggableDatabasesSettings = settingsBuilder.listPluggableDatabasesSettings().build(); + getPluggableDatabaseSettings = settingsBuilder.getPluggableDatabaseSettings().build(); + listDbSystemsSettings = settingsBuilder.listDbSystemsSettings().build(); + getDbSystemSettings = settingsBuilder.getDbSystemSettings().build(); + createDbSystemSettings = settingsBuilder.createDbSystemSettings().build(); + createDbSystemOperationSettings = settingsBuilder.createDbSystemOperationSettings().build(); + deleteDbSystemSettings = settingsBuilder.deleteDbSystemSettings().build(); + deleteDbSystemOperationSettings = settingsBuilder.deleteDbSystemOperationSettings().build(); + listDbVersionsSettings = settingsBuilder.listDbVersionsSettings().build(); + listDatabaseCharacterSetsSettings = settingsBuilder.listDatabaseCharacterSetsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -1532,6 +2748,9 @@ public static class Builder extends StubSettings.Builder listGiVersionsSettings; + private final PagedCallSettings.Builder< + ListMinorVersionsRequest, ListMinorVersionsResponse, ListMinorVersionsPagedResponse> + listMinorVersionsSettings; private final PagedCallSettings.Builder< ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> listDbSystemShapesSettings; @@ -1547,6 +2766,11 @@ public static class Builder extends StubSettings.Builder createAutonomousDatabaseOperationSettings; + private final UnaryCallSettings.Builder + updateAutonomousDatabaseSettings; + private final OperationCallSettings.Builder< + UpdateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + updateAutonomousDatabaseOperationSettings; private final UnaryCallSettings.Builder deleteAutonomousDatabaseSettings; private final OperationCallSettings.Builder< @@ -1588,8 +2812,125 @@ public static class Builder extends StubSettings.Builder restartAutonomousDatabaseSettings; private final OperationCallSettings.Builder< - RestartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> - restartAutonomousDatabaseOperationSettings; + RestartAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + restartAutonomousDatabaseOperationSettings; + private final UnaryCallSettings.Builder + switchoverAutonomousDatabaseSettings; + private final OperationCallSettings.Builder< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationSettings; + private final UnaryCallSettings.Builder + failoverAutonomousDatabaseSettings; + private final OperationCallSettings.Builder< + FailoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + failoverAutonomousDatabaseOperationSettings; + private final PagedCallSettings.Builder< + ListOdbNetworksRequest, ListOdbNetworksResponse, ListOdbNetworksPagedResponse> + listOdbNetworksSettings; + private final UnaryCallSettings.Builder getOdbNetworkSettings; + private final UnaryCallSettings.Builder + createOdbNetworkSettings; + private final OperationCallSettings.Builder< + CreateOdbNetworkRequest, OdbNetwork, OperationMetadata> + createOdbNetworkOperationSettings; + private final UnaryCallSettings.Builder + deleteOdbNetworkSettings; + private final OperationCallSettings.Builder + deleteOdbNetworkOperationSettings; + private final PagedCallSettings.Builder< + ListOdbSubnetsRequest, ListOdbSubnetsResponse, ListOdbSubnetsPagedResponse> + listOdbSubnetsSettings; + private final UnaryCallSettings.Builder getOdbSubnetSettings; + private final UnaryCallSettings.Builder + createOdbSubnetSettings; + private final OperationCallSettings.Builder< + CreateOdbSubnetRequest, OdbSubnet, OperationMetadata> + createOdbSubnetOperationSettings; + private final UnaryCallSettings.Builder + deleteOdbSubnetSettings; + private final OperationCallSettings.Builder + deleteOdbSubnetOperationSettings; + private final PagedCallSettings.Builder< + ListExadbVmClustersRequest, + ListExadbVmClustersResponse, + ListExadbVmClustersPagedResponse> + listExadbVmClustersSettings; + private final UnaryCallSettings.Builder + getExadbVmClusterSettings; + private final UnaryCallSettings.Builder + createExadbVmClusterSettings; + private final OperationCallSettings.Builder< + CreateExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + createExadbVmClusterOperationSettings; + private final UnaryCallSettings.Builder + deleteExadbVmClusterSettings; + private final OperationCallSettings.Builder< + DeleteExadbVmClusterRequest, Empty, OperationMetadata> + deleteExadbVmClusterOperationSettings; + private final UnaryCallSettings.Builder + updateExadbVmClusterSettings; + private final OperationCallSettings.Builder< + UpdateExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + updateExadbVmClusterOperationSettings; + private final UnaryCallSettings.Builder + removeVirtualMachineExadbVmClusterSettings; + private final OperationCallSettings.Builder< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationSettings; + private final PagedCallSettings.Builder< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ListExascaleDbStorageVaultsPagedResponse> + listExascaleDbStorageVaultsSettings; + private final UnaryCallSettings.Builder< + GetExascaleDbStorageVaultRequest, ExascaleDbStorageVault> + getExascaleDbStorageVaultSettings; + private final UnaryCallSettings.Builder + createExascaleDbStorageVaultSettings; + private final OperationCallSettings.Builder< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationSettings; + private final UnaryCallSettings.Builder + deleteExascaleDbStorageVaultSettings; + private final OperationCallSettings.Builder< + DeleteExascaleDbStorageVaultRequest, Empty, OperationMetadata> + deleteExascaleDbStorageVaultOperationSettings; + private final PagedCallSettings.Builder< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesSettings; + private final PagedCallSettings.Builder< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + listDatabasesSettings; + private final UnaryCallSettings.Builder getDatabaseSettings; + private final PagedCallSettings.Builder< + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + ListPluggableDatabasesPagedResponse> + listPluggableDatabasesSettings; + private final UnaryCallSettings.Builder + getPluggableDatabaseSettings; + private final PagedCallSettings.Builder< + ListDbSystemsRequest, ListDbSystemsResponse, ListDbSystemsPagedResponse> + listDbSystemsSettings; + private final UnaryCallSettings.Builder getDbSystemSettings; + private final UnaryCallSettings.Builder + createDbSystemSettings; + private final OperationCallSettings.Builder + createDbSystemOperationSettings; + private final UnaryCallSettings.Builder + deleteDbSystemSettings; + private final OperationCallSettings.Builder + deleteDbSystemOperationSettings; + private final PagedCallSettings.Builder< + ListDbVersionsRequest, ListDbVersionsResponse, ListDbVersionsPagedResponse> + listDbVersionsSettings; + private final PagedCallSettings.Builder< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + ListDatabaseCharacterSetsPagedResponse> + listDatabaseCharacterSetsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1604,10 +2945,7 @@ public static class Builder extends StubSettings.BuildernewArrayList( - StatusCode.Code.RESOURCE_EXHAUSTED, - StatusCode.Code.UNAVAILABLE, - StatusCode.Code.INTERNAL, - StatusCode.Code.DEADLINE_EXCEEDED))); + StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); @@ -1665,6 +3003,7 @@ protected Builder(ClientContext clientContext) { listDbServersSettings = PagedCallSettings.newBuilder(LIST_DB_SERVERS_PAGE_STR_FACT); listDbNodesSettings = PagedCallSettings.newBuilder(LIST_DB_NODES_PAGE_STR_FACT); listGiVersionsSettings = PagedCallSettings.newBuilder(LIST_GI_VERSIONS_PAGE_STR_FACT); + listMinorVersionsSettings = PagedCallSettings.newBuilder(LIST_MINOR_VERSIONS_PAGE_STR_FACT); listDbSystemShapesSettings = PagedCallSettings.newBuilder(LIST_DB_SYSTEM_SHAPES_PAGE_STR_FACT); listAutonomousDatabasesSettings = @@ -1672,6 +3011,8 @@ protected Builder(ClientContext clientContext) { getAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); + updateAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); deleteAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); restoreAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1689,6 +3030,56 @@ protected Builder(ClientContext clientContext) { startAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); restartAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restartAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); + switchoverAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + switchoverAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); + failoverAutonomousDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + failoverAutonomousDatabaseOperationSettings = OperationCallSettings.newBuilder(); + listOdbNetworksSettings = PagedCallSettings.newBuilder(LIST_ODB_NETWORKS_PAGE_STR_FACT); + getOdbNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOdbNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOdbNetworkOperationSettings = OperationCallSettings.newBuilder(); + deleteOdbNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOdbNetworkOperationSettings = OperationCallSettings.newBuilder(); + listOdbSubnetsSettings = PagedCallSettings.newBuilder(LIST_ODB_SUBNETS_PAGE_STR_FACT); + getOdbSubnetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOdbSubnetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOdbSubnetOperationSettings = OperationCallSettings.newBuilder(); + deleteOdbSubnetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOdbSubnetOperationSettings = OperationCallSettings.newBuilder(); + listExadbVmClustersSettings = + PagedCallSettings.newBuilder(LIST_EXADB_VM_CLUSTERS_PAGE_STR_FACT); + getExadbVmClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExadbVmClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExadbVmClusterOperationSettings = OperationCallSettings.newBuilder(); + deleteExadbVmClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExadbVmClusterOperationSettings = OperationCallSettings.newBuilder(); + updateExadbVmClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateExadbVmClusterOperationSettings = OperationCallSettings.newBuilder(); + removeVirtualMachineExadbVmClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + removeVirtualMachineExadbVmClusterOperationSettings = OperationCallSettings.newBuilder(); + listExascaleDbStorageVaultsSettings = + PagedCallSettings.newBuilder(LIST_EXASCALE_DB_STORAGE_VAULTS_PAGE_STR_FACT); + getExascaleDbStorageVaultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExascaleDbStorageVaultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExascaleDbStorageVaultOperationSettings = OperationCallSettings.newBuilder(); + deleteExascaleDbStorageVaultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExascaleDbStorageVaultOperationSettings = OperationCallSettings.newBuilder(); + listDbSystemInitialStorageSizesSettings = + PagedCallSettings.newBuilder(LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES_PAGE_STR_FACT); + listDatabasesSettings = PagedCallSettings.newBuilder(LIST_DATABASES_PAGE_STR_FACT); + getDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPluggableDatabasesSettings = + PagedCallSettings.newBuilder(LIST_PLUGGABLE_DATABASES_PAGE_STR_FACT); + getPluggableDatabaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDbSystemsSettings = PagedCallSettings.newBuilder(LIST_DB_SYSTEMS_PAGE_STR_FACT); + getDbSystemSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDbSystemSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDbSystemOperationSettings = OperationCallSettings.newBuilder(); + deleteDbSystemSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDbSystemOperationSettings = OperationCallSettings.newBuilder(); + listDbVersionsSettings = PagedCallSettings.newBuilder(LIST_DB_VERSIONS_PAGE_STR_FACT); + listDatabaseCharacterSetsSettings = + PagedCallSettings.newBuilder(LIST_DATABASE_CHARACTER_SETS_PAGE_STR_FACT); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1706,10 +3097,12 @@ protected Builder(ClientContext clientContext) { listDbServersSettings, listDbNodesSettings, listGiVersionsSettings, + listMinorVersionsSettings, listDbSystemShapesSettings, listAutonomousDatabasesSettings, getAutonomousDatabaseSettings, createAutonomousDatabaseSettings, + updateAutonomousDatabaseSettings, deleteAutonomousDatabaseSettings, restoreAutonomousDatabaseSettings, generateAutonomousDatabaseWalletSettings, @@ -1719,6 +3112,37 @@ protected Builder(ClientContext clientContext) { stopAutonomousDatabaseSettings, startAutonomousDatabaseSettings, restartAutonomousDatabaseSettings, + switchoverAutonomousDatabaseSettings, + failoverAutonomousDatabaseSettings, + listOdbNetworksSettings, + getOdbNetworkSettings, + createOdbNetworkSettings, + deleteOdbNetworkSettings, + listOdbSubnetsSettings, + getOdbSubnetSettings, + createOdbSubnetSettings, + deleteOdbSubnetSettings, + listExadbVmClustersSettings, + getExadbVmClusterSettings, + createExadbVmClusterSettings, + deleteExadbVmClusterSettings, + updateExadbVmClusterSettings, + removeVirtualMachineExadbVmClusterSettings, + listExascaleDbStorageVaultsSettings, + getExascaleDbStorageVaultSettings, + createExascaleDbStorageVaultSettings, + deleteExascaleDbStorageVaultSettings, + listDbSystemInitialStorageSizesSettings, + listDatabasesSettings, + getDatabaseSettings, + listPluggableDatabasesSettings, + getPluggableDatabaseSettings, + listDbSystemsSettings, + getDbSystemSettings, + createDbSystemSettings, + deleteDbSystemSettings, + listDbVersionsSettings, + listDatabaseCharacterSetsSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1751,12 +3175,16 @@ protected Builder(OracleDatabaseStubSettings settings) { listDbServersSettings = settings.listDbServersSettings.toBuilder(); listDbNodesSettings = settings.listDbNodesSettings.toBuilder(); listGiVersionsSettings = settings.listGiVersionsSettings.toBuilder(); + listMinorVersionsSettings = settings.listMinorVersionsSettings.toBuilder(); listDbSystemShapesSettings = settings.listDbSystemShapesSettings.toBuilder(); listAutonomousDatabasesSettings = settings.listAutonomousDatabasesSettings.toBuilder(); getAutonomousDatabaseSettings = settings.getAutonomousDatabaseSettings.toBuilder(); createAutonomousDatabaseSettings = settings.createAutonomousDatabaseSettings.toBuilder(); createAutonomousDatabaseOperationSettings = settings.createAutonomousDatabaseOperationSettings.toBuilder(); + updateAutonomousDatabaseSettings = settings.updateAutonomousDatabaseSettings.toBuilder(); + updateAutonomousDatabaseOperationSettings = + settings.updateAutonomousDatabaseOperationSettings.toBuilder(); deleteAutonomousDatabaseSettings = settings.deleteAutonomousDatabaseSettings.toBuilder(); deleteAutonomousDatabaseOperationSettings = settings.deleteAutonomousDatabaseOperationSettings.toBuilder(); @@ -1779,6 +3207,65 @@ protected Builder(OracleDatabaseStubSettings settings) { restartAutonomousDatabaseSettings = settings.restartAutonomousDatabaseSettings.toBuilder(); restartAutonomousDatabaseOperationSettings = settings.restartAutonomousDatabaseOperationSettings.toBuilder(); + switchoverAutonomousDatabaseSettings = + settings.switchoverAutonomousDatabaseSettings.toBuilder(); + switchoverAutonomousDatabaseOperationSettings = + settings.switchoverAutonomousDatabaseOperationSettings.toBuilder(); + failoverAutonomousDatabaseSettings = settings.failoverAutonomousDatabaseSettings.toBuilder(); + failoverAutonomousDatabaseOperationSettings = + settings.failoverAutonomousDatabaseOperationSettings.toBuilder(); + listOdbNetworksSettings = settings.listOdbNetworksSettings.toBuilder(); + getOdbNetworkSettings = settings.getOdbNetworkSettings.toBuilder(); + createOdbNetworkSettings = settings.createOdbNetworkSettings.toBuilder(); + createOdbNetworkOperationSettings = settings.createOdbNetworkOperationSettings.toBuilder(); + deleteOdbNetworkSettings = settings.deleteOdbNetworkSettings.toBuilder(); + deleteOdbNetworkOperationSettings = settings.deleteOdbNetworkOperationSettings.toBuilder(); + listOdbSubnetsSettings = settings.listOdbSubnetsSettings.toBuilder(); + getOdbSubnetSettings = settings.getOdbSubnetSettings.toBuilder(); + createOdbSubnetSettings = settings.createOdbSubnetSettings.toBuilder(); + createOdbSubnetOperationSettings = settings.createOdbSubnetOperationSettings.toBuilder(); + deleteOdbSubnetSettings = settings.deleteOdbSubnetSettings.toBuilder(); + deleteOdbSubnetOperationSettings = settings.deleteOdbSubnetOperationSettings.toBuilder(); + listExadbVmClustersSettings = settings.listExadbVmClustersSettings.toBuilder(); + getExadbVmClusterSettings = settings.getExadbVmClusterSettings.toBuilder(); + createExadbVmClusterSettings = settings.createExadbVmClusterSettings.toBuilder(); + createExadbVmClusterOperationSettings = + settings.createExadbVmClusterOperationSettings.toBuilder(); + deleteExadbVmClusterSettings = settings.deleteExadbVmClusterSettings.toBuilder(); + deleteExadbVmClusterOperationSettings = + settings.deleteExadbVmClusterOperationSettings.toBuilder(); + updateExadbVmClusterSettings = settings.updateExadbVmClusterSettings.toBuilder(); + updateExadbVmClusterOperationSettings = + settings.updateExadbVmClusterOperationSettings.toBuilder(); + removeVirtualMachineExadbVmClusterSettings = + settings.removeVirtualMachineExadbVmClusterSettings.toBuilder(); + removeVirtualMachineExadbVmClusterOperationSettings = + settings.removeVirtualMachineExadbVmClusterOperationSettings.toBuilder(); + listExascaleDbStorageVaultsSettings = + settings.listExascaleDbStorageVaultsSettings.toBuilder(); + getExascaleDbStorageVaultSettings = settings.getExascaleDbStorageVaultSettings.toBuilder(); + createExascaleDbStorageVaultSettings = + settings.createExascaleDbStorageVaultSettings.toBuilder(); + createExascaleDbStorageVaultOperationSettings = + settings.createExascaleDbStorageVaultOperationSettings.toBuilder(); + deleteExascaleDbStorageVaultSettings = + settings.deleteExascaleDbStorageVaultSettings.toBuilder(); + deleteExascaleDbStorageVaultOperationSettings = + settings.deleteExascaleDbStorageVaultOperationSettings.toBuilder(); + listDbSystemInitialStorageSizesSettings = + settings.listDbSystemInitialStorageSizesSettings.toBuilder(); + listDatabasesSettings = settings.listDatabasesSettings.toBuilder(); + getDatabaseSettings = settings.getDatabaseSettings.toBuilder(); + listPluggableDatabasesSettings = settings.listPluggableDatabasesSettings.toBuilder(); + getPluggableDatabaseSettings = settings.getPluggableDatabaseSettings.toBuilder(); + listDbSystemsSettings = settings.listDbSystemsSettings.toBuilder(); + getDbSystemSettings = settings.getDbSystemSettings.toBuilder(); + createDbSystemSettings = settings.createDbSystemSettings.toBuilder(); + createDbSystemOperationSettings = settings.createDbSystemOperationSettings.toBuilder(); + deleteDbSystemSettings = settings.deleteDbSystemSettings.toBuilder(); + deleteDbSystemOperationSettings = settings.deleteDbSystemOperationSettings.toBuilder(); + listDbVersionsSettings = settings.listDbVersionsSettings.toBuilder(); + listDatabaseCharacterSetsSettings = settings.listDatabaseCharacterSetsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1796,10 +3283,12 @@ protected Builder(OracleDatabaseStubSettings settings) { listDbServersSettings, listDbNodesSettings, listGiVersionsSettings, + listMinorVersionsSettings, listDbSystemShapesSettings, listAutonomousDatabasesSettings, getAutonomousDatabaseSettings, createAutonomousDatabaseSettings, + updateAutonomousDatabaseSettings, deleteAutonomousDatabaseSettings, restoreAutonomousDatabaseSettings, generateAutonomousDatabaseWalletSettings, @@ -1809,6 +3298,37 @@ protected Builder(OracleDatabaseStubSettings settings) { stopAutonomousDatabaseSettings, startAutonomousDatabaseSettings, restartAutonomousDatabaseSettings, + switchoverAutonomousDatabaseSettings, + failoverAutonomousDatabaseSettings, + listOdbNetworksSettings, + getOdbNetworkSettings, + createOdbNetworkSettings, + deleteOdbNetworkSettings, + listOdbSubnetsSettings, + getOdbSubnetSettings, + createOdbSubnetSettings, + deleteOdbSubnetSettings, + listExadbVmClustersSettings, + getExadbVmClusterSettings, + createExadbVmClusterSettings, + deleteExadbVmClusterSettings, + updateExadbVmClusterSettings, + removeVirtualMachineExadbVmClusterSettings, + listExascaleDbStorageVaultsSettings, + getExascaleDbStorageVaultSettings, + createExascaleDbStorageVaultSettings, + deleteExascaleDbStorageVaultSettings, + listDbSystemInitialStorageSizesSettings, + listDatabasesSettings, + getDatabaseSettings, + listPluggableDatabasesSettings, + getPluggableDatabaseSettings, + listDbSystemsSettings, + getDbSystemSettings, + createDbSystemSettings, + deleteDbSystemSettings, + listDbVersionsSettings, + listDatabaseCharacterSetsSettings, listLocationsSettings, getLocationSettings); } @@ -1898,6 +3418,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listMinorVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listDbSystemShapesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1914,97 +3439,621 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder - .createAutonomousDatabaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .createAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .restoreAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .generateAutonomousDatabaseWalletSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listAutonomousDbVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAutonomousDatabaseCharacterSetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAutonomousDatabaseBackupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .stopAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .startAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .restartAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .switchoverAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .failoverAutonomousDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listOdbNetworksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getOdbNetworkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createOdbNetworkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteOdbNetworkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listOdbSubnetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getOdbSubnetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createOdbSubnetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteOdbSubnetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listExadbVmClustersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getExadbVmClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createExadbVmClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteExadbVmClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateExadbVmClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .removeVirtualMachineExadbVmClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listExascaleDbStorageVaultsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getExascaleDbStorageVaultSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createExascaleDbStorageVaultSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteExascaleDbStorageVaultSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listDbSystemInitialStorageSizesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDatabasesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listPluggableDatabasesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getPluggableDatabaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDbSystemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getDbSystemSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createDbSystemSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteDbSystemSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listDbVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDatabaseCharacterSetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createCloudExadataInfrastructureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + CloudExadataInfrastructure.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .build())); + + builder + .deleteCloudExadataInfrastructureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .build())); + + builder + .createCloudVmClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(CloudVmCluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .build())); + + builder + .deleteCloudVmClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .build())); builder - .deleteAutonomousDatabaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .createAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .build())); builder - .restoreAutonomousDatabaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .updateAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.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 - .generateAutonomousDatabaseWalletSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .deleteAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .build())); builder - .listAutonomousDbVersionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .restoreAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .build())); builder - .listAutonomousDatabaseCharacterSetsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .stopAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.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 - .listAutonomousDatabaseBackupsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .startAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.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 - .stopAutonomousDatabaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .restartAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.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 - .startAutonomousDatabaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .switchoverAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.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 - .restartAutonomousDatabaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .failoverAutonomousDatabaseOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.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 - .listLocationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .createOdbNetworkOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OdbNetwork.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 - .getLocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .deleteOdbNetworkOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_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())); builder - .createCloudExadataInfrastructureOperationSettings() + .createOdbSubnetOperationSettings() .setInitialCallSettings( UnaryCallSettings - . - newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create( - CloudExadataInfrastructure.class)) + ProtoOperationTransformers.ResponseTransformer.create(OdbSubnet.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) .setInitialRpcTimeoutDuration(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); builder - .deleteCloudExadataInfrastructureOperationSettings() + .deleteOdbSubnetOperationSettings() .setInitialCallSettings( UnaryCallSettings - . - newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) @@ -2015,44 +4064,44 @@ private static Builder initDefaults(Builder builder) { .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) .setInitialRpcTimeoutDuration(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); builder - .createCloudVmClusterOperationSettings() + .createExadbVmClusterOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(CloudVmCluster.class)) + ProtoOperationTransformers.ResponseTransformer.create(ExadbVmCluster.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) .setInitialRpcTimeoutDuration(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); builder - .deleteCloudVmClusterOperationSettings() + .deleteExadbVmClusterOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) @@ -2063,98 +4112,100 @@ private static Builder initDefaults(Builder builder) { .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) .setInitialRpcTimeoutDuration(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); builder - .createAutonomousDatabaseOperationSettings() + .updateExadbVmClusterOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.class)) + ProtoOperationTransformers.ResponseTransformer.create(ExadbVmCluster.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) .setInitialRpcTimeoutDuration(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); builder - .deleteAutonomousDatabaseOperationSettings() + .removeVirtualMachineExadbVmClusterOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + ProtoOperationTransformers.ResponseTransformer.create(ExadbVmCluster.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) .setInitialRpcTimeoutDuration(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); builder - .restoreAutonomousDatabaseOperationSettings() + .createExascaleDbStorageVaultOperationSettings() .setInitialCallSettings( UnaryCallSettings - . + . newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.class)) + ProtoOperationTransformers.ResponseTransformer.create(ExascaleDbStorageVault.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) .setInitialRpcTimeoutDuration(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeoutDuration(Duration.ZERO) - .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); builder - .stopAutonomousDatabaseOperationSettings() + .deleteExascaleDbStorageVaultOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.class)) + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2170,15 +4221,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .startAutonomousDatabaseOperationSettings() + .createDbSystemOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.class)) + ProtoOperationTransformers.ResponseTransformer.create(DbSystem.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2194,16 +4245,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .restartAutonomousDatabaseOperationSettings() + .deleteDbSystemOperationSettings() .setInitialCallSettings( UnaryCallSettings - . - newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AutonomousDatabase.class)) + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -2346,6 +4396,13 @@ public Builder applyToAllUnaryMethods( return listGiVersionsSettings; } + /** Returns the builder for the settings used for calls to listMinorVersions. */ + public PagedCallSettings.Builder< + ListMinorVersionsRequest, ListMinorVersionsResponse, ListMinorVersionsPagedResponse> + listMinorVersionsSettings() { + return listMinorVersionsSettings; + } + /** Returns the builder for the settings used for calls to listDbSystemShapes. */ public PagedCallSettings.Builder< ListDbSystemShapesRequest, ListDbSystemShapesResponse, ListDbSystemShapesPagedResponse> @@ -2381,6 +4438,19 @@ public Builder applyToAllUnaryMethods( return createAutonomousDatabaseOperationSettings; } + /** Returns the builder for the settings used for calls to updateAutonomousDatabase. */ + public UnaryCallSettings.Builder + updateAutonomousDatabaseSettings() { + return updateAutonomousDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to updateAutonomousDatabase. */ + public OperationCallSettings.Builder< + UpdateAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + updateAutonomousDatabaseOperationSettings() { + return updateAutonomousDatabaseOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteAutonomousDatabase. */ public UnaryCallSettings.Builder deleteAutonomousDatabaseSettings() { @@ -2481,6 +4551,299 @@ public Builder applyToAllUnaryMethods( return restartAutonomousDatabaseOperationSettings; } + /** Returns the builder for the settings used for calls to switchoverAutonomousDatabase. */ + public UnaryCallSettings.Builder + switchoverAutonomousDatabaseSettings() { + return switchoverAutonomousDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to switchoverAutonomousDatabase. */ + public OperationCallSettings.Builder< + SwitchoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + switchoverAutonomousDatabaseOperationSettings() { + return switchoverAutonomousDatabaseOperationSettings; + } + + /** Returns the builder for the settings used for calls to failoverAutonomousDatabase. */ + public UnaryCallSettings.Builder + failoverAutonomousDatabaseSettings() { + return failoverAutonomousDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to failoverAutonomousDatabase. */ + public OperationCallSettings.Builder< + FailoverAutonomousDatabaseRequest, AutonomousDatabase, OperationMetadata> + failoverAutonomousDatabaseOperationSettings() { + return failoverAutonomousDatabaseOperationSettings; + } + + /** Returns the builder for the settings used for calls to listOdbNetworks. */ + public PagedCallSettings.Builder< + ListOdbNetworksRequest, ListOdbNetworksResponse, ListOdbNetworksPagedResponse> + listOdbNetworksSettings() { + return listOdbNetworksSettings; + } + + /** Returns the builder for the settings used for calls to getOdbNetwork. */ + public UnaryCallSettings.Builder getOdbNetworkSettings() { + return getOdbNetworkSettings; + } + + /** Returns the builder for the settings used for calls to createOdbNetwork. */ + public UnaryCallSettings.Builder + createOdbNetworkSettings() { + return createOdbNetworkSettings; + } + + /** Returns the builder for the settings used for calls to createOdbNetwork. */ + public OperationCallSettings.Builder + createOdbNetworkOperationSettings() { + return createOdbNetworkOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteOdbNetwork. */ + public UnaryCallSettings.Builder + deleteOdbNetworkSettings() { + return deleteOdbNetworkSettings; + } + + /** Returns the builder for the settings used for calls to deleteOdbNetwork. */ + public OperationCallSettings.Builder + deleteOdbNetworkOperationSettings() { + return deleteOdbNetworkOperationSettings; + } + + /** Returns the builder for the settings used for calls to listOdbSubnets. */ + public PagedCallSettings.Builder< + ListOdbSubnetsRequest, ListOdbSubnetsResponse, ListOdbSubnetsPagedResponse> + listOdbSubnetsSettings() { + return listOdbSubnetsSettings; + } + + /** Returns the builder for the settings used for calls to getOdbSubnet. */ + public UnaryCallSettings.Builder getOdbSubnetSettings() { + return getOdbSubnetSettings; + } + + /** Returns the builder for the settings used for calls to createOdbSubnet. */ + public UnaryCallSettings.Builder createOdbSubnetSettings() { + return createOdbSubnetSettings; + } + + /** Returns the builder for the settings used for calls to createOdbSubnet. */ + public OperationCallSettings.Builder + createOdbSubnetOperationSettings() { + return createOdbSubnetOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteOdbSubnet. */ + public UnaryCallSettings.Builder deleteOdbSubnetSettings() { + return deleteOdbSubnetSettings; + } + + /** Returns the builder for the settings used for calls to deleteOdbSubnet. */ + public OperationCallSettings.Builder + deleteOdbSubnetOperationSettings() { + return deleteOdbSubnetOperationSettings; + } + + /** Returns the builder for the settings used for calls to listExadbVmClusters. */ + public PagedCallSettings.Builder< + ListExadbVmClustersRequest, + ListExadbVmClustersResponse, + ListExadbVmClustersPagedResponse> + listExadbVmClustersSettings() { + return listExadbVmClustersSettings; + } + + /** Returns the builder for the settings used for calls to getExadbVmCluster. */ + public UnaryCallSettings.Builder + getExadbVmClusterSettings() { + return getExadbVmClusterSettings; + } + + /** Returns the builder for the settings used for calls to createExadbVmCluster. */ + public UnaryCallSettings.Builder + createExadbVmClusterSettings() { + return createExadbVmClusterSettings; + } + + /** Returns the builder for the settings used for calls to createExadbVmCluster. */ + public OperationCallSettings.Builder< + CreateExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + createExadbVmClusterOperationSettings() { + return createExadbVmClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteExadbVmCluster. */ + public UnaryCallSettings.Builder + deleteExadbVmClusterSettings() { + return deleteExadbVmClusterSettings; + } + + /** Returns the builder for the settings used for calls to deleteExadbVmCluster. */ + public OperationCallSettings.Builder + deleteExadbVmClusterOperationSettings() { + return deleteExadbVmClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateExadbVmCluster. */ + public UnaryCallSettings.Builder + updateExadbVmClusterSettings() { + return updateExadbVmClusterSettings; + } + + /** Returns the builder for the settings used for calls to updateExadbVmCluster. */ + public OperationCallSettings.Builder< + UpdateExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + updateExadbVmClusterOperationSettings() { + return updateExadbVmClusterOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to removeVirtualMachineExadbVmCluster. + */ + public UnaryCallSettings.Builder + removeVirtualMachineExadbVmClusterSettings() { + return removeVirtualMachineExadbVmClusterSettings; + } + + /** + * Returns the builder for the settings used for calls to removeVirtualMachineExadbVmCluster. + */ + public OperationCallSettings.Builder< + RemoveVirtualMachineExadbVmClusterRequest, ExadbVmCluster, OperationMetadata> + removeVirtualMachineExadbVmClusterOperationSettings() { + return removeVirtualMachineExadbVmClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to listExascaleDbStorageVaults. */ + public PagedCallSettings.Builder< + ListExascaleDbStorageVaultsRequest, + ListExascaleDbStorageVaultsResponse, + ListExascaleDbStorageVaultsPagedResponse> + listExascaleDbStorageVaultsSettings() { + return listExascaleDbStorageVaultsSettings; + } + + /** Returns the builder for the settings used for calls to getExascaleDbStorageVault. */ + public UnaryCallSettings.Builder + getExascaleDbStorageVaultSettings() { + return getExascaleDbStorageVaultSettings; + } + + /** Returns the builder for the settings used for calls to createExascaleDbStorageVault. */ + public UnaryCallSettings.Builder + createExascaleDbStorageVaultSettings() { + return createExascaleDbStorageVaultSettings; + } + + /** Returns the builder for the settings used for calls to createExascaleDbStorageVault. */ + public OperationCallSettings.Builder< + CreateExascaleDbStorageVaultRequest, ExascaleDbStorageVault, OperationMetadata> + createExascaleDbStorageVaultOperationSettings() { + return createExascaleDbStorageVaultOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteExascaleDbStorageVault. */ + public UnaryCallSettings.Builder + deleteExascaleDbStorageVaultSettings() { + return deleteExascaleDbStorageVaultSettings; + } + + /** Returns the builder for the settings used for calls to deleteExascaleDbStorageVault. */ + public OperationCallSettings.Builder< + DeleteExascaleDbStorageVaultRequest, Empty, OperationMetadata> + deleteExascaleDbStorageVaultOperationSettings() { + return deleteExascaleDbStorageVaultOperationSettings; + } + + /** Returns the builder for the settings used for calls to listDbSystemInitialStorageSizes. */ + public PagedCallSettings.Builder< + ListDbSystemInitialStorageSizesRequest, + ListDbSystemInitialStorageSizesResponse, + ListDbSystemInitialStorageSizesPagedResponse> + listDbSystemInitialStorageSizesSettings() { + return listDbSystemInitialStorageSizesSettings; + } + + /** Returns the builder for the settings used for calls to listDatabases. */ + public PagedCallSettings.Builder< + ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse> + listDatabasesSettings() { + return listDatabasesSettings; + } + + /** Returns the builder for the settings used for calls to getDatabase. */ + public UnaryCallSettings.Builder getDatabaseSettings() { + return getDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to listPluggableDatabases. */ + public PagedCallSettings.Builder< + ListPluggableDatabasesRequest, + ListPluggableDatabasesResponse, + ListPluggableDatabasesPagedResponse> + listPluggableDatabasesSettings() { + return listPluggableDatabasesSettings; + } + + /** Returns the builder for the settings used for calls to getPluggableDatabase. */ + public UnaryCallSettings.Builder + getPluggableDatabaseSettings() { + return getPluggableDatabaseSettings; + } + + /** Returns the builder for the settings used for calls to listDbSystems. */ + public PagedCallSettings.Builder< + ListDbSystemsRequest, ListDbSystemsResponse, ListDbSystemsPagedResponse> + listDbSystemsSettings() { + return listDbSystemsSettings; + } + + /** Returns the builder for the settings used for calls to getDbSystem. */ + public UnaryCallSettings.Builder getDbSystemSettings() { + return getDbSystemSettings; + } + + /** Returns the builder for the settings used for calls to createDbSystem. */ + public UnaryCallSettings.Builder createDbSystemSettings() { + return createDbSystemSettings; + } + + /** Returns the builder for the settings used for calls to createDbSystem. */ + public OperationCallSettings.Builder + createDbSystemOperationSettings() { + return createDbSystemOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteDbSystem. */ + public UnaryCallSettings.Builder deleteDbSystemSettings() { + return deleteDbSystemSettings; + } + + /** Returns the builder for the settings used for calls to deleteDbSystem. */ + public OperationCallSettings.Builder + deleteDbSystemOperationSettings() { + return deleteDbSystemOperationSettings; + } + + /** Returns the builder for the settings used for calls to listDbVersions. */ + public PagedCallSettings.Builder< + ListDbVersionsRequest, ListDbVersionsResponse, ListDbVersionsPagedResponse> + listDbVersionsSettings() { + return listDbVersionsSettings; + } + + /** Returns the builder for the settings used for calls to listDatabaseCharacterSets. */ + public PagedCallSettings.Builder< + ListDatabaseCharacterSetsRequest, + ListDatabaseCharacterSetsResponse, + ListDatabaseCharacterSetsPagedResponse> + listDatabaseCharacterSetsSettings() { + return listDatabaseCharacterSetsSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json index 0deaefef790a..e833419ca438 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json @@ -980,6 +980,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.oracledatabase.v1.ComputeModel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest", "queryAllDeclaredConstructors": true, @@ -990,7 +999,1573 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateDbSystemRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateDbSystemRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CustomerContact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.CustomerContact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DBWorkload", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.Database", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.Database$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.Database$OperationsInsightsStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseCharacterSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseCharacterSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseCharacterSet$CharacterSetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$ConsumerGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$HostFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$Protocol", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$SessionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$SyntaxFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$TLSAuthentication", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseManagementConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseManagementConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseManagementConfig$ManagementState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseManagementConfig$ManagementType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DatabaseProperties$DatabaseLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbBackupConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbBackupConfig$BackupDeletionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbBackupConfig$BackupDestinationDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbBackupConfig$BackupDestinationDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbBackupConfig$BackupDestinationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbBackupConfig$BackupWindow", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbBackupConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbHome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbHome$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNode$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNodeProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNodeProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbNodeProperties$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServerProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServerProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbServerProperties$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystem", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystem$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties$ShapeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties$StorageManagement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemOptions$StorageManagement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemProperties$ComputeModel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemProperties$DbSystemDatabaseEdition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemProperties$DbSystemLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemProperties$LicenseModel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemShape", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbSystemShape$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbVersionProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DbVersionProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.EncryptionKey", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.EncryptionKey$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.EncryptionKey$Provider", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.Entitlement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.Entitlement$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.Entitlement$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExadbVmCluster", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExadbVmCluster$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties$ExadbVmClusterLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties$LicenseModel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties$ShapeAttribute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties$ShapeAttribute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GenerateType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetDbSystemRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetDbSystemRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GiVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.GiVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.IdentityConnector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.IdentityConnector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.IdentityConnector$ConnectionState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest", + "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest", + "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.CustomerContact", + "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.CustomerContact$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DBWorkload", + "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptions", + "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DataCollectionOptions$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile", + "name": "com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$ConsumerGroup", + "name": "com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$HostFormat", + "name": "com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$Protocol", + "name": "com.google.cloud.oracledatabase.v1.ListDatabasesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$SessionMode", + "name": "com.google.cloud.oracledatabase.v1.ListDatabasesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$SyntaxFormat", + "name": "com.google.cloud.oracledatabase.v1.ListDatabasesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile$TLSAuthentication", + "name": "com.google.cloud.oracledatabase.v1.ListDatabasesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbNode", + "name": "com.google.cloud.oracledatabase.v1.ListDbNodesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbNode$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbNodesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbNodeProperties", + "name": "com.google.cloud.oracledatabase.v1.ListDbNodesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbNodeProperties$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbNodesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbNodeProperties$State", + "name": "com.google.cloud.oracledatabase.v1.ListDbServersRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbServer", + "name": "com.google.cloud.oracledatabase.v1.ListDbServersRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbServer$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbServersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbServerProperties", + "name": "com.google.cloud.oracledatabase.v1.ListDbServersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbServerProperties$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbServerProperties$State", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbSystemShape", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DbSystemShape$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.Entitlement", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.Entitlement$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbSystemsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.Entitlement$State", + "name": "com.google.cloud.oracledatabase.v1.ListDbVersionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest", + "name": "com.google.cloud.oracledatabase.v1.ListDbVersionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListDbVersionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse", + "name": "com.google.cloud.oracledatabase.v1.ListDbVersionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GenerateType", + "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest", + "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest", + "name": "com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest", + "name": "com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GiVersion", + "name": "com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.GiVersion$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +3033,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest", + "name": "com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +3042,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +3051,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse", + "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +3060,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +3069,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest", + "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +3078,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +3087,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse", + "name": "com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +3096,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +3105,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest", + "name": "com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +3114,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +3123,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse", + "name": "com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +3132,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +3141,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest", + "name": "com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +3150,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +3159,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse", + "name": "com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +3168,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +3177,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest", + "name": "com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse", + "name": "com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +3204,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +3213,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest", + "name": "com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +3222,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +3231,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse", + "name": "com.google.cloud.oracledatabase.v1.LocationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +3240,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.LocationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +3249,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbNodesRequest", + "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +3258,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbNodesRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +3267,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbNodesResponse", + "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow$MaintenanceWindowPreference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +3276,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbNodesResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow$PatchingMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +3285,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbServersRequest", + "name": "com.google.cloud.oracledatabase.v1.MinorVersion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +3294,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbServersRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.MinorVersion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +3303,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbServersResponse", + "name": "com.google.cloud.oracledatabase.v1.OdbNetwork", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +3312,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbServersResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.OdbNetwork$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +3321,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest", + "name": "com.google.cloud.oracledatabase.v1.OdbNetwork$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +3330,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.OdbSubnet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +3339,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse", + "name": "com.google.cloud.oracledatabase.v1.OdbSubnet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +3348,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.OdbSubnet$Purpose", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +3357,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsRequest", + "name": "com.google.cloud.oracledatabase.v1.OdbSubnet$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +3366,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.OperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +3375,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsResponse", + "name": "com.google.cloud.oracledatabase.v1.OperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +3384,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListEntitlementsResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.OperationsInsightsState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +3393,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsRequest", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabase", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +3402,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsRequest$Builder", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabase$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +3411,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsResponse", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +3420,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.ListGiVersionsResponse$Builder", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +3429,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.LocationMetadata", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +3438,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.LocationMetadata$Builder", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +3447,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails$PluggableDatabaseOpenMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +3456,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow$Builder", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +3465,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow$MaintenanceWindowPreference", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +3474,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.MaintenanceWindow$PatchingMode", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties$DefinedTagValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +3483,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.OperationMetadata", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties$DefinedTagValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +3492,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.OperationMetadata$Builder", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties$OperationsInsightsState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +3501,25 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.oracledatabase.v1.OperationsInsightsState", + "name": "com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties$PluggableDatabaseLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1988,6 +3581,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.oracledatabase.v1.SourceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.SourceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest", "queryAllDeclaredConstructors": true, @@ -2033,6 +3644,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.oracledatabase.v1.StorageSizeDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.StorageSizeDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, @@ -2960,6 +4643,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Timestamp", "queryAllDeclaredConstructors": true, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java index e0d6f21c5e48..cbcc7073d959 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java @@ -320,6 +320,28 @@ public void listGiVersions( } } + @Override + public void listMinorVersions( + ListMinorVersionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMinorVersionsResponse) { + requests.add(request); + responseObserver.onNext(((ListMinorVersionsResponse) 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 ListMinorVersions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMinorVersionsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listDbSystemShapes( ListDbSystemShapesRequest request, @@ -409,6 +431,28 @@ public void createAutonomousDatabase( } } + @Override + public void updateAutonomousDatabase( + UpdateAutonomousDatabaseRequest 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 UpdateAutonomousDatabase, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteAutonomousDatabase( DeleteAutonomousDatabaseRequest request, StreamObserver responseObserver) { @@ -610,4 +654,674 @@ public void restartAutonomousDatabase( Exception.class.getName()))); } } + + @Override + public void switchoverAutonomousDatabase( + SwitchoverAutonomousDatabaseRequest 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 SwitchoverAutonomousDatabase, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void failoverAutonomousDatabase( + FailoverAutonomousDatabaseRequest 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 FailoverAutonomousDatabase, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listOdbNetworks( + ListOdbNetworksRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOdbNetworksResponse) { + requests.add(request); + responseObserver.onNext(((ListOdbNetworksResponse) 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 ListOdbNetworks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListOdbNetworksResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getOdbNetwork( + GetOdbNetworkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof OdbNetwork) { + requests.add(request); + responseObserver.onNext(((OdbNetwork) 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 GetOdbNetwork, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + OdbNetwork.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createOdbNetwork( + CreateOdbNetworkRequest 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 CreateOdbNetwork, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteOdbNetwork( + DeleteOdbNetworkRequest 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 DeleteOdbNetwork, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listOdbSubnets( + ListOdbSubnetsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOdbSubnetsResponse) { + requests.add(request); + responseObserver.onNext(((ListOdbSubnetsResponse) 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 ListOdbSubnets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListOdbSubnetsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getOdbSubnet( + GetOdbSubnetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof OdbSubnet) { + requests.add(request); + responseObserver.onNext(((OdbSubnet) 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 GetOdbSubnet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + OdbSubnet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createOdbSubnet( + CreateOdbSubnetRequest 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 CreateOdbSubnet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteOdbSubnet( + DeleteOdbSubnetRequest 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 DeleteOdbSubnet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExadbVmClusters( + ListExadbVmClustersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExadbVmClustersResponse) { + requests.add(request); + responseObserver.onNext(((ListExadbVmClustersResponse) 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 ListExadbVmClusters, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExadbVmClustersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getExadbVmCluster( + GetExadbVmClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExadbVmCluster) { + requests.add(request); + responseObserver.onNext(((ExadbVmCluster) 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 GetExadbVmCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExadbVmCluster.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createExadbVmCluster( + CreateExadbVmClusterRequest 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 CreateExadbVmCluster, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteExadbVmCluster( + DeleteExadbVmClusterRequest 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 DeleteExadbVmCluster, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateExadbVmCluster( + UpdateExadbVmClusterRequest 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 UpdateExadbVmCluster, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void removeVirtualMachineExadbVmCluster( + RemoveVirtualMachineExadbVmClusterRequest 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 RemoveVirtualMachineExadbVmCluster," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExascaleDbStorageVaults( + ListExascaleDbStorageVaultsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExascaleDbStorageVaultsResponse) { + requests.add(request); + responseObserver.onNext(((ListExascaleDbStorageVaultsResponse) 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 ListExascaleDbStorageVaults, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExascaleDbStorageVaultsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getExascaleDbStorageVault( + GetExascaleDbStorageVaultRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExascaleDbStorageVault) { + requests.add(request); + responseObserver.onNext(((ExascaleDbStorageVault) 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 GetExascaleDbStorageVault, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ExascaleDbStorageVault.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createExascaleDbStorageVault( + CreateExascaleDbStorageVaultRequest 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 CreateExascaleDbStorageVault, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteExascaleDbStorageVault( + DeleteExascaleDbStorageVaultRequest 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 DeleteExascaleDbStorageVault, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDbSystemInitialStorageSizes( + ListDbSystemInitialStorageSizesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDbSystemInitialStorageSizesResponse) { + requests.add(request); + responseObserver.onNext(((ListDbSystemInitialStorageSizesResponse) 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 ListDbSystemInitialStorageSizes," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDbSystemInitialStorageSizesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDatabases( + ListDatabasesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDatabasesResponse) { + requests.add(request); + responseObserver.onNext(((ListDatabasesResponse) 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 ListDatabases, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDatabasesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDatabase(GetDatabaseRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Database) { + requests.add(request); + responseObserver.onNext(((Database) 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 GetDatabase, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Database.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPluggableDatabases( + ListPluggableDatabasesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPluggableDatabasesResponse) { + requests.add(request); + responseObserver.onNext(((ListPluggableDatabasesResponse) 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 ListPluggableDatabases, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListPluggableDatabasesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPluggableDatabase( + GetPluggableDatabaseRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PluggableDatabase) { + requests.add(request); + responseObserver.onNext(((PluggableDatabase) 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 GetPluggableDatabase, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + PluggableDatabase.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDbSystems( + ListDbSystemsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDbSystemsResponse) { + requests.add(request); + responseObserver.onNext(((ListDbSystemsResponse) 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 ListDbSystems, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDbSystemsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDbSystem(GetDbSystemRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DbSystem) { + requests.add(request); + responseObserver.onNext(((DbSystem) 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 GetDbSystem, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DbSystem.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDbSystem( + CreateDbSystemRequest 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 CreateDbSystem, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDbSystem( + DeleteDbSystemRequest 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 DeleteDbSystem, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDbVersions( + ListDbVersionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDbVersionsResponse) { + requests.add(request); + responseObserver.onNext(((ListDbVersionsResponse) 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 ListDbVersions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDbVersionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDatabaseCharacterSets( + ListDatabaseCharacterSetsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDatabaseCharacterSetsResponse) { + requests.add(request); + responseObserver.onNext(((ListDatabaseCharacterSetsResponse) 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 ListDatabaseCharacterSets, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListDatabaseCharacterSetsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java index 4d11a837b91b..9ff49a39af25 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java @@ -22,12 +22,23 @@ import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabasesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExadbVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListMinorVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbNetworksPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbSubnetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListPluggableDatabasesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -48,8 +59,10 @@ import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; @@ -662,13 +675,21 @@ public void getCloudVmClusterTest() throws Exception { "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setDisplayName("displayName1714148973") - .setGcpOracleZone("gcpOracleZone217860222") .setProperties(CloudVmClusterProperties.newBuilder().build()) .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setCidr("cidr3053428") .setBackupSubnetCidr("backupSubnetCidr1087692755") .setNetwork("network1843485230") + .setGcpOracleZone("gcpOracleZone217860222") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setIdentityConnector(IdentityConnector.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -721,13 +742,21 @@ public void getCloudVmClusterTest2() throws Exception { "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setDisplayName("displayName1714148973") - .setGcpOracleZone("gcpOracleZone217860222") .setProperties(CloudVmClusterProperties.newBuilder().build()) .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setCidr("cidr3053428") .setBackupSubnetCidr("backupSubnetCidr1087692755") .setNetwork("network1843485230") + .setGcpOracleZone("gcpOracleZone217860222") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setIdentityConnector(IdentityConnector.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -780,13 +809,21 @@ public void createCloudVmClusterTest() throws Exception { "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setDisplayName("displayName1714148973") - .setGcpOracleZone("gcpOracleZone217860222") .setProperties(CloudVmClusterProperties.newBuilder().build()) .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setCidr("cidr3053428") .setBackupSubnetCidr("backupSubnetCidr1087692755") .setNetwork("network1843485230") + .setGcpOracleZone("gcpOracleZone217860222") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setIdentityConnector(IdentityConnector.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -847,13 +884,21 @@ public void createCloudVmClusterTest2() throws Exception { "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setDisplayName("displayName1714148973") - .setGcpOracleZone("gcpOracleZone217860222") .setProperties(CloudVmClusterProperties.newBuilder().build()) .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setCidr("cidr3053428") .setBackupSubnetCidr("backupSubnetCidr1087692755") .setNetwork("network1843485230") + .setGcpOracleZone("gcpOracleZone217860222") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setIdentityConnector(IdentityConnector.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1265,6 +1310,58 @@ public void listDbNodesTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); + ExadbVmClusterName parent = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + + ListDbNodesPagedResponse pagedListResponse = client.listDbNodes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbNodesList().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 listDbNodesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExadbVmClusterName parent = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + client.listDbNodes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbNodesTest3() throws Exception { + DbNode responsesElement = DbNode.newBuilder().build(); + ListDbNodesResponse expectedResponse = + ListDbNodesResponse.newBuilder() + .setNextPageToken("") + .addAllDbNodes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + String parent = "projects/project-2426/locations/location-2426/cloudVmClusters/cloudVmCluster-2426"; @@ -1291,7 +1388,7 @@ public void listDbNodesTest2() throws Exception { } @Test - public void listDbNodesExceptionTest2() throws Exception { + public void listDbNodesExceptionTest3() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1407,6 +1504,106 @@ public void listGiVersionsExceptionTest2() throws Exception { } } + @Test + public void listMinorVersionsTest() throws Exception { + MinorVersion responsesElement = MinorVersion.newBuilder().build(); + ListMinorVersionsResponse expectedResponse = + ListMinorVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllMinorVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + GiVersionName parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]"); + + ListMinorVersionsPagedResponse pagedListResponse = client.listMinorVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMinorVersionsList().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 listMinorVersionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GiVersionName parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]"); + client.listMinorVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMinorVersionsTest2() throws Exception { + MinorVersion responsesElement = MinorVersion.newBuilder().build(); + ListMinorVersionsResponse expectedResponse = + ListMinorVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllMinorVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8722/locations/location-8722/giVersions/giVersion-8722"; + + ListMinorVersionsPagedResponse pagedListResponse = client.listMinorVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMinorVersionsList().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 listMinorVersionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8722/locations/location-8722/giVersions/giVersion-8722"; + client.listMinorVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listDbSystemShapesTest() throws Exception { DbSystemShape responsesElement = DbSystemShape.newBuilder().build(); @@ -1622,7 +1819,14 @@ public void getAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1679,7 +1883,14 @@ public void getAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1736,7 +1947,14 @@ public void createAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1803,7 +2021,14 @@ public void createAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1855,6 +2080,119 @@ public void createAutonomousDatabaseExceptionTest2() throws Exception { } } + @Test + public void updateAutonomousDatabaseTest() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutonomousDatabase autonomousDatabase = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AutonomousDatabase actualResponse = + client.updateAutonomousDatabaseAsync(autonomousDatabase, 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 updateAutonomousDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutonomousDatabase autonomousDatabase = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork( + OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAutonomousDatabaseAsync(autonomousDatabase, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteAutonomousDatabaseTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -1964,7 +2302,14 @@ public void restoreAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2029,7 +2374,14 @@ public void restoreAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2514,7 +2866,14 @@ public void stopAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2576,7 +2935,14 @@ public void stopAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2638,7 +3004,14 @@ public void startAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2700,7 +3073,14 @@ public void startAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2762,7 +3142,14 @@ public void restartAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2824,7 +3211,14 @@ public void restartAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2871,6 +3265,3687 @@ public void restartAutonomousDatabaseExceptionTest2() throws Exception { } } + @Test + public void switchoverAutonomousDatabaseTest() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + AutonomousDatabase actualResponse = + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 switchoverAutonomousDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void switchoverAutonomousDatabaseTest2() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + + AutonomousDatabase actualResponse = + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 switchoverAutonomousDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void switchoverAutonomousDatabaseTest3() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + AutonomousDatabase actualResponse = + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 switchoverAutonomousDatabaseExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void switchoverAutonomousDatabaseTest4() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + + AutonomousDatabase actualResponse = + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 switchoverAutonomousDatabaseExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void failoverAutonomousDatabaseTest() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("failoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + AutonomousDatabase actualResponse = + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 failoverAutonomousDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void failoverAutonomousDatabaseTest2() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("failoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + + AutonomousDatabase actualResponse = + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 failoverAutonomousDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void failoverAutonomousDatabaseTest3() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("failoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + AutonomousDatabase actualResponse = + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 failoverAutonomousDatabaseExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void failoverAutonomousDatabaseTest4() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("failoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + + AutonomousDatabase actualResponse = + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 failoverAutonomousDatabaseExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8766/locations/location-8766/autonomousDatabases/autonomousDatabase-8766"; + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listOdbNetworksTest() throws Exception { + OdbNetwork responsesElement = OdbNetwork.newBuilder().build(); + ListOdbNetworksResponse expectedResponse = + ListOdbNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllOdbNetworks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOdbNetworksPagedResponse pagedListResponse = client.listOdbNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOdbNetworksList().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 listOdbNetworksExceptionTest() 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.listOdbNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOdbNetworksTest2() throws Exception { + OdbNetwork responsesElement = OdbNetwork.newBuilder().build(); + ListOdbNetworksResponse expectedResponse = + ListOdbNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllOdbNetworks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListOdbNetworksPagedResponse pagedListResponse = client.listOdbNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOdbNetworksList().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 listOdbNetworksExceptionTest2() 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.listOdbNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOdbNetworkTest() throws Exception { + OdbNetwork expectedResponse = + OdbNetwork.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setNetwork("network1843485230") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + mockService.addResponse(expectedResponse); + + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + + OdbNetwork actualResponse = client.getOdbNetwork(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 getOdbNetworkExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + client.getOdbNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOdbNetworkTest2() throws Exception { + OdbNetwork expectedResponse = + OdbNetwork.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setNetwork("network1843485230") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-8312/locations/location-8312/odbNetworks/odbNetwork-8312"; + + OdbNetwork actualResponse = client.getOdbNetwork(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 getOdbNetworkExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-8312/locations/location-8312/odbNetworks/odbNetwork-8312"; + client.getOdbNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOdbNetworkTest() throws Exception { + OdbNetwork expectedResponse = + OdbNetwork.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setNetwork("network1843485230") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOdbNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + + OdbNetwork actualResponse = + client.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).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 createOdbNetworkExceptionTest() 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]"); + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + client.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createOdbNetworkTest2() throws Exception { + OdbNetwork expectedResponse = + OdbNetwork.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setNetwork("network1843485230") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOdbNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + + OdbNetwork actualResponse = + client.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).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 createOdbNetworkExceptionTest2() 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"; + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + client.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOdbNetworkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOdbNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + + client.deleteOdbNetworkAsync(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 deleteOdbNetworkExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + client.deleteOdbNetworkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOdbNetworkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOdbNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-8312/locations/location-8312/odbNetworks/odbNetwork-8312"; + + client.deleteOdbNetworkAsync(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 deleteOdbNetworkExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-8312/locations/location-8312/odbNetworks/odbNetwork-8312"; + client.deleteOdbNetworkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listOdbSubnetsTest() throws Exception { + OdbSubnet responsesElement = OdbSubnet.newBuilder().build(); + ListOdbSubnetsResponse expectedResponse = + ListOdbSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllOdbSubnets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + + ListOdbSubnetsPagedResponse pagedListResponse = client.listOdbSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOdbSubnetsList().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 listOdbSubnetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + client.listOdbSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOdbSubnetsTest2() throws Exception { + OdbSubnet responsesElement = OdbSubnet.newBuilder().build(); + ListOdbSubnetsResponse expectedResponse = + ListOdbSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllOdbSubnets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2537/locations/location-2537/odbNetworks/odbNetwork-2537"; + + ListOdbSubnetsPagedResponse pagedListResponse = client.listOdbSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOdbSubnetsList().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 listOdbSubnetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2537/locations/location-2537/odbNetworks/odbNetwork-2537"; + client.listOdbSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOdbSubnetTest() throws Exception { + OdbSubnet expectedResponse = + OdbSubnet.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setCidrRange("cidrRange1660631593") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + + OdbSubnet actualResponse = client.getOdbSubnet(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 getOdbSubnetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + client.getOdbSubnet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOdbSubnetTest2() throws Exception { + OdbSubnet expectedResponse = + OdbSubnet.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setCidrRange("cidrRange1660631593") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9755/locations/location-9755/odbNetworks/odbNetwork-9755/odbSubnets/odbSubnet-9755"; + + OdbSubnet actualResponse = client.getOdbSubnet(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 getOdbSubnetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9755/locations/location-9755/odbNetworks/odbNetwork-9755/odbSubnets/odbSubnet-9755"; + client.getOdbSubnet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOdbSubnetTest() throws Exception { + OdbSubnet expectedResponse = + OdbSubnet.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setCidrRange("cidrRange1660631593") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOdbSubnetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + + OdbSubnet actualResponse = client.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).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 createOdbSubnetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + client.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createOdbSubnetTest2() throws Exception { + OdbSubnet expectedResponse = + OdbSubnet.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setCidrRange("cidrRange1660631593") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOdbSubnetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-2537/locations/location-2537/odbNetworks/odbNetwork-2537"; + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + + OdbSubnet actualResponse = client.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).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 createOdbSubnetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2537/locations/location-2537/odbNetworks/odbNetwork-2537"; + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + client.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOdbSubnetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOdbSubnetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + + client.deleteOdbSubnetAsync(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 deleteOdbSubnetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + client.deleteOdbSubnetAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOdbSubnetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOdbSubnetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9755/locations/location-9755/odbNetworks/odbNetwork-9755/odbSubnets/odbSubnet-9755"; + + client.deleteOdbSubnetAsync(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 deleteOdbSubnetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9755/locations/location-9755/odbNetworks/odbNetwork-9755/odbSubnets/odbSubnet-9755"; + client.deleteOdbSubnetAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listExadbVmClustersTest() throws Exception { + ExadbVmCluster responsesElement = ExadbVmCluster.newBuilder().build(); + ListExadbVmClustersResponse expectedResponse = + ListExadbVmClustersResponse.newBuilder() + .setNextPageToken("") + .addAllExadbVmClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListExadbVmClustersPagedResponse pagedListResponse = client.listExadbVmClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExadbVmClustersList().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 listExadbVmClustersExceptionTest() 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.listExadbVmClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExadbVmClustersTest2() throws Exception { + ExadbVmCluster responsesElement = ExadbVmCluster.newBuilder().build(); + ListExadbVmClustersResponse expectedResponse = + ListExadbVmClustersResponse.newBuilder() + .setNextPageToken("") + .addAllExadbVmClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListExadbVmClustersPagedResponse pagedListResponse = client.listExadbVmClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExadbVmClustersList().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 listExadbVmClustersExceptionTest2() 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.listExadbVmClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExadbVmClusterTest() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + mockService.addResponse(expectedResponse); + + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + + ExadbVmCluster actualResponse = client.getExadbVmCluster(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 getExadbVmClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + client.getExadbVmCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExadbVmClusterTest2() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6130/locations/location-6130/exadbVmClusters/exadbVmCluster-6130"; + + ExadbVmCluster actualResponse = client.getExadbVmCluster(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 getExadbVmClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6130/locations/location-6130/exadbVmClusters/exadbVmCluster-6130"; + client.getExadbVmCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExadbVmClusterTest() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + + ExadbVmCluster actualResponse = + client.createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId).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 createExadbVmClusterExceptionTest() 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]"); + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + client.createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createExadbVmClusterTest2() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + + ExadbVmCluster actualResponse = + client.createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId).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 createExadbVmClusterExceptionTest2() 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"; + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + client.createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExadbVmClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + + client.deleteExadbVmClusterAsync(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 deleteExadbVmClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + client.deleteExadbVmClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExadbVmClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6130/locations/location-6130/exadbVmClusters/exadbVmCluster-6130"; + + client.deleteExadbVmClusterAsync(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 deleteExadbVmClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6130/locations/location-6130/exadbVmClusters/exadbVmCluster-6130"; + client.deleteExadbVmClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateExadbVmClusterTest() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExadbVmCluster exadbVmCluster = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ExadbVmCluster actualResponse = + client.updateExadbVmClusterAsync(exadbVmCluster, 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 updateExadbVmClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExadbVmCluster exadbVmCluster = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork( + OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExadbVmClusterAsync(exadbVmCluster, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void removeVirtualMachineExadbVmClusterTest() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("removeVirtualMachineExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + List hostnames = new ArrayList<>(); + + ExadbVmCluster actualResponse = + client.removeVirtualMachineExadbVmClusterAsync(name, hostnames).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 removeVirtualMachineExadbVmClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + List hostnames = new ArrayList<>(); + client.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void removeVirtualMachineExadbVmClusterTest2() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("removeVirtualMachineExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6130/locations/location-6130/exadbVmClusters/exadbVmCluster-6130"; + List hostnames = new ArrayList<>(); + + ExadbVmCluster actualResponse = + client.removeVirtualMachineExadbVmClusterAsync(name, hostnames).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 removeVirtualMachineExadbVmClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6130/locations/location-6130/exadbVmClusters/exadbVmCluster-6130"; + List hostnames = new ArrayList<>(); + client.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listExascaleDbStorageVaultsTest() throws Exception { + ExascaleDbStorageVault responsesElement = ExascaleDbStorageVault.newBuilder().build(); + ListExascaleDbStorageVaultsResponse expectedResponse = + ListExascaleDbStorageVaultsResponse.newBuilder() + .setNextPageToken("") + .addAllExascaleDbStorageVaults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListExascaleDbStorageVaultsPagedResponse pagedListResponse = + client.listExascaleDbStorageVaults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExascaleDbStorageVaultsList().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 listExascaleDbStorageVaultsExceptionTest() 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.listExascaleDbStorageVaults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExascaleDbStorageVaultsTest2() throws Exception { + ExascaleDbStorageVault responsesElement = ExascaleDbStorageVault.newBuilder().build(); + ListExascaleDbStorageVaultsResponse expectedResponse = + ListExascaleDbStorageVaultsResponse.newBuilder() + .setNextPageToken("") + .addAllExascaleDbStorageVaults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListExascaleDbStorageVaultsPagedResponse pagedListResponse = + client.listExascaleDbStorageVaults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExascaleDbStorageVaultsList().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 listExascaleDbStorageVaultsExceptionTest2() 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.listExascaleDbStorageVaults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExascaleDbStorageVaultTest() throws Exception { + ExascaleDbStorageVault expectedResponse = + ExascaleDbStorageVault.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(ExascaleDbStorageVaultProperties.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + + ExascaleDbStorageVault actualResponse = client.getExascaleDbStorageVault(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 getExascaleDbStorageVaultExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + client.getExascaleDbStorageVault(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExascaleDbStorageVaultTest2() throws Exception { + ExascaleDbStorageVault expectedResponse = + ExascaleDbStorageVault.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(ExascaleDbStorageVaultProperties.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6696/locations/location-6696/exascaleDbStorageVaults/exascaleDbStorageVault-6696"; + + ExascaleDbStorageVault actualResponse = client.getExascaleDbStorageVault(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 getExascaleDbStorageVaultExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6696/locations/location-6696/exascaleDbStorageVaults/exascaleDbStorageVault-6696"; + client.getExascaleDbStorageVault(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExascaleDbStorageVaultTest() throws Exception { + ExascaleDbStorageVault expectedResponse = + ExascaleDbStorageVault.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(ExascaleDbStorageVaultProperties.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExascaleDbStorageVaultTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + + ExascaleDbStorageVault actualResponse = + client + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .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 createExascaleDbStorageVaultExceptionTest() 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]"); + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + client + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createExascaleDbStorageVaultTest2() throws Exception { + ExascaleDbStorageVault expectedResponse = + ExascaleDbStorageVault.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(ExascaleDbStorageVaultProperties.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExascaleDbStorageVaultTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + + ExascaleDbStorageVault actualResponse = + client + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .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 createExascaleDbStorageVaultExceptionTest2() 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"; + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + client + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExascaleDbStorageVaultTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExascaleDbStorageVaultTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + + client.deleteExascaleDbStorageVaultAsync(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 deleteExascaleDbStorageVaultExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + client.deleteExascaleDbStorageVaultAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExascaleDbStorageVaultTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExascaleDbStorageVaultTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6696/locations/location-6696/exascaleDbStorageVaults/exascaleDbStorageVault-6696"; + + client.deleteExascaleDbStorageVaultAsync(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 deleteExascaleDbStorageVaultExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6696/locations/location-6696/exascaleDbStorageVaults/exascaleDbStorageVault-6696"; + client.deleteExascaleDbStorageVaultAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listDbSystemInitialStorageSizesTest() throws Exception { + DbSystemInitialStorageSize responsesElement = DbSystemInitialStorageSize.newBuilder().build(); + ListDbSystemInitialStorageSizesResponse expectedResponse = + ListDbSystemInitialStorageSizesResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystemInitialStorageSizes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDbSystemInitialStorageSizesPagedResponse pagedListResponse = + client.listDbSystemInitialStorageSizes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDbSystemInitialStorageSizesList().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 listDbSystemInitialStorageSizesExceptionTest() 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.listDbSystemInitialStorageSizes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbSystemInitialStorageSizesTest2() throws Exception { + DbSystemInitialStorageSize responsesElement = DbSystemInitialStorageSize.newBuilder().build(); + ListDbSystemInitialStorageSizesResponse expectedResponse = + ListDbSystemInitialStorageSizesResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystemInitialStorageSizes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDbSystemInitialStorageSizesPagedResponse pagedListResponse = + client.listDbSystemInitialStorageSizes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDbSystemInitialStorageSizesList().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 listDbSystemInitialStorageSizesExceptionTest2() 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.listDbSystemInitialStorageSizes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabasesTest() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().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 listDatabasesExceptionTest() 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.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabasesTest2() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().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 listDatabasesExceptionTest2() 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.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString()) + .setDbName("dbName-1339126743") + .setDbUniqueName("dbUniqueName-1793979110") + .setAdminPassword("adminPassword-95067382") + .setTdeWalletPassword("tdeWalletPassword727082249") + .setCharacterSet("characterSet-1443214215") + .setNcharacterSet("ncharacterSet642193383") + .setOciUrl("ociUrl-1022489574") + .setCreateTime(Timestamp.newBuilder().build()) + .setProperties(DatabaseProperties.newBuilder().build()) + .setDatabaseId("databaseId1688905718") + .setDbHomeName("dbHomeName364867240") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + mockService.addResponse(expectedResponse); + + DatabaseName name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]"); + + Database actualResponse = client.getDatabase(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 getDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatabaseName name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]"); + client.getDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString()) + .setDbName("dbName-1339126743") + .setDbUniqueName("dbUniqueName-1793979110") + .setAdminPassword("adminPassword-95067382") + .setTdeWalletPassword("tdeWalletPassword727082249") + .setCharacterSet("characterSet-1443214215") + .setNcharacterSet("ncharacterSet642193383") + .setOciUrl("ociUrl-1022489574") + .setCreateTime(Timestamp.newBuilder().build()) + .setProperties(DatabaseProperties.newBuilder().build()) + .setDatabaseId("databaseId1688905718") + .setDbHomeName("dbHomeName364867240") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1522/locations/location-1522/databases/database-1522"; + + Database actualResponse = client.getDatabase(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 getDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1522/locations/location-1522/databases/database-1522"; + client.getDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPluggableDatabasesTest() throws Exception { + PluggableDatabase responsesElement = PluggableDatabase.newBuilder().build(); + ListPluggableDatabasesResponse expectedResponse = + ListPluggableDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllPluggableDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPluggableDatabasesPagedResponse pagedListResponse = client.listPluggableDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPluggableDatabasesList().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 listPluggableDatabasesExceptionTest() 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.listPluggableDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPluggableDatabasesTest2() throws Exception { + PluggableDatabase responsesElement = PluggableDatabase.newBuilder().build(); + ListPluggableDatabasesResponse expectedResponse = + ListPluggableDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllPluggableDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListPluggableDatabasesPagedResponse pagedListResponse = client.listPluggableDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPluggableDatabasesList().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 listPluggableDatabasesExceptionTest2() 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.listPluggableDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPluggableDatabaseTest() throws Exception { + PluggableDatabase expectedResponse = + PluggableDatabase.newBuilder() + .setName( + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]") + .toString()) + .setProperties(PluggableDatabaseProperties.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PluggableDatabaseName name = + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]"); + + PluggableDatabase actualResponse = client.getPluggableDatabase(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 getPluggableDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PluggableDatabaseName name = + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]"); + client.getPluggableDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPluggableDatabaseTest2() throws Exception { + PluggableDatabase expectedResponse = + PluggableDatabase.newBuilder() + .setName( + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]") + .toString()) + .setProperties(PluggableDatabaseProperties.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-219/locations/location-219/pluggableDatabases/pluggableDatabase-219"; + + PluggableDatabase actualResponse = client.getPluggableDatabase(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 getPluggableDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-219/locations/location-219/pluggableDatabases/pluggableDatabase-219"; + client.getPluggableDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbSystemsTest() throws Exception { + DbSystem responsesElement = DbSystem.newBuilder().build(); + ListDbSystemsResponse expectedResponse = + ListDbSystemsResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDbSystemsPagedResponse pagedListResponse = client.listDbSystems(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbSystemsList().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 listDbSystemsExceptionTest() 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.listDbSystems(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbSystemsTest2() throws Exception { + DbSystem responsesElement = DbSystem.newBuilder().build(); + ListDbSystemsResponse expectedResponse = + ListDbSystemsResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDbSystemsPagedResponse pagedListResponse = client.listDbSystems(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbSystemsList().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 listDbSystemsExceptionTest2() 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.listDbSystems(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDbSystemTest() throws Exception { + DbSystem expectedResponse = + DbSystem.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setProperties(DbSystemProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setEntitlementId("entitlementId-1302274264") + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .build(); + mockService.addResponse(expectedResponse); + + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + + DbSystem actualResponse = client.getDbSystem(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 getDbSystemExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + client.getDbSystem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDbSystemTest2() throws Exception { + DbSystem expectedResponse = + DbSystem.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setProperties(DbSystemProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setEntitlementId("entitlementId-1302274264") + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1220/locations/location-1220/dbSystems/dbSystem-1220"; + + DbSystem actualResponse = client.getDbSystem(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 getDbSystemExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1220/locations/location-1220/dbSystems/dbSystem-1220"; + client.getDbSystem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDbSystemTest() throws Exception { + DbSystem expectedResponse = + DbSystem.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setProperties(DbSystemProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setEntitlementId("entitlementId-1302274264") + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDbSystemTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + + DbSystem actualResponse = client.createDbSystemAsync(parent, dbSystem, dbSystemId).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 createDbSystemExceptionTest() 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]"); + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + client.createDbSystemAsync(parent, dbSystem, dbSystemId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createDbSystemTest2() throws Exception { + DbSystem expectedResponse = + DbSystem.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setProperties(DbSystemProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setEntitlementId("entitlementId-1302274264") + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDbSystemTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + + DbSystem actualResponse = client.createDbSystemAsync(parent, dbSystem, dbSystemId).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 createDbSystemExceptionTest2() 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"; + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + client.createDbSystemAsync(parent, dbSystem, dbSystemId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteDbSystemTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDbSystemTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + + client.deleteDbSystemAsync(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 deleteDbSystemExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + client.deleteDbSystemAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteDbSystemTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDbSystemTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1220/locations/location-1220/dbSystems/dbSystem-1220"; + + client.deleteDbSystemAsync(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 deleteDbSystemExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1220/locations/location-1220/dbSystems/dbSystem-1220"; + client.deleteDbSystemAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listDbVersionsTest() throws Exception { + DbVersion responsesElement = DbVersion.newBuilder().build(); + ListDbVersionsResponse expectedResponse = + ListDbVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllDbVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDbVersionsPagedResponse pagedListResponse = client.listDbVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbVersionsList().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 listDbVersionsExceptionTest() 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.listDbVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbVersionsTest2() throws Exception { + DbVersion responsesElement = DbVersion.newBuilder().build(); + ListDbVersionsResponse expectedResponse = + ListDbVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllDbVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDbVersionsPagedResponse pagedListResponse = client.listDbVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbVersionsList().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 listDbVersionsExceptionTest2() 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.listDbVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseCharacterSetsTest() throws Exception { + DatabaseCharacterSet responsesElement = DatabaseCharacterSet.newBuilder().build(); + ListDatabaseCharacterSetsResponse expectedResponse = + ListDatabaseCharacterSetsResponse.newBuilder() + .setNextPageToken("") + .addAllDatabaseCharacterSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDatabaseCharacterSetsPagedResponse pagedListResponse = + client.listDatabaseCharacterSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabaseCharacterSetsList().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 listDatabaseCharacterSetsExceptionTest() 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.listDatabaseCharacterSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseCharacterSetsTest2() throws Exception { + DatabaseCharacterSet responsesElement = DatabaseCharacterSet.newBuilder().build(); + ListDatabaseCharacterSetsResponse expectedResponse = + ListDatabaseCharacterSetsResponse.newBuilder() + .setNextPageToken("") + .addAllDatabaseCharacterSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDatabaseCharacterSetsPagedResponse pagedListResponse = + client.listDatabaseCharacterSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabaseCharacterSetsList().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 listDatabaseCharacterSetsExceptionTest2() 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.listDatabaseCharacterSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java index d960350258e5..9dec0265e171 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java @@ -22,12 +22,23 @@ import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListAutonomousDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudExadataInfrastructuresPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListCloudVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabaseCharacterSetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDatabasesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbNodesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbServersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemInitialStorageSizesPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemShapesPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbSystemsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListDbVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListEntitlementsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExadbVmClustersPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListExascaleDbStorageVaultsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListGiVersionsPagedResponse; import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListLocationsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListMinorVersionsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbNetworksPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListOdbSubnetsPagedResponse; +import static com.google.cloud.oracledatabase.v1.OracleDatabaseClient.ListPluggableDatabasesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -47,9 +58,11 @@ import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; @@ -631,13 +644,21 @@ public void getCloudVmClusterTest() throws Exception { "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setDisplayName("displayName1714148973") - .setGcpOracleZone("gcpOracleZone217860222") .setProperties(CloudVmClusterProperties.newBuilder().build()) .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setCidr("cidr3053428") .setBackupSubnetCidr("backupSubnetCidr1087692755") .setNetwork("network1843485230") + .setGcpOracleZone("gcpOracleZone217860222") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setIdentityConnector(IdentityConnector.newBuilder().build()) .build(); mockOracleDatabase.addResponse(expectedResponse); @@ -684,13 +705,21 @@ public void getCloudVmClusterTest2() throws Exception { "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setDisplayName("displayName1714148973") - .setGcpOracleZone("gcpOracleZone217860222") .setProperties(CloudVmClusterProperties.newBuilder().build()) .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setCidr("cidr3053428") .setBackupSubnetCidr("backupSubnetCidr1087692755") .setNetwork("network1843485230") + .setGcpOracleZone("gcpOracleZone217860222") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setIdentityConnector(IdentityConnector.newBuilder().build()) .build(); mockOracleDatabase.addResponse(expectedResponse); @@ -735,13 +764,21 @@ public void createCloudVmClusterTest() throws Exception { "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setDisplayName("displayName1714148973") - .setGcpOracleZone("gcpOracleZone217860222") .setProperties(CloudVmClusterProperties.newBuilder().build()) .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setCidr("cidr3053428") .setBackupSubnetCidr("backupSubnetCidr1087692755") .setNetwork("network1843485230") + .setGcpOracleZone("gcpOracleZone217860222") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setIdentityConnector(IdentityConnector.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -802,13 +839,21 @@ public void createCloudVmClusterTest2() throws Exception { "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") .toString()) .setDisplayName("displayName1714148973") - .setGcpOracleZone("gcpOracleZone217860222") .setProperties(CloudVmClusterProperties.newBuilder().build()) .putAllLabels(new HashMap()) .setCreateTime(Timestamp.newBuilder().build()) .setCidr("cidr3053428") .setBackupSubnetCidr("backupSubnetCidr1087692755") .setNetwork("network1843485230") + .setGcpOracleZone("gcpOracleZone217860222") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setIdentityConnector(IdentityConnector.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1182,6 +1227,52 @@ public void listDbNodesTest2() throws Exception { .build(); mockOracleDatabase.addResponse(expectedResponse); + ExadbVmClusterName parent = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + + ListDbNodesPagedResponse pagedListResponse = client.listDbNodes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbNodesList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDbNodesRequest actualRequest = ((ListDbNodesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDbNodesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + ExadbVmClusterName parent = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + client.listDbNodes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbNodesTest3() throws Exception { + DbNode responsesElement = DbNode.newBuilder().build(); + ListDbNodesResponse expectedResponse = + ListDbNodesResponse.newBuilder() + .setNextPageToken("") + .addAllDbNodes(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + String parent = "parent-995424086"; ListDbNodesPagedResponse pagedListResponse = client.listDbNodes(parent); @@ -1203,7 +1294,7 @@ public void listDbNodesTest2() throws Exception { } @Test - public void listDbNodesExceptionTest2() throws Exception { + public void listDbNodesExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockOracleDatabase.addException(exception); @@ -1304,6 +1395,94 @@ public void listGiVersionsExceptionTest2() throws Exception { } } + @Test + public void listMinorVersionsTest() throws Exception { + MinorVersion responsesElement = MinorVersion.newBuilder().build(); + ListMinorVersionsResponse expectedResponse = + ListMinorVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllMinorVersions(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + GiVersionName parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]"); + + ListMinorVersionsPagedResponse pagedListResponse = client.listMinorVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMinorVersionsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMinorVersionsRequest actualRequest = ((ListMinorVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMinorVersionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + GiVersionName parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]"); + client.listMinorVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMinorVersionsTest2() throws Exception { + MinorVersion responsesElement = MinorVersion.newBuilder().build(); + ListMinorVersionsResponse expectedResponse = + ListMinorVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllMinorVersions(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMinorVersionsPagedResponse pagedListResponse = client.listMinorVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMinorVersionsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMinorVersionsRequest actualRequest = ((ListMinorVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMinorVersionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMinorVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listDbSystemShapesTest() throws Exception { DbSystemShape responsesElement = DbSystemShape.newBuilder().build(); @@ -1497,7 +1676,14 @@ public void getAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); mockOracleDatabase.addResponse(expectedResponse); @@ -1549,7 +1735,14 @@ public void getAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); mockOracleDatabase.addResponse(expectedResponse); @@ -1599,7 +1792,14 @@ public void createAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1666,7 +1866,14 @@ public void createAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1718,6 +1925,75 @@ public void createAutonomousDatabaseExceptionTest2() throws Exception { } } + @Test + public void updateAutonomousDatabaseTest() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AutonomousDatabase actualResponse = + client.updateAutonomousDatabaseAsync(autonomousDatabase, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAutonomousDatabaseRequest actualRequest = + ((UpdateAutonomousDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(autonomousDatabase, actualRequest.getAutonomousDatabase()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAutonomousDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAutonomousDatabaseAsync(autonomousDatabase, 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 deleteAutonomousDatabaseTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -1821,7 +2097,14 @@ public void restoreAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1885,7 +2168,14 @@ public void restoreAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2331,7 +2621,14 @@ public void stopAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2391,7 +2688,14 @@ public void stopAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2449,7 +2753,14 @@ public void startAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2509,7 +2820,14 @@ public void startAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2567,7 +2885,14 @@ public void restartAutonomousDatabaseTest() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2627,7 +2952,14 @@ public void restartAutonomousDatabaseTest2() throws Exception { .putAllLabels(new HashMap()) .setNetwork("network1843485230") .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2670,6 +3002,3397 @@ public void restartAutonomousDatabaseExceptionTest2() throws Exception { } } + @Test + public void switchoverAutonomousDatabaseTest() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + AutonomousDatabase actualResponse = + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SwitchoverAutonomousDatabaseRequest actualRequest = + ((SwitchoverAutonomousDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + peerAutonomousDatabase.toString(), actualRequest.getPeerAutonomousDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void switchoverAutonomousDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 switchoverAutonomousDatabaseTest2() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + + AutonomousDatabase actualResponse = + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SwitchoverAutonomousDatabaseRequest actualRequest = + ((SwitchoverAutonomousDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(peerAutonomousDatabase, actualRequest.getPeerAutonomousDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void switchoverAutonomousDatabaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 switchoverAutonomousDatabaseTest3() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + AutonomousDatabase actualResponse = + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SwitchoverAutonomousDatabaseRequest actualRequest = + ((SwitchoverAutonomousDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + peerAutonomousDatabase.toString(), actualRequest.getPeerAutonomousDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void switchoverAutonomousDatabaseExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 switchoverAutonomousDatabaseTest4() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("switchoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + + AutonomousDatabase actualResponse = + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SwitchoverAutonomousDatabaseRequest actualRequest = + ((SwitchoverAutonomousDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(peerAutonomousDatabase, actualRequest.getPeerAutonomousDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void switchoverAutonomousDatabaseExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + client.switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 failoverAutonomousDatabaseTest() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("failoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + AutonomousDatabase actualResponse = + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FailoverAutonomousDatabaseRequest actualRequest = + ((FailoverAutonomousDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + peerAutonomousDatabase.toString(), actualRequest.getPeerAutonomousDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void failoverAutonomousDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 failoverAutonomousDatabaseTest2() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("failoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + + AutonomousDatabase actualResponse = + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FailoverAutonomousDatabaseRequest actualRequest = + ((FailoverAutonomousDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(peerAutonomousDatabase, actualRequest.getPeerAutonomousDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void failoverAutonomousDatabaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 failoverAutonomousDatabaseTest3() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("failoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + + AutonomousDatabase actualResponse = + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FailoverAutonomousDatabaseRequest actualRequest = + ((FailoverAutonomousDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + peerAutonomousDatabase.toString(), actualRequest.getPeerAutonomousDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void failoverAutonomousDatabaseExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 failoverAutonomousDatabaseTest4() throws Exception { + AutonomousDatabase expectedResponse = + AutonomousDatabase.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setDatabase("database1789464955") + .setDisplayName("displayName1714148973") + .setEntitlementId("entitlementId-1302274264") + .setAdminPassword("adminPassword-95067382") + .setProperties(AutonomousDatabaseProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setCidr("cidr3053428") + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setSourceConfig(SourceConfig.newBuilder().build()) + .addAllPeerAutonomousDatabases(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllDisasterRecoverySupportedLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("failoverAutonomousDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + + AutonomousDatabase actualResponse = + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FailoverAutonomousDatabaseRequest actualRequest = + ((FailoverAutonomousDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(peerAutonomousDatabase, actualRequest.getPeerAutonomousDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void failoverAutonomousDatabaseExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + String peerAutonomousDatabase = "peerAutonomousDatabase-1153991155"; + client.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).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 listOdbNetworksTest() throws Exception { + OdbNetwork responsesElement = OdbNetwork.newBuilder().build(); + ListOdbNetworksResponse expectedResponse = + ListOdbNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllOdbNetworks(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOdbNetworksPagedResponse pagedListResponse = client.listOdbNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOdbNetworksList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOdbNetworksRequest actualRequest = ((ListOdbNetworksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOdbNetworksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listOdbNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOdbNetworksTest2() throws Exception { + OdbNetwork responsesElement = OdbNetwork.newBuilder().build(); + ListOdbNetworksResponse expectedResponse = + ListOdbNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllOdbNetworks(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListOdbNetworksPagedResponse pagedListResponse = client.listOdbNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOdbNetworksList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOdbNetworksRequest actualRequest = ((ListOdbNetworksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOdbNetworksExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOdbNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOdbNetworkTest() throws Exception { + OdbNetwork expectedResponse = + OdbNetwork.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setNetwork("network1843485230") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + + OdbNetwork actualResponse = client.getOdbNetwork(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOdbNetworkRequest actualRequest = ((GetOdbNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOdbNetworkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + client.getOdbNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOdbNetworkTest2() throws Exception { + OdbNetwork expectedResponse = + OdbNetwork.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setNetwork("network1843485230") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String name = "name3373707"; + + OdbNetwork actualResponse = client.getOdbNetwork(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOdbNetworkRequest actualRequest = ((GetOdbNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOdbNetworkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.getOdbNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOdbNetworkTest() throws Exception { + OdbNetwork expectedResponse = + OdbNetwork.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setNetwork("network1843485230") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOdbNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + + OdbNetwork actualResponse = + client.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOdbNetworkRequest actualRequest = ((CreateOdbNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(odbNetwork, actualRequest.getOdbNetwork()); + Assert.assertEquals(odbNetworkId, actualRequest.getOdbNetworkId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOdbNetworkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + client.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).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 createOdbNetworkTest2() throws Exception { + OdbNetwork expectedResponse = + OdbNetwork.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setNetwork("network1843485230") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOdbNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String parent = "parent-995424086"; + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + + OdbNetwork actualResponse = + client.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOdbNetworkRequest actualRequest = ((CreateOdbNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(odbNetwork, actualRequest.getOdbNetwork()); + Assert.assertEquals(odbNetworkId, actualRequest.getOdbNetworkId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOdbNetworkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + client.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).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 deleteOdbNetworkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOdbNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + + client.deleteOdbNetworkAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOdbNetworkRequest actualRequest = ((DeleteOdbNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOdbNetworkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + client.deleteOdbNetworkAsync(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 deleteOdbNetworkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOdbNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteOdbNetworkAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOdbNetworkRequest actualRequest = ((DeleteOdbNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOdbNetworkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.deleteOdbNetworkAsync(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 listOdbSubnetsTest() throws Exception { + OdbSubnet responsesElement = OdbSubnet.newBuilder().build(); + ListOdbSubnetsResponse expectedResponse = + ListOdbSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllOdbSubnets(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + + ListOdbSubnetsPagedResponse pagedListResponse = client.listOdbSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOdbSubnetsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOdbSubnetsRequest actualRequest = ((ListOdbSubnetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOdbSubnetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + client.listOdbSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOdbSubnetsTest2() throws Exception { + OdbSubnet responsesElement = OdbSubnet.newBuilder().build(); + ListOdbSubnetsResponse expectedResponse = + ListOdbSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllOdbSubnets(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListOdbSubnetsPagedResponse pagedListResponse = client.listOdbSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOdbSubnetsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOdbSubnetsRequest actualRequest = ((ListOdbSubnetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOdbSubnetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOdbSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOdbSubnetTest() throws Exception { + OdbSubnet expectedResponse = + OdbSubnet.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setCidrRange("cidrRange1660631593") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + + OdbSubnet actualResponse = client.getOdbSubnet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOdbSubnetRequest actualRequest = ((GetOdbSubnetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOdbSubnetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + client.getOdbSubnet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOdbSubnetTest2() throws Exception { + OdbSubnet expectedResponse = + OdbSubnet.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setCidrRange("cidrRange1660631593") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String name = "name3373707"; + + OdbSubnet actualResponse = client.getOdbSubnet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOdbSubnetRequest actualRequest = ((GetOdbSubnetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOdbSubnetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.getOdbSubnet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOdbSubnetTest() throws Exception { + OdbSubnet expectedResponse = + OdbSubnet.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setCidrRange("cidrRange1660631593") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOdbSubnetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + + OdbSubnet actualResponse = client.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOdbSubnetRequest actualRequest = ((CreateOdbSubnetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(odbSubnet, actualRequest.getOdbSubnet()); + Assert.assertEquals(odbSubnetId, actualRequest.getOdbSubnetId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOdbSubnetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + client.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).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 createOdbSubnetTest2() throws Exception { + OdbSubnet expectedResponse = + OdbSubnet.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setCidrRange("cidrRange1660631593") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOdbSubnetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String parent = "parent-995424086"; + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + + OdbSubnet actualResponse = client.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOdbSubnetRequest actualRequest = ((CreateOdbSubnetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(odbSubnet, actualRequest.getOdbSubnet()); + Assert.assertEquals(odbSubnetId, actualRequest.getOdbSubnetId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOdbSubnetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + client.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).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 deleteOdbSubnetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOdbSubnetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + + client.deleteOdbSubnetAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOdbSubnetRequest actualRequest = ((DeleteOdbSubnetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOdbSubnetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + client.deleteOdbSubnetAsync(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 deleteOdbSubnetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOdbSubnetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteOdbSubnetAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOdbSubnetRequest actualRequest = ((DeleteOdbSubnetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOdbSubnetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.deleteOdbSubnetAsync(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 listExadbVmClustersTest() throws Exception { + ExadbVmCluster responsesElement = ExadbVmCluster.newBuilder().build(); + ListExadbVmClustersResponse expectedResponse = + ListExadbVmClustersResponse.newBuilder() + .setNextPageToken("") + .addAllExadbVmClusters(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListExadbVmClustersPagedResponse pagedListResponse = client.listExadbVmClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExadbVmClustersList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExadbVmClustersRequest actualRequest = ((ListExadbVmClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExadbVmClustersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listExadbVmClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExadbVmClustersTest2() throws Exception { + ExadbVmCluster responsesElement = ExadbVmCluster.newBuilder().build(); + ListExadbVmClustersResponse expectedResponse = + ListExadbVmClustersResponse.newBuilder() + .setNextPageToken("") + .addAllExadbVmClusters(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExadbVmClustersPagedResponse pagedListResponse = client.listExadbVmClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExadbVmClustersList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExadbVmClustersRequest actualRequest = ((ListExadbVmClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExadbVmClustersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExadbVmClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExadbVmClusterTest() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + + ExadbVmCluster actualResponse = client.getExadbVmCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExadbVmClusterRequest actualRequest = ((GetExadbVmClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExadbVmClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + client.getExadbVmCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExadbVmClusterTest2() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String name = "name3373707"; + + ExadbVmCluster actualResponse = client.getExadbVmCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExadbVmClusterRequest actualRequest = ((GetExadbVmClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExadbVmClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.getExadbVmCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExadbVmClusterTest() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + + ExadbVmCluster actualResponse = + client.createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExadbVmClusterRequest actualRequest = + ((CreateExadbVmClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(exadbVmCluster, actualRequest.getExadbVmCluster()); + Assert.assertEquals(exadbVmClusterId, actualRequest.getExadbVmClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExadbVmClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + client.createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId).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 createExadbVmClusterTest2() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String parent = "parent-995424086"; + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + + ExadbVmCluster actualResponse = + client.createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExadbVmClusterRequest actualRequest = + ((CreateExadbVmClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(exadbVmCluster, actualRequest.getExadbVmCluster()); + Assert.assertEquals(exadbVmClusterId, actualRequest.getExadbVmClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExadbVmClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + client.createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId).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 deleteExadbVmClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + + client.deleteExadbVmClusterAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExadbVmClusterRequest actualRequest = + ((DeleteExadbVmClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExadbVmClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + client.deleteExadbVmClusterAsync(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 deleteExadbVmClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteExadbVmClusterAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExadbVmClusterRequest actualRequest = + ((DeleteExadbVmClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExadbVmClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.deleteExadbVmClusterAsync(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 updateExadbVmClusterTest() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ExadbVmCluster actualResponse = + client.updateExadbVmClusterAsync(exadbVmCluster, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateExadbVmClusterRequest actualRequest = + ((UpdateExadbVmClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(exadbVmCluster, actualRequest.getExadbVmCluster()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateExadbVmClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExadbVmClusterAsync(exadbVmCluster, 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 removeVirtualMachineExadbVmClusterTest() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("removeVirtualMachineExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + List hostnames = new ArrayList<>(); + + ExadbVmCluster actualResponse = + client.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveVirtualMachineExadbVmClusterRequest actualRequest = + ((RemoveVirtualMachineExadbVmClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(hostnames, actualRequest.getHostnamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeVirtualMachineExadbVmClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + List hostnames = new ArrayList<>(); + client.removeVirtualMachineExadbVmClusterAsync(name, hostnames).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 removeVirtualMachineExadbVmClusterTest2() throws Exception { + ExadbVmCluster expectedResponse = + ExadbVmCluster.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setProperties(ExadbVmClusterProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setBackupOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("removeVirtualMachineExadbVmClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + List hostnames = new ArrayList<>(); + + ExadbVmCluster actualResponse = + client.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveVirtualMachineExadbVmClusterRequest actualRequest = + ((RemoveVirtualMachineExadbVmClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(hostnames, actualRequest.getHostnamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeVirtualMachineExadbVmClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + List hostnames = new ArrayList<>(); + client.removeVirtualMachineExadbVmClusterAsync(name, hostnames).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 listExascaleDbStorageVaultsTest() throws Exception { + ExascaleDbStorageVault responsesElement = ExascaleDbStorageVault.newBuilder().build(); + ListExascaleDbStorageVaultsResponse expectedResponse = + ListExascaleDbStorageVaultsResponse.newBuilder() + .setNextPageToken("") + .addAllExascaleDbStorageVaults(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListExascaleDbStorageVaultsPagedResponse pagedListResponse = + client.listExascaleDbStorageVaults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExascaleDbStorageVaultsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExascaleDbStorageVaultsRequest actualRequest = + ((ListExascaleDbStorageVaultsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExascaleDbStorageVaultsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listExascaleDbStorageVaults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExascaleDbStorageVaultsTest2() throws Exception { + ExascaleDbStorageVault responsesElement = ExascaleDbStorageVault.newBuilder().build(); + ListExascaleDbStorageVaultsResponse expectedResponse = + ListExascaleDbStorageVaultsResponse.newBuilder() + .setNextPageToken("") + .addAllExascaleDbStorageVaults(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExascaleDbStorageVaultsPagedResponse pagedListResponse = + client.listExascaleDbStorageVaults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExascaleDbStorageVaultsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExascaleDbStorageVaultsRequest actualRequest = + ((ListExascaleDbStorageVaultsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExascaleDbStorageVaultsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExascaleDbStorageVaults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExascaleDbStorageVaultTest() throws Exception { + ExascaleDbStorageVault expectedResponse = + ExascaleDbStorageVault.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(ExascaleDbStorageVaultProperties.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .putAllLabels(new HashMap()) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + + ExascaleDbStorageVault actualResponse = client.getExascaleDbStorageVault(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExascaleDbStorageVaultRequest actualRequest = + ((GetExascaleDbStorageVaultRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExascaleDbStorageVaultExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + client.getExascaleDbStorageVault(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExascaleDbStorageVaultTest2() throws Exception { + ExascaleDbStorageVault expectedResponse = + ExascaleDbStorageVault.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(ExascaleDbStorageVaultProperties.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .putAllLabels(new HashMap()) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String name = "name3373707"; + + ExascaleDbStorageVault actualResponse = client.getExascaleDbStorageVault(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExascaleDbStorageVaultRequest actualRequest = + ((GetExascaleDbStorageVaultRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExascaleDbStorageVaultExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.getExascaleDbStorageVault(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExascaleDbStorageVaultTest() throws Exception { + ExascaleDbStorageVault expectedResponse = + ExascaleDbStorageVault.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(ExascaleDbStorageVaultProperties.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExascaleDbStorageVaultTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + + ExascaleDbStorageVault actualResponse = + client + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExascaleDbStorageVaultRequest actualRequest = + ((CreateExascaleDbStorageVaultRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(exascaleDbStorageVault, actualRequest.getExascaleDbStorageVault()); + Assert.assertEquals(exascaleDbStorageVaultId, actualRequest.getExascaleDbStorageVaultId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExascaleDbStorageVaultExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + client + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .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 createExascaleDbStorageVaultTest2() throws Exception { + ExascaleDbStorageVault expectedResponse = + ExascaleDbStorageVault.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setProperties(ExascaleDbStorageVaultProperties.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setEntitlementId("entitlementId-1302274264") + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createExascaleDbStorageVaultTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String parent = "parent-995424086"; + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + + ExascaleDbStorageVault actualResponse = + client + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExascaleDbStorageVaultRequest actualRequest = + ((CreateExascaleDbStorageVaultRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(exascaleDbStorageVault, actualRequest.getExascaleDbStorageVault()); + Assert.assertEquals(exascaleDbStorageVaultId, actualRequest.getExascaleDbStorageVaultId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExascaleDbStorageVaultExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + client + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .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 deleteExascaleDbStorageVaultTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExascaleDbStorageVaultTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + + client.deleteExascaleDbStorageVaultAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExascaleDbStorageVaultRequest actualRequest = + ((DeleteExascaleDbStorageVaultRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExascaleDbStorageVaultExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + client.deleteExascaleDbStorageVaultAsync(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 deleteExascaleDbStorageVaultTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExascaleDbStorageVaultTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteExascaleDbStorageVaultAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExascaleDbStorageVaultRequest actualRequest = + ((DeleteExascaleDbStorageVaultRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExascaleDbStorageVaultExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.deleteExascaleDbStorageVaultAsync(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 listDbSystemInitialStorageSizesTest() throws Exception { + DbSystemInitialStorageSize responsesElement = DbSystemInitialStorageSize.newBuilder().build(); + ListDbSystemInitialStorageSizesResponse expectedResponse = + ListDbSystemInitialStorageSizesResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystemInitialStorageSizes(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDbSystemInitialStorageSizesPagedResponse pagedListResponse = + client.listDbSystemInitialStorageSizes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDbSystemInitialStorageSizesList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDbSystemInitialStorageSizesRequest actualRequest = + ((ListDbSystemInitialStorageSizesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDbSystemInitialStorageSizesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDbSystemInitialStorageSizes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbSystemInitialStorageSizesTest2() throws Exception { + DbSystemInitialStorageSize responsesElement = DbSystemInitialStorageSize.newBuilder().build(); + ListDbSystemInitialStorageSizesResponse expectedResponse = + ListDbSystemInitialStorageSizesResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystemInitialStorageSizes(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDbSystemInitialStorageSizesPagedResponse pagedListResponse = + client.listDbSystemInitialStorageSizes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDbSystemInitialStorageSizesList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDbSystemInitialStorageSizesRequest actualRequest = + ((ListDbSystemInitialStorageSizesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDbSystemInitialStorageSizesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDbSystemInitialStorageSizes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabasesTest() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabasesRequest actualRequest = ((ListDatabasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabasesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabasesTest2() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabasesRequest actualRequest = ((ListDatabasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabasesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString()) + .setDbName("dbName-1339126743") + .setDbUniqueName("dbUniqueName-1793979110") + .setAdminPassword("adminPassword-95067382") + .setTdeWalletPassword("tdeWalletPassword727082249") + .setCharacterSet("characterSet-1443214215") + .setNcharacterSet("ncharacterSet642193383") + .setOciUrl("ociUrl-1022489574") + .setCreateTime(Timestamp.newBuilder().build()) + .setProperties(DatabaseProperties.newBuilder().build()) + .setDatabaseId("databaseId1688905718") + .setDbHomeName("dbHomeName364867240") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + DatabaseName name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]"); + + Database actualResponse = client.getDatabase(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatabaseRequest actualRequest = ((GetDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + DatabaseName name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]"); + client.getDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString()) + .setDbName("dbName-1339126743") + .setDbUniqueName("dbUniqueName-1793979110") + .setAdminPassword("adminPassword-95067382") + .setTdeWalletPassword("tdeWalletPassword727082249") + .setCharacterSet("characterSet-1443214215") + .setNcharacterSet("ncharacterSet642193383") + .setOciUrl("ociUrl-1022489574") + .setCreateTime(Timestamp.newBuilder().build()) + .setProperties(DatabaseProperties.newBuilder().build()) + .setDatabaseId("databaseId1688905718") + .setDbHomeName("dbHomeName364867240") + .setGcpOracleZone("gcpOracleZone217860222") + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String name = "name3373707"; + + Database actualResponse = client.getDatabase(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatabaseRequest actualRequest = ((GetDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatabaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.getDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPluggableDatabasesTest() throws Exception { + PluggableDatabase responsesElement = PluggableDatabase.newBuilder().build(); + ListPluggableDatabasesResponse expectedResponse = + ListPluggableDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllPluggableDatabases(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPluggableDatabasesPagedResponse pagedListResponse = client.listPluggableDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPluggableDatabasesList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPluggableDatabasesRequest actualRequest = + ((ListPluggableDatabasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPluggableDatabasesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPluggableDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPluggableDatabasesTest2() throws Exception { + PluggableDatabase responsesElement = PluggableDatabase.newBuilder().build(); + ListPluggableDatabasesResponse expectedResponse = + ListPluggableDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllPluggableDatabases(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPluggableDatabasesPagedResponse pagedListResponse = client.listPluggableDatabases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPluggableDatabasesList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPluggableDatabasesRequest actualRequest = + ((ListPluggableDatabasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPluggableDatabasesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPluggableDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPluggableDatabaseTest() throws Exception { + PluggableDatabase expectedResponse = + PluggableDatabase.newBuilder() + .setName( + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]") + .toString()) + .setProperties(PluggableDatabaseProperties.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + PluggableDatabaseName name = + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]"); + + PluggableDatabase actualResponse = client.getPluggableDatabase(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPluggableDatabaseRequest actualRequest = + ((GetPluggableDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPluggableDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + PluggableDatabaseName name = + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]"); + client.getPluggableDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPluggableDatabaseTest2() throws Exception { + PluggableDatabase expectedResponse = + PluggableDatabase.newBuilder() + .setName( + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]") + .toString()) + .setProperties(PluggableDatabaseProperties.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String name = "name3373707"; + + PluggableDatabase actualResponse = client.getPluggableDatabase(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPluggableDatabaseRequest actualRequest = + ((GetPluggableDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPluggableDatabaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.getPluggableDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbSystemsTest() throws Exception { + DbSystem responsesElement = DbSystem.newBuilder().build(); + ListDbSystemsResponse expectedResponse = + ListDbSystemsResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystems(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDbSystemsPagedResponse pagedListResponse = client.listDbSystems(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbSystemsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDbSystemsRequest actualRequest = ((ListDbSystemsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDbSystemsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDbSystems(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbSystemsTest2() throws Exception { + DbSystem responsesElement = DbSystem.newBuilder().build(); + ListDbSystemsResponse expectedResponse = + ListDbSystemsResponse.newBuilder() + .setNextPageToken("") + .addAllDbSystems(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDbSystemsPagedResponse pagedListResponse = client.listDbSystems(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbSystemsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDbSystemsRequest actualRequest = ((ListDbSystemsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDbSystemsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDbSystems(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDbSystemTest() throws Exception { + DbSystem expectedResponse = + DbSystem.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setProperties(DbSystemProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setEntitlementId("entitlementId-1302274264") + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + + DbSystem actualResponse = client.getDbSystem(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDbSystemRequest actualRequest = ((GetDbSystemRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDbSystemExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + client.getDbSystem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDbSystemTest2() throws Exception { + DbSystem expectedResponse = + DbSystem.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setProperties(DbSystemProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setEntitlementId("entitlementId-1302274264") + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String name = "name3373707"; + + DbSystem actualResponse = client.getDbSystem(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDbSystemRequest actualRequest = ((GetDbSystemRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDbSystemExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.getDbSystem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDbSystemTest() throws Exception { + DbSystem expectedResponse = + DbSystem.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setProperties(DbSystemProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setEntitlementId("entitlementId-1302274264") + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDbSystemTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + + DbSystem actualResponse = client.createDbSystemAsync(parent, dbSystem, dbSystemId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDbSystemRequest actualRequest = ((CreateDbSystemRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(dbSystem, actualRequest.getDbSystem()); + Assert.assertEquals(dbSystemId, actualRequest.getDbSystemId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDbSystemExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + client.createDbSystemAsync(parent, dbSystem, dbSystemId).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 createDbSystemTest2() throws Exception { + DbSystem expectedResponse = + DbSystem.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setProperties(DbSystemProperties.newBuilder().build()) + .setGcpOracleZone("gcpOracleZone217860222") + .putAllLabels(new HashMap()) + .setOdbNetwork(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnet( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setEntitlementId("entitlementId-1302274264") + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setOciUrl("ociUrl-1022489574") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDbSystemTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String parent = "parent-995424086"; + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + + DbSystem actualResponse = client.createDbSystemAsync(parent, dbSystem, dbSystemId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDbSystemRequest actualRequest = ((CreateDbSystemRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(dbSystem, actualRequest.getDbSystem()); + Assert.assertEquals(dbSystemId, actualRequest.getDbSystemId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDbSystemExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + client.createDbSystemAsync(parent, dbSystem, dbSystemId).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 deleteDbSystemTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDbSystemTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + + client.deleteDbSystemAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDbSystemRequest actualRequest = ((DeleteDbSystemRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDbSystemExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + client.deleteDbSystemAsync(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 deleteDbSystemTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDbSystemTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteDbSystemAsync(name).get(); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDbSystemRequest actualRequest = ((DeleteDbSystemRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDbSystemExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + client.deleteDbSystemAsync(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 listDbVersionsTest() throws Exception { + DbVersion responsesElement = DbVersion.newBuilder().build(); + ListDbVersionsResponse expectedResponse = + ListDbVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllDbVersions(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDbVersionsPagedResponse pagedListResponse = client.listDbVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbVersionsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDbVersionsRequest actualRequest = ((ListDbVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDbVersionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDbVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDbVersionsTest2() throws Exception { + DbVersion responsesElement = DbVersion.newBuilder().build(); + ListDbVersionsResponse expectedResponse = + ListDbVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllDbVersions(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDbVersionsPagedResponse pagedListResponse = client.listDbVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDbVersionsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDbVersionsRequest actualRequest = ((ListDbVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDbVersionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDbVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseCharacterSetsTest() throws Exception { + DatabaseCharacterSet responsesElement = DatabaseCharacterSet.newBuilder().build(); + ListDatabaseCharacterSetsResponse expectedResponse = + ListDatabaseCharacterSetsResponse.newBuilder() + .setNextPageToken("") + .addAllDatabaseCharacterSets(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDatabaseCharacterSetsPagedResponse pagedListResponse = + client.listDatabaseCharacterSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabaseCharacterSetsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabaseCharacterSetsRequest actualRequest = + ((ListDatabaseCharacterSetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabaseCharacterSetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDatabaseCharacterSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseCharacterSetsTest2() throws Exception { + DatabaseCharacterSet responsesElement = DatabaseCharacterSet.newBuilder().build(); + ListDatabaseCharacterSetsResponse expectedResponse = + ListDatabaseCharacterSetsResponse.newBuilder() + .setNextPageToken("") + .addAllDatabaseCharacterSets(Arrays.asList(responsesElement)) + .build(); + mockOracleDatabase.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDatabaseCharacterSetsPagedResponse pagedListResponse = + client.listDatabaseCharacterSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabaseCharacterSetsList().get(0), resources.get(0)); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabaseCharacterSetsRequest actualRequest = + ((ListDatabaseCharacterSetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabaseCharacterSetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDatabaseCharacterSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java index 0f41d51962b4..6d6114f50bd6 100644 --- a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java +++ b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/oracledatabase/v1/oracledatabase.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OracleDatabaseGrpc { @@ -632,6 +629,53 @@ private OracleDatabaseGrpc() {} return getListGiVersionsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest, + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse> + getListMinorVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMinorVersions", + requestType = com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest.class, + responseType = com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest, + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse> + getListMinorVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest, + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse> + getListMinorVersionsMethod; + if ((getListMinorVersionsMethod = OracleDatabaseGrpc.getListMinorVersionsMethod) == null) { + synchronized (OracleDatabaseGrpc.class) { + if ((getListMinorVersionsMethod = OracleDatabaseGrpc.getListMinorVersionsMethod) == null) { + OracleDatabaseGrpc.getListMinorVersionsMethod = + getListMinorVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMinorVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new OracleDatabaseMethodDescriptorSupplier("ListMinorVersions")) + .build(); + } + } + } + return getListMinorVersionsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest, com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse> @@ -830,6 +874,56 @@ private OracleDatabaseGrpc() {} return getCreateAutonomousDatabaseMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest, + com.google.longrunning.Operation> + getUpdateAutonomousDatabaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAutonomousDatabase", + requestType = com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest, + com.google.longrunning.Operation> + getUpdateAutonomousDatabaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest, + com.google.longrunning.Operation> + getUpdateAutonomousDatabaseMethod; + if ((getUpdateAutonomousDatabaseMethod = OracleDatabaseGrpc.getUpdateAutonomousDatabaseMethod) + == null) { + synchronized (OracleDatabaseGrpc.class) { + if ((getUpdateAutonomousDatabaseMethod = + OracleDatabaseGrpc.getUpdateAutonomousDatabaseMethod) + == null) { + OracleDatabaseGrpc.getUpdateAutonomousDatabaseMethod = + getUpdateAutonomousDatabaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAutonomousDatabase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OracleDatabaseMethodDescriptorSupplier("UpdateAutonomousDatabase")) + .build(); + } + } + } + return getUpdateAutonomousDatabaseMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest, com.google.longrunning.Operation> @@ -1297,475 +1391,4325 @@ private OracleDatabaseGrpc() {} return getRestartAutonomousDatabaseMethod; } - /** Creates a new async stub that supports all call types for the service */ - public static OracleDatabaseStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public OracleDatabaseStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OracleDatabaseStub(channel, callOptions); - } - }; - return OracleDatabaseStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest, + com.google.longrunning.Operation> + getSwitchoverAutonomousDatabaseMethod; - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static OracleDatabaseBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public OracleDatabaseBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OracleDatabaseBlockingV2Stub(channel, callOptions); - } - }; - return OracleDatabaseBlockingV2Stub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SwitchoverAutonomousDatabase", + requestType = com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest, + com.google.longrunning.Operation> + getSwitchoverAutonomousDatabaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest, + com.google.longrunning.Operation> + getSwitchoverAutonomousDatabaseMethod; + if ((getSwitchoverAutonomousDatabaseMethod = + OracleDatabaseGrpc.getSwitchoverAutonomousDatabaseMethod) + == null) { + synchronized (OracleDatabaseGrpc.class) { + if ((getSwitchoverAutonomousDatabaseMethod = + OracleDatabaseGrpc.getSwitchoverAutonomousDatabaseMethod) + == null) { + OracleDatabaseGrpc.getSwitchoverAutonomousDatabaseMethod = + getSwitchoverAutonomousDatabaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SwitchoverAutonomousDatabase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OracleDatabaseMethodDescriptorSupplier( + "SwitchoverAutonomousDatabase")) + .build(); + } + } + } + return getSwitchoverAutonomousDatabaseMethod; } - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static OracleDatabaseBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public OracleDatabaseBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OracleDatabaseBlockingStub(channel, callOptions); - } - }; - return OracleDatabaseBlockingStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest, + com.google.longrunning.Operation> + getFailoverAutonomousDatabaseMethod; - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static OracleDatabaseFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public OracleDatabaseFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OracleDatabaseFutureStub(channel, callOptions); - } - }; - return OracleDatabaseFutureStub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FailoverAutonomousDatabase", + requestType = com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest, + com.google.longrunning.Operation> + getFailoverAutonomousDatabaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest, + com.google.longrunning.Operation> + getFailoverAutonomousDatabaseMethod; + if ((getFailoverAutonomousDatabaseMethod = + OracleDatabaseGrpc.getFailoverAutonomousDatabaseMethod) + == null) { + synchronized (OracleDatabaseGrpc.class) { + if ((getFailoverAutonomousDatabaseMethod = + OracleDatabaseGrpc.getFailoverAutonomousDatabaseMethod) + == null) { + OracleDatabaseGrpc.getFailoverAutonomousDatabaseMethod = + getFailoverAutonomousDatabaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FailoverAutonomousDatabase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OracleDatabaseMethodDescriptorSupplier("FailoverAutonomousDatabase")) + .build(); + } + } + } + return getFailoverAutonomousDatabaseMethod; } - /** - * - * - *
                                              -   * Service describing handlers for resources
                                              -   * 
                                              - */ - public interface AsyncService { + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest, + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse> + getListOdbNetworksMethod; - /** - * - * - *
                                              -     * Lists Exadata Infrastructures in a given project and location.
                                              -     * 
                                              - */ - default void listCloudExadataInfrastructures( - com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCloudExadataInfrastructuresMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOdbNetworks", + requestType = com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest.class, + responseType = com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest, + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse> + getListOdbNetworksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest, + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse> + getListOdbNetworksMethod; + if ((getListOdbNetworksMethod = OracleDatabaseGrpc.getListOdbNetworksMethod) == null) { + synchronized (OracleDatabaseGrpc.class) { + if ((getListOdbNetworksMethod = OracleDatabaseGrpc.getListOdbNetworksMethod) == null) { + OracleDatabaseGrpc.getListOdbNetworksMethod = + getListOdbNetworksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOdbNetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new OracleDatabaseMethodDescriptorSupplier("ListOdbNetworks")) + .build(); + } + } } + return getListOdbNetworksMethod; + } - /** - * - * - *
                                              -     * Gets details of a single Exadata Infrastructure.
                                              -     * 
                                              - */ - default void getCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCloudExadataInfrastructureMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest, + com.google.cloud.oracledatabase.v1.OdbNetwork> + getGetOdbNetworkMethod; - /** - * - * - *
                                              -     * Creates a new Exadata Infrastructure in a given project and location.
                                              -     * 
                                              - */ - default void createCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCloudExadataInfrastructureMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOdbNetwork", + requestType = com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest.class, + responseType = com.google.cloud.oracledatabase.v1.OdbNetwork.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest, + com.google.cloud.oracledatabase.v1.OdbNetwork> + getGetOdbNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest, + com.google.cloud.oracledatabase.v1.OdbNetwork> + getGetOdbNetworkMethod; + if ((getGetOdbNetworkMethod = OracleDatabaseGrpc.getGetOdbNetworkMethod) == null) { + synchronized (OracleDatabaseGrpc.class) { + if ((getGetOdbNetworkMethod = OracleDatabaseGrpc.getGetOdbNetworkMethod) == null) { + OracleDatabaseGrpc.getGetOdbNetworkMethod = + getGetOdbNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOdbNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance())) + .setSchemaDescriptor( + new OracleDatabaseMethodDescriptorSupplier("GetOdbNetwork")) + .build(); + } + } } + return getGetOdbNetworkMethod; + } - /** - * - * - *
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateOdbNetworkMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateOdbNetwork",
                                              +      requestType = com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateOdbNetworkMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getCreateOdbNetworkMethod;
                                              +    if ((getCreateOdbNetworkMethod = OracleDatabaseGrpc.getCreateOdbNetworkMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getCreateOdbNetworkMethod = OracleDatabaseGrpc.getCreateOdbNetworkMethod) == null) {
                                              +          OracleDatabaseGrpc.getCreateOdbNetworkMethod =
                                              +              getCreateOdbNetworkMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateOdbNetwork"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("CreateOdbNetwork"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getCreateOdbNetworkMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteOdbNetworkMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteOdbNetwork",
                                              +      requestType = com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteOdbNetworkMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getDeleteOdbNetworkMethod;
                                              +    if ((getDeleteOdbNetworkMethod = OracleDatabaseGrpc.getDeleteOdbNetworkMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getDeleteOdbNetworkMethod = OracleDatabaseGrpc.getDeleteOdbNetworkMethod) == null) {
                                              +          OracleDatabaseGrpc.getDeleteOdbNetworkMethod =
                                              +              getDeleteOdbNetworkMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteOdbNetwork"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("DeleteOdbNetwork"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getDeleteOdbNetworkMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse>
                                              +      getListOdbSubnetsMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "ListOdbSubnets",
                                              +      requestType = com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse>
                                              +      getListOdbSubnetsMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest,
                                              +            com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse>
                                              +        getListOdbSubnetsMethod;
                                              +    if ((getListOdbSubnetsMethod = OracleDatabaseGrpc.getListOdbSubnetsMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getListOdbSubnetsMethod = OracleDatabaseGrpc.getListOdbSubnetsMethod) == null) {
                                              +          OracleDatabaseGrpc.getListOdbSubnetsMethod =
                                              +              getListOdbSubnetsMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOdbSubnets"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("ListOdbSubnets"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getListOdbSubnetsMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest,
                                              +          com.google.cloud.oracledatabase.v1.OdbSubnet>
                                              +      getGetOdbSubnetMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "GetOdbSubnet",
                                              +      requestType = com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.OdbSubnet.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest,
                                              +          com.google.cloud.oracledatabase.v1.OdbSubnet>
                                              +      getGetOdbSubnetMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest,
                                              +            com.google.cloud.oracledatabase.v1.OdbSubnet>
                                              +        getGetOdbSubnetMethod;
                                              +    if ((getGetOdbSubnetMethod = OracleDatabaseGrpc.getGetOdbSubnetMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getGetOdbSubnetMethod = OracleDatabaseGrpc.getGetOdbSubnetMethod) == null) {
                                              +          OracleDatabaseGrpc.getGetOdbSubnetMethod =
                                              +              getGetOdbSubnetMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOdbSubnet"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("GetOdbSubnet"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getGetOdbSubnetMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateOdbSubnetMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateOdbSubnet",
                                              +      requestType = com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateOdbSubnetMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getCreateOdbSubnetMethod;
                                              +    if ((getCreateOdbSubnetMethod = OracleDatabaseGrpc.getCreateOdbSubnetMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getCreateOdbSubnetMethod = OracleDatabaseGrpc.getCreateOdbSubnetMethod) == null) {
                                              +          OracleDatabaseGrpc.getCreateOdbSubnetMethod =
                                              +              getCreateOdbSubnetMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateOdbSubnet"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("CreateOdbSubnet"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getCreateOdbSubnetMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteOdbSubnetMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteOdbSubnet",
                                              +      requestType = com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteOdbSubnetMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getDeleteOdbSubnetMethod;
                                              +    if ((getDeleteOdbSubnetMethod = OracleDatabaseGrpc.getDeleteOdbSubnetMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getDeleteOdbSubnetMethod = OracleDatabaseGrpc.getDeleteOdbSubnetMethod) == null) {
                                              +          OracleDatabaseGrpc.getDeleteOdbSubnetMethod =
                                              +              getDeleteOdbSubnetMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteOdbSubnet"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("DeleteOdbSubnet"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getDeleteOdbSubnetMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse>
                                              +      getListExadbVmClustersMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "ListExadbVmClusters",
                                              +      requestType = com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse>
                                              +      getListExadbVmClustersMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest,
                                              +            com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse>
                                              +        getListExadbVmClustersMethod;
                                              +    if ((getListExadbVmClustersMethod = OracleDatabaseGrpc.getListExadbVmClustersMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getListExadbVmClustersMethod = OracleDatabaseGrpc.getListExadbVmClustersMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getListExadbVmClustersMethod =
                                              +              getListExadbVmClustersMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "ListExadbVmClusters"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("ListExadbVmClusters"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getListExadbVmClustersMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest,
                                              +          com.google.cloud.oracledatabase.v1.ExadbVmCluster>
                                              +      getGetExadbVmClusterMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "GetExadbVmCluster",
                                              +      requestType = com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ExadbVmCluster.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest,
                                              +          com.google.cloud.oracledatabase.v1.ExadbVmCluster>
                                              +      getGetExadbVmClusterMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest,
                                              +            com.google.cloud.oracledatabase.v1.ExadbVmCluster>
                                              +        getGetExadbVmClusterMethod;
                                              +    if ((getGetExadbVmClusterMethod = OracleDatabaseGrpc.getGetExadbVmClusterMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getGetExadbVmClusterMethod = OracleDatabaseGrpc.getGetExadbVmClusterMethod) == null) {
                                              +          OracleDatabaseGrpc.getGetExadbVmClusterMethod =
                                              +              getGetExadbVmClusterMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExadbVmCluster"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ExadbVmCluster
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("GetExadbVmCluster"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getGetExadbVmClusterMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateExadbVmClusterMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateExadbVmCluster",
                                              +      requestType = com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateExadbVmClusterMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getCreateExadbVmClusterMethod;
                                              +    if ((getCreateExadbVmClusterMethod = OracleDatabaseGrpc.getCreateExadbVmClusterMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getCreateExadbVmClusterMethod = OracleDatabaseGrpc.getCreateExadbVmClusterMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getCreateExadbVmClusterMethod =
                                              +              getCreateExadbVmClusterMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "CreateExadbVmCluster"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("CreateExadbVmCluster"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getCreateExadbVmClusterMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteExadbVmClusterMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteExadbVmCluster",
                                              +      requestType = com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteExadbVmClusterMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getDeleteExadbVmClusterMethod;
                                              +    if ((getDeleteExadbVmClusterMethod = OracleDatabaseGrpc.getDeleteExadbVmClusterMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getDeleteExadbVmClusterMethod = OracleDatabaseGrpc.getDeleteExadbVmClusterMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getDeleteExadbVmClusterMethod =
                                              +              getDeleteExadbVmClusterMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "DeleteExadbVmCluster"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("DeleteExadbVmCluster"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getDeleteExadbVmClusterMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getUpdateExadbVmClusterMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "UpdateExadbVmCluster",
                                              +      requestType = com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getUpdateExadbVmClusterMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getUpdateExadbVmClusterMethod;
                                              +    if ((getUpdateExadbVmClusterMethod = OracleDatabaseGrpc.getUpdateExadbVmClusterMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getUpdateExadbVmClusterMethod = OracleDatabaseGrpc.getUpdateExadbVmClusterMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getUpdateExadbVmClusterMethod =
                                              +              getUpdateExadbVmClusterMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "UpdateExadbVmCluster"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("UpdateExadbVmCluster"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getUpdateExadbVmClusterMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getRemoveVirtualMachineExadbVmClusterMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "RemoveVirtualMachineExadbVmCluster",
                                              +      requestType =
                                              +          com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getRemoveVirtualMachineExadbVmClusterMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getRemoveVirtualMachineExadbVmClusterMethod;
                                              +    if ((getRemoveVirtualMachineExadbVmClusterMethod =
                                              +            OracleDatabaseGrpc.getRemoveVirtualMachineExadbVmClusterMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getRemoveVirtualMachineExadbVmClusterMethod =
                                              +                OracleDatabaseGrpc.getRemoveVirtualMachineExadbVmClusterMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getRemoveVirtualMachineExadbVmClusterMethod =
                                              +              getRemoveVirtualMachineExadbVmClusterMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(
                                              +                              SERVICE_NAME, "RemoveVirtualMachineExadbVmCluster"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1
                                              +                                  .RemoveVirtualMachineExadbVmClusterRequest.getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier(
                                              +                              "RemoveVirtualMachineExadbVmCluster"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getRemoveVirtualMachineExadbVmClusterMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse>
                                              +      getListExascaleDbStorageVaultsMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "ListExascaleDbStorageVaults",
                                              +      requestType = com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse>
                                              +      getListExascaleDbStorageVaultsMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest,
                                              +            com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse>
                                              +        getListExascaleDbStorageVaultsMethod;
                                              +    if ((getListExascaleDbStorageVaultsMethod =
                                              +            OracleDatabaseGrpc.getListExascaleDbStorageVaultsMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getListExascaleDbStorageVaultsMethod =
                                              +                OracleDatabaseGrpc.getListExascaleDbStorageVaultsMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getListExascaleDbStorageVaultsMethod =
                                              +              getListExascaleDbStorageVaultsMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "ListExascaleDbStorageVaults"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("ListExascaleDbStorageVaults"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getListExascaleDbStorageVaultsMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest,
                                              +          com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault>
                                              +      getGetExascaleDbStorageVaultMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "GetExascaleDbStorageVault",
                                              +      requestType = com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest,
                                              +          com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault>
                                              +      getGetExascaleDbStorageVaultMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest,
                                              +            com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault>
                                              +        getGetExascaleDbStorageVaultMethod;
                                              +    if ((getGetExascaleDbStorageVaultMethod = OracleDatabaseGrpc.getGetExascaleDbStorageVaultMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getGetExascaleDbStorageVaultMethod =
                                              +                OracleDatabaseGrpc.getGetExascaleDbStorageVaultMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getGetExascaleDbStorageVaultMethod =
                                              +              getGetExascaleDbStorageVaultMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "GetExascaleDbStorageVault"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("GetExascaleDbStorageVault"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getGetExascaleDbStorageVaultMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateExascaleDbStorageVaultMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateExascaleDbStorageVault",
                                              +      requestType = com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateExascaleDbStorageVaultMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getCreateExascaleDbStorageVaultMethod;
                                              +    if ((getCreateExascaleDbStorageVaultMethod =
                                              +            OracleDatabaseGrpc.getCreateExascaleDbStorageVaultMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getCreateExascaleDbStorageVaultMethod =
                                              +                OracleDatabaseGrpc.getCreateExascaleDbStorageVaultMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getCreateExascaleDbStorageVaultMethod =
                                              +              getCreateExascaleDbStorageVaultMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "CreateExascaleDbStorageVault"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier(
                                              +                              "CreateExascaleDbStorageVault"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getCreateExascaleDbStorageVaultMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteExascaleDbStorageVaultMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteExascaleDbStorageVault",
                                              +      requestType = com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteExascaleDbStorageVaultMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getDeleteExascaleDbStorageVaultMethod;
                                              +    if ((getDeleteExascaleDbStorageVaultMethod =
                                              +            OracleDatabaseGrpc.getDeleteExascaleDbStorageVaultMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getDeleteExascaleDbStorageVaultMethod =
                                              +                OracleDatabaseGrpc.getDeleteExascaleDbStorageVaultMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getDeleteExascaleDbStorageVaultMethod =
                                              +              getDeleteExascaleDbStorageVaultMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "DeleteExascaleDbStorageVault"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier(
                                              +                              "DeleteExascaleDbStorageVault"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getDeleteExascaleDbStorageVaultMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse>
                                              +      getListDbSystemInitialStorageSizesMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "ListDbSystemInitialStorageSizes",
                                              +      requestType = com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest.class,
                                              +      responseType =
                                              +          com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse>
                                              +      getListDbSystemInitialStorageSizesMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest,
                                              +            com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse>
                                              +        getListDbSystemInitialStorageSizesMethod;
                                              +    if ((getListDbSystemInitialStorageSizesMethod =
                                              +            OracleDatabaseGrpc.getListDbSystemInitialStorageSizesMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getListDbSystemInitialStorageSizesMethod =
                                              +                OracleDatabaseGrpc.getListDbSystemInitialStorageSizesMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getListDbSystemInitialStorageSizesMethod =
                                              +              getListDbSystemInitialStorageSizesMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "ListDbSystemInitialStorageSizes"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1
                                              +                                  .ListDbSystemInitialStorageSizesRequest.getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1
                                              +                                  .ListDbSystemInitialStorageSizesResponse.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier(
                                              +                              "ListDbSystemInitialStorageSizes"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getListDbSystemInitialStorageSizesMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDatabasesRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDatabasesResponse>
                                              +      getListDatabasesMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "ListDatabases",
                                              +      requestType = com.google.cloud.oracledatabase.v1.ListDatabasesRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ListDatabasesResponse.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDatabasesRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDatabasesResponse>
                                              +      getListDatabasesMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.ListDatabasesRequest,
                                              +            com.google.cloud.oracledatabase.v1.ListDatabasesResponse>
                                              +        getListDatabasesMethod;
                                              +    if ((getListDatabasesMethod = OracleDatabaseGrpc.getListDatabasesMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getListDatabasesMethod = OracleDatabaseGrpc.getListDatabasesMethod) == null) {
                                              +          OracleDatabaseGrpc.getListDatabasesMethod =
                                              +              getListDatabasesMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatabases"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListDatabasesRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListDatabasesResponse
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("ListDatabases"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getListDatabasesMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetDatabaseRequest,
                                              +          com.google.cloud.oracledatabase.v1.Database>
                                              +      getGetDatabaseMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "GetDatabase",
                                              +      requestType = com.google.cloud.oracledatabase.v1.GetDatabaseRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.Database.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetDatabaseRequest,
                                              +          com.google.cloud.oracledatabase.v1.Database>
                                              +      getGetDatabaseMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.GetDatabaseRequest,
                                              +            com.google.cloud.oracledatabase.v1.Database>
                                              +        getGetDatabaseMethod;
                                              +    if ((getGetDatabaseMethod = OracleDatabaseGrpc.getGetDatabaseMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getGetDatabaseMethod = OracleDatabaseGrpc.getGetDatabaseMethod) == null) {
                                              +          OracleDatabaseGrpc.getGetDatabaseMethod =
                                              +              getGetDatabaseMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDatabase"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.GetDatabaseRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.Database.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("GetDatabase"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getGetDatabaseMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse>
                                              +      getListPluggableDatabasesMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "ListPluggableDatabases",
                                              +      requestType = com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse>
                                              +      getListPluggableDatabasesMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest,
                                              +            com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse>
                                              +        getListPluggableDatabasesMethod;
                                              +    if ((getListPluggableDatabasesMethod = OracleDatabaseGrpc.getListPluggableDatabasesMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getListPluggableDatabasesMethod = OracleDatabaseGrpc.getListPluggableDatabasesMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getListPluggableDatabasesMethod =
                                              +              getListPluggableDatabasesMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "ListPluggableDatabases"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("ListPluggableDatabases"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getListPluggableDatabasesMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest,
                                              +          com.google.cloud.oracledatabase.v1.PluggableDatabase>
                                              +      getGetPluggableDatabaseMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "GetPluggableDatabase",
                                              +      requestType = com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.PluggableDatabase.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest,
                                              +          com.google.cloud.oracledatabase.v1.PluggableDatabase>
                                              +      getGetPluggableDatabaseMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest,
                                              +            com.google.cloud.oracledatabase.v1.PluggableDatabase>
                                              +        getGetPluggableDatabaseMethod;
                                              +    if ((getGetPluggableDatabaseMethod = OracleDatabaseGrpc.getGetPluggableDatabaseMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getGetPluggableDatabaseMethod = OracleDatabaseGrpc.getGetPluggableDatabaseMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getGetPluggableDatabaseMethod =
                                              +              getGetPluggableDatabaseMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "GetPluggableDatabase"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.PluggableDatabase
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("GetPluggableDatabase"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getGetPluggableDatabaseMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDbSystemsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDbSystemsResponse>
                                              +      getListDbSystemsMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "ListDbSystems",
                                              +      requestType = com.google.cloud.oracledatabase.v1.ListDbSystemsRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ListDbSystemsResponse.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDbSystemsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDbSystemsResponse>
                                              +      getListDbSystemsMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.ListDbSystemsRequest,
                                              +            com.google.cloud.oracledatabase.v1.ListDbSystemsResponse>
                                              +        getListDbSystemsMethod;
                                              +    if ((getListDbSystemsMethod = OracleDatabaseGrpc.getListDbSystemsMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getListDbSystemsMethod = OracleDatabaseGrpc.getListDbSystemsMethod) == null) {
                                              +          OracleDatabaseGrpc.getListDbSystemsMethod =
                                              +              getListDbSystemsMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDbSystems"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListDbSystemsRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListDbSystemsResponse
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("ListDbSystems"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getListDbSystemsMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetDbSystemRequest,
                                              +          com.google.cloud.oracledatabase.v1.DbSystem>
                                              +      getGetDbSystemMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "GetDbSystem",
                                              +      requestType = com.google.cloud.oracledatabase.v1.GetDbSystemRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.DbSystem.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.GetDbSystemRequest,
                                              +          com.google.cloud.oracledatabase.v1.DbSystem>
                                              +      getGetDbSystemMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.GetDbSystemRequest,
                                              +            com.google.cloud.oracledatabase.v1.DbSystem>
                                              +        getGetDbSystemMethod;
                                              +    if ((getGetDbSystemMethod = OracleDatabaseGrpc.getGetDbSystemMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getGetDbSystemMethod = OracleDatabaseGrpc.getGetDbSystemMethod) == null) {
                                              +          OracleDatabaseGrpc.getGetDbSystemMethod =
                                              +              getGetDbSystemMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDbSystem"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.GetDbSystemRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("GetDbSystem"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getGetDbSystemMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateDbSystemRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateDbSystemMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateDbSystem",
                                              +      requestType = com.google.cloud.oracledatabase.v1.CreateDbSystemRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.CreateDbSystemRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getCreateDbSystemMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.CreateDbSystemRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getCreateDbSystemMethod;
                                              +    if ((getCreateDbSystemMethod = OracleDatabaseGrpc.getCreateDbSystemMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getCreateDbSystemMethod = OracleDatabaseGrpc.getCreateDbSystemMethod) == null) {
                                              +          OracleDatabaseGrpc.getCreateDbSystemMethod =
                                              +              getCreateDbSystemMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDbSystem"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.CreateDbSystemRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("CreateDbSystem"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getCreateDbSystemMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteDbSystemMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteDbSystem",
                                              +      requestType = com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest.class,
                                              +      responseType = com.google.longrunning.Operation.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest,
                                              +          com.google.longrunning.Operation>
                                              +      getDeleteDbSystemMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest,
                                              +            com.google.longrunning.Operation>
                                              +        getDeleteDbSystemMethod;
                                              +    if ((getDeleteDbSystemMethod = OracleDatabaseGrpc.getDeleteDbSystemMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getDeleteDbSystemMethod = OracleDatabaseGrpc.getDeleteDbSystemMethod) == null) {
                                              +          OracleDatabaseGrpc.getDeleteDbSystemMethod =
                                              +              getDeleteDbSystemMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDbSystem"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("DeleteDbSystem"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getDeleteDbSystemMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDbVersionsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDbVersionsResponse>
                                              +      getListDbVersionsMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "ListDbVersions",
                                              +      requestType = com.google.cloud.oracledatabase.v1.ListDbVersionsRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ListDbVersionsResponse.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDbVersionsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDbVersionsResponse>
                                              +      getListDbVersionsMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.ListDbVersionsRequest,
                                              +            com.google.cloud.oracledatabase.v1.ListDbVersionsResponse>
                                              +        getListDbVersionsMethod;
                                              +    if ((getListDbVersionsMethod = OracleDatabaseGrpc.getListDbVersionsMethod) == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getListDbVersionsMethod = OracleDatabaseGrpc.getListDbVersionsMethod) == null) {
                                              +          OracleDatabaseGrpc.getListDbVersionsMethod =
                                              +              getListDbVersionsMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDbVersions"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListDbVersionsRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListDbVersionsResponse
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("ListDbVersions"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getListDbVersionsMethod;
                                              +  }
                                              +
                                              +  private static volatile io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse>
                                              +      getListDatabaseCharacterSetsMethod;
                                              +
                                              +  @io.grpc.stub.annotations.RpcMethod(
                                              +      fullMethodName = SERVICE_NAME + '/' + "ListDatabaseCharacterSets",
                                              +      requestType = com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest.class,
                                              +      responseType = com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse.class,
                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +  public static io.grpc.MethodDescriptor<
                                              +          com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest,
                                              +          com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse>
                                              +      getListDatabaseCharacterSetsMethod() {
                                              +    io.grpc.MethodDescriptor<
                                              +            com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest,
                                              +            com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse>
                                              +        getListDatabaseCharacterSetsMethod;
                                              +    if ((getListDatabaseCharacterSetsMethod = OracleDatabaseGrpc.getListDatabaseCharacterSetsMethod)
                                              +        == null) {
                                              +      synchronized (OracleDatabaseGrpc.class) {
                                              +        if ((getListDatabaseCharacterSetsMethod =
                                              +                OracleDatabaseGrpc.getListDatabaseCharacterSetsMethod)
                                              +            == null) {
                                              +          OracleDatabaseGrpc.getListDatabaseCharacterSetsMethod =
                                              +              getListDatabaseCharacterSetsMethod =
                                              +                  io.grpc.MethodDescriptor
                                              +                      .
                                              +                          newBuilder()
                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                              +                      .setFullMethodName(
                                              +                          generateFullMethodName(SERVICE_NAME, "ListDatabaseCharacterSets"))
                                              +                      .setSampledToLocalTracing(true)
                                              +                      .setRequestMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest
                                              +                                  .getDefaultInstance()))
                                              +                      .setResponseMarshaller(
                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                              +                              com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse
                                              +                                  .getDefaultInstance()))
                                              +                      .setSchemaDescriptor(
                                              +                          new OracleDatabaseMethodDescriptorSupplier("ListDatabaseCharacterSets"))
                                              +                      .build();
                                              +        }
                                              +      }
                                              +    }
                                              +    return getListDatabaseCharacterSetsMethod;
                                              +  }
                                              +
                                              +  /** Creates a new async stub that supports all call types for the service */
                                              +  public static OracleDatabaseStub newStub(io.grpc.Channel channel) {
                                              +    io.grpc.stub.AbstractStub.StubFactory factory =
                                              +        new io.grpc.stub.AbstractStub.StubFactory() {
                                              +          @java.lang.Override
                                              +          public OracleDatabaseStub newStub(
                                              +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                                              +            return new OracleDatabaseStub(channel, callOptions);
                                              +          }
                                              +        };
                                              +    return OracleDatabaseStub.newStub(factory, channel);
                                              +  }
                                              +
                                              +  /** Creates a new blocking-style stub that supports all types of calls on the service */
                                              +  public static OracleDatabaseBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) {
                                              +    io.grpc.stub.AbstractStub.StubFactory factory =
                                              +        new io.grpc.stub.AbstractStub.StubFactory() {
                                              +          @java.lang.Override
                                              +          public OracleDatabaseBlockingV2Stub newStub(
                                              +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                                              +            return new OracleDatabaseBlockingV2Stub(channel, callOptions);
                                              +          }
                                              +        };
                                              +    return OracleDatabaseBlockingV2Stub.newStub(factory, channel);
                                              +  }
                                              +
                                              +  /**
                                              +   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
                                              +   */
                                              +  public static OracleDatabaseBlockingStub newBlockingStub(io.grpc.Channel channel) {
                                              +    io.grpc.stub.AbstractStub.StubFactory factory =
                                              +        new io.grpc.stub.AbstractStub.StubFactory() {
                                              +          @java.lang.Override
                                              +          public OracleDatabaseBlockingStub newStub(
                                              +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                                              +            return new OracleDatabaseBlockingStub(channel, callOptions);
                                              +          }
                                              +        };
                                              +    return OracleDatabaseBlockingStub.newStub(factory, channel);
                                              +  }
                                              +
                                              +  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
                                              +  public static OracleDatabaseFutureStub newFutureStub(io.grpc.Channel channel) {
                                              +    io.grpc.stub.AbstractStub.StubFactory factory =
                                              +        new io.grpc.stub.AbstractStub.StubFactory() {
                                              +          @java.lang.Override
                                              +          public OracleDatabaseFutureStub newStub(
                                              +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                                              +            return new OracleDatabaseFutureStub(channel, callOptions);
                                              +          }
                                              +        };
                                              +    return OracleDatabaseFutureStub.newStub(factory, channel);
                                              +  }
                                              +
                                              +  /**
                                              +   *
                                              +   *
                                              +   * 
                                              +   * Service describing handlers for resources
                                              +   * 
                                              + */ + public interface AsyncService { + + /** + * + * + *
                                              +     * Lists Exadata Infrastructures in a given project and location.
                                              +     * 
                                              + */ + default void listCloudExadataInfrastructures( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCloudExadataInfrastructuresMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single Exadata Infrastructure.
                                              +     * 
                                              + */ + default void getCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCloudExadataInfrastructureMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new Exadata Infrastructure in a given project and location.
                                              +     * 
                                              + */ + default void createCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCloudExadataInfrastructureMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single Exadata Infrastructure.
                                              +     * 
                                              + */ + default void deleteCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCloudExadataInfrastructureMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists the VM Clusters in a given project and location.
                                              +     * 
                                              + */ + default void listCloudVmClusters( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCloudVmClustersMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single VM Cluster.
                                              +     * 
                                              + */ + default void getCloudVmCluster( + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCloudVmClusterMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new VM Cluster in a given project and location.
                                              +     * 
                                              + */ + default void createCloudVmCluster( + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCloudVmClusterMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single VM Cluster.
                                              +     * 
                                              + */ + default void deleteCloudVmCluster( + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCloudVmClusterMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists the entitlements in a given project.
                                              +     * 
                                              + */ + default void listEntitlements( + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEntitlementsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists the database servers of an Exadata Infrastructure instance.
                                              +     * 
                                              + */ + default void listDbServers( + com.google.cloud.oracledatabase.v1.ListDbServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDbServersMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists the database nodes of a VM Cluster.
                                              +     * 
                                              + */ + default void listDbNodes( + com.google.cloud.oracledatabase.v1.ListDbNodesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDbNodesMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
                                              +     * project and location.
                                              +     * 
                                              + */ + default void listGiVersions( + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGiVersionsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the valid minor versions for the given
                                              +     * project, location, gi version and shape family.
                                              +     * 
                                              + */ + default void listMinorVersions( + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMinorVersionsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists the database system shapes available for the project and location.
                                              +     * 
                                              + */ + default void listDbSystemShapes( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDbSystemShapesMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists the Autonomous Databases in a given project and location.
                                              +     * 
                                              + */ + default void listAutonomousDatabases( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAutonomousDatabasesMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets the details of a single Autonomous Database.
                                              +     * 
                                              + */ + default void getAutonomousDatabase( + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new Autonomous Database in a given project and location.
                                              +     * 
                                              + */ + default void createAutonomousDatabase( + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Updates the parameters of a single Autonomous Database.
                                              +     * 
                                              + */ + default void updateAutonomousDatabase( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single Autonomous Database.
                                              +     * 
                                              + */ + default void deleteAutonomousDatabase( + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Restores a single Autonomous Database.
                                              +     * 
                                              + */ + default void restoreAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Generates a wallet for an Autonomous Database.
                                              +     * 
                                              + */ + default void generateAutonomousDatabaseWallet( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateAutonomousDatabaseWalletMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the available Autonomous Database versions for a project and
                                              +     * location.
                                              +     * 
                                              + */ + default void listAutonomousDbVersions( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAutonomousDbVersionsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists Autonomous Database Character Sets in a given project and location.
                                              +     * 
                                              + */ + default void listAutonomousDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAutonomousDatabaseCharacterSetsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists the long-term and automatic backups of an Autonomous Database.
                                              +     * 
                                              + */ + default void listAutonomousDatabaseBackups( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAutonomousDatabaseBackupsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Stops an Autonomous Database.
                                              +     * 
                                              + */ + default void stopAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Starts an Autonomous Database.
                                              +     * 
                                              + */ + default void startAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Restarts an Autonomous Database.
                                              +     * 
                                              + */ + default void restartAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestartAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Initiates a switchover of specified autonomous database to the associated
                                              +     * peer database.
                                              +     * 
                                              + */ + default void switchoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSwitchoverAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Initiates a failover to target autonomous database from the associated
                                              +     * primary database.
                                              +     * 
                                              + */ + default void failoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFailoverAutonomousDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists the ODB Networks in a given project and location.
                                              +     * 
                                              + */ + default void listOdbNetworks( + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOdbNetworksMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single ODB Network.
                                              +     * 
                                              + */ + default void getOdbNetwork( + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOdbNetworkMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new ODB Network in a given project and location.
                                              +     * 
                                              + */ + default void createOdbNetwork( + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateOdbNetworkMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single ODB Network.
                                              +     * 
                                              + */ + default void deleteOdbNetwork( + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteOdbNetworkMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the ODB Subnets in a given ODB Network.
                                              +     * 
                                              + */ + default void listOdbSubnets( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOdbSubnetsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single ODB Subnet.
                                              +     * 
                                              + */ + default void getOdbSubnet( + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOdbSubnetMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new ODB Subnet in a given ODB Network.
                                              +     * 
                                              + */ + default void createOdbSubnet( + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateOdbSubnetMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single ODB Subnet.
                                              +     * 
                                              + */ + default void deleteOdbSubnet( + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteOdbSubnetMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the Exadb (Exascale) VM Clusters for the given project and
                                              +     * location.
                                              +     * 
                                              + */ + default void listExadbVmClusters( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExadbVmClustersMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single Exadb (Exascale) VM Cluster.
                                              +     * 
                                              + */ + default void getExadbVmCluster( + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExadbVmClusterMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new Exadb (Exascale) VM Cluster resource.
                                              +     * 
                                              + */ + default void createExadbVmCluster( + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExadbVmClusterMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single Exadb (Exascale) VM Cluster.
                                              +     * 
                                              + */ + default void deleteExadbVmCluster( + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExadbVmClusterMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to
                                              +     * existing exadb vm cluster, only pass the node count.
                                              +     * 
                                              + */ + default void updateExadbVmCluster( + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExadbVmClusterMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Removes virtual machines from an existing exadb vm cluster.
                                              +     * 
                                              + */ + default void removeVirtualMachineExadbVmCluster( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveVirtualMachineExadbVmClusterMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the ExascaleDB Storage Vaults for the given project and
                                              +     * location.
                                              +     * 
                                              + */ + default void listExascaleDbStorageVaults( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExascaleDbStorageVaultsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single ExascaleDB Storage Vault.
                                              +     * 
                                              + */ + default void getExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExascaleDbStorageVaultMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new ExascaleDB Storage Vault resource.
                                              +     * 
                                              + */ + default void createExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExascaleDbStorageVaultMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single ExascaleDB Storage Vault.
                                              +     * 
                                              + */ + default void deleteExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExascaleDbStorageVaultMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the DbSystemInitialStorageSizes for the given project and
                                              +     * location.
                                              +     * 
                                              + */ + default void listDbSystemInitialStorageSizes( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDbSystemInitialStorageSizesMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the Databases for the given project, location and DbSystem.
                                              +     * 
                                              + */ + default void listDatabases( + com.google.cloud.oracledatabase.v1.ListDatabasesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatabasesMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single Database.
                                              +     * 
                                              + */ + default void getDatabase( + com.google.cloud.oracledatabase.v1.GetDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the PluggableDatabases for the given project, location and
                                              +     * Container Database.
                                              +     * 
                                              + */ + default void listPluggableDatabases( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPluggableDatabasesMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single PluggableDatabase.
                                              +     * 
                                              + */ + default void getPluggableDatabase( + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPluggableDatabaseMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the DbSystems for the given project and location.
                                              +     * 
                                              + */ + default void listDbSystems( + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDbSystemsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single DbSystem.
                                              +     * 
                                              + */ + default void getDbSystem( + com.google.cloud.oracledatabase.v1.GetDbSystemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDbSystemMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new DbSystem in a given project and location.
                                              +     * 
                                              + */ + default void createDbSystem( + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDbSystemMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single DbSystem.
                                              +     * 
                                              + */ + default void deleteDbSystem( + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDbSystemMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * List DbVersions for the given project and location.
                                              +     * 
                                              + */ + default void listDbVersions( + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDbVersionsMethod(), responseObserver); + } + + /** + * + * + *
                                              +     * List DatabaseCharacterSets for the given project and location.
                                              +     * 
                                              + */ + default void listDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatabaseCharacterSetsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service OracleDatabase. + * + *
                                              +   * Service describing handlers for resources
                                              +   * 
                                              + */ + public abstract static class OracleDatabaseImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return OracleDatabaseGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service OracleDatabase. + * + *
                                              +   * Service describing handlers for resources
                                              +   * 
                                              + */ + public static final class OracleDatabaseStub + extends io.grpc.stub.AbstractAsyncStub { + private OracleDatabaseStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OracleDatabaseStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OracleDatabaseStub(channel, callOptions); + } + + /** + * + * + *
                                              +     * Lists Exadata Infrastructures in a given project and location.
                                              +     * 
                                              + */ + public void listCloudExadataInfrastructures( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCloudExadataInfrastructuresMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single Exadata Infrastructure.
                                              +     * 
                                              + */ + public void getCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCloudExadataInfrastructureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new Exadata Infrastructure in a given project and location.
                                              +     * 
                                              + */ + public void createCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCloudExadataInfrastructureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single Exadata Infrastructure.
                                              +     * 
                                              + */ + public void deleteCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCloudExadataInfrastructureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists the VM Clusters in a given project and location.
                                              +     * 
                                              + */ + public void listCloudVmClusters( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCloudVmClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single VM Cluster.
                                              +     * 
                                              + */ + public void getCloudVmCluster( + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCloudVmClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new VM Cluster in a given project and location.
                                              +     * 
                                              + */ + public void createCloudVmCluster( + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCloudVmClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single VM Cluster.
                                              +     * 
                                              + */ + public void deleteCloudVmCluster( + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCloudVmClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists the entitlements in a given project.
                                              +     * 
                                              + */ + public void listEntitlements( + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEntitlementsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists the database servers of an Exadata Infrastructure instance.
                                              +     * 
                                              + */ + public void listDbServers( + com.google.cloud.oracledatabase.v1.ListDbServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDbServersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists the database nodes of a VM Cluster.
                                              +     * 
                                              + */ + public void listDbNodes( + com.google.cloud.oracledatabase.v1.ListDbNodesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDbNodesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
                                              +     * project and location.
                                              +     * 
                                              + */ + public void listGiVersions( + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGiVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the valid minor versions for the given
                                              +     * project, location, gi version and shape family.
                                              +     * 
                                              + */ + public void listMinorVersions( + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMinorVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists the database system shapes available for the project and location.
                                              +     * 
                                              + */ + public void listDbSystemShapes( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDbSystemShapesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists the Autonomous Databases in a given project and location.
                                              +     * 
                                              + */ + public void listAutonomousDatabases( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAutonomousDatabasesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets the details of a single Autonomous Database.
                                              +     * 
                                              + */ + public void getAutonomousDatabase( + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new Autonomous Database in a given project and location.
                                              +     * 
                                              + */ + public void createAutonomousDatabase( + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Updates the parameters of a single Autonomous Database.
                                              +     * 
                                              + */ + public void updateAutonomousDatabase( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single Autonomous Database.
                                              +     * 
                                              + */ + public void deleteAutonomousDatabase( + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Restores a single Autonomous Database.
                                              +     * 
                                              + */ + public void restoreAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Generates a wallet for an Autonomous Database.
                                              +     * 
                                              + */ + public void generateAutonomousDatabaseWallet( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAutonomousDatabaseWalletMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the available Autonomous Database versions for a project and
                                              +     * location.
                                              +     * 
                                              + */ + public void listAutonomousDbVersions( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAutonomousDbVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists Autonomous Database Character Sets in a given project and location.
                                              +     * 
                                              + */ + public void listAutonomousDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAutonomousDatabaseCharacterSetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists the long-term and automatic backups of an Autonomous Database.
                                              +     * 
                                              + */ + public void listAutonomousDatabaseBackups( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAutonomousDatabaseBackupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Stops an Autonomous Database.
                                              +     * 
                                              + */ + public void stopAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Starts an Autonomous Database.
                                              +     * 
                                              + */ + public void startAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Restarts an Autonomous Database.
                                              +     * 
                                              + */ + public void restartAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestartAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Initiates a switchover of specified autonomous database to the associated
                                              +     * peer database.
                                              +     * 
                                              + */ + public void switchoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSwitchoverAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Initiates a failover to target autonomous database from the associated
                                              +     * primary database.
                                              +     * 
                                              + */ + public void failoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFailoverAutonomousDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists the ODB Networks in a given project and location.
                                              +     * 
                                              + */ + public void listOdbNetworks( + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOdbNetworksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single ODB Network.
                                              +     * 
                                              + */ + public void getOdbNetwork( + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOdbNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new ODB Network in a given project and location.
                                              +     * 
                                              + */ + public void createOdbNetwork( + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateOdbNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single ODB Network.
                                              +     * 
                                              + */ + public void deleteOdbNetwork( + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteOdbNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the ODB Subnets in a given ODB Network.
                                              +     * 
                                              + */ + public void listOdbSubnets( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOdbSubnetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single ODB Subnet.
                                              +     * 
                                              + */ + public void getOdbSubnet( + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOdbSubnetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new ODB Subnet in a given ODB Network.
                                              +     * 
                                              + */ + public void createOdbSubnet( + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateOdbSubnetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single ODB Subnet.
                                              +     * 
                                              + */ + public void deleteOdbSubnet( + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteOdbSubnetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the Exadb (Exascale) VM Clusters for the given project and
                                              +     * location.
                                              +     * 
                                              + */ + public void listExadbVmClusters( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExadbVmClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single Exadb (Exascale) VM Cluster.
                                              +     * 
                                              + */ + public void getExadbVmCluster( + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExadbVmClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new Exadb (Exascale) VM Cluster resource.
                                              +     * 
                                              + */ + public void createExadbVmCluster( + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExadbVmClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single Exadb (Exascale) VM Cluster.
                                              +     * 
                                              + */ + public void deleteExadbVmCluster( + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExadbVmClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to
                                              +     * existing exadb vm cluster, only pass the node count.
                                              +     * 
                                              + */ + public void updateExadbVmCluster( + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExadbVmClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Removes virtual machines from an existing exadb vm cluster.
                                              +     * 
                                              + */ + public void removeVirtualMachineExadbVmCluster( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveVirtualMachineExadbVmClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the ExascaleDB Storage Vaults for the given project and
                                              +     * location.
                                              +     * 
                                              + */ + public void listExascaleDbStorageVaults( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExascaleDbStorageVaultsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single ExascaleDB Storage Vault.
                                              +     * 
                                              + */ + public void getExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExascaleDbStorageVaultMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new ExascaleDB Storage Vault resource.
                                              +     * 
                                              + */ + public void createExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExascaleDbStorageVaultMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single ExascaleDB Storage Vault.
                                              +     * 
                                              + */ + public void deleteExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExascaleDbStorageVaultMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the DbSystemInitialStorageSizes for the given project and
                                              +     * location.
                                              +     * 
                                              + */ + public void listDbSystemInitialStorageSizes( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDbSystemInitialStorageSizesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the Databases for the given project, location and DbSystem.
                                              +     * 
                                              + */ + public void listDatabases( + com.google.cloud.oracledatabase.v1.ListDatabasesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatabasesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single Database.
                                              +     * 
                                              + */ + public void getDatabase( + com.google.cloud.oracledatabase.v1.GetDatabaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the PluggableDatabases for the given project, location and
                                              +     * Container Database.
                                              +     * 
                                              + */ + public void listPluggableDatabases( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPluggableDatabasesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single PluggableDatabase.
                                              +     * 
                                              + */ + public void getPluggableDatabase( + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPluggableDatabaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Lists all the DbSystems for the given project and location.
                                              +     * 
                                              + */ + public void listDbSystems( + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDbSystemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Gets details of a single DbSystem.
                                              +     * 
                                              + */ + public void getDbSystem( + com.google.cloud.oracledatabase.v1.GetDbSystemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDbSystemMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Creates a new DbSystem in a given project and location.
                                              +     * 
                                              + */ + public void createDbSystem( + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDbSystemMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * Deletes a single DbSystem.
                                              +     * 
                                              + */ + public void deleteDbSystem( + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDbSystemMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * List DbVersions for the given project and location.
                                              +     * 
                                              + */ + public void listDbVersions( + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDbVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                              +     * List DatabaseCharacterSets for the given project and location.
                                              +     * 
                                              + */ + public void listDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatabaseCharacterSetsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service OracleDatabase. + * + *
                                              +   * Service describing handlers for resources
                                              +   * 
                                              + */ + public static final class OracleDatabaseBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private OracleDatabaseBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OracleDatabaseBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OracleDatabaseBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                              +     * Lists Exadata Infrastructures in a given project and location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + listCloudExadataInfrastructures( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListCloudExadataInfrastructuresMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets details of a single Exadata Infrastructure.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + getCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetCloudExadataInfrastructureMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new Exadata Infrastructure in a given project and location.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateCloudExadataInfrastructureMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                    * Deletes a single Exadata Infrastructure.
                                                    * 
                                              */ - default void deleteCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCloudExadataInfrastructureMethod(), responseObserver); + public com.google.longrunning.Operation deleteCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteCloudExadataInfrastructureMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the VM Clusters in a given project and location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse listCloudVmClusters( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListCloudVmClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets details of a single VM Cluster.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmCluster( + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetCloudVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new VM Cluster in a given project and location.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createCloudVmCluster( + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateCloudVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes a single VM Cluster.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteCloudVmCluster( + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteCloudVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the entitlements in a given project.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListEntitlementsResponse listEntitlements( + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListEntitlementsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the database servers of an Exadata Infrastructure instance.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListDbServersResponse listDbServers( + com.google.cloud.oracledatabase.v1.ListDbServersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDbServersMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the database nodes of a VM Cluster.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListDbNodesResponse listDbNodes( + com.google.cloud.oracledatabase.v1.ListDbNodesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDbNodesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
                                              +     * project and location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListGiVersionsResponse listGiVersions( + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListGiVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists all the valid minor versions for the given
                                              +     * project, location, gi version and shape family.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse listMinorVersions( + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMinorVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the database system shapes available for the project and location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse listDbSystemShapes( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDbSystemShapesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the Autonomous Databases in a given project and location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + listAutonomousDatabases( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAutonomousDatabasesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets the details of a single Autonomous Database.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase( + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAutonomousDatabaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new Autonomous Database in a given project and location.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createAutonomousDatabase( + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAutonomousDatabaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Updates the parameters of a single Autonomous Database.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation updateAutonomousDatabase( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAutonomousDatabaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes a single Autonomous Database.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteAutonomousDatabase( + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAutonomousDatabaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Restores a single Autonomous Database.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation restoreAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRestoreAutonomousDatabaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Generates a wallet for an Autonomous Database.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + generateAutonomousDatabaseWallet( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateAutonomousDatabaseWalletMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the VM Clusters in a given project and location.
                                              +     * Lists all the available Autonomous Database versions for a project and
                                              +     * location.
                                                    * 
                                              */ - default void listCloudVmClusters( - com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCloudVmClustersMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + listAutonomousDbVersions( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAutonomousDbVersionsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Gets details of a single VM Cluster.
                                              +     * Lists Autonomous Database Character Sets in a given project and location.
                                                    * 
                                              */ - default void getCloudVmCluster( - com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCloudVmClusterMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + listAutonomousDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAutonomousDatabaseCharacterSetsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Creates a new VM Cluster in a given project and location.
                                              +     * Lists the long-term and automatic backups of an Autonomous Database.
                                                    * 
                                              */ - default void createCloudVmCluster( - com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCloudVmClusterMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + listAutonomousDatabaseBackups( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAutonomousDatabaseBackupsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Deletes a single VM Cluster.
                                              +     * Stops an Autonomous Database.
                                                    * 
                                              */ - default void deleteCloudVmCluster( - com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCloudVmClusterMethod(), responseObserver); + public com.google.longrunning.Operation stopAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getStopAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the entitlements in a given project.
                                              +     * Starts an Autonomous Database.
                                                    * 
                                              */ - default void listEntitlements( - com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEntitlementsMethod(), responseObserver); + public com.google.longrunning.Operation startAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getStartAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the database servers of an Exadata Infrastructure instance.
                                              +     * Restarts an Autonomous Database.
                                                    * 
                                              */ - default void listDbServers( - com.google.cloud.oracledatabase.v1.ListDbServersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDbServersMethod(), responseObserver); + public com.google.longrunning.Operation restartAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRestartAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the database nodes of a VM Cluster.
                                              +     * Initiates a switchover of specified autonomous database to the associated
                                              +     * peer database.
                                                    * 
                                              */ - default void listDbNodes( - com.google.cloud.oracledatabase.v1.ListDbNodesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDbNodesMethod(), responseObserver); + public com.google.longrunning.Operation switchoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSwitchoverAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
                                              -     * project and location.
                                              +     * Initiates a failover to target autonomous database from the associated
                                              +     * primary database.
                                                    * 
                                              */ - default void listGiVersions( - com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGiVersionsMethod(), responseObserver); + public com.google.longrunning.Operation failoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFailoverAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the database system shapes available for the project and location.
                                              +     * Lists the ODB Networks in a given project and location.
                                                    * 
                                              */ - default void listDbSystemShapes( - com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDbSystemShapesMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse listOdbNetworks( + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListOdbNetworksMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the Autonomous Databases in a given project and location.
                                              +     * Gets details of a single ODB Network.
                                                    * 
                                              */ - default void listAutonomousDatabases( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAutonomousDatabasesMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.OdbNetwork getOdbNetwork( + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetOdbNetworkMethod(), getCallOptions(), request); } /** * * *
                                              -     * Gets the details of a single Autonomous Database.
                                              +     * Creates a new ODB Network in a given project and location.
                                                    * 
                                              */ - default void getAutonomousDatabase( - com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAutonomousDatabaseMethod(), responseObserver); + public com.google.longrunning.Operation createOdbNetwork( + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateOdbNetworkMethod(), getCallOptions(), request); } /** * * *
                                              -     * Creates a new Autonomous Database in a given project and location.
                                              +     * Deletes a single ODB Network.
                                                    * 
                                              */ - default void createAutonomousDatabase( - com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAutonomousDatabaseMethod(), responseObserver); + public com.google.longrunning.Operation deleteOdbNetwork( + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteOdbNetworkMethod(), getCallOptions(), request); } /** * * *
                                              -     * Deletes a single Autonomous Database.
                                              +     * Lists all the ODB Subnets in a given ODB Network.
                                                    * 
                                              */ - default void deleteAutonomousDatabase( - com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAutonomousDatabaseMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse listOdbSubnets( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListOdbSubnetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets details of a single ODB Subnet.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.OdbSubnet getOdbSubnet( + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetOdbSubnetMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new ODB Subnet in a given ODB Network.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createOdbSubnet( + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateOdbSubnetMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes a single ODB Subnet.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteOdbSubnet( + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteOdbSubnetMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists all the Exadb (Exascale) VM Clusters for the given project and
                                              +     * location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse listExadbVmClusters( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListExadbVmClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets details of a single Exadb (Exascale) VM Cluster.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmCluster( + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetExadbVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new Exadb (Exascale) VM Cluster resource.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createExadbVmCluster( + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateExadbVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes a single Exadb (Exascale) VM Cluster.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteExadbVmCluster( + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteExadbVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to
                                              +     * existing exadb vm cluster, only pass the node count.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation updateExadbVmCluster( + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateExadbVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Removes virtual machines from an existing exadb vm cluster.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation removeVirtualMachineExadbVmCluster( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRemoveVirtualMachineExadbVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists all the ExascaleDB Storage Vaults for the given project and
                                              +     * location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + listExascaleDbStorageVaults( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListExascaleDbStorageVaultsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets details of a single ExascaleDB Storage Vault.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetExascaleDbStorageVaultMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Creates a new ExascaleDB Storage Vault resource.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation createExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateExascaleDbStorageVaultMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes a single ExascaleDB Storage Vault.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteExascaleDbStorageVaultMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists all the DbSystemInitialStorageSizes for the given project and
                                              +     * location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + listDbSystemInitialStorageSizes( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDbSystemInitialStorageSizesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists all the Databases for the given project, location and DbSystem.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListDatabasesResponse listDatabases( + com.google.cloud.oracledatabase.v1.ListDatabasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDatabasesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Gets details of a single Database.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.Database getDatabase( + com.google.cloud.oracledatabase.v1.GetDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Restores a single Autonomous Database.
                                              +     * Lists all the PluggableDatabases for the given project, location and
                                              +     * Container Database.
                                                    * 
                                              */ - default void restoreAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreAutonomousDatabaseMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse listPluggableDatabases( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListPluggableDatabasesMethod(), getCallOptions(), request); } /** * * *
                                              -     * Generates a wallet for an Autonomous Database.
                                              +     * Gets details of a single PluggableDatabase.
                                                    * 
                                              */ - default void generateAutonomousDatabaseWallet( - com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateAutonomousDatabaseWalletMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.PluggableDatabase getPluggableDatabase( + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetPluggableDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists all the available Autonomous Database versions for a project and
                                              -     * location.
                                              +     * Lists all the DbSystems for the given project and location.
                                                    * 
                                              */ - default void listAutonomousDbVersions( - com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAutonomousDbVersionsMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.ListDbSystemsResponse listDbSystems( + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDbSystemsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists Autonomous Database Character Sets in a given project and location.
                                              +     * Gets details of a single DbSystem.
                                                    * 
                                              */ - default void listAutonomousDatabaseCharacterSets( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAutonomousDatabaseCharacterSetsMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.DbSystem getDbSystem( + com.google.cloud.oracledatabase.v1.GetDbSystemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDbSystemMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the long-term and automatic backups of an Autonomous Database.
                                              +     * Creates a new DbSystem in a given project and location.
                                                    * 
                                              */ - default void listAutonomousDatabaseBackups( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAutonomousDatabaseBackupsMethod(), responseObserver); + public com.google.longrunning.Operation createDbSystem( + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateDbSystemMethod(), getCallOptions(), request); } /** * * *
                                              -     * Stops an Autonomous Database.
                                              +     * Deletes a single DbSystem.
                                                    * 
                                              */ - default void stopAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopAutonomousDatabaseMethod(), responseObserver); + public com.google.longrunning.Operation deleteDbSystem( + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteDbSystemMethod(), getCallOptions(), request); } /** * * *
                                              -     * Starts an Autonomous Database.
                                              +     * List DbVersions for the given project and location.
                                                    * 
                                              */ - default void startAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartAutonomousDatabaseMethod(), responseObserver); + public com.google.cloud.oracledatabase.v1.ListDbVersionsResponse listDbVersions( + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDbVersionsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Restarts an Autonomous Database.
                                              +     * List DatabaseCharacterSets for the given project and location.
                                                    * 
                                              */ - default void restartAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestartAutonomousDatabaseMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service OracleDatabase. - * - *
                                              -   * Service describing handlers for resources
                                              -   * 
                                              - */ - public abstract static class OracleDatabaseImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return OracleDatabaseGrpc.bindService(this); + public com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse + listDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDatabaseCharacterSetsMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do asynchronous rpc calls to service OracleDatabase. + * A stub to allow clients to do limited synchronous rpc calls to service OracleDatabase. * *
                                                  * Service describing handlers for resources
                                                  * 
                                              */ - public static final class OracleDatabaseStub - extends io.grpc.stub.AbstractAsyncStub { - private OracleDatabaseStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class OracleDatabaseBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private OracleDatabaseBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected OracleDatabaseStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OracleDatabaseStub(channel, callOptions); + protected OracleDatabaseBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OracleDatabaseBlockingStub(channel, callOptions); } /** @@ -1775,15 +5719,11 @@ protected OracleDatabaseStub build(io.grpc.Channel channel, io.grpc.CallOptions * Lists Exadata Infrastructures in a given project and location. *
                                              */ - public void listCloudExadataInfrastructures( - com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCloudExadataInfrastructuresMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + listCloudExadataInfrastructures( + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCloudExadataInfrastructuresMethod(), getCallOptions(), request); } /** @@ -1793,14 +5733,11 @@ public void listCloudExadataInfrastructures( * Gets details of a single Exadata Infrastructure. * */ - public void getCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCloudExadataInfrastructureMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + getCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCloudExadataInfrastructureMethod(), getCallOptions(), request); } /** @@ -1810,13 +5747,10 @@ public void getCloudExadataInfrastructure( * Creates a new Exadata Infrastructure in a given project and location. * */ - public void createCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCloudExadataInfrastructureMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCloudExadataInfrastructureMethod(), getCallOptions(), request); } /** @@ -1826,13 +5760,10 @@ public void createCloudExadataInfrastructure( * Deletes a single Exadata Infrastructure. * */ - public void deleteCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCloudExadataInfrastructureMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCloudExadataInfrastructureMethod(), getCallOptions(), request); } /** @@ -1842,14 +5773,10 @@ public void deleteCloudExadataInfrastructure( * Lists the VM Clusters in a given project and location. * */ - public void listCloudVmClusters( - com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCloudVmClustersMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse listCloudVmClusters( + com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCloudVmClustersMethod(), getCallOptions(), request); } /** @@ -1859,14 +5786,10 @@ public void listCloudVmClusters( * Gets details of a single VM Cluster. * */ - public void getCloudVmCluster( - com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCloudVmClusterMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmCluster( + com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCloudVmClusterMethod(), getCallOptions(), request); } /** @@ -1876,693 +5799,711 @@ public void getCloudVmCluster( * Creates a new VM Cluster in a given project and location. * */ - public void createCloudVmCluster( - com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCloudVmClusterMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createCloudVmCluster( + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCloudVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Deletes a single VM Cluster.
                                              +     * 
                                              + */ + public com.google.longrunning.Operation deleteCloudVmCluster( + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCloudVmClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the entitlements in a given project.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListEntitlementsResponse listEntitlements( + com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEntitlementsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the database servers of an Exadata Infrastructure instance.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListDbServersResponse listDbServers( + com.google.cloud.oracledatabase.v1.ListDbServersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDbServersMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the database nodes of a VM Cluster.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListDbNodesResponse listDbNodes( + com.google.cloud.oracledatabase.v1.ListDbNodesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDbNodesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
                                              +     * project and location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListGiVersionsResponse listGiVersions( + com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGiVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists all the valid minor versions for the given
                                              +     * project, location, gi version and shape family.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse listMinorVersions( + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMinorVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * Lists the database system shapes available for the project and location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse listDbSystemShapes( + com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDbSystemShapesMethod(), getCallOptions(), request); } /** * * *
                                              -     * Deletes a single VM Cluster.
                                              +     * Lists the Autonomous Databases in a given project and location.
                                                    * 
                                              */ - public void deleteCloudVmCluster( - com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCloudVmClusterMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + listAutonomousDatabases( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAutonomousDatabasesMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the entitlements in a given project.
                                              +     * Gets the details of a single Autonomous Database.
                                                    * 
                                              */ - public void listEntitlements( - com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEntitlementsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase( + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the database servers of an Exadata Infrastructure instance.
                                              +     * Creates a new Autonomous Database in a given project and location.
                                                    * 
                                              */ - public void listDbServers( - com.google.cloud.oracledatabase.v1.ListDbServersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDbServersMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createAutonomousDatabase( + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the database nodes of a VM Cluster.
                                              +     * Updates the parameters of a single Autonomous Database.
                                                    * 
                                              */ - public void listDbNodes( - com.google.cloud.oracledatabase.v1.ListDbNodesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDbNodesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateAutonomousDatabase( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
                                              -     * project and location.
                                              +     * Deletes a single Autonomous Database.
                                                    * 
                                              */ - public void listGiVersions( - com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGiVersionsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteAutonomousDatabase( + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the database system shapes available for the project and location.
                                              +     * Restores a single Autonomous Database.
                                                    * 
                                              */ - public void listDbSystemShapes( - com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDbSystemShapesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation restoreAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the Autonomous Databases in a given project and location.
                                              +     * Generates a wallet for an Autonomous Database.
                                                    * 
                                              */ - public void listAutonomousDatabases( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAutonomousDatabasesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + generateAutonomousDatabaseWallet( + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAutonomousDatabaseWalletMethod(), getCallOptions(), request); } /** * * *
                                              -     * Gets the details of a single Autonomous Database.
                                              +     * Lists all the available Autonomous Database versions for a project and
                                              +     * location.
                                                    * 
                                              */ - public void getAutonomousDatabase( - com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAutonomousDatabaseMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + listAutonomousDbVersions( + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAutonomousDbVersionsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Creates a new Autonomous Database in a given project and location.
                                              +     * Lists Autonomous Database Character Sets in a given project and location.
                                                    * 
                                              */ - public void createAutonomousDatabase( - com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAutonomousDatabaseMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + listAutonomousDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAutonomousDatabaseCharacterSetsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Deletes a single Autonomous Database.
                                              +     * Lists the long-term and automatic backups of an Autonomous Database.
                                                    * 
                                              */ - public void deleteAutonomousDatabase( - com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAutonomousDatabaseMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + listAutonomousDatabaseBackups( + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAutonomousDatabaseBackupsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Restores a single Autonomous Database.
                                              +     * Stops an Autonomous Database.
                                                    * 
                                              */ - public void restoreAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreAutonomousDatabaseMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation stopAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Generates a wallet for an Autonomous Database.
                                              +     * Starts an Autonomous Database.
                                                    * 
                                              */ - public void generateAutonomousDatabaseWallet( - com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateAutonomousDatabaseWalletMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation startAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists all the available Autonomous Database versions for a project and
                                              -     * location.
                                              +     * Restarts an Autonomous Database.
                                                    * 
                                              */ - public void listAutonomousDbVersions( - com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAutonomousDbVersionsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation restartAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestartAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists Autonomous Database Character Sets in a given project and location.
                                              +     * Initiates a switchover of specified autonomous database to the associated
                                              +     * peer database.
                                                    * 
                                              */ - public void listAutonomousDatabaseCharacterSets( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAutonomousDatabaseCharacterSetsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation switchoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSwitchoverAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the long-term and automatic backups of an Autonomous Database.
                                              +     * Initiates a failover to target autonomous database from the associated
                                              +     * primary database.
                                                    * 
                                              */ - public void listAutonomousDatabaseBackups( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAutonomousDatabaseBackupsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation failoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFailoverAutonomousDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Stops an Autonomous Database.
                                              +     * Lists the ODB Networks in a given project and location.
                                                    * 
                                              */ - public void stopAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopAutonomousDatabaseMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse listOdbNetworks( + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOdbNetworksMethod(), getCallOptions(), request); } /** * * *
                                              -     * Starts an Autonomous Database.
                                              +     * Gets details of a single ODB Network.
                                                    * 
                                              */ - public void startAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartAutonomousDatabaseMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.oracledatabase.v1.OdbNetwork getOdbNetwork( + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOdbNetworkMethod(), getCallOptions(), request); } /** * * *
                                              -     * Restarts an Autonomous Database.
                                              +     * Creates a new ODB Network in a given project and location.
                                                    * 
                                              */ - public void restartAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestartAutonomousDatabaseMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service OracleDatabase. - * - *
                                              -   * Service describing handlers for resources
                                              -   * 
                                              - */ - public static final class OracleDatabaseBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private OracleDatabaseBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected OracleDatabaseBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OracleDatabaseBlockingV2Stub(channel, callOptions); + public com.google.longrunning.Operation createOdbNetwork( + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateOdbNetworkMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists Exadata Infrastructures in a given project and location.
                                              +     * Deletes a single ODB Network.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse - listCloudExadataInfrastructures( - com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest request) { + public com.google.longrunning.Operation deleteOdbNetwork( + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCloudExadataInfrastructuresMethod(), getCallOptions(), request); + getChannel(), getDeleteOdbNetworkMethod(), getCallOptions(), request); } /** * * *
                                              -     * Gets details of a single Exadata Infrastructure.
                                              +     * Lists all the ODB Subnets in a given ODB Network.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure - getCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest request) { + public com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse listOdbSubnets( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCloudExadataInfrastructureMethod(), getCallOptions(), request); + getChannel(), getListOdbSubnetsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Creates a new Exadata Infrastructure in a given project and location.
                                              +     * Gets details of a single ODB Subnet.
                                                    * 
                                              */ - public com.google.longrunning.Operation createCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request) { + public com.google.cloud.oracledatabase.v1.OdbSubnet getOdbSubnet( + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCloudExadataInfrastructureMethod(), getCallOptions(), request); + getChannel(), getGetOdbSubnetMethod(), getCallOptions(), request); } /** * * *
                                              -     * Deletes a single Exadata Infrastructure.
                                              +     * Creates a new ODB Subnet in a given ODB Network.
                                                    * 
                                              */ - public com.google.longrunning.Operation deleteCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request) { + public com.google.longrunning.Operation createOdbSubnet( + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCloudExadataInfrastructureMethod(), getCallOptions(), request); + getChannel(), getCreateOdbSubnetMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the VM Clusters in a given project and location.
                                              +     * Deletes a single ODB Subnet.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse listCloudVmClusters( - com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request) { + public com.google.longrunning.Operation deleteOdbSubnet( + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCloudVmClustersMethod(), getCallOptions(), request); + getChannel(), getDeleteOdbSubnetMethod(), getCallOptions(), request); } /** * * *
                                              -     * Gets details of a single VM Cluster.
                                              +     * Lists all the Exadb (Exascale) VM Clusters for the given project and
                                              +     * location.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmCluster( - com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request) { + public com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse listExadbVmClusters( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCloudVmClusterMethod(), getCallOptions(), request); + getChannel(), getListExadbVmClustersMethod(), getCallOptions(), request); } /** * * *
                                              -     * Creates a new VM Cluster in a given project and location.
                                              +     * Gets details of a single Exadb (Exascale) VM Cluster.
                                                    * 
                                              */ - public com.google.longrunning.Operation createCloudVmCluster( - com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request) { + public com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmCluster( + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCloudVmClusterMethod(), getCallOptions(), request); + getChannel(), getGetExadbVmClusterMethod(), getCallOptions(), request); } /** * * *
                                              -     * Deletes a single VM Cluster.
                                              +     * Creates a new Exadb (Exascale) VM Cluster resource.
                                                    * 
                                              */ - public com.google.longrunning.Operation deleteCloudVmCluster( - com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request) { + public com.google.longrunning.Operation createExadbVmCluster( + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCloudVmClusterMethod(), getCallOptions(), request); + getChannel(), getCreateExadbVmClusterMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the entitlements in a given project.
                                              +     * Deletes a single Exadb (Exascale) VM Cluster.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListEntitlementsResponse listEntitlements( - com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request) { + public com.google.longrunning.Operation deleteExadbVmCluster( + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEntitlementsMethod(), getCallOptions(), request); + getChannel(), getDeleteExadbVmClusterMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the database servers of an Exadata Infrastructure instance.
                                              +     * Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to
                                              +     * existing exadb vm cluster, only pass the node count.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListDbServersResponse listDbServers( - com.google.cloud.oracledatabase.v1.ListDbServersRequest request) { + public com.google.longrunning.Operation updateExadbVmCluster( + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDbServersMethod(), getCallOptions(), request); + getChannel(), getUpdateExadbVmClusterMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the database nodes of a VM Cluster.
                                              +     * Removes virtual machines from an existing exadb vm cluster.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListDbNodesResponse listDbNodes( - com.google.cloud.oracledatabase.v1.ListDbNodesRequest request) { + public com.google.longrunning.Operation removeVirtualMachineExadbVmCluster( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDbNodesMethod(), getCallOptions(), request); + getChannel(), getRemoveVirtualMachineExadbVmClusterMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
                                              -     * project and location.
                                              +     * Lists all the ExascaleDB Storage Vaults for the given project and
                                              +     * location.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListGiVersionsResponse listGiVersions( - com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request) { + public com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + listExascaleDbStorageVaults( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGiVersionsMethod(), getCallOptions(), request); + getChannel(), getListExascaleDbStorageVaultsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the database system shapes available for the project and location.
                                              +     * Gets details of a single ExascaleDB Storage Vault.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse listDbSystemShapes( - com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request) { + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDbSystemShapesMethod(), getCallOptions(), request); + getChannel(), getGetExascaleDbStorageVaultMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the Autonomous Databases in a given project and location.
                                              +     * Creates a new ExascaleDB Storage Vault resource.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse - listAutonomousDatabases( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest request) { + public com.google.longrunning.Operation createExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutonomousDatabasesMethod(), getCallOptions(), request); + getChannel(), getCreateExascaleDbStorageVaultMethod(), getCallOptions(), request); } /** * * *
                                              -     * Gets the details of a single Autonomous Database.
                                              +     * Deletes a single ExascaleDB Storage Vault.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase( - com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request) { + public com.google.longrunning.Operation deleteExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAutonomousDatabaseMethod(), getCallOptions(), request); + getChannel(), getDeleteExascaleDbStorageVaultMethod(), getCallOptions(), request); } /** * * *
                                              -     * Creates a new Autonomous Database in a given project and location.
                                              +     * Lists all the DbSystemInitialStorageSizes for the given project and
                                              +     * location.
                                                    * 
                                              */ - public com.google.longrunning.Operation createAutonomousDatabase( - com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request) { + public com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + listDbSystemInitialStorageSizes( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAutonomousDatabaseMethod(), getCallOptions(), request); + getChannel(), getListDbSystemInitialStorageSizesMethod(), getCallOptions(), request); } /** * * *
                                              -     * Deletes a single Autonomous Database.
                                              +     * Lists all the Databases for the given project, location and DbSystem.
                                                    * 
                                              */ - public com.google.longrunning.Operation deleteAutonomousDatabase( - com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request) { + public com.google.cloud.oracledatabase.v1.ListDatabasesResponse listDatabases( + com.google.cloud.oracledatabase.v1.ListDatabasesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAutonomousDatabaseMethod(), getCallOptions(), request); + getChannel(), getListDatabasesMethod(), getCallOptions(), request); } /** * * *
                                              -     * Restores a single Autonomous Database.
                                              +     * Gets details of a single Database.
                                                    * 
                                              */ - public com.google.longrunning.Operation restoreAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request) { + public com.google.cloud.oracledatabase.v1.Database getDatabase( + com.google.cloud.oracledatabase.v1.GetDatabaseRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreAutonomousDatabaseMethod(), getCallOptions(), request); + getChannel(), getGetDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Generates a wallet for an Autonomous Database.
                                              +     * Lists all the PluggableDatabases for the given project, location and
                                              +     * Container Database.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse - generateAutonomousDatabaseWallet( - com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest request) { + public com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse listPluggableDatabases( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateAutonomousDatabaseWalletMethod(), getCallOptions(), request); + getChannel(), getListPluggableDatabasesMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists all the available Autonomous Database versions for a project and
                                              -     * location.
                                              +     * Gets details of a single PluggableDatabase.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse - listAutonomousDbVersions( - com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest request) { + public com.google.cloud.oracledatabase.v1.PluggableDatabase getPluggableDatabase( + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutonomousDbVersionsMethod(), getCallOptions(), request); + getChannel(), getGetPluggableDatabaseMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists Autonomous Database Character Sets in a given project and location.
                                              +     * Lists all the DbSystems for the given project and location.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse - listAutonomousDatabaseCharacterSets( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest request) { + public com.google.cloud.oracledatabase.v1.ListDbSystemsResponse listDbSystems( + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutonomousDatabaseCharacterSetsMethod(), getCallOptions(), request); + getChannel(), getListDbSystemsMethod(), getCallOptions(), request); } /** * * *
                                              -     * Lists the long-term and automatic backups of an Autonomous Database.
                                              +     * Gets details of a single DbSystem.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse - listAutonomousDatabaseBackups( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest request) { + public com.google.cloud.oracledatabase.v1.DbSystem getDbSystem( + com.google.cloud.oracledatabase.v1.GetDbSystemRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutonomousDatabaseBackupsMethod(), getCallOptions(), request); + getChannel(), getGetDbSystemMethod(), getCallOptions(), request); } /** * * *
                                              -     * Stops an Autonomous Database.
                                              +     * Creates a new DbSystem in a given project and location.
                                                    * 
                                              */ - public com.google.longrunning.Operation stopAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request) { + public com.google.longrunning.Operation createDbSystem( + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopAutonomousDatabaseMethod(), getCallOptions(), request); + getChannel(), getCreateDbSystemMethod(), getCallOptions(), request); } /** * * *
                                              -     * Starts an Autonomous Database.
                                              +     * Deletes a single DbSystem.
                                                    * 
                                              */ - public com.google.longrunning.Operation startAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request) { + public com.google.longrunning.Operation deleteDbSystem( + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartAutonomousDatabaseMethod(), getCallOptions(), request); + getChannel(), getDeleteDbSystemMethod(), getCallOptions(), request); } /** * * *
                                              -     * Restarts an Autonomous Database.
                                              +     * List DbVersions for the given project and location.
                                                    * 
                                              */ - public com.google.longrunning.Operation restartAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request) { + public com.google.cloud.oracledatabase.v1.ListDbVersionsResponse listDbVersions( + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestartAutonomousDatabaseMethod(), getCallOptions(), request); + getChannel(), getListDbVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                              +     * List DatabaseCharacterSets for the given project and location.
                                              +     * 
                                              + */ + public com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse + listDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatabaseCharacterSetsMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do limited synchronous rpc calls to service OracleDatabase. + * A stub to allow clients to do ListenableFuture-style rpc calls to service OracleDatabase. * *
                                                  * Service describing handlers for resources
                                                  * 
                                              */ - public static final class OracleDatabaseBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private OracleDatabaseBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class OracleDatabaseFutureStub + extends io.grpc.stub.AbstractFutureStub { + private OracleDatabaseFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected OracleDatabaseBlockingStub build( + protected OracleDatabaseFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OracleDatabaseBlockingStub(channel, callOptions); + return new OracleDatabaseFutureStub(channel, callOptions); } /** @@ -2572,11 +6513,13 @@ protected OracleDatabaseBlockingStub build( * Lists Exadata Infrastructures in a given project and location. * */ - public com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse> listCloudExadataInfrastructures( com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCloudExadataInfrastructuresMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCloudExadataInfrastructuresMethod(), getCallOptions()), + request); } /** @@ -2586,11 +6529,13 @@ protected OracleDatabaseBlockingStub build( * Gets details of a single Exadata Infrastructure. * */ - public com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure> getCloudExadataInfrastructure( com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCloudExadataInfrastructureMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCloudExadataInfrastructureMethod(), getCallOptions()), + request); } /** @@ -2600,10 +6545,12 @@ protected OracleDatabaseBlockingStub build( * Creates a new Exadata Infrastructure in a given project and location. * */ - public com.google.longrunning.Operation createCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCloudExadataInfrastructureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCloudExadataInfrastructureMethod(), getCallOptions()), + request); } /** @@ -2613,10 +6560,12 @@ public com.google.longrunning.Operation createCloudExadataInfrastructure( * Deletes a single Exadata Infrastructure. * */ - public com.google.longrunning.Operation deleteCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCloudExadataInfrastructureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCloudExadataInfrastructureMethod(), getCallOptions()), + request); } /** @@ -2626,10 +6575,11 @@ public com.google.longrunning.Operation deleteCloudExadataInfrastructure( * Lists the VM Clusters in a given project and location. * */ - public com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse listCloudVmClusters( - com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCloudVmClustersMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse> + listCloudVmClusters(com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCloudVmClustersMethod(), getCallOptions()), request); } /** @@ -2639,10 +6589,11 @@ public com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse listCloudV * Gets details of a single VM Cluster. * */ - public com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmCluster( - com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCloudVmClusterMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.CloudVmCluster> + getCloudVmCluster(com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCloudVmClusterMethod(), getCallOptions()), request); } /** @@ -2652,10 +6603,11 @@ public com.google.cloud.oracledatabase.v1.CloudVmCluster getCloudVmCluster( * Creates a new VM Cluster in a given project and location. * */ - public com.google.longrunning.Operation createCloudVmCluster( - com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCloudVmClusterMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createCloudVmCluster( + com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCloudVmClusterMethod(), getCallOptions()), request); } /** @@ -2665,10 +6617,11 @@ public com.google.longrunning.Operation createCloudVmCluster( * Deletes a single VM Cluster. * */ - public com.google.longrunning.Operation deleteCloudVmCluster( - com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCloudVmClusterMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteCloudVmCluster( + com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCloudVmClusterMethod(), getCallOptions()), request); } /** @@ -2678,10 +6631,11 @@ public com.google.longrunning.Operation deleteCloudVmCluster( * Lists the entitlements in a given project. * */ - public com.google.cloud.oracledatabase.v1.ListEntitlementsResponse listEntitlements( - com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEntitlementsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListEntitlementsResponse> + listEntitlements(com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEntitlementsMethod(), getCallOptions()), request); } /** @@ -2691,10 +6645,11 @@ public com.google.cloud.oracledatabase.v1.ListEntitlementsResponse listEntitleme * Lists the database servers of an Exadata Infrastructure instance. * */ - public com.google.cloud.oracledatabase.v1.ListDbServersResponse listDbServers( - com.google.cloud.oracledatabase.v1.ListDbServersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDbServersMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListDbServersResponse> + listDbServers(com.google.cloud.oracledatabase.v1.ListDbServersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDbServersMethod(), getCallOptions()), request); } /** @@ -2704,10 +6659,11 @@ public com.google.cloud.oracledatabase.v1.ListDbServersResponse listDbServers( * Lists the database nodes of a VM Cluster. * */ - public com.google.cloud.oracledatabase.v1.ListDbNodesResponse listDbNodes( - com.google.cloud.oracledatabase.v1.ListDbNodesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDbNodesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListDbNodesResponse> + listDbNodes(com.google.cloud.oracledatabase.v1.ListDbNodesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDbNodesMethod(), getCallOptions()), request); } /** @@ -2718,23 +6674,40 @@ public com.google.cloud.oracledatabase.v1.ListDbNodesResponse listDbNodes( * project and location. * */ - public com.google.cloud.oracledatabase.v1.ListGiVersionsResponse listGiVersions( - com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGiVersionsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListGiVersionsResponse> + listGiVersions(com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGiVersionsMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists the database system shapes available for the project and location.
                                              +     * Lists all the valid minor versions for the given
                                              +     * project, location, gi version and shape family.
                                                    * 
                                              */ - public com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse listDbSystemShapes( - com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDbSystemShapesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse> + listMinorVersions(com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMinorVersionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Lists the database system shapes available for the project and location.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse> + listDbSystemShapes(com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDbSystemShapesMethod(), getCallOptions()), request); } /** @@ -2744,11 +6717,12 @@ public com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse listDbSyste * Lists the Autonomous Databases in a given project and location. * */ - public com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse> listAutonomousDatabases( com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutonomousDatabasesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutonomousDatabasesMethod(), getCallOptions()), request); } /** @@ -2758,10 +6732,12 @@ public com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse listDbSyste * Gets the details of a single Autonomous Database. * */ - public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase( - com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAutonomousDatabaseMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.AutonomousDatabase> + getAutonomousDatabase( + com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAutonomousDatabaseMethod(), getCallOptions()), request); } /** @@ -2771,10 +6747,25 @@ public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDataba * Creates a new Autonomous Database in a given project and location. * */ - public com.google.longrunning.Operation createAutonomousDatabase( - com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAutonomousDatabaseMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createAutonomousDatabase( + com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAutonomousDatabaseMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Updates the parameters of a single Autonomous Database.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateAutonomousDatabase( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAutonomousDatabaseMethod(), getCallOptions()), request); } /** @@ -2784,10 +6775,11 @@ public com.google.longrunning.Operation createAutonomousDatabase( * Deletes a single Autonomous Database. * */ - public com.google.longrunning.Operation deleteAutonomousDatabase( - com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAutonomousDatabaseMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteAutonomousDatabase( + com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAutonomousDatabaseMethod(), getCallOptions()), request); } /** @@ -2797,10 +6789,11 @@ public com.google.longrunning.Operation deleteAutonomousDatabase( * Restores a single Autonomous Database. * */ - public com.google.longrunning.Operation restoreAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreAutonomousDatabaseMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + restoreAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreAutonomousDatabaseMethod(), getCallOptions()), request); } /** @@ -2810,11 +6803,13 @@ public com.google.longrunning.Operation restoreAutonomousDatabase( * Generates a wallet for an Autonomous Database. * */ - public com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse> generateAutonomousDatabaseWallet( com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateAutonomousDatabaseWalletMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAutonomousDatabaseWalletMethod(), getCallOptions()), + request); } /** @@ -2825,11 +6820,12 @@ public com.google.longrunning.Operation restoreAutonomousDatabase( * location. * */ - public com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse> listAutonomousDbVersions( com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutonomousDbVersionsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutonomousDbVersionsMethod(), getCallOptions()), request); } /** @@ -2839,11 +6835,13 @@ public com.google.longrunning.Operation restoreAutonomousDatabase( * Lists Autonomous Database Character Sets in a given project and location. * */ - public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse> listAutonomousDatabaseCharacterSets( com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutonomousDatabaseCharacterSetsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutonomousDatabaseCharacterSetsMethod(), getCallOptions()), + request); } /** @@ -2853,11 +6851,13 @@ public com.google.longrunning.Operation restoreAutonomousDatabase( * Lists the long-term and automatic backups of an Autonomous Database. * */ - public com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse> listAutonomousDatabaseBackups( com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutonomousDatabaseBackupsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutonomousDatabaseBackupsMethod(), getCallOptions()), + request); } /** @@ -2867,10 +6867,11 @@ public com.google.longrunning.Operation restoreAutonomousDatabase( * Stops an Autonomous Database. * */ - public com.google.longrunning.Operation stopAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopAutonomousDatabaseMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + stopAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopAutonomousDatabaseMethod(), getCallOptions()), request); } /** @@ -2880,10 +6881,11 @@ public com.google.longrunning.Operation stopAutonomousDatabase( * Starts an Autonomous Database. * */ - public com.google.longrunning.Operation startAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartAutonomousDatabaseMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + startAutonomousDatabase( + com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartAutonomousDatabaseMethod(), getCallOptions()), request); } /** @@ -2893,397 +6895,454 @@ public com.google.longrunning.Operation startAutonomousDatabase( * Restarts an Autonomous Database. * */ - public com.google.longrunning.Operation restartAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestartAutonomousDatabaseMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + restartAutonomousDatabase( + com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestartAutonomousDatabaseMethod(), getCallOptions()), request); } - } - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service OracleDatabase. - * - *
                                              -   * Service describing handlers for resources
                                              -   * 
                                              - */ - public static final class OracleDatabaseFutureStub - extends io.grpc.stub.AbstractFutureStub { - private OracleDatabaseFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + /** + * + * + *
                                              +     * Initiates a switchover of specified autonomous database to the associated
                                              +     * peer database.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + switchoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSwitchoverAutonomousDatabaseMethod(), getCallOptions()), request); } - @java.lang.Override - protected OracleDatabaseFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new OracleDatabaseFutureStub(channel, callOptions); + /** + * + * + *
                                              +     * Initiates a failover to target autonomous database from the associated
                                              +     * primary database.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + failoverAutonomousDatabase( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFailoverAutonomousDatabaseMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists Exadata Infrastructures in a given project and location.
                                              +     * Lists the ODB Networks in a given project and location.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse> - listCloudExadataInfrastructures( - com.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest request) { + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse> + listOdbNetworks(com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCloudExadataInfrastructuresMethod(), getCallOptions()), - request); + getChannel().newCall(getListOdbNetworksMethod(), getCallOptions()), request); } /** * * *
                                              -     * Gets details of a single Exadata Infrastructure.
                                              +     * Gets details of a single ODB Network.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure> - getCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest request) { + com.google.cloud.oracledatabase.v1.OdbNetwork> + getOdbNetwork(com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCloudExadataInfrastructureMethod(), getCallOptions()), - request); + getChannel().newCall(getGetOdbNetworkMethod(), getCallOptions()), request); } /** * * *
                                              -     * Creates a new Exadata Infrastructure in a given project and location.
                                              +     * Creates a new ODB Network in a given project and location.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture - createCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest request) { + createOdbNetwork(com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCloudExadataInfrastructureMethod(), getCallOptions()), - request); + getChannel().newCall(getCreateOdbNetworkMethod(), getCallOptions()), request); } /** * * *
                                              -     * Deletes a single Exadata Infrastructure.
                                              +     * Deletes a single ODB Network.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture - deleteCloudExadataInfrastructure( - com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest request) { + deleteOdbNetwork(com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCloudExadataInfrastructureMethod(), getCallOptions()), - request); + getChannel().newCall(getDeleteOdbNetworkMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists the VM Clusters in a given project and location.
                                              +     * Lists all the ODB Subnets in a given ODB Network.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse> - listCloudVmClusters(com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest request) { + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse> + listOdbSubnets(com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCloudVmClustersMethod(), getCallOptions()), request); + getChannel().newCall(getListOdbSubnetsMethod(), getCallOptions()), request); } /** * * *
                                              -     * Gets details of a single VM Cluster.
                                              +     * Gets details of a single ODB Subnet.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.CloudVmCluster> - getCloudVmCluster(com.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest request) { + com.google.cloud.oracledatabase.v1.OdbSubnet> + getOdbSubnet(com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCloudVmClusterMethod(), getCallOptions()), request); + getChannel().newCall(getGetOdbSubnetMethod(), getCallOptions()), request); } /** * * *
                                              -     * Creates a new VM Cluster in a given project and location.
                                              +     * Creates a new ODB Subnet in a given ODB Network.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture - createCloudVmCluster( - com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest request) { + createOdbSubnet(com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCloudVmClusterMethod(), getCallOptions()), request); + getChannel().newCall(getCreateOdbSubnetMethod(), getCallOptions()), request); } /** * * *
                                              -     * Deletes a single VM Cluster.
                                              +     * Deletes a single ODB Subnet.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture - deleteCloudVmCluster( - com.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest request) { + deleteOdbSubnet(com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCloudVmClusterMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteOdbSubnetMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists the entitlements in a given project.
                                              +     * Lists all the Exadb (Exascale) VM Clusters for the given project and
                                              +     * location.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListEntitlementsResponse> - listEntitlements(com.google.cloud.oracledatabase.v1.ListEntitlementsRequest request) { + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse> + listExadbVmClusters(com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEntitlementsMethod(), getCallOptions()), request); + getChannel().newCall(getListExadbVmClustersMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists the database servers of an Exadata Infrastructure instance.
                                              +     * Gets details of a single Exadb (Exascale) VM Cluster.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListDbServersResponse> - listDbServers(com.google.cloud.oracledatabase.v1.ListDbServersRequest request) { + com.google.cloud.oracledatabase.v1.ExadbVmCluster> + getExadbVmCluster(com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDbServersMethod(), getCallOptions()), request); + getChannel().newCall(getGetExadbVmClusterMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists the database nodes of a VM Cluster.
                                              +     * Creates a new Exadb (Exascale) VM Cluster resource.
                                                    * 
                                              */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListDbNodesResponse> - listDbNodes(com.google.cloud.oracledatabase.v1.ListDbNodesRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createExadbVmCluster( + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDbNodesMethod(), getCallOptions()), request); + getChannel().newCall(getCreateExadbVmClusterMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
                                              -     * project and location.
                                              +     * Deletes a single Exadb (Exascale) VM Cluster.
                                                    * 
                                              */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListGiVersionsResponse> - listGiVersions(com.google.cloud.oracledatabase.v1.ListGiVersionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteExadbVmCluster( + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGiVersionsMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteExadbVmClusterMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists the database system shapes available for the project and location.
                                              +     * Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to
                                              +     * existing exadb vm cluster, only pass the node count.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateExadbVmCluster( + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExadbVmClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Removes virtual machines from an existing exadb vm cluster.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + removeVirtualMachineExadbVmCluster( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveVirtualMachineExadbVmClusterMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                              +     * Lists all the ExascaleDB Storage Vaults for the given project and
                                              +     * location.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse> - listDbSystemShapes(com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest request) { + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse> + listExascaleDbStorageVaults( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDbSystemShapesMethod(), getCallOptions()), request); + getChannel().newCall(getListExascaleDbStorageVaultsMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists the Autonomous Databases in a given project and location.
                                              +     * Gets details of a single ExascaleDB Storage Vault.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse> - listAutonomousDatabases( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest request) { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault> + getExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExascaleDbStorageVaultMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Creates a new ExascaleDB Storage Vault resource.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExascaleDbStorageVaultMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                              +     * Deletes a single ExascaleDB Storage Vault.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAutonomousDatabasesMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteExascaleDbStorageVaultMethod(), getCallOptions()), request); } /** * * *
                                              -     * Gets the details of a single Autonomous Database.
                                              +     * Lists all the DbSystemInitialStorageSizes for the given project and
                                              +     * location.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.AutonomousDatabase> - getAutonomousDatabase( - com.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest request) { + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse> + listDbSystemInitialStorageSizes( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAutonomousDatabaseMethod(), getCallOptions()), request); + getChannel().newCall(getListDbSystemInitialStorageSizesMethod(), getCallOptions()), + request); } /** * * *
                                              -     * Creates a new Autonomous Database in a given project and location.
                                              +     * Lists all the Databases for the given project, location and DbSystem.
                                                    * 
                                              */ - public com.google.common.util.concurrent.ListenableFuture - createAutonomousDatabase( - com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListDatabasesResponse> + listDatabases(com.google.cloud.oracledatabase.v1.ListDatabasesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAutonomousDatabaseMethod(), getCallOptions()), request); + getChannel().newCall(getListDatabasesMethod(), getCallOptions()), request); } /** * * *
                                              -     * Deletes a single Autonomous Database.
                                              +     * Gets details of a single Database.
                                                    * 
                                              */ - public com.google.common.util.concurrent.ListenableFuture - deleteAutonomousDatabase( - com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.Database> + getDatabase(com.google.cloud.oracledatabase.v1.GetDatabaseRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAutonomousDatabaseMethod(), getCallOptions()), request); + getChannel().newCall(getGetDatabaseMethod(), getCallOptions()), request); } /** * * *
                                              -     * Restores a single Autonomous Database.
                                              +     * Lists all the PluggableDatabases for the given project, location and
                                              +     * Container Database.
                                                    * 
                                              */ - public com.google.common.util.concurrent.ListenableFuture - restoreAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse> + listPluggableDatabases( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestoreAutonomousDatabaseMethod(), getCallOptions()), request); + getChannel().newCall(getListPluggableDatabasesMethod(), getCallOptions()), request); } /** * * *
                                              -     * Generates a wallet for an Autonomous Database.
                                              +     * Gets details of a single PluggableDatabase.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse> - generateAutonomousDatabaseWallet( - com.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest request) { + com.google.cloud.oracledatabase.v1.PluggableDatabase> + getPluggableDatabase( + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateAutonomousDatabaseWalletMethod(), getCallOptions()), - request); + getChannel().newCall(getGetPluggableDatabaseMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists all the available Autonomous Database versions for a project and
                                              -     * location.
                                              +     * Lists all the DbSystems for the given project and location.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse> - listAutonomousDbVersions( - com.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest request) { + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse> + listDbSystems(com.google.cloud.oracledatabase.v1.ListDbSystemsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAutonomousDbVersionsMethod(), getCallOptions()), request); + getChannel().newCall(getListDbSystemsMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists Autonomous Database Character Sets in a given project and location.
                                              +     * Gets details of a single DbSystem.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse> - listAutonomousDatabaseCharacterSets( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest request) { + com.google.cloud.oracledatabase.v1.DbSystem> + getDbSystem(com.google.cloud.oracledatabase.v1.GetDbSystemRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAutonomousDatabaseCharacterSetsMethod(), getCallOptions()), - request); + getChannel().newCall(getGetDbSystemMethod(), getCallOptions()), request); } /** * * *
                                              -     * Lists the long-term and automatic backups of an Autonomous Database.
                                              +     * Creates a new DbSystem in a given project and location.
                                                    * 
                                              */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse> - listAutonomousDatabaseBackups( - com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createDbSystem(com.google.cloud.oracledatabase.v1.CreateDbSystemRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAutonomousDatabaseBackupsMethod(), getCallOptions()), - request); + getChannel().newCall(getCreateDbSystemMethod(), getCallOptions()), request); } /** * * *
                                              -     * Stops an Autonomous Database.
                                              +     * Deletes a single DbSystem.
                                                    * 
                                              */ public com.google.common.util.concurrent.ListenableFuture - stopAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest request) { + deleteDbSystem(com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopAutonomousDatabaseMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteDbSystemMethod(), getCallOptions()), request); } /** * * *
                                              -     * Starts an Autonomous Database.
                                              +     * List DbVersions for the given project and location.
                                                    * 
                                              */ - public com.google.common.util.concurrent.ListenableFuture - startAutonomousDatabase( - com.google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse> + listDbVersions(com.google.cloud.oracledatabase.v1.ListDbVersionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartAutonomousDatabaseMethod(), getCallOptions()), request); + getChannel().newCall(getListDbVersionsMethod(), getCallOptions()), request); } /** * * *
                                              -     * Restarts an Autonomous Database.
                                              +     * List DatabaseCharacterSets for the given project and location.
                                                    * 
                                              */ - public com.google.common.util.concurrent.ListenableFuture - restartAutonomousDatabase( - com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse> + listDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestartAutonomousDatabaseMethod(), getCallOptions()), request); + getChannel().newCall(getListDatabaseCharacterSetsMethod(), getCallOptions()), request); } } @@ -3299,19 +7358,52 @@ protected OracleDatabaseFutureStub build( private static final int METHODID_LIST_DB_SERVERS = 9; private static final int METHODID_LIST_DB_NODES = 10; private static final int METHODID_LIST_GI_VERSIONS = 11; - private static final int METHODID_LIST_DB_SYSTEM_SHAPES = 12; - private static final int METHODID_LIST_AUTONOMOUS_DATABASES = 13; - private static final int METHODID_GET_AUTONOMOUS_DATABASE = 14; - private static final int METHODID_CREATE_AUTONOMOUS_DATABASE = 15; - private static final int METHODID_DELETE_AUTONOMOUS_DATABASE = 16; - private static final int METHODID_RESTORE_AUTONOMOUS_DATABASE = 17; - private static final int METHODID_GENERATE_AUTONOMOUS_DATABASE_WALLET = 18; - private static final int METHODID_LIST_AUTONOMOUS_DB_VERSIONS = 19; - private static final int METHODID_LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS = 20; - private static final int METHODID_LIST_AUTONOMOUS_DATABASE_BACKUPS = 21; - private static final int METHODID_STOP_AUTONOMOUS_DATABASE = 22; - private static final int METHODID_START_AUTONOMOUS_DATABASE = 23; - private static final int METHODID_RESTART_AUTONOMOUS_DATABASE = 24; + private static final int METHODID_LIST_MINOR_VERSIONS = 12; + private static final int METHODID_LIST_DB_SYSTEM_SHAPES = 13; + private static final int METHODID_LIST_AUTONOMOUS_DATABASES = 14; + private static final int METHODID_GET_AUTONOMOUS_DATABASE = 15; + private static final int METHODID_CREATE_AUTONOMOUS_DATABASE = 16; + private static final int METHODID_UPDATE_AUTONOMOUS_DATABASE = 17; + private static final int METHODID_DELETE_AUTONOMOUS_DATABASE = 18; + private static final int METHODID_RESTORE_AUTONOMOUS_DATABASE = 19; + private static final int METHODID_GENERATE_AUTONOMOUS_DATABASE_WALLET = 20; + private static final int METHODID_LIST_AUTONOMOUS_DB_VERSIONS = 21; + private static final int METHODID_LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS = 22; + private static final int METHODID_LIST_AUTONOMOUS_DATABASE_BACKUPS = 23; + private static final int METHODID_STOP_AUTONOMOUS_DATABASE = 24; + private static final int METHODID_START_AUTONOMOUS_DATABASE = 25; + private static final int METHODID_RESTART_AUTONOMOUS_DATABASE = 26; + private static final int METHODID_SWITCHOVER_AUTONOMOUS_DATABASE = 27; + private static final int METHODID_FAILOVER_AUTONOMOUS_DATABASE = 28; + private static final int METHODID_LIST_ODB_NETWORKS = 29; + private static final int METHODID_GET_ODB_NETWORK = 30; + private static final int METHODID_CREATE_ODB_NETWORK = 31; + private static final int METHODID_DELETE_ODB_NETWORK = 32; + private static final int METHODID_LIST_ODB_SUBNETS = 33; + private static final int METHODID_GET_ODB_SUBNET = 34; + private static final int METHODID_CREATE_ODB_SUBNET = 35; + private static final int METHODID_DELETE_ODB_SUBNET = 36; + private static final int METHODID_LIST_EXADB_VM_CLUSTERS = 37; + private static final int METHODID_GET_EXADB_VM_CLUSTER = 38; + private static final int METHODID_CREATE_EXADB_VM_CLUSTER = 39; + private static final int METHODID_DELETE_EXADB_VM_CLUSTER = 40; + private static final int METHODID_UPDATE_EXADB_VM_CLUSTER = 41; + private static final int METHODID_REMOVE_VIRTUAL_MACHINE_EXADB_VM_CLUSTER = 42; + private static final int METHODID_LIST_EXASCALE_DB_STORAGE_VAULTS = 43; + private static final int METHODID_GET_EXASCALE_DB_STORAGE_VAULT = 44; + private static final int METHODID_CREATE_EXASCALE_DB_STORAGE_VAULT = 45; + private static final int METHODID_DELETE_EXASCALE_DB_STORAGE_VAULT = 46; + private static final int METHODID_LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES = 47; + private static final int METHODID_LIST_DATABASES = 48; + private static final int METHODID_GET_DATABASE = 49; + private static final int METHODID_LIST_PLUGGABLE_DATABASES = 50; + private static final int METHODID_GET_PLUGGABLE_DATABASE = 51; + private static final int METHODID_LIST_DB_SYSTEMS = 52; + private static final int METHODID_GET_DB_SYSTEM = 53; + private static final int METHODID_CREATE_DB_SYSTEM = 54; + private static final int METHODID_DELETE_DB_SYSTEM = 55; + private static final int METHODID_LIST_DB_VERSIONS = 56; + private static final int METHODID_LIST_DATABASE_CHARACTER_SETS = 57; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3404,6 +7496,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.oracledatabase.v1.ListGiVersionsResponse>) responseObserver); break; + case METHODID_LIST_MINOR_VERSIONS: + serviceImpl.listMinorVersions( + (com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse>) + responseObserver); + break; case METHODID_LIST_DB_SYSTEM_SHAPES: serviceImpl.listDbSystemShapes( (com.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest) request, @@ -3429,6 +7528,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_AUTONOMOUS_DATABASE: + serviceImpl.updateAutonomousDatabase( + (com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_AUTONOMOUS_DATABASE: serviceImpl.deleteAutonomousDatabase( (com.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest) request, @@ -3484,6 +7588,190 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_SWITCHOVER_AUTONOMOUS_DATABASE: + serviceImpl.switchoverAutonomousDatabase( + (com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FAILOVER_AUTONOMOUS_DATABASE: + serviceImpl.failoverAutonomousDatabase( + (com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ODB_NETWORKS: + serviceImpl.listOdbNetworks( + (com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse>) + responseObserver); + break; + case METHODID_GET_ODB_NETWORK: + serviceImpl.getOdbNetwork( + (com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ODB_NETWORK: + serviceImpl.createOdbNetwork( + (com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ODB_NETWORK: + serviceImpl.deleteOdbNetwork( + (com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ODB_SUBNETS: + serviceImpl.listOdbSubnets( + (com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse>) + responseObserver); + break; + case METHODID_GET_ODB_SUBNET: + serviceImpl.getOdbSubnet( + (com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ODB_SUBNET: + serviceImpl.createOdbSubnet( + (com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ODB_SUBNET: + serviceImpl.deleteOdbSubnet( + (com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXADB_VM_CLUSTERS: + serviceImpl.listExadbVmClusters( + (com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse>) + responseObserver); + break; + case METHODID_GET_EXADB_VM_CLUSTER: + serviceImpl.getExadbVmCluster( + (com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_EXADB_VM_CLUSTER: + serviceImpl.createExadbVmCluster( + (com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EXADB_VM_CLUSTER: + serviceImpl.deleteExadbVmCluster( + (com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_EXADB_VM_CLUSTER: + serviceImpl.updateExadbVmCluster( + (com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REMOVE_VIRTUAL_MACHINE_EXADB_VM_CLUSTER: + serviceImpl.removeVirtualMachineExadbVmCluster( + (com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXASCALE_DB_STORAGE_VAULTS: + serviceImpl.listExascaleDbStorageVaults( + (com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse>) + responseObserver); + break; + case METHODID_GET_EXASCALE_DB_STORAGE_VAULT: + serviceImpl.getExascaleDbStorageVault( + (com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault>) + responseObserver); + break; + case METHODID_CREATE_EXASCALE_DB_STORAGE_VAULT: + serviceImpl.createExascaleDbStorageVault( + (com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EXASCALE_DB_STORAGE_VAULT: + serviceImpl.deleteExascaleDbStorageVault( + (com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES: + serviceImpl.listDbSystemInitialStorageSizes( + (com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse>) + responseObserver); + break; + case METHODID_LIST_DATABASES: + serviceImpl.listDatabases( + (com.google.cloud.oracledatabase.v1.ListDatabasesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListDatabasesResponse>) + responseObserver); + break; + case METHODID_GET_DATABASE: + serviceImpl.getDatabase( + (com.google.cloud.oracledatabase.v1.GetDatabaseRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PLUGGABLE_DATABASES: + serviceImpl.listPluggableDatabases( + (com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse>) + responseObserver); + break; + case METHODID_GET_PLUGGABLE_DATABASE: + serviceImpl.getPluggableDatabase( + (com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DB_SYSTEMS: + serviceImpl.listDbSystems( + (com.google.cloud.oracledatabase.v1.ListDbSystemsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse>) + responseObserver); + break; + case METHODID_GET_DB_SYSTEM: + serviceImpl.getDbSystem( + (com.google.cloud.oracledatabase.v1.GetDbSystemRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_DB_SYSTEM: + serviceImpl.createDbSystem( + (com.google.cloud.oracledatabase.v1.CreateDbSystemRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DB_SYSTEM: + serviceImpl.deleteDbSystem( + (com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DB_VERSIONS: + serviceImpl.listDbVersions( + (com.google.cloud.oracledatabase.v1.ListDbVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse>) + responseObserver); + break; + case METHODID_LIST_DATABASE_CHARACTER_SETS: + serviceImpl.listDatabaseCharacterSets( + (com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -3584,6 +7872,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.oracledatabase.v1.ListGiVersionsRequest, com.google.cloud.oracledatabase.v1.ListGiVersionsResponse>( service, METHODID_LIST_GI_VERSIONS))) + .addMethod( + getListMinorVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest, + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse>( + service, METHODID_LIST_MINOR_VERSIONS))) .addMethod( getListDbSystemShapesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3612,6 +7907,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest, com.google.longrunning.Operation>( service, METHODID_CREATE_AUTONOMOUS_DATABASE))) + .addMethod( + getUpdateAutonomousDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_AUTONOMOUS_DATABASE))) .addMethod( getDeleteAutonomousDatabaseMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3673,6 +7975,212 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest, com.google.longrunning.Operation>( service, METHODID_RESTART_AUTONOMOUS_DATABASE))) + .addMethod( + getSwitchoverAutonomousDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest, + com.google.longrunning.Operation>( + service, METHODID_SWITCHOVER_AUTONOMOUS_DATABASE))) + .addMethod( + getFailoverAutonomousDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest, + com.google.longrunning.Operation>( + service, METHODID_FAILOVER_AUTONOMOUS_DATABASE))) + .addMethod( + getListOdbNetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest, + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse>( + service, METHODID_LIST_ODB_NETWORKS))) + .addMethod( + getGetOdbNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest, + com.google.cloud.oracledatabase.v1.OdbNetwork>( + service, METHODID_GET_ODB_NETWORK))) + .addMethod( + getCreateOdbNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ODB_NETWORK))) + .addMethod( + getDeleteOdbNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ODB_NETWORK))) + .addMethod( + getListOdbSubnetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest, + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse>( + service, METHODID_LIST_ODB_SUBNETS))) + .addMethod( + getGetOdbSubnetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest, + com.google.cloud.oracledatabase.v1.OdbSubnet>( + service, METHODID_GET_ODB_SUBNET))) + .addMethod( + getCreateOdbSubnetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ODB_SUBNET))) + .addMethod( + getDeleteOdbSubnetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ODB_SUBNET))) + .addMethod( + getListExadbVmClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest, + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse>( + service, METHODID_LIST_EXADB_VM_CLUSTERS))) + .addMethod( + getGetExadbVmClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest, + com.google.cloud.oracledatabase.v1.ExadbVmCluster>( + service, METHODID_GET_EXADB_VM_CLUSTER))) + .addMethod( + getCreateExadbVmClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_EXADB_VM_CLUSTER))) + .addMethod( + getDeleteExadbVmClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_EXADB_VM_CLUSTER))) + .addMethod( + getUpdateExadbVmClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_EXADB_VM_CLUSTER))) + .addMethod( + getRemoveVirtualMachineExadbVmClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_REMOVE_VIRTUAL_MACHINE_EXADB_VM_CLUSTER))) + .addMethod( + getListExascaleDbStorageVaultsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest, + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse>( + service, METHODID_LIST_EXASCALE_DB_STORAGE_VAULTS))) + .addMethod( + getGetExascaleDbStorageVaultMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault>( + service, METHODID_GET_EXASCALE_DB_STORAGE_VAULT))) + .addMethod( + getCreateExascaleDbStorageVaultMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_EXASCALE_DB_STORAGE_VAULT))) + .addMethod( + getDeleteExascaleDbStorageVaultMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_EXASCALE_DB_STORAGE_VAULT))) + .addMethod( + getListDbSystemInitialStorageSizesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest, + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse>( + service, METHODID_LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES))) + .addMethod( + getListDatabasesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListDatabasesRequest, + com.google.cloud.oracledatabase.v1.ListDatabasesResponse>( + service, METHODID_LIST_DATABASES))) + .addMethod( + getGetDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.GetDatabaseRequest, + com.google.cloud.oracledatabase.v1.Database>(service, METHODID_GET_DATABASE))) + .addMethod( + getListPluggableDatabasesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest, + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse>( + service, METHODID_LIST_PLUGGABLE_DATABASES))) + .addMethod( + getGetPluggableDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest, + com.google.cloud.oracledatabase.v1.PluggableDatabase>( + service, METHODID_GET_PLUGGABLE_DATABASE))) + .addMethod( + getListDbSystemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest, + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse>( + service, METHODID_LIST_DB_SYSTEMS))) + .addMethod( + getGetDbSystemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.GetDbSystemRequest, + com.google.cloud.oracledatabase.v1.DbSystem>(service, METHODID_GET_DB_SYSTEM))) + .addMethod( + getCreateDbSystemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_DB_SYSTEM))) + .addMethod( + getDeleteDbSystemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_DB_SYSTEM))) + .addMethod( + getListDbVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest, + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse>( + service, METHODID_LIST_DB_VERSIONS))) + .addMethod( + getListDatabaseCharacterSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest, + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse>( + service, METHODID_LIST_DATABASE_CHARACTER_SETS))) .build(); } @@ -3736,10 +8244,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListDbServersMethod()) .addMethod(getListDbNodesMethod()) .addMethod(getListGiVersionsMethod()) + .addMethod(getListMinorVersionsMethod()) .addMethod(getListDbSystemShapesMethod()) .addMethod(getListAutonomousDatabasesMethod()) .addMethod(getGetAutonomousDatabaseMethod()) .addMethod(getCreateAutonomousDatabaseMethod()) + .addMethod(getUpdateAutonomousDatabaseMethod()) .addMethod(getDeleteAutonomousDatabaseMethod()) .addMethod(getRestoreAutonomousDatabaseMethod()) .addMethod(getGenerateAutonomousDatabaseWalletMethod()) @@ -3749,6 +8259,37 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getStopAutonomousDatabaseMethod()) .addMethod(getStartAutonomousDatabaseMethod()) .addMethod(getRestartAutonomousDatabaseMethod()) + .addMethod(getSwitchoverAutonomousDatabaseMethod()) + .addMethod(getFailoverAutonomousDatabaseMethod()) + .addMethod(getListOdbNetworksMethod()) + .addMethod(getGetOdbNetworkMethod()) + .addMethod(getCreateOdbNetworkMethod()) + .addMethod(getDeleteOdbNetworkMethod()) + .addMethod(getListOdbSubnetsMethod()) + .addMethod(getGetOdbSubnetMethod()) + .addMethod(getCreateOdbSubnetMethod()) + .addMethod(getDeleteOdbSubnetMethod()) + .addMethod(getListExadbVmClustersMethod()) + .addMethod(getGetExadbVmClusterMethod()) + .addMethod(getCreateExadbVmClusterMethod()) + .addMethod(getDeleteExadbVmClusterMethod()) + .addMethod(getUpdateExadbVmClusterMethod()) + .addMethod(getRemoveVirtualMachineExadbVmClusterMethod()) + .addMethod(getListExascaleDbStorageVaultsMethod()) + .addMethod(getGetExascaleDbStorageVaultMethod()) + .addMethod(getCreateExascaleDbStorageVaultMethod()) + .addMethod(getDeleteExascaleDbStorageVaultMethod()) + .addMethod(getListDbSystemInitialStorageSizesMethod()) + .addMethod(getListDatabasesMethod()) + .addMethod(getGetDatabaseMethod()) + .addMethod(getListPluggableDatabasesMethod()) + .addMethod(getGetPluggableDatabaseMethod()) + .addMethod(getListDbSystemsMethod()) + .addMethod(getGetDbSystemMethod()) + .addMethod(getCreateDbSystemMethod()) + .addMethod(getDeleteDbSystemMethod()) + .addMethod(getListDbVersionsMethod()) + .addMethod(getListDatabaseCharacterSetsMethod()) .build(); } } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabase.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabase.java index 9dae9c7402bb..5c69c17a8ee3 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabase.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabase.java @@ -48,6 +48,10 @@ private AutonomousDatabase() { adminPassword_ = ""; network_ = ""; cidr_ = ""; + odbNetwork_ = ""; + odbSubnet_ = ""; + peerAutonomousDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + disasterRecoverySupportedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -596,7 +600,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
                                              -   * Optional. The subnet CIDR range for the Autonmous Database.
                                              +   * Optional. The subnet CIDR range for the Autonomous Database.
                                                  * 
                                              * * string cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -620,7 +624,7 @@ public java.lang.String getCidr() { * * *
                                              -   * Optional. The subnet CIDR range for the Autonmous Database.
                                              +   * Optional. The subnet CIDR range for the Autonomous Database.
                                                  * 
                                              * * string cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -640,6 +644,277 @@ public com.google.protobuf.ByteString getCidrBytes() { } } + public static final int ODB_NETWORK_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbNetwork_ = ""; + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the Autonomous
                                              +   * Database. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +   * optional but if specified, this should match the parent ODBNetwork of the
                                              +   * OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ + @java.lang.Override + public java.lang.String getOdbNetwork() { + java.lang.Object ref = odbNetwork_; + 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(); + odbNetwork_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the Autonomous
                                              +   * Database. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +   * optional but if specified, this should match the parent ODBNetwork of the
                                              +   * OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbNetworkBytes() { + java.lang.Object ref = odbNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ODB_SUBNET_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbSubnet_ = ""; + + /** + * + * + *
                                              +   * Optional. The name of the OdbSubnet associated with the Autonomous
                                              +   * Database. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ + @java.lang.Override + public java.lang.String getOdbSubnet() { + java.lang.Object ref = odbSubnet_; + 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(); + odbSubnet_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The name of the OdbSubnet associated with the Autonomous
                                              +   * Database. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbSubnetBytes() { + java.lang.Object ref = odbSubnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_CONFIG_FIELD_NUMBER = 11; + private com.google.cloud.oracledatabase.v1.SourceConfig sourceConfig_; + + /** + * + * + *
                                              +   * Optional. The source Autonomous Database configuration for the standby
                                              +   * Autonomous Database. The source Autonomous Database is configured while
                                              +   * creating the Peer Autonomous Database and can't be updated after creation.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceConfig field is set. + */ + @java.lang.Override + public boolean hasSourceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Optional. The source Autonomous Database configuration for the standby
                                              +   * Autonomous Database. The source Autonomous Database is configured while
                                              +   * creating the Peer Autonomous Database and can't be updated after creation.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceConfig. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.SourceConfig getSourceConfig() { + return sourceConfig_ == null + ? com.google.cloud.oracledatabase.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; + } + + /** + * + * + *
                                              +   * Optional. The source Autonomous Database configuration for the standby
                                              +   * Autonomous Database. The source Autonomous Database is configured while
                                              +   * creating the Peer Autonomous Database and can't be updated after creation.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { + return sourceConfig_ == null + ? com.google.cloud.oracledatabase.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; + } + + public static final int PEER_AUTONOMOUS_DATABASES_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList peerAutonomousDatabases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Output only. The peer Autonomous Database names of the given Autonomous
                                              +   * Database.
                                              +   * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the peerAutonomousDatabases. + */ + public com.google.protobuf.ProtocolStringList getPeerAutonomousDatabasesList() { + return peerAutonomousDatabases_; + } + + /** + * + * + *
                                              +   * Output only. The peer Autonomous Database names of the given Autonomous
                                              +   * Database.
                                              +   * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of peerAutonomousDatabases. + */ + public int getPeerAutonomousDatabasesCount() { + return peerAutonomousDatabases_.size(); + } + + /** + * + * + *
                                              +   * Output only. The peer Autonomous Database names of the given Autonomous
                                              +   * Database.
                                              +   * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The peerAutonomousDatabases at the given index. + */ + public java.lang.String getPeerAutonomousDatabases(int index) { + return peerAutonomousDatabases_.get(index); + } + + /** + * + * + *
                                              +   * Output only. The peer Autonomous Database names of the given Autonomous
                                              +   * Database.
                                              +   * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the peerAutonomousDatabases at the given index. + */ + public com.google.protobuf.ByteString getPeerAutonomousDatabasesBytes(int index) { + return peerAutonomousDatabases_.getByteString(index); + } + public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; @@ -657,7 +932,7 @@ public com.google.protobuf.ByteString getCidrBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -692,6 +967,86 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } + public static final int DISASTER_RECOVERY_SUPPORTED_LOCATIONS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList disasterRecoverySupportedLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Output only. List of supported GCP region to clone the Autonomous Database
                                              +   * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the disasterRecoverySupportedLocations. + */ + public com.google.protobuf.ProtocolStringList getDisasterRecoverySupportedLocationsList() { + return disasterRecoverySupportedLocations_; + } + + /** + * + * + *
                                              +   * Output only. List of supported GCP region to clone the Autonomous Database
                                              +   * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of disasterRecoverySupportedLocations. + */ + public int getDisasterRecoverySupportedLocationsCount() { + return disasterRecoverySupportedLocations_.size(); + } + + /** + * + * + *
                                              +   * Output only. List of supported GCP region to clone the Autonomous Database
                                              +   * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The disasterRecoverySupportedLocations at the given index. + */ + public java.lang.String getDisasterRecoverySupportedLocations(int index) { + return disasterRecoverySupportedLocations_.get(index); + } + + /** + * + * + *
                                              +   * Output only. List of supported GCP region to clone the Autonomous Database
                                              +   * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the disasterRecoverySupportedLocations at the given index. + */ + public com.google.protobuf.ByteString getDisasterRecoverySupportedLocationsBytes(int index) { + return disasterRecoverySupportedLocations_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -733,8 +1088,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 10, cidr_); } if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(11, getSourceConfig()); + } + for (int i = 0; i < peerAutonomousDatabases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 12, peerAutonomousDatabases_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(13, getCreateTime()); } + for (int i = 0; i < disasterRecoverySupportedLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 15, disasterRecoverySupportedLocations_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, odbNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, odbSubnet_); + } getUnknownFields().writeTo(output); } @@ -779,8 +1151,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, cidr_); } if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getSourceConfig()); + } + { + int dataSize = 0; + for (int i = 0; i < peerAutonomousDatabases_.size(); i++) { + dataSize += computeStringSizeNoTag(peerAutonomousDatabases_.getRaw(i)); + } + size += dataSize; + size += 1 * getPeerAutonomousDatabasesList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } + { + int dataSize = 0; + for (int i = 0; i < disasterRecoverySupportedLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(disasterRecoverySupportedLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getDisasterRecoverySupportedLocationsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, odbNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, odbSubnet_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -809,10 +1206,20 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getNetwork().equals(other.getNetwork())) return false; if (!getCidr().equals(other.getCidr())) return false; + if (!getOdbNetwork().equals(other.getOdbNetwork())) return false; + if (!getOdbSubnet().equals(other.getOdbSubnet())) return false; + if (hasSourceConfig() != other.hasSourceConfig()) return false; + if (hasSourceConfig()) { + if (!getSourceConfig().equals(other.getSourceConfig())) return false; + } + if (!getPeerAutonomousDatabasesList().equals(other.getPeerAutonomousDatabasesList())) + return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (!getDisasterRecoverySupportedLocationsList() + .equals(other.getDisasterRecoverySupportedLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -846,10 +1253,26 @@ public int hashCode() { hash = (53 * hash) + getNetwork().hashCode(); hash = (37 * hash) + CIDR_FIELD_NUMBER; hash = (53 * hash) + getCidr().hashCode(); + hash = (37 * hash) + ODB_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getOdbNetwork().hashCode(); + hash = (37 * hash) + ODB_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getOdbSubnet().hashCode(); + if (hasSourceConfig()) { + hash = (37 * hash) + SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSourceConfig().hashCode(); + } + if (getPeerAutonomousDatabasesCount() > 0) { + hash = (37 * hash) + PEER_AUTONOMOUS_DATABASES_FIELD_NUMBER; + hash = (53 * hash) + getPeerAutonomousDatabasesList().hashCode(); + } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (getDisasterRecoverySupportedLocationsCount() > 0) { + hash = (37 * hash) + DISASTER_RECOVERY_SUPPORTED_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDisasterRecoverySupportedLocationsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1016,6 +1439,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); + getSourceConfigFieldBuilder(); getCreateTimeFieldBuilder(); } } @@ -1037,11 +1461,20 @@ public Builder clear() { internalGetMutableLabels().clear(); network_ = ""; cidr_ = ""; + odbNetwork_ = ""; + odbSubnet_ = ""; + sourceConfig_ = null; + if (sourceConfigBuilder_ != null) { + sourceConfigBuilder_.dispose(); + sourceConfigBuilder_ = null; + } + peerAutonomousDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } + disasterRecoverySupportedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -1109,9 +1542,28 @@ private void buildPartial0(com.google.cloud.oracledatabase.v1.AutonomousDatabase result.cidr_ = cidr_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.odbNetwork_ = odbNetwork_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.odbSubnet_ = odbSubnet_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sourceConfig_ = + sourceConfigBuilder_ == null ? sourceConfig_ : sourceConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00001000) != 0)) { + peerAutonomousDatabases_.makeImmutable(); + result.peerAutonomousDatabases_ = peerAutonomousDatabases_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + disasterRecoverySupportedLocations_.makeImmutable(); + result.disasterRecoverySupportedLocations_ = disasterRecoverySupportedLocations_; + } result.bitField0_ |= to_bitField0_; } @@ -1201,10 +1653,43 @@ public Builder mergeFrom(com.google.cloud.oracledatabase.v1.AutonomousDatabase o bitField0_ |= 0x00000100; onChanged(); } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); + if (!other.getOdbNetwork().isEmpty()) { + odbNetwork_ = other.odbNetwork_; + bitField0_ |= 0x00000200; + onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + if (!other.getOdbSubnet().isEmpty()) { + odbSubnet_ = other.odbSubnet_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasSourceConfig()) { + mergeSourceConfig(other.getSourceConfig()); + } + if (!other.peerAutonomousDatabases_.isEmpty()) { + if (peerAutonomousDatabases_.isEmpty()) { + peerAutonomousDatabases_ = other.peerAutonomousDatabases_; + bitField0_ |= 0x00001000; + } else { + ensurePeerAutonomousDatabasesIsMutable(); + peerAutonomousDatabases_.addAll(other.peerAutonomousDatabases_); + } + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.disasterRecoverySupportedLocations_.isEmpty()) { + if (disasterRecoverySupportedLocations_.isEmpty()) { + disasterRecoverySupportedLocations_ = other.disasterRecoverySupportedLocations_; + bitField0_ |= 0x00004000; + } else { + ensureDisasterRecoverySupportedLocationsIsMutable(); + disasterRecoverySupportedLocations_.addAll(other.disasterRecoverySupportedLocations_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1290,12 +1775,44 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 82 + case 90: + { + input.readMessage(getSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePeerAutonomousDatabasesIsMutable(); + peerAutonomousDatabases_.add(s); + break; + } // case 98 case 106: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00002000; break; } // case 106 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDisasterRecoverySupportedLocationsIsMutable(); + disasterRecoverySupportedLocations_.add(s); + break; + } // case 122 + case 130: + { + odbNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 130 + case 138: + { + odbSubnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2423,7 +2940,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * *
                                              -     * Optional. The subnet CIDR range for the Autonmous Database.
                                              +     * Optional. The subnet CIDR range for the Autonomous Database.
                                                    * 
                                              * * string cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2446,7 +2963,7 @@ public java.lang.String getCidr() { * * *
                                              -     * Optional. The subnet CIDR range for the Autonmous Database.
                                              +     * Optional. The subnet CIDR range for the Autonomous Database.
                                                    * 
                                              * * string cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2469,7 +2986,7 @@ public com.google.protobuf.ByteString getCidrBytes() { * * *
                                              -     * Optional. The subnet CIDR range for the Autonmous Database.
                                              +     * Optional. The subnet CIDR range for the Autonomous Database.
                                                    * 
                                              * * string cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2491,7 +3008,7 @@ public Builder setCidr(java.lang.String value) { * * *
                                              -     * Optional. The subnet CIDR range for the Autonmous Database.
                                              +     * Optional. The subnet CIDR range for the Autonomous Database.
                                                    * 
                                              * * string cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2509,7 +3026,7 @@ public Builder clearCidr() { * * *
                                              -     * Optional. The subnet CIDR range for the Autonmous Database.
                                              +     * Optional. The subnet CIDR range for the Autonomous Database.
                                                    * 
                                              * * string cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -2528,50 +3045,63 @@ public Builder setCidrBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + private java.lang.Object odbNetwork_ = ""; /** * * *
                                              -     * Output only. The date and time that the Autonomous Database was created.
                                              +     * Optional. The name of the OdbNetwork associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return Whether the createTime field is set. + * @return The odbNetwork. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000200) != 0); + public java.lang.String getOdbNetwork() { + java.lang.Object ref = odbNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + odbNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
                                              -     * Output only. The date and time that the Autonomous Database was created.
                                              +     * Optional. The name of the OdbNetwork associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The createTime. + * @return The bytes for odbNetwork. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public com.google.protobuf.ByteString getOdbNetworkBytes() { + java.lang.Object ref = odbNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetwork_ = b; + return b; } else { - return createTimeBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } @@ -2579,22 +3109,25 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
                                              -     * Output only. The date and time that the Autonomous Database was created.
                                              +     * Optional. The name of the OdbNetwork associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @param value The odbNetwork to set. + * @return This builder for chaining. */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); + public Builder setOdbNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + odbNetwork_ = value; bitField0_ |= 0x00000200; onChanged(); return this; @@ -2604,51 +3137,134 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
                                              -     * Output only. The date and time that the Autonomous Database was created.
                                              +     * Optional. The name of the OdbNetwork associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); + public Builder clearOdbNetwork() { + odbNetwork_ = getDefaultInstance().getOdbNetwork(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the OdbNetwork associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for odbNetwork to set. + * @return This builder for chaining. + */ + public Builder setOdbNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + odbNetwork_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } + private java.lang.Object odbSubnet_ = ""; + /** * * *
                                              -     * Output only. The date and time that the Autonomous Database was created.
                                              +     * Optional. The name of the OdbSubnet associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_subnet = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @return The odbSubnet. */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } + public java.lang.String getOdbSubnet() { + java.lang.Object ref = odbSubnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + odbSubnet_ = s; + return s; } else { - createTimeBuilder_.mergeFrom(value); + return (java.lang.String) ref; } - if (createTime_ != null) { - bitField0_ |= 0x00000200; - onChanged(); + } + + /** + * + * + *
                                              +     * Optional. The name of the OdbSubnet associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + public com.google.protobuf.ByteString getOdbSubnetBytes() { + java.lang.Object ref = odbSubnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The name of the OdbSubnet associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The odbSubnet to set. + * @return This builder for chaining. + */ + public Builder setOdbSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + odbSubnet_ = value; + bitField0_ |= 0x00000400; + onChanged(); return this; } @@ -2656,88 +3272,918 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
                                              -     * Output only. The date and time that the Autonomous Database was created.
                                              +     * Optional. The name of the OdbSubnet associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_subnet = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOdbSubnet() { + odbSubnet_ = getDefaultInstance().getOdbSubnet(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the OdbSubnet associated with the Autonomous
                                              +     * Database. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for odbSubnet to set. + * @return This builder for chaining. */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000200); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder setOdbSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + odbSubnet_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } + private com.google.cloud.oracledatabase.v1.SourceConfig sourceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.SourceConfig, + com.google.cloud.oracledatabase.v1.SourceConfig.Builder, + com.google.cloud.oracledatabase.v1.SourceConfigOrBuilder> + sourceConfigBuilder_; + /** * * *
                                              -     * Output only. The date and time that the Autonomous Database was created.
                                              +     * Optional. The source Autonomous Database configuration for the standby
                                              +     * Autonomous Database. The source Autonomous Database is configured while
                                              +     * creating the Peer Autonomous Database and can't be updated after creation.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the sourceConfig field is set. */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000200; + public boolean hasSourceConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
                                              +     * Optional. The source Autonomous Database configuration for the standby
                                              +     * Autonomous Database. The source Autonomous Database is configured while
                                              +     * creating the Peer Autonomous Database and can't be updated after creation.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceConfig. + */ + public com.google.cloud.oracledatabase.v1.SourceConfig getSourceConfig() { + if (sourceConfigBuilder_ == null) { + return sourceConfig_ == null + ? com.google.cloud.oracledatabase.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; + } else { + return sourceConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. The source Autonomous Database configuration for the standby
                                              +     * Autonomous Database. The source Autonomous Database is configured while
                                              +     * creating the Peer Autonomous Database and can't be updated after creation.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceConfig(com.google.cloud.oracledatabase.v1.SourceConfig value) { + if (sourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceConfig_ = value; + } else { + sourceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + return this; } /** * * *
                                              -     * Output only. The date and time that the Autonomous Database was created.
                                              +     * Optional. The source Autonomous Database configuration for the standby
                                              +     * Autonomous Database. The source Autonomous Database is configured while
                                              +     * creating the Peer Autonomous Database and can't be updated after creation.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public Builder setSourceConfig( + com.google.cloud.oracledatabase.v1.SourceConfig.Builder builderForValue) { + if (sourceConfigBuilder_ == null) { + sourceConfig_ = builderForValue.build(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + sourceConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000800; + onChanged(); + return this; } /** * * *
                                              -     * Output only. The date and time that the Autonomous Database was created.
                                              +     * Optional. The source Autonomous Database configuration for the standby
                                              +     * Autonomous Database. The source Autonomous Database is configured while
                                              +     * creating the Peer Autonomous Database and can't be updated after creation.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + public Builder mergeSourceConfig(com.google.cloud.oracledatabase.v1.SourceConfig value) { + if (sourceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && sourceConfig_ != null + && sourceConfig_ + != com.google.cloud.oracledatabase.v1.SourceConfig.getDefaultInstance()) { + getSourceConfigBuilder().mergeFrom(value); + } else { + sourceConfig_ = value; + } + } else { + sourceConfigBuilder_.mergeFrom(value); } - return createTimeBuilder_; + if (sourceConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. The source Autonomous Database configuration for the standby
                                              +     * Autonomous Database. The source Autonomous Database is configured while
                                              +     * creating the Peer Autonomous Database and can't be updated after creation.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + sourceConfig_ = null; + if (sourceConfigBuilder_ != null) { + sourceConfigBuilder_.dispose(); + sourceConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The source Autonomous Database configuration for the standby
                                              +     * Autonomous Database. The source Autonomous Database is configured while
                                              +     * creating the Peer Autonomous Database and can't be updated after creation.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.SourceConfig.Builder getSourceConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getSourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. The source Autonomous Database configuration for the standby
                                              +     * Autonomous Database. The source Autonomous Database is configured while
                                              +     * creating the Peer Autonomous Database and can't be updated after creation.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { + if (sourceConfigBuilder_ != null) { + return sourceConfigBuilder_.getMessageOrBuilder(); + } else { + return sourceConfig_ == null + ? com.google.cloud.oracledatabase.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; + } + } + + /** + * + * + *
                                              +     * Optional. The source Autonomous Database configuration for the standby
                                              +     * Autonomous Database. The source Autonomous Database is configured while
                                              +     * creating the Peer Autonomous Database and can't be updated after creation.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.SourceConfig, + com.google.cloud.oracledatabase.v1.SourceConfig.Builder, + com.google.cloud.oracledatabase.v1.SourceConfigOrBuilder> + getSourceConfigFieldBuilder() { + if (sourceConfigBuilder_ == null) { + sourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.SourceConfig, + com.google.cloud.oracledatabase.v1.SourceConfig.Builder, + com.google.cloud.oracledatabase.v1.SourceConfigOrBuilder>( + getSourceConfig(), getParentForChildren(), isClean()); + sourceConfig_ = null; + } + return sourceConfigBuilder_; + } + + private com.google.protobuf.LazyStringArrayList peerAutonomousDatabases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePeerAutonomousDatabasesIsMutable() { + if (!peerAutonomousDatabases_.isModifiable()) { + peerAutonomousDatabases_ = + new com.google.protobuf.LazyStringArrayList(peerAutonomousDatabases_); + } + bitField0_ |= 0x00001000; + } + + /** + * + * + *
                                              +     * Output only. The peer Autonomous Database names of the given Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the peerAutonomousDatabases. + */ + public com.google.protobuf.ProtocolStringList getPeerAutonomousDatabasesList() { + peerAutonomousDatabases_.makeImmutable(); + return peerAutonomousDatabases_; + } + + /** + * + * + *
                                              +     * Output only. The peer Autonomous Database names of the given Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of peerAutonomousDatabases. + */ + public int getPeerAutonomousDatabasesCount() { + return peerAutonomousDatabases_.size(); + } + + /** + * + * + *
                                              +     * Output only. The peer Autonomous Database names of the given Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The peerAutonomousDatabases at the given index. + */ + public java.lang.String getPeerAutonomousDatabases(int index) { + return peerAutonomousDatabases_.get(index); + } + + /** + * + * + *
                                              +     * Output only. The peer Autonomous Database names of the given Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the peerAutonomousDatabases at the given index. + */ + public com.google.protobuf.ByteString getPeerAutonomousDatabasesBytes(int index) { + return peerAutonomousDatabases_.getByteString(index); + } + + /** + * + * + *
                                              +     * Output only. The peer Autonomous Database names of the given Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The peerAutonomousDatabases to set. + * @return This builder for chaining. + */ + public Builder setPeerAutonomousDatabases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerAutonomousDatabasesIsMutable(); + peerAutonomousDatabases_.set(index, value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The peer Autonomous Database names of the given Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The peerAutonomousDatabases to add. + * @return This builder for chaining. + */ + public Builder addPeerAutonomousDatabases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerAutonomousDatabasesIsMutable(); + peerAutonomousDatabases_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The peer Autonomous Database names of the given Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The peerAutonomousDatabases to add. + * @return This builder for chaining. + */ + public Builder addAllPeerAutonomousDatabases(java.lang.Iterable values) { + ensurePeerAutonomousDatabasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peerAutonomousDatabases_); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The peer Autonomous Database names of the given Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPeerAutonomousDatabases() { + peerAutonomousDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The peer Autonomous Database names of the given Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the peerAutonomousDatabases to add. + * @return This builder for chaining. + */ + public Builder addPeerAutonomousDatabasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePeerAutonomousDatabasesIsMutable(); + peerAutonomousDatabases_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time that the Autonomous Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Autonomous Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 13 [(.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 date and time that the Autonomous Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 13 [(.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_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Autonomous Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 13 [(.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_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Autonomous Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Autonomous Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00002000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Autonomous Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Autonomous Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 13 [(.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 date and time that the Autonomous Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList disasterRecoverySupportedLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDisasterRecoverySupportedLocationsIsMutable() { + if (!disasterRecoverySupportedLocations_.isModifiable()) { + disasterRecoverySupportedLocations_ = + new com.google.protobuf.LazyStringArrayList(disasterRecoverySupportedLocations_); + } + bitField0_ |= 0x00004000; + } + + /** + * + * + *
                                              +     * Output only. List of supported GCP region to clone the Autonomous Database
                                              +     * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the disasterRecoverySupportedLocations. + */ + public com.google.protobuf.ProtocolStringList getDisasterRecoverySupportedLocationsList() { + disasterRecoverySupportedLocations_.makeImmutable(); + return disasterRecoverySupportedLocations_; + } + + /** + * + * + *
                                              +     * Output only. List of supported GCP region to clone the Autonomous Database
                                              +     * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of disasterRecoverySupportedLocations. + */ + public int getDisasterRecoverySupportedLocationsCount() { + return disasterRecoverySupportedLocations_.size(); + } + + /** + * + * + *
                                              +     * Output only. List of supported GCP region to clone the Autonomous Database
                                              +     * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The disasterRecoverySupportedLocations at the given index. + */ + public java.lang.String getDisasterRecoverySupportedLocations(int index) { + return disasterRecoverySupportedLocations_.get(index); + } + + /** + * + * + *
                                              +     * Output only. List of supported GCP region to clone the Autonomous Database
                                              +     * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the disasterRecoverySupportedLocations at the given index. + */ + public com.google.protobuf.ByteString getDisasterRecoverySupportedLocationsBytes(int index) { + return disasterRecoverySupportedLocations_.getByteString(index); + } + + /** + * + * + *
                                              +     * Output only. List of supported GCP region to clone the Autonomous Database
                                              +     * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The disasterRecoverySupportedLocations to set. + * @return This builder for chaining. + */ + public Builder setDisasterRecoverySupportedLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisasterRecoverySupportedLocationsIsMutable(); + disasterRecoverySupportedLocations_.set(index, value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. List of supported GCP region to clone the Autonomous Database
                                              +     * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The disasterRecoverySupportedLocations to add. + * @return This builder for chaining. + */ + public Builder addDisasterRecoverySupportedLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisasterRecoverySupportedLocationsIsMutable(); + disasterRecoverySupportedLocations_.add(value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. List of supported GCP region to clone the Autonomous Database
                                              +     * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The disasterRecoverySupportedLocations to add. + * @return This builder for chaining. + */ + public Builder addAllDisasterRecoverySupportedLocations( + java.lang.Iterable values) { + ensureDisasterRecoverySupportedLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, disasterRecoverySupportedLocations_); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. List of supported GCP region to clone the Autonomous Database
                                              +     * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDisasterRecoverySupportedLocations() { + disasterRecoverySupportedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. List of supported GCP region to clone the Autonomous Database
                                              +     * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +     * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the disasterRecoverySupportedLocations to add. + * @return This builder for chaining. + */ + public Builder addDisasterRecoverySupportedLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDisasterRecoverySupportedLocationsIsMutable(); + disasterRecoverySupportedLocations_.add(value); + bitField0_ |= 0x00004000; + onChanged(); + return this; } @java.lang.Override diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseOrBuilder.java index 9ec012d34a88..18c8e9707ea4 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseOrBuilder.java @@ -308,7 +308,7 @@ java.lang.String getLabelsOrDefault( * * *
                                              -   * Optional. The subnet CIDR range for the Autonmous Database.
                                              +   * Optional. The subnet CIDR range for the Autonomous Database.
                                                  * 
                                              * * string cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -321,7 +321,7 @@ java.lang.String getLabelsOrDefault( * * *
                                              -   * Optional. The subnet CIDR range for the Autonmous Database.
                                              +   * Optional. The subnet CIDR range for the Autonomous Database.
                                                  * 
                                              * * string cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -330,6 +330,193 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getCidrBytes(); + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the Autonomous
                                              +   * Database. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +   * optional but if specified, this should match the parent ODBNetwork of the
                                              +   * OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ + java.lang.String getOdbNetwork(); + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the Autonomous
                                              +   * Database. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +   * optional but if specified, this should match the parent ODBNetwork of the
                                              +   * OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + com.google.protobuf.ByteString getOdbNetworkBytes(); + + /** + * + * + *
                                              +   * Optional. The name of the OdbSubnet associated with the Autonomous
                                              +   * Database. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ + java.lang.String getOdbSubnet(); + + /** + * + * + *
                                              +   * Optional. The name of the OdbSubnet associated with the Autonomous
                                              +   * Database. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + com.google.protobuf.ByteString getOdbSubnetBytes(); + + /** + * + * + *
                                              +   * Optional. The source Autonomous Database configuration for the standby
                                              +   * Autonomous Database. The source Autonomous Database is configured while
                                              +   * creating the Peer Autonomous Database and can't be updated after creation.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceConfig field is set. + */ + boolean hasSourceConfig(); + + /** + * + * + *
                                              +   * Optional. The source Autonomous Database configuration for the standby
                                              +   * Autonomous Database. The source Autonomous Database is configured while
                                              +   * creating the Peer Autonomous Database and can't be updated after creation.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceConfig. + */ + com.google.cloud.oracledatabase.v1.SourceConfig getSourceConfig(); + + /** + * + * + *
                                              +   * Optional. The source Autonomous Database configuration for the standby
                                              +   * Autonomous Database. The source Autonomous Database is configured while
                                              +   * creating the Peer Autonomous Database and can't be updated after creation.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.SourceConfig source_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.SourceConfigOrBuilder getSourceConfigOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The peer Autonomous Database names of the given Autonomous
                                              +   * Database.
                                              +   * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the peerAutonomousDatabases. + */ + java.util.List getPeerAutonomousDatabasesList(); + + /** + * + * + *
                                              +   * Output only. The peer Autonomous Database names of the given Autonomous
                                              +   * Database.
                                              +   * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of peerAutonomousDatabases. + */ + int getPeerAutonomousDatabasesCount(); + + /** + * + * + *
                                              +   * Output only. The peer Autonomous Database names of the given Autonomous
                                              +   * Database.
                                              +   * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The peerAutonomousDatabases at the given index. + */ + java.lang.String getPeerAutonomousDatabases(int index); + + /** + * + * + *
                                              +   * Output only. The peer Autonomous Database names of the given Autonomous
                                              +   * Database.
                                              +   * 
                                              + * + * + * repeated string peer_autonomous_databases = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the peerAutonomousDatabases at the given index. + */ + com.google.protobuf.ByteString getPeerAutonomousDatabasesBytes(int index); + /** * * @@ -369,4 +556,70 @@ java.lang.String getLabelsOrDefault( * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                              +   * Output only. List of supported GCP region to clone the Autonomous Database
                                              +   * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the disasterRecoverySupportedLocations. + */ + java.util.List getDisasterRecoverySupportedLocationsList(); + + /** + * + * + *
                                              +   * Output only. List of supported GCP region to clone the Autonomous Database
                                              +   * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of disasterRecoverySupportedLocations. + */ + int getDisasterRecoverySupportedLocationsCount(); + + /** + * + * + *
                                              +   * Output only. List of supported GCP region to clone the Autonomous Database
                                              +   * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The disasterRecoverySupportedLocations at the given index. + */ + java.lang.String getDisasterRecoverySupportedLocations(int index); + + /** + * + * + *
                                              +   * Output only. List of supported GCP region to clone the Autonomous Database
                                              +   * for disaster recovery. Format: `project/{project}/locations/{location}`.
                                              +   * 
                                              + * + * + * repeated string disaster_recovery_supported_locations = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the disasterRecoverySupportedLocations at the given index. + */ + com.google.protobuf.ByteString getDisasterRecoverySupportedLocationsBytes(int index); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProperties.java index 0d5cfc8db4de..582851633326 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProperties.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProperties.java @@ -72,6 +72,9 @@ private AutonomousDatabaseProperties() { sqlWebDeveloperUrl_ = ""; supportedCloneRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); ociUrl_ = ""; + allowlistedIps_ = com.google.protobuf.LazyStringArrayList.emptyList(); + encryptionKeyHistoryEntries_ = java.util.Collections.emptyList(); + serviceAgentEmail_ = ""; } @java.lang.Override @@ -4629,6 +4632,130 @@ public com.google.protobuf.TimestampOrBuilder getNextLongTermBackupTimeOrBuilder : nextLongTermBackupTime_; } + public static final int DATA_GUARD_ROLE_CHANGED_TIME_FIELD_NUMBER = 61; + private com.google.protobuf.Timestamp dataGuardRoleChangedTime_; + + /** + * + * + *
                                              +   * Output only. The date and time the Autonomous Data Guard role was changed
                                              +   * for the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataGuardRoleChangedTime field is set. + */ + @java.lang.Override + public boolean hasDataGuardRoleChangedTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
                                              +   * Output only. The date and time the Autonomous Data Guard role was changed
                                              +   * for the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataGuardRoleChangedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDataGuardRoleChangedTime() { + return dataGuardRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataGuardRoleChangedTime_; + } + + /** + * + * + *
                                              +   * Output only. The date and time the Autonomous Data Guard role was changed
                                              +   * for the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDataGuardRoleChangedTimeOrBuilder() { + return dataGuardRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataGuardRoleChangedTime_; + } + + public static final int DISASTER_RECOVERY_ROLE_CHANGED_TIME_FIELD_NUMBER = 62; + private com.google.protobuf.Timestamp disasterRecoveryRoleChangedTime_; + + /** + * + * + *
                                              +   * Output only. The date and time the Disaster Recovery role was changed for
                                              +   * the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the disasterRecoveryRoleChangedTime field is set. + */ + @java.lang.Override + public boolean hasDisasterRecoveryRoleChangedTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                              +   * Output only. The date and time the Disaster Recovery role was changed for
                                              +   * the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The disasterRecoveryRoleChangedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDisasterRecoveryRoleChangedTime() { + return disasterRecoveryRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : disasterRecoveryRoleChangedTime_; + } + + /** + * + * + *
                                              +   * Output only. The date and time the Disaster Recovery role was changed for
                                              +   * the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDisasterRecoveryRoleChangedTimeOrBuilder() { + return disasterRecoveryRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : disasterRecoveryRoleChangedTime_; + } + public static final int MAINTENANCE_BEGIN_TIME_FIELD_NUMBER = 65; private com.google.protobuf.Timestamp maintenanceBeginTime_; @@ -4647,7 +4774,7 @@ public com.google.protobuf.TimestampOrBuilder getNextLongTermBackupTimeOrBuilder */ @java.lang.Override public boolean hasMaintenanceBeginTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -4706,7 +4833,7 @@ public com.google.protobuf.TimestampOrBuilder getMaintenanceBeginTimeOrBuilder() */ @java.lang.Override public boolean hasMaintenanceEndTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -4747,105 +4874,389 @@ public com.google.protobuf.TimestampOrBuilder getMaintenanceEndTimeOrBuilder() { : maintenanceEndTime_; } - private byte memoizedIsInitialized = -1; + public static final int ALLOWLISTED_IPS_FIELD_NUMBER = 67; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowlistedIps_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                              +   * 
                                              + * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowlistedIps. + */ + public com.google.protobuf.ProtocolStringList getAllowlistedIpsList() { + return allowlistedIps_; + } + + /** + * + * + *
                                              +   * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                              +   * 
                                              + * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowlistedIps. + */ + public int getAllowlistedIpsCount() { + return allowlistedIps_.size(); + } + + /** + * + * + *
                                              +   * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                              +   * 
                                              + * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowlistedIps at the given index. + */ + public java.lang.String getAllowlistedIps(int index) { + return allowlistedIps_.get(index); + } + + /** + * + * + *
                                              +   * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                              +   * 
                                              + * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowlistedIps at the given index. + */ + public com.google.protobuf.ByteString getAllowlistedIpsBytes(int index) { + return allowlistedIps_.getByteString(index); + } + public static final int ENCRYPTION_KEY_FIELD_NUMBER = 68; + private com.google.cloud.oracledatabase.v1.EncryptionKey encryptionKey_; + + /** + * + * + *
                                              +   * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +   * Updating this field will add a new entry in the
                                              +   * `encryption_key_history_entries` field with the former version.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionKey field is set. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public boolean hasEncryptionKey() { + return ((bitField0_ & 0x00000800) != 0); + } - memoizedIsInitialized = 1; - return true; + /** + * + * + *
                                              +   * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +   * Updating this field will add a new entry in the
                                              +   * `encryption_key_history_entries` field with the former version.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionKey. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKey getEncryptionKey() { + return encryptionKey_ == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; } + /** + * + * + *
                                              +   * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +   * Updating this field will add a new entry in the
                                              +   * `encryption_key_history_entries` field with the former version.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ocid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ocid_); - } - if (java.lang.Float.floatToRawIntBits(computeCount_) != 0) { - output.writeFloat(2, computeCount_); - } - if (cpuCoreCount_ != 0) { - output.writeInt32(3, cpuCoreCount_); - } - if (dataStorageSizeTb_ != 0) { - output.writeInt32(4, dataStorageSizeTb_); - } - if (dbWorkload_ - != com.google.cloud.oracledatabase.v1.DBWorkload.DB_WORKLOAD_UNSPECIFIED.getNumber()) { - output.writeEnum(5, dbWorkload_); - } - if (dbEdition_ - != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition - .DATABASE_EDITION_UNSPECIFIED - .getNumber()) { - output.writeEnum(6, dbEdition_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, characterSet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nCharacterSet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, nCharacterSet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointIp_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, privateEndpointIp_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointLabel_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, privateEndpointLabel_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, dbVersion_); - } - if (isAutoScalingEnabled_ != false) { - output.writeBool(14, isAutoScalingEnabled_); - } - if (isStorageAutoScalingEnabled_ != false) { - output.writeBool(15, isStorageAutoScalingEnabled_); - } - if (licenseType_ - != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType - .LICENSE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(16, licenseType_); - } - for (int i = 0; i < customerContacts_.size(); i++) { - output.writeMessage(17, customerContacts_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, secretId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vaultId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, vaultId_); - } - if (maintenanceScheduleType_ - != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType - .MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(20, maintenanceScheduleType_); - } - if (java.lang.Double.doubleToRawLongBits(actualUsedDataStorageSizeTb_) != 0) { - output.writeDouble(21, actualUsedDataStorageSizeTb_); - } - if (java.lang.Double.doubleToRawLongBits(allocatedStorageSizeTb_) != 0) { - output.writeDouble(22, allocatedStorageSizeTb_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(23, getApexDetails()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(24, arePrimaryAllowlistedIpsUsed_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 25, lifecycleDetails_); - } - if (state_ != com.google.cloud.oracledatabase.v1.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(26, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autonomousContainerDatabaseId_)) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 27, autonomousContainerDatabaseId_); + public com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + return encryptionKey_ == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; + } + + public static final int ENCRYPTION_KEY_HISTORY_ENTRIES_FIELD_NUMBER = 69; + + @SuppressWarnings("serial") + private java.util.List + encryptionKeyHistoryEntries_; + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getEncryptionKeyHistoryEntriesList() { + return encryptionKeyHistoryEntries_; + } + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryOrBuilder> + getEncryptionKeyHistoryEntriesOrBuilderList() { + return encryptionKeyHistoryEntries_; + } + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getEncryptionKeyHistoryEntriesCount() { + return encryptionKeyHistoryEntries_.size(); + } + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry + getEncryptionKeyHistoryEntries(int index) { + return encryptionKeyHistoryEntries_.get(index); + } + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryOrBuilder + getEncryptionKeyHistoryEntriesOrBuilder(int index) { + return encryptionKeyHistoryEntries_.get(index); + } + + public static final int SERVICE_AGENT_EMAIL_FIELD_NUMBER = 70; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAgentEmail_ = ""; + + /** + * + * + *
                                              +   * Output only. An Oracle-managed Google Cloud service account on which
                                              +   * customers can grant roles to access resources in the customer project.
                                              +   * 
                                              + * + * string service_agent_email = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAgentEmail. + */ + @java.lang.Override + public java.lang.String getServiceAgentEmail() { + java.lang.Object ref = serviceAgentEmail_; + 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(); + serviceAgentEmail_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. An Oracle-managed Google Cloud service account on which
                                              +   * customers can grant roles to access resources in the customer project.
                                              +   * 
                                              + * + * string service_agent_email = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAgentEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAgentEmailBytes() { + java.lang.Object ref = serviceAgentEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAgentEmail_ = 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.GeneratedMessageV3.isStringEmpty(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ocid_); + } + if (java.lang.Float.floatToRawIntBits(computeCount_) != 0) { + output.writeFloat(2, computeCount_); + } + if (cpuCoreCount_ != 0) { + output.writeInt32(3, cpuCoreCount_); + } + if (dataStorageSizeTb_ != 0) { + output.writeInt32(4, dataStorageSizeTb_); + } + if (dbWorkload_ + != com.google.cloud.oracledatabase.v1.DBWorkload.DB_WORKLOAD_UNSPECIFIED.getNumber()) { + output.writeEnum(5, dbWorkload_); + } + if (dbEdition_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition + .DATABASE_EDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, dbEdition_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, characterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nCharacterSet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, nCharacterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, privateEndpointIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointLabel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, privateEndpointLabel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, dbVersion_); + } + if (isAutoScalingEnabled_ != false) { + output.writeBool(14, isAutoScalingEnabled_); + } + if (isStorageAutoScalingEnabled_ != false) { + output.writeBool(15, isStorageAutoScalingEnabled_); + } + if (licenseType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType + .LICENSE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, licenseType_); + } + for (int i = 0; i < customerContacts_.size(); i++) { + output.writeMessage(17, customerContacts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, secretId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vaultId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, vaultId_); + } + if (maintenanceScheduleType_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + .MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(20, maintenanceScheduleType_); + } + if (java.lang.Double.doubleToRawLongBits(actualUsedDataStorageSizeTb_) != 0) { + output.writeDouble(21, actualUsedDataStorageSizeTb_); + } + if (java.lang.Double.doubleToRawLongBits(allocatedStorageSizeTb_) != 0) { + output.writeDouble(22, allocatedStorageSizeTb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(23, getApexDetails()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(24, arePrimaryAllowlistedIpsUsed_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, lifecycleDetails_); + } + if (state_ != com.google.cloud.oracledatabase.v1.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(26, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autonomousContainerDatabaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 27, autonomousContainerDatabaseId_); } for (int i = 0; i < availableUpgradeVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( @@ -4959,18 +5370,36 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(60, getNextLongTermBackupTime()); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(61, getDataGuardRoleChangedTime()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(62, getDisasterRecoveryRoleChangedTime()); + } if (dataStorageSizeGb_ != 0) { output.writeInt32(63, dataStorageSizeGb_); } for (int i = 0; i < scheduledOperationDetails_.size(); i++) { output.writeMessage(64, scheduledOperationDetails_.get(i)); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(65, getMaintenanceBeginTime()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(66, getMaintenanceEndTime()); } + for (int i = 0; i < allowlistedIps_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 67, allowlistedIps_.getRaw(i)); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(68, getEncryptionKey()); + } + for (int i = 0; i < encryptionKeyHistoryEntries_.size(); i++) { + output.writeMessage(69, encryptionKeyHistoryEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAgentEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 70, serviceAgentEmail_); + } getUnknownFields().writeTo(output); } @@ -5206,6 +5635,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(60, getNextLongTermBackupTime()); } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 61, getDataGuardRoleChangedTime()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 62, getDisasterRecoveryRoleChangedTime()); + } if (dataStorageSizeGb_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(63, dataStorageSizeGb_); } @@ -5214,13 +5653,32 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 64, scheduledOperationDetails_.get(i)); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(65, getMaintenanceBeginTime()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(66, getMaintenanceEndTime()); } + { + int dataSize = 0; + for (int i = 0; i < allowlistedIps_.size(); i++) { + dataSize += computeStringSizeNoTag(allowlistedIps_.getRaw(i)); + } + size += dataSize; + size += 2 * getAllowlistedIpsList().size(); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(68, getEncryptionKey()); + } + for (int i = 0; i < encryptionKeyHistoryEntries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 69, encryptionKeyHistoryEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAgentEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(70, serviceAgentEmail_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5324,6 +5782,16 @@ public boolean equals(final java.lang.Object obj) { if (hasNextLongTermBackupTime()) { if (!getNextLongTermBackupTime().equals(other.getNextLongTermBackupTime())) return false; } + if (hasDataGuardRoleChangedTime() != other.hasDataGuardRoleChangedTime()) return false; + if (hasDataGuardRoleChangedTime()) { + if (!getDataGuardRoleChangedTime().equals(other.getDataGuardRoleChangedTime())) return false; + } + if (hasDisasterRecoveryRoleChangedTime() != other.hasDisasterRecoveryRoleChangedTime()) + return false; + if (hasDisasterRecoveryRoleChangedTime()) { + if (!getDisasterRecoveryRoleChangedTime().equals(other.getDisasterRecoveryRoleChangedTime())) + return false; + } if (hasMaintenanceBeginTime() != other.hasMaintenanceBeginTime()) return false; if (hasMaintenanceBeginTime()) { if (!getMaintenanceBeginTime().equals(other.getMaintenanceBeginTime())) return false; @@ -5332,6 +5800,14 @@ public boolean equals(final java.lang.Object obj) { if (hasMaintenanceEndTime()) { if (!getMaintenanceEndTime().equals(other.getMaintenanceEndTime())) return false; } + if (!getAllowlistedIpsList().equals(other.getAllowlistedIpsList())) return false; + if (hasEncryptionKey() != other.hasEncryptionKey()) return false; + if (hasEncryptionKey()) { + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + } + if (!getEncryptionKeyHistoryEntriesList().equals(other.getEncryptionKeyHistoryEntriesList())) + return false; + if (!getServiceAgentEmail().equals(other.getServiceAgentEmail())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5484,6 +5960,14 @@ public int hashCode() { hash = (37 * hash) + NEXT_LONG_TERM_BACKUP_TIME_FIELD_NUMBER; hash = (53 * hash) + getNextLongTermBackupTime().hashCode(); } + if (hasDataGuardRoleChangedTime()) { + hash = (37 * hash) + DATA_GUARD_ROLE_CHANGED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDataGuardRoleChangedTime().hashCode(); + } + if (hasDisasterRecoveryRoleChangedTime()) { + hash = (37 * hash) + DISASTER_RECOVERY_ROLE_CHANGED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDisasterRecoveryRoleChangedTime().hashCode(); + } if (hasMaintenanceBeginTime()) { hash = (37 * hash) + MAINTENANCE_BEGIN_TIME_FIELD_NUMBER; hash = (53 * hash) + getMaintenanceBeginTime().hashCode(); @@ -5492,6 +5976,20 @@ public int hashCode() { hash = (37 * hash) + MAINTENANCE_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getMaintenanceEndTime().hashCode(); } + if (getAllowlistedIpsCount() > 0) { + hash = (37 * hash) + ALLOWLISTED_IPS_FIELD_NUMBER; + hash = (53 * hash) + getAllowlistedIpsList().hashCode(); + } + if (hasEncryptionKey()) { + hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionKey().hashCode(); + } + if (getEncryptionKeyHistoryEntriesCount() > 0) { + hash = (37 * hash) + ENCRYPTION_KEY_HISTORY_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionKeyHistoryEntriesList().hashCode(); + } + hash = (37 * hash) + SERVICE_AGENT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAgentEmail().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5642,8 +6140,12 @@ private void maybeForceBuilderInitialization() { getLocalStandbyDbFieldBuilder(); getScheduledOperationDetailsFieldBuilder(); getNextLongTermBackupTimeFieldBuilder(); + getDataGuardRoleChangedTimeFieldBuilder(); + getDisasterRecoveryRoleChangedTimeFieldBuilder(); getMaintenanceBeginTimeFieldBuilder(); getMaintenanceEndTimeFieldBuilder(); + getEncryptionKeyFieldBuilder(); + getEncryptionKeyHistoryEntriesFieldBuilder(); } } @@ -5743,6 +6245,16 @@ public Builder clear() { nextLongTermBackupTimeBuilder_.dispose(); nextLongTermBackupTimeBuilder_ = null; } + dataGuardRoleChangedTime_ = null; + if (dataGuardRoleChangedTimeBuilder_ != null) { + dataGuardRoleChangedTimeBuilder_.dispose(); + dataGuardRoleChangedTimeBuilder_ = null; + } + disasterRecoveryRoleChangedTime_ = null; + if (disasterRecoveryRoleChangedTimeBuilder_ != null) { + disasterRecoveryRoleChangedTimeBuilder_.dispose(); + disasterRecoveryRoleChangedTimeBuilder_ = null; + } maintenanceBeginTime_ = null; if (maintenanceBeginTimeBuilder_ != null) { maintenanceBeginTimeBuilder_.dispose(); @@ -5753,6 +6265,20 @@ public Builder clear() { maintenanceEndTimeBuilder_.dispose(); maintenanceEndTimeBuilder_ = null; } + allowlistedIps_ = com.google.protobuf.LazyStringArrayList.emptyList(); + encryptionKey_ = null; + if (encryptionKeyBuilder_ != null) { + encryptionKeyBuilder_.dispose(); + encryptionKeyBuilder_ = null; + } + if (encryptionKeyHistoryEntriesBuilder_ == null) { + encryptionKeyHistoryEntries_ = java.util.Collections.emptyList(); + } else { + encryptionKeyHistoryEntries_ = null; + encryptionKeyHistoryEntriesBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x20000000); + serviceAgentEmail_ = ""; return this; } @@ -5813,7 +6339,17 @@ private void buildPartialRepeatedFields( } else { result.scheduledOperationDetails_ = scheduledOperationDetailsBuilder_.build(); } - } + if (encryptionKeyHistoryEntriesBuilder_ == null) { + if (((bitField1_ & 0x20000000) != 0)) { + encryptionKeyHistoryEntries_ = + java.util.Collections.unmodifiableList(encryptionKeyHistoryEntries_); + bitField1_ = (bitField1_ & ~0x20000000); + } + result.encryptionKeyHistoryEntries_ = encryptionKeyHistoryEntries_; + } else { + result.encryptionKeyHistoryEntries_ = encryptionKeyHistoryEntriesBuilder_.build(); + } + } private void buildPartial0( com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties result) { @@ -6008,18 +6544,44 @@ private void buildPartial1( to_bitField0_ |= 0x00000040; } if (((from_bitField1_ & 0x00800000) != 0)) { + result.dataGuardRoleChangedTime_ = + dataGuardRoleChangedTimeBuilder_ == null + ? dataGuardRoleChangedTime_ + : dataGuardRoleChangedTimeBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField1_ & 0x01000000) != 0)) { + result.disasterRecoveryRoleChangedTime_ = + disasterRecoveryRoleChangedTimeBuilder_ == null + ? disasterRecoveryRoleChangedTime_ + : disasterRecoveryRoleChangedTimeBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField1_ & 0x02000000) != 0)) { result.maintenanceBeginTime_ = maintenanceBeginTimeBuilder_ == null ? maintenanceBeginTime_ : maintenanceBeginTimeBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000200; } - if (((from_bitField1_ & 0x01000000) != 0)) { + if (((from_bitField1_ & 0x04000000) != 0)) { result.maintenanceEndTime_ = maintenanceEndTimeBuilder_ == null ? maintenanceEndTime_ : maintenanceEndTimeBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField1_ & 0x08000000) != 0)) { + allowlistedIps_.makeImmutable(); + result.allowlistedIps_ = allowlistedIps_; + } + if (((from_bitField1_ & 0x10000000) != 0)) { + result.encryptionKey_ = + encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField1_ & 0x40000000) != 0)) { + result.serviceAgentEmail_ = serviceAgentEmail_; } result.bitField0_ |= to_bitField0_; } @@ -6332,12 +6894,63 @@ public Builder mergeFrom( if (other.hasNextLongTermBackupTime()) { mergeNextLongTermBackupTime(other.getNextLongTermBackupTime()); } + if (other.hasDataGuardRoleChangedTime()) { + mergeDataGuardRoleChangedTime(other.getDataGuardRoleChangedTime()); + } + if (other.hasDisasterRecoveryRoleChangedTime()) { + mergeDisasterRecoveryRoleChangedTime(other.getDisasterRecoveryRoleChangedTime()); + } if (other.hasMaintenanceBeginTime()) { mergeMaintenanceBeginTime(other.getMaintenanceBeginTime()); } if (other.hasMaintenanceEndTime()) { mergeMaintenanceEndTime(other.getMaintenanceEndTime()); } + if (!other.allowlistedIps_.isEmpty()) { + if (allowlistedIps_.isEmpty()) { + allowlistedIps_ = other.allowlistedIps_; + bitField1_ |= 0x08000000; + } else { + ensureAllowlistedIpsIsMutable(); + allowlistedIps_.addAll(other.allowlistedIps_); + } + onChanged(); + } + if (other.hasEncryptionKey()) { + mergeEncryptionKey(other.getEncryptionKey()); + } + if (encryptionKeyHistoryEntriesBuilder_ == null) { + if (!other.encryptionKeyHistoryEntries_.isEmpty()) { + if (encryptionKeyHistoryEntries_.isEmpty()) { + encryptionKeyHistoryEntries_ = other.encryptionKeyHistoryEntries_; + bitField1_ = (bitField1_ & ~0x20000000); + } else { + ensureEncryptionKeyHistoryEntriesIsMutable(); + encryptionKeyHistoryEntries_.addAll(other.encryptionKeyHistoryEntries_); + } + onChanged(); + } + } else { + if (!other.encryptionKeyHistoryEntries_.isEmpty()) { + if (encryptionKeyHistoryEntriesBuilder_.isEmpty()) { + encryptionKeyHistoryEntriesBuilder_.dispose(); + encryptionKeyHistoryEntriesBuilder_ = null; + encryptionKeyHistoryEntries_ = other.encryptionKeyHistoryEntries_; + bitField1_ = (bitField1_ & ~0x20000000); + encryptionKeyHistoryEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEncryptionKeyHistoryEntriesFieldBuilder() + : null; + } else { + encryptionKeyHistoryEntriesBuilder_.addAllMessages(other.encryptionKeyHistoryEntries_); + } + } + } + if (!other.getServiceAgentEmail().isEmpty()) { + serviceAgentEmail_ = other.serviceAgentEmail_; + bitField1_ |= 0x40000000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6696,6 +7309,21 @@ public Builder mergeFrom( bitField1_ |= 0x00400000; break; } // case 482 + case 490: + { + input.readMessage( + getDataGuardRoleChangedTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00800000; + break; + } // case 490 + case 498: + { + input.readMessage( + getDisasterRecoveryRoleChangedTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x01000000; + break; + } // case 498 case 504: { dataStorageSizeGb_ = input.readInt32(); @@ -6720,16 +7348,49 @@ public Builder mergeFrom( { input.readMessage( getMaintenanceBeginTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00800000; + bitField1_ |= 0x02000000; break; } // case 522 case 530: { input.readMessage( getMaintenanceEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x01000000; + bitField1_ |= 0x04000000; break; } // case 530 + case 538: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowlistedIpsIsMutable(); + allowlistedIps_.add(s); + break; + } // case 538 + case 546: + { + input.readMessage(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x10000000; + break; + } // case 546 + case 554: + { + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry m = + input.readMessage( + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.parser(), + extensionRegistry); + if (encryptionKeyHistoryEntriesBuilder_ == null) { + ensureEncryptionKeyHistoryEntriesIsMutable(); + encryptionKeyHistoryEntries_.add(m); + } else { + encryptionKeyHistoryEntriesBuilder_.addMessage(m); + } + break; + } // case 554 + case 562: + { + serviceAgentEmail_ = input.readStringRequireUtf8(); + bitField1_ |= 0x40000000; + break; + } // case 562 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10745,16 +11406,1248 @@ public boolean getIsLocalDataGuardEnabled() { * (in-region) Data Guard enabled. * * - * bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The isLocalDataGuardEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsLocalDataGuardEnabled(boolean value) { + + isLocalDataGuardEnabled_ = value; + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. This field indicates whether the Autonomous Database has local
                                              +     * (in-region) Data Guard enabled.
                                              +     * 
                                              + * + * bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsLocalDataGuardEnabled() { + bitField1_ = (bitField1_ & ~0x00000002); + isLocalDataGuardEnabled_ = false; + onChanged(); + return this; + } + + private int localAdgAutoFailoverMaxDataLossLimit_; + + /** + * + * + *
                                              +     * Output only. This field indicates the maximum data loss limit for an
                                              +     * Autonomous Database, in seconds.
                                              +     * 
                                              + * + * + * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localAdgAutoFailoverMaxDataLossLimit. + */ + @java.lang.Override + public int getLocalAdgAutoFailoverMaxDataLossLimit() { + return localAdgAutoFailoverMaxDataLossLimit_; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the maximum data loss limit for an
                                              +     * Autonomous Database, in seconds.
                                              +     * 
                                              + * + * + * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The localAdgAutoFailoverMaxDataLossLimit to set. + * @return This builder for chaining. + */ + public Builder setLocalAdgAutoFailoverMaxDataLossLimit(int value) { + + localAdgAutoFailoverMaxDataLossLimit_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the maximum data loss limit for an
                                              +     * Autonomous Database, in seconds.
                                              +     * 
                                              + * + * + * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLocalAdgAutoFailoverMaxDataLossLimit() { + bitField1_ = (bitField1_ & ~0x00000004); + localAdgAutoFailoverMaxDataLossLimit_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary localStandbyDb_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder> + localStandbyDbBuilder_; + + /** + * + * + *
                                              +     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the localStandbyDb field is set. + */ + public boolean hasLocalStandbyDb() { + return ((bitField1_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localStandbyDb. + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary getLocalStandbyDb() { + if (localStandbyDbBuilder_ == null) { + return localStandbyDb_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + .getDefaultInstance() + : localStandbyDb_; + } else { + return localStandbyDbBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocalStandbyDb( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary value) { + if (localStandbyDbBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + localStandbyDb_ = value; + } else { + localStandbyDbBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocalStandbyDb( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder + builderForValue) { + if (localStandbyDbBuilder_ == null) { + localStandbyDb_ = builderForValue.build(); + } else { + localStandbyDbBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLocalStandbyDb( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary value) { + if (localStandbyDbBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) + && localStandbyDb_ != null + && localStandbyDb_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + .getDefaultInstance()) { + getLocalStandbyDbBuilder().mergeFrom(value); + } else { + localStandbyDb_ = value; + } + } else { + localStandbyDbBuilder_.mergeFrom(value); + } + if (localStandbyDb_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLocalStandbyDb() { + bitField1_ = (bitField1_ & ~0x00000008); + localStandbyDb_ = null; + if (localStandbyDbBuilder_ != null) { + localStandbyDbBuilder_.dispose(); + localStandbyDbBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder + getLocalStandbyDbBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return getLocalStandbyDbFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder + getLocalStandbyDbOrBuilder() { + if (localStandbyDbBuilder_ != null) { + return localStandbyDbBuilder_.getMessageOrBuilder(); + } else { + return localStandbyDb_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + .getDefaultInstance() + : localStandbyDb_; + } + } + + /** + * + * + *
                                              +     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder> + getLocalStandbyDbFieldBuilder() { + if (localStandbyDbBuilder_ == null) { + localStandbyDbBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder>( + getLocalStandbyDb(), getParentForChildren(), isClean()); + localStandbyDb_ = null; + } + return localStandbyDbBuilder_; + } + + private int memoryPerOracleComputeUnitGbs_; + + /** + * + * + *
                                              +     * Output only. The amount of memory enabled per ECPU, in gigabytes.
                                              +     * 
                                              + * + * + * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The memoryPerOracleComputeUnitGbs. + */ + @java.lang.Override + public int getMemoryPerOracleComputeUnitGbs() { + return memoryPerOracleComputeUnitGbs_; + } + + /** + * + * + *
                                              +     * Output only. The amount of memory enabled per ECPU, in gigabytes.
                                              +     * 
                                              + * + * + * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The memoryPerOracleComputeUnitGbs to set. + * @return This builder for chaining. + */ + public Builder setMemoryPerOracleComputeUnitGbs(int value) { + + memoryPerOracleComputeUnitGbs_ = value; + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The amount of memory enabled per ECPU, in gigabytes.
                                              +     * 
                                              + * + * + * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMemoryPerOracleComputeUnitGbs() { + bitField1_ = (bitField1_ & ~0x00000010); + memoryPerOracleComputeUnitGbs_ = 0; + onChanged(); + return this; + } + + private int localDisasterRecoveryType_ = 0; + + /** + * + * + *
                                              +     * Output only. This field indicates the local disaster recovery (DR) type of
                                              +     * an Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for localDisasterRecoveryType. + */ + @java.lang.Override + public int getLocalDisasterRecoveryTypeValue() { + return localDisasterRecoveryType_; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the local disaster recovery (DR) type of
                                              +     * an Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for localDisasterRecoveryType to set. + * @return This builder for chaining. + */ + public Builder setLocalDisasterRecoveryTypeValue(int value) { + localDisasterRecoveryType_ = value; + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the local disaster recovery (DR) type of
                                              +     * an Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The localDisasterRecoveryType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + getLocalDisasterRecoveryType() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + .LocalDisasterRecoveryType.forNumber(localDisasterRecoveryType_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + .LocalDisasterRecoveryType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the local disaster recovery (DR) type of
                                              +     * an Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The localDisasterRecoveryType to set. + * @return This builder for chaining. + */ + public Builder setLocalDisasterRecoveryType( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000020; + localDisasterRecoveryType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the local disaster recovery (DR) type of
                                              +     * an Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLocalDisasterRecoveryType() { + bitField1_ = (bitField1_ & ~0x00000020); + localDisasterRecoveryType_ = 0; + onChanged(); + return this; + } + + private int dataSafeState_ = 0; + + /** + * + * + *
                                              +     * Output only. The current state of the Data Safe registration for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataSafeState. + */ + @java.lang.Override + public int getDataSafeStateValue() { + return dataSafeState_; + } + + /** + * + * + *
                                              +     * Output only. The current state of the Data Safe registration for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dataSafeState to set. + * @return This builder for chaining. + */ + public Builder setDataSafeStateValue(int value) { + dataSafeState_ = value; + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The current state of the Data Safe registration for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSafeState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState + getDataSafeState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState.forNumber( + dataSafeState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The current state of the Data Safe registration for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dataSafeState to set. + * @return This builder for chaining. + */ + public Builder setDataSafeState( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000040; + dataSafeState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The current state of the Data Safe registration for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataSafeState() { + bitField1_ = (bitField1_ & ~0x00000040); + dataSafeState_ = 0; + onChanged(); + return this; + } + + private int databaseManagementState_ = 0; + + /** + * + * + *
                                              +     * Output only. The current state of database management for the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for databaseManagementState. + */ + @java.lang.Override + public int getDatabaseManagementStateValue() { + return databaseManagementState_; + } + + /** + * + * + *
                                              +     * Output only. The current state of database management for the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for databaseManagementState to set. + * @return This builder for chaining. + */ + public Builder setDatabaseManagementStateValue(int value) { + databaseManagementState_ = value; + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The current state of database management for the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + getDatabaseManagementState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + .DatabaseManagementState.forNumber(databaseManagementState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The current state of database management for the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The databaseManagementState to set. + * @return This builder for chaining. + */ + public Builder setDatabaseManagementState( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000080; + databaseManagementState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The current state of database management for the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDatabaseManagementState() { + bitField1_ = (bitField1_ & ~0x00000080); + databaseManagementState_ = 0; + onChanged(); + return this; + } + + private int openMode_ = 0; + + /** + * + * + *
                                              +     * Output only. This field indicates the current mode of the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for openMode. + */ + @java.lang.Override + public int getOpenModeValue() { + return openMode_; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the current mode of the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for openMode to set. + * @return This builder for chaining. + */ + public Builder setOpenModeValue(int value) { + openMode_ = value; + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the current mode of the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The openMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode getOpenMode() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode.forNumber( + openMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the current mode of the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The openMode to set. + * @return This builder for chaining. + */ + public Builder setOpenMode( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000100; + openMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the current mode of the Autonomous
                                              +     * Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOpenMode() { + bitField1_ = (bitField1_ & ~0x00000100); + openMode_ = 0; + onChanged(); + return this; + } + + private int operationsInsightsState_ = 0; + + /** + * + * + *
                                              +     * Output only. This field indicates the state of Operations Insights for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for operationsInsightsState. + */ + @java.lang.Override + public int getOperationsInsightsStateValue() { + return operationsInsightsState_; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the state of Operations Insights for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for operationsInsightsState to set. + * @return This builder for chaining. + */ + public Builder setOperationsInsightsStateValue(int value) { + operationsInsightsState_ = value; + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the state of Operations Insights for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The operationsInsightsState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OperationsInsightsState getOperationsInsightsState() { + com.google.cloud.oracledatabase.v1.OperationsInsightsState result = + com.google.cloud.oracledatabase.v1.OperationsInsightsState.forNumber( + operationsInsightsState_); + return result == null + ? com.google.cloud.oracledatabase.v1.OperationsInsightsState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the state of Operations Insights for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The operationsInsightsState to set. + * @return This builder for chaining. + */ + public Builder setOperationsInsightsState( + com.google.cloud.oracledatabase.v1.OperationsInsightsState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000200; + operationsInsightsState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. This field indicates the state of Operations Insights for the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOperationsInsightsState() { + bitField1_ = (bitField1_ & ~0x00000200); + operationsInsightsState_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList peerDbIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePeerDbIdsIsMutable() { + if (!peerDbIds_.isModifiable()) { + peerDbIds_ = new com.google.protobuf.LazyStringArrayList(peerDbIds_); + } + bitField1_ |= 0x00000400; + } + + /** + * + * + *
                                              +     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              +     * Data Guard remote regions that are associated with the source database.
                                              +     * 
                                              + * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the peerDbIds. + */ + public com.google.protobuf.ProtocolStringList getPeerDbIdsList() { + peerDbIds_.makeImmutable(); + return peerDbIds_; + } + + /** + * + * + *
                                              +     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              +     * Data Guard remote regions that are associated with the source database.
                                              +     * 
                                              + * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of peerDbIds. + */ + public int getPeerDbIdsCount() { + return peerDbIds_.size(); + } + + /** + * + * + *
                                              +     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              +     * Data Guard remote regions that are associated with the source database.
                                              +     * 
                                              + * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The peerDbIds at the given index. + */ + public java.lang.String getPeerDbIds(int index) { + return peerDbIds_.get(index); + } + + /** + * + * + *
                                              +     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              +     * Data Guard remote regions that are associated with the source database.
                                              +     * 
                                              + * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the peerDbIds at the given index. + */ + public com.google.protobuf.ByteString getPeerDbIdsBytes(int index) { + return peerDbIds_.getByteString(index); + } + + /** + * + * + *
                                              +     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              +     * Data Guard remote regions that are associated with the source database.
                                              +     * 
                                              + * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The peerDbIds to set. + * @return This builder for chaining. + */ + public Builder setPeerDbIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerDbIdsIsMutable(); + peerDbIds_.set(index, value); + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              +     * Data Guard remote regions that are associated with the source database.
                                              +     * 
                                              + * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The peerDbIds to add. + * @return This builder for chaining. + */ + public Builder addPeerDbIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerDbIdsIsMutable(); + peerDbIds_.add(value); + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              +     * Data Guard remote regions that are associated with the source database.
                                              +     * 
                                              + * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The peerDbIds to add. + * @return This builder for chaining. + */ + public Builder addAllPeerDbIds(java.lang.Iterable values) { + ensurePeerDbIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peerDbIds_); + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              +     * Data Guard remote regions that are associated with the source database.
                                              +     * 
                                              + * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPeerDbIds() { + peerDbIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField1_ = (bitField1_ & ~0x00000400); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              +     * Data Guard remote regions that are associated with the source database.
                                              +     * 
                                              + * + * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the peerDbIds to add. + * @return This builder for chaining. + */ + public Builder addPeerDbIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePeerDbIdsIsMutable(); + peerDbIds_.add(value); + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + private int permissionLevel_ = 0; + + /** + * + * + *
                                              +     * Output only. The permission level of the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for permissionLevel. + */ + @java.lang.Override + public int getPermissionLevelValue() { + return permissionLevel_; + } + + /** + * + * + *
                                              +     * Output only. The permission level of the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for permissionLevel to set. + * @return This builder for chaining. + */ + public Builder setPermissionLevelValue(int value) { + permissionLevel_ = value; + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The permission level of the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The permissionLevel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + getPermissionLevel() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel.forNumber( + permissionLevel_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The permission level of the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The isLocalDataGuardEnabled to set. + * @param value The permissionLevel to set. * @return This builder for chaining. */ - public Builder setIsLocalDataGuardEnabled(boolean value) { - - isLocalDataGuardEnabled_ = value; - bitField1_ |= 0x00000002; + public Builder setPermissionLevel( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000800; + permissionLevel_ = value.getNumber(); onChanged(); return this; } @@ -10763,181 +12656,170 @@ public Builder setIsLocalDataGuardEnabled(boolean value) { * * *
                                              -     * Output only. This field indicates whether the Autonomous Database has local
                                              -     * (in-region) Data Guard enabled.
                                              +     * Output only. The permission level of the Autonomous Database.
                                                    * 
                                              * - * bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ - public Builder clearIsLocalDataGuardEnabled() { - bitField1_ = (bitField1_ & ~0x00000002); - isLocalDataGuardEnabled_ = false; + public Builder clearPermissionLevel() { + bitField1_ = (bitField1_ & ~0x00000800); + permissionLevel_ = 0; onChanged(); return this; } - private int localAdgAutoFailoverMaxDataLossLimit_; + private java.lang.Object privateEndpoint_ = ""; /** * * *
                                              -     * Output only. This field indicates the maximum data loss limit for an
                                              -     * Autonomous Database, in seconds.
                                              +     * Output only. The private endpoint for the Autonomous Database.
                                                    * 
                                              * - * - * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The localAdgAutoFailoverMaxDataLossLimit. + * @return The privateEndpoint. */ - @java.lang.Override - public int getLocalAdgAutoFailoverMaxDataLossLimit() { - return localAdgAutoFailoverMaxDataLossLimit_; + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
                                              -     * Output only. This field indicates the maximum data loss limit for an
                                              -     * Autonomous Database, in seconds.
                                              +     * Output only. The private endpoint for the Autonomous Database.
                                                    * 
                                              * - * - * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The localAdgAutoFailoverMaxDataLossLimit to set. - * @return This builder for chaining. + * @return The bytes for privateEndpoint. */ - public Builder setLocalAdgAutoFailoverMaxDataLossLimit(int value) { - - localAdgAutoFailoverMaxDataLossLimit_ = value; - bitField1_ |= 0x00000004; - onChanged(); - return this; + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
                                              -     * Output only. This field indicates the maximum data loss limit for an
                                              -     * Autonomous Database, in seconds.
                                              +     * Output only. The private endpoint for the Autonomous Database.
                                                    * 
                                              * - * - * int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * @param value The privateEndpoint to set. * @return This builder for chaining. */ - public Builder clearLocalAdgAutoFailoverMaxDataLossLimit() { - bitField1_ = (bitField1_ & ~0x00000004); - localAdgAutoFailoverMaxDataLossLimit_ = 0; + public Builder setPrivateEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateEndpoint_ = value; + bitField1_ |= 0x00001000; onChanged(); return this; } - private com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary localStandbyDb_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary, - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder, - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder> - localStandbyDbBuilder_; - /** * * *
                                              -     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * Output only. The private endpoint for the Autonomous Database.
                                                    * 
                                              * - * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the localStandbyDb field is set. + * @return This builder for chaining. */ - public boolean hasLocalStandbyDb() { - return ((bitField1_ & 0x00000008) != 0); + public Builder clearPrivateEndpoint() { + privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); + bitField1_ = (bitField1_ & ~0x00001000); + onChanged(); + return this; } /** * * *
                                              -     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * Output only. The private endpoint for the Autonomous Database.
                                                    * 
                                              * - * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The localStandbyDb. + * @param value The bytes for privateEndpoint to set. + * @return This builder for chaining. */ - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary getLocalStandbyDb() { - if (localStandbyDbBuilder_ == null) { - return localStandbyDb_ == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary - .getDefaultInstance() - : localStandbyDb_; - } else { - return localStandbyDbBuilder_.getMessage(); + public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + privateEndpoint_ = value; + bitField1_ |= 0x00001000; + onChanged(); + return this; } + private int refreshableMode_ = 0; + /** * * *
                                              -     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * Output only. The refresh mode of the cloned Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The enum numeric value on the wire for refreshableMode. */ - public Builder setLocalStandbyDb( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary value) { - if (localStandbyDbBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - localStandbyDb_ = value; - } else { - localStandbyDbBuilder_.setMessage(value); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; + @java.lang.Override + public int getRefreshableModeValue() { + return refreshableMode_; } /** * * *
                                              -     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * Output only. The refresh mode of the cloned Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The enum numeric value on the wire for refreshableMode to set. + * @return This builder for chaining. */ - public Builder setLocalStandbyDb( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder - builderForValue) { - if (localStandbyDbBuilder_ == null) { - localStandbyDb_ = builderForValue.build(); - } else { - localStandbyDbBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000008; + public Builder setRefreshableModeValue(int value) { + refreshableMode_ = value; + bitField1_ |= 0x00002000; onChanged(); return this; } @@ -10946,53 +12828,48 @@ public Builder setLocalStandbyDb( * * *
                                              -     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * Output only. The refresh mode of the cloned Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The refreshableMode. */ - public Builder mergeLocalStandbyDb( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary value) { - if (localStandbyDbBuilder_ == null) { - if (((bitField1_ & 0x00000008) != 0) - && localStandbyDb_ != null - && localStandbyDb_ - != com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary - .getDefaultInstance()) { - getLocalStandbyDbBuilder().mergeFrom(value); - } else { - localStandbyDb_ = value; - } - } else { - localStandbyDbBuilder_.mergeFrom(value); - } - if (localStandbyDb_ != null) { - bitField1_ |= 0x00000008; - onChanged(); - } - return this; + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + getRefreshableMode() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode.forNumber( + refreshableMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + .UNRECOGNIZED + : result; } /** * * *
                                              -     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * Output only. The refresh mode of the cloned Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The refreshableMode to set. + * @return This builder for chaining. */ - public Builder clearLocalStandbyDb() { - bitField1_ = (bitField1_ & ~0x00000008); - localStandbyDb_ = null; - if (localStandbyDbBuilder_ != null) { - localStandbyDbBuilder_.dispose(); - localStandbyDbBuilder_ = null; + public Builder setRefreshableMode( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode value) { + if (value == null) { + throw new NullPointerException(); } + bitField1_ |= 0x00002000; + refreshableMode_ = value.getNumber(); onChanged(); return this; } @@ -11001,109 +12878,109 @@ public Builder clearLocalStandbyDb() { * * *
                                              -     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * Output only. The refresh mode of the cloned Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder - getLocalStandbyDbBuilder() { - bitField1_ |= 0x00000008; + public Builder clearRefreshableMode() { + bitField1_ = (bitField1_ & ~0x00002000); + refreshableMode_ = 0; onChanged(); - return getLocalStandbyDbFieldBuilder().getBuilder(); + return this; } + private int refreshableState_ = 0; + /** * * *
                                              -     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * Output only. The refresh State of the clone.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The enum numeric value on the wire for refreshableState. */ - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder - getLocalStandbyDbOrBuilder() { - if (localStandbyDbBuilder_ != null) { - return localStandbyDbBuilder_.getMessageOrBuilder(); - } else { - return localStandbyDb_ == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary - .getDefaultInstance() - : localStandbyDb_; - } + @java.lang.Override + public int getRefreshableStateValue() { + return refreshableState_; } /** * * *
                                              -     * Output only. The details of the Autonomous Data Guard standby database.
                                              +     * Output only. The refresh State of the clone.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The enum numeric value on the wire for refreshableState to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary, - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder, - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder> - getLocalStandbyDbFieldBuilder() { - if (localStandbyDbBuilder_ == null) { - localStandbyDbBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary, - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary.Builder, - com.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryOrBuilder>( - getLocalStandbyDb(), getParentForChildren(), isClean()); - localStandbyDb_ = null; - } - return localStandbyDbBuilder_; + public Builder setRefreshableStateValue(int value) { + refreshableState_ = value; + bitField1_ |= 0x00004000; + onChanged(); + return this; } - private int memoryPerOracleComputeUnitGbs_; - /** * * *
                                              -     * Output only. The amount of memory enabled per ECPU, in gigabytes.
                                              +     * Output only. The refresh State of the clone.
                                                    * 
                                              * * - * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The memoryPerOracleComputeUnitGbs. + * @return The refreshableState. */ @java.lang.Override - public int getMemoryPerOracleComputeUnitGbs() { - return memoryPerOracleComputeUnitGbs_; + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + getRefreshableState() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + .forNumber(refreshableState_); + return result == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + .UNRECOGNIZED + : result; } /** * * *
                                              -     * Output only. The amount of memory enabled per ECPU, in gigabytes.
                                              +     * Output only. The refresh State of the clone.
                                                    * 
                                              * * - * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The memoryPerOracleComputeUnitGbs to set. + * @param value The refreshableState to set. * @return This builder for chaining. */ - public Builder setMemoryPerOracleComputeUnitGbs(int value) { - - memoryPerOracleComputeUnitGbs_ = value; - bitField1_ |= 0x00000010; + public Builder setRefreshableState( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00004000; + refreshableState_ = value.getNumber(); onChanged(); return this; } @@ -11112,61 +12989,59 @@ public Builder setMemoryPerOracleComputeUnitGbs(int value) { * * *
                                              -     * Output only. The amount of memory enabled per ECPU, in gigabytes.
                                              +     * Output only. The refresh State of the clone.
                                                    * 
                                              * * - * int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ - public Builder clearMemoryPerOracleComputeUnitGbs() { - bitField1_ = (bitField1_ & ~0x00000010); - memoryPerOracleComputeUnitGbs_ = 0; + public Builder clearRefreshableState() { + bitField1_ = (bitField1_ & ~0x00004000); + refreshableState_ = 0; onChanged(); return this; } - private int localDisasterRecoveryType_ = 0; + private int role_ = 0; /** * * *
                                              -     * Output only. This field indicates the local disaster recovery (DR) type of
                                              -     * an Autonomous Database.
                                              +     * Output only. The Data Guard role of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The enum numeric value on the wire for localDisasterRecoveryType. + * @return The enum numeric value on the wire for role. */ @java.lang.Override - public int getLocalDisasterRecoveryTypeValue() { - return localDisasterRecoveryType_; + public int getRoleValue() { + return role_; } /** * * *
                                              -     * Output only. This field indicates the local disaster recovery (DR) type of
                                              -     * an Autonomous Database.
                                              +     * Output only. The Data Guard role of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The enum numeric value on the wire for localDisasterRecoveryType to set. + * @param value The enum numeric value on the wire for role to set. * @return This builder for chaining. */ - public Builder setLocalDisasterRecoveryTypeValue(int value) { - localDisasterRecoveryType_ = value; - bitField1_ |= 0x00000020; + public Builder setRoleValue(int value) { + role_ = value; + bitField1_ |= 0x00008000; onChanged(); return this; } @@ -11175,26 +13050,21 @@ public Builder setLocalDisasterRecoveryTypeValue(int value) { * * *
                                              -     * Output only. This field indicates the local disaster recovery (DR) type of
                                              -     * an Autonomous Database.
                                              +     * Output only. The Data Guard role of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The localDisasterRecoveryType. + * @return The role. */ @java.lang.Override - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType - getLocalDisasterRecoveryType() { - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType - result = - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties - .LocalDisasterRecoveryType.forNumber(localDisasterRecoveryType_); + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role getRole() { + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role result = + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.forNumber(role_); return result == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties - .LocalDisasterRecoveryType.UNRECOGNIZED + ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.UNRECOGNIZED : result; } @@ -11202,25 +13072,23 @@ public Builder setLocalDisasterRecoveryTypeValue(int value) { * * *
                                              -     * Output only. This field indicates the local disaster recovery (DR) type of
                                              -     * an Autonomous Database.
                                              +     * Output only. The Data Guard role of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The localDisasterRecoveryType to set. + * @param value The role to set. * @return This builder for chaining. */ - public Builder setLocalDisasterRecoveryType( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType - value) { + public Builder setRole( + com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role value) { if (value == null) { throw new NullPointerException(); } - bitField1_ |= 0x00000020; - localDisasterRecoveryType_ = value.getNumber(); + bitField1_ |= 0x00008000; + role_ = value.getNumber(); onChanged(); return this; } @@ -11229,63 +13097,126 @@ public Builder setLocalDisasterRecoveryType( * * *
                                              -     * Output only. This field indicates the local disaster recovery (DR) type of
                                              -     * an Autonomous Database.
                                              +     * Output only. The Data Guard role of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ - public Builder clearLocalDisasterRecoveryType() { - bitField1_ = (bitField1_ & ~0x00000020); - localDisasterRecoveryType_ = 0; + public Builder clearRole() { + bitField1_ = (bitField1_ & ~0x00008000); + role_ = 0; onChanged(); return this; } - private int dataSafeState_ = 0; + private java.util.List + scheduledOperationDetails_ = java.util.Collections.emptyList(); + + private void ensureScheduledOperationDetailsIsMutable() { + if (!((bitField1_ & 0x00010000) != 0)) { + scheduledOperationDetails_ = + new java.util.ArrayList( + scheduledOperationDetails_); + bitField1_ |= 0x00010000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> + scheduledOperationDetailsBuilder_; /** * * *
                                              -     * Output only. The current state of the Data Safe registration for the
                                              +     * Output only. The list and details of the scheduled operations of the
                                                    * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public java.util.List + getScheduledOperationDetailsList() { + if (scheduledOperationDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(scheduledOperationDetails_); + } else { + return scheduledOperationDetailsBuilder_.getMessageList(); + } + } + + /** * - * @return The enum numeric value on the wire for dataSafeState. + * + *
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public int getDataSafeStateValue() { - return dataSafeState_; + public int getScheduledOperationDetailsCount() { + if (scheduledOperationDetailsBuilder_ == null) { + return scheduledOperationDetails_.size(); + } else { + return scheduledOperationDetailsBuilder_.getCount(); + } } /** * * *
                                              -     * Output only. The current state of the Data Safe registration for the
                                              +     * Output only. The list and details of the scheduled operations of the
                                                    * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails + getScheduledOperationDetails(int index) { + if (scheduledOperationDetailsBuilder_ == null) { + return scheduledOperationDetails_.get(index); + } else { + return scheduledOperationDetailsBuilder_.getMessage(index); + } + } + + /** * - * @param value The enum numeric value on the wire for dataSafeState to set. - * @return This builder for chaining. + * + *
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDataSafeStateValue(int value) { - dataSafeState_ = value; - bitField1_ |= 0x00000040; - onChanged(); + public Builder setScheduledOperationDetails( + int index, com.google.cloud.oracledatabase.v1.ScheduledOperationDetails value) { + if (scheduledOperationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.set(index, value); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.setMessage(index, value); + } return this; } @@ -11293,51 +13224,51 @@ public Builder setDataSafeStateValue(int value) { * * *
                                              -     * Output only. The current state of the Data Safe registration for the
                                              +     * Output only. The list and details of the scheduled operations of the
                                                    * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The dataSafeState. */ - @java.lang.Override - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState - getDataSafeState() { - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState result = - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState.forNumber( - dataSafeState_); - return result == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState - .UNRECOGNIZED - : result; + public Builder setScheduledOperationDetails( + int index, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder builderForValue) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
                                              -     * Output only. The current state of the Data Safe registration for the
                                              +     * Output only. The list and details of the scheduled operations of the
                                                    * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The dataSafeState to set. - * @return This builder for chaining. */ - public Builder setDataSafeState( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState value) { - if (value == null) { - throw new NullPointerException(); + public Builder addScheduledOperationDetails( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails value) { + if (scheduledOperationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.add(value); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addMessage(value); } - bitField1_ |= 0x00000040; - dataSafeState_ = value.getNumber(); - onChanged(); return this; } @@ -11345,63 +13276,75 @@ public Builder setDataSafeState( * * *
                                              -     * Output only. The current state of the Data Safe registration for the
                                              +     * Output only. The list and details of the scheduled operations of the
                                                    * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearDataSafeState() { - bitField1_ = (bitField1_ & ~0x00000040); - dataSafeState_ = 0; - onChanged(); + public Builder addScheduledOperationDetails( + int index, com.google.cloud.oracledatabase.v1.ScheduledOperationDetails value) { + if (scheduledOperationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.add(index, value); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addMessage(index, value); + } return this; } - private int databaseManagementState_ = 0; - /** * * *
                                              -     * Output only. The current state of database management for the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for databaseManagementState. */ - @java.lang.Override - public int getDatabaseManagementStateValue() { - return databaseManagementState_; + public Builder addScheduledOperationDetails( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder builderForValue) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.add(builderForValue.build()); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
                                              -     * Output only. The current state of database management for the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for databaseManagementState to set. - * @return This builder for chaining. */ - public Builder setDatabaseManagementStateValue(int value) { - databaseManagementState_ = value; - bitField1_ |= 0x00000080; - onChanged(); + public Builder addScheduledOperationDetails( + int index, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder builderForValue) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addMessage(index, builderForValue.build()); + } return this; } @@ -11409,53 +13352,47 @@ public Builder setDatabaseManagementStateValue(int value) { * * *
                                              -     * Output only. The current state of database management for the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The databaseManagementState. */ - @java.lang.Override - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState - getDatabaseManagementState() { - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState - result = - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties - .DatabaseManagementState.forNumber(databaseManagementState_); - return result == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState - .UNRECOGNIZED - : result; + public Builder addAllScheduledOperationDetails( + java.lang.Iterable + values) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scheduledOperationDetails_); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.addAllMessages(values); + } + return this; } /** * * *
                                              -     * Output only. The current state of database management for the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The databaseManagementState to set. - * @return This builder for chaining. */ - public Builder setDatabaseManagementState( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState - value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearScheduledOperationDetails() { + if (scheduledOperationDetailsBuilder_ == null) { + scheduledOperationDetails_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00010000); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.clear(); } - bitField1_ |= 0x00000080; - databaseManagementState_ = value.getNumber(); - onChanged(); return this; } @@ -11463,226 +13400,227 @@ public Builder setDatabaseManagementState( * * *
                                              -     * Output only. The current state of database management for the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearDatabaseManagementState() { - bitField1_ = (bitField1_ & ~0x00000080); - databaseManagementState_ = 0; - onChanged(); + public Builder removeScheduledOperationDetails(int index) { + if (scheduledOperationDetailsBuilder_ == null) { + ensureScheduledOperationDetailsIsMutable(); + scheduledOperationDetails_.remove(index); + onChanged(); + } else { + scheduledOperationDetailsBuilder_.remove(index); + } return this; } - private int openMode_ = 0; - /** * * *
                                              -     * Output only. This field indicates the current mode of the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for openMode. */ - @java.lang.Override - public int getOpenModeValue() { - return openMode_; + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder + getScheduledOperationDetailsBuilder(int index) { + return getScheduledOperationDetailsFieldBuilder().getBuilder(index); } /** * * *
                                              -     * Output only. This field indicates the current mode of the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for openMode to set. - * @return This builder for chaining. */ - public Builder setOpenModeValue(int value) { - openMode_ = value; - bitField1_ |= 0x00000100; - onChanged(); - return this; + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder + getScheduledOperationDetailsOrBuilder(int index) { + if (scheduledOperationDetailsBuilder_ == null) { + return scheduledOperationDetails_.get(index); + } else { + return scheduledOperationDetailsBuilder_.getMessageOrBuilder(index); + } } /** * * *
                                              -     * Output only. This field indicates the current mode of the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The openMode. */ - @java.lang.Override - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode getOpenMode() { - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode result = - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode.forNumber( - openMode_); - return result == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode.UNRECOGNIZED - : result; + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> + getScheduledOperationDetailsOrBuilderList() { + if (scheduledOperationDetailsBuilder_ != null) { + return scheduledOperationDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scheduledOperationDetails_); + } } /** * * *
                                              -     * Output only. This field indicates the current mode of the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The openMode to set. - * @return This builder for chaining. */ - public Builder setOpenMode( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00000100; - openMode_ = value.getNumber(); - onChanged(); - return this; + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder + addScheduledOperationDetailsBuilder() { + return getScheduledOperationDetailsFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.getDefaultInstance()); } /** * * *
                                              -     * Output only. This field indicates the current mode of the Autonomous
                                              -     * Database.
                                              +     * Output only. The list and details of the scheduled operations of the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearOpenMode() { - bitField1_ = (bitField1_ & ~0x00000100); - openMode_ = 0; - onChanged(); - return this; + public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder + addScheduledOperationDetailsBuilder(int index) { + return getScheduledOperationDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.getDefaultInstance()); } - private int operationsInsightsState_ = 0; - /** * * *
                                              -     * Output only. This field indicates the state of Operations Insights for the
                                              +     * Output only. The list and details of the scheduled operations of the
                                                    * Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for operationsInsightsState. */ - @java.lang.Override - public int getOperationsInsightsStateValue() { - return operationsInsightsState_; + public java.util.List + getScheduledOperationDetailsBuilderList() { + return getScheduledOperationDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> + getScheduledOperationDetailsFieldBuilder() { + if (scheduledOperationDetailsBuilder_ == null) { + scheduledOperationDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder, + com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder>( + scheduledOperationDetails_, + ((bitField1_ & 0x00010000) != 0), + getParentForChildren(), + isClean()); + scheduledOperationDetails_ = null; + } + return scheduledOperationDetailsBuilder_; } + private java.lang.Object sqlWebDeveloperUrl_ = ""; + /** * * *
                                              -     * Output only. This field indicates the state of Operations Insights for the
                                              -     * Autonomous Database.
                                              +     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                                    * 
                                              * - * - * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The enum numeric value on the wire for operationsInsightsState to set. - * @return This builder for chaining. + * @return The sqlWebDeveloperUrl. */ - public Builder setOperationsInsightsStateValue(int value) { - operationsInsightsState_ = value; - bitField1_ |= 0x00000200; - onChanged(); - return this; + public java.lang.String getSqlWebDeveloperUrl() { + java.lang.Object ref = sqlWebDeveloperUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlWebDeveloperUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
                                              -     * Output only. This field indicates the state of Operations Insights for the
                                              -     * Autonomous Database.
                                              +     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                                    * 
                                              * - * - * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The operationsInsightsState. + * @return The bytes for sqlWebDeveloperUrl. */ - @java.lang.Override - public com.google.cloud.oracledatabase.v1.OperationsInsightsState getOperationsInsightsState() { - com.google.cloud.oracledatabase.v1.OperationsInsightsState result = - com.google.cloud.oracledatabase.v1.OperationsInsightsState.forNumber( - operationsInsightsState_); - return result == null - ? com.google.cloud.oracledatabase.v1.OperationsInsightsState.UNRECOGNIZED - : result; + public com.google.protobuf.ByteString getSqlWebDeveloperUrlBytes() { + java.lang.Object ref = sqlWebDeveloperUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlWebDeveloperUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
                                              -     * Output only. This field indicates the state of Operations Insights for the
                                              -     * Autonomous Database.
                                              +     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                                    * 
                                              * - * - * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The operationsInsightsState to set. + * @param value The sqlWebDeveloperUrl to set. * @return This builder for chaining. */ - public Builder setOperationsInsightsState( - com.google.cloud.oracledatabase.v1.OperationsInsightsState value) { + public Builder setSqlWebDeveloperUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField1_ |= 0x00000200; - operationsInsightsState_ = value.getNumber(); + sqlWebDeveloperUrl_ = value; + bitField1_ |= 0x00020000; onChanged(); return this; } @@ -11691,121 +13629,152 @@ public Builder setOperationsInsightsState( * * *
                                              -     * Output only. This field indicates the state of Operations Insights for the
                                              -     * Autonomous Database.
                                              +     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                                    * 
                                              * - * - * .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearOperationsInsightsState() { - bitField1_ = (bitField1_ & ~0x00000200); - operationsInsightsState_ = 0; + public Builder clearSqlWebDeveloperUrl() { + sqlWebDeveloperUrl_ = getDefaultInstance().getSqlWebDeveloperUrl(); + bitField1_ = (bitField1_ & ~0x00020000); onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList peerDbIds_ = + /** + * + * + *
                                              +     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                              +     * 
                                              + * + * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sqlWebDeveloperUrl to set. + * @return This builder for chaining. + */ + public Builder setSqlWebDeveloperUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlWebDeveloperUrl_ = value; + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList supportedCloneRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePeerDbIdsIsMutable() { - if (!peerDbIds_.isModifiable()) { - peerDbIds_ = new com.google.protobuf.LazyStringArrayList(peerDbIds_); + private void ensureSupportedCloneRegionsIsMutable() { + if (!supportedCloneRegions_.isModifiable()) { + supportedCloneRegions_ = + new com.google.protobuf.LazyStringArrayList(supportedCloneRegions_); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00040000; } /** * * *
                                              -     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              -     * Data Guard remote regions that are associated with the source database.
                                              +     * Output only. The list of available regions that can be used to create a
                                              +     * clone for the Autonomous Database.
                                                    * 
                                              * - * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return A list containing the peerDbIds. + * @return A list containing the supportedCloneRegions. */ - public com.google.protobuf.ProtocolStringList getPeerDbIdsList() { - peerDbIds_.makeImmutable(); - return peerDbIds_; + public com.google.protobuf.ProtocolStringList getSupportedCloneRegionsList() { + supportedCloneRegions_.makeImmutable(); + return supportedCloneRegions_; } /** * * *
                                              -     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              -     * Data Guard remote regions that are associated with the source database.
                                              +     * Output only. The list of available regions that can be used to create a
                                              +     * clone for the Autonomous Database.
                                                    * 
                                              * - * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The count of peerDbIds. + * @return The count of supportedCloneRegions. */ - public int getPeerDbIdsCount() { - return peerDbIds_.size(); + public int getSupportedCloneRegionsCount() { + return supportedCloneRegions_.size(); } /** * * *
                                              -     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              -     * Data Guard remote regions that are associated with the source database.
                                              +     * Output only. The list of available regions that can be used to create a
                                              +     * clone for the Autonomous Database.
                                                    * 
                                              * - * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. - * @return The peerDbIds at the given index. + * @return The supportedCloneRegions at the given index. */ - public java.lang.String getPeerDbIds(int index) { - return peerDbIds_.get(index); + public java.lang.String getSupportedCloneRegions(int index) { + return supportedCloneRegions_.get(index); } /** * * *
                                              -     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              -     * Data Guard remote regions that are associated with the source database.
                                              +     * Output only. The list of available regions that can be used to create a
                                              +     * clone for the Autonomous Database.
                                                    * 
                                              * - * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the value to return. - * @return The bytes of the peerDbIds at the given index. + * @return The bytes of the supportedCloneRegions at the given index. */ - public com.google.protobuf.ByteString getPeerDbIdsBytes(int index) { - return peerDbIds_.getByteString(index); + public com.google.protobuf.ByteString getSupportedCloneRegionsBytes(int index) { + return supportedCloneRegions_.getByteString(index); } /** * * *
                                              -     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              -     * Data Guard remote regions that are associated with the source database.
                                              +     * Output only. The list of available regions that can be used to create a
                                              +     * clone for the Autonomous Database.
                                                    * 
                                              * - * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index to set the value at. - * @param value The peerDbIds to set. + * @param value The supportedCloneRegions to set. * @return This builder for chaining. */ - public Builder setPeerDbIds(int index, java.lang.String value) { + public Builder setSupportedCloneRegions(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensurePeerDbIdsIsMutable(); - peerDbIds_.set(index, value); - bitField1_ |= 0x00000400; + ensureSupportedCloneRegionsIsMutable(); + supportedCloneRegions_.set(index, value); + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -11814,22 +13783,24 @@ public Builder setPeerDbIds(int index, java.lang.String value) { * * *
                                              -     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              -     * Data Guard remote regions that are associated with the source database.
                                              +     * Output only. The list of available regions that can be used to create a
                                              +     * clone for the Autonomous Database.
                                                    * 
                                              * - * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The peerDbIds to add. + * @param value The supportedCloneRegions to add. * @return This builder for chaining. */ - public Builder addPeerDbIds(java.lang.String value) { + public Builder addSupportedCloneRegions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensurePeerDbIdsIsMutable(); - peerDbIds_.add(value); - bitField1_ |= 0x00000400; + ensureSupportedCloneRegionsIsMutable(); + supportedCloneRegions_.add(value); + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -11838,19 +13809,21 @@ public Builder addPeerDbIds(java.lang.String value) { * * *
                                              -     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              -     * Data Guard remote regions that are associated with the source database.
                                              +     * Output only. The list of available regions that can be used to create a
                                              +     * clone for the Autonomous Database.
                                                    * 
                                              * - * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param values The peerDbIds to add. + * @param values The supportedCloneRegions to add. * @return This builder for chaining. */ - public Builder addAllPeerDbIds(java.lang.Iterable values) { - ensurePeerDbIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peerDbIds_); - bitField1_ |= 0x00000400; + public Builder addAllSupportedCloneRegions(java.lang.Iterable values) { + ensureSupportedCloneRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedCloneRegions_); + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -11859,17 +13832,19 @@ public Builder addAllPeerDbIds(java.lang.Iterable values) { * * *
                                              -     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              -     * Data Guard remote regions that are associated with the source database.
                                              +     * Output only. The list of available regions that can be used to create a
                                              +     * clone for the Autonomous Database.
                                                    * 
                                              * - * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ - public Builder clearPeerDbIds() { - peerDbIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x00000400); + public Builder clearSupportedCloneRegions() { + supportedCloneRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField1_ = (bitField1_ & ~0x00040000); ; onChanged(); return this; @@ -11879,114 +13854,65 @@ public Builder clearPeerDbIds() { * * *
                                              -     * Output only. The list of OCIDs of standby databases located in Autonomous
                                              -     * Data Guard remote regions that are associated with the source database.
                                              +     * Output only. The list of available regions that can be used to create a
                                              +     * clone for the Autonomous Database.
                                                    * 
                                              * - * repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The bytes of the peerDbIds to add. + * @param value The bytes of the supportedCloneRegions to add. * @return This builder for chaining. */ - public Builder addPeerDbIdsBytes(com.google.protobuf.ByteString value) { + public Builder addSupportedCloneRegionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensurePeerDbIdsIsMutable(); - peerDbIds_.add(value); - bitField1_ |= 0x00000400; + ensureSupportedCloneRegionsIsMutable(); + supportedCloneRegions_.add(value); + bitField1_ |= 0x00040000; onChanged(); return this; } - private int permissionLevel_ = 0; + private int usedDataStorageSizeTbs_; /** * * *
                                              -     * Output only. The permission level of the Autonomous Database.
                                              +     * Output only. The storage space used by Autonomous Database, in gigabytes.
                                                    * 
                                              * - * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The enum numeric value on the wire for permissionLevel. + * @return The usedDataStorageSizeTbs. */ @java.lang.Override - public int getPermissionLevelValue() { - return permissionLevel_; + public int getUsedDataStorageSizeTbs() { + return usedDataStorageSizeTbs_; } /** * * *
                                              -     * Output only. The permission level of the Autonomous Database.
                                              +     * Output only. The storage space used by Autonomous Database, in gigabytes.
                                                    * 
                                              * - * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The enum numeric value on the wire for permissionLevel to set. + * @param value The usedDataStorageSizeTbs to set. * @return This builder for chaining. */ - public Builder setPermissionLevelValue(int value) { - permissionLevel_ = value; - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - - /** - * - * - *
                                              -     * Output only. The permission level of the Autonomous Database.
                                              -     * 
                                              - * - * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The permissionLevel. - */ - @java.lang.Override - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel - getPermissionLevel() { - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel result = - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel.forNumber( - permissionLevel_); - return result == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel - .UNRECOGNIZED - : result; - } + public Builder setUsedDataStorageSizeTbs(int value) { - /** - * - * - *
                                              -     * Output only. The permission level of the Autonomous Database.
                                              -     * 
                                              - * - * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The permissionLevel to set. - * @return This builder for chaining. - */ - public Builder setPermissionLevel( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00000800; - permissionLevel_ = value.getNumber(); + usedDataStorageSizeTbs_ = value; + bitField1_ |= 0x00080000; onChanged(); return this; } @@ -11995,41 +13921,41 @@ public Builder setPermissionLevel( * * *
                                              -     * Output only. The permission level of the Autonomous Database.
                                              +     * Output only. The storage space used by Autonomous Database, in gigabytes.
                                                    * 
                                              * - * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ - public Builder clearPermissionLevel() { - bitField1_ = (bitField1_ & ~0x00000800); - permissionLevel_ = 0; + public Builder clearUsedDataStorageSizeTbs() { + bitField1_ = (bitField1_ & ~0x00080000); + usedDataStorageSizeTbs_ = 0; onChanged(); return this; } - private java.lang.Object privateEndpoint_ = ""; + private java.lang.Object ociUrl_ = ""; /** * * *
                                              -     * Output only. The private endpoint for the Autonomous Database.
                                              +     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              +     * Database.
                                                    * 
                                              * - * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The privateEndpoint. + * @return The ociUrl. */ - public java.lang.String getPrivateEndpoint() { - java.lang.Object ref = privateEndpoint_; + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - privateEndpoint_ = s; + ociUrl_ = s; return s; } else { return (java.lang.String) ref; @@ -12040,19 +13966,20 @@ public java.lang.String getPrivateEndpoint() { * * *
                                              -     * Output only. The private endpoint for the Autonomous Database.
                                              +     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              +     * Database.
                                                    * 
                                              * - * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for privateEndpoint. + * @return The bytes for ociUrl. */ - public com.google.protobuf.ByteString getPrivateEndpointBytes() { - java.lang.Object ref = privateEndpoint_; + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - privateEndpoint_ = b; + ociUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -12063,20 +13990,21 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * * *
                                              -     * Output only. The private endpoint for the Autonomous Database.
                                              +     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              +     * Database.
                                                    * 
                                              * - * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The privateEndpoint to set. + * @param value The ociUrl to set. * @return This builder for chaining. */ - public Builder setPrivateEndpoint(java.lang.String value) { + public Builder setOciUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - privateEndpoint_ = value; - bitField1_ |= 0x00001000; + ociUrl_ = value; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -12085,16 +14013,17 @@ public Builder setPrivateEndpoint(java.lang.String value) { * * *
                                              -     * Output only. The private endpoint for the Autonomous Database.
                                              +     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              +     * Database.
                                                    * 
                                              * - * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearPrivateEndpoint() { - privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); - bitField1_ = (bitField1_ & ~0x00001000); + public Builder clearOciUrl() { + ociUrl_ = getDefaultInstance().getOciUrl(); + bitField1_ = (bitField1_ & ~0x00100000); onChanged(); return this; } @@ -12103,173 +14032,159 @@ public Builder clearPrivateEndpoint() { * * *
                                              -     * Output only. The private endpoint for the Autonomous Database.
                                              +     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              +     * Database.
                                                    * 
                                              * - * string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for privateEndpoint to set. + * @param value The bytes for ociUrl to set. * @return This builder for chaining. */ - public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { + public Builder setOciUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - privateEndpoint_ = value; - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - - private int refreshableMode_ = 0; - - /** - * - * - *
                                              -     * Output only. The refresh mode of the cloned Autonomous Database.
                                              -     * 
                                              - * - * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for refreshableMode. - */ - @java.lang.Override - public int getRefreshableModeValue() { - return refreshableMode_; + ociUrl_ = value; + bitField1_ |= 0x00100000; + onChanged(); + return this; } + private float totalAutoBackupStorageSizeGbs_; + /** * * *
                                              -     * Output only. The refresh mode of the cloned Autonomous Database.
                                              +     * Output only. The storage space used by automatic backups of Autonomous
                                              +     * Database, in gigabytes.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The enum numeric value on the wire for refreshableMode to set. - * @return This builder for chaining. + * @return The totalAutoBackupStorageSizeGbs. */ - public Builder setRefreshableModeValue(int value) { - refreshableMode_ = value; - bitField1_ |= 0x00002000; - onChanged(); - return this; + @java.lang.Override + public float getTotalAutoBackupStorageSizeGbs() { + return totalAutoBackupStorageSizeGbs_; } /** * * *
                                              -     * Output only. The refresh mode of the cloned Autonomous Database.
                                              +     * Output only. The storage space used by automatic backups of Autonomous
                                              +     * Database, in gigabytes.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The refreshableMode. + * @param value The totalAutoBackupStorageSizeGbs to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode - getRefreshableMode() { - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode result = - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode.forNumber( - refreshableMode_); - return result == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode - .UNRECOGNIZED - : result; + public Builder setTotalAutoBackupStorageSizeGbs(float value) { + + totalAutoBackupStorageSizeGbs_ = value; + bitField1_ |= 0x00200000; + onChanged(); + return this; } /** * * *
                                              -     * Output only. The refresh mode of the cloned Autonomous Database.
                                              +     * Output only. The storage space used by automatic backups of Autonomous
                                              +     * Database, in gigabytes.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The refreshableMode to set. * @return This builder for chaining. */ - public Builder setRefreshableMode( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00002000; - refreshableMode_ = value.getNumber(); + public Builder clearTotalAutoBackupStorageSizeGbs() { + bitField1_ = (bitField1_ & ~0x00200000); + totalAutoBackupStorageSizeGbs_ = 0F; onChanged(); return this; } + private com.google.protobuf.Timestamp nextLongTermBackupTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextLongTermBackupTimeBuilder_; + /** * * *
                                              -     * Output only. The refresh mode of the cloned Autonomous Database.
                                              +     * Output only. The long term backup schedule of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return This builder for chaining. + * @return Whether the nextLongTermBackupTime field is set. */ - public Builder clearRefreshableMode() { - bitField1_ = (bitField1_ & ~0x00002000); - refreshableMode_ = 0; - onChanged(); - return this; + public boolean hasNextLongTermBackupTime() { + return ((bitField1_ & 0x00400000) != 0); } - private int refreshableState_ = 0; - /** * * *
                                              -     * Output only. The refresh State of the clone.
                                              +     * Output only. The long term backup schedule of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The enum numeric value on the wire for refreshableState. + * @return The nextLongTermBackupTime. */ - @java.lang.Override - public int getRefreshableStateValue() { - return refreshableState_; + public com.google.protobuf.Timestamp getNextLongTermBackupTime() { + if (nextLongTermBackupTimeBuilder_ == null) { + return nextLongTermBackupTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextLongTermBackupTime_; + } else { + return nextLongTermBackupTimeBuilder_.getMessage(); + } } /** * * *
                                              -     * Output only. The refresh State of the clone.
                                              +     * Output only. The long term backup schedule of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for refreshableState to set. - * @return This builder for chaining. */ - public Builder setRefreshableStateValue(int value) { - refreshableState_ = value; - bitField1_ |= 0x00004000; + public Builder setNextLongTermBackupTime(com.google.protobuf.Timestamp value) { + if (nextLongTermBackupTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextLongTermBackupTime_ = value; + } else { + nextLongTermBackupTimeBuilder_.setMessage(value); + } + bitField1_ |= 0x00400000; onChanged(); return this; } @@ -12278,49 +14193,52 @@ public Builder setRefreshableStateValue(int value) { * * *
                                              -     * Output only. The refresh State of the clone.
                                              +     * Output only. The long term backup schedule of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The refreshableState. */ - @java.lang.Override - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState - getRefreshableState() { - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState result = - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState - .forNumber(refreshableState_); - return result == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState - .UNRECOGNIZED - : result; + public Builder setNextLongTermBackupTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (nextLongTermBackupTimeBuilder_ == null) { + nextLongTermBackupTime_ = builderForValue.build(); + } else { + nextLongTermBackupTimeBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00400000; + onChanged(); + return this; } /** * * *
                                              -     * Output only. The refresh State of the clone.
                                              +     * Output only. The long term backup schedule of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The refreshableState to set. - * @return This builder for chaining. */ - public Builder setRefreshableState( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeNextLongTermBackupTime(com.google.protobuf.Timestamp value) { + if (nextLongTermBackupTimeBuilder_ == null) { + if (((bitField1_ & 0x00400000) != 0) + && nextLongTermBackupTime_ != null + && nextLongTermBackupTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getNextLongTermBackupTimeBuilder().mergeFrom(value); + } else { + nextLongTermBackupTime_ = value; + } + } else { + nextLongTermBackupTimeBuilder_.mergeFrom(value); + } + if (nextLongTermBackupTime_ != null) { + bitField1_ |= 0x00400000; + onChanged(); } - bitField1_ |= 0x00004000; - refreshableState_ = value.getNumber(); - onChanged(); return this; } @@ -12328,234 +14246,240 @@ public Builder setRefreshableState( * * *
                                              -     * Output only. The refresh State of the clone.
                                              +     * Output only. The long term backup schedule of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearRefreshableState() { - bitField1_ = (bitField1_ & ~0x00004000); - refreshableState_ = 0; + public Builder clearNextLongTermBackupTime() { + bitField1_ = (bitField1_ & ~0x00400000); + nextLongTermBackupTime_ = null; + if (nextLongTermBackupTimeBuilder_ != null) { + nextLongTermBackupTimeBuilder_.dispose(); + nextLongTermBackupTimeBuilder_ = null; + } onChanged(); return this; } - private int role_ = 0; - /** * * *
                                              -     * Output only. The Data Guard role of the Autonomous Database.
                                              +     * Output only. The long term backup schedule of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for role. */ - @java.lang.Override - public int getRoleValue() { - return role_; + public com.google.protobuf.Timestamp.Builder getNextLongTermBackupTimeBuilder() { + bitField1_ |= 0x00400000; + onChanged(); + return getNextLongTermBackupTimeFieldBuilder().getBuilder(); } /** * * *
                                              -     * Output only. The Data Guard role of the Autonomous Database.
                                              +     * Output only. The long term backup schedule of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for role to set. - * @return This builder for chaining. */ - public Builder setRoleValue(int value) { - role_ = value; - bitField1_ |= 0x00008000; - onChanged(); - return this; + public com.google.protobuf.TimestampOrBuilder getNextLongTermBackupTimeOrBuilder() { + if (nextLongTermBackupTimeBuilder_ != null) { + return nextLongTermBackupTimeBuilder_.getMessageOrBuilder(); + } else { + return nextLongTermBackupTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextLongTermBackupTime_; + } } /** * * *
                                              -     * Output only. The Data Guard role of the Autonomous Database.
                                              +     * Output only. The long term backup schedule of the Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The role. */ - @java.lang.Override - public com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role getRole() { - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role result = - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.forNumber(role_); - return result == null - ? com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role.UNRECOGNIZED - : result; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getNextLongTermBackupTimeFieldBuilder() { + if (nextLongTermBackupTimeBuilder_ == null) { + nextLongTermBackupTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextLongTermBackupTime(), getParentForChildren(), isClean()); + nextLongTermBackupTime_ = null; + } + return nextLongTermBackupTimeBuilder_; } + private com.google.protobuf.Timestamp dataGuardRoleChangedTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dataGuardRoleChangedTimeBuilder_; + /** * * *
                                              -     * Output only. The Data Guard role of the Autonomous Database.
                                              +     * Output only. The date and time the Autonomous Data Guard role was changed
                                              +     * for the standby Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The role to set. - * @return This builder for chaining. + * @return Whether the dataGuardRoleChangedTime field is set. */ - public Builder setRole( - com.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00008000; - role_ = value.getNumber(); - onChanged(); - return this; + public boolean hasDataGuardRoleChangedTime() { + return ((bitField1_ & 0x00800000) != 0); } /** * * *
                                              -     * Output only. The Data Guard role of the Autonomous Database.
                                              +     * Output only. The date and time the Autonomous Data Guard role was changed
                                              +     * for the standby Autonomous Database.
                                                    * 
                                              * * - * .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return This builder for chaining. + * @return The dataGuardRoleChangedTime. */ - public Builder clearRole() { - bitField1_ = (bitField1_ & ~0x00008000); - role_ = 0; - onChanged(); - return this; - } - - private java.util.List - scheduledOperationDetails_ = java.util.Collections.emptyList(); - - private void ensureScheduledOperationDetailsIsMutable() { - if (!((bitField1_ & 0x00010000) != 0)) { - scheduledOperationDetails_ = - new java.util.ArrayList( - scheduledOperationDetails_); - bitField1_ |= 0x00010000; + public com.google.protobuf.Timestamp getDataGuardRoleChangedTime() { + if (dataGuardRoleChangedTimeBuilder_ == null) { + return dataGuardRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataGuardRoleChangedTime_; + } else { + return dataGuardRoleChangedTimeBuilder_.getMessage(); } } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails, - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder, - com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> - scheduledOperationDetailsBuilder_; - /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Autonomous Data Guard role was changed
                                              +     * for the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getScheduledOperationDetailsList() { - if (scheduledOperationDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(scheduledOperationDetails_); + public Builder setDataGuardRoleChangedTime(com.google.protobuf.Timestamp value) { + if (dataGuardRoleChangedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataGuardRoleChangedTime_ = value; } else { - return scheduledOperationDetailsBuilder_.getMessageList(); + dataGuardRoleChangedTimeBuilder_.setMessage(value); } + bitField1_ |= 0x00800000; + onChanged(); + return this; } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Autonomous Data Guard role was changed
                                              +     * for the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public int getScheduledOperationDetailsCount() { - if (scheduledOperationDetailsBuilder_ == null) { - return scheduledOperationDetails_.size(); + public Builder setDataGuardRoleChangedTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (dataGuardRoleChangedTimeBuilder_ == null) { + dataGuardRoleChangedTime_ = builderForValue.build(); } else { - return scheduledOperationDetailsBuilder_.getCount(); + dataGuardRoleChangedTimeBuilder_.setMessage(builderForValue.build()); } + bitField1_ |= 0x00800000; + onChanged(); + return this; } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Autonomous Data Guard role was changed
                                              +     * for the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails - getScheduledOperationDetails(int index) { - if (scheduledOperationDetailsBuilder_ == null) { - return scheduledOperationDetails_.get(index); + public Builder mergeDataGuardRoleChangedTime(com.google.protobuf.Timestamp value) { + if (dataGuardRoleChangedTimeBuilder_ == null) { + if (((bitField1_ & 0x00800000) != 0) + && dataGuardRoleChangedTime_ != null + && dataGuardRoleChangedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDataGuardRoleChangedTimeBuilder().mergeFrom(value); + } else { + dataGuardRoleChangedTime_ = value; + } } else { - return scheduledOperationDetailsBuilder_.getMessage(index); + dataGuardRoleChangedTimeBuilder_.mergeFrom(value); } + if (dataGuardRoleChangedTime_ != null) { + bitField1_ |= 0x00800000; + onChanged(); + } + return this; } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Autonomous Data Guard role was changed
                                              +     * for the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setScheduledOperationDetails( - int index, com.google.cloud.oracledatabase.v1.ScheduledOperationDetails value) { - if (scheduledOperationDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureScheduledOperationDetailsIsMutable(); - scheduledOperationDetails_.set(index, value); - onChanged(); - } else { - scheduledOperationDetailsBuilder_.setMessage(index, value); + public Builder clearDataGuardRoleChangedTime() { + bitField1_ = (bitField1_ & ~0x00800000); + dataGuardRoleChangedTime_ = null; + if (dataGuardRoleChangedTimeBuilder_ != null) { + dataGuardRoleChangedTimeBuilder_.dispose(); + dataGuardRoleChangedTimeBuilder_ = null; } + onChanged(); return this; } @@ -12563,152 +14487,143 @@ public Builder setScheduledOperationDetails( * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Autonomous Data Guard role was changed
                                              +     * for the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setScheduledOperationDetails( - int index, - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder builderForValue) { - if (scheduledOperationDetailsBuilder_ == null) { - ensureScheduledOperationDetailsIsMutable(); - scheduledOperationDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - scheduledOperationDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + public com.google.protobuf.Timestamp.Builder getDataGuardRoleChangedTimeBuilder() { + bitField1_ |= 0x00800000; + onChanged(); + return getDataGuardRoleChangedTimeFieldBuilder().getBuilder(); } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Autonomous Data Guard role was changed
                                              +     * for the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addScheduledOperationDetails( - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails value) { - if (scheduledOperationDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureScheduledOperationDetailsIsMutable(); - scheduledOperationDetails_.add(value); - onChanged(); + public com.google.protobuf.TimestampOrBuilder getDataGuardRoleChangedTimeOrBuilder() { + if (dataGuardRoleChangedTimeBuilder_ != null) { + return dataGuardRoleChangedTimeBuilder_.getMessageOrBuilder(); } else { - scheduledOperationDetailsBuilder_.addMessage(value); + return dataGuardRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataGuardRoleChangedTime_; } - return this; } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Autonomous Data Guard role was changed
                                              +     * for the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addScheduledOperationDetails( - int index, com.google.cloud.oracledatabase.v1.ScheduledOperationDetails value) { - if (scheduledOperationDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureScheduledOperationDetailsIsMutable(); - scheduledOperationDetails_.add(index, value); - onChanged(); - } else { - scheduledOperationDetailsBuilder_.addMessage(index, value); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDataGuardRoleChangedTimeFieldBuilder() { + if (dataGuardRoleChangedTimeBuilder_ == null) { + dataGuardRoleChangedTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDataGuardRoleChangedTime(), getParentForChildren(), isClean()); + dataGuardRoleChangedTime_ = null; } - return this; + return dataGuardRoleChangedTimeBuilder_; } + private com.google.protobuf.Timestamp disasterRecoveryRoleChangedTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + disasterRecoveryRoleChangedTimeBuilder_; + /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Disaster Recovery role was changed for
                                              +     * the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the disasterRecoveryRoleChangedTime field is set. */ - public Builder addScheduledOperationDetails( - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder builderForValue) { - if (scheduledOperationDetailsBuilder_ == null) { - ensureScheduledOperationDetailsIsMutable(); - scheduledOperationDetails_.add(builderForValue.build()); - onChanged(); - } else { - scheduledOperationDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; + public boolean hasDisasterRecoveryRoleChangedTime() { + return ((bitField1_ & 0x01000000) != 0); } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Disaster Recovery role was changed for
                                              +     * the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The disasterRecoveryRoleChangedTime. */ - public Builder addScheduledOperationDetails( - int index, - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder builderForValue) { - if (scheduledOperationDetailsBuilder_ == null) { - ensureScheduledOperationDetailsIsMutable(); - scheduledOperationDetails_.add(index, builderForValue.build()); - onChanged(); + public com.google.protobuf.Timestamp getDisasterRecoveryRoleChangedTime() { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + return disasterRecoveryRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : disasterRecoveryRoleChangedTime_; } else { - scheduledOperationDetailsBuilder_.addMessage(index, builderForValue.build()); + return disasterRecoveryRoleChangedTimeBuilder_.getMessage(); } - return this; } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Disaster Recovery role was changed for
                                              +     * the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addAllScheduledOperationDetails( - java.lang.Iterable - values) { - if (scheduledOperationDetailsBuilder_ == null) { - ensureScheduledOperationDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scheduledOperationDetails_); - onChanged(); + public Builder setDisasterRecoveryRoleChangedTime(com.google.protobuf.Timestamp value) { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + disasterRecoveryRoleChangedTime_ = value; } else { - scheduledOperationDetailsBuilder_.addAllMessages(values); + disasterRecoveryRoleChangedTimeBuilder_.setMessage(value); } + bitField1_ |= 0x01000000; + onChanged(); return this; } @@ -12716,22 +14631,23 @@ public Builder addAllScheduledOperationDetails( * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Disaster Recovery role was changed for
                                              +     * the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearScheduledOperationDetails() { - if (scheduledOperationDetailsBuilder_ == null) { - scheduledOperationDetails_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00010000); - onChanged(); + public Builder setDisasterRecoveryRoleChangedTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + disasterRecoveryRoleChangedTime_ = builderForValue.build(); } else { - scheduledOperationDetailsBuilder_.clear(); + disasterRecoveryRoleChangedTimeBuilder_.setMessage(builderForValue.build()); } + bitField1_ |= 0x01000000; + onChanged(); return this; } @@ -12739,21 +14655,30 @@ public Builder clearScheduledOperationDetails() { * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Disaster Recovery role was changed for
                                              +     * the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeScheduledOperationDetails(int index) { - if (scheduledOperationDetailsBuilder_ == null) { - ensureScheduledOperationDetailsIsMutable(); - scheduledOperationDetails_.remove(index); - onChanged(); + public Builder mergeDisasterRecoveryRoleChangedTime(com.google.protobuf.Timestamp value) { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + if (((bitField1_ & 0x01000000) != 0) + && disasterRecoveryRoleChangedTime_ != null + && disasterRecoveryRoleChangedTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDisasterRecoveryRoleChangedTimeBuilder().mergeFrom(value); + } else { + disasterRecoveryRoleChangedTime_ = value; + } } else { - scheduledOperationDetailsBuilder_.remove(index); + disasterRecoveryRoleChangedTimeBuilder_.mergeFrom(value); + } + if (disasterRecoveryRoleChangedTime_ != null) { + bitField1_ |= 0x01000000; + onChanged(); } return this; } @@ -12762,59 +14687,62 @@ public Builder removeScheduledOperationDetails(int index) { * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Disaster Recovery role was changed for
                                              +     * the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder - getScheduledOperationDetailsBuilder(int index) { - return getScheduledOperationDetailsFieldBuilder().getBuilder(index); + public Builder clearDisasterRecoveryRoleChangedTime() { + bitField1_ = (bitField1_ & ~0x01000000); + disasterRecoveryRoleChangedTime_ = null; + if (disasterRecoveryRoleChangedTimeBuilder_ != null) { + disasterRecoveryRoleChangedTimeBuilder_.dispose(); + disasterRecoveryRoleChangedTimeBuilder_ = null; + } + onChanged(); + return this; } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              -     * 
                                              - * - * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder - getScheduledOperationDetailsOrBuilder(int index) { - if (scheduledOperationDetailsBuilder_ == null) { - return scheduledOperationDetails_.get(index); - } else { - return scheduledOperationDetailsBuilder_.getMessageOrBuilder(index); - } + * Output only. The date and time the Disaster Recovery role was changed for + * the standby Autonomous Database. + * + * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDisasterRecoveryRoleChangedTimeBuilder() { + bitField1_ |= 0x01000000; + onChanged(); + return getDisasterRecoveryRoleChangedTimeFieldBuilder().getBuilder(); } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Disaster Recovery role was changed for
                                              +     * the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List< - ? extends com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> - getScheduledOperationDetailsOrBuilderList() { - if (scheduledOperationDetailsBuilder_ != null) { - return scheduledOperationDetailsBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.TimestampOrBuilder getDisasterRecoveryRoleChangedTimeOrBuilder() { + if (disasterRecoveryRoleChangedTimeBuilder_ != null) { + return disasterRecoveryRoleChangedTimeBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(scheduledOperationDetails_); + return disasterRecoveryRoleChangedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : disasterRecoveryRoleChangedTime_; } } @@ -12822,145 +14750,152 @@ public Builder removeScheduledOperationDetails(int index) { * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time the Disaster Recovery role was changed for
                                              +     * the standby Autonomous Database.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder - addScheduledOperationDetailsBuilder() { - return getScheduledOperationDetailsFieldBuilder() - .addBuilder( - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.getDefaultInstance()); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDisasterRecoveryRoleChangedTimeFieldBuilder() { + if (disasterRecoveryRoleChangedTimeBuilder_ == null) { + disasterRecoveryRoleChangedTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDisasterRecoveryRoleChangedTime(), getParentForChildren(), isClean()); + disasterRecoveryRoleChangedTime_ = null; + } + return disasterRecoveryRoleChangedTimeBuilder_; } + private com.google.protobuf.Timestamp maintenanceBeginTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + maintenanceBeginTimeBuilder_; + /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time when maintenance will begin.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the maintenanceBeginTime field is set. */ - public com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder - addScheduledOperationDetailsBuilder(int index) { - return getScheduledOperationDetailsFieldBuilder() - .addBuilder( - index, - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.getDefaultInstance()); + public boolean hasMaintenanceBeginTime() { + return ((bitField1_ & 0x02000000) != 0); } /** * * *
                                              -     * Output only. The list and details of the scheduled operations of the
                                              -     * Autonomous Database.
                                              +     * Output only. The date and time when maintenance will begin.
                                                    * 
                                              * * - * repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The maintenanceBeginTime. */ - public java.util.List - getScheduledOperationDetailsBuilderList() { - return getScheduledOperationDetailsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails, - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder, - com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder> - getScheduledOperationDetailsFieldBuilder() { - if (scheduledOperationDetailsBuilder_ == null) { - scheduledOperationDetailsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails, - com.google.cloud.oracledatabase.v1.ScheduledOperationDetails.Builder, - com.google.cloud.oracledatabase.v1.ScheduledOperationDetailsOrBuilder>( - scheduledOperationDetails_, - ((bitField1_ & 0x00010000) != 0), - getParentForChildren(), - isClean()); - scheduledOperationDetails_ = null; + public com.google.protobuf.Timestamp getMaintenanceBeginTime() { + if (maintenanceBeginTimeBuilder_ == null) { + return maintenanceBeginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceBeginTime_; + } else { + return maintenanceBeginTimeBuilder_.getMessage(); } - return scheduledOperationDetailsBuilder_; } - private java.lang.Object sqlWebDeveloperUrl_ = ""; - /** * * *
                                              -     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will begin.
                                                    * 
                                              * - * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sqlWebDeveloperUrl. + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getSqlWebDeveloperUrl() { - java.lang.Object ref = sqlWebDeveloperUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sqlWebDeveloperUrl_ = s; - return s; + public Builder setMaintenanceBeginTime(com.google.protobuf.Timestamp value) { + if (maintenanceBeginTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenanceBeginTime_ = value; } else { - return (java.lang.String) ref; + maintenanceBeginTimeBuilder_.setMessage(value); } + bitField1_ |= 0x02000000; + onChanged(); + return this; } /** * * *
                                              -     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will begin.
                                                    * 
                                              * - * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for sqlWebDeveloperUrl. + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getSqlWebDeveloperUrlBytes() { - java.lang.Object ref = sqlWebDeveloperUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - sqlWebDeveloperUrl_ = b; - return b; + public Builder setMaintenanceBeginTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (maintenanceBeginTimeBuilder_ == null) { + maintenanceBeginTime_ = builderForValue.build(); } else { - return (com.google.protobuf.ByteString) ref; + maintenanceBeginTimeBuilder_.setMessage(builderForValue.build()); } + bitField1_ |= 0x02000000; + onChanged(); + return this; } /** * * *
                                              -     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will begin.
                                                    * 
                                              * - * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The sqlWebDeveloperUrl to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSqlWebDeveloperUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeMaintenanceBeginTime(com.google.protobuf.Timestamp value) { + if (maintenanceBeginTimeBuilder_ == null) { + if (((bitField1_ & 0x02000000) != 0) + && maintenanceBeginTime_ != null + && maintenanceBeginTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMaintenanceBeginTimeBuilder().mergeFrom(value); + } else { + maintenanceBeginTime_ = value; + } + } else { + maintenanceBeginTimeBuilder_.mergeFrom(value); + } + if (maintenanceBeginTime_ != null) { + bitField1_ |= 0x02000000; + onChanged(); } - sqlWebDeveloperUrl_ = value; - bitField1_ |= 0x00020000; - onChanged(); return this; } @@ -12968,16 +14903,20 @@ public Builder setSqlWebDeveloperUrl(java.lang.String value) { * * *
                                              -     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will begin.
                                                    * 
                                              * - * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearSqlWebDeveloperUrl() { - sqlWebDeveloperUrl_ = getDefaultInstance().getSqlWebDeveloperUrl(); - bitField1_ = (bitField1_ & ~0x00020000); + public Builder clearMaintenanceBeginTime() { + bitField1_ = (bitField1_ & ~0x02000000); + maintenanceBeginTime_ = null; + if (maintenanceBeginTimeBuilder_ != null) { + maintenanceBeginTimeBuilder_.dispose(); + maintenanceBeginTimeBuilder_ = null; + } onChanged(); return this; } @@ -12986,134 +14925,136 @@ public Builder clearSqlWebDeveloperUrl() { * * *
                                              -     * Output only. The SQL Web Developer URL for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will begin.
                                                    * 
                                              * - * string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for sqlWebDeveloperUrl to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSqlWebDeveloperUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - sqlWebDeveloperUrl_ = value; - bitField1_ |= 0x00020000; + public com.google.protobuf.Timestamp.Builder getMaintenanceBeginTimeBuilder() { + bitField1_ |= 0x02000000; onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList supportedCloneRegions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureSupportedCloneRegionsIsMutable() { - if (!supportedCloneRegions_.isModifiable()) { - supportedCloneRegions_ = - new com.google.protobuf.LazyStringArrayList(supportedCloneRegions_); - } - bitField1_ |= 0x00040000; + return getMaintenanceBeginTimeFieldBuilder().getBuilder(); } /** * * *
                                              -     * Output only. The list of available regions that can be used to create a
                                              -     * clone for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will begin.
                                                    * 
                                              * * - * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return A list containing the supportedCloneRegions. */ - public com.google.protobuf.ProtocolStringList getSupportedCloneRegionsList() { - supportedCloneRegions_.makeImmutable(); - return supportedCloneRegions_; + public com.google.protobuf.TimestampOrBuilder getMaintenanceBeginTimeOrBuilder() { + if (maintenanceBeginTimeBuilder_ != null) { + return maintenanceBeginTimeBuilder_.getMessageOrBuilder(); + } else { + return maintenanceBeginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceBeginTime_; + } } /** * * *
                                              -     * Output only. The list of available regions that can be used to create a
                                              -     * clone for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will begin.
                                                    * 
                                              * * - * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The count of supportedCloneRegions. */ - public int getSupportedCloneRegionsCount() { - return supportedCloneRegions_.size(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getMaintenanceBeginTimeFieldBuilder() { + if (maintenanceBeginTimeBuilder_ == null) { + maintenanceBeginTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMaintenanceBeginTime(), getParentForChildren(), isClean()); + maintenanceBeginTime_ = null; + } + return maintenanceBeginTimeBuilder_; } + private com.google.protobuf.Timestamp maintenanceEndTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + maintenanceEndTimeBuilder_; + /** * * *
                                              -     * Output only. The list of available regions that can be used to create a
                                              -     * clone for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will end.
                                                    * 
                                              * * - * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param index The index of the element to return. - * @return The supportedCloneRegions at the given index. + * @return Whether the maintenanceEndTime field is set. */ - public java.lang.String getSupportedCloneRegions(int index) { - return supportedCloneRegions_.get(index); + public boolean hasMaintenanceEndTime() { + return ((bitField1_ & 0x04000000) != 0); } /** * * *
                                              -     * Output only. The list of available regions that can be used to create a
                                              -     * clone for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will end.
                                                    * 
                                              * * - * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param index The index of the value to return. - * @return The bytes of the supportedCloneRegions at the given index. + * @return The maintenanceEndTime. */ - public com.google.protobuf.ByteString getSupportedCloneRegionsBytes(int index) { - return supportedCloneRegions_.getByteString(index); + public com.google.protobuf.Timestamp getMaintenanceEndTime() { + if (maintenanceEndTimeBuilder_ == null) { + return maintenanceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceEndTime_; + } else { + return maintenanceEndTimeBuilder_.getMessage(); + } } /** * * *
                                              -     * Output only. The list of available regions that can be used to create a
                                              -     * clone for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will end.
                                                    * 
                                              * * - * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param index The index to set the value at. - * @param value The supportedCloneRegions to set. - * @return This builder for chaining. */ - public Builder setSupportedCloneRegions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setMaintenanceEndTime(com.google.protobuf.Timestamp value) { + if (maintenanceEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenanceEndTime_ = value; + } else { + maintenanceEndTimeBuilder_.setMessage(value); } - ensureSupportedCloneRegionsIsMutable(); - supportedCloneRegions_.set(index, value); - bitField1_ |= 0x00040000; + bitField1_ |= 0x04000000; onChanged(); return this; } @@ -13122,24 +15063,20 @@ public Builder setSupportedCloneRegions(int index, java.lang.String value) { * * *
                                              -     * Output only. The list of available regions that can be used to create a
                                              -     * clone for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will end.
                                                    * 
                                              * * - * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The supportedCloneRegions to add. - * @return This builder for chaining. */ - public Builder addSupportedCloneRegions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setMaintenanceEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (maintenanceEndTimeBuilder_ == null) { + maintenanceEndTime_ = builderForValue.build(); + } else { + maintenanceEndTimeBuilder_.setMessage(builderForValue.build()); } - ensureSupportedCloneRegionsIsMutable(); - supportedCloneRegions_.add(value); - bitField1_ |= 0x00040000; + bitField1_ |= 0x04000000; onChanged(); return this; } @@ -13148,22 +15085,29 @@ public Builder addSupportedCloneRegions(java.lang.String value) { * * *
                                              -     * Output only. The list of available regions that can be used to create a
                                              -     * clone for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will end.
                                                    * 
                                              * * - * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param values The supportedCloneRegions to add. - * @return This builder for chaining. */ - public Builder addAllSupportedCloneRegions(java.lang.Iterable values) { - ensureSupportedCloneRegionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedCloneRegions_); - bitField1_ |= 0x00040000; - onChanged(); + public Builder mergeMaintenanceEndTime(com.google.protobuf.Timestamp value) { + if (maintenanceEndTimeBuilder_ == null) { + if (((bitField1_ & 0x04000000) != 0) + && maintenanceEndTime_ != null + && maintenanceEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMaintenanceEndTimeBuilder().mergeFrom(value); + } else { + maintenanceEndTime_ = value; + } + } else { + maintenanceEndTimeBuilder_.mergeFrom(value); + } + if (maintenanceEndTime_ != null) { + bitField1_ |= 0x04000000; + onChanged(); + } return this; } @@ -13171,20 +15115,20 @@ public Builder addAllSupportedCloneRegions(java.lang.Iterable * * *
                                              -     * Output only. The list of available regions that can be used to create a
                                              -     * clone for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will end.
                                                    * 
                                              * * - * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearSupportedCloneRegions() { - supportedCloneRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x00040000); - ; + public Builder clearMaintenanceEndTime() { + bitField1_ = (bitField1_ & ~0x04000000); + maintenanceEndTime_ = null; + if (maintenanceEndTimeBuilder_ != null) { + maintenanceEndTimeBuilder_.dispose(); + maintenanceEndTimeBuilder_ = null; + } onChanged(); return this; } @@ -13193,176 +15137,161 @@ public Builder clearSupportedCloneRegions() { * * *
                                              -     * Output only. The list of available regions that can be used to create a
                                              -     * clone for the Autonomous Database.
                                              +     * Output only. The date and time when maintenance will end.
                                                    * 
                                              * * - * repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The bytes of the supportedCloneRegions to add. - * @return This builder for chaining. */ - public Builder addSupportedCloneRegionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSupportedCloneRegionsIsMutable(); - supportedCloneRegions_.add(value); - bitField1_ |= 0x00040000; + public com.google.protobuf.Timestamp.Builder getMaintenanceEndTimeBuilder() { + bitField1_ |= 0x04000000; onChanged(); - return this; + return getMaintenanceEndTimeFieldBuilder().getBuilder(); } - private int usedDataStorageSizeTbs_; - /** * * *
                                              -     * Output only. The storage space used by Autonomous Database, in gigabytes.
                                              +     * Output only. The date and time when maintenance will end.
                                                    * 
                                              * - * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The usedDataStorageSizeTbs. */ - @java.lang.Override - public int getUsedDataStorageSizeTbs() { - return usedDataStorageSizeTbs_; + public com.google.protobuf.TimestampOrBuilder getMaintenanceEndTimeOrBuilder() { + if (maintenanceEndTimeBuilder_ != null) { + return maintenanceEndTimeBuilder_.getMessageOrBuilder(); + } else { + return maintenanceEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maintenanceEndTime_; + } } /** * * *
                                              -     * Output only. The storage space used by Autonomous Database, in gigabytes.
                                              +     * Output only. The date and time when maintenance will end.
                                                    * 
                                              * - * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The usedDataStorageSizeTbs to set. - * @return This builder for chaining. */ - public Builder setUsedDataStorageSizeTbs(int value) { + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getMaintenanceEndTimeFieldBuilder() { + if (maintenanceEndTimeBuilder_ == null) { + maintenanceEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMaintenanceEndTime(), getParentForChildren(), isClean()); + maintenanceEndTime_ = null; + } + return maintenanceEndTimeBuilder_; + } - usedDataStorageSizeTbs_ = value; - bitField1_ |= 0x00080000; - onChanged(); - return this; + private com.google.protobuf.LazyStringArrayList allowlistedIps_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowlistedIpsIsMutable() { + if (!allowlistedIps_.isModifiable()) { + allowlistedIps_ = new com.google.protobuf.LazyStringArrayList(allowlistedIps_); + } + bitField1_ |= 0x08000000; } /** * * *
                                              -     * Output only. The storage space used by Autonomous Database, in gigabytes.
                                              +     * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                                    * 
                                              * - * int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; * - * @return This builder for chaining. + * @return A list containing the allowlistedIps. */ - public Builder clearUsedDataStorageSizeTbs() { - bitField1_ = (bitField1_ & ~0x00080000); - usedDataStorageSizeTbs_ = 0; - onChanged(); - return this; + public com.google.protobuf.ProtocolStringList getAllowlistedIpsList() { + allowlistedIps_.makeImmutable(); + return allowlistedIps_; } - private java.lang.Object ociUrl_ = ""; - /** * * *
                                              -     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              -     * Database.
                                              +     * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                                    * 
                                              * - * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The ociUrl. + * @return The count of allowlistedIps. */ - public java.lang.String getOciUrl() { - java.lang.Object ref = ociUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ociUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public int getAllowlistedIpsCount() { + return allowlistedIps_.size(); } /** * * *
                                              -     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              -     * Database.
                                              +     * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                                    * 
                                              * - * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for ociUrl. + * @param index The index of the element to return. + * @return The allowlistedIps at the given index. */ - public com.google.protobuf.ByteString getOciUrlBytes() { - java.lang.Object ref = ociUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ociUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.lang.String getAllowlistedIps(int index) { + return allowlistedIps_.get(index); } /** * * *
                                              -     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              -     * Database.
                                              +     * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                                    * 
                                              * - * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The ociUrl to set. - * @return This builder for chaining. + * @param index The index of the value to return. + * @return The bytes of the allowlistedIps at the given index. */ - public Builder setOciUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ociUrl_ = value; - bitField1_ |= 0x00100000; - onChanged(); - return this; + public com.google.protobuf.ByteString getAllowlistedIpsBytes(int index) { + return allowlistedIps_.getByteString(index); } /** * * *
                                              -     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              -     * Database.
                                              +     * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                                    * 
                                              * - * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; * + * @param index The index to set the value at. + * @param value The allowlistedIps to set. * @return This builder for chaining. - */ - public Builder clearOciUrl() { - ociUrl_ = getDefaultInstance().getOciUrl(); - bitField1_ = (bitField1_ & ~0x00100000); + */ + public Builder setAllowlistedIps(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowlistedIpsIsMutable(); + allowlistedIps_.set(index, value); + bitField1_ |= 0x08000000; onChanged(); return this; } @@ -13371,66 +15300,60 @@ public Builder clearOciUrl() { * * *
                                              -     * Output only. The Oracle Cloud Infrastructure link for the Autonomous
                                              -     * Database.
                                              +     * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                                    * 
                                              * - * string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for ociUrl to set. + * @param value The allowlistedIps to add. * @return This builder for chaining. */ - public Builder setOciUrlBytes(com.google.protobuf.ByteString value) { + public Builder addAllowlistedIps(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ociUrl_ = value; - bitField1_ |= 0x00100000; + ensureAllowlistedIpsIsMutable(); + allowlistedIps_.add(value); + bitField1_ |= 0x08000000; onChanged(); return this; } - private float totalAutoBackupStorageSizeGbs_; - /** * * *
                                              -     * Output only. The storage space used by automatic backups of Autonomous
                                              -     * Database, in gigabytes.
                                              +     * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                                    * 
                                              * - * - * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The totalAutoBackupStorageSizeGbs. + * @param values The allowlistedIps to add. + * @return This builder for chaining. */ - @java.lang.Override - public float getTotalAutoBackupStorageSizeGbs() { - return totalAutoBackupStorageSizeGbs_; + public Builder addAllAllowlistedIps(java.lang.Iterable values) { + ensureAllowlistedIpsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowlistedIps_); + bitField1_ |= 0x08000000; + onChanged(); + return this; } /** * * *
                                              -     * Output only. The storage space used by automatic backups of Autonomous
                                              -     * Database, in gigabytes.
                                              +     * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                                    * 
                                              * - * - * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The totalAutoBackupStorageSizeGbs to set. * @return This builder for chaining. */ - public Builder setTotalAutoBackupStorageSizeGbs(float value) { - - totalAutoBackupStorageSizeGbs_ = value; - bitField1_ |= 0x00200000; + public Builder clearAllowlistedIps() { + allowlistedIps_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField1_ = (bitField1_ & ~0x08000000); + ; onChanged(); return this; } @@ -13439,67 +15362,74 @@ public Builder setTotalAutoBackupStorageSizeGbs(float value) { * * *
                                              -     * Output only. The storage space used by automatic backups of Autonomous
                                              -     * Database, in gigabytes.
                                              +     * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                                    * 
                                              * - * - * float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The bytes of the allowlistedIps to add. * @return This builder for chaining. */ - public Builder clearTotalAutoBackupStorageSizeGbs() { - bitField1_ = (bitField1_ & ~0x00200000); - totalAutoBackupStorageSizeGbs_ = 0F; + public Builder addAllowlistedIpsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowlistedIpsIsMutable(); + allowlistedIps_.add(value); + bitField1_ |= 0x08000000; onChanged(); return this; } - private com.google.protobuf.Timestamp nextLongTermBackupTime_; + private com.google.cloud.oracledatabase.v1.EncryptionKey encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - nextLongTermBackupTimeBuilder_; + com.google.cloud.oracledatabase.v1.EncryptionKey, + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder, + com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder> + encryptionKeyBuilder_; /** * * *
                                              -     * Output only. The long term backup schedule of the Autonomous Database.
                                              +     * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +     * Updating this field will add a new entry in the
                                              +     * `encryption_key_history_entries` field with the former version.
                                                    * 
                                              * * - * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the nextLongTermBackupTime field is set. + * @return Whether the encryptionKey field is set. */ - public boolean hasNextLongTermBackupTime() { - return ((bitField1_ & 0x00400000) != 0); + public boolean hasEncryptionKey() { + return ((bitField1_ & 0x10000000) != 0); } /** * * *
                                              -     * Output only. The long term backup schedule of the Autonomous Database.
                                              +     * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +     * Updating this field will add a new entry in the
                                              +     * `encryption_key_history_entries` field with the former version.
                                                    * 
                                              * * - * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The nextLongTermBackupTime. + * @return The encryptionKey. */ - public com.google.protobuf.Timestamp getNextLongTermBackupTime() { - if (nextLongTermBackupTimeBuilder_ == null) { - return nextLongTermBackupTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextLongTermBackupTime_; + public com.google.cloud.oracledatabase.v1.EncryptionKey getEncryptionKey() { + if (encryptionKeyBuilder_ == null) { + return encryptionKey_ == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; } else { - return nextLongTermBackupTimeBuilder_.getMessage(); + return encryptionKeyBuilder_.getMessage(); } } @@ -13507,23 +15437,25 @@ public com.google.protobuf.Timestamp getNextLongTermBackupTime() { * * *
                                              -     * Output only. The long term backup schedule of the Autonomous Database.
                                              +     * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +     * Updating this field will add a new entry in the
                                              +     * `encryption_key_history_entries` field with the former version.
                                                    * 
                                              * * - * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setNextLongTermBackupTime(com.google.protobuf.Timestamp value) { - if (nextLongTermBackupTimeBuilder_ == null) { + public Builder setEncryptionKey(com.google.cloud.oracledatabase.v1.EncryptionKey value) { + if (encryptionKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - nextLongTermBackupTime_ = value; + encryptionKey_ = value; } else { - nextLongTermBackupTimeBuilder_.setMessage(value); + encryptionKeyBuilder_.setMessage(value); } - bitField1_ |= 0x00400000; + bitField1_ |= 0x10000000; onChanged(); return this; } @@ -13532,21 +15464,23 @@ public Builder setNextLongTermBackupTime(com.google.protobuf.Timestamp value) { * * *
                                              -     * Output only. The long term backup schedule of the Autonomous Database.
                                              +     * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +     * Updating this field will add a new entry in the
                                              +     * `encryption_key_history_entries` field with the former version.
                                                    * 
                                              * * - * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setNextLongTermBackupTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (nextLongTermBackupTimeBuilder_ == null) { - nextLongTermBackupTime_ = builderForValue.build(); + public Builder setEncryptionKey( + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder builderForValue) { + if (encryptionKeyBuilder_ == null) { + encryptionKey_ = builderForValue.build(); } else { - nextLongTermBackupTimeBuilder_.setMessage(builderForValue.build()); + encryptionKeyBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00400000; + bitField1_ |= 0x10000000; onChanged(); return this; } @@ -13555,27 +15489,30 @@ public Builder setNextLongTermBackupTime( * * *
                                              -     * Output only. The long term backup schedule of the Autonomous Database.
                                              +     * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +     * Updating this field will add a new entry in the
                                              +     * `encryption_key_history_entries` field with the former version.
                                                    * 
                                              * * - * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeNextLongTermBackupTime(com.google.protobuf.Timestamp value) { - if (nextLongTermBackupTimeBuilder_ == null) { - if (((bitField1_ & 0x00400000) != 0) - && nextLongTermBackupTime_ != null - && nextLongTermBackupTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getNextLongTermBackupTimeBuilder().mergeFrom(value); + public Builder mergeEncryptionKey(com.google.cloud.oracledatabase.v1.EncryptionKey value) { + if (encryptionKeyBuilder_ == null) { + if (((bitField1_ & 0x10000000) != 0) + && encryptionKey_ != null + && encryptionKey_ + != com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance()) { + getEncryptionKeyBuilder().mergeFrom(value); } else { - nextLongTermBackupTime_ = value; + encryptionKey_ = value; } } else { - nextLongTermBackupTimeBuilder_.mergeFrom(value); + encryptionKeyBuilder_.mergeFrom(value); } - if (nextLongTermBackupTime_ != null) { - bitField1_ |= 0x00400000; + if (encryptionKey_ != null) { + bitField1_ |= 0x10000000; onChanged(); } return this; @@ -13585,19 +15522,21 @@ public Builder mergeNextLongTermBackupTime(com.google.protobuf.Timestamp value) * * *
                                              -     * Output only. The long term backup schedule of the Autonomous Database.
                                              +     * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +     * Updating this field will add a new entry in the
                                              +     * `encryption_key_history_entries` field with the former version.
                                                    * 
                                              * * - * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearNextLongTermBackupTime() { - bitField1_ = (bitField1_ & ~0x00400000); - nextLongTermBackupTime_ = null; - if (nextLongTermBackupTimeBuilder_ != null) { - nextLongTermBackupTimeBuilder_.dispose(); - nextLongTermBackupTimeBuilder_ = null; + public Builder clearEncryptionKey() { + bitField1_ = (bitField1_ & ~0x10000000); + encryptionKey_ = null; + if (encryptionKeyBuilder_ != null) { + encryptionKeyBuilder_.dispose(); + encryptionKeyBuilder_ = null; } onChanged(); return this; @@ -13607,37 +15546,41 @@ public Builder clearNextLongTermBackupTime() { * * *
                                              -     * Output only. The long term backup schedule of the Autonomous Database.
                                              +     * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +     * Updating this field will add a new entry in the
                                              +     * `encryption_key_history_entries` field with the former version.
                                                    * 
                                              * * - * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getNextLongTermBackupTimeBuilder() { - bitField1_ |= 0x00400000; + public com.google.cloud.oracledatabase.v1.EncryptionKey.Builder getEncryptionKeyBuilder() { + bitField1_ |= 0x10000000; onChanged(); - return getNextLongTermBackupTimeFieldBuilder().getBuilder(); + return getEncryptionKeyFieldBuilder().getBuilder(); } /** * * *
                                              -     * Output only. The long term backup schedule of the Autonomous Database.
                                              +     * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +     * Updating this field will add a new entry in the
                                              +     * `encryption_key_history_entries` field with the former version.
                                                    * 
                                              * * - * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getNextLongTermBackupTimeOrBuilder() { - if (nextLongTermBackupTimeBuilder_ != null) { - return nextLongTermBackupTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + if (encryptionKeyBuilder_ != null) { + return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return nextLongTermBackupTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextLongTermBackupTime_; + return encryptionKey_ == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; } } @@ -13645,99 +15588,264 @@ public com.google.protobuf.TimestampOrBuilder getNextLongTermBackupTimeOrBuilder * * *
                                              -     * Output only. The long term backup schedule of the Autonomous Database.
                                              +     * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +     * Updating this field will add a new entry in the
                                              +     * `encryption_key_history_entries` field with the former version.
                                                    * 
                                              * * - * .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getNextLongTermBackupTimeFieldBuilder() { - if (nextLongTermBackupTimeBuilder_ == null) { - nextLongTermBackupTimeBuilder_ = + com.google.cloud.oracledatabase.v1.EncryptionKey, + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder, + com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder> + getEncryptionKeyFieldBuilder() { + if (encryptionKeyBuilder_ == null) { + encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getNextLongTermBackupTime(), getParentForChildren(), isClean()); - nextLongTermBackupTime_ = null; + com.google.cloud.oracledatabase.v1.EncryptionKey, + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder, + com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder>( + getEncryptionKey(), getParentForChildren(), isClean()); + encryptionKey_ = null; } - return nextLongTermBackupTimeBuilder_; + return encryptionKeyBuilder_; } - private com.google.protobuf.Timestamp maintenanceBeginTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - maintenanceBeginTimeBuilder_; + private java.util.List + encryptionKeyHistoryEntries_ = java.util.Collections.emptyList(); + + private void ensureEncryptionKeyHistoryEntriesIsMutable() { + if (!((bitField1_ & 0x20000000) != 0)) { + encryptionKeyHistoryEntries_ = + new java.util.ArrayList( + encryptionKeyHistoryEntries_); + bitField1_ |= 0x20000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryOrBuilder> + encryptionKeyHistoryEntriesBuilder_; /** * * *
                                              -     * Output only. The date and time when maintenance will begin.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public java.util.List + getEncryptionKeyHistoryEntriesList() { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(encryptionKeyHistoryEntries_); + } else { + return encryptionKeyHistoryEntriesBuilder_.getMessageList(); + } + } + + /** * - * @return Whether the maintenanceBeginTime field is set. + * + *
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public boolean hasMaintenanceBeginTime() { - return ((bitField1_ & 0x00800000) != 0); + public int getEncryptionKeyHistoryEntriesCount() { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + return encryptionKeyHistoryEntries_.size(); + } else { + return encryptionKeyHistoryEntriesBuilder_.getCount(); + } } /** * * *
                                              -     * Output only. The date and time when maintenance will begin.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry + getEncryptionKeyHistoryEntries(int index) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + return encryptionKeyHistoryEntries_.get(index); + } else { + return encryptionKeyHistoryEntriesBuilder_.getMessage(index); + } + } + + /** * - * @return The maintenanceBeginTime. + * + *
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.Timestamp getMaintenanceBeginTime() { - if (maintenanceBeginTimeBuilder_ == null) { - return maintenanceBeginTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : maintenanceBeginTime_; + public Builder setEncryptionKeyHistoryEntries( + int index, com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry value) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEncryptionKeyHistoryEntriesIsMutable(); + encryptionKeyHistoryEntries_.set(index, value); + onChanged(); + } else { + encryptionKeyHistoryEntriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionKeyHistoryEntries( + int index, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder builderForValue) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + ensureEncryptionKeyHistoryEntriesIsMutable(); + encryptionKeyHistoryEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + encryptionKeyHistoryEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEncryptionKeyHistoryEntries( + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry value) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEncryptionKeyHistoryEntriesIsMutable(); + encryptionKeyHistoryEntries_.add(value); + onChanged(); + } else { + encryptionKeyHistoryEntriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEncryptionKeyHistoryEntries( + int index, com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry value) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEncryptionKeyHistoryEntriesIsMutable(); + encryptionKeyHistoryEntries_.add(index, value); + onChanged(); + } else { + encryptionKeyHistoryEntriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEncryptionKeyHistoryEntries( + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder builderForValue) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + ensureEncryptionKeyHistoryEntriesIsMutable(); + encryptionKeyHistoryEntries_.add(builderForValue.build()); + onChanged(); } else { - return maintenanceBeginTimeBuilder_.getMessage(); + encryptionKeyHistoryEntriesBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
                                              -     * Output only. The date and time when maintenance will begin.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setMaintenanceBeginTime(com.google.protobuf.Timestamp value) { - if (maintenanceBeginTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenanceBeginTime_ = value; + public Builder addEncryptionKeyHistoryEntries( + int index, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder builderForValue) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + ensureEncryptionKeyHistoryEntriesIsMutable(); + encryptionKeyHistoryEntries_.add(index, builderForValue.build()); + onChanged(); } else { - maintenanceBeginTimeBuilder_.setMessage(value); + encryptionKeyHistoryEntriesBuilder_.addMessage(index, builderForValue.build()); } - bitField1_ |= 0x00800000; - onChanged(); return this; } @@ -13745,21 +15853,25 @@ public Builder setMaintenanceBeginTime(com.google.protobuf.Timestamp value) { * * *
                                              -     * Output only. The date and time when maintenance will begin.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setMaintenanceBeginTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (maintenanceBeginTimeBuilder_ == null) { - maintenanceBeginTime_ = builderForValue.build(); + public Builder addAllEncryptionKeyHistoryEntries( + java.lang.Iterable + values) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + ensureEncryptionKeyHistoryEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, encryptionKeyHistoryEntries_); + onChanged(); } else { - maintenanceBeginTimeBuilder_.setMessage(builderForValue.build()); + encryptionKeyHistoryEntriesBuilder_.addAllMessages(values); } - bitField1_ |= 0x00800000; - onChanged(); return this; } @@ -13767,28 +15879,21 @@ public Builder setMaintenanceBeginTime(com.google.protobuf.Timestamp.Builder bui * * *
                                              -     * Output only. The date and time when maintenance will begin.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeMaintenanceBeginTime(com.google.protobuf.Timestamp value) { - if (maintenanceBeginTimeBuilder_ == null) { - if (((bitField1_ & 0x00800000) != 0) - && maintenanceBeginTime_ != null - && maintenanceBeginTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getMaintenanceBeginTimeBuilder().mergeFrom(value); - } else { - maintenanceBeginTime_ = value; - } - } else { - maintenanceBeginTimeBuilder_.mergeFrom(value); - } - if (maintenanceBeginTime_ != null) { - bitField1_ |= 0x00800000; + public Builder clearEncryptionKeyHistoryEntries() { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + encryptionKeyHistoryEntries_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x20000000); onChanged(); + } else { + encryptionKeyHistoryEntriesBuilder_.clear(); } return this; } @@ -13797,21 +15902,22 @@ public Builder mergeMaintenanceBeginTime(com.google.protobuf.Timestamp value) { * * *
                                              -     * Output only. The date and time when maintenance will begin.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearMaintenanceBeginTime() { - bitField1_ = (bitField1_ & ~0x00800000); - maintenanceBeginTime_ = null; - if (maintenanceBeginTimeBuilder_ != null) { - maintenanceBeginTimeBuilder_.dispose(); - maintenanceBeginTimeBuilder_ = null; + public Builder removeEncryptionKeyHistoryEntries(int index) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + ensureEncryptionKeyHistoryEntriesIsMutable(); + encryptionKeyHistoryEntries_.remove(index); + onChanged(); + } else { + encryptionKeyHistoryEntriesBuilder_.remove(index); } - onChanged(); return this; } @@ -13819,37 +15925,37 @@ public Builder clearMaintenanceBeginTime() { * * *
                                              -     * Output only. The date and time when maintenance will begin.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getMaintenanceBeginTimeBuilder() { - bitField1_ |= 0x00800000; - onChanged(); - return getMaintenanceBeginTimeFieldBuilder().getBuilder(); + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder + getEncryptionKeyHistoryEntriesBuilder(int index) { + return getEncryptionKeyHistoryEntriesFieldBuilder().getBuilder(index); } /** * * *
                                              -     * Output only. The date and time when maintenance will begin.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getMaintenanceBeginTimeOrBuilder() { - if (maintenanceBeginTimeBuilder_ != null) { - return maintenanceBeginTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryOrBuilder + getEncryptionKeyHistoryEntriesOrBuilder(int index) { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + return encryptionKeyHistoryEntries_.get(index); } else { - return maintenanceBeginTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : maintenanceBeginTime_; + return encryptionKeyHistoryEntriesBuilder_.getMessageOrBuilder(index); } } @@ -13857,172 +15963,169 @@ public com.google.protobuf.TimestampOrBuilder getMaintenanceBeginTimeOrBuilder() * * *
                                              -     * Output only. The date and time when maintenance will begin.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getMaintenanceBeginTimeFieldBuilder() { - if (maintenanceBeginTimeBuilder_ == null) { - maintenanceBeginTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getMaintenanceBeginTime(), getParentForChildren(), isClean()); - maintenanceBeginTime_ = null; + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryOrBuilder> + getEncryptionKeyHistoryEntriesOrBuilderList() { + if (encryptionKeyHistoryEntriesBuilder_ != null) { + return encryptionKeyHistoryEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(encryptionKeyHistoryEntries_); } - return maintenanceBeginTimeBuilder_; } - private com.google.protobuf.Timestamp maintenanceEndTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - maintenanceEndTimeBuilder_; - /** * * *
                                              -     * Output only. The date and time when maintenance will end.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the maintenanceEndTime field is set. */ - public boolean hasMaintenanceEndTime() { - return ((bitField1_ & 0x01000000) != 0); + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder + addEncryptionKeyHistoryEntriesBuilder() { + return getEncryptionKeyHistoryEntriesFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.getDefaultInstance()); } /** * * *
                                              -     * Output only. The date and time when maintenance will end.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The maintenanceEndTime. */ - public com.google.protobuf.Timestamp getMaintenanceEndTime() { - if (maintenanceEndTimeBuilder_ == null) { - return maintenanceEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : maintenanceEndTime_; - } else { - return maintenanceEndTimeBuilder_.getMessage(); - } + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder + addEncryptionKeyHistoryEntriesBuilder(int index) { + return getEncryptionKeyHistoryEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.getDefaultInstance()); } /** * * *
                                              -     * Output only. The date and time when maintenance will end.
                                              +     * Output only. The history of the encryption keys used to encrypt the
                                              +     * Autonomous Database.
                                                    * 
                                              * * - * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setMaintenanceEndTime(com.google.protobuf.Timestamp value) { - if (maintenanceEndTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenanceEndTime_ = value; - } else { - maintenanceEndTimeBuilder_.setMessage(value); + public java.util.List + getEncryptionKeyHistoryEntriesBuilderList() { + return getEncryptionKeyHistoryEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryOrBuilder> + getEncryptionKeyHistoryEntriesFieldBuilder() { + if (encryptionKeyHistoryEntriesBuilder_ == null) { + encryptionKeyHistoryEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryOrBuilder>( + encryptionKeyHistoryEntries_, + ((bitField1_ & 0x20000000) != 0), + getParentForChildren(), + isClean()); + encryptionKeyHistoryEntries_ = null; } - bitField1_ |= 0x01000000; - onChanged(); - return this; + return encryptionKeyHistoryEntriesBuilder_; } + private java.lang.Object serviceAgentEmail_ = ""; + /** * * *
                                              -     * Output only. The date and time when maintenance will end.
                                              +     * Output only. An Oracle-managed Google Cloud service account on which
                                              +     * customers can grant roles to access resources in the customer project.
                                                    * 
                                              * - * - * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string service_agent_email = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAgentEmail. */ - public Builder setMaintenanceEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (maintenanceEndTimeBuilder_ == null) { - maintenanceEndTime_ = builderForValue.build(); + public java.lang.String getServiceAgentEmail() { + java.lang.Object ref = serviceAgentEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAgentEmail_ = s; + return s; } else { - maintenanceEndTimeBuilder_.setMessage(builderForValue.build()); + return (java.lang.String) ref; } - bitField1_ |= 0x01000000; - onChanged(); - return this; } /** * * *
                                              -     * Output only. The date and time when maintenance will end.
                                              +     * Output only. An Oracle-managed Google Cloud service account on which
                                              +     * customers can grant roles to access resources in the customer project.
                                                    * 
                                              * - * - * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string service_agent_email = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAgentEmail. */ - public Builder mergeMaintenanceEndTime(com.google.protobuf.Timestamp value) { - if (maintenanceEndTimeBuilder_ == null) { - if (((bitField1_ & 0x01000000) != 0) - && maintenanceEndTime_ != null - && maintenanceEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getMaintenanceEndTimeBuilder().mergeFrom(value); - } else { - maintenanceEndTime_ = value; - } + public com.google.protobuf.ByteString getServiceAgentEmailBytes() { + java.lang.Object ref = serviceAgentEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAgentEmail_ = b; + return b; } else { - maintenanceEndTimeBuilder_.mergeFrom(value); - } - if (maintenanceEndTime_ != null) { - bitField1_ |= 0x01000000; - onChanged(); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
                                              -     * Output only. The date and time when maintenance will end.
                                              +     * Output only. An Oracle-managed Google Cloud service account on which
                                              +     * customers can grant roles to access resources in the customer project.
                                                    * 
                                              * - * - * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string service_agent_email = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceAgentEmail to set. + * @return This builder for chaining. */ - public Builder clearMaintenanceEndTime() { - bitField1_ = (bitField1_ & ~0x01000000); - maintenanceEndTime_ = null; - if (maintenanceEndTimeBuilder_ != null) { - maintenanceEndTimeBuilder_.dispose(); - maintenanceEndTimeBuilder_ = null; + public Builder setServiceAgentEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + serviceAgentEmail_ = value; + bitField1_ |= 0x40000000; onChanged(); return this; } @@ -14031,66 +16134,43 @@ public Builder clearMaintenanceEndTime() { * * *
                                              -     * Output only. The date and time when maintenance will end.
                                              +     * Output only. An Oracle-managed Google Cloud service account on which
                                              +     * customers can grant roles to access resources in the customer project.
                                                    * 
                                              * - * - * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string service_agent_email = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getMaintenanceEndTimeBuilder() { - bitField1_ |= 0x01000000; + public Builder clearServiceAgentEmail() { + serviceAgentEmail_ = getDefaultInstance().getServiceAgentEmail(); + bitField1_ = (bitField1_ & ~0x40000000); onChanged(); - return getMaintenanceEndTimeFieldBuilder().getBuilder(); + return this; } /** * * *
                                              -     * Output only. The date and time when maintenance will end.
                                              +     * Output only. An Oracle-managed Google Cloud service account on which
                                              +     * customers can grant roles to access resources in the customer project.
                                                    * 
                                              * - * - * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getMaintenanceEndTimeOrBuilder() { - if (maintenanceEndTimeBuilder_ != null) { - return maintenanceEndTimeBuilder_.getMessageOrBuilder(); - } else { - return maintenanceEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : maintenanceEndTime_; - } - } - - /** - * - * - *
                                              -     * Output only. The date and time when maintenance will end.
                                              -     * 
                                              + * string service_agent_email = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * @param value The bytes for serviceAgentEmail to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getMaintenanceEndTimeFieldBuilder() { - if (maintenanceEndTimeBuilder_ == null) { - maintenanceEndTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getMaintenanceEndTime(), getParentForChildren(), isClean()); - maintenanceEndTime_ = null; + public Builder setServiceAgentEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return maintenanceEndTimeBuilder_; + checkByteStringIsUtf8(value); + serviceAgentEmail_ = value; + bitField1_ |= 0x40000000; + onChanged(); + return this; } @java.lang.Override diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabasePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabasePropertiesOrBuilder.java index 51d2645df780..ef992b27e45c 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabasePropertiesOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabasePropertiesOrBuilder.java @@ -1685,6 +1685,98 @@ com.google.cloud.oracledatabase.v1.ScheduledOperationDetails getScheduledOperati */ com.google.protobuf.TimestampOrBuilder getNextLongTermBackupTimeOrBuilder(); + /** + * + * + *
                                              +   * Output only. The date and time the Autonomous Data Guard role was changed
                                              +   * for the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataGuardRoleChangedTime field is set. + */ + boolean hasDataGuardRoleChangedTime(); + + /** + * + * + *
                                              +   * Output only. The date and time the Autonomous Data Guard role was changed
                                              +   * for the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataGuardRoleChangedTime. + */ + com.google.protobuf.Timestamp getDataGuardRoleChangedTime(); + + /** + * + * + *
                                              +   * Output only. The date and time the Autonomous Data Guard role was changed
                                              +   * for the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp data_guard_role_changed_time = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDataGuardRoleChangedTimeOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The date and time the Disaster Recovery role was changed for
                                              +   * the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the disasterRecoveryRoleChangedTime field is set. + */ + boolean hasDisasterRecoveryRoleChangedTime(); + + /** + * + * + *
                                              +   * Output only. The date and time the Disaster Recovery role was changed for
                                              +   * the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The disasterRecoveryRoleChangedTime. + */ + com.google.protobuf.Timestamp getDisasterRecoveryRoleChangedTime(); + + /** + * + * + *
                                              +   * Output only. The date and time the Disaster Recovery role was changed for
                                              +   * the standby Autonomous Database.
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDisasterRecoveryRoleChangedTimeOrBuilder(); + /** * * @@ -1770,4 +1862,209 @@ com.google.cloud.oracledatabase.v1.ScheduledOperationDetails getScheduledOperati *
                                              */ com.google.protobuf.TimestampOrBuilder getMaintenanceEndTimeOrBuilder(); + + /** + * + * + *
                                              +   * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                              +   * 
                                              + * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowlistedIps. + */ + java.util.List getAllowlistedIpsList(); + + /** + * + * + *
                                              +   * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                              +   * 
                                              + * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowlistedIps. + */ + int getAllowlistedIpsCount(); + + /** + * + * + *
                                              +   * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                              +   * 
                                              + * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowlistedIps at the given index. + */ + java.lang.String getAllowlistedIps(int index); + + /** + * + * + *
                                              +   * Optional. The list of allowlisted IP addresses for the Autonomous Database.
                                              +   * 
                                              + * + * repeated string allowlisted_ips = 67 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowlistedIps at the given index. + */ + com.google.protobuf.ByteString getAllowlistedIpsBytes(int index); + + /** + * + * + *
                                              +   * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +   * Updating this field will add a new entry in the
                                              +   * `encryption_key_history_entries` field with the former version.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionKey field is set. + */ + boolean hasEncryptionKey(); + + /** + * + * + *
                                              +   * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +   * Updating this field will add a new entry in the
                                              +   * `encryption_key_history_entries` field with the former version.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionKey. + */ + com.google.cloud.oracledatabase.v1.EncryptionKey getEncryptionKey(); + + /** + * + * + *
                                              +   * Optional. The encryption key used to encrypt the Autonomous Database.
                                              +   * Updating this field will add a new entry in the
                                              +   * `encryption_key_history_entries` field with the former version.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 68 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getEncryptionKeyHistoryEntriesList(); + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry getEncryptionKeyHistoryEntries( + int index); + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getEncryptionKeyHistoryEntriesCount(); + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getEncryptionKeyHistoryEntriesOrBuilderList(); + + /** + * + * + *
                                              +   * Output only. The history of the encryption keys used to encrypt the
                                              +   * Autonomous Database.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry encryption_key_history_entries = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryOrBuilder + getEncryptionKeyHistoryEntriesOrBuilder(int index); + + /** + * + * + *
                                              +   * Output only. An Oracle-managed Google Cloud service account on which
                                              +   * customers can grant roles to access resources in the customer project.
                                              +   * 
                                              + * + * string service_agent_email = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAgentEmail. + */ + java.lang.String getServiceAgentEmail(); + + /** + * + * + *
                                              +   * Output only. An Oracle-managed Google Cloud service account on which
                                              +   * customers can grant roles to access resources in the customer project.
                                              +   * 
                                              + * + * string service_agent_email = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAgentEmail. + */ + com.google.protobuf.ByteString getServiceAgentEmailBytes(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProto.java index 6f748ba603a7..74018595c965 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseProto.java @@ -36,10 +36,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_SourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_SourceConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_EncryptionKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_EncryptionKey_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -84,7 +96,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud/oracledatabase/v1/common.proto\032\036goo" + "gle/protobuf/duration.proto\032\037google/prot" + "obuf/timestamp.proto\032\033google/type/dayofw" - + "eek.proto\032\033google/type/timeofday.proto\"\245\005\n" + + "eek.proto\032\033google/type/timeofday.proto\"\262\010\n" + "\022AutonomousDatabase\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\025\n" + "\010database\030\002 \001(\tB\003\340A\001\022\031\n" @@ -98,26 +110,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\t \001(\tB&\340A\001\372A \n" + "\036compute.googleapis.com/Network\022\021\n" + "\004cidr\030\n" - + " \001(\tB\003\340A\001\0224\n" + + " \001(\tB\003\340A\001\022E\n" + + "\013odb_network\030\020 \001(\tB0\340A\001\372A*\n" + + "(oracledatabase.googleapis.com/OdbNetwork\022C\n\n" + + "odb_subnet\030\021 \001(\tB/\340A\001\372A)\n" + + "\'oracledatabase.googleapis.com/OdbSubnet\022H\n\r" + + "source_config\030\013 \001(\0132" + + ",.google.cloud.oracledatabase.v1.SourceConfigB\003\340A\001\022[\n" + + "\031peer_autonomous_databases\030\014 \003(\tB8\340A\003\372A2\n" + + "0oracledatabase.googleapis.com/AutonomousDatabase\0224\n" + "\013create_time\030\r" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022X\n" + + "%disaster_recovery_supported_locations\030\017 \003(\tB)\340A\003\372A#\n" + + "!locations.googleapis.com/Location\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\262\001\352A\256\001\n" - + "0oracledatabase.googleapis.com/AutonomousDatabase\022Qproj" - + "ects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}*\023a" - + "utonomousDatabases2\022autonomousDatabase\"\267$\n" + + "0oracledatabase.googleapis.com/AutonomousDatabase\022Qproject" + + "s/{project}/locations/{location}/autonom" + + "ousDatabases/{autonomous_database}*\023autonomousDatabases2\022autonomousDatabase\"\231\001\n" + + "\014SourceConfig\022U\n" + + "\023autonomous_database\030\001 \001(\tB8\340A\001\372A2\n" + + "0oracledatabase.googleapis.com/AutonomousDatabase\0222\n" + + "%automatic_backups_replication_enabled\030\002 \001(\010B\003\340A\001\"\300\'\n" + "\034AutonomousDatabaseProperties\022\021\n" + "\004ocid\030\001 \001(\tB\003\340A\003\022\032\n\r" + "compute_count\030\002 \001(\002B\003\340A\001\022\033\n" + "\016cpu_core_count\030\003 \001(\005B\003\340A\001\022!\n" + "\024data_storage_size_tb\030\004 \001(\005B\003\340A\001\022!\n" + "\024data_storage_size_gb\030? \001(\005B\003\340A\001\022D\n" - + "\013db_workload\030\005 \001(\0162*" - + ".google.cloud.oracledatabase.v1.DBWorkloadB\003\340A\002\022e\n\n" - + "db_edition\030\006 \001(\0162L.google.clo" - + "ud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEditionB\003\340A\001\022\032\n\r" + + "\013db_workload\030\005 \001(\0162*.google" + + ".cloud.oracledatabase.v1.DBWorkloadB\003\340A\002\022e\n\n" + + "db_edition\030\006 \001(\0162L.google.cloud.orac" + + "ledatabase.v1.AutonomousDatabaseProperties.DatabaseEditionB\003\340A\001\022\032\n\r" + "character_set\030\010 \001(\tB\003\340A\001\022\034\n" + "\017n_character_set\030\t \001(\tB\003\340A\001\022 \n" + "\023private_endpoint_ip\030\n" @@ -126,14 +151,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "db_version\030\014 \001(\tB\003\340A\001\022$\n" + "\027is_auto_scaling_enabled\030\016 \001(\010B\003\340A\001\022,\n" + "\037is_storage_auto_scaling_enabled\030\017 \001(\010B\003\340A\001\022c\n" - + "\014license_type\030\020 \001(\0162H.google.cloud.oracledatabase" - + ".v1.AutonomousDatabaseProperties.LicenseTypeB\003\340A\002\022O\n" - + "\021customer_contacts\030\021 \003(\0132/.g" - + "oogle.cloud.oracledatabase.v1.CustomerContactB\003\340A\001\022\026\n" + + "\014license_type\030\020 \001(\0162H.google.cloud.oracledatabase.v1.Aut" + + "onomousDatabaseProperties.LicenseTypeB\003\340A\002\022O\n" + + "\021customer_contacts\030\021 \003(\0132/.google.c" + + "loud.oracledatabase.v1.CustomerContactB\003\340A\001\022\026\n" + "\tsecret_id\030\022 \001(\tB\003\340A\001\022\025\n" + "\010vault_id\030\023 \001(\tB\003\340A\001\022|\n" - + "\031maintenance_schedule_type\030\024 \001(\0162T.google.cloud.oracledataba" - + "se.v1.AutonomousDatabaseProperties.MaintenanceScheduleTypeB\003\340A\001\022%\n" + + "\031maintenance_schedule_type\030\024 \001(\0162T.google.cloud.oracledatabase.v1.A" + + "utonomousDatabaseProperties.MaintenanceScheduleTypeB\003\340A\001\022%\n" + "\030mtls_connection_required\030\" \001(\010B\003\340A\001\022)\n" + "\034backup_retention_period_days\0309 \001(\005B\003\340A\001\022-\n" + " actual_used_data_storage_size_tb\030\025 \001(\001B\003\340A\003\022&\n" @@ -147,51 +172,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162%.google.cloud.oracledatabase.v1.StateB\003\340A\003\022-\n" + " autonomous_container_database_id\030\033 \001(\tB\003\340A\003\022\'\n" + "\032available_upgrade_versions\030\034 \003(\tB\003\340A\003\022d\n" - + "\022connection_strings\030\035 \001(\0132C.google.cloud.oracledata" - + "base.v1.AutonomousDatabaseConnectionStringsB\003\340A\003\022^\n" - + "\017connection_urls\030\036 \001(\0132@.goog" - + "le.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsB\003\340A\003\022E\n" + + "\022connection_strings\030\035 \001(\0132C.google.cloud.oracledatabase.v1" + + ".AutonomousDatabaseConnectionStringsB\003\340A\003\022^\n" + + "\017connection_urls\030\036 \001(\0132@.google.clou" + + "d.oracledatabase.v1.AutonomousDatabaseConnectionUrlsB\003\340A\003\022E\n" + "\035failed_data_recovery_duration\030\037" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\022\035\n" + "\020memory_table_gbs\030 \001(\005B\003\340A\003\022(\n" + "\033is_local_data_guard_enabled\030! \001(\010B\003\340A\003\0228\n" + "+local_adg_auto_failover_max_data_loss_limit\030# \001(\005B\003\340A\003\022_\n" - + "\020local_standby_db\030$ \001(\0132@.google.cloud.oracledataba" - + "se.v1.AutonomousDatabaseStandbySummaryB\003\340A\003\022/\n" + + "\020local_standby_db\030$" + + " \001(\0132@.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryB\003\340A\003\022/\n" + "\"memory_per_oracle_compute_unit_gbs\030% \001(\005B\003\340A\003\022\201\001\n" - + "\034local_disaster_recovery_type\030& \001(\0162V.google.cloud.oracledatabas" - + "e.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryTypeB\003\340A\003\022h\n" - + "\017data_safe_state\030\' \001(\0162J.google.cloud.oracledatabase." - + "v1.AutonomousDatabaseProperties.DataSafeStateB\003\340A\003\022|\n" - + "\031database_management_state\030( \001(\0162T.google.cloud.oracledatabase.v1.A" - + "utonomousDatabaseProperties.DatabaseManagementStateB\003\340A\003\022]\n" - + "\topen_mode\030) \001(\0162E.go" - + "ogle.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenModeB\003\340A\003\022_\n" - + "\031operations_insights_state\030* \001(\01627.google.clou" - + "d.oracledatabase.v1.OperationsInsightsStateB\003\340A\003\022\030\n" + + "\034local_disaster_recovery_type\030& \001(\0162V.google.cloud.oracledatabase.v1.Au" + + "tonomousDatabaseProperties.LocalDisasterRecoveryTypeB\003\340A\003\022h\n" + + "\017data_safe_state\030\' \001(\0162J.google.cloud.oracledatabase.v1.Auto" + + "nomousDatabaseProperties.DataSafeStateB\003\340A\003\022|\n" + + "\031database_management_state\030( \001(\0162T.google.cloud.oracledatabase.v1.Autonomo" + + "usDatabaseProperties.DatabaseManagementStateB\003\340A\003\022]\n" + + "\topen_mode\030) \001(\0162E.google.cl" + + "oud.oracledatabase.v1.AutonomousDatabaseProperties.OpenModeB\003\340A\003\022_\n" + + "\031operations_insights_state\030* \001(\01627.google.cloud.oracl" + + "edatabase.v1.OperationsInsightsStateB\003\340A\003\022\030\n" + "\013peer_db_ids\030+ \003(\tB\003\340A\003\022k\n" - + "\020permission_level\030, \001(\0162L.google.cloud.orac" - + "ledatabase.v1.AutonomousDatabaseProperties.PermissionLevelB\003\340A\003\022\035\n" + + "\020permission_level\030, \001(\0162L.google.cloud.oracledatab" + + "ase.v1.AutonomousDatabaseProperties.PermissionLevelB\003\340A\003\022\035\n" + "\020private_endpoint\030- \001(\tB\003\340A\003\022k\n" - + "\020refreshable_mode\030. \001(\0162L.google.cloud.oracledatabase.v1.Autono" - + "mousDatabaseProperties.RefreshableModeB\003\340A\003\022m\n" - + "\021refreshable_state\030/ \001(\0162M.google." - + "cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableStateB\003\340A\003\022T\n" - + "\004role\0300 \001(\0162A.google.cloud.oracledatabase.v" - + "1.AutonomousDatabaseProperties.RoleB\003\340A\003\022c\n" - + "\033scheduled_operation_details\030@ \003(\01329." - + "google.cloud.oracledatabase.v1.ScheduledOperationDetailsB\003\340A\003\022\"\n" + + "\020refreshable_mode\030. \001(\0162L.goog" + + "le.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableModeB\003\340A\003\022m\n" + + "\021refreshable_state\030/ \001(\0162M.google.cloud.o" + + "racledatabase.v1.AutonomousDatabaseProperties.RefreshableStateB\003\340A\003\022T\n" + + "\004role\0300 \001(" + + "\0162A.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RoleB\003\340A\003\022c\n" + + "\033scheduled_operation_details\030@ \003(\01329.google." + + "cloud.oracledatabase.v1.ScheduledOperationDetailsB\003\340A\003\022\"\n" + "\025sql_web_developer_url\0302 \001(\tB\003\340A\003\022$\n" + "\027supported_clone_regions\0303 \003(\tB\003\340A\003\022\'\n" + "\032used_data_storage_size_tbs\0305 \001(\005B\003\340A\003\022\024\n" + "\007oci_url\0306 \001(\tB\003\340A\003\022/\n" + "\"total_auto_backup_storage_size_gbs\030; \001(\002B\003\340A\003\022C\n" + "\032next_long_term_backup_time\030<" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022E\n" + + "\034data_guard_role_changed_time\030=" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022L\n" + + "#disaster_recovery_role_changed_time\030>" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n" + "\026maintenance_begin_time\030A" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022=\n" + "\024maintenance_end_time\030B" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"a\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\034\n" + + "\017allowlisted_ips\030C \003(\tB\003\340A\001\022J\n" + + "\016encryption_key\030D \001(\013" + + "2-.google.cloud.oracledatabase.v1.EncryptionKeyB\003\340A\001\022f\n" + + "\036encryption_key_history_entries\030E" + + " \003(\01329.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryB\003\340A\003\022" + + " \n" + + "\023service_agent_email\030F \001(\tB\003\340A\003\"a\n" + "\017DatabaseEdition\022 \n" + "\034DATABASE_EDITION_UNSPECIFIED\020\000\022\024\n" + "\020STANDARD_EDITION\020\001\022\026\n" @@ -246,34 +282,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020DISABLED_STANDBY\020\003\022\017\n" + "\013BACKUP_COPY\020\004\022\024\n" + "\020SNAPSHOT_STANDBY\020\005B#\n" - + "!_are_primary_allowlisted_ips_used\"N\n" + + "!_are_primary_allowlisted_ips_used\"\241\001\n" + + "\031EncryptionKeyHistoryEntry\022J\n" + + "\016encryption_key\030\001" + + " \001(\0132-.google.cloud.oracledatabase.v1.EncryptionKeyB\003\340A\003\0228\n" + + "\017activation_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\350\001\n\r" + + "EncryptionKey\022M\n" + + "\010provider\030\001" + + " \001(\01626.google.cloud.oracledatabase.v1.EncryptionKey.ProviderB\003\340A\001\022:\n" + + "\007kms_key\030\002 \001(\tB)\340A\001\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\"L\n" + + "\010Provider\022\030\n" + + "\024PROVIDER_UNSPECIFIED\020\000\022\022\n" + + "\016GOOGLE_MANAGED\020\001\022\022\n" + + "\016ORACLE_MANAGED\020\002\"N\n" + "\026AutonomousDatabaseApex\022\031\n" + "\014apex_version\030\001 \001(\tB\003\340A\003\022\031\n" + "\014ords_version\030\002 \001(\tB\003\340A\003\"\252\002\n" + "#AutonomousDatabaseConnectionStrings\022Y\n" - + "\026all_connection_strings\030\001" - + " \001(\01324.google.cloud.oracledatabase.v1.AllConnectionStringsB\003\340A\003\022\026\n" + + "\026all_connection_strings\030\001 \001(" + + "\01324.google.cloud.oracledatabase.v1.AllConnectionStringsB\003\340A\003\022\026\n" + "\tdedicated\030\002 \001(\tB\003\340A\003\022\021\n" + "\004high\030\003 \001(\tB\003\340A\003\022\020\n" + "\003low\030\004 \001(\tB\003\340A\003\022\023\n" + "\006medium\030\005 \001(\tB\003\340A\003\022V\n" - + "\010profiles\030\006 \003(\0132?.google.cloud.oracledat" - + "abase.v1.DatabaseConnectionStringProfileB\003\340A\003\"\262\t\n" + + "\010profiles\030\006 \003(\013" + + "2?.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileB\003\340A\003\"\262" + + "\t\n" + "\037DatabaseConnectionStringProfile\022j\n" - + "\016consumer_group\030\001 \001(\0162M.google.cloud" - + ".oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroupB\003\340A\003\022\031\n" + + "\016consumer_group\030\001 \001(\0162M.google.cloud.oracledatabase" + + ".v1.DatabaseConnectionStringProfile.ConsumerGroupB\003\340A\003\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\003\022d\n" - + "\013host_format\030\003 \001(\0162J.google.cloud.oracledatabase.v1.DatabaseC" - + "onnectionStringProfile.HostFormatB\003\340A\003\022\030\n" + + "\013host_format\030\003 \001(\0162J.google.cloud.or" + + "acledatabase.v1.DatabaseConnectionStringProfile.HostFormatB\003\340A\003\022\030\n" + "\013is_regional\030\004 \001(\010B\003\340A\003\022_\n" - + "\010protocol\030\005 \001(\0162H.google.cloud.oracledatabase.v1.Data" - + "baseConnectionStringProfile.ProtocolB\003\340A\003\022f\n" - + "\014session_mode\030\006 \001(\0162K.google.cloud.o" - + "racledatabase.v1.DatabaseConnectionStringProfile.SessionModeB\003\340A\003\022h\n\r" - + "syntax_format\030\007 \001(\0162L.google.cloud.oracledatabase.v" - + "1.DatabaseConnectionStringProfile.SyntaxFormatB\003\340A\003\022r\n" - + "\022tls_authentication\030\010 \001(\0162Q.google.cloud.oracledatabase.v1.Databas" - + "eConnectionStringProfile.TLSAuthenticationB\003\340A\003\022\022\n" + + "\010protocol\030\005 \001(\0162H.google.clo" + + "ud.oracledatabase.v1.DatabaseConnectionStringProfile.ProtocolB\003\340A\003\022f\n" + + "\014session_mode\030\006 \001(\0162K.google.cloud.oracledatabase.v" + + "1.DatabaseConnectionStringProfile.SessionModeB\003\340A\003\022h\n\r" + + "syntax_format\030\007 \001(\0162L.goog" + + "le.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormatB\003\340A\003\022r\n" + + "\022tls_authentication\030\010 \001(\0162Q.google.cloud." + + "oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthenticationB\003\340A\003\022\022\n" + "\005value\030\t \001(\tB\003\340A\003\"d\n\r" + "ConsumerGroup\022\036\n" + "\032CONSUMER_GROUP_UNSPECIFIED\020\000\022\010\n" @@ -301,8 +352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "EZCONNECTPLUS\020\003\"O\n" + "\021TLSAuthentication\022\"\n" + "\036TLS_AUTHENTICATION_UNSPECIFIED\020\000\022\n\n" - + "\006SERVER\020\001\022\n" - + "\n" + + "\006SERVER\020\001\022\n\n" + "\006MUTUAL\020\002\"P\n" + "\024AllConnectionStrings\022\021\n" + "\004high\030\001 \001(\tB\003\340A\003\022\020\n" @@ -328,7 +378,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#disaster_recovery_role_changed_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\256\001\n" + "\031ScheduledOperationDetails\0220\n" - + "\013day_of_week\030\001 \001(\0162\026.google.type.DayOfWeekB\003\340A\003\022/\n\n" + + "\013day_of_week\030\001 \001(\0162\026.google.type.DayOfWeekB\003\340A\003\022/\n" + + "\n" + "start_time\030\004 \001(\0132\026.google.type.TimeOfDayB\003\340A\003\022.\n" + "\tstop_time\030\005 \001(\0132\026.google.type.TimeOfDayB\003\340A\003*B\n" + "\014GenerateType\022\035\n" @@ -374,10 +425,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002DW\020\002\022\007\n" + "\003AJD\020\003\022\010\n" + "\004APEX\020\004B\361\001\n" - + "\"com.google.cloud.oracledatabase.v1B\027AutonomousDatabaseP" - + "rotoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabase" - + "pb\252\002\036Google.Cloud.OracleDatabase.V1\312\002\036Go" - + "ogle\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B\027AutonomousDatabaseProtoP\001ZJcloud.g" + + "oogle.com/go/oracledatabase/apiv1/oracle" + + "databasepb;oracledatabasepb\252\002\036Google.Clo" + + "ud.OracleDatabase.V1\312\002\036Google\\Cloud\\Orac" + + "leDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -406,7 +458,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", "Network", "Cidr", + "OdbNetwork", + "OdbSubnet", + "SourceConfig", + "PeerAutonomousDatabases", "CreateTime", + "DisasterRecoverySupportedLocations", }); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_LabelsEntry_descriptor = internal_static_google_cloud_oracledatabase_v1_AutonomousDatabase_descriptor @@ -418,8 +475,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor = + internal_static_google_cloud_oracledatabase_v1_SourceConfig_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_SourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_SourceConfig_descriptor, + new java.lang.String[] { + "AutonomousDatabase", "AutomaticBackupsReplicationEnabled", + }); + internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseProperties_descriptor, @@ -479,11 +544,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OciUrl", "TotalAutoBackupStorageSizeGbs", "NextLongTermBackupTime", + "DataGuardRoleChangedTime", + "DisasterRecoveryRoleChangedTime", "MaintenanceBeginTime", "MaintenanceEndTime", + "AllowlistedIps", + "EncryptionKey", + "EncryptionKeyHistoryEntries", + "ServiceAgentEmail", + }); + internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_descriptor, + new java.lang.String[] { + "EncryptionKey", "ActivationTime", + }); + internal_static_google_cloud_oracledatabase_v1_EncryptionKey_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_EncryptionKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_EncryptionKey_descriptor, + new java.lang.String[] { + "Provider", "KmsKey", }); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseApex_descriptor, @@ -491,7 +578,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApexVersion", "OrdsVersion", }); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionStrings_descriptor, @@ -499,7 +586,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AllConnectionStrings", "Dedicated", "High", "Low", "Medium", "Profiles", }); internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_DatabaseConnectionStringProfile_descriptor, @@ -515,7 +602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", }); internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_AllConnectionStrings_descriptor, @@ -523,7 +610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "High", "Low", "Medium", }); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseConnectionUrls_descriptor, @@ -538,7 +625,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SqlDevWebUri", }); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_AutonomousDatabaseStandbySummary_descriptor, @@ -550,7 +637,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisasterRecoveryRoleChangedTime", }); internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ScheduledOperationDetails_descriptor, diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructure.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructure.java index 507c429d39cd..d282f783b0e2 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructure.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructure.java @@ -200,7 +200,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
                                              -   * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
                                              +   * Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is
                                              +   * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +   * zone based on availability.
                                                  * 
                                              * * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -224,7 +226,9 @@ public java.lang.String getGcpOracleZone() { * * *
                                              -   * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
                                              +   * Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is
                                              +   * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +   * zone based on availability.
                                                  * 
                                              * * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1312,7 +1316,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
                                              -     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
                                              +     * Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                                    * 
                                              * * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1335,7 +1341,9 @@ public java.lang.String getGcpOracleZone() { * * *
                                              -     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
                                              +     * Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                                    * 
                                              * * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1358,7 +1366,9 @@ public com.google.protobuf.ByteString getGcpOracleZoneBytes() { * * *
                                              -     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
                                              +     * Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                                    * 
                                              * * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1380,7 +1390,9 @@ public Builder setGcpOracleZone(java.lang.String value) { * * *
                                              -     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
                                              +     * Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                                    * 
                                              * * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1398,7 +1410,9 @@ public Builder clearGcpOracleZone() { * * *
                                              -     * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
                                              +     * Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                                    * 
                                              * * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureOrBuilder.java index f27ef9665a29..ba3d07bb8522 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureOrBuilder.java @@ -84,7 +84,9 @@ public interface CloudExadataInfrastructureOrBuilder * * *
                                              -   * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
                                              +   * Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is
                                              +   * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +   * zone based on availability.
                                                  * 
                                              * * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -97,7 +99,9 @@ public interface CloudExadataInfrastructureOrBuilder * * *
                                              -   * Optional. Google Cloud Platform location where Oracle Exadata is hosted.
                                              +   * Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is
                                              +   * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +   * zone based on availability.
                                                  * 
                                              * * string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java index 59310b506901..0ebe69e6b405 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java @@ -52,6 +52,9 @@ private CloudExadataInfrastructureProperties() { customerContacts_ = java.util.Collections.emptyList(); monthlyStorageServerVersion_ = ""; monthlyDbServerVersion_ = ""; + computeModel_ = 0; + databaseServerType_ = ""; + storageServerType_ = ""; } @java.lang.Override @@ -1374,6 +1377,153 @@ public com.google.protobuf.ByteString getMonthlyDbServerVersionBytes() { } } + public static final int COMPUTE_MODEL_FIELD_NUMBER = 31; + private int computeModel_ = 0; + + /** + * + * + *
                                              +   * Output only. The compute model of the Exadata Infrastructure.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for computeModel. + */ + @java.lang.Override + public int getComputeModelValue() { + return computeModel_; + } + + /** + * + * + *
                                              +   * Output only. The compute model of the Exadata Infrastructure.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ComputeModel getComputeModel() { + com.google.cloud.oracledatabase.v1.ComputeModel result = + com.google.cloud.oracledatabase.v1.ComputeModel.forNumber(computeModel_); + return result == null ? com.google.cloud.oracledatabase.v1.ComputeModel.UNRECOGNIZED : result; + } + + public static final int DATABASE_SERVER_TYPE_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseServerType_ = ""; + + /** + * + * + *
                                              +   * Output only. The database server type of the Exadata Infrastructure.
                                              +   * 
                                              + * + * string database_server_type = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The databaseServerType. + */ + @java.lang.Override + public java.lang.String getDatabaseServerType() { + java.lang.Object ref = databaseServerType_; + 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(); + databaseServerType_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The database server type of the Exadata Infrastructure.
                                              +   * 
                                              + * + * string database_server_type = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for databaseServerType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseServerTypeBytes() { + java.lang.Object ref = databaseServerType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseServerType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_SERVER_TYPE_FIELD_NUMBER = 30; + + @SuppressWarnings("serial") + private volatile java.lang.Object storageServerType_ = ""; + + /** + * + * + *
                                              +   * Output only. The storage server type of the Exadata Infrastructure.
                                              +   * 
                                              + * + * string storage_server_type = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The storageServerType. + */ + @java.lang.Override + public java.lang.String getStorageServerType() { + java.lang.Object ref = storageServerType_; + 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(); + storageServerType_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The storage server type of the Exadata Infrastructure.
                                              +   * 
                                              + * + * string storage_server_type = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for storageServerType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageServerTypeBytes() { + java.lang.Object ref = storageServerType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageServerType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1472,6 +1622,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monthlyDbServerVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, monthlyDbServerVersion_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseServerType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, databaseServerType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageServerType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, storageServerType_); + } + if (computeModel_ + != com.google.cloud.oracledatabase.v1.ComputeModel.COMPUTE_MODEL_UNSPECIFIED.getNumber()) { + output.writeEnum(31, computeModel_); + } getUnknownFields().writeTo(output); } @@ -1571,6 +1731,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monthlyDbServerVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, monthlyDbServerVersion_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseServerType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, databaseServerType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageServerType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, storageServerType_); + } + if (computeModel_ + != com.google.cloud.oracledatabase.v1.ComputeModel.COMPUTE_MODEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(31, computeModel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1628,6 +1798,9 @@ public boolean equals(final java.lang.Object obj) { if (!getMonthlyStorageServerVersion().equals(other.getMonthlyStorageServerVersion())) return false; if (!getMonthlyDbServerVersion().equals(other.getMonthlyDbServerVersion())) return false; + if (computeModel_ != other.computeModel_) return false; + if (!getDatabaseServerType().equals(other.getDatabaseServerType())) return false; + if (!getStorageServerType().equals(other.getStorageServerType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1707,6 +1880,12 @@ public int hashCode() { hash = (53 * hash) + getMonthlyStorageServerVersion().hashCode(); hash = (37 * hash) + MONTHLY_DB_SERVER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMonthlyDbServerVersion().hashCode(); + hash = (37 * hash) + COMPUTE_MODEL_FIELD_NUMBER; + hash = (53 * hash) + computeModel_; + hash = (37 * hash) + DATABASE_SERVER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseServerType().hashCode(); + hash = (37 * hash) + STORAGE_SERVER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getStorageServerType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1908,6 +2087,9 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x01000000); monthlyStorageServerVersion_ = ""; monthlyDbServerVersion_ = ""; + computeModel_ = 0; + databaseServerType_ = ""; + storageServerType_ = ""; return this; } @@ -2053,6 +2235,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x04000000) != 0)) { result.monthlyDbServerVersion_ = monthlyDbServerVersion_; } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.computeModel_ = computeModel_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.databaseServerType_ = databaseServerType_; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.storageServerType_ = storageServerType_; + } result.bitField0_ |= to_bitField0_; } @@ -2227,6 +2418,19 @@ public Builder mergeFrom( bitField0_ |= 0x04000000; onChanged(); } + if (other.computeModel_ != 0) { + setComputeModelValue(other.getComputeModelValue()); + } + if (!other.getDatabaseServerType().isEmpty()) { + databaseServerType_ = other.databaseServerType_; + bitField0_ |= 0x10000000; + onChanged(); + } + if (!other.getStorageServerType().isEmpty()) { + storageServerType_ = other.storageServerType_; + bitField0_ |= 0x20000000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2427,6 +2631,24 @@ public Builder mergeFrom( bitField0_ |= 0x04000000; break; } // case 218 + case 234: + { + databaseServerType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x10000000; + break; + } // case 234 + case 242: + { + storageServerType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x20000000; + break; + } // case 242 + case 248: + { + computeModel_ = input.readEnum(); + bitField0_ |= 0x08000000; + break; + } // case 248 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5363,6 +5585,333 @@ public Builder setMonthlyDbServerVersionBytes(com.google.protobuf.ByteString val return this; } + private int computeModel_ = 0; + + /** + * + * + *
                                              +     * Output only. The compute model of the Exadata Infrastructure.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for computeModel. + */ + @java.lang.Override + public int getComputeModelValue() { + return computeModel_; + } + + /** + * + * + *
                                              +     * Output only. The compute model of the Exadata Infrastructure.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for computeModel to set. + * @return This builder for chaining. + */ + public Builder setComputeModelValue(int value) { + computeModel_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The compute model of the Exadata Infrastructure.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ComputeModel getComputeModel() { + com.google.cloud.oracledatabase.v1.ComputeModel result = + com.google.cloud.oracledatabase.v1.ComputeModel.forNumber(computeModel_); + return result == null ? com.google.cloud.oracledatabase.v1.ComputeModel.UNRECOGNIZED : result; + } + + /** + * + * + *
                                              +     * Output only. The compute model of the Exadata Infrastructure.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The computeModel to set. + * @return This builder for chaining. + */ + public Builder setComputeModel(com.google.cloud.oracledatabase.v1.ComputeModel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x08000000; + computeModel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The compute model of the Exadata Infrastructure.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearComputeModel() { + bitField0_ = (bitField0_ & ~0x08000000); + computeModel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object databaseServerType_ = ""; + + /** + * + * + *
                                              +     * Output only. The database server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string database_server_type = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The databaseServerType. + */ + public java.lang.String getDatabaseServerType() { + java.lang.Object ref = databaseServerType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseServerType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The database server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string database_server_type = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for databaseServerType. + */ + public com.google.protobuf.ByteString getDatabaseServerTypeBytes() { + java.lang.Object ref = databaseServerType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseServerType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The database server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string database_server_type = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The databaseServerType to set. + * @return This builder for chaining. + */ + public Builder setDatabaseServerType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseServerType_ = value; + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The database server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string database_server_type = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseServerType() { + databaseServerType_ = getDefaultInstance().getDatabaseServerType(); + bitField0_ = (bitField0_ & ~0x10000000); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The database server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string database_server_type = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for databaseServerType to set. + * @return This builder for chaining. + */ + public Builder setDatabaseServerTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseServerType_ = value; + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + private java.lang.Object storageServerType_ = ""; + + /** + * + * + *
                                              +     * Output only. The storage server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string storage_server_type = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The storageServerType. + */ + public java.lang.String getStorageServerType() { + java.lang.Object ref = storageServerType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageServerType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The storage server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string storage_server_type = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for storageServerType. + */ + public com.google.protobuf.ByteString getStorageServerTypeBytes() { + java.lang.Object ref = storageServerType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageServerType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The storage server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string storage_server_type = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The storageServerType to set. + * @return This builder for chaining. + */ + public Builder setStorageServerType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storageServerType_ = value; + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The storage server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string storage_server_type = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStorageServerType() { + storageServerType_ = getDefaultInstance().getStorageServerType(); + bitField0_ = (bitField0_ & ~0x20000000); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The storage server type of the Exadata Infrastructure.
                                              +     * 
                                              + * + * string storage_server_type = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for storageServerType to set. + * @return This builder for chaining. + */ + public Builder setStorageServerTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageServerType_ = value; + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java index 639337ee876c..ab17e3197c9f 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java @@ -661,4 +661,86 @@ com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder getCustomerContactsO * @return The bytes for monthlyDbServerVersion. */ com.google.protobuf.ByteString getMonthlyDbServerVersionBytes(); + + /** + * + * + *
                                              +   * Output only. The compute model of the Exadata Infrastructure.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for computeModel. + */ + int getComputeModelValue(); + + /** + * + * + *
                                              +   * Output only. The compute model of the Exadata Infrastructure.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeModel. + */ + com.google.cloud.oracledatabase.v1.ComputeModel getComputeModel(); + + /** + * + * + *
                                              +   * Output only. The database server type of the Exadata Infrastructure.
                                              +   * 
                                              + * + * string database_server_type = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The databaseServerType. + */ + java.lang.String getDatabaseServerType(); + + /** + * + * + *
                                              +   * Output only. The database server type of the Exadata Infrastructure.
                                              +   * 
                                              + * + * string database_server_type = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for databaseServerType. + */ + com.google.protobuf.ByteString getDatabaseServerTypeBytes(); + + /** + * + * + *
                                              +   * Output only. The storage server type of the Exadata Infrastructure.
                                              +   * 
                                              + * + * string storage_server_type = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The storageServerType. + */ + java.lang.String getStorageServerType(); + + /** + * + * + *
                                              +   * Output only. The storage server type of the Exadata Infrastructure.
                                              +   * 
                                              + * + * string storage_server_type = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for storageServerType. + */ + com.google.protobuf.ByteString getStorageServerTypeBytes(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java index 984eb06375fb..5d066669d399 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java @@ -75,7 +75,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "8oracledatabase.googleapis.com/CloudExadataInfrastr" + "ucture\022bprojects/{project}/locations/{location}/cloudExadataInfrastructures/{clo" + "ud_exadata_infrastructure}*\033cloudExadata" - + "Infrastructures2\032cloudExadataInfrastructure\"\246\n\n" + + "Infrastructures2\032cloudExadataInfrastructure\"\265\013\n" + "$CloudExadataInfrastructureProperties\022\021\n" + "\004ocid\030\001 \001(\tB\003\340A\003\022\032\n\r" + "compute_count\030\002 \001(\005B\003\340A\001\022\032\n\r" @@ -110,7 +110,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021customer_contacts\030\031 \003(\0132/.google" + ".cloud.oracledatabase.v1.CustomerContactB\003\340A\001\022+\n" + "\036monthly_storage_server_version\030\032 \001(\tB\003\340A\003\022&\n" - + "\031monthly_db_server_version\030\033 \001(\tB\003\340A\003\"\227\001\n" + + "\031monthly_db_server_version\030\033 \001(\tB\003\340A\003\022H\n\r" + + "compute_model\030\037 \001(\0162,.goog" + + "le.cloud.oracledatabase.v1.ComputeModelB\003\340A\003\022!\n" + + "\024database_server_type\030\035 \001(\tB\003\340A\003\022 \n" + + "\023storage_server_type\030\036 \001(\tB\003\340A\003\"\227\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\020\n" + "\014PROVISIONING\020\001\022\r\n" @@ -121,15 +125,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006FAILED\020\006\022\033\n" + "\027MAINTENANCE_IN_PROGRESS\020\007\"\245\005\n" + "\021MaintenanceWindow\022f\n\n" - + "preference\030\001 \001(\0162M.google.cloud.oracledatabase.v1." - + "MaintenanceWindow.MaintenanceWindowPreferenceB\003\340A\001\022\'\n" + + "preference\030\001 \001(\0162M.google.c" + + "loud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreferenceB\003\340A\001\022\'\n" + "\006months\030\002 \003(\0162\022.google.type.MonthB\003\340A\001\022\033\n" + "\016weeks_of_month\030\003 \003(\005B\003\340A\001\0221\n" + "\014days_of_week\030\004 \003(\0162\026.google.type.DayOfWeekB\003\340A\001\022\031\n" + "\014hours_of_day\030\005 \003(\005B\003\340A\001\022\033\n" + "\016lead_time_week\030\006 \001(\005B\003\340A\001\022Z\n\r" - + "patching_mode\030\007 \001(\0162>.google.cloud.oracledatabase" - + ".v1.MaintenanceWindow.PatchingModeB\003\340A\001\022\'\n" + + "patching_mode\030\007 \001(\0162>.goog" + + "le.cloud.oracledatabase.v1.MaintenanceWindow.PatchingModeB\003\340A\001\022\'\n" + "\032custom_action_timeout_mins\030\010 \001(\005B\003\340A\001\022-\n" + " is_custom_action_timeout_enabled\030\t \001(\010B\003\340A\001\"v\n" + "\033MaintenanceWindowPreference\022-\n" @@ -140,11 +144,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031PATCHING_MODE_UNSPECIFIED\020\000\022\013\n" + "\007ROLLING\020\001\022\017\n" + "\013NON_ROLLING\020\002B\371\001\n" - + "\"com.google.cloud.oracledatabase.v1B\037CloudExadataInfrastructureProtoP\001ZJ" - + "cloud.google.com/go/oracledatabase/apiv1" - + "/oracledatabasepb;oracledatabasepb\252\002\036Goo" - + "gle.Cloud.OracleDatabase.V1\312\002\036Google\\Clo" - + "ud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B\037CloudExadata" + + "InfrastructureProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb" + + ";oracledatabasepb\252\002\036Google.Cloud.OracleD" + + "atabase.V1\312\002\036Google\\Cloud\\OracleDatabase" + + "\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -214,6 +218,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomerContacts", "MonthlyStorageServerVersion", "MonthlyDbServerVersion", + "ComputeModel", + "DatabaseServerType", + "StorageServerType", }); internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java index cba3e575cd8d..82d25fb96c35 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java @@ -44,10 +44,13 @@ private CloudVmCluster() { name_ = ""; exadataInfrastructure_ = ""; displayName_ = ""; - gcpOracleZone_ = ""; cidr_ = ""; backupSubnetCidr_ = ""; network_ = ""; + gcpOracleZone_ = ""; + odbNetwork_ = ""; + odbSubnet_ = ""; + backupOdbSubnet_ = ""; } @java.lang.Override @@ -253,61 +256,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } - public static final int GCP_ORACLE_ZONE_FIELD_NUMBER = 12; - - @SuppressWarnings("serial") - private volatile java.lang.Object gcpOracleZone_ = ""; - - /** - * - * - *
                                              -   * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
                                              -   * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
                                              -   * 
                                              - * - * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The gcpOracleZone. - */ - @java.lang.Override - public java.lang.String getGcpOracleZone() { - java.lang.Object ref = gcpOracleZone_; - 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(); - gcpOracleZone_ = s; - return s; - } - } - - /** - * - * - *
                                              -   * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
                                              -   * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
                                              -   * 
                                              - * - * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for gcpOracleZone. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGcpOracleZoneBytes() { - java.lang.Object ref = gcpOracleZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gcpOracleZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int PROPERTIES_FIELD_NUMBER = 6; private com.google.cloud.oracledatabase.v1.CloudVmClusterProperties properties_; @@ -536,10 +484,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
                                              -   * Required. Network settings. CIDR to use for cluster IP allocation.
                                              +   * Optional. Network settings. CIDR to use for cluster IP allocation.
                                                  * 
                                              * - * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * string cidr = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The cidr. */ @@ -560,10 +508,10 @@ public java.lang.String getCidr() { * * *
                                              -   * Required. Network settings. CIDR to use for cluster IP allocation.
                                              +   * Optional. Network settings. CIDR to use for cluster IP allocation.
                                                  * 
                                              * - * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * string cidr = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for cidr. */ @@ -589,10 +537,10 @@ public com.google.protobuf.ByteString getCidrBytes() { * * *
                                              -   * Required. CIDR range of the backup subnet.
                                              +   * Optional. CIDR range of the backup subnet.
                                                  * 
                                              * - * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The backupSubnetCidr. */ @@ -613,10 +561,10 @@ public java.lang.String getBackupSubnetCidr() { * * *
                                              -   * Required. CIDR range of the backup subnet.
                                              +   * Optional. CIDR range of the backup subnet.
                                                  * 
                                              * - * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for backupSubnetCidr. */ @@ -642,12 +590,12 @@ public com.google.protobuf.ByteString getBackupSubnetCidrBytes() { * * *
                                              -   * Required. The name of the VPC network.
                                              +   * Optional. The name of the VPC network.
                                                  * Format: projects/{project}/global/networks/{network}
                                                  * 
                                              * * - * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The network. @@ -669,12 +617,12 @@ public java.lang.String getNetwork() { * * *
                                              -   * Required. The name of the VPC network.
                                              +   * Optional. The name of the VPC network.
                                                  * Format: projects/{project}/global/networks/{network}
                                                  * 
                                              * * - * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for network. @@ -692,135 +640,473 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int GCP_ORACLE_ZONE_FIELD_NUMBER = 12; - memoizedIsInitialized = 1; - return true; - } + @SuppressWarnings("serial") + private volatile java.lang.Object gcpOracleZone_ = ""; + /** + * + * + *
                                              +   * Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted.
                                              +   * This will be the same as the gcp_oracle_zone of the
                                              +   * CloudExadataInfrastructure. Example: us-east4-b-r2.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcpOracleZone. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exadataInfrastructure_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exadataInfrastructure_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getProperties()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(8, getCreateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupSubnetCidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, backupSubnetCidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, gcpOracleZone_); + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + 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(); + gcpOracleZone_ = s; + return s; } - getUnknownFields().writeTo(output); } + /** + * + * + *
                                              +   * Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted.
                                              +   * This will be the same as the gcp_oracle_zone of the
                                              +   * CloudExadataInfrastructure. Example: us-east4-b-r2.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcpOracleZone. + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exadataInfrastructure_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exadataInfrastructure_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProperties()); - } - 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(7, labels__); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupSubnetCidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, backupSubnetCidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, gcpOracleZone_); + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; } + public static final int ODB_NETWORK_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbNetwork_ = ""; + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the VM Cluster.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +   * It is optional but if specified, this should match the parent ODBNetwork of
                                              +   * the odb_subnet and backup_odb_subnet.
                                              +   * 
                                              + * + * + * string odb_network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.oracledatabase.v1.CloudVmCluster)) { - return super.equals(obj); + public java.lang.String getOdbNetwork() { + java.lang.Object ref = odbNetwork_; + 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(); + odbNetwork_ = s; + return s; } - com.google.cloud.oracledatabase.v1.CloudVmCluster other = - (com.google.cloud.oracledatabase.v1.CloudVmCluster) obj; + } - if (!getName().equals(other.getName())) return false; - if (!getExadataInfrastructure().equals(other.getExadataInfrastructure())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getGcpOracleZone().equals(other.getGcpOracleZone())) return false; - if (hasProperties() != other.hasProperties()) return false; - if (hasProperties()) { - if (!getProperties().equals(other.getProperties())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the VM Cluster.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +   * It is optional but if specified, this should match the parent ODBNetwork of
                                              +   * the odb_subnet and backup_odb_subnet.
                                              +   * 
                                              + * + * + * string odb_network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbNetworkBytes() { + java.lang.Object ref = odbNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (!getCidr().equals(other.getCidr())) return false; - if (!getBackupSubnetCidr().equals(other.getBackupSubnetCidr())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; } + public static final int ODB_SUBNET_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbSubnet_ = ""; + + /** + * + * + *
                                              +   * Optional. The name of the OdbSubnet associated with the VM Cluster for
                                              +   * IP allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public java.lang.String getOdbSubnet() { + java.lang.Object ref = odbSubnet_; + 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(); + odbSubnet_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The name of the OdbSubnet associated with the VM Cluster for
                                              +   * IP allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbSubnetBytes() { + java.lang.Object ref = odbSubnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_ODB_SUBNET_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupOdbSubnet_ = ""; + + /** + * + * + *
                                              +   * Optional. The name of the backup OdbSubnet associated with the VM Cluster.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string backup_odb_subnet = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The backupOdbSubnet. + */ + @java.lang.Override + public java.lang.String getBackupOdbSubnet() { + java.lang.Object ref = backupOdbSubnet_; + 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(); + backupOdbSubnet_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The name of the backup OdbSubnet associated with the VM Cluster.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string backup_odb_subnet = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupOdbSubnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupOdbSubnetBytes() { + java.lang.Object ref = backupOdbSubnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupOdbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTITY_CONNECTOR_FIELD_NUMBER = 16; + private com.google.cloud.oracledatabase.v1.IdentityConnector identityConnector_; + + /** + * + * + *
                                              +   * Output only. The identity connector details which will allow OCI to
                                              +   * securely access the resources in the customer project.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the identityConnector field is set. + */ + @java.lang.Override + public boolean hasIdentityConnector() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +   * Output only. The identity connector details which will allow OCI to
                                              +   * securely access the resources in the customer project.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The identityConnector. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.IdentityConnector getIdentityConnector() { + return identityConnector_ == null + ? com.google.cloud.oracledatabase.v1.IdentityConnector.getDefaultInstance() + : identityConnector_; + } + + /** + * + * + *
                                              +   * Output only. The identity connector details which will allow OCI to
                                              +   * securely access the resources in the customer project.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.IdentityConnectorOrBuilder + getIdentityConnectorOrBuilder() { + return identityConnector_ == null + ? com.google.cloud.oracledatabase.v1.IdentityConnector.getDefaultInstance() + : identityConnector_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exadataInfrastructure_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exadataInfrastructure_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getProperties()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupSubnetCidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, backupSubnetCidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, gcpOracleZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, odbNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, odbSubnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupOdbSubnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, backupOdbSubnet_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(16, getIdentityConnector()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exadataInfrastructure_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exadataInfrastructure_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProperties()); + } + 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(7, labels__); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupSubnetCidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, backupSubnetCidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, gcpOracleZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, odbNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, odbSubnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupOdbSubnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, backupOdbSubnet_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getIdentityConnector()); + } + 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.oracledatabase.v1.CloudVmCluster)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CloudVmCluster other = + (com.google.cloud.oracledatabase.v1.CloudVmCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getExadataInfrastructure().equals(other.getExadataInfrastructure())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getCidr().equals(other.getCidr())) return false; + if (!getBackupSubnetCidr().equals(other.getBackupSubnetCidr())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getGcpOracleZone().equals(other.getGcpOracleZone())) return false; + if (!getOdbNetwork().equals(other.getOdbNetwork())) return false; + if (!getOdbSubnet().equals(other.getOdbSubnet())) return false; + if (!getBackupOdbSubnet().equals(other.getBackupOdbSubnet())) return false; + if (hasIdentityConnector() != other.hasIdentityConnector()) return false; + if (hasIdentityConnector()) { + if (!getIdentityConnector().equals(other.getIdentityConnector())) 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(); @@ -830,8 +1116,6 @@ public int hashCode() { hash = (53 * hash) + getExadataInfrastructure().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + GCP_ORACLE_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getGcpOracleZone().hashCode(); if (hasProperties()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getProperties().hashCode(); @@ -850,6 +1134,18 @@ public int hashCode() { hash = (53 * hash) + getBackupSubnetCidr().hashCode(); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + GCP_ORACLE_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGcpOracleZone().hashCode(); + hash = (37 * hash) + ODB_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getOdbNetwork().hashCode(); + hash = (37 * hash) + ODB_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getOdbSubnet().hashCode(); + hash = (37 * hash) + BACKUP_ODB_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getBackupOdbSubnet().hashCode(); + if (hasIdentityConnector()) { + hash = (37 * hash) + IDENTITY_CONNECTOR_FIELD_NUMBER; + hash = (53 * hash) + getIdentityConnector().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1016,6 +1312,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); getCreateTimeFieldBuilder(); + getIdentityConnectorFieldBuilder(); } } @@ -1026,7 +1323,6 @@ public Builder clear() { name_ = ""; exadataInfrastructure_ = ""; displayName_ = ""; - gcpOracleZone_ = ""; properties_ = null; if (propertiesBuilder_ != null) { propertiesBuilder_.dispose(); @@ -1041,7 +1337,16 @@ public Builder clear() { cidr_ = ""; backupSubnetCidr_ = ""; network_ = ""; - return this; + gcpOracleZone_ = ""; + odbNetwork_ = ""; + odbSubnet_ = ""; + backupOdbSubnet_ = ""; + identityConnector_ = null; + if (identityConnectorBuilder_ != null) { + identityConnectorBuilder_.dispose(); + identityConnectorBuilder_ = null; + } + return this; } @java.lang.Override @@ -1086,31 +1391,47 @@ private void buildPartial0(com.google.cloud.oracledatabase.v1.CloudVmCluster res if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.gcpOracleZone_ = gcpOracleZone_; - } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.cidr_ = cidr_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.backupSubnetCidr_ = backupSubnetCidr_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.network_ = network_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.gcpOracleZone_ = gcpOracleZone_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.odbNetwork_ = odbNetwork_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.odbSubnet_ = odbSubnet_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.backupOdbSubnet_ = backupOdbSubnet_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.identityConnector_ = + identityConnectorBuilder_ == null + ? identityConnector_ + : identityConnectorBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1175,34 +1496,52 @@ public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CloudVmCluster other bitField0_ |= 0x00000004; onChanged(); } - if (!other.getGcpOracleZone().isEmpty()) { - gcpOracleZone_ = other.gcpOracleZone_; - bitField0_ |= 0x00000008; - onChanged(); - } if (other.hasProperties()) { mergeProperties(other.getProperties()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (!other.getCidr().isEmpty()) { cidr_ = other.cidr_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getBackupSubnetCidr().isEmpty()) { backupSubnetCidr_ = other.backupSubnetCidr_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getGcpOracleZone().isEmpty()) { + gcpOracleZone_ = other.gcpOracleZone_; bitField0_ |= 0x00000200; onChanged(); } + if (!other.getOdbNetwork().isEmpty()) { + odbNetwork_ = other.odbNetwork_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getOdbSubnet().isEmpty()) { + odbSubnet_ = other.odbSubnet_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getBackupOdbSubnet().isEmpty()) { + backupOdbSubnet_ = other.backupOdbSubnet_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasIdentityConnector()) { + mergeIdentityConnector(other.getIdentityConnector()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1250,7 +1589,7 @@ public Builder mergeFrom( case 50: { input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; break; } // case 50 case 58: @@ -1262,39 +1601,64 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; break; } // case 58 case 66: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; break; } // case 66 case 74: { cidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; break; } // case 74 case 82: { backupSubnetCidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; break; } // case 82 case 90: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; break; } // case 90 case 98: { gcpOracleZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000200; break; } // case 98 + case 106: + { + odbNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 106 + case 114: + { + odbSubnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 114 + case 122: + { + backupOdbSubnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 122 + case 130: + { + input.readMessage( + getIdentityConnectorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1672,122 +2036,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object gcpOracleZone_ = ""; - - /** - * - * - *
                                              -     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
                                              -     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
                                              -     * 
                                              - * - * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The gcpOracleZone. - */ - public java.lang.String getGcpOracleZone() { - java.lang.Object ref = gcpOracleZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gcpOracleZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
                                              -     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
                                              -     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
                                              -     * 
                                              - * - * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for gcpOracleZone. - */ - public com.google.protobuf.ByteString getGcpOracleZoneBytes() { - java.lang.Object ref = gcpOracleZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gcpOracleZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
                                              -     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
                                              -     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
                                              -     * 
                                              - * - * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The gcpOracleZone to set. - * @return This builder for chaining. - */ - public Builder setGcpOracleZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - gcpOracleZone_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
                                              -     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
                                              -     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
                                              -     * 
                                              - * - * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearGcpOracleZone() { - gcpOracleZone_ = getDefaultInstance().getGcpOracleZone(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
                                              -     * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
                                              -     * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
                                              -     * 
                                              - * - * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for gcpOracleZone to set. - * @return This builder for chaining. - */ - public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - gcpOracleZone_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - private com.google.cloud.oracledatabase.v1.CloudVmClusterProperties properties_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.oracledatabase.v1.CloudVmClusterProperties, @@ -1809,7 +2057,7 @@ public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { * @return Whether the properties field is set. */ public boolean hasProperties() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1856,7 +2104,7 @@ public Builder setProperties( } else { propertiesBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1879,7 +2127,7 @@ public Builder setProperties( } else { propertiesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1898,7 +2146,7 @@ public Builder setProperties( public Builder mergeProperties( com.google.cloud.oracledatabase.v1.CloudVmClusterProperties value) { if (propertiesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000008) != 0) && properties_ != null && properties_ != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties @@ -1911,7 +2159,7 @@ public Builder mergeProperties( propertiesBuilder_.mergeFrom(value); } if (properties_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1929,7 +2177,7 @@ public Builder mergeProperties( *
                                              */ public Builder clearProperties() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); properties_ = null; if (propertiesBuilder_ != null) { propertiesBuilder_.dispose(); @@ -1952,7 +2200,7 @@ public Builder clearProperties() { */ public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.Builder getPropertiesBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return getPropertiesFieldBuilder().getBuilder(); } @@ -2024,7 +2272,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return labels_; } @@ -2114,7 +2362,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2139,7 +2387,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } @@ -2160,7 +2408,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; return this; } @@ -2175,7 +2423,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; return this; } @@ -2200,7 +2448,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2246,7 +2494,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2268,7 +2516,59 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the VM cluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the VM cluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } onChanged(); return this; } @@ -2281,135 +2581,697 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the VM cluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 date and time that the VM cluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.lang.Object cidr_ = ""; + + /** + * + * + *
                                              +     * Optional. Network settings. CIDR to use for cluster IP allocation.
                                              +     * 
                                              + * + * string cidr = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cidr. + */ + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Network settings. CIDR to use for cluster IP allocation.
                                              +     * 
                                              + * + * string cidr = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cidr. + */ + public com.google.protobuf.ByteString getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Network settings. CIDR to use for cluster IP allocation.
                                              +     * 
                                              + * + * string cidr = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cidr to set. + * @return This builder for chaining. + */ + public Builder setCidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cidr_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Network settings. CIDR to use for cluster IP allocation.
                                              +     * 
                                              + * + * string cidr = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCidr() { + cidr_ = getDefaultInstance().getCidr(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Network settings. CIDR to use for cluster IP allocation.
                                              +     * 
                                              + * + * string cidr = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for cidr to set. + * @return This builder for chaining. + */ + public Builder setCidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidr_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object backupSubnetCidr_ = ""; + + /** + * + * + *
                                              +     * Optional. CIDR range of the backup subnet.
                                              +     * 
                                              + * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backupSubnetCidr. + */ + public java.lang.String getBackupSubnetCidr() { + java.lang.Object ref = backupSubnetCidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupSubnetCidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. CIDR range of the backup subnet.
                                              +     * 
                                              + * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backupSubnetCidr. + */ + public com.google.protobuf.ByteString getBackupSubnetCidrBytes() { + java.lang.Object ref = backupSubnetCidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupSubnetCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. CIDR range of the backup subnet.
                                              +     * 
                                              + * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The backupSubnetCidr to set. + * @return This builder for chaining. + */ + public Builder setBackupSubnetCidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupSubnetCidr_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. CIDR range of the backup subnet.
                                              +     * 
                                              + * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBackupSubnetCidr() { + backupSubnetCidr_ = getDefaultInstance().getBackupSubnetCidr(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. CIDR range of the backup subnet.
                                              +     * 
                                              + * + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for backupSubnetCidr to set. + * @return This builder for chaining. + */ + public Builder setBackupSubnetCidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupSubnetCidr_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                              +     * Optional. The name of the VPC network.
                                              +     * Format: projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The name of the VPC network.
                                              +     * Format: projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The name of the VPC network.
                                              +     * Format: projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the VPC network.
                                              +     * Format: projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the VPC network.
                                              +     * Format: projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted.
                                              +     * This will be the same as the gcp_oracle_zone of the
                                              +     * CloudExadataInfrastructure. Example: us-east4-b-r2.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcpOracleZone. + */ + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpOracleZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted.
                                              +     * This will be the same as the gcp_oracle_zone of the
                                              +     * CloudExadataInfrastructure. Example: us-east4-b-r2.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcpOracleZone. + */ + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted.
                                              +     * This will be the same as the gcp_oracle_zone of the
                                              +     * CloudExadataInfrastructure. Example: us-east4-b-r2.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpOracleZone_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted.
                                              +     * This will be the same as the gcp_oracle_zone of the
                                              +     * CloudExadataInfrastructure. Example: us-east4-b-r2.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGcpOracleZone() { + gcpOracleZone_ = getDefaultInstance().getGcpOracleZone(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted.
                                              +     * This will be the same as the gcp_oracle_zone of the
                                              +     * CloudExadataInfrastructure. Example: us-east4-b-r2.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpOracleZone_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object odbNetwork_ = ""; + + /** + * + * + *
                                              +     * Optional. The name of the OdbNetwork associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the odb_subnet and backup_odb_subnet.
                                              +     * 
                                              + * + * + * string odb_network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @return The odbNetwork. */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } + public java.lang.String getOdbNetwork() { + java.lang.Object ref = odbNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + odbNetwork_ = s; + return s; } else { - createTimeBuilder_.mergeFrom(value); - } - if (createTime_ != null) { - bitField0_ |= 0x00000040; - onChanged(); + return (java.lang.String) ref; } - return this; } /** * * *
                                              -     * Output only. The date and time that the VM cluster was created.
                                              +     * Optional. The name of the OdbNetwork associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the odb_subnet and backup_odb_subnet.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for odbNetwork. */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public com.google.protobuf.ByteString getOdbNetworkBytes() { + java.lang.Object ref = odbNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onChanged(); - return this; } /** * * *
                                              -     * Output only. The date and time that the VM cluster was created.
                                              +     * Optional. The name of the OdbNetwork associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the odb_subnet and backup_odb_subnet.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @param value The odbNetwork to set. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; + public Builder setOdbNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + odbNetwork_ = value; + bitField0_ |= 0x00000400; onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + return this; } /** * * *
                                              -     * Output only. The date and time that the VM cluster was created.
                                              +     * Optional. The name of the OdbNetwork associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the odb_subnet and backup_odb_subnet.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } + public Builder clearOdbNetwork() { + odbNetwork_ = getDefaultInstance().getOdbNetwork(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; } /** * * *
                                              -     * Output only. The date and time that the VM cluster was created.
                                              +     * Optional. The name of the OdbNetwork associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the odb_subnet and backup_odb_subnet.
                                                    * 
                                              * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string odb_network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for odbNetwork to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + public Builder setOdbNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return createTimeBuilder_; + checkByteStringIsUtf8(value); + odbNetwork_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; } - private java.lang.Object cidr_ = ""; + private java.lang.Object odbSubnet_ = ""; /** * * *
                                              -     * Required. Network settings. CIDR to use for cluster IP allocation.
                                              +     * Optional. The name of the OdbSubnet associated with the VM Cluster for
                                              +     * IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * string odb_subnet = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @return The cidr. + * @return The odbSubnet. */ - public java.lang.String getCidr() { - java.lang.Object ref = cidr_; + public java.lang.String getOdbSubnet() { + java.lang.Object ref = odbSubnet_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - cidr_ = s; + odbSubnet_ = s; return s; } else { return (java.lang.String) ref; @@ -2420,19 +3282,23 @@ public java.lang.String getCidr() { * * *
                                              -     * Required. Network settings. CIDR to use for cluster IP allocation.
                                              +     * Optional. The name of the OdbSubnet associated with the VM Cluster for
                                              +     * IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * string odb_subnet = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for cidr. + * @return The bytes for odbSubnet. */ - public com.google.protobuf.ByteString getCidrBytes() { - java.lang.Object ref = cidr_; + public com.google.protobuf.ByteString getOdbSubnetBytes() { + java.lang.Object ref = odbSubnet_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cidr_ = b; + odbSubnet_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2443,20 +3309,24 @@ public com.google.protobuf.ByteString getCidrBytes() { * * *
                                              -     * Required. Network settings. CIDR to use for cluster IP allocation.
                                              +     * Optional. The name of the OdbSubnet associated with the VM Cluster for
                                              +     * IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * string odb_subnet = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @param value The cidr to set. + * @param value The odbSubnet to set. * @return This builder for chaining. */ - public Builder setCidr(java.lang.String value) { + public Builder setOdbSubnet(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - cidr_ = value; - bitField0_ |= 0x00000080; + odbSubnet_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2465,16 +3335,20 @@ public Builder setCidr(java.lang.String value) { * * *
                                              -     * Required. Network settings. CIDR to use for cluster IP allocation.
                                              +     * Optional. The name of the OdbSubnet associated with the VM Cluster for
                                              +     * IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * string odb_subnet = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearCidr() { - cidr_ = getDefaultInstance().getCidr(); - bitField0_ = (bitField0_ & ~0x00000080); + public Builder clearOdbSubnet() { + odbSubnet_ = getDefaultInstance().getOdbSubnet(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -2483,44 +3357,52 @@ public Builder clearCidr() { * * *
                                              -     * Required. Network settings. CIDR to use for cluster IP allocation.
                                              +     * Optional. The name of the OdbSubnet associated with the VM Cluster for
                                              +     * IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * string odb_subnet = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for cidr to set. + * @param value The bytes for odbSubnet to set. * @return This builder for chaining. */ - public Builder setCidrBytes(com.google.protobuf.ByteString value) { + public Builder setOdbSubnetBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - cidr_ = value; - bitField0_ |= 0x00000080; + odbSubnet_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } - private java.lang.Object backupSubnetCidr_ = ""; + private java.lang.Object backupOdbSubnet_ = ""; /** * * *
                                              -     * Required. CIDR range of the backup subnet.
                                              +     * Optional. The name of the backup OdbSubnet associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * string backup_odb_subnet = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @return The backupSubnetCidr. + * @return The backupOdbSubnet. */ - public java.lang.String getBackupSubnetCidr() { - java.lang.Object ref = backupSubnetCidr_; + public java.lang.String getBackupOdbSubnet() { + java.lang.Object ref = backupOdbSubnet_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - backupSubnetCidr_ = s; + backupOdbSubnet_ = s; return s; } else { return (java.lang.String) ref; @@ -2531,19 +3413,23 @@ public java.lang.String getBackupSubnetCidr() { * * *
                                              -     * Required. CIDR range of the backup subnet.
                                              +     * Optional. The name of the backup OdbSubnet associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * string backup_odb_subnet = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for backupSubnetCidr. + * @return The bytes for backupOdbSubnet. */ - public com.google.protobuf.ByteString getBackupSubnetCidrBytes() { - java.lang.Object ref = backupSubnetCidr_; + public com.google.protobuf.ByteString getBackupOdbSubnetBytes() { + java.lang.Object ref = backupOdbSubnet_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - backupSubnetCidr_ = b; + backupOdbSubnet_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2554,20 +3440,24 @@ public com.google.protobuf.ByteString getBackupSubnetCidrBytes() { * * *
                                              -     * Required. CIDR range of the backup subnet.
                                              +     * Optional. The name of the backup OdbSubnet associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * string backup_odb_subnet = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @param value The backupSubnetCidr to set. + * @param value The backupOdbSubnet to set. * @return This builder for chaining. */ - public Builder setBackupSubnetCidr(java.lang.String value) { + public Builder setBackupOdbSubnet(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - backupSubnetCidr_ = value; - bitField0_ |= 0x00000100; + backupOdbSubnet_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -2576,16 +3466,20 @@ public Builder setBackupSubnetCidr(java.lang.String value) { * * *
                                              -     * Required. CIDR range of the backup subnet.
                                              +     * Optional. The name of the backup OdbSubnet associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * string backup_odb_subnet = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearBackupSubnetCidr() { - backupSubnetCidr_ = getDefaultInstance().getBackupSubnetCidr(); - bitField0_ = (bitField0_ & ~0x00000100); + public Builder clearBackupOdbSubnet() { + backupOdbSubnet_ = getDefaultInstance().getBackupOdbSubnet(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -2594,76 +3488,75 @@ public Builder clearBackupSubnetCidr() { * * *
                                              -     * Required. CIDR range of the backup subnet.
                                              +     * Optional. The name of the backup OdbSubnet associated with the VM Cluster.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                                    * 
                                              * - * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * string backup_odb_subnet = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for backupSubnetCidr to set. + * @param value The bytes for backupOdbSubnet to set. * @return This builder for chaining. */ - public Builder setBackupSubnetCidrBytes(com.google.protobuf.ByteString value) { + public Builder setBackupOdbSubnetBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - backupSubnetCidr_ = value; - bitField0_ |= 0x00000100; + backupOdbSubnet_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } - private java.lang.Object network_ = ""; + private com.google.cloud.oracledatabase.v1.IdentityConnector identityConnector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.IdentityConnector, + com.google.cloud.oracledatabase.v1.IdentityConnector.Builder, + com.google.cloud.oracledatabase.v1.IdentityConnectorOrBuilder> + identityConnectorBuilder_; /** * * *
                                              -     * Required. The name of the VPC network.
                                              -     * Format: projects/{project}/global/networks/{network}
                                              +     * Output only. The identity connector details which will allow OCI to
                                              +     * securely access the resources in the customer project.
                                                    * 
                                              * * - * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The network. + * @return Whether the identityConnector field is set. */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasIdentityConnector() { + return ((bitField0_ & 0x00002000) != 0); } /** * * *
                                              -     * Required. The name of the VPC network.
                                              -     * Format: projects/{project}/global/networks/{network}
                                              +     * Output only. The identity connector details which will allow OCI to
                                              +     * securely access the resources in the customer project.
                                                    * 
                                              * * - * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The bytes for network. + * @return The identityConnector. */ - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; + public com.google.cloud.oracledatabase.v1.IdentityConnector getIdentityConnector() { + if (identityConnectorBuilder_ == null) { + return identityConnector_ == null + ? com.google.cloud.oracledatabase.v1.IdentityConnector.getDefaultInstance() + : identityConnector_; } else { - return (com.google.protobuf.ByteString) ref; + return identityConnectorBuilder_.getMessage(); } } @@ -2671,23 +3564,25 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
                                              -     * Required. The name of the VPC network.
                                              -     * Format: projects/{project}/global/networks/{network}
                                              +     * Output only. The identity connector details which will allow OCI to
                                              +     * securely access the resources in the customer project.
                                                    * 
                                              * * - * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The network to set. - * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setIdentityConnector( + com.google.cloud.oracledatabase.v1.IdentityConnector value) { + if (identityConnectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identityConnector_ = value; + } else { + identityConnectorBuilder_.setMessage(value); } - network_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -2696,19 +3591,22 @@ public Builder setNetwork(java.lang.String value) { * * *
                                              -     * Required. The name of the VPC network.
                                              -     * Format: projects/{project}/global/networks/{network}
                                              +     * Output only. The identity connector details which will allow OCI to
                                              +     * securely access the resources in the customer project.
                                                    * 
                                              * * - * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00000200); + public Builder setIdentityConnector( + com.google.cloud.oracledatabase.v1.IdentityConnector.Builder builderForValue) { + if (identityConnectorBuilder_ == null) { + identityConnector_ = builderForValue.build(); + } else { + identityConnectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -2717,28 +3615,129 @@ public Builder clearNetwork() { * * *
                                              -     * Required. The name of the VPC network.
                                              -     * Format: projects/{project}/global/networks/{network}
                                              +     * Output only. The identity connector details which will allow OCI to
                                              +     * securely access the resources in the customer project.
                                                    * 
                                              * * - * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public Builder mergeIdentityConnector( + com.google.cloud.oracledatabase.v1.IdentityConnector value) { + if (identityConnectorBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && identityConnector_ != null + && identityConnector_ + != com.google.cloud.oracledatabase.v1.IdentityConnector.getDefaultInstance()) { + getIdentityConnectorBuilder().mergeFrom(value); + } else { + identityConnector_ = value; + } + } else { + identityConnectorBuilder_.mergeFrom(value); + } + if (identityConnector_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** * - * @param value The bytes for network to set. - * @return This builder for chaining. + * + *
                                              +     * Output only. The identity connector details which will allow OCI to
                                              +     * securely access the resources in the customer project.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearIdentityConnector() { + bitField0_ = (bitField0_ & ~0x00002000); + identityConnector_ = null; + if (identityConnectorBuilder_ != null) { + identityConnectorBuilder_.dispose(); + identityConnectorBuilder_ = null; } - checkByteStringIsUtf8(value); - network_ = value; - bitField0_ |= 0x00000200; onChanged(); return this; } + /** + * + * + *
                                              +     * Output only. The identity connector details which will allow OCI to
                                              +     * securely access the resources in the customer project.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.IdentityConnector.Builder + getIdentityConnectorBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getIdentityConnectorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The identity connector details which will allow OCI to
                                              +     * securely access the resources in the customer project.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.IdentityConnectorOrBuilder + getIdentityConnectorOrBuilder() { + if (identityConnectorBuilder_ != null) { + return identityConnectorBuilder_.getMessageOrBuilder(); + } else { + return identityConnector_ == null + ? com.google.cloud.oracledatabase.v1.IdentityConnector.getDefaultInstance() + : identityConnector_; + } + } + + /** + * + * + *
                                              +     * Output only. The identity connector details which will allow OCI to
                                              +     * securely access the resources in the customer project.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.IdentityConnector, + com.google.cloud.oracledatabase.v1.IdentityConnector.Builder, + com.google.cloud.oracledatabase.v1.IdentityConnectorOrBuilder> + getIdentityConnectorFieldBuilder() { + if (identityConnectorBuilder_ == null) { + identityConnectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.IdentityConnector, + com.google.cloud.oracledatabase.v1.IdentityConnector.Builder, + com.google.cloud.oracledatabase.v1.IdentityConnectorOrBuilder>( + getIdentityConnector(), getParentForChildren(), isClean()); + identityConnector_ = null; + } + return identityConnectorBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java index 2e1c6d28d84f..dd99e5072f0b 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java @@ -112,34 +112,6 @@ public interface CloudVmClusterOrBuilder */ com.google.protobuf.ByteString getDisplayNameBytes(); - /** - * - * - *
                                              -   * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
                                              -   * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
                                              -   * 
                                              - * - * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The gcpOracleZone. - */ - java.lang.String getGcpOracleZone(); - - /** - * - * - *
                                              -   * Output only. Google Cloud Platform location where Oracle Exadata is hosted.
                                              -   * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.
                                              -   * 
                                              - * - * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for gcpOracleZone. - */ - com.google.protobuf.ByteString getGcpOracleZoneBytes(); - /** * * @@ -290,10 +262,10 @@ java.lang.String getLabelsOrDefault( * * *
                                              -   * Required. Network settings. CIDR to use for cluster IP allocation.
                                              +   * Optional. Network settings. CIDR to use for cluster IP allocation.
                                                  * 
                                              * - * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * string cidr = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The cidr. */ @@ -303,10 +275,10 @@ java.lang.String getLabelsOrDefault( * * *
                                              -   * Required. Network settings. CIDR to use for cluster IP allocation.
                                              +   * Optional. Network settings. CIDR to use for cluster IP allocation.
                                                  * 
                                              * - * string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * string cidr = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for cidr. */ @@ -316,10 +288,10 @@ java.lang.String getLabelsOrDefault( * * *
                                              -   * Required. CIDR range of the backup subnet.
                                              +   * Optional. CIDR range of the backup subnet.
                                                  * 
                                              * - * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The backupSubnetCidr. */ @@ -329,10 +301,10 @@ java.lang.String getLabelsOrDefault( * * *
                                              -   * Required. CIDR range of the backup subnet.
                                              +   * Optional. CIDR range of the backup subnet.
                                                  * 
                                              * - * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * string backup_subnet_cidr = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for backupSubnetCidr. */ @@ -342,12 +314,12 @@ java.lang.String getLabelsOrDefault( * * *
                                              -   * Required. The name of the VPC network.
                                              +   * Optional. The name of the VPC network.
                                                  * Format: projects/{project}/global/networks/{network}
                                                  * 
                                              * * - * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The network. @@ -358,15 +330,197 @@ java.lang.String getLabelsOrDefault( * * *
                                              -   * Required. The name of the VPC network.
                                              +   * Optional. The name of the VPC network.
                                                  * Format: projects/{project}/global/networks/{network}
                                                  * 
                                              * * - * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for network. */ com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                              +   * Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted.
                                              +   * This will be the same as the gcp_oracle_zone of the
                                              +   * CloudExadataInfrastructure. Example: us-east4-b-r2.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcpOracleZone. + */ + java.lang.String getGcpOracleZone(); + + /** + * + * + *
                                              +   * Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted.
                                              +   * This will be the same as the gcp_oracle_zone of the
                                              +   * CloudExadataInfrastructure. Example: us-east4-b-r2.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcpOracleZone. + */ + com.google.protobuf.ByteString getGcpOracleZoneBytes(); + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the VM Cluster.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +   * It is optional but if specified, this should match the parent ODBNetwork of
                                              +   * the odb_subnet and backup_odb_subnet.
                                              +   * 
                                              + * + * + * string odb_network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ + java.lang.String getOdbNetwork(); + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the VM Cluster.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +   * It is optional but if specified, this should match the parent ODBNetwork of
                                              +   * the odb_subnet and backup_odb_subnet.
                                              +   * 
                                              + * + * + * string odb_network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + com.google.protobuf.ByteString getOdbNetworkBytes(); + + /** + * + * + *
                                              +   * Optional. The name of the OdbSubnet associated with the VM Cluster for
                                              +   * IP allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ + java.lang.String getOdbSubnet(); + + /** + * + * + *
                                              +   * Optional. The name of the OdbSubnet associated with the VM Cluster for
                                              +   * IP allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + com.google.protobuf.ByteString getOdbSubnetBytes(); + + /** + * + * + *
                                              +   * Optional. The name of the backup OdbSubnet associated with the VM Cluster.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string backup_odb_subnet = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The backupOdbSubnet. + */ + java.lang.String getBackupOdbSubnet(); + + /** + * + * + *
                                              +   * Optional. The name of the backup OdbSubnet associated with the VM Cluster.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string backup_odb_subnet = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupOdbSubnet. + */ + com.google.protobuf.ByteString getBackupOdbSubnetBytes(); + + /** + * + * + *
                                              +   * Output only. The identity connector details which will allow OCI to
                                              +   * securely access the resources in the customer project.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the identityConnector field is set. + */ + boolean hasIdentityConnector(); + + /** + * + * + *
                                              +   * Output only. The identity connector details which will allow OCI to
                                              +   * securely access the resources in the customer project.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The identityConnector. + */ + com.google.cloud.oracledatabase.v1.IdentityConnector getIdentityConnector(); + + /** + * + * + *
                                              +   * Output only. The identity connector details which will allow OCI to
                                              +   * securely access the resources in the customer project.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector identity_connector = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.IdentityConnectorOrBuilder getIdentityConnectorOrBuilder(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java index 7b0843353356..8d03d0ce9ea1 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java @@ -59,6 +59,7 @@ private CloudVmClusterProperties() { compartmentId_ = ""; dnsListenerIp_ = ""; clusterName_ = ""; + computeModel_ = 0; } @java.lang.Override @@ -2035,6 +2036,47 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } + public static final int COMPUTE_MODEL_FIELD_NUMBER = 37; + private int computeModel_ = 0; + + /** + * + * + *
                                              +   * Output only. The compute model of the VM Cluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for computeModel. + */ + @java.lang.Override + public int getComputeModelValue() { + return computeModel_; + } + + /** + * + * + *
                                              +   * Output only. The compute model of the VM Cluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ComputeModel getComputeModel() { + com.google.cloud.oracledatabase.v1.ComputeModel result = + com.google.cloud.oracledatabase.v1.ComputeModel.forNumber(computeModel_); + return result == null ? com.google.cloud.oracledatabase.v1.ComputeModel.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2153,6 +2195,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 36, clusterName_); } + if (computeModel_ + != com.google.cloud.oracledatabase.v1.ComputeModel.COMPUTE_MODEL_UNSPECIFIED.getNumber()) { + output.writeEnum(37, computeModel_); + } getUnknownFields().writeTo(output); } @@ -2283,6 +2329,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, clusterName_); } + if (computeModel_ + != com.google.cloud.oracledatabase.v1.ComputeModel.COMPUTE_MODEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(37, computeModel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2341,6 +2391,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCompartmentId().equals(other.getCompartmentId())) return false; if (!getDnsListenerIp().equals(other.getDnsListenerIp())) return false; if (!getClusterName().equals(other.getClusterName())) return false; + if (computeModel_ != other.computeModel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2429,6 +2480,8 @@ public int hashCode() { hash = (53 * hash) + getDnsListenerIp().hashCode(); hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; hash = (53 * hash) + getClusterName().hashCode(); + hash = (37 * hash) + COMPUTE_MODEL_FIELD_NUMBER; + hash = (53 * hash) + computeModel_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2580,6 +2633,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + bitField1_ = 0; ocid_ = ""; licenseType_ = 0; giVersion_ = ""; @@ -2620,6 +2674,7 @@ public Builder clear() { compartmentId_ = ""; dnsListenerIp_ = ""; clusterName_ = ""; + computeModel_ = 0; return this; } @@ -2650,6 +2705,9 @@ public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties buildPartial( if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { + buildPartial1(result); + } onBuilt(); return result; } @@ -2764,6 +2822,13 @@ private void buildPartial0(com.google.cloud.oracledatabase.v1.CloudVmClusterProp result.bitField0_ |= to_bitField0_; } + private void buildPartial1(com.google.cloud.oracledatabase.v1.CloudVmClusterProperties result) { + int from_bitField1_ = bitField1_; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.computeModel_ = computeModel_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2953,6 +3018,9 @@ public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CloudVmClusterProper bitField0_ |= 0x80000000; onChanged(); } + if (other.computeModel_ != 0) { + setComputeModelValue(other.getComputeModelValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3176,6 +3244,12 @@ public Builder mergeFrom( bitField0_ |= 0x80000000; break; } // case 290 + case 296: + { + computeModel_ = input.readEnum(); + bitField1_ |= 0x00000001; + break; + } // case 296 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3194,6 +3268,7 @@ public Builder mergeFrom( } private int bitField0_; + private int bitField1_; private java.lang.Object ocid_ = ""; @@ -6564,6 +6639,111 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { return this; } + private int computeModel_ = 0; + + /** + * + * + *
                                              +     * Output only. The compute model of the VM Cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for computeModel. + */ + @java.lang.Override + public int getComputeModelValue() { + return computeModel_; + } + + /** + * + * + *
                                              +     * Output only. The compute model of the VM Cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for computeModel to set. + * @return This builder for chaining. + */ + public Builder setComputeModelValue(int value) { + computeModel_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The compute model of the VM Cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ComputeModel getComputeModel() { + com.google.cloud.oracledatabase.v1.ComputeModel result = + com.google.cloud.oracledatabase.v1.ComputeModel.forNumber(computeModel_); + return result == null ? com.google.cloud.oracledatabase.v1.ComputeModel.UNRECOGNIZED : result; + } + + /** + * + * + *
                                              +     * Output only. The compute model of the VM Cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The computeModel to set. + * @return This builder for chaining. + */ + public Builder setComputeModel(com.google.cloud.oracledatabase.v1.ComputeModel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000001; + computeModel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The compute model of the VM Cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearComputeModel() { + bitField1_ = (bitField1_ & ~0x00000001); + computeModel_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java index 76843aee265d..e3ab5a8e4e09 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java @@ -846,4 +846,34 @@ public interface CloudVmClusterPropertiesOrBuilder * @return The bytes for clusterName. */ com.google.protobuf.ByteString getClusterNameBytes(); + + /** + * + * + *
                                              +   * Output only. The compute model of the VM Cluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for computeModel. + */ + int getComputeModelValue(); + + /** + * + * + *
                                              +   * Output only. The compute model of the VM Cluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ComputeModel compute_model = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeModel. + */ + com.google.cloud.oracledatabase.v1.ComputeModel getComputeModel(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java index 03fb5a9e409b..6836b9ea1749 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java @@ -56,35 +56,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "/google/cloud/oracledatabase/v1/vm_cluster.proto\022\036google.cloud.oracledatabase.v" + "1\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\032\037google/protobuf/t" - + "imestamp.proto\032\032google/type/datetime.proto\"\326\005\n" + + "le/api/resource.proto\032+google/cloud/orac" + + "ledatabase/v1/common.proto\032\037google/proto" + + "buf/timestamp.proto\032\032google/type/datetime.proto\"\202\010\n" + "\016CloudVmCluster\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022`\n" + "\026exadata_infrastructure\030\002 \001(\tB@\340A\002\372A:\n" + "8oracledatabase.googleapis.com/CloudExadataInfrastructure\022\031\n" - + "\014display_name\030\003 \001(\tB\003\340A\001\022\034\n" - + "\017gcp_oracle_zone\030\014 \001(\tB\003\340A\003\022Q\n\n" - + "properties\030\006 \001(\01328.google.cloud.oracledat" - + "abase.v1.CloudVmClusterPropertiesB\003\340A\001\022O\n" - + "\006labels\030\007 \003(\0132:.google.cloud.oracledata" - + "base.v1.CloudVmCluster.LabelsEntryB\003\340A\001\0224\n" + + "\014display_name\030\003 \001(\tB\003\340A\001\022Q\n\n" + + "properties\030\006 \001(\01328.google." + + "cloud.oracledatabase.v1.CloudVmClusterPropertiesB\003\340A\001\022O\n" + + "\006labels\030\007 \003(\0132:.google.c" + + "loud.oracledatabase.v1.CloudVmCluster.LabelsEntryB\003\340A\001\0224\n" + "\013create_time\030\010" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" - + "\004cidr\030\t \001(\tB\003\340A\002\022\037\n" + + "\004cidr\030\t \001(\tB\003\340A\001\022\037\n" + "\022backup_subnet_cidr\030\n" - + " \001(\tB\003\340A\002\0227\n" - + "\007network\030\013 \001(\tB&\340A\002\372A \n" - + "\036compute.googleapis.com/Network\032-\n" + + " \001(\tB\003\340A\001\0227\n" + + "\007network\030\013 \001(\tB&\340A\001\372A \n" + + "\036compute.googleapis.com/Network\022\034\n" + + "\017gcp_oracle_zone\030\014 \001(\tB\003\340A\003\022E\n" + + "\013odb_network\030\r" + + " \001(\tB0\340A\001\372A*\n" + + "(oracledatabase.googleapis.com/OdbNetwork\022C\n\n" + + "odb_subnet\030\016 \001(\tB/\340A\001\372A)\n" + + "\'oracledatabase.googleapis.com/OdbSubnet\022J\n" + + "\021backup_odb_subnet\030\017 \001(\tB/\340A\001\372A)\n" + + "\'oracledatabase.googleapis.com/OdbSubnet\022R\n" + + "\022identity_connector\030\020" + + " \001(\01321.google.cloud.oracledatabase.v1.IdentityConnectorB\003\340A\003\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" - + ",oracledatabase.googleapis.com/CloudVmCluster\022Jprojects/{projec" - + "t}/locations/{location}/cloudVmClusters/" - + "{cloud_vm_cluster}*\017cloudVmClusters2\016cloudVmCluster\"\234\014\n" + + ",oracledatabase.googleapis.com/CloudVmCluster\022Jprojects/{project}/locations/{l" + + "ocation}/cloudVmClusters/{cloud_vm_cluster}*\017cloudVmClusters2\016cloudVmCluster\"\346\014\n" + "\030CloudVmClusterProperties\022\021\n" + "\004ocid\030\001 \001(\tB\003\340A\003\022_\n" - + "\014license_type\030\002 \001(" - + "\0162D.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseTypeB\003\340A\002\022\027\n\n" + + "\014license_type\030\002 \001(\0162D.google.clou" + + "d.oracledatabase.v1.CloudVmClusterProperties.LicenseTypeB\003\340A\002\022\027\n\n" + "gi_version\030\003 \001(\tB\003\340A\001\022-\n" + "\ttime_zone\030\004 \001(\0132\025.google.type.TimeZoneB\003\340A\001\022\034\n" + "\017ssh_public_keys\030\005 \003(\tB\003\340A\001\022\027\n\n" @@ -97,15 +106,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017storage_size_gb\030\013 \001(\005B\003\340A\003\022!\n" + "\024data_storage_size_tb\030\014 \001(\001B\003\340A\001\022e\n" + "\017disk_redundancy\030\r" - + " \001(\0162G.google.cloud.oracledatabase.v1.C" - + "loudVmClusterProperties.DiskRedundancyB\003\340A\001\022%\n" + + " \001(\0162G.google." + + "cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancyB\003\340A\001\022%\n" + "\030sparse_diskgroup_enabled\030\016 \001(\010B\003\340A\001\022!\n" + "\024local_backup_enabled\030\017 \001(\010B\003\340A\001\022\034\n" + "\017hostname_prefix\030\020 \001(\tB\003\340A\001\022g\n" - + "#diagnostics_data_collection_options\030\023 \001(\01325.googl" - + "e.cloud.oracledatabase.v1.DataCollectionOptionsB\003\340A\001\022R\n" - + "\005state\030\024 \001(\0162>.google.clo" - + "ud.oracledatabase.v1.CloudVmClusterProperties.StateB\003\340A\003\022#\n" + + "#diagnostics_data_collection_options\030\023" + + " \001(\01325.google.cloud.oracledatabase.v1.DataCollectionOptionsB\003\340A\001\022R\n" + + "\005state\030\024 \001(\0162>.google.cloud.oracledataba" + + "se.v1.CloudVmClusterProperties.StateB\003\340A\003\022#\n" + "\026scan_listener_port_tcp\030\025 \001(\005B\003\340A\003\022\'\n" + "\032scan_listener_port_tcp_ssl\030\026 \001(\005B\003\340A\003\022\023\n" + "\006domain\030\027 \001(\tB\003\340A\003\022\025\n" @@ -119,7 +128,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017db_server_ocids\030\037 \003(\tB\003\340A\001\022\033\n" + "\016compartment_id\030 \001(\tB\003\340A\003\022\034\n" + "\017dns_listener_ip\030# \001(\tB\003\340A\003\022\031\n" - + "\014cluster_name\030$ \001(\tB\003\340A\001\"]\n" + + "\014cluster_name\030$ \001(\tB\003\340A\001\022H\n\r" + + "compute_model\030%" + + " \001(\0162,.google.cloud.oracledatabase.v1.ComputeModelB\003\340A\003\"]\n" + "\013LicenseType\022\034\n" + "\030LICENSE_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020LICENSE_INCLUDED\020\001\022\032\n" @@ -141,11 +152,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032diagnostics_events_enabled\030\001 \001(\010B\003\340A\001\022&\n" + "\031health_monitoring_enabled\030\002 \001(\010B\003\340A\001\022\"\n" + "\025incident_logs_enabled\030\003 \001(\010B\003\340A\001B\355\001\n" - + "\"com.google.cloud.oracledatabase.v1B\023CloudVmClusterProtoP\001ZJcloud.google.co" - + "m/go/oracledatabase/apiv1/oracledatabase" - + "pb;oracledatabasepb\252\002\036Google.Cloud.Oracl" - + "eDatabase.V1\312\002\036Google\\Cloud\\OracleDataba" - + "se\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B\023CloudVmClusterProto" + + "P\001ZJcloud.google.com/go/oracledatabase/a" + + "piv1/oracledatabasepb;oracledatabasepb\252\002" + + "\036Google.Cloud.OracleDatabase.V1\312\002\036Google" + + "\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -153,6 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.CommonProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.type.DateTimeProto.getDescriptor(), }); @@ -165,13 +177,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ExadataInfrastructure", "DisplayName", - "GcpOracleZone", "Properties", "Labels", "CreateTime", "Cidr", "BackupSubnetCidr", "Network", + "GcpOracleZone", + "OdbNetwork", + "OdbSubnet", + "BackupOdbSubnet", + "IdentityConnector", }); internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_LabelsEntry_descriptor = internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_descriptor @@ -221,6 +237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompartmentId", "DnsListenerIp", "ClusterName", + "ComputeModel", }); internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_descriptor = getDescriptor().getMessageTypes().get(2); @@ -239,6 +256,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.CommonProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.type.DateTimeProto.getDescriptor(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CommonProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CommonProto.java index 79a1fdca54d5..bf35e66bed71 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CommonProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CommonProto.java @@ -32,6 +32,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_CustomerContact_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_CustomerContact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_IdentityConnector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_IdentityConnector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -44,13 +52,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n+google/cloud/oracledatabase/v1/common." + "proto\022\036google.cloud.oracledatabase.v1\032\037g" + "oogle/api/field_behavior.proto\"%\n\017Custom" - + "erContact\022\022\n\005email\030\001 \001(\tB\003\340A\002B\345\001\n\"com.go" - + "ogle.cloud.oracledatabase.v1B\013CommonProt" - + "oP\001ZJcloud.google.com/go/oracledatabase/" - + "apiv1/oracledatabasepb;oracledatabasepb\252" - + "\002\036Google.Cloud.OracleDatabase.V1\312\002\036Googl" - + "e\\Cloud\\OracleDatabase\\V1\352\002!Google::Clou" - + "d::OracleDatabase::V1b\006proto3" + + "erContact\022\022\n\005email\030\001 \001(\tB\003\340A\002\"\223\002\n\021Identi" + + "tyConnector\022 \n\023service_agent_email\030\001 \001(\t" + + "B\003\340A\003\022`\n\020connection_state\030\002 \001(\0162A.google" + + ".cloud.oracledatabase.v1.IdentityConnect" + + "or.ConnectionStateB\003\340A\003\"z\n\017ConnectionSta" + + "te\022 \n\034CONNECTION_STATE_UNSPECIFIED\020\000\022\r\n\t" + + "CONNECTED\020\001\022\027\n\023PARTIALLY_CONNECTED\020\002\022\020\n\014" + + "DISCONNECTED\020\003\022\013\n\007UNKNOWN\020\004\"\233\001\n\033DataColl" + + "ectionOptionsCommon\022*\n\035is_diagnostics_ev" + + "ents_enabled\030\001 \001(\010B\003\340A\001\022)\n\034is_health_mon" + + "itoring_enabled\030\002 \001(\010B\003\340A\001\022%\n\030is_inciden" + + "t_logs_enabled\030\003 \001(\010B\003\340A\001*]\n\014ComputeMode" + + "l\022\035\n\031COMPUTE_MODEL_UNSPECIFIED\020\000\022\026\n\022COMP" + + "UTE_MODEL_ECPU\020\001\022\026\n\022COMPUTE_MODEL_OCPU\020\002" + + "B\345\001\n\"com.google.cloud.oracledatabase.v1B" + + "\013CommonProtoP\001ZJcloud.google.com/go/orac" + + "ledatabase/apiv1/oracledatabasepb;oracle" + + "databasepb\252\002\036Google.Cloud.OracleDatabase" + + ".V1\312\002\036Google\\Cloud\\OracleDatabase\\V1\352\002!G" + + "oogle::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -66,6 +87,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Email", }); + internal_static_google_cloud_oracledatabase_v1_IdentityConnector_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_IdentityConnector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_IdentityConnector_descriptor, + new java.lang.String[] { + "ServiceAgentEmail", "ConnectionState", + }); + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_descriptor, + new java.lang.String[] { + "IsDiagnosticsEventsEnabled", "IsHealthMonitoringEnabled", "IsIncidentLogsEnabled", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ComputeModel.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ComputeModel.java new file mode 100644 index 000000000000..34ee2430df07 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ComputeModel.java @@ -0,0 +1,184 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The compute model of the Exadata Infrastructure, VM Cluster and Autonomous
                                              + * Database.
                                              + * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.ComputeModel} + */ +public enum ComputeModel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +   * Unspecified compute model.
                                              +   * 
                                              + * + * COMPUTE_MODEL_UNSPECIFIED = 0; + */ + COMPUTE_MODEL_UNSPECIFIED(0), + /** + * + * + *
                                              +   * Abstract measure of compute resources. ECPUs are based on the number of
                                              +   * cores elastically allocated from a pool of compute and storage servers.
                                              +   * 
                                              + * + * COMPUTE_MODEL_ECPU = 1; + */ + COMPUTE_MODEL_ECPU(1), + /** + * + * + *
                                              +   * Physical measure of compute resources. OCPUs are based on the physical
                                              +   * core of a processor.
                                              +   * 
                                              + * + * COMPUTE_MODEL_OCPU = 2; + */ + COMPUTE_MODEL_OCPU(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +   * Unspecified compute model.
                                              +   * 
                                              + * + * COMPUTE_MODEL_UNSPECIFIED = 0; + */ + public static final int COMPUTE_MODEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +   * Abstract measure of compute resources. ECPUs are based on the number of
                                              +   * cores elastically allocated from a pool of compute and storage servers.
                                              +   * 
                                              + * + * COMPUTE_MODEL_ECPU = 1; + */ + public static final int COMPUTE_MODEL_ECPU_VALUE = 1; + + /** + * + * + *
                                              +   * Physical measure of compute resources. OCPUs are based on the physical
                                              +   * core of a processor.
                                              +   * 
                                              + * + * COMPUTE_MODEL_OCPU = 2; + */ + public static final int COMPUTE_MODEL_OCPU_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 ComputeModel 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 ComputeModel forNumber(int value) { + switch (value) { + case 0: + return COMPUTE_MODEL_UNSPECIFIED; + case 1: + return COMPUTE_MODEL_ECPU; + case 2: + return COMPUTE_MODEL_OCPU; + 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 ComputeModel findValueByNumber(int number) { + return ComputeModel.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CommonProto.getDescriptor().getEnumTypes().get(0); + } + + private static final ComputeModel[] VALUES = values(); + + public static ComputeModel 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 ComputeModel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.ComputeModel) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateDbSystemRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateDbSystemRequest.java new file mode 100644 index 000000000000..556ec17c6eea --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateDbSystemRequest.java @@ -0,0 +1,1469 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `DbSystem.Create`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateDbSystemRequest} + */ +public final class CreateDbSystemRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CreateDbSystemRequest) + CreateDbSystemRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateDbSystemRequest.newBuilder() to construct. + private CreateDbSystemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDbSystemRequest() { + parent_ = ""; + dbSystemId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDbSystemRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest.class, + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The value for parent of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 value for parent of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 DB_SYSTEM_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbSystemId_ = ""; + + /** + * + * + *
                                              +   * Required. The ID of the DbSystem to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string db_system_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dbSystemId. + */ + @java.lang.Override + public java.lang.String getDbSystemId() { + java.lang.Object ref = dbSystemId_; + 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(); + dbSystemId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The ID of the DbSystem to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string db_system_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dbSystemId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbSystemIdBytes() { + java.lang.Object ref = dbSystemId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbSystemId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DB_SYSTEM_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.DbSystem dbSystem_; + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dbSystem field is set. + */ + @java.lang.Override + public boolean hasDbSystem() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dbSystem. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystem getDbSystem() { + return dbSystem_ == null + ? com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance() + : dbSystem_; + } + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemOrBuilder getDbSystemOrBuilder() { + return dbSystem_ == null + ? com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance() + : dbSystem_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbSystemId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dbSystemId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDbSystem()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbSystemId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dbSystemId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDbSystem()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + 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.oracledatabase.v1.CreateDbSystemRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest other = + (com.google.cloud.oracledatabase.v1.CreateDbSystemRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDbSystemId().equals(other.getDbSystemId())) return false; + if (hasDbSystem() != other.hasDbSystem()) return false; + if (hasDbSystem()) { + if (!getDbSystem().equals(other.getDbSystem())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + DB_SYSTEM_ID_FIELD_NUMBER; + hash = (53 * hash) + getDbSystemId().hashCode(); + if (hasDbSystem()) { + hash = (37 * hash) + DB_SYSTEM_FIELD_NUMBER; + hash = (53 * hash) + getDbSystem().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest 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.oracledatabase.v1.CreateDbSystemRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest 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.oracledatabase.v1.CreateDbSystemRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `DbSystem.Create`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateDbSystemRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CreateDbSystemRequest) + com.google.cloud.oracledatabase.v1.CreateDbSystemRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest.class, + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CreateDbSystemRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDbSystemFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + dbSystemId_ = ""; + dbSystem_ = null; + if (dbSystemBuilder_ != null) { + dbSystemBuilder_.dispose(); + dbSystemBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateDbSystemRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CreateDbSystemRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateDbSystemRequest build() { + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateDbSystemRequest buildPartial() { + com.google.cloud.oracledatabase.v1.CreateDbSystemRequest result = + new com.google.cloud.oracledatabase.v1.CreateDbSystemRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.CreateDbSystemRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dbSystemId_ = dbSystemId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dbSystem_ = dbSystemBuilder_ == null ? dbSystem_ : dbSystemBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.CreateDbSystemRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CreateDbSystemRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CreateDbSystemRequest other) { + if (other == com.google.cloud.oracledatabase.v1.CreateDbSystemRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDbSystemId().isEmpty()) { + dbSystemId_ = other.dbSystemId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDbSystem()) { + mergeDbSystem(other.getDbSystem()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dbSystemId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDbSystemFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for parent of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 dbSystemId_ = ""; + + /** + * + * + *
                                              +     * Required. The ID of the DbSystem to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string db_system_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dbSystemId. + */ + public java.lang.String getDbSystemId() { + java.lang.Object ref = dbSystemId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbSystemId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the DbSystem to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string db_system_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dbSystemId. + */ + public com.google.protobuf.ByteString getDbSystemIdBytes() { + java.lang.Object ref = dbSystemId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbSystemId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the DbSystem to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string db_system_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dbSystemId to set. + * @return This builder for chaining. + */ + public Builder setDbSystemId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbSystemId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the DbSystem to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string db_system_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDbSystemId() { + dbSystemId_ = getDefaultInstance().getDbSystemId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the DbSystem to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string db_system_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dbSystemId to set. + * @return This builder for chaining. + */ + public Builder setDbSystemIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbSystemId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.DbSystem dbSystem_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystem, + com.google.cloud.oracledatabase.v1.DbSystem.Builder, + com.google.cloud.oracledatabase.v1.DbSystemOrBuilder> + dbSystemBuilder_; + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dbSystem field is set. + */ + public boolean hasDbSystem() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dbSystem. + */ + public com.google.cloud.oracledatabase.v1.DbSystem getDbSystem() { + if (dbSystemBuilder_ == null) { + return dbSystem_ == null + ? com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance() + : dbSystem_; + } else { + return dbSystemBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDbSystem(com.google.cloud.oracledatabase.v1.DbSystem value) { + if (dbSystemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dbSystem_ = value; + } else { + dbSystemBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDbSystem( + com.google.cloud.oracledatabase.v1.DbSystem.Builder builderForValue) { + if (dbSystemBuilder_ == null) { + dbSystem_ = builderForValue.build(); + } else { + dbSystemBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDbSystem(com.google.cloud.oracledatabase.v1.DbSystem value) { + if (dbSystemBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && dbSystem_ != null + && dbSystem_ != com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance()) { + getDbSystemBuilder().mergeFrom(value); + } else { + dbSystem_ = value; + } + } else { + dbSystemBuilder_.mergeFrom(value); + } + if (dbSystem_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDbSystem() { + bitField0_ = (bitField0_ & ~0x00000004); + dbSystem_ = null; + if (dbSystemBuilder_ != null) { + dbSystemBuilder_.dispose(); + dbSystemBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystem.Builder getDbSystemBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDbSystemFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemOrBuilder getDbSystemOrBuilder() { + if (dbSystemBuilder_ != null) { + return dbSystemBuilder_.getMessageOrBuilder(); + } else { + return dbSystem_ == null + ? com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance() + : dbSystem_; + } + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystem, + com.google.cloud.oracledatabase.v1.DbSystem.Builder, + com.google.cloud.oracledatabase.v1.DbSystemOrBuilder> + getDbSystemFieldBuilder() { + if (dbSystemBuilder_ == null) { + dbSystemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystem, + com.google.cloud.oracledatabase.v1.DbSystem.Builder, + com.google.cloud.oracledatabase.v1.DbSystemOrBuilder>( + getDbSystem(), getParentForChildren(), isClean()); + dbSystem_ = null; + } + return dbSystemBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.CreateDbSystemRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CreateDbSystemRequest) + private static final com.google.cloud.oracledatabase.v1.CreateDbSystemRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CreateDbSystemRequest(); + } + + public static com.google.cloud.oracledatabase.v1.CreateDbSystemRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDbSystemRequest 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.oracledatabase.v1.CreateDbSystemRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateDbSystemRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateDbSystemRequestOrBuilder.java new file mode 100644 index 000000000000..a829b09328fe --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateDbSystemRequestOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface CreateDbSystemRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CreateDbSystemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The value for parent of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The value for parent of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Required. The ID of the DbSystem to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string db_system_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dbSystemId. + */ + java.lang.String getDbSystemId(); + + /** + * + * + *
                                              +   * Required. The ID of the DbSystem to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string db_system_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dbSystemId. + */ + com.google.protobuf.ByteString getDbSystemIdBytes(); + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dbSystem field is set. + */ + boolean hasDbSystem(); + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dbSystem. + */ + com.google.cloud.oracledatabase.v1.DbSystem getDbSystem(); + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystem db_system = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.DbSystemOrBuilder getDbSystemOrBuilder(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExadbVmClusterRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExadbVmClusterRequest.java new file mode 100644 index 000000000000..371494bd35e5 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExadbVmClusterRequest.java @@ -0,0 +1,1477 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `ExadbVmCluster.Create`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest} + */ +public final class CreateExadbVmClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest) + CreateExadbVmClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateExadbVmClusterRequest.newBuilder() to construct. + private CreateExadbVmClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateExadbVmClusterRequest() { + parent_ = ""; + exadbVmClusterId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateExadbVmClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The value for parent of the ExadbVmCluster in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 value for parent of the ExadbVmCluster in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 EXADB_VM_CLUSTER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object exadbVmClusterId_ = ""; + + /** + * + * + *
                                              +   * Required. The ID of the ExadbVmCluster to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string exadb_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The exadbVmClusterId. + */ + @java.lang.Override + public java.lang.String getExadbVmClusterId() { + java.lang.Object ref = exadbVmClusterId_; + 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(); + exadbVmClusterId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The ID of the ExadbVmCluster to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string exadb_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for exadbVmClusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExadbVmClusterIdBytes() { + java.lang.Object ref = exadbVmClusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exadbVmClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXADB_VM_CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.ExadbVmCluster exadbVmCluster_; + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exadbVmCluster field is set. + */ + @java.lang.Override + public boolean hasExadbVmCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exadbVmCluster. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmCluster() { + return exadbVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance() + : exadbVmCluster_; + } + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder getExadbVmClusterOrBuilder() { + return exadbVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance() + : exadbVmCluster_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exadbVmClusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exadbVmClusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getExadbVmCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exadbVmClusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exadbVmClusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExadbVmCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + 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.oracledatabase.v1.CreateExadbVmClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest other = + (com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getExadbVmClusterId().equals(other.getExadbVmClusterId())) return false; + if (hasExadbVmCluster() != other.hasExadbVmCluster()) return false; + if (hasExadbVmCluster()) { + if (!getExadbVmCluster().equals(other.getExadbVmCluster())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + EXADB_VM_CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getExadbVmClusterId().hashCode(); + if (hasExadbVmCluster()) { + hash = (37 * hash) + EXADB_VM_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getExadbVmCluster().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest 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.oracledatabase.v1.CreateExadbVmClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest 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.oracledatabase.v1.CreateExadbVmClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `ExadbVmCluster.Create`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest) + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExadbVmClusterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + exadbVmClusterId_ = ""; + exadbVmCluster_ = null; + if (exadbVmClusterBuilder_ != null) { + exadbVmClusterBuilder_.dispose(); + exadbVmClusterBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest build() { + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest buildPartial() { + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest result = + new com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exadbVmClusterId_ = exadbVmClusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.exadbVmCluster_ = + exadbVmClusterBuilder_ == null ? exadbVmCluster_ : exadbVmClusterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getExadbVmClusterId().isEmpty()) { + exadbVmClusterId_ = other.exadbVmClusterId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasExadbVmCluster()) { + mergeExadbVmCluster(other.getExadbVmCluster()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + exadbVmClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getExadbVmClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for parent of the ExadbVmCluster in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the ExadbVmCluster in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the ExadbVmCluster in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the ExadbVmCluster in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the ExadbVmCluster in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 exadbVmClusterId_ = ""; + + /** + * + * + *
                                              +     * Required. The ID of the ExadbVmCluster to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exadb_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The exadbVmClusterId. + */ + public java.lang.String getExadbVmClusterId() { + java.lang.Object ref = exadbVmClusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exadbVmClusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the ExadbVmCluster to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exadb_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for exadbVmClusterId. + */ + public com.google.protobuf.ByteString getExadbVmClusterIdBytes() { + java.lang.Object ref = exadbVmClusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exadbVmClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the ExadbVmCluster to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exadb_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The exadbVmClusterId to set. + * @return This builder for chaining. + */ + public Builder setExadbVmClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exadbVmClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the ExadbVmCluster to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exadb_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearExadbVmClusterId() { + exadbVmClusterId_ = getDefaultInstance().getExadbVmClusterId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the ExadbVmCluster to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exadb_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for exadbVmClusterId to set. + * @return This builder for chaining. + */ + public Builder setExadbVmClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exadbVmClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.ExadbVmCluster exadbVmCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmCluster, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder> + exadbVmClusterBuilder_; + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exadbVmCluster field is set. + */ + public boolean hasExadbVmCluster() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exadbVmCluster. + */ + public com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmCluster() { + if (exadbVmClusterBuilder_ == null) { + return exadbVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance() + : exadbVmCluster_; + } else { + return exadbVmClusterBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExadbVmCluster(com.google.cloud.oracledatabase.v1.ExadbVmCluster value) { + if (exadbVmClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exadbVmCluster_ = value; + } else { + exadbVmClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExadbVmCluster( + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder builderForValue) { + if (exadbVmClusterBuilder_ == null) { + exadbVmCluster_ = builderForValue.build(); + } else { + exadbVmClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExadbVmCluster(com.google.cloud.oracledatabase.v1.ExadbVmCluster value) { + if (exadbVmClusterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && exadbVmCluster_ != null + && exadbVmCluster_ + != com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance()) { + getExadbVmClusterBuilder().mergeFrom(value); + } else { + exadbVmCluster_ = value; + } + } else { + exadbVmClusterBuilder_.mergeFrom(value); + } + if (exadbVmCluster_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExadbVmCluster() { + bitField0_ = (bitField0_ & ~0x00000004); + exadbVmCluster_ = null; + if (exadbVmClusterBuilder_ != null) { + exadbVmClusterBuilder_.dispose(); + exadbVmClusterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder getExadbVmClusterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getExadbVmClusterFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder getExadbVmClusterOrBuilder() { + if (exadbVmClusterBuilder_ != null) { + return exadbVmClusterBuilder_.getMessageOrBuilder(); + } else { + return exadbVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance() + : exadbVmCluster_; + } + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmCluster, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder> + getExadbVmClusterFieldBuilder() { + if (exadbVmClusterBuilder_ == null) { + exadbVmClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmCluster, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder>( + getExadbVmCluster(), getParentForChildren(), isClean()); + exadbVmCluster_ = null; + } + return exadbVmClusterBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest) + private static final com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest(); + } + + public static com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExadbVmClusterRequest 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.oracledatabase.v1.CreateExadbVmClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExadbVmClusterRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExadbVmClusterRequestOrBuilder.java new file mode 100644 index 000000000000..42e66c782982 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExadbVmClusterRequestOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface CreateExadbVmClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The value for parent of the ExadbVmCluster in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The value for parent of the ExadbVmCluster in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Required. The ID of the ExadbVmCluster to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string exadb_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The exadbVmClusterId. + */ + java.lang.String getExadbVmClusterId(); + + /** + * + * + *
                                              +   * Required. The ID of the ExadbVmCluster to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string exadb_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for exadbVmClusterId. + */ + com.google.protobuf.ByteString getExadbVmClusterIdBytes(); + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exadbVmCluster field is set. + */ + boolean hasExadbVmCluster(); + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exadbVmCluster. + */ + com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmCluster(); + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder getExadbVmClusterOrBuilder(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExascaleDbStorageVaultRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExascaleDbStorageVaultRequest.java new file mode 100644 index 000000000000..00ad7cc6e409 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExascaleDbStorageVaultRequest.java @@ -0,0 +1,1500 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `ExascaleDbStorageVault.Create`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest} + */ +public final class CreateExascaleDbStorageVaultRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest) + CreateExascaleDbStorageVaultRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateExascaleDbStorageVaultRequest.newBuilder() to construct. + private CreateExascaleDbStorageVaultRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateExascaleDbStorageVaultRequest() { + parent_ = ""; + exascaleDbStorageVaultId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateExascaleDbStorageVaultRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest.class, + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The value for parent of the ExascaleDbStorageVault in the
                                              +   * following format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 value for parent of the ExascaleDbStorageVault in the
                                              +   * following format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 EXASCALE_DB_STORAGE_VAULT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object exascaleDbStorageVaultId_ = ""; + + /** + * + * + *
                                              +   * Required. The ID of the ExascaleDbStorageVault to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string exascale_db_storage_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The exascaleDbStorageVaultId. + */ + @java.lang.Override + public java.lang.String getExascaleDbStorageVaultId() { + java.lang.Object ref = exascaleDbStorageVaultId_; + 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(); + exascaleDbStorageVaultId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The ID of the ExascaleDbStorageVault to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string exascale_db_storage_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for exascaleDbStorageVaultId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExascaleDbStorageVaultIdBytes() { + java.lang.Object ref = exascaleDbStorageVaultId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exascaleDbStorageVaultId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXASCALE_DB_STORAGE_VAULT_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascaleDbStorageVault_; + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exascaleDbStorageVault field is set. + */ + @java.lang.Override + public boolean hasExascaleDbStorageVault() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exascaleDbStorageVault. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getExascaleDbStorageVault() { + return exascaleDbStorageVault_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.getDefaultInstance() + : exascaleDbStorageVault_; + } + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder + getExascaleDbStorageVaultOrBuilder() { + return exascaleDbStorageVault_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.getDefaultInstance() + : exascaleDbStorageVault_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exascaleDbStorageVaultId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exascaleDbStorageVaultId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getExascaleDbStorageVault()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exascaleDbStorageVaultId_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, exascaleDbStorageVaultId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExascaleDbStorageVault()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + 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.oracledatabase.v1.CreateExascaleDbStorageVaultRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest other = + (com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getExascaleDbStorageVaultId().equals(other.getExascaleDbStorageVaultId())) return false; + if (hasExascaleDbStorageVault() != other.hasExascaleDbStorageVault()) return false; + if (hasExascaleDbStorageVault()) { + if (!getExascaleDbStorageVault().equals(other.getExascaleDbStorageVault())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + EXASCALE_DB_STORAGE_VAULT_ID_FIELD_NUMBER; + hash = (53 * hash) + getExascaleDbStorageVaultId().hashCode(); + if (hasExascaleDbStorageVault()) { + hash = (37 * hash) + EXASCALE_DB_STORAGE_VAULT_FIELD_NUMBER; + hash = (53 * hash) + getExascaleDbStorageVault().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest 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.oracledatabase.v1.CreateExascaleDbStorageVaultRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest 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.oracledatabase.v1.CreateExascaleDbStorageVaultRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `ExascaleDbStorageVault.Create`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest) + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest.class, + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExascaleDbStorageVaultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + exascaleDbStorageVaultId_ = ""; + exascaleDbStorageVault_ = null; + if (exascaleDbStorageVaultBuilder_ != null) { + exascaleDbStorageVaultBuilder_.dispose(); + exascaleDbStorageVaultBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest build() { + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest buildPartial() { + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest result = + new com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exascaleDbStorageVaultId_ = exascaleDbStorageVaultId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.exascaleDbStorageVault_ = + exascaleDbStorageVaultBuilder_ == null + ? exascaleDbStorageVault_ + : exascaleDbStorageVaultBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getExascaleDbStorageVaultId().isEmpty()) { + exascaleDbStorageVaultId_ = other.exascaleDbStorageVaultId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasExascaleDbStorageVault()) { + mergeExascaleDbStorageVault(other.getExascaleDbStorageVault()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + exascaleDbStorageVaultId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getExascaleDbStorageVaultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for parent of the ExascaleDbStorageVault in the
                                              +     * following format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the ExascaleDbStorageVault in the
                                              +     * following format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the ExascaleDbStorageVault in the
                                              +     * following format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the ExascaleDbStorageVault in the
                                              +     * following format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for parent of the ExascaleDbStorageVault in the
                                              +     * following format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 exascaleDbStorageVaultId_ = ""; + + /** + * + * + *
                                              +     * Required. The ID of the ExascaleDbStorageVault to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exascale_db_storage_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exascaleDbStorageVaultId. + */ + public java.lang.String getExascaleDbStorageVaultId() { + java.lang.Object ref = exascaleDbStorageVaultId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exascaleDbStorageVaultId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the ExascaleDbStorageVault to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exascale_db_storage_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for exascaleDbStorageVaultId. + */ + public com.google.protobuf.ByteString getExascaleDbStorageVaultIdBytes() { + java.lang.Object ref = exascaleDbStorageVaultId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exascaleDbStorageVaultId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the ExascaleDbStorageVault to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exascale_db_storage_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The exascaleDbStorageVaultId to set. + * @return This builder for chaining. + */ + public Builder setExascaleDbStorageVaultId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exascaleDbStorageVaultId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the ExascaleDbStorageVault to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exascale_db_storage_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearExascaleDbStorageVaultId() { + exascaleDbStorageVaultId_ = getDefaultInstance().getExascaleDbStorageVaultId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the ExascaleDbStorageVault to create. This value is
                                              +     * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +     * 63 characters in length. The value must start with a letter and end with a
                                              +     * letter or a number.
                                              +     * 
                                              + * + * string exascale_db_storage_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for exascaleDbStorageVaultId to set. + * @return This builder for chaining. + */ + public Builder setExascaleDbStorageVaultIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exascaleDbStorageVaultId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascaleDbStorageVault_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder> + exascaleDbStorageVaultBuilder_; + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exascaleDbStorageVault field is set. + */ + public boolean hasExascaleDbStorageVault() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exascaleDbStorageVault. + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getExascaleDbStorageVault() { + if (exascaleDbStorageVaultBuilder_ == null) { + return exascaleDbStorageVault_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.getDefaultInstance() + : exascaleDbStorageVault_; + } else { + return exascaleDbStorageVaultBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault value) { + if (exascaleDbStorageVaultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exascaleDbStorageVault_ = value; + } else { + exascaleDbStorageVaultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder builderForValue) { + if (exascaleDbStorageVaultBuilder_ == null) { + exascaleDbStorageVault_ = builderForValue.build(); + } else { + exascaleDbStorageVaultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExascaleDbStorageVault( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault value) { + if (exascaleDbStorageVaultBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && exascaleDbStorageVault_ != null + && exascaleDbStorageVault_ + != com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.getDefaultInstance()) { + getExascaleDbStorageVaultBuilder().mergeFrom(value); + } else { + exascaleDbStorageVault_ = value; + } + } else { + exascaleDbStorageVaultBuilder_.mergeFrom(value); + } + if (exascaleDbStorageVault_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExascaleDbStorageVault() { + bitField0_ = (bitField0_ & ~0x00000004); + exascaleDbStorageVault_ = null; + if (exascaleDbStorageVaultBuilder_ != null) { + exascaleDbStorageVaultBuilder_.dispose(); + exascaleDbStorageVaultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder + getExascaleDbStorageVaultBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getExascaleDbStorageVaultFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder + getExascaleDbStorageVaultOrBuilder() { + if (exascaleDbStorageVaultBuilder_ != null) { + return exascaleDbStorageVaultBuilder_.getMessageOrBuilder(); + } else { + return exascaleDbStorageVault_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.getDefaultInstance() + : exascaleDbStorageVault_; + } + } + + /** + * + * + *
                                              +     * Required. The resource being created.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder> + getExascaleDbStorageVaultFieldBuilder() { + if (exascaleDbStorageVaultBuilder_ == null) { + exascaleDbStorageVaultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder>( + getExascaleDbStorageVault(), getParentForChildren(), isClean()); + exascaleDbStorageVault_ = null; + } + return exascaleDbStorageVaultBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional request ID to identify requests. Specify a unique
                                              +     * request ID so that if you must retry your request, the server will know to
                                              +     * ignore the request if it has already been completed. The server will
                                              +     * guarantee that for at least 60 minutes since the first request.
                                              +     *
                                              +     * For example, consider a situation where you make an initial request and the
                                              +     * request times out. If you make the request again with the same request
                                              +     * ID, the server can check if original operation with the same request ID
                                              +     * was received, and if so, will ignore the second request. This prevents
                                              +     * clients from accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest) + private static final com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest(); + } + + public static com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExascaleDbStorageVaultRequest 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.oracledatabase.v1.CreateExascaleDbStorageVaultRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExascaleDbStorageVaultRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExascaleDbStorageVaultRequestOrBuilder.java new file mode 100644 index 000000000000..2b3c26bf16d2 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateExascaleDbStorageVaultRequestOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface CreateExascaleDbStorageVaultRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The value for parent of the ExascaleDbStorageVault in the
                                              +   * following format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The value for parent of the ExascaleDbStorageVault in the
                                              +   * following format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Required. The ID of the ExascaleDbStorageVault to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string exascale_db_storage_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The exascaleDbStorageVaultId. + */ + java.lang.String getExascaleDbStorageVaultId(); + + /** + * + * + *
                                              +   * Required. The ID of the ExascaleDbStorageVault to create. This value is
                                              +   * restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of
                                              +   * 63 characters in length. The value must start with a letter and end with a
                                              +   * letter or a number.
                                              +   * 
                                              + * + * string exascale_db_storage_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for exascaleDbStorageVaultId. + */ + com.google.protobuf.ByteString getExascaleDbStorageVaultIdBytes(); + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exascaleDbStorageVault field is set. + */ + boolean hasExascaleDbStorageVault(); + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exascaleDbStorageVault. + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getExascaleDbStorageVault(); + + /** + * + * + *
                                              +   * Required. The resource being created.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vault = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder + getExascaleDbStorageVaultOrBuilder(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                              +   * request ID so that if you must retry your request, the server will know to
                                              +   * ignore the request if it has already been completed. The server will
                                              +   * guarantee that for at least 60 minutes since the first request.
                                              +   *
                                              +   * For example, consider a situation where you make an initial request and the
                                              +   * request times out. If you make the request again with the same request
                                              +   * ID, the server can check if original operation with the same request ID
                                              +   * was received, and if so, will ignore the second request. This prevents
                                              +   * clients from accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbNetworkRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbNetworkRequest.java new file mode 100644 index 000000000000..425bc7c30c83 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbNetworkRequest.java @@ -0,0 +1,1434 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OdbNetwork.Create`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateOdbNetworkRequest} + */ +public final class CreateOdbNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CreateOdbNetworkRequest) + CreateOdbNetworkRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateOdbNetworkRequest.newBuilder() to construct. + private CreateOdbNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateOdbNetworkRequest() { + parent_ = ""; + odbNetworkId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateOdbNetworkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest.class, + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for the OdbNetwork in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 value for the OdbNetwork in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 ODB_NETWORK_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbNetworkId_ = ""; + + /** + * + * + *
                                              +   * Required. The ID of the OdbNetwork to create. This value is restricted
                                              +   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +   * characters in length. The value must start with a letter and end with
                                              +   * a letter or a number.
                                              +   * 
                                              + * + * string odb_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The odbNetworkId. + */ + @java.lang.Override + public java.lang.String getOdbNetworkId() { + java.lang.Object ref = odbNetworkId_; + 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(); + odbNetworkId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The ID of the OdbNetwork to create. This value is restricted
                                              +   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +   * characters in length. The value must start with a letter and end with
                                              +   * a letter or a number.
                                              +   * 
                                              + * + * string odb_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for odbNetworkId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbNetworkIdBytes() { + java.lang.Object ref = odbNetworkId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetworkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ODB_NETWORK_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.OdbNetwork odbNetwork_; + + /** + * + * + *
                                              +   * Required. Details of the OdbNetwork instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbNetwork field is set. + */ + @java.lang.Override + public boolean hasOdbNetwork() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. Details of the OdbNetwork instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbNetwork. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbNetwork getOdbNetwork() { + return odbNetwork_ == null + ? com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance() + : odbNetwork_; + } + + /** + * + * + *
                                              +   * Required. Details of the OdbNetwork instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder getOdbNetworkOrBuilder() { + return odbNetwork_ == null + ? com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance() + : odbNetwork_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbNetworkId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, odbNetworkId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOdbNetwork()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbNetworkId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, odbNetworkId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOdbNetwork()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + 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.oracledatabase.v1.CreateOdbNetworkRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest other = + (com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getOdbNetworkId().equals(other.getOdbNetworkId())) return false; + if (hasOdbNetwork() != other.hasOdbNetwork()) return false; + if (hasOdbNetwork()) { + if (!getOdbNetwork().equals(other.getOdbNetwork())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + ODB_NETWORK_ID_FIELD_NUMBER; + hash = (53 * hash) + getOdbNetworkId().hashCode(); + if (hasOdbNetwork()) { + hash = (37 * hash) + ODB_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getOdbNetwork().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest 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.oracledatabase.v1.CreateOdbNetworkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest 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.oracledatabase.v1.CreateOdbNetworkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OdbNetwork.Create`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateOdbNetworkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CreateOdbNetworkRequest) + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest.class, + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOdbNetworkFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + odbNetworkId_ = ""; + odbNetwork_ = null; + if (odbNetworkBuilder_ != null) { + odbNetworkBuilder_.dispose(); + odbNetworkBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest build() { + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest buildPartial() { + com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest result = + new com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.odbNetworkId_ = odbNetworkId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.odbNetwork_ = odbNetworkBuilder_ == null ? odbNetwork_ : odbNetworkBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest other) { + if (other == com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOdbNetworkId().isEmpty()) { + odbNetworkId_ = other.odbNetworkId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOdbNetwork()) { + mergeOdbNetwork(other.getOdbNetwork()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + odbNetworkId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getOdbNetworkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 odbNetworkId_ = ""; + + /** + * + * + *
                                              +     * Required. The ID of the OdbNetwork to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The odbNetworkId. + */ + public java.lang.String getOdbNetworkId() { + java.lang.Object ref = odbNetworkId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + odbNetworkId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the OdbNetwork to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for odbNetworkId. + */ + public com.google.protobuf.ByteString getOdbNetworkIdBytes() { + java.lang.Object ref = odbNetworkId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetworkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the OdbNetwork to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The odbNetworkId to set. + * @return This builder for chaining. + */ + public Builder setOdbNetworkId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + odbNetworkId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the OdbNetwork to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOdbNetworkId() { + odbNetworkId_ = getDefaultInstance().getOdbNetworkId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the OdbNetwork to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for odbNetworkId to set. + * @return This builder for chaining. + */ + public Builder setOdbNetworkIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + odbNetworkId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.OdbNetwork odbNetwork_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbNetwork, + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder, + com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder> + odbNetworkBuilder_; + + /** + * + * + *
                                              +     * Required. Details of the OdbNetwork instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbNetwork field is set. + */ + public boolean hasOdbNetwork() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * Required. Details of the OdbNetwork instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbNetwork. + */ + public com.google.cloud.oracledatabase.v1.OdbNetwork getOdbNetwork() { + if (odbNetworkBuilder_ == null) { + return odbNetwork_ == null + ? com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance() + : odbNetwork_; + } else { + return odbNetworkBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. Details of the OdbNetwork instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOdbNetwork(com.google.cloud.oracledatabase.v1.OdbNetwork value) { + if (odbNetworkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + odbNetwork_ = value; + } else { + odbNetworkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Details of the OdbNetwork instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOdbNetwork( + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder builderForValue) { + if (odbNetworkBuilder_ == null) { + odbNetwork_ = builderForValue.build(); + } else { + odbNetworkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Details of the OdbNetwork instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOdbNetwork(com.google.cloud.oracledatabase.v1.OdbNetwork value) { + if (odbNetworkBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && odbNetwork_ != null + && odbNetwork_ != com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance()) { + getOdbNetworkBuilder().mergeFrom(value); + } else { + odbNetwork_ = value; + } + } else { + odbNetworkBuilder_.mergeFrom(value); + } + if (odbNetwork_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. Details of the OdbNetwork instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOdbNetwork() { + bitField0_ = (bitField0_ & ~0x00000004); + odbNetwork_ = null; + if (odbNetworkBuilder_ != null) { + odbNetworkBuilder_.dispose(); + odbNetworkBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Details of the OdbNetwork instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.OdbNetwork.Builder getOdbNetworkBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOdbNetworkFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. Details of the OdbNetwork instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder getOdbNetworkOrBuilder() { + if (odbNetworkBuilder_ != null) { + return odbNetworkBuilder_.getMessageOrBuilder(); + } else { + return odbNetwork_ == null + ? com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance() + : odbNetwork_; + } + } + + /** + * + * + *
                                              +     * Required. Details of the OdbNetwork instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbNetwork, + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder, + com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder> + getOdbNetworkFieldBuilder() { + if (odbNetworkBuilder_ == null) { + odbNetworkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbNetwork, + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder, + com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder>( + getOdbNetwork(), getParentForChildren(), isClean()); + odbNetwork_ = null; + } + return odbNetworkBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.CreateOdbNetworkRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CreateOdbNetworkRequest) + private static final com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest(); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOdbNetworkRequest 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.oracledatabase.v1.CreateOdbNetworkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbNetworkRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbNetworkRequestOrBuilder.java new file mode 100644 index 000000000000..3e345b20a14d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbNetworkRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface CreateOdbNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CreateOdbNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for the OdbNetwork in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for the OdbNetwork in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Required. The ID of the OdbNetwork to create. This value is restricted
                                              +   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +   * characters in length. The value must start with a letter and end with
                                              +   * a letter or a number.
                                              +   * 
                                              + * + * string odb_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The odbNetworkId. + */ + java.lang.String getOdbNetworkId(); + + /** + * + * + *
                                              +   * Required. The ID of the OdbNetwork to create. This value is restricted
                                              +   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +   * characters in length. The value must start with a letter and end with
                                              +   * a letter or a number.
                                              +   * 
                                              + * + * string odb_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for odbNetworkId. + */ + com.google.protobuf.ByteString getOdbNetworkIdBytes(); + + /** + * + * + *
                                              +   * Required. Details of the OdbNetwork instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbNetwork field is set. + */ + boolean hasOdbNetwork(); + + /** + * + * + *
                                              +   * Required. Details of the OdbNetwork instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbNetwork. + */ + com.google.cloud.oracledatabase.v1.OdbNetwork getOdbNetwork(); + + /** + * + * + *
                                              +   * Required. Details of the OdbNetwork instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork odb_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder getOdbNetworkOrBuilder(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbSubnetRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbSubnetRequest.java new file mode 100644 index 000000000000..aed40ce83e50 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbSubnetRequest.java @@ -0,0 +1,1434 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OdbSubnet.Create`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateOdbSubnetRequest} + */ +public final class CreateOdbSubnetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.CreateOdbSubnetRequest) + CreateOdbSubnetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateOdbSubnetRequest.newBuilder() to construct. + private CreateOdbSubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateOdbSubnetRequest() { + parent_ = ""; + odbSubnetId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateOdbSubnetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest.class, + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * 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 ODB_SUBNET_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbSubnetId_ = ""; + + /** + * + * + *
                                              +   * Required. The ID of the OdbSubnet to create. This value is restricted
                                              +   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +   * characters in length. The value must start with a letter and end with
                                              +   * a letter or a number.
                                              +   * 
                                              + * + * string odb_subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The odbSubnetId. + */ + @java.lang.Override + public java.lang.String getOdbSubnetId() { + java.lang.Object ref = odbSubnetId_; + 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(); + odbSubnetId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The ID of the OdbSubnet to create. This value is restricted
                                              +   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +   * characters in length. The value must start with a letter and end with
                                              +   * a letter or a number.
                                              +   * 
                                              + * + * string odb_subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for odbSubnetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbSubnetIdBytes() { + java.lang.Object ref = odbSubnetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbSubnetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ODB_SUBNET_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.OdbSubnet odbSubnet_; + + /** + * + * + *
                                              +   * Required. Details of the OdbSubnet instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbSubnet field is set. + */ + @java.lang.Override + public boolean hasOdbSubnet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. Details of the OdbSubnet instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbSubnet. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnet getOdbSubnet() { + return odbSubnet_ == null + ? com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance() + : odbSubnet_; + } + + /** + * + * + *
                                              +   * Required. Details of the OdbSubnet instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder getOdbSubnetOrBuilder() { + return odbSubnet_ == null + ? com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance() + : odbSubnet_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, odbSubnetId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOdbSubnet()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, odbSubnetId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOdbSubnet()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + 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.oracledatabase.v1.CreateOdbSubnetRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest other = + (com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getOdbSubnetId().equals(other.getOdbSubnetId())) return false; + if (hasOdbSubnet() != other.hasOdbSubnet()) return false; + if (hasOdbSubnet()) { + if (!getOdbSubnet().equals(other.getOdbSubnet())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + ODB_SUBNET_ID_FIELD_NUMBER; + hash = (53 * hash) + getOdbSubnetId().hashCode(); + if (hasOdbSubnet()) { + hash = (37 * hash) + ODB_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getOdbSubnet().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest 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.oracledatabase.v1.CreateOdbSubnetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest 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.oracledatabase.v1.CreateOdbSubnetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OdbSubnet.Create`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.CreateOdbSubnetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.CreateOdbSubnetRequest) + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest.class, + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOdbSubnetFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + odbSubnetId_ = ""; + odbSubnet_ = null; + if (odbSubnetBuilder_ != null) { + odbSubnetBuilder_.dispose(); + odbSubnetBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest build() { + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest buildPartial() { + com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest result = + new com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.odbSubnetId_ = odbSubnetId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.odbSubnet_ = odbSubnetBuilder_ == null ? odbSubnet_ : odbSubnetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest other) { + if (other == com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOdbSubnetId().isEmpty()) { + odbSubnetId_ = other.odbSubnetId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOdbSubnet()) { + mergeOdbSubnet(other.getOdbSubnet()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + odbSubnetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getOdbSubnetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 odbSubnetId_ = ""; + + /** + * + * + *
                                              +     * Required. The ID of the OdbSubnet to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The odbSubnetId. + */ + public java.lang.String getOdbSubnetId() { + java.lang.Object ref = odbSubnetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + odbSubnetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the OdbSubnet to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for odbSubnetId. + */ + public com.google.protobuf.ByteString getOdbSubnetIdBytes() { + java.lang.Object ref = odbSubnetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbSubnetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The ID of the OdbSubnet to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The odbSubnetId to set. + * @return This builder for chaining. + */ + public Builder setOdbSubnetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + odbSubnetId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the OdbSubnet to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOdbSubnetId() { + odbSubnetId_ = getDefaultInstance().getOdbSubnetId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The ID of the OdbSubnet to create. This value is restricted
                                              +     * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +     * characters in length. The value must start with a letter and end with
                                              +     * a letter or a number.
                                              +     * 
                                              + * + * string odb_subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for odbSubnetId to set. + * @return This builder for chaining. + */ + public Builder setOdbSubnetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + odbSubnetId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.OdbSubnet odbSubnet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbSubnet, + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder, + com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder> + odbSubnetBuilder_; + + /** + * + * + *
                                              +     * Required. Details of the OdbSubnet instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbSubnet field is set. + */ + public boolean hasOdbSubnet() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * Required. Details of the OdbSubnet instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbSubnet. + */ + public com.google.cloud.oracledatabase.v1.OdbSubnet getOdbSubnet() { + if (odbSubnetBuilder_ == null) { + return odbSubnet_ == null + ? com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance() + : odbSubnet_; + } else { + return odbSubnetBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. Details of the OdbSubnet instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOdbSubnet(com.google.cloud.oracledatabase.v1.OdbSubnet value) { + if (odbSubnetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + odbSubnet_ = value; + } else { + odbSubnetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Details of the OdbSubnet instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOdbSubnet( + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder builderForValue) { + if (odbSubnetBuilder_ == null) { + odbSubnet_ = builderForValue.build(); + } else { + odbSubnetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Details of the OdbSubnet instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOdbSubnet(com.google.cloud.oracledatabase.v1.OdbSubnet value) { + if (odbSubnetBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && odbSubnet_ != null + && odbSubnet_ != com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance()) { + getOdbSubnetBuilder().mergeFrom(value); + } else { + odbSubnet_ = value; + } + } else { + odbSubnetBuilder_.mergeFrom(value); + } + if (odbSubnet_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. Details of the OdbSubnet instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOdbSubnet() { + bitField0_ = (bitField0_ & ~0x00000004); + odbSubnet_ = null; + if (odbSubnetBuilder_ != null) { + odbSubnetBuilder_.dispose(); + odbSubnetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Details of the OdbSubnet instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.OdbSubnet.Builder getOdbSubnetBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOdbSubnetFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. Details of the OdbSubnet instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder getOdbSubnetOrBuilder() { + if (odbSubnetBuilder_ != null) { + return odbSubnetBuilder_.getMessageOrBuilder(); + } else { + return odbSubnet_ == null + ? com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance() + : odbSubnet_; + } + } + + /** + * + * + *
                                              +     * Required. Details of the OdbSubnet instance to create.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbSubnet, + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder, + com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder> + getOdbSubnetFieldBuilder() { + if (odbSubnetBuilder_ == null) { + odbSubnetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbSubnet, + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder, + com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder>( + getOdbSubnet(), getParentForChildren(), isClean()); + odbSubnet_ = null; + } + return odbSubnetBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.CreateOdbSubnetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.CreateOdbSubnetRequest) + private static final com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest(); + } + + public static com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOdbSubnetRequest 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.oracledatabase.v1.CreateOdbSubnetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbSubnetRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbSubnetRequestOrBuilder.java new file mode 100644 index 000000000000..7e3219e875ce --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CreateOdbSubnetRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface CreateOdbSubnetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.CreateOdbSubnetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Required. The ID of the OdbSubnet to create. This value is restricted
                                              +   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +   * characters in length. The value must start with a letter and end with
                                              +   * a letter or a number.
                                              +   * 
                                              + * + * string odb_subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The odbSubnetId. + */ + java.lang.String getOdbSubnetId(); + + /** + * + * + *
                                              +   * Required. The ID of the OdbSubnet to create. This value is restricted
                                              +   * to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
                                              +   * characters in length. The value must start with a letter and end with
                                              +   * a letter or a number.
                                              +   * 
                                              + * + * string odb_subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for odbSubnetId. + */ + com.google.protobuf.ByteString getOdbSubnetIdBytes(); + + /** + * + * + *
                                              +   * Required. Details of the OdbSubnet instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbSubnet field is set. + */ + boolean hasOdbSubnet(); + + /** + * + * + *
                                              +   * Required. Details of the OdbSubnet instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbSubnet. + */ + com.google.cloud.oracledatabase.v1.OdbSubnet getOdbSubnet(); + + /** + * + * + *
                                              +   * Required. Details of the OdbSubnet instance to create.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet odb_subnet = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder getOdbSubnetOrBuilder(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsCommon.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsCommon.java new file mode 100644 index 000000000000..b2bb01e65364 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsCommon.java @@ -0,0 +1,747 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Data collection options for diagnostics.
                                              + * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DataCollectionOptions
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DataCollectionOptionsCommon} + */ +public final class DataCollectionOptionsCommon extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DataCollectionOptionsCommon) + DataCollectionOptionsCommonOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DataCollectionOptionsCommon.newBuilder() to construct. + private DataCollectionOptionsCommon(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataCollectionOptionsCommon() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataCollectionOptionsCommon(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.class, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.Builder.class); + } + + public static final int IS_DIAGNOSTICS_EVENTS_ENABLED_FIELD_NUMBER = 1; + private boolean isDiagnosticsEventsEnabled_ = false; + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable data collection for diagnostics.
                                              +   * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isDiagnosticsEventsEnabled. + */ + @java.lang.Override + public boolean getIsDiagnosticsEventsEnabled() { + return isDiagnosticsEventsEnabled_; + } + + public static final int IS_HEALTH_MONITORING_ENABLED_FIELD_NUMBER = 2; + private boolean isHealthMonitoringEnabled_ = false; + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable health monitoring.
                                              +   * 
                                              + * + * bool is_health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isHealthMonitoringEnabled. + */ + @java.lang.Override + public boolean getIsHealthMonitoringEnabled() { + return isHealthMonitoringEnabled_; + } + + public static final int IS_INCIDENT_LOGS_ENABLED_FIELD_NUMBER = 3; + private boolean isIncidentLogsEnabled_ = false; + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable incident logs and trace collection.
                                              +   * 
                                              + * + * bool is_incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isIncidentLogsEnabled. + */ + @java.lang.Override + public boolean getIsIncidentLogsEnabled() { + return isIncidentLogsEnabled_; + } + + 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 (isDiagnosticsEventsEnabled_ != false) { + output.writeBool(1, isDiagnosticsEventsEnabled_); + } + if (isHealthMonitoringEnabled_ != false) { + output.writeBool(2, isHealthMonitoringEnabled_); + } + if (isIncidentLogsEnabled_ != false) { + output.writeBool(3, isIncidentLogsEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isDiagnosticsEventsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isDiagnosticsEventsEnabled_); + } + if (isHealthMonitoringEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isHealthMonitoringEnabled_); + } + if (isIncidentLogsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isIncidentLogsEnabled_); + } + 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.oracledatabase.v1.DataCollectionOptionsCommon)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon other = + (com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon) obj; + + if (getIsDiagnosticsEventsEnabled() != other.getIsDiagnosticsEventsEnabled()) return false; + if (getIsHealthMonitoringEnabled() != other.getIsHealthMonitoringEnabled()) return false; + if (getIsIncidentLogsEnabled() != other.getIsIncidentLogsEnabled()) 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) + IS_DIAGNOSTICS_EVENTS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDiagnosticsEventsEnabled()); + hash = (37 * hash) + IS_HEALTH_MONITORING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsHealthMonitoringEnabled()); + hash = (37 * hash) + IS_INCIDENT_LOGS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsIncidentLogsEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon 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.oracledatabase.v1.DataCollectionOptionsCommon parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon 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.oracledatabase.v1.DataCollectionOptionsCommon parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Data collection options for diagnostics.
                                              +   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DataCollectionOptions
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DataCollectionOptionsCommon} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DataCollectionOptionsCommon) + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.class, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + isDiagnosticsEventsEnabled_ = false; + isHealthMonitoringEnabled_ = false; + isIncidentLogsEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsCommon_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon build() { + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon buildPartial() { + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon result = + new com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isDiagnosticsEventsEnabled_ = isDiagnosticsEventsEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isHealthMonitoringEnabled_ = isHealthMonitoringEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isIncidentLogsEnabled_ = isIncidentLogsEnabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon other) { + if (other + == com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.getDefaultInstance()) + return this; + if (other.getIsDiagnosticsEventsEnabled() != false) { + setIsDiagnosticsEventsEnabled(other.getIsDiagnosticsEventsEnabled()); + } + if (other.getIsHealthMonitoringEnabled() != false) { + setIsHealthMonitoringEnabled(other.getIsHealthMonitoringEnabled()); + } + if (other.getIsIncidentLogsEnabled() != false) { + setIsIncidentLogsEnabled(other.getIsIncidentLogsEnabled()); + } + 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: + { + isDiagnosticsEventsEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + isHealthMonitoringEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + isIncidentLogsEnabled_ = 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 boolean isDiagnosticsEventsEnabled_; + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable data collection for diagnostics.
                                              +     * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isDiagnosticsEventsEnabled. + */ + @java.lang.Override + public boolean getIsDiagnosticsEventsEnabled() { + return isDiagnosticsEventsEnabled_; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable data collection for diagnostics.
                                              +     * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The isDiagnosticsEventsEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsDiagnosticsEventsEnabled(boolean value) { + + isDiagnosticsEventsEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable data collection for diagnostics.
                                              +     * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsDiagnosticsEventsEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + isDiagnosticsEventsEnabled_ = false; + onChanged(); + return this; + } + + private boolean isHealthMonitoringEnabled_; + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable health monitoring.
                                              +     * 
                                              + * + * bool is_health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isHealthMonitoringEnabled. + */ + @java.lang.Override + public boolean getIsHealthMonitoringEnabled() { + return isHealthMonitoringEnabled_; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable health monitoring.
                                              +     * 
                                              + * + * bool is_health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isHealthMonitoringEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsHealthMonitoringEnabled(boolean value) { + + isHealthMonitoringEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable health monitoring.
                                              +     * 
                                              + * + * bool is_health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsHealthMonitoringEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + isHealthMonitoringEnabled_ = false; + onChanged(); + return this; + } + + private boolean isIncidentLogsEnabled_; + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable incident logs and trace collection.
                                              +     * 
                                              + * + * bool is_incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isIncidentLogsEnabled. + */ + @java.lang.Override + public boolean getIsIncidentLogsEnabled() { + return isIncidentLogsEnabled_; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable incident logs and trace collection.
                                              +     * 
                                              + * + * bool is_incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isIncidentLogsEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsIncidentLogsEnabled(boolean value) { + + isIncidentLogsEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable incident logs and trace collection.
                                              +     * 
                                              + * + * bool is_incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsIncidentLogsEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + isIncidentLogsEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DataCollectionOptionsCommon) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DataCollectionOptionsCommon) + private static final com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon(); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataCollectionOptionsCommon 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.oracledatabase.v1.DataCollectionOptionsCommon + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsCommonOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsCommonOrBuilder.java new file mode 100644 index 000000000000..86382317039e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsCommonOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DataCollectionOptionsCommonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DataCollectionOptionsCommon) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable data collection for diagnostics.
                                              +   * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isDiagnosticsEventsEnabled. + */ + boolean getIsDiagnosticsEventsEnabled(); + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable health monitoring.
                                              +   * 
                                              + * + * bool is_health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isHealthMonitoringEnabled. + */ + boolean getIsHealthMonitoringEnabled(); + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable incident logs and trace collection.
                                              +   * 
                                              + * + * bool is_incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isIncidentLogsEnabled. + */ + boolean getIsIncidentLogsEnabled(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsDbSystem.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsDbSystem.java new file mode 100644 index 000000000000..8c5e97494d26 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsDbSystem.java @@ -0,0 +1,649 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Data collection options for DbSystem.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem} + */ +public final class DataCollectionOptionsDbSystem extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem) + DataCollectionOptionsDbSystemOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DataCollectionOptionsDbSystem.newBuilder() to construct. + private DataCollectionOptionsDbSystem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataCollectionOptionsDbSystem() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataCollectionOptionsDbSystem(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.class, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.Builder.class); + } + + public static final int IS_DIAGNOSTICS_EVENTS_ENABLED_FIELD_NUMBER = 1; + private boolean isDiagnosticsEventsEnabled_ = false; + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable data collection for diagnostics.
                                              +   * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isDiagnosticsEventsEnabled. + */ + @java.lang.Override + public boolean getIsDiagnosticsEventsEnabled() { + return isDiagnosticsEventsEnabled_; + } + + public static final int IS_INCIDENT_LOGS_ENABLED_FIELD_NUMBER = 2; + private boolean isIncidentLogsEnabled_ = false; + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable incident logs and trace collection.
                                              +   * 
                                              + * + * bool is_incident_logs_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isIncidentLogsEnabled. + */ + @java.lang.Override + public boolean getIsIncidentLogsEnabled() { + return isIncidentLogsEnabled_; + } + + 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 (isDiagnosticsEventsEnabled_ != false) { + output.writeBool(1, isDiagnosticsEventsEnabled_); + } + if (isIncidentLogsEnabled_ != false) { + output.writeBool(2, isIncidentLogsEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isDiagnosticsEventsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isDiagnosticsEventsEnabled_); + } + if (isIncidentLogsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isIncidentLogsEnabled_); + } + 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.oracledatabase.v1.DataCollectionOptionsDbSystem)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem other = + (com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem) obj; + + if (getIsDiagnosticsEventsEnabled() != other.getIsDiagnosticsEventsEnabled()) return false; + if (getIsIncidentLogsEnabled() != other.getIsIncidentLogsEnabled()) 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) + IS_DIAGNOSTICS_EVENTS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDiagnosticsEventsEnabled()); + hash = (37 * hash) + IS_INCIDENT_LOGS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsIncidentLogsEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem 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.oracledatabase.v1.DataCollectionOptionsDbSystem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem 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.oracledatabase.v1.DataCollectionOptionsDbSystem parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Data collection options for DbSystem.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem) + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.class, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + isDiagnosticsEventsEnabled_ = false; + isIncidentLogsEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem build() { + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem buildPartial() { + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem result = + new com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isDiagnosticsEventsEnabled_ = isDiagnosticsEventsEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isIncidentLogsEnabled_ = isIncidentLogsEnabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem other) { + if (other + == com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.getDefaultInstance()) + return this; + if (other.getIsDiagnosticsEventsEnabled() != false) { + setIsDiagnosticsEventsEnabled(other.getIsDiagnosticsEventsEnabled()); + } + if (other.getIsIncidentLogsEnabled() != false) { + setIsIncidentLogsEnabled(other.getIsIncidentLogsEnabled()); + } + 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: + { + isDiagnosticsEventsEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + isIncidentLogsEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 boolean isDiagnosticsEventsEnabled_; + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable data collection for diagnostics.
                                              +     * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isDiagnosticsEventsEnabled. + */ + @java.lang.Override + public boolean getIsDiagnosticsEventsEnabled() { + return isDiagnosticsEventsEnabled_; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable data collection for diagnostics.
                                              +     * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The isDiagnosticsEventsEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsDiagnosticsEventsEnabled(boolean value) { + + isDiagnosticsEventsEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable data collection for diagnostics.
                                              +     * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsDiagnosticsEventsEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + isDiagnosticsEventsEnabled_ = false; + onChanged(); + return this; + } + + private boolean isIncidentLogsEnabled_; + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable incident logs and trace collection.
                                              +     * 
                                              + * + * bool is_incident_logs_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isIncidentLogsEnabled. + */ + @java.lang.Override + public boolean getIsIncidentLogsEnabled() { + return isIncidentLogsEnabled_; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable incident logs and trace collection.
                                              +     * 
                                              + * + * bool is_incident_logs_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isIncidentLogsEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsIncidentLogsEnabled(boolean value) { + + isIncidentLogsEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Indicates whether to enable incident logs and trace collection.
                                              +     * 
                                              + * + * bool is_incident_logs_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsIncidentLogsEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + isIncidentLogsEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem) + private static final com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem(); + } + + public static com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataCollectionOptionsDbSystem 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.oracledatabase.v1.DataCollectionOptionsDbSystem + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsDbSystemOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsDbSystemOrBuilder.java new file mode 100644 index 000000000000..05468af07fdb --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DataCollectionOptionsDbSystemOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DataCollectionOptionsDbSystemOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable data collection for diagnostics.
                                              +   * 
                                              + * + * bool is_diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isDiagnosticsEventsEnabled. + */ + boolean getIsDiagnosticsEventsEnabled(); + + /** + * + * + *
                                              +   * Optional. Indicates whether to enable incident logs and trace collection.
                                              +   * 
                                              + * + * bool is_incident_logs_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isIncidentLogsEnabled. + */ + boolean getIsIncidentLogsEnabled(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/Database.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/Database.java new file mode 100644 index 000000000000..bac69d55b085 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/Database.java @@ -0,0 +1,3612 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Details of the Database resource.
                                              + * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.Database} + */ +public final class Database extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.Database) + DatabaseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Database.newBuilder() to construct. + private Database(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Database() { + name_ = ""; + dbName_ = ""; + dbUniqueName_ = ""; + adminPassword_ = ""; + tdeWalletPassword_ = ""; + characterSet_ = ""; + ncharacterSet_ = ""; + ociUrl_ = ""; + databaseId_ = ""; + dbHomeName_ = ""; + gcpOracleZone_ = ""; + opsInsightsStatus_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Database(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_Database_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_Database_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.Database.class, + com.google.cloud.oracledatabase.v1.Database.Builder.class); + } + + /** + * + * + *
                                              +   * The Status of Operations Insights for this Database.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus} + */ + public enum OperationsInsightsStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED = 0; + */ + OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Indicates that the operations insights are being enabled.
                                              +     * 
                                              + * + * ENABLING = 1; + */ + ENABLING(1), + /** + * + * + *
                                              +     * Indicates that the operations insights are enabled.
                                              +     * 
                                              + * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
                                              +     * Indicates that the operations insights are being disabled.
                                              +     * 
                                              + * + * DISABLING = 3; + */ + DISABLING(3), + /** + * + * + *
                                              +     * Indicates that the operations insights are not enabled.
                                              +     * 
                                              + * + * NOT_ENABLED = 4; + */ + NOT_ENABLED(4), + /** + * + * + *
                                              +     * Indicates that the operations insights failed to enable.
                                              +     * 
                                              + * + * FAILED_ENABLING = 5; + */ + FAILED_ENABLING(5), + /** + * + * + *
                                              +     * Indicates that the operations insights failed to disable.
                                              +     * 
                                              + * + * FAILED_DISABLING = 6; + */ + FAILED_DISABLING(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED = 0; + */ + public static final int OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Indicates that the operations insights are being enabled.
                                              +     * 
                                              + * + * ENABLING = 1; + */ + public static final int ENABLING_VALUE = 1; + + /** + * + * + *
                                              +     * Indicates that the operations insights are enabled.
                                              +     * 
                                              + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + /** + * + * + *
                                              +     * Indicates that the operations insights are being disabled.
                                              +     * 
                                              + * + * DISABLING = 3; + */ + public static final int DISABLING_VALUE = 3; + + /** + * + * + *
                                              +     * Indicates that the operations insights are not enabled.
                                              +     * 
                                              + * + * NOT_ENABLED = 4; + */ + public static final int NOT_ENABLED_VALUE = 4; + + /** + * + * + *
                                              +     * Indicates that the operations insights failed to enable.
                                              +     * 
                                              + * + * FAILED_ENABLING = 5; + */ + public static final int FAILED_ENABLING_VALUE = 5; + + /** + * + * + *
                                              +     * Indicates that the operations insights failed to disable.
                                              +     * 
                                              + * + * FAILED_DISABLING = 6; + */ + public static final int FAILED_DISABLING_VALUE = 6; + + 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 OperationsInsightsStatus 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 OperationsInsightsStatus forNumber(int value) { + switch (value) { + case 0: + return OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED; + case 1: + return ENABLING; + case 2: + return ENABLED; + case 3: + return DISABLING; + case 4: + return NOT_ENABLED; + case 5: + return FAILED_ENABLING; + case 6: + return FAILED_DISABLING; + 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 OperationsInsightsStatus findValueByNumber(int number) { + return OperationsInsightsStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.Database.getDescriptor().getEnumTypes().get(0); + } + + private static final OperationsInsightsStatus[] VALUES = values(); + + public static OperationsInsightsStatus 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 OperationsInsightsStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Identifier. The name of the Database resource in the following format:
                                              +   * projects/{project}/locations/{region}/databases/{database}
                                              +   * 
                                              + * + * 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. The name of the Database resource in the following format:
                                              +   * projects/{project}/locations/{region}/databases/{database}
                                              +   * 
                                              + * + * 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 DB_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbName_ = ""; + + /** + * + * + *
                                              +   * Optional. The database name. The name must begin with an alphabetic
                                              +   * character and can contain a maximum of eight alphanumeric characters.
                                              +   * Special characters are not permitted.
                                              +   * 
                                              + * + * string db_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbName. + */ + @java.lang.Override + public java.lang.String getDbName() { + java.lang.Object ref = dbName_; + 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(); + dbName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The database name. The name must begin with an alphabetic
                                              +   * character and can contain a maximum of eight alphanumeric characters.
                                              +   * Special characters are not permitted.
                                              +   * 
                                              + * + * string db_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbNameBytes() { + java.lang.Object ref = dbName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DB_UNIQUE_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbUniqueName_ = ""; + + /** + * + * + *
                                              +   * Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
                                              +   * 
                                              + * + * string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbUniqueName. + */ + @java.lang.Override + public java.lang.String getDbUniqueName() { + java.lang.Object ref = dbUniqueName_; + 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(); + dbUniqueName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
                                              +   * 
                                              + * + * string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbUniqueName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbUniqueNameBytes() { + java.lang.Object ref = dbUniqueName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbUniqueName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMIN_PASSWORD_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object adminPassword_ = ""; + + /** + * + * + *
                                              +   * Required. The password for the default ADMIN user.
                                              +   * 
                                              + * + * string admin_password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The adminPassword. + */ + @java.lang.Override + public java.lang.String getAdminPassword() { + java.lang.Object ref = adminPassword_; + 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(); + adminPassword_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The password for the default ADMIN user.
                                              +   * 
                                              + * + * string admin_password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for adminPassword. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdminPasswordBytes() { + java.lang.Object ref = adminPassword_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adminPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TDE_WALLET_PASSWORD_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object tdeWalletPassword_ = ""; + + /** + * + * + *
                                              +   * Optional. The TDE wallet password for the database.
                                              +   * 
                                              + * + * string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tdeWalletPassword. + */ + @java.lang.Override + public java.lang.String getTdeWalletPassword() { + java.lang.Object ref = tdeWalletPassword_; + 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(); + tdeWalletPassword_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The TDE wallet password for the database.
                                              +   * 
                                              + * + * string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tdeWalletPassword. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTdeWalletPasswordBytes() { + java.lang.Object ref = tdeWalletPassword_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tdeWalletPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTER_SET_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object characterSet_ = ""; + + /** + * + * + *
                                              +   * Optional. The character set for the database. The default is AL32UTF8.
                                              +   * 
                                              + * + * string character_set = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The characterSet. + */ + @java.lang.Override + public java.lang.String getCharacterSet() { + java.lang.Object ref = characterSet_; + 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(); + characterSet_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The character set for the database. The default is AL32UTF8.
                                              +   * 
                                              + * + * string character_set = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for characterSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCharacterSetBytes() { + java.lang.Object ref = characterSet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + characterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NCHARACTER_SET_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object ncharacterSet_ = ""; + + /** + * + * + *
                                              +   * Optional. The national character set for the database. The default is
                                              +   * AL16UTF16.
                                              +   * 
                                              + * + * string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ncharacterSet. + */ + @java.lang.Override + public java.lang.String getNcharacterSet() { + java.lang.Object ref = ncharacterSet_; + 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(); + ncharacterSet_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The national character set for the database. The default is
                                              +   * AL16UTF16.
                                              +   * 
                                              + * + * string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ncharacterSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNcharacterSetBytes() { + java.lang.Object ref = ncharacterSet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ncharacterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OCI_URL_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object ociUrl_ = ""; + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + @java.lang.Override + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + 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(); + ociUrl_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                              +   * Output only. The date and time that the Database was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.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 date and time that the Database was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.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 date and time that the Database was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.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 PROPERTIES_FIELD_NUMBER = 10; + private com.google.cloud.oracledatabase.v1.DatabaseProperties properties_; + + /** + * + * + *
                                              +   * Optional. The properties of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Optional. The properties of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseProperties.getDefaultInstance() + : properties_; + } + + /** + * + * + *
                                              +   * Optional. The properties of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabasePropertiesOrBuilder getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseProperties.getDefaultInstance() + : properties_; + } + + public static final int DATABASE_ID_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseId_ = ""; + + /** + * + * + *
                                              +   * Optional. The database ID of the Database.
                                              +   * 
                                              + * + * string database_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The databaseId. + */ + @java.lang.Override + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + 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(); + databaseId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The database ID of the Database.
                                              +   * 
                                              + * + * string database_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for databaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DB_HOME_NAME_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbHomeName_ = ""; + + /** + * + * + *
                                              +   * Optional. The name of the DbHome resource associated with the Database.
                                              +   * 
                                              + * + * string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbHomeName. + */ + @java.lang.Override + public java.lang.String getDbHomeName() { + java.lang.Object ref = dbHomeName_; + 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(); + dbHomeName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The name of the DbHome resource associated with the Database.
                                              +   * 
                                              + * + * string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbHomeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbHomeNameBytes() { + java.lang.Object ref = dbHomeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbHomeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_ORACLE_ZONE_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +   * Output only. The GCP Oracle zone where the Database is created.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcpOracleZone. + */ + @java.lang.Override + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + 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(); + gcpOracleZone_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The GCP Oracle zone where the Database is created.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcpOracleZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPS_INSIGHTS_STATUS_FIELD_NUMBER = 14; + private int opsInsightsStatus_ = 0; + + /** + * + * + *
                                              +   * Output only. The Status of Operations Insights for this Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for opsInsightsStatus. + */ + @java.lang.Override + public int getOpsInsightsStatusValue() { + return opsInsightsStatus_; + } + + /** + * + * + *
                                              +   * Output only. The Status of Operations Insights for this Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The opsInsightsStatus. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus + getOpsInsightsStatus() { + com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus result = + com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus.forNumber( + opsInsightsStatus_); + return result == null + ? com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dbName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbUniqueName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dbUniqueName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adminPassword_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, adminPassword_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tdeWalletPassword_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tdeWalletPassword_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, characterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ncharacterSet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ncharacterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ociUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, databaseId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbHomeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, dbHomeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, gcpOracleZone_); + } + if (opsInsightsStatus_ + != com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus + .OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, opsInsightsStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dbName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbUniqueName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dbUniqueName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adminPassword_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, adminPassword_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tdeWalletPassword_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tdeWalletPassword_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, characterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ncharacterSet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ncharacterSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ociUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, databaseId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbHomeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, dbHomeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, gcpOracleZone_); + } + if (opsInsightsStatus_ + != com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus + .OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, opsInsightsStatus_); + } + 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.oracledatabase.v1.Database)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.Database other = + (com.google.cloud.oracledatabase.v1.Database) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDbName().equals(other.getDbName())) return false; + if (!getDbUniqueName().equals(other.getDbUniqueName())) return false; + if (!getAdminPassword().equals(other.getAdminPassword())) return false; + if (!getTdeWalletPassword().equals(other.getTdeWalletPassword())) return false; + if (!getCharacterSet().equals(other.getCharacterSet())) return false; + if (!getNcharacterSet().equals(other.getNcharacterSet())) return false; + if (!getOciUrl().equals(other.getOciUrl())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!getDatabaseId().equals(other.getDatabaseId())) return false; + if (!getDbHomeName().equals(other.getDbHomeName())) return false; + if (!getGcpOracleZone().equals(other.getGcpOracleZone())) return false; + if (opsInsightsStatus_ != other.opsInsightsStatus_) 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) + DB_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDbName().hashCode(); + hash = (37 * hash) + DB_UNIQUE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDbUniqueName().hashCode(); + hash = (37 * hash) + ADMIN_PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getAdminPassword().hashCode(); + hash = (37 * hash) + TDE_WALLET_PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getTdeWalletPassword().hashCode(); + hash = (37 * hash) + CHARACTER_SET_FIELD_NUMBER; + hash = (53 * hash) + getCharacterSet().hashCode(); + hash = (37 * hash) + NCHARACTER_SET_FIELD_NUMBER; + hash = (53 * hash) + getNcharacterSet().hashCode(); + hash = (37 * hash) + OCI_URL_FIELD_NUMBER; + hash = (53 * hash) + getOciUrl().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseId().hashCode(); + hash = (37 * hash) + DB_HOME_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDbHomeName().hashCode(); + hash = (37 * hash) + GCP_ORACLE_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGcpOracleZone().hashCode(); + hash = (37 * hash) + OPS_INSIGHTS_STATUS_FIELD_NUMBER; + hash = (53 * hash) + opsInsightsStatus_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.Database parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.Database 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.oracledatabase.v1.Database parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.Database 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.oracledatabase.v1.Database parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.Database parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.Database parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.Database parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.Database parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.Database parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.Database parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.Database parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.Database prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Details of the Database resource.
                                              +   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.Database} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.Database) + com.google.cloud.oracledatabase.v1.DatabaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_Database_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_Database_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.Database.class, + com.google.cloud.oracledatabase.v1.Database.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.Database.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getPropertiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + dbName_ = ""; + dbUniqueName_ = ""; + adminPassword_ = ""; + tdeWalletPassword_ = ""; + characterSet_ = ""; + ncharacterSet_ = ""; + ociUrl_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + databaseId_ = ""; + dbHomeName_ = ""; + gcpOracleZone_ = ""; + opsInsightsStatus_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_Database_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Database getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.Database.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Database build() { + com.google.cloud.oracledatabase.v1.Database result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Database buildPartial() { + com.google.cloud.oracledatabase.v1.Database result = + new com.google.cloud.oracledatabase.v1.Database(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.Database result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dbName_ = dbName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dbUniqueName_ = dbUniqueName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.adminPassword_ = adminPassword_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tdeWalletPassword_ = tdeWalletPassword_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.characterSet_ = characterSet_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ncharacterSet_ = ncharacterSet_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ociUrl_ = ociUrl_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.databaseId_ = databaseId_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.dbHomeName_ = dbHomeName_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.gcpOracleZone_ = gcpOracleZone_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.opsInsightsStatus_ = opsInsightsStatus_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.Database) { + return mergeFrom((com.google.cloud.oracledatabase.v1.Database) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.Database other) { + if (other == com.google.cloud.oracledatabase.v1.Database.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDbName().isEmpty()) { + dbName_ = other.dbName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDbUniqueName().isEmpty()) { + dbUniqueName_ = other.dbUniqueName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAdminPassword().isEmpty()) { + adminPassword_ = other.adminPassword_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTdeWalletPassword().isEmpty()) { + tdeWalletPassword_ = other.tdeWalletPassword_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getCharacterSet().isEmpty()) { + characterSet_ = other.characterSet_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getNcharacterSet().isEmpty()) { + ncharacterSet_ = other.ncharacterSet_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getOciUrl().isEmpty()) { + ociUrl_ = other.ociUrl_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (!other.getDatabaseId().isEmpty()) { + databaseId_ = other.databaseId_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getDbHomeName().isEmpty()) { + dbHomeName_ = other.dbHomeName_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getGcpOracleZone().isEmpty()) { + gcpOracleZone_ = other.gcpOracleZone_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.opsInsightsStatus_ != 0) { + setOpsInsightsStatusValue(other.getOpsInsightsStatusValue()); + } + 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: + { + dbName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + dbUniqueName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + adminPassword_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + tdeWalletPassword_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + characterSet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + ncharacterSet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + ociUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + dbHomeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + gcpOracleZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + opsInsightsStatus_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 112 + 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_ = ""; + + /** + * + * + *
                                              +     * Identifier. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * 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. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * 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. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dbName_ = ""; + + /** + * + * + *
                                              +     * Optional. The database name. The name must begin with an alphabetic
                                              +     * character and can contain a maximum of eight alphanumeric characters.
                                              +     * Special characters are not permitted.
                                              +     * 
                                              + * + * string db_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbName. + */ + public java.lang.String getDbName() { + java.lang.Object ref = dbName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The database name. The name must begin with an alphabetic
                                              +     * character and can contain a maximum of eight alphanumeric characters.
                                              +     * Special characters are not permitted.
                                              +     * 
                                              + * + * string db_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbName. + */ + public com.google.protobuf.ByteString getDbNameBytes() { + java.lang.Object ref = dbName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The database name. The name must begin with an alphabetic
                                              +     * character and can contain a maximum of eight alphanumeric characters.
                                              +     * Special characters are not permitted.
                                              +     * 
                                              + * + * string db_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbName to set. + * @return This builder for chaining. + */ + public Builder setDbName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The database name. The name must begin with an alphabetic
                                              +     * character and can contain a maximum of eight alphanumeric characters.
                                              +     * Special characters are not permitted.
                                              +     * 
                                              + * + * string db_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbName() { + dbName_ = getDefaultInstance().getDbName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The database name. The name must begin with an alphabetic
                                              +     * character and can contain a maximum of eight alphanumeric characters.
                                              +     * Special characters are not permitted.
                                              +     * 
                                              + * + * string db_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dbName to set. + * @return This builder for chaining. + */ + public Builder setDbNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object dbUniqueName_ = ""; + + /** + * + * + *
                                              +     * Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
                                              +     * 
                                              + * + * string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbUniqueName. + */ + public java.lang.String getDbUniqueName() { + java.lang.Object ref = dbUniqueName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbUniqueName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
                                              +     * 
                                              + * + * string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbUniqueName. + */ + public com.google.protobuf.ByteString getDbUniqueNameBytes() { + java.lang.Object ref = dbUniqueName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbUniqueName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
                                              +     * 
                                              + * + * string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbUniqueName to set. + * @return This builder for chaining. + */ + public Builder setDbUniqueName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbUniqueName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
                                              +     * 
                                              + * + * string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbUniqueName() { + dbUniqueName_ = getDefaultInstance().getDbUniqueName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
                                              +     * 
                                              + * + * string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dbUniqueName to set. + * @return This builder for chaining. + */ + public Builder setDbUniqueNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbUniqueName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object adminPassword_ = ""; + + /** + * + * + *
                                              +     * Required. The password for the default ADMIN user.
                                              +     * 
                                              + * + * string admin_password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The adminPassword. + */ + public java.lang.String getAdminPassword() { + java.lang.Object ref = adminPassword_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adminPassword_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The password for the default ADMIN user.
                                              +     * 
                                              + * + * string admin_password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for adminPassword. + */ + public com.google.protobuf.ByteString getAdminPasswordBytes() { + java.lang.Object ref = adminPassword_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adminPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The password for the default ADMIN user.
                                              +     * 
                                              + * + * string admin_password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The adminPassword to set. + * @return This builder for chaining. + */ + public Builder setAdminPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adminPassword_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The password for the default ADMIN user.
                                              +     * 
                                              + * + * string admin_password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAdminPassword() { + adminPassword_ = getDefaultInstance().getAdminPassword(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The password for the default ADMIN user.
                                              +     * 
                                              + * + * string admin_password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for adminPassword to set. + * @return This builder for chaining. + */ + public Builder setAdminPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adminPassword_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object tdeWalletPassword_ = ""; + + /** + * + * + *
                                              +     * Optional. The TDE wallet password for the database.
                                              +     * 
                                              + * + * string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tdeWalletPassword. + */ + public java.lang.String getTdeWalletPassword() { + java.lang.Object ref = tdeWalletPassword_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tdeWalletPassword_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The TDE wallet password for the database.
                                              +     * 
                                              + * + * string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tdeWalletPassword. + */ + public com.google.protobuf.ByteString getTdeWalletPasswordBytes() { + java.lang.Object ref = tdeWalletPassword_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tdeWalletPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The TDE wallet password for the database.
                                              +     * 
                                              + * + * string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tdeWalletPassword to set. + * @return This builder for chaining. + */ + public Builder setTdeWalletPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tdeWalletPassword_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The TDE wallet password for the database.
                                              +     * 
                                              + * + * string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTdeWalletPassword() { + tdeWalletPassword_ = getDefaultInstance().getTdeWalletPassword(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The TDE wallet password for the database.
                                              +     * 
                                              + * + * string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tdeWalletPassword to set. + * @return This builder for chaining. + */ + public Builder setTdeWalletPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tdeWalletPassword_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object characterSet_ = ""; + + /** + * + * + *
                                              +     * Optional. The character set for the database. The default is AL32UTF8.
                                              +     * 
                                              + * + * string character_set = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The characterSet. + */ + public java.lang.String getCharacterSet() { + java.lang.Object ref = characterSet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characterSet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The character set for the database. The default is AL32UTF8.
                                              +     * 
                                              + * + * string character_set = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for characterSet. + */ + public com.google.protobuf.ByteString getCharacterSetBytes() { + java.lang.Object ref = characterSet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + characterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The character set for the database. The default is AL32UTF8.
                                              +     * 
                                              + * + * string character_set = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The characterSet to set. + * @return This builder for chaining. + */ + public Builder setCharacterSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + characterSet_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The character set for the database. The default is AL32UTF8.
                                              +     * 
                                              + * + * string character_set = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCharacterSet() { + characterSet_ = getDefaultInstance().getCharacterSet(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The character set for the database. The default is AL32UTF8.
                                              +     * 
                                              + * + * string character_set = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for characterSet to set. + * @return This builder for chaining. + */ + public Builder setCharacterSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + characterSet_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object ncharacterSet_ = ""; + + /** + * + * + *
                                              +     * Optional. The national character set for the database. The default is
                                              +     * AL16UTF16.
                                              +     * 
                                              + * + * string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ncharacterSet. + */ + public java.lang.String getNcharacterSet() { + java.lang.Object ref = ncharacterSet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ncharacterSet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The national character set for the database. The default is
                                              +     * AL16UTF16.
                                              +     * 
                                              + * + * string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ncharacterSet. + */ + public com.google.protobuf.ByteString getNcharacterSetBytes() { + java.lang.Object ref = ncharacterSet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ncharacterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The national character set for the database. The default is
                                              +     * AL16UTF16.
                                              +     * 
                                              + * + * string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ncharacterSet to set. + * @return This builder for chaining. + */ + public Builder setNcharacterSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ncharacterSet_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The national character set for the database. The default is
                                              +     * AL16UTF16.
                                              +     * 
                                              + * + * string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNcharacterSet() { + ncharacterSet_ = getDefaultInstance().getNcharacterSet(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The national character set for the database. The default is
                                              +     * AL16UTF16.
                                              +     * 
                                              + * + * string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for ncharacterSet to set. + * @return This builder for chaining. + */ + public Builder setNcharacterSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ncharacterSet_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object ociUrl_ = ""; + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ociUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ociUrl_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOciUrl() { + ociUrl_ = getDefaultInstance().getOciUrl(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ociUrl_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time that the Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.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 date and time that the Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.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 date and time that the Database was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.cloud.oracledatabase.v1.DatabaseProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseProperties, + com.google.cloud.oracledatabase.v1.DatabaseProperties.Builder, + com.google.cloud.oracledatabase.v1.DatabasePropertiesOrBuilder> + propertiesBuilder_; + + /** + * + * + *
                                              +     * Optional. The properties of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                                              +     * Optional. The properties of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.DatabaseProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseProperties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. The properties of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties(com.google.cloud.oracledatabase.v1.DatabaseProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.DatabaseProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties(com.google.cloud.oracledatabase.v1.DatabaseProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.DatabaseProperties.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000200); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseProperties.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. The properties of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabasePropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseProperties.getDefaultInstance() + : properties_; + } + } + + /** + * + * + *
                                              +     * Optional. The properties of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseProperties, + com.google.cloud.oracledatabase.v1.DatabaseProperties.Builder, + com.google.cloud.oracledatabase.v1.DatabasePropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseProperties, + com.google.cloud.oracledatabase.v1.DatabaseProperties.Builder, + com.google.cloud.oracledatabase.v1.DatabasePropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private java.lang.Object databaseId_ = ""; + + /** + * + * + *
                                              +     * Optional. The database ID of the Database.
                                              +     * 
                                              + * + * string database_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The databaseId. + */ + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The database ID of the Database.
                                              +     * 
                                              + * + * string database_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for databaseId. + */ + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The database ID of the Database.
                                              +     * 
                                              + * + * string database_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The database ID of the Database.
                                              +     * 
                                              + * + * string database_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseId() { + databaseId_ = getDefaultInstance().getDatabaseId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The database ID of the Database.
                                              +     * 
                                              + * + * string database_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object dbHomeName_ = ""; + + /** + * + * + *
                                              +     * Optional. The name of the DbHome resource associated with the Database.
                                              +     * 
                                              + * + * string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbHomeName. + */ + public java.lang.String getDbHomeName() { + java.lang.Object ref = dbHomeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbHomeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The name of the DbHome resource associated with the Database.
                                              +     * 
                                              + * + * string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbHomeName. + */ + public com.google.protobuf.ByteString getDbHomeNameBytes() { + java.lang.Object ref = dbHomeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbHomeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The name of the DbHome resource associated with the Database.
                                              +     * 
                                              + * + * string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dbHomeName to set. + * @return This builder for chaining. + */ + public Builder setDbHomeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbHomeName_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the DbHome resource associated with the Database.
                                              +     * 
                                              + * + * string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDbHomeName() { + dbHomeName_ = getDefaultInstance().getDbHomeName(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the DbHome resource associated with the Database.
                                              +     * 
                                              + * + * string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dbHomeName to set. + * @return This builder for chaining. + */ + public Builder setDbHomeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbHomeName_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where the Database is created.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcpOracleZone. + */ + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpOracleZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where the Database is created.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcpOracleZone. + */ + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where the Database is created.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpOracleZone_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where the Database is created.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGcpOracleZone() { + gcpOracleZone_ = getDefaultInstance().getGcpOracleZone(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The GCP Oracle zone where the Database is created.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpOracleZone_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private int opsInsightsStatus_ = 0; + + /** + * + * + *
                                              +     * Output only. The Status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for opsInsightsStatus. + */ + @java.lang.Override + public int getOpsInsightsStatusValue() { + return opsInsightsStatus_; + } + + /** + * + * + *
                                              +     * Output only. The Status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for opsInsightsStatus to set. + * @return This builder for chaining. + */ + public Builder setOpsInsightsStatusValue(int value) { + opsInsightsStatus_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The Status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The opsInsightsStatus. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus + getOpsInsightsStatus() { + com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus result = + com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus.forNumber( + opsInsightsStatus_); + return result == null + ? com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The Status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The opsInsightsStatus to set. + * @return This builder for chaining. + */ + public Builder setOpsInsightsStatus( + com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + opsInsightsStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The Status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOpsInsightsStatus() { + bitField0_ = (bitField0_ & ~0x00002000); + opsInsightsStatus_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.Database) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.Database) + private static final com.google.cloud.oracledatabase.v1.Database DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.Database(); + } + + public static com.google.cloud.oracledatabase.v1.Database getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Database 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.oracledatabase.v1.Database getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSet.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSet.java new file mode 100644 index 000000000000..12556aa12894 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSet.java @@ -0,0 +1,1192 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database_character_set.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Details of the Database character set resource.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DatabaseCharacterSet} + */ +public final class DatabaseCharacterSet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DatabaseCharacterSet) + DatabaseCharacterSetOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DatabaseCharacterSet.newBuilder() to construct. + private DatabaseCharacterSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseCharacterSet() { + name_ = ""; + characterSetType_ = 0; + characterSet_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseCharacterSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseCharacterSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseCharacterSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.class, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder.class); + } + + /** + * + * + *
                                              +   * The type of character set a Database can have.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType} + */ + public enum CharacterSetType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Character set type is not specified.
                                              +     * 
                                              + * + * CHARACTER_SET_TYPE_UNSPECIFIED = 0; + */ + CHARACTER_SET_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Character set type is set to database.
                                              +     * 
                                              + * + * DATABASE = 1; + */ + DATABASE(1), + /** + * + * + *
                                              +     * Character set type is set to national.
                                              +     * 
                                              + * + * NATIONAL = 2; + */ + NATIONAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Character set type is not specified.
                                              +     * 
                                              + * + * CHARACTER_SET_TYPE_UNSPECIFIED = 0; + */ + public static final int CHARACTER_SET_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Character set type is set to database.
                                              +     * 
                                              + * + * DATABASE = 1; + */ + public static final int DATABASE_VALUE = 1; + + /** + * + * + *
                                              +     * Character set type is set to national.
                                              +     * 
                                              + * + * NATIONAL = 2; + */ + public static final int NATIONAL_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 CharacterSetType 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 CharacterSetType forNumber(int value) { + switch (value) { + case 0: + return CHARACTER_SET_TYPE_UNSPECIFIED; + case 1: + return DATABASE; + case 2: + return NATIONAL; + 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 CharacterSetType findValueByNumber(int number) { + return CharacterSetType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CharacterSetType[] VALUES = values(); + + public static CharacterSetType 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 CharacterSetType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Identifier. The name of the Database Character Set resource in the
                                              +   * following format:
                                              +   * projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}
                                              +   * 
                                              + * + * 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. The name of the Database Character Set resource in the
                                              +   * following format:
                                              +   * projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}
                                              +   * 
                                              + * + * 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 CHARACTER_SET_TYPE_FIELD_NUMBER = 2; + private int characterSetType_ = 0; + + /** + * + * + *
                                              +   * Output only. The character set type for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for characterSetType. + */ + @java.lang.Override + public int getCharacterSetTypeValue() { + return characterSetType_; + } + + /** + * + * + *
                                              +   * Output only. The character set type for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The characterSetType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType + getCharacterSetType() { + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType result = + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType.forNumber( + characterSetType_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType.UNRECOGNIZED + : result; + } + + public static final int CHARACTER_SET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object characterSet_ = ""; + + /** + * + * + *
                                              +   * Output only. The character set name for the Database which is the ID in the
                                              +   * resource name.
                                              +   * 
                                              + * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The characterSet. + */ + @java.lang.Override + public java.lang.String getCharacterSet() { + java.lang.Object ref = characterSet_; + 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(); + characterSet_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The character set name for the Database which is the ID in the
                                              +   * resource name.
                                              +   * 
                                              + * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for characterSet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCharacterSetBytes() { + java.lang.Object ref = characterSet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + characterSet_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (characterSetType_ + != com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType + .CHARACTER_SET_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, characterSetType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, characterSet_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (characterSetType_ + != com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType + .CHARACTER_SET_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, characterSetType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(characterSet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, characterSet_); + } + 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.oracledatabase.v1.DatabaseCharacterSet)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet other = + (com.google.cloud.oracledatabase.v1.DatabaseCharacterSet) obj; + + if (!getName().equals(other.getName())) return false; + if (characterSetType_ != other.characterSetType_) return false; + if (!getCharacterSet().equals(other.getCharacterSet())) 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) + CHARACTER_SET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + characterSetType_; + hash = (37 * hash) + CHARACTER_SET_FIELD_NUMBER; + hash = (53 * hash) + getCharacterSet().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet 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.oracledatabase.v1.DatabaseCharacterSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet 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.oracledatabase.v1.DatabaseCharacterSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Details of the Database character set resource.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DatabaseCharacterSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DatabaseCharacterSet) + com.google.cloud.oracledatabase.v1.DatabaseCharacterSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseCharacterSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseCharacterSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.class, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + characterSetType_ = 0; + characterSet_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseCharacterSet_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet build() { + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet buildPartial() { + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet result = + new com.google.cloud.oracledatabase.v1.DatabaseCharacterSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DatabaseCharacterSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.characterSetType_ = characterSetType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.characterSet_ = characterSet_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DatabaseCharacterSet) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DatabaseCharacterSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DatabaseCharacterSet other) { + if (other == com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.characterSetType_ != 0) { + setCharacterSetTypeValue(other.getCharacterSetTypeValue()); + } + if (!other.getCharacterSet().isEmpty()) { + characterSet_ = other.characterSet_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + characterSetType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + characterSet_ = 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 name_ = ""; + + /** + * + * + *
                                              +     * Identifier. The name of the Database Character Set resource in the
                                              +     * following format:
                                              +     * projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}
                                              +     * 
                                              + * + * 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. The name of the Database Character Set resource in the
                                              +     * following format:
                                              +     * projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}
                                              +     * 
                                              + * + * 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. The name of the Database Character Set resource in the
                                              +     * following format:
                                              +     * projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the Database Character Set resource in the
                                              +     * following format:
                                              +     * projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the Database Character Set resource in the
                                              +     * following format:
                                              +     * projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private int characterSetType_ = 0; + + /** + * + * + *
                                              +     * Output only. The character set type for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for characterSetType. + */ + @java.lang.Override + public int getCharacterSetTypeValue() { + return characterSetType_; + } + + /** + * + * + *
                                              +     * Output only. The character set type for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for characterSetType to set. + * @return This builder for chaining. + */ + public Builder setCharacterSetTypeValue(int value) { + characterSetType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The character set type for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The characterSetType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType + getCharacterSetType() { + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType result = + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType.forNumber( + characterSetType_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The character set type for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The characterSetType to set. + * @return This builder for chaining. + */ + public Builder setCharacterSetType( + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + characterSetType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The character set type for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCharacterSetType() { + bitField0_ = (bitField0_ & ~0x00000002); + characterSetType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object characterSet_ = ""; + + /** + * + * + *
                                              +     * Output only. The character set name for the Database which is the ID in the
                                              +     * resource name.
                                              +     * 
                                              + * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The characterSet. + */ + public java.lang.String getCharacterSet() { + java.lang.Object ref = characterSet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characterSet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The character set name for the Database which is the ID in the
                                              +     * resource name.
                                              +     * 
                                              + * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for characterSet. + */ + public com.google.protobuf.ByteString getCharacterSetBytes() { + java.lang.Object ref = characterSet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + characterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The character set name for the Database which is the ID in the
                                              +     * resource name.
                                              +     * 
                                              + * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The characterSet to set. + * @return This builder for chaining. + */ + public Builder setCharacterSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + characterSet_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The character set name for the Database which is the ID in the
                                              +     * resource name.
                                              +     * 
                                              + * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCharacterSet() { + characterSet_ = getDefaultInstance().getCharacterSet(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The character set name for the Database which is the ID in the
                                              +     * resource name.
                                              +     * 
                                              + * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for characterSet to set. + * @return This builder for chaining. + */ + public Builder setCharacterSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + characterSet_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DatabaseCharacterSet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DatabaseCharacterSet) + private static final com.google.cloud.oracledatabase.v1.DatabaseCharacterSet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DatabaseCharacterSet(); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseCharacterSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseCharacterSet 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.oracledatabase.v1.DatabaseCharacterSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetName.java new file mode 100644 index 000000000000..35d05eda6b10 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetName.java @@ -0,0 +1,232 @@ +/* + * Copyright 2025 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.oracledatabase.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 DatabaseCharacterSetName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATABASE_CHARACTER_SET = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/databaseCharacterSets/{database_character_set}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String databaseCharacterSet; + + @Deprecated + protected DatabaseCharacterSetName() { + project = null; + location = null; + databaseCharacterSet = null; + } + + private DatabaseCharacterSetName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + databaseCharacterSet = Preconditions.checkNotNull(builder.getDatabaseCharacterSet()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDatabaseCharacterSet() { + return databaseCharacterSet; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DatabaseCharacterSetName of( + String project, String location, String databaseCharacterSet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDatabaseCharacterSet(databaseCharacterSet) + .build(); + } + + public static String format(String project, String location, String databaseCharacterSet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDatabaseCharacterSet(databaseCharacterSet) + .build() + .toString(); + } + + public static DatabaseCharacterSetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATABASE_CHARACTER_SET.validatedMatch( + formattedString, "DatabaseCharacterSetName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("database_character_set")); + } + + 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 (DatabaseCharacterSetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATABASE_CHARACTER_SET.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 (databaseCharacterSet != null) { + fieldMapBuilder.put("database_character_set", databaseCharacterSet); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATABASE_CHARACTER_SET.instantiate( + "project", project, "location", location, "database_character_set", databaseCharacterSet); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DatabaseCharacterSetName that = ((DatabaseCharacterSetName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.databaseCharacterSet, that.databaseCharacterSet); + } + 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(databaseCharacterSet); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/databaseCharacterSets/{database_character_set}. + */ + public static class Builder { + private String project; + private String location; + private String databaseCharacterSet; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDatabaseCharacterSet() { + return databaseCharacterSet; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDatabaseCharacterSet(String databaseCharacterSet) { + this.databaseCharacterSet = databaseCharacterSet; + return this; + } + + private Builder(DatabaseCharacterSetName databaseCharacterSetName) { + this.project = databaseCharacterSetName.project; + this.location = databaseCharacterSetName.location; + this.databaseCharacterSet = databaseCharacterSetName.databaseCharacterSet; + } + + public DatabaseCharacterSetName build() { + return new DatabaseCharacterSetName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetOrBuilder.java new file mode 100644 index 000000000000..6ab741ef4ae4 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database_character_set.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DatabaseCharacterSetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DatabaseCharacterSet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Identifier. The name of the Database Character Set resource in the
                                              +   * following format:
                                              +   * projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Identifier. The name of the Database Character Set resource in the
                                              +   * following format:
                                              +   * projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Output only. The character set type for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for characterSetType. + */ + int getCharacterSetTypeValue(); + + /** + * + * + *
                                              +   * Output only. The character set type for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The characterSetType. + */ + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType getCharacterSetType(); + + /** + * + * + *
                                              +   * Output only. The character set name for the Database which is the ID in the
                                              +   * resource name.
                                              +   * 
                                              + * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The characterSet. + */ + java.lang.String getCharacterSet(); + + /** + * + * + *
                                              +   * Output only. The character set name for the Database which is the ID in the
                                              +   * resource name.
                                              +   * 
                                              + * + * string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for characterSet. + */ + com.google.protobuf.ByteString getCharacterSetBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetProto.java new file mode 100644 index 000000000000..e544b32b3c40 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetProto.java @@ -0,0 +1,125 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database_character_set.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class DatabaseCharacterSetProto { + private DatabaseCharacterSetProto() {} + + 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_oracledatabase_v1_DatabaseCharacterSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DatabaseCharacterSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_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/cloud/oracledatabase/v1/database_character_set.proto\022\036google.cloud.orac" + + "ledatabase.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\301\003\n" + + "\024DatabaseCharacterSet\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022f\n" + + "\022character_set_type\030\002 \001(\0162E.google.cloud" + + ".oracledatabase.v1.DatabaseCharacterSet.CharacterSetTypeB\003\340A\003\022\032\n\r" + + "character_set\030\003 \001(\tB\003\340A\003\"R\n" + + "\020CharacterSetType\022\"\n" + + "\036CHARACTER_SET_TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010DATABASE\020\001\022\014\n" + + "\010NATIONAL\020\002:\275\001\352A\271\001\n" + + "2oracledatabase.googleapis.com/DatabaseCharacterSet\022Vprojec" + + "ts/{project}/locations/{location}/databaseCharacterSets/{database_character_set}" + + "*\025databaseCharacterSets2\024databaseCharacterSet\"\264\001\n" + + " ListDatabaseCharacterSetsRequest\022J\n" + + "\006parent\030\001 \001(\tB:\340A\002\372A4\0222oracledataba" + + "se.googleapis.com/DatabaseCharacterSet\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\"\223\001\n" + + "!ListDatabaseCharacterSetsResponse\022U\n" + + "\027database_character_sets\030\001" + + " \003(\01324.google.cloud.oracledatabase.v1.DatabaseCharacterSet\022\027\n" + + "\017next_page_token\030\002 \001(\tB\363\001\n" + + "\"com.google.cloud.oracledatabase.v1B\031DatabaseCharacterSetP" + + "rotoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabase" + + "pb\252\002\036Google.Cloud.OracleDatabase.V1\312\002\036Go" + + "ogle\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::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(), + }); + internal_static_google_cloud_oracledatabase_v1_DatabaseCharacterSet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_DatabaseCharacterSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DatabaseCharacterSet_descriptor, + new java.lang.String[] { + "Name", "CharacterSetType", "CharacterSet", + }); + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_descriptor, + new java.lang.String[] { + "DatabaseCharacterSets", "NextPageToken", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseManagementConfig.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseManagementConfig.java new file mode 100644 index 000000000000..2e1a09f4333b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseManagementConfig.java @@ -0,0 +1,1276 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The configuration of the Database Management service.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DatabaseManagementConfig} + */ +public final class DatabaseManagementConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DatabaseManagementConfig) + DatabaseManagementConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DatabaseManagementConfig.newBuilder() to construct. + private DatabaseManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseManagementConfig() { + managementState_ = 0; + managementType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseManagementConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.class, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder.class); + } + + /** + * + * + *
                                              +   * The status of the Database Management service.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState} + */ + public enum ManagementState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The status is not specified.
                                              +     * 
                                              + * + * MANAGEMENT_STATE_UNSPECIFIED = 0; + */ + MANAGEMENT_STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * The Database Management service is enabling.
                                              +     * 
                                              + * + * ENABLING = 1; + */ + ENABLING(1), + /** + * + * + *
                                              +     * The Database Management service is enabled.
                                              +     * 
                                              + * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
                                              +     * The Database Management service is disabling.
                                              +     * 
                                              + * + * DISABLING = 3; + */ + DISABLING(3), + /** + * + * + *
                                              +     * The Database Management service is disabled.
                                              +     * 
                                              + * + * DISABLED = 4; + */ + DISABLED(4), + /** + * + * + *
                                              +     * The Database Management service is updating.
                                              +     * 
                                              + * + * UPDATING = 5; + */ + UPDATING(5), + /** + * + * + *
                                              +     * The Database Management service failed to enable.
                                              +     * 
                                              + * + * FAILED_ENABLING = 6; + */ + FAILED_ENABLING(6), + /** + * + * + *
                                              +     * The Database Management service failed to disable.
                                              +     * 
                                              + * + * FAILED_DISABLING = 7; + */ + FAILED_DISABLING(7), + /** + * + * + *
                                              +     * The Database Management service failed to update.
                                              +     * 
                                              + * + * FAILED_UPDATING = 8; + */ + FAILED_UPDATING(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The status is not specified.
                                              +     * 
                                              + * + * MANAGEMENT_STATE_UNSPECIFIED = 0; + */ + public static final int MANAGEMENT_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * The Database Management service is enabling.
                                              +     * 
                                              + * + * ENABLING = 1; + */ + public static final int ENABLING_VALUE = 1; + + /** + * + * + *
                                              +     * The Database Management service is enabled.
                                              +     * 
                                              + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + /** + * + * + *
                                              +     * The Database Management service is disabling.
                                              +     * 
                                              + * + * DISABLING = 3; + */ + public static final int DISABLING_VALUE = 3; + + /** + * + * + *
                                              +     * The Database Management service is disabled.
                                              +     * 
                                              + * + * DISABLED = 4; + */ + public static final int DISABLED_VALUE = 4; + + /** + * + * + *
                                              +     * The Database Management service is updating.
                                              +     * 
                                              + * + * UPDATING = 5; + */ + public static final int UPDATING_VALUE = 5; + + /** + * + * + *
                                              +     * The Database Management service failed to enable.
                                              +     * 
                                              + * + * FAILED_ENABLING = 6; + */ + public static final int FAILED_ENABLING_VALUE = 6; + + /** + * + * + *
                                              +     * The Database Management service failed to disable.
                                              +     * 
                                              + * + * FAILED_DISABLING = 7; + */ + public static final int FAILED_DISABLING_VALUE = 7; + + /** + * + * + *
                                              +     * The Database Management service failed to update.
                                              +     * 
                                              + * + * FAILED_UPDATING = 8; + */ + public static final int FAILED_UPDATING_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 ManagementState 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 ManagementState forNumber(int value) { + switch (value) { + case 0: + return MANAGEMENT_STATE_UNSPECIFIED; + case 1: + return ENABLING; + case 2: + return ENABLED; + case 3: + return DISABLING; + case 4: + return DISABLED; + case 5: + return UPDATING; + case 6: + return FAILED_ENABLING; + case 7: + return FAILED_DISABLING; + case 8: + return FAILED_UPDATING; + 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 ManagementState findValueByNumber(int number) { + return ManagementState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ManagementState[] VALUES = values(); + + public static ManagementState 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 ManagementState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState) + } + + /** + * + * + *
                                              +   * The Database Management type.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType} + */ + public enum ManagementType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The type is not specified.
                                              +     * 
                                              + * + * MANAGEMENT_TYPE_UNSPECIFIED = 0; + */ + MANAGEMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Basic Database Management.
                                              +     * 
                                              + * + * BASIC = 1; + */ + BASIC(1), + /** + * + * + *
                                              +     * Advanced Database Management.
                                              +     * 
                                              + * + * ADVANCED = 2; + */ + ADVANCED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The type is not specified.
                                              +     * 
                                              + * + * MANAGEMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int MANAGEMENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Basic Database Management.
                                              +     * 
                                              + * + * BASIC = 1; + */ + public static final int BASIC_VALUE = 1; + + /** + * + * + *
                                              +     * Advanced Database Management.
                                              +     * 
                                              + * + * ADVANCED = 2; + */ + public static final int ADVANCED_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 ManagementType 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 ManagementType forNumber(int value) { + switch (value) { + case 0: + return MANAGEMENT_TYPE_UNSPECIFIED; + case 1: + return BASIC; + case 2: + return ADVANCED; + 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 ManagementType findValueByNumber(int number) { + return ManagementType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ManagementType[] VALUES = values(); + + public static ManagementType 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 ManagementType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType) + } + + public static final int MANAGEMENT_STATE_FIELD_NUMBER = 1; + private int managementState_ = 0; + + /** + * + * + *
                                              +   * Output only. The status of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState management_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for managementState. + */ + @java.lang.Override + public int getManagementStateValue() { + return managementState_; + } + + /** + * + * + *
                                              +   * Output only. The status of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState management_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managementState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState + getManagementState() { + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState result = + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState.forNumber( + managementState_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState.UNRECOGNIZED + : result; + } + + public static final int MANAGEMENT_TYPE_FIELD_NUMBER = 2; + private int managementType_ = 0; + + /** + * + * + *
                                              +   * Output only. The Database Management type.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType management_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for managementType. + */ + @java.lang.Override + public int getManagementTypeValue() { + return managementType_; + } + + /** + * + * + *
                                              +   * Output only. The Database Management type.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType management_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managementType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType + getManagementType() { + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType result = + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType.forNumber( + managementType_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType.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 (managementState_ + != com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState + .MANAGEMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, managementState_); + } + if (managementType_ + != com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType + .MANAGEMENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, managementType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (managementState_ + != com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState + .MANAGEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, managementState_); + } + if (managementType_ + != com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType + .MANAGEMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, managementType_); + } + 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.oracledatabase.v1.DatabaseManagementConfig)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig other = + (com.google.cloud.oracledatabase.v1.DatabaseManagementConfig) obj; + + if (managementState_ != other.managementState_) return false; + if (managementType_ != other.managementType_) 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) + MANAGEMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + managementState_; + hash = (37 * hash) + MANAGEMENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + managementType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig 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.oracledatabase.v1.DatabaseManagementConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig 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.oracledatabase.v1.DatabaseManagementConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The configuration of the Database Management service.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DatabaseManagementConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DatabaseManagementConfig) + com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.class, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + managementState_ = 0; + managementType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig build() { + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig buildPartial() { + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig result = + new com.google.cloud.oracledatabase.v1.DatabaseManagementConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DatabaseManagementConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.managementState_ = managementState_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.managementType_ = managementType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DatabaseManagementConfig) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DatabaseManagementConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DatabaseManagementConfig other) { + if (other == com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance()) + return this; + if (other.managementState_ != 0) { + setManagementStateValue(other.getManagementStateValue()); + } + if (other.managementType_ != 0) { + setManagementTypeValue(other.getManagementTypeValue()); + } + 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: + { + managementState_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + managementType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 managementState_ = 0; + + /** + * + * + *
                                              +     * Output only. The status of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState management_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for managementState. + */ + @java.lang.Override + public int getManagementStateValue() { + return managementState_; + } + + /** + * + * + *
                                              +     * Output only. The status of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState management_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for managementState to set. + * @return This builder for chaining. + */ + public Builder setManagementStateValue(int value) { + managementState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The status of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState management_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managementState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState + getManagementState() { + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState result = + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState.forNumber( + managementState_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The status of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState management_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The managementState to set. + * @return This builder for chaining. + */ + public Builder setManagementState( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + managementState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The status of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState management_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearManagementState() { + bitField0_ = (bitField0_ & ~0x00000001); + managementState_ = 0; + onChanged(); + return this; + } + + private int managementType_ = 0; + + /** + * + * + *
                                              +     * Output only. The Database Management type.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType management_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for managementType. + */ + @java.lang.Override + public int getManagementTypeValue() { + return managementType_; + } + + /** + * + * + *
                                              +     * Output only. The Database Management type.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType management_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for managementType to set. + * @return This builder for chaining. + */ + public Builder setManagementTypeValue(int value) { + managementType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The Database Management type.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType management_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managementType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType + getManagementType() { + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType result = + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType.forNumber( + managementType_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The Database Management type.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType management_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The managementType to set. + * @return This builder for chaining. + */ + public Builder setManagementType( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + managementType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The Database Management type.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType management_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearManagementType() { + bitField0_ = (bitField0_ & ~0x00000002); + managementType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DatabaseManagementConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DatabaseManagementConfig) + private static final com.google.cloud.oracledatabase.v1.DatabaseManagementConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DatabaseManagementConfig(); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseManagementConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseManagementConfig 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.oracledatabase.v1.DatabaseManagementConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseManagementConfigOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseManagementConfigOrBuilder.java new file mode 100644 index 000000000000..4b92d4902fe2 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseManagementConfigOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DatabaseManagementConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DatabaseManagementConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. The status of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState management_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for managementState. + */ + int getManagementStateValue(); + + /** + * + * + *
                                              +   * Output only. The status of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState management_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managementState. + */ + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState getManagementState(); + + /** + * + * + *
                                              +   * Output only. The Database Management type.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType management_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for managementType. + */ + int getManagementTypeValue(); + + /** + * + * + *
                                              +   * Output only. The Database Management type.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType management_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managementType. + */ + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType getManagementType(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseName.java new file mode 100644 index 000000000000..69b5b3f61ae1 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.oracledatabase.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 DatabaseName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATABASE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/databases/{database}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String database; + + @Deprecated + protected DatabaseName() { + project = null; + location = null; + database = null; + } + + private DatabaseName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + database = Preconditions.checkNotNull(builder.getDatabase()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDatabase() { + return database; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DatabaseName of(String project, String location, String database) { + return newBuilder().setProject(project).setLocation(location).setDatabase(database).build(); + } + + public static String format(String project, String location, String database) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDatabase(database) + .build() + .toString(); + } + + public static DatabaseName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATABASE.validatedMatch( + formattedString, "DatabaseName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("database")); + } + + 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 (DatabaseName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATABASE.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 (database != null) { + fieldMapBuilder.put("database", database); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATABASE.instantiate( + "project", project, "location", location, "database", database); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DatabaseName that = ((DatabaseName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.database, that.database); + } + 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(database); + return h; + } + + /** Builder for projects/{project}/locations/{location}/databases/{database}. */ + public static class Builder { + private String project; + private String location; + private String database; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDatabase() { + return database; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDatabase(String database) { + this.database = database; + return this; + } + + private Builder(DatabaseName databaseName) { + this.project = databaseName.project; + this.location = databaseName.location; + this.database = databaseName.database; + } + + public DatabaseName build() { + return new DatabaseName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseOrBuilder.java new file mode 100644 index 000000000000..da60089c15fd --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseOrBuilder.java @@ -0,0 +1,435 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DatabaseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.Database) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Identifier. The name of the Database resource in the following format:
                                              +   * projects/{project}/locations/{region}/databases/{database}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Identifier. The name of the Database resource in the following format:
                                              +   * projects/{project}/locations/{region}/databases/{database}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. The database name. The name must begin with an alphabetic
                                              +   * character and can contain a maximum of eight alphanumeric characters.
                                              +   * Special characters are not permitted.
                                              +   * 
                                              + * + * string db_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbName. + */ + java.lang.String getDbName(); + + /** + * + * + *
                                              +   * Optional. The database name. The name must begin with an alphabetic
                                              +   * character and can contain a maximum of eight alphanumeric characters.
                                              +   * Special characters are not permitted.
                                              +   * 
                                              + * + * string db_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbName. + */ + com.google.protobuf.ByteString getDbNameBytes(); + + /** + * + * + *
                                              +   * Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
                                              +   * 
                                              + * + * string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbUniqueName. + */ + java.lang.String getDbUniqueName(); + + /** + * + * + *
                                              +   * Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.
                                              +   * 
                                              + * + * string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbUniqueName. + */ + com.google.protobuf.ByteString getDbUniqueNameBytes(); + + /** + * + * + *
                                              +   * Required. The password for the default ADMIN user.
                                              +   * 
                                              + * + * string admin_password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The adminPassword. + */ + java.lang.String getAdminPassword(); + + /** + * + * + *
                                              +   * Required. The password for the default ADMIN user.
                                              +   * 
                                              + * + * string admin_password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for adminPassword. + */ + com.google.protobuf.ByteString getAdminPasswordBytes(); + + /** + * + * + *
                                              +   * Optional. The TDE wallet password for the database.
                                              +   * 
                                              + * + * string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tdeWalletPassword. + */ + java.lang.String getTdeWalletPassword(); + + /** + * + * + *
                                              +   * Optional. The TDE wallet password for the database.
                                              +   * 
                                              + * + * string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tdeWalletPassword. + */ + com.google.protobuf.ByteString getTdeWalletPasswordBytes(); + + /** + * + * + *
                                              +   * Optional. The character set for the database. The default is AL32UTF8.
                                              +   * 
                                              + * + * string character_set = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The characterSet. + */ + java.lang.String getCharacterSet(); + + /** + * + * + *
                                              +   * Optional. The character set for the database. The default is AL32UTF8.
                                              +   * 
                                              + * + * string character_set = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for characterSet. + */ + com.google.protobuf.ByteString getCharacterSetBytes(); + + /** + * + * + *
                                              +   * Optional. The national character set for the database. The default is
                                              +   * AL16UTF16.
                                              +   * 
                                              + * + * string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ncharacterSet. + */ + java.lang.String getNcharacterSet(); + + /** + * + * + *
                                              +   * Optional. The national character set for the database. The default is
                                              +   * AL16UTF16.
                                              +   * 
                                              + * + * string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ncharacterSet. + */ + com.google.protobuf.ByteString getNcharacterSetBytes(); + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + java.lang.String getOciUrl(); + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + com.google.protobuf.ByteString getOciUrlBytes(); + + /** + * + * + *
                                              +   * Output only. The date and time that the Database was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the Database was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the Database was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                              +   * Optional. The properties of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + + /** + * + * + *
                                              +   * Optional. The properties of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.DatabaseProperties getProperties(); + + /** + * + * + *
                                              +   * Optional. The properties of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DatabasePropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * + * + *
                                              +   * Optional. The database ID of the Database.
                                              +   * 
                                              + * + * string database_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The databaseId. + */ + java.lang.String getDatabaseId(); + + /** + * + * + *
                                              +   * Optional. The database ID of the Database.
                                              +   * 
                                              + * + * string database_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for databaseId. + */ + com.google.protobuf.ByteString getDatabaseIdBytes(); + + /** + * + * + *
                                              +   * Optional. The name of the DbHome resource associated with the Database.
                                              +   * 
                                              + * + * string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dbHomeName. + */ + java.lang.String getDbHomeName(); + + /** + * + * + *
                                              +   * Optional. The name of the DbHome resource associated with the Database.
                                              +   * 
                                              + * + * string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dbHomeName. + */ + com.google.protobuf.ByteString getDbHomeNameBytes(); + + /** + * + * + *
                                              +   * Output only. The GCP Oracle zone where the Database is created.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcpOracleZone. + */ + java.lang.String getGcpOracleZone(); + + /** + * + * + *
                                              +   * Output only. The GCP Oracle zone where the Database is created.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcpOracleZone. + */ + com.google.protobuf.ByteString getGcpOracleZoneBytes(); + + /** + * + * + *
                                              +   * Output only. The Status of Operations Insights for this Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for opsInsightsStatus. + */ + int getOpsInsightsStatusValue(); + + /** + * + * + *
                                              +   * Output only. The Status of Operations Insights for this Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The opsInsightsStatus. + */ + com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus getOpsInsightsStatus(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseProperties.java new file mode 100644 index 000000000000..095ad6044a24 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseProperties.java @@ -0,0 +1,1803 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The properties of a Database.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DatabaseProperties} + */ +public final class DatabaseProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DatabaseProperties) + DatabasePropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DatabaseProperties.newBuilder() to construct. + private DatabaseProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseProperties() { + state_ = 0; + dbVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DatabaseProperties.class, + com.google.cloud.oracledatabase.v1.DatabaseProperties.Builder.class); + } + + /** + * + * + *
                                              +   * The various lifecycle states of the Database.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState} + */ + public enum DatabaseLifecycleState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + DATABASE_LIFECYCLE_STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
                                              +     * Indicates that the resource is in updating state.
                                              +     * 
                                              + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
                                              +     * Indicates that the resource is in backup in progress state.
                                              +     * 
                                              + * + * BACKUP_IN_PROGRESS = 4; + */ + BACKUP_IN_PROGRESS(4), + /** + * + * + *
                                              +     * Indicates that the resource is in upgrading state.
                                              +     * 
                                              + * + * UPGRADING = 5; + */ + UPGRADING(5), + /** + * + * + *
                                              +     * Indicates that the resource is in converting state.
                                              +     * 
                                              + * + * CONVERTING = 6; + */ + CONVERTING(6), + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 7; + */ + TERMINATING(7), + /** + * + * + *
                                              +     * Indicates that the resource is in terminated state.
                                              +     * 
                                              + * + * TERMINATED = 8; + */ + TERMINATED(8), + /** + * + * + *
                                              +     * Indicates that the resource is in restore failed state.
                                              +     * 
                                              + * + * RESTORE_FAILED = 9; + */ + RESTORE_FAILED(9), + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 10; + */ + FAILED(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + public static final int DATABASE_LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + + /** + * + * + *
                                              +     * Indicates that the resource is in updating state.
                                              +     * 
                                              + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + /** + * + * + *
                                              +     * Indicates that the resource is in backup in progress state.
                                              +     * 
                                              + * + * BACKUP_IN_PROGRESS = 4; + */ + public static final int BACKUP_IN_PROGRESS_VALUE = 4; + + /** + * + * + *
                                              +     * Indicates that the resource is in upgrading state.
                                              +     * 
                                              + * + * UPGRADING = 5; + */ + public static final int UPGRADING_VALUE = 5; + + /** + * + * + *
                                              +     * Indicates that the resource is in converting state.
                                              +     * 
                                              + * + * CONVERTING = 6; + */ + public static final int CONVERTING_VALUE = 6; + + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 7; + */ + public static final int TERMINATING_VALUE = 7; + + /** + * + * + *
                                              +     * Indicates that the resource is in terminated state.
                                              +     * 
                                              + * + * TERMINATED = 8; + */ + public static final int TERMINATED_VALUE = 8; + + /** + * + * + *
                                              +     * Indicates that the resource is in restore failed state.
                                              +     * 
                                              + * + * RESTORE_FAILED = 9; + */ + public static final int RESTORE_FAILED_VALUE = 9; + + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 10; + */ + public static final int FAILED_VALUE = 10; + + 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 DatabaseLifecycleState 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 DatabaseLifecycleState forNumber(int value) { + switch (value) { + case 0: + return DATABASE_LIFECYCLE_STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return UPDATING; + case 4: + return BACKUP_IN_PROGRESS; + case 5: + return UPGRADING; + case 6: + return CONVERTING; + case 7: + return TERMINATING; + case 8: + return TERMINATED; + case 9: + return RESTORE_FAILED; + case 10: + return FAILED; + 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 DatabaseLifecycleState findValueByNumber(int number) { + return DatabaseLifecycleState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DatabaseLifecycleState[] VALUES = values(); + + public static DatabaseLifecycleState 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 DatabaseLifecycleState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState) + } + + private int bitField0_; + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + + /** + * + * + *
                                              +   * Output only. State of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +   * Output only. State of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState getState() { + com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState result = + com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState.forNumber( + state_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState.UNRECOGNIZED + : result; + } + + public static final int DB_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbVersion_ = ""; + + /** + * + * + *
                                              +   * Required. The Oracle Database version.
                                              +   * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dbVersion. + */ + @java.lang.Override + public java.lang.String getDbVersion() { + java.lang.Object ref = dbVersion_; + 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(); + dbVersion_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The Oracle Database version.
                                              +   * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dbVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbVersionBytes() { + java.lang.Object ref = dbVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DB_BACKUP_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.DbBackupConfig dbBackupConfig_; + + /** + * + * + *
                                              +   * Optional. Backup options for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dbBackupConfig field is set. + */ + @java.lang.Override + public boolean hasDbBackupConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Optional. Backup options for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbBackupConfig. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig getDbBackupConfig() { + return dbBackupConfig_ == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.getDefaultInstance() + : dbBackupConfig_; + } + + /** + * + * + *
                                              +   * Optional. Backup options for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfigOrBuilder getDbBackupConfigOrBuilder() { + return dbBackupConfig_ == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.getDefaultInstance() + : dbBackupConfig_; + } + + public static final int DATABASE_MANAGEMENT_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.oracledatabase.v1.DatabaseManagementConfig databaseManagementConfig_; + + /** + * + * + *
                                              +   * Output only. The Database Management config.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the databaseManagementConfig field is set. + */ + @java.lang.Override + public boolean hasDatabaseManagementConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Output only. The Database Management config.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementConfig. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig getDatabaseManagementConfig() { + return databaseManagementConfig_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance() + : databaseManagementConfig_; + } + + /** + * + * + *
                                              +   * Output only. The Database Management config.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder + getDatabaseManagementConfigOrBuilder() { + return databaseManagementConfig_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance() + : databaseManagementConfig_; + } + + 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 (state_ + != com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState + .DATABASE_LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dbVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDbBackupConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getDatabaseManagementConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState + .DATABASE_LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dbVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDbBackupConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getDatabaseManagementConfig()); + } + 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.oracledatabase.v1.DatabaseProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DatabaseProperties other = + (com.google.cloud.oracledatabase.v1.DatabaseProperties) obj; + + if (state_ != other.state_) return false; + if (!getDbVersion().equals(other.getDbVersion())) return false; + if (hasDbBackupConfig() != other.hasDbBackupConfig()) return false; + if (hasDbBackupConfig()) { + if (!getDbBackupConfig().equals(other.getDbBackupConfig())) return false; + } + if (hasDatabaseManagementConfig() != other.hasDatabaseManagementConfig()) return false; + if (hasDatabaseManagementConfig()) { + if (!getDatabaseManagementConfig().equals(other.getDatabaseManagementConfig())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + DB_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDbVersion().hashCode(); + if (hasDbBackupConfig()) { + hash = (37 * hash) + DB_BACKUP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDbBackupConfig().hashCode(); + } + if (hasDatabaseManagementConfig()) { + hash = (37 * hash) + DATABASE_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseManagementConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties 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.oracledatabase.v1.DatabaseProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties 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.oracledatabase.v1.DatabaseProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DatabaseProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The properties of a Database.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DatabaseProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DatabaseProperties) + com.google.cloud.oracledatabase.v1.DatabasePropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DatabaseProperties.class, + com.google.cloud.oracledatabase.v1.DatabaseProperties.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DatabaseProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDbBackupConfigFieldBuilder(); + getDatabaseManagementConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + dbVersion_ = ""; + dbBackupConfig_ = null; + if (dbBackupConfigBuilder_ != null) { + dbBackupConfigBuilder_.dispose(); + dbBackupConfigBuilder_ = null; + } + databaseManagementConfig_ = null; + if (databaseManagementConfigBuilder_ != null) { + databaseManagementConfigBuilder_.dispose(); + databaseManagementConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseProperties getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DatabaseProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseProperties build() { + com.google.cloud.oracledatabase.v1.DatabaseProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseProperties buildPartial() { + com.google.cloud.oracledatabase.v1.DatabaseProperties result = + new com.google.cloud.oracledatabase.v1.DatabaseProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DatabaseProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dbVersion_ = dbVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dbBackupConfig_ = + dbBackupConfigBuilder_ == null ? dbBackupConfig_ : dbBackupConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.databaseManagementConfig_ = + databaseManagementConfigBuilder_ == null + ? databaseManagementConfig_ + : databaseManagementConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DatabaseProperties) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DatabaseProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DatabaseProperties other) { + if (other == com.google.cloud.oracledatabase.v1.DatabaseProperties.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getDbVersion().isEmpty()) { + dbVersion_ = other.dbVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDbBackupConfig()) { + mergeDbBackupConfig(other.getDbBackupConfig()); + } + if (other.hasDatabaseManagementConfig()) { + mergeDatabaseManagementConfig(other.getDatabaseManagementConfig()); + } + 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: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + dbVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDbBackupConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getDatabaseManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 state_ = 0; + + /** + * + * + *
                                              +     * Output only. State of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +     * Output only. State of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState getState() { + com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState result = + com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState.forNumber( + state_); + return result == null + ? com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. State of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object dbVersion_ = ""; + + /** + * + * + *
                                              +     * Required. The Oracle Database version.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dbVersion. + */ + public java.lang.String getDbVersion() { + java.lang.Object ref = dbVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The Oracle Database version.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dbVersion. + */ + public com.google.protobuf.ByteString getDbVersionBytes() { + java.lang.Object ref = dbVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The Oracle Database version.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dbVersion to set. + * @return This builder for chaining. + */ + public Builder setDbVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The Oracle Database version.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDbVersion() { + dbVersion_ = getDefaultInstance().getDbVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The Oracle Database version.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dbVersion to set. + * @return This builder for chaining. + */ + public Builder setDbVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.DbBackupConfig dbBackupConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbBackupConfig, + com.google.cloud.oracledatabase.v1.DbBackupConfig.Builder, + com.google.cloud.oracledatabase.v1.DbBackupConfigOrBuilder> + dbBackupConfigBuilder_; + + /** + * + * + *
                                              +     * Optional. Backup options for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dbBackupConfig field is set. + */ + public boolean hasDbBackupConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * Optional. Backup options for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbBackupConfig. + */ + public com.google.cloud.oracledatabase.v1.DbBackupConfig getDbBackupConfig() { + if (dbBackupConfigBuilder_ == null) { + return dbBackupConfig_ == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.getDefaultInstance() + : dbBackupConfig_; + } else { + return dbBackupConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. Backup options for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDbBackupConfig(com.google.cloud.oracledatabase.v1.DbBackupConfig value) { + if (dbBackupConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dbBackupConfig_ = value; + } else { + dbBackupConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Backup options for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDbBackupConfig( + com.google.cloud.oracledatabase.v1.DbBackupConfig.Builder builderForValue) { + if (dbBackupConfigBuilder_ == null) { + dbBackupConfig_ = builderForValue.build(); + } else { + dbBackupConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Backup options for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDbBackupConfig(com.google.cloud.oracledatabase.v1.DbBackupConfig value) { + if (dbBackupConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && dbBackupConfig_ != null + && dbBackupConfig_ + != com.google.cloud.oracledatabase.v1.DbBackupConfig.getDefaultInstance()) { + getDbBackupConfigBuilder().mergeFrom(value); + } else { + dbBackupConfig_ = value; + } + } else { + dbBackupConfigBuilder_.mergeFrom(value); + } + if (dbBackupConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Backup options for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDbBackupConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + dbBackupConfig_ = null; + if (dbBackupConfigBuilder_ != null) { + dbBackupConfigBuilder_.dispose(); + dbBackupConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Backup options for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbBackupConfig.Builder getDbBackupConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDbBackupConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. Backup options for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbBackupConfigOrBuilder getDbBackupConfigOrBuilder() { + if (dbBackupConfigBuilder_ != null) { + return dbBackupConfigBuilder_.getMessageOrBuilder(); + } else { + return dbBackupConfig_ == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.getDefaultInstance() + : dbBackupConfig_; + } + } + + /** + * + * + *
                                              +     * Optional. Backup options for the Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbBackupConfig, + com.google.cloud.oracledatabase.v1.DbBackupConfig.Builder, + com.google.cloud.oracledatabase.v1.DbBackupConfigOrBuilder> + getDbBackupConfigFieldBuilder() { + if (dbBackupConfigBuilder_ == null) { + dbBackupConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbBackupConfig, + com.google.cloud.oracledatabase.v1.DbBackupConfig.Builder, + com.google.cloud.oracledatabase.v1.DbBackupConfigOrBuilder>( + getDbBackupConfig(), getParentForChildren(), isClean()); + dbBackupConfig_ = null; + } + return dbBackupConfigBuilder_; + } + + private com.google.cloud.oracledatabase.v1.DatabaseManagementConfig databaseManagementConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder> + databaseManagementConfigBuilder_; + + /** + * + * + *
                                              +     * Output only. The Database Management config.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the databaseManagementConfig field is set. + */ + public boolean hasDatabaseManagementConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +     * Output only. The Database Management config.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementConfig. + */ + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig + getDatabaseManagementConfig() { + if (databaseManagementConfigBuilder_ == null) { + return databaseManagementConfig_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance() + : databaseManagementConfig_; + } else { + return databaseManagementConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Output only. The Database Management config.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDatabaseManagementConfig( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig value) { + if (databaseManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + databaseManagementConfig_ = value; + } else { + databaseManagementConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The Database Management config.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDatabaseManagementConfig( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder builderForValue) { + if (databaseManagementConfigBuilder_ == null) { + databaseManagementConfig_ = builderForValue.build(); + } else { + databaseManagementConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The Database Management config.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDatabaseManagementConfig( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig value) { + if (databaseManagementConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && databaseManagementConfig_ != null + && databaseManagementConfig_ + != com.google.cloud.oracledatabase.v1.DatabaseManagementConfig + .getDefaultInstance()) { + getDatabaseManagementConfigBuilder().mergeFrom(value); + } else { + databaseManagementConfig_ = value; + } + } else { + databaseManagementConfigBuilder_.mergeFrom(value); + } + if (databaseManagementConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The Database Management config.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDatabaseManagementConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + databaseManagementConfig_ = null; + if (databaseManagementConfigBuilder_ != null) { + databaseManagementConfigBuilder_.dispose(); + databaseManagementConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The Database Management config.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder + getDatabaseManagementConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDatabaseManagementConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The Database Management config.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder + getDatabaseManagementConfigOrBuilder() { + if (databaseManagementConfigBuilder_ != null) { + return databaseManagementConfigBuilder_.getMessageOrBuilder(); + } else { + return databaseManagementConfig_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance() + : databaseManagementConfig_; + } + } + + /** + * + * + *
                                              +     * Output only. The Database Management config.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder> + getDatabaseManagementConfigFieldBuilder() { + if (databaseManagementConfigBuilder_ == null) { + databaseManagementConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder>( + getDatabaseManagementConfig(), getParentForChildren(), isClean()); + databaseManagementConfig_ = null; + } + return databaseManagementConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DatabaseProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DatabaseProperties) + private static final com.google.cloud.oracledatabase.v1.DatabaseProperties DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DatabaseProperties(); + } + + public static com.google.cloud.oracledatabase.v1.DatabaseProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseProperties 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.oracledatabase.v1.DatabaseProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabasePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabasePropertiesOrBuilder.java new file mode 100644 index 000000000000..b8cd27885b41 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabasePropertiesOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DatabasePropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DatabaseProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. State of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                              +   * Output only. State of the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState getState(); + + /** + * + * + *
                                              +   * Required. The Oracle Database version.
                                              +   * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dbVersion. + */ + java.lang.String getDbVersion(); + + /** + * + * + *
                                              +   * Required. The Oracle Database version.
                                              +   * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dbVersion. + */ + com.google.protobuf.ByteString getDbVersionBytes(); + + /** + * + * + *
                                              +   * Optional. Backup options for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dbBackupConfig field is set. + */ + boolean hasDbBackupConfig(); + + /** + * + * + *
                                              +   * Optional. Backup options for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbBackupConfig. + */ + com.google.cloud.oracledatabase.v1.DbBackupConfig getDbBackupConfig(); + + /** + * + * + *
                                              +   * Optional. Backup options for the Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DbBackupConfigOrBuilder getDbBackupConfigOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The Database Management config.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the databaseManagementConfig field is set. + */ + boolean hasDatabaseManagementConfig(); + + /** + * + * + *
                                              +   * Output only. The Database Management config.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementConfig. + */ + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig getDatabaseManagementConfig(); + + /** + * + * + *
                                              +   * Output only. The Database Management config.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder + getDatabaseManagementConfigOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseProto.java new file mode 100644 index 000000000000..5c45444a74e7 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseProto.java @@ -0,0 +1,287 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class DatabaseProto { + private DatabaseProto() {} + + 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_oracledatabase_v1_Database_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_Database_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_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/cloud/oracledatabase/v1/databas" + + "e.proto\022\036google.cloud.oracledatabase.v1\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\0327google/cloud/oracle" + + "database/v1/pluggable_database.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\033google/type/dayofweek.proto\"\310\006\n" + + "\010Database\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + + "\007db_name\030\002 \001(\tB\003\340A\001\022\033\n" + + "\016db_unique_name\030\003 \001(\tB\003\340A\001\022\033\n" + + "\016admin_password\030\004 \001(\tB\003\340A\002\022 \n" + + "\023tde_wallet_password\030\005 \001(\tB\003\340A\001\022\032\n\r" + + "character_set\030\006 \001(\tB\003\340A\001\022\033\n" + + "\016ncharacter_set\030\007 \001(\tB\003\340A\001\022\024\n" + + "\007oci_url\030\010 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022K\n\n" + + "properties\030\n" + + " \001(\01322.google.cloud.oracledatabase.v1.DatabasePropertiesB\003\340A\001\022\030\n" + + "\013database_id\030\013 \001(\tB\003\340A\001\022\031\n" + + "\014db_home_name\030\014 \001(\tB\003\340A\001\022\034\n" + + "\017gcp_oracle_zone\030\r" + + " \001(\tB\003\340A\003\022c\n" + + "\023ops_insights_status\030\016 \001(\0162A.google.cloud.oracledatabase.v1." + + "Database.OperationsInsightsStatusB\003\340A\003\"\254\001\n" + + "\030OperationsInsightsStatus\022*\n" + + "&OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED\020\000\022\014\n" + + "\010ENABLING\020\001\022\013\n" + + "\007ENABLED\020\002\022\r\n" + + "\tDISABLING\020\003\022\017\n" + + "\013NOT_ENABLED\020\004\022\023\n" + + "\017FAILED_ENABLING\020\005\022\024\n" + + "\020FAILED_DISABLING\020\006:~\352A{\n" + + "&oracledatabase.googleapis.com/Database\022\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&oracledatabase.googleapis.com/Database\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\"m\n" + + "\025ListDatabasesResponse\022;\n" + + "\tdatabases\030\001 \003(\0132(.google.cloud.oracledatabase.v1.Database\022\027\n" + + "\017next_page_token\030\002 \001(\tB\347\001\n" + + "\"com.google.cloud.oracledatabase.v1B\r" + + "DatabaseProtoP\001ZJcloud.google.com/go/oracled" + + "atabase/apiv1/oracledatabasepb;oracledat" + + "abasepb\252\002\036Google.Cloud.OracleDatabase.V1" + + "\312\002\036Google\\Cloud\\OracleDatabase\\V1\352\002!Goog" + + "le::Cloud::OracleDatabase::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.cloud.oracledatabase.v1.PluggableDatabaseProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_Database_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_Database_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_Database_descriptor, + new java.lang.String[] { + "Name", + "DbName", + "DbUniqueName", + "AdminPassword", + "TdeWalletPassword", + "CharacterSet", + "NcharacterSet", + "OciUrl", + "CreateTime", + "Properties", + "DatabaseId", + "DbHomeName", + "GcpOracleZone", + "OpsInsightsStatus", + }); + internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DatabaseProperties_descriptor, + new java.lang.String[] { + "State", "DbVersion", "DbBackupConfig", "DatabaseManagementConfig", + }); + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_descriptor, + new java.lang.String[] { + "AutoBackupEnabled", + "BackupDestinationDetails", + "RetentionPeriodDays", + "BackupDeletionPolicy", + "AutoFullBackupDay", + "AutoFullBackupWindow", + "AutoIncrementalBackupWindow", + }); + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_descriptor = + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_descriptor, + new java.lang.String[] { + "Type", + }); + internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_descriptor, + new java.lang.String[] { + "Databases", "NextPageToken", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.PluggableDatabaseProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbBackupConfig.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbBackupConfig.java new file mode 100644 index 000000000000..869c66457404 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbBackupConfig.java @@ -0,0 +1,3471 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Backup Options for the Database.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbBackupConfig} + */ +public final class DbBackupConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbBackupConfig) + DbBackupConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DbBackupConfig.newBuilder() to construct. + private DbBackupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbBackupConfig() { + backupDestinationDetails_ = java.util.Collections.emptyList(); + backupDeletionPolicy_ = 0; + autoFullBackupDay_ = 0; + autoFullBackupWindow_ = 0; + autoIncrementalBackupWindow_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbBackupConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbBackupConfig.class, + com.google.cloud.oracledatabase.v1.DbBackupConfig.Builder.class); + } + + /** + * + * + *
                                              +   * The type of the database backup destination.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType} + */ + public enum BackupDestinationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * BACKUP_DESTINATION_TYPE_UNSPECIFIED = 0; + */ + BACKUP_DESTINATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Backup destination type is NFS.
                                              +     * 
                                              + * + * NFS = 1; + */ + NFS(1), + /** + * + * + *
                                              +     * Backup destination type is Recovery Appliance.
                                              +     * 
                                              + * + * RECOVERY_APPLIANCE = 2; + */ + RECOVERY_APPLIANCE(2), + /** + * + * + *
                                              +     * Backup destination type is Object Store.
                                              +     * 
                                              + * + * OBJECT_STORE = 3; + */ + OBJECT_STORE(3), + /** + * + * + *
                                              +     * Backup destination type is Local.
                                              +     * 
                                              + * + * LOCAL = 4; + */ + LOCAL(4), + /** + * + * + *
                                              +     * Backup destination type is DBRS.
                                              +     * 
                                              + * + * DBRS = 5; + */ + DBRS(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * BACKUP_DESTINATION_TYPE_UNSPECIFIED = 0; + */ + public static final int BACKUP_DESTINATION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Backup destination type is NFS.
                                              +     * 
                                              + * + * NFS = 1; + */ + public static final int NFS_VALUE = 1; + + /** + * + * + *
                                              +     * Backup destination type is Recovery Appliance.
                                              +     * 
                                              + * + * RECOVERY_APPLIANCE = 2; + */ + public static final int RECOVERY_APPLIANCE_VALUE = 2; + + /** + * + * + *
                                              +     * Backup destination type is Object Store.
                                              +     * 
                                              + * + * OBJECT_STORE = 3; + */ + public static final int OBJECT_STORE_VALUE = 3; + + /** + * + * + *
                                              +     * Backup destination type is Local.
                                              +     * 
                                              + * + * LOCAL = 4; + */ + public static final int LOCAL_VALUE = 4; + + /** + * + * + *
                                              +     * Backup destination type is DBRS.
                                              +     * 
                                              + * + * DBRS = 5; + */ + public static final int DBRS_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 BackupDestinationType 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 BackupDestinationType forNumber(int value) { + switch (value) { + case 0: + return BACKUP_DESTINATION_TYPE_UNSPECIFIED; + case 1: + return NFS; + case 2: + return RECOVERY_APPLIANCE; + case 3: + return OBJECT_STORE; + case 4: + return LOCAL; + case 5: + return DBRS; + 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 BackupDestinationType findValueByNumber(int number) { + return BackupDestinationType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbBackupConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final BackupDestinationType[] VALUES = values(); + + public static BackupDestinationType 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 BackupDestinationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType) + } + + /** + * + * + *
                                              +   * The 2 hour window in which the backup should be performed on the database.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow} + */ + public enum BackupWindow implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * BACKUP_WINDOW_UNSPECIFIED = 0; + */ + BACKUP_WINDOW_UNSPECIFIED(0), + /** + * + * + *
                                              +     * 12:00 AM - 2:00 AM
                                              +     * 
                                              + * + * SLOT_ONE = 1; + */ + SLOT_ONE(1), + /** + * + * + *
                                              +     * 2:00 AM - 4:00 AM
                                              +     * 
                                              + * + * SLOT_TWO = 2; + */ + SLOT_TWO(2), + /** + * + * + *
                                              +     * 4:00 AM - 6:00 AM
                                              +     * 
                                              + * + * SLOT_THREE = 3; + */ + SLOT_THREE(3), + /** + * + * + *
                                              +     * 6:00 AM - 8:00 AM
                                              +     * 
                                              + * + * SLOT_FOUR = 4; + */ + SLOT_FOUR(4), + /** + * + * + *
                                              +     * 8:00 AM - 10:00 AM
                                              +     * 
                                              + * + * SLOT_FIVE = 5; + */ + SLOT_FIVE(5), + /** + * + * + *
                                              +     * 10:00 AM - 12:00 PM
                                              +     * 
                                              + * + * SLOT_SIX = 6; + */ + SLOT_SIX(6), + /** + * + * + *
                                              +     * 12:00 PM - 2:00 PM
                                              +     * 
                                              + * + * SLOT_SEVEN = 7; + */ + SLOT_SEVEN(7), + /** + * + * + *
                                              +     * 2:00 PM - 4:00 PM
                                              +     * 
                                              + * + * SLOT_EIGHT = 8; + */ + SLOT_EIGHT(8), + /** + * + * + *
                                              +     * 4:00 PM - 6:00 PM
                                              +     * 
                                              + * + * SLOT_NINE = 9; + */ + SLOT_NINE(9), + /** + * + * + *
                                              +     * 6:00 PM - 8:00 PM
                                              +     * 
                                              + * + * SLOT_TEN = 10; + */ + SLOT_TEN(10), + /** + * + * + *
                                              +     * 8:00 PM - 10:00 PM
                                              +     * 
                                              + * + * SLOT_ELEVEN = 11; + */ + SLOT_ELEVEN(11), + /** + * + * + *
                                              +     * 10:00 PM - 12:00 AM
                                              +     * 
                                              + * + * SLOT_TWELVE = 12; + */ + SLOT_TWELVE(12), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * BACKUP_WINDOW_UNSPECIFIED = 0; + */ + public static final int BACKUP_WINDOW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * 12:00 AM - 2:00 AM
                                              +     * 
                                              + * + * SLOT_ONE = 1; + */ + public static final int SLOT_ONE_VALUE = 1; + + /** + * + * + *
                                              +     * 2:00 AM - 4:00 AM
                                              +     * 
                                              + * + * SLOT_TWO = 2; + */ + public static final int SLOT_TWO_VALUE = 2; + + /** + * + * + *
                                              +     * 4:00 AM - 6:00 AM
                                              +     * 
                                              + * + * SLOT_THREE = 3; + */ + public static final int SLOT_THREE_VALUE = 3; + + /** + * + * + *
                                              +     * 6:00 AM - 8:00 AM
                                              +     * 
                                              + * + * SLOT_FOUR = 4; + */ + public static final int SLOT_FOUR_VALUE = 4; + + /** + * + * + *
                                              +     * 8:00 AM - 10:00 AM
                                              +     * 
                                              + * + * SLOT_FIVE = 5; + */ + public static final int SLOT_FIVE_VALUE = 5; + + /** + * + * + *
                                              +     * 10:00 AM - 12:00 PM
                                              +     * 
                                              + * + * SLOT_SIX = 6; + */ + public static final int SLOT_SIX_VALUE = 6; + + /** + * + * + *
                                              +     * 12:00 PM - 2:00 PM
                                              +     * 
                                              + * + * SLOT_SEVEN = 7; + */ + public static final int SLOT_SEVEN_VALUE = 7; + + /** + * + * + *
                                              +     * 2:00 PM - 4:00 PM
                                              +     * 
                                              + * + * SLOT_EIGHT = 8; + */ + public static final int SLOT_EIGHT_VALUE = 8; + + /** + * + * + *
                                              +     * 4:00 PM - 6:00 PM
                                              +     * 
                                              + * + * SLOT_NINE = 9; + */ + public static final int SLOT_NINE_VALUE = 9; + + /** + * + * + *
                                              +     * 6:00 PM - 8:00 PM
                                              +     * 
                                              + * + * SLOT_TEN = 10; + */ + public static final int SLOT_TEN_VALUE = 10; + + /** + * + * + *
                                              +     * 8:00 PM - 10:00 PM
                                              +     * 
                                              + * + * SLOT_ELEVEN = 11; + */ + public static final int SLOT_ELEVEN_VALUE = 11; + + /** + * + * + *
                                              +     * 10:00 PM - 12:00 AM
                                              +     * 
                                              + * + * SLOT_TWELVE = 12; + */ + public static final int SLOT_TWELVE_VALUE = 12; + + 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 BackupWindow 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 BackupWindow forNumber(int value) { + switch (value) { + case 0: + return BACKUP_WINDOW_UNSPECIFIED; + case 1: + return SLOT_ONE; + case 2: + return SLOT_TWO; + case 3: + return SLOT_THREE; + case 4: + return SLOT_FOUR; + case 5: + return SLOT_FIVE; + case 6: + return SLOT_SIX; + case 7: + return SLOT_SEVEN; + case 8: + return SLOT_EIGHT; + case 9: + return SLOT_NINE; + case 10: + return SLOT_TEN; + case 11: + return SLOT_ELEVEN; + case 12: + return SLOT_TWELVE; + 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 BackupWindow findValueByNumber(int number) { + return BackupWindow.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbBackupConfig.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final BackupWindow[] VALUES = values(); + + public static BackupWindow 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 BackupWindow(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow) + } + + /** + * + * + *
                                              +   * This defines when the backups will be deleted after Database termination.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy} + */ + public enum BackupDeletionPolicy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * BACKUP_DELETION_POLICY_UNSPECIFIED = 0; + */ + BACKUP_DELETION_POLICY_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Keeps the backup for predefined time
                                              +     * i.e. 72 hours and then delete permanently.
                                              +     * 
                                              + * + * DELETE_IMMEDIATELY = 1; + */ + DELETE_IMMEDIATELY(1), + /** + * + * + *
                                              +     * Keeps the backups as per the policy defined
                                              +     * for database backups.
                                              +     * 
                                              + * + * DELETE_AFTER_RETENTION_PERIOD = 2; + */ + DELETE_AFTER_RETENTION_PERIOD(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * BACKUP_DELETION_POLICY_UNSPECIFIED = 0; + */ + public static final int BACKUP_DELETION_POLICY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Keeps the backup for predefined time
                                              +     * i.e. 72 hours and then delete permanently.
                                              +     * 
                                              + * + * DELETE_IMMEDIATELY = 1; + */ + public static final int DELETE_IMMEDIATELY_VALUE = 1; + + /** + * + * + *
                                              +     * Keeps the backups as per the policy defined
                                              +     * for database backups.
                                              +     * 
                                              + * + * DELETE_AFTER_RETENTION_PERIOD = 2; + */ + public static final int DELETE_AFTER_RETENTION_PERIOD_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 BackupDeletionPolicy 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 BackupDeletionPolicy forNumber(int value) { + switch (value) { + case 0: + return BACKUP_DELETION_POLICY_UNSPECIFIED; + case 1: + return DELETE_IMMEDIATELY; + case 2: + return DELETE_AFTER_RETENTION_PERIOD; + 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 BackupDeletionPolicy findValueByNumber(int number) { + return BackupDeletionPolicy.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbBackupConfig.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final BackupDeletionPolicy[] VALUES = values(); + + public static BackupDeletionPolicy 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 BackupDeletionPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy) + } + + public interface BackupDestinationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +     * Optional. The type of the database backup destination.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
                                              +     * Optional. The type of the database backup destination.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType getType(); + } + + /** + * + * + *
                                              +   * The details of the database backup destination.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails} + */ + public static final class BackupDestinationDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails) + BackupDestinationDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BackupDestinationDetails.newBuilder() to construct. + private BackupDestinationDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackupDestinationDetails() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackupDestinationDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.class, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder + .class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
                                              +     * Optional. The type of the database backup destination.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                              +     * Optional. The type of the database backup destination.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType getType() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType result = + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType.forNumber(type_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType.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 (type_ + != com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType + .BACKUP_DESTINATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType + .BACKUP_DESTINATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + 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.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails other = + (com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails) obj; + + if (type_ != other.type_) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + 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.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + 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.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +     * The details of the database backup destination.
                                              +     * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails) + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.class, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_BackupDestinationDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails build() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + buildPartial() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails result = + new com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails other) { + if (other + == com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + .getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + 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: + { + type_ = 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 type_ = 0; + + /** + * + * + *
                                              +       * Optional. The type of the database backup destination.
                                              +       * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                              +       * Optional. The type of the database backup destination.
                                              +       * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * Optional. The type of the database backup destination.
                                              +       * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType getType() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType result = + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType.forNumber( + type_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +       * Optional. The type of the database backup destination.
                                              +       * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +       * Optional. The type of the database backup destination.
                                              +       * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails) + private static final com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails(); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupDestinationDetails 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.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int AUTO_BACKUP_ENABLED_FIELD_NUMBER = 1; + private boolean autoBackupEnabled_ = false; + + /** + * + * + *
                                              +   * Optional. If set to true, enables automatic backups on the database.
                                              +   * 
                                              + * + * bool auto_backup_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoBackupEnabled. + */ + @java.lang.Override + public boolean getAutoBackupEnabled() { + return autoBackupEnabled_; + } + + public static final int BACKUP_DESTINATION_DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + backupDestinationDetails_; + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getBackupDestinationDetailsList() { + return backupDestinationDetails_; + } + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetailsOrBuilder> + getBackupDestinationDetailsOrBuilderList() { + return backupDestinationDetails_; + } + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getBackupDestinationDetailsCount() { + return backupDestinationDetails_.size(); + } + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + getBackupDestinationDetails(int index) { + return backupDestinationDetails_.get(index); + } + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetailsOrBuilder + getBackupDestinationDetailsOrBuilder(int index) { + return backupDestinationDetails_.get(index); + } + + public static final int RETENTION_PERIOD_DAYS_FIELD_NUMBER = 3; + private int retentionPeriodDays_ = 0; + + /** + * + * + *
                                              +   * Optional. The number of days an automatic backup is retained before being
                                              +   * automatically deleted. This value determines the earliest point in time to
                                              +   * which a database can be restored. Min: 1, Max: 60.
                                              +   * 
                                              + * + * int32 retention_period_days = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The retentionPeriodDays. + */ + @java.lang.Override + public int getRetentionPeriodDays() { + return retentionPeriodDays_; + } + + public static final int BACKUP_DELETION_POLICY_FIELD_NUMBER = 4; + private int backupDeletionPolicy_ = 0; + + /** + * + * + *
                                              +   * Optional. This defines when the backups will be deleted after Database
                                              +   * termination.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for backupDeletionPolicy. + */ + @java.lang.Override + public int getBackupDeletionPolicyValue() { + return backupDeletionPolicy_; + } + + /** + * + * + *
                                              +   * Optional. This defines when the backups will be deleted after Database
                                              +   * termination.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backupDeletionPolicy. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy + getBackupDeletionPolicy() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy result = + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy.forNumber( + backupDeletionPolicy_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy.UNRECOGNIZED + : result; + } + + public static final int AUTO_FULL_BACKUP_DAY_FIELD_NUMBER = 5; + private int autoFullBackupDay_ = 0; + + /** + * + * + *
                                              +   * Optional. The day of the week on which the full backup should be performed
                                              +   * on the database. If no value is provided, it will default to Sunday.
                                              +   * 
                                              + * + * + * .google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for autoFullBackupDay. + */ + @java.lang.Override + public int getAutoFullBackupDayValue() { + return autoFullBackupDay_; + } + + /** + * + * + *
                                              +   * Optional. The day of the week on which the full backup should be performed
                                              +   * on the database. If no value is provided, it will default to Sunday.
                                              +   * 
                                              + * + * + * .google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoFullBackupDay. + */ + @java.lang.Override + public com.google.type.DayOfWeek getAutoFullBackupDay() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(autoFullBackupDay_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + + public static final int AUTO_FULL_BACKUP_WINDOW_FIELD_NUMBER = 6; + private int autoFullBackupWindow_ = 0; + + /** + * + * + *
                                              +   * Optional. The window in which the full backup should be performed on the
                                              +   * database. If no value is provided, the default is anytime.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for autoFullBackupWindow. + */ + @java.lang.Override + public int getAutoFullBackupWindowValue() { + return autoFullBackupWindow_; + } + + /** + * + * + *
                                              +   * Optional. The window in which the full backup should be performed on the
                                              +   * database. If no value is provided, the default is anytime.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoFullBackupWindow. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow getAutoFullBackupWindow() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow result = + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.forNumber( + autoFullBackupWindow_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.UNRECOGNIZED + : result; + } + + public static final int AUTO_INCREMENTAL_BACKUP_WINDOW_FIELD_NUMBER = 7; + private int autoIncrementalBackupWindow_ = 0; + + /** + * + * + *
                                              +   * Optional. The window in which the incremental backup should be performed on
                                              +   * the database. If no value is provided, the default is anytime except the
                                              +   * auto full backup day.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for autoIncrementalBackupWindow. + */ + @java.lang.Override + public int getAutoIncrementalBackupWindowValue() { + return autoIncrementalBackupWindow_; + } + + /** + * + * + *
                                              +   * Optional. The window in which the incremental backup should be performed on
                                              +   * the database. If no value is provided, the default is anytime except the
                                              +   * auto full backup day.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoIncrementalBackupWindow. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow + getAutoIncrementalBackupWindow() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow result = + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.forNumber( + autoIncrementalBackupWindow_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.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 (autoBackupEnabled_ != false) { + output.writeBool(1, autoBackupEnabled_); + } + for (int i = 0; i < backupDestinationDetails_.size(); i++) { + output.writeMessage(2, backupDestinationDetails_.get(i)); + } + if (retentionPeriodDays_ != 0) { + output.writeInt32(3, retentionPeriodDays_); + } + if (backupDeletionPolicy_ + != com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy + .BACKUP_DELETION_POLICY_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, backupDeletionPolicy_); + } + if (autoFullBackupDay_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + output.writeEnum(5, autoFullBackupDay_); + } + if (autoFullBackupWindow_ + != com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.BACKUP_WINDOW_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, autoFullBackupWindow_); + } + if (autoIncrementalBackupWindow_ + != com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.BACKUP_WINDOW_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, autoIncrementalBackupWindow_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (autoBackupEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, autoBackupEnabled_); + } + for (int i = 0; i < backupDestinationDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, backupDestinationDetails_.get(i)); + } + if (retentionPeriodDays_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, retentionPeriodDays_); + } + if (backupDeletionPolicy_ + != com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy + .BACKUP_DELETION_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, backupDeletionPolicy_); + } + if (autoFullBackupDay_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, autoFullBackupDay_); + } + if (autoFullBackupWindow_ + != com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.BACKUP_WINDOW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, autoFullBackupWindow_); + } + if (autoIncrementalBackupWindow_ + != com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.BACKUP_WINDOW_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(7, autoIncrementalBackupWindow_); + } + 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.oracledatabase.v1.DbBackupConfig)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbBackupConfig other = + (com.google.cloud.oracledatabase.v1.DbBackupConfig) obj; + + if (getAutoBackupEnabled() != other.getAutoBackupEnabled()) return false; + if (!getBackupDestinationDetailsList().equals(other.getBackupDestinationDetailsList())) + return false; + if (getRetentionPeriodDays() != other.getRetentionPeriodDays()) return false; + if (backupDeletionPolicy_ != other.backupDeletionPolicy_) return false; + if (autoFullBackupDay_ != other.autoFullBackupDay_) return false; + if (autoFullBackupWindow_ != other.autoFullBackupWindow_) return false; + if (autoIncrementalBackupWindow_ != other.autoIncrementalBackupWindow_) 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) + AUTO_BACKUP_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoBackupEnabled()); + if (getBackupDestinationDetailsCount() > 0) { + hash = (37 * hash) + BACKUP_DESTINATION_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBackupDestinationDetailsList().hashCode(); + } + hash = (37 * hash) + RETENTION_PERIOD_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getRetentionPeriodDays(); + hash = (37 * hash) + BACKUP_DELETION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + backupDeletionPolicy_; + hash = (37 * hash) + AUTO_FULL_BACKUP_DAY_FIELD_NUMBER; + hash = (53 * hash) + autoFullBackupDay_; + hash = (37 * hash) + AUTO_FULL_BACKUP_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + autoFullBackupWindow_; + hash = (37 * hash) + AUTO_INCREMENTAL_BACKUP_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + autoIncrementalBackupWindow_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig 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.oracledatabase.v1.DbBackupConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig 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.oracledatabase.v1.DbBackupConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.DbBackupConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Backup Options for the Database.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbBackupConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbBackupConfig) + com.google.cloud.oracledatabase.v1.DbBackupConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbBackupConfig.class, + com.google.cloud.oracledatabase.v1.DbBackupConfig.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbBackupConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoBackupEnabled_ = false; + if (backupDestinationDetailsBuilder_ == null) { + backupDestinationDetails_ = java.util.Collections.emptyList(); + } else { + backupDestinationDetails_ = null; + backupDestinationDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + retentionPeriodDays_ = 0; + backupDeletionPolicy_ = 0; + autoFullBackupDay_ = 0; + autoFullBackupWindow_ = 0; + autoIncrementalBackupWindow_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_DbBackupConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbBackupConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig build() { + com.google.cloud.oracledatabase.v1.DbBackupConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig buildPartial() { + com.google.cloud.oracledatabase.v1.DbBackupConfig result = + new com.google.cloud.oracledatabase.v1.DbBackupConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.DbBackupConfig result) { + if (backupDestinationDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + backupDestinationDetails_ = + java.util.Collections.unmodifiableList(backupDestinationDetails_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.backupDestinationDetails_ = backupDestinationDetails_; + } else { + result.backupDestinationDetails_ = backupDestinationDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbBackupConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoBackupEnabled_ = autoBackupEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.retentionPeriodDays_ = retentionPeriodDays_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.backupDeletionPolicy_ = backupDeletionPolicy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.autoFullBackupDay_ = autoFullBackupDay_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.autoFullBackupWindow_ = autoFullBackupWindow_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.autoIncrementalBackupWindow_ = autoIncrementalBackupWindow_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DbBackupConfig) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbBackupConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbBackupConfig other) { + if (other == com.google.cloud.oracledatabase.v1.DbBackupConfig.getDefaultInstance()) + return this; + if (other.getAutoBackupEnabled() != false) { + setAutoBackupEnabled(other.getAutoBackupEnabled()); + } + if (backupDestinationDetailsBuilder_ == null) { + if (!other.backupDestinationDetails_.isEmpty()) { + if (backupDestinationDetails_.isEmpty()) { + backupDestinationDetails_ = other.backupDestinationDetails_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBackupDestinationDetailsIsMutable(); + backupDestinationDetails_.addAll(other.backupDestinationDetails_); + } + onChanged(); + } + } else { + if (!other.backupDestinationDetails_.isEmpty()) { + if (backupDestinationDetailsBuilder_.isEmpty()) { + backupDestinationDetailsBuilder_.dispose(); + backupDestinationDetailsBuilder_ = null; + backupDestinationDetails_ = other.backupDestinationDetails_; + bitField0_ = (bitField0_ & ~0x00000002); + backupDestinationDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupDestinationDetailsFieldBuilder() + : null; + } else { + backupDestinationDetailsBuilder_.addAllMessages(other.backupDestinationDetails_); + } + } + } + if (other.getRetentionPeriodDays() != 0) { + setRetentionPeriodDays(other.getRetentionPeriodDays()); + } + if (other.backupDeletionPolicy_ != 0) { + setBackupDeletionPolicyValue(other.getBackupDeletionPolicyValue()); + } + if (other.autoFullBackupDay_ != 0) { + setAutoFullBackupDayValue(other.getAutoFullBackupDayValue()); + } + if (other.autoFullBackupWindow_ != 0) { + setAutoFullBackupWindowValue(other.getAutoFullBackupWindowValue()); + } + if (other.autoIncrementalBackupWindow_ != 0) { + setAutoIncrementalBackupWindowValue(other.getAutoIncrementalBackupWindowValue()); + } + 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: + { + autoBackupEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails m = + input.readMessage( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + .parser(), + extensionRegistry); + if (backupDestinationDetailsBuilder_ == null) { + ensureBackupDestinationDetailsIsMutable(); + backupDestinationDetails_.add(m); + } else { + backupDestinationDetailsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + retentionPeriodDays_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + backupDeletionPolicy_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + autoFullBackupDay_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + autoFullBackupWindow_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + autoIncrementalBackupWindow_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + 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 boolean autoBackupEnabled_; + + /** + * + * + *
                                              +     * Optional. If set to true, enables automatic backups on the database.
                                              +     * 
                                              + * + * bool auto_backup_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoBackupEnabled. + */ + @java.lang.Override + public boolean getAutoBackupEnabled() { + return autoBackupEnabled_; + } + + /** + * + * + *
                                              +     * Optional. If set to true, enables automatic backups on the database.
                                              +     * 
                                              + * + * bool auto_backup_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The autoBackupEnabled to set. + * @return This builder for chaining. + */ + public Builder setAutoBackupEnabled(boolean value) { + + autoBackupEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. If set to true, enables automatic backups on the database.
                                              +     * 
                                              + * + * bool auto_backup_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAutoBackupEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + autoBackupEnabled_ = false; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails> + backupDestinationDetails_ = java.util.Collections.emptyList(); + + private void ensureBackupDestinationDetailsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + backupDestinationDetails_ = + new java.util.ArrayList< + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails>( + backupDestinationDetails_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetailsOrBuilder> + backupDestinationDetailsBuilder_; + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails> + getBackupDestinationDetailsList() { + if (backupDestinationDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backupDestinationDetails_); + } else { + return backupDestinationDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getBackupDestinationDetailsCount() { + if (backupDestinationDetailsBuilder_ == null) { + return backupDestinationDetails_.size(); + } else { + return backupDestinationDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + getBackupDestinationDetails(int index) { + if (backupDestinationDetailsBuilder_ == null) { + return backupDestinationDetails_.get(index); + } else { + return backupDestinationDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBackupDestinationDetails( + int index, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails value) { + if (backupDestinationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupDestinationDetailsIsMutable(); + backupDestinationDetails_.set(index, value); + onChanged(); + } else { + backupDestinationDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBackupDestinationDetails( + int index, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder + builderForValue) { + if (backupDestinationDetailsBuilder_ == null) { + ensureBackupDestinationDetailsIsMutable(); + backupDestinationDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + backupDestinationDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBackupDestinationDetails( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails value) { + if (backupDestinationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupDestinationDetailsIsMutable(); + backupDestinationDetails_.add(value); + onChanged(); + } else { + backupDestinationDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBackupDestinationDetails( + int index, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails value) { + if (backupDestinationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupDestinationDetailsIsMutable(); + backupDestinationDetails_.add(index, value); + onChanged(); + } else { + backupDestinationDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBackupDestinationDetails( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder + builderForValue) { + if (backupDestinationDetailsBuilder_ == null) { + ensureBackupDestinationDetailsIsMutable(); + backupDestinationDetails_.add(builderForValue.build()); + onChanged(); + } else { + backupDestinationDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBackupDestinationDetails( + int index, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder + builderForValue) { + if (backupDestinationDetailsBuilder_ == null) { + ensureBackupDestinationDetailsIsMutable(); + backupDestinationDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + backupDestinationDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllBackupDestinationDetails( + java.lang.Iterable< + ? extends + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails> + values) { + if (backupDestinationDetailsBuilder_ == null) { + ensureBackupDestinationDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupDestinationDetails_); + onChanged(); + } else { + backupDestinationDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBackupDestinationDetails() { + if (backupDestinationDetailsBuilder_ == null) { + backupDestinationDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + backupDestinationDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeBackupDestinationDetails(int index) { + if (backupDestinationDetailsBuilder_ == null) { + ensureBackupDestinationDetailsIsMutable(); + backupDestinationDetails_.remove(index); + onChanged(); + } else { + backupDestinationDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder + getBackupDestinationDetailsBuilder(int index) { + return getBackupDestinationDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetailsOrBuilder + getBackupDestinationDetailsOrBuilder(int index) { + if (backupDestinationDetailsBuilder_ == null) { + return backupDestinationDetails_.get(index); + } else { + return backupDestinationDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetailsOrBuilder> + getBackupDestinationDetailsOrBuilderList() { + if (backupDestinationDetailsBuilder_ != null) { + return backupDestinationDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backupDestinationDetails_); + } + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder + addBackupDestinationDetailsBuilder() { + return getBackupDestinationDetailsFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder + addBackupDestinationDetailsBuilder(int index) { + return getBackupDestinationDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Optional. Details of the database backup destinations.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder> + getBackupDestinationDetailsBuilderList() { + return getBackupDestinationDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetailsOrBuilder> + getBackupDestinationDetailsFieldBuilder() { + if (backupDestinationDetailsBuilder_ == null) { + backupDestinationDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails, + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails.Builder, + com.google.cloud.oracledatabase.v1.DbBackupConfig + .BackupDestinationDetailsOrBuilder>( + backupDestinationDetails_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + backupDestinationDetails_ = null; + } + return backupDestinationDetailsBuilder_; + } + + private int retentionPeriodDays_; + + /** + * + * + *
                                              +     * Optional. The number of days an automatic backup is retained before being
                                              +     * automatically deleted. This value determines the earliest point in time to
                                              +     * which a database can be restored. Min: 1, Max: 60.
                                              +     * 
                                              + * + * int32 retention_period_days = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The retentionPeriodDays. + */ + @java.lang.Override + public int getRetentionPeriodDays() { + return retentionPeriodDays_; + } + + /** + * + * + *
                                              +     * Optional. The number of days an automatic backup is retained before being
                                              +     * automatically deleted. This value determines the earliest point in time to
                                              +     * which a database can be restored. Min: 1, Max: 60.
                                              +     * 
                                              + * + * int32 retention_period_days = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The retentionPeriodDays to set. + * @return This builder for chaining. + */ + public Builder setRetentionPeriodDays(int value) { + + retentionPeriodDays_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The number of days an automatic backup is retained before being
                                              +     * automatically deleted. This value determines the earliest point in time to
                                              +     * which a database can be restored. Min: 1, Max: 60.
                                              +     * 
                                              + * + * int32 retention_period_days = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRetentionPeriodDays() { + bitField0_ = (bitField0_ & ~0x00000004); + retentionPeriodDays_ = 0; + onChanged(); + return this; + } + + private int backupDeletionPolicy_ = 0; + + /** + * + * + *
                                              +     * Optional. This defines when the backups will be deleted after Database
                                              +     * termination.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for backupDeletionPolicy. + */ + @java.lang.Override + public int getBackupDeletionPolicyValue() { + return backupDeletionPolicy_; + } + + /** + * + * + *
                                              +     * Optional. This defines when the backups will be deleted after Database
                                              +     * termination.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for backupDeletionPolicy to set. + * @return This builder for chaining. + */ + public Builder setBackupDeletionPolicyValue(int value) { + backupDeletionPolicy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. This defines when the backups will be deleted after Database
                                              +     * termination.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backupDeletionPolicy. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy + getBackupDeletionPolicy() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy result = + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy.forNumber( + backupDeletionPolicy_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Optional. This defines when the backups will be deleted after Database
                                              +     * termination.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The backupDeletionPolicy to set. + * @return This builder for chaining. + */ + public Builder setBackupDeletionPolicy( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + backupDeletionPolicy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. This defines when the backups will be deleted after Database
                                              +     * termination.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBackupDeletionPolicy() { + bitField0_ = (bitField0_ & ~0x00000008); + backupDeletionPolicy_ = 0; + onChanged(); + return this; + } + + private int autoFullBackupDay_ = 0; + + /** + * + * + *
                                              +     * Optional. The day of the week on which the full backup should be performed
                                              +     * on the database. If no value is provided, it will default to Sunday.
                                              +     * 
                                              + * + * + * .google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for autoFullBackupDay. + */ + @java.lang.Override + public int getAutoFullBackupDayValue() { + return autoFullBackupDay_; + } + + /** + * + * + *
                                              +     * Optional. The day of the week on which the full backup should be performed
                                              +     * on the database. If no value is provided, it will default to Sunday.
                                              +     * 
                                              + * + * + * .google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for autoFullBackupDay to set. + * @return This builder for chaining. + */ + public Builder setAutoFullBackupDayValue(int value) { + autoFullBackupDay_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The day of the week on which the full backup should be performed
                                              +     * on the database. If no value is provided, it will default to Sunday.
                                              +     * 
                                              + * + * + * .google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoFullBackupDay. + */ + @java.lang.Override + public com.google.type.DayOfWeek getAutoFullBackupDay() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(autoFullBackupDay_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + + /** + * + * + *
                                              +     * Optional. The day of the week on which the full backup should be performed
                                              +     * on the database. If no value is provided, it will default to Sunday.
                                              +     * 
                                              + * + * + * .google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The autoFullBackupDay to set. + * @return This builder for chaining. + */ + public Builder setAutoFullBackupDay(com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + autoFullBackupDay_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The day of the week on which the full backup should be performed
                                              +     * on the database. If no value is provided, it will default to Sunday.
                                              +     * 
                                              + * + * + * .google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoFullBackupDay() { + bitField0_ = (bitField0_ & ~0x00000010); + autoFullBackupDay_ = 0; + onChanged(); + return this; + } + + private int autoFullBackupWindow_ = 0; + + /** + * + * + *
                                              +     * Optional. The window in which the full backup should be performed on the
                                              +     * database. If no value is provided, the default is anytime.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for autoFullBackupWindow. + */ + @java.lang.Override + public int getAutoFullBackupWindowValue() { + return autoFullBackupWindow_; + } + + /** + * + * + *
                                              +     * Optional. The window in which the full backup should be performed on the
                                              +     * database. If no value is provided, the default is anytime.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for autoFullBackupWindow to set. + * @return This builder for chaining. + */ + public Builder setAutoFullBackupWindowValue(int value) { + autoFullBackupWindow_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The window in which the full backup should be performed on the
                                              +     * database. If no value is provided, the default is anytime.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoFullBackupWindow. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow + getAutoFullBackupWindow() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow result = + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.forNumber( + autoFullBackupWindow_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Optional. The window in which the full backup should be performed on the
                                              +     * database. If no value is provided, the default is anytime.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The autoFullBackupWindow to set. + * @return This builder for chaining. + */ + public Builder setAutoFullBackupWindow( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + autoFullBackupWindow_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The window in which the full backup should be performed on the
                                              +     * database. If no value is provided, the default is anytime.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoFullBackupWindow() { + bitField0_ = (bitField0_ & ~0x00000020); + autoFullBackupWindow_ = 0; + onChanged(); + return this; + } + + private int autoIncrementalBackupWindow_ = 0; + + /** + * + * + *
                                              +     * Optional. The window in which the incremental backup should be performed on
                                              +     * the database. If no value is provided, the default is anytime except the
                                              +     * auto full backup day.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for autoIncrementalBackupWindow. + */ + @java.lang.Override + public int getAutoIncrementalBackupWindowValue() { + return autoIncrementalBackupWindow_; + } + + /** + * + * + *
                                              +     * Optional. The window in which the incremental backup should be performed on
                                              +     * the database. If no value is provided, the default is anytime except the
                                              +     * auto full backup day.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for autoIncrementalBackupWindow to set. + * @return This builder for chaining. + */ + public Builder setAutoIncrementalBackupWindowValue(int value) { + autoIncrementalBackupWindow_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The window in which the incremental backup should be performed on
                                              +     * the database. If no value is provided, the default is anytime except the
                                              +     * auto full backup day.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoIncrementalBackupWindow. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow + getAutoIncrementalBackupWindow() { + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow result = + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.forNumber( + autoIncrementalBackupWindow_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Optional. The window in which the incremental backup should be performed on
                                              +     * the database. If no value is provided, the default is anytime except the
                                              +     * auto full backup day.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The autoIncrementalBackupWindow to set. + * @return This builder for chaining. + */ + public Builder setAutoIncrementalBackupWindow( + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + autoIncrementalBackupWindow_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The window in which the incremental backup should be performed on
                                              +     * the database. If no value is provided, the default is anytime except the
                                              +     * auto full backup day.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoIncrementalBackupWindow() { + bitField0_ = (bitField0_ & ~0x00000040); + autoIncrementalBackupWindow_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbBackupConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbBackupConfig) + private static final com.google.cloud.oracledatabase.v1.DbBackupConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbBackupConfig(); + } + + public static com.google.cloud.oracledatabase.v1.DbBackupConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbBackupConfig 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.oracledatabase.v1.DbBackupConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbBackupConfigOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbBackupConfigOrBuilder.java new file mode 100644 index 000000000000..43f6c7234bee --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbBackupConfigOrBuilder.java @@ -0,0 +1,255 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DbBackupConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbBackupConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. If set to true, enables automatic backups on the database.
                                              +   * 
                                              + * + * bool auto_backup_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoBackupEnabled. + */ + boolean getAutoBackupEnabled(); + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getBackupDestinationDetailsList(); + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails + getBackupDestinationDetails(int index); + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getBackupDestinationDetailsCount(); + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetailsOrBuilder> + getBackupDestinationDetailsOrBuilderList(); + + /** + * + * + *
                                              +   * Optional. Details of the database backup destinations.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails backup_destination_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetailsOrBuilder + getBackupDestinationDetailsOrBuilder(int index); + + /** + * + * + *
                                              +   * Optional. The number of days an automatic backup is retained before being
                                              +   * automatically deleted. This value determines the earliest point in time to
                                              +   * which a database can be restored. Min: 1, Max: 60.
                                              +   * 
                                              + * + * int32 retention_period_days = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The retentionPeriodDays. + */ + int getRetentionPeriodDays(); + + /** + * + * + *
                                              +   * Optional. This defines when the backups will be deleted after Database
                                              +   * termination.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for backupDeletionPolicy. + */ + int getBackupDeletionPolicyValue(); + + /** + * + * + *
                                              +   * Optional. This defines when the backups will be deleted after Database
                                              +   * termination.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy backup_deletion_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backupDeletionPolicy. + */ + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy getBackupDeletionPolicy(); + + /** + * + * + *
                                              +   * Optional. The day of the week on which the full backup should be performed
                                              +   * on the database. If no value is provided, it will default to Sunday.
                                              +   * 
                                              + * + * + * .google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for autoFullBackupDay. + */ + int getAutoFullBackupDayValue(); + + /** + * + * + *
                                              +   * Optional. The day of the week on which the full backup should be performed
                                              +   * on the database. If no value is provided, it will default to Sunday.
                                              +   * 
                                              + * + * + * .google.type.DayOfWeek auto_full_backup_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoFullBackupDay. + */ + com.google.type.DayOfWeek getAutoFullBackupDay(); + + /** + * + * + *
                                              +   * Optional. The window in which the full backup should be performed on the
                                              +   * database. If no value is provided, the default is anytime.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for autoFullBackupWindow. + */ + int getAutoFullBackupWindowValue(); + + /** + * + * + *
                                              +   * Optional. The window in which the full backup should be performed on the
                                              +   * database. If no value is provided, the default is anytime.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_full_backup_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoFullBackupWindow. + */ + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow getAutoFullBackupWindow(); + + /** + * + * + *
                                              +   * Optional. The window in which the incremental backup should be performed on
                                              +   * the database. If no value is provided, the default is anytime except the
                                              +   * auto full backup day.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for autoIncrementalBackupWindow. + */ + int getAutoIncrementalBackupWindowValue(); + + /** + * + * + *
                                              +   * Optional. The window in which the incremental backup should be performed on
                                              +   * the database. If no value is provided, the default is anytime except the
                                              +   * auto full backup day.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow auto_incremental_backup_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoIncrementalBackupWindow. + */ + com.google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow getAutoIncrementalBackupWindow(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbHome.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbHome.java new file mode 100644 index 000000000000..e28c37fc9d4a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbHome.java @@ -0,0 +1,1249 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Details of the Database Home resource.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbHome} + */ +public final class DbHome extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbHome) + DbHomeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DbHome.newBuilder() to construct. + private DbHome(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbHome() { + displayName_ = ""; + dbVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbHome(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbHome_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbHome_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbHome.class, + com.google.cloud.oracledatabase.v1.DbHome.Builder.class); + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +   * Optional. The display name for the Database Home. The name does not have to
                                              +   * be unique within your project.
                                              +   * 
                                              + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The display name for the Database Home. The name does not have to
                                              +   * be unique within your project.
                                              +   * 
                                              + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DB_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dbVersion_ = ""; + + /** + * + * + *
                                              +   * Required. A valid Oracle Database version. For a list of supported
                                              +   * versions, use the ListDbVersions operation.
                                              +   * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dbVersion. + */ + @java.lang.Override + public java.lang.String getDbVersion() { + java.lang.Object ref = dbVersion_; + 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(); + dbVersion_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. A valid Oracle Database version. For a list of supported
                                              +   * versions, use the ListDbVersions operation.
                                              +   * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dbVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDbVersionBytes() { + java.lang.Object ref = dbVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.Database database_; + + /** + * + * + *
                                              +   * Required. The Database resource.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the database field is set. + */ + @java.lang.Override + public boolean hasDatabase() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. The Database resource.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The database. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Database getDatabase() { + return database_ == null + ? com.google.cloud.oracledatabase.v1.Database.getDefaultInstance() + : database_; + } + + /** + * + * + *
                                              +   * Required. The Database resource.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseOrBuilder getDatabaseOrBuilder() { + return database_ == null + ? com.google.cloud.oracledatabase.v1.Database.getDefaultInstance() + : database_; + } + + public static final int IS_UNIFIED_AUDITING_ENABLED_FIELD_NUMBER = 4; + private boolean isUnifiedAuditingEnabled_ = false; + + /** + * + * + *
                                              +   * Optional. Whether unified auditing is enabled for the Database Home.
                                              +   * 
                                              + * + * bool is_unified_auditing_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isUnifiedAuditingEnabled. + */ + @java.lang.Override + public boolean getIsUnifiedAuditingEnabled() { + return isUnifiedAuditingEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dbVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDatabase()); + } + if (isUnifiedAuditingEnabled_ != false) { + output.writeBool(4, isUnifiedAuditingEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dbVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDatabase()); + } + if (isUnifiedAuditingEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isUnifiedAuditingEnabled_); + } + 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.oracledatabase.v1.DbHome)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbHome other = + (com.google.cloud.oracledatabase.v1.DbHome) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDbVersion().equals(other.getDbVersion())) return false; + if (hasDatabase() != other.hasDatabase()) return false; + if (hasDatabase()) { + if (!getDatabase().equals(other.getDatabase())) return false; + } + if (getIsUnifiedAuditingEnabled() != other.getIsUnifiedAuditingEnabled()) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DB_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDbVersion().hashCode(); + if (hasDatabase()) { + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + } + hash = (37 * hash) + IS_UNIFIED_AUDITING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUnifiedAuditingEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbHome parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbHome 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.oracledatabase.v1.DbHome parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbHome 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.oracledatabase.v1.DbHome parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbHome parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbHome parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbHome parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbHome parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbHome parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbHome parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbHome parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.DbHome prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Details of the Database Home resource.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbHome} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbHome) + com.google.cloud.oracledatabase.v1.DbHomeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbHome_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbHome_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbHome.class, + com.google.cloud.oracledatabase.v1.DbHome.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbHome.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDatabaseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + dbVersion_ = ""; + database_ = null; + if (databaseBuilder_ != null) { + databaseBuilder_.dispose(); + databaseBuilder_ = null; + } + isUnifiedAuditingEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbHome_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbHome getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbHome.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbHome build() { + com.google.cloud.oracledatabase.v1.DbHome result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbHome buildPartial() { + com.google.cloud.oracledatabase.v1.DbHome result = + new com.google.cloud.oracledatabase.v1.DbHome(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbHome result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dbVersion_ = dbVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.database_ = databaseBuilder_ == null ? database_ : databaseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isUnifiedAuditingEnabled_ = isUnifiedAuditingEnabled_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DbHome) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbHome) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbHome other) { + if (other == com.google.cloud.oracledatabase.v1.DbHome.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDbVersion().isEmpty()) { + dbVersion_ = other.dbVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDatabase()) { + mergeDatabase(other.getDatabase()); + } + if (other.getIsUnifiedAuditingEnabled() != false) { + setIsUnifiedAuditingEnabled(other.getIsUnifiedAuditingEnabled()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dbVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDatabaseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + isUnifiedAuditingEnabled_ = 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 displayName_ = ""; + + /** + * + * + *
                                              +     * Optional. The display name for the Database Home. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The display name for the Database Home. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The display name for the Database Home. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The display name for the Database Home. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The display name for the Database Home. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dbVersion_ = ""; + + /** + * + * + *
                                              +     * Required. A valid Oracle Database version. For a list of supported
                                              +     * versions, use the ListDbVersions operation.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dbVersion. + */ + public java.lang.String getDbVersion() { + java.lang.Object ref = dbVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dbVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. A valid Oracle Database version. For a list of supported
                                              +     * versions, use the ListDbVersions operation.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dbVersion. + */ + public com.google.protobuf.ByteString getDbVersionBytes() { + java.lang.Object ref = dbVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dbVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. A valid Oracle Database version. For a list of supported
                                              +     * versions, use the ListDbVersions operation.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dbVersion to set. + * @return This builder for chaining. + */ + public Builder setDbVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dbVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. A valid Oracle Database version. For a list of supported
                                              +     * versions, use the ListDbVersions operation.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDbVersion() { + dbVersion_ = getDefaultInstance().getDbVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. A valid Oracle Database version. For a list of supported
                                              +     * versions, use the ListDbVersions operation.
                                              +     * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dbVersion to set. + * @return This builder for chaining. + */ + public Builder setDbVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dbVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.Database database_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.Database, + com.google.cloud.oracledatabase.v1.Database.Builder, + com.google.cloud.oracledatabase.v1.DatabaseOrBuilder> + databaseBuilder_; + + /** + * + * + *
                                              +     * Required. The Database resource.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the database field is set. + */ + public boolean hasDatabase() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * Required. The Database resource.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The database. + */ + public com.google.cloud.oracledatabase.v1.Database getDatabase() { + if (databaseBuilder_ == null) { + return database_ == null + ? com.google.cloud.oracledatabase.v1.Database.getDefaultInstance() + : database_; + } else { + return databaseBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. The Database resource.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabase(com.google.cloud.oracledatabase.v1.Database value) { + if (databaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + } else { + databaseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The Database resource.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabase( + com.google.cloud.oracledatabase.v1.Database.Builder builderForValue) { + if (databaseBuilder_ == null) { + database_ = builderForValue.build(); + } else { + databaseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The Database resource.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatabase(com.google.cloud.oracledatabase.v1.Database value) { + if (databaseBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && database_ != null + && database_ != com.google.cloud.oracledatabase.v1.Database.getDefaultInstance()) { + getDatabaseBuilder().mergeFrom(value); + } else { + database_ = value; + } + } else { + databaseBuilder_.mergeFrom(value); + } + if (database_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The Database resource.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatabase() { + bitField0_ = (bitField0_ & ~0x00000004); + database_ = null; + if (databaseBuilder_ != null) { + databaseBuilder_.dispose(); + databaseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The Database resource.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.Database.Builder getDatabaseBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDatabaseFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. The Database resource.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseOrBuilder getDatabaseOrBuilder() { + if (databaseBuilder_ != null) { + return databaseBuilder_.getMessageOrBuilder(); + } else { + return database_ == null + ? com.google.cloud.oracledatabase.v1.Database.getDefaultInstance() + : database_; + } + } + + /** + * + * + *
                                              +     * Required. The Database resource.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.Database, + com.google.cloud.oracledatabase.v1.Database.Builder, + com.google.cloud.oracledatabase.v1.DatabaseOrBuilder> + getDatabaseFieldBuilder() { + if (databaseBuilder_ == null) { + databaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.Database, + com.google.cloud.oracledatabase.v1.Database.Builder, + com.google.cloud.oracledatabase.v1.DatabaseOrBuilder>( + getDatabase(), getParentForChildren(), isClean()); + database_ = null; + } + return databaseBuilder_; + } + + private boolean isUnifiedAuditingEnabled_; + + /** + * + * + *
                                              +     * Optional. Whether unified auditing is enabled for the Database Home.
                                              +     * 
                                              + * + * bool is_unified_auditing_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isUnifiedAuditingEnabled. + */ + @java.lang.Override + public boolean getIsUnifiedAuditingEnabled() { + return isUnifiedAuditingEnabled_; + } + + /** + * + * + *
                                              +     * Optional. Whether unified auditing is enabled for the Database Home.
                                              +     * 
                                              + * + * bool is_unified_auditing_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isUnifiedAuditingEnabled to set. + * @return This builder for chaining. + */ + public Builder setIsUnifiedAuditingEnabled(boolean value) { + + isUnifiedAuditingEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Whether unified auditing is enabled for the Database Home.
                                              +     * 
                                              + * + * bool is_unified_auditing_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsUnifiedAuditingEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + isUnifiedAuditingEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbHome) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbHome) + private static final com.google.cloud.oracledatabase.v1.DbHome DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbHome(); + } + + public static com.google.cloud.oracledatabase.v1.DbHome getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbHome 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.oracledatabase.v1.DbHome getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbHomeOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbHomeOrBuilder.java new file mode 100644 index 000000000000..72717df56094 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbHomeOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DbHomeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbHome) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. The display name for the Database Home. The name does not have to
                                              +   * be unique within your project.
                                              +   * 
                                              + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                              +   * Optional. The display name for the Database Home. The name does not have to
                                              +   * be unique within your project.
                                              +   * 
                                              + * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                              +   * Required. A valid Oracle Database version. For a list of supported
                                              +   * versions, use the ListDbVersions operation.
                                              +   * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dbVersion. + */ + java.lang.String getDbVersion(); + + /** + * + * + *
                                              +   * Required. A valid Oracle Database version. For a list of supported
                                              +   * versions, use the ListDbVersions operation.
                                              +   * 
                                              + * + * string db_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dbVersion. + */ + com.google.protobuf.ByteString getDbVersionBytes(); + + /** + * + * + *
                                              +   * Required. The Database resource.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the database field is set. + */ + boolean hasDatabase(); + + /** + * + * + *
                                              +   * Required. The Database resource.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The database. + */ + com.google.cloud.oracledatabase.v1.Database getDatabase(); + + /** + * + * + *
                                              +   * Required. The Database resource.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.Database database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.DatabaseOrBuilder getDatabaseOrBuilder(); + + /** + * + * + *
                                              +   * Optional. Whether unified auditing is enabled for the Database Home.
                                              +   * 
                                              + * + * bool is_unified_auditing_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isUnifiedAuditingEnabled. + */ + boolean getIsUnifiedAuditingEnabled(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java index b3dde0415fc1..3f1f1f0efd82 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java @@ -17,6 +17,7 @@ package com.google.cloud.oracledatabase.v1; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; @@ -32,11 +33,17 @@ public class DbNodeName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}"); + private static final PathTemplate PROJECT_LOCATION_EXADB_VM_CLUSTER_DB_NODE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}/dbNodes/{db_node}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String project; private final String location; private final String cloudVmCluster; private final String dbNode; + private final String exadbVmCluster; @Deprecated protected DbNodeName() { @@ -44,6 +51,7 @@ protected DbNodeName() { location = null; cloudVmCluster = null; dbNode = null; + exadbVmCluster = null; } private DbNodeName(Builder builder) { @@ -51,6 +59,17 @@ private DbNodeName(Builder builder) { location = Preconditions.checkNotNull(builder.getLocation()); cloudVmCluster = Preconditions.checkNotNull(builder.getCloudVmCluster()); dbNode = Preconditions.checkNotNull(builder.getDbNode()); + exadbVmCluster = null; + pathTemplate = PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE; + } + + private DbNodeName(ProjectLocationExadbVmClusterDbNodeBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + exadbVmCluster = Preconditions.checkNotNull(builder.getExadbVmCluster()); + dbNode = Preconditions.checkNotNull(builder.getDbNode()); + cloudVmCluster = null; + pathTemplate = PROJECT_LOCATION_EXADB_VM_CLUSTER_DB_NODE; } public String getProject() { @@ -69,10 +88,23 @@ public String getDbNode() { return dbNode; } + public String getExadbVmCluster() { + return exadbVmCluster; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newProjectLocationCloudVmClusterDbNodeBuilder() { + return new Builder(); + } + + public static ProjectLocationExadbVmClusterDbNodeBuilder + newProjectLocationExadbVmClusterDbNodeBuilder() { + return new ProjectLocationExadbVmClusterDbNodeBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -87,6 +119,26 @@ public static DbNodeName of( .build(); } + public static DbNodeName ofProjectLocationCloudVmClusterDbNodeName( + String project, String location, String cloudVmCluster, String dbNode) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudVmCluster(cloudVmCluster) + .setDbNode(dbNode) + .build(); + } + + public static DbNodeName ofProjectLocationExadbVmClusterDbNodeName( + String project, String location, String exadbVmCluster, String dbNode) { + return newProjectLocationExadbVmClusterDbNodeBuilder() + .setProject(project) + .setLocation(location) + .setExadbVmCluster(exadbVmCluster) + .setDbNode(dbNode) + .build(); + } + public static String format( String project, String location, String cloudVmCluster, String dbNode) { return newBuilder() @@ -98,18 +150,50 @@ public static String format( .toString(); } + public static String formatProjectLocationCloudVmClusterDbNodeName( + String project, String location, String cloudVmCluster, String dbNode) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCloudVmCluster(cloudVmCluster) + .setDbNode(dbNode) + .build() + .toString(); + } + + public static String formatProjectLocationExadbVmClusterDbNodeName( + String project, String location, String exadbVmCluster, String dbNode) { + return newProjectLocationExadbVmClusterDbNodeBuilder() + .setProject(project) + .setLocation(location) + .setExadbVmCluster(exadbVmCluster) + .setDbNode(dbNode) + .build() + .toString(); + } + public static DbNodeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE.validatedMatch( - formattedString, "DbNodeName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("cloud_vm_cluster"), - matchMap.get("db_node")); + if (PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE.match(formattedString); + return ofProjectLocationCloudVmClusterDbNodeName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("cloud_vm_cluster"), + matchMap.get("db_node")); + } else if (PROJECT_LOCATION_EXADB_VM_CLUSTER_DB_NODE.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_EXADB_VM_CLUSTER_DB_NODE.match(formattedString); + return ofProjectLocationExadbVmClusterDbNodeName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("exadb_vm_cluster"), + matchMap.get("db_node")); + } + throw new ValidationException("DbNodeName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -133,7 +217,8 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE.matches(formattedString); + return PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE.matches(formattedString) + || PROJECT_LOCATION_EXADB_VM_CLUSTER_DB_NODE.matches(formattedString); } @Override @@ -154,6 +239,9 @@ public Map getFieldValuesMap() { if (dbNode != null) { fieldMapBuilder.put("db_node", dbNode); } + if (exadbVmCluster != null) { + fieldMapBuilder.put("exadb_vm_cluster", exadbVmCluster); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -167,15 +255,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE.instantiate( - "project", - project, - "location", - location, - "cloud_vm_cluster", - cloudVmCluster, - "db_node", - dbNode); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -188,7 +268,8 @@ public boolean equals(Object o) { return Objects.equals(this.project, that.project) && Objects.equals(this.location, that.location) && Objects.equals(this.cloudVmCluster, that.cloudVmCluster) - && Objects.equals(this.dbNode, that.dbNode); + && Objects.equals(this.dbNode, that.dbNode) + && Objects.equals(this.exadbVmCluster, that.exadbVmCluster); } return false; } @@ -197,6 +278,8 @@ public boolean equals(Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(project); h *= 1000003; h ^= Objects.hashCode(location); @@ -204,6 +287,8 @@ public int hashCode() { h ^= Objects.hashCode(cloudVmCluster); h *= 1000003; h ^= Objects.hashCode(dbNode); + h *= 1000003; + h ^= Objects.hashCode(exadbVmCluster); return h; } @@ -256,6 +341,10 @@ public Builder setDbNode(String dbNode) { } private Builder(DbNodeName dbNodeName) { + Preconditions.checkArgument( + Objects.equals(dbNodeName.pathTemplate, PROJECT_LOCATION_CLOUD_VM_CLUSTER_DB_NODE), + "toBuilder is only supported when DbNodeName has the pattern of" + + " projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}"); this.project = dbNodeName.project; this.location = dbNodeName.location; this.cloudVmCluster = dbNodeName.cloudVmCluster; @@ -266,4 +355,57 @@ public DbNodeName build() { return new DbNodeName(this); } } + + /** + * Builder for + * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}/dbNodes/{db_node}. + */ + public static class ProjectLocationExadbVmClusterDbNodeBuilder { + private String project; + private String location; + private String exadbVmCluster; + private String dbNode; + + protected ProjectLocationExadbVmClusterDbNodeBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getExadbVmCluster() { + return exadbVmCluster; + } + + public String getDbNode() { + return dbNode; + } + + public ProjectLocationExadbVmClusterDbNodeBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationExadbVmClusterDbNodeBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationExadbVmClusterDbNodeBuilder setExadbVmCluster(String exadbVmCluster) { + this.exadbVmCluster = exadbVmCluster; + return this; + } + + public ProjectLocationExadbVmClusterDbNodeBuilder setDbNode(String dbNode) { + this.dbNode = dbNode; + return this; + } + + public DbNodeName build() { + return new DbNodeName(this); + } + } } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProperties.java index b8bd03b12119..b3628b0be82b 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProperties.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProperties.java @@ -389,6 +389,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbNodeProperties.State) } + private int bitField0_; public static final int OCID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -667,6 +668,58 @@ public int getTotalCpuCoreCount() { return totalCpuCoreCount_; } + public static final int CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                              +   * Output only. The date and time that the database node was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 11 [(.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 date and time that the database node was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 11 [(.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 date and time that the database node was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -707,6 +760,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (totalCpuCoreCount_ != 0) { output.writeInt32(10, totalCpuCoreCount_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(11, getCreateTime()); + } getUnknownFields().writeTo(output); } @@ -742,6 +798,9 @@ public int getSerializedSize() { if (totalCpuCoreCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, totalCpuCoreCount_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -766,6 +825,10 @@ public boolean equals(final java.lang.Object obj) { if (!getHostname().equals(other.getHostname())) return false; if (state_ != other.state_) return false; if (getTotalCpuCoreCount() != other.getTotalCpuCoreCount()) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -793,6 +856,10 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + TOTAL_CPU_CORE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getTotalCpuCoreCount(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -923,10 +990,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.oracledatabase.v1.DbNodeProperties.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } } @java.lang.Override @@ -941,6 +1017,11 @@ public Builder clear() { hostname_ = ""; state_ = 0; totalCpuCoreCount_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } return this; } @@ -1001,6 +1082,12 @@ private void buildPartial0(com.google.cloud.oracledatabase.v1.DbNodeProperties r if (((from_bitField0_ & 0x00000080) != 0)) { result.totalCpuCoreCount_ = totalCpuCoreCount_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1079,6 +1166,9 @@ public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbNodeProperties oth if (other.getTotalCpuCoreCount() != 0) { setTotalCpuCoreCount(other.getTotalCpuCoreCount()); } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1153,6 +1243,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 80 + case 90: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1836,6 +1932,218 @@ public Builder clearTotalCpuCoreCount() { return this; } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time that the database node was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the database node was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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 date and time that the database node was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the database node was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the database node was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the database node was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the database node was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the database node was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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 date and time that the database node was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodePropertiesOrBuilder.java index e65d619fef0b..cfb245f1a1a1 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodePropertiesOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodePropertiesOrBuilder.java @@ -183,4 +183,44 @@ public interface DbNodePropertiesOrBuilder * @return The totalCpuCoreCount. */ int getTotalCpuCoreCount(); + + /** + * + * + *
                                              +   * Output only. The date and time that the database node was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the database node was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the database node was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProto.java index 62d3b5e61c54..fa012b2e4058 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeProto.java @@ -48,14 +48,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ",google/cloud/oracledatabase/v1/db_node" + ".proto\022\036google.cloud.oracledatabase.v1\032\037" - + "google/api/field_behavior.proto\032\031google/api/resource.proto\"\202\002\n" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032\037google/protobuf/timestamp.proto\"\340\002\n" + "\006DbNode\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022I\n\n" - + "properties\030\003 \001(\01320.google.cl" - + "oud.oracledatabase.v1.DbNodePropertiesB\003\340A\001:\231\001\352A\225\001\n" - + "$oracledatabase.googleapis.com/DbNode\022\\projects/{project}/locations/{" - + "location}/cloudVmClusters/{cloud_vm_clus" - + "ter}/dbNodes/{db_node}*\007dbNodes2\006dbNode\"\300\003\n" + + "properties\030\003 \001(\01320.google.cloud.ora" + + "cledatabase.v1.DbNodePropertiesB\003\340A\001:\367\001\352A\363\001\n" + + "$oracledatabase.googleapis.com/DbNode\022\\projects/{project}/locations/{locatio" + + "n}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}\022\\projects/{project}/loca" + + "tions/{location}/exadbVmClusters/{exadb_" + + "vm_cluster}/dbNodes/{db_node}*\007dbNodes2\006dbNode\"\366\003\n" + "\020DbNodeProperties\022\021\n" + "\004ocid\030\001 \001(\tB\003\340A\003\022\027\n\n" + "ocpu_count\030\002 \001(\005B\003\340A\001\022\026\n" @@ -63,10 +65,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027db_node_storage_size_gb\030\004 \001(\005B\003\340A\001\022\033\n" + "\016db_server_ocid\030\005 \001(\tB\003\340A\001\022\025\n" + "\010hostname\030\010 \001(\tB\003\340A\001\022J\n" - + "\005state\030\t \001(\01626.goog" - + "le.cloud.oracledatabase.v1.DbNodeProperties.StateB\003\340A\003\022\034\n" + + "\005state\030\t \001(\016" + + "26.google.cloud.oracledatabase.v1.DbNodeProperties.StateB\003\340A\003\022\034\n" + "\024total_cpu_core_count\030\n" - + " \001(\005\"\243\001\n" + + " \001(\005\0224\n" + + "\013create_time\030\013" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\243\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\020\n" + "\014PROVISIONING\020\001\022\r\n" @@ -76,14 +80,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007STOPPED\020\005\022\014\n" + "\010STARTING\020\006\022\017\n" + "\013TERMINATING\020\007\022\016\n\n" - + "TERMINATED\020\010\022\n" - + "\n" + + "TERMINATED\020\010\022\n\n" + "\006FAILED\020\tB\345\001\n" - + "\"com.google.cloud.oracledatabase.v1B\013DbNodeProtoP\001ZJcloud.google.c" - + "om/go/oracledatabase/apiv1/oracledatabas" - + "epb;oracledatabasepb\252\002\036Google.Cloud.Orac" - + "leDatabase.V1\312\002\036Google\\Cloud\\OracleDatab" - + "ase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B\013DbNodePr" + + "otoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasep" + + "b\252\002\036Google.Cloud.OracleDatabase.V1\312\002\036Goo" + + "gle\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -91,6 +93,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_oracledatabase_v1_DbNode_descriptor = getDescriptor().getMessageTypes().get(0); @@ -114,6 +117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hostname", "State", "TotalCpuCoreCount", + "CreateTime", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -123,6 +127,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystem.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystem.java new file mode 100644 index 000000000000..96cde655d379 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystem.java @@ -0,0 +1,2837 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Details of the DbSystem (BaseDB) resource.
                                              + * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystem} + */ +public final class DbSystem extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbSystem) + DbSystemOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DbSystem.newBuilder() to construct. + private DbSystem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbSystem() { + name_ = ""; + gcpOracleZone_ = ""; + odbNetwork_ = ""; + odbSubnet_ = ""; + entitlementId_ = ""; + displayName_ = ""; + ociUrl_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbSystem(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystem_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.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystem.class, + com.google.cloud.oracledatabase.v1.DbSystem.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Identifier. The name of the DbSystem resource in the following format:
                                              +   * projects/{project}/locations/{region}/dbSystems/{db_system}
                                              +   * 
                                              + * + * 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. The name of the DbSystem resource in the following format:
                                              +   * projects/{project}/locations/{region}/dbSystems/{db_system}
                                              +   * 
                                              + * + * 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 PROPERTIES_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.DbSystemProperties properties_; + + /** + * + * + *
                                              +   * Optional. The properties of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Optional. The properties of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.getDefaultInstance() + : properties_; + } + + /** + * + * + *
                                              +   * Optional. The properties of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemPropertiesOrBuilder getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.getDefaultInstance() + : properties_; + } + + public static final int GCP_ORACLE_ZONE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where Oracle DbSystem is hosted.
                                              +   * Example: us-east4-b-r2.
                                              +   * If not specified, the system will pick a zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + @java.lang.Override + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + 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(); + gcpOracleZone_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where Oracle DbSystem is hosted.
                                              +   * Example: us-east4-b-r2.
                                              +   * If not specified, the system will pick a zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystem_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. The labels or tags associated with the DbSystem.
                                              +   * 
                                              + * + * 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. The labels or tags associated with the DbSystem.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the DbSystem.
                                              +   * 
                                              + * + * 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. The labels or tags associated with the DbSystem.
                                              +   * 
                                              + * + * 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 ODB_NETWORK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbNetwork_ = ""; + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the DbSystem.
                                              +   * Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +   * It is optional but if specified, this should match the parent ODBNetwork of
                                              +   * the OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ + @java.lang.Override + public java.lang.String getOdbNetwork() { + java.lang.Object ref = odbNetwork_; + 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(); + odbNetwork_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the DbSystem.
                                              +   * Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +   * It is optional but if specified, this should match the parent ODBNetwork of
                                              +   * the OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbNetworkBytes() { + java.lang.Object ref = odbNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ODB_SUBNET_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbSubnet_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the OdbSubnet associated with the DbSystem for IP
                                              +   * allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ + @java.lang.Override + public java.lang.String getOdbSubnet() { + java.lang.Object ref = odbSubnet_; + 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(); + odbSubnet_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The name of the OdbSubnet associated with the DbSystem for IP
                                              +   * allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbSubnetBytes() { + java.lang.Object ref = odbSubnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITLEMENT_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object entitlementId_ = ""; + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * DbSystem
                                              +   * 
                                              + * + * string entitlement_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + @java.lang.Override + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + 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(); + entitlementId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * DbSystem
                                              +   * 
                                              + * + * string entitlement_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +   * Required. The display name for the System db. The name does not have to
                                              +   * be unique within your project.
                                              +   * 
                                              + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The display name for the System db. The name does not have to
                                              +   * be unique within your project.
                                              +   * 
                                              + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                              +   * Output only. The date and time that the DbSystem was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Output only. The date and time that the DbSystem was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.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 date and time that the DbSystem was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.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 OCI_URL_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object ociUrl_ = ""; + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + @java.lang.Override + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + 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(); + ociUrl_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gcpOracleZone_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, odbNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, odbSubnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, entitlementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ociUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gcpOracleZone_); + } + 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.GeneratedMessageV3.isStringEmpty(odbNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, odbNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, odbSubnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, entitlementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, ociUrl_); + } + 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.oracledatabase.v1.DbSystem)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbSystem other = + (com.google.cloud.oracledatabase.v1.DbSystem) obj; + + if (!getName().equals(other.getName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!getGcpOracleZone().equals(other.getGcpOracleZone())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getOdbNetwork().equals(other.getOdbNetwork())) return false; + if (!getOdbSubnet().equals(other.getOdbSubnet())) return false; + if (!getEntitlementId().equals(other.getEntitlementId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getOciUrl().equals(other.getOciUrl())) 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(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (37 * hash) + GCP_ORACLE_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGcpOracleZone().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + ODB_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getOdbNetwork().hashCode(); + hash = (37 * hash) + ODB_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getOdbSubnet().hashCode(); + hash = (37 * hash) + ENTITLEMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntitlementId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + OCI_URL_FIELD_NUMBER; + hash = (53 * hash) + getOciUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbSystem parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem 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.oracledatabase.v1.DbSystem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem 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.oracledatabase.v1.DbSystem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.DbSystem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Details of the DbSystem (BaseDB) resource.
                                              +   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystem} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbSystem) + com.google.cloud.oracledatabase.v1.DbSystemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystem_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.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystem.class, + com.google.cloud.oracledatabase.v1.DbSystem.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbSystem.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + gcpOracleZone_ = ""; + internalGetMutableLabels().clear(); + odbNetwork_ = ""; + odbSubnet_ = ""; + entitlementId_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + ociUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystem_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystem getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystem build() { + com.google.cloud.oracledatabase.v1.DbSystem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystem buildPartial() { + com.google.cloud.oracledatabase.v1.DbSystem result = + new com.google.cloud.oracledatabase.v1.DbSystem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbSystem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcpOracleZone_ = gcpOracleZone_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.odbNetwork_ = odbNetwork_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.odbSubnet_ = odbSubnet_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.entitlementId_ = entitlementId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.ociUrl_ = ociUrl_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DbSystem) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbSystem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbSystem other) { + if (other == com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (!other.getGcpOracleZone().isEmpty()) { + gcpOracleZone_ = other.gcpOracleZone_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getOdbNetwork().isEmpty()) { + odbNetwork_ = other.odbNetwork_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getOdbSubnet().isEmpty()) { + odbSubnet_ = other.odbSubnet_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getEntitlementId().isEmpty()) { + entitlementId_ = other.entitlementId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getOciUrl().isEmpty()) { + ociUrl_ = other.ociUrl_; + bitField0_ |= 0x00000200; + 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: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + gcpOracleZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + odbNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + odbSubnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + entitlementId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + ociUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + 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_ = ""; + + /** + * + * + *
                                              +     * Identifier. The name of the DbSystem resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbSystems/{db_system}
                                              +     * 
                                              + * + * 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. The name of the DbSystem resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbSystems/{db_system}
                                              +     * 
                                              + * + * 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. The name of the DbSystem resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbSystems/{db_system}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the DbSystem resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbSystems/{db_system}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the DbSystem resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbSystems/{db_system}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.DbSystemProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemProperties, + com.google.cloud.oracledatabase.v1.DbSystemProperties.Builder, + com.google.cloud.oracledatabase.v1.DbSystemPropertiesOrBuilder> + propertiesBuilder_; + + /** + * + * + *
                                              +     * Optional. The properties of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Optional. The properties of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.DbSystemProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. The properties of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties(com.google.cloud.oracledatabase.v1.DbSystemProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.DbSystemProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties(com.google.cloud.oracledatabase.v1.DbSystemProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.DbSystemProperties.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemProperties.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. The properties of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemPropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.getDefaultInstance() + : properties_; + } + } + + /** + * + * + *
                                              +     * Optional. The properties of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemProperties, + com.google.cloud.oracledatabase.v1.DbSystemProperties.Builder, + com.google.cloud.oracledatabase.v1.DbSystemPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemProperties, + com.google.cloud.oracledatabase.v1.DbSystemProperties.Builder, + com.google.cloud.oracledatabase.v1.DbSystemPropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle DbSystem is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpOracleZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle DbSystem is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle DbSystem is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpOracleZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle DbSystem is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcpOracleZone() { + gcpOracleZone_ = getDefaultInstance().getGcpOracleZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle DbSystem is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpOracleZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the DbSystem.
                                              +     * 
                                              + * + * 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. The labels or tags associated with the DbSystem.
                                              +     * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the DbSystem.
                                              +     * 
                                              + * + * 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. The labels or tags associated with the DbSystem.
                                              +     * 
                                              + * + * 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_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the DbSystem.
                                              +     * 
                                              + * + * 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_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the DbSystem.
                                              +     * 
                                              + * + * 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_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the DbSystem.
                                              +     * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object odbNetwork_ = ""; + + /** + * + * + *
                                              +     * Optional. The name of the OdbNetwork associated with the DbSystem.
                                              +     * Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ + public java.lang.String getOdbNetwork() { + java.lang.Object ref = odbNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + odbNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The name of the OdbNetwork associated with the DbSystem.
                                              +     * Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + public com.google.protobuf.ByteString getOdbNetworkBytes() { + java.lang.Object ref = odbNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The name of the OdbNetwork associated with the DbSystem.
                                              +     * Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The odbNetwork to set. + * @return This builder for chaining. + */ + public Builder setOdbNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + odbNetwork_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the OdbNetwork associated with the DbSystem.
                                              +     * Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOdbNetwork() { + odbNetwork_ = getDefaultInstance().getOdbNetwork(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the OdbNetwork associated with the DbSystem.
                                              +     * Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +     * It is optional but if specified, this should match the parent ODBNetwork of
                                              +     * the OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for odbNetwork to set. + * @return This builder for chaining. + */ + public Builder setOdbNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + odbNetwork_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object odbSubnet_ = ""; + + /** + * + * + *
                                              +     * Required. The name of the OdbSubnet associated with the DbSystem for IP
                                              +     * allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ + public java.lang.String getOdbSubnet() { + java.lang.Object ref = odbSubnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + odbSubnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The name of the OdbSubnet associated with the DbSystem for IP
                                              +     * allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + public com.google.protobuf.ByteString getOdbSubnetBytes() { + java.lang.Object ref = odbSubnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The name of the OdbSubnet associated with the DbSystem for IP
                                              +     * allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The odbSubnet to set. + * @return This builder for chaining. + */ + public Builder setOdbSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + odbSubnet_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The name of the OdbSubnet associated with the DbSystem for IP
                                              +     * allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOdbSubnet() { + odbSubnet_ = getDefaultInstance().getOdbSubnet(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The name of the OdbSubnet associated with the DbSystem for IP
                                              +     * allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for odbSubnet to set. + * @return This builder for chaining. + */ + public Builder setOdbSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + odbSubnet_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object entitlementId_ = ""; + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * DbSystem
                                              +     * 
                                              + * + * string entitlement_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entitlementId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * DbSystem
                                              +     * 
                                              + * + * string entitlement_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * DbSystem
                                              +     * 
                                              + * + * string entitlement_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entitlementId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * DbSystem
                                              +     * 
                                              + * + * string entitlement_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEntitlementId() { + entitlementId_ = getDefaultInstance().getEntitlementId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * DbSystem
                                              +     * 
                                              + * + * string entitlement_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entitlementId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +     * Required. The display name for the System db. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The display name for the System db. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The display name for the System db. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The display name for the System db. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The display name for the System db. The name does not have to
                                              +     * be unique within your project.
                                              +     * 
                                              + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time that the DbSystem was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the DbSystem was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.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 date and time that the DbSystem was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the DbSystem was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the DbSystem was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the DbSystem was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the DbSystem was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the DbSystem was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.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 date and time that the DbSystem was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.lang.Object ociUrl_ = ""; + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ociUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ociUrl_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOciUrl() { + ociUrl_ = getDefaultInstance().getOciUrl(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ociUrl_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbSystem) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbSystem) + private static final com.google.cloud.oracledatabase.v1.DbSystem DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbSystem(); + } + + public static com.google.cloud.oracledatabase.v1.DbSystem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbSystem 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.oracledatabase.v1.DbSystem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSize.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSize.java new file mode 100644 index 000000000000..13a46d25c6c0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSize.java @@ -0,0 +1,967 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Summary of the DbSystem initial storage size.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemInitialStorageSize} + */ +public final class DbSystemInitialStorageSize extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbSystemInitialStorageSize) + DbSystemInitialStorageSizeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DbSystemInitialStorageSize.newBuilder() to construct. + private DbSystemInitialStorageSize(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbSystemInitialStorageSize() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbSystemInitialStorageSize(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSize_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSize_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.class, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Output only. The name of the resource.
                                              +   * 
                                              + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                              +   * Output only. The name of the resource.
                                              +   * 
                                              + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 PROPERTIES_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties_; + + /** + * + * + *
                                              +   * Output only. The properties of the DbSystem initial storage size summary.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Output only. The properties of the DbSystem initial storage size summary.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .getDefaultInstance() + : properties_; + } + + /** + * + * + *
                                              +   * Output only. The properties of the DbSystem initial storage size summary.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesOrBuilder + getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .getDefaultInstance() + : properties_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getProperties()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProperties()); + } + 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.oracledatabase.v1.DbSystemInitialStorageSize)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize other = + (com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize) obj; + + if (!getName().equals(other.getName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) 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(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize 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.oracledatabase.v1.DbSystemInitialStorageSize parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize 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.oracledatabase.v1.DbSystemInitialStorageSize parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Summary of the DbSystem initial storage size.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemInitialStorageSize} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbSystemInitialStorageSize) + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSize_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSize_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.class, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSize_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize build() { + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize buildPartial() { + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize result = + new com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize other) { + if (other + == com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + 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 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 name_ = ""; + + /** + * + * + *
                                              +     * Output only. The name of the resource.
                                              +     * 
                                              + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                              +     * Output only. The name of the resource.
                                              +     * 
                                              + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                              +     * Output only. The name of the resource.
                                              +     * 
                                              + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
                                              +     * Output only. The name of the resource.
                                              +     * 
                                              + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The name of the resource.
                                              +     * 
                                              + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.Builder, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesOrBuilder> + propertiesBuilder_; + + /** + * + * + *
                                              +     * Output only. The properties of the DbSystem initial storage size summary.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbSystem initial storage size summary.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbSystem initial storage size summary.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbSystem initial storage size summary.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.Builder + builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbSystem initial storage size summary.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProperties( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbSystem initial storage size summary.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbSystem initial storage size summary.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.Builder + getPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbSystem initial storage size summary.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesOrBuilder + getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .getDefaultInstance() + : properties_; + } + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbSystem initial storage size summary.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.Builder, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.Builder, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbSystemInitialStorageSize) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbSystemInitialStorageSize) + private static final com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize(); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbSystemInitialStorageSize 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.oracledatabase.v1.DbSystemInitialStorageSize getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeName.java new file mode 100644 index 000000000000..c216feefe45f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeName.java @@ -0,0 +1,241 @@ +/* + * Copyright 2025 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.oracledatabase.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 DbSystemInitialStorageSizeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DB_SYSTEM_INITIAL_STORAGE_SIZE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dbSystemInitialStorageSizes/{db_system_initial_storage_size}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dbSystemInitialStorageSize; + + @Deprecated + protected DbSystemInitialStorageSizeName() { + project = null; + location = null; + dbSystemInitialStorageSize = null; + } + + private DbSystemInitialStorageSizeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dbSystemInitialStorageSize = + Preconditions.checkNotNull(builder.getDbSystemInitialStorageSize()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDbSystemInitialStorageSize() { + return dbSystemInitialStorageSize; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DbSystemInitialStorageSizeName of( + String project, String location, String dbSystemInitialStorageSize) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDbSystemInitialStorageSize(dbSystemInitialStorageSize) + .build(); + } + + public static String format(String project, String location, String dbSystemInitialStorageSize) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDbSystemInitialStorageSize(dbSystemInitialStorageSize) + .build() + .toString(); + } + + public static DbSystemInitialStorageSizeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DB_SYSTEM_INITIAL_STORAGE_SIZE.validatedMatch( + formattedString, + "DbSystemInitialStorageSizeName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("db_system_initial_storage_size")); + } + + 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 (DbSystemInitialStorageSizeName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DB_SYSTEM_INITIAL_STORAGE_SIZE.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 (dbSystemInitialStorageSize != null) { + fieldMapBuilder.put("db_system_initial_storage_size", dbSystemInitialStorageSize); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DB_SYSTEM_INITIAL_STORAGE_SIZE.instantiate( + "project", + project, + "location", + location, + "db_system_initial_storage_size", + dbSystemInitialStorageSize); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DbSystemInitialStorageSizeName that = ((DbSystemInitialStorageSizeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dbSystemInitialStorageSize, that.dbSystemInitialStorageSize); + } + 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(dbSystemInitialStorageSize); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/dbSystemInitialStorageSizes/{db_system_initial_storage_size}. + */ + public static class Builder { + private String project; + private String location; + private String dbSystemInitialStorageSize; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDbSystemInitialStorageSize() { + return dbSystemInitialStorageSize; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDbSystemInitialStorageSize(String dbSystemInitialStorageSize) { + this.dbSystemInitialStorageSize = dbSystemInitialStorageSize; + return this; + } + + private Builder(DbSystemInitialStorageSizeName dbSystemInitialStorageSizeName) { + this.project = dbSystemInitialStorageSizeName.project; + this.location = dbSystemInitialStorageSizeName.location; + this.dbSystemInitialStorageSize = dbSystemInitialStorageSizeName.dbSystemInitialStorageSize; + } + + public DbSystemInitialStorageSizeName build() { + return new DbSystemInitialStorageSizeName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeOrBuilder.java new file mode 100644 index 000000000000..bce5bc220b29 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DbSystemInitialStorageSizeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbSystemInitialStorageSize) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. The name of the resource.
                                              +   * 
                                              + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Output only. The name of the resource.
                                              +   * 
                                              + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Output only. The properties of the DbSystem initial storage size summary.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + + /** + * + * + *
                                              +   * Output only. The properties of the DbSystem initial storage size summary.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties getProperties(); + + /** + * + * + *
                                              +   * Output only. The properties of the DbSystem initial storage size summary.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesOrBuilder + getPropertiesOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeProperties.java new file mode 100644 index 000000000000..d84426edc510 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeProperties.java @@ -0,0 +1,2331 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The properties of a DbSystem initial storage size summary.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties} + */ +public final class DbSystemInitialStorageSizeProperties + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties) + DbSystemInitialStorageSizePropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DbSystemInitialStorageSizeProperties.newBuilder() to construct. + private DbSystemInitialStorageSizeProperties( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbSystemInitialStorageSizeProperties() { + storageManagement_ = 0; + shapeType_ = 0; + storageSizeDetails_ = java.util.Collections.emptyList(); + launchFromBackupStorageSizeDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbSystemInitialStorageSizeProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.class, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.Builder.class); + } + + /** + * + * + *
                                              +   * The storage option used in the DB system.
                                              +   * 
                                              + * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement} + */ + public enum StorageManagement implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Unspecified storage management.
                                              +     * 
                                              + * + * STORAGE_MANAGEMENT_UNSPECIFIED = 0; + */ + STORAGE_MANAGEMENT_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Automatic Storage Management.
                                              +     * 
                                              + * + * ASM = 1; + */ + ASM(1), + /** + * + * + *
                                              +     * Logical Volume Management.
                                              +     * 
                                              + * + * LVM = 2; + */ + LVM(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Unspecified storage management.
                                              +     * 
                                              + * + * STORAGE_MANAGEMENT_UNSPECIFIED = 0; + */ + public static final int STORAGE_MANAGEMENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Automatic Storage Management.
                                              +     * 
                                              + * + * ASM = 1; + */ + public static final int ASM_VALUE = 1; + + /** + * + * + *
                                              +     * Logical Volume Management.
                                              +     * 
                                              + * + * LVM = 2; + */ + public static final int LVM_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 StorageManagement 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 StorageManagement forNumber(int value) { + switch (value) { + case 0: + return STORAGE_MANAGEMENT_UNSPECIFIED; + case 1: + return ASM; + case 2: + return LVM; + 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 StorageManagement findValueByNumber(int number) { + return StorageManagement.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StorageManagement[] VALUES = values(); + + public static StorageManagement 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 StorageManagement(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement) + } + + /** + * + * + *
                                              +   * The shape type of the DB system.
                                              +   * 
                                              + * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType} + */ + public enum ShapeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Unspecified shape type.
                                              +     * 
                                              + * + * SHAPE_TYPE_UNSPECIFIED = 0; + */ + SHAPE_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Standard X86.
                                              +     * 
                                              + * + * STANDARD_X86 = 1; + */ + STANDARD_X86(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Unspecified shape type.
                                              +     * 
                                              + * + * SHAPE_TYPE_UNSPECIFIED = 0; + */ + public static final int SHAPE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Standard X86.
                                              +     * 
                                              + * + * STANDARD_X86 = 1; + */ + public static final int STANDARD_X86_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 ShapeType 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 ShapeType forNumber(int value) { + switch (value) { + case 0: + return SHAPE_TYPE_UNSPECIFIED; + case 1: + return STANDARD_X86; + 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 ShapeType findValueByNumber(int number) { + return ShapeType.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ShapeType[] VALUES = values(); + + public static ShapeType 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 ShapeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType) + } + + public static final int STORAGE_MANAGEMENT_FIELD_NUMBER = 1; + private int storageManagement_ = 0; + + /** + * + * + *
                                              +   * Output only. The storage option used in DB system.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for storageManagement. + */ + @java.lang.Override + public int getStorageManagementValue() { + return storageManagement_; + } + + /** + * + * + *
                                              +   * Output only. The storage option used in DB system.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The storageManagement. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement + getStorageManagement() { + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement + result = + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .StorageManagement.forNumber(storageManagement_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement + .UNRECOGNIZED + : result; + } + + public static final int SHAPE_TYPE_FIELD_NUMBER = 2; + private int shapeType_ = 0; + + /** + * + * + *
                                              +   * Output only. VM shape platform type
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType shape_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for shapeType. + */ + @java.lang.Override + public int getShapeTypeValue() { + return shapeType_; + } + + /** + * + * + *
                                              +   * Output only. VM shape platform type
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType shape_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The shapeType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType + getShapeType() { + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType result = + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType.forNumber( + shapeType_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType + .UNRECOGNIZED + : result; + } + + public static final int STORAGE_SIZE_DETAILS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List storageSizeDetails_; + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getStorageSizeDetailsList() { + return storageSizeDetails_; + } + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getStorageSizeDetailsOrBuilderList() { + return storageSizeDetails_; + } + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getStorageSizeDetailsCount() { + return storageSizeDetails_.size(); + } + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.StorageSizeDetails getStorageSizeDetails(int index) { + return storageSizeDetails_.get(index); + } + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder + getStorageSizeDetailsOrBuilder(int index) { + return storageSizeDetails_.get(index); + } + + public static final int LAUNCH_FROM_BACKUP_STORAGE_SIZE_DETAILS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + launchFromBackupStorageSizeDetails_; + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLaunchFromBackupStorageSizeDetailsList() { + return launchFromBackupStorageSizeDetails_; + } + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLaunchFromBackupStorageSizeDetailsOrBuilderList() { + return launchFromBackupStorageSizeDetails_; + } + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getLaunchFromBackupStorageSizeDetailsCount() { + return launchFromBackupStorageSizeDetails_.size(); + } + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.StorageSizeDetails + getLaunchFromBackupStorageSizeDetails(int index) { + return launchFromBackupStorageSizeDetails_.get(index); + } + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder + getLaunchFromBackupStorageSizeDetailsOrBuilder(int index) { + return launchFromBackupStorageSizeDetails_.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 { + if (storageManagement_ + != com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement + .STORAGE_MANAGEMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, storageManagement_); + } + if (shapeType_ + != com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType + .SHAPE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, shapeType_); + } + for (int i = 0; i < storageSizeDetails_.size(); i++) { + output.writeMessage(3, storageSizeDetails_.get(i)); + } + for (int i = 0; i < launchFromBackupStorageSizeDetails_.size(); i++) { + output.writeMessage(4, launchFromBackupStorageSizeDetails_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (storageManagement_ + != com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement + .STORAGE_MANAGEMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, storageManagement_); + } + if (shapeType_ + != com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType + .SHAPE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, shapeType_); + } + for (int i = 0; i < storageSizeDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, storageSizeDetails_.get(i)); + } + for (int i = 0; i < launchFromBackupStorageSizeDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, launchFromBackupStorageSizeDetails_.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.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties other = + (com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties) obj; + + if (storageManagement_ != other.storageManagement_) return false; + if (shapeType_ != other.shapeType_) return false; + if (!getStorageSizeDetailsList().equals(other.getStorageSizeDetailsList())) return false; + if (!getLaunchFromBackupStorageSizeDetailsList() + .equals(other.getLaunchFromBackupStorageSizeDetailsList())) 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) + STORAGE_MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + storageManagement_; + hash = (37 * hash) + SHAPE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + shapeType_; + if (getStorageSizeDetailsCount() > 0) { + hash = (37 * hash) + STORAGE_SIZE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getStorageSizeDetailsList().hashCode(); + } + if (getLaunchFromBackupStorageSizeDetailsCount() > 0) { + hash = (37 * hash) + LAUNCH_FROM_BACKUP_STORAGE_SIZE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getLaunchFromBackupStorageSizeDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties 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.oracledatabase.v1.DbSystemInitialStorageSizeProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties 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.oracledatabase.v1.DbSystemInitialStorageSizeProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The properties of a DbSystem initial storage size summary.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties) + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.class, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + storageManagement_ = 0; + shapeType_ = 0; + if (storageSizeDetailsBuilder_ == null) { + storageSizeDetails_ = java.util.Collections.emptyList(); + } else { + storageSizeDetails_ = null; + storageSizeDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + launchFromBackupStorageSizeDetails_ = java.util.Collections.emptyList(); + } else { + launchFromBackupStorageSizeDetails_ = null; + launchFromBackupStorageSizeDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties build() { + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties buildPartial() { + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties result = + new com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties result) { + if (storageSizeDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + storageSizeDetails_ = java.util.Collections.unmodifiableList(storageSizeDetails_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.storageSizeDetails_ = storageSizeDetails_; + } else { + result.storageSizeDetails_ = storageSizeDetailsBuilder_.build(); + } + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + launchFromBackupStorageSizeDetails_ = + java.util.Collections.unmodifiableList(launchFromBackupStorageSizeDetails_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.launchFromBackupStorageSizeDetails_ = launchFromBackupStorageSizeDetails_; + } else { + result.launchFromBackupStorageSizeDetails_ = + launchFromBackupStorageSizeDetailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.storageManagement_ = storageManagement_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.shapeType_ = shapeType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties other) { + if (other + == com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .getDefaultInstance()) return this; + if (other.storageManagement_ != 0) { + setStorageManagementValue(other.getStorageManagementValue()); + } + if (other.shapeType_ != 0) { + setShapeTypeValue(other.getShapeTypeValue()); + } + if (storageSizeDetailsBuilder_ == null) { + if (!other.storageSizeDetails_.isEmpty()) { + if (storageSizeDetails_.isEmpty()) { + storageSizeDetails_ = other.storageSizeDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureStorageSizeDetailsIsMutable(); + storageSizeDetails_.addAll(other.storageSizeDetails_); + } + onChanged(); + } + } else { + if (!other.storageSizeDetails_.isEmpty()) { + if (storageSizeDetailsBuilder_.isEmpty()) { + storageSizeDetailsBuilder_.dispose(); + storageSizeDetailsBuilder_ = null; + storageSizeDetails_ = other.storageSizeDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + storageSizeDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStorageSizeDetailsFieldBuilder() + : null; + } else { + storageSizeDetailsBuilder_.addAllMessages(other.storageSizeDetails_); + } + } + } + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + if (!other.launchFromBackupStorageSizeDetails_.isEmpty()) { + if (launchFromBackupStorageSizeDetails_.isEmpty()) { + launchFromBackupStorageSizeDetails_ = other.launchFromBackupStorageSizeDetails_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + launchFromBackupStorageSizeDetails_.addAll(other.launchFromBackupStorageSizeDetails_); + } + onChanged(); + } + } else { + if (!other.launchFromBackupStorageSizeDetails_.isEmpty()) { + if (launchFromBackupStorageSizeDetailsBuilder_.isEmpty()) { + launchFromBackupStorageSizeDetailsBuilder_.dispose(); + launchFromBackupStorageSizeDetailsBuilder_ = null; + launchFromBackupStorageSizeDetails_ = other.launchFromBackupStorageSizeDetails_; + bitField0_ = (bitField0_ & ~0x00000008); + launchFromBackupStorageSizeDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLaunchFromBackupStorageSizeDetailsFieldBuilder() + : null; + } else { + launchFromBackupStorageSizeDetailsBuilder_.addAllMessages( + other.launchFromBackupStorageSizeDetails_); + } + } + } + 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: + { + storageManagement_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + shapeType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.oracledatabase.v1.StorageSizeDetails m = + input.readMessage( + com.google.cloud.oracledatabase.v1.StorageSizeDetails.parser(), + extensionRegistry); + if (storageSizeDetailsBuilder_ == null) { + ensureStorageSizeDetailsIsMutable(); + storageSizeDetails_.add(m); + } else { + storageSizeDetailsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.cloud.oracledatabase.v1.StorageSizeDetails m = + input.readMessage( + com.google.cloud.oracledatabase.v1.StorageSizeDetails.parser(), + extensionRegistry); + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + launchFromBackupStorageSizeDetails_.add(m); + } else { + launchFromBackupStorageSizeDetailsBuilder_.addMessage(m); + } + break; + } // case 34 + 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 storageManagement_ = 0; + + /** + * + * + *
                                              +     * Output only. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for storageManagement. + */ + @java.lang.Override + public int getStorageManagementValue() { + return storageManagement_; + } + + /** + * + * + *
                                              +     * Output only. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for storageManagement to set. + * @return This builder for chaining. + */ + public Builder setStorageManagementValue(int value) { + storageManagement_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The storageManagement. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement + getStorageManagement() { + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement + result = + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .StorageManagement.forNumber(storageManagement_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + .StorageManagement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The storageManagement to set. + * @return This builder for chaining. + */ + public Builder setStorageManagement( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + storageManagement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStorageManagement() { + bitField0_ = (bitField0_ & ~0x00000001); + storageManagement_ = 0; + onChanged(); + return this; + } + + private int shapeType_ = 0; + + /** + * + * + *
                                              +     * Output only. VM shape platform type
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType shape_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for shapeType. + */ + @java.lang.Override + public int getShapeTypeValue() { + return shapeType_; + } + + /** + * + * + *
                                              +     * Output only. VM shape platform type
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType shape_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for shapeType to set. + * @return This builder for chaining. + */ + public Builder setShapeTypeValue(int value) { + shapeType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. VM shape platform type
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType shape_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The shapeType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType + getShapeType() { + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType result = + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType + .forNumber(shapeType_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. VM shape platform type
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType shape_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The shapeType to set. + * @return This builder for chaining. + */ + public Builder setShapeType( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + shapeType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. VM shape platform type
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType shape_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearShapeType() { + bitField0_ = (bitField0_ & ~0x00000002); + shapeType_ = 0; + onChanged(); + return this; + } + + private java.util.List + storageSizeDetails_ = java.util.Collections.emptyList(); + + private void ensureStorageSizeDetailsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + storageSizeDetails_ = + new java.util.ArrayList( + storageSizeDetails_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.StorageSizeDetails, + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder, + com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder> + storageSizeDetailsBuilder_; + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStorageSizeDetailsList() { + if (storageSizeDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(storageSizeDetails_); + } else { + return storageSizeDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getStorageSizeDetailsCount() { + if (storageSizeDetailsBuilder_ == null) { + return storageSizeDetails_.size(); + } else { + return storageSizeDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetails getStorageSizeDetails(int index) { + if (storageSizeDetailsBuilder_ == null) { + return storageSizeDetails_.get(index); + } else { + return storageSizeDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStorageSizeDetails( + int index, com.google.cloud.oracledatabase.v1.StorageSizeDetails value) { + if (storageSizeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStorageSizeDetailsIsMutable(); + storageSizeDetails_.set(index, value); + onChanged(); + } else { + storageSizeDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStorageSizeDetails( + int index, com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder builderForValue) { + if (storageSizeDetailsBuilder_ == null) { + ensureStorageSizeDetailsIsMutable(); + storageSizeDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + storageSizeDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStorageSizeDetails( + com.google.cloud.oracledatabase.v1.StorageSizeDetails value) { + if (storageSizeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStorageSizeDetailsIsMutable(); + storageSizeDetails_.add(value); + onChanged(); + } else { + storageSizeDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStorageSizeDetails( + int index, com.google.cloud.oracledatabase.v1.StorageSizeDetails value) { + if (storageSizeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStorageSizeDetailsIsMutable(); + storageSizeDetails_.add(index, value); + onChanged(); + } else { + storageSizeDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStorageSizeDetails( + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder builderForValue) { + if (storageSizeDetailsBuilder_ == null) { + ensureStorageSizeDetailsIsMutable(); + storageSizeDetails_.add(builderForValue.build()); + onChanged(); + } else { + storageSizeDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStorageSizeDetails( + int index, com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder builderForValue) { + if (storageSizeDetailsBuilder_ == null) { + ensureStorageSizeDetailsIsMutable(); + storageSizeDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + storageSizeDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllStorageSizeDetails( + java.lang.Iterable + values) { + if (storageSizeDetailsBuilder_ == null) { + ensureStorageSizeDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storageSizeDetails_); + onChanged(); + } else { + storageSizeDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStorageSizeDetails() { + if (storageSizeDetailsBuilder_ == null) { + storageSizeDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + storageSizeDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeStorageSizeDetails(int index) { + if (storageSizeDetailsBuilder_ == null) { + ensureStorageSizeDetailsIsMutable(); + storageSizeDetails_.remove(index); + onChanged(); + } else { + storageSizeDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder + getStorageSizeDetailsBuilder(int index) { + return getStorageSizeDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder + getStorageSizeDetailsOrBuilder(int index) { + if (storageSizeDetailsBuilder_ == null) { + return storageSizeDetails_.get(index); + } else { + return storageSizeDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStorageSizeDetailsOrBuilderList() { + if (storageSizeDetailsBuilder_ != null) { + return storageSizeDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(storageSizeDetails_); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder + addStorageSizeDetailsBuilder() { + return getStorageSizeDetailsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.StorageSizeDetails.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder + addStorageSizeDetailsBuilder(int index) { + return getStorageSizeDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.StorageSizeDetails.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStorageSizeDetailsBuilderList() { + return getStorageSizeDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.StorageSizeDetails, + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder, + com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder> + getStorageSizeDetailsFieldBuilder() { + if (storageSizeDetailsBuilder_ == null) { + storageSizeDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.StorageSizeDetails, + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder, + com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder>( + storageSizeDetails_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + storageSizeDetails_ = null; + } + return storageSizeDetailsBuilder_; + } + + private java.util.List + launchFromBackupStorageSizeDetails_ = java.util.Collections.emptyList(); + + private void ensureLaunchFromBackupStorageSizeDetailsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + launchFromBackupStorageSizeDetails_ = + new java.util.ArrayList( + launchFromBackupStorageSizeDetails_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.StorageSizeDetails, + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder, + com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder> + launchFromBackupStorageSizeDetailsBuilder_; + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLaunchFromBackupStorageSizeDetailsList() { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(launchFromBackupStorageSizeDetails_); + } else { + return launchFromBackupStorageSizeDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getLaunchFromBackupStorageSizeDetailsCount() { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + return launchFromBackupStorageSizeDetails_.size(); + } else { + return launchFromBackupStorageSizeDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetails + getLaunchFromBackupStorageSizeDetails(int index) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + return launchFromBackupStorageSizeDetails_.get(index); + } else { + return launchFromBackupStorageSizeDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLaunchFromBackupStorageSizeDetails( + int index, com.google.cloud.oracledatabase.v1.StorageSizeDetails value) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + launchFromBackupStorageSizeDetails_.set(index, value); + onChanged(); + } else { + launchFromBackupStorageSizeDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLaunchFromBackupStorageSizeDetails( + int index, com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder builderForValue) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + launchFromBackupStorageSizeDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + launchFromBackupStorageSizeDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLaunchFromBackupStorageSizeDetails( + com.google.cloud.oracledatabase.v1.StorageSizeDetails value) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + launchFromBackupStorageSizeDetails_.add(value); + onChanged(); + } else { + launchFromBackupStorageSizeDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLaunchFromBackupStorageSizeDetails( + int index, com.google.cloud.oracledatabase.v1.StorageSizeDetails value) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + launchFromBackupStorageSizeDetails_.add(index, value); + onChanged(); + } else { + launchFromBackupStorageSizeDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLaunchFromBackupStorageSizeDetails( + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder builderForValue) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + launchFromBackupStorageSizeDetails_.add(builderForValue.build()); + onChanged(); + } else { + launchFromBackupStorageSizeDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLaunchFromBackupStorageSizeDetails( + int index, com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder builderForValue) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + launchFromBackupStorageSizeDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + launchFromBackupStorageSizeDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllLaunchFromBackupStorageSizeDetails( + java.lang.Iterable + values) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, launchFromBackupStorageSizeDetails_); + onChanged(); + } else { + launchFromBackupStorageSizeDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLaunchFromBackupStorageSizeDetails() { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + launchFromBackupStorageSizeDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + launchFromBackupStorageSizeDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeLaunchFromBackupStorageSizeDetails(int index) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + ensureLaunchFromBackupStorageSizeDetailsIsMutable(); + launchFromBackupStorageSizeDetails_.remove(index); + onChanged(); + } else { + launchFromBackupStorageSizeDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder + getLaunchFromBackupStorageSizeDetailsBuilder(int index) { + return getLaunchFromBackupStorageSizeDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder + getLaunchFromBackupStorageSizeDetailsOrBuilder(int index) { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + return launchFromBackupStorageSizeDetails_.get(index); + } else { + return launchFromBackupStorageSizeDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLaunchFromBackupStorageSizeDetailsOrBuilderList() { + if (launchFromBackupStorageSizeDetailsBuilder_ != null) { + return launchFromBackupStorageSizeDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(launchFromBackupStorageSizeDetails_); + } + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder + addLaunchFromBackupStorageSizeDetailsBuilder() { + return getLaunchFromBackupStorageSizeDetailsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.StorageSizeDetails.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder + addLaunchFromBackupStorageSizeDetailsBuilder(int index) { + return getLaunchFromBackupStorageSizeDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.StorageSizeDetails.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Output only. List of storage disk details available for launches from
                                              +     * backup.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLaunchFromBackupStorageSizeDetailsBuilderList() { + return getLaunchFromBackupStorageSizeDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.StorageSizeDetails, + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder, + com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder> + getLaunchFromBackupStorageSizeDetailsFieldBuilder() { + if (launchFromBackupStorageSizeDetailsBuilder_ == null) { + launchFromBackupStorageSizeDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.StorageSizeDetails, + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder, + com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder>( + launchFromBackupStorageSizeDetails_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + launchFromBackupStorageSizeDetails_ = null; + } + return launchFromBackupStorageSizeDetailsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties) + private static final com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties(); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbSystemInitialStorageSizeProperties 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.oracledatabase.v1.DbSystemInitialStorageSizeProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizePropertiesOrBuilder.java new file mode 100644 index 000000000000..fb83b2facec3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizePropertiesOrBuilder.java @@ -0,0 +1,228 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DbSystemInitialStorageSizePropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. The storage option used in DB system.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for storageManagement. + */ + int getStorageManagementValue(); + + /** + * + * + *
                                              +   * Output only. The storage option used in DB system.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The storageManagement. + */ + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement + getStorageManagement(); + + /** + * + * + *
                                              +   * Output only. VM shape platform type
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType shape_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for shapeType. + */ + int getShapeTypeValue(); + + /** + * + * + *
                                              +   * Output only. VM shape platform type
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType shape_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The shapeType. + */ + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType getShapeType(); + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getStorageSizeDetailsList(); + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.StorageSizeDetails getStorageSizeDetails(int index); + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getStorageSizeDetailsCount(); + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getStorageSizeDetailsOrBuilderList(); + + /** + * + * + *
                                              +   * Output only. List of storage disk details.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails storage_size_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder getStorageSizeDetailsOrBuilder( + int index); + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLaunchFromBackupStorageSizeDetailsList(); + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.StorageSizeDetails getLaunchFromBackupStorageSizeDetails( + int index); + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getLaunchFromBackupStorageSizeDetailsCount(); + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLaunchFromBackupStorageSizeDetailsOrBuilderList(); + + /** + * + * + *
                                              +   * Output only. List of storage disk details available for launches from
                                              +   * backup.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.StorageSizeDetails launch_from_backup_storage_size_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder + getLaunchFromBackupStorageSizeDetailsOrBuilder(int index); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeProto.java new file mode 100644 index 000000000000..634492609722 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeProto.java @@ -0,0 +1,168 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class DbSystemInitialStorageSizeProto { + private DbSystemInitialStorageSizeProto() {} + + 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_oracledatabase_v1_DbSystemInitialStorageSize_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSize_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_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" + + "Cgoogle/cloud/oracledatabase/v1/db_system_initial_storage_size.proto\022\036google.cl" + + "oud.oracledatabase.v1\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.proto\"\356\002\n" + + "\032DbSystemInitialStorageSize\022\021\n" + + "\004name\030\002 \001(\tB\003\340A\003\022]\n\n" + + "properties\030\003 \001(\0132D.google" + + ".cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesB\003\340A\003:\335\001\352A\331\001\n" + + "8oracledatabase.googleapis.com/DbSystemInitial" + + "StorageSize\022dprojects/{project}/locations/{location}/dbSystemInitialStorageSizes" + + "/{db_system_initial_storage_size}*\033dbSys" + + "temInitialStorageSizes2\032dbSystemInitialStorageSize\"\317\004\n" + + "$DbSystemInitialStorageSizeProperties\022w\n" + + "\022storage_management\030\001 \001(\0162V.google.cloud.oracledatabase.v1.DbSyste" + + "mInitialStorageSizeProperties.StorageManagementB\003\340A\003\022g\n\n" + + "shape_type\030\002 \001(\0162N.googl" + + "e.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeTypeB\003\340A\003\022U\n" + + "\024storage_size_details\030\003 \003(\01322.google.clo" + + "ud.oracledatabase.v1.StorageSizeDetailsB\003\340A\003\022h\n" + + "\'launch_from_backup_storage_size_details\030\004" + + " \003(\01322.google.cloud.oracledatabase.v1.StorageSizeDetailsB\003\340A\003\"I\n" + + "\021StorageManagement\022\"\n" + + "\036STORAGE_MANAGEMENT_UNSPECIFIED\020\000\022\007\n" + + "\003ASM\020\001\022\007\n" + + "\003LVM\020\002\"9\n" + + "\tShapeType\022\032\n" + + "\026SHAPE_TYPE_UNSPECIFIED\020\000\022\020\n" + + "\014STANDARD_X86\020\001\"b\n" + + "\022StorageSizeDetails\022%\n" + + "\030data_storage_size_in_gbs\030\001 \001(\005B\003\340A\003\022%\n" + + "\030reco_storage_size_in_gbs\030\002 \001(\005B\003\340A\003\"\253\001\n" + + "&ListDbSystemInitialStorageSizesRequest\022P\n" + + "\006parent\030\001 \001(" + + "\tB@\340A\002\372A:\0228oracledatabase.googleapis.com/DbSystemInitialStorageSize\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\"\247\001\n" + + "\'ListDbSystemInitialStorageSizesResponse\022c\n" + + "\037db_system_initial_storage_sizes\030\001 " + + "\003(\0132:.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize\022\027\n" + + "\017next_page_token\030\002 \001(\tB\371\001\n" + + "\"com.google.cloud.oracledatabase.v1B\037DbSystemInitialStorageSizeProto" + + "P\001ZJcloud.google.com/go/oracledatabase/a" + + "piv1/oracledatabasepb;oracledatabasepb\252\002" + + "\036Google.Cloud.OracleDatabase.V1\312\002\036Google" + + "\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::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(), + }); + internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSize_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSize_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSize_descriptor, + new java.lang.String[] { + "Name", "Properties", + }); + internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbSystemInitialStorageSizeProperties_descriptor, + new java.lang.String[] { + "StorageManagement", + "ShapeType", + "StorageSizeDetails", + "LaunchFromBackupStorageSizeDetails", + }); + internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_descriptor, + new java.lang.String[] { + "DataStorageSizeInGbs", "RecoStorageSizeInGbs", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_descriptor, + new java.lang.String[] { + "DbSystemInitialStorageSizes", "NextPageToken", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemName.java new file mode 100644 index 000000000000..df2ca4a8b468 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.oracledatabase.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 DbSystemName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DB_SYSTEM = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dbSystems/{db_system}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dbSystem; + + @Deprecated + protected DbSystemName() { + project = null; + location = null; + dbSystem = null; + } + + private DbSystemName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dbSystem = Preconditions.checkNotNull(builder.getDbSystem()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDbSystem() { + return dbSystem; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DbSystemName of(String project, String location, String dbSystem) { + return newBuilder().setProject(project).setLocation(location).setDbSystem(dbSystem).build(); + } + + public static String format(String project, String location, String dbSystem) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDbSystem(dbSystem) + .build() + .toString(); + } + + public static DbSystemName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DB_SYSTEM.validatedMatch( + formattedString, "DbSystemName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("db_system")); + } + + 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 (DbSystemName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DB_SYSTEM.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 (dbSystem != null) { + fieldMapBuilder.put("db_system", dbSystem); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DB_SYSTEM.instantiate( + "project", project, "location", location, "db_system", dbSystem); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DbSystemName that = ((DbSystemName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dbSystem, that.dbSystem); + } + 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(dbSystem); + return h; + } + + /** Builder for projects/{project}/locations/{location}/dbSystems/{db_system}. */ + public static class Builder { + private String project; + private String location; + private String dbSystem; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDbSystem() { + return dbSystem; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDbSystem(String dbSystem) { + this.dbSystem = dbSystem; + return this; + } + + private Builder(DbSystemName dbSystemName) { + this.project = dbSystemName.project; + this.location = dbSystemName.location; + this.dbSystem = dbSystemName.dbSystem; + } + + public DbSystemName build() { + return new DbSystemName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemOptions.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemOptions.java new file mode 100644 index 000000000000..76ded1793835 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemOptions.java @@ -0,0 +1,793 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Details of the DbSystem Options.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemOptions} + */ +public final class DbSystemOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbSystemOptions) + DbSystemOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DbSystemOptions.newBuilder() to construct. + private DbSystemOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbSystemOptions() { + storageManagement_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbSystemOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemOptions.class, + com.google.cloud.oracledatabase.v1.DbSystemOptions.Builder.class); + } + + /** + * + * + *
                                              +   * The storage option used in DB system.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement} + */ + public enum StorageManagement implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The storage management is unspecified.
                                              +     * 
                                              + * + * STORAGE_MANAGEMENT_UNSPECIFIED = 0; + */ + STORAGE_MANAGEMENT_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Automatic storage management.
                                              +     * 
                                              + * + * ASM = 1; + */ + ASM(1), + /** + * + * + *
                                              +     * Logical Volume management.
                                              +     * 
                                              + * + * LVM = 2; + */ + LVM(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The storage management is unspecified.
                                              +     * 
                                              + * + * STORAGE_MANAGEMENT_UNSPECIFIED = 0; + */ + public static final int STORAGE_MANAGEMENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Automatic storage management.
                                              +     * 
                                              + * + * ASM = 1; + */ + public static final int ASM_VALUE = 1; + + /** + * + * + *
                                              +     * Logical Volume management.
                                              +     * 
                                              + * + * LVM = 2; + */ + public static final int LVM_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 StorageManagement 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 StorageManagement forNumber(int value) { + switch (value) { + case 0: + return STORAGE_MANAGEMENT_UNSPECIFIED; + case 1: + return ASM; + case 2: + return LVM; + 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 StorageManagement findValueByNumber(int number) { + return StorageManagement.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemOptions.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StorageManagement[] VALUES = values(); + + public static StorageManagement 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 StorageManagement(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement) + } + + public static final int STORAGE_MANAGEMENT_FIELD_NUMBER = 1; + private int storageManagement_ = 0; + + /** + * + * + *
                                              +   * Optional. The storage option used in DB system.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for storageManagement. + */ + @java.lang.Override + public int getStorageManagementValue() { + return storageManagement_; + } + + /** + * + * + *
                                              +   * Optional. The storage option used in DB system.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The storageManagement. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement + getStorageManagement() { + com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement result = + com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement.forNumber( + storageManagement_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement.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 (storageManagement_ + != com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement + .STORAGE_MANAGEMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, storageManagement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (storageManagement_ + != com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement + .STORAGE_MANAGEMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, storageManagement_); + } + 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.oracledatabase.v1.DbSystemOptions)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbSystemOptions other = + (com.google.cloud.oracledatabase.v1.DbSystemOptions) obj; + + if (storageManagement_ != other.storageManagement_) 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) + STORAGE_MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + storageManagement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions 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.oracledatabase.v1.DbSystemOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions 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.oracledatabase.v1.DbSystemOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.DbSystemOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Details of the DbSystem Options.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbSystemOptions) + com.google.cloud.oracledatabase.v1.DbSystemOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemOptions.class, + com.google.cloud.oracledatabase.v1.DbSystemOptions.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbSystemOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + storageManagement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemOptions getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbSystemOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemOptions build() { + com.google.cloud.oracledatabase.v1.DbSystemOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemOptions buildPartial() { + com.google.cloud.oracledatabase.v1.DbSystemOptions result = + new com.google.cloud.oracledatabase.v1.DbSystemOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbSystemOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.storageManagement_ = storageManagement_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DbSystemOptions) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbSystemOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbSystemOptions other) { + if (other == com.google.cloud.oracledatabase.v1.DbSystemOptions.getDefaultInstance()) + return this; + if (other.storageManagement_ != 0) { + setStorageManagementValue(other.getStorageManagementValue()); + } + 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: + { + storageManagement_ = 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 storageManagement_ = 0; + + /** + * + * + *
                                              +     * Optional. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for storageManagement. + */ + @java.lang.Override + public int getStorageManagementValue() { + return storageManagement_; + } + + /** + * + * + *
                                              +     * Optional. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for storageManagement to set. + * @return This builder for chaining. + */ + public Builder setStorageManagementValue(int value) { + storageManagement_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The storageManagement. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement + getStorageManagement() { + com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement result = + com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement.forNumber( + storageManagement_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Optional. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The storageManagement to set. + * @return This builder for chaining. + */ + public Builder setStorageManagement( + com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + storageManagement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The storage option used in DB system.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStorageManagement() { + bitField0_ = (bitField0_ & ~0x00000001); + storageManagement_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbSystemOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbSystemOptions) + private static final com.google.cloud.oracledatabase.v1.DbSystemOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbSystemOptions(); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbSystemOptions 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.oracledatabase.v1.DbSystemOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemOptionsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemOptionsOrBuilder.java new file mode 100644 index 000000000000..5a6dcb70ffae --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemOptionsOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DbSystemOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbSystemOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. The storage option used in DB system.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for storageManagement. + */ + int getStorageManagementValue(); + + /** + * + * + *
                                              +   * Optional. The storage option used in DB system.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement storage_management = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The storageManagement. + */ + com.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement getStorageManagement(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemOrBuilder.java new file mode 100644 index 000000000000..62b1778c23f0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemOrBuilder.java @@ -0,0 +1,384 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DbSystemOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbSystem) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Identifier. The name of the DbSystem resource in the following format:
                                              +   * projects/{project}/locations/{region}/dbSystems/{db_system}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Identifier. The name of the DbSystem resource in the following format:
                                              +   * projects/{project}/locations/{region}/dbSystems/{db_system}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. The properties of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + + /** + * + * + *
                                              +   * Optional. The properties of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.DbSystemProperties getProperties(); + + /** + * + * + *
                                              +   * Optional. The properties of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DbSystemPropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where Oracle DbSystem is hosted.
                                              +   * Example: us-east4-b-r2.
                                              +   * If not specified, the system will pick a zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + java.lang.String getGcpOracleZone(); + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where Oracle DbSystem is hosted.
                                              +   * Example: us-east4-b-r2.
                                              +   * If not specified, the system will pick a zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + com.google.protobuf.ByteString getGcpOracleZoneBytes(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the DbSystem.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the DbSystem.
                                              +   * 
                                              + * + * 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. The labels or tags associated with the DbSystem.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the DbSystem.
                                              +   * 
                                              + * + * 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. The labels or tags associated with the DbSystem.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the DbSystem.
                                              +   * Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +   * It is optional but if specified, this should match the parent ODBNetwork of
                                              +   * the OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ + java.lang.String getOdbNetwork(); + + /** + * + * + *
                                              +   * Optional. The name of the OdbNetwork associated with the DbSystem.
                                              +   * Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
                                              +   * It is optional but if specified, this should match the parent ODBNetwork of
                                              +   * the OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + com.google.protobuf.ByteString getOdbNetworkBytes(); + + /** + * + * + *
                                              +   * Required. The name of the OdbSubnet associated with the DbSystem for IP
                                              +   * allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ + java.lang.String getOdbSubnet(); + + /** + * + * + *
                                              +   * Required. The name of the OdbSubnet associated with the DbSystem for IP
                                              +   * allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + com.google.protobuf.ByteString getOdbSubnetBytes(); + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * DbSystem
                                              +   * 
                                              + * + * string entitlement_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + java.lang.String getEntitlementId(); + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * DbSystem
                                              +   * 
                                              + * + * string entitlement_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + com.google.protobuf.ByteString getEntitlementIdBytes(); + + /** + * + * + *
                                              +   * Required. The display name for the System db. The name does not have to
                                              +   * be unique within your project.
                                              +   * 
                                              + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                              +   * Required. The display name for the System db. The name does not have to
                                              +   * be unique within your project.
                                              +   * 
                                              + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                              +   * Output only. The date and time that the DbSystem was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the DbSystem was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the DbSystem was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + java.lang.String getOciUrl(); + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + com.google.protobuf.ByteString getOciUrlBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemProperties.java new file mode 100644 index 000000000000..24d5ff0d60f4 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemProperties.java @@ -0,0 +1,5262 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The properties of a DbSystem.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemProperties} + */ +public final class DbSystemProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbSystemProperties) + DbSystemPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DbSystemProperties.newBuilder() to construct. + private DbSystemProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbSystemProperties() { + shape_ = ""; + databaseEdition_ = 0; + licenseModel_ = 0; + sshPublicKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + hostnamePrefix_ = ""; + hostname_ = ""; + privateIp_ = ""; + lifecycleState_ = 0; + ocid_ = ""; + computeModel_ = 0; + domain_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbSystemProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemProperties.class, + com.google.cloud.oracledatabase.v1.DbSystemProperties.Builder.class); + } + + /** + * + * + *
                                              +   * The editions available for DbSystem.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition} + */ + public enum DbSystemDatabaseEdition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The database edition is unspecified.
                                              +     * 
                                              + * + * DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED = 0; + */ + DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED(0), + /** + * + * + *
                                              +     * The database edition is Standard.
                                              +     * 
                                              + * + * STANDARD_EDITION = 1; + */ + STANDARD_EDITION(1), + /** + * + * + *
                                              +     * The database edition is Enterprise.
                                              +     * 
                                              + * + * ENTERPRISE_EDITION = 2; + */ + ENTERPRISE_EDITION(2), + /** + * + * + *
                                              +     * The database edition is Enterprise Edition.
                                              +     * 
                                              + * + * ENTERPRISE_EDITION_HIGH_PERFORMANCE = 3; + */ + ENTERPRISE_EDITION_HIGH_PERFORMANCE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The database edition is unspecified.
                                              +     * 
                                              + * + * DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED = 0; + */ + public static final int DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * The database edition is Standard.
                                              +     * 
                                              + * + * STANDARD_EDITION = 1; + */ + public static final int STANDARD_EDITION_VALUE = 1; + + /** + * + * + *
                                              +     * The database edition is Enterprise.
                                              +     * 
                                              + * + * ENTERPRISE_EDITION = 2; + */ + public static final int ENTERPRISE_EDITION_VALUE = 2; + + /** + * + * + *
                                              +     * The database edition is Enterprise Edition.
                                              +     * 
                                              + * + * ENTERPRISE_EDITION_HIGH_PERFORMANCE = 3; + */ + public static final int ENTERPRISE_EDITION_HIGH_PERFORMANCE_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 DbSystemDatabaseEdition 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 DbSystemDatabaseEdition forNumber(int value) { + switch (value) { + case 0: + return DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED; + case 1: + return STANDARD_EDITION; + case 2: + return ENTERPRISE_EDITION; + case 3: + return ENTERPRISE_EDITION_HIGH_PERFORMANCE; + 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 DbSystemDatabaseEdition findValueByNumber(int number) { + return DbSystemDatabaseEdition.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DbSystemDatabaseEdition[] VALUES = values(); + + public static DbSystemDatabaseEdition 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 DbSystemDatabaseEdition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition) + } + + /** + * + * + *
                                              +   * The license model of the DbSystem.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel} + */ + public enum LicenseModel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The license model is unspecified.
                                              +     * 
                                              + * + * LICENSE_MODEL_UNSPECIFIED = 0; + */ + LICENSE_MODEL_UNSPECIFIED(0), + /** + * + * + *
                                              +     * The license model is included.
                                              +     * 
                                              + * + * LICENSE_INCLUDED = 1; + */ + LICENSE_INCLUDED(1), + /** + * + * + *
                                              +     * The license model is bring your own license.
                                              +     * 
                                              + * + * BRING_YOUR_OWN_LICENSE = 2; + */ + BRING_YOUR_OWN_LICENSE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The license model is unspecified.
                                              +     * 
                                              + * + * LICENSE_MODEL_UNSPECIFIED = 0; + */ + public static final int LICENSE_MODEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * The license model is included.
                                              +     * 
                                              + * + * LICENSE_INCLUDED = 1; + */ + public static final int LICENSE_INCLUDED_VALUE = 1; + + /** + * + * + *
                                              +     * The license model is bring your own license.
                                              +     * 
                                              + * + * BRING_YOUR_OWN_LICENSE = 2; + */ + public static final int BRING_YOUR_OWN_LICENSE_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 LicenseModel 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 LicenseModel forNumber(int value) { + switch (value) { + case 0: + return LICENSE_MODEL_UNSPECIFIED; + case 1: + return LICENSE_INCLUDED; + case 2: + return BRING_YOUR_OWN_LICENSE; + 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 LicenseModel findValueByNumber(int number) { + return LicenseModel.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProperties.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final LicenseModel[] VALUES = values(); + + public static LicenseModel 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 LicenseModel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel) + } + + /** + * + * + *
                                              +   * The various lifecycle states of the DbSystem.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState} + */ + public enum DbSystemLifecycleState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
                                              +     * Indicates that the resource is in updating state.
                                              +     * 
                                              + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 4; + */ + TERMINATING(4), + /** + * + * + *
                                              +     * Indicates that the resource is in terminated state.
                                              +     * 
                                              + * + * TERMINATED = 5; + */ + TERMINATED(5), + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 6; + */ + FAILED(6), + /** + * + * + *
                                              +     * Indicates that the resource has been migrated.
                                              +     * 
                                              + * + * MIGRATED = 7; + */ + MIGRATED(7), + /** + * + * + *
                                              +     * Indicates that the resource is in maintenance in progress state.
                                              +     * 
                                              + * + * MAINTENANCE_IN_PROGRESS = 8; + */ + MAINTENANCE_IN_PROGRESS(8), + /** + * + * + *
                                              +     * Indicates that the resource needs attention.
                                              +     * 
                                              + * + * NEEDS_ATTENTION = 9; + */ + NEEDS_ATTENTION(9), + /** + * + * + *
                                              +     * Indicates that the resource is upgrading.
                                              +     * 
                                              + * + * UPGRADING = 10; + */ + UPGRADING(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + public static final int DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + + /** + * + * + *
                                              +     * Indicates that the resource is in updating state.
                                              +     * 
                                              + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 4; + */ + public static final int TERMINATING_VALUE = 4; + + /** + * + * + *
                                              +     * Indicates that the resource is in terminated state.
                                              +     * 
                                              + * + * TERMINATED = 5; + */ + public static final int TERMINATED_VALUE = 5; + + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + + /** + * + * + *
                                              +     * Indicates that the resource has been migrated.
                                              +     * 
                                              + * + * MIGRATED = 7; + */ + public static final int MIGRATED_VALUE = 7; + + /** + * + * + *
                                              +     * Indicates that the resource is in maintenance in progress state.
                                              +     * 
                                              + * + * MAINTENANCE_IN_PROGRESS = 8; + */ + public static final int MAINTENANCE_IN_PROGRESS_VALUE = 8; + + /** + * + * + *
                                              +     * Indicates that the resource needs attention.
                                              +     * 
                                              + * + * NEEDS_ATTENTION = 9; + */ + public static final int NEEDS_ATTENTION_VALUE = 9; + + /** + * + * + *
                                              +     * Indicates that the resource is upgrading.
                                              +     * 
                                              + * + * UPGRADING = 10; + */ + public static final int UPGRADING_VALUE = 10; + + 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 DbSystemLifecycleState 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 DbSystemLifecycleState forNumber(int value) { + switch (value) { + case 0: + return DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return UPDATING; + case 4: + return TERMINATING; + case 5: + return TERMINATED; + case 6: + return FAILED; + case 7: + return MIGRATED; + case 8: + return MAINTENANCE_IN_PROGRESS; + case 9: + return NEEDS_ATTENTION; + case 10: + return UPGRADING; + 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 DbSystemLifecycleState findValueByNumber(int number) { + return DbSystemLifecycleState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProperties.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final DbSystemLifecycleState[] VALUES = values(); + + public static DbSystemLifecycleState 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 DbSystemLifecycleState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState) + } + + /** + * + * + *
                                              +   * The compute model of the DbSystem.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel} + */ + public enum ComputeModel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The compute model is unspecified.
                                              +     * 
                                              + * + * COMPUTE_MODEL_UNSPECIFIED = 0; + */ + COMPUTE_MODEL_UNSPECIFIED(0), + /** + * + * + *
                                              +     * The compute model is virtual.
                                              +     * 
                                              + * + * ECPU = 1; + */ + ECPU(1), + /** + * + * + *
                                              +     * The compute model is physical.
                                              +     * 
                                              + * + * OCPU = 2; + */ + OCPU(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The compute model is unspecified.
                                              +     * 
                                              + * + * COMPUTE_MODEL_UNSPECIFIED = 0; + */ + public static final int COMPUTE_MODEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * The compute model is virtual.
                                              +     * 
                                              + * + * ECPU = 1; + */ + public static final int ECPU_VALUE = 1; + + /** + * + * + *
                                              +     * The compute model is physical.
                                              +     * 
                                              + * + * OCPU = 2; + */ + public static final int OCPU_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 ComputeModel 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 ComputeModel forNumber(int value) { + switch (value) { + case 0: + return COMPUTE_MODEL_UNSPECIFIED; + case 1: + return ECPU; + case 2: + return OCPU; + 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 ComputeModel findValueByNumber(int number) { + return ComputeModel.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProperties.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final ComputeModel[] VALUES = values(); + + public static ComputeModel 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 ComputeModel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel) + } + + private int bitField0_; + public static final int SHAPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object shape_ = ""; + + /** + * + * + *
                                              +   * Required. Shape of DB System.
                                              +   * 
                                              + * + * string shape = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The shape. + */ + @java.lang.Override + public java.lang.String getShape() { + java.lang.Object ref = shape_; + 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(); + shape_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. Shape of DB System.
                                              +   * 
                                              + * + * string shape = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for shape. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShapeBytes() { + java.lang.Object ref = shape_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shape_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPUTE_COUNT_FIELD_NUMBER = 2; + private int computeCount_ = 0; + + /** + * + * + *
                                              +   * Required. The number of CPU cores to enable for the DbSystem.
                                              +   * 
                                              + * + * int32 compute_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The computeCount. + */ + @java.lang.Override + public int getComputeCount() { + return computeCount_; + } + + public static final int INITIAL_DATA_STORAGE_SIZE_GB_FIELD_NUMBER = 3; + private int initialDataStorageSizeGb_ = 0; + + /** + * + * + *
                                              +   * Required. The initial data storage size in GB.
                                              +   * 
                                              + * + * int32 initial_data_storage_size_gb = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The initialDataStorageSizeGb. + */ + @java.lang.Override + public int getInitialDataStorageSizeGb() { + return initialDataStorageSizeGb_; + } + + public static final int DATABASE_EDITION_FIELD_NUMBER = 4; + private int databaseEdition_ = 0; + + /** + * + * + *
                                              +   * Required. The database edition of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition database_edition = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for databaseEdition. + */ + @java.lang.Override + public int getDatabaseEditionValue() { + return databaseEdition_; + } + + /** + * + * + *
                                              +   * Required. The database edition of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition database_edition = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseEdition. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition + getDatabaseEdition() { + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition result = + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition.forNumber( + databaseEdition_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition.UNRECOGNIZED + : result; + } + + public static final int LICENSE_MODEL_FIELD_NUMBER = 5; + private int licenseModel_ = 0; + + /** + * + * + *
                                              +   * Required. The license model of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel license_model = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseModel. + */ + @java.lang.Override + public int getLicenseModelValue() { + return licenseModel_; + } + + /** + * + * + *
                                              +   * Required. The license model of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel license_model = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel getLicenseModel() { + com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel result = + com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel.forNumber(licenseModel_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel.UNRECOGNIZED + : result; + } + + public static final int SSH_PUBLIC_KEYS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Required. SSH public keys to be stored with the DbSystem.
                                              +   * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList getSshPublicKeysList() { + return sshPublicKeys_; + } + + /** + * + * + *
                                              +   * Required. SSH public keys to be stored with the DbSystem.
                                              +   * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + + /** + * + * + *
                                              +   * Required. SSH public keys to be stored with the DbSystem.
                                              +   * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + + /** + * + * + *
                                              +   * Required. SSH public keys to be stored with the DbSystem.
                                              +   * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + + public static final int HOSTNAME_PREFIX_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostnamePrefix_ = ""; + + /** + * + * + *
                                              +   * Optional. Prefix for DB System host names.
                                              +   * 
                                              + * + * string hostname_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostnamePrefix. + */ + @java.lang.Override + public java.lang.String getHostnamePrefix() { + java.lang.Object ref = hostnamePrefix_; + 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(); + hostnamePrefix_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. Prefix for DB System host names.
                                              +   * 
                                              + * + * string hostname_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostnamePrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnamePrefixBytes() { + java.lang.Object ref = hostnamePrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostnamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOSTNAME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + + /** + * + * + *
                                              +   * Output only. The hostname of the DbSystem.
                                              +   * 
                                              + * + * string hostname = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The hostname of the DbSystem.
                                              +   * 
                                              + * + * string hostname = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_IP_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateIp_ = ""; + + /** + * + * + *
                                              +   * Optional. The private IP address of the DbSystem.
                                              +   * 
                                              + * + * string private_ip = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The privateIp. + */ + @java.lang.Override + public java.lang.String getPrivateIp() { + java.lang.Object ref = privateIp_; + 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(); + privateIp_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The private IP address of the DbSystem.
                                              +   * 
                                              + * + * string private_ip = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for privateIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateIpBytes() { + java.lang.Object ref = privateIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_COLLECTION_OPTIONS_FIELD_NUMBER = 10; + private com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem dataCollectionOptions_; + + /** + * + * + *
                                              +   * Optional. Data collection options for diagnostics.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataCollectionOptions field is set. + */ + @java.lang.Override + public boolean hasDataCollectionOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Optional. Data collection options for diagnostics.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataCollectionOptions. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem + getDataCollectionOptions() { + return dataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.getDefaultInstance() + : dataCollectionOptions_; + } + + /** + * + * + *
                                              +   * Optional. Data collection options for diagnostics.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemOrBuilder + getDataCollectionOptionsOrBuilder() { + return dataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.getDefaultInstance() + : dataCollectionOptions_; + } + + public static final int TIME_ZONE_FIELD_NUMBER = 11; + private com.google.type.TimeZone timeZone_; + + /** + * + * + *
                                              +   * Optional. Time zone of the DbSystem.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeZone field is set. + */ + @java.lang.Override + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Optional. Time zone of the DbSystem.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + @java.lang.Override + public com.google.type.TimeZone getTimeZone() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + /** + * + * + *
                                              +   * Optional. Time zone of the DbSystem.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + public static final int LIFECYCLE_STATE_FIELD_NUMBER = 12; + private int lifecycleState_ = 0; + + /** + * + * + *
                                              +   * Output only. State of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + + /** + * + * + *
                                              +   * Output only. State of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState + getLifecycleState() { + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState result = + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState.forNumber( + lifecycleState_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState.UNRECOGNIZED + : result; + } + + public static final int DB_HOME_FIELD_NUMBER = 13; + private com.google.cloud.oracledatabase.v1.DbHome dbHome_; + + /** + * + * + *
                                              +   * Optional. Details for creating a Database Home.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dbHome field is set. + */ + @java.lang.Override + public boolean hasDbHome() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +   * Optional. Details for creating a Database Home.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbHome. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbHome getDbHome() { + return dbHome_ == null + ? com.google.cloud.oracledatabase.v1.DbHome.getDefaultInstance() + : dbHome_; + } + + /** + * + * + *
                                              +   * Optional. Details for creating a Database Home.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbHomeOrBuilder getDbHomeOrBuilder() { + return dbHome_ == null + ? com.google.cloud.oracledatabase.v1.DbHome.getDefaultInstance() + : dbHome_; + } + + public static final int OCID_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object ocid_ = ""; + + /** + * + * + *
                                              +   * Output only. OCID of the DbSystem.
                                              +   * 
                                              + * + * string ocid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + @java.lang.Override + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + 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(); + ocid_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. OCID of the DbSystem.
                                              +   * 
                                              + * + * string ocid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 15; + private int memorySizeGb_ = 0; + + /** + * + * + *
                                              +   * Optional. The memory size in GB.
                                              +   * 
                                              + * + * int32 memory_size_gb = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + + public static final int COMPUTE_MODEL_FIELD_NUMBER = 16; + private int computeModel_ = 0; + + /** + * + * + *
                                              +   * Optional. The compute model of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel compute_model = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for computeModel. + */ + @java.lang.Override + public int getComputeModelValue() { + return computeModel_; + } + + /** + * + * + *
                                              +   * Optional. The compute model of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel compute_model = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computeModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel getComputeModel() { + com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel result = + com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel.forNumber(computeModel_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel.UNRECOGNIZED + : result; + } + + public static final int DATA_STORAGE_SIZE_GB_FIELD_NUMBER = 17; + private int dataStorageSizeGb_ = 0; + + /** + * + * + *
                                              +   * Optional. The data storage size in GB that is currently available to
                                              +   * DbSystems.
                                              +   * 
                                              + * + * int32 data_storage_size_gb = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeGb. + */ + @java.lang.Override + public int getDataStorageSizeGb() { + return dataStorageSizeGb_; + } + + public static final int RECO_STORAGE_SIZE_GB_FIELD_NUMBER = 18; + private int recoStorageSizeGb_ = 0; + + /** + * + * + *
                                              +   * Optional. The reco/redo storage size in GB.
                                              +   * 
                                              + * + * int32 reco_storage_size_gb = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The recoStorageSizeGb. + */ + @java.lang.Override + public int getRecoStorageSizeGb() { + return recoStorageSizeGb_; + } + + public static final int DOMAIN_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + + /** + * + * + *
                                              +   * Optional. The host domain name of the DbSystem.
                                              +   * 
                                              + * + * string domain = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The host domain name of the DbSystem.
                                              +   * 
                                              + * + * string domain = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_COUNT_FIELD_NUMBER = 20; + private int nodeCount_ = 0; + + /** + * + * + *
                                              +   * Optional. The number of nodes in the DbSystem.
                                              +   * 
                                              + * + * int32 node_count = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + public static final int DB_SYSTEM_OPTIONS_FIELD_NUMBER = 21; + private com.google.cloud.oracledatabase.v1.DbSystemOptions dbSystemOptions_; + + /** + * + * + *
                                              +   * Optional. The options for the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dbSystemOptions field is set. + */ + @java.lang.Override + public boolean hasDbSystemOptions() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +   * Optional. The options for the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbSystemOptions. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemOptions getDbSystemOptions() { + return dbSystemOptions_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemOptions.getDefaultInstance() + : dbSystemOptions_; + } + + /** + * + * + *
                                              +   * Optional. The options for the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemOptionsOrBuilder getDbSystemOptionsOrBuilder() { + return dbSystemOptions_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemOptions.getDefaultInstance() + : dbSystemOptions_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shape_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shape_); + } + if (computeCount_ != 0) { + output.writeInt32(2, computeCount_); + } + if (initialDataStorageSizeGb_ != 0) { + output.writeInt32(3, initialDataStorageSizeGb_); + } + if (databaseEdition_ + != com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition + .DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, databaseEdition_); + } + if (licenseModel_ + != com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel + .LICENSE_MODEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, licenseModel_); + } + for (int i = 0; i < sshPublicKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sshPublicKeys_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostnamePrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, hostnamePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, hostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, privateIp_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10, getDataCollectionOptions()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(11, getTimeZone()); + } + if (lifecycleState_ + != com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState + .DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, lifecycleState_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getDbHome()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, ocid_); + } + if (memorySizeGb_ != 0) { + output.writeInt32(15, memorySizeGb_); + } + if (computeModel_ + != com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel + .COMPUTE_MODEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, computeModel_); + } + if (dataStorageSizeGb_ != 0) { + output.writeInt32(17, dataStorageSizeGb_); + } + if (recoStorageSizeGb_ != 0) { + output.writeInt32(18, recoStorageSizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, domain_); + } + if (nodeCount_ != 0) { + output.writeInt32(20, nodeCount_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(21, getDbSystemOptions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shape_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, shape_); + } + if (computeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, computeCount_); + } + if (initialDataStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialDataStorageSizeGb_); + } + if (databaseEdition_ + != com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition + .DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, databaseEdition_); + } + if (licenseModel_ + != com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel + .LICENSE_MODEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, licenseModel_); + } + { + int dataSize = 0; + for (int i = 0; i < sshPublicKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(sshPublicKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getSshPublicKeysList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostnamePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, hostnamePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, hostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, privateIp_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDataCollectionOptions()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getTimeZone()); + } + if (lifecycleState_ + != com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState + .DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, lifecycleState_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDbHome()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ocid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, ocid_); + } + if (memorySizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, memorySizeGb_); + } + if (computeModel_ + != com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel + .COMPUTE_MODEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, computeModel_); + } + if (dataStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, dataStorageSizeGb_); + } + if (recoStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(18, recoStorageSizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, domain_); + } + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(20, nodeCount_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getDbSystemOptions()); + } + 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.oracledatabase.v1.DbSystemProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbSystemProperties other = + (com.google.cloud.oracledatabase.v1.DbSystemProperties) obj; + + if (!getShape().equals(other.getShape())) return false; + if (getComputeCount() != other.getComputeCount()) return false; + if (getInitialDataStorageSizeGb() != other.getInitialDataStorageSizeGb()) return false; + if (databaseEdition_ != other.databaseEdition_) return false; + if (licenseModel_ != other.licenseModel_) return false; + if (!getSshPublicKeysList().equals(other.getSshPublicKeysList())) return false; + if (!getHostnamePrefix().equals(other.getHostnamePrefix())) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (!getPrivateIp().equals(other.getPrivateIp())) return false; + if (hasDataCollectionOptions() != other.hasDataCollectionOptions()) return false; + if (hasDataCollectionOptions()) { + if (!getDataCollectionOptions().equals(other.getDataCollectionOptions())) return false; + } + if (hasTimeZone() != other.hasTimeZone()) return false; + if (hasTimeZone()) { + if (!getTimeZone().equals(other.getTimeZone())) return false; + } + if (lifecycleState_ != other.lifecycleState_) return false; + if (hasDbHome() != other.hasDbHome()) return false; + if (hasDbHome()) { + if (!getDbHome().equals(other.getDbHome())) return false; + } + if (!getOcid().equals(other.getOcid())) return false; + if (getMemorySizeGb() != other.getMemorySizeGb()) return false; + if (computeModel_ != other.computeModel_) return false; + if (getDataStorageSizeGb() != other.getDataStorageSizeGb()) return false; + if (getRecoStorageSizeGb() != other.getRecoStorageSizeGb()) return false; + if (!getDomain().equals(other.getDomain())) return false; + if (getNodeCount() != other.getNodeCount()) return false; + if (hasDbSystemOptions() != other.hasDbSystemOptions()) return false; + if (hasDbSystemOptions()) { + if (!getDbSystemOptions().equals(other.getDbSystemOptions())) 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) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + hash = (37 * hash) + COMPUTE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getComputeCount(); + hash = (37 * hash) + INITIAL_DATA_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getInitialDataStorageSizeGb(); + hash = (37 * hash) + DATABASE_EDITION_FIELD_NUMBER; + hash = (53 * hash) + databaseEdition_; + hash = (37 * hash) + LICENSE_MODEL_FIELD_NUMBER; + hash = (53 * hash) + licenseModel_; + if (getSshPublicKeysCount() > 0) { + hash = (37 * hash) + SSH_PUBLIC_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getSshPublicKeysList().hashCode(); + } + hash = (37 * hash) + HOSTNAME_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getHostnamePrefix().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + PRIVATE_IP_FIELD_NUMBER; + hash = (53 * hash) + getPrivateIp().hashCode(); + if (hasDataCollectionOptions()) { + hash = (37 * hash) + DATA_COLLECTION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDataCollectionOptions().hashCode(); + } + if (hasTimeZone()) { + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + } + hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; + hash = (53 * hash) + lifecycleState_; + if (hasDbHome()) { + hash = (37 * hash) + DB_HOME_FIELD_NUMBER; + hash = (53 * hash) + getDbHome().hashCode(); + } + hash = (37 * hash) + OCID_FIELD_NUMBER; + hash = (53 * hash) + getOcid().hashCode(); + hash = (37 * hash) + MEMORY_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMemorySizeGb(); + hash = (37 * hash) + COMPUTE_MODEL_FIELD_NUMBER; + hash = (53 * hash) + computeModel_; + hash = (37 * hash) + DATA_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDataStorageSizeGb(); + hash = (37 * hash) + RECO_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getRecoStorageSizeGb(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNodeCount(); + if (hasDbSystemOptions()) { + hash = (37 * hash) + DB_SYSTEM_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDbSystemOptions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties 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.oracledatabase.v1.DbSystemProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties 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.oracledatabase.v1.DbSystemProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DbSystemProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The properties of a DbSystem.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbSystemProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbSystemProperties) + com.google.cloud.oracledatabase.v1.DbSystemPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbSystemProperties.class, + com.google.cloud.oracledatabase.v1.DbSystemProperties.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbSystemProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDataCollectionOptionsFieldBuilder(); + getTimeZoneFieldBuilder(); + getDbHomeFieldBuilder(); + getDbSystemOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + shape_ = ""; + computeCount_ = 0; + initialDataStorageSizeGb_ = 0; + databaseEdition_ = 0; + licenseModel_ = 0; + sshPublicKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + hostnamePrefix_ = ""; + hostname_ = ""; + privateIp_ = ""; + dataCollectionOptions_ = null; + if (dataCollectionOptionsBuilder_ != null) { + dataCollectionOptionsBuilder_.dispose(); + dataCollectionOptionsBuilder_ = null; + } + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + lifecycleState_ = 0; + dbHome_ = null; + if (dbHomeBuilder_ != null) { + dbHomeBuilder_.dispose(); + dbHomeBuilder_ = null; + } + ocid_ = ""; + memorySizeGb_ = 0; + computeModel_ = 0; + dataStorageSizeGb_ = 0; + recoStorageSizeGb_ = 0; + domain_ = ""; + nodeCount_ = 0; + dbSystemOptions_ = null; + if (dbSystemOptionsBuilder_ != null) { + dbSystemOptionsBuilder_.dispose(); + dbSystemOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties build() { + com.google.cloud.oracledatabase.v1.DbSystemProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties buildPartial() { + com.google.cloud.oracledatabase.v1.DbSystemProperties result = + new com.google.cloud.oracledatabase.v1.DbSystemProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbSystemProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.shape_ = shape_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.computeCount_ = computeCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.initialDataStorageSizeGb_ = initialDataStorageSizeGb_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.databaseEdition_ = databaseEdition_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.licenseModel_ = licenseModel_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + sshPublicKeys_.makeImmutable(); + result.sshPublicKeys_ = sshPublicKeys_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.hostnamePrefix_ = hostnamePrefix_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.privateIp_ = privateIp_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.dataCollectionOptions_ = + dataCollectionOptionsBuilder_ == null + ? dataCollectionOptions_ + : dataCollectionOptionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.lifecycleState_ = lifecycleState_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.dbHome_ = dbHomeBuilder_ == null ? dbHome_ : dbHomeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.ocid_ = ocid_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.memorySizeGb_ = memorySizeGb_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.computeModel_ = computeModel_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.dataStorageSizeGb_ = dataStorageSizeGb_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.recoStorageSizeGb_ = recoStorageSizeGb_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.domain_ = domain_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.nodeCount_ = nodeCount_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.dbSystemOptions_ = + dbSystemOptionsBuilder_ == null ? dbSystemOptions_ : dbSystemOptionsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DbSystemProperties) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbSystemProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbSystemProperties other) { + if (other == com.google.cloud.oracledatabase.v1.DbSystemProperties.getDefaultInstance()) + return this; + if (!other.getShape().isEmpty()) { + shape_ = other.shape_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getComputeCount() != 0) { + setComputeCount(other.getComputeCount()); + } + if (other.getInitialDataStorageSizeGb() != 0) { + setInitialDataStorageSizeGb(other.getInitialDataStorageSizeGb()); + } + if (other.databaseEdition_ != 0) { + setDatabaseEditionValue(other.getDatabaseEditionValue()); + } + if (other.licenseModel_ != 0) { + setLicenseModelValue(other.getLicenseModelValue()); + } + if (!other.sshPublicKeys_.isEmpty()) { + if (sshPublicKeys_.isEmpty()) { + sshPublicKeys_ = other.sshPublicKeys_; + bitField0_ |= 0x00000020; + } else { + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.addAll(other.sshPublicKeys_); + } + onChanged(); + } + if (!other.getHostnamePrefix().isEmpty()) { + hostnamePrefix_ = other.hostnamePrefix_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getPrivateIp().isEmpty()) { + privateIp_ = other.privateIp_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasDataCollectionOptions()) { + mergeDataCollectionOptions(other.getDataCollectionOptions()); + } + if (other.hasTimeZone()) { + mergeTimeZone(other.getTimeZone()); + } + if (other.lifecycleState_ != 0) { + setLifecycleStateValue(other.getLifecycleStateValue()); + } + if (other.hasDbHome()) { + mergeDbHome(other.getDbHome()); + } + if (!other.getOcid().isEmpty()) { + ocid_ = other.ocid_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.getMemorySizeGb() != 0) { + setMemorySizeGb(other.getMemorySizeGb()); + } + if (other.computeModel_ != 0) { + setComputeModelValue(other.getComputeModelValue()); + } + if (other.getDataStorageSizeGb() != 0) { + setDataStorageSizeGb(other.getDataStorageSizeGb()); + } + if (other.getRecoStorageSizeGb() != 0) { + setRecoStorageSizeGb(other.getRecoStorageSizeGb()); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (other.hasDbSystemOptions()) { + mergeDbSystemOptions(other.getDbSystemOptions()); + } + 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: + { + shape_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + computeCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + initialDataStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + databaseEdition_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + licenseModel_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(s); + break; + } // case 50 + case 58: + { + hostnamePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + privateIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage( + getDataCollectionOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage(getTimeZoneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: + { + lifecycleState_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: + { + input.readMessage(getDbHomeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: + { + ocid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 120: + { + memorySizeGb_ = input.readInt32(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: + { + computeModel_ = input.readEnum(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: + { + dataStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 144: + { + recoStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 154: + { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 160: + { + nodeCount_ = input.readInt32(); + bitField0_ |= 0x00080000; + break; + } // case 160 + case 170: + { + input.readMessage(getDbSystemOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 170 + 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 shape_ = ""; + + /** + * + * + *
                                              +     * Required. Shape of DB System.
                                              +     * 
                                              + * + * string shape = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The shape. + */ + public java.lang.String getShape() { + java.lang.Object ref = shape_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shape_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. Shape of DB System.
                                              +     * 
                                              + * + * string shape = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for shape. + */ + public com.google.protobuf.ByteString getShapeBytes() { + java.lang.Object ref = shape_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shape_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. Shape of DB System.
                                              +     * 
                                              + * + * string shape = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The shape to set. + * @return This builder for chaining. + */ + public Builder setShape(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Shape of DB System.
                                              +     * 
                                              + * + * string shape = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearShape() { + shape_ = getDefaultInstance().getShape(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Shape of DB System.
                                              +     * 
                                              + * + * string shape = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for shape to set. + * @return This builder for chaining. + */ + public Builder setShapeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shape_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int computeCount_; + + /** + * + * + *
                                              +     * Required. The number of CPU cores to enable for the DbSystem.
                                              +     * 
                                              + * + * int32 compute_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The computeCount. + */ + @java.lang.Override + public int getComputeCount() { + return computeCount_; + } + + /** + * + * + *
                                              +     * Required. The number of CPU cores to enable for the DbSystem.
                                              +     * 
                                              + * + * int32 compute_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The computeCount to set. + * @return This builder for chaining. + */ + public Builder setComputeCount(int value) { + + computeCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The number of CPU cores to enable for the DbSystem.
                                              +     * 
                                              + * + * int32 compute_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearComputeCount() { + bitField0_ = (bitField0_ & ~0x00000002); + computeCount_ = 0; + onChanged(); + return this; + } + + private int initialDataStorageSizeGb_; + + /** + * + * + *
                                              +     * Required. The initial data storage size in GB.
                                              +     * 
                                              + * + * int32 initial_data_storage_size_gb = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The initialDataStorageSizeGb. + */ + @java.lang.Override + public int getInitialDataStorageSizeGb() { + return initialDataStorageSizeGb_; + } + + /** + * + * + *
                                              +     * Required. The initial data storage size in GB.
                                              +     * 
                                              + * + * int32 initial_data_storage_size_gb = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The initialDataStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setInitialDataStorageSizeGb(int value) { + + initialDataStorageSizeGb_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The initial data storage size in GB.
                                              +     * 
                                              + * + * int32 initial_data_storage_size_gb = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInitialDataStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000004); + initialDataStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private int databaseEdition_ = 0; + + /** + * + * + *
                                              +     * Required. The database edition of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition database_edition = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for databaseEdition. + */ + @java.lang.Override + public int getDatabaseEditionValue() { + return databaseEdition_; + } + + /** + * + * + *
                                              +     * Required. The database edition of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition database_edition = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for databaseEdition to set. + * @return This builder for chaining. + */ + public Builder setDatabaseEditionValue(int value) { + databaseEdition_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The database edition of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition database_edition = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseEdition. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition + getDatabaseEdition() { + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition result = + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition.forNumber( + databaseEdition_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Required. The database edition of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition database_edition = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The databaseEdition to set. + * @return This builder for chaining. + */ + public Builder setDatabaseEdition( + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + databaseEdition_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The database edition of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition database_edition = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDatabaseEdition() { + bitField0_ = (bitField0_ & ~0x00000008); + databaseEdition_ = 0; + onChanged(); + return this; + } + + private int licenseModel_ = 0; + + /** + * + * + *
                                              +     * Required. The license model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel license_model = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseModel. + */ + @java.lang.Override + public int getLicenseModelValue() { + return licenseModel_; + } + + /** + * + * + *
                                              +     * Required. The license model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel license_model = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for licenseModel to set. + * @return This builder for chaining. + */ + public Builder setLicenseModelValue(int value) { + licenseModel_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The license model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel license_model = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel getLicenseModel() { + com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel result = + com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel.forNumber( + licenseModel_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Required. The license model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel license_model = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The licenseModel to set. + * @return This builder for chaining. + */ + public Builder setLicenseModel( + com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + licenseModel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The license model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel license_model = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseModel() { + bitField0_ = (bitField0_ & ~0x00000010); + licenseModel_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSshPublicKeysIsMutable() { + if (!sshPublicKeys_.isModifiable()) { + sshPublicKeys_ = new com.google.protobuf.LazyStringArrayList(sshPublicKeys_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                                              +     * Required. SSH public keys to be stored with the DbSystem.
                                              +     * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList getSshPublicKeysList() { + sshPublicKeys_.makeImmutable(); + return sshPublicKeys_; + } + + /** + * + * + *
                                              +     * Required. SSH public keys to be stored with the DbSystem.
                                              +     * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + + /** + * + * + *
                                              +     * Required. SSH public keys to be stored with the DbSystem.
                                              +     * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + + /** + * + * + *
                                              +     * Required. SSH public keys to be stored with the DbSystem.
                                              +     * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + + /** + * + * + *
                                              +     * Required. SSH public keys to be stored with the DbSystem.
                                              +     * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The sshPublicKeys to set. + * @return This builder for chaining. + */ + public Builder setSshPublicKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. SSH public keys to be stored with the DbSystem.
                                              +     * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. SSH public keys to be stored with the DbSystem.
                                              +     * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addAllSshPublicKeys(java.lang.Iterable values) { + ensureSshPublicKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sshPublicKeys_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. SSH public keys to be stored with the DbSystem.
                                              +     * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSshPublicKeys() { + sshPublicKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. SSH public keys to be stored with the DbSystem.
                                              +     * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object hostnamePrefix_ = ""; + + /** + * + * + *
                                              +     * Optional. Prefix for DB System host names.
                                              +     * 
                                              + * + * string hostname_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostnamePrefix. + */ + public java.lang.String getHostnamePrefix() { + java.lang.Object ref = hostnamePrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostnamePrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Prefix for DB System host names.
                                              +     * 
                                              + * + * string hostname_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostnamePrefix. + */ + public com.google.protobuf.ByteString getHostnamePrefixBytes() { + java.lang.Object ref = hostnamePrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostnamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Prefix for DB System host names.
                                              +     * 
                                              + * + * string hostname_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hostnamePrefix to set. + * @return This builder for chaining. + */ + public Builder setHostnamePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostnamePrefix_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Prefix for DB System host names.
                                              +     * 
                                              + * + * string hostname_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHostnamePrefix() { + hostnamePrefix_ = getDefaultInstance().getHostnamePrefix(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Prefix for DB System host names.
                                              +     * 
                                              + * + * string hostname_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for hostnamePrefix to set. + * @return This builder for chaining. + */ + public Builder setHostnamePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostnamePrefix_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object hostname_ = ""; + + /** + * + * + *
                                              +     * Output only. The hostname of the DbSystem.
                                              +     * 
                                              + * + * string hostname = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The hostname of the DbSystem.
                                              +     * 
                                              + * + * string hostname = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The hostname of the DbSystem.
                                              +     * 
                                              + * + * string hostname = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostname_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The hostname of the DbSystem.
                                              +     * 
                                              + * + * string hostname = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The hostname of the DbSystem.
                                              +     * 
                                              + * + * string hostname = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object privateIp_ = ""; + + /** + * + * + *
                                              +     * Optional. The private IP address of the DbSystem.
                                              +     * 
                                              + * + * string private_ip = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The privateIp. + */ + public java.lang.String getPrivateIp() { + java.lang.Object ref = privateIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The private IP address of the DbSystem.
                                              +     * 
                                              + * + * string private_ip = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for privateIp. + */ + public com.google.protobuf.ByteString getPrivateIpBytes() { + java.lang.Object ref = privateIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The private IP address of the DbSystem.
                                              +     * 
                                              + * + * string private_ip = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The privateIp to set. + * @return This builder for chaining. + */ + public Builder setPrivateIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateIp_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The private IP address of the DbSystem.
                                              +     * 
                                              + * + * string private_ip = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateIp() { + privateIp_ = getDefaultInstance().getPrivateIp(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The private IP address of the DbSystem.
                                              +     * 
                                              + * + * string private_ip = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for privateIp to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateIp_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem dataCollectionOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.Builder, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemOrBuilder> + dataCollectionOptionsBuilder_; + + /** + * + * + *
                                              +     * Optional. Data collection options for diagnostics.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataCollectionOptions field is set. + */ + public boolean hasDataCollectionOptions() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                                              +     * Optional. Data collection options for diagnostics.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataCollectionOptions. + */ + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem + getDataCollectionOptions() { + if (dataCollectionOptionsBuilder_ == null) { + return dataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.getDefaultInstance() + : dataCollectionOptions_; + } else { + return dataCollectionOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. Data collection options for diagnostics.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataCollectionOptions( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem value) { + if (dataCollectionOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataCollectionOptions_ = value; + } else { + dataCollectionOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Data collection options for diagnostics.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataCollectionOptions( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.Builder builderForValue) { + if (dataCollectionOptionsBuilder_ == null) { + dataCollectionOptions_ = builderForValue.build(); + } else { + dataCollectionOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Data collection options for diagnostics.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataCollectionOptions( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem value) { + if (dataCollectionOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && dataCollectionOptions_ != null + && dataCollectionOptions_ + != com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem + .getDefaultInstance()) { + getDataCollectionOptionsBuilder().mergeFrom(value); + } else { + dataCollectionOptions_ = value; + } + } else { + dataCollectionOptionsBuilder_.mergeFrom(value); + } + if (dataCollectionOptions_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Data collection options for diagnostics.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataCollectionOptions() { + bitField0_ = (bitField0_ & ~0x00000200); + dataCollectionOptions_ = null; + if (dataCollectionOptionsBuilder_ != null) { + dataCollectionOptionsBuilder_.dispose(); + dataCollectionOptionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Data collection options for diagnostics.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.Builder + getDataCollectionOptionsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getDataCollectionOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. Data collection options for diagnostics.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemOrBuilder + getDataCollectionOptionsOrBuilder() { + if (dataCollectionOptionsBuilder_ != null) { + return dataCollectionOptionsBuilder_.getMessageOrBuilder(); + } else { + return dataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.getDefaultInstance() + : dataCollectionOptions_; + } + } + + /** + * + * + *
                                              +     * Optional. Data collection options for diagnostics.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.Builder, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemOrBuilder> + getDataCollectionOptionsFieldBuilder() { + if (dataCollectionOptionsBuilder_ == null) { + dataCollectionOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem.Builder, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemOrBuilder>( + getDataCollectionOptions(), getParentForChildren(), isClean()); + dataCollectionOptions_ = null; + } + return dataCollectionOptionsBuilder_; + } + + private com.google.type.TimeZone timeZone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + timeZoneBuilder_; + + /** + * + * + *
                                              +     * Optional. Time zone of the DbSystem.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeZone field is set. + */ + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
                                              +     * Optional. Time zone of the DbSystem.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + public com.google.type.TimeZone getTimeZone() { + if (timeZoneBuilder_ == null) { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } else { + return timeZoneBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. Time zone of the DbSystem.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + } else { + timeZoneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Time zone of the DbSystem.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { + if (timeZoneBuilder_ == null) { + timeZone_ = builderForValue.build(); + } else { + timeZoneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Time zone of the DbSystem.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && timeZone_ != null + && timeZone_ != com.google.type.TimeZone.getDefaultInstance()) { + getTimeZoneBuilder().mergeFrom(value); + } else { + timeZone_ = value; + } + } else { + timeZoneBuilder_.mergeFrom(value); + } + if (timeZone_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Time zone of the DbSystem.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearTimeZone() { + bitField0_ = (bitField0_ & ~0x00000400); + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Time zone of the DbSystem.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.TimeZone.Builder getTimeZoneBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getTimeZoneFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. Time zone of the DbSystem.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + if (timeZoneBuilder_ != null) { + return timeZoneBuilder_.getMessageOrBuilder(); + } else { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + } + + /** + * + * + *
                                              +     * Optional. Time zone of the DbSystem.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + getTimeZoneFieldBuilder() { + if (timeZoneBuilder_ == null) { + timeZoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder>( + getTimeZone(), getParentForChildren(), isClean()); + timeZone_ = null; + } + return timeZoneBuilder_; + } + + private int lifecycleState_ = 0; + + /** + * + * + *
                                              +     * Output only. State of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + + /** + * + * + *
                                              +     * Output only. State of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleStateValue(int value) { + lifecycleState_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState + getLifecycleState() { + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState result = + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState.forNumber( + lifecycleState_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. State of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleState( + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + lifecycleState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLifecycleState() { + bitField0_ = (bitField0_ & ~0x00000800); + lifecycleState_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.DbHome dbHome_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbHome, + com.google.cloud.oracledatabase.v1.DbHome.Builder, + com.google.cloud.oracledatabase.v1.DbHomeOrBuilder> + dbHomeBuilder_; + + /** + * + * + *
                                              +     * Optional. Details for creating a Database Home.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dbHome field is set. + */ + public boolean hasDbHome() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
                                              +     * Optional. Details for creating a Database Home.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbHome. + */ + public com.google.cloud.oracledatabase.v1.DbHome getDbHome() { + if (dbHomeBuilder_ == null) { + return dbHome_ == null + ? com.google.cloud.oracledatabase.v1.DbHome.getDefaultInstance() + : dbHome_; + } else { + return dbHomeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. Details for creating a Database Home.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDbHome(com.google.cloud.oracledatabase.v1.DbHome value) { + if (dbHomeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dbHome_ = value; + } else { + dbHomeBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Details for creating a Database Home.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDbHome(com.google.cloud.oracledatabase.v1.DbHome.Builder builderForValue) { + if (dbHomeBuilder_ == null) { + dbHome_ = builderForValue.build(); + } else { + dbHomeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Details for creating a Database Home.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDbHome(com.google.cloud.oracledatabase.v1.DbHome value) { + if (dbHomeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && dbHome_ != null + && dbHome_ != com.google.cloud.oracledatabase.v1.DbHome.getDefaultInstance()) { + getDbHomeBuilder().mergeFrom(value); + } else { + dbHome_ = value; + } + } else { + dbHomeBuilder_.mergeFrom(value); + } + if (dbHome_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Details for creating a Database Home.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDbHome() { + bitField0_ = (bitField0_ & ~0x00001000); + dbHome_ = null; + if (dbHomeBuilder_ != null) { + dbHomeBuilder_.dispose(); + dbHomeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Details for creating a Database Home.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbHome.Builder getDbHomeBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getDbHomeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. Details for creating a Database Home.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbHomeOrBuilder getDbHomeOrBuilder() { + if (dbHomeBuilder_ != null) { + return dbHomeBuilder_.getMessageOrBuilder(); + } else { + return dbHome_ == null + ? com.google.cloud.oracledatabase.v1.DbHome.getDefaultInstance() + : dbHome_; + } + } + + /** + * + * + *
                                              +     * Optional. Details for creating a Database Home.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbHome, + com.google.cloud.oracledatabase.v1.DbHome.Builder, + com.google.cloud.oracledatabase.v1.DbHomeOrBuilder> + getDbHomeFieldBuilder() { + if (dbHomeBuilder_ == null) { + dbHomeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbHome, + com.google.cloud.oracledatabase.v1.DbHome.Builder, + com.google.cloud.oracledatabase.v1.DbHomeOrBuilder>( + getDbHome(), getParentForChildren(), isClean()); + dbHome_ = null; + } + return dbHomeBuilder_; + } + + private java.lang.Object ocid_ = ""; + + /** + * + * + *
                                              +     * Output only. OCID of the DbSystem.
                                              +     * 
                                              + * + * string ocid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ocid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. OCID of the DbSystem.
                                              +     * 
                                              + * + * string ocid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. OCID of the DbSystem.
                                              +     * 
                                              + * + * string ocid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ocid to set. + * @return This builder for chaining. + */ + public Builder setOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ocid_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. OCID of the DbSystem.
                                              +     * 
                                              + * + * string ocid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOcid() { + ocid_ = getDefaultInstance().getOcid(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. OCID of the DbSystem.
                                              +     * 
                                              + * + * string ocid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ocid to set. + * @return This builder for chaining. + */ + public Builder setOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ocid_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private int memorySizeGb_; + + /** + * + * + *
                                              +     * Optional. The memory size in GB.
                                              +     * 
                                              + * + * int32 memory_size_gb = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + + /** + * + * + *
                                              +     * Optional. The memory size in GB.
                                              +     * 
                                              + * + * int32 memory_size_gb = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The memorySizeGb to set. + * @return This builder for chaining. + */ + public Builder setMemorySizeGb(int value) { + + memorySizeGb_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The memory size in GB.
                                              +     * 
                                              + * + * int32 memory_size_gb = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMemorySizeGb() { + bitField0_ = (bitField0_ & ~0x00004000); + memorySizeGb_ = 0; + onChanged(); + return this; + } + + private int computeModel_ = 0; + + /** + * + * + *
                                              +     * Optional. The compute model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel compute_model = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for computeModel. + */ + @java.lang.Override + public int getComputeModelValue() { + return computeModel_; + } + + /** + * + * + *
                                              +     * Optional. The compute model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel compute_model = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for computeModel to set. + * @return This builder for chaining. + */ + public Builder setComputeModelValue(int value) { + computeModel_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The compute model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel compute_model = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computeModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel getComputeModel() { + com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel result = + com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel.forNumber( + computeModel_); + return result == null + ? com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Optional. The compute model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel compute_model = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The computeModel to set. + * @return This builder for chaining. + */ + public Builder setComputeModel( + com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + computeModel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The compute model of the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel compute_model = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearComputeModel() { + bitField0_ = (bitField0_ & ~0x00008000); + computeModel_ = 0; + onChanged(); + return this; + } + + private int dataStorageSizeGb_; + + /** + * + * + *
                                              +     * Optional. The data storage size in GB that is currently available to
                                              +     * DbSystems.
                                              +     * 
                                              + * + * int32 data_storage_size_gb = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeGb. + */ + @java.lang.Override + public int getDataStorageSizeGb() { + return dataStorageSizeGb_; + } + + /** + * + * + *
                                              +     * Optional. The data storage size in GB that is currently available to
                                              +     * DbSystems.
                                              +     * 
                                              + * + * int32 data_storage_size_gb = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDataStorageSizeGb(int value) { + + dataStorageSizeGb_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The data storage size in GB that is currently available to
                                              +     * DbSystems.
                                              +     * 
                                              + * + * int32 data_storage_size_gb = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00010000); + dataStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private int recoStorageSizeGb_; + + /** + * + * + *
                                              +     * Optional. The reco/redo storage size in GB.
                                              +     * 
                                              + * + * int32 reco_storage_size_gb = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The recoStorageSizeGb. + */ + @java.lang.Override + public int getRecoStorageSizeGb() { + return recoStorageSizeGb_; + } + + /** + * + * + *
                                              +     * Optional. The reco/redo storage size in GB.
                                              +     * 
                                              + * + * int32 reco_storage_size_gb = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The recoStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setRecoStorageSizeGb(int value) { + + recoStorageSizeGb_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The reco/redo storage size in GB.
                                              +     * 
                                              + * + * int32 reco_storage_size_gb = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRecoStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00020000); + recoStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + + /** + * + * + *
                                              +     * Optional. The host domain name of the DbSystem.
                                              +     * 
                                              + * + * string domain = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The host domain name of the DbSystem.
                                              +     * 
                                              + * + * string domain = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The host domain name of the DbSystem.
                                              +     * 
                                              + * + * string domain = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The host domain name of the DbSystem.
                                              +     * 
                                              + * + * string domain = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The host domain name of the DbSystem.
                                              +     * 
                                              + * + * string domain = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private int nodeCount_; + + /** + * + * + *
                                              +     * Optional. The number of nodes in the DbSystem.
                                              +     * 
                                              + * + * int32 node_count = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + /** + * + * + *
                                              +     * Optional. The number of nodes in the DbSystem.
                                              +     * 
                                              + * + * int32 node_count = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nodeCount to set. + * @return This builder for chaining. + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The number of nodes in the DbSystem.
                                              +     * 
                                              + * + * int32 node_count = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNodeCount() { + bitField0_ = (bitField0_ & ~0x00080000); + nodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.DbSystemOptions dbSystemOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemOptions, + com.google.cloud.oracledatabase.v1.DbSystemOptions.Builder, + com.google.cloud.oracledatabase.v1.DbSystemOptionsOrBuilder> + dbSystemOptionsBuilder_; + + /** + * + * + *
                                              +     * Optional. The options for the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dbSystemOptions field is set. + */ + public boolean hasDbSystemOptions() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
                                              +     * Optional. The options for the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbSystemOptions. + */ + public com.google.cloud.oracledatabase.v1.DbSystemOptions getDbSystemOptions() { + if (dbSystemOptionsBuilder_ == null) { + return dbSystemOptions_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemOptions.getDefaultInstance() + : dbSystemOptions_; + } else { + return dbSystemOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. The options for the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDbSystemOptions(com.google.cloud.oracledatabase.v1.DbSystemOptions value) { + if (dbSystemOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dbSystemOptions_ = value; + } else { + dbSystemOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The options for the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDbSystemOptions( + com.google.cloud.oracledatabase.v1.DbSystemOptions.Builder builderForValue) { + if (dbSystemOptionsBuilder_ == null) { + dbSystemOptions_ = builderForValue.build(); + } else { + dbSystemOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The options for the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDbSystemOptions(com.google.cloud.oracledatabase.v1.DbSystemOptions value) { + if (dbSystemOptionsBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && dbSystemOptions_ != null + && dbSystemOptions_ + != com.google.cloud.oracledatabase.v1.DbSystemOptions.getDefaultInstance()) { + getDbSystemOptionsBuilder().mergeFrom(value); + } else { + dbSystemOptions_ = value; + } + } else { + dbSystemOptionsBuilder_.mergeFrom(value); + } + if (dbSystemOptions_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. The options for the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDbSystemOptions() { + bitField0_ = (bitField0_ & ~0x00100000); + dbSystemOptions_ = null; + if (dbSystemOptionsBuilder_ != null) { + dbSystemOptionsBuilder_.dispose(); + dbSystemOptionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The options for the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemOptions.Builder getDbSystemOptionsBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getDbSystemOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. The options for the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemOptionsOrBuilder + getDbSystemOptionsOrBuilder() { + if (dbSystemOptionsBuilder_ != null) { + return dbSystemOptionsBuilder_.getMessageOrBuilder(); + } else { + return dbSystemOptions_ == null + ? com.google.cloud.oracledatabase.v1.DbSystemOptions.getDefaultInstance() + : dbSystemOptions_; + } + } + + /** + * + * + *
                                              +     * Optional. The options for the DbSystem.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemOptions, + com.google.cloud.oracledatabase.v1.DbSystemOptions.Builder, + com.google.cloud.oracledatabase.v1.DbSystemOptionsOrBuilder> + getDbSystemOptionsFieldBuilder() { + if (dbSystemOptionsBuilder_ == null) { + dbSystemOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemOptions, + com.google.cloud.oracledatabase.v1.DbSystemOptions.Builder, + com.google.cloud.oracledatabase.v1.DbSystemOptionsOrBuilder>( + getDbSystemOptions(), getParentForChildren(), isClean()); + dbSystemOptions_ = null; + } + return dbSystemOptionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbSystemProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbSystemProperties) + private static final com.google.cloud.oracledatabase.v1.DbSystemProperties DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbSystemProperties(); + } + + public static com.google.cloud.oracledatabase.v1.DbSystemProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbSystemProperties 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.oracledatabase.v1.DbSystemProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemPropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemPropertiesOrBuilder.java new file mode 100644 index 000000000000..289862b03108 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemPropertiesOrBuilder.java @@ -0,0 +1,603 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DbSystemPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbSystemProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. Shape of DB System.
                                              +   * 
                                              + * + * string shape = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The shape. + */ + java.lang.String getShape(); + + /** + * + * + *
                                              +   * Required. Shape of DB System.
                                              +   * 
                                              + * + * string shape = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for shape. + */ + com.google.protobuf.ByteString getShapeBytes(); + + /** + * + * + *
                                              +   * Required. The number of CPU cores to enable for the DbSystem.
                                              +   * 
                                              + * + * int32 compute_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The computeCount. + */ + int getComputeCount(); + + /** + * + * + *
                                              +   * Required. The initial data storage size in GB.
                                              +   * 
                                              + * + * int32 initial_data_storage_size_gb = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The initialDataStorageSizeGb. + */ + int getInitialDataStorageSizeGb(); + + /** + * + * + *
                                              +   * Required. The database edition of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition database_edition = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for databaseEdition. + */ + int getDatabaseEditionValue(); + + /** + * + * + *
                                              +   * Required. The database edition of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition database_edition = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseEdition. + */ + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition + getDatabaseEdition(); + + /** + * + * + *
                                              +   * Required. The license model of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel license_model = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseModel. + */ + int getLicenseModelValue(); + + /** + * + * + *
                                              +   * Required. The license model of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel license_model = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseModel. + */ + com.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel getLicenseModel(); + + /** + * + * + *
                                              +   * Required. SSH public keys to be stored with the DbSystem.
                                              +   * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the sshPublicKeys. + */ + java.util.List getSshPublicKeysList(); + + /** + * + * + *
                                              +   * Required. SSH public keys to be stored with the DbSystem.
                                              +   * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of sshPublicKeys. + */ + int getSshPublicKeysCount(); + + /** + * + * + *
                                              +   * Required. SSH public keys to be stored with the DbSystem.
                                              +   * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + java.lang.String getSshPublicKeys(int index); + + /** + * + * + *
                                              +   * Required. SSH public keys to be stored with the DbSystem.
                                              +   * 
                                              + * + * repeated string ssh_public_keys = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + com.google.protobuf.ByteString getSshPublicKeysBytes(int index); + + /** + * + * + *
                                              +   * Optional. Prefix for DB System host names.
                                              +   * 
                                              + * + * string hostname_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostnamePrefix. + */ + java.lang.String getHostnamePrefix(); + + /** + * + * + *
                                              +   * Optional. Prefix for DB System host names.
                                              +   * 
                                              + * + * string hostname_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostnamePrefix. + */ + com.google.protobuf.ByteString getHostnamePrefixBytes(); + + /** + * + * + *
                                              +   * Output only. The hostname of the DbSystem.
                                              +   * 
                                              + * + * string hostname = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + + /** + * + * + *
                                              +   * Output only. The hostname of the DbSystem.
                                              +   * 
                                              + * + * string hostname = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
                                              +   * Optional. The private IP address of the DbSystem.
                                              +   * 
                                              + * + * string private_ip = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The privateIp. + */ + java.lang.String getPrivateIp(); + + /** + * + * + *
                                              +   * Optional. The private IP address of the DbSystem.
                                              +   * 
                                              + * + * string private_ip = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for privateIp. + */ + com.google.protobuf.ByteString getPrivateIpBytes(); + + /** + * + * + *
                                              +   * Optional. Data collection options for diagnostics.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataCollectionOptions field is set. + */ + boolean hasDataCollectionOptions(); + + /** + * + * + *
                                              +   * Optional. Data collection options for diagnostics.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataCollectionOptions. + */ + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem getDataCollectionOptions(); + + /** + * + * + *
                                              +   * Optional. Data collection options for diagnostics.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem data_collection_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemOrBuilder + getDataCollectionOptionsOrBuilder(); + + /** + * + * + *
                                              +   * Optional. Time zone of the DbSystem.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeZone field is set. + */ + boolean hasTimeZone(); + + /** + * + * + *
                                              +   * Optional. Time zone of the DbSystem.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + com.google.type.TimeZone getTimeZone(); + + /** + * + * + *
                                              +   * Optional. Time zone of the DbSystem.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder(); + + /** + * + * + *
                                              +   * Output only. State of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + int getLifecycleStateValue(); + + /** + * + * + *
                                              +   * Output only. State of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + com.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState getLifecycleState(); + + /** + * + * + *
                                              +   * Optional. Details for creating a Database Home.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dbHome field is set. + */ + boolean hasDbHome(); + + /** + * + * + *
                                              +   * Optional. Details for creating a Database Home.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbHome. + */ + com.google.cloud.oracledatabase.v1.DbHome getDbHome(); + + /** + * + * + *
                                              +   * Optional. Details for creating a Database Home.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbHome db_home = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DbHomeOrBuilder getDbHomeOrBuilder(); + + /** + * + * + *
                                              +   * Output only. OCID of the DbSystem.
                                              +   * 
                                              + * + * string ocid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + java.lang.String getOcid(); + + /** + * + * + *
                                              +   * Output only. OCID of the DbSystem.
                                              +   * 
                                              + * + * string ocid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + com.google.protobuf.ByteString getOcidBytes(); + + /** + * + * + *
                                              +   * Optional. The memory size in GB.
                                              +   * 
                                              + * + * int32 memory_size_gb = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The memorySizeGb. + */ + int getMemorySizeGb(); + + /** + * + * + *
                                              +   * Optional. The compute model of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel compute_model = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for computeModel. + */ + int getComputeModelValue(); + + /** + * + * + *
                                              +   * Optional. The compute model of the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel compute_model = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computeModel. + */ + com.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel getComputeModel(); + + /** + * + * + *
                                              +   * Optional. The data storage size in GB that is currently available to
                                              +   * DbSystems.
                                              +   * 
                                              + * + * int32 data_storage_size_gb = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataStorageSizeGb. + */ + int getDataStorageSizeGb(); + + /** + * + * + *
                                              +   * Optional. The reco/redo storage size in GB.
                                              +   * 
                                              + * + * int32 reco_storage_size_gb = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The recoStorageSizeGb. + */ + int getRecoStorageSizeGb(); + + /** + * + * + *
                                              +   * Optional. The host domain name of the DbSystem.
                                              +   * 
                                              + * + * string domain = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The domain. + */ + java.lang.String getDomain(); + + /** + * + * + *
                                              +   * Optional. The host domain name of the DbSystem.
                                              +   * 
                                              + * + * string domain = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
                                              +   * Optional. The number of nodes in the DbSystem.
                                              +   * 
                                              + * + * int32 node_count = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeCount. + */ + int getNodeCount(); + + /** + * + * + *
                                              +   * Optional. The options for the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dbSystemOptions field is set. + */ + boolean hasDbSystemOptions(); + + /** + * + * + *
                                              +   * Optional. The options for the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dbSystemOptions. + */ + com.google.cloud.oracledatabase.v1.DbSystemOptions getDbSystemOptions(); + + /** + * + * + *
                                              +   * Optional. The options for the DbSystem.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbSystemOptions db_system_options = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.DbSystemOptionsOrBuilder getDbSystemOptionsOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemProto.java new file mode 100644 index 000000000000..c44e9ddb9760 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemProto.java @@ -0,0 +1,361 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class DbSystemProto { + private DbSystemProto() {} + + 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_oracledatabase_v1_DbSystem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbSystem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbSystem_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbSystem_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbHome_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbHome_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_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/cloud/oracledatabase/v1/db_system.proto\022\036google.cloud.oracledatabase.v1" + + "\032\037google/api/field_behavior.proto\032\033googl" + + "e/api/field_info.proto\032\031google/api/resou" + + "rce.proto\032-google/cloud/oracledatabase/v" + + "1/database.proto\032\037google/protobuf/timest" + + "amp.proto\032\032google/type/datetime.proto\"\223\005\n" + + "\010DbSystem\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022K\n\n" + + "properties\030\002" + + " \001(\01322.google.cloud.oracledatabase.v1.DbSystemPropertiesB\003\340A\001\022\034\n" + + "\017gcp_oracle_zone\030\003 \001(\tB\003\340A\001\022I\n" + + "\006labels\030\004 \003(\01324.googl" + + "e.cloud.oracledatabase.v1.DbSystem.LabelsEntryB\003\340A\001\022E\n" + + "\013odb_network\030\005 \001(\tB0\340A\001\372A*\n" + + "(oracledatabase.googleapis.com/OdbNetwork\022C\n\n" + + "odb_subnet\030\006 \001(\tB/\340A\002\372A)\n" + + "\'oracledatabase.googleapis.com/OdbSubnet\022\033\n" + + "\016entitlement_id\030\007 \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\010 \001(\tB\003\340A\002\0224\n" + + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n" + + "\007oci_url\030\n" + + " \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:\177\352A|\n" + + "&oracledatabase.googleap" + + "is.com/DbSystem\022=projects/{project}/locations/{location}/dbSystems/{db_system}*" + + "\tdbSystems2\010dbSystem\"\344\014\n" + + "\022DbSystemProperties\022\022\n" + + "\005shape\030\001 \001(\tB\003\340A\002\022\032\n\r" + + "compute_count\030\002 \001(\005B\003\340A\002\022)\n" + + "\034initial_data_storage_size_gb\030\003 \001(\005B\003\340A\002\022i\n" + + "\020database_edition\030\004 \001(\0162J.google.cloud.oracledatabase.v1.DbSyste" + + "mProperties.DbSystemDatabaseEditionB\003\340A\002\022[\n\r" + + "license_model\030\005 \001(\0162?.google.cloud.o" + + "racledatabase.v1.DbSystemProperties.LicenseModelB\003\340A\002\022\034\n" + + "\017ssh_public_keys\030\006 \003(\tB\003\340A\002\022\034\n" + + "\017hostname_prefix\030\007 \001(\tB\003\340A\001\022\025\n" + + "\010hostname\030\010 \001(\tB\003\340A\003\022\027\n\n" + + "private_ip\030\t \001(\tB\003\340A\001\022c\n" + + "\027data_collection_options\030\n" + + " \001(\0132=.goo" + + "gle.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemB\003\340A\001\022-\n" + + "\ttime_zone\030\013 \001(\0132\025.google.type.TimeZoneB\003\340A\001\022g\n" + + "\017lifecycle_state\030\014 \001(\0162I.google.cloud.oracledata" + + "base.v1.DbSystemProperties.DbSystemLifecycleStateB\003\340A\003\022<\n" + + "\007db_home\030\r" + + " \001(\0132&.google.cloud.oracledatabase.v1.DbHomeB\003\340A\001\022\021\n" + + "\004ocid\030\016 \001(\tB\003\340A\003\022\033\n" + + "\016memory_size_gb\030\017 \001(\005B\003\340A\001\022[\n\r" + + "compute_model\030\020 \001(\0162?.google.clo" + + "ud.oracledatabase.v1.DbSystemProperties.ComputeModelB\003\340A\001\022!\n" + + "\024data_storage_size_gb\030\021 \001(\005B\003\340A\001\022!\n" + + "\024reco_storage_size_gb\030\022 \001(\005B\003\340A\001\022\023\n" + + "\006domain\030\023 \001(\tB\003\340A\001\022\027\n\n" + + "node_count\030\024 \001(\005B\003\340A\001\022O\n" + + "\021db_system_options\030\025 \001(\013" + + "2/.google.cloud.oracledatabase.v1.DbSystemOptionsB\003\340A\001\"\234\001\n" + + "\027DbSystemDatabaseEdition\022*\n" + + "&DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED\020\000\022\024\n" + + "\020STANDARD_EDITION\020\001\022\026\n" + + "\022ENTERPRISE_EDITION\020\002\022\'\n" + + "#ENTERPRISE_EDITION_HIGH_PERFORMANCE\020\003\"_\n" + + "\014LicenseModel\022\035\n" + + "\031LICENSE_MODEL_UNSPECIFIED\020\000\022\024\n" + + "\020LICENSE_INCLUDED\020\001\022\032\n" + + "\026BRING_YOUR_OWN_LICENSE\020\002\"\356\001\n" + + "\026DbSystemLifecycleState\022)\n" + + "%DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED\020\000\022\020\n" + + "\014PROVISIONING\020\001\022\r" + + "\n" + + "\tAVAILABLE\020\002\022\014\n" + + "\010UPDATING\020\003\022\017\n" + + "\013TERMINATING\020\004\022\016\n\n" + + "TERMINATED\020\005\022\n\n" + + "\006FAILED\020\006\022\014\n" + + "\010MIGRATED\020\007\022\033\n" + + "\027MAINTENANCE_IN_PROGRESS\020\010\022\023\n" + + "\017NEEDS_ATTENTION\020\t\022\r\n" + + "\tUPGRADING\020\n" + + "\"A\n" + + "\014ComputeModel\022\035\n" + + "\031COMPUTE_MODEL_UNSPECIFIED\020\000\022\010\n" + + "\004ECPU\020\001\022\010\n" + + "\004OCPU\020\002\"r\n" + + "\035DataCollectionOptionsDbSystem\022*\n" + + "\035is_diagnostics_events_enabled\030\001 \001(\010B\003\340A\001\022%\n" + + "\030is_incident_logs_enabled\030\002 \001(\010B\003\340A\001\"\300\001\n" + + "\017DbSystemOptions\022b\n" + + "\022storage_management\030\001 \001(\0162A.google.cloud.or" + + "acledatabase.v1.DbSystemOptions.StorageManagementB\003\340A\001\"I\n" + + "\021StorageManagement\022\"\n" + + "\036STORAGE_MANAGEMENT_UNSPECIFIED\020\000\022\007\n" + + "\003ASM\020\001\022\007\n" + + "\003LVM\020\002\"\247\001\n" + + "\006DbHome\022\031\n" + + "\014display_name\030\001 \001(\tB\003\340A\001\022\027\n\n" + + "db_version\030\002 \001(\tB\003\340A\002\022?\n" + + "\010database\030\003" + + " \001(\0132(.google.cloud.oracledatabase.v1.DatabaseB\003\340A\002\022(\n" + + "\033is_unified_auditing_enabled\030\004 \001(\010B\003\340A\001\"\325\001\n" + + "\025CreateDbSystemRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&oracledatabase.googleapis.com/DbSystem\022\031\n" + + "\014db_system_id\030\002 \001(\tB\003\340A\002\022@\n" + + "\tdb_system\030\003 \001(\0132(.go" + + "ogle.cloud.oracledatabase.v1.DbSystemB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"v\n" + + "\025DeleteDbSystemRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&oracledatabase.googleapis.com/DbSystem\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"R\n" + + "\022GetDbSystemRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&oracledatabase.googleapis.com/DbSystem\"\263\001\n" + + "\024ListDbSystemsRequest\022>\n" + + "\006parent\030\001 \001(\t" + + "B.\340A\002\372A(\022&oracledatabase.googleapis.com/DbSystem\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\"n\n" + + "\025ListDbSystemsResponse\022<\n\n" + + "db_systems\030\001 \003(\0132(.google.cloud.oracledatabase.v1.DbSystem\022\027\n" + + "\017next_page_token\030\002 \001(\tB\347\001\n" + + "\"com.google.cloud.oracledatabase.v1B\r" + + "DbSystemProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracleda" + + "tabasepb;oracledatabasepb\252\002\036Google.Cloud" + + ".OracleDatabase.V1\312\002\036Google\\Cloud\\Oracle" + + "Database\\V1\352\002!Google::Cloud::OracleDatabase::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.cloud.oracledatabase.v1.DatabaseProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateTimeProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_DbSystem_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_DbSystem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbSystem_descriptor, + new java.lang.String[] { + "Name", + "Properties", + "GcpOracleZone", + "Labels", + "OdbNetwork", + "OdbSubnet", + "EntitlementId", + "DisplayName", + "CreateTime", + "OciUrl", + }); + internal_static_google_cloud_oracledatabase_v1_DbSystem_LabelsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_DbSystem_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_DbSystem_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbSystem_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbSystemProperties_descriptor, + new java.lang.String[] { + "Shape", + "ComputeCount", + "InitialDataStorageSizeGb", + "DatabaseEdition", + "LicenseModel", + "SshPublicKeys", + "HostnamePrefix", + "Hostname", + "PrivateIp", + "DataCollectionOptions", + "TimeZone", + "LifecycleState", + "DbHome", + "Ocid", + "MemorySizeGb", + "ComputeModel", + "DataStorageSizeGb", + "RecoStorageSizeGb", + "Domain", + "NodeCount", + "DbSystemOptions", + }); + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DataCollectionOptionsDbSystem_descriptor, + new java.lang.String[] { + "IsDiagnosticsEventsEnabled", "IsIncidentLogsEnabled", + }); + internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbSystemOptions_descriptor, + new java.lang.String[] { + "StorageManagement", + }); + internal_static_google_cloud_oracledatabase_v1_DbHome_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_DbHome_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbHome_descriptor, + new java.lang.String[] { + "DisplayName", "DbVersion", "Database", "IsUnifiedAuditingEnabled", + }); + internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CreateDbSystemRequest_descriptor, + new java.lang.String[] { + "Parent", "DbSystemId", "DbSystem", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_descriptor, + new java.lang.String[] { + "DbSystems", "NextPageToken", + }); + 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( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.DatabaseProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateTimeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersion.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersion.java new file mode 100644 index 000000000000..b57a61c33ca1 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersion.java @@ -0,0 +1,958 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * A valid Oracle Database version.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbVersion} + */ +public final class DbVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbVersion) + DbVersionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DbVersion.newBuilder() to construct. + private DbVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbVersion() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbVersion.class, + com.google.cloud.oracledatabase.v1.DbVersion.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Output only. The name of the DbVersion resource in the following format:
                                              +   * projects/{project}/locations/{region}/dbVersions/{db_version}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                              +   * Output only. The name of the DbVersion resource in the following format:
                                              +   * projects/{project}/locations/{region}/dbVersions/{db_version}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 PROPERTIES_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.DbVersionProperties properties_; + + /** + * + * + *
                                              +   * Output only. The properties of the DbVersion.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Output only. The properties of the DbVersion.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersionProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbVersionProperties.getDefaultInstance() + : properties_; + } + + /** + * + * + *
                                              +   * Output only. The properties of the DbVersion.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersionPropertiesOrBuilder getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbVersionProperties.getDefaultInstance() + : properties_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getProperties()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProperties()); + } + 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.oracledatabase.v1.DbVersion)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbVersion other = + (com.google.cloud.oracledatabase.v1.DbVersion) obj; + + if (!getName().equals(other.getName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) 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(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbVersion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion 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.oracledatabase.v1.DbVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion 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.oracledatabase.v1.DbVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.DbVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * A valid Oracle Database version.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbVersion) + com.google.cloud.oracledatabase.v1.DbVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbVersion.class, + com.google.cloud.oracledatabase.v1.DbVersion.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersion getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersion build() { + com.google.cloud.oracledatabase.v1.DbVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersion buildPartial() { + com.google.cloud.oracledatabase.v1.DbVersion result = + new com.google.cloud.oracledatabase.v1.DbVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DbVersion) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbVersion other) { + if (other == com.google.cloud.oracledatabase.v1.DbVersion.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + 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: + { + input.readMessage(getPropertiesFieldBuilder().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 name_ = ""; + + /** + * + * + *
                                              +     * Output only. The name of the DbVersion resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbVersions/{db_version}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                              +     * Output only. The name of the DbVersion resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbVersions/{db_version}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
                                              +     * Output only. The name of the DbVersion resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbVersions/{db_version}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
                                              +     * Output only. The name of the DbVersion resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbVersions/{db_version}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The name of the DbVersion resource in the following format:
                                              +     * projects/{project}/locations/{region}/dbVersions/{db_version}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 com.google.cloud.oracledatabase.v1.DbVersionProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbVersionProperties, + com.google.cloud.oracledatabase.v1.DbVersionProperties.Builder, + com.google.cloud.oracledatabase.v1.DbVersionPropertiesOrBuilder> + propertiesBuilder_; + + /** + * + * + *
                                              +     * Output only. The properties of the DbVersion.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbVersion.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.DbVersionProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbVersionProperties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbVersion.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProperties(com.google.cloud.oracledatabase.v1.DbVersionProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbVersion.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.DbVersionProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbVersion.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProperties(com.google.cloud.oracledatabase.v1.DbVersionProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.DbVersionProperties.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbVersion.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbVersion.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DbVersionProperties.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbVersion.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DbVersionPropertiesOrBuilder + getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.DbVersionProperties.getDefaultInstance() + : properties_; + } + } + + /** + * + * + *
                                              +     * Output only. The properties of the DbVersion.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbVersionProperties, + com.google.cloud.oracledatabase.v1.DbVersionProperties.Builder, + com.google.cloud.oracledatabase.v1.DbVersionPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbVersionProperties, + com.google.cloud.oracledatabase.v1.DbVersionProperties.Builder, + com.google.cloud.oracledatabase.v1.DbVersionPropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbVersion) + private static final com.google.cloud.oracledatabase.v1.DbVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbVersion(); + } + + public static com.google.cloud.oracledatabase.v1.DbVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbVersion 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.oracledatabase.v1.DbVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionName.java new file mode 100644 index 000000000000..bfcb2a0fcf6c --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.oracledatabase.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 DbVersionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DB_VERSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dbVersions/{db_version}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dbVersion; + + @Deprecated + protected DbVersionName() { + project = null; + location = null; + dbVersion = null; + } + + private DbVersionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dbVersion = Preconditions.checkNotNull(builder.getDbVersion()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDbVersion() { + return dbVersion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DbVersionName of(String project, String location, String dbVersion) { + return newBuilder().setProject(project).setLocation(location).setDbVersion(dbVersion).build(); + } + + public static String format(String project, String location, String dbVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDbVersion(dbVersion) + .build() + .toString(); + } + + public static DbVersionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DB_VERSION.validatedMatch( + formattedString, "DbVersionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("db_version")); + } + + 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 (DbVersionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DB_VERSION.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 (dbVersion != null) { + fieldMapBuilder.put("db_version", dbVersion); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DB_VERSION.instantiate( + "project", project, "location", location, "db_version", dbVersion); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DbVersionName that = ((DbVersionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dbVersion, that.dbVersion); + } + 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(dbVersion); + return h; + } + + /** Builder for projects/{project}/locations/{location}/dbVersions/{db_version}. */ + public static class Builder { + private String project; + private String location; + private String dbVersion; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDbVersion() { + return dbVersion; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDbVersion(String dbVersion) { + this.dbVersion = dbVersion; + return this; + } + + private Builder(DbVersionName dbVersionName) { + this.project = dbVersionName.project; + this.location = dbVersionName.location; + this.dbVersion = dbVersionName.dbVersion; + } + + public DbVersionName build() { + return new DbVersionName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionOrBuilder.java new file mode 100644 index 000000000000..b3372d008e93 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DbVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. The name of the DbVersion resource in the following format:
                                              +   * projects/{project}/locations/{region}/dbVersions/{db_version}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Output only. The name of the DbVersion resource in the following format:
                                              +   * projects/{project}/locations/{region}/dbVersions/{db_version}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Output only. The properties of the DbVersion.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + + /** + * + * + *
                                              +   * Output only. The properties of the DbVersion.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.DbVersionProperties getProperties(); + + /** + * + * + *
                                              +   * Output only. The properties of the DbVersion.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DbVersionProperties properties = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.DbVersionPropertiesOrBuilder getPropertiesOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionProperties.java new file mode 100644 index 000000000000..6f6f5a99c2bd --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionProperties.java @@ -0,0 +1,1042 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The properties of a DbVersion.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbVersionProperties} + */ +public final class DbVersionProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DbVersionProperties) + DbVersionPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DbVersionProperties.newBuilder() to construct. + private DbVersionProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DbVersionProperties() { + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DbVersionProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbVersionProperties.class, + com.google.cloud.oracledatabase.v1.DbVersionProperties.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
                                              +   * Output only. A valid Oracle Database version.
                                              +   * 
                                              + * + * string version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. A valid Oracle Database version.
                                              +   * 
                                              + * + * string version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_LATEST_FOR_MAJOR_VERSION_FIELD_NUMBER = 2; + private boolean isLatestForMajorVersion_ = false; + + /** + * + * + *
                                              +   * Output only. True if this version of the Oracle Database software is the
                                              +   * latest version for a release.
                                              +   * 
                                              + * + * bool is_latest_for_major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isLatestForMajorVersion. + */ + @java.lang.Override + public boolean getIsLatestForMajorVersion() { + return isLatestForMajorVersion_; + } + + public static final int SUPPORTS_PDB_FIELD_NUMBER = 3; + private boolean supportsPdb_ = false; + + /** + * + * + *
                                              +   * Output only. True if this version of the Oracle Database software supports
                                              +   * pluggable databases.
                                              +   * 
                                              + * + * bool supports_pdb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The supportsPdb. + */ + @java.lang.Override + public boolean getSupportsPdb() { + return supportsPdb_; + } + + public static final int IS_PREVIEW_DB_VERSION_FIELD_NUMBER = 4; + private boolean isPreviewDbVersion_ = false; + + /** + * + * + *
                                              +   * Output only. True if this version of the Oracle Database software is the
                                              +   * preview version.
                                              +   * 
                                              + * + * bool is_preview_db_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isPreviewDbVersion. + */ + @java.lang.Override + public boolean getIsPreviewDbVersion() { + return isPreviewDbVersion_; + } + + public static final int IS_UPGRADE_SUPPORTED_FIELD_NUMBER = 5; + private boolean isUpgradeSupported_ = false; + + /** + * + * + *
                                              +   * Output only. True if this version of the Oracle Database software is
                                              +   * supported for Upgrade.
                                              +   * 
                                              + * + * bool is_upgrade_supported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isUpgradeSupported. + */ + @java.lang.Override + public boolean getIsUpgradeSupported() { + return isUpgradeSupported_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (isLatestForMajorVersion_ != false) { + output.writeBool(2, isLatestForMajorVersion_); + } + if (supportsPdb_ != false) { + output.writeBool(3, supportsPdb_); + } + if (isPreviewDbVersion_ != false) { + output.writeBool(4, isPreviewDbVersion_); + } + if (isUpgradeSupported_ != false) { + output.writeBool(5, isUpgradeSupported_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (isLatestForMajorVersion_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isLatestForMajorVersion_); + } + if (supportsPdb_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportsPdb_); + } + if (isPreviewDbVersion_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isPreviewDbVersion_); + } + if (isUpgradeSupported_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isUpgradeSupported_); + } + 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.oracledatabase.v1.DbVersionProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DbVersionProperties other = + (com.google.cloud.oracledatabase.v1.DbVersionProperties) obj; + + if (!getVersion().equals(other.getVersion())) return false; + if (getIsLatestForMajorVersion() != other.getIsLatestForMajorVersion()) return false; + if (getSupportsPdb() != other.getSupportsPdb()) return false; + if (getIsPreviewDbVersion() != other.getIsPreviewDbVersion()) return false; + if (getIsUpgradeSupported() != other.getIsUpgradeSupported()) 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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + IS_LATEST_FOR_MAJOR_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsLatestForMajorVersion()); + hash = (37 * hash) + SUPPORTS_PDB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsPdb()); + hash = (37 * hash) + IS_PREVIEW_DB_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPreviewDbVersion()); + hash = (37 * hash) + IS_UPGRADE_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUpgradeSupported()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties 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.oracledatabase.v1.DbVersionProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties 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.oracledatabase.v1.DbVersionProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DbVersionProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The properties of a DbVersion.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DbVersionProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DbVersionProperties) + com.google.cloud.oracledatabase.v1.DbVersionPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DbVersionProperties.class, + com.google.cloud.oracledatabase.v1.DbVersionProperties.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DbVersionProperties.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = ""; + isLatestForMajorVersion_ = false; + supportsPdb_ = false; + isPreviewDbVersion_ = false; + isUpgradeSupported_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersionProperties getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DbVersionProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersionProperties build() { + com.google.cloud.oracledatabase.v1.DbVersionProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersionProperties buildPartial() { + com.google.cloud.oracledatabase.v1.DbVersionProperties result = + new com.google.cloud.oracledatabase.v1.DbVersionProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DbVersionProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isLatestForMajorVersion_ = isLatestForMajorVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.supportsPdb_ = supportsPdb_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isPreviewDbVersion_ = isPreviewDbVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isUpgradeSupported_ = isUpgradeSupported_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DbVersionProperties) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DbVersionProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DbVersionProperties other) { + if (other == com.google.cloud.oracledatabase.v1.DbVersionProperties.getDefaultInstance()) + return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getIsLatestForMajorVersion() != false) { + setIsLatestForMajorVersion(other.getIsLatestForMajorVersion()); + } + if (other.getSupportsPdb() != false) { + setSupportsPdb(other.getSupportsPdb()); + } + if (other.getIsPreviewDbVersion() != false) { + setIsPreviewDbVersion(other.getIsPreviewDbVersion()); + } + if (other.getIsUpgradeSupported() != false) { + setIsUpgradeSupported(other.getIsUpgradeSupported()); + } + 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: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + isLatestForMajorVersion_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + supportsPdb_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + isPreviewDbVersion_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + isUpgradeSupported_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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 version_ = ""; + + /** + * + * + *
                                              +     * Output only. A valid Oracle Database version.
                                              +     * 
                                              + * + * string version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. A valid Oracle Database version.
                                              +     * 
                                              + * + * string version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. A valid Oracle Database version.
                                              +     * 
                                              + * + * string version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. A valid Oracle Database version.
                                              +     * 
                                              + * + * string version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. A valid Oracle Database version.
                                              +     * 
                                              + * + * string version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean isLatestForMajorVersion_; + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software is the
                                              +     * latest version for a release.
                                              +     * 
                                              + * + * bool is_latest_for_major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The isLatestForMajorVersion. + */ + @java.lang.Override + public boolean getIsLatestForMajorVersion() { + return isLatestForMajorVersion_; + } + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software is the
                                              +     * latest version for a release.
                                              +     * 
                                              + * + * bool is_latest_for_major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The isLatestForMajorVersion to set. + * @return This builder for chaining. + */ + public Builder setIsLatestForMajorVersion(boolean value) { + + isLatestForMajorVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software is the
                                              +     * latest version for a release.
                                              +     * 
                                              + * + * bool is_latest_for_major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsLatestForMajorVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + isLatestForMajorVersion_ = false; + onChanged(); + return this; + } + + private boolean supportsPdb_; + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software supports
                                              +     * pluggable databases.
                                              +     * 
                                              + * + * bool supports_pdb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The supportsPdb. + */ + @java.lang.Override + public boolean getSupportsPdb() { + return supportsPdb_; + } + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software supports
                                              +     * pluggable databases.
                                              +     * 
                                              + * + * bool supports_pdb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The supportsPdb to set. + * @return This builder for chaining. + */ + public Builder setSupportsPdb(boolean value) { + + supportsPdb_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software supports
                                              +     * pluggable databases.
                                              +     * 
                                              + * + * bool supports_pdb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSupportsPdb() { + bitField0_ = (bitField0_ & ~0x00000004); + supportsPdb_ = false; + onChanged(); + return this; + } + + private boolean isPreviewDbVersion_; + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software is the
                                              +     * preview version.
                                              +     * 
                                              + * + * bool is_preview_db_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isPreviewDbVersion. + */ + @java.lang.Override + public boolean getIsPreviewDbVersion() { + return isPreviewDbVersion_; + } + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software is the
                                              +     * preview version.
                                              +     * 
                                              + * + * bool is_preview_db_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isPreviewDbVersion to set. + * @return This builder for chaining. + */ + public Builder setIsPreviewDbVersion(boolean value) { + + isPreviewDbVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software is the
                                              +     * preview version.
                                              +     * 
                                              + * + * bool is_preview_db_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsPreviewDbVersion() { + bitField0_ = (bitField0_ & ~0x00000008); + isPreviewDbVersion_ = false; + onChanged(); + return this; + } + + private boolean isUpgradeSupported_; + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software is
                                              +     * supported for Upgrade.
                                              +     * 
                                              + * + * bool is_upgrade_supported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isUpgradeSupported. + */ + @java.lang.Override + public boolean getIsUpgradeSupported() { + return isUpgradeSupported_; + } + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software is
                                              +     * supported for Upgrade.
                                              +     * 
                                              + * + * bool is_upgrade_supported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isUpgradeSupported to set. + * @return This builder for chaining. + */ + public Builder setIsUpgradeSupported(boolean value) { + + isUpgradeSupported_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. True if this version of the Oracle Database software is
                                              +     * supported for Upgrade.
                                              +     * 
                                              + * + * bool is_upgrade_supported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsUpgradeSupported() { + bitField0_ = (bitField0_ & ~0x00000010); + isUpgradeSupported_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DbVersionProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DbVersionProperties) + private static final com.google.cloud.oracledatabase.v1.DbVersionProperties DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DbVersionProperties(); + } + + public static com.google.cloud.oracledatabase.v1.DbVersionProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DbVersionProperties 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.oracledatabase.v1.DbVersionProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionPropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionPropertiesOrBuilder.java new file mode 100644 index 000000000000..63f57e27dff2 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionPropertiesOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DbVersionPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DbVersionProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. A valid Oracle Database version.
                                              +   * 
                                              + * + * string version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
                                              +   * Output only. A valid Oracle Database version.
                                              +   * 
                                              + * + * string version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
                                              +   * Output only. True if this version of the Oracle Database software is the
                                              +   * latest version for a release.
                                              +   * 
                                              + * + * bool is_latest_for_major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isLatestForMajorVersion. + */ + boolean getIsLatestForMajorVersion(); + + /** + * + * + *
                                              +   * Output only. True if this version of the Oracle Database software supports
                                              +   * pluggable databases.
                                              +   * 
                                              + * + * bool supports_pdb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The supportsPdb. + */ + boolean getSupportsPdb(); + + /** + * + * + *
                                              +   * Output only. True if this version of the Oracle Database software is the
                                              +   * preview version.
                                              +   * 
                                              + * + * bool is_preview_db_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isPreviewDbVersion. + */ + boolean getIsPreviewDbVersion(); + + /** + * + * + *
                                              +   * Output only. True if this version of the Oracle Database software is
                                              +   * supported for Upgrade.
                                              +   * 
                                              + * + * bool is_upgrade_supported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isUpgradeSupported. + */ + boolean getIsUpgradeSupported(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionProto.java new file mode 100644 index 000000000000..6c7e57537b19 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionProto.java @@ -0,0 +1,142 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class DbVersionProto { + private DbVersionProto() {} + + 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_oracledatabase_v1_DbVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_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/cloud/oracledatabase/v1/db_version.proto\022\036google.cloud.oracledatabase.v" + + "1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\364\001\n" + + "\tDbVersion\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022L\n\n" + + "properties\030\002 \001(\01323.goo" + + "gle.cloud.oracledatabase.v1.DbVersionPropertiesB\003\340A\003:\205\001\352A\201\001\n" + + "\'oracledatabase.googleapis.com/DbVersion\022?projects/{project}" + + "/locations/{location}/dbVersions/{db_version}*\n" + + "dbVersions2\tdbVersion\"\267\001\n" + + "\023DbVersionProperties\022\024\n" + + "\007version\030\001 \001(\tB\003\340A\003\022(\n" + + "\033is_latest_for_major_version\030\002 \001(\010B\003\340A\003\022\031\n" + + "\014supports_pdb\030\003 \001(\010B\003\340A\003\022\"\n" + + "\025is_preview_db_version\030\004 \001(\010B\003\340A\003\022!\n" + + "\024is_upgrade_supported\030\005 \001(\010B\003\340A\003\"\236\001\n" + + "\025ListDbVersionsRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'oracledatabase.googleapis.com/DbVersion\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\"q\n" + + "\026ListDbVersionsResponse\022>\n" + + "\013db_versions\030\001 \003(\0132).google.cloud.oracledatabase.v1.DbVersion\022\027\n" + + "\017next_page_token\030\002 \001(\tB\350\001\n" + + "\"com.google.cloud.oracledatabase.v1B\016DbVersionProtoP\001ZJcloud.googl" + + "e.com/go/oracledatabase/apiv1/oracledata" + + "basepb;oracledatabasepb\252\002\036Google.Cloud.O" + + "racleDatabase.V1\312\002\036Google\\Cloud\\OracleDa" + + "tabase\\V1\352\002!Google::Cloud::OracleDatabase::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(), + }); + internal_static_google_cloud_oracledatabase_v1_DbVersion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_DbVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbVersion_descriptor, + new java.lang.String[] { + "Name", "Properties", + }); + internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DbVersionProperties_descriptor, + new java.lang.String[] { + "Version", + "IsLatestForMajorVersion", + "SupportsPdb", + "IsPreviewDbVersion", + "IsUpgradeSupported", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_descriptor, + new java.lang.String[] { + "DbVersions", "NextPageToken", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteDbSystemRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteDbSystemRequest.java new file mode 100644 index 000000000000..517b944297f1 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteDbSystemRequest.java @@ -0,0 +1,908 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `DbSystem.Delete`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteDbSystemRequest} + */ +public final class DeleteDbSystemRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DeleteDbSystemRequest) + DeleteDbSystemRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteDbSystemRequest.newBuilder() to construct. + private DeleteDbSystemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDbSystemRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDbSystemRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest.class, + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +   * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +   * 
                                              + * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + 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.oracledatabase.v1.DeleteDbSystemRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest other = + (com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest 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.oracledatabase.v1.DeleteDbSystemRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest 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.oracledatabase.v1.DeleteDbSystemRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `DbSystem.Delete`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteDbSystemRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DeleteDbSystemRequest) + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest.class, + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_DeleteDbSystemRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest build() { + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest buildPartial() { + com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest result = + new com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest other) { + if (other == com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + requestId_ = 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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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 requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DeleteDbSystemRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DeleteDbSystemRequest) + private static final com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest(); + } + + public static com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDbSystemRequest 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.oracledatabase.v1.DeleteDbSystemRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteDbSystemRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteDbSystemRequestOrBuilder.java new file mode 100644 index 000000000000..49d9838a8bc8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteDbSystemRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DeleteDbSystemRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DeleteDbSystemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExadbVmClusterRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExadbVmClusterRequest.java new file mode 100644 index 000000000000..1c96ab725022 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExadbVmClusterRequest.java @@ -0,0 +1,914 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `ExadbVmCluster.Delete`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest} + */ +public final class DeleteExadbVmClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest) + DeleteExadbVmClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteExadbVmClusterRequest.newBuilder() to construct. + private DeleteExadbVmClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteExadbVmClusterRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteExadbVmClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + 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.oracledatabase.v1.DeleteExadbVmClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest other = + (com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest 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.oracledatabase.v1.DeleteExadbVmClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest 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.oracledatabase.v1.DeleteExadbVmClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `ExadbVmCluster.Delete`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest) + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest build() { + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest buildPartial() { + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest result = + new com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + requestId_ = 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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 requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest) + private static final com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest(); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExadbVmClusterRequest 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.oracledatabase.v1.DeleteExadbVmClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExadbVmClusterRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExadbVmClusterRequestOrBuilder.java new file mode 100644 index 000000000000..da9ccfa9fc1c --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExadbVmClusterRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DeleteExadbVmClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExascaleDbStorageVaultRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExascaleDbStorageVaultRequest.java new file mode 100644 index 000000000000..82740fb5bad8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExascaleDbStorageVaultRequest.java @@ -0,0 +1,922 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request message for `ExascaleDbStorageVault.Delete`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest} + */ +public final class DeleteExascaleDbStorageVaultRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest) + DeleteExascaleDbStorageVaultRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteExascaleDbStorageVaultRequest.newBuilder() to construct. + private DeleteExascaleDbStorageVaultRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteExascaleDbStorageVaultRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteExascaleDbStorageVaultRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest.class, + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the ExascaleDbStorageVault in the following format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +   * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +   * 
                                              + * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + 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.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest other = + (com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest 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.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest 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.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request message for `ExascaleDbStorageVault.Delete`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest) + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest.class, + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest build() { + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest buildPartial() { + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest result = + new com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + requestId_ = 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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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 requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest) + private static final com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest(); + } + + public static com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExascaleDbStorageVaultRequest 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.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExascaleDbStorageVaultRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExascaleDbStorageVaultRequestOrBuilder.java new file mode 100644 index 000000000000..727bfec2b0e1 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteExascaleDbStorageVaultRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DeleteExascaleDbStorageVaultRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the ExascaleDbStorageVault in the following format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the ExascaleDbStorageVault in the following format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbNetworkRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbNetworkRequest.java new file mode 100644 index 000000000000..b2d25440d209 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbNetworkRequest.java @@ -0,0 +1,908 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OdbNetwork.Delete`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest} + */ +public final class DeleteOdbNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest) + DeleteOdbNetworkRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteOdbNetworkRequest.newBuilder() to construct. + private DeleteOdbNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteOdbNetworkRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteOdbNetworkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest.class, + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the resource in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + 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.oracledatabase.v1.DeleteOdbNetworkRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest other = + (com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest 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.oracledatabase.v1.DeleteOdbNetworkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest 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.oracledatabase.v1.DeleteOdbNetworkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OdbNetwork.Delete`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest) + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest.class, + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest build() { + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest buildPartial() { + com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest result = + new com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest other) { + if (other == com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + requestId_ = 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest) + private static final com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest(); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOdbNetworkRequest 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.oracledatabase.v1.DeleteOdbNetworkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbNetworkRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbNetworkRequestOrBuilder.java new file mode 100644 index 000000000000..9dc7121a3b64 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbNetworkRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DeleteOdbNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the resource in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the resource in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbSubnetRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbSubnetRequest.java new file mode 100644 index 000000000000..bb90648f71a2 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbSubnetRequest.java @@ -0,0 +1,908 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OdbSubnet.Delete`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest} + */ +public final class DeleteOdbSubnetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest) + DeleteOdbSubnetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteOdbSubnetRequest.newBuilder() to construct. + private DeleteOdbSubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteOdbSubnetRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteOdbSubnetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest.class, + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the resource in the following format:
                                              +   * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +   * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +   * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +   * 
                                              + * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + 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.oracledatabase.v1.DeleteOdbSubnetRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest other = + (com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest 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.oracledatabase.v1.DeleteOdbSubnetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest 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.oracledatabase.v1.DeleteOdbSubnetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OdbSubnet.Delete`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest) + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest.class, + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest build() { + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest buildPartial() { + com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest result = + new com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest other) { + if (other == com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + requestId_ = 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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. The name of the resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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 requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest) + private static final com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest(); + } + + public static com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOdbSubnetRequest 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.oracledatabase.v1.DeleteOdbSubnetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbSubnetRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbSubnetRequestOrBuilder.java new file mode 100644 index 000000000000..a5ef00f9e457 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DeleteOdbSubnetRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface DeleteOdbSubnetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the resource in the following format:
                                              +   * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the resource in the following format:
                                              +   * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKey.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKey.java new file mode 100644 index 000000000000..38d9eefb5c42 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKey.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The encryption key used to encrypt the Autonomous Database.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.EncryptionKey} + */ +public final class EncryptionKey extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.EncryptionKey) + EncryptionKeyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EncryptionKey.newBuilder() to construct. + private EncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EncryptionKey() { + provider_ = 0; + kmsKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EncryptionKey(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.EncryptionKey.class, + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder.class); + } + + /** + * + * + *
                                              +   * The provider of the encryption key.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.EncryptionKey.Provider} + */ + public enum Provider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Google Managed KMS key, if selected, please provide the KMS key name.
                                              +     * 
                                              + * + * GOOGLE_MANAGED = 1; + */ + GOOGLE_MANAGED(1), + /** + * + * + *
                                              +     * Oracle Managed.
                                              +     * 
                                              + * + * ORACLE_MANAGED = 2; + */ + ORACLE_MANAGED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Google Managed KMS key, if selected, please provide the KMS key name.
                                              +     * 
                                              + * + * GOOGLE_MANAGED = 1; + */ + public static final int GOOGLE_MANAGED_VALUE = 1; + + /** + * + * + *
                                              +     * Oracle Managed.
                                              +     * 
                                              + * + * ORACLE_MANAGED = 2; + */ + public static final int ORACLE_MANAGED_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 Provider 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 Provider forNumber(int value) { + switch (value) { + case 0: + return PROVIDER_UNSPECIFIED; + case 1: + return GOOGLE_MANAGED; + case 2: + return ORACLE_MANAGED; + 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 Provider findValueByNumber(int number) { + return Provider.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.EncryptionKey.getDescriptor().getEnumTypes().get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider 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 Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.EncryptionKey.Provider) + } + + public static final int PROVIDER_FIELD_NUMBER = 1; + private int provider_ = 0; + + /** + * + * + *
                                              +   * Optional. The provider of the encryption key.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provider. + */ + @java.lang.Override + public int getProviderValue() { + return provider_; + } + + /** + * + * + *
                                              +   * Optional. The provider of the encryption key.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provider. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKey.Provider getProvider() { + com.google.cloud.oracledatabase.v1.EncryptionKey.Provider result = + com.google.cloud.oracledatabase.v1.EncryptionKey.Provider.forNumber(provider_); + return result == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.Provider.UNRECOGNIZED + : result; + } + + public static final int KMS_KEY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + + /** + * + * + *
                                              +   * Optional. The KMS key used to encrypt the Autonomous Database.
                                              +   * This field is required if the provider is GOOGLE_MANAGED.
                                              +   * The name of the KMS key resource in the following format:
                                              +   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                                              +   * 
                                              + * + * + * string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + 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(); + kmsKey_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The KMS key used to encrypt the Autonomous Database.
                                              +   * This field is required if the provider is GOOGLE_MANAGED.
                                              +   * The name of the KMS key resource in the following format:
                                              +   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                                              +   * 
                                              + * + * + * string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = 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 (provider_ + != com.google.cloud.oracledatabase.v1.EncryptionKey.Provider.PROVIDER_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, provider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (provider_ + != com.google.cloud.oracledatabase.v1.EncryptionKey.Provider.PROVIDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, provider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKey_); + } + 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.oracledatabase.v1.EncryptionKey)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.EncryptionKey other = + (com.google.cloud.oracledatabase.v1.EncryptionKey) obj; + + if (provider_ != other.provider_) return false; + if (!getKmsKey().equals(other.getKmsKey())) 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) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + provider_; + hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey 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.oracledatabase.v1.EncryptionKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey 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.oracledatabase.v1.EncryptionKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.EncryptionKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The encryption key used to encrypt the Autonomous Database.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.EncryptionKey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.EncryptionKey) + com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.EncryptionKey.class, + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.EncryptionKey.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + provider_ = 0; + kmsKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKey_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKey getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKey build() { + com.google.cloud.oracledatabase.v1.EncryptionKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKey buildPartial() { + com.google.cloud.oracledatabase.v1.EncryptionKey result = + new com.google.cloud.oracledatabase.v1.EncryptionKey(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.EncryptionKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kmsKey_ = kmsKey_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.EncryptionKey) { + return mergeFrom((com.google.cloud.oracledatabase.v1.EncryptionKey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.EncryptionKey other) { + if (other == com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance()) + return this; + if (other.provider_ != 0) { + setProviderValue(other.getProviderValue()); + } + if (!other.getKmsKey().isEmpty()) { + kmsKey_ = other.kmsKey_; + 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 8: + { + provider_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + kmsKey_ = 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 int provider_ = 0; + + /** + * + * + *
                                              +     * Optional. The provider of the encryption key.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provider. + */ + @java.lang.Override + public int getProviderValue() { + return provider_; + } + + /** + * + * + *
                                              +     * Optional. The provider of the encryption key.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderValue(int value) { + provider_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The provider of the encryption key.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provider. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKey.Provider getProvider() { + com.google.cloud.oracledatabase.v1.EncryptionKey.Provider result = + com.google.cloud.oracledatabase.v1.EncryptionKey.Provider.forNumber(provider_); + return result == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.Provider.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Optional. The provider of the encryption key.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider(com.google.cloud.oracledatabase.v1.EncryptionKey.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + provider_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The provider of the encryption key.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvider() { + bitField0_ = (bitField0_ & ~0x00000001); + provider_ = 0; + onChanged(); + return this; + } + + private java.lang.Object kmsKey_ = ""; + + /** + * + * + *
                                              +     * Optional. The KMS key used to encrypt the Autonomous Database.
                                              +     * This field is required if the provider is GOOGLE_MANAGED.
                                              +     * The name of the KMS key resource in the following format:
                                              +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                                              +     * 
                                              + * + * + * string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The KMS key used to encrypt the Autonomous Database.
                                              +     * This field is required if the provider is GOOGLE_MANAGED.
                                              +     * The name of the KMS key resource in the following format:
                                              +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                                              +     * 
                                              + * + * + * string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The KMS key used to encrypt the Autonomous Database.
                                              +     * This field is required if the provider is GOOGLE_MANAGED.
                                              +     * The name of the KMS key resource in the following format:
                                              +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                                              +     * 
                                              + * + * + * string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The KMS key used to encrypt the Autonomous Database.
                                              +     * This field is required if the provider is GOOGLE_MANAGED.
                                              +     * The name of the KMS key resource in the following format:
                                              +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                                              +     * 
                                              + * + * + * string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The KMS key used to encrypt the Autonomous Database.
                                              +     * This field is required if the provider is GOOGLE_MANAGED.
                                              +     * The name of the KMS key resource in the following format:
                                              +     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                                              +     * 
                                              + * + * + * string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.EncryptionKey) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.EncryptionKey) + private static final com.google.cloud.oracledatabase.v1.EncryptionKey DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.EncryptionKey(); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionKey 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.oracledatabase.v1.EncryptionKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKeyHistoryEntry.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKeyHistoryEntry.java new file mode 100644 index 000000000000..bd0f11506138 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKeyHistoryEntry.java @@ -0,0 +1,1084 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The history of the encryption keys used to encrypt the Autonomous Database.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry} + */ +public final class EncryptionKeyHistoryEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry) + EncryptionKeyHistoryEntryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EncryptionKeyHistoryEntry.newBuilder() to construct. + private EncryptionKeyHistoryEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EncryptionKeyHistoryEntry() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EncryptionKeyHistoryEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.class, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder.class); + } + + private int bitField0_; + public static final int ENCRYPTION_KEY_FIELD_NUMBER = 1; + private com.google.cloud.oracledatabase.v1.EncryptionKey encryptionKey_; + + /** + * + * + *
                                              +   * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionKey field is set. + */ + @java.lang.Override + public boolean hasEncryptionKey() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionKey. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKey getEncryptionKey() { + return encryptionKey_ == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; + } + + /** + * + * + *
                                              +   * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + return encryptionKey_ == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; + } + + public static final int ACTIVATION_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp activationTime_; + + /** + * + * + *
                                              +   * Output only. The date and time when the encryption key was activated on the
                                              +   * Autonomous Database..
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activationTime field is set. + */ + @java.lang.Override + public boolean hasActivationTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Output only. The date and time when the encryption key was activated on the
                                              +   * Autonomous Database..
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getActivationTime() { + return activationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : activationTime_; + } + + /** + * + * + *
                                              +   * Output only. The date and time when the encryption key was activated on the
                                              +   * Autonomous Database..
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getActivationTimeOrBuilder() { + return activationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : activationTime_; + } + + 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, getEncryptionKey()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getActivationTime()); + } + 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, getEncryptionKey()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getActivationTime()); + } + 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.oracledatabase.v1.EncryptionKeyHistoryEntry)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry other = + (com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry) obj; + + if (hasEncryptionKey() != other.hasEncryptionKey()) return false; + if (hasEncryptionKey()) { + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + } + if (hasActivationTime() != other.hasActivationTime()) return false; + if (hasActivationTime()) { + if (!getActivationTime().equals(other.getActivationTime())) 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 (hasEncryptionKey()) { + hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionKey().hashCode(); + } + if (hasActivationTime()) { + hash = (37 * hash) + ACTIVATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getActivationTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry 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.oracledatabase.v1.EncryptionKeyHistoryEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry 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.oracledatabase.v1.EncryptionKeyHistoryEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The history of the encryption keys used to encrypt the Autonomous Database.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry) + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.class, + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionKeyFieldBuilder(); + getActivationTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + encryptionKey_ = null; + if (encryptionKeyBuilder_ != null) { + encryptionKeyBuilder_.dispose(); + encryptionKeyBuilder_ = null; + } + activationTime_ = null; + if (activationTimeBuilder_ != null) { + activationTimeBuilder_.dispose(); + activationTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_EncryptionKeyHistoryEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry build() { + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry buildPartial() { + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry result = + new com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.encryptionKey_ = + encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.activationTime_ = + activationTimeBuilder_ == null ? activationTime_ : activationTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry) { + return mergeFrom((com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry other) { + if (other + == com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry.getDefaultInstance()) + return this; + if (other.hasEncryptionKey()) { + mergeEncryptionKey(other.getEncryptionKey()); + } + if (other.hasActivationTime()) { + mergeActivationTime(other.getActivationTime()); + } + 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(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getActivationTimeFieldBuilder().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.oracledatabase.v1.EncryptionKey encryptionKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.EncryptionKey, + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder, + com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder> + encryptionKeyBuilder_; + + /** + * + * + *
                                              +     * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionKey field is set. + */ + public boolean hasEncryptionKey() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +     * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionKey. + */ + public com.google.cloud.oracledatabase.v1.EncryptionKey getEncryptionKey() { + if (encryptionKeyBuilder_ == null) { + return encryptionKey_ == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; + } else { + return encryptionKeyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionKey(com.google.cloud.oracledatabase.v1.EncryptionKey value) { + if (encryptionKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionKey_ = value; + } else { + encryptionKeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionKey( + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder builderForValue) { + if (encryptionKeyBuilder_ == null) { + encryptionKey_ = builderForValue.build(); + } else { + encryptionKeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEncryptionKey(com.google.cloud.oracledatabase.v1.EncryptionKey value) { + if (encryptionKeyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && encryptionKey_ != null + && encryptionKey_ + != com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance()) { + getEncryptionKeyBuilder().mergeFrom(value); + } else { + encryptionKey_ = value; + } + } else { + encryptionKeyBuilder_.mergeFrom(value); + } + if (encryptionKey_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEncryptionKey() { + bitField0_ = (bitField0_ & ~0x00000001); + encryptionKey_ = null; + if (encryptionKeyBuilder_ != null) { + encryptionKeyBuilder_.dispose(); + encryptionKeyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.EncryptionKey.Builder getEncryptionKeyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEncryptionKeyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + if (encryptionKeyBuilder_ != null) { + return encryptionKeyBuilder_.getMessageOrBuilder(); + } else { + return encryptionKey_ == null + ? com.google.cloud.oracledatabase.v1.EncryptionKey.getDefaultInstance() + : encryptionKey_; + } + } + + /** + * + * + *
                                              +     * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.EncryptionKey, + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder, + com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder> + getEncryptionKeyFieldBuilder() { + if (encryptionKeyBuilder_ == null) { + encryptionKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.EncryptionKey, + com.google.cloud.oracledatabase.v1.EncryptionKey.Builder, + com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder>( + getEncryptionKey(), getParentForChildren(), isClean()); + encryptionKey_ = null; + } + return encryptionKeyBuilder_; + } + + private com.google.protobuf.Timestamp activationTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + activationTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time when the encryption key was activated on the
                                              +     * Autonomous Database..
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activationTime field is set. + */ + public boolean hasActivationTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time when the encryption key was activated on the
                                              +     * Autonomous Database..
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activationTime. + */ + public com.google.protobuf.Timestamp getActivationTime() { + if (activationTimeBuilder_ == null) { + return activationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : activationTime_; + } else { + return activationTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Output only. The date and time when the encryption key was activated on the
                                              +     * Autonomous Database..
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActivationTime(com.google.protobuf.Timestamp value) { + if (activationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + activationTime_ = value; + } else { + activationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time when the encryption key was activated on the
                                              +     * Autonomous Database..
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActivationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (activationTimeBuilder_ == null) { + activationTime_ = builderForValue.build(); + } else { + activationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time when the encryption key was activated on the
                                              +     * Autonomous Database..
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeActivationTime(com.google.protobuf.Timestamp value) { + if (activationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && activationTime_ != null + && activationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getActivationTimeBuilder().mergeFrom(value); + } else { + activationTime_ = value; + } + } else { + activationTimeBuilder_.mergeFrom(value); + } + if (activationTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time when the encryption key was activated on the
                                              +     * Autonomous Database..
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearActivationTime() { + bitField0_ = (bitField0_ & ~0x00000002); + activationTime_ = null; + if (activationTimeBuilder_ != null) { + activationTimeBuilder_.dispose(); + activationTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time when the encryption key was activated on the
                                              +     * Autonomous Database..
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getActivationTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getActivationTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time when the encryption key was activated on the
                                              +     * Autonomous Database..
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getActivationTimeOrBuilder() { + if (activationTimeBuilder_ != null) { + return activationTimeBuilder_.getMessageOrBuilder(); + } else { + return activationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : activationTime_; + } + } + + /** + * + * + *
                                              +     * Output only. The date and time when the encryption key was activated on the
                                              +     * Autonomous Database..
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getActivationTimeFieldBuilder() { + if (activationTimeBuilder_ == null) { + activationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getActivationTime(), getParentForChildren(), isClean()); + activationTime_ = null; + } + return activationTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry) + private static final com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry(); + } + + public static com.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionKeyHistoryEntry 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.oracledatabase.v1.EncryptionKeyHistoryEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKeyHistoryEntryOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKeyHistoryEntryOrBuilder.java new file mode 100644 index 000000000000..4077df6b5388 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKeyHistoryEntryOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface EncryptionKeyHistoryEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionKey field is set. + */ + boolean hasEncryptionKey(); + + /** + * + * + *
                                              +   * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionKey. + */ + com.google.cloud.oracledatabase.v1.EncryptionKey getEncryptionKey(); + + /** + * + * + *
                                              +   * Output only. The encryption key used to encrypt the Autonomous Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey encryption_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The date and time when the encryption key was activated on the
                                              +   * Autonomous Database..
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activationTime field is set. + */ + boolean hasActivationTime(); + + /** + * + * + *
                                              +   * Output only. The date and time when the encryption key was activated on the
                                              +   * Autonomous Database..
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activationTime. + */ + com.google.protobuf.Timestamp getActivationTime(); + + /** + * + * + *
                                              +   * Output only. The date and time when the encryption key was activated on the
                                              +   * Autonomous Database..
                                              +   * 
                                              + * + * + * .google.protobuf.Timestamp activation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getActivationTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKeyOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKeyOrBuilder.java new file mode 100644 index 000000000000..d2ea0869b651 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EncryptionKeyOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface EncryptionKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.EncryptionKey) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. The provider of the encryption key.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provider. + */ + int getProviderValue(); + + /** + * + * + *
                                              +   * Optional. The provider of the encryption key.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.EncryptionKey.Provider provider = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provider. + */ + com.google.cloud.oracledatabase.v1.EncryptionKey.Provider getProvider(); + + /** + * + * + *
                                              +   * Optional. The KMS key used to encrypt the Autonomous Database.
                                              +   * This field is required if the provider is GOOGLE_MANAGED.
                                              +   * The name of the KMS key resource in the following format:
                                              +   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                                              +   * 
                                              + * + * + * string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + + /** + * + * + *
                                              +   * Optional. The KMS key used to encrypt the Autonomous Database.
                                              +   * This field is required if the provider is GOOGLE_MANAGED.
                                              +   * The name of the KMS key resource in the following format:
                                              +   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
                                              +   * 
                                              + * + * + * string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmCluster.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmCluster.java new file mode 100644 index 000000000000..36c6cdfa8b7c --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmCluster.java @@ -0,0 +1,2916 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exadb_vm_cluster.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * ExadbVmCluster represents a cluster of VMs that are used to run Exadata
                                              + * workloads.
                                              + * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExadbVmCluster/
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExadbVmCluster} + */ +public final class ExadbVmCluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ExadbVmCluster) + ExadbVmClusterOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExadbVmCluster.newBuilder() to construct. + private ExadbVmCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExadbVmCluster() { + name_ = ""; + gcpOracleZone_ = ""; + odbNetwork_ = ""; + odbSubnet_ = ""; + backupOdbSubnet_ = ""; + displayName_ = ""; + entitlementId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExadbVmCluster(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExadbVmCluster.class, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Identifier. The name of the ExadbVmCluster resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
                                              +   * 
                                              + * + * 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. The name of the ExadbVmCluster resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
                                              +   * 
                                              + * + * 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 PROPERTIES_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties_; + + /** + * + * + *
                                              +   * Required. The properties of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. The properties of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.getDefaultInstance() + : properties_; + } + + /** + * + * + *
                                              +   * Required. The properties of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterPropertiesOrBuilder + getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.getDefaultInstance() + : properties_; + } + + public static final int GCP_ORACLE_ZONE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +   * Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is
                                              +   * hosted. Example: us-east4-b-r2. During creation, the system will pick the
                                              +   * zone assigned to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The gcpOracleZone. + */ + @java.lang.Override + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + 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(); + gcpOracleZone_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is
                                              +   * hosted. Example: us-east4-b-r2. During creation, the system will pick the
                                              +   * zone assigned to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for gcpOracleZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_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. The labels or tags associated with the ExadbVmCluster.
                                              +   * 
                                              + * + * map<string, string> labels = 5 [(.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. The labels or tags associated with the ExadbVmCluster.
                                              +   * 
                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +   * 
                                              + * + * map<string, string> labels = 5 [(.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. The labels or tags associated with the ExadbVmCluster.
                                              +   * 
                                              + * + * map<string, string> labels = 5 [(.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 ODB_NETWORK_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbNetwork_ = ""; + + /** + * + * + *
                                              +   * Optional. Immutable. The name of the OdbNetwork associated with the
                                              +   * ExadbVmCluster. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +   * optional but if specified, this should match the parent ODBNetwork of the
                                              +   * OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ + @java.lang.Override + public java.lang.String getOdbNetwork() { + java.lang.Object ref = odbNetwork_; + 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(); + odbNetwork_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. Immutable. The name of the OdbNetwork associated with the
                                              +   * ExadbVmCluster. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +   * optional but if specified, this should match the parent ODBNetwork of the
                                              +   * OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbNetworkBytes() { + java.lang.Object ref = odbNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ODB_SUBNET_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object odbSubnet_ = ""; + + /** + * + * + *
                                              +   * Required. Immutable. The name of the OdbSubnet associated with the
                                              +   * ExadbVmCluster for IP allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ + @java.lang.Override + public java.lang.String getOdbSubnet() { + java.lang.Object ref = odbSubnet_; + 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(); + odbSubnet_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. Immutable. The name of the OdbSubnet associated with the
                                              +   * ExadbVmCluster for IP allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdbSubnetBytes() { + java.lang.Object ref = odbSubnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_ODB_SUBNET_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupOdbSubnet_ = ""; + + /** + * + * + *
                                              +   * Required. Immutable. The name of the backup OdbSubnet associated with the
                                              +   * ExadbVmCluster. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string backup_odb_subnet = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The backupOdbSubnet. + */ + @java.lang.Override + public java.lang.String getBackupOdbSubnet() { + java.lang.Object ref = backupOdbSubnet_; + 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(); + backupOdbSubnet_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. Immutable. The name of the backup OdbSubnet associated with the
                                              +   * ExadbVmCluster. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string backup_odb_subnet = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupOdbSubnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupOdbSubnetBytes() { + java.lang.Object ref = backupOdbSubnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupOdbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +   * Required. Immutable. The display name for the ExadbVmCluster. The name does
                                              +   * not have to be unique within your project. The name must be 1-255
                                              +   * characters long and can only contain alphanumeric characters.
                                              +   * 
                                              + * + * + * string display_name = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. Immutable. The display name for the ExadbVmCluster. The name does
                                              +   * not have to be unique within your project. The name must be 1-255
                                              +   * characters long and can only contain alphanumeric characters.
                                              +   * 
                                              + * + * + * string display_name = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                              +   * Output only. The date and time that the ExadbVmCluster was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Output only. The date and time that the ExadbVmCluster was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 10 [(.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 date and time that the ExadbVmCluster was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 10 [(.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 ENTITLEMENT_ID_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object entitlementId_ = ""; + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * string entitlement_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + @java.lang.Override + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + 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(); + entitlementId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * string entitlement_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gcpOracleZone_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, odbNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, odbSubnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupOdbSubnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, backupOdbSubnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, entitlementId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gcpOracleZone_); + } + 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(5, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, odbNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(odbSubnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, odbSubnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupOdbSubnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, backupOdbSubnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, entitlementId_); + } + 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.oracledatabase.v1.ExadbVmCluster)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ExadbVmCluster other = + (com.google.cloud.oracledatabase.v1.ExadbVmCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!getGcpOracleZone().equals(other.getGcpOracleZone())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getOdbNetwork().equals(other.getOdbNetwork())) return false; + if (!getOdbSubnet().equals(other.getOdbSubnet())) return false; + if (!getBackupOdbSubnet().equals(other.getBackupOdbSubnet())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getEntitlementId().equals(other.getEntitlementId())) 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(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (37 * hash) + GCP_ORACLE_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGcpOracleZone().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + ODB_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getOdbNetwork().hashCode(); + hash = (37 * hash) + ODB_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getOdbSubnet().hashCode(); + hash = (37 * hash) + BACKUP_ODB_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getBackupOdbSubnet().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + ENTITLEMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntitlementId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster 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.oracledatabase.v1.ExadbVmCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster 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.oracledatabase.v1.ExadbVmCluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.ExadbVmCluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * ExadbVmCluster represents a cluster of VMs that are used to run Exadata
                                              +   * workloads.
                                              +   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExadbVmCluster/
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExadbVmCluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ExadbVmCluster) + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExadbVmCluster.class, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ExadbVmCluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + gcpOracleZone_ = ""; + internalGetMutableLabels().clear(); + odbNetwork_ = ""; + odbSubnet_ = ""; + backupOdbSubnet_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + entitlementId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmCluster getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmCluster build() { + com.google.cloud.oracledatabase.v1.ExadbVmCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmCluster buildPartial() { + com.google.cloud.oracledatabase.v1.ExadbVmCluster result = + new com.google.cloud.oracledatabase.v1.ExadbVmCluster(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ExadbVmCluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcpOracleZone_ = gcpOracleZone_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.odbNetwork_ = odbNetwork_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.odbSubnet_ = odbSubnet_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.backupOdbSubnet_ = backupOdbSubnet_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.entitlementId_ = entitlementId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ExadbVmCluster) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ExadbVmCluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ExadbVmCluster other) { + if (other == com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (!other.getGcpOracleZone().isEmpty()) { + gcpOracleZone_ = other.gcpOracleZone_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getOdbNetwork().isEmpty()) { + odbNetwork_ = other.odbNetwork_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getOdbSubnet().isEmpty()) { + odbSubnet_ = other.odbSubnet_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getBackupOdbSubnet().isEmpty()) { + backupOdbSubnet_ = other.backupOdbSubnet_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getEntitlementId().isEmpty()) { + entitlementId_ = other.entitlementId_; + bitField0_ |= 0x00000200; + 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: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + gcpOracleZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + odbNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + odbSubnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + backupOdbSubnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + entitlementId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + 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_ = ""; + + /** + * + * + *
                                              +     * Identifier. The name of the ExadbVmCluster resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
                                              +     * 
                                              + * + * 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. The name of the ExadbVmCluster resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
                                              +     * 
                                              + * + * 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. The name of the ExadbVmCluster resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the ExadbVmCluster resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the ExadbVmCluster resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties, + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterPropertiesOrBuilder> + propertiesBuilder_; + + /** + * + * + *
                                              +     * Required. The properties of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Required. The properties of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. The properties of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The properties of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The properties of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeProperties( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties + .getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The properties of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The properties of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.Builder + getPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. The properties of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExadbVmClusterPropertiesOrBuilder + getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.getDefaultInstance() + : properties_; + } + } + + /** + * + * + *
                                              +     * Required. The properties of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties, + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties, + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterPropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +     * Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is
                                              +     * hosted. Example: us-east4-b-r2. During creation, the system will pick the
                                              +     * zone assigned to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The gcpOracleZone. + */ + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpOracleZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is
                                              +     * hosted. Example: us-east4-b-r2. During creation, the system will pick the
                                              +     * zone assigned to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for gcpOracleZone. + */ + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is
                                              +     * hosted. Example: us-east4-b-r2. During creation, the system will pick the
                                              +     * zone assigned to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpOracleZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is
                                              +     * hosted. Example: us-east4-b-r2. During creation, the system will pick the
                                              +     * zone assigned to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearGcpOracleZone() { + gcpOracleZone_ = getDefaultInstance().getGcpOracleZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is
                                              +     * hosted. Example: us-east4-b-r2. During creation, the system will pick the
                                              +     * zone assigned to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpOracleZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +     * 
                                              + * + * map<string, string> labels = 5 [(.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. The labels or tags associated with the ExadbVmCluster.
                                              +     * 
                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +     * 
                                              + * + * map<string, string> labels = 5 [(.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. The labels or tags associated with the ExadbVmCluster.
                                              +     * 
                                              + * + * map<string, string> labels = 5 [(.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_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +     * 
                                              + * + * map<string, string> labels = 5 [(.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_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +     * 
                                              + * + * map<string, string> labels = 5 [(.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_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +     * 
                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object odbNetwork_ = ""; + + /** + * + * + *
                                              +     * Optional. Immutable. The name of the OdbNetwork associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ + public java.lang.String getOdbNetwork() { + java.lang.Object ref = odbNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + odbNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Immutable. The name of the OdbNetwork associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + public com.google.protobuf.ByteString getOdbNetworkBytes() { + java.lang.Object ref = odbNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Immutable. The name of the OdbNetwork associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The odbNetwork to set. + * @return This builder for chaining. + */ + public Builder setOdbNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + odbNetwork_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The name of the OdbNetwork associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOdbNetwork() { + odbNetwork_ = getDefaultInstance().getOdbNetwork(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The name of the OdbNetwork associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +     * optional but if specified, this should match the parent ODBNetwork of the
                                              +     * OdbSubnet.
                                              +     * 
                                              + * + * + * string odb_network = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for odbNetwork to set. + * @return This builder for chaining. + */ + public Builder setOdbNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + odbNetwork_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object odbSubnet_ = ""; + + /** + * + * + *
                                              +     * Required. Immutable. The name of the OdbSubnet associated with the
                                              +     * ExadbVmCluster for IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ + public java.lang.String getOdbSubnet() { + java.lang.Object ref = odbSubnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + odbSubnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of the OdbSubnet associated with the
                                              +     * ExadbVmCluster for IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + public com.google.protobuf.ByteString getOdbSubnetBytes() { + java.lang.Object ref = odbSubnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + odbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of the OdbSubnet associated with the
                                              +     * ExadbVmCluster for IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The odbSubnet to set. + * @return This builder for chaining. + */ + public Builder setOdbSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + odbSubnet_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of the OdbSubnet associated with the
                                              +     * ExadbVmCluster for IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOdbSubnet() { + odbSubnet_ = getDefaultInstance().getOdbSubnet(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of the OdbSubnet associated with the
                                              +     * ExadbVmCluster for IP allocation. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string odb_subnet = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for odbSubnet to set. + * @return This builder for chaining. + */ + public Builder setOdbSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + odbSubnet_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object backupOdbSubnet_ = ""; + + /** + * + * + *
                                              +     * Required. Immutable. The name of the backup OdbSubnet associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string backup_odb_subnet = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The backupOdbSubnet. + */ + public java.lang.String getBackupOdbSubnet() { + java.lang.Object ref = backupOdbSubnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupOdbSubnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of the backup OdbSubnet associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string backup_odb_subnet = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupOdbSubnet. + */ + public com.google.protobuf.ByteString getBackupOdbSubnetBytes() { + java.lang.Object ref = backupOdbSubnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupOdbSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of the backup OdbSubnet associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string backup_odb_subnet = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The backupOdbSubnet to set. + * @return This builder for chaining. + */ + public Builder setBackupOdbSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupOdbSubnet_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of the backup OdbSubnet associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string backup_odb_subnet = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBackupOdbSubnet() { + backupOdbSubnet_ = getDefaultInstance().getBackupOdbSubnet(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of the backup OdbSubnet associated with the
                                              +     * ExadbVmCluster. Format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * + * string backup_odb_subnet = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for backupOdbSubnet to set. + * @return This builder for chaining. + */ + public Builder setBackupOdbSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupOdbSubnet_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +     * Required. Immutable. The display name for the ExadbVmCluster. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * + * string display_name = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. The display name for the ExadbVmCluster. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * + * string display_name = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. The display name for the ExadbVmCluster. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * + * string display_name = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The display name for the ExadbVmCluster. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * + * string display_name = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The display name for the ExadbVmCluster. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * + * string display_name = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time that the ExadbVmCluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the ExadbVmCluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 10 [(.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 date and time that the ExadbVmCluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 10 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the ExadbVmCluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 10 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the ExadbVmCluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the ExadbVmCluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the ExadbVmCluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the ExadbVmCluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 10 [(.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 date and time that the ExadbVmCluster was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.lang.Object entitlementId_ = ""; + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * string entitlement_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entitlementId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * string entitlement_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * string entitlement_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entitlementId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * string entitlement_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEntitlementId() { + entitlementId_ = getDefaultInstance().getEntitlementId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * string entitlement_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entitlementId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ExadbVmCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ExadbVmCluster) + private static final com.google.cloud.oracledatabase.v1.ExadbVmCluster DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ExadbVmCluster(); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmCluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExadbVmCluster 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.oracledatabase.v1.ExadbVmCluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterName.java new file mode 100644 index 000000000000..f5cdeceb6a8c --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 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.oracledatabase.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 ExadbVmClusterName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_EXADB_VM_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String exadbVmCluster; + + @Deprecated + protected ExadbVmClusterName() { + project = null; + location = null; + exadbVmCluster = null; + } + + private ExadbVmClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + exadbVmCluster = Preconditions.checkNotNull(builder.getExadbVmCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getExadbVmCluster() { + return exadbVmCluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ExadbVmClusterName of(String project, String location, String exadbVmCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setExadbVmCluster(exadbVmCluster) + .build(); + } + + public static String format(String project, String location, String exadbVmCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setExadbVmCluster(exadbVmCluster) + .build() + .toString(); + } + + public static ExadbVmClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_EXADB_VM_CLUSTER.validatedMatch( + formattedString, "ExadbVmClusterName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("exadb_vm_cluster")); + } + + 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 (ExadbVmClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_EXADB_VM_CLUSTER.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 (exadbVmCluster != null) { + fieldMapBuilder.put("exadb_vm_cluster", exadbVmCluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_EXADB_VM_CLUSTER.instantiate( + "project", project, "location", location, "exadb_vm_cluster", exadbVmCluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ExadbVmClusterName that = ((ExadbVmClusterName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.exadbVmCluster, that.exadbVmCluster); + } + 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(exadbVmCluster); + return h; + } + + /** Builder for projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. */ + public static class Builder { + private String project; + private String location; + private String exadbVmCluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getExadbVmCluster() { + return exadbVmCluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setExadbVmCluster(String exadbVmCluster) { + this.exadbVmCluster = exadbVmCluster; + return this; + } + + private Builder(ExadbVmClusterName exadbVmClusterName) { + this.project = exadbVmClusterName.project; + this.location = exadbVmClusterName.location; + this.exadbVmCluster = exadbVmClusterName.exadbVmCluster; + } + + public ExadbVmClusterName build() { + return new ExadbVmClusterName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterOrBuilder.java new file mode 100644 index 000000000000..ffde33484219 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterOrBuilder.java @@ -0,0 +1,404 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exadb_vm_cluster.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ExadbVmClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ExadbVmCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Identifier. The name of the ExadbVmCluster resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Identifier. The name of the ExadbVmCluster resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Required. The properties of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + + /** + * + * + *
                                              +   * Required. The properties of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties getProperties(); + + /** + * + * + *
                                              +   * Required. The properties of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties properties = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterPropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * + * + *
                                              +   * Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is
                                              +   * hosted. Example: us-east4-b-r2. During creation, the system will pick the
                                              +   * zone assigned to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The gcpOracleZone. + */ + java.lang.String getGcpOracleZone(); + + /** + * + * + *
                                              +   * Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is
                                              +   * hosted. Example: us-east4-b-r2. During creation, the system will pick the
                                              +   * zone assigned to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for gcpOracleZone. + */ + com.google.protobuf.ByteString getGcpOracleZoneBytes(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +   * 
                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +   * 
                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +   * 
                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +   * 
                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExadbVmCluster.
                                              +   * 
                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                              +   * Optional. Immutable. The name of the OdbNetwork associated with the
                                              +   * ExadbVmCluster. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +   * optional but if specified, this should match the parent ODBNetwork of the
                                              +   * OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The odbNetwork. + */ + java.lang.String getOdbNetwork(); + + /** + * + * + *
                                              +   * Optional. Immutable. The name of the OdbNetwork associated with the
                                              +   * ExadbVmCluster. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
                                              +   * optional but if specified, this should match the parent ODBNetwork of the
                                              +   * OdbSubnet.
                                              +   * 
                                              + * + * + * string odb_network = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbNetwork. + */ + com.google.protobuf.ByteString getOdbNetworkBytes(); + + /** + * + * + *
                                              +   * Required. Immutable. The name of the OdbSubnet associated with the
                                              +   * ExadbVmCluster for IP allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The odbSubnet. + */ + java.lang.String getOdbSubnet(); + + /** + * + * + *
                                              +   * Required. Immutable. The name of the OdbSubnet associated with the
                                              +   * ExadbVmCluster for IP allocation. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string odb_subnet = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for odbSubnet. + */ + com.google.protobuf.ByteString getOdbSubnetBytes(); + + /** + * + * + *
                                              +   * Required. Immutable. The name of the backup OdbSubnet associated with the
                                              +   * ExadbVmCluster. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string backup_odb_subnet = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The backupOdbSubnet. + */ + java.lang.String getBackupOdbSubnet(); + + /** + * + * + *
                                              +   * Required. Immutable. The name of the backup OdbSubnet associated with the
                                              +   * ExadbVmCluster. Format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * + * string backup_odb_subnet = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupOdbSubnet. + */ + com.google.protobuf.ByteString getBackupOdbSubnetBytes(); + + /** + * + * + *
                                              +   * Required. Immutable. The display name for the ExadbVmCluster. The name does
                                              +   * not have to be unique within your project. The name must be 1-255
                                              +   * characters long and can only contain alphanumeric characters.
                                              +   * 
                                              + * + * + * string display_name = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                              +   * Required. Immutable. The display name for the ExadbVmCluster. The name does
                                              +   * not have to be unique within your project. The name must be 1-255
                                              +   * characters long and can only contain alphanumeric characters.
                                              +   * 
                                              + * + * + * string display_name = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                              +   * Output only. The date and time that the ExadbVmCluster was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the ExadbVmCluster was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the ExadbVmCluster was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * string entitlement_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + java.lang.String getEntitlementId(); + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * string entitlement_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + com.google.protobuf.ByteString getEntitlementIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterProperties.java new file mode 100644 index 000000000000..1a2a47f27adf --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterProperties.java @@ -0,0 +1,4840 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exadb_vm_cluster.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The properties of an ExadbVmCluster.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExadbVmClusterProperties} + */ +public final class ExadbVmClusterProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ExadbVmClusterProperties) + ExadbVmClusterPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExadbVmClusterProperties.newBuilder() to construct. + private ExadbVmClusterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExadbVmClusterProperties() { + clusterName_ = ""; + gridImageId_ = ""; + licenseModel_ = 0; + exascaleDbStorageVault_ = ""; + hostnamePrefix_ = ""; + hostname_ = ""; + sshPublicKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + lifecycleState_ = 0; + shapeAttribute_ = 0; + ociUri_ = ""; + giVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExadbVmClusterProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.class, + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.Builder.class); + } + + /** + * + * + *
                                              +   * The Oracle license model that applies to the ExaScale VM cluster
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel} + */ + public enum LicenseModel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Unspecified.
                                              +     * 
                                              + * + * LICENSE_MODEL_UNSPECIFIED = 0; + */ + LICENSE_MODEL_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Default is license included.
                                              +     * 
                                              + * + * LICENSE_INCLUDED = 1; + */ + LICENSE_INCLUDED(1), + /** + * + * + *
                                              +     * Bring your own license.
                                              +     * 
                                              + * + * BRING_YOUR_OWN_LICENSE = 2; + */ + BRING_YOUR_OWN_LICENSE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Unspecified.
                                              +     * 
                                              + * + * LICENSE_MODEL_UNSPECIFIED = 0; + */ + public static final int LICENSE_MODEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Default is license included.
                                              +     * 
                                              + * + * LICENSE_INCLUDED = 1; + */ + public static final int LICENSE_INCLUDED_VALUE = 1; + + /** + * + * + *
                                              +     * Bring your own license.
                                              +     * 
                                              + * + * BRING_YOUR_OWN_LICENSE = 2; + */ + public static final int BRING_YOUR_OWN_LICENSE_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 LicenseModel 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 LicenseModel forNumber(int value) { + switch (value) { + case 0: + return LICENSE_MODEL_UNSPECIFIED; + case 1: + return LICENSE_INCLUDED; + case 2: + return BRING_YOUR_OWN_LICENSE; + 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 LicenseModel findValueByNumber(int number) { + return LicenseModel.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final LicenseModel[] VALUES = values(); + + public static LicenseModel 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 LicenseModel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel) + } + + /** + * + * + *
                                              +   * The various lifecycle states of the VM cluster.
                                              +   * 
                                              + * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState} + */ + public enum ExadbVmClusterLifecycleState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
                                              +     * Indicates that the resource is in updating state.
                                              +     * 
                                              + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 4; + */ + TERMINATING(4), + /** + * + * + *
                                              +     * Indicates that the resource is in terminated state.
                                              +     * 
                                              + * + * TERMINATED = 5; + */ + TERMINATED(5), + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 6; + */ + FAILED(6), + /** + * + * + *
                                              +     * Indicates that the resource is in maintenance in progress state.
                                              +     * 
                                              + * + * MAINTENANCE_IN_PROGRESS = 7; + */ + MAINTENANCE_IN_PROGRESS(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + public static final int EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + + /** + * + * + *
                                              +     * Indicates that the resource is in updating state.
                                              +     * 
                                              + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 4; + */ + public static final int TERMINATING_VALUE = 4; + + /** + * + * + *
                                              +     * Indicates that the resource is in terminated state.
                                              +     * 
                                              + * + * TERMINATED = 5; + */ + public static final int TERMINATED_VALUE = 5; + + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + + /** + * + * + *
                                              +     * Indicates that the resource is in maintenance in progress state.
                                              +     * 
                                              + * + * MAINTENANCE_IN_PROGRESS = 7; + */ + public static final int MAINTENANCE_IN_PROGRESS_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 ExadbVmClusterLifecycleState 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 ExadbVmClusterLifecycleState forNumber(int value) { + switch (value) { + case 0: + return EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return UPDATING; + case 4: + return TERMINATING; + case 5: + return TERMINATED; + case 6: + return FAILED; + case 7: + return MAINTENANCE_IN_PROGRESS; + 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 ExadbVmClusterLifecycleState findValueByNumber(int number) { + return ExadbVmClusterLifecycleState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ExadbVmClusterLifecycleState[] VALUES = values(); + + public static ExadbVmClusterLifecycleState 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 ExadbVmClusterLifecycleState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState) + } + + /** + * + * + *
                                              +   * The shape attribute of the VM cluster. The type of Exascale storage used
                                              +   * for Exadata VM cluster. The default is SMART_STORAGE which supports Oracle
                                              +   * Database 23ai and later
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute} + */ + public enum ShapeAttribute implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * SHAPE_ATTRIBUTE_UNSPECIFIED = 0; + */ + SHAPE_ATTRIBUTE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Indicates that the resource is in smart storage.
                                              +     * 
                                              + * + * SMART_STORAGE = 1; + */ + SMART_STORAGE(1), + /** + * + * + *
                                              +     * Indicates that the resource is in block storage.
                                              +     * 
                                              + * + * BLOCK_STORAGE = 2; + */ + BLOCK_STORAGE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * SHAPE_ATTRIBUTE_UNSPECIFIED = 0; + */ + public static final int SHAPE_ATTRIBUTE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Indicates that the resource is in smart storage.
                                              +     * 
                                              + * + * SMART_STORAGE = 1; + */ + public static final int SMART_STORAGE_VALUE = 1; + + /** + * + * + *
                                              +     * Indicates that the resource is in block storage.
                                              +     * 
                                              + * + * BLOCK_STORAGE = 2; + */ + public static final int BLOCK_STORAGE_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 ShapeAttribute 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 ShapeAttribute forNumber(int value) { + switch (value) { + case 0: + return SHAPE_ATTRIBUTE_UNSPECIFIED; + case 1: + return SMART_STORAGE; + case 2: + return BLOCK_STORAGE; + 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 ShapeAttribute findValueByNumber(int number) { + return ShapeAttribute.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final ShapeAttribute[] VALUES = values(); + + public static ShapeAttribute 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 ShapeAttribute(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute) + } + + private int bitField0_; + public static final int CLUSTER_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterName_ = ""; + + /** + * + * + *
                                              +   * Optional. Immutable. The cluster name for Exascale vm cluster. The cluster
                                              +   * name must begin with an alphabetic character and may contain hyphens(-) but
                                              +   * can not contain underscores(_). It should be not more than 11 characters
                                              +   * and is not case sensitive. OCI Cluster name.
                                              +   * 
                                              + * + * + * string cluster_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The clusterName. + */ + @java.lang.Override + public java.lang.String getClusterName() { + java.lang.Object ref = clusterName_; + 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(); + clusterName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. Immutable. The cluster name for Exascale vm cluster. The cluster
                                              +   * name must begin with an alphabetic character and may contain hyphens(-) but
                                              +   * can not contain underscores(_). It should be not more than 11 characters
                                              +   * and is not case sensitive. OCI Cluster name.
                                              +   * 
                                              + * + * + * string cluster_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for clusterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterNameBytes() { + java.lang.Object ref = clusterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRID_IMAGE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gridImageId_ = ""; + + /** + * + * + *
                                              +   * Required. Immutable. Grid Infrastructure Version.
                                              +   * 
                                              + * + * + * string grid_image_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The gridImageId. + */ + @java.lang.Override + public java.lang.String getGridImageId() { + java.lang.Object ref = gridImageId_; + 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(); + gridImageId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. Immutable. Grid Infrastructure Version.
                                              +   * 
                                              + * + * + * string grid_image_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for gridImageId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGridImageIdBytes() { + java.lang.Object ref = gridImageId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gridImageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_COUNT_FIELD_NUMBER = 3; + private int nodeCount_ = 0; + + /** + * + * + *
                                              +   * Required. The number of nodes/VMs in the ExadbVmCluster.
                                              +   * 
                                              + * + * int32 node_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + public static final int ENABLED_ECPU_COUNT_PER_NODE_FIELD_NUMBER = 20; + private int enabledEcpuCountPerNode_ = 0; + + /** + * + * + *
                                              +   * Required. Immutable. The number of ECPUs enabled per node for an exadata vm
                                              +   * cluster on exascale infrastructure.
                                              +   * 
                                              + * + * + * int32 enabled_ecpu_count_per_node = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enabledEcpuCountPerNode. + */ + @java.lang.Override + public int getEnabledEcpuCountPerNode() { + return enabledEcpuCountPerNode_; + } + + public static final int ADDITIONAL_ECPU_COUNT_PER_NODE_FIELD_NUMBER = 21; + private int additionalEcpuCountPerNode_ = 0; + + /** + * + * + *
                                              +   * Optional. Immutable. The number of additional ECPUs per node for an Exadata
                                              +   * VM cluster on exascale infrastructure.
                                              +   * 
                                              + * + * + * int32 additional_ecpu_count_per_node = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The additionalEcpuCountPerNode. + */ + @java.lang.Override + public int getAdditionalEcpuCountPerNode() { + return additionalEcpuCountPerNode_; + } + + public static final int VM_FILE_SYSTEM_STORAGE_FIELD_NUMBER = 6; + private com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vmFileSystemStorage_; + + /** + * + * + *
                                              +   * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vmFileSystemStorage field is set. + */ + @java.lang.Override + public boolean hasVmFileSystemStorage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vmFileSystemStorage. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails getVmFileSystemStorage() { + return vmFileSystemStorage_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.getDefaultInstance() + : vmFileSystemStorage_; + } + + /** + * + * + *
                                              +   * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetailsOrBuilder + getVmFileSystemStorageOrBuilder() { + return vmFileSystemStorage_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.getDefaultInstance() + : vmFileSystemStorage_; + } + + public static final int LICENSE_MODEL_FIELD_NUMBER = 7; + private int licenseModel_ = 0; + + /** + * + * + *
                                              +   * Optional. Immutable. The license type of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel license_model = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for licenseModel. + */ + @java.lang.Override + public int getLicenseModelValue() { + return licenseModel_; + } + + /** + * + * + *
                                              +   * Optional. Immutable. The license type of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel license_model = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The licenseModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel + getLicenseModel() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel result = + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel.forNumber( + licenseModel_); + return result == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel.UNRECOGNIZED + : result; + } + + public static final int EXASCALE_DB_STORAGE_VAULT_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object exascaleDbStorageVault_ = ""; + + /** + * + * + *
                                              +   * Required. Immutable. The name of ExascaleDbStorageVault associated with the
                                              +   * ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a
                                              +   * new one can be created during the ExadbVmCluster creation (requires
                                              +   * storage_vault_properties to be set).
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +   * 
                                              + * + * + * string exascale_db_storage_vault = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The exascaleDbStorageVault. + */ + @java.lang.Override + public java.lang.String getExascaleDbStorageVault() { + java.lang.Object ref = exascaleDbStorageVault_; + 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(); + exascaleDbStorageVault_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. Immutable. The name of ExascaleDbStorageVault associated with the
                                              +   * ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a
                                              +   * new one can be created during the ExadbVmCluster creation (requires
                                              +   * storage_vault_properties to be set).
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +   * 
                                              + * + * + * string exascale_db_storage_vault = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exascaleDbStorageVault. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExascaleDbStorageVaultBytes() { + java.lang.Object ref = exascaleDbStorageVault_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exascaleDbStorageVault_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOSTNAME_PREFIX_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostnamePrefix_ = ""; + + /** + * + * + *
                                              +   * Required. Immutable. Prefix for VM cluster host names.
                                              +   * 
                                              + * + * + * string hostname_prefix = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The hostnamePrefix. + */ + @java.lang.Override + public java.lang.String getHostnamePrefix() { + java.lang.Object ref = hostnamePrefix_; + 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(); + hostnamePrefix_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. Immutable. Prefix for VM cluster host names.
                                              +   * 
                                              + * + * + * string hostname_prefix = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for hostnamePrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnamePrefixBytes() { + java.lang.Object ref = hostnamePrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostnamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOSTNAME_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + + /** + * + * + *
                                              +   * Output only. The hostname of the ExadbVmCluster.
                                              +   * 
                                              + * + * string hostname = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The hostname of the ExadbVmCluster.
                                              +   * 
                                              + * + * string hostname = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SSH_PUBLIC_KEYS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList getSshPublicKeysList() { + return sshPublicKeys_; + } + + /** + * + * + *
                                              +   * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + + /** + * + * + *
                                              +   * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + + /** + * + * + *
                                              +   * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + + public static final int DATA_COLLECTION_OPTIONS_FIELD_NUMBER = 12; + private com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon dataCollectionOptions_; + + /** + * + * + *
                                              +   * Optional. Immutable. Indicates user preference for data collection options.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the dataCollectionOptions field is set. + */ + @java.lang.Override + public boolean hasDataCollectionOptions() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Optional. Immutable. Indicates user preference for data collection options.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The dataCollectionOptions. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon getDataCollectionOptions() { + return dataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.getDefaultInstance() + : dataCollectionOptions_; + } + + /** + * + * + *
                                              +   * Optional. Immutable. Indicates user preference for data collection options.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommonOrBuilder + getDataCollectionOptionsOrBuilder() { + return dataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.getDefaultInstance() + : dataCollectionOptions_; + } + + public static final int TIME_ZONE_FIELD_NUMBER = 13; + private com.google.type.TimeZone timeZone_; + + /** + * + * + *
                                              +   * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the timeZone field is set. + */ + @java.lang.Override + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +   * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The timeZone. + */ + @java.lang.Override + public com.google.type.TimeZone getTimeZone() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + /** + * + * + *
                                              +   * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + public static final int LIFECYCLE_STATE_FIELD_NUMBER = 14; + private int lifecycleState_ = 0; + + /** + * + * + *
                                              +   * Output only. State of the cluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + + /** + * + * + *
                                              +   * Output only. State of the cluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + getLifecycleState() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + result = + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + .forNumber(lifecycleState_); + return result == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + .UNRECOGNIZED + : result; + } + + public static final int SHAPE_ATTRIBUTE_FIELD_NUMBER = 15; + private int shapeAttribute_ = 0; + + /** + * + * + *
                                              +   * Required. Immutable. The shape attribute of the VM cluster. The type of
                                              +   * Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE
                                              +   * which supports Oracle Database 23ai and later
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute shape_attribute = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for shapeAttribute. + */ + @java.lang.Override + public int getShapeAttributeValue() { + return shapeAttribute_; + } + + /** + * + * + *
                                              +   * Required. Immutable. The shape attribute of the VM cluster. The type of
                                              +   * Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE
                                              +   * which supports Oracle Database 23ai and later
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute shape_attribute = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The shapeAttribute. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute + getShapeAttribute() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute result = + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute.forNumber( + shapeAttribute_); + return result == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute.UNRECOGNIZED + : result; + } + + public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 16; + private int memorySizeGb_ = 0; + + /** + * + * + *
                                              +   * Output only. Memory per VM (GB) (Read-only): Shows the amount of memory
                                              +   * allocated to each VM. Memory is calculated based on 2.75 GB per Total
                                              +   * ECPUs.
                                              +   * 
                                              + * + * int32 memory_size_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + + public static final int SCAN_LISTENER_PORT_TCP_FIELD_NUMBER = 17; + private int scanListenerPortTcp_ = 0; + + /** + * + * + *
                                              +   * Optional. Immutable. SCAN listener port - TCP
                                              +   * 
                                              + * + * + * int32 scan_listener_port_tcp = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scanListenerPortTcp. + */ + @java.lang.Override + public int getScanListenerPortTcp() { + return scanListenerPortTcp_; + } + + public static final int OCI_URI_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object ociUri_ = ""; + + /** + * + * + *
                                              +   * Output only. Deep link to the OCI console to view this resource.
                                              +   * 
                                              + * + * string oci_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUri. + */ + @java.lang.Override + public java.lang.String getOciUri() { + java.lang.Object ref = ociUri_; + 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(); + ociUri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. Deep link to the OCI console to view this resource.
                                              +   * 
                                              + * + * string oci_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOciUriBytes() { + java.lang.Object ref = ociUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GI_VERSION_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object giVersion_ = ""; + + /** + * + * + *
                                              +   * Output only. The Oracle Grid Infrastructure (GI) software version.
                                              +   * 
                                              + * + * string gi_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The giVersion. + */ + @java.lang.Override + public java.lang.String getGiVersion() { + java.lang.Object ref = giVersion_; + 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(); + giVersion_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The Oracle Grid Infrastructure (GI) software version.
                                              +   * 
                                              + * + * string gi_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for giVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGiVersionBytes() { + java.lang.Object ref = giVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + giVersion_ = 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.GeneratedMessageV3.isStringEmpty(clusterName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gridImageId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gridImageId_); + } + if (nodeCount_ != 0) { + output.writeInt32(3, nodeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getVmFileSystemStorage()); + } + if (licenseModel_ + != com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel + .LICENSE_MODEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, licenseModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exascaleDbStorageVault_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, exascaleDbStorageVault_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostnamePrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, hostnamePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, hostname_); + } + for (int i = 0; i < sshPublicKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, sshPublicKeys_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(12, getDataCollectionOptions()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getTimeZone()); + } + if (lifecycleState_ + != com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + .EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, lifecycleState_); + } + if (shapeAttribute_ + != com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute + .SHAPE_ATTRIBUTE_UNSPECIFIED + .getNumber()) { + output.writeEnum(15, shapeAttribute_); + } + if (memorySizeGb_ != 0) { + output.writeInt32(16, memorySizeGb_); + } + if (scanListenerPortTcp_ != 0) { + output.writeInt32(17, scanListenerPortTcp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, ociUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(giVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, giVersion_); + } + if (enabledEcpuCountPerNode_ != 0) { + output.writeInt32(20, enabledEcpuCountPerNode_); + } + if (additionalEcpuCountPerNode_ != 0) { + output.writeInt32(21, additionalEcpuCountPerNode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gridImageId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gridImageId_); + } + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, nodeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVmFileSystemStorage()); + } + if (licenseModel_ + != com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel + .LICENSE_MODEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, licenseModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exascaleDbStorageVault_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, exascaleDbStorageVault_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostnamePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, hostnamePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, hostname_); + } + { + int dataSize = 0; + for (int i = 0; i < sshPublicKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(sshPublicKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getSshPublicKeysList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDataCollectionOptions()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getTimeZone()); + } + if (lifecycleState_ + != com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + .EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, lifecycleState_); + } + if (shapeAttribute_ + != com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute + .SHAPE_ATTRIBUTE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, shapeAttribute_); + } + if (memorySizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, memorySizeGb_); + } + if (scanListenerPortTcp_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, scanListenerPortTcp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, ociUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(giVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, giVersion_); + } + if (enabledEcpuCountPerNode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(20, enabledEcpuCountPerNode_); + } + if (additionalEcpuCountPerNode_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(21, additionalEcpuCountPerNode_); + } + 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.oracledatabase.v1.ExadbVmClusterProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties other = + (com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties) obj; + + if (!getClusterName().equals(other.getClusterName())) return false; + if (!getGridImageId().equals(other.getGridImageId())) return false; + if (getNodeCount() != other.getNodeCount()) return false; + if (getEnabledEcpuCountPerNode() != other.getEnabledEcpuCountPerNode()) return false; + if (getAdditionalEcpuCountPerNode() != other.getAdditionalEcpuCountPerNode()) return false; + if (hasVmFileSystemStorage() != other.hasVmFileSystemStorage()) return false; + if (hasVmFileSystemStorage()) { + if (!getVmFileSystemStorage().equals(other.getVmFileSystemStorage())) return false; + } + if (licenseModel_ != other.licenseModel_) return false; + if (!getExascaleDbStorageVault().equals(other.getExascaleDbStorageVault())) return false; + if (!getHostnamePrefix().equals(other.getHostnamePrefix())) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (!getSshPublicKeysList().equals(other.getSshPublicKeysList())) return false; + if (hasDataCollectionOptions() != other.hasDataCollectionOptions()) return false; + if (hasDataCollectionOptions()) { + if (!getDataCollectionOptions().equals(other.getDataCollectionOptions())) return false; + } + if (hasTimeZone() != other.hasTimeZone()) return false; + if (hasTimeZone()) { + if (!getTimeZone().equals(other.getTimeZone())) return false; + } + if (lifecycleState_ != other.lifecycleState_) return false; + if (shapeAttribute_ != other.shapeAttribute_) return false; + if (getMemorySizeGb() != other.getMemorySizeGb()) return false; + if (getScanListenerPortTcp() != other.getScanListenerPortTcp()) return false; + if (!getOciUri().equals(other.getOciUri())) return false; + if (!getGiVersion().equals(other.getGiVersion())) 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) + CLUSTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClusterName().hashCode(); + hash = (37 * hash) + GRID_IMAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + getGridImageId().hashCode(); + hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNodeCount(); + hash = (37 * hash) + ENABLED_ECPU_COUNT_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getEnabledEcpuCountPerNode(); + hash = (37 * hash) + ADDITIONAL_ECPU_COUNT_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalEcpuCountPerNode(); + if (hasVmFileSystemStorage()) { + hash = (37 * hash) + VM_FILE_SYSTEM_STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getVmFileSystemStorage().hashCode(); + } + hash = (37 * hash) + LICENSE_MODEL_FIELD_NUMBER; + hash = (53 * hash) + licenseModel_; + hash = (37 * hash) + EXASCALE_DB_STORAGE_VAULT_FIELD_NUMBER; + hash = (53 * hash) + getExascaleDbStorageVault().hashCode(); + hash = (37 * hash) + HOSTNAME_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getHostnamePrefix().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + if (getSshPublicKeysCount() > 0) { + hash = (37 * hash) + SSH_PUBLIC_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getSshPublicKeysList().hashCode(); + } + if (hasDataCollectionOptions()) { + hash = (37 * hash) + DATA_COLLECTION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDataCollectionOptions().hashCode(); + } + if (hasTimeZone()) { + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + } + hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; + hash = (53 * hash) + lifecycleState_; + hash = (37 * hash) + SHAPE_ATTRIBUTE_FIELD_NUMBER; + hash = (53 * hash) + shapeAttribute_; + hash = (37 * hash) + MEMORY_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMemorySizeGb(); + hash = (37 * hash) + SCAN_LISTENER_PORT_TCP_FIELD_NUMBER; + hash = (53 * hash) + getScanListenerPortTcp(); + hash = (37 * hash) + OCI_URI_FIELD_NUMBER; + hash = (53 * hash) + getOciUri().hashCode(); + hash = (37 * hash) + GI_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getGiVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties 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.oracledatabase.v1.ExadbVmClusterProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties 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.oracledatabase.v1.ExadbVmClusterProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The properties of an ExadbVmCluster.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExadbVmClusterProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ExadbVmClusterProperties) + com.google.cloud.oracledatabase.v1.ExadbVmClusterPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.class, + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVmFileSystemStorageFieldBuilder(); + getDataCollectionOptionsFieldBuilder(); + getTimeZoneFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterName_ = ""; + gridImageId_ = ""; + nodeCount_ = 0; + enabledEcpuCountPerNode_ = 0; + additionalEcpuCountPerNode_ = 0; + vmFileSystemStorage_ = null; + if (vmFileSystemStorageBuilder_ != null) { + vmFileSystemStorageBuilder_.dispose(); + vmFileSystemStorageBuilder_ = null; + } + licenseModel_ = 0; + exascaleDbStorageVault_ = ""; + hostnamePrefix_ = ""; + hostname_ = ""; + sshPublicKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dataCollectionOptions_ = null; + if (dataCollectionOptionsBuilder_ != null) { + dataCollectionOptionsBuilder_.dispose(); + dataCollectionOptionsBuilder_ = null; + } + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + lifecycleState_ = 0; + shapeAttribute_ = 0; + memorySizeGb_ = 0; + scanListenerPortTcp_ = 0; + ociUri_ = ""; + giVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties build() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties buildPartial() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties result = + new com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterName_ = clusterName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gridImageId_ = gridImageId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.nodeCount_ = nodeCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enabledEcpuCountPerNode_ = enabledEcpuCountPerNode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.additionalEcpuCountPerNode_ = additionalEcpuCountPerNode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.vmFileSystemStorage_ = + vmFileSystemStorageBuilder_ == null + ? vmFileSystemStorage_ + : vmFileSystemStorageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.licenseModel_ = licenseModel_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.exascaleDbStorageVault_ = exascaleDbStorageVault_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.hostnamePrefix_ = hostnamePrefix_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + sshPublicKeys_.makeImmutable(); + result.sshPublicKeys_ = sshPublicKeys_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.dataCollectionOptions_ = + dataCollectionOptionsBuilder_ == null + ? dataCollectionOptions_ + : dataCollectionOptionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.lifecycleState_ = lifecycleState_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.shapeAttribute_ = shapeAttribute_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.memorySizeGb_ = memorySizeGb_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.scanListenerPortTcp_ = scanListenerPortTcp_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.ociUri_ = ociUri_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.giVersion_ = giVersion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties other) { + if (other == com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.getDefaultInstance()) + return this; + if (!other.getClusterName().isEmpty()) { + clusterName_ = other.clusterName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGridImageId().isEmpty()) { + gridImageId_ = other.gridImageId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (other.getEnabledEcpuCountPerNode() != 0) { + setEnabledEcpuCountPerNode(other.getEnabledEcpuCountPerNode()); + } + if (other.getAdditionalEcpuCountPerNode() != 0) { + setAdditionalEcpuCountPerNode(other.getAdditionalEcpuCountPerNode()); + } + if (other.hasVmFileSystemStorage()) { + mergeVmFileSystemStorage(other.getVmFileSystemStorage()); + } + if (other.licenseModel_ != 0) { + setLicenseModelValue(other.getLicenseModelValue()); + } + if (!other.getExascaleDbStorageVault().isEmpty()) { + exascaleDbStorageVault_ = other.exascaleDbStorageVault_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getHostnamePrefix().isEmpty()) { + hostnamePrefix_ = other.hostnamePrefix_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.sshPublicKeys_.isEmpty()) { + if (sshPublicKeys_.isEmpty()) { + sshPublicKeys_ = other.sshPublicKeys_; + bitField0_ |= 0x00000400; + } else { + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.addAll(other.sshPublicKeys_); + } + onChanged(); + } + if (other.hasDataCollectionOptions()) { + mergeDataCollectionOptions(other.getDataCollectionOptions()); + } + if (other.hasTimeZone()) { + mergeTimeZone(other.getTimeZone()); + } + if (other.lifecycleState_ != 0) { + setLifecycleStateValue(other.getLifecycleStateValue()); + } + if (other.shapeAttribute_ != 0) { + setShapeAttributeValue(other.getShapeAttributeValue()); + } + if (other.getMemorySizeGb() != 0) { + setMemorySizeGb(other.getMemorySizeGb()); + } + if (other.getScanListenerPortTcp() != 0) { + setScanListenerPortTcp(other.getScanListenerPortTcp()); + } + if (!other.getOciUri().isEmpty()) { + ociUri_ = other.ociUri_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (!other.getGiVersion().isEmpty()) { + giVersion_ = other.giVersion_; + bitField0_ |= 0x00040000; + 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: + { + clusterName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + gridImageId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + nodeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 50: + { + input.readMessage( + getVmFileSystemStorageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + licenseModel_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + exascaleDbStorageVault_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + hostnamePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(s); + break; + } // case 90 + case 98: + { + input.readMessage( + getDataCollectionOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + input.readMessage(getTimeZoneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + lifecycleState_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: + { + shapeAttribute_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: + { + memorySizeGb_ = input.readInt32(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: + { + scanListenerPortTcp_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 146: + { + ociUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: + { + giVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 160: + { + enabledEcpuCountPerNode_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 160 + case 168: + { + additionalEcpuCountPerNode_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 168 + 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 clusterName_ = ""; + + /** + * + * + *
                                              +     * Optional. Immutable. The cluster name for Exascale vm cluster. The cluster
                                              +     * name must begin with an alphabetic character and may contain hyphens(-) but
                                              +     * can not contain underscores(_). It should be not more than 11 characters
                                              +     * and is not case sensitive. OCI Cluster name.
                                              +     * 
                                              + * + * + * string cluster_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The clusterName. + */ + public java.lang.String getClusterName() { + java.lang.Object ref = clusterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Immutable. The cluster name for Exascale vm cluster. The cluster
                                              +     * name must begin with an alphabetic character and may contain hyphens(-) but
                                              +     * can not contain underscores(_). It should be not more than 11 characters
                                              +     * and is not case sensitive. OCI Cluster name.
                                              +     * 
                                              + * + * + * string cluster_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for clusterName. + */ + public com.google.protobuf.ByteString getClusterNameBytes() { + java.lang.Object ref = clusterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. Immutable. The cluster name for Exascale vm cluster. The cluster
                                              +     * name must begin with an alphabetic character and may contain hyphens(-) but
                                              +     * can not contain underscores(_). It should be not more than 11 characters
                                              +     * and is not case sensitive. OCI Cluster name.
                                              +     * 
                                              + * + * + * string cluster_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The clusterName to set. + * @return This builder for chaining. + */ + public Builder setClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The cluster name for Exascale vm cluster. The cluster
                                              +     * name must begin with an alphabetic character and may contain hyphens(-) but
                                              +     * can not contain underscores(_). It should be not more than 11 characters
                                              +     * and is not case sensitive. OCI Cluster name.
                                              +     * 
                                              + * + * + * string cluster_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearClusterName() { + clusterName_ = getDefaultInstance().getClusterName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The cluster name for Exascale vm cluster. The cluster
                                              +     * name must begin with an alphabetic character and may contain hyphens(-) but
                                              +     * can not contain underscores(_). It should be not more than 11 characters
                                              +     * and is not case sensitive. OCI Cluster name.
                                              +     * 
                                              + * + * + * string cluster_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for clusterName to set. + * @return This builder for chaining. + */ + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object gridImageId_ = ""; + + /** + * + * + *
                                              +     * Required. Immutable. Grid Infrastructure Version.
                                              +     * 
                                              + * + * + * string grid_image_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The gridImageId. + */ + public java.lang.String getGridImageId() { + java.lang.Object ref = gridImageId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gridImageId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. Grid Infrastructure Version.
                                              +     * 
                                              + * + * + * string grid_image_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for gridImageId. + */ + public com.google.protobuf.ByteString getGridImageIdBytes() { + java.lang.Object ref = gridImageId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gridImageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. Grid Infrastructure Version.
                                              +     * 
                                              + * + * + * string grid_image_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The gridImageId to set. + * @return This builder for chaining. + */ + public Builder setGridImageId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gridImageId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. Grid Infrastructure Version.
                                              +     * 
                                              + * + * + * string grid_image_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearGridImageId() { + gridImageId_ = getDefaultInstance().getGridImageId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. Grid Infrastructure Version.
                                              +     * 
                                              + * + * + * string grid_image_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for gridImageId to set. + * @return This builder for chaining. + */ + public Builder setGridImageIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gridImageId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int nodeCount_; + + /** + * + * + *
                                              +     * Required. The number of nodes/VMs in the ExadbVmCluster.
                                              +     * 
                                              + * + * int32 node_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + /** + * + * + *
                                              +     * Required. The number of nodes/VMs in the ExadbVmCluster.
                                              +     * 
                                              + * + * int32 node_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeCount to set. + * @return This builder for chaining. + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The number of nodes/VMs in the ExadbVmCluster.
                                              +     * 
                                              + * + * int32 node_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeCount() { + bitField0_ = (bitField0_ & ~0x00000004); + nodeCount_ = 0; + onChanged(); + return this; + } + + private int enabledEcpuCountPerNode_; + + /** + * + * + *
                                              +     * Required. Immutable. The number of ECPUs enabled per node for an exadata vm
                                              +     * cluster on exascale infrastructure.
                                              +     * 
                                              + * + * + * int32 enabled_ecpu_count_per_node = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enabledEcpuCountPerNode. + */ + @java.lang.Override + public int getEnabledEcpuCountPerNode() { + return enabledEcpuCountPerNode_; + } + + /** + * + * + *
                                              +     * Required. Immutable. The number of ECPUs enabled per node for an exadata vm
                                              +     * cluster on exascale infrastructure.
                                              +     * 
                                              + * + * + * int32 enabled_ecpu_count_per_node = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enabledEcpuCountPerNode to set. + * @return This builder for chaining. + */ + public Builder setEnabledEcpuCountPerNode(int value) { + + enabledEcpuCountPerNode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The number of ECPUs enabled per node for an exadata vm
                                              +     * cluster on exascale infrastructure.
                                              +     * 
                                              + * + * + * int32 enabled_ecpu_count_per_node = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnabledEcpuCountPerNode() { + bitField0_ = (bitField0_ & ~0x00000008); + enabledEcpuCountPerNode_ = 0; + onChanged(); + return this; + } + + private int additionalEcpuCountPerNode_; + + /** + * + * + *
                                              +     * Optional. Immutable. The number of additional ECPUs per node for an Exadata
                                              +     * VM cluster on exascale infrastructure.
                                              +     * 
                                              + * + * + * int32 additional_ecpu_count_per_node = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The additionalEcpuCountPerNode. + */ + @java.lang.Override + public int getAdditionalEcpuCountPerNode() { + return additionalEcpuCountPerNode_; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The number of additional ECPUs per node for an Exadata
                                              +     * VM cluster on exascale infrastructure.
                                              +     * 
                                              + * + * + * int32 additional_ecpu_count_per_node = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The additionalEcpuCountPerNode to set. + * @return This builder for chaining. + */ + public Builder setAdditionalEcpuCountPerNode(int value) { + + additionalEcpuCountPerNode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The number of additional ECPUs per node for an Exadata
                                              +     * VM cluster on exascale infrastructure.
                                              +     * 
                                              + * + * + * int32 additional_ecpu_count_per_node = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalEcpuCountPerNode() { + bitField0_ = (bitField0_ & ~0x00000010); + additionalEcpuCountPerNode_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vmFileSystemStorage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails, + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetailsOrBuilder> + vmFileSystemStorageBuilder_; + + /** + * + * + *
                                              +     * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vmFileSystemStorage field is set. + */ + public boolean hasVmFileSystemStorage() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                              +     * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vmFileSystemStorage. + */ + public com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails + getVmFileSystemStorage() { + if (vmFileSystemStorageBuilder_ == null) { + return vmFileSystemStorage_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.getDefaultInstance() + : vmFileSystemStorage_; + } else { + return vmFileSystemStorageBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setVmFileSystemStorage( + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails value) { + if (vmFileSystemStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmFileSystemStorage_ = value; + } else { + vmFileSystemStorageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setVmFileSystemStorage( + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.Builder builderForValue) { + if (vmFileSystemStorageBuilder_ == null) { + vmFileSystemStorage_ = builderForValue.build(); + } else { + vmFileSystemStorageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeVmFileSystemStorage( + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails value) { + if (vmFileSystemStorageBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && vmFileSystemStorage_ != null + && vmFileSystemStorage_ + != com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails + .getDefaultInstance()) { + getVmFileSystemStorageBuilder().mergeFrom(value); + } else { + vmFileSystemStorage_ = value; + } + } else { + vmFileSystemStorageBuilder_.mergeFrom(value); + } + if (vmFileSystemStorage_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearVmFileSystemStorage() { + bitField0_ = (bitField0_ & ~0x00000020); + vmFileSystemStorage_ = null; + if (vmFileSystemStorageBuilder_ != null) { + vmFileSystemStorageBuilder_.dispose(); + vmFileSystemStorageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.Builder + getVmFileSystemStorageBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getVmFileSystemStorageFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetailsOrBuilder + getVmFileSystemStorageOrBuilder() { + if (vmFileSystemStorageBuilder_ != null) { + return vmFileSystemStorageBuilder_.getMessageOrBuilder(); + } else { + return vmFileSystemStorage_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.getDefaultInstance() + : vmFileSystemStorage_; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails, + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetailsOrBuilder> + getVmFileSystemStorageFieldBuilder() { + if (vmFileSystemStorageBuilder_ == null) { + vmFileSystemStorageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails, + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetailsOrBuilder>( + getVmFileSystemStorage(), getParentForChildren(), isClean()); + vmFileSystemStorage_ = null; + } + return vmFileSystemStorageBuilder_; + } + + private int licenseModel_ = 0; + + /** + * + * + *
                                              +     * Optional. Immutable. The license type of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel license_model = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for licenseModel. + */ + @java.lang.Override + public int getLicenseModelValue() { + return licenseModel_; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The license type of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel license_model = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for licenseModel to set. + * @return This builder for chaining. + */ + public Builder setLicenseModelValue(int value) { + licenseModel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The license type of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel license_model = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The licenseModel. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel + getLicenseModel() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel result = + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel.forNumber( + licenseModel_); + return result == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The license type of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel license_model = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The licenseModel to set. + * @return This builder for chaining. + */ + public Builder setLicenseModel( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + licenseModel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The license type of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel license_model = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseModel() { + bitField0_ = (bitField0_ & ~0x00000040); + licenseModel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object exascaleDbStorageVault_ = ""; + + /** + * + * + *
                                              +     * Required. Immutable. The name of ExascaleDbStorageVault associated with the
                                              +     * ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a
                                              +     * new one can be created during the ExadbVmCluster creation (requires
                                              +     * storage_vault_properties to be set).
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * + * string exascale_db_storage_vault = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The exascaleDbStorageVault. + */ + public java.lang.String getExascaleDbStorageVault() { + java.lang.Object ref = exascaleDbStorageVault_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exascaleDbStorageVault_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of ExascaleDbStorageVault associated with the
                                              +     * ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a
                                              +     * new one can be created during the ExadbVmCluster creation (requires
                                              +     * storage_vault_properties to be set).
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * + * string exascale_db_storage_vault = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exascaleDbStorageVault. + */ + public com.google.protobuf.ByteString getExascaleDbStorageVaultBytes() { + java.lang.Object ref = exascaleDbStorageVault_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exascaleDbStorageVault_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of ExascaleDbStorageVault associated with the
                                              +     * ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a
                                              +     * new one can be created during the ExadbVmCluster creation (requires
                                              +     * storage_vault_properties to be set).
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * + * string exascale_db_storage_vault = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The exascaleDbStorageVault to set. + * @return This builder for chaining. + */ + public Builder setExascaleDbStorageVault(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exascaleDbStorageVault_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of ExascaleDbStorageVault associated with the
                                              +     * ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a
                                              +     * new one can be created during the ExadbVmCluster creation (requires
                                              +     * storage_vault_properties to be set).
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * + * string exascale_db_storage_vault = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExascaleDbStorageVault() { + exascaleDbStorageVault_ = getDefaultInstance().getExascaleDbStorageVault(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The name of ExascaleDbStorageVault associated with the
                                              +     * ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a
                                              +     * new one can be created during the ExadbVmCluster creation (requires
                                              +     * storage_vault_properties to be set).
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * + * string exascale_db_storage_vault = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for exascaleDbStorageVault to set. + * @return This builder for chaining. + */ + public Builder setExascaleDbStorageVaultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exascaleDbStorageVault_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object hostnamePrefix_ = ""; + + /** + * + * + *
                                              +     * Required. Immutable. Prefix for VM cluster host names.
                                              +     * 
                                              + * + * + * string hostname_prefix = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The hostnamePrefix. + */ + public java.lang.String getHostnamePrefix() { + java.lang.Object ref = hostnamePrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostnamePrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. Prefix for VM cluster host names.
                                              +     * 
                                              + * + * + * string hostname_prefix = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for hostnamePrefix. + */ + public com.google.protobuf.ByteString getHostnamePrefixBytes() { + java.lang.Object ref = hostnamePrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostnamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. Immutable. Prefix for VM cluster host names.
                                              +     * 
                                              + * + * + * string hostname_prefix = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The hostnamePrefix to set. + * @return This builder for chaining. + */ + public Builder setHostnamePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostnamePrefix_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. Prefix for VM cluster host names.
                                              +     * 
                                              + * + * + * string hostname_prefix = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearHostnamePrefix() { + hostnamePrefix_ = getDefaultInstance().getHostnamePrefix(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. Prefix for VM cluster host names.
                                              +     * 
                                              + * + * + * string hostname_prefix = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for hostnamePrefix to set. + * @return This builder for chaining. + */ + public Builder setHostnamePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostnamePrefix_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object hostname_ = ""; + + /** + * + * + *
                                              +     * Output only. The hostname of the ExadbVmCluster.
                                              +     * 
                                              + * + * string hostname = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The hostname of the ExadbVmCluster.
                                              +     * 
                                              + * + * string hostname = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The hostname of the ExadbVmCluster.
                                              +     * 
                                              + * + * string hostname = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostname_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The hostname of the ExadbVmCluster.
                                              +     * 
                                              + * + * string hostname = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The hostname of the ExadbVmCluster.
                                              +     * 
                                              + * + * string hostname = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList sshPublicKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSshPublicKeysIsMutable() { + if (!sshPublicKeys_.isModifiable()) { + sshPublicKeys_ = new com.google.protobuf.LazyStringArrayList(sshPublicKeys_); + } + bitField0_ |= 0x00000400; + } + + /** + * + * + *
                                              +     * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return A list containing the sshPublicKeys. + */ + public com.google.protobuf.ProtocolStringList getSshPublicKeysList() { + sshPublicKeys_.makeImmutable(); + return sshPublicKeys_; + } + + /** + * + * + *
                                              +     * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The count of sshPublicKeys. + */ + public int getSshPublicKeysCount() { + return sshPublicKeys_.size(); + } + + /** + * + * + *
                                              +     * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + public java.lang.String getSshPublicKeys(int index) { + return sshPublicKeys_.get(index); + } + + /** + * + * + *
                                              +     * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + public com.google.protobuf.ByteString getSshPublicKeysBytes(int index) { + return sshPublicKeys_.getByteString(index); + } + + /** + * + * + *
                                              +     * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param index The index to set the value at. + * @param value The sshPublicKeys to set. + * @return This builder for chaining. + */ + public Builder setSshPublicKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.set(index, value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param values The sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addAllSshPublicKeys(java.lang.Iterable values) { + ensureSshPublicKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sshPublicKeys_); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearSshPublicKeys() { + sshPublicKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +     * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes of the sshPublicKeys to add. + * @return This builder for chaining. + */ + public Builder addSshPublicKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSshPublicKeysIsMutable(); + sshPublicKeys_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon dataCollectionOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.Builder, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommonOrBuilder> + dataCollectionOptionsBuilder_; + + /** + * + * + *
                                              +     * Optional. Immutable. Indicates user preference for data collection options.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the dataCollectionOptions field is set. + */ + public boolean hasDataCollectionOptions() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
                                              +     * Optional. Immutable. Indicates user preference for data collection options.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The dataCollectionOptions. + */ + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon + getDataCollectionOptions() { + if (dataCollectionOptionsBuilder_ == null) { + return dataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.getDefaultInstance() + : dataCollectionOptions_; + } else { + return dataCollectionOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. Immutable. Indicates user preference for data collection options.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setDataCollectionOptions( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon value) { + if (dataCollectionOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataCollectionOptions_ = value; + } else { + dataCollectionOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. Indicates user preference for data collection options.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setDataCollectionOptions( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.Builder builderForValue) { + if (dataCollectionOptionsBuilder_ == null) { + dataCollectionOptions_ = builderForValue.build(); + } else { + dataCollectionOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. Indicates user preference for data collection options.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeDataCollectionOptions( + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon value) { + if (dataCollectionOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && dataCollectionOptions_ != null + && dataCollectionOptions_ + != com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon + .getDefaultInstance()) { + getDataCollectionOptionsBuilder().mergeFrom(value); + } else { + dataCollectionOptions_ = value; + } + } else { + dataCollectionOptionsBuilder_.mergeFrom(value); + } + if (dataCollectionOptions_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. Indicates user preference for data collection options.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearDataCollectionOptions() { + bitField0_ = (bitField0_ & ~0x00000800); + dataCollectionOptions_ = null; + if (dataCollectionOptionsBuilder_ != null) { + dataCollectionOptionsBuilder_.dispose(); + dataCollectionOptionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. Indicates user preference for data collection options.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.Builder + getDataCollectionOptionsBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getDataCollectionOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. Immutable. Indicates user preference for data collection options.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommonOrBuilder + getDataCollectionOptionsOrBuilder() { + if (dataCollectionOptionsBuilder_ != null) { + return dataCollectionOptionsBuilder_.getMessageOrBuilder(); + } else { + return dataCollectionOptions_ == null + ? com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.getDefaultInstance() + : dataCollectionOptions_; + } + } + + /** + * + * + *
                                              +     * Optional. Immutable. Indicates user preference for data collection options.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.Builder, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommonOrBuilder> + getDataCollectionOptionsFieldBuilder() { + if (dataCollectionOptionsBuilder_ == null) { + dataCollectionOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon.Builder, + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommonOrBuilder>( + getDataCollectionOptions(), getParentForChildren(), isClean()); + dataCollectionOptions_ = null; + } + return dataCollectionOptionsBuilder_; + } + + private com.google.type.TimeZone timeZone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + timeZoneBuilder_; + + /** + * + * + *
                                              +     * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the timeZone field is set. + */ + public boolean hasTimeZone() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
                                              +     * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The timeZone. + */ + public com.google.type.TimeZone getTimeZone() { + if (timeZoneBuilder_ == null) { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } else { + return timeZoneBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + } else { + timeZoneBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { + if (timeZoneBuilder_ == null) { + timeZone_ = builderForValue.build(); + } else { + timeZoneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && timeZone_ != null + && timeZone_ != com.google.type.TimeZone.getDefaultInstance()) { + getTimeZoneBuilder().mergeFrom(value); + } else { + timeZone_ = value; + } + } else { + timeZoneBuilder_.mergeFrom(value); + } + if (timeZone_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearTimeZone() { + bitField0_ = (bitField0_ & ~0x00001000); + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.type.TimeZone.Builder getTimeZoneBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getTimeZoneFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + if (timeZoneBuilder_ != null) { + return timeZoneBuilder_.getMessageOrBuilder(); + } else { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + } + + /** + * + * + *
                                              +     * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +     * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + getTimeZoneFieldBuilder() { + if (timeZoneBuilder_ == null) { + timeZoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder>( + getTimeZone(), getParentForChildren(), isClean()); + timeZone_ = null; + } + return timeZoneBuilder_; + } + + private int lifecycleState_ = 0; + + /** + * + * + *
                                              +     * Output only. State of the cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + + /** + * + * + *
                                              +     * Output only. State of the cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleStateValue(int value) { + lifecycleState_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + getLifecycleState() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + result = + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties + .ExadbVmClusterLifecycleState.forNumber(lifecycleState_); + return result == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. State of the cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleState( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + lifecycleState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the cluster.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLifecycleState() { + bitField0_ = (bitField0_ & ~0x00002000); + lifecycleState_ = 0; + onChanged(); + return this; + } + + private int shapeAttribute_ = 0; + + /** + * + * + *
                                              +     * Required. Immutable. The shape attribute of the VM cluster. The type of
                                              +     * Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE
                                              +     * which supports Oracle Database 23ai and later
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute shape_attribute = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for shapeAttribute. + */ + @java.lang.Override + public int getShapeAttributeValue() { + return shapeAttribute_; + } + + /** + * + * + *
                                              +     * Required. Immutable. The shape attribute of the VM cluster. The type of
                                              +     * Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE
                                              +     * which supports Oracle Database 23ai and later
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute shape_attribute = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for shapeAttribute to set. + * @return This builder for chaining. + */ + public Builder setShapeAttributeValue(int value) { + shapeAttribute_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The shape attribute of the VM cluster. The type of
                                              +     * Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE
                                              +     * which supports Oracle Database 23ai and later
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute shape_attribute = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The shapeAttribute. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute + getShapeAttribute() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute result = + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute.forNumber( + shapeAttribute_); + return result == null + ? com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Required. Immutable. The shape attribute of the VM cluster. The type of
                                              +     * Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE
                                              +     * which supports Oracle Database 23ai and later
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute shape_attribute = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The shapeAttribute to set. + * @return This builder for chaining. + */ + public Builder setShapeAttribute( + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + shapeAttribute_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Immutable. The shape attribute of the VM cluster. The type of
                                              +     * Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE
                                              +     * which supports Oracle Database 23ai and later
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute shape_attribute = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearShapeAttribute() { + bitField0_ = (bitField0_ & ~0x00004000); + shapeAttribute_ = 0; + onChanged(); + return this; + } + + private int memorySizeGb_; + + /** + * + * + *
                                              +     * Output only. Memory per VM (GB) (Read-only): Shows the amount of memory
                                              +     * allocated to each VM. Memory is calculated based on 2.75 GB per Total
                                              +     * ECPUs.
                                              +     * 
                                              + * + * int32 memory_size_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The memorySizeGb. + */ + @java.lang.Override + public int getMemorySizeGb() { + return memorySizeGb_; + } + + /** + * + * + *
                                              +     * Output only. Memory per VM (GB) (Read-only): Shows the amount of memory
                                              +     * allocated to each VM. Memory is calculated based on 2.75 GB per Total
                                              +     * ECPUs.
                                              +     * 
                                              + * + * int32 memory_size_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The memorySizeGb to set. + * @return This builder for chaining. + */ + public Builder setMemorySizeGb(int value) { + + memorySizeGb_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. Memory per VM (GB) (Read-only): Shows the amount of memory
                                              +     * allocated to each VM. Memory is calculated based on 2.75 GB per Total
                                              +     * ECPUs.
                                              +     * 
                                              + * + * int32 memory_size_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMemorySizeGb() { + bitField0_ = (bitField0_ & ~0x00008000); + memorySizeGb_ = 0; + onChanged(); + return this; + } + + private int scanListenerPortTcp_; + + /** + * + * + *
                                              +     * Optional. Immutable. SCAN listener port - TCP
                                              +     * 
                                              + * + * + * int32 scan_listener_port_tcp = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scanListenerPortTcp. + */ + @java.lang.Override + public int getScanListenerPortTcp() { + return scanListenerPortTcp_; + } + + /** + * + * + *
                                              +     * Optional. Immutable. SCAN listener port - TCP
                                              +     * 
                                              + * + * + * int32 scan_listener_port_tcp = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scanListenerPortTcp to set. + * @return This builder for chaining. + */ + public Builder setScanListenerPortTcp(int value) { + + scanListenerPortTcp_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Immutable. SCAN listener port - TCP
                                              +     * 
                                              + * + * + * int32 scan_listener_port_tcp = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScanListenerPortTcp() { + bitField0_ = (bitField0_ & ~0x00010000); + scanListenerPortTcp_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ociUri_ = ""; + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUri. + */ + public java.lang.String getOciUri() { + java.lang.Object ref = ociUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ociUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUri. + */ + public com.google.protobuf.ByteString getOciUriBytes() { + java.lang.Object ref = ociUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ociUri to set. + * @return This builder for chaining. + */ + public Builder setOciUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ociUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOciUri() { + ociUri_ = getDefaultInstance().getOciUri(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ociUri to set. + * @return This builder for chaining. + */ + public Builder setOciUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ociUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private java.lang.Object giVersion_ = ""; + + /** + * + * + *
                                              +     * Output only. The Oracle Grid Infrastructure (GI) software version.
                                              +     * 
                                              + * + * string gi_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The giVersion. + */ + public java.lang.String getGiVersion() { + java.lang.Object ref = giVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + giVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The Oracle Grid Infrastructure (GI) software version.
                                              +     * 
                                              + * + * string gi_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for giVersion. + */ + public com.google.protobuf.ByteString getGiVersionBytes() { + java.lang.Object ref = giVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + giVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The Oracle Grid Infrastructure (GI) software version.
                                              +     * 
                                              + * + * string gi_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The giVersion to set. + * @return This builder for chaining. + */ + public Builder setGiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + giVersion_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The Oracle Grid Infrastructure (GI) software version.
                                              +     * 
                                              + * + * string gi_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGiVersion() { + giVersion_ = getDefaultInstance().getGiVersion(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The Oracle Grid Infrastructure (GI) software version.
                                              +     * 
                                              + * + * string gi_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for giVersion to set. + * @return This builder for chaining. + */ + public Builder setGiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + giVersion_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ExadbVmClusterProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ExadbVmClusterProperties) + private static final com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties(); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExadbVmClusterProperties 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.oracledatabase.v1.ExadbVmClusterProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterPropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterPropertiesOrBuilder.java new file mode 100644 index 000000000000..8ddb9c0c8946 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterPropertiesOrBuilder.java @@ -0,0 +1,603 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exadb_vm_cluster.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ExadbVmClusterPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ExadbVmClusterProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. Immutable. The cluster name for Exascale vm cluster. The cluster
                                              +   * name must begin with an alphabetic character and may contain hyphens(-) but
                                              +   * can not contain underscores(_). It should be not more than 11 characters
                                              +   * and is not case sensitive. OCI Cluster name.
                                              +   * 
                                              + * + * + * string cluster_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The clusterName. + */ + java.lang.String getClusterName(); + + /** + * + * + *
                                              +   * Optional. Immutable. The cluster name for Exascale vm cluster. The cluster
                                              +   * name must begin with an alphabetic character and may contain hyphens(-) but
                                              +   * can not contain underscores(_). It should be not more than 11 characters
                                              +   * and is not case sensitive. OCI Cluster name.
                                              +   * 
                                              + * + * + * string cluster_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for clusterName. + */ + com.google.protobuf.ByteString getClusterNameBytes(); + + /** + * + * + *
                                              +   * Required. Immutable. Grid Infrastructure Version.
                                              +   * 
                                              + * + * + * string grid_image_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The gridImageId. + */ + java.lang.String getGridImageId(); + + /** + * + * + *
                                              +   * Required. Immutable. Grid Infrastructure Version.
                                              +   * 
                                              + * + * + * string grid_image_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for gridImageId. + */ + com.google.protobuf.ByteString getGridImageIdBytes(); + + /** + * + * + *
                                              +   * Required. The number of nodes/VMs in the ExadbVmCluster.
                                              +   * 
                                              + * + * int32 node_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + int getNodeCount(); + + /** + * + * + *
                                              +   * Required. Immutable. The number of ECPUs enabled per node for an exadata vm
                                              +   * cluster on exascale infrastructure.
                                              +   * 
                                              + * + * + * int32 enabled_ecpu_count_per_node = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enabledEcpuCountPerNode. + */ + int getEnabledEcpuCountPerNode(); + + /** + * + * + *
                                              +   * Optional. Immutable. The number of additional ECPUs per node for an Exadata
                                              +   * VM cluster on exascale infrastructure.
                                              +   * 
                                              + * + * + * int32 additional_ecpu_count_per_node = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The additionalEcpuCountPerNode. + */ + int getAdditionalEcpuCountPerNode(); + + /** + * + * + *
                                              +   * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vmFileSystemStorage field is set. + */ + boolean hasVmFileSystemStorage(); + + /** + * + * + *
                                              +   * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vmFileSystemStorage. + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails getVmFileSystemStorage(); + + /** + * + * + *
                                              +   * Required. Immutable. Total storage details for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails vm_file_system_storage = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetailsOrBuilder + getVmFileSystemStorageOrBuilder(); + + /** + * + * + *
                                              +   * Optional. Immutable. The license type of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel license_model = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for licenseModel. + */ + int getLicenseModelValue(); + + /** + * + * + *
                                              +   * Optional. Immutable. The license type of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel license_model = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The licenseModel. + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel getLicenseModel(); + + /** + * + * + *
                                              +   * Required. Immutable. The name of ExascaleDbStorageVault associated with the
                                              +   * ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a
                                              +   * new one can be created during the ExadbVmCluster creation (requires
                                              +   * storage_vault_properties to be set).
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +   * 
                                              + * + * + * string exascale_db_storage_vault = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The exascaleDbStorageVault. + */ + java.lang.String getExascaleDbStorageVault(); + + /** + * + * + *
                                              +   * Required. Immutable. The name of ExascaleDbStorageVault associated with the
                                              +   * ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a
                                              +   * new one can be created during the ExadbVmCluster creation (requires
                                              +   * storage_vault_properties to be set).
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +   * 
                                              + * + * + * string exascale_db_storage_vault = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exascaleDbStorageVault. + */ + com.google.protobuf.ByteString getExascaleDbStorageVaultBytes(); + + /** + * + * + *
                                              +   * Required. Immutable. Prefix for VM cluster host names.
                                              +   * 
                                              + * + * + * string hostname_prefix = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The hostnamePrefix. + */ + java.lang.String getHostnamePrefix(); + + /** + * + * + *
                                              +   * Required. Immutable. Prefix for VM cluster host names.
                                              +   * 
                                              + * + * + * string hostname_prefix = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for hostnamePrefix. + */ + com.google.protobuf.ByteString getHostnamePrefixBytes(); + + /** + * + * + *
                                              +   * Output only. The hostname of the ExadbVmCluster.
                                              +   * 
                                              + * + * string hostname = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + + /** + * + * + *
                                              +   * Output only. The hostname of the ExadbVmCluster.
                                              +   * 
                                              + * + * string hostname = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
                                              +   * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return A list containing the sshPublicKeys. + */ + java.util.List getSshPublicKeysList(); + + /** + * + * + *
                                              +   * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The count of sshPublicKeys. + */ + int getSshPublicKeysCount(); + + /** + * + * + *
                                              +   * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param index The index of the element to return. + * @return The sshPublicKeys at the given index. + */ + java.lang.String getSshPublicKeys(int index); + + /** + * + * + *
                                              +   * Required. Immutable. The SSH public keys for the ExadbVmCluster.
                                              +   * 
                                              + * + * + * repeated string ssh_public_keys = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sshPublicKeys at the given index. + */ + com.google.protobuf.ByteString getSshPublicKeysBytes(int index); + + /** + * + * + *
                                              +   * Optional. Immutable. Indicates user preference for data collection options.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the dataCollectionOptions field is set. + */ + boolean hasDataCollectionOptions(); + + /** + * + * + *
                                              +   * Optional. Immutable. Indicates user preference for data collection options.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The dataCollectionOptions. + */ + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommon getDataCollectionOptions(); + + /** + * + * + *
                                              +   * Optional. Immutable. Indicates user preference for data collection options.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DataCollectionOptionsCommon data_collection_options = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.oracledatabase.v1.DataCollectionOptionsCommonOrBuilder + getDataCollectionOptionsOrBuilder(); + + /** + * + * + *
                                              +   * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the timeZone field is set. + */ + boolean hasTimeZone(); + + /** + * + * + *
                                              +   * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The timeZone. + */ + com.google.type.TimeZone getTimeZone(); + + /** + * + * + *
                                              +   * Optional. Immutable. The time zone of the ExadbVmCluster.
                                              +   * 
                                              + * + * + * .google.type.TimeZone time_zone = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder(); + + /** + * + * + *
                                              +   * Output only. State of the cluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + int getLifecycleStateValue(); + + /** + * + * + *
                                              +   * Output only. State of the cluster.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState + getLifecycleState(); + + /** + * + * + *
                                              +   * Required. Immutable. The shape attribute of the VM cluster. The type of
                                              +   * Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE
                                              +   * which supports Oracle Database 23ai and later
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute shape_attribute = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for shapeAttribute. + */ + int getShapeAttributeValue(); + + /** + * + * + *
                                              +   * Required. Immutable. The shape attribute of the VM cluster. The type of
                                              +   * Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE
                                              +   * which supports Oracle Database 23ai and later
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute shape_attribute = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The shapeAttribute. + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute getShapeAttribute(); + + /** + * + * + *
                                              +   * Output only. Memory per VM (GB) (Read-only): Shows the amount of memory
                                              +   * allocated to each VM. Memory is calculated based on 2.75 GB per Total
                                              +   * ECPUs.
                                              +   * 
                                              + * + * int32 memory_size_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The memorySizeGb. + */ + int getMemorySizeGb(); + + /** + * + * + *
                                              +   * Optional. Immutable. SCAN listener port - TCP
                                              +   * 
                                              + * + * + * int32 scan_listener_port_tcp = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scanListenerPortTcp. + */ + int getScanListenerPortTcp(); + + /** + * + * + *
                                              +   * Output only. Deep link to the OCI console to view this resource.
                                              +   * 
                                              + * + * string oci_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUri. + */ + java.lang.String getOciUri(); + + /** + * + * + *
                                              +   * Output only. Deep link to the OCI console to view this resource.
                                              +   * 
                                              + * + * string oci_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUri. + */ + com.google.protobuf.ByteString getOciUriBytes(); + + /** + * + * + *
                                              +   * Output only. The Oracle Grid Infrastructure (GI) software version.
                                              +   * 
                                              + * + * string gi_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The giVersion. + */ + java.lang.String getGiVersion(); + + /** + * + * + *
                                              +   * Output only. The Oracle Grid Infrastructure (GI) software version.
                                              +   * 
                                              + * + * string gi_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for giVersion. + */ + com.google.protobuf.ByteString getGiVersionBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterProto.java new file mode 100644 index 000000000000..de6ef30cd9ae --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterProto.java @@ -0,0 +1,222 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exadb_vm_cluster.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class ExadbVmClusterProto { + private ExadbVmClusterProto() {} + + 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_oracledatabase_v1_ExadbVmCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_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" + + "5google/cloud/oracledatabase/v1/exadb_vm_cluster.proto\022\036google.cloud.oracledata" + + "base.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032+google/clou" + + "d/oracledatabase/v1/common.proto\032\037google" + + "/protobuf/timestamp.proto\032\032google/type/datetime.proto\"\213\006\n" + + "\016ExadbVmCluster\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022Q\n\n" + + "properties\030\002 \001(\01328.google" + + ".cloud.oracledatabase.v1.ExadbVmClusterPropertiesB\003\340A\002\022\037\n" + + "\017gcp_oracle_zone\030\003 \001(\tB\006\340A\003\340A\005\022O\n" + + "\006labels\030\005 \003(\0132:.google.cloud.o" + + "racledatabase.v1.ExadbVmCluster.LabelsEntryB\003\340A\001\022H\n" + + "\013odb_network\030\006 \001(\tB3\340A\001\340A\005\372A*\n" + + "(oracledatabase.googleapis.com/OdbNetwork\022F\n\n" + + "odb_subnet\030\007 \001(\tB2\340A\002\340A\005\372A)\n" + + "\'oracledatabase.googleapis.com/OdbSubnet\022M\n" + + "\021backup_odb_subnet\030\010 \001(\tB2\340A\002\340A\005\372A)\n" + + "\'oracledatabase.googleapis.com/OdbSubnet\022\034\n" + + "\014display_name\030\t \001(\tB\006\340A\002\340A\005\0224\n" + + "\013create_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" + + "\016entitlement_id\030\013 \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:\237\001\352A\233\001\n" + + ",oracledatabase.googleapis.com/ExadbVmCluster\022Jprojects/{project}/locations/{lo" + + "cation}/exadbVmClusters/{exadb_vm_cluster}*\017exadbVmClusters2\016exadbVmCluster\"A\n" + + "\034ExadbVmClusterStorageDetails\022!\n" + + "\024size_in_gbs_per_node\030\002 \001(\005B\003\340A\002\"\307\013\n" + + "\030ExadbVmClusterProperties\022\034\n" + + "\014cluster_name\030\001 \001(\tB\006\340A\001\340A\005\022\035\n\r" + + "grid_image_id\030\002 \001(\tB\006\340A\002\340A\005\022\027\n\n" + + "node_count\030\003 \001(\005B\003\340A\002\022+\n" + + "\033enabled_ecpu_count_per_node\030\024 \001(\005B\006\340A\002\340A\005\022.\n" + + "\036additional_ecpu_count_per_node\030\025 \001(\005B\006\340A\001\340A\005\022d\n" + + "\026vm_file_system_storage\030\006 \001(\0132<.google.cloud.or" + + "acledatabase.v1.ExadbVmClusterStorageDetailsB\006\340A\002\340A\005\022d\n\r" + + "license_model\030\007 \001(\0162E.go" + + "ogle.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModelB\006\340A\001\340A\005\022b\n" + + "\031exascale_db_storage_vault\030\010 \001(\tB?\340A\002\340A\005\372A6\n" + + "4oracledatabase.googleapis.com/ExascaleDbStorageVault\022\037\n" + + "\017hostname_prefix\030\t \001(\tB\006\340A\002\340A\005\022\025\n" + + "\010hostname\030\n" + + " \001(\tB\003\340A\003\022\037\n" + + "\017ssh_public_keys\030\013 \003(\tB\006\340A\002\340A\005\022d\n" + + "\027data_collection_options\030\014 \001(\0132;.google.cloud.oracleda" + + "tabase.v1.DataCollectionOptionsCommonB\006\340A\001\340A\005\0220\n" + + "\ttime_zone\030\r" + + " \001(\0132\025.google.type.TimeZoneB\006\340A\001\340A\005\022s\n" + + "\017lifecycle_state\030\016 \001(\0162U.google.cloud.oracledatabase.v1.ExadbV" + + "mClusterProperties.ExadbVmClusterLifecycleStateB\003\340A\003\022h\n" + + "\017shape_attribute\030\017 \001(\0162G.google.cloud.oracledatabase.v1.ExadbVmCl" + + "usterProperties.ShapeAttributeB\006\340A\002\340A\005\022\033\n" + + "\016memory_size_gb\030\020 \001(\005B\003\340A\003\022&\n" + + "\026scan_listener_port_tcp\030\021 \001(\005B\006\340A\001\340A\005\022\024\n" + + "\007oci_uri\030\022 \001(\tB\003\340A\003\022\027\n\n" + + "gi_version\030\023 \001(\tB\003\340A\003\"_\n" + + "\014LicenseModel\022\035\n" + + "\031LICENSE_MODEL_UNSPECIFIED\020\000\022\024\n" + + "\020LICENSE_INCLUDED\020\001\022\032\n" + + "\026BRING_YOUR_OWN_LICENSE\020\002\"\311\001\n" + + "\034ExadbVmClusterLifecycleState\0220\n" + + ",EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED\020\000\022\020\n" + + "\014PROVISIONING\020\001\022\r\n" + + "\tAVAILABLE\020\002\022\014\n" + + "\010UPDATING\020\003\022\017\n" + + "\013TERMINATING\020\004\022\016\n\n" + + "TERMINATED\020\005\022\n\n" + + "\006FAILED\020\006\022\033\n" + + "\027MAINTENANCE_IN_PROGRESS\020\007\"W\n" + + "\016ShapeAttribute\022\037\n" + + "\033SHAPE_ATTRIBUTE_UNSPECIFIED\020\000\022\021\n\r" + + "SMART_STORAGE\020\001\022\021\n\r" + + "BLOCK_STORAGE\020\002B\355\001\n" + + "\"com.google.cloud.oracledatabase.v1B\023ExadbVmClusterP" + + "rotoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabase" + + "pb\252\002\036Google.Cloud.OracleDatabase.V1\312\002\036Go" + + "ogle\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::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.cloud.oracledatabase.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateTimeProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_descriptor, + new java.lang.String[] { + "Name", + "Properties", + "GcpOracleZone", + "Labels", + "OdbNetwork", + "OdbSubnet", + "BackupOdbSubnet", + "DisplayName", + "CreateTime", + "EntitlementId", + }); + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_LabelsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ExadbVmCluster_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_descriptor, + new java.lang.String[] { + "SizeInGbsPerNode", + }); + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterProperties_descriptor, + new java.lang.String[] { + "ClusterName", + "GridImageId", + "NodeCount", + "EnabledEcpuCountPerNode", + "AdditionalEcpuCountPerNode", + "VmFileSystemStorage", + "LicenseModel", + "ExascaleDbStorageVault", + "HostnamePrefix", + "Hostname", + "SshPublicKeys", + "DataCollectionOptions", + "TimeZone", + "LifecycleState", + "ShapeAttribute", + "MemorySizeGb", + "ScanListenerPortTcp", + "OciUri", + "GiVersion", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateTimeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterStorageDetails.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterStorageDetails.java new file mode 100644 index 000000000000..342fa662be46 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterStorageDetails.java @@ -0,0 +1,557 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exadb_vm_cluster.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The storage allocation for the exadbvmcluster, in gigabytes (GB).
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails} + */ +public final class ExadbVmClusterStorageDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails) + ExadbVmClusterStorageDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExadbVmClusterStorageDetails.newBuilder() to construct. + private ExadbVmClusterStorageDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExadbVmClusterStorageDetails() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExadbVmClusterStorageDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.class, + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.Builder.class); + } + + public static final int SIZE_IN_GBS_PER_NODE_FIELD_NUMBER = 2; + private int sizeInGbsPerNode_ = 0; + + /** + * + * + *
                                              +   * Required. The storage allocation for the exadbvmcluster per node, in
                                              +   * gigabytes (GB). This field is used to calculate the total storage
                                              +   * allocation for the exadbvmcluster.
                                              +   * 
                                              + * + * int32 size_in_gbs_per_node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sizeInGbsPerNode. + */ + @java.lang.Override + public int getSizeInGbsPerNode() { + return sizeInGbsPerNode_; + } + + 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 (sizeInGbsPerNode_ != 0) { + output.writeInt32(2, sizeInGbsPerNode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sizeInGbsPerNode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sizeInGbsPerNode_); + } + 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.oracledatabase.v1.ExadbVmClusterStorageDetails)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails other = + (com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails) obj; + + if (getSizeInGbsPerNode() != other.getSizeInGbsPerNode()) 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) + SIZE_IN_GBS_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getSizeInGbsPerNode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails 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.oracledatabase.v1.ExadbVmClusterStorageDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails 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.oracledatabase.v1.ExadbVmClusterStorageDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The storage allocation for the exadbvmcluster, in gigabytes (GB).
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails) + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.class, + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sizeInGbsPerNode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterProto + .internal_static_google_cloud_oracledatabase_v1_ExadbVmClusterStorageDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails build() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails buildPartial() { + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails result = + new com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sizeInGbsPerNode_ = sizeInGbsPerNode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails other) { + if (other + == com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails.getDefaultInstance()) + return this; + if (other.getSizeInGbsPerNode() != 0) { + setSizeInGbsPerNode(other.getSizeInGbsPerNode()); + } + 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 16: + { + sizeInGbsPerNode_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 16 + 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 sizeInGbsPerNode_; + + /** + * + * + *
                                              +     * Required. The storage allocation for the exadbvmcluster per node, in
                                              +     * gigabytes (GB). This field is used to calculate the total storage
                                              +     * allocation for the exadbvmcluster.
                                              +     * 
                                              + * + * int32 size_in_gbs_per_node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sizeInGbsPerNode. + */ + @java.lang.Override + public int getSizeInGbsPerNode() { + return sizeInGbsPerNode_; + } + + /** + * + * + *
                                              +     * Required. The storage allocation for the exadbvmcluster per node, in
                                              +     * gigabytes (GB). This field is used to calculate the total storage
                                              +     * allocation for the exadbvmcluster.
                                              +     * 
                                              + * + * int32 size_in_gbs_per_node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sizeInGbsPerNode to set. + * @return This builder for chaining. + */ + public Builder setSizeInGbsPerNode(int value) { + + sizeInGbsPerNode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The storage allocation for the exadbvmcluster per node, in
                                              +     * gigabytes (GB). This field is used to calculate the total storage
                                              +     * allocation for the exadbvmcluster.
                                              +     * 
                                              + * + * int32 size_in_gbs_per_node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSizeInGbsPerNode() { + bitField0_ = (bitField0_ & ~0x00000001); + sizeInGbsPerNode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails) + private static final com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails(); + } + + public static com.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExadbVmClusterStorageDetails 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.oracledatabase.v1.ExadbVmClusterStorageDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterStorageDetailsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterStorageDetailsOrBuilder.java new file mode 100644 index 000000000000..3b780d017a49 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterStorageDetailsOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exadb_vm_cluster.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ExadbVmClusterStorageDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The storage allocation for the exadbvmcluster per node, in
                                              +   * gigabytes (GB). This field is used to calculate the total storage
                                              +   * allocation for the exadbvmcluster.
                                              +   * 
                                              + * + * int32 size_in_gbs_per_node = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sizeInGbsPerNode. + */ + int getSizeInGbsPerNode(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageDetails.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageDetails.java new file mode 100644 index 000000000000..04a02086f0f7 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageDetails.java @@ -0,0 +1,647 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The storage details of the ExascaleDbStorageVault.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExascaleDbStorageDetails} + */ +public final class ExascaleDbStorageDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ExascaleDbStorageDetails) + ExascaleDbStorageDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExascaleDbStorageDetails.newBuilder() to construct. + private ExascaleDbStorageDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExascaleDbStorageDetails() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExascaleDbStorageDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.class, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.Builder.class); + } + + public static final int AVAILABLE_SIZE_GBS_FIELD_NUMBER = 1; + private int availableSizeGbs_ = 0; + + /** + * + * + *
                                              +   * Output only. The available storage capacity for the ExascaleDbStorageVault,
                                              +   * in gigabytes (GB).
                                              +   * 
                                              + * + * int32 available_size_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableSizeGbs. + */ + @java.lang.Override + public int getAvailableSizeGbs() { + return availableSizeGbs_; + } + + public static final int TOTAL_SIZE_GBS_FIELD_NUMBER = 2; + private int totalSizeGbs_ = 0; + + /** + * + * + *
                                              +   * Required. The total storage allocation for the ExascaleDbStorageVault, in
                                              +   * gigabytes (GB).
                                              +   * 
                                              + * + * int32 total_size_gbs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The totalSizeGbs. + */ + @java.lang.Override + public int getTotalSizeGbs() { + return totalSizeGbs_; + } + + 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 (availableSizeGbs_ != 0) { + output.writeInt32(1, availableSizeGbs_); + } + if (totalSizeGbs_ != 0) { + output.writeInt32(2, totalSizeGbs_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (availableSizeGbs_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, availableSizeGbs_); + } + if (totalSizeGbs_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalSizeGbs_); + } + 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.oracledatabase.v1.ExascaleDbStorageDetails)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails other = + (com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails) obj; + + if (getAvailableSizeGbs() != other.getAvailableSizeGbs()) return false; + if (getTotalSizeGbs() != other.getTotalSizeGbs()) 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) + AVAILABLE_SIZE_GBS_FIELD_NUMBER; + hash = (53 * hash) + getAvailableSizeGbs(); + hash = (37 * hash) + TOTAL_SIZE_GBS_FIELD_NUMBER; + hash = (53 * hash) + getTotalSizeGbs(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails 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.oracledatabase.v1.ExascaleDbStorageDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails 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.oracledatabase.v1.ExascaleDbStorageDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The storage details of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExascaleDbStorageDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ExascaleDbStorageDetails) + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.class, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + availableSizeGbs_ = 0; + totalSizeGbs_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails build() { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails buildPartial() { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails result = + new com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.availableSizeGbs_ = availableSizeGbs_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalSizeGbs_ = totalSizeGbs_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails other) { + if (other == com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.getDefaultInstance()) + return this; + if (other.getAvailableSizeGbs() != 0) { + setAvailableSizeGbs(other.getAvailableSizeGbs()); + } + if (other.getTotalSizeGbs() != 0) { + setTotalSizeGbs(other.getTotalSizeGbs()); + } + 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: + { + availableSizeGbs_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + totalSizeGbs_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 availableSizeGbs_; + + /** + * + * + *
                                              +     * Output only. The available storage capacity for the ExascaleDbStorageVault,
                                              +     * in gigabytes (GB).
                                              +     * 
                                              + * + * int32 available_size_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableSizeGbs. + */ + @java.lang.Override + public int getAvailableSizeGbs() { + return availableSizeGbs_; + } + + /** + * + * + *
                                              +     * Output only. The available storage capacity for the ExascaleDbStorageVault,
                                              +     * in gigabytes (GB).
                                              +     * 
                                              + * + * int32 available_size_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The availableSizeGbs to set. + * @return This builder for chaining. + */ + public Builder setAvailableSizeGbs(int value) { + + availableSizeGbs_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The available storage capacity for the ExascaleDbStorageVault,
                                              +     * in gigabytes (GB).
                                              +     * 
                                              + * + * int32 available_size_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAvailableSizeGbs() { + bitField0_ = (bitField0_ & ~0x00000001); + availableSizeGbs_ = 0; + onChanged(); + return this; + } + + private int totalSizeGbs_; + + /** + * + * + *
                                              +     * Required. The total storage allocation for the ExascaleDbStorageVault, in
                                              +     * gigabytes (GB).
                                              +     * 
                                              + * + * int32 total_size_gbs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The totalSizeGbs. + */ + @java.lang.Override + public int getTotalSizeGbs() { + return totalSizeGbs_; + } + + /** + * + * + *
                                              +     * Required. The total storage allocation for the ExascaleDbStorageVault, in
                                              +     * gigabytes (GB).
                                              +     * 
                                              + * + * int32 total_size_gbs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The totalSizeGbs to set. + * @return This builder for chaining. + */ + public Builder setTotalSizeGbs(int value) { + + totalSizeGbs_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The total storage allocation for the ExascaleDbStorageVault, in
                                              +     * gigabytes (GB).
                                              +     * 
                                              + * + * int32 total_size_gbs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTotalSizeGbs() { + bitField0_ = (bitField0_ & ~0x00000002); + totalSizeGbs_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ExascaleDbStorageDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ExascaleDbStorageDetails) + private static final com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails(); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExascaleDbStorageDetails 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.oracledatabase.v1.ExascaleDbStorageDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageDetailsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageDetailsOrBuilder.java new file mode 100644 index 000000000000..da1bda900e6e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageDetailsOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ExascaleDbStorageDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ExascaleDbStorageDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. The available storage capacity for the ExascaleDbStorageVault,
                                              +   * in gigabytes (GB).
                                              +   * 
                                              + * + * int32 available_size_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableSizeGbs. + */ + int getAvailableSizeGbs(); + + /** + * + * + *
                                              +   * Required. The total storage allocation for the ExascaleDbStorageVault, in
                                              +   * gigabytes (GB).
                                              +   * 
                                              + * + * int32 total_size_gbs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The totalSizeGbs. + */ + int getTotalSizeGbs(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVault.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVault.java new file mode 100644 index 000000000000..59987b1e3470 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVault.java @@ -0,0 +1,2225 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * ExascaleDbStorageVault represents a storage vault exadb vm cluster resource.
                                              + * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExascaleDbStorageVault} + */ +public final class ExascaleDbStorageVault extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ExascaleDbStorageVault) + ExascaleDbStorageVaultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExascaleDbStorageVault.newBuilder() to construct. + private ExascaleDbStorageVault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExascaleDbStorageVault() { + name_ = ""; + displayName_ = ""; + gcpOracleZone_ = ""; + entitlementId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExascaleDbStorageVault(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.class, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Identifier. The resource name of the ExascaleDbStorageVault.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +   * 
                                              + * + * 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. The resource name of the ExascaleDbStorageVault.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +   * 
                                              + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +   * Required. The display name for the ExascaleDbStorageVault. The name does
                                              +   * not have to be unique within your project. The name must be 1-255
                                              +   * characters long and can only contain alphanumeric characters.
                                              +   * 
                                              + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The display name for the ExascaleDbStorageVault. The name does
                                              +   * not have to be unique within your project. The name must be 1-255
                                              +   * characters long and can only contain alphanumeric characters.
                                              +   * 
                                              + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_ORACLE_ZONE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is
                                              +   * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +   * zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + @java.lang.Override + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + 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(); + gcpOracleZone_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is
                                              +   * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +   * zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 4; + private com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties_; + + /** + * + * + *
                                              +   * Required. The properties of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Required. The properties of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.getDefaultInstance() + : properties_; + } + + /** + * + * + *
                                              +   * Required. The properties of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesOrBuilder + getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.getDefaultInstance() + : properties_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                              +   * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.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 date and time when the ExascaleDbStorageVault was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.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 ENTITLEMENT_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object entitlementId_ = ""; + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + @java.lang.Override + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + 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(); + entitlementId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_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. The labels or tags associated with the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * map<string, string> labels = 7 [(.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. The labels or tags associated with the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * map<string, string> labels = 7 [(.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. The labels or tags associated with the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * map<string, string> labels = 7 [(.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); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gcpOracleZone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, entitlementId_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gcpOracleZone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, entitlementId_); + } + 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(7, labels__); + } + 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.oracledatabase.v1.ExascaleDbStorageVault)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault other = + (com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getGcpOracleZone().equals(other.getGcpOracleZone())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getEntitlementId().equals(other.getEntitlementId())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + GCP_ORACLE_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGcpOracleZone().hashCode(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + ENTITLEMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntitlementId().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault 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.oracledatabase.v1.ExascaleDbStorageVault parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault 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.oracledatabase.v1.ExascaleDbStorageVault parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * ExascaleDbStorageVault represents a storage vault exadb vm cluster resource.
                                              +   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExascaleDbStorageVault} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ExascaleDbStorageVault) + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.class, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + gcpOracleZone_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + entitlementId_ = ""; + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault build() { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault buildPartial() { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault result = + new com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcpOracleZone_ = gcpOracleZone_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.entitlementId_ = entitlementId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault other) { + if (other == com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGcpOracleZone().isEmpty()) { + gcpOracleZone_ = other.gcpOracleZone_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getEntitlementId().isEmpty()) { + entitlementId_ = other.entitlementId_; + bitField0_ |= 0x00000020; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + gcpOracleZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + entitlementId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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_ = ""; + + /** + * + * + *
                                              +     * Identifier. The resource name of the ExascaleDbStorageVault.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * 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. The resource name of the ExascaleDbStorageVault.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * 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. The resource name of the ExascaleDbStorageVault.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The resource name of the ExascaleDbStorageVault.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The resource name of the ExascaleDbStorageVault.
                                              +     * Format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                              +     * Required. The display name for the ExascaleDbStorageVault. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The display name for the ExascaleDbStorageVault. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The display name for the ExascaleDbStorageVault. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The display name for the ExascaleDbStorageVault. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The display name for the ExascaleDbStorageVault. The name does
                                              +     * not have to be unique within your project. The name must be 1-255
                                              +     * characters long and can only contain alphanumeric characters.
                                              +     * 
                                              + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpOracleZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpOracleZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcpOracleZone() { + gcpOracleZone_ = getDefaultInstance().getGcpOracleZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is
                                              +     * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +     * zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpOracleZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesOrBuilder> + propertiesBuilder_; + + /** + * + * + *
                                              +     * Required. The properties of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +     * Required. The properties of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. The properties of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The properties of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.Builder + builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The properties of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeProperties( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The properties of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000008); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The properties of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.Builder + getPropertiesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. The properties of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesOrBuilder + getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .getDefaultInstance() + : properties_; + } + } + + /** + * + * + *
                                              +     * Required. The properties of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 date and time when the ExascaleDbStorageVault was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 date and time when the ExascaleDbStorageVault was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.lang.Object entitlementId_ = ""; + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entitlementId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entitlementId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEntitlementId() { + entitlementId_ = getDefaultInstance().getEntitlementId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entitlementId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + 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_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * map<string, string> labels = 7 [(.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. The labels or tags associated with the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * map<string, string> labels = 7 [(.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. The labels or tags associated with the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * map<string, string> labels = 7 [(.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_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * map<string, string> labels = 7 [(.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_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * map<string, string> labels = 7 [(.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_ |= 0x00000040; + return this; + } + + /** + * + * + *
                                              +     * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ExascaleDbStorageVault) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ExascaleDbStorageVault) + private static final com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault(); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExascaleDbStorageVault 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.oracledatabase.v1.ExascaleDbStorageVault getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultName.java new file mode 100644 index 000000000000..004b258baed8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultName.java @@ -0,0 +1,240 @@ +/* + * Copyright 2025 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.oracledatabase.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 ExascaleDbStorageVaultName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_EXASCALE_DB_STORAGE_VAULT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String exascaleDbStorageVault; + + @Deprecated + protected ExascaleDbStorageVaultName() { + project = null; + location = null; + exascaleDbStorageVault = null; + } + + private ExascaleDbStorageVaultName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + exascaleDbStorageVault = Preconditions.checkNotNull(builder.getExascaleDbStorageVault()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getExascaleDbStorageVault() { + return exascaleDbStorageVault; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ExascaleDbStorageVaultName of( + String project, String location, String exascaleDbStorageVault) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setExascaleDbStorageVault(exascaleDbStorageVault) + .build(); + } + + public static String format(String project, String location, String exascaleDbStorageVault) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setExascaleDbStorageVault(exascaleDbStorageVault) + .build() + .toString(); + } + + public static ExascaleDbStorageVaultName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_EXASCALE_DB_STORAGE_VAULT.validatedMatch( + formattedString, + "ExascaleDbStorageVaultName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("exascale_db_storage_vault")); + } + + 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 (ExascaleDbStorageVaultName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_EXASCALE_DB_STORAGE_VAULT.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 (exascaleDbStorageVault != null) { + fieldMapBuilder.put("exascale_db_storage_vault", exascaleDbStorageVault); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_EXASCALE_DB_STORAGE_VAULT.instantiate( + "project", + project, + "location", + location, + "exascale_db_storage_vault", + exascaleDbStorageVault); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ExascaleDbStorageVaultName that = ((ExascaleDbStorageVaultName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.exascaleDbStorageVault, that.exascaleDbStorageVault); + } + 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(exascaleDbStorageVault); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. + */ + public static class Builder { + private String project; + private String location; + private String exascaleDbStorageVault; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getExascaleDbStorageVault() { + return exascaleDbStorageVault; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setExascaleDbStorageVault(String exascaleDbStorageVault) { + this.exascaleDbStorageVault = exascaleDbStorageVault; + return this; + } + + private Builder(ExascaleDbStorageVaultName exascaleDbStorageVaultName) { + this.project = exascaleDbStorageVaultName.project; + this.location = exascaleDbStorageVaultName.location; + this.exascaleDbStorageVault = exascaleDbStorageVaultName.exascaleDbStorageVault; + } + + public ExascaleDbStorageVaultName build() { + return new ExascaleDbStorageVaultName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultOrBuilder.java new file mode 100644 index 000000000000..9a29986eb3fe --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultOrBuilder.java @@ -0,0 +1,291 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ExascaleDbStorageVaultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ExascaleDbStorageVault) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Identifier. The resource name of the ExascaleDbStorageVault.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Identifier. The resource name of the ExascaleDbStorageVault.
                                              +   * Format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Required. The display name for the ExascaleDbStorageVault. The name does
                                              +   * not have to be unique within your project. The name must be 1-255
                                              +   * characters long and can only contain alphanumeric characters.
                                              +   * 
                                              + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                              +   * Required. The display name for the ExascaleDbStorageVault. The name does
                                              +   * not have to be unique within your project. The name must be 1-255
                                              +   * characters long and can only contain alphanumeric characters.
                                              +   * 
                                              + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is
                                              +   * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +   * zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + java.lang.String getGcpOracleZone(); + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is
                                              +   * hosted. Example: us-east4-b-r2. If not specified, the system will pick a
                                              +   * zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + com.google.protobuf.ByteString getGcpOracleZoneBytes(); + + /** + * + * + *
                                              +   * Required. The properties of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + + /** + * + * + *
                                              +   * Required. The properties of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties getProperties(); + + /** + * + * + *
                                              +   * Required. The properties of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties properties = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesOrBuilder + getPropertiesOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time when the ExascaleDbStorageVault was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + java.lang.String getEntitlementId(); + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + com.google.protobuf.ByteString getEntitlementIdBytes(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                              +   * Optional. The labels or tags associated with the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProperties.java new file mode 100644 index 000000000000..5a72fbeda7be --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProperties.java @@ -0,0 +1,3710 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The properties of the ExascaleDbStorageVault.
                                              + * next ID: 12
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties} + */ +public final class ExascaleDbStorageVaultProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties) + ExascaleDbStorageVaultPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExascaleDbStorageVaultProperties.newBuilder() to construct. + private ExascaleDbStorageVaultProperties( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExascaleDbStorageVaultProperties() { + ocid_ = ""; + state_ = 0; + description_ = ""; + vmClusterIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ociUri_ = ""; + attachedShapeAttributes_ = java.util.Collections.emptyList(); + availableShapeAttributes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExascaleDbStorageVaultProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.class, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.Builder.class); + } + + /** + * + * + *
                                              +   * The state of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The state of the ExascaleDbStorageVault is unspecified.
                                              +     * 
                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * The ExascaleDbStorageVault is being provisioned.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
                                              +     * The ExascaleDbStorageVault is available.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
                                              +     * The ExascaleDbStorageVault is being updated.
                                              +     * 
                                              + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
                                              +     * The ExascaleDbStorageVault is being deleted.
                                              +     * 
                                              + * + * TERMINATING = 4; + */ + TERMINATING(4), + /** + * + * + *
                                              +     * The ExascaleDbStorageVault has been deleted.
                                              +     * 
                                              + * + * TERMINATED = 5; + */ + TERMINATED(5), + /** + * + * + *
                                              +     * The ExascaleDbStorageVault has failed.
                                              +     * 
                                              + * + * FAILED = 6; + */ + FAILED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The state of the ExascaleDbStorageVault is unspecified.
                                              +     * 
                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * The ExascaleDbStorageVault is being provisioned.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + + /** + * + * + *
                                              +     * The ExascaleDbStorageVault is available.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + + /** + * + * + *
                                              +     * The ExascaleDbStorageVault is being updated.
                                              +     * 
                                              + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + /** + * + * + *
                                              +     * The ExascaleDbStorageVault is being deleted.
                                              +     * 
                                              + * + * TERMINATING = 4; + */ + public static final int TERMINATING_VALUE = 4; + + /** + * + * + *
                                              +     * The ExascaleDbStorageVault has been deleted.
                                              +     * 
                                              + * + * TERMINATED = 5; + */ + public static final int TERMINATED_VALUE = 5; + + /** + * + * + *
                                              +     * The ExascaleDbStorageVault has failed.
                                              +     * 
                                              + * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + + 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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return UPDATING; + case 4: + return TERMINATING; + case 5: + return TERMINATED; + case 6: + return FAILED; + 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 State findValueByNumber(int number) { + return State.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State) + } + + /** + * + * + *
                                              +   * The shape attribute of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute} + */ + public enum ShapeAttribute implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * SHAPE_ATTRIBUTE_UNSPECIFIED = 0; + */ + SHAPE_ATTRIBUTE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Indicates that the resource is in smart storage.
                                              +     * 
                                              + * + * SMART_STORAGE = 1; + */ + SMART_STORAGE(1), + /** + * + * + *
                                              +     * Indicates that the resource is in block storage.
                                              +     * 
                                              + * + * BLOCK_STORAGE = 2; + */ + BLOCK_STORAGE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * SHAPE_ATTRIBUTE_UNSPECIFIED = 0; + */ + public static final int SHAPE_ATTRIBUTE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Indicates that the resource is in smart storage.
                                              +     * 
                                              + * + * SMART_STORAGE = 1; + */ + public static final int SMART_STORAGE_VALUE = 1; + + /** + * + * + *
                                              +     * Indicates that the resource is in block storage.
                                              +     * 
                                              + * + * BLOCK_STORAGE = 2; + */ + public static final int BLOCK_STORAGE_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 ShapeAttribute 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 ShapeAttribute forNumber(int value) { + switch (value) { + case 0: + return SHAPE_ATTRIBUTE_UNSPECIFIED; + case 1: + return SMART_STORAGE; + case 2: + return BLOCK_STORAGE; + 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 ShapeAttribute findValueByNumber(int number) { + return ShapeAttribute.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ShapeAttribute[] VALUES = values(); + + public static ShapeAttribute 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 ShapeAttribute(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute) + } + + private int bitField0_; + public static final int OCID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ocid_ = ""; + + /** + * + * + *
                                              +   * Output only. The OCID for the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + @java.lang.Override + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + 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(); + ocid_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The OCID for the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 2; + private com.google.type.TimeZone timeZone_; + + /** + * + * + *
                                              +   * Output only. The time zone of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the timeZone field is set. + */ + @java.lang.Override + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Output only. The time zone of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The timeZone. + */ + @java.lang.Override + public com.google.type.TimeZone getTimeZone() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + /** + * + * + *
                                              +   * Output only. The time zone of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + public static final int EXASCALE_DB_STORAGE_DETAILS_FIELD_NUMBER = 3; + private com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascaleDbStorageDetails_; + + /** + * + * + *
                                              +   * Required. The storage details of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exascaleDbStorageDetails field is set. + */ + @java.lang.Override + public boolean hasExascaleDbStorageDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Required. The storage details of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exascaleDbStorageDetails. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails getExascaleDbStorageDetails() { + return exascaleDbStorageDetails_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.getDefaultInstance() + : exascaleDbStorageDetails_; + } + + /** + * + * + *
                                              +   * Required. The storage details of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsOrBuilder + getExascaleDbStorageDetailsOrBuilder() { + return exascaleDbStorageDetails_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.getDefaultInstance() + : exascaleDbStorageDetails_; + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
                                              +   * Output only. The state of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +   * Output only. The state of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State getState() { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State result = + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State.UNRECOGNIZED + : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                              +   * Optional. The description of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * 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. The description of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * 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 VM_CLUSTER_IDS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList vmClusterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Output only. The list of VM cluster OCIDs associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the vmClusterIds. + */ + public com.google.protobuf.ProtocolStringList getVmClusterIdsList() { + return vmClusterIds_; + } + + /** + * + * + *
                                              +   * Output only. The list of VM cluster OCIDs associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of vmClusterIds. + */ + public int getVmClusterIdsCount() { + return vmClusterIds_.size(); + } + + /** + * + * + *
                                              +   * Output only. The list of VM cluster OCIDs associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The vmClusterIds at the given index. + */ + public java.lang.String getVmClusterIds(int index) { + return vmClusterIds_.get(index); + } + + /** + * + * + *
                                              +   * Output only. The list of VM cluster OCIDs associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the vmClusterIds at the given index. + */ + public com.google.protobuf.ByteString getVmClusterIdsBytes(int index) { + return vmClusterIds_.getByteString(index); + } + + public static final int VM_CLUSTER_COUNT_FIELD_NUMBER = 9; + private int vmClusterCount_ = 0; + + /** + * + * + *
                                              +   * Output only. The number of VM clusters associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * int32 vm_cluster_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vmClusterCount. + */ + @java.lang.Override + public int getVmClusterCount() { + return vmClusterCount_; + } + + public static final int ADDITIONAL_FLASH_CACHE_PERCENT_FIELD_NUMBER = 7; + private int additionalFlashCachePercent_ = 0; + + /** + * + * + *
                                              +   * Optional. The size of additional flash cache in percentage of high capacity
                                              +   * database storage.
                                              +   * 
                                              + * + * int32 additional_flash_cache_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalFlashCachePercent. + */ + @java.lang.Override + public int getAdditionalFlashCachePercent() { + return additionalFlashCachePercent_; + } + + public static final int OCI_URI_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object ociUri_ = ""; + + /** + * + * + *
                                              +   * Output only. Deep link to the OCI console to view this resource.
                                              +   * 
                                              + * + * string oci_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUri. + */ + @java.lang.Override + public java.lang.String getOciUri() { + java.lang.Object ref = ociUri_; + 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(); + ociUri_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. Deep link to the OCI console to view this resource.
                                              +   * 
                                              + * + * string oci_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOciUriBytes() { + java.lang.Object ref = ociUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTACHED_SHAPE_ATTRIBUTES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List attachedShapeAttributes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute> + attachedShapeAttributes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute>() { + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute + convert(java.lang.Integer from) { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + result = + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute.forNumber(from); + return result == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the attachedShapeAttributes. + */ + @java.lang.Override + public java.util.List< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute> + getAttachedShapeAttributesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute>( + attachedShapeAttributes_, attachedShapeAttributes_converter_); + } + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of attachedShapeAttributes. + */ + @java.lang.Override + public int getAttachedShapeAttributesCount() { + return attachedShapeAttributes_.size(); + } + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The attachedShapeAttributes at the given index. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + getAttachedShapeAttributes(int index) { + return attachedShapeAttributes_converter_.convert(attachedShapeAttributes_.get(index)); + } + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for attachedShapeAttributes. + */ + @java.lang.Override + public java.util.List getAttachedShapeAttributesValueList() { + return attachedShapeAttributes_; + } + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of attachedShapeAttributes at the given index. + */ + @java.lang.Override + public int getAttachedShapeAttributesValue(int index) { + return attachedShapeAttributes_.get(index); + } + + private int attachedShapeAttributesMemoizedSerializedSize; + + public static final int AVAILABLE_SHAPE_ATTRIBUTES_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List availableShapeAttributes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute> + availableShapeAttributes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute>() { + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute + convert(java.lang.Integer from) { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + result = + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute.forNumber(from); + return result == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the availableShapeAttributes. + */ + @java.lang.Override + public java.util.List< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute> + getAvailableShapeAttributesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute>( + availableShapeAttributes_, availableShapeAttributes_converter_); + } + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of availableShapeAttributes. + */ + @java.lang.Override + public int getAvailableShapeAttributesCount() { + return availableShapeAttributes_.size(); + } + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The availableShapeAttributes at the given index. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + getAvailableShapeAttributes(int index) { + return availableShapeAttributes_converter_.convert(availableShapeAttributes_.get(index)); + } + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for availableShapeAttributes. + */ + @java.lang.Override + public java.util.List getAvailableShapeAttributesValueList() { + return availableShapeAttributes_; + } + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of availableShapeAttributes at the given index. + */ + @java.lang.Override + public int getAvailableShapeAttributesValue(int index) { + return availableShapeAttributes_.get(index); + } + + private int availableShapeAttributesMemoizedSerializedSize; + + 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.GeneratedMessageV3.isStringEmpty(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ocid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTimeZone()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getExascaleDbStorageDetails()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + for (int i = 0; i < vmClusterIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vmClusterIds_.getRaw(i)); + } + if (additionalFlashCachePercent_ != 0) { + output.writeInt32(7, additionalFlashCachePercent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ociUri_); + } + if (vmClusterCount_ != 0) { + output.writeInt32(9, vmClusterCount_); + } + if (getAttachedShapeAttributesList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(attachedShapeAttributesMemoizedSerializedSize); + } + for (int i = 0; i < attachedShapeAttributes_.size(); i++) { + output.writeEnumNoTag(attachedShapeAttributes_.get(i)); + } + if (getAvailableShapeAttributesList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(availableShapeAttributesMemoizedSerializedSize); + } + for (int i = 0; i < availableShapeAttributes_.size(); i++) { + output.writeEnumNoTag(availableShapeAttributes_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ocid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ocid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeZone()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getExascaleDbStorageDetails()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + { + int dataSize = 0; + for (int i = 0; i < vmClusterIds_.size(); i++) { + dataSize += computeStringSizeNoTag(vmClusterIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getVmClusterIdsList().size(); + } + if (additionalFlashCachePercent_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(7, additionalFlashCachePercent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ociUri_); + } + if (vmClusterCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, vmClusterCount_); + } + { + int dataSize = 0; + for (int i = 0; i < attachedShapeAttributes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + attachedShapeAttributes_.get(i)); + } + size += dataSize; + if (!getAttachedShapeAttributesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + attachedShapeAttributesMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < availableShapeAttributes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + availableShapeAttributes_.get(i)); + } + size += dataSize; + if (!getAvailableShapeAttributesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + availableShapeAttributesMemoizedSerializedSize = dataSize; + } + 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.oracledatabase.v1.ExascaleDbStorageVaultProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties other = + (com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties) obj; + + if (!getOcid().equals(other.getOcid())) return false; + if (hasTimeZone() != other.hasTimeZone()) return false; + if (hasTimeZone()) { + if (!getTimeZone().equals(other.getTimeZone())) return false; + } + if (hasExascaleDbStorageDetails() != other.hasExascaleDbStorageDetails()) return false; + if (hasExascaleDbStorageDetails()) { + if (!getExascaleDbStorageDetails().equals(other.getExascaleDbStorageDetails())) return false; + } + if (state_ != other.state_) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getVmClusterIdsList().equals(other.getVmClusterIdsList())) return false; + if (getVmClusterCount() != other.getVmClusterCount()) return false; + if (getAdditionalFlashCachePercent() != other.getAdditionalFlashCachePercent()) return false; + if (!getOciUri().equals(other.getOciUri())) return false; + if (!attachedShapeAttributes_.equals(other.attachedShapeAttributes_)) return false; + if (!availableShapeAttributes_.equals(other.availableShapeAttributes_)) 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) + OCID_FIELD_NUMBER; + hash = (53 * hash) + getOcid().hashCode(); + if (hasTimeZone()) { + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + } + if (hasExascaleDbStorageDetails()) { + hash = (37 * hash) + EXASCALE_DB_STORAGE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getExascaleDbStorageDetails().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getVmClusterIdsCount() > 0) { + hash = (37 * hash) + VM_CLUSTER_IDS_FIELD_NUMBER; + hash = (53 * hash) + getVmClusterIdsList().hashCode(); + } + hash = (37 * hash) + VM_CLUSTER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getVmClusterCount(); + hash = (37 * hash) + ADDITIONAL_FLASH_CACHE_PERCENT_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalFlashCachePercent(); + hash = (37 * hash) + OCI_URI_FIELD_NUMBER; + hash = (53 * hash) + getOciUri().hashCode(); + if (getAttachedShapeAttributesCount() > 0) { + hash = (37 * hash) + ATTACHED_SHAPE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + attachedShapeAttributes_.hashCode(); + } + if (getAvailableShapeAttributesCount() > 0) { + hash = (37 * hash) + AVAILABLE_SHAPE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + availableShapeAttributes_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties 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.oracledatabase.v1.ExascaleDbStorageVaultProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties 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.oracledatabase.v1.ExascaleDbStorageVaultProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The properties of the ExascaleDbStorageVault.
                                              +   * next ID: 12
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties) + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.class, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimeZoneFieldBuilder(); + getExascaleDbStorageDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ocid_ = ""; + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + exascaleDbStorageDetails_ = null; + if (exascaleDbStorageDetailsBuilder_ != null) { + exascaleDbStorageDetailsBuilder_.dispose(); + exascaleDbStorageDetailsBuilder_ = null; + } + state_ = 0; + description_ = ""; + vmClusterIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + vmClusterCount_ = 0; + additionalFlashCachePercent_ = 0; + ociUri_ = ""; + attachedShapeAttributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + availableShapeAttributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties build() { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties buildPartial() { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties result = + new com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties result) { + if (((bitField0_ & 0x00000200) != 0)) { + attachedShapeAttributes_ = java.util.Collections.unmodifiableList(attachedShapeAttributes_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.attachedShapeAttributes_ = attachedShapeAttributes_; + if (((bitField0_ & 0x00000400) != 0)) { + availableShapeAttributes_ = + java.util.Collections.unmodifiableList(availableShapeAttributes_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.availableShapeAttributes_ = availableShapeAttributes_; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ocid_ = ocid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.exascaleDbStorageDetails_ = + exascaleDbStorageDetailsBuilder_ == null + ? exascaleDbStorageDetails_ + : exascaleDbStorageDetailsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + vmClusterIds_.makeImmutable(); + result.vmClusterIds_ = vmClusterIds_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.vmClusterCount_ = vmClusterCount_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.additionalFlashCachePercent_ = additionalFlashCachePercent_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.ociUri_ = ociUri_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties other) { + if (other + == com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .getDefaultInstance()) return this; + if (!other.getOcid().isEmpty()) { + ocid_ = other.ocid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTimeZone()) { + mergeTimeZone(other.getTimeZone()); + } + if (other.hasExascaleDbStorageDetails()) { + mergeExascaleDbStorageDetails(other.getExascaleDbStorageDetails()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.vmClusterIds_.isEmpty()) { + if (vmClusterIds_.isEmpty()) { + vmClusterIds_ = other.vmClusterIds_; + bitField0_ |= 0x00000020; + } else { + ensureVmClusterIdsIsMutable(); + vmClusterIds_.addAll(other.vmClusterIds_); + } + onChanged(); + } + if (other.getVmClusterCount() != 0) { + setVmClusterCount(other.getVmClusterCount()); + } + if (other.getAdditionalFlashCachePercent() != 0) { + setAdditionalFlashCachePercent(other.getAdditionalFlashCachePercent()); + } + if (!other.getOciUri().isEmpty()) { + ociUri_ = other.ociUri_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.attachedShapeAttributes_.isEmpty()) { + if (attachedShapeAttributes_.isEmpty()) { + attachedShapeAttributes_ = other.attachedShapeAttributes_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureAttachedShapeAttributesIsMutable(); + attachedShapeAttributes_.addAll(other.attachedShapeAttributes_); + } + onChanged(); + } + if (!other.availableShapeAttributes_.isEmpty()) { + if (availableShapeAttributes_.isEmpty()) { + availableShapeAttributes_ = other.availableShapeAttributes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAvailableShapeAttributesIsMutable(); + availableShapeAttributes_.addAll(other.availableShapeAttributes_); + } + 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: + { + ocid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTimeZoneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getExascaleDbStorageDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureVmClusterIdsIsMutable(); + vmClusterIds_.add(s); + break; + } // case 50 + case 56: + { + additionalFlashCachePercent_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: + { + ociUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 72: + { + vmClusterCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 80: + { + int tmpRaw = input.readEnum(); + ensureAttachedShapeAttributesIsMutable(); + attachedShapeAttributes_.add(tmpRaw); + break; + } // case 80 + case 82: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureAttachedShapeAttributesIsMutable(); + attachedShapeAttributes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 82 + case 88: + { + int tmpRaw = input.readEnum(); + ensureAvailableShapeAttributesIsMutable(); + availableShapeAttributes_.add(tmpRaw); + break; + } // case 88 + case 90: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureAvailableShapeAttributesIsMutable(); + availableShapeAttributes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 90 + 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 ocid_ = ""; + + /** + * + * + *
                                              +     * Output only. The OCID for the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ocid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The OCID for the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The OCID for the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ocid to set. + * @return This builder for chaining. + */ + public Builder setOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The OCID for the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOcid() { + ocid_ = getDefaultInstance().getOcid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The OCID for the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ocid to set. + * @return This builder for chaining. + */ + public Builder setOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ocid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.type.TimeZone timeZone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + timeZoneBuilder_; + + /** + * + * + *
                                              +     * Output only. The time zone of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the timeZone field is set. + */ + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Output only. The time zone of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The timeZone. + */ + public com.google.type.TimeZone getTimeZone() { + if (timeZoneBuilder_ == null) { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } else { + return timeZoneBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Output only. The time zone of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + } else { + timeZoneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The time zone of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { + if (timeZoneBuilder_ == null) { + timeZone_ = builderForValue.build(); + } else { + timeZoneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The time zone of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && timeZone_ != null + && timeZone_ != com.google.type.TimeZone.getDefaultInstance()) { + getTimeZoneBuilder().mergeFrom(value); + } else { + timeZone_ = value; + } + } else { + timeZoneBuilder_.mergeFrom(value); + } + if (timeZone_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The time zone of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTimeZone() { + bitField0_ = (bitField0_ & ~0x00000002); + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The time zone of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.TimeZone.Builder getTimeZoneBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTimeZoneFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The time zone of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + if (timeZoneBuilder_ != null) { + return timeZoneBuilder_.getMessageOrBuilder(); + } else { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + } + + /** + * + * + *
                                              +     * Output only. The time zone of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + getTimeZoneFieldBuilder() { + if (timeZoneBuilder_ == null) { + timeZoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder>( + getTimeZone(), getParentForChildren(), isClean()); + timeZone_ = null; + } + return timeZoneBuilder_; + } + + private com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascaleDbStorageDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsOrBuilder> + exascaleDbStorageDetailsBuilder_; + + /** + * + * + *
                                              +     * Required. The storage details of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exascaleDbStorageDetails field is set. + */ + public boolean hasExascaleDbStorageDetails() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                              +     * Required. The storage details of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exascaleDbStorageDetails. + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails + getExascaleDbStorageDetails() { + if (exascaleDbStorageDetailsBuilder_ == null) { + return exascaleDbStorageDetails_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.getDefaultInstance() + : exascaleDbStorageDetails_; + } else { + return exascaleDbStorageDetailsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. The storage details of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExascaleDbStorageDetails( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails value) { + if (exascaleDbStorageDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exascaleDbStorageDetails_ = value; + } else { + exascaleDbStorageDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The storage details of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExascaleDbStorageDetails( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.Builder builderForValue) { + if (exascaleDbStorageDetailsBuilder_ == null) { + exascaleDbStorageDetails_ = builderForValue.build(); + } else { + exascaleDbStorageDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The storage details of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExascaleDbStorageDetails( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails value) { + if (exascaleDbStorageDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && exascaleDbStorageDetails_ != null + && exascaleDbStorageDetails_ + != com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails + .getDefaultInstance()) { + getExascaleDbStorageDetailsBuilder().mergeFrom(value); + } else { + exascaleDbStorageDetails_ = value; + } + } else { + exascaleDbStorageDetailsBuilder_.mergeFrom(value); + } + if (exascaleDbStorageDetails_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The storage details of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExascaleDbStorageDetails() { + bitField0_ = (bitField0_ & ~0x00000004); + exascaleDbStorageDetails_ = null; + if (exascaleDbStorageDetailsBuilder_ != null) { + exascaleDbStorageDetailsBuilder_.dispose(); + exascaleDbStorageDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The storage details of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.Builder + getExascaleDbStorageDetailsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getExascaleDbStorageDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. The storage details of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsOrBuilder + getExascaleDbStorageDetailsOrBuilder() { + if (exascaleDbStorageDetailsBuilder_ != null) { + return exascaleDbStorageDetailsBuilder_.getMessageOrBuilder(); + } else { + return exascaleDbStorageDetails_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.getDefaultInstance() + : exascaleDbStorageDetails_; + } + } + + /** + * + * + *
                                              +     * Required. The storage details of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsOrBuilder> + getExascaleDbStorageDetailsFieldBuilder() { + if (exascaleDbStorageDetailsBuilder_ == null) { + exascaleDbStorageDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsOrBuilder>( + getExascaleDbStorageDetails(), getParentForChildren(), isClean()); + exascaleDbStorageDetails_ = null; + } + return exascaleDbStorageDetailsBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                                              +     * Output only. The state of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +     * Output only. The state of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The state of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State getState() { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State result = + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State.forNumber( + state_); + return result == null + ? com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The state of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The state of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                              +     * Optional. The description of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * 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. The description of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * 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. The description of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * 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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The description of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The description of the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * 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_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList vmClusterIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureVmClusterIdsIsMutable() { + if (!vmClusterIds_.isModifiable()) { + vmClusterIds_ = new com.google.protobuf.LazyStringArrayList(vmClusterIds_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
                                              +     * Output only. The list of VM cluster OCIDs associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the vmClusterIds. + */ + public com.google.protobuf.ProtocolStringList getVmClusterIdsList() { + vmClusterIds_.makeImmutable(); + return vmClusterIds_; + } + + /** + * + * + *
                                              +     * Output only. The list of VM cluster OCIDs associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of vmClusterIds. + */ + public int getVmClusterIdsCount() { + return vmClusterIds_.size(); + } + + /** + * + * + *
                                              +     * Output only. The list of VM cluster OCIDs associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The vmClusterIds at the given index. + */ + public java.lang.String getVmClusterIds(int index) { + return vmClusterIds_.get(index); + } + + /** + * + * + *
                                              +     * Output only. The list of VM cluster OCIDs associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the vmClusterIds at the given index. + */ + public com.google.protobuf.ByteString getVmClusterIdsBytes(int index) { + return vmClusterIds_.getByteString(index); + } + + /** + * + * + *
                                              +     * Output only. The list of VM cluster OCIDs associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The vmClusterIds to set. + * @return This builder for chaining. + */ + public Builder setVmClusterIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVmClusterIdsIsMutable(); + vmClusterIds_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The list of VM cluster OCIDs associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The vmClusterIds to add. + * @return This builder for chaining. + */ + public Builder addVmClusterIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVmClusterIdsIsMutable(); + vmClusterIds_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The list of VM cluster OCIDs associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The vmClusterIds to add. + * @return This builder for chaining. + */ + public Builder addAllVmClusterIds(java.lang.Iterable values) { + ensureVmClusterIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vmClusterIds_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The list of VM cluster OCIDs associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVmClusterIds() { + vmClusterIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The list of VM cluster OCIDs associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the vmClusterIds to add. + * @return This builder for chaining. + */ + public Builder addVmClusterIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureVmClusterIdsIsMutable(); + vmClusterIds_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int vmClusterCount_; + + /** + * + * + *
                                              +     * Output only. The number of VM clusters associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * int32 vm_cluster_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vmClusterCount. + */ + @java.lang.Override + public int getVmClusterCount() { + return vmClusterCount_; + } + + /** + * + * + *
                                              +     * Output only. The number of VM clusters associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * int32 vm_cluster_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The vmClusterCount to set. + * @return This builder for chaining. + */ + public Builder setVmClusterCount(int value) { + + vmClusterCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The number of VM clusters associated with the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * int32 vm_cluster_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVmClusterCount() { + bitField0_ = (bitField0_ & ~0x00000040); + vmClusterCount_ = 0; + onChanged(); + return this; + } + + private int additionalFlashCachePercent_; + + /** + * + * + *
                                              +     * Optional. The size of additional flash cache in percentage of high capacity
                                              +     * database storage.
                                              +     * 
                                              + * + * int32 additional_flash_cache_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalFlashCachePercent. + */ + @java.lang.Override + public int getAdditionalFlashCachePercent() { + return additionalFlashCachePercent_; + } + + /** + * + * + *
                                              +     * Optional. The size of additional flash cache in percentage of high capacity
                                              +     * database storage.
                                              +     * 
                                              + * + * int32 additional_flash_cache_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The additionalFlashCachePercent to set. + * @return This builder for chaining. + */ + public Builder setAdditionalFlashCachePercent(int value) { + + additionalFlashCachePercent_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The size of additional flash cache in percentage of high capacity
                                              +     * database storage.
                                              +     * 
                                              + * + * int32 additional_flash_cache_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalFlashCachePercent() { + bitField0_ = (bitField0_ & ~0x00000080); + additionalFlashCachePercent_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ociUri_ = ""; + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUri. + */ + public java.lang.String getOciUri() { + java.lang.Object ref = ociUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ociUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUri. + */ + public com.google.protobuf.ByteString getOciUriBytes() { + java.lang.Object ref = ociUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ociUri to set. + * @return This builder for chaining. + */ + public Builder setOciUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ociUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOciUri() { + ociUri_ = getDefaultInstance().getOciUri(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. Deep link to the OCI console to view this resource.
                                              +     * 
                                              + * + * string oci_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ociUri to set. + * @return This builder for chaining. + */ + public Builder setOciUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ociUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List attachedShapeAttributes_ = + java.util.Collections.emptyList(); + + private void ensureAttachedShapeAttributesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + attachedShapeAttributes_ = + new java.util.ArrayList(attachedShapeAttributes_); + bitField0_ |= 0x00000200; + } + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the attachedShapeAttributes. + */ + public java.util.List< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute> + getAttachedShapeAttributesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute>( + attachedShapeAttributes_, attachedShapeAttributes_converter_); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of attachedShapeAttributes. + */ + public int getAttachedShapeAttributesCount() { + return attachedShapeAttributes_.size(); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The attachedShapeAttributes at the given index. + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + getAttachedShapeAttributes(int index) { + return attachedShapeAttributes_converter_.convert(attachedShapeAttributes_.get(index)); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The attachedShapeAttributes to set. + * @return This builder for chaining. + */ + public Builder setAttachedShapeAttributes( + int index, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedShapeAttributesIsMutable(); + attachedShapeAttributes_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The attachedShapeAttributes to add. + * @return This builder for chaining. + */ + public Builder addAttachedShapeAttributes( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedShapeAttributesIsMutable(); + attachedShapeAttributes_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The attachedShapeAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedShapeAttributes( + java.lang.Iterable< + ? extends + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute> + values) { + ensureAttachedShapeAttributesIsMutable(); + for (com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + value : values) { + attachedShapeAttributes_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAttachedShapeAttributes() { + attachedShapeAttributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for attachedShapeAttributes. + */ + public java.util.List getAttachedShapeAttributesValueList() { + return java.util.Collections.unmodifiableList(attachedShapeAttributes_); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of attachedShapeAttributes at the given index. + */ + public int getAttachedShapeAttributesValue(int index) { + return attachedShapeAttributes_.get(index); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for attachedShapeAttributes to set. + * @return This builder for chaining. + */ + public Builder setAttachedShapeAttributesValue(int index, int value) { + ensureAttachedShapeAttributesIsMutable(); + attachedShapeAttributes_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for attachedShapeAttributes to add. + * @return This builder for chaining. + */ + public Builder addAttachedShapeAttributesValue(int value) { + ensureAttachedShapeAttributesIsMutable(); + attachedShapeAttributes_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes of the VM clusters attached to the
                                              +     * ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for attachedShapeAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedShapeAttributesValue( + java.lang.Iterable values) { + ensureAttachedShapeAttributesIsMutable(); + for (int value : values) { + attachedShapeAttributes_.add(value); + } + onChanged(); + return this; + } + + private java.util.List availableShapeAttributes_ = + java.util.Collections.emptyList(); + + private void ensureAvailableShapeAttributesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + availableShapeAttributes_ = + new java.util.ArrayList(availableShapeAttributes_); + bitField0_ |= 0x00000400; + } + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the availableShapeAttributes. + */ + public java.util.List< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute> + getAvailableShapeAttributesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute>( + availableShapeAttributes_, availableShapeAttributes_converter_); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of availableShapeAttributes. + */ + public int getAvailableShapeAttributesCount() { + return availableShapeAttributes_.size(); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The availableShapeAttributes at the given index. + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + getAvailableShapeAttributes(int index) { + return availableShapeAttributes_converter_.convert(availableShapeAttributes_.get(index)); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The availableShapeAttributes to set. + * @return This builder for chaining. + */ + public Builder setAvailableShapeAttributes( + int index, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableShapeAttributesIsMutable(); + availableShapeAttributes_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The availableShapeAttributes to add. + * @return This builder for chaining. + */ + public Builder addAvailableShapeAttributes( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableShapeAttributesIsMutable(); + availableShapeAttributes_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The availableShapeAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllAvailableShapeAttributes( + java.lang.Iterable< + ? extends + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + .ShapeAttribute> + values) { + ensureAvailableShapeAttributesIsMutable(); + for (com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + value : values) { + availableShapeAttributes_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableShapeAttributes() { + availableShapeAttributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for availableShapeAttributes. + */ + public java.util.List getAvailableShapeAttributesValueList() { + return java.util.Collections.unmodifiableList(availableShapeAttributes_); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of availableShapeAttributes at the given index. + */ + public int getAvailableShapeAttributesValue(int index) { + return availableShapeAttributes_.get(index); + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for availableShapeAttributes to set. + * @return This builder for chaining. + */ + public Builder setAvailableShapeAttributesValue(int index, int value) { + ensureAvailableShapeAttributesIsMutable(); + availableShapeAttributes_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for availableShapeAttributes to add. + * @return This builder for chaining. + */ + public Builder addAvailableShapeAttributesValue(int value) { + ensureAvailableShapeAttributesIsMutable(); + availableShapeAttributes_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The shape attributes available for the VM clusters to be
                                              +     * attached to the ExascaleDbStorageVault.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for availableShapeAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllAvailableShapeAttributesValue( + java.lang.Iterable values) { + ensureAvailableShapeAttributesIsMutable(); + for (int value : values) { + availableShapeAttributes_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties) + private static final com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties(); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExascaleDbStorageVaultProperties 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.oracledatabase.v1.ExascaleDbStorageVaultProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultPropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultPropertiesOrBuilder.java new file mode 100644 index 000000000000..80fc151347c0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultPropertiesOrBuilder.java @@ -0,0 +1,470 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ExascaleDbStorageVaultPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. The OCID for the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + java.lang.String getOcid(); + + /** + * + * + *
                                              +   * Output only. The OCID for the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + com.google.protobuf.ByteString getOcidBytes(); + + /** + * + * + *
                                              +   * Output only. The time zone of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the timeZone field is set. + */ + boolean hasTimeZone(); + + /** + * + * + *
                                              +   * Output only. The time zone of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The timeZone. + */ + com.google.type.TimeZone getTimeZone(); + + /** + * + * + *
                                              +   * Output only. The time zone of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * .google.type.TimeZone time_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder(); + + /** + * + * + *
                                              +   * Required. The storage details of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exascaleDbStorageDetails field is set. + */ + boolean hasExascaleDbStorageDetails(); + + /** + * + * + *
                                              +   * Required. The storage details of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exascaleDbStorageDetails. + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails getExascaleDbStorageDetails(); + + /** + * + * + *
                                              +   * Required. The storage details of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageDetails exascale_db_storage_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsOrBuilder + getExascaleDbStorageDetailsOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The state of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                              +   * Output only. The state of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State getState(); + + /** + * + * + *
                                              +   * Optional. The description of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                              +   * Optional. The description of the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                              +   * Output only. The list of VM cluster OCIDs associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the vmClusterIds. + */ + java.util.List getVmClusterIdsList(); + + /** + * + * + *
                                              +   * Output only. The list of VM cluster OCIDs associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of vmClusterIds. + */ + int getVmClusterIdsCount(); + + /** + * + * + *
                                              +   * Output only. The list of VM cluster OCIDs associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The vmClusterIds at the given index. + */ + java.lang.String getVmClusterIds(int index); + + /** + * + * + *
                                              +   * Output only. The list of VM cluster OCIDs associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * repeated string vm_cluster_ids = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the vmClusterIds at the given index. + */ + com.google.protobuf.ByteString getVmClusterIdsBytes(int index); + + /** + * + * + *
                                              +   * Output only. The number of VM clusters associated with the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * int32 vm_cluster_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vmClusterCount. + */ + int getVmClusterCount(); + + /** + * + * + *
                                              +   * Optional. The size of additional flash cache in percentage of high capacity
                                              +   * database storage.
                                              +   * 
                                              + * + * int32 additional_flash_cache_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalFlashCachePercent. + */ + int getAdditionalFlashCachePercent(); + + /** + * + * + *
                                              +   * Output only. Deep link to the OCI console to view this resource.
                                              +   * 
                                              + * + * string oci_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUri. + */ + java.lang.String getOciUri(); + + /** + * + * + *
                                              +   * Output only. Deep link to the OCI console to view this resource.
                                              +   * 
                                              + * + * string oci_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUri. + */ + com.google.protobuf.ByteString getOciUriBytes(); + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the attachedShapeAttributes. + */ + java.util.List + getAttachedShapeAttributesList(); + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of attachedShapeAttributes. + */ + int getAttachedShapeAttributesCount(); + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The attachedShapeAttributes at the given index. + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + getAttachedShapeAttributes(int index); + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for attachedShapeAttributes. + */ + java.util.List getAttachedShapeAttributesValueList(); + + /** + * + * + *
                                              +   * Output only. The shape attributes of the VM clusters attached to the
                                              +   * ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute attached_shape_attributes = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of attachedShapeAttributes at the given index. + */ + int getAttachedShapeAttributesValue(int index); + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the availableShapeAttributes. + */ + java.util.List + getAvailableShapeAttributesList(); + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of availableShapeAttributes. + */ + int getAvailableShapeAttributesCount(); + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The availableShapeAttributes at the given index. + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute + getAvailableShapeAttributes(int index); + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for availableShapeAttributes. + */ + java.util.List getAvailableShapeAttributesValueList(); + + /** + * + * + *
                                              +   * Output only. The shape attributes available for the VM clusters to be
                                              +   * attached to the ExascaleDbStorageVault.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute available_shape_attributes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of availableShapeAttributes at the given index. + */ + int getAvailableShapeAttributesValue(int index); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProto.java new file mode 100644 index 000000000000..1d0d5edd4b87 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProto.java @@ -0,0 +1,277 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class ExascaleDbStorageVaultProto { + private ExascaleDbStorageVaultProto() {} + + 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_oracledatabase_v1_ExascaleDbStorageVault_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_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/cloud/oracledatabase/v1/exascale_db_storage_vault.proto\022\036google.cloud.o" + + "racledatabase.v1\032\037google/api/field_behav" + + "ior.proto\032\033google/api/field_info.proto\032\031" + + "google/api/resource.proto\032\037google/protob" + + "uf/timestamp.proto\032\032google/type/datetime.proto\"\345\004\n" + + "\026ExascaleDbStorageVault\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022\034\n" + + "\017gcp_oracle_zone\030\003 \001(\tB\003\340A\001\022Y\n\n" + + "properties\030\004 \001(\0132@.google.cloud.oracledatabase." + + "v1.ExascaleDbStorageVaultPropertiesB\003\340A\002\0224\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" + + "\016entitlement_id\030\006 \001(\tB\003\340A\003\022W\n" + + "\006labels\030\007 \003(\0132B.google.cloud.oracl" + + "edatabase.v1.ExascaleDbStorageVault.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:\310\001\352A\304\001\n" + + "4oracledatabase.googleapis.com/ExascaleDbStorageVault" + + "\022[projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_s" + + "torage_vault}*\027exascaleDbStorageVaults2\026exascaleDbStorageVault\"\205\007\n" + + " ExascaleDbStorageVaultProperties\022\021\n" + + "\004ocid\030\001 \001(\tB\003\340A\003\022-\n" + + "\ttime_zone\030\002 \001(\0132\025.google.type.TimeZoneB\003\340A\003\022b\n" + + "\033exascale_db_storage_details\030\003 \001" + + "(\01328.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsB\003\340A\002\022Z\n" + + "\005state\030\004 \001(\016" + + "2F.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.StateB\003\340A\003\022\030\n" + + "\013description\030\005 \001(\tB\003\340A\001\022\033\n" + + "\016vm_cluster_ids\030\006 \003(\tB\003\340A\003\022\035\n" + + "\020vm_cluster_count\030\t \001(\005B\003\340A\003\022+\n" + + "\036additional_flash_cache_percent\030\007 \001(\005B\003\340A\001\022\024\n" + + "\007oci_uri\030\010 \001(\tB\003\340A\003\022w\n" + + "\031attached_shape_attributes\030\n" + + " \003(\0162O.google.cloud" + + ".oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\003\340A\003\022x\n" + + "\032available_shape_attributes\030\013 \003(\0162O.google.clo" + + "ud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\003\340A\003\"z\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\020\n" + + "\014PROVISIONING\020\001\022\r\n" + + "\tAVAILABLE\020\002\022\014\n" + + "\010UPDATING\020\003\022\017\n" + + "\013TERMINATING\020\004\022\016\n\n" + + "TERMINATED\020\005\022\n\n" + + "\006FAILED\020\006\"W\n" + + "\016ShapeAttribute\022\037\n" + + "\033SHAPE_ATTRIBUTE_UNSPECIFIED\020\000\022\021\n\r" + + "SMART_STORAGE\020\001\022\021\n\r" + + "BLOCK_STORAGE\020\002\"X\n" + + "\030ExascaleDbStorageDetails\022\037\n" + + "\022available_size_gbs\030\001 \001(\005B\003\340A\003\022\033\n" + + "\016total_size_gbs\030\002 \001(\005B\003\340A\002\"n\n" + + " GetExascaleDbStorageVaultRequest\022J\n" + + "\004name\030\001 \001(\tB<\340A\002\372A6\n" + + "4oracledatabase.googleapis.com/ExascaleDbStorageVault\"\317\001\n" + + "\"ListExascaleDbStorageVaultsRequest\022L\n" + + "\006parent\030\001 \001(\tB<\340A\002\372A6\0224oracled" + + "atabase.googleapis.com/ExascaleDbStorageVault\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" + + "#ListExascaleDbStorageVaultsResponse\022Z\n" + + "\032exascale_db_storage_vaults\030\001" + + " \003(\01326.google.cloud.oracledatabase.v1.ExascaleDbStorageVault\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\237\002\n" + + "#CreateExascaleDbStorageVaultRequest\022L\n" + + "\006parent\030\001 \001(\tB<\340A\002\372A6\022" + + "4oracledatabase.googleapis.com/ExascaleDbStorageVault\022)\n" + + "\034exascale_db_storage_vault_id\030\002 \001(\tB\003\340A\002\022^\n" + + "\031exascale_db_storage_vault\030\003" + + " \001(\01326.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\222\001\n" + + "#DeleteExascaleDbStorageVaultRequest\022J\n" + + "\004name\030\001 \001(\tB<\340A\002\372A6\n" + + "4oracledatabase.googleapis.com/ExascaleDbStorageVault\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\365\001\n" + + "\"com.google.cloud.oracledatabase.v1B\033ExascaleDbStorageVaultPro" + + "toP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb" + + "\252\002\036Google.Cloud.OracleDatabase.V1\312\002\036Goog" + + "le\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::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.TimestampProto.getDescriptor(), + com.google.type.DateTimeProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "GcpOracleZone", + "Properties", + "CreateTime", + "EntitlementId", + "Labels", + }); + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_LabelsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVaultProperties_descriptor, + new java.lang.String[] { + "Ocid", + "TimeZone", + "ExascaleDbStorageDetails", + "State", + "Description", + "VmClusterIds", + "VmClusterCount", + "AdditionalFlashCachePercent", + "OciUri", + "AttachedShapeAttributes", + "AvailableShapeAttributes", + }); + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageDetails_descriptor, + new java.lang.String[] { + "AvailableSizeGbs", "TotalSizeGbs", + }); + internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_descriptor, + new java.lang.String[] { + "ExascaleDbStorageVaults", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CreateExascaleDbStorageVaultRequest_descriptor, + new java.lang.String[] { + "Parent", "ExascaleDbStorageVaultId", "ExascaleDbStorageVault", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DeleteExascaleDbStorageVaultRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + 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( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateTimeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/FailoverAutonomousDatabaseRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/FailoverAutonomousDatabaseRequest.java new file mode 100644 index 000000000000..1b24a1623add --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/FailoverAutonomousDatabaseRequest.java @@ -0,0 +1,871 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OracleDatabase.FailoverAutonomousDatabase`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest} + */ +public final class FailoverAutonomousDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest) + FailoverAutonomousDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FailoverAutonomousDatabaseRequest.newBuilder() to construct. + private FailoverAutonomousDatabaseRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FailoverAutonomousDatabaseRequest() { + name_ = ""; + peerAutonomousDatabase_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FailoverAutonomousDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the Autonomous Database in the following format:
                                              +   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +   * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +   * 
                                              + * + * + * 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 PEER_AUTONOMOUS_DATABASE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerAutonomousDatabase_ = ""; + + /** + * + * + *
                                              +   * Required. The peer database name to fail over to.
                                              +   * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The peerAutonomousDatabase. + */ + @java.lang.Override + public java.lang.String getPeerAutonomousDatabase() { + java.lang.Object ref = peerAutonomousDatabase_; + 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(); + peerAutonomousDatabase_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The peer database name to fail over to.
                                              +   * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for peerAutonomousDatabase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerAutonomousDatabaseBytes() { + java.lang.Object ref = peerAutonomousDatabase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerAutonomousDatabase_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerAutonomousDatabase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, peerAutonomousDatabase_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerAutonomousDatabase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerAutonomousDatabase_); + } + 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.oracledatabase.v1.FailoverAutonomousDatabaseRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest other = + (com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPeerAutonomousDatabase().equals(other.getPeerAutonomousDatabase())) 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) + PEER_AUTONOMOUS_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getPeerAutonomousDatabase().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest 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.oracledatabase.v1.FailoverAutonomousDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest 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.oracledatabase.v1.FailoverAutonomousDatabaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OracleDatabase.FailoverAutonomousDatabase`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest) + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + peerAutonomousDatabase_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest build() { + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest buildPartial() { + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest result = + new com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.peerAutonomousDatabase_ = peerAutonomousDatabase_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPeerAutonomousDatabase().isEmpty()) { + peerAutonomousDatabase_ = other.peerAutonomousDatabase_; + 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: + { + peerAutonomousDatabase_ = 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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 peerAutonomousDatabase_ = ""; + + /** + * + * + *
                                              +     * Required. The peer database name to fail over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The peerAutonomousDatabase. + */ + public java.lang.String getPeerAutonomousDatabase() { + java.lang.Object ref = peerAutonomousDatabase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerAutonomousDatabase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The peer database name to fail over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for peerAutonomousDatabase. + */ + public com.google.protobuf.ByteString getPeerAutonomousDatabaseBytes() { + java.lang.Object ref = peerAutonomousDatabase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerAutonomousDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The peer database name to fail over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The peerAutonomousDatabase to set. + * @return This builder for chaining. + */ + public Builder setPeerAutonomousDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerAutonomousDatabase_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The peer database name to fail over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPeerAutonomousDatabase() { + peerAutonomousDatabase_ = getDefaultInstance().getPeerAutonomousDatabase(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The peer database name to fail over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for peerAutonomousDatabase to set. + * @return This builder for chaining. + */ + public Builder setPeerAutonomousDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerAutonomousDatabase_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest) + private static final com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest(); + } + + public static com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailoverAutonomousDatabaseRequest 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.oracledatabase.v1.FailoverAutonomousDatabaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/FailoverAutonomousDatabaseRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/FailoverAutonomousDatabaseRequestOrBuilder.java new file mode 100644 index 000000000000..cecd08fb7193 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/FailoverAutonomousDatabaseRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface FailoverAutonomousDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the Autonomous Database in the following format:
                                              +   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the Autonomous Database in the following format:
                                              +   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Required. The peer database name to fail over to.
                                              +   * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The peerAutonomousDatabase. + */ + java.lang.String getPeerAutonomousDatabase(); + + /** + * + * + *
                                              +   * Required. The peer database name to fail over to.
                                              +   * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for peerAutonomousDatabase. + */ + com.google.protobuf.ByteString getPeerAutonomousDatabaseBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDatabaseRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDatabaseRequest.java new file mode 100644 index 000000000000..4cf1440bddc9 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDatabaseRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `Database.Get`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetDatabaseRequest} + */ +public final class GetDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetDatabaseRequest) + GetDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetDatabaseRequest.newBuilder() to construct. + private GetDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDatabaseRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.GetDatabaseRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the Database resource in the following format:
                                              +   * projects/{project}/locations/{region}/databases/{database}
                                              +   * 
                                              + * + * + * 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. The name of the Database resource in the following format:
                                              +   * projects/{project}/locations/{region}/databases/{database}
                                              +   * 
                                              + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.GetDatabaseRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetDatabaseRequest other = + (com.google.cloud.oracledatabase.v1.GetDatabaseRequest) 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.oracledatabase.v1.GetDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest 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.oracledatabase.v1.GetDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest 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.oracledatabase.v1.GetDatabaseRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.GetDatabaseRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `Database.Get`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetDatabaseRequest) + com.google.cloud.oracledatabase.v1.GetDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.GetDatabaseRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.GetDatabaseRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetDatabaseRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetDatabaseRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetDatabaseRequest build() { + com.google.cloud.oracledatabase.v1.GetDatabaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetDatabaseRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetDatabaseRequest result = + new com.google.cloud.oracledatabase.v1.GetDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.GetDatabaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.GetDatabaseRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.GetDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.GetDatabaseRequest other) { + if (other == com.google.cloud.oracledatabase.v1.GetDatabaseRequest.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. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * + * 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. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * + * 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. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * + * 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. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * + * 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. The name of the Database resource in the following format:
                                              +     * projects/{project}/locations/{region}/databases/{database}
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetDatabaseRequest) + private static final com.google.cloud.oracledatabase.v1.GetDatabaseRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetDatabaseRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetDatabaseRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatabaseRequest 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.oracledatabase.v1.GetDatabaseRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDatabaseRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDatabaseRequestOrBuilder.java new file mode 100644 index 000000000000..9cf9a561f5eb --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDatabaseRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface GetDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the Database resource in the following format:
                                              +   * projects/{project}/locations/{region}/databases/{database}
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the Database resource in the following format:
                                              +   * projects/{project}/locations/{region}/databases/{database}
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDbSystemRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDbSystemRequest.java new file mode 100644 index 000000000000..4143701b45ac --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDbSystemRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `DbSystem.Get`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetDbSystemRequest} + */ +public final class GetDbSystemRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetDbSystemRequest) + GetDbSystemRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetDbSystemRequest.newBuilder() to construct. + private GetDbSystemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDbSystemRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDbSystemRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetDbSystemRequest.class, + com.google.cloud.oracledatabase.v1.GetDbSystemRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +   * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +   * 
                                              + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.GetDbSystemRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetDbSystemRequest other = + (com.google.cloud.oracledatabase.v1.GetDbSystemRequest) 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.oracledatabase.v1.GetDbSystemRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest 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.oracledatabase.v1.GetDbSystemRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest 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.oracledatabase.v1.GetDbSystemRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.GetDbSystemRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `DbSystem.Get`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetDbSystemRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetDbSystemRequest) + com.google.cloud.oracledatabase.v1.GetDbSystemRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetDbSystemRequest.class, + com.google.cloud.oracledatabase.v1.GetDbSystemRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.GetDbSystemRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_GetDbSystemRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetDbSystemRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetDbSystemRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetDbSystemRequest build() { + com.google.cloud.oracledatabase.v1.GetDbSystemRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetDbSystemRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetDbSystemRequest result = + new com.google.cloud.oracledatabase.v1.GetDbSystemRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.GetDbSystemRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.GetDbSystemRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.GetDbSystemRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.GetDbSystemRequest other) { + if (other == com.google.cloud.oracledatabase.v1.GetDbSystemRequest.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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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. The name of the DbSystem in the following format:
                                              +     * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetDbSystemRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetDbSystemRequest) + private static final com.google.cloud.oracledatabase.v1.GetDbSystemRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetDbSystemRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetDbSystemRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDbSystemRequest 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.oracledatabase.v1.GetDbSystemRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDbSystemRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDbSystemRequestOrBuilder.java new file mode 100644 index 000000000000..f7f1ab650904 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetDbSystemRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface GetDbSystemRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetDbSystemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the DbSystem in the following format:
                                              +   * projects/{project}/locations/{location}/dbSystems/{db_system}.
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExadbVmClusterRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExadbVmClusterRequest.java new file mode 100644 index 000000000000..8c754bc704b8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExadbVmClusterRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `ExadbVmCluster.Get`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetExadbVmClusterRequest} + */ +public final class GetExadbVmClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetExadbVmClusterRequest) + GetExadbVmClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetExadbVmClusterRequest.newBuilder() to construct. + private GetExadbVmClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetExadbVmClusterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetExadbVmClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.GetExadbVmClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest other = + (com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest) 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.oracledatabase.v1.GetExadbVmClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest 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.oracledatabase.v1.GetExadbVmClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest 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.oracledatabase.v1.GetExadbVmClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `ExadbVmCluster.Get`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetExadbVmClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetExadbVmClusterRequest) + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest build() { + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest result = + new com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest other) { + if (other == com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest.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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetExadbVmClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetExadbVmClusterRequest) + private static final com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExadbVmClusterRequest 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.oracledatabase.v1.GetExadbVmClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExadbVmClusterRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExadbVmClusterRequestOrBuilder.java new file mode 100644 index 000000000000..dcf3e7a69f30 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExadbVmClusterRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface GetExadbVmClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetExadbVmClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExascaleDbStorageVaultRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExascaleDbStorageVaultRequest.java new file mode 100644 index 000000000000..6ec16169782e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExascaleDbStorageVaultRequest.java @@ -0,0 +1,668 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `ExascaleDbStorageVault.Get`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest} + */ +public final class GetExascaleDbStorageVaultRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest) + GetExascaleDbStorageVaultRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetExascaleDbStorageVaultRequest.newBuilder() to construct. + private GetExascaleDbStorageVaultRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetExascaleDbStorageVaultRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetExascaleDbStorageVaultRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest.class, + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the ExascaleDbStorageVault in the following format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +   * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +   * 
                                              + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.GetExascaleDbStorageVaultRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest other = + (com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest) 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.oracledatabase.v1.GetExascaleDbStorageVaultRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest 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.oracledatabase.v1.GetExascaleDbStorageVaultRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest 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.oracledatabase.v1.GetExascaleDbStorageVaultRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `ExascaleDbStorageVault.Get`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest) + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest.class, + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_GetExascaleDbStorageVaultRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest build() { + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest result = + new com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest + .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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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. The name of the ExascaleDbStorageVault in the following format:
                                              +     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest) + private static final com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExascaleDbStorageVaultRequest 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.oracledatabase.v1.GetExascaleDbStorageVaultRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExascaleDbStorageVaultRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExascaleDbStorageVaultRequestOrBuilder.java new file mode 100644 index 000000000000..1cc161391b15 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetExascaleDbStorageVaultRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface GetExascaleDbStorageVaultRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the ExascaleDbStorageVault in the following format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the ExascaleDbStorageVault in the following format:
                                              +   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}.
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbNetworkRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbNetworkRequest.java new file mode 100644 index 000000000000..edc48a7e63f6 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbNetworkRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OdbNetwork.Get`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetOdbNetworkRequest} + */ +public final class GetOdbNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetOdbNetworkRequest) + GetOdbNetworkRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetOdbNetworkRequest.newBuilder() to construct. + private GetOdbNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOdbNetworkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOdbNetworkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest.class, + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the OdbNetwork in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * 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. The name of the OdbNetwork in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.GetOdbNetworkRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest other = + (com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest) 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.oracledatabase.v1.GetOdbNetworkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest 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.oracledatabase.v1.GetOdbNetworkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest 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.oracledatabase.v1.GetOdbNetworkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OdbNetwork.Get`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetOdbNetworkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetOdbNetworkRequest) + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest.class, + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest build() { + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest result = + new com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest other) { + if (other == com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest.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. The name of the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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. The name of the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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. The name of the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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. The name of the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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. The name of the OdbNetwork in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetOdbNetworkRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetOdbNetworkRequest) + private static final com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOdbNetworkRequest 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.oracledatabase.v1.GetOdbNetworkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbNetworkRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbNetworkRequestOrBuilder.java new file mode 100644 index 000000000000..837c6d06bbd5 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbNetworkRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface GetOdbNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetOdbNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the OdbNetwork in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the OdbNetwork in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbSubnetRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbSubnetRequest.java new file mode 100644 index 000000000000..96cf48ddb486 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbSubnetRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OdbSubnet.Get`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetOdbSubnetRequest} + */ +public final class GetOdbSubnetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetOdbSubnetRequest) + GetOdbSubnetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetOdbSubnetRequest.newBuilder() to construct. + private GetOdbSubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOdbSubnetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOdbSubnetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest.class, + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +   * 
                                              + * + * + * 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. The name of the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +   * 
                                              + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.GetOdbSubnetRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest other = + (com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest) 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.oracledatabase.v1.GetOdbSubnetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest 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.oracledatabase.v1.GetOdbSubnetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest 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.oracledatabase.v1.GetOdbSubnetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OdbSubnet.Get`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetOdbSubnetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetOdbSubnetRequest) + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest.class, + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest build() { + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest result = + new com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest other) { + if (other == com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest.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. The name of the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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. The name of the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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. The name of the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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. The name of the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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. The name of the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetOdbSubnetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetOdbSubnetRequest) + private static final com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOdbSubnetRequest 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.oracledatabase.v1.GetOdbSubnetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbSubnetRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbSubnetRequestOrBuilder.java new file mode 100644 index 000000000000..8e67c1bb0a0d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetOdbSubnetRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface GetOdbSubnetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetOdbSubnetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetPluggableDatabaseRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetPluggableDatabaseRequest.java new file mode 100644 index 000000000000..0eb8d24e88d6 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetPluggableDatabaseRequest.java @@ -0,0 +1,669 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `PluggableDatabase.Get`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest} + */ +public final class GetPluggableDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest) + GetPluggableDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetPluggableDatabaseRequest.newBuilder() to construct. + private GetPluggableDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPluggableDatabaseRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPluggableDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the PluggableDatabase resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +   * 
                                              + * + * + * 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. The name of the PluggableDatabase resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +   * 
                                              + * + * + * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.GetPluggableDatabaseRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest other = + (com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest) 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.oracledatabase.v1.GetPluggableDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest 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.oracledatabase.v1.GetPluggableDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest 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.oracledatabase.v1.GetPluggableDatabaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `PluggableDatabase.Get`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest) + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest build() { + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest buildPartial() { + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest result = + new com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest.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. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * + * 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. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * + * 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. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * + * 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. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * + * 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. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest) + private static final com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest(); + } + + public static com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPluggableDatabaseRequest 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.oracledatabase.v1.GetPluggableDatabaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetPluggableDatabaseRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetPluggableDatabaseRequestOrBuilder.java new file mode 100644 index 000000000000..bf30c6788648 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetPluggableDatabaseRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface GetPluggableDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the PluggableDatabase resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the PluggableDatabase resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +   * 
                                              + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/IdentityConnector.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/IdentityConnector.java new file mode 100644 index 000000000000..c020b6484b5e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/IdentityConnector.java @@ -0,0 +1,1042 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The identity connector details which will allow OCI to securely access
                                              + * the resources in the customer project.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.IdentityConnector} + */ +public final class IdentityConnector extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.IdentityConnector) + IdentityConnectorOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IdentityConnector.newBuilder() to construct. + private IdentityConnector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IdentityConnector() { + serviceAgentEmail_ = ""; + connectionState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IdentityConnector(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_IdentityConnector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_IdentityConnector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.IdentityConnector.class, + com.google.cloud.oracledatabase.v1.IdentityConnector.Builder.class); + } + + /** + * + * + *
                                              +   * The various connection states of the WorkloadIdentityPoolConnection.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState} + */ + public enum ConnectionState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * CONNECTION_STATE_UNSPECIFIED = 0; + */ + CONNECTION_STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * The identity pool connection is connected.
                                              +     * 
                                              + * + * CONNECTED = 1; + */ + CONNECTED(1), + /** + * + * + *
                                              +     * The identity pool connection is partially connected.
                                              +     * 
                                              + * + * PARTIALLY_CONNECTED = 2; + */ + PARTIALLY_CONNECTED(2), + /** + * + * + *
                                              +     * The identity pool connection is disconnected.
                                              +     * 
                                              + * + * DISCONNECTED = 3; + */ + DISCONNECTED(3), + /** + * + * + *
                                              +     * The identity pool connection is in an unknown state.
                                              +     * 
                                              + * + * UNKNOWN = 4; + */ + UNKNOWN(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * CONNECTION_STATE_UNSPECIFIED = 0; + */ + public static final int CONNECTION_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * The identity pool connection is connected.
                                              +     * 
                                              + * + * CONNECTED = 1; + */ + public static final int CONNECTED_VALUE = 1; + + /** + * + * + *
                                              +     * The identity pool connection is partially connected.
                                              +     * 
                                              + * + * PARTIALLY_CONNECTED = 2; + */ + public static final int PARTIALLY_CONNECTED_VALUE = 2; + + /** + * + * + *
                                              +     * The identity pool connection is disconnected.
                                              +     * 
                                              + * + * DISCONNECTED = 3; + */ + public static final int DISCONNECTED_VALUE = 3; + + /** + * + * + *
                                              +     * The identity pool connection is in an unknown state.
                                              +     * 
                                              + * + * UNKNOWN = 4; + */ + public static final int UNKNOWN_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 ConnectionState 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 ConnectionState forNumber(int value) { + switch (value) { + case 0: + return CONNECTION_STATE_UNSPECIFIED; + case 1: + return CONNECTED; + case 2: + return PARTIALLY_CONNECTED; + case 3: + return DISCONNECTED; + case 4: + return UNKNOWN; + 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 ConnectionState findValueByNumber(int number) { + return ConnectionState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.IdentityConnector.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ConnectionState[] VALUES = values(); + + public static ConnectionState 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 ConnectionState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState) + } + + public static final int SERVICE_AGENT_EMAIL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAgentEmail_ = ""; + + /** + * + * + *
                                              +   * Output only. A google managed service account on which customers can grant
                                              +   * roles to access resources in the customer project. Example:
                                              +   * `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`
                                              +   * 
                                              + * + * string service_agent_email = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAgentEmail. + */ + @java.lang.Override + public java.lang.String getServiceAgentEmail() { + java.lang.Object ref = serviceAgentEmail_; + 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(); + serviceAgentEmail_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. A google managed service account on which customers can grant
                                              +   * roles to access resources in the customer project. Example:
                                              +   * `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`
                                              +   * 
                                              + * + * string service_agent_email = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAgentEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAgentEmailBytes() { + java.lang.Object ref = serviceAgentEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAgentEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_STATE_FIELD_NUMBER = 2; + private int connectionState_ = 0; + + /** + * + * + *
                                              +   * Output only. The connection state of the identity connector.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionState. + */ + @java.lang.Override + public int getConnectionStateValue() { + return connectionState_; + } + + /** + * + * + *
                                              +   * Output only. The connection state of the identity connector.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState getConnectionState() { + com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState result = + com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState.forNumber( + connectionState_); + return result == null + ? com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAgentEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAgentEmail_); + } + if (connectionState_ + != com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState + .CONNECTION_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, connectionState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAgentEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAgentEmail_); + } + if (connectionState_ + != com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState + .CONNECTION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, connectionState_); + } + 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.oracledatabase.v1.IdentityConnector)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.IdentityConnector other = + (com.google.cloud.oracledatabase.v1.IdentityConnector) obj; + + if (!getServiceAgentEmail().equals(other.getServiceAgentEmail())) return false; + if (connectionState_ != other.connectionState_) 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) + SERVICE_AGENT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAgentEmail().hashCode(); + hash = (37 * hash) + CONNECTION_STATE_FIELD_NUMBER; + hash = (53 * hash) + connectionState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector 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.oracledatabase.v1.IdentityConnector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector 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.oracledatabase.v1.IdentityConnector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.IdentityConnector prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The identity connector details which will allow OCI to securely access
                                              +   * the resources in the customer project.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.IdentityConnector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.IdentityConnector) + com.google.cloud.oracledatabase.v1.IdentityConnectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_IdentityConnector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_IdentityConnector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.IdentityConnector.class, + com.google.cloud.oracledatabase.v1.IdentityConnector.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.IdentityConnector.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAgentEmail_ = ""; + connectionState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CommonProto + .internal_static_google_cloud_oracledatabase_v1_IdentityConnector_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.IdentityConnector getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.IdentityConnector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.IdentityConnector build() { + com.google.cloud.oracledatabase.v1.IdentityConnector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.IdentityConnector buildPartial() { + com.google.cloud.oracledatabase.v1.IdentityConnector result = + new com.google.cloud.oracledatabase.v1.IdentityConnector(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.IdentityConnector result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAgentEmail_ = serviceAgentEmail_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connectionState_ = connectionState_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.IdentityConnector) { + return mergeFrom((com.google.cloud.oracledatabase.v1.IdentityConnector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.IdentityConnector other) { + if (other == com.google.cloud.oracledatabase.v1.IdentityConnector.getDefaultInstance()) + return this; + if (!other.getServiceAgentEmail().isEmpty()) { + serviceAgentEmail_ = other.serviceAgentEmail_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.connectionState_ != 0) { + setConnectionStateValue(other.getConnectionStateValue()); + } + 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: + { + serviceAgentEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + connectionState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 serviceAgentEmail_ = ""; + + /** + * + * + *
                                              +     * Output only. A google managed service account on which customers can grant
                                              +     * roles to access resources in the customer project. Example:
                                              +     * `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`
                                              +     * 
                                              + * + * string service_agent_email = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAgentEmail. + */ + public java.lang.String getServiceAgentEmail() { + java.lang.Object ref = serviceAgentEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAgentEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. A google managed service account on which customers can grant
                                              +     * roles to access resources in the customer project. Example:
                                              +     * `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`
                                              +     * 
                                              + * + * string service_agent_email = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAgentEmail. + */ + public com.google.protobuf.ByteString getServiceAgentEmailBytes() { + java.lang.Object ref = serviceAgentEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAgentEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. A google managed service account on which customers can grant
                                              +     * roles to access resources in the customer project. Example:
                                              +     * `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`
                                              +     * 
                                              + * + * string service_agent_email = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceAgentEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAgentEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAgentEmail_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. A google managed service account on which customers can grant
                                              +     * roles to access resources in the customer project. Example:
                                              +     * `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`
                                              +     * 
                                              + * + * string service_agent_email = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAgentEmail() { + serviceAgentEmail_ = getDefaultInstance().getServiceAgentEmail(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. A google managed service account on which customers can grant
                                              +     * roles to access resources in the customer project. Example:
                                              +     * `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`
                                              +     * 
                                              + * + * string service_agent_email = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serviceAgentEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAgentEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAgentEmail_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int connectionState_ = 0; + + /** + * + * + *
                                              +     * Output only. The connection state of the identity connector.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionState. + */ + @java.lang.Override + public int getConnectionStateValue() { + return connectionState_; + } + + /** + * + * + *
                                              +     * Output only. The connection state of the identity connector.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for connectionState to set. + * @return This builder for chaining. + */ + public Builder setConnectionStateValue(int value) { + connectionState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The connection state of the identity connector.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState + getConnectionState() { + com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState result = + com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState.forNumber( + connectionState_); + return result == null + ? com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The connection state of the identity connector.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The connectionState to set. + * @return This builder for chaining. + */ + public Builder setConnectionState( + com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + connectionState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The connection state of the identity connector.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConnectionState() { + bitField0_ = (bitField0_ & ~0x00000002); + connectionState_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.IdentityConnector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.IdentityConnector) + private static final com.google.cloud.oracledatabase.v1.IdentityConnector DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.IdentityConnector(); + } + + public static com.google.cloud.oracledatabase.v1.IdentityConnector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityConnector 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.oracledatabase.v1.IdentityConnector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/IdentityConnectorOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/IdentityConnectorOrBuilder.java new file mode 100644 index 000000000000..b811cb5bddd3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/IdentityConnectorOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface IdentityConnectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.IdentityConnector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. A google managed service account on which customers can grant
                                              +   * roles to access resources in the customer project. Example:
                                              +   * `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`
                                              +   * 
                                              + * + * string service_agent_email = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAgentEmail. + */ + java.lang.String getServiceAgentEmail(); + + /** + * + * + *
                                              +   * Output only. A google managed service account on which customers can grant
                                              +   * roles to access resources in the customer project. Example:
                                              +   * `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`
                                              +   * 
                                              + * + * string service_agent_email = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAgentEmail. + */ + com.google.protobuf.ByteString getServiceAgentEmailBytes(); + + /** + * + * + *
                                              +   * Output only. The connection state of the identity connector.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionState. + */ + int getConnectionStateValue(); + + /** + * + * + *
                                              +   * Output only. The connection state of the identity connector.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionState. + */ + com.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState getConnectionState(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequest.java index 9a0fc88625b7..6c378872ce9a 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequest.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequest.java @@ -44,6 +44,8 @@ private ListCloudExadataInfrastructuresRequest( private ListCloudExadataInfrastructuresRequest() { parent_ = ""; pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; } @java.lang.Override @@ -201,6 +203,112 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -224,6 +332,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } getUnknownFields().writeTo(output); } @@ -242,6 +356,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -262,6 +382,8 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,6 +401,10 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -426,6 +552,8 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; return this; } @@ -476,6 +604,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } } @java.lang.Override @@ -541,6 +675,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -585,6 +729,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -903,6 +1059,228 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequestOrBuilder.java index 26e6aab3538b..d02a9a11318a 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequestOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListCloudExadataInfrastructuresRequestOrBuilder.java @@ -96,4 +96,56 @@ public interface ListCloudExadataInfrastructuresRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsRequest.java new file mode 100644 index 000000000000..01464643742f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsRequest.java @@ -0,0 +1,1218 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database_character_set.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `DatabaseCharacterSet.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest} + */ +public final class ListDatabaseCharacterSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest) + ListDatabaseCharacterSetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDatabaseCharacterSetsRequest.newBuilder() to construct. + private ListDatabaseCharacterSetsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatabaseCharacterSetsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatabaseCharacterSetsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest.class, + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for DatabaseCharacterSets in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 value for DatabaseCharacterSets in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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. The maximum number of DatabaseCharacterSets to return. The
                                              +   * service may return fewer than this value. If unspecified, at most 50
                                              +   * DatabaseCharacterSets will be returned. The maximum value is 1000; values
                                              +   * above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * 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. A page token, received from a previous
                                              +   * `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
                                              +   * page.
                                              +   *
                                              +   * When paginating, all other parameters provided to
                                              +   * `ListDatabaseCharacterSets` must match the call that provided the page
                                              +   * token.
                                              +   * 
                                              + * + * 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. A page token, received from a previous
                                              +   * `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
                                              +   * page.
                                              +   *
                                              +   * When paginating, all other parameters provided to
                                              +   * `ListDatabaseCharacterSets` must match the call that provided the page
                                              +   * token.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Only the
                                              +   * **character_set_type** field is supported in the following format:
                                              +   * `character_set_type="{characterSetType}"`. Accepted values include
                                              +   * `DATABASE` and `NATIONAL`.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Only the
                                              +   * **character_set_type** field is supported in the following format:
                                              +   * `character_set_type="{characterSetType}"`. Accepted values include
                                              +   * `DATABASE` and `NATIONAL`.
                                              +   * 
                                              + * + * string filter = 4 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.oracledatabase.v1.ListDatabaseCharacterSetsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest other = + (com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest 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.oracledatabase.v1.ListDatabaseCharacterSetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest 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.oracledatabase.v1.ListDatabaseCharacterSetsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `DatabaseCharacterSet.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest) + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest.class, + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest build() { + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest result = + new com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest 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.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest + .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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for DatabaseCharacterSets in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for DatabaseCharacterSets in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for DatabaseCharacterSets in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for DatabaseCharacterSets in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for DatabaseCharacterSets in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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. The maximum number of DatabaseCharacterSets to return. The
                                              +     * service may return fewer than this value. If unspecified, at most 50
                                              +     * DatabaseCharacterSets will be returned. The maximum value is 1000; values
                                              +     * above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of DatabaseCharacterSets to return. The
                                              +     * service may return fewer than this value. If unspecified, at most 50
                                              +     * DatabaseCharacterSets will be returned. The maximum value is 1000; values
                                              +     * above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. The maximum number of DatabaseCharacterSets to return. The
                                              +     * service may return fewer than this value. If unspecified, at most 50
                                              +     * DatabaseCharacterSets will be returned. The maximum value is 1000; values
                                              +     * above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. A page token, received from a previous
                                              +     * `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
                                              +     * page.
                                              +     *
                                              +     * When paginating, all other parameters provided to
                                              +     * `ListDatabaseCharacterSets` must match the call that provided the page
                                              +     * token.
                                              +     * 
                                              + * + * 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. A page token, received from a previous
                                              +     * `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
                                              +     * page.
                                              +     *
                                              +     * When paginating, all other parameters provided to
                                              +     * `ListDatabaseCharacterSets` must match the call that provided the page
                                              +     * token.
                                              +     * 
                                              + * + * 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. A page token, received from a previous
                                              +     * `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
                                              +     * page.
                                              +     *
                                              +     * When paginating, all other parameters provided to
                                              +     * `ListDatabaseCharacterSets` must match the call that provided the page
                                              +     * token.
                                              +     * 
                                              + * + * 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. A page token, received from a previous
                                              +     * `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
                                              +     * page.
                                              +     *
                                              +     * When paginating, all other parameters provided to
                                              +     * `ListDatabaseCharacterSets` must match the call that provided the page
                                              +     * token.
                                              +     * 
                                              + * + * 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. A page token, received from a previous
                                              +     * `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
                                              +     * page.
                                              +     *
                                              +     * When paginating, all other parameters provided to
                                              +     * `ListDatabaseCharacterSets` must match the call that provided the page
                                              +     * token.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Only the
                                              +     * **character_set_type** field is supported in the following format:
                                              +     * `character_set_type="{characterSetType}"`. Accepted values include
                                              +     * `DATABASE` and `NATIONAL`.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Only the
                                              +     * **character_set_type** field is supported in the following format:
                                              +     * `character_set_type="{characterSetType}"`. Accepted values include
                                              +     * `DATABASE` and `NATIONAL`.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Only the
                                              +     * **character_set_type** field is supported in the following format:
                                              +     * `character_set_type="{characterSetType}"`. Accepted values include
                                              +     * `DATABASE` and `NATIONAL`.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Only the
                                              +     * **character_set_type** field is supported in the following format:
                                              +     * `character_set_type="{characterSetType}"`. Accepted values include
                                              +     * `DATABASE` and `NATIONAL`.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Only the
                                              +     * **character_set_type** field is supported in the following format:
                                              +     * `character_set_type="{characterSetType}"`. Accepted values include
                                              +     * `DATABASE` and `NATIONAL`.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest) + private static final com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatabaseCharacterSetsRequest 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.oracledatabase.v1.ListDatabaseCharacterSetsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsRequestOrBuilder.java new file mode 100644 index 000000000000..410586aa4768 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsRequestOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database_character_set.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDatabaseCharacterSetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for DatabaseCharacterSets in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for DatabaseCharacterSets in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of DatabaseCharacterSets to return. The
                                              +   * service may return fewer than this value. If unspecified, at most 50
                                              +   * DatabaseCharacterSets will be returned. The maximum value is 1000; values
                                              +   * above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A page token, received from a previous
                                              +   * `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
                                              +   * page.
                                              +   *
                                              +   * When paginating, all other parameters provided to
                                              +   * `ListDatabaseCharacterSets` must match the call that provided the page
                                              +   * token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A page token, received from a previous
                                              +   * `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
                                              +   * page.
                                              +   *
                                              +   * When paginating, all other parameters provided to
                                              +   * `ListDatabaseCharacterSets` must match the call that provided the page
                                              +   * token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Only the
                                              +   * **character_set_type** field is supported in the following format:
                                              +   * `character_set_type="{characterSetType}"`. Accepted values include
                                              +   * `DATABASE` and `NATIONAL`.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Only the
                                              +   * **character_set_type** field is supported in the following format:
                                              +   * `character_set_type="{characterSetType}"`. Accepted values include
                                              +   * `DATABASE` and `NATIONAL`.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsResponse.java new file mode 100644 index 000000000000..a420f345e80b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsResponse.java @@ -0,0 +1,1235 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database_character_set.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `DatabaseCharacterSet.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse} + */ +public final class ListDatabaseCharacterSetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse) + ListDatabaseCharacterSetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDatabaseCharacterSetsResponse.newBuilder() to construct. + private ListDatabaseCharacterSetsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatabaseCharacterSetsResponse() { + databaseCharacterSets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatabaseCharacterSetsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse.class, + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse.Builder.class); + } + + public static final int DATABASE_CHARACTER_SETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + databaseCharacterSets_; + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + @java.lang.Override + public java.util.List + getDatabaseCharacterSetsList() { + return databaseCharacterSets_; + } + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + @java.lang.Override + public java.util.List + getDatabaseCharacterSetsOrBuilderList() { + return databaseCharacterSets_; + } + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + @java.lang.Override + public int getDatabaseCharacterSetsCount() { + return databaseCharacterSets_.size(); + } + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet getDatabaseCharacterSets( + int index) { + return databaseCharacterSets_.get(index); + } + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSetOrBuilder + getDatabaseCharacterSetsOrBuilder(int index) { + return databaseCharacterSets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + 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 < databaseCharacterSets_.size(); i++) { + output.writeMessage(1, databaseCharacterSets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < databaseCharacterSets_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, databaseCharacterSets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListDatabaseCharacterSetsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse other = + (com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse) obj; + + if (!getDatabaseCharacterSetsList().equals(other.getDatabaseCharacterSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDatabaseCharacterSetsCount() > 0) { + hash = (37 * hash) + DATABASE_CHARACTER_SETS_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseCharacterSetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse 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.oracledatabase.v1.ListDatabaseCharacterSetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse 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.oracledatabase.v1.ListDatabaseCharacterSetsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `DatabaseCharacterSet.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse) + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse.class, + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (databaseCharacterSetsBuilder_ == null) { + databaseCharacterSets_ = java.util.Collections.emptyList(); + } else { + databaseCharacterSets_ = null; + databaseCharacterSetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabaseCharacterSetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse build() { + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse result = + new com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse result) { + if (databaseCharacterSetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + databaseCharacterSets_ = java.util.Collections.unmodifiableList(databaseCharacterSets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.databaseCharacterSets_ = databaseCharacterSets_; + } else { + result.databaseCharacterSets_ = databaseCharacterSetsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse + .getDefaultInstance()) return this; + if (databaseCharacterSetsBuilder_ == null) { + if (!other.databaseCharacterSets_.isEmpty()) { + if (databaseCharacterSets_.isEmpty()) { + databaseCharacterSets_ = other.databaseCharacterSets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatabaseCharacterSetsIsMutable(); + databaseCharacterSets_.addAll(other.databaseCharacterSets_); + } + onChanged(); + } + } else { + if (!other.databaseCharacterSets_.isEmpty()) { + if (databaseCharacterSetsBuilder_.isEmpty()) { + databaseCharacterSetsBuilder_.dispose(); + databaseCharacterSetsBuilder_ = null; + databaseCharacterSets_ = other.databaseCharacterSets_; + bitField0_ = (bitField0_ & ~0x00000001); + databaseCharacterSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDatabaseCharacterSetsFieldBuilder() + : null; + } else { + databaseCharacterSetsBuilder_.addAllMessages(other.databaseCharacterSets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet m = + input.readMessage( + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.parser(), + extensionRegistry); + if (databaseCharacterSetsBuilder_ == null) { + ensureDatabaseCharacterSetsIsMutable(); + databaseCharacterSets_.add(m); + } else { + databaseCharacterSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + databaseCharacterSets_ = java.util.Collections.emptyList(); + + private void ensureDatabaseCharacterSetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + databaseCharacterSets_ = + new java.util.ArrayList( + databaseCharacterSets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSetOrBuilder> + databaseCharacterSetsBuilder_; + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public java.util.List + getDatabaseCharacterSetsList() { + if (databaseCharacterSetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(databaseCharacterSets_); + } else { + return databaseCharacterSetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public int getDatabaseCharacterSetsCount() { + if (databaseCharacterSetsBuilder_ == null) { + return databaseCharacterSets_.size(); + } else { + return databaseCharacterSetsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet getDatabaseCharacterSets( + int index) { + if (databaseCharacterSetsBuilder_ == null) { + return databaseCharacterSets_.get(index); + } else { + return databaseCharacterSetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public Builder setDatabaseCharacterSets( + int index, com.google.cloud.oracledatabase.v1.DatabaseCharacterSet value) { + if (databaseCharacterSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabaseCharacterSetsIsMutable(); + databaseCharacterSets_.set(index, value); + onChanged(); + } else { + databaseCharacterSetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public Builder setDatabaseCharacterSets( + int index, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder builderForValue) { + if (databaseCharacterSetsBuilder_ == null) { + ensureDatabaseCharacterSetsIsMutable(); + databaseCharacterSets_.set(index, builderForValue.build()); + onChanged(); + } else { + databaseCharacterSetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public Builder addDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet value) { + if (databaseCharacterSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabaseCharacterSetsIsMutable(); + databaseCharacterSets_.add(value); + onChanged(); + } else { + databaseCharacterSetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public Builder addDatabaseCharacterSets( + int index, com.google.cloud.oracledatabase.v1.DatabaseCharacterSet value) { + if (databaseCharacterSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabaseCharacterSetsIsMutable(); + databaseCharacterSets_.add(index, value); + onChanged(); + } else { + databaseCharacterSetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public Builder addDatabaseCharacterSets( + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder builderForValue) { + if (databaseCharacterSetsBuilder_ == null) { + ensureDatabaseCharacterSetsIsMutable(); + databaseCharacterSets_.add(builderForValue.build()); + onChanged(); + } else { + databaseCharacterSetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public Builder addDatabaseCharacterSets( + int index, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder builderForValue) { + if (databaseCharacterSetsBuilder_ == null) { + ensureDatabaseCharacterSetsIsMutable(); + databaseCharacterSets_.add(index, builderForValue.build()); + onChanged(); + } else { + databaseCharacterSetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public Builder addAllDatabaseCharacterSets( + java.lang.Iterable + values) { + if (databaseCharacterSetsBuilder_ == null) { + ensureDatabaseCharacterSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, databaseCharacterSets_); + onChanged(); + } else { + databaseCharacterSetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public Builder clearDatabaseCharacterSets() { + if (databaseCharacterSetsBuilder_ == null) { + databaseCharacterSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + databaseCharacterSetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public Builder removeDatabaseCharacterSets(int index) { + if (databaseCharacterSetsBuilder_ == null) { + ensureDatabaseCharacterSetsIsMutable(); + databaseCharacterSets_.remove(index); + onChanged(); + } else { + databaseCharacterSetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder + getDatabaseCharacterSetsBuilder(int index) { + return getDatabaseCharacterSetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSetOrBuilder + getDatabaseCharacterSetsOrBuilder(int index) { + if (databaseCharacterSetsBuilder_ == null) { + return databaseCharacterSets_.get(index); + } else { + return databaseCharacterSetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.DatabaseCharacterSetOrBuilder> + getDatabaseCharacterSetsOrBuilderList() { + if (databaseCharacterSetsBuilder_ != null) { + return databaseCharacterSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(databaseCharacterSets_); + } + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder + addDatabaseCharacterSetsBuilder() { + return getDatabaseCharacterSetsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder + addDatabaseCharacterSetsBuilder(int index) { + return getDatabaseCharacterSetsFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of DatabaseCharacterSets.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + public java.util.List + getDatabaseCharacterSetsBuilderList() { + return getDatabaseCharacterSetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSetOrBuilder> + getDatabaseCharacterSetsFieldBuilder() { + if (databaseCharacterSetsBuilder_ == null) { + databaseCharacterSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet.Builder, + com.google.cloud.oracledatabase.v1.DatabaseCharacterSetOrBuilder>( + databaseCharacterSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + databaseCharacterSets_ = null; + } + return databaseCharacterSetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse) + private static final com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatabaseCharacterSetsResponse 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.oracledatabase.v1.ListDatabaseCharacterSetsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsResponseOrBuilder.java new file mode 100644 index 000000000000..359a8ee56cb2 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabaseCharacterSetsResponseOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database_character_set.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDatabaseCharacterSetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + java.util.List + getDatabaseCharacterSetsList(); + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + com.google.cloud.oracledatabase.v1.DatabaseCharacterSet getDatabaseCharacterSets(int index); + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + int getDatabaseCharacterSetsCount(); + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + java.util.List + getDatabaseCharacterSetsOrBuilderList(); + + /** + * + * + *
                                              +   * The list of DatabaseCharacterSets.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DatabaseCharacterSet database_character_sets = 1; + * + */ + com.google.cloud.oracledatabase.v1.DatabaseCharacterSetOrBuilder + getDatabaseCharacterSetsOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesRequest.java new file mode 100644 index 000000000000..6edda1c07805 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesRequest.java @@ -0,0 +1,1174 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `Database.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDatabasesRequest} + */ +public final class ListDatabasesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDatabasesRequest) + ListDatabasesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDatabasesRequest.newBuilder() to construct. + private ListDatabasesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatabasesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatabasesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDatabasesRequest.class, + com.google.cloud.oracledatabase.v1.ListDatabasesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent resource name in the following format:
                                              +   * projects/{project}/locations/{region}
                                              +   * 
                                              + * + * + * 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 name in the following format:
                                              +   * projects/{project}/locations/{region}
                                              +   * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +   * If unspecified, a maximum of 50 Databases will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +   * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. list for
                                              +   * container databases is supported only with a valid dbSystem (full resource
                                              +   * name) filter in this format:
                                              +   * `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. list for
                                              +   * container databases is supported only with a valid dbSystem (full resource
                                              +   * name) filter in this format:
                                              +   * `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
                                              +   * 
                                              + * + * string filter = 4 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.oracledatabase.v1.ListDatabasesRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDatabasesRequest other = + (com.google.cloud.oracledatabase.v1.ListDatabasesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest 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.oracledatabase.v1.ListDatabasesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest 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.oracledatabase.v1.ListDatabasesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDatabasesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `Database.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDatabasesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDatabasesRequest) + com.google.cloud.oracledatabase.v1.ListDatabasesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDatabasesRequest.class, + com.google.cloud.oracledatabase.v1.ListDatabasesRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDatabasesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabasesRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDatabasesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabasesRequest build() { + com.google.cloud.oracledatabase.v1.ListDatabasesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabasesRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListDatabasesRequest result = + new com.google.cloud.oracledatabase.v1.ListDatabasesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDatabasesRequest 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.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListDatabasesRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDatabasesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDatabasesRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListDatabasesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 name in the following format:
                                              +     * projects/{project}/locations/{region}
                                              +     * 
                                              + * + * + * 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 name in the following format:
                                              +     * projects/{project}/locations/{region}
                                              +     * 
                                              + * + * + * 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 name in the following format:
                                              +     * projects/{project}/locations/{region}
                                              +     * 
                                              + * + * + * 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 name in the following format:
                                              +     * projects/{project}/locations/{region}
                                              +     * 
                                              + * + * + * 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 name in the following format:
                                              +     * projects/{project}/locations/{region}
                                              +     * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 Databases will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 Databases will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +     * 
                                              + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 Databases will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. list for
                                              +     * container databases is supported only with a valid dbSystem (full resource
                                              +     * name) filter in this format:
                                              +     * `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. list for
                                              +     * container databases is supported only with a valid dbSystem (full resource
                                              +     * name) filter in this format:
                                              +     * `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. list for
                                              +     * container databases is supported only with a valid dbSystem (full resource
                                              +     * name) filter in this format:
                                              +     * `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. list for
                                              +     * container databases is supported only with a valid dbSystem (full resource
                                              +     * name) filter in this format:
                                              +     * `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. list for
                                              +     * container databases is supported only with a valid dbSystem (full resource
                                              +     * name) filter in this format:
                                              +     * `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDatabasesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDatabasesRequest) + private static final com.google.cloud.oracledatabase.v1.ListDatabasesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDatabasesRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatabasesRequest 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.oracledatabase.v1.ListDatabasesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesRequestOrBuilder.java new file mode 100644 index 000000000000..39cf0be0c22d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDatabasesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDatabasesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent resource name in the following format:
                                              +   * projects/{project}/locations/{region}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent resource name in the following format:
                                              +   * projects/{project}/locations/{region}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of items to return.
                                              +   * If unspecified, a maximum of 50 Databases will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. list for
                                              +   * container databases is supported only with a valid dbSystem (full resource
                                              +   * name) filter in this format:
                                              +   * `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. list for
                                              +   * container databases is supported only with a valid dbSystem (full resource
                                              +   * name) filter in this format:
                                              +   * `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesResponse.java new file mode 100644 index 000000000000..11e27a4422b7 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesResponse.java @@ -0,0 +1,1152 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `Database.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDatabasesResponse} + */ +public final class ListDatabasesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDatabasesResponse) + ListDatabasesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDatabasesResponse.newBuilder() to construct. + private ListDatabasesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatabasesResponse() { + databases_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatabasesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDatabasesResponse.class, + com.google.cloud.oracledatabase.v1.ListDatabasesResponse.Builder.class); + } + + public static final int DATABASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List databases_; + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + @java.lang.Override + public java.util.List getDatabasesList() { + return databases_; + } + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + @java.lang.Override + public java.util.List + getDatabasesOrBuilderList() { + return databases_; + } + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + @java.lang.Override + public int getDatabasesCount() { + return databases_.size(); + } + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.Database getDatabases(int index) { + return databases_.get(index); + } + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseOrBuilder getDatabasesOrBuilder(int index) { + return databases_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + 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 < databases_.size(); i++) { + output.writeMessage(1, databases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < databases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, databases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListDatabasesResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDatabasesResponse other = + (com.google.cloud.oracledatabase.v1.ListDatabasesResponse) obj; + + if (!getDatabasesList().equals(other.getDatabasesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDatabasesCount() > 0) { + hash = (37 * hash) + DATABASES_FIELD_NUMBER; + hash = (53 * hash) + getDatabasesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse 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.oracledatabase.v1.ListDatabasesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse 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.oracledatabase.v1.ListDatabasesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDatabasesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `Database.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDatabasesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDatabasesResponse) + com.google.cloud.oracledatabase.v1.ListDatabasesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDatabasesResponse.class, + com.google.cloud.oracledatabase.v1.ListDatabasesResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDatabasesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (databasesBuilder_ == null) { + databases_ = java.util.Collections.emptyList(); + } else { + databases_ = null; + databasesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListDatabasesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabasesResponse getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDatabasesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabasesResponse build() { + com.google.cloud.oracledatabase.v1.ListDatabasesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDatabasesResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListDatabasesResponse result = + new com.google.cloud.oracledatabase.v1.ListDatabasesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListDatabasesResponse result) { + if (databasesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + databases_ = java.util.Collections.unmodifiableList(databases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.databases_ = databases_; + } else { + result.databases_ = databasesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDatabasesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListDatabasesResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDatabasesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDatabasesResponse other) { + if (other == com.google.cloud.oracledatabase.v1.ListDatabasesResponse.getDefaultInstance()) + return this; + if (databasesBuilder_ == null) { + if (!other.databases_.isEmpty()) { + if (databases_.isEmpty()) { + databases_ = other.databases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatabasesIsMutable(); + databases_.addAll(other.databases_); + } + onChanged(); + } + } else { + if (!other.databases_.isEmpty()) { + if (databasesBuilder_.isEmpty()) { + databasesBuilder_.dispose(); + databasesBuilder_ = null; + databases_ = other.databases_; + bitField0_ = (bitField0_ & ~0x00000001); + databasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDatabasesFieldBuilder() + : null; + } else { + databasesBuilder_.addAllMessages(other.databases_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.Database m = + input.readMessage( + com.google.cloud.oracledatabase.v1.Database.parser(), extensionRegistry); + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.add(m); + } else { + databasesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List databases_ = + java.util.Collections.emptyList(); + + private void ensureDatabasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + databases_ = + new java.util.ArrayList(databases_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.Database, + com.google.cloud.oracledatabase.v1.Database.Builder, + com.google.cloud.oracledatabase.v1.DatabaseOrBuilder> + databasesBuilder_; + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public java.util.List getDatabasesList() { + if (databasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(databases_); + } else { + return databasesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public int getDatabasesCount() { + if (databasesBuilder_ == null) { + return databases_.size(); + } else { + return databasesBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public com.google.cloud.oracledatabase.v1.Database getDatabases(int index) { + if (databasesBuilder_ == null) { + return databases_.get(index); + } else { + return databasesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public Builder setDatabases(int index, com.google.cloud.oracledatabase.v1.Database value) { + if (databasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabasesIsMutable(); + databases_.set(index, value); + onChanged(); + } else { + databasesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public Builder setDatabases( + int index, com.google.cloud.oracledatabase.v1.Database.Builder builderForValue) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.set(index, builderForValue.build()); + onChanged(); + } else { + databasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public Builder addDatabases(com.google.cloud.oracledatabase.v1.Database value) { + if (databasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabasesIsMutable(); + databases_.add(value); + onChanged(); + } else { + databasesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public Builder addDatabases(int index, com.google.cloud.oracledatabase.v1.Database value) { + if (databasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabasesIsMutable(); + databases_.add(index, value); + onChanged(); + } else { + databasesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public Builder addDatabases( + com.google.cloud.oracledatabase.v1.Database.Builder builderForValue) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.add(builderForValue.build()); + onChanged(); + } else { + databasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public Builder addDatabases( + int index, com.google.cloud.oracledatabase.v1.Database.Builder builderForValue) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.add(index, builderForValue.build()); + onChanged(); + } else { + databasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public Builder addAllDatabases( + java.lang.Iterable values) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, databases_); + onChanged(); + } else { + databasesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public Builder clearDatabases() { + if (databasesBuilder_ == null) { + databases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + databasesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public Builder removeDatabases(int index) { + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.remove(index); + onChanged(); + } else { + databasesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public com.google.cloud.oracledatabase.v1.Database.Builder getDatabasesBuilder(int index) { + return getDatabasesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public com.google.cloud.oracledatabase.v1.DatabaseOrBuilder getDatabasesOrBuilder(int index) { + if (databasesBuilder_ == null) { + return databases_.get(index); + } else { + return databasesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public java.util.List + getDatabasesOrBuilderList() { + if (databasesBuilder_ != null) { + return databasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(databases_); + } + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public com.google.cloud.oracledatabase.v1.Database.Builder addDatabasesBuilder() { + return getDatabasesFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.Database.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public com.google.cloud.oracledatabase.v1.Database.Builder addDatabasesBuilder(int index) { + return getDatabasesFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.Database.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of Databases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + public java.util.List + getDatabasesBuilderList() { + return getDatabasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.Database, + com.google.cloud.oracledatabase.v1.Database.Builder, + com.google.cloud.oracledatabase.v1.DatabaseOrBuilder> + getDatabasesFieldBuilder() { + if (databasesBuilder_ == null) { + databasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.Database, + com.google.cloud.oracledatabase.v1.Database.Builder, + com.google.cloud.oracledatabase.v1.DatabaseOrBuilder>( + databases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + databases_ = null; + } + return databasesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDatabasesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDatabasesResponse) + private static final com.google.cloud.oracledatabase.v1.ListDatabasesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDatabasesResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListDatabasesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatabasesResponse 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.oracledatabase.v1.ListDatabasesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesResponseOrBuilder.java new file mode 100644 index 000000000000..72b7325e75d4 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDatabasesResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDatabasesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDatabasesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + java.util.List getDatabasesList(); + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + com.google.cloud.oracledatabase.v1.Database getDatabases(int index); + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + int getDatabasesCount(); + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + java.util.List + getDatabasesOrBuilderList(); + + /** + * + * + *
                                              +   * The list of Databases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.Database databases = 1; + */ + com.google.cloud.oracledatabase.v1.DatabaseOrBuilder getDatabasesOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequest.java index 22e83f0a92f8..c8ca5fc46988 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequest.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequest.java @@ -76,6 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                                                  * Required. The parent value for database node in the following format:
                                                  * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
                                              +   * .
                                                  * 
                                              * * @@ -103,6 +104,7 @@ public java.lang.String getParent() { *
                                                  * Required. The parent value for database node in the following format:
                                                  * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
                                              +   * .
                                                  * 
                                              * * @@ -596,6 +598,7 @@ public Builder mergeFrom( *
                                                    * Required. The parent value for database node in the following format:
                                                    * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
                                              +     * .
                                                    * 
                                              * * @@ -622,6 +625,7 @@ public java.lang.String getParent() { *
                                                    * Required. The parent value for database node in the following format:
                                                    * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
                                              +     * .
                                                    * 
                                              * * @@ -648,6 +652,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
                                                    * Required. The parent value for database node in the following format:
                                                    * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
                                              +     * .
                                                    * 
                                              * * @@ -673,6 +678,7 @@ public Builder setParent(java.lang.String value) { *
                                                    * Required. The parent value for database node in the following format:
                                                    * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
                                              +     * .
                                                    * 
                                              * * @@ -694,6 +700,7 @@ public Builder clearParent() { *
                                                    * Required. The parent value for database node in the following format:
                                                    * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
                                              +     * .
                                                    * 
                                              * * diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequestOrBuilder.java index 81a65ea6dd43..af6286f08e81 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequestOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbNodesRequestOrBuilder.java @@ -30,6 +30,7 @@ public interface ListDbNodesRequestOrBuilder *
                                                  * Required. The parent value for database node in the following format:
                                                  * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
                                              +   * .
                                                  * 
                                              * * @@ -46,6 +47,7 @@ public interface ListDbNodesRequestOrBuilder *
                                                  * Required. The parent value for database node in the following format:
                                                  * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
                                              +   * .
                                                  * 
                                              * * diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesRequest.java new file mode 100644 index 000000000000..8daf82dac6c4 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesRequest.java @@ -0,0 +1,988 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `DbSystemInitialStorageSizes.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest} + */ +public final class ListDbSystemInitialStorageSizesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest) + ListDbSystemInitialStorageSizesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDbSystemInitialStorageSizesRequest.newBuilder() to construct. + private ListDbSystemInitialStorageSizesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbSystemInitialStorageSizesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbSystemInitialStorageSizesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest.class, + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for the DbSystemInitialStorageSize resource with
                                              +   * the format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * 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 value for the DbSystemInitialStorageSize resource with
                                              +   * the format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +   * If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be
                                              +   * returned. The maximum value is 1000; values above 1000 will be reset to
                                              +   * 1000.
                                              +   * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest other = + (com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest 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.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest 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.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `DbSystemInitialStorageSizes.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest) + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest.class, + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest build() { + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest + buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest result = + new com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest + .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(); + } + 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 + 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 value for the DbSystemInitialStorageSize resource with
                                              +     * the format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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 value for the DbSystemInitialStorageSize resource with
                                              +     * the format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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 value for the DbSystemInitialStorageSize resource with
                                              +     * the format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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 value for the DbSystemInitialStorageSize resource with
                                              +     * the format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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 value for the DbSystemInitialStorageSize resource with
                                              +     * the format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be
                                              +     * returned. The maximum value is 1000; values above 1000 will be reset to
                                              +     * 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be
                                              +     * returned. The maximum value is 1000; values above 1000 will be reset to
                                              +     * 1000.
                                              +     * 
                                              + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be
                                              +     * returned. The maximum value is 1000; values above 1000 will be reset to
                                              +     * 1000.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest) + private static final com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbSystemInitialStorageSizesRequest 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.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesRequestOrBuilder.java new file mode 100644 index 000000000000..e14d642016d9 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbSystemInitialStorageSizesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for the DbSystemInitialStorageSize resource with
                                              +   * the format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for the DbSystemInitialStorageSize resource with
                                              +   * the format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of items to return.
                                              +   * If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be
                                              +   * returned. The maximum value is 1000; values above 1000 will be reset to
                                              +   * 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesResponse.java new file mode 100644 index 000000000000..0c36ff4330ce --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesResponse.java @@ -0,0 +1,1254 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `DbSystemInitialStorageSizes.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse} + */ +public final class ListDbSystemInitialStorageSizesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse) + ListDbSystemInitialStorageSizesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDbSystemInitialStorageSizesResponse.newBuilder() to construct. + private ListDbSystemInitialStorageSizesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbSystemInitialStorageSizesResponse() { + dbSystemInitialStorageSizes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbSystemInitialStorageSizesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse.class, + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse.Builder + .class); + } + + public static final int DB_SYSTEM_INITIAL_STORAGE_SIZES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + dbSystemInitialStorageSizes_; + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + @java.lang.Override + public java.util.List + getDbSystemInitialStorageSizesList() { + return dbSystemInitialStorageSizes_; + } + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeOrBuilder> + getDbSystemInitialStorageSizesOrBuilderList() { + return dbSystemInitialStorageSizes_; + } + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + @java.lang.Override + public int getDbSystemInitialStorageSizesCount() { + return dbSystemInitialStorageSizes_.size(); + } + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize + getDbSystemInitialStorageSizes(int index) { + return dbSystemInitialStorageSizes_.get(index); + } + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeOrBuilder + getDbSystemInitialStorageSizesOrBuilder(int index) { + return dbSystemInitialStorageSizes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + 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 < dbSystemInitialStorageSizes_.size(); i++) { + output.writeMessage(1, dbSystemInitialStorageSizes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dbSystemInitialStorageSizes_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, dbSystemInitialStorageSizes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse other = + (com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse) obj; + + if (!getDbSystemInitialStorageSizesList().equals(other.getDbSystemInitialStorageSizesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDbSystemInitialStorageSizesCount() > 0) { + hash = (37 * hash) + DB_SYSTEM_INITIAL_STORAGE_SIZES_FIELD_NUMBER; + hash = (53 * hash) + getDbSystemInitialStorageSizesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + 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.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + 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.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `DbSystemInitialStorageSizes.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse) + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse.class, + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dbSystemInitialStorageSizesBuilder_ == null) { + dbSystemInitialStorageSizes_ = java.util.Collections.emptyList(); + } else { + dbSystemInitialStorageSizes_ = null; + dbSystemInitialStorageSizesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemInitialStorageSizesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse build() { + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse result = + new com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse result) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dbSystemInitialStorageSizes_ = + java.util.Collections.unmodifiableList(dbSystemInitialStorageSizes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dbSystemInitialStorageSizes_ = dbSystemInitialStorageSizes_; + } else { + result.dbSystemInitialStorageSizes_ = dbSystemInitialStorageSizesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + .getDefaultInstance()) return this; + if (dbSystemInitialStorageSizesBuilder_ == null) { + if (!other.dbSystemInitialStorageSizes_.isEmpty()) { + if (dbSystemInitialStorageSizes_.isEmpty()) { + dbSystemInitialStorageSizes_ = other.dbSystemInitialStorageSizes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDbSystemInitialStorageSizesIsMutable(); + dbSystemInitialStorageSizes_.addAll(other.dbSystemInitialStorageSizes_); + } + onChanged(); + } + } else { + if (!other.dbSystemInitialStorageSizes_.isEmpty()) { + if (dbSystemInitialStorageSizesBuilder_.isEmpty()) { + dbSystemInitialStorageSizesBuilder_.dispose(); + dbSystemInitialStorageSizesBuilder_ = null; + dbSystemInitialStorageSizes_ = other.dbSystemInitialStorageSizes_; + bitField0_ = (bitField0_ & ~0x00000001); + dbSystemInitialStorageSizesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDbSystemInitialStorageSizesFieldBuilder() + : null; + } else { + dbSystemInitialStorageSizesBuilder_.addAllMessages(other.dbSystemInitialStorageSizes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize m = + input.readMessage( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.parser(), + extensionRegistry); + if (dbSystemInitialStorageSizesBuilder_ == null) { + ensureDbSystemInitialStorageSizesIsMutable(); + dbSystemInitialStorageSizes_.add(m); + } else { + dbSystemInitialStorageSizesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + dbSystemInitialStorageSizes_ = java.util.Collections.emptyList(); + + private void ensureDbSystemInitialStorageSizesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dbSystemInitialStorageSizes_ = + new java.util.ArrayList( + dbSystemInitialStorageSizes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeOrBuilder> + dbSystemInitialStorageSizesBuilder_; + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public java.util.List + getDbSystemInitialStorageSizesList() { + if (dbSystemInitialStorageSizesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dbSystemInitialStorageSizes_); + } else { + return dbSystemInitialStorageSizesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public int getDbSystemInitialStorageSizesCount() { + if (dbSystemInitialStorageSizesBuilder_ == null) { + return dbSystemInitialStorageSizes_.size(); + } else { + return dbSystemInitialStorageSizesBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize + getDbSystemInitialStorageSizes(int index) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + return dbSystemInitialStorageSizes_.get(index); + } else { + return dbSystemInitialStorageSizesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public Builder setDbSystemInitialStorageSizes( + int index, com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize value) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbSystemInitialStorageSizesIsMutable(); + dbSystemInitialStorageSizes_.set(index, value); + onChanged(); + } else { + dbSystemInitialStorageSizesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public Builder setDbSystemInitialStorageSizes( + int index, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder builderForValue) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + ensureDbSystemInitialStorageSizesIsMutable(); + dbSystemInitialStorageSizes_.set(index, builderForValue.build()); + onChanged(); + } else { + dbSystemInitialStorageSizesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public Builder addDbSystemInitialStorageSizes( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize value) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbSystemInitialStorageSizesIsMutable(); + dbSystemInitialStorageSizes_.add(value); + onChanged(); + } else { + dbSystemInitialStorageSizesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public Builder addDbSystemInitialStorageSizes( + int index, com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize value) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbSystemInitialStorageSizesIsMutable(); + dbSystemInitialStorageSizes_.add(index, value); + onChanged(); + } else { + dbSystemInitialStorageSizesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public Builder addDbSystemInitialStorageSizes( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder builderForValue) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + ensureDbSystemInitialStorageSizesIsMutable(); + dbSystemInitialStorageSizes_.add(builderForValue.build()); + onChanged(); + } else { + dbSystemInitialStorageSizesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public Builder addDbSystemInitialStorageSizes( + int index, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder builderForValue) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + ensureDbSystemInitialStorageSizesIsMutable(); + dbSystemInitialStorageSizes_.add(index, builderForValue.build()); + onChanged(); + } else { + dbSystemInitialStorageSizesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public Builder addAllDbSystemInitialStorageSizes( + java.lang.Iterable + values) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + ensureDbSystemInitialStorageSizesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dbSystemInitialStorageSizes_); + onChanged(); + } else { + dbSystemInitialStorageSizesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public Builder clearDbSystemInitialStorageSizes() { + if (dbSystemInitialStorageSizesBuilder_ == null) { + dbSystemInitialStorageSizes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dbSystemInitialStorageSizesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public Builder removeDbSystemInitialStorageSizes(int index) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + ensureDbSystemInitialStorageSizesIsMutable(); + dbSystemInitialStorageSizes_.remove(index); + onChanged(); + } else { + dbSystemInitialStorageSizesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder + getDbSystemInitialStorageSizesBuilder(int index) { + return getDbSystemInitialStorageSizesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeOrBuilder + getDbSystemInitialStorageSizesOrBuilder(int index) { + if (dbSystemInitialStorageSizesBuilder_ == null) { + return dbSystemInitialStorageSizes_.get(index); + } else { + return dbSystemInitialStorageSizesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeOrBuilder> + getDbSystemInitialStorageSizesOrBuilderList() { + if (dbSystemInitialStorageSizesBuilder_ != null) { + return dbSystemInitialStorageSizesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dbSystemInitialStorageSizes_); + } + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder + addDbSystemInitialStorageSizesBuilder() { + return getDbSystemInitialStorageSizesFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder + addDbSystemInitialStorageSizesBuilder(int index) { + return getDbSystemInitialStorageSizesFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of DbSystemInitialStorageSizes.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + public java.util.List + getDbSystemInitialStorageSizesBuilderList() { + return getDbSystemInitialStorageSizesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeOrBuilder> + getDbSystemInitialStorageSizesFieldBuilder() { + if (dbSystemInitialStorageSizesBuilder_ == null) { + dbSystemInitialStorageSizesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize.Builder, + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeOrBuilder>( + dbSystemInitialStorageSizes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dbSystemInitialStorageSizes_ = null; + } + return dbSystemInitialStorageSizesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse) + private static final com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbSystemInitialStorageSizesResponse 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.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesResponseOrBuilder.java new file mode 100644 index 000000000000..644e67542881 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemInitialStorageSizesResponseOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbSystemInitialStorageSizesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + java.util.List + getDbSystemInitialStorageSizesList(); + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize getDbSystemInitialStorageSizes( + int index); + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + int getDbSystemInitialStorageSizesCount(); + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + java.util.List + getDbSystemInitialStorageSizesOrBuilderList(); + + /** + * + * + *
                                              +   * The list of DbSystemInitialStorageSizes.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + * + */ + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeOrBuilder + getDbSystemInitialStorageSizesOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequest.java index 55eaabaaa62a..189ab069b002 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequest.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequest.java @@ -42,6 +42,7 @@ private ListDbSystemShapesRequest(com.google.protobuf.GeneratedMessageV3.Builder private ListDbSystemShapesRequest() { parent_ = ""; pageToken_ = ""; + filter_ = ""; } @java.lang.Override @@ -198,6 +199,63 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Only the
                                              +   * gcp_oracle_zone_id field is supported in this format:
                                              +   * `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Only the
                                              +   * gcp_oracle_zone_id field is supported in this format:
                                              +   * `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.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 @@ -221,6 +279,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } getUnknownFields().writeTo(output); } @@ -239,6 +300,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -258,6 +322,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,6 +340,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -419,6 +486,7 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + filter_ = ""; return this; } @@ -466,6 +534,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } } @java.lang.Override @@ -528,6 +599,11 @@ public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbSystemShapesRe bitField0_ |= 0x00000004; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -572,6 +648,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -890,6 +972,127 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Only the
                                              +     * gcp_oracle_zone_id field is supported in this format:
                                              +     * `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Only the
                                              +     * gcp_oracle_zone_id field is supported in this format:
                                              +     * `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Only the
                                              +     * gcp_oracle_zone_id field is supported in this format:
                                              +     * `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Only the
                                              +     * gcp_oracle_zone_id field is supported in this format:
                                              +     * `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Only the
                                              +     * gcp_oracle_zone_id field is supported in this format:
                                              +     * `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequestOrBuilder.java index ecd4a6e17aba..c650a1ad9f8f 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequestOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemShapesRequestOrBuilder.java @@ -96,4 +96,34 @@ public interface ListDbSystemShapesRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Only the
                                              +   * gcp_oracle_zone_id field is supported in this format:
                                              +   * `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Only the
                                              +   * gcp_oracle_zone_id field is supported in this format:
                                              +   * `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsRequest.java new file mode 100644 index 000000000000..01052021f107 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsRequest.java @@ -0,0 +1,1328 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `DbSystem.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemsRequest} + */ +public final class ListDbSystemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbSystemsRequest) + ListDbSystemsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDbSystemsRequest.newBuilder() to construct. + private ListDbSystemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbSystemsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbSystemsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest.class, + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for DbSystems in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 value for DbSystems in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +   * If unspecified, at most 50 DbSystems will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + 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.oracledatabase.v1.ListDbSystemsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest other = + (com.google.cloud.oracledatabase.v1.ListDbSystemsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest 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.oracledatabase.v1.ListDbSystemsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest 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.oracledatabase.v1.ListDbSystemsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `DbSystem.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbSystemsRequest) + com.google.cloud.oracledatabase.v1.ListDbSystemsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest.class, + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbSystemsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemsRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbSystemsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemsRequest build() { + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbSystemsRequest result = + new com.google.cloud.oracledatabase.v1.ListDbSystemsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDbSystemsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListDbSystemsRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbSystemsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbSystemsRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListDbSystemsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                              +     * Required. The parent value for DbSystems in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for DbSystems in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for DbSystems in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for DbSystems in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for DbSystems in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 DbSystems will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of items to return.
                                              +     * If unspecified, at most 50 DbSystems will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 DbSystems will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDbSystemsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbSystemsRequest) + private static final com.google.cloud.oracledatabase.v1.ListDbSystemsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbSystemsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbSystemsRequest 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.oracledatabase.v1.ListDbSystemsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsRequestOrBuilder.java new file mode 100644 index 000000000000..f2d3871fbfd1 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsRequestOrBuilder.java @@ -0,0 +1,151 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbSystemsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbSystemsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for DbSystems in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for DbSystems in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of items to return.
                                              +   * If unspecified, at most 50 DbSystems will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsResponse.java new file mode 100644 index 000000000000..e1fc6f78d750 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsResponse.java @@ -0,0 +1,1152 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `DbSystem.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemsResponse} + */ +public final class ListDbSystemsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbSystemsResponse) + ListDbSystemsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDbSystemsResponse.newBuilder() to construct. + private ListDbSystemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbSystemsResponse() { + dbSystems_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbSystemsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse.class, + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse.Builder.class); + } + + public static final int DB_SYSTEMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dbSystems_; + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + @java.lang.Override + public java.util.List getDbSystemsList() { + return dbSystems_; + } + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + @java.lang.Override + public java.util.List + getDbSystemsOrBuilderList() { + return dbSystems_; + } + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + @java.lang.Override + public int getDbSystemsCount() { + return dbSystems_.size(); + } + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystem getDbSystems(int index) { + return dbSystems_.get(index); + } + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbSystemOrBuilder getDbSystemsOrBuilder(int index) { + return dbSystems_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + 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 < dbSystems_.size(); i++) { + output.writeMessage(1, dbSystems_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dbSystems_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dbSystems_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListDbSystemsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse other = + (com.google.cloud.oracledatabase.v1.ListDbSystemsResponse) obj; + + if (!getDbSystemsList().equals(other.getDbSystemsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDbSystemsCount() > 0) { + hash = (37 * hash) + DB_SYSTEMS_FIELD_NUMBER; + hash = (53 * hash) + getDbSystemsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse 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.oracledatabase.v1.ListDbSystemsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse 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.oracledatabase.v1.ListDbSystemsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `DbSystem.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbSystemsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbSystemsResponse) + com.google.cloud.oracledatabase.v1.ListDbSystemsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse.class, + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbSystemsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dbSystemsBuilder_ == null) { + dbSystems_ = java.util.Collections.emptyList(); + } else { + dbSystems_ = null; + dbSystemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemProto + .internal_static_google_cloud_oracledatabase_v1_ListDbSystemsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemsResponse getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbSystemsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemsResponse build() { + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbSystemsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse result = + new com.google.cloud.oracledatabase.v1.ListDbSystemsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListDbSystemsResponse result) { + if (dbSystemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dbSystems_ = java.util.Collections.unmodifiableList(dbSystems_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dbSystems_ = dbSystems_; + } else { + result.dbSystems_ = dbSystemsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDbSystemsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListDbSystemsResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbSystemsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbSystemsResponse other) { + if (other == com.google.cloud.oracledatabase.v1.ListDbSystemsResponse.getDefaultInstance()) + return this; + if (dbSystemsBuilder_ == null) { + if (!other.dbSystems_.isEmpty()) { + if (dbSystems_.isEmpty()) { + dbSystems_ = other.dbSystems_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDbSystemsIsMutable(); + dbSystems_.addAll(other.dbSystems_); + } + onChanged(); + } + } else { + if (!other.dbSystems_.isEmpty()) { + if (dbSystemsBuilder_.isEmpty()) { + dbSystemsBuilder_.dispose(); + dbSystemsBuilder_ = null; + dbSystems_ = other.dbSystems_; + bitField0_ = (bitField0_ & ~0x00000001); + dbSystemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDbSystemsFieldBuilder() + : null; + } else { + dbSystemsBuilder_.addAllMessages(other.dbSystems_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.DbSystem m = + input.readMessage( + com.google.cloud.oracledatabase.v1.DbSystem.parser(), extensionRegistry); + if (dbSystemsBuilder_ == null) { + ensureDbSystemsIsMutable(); + dbSystems_.add(m); + } else { + dbSystemsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List dbSystems_ = + java.util.Collections.emptyList(); + + private void ensureDbSystemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dbSystems_ = + new java.util.ArrayList(dbSystems_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystem, + com.google.cloud.oracledatabase.v1.DbSystem.Builder, + com.google.cloud.oracledatabase.v1.DbSystemOrBuilder> + dbSystemsBuilder_; + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public java.util.List getDbSystemsList() { + if (dbSystemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dbSystems_); + } else { + return dbSystemsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public int getDbSystemsCount() { + if (dbSystemsBuilder_ == null) { + return dbSystems_.size(); + } else { + return dbSystemsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystem getDbSystems(int index) { + if (dbSystemsBuilder_ == null) { + return dbSystems_.get(index); + } else { + return dbSystemsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public Builder setDbSystems(int index, com.google.cloud.oracledatabase.v1.DbSystem value) { + if (dbSystemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbSystemsIsMutable(); + dbSystems_.set(index, value); + onChanged(); + } else { + dbSystemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public Builder setDbSystems( + int index, com.google.cloud.oracledatabase.v1.DbSystem.Builder builderForValue) { + if (dbSystemsBuilder_ == null) { + ensureDbSystemsIsMutable(); + dbSystems_.set(index, builderForValue.build()); + onChanged(); + } else { + dbSystemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public Builder addDbSystems(com.google.cloud.oracledatabase.v1.DbSystem value) { + if (dbSystemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbSystemsIsMutable(); + dbSystems_.add(value); + onChanged(); + } else { + dbSystemsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public Builder addDbSystems(int index, com.google.cloud.oracledatabase.v1.DbSystem value) { + if (dbSystemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbSystemsIsMutable(); + dbSystems_.add(index, value); + onChanged(); + } else { + dbSystemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public Builder addDbSystems( + com.google.cloud.oracledatabase.v1.DbSystem.Builder builderForValue) { + if (dbSystemsBuilder_ == null) { + ensureDbSystemsIsMutable(); + dbSystems_.add(builderForValue.build()); + onChanged(); + } else { + dbSystemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public Builder addDbSystems( + int index, com.google.cloud.oracledatabase.v1.DbSystem.Builder builderForValue) { + if (dbSystemsBuilder_ == null) { + ensureDbSystemsIsMutable(); + dbSystems_.add(index, builderForValue.build()); + onChanged(); + } else { + dbSystemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public Builder addAllDbSystems( + java.lang.Iterable values) { + if (dbSystemsBuilder_ == null) { + ensureDbSystemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dbSystems_); + onChanged(); + } else { + dbSystemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public Builder clearDbSystems() { + if (dbSystemsBuilder_ == null) { + dbSystems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dbSystemsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public Builder removeDbSystems(int index) { + if (dbSystemsBuilder_ == null) { + ensureDbSystemsIsMutable(); + dbSystems_.remove(index); + onChanged(); + } else { + dbSystemsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystem.Builder getDbSystemsBuilder(int index) { + return getDbSystemsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystemOrBuilder getDbSystemsOrBuilder(int index) { + if (dbSystemsBuilder_ == null) { + return dbSystems_.get(index); + } else { + return dbSystemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public java.util.List + getDbSystemsOrBuilderList() { + if (dbSystemsBuilder_ != null) { + return dbSystemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dbSystems_); + } + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystem.Builder addDbSystemsBuilder() { + return getDbSystemsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public com.google.cloud.oracledatabase.v1.DbSystem.Builder addDbSystemsBuilder(int index) { + return getDbSystemsFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.DbSystem.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of DbSystems.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + public java.util.List + getDbSystemsBuilderList() { + return getDbSystemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystem, + com.google.cloud.oracledatabase.v1.DbSystem.Builder, + com.google.cloud.oracledatabase.v1.DbSystemOrBuilder> + getDbSystemsFieldBuilder() { + if (dbSystemsBuilder_ == null) { + dbSystemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbSystem, + com.google.cloud.oracledatabase.v1.DbSystem.Builder, + com.google.cloud.oracledatabase.v1.DbSystemOrBuilder>( + dbSystems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dbSystems_ = null; + } + return dbSystemsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDbSystemsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbSystemsResponse) + private static final com.google.cloud.oracledatabase.v1.ListDbSystemsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbSystemsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbSystemsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbSystemsResponse 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.oracledatabase.v1.ListDbSystemsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsResponseOrBuilder.java new file mode 100644 index 000000000000..5a15b8388035 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbSystemsResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbSystemsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbSystemsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + java.util.List getDbSystemsList(); + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + com.google.cloud.oracledatabase.v1.DbSystem getDbSystems(int index); + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + int getDbSystemsCount(); + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + java.util.List + getDbSystemsOrBuilderList(); + + /** + * + * + *
                                              +   * The list of DbSystems.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbSystem db_systems = 1; + */ + com.google.cloud.oracledatabase.v1.DbSystemOrBuilder getDbSystemsOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsRequest.java new file mode 100644 index 000000000000..acf6b80c634f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsRequest.java @@ -0,0 +1,1174 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `DbVersions.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbVersionsRequest} + */ +public final class ListDbVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbVersionsRequest) + ListDbVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDbVersionsRequest.newBuilder() to construct. + private ListDbVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbVersionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbVersionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest.class, + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for the DbVersion resource with the
                                              +   * format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * 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 value for the DbVersion resource with the
                                              +   * format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +   * If unspecified, a maximum of 50 DbVersions will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +   * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. Filter expression that matches a subset of the DbVersions to
                                              +   * show. The supported filter for dbSystem creation is `db_system_shape =
                                              +   * {db_system_shape} AND storage_management = {storage_management}`. If no
                                              +   * filter is provided, all DbVersions will be returned.
                                              +   * 
                                              + * + * string filter = 4 [(.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 that matches a subset of the DbVersions to
                                              +   * show. The supported filter for dbSystem creation is `db_system_shape =
                                              +   * {db_system_shape} AND storage_management = {storage_management}`. If no
                                              +   * filter is provided, all DbVersions will be returned.
                                              +   * 
                                              + * + * string filter = 4 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.oracledatabase.v1.ListDbVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest other = + (com.google.cloud.oracledatabase.v1.ListDbVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest 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.oracledatabase.v1.ListDbVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest 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.oracledatabase.v1.ListDbVersionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `DbVersions.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbVersionsRequest) + com.google.cloud.oracledatabase.v1.ListDbVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest.class, + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbVersionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbVersionsRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbVersionsRequest build() { + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbVersionsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbVersionsRequest result = + new com.google.cloud.oracledatabase.v1.ListDbVersionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDbVersionsRequest 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.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListDbVersionsRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbVersionsRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListDbVersionsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for the DbVersion resource with the
                                              +     * format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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 value for the DbVersion resource with the
                                              +     * format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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 value for the DbVersion resource with the
                                              +     * format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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 value for the DbVersion resource with the
                                              +     * format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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 value for the DbVersion resource with the
                                              +     * format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 DbVersions will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 DbVersions will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +     * 
                                              + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 DbVersions will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. Filter expression that matches a subset of the DbVersions to
                                              +     * show. The supported filter for dbSystem creation is `db_system_shape =
                                              +     * {db_system_shape} AND storage_management = {storage_management}`. If no
                                              +     * filter is provided, all DbVersions will be returned.
                                              +     * 
                                              + * + * string filter = 4 [(.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 that matches a subset of the DbVersions to
                                              +     * show. The supported filter for dbSystem creation is `db_system_shape =
                                              +     * {db_system_shape} AND storage_management = {storage_management}`. If no
                                              +     * filter is provided, all DbVersions will be returned.
                                              +     * 
                                              + * + * string filter = 4 [(.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 that matches a subset of the DbVersions to
                                              +     * show. The supported filter for dbSystem creation is `db_system_shape =
                                              +     * {db_system_shape} AND storage_management = {storage_management}`. If no
                                              +     * filter is provided, all DbVersions will be returned.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Filter expression that matches a subset of the DbVersions to
                                              +     * show. The supported filter for dbSystem creation is `db_system_shape =
                                              +     * {db_system_shape} AND storage_management = {storage_management}`. If no
                                              +     * filter is provided, all DbVersions will be returned.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Filter expression that matches a subset of the DbVersions to
                                              +     * show. The supported filter for dbSystem creation is `db_system_shape =
                                              +     * {db_system_shape} AND storage_management = {storage_management}`. If no
                                              +     * filter is provided, all DbVersions will be returned.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDbVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbVersionsRequest) + private static final com.google.cloud.oracledatabase.v1.ListDbVersionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbVersionsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbVersionsRequest 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.oracledatabase.v1.ListDbVersionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsRequestOrBuilder.java new file mode 100644 index 000000000000..d2d26075afbb --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for the DbVersion resource with the
                                              +   * format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for the DbVersion resource with the
                                              +   * format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of items to return.
                                              +   * If unspecified, a maximum of 50 DbVersions will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. Filter expression that matches a subset of the DbVersions to
                                              +   * show. The supported filter for dbSystem creation is `db_system_shape =
                                              +   * {db_system_shape} AND storage_management = {storage_management}`. If no
                                              +   * filter is provided, all DbVersions will be returned.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. Filter expression that matches a subset of the DbVersions to
                                              +   * show. The supported filter for dbSystem creation is `db_system_shape =
                                              +   * {db_system_shape} AND storage_management = {storage_management}`. If no
                                              +   * filter is provided, all DbVersions will be returned.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsResponse.java new file mode 100644 index 000000000000..cdbc8b72835a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsResponse.java @@ -0,0 +1,1152 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `DbVersions.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbVersionsResponse} + */ +public final class ListDbVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListDbVersionsResponse) + ListDbVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDbVersionsResponse.newBuilder() to construct. + private ListDbVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDbVersionsResponse() { + dbVersions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDbVersionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse.class, + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse.Builder.class); + } + + public static final int DB_VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dbVersions_; + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + @java.lang.Override + public java.util.List getDbVersionsList() { + return dbVersions_; + } + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + @java.lang.Override + public java.util.List + getDbVersionsOrBuilderList() { + return dbVersions_; + } + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + @java.lang.Override + public int getDbVersionsCount() { + return dbVersions_.size(); + } + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersion getDbVersions(int index) { + return dbVersions_.get(index); + } + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DbVersionOrBuilder getDbVersionsOrBuilder(int index) { + return dbVersions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + 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 < dbVersions_.size(); i++) { + output.writeMessage(1, dbVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dbVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dbVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListDbVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse other = + (com.google.cloud.oracledatabase.v1.ListDbVersionsResponse) obj; + + if (!getDbVersionsList().equals(other.getDbVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDbVersionsCount() > 0) { + hash = (37 * hash) + DB_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDbVersionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse 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.oracledatabase.v1.ListDbVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse 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.oracledatabase.v1.ListDbVersionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `DbVersions.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListDbVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListDbVersionsResponse) + com.google.cloud.oracledatabase.v1.ListDbVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse.class, + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListDbVersionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dbVersionsBuilder_ == null) { + dbVersions_ = java.util.Collections.emptyList(); + } else { + dbVersions_ = null; + dbVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListDbVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbVersionsResponse getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListDbVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbVersionsResponse build() { + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListDbVersionsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse result = + new com.google.cloud.oracledatabase.v1.ListDbVersionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListDbVersionsResponse result) { + if (dbVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dbVersions_ = java.util.Collections.unmodifiableList(dbVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dbVersions_ = dbVersions_; + } else { + result.dbVersions_ = dbVersionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListDbVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListDbVersionsResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListDbVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListDbVersionsResponse other) { + if (other == com.google.cloud.oracledatabase.v1.ListDbVersionsResponse.getDefaultInstance()) + return this; + if (dbVersionsBuilder_ == null) { + if (!other.dbVersions_.isEmpty()) { + if (dbVersions_.isEmpty()) { + dbVersions_ = other.dbVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDbVersionsIsMutable(); + dbVersions_.addAll(other.dbVersions_); + } + onChanged(); + } + } else { + if (!other.dbVersions_.isEmpty()) { + if (dbVersionsBuilder_.isEmpty()) { + dbVersionsBuilder_.dispose(); + dbVersionsBuilder_ = null; + dbVersions_ = other.dbVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + dbVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDbVersionsFieldBuilder() + : null; + } else { + dbVersionsBuilder_.addAllMessages(other.dbVersions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.DbVersion m = + input.readMessage( + com.google.cloud.oracledatabase.v1.DbVersion.parser(), extensionRegistry); + if (dbVersionsBuilder_ == null) { + ensureDbVersionsIsMutable(); + dbVersions_.add(m); + } else { + dbVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List dbVersions_ = + java.util.Collections.emptyList(); + + private void ensureDbVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dbVersions_ = + new java.util.ArrayList(dbVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbVersion, + com.google.cloud.oracledatabase.v1.DbVersion.Builder, + com.google.cloud.oracledatabase.v1.DbVersionOrBuilder> + dbVersionsBuilder_; + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public java.util.List getDbVersionsList() { + if (dbVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dbVersions_); + } else { + return dbVersionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public int getDbVersionsCount() { + if (dbVersionsBuilder_ == null) { + return dbVersions_.size(); + } else { + return dbVersionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.DbVersion getDbVersions(int index) { + if (dbVersionsBuilder_ == null) { + return dbVersions_.get(index); + } else { + return dbVersionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public Builder setDbVersions(int index, com.google.cloud.oracledatabase.v1.DbVersion value) { + if (dbVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbVersionsIsMutable(); + dbVersions_.set(index, value); + onChanged(); + } else { + dbVersionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public Builder setDbVersions( + int index, com.google.cloud.oracledatabase.v1.DbVersion.Builder builderForValue) { + if (dbVersionsBuilder_ == null) { + ensureDbVersionsIsMutable(); + dbVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + dbVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public Builder addDbVersions(com.google.cloud.oracledatabase.v1.DbVersion value) { + if (dbVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbVersionsIsMutable(); + dbVersions_.add(value); + onChanged(); + } else { + dbVersionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public Builder addDbVersions(int index, com.google.cloud.oracledatabase.v1.DbVersion value) { + if (dbVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDbVersionsIsMutable(); + dbVersions_.add(index, value); + onChanged(); + } else { + dbVersionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public Builder addDbVersions( + com.google.cloud.oracledatabase.v1.DbVersion.Builder builderForValue) { + if (dbVersionsBuilder_ == null) { + ensureDbVersionsIsMutable(); + dbVersions_.add(builderForValue.build()); + onChanged(); + } else { + dbVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public Builder addDbVersions( + int index, com.google.cloud.oracledatabase.v1.DbVersion.Builder builderForValue) { + if (dbVersionsBuilder_ == null) { + ensureDbVersionsIsMutable(); + dbVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + dbVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public Builder addAllDbVersions( + java.lang.Iterable values) { + if (dbVersionsBuilder_ == null) { + ensureDbVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dbVersions_); + onChanged(); + } else { + dbVersionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public Builder clearDbVersions() { + if (dbVersionsBuilder_ == null) { + dbVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dbVersionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public Builder removeDbVersions(int index) { + if (dbVersionsBuilder_ == null) { + ensureDbVersionsIsMutable(); + dbVersions_.remove(index); + onChanged(); + } else { + dbVersionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.DbVersion.Builder getDbVersionsBuilder(int index) { + return getDbVersionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.DbVersionOrBuilder getDbVersionsOrBuilder(int index) { + if (dbVersionsBuilder_ == null) { + return dbVersions_.get(index); + } else { + return dbVersionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public java.util.List + getDbVersionsOrBuilderList() { + if (dbVersionsBuilder_ != null) { + return dbVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dbVersions_); + } + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.DbVersion.Builder addDbVersionsBuilder() { + return getDbVersionsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.DbVersion.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.DbVersion.Builder addDbVersionsBuilder(int index) { + return getDbVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.DbVersion.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of DbVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + public java.util.List + getDbVersionsBuilderList() { + return getDbVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbVersion, + com.google.cloud.oracledatabase.v1.DbVersion.Builder, + com.google.cloud.oracledatabase.v1.DbVersionOrBuilder> + getDbVersionsFieldBuilder() { + if (dbVersionsBuilder_ == null) { + dbVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DbVersion, + com.google.cloud.oracledatabase.v1.DbVersion.Builder, + com.google.cloud.oracledatabase.v1.DbVersionOrBuilder>( + dbVersions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dbVersions_ = null; + } + return dbVersionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListDbVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListDbVersionsResponse) + private static final com.google.cloud.oracledatabase.v1.ListDbVersionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListDbVersionsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListDbVersionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDbVersionsResponse 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.oracledatabase.v1.ListDbVersionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsResponseOrBuilder.java new file mode 100644 index 000000000000..7d9f3fb59515 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListDbVersionsResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListDbVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListDbVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + java.util.List getDbVersionsList(); + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + com.google.cloud.oracledatabase.v1.DbVersion getDbVersions(int index); + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + int getDbVersionsCount(); + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + java.util.List + getDbVersionsOrBuilderList(); + + /** + * + * + *
                                              +   * The list of DbVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.DbVersion db_versions = 1; + */ + com.google.cloud.oracledatabase.v1.DbVersionOrBuilder getDbVersionsOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersRequest.java new file mode 100644 index 000000000000..f5c5f39f6361 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersRequest.java @@ -0,0 +1,1332 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `ExadbVmCluster.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListExadbVmClustersRequest} + */ +public final class ListExadbVmClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListExadbVmClustersRequest) + ListExadbVmClustersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListExadbVmClustersRequest.newBuilder() to construct. + private ListExadbVmClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExadbVmClustersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExadbVmClustersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest.class, + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for ExadbVmClusters in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 value for ExadbVmClusters in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +   * If unspecified, at most 50 ExadbVmClusters will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + 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.oracledatabase.v1.ListExadbVmClustersRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest other = + (com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest 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.oracledatabase.v1.ListExadbVmClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest 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.oracledatabase.v1.ListExadbVmClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `ExadbVmCluster.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListExadbVmClustersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListExadbVmClustersRequest) + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest.class, + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest build() { + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest result = + new com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                              +     * Required. The parent value for ExadbVmClusters in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for ExadbVmClusters in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for ExadbVmClusters in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for ExadbVmClusters in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for ExadbVmClusters in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ExadbVmClusters will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ExadbVmClusters will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ExadbVmClusters will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListExadbVmClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListExadbVmClustersRequest) + private static final com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExadbVmClustersRequest 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.oracledatabase.v1.ListExadbVmClustersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersRequestOrBuilder.java new file mode 100644 index 000000000000..84d6dc8c05b0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersRequestOrBuilder.java @@ -0,0 +1,151 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListExadbVmClustersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListExadbVmClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for ExadbVmClusters in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for ExadbVmClusters in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of items to return.
                                              +   * If unspecified, at most 50 ExadbVmClusters will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersResponse.java new file mode 100644 index 000000000000..362ee8f34694 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersResponse.java @@ -0,0 +1,1172 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `ExadbVmCluster.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListExadbVmClustersResponse} + */ +public final class ListExadbVmClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListExadbVmClustersResponse) + ListExadbVmClustersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListExadbVmClustersResponse.newBuilder() to construct. + private ListExadbVmClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExadbVmClustersResponse() { + exadbVmClusters_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExadbVmClustersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse.class, + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse.Builder.class); + } + + public static final int EXADB_VM_CLUSTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List exadbVmClusters_; + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + @java.lang.Override + public java.util.List + getExadbVmClustersList() { + return exadbVmClusters_; + } + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + @java.lang.Override + public java.util.List + getExadbVmClustersOrBuilderList() { + return exadbVmClusters_; + } + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + @java.lang.Override + public int getExadbVmClustersCount() { + return exadbVmClusters_.size(); + } + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmClusters(int index) { + return exadbVmClusters_.get(index); + } + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder getExadbVmClustersOrBuilder( + int index) { + return exadbVmClusters_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + 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 < exadbVmClusters_.size(); i++) { + output.writeMessage(1, exadbVmClusters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < exadbVmClusters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, exadbVmClusters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListExadbVmClustersResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse other = + (com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse) obj; + + if (!getExadbVmClustersList().equals(other.getExadbVmClustersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getExadbVmClustersCount() > 0) { + hash = (37 * hash) + EXADB_VM_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getExadbVmClustersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse 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.oracledatabase.v1.ListExadbVmClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse 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.oracledatabase.v1.ListExadbVmClustersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `ExadbVmCluster.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListExadbVmClustersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListExadbVmClustersResponse) + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse.class, + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (exadbVmClustersBuilder_ == null) { + exadbVmClusters_ = java.util.Collections.emptyList(); + } else { + exadbVmClusters_ = null; + exadbVmClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse build() { + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse result = + new com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse result) { + if (exadbVmClustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + exadbVmClusters_ = java.util.Collections.unmodifiableList(exadbVmClusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.exadbVmClusters_ = exadbVmClusters_; + } else { + result.exadbVmClusters_ = exadbVmClustersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse.getDefaultInstance()) + return this; + if (exadbVmClustersBuilder_ == null) { + if (!other.exadbVmClusters_.isEmpty()) { + if (exadbVmClusters_.isEmpty()) { + exadbVmClusters_ = other.exadbVmClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExadbVmClustersIsMutable(); + exadbVmClusters_.addAll(other.exadbVmClusters_); + } + onChanged(); + } + } else { + if (!other.exadbVmClusters_.isEmpty()) { + if (exadbVmClustersBuilder_.isEmpty()) { + exadbVmClustersBuilder_.dispose(); + exadbVmClustersBuilder_ = null; + exadbVmClusters_ = other.exadbVmClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + exadbVmClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExadbVmClustersFieldBuilder() + : null; + } else { + exadbVmClustersBuilder_.addAllMessages(other.exadbVmClusters_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.ExadbVmCluster m = + input.readMessage( + com.google.cloud.oracledatabase.v1.ExadbVmCluster.parser(), + extensionRegistry); + if (exadbVmClustersBuilder_ == null) { + ensureExadbVmClustersIsMutable(); + exadbVmClusters_.add(m); + } else { + exadbVmClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List exadbVmClusters_ = + java.util.Collections.emptyList(); + + private void ensureExadbVmClustersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + exadbVmClusters_ = + new java.util.ArrayList( + exadbVmClusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmCluster, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder> + exadbVmClustersBuilder_; + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public java.util.List + getExadbVmClustersList() { + if (exadbVmClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(exadbVmClusters_); + } else { + return exadbVmClustersBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public int getExadbVmClustersCount() { + if (exadbVmClustersBuilder_ == null) { + return exadbVmClusters_.size(); + } else { + return exadbVmClustersBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmClusters(int index) { + if (exadbVmClustersBuilder_ == null) { + return exadbVmClusters_.get(index); + } else { + return exadbVmClustersBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public Builder setExadbVmClusters( + int index, com.google.cloud.oracledatabase.v1.ExadbVmCluster value) { + if (exadbVmClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExadbVmClustersIsMutable(); + exadbVmClusters_.set(index, value); + onChanged(); + } else { + exadbVmClustersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public Builder setExadbVmClusters( + int index, com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder builderForValue) { + if (exadbVmClustersBuilder_ == null) { + ensureExadbVmClustersIsMutable(); + exadbVmClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + exadbVmClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public Builder addExadbVmClusters(com.google.cloud.oracledatabase.v1.ExadbVmCluster value) { + if (exadbVmClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExadbVmClustersIsMutable(); + exadbVmClusters_.add(value); + onChanged(); + } else { + exadbVmClustersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public Builder addExadbVmClusters( + int index, com.google.cloud.oracledatabase.v1.ExadbVmCluster value) { + if (exadbVmClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExadbVmClustersIsMutable(); + exadbVmClusters_.add(index, value); + onChanged(); + } else { + exadbVmClustersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public Builder addExadbVmClusters( + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder builderForValue) { + if (exadbVmClustersBuilder_ == null) { + ensureExadbVmClustersIsMutable(); + exadbVmClusters_.add(builderForValue.build()); + onChanged(); + } else { + exadbVmClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public Builder addExadbVmClusters( + int index, com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder builderForValue) { + if (exadbVmClustersBuilder_ == null) { + ensureExadbVmClustersIsMutable(); + exadbVmClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + exadbVmClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public Builder addAllExadbVmClusters( + java.lang.Iterable values) { + if (exadbVmClustersBuilder_ == null) { + ensureExadbVmClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exadbVmClusters_); + onChanged(); + } else { + exadbVmClustersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public Builder clearExadbVmClusters() { + if (exadbVmClustersBuilder_ == null) { + exadbVmClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + exadbVmClustersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public Builder removeExadbVmClusters(int index) { + if (exadbVmClustersBuilder_ == null) { + ensureExadbVmClustersIsMutable(); + exadbVmClusters_.remove(index); + onChanged(); + } else { + exadbVmClustersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder getExadbVmClustersBuilder( + int index) { + return getExadbVmClustersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder getExadbVmClustersOrBuilder( + int index) { + if (exadbVmClustersBuilder_ == null) { + return exadbVmClusters_.get(index); + } else { + return exadbVmClustersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public java.util.List + getExadbVmClustersOrBuilderList() { + if (exadbVmClustersBuilder_ != null) { + return exadbVmClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exadbVmClusters_); + } + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder addExadbVmClustersBuilder() { + return getExadbVmClustersFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder addExadbVmClustersBuilder( + int index) { + return getExadbVmClustersFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of ExadbVmClusters.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + public java.util.List + getExadbVmClustersBuilderList() { + return getExadbVmClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmCluster, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder> + getExadbVmClustersFieldBuilder() { + if (exadbVmClustersBuilder_ == null) { + exadbVmClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmCluster, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder>( + exadbVmClusters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + exadbVmClusters_ = null; + } + return exadbVmClustersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListExadbVmClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListExadbVmClustersResponse) + private static final com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExadbVmClustersResponse 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.oracledatabase.v1.ListExadbVmClustersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersResponseOrBuilder.java new file mode 100644 index 000000000000..48e523cbe222 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExadbVmClustersResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListExadbVmClustersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListExadbVmClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + java.util.List getExadbVmClustersList(); + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmClusters(int index); + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + int getExadbVmClustersCount(); + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + java.util.List + getExadbVmClustersOrBuilderList(); + + /** + * + * + *
                                              +   * The list of ExadbVmClusters.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_clusters = 1; + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder getExadbVmClustersOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsRequest.java new file mode 100644 index 000000000000..6d17b812ed37 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsRequest.java @@ -0,0 +1,1354 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `ExascaleDbStorageVault.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest} + */ +public final class ListExascaleDbStorageVaultsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest) + ListExascaleDbStorageVaultsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListExascaleDbStorageVaultsRequest.newBuilder() to construct. + private ListExascaleDbStorageVaultsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExascaleDbStorageVaultsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExascaleDbStorageVaultsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest.class, + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for ExascaleDbStorageVault in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 value for ExascaleDbStorageVault in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +   * If unspecified, at most 50 ExascaleDbStorageVaults will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Filter
                                              +   * the list as specified in https://google.aip.dev/160.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Filter
                                              +   * the list as specified in https://google.aip.dev/160.
                                              +   * 
                                              + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request. Order
                                              +   * results as specified in https://google.aip.dev/132.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request. Order
                                              +   * results as specified in https://google.aip.dev/132.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + 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.oracledatabase.v1.ListExascaleDbStorageVaultsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest other = + (com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest 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.oracledatabase.v1.ListExascaleDbStorageVaultsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest 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.oracledatabase.v1.ListExascaleDbStorageVaultsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `ExascaleDbStorageVault.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest) + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest.class, + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest build() { + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest result = + new com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest + .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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                              +     * Required. The parent value for ExascaleDbStorageVault in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for ExascaleDbStorageVault in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for ExascaleDbStorageVault in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for ExascaleDbStorageVault in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for ExascaleDbStorageVault in the following
                                              +     * format: projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ExascaleDbStorageVaults will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ExascaleDbStorageVaults will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ExascaleDbStorageVaults will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Filter
                                              +     * the list as specified in https://google.aip.dev/160.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Filter
                                              +     * the list as specified in https://google.aip.dev/160.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Filter
                                              +     * the list as specified in https://google.aip.dev/160.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Filter
                                              +     * the list as specified in https://google.aip.dev/160.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Filter
                                              +     * the list as specified in https://google.aip.dev/160.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request. Order
                                              +     * results as specified in https://google.aip.dev/132.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request. Order
                                              +     * results as specified in https://google.aip.dev/132.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request. Order
                                              +     * results as specified in https://google.aip.dev/132.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request. Order
                                              +     * results as specified in https://google.aip.dev/132.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request. Order
                                              +     * results as specified in https://google.aip.dev/132.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest) + private static final com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExascaleDbStorageVaultsRequest 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.oracledatabase.v1.ListExascaleDbStorageVaultsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsRequestOrBuilder.java new file mode 100644 index 000000000000..ea286466a3bb --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsRequestOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListExascaleDbStorageVaultsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for ExascaleDbStorageVault in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for ExascaleDbStorageVault in the following
                                              +   * format: projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of items to return.
                                              +   * If unspecified, at most 50 ExascaleDbStorageVaults will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Filter
                                              +   * the list as specified in https://google.aip.dev/160.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Filter
                                              +   * the list as specified in https://google.aip.dev/160.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request. Order
                                              +   * results as specified in https://google.aip.dev/132.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request. Order
                                              +   * results as specified in https://google.aip.dev/132.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsResponse.java new file mode 100644 index 000000000000..28ccd46e6b84 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsResponse.java @@ -0,0 +1,1263 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `ExascaleDbStorageVault.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse} + */ +public final class ListExascaleDbStorageVaultsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse) + ListExascaleDbStorageVaultsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListExascaleDbStorageVaultsResponse.newBuilder() to construct. + private ListExascaleDbStorageVaultsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExascaleDbStorageVaultsResponse() { + exascaleDbStorageVaults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExascaleDbStorageVaultsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse.class, + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse.Builder.class); + } + + public static final int EXASCALE_DB_STORAGE_VAULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + exascaleDbStorageVaults_; + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + @java.lang.Override + public java.util.List + getExascaleDbStorageVaultsList() { + return exascaleDbStorageVaults_; + } + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder> + getExascaleDbStorageVaultsOrBuilderList() { + return exascaleDbStorageVaults_; + } + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + @java.lang.Override + public int getExascaleDbStorageVaultsCount() { + return exascaleDbStorageVaults_.size(); + } + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getExascaleDbStorageVaults( + int index) { + return exascaleDbStorageVaults_.get(index); + } + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder + getExascaleDbStorageVaultsOrBuilder(int index) { + return exascaleDbStorageVaults_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return. If present,
                                              +   * the next page token can be provided to a subsequent
                                              +   * ListExascaleDbStorageVaults call to list the next page.
                                              +   * If empty, there are no more pages.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return. If present,
                                              +   * the next page token can be provided to a subsequent
                                              +   * ListExascaleDbStorageVaults call to list the next page.
                                              +   * If empty, there are no more pages.
                                              +   * 
                                              + * + * 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; + } + } + + 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 < exascaleDbStorageVaults_.size(); i++) { + output.writeMessage(1, exascaleDbStorageVaults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < exascaleDbStorageVaults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, exascaleDbStorageVaults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListExascaleDbStorageVaultsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse other = + (com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse) obj; + + if (!getExascaleDbStorageVaultsList().equals(other.getExascaleDbStorageVaultsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getExascaleDbStorageVaultsCount() > 0) { + hash = (37 * hash) + EXASCALE_DB_STORAGE_VAULTS_FIELD_NUMBER; + hash = (53 * hash) + getExascaleDbStorageVaultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse 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.oracledatabase.v1.ListExascaleDbStorageVaultsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse 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.oracledatabase.v1.ListExascaleDbStorageVaultsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `ExascaleDbStorageVault.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse) + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse.class, + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (exascaleDbStorageVaultsBuilder_ == null) { + exascaleDbStorageVaults_ = java.util.Collections.emptyList(); + } else { + exascaleDbStorageVaults_ = null; + exascaleDbStorageVaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto + .internal_static_google_cloud_oracledatabase_v1_ListExascaleDbStorageVaultsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse build() { + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse result = + new com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse result) { + if (exascaleDbStorageVaultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + exascaleDbStorageVaults_ = + java.util.Collections.unmodifiableList(exascaleDbStorageVaults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.exascaleDbStorageVaults_ = exascaleDbStorageVaults_; + } else { + result.exascaleDbStorageVaults_ = exascaleDbStorageVaultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + .getDefaultInstance()) return this; + if (exascaleDbStorageVaultsBuilder_ == null) { + if (!other.exascaleDbStorageVaults_.isEmpty()) { + if (exascaleDbStorageVaults_.isEmpty()) { + exascaleDbStorageVaults_ = other.exascaleDbStorageVaults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExascaleDbStorageVaultsIsMutable(); + exascaleDbStorageVaults_.addAll(other.exascaleDbStorageVaults_); + } + onChanged(); + } + } else { + if (!other.exascaleDbStorageVaults_.isEmpty()) { + if (exascaleDbStorageVaultsBuilder_.isEmpty()) { + exascaleDbStorageVaultsBuilder_.dispose(); + exascaleDbStorageVaultsBuilder_ = null; + exascaleDbStorageVaults_ = other.exascaleDbStorageVaults_; + bitField0_ = (bitField0_ & ~0x00000001); + exascaleDbStorageVaultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExascaleDbStorageVaultsFieldBuilder() + : null; + } else { + exascaleDbStorageVaultsBuilder_.addAllMessages(other.exascaleDbStorageVaults_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault m = + input.readMessage( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.parser(), + extensionRegistry); + if (exascaleDbStorageVaultsBuilder_ == null) { + ensureExascaleDbStorageVaultsIsMutable(); + exascaleDbStorageVaults_.add(m); + } else { + exascaleDbStorageVaultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + exascaleDbStorageVaults_ = java.util.Collections.emptyList(); + + private void ensureExascaleDbStorageVaultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + exascaleDbStorageVaults_ = + new java.util.ArrayList( + exascaleDbStorageVaults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder> + exascaleDbStorageVaultsBuilder_; + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public java.util.List + getExascaleDbStorageVaultsList() { + if (exascaleDbStorageVaultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(exascaleDbStorageVaults_); + } else { + return exascaleDbStorageVaultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public int getExascaleDbStorageVaultsCount() { + if (exascaleDbStorageVaultsBuilder_ == null) { + return exascaleDbStorageVaults_.size(); + } else { + return exascaleDbStorageVaultsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getExascaleDbStorageVaults( + int index) { + if (exascaleDbStorageVaultsBuilder_ == null) { + return exascaleDbStorageVaults_.get(index); + } else { + return exascaleDbStorageVaultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public Builder setExascaleDbStorageVaults( + int index, com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault value) { + if (exascaleDbStorageVaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExascaleDbStorageVaultsIsMutable(); + exascaleDbStorageVaults_.set(index, value); + onChanged(); + } else { + exascaleDbStorageVaultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public Builder setExascaleDbStorageVaults( + int index, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder builderForValue) { + if (exascaleDbStorageVaultsBuilder_ == null) { + ensureExascaleDbStorageVaultsIsMutable(); + exascaleDbStorageVaults_.set(index, builderForValue.build()); + onChanged(); + } else { + exascaleDbStorageVaultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public Builder addExascaleDbStorageVaults( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault value) { + if (exascaleDbStorageVaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExascaleDbStorageVaultsIsMutable(); + exascaleDbStorageVaults_.add(value); + onChanged(); + } else { + exascaleDbStorageVaultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public Builder addExascaleDbStorageVaults( + int index, com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault value) { + if (exascaleDbStorageVaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExascaleDbStorageVaultsIsMutable(); + exascaleDbStorageVaults_.add(index, value); + onChanged(); + } else { + exascaleDbStorageVaultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public Builder addExascaleDbStorageVaults( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder builderForValue) { + if (exascaleDbStorageVaultsBuilder_ == null) { + ensureExascaleDbStorageVaultsIsMutable(); + exascaleDbStorageVaults_.add(builderForValue.build()); + onChanged(); + } else { + exascaleDbStorageVaultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public Builder addExascaleDbStorageVaults( + int index, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder builderForValue) { + if (exascaleDbStorageVaultsBuilder_ == null) { + ensureExascaleDbStorageVaultsIsMutable(); + exascaleDbStorageVaults_.add(index, builderForValue.build()); + onChanged(); + } else { + exascaleDbStorageVaultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public Builder addAllExascaleDbStorageVaults( + java.lang.Iterable + values) { + if (exascaleDbStorageVaultsBuilder_ == null) { + ensureExascaleDbStorageVaultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exascaleDbStorageVaults_); + onChanged(); + } else { + exascaleDbStorageVaultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public Builder clearExascaleDbStorageVaults() { + if (exascaleDbStorageVaultsBuilder_ == null) { + exascaleDbStorageVaults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + exascaleDbStorageVaultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public Builder removeExascaleDbStorageVaults(int index) { + if (exascaleDbStorageVaultsBuilder_ == null) { + ensureExascaleDbStorageVaultsIsMutable(); + exascaleDbStorageVaults_.remove(index); + onChanged(); + } else { + exascaleDbStorageVaultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder + getExascaleDbStorageVaultsBuilder(int index) { + return getExascaleDbStorageVaultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder + getExascaleDbStorageVaultsOrBuilder(int index) { + if (exascaleDbStorageVaultsBuilder_ == null) { + return exascaleDbStorageVaults_.get(index); + } else { + return exascaleDbStorageVaultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder> + getExascaleDbStorageVaultsOrBuilderList() { + if (exascaleDbStorageVaultsBuilder_ != null) { + return exascaleDbStorageVaultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exascaleDbStorageVaults_); + } + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder + addExascaleDbStorageVaultsBuilder() { + return getExascaleDbStorageVaultsFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder + addExascaleDbStorageVaultsBuilder(int index) { + return getExascaleDbStorageVaultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The ExascaleDbStorageVaults.
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + public java.util.List + getExascaleDbStorageVaultsBuilderList() { + return getExascaleDbStorageVaultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder> + getExascaleDbStorageVaultsFieldBuilder() { + if (exascaleDbStorageVaultsBuilder_ == null) { + exascaleDbStorageVaultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.Builder, + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder>( + exascaleDbStorageVaults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + exascaleDbStorageVaults_ = null; + } + return exascaleDbStorageVaultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return. If present,
                                              +     * the next page token can be provided to a subsequent
                                              +     * ListExascaleDbStorageVaults call to list the next page.
                                              +     * If empty, there are no more pages.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return. If present,
                                              +     * the next page token can be provided to a subsequent
                                              +     * ListExascaleDbStorageVaults call to list the next page.
                                              +     * If empty, there are no more pages.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return. If present,
                                              +     * the next page token can be provided to a subsequent
                                              +     * ListExascaleDbStorageVaults call to list the next page.
                                              +     * If empty, there are no more pages.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return. If present,
                                              +     * the next page token can be provided to a subsequent
                                              +     * ListExascaleDbStorageVaults call to list the next page.
                                              +     * If empty, there are no more pages.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return. If present,
                                              +     * the next page token can be provided to a subsequent
                                              +     * ListExascaleDbStorageVaults call to list the next page.
                                              +     * If empty, there are no more pages.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse) + private static final com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExascaleDbStorageVaultsResponse 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.oracledatabase.v1.ListExascaleDbStorageVaultsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsResponseOrBuilder.java new file mode 100644 index 000000000000..348e5a23e594 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListExascaleDbStorageVaultsResponseOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListExascaleDbStorageVaultsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + java.util.List + getExascaleDbStorageVaultsList(); + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault getExascaleDbStorageVaults(int index); + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + int getExascaleDbStorageVaultsCount(); + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + java.util.List + getExascaleDbStorageVaultsOrBuilderList(); + + /** + * + * + *
                                              +   * The ExascaleDbStorageVaults.
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.ExascaleDbStorageVault exascale_db_storage_vaults = 1; + * + */ + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultOrBuilder + getExascaleDbStorageVaultsOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return. If present,
                                              +   * the next page token can be provided to a subsequent
                                              +   * ListExascaleDbStorageVaults call to list the next page.
                                              +   * If empty, there are no more pages.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return. If present,
                                              +   * the next page token can be provided to a subsequent
                                              +   * ListExascaleDbStorageVaults call to list the next page.
                                              +   * If empty, there are no more pages.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequest.java index ec689fe9a9ad..6675ee727ffe 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequest.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequest.java @@ -42,6 +42,7 @@ private ListGiVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder private ListGiVersionsRequest() { parent_ = ""; pageToken_ = ""; + filter_ = ""; } @java.lang.Override @@ -199,6 +200,63 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Only the
                                              +   * shape, gcp_oracle_zone and gi_version fields are supported in this format:
                                              +   * `shape="{shape}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Only the
                                              +   * shape, gcp_oracle_zone and gi_version fields are supported in this format:
                                              +   * `shape="{shape}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.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 @@ -222,6 +280,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } getUnknownFields().writeTo(output); } @@ -240,6 +301,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -259,6 +323,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,6 +341,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -420,6 +487,7 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + filter_ = ""; return this; } @@ -465,6 +533,9 @@ private void buildPartial0(com.google.cloud.oracledatabase.v1.ListGiVersionsRequ if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } } @java.lang.Override @@ -526,6 +597,11 @@ public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListGiVersionsReques bitField0_ |= 0x00000004; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -570,6 +646,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -891,6 +973,127 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Only the
                                              +     * shape, gcp_oracle_zone and gi_version fields are supported in this format:
                                              +     * `shape="{shape}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Only the
                                              +     * shape, gcp_oracle_zone and gi_version fields are supported in this format:
                                              +     * `shape="{shape}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. Only the
                                              +     * shape, gcp_oracle_zone and gi_version fields are supported in this format:
                                              +     * `shape="{shape}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Only the
                                              +     * shape, gcp_oracle_zone and gi_version fields are supported in this format:
                                              +     * `shape="{shape}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. Only the
                                              +     * shape, gcp_oracle_zone and gi_version fields are supported in this format:
                                              +     * `shape="{shape}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequestOrBuilder.java index 51320abf581a..63ce598579f5 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequestOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListGiVersionsRequestOrBuilder.java @@ -97,4 +97,34 @@ public interface ListGiVersionsRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Only the
                                              +   * shape, gcp_oracle_zone and gi_version fields are supported in this format:
                                              +   * `shape="{shape}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. Only the
                                              +   * shape, gcp_oracle_zone and gi_version fields are supported in this format:
                                              +   * `shape="{shape}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsRequest.java new file mode 100644 index 000000000000..56a4b917a0f3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsRequest.java @@ -0,0 +1,1174 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/minor_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `MinorVersion.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListMinorVersionsRequest} + */ +public final class ListMinorVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListMinorVersionsRequest) + ListMinorVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMinorVersionsRequest.newBuilder() to construct. + private ListMinorVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMinorVersionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMinorVersionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest.class, + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for the MinorVersion resource with the format:
                                              +   * projects/{project}/locations/{location}/giVersions/{gi_version}
                                              +   * 
                                              + * + * + * 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 value for the MinorVersion resource with the format:
                                              +   * projects/{project}/locations/{location}/giVersions/{gi_version}
                                              +   * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +   * If unspecified, a maximum of 50 System Versions will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +   * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * Only shapeFamily and gcp_oracle_zone_id are supported in this format:
                                              +   * `shape_family="{shapeFamily}" AND
                                              +   * gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +   * Only shapeFamily and gcp_oracle_zone_id are supported in this format:
                                              +   * `shape_family="{shapeFamily}" AND
                                              +   * gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.oracledatabase.v1.ListMinorVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest other = + (com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest 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.oracledatabase.v1.ListMinorVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest 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.oracledatabase.v1.ListMinorVersionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `MinorVersion.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListMinorVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListMinorVersionsRequest) + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest.class, + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest build() { + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest result = + new com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest 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.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 value for the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{location}/giVersions/{gi_version}
                                              +     * 
                                              + * + * + * 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 value for the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{location}/giVersions/{gi_version}
                                              +     * 
                                              + * + * + * 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 value for the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{location}/giVersions/{gi_version}
                                              +     * 
                                              + * + * + * 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 value for the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{location}/giVersions/{gi_version}
                                              +     * 
                                              + * + * + * 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 value for the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{location}/giVersions/{gi_version}
                                              +     * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 System Versions will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 System Versions will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +     * 
                                              + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, a maximum of 50 System Versions will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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. A token identifying the requested page of results to return. All
                                              +     * fields except the filter should remain the same as in the request that
                                              +     * provided this page token.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * Only shapeFamily and gcp_oracle_zone_id are supported in this format:
                                              +     * `shape_family="{shapeFamily}" AND
                                              +     * gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * Only shapeFamily and gcp_oracle_zone_id are supported in this format:
                                              +     * `shape_family="{shapeFamily}" AND
                                              +     * gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * Only shapeFamily and gcp_oracle_zone_id are supported in this format:
                                              +     * `shape_family="{shapeFamily}" AND
                                              +     * gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * Only shapeFamily and gcp_oracle_zone_id are supported in this format:
                                              +     * `shape_family="{shapeFamily}" AND
                                              +     * gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * Only shapeFamily and gcp_oracle_zone_id are supported in this format:
                                              +     * `shape_family="{shapeFamily}" AND
                                              +     * gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListMinorVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListMinorVersionsRequest) + private static final com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMinorVersionsRequest 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.oracledatabase.v1.ListMinorVersionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsRequestOrBuilder.java new file mode 100644 index 000000000000..3bffae38a961 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/minor_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListMinorVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListMinorVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for the MinorVersion resource with the format:
                                              +   * projects/{project}/locations/{location}/giVersions/{gi_version}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for the MinorVersion resource with the format:
                                              +   * projects/{project}/locations/{location}/giVersions/{gi_version}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of items to return.
                                              +   * If unspecified, a maximum of 50 System Versions will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be reset to 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying the requested page of results to return. All
                                              +   * fields except the filter should remain the same as in the request that
                                              +   * provided this page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * Only shapeFamily and gcp_oracle_zone_id are supported in this format:
                                              +   * `shape_family="{shapeFamily}" AND
                                              +   * gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * Only shapeFamily and gcp_oracle_zone_id are supported in this format:
                                              +   * `shape_family="{shapeFamily}" AND
                                              +   * gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsResponse.java new file mode 100644 index 000000000000..26a8e082d227 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsResponse.java @@ -0,0 +1,1167 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/minor_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `MinorVersion.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListMinorVersionsResponse} + */ +public final class ListMinorVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListMinorVersionsResponse) + ListMinorVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMinorVersionsResponse.newBuilder() to construct. + private ListMinorVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMinorVersionsResponse() { + minorVersions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMinorVersionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse.class, + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse.Builder.class); + } + + public static final int MINOR_VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List minorVersions_; + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + @java.lang.Override + public java.util.List getMinorVersionsList() { + return minorVersions_; + } + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + @java.lang.Override + public java.util.List + getMinorVersionsOrBuilderList() { + return minorVersions_; + } + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + @java.lang.Override + public int getMinorVersionsCount() { + return minorVersions_.size(); + } + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MinorVersion getMinorVersions(int index) { + return minorVersions_.get(index); + } + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MinorVersionOrBuilder getMinorVersionsOrBuilder( + int index) { + return minorVersions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + 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 < minorVersions_.size(); i++) { + output.writeMessage(1, minorVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < minorVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, minorVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListMinorVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse other = + (com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse) obj; + + if (!getMinorVersionsList().equals(other.getMinorVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getMinorVersionsCount() > 0) { + hash = (37 * hash) + MINOR_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getMinorVersionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse 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.oracledatabase.v1.ListMinorVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse 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.oracledatabase.v1.ListMinorVersionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `MinorVersion.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListMinorVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListMinorVersionsResponse) + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse.class, + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (minorVersionsBuilder_ == null) { + minorVersions_ = java.util.Collections.emptyList(); + } else { + minorVersions_ = null; + minorVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse build() { + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse result = + new com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse result) { + if (minorVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + minorVersions_ = java.util.Collections.unmodifiableList(minorVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.minorVersions_ = minorVersions_; + } else { + result.minorVersions_ = minorVersionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse.getDefaultInstance()) + return this; + if (minorVersionsBuilder_ == null) { + if (!other.minorVersions_.isEmpty()) { + if (minorVersions_.isEmpty()) { + minorVersions_ = other.minorVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMinorVersionsIsMutable(); + minorVersions_.addAll(other.minorVersions_); + } + onChanged(); + } + } else { + if (!other.minorVersions_.isEmpty()) { + if (minorVersionsBuilder_.isEmpty()) { + minorVersionsBuilder_.dispose(); + minorVersionsBuilder_ = null; + minorVersions_ = other.minorVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + minorVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMinorVersionsFieldBuilder() + : null; + } else { + minorVersionsBuilder_.addAllMessages(other.minorVersions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.MinorVersion m = + input.readMessage( + com.google.cloud.oracledatabase.v1.MinorVersion.parser(), + extensionRegistry); + if (minorVersionsBuilder_ == null) { + ensureMinorVersionsIsMutable(); + minorVersions_.add(m); + } else { + minorVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List minorVersions_ = + java.util.Collections.emptyList(); + + private void ensureMinorVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + minorVersions_ = + new java.util.ArrayList( + minorVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.MinorVersion, + com.google.cloud.oracledatabase.v1.MinorVersion.Builder, + com.google.cloud.oracledatabase.v1.MinorVersionOrBuilder> + minorVersionsBuilder_; + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public java.util.List getMinorVersionsList() { + if (minorVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(minorVersions_); + } else { + return minorVersionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public int getMinorVersionsCount() { + if (minorVersionsBuilder_ == null) { + return minorVersions_.size(); + } else { + return minorVersionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.MinorVersion getMinorVersions(int index) { + if (minorVersionsBuilder_ == null) { + return minorVersions_.get(index); + } else { + return minorVersionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public Builder setMinorVersions( + int index, com.google.cloud.oracledatabase.v1.MinorVersion value) { + if (minorVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMinorVersionsIsMutable(); + minorVersions_.set(index, value); + onChanged(); + } else { + minorVersionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public Builder setMinorVersions( + int index, com.google.cloud.oracledatabase.v1.MinorVersion.Builder builderForValue) { + if (minorVersionsBuilder_ == null) { + ensureMinorVersionsIsMutable(); + minorVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + minorVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public Builder addMinorVersions(com.google.cloud.oracledatabase.v1.MinorVersion value) { + if (minorVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMinorVersionsIsMutable(); + minorVersions_.add(value); + onChanged(); + } else { + minorVersionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public Builder addMinorVersions( + int index, com.google.cloud.oracledatabase.v1.MinorVersion value) { + if (minorVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMinorVersionsIsMutable(); + minorVersions_.add(index, value); + onChanged(); + } else { + minorVersionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public Builder addMinorVersions( + com.google.cloud.oracledatabase.v1.MinorVersion.Builder builderForValue) { + if (minorVersionsBuilder_ == null) { + ensureMinorVersionsIsMutable(); + minorVersions_.add(builderForValue.build()); + onChanged(); + } else { + minorVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public Builder addMinorVersions( + int index, com.google.cloud.oracledatabase.v1.MinorVersion.Builder builderForValue) { + if (minorVersionsBuilder_ == null) { + ensureMinorVersionsIsMutable(); + minorVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + minorVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public Builder addAllMinorVersions( + java.lang.Iterable values) { + if (minorVersionsBuilder_ == null) { + ensureMinorVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, minorVersions_); + onChanged(); + } else { + minorVersionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public Builder clearMinorVersions() { + if (minorVersionsBuilder_ == null) { + minorVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + minorVersionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public Builder removeMinorVersions(int index) { + if (minorVersionsBuilder_ == null) { + ensureMinorVersionsIsMutable(); + minorVersions_.remove(index); + onChanged(); + } else { + minorVersionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.MinorVersion.Builder getMinorVersionsBuilder( + int index) { + return getMinorVersionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.MinorVersionOrBuilder getMinorVersionsOrBuilder( + int index) { + if (minorVersionsBuilder_ == null) { + return minorVersions_.get(index); + } else { + return minorVersionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public java.util.List + getMinorVersionsOrBuilderList() { + if (minorVersionsBuilder_ != null) { + return minorVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(minorVersions_); + } + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.MinorVersion.Builder addMinorVersionsBuilder() { + return getMinorVersionsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.MinorVersion.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public com.google.cloud.oracledatabase.v1.MinorVersion.Builder addMinorVersionsBuilder( + int index) { + return getMinorVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.MinorVersion.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of MinorVersions.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + public java.util.List + getMinorVersionsBuilderList() { + return getMinorVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.MinorVersion, + com.google.cloud.oracledatabase.v1.MinorVersion.Builder, + com.google.cloud.oracledatabase.v1.MinorVersionOrBuilder> + getMinorVersionsFieldBuilder() { + if (minorVersionsBuilder_ == null) { + minorVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.MinorVersion, + com.google.cloud.oracledatabase.v1.MinorVersion.Builder, + com.google.cloud.oracledatabase.v1.MinorVersionOrBuilder>( + minorVersions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + minorVersions_ = null; + } + return minorVersionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListMinorVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListMinorVersionsResponse) + private static final com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMinorVersionsResponse 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.oracledatabase.v1.ListMinorVersionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsResponseOrBuilder.java new file mode 100644 index 000000000000..e3dab5761b74 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListMinorVersionsResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/minor_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListMinorVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListMinorVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + java.util.List getMinorVersionsList(); + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + com.google.cloud.oracledatabase.v1.MinorVersion getMinorVersions(int index); + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + int getMinorVersionsCount(); + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + java.util.List + getMinorVersionsOrBuilderList(); + + /** + * + * + *
                                              +   * The list of MinorVersions.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.MinorVersion minor_versions = 1; + */ + com.google.cloud.oracledatabase.v1.MinorVersionOrBuilder getMinorVersionsOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksRequest.java new file mode 100644 index 000000000000..80b47a42b913 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksRequest.java @@ -0,0 +1,1328 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OdbNetwork.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListOdbNetworksRequest} + */ +public final class ListOdbNetworksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListOdbNetworksRequest) + ListOdbNetworksRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOdbNetworksRequest.newBuilder() to construct. + private ListOdbNetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOdbNetworksRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOdbNetworksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest.class, + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for the ODB Network in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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 value for the ODB Network in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +   * If unspecified, at most 50 ODB Networks will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + 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.oracledatabase.v1.ListOdbNetworksRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest other = + (com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest 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.oracledatabase.v1.ListOdbNetworksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest 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.oracledatabase.v1.ListOdbNetworksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OdbNetwork.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListOdbNetworksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListOdbNetworksRequest) + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest.class, + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest build() { + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest result = + new com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                              +     * Required. The parent value for the ODB Network in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for the ODB Network in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for the ODB Network in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for the ODB Network in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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 value for the ODB Network in the following format:
                                              +     * projects/{project}/locations/{location}.
                                              +     * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ODB Networks will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ODB Networks will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ODB Networks will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListOdbNetworksRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListOdbNetworksRequest) + private static final com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOdbNetworksRequest 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.oracledatabase.v1.ListOdbNetworksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksRequestOrBuilder.java new file mode 100644 index 000000000000..5bf767f08680 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksRequestOrBuilder.java @@ -0,0 +1,151 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListOdbNetworksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListOdbNetworksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for the ODB Network in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for the ODB Network in the following format:
                                              +   * projects/{project}/locations/{location}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of items to return.
                                              +   * If unspecified, at most 50 ODB Networks will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksResponse.java new file mode 100644 index 000000000000..5a461d6f4c0f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksResponse.java @@ -0,0 +1,1456 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `OdbNetwork.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListOdbNetworksResponse} + */ +public final class ListOdbNetworksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListOdbNetworksResponse) + ListOdbNetworksResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOdbNetworksResponse.newBuilder() to construct. + private ListOdbNetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOdbNetworksResponse() { + odbNetworks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOdbNetworksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse.class, + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse.Builder.class); + } + + public static final int ODB_NETWORKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List odbNetworks_; + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + @java.lang.Override + public java.util.List getOdbNetworksList() { + return odbNetworks_; + } + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + @java.lang.Override + public java.util.List + getOdbNetworksOrBuilderList() { + return odbNetworks_; + } + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + @java.lang.Override + public int getOdbNetworksCount() { + return odbNetworks_.size(); + } + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbNetwork getOdbNetworks(int index) { + return odbNetworks_.get(index); + } + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder getOdbNetworksOrBuilder(int index) { + return odbNetworks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * 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 < odbNetworks_.size(); i++) { + output.writeMessage(1, odbNetworks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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 < odbNetworks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, odbNetworks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.ListOdbNetworksResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse other = + (com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse) obj; + + if (!getOdbNetworksList().equals(other.getOdbNetworksList())) 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 (getOdbNetworksCount() > 0) { + hash = (37 * hash) + ODB_NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getOdbNetworksList().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.oracledatabase.v1.ListOdbNetworksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse 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.oracledatabase.v1.ListOdbNetworksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse 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.oracledatabase.v1.ListOdbNetworksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `OdbNetwork.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListOdbNetworksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListOdbNetworksResponse) + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse.class, + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (odbNetworksBuilder_ == null) { + odbNetworks_ = java.util.Collections.emptyList(); + } else { + odbNetworks_ = null; + odbNetworksBuilder_.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.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse build() { + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse result = + new com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse result) { + if (odbNetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + odbNetworks_ = java.util.Collections.unmodifiableList(odbNetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.odbNetworks_ = odbNetworks_; + } else { + result.odbNetworks_ = odbNetworksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse 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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse other) { + if (other == com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse.getDefaultInstance()) + return this; + if (odbNetworksBuilder_ == null) { + if (!other.odbNetworks_.isEmpty()) { + if (odbNetworks_.isEmpty()) { + odbNetworks_ = other.odbNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOdbNetworksIsMutable(); + odbNetworks_.addAll(other.odbNetworks_); + } + onChanged(); + } + } else { + if (!other.odbNetworks_.isEmpty()) { + if (odbNetworksBuilder_.isEmpty()) { + odbNetworksBuilder_.dispose(); + odbNetworksBuilder_ = null; + odbNetworks_ = other.odbNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + odbNetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOdbNetworksFieldBuilder() + : null; + } else { + odbNetworksBuilder_.addAllMessages(other.odbNetworks_); + } + } + } + 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.oracledatabase.v1.OdbNetwork m = + input.readMessage( + com.google.cloud.oracledatabase.v1.OdbNetwork.parser(), extensionRegistry); + if (odbNetworksBuilder_ == null) { + ensureOdbNetworksIsMutable(); + odbNetworks_.add(m); + } else { + odbNetworksBuilder_.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 odbNetworks_ = + java.util.Collections.emptyList(); + + private void ensureOdbNetworksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + odbNetworks_ = + new java.util.ArrayList(odbNetworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbNetwork, + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder, + com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder> + odbNetworksBuilder_; + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public java.util.List getOdbNetworksList() { + if (odbNetworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(odbNetworks_); + } else { + return odbNetworksBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public int getOdbNetworksCount() { + if (odbNetworksBuilder_ == null) { + return odbNetworks_.size(); + } else { + return odbNetworksBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbNetwork getOdbNetworks(int index) { + if (odbNetworksBuilder_ == null) { + return odbNetworks_.get(index); + } else { + return odbNetworksBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public Builder setOdbNetworks(int index, com.google.cloud.oracledatabase.v1.OdbNetwork value) { + if (odbNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOdbNetworksIsMutable(); + odbNetworks_.set(index, value); + onChanged(); + } else { + odbNetworksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public Builder setOdbNetworks( + int index, com.google.cloud.oracledatabase.v1.OdbNetwork.Builder builderForValue) { + if (odbNetworksBuilder_ == null) { + ensureOdbNetworksIsMutable(); + odbNetworks_.set(index, builderForValue.build()); + onChanged(); + } else { + odbNetworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public Builder addOdbNetworks(com.google.cloud.oracledatabase.v1.OdbNetwork value) { + if (odbNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOdbNetworksIsMutable(); + odbNetworks_.add(value); + onChanged(); + } else { + odbNetworksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public Builder addOdbNetworks(int index, com.google.cloud.oracledatabase.v1.OdbNetwork value) { + if (odbNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOdbNetworksIsMutable(); + odbNetworks_.add(index, value); + onChanged(); + } else { + odbNetworksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public Builder addOdbNetworks( + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder builderForValue) { + if (odbNetworksBuilder_ == null) { + ensureOdbNetworksIsMutable(); + odbNetworks_.add(builderForValue.build()); + onChanged(); + } else { + odbNetworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public Builder addOdbNetworks( + int index, com.google.cloud.oracledatabase.v1.OdbNetwork.Builder builderForValue) { + if (odbNetworksBuilder_ == null) { + ensureOdbNetworksIsMutable(); + odbNetworks_.add(index, builderForValue.build()); + onChanged(); + } else { + odbNetworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public Builder addAllOdbNetworks( + java.lang.Iterable values) { + if (odbNetworksBuilder_ == null) { + ensureOdbNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, odbNetworks_); + onChanged(); + } else { + odbNetworksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public Builder clearOdbNetworks() { + if (odbNetworksBuilder_ == null) { + odbNetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + odbNetworksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public Builder removeOdbNetworks(int index) { + if (odbNetworksBuilder_ == null) { + ensureOdbNetworksIsMutable(); + odbNetworks_.remove(index); + onChanged(); + } else { + odbNetworksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbNetwork.Builder getOdbNetworksBuilder(int index) { + return getOdbNetworksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder getOdbNetworksOrBuilder( + int index) { + if (odbNetworksBuilder_ == null) { + return odbNetworks_.get(index); + } else { + return odbNetworksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public java.util.List + getOdbNetworksOrBuilderList() { + if (odbNetworksBuilder_ != null) { + return odbNetworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(odbNetworks_); + } + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbNetwork.Builder addOdbNetworksBuilder() { + return getOdbNetworksFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbNetwork.Builder addOdbNetworksBuilder(int index) { + return getOdbNetworksFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of ODB Networks.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + public java.util.List + getOdbNetworksBuilderList() { + return getOdbNetworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbNetwork, + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder, + com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder> + getOdbNetworksFieldBuilder() { + if (odbNetworksBuilder_ == null) { + odbNetworksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbNetwork, + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder, + com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder>( + odbNetworks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + odbNetworks_ = null; + } + return odbNetworksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                              +     * Unreachable locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +     * Unreachable locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListOdbNetworksResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListOdbNetworksResponse) + private static final com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOdbNetworksResponse 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.oracledatabase.v1.ListOdbNetworksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksResponseOrBuilder.java new file mode 100644 index 000000000000..119a059a8498 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbNetworksResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListOdbNetworksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListOdbNetworksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + java.util.List getOdbNetworksList(); + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + com.google.cloud.oracledatabase.v1.OdbNetwork getOdbNetworks(int index); + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + int getOdbNetworksCount(); + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + java.util.List + getOdbNetworksOrBuilderList(); + + /** + * + * + *
                                              +   * The list of ODB Networks.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbNetwork odb_networks = 1; + */ + com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder getOdbNetworksOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsRequest.java new file mode 100644 index 000000000000..606540e180c3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsRequest.java @@ -0,0 +1,1328 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OdbSubnet.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListOdbSubnetsRequest} + */ +public final class ListOdbSubnetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListOdbSubnetsRequest) + ListOdbSubnetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOdbSubnetsRequest.newBuilder() to construct. + private ListOdbSubnetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOdbSubnetsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOdbSubnetsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest.class, + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent value for the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +   * If unspecified, at most 50 ODB Networks will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + 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.oracledatabase.v1.ListOdbSubnetsRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest other = + (com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest 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.oracledatabase.v1.ListOdbSubnetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest 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.oracledatabase.v1.ListOdbSubnetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OdbSubnet.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListOdbSubnetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListOdbSubnetsRequest) + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest.class, + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest build() { + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest result = + new com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest 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.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest other) { + if (other == com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 parent_ = ""; + + /** + * + * + *
                                              +     * Required. The parent value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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 value for the OdbSubnet in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +     * 
                                              + * + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ODB Networks will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ODB Networks will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. The maximum number of items to return.
                                              +     * If unspecified, at most 50 ODB Networks will be returned.
                                              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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. A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request.
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for ordering the results of the request.
                                              +     * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListOdbSubnetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListOdbSubnetsRequest) + private static final com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOdbSubnetsRequest 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.oracledatabase.v1.ListOdbSubnetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsRequestOrBuilder.java new file mode 100644 index 000000000000..6a90a02f3a4a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsRequestOrBuilder.java @@ -0,0 +1,151 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListOdbSubnetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListOdbSubnetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent value for the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent value for the OdbSubnet in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of items to return.
                                              +   * If unspecified, at most 50 ODB Networks will be returned.
                                              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request.
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                              +   * Optional. An expression for ordering the results of the request.
                                              +   * 
                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsResponse.java new file mode 100644 index 000000000000..c39b39c1425f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsResponse.java @@ -0,0 +1,1455 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `OdbSubnet.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListOdbSubnetsResponse} + */ +public final class ListOdbSubnetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListOdbSubnetsResponse) + ListOdbSubnetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOdbSubnetsResponse.newBuilder() to construct. + private ListOdbSubnetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOdbSubnetsResponse() { + odbSubnets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOdbSubnetsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse.class, + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse.Builder.class); + } + + public static final int ODB_SUBNETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List odbSubnets_; + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + @java.lang.Override + public java.util.List getOdbSubnetsList() { + return odbSubnets_; + } + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + @java.lang.Override + public java.util.List + getOdbSubnetsOrBuilderList() { + return odbSubnets_; + } + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + @java.lang.Override + public int getOdbSubnetsCount() { + return odbSubnets_.size(); + } + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnet getOdbSubnets(int index) { + return odbSubnets_.get(index); + } + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder getOdbSubnetsOrBuilder(int index) { + return odbSubnets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * 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 < odbSubnets_.size(); i++) { + output.writeMessage(1, odbSubnets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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 < odbSubnets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, odbSubnets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.oracledatabase.v1.ListOdbSubnetsResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse other = + (com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse) obj; + + if (!getOdbSubnetsList().equals(other.getOdbSubnetsList())) 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 (getOdbSubnetsCount() > 0) { + hash = (37 * hash) + ODB_SUBNETS_FIELD_NUMBER; + hash = (53 * hash) + getOdbSubnetsList().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.oracledatabase.v1.ListOdbSubnetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse 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.oracledatabase.v1.ListOdbSubnetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse 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.oracledatabase.v1.ListOdbSubnetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `OdbSubnet.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListOdbSubnetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListOdbSubnetsResponse) + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse.class, + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (odbSubnetsBuilder_ == null) { + odbSubnets_ = java.util.Collections.emptyList(); + } else { + odbSubnets_ = null; + odbSubnetsBuilder_.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.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse build() { + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse result = + new com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse result) { + if (odbSubnetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + odbSubnets_ = java.util.Collections.unmodifiableList(odbSubnets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.odbSubnets_ = odbSubnets_; + } else { + result.odbSubnets_ = odbSubnetsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse 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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse other) { + if (other == com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse.getDefaultInstance()) + return this; + if (odbSubnetsBuilder_ == null) { + if (!other.odbSubnets_.isEmpty()) { + if (odbSubnets_.isEmpty()) { + odbSubnets_ = other.odbSubnets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOdbSubnetsIsMutable(); + odbSubnets_.addAll(other.odbSubnets_); + } + onChanged(); + } + } else { + if (!other.odbSubnets_.isEmpty()) { + if (odbSubnetsBuilder_.isEmpty()) { + odbSubnetsBuilder_.dispose(); + odbSubnetsBuilder_ = null; + odbSubnets_ = other.odbSubnets_; + bitField0_ = (bitField0_ & ~0x00000001); + odbSubnetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOdbSubnetsFieldBuilder() + : null; + } else { + odbSubnetsBuilder_.addAllMessages(other.odbSubnets_); + } + } + } + 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.oracledatabase.v1.OdbSubnet m = + input.readMessage( + com.google.cloud.oracledatabase.v1.OdbSubnet.parser(), extensionRegistry); + if (odbSubnetsBuilder_ == null) { + ensureOdbSubnetsIsMutable(); + odbSubnets_.add(m); + } else { + odbSubnetsBuilder_.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 odbSubnets_ = + java.util.Collections.emptyList(); + + private void ensureOdbSubnetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + odbSubnets_ = + new java.util.ArrayList(odbSubnets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbSubnet, + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder, + com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder> + odbSubnetsBuilder_; + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public java.util.List getOdbSubnetsList() { + if (odbSubnetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(odbSubnets_); + } else { + return odbSubnetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public int getOdbSubnetsCount() { + if (odbSubnetsBuilder_ == null) { + return odbSubnets_.size(); + } else { + return odbSubnetsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbSubnet getOdbSubnets(int index) { + if (odbSubnetsBuilder_ == null) { + return odbSubnets_.get(index); + } else { + return odbSubnetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public Builder setOdbSubnets(int index, com.google.cloud.oracledatabase.v1.OdbSubnet value) { + if (odbSubnetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOdbSubnetsIsMutable(); + odbSubnets_.set(index, value); + onChanged(); + } else { + odbSubnetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public Builder setOdbSubnets( + int index, com.google.cloud.oracledatabase.v1.OdbSubnet.Builder builderForValue) { + if (odbSubnetsBuilder_ == null) { + ensureOdbSubnetsIsMutable(); + odbSubnets_.set(index, builderForValue.build()); + onChanged(); + } else { + odbSubnetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public Builder addOdbSubnets(com.google.cloud.oracledatabase.v1.OdbSubnet value) { + if (odbSubnetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOdbSubnetsIsMutable(); + odbSubnets_.add(value); + onChanged(); + } else { + odbSubnetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public Builder addOdbSubnets(int index, com.google.cloud.oracledatabase.v1.OdbSubnet value) { + if (odbSubnetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOdbSubnetsIsMutable(); + odbSubnets_.add(index, value); + onChanged(); + } else { + odbSubnetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public Builder addOdbSubnets( + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder builderForValue) { + if (odbSubnetsBuilder_ == null) { + ensureOdbSubnetsIsMutable(); + odbSubnets_.add(builderForValue.build()); + onChanged(); + } else { + odbSubnetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public Builder addOdbSubnets( + int index, com.google.cloud.oracledatabase.v1.OdbSubnet.Builder builderForValue) { + if (odbSubnetsBuilder_ == null) { + ensureOdbSubnetsIsMutable(); + odbSubnets_.add(index, builderForValue.build()); + onChanged(); + } else { + odbSubnetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public Builder addAllOdbSubnets( + java.lang.Iterable values) { + if (odbSubnetsBuilder_ == null) { + ensureOdbSubnetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, odbSubnets_); + onChanged(); + } else { + odbSubnetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public Builder clearOdbSubnets() { + if (odbSubnetsBuilder_ == null) { + odbSubnets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + odbSubnetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public Builder removeOdbSubnets(int index) { + if (odbSubnetsBuilder_ == null) { + ensureOdbSubnetsIsMutable(); + odbSubnets_.remove(index); + onChanged(); + } else { + odbSubnetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbSubnet.Builder getOdbSubnetsBuilder(int index) { + return getOdbSubnetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder getOdbSubnetsOrBuilder(int index) { + if (odbSubnetsBuilder_ == null) { + return odbSubnets_.get(index); + } else { + return odbSubnetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public java.util.List + getOdbSubnetsOrBuilderList() { + if (odbSubnetsBuilder_ != null) { + return odbSubnetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(odbSubnets_); + } + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbSubnet.Builder addOdbSubnetsBuilder() { + return getOdbSubnetsFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public com.google.cloud.oracledatabase.v1.OdbSubnet.Builder addOdbSubnetsBuilder(int index) { + return getOdbSubnetsFieldBuilder() + .addBuilder(index, com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of ODB Subnets.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + public java.util.List + getOdbSubnetsBuilderList() { + return getOdbSubnetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbSubnet, + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder, + com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder> + getOdbSubnetsFieldBuilder() { + if (odbSubnetsBuilder_ == null) { + odbSubnetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.OdbSubnet, + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder, + com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder>( + odbSubnets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + odbSubnets_ = null; + } + return odbSubnetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                              +     * Unreachable locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                              +     * Unreachable locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +     * wildcard location '-'.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListOdbSubnetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListOdbSubnetsResponse) + private static final com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOdbSubnetsResponse 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.oracledatabase.v1.ListOdbSubnetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsResponseOrBuilder.java new file mode 100644 index 000000000000..8d3bb549534b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListOdbSubnetsResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListOdbSubnetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListOdbSubnetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + java.util.List getOdbSubnetsList(); + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + com.google.cloud.oracledatabase.v1.OdbSubnet getOdbSubnets(int index); + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + int getOdbSubnetsCount(); + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + java.util.List + getOdbSubnetsOrBuilderList(); + + /** + * + * + *
                                              +   * The list of ODB Subnets.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.OdbSubnet odb_subnets = 1; + */ + com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder getOdbSubnetsOrBuilder(int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                              +   * Unreachable locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * 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 locations when listing resources across all locations using
                                              +   * wildcard location '-'.
                                              +   * 
                                              + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesRequest.java new file mode 100644 index 000000000000..52e5c7707b98 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesRequest.java @@ -0,0 +1,1191 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `PluggableDatabase.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest} + */ +public final class ListPluggableDatabasesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest) + ListPluggableDatabasesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListPluggableDatabasesRequest.newBuilder() to construct. + private ListPluggableDatabasesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPluggableDatabasesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPluggableDatabasesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest.class, + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. The parent, which owns this collection of PluggableDatabases.
                                              +   * Format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * 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, which owns this collection of PluggableDatabases.
                                              +   * Format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * 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. The maximum number of PluggableDatabases to return. The service
                                              +   * may return fewer than this value.
                                              +   * 
                                              + * + * 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. A page token, received from a previous `ListPluggableDatabases`
                                              +   * call. Provide this to retrieve the subsequent page.
                                              +   *
                                              +   * When paginating, all other parameters provided to `ListPluggableDatabases`
                                              +   * must match the call that provided the page token.
                                              +   * 
                                              + * + * 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. A page token, received from a previous `ListPluggableDatabases`
                                              +   * call. Provide this to retrieve the subsequent page.
                                              +   *
                                              +   * When paginating, all other parameters provided to `ListPluggableDatabases`
                                              +   * must match the call that provided the page token.
                                              +   * 
                                              + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. List for
                                              +   * pluggable databases is supported only with a valid container database (full
                                              +   * resource name) filter in this format:
                                              +   * `database="projects/{project}/locations/{location}/databases/{database}"`
                                              +   * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. List for
                                              +   * pluggable databases is supported only with a valid container database (full
                                              +   * resource name) filter in this format:
                                              +   * `database="projects/{project}/locations/{location}/databases/{database}"`
                                              +   * 
                                              + * + * string filter = 4 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.oracledatabase.v1.ListPluggableDatabasesRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest other = + (com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest 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.oracledatabase.v1.ListPluggableDatabasesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest 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.oracledatabase.v1.ListPluggableDatabasesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `PluggableDatabase.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest) + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest.class, + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest build() { + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest buildPartial() { + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest result = + new com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest 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.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest.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.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + 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: + { + 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 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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, which owns this collection of PluggableDatabases.
                                              +     * Format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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, which owns this collection of PluggableDatabases.
                                              +     * Format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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, which owns this collection of PluggableDatabases.
                                              +     * Format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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, which owns this collection of PluggableDatabases.
                                              +     * Format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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, which owns this collection of PluggableDatabases.
                                              +     * Format: projects/{project}/locations/{location}
                                              +     * 
                                              + * + * + * 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. The maximum number of PluggableDatabases to return. The service
                                              +     * may return fewer than this value.
                                              +     * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                              +     * Optional. The maximum number of PluggableDatabases to return. The service
                                              +     * may return fewer than this value.
                                              +     * 
                                              + * + * 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. The maximum number of PluggableDatabases to return. The service
                                              +     * may return fewer than this value.
                                              +     * 
                                              + * + * 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. A page token, received from a previous `ListPluggableDatabases`
                                              +     * call. Provide this to retrieve the subsequent page.
                                              +     *
                                              +     * When paginating, all other parameters provided to `ListPluggableDatabases`
                                              +     * must match the call that provided the page token.
                                              +     * 
                                              + * + * 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. A page token, received from a previous `ListPluggableDatabases`
                                              +     * call. Provide this to retrieve the subsequent page.
                                              +     *
                                              +     * When paginating, all other parameters provided to `ListPluggableDatabases`
                                              +     * must match the call that provided the page token.
                                              +     * 
                                              + * + * 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. A page token, received from a previous `ListPluggableDatabases`
                                              +     * call. Provide this to retrieve the subsequent page.
                                              +     *
                                              +     * When paginating, all other parameters provided to `ListPluggableDatabases`
                                              +     * must match the call that provided the page token.
                                              +     * 
                                              + * + * 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. A page token, received from a previous `ListPluggableDatabases`
                                              +     * call. Provide this to retrieve the subsequent page.
                                              +     *
                                              +     * When paginating, all other parameters provided to `ListPluggableDatabases`
                                              +     * must match the call that provided the page token.
                                              +     * 
                                              + * + * 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. A page token, received from a previous `ListPluggableDatabases`
                                              +     * call. Provide this to retrieve the subsequent page.
                                              +     *
                                              +     * When paginating, all other parameters provided to `ListPluggableDatabases`
                                              +     * must match the call that provided the page token.
                                              +     * 
                                              + * + * 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 java.lang.Object filter_ = ""; + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. List for
                                              +     * pluggable databases is supported only with a valid container database (full
                                              +     * resource name) filter in this format:
                                              +     * `database="projects/{project}/locations/{location}/databases/{database}"`
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. List for
                                              +     * pluggable databases is supported only with a valid container database (full
                                              +     * resource name) filter in this format:
                                              +     * `database="projects/{project}/locations/{location}/databases/{database}"`
                                              +     * 
                                              + * + * string filter = 4 [(.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. An expression for filtering the results of the request. List for
                                              +     * pluggable databases is supported only with a valid container database (full
                                              +     * resource name) filter in this format:
                                              +     * `database="projects/{project}/locations/{location}/databases/{database}"`
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. List for
                                              +     * pluggable databases is supported only with a valid container database (full
                                              +     * resource name) filter in this format:
                                              +     * `database="projects/{project}/locations/{location}/databases/{database}"`
                                              +     * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An expression for filtering the results of the request. List for
                                              +     * pluggable databases is supported only with a valid container database (full
                                              +     * resource name) filter in this format:
                                              +     * `database="projects/{project}/locations/{location}/databases/{database}"`
                                              +     * 
                                              + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest) + private static final com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest(); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPluggableDatabasesRequest 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.oracledatabase.v1.ListPluggableDatabasesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesRequestOrBuilder.java new file mode 100644 index 000000000000..7b855cb43c78 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListPluggableDatabasesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The parent, which owns this collection of PluggableDatabases.
                                              +   * Format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. The parent, which owns this collection of PluggableDatabases.
                                              +   * Format: projects/{project}/locations/{location}
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Optional. The maximum number of PluggableDatabases to return. The service
                                              +   * may return fewer than this value.
                                              +   * 
                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                              +   * Optional. A page token, received from a previous `ListPluggableDatabases`
                                              +   * call. Provide this to retrieve the subsequent page.
                                              +   *
                                              +   * When paginating, all other parameters provided to `ListPluggableDatabases`
                                              +   * must match the call that provided the page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                              +   * Optional. A page token, received from a previous `ListPluggableDatabases`
                                              +   * call. Provide this to retrieve the subsequent page.
                                              +   *
                                              +   * When paginating, all other parameters provided to `ListPluggableDatabases`
                                              +   * must match the call that provided the page token.
                                              +   * 
                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. List for
                                              +   * pluggable databases is supported only with a valid container database (full
                                              +   * resource name) filter in this format:
                                              +   * `database="projects/{project}/locations/{location}/databases/{database}"`
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                              +   * Optional. An expression for filtering the results of the request. List for
                                              +   * pluggable databases is supported only with a valid container database (full
                                              +   * resource name) filter in this format:
                                              +   * `database="projects/{project}/locations/{location}/databases/{database}"`
                                              +   * 
                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesResponse.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesResponse.java new file mode 100644 index 000000000000..d720347461e8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesResponse.java @@ -0,0 +1,1202 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The response for `PluggableDatabase.List`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse} + */ +public final class ListPluggableDatabasesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse) + ListPluggableDatabasesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListPluggableDatabasesResponse.newBuilder() to construct. + private ListPluggableDatabasesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPluggableDatabasesResponse() { + pluggableDatabases_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPluggableDatabasesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse.class, + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse.Builder.class); + } + + public static final int PLUGGABLE_DATABASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List pluggableDatabases_; + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + @java.lang.Override + public java.util.List + getPluggableDatabasesList() { + return pluggableDatabases_; + } + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + @java.lang.Override + public java.util.List + getPluggableDatabasesOrBuilderList() { + return pluggableDatabases_; + } + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + @java.lang.Override + public int getPluggableDatabasesCount() { + return pluggableDatabases_.size(); + } + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabase getPluggableDatabases(int index) { + return pluggableDatabases_.get(index); + } + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseOrBuilder + getPluggableDatabasesOrBuilder(int index) { + return pluggableDatabases_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * 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; + } + } + + 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 < pluggableDatabases_.size(); i++) { + output.writeMessage(1, pluggableDatabases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < pluggableDatabases_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, pluggableDatabases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.oracledatabase.v1.ListPluggableDatabasesResponse)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse other = + (com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse) obj; + + if (!getPluggableDatabasesList().equals(other.getPluggableDatabasesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getPluggableDatabasesCount() > 0) { + hash = (37 * hash) + PLUGGABLE_DATABASES_FIELD_NUMBER; + hash = (53 * hash) + getPluggableDatabasesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse 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.oracledatabase.v1.ListPluggableDatabasesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse 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.oracledatabase.v1.ListPluggableDatabasesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The response for `PluggableDatabase.List`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse) + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse.class, + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pluggableDatabasesBuilder_ == null) { + pluggableDatabases_ = java.util.Collections.emptyList(); + } else { + pluggableDatabases_ = null; + pluggableDatabasesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse build() { + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse buildPartial() { + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse result = + new com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse result) { + if (pluggableDatabasesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pluggableDatabases_ = java.util.Collections.unmodifiableList(pluggableDatabases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pluggableDatabases_ = pluggableDatabases_; + } else { + result.pluggableDatabases_ = pluggableDatabasesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse other) { + if (other + == com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse.getDefaultInstance()) + return this; + if (pluggableDatabasesBuilder_ == null) { + if (!other.pluggableDatabases_.isEmpty()) { + if (pluggableDatabases_.isEmpty()) { + pluggableDatabases_ = other.pluggableDatabases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePluggableDatabasesIsMutable(); + pluggableDatabases_.addAll(other.pluggableDatabases_); + } + onChanged(); + } + } else { + if (!other.pluggableDatabases_.isEmpty()) { + if (pluggableDatabasesBuilder_.isEmpty()) { + pluggableDatabasesBuilder_.dispose(); + pluggableDatabasesBuilder_ = null; + pluggableDatabases_ = other.pluggableDatabases_; + bitField0_ = (bitField0_ & ~0x00000001); + pluggableDatabasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPluggableDatabasesFieldBuilder() + : null; + } else { + pluggableDatabasesBuilder_.addAllMessages(other.pluggableDatabases_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.oracledatabase.v1.PluggableDatabase m = + input.readMessage( + com.google.cloud.oracledatabase.v1.PluggableDatabase.parser(), + extensionRegistry); + if (pluggableDatabasesBuilder_ == null) { + ensurePluggableDatabasesIsMutable(); + pluggableDatabases_.add(m); + } else { + pluggableDatabasesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + pluggableDatabases_ = java.util.Collections.emptyList(); + + private void ensurePluggableDatabasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pluggableDatabases_ = + new java.util.ArrayList( + pluggableDatabases_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabase, + com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseOrBuilder> + pluggableDatabasesBuilder_; + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public java.util.List + getPluggableDatabasesList() { + if (pluggableDatabasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(pluggableDatabases_); + } else { + return pluggableDatabasesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public int getPluggableDatabasesCount() { + if (pluggableDatabasesBuilder_ == null) { + return pluggableDatabases_.size(); + } else { + return pluggableDatabasesBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabase getPluggableDatabases(int index) { + if (pluggableDatabasesBuilder_ == null) { + return pluggableDatabases_.get(index); + } else { + return pluggableDatabasesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public Builder setPluggableDatabases( + int index, com.google.cloud.oracledatabase.v1.PluggableDatabase value) { + if (pluggableDatabasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePluggableDatabasesIsMutable(); + pluggableDatabases_.set(index, value); + onChanged(); + } else { + pluggableDatabasesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public Builder setPluggableDatabases( + int index, com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder builderForValue) { + if (pluggableDatabasesBuilder_ == null) { + ensurePluggableDatabasesIsMutable(); + pluggableDatabases_.set(index, builderForValue.build()); + onChanged(); + } else { + pluggableDatabasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public Builder addPluggableDatabases( + com.google.cloud.oracledatabase.v1.PluggableDatabase value) { + if (pluggableDatabasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePluggableDatabasesIsMutable(); + pluggableDatabases_.add(value); + onChanged(); + } else { + pluggableDatabasesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public Builder addPluggableDatabases( + int index, com.google.cloud.oracledatabase.v1.PluggableDatabase value) { + if (pluggableDatabasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePluggableDatabasesIsMutable(); + pluggableDatabases_.add(index, value); + onChanged(); + } else { + pluggableDatabasesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public Builder addPluggableDatabases( + com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder builderForValue) { + if (pluggableDatabasesBuilder_ == null) { + ensurePluggableDatabasesIsMutable(); + pluggableDatabases_.add(builderForValue.build()); + onChanged(); + } else { + pluggableDatabasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public Builder addPluggableDatabases( + int index, com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder builderForValue) { + if (pluggableDatabasesBuilder_ == null) { + ensurePluggableDatabasesIsMutable(); + pluggableDatabases_.add(index, builderForValue.build()); + onChanged(); + } else { + pluggableDatabasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public Builder addAllPluggableDatabases( + java.lang.Iterable values) { + if (pluggableDatabasesBuilder_ == null) { + ensurePluggableDatabasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pluggableDatabases_); + onChanged(); + } else { + pluggableDatabasesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public Builder clearPluggableDatabases() { + if (pluggableDatabasesBuilder_ == null) { + pluggableDatabases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pluggableDatabasesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public Builder removePluggableDatabases(int index) { + if (pluggableDatabasesBuilder_ == null) { + ensurePluggableDatabasesIsMutable(); + pluggableDatabases_.remove(index); + onChanged(); + } else { + pluggableDatabasesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder + getPluggableDatabasesBuilder(int index) { + return getPluggableDatabasesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseOrBuilder + getPluggableDatabasesOrBuilder(int index) { + if (pluggableDatabasesBuilder_ == null) { + return pluggableDatabases_.get(index); + } else { + return pluggableDatabasesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public java.util.List + getPluggableDatabasesOrBuilderList() { + if (pluggableDatabasesBuilder_ != null) { + return pluggableDatabasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pluggableDatabases_); + } + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder + addPluggableDatabasesBuilder() { + return getPluggableDatabasesFieldBuilder() + .addBuilder(com.google.cloud.oracledatabase.v1.PluggableDatabase.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder + addPluggableDatabasesBuilder(int index) { + return getPluggableDatabasesFieldBuilder() + .addBuilder( + index, com.google.cloud.oracledatabase.v1.PluggableDatabase.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * The list of PluggableDatabases.
                                              +     * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + public java.util.List + getPluggableDatabasesBuilderList() { + return getPluggableDatabasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabase, + com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseOrBuilder> + getPluggableDatabasesFieldBuilder() { + if (pluggableDatabasesBuilder_ == null) { + pluggableDatabasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabase, + com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseOrBuilder>( + pluggableDatabases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + pluggableDatabases_ = null; + } + return pluggableDatabasesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * A token identifying a page of results the server should return.
                                              +     * 
                                              + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse) + private static final com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse(); + } + + public static com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPluggableDatabasesResponse 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.oracledatabase.v1.ListPluggableDatabasesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesResponseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesResponseOrBuilder.java new file mode 100644 index 000000000000..214e0f117c58 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ListPluggableDatabasesResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface ListPluggableDatabasesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + java.util.List getPluggableDatabasesList(); + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + com.google.cloud.oracledatabase.v1.PluggableDatabase getPluggableDatabases(int index); + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + int getPluggableDatabasesCount(); + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + java.util.List + getPluggableDatabasesOrBuilderList(); + + /** + * + * + *
                                              +   * The list of PluggableDatabases.
                                              +   * 
                                              + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabase pluggable_databases = 1; + * + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseOrBuilder getPluggableDatabasesOrBuilder( + int index); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                              +   * A token identifying a page of results the server should return.
                                              +   * 
                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersion.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersion.java new file mode 100644 index 000000000000..caac604a09bf --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersion.java @@ -0,0 +1,1021 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/minor_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * MinorVersion represents a minor version of a GI.
                                              + * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiMinorVersionSummary/
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.MinorVersion} + */ +public final class MinorVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.MinorVersion) + MinorVersionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MinorVersion.newBuilder() to construct. + private MinorVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MinorVersion() { + name_ = ""; + gridImageId_ = ""; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MinorVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_MinorVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_MinorVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.MinorVersion.class, + com.google.cloud.oracledatabase.v1.MinorVersion.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Identifier. The name of the MinorVersion resource with the format:
                                              +   * projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version}
                                              +   * 
                                              + * + * 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. The name of the MinorVersion resource with the format:
                                              +   * projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version}
                                              +   * 
                                              + * + * 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 GRID_IMAGE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gridImageId_ = ""; + + /** + * + * + *
                                              +   * Optional. The ID of the Grid Image.
                                              +   * 
                                              + * + * string grid_image_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gridImageId. + */ + @java.lang.Override + public java.lang.String getGridImageId() { + java.lang.Object ref = gridImageId_; + 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(); + gridImageId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The ID of the Grid Image.
                                              +   * 
                                              + * + * string grid_image_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gridImageId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGridImageIdBytes() { + java.lang.Object ref = gridImageId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gridImageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
                                              +   * Optional. The valid Oracle grid infrastructure software version.
                                              +   * 
                                              + * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The valid Oracle grid infrastructure software version.
                                              +   * 
                                              + * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gridImageId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gridImageId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gridImageId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gridImageId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); + } + 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.oracledatabase.v1.MinorVersion)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.MinorVersion other = + (com.google.cloud.oracledatabase.v1.MinorVersion) obj; + + if (!getName().equals(other.getName())) return false; + if (!getGridImageId().equals(other.getGridImageId())) return false; + if (!getVersion().equals(other.getVersion())) 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) + GRID_IMAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + getGridImageId().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion 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.oracledatabase.v1.MinorVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion 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.oracledatabase.v1.MinorVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.MinorVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * MinorVersion represents a minor version of a GI.
                                              +   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiMinorVersionSummary/
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.MinorVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.MinorVersion) + com.google.cloud.oracledatabase.v1.MinorVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_MinorVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_MinorVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.MinorVersion.class, + com.google.cloud.oracledatabase.v1.MinorVersion.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.MinorVersion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + gridImageId_ = ""; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.MinorVersionProto + .internal_static_google_cloud_oracledatabase_v1_MinorVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MinorVersion getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.MinorVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MinorVersion build() { + com.google.cloud.oracledatabase.v1.MinorVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.MinorVersion buildPartial() { + com.google.cloud.oracledatabase.v1.MinorVersion result = + new com.google.cloud.oracledatabase.v1.MinorVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.MinorVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gridImageId_ = gridImageId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.MinorVersion) { + return mergeFrom((com.google.cloud.oracledatabase.v1.MinorVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.MinorVersion other) { + if (other == com.google.cloud.oracledatabase.v1.MinorVersion.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGridImageId().isEmpty()) { + gridImageId_ = other.gridImageId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + gridImageId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + version_ = 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 name_ = ""; + + /** + * + * + *
                                              +     * Identifier. The name of the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version}
                                              +     * 
                                              + * + * 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. The name of the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version}
                                              +     * 
                                              + * + * 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. The name of the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the MinorVersion resource with the format:
                                              +     * projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object gridImageId_ = ""; + + /** + * + * + *
                                              +     * Optional. The ID of the Grid Image.
                                              +     * 
                                              + * + * string grid_image_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gridImageId. + */ + public java.lang.String getGridImageId() { + java.lang.Object ref = gridImageId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gridImageId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The ID of the Grid Image.
                                              +     * 
                                              + * + * string grid_image_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gridImageId. + */ + public com.google.protobuf.ByteString getGridImageIdBytes() { + java.lang.Object ref = gridImageId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gridImageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The ID of the Grid Image.
                                              +     * 
                                              + * + * string grid_image_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gridImageId to set. + * @return This builder for chaining. + */ + public Builder setGridImageId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gridImageId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The ID of the Grid Image.
                                              +     * 
                                              + * + * string grid_image_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGridImageId() { + gridImageId_ = getDefaultInstance().getGridImageId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The ID of the Grid Image.
                                              +     * 
                                              + * + * string grid_image_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gridImageId to set. + * @return This builder for chaining. + */ + public Builder setGridImageIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gridImageId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
                                              +     * Optional. The valid Oracle grid infrastructure software version.
                                              +     * 
                                              + * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The valid Oracle grid infrastructure software version.
                                              +     * 
                                              + * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The valid Oracle grid infrastructure software version.
                                              +     * 
                                              + * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The valid Oracle grid infrastructure software version.
                                              +     * 
                                              + * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The valid Oracle grid infrastructure software version.
                                              +     * 
                                              + * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.MinorVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.MinorVersion) + private static final com.google.cloud.oracledatabase.v1.MinorVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.MinorVersion(); + } + + public static com.google.cloud.oracledatabase.v1.MinorVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MinorVersion 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.oracledatabase.v1.MinorVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionName.java new file mode 100644 index 000000000000..49d5b055468b --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2025 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.oracledatabase.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 MinorVersionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_GI_VERSION_MINOR_VERSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/giVersions/{gi_version}/minorVersions/{minor_version}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String giVersion; + private final String minorVersion; + + @Deprecated + protected MinorVersionName() { + project = null; + location = null; + giVersion = null; + minorVersion = null; + } + + private MinorVersionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + giVersion = Preconditions.checkNotNull(builder.getGiVersion()); + minorVersion = Preconditions.checkNotNull(builder.getMinorVersion()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGiVersion() { + return giVersion; + } + + public String getMinorVersion() { + return minorVersion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MinorVersionName of( + String project, String location, String giVersion, String minorVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setGiVersion(giVersion) + .setMinorVersion(minorVersion) + .build(); + } + + public static String format( + String project, String location, String giVersion, String minorVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setGiVersion(giVersion) + .setMinorVersion(minorVersion) + .build() + .toString(); + } + + public static MinorVersionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_GI_VERSION_MINOR_VERSION.validatedMatch( + formattedString, "MinorVersionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("gi_version"), + matchMap.get("minor_version")); + } + + 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 (MinorVersionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_GI_VERSION_MINOR_VERSION.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 (giVersion != null) { + fieldMapBuilder.put("gi_version", giVersion); + } + if (minorVersion != null) { + fieldMapBuilder.put("minor_version", minorVersion); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_GI_VERSION_MINOR_VERSION.instantiate( + "project", + project, + "location", + location, + "gi_version", + giVersion, + "minor_version", + minorVersion); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MinorVersionName that = ((MinorVersionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.giVersion, that.giVersion) + && Objects.equals(this.minorVersion, that.minorVersion); + } + 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(giVersion); + h *= 1000003; + h ^= Objects.hashCode(minorVersion); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/giVersions/{gi_version}/minorVersions/{minor_version}. + */ + public static class Builder { + private String project; + private String location; + private String giVersion; + private String minorVersion; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGiVersion() { + return giVersion; + } + + public String getMinorVersion() { + return minorVersion; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setGiVersion(String giVersion) { + this.giVersion = giVersion; + return this; + } + + public Builder setMinorVersion(String minorVersion) { + this.minorVersion = minorVersion; + return this; + } + + private Builder(MinorVersionName minorVersionName) { + this.project = minorVersionName.project; + this.location = minorVersionName.location; + this.giVersion = minorVersionName.giVersion; + this.minorVersion = minorVersionName.minorVersion; + } + + public MinorVersionName build() { + return new MinorVersionName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionOrBuilder.java new file mode 100644 index 000000000000..75a62b598245 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/minor_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface MinorVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.MinorVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Identifier. The name of the MinorVersion resource with the format:
                                              +   * projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Identifier. The name of the MinorVersion resource with the format:
                                              +   * projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. The ID of the Grid Image.
                                              +   * 
                                              + * + * string grid_image_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gridImageId. + */ + java.lang.String getGridImageId(); + + /** + * + * + *
                                              +   * Optional. The ID of the Grid Image.
                                              +   * 
                                              + * + * string grid_image_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gridImageId. + */ + com.google.protobuf.ByteString getGridImageIdBytes(); + + /** + * + * + *
                                              +   * Optional. The valid Oracle grid infrastructure software version.
                                              +   * 
                                              + * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
                                              +   * Optional. The valid Oracle grid infrastructure software version.
                                              +   * 
                                              + * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionProto.java new file mode 100644 index 000000000000..83d27fe9a199 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionProto.java @@ -0,0 +1,121 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/minor_version.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class MinorVersionProto { + private MinorVersionProto() {} + + 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_oracledatabase_v1_MinorVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_MinorVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_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" + + "2google/cloud/oracledatabase/v1/minor_version.proto\022\036google.cloud.oracledatabas" + + "e.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\202\002\n" + + "\014MinorVersion\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + + "grid_image_id\030\002 \001(\tB\003\340A\001\022\024\n" + + "\007version\030\003 \001(\tB\003\340A\001:\254\001\352A\250\001\n" + + "*oracledatabase.googleapis.com/MinorVersion\022]projects/{project}/locations/{locatio" + + "n}/giVersions/{gi_version}/minorVersions/{minor_version}*\r" + + "minorVersions2\014minorVersion\"\244\001\n" + + "\030ListMinorVersionsRequest\022B\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*oracledatabase.googleapis.com/MinorVersion\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\"z\n" + + "\031ListMinorVersionsResponse\022D\n" + + "\016minor_versions\030\001" + + " \003(\0132,.google.cloud.oracledatabase.v1.MinorVersion\022\027\n" + + "\017next_page_token\030\002 \001(\tB\353\001\n" + + "\"com.google.cloud.oracledatabase.v1B\021MinorVersionProtoP\001ZJcl" + + "oud.google.com/go/oracledatabase/apiv1/o" + + "racledatabasepb;oracledatabasepb\252\002\036Googl" + + "e.Cloud.OracleDatabase.V1\312\002\036Google\\Cloud" + + "\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::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(), + }); + internal_static_google_cloud_oracledatabase_v1_MinorVersion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_MinorVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_MinorVersion_descriptor, + new java.lang.String[] { + "Name", "GridImageId", "Version", + }); + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListMinorVersionsResponse_descriptor, + new java.lang.String[] { + "MinorVersions", "NextPageToken", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetwork.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetwork.java new file mode 100644 index 000000000000..655a7b3dedc0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetwork.java @@ -0,0 +1,2286 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Represents OdbNetwork resource.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.OdbNetwork} + */ +public final class OdbNetwork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.OdbNetwork) + OdbNetworkOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OdbNetwork.newBuilder() to construct. + private OdbNetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OdbNetwork() { + name_ = ""; + network_ = ""; + state_ = 0; + entitlementId_ = ""; + gcpOracleZone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OdbNetwork(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_OdbNetwork_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_OdbNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.OdbNetwork.class, + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder.class); + } + + /** + * + * + *
                                              +   * The various lifecycle states of the ODB Network.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.OdbNetwork.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 3; + */ + TERMINATING(3), + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 3; + */ + public static final int TERMINATING_VALUE = 3; + + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 4; + */ + public static final int FAILED_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return TERMINATING; + case 4: + return FAILED; + 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 State findValueByNumber(int number) { + return State.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetwork.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.OdbNetwork.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Identifier. The name of the OdbNetwork resource in the following format:
                                              +   * projects/{project}/locations/{region}/odbNetworks/{odb_network}
                                              +   * 
                                              + * + * 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. The name of the OdbNetwork resource in the following format:
                                              +   * projects/{project}/locations/{region}/odbNetworks/{odb_network}
                                              +   * 
                                              + * + * 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 NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the VPC network in the following format:
                                              +   * projects/{project}/global/networks/{network}
                                              +   * 
                                              + * + * + * string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The name of the VPC network in the following format:
                                              +   * projects/{project}/global/networks/{network}
                                              +   * 
                                              + * + * + * string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 3; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_OdbNetwork_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. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 3 [(.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. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 3 [(.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. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 3 [(.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 CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                              +   * Output only. The date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.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 STATE_FIELD_NUMBER = 5; + private int state_ = 0; + + /** + * + * + *
                                              +   * Output only. State of the ODB Network.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +   * Output only. State of the ODB Network.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbNetwork.State getState() { + com.google.cloud.oracledatabase.v1.OdbNetwork.State result = + com.google.cloud.oracledatabase.v1.OdbNetwork.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.OdbNetwork.State.UNRECOGNIZED + : result; + } + + public static final int ENTITLEMENT_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object entitlementId_ = ""; + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * OdbNetwork.
                                              +   * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + @java.lang.Override + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + 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(); + entitlementId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * OdbNetwork.
                                              +   * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_ORACLE_ZONE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where OdbNetwork is hosted.
                                              +   * Example: us-east4-b-r2.
                                              +   * If not specified, the system will pick a zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + @java.lang.Override + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + 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(); + gcpOracleZone_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where OdbNetwork is hosted.
                                              +   * Example: us-east4-b-r2.
                                              +   * If not specified, the system will pick a zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.OdbNetwork.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, entitlementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gcpOracleZone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + 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(3, labels__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.OdbNetwork.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entitlementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, entitlementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpOracleZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gcpOracleZone_); + } + 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.oracledatabase.v1.OdbNetwork)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.OdbNetwork other = + (com.google.cloud.oracledatabase.v1.OdbNetwork) obj; + + if (!getName().equals(other.getName())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (state_ != other.state_) return false; + if (!getEntitlementId().equals(other.getEntitlementId())) return false; + if (!getGcpOracleZone().equals(other.getGcpOracleZone())) 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) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ENTITLEMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntitlementId().hashCode(); + hash = (37 * hash) + GCP_ORACLE_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGcpOracleZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork 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.oracledatabase.v1.OdbNetwork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork 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.oracledatabase.v1.OdbNetwork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.OdbNetwork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Represents OdbNetwork resource.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.OdbNetwork} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.OdbNetwork) + com.google.cloud.oracledatabase.v1.OdbNetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_OdbNetwork_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_OdbNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.OdbNetwork.class, + com.google.cloud.oracledatabase.v1.OdbNetwork.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.OdbNetwork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + network_ = ""; + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + state_ = 0; + entitlementId_ = ""; + gcpOracleZone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbNetworkProto + .internal_static_google_cloud_oracledatabase_v1_OdbNetwork_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbNetwork getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbNetwork build() { + com.google.cloud.oracledatabase.v1.OdbNetwork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbNetwork buildPartial() { + com.google.cloud.oracledatabase.v1.OdbNetwork result = + new com.google.cloud.oracledatabase.v1.OdbNetwork(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.OdbNetwork result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + 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.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.entitlementId_ = entitlementId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.gcpOracleZone_ = gcpOracleZone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.OdbNetwork) { + return mergeFrom((com.google.cloud.oracledatabase.v1.OdbNetwork) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.OdbNetwork other) { + if (other == com.google.cloud.oracledatabase.v1.OdbNetwork.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000002; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000004; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getEntitlementId().isEmpty()) { + entitlementId_ = other.entitlementId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getGcpOracleZone().isEmpty()) { + gcpOracleZone_ = other.gcpOracleZone_; + bitField0_ |= 0x00000040; + 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: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + entitlementId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + gcpOracleZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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_ = ""; + + /** + * + * + *
                                              +     * Identifier. The name of the OdbNetwork resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}
                                              +     * 
                                              + * + * 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. The name of the OdbNetwork resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}
                                              +     * 
                                              + * + * 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. The name of the OdbNetwork resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the OdbNetwork resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the OdbNetwork resource in the following format:
                                              +     * projects/{project}/locations/{region}/odbNetworks/{odb_network}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                              +     * Required. The name of the VPC network in the following format:
                                              +     * projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The name of the VPC network in the following format:
                                              +     * projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The name of the VPC network in the following format:
                                              +     * projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The name of the VPC network in the following format:
                                              +     * projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The name of the VPC network in the following format:
                                              +     * projects/{project}/global/networks/{network}
                                              +     * 
                                              + * + * + * string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + 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_ |= 0x00000004; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the resource.
                                              +     * 
                                              + * + * map<string, string> labels = 3 [(.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. Labels or tags associated with the resource.
                                              +     * 
                                              + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the resource.
                                              +     * 
                                              + * + * map<string, string> labels = 3 [(.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. Labels or tags associated with the resource.
                                              +     * 
                                              + * + * map<string, string> labels = 3 [(.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_ & ~0x00000004); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the resource.
                                              +     * 
                                              + * + * map<string, string> labels = 3 [(.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_ |= 0x00000004; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the resource.
                                              +     * 
                                              + * + * map<string, string> labels = 3 [(.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_ |= 0x00000004; + return this; + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the resource.
                                              +     * 
                                              + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                                              +     * Output only. State of the ODB Network.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +     * Output only. State of the ODB Network.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the ODB Network.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbNetwork.State getState() { + com.google.cloud.oracledatabase.v1.OdbNetwork.State result = + com.google.cloud.oracledatabase.v1.OdbNetwork.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.OdbNetwork.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. State of the ODB Network.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.oracledatabase.v1.OdbNetwork.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the ODB Network.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object entitlementId_ = ""; + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * OdbNetwork.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + public java.lang.String getEntitlementId() { + java.lang.Object ref = entitlementId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entitlementId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * OdbNetwork.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + public com.google.protobuf.ByteString getEntitlementIdBytes() { + java.lang.Object ref = entitlementId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * OdbNetwork.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entitlementId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * OdbNetwork.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEntitlementId() { + entitlementId_ = getDefaultInstance().getEntitlementId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The ID of the subscription entitlement associated with the
                                              +     * OdbNetwork.
                                              +     * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for entitlementId to set. + * @return This builder for chaining. + */ + public Builder setEntitlementIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entitlementId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object gcpOracleZone_ = ""; + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where OdbNetwork is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + public java.lang.String getGcpOracleZone() { + java.lang.Object ref = gcpOracleZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpOracleZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where OdbNetwork is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + public com.google.protobuf.ByteString getGcpOracleZoneBytes() { + java.lang.Object ref = gcpOracleZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpOracleZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where OdbNetwork is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpOracleZone_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where OdbNetwork is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcpOracleZone() { + gcpOracleZone_ = getDefaultInstance().getGcpOracleZone(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The GCP Oracle zone where OdbNetwork is hosted.
                                              +     * Example: us-east4-b-r2.
                                              +     * If not specified, the system will pick a zone based on availability.
                                              +     * 
                                              + * + * string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcpOracleZone to set. + * @return This builder for chaining. + */ + public Builder setGcpOracleZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpOracleZone_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.OdbNetwork) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.OdbNetwork) + private static final com.google.cloud.oracledatabase.v1.OdbNetwork DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.OdbNetwork(); + } + + public static com.google.cloud.oracledatabase.v1.OdbNetwork getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OdbNetwork 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.oracledatabase.v1.OdbNetwork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkName.java new file mode 100644 index 000000000000..c58443153709 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.oracledatabase.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 OdbNetworkName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ODB_NETWORK = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/odbNetworks/{odb_network}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String odbNetwork; + + @Deprecated + protected OdbNetworkName() { + project = null; + location = null; + odbNetwork = null; + } + + private OdbNetworkName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + odbNetwork = Preconditions.checkNotNull(builder.getOdbNetwork()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOdbNetwork() { + return odbNetwork; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OdbNetworkName of(String project, String location, String odbNetwork) { + return newBuilder().setProject(project).setLocation(location).setOdbNetwork(odbNetwork).build(); + } + + public static String format(String project, String location, String odbNetwork) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOdbNetwork(odbNetwork) + .build() + .toString(); + } + + public static OdbNetworkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ODB_NETWORK.validatedMatch( + formattedString, "OdbNetworkName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("odb_network")); + } + + 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 (OdbNetworkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ODB_NETWORK.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 (odbNetwork != null) { + fieldMapBuilder.put("odb_network", odbNetwork); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ODB_NETWORK.instantiate( + "project", project, "location", location, "odb_network", odbNetwork); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OdbNetworkName that = ((OdbNetworkName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.odbNetwork, that.odbNetwork); + } + 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(odbNetwork); + return h; + } + + /** Builder for projects/{project}/locations/{location}/odbNetworks/{odb_network}. */ + public static class Builder { + private String project; + private String location; + private String odbNetwork; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOdbNetwork() { + return odbNetwork; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOdbNetwork(String odbNetwork) { + this.odbNetwork = odbNetwork; + return this; + } + + private Builder(OdbNetworkName odbNetworkName) { + this.project = odbNetworkName.project; + this.location = odbNetworkName.location; + this.odbNetwork = odbNetworkName.odbNetwork; + } + + public OdbNetworkName build() { + return new OdbNetworkName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkOrBuilder.java new file mode 100644 index 000000000000..5afb25e6c81e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkOrBuilder.java @@ -0,0 +1,277 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface OdbNetworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.OdbNetwork) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Identifier. The name of the OdbNetwork resource in the following format:
                                              +   * projects/{project}/locations/{region}/odbNetworks/{odb_network}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Identifier. The name of the OdbNetwork resource in the following format:
                                              +   * projects/{project}/locations/{region}/odbNetworks/{odb_network}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Required. The name of the VPC network in the following format:
                                              +   * projects/{project}/global/networks/{network}
                                              +   * 
                                              + * + * + * string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                              +   * Required. The name of the VPC network in the following format:
                                              +   * projects/{project}/global/networks/{network}
                                              +   * 
                                              + * + * + * string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                              +   * Output only. The date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                              +   * Output only. State of the ODB Network.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                              +   * Output only. State of the ODB Network.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.OdbNetwork.State getState(); + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * OdbNetwork.
                                              +   * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The entitlementId. + */ + java.lang.String getEntitlementId(); + + /** + * + * + *
                                              +   * Output only. The ID of the subscription entitlement associated with the
                                              +   * OdbNetwork.
                                              +   * 
                                              + * + * string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for entitlementId. + */ + com.google.protobuf.ByteString getEntitlementIdBytes(); + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where OdbNetwork is hosted.
                                              +   * Example: us-east4-b-r2.
                                              +   * If not specified, the system will pick a zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpOracleZone. + */ + java.lang.String getGcpOracleZone(); + + /** + * + * + *
                                              +   * Optional. The GCP Oracle zone where OdbNetwork is hosted.
                                              +   * Example: us-east4-b-r2.
                                              +   * If not specified, the system will pick a zone based on availability.
                                              +   * 
                                              + * + * string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpOracleZone. + */ + com.google.protobuf.ByteString getGcpOracleZoneBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkProto.java new file mode 100644 index 000000000000..f14741f0073d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkProto.java @@ -0,0 +1,210 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class OdbNetworkProto { + private OdbNetworkProto() {} + + 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_oracledatabase_v1_OdbNetwork_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_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" + + "0google/cloud/oracledatabase/v1/odb_network.proto\022\036google.cloud.oracledatabase." + + "v1\032\037google/api/field_behavior.proto\032\033goo" + + "gle/api/field_info.proto\032\031google/api/res" + + "ource.proto\032\037google/protobuf/timestamp.proto\"\366\004\n\n" + + "OdbNetwork\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0227\n" + + "\007network\030\002 \001(\tB&\340A\002\372A \n" + + "\036compute.googleapis.com/Network\022K\n" + + "\006labels\030\003 \003(\01326.google" + + ".cloud.oracledatabase.v1.OdbNetwork.LabelsEntryB\003\340A\001\0224\n" + + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n" + + "\005state\030\005 \001(" + + "\01620.google.cloud.oracledatabase.v1.OdbNetwork.StateB\003\340A\003\022\033\n" + + "\016entitlement_id\030\006 \001(\tB\003\340A\003\022\034\n" + + "\017gcp_oracle_zone\030\007 \001(\tB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\\\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\020\n" + + "\014PROVISIONING\020\001\022\r\n" + + "\tAVAILABLE\020\002\022\017\n" + + "\013TERMINATING\020\003\022\n\n" + + "\006FAILED\020\004:\212\001\352A\206\001\n" + + "(oracledatabase.googleapis.com/OdbNetwork\022Aprojects/{pro" + + "ject}/locations/{location}/odbNetworks/{odb_network}*\013odbNetworks2\n" + + "odbNetwork\"\337\001\n" + + "\027CreateOdbNetworkRequest\022@\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(oracledatabase.googleapis.com/OdbNetwork\022\033\n" + + "\016odb_network_id\030\002 \001(\tB\003\340A\002\022D\n" + + "\013odb_network\030\003" + + " \001(\0132*.google.cloud.oracledatabase.v1.OdbNetworkB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"z\n" + + "\027DeleteOdbNetworkRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(oracledatabase.googleapis.com/OdbNetwork\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\267\001\n" + + "\026ListOdbNetworksRequest\022@\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(" + + "oracledatabase.googleapis.com/OdbNetwork\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\"\211\001\n" + + "\027ListOdbNetworksResponse\022@\n" + + "\014odb_networks\030\001" + + " \003(\0132*.google.cloud.oracledatabase.v1.OdbNetwork\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"V\n" + + "\024GetOdbNetworkRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(oracledatabase.googleapis.com/OdbNetworkB\351\001\n" + + "\"com.google.cloud.oracledatabase.v1B\017OdbNetworkProtoP\001ZJcloud.google.com/go" + + "/oracledatabase/apiv1/oracledatabasepb;o" + + "racledatabasepb\252\002\036Google.Cloud.OracleDat" + + "abase.V1\312\002\036Google\\Cloud\\OracleDatabase\\V" + + "1\352\002!Google::Cloud::OracleDatabase::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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_descriptor, + new java.lang.String[] { + "Name", "Network", "Labels", "CreateTime", "State", "EntitlementId", "GcpOracleZone", + }); + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_LabelsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_OdbNetwork_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CreateOdbNetworkRequest_descriptor, + new java.lang.String[] { + "Parent", "OdbNetworkId", "OdbNetwork", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DeleteOdbNetworkRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListOdbNetworksResponse_descriptor, + new java.lang.String[] { + "OdbNetworks", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetOdbNetworkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnet.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnet.java new file mode 100644 index 000000000000..73712025228e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnet.java @@ -0,0 +1,2200 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * Represents OdbSubnet resource.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.OdbSubnet} + */ +public final class OdbSubnet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.OdbSubnet) + OdbSubnetOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OdbSubnet.newBuilder() to construct. + private OdbSubnet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OdbSubnet() { + name_ = ""; + cidrRange_ = ""; + purpose_ = 0; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OdbSubnet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_OdbSubnet_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.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_OdbSubnet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.OdbSubnet.class, + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder.class); + } + + /** + * + * + *
                                              +   * Purpose available for the subnet.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.OdbSubnet.Purpose} + */ + public enum Purpose implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * PURPOSE_UNSPECIFIED = 0; + */ + PURPOSE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Subnet to be used for client connections.
                                              +     * 
                                              + * + * CLIENT_SUBNET = 1; + */ + CLIENT_SUBNET(1), + /** + * + * + *
                                              +     * Subnet to be used for backup.
                                              +     * 
                                              + * + * BACKUP_SUBNET = 2; + */ + BACKUP_SUBNET(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * PURPOSE_UNSPECIFIED = 0; + */ + public static final int PURPOSE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Subnet to be used for client connections.
                                              +     * 
                                              + * + * CLIENT_SUBNET = 1; + */ + public static final int CLIENT_SUBNET_VALUE = 1; + + /** + * + * + *
                                              +     * Subnet to be used for backup.
                                              +     * 
                                              + * + * BACKUP_SUBNET = 2; + */ + public static final int BACKUP_SUBNET_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 Purpose 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 Purpose forNumber(int value) { + switch (value) { + case 0: + return PURPOSE_UNSPECIFIED; + case 1: + return CLIENT_SUBNET; + case 2: + return BACKUP_SUBNET; + 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 Purpose findValueByNumber(int number) { + return Purpose.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnet.getDescriptor().getEnumTypes().get(0); + } + + private static final Purpose[] VALUES = values(); + + public static Purpose 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 Purpose(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.OdbSubnet.Purpose) + } + + /** + * + * + *
                                              +   * The various lifecycle states of the ODB Subnet.
                                              +   * 
                                              + * + * Protobuf enum {@code google.cloud.oracledatabase.v1.OdbSubnet.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 3; + */ + TERMINATING(3), + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * Default unspecified value.
                                              +     * 
                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Indicates that the resource is in provisioning state.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + + /** + * + * + *
                                              +     * Indicates that the resource is in available state.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + + /** + * + * + *
                                              +     * Indicates that the resource is in terminating state.
                                              +     * 
                                              + * + * TERMINATING = 3; + */ + public static final int TERMINATING_VALUE = 3; + + /** + * + * + *
                                              +     * Indicates that the resource is in failed state.
                                              +     * 
                                              + * + * FAILED = 4; + */ + public static final int FAILED_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return TERMINATING; + case 4: + return FAILED; + 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 State findValueByNumber(int number) { + return State.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnet.getDescriptor().getEnumTypes().get(1); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.OdbSubnet.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Identifier. The name of the OdbSubnet resource in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * 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. The name of the OdbSubnet resource in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * 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 CIDR_RANGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object cidrRange_ = ""; + + /** + * + * + *
                                              +   * Required. The CIDR range of the subnet.
                                              +   * 
                                              + * + * string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cidrRange. + */ + @java.lang.Override + public java.lang.String getCidrRange() { + java.lang.Object ref = cidrRange_; + 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(); + cidrRange_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The CIDR range of the subnet.
                                              +   * 
                                              + * + * string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrRangeBytes() { + java.lang.Object ref = cidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PURPOSE_FIELD_NUMBER = 3; + private int purpose_ = 0; + + /** + * + * + *
                                              +   * Required. Purpose of the subnet.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for purpose. + */ + @java.lang.Override + public int getPurposeValue() { + return purpose_; + } + + /** + * + * + *
                                              +   * Required. Purpose of the subnet.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The purpose. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose getPurpose() { + com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose result = + com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose.forNumber(purpose_); + return result == null + ? com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose.UNRECOGNIZED + : result; + } + + 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.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_OdbSubnet_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. Labels or tags associated with the 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. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the 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. Labels or tags associated with the 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 CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                              +   * Output only. The date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.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 date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.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 date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.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 STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
                                              +   * Output only. State of the ODB Subnet.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +   * Output only. State of the ODB Subnet.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnet.State getState() { + com.google.cloud.oracledatabase.v1.OdbSubnet.State result = + com.google.cloud.oracledatabase.v1.OdbSubnet.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.OdbSubnet.State.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrRange_); + } + if (purpose_ + != com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose.PURPOSE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, purpose_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.OdbSubnet.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrRange_); + } + if (purpose_ + != com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose.PURPOSE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, purpose_); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (state_ + != com.google.cloud.oracledatabase.v1.OdbSubnet.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + 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.oracledatabase.v1.OdbSubnet)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.OdbSubnet other = + (com.google.cloud.oracledatabase.v1.OdbSubnet) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCidrRange().equals(other.getCidrRange())) return false; + if (purpose_ != other.purpose_) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (state_ != other.state_) 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) + CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getCidrRange().hashCode(); + hash = (37 * hash) + PURPOSE_FIELD_NUMBER; + hash = (53 * hash) + purpose_; + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet 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.oracledatabase.v1.OdbSubnet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet 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.oracledatabase.v1.OdbSubnet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.OdbSubnet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Represents OdbSubnet resource.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.OdbSubnet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.OdbSubnet) + com.google.cloud.oracledatabase.v1.OdbSubnetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_OdbSubnet_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.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_OdbSubnet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.OdbSubnet.class, + com.google.cloud.oracledatabase.v1.OdbSubnet.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.OdbSubnet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + cidrRange_ = ""; + purpose_ = 0; + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbSubnetProto + .internal_static_google_cloud_oracledatabase_v1_OdbSubnet_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnet getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnet build() { + com.google.cloud.oracledatabase.v1.OdbSubnet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnet buildPartial() { + com.google.cloud.oracledatabase.v1.OdbSubnet result = + new com.google.cloud.oracledatabase.v1.OdbSubnet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.OdbSubnet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cidrRange_ = cidrRange_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.purpose_ = purpose_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.OdbSubnet) { + return mergeFrom((com.google.cloud.oracledatabase.v1.OdbSubnet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.OdbSubnet other) { + if (other == com.google.cloud.oracledatabase.v1.OdbSubnet.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCidrRange().isEmpty()) { + cidrRange_ = other.cidrRange_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.purpose_ != 0) { + setPurposeValue(other.getPurposeValue()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + cidrRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + purpose_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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_ = ""; + + /** + * + * + *
                                              +     * Identifier. The name of the OdbSubnet resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * 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. The name of the OdbSubnet resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * 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. The name of the OdbSubnet resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the OdbSubnet resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the OdbSubnet resource in the following format:
                                              +     * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cidrRange_ = ""; + + /** + * + * + *
                                              +     * Required. The CIDR range of the subnet.
                                              +     * 
                                              + * + * string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cidrRange. + */ + public java.lang.String getCidrRange() { + java.lang.Object ref = cidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The CIDR range of the subnet.
                                              +     * 
                                              + * + * string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cidrRange. + */ + public com.google.protobuf.ByteString getCidrRangeBytes() { + java.lang.Object ref = cidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The CIDR range of the subnet.
                                              +     * 
                                              + * + * string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The cidrRange to set. + * @return This builder for chaining. + */ + public Builder setCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cidrRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The CIDR range of the subnet.
                                              +     * 
                                              + * + * string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCidrRange() { + cidrRange_ = getDefaultInstance().getCidrRange(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The CIDR range of the subnet.
                                              +     * 
                                              + * + * string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for cidrRange to set. + * @return This builder for chaining. + */ + public Builder setCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidrRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int purpose_ = 0; + + /** + * + * + *
                                              +     * Required. Purpose of the subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for purpose. + */ + @java.lang.Override + public int getPurposeValue() { + return purpose_; + } + + /** + * + * + *
                                              +     * Required. Purpose of the subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for purpose to set. + * @return This builder for chaining. + */ + public Builder setPurposeValue(int value) { + purpose_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Purpose of the subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The purpose. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose getPurpose() { + com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose result = + com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose.forNumber(purpose_); + return result == null + ? com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Required. Purpose of the subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The purpose to set. + * @return This builder for chaining. + */ + public Builder setPurpose(com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + purpose_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. Purpose of the subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPurpose() { + bitField0_ = (bitField0_ & ~0x00000004); + purpose_ = 0; + onChanged(); + return this; + } + + 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_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the 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. Labels or tags associated with the resource.
                                              +     * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the 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. Labels or tags associated with the 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_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the 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_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the 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_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                              +     * Optional. Labels or tags associated with the resource.
                                              +     * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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 date and time that the OdbNetwork was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                                              +     * Output only. State of the ODB Subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                              +     * Output only. State of the ODB Subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the ODB Subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbSubnet.State getState() { + com.google.cloud.oracledatabase.v1.OdbSubnet.State result = + com.google.cloud.oracledatabase.v1.OdbSubnet.State.forNumber(state_); + return result == null + ? com.google.cloud.oracledatabase.v1.OdbSubnet.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. State of the ODB Subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.oracledatabase.v1.OdbSubnet.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. State of the ODB Subnet.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.OdbSubnet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.OdbSubnet) + private static final com.google.cloud.oracledatabase.v1.OdbSubnet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.OdbSubnet(); + } + + public static com.google.cloud.oracledatabase.v1.OdbSubnet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OdbSubnet 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.oracledatabase.v1.OdbSubnet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetName.java new file mode 100644 index 000000000000..143e737ada08 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2025 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.oracledatabase.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 OdbSubnetName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ODB_NETWORK_ODB_SUBNET = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String odbNetwork; + private final String odbSubnet; + + @Deprecated + protected OdbSubnetName() { + project = null; + location = null; + odbNetwork = null; + odbSubnet = null; + } + + private OdbSubnetName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + odbNetwork = Preconditions.checkNotNull(builder.getOdbNetwork()); + odbSubnet = Preconditions.checkNotNull(builder.getOdbSubnet()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOdbNetwork() { + return odbNetwork; + } + + public String getOdbSubnet() { + return odbSubnet; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OdbSubnetName of( + String project, String location, String odbNetwork, String odbSubnet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOdbNetwork(odbNetwork) + .setOdbSubnet(odbSubnet) + .build(); + } + + public static String format( + String project, String location, String odbNetwork, String odbSubnet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOdbNetwork(odbNetwork) + .setOdbSubnet(odbSubnet) + .build() + .toString(); + } + + public static OdbSubnetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ODB_NETWORK_ODB_SUBNET.validatedMatch( + formattedString, "OdbSubnetName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("odb_network"), + matchMap.get("odb_subnet")); + } + + 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 (OdbSubnetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ODB_NETWORK_ODB_SUBNET.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 (odbNetwork != null) { + fieldMapBuilder.put("odb_network", odbNetwork); + } + if (odbSubnet != null) { + fieldMapBuilder.put("odb_subnet", odbSubnet); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ODB_NETWORK_ODB_SUBNET.instantiate( + "project", + project, + "location", + location, + "odb_network", + odbNetwork, + "odb_subnet", + odbSubnet); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OdbSubnetName that = ((OdbSubnetName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.odbNetwork, that.odbNetwork) + && Objects.equals(this.odbSubnet, that.odbSubnet); + } + 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(odbNetwork); + h *= 1000003; + h ^= Objects.hashCode(odbSubnet); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. + */ + public static class Builder { + private String project; + private String location; + private String odbNetwork; + private String odbSubnet; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOdbNetwork() { + return odbNetwork; + } + + public String getOdbSubnet() { + return odbSubnet; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOdbNetwork(String odbNetwork) { + this.odbNetwork = odbNetwork; + return this; + } + + public Builder setOdbSubnet(String odbSubnet) { + this.odbSubnet = odbSubnet; + return this; + } + + private Builder(OdbSubnetName odbSubnetName) { + this.project = odbSubnetName.project; + this.location = odbSubnetName.location; + this.odbNetwork = odbSubnetName.odbNetwork; + this.odbSubnet = odbSubnetName.odbSubnet; + } + + public OdbSubnetName build() { + return new OdbSubnetName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetOrBuilder.java new file mode 100644 index 000000000000..a316bcb9ecc0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetOrBuilder.java @@ -0,0 +1,243 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface OdbSubnetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.OdbSubnet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Identifier. The name of the OdbSubnet resource in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Identifier. The name of the OdbSubnet resource in the following format:
                                              +   * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Required. The CIDR range of the subnet.
                                              +   * 
                                              + * + * string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cidrRange. + */ + java.lang.String getCidrRange(); + + /** + * + * + *
                                              +   * Required. The CIDR range of the subnet.
                                              +   * 
                                              + * + * string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cidrRange. + */ + com.google.protobuf.ByteString getCidrRangeBytes(); + + /** + * + * + *
                                              +   * Required. Purpose of the subnet.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for purpose. + */ + int getPurposeValue(); + + /** + * + * + *
                                              +   * Required. Purpose of the subnet.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The purpose. + */ + com.google.cloud.oracledatabase.v1.OdbSubnet.Purpose getPurpose(); + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the 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. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                              +   * Optional. Labels or tags associated with the 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. Labels or tags associated with the resource.
                                              +   * 
                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                              +   * Output only. The date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the OdbNetwork was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                              +   * Output only. State of the ODB Subnet.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                              +   * Output only. State of the ODB Subnet.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.oracledatabase.v1.OdbSubnet.State getState(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetProto.java new file mode 100644 index 000000000000..5f877b0ab581 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetProto.java @@ -0,0 +1,211 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/odb_subnet.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class OdbSubnetProto { + private OdbSubnetProto() {} + + 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_oracledatabase_v1_OdbSubnet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_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/cloud/oracledatabase/v1/odb_subnet.proto\022\036google.cloud.oracledatabase.v" + + "1\032\037google/api/field_behavior.proto\032\033goog" + + "le/api/field_info.proto\032\031google/api/reso" + + "urce.proto\032\037google/protobuf/timestamp.proto\"\300\005\n" + + "\tOdbSubnet\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + + "cidr_range\030\002 \001(\tB\003\340A\002\022G\n" + + "\007purpose\030\003 \001(\01621" + + ".google.cloud.oracledatabase.v1.OdbSubnet.PurposeB\003\340A\002\022J\n" + + "\006labels\030\004 \003(\01325.google." + + "cloud.oracledatabase.v1.OdbSubnet.LabelsEntryB\003\340A\001\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" + + "\005state\030\006 \001(\0162" + + "/.google.cloud.oracledatabase.v1.OdbSubnet.StateB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"H\n" + + "\007Purpose\022\027\n" + + "\023PURPOSE_UNSPECIFIED\020\000\022\021\n\r" + + "CLIENT_SUBNET\020\001\022\021\n\r" + + "BACKUP_SUBNET\020\002\"\\\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\020\n" + + "\014PROVISIONING\020\001\022\r\n" + + "\tAVAILABLE\020\002\022\017\n" + + "\013TERMINATING\020\003\022\n\n" + + "\006FAILED\020\004:\237\001\352A\233\001\n" + + "\'oracledatabase.googleapis.com/OdbSubnet\022Ypr" + + "ojects/{project}/locations/{location}/od" + + "bNetworks/{odb_network}/odbSubnets/{odb_subnet}*\n" + + "odbSubnets2\todbSubnet\"\332\001\n" + + "\026CreateOdbSubnetRequest\022?\n" + + "\006parent\030\001 \001(\tB/\340A\002\372A" + + ")\022\'oracledatabase.googleapis.com/OdbSubnet\022\032\n\r" + + "odb_subnet_id\030\002 \001(\tB\003\340A\002\022B\n\n" + + "odb_subnet\030\003" + + " \001(\0132).google.cloud.oracledatabase.v1.OdbSubnetB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"x\n" + + "\026DeleteOdbSubnetRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'oracledatabase.googleapis.com/OdbSubnet\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\265\001\n" + + "\025ListOdbSubnetsRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'oracledatabase.googleapis.com/OdbSubnet\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\"\206\001\n" + + "\026ListOdbSubnetsResponse\022>\n" + + "\013odb_subnets\030\001 \003(\0132).google.cloud.oracledatabase.v1.OdbSubnet\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"T\n" + + "\023GetOdbSubnetRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'oracledatabase.googleapis.com/OdbSubnetB\350\001\n" + + "\"com.google.cloud.oracledatabase.v1B\016OdbSubnetProtoP\001ZJc" + + "loud.google.com/go/oracledatabase/apiv1/" + + "oracledatabasepb;oracledatabasepb\252\002\036Goog" + + "le.Cloud.OracleDatabase.V1\312\002\036Google\\Clou" + + "d\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_descriptor, + new java.lang.String[] { + "Name", "CidrRange", "Purpose", "Labels", "CreateTime", "State", + }); + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_LabelsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_OdbSubnet_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CreateOdbSubnetRequest_descriptor, + new java.lang.String[] { + "Parent", "OdbSubnetId", "OdbSubnet", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DeleteOdbSubnetRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListOdbSubnetsResponse_descriptor, + new java.lang.String[] { + "OdbSubnets", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetOdbSubnetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabase.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabase.java new file mode 100644 index 000000000000..00eafe27aa35 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabase.java @@ -0,0 +1,1466 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The PluggableDatabase resource.
                                              + * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.PluggableDatabase} + */ +public final class PluggableDatabase extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.PluggableDatabase) + PluggableDatabaseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PluggableDatabase.newBuilder() to construct. + private PluggableDatabase(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PluggableDatabase() { + name_ = ""; + ociUrl_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PluggableDatabase(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabase.class, + com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Identifier. The name of the PluggableDatabase resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +   * 
                                              + * + * 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. The name of the PluggableDatabase resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +   * 
                                              + * + * 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 PROPERTIES_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties_; + + /** + * + * + *
                                              +   * Optional. The properties of the PluggableDatabase.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Optional. The properties of the PluggableDatabase.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties getProperties() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.getDefaultInstance() + : properties_; + } + + /** + * + * + *
                                              +   * Optional. The properties of the PluggableDatabase.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesOrBuilder + getPropertiesOrBuilder() { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.getDefaultInstance() + : properties_; + } + + public static final int OCI_URL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ociUrl_ = ""; + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + @java.lang.Override + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + 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(); + ociUrl_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                              +   * Output only. The date and time that the PluggableDatabase was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Output only. The date and time that the PluggableDatabase was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the PluggableDatabase was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ociUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProperties()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ociUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ociUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + 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.oracledatabase.v1.PluggableDatabase)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.PluggableDatabase other = + (com.google.cloud.oracledatabase.v1.PluggableDatabase) obj; + + if (!getName().equals(other.getName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties().equals(other.getProperties())) return false; + } + if (!getOciUrl().equals(other.getOciUrl())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) 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(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (37 * hash) + OCI_URL_FIELD_NUMBER; + hash = (53 * hash) + getOciUrl().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase 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.oracledatabase.v1.PluggableDatabase parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase 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.oracledatabase.v1.PluggableDatabase parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.PluggableDatabase prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The PluggableDatabase resource.
                                              +   * https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.PluggableDatabase} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.PluggableDatabase) + com.google.cloud.oracledatabase.v1.PluggableDatabaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabase.class, + com.google.cloud.oracledatabase.v1.PluggableDatabase.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.PluggableDatabase.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + ociUrl_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabase_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabase getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabase.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabase build() { + com.google.cloud.oracledatabase.v1.PluggableDatabase result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabase buildPartial() { + com.google.cloud.oracledatabase.v1.PluggableDatabase result = + new com.google.cloud.oracledatabase.v1.PluggableDatabase(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.PluggableDatabase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ociUrl_ = ociUrl_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.PluggableDatabase) { + return mergeFrom((com.google.cloud.oracledatabase.v1.PluggableDatabase) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.PluggableDatabase other) { + if (other == com.google.cloud.oracledatabase.v1.PluggableDatabase.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (!other.getOciUrl().isEmpty()) { + ociUrl_ = other.ociUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + 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: + { + input.readMessage(getPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + ociUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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_ = ""; + + /** + * + * + *
                                              +     * Identifier. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * 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. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * 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. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Identifier. The name of the PluggableDatabase resource in the following
                                              +     * format:
                                              +     * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +     * 
                                              + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesOrBuilder> + propertiesBuilder_; + + /** + * + * + *
                                              +     * Optional. The properties of the PluggableDatabase.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Optional. The properties of the PluggableDatabase.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.getDefaultInstance() + : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. The properties of the PluggableDatabase.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the PluggableDatabase.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProperties( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the PluggableDatabase.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProperties( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && properties_ != null + && properties_ + != com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the PluggableDatabase.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The properties of the PluggableDatabase.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.Builder + getPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. The properties of the PluggableDatabase.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesOrBuilder + getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.getDefaultInstance() + : properties_; + } + } + + /** + * + * + *
                                              +     * Optional. The properties of the PluggableDatabase.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesOrBuilder>( + getProperties(), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private java.lang.Object ociUrl_ = ""; + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + public java.lang.String getOciUrl() { + java.lang.Object ref = ociUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ociUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + public com.google.protobuf.ByteString getOciUrlBytes() { + java.lang.Object ref = ociUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ociUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ociUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOciUrl() { + ociUrl_ = getDefaultInstance().getOciUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +     * Interface.
                                              +     * 
                                              + * + * string oci_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ociUrl to set. + * @return This builder for chaining. + */ + public Builder setOciUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ociUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                              +     * Output only. The date and time that the PluggableDatabase was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the PluggableDatabase was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the PluggableDatabase was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the PluggableDatabase was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the PluggableDatabase was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the PluggableDatabase was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the PluggableDatabase was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The date and time that the PluggableDatabase was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 date and time that the PluggableDatabase was created.
                                              +     * 
                                              + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.PluggableDatabase) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.PluggableDatabase) + private static final com.google.cloud.oracledatabase.v1.PluggableDatabase DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.PluggableDatabase(); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabase getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PluggableDatabase 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.oracledatabase.v1.PluggableDatabase getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseConnectionStrings.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseConnectionStrings.java new file mode 100644 index 000000000000..a95b9ad5ae71 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseConnectionStrings.java @@ -0,0 +1,1248 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The connection strings used to connect to the Oracle Database.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings} + */ +public final class PluggableDatabaseConnectionStrings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings) + PluggableDatabaseConnectionStringsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PluggableDatabaseConnectionStrings.newBuilder() to construct. + private PluggableDatabaseConnectionStrings( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PluggableDatabaseConnectionStrings() { + pdbDefault_ = ""; + pdbIpDefault_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PluggableDatabaseConnectionStrings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetAllConnectionStrings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.class, + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.Builder.class); + } + + public static final int ALL_CONNECTION_STRINGS_FIELD_NUMBER = 1; + + private static final class AllConnectionStringsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_AllConnectionStringsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField allConnectionStrings_; + + private com.google.protobuf.MapField + internalGetAllConnectionStrings() { + if (allConnectionStrings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AllConnectionStringsDefaultEntryHolder.defaultEntry); + } + return allConnectionStrings_; + } + + public int getAllConnectionStringsCount() { + return internalGetAllConnectionStrings().getMap().size(); + } + + /** + * + * + *
                                              +   * Optional. All connection strings to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAllConnectionStrings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAllConnectionStrings().getMap().containsKey(key); + } + + /** Use {@link #getAllConnectionStringsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAllConnectionStrings() { + return getAllConnectionStringsMap(); + } + + /** + * + * + *
                                              +   * Optional. All connection strings to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAllConnectionStringsMap() { + return internalGetAllConnectionStrings().getMap(); + } + + /** + * + * + *
                                              +   * Optional. All connection strings to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAllConnectionStringsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAllConnectionStrings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                              +   * Optional. All connection strings to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAllConnectionStringsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAllConnectionStrings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PDB_DEFAULT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pdbDefault_ = ""; + + /** + * + * + *
                                              +   * Optional. The default connection string to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * string pdb_default = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pdbDefault. + */ + @java.lang.Override + public java.lang.String getPdbDefault() { + java.lang.Object ref = pdbDefault_; + 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(); + pdbDefault_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The default connection string to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * string pdb_default = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pdbDefault. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPdbDefaultBytes() { + java.lang.Object ref = pdbDefault_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pdbDefault_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PDB_IP_DEFAULT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pdbIpDefault_ = ""; + + /** + * + * + *
                                              +   * Optional. The default connection string to use to connect to the pluggable
                                              +   * database using IP.
                                              +   * 
                                              + * + * string pdb_ip_default = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pdbIpDefault. + */ + @java.lang.Override + public java.lang.String getPdbIpDefault() { + java.lang.Object ref = pdbIpDefault_; + 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(); + pdbIpDefault_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The default connection string to use to connect to the pluggable
                                              +   * database using IP.
                                              +   * 
                                              + * + * string pdb_ip_default = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pdbIpDefault. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPdbIpDefaultBytes() { + java.lang.Object ref = pdbIpDefault_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pdbIpDefault_ = 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 { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetAllConnectionStrings(), + AllConnectionStringsDefaultEntryHolder.defaultEntry, + 1); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pdbDefault_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pdbDefault_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pdbIpDefault_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pdbIpDefault_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetAllConnectionStrings().getMap().entrySet()) { + com.google.protobuf.MapEntry allConnectionStrings__ = + AllConnectionStringsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, allConnectionStrings__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pdbDefault_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pdbDefault_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pdbIpDefault_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pdbIpDefault_); + } + 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.oracledatabase.v1.PluggableDatabaseConnectionStrings)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings other = + (com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings) obj; + + if (!internalGetAllConnectionStrings().equals(other.internalGetAllConnectionStrings())) + return false; + if (!getPdbDefault().equals(other.getPdbDefault())) return false; + if (!getPdbIpDefault().equals(other.getPdbIpDefault())) 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 (!internalGetAllConnectionStrings().getMap().isEmpty()) { + hash = (37 * hash) + ALL_CONNECTION_STRINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAllConnectionStrings().hashCode(); + } + hash = (37 * hash) + PDB_DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + getPdbDefault().hashCode(); + hash = (37 * hash) + PDB_IP_DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + getPdbIpDefault().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings 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.oracledatabase.v1.PluggableDatabaseConnectionStrings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings 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.oracledatabase.v1.PluggableDatabaseConnectionStrings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The connection strings used to connect to the Oracle Database.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings) + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStringsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetAllConnectionStrings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableAllConnectionStrings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.class, + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableAllConnectionStrings().clear(); + pdbDefault_ = ""; + pdbIpDefault_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings build() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings buildPartial() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings result = + new com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allConnectionStrings_ = internalGetAllConnectionStrings(); + result.allConnectionStrings_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pdbDefault_ = pdbDefault_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pdbIpDefault_ = pdbIpDefault_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings other) { + if (other + == com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + .getDefaultInstance()) return this; + internalGetMutableAllConnectionStrings().mergeFrom(other.internalGetAllConnectionStrings()); + bitField0_ |= 0x00000001; + if (!other.getPdbDefault().isEmpty()) { + pdbDefault_ = other.pdbDefault_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPdbIpDefault().isEmpty()) { + pdbIpDefault_ = other.pdbIpDefault_; + 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: + { + com.google.protobuf.MapEntry + allConnectionStrings__ = + input.readMessage( + AllConnectionStringsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAllConnectionStrings() + .getMutableMap() + .put(allConnectionStrings__.getKey(), allConnectionStrings__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pdbDefault_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + pdbIpDefault_ = 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.MapField allConnectionStrings_; + + private com.google.protobuf.MapField + internalGetAllConnectionStrings() { + if (allConnectionStrings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AllConnectionStringsDefaultEntryHolder.defaultEntry); + } + return allConnectionStrings_; + } + + private com.google.protobuf.MapField + internalGetMutableAllConnectionStrings() { + if (allConnectionStrings_ == null) { + allConnectionStrings_ = + com.google.protobuf.MapField.newMapField( + AllConnectionStringsDefaultEntryHolder.defaultEntry); + } + if (!allConnectionStrings_.isMutable()) { + allConnectionStrings_ = allConnectionStrings_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return allConnectionStrings_; + } + + public int getAllConnectionStringsCount() { + return internalGetAllConnectionStrings().getMap().size(); + } + + /** + * + * + *
                                              +     * Optional. All connection strings to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAllConnectionStrings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAllConnectionStrings().getMap().containsKey(key); + } + + /** Use {@link #getAllConnectionStringsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAllConnectionStrings() { + return getAllConnectionStringsMap(); + } + + /** + * + * + *
                                              +     * Optional. All connection strings to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAllConnectionStringsMap() { + return internalGetAllConnectionStrings().getMap(); + } + + /** + * + * + *
                                              +     * Optional. All connection strings to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAllConnectionStringsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAllConnectionStrings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                              +     * Optional. All connection strings to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAllConnectionStringsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAllConnectionStrings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAllConnectionStrings() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableAllConnectionStrings().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                              +     * Optional. All connection strings to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAllConnectionStrings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAllConnectionStrings().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAllConnectionStrings() { + bitField0_ |= 0x00000001; + return internalGetMutableAllConnectionStrings().getMutableMap(); + } + + /** + * + * + *
                                              +     * Optional. All connection strings to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllConnectionStrings(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAllConnectionStrings().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
                                              +     * Optional. All connection strings to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAllConnectionStrings( + java.util.Map values) { + internalGetMutableAllConnectionStrings().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + private java.lang.Object pdbDefault_ = ""; + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * string pdb_default = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pdbDefault. + */ + public java.lang.String getPdbDefault() { + java.lang.Object ref = pdbDefault_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pdbDefault_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * string pdb_default = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pdbDefault. + */ + public com.google.protobuf.ByteString getPdbDefaultBytes() { + java.lang.Object ref = pdbDefault_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pdbDefault_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * string pdb_default = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pdbDefault to set. + * @return This builder for chaining. + */ + public Builder setPdbDefault(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pdbDefault_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * string pdb_default = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPdbDefault() { + pdbDefault_ = getDefaultInstance().getPdbDefault(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database.
                                              +     * 
                                              + * + * string pdb_default = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pdbDefault to set. + * @return This builder for chaining. + */ + public Builder setPdbDefaultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pdbDefault_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object pdbIpDefault_ = ""; + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database using IP.
                                              +     * 
                                              + * + * string pdb_ip_default = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pdbIpDefault. + */ + public java.lang.String getPdbIpDefault() { + java.lang.Object ref = pdbIpDefault_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pdbIpDefault_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database using IP.
                                              +     * 
                                              + * + * string pdb_ip_default = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pdbIpDefault. + */ + public com.google.protobuf.ByteString getPdbIpDefaultBytes() { + java.lang.Object ref = pdbIpDefault_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pdbIpDefault_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database using IP.
                                              +     * 
                                              + * + * string pdb_ip_default = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pdbIpDefault to set. + * @return This builder for chaining. + */ + public Builder setPdbIpDefault(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pdbIpDefault_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database using IP.
                                              +     * 
                                              + * + * string pdb_ip_default = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPdbIpDefault() { + pdbIpDefault_ = getDefaultInstance().getPdbIpDefault(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The default connection string to use to connect to the pluggable
                                              +     * database using IP.
                                              +     * 
                                              + * + * string pdb_ip_default = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pdbIpDefault to set. + * @return This builder for chaining. + */ + public Builder setPdbIpDefaultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pdbIpDefault_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings) + private static final com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings(); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PluggableDatabaseConnectionStrings 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.oracledatabase.v1.PluggableDatabaseConnectionStrings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseConnectionStringsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseConnectionStringsOrBuilder.java new file mode 100644 index 000000000000..f2fb38dae08f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseConnectionStringsOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface PluggableDatabaseConnectionStringsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. All connection strings to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAllConnectionStringsCount(); + + /** + * + * + *
                                              +   * Optional. All connection strings to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAllConnectionStrings(java.lang.String key); + + /** Use {@link #getAllConnectionStringsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAllConnectionStrings(); + + /** + * + * + *
                                              +   * Optional. All connection strings to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAllConnectionStringsMap(); + + /** + * + * + *
                                              +   * Optional. All connection strings to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAllConnectionStringsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                              +   * Optional. All connection strings to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * + * map<string, string> all_connection_strings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAllConnectionStringsOrThrow(java.lang.String key); + + /** + * + * + *
                                              +   * Optional. The default connection string to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * string pdb_default = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pdbDefault. + */ + java.lang.String getPdbDefault(); + + /** + * + * + *
                                              +   * Optional. The default connection string to use to connect to the pluggable
                                              +   * database.
                                              +   * 
                                              + * + * string pdb_default = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pdbDefault. + */ + com.google.protobuf.ByteString getPdbDefaultBytes(); + + /** + * + * + *
                                              +   * Optional. The default connection string to use to connect to the pluggable
                                              +   * database using IP.
                                              +   * 
                                              + * + * string pdb_ip_default = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pdbIpDefault. + */ + java.lang.String getPdbIpDefault(); + + /** + * + * + *
                                              +   * Optional. The default connection string to use to connect to the pluggable
                                              +   * database using IP.
                                              +   * 
                                              + * + * string pdb_ip_default = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pdbIpDefault. + */ + com.google.protobuf.ByteString getPdbIpDefaultBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseName.java new file mode 100644 index 000000000000..dcebf6e0bc86 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseName.java @@ -0,0 +1,231 @@ +/* + * Copyright 2025 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.oracledatabase.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 PluggableDatabaseName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PLUGGABLE_DATABASE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/pluggableDatabases/{pluggable_database}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String pluggableDatabase; + + @Deprecated + protected PluggableDatabaseName() { + project = null; + location = null; + pluggableDatabase = null; + } + + private PluggableDatabaseName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + pluggableDatabase = Preconditions.checkNotNull(builder.getPluggableDatabase()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPluggableDatabase() { + return pluggableDatabase; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PluggableDatabaseName of( + String project, String location, String pluggableDatabase) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPluggableDatabase(pluggableDatabase) + .build(); + } + + public static String format(String project, String location, String pluggableDatabase) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPluggableDatabase(pluggableDatabase) + .build() + .toString(); + } + + public static PluggableDatabaseName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PLUGGABLE_DATABASE.validatedMatch( + formattedString, "PluggableDatabaseName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("pluggable_database")); + } + + 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 (PluggableDatabaseName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PLUGGABLE_DATABASE.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 (pluggableDatabase != null) { + fieldMapBuilder.put("pluggable_database", pluggableDatabase); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PLUGGABLE_DATABASE.instantiate( + "project", project, "location", location, "pluggable_database", pluggableDatabase); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + PluggableDatabaseName that = ((PluggableDatabaseName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.pluggableDatabase, that.pluggableDatabase); + } + 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(pluggableDatabase); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/pluggableDatabases/{pluggable_database}. + */ + public static class Builder { + private String project; + private String location; + private String pluggableDatabase; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPluggableDatabase() { + return pluggableDatabase; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPluggableDatabase(String pluggableDatabase) { + this.pluggableDatabase = pluggableDatabase; + return this; + } + + private Builder(PluggableDatabaseName pluggableDatabaseName) { + this.project = pluggableDatabaseName.project; + this.location = pluggableDatabaseName.location; + this.pluggableDatabase = pluggableDatabaseName.pluggableDatabase; + } + + public PluggableDatabaseName build() { + return new PluggableDatabaseName(this); + } + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseNodeLevelDetails.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseNodeLevelDetails.java new file mode 100644 index 000000000000..f87f15725707 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseNodeLevelDetails.java @@ -0,0 +1,1239 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The Pluggable Database Node Level Details.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails} + */ +public final class PluggableDatabaseNodeLevelDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails) + PluggableDatabaseNodeLevelDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PluggableDatabaseNodeLevelDetails.newBuilder() to construct. + private PluggableDatabaseNodeLevelDetails( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PluggableDatabaseNodeLevelDetails() { + nodeName_ = ""; + openMode_ = 0; + pluggableDatabaseId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PluggableDatabaseNodeLevelDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.class, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder.class); + } + + /** + * + * + *
                                              +   * The mode that the pluggable database is in to open it.
                                              +   * 
                                              + * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode} + */ + public enum PluggableDatabaseOpenMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The open mode is unspecified.
                                              +     * 
                                              + * + * PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED = 0; + */ + PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * The pluggable database is opened in read-only mode.
                                              +     * 
                                              + * + * READ_ONLY = 1; + */ + READ_ONLY(1), + /** + * + * + *
                                              +     * The pluggable database is opened in read-write mode.
                                              +     * 
                                              + * + * READ_WRITE = 2; + */ + READ_WRITE(2), + /** + * + * + *
                                              +     * The pluggable database is mounted.
                                              +     * 
                                              + * + * MOUNTED = 3; + */ + MOUNTED(3), + /** + * + * + *
                                              +     * The pluggable database is migrated.
                                              +     * 
                                              + * + * MIGRATE = 4; + */ + MIGRATE(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The open mode is unspecified.
                                              +     * 
                                              + * + * PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED = 0; + */ + public static final int PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * The pluggable database is opened in read-only mode.
                                              +     * 
                                              + * + * READ_ONLY = 1; + */ + public static final int READ_ONLY_VALUE = 1; + + /** + * + * + *
                                              +     * The pluggable database is opened in read-write mode.
                                              +     * 
                                              + * + * READ_WRITE = 2; + */ + public static final int READ_WRITE_VALUE = 2; + + /** + * + * + *
                                              +     * The pluggable database is mounted.
                                              +     * 
                                              + * + * MOUNTED = 3; + */ + public static final int MOUNTED_VALUE = 3; + + /** + * + * + *
                                              +     * The pluggable database is migrated.
                                              +     * 
                                              + * + * MIGRATE = 4; + */ + public static final int MIGRATE_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 PluggableDatabaseOpenMode 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 PluggableDatabaseOpenMode forNumber(int value) { + switch (value) { + case 0: + return PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED; + case 1: + return READ_ONLY; + case 2: + return READ_WRITE; + case 3: + return MOUNTED; + case 4: + return MIGRATE; + 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 PluggableDatabaseOpenMode findValueByNumber(int number) { + return PluggableDatabaseOpenMode.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PluggableDatabaseOpenMode[] VALUES = values(); + + public static PluggableDatabaseOpenMode 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 PluggableDatabaseOpenMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode) + } + + public static final int NODE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object nodeName_ = ""; + + /** + * + * + *
                                              +   * Required. The Node name of the Database home.
                                              +   * 
                                              + * + * string node_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeName. + */ + @java.lang.Override + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + 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(); + nodeName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The Node name of the Database home.
                                              +   * 
                                              + * + * string node_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPEN_MODE_FIELD_NUMBER = 2; + private int openMode_ = 0; + + /** + * + * + *
                                              +   * Required. The mode that the pluggable database is in to open it.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode open_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for openMode. + */ + @java.lang.Override + public int getOpenModeValue() { + return openMode_; + } + + /** + * + * + *
                                              +   * Required. The mode that the pluggable database is in to open it.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode open_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The openMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .PluggableDatabaseOpenMode + getOpenMode() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode + result = + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .PluggableDatabaseOpenMode.forNumber(openMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .PluggableDatabaseOpenMode.UNRECOGNIZED + : result; + } + + public static final int PLUGGABLE_DATABASE_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pluggableDatabaseId_ = ""; + + /** + * + * + *
                                              +   * Required. The OCID of the Pluggable Database.
                                              +   * 
                                              + * + * string pluggable_database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pluggableDatabaseId. + */ + @java.lang.Override + public java.lang.String getPluggableDatabaseId() { + java.lang.Object ref = pluggableDatabaseId_; + 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(); + pluggableDatabaseId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The OCID of the Pluggable Database.
                                              +   * 
                                              + * + * string pluggable_database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pluggableDatabaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPluggableDatabaseIdBytes() { + java.lang.Object ref = pluggableDatabaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pluggableDatabaseId_ = 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.GeneratedMessageV3.isStringEmpty(nodeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeName_); + } + if (openMode_ + != com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .PluggableDatabaseOpenMode.PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, openMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pluggableDatabaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pluggableDatabaseId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeName_); + } + if (openMode_ + != com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .PluggableDatabaseOpenMode.PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, openMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pluggableDatabaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pluggableDatabaseId_); + } + 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.oracledatabase.v1.PluggableDatabaseNodeLevelDetails)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails other = + (com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails) obj; + + if (!getNodeName().equals(other.getNodeName())) return false; + if (openMode_ != other.openMode_) return false; + if (!getPluggableDatabaseId().equals(other.getPluggableDatabaseId())) 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) + NODE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNodeName().hashCode(); + hash = (37 * hash) + OPEN_MODE_FIELD_NUMBER; + hash = (53 * hash) + openMode_; + hash = (37 * hash) + PLUGGABLE_DATABASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPluggableDatabaseId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails 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.oracledatabase.v1.PluggableDatabaseNodeLevelDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails 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.oracledatabase.v1.PluggableDatabaseNodeLevelDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The Pluggable Database Node Level Details.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails) + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.class, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nodeName_ = ""; + openMode_ = 0; + pluggableDatabaseId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails build() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails buildPartial() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails result = + new com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nodeName_ = nodeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.openMode_ = openMode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pluggableDatabaseId_ = pluggableDatabaseId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails other) { + if (other + == com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .getDefaultInstance()) return this; + if (!other.getNodeName().isEmpty()) { + nodeName_ = other.nodeName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.openMode_ != 0) { + setOpenModeValue(other.getOpenModeValue()); + } + if (!other.getPluggableDatabaseId().isEmpty()) { + pluggableDatabaseId_ = other.pluggableDatabaseId_; + 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: + { + nodeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + openMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pluggableDatabaseId_ = 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 nodeName_ = ""; + + /** + * + * + *
                                              +     * Required. The Node name of the Database home.
                                              +     * 
                                              + * + * string node_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeName. + */ + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The Node name of the Database home.
                                              +     * 
                                              + * + * string node_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeName. + */ + public com.google.protobuf.ByteString getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The Node name of the Database home.
                                              +     * 
                                              + * + * string node_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeName to set. + * @return This builder for chaining. + */ + public Builder setNodeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nodeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The Node name of the Database home.
                                              +     * 
                                              + * + * string node_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeName() { + nodeName_ = getDefaultInstance().getNodeName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The Node name of the Database home.
                                              +     * 
                                              + * + * string node_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for nodeName to set. + * @return This builder for chaining. + */ + public Builder setNodeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int openMode_ = 0; + + /** + * + * + *
                                              +     * Required. The mode that the pluggable database is in to open it.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode open_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for openMode. + */ + @java.lang.Override + public int getOpenModeValue() { + return openMode_; + } + + /** + * + * + *
                                              +     * Required. The mode that the pluggable database is in to open it.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode open_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for openMode to set. + * @return This builder for chaining. + */ + public Builder setOpenModeValue(int value) { + openMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The mode that the pluggable database is in to open it.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode open_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The openMode. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .PluggableDatabaseOpenMode + getOpenMode() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode + result = + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .PluggableDatabaseOpenMode.forNumber(openMode_); + return result == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .PluggableDatabaseOpenMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Required. The mode that the pluggable database is in to open it.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode open_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The openMode to set. + * @return This builder for chaining. + */ + public Builder setOpenMode( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .PluggableDatabaseOpenMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + openMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The mode that the pluggable database is in to open it.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode open_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOpenMode() { + bitField0_ = (bitField0_ & ~0x00000002); + openMode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pluggableDatabaseId_ = ""; + + /** + * + * + *
                                              +     * Required. The OCID of the Pluggable Database.
                                              +     * 
                                              + * + * string pluggable_database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pluggableDatabaseId. + */ + public java.lang.String getPluggableDatabaseId() { + java.lang.Object ref = pluggableDatabaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pluggableDatabaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The OCID of the Pluggable Database.
                                              +     * 
                                              + * + * string pluggable_database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pluggableDatabaseId. + */ + public com.google.protobuf.ByteString getPluggableDatabaseIdBytes() { + java.lang.Object ref = pluggableDatabaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pluggableDatabaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The OCID of the Pluggable Database.
                                              +     * 
                                              + * + * string pluggable_database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pluggableDatabaseId to set. + * @return This builder for chaining. + */ + public Builder setPluggableDatabaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pluggableDatabaseId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The OCID of the Pluggable Database.
                                              +     * 
                                              + * + * string pluggable_database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPluggableDatabaseId() { + pluggableDatabaseId_ = getDefaultInstance().getPluggableDatabaseId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The OCID of the Pluggable Database.
                                              +     * 
                                              + * + * string pluggable_database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pluggableDatabaseId to set. + * @return This builder for chaining. + */ + public Builder setPluggableDatabaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pluggableDatabaseId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails) + private static final com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails(); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PluggableDatabaseNodeLevelDetails 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.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseNodeLevelDetailsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseNodeLevelDetailsOrBuilder.java new file mode 100644 index 000000000000..cd18906237bc --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseNodeLevelDetailsOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface PluggableDatabaseNodeLevelDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The Node name of the Database home.
                                              +   * 
                                              + * + * string node_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeName. + */ + java.lang.String getNodeName(); + + /** + * + * + *
                                              +   * Required. The Node name of the Database home.
                                              +   * 
                                              + * + * string node_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeName. + */ + com.google.protobuf.ByteString getNodeNameBytes(); + + /** + * + * + *
                                              +   * Required. The mode that the pluggable database is in to open it.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode open_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for openMode. + */ + int getOpenModeValue(); + + /** + * + * + *
                                              +   * Required. The mode that the pluggable database is in to open it.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode open_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The openMode. + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode + getOpenMode(); + + /** + * + * + *
                                              +   * Required. The OCID of the Pluggable Database.
                                              +   * 
                                              + * + * string pluggable_database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pluggableDatabaseId. + */ + java.lang.String getPluggableDatabaseId(); + + /** + * + * + *
                                              +   * Required. The OCID of the Pluggable Database.
                                              +   * 
                                              + * + * string pluggable_database_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pluggableDatabaseId. + */ + com.google.protobuf.ByteString getPluggableDatabaseIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseOrBuilder.java new file mode 100644 index 000000000000..f5cf18c3afba --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface PluggableDatabaseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.PluggableDatabase) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Identifier. The name of the PluggableDatabase resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Identifier. The name of the PluggableDatabase resource in the following
                                              +   * format:
                                              +   * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
                                              +   * 
                                              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. The properties of the PluggableDatabase.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the properties field is set. + */ + boolean hasProperties(); + + /** + * + * + *
                                              +   * Optional. The properties of the PluggableDatabase.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The properties. + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties getProperties(); + + /** + * + * + *
                                              +   * Optional. The properties of the PluggableDatabase.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ociUrl. + */ + java.lang.String getOciUrl(); + + /** + * + * + *
                                              +   * Output only. HTTPS link to OCI resources exposed to Customer via UI
                                              +   * Interface.
                                              +   * 
                                              + * + * string oci_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ociUrl. + */ + com.google.protobuf.ByteString getOciUrlBytes(); + + /** + * + * + *
                                              +   * Output only. The date and time that the PluggableDatabase was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the PluggableDatabase was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                              +   * Output only. The date and time that the PluggableDatabase was created.
                                              +   * 
                                              + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseProperties.java new file mode 100644 index 000000000000..5fbdf98f8fd2 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseProperties.java @@ -0,0 +1,5575 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The properties of a PluggableDatabase.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.PluggableDatabaseProperties} + */ +public final class PluggableDatabaseProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.PluggableDatabaseProperties) + PluggableDatabasePropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PluggableDatabaseProperties.newBuilder() to construct. + private PluggableDatabaseProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PluggableDatabaseProperties() { + compartmentId_ = ""; + containerDatabaseOcid_ = ""; + ocid_ = ""; + lifecycleDetails_ = ""; + lifecycleState_ = 0; + pdbName_ = ""; + pdbNodeLevelDetails_ = java.util.Collections.emptyList(); + operationsInsightsState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PluggableDatabaseProperties(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetDefinedTags(); + case 5: + return internalGetFreeformTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.class, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.Builder.class); + } + + /** + * + * + *
                                              +   * The various lifecycle states of the PluggableDatabase.
                                              +   * 
                                              + * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState} + */ + public enum PluggableDatabaseLifecycleState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The lifecycle state is unspecified.
                                              +     * 
                                              + * + * PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * The pluggable database is provisioning.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
                                              +     * The pluggable database is available.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + AVAILABLE(2), + /** + * + * + *
                                              +     * The pluggable database is terminating.
                                              +     * 
                                              + * + * TERMINATING = 3; + */ + TERMINATING(3), + /** + * + * + *
                                              +     * The pluggable database is terminated.
                                              +     * 
                                              + * + * TERMINATED = 4; + */ + TERMINATED(4), + /** + * + * + *
                                              +     * The pluggable database is updating.
                                              +     * 
                                              + * + * UPDATING = 5; + */ + UPDATING(5), + /** + * + * + *
                                              +     * The pluggable database is in a failed state.
                                              +     * 
                                              + * + * FAILED = 6; + */ + FAILED(6), + /** + * + * + *
                                              +     * The pluggable database is relocating.
                                              +     * 
                                              + * + * RELOCATING = 7; + */ + RELOCATING(7), + /** + * + * + *
                                              +     * The pluggable database is relocated.
                                              +     * 
                                              + * + * RELOCATED = 8; + */ + RELOCATED(8), + /** + * + * + *
                                              +     * The pluggable database is refreshing.
                                              +     * 
                                              + * + * REFRESHING = 9; + */ + REFRESHING(9), + /** + * + * + *
                                              +     * The pluggable database is restoring.
                                              +     * 
                                              + * + * RESTORE_IN_PROGRESS = 10; + */ + RESTORE_IN_PROGRESS(10), + /** + * + * + *
                                              +     * The pluggable database restore failed.
                                              +     * 
                                              + * + * RESTORE_FAILED = 11; + */ + RESTORE_FAILED(11), + /** + * + * + *
                                              +     * The pluggable database is backing up.
                                              +     * 
                                              + * + * BACKUP_IN_PROGRESS = 12; + */ + BACKUP_IN_PROGRESS(12), + /** + * + * + *
                                              +     * The pluggable database is disabled.
                                              +     * 
                                              + * + * DISABLED = 13; + */ + DISABLED(13), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The lifecycle state is unspecified.
                                              +     * 
                                              + * + * PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + public static final int PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * The pluggable database is provisioning.
                                              +     * 
                                              + * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + + /** + * + * + *
                                              +     * The pluggable database is available.
                                              +     * 
                                              + * + * AVAILABLE = 2; + */ + public static final int AVAILABLE_VALUE = 2; + + /** + * + * + *
                                              +     * The pluggable database is terminating.
                                              +     * 
                                              + * + * TERMINATING = 3; + */ + public static final int TERMINATING_VALUE = 3; + + /** + * + * + *
                                              +     * The pluggable database is terminated.
                                              +     * 
                                              + * + * TERMINATED = 4; + */ + public static final int TERMINATED_VALUE = 4; + + /** + * + * + *
                                              +     * The pluggable database is updating.
                                              +     * 
                                              + * + * UPDATING = 5; + */ + public static final int UPDATING_VALUE = 5; + + /** + * + * + *
                                              +     * The pluggable database is in a failed state.
                                              +     * 
                                              + * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + + /** + * + * + *
                                              +     * The pluggable database is relocating.
                                              +     * 
                                              + * + * RELOCATING = 7; + */ + public static final int RELOCATING_VALUE = 7; + + /** + * + * + *
                                              +     * The pluggable database is relocated.
                                              +     * 
                                              + * + * RELOCATED = 8; + */ + public static final int RELOCATED_VALUE = 8; + + /** + * + * + *
                                              +     * The pluggable database is refreshing.
                                              +     * 
                                              + * + * REFRESHING = 9; + */ + public static final int REFRESHING_VALUE = 9; + + /** + * + * + *
                                              +     * The pluggable database is restoring.
                                              +     * 
                                              + * + * RESTORE_IN_PROGRESS = 10; + */ + public static final int RESTORE_IN_PROGRESS_VALUE = 10; + + /** + * + * + *
                                              +     * The pluggable database restore failed.
                                              +     * 
                                              + * + * RESTORE_FAILED = 11; + */ + public static final int RESTORE_FAILED_VALUE = 11; + + /** + * + * + *
                                              +     * The pluggable database is backing up.
                                              +     * 
                                              + * + * BACKUP_IN_PROGRESS = 12; + */ + public static final int BACKUP_IN_PROGRESS_VALUE = 12; + + /** + * + * + *
                                              +     * The pluggable database is disabled.
                                              +     * 
                                              + * + * DISABLED = 13; + */ + public static final int DISABLED_VALUE = 13; + + 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 PluggableDatabaseLifecycleState 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 PluggableDatabaseLifecycleState forNumber(int value) { + switch (value) { + case 0: + return PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return AVAILABLE; + case 3: + return TERMINATING; + case 4: + return TERMINATED; + case 5: + return UPDATING; + case 6: + return FAILED; + case 7: + return RELOCATING; + case 8: + return RELOCATED; + case 9: + return REFRESHING; + case 10: + return RESTORE_IN_PROGRESS; + case 11: + return RESTORE_FAILED; + case 12: + return BACKUP_IN_PROGRESS; + case 13: + return DISABLED; + 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 PluggableDatabaseLifecycleState findValueByNumber(int number) { + return PluggableDatabaseLifecycleState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PluggableDatabaseLifecycleState[] VALUES = values(); + + public static PluggableDatabaseLifecycleState 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 PluggableDatabaseLifecycleState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState) + } + + /** + * + * + *
                                              +   * The status of Operations Insights for this Database.
                                              +   * 
                                              + * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState} + */ + public enum OperationsInsightsState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                              +     * The status is not specified.
                                              +     * 
                                              + * + * OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0; + */ + OPERATIONS_INSIGHTS_STATE_UNSPECIFIED(0), + /** + * + * + *
                                              +     * Operations Insights is enabling.
                                              +     * 
                                              + * + * ENABLING = 1; + */ + ENABLING(1), + /** + * + * + *
                                              +     * Operations Insights is enabled.
                                              +     * 
                                              + * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
                                              +     * Operations Insights is disabling.
                                              +     * 
                                              + * + * DISABLING = 3; + */ + DISABLING(3), + /** + * + * + *
                                              +     * Operations Insights is not enabled.
                                              +     * 
                                              + * + * NOT_ENABLED = 4; + */ + NOT_ENABLED(4), + /** + * + * + *
                                              +     * Operations Insights failed to enable.
                                              +     * 
                                              + * + * FAILED_ENABLING = 5; + */ + FAILED_ENABLING(5), + /** + * + * + *
                                              +     * Operations Insights failed to disable.
                                              +     * 
                                              + * + * FAILED_DISABLING = 6; + */ + FAILED_DISABLING(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                              +     * The status is not specified.
                                              +     * 
                                              + * + * OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0; + */ + public static final int OPERATIONS_INSIGHTS_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                              +     * Operations Insights is enabling.
                                              +     * 
                                              + * + * ENABLING = 1; + */ + public static final int ENABLING_VALUE = 1; + + /** + * + * + *
                                              +     * Operations Insights is enabled.
                                              +     * 
                                              + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + /** + * + * + *
                                              +     * Operations Insights is disabling.
                                              +     * 
                                              + * + * DISABLING = 3; + */ + public static final int DISABLING_VALUE = 3; + + /** + * + * + *
                                              +     * Operations Insights is not enabled.
                                              +     * 
                                              + * + * NOT_ENABLED = 4; + */ + public static final int NOT_ENABLED_VALUE = 4; + + /** + * + * + *
                                              +     * Operations Insights failed to enable.
                                              +     * 
                                              + * + * FAILED_ENABLING = 5; + */ + public static final int FAILED_ENABLING_VALUE = 5; + + /** + * + * + *
                                              +     * Operations Insights failed to disable.
                                              +     * 
                                              + * + * FAILED_DISABLING = 6; + */ + public static final int FAILED_DISABLING_VALUE = 6; + + 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 OperationsInsightsState 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 OperationsInsightsState forNumber(int value) { + switch (value) { + case 0: + return OPERATIONS_INSIGHTS_STATE_UNSPECIFIED; + case 1: + return ENABLING; + case 2: + return ENABLED; + case 3: + return DISABLING; + case 4: + return NOT_ENABLED; + case 5: + return FAILED_ENABLING; + case 6: + return FAILED_DISABLING; + 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 OperationsInsightsState findValueByNumber(int number) { + return OperationsInsightsState.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final OperationsInsightsState[] VALUES = values(); + + public static OperationsInsightsState 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 OperationsInsightsState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState) + } + + public interface DefinedTagValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +     * The tags within the namespace.
                                              +     * 
                                              + * + * map<string, string> tags = 1; + */ + int getTagsCount(); + + /** + * + * + *
                                              +     * The tags within the namespace.
                                              +     * 
                                              + * + * map<string, string> tags = 1; + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
                                              +     * The tags within the namespace.
                                              +     * 
                                              + * + * map<string, string> tags = 1; + */ + java.util.Map getTagsMap(); + + /** + * + * + *
                                              +     * The tags within the namespace.
                                              +     * 
                                              + * + * map<string, string> tags = 1; + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                              +     * The tags within the namespace.
                                              +     * 
                                              + * + * map<string, string> tags = 1; + */ + java.lang.String getTagsOrThrow(java.lang.String key); + } + + /** + * + * + *
                                              +   * Wrapper message for the value of a defined tag.
                                              +   * 
                                              + * + * Protobuf type {@code + * google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue} + */ + public static final class DefinedTagValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) + DefinedTagValueOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DefinedTagValue.newBuilder() to construct. + private DefinedTagValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefinedTagValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefinedTagValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue.class, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue.Builder + .class); + } + + public static final int TAGS_FIELD_NUMBER = 1; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
                                              +     * The tags within the namespace.
                                              +     * 
                                              + * + * map<string, string> tags = 1; + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
                                              +     * The tags within the namespace.
                                              +     * 
                                              + * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
                                              +     * The tags within the namespace.
                                              +     * 
                                              + * + * map<string, string> tags = 1; + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                              +     * The tags within the namespace.
                                              +     * 
                                              + * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tags__); + } + 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.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue other = + (com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) obj; + + if (!internalGetTags().equals(other.internalGetTags())) 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 (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + 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.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + 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.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +     * Wrapper message for the value of a defined tag.
                                              +     * 
                                              + * + * Protobuf type {@code + * google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + .class, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + .Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableTags().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + build() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + buildPartial() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue result = + new com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue other) { + if (other + == com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + .getDefaultInstance()) return this; + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00000001; + 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.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + 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 com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
                                              +       * The tags within the namespace.
                                              +       * 
                                              + * + * map<string, string> tags = 1; + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
                                              +       * The tags within the namespace.
                                              +       * 
                                              + * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
                                              +       * The tags within the namespace.
                                              +       * 
                                              + * + * map<string, string> tags = 1; + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                              +       * The tags within the namespace.
                                              +       * 
                                              + * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                              +       * The tags within the namespace.
                                              +       * 
                                              + * + * map<string, string> tags = 1; + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00000001; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
                                              +       * The tags within the namespace.
                                              +       * 
                                              + * + * map<string, string> tags = 1; + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
                                              +       * The tags within the namespace.
                                              +       * 
                                              + * + * map<string, string> tags = 1; + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) + private static final com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .DefinedTagValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue(); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefinedTagValue 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.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int COMPARTMENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object compartmentId_ = ""; + + /** + * + * + *
                                              +   * Required. The OCID of the compartment.
                                              +   * 
                                              + * + * string compartment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The compartmentId. + */ + @java.lang.Override + public java.lang.String getCompartmentId() { + java.lang.Object ref = compartmentId_; + 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(); + compartmentId_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The OCID of the compartment.
                                              +   * 
                                              + * + * string compartment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for compartmentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompartmentIdBytes() { + java.lang.Object ref = compartmentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compartmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_STRINGS_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connectionStrings_; + + /** + * + * + *
                                              +   * Optional. The Connection strings used to connect to the Oracle Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectionStrings field is set. + */ + @java.lang.Override + public boolean hasConnectionStrings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                              +   * Optional. The Connection strings used to connect to the Oracle Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectionStrings. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + getConnectionStrings() { + return connectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.getDefaultInstance() + : connectionStrings_; + } + + /** + * + * + *
                                              +   * Optional. The Connection strings used to connect to the Oracle Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStringsOrBuilder + getConnectionStringsOrBuilder() { + return connectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.getDefaultInstance() + : connectionStrings_; + } + + public static final int CONTAINER_DATABASE_OCID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object containerDatabaseOcid_ = ""; + + /** + * + * + *
                                              +   * Required. The OCID of the CDB.
                                              +   * 
                                              + * + * string container_database_ocid = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The containerDatabaseOcid. + */ + @java.lang.Override + public java.lang.String getContainerDatabaseOcid() { + java.lang.Object ref = containerDatabaseOcid_; + 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(); + containerDatabaseOcid_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The OCID of the CDB.
                                              +   * 
                                              + * + * string container_database_ocid = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for containerDatabaseOcid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainerDatabaseOcidBytes() { + java.lang.Object ref = containerDatabaseOcid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containerDatabaseOcid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFINED_TAGS_FIELD_NUMBER = 4; + + private static final class DefinedTagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .DefinedTagValue.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + definedTags_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + internalGetDefinedTags() { + if (definedTags_ == null) { + return com.google.protobuf.MapField.emptyMapField(DefinedTagsDefaultEntryHolder.defaultEntry); + } + return definedTags_; + } + + public int getDefinedTagsCount() { + return internalGetDefinedTags().getMap().size(); + } + + /** + * + * + *
                                              +   * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +   * to a namespace.
                                              +   * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsDefinedTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDefinedTags().getMap().containsKey(key); + } + + /** Use {@link #getDefinedTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + getDefinedTags() { + return getDefinedTagsMap(); + } + + /** + * + * + *
                                              +   * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +   * to a namespace.
                                              +   * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + getDefinedTagsMap() { + return internalGetDefinedTags().getMap(); + } + + /** + * + * + *
                                              +   * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +   * to a namespace.
                                              +   * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .DefinedTagValue + getDefinedTagsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + map = internalGetDefinedTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                              +   * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +   * to a namespace.
                                              +   * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + getDefinedTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + map = internalGetDefinedTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int FREEFORM_TAGS_FIELD_NUMBER = 5; + + private static final class FreeformTagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_FreeformTagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField freeformTags_; + + private com.google.protobuf.MapField + internalGetFreeformTags() { + if (freeformTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FreeformTagsDefaultEntryHolder.defaultEntry); + } + return freeformTags_; + } + + public int getFreeformTagsCount() { + return internalGetFreeformTags().getMap().size(); + } + + /** + * + * + *
                                              +   * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +   * pair with no predefined name, type, or namespace.
                                              +   * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsFreeformTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFreeformTags().getMap().containsKey(key); + } + + /** Use {@link #getFreeformTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFreeformTags() { + return getFreeformTagsMap(); + } + + /** + * + * + *
                                              +   * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +   * pair with no predefined name, type, or namespace.
                                              +   * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getFreeformTagsMap() { + return internalGetFreeformTags().getMap(); + } + + /** + * + * + *
                                              +   * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +   * pair with no predefined name, type, or namespace.
                                              +   * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFreeformTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFreeformTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                              +   * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +   * pair with no predefined name, type, or namespace.
                                              +   * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getFreeformTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFreeformTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OCID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object ocid_ = ""; + + /** + * + * + *
                                              +   * Output only. The OCID of the pluggable database.
                                              +   * 
                                              + * + * string ocid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + @java.lang.Override + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + 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(); + ocid_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. The OCID of the pluggable database.
                                              +   * 
                                              + * + * string ocid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_RESTRICTED_FIELD_NUMBER = 7; + private boolean isRestricted_ = false; + + /** + * + * + *
                                              +   * Optional. The restricted mode of the pluggable database. If a pluggable
                                              +   * database is opened in restricted mode, the user needs both create a session
                                              +   * and have restricted session privileges to connect to it.
                                              +   * 
                                              + * + * bool is_restricted = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isRestricted. + */ + @java.lang.Override + public boolean getIsRestricted() { + return isRestricted_; + } + + public static final int LIFECYCLE_DETAILS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object lifecycleDetails_ = ""; + + /** + * + * + *
                                              +   * Output only. Additional information about the current lifecycle state.
                                              +   * 
                                              + * + * string lifecycle_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + @java.lang.Override + public java.lang.String getLifecycleDetails() { + java.lang.Object ref = lifecycleDetails_; + 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(); + lifecycleDetails_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Output only. Additional information about the current lifecycle state.
                                              +   * 
                                              + * + * string lifecycle_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLifecycleDetailsBytes() { + java.lang.Object ref = lifecycleDetails_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lifecycleDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIFECYCLE_STATE_FIELD_NUMBER = 9; + private int lifecycleState_ = 0; + + /** + * + * + *
                                              +   * Output only. The current state of the pluggable database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState lifecycle_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + + /** + * + * + *
                                              +   * Output only. The current state of the pluggable database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState lifecycle_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .PluggableDatabaseLifecycleState + getLifecycleState() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState + result = + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .PluggableDatabaseLifecycleState.forNumber(lifecycleState_); + return result == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .PluggableDatabaseLifecycleState.UNRECOGNIZED + : result; + } + + public static final int PDB_NAME_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object pdbName_ = ""; + + /** + * + * + *
                                              +   * Required. The database name.
                                              +   * 
                                              + * + * string pdb_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pdbName. + */ + @java.lang.Override + public java.lang.String getPdbName() { + java.lang.Object ref = pdbName_; + 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(); + pdbName_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The database name.
                                              +   * 
                                              + * + * string pdb_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pdbName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPdbNameBytes() { + java.lang.Object ref = pdbName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pdbName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PDB_NODE_LEVEL_DETAILS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List + pdbNodeLevelDetails_; + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPdbNodeLevelDetailsList() { + return pdbNodeLevelDetails_; + } + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder> + getPdbNodeLevelDetailsOrBuilderList() { + return pdbNodeLevelDetails_; + } + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPdbNodeLevelDetailsCount() { + return pdbNodeLevelDetails_.size(); + } + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + getPdbNodeLevelDetails(int index) { + return pdbNodeLevelDetails_.get(index); + } + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder + getPdbNodeLevelDetailsOrBuilder(int index) { + return pdbNodeLevelDetails_.get(index); + } + + public static final int DATABASE_MANAGEMENT_CONFIG_FIELD_NUMBER = 13; + private com.google.cloud.oracledatabase.v1.DatabaseManagementConfig databaseManagementConfig_; + + /** + * + * + *
                                              +   * Output only. The configuration of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the databaseManagementConfig field is set. + */ + @java.lang.Override + public boolean hasDatabaseManagementConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Output only. The configuration of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementConfig. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig getDatabaseManagementConfig() { + return databaseManagementConfig_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance() + : databaseManagementConfig_; + } + + /** + * + * + *
                                              +   * Output only. The configuration of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder + getDatabaseManagementConfigOrBuilder() { + return databaseManagementConfig_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance() + : databaseManagementConfig_; + } + + public static final int OPERATIONS_INSIGHTS_STATE_FIELD_NUMBER = 14; + private int operationsInsightsState_ = 0; + + /** + * + * + *
                                              +   * Output only. The status of Operations Insights for this Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState operations_insights_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for operationsInsightsState. + */ + @java.lang.Override + public int getOperationsInsightsStateValue() { + return operationsInsightsState_; + } + + /** + * + * + *
                                              +   * Output only. The status of Operations Insights for this Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState operations_insights_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The operationsInsightsState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + getOperationsInsightsState() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState result = + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + .forNumber(operationsInsightsState_); + return result == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + .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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compartmentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, compartmentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getConnectionStrings()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerDatabaseOcid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, containerDatabaseOcid_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDefinedTags(), DefinedTagsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFreeformTags(), FreeformTagsDefaultEntryHolder.defaultEntry, 5); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ocid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, ocid_); + } + if (isRestricted_ != false) { + output.writeBool(7, isRestricted_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, lifecycleDetails_); + } + if (lifecycleState_ + != com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .PluggableDatabaseLifecycleState.PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, lifecycleState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pdbName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pdbName_); + } + for (int i = 0; i < pdbNodeLevelDetails_.size(); i++) { + output.writeMessage(11, pdbNodeLevelDetails_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(13, getDatabaseManagementConfig()); + } + if (operationsInsightsState_ + != com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + .OPERATIONS_INSIGHTS_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, operationsInsightsState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compartmentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, compartmentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionStrings()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerDatabaseOcid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, containerDatabaseOcid_); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + entry : internalGetDefinedTags().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + definedTags__ = + DefinedTagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, definedTags__); + } + for (java.util.Map.Entry entry : + internalGetFreeformTags().getMap().entrySet()) { + com.google.protobuf.MapEntry freeformTags__ = + FreeformTagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, freeformTags__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ocid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, ocid_); + } + if (isRestricted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, isRestricted_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lifecycleDetails_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, lifecycleDetails_); + } + if (lifecycleState_ + != com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .PluggableDatabaseLifecycleState.PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, lifecycleState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pdbName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pdbName_); + } + for (int i = 0; i < pdbNodeLevelDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, pdbNodeLevelDetails_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, getDatabaseManagementConfig()); + } + if (operationsInsightsState_ + != com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + .OPERATIONS_INSIGHTS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, operationsInsightsState_); + } + 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.oracledatabase.v1.PluggableDatabaseProperties)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties other = + (com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties) obj; + + if (!getCompartmentId().equals(other.getCompartmentId())) return false; + if (hasConnectionStrings() != other.hasConnectionStrings()) return false; + if (hasConnectionStrings()) { + if (!getConnectionStrings().equals(other.getConnectionStrings())) return false; + } + if (!getContainerDatabaseOcid().equals(other.getContainerDatabaseOcid())) return false; + if (!internalGetDefinedTags().equals(other.internalGetDefinedTags())) return false; + if (!internalGetFreeformTags().equals(other.internalGetFreeformTags())) return false; + if (!getOcid().equals(other.getOcid())) return false; + if (getIsRestricted() != other.getIsRestricted()) return false; + if (!getLifecycleDetails().equals(other.getLifecycleDetails())) return false; + if (lifecycleState_ != other.lifecycleState_) return false; + if (!getPdbName().equals(other.getPdbName())) return false; + if (!getPdbNodeLevelDetailsList().equals(other.getPdbNodeLevelDetailsList())) return false; + if (hasDatabaseManagementConfig() != other.hasDatabaseManagementConfig()) return false; + if (hasDatabaseManagementConfig()) { + if (!getDatabaseManagementConfig().equals(other.getDatabaseManagementConfig())) return false; + } + if (operationsInsightsState_ != other.operationsInsightsState_) 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) + COMPARTMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCompartmentId().hashCode(); + if (hasConnectionStrings()) { + hash = (37 * hash) + CONNECTION_STRINGS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionStrings().hashCode(); + } + hash = (37 * hash) + CONTAINER_DATABASE_OCID_FIELD_NUMBER; + hash = (53 * hash) + getContainerDatabaseOcid().hashCode(); + if (!internalGetDefinedTags().getMap().isEmpty()) { + hash = (37 * hash) + DEFINED_TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDefinedTags().hashCode(); + } + if (!internalGetFreeformTags().getMap().isEmpty()) { + hash = (37 * hash) + FREEFORM_TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFreeformTags().hashCode(); + } + hash = (37 * hash) + OCID_FIELD_NUMBER; + hash = (53 * hash) + getOcid().hashCode(); + hash = (37 * hash) + IS_RESTRICTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRestricted()); + hash = (37 * hash) + LIFECYCLE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getLifecycleDetails().hashCode(); + hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; + hash = (53 * hash) + lifecycleState_; + hash = (37 * hash) + PDB_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPdbName().hashCode(); + if (getPdbNodeLevelDetailsCount() > 0) { + hash = (37 * hash) + PDB_NODE_LEVEL_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getPdbNodeLevelDetailsList().hashCode(); + } + if (hasDatabaseManagementConfig()) { + hash = (37 * hash) + DATABASE_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseManagementConfig().hashCode(); + } + hash = (37 * hash) + OPERATIONS_INSIGHTS_STATE_FIELD_NUMBER; + hash = (53 * hash) + operationsInsightsState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties 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.oracledatabase.v1.PluggableDatabaseProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties 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.oracledatabase.v1.PluggableDatabaseProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The properties of a PluggableDatabase.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.PluggableDatabaseProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.PluggableDatabaseProperties) + com.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetDefinedTags(); + case 5: + return internalGetFreeformTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableDefinedTags(); + case 5: + return internalGetMutableFreeformTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.class, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConnectionStringsFieldBuilder(); + getPdbNodeLevelDetailsFieldBuilder(); + getDatabaseManagementConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + compartmentId_ = ""; + connectionStrings_ = null; + if (connectionStringsBuilder_ != null) { + connectionStringsBuilder_.dispose(); + connectionStringsBuilder_ = null; + } + containerDatabaseOcid_ = ""; + internalGetMutableDefinedTags().clear(); + internalGetMutableFreeformTags().clear(); + ocid_ = ""; + isRestricted_ = false; + lifecycleDetails_ = ""; + lifecycleState_ = 0; + pdbName_ = ""; + if (pdbNodeLevelDetailsBuilder_ == null) { + pdbNodeLevelDetails_ = java.util.Collections.emptyList(); + } else { + pdbNodeLevelDetails_ = null; + pdbNodeLevelDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + databaseManagementConfig_ = null; + if (databaseManagementConfigBuilder_ != null) { + databaseManagementConfigBuilder_.dispose(); + databaseManagementConfigBuilder_ = null; + } + operationsInsightsState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties build() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties buildPartial() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties result = + new com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties result) { + if (pdbNodeLevelDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + pdbNodeLevelDetails_ = java.util.Collections.unmodifiableList(pdbNodeLevelDetails_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.pdbNodeLevelDetails_ = pdbNodeLevelDetails_; + } else { + result.pdbNodeLevelDetails_ = pdbNodeLevelDetailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.compartmentId_ = compartmentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connectionStrings_ = + connectionStringsBuilder_ == null + ? connectionStrings_ + : connectionStringsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.containerDatabaseOcid_ = containerDatabaseOcid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.definedTags_ = + internalGetDefinedTags().build(DefinedTagsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.freeformTags_ = internalGetFreeformTags(); + result.freeformTags_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ocid_ = ocid_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.isRestricted_ = isRestricted_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.lifecycleDetails_ = lifecycleDetails_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.lifecycleState_ = lifecycleState_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.pdbName_ = pdbName_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.databaseManagementConfig_ = + databaseManagementConfigBuilder_ == null + ? databaseManagementConfig_ + : databaseManagementConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.operationsInsightsState_ = operationsInsightsState_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties) { + return mergeFrom((com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties other) { + if (other + == com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.getDefaultInstance()) + return this; + if (!other.getCompartmentId().isEmpty()) { + compartmentId_ = other.compartmentId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasConnectionStrings()) { + mergeConnectionStrings(other.getConnectionStrings()); + } + if (!other.getContainerDatabaseOcid().isEmpty()) { + containerDatabaseOcid_ = other.containerDatabaseOcid_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableDefinedTags().mergeFrom(other.internalGetDefinedTags()); + bitField0_ |= 0x00000008; + internalGetMutableFreeformTags().mergeFrom(other.internalGetFreeformTags()); + bitField0_ |= 0x00000010; + if (!other.getOcid().isEmpty()) { + ocid_ = other.ocid_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getIsRestricted() != false) { + setIsRestricted(other.getIsRestricted()); + } + if (!other.getLifecycleDetails().isEmpty()) { + lifecycleDetails_ = other.lifecycleDetails_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.lifecycleState_ != 0) { + setLifecycleStateValue(other.getLifecycleStateValue()); + } + if (!other.getPdbName().isEmpty()) { + pdbName_ = other.pdbName_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (pdbNodeLevelDetailsBuilder_ == null) { + if (!other.pdbNodeLevelDetails_.isEmpty()) { + if (pdbNodeLevelDetails_.isEmpty()) { + pdbNodeLevelDetails_ = other.pdbNodeLevelDetails_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensurePdbNodeLevelDetailsIsMutable(); + pdbNodeLevelDetails_.addAll(other.pdbNodeLevelDetails_); + } + onChanged(); + } + } else { + if (!other.pdbNodeLevelDetails_.isEmpty()) { + if (pdbNodeLevelDetailsBuilder_.isEmpty()) { + pdbNodeLevelDetailsBuilder_.dispose(); + pdbNodeLevelDetailsBuilder_ = null; + pdbNodeLevelDetails_ = other.pdbNodeLevelDetails_; + bitField0_ = (bitField0_ & ~0x00000400); + pdbNodeLevelDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPdbNodeLevelDetailsFieldBuilder() + : null; + } else { + pdbNodeLevelDetailsBuilder_.addAllMessages(other.pdbNodeLevelDetails_); + } + } + } + if (other.hasDatabaseManagementConfig()) { + mergeDatabaseManagementConfig(other.getDatabaseManagementConfig()); + } + if (other.operationsInsightsState_ != 0) { + setOperationsInsightsStateValue(other.getOperationsInsightsStateValue()); + } + 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: + { + compartmentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getConnectionStringsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + containerDatabaseOcid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .DefinedTagValue> + definedTags__ = + input.readMessage( + DefinedTagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDefinedTags() + .ensureBuilderMap() + .put(definedTags__.getKey(), definedTags__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry freeformTags__ = + input.readMessage( + FreeformTagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFreeformTags() + .getMutableMap() + .put(freeformTags__.getKey(), freeformTags__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + ocid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + isRestricted_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + lifecycleDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { + lifecycleState_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + pdbName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails m = + input.readMessage( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .parser(), + extensionRegistry); + if (pdbNodeLevelDetailsBuilder_ == null) { + ensurePdbNodeLevelDetailsIsMutable(); + pdbNodeLevelDetails_.add(m); + } else { + pdbNodeLevelDetailsBuilder_.addMessage(m); + } + break; + } // case 90 + case 106: + { + input.readMessage( + getDatabaseManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 112: + { + operationsInsightsState_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 112 + 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 compartmentId_ = ""; + + /** + * + * + *
                                              +     * Required. The OCID of the compartment.
                                              +     * 
                                              + * + * string compartment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The compartmentId. + */ + public java.lang.String getCompartmentId() { + java.lang.Object ref = compartmentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compartmentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The OCID of the compartment.
                                              +     * 
                                              + * + * string compartment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for compartmentId. + */ + public com.google.protobuf.ByteString getCompartmentIdBytes() { + java.lang.Object ref = compartmentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compartmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The OCID of the compartment.
                                              +     * 
                                              + * + * string compartment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The compartmentId to set. + * @return This builder for chaining. + */ + public Builder setCompartmentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + compartmentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The OCID of the compartment.
                                              +     * 
                                              + * + * string compartment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCompartmentId() { + compartmentId_ = getDefaultInstance().getCompartmentId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The OCID of the compartment.
                                              +     * 
                                              + * + * string compartment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for compartmentId to set. + * @return This builder for chaining. + */ + public Builder setCompartmentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + compartmentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + connectionStrings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings, + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStringsOrBuilder> + connectionStringsBuilder_; + + /** + * + * + *
                                              +     * Optional. The Connection strings used to connect to the Oracle Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectionStrings field is set. + */ + public boolean hasConnectionStrings() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Optional. The Connection strings used to connect to the Oracle Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectionStrings. + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + getConnectionStrings() { + if (connectionStringsBuilder_ == null) { + return connectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + .getDefaultInstance() + : connectionStrings_; + } else { + return connectionStringsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Optional. The Connection strings used to connect to the Oracle Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectionStrings( + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings value) { + if (connectionStringsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionStrings_ = value; + } else { + connectionStringsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The Connection strings used to connect to the Oracle Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectionStrings( + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.Builder + builderForValue) { + if (connectionStringsBuilder_ == null) { + connectionStrings_ = builderForValue.build(); + } else { + connectionStringsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The Connection strings used to connect to the Oracle Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConnectionStrings( + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings value) { + if (connectionStringsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && connectionStrings_ != null + && connectionStrings_ + != com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + .getDefaultInstance()) { + getConnectionStringsBuilder().mergeFrom(value); + } else { + connectionStrings_ = value; + } + } else { + connectionStringsBuilder_.mergeFrom(value); + } + if (connectionStrings_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. The Connection strings used to connect to the Oracle Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConnectionStrings() { + bitField0_ = (bitField0_ & ~0x00000002); + connectionStrings_ = null; + if (connectionStringsBuilder_ != null) { + connectionStringsBuilder_.dispose(); + connectionStringsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The Connection strings used to connect to the Oracle Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.Builder + getConnectionStringsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConnectionStringsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. The Connection strings used to connect to the Oracle Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStringsOrBuilder + getConnectionStringsOrBuilder() { + if (connectionStringsBuilder_ != null) { + return connectionStringsBuilder_.getMessageOrBuilder(); + } else { + return connectionStrings_ == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings + .getDefaultInstance() + : connectionStrings_; + } + } + + /** + * + * + *
                                              +     * Optional. The Connection strings used to connect to the Oracle Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings, + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStringsOrBuilder> + getConnectionStringsFieldBuilder() { + if (connectionStringsBuilder_ == null) { + connectionStringsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings, + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStringsOrBuilder>( + getConnectionStrings(), getParentForChildren(), isClean()); + connectionStrings_ = null; + } + return connectionStringsBuilder_; + } + + private java.lang.Object containerDatabaseOcid_ = ""; + + /** + * + * + *
                                              +     * Required. The OCID of the CDB.
                                              +     * 
                                              + * + * string container_database_ocid = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The containerDatabaseOcid. + */ + public java.lang.String getContainerDatabaseOcid() { + java.lang.Object ref = containerDatabaseOcid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerDatabaseOcid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The OCID of the CDB.
                                              +     * 
                                              + * + * string container_database_ocid = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for containerDatabaseOcid. + */ + public com.google.protobuf.ByteString getContainerDatabaseOcidBytes() { + java.lang.Object ref = containerDatabaseOcid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containerDatabaseOcid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The OCID of the CDB.
                                              +     * 
                                              + * + * string container_database_ocid = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The containerDatabaseOcid to set. + * @return This builder for chaining. + */ + public Builder setContainerDatabaseOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + containerDatabaseOcid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The OCID of the CDB.
                                              +     * 
                                              + * + * string container_database_ocid = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearContainerDatabaseOcid() { + containerDatabaseOcid_ = getDefaultInstance().getContainerDatabaseOcid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The OCID of the CDB.
                                              +     * 
                                              + * + * string container_database_ocid = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for containerDatabaseOcid to set. + * @return This builder for chaining. + */ + public Builder setContainerDatabaseOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containerDatabaseOcid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private static final class DefinedTagsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValueOrBuilder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> { + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue build( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValueOrBuilder + val) { + if (val + instanceof + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) { + return (com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) + val; + } + return ((com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + .Builder) + val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + defaultEntry() { + return DefinedTagsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final DefinedTagsConverter definedTagsConverter = new DefinedTagsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValueOrBuilder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue.Builder> + definedTags_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValueOrBuilder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue.Builder> + internalGetDefinedTags() { + if (definedTags_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(definedTagsConverter); + } + return definedTags_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValueOrBuilder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue.Builder> + internalGetMutableDefinedTags() { + if (definedTags_ == null) { + definedTags_ = new com.google.protobuf.MapFieldBuilder<>(definedTagsConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return definedTags_; + } + + public int getDefinedTagsCount() { + return internalGetDefinedTags().ensureBuilderMap().size(); + } + + /** + * + * + *
                                              +     * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +     * to a namespace.
                                              +     * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsDefinedTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDefinedTags().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getDefinedTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + getDefinedTags() { + return getDefinedTagsMap(); + } + + /** + * + * + *
                                              +     * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +     * to a namespace.
                                              +     * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + getDefinedTagsMap() { + return internalGetDefinedTags().getImmutableMap(); + } + + /** + * + * + *
                                              +     * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +     * to a namespace.
                                              +     * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .DefinedTagValue + getDefinedTagsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .DefinedTagValueOrBuilder> + map = internalGetMutableDefinedTags().ensureBuilderMap(); + return map.containsKey(key) ? definedTagsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
                                              +     * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +     * to a namespace.
                                              +     * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + getDefinedTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .DefinedTagValueOrBuilder> + map = internalGetMutableDefinedTags().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return definedTagsConverter.build(map.get(key)); + } + + public Builder clearDefinedTags() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableDefinedTags().clear(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +     * to a namespace.
                                              +     * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDefinedTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDefinedTags().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + getMutableDefinedTags() { + bitField0_ |= 0x00000008; + return internalGetMutableDefinedTags().ensureMessageMap(); + } + + /** + * + * + *
                                              +     * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +     * to a namespace.
                                              +     * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putDefinedTags( + java.lang.String key, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDefinedTags().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                              +     * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +     * to a namespace.
                                              +     * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllDefinedTags( + java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableDefinedTags().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                              +     * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +     * to a namespace.
                                              +     * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue.Builder + putDefinedTagsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .DefinedTagValueOrBuilder> + builderMap = internalGetMutableDefinedTags().ensureBuilderMap(); + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValueOrBuilder + entry = builderMap.get(key); + if (entry == null) { + entry = + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + .newBuilder(); + builderMap.put(key, entry); + } + if (entry + instanceof + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) { + entry = + ((com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + .Builder) + entry; + } + + private com.google.protobuf.MapField freeformTags_; + + private com.google.protobuf.MapField + internalGetFreeformTags() { + if (freeformTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FreeformTagsDefaultEntryHolder.defaultEntry); + } + return freeformTags_; + } + + private com.google.protobuf.MapField + internalGetMutableFreeformTags() { + if (freeformTags_ == null) { + freeformTags_ = + com.google.protobuf.MapField.newMapField(FreeformTagsDefaultEntryHolder.defaultEntry); + } + if (!freeformTags_.isMutable()) { + freeformTags_ = freeformTags_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return freeformTags_; + } + + public int getFreeformTagsCount() { + return internalGetFreeformTags().getMap().size(); + } + + /** + * + * + *
                                              +     * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +     * pair with no predefined name, type, or namespace.
                                              +     * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsFreeformTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFreeformTags().getMap().containsKey(key); + } + + /** Use {@link #getFreeformTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFreeformTags() { + return getFreeformTagsMap(); + } + + /** + * + * + *
                                              +     * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +     * pair with no predefined name, type, or namespace.
                                              +     * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getFreeformTagsMap() { + return internalGetFreeformTags().getMap(); + } + + /** + * + * + *
                                              +     * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +     * pair with no predefined name, type, or namespace.
                                              +     * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFreeformTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFreeformTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                              +     * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +     * pair with no predefined name, type, or namespace.
                                              +     * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getFreeformTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFreeformTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFreeformTags() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableFreeformTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                              +     * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +     * pair with no predefined name, type, or namespace.
                                              +     * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFreeformTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFreeformTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableFreeformTags() { + bitField0_ |= 0x00000010; + return internalGetMutableFreeformTags().getMutableMap(); + } + + /** + * + * + *
                                              +     * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +     * pair with no predefined name, type, or namespace.
                                              +     * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putFreeformTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFreeformTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
                                              +     * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +     * pair with no predefined name, type, or namespace.
                                              +     * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllFreeformTags(java.util.Map values) { + internalGetMutableFreeformTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object ocid_ = ""; + + /** + * + * + *
                                              +     * Output only. The OCID of the pluggable database.
                                              +     * 
                                              + * + * string ocid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + public java.lang.String getOcid() { + java.lang.Object ref = ocid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ocid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The OCID of the pluggable database.
                                              +     * 
                                              + * + * string ocid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + public com.google.protobuf.ByteString getOcidBytes() { + java.lang.Object ref = ocid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ocid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. The OCID of the pluggable database.
                                              +     * 
                                              + * + * string ocid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ocid to set. + * @return This builder for chaining. + */ + public Builder setOcid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ocid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The OCID of the pluggable database.
                                              +     * 
                                              + * + * string ocid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOcid() { + ocid_ = getDefaultInstance().getOcid(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The OCID of the pluggable database.
                                              +     * 
                                              + * + * string ocid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ocid to set. + * @return This builder for chaining. + */ + public Builder setOcidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ocid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean isRestricted_; + + /** + * + * + *
                                              +     * Optional. The restricted mode of the pluggable database. If a pluggable
                                              +     * database is opened in restricted mode, the user needs both create a session
                                              +     * and have restricted session privileges to connect to it.
                                              +     * 
                                              + * + * bool is_restricted = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isRestricted. + */ + @java.lang.Override + public boolean getIsRestricted() { + return isRestricted_; + } + + /** + * + * + *
                                              +     * Optional. The restricted mode of the pluggable database. If a pluggable
                                              +     * database is opened in restricted mode, the user needs both create a session
                                              +     * and have restricted session privileges to connect to it.
                                              +     * 
                                              + * + * bool is_restricted = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isRestricted to set. + * @return This builder for chaining. + */ + public Builder setIsRestricted(boolean value) { + + isRestricted_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The restricted mode of the pluggable database. If a pluggable
                                              +     * database is opened in restricted mode, the user needs both create a session
                                              +     * and have restricted session privileges to connect to it.
                                              +     * 
                                              + * + * bool is_restricted = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsRestricted() { + bitField0_ = (bitField0_ & ~0x00000040); + isRestricted_ = false; + onChanged(); + return this; + } + + private java.lang.Object lifecycleDetails_ = ""; + + /** + * + * + *
                                              +     * Output only. Additional information about the current lifecycle state.
                                              +     * 
                                              + * + * string lifecycle_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + public java.lang.String getLifecycleDetails() { + java.lang.Object ref = lifecycleDetails_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lifecycleDetails_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Output only. Additional information about the current lifecycle state.
                                              +     * 
                                              + * + * string lifecycle_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + public com.google.protobuf.ByteString getLifecycleDetailsBytes() { + java.lang.Object ref = lifecycleDetails_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lifecycleDetails_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Output only. Additional information about the current lifecycle state.
                                              +     * 
                                              + * + * string lifecycle_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The lifecycleDetails to set. + * @return This builder for chaining. + */ + public Builder setLifecycleDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + lifecycleDetails_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. Additional information about the current lifecycle state.
                                              +     * 
                                              + * + * string lifecycle_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLifecycleDetails() { + lifecycleDetails_ = getDefaultInstance().getLifecycleDetails(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. Additional information about the current lifecycle state.
                                              +     * 
                                              + * + * string lifecycle_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for lifecycleDetails to set. + * @return This builder for chaining. + */ + public Builder setLifecycleDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lifecycleDetails_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int lifecycleState_ = 0; + + /** + * + * + *
                                              +     * Output only. The current state of the pluggable database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState lifecycle_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + + /** + * + * + *
                                              +     * Output only. The current state of the pluggable database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState lifecycle_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleStateValue(int value) { + lifecycleState_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The current state of the pluggable database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState lifecycle_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .PluggableDatabaseLifecycleState + getLifecycleState() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState + result = + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .PluggableDatabaseLifecycleState.forNumber(lifecycleState_); + return result == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .PluggableDatabaseLifecycleState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The current state of the pluggable database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState lifecycle_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleState( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + .PluggableDatabaseLifecycleState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + lifecycleState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The current state of the pluggable database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState lifecycle_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLifecycleState() { + bitField0_ = (bitField0_ & ~0x00000100); + lifecycleState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pdbName_ = ""; + + /** + * + * + *
                                              +     * Required. The database name.
                                              +     * 
                                              + * + * string pdb_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pdbName. + */ + public java.lang.String getPdbName() { + java.lang.Object ref = pdbName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pdbName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The database name.
                                              +     * 
                                              + * + * string pdb_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pdbName. + */ + public com.google.protobuf.ByteString getPdbNameBytes() { + java.lang.Object ref = pdbName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pdbName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The database name.
                                              +     * 
                                              + * + * string pdb_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pdbName to set. + * @return This builder for chaining. + */ + public Builder setPdbName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pdbName_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The database name.
                                              +     * 
                                              + * + * string pdb_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPdbName() { + pdbName_ = getDefaultInstance().getPdbName(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The database name.
                                              +     * 
                                              + * + * string pdb_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pdbName to set. + * @return This builder for chaining. + */ + public Builder setPdbNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pdbName_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.util.List + pdbNodeLevelDetails_ = java.util.Collections.emptyList(); + + private void ensurePdbNodeLevelDetailsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + pdbNodeLevelDetails_ = + new java.util.ArrayList< + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails>( + pdbNodeLevelDetails_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder> + pdbNodeLevelDetailsBuilder_; + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPdbNodeLevelDetailsList() { + if (pdbNodeLevelDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pdbNodeLevelDetails_); + } else { + return pdbNodeLevelDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPdbNodeLevelDetailsCount() { + if (pdbNodeLevelDetailsBuilder_ == null) { + return pdbNodeLevelDetails_.size(); + } else { + return pdbNodeLevelDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + getPdbNodeLevelDetails(int index) { + if (pdbNodeLevelDetailsBuilder_ == null) { + return pdbNodeLevelDetails_.get(index); + } else { + return pdbNodeLevelDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPdbNodeLevelDetails( + int index, com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails value) { + if (pdbNodeLevelDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePdbNodeLevelDetailsIsMutable(); + pdbNodeLevelDetails_.set(index, value); + onChanged(); + } else { + pdbNodeLevelDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPdbNodeLevelDetails( + int index, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder + builderForValue) { + if (pdbNodeLevelDetailsBuilder_ == null) { + ensurePdbNodeLevelDetailsIsMutable(); + pdbNodeLevelDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + pdbNodeLevelDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPdbNodeLevelDetails( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails value) { + if (pdbNodeLevelDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePdbNodeLevelDetailsIsMutable(); + pdbNodeLevelDetails_.add(value); + onChanged(); + } else { + pdbNodeLevelDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPdbNodeLevelDetails( + int index, com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails value) { + if (pdbNodeLevelDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePdbNodeLevelDetailsIsMutable(); + pdbNodeLevelDetails_.add(index, value); + onChanged(); + } else { + pdbNodeLevelDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPdbNodeLevelDetails( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder + builderForValue) { + if (pdbNodeLevelDetailsBuilder_ == null) { + ensurePdbNodeLevelDetailsIsMutable(); + pdbNodeLevelDetails_.add(builderForValue.build()); + onChanged(); + } else { + pdbNodeLevelDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPdbNodeLevelDetails( + int index, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder + builderForValue) { + if (pdbNodeLevelDetailsBuilder_ == null) { + ensurePdbNodeLevelDetailsIsMutable(); + pdbNodeLevelDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + pdbNodeLevelDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPdbNodeLevelDetails( + java.lang.Iterable< + ? extends com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails> + values) { + if (pdbNodeLevelDetailsBuilder_ == null) { + ensurePdbNodeLevelDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pdbNodeLevelDetails_); + onChanged(); + } else { + pdbNodeLevelDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPdbNodeLevelDetails() { + if (pdbNodeLevelDetailsBuilder_ == null) { + pdbNodeLevelDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + pdbNodeLevelDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePdbNodeLevelDetails(int index) { + if (pdbNodeLevelDetailsBuilder_ == null) { + ensurePdbNodeLevelDetailsIsMutable(); + pdbNodeLevelDetails_.remove(index); + onChanged(); + } else { + pdbNodeLevelDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder + getPdbNodeLevelDetailsBuilder(int index) { + return getPdbNodeLevelDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder + getPdbNodeLevelDetailsOrBuilder(int index) { + if (pdbNodeLevelDetailsBuilder_ == null) { + return pdbNodeLevelDetails_.get(index); + } else { + return pdbNodeLevelDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder> + getPdbNodeLevelDetailsOrBuilderList() { + if (pdbNodeLevelDetailsBuilder_ != null) { + return pdbNodeLevelDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pdbNodeLevelDetails_); + } + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder + addPdbNodeLevelDetailsBuilder() { + return getPdbNodeLevelDetailsFieldBuilder() + .addBuilder( + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder + addPdbNodeLevelDetailsBuilder(int index) { + return getPdbNodeLevelDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Optional. Pluggable Database Node Level Details
                                              +     * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder> + getPdbNodeLevelDetailsBuilderList() { + return getPdbNodeLevelDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder> + getPdbNodeLevelDetailsFieldBuilder() { + if (pdbNodeLevelDetailsBuilder_ == null) { + pdbNodeLevelDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.Builder, + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder>( + pdbNodeLevelDetails_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + pdbNodeLevelDetails_ = null; + } + return pdbNodeLevelDetailsBuilder_; + } + + private com.google.cloud.oracledatabase.v1.DatabaseManagementConfig databaseManagementConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder> + databaseManagementConfigBuilder_; + + /** + * + * + *
                                              +     * Output only. The configuration of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the databaseManagementConfig field is set. + */ + public boolean hasDatabaseManagementConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
                                              +     * Output only. The configuration of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementConfig. + */ + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig + getDatabaseManagementConfig() { + if (databaseManagementConfigBuilder_ == null) { + return databaseManagementConfig_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance() + : databaseManagementConfig_; + } else { + return databaseManagementConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Output only. The configuration of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDatabaseManagementConfig( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig value) { + if (databaseManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + databaseManagementConfig_ = value; + } else { + databaseManagementConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The configuration of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDatabaseManagementConfig( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder builderForValue) { + if (databaseManagementConfigBuilder_ == null) { + databaseManagementConfig_ = builderForValue.build(); + } else { + databaseManagementConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The configuration of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDatabaseManagementConfig( + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig value) { + if (databaseManagementConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && databaseManagementConfig_ != null + && databaseManagementConfig_ + != com.google.cloud.oracledatabase.v1.DatabaseManagementConfig + .getDefaultInstance()) { + getDatabaseManagementConfigBuilder().mergeFrom(value); + } else { + databaseManagementConfig_ = value; + } + } else { + databaseManagementConfigBuilder_.mergeFrom(value); + } + if (databaseManagementConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Output only. The configuration of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDatabaseManagementConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + databaseManagementConfig_ = null; + if (databaseManagementConfigBuilder_ != null) { + databaseManagementConfigBuilder_.dispose(); + databaseManagementConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The configuration of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder + getDatabaseManagementConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getDatabaseManagementConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Output only. The configuration of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder + getDatabaseManagementConfigOrBuilder() { + if (databaseManagementConfigBuilder_ != null) { + return databaseManagementConfigBuilder_.getMessageOrBuilder(); + } else { + return databaseManagementConfig_ == null + ? com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.getDefaultInstance() + : databaseManagementConfig_; + } + } + + /** + * + * + *
                                              +     * Output only. The configuration of the Database Management service.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder> + getDatabaseManagementConfigFieldBuilder() { + if (databaseManagementConfigBuilder_ == null) { + databaseManagementConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig.Builder, + com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder>( + getDatabaseManagementConfig(), getParentForChildren(), isClean()); + databaseManagementConfig_ = null; + } + return databaseManagementConfigBuilder_; + } + + private int operationsInsightsState_ = 0; + + /** + * + * + *
                                              +     * Output only. The status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState operations_insights_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for operationsInsightsState. + */ + @java.lang.Override + public int getOperationsInsightsStateValue() { + return operationsInsightsState_; + } + + /** + * + * + *
                                              +     * Output only. The status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState operations_insights_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for operationsInsightsState to set. + * @return This builder for chaining. + */ + public Builder setOperationsInsightsStateValue(int value) { + operationsInsightsState_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState operations_insights_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The operationsInsightsState. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + getOperationsInsightsState() { + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + result = + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + .forNumber(operationsInsightsState_); + return result == null + ? com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                              +     * Output only. The status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState operations_insights_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The operationsInsightsState to set. + * @return This builder for chaining. + */ + public Builder setOperationsInsightsState( + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + operationsInsightsState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The status of Operations Insights for this Database.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState operations_insights_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOperationsInsightsState() { + bitField0_ = (bitField0_ & ~0x00001000); + operationsInsightsState_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.PluggableDatabaseProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.PluggableDatabaseProperties) + private static final com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties(); + } + + public static com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PluggableDatabaseProperties 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.oracledatabase.v1.PluggableDatabaseProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabasePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabasePropertiesOrBuilder.java new file mode 100644 index 000000000000..6a8e14ad2c0a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabasePropertiesOrBuilder.java @@ -0,0 +1,551 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface PluggableDatabasePropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.PluggableDatabaseProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The OCID of the compartment.
                                              +   * 
                                              + * + * string compartment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The compartmentId. + */ + java.lang.String getCompartmentId(); + + /** + * + * + *
                                              +   * Required. The OCID of the compartment.
                                              +   * 
                                              + * + * string compartment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for compartmentId. + */ + com.google.protobuf.ByteString getCompartmentIdBytes(); + + /** + * + * + *
                                              +   * Optional. The Connection strings used to connect to the Oracle Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectionStrings field is set. + */ + boolean hasConnectionStrings(); + + /** + * + * + *
                                              +   * Optional. The Connection strings used to connect to the Oracle Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectionStrings. + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings getConnectionStrings(); + + /** + * + * + *
                                              +   * Optional. The Connection strings used to connect to the Oracle Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings connection_strings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStringsOrBuilder + getConnectionStringsOrBuilder(); + + /** + * + * + *
                                              +   * Required. The OCID of the CDB.
                                              +   * 
                                              + * + * string container_database_ocid = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The containerDatabaseOcid. + */ + java.lang.String getContainerDatabaseOcid(); + + /** + * + * + *
                                              +   * Required. The OCID of the CDB.
                                              +   * 
                                              + * + * string container_database_ocid = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for containerDatabaseOcid. + */ + com.google.protobuf.ByteString getContainerDatabaseOcidBytes(); + + /** + * + * + *
                                              +   * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +   * to a namespace.
                                              +   * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDefinedTagsCount(); + + /** + * + * + *
                                              +   * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +   * to a namespace.
                                              +   * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsDefinedTags(java.lang.String key); + + /** Use {@link #getDefinedTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + getDefinedTags(); + + /** + * + * + *
                                              +   * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +   * to a namespace.
                                              +   * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> + getDefinedTagsMap(); + + /** + * + * + *
                                              +   * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +   * to a namespace.
                                              +   * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + getDefinedTagsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + defaultValue); + + /** + * + * + *
                                              +   * Optional. Defined tags for this resource. Each key is predefined and scoped
                                              +   * to a namespace.
                                              +   * 
                                              + * + * + * map<string, .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue> defined_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue + getDefinedTagsOrThrow(java.lang.String key); + + /** + * + * + *
                                              +   * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +   * pair with no predefined name, type, or namespace.
                                              +   * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFreeformTagsCount(); + + /** + * + * + *
                                              +   * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +   * pair with no predefined name, type, or namespace.
                                              +   * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsFreeformTags(java.lang.String key); + + /** Use {@link #getFreeformTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFreeformTags(); + + /** + * + * + *
                                              +   * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +   * pair with no predefined name, type, or namespace.
                                              +   * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getFreeformTagsMap(); + + /** + * + * + *
                                              +   * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +   * pair with no predefined name, type, or namespace.
                                              +   * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getFreeformTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                              +   * Optional. Free-form tags for this resource. Each tag is a simple key-value
                                              +   * pair with no predefined name, type, or namespace.
                                              +   * 
                                              + * + * map<string, string> freeform_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getFreeformTagsOrThrow(java.lang.String key); + + /** + * + * + *
                                              +   * Output only. The OCID of the pluggable database.
                                              +   * 
                                              + * + * string ocid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ocid. + */ + java.lang.String getOcid(); + + /** + * + * + *
                                              +   * Output only. The OCID of the pluggable database.
                                              +   * 
                                              + * + * string ocid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ocid. + */ + com.google.protobuf.ByteString getOcidBytes(); + + /** + * + * + *
                                              +   * Optional. The restricted mode of the pluggable database. If a pluggable
                                              +   * database is opened in restricted mode, the user needs both create a session
                                              +   * and have restricted session privileges to connect to it.
                                              +   * 
                                              + * + * bool is_restricted = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isRestricted. + */ + boolean getIsRestricted(); + + /** + * + * + *
                                              +   * Output only. Additional information about the current lifecycle state.
                                              +   * 
                                              + * + * string lifecycle_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lifecycleDetails. + */ + java.lang.String getLifecycleDetails(); + + /** + * + * + *
                                              +   * Output only. Additional information about the current lifecycle state.
                                              +   * 
                                              + * + * string lifecycle_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lifecycleDetails. + */ + com.google.protobuf.ByteString getLifecycleDetailsBytes(); + + /** + * + * + *
                                              +   * Output only. The current state of the pluggable database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState lifecycle_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + int getLifecycleStateValue(); + + /** + * + * + *
                                              +   * Output only. The current state of the pluggable database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState lifecycle_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState + getLifecycleState(); + + /** + * + * + *
                                              +   * Required. The database name.
                                              +   * 
                                              + * + * string pdb_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pdbName. + */ + java.lang.String getPdbName(); + + /** + * + * + *
                                              +   * Required. The database name.
                                              +   * 
                                              + * + * string pdb_name = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pdbName. + */ + com.google.protobuf.ByteString getPdbNameBytes(); + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPdbNodeLevelDetailsList(); + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails getPdbNodeLevelDetails( + int index); + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPdbNodeLevelDetailsCount(); + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder> + getPdbNodeLevelDetailsOrBuilderList(); + + /** + * + * + *
                                              +   * Optional. Pluggable Database Node Level Details
                                              +   * 
                                              + * + * + * repeated .google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsOrBuilder + getPdbNodeLevelDetailsOrBuilder(int index); + + /** + * + * + *
                                              +   * Output only. The configuration of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the databaseManagementConfig field is set. + */ + boolean hasDatabaseManagementConfig(); + + /** + * + * + *
                                              +   * Output only. The configuration of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The databaseManagementConfig. + */ + com.google.cloud.oracledatabase.v1.DatabaseManagementConfig getDatabaseManagementConfig(); + + /** + * + * + *
                                              +   * Output only. The configuration of the Database Management service.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.DatabaseManagementConfigOrBuilder + getDatabaseManagementConfigOrBuilder(); + + /** + * + * + *
                                              +   * Output only. The status of Operations Insights for this Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState operations_insights_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for operationsInsightsState. + */ + int getOperationsInsightsStateValue(); + + /** + * + * + *
                                              +   * Output only. The status of Operations Insights for this Database.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState operations_insights_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The operationsInsightsState. + */ + com.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState + getOperationsInsightsState(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseProto.java new file mode 100644 index 000000000000..7ae8d9827048 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseProto.java @@ -0,0 +1,373 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/pluggable_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public final class PluggableDatabaseProto { + private PluggableDatabaseProto() {} + + 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_oracledatabase_v1_PluggableDatabase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_PluggableDatabase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_TagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_FreeformTagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_FreeformTagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_AllConnectionStringsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_AllConnectionStringsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_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" + + "7google/cloud/oracledatabase/v1/pluggable_database.proto\022\036google.cloud.oracleda" + + "tabase.v1\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\370\002\n" + + "\021PluggableDatabase\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022T\n\n" + + "properties\030\002 " + + "\001(\0132;.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesB\003\340A\001\022\024\n" + + "\007oci_url\030\003 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\255\001\352A\251\001\n" + + "/oracledatabase.googleapis.com/PluggableDatabas" + + "e\022Oprojects/{project}/locations/{location}/pluggableDatabases/{pluggable_databas" + + "e}*\022pluggableDatabases2\021pluggableDatabase\"\201\016\n" + + "\033PluggableDatabaseProperties\022\033\n" + + "\016compartment_id\030\001 \001(\tB\003\340A\002\022c\n" + + "\022connection_strings\030\002 \001(\0132B.google.cloud.oracledatabase" + + ".v1.PluggableDatabaseConnectionStringsB\003\340A\001\022$\n" + + "\027container_database_ocid\030\003 \001(\tB\003\340A\002\022g\n" + + "\014defined_tags\030\004 \003(\0132L.google.cloud.o" + + "racledatabase.v1.PluggableDatabaseProperties.DefinedTagsEntryB\003\340A\001\022i\n\r" + + "freeform_tags\030\005 \003(\0132M.google.cloud.oracledatabase." + + "v1.PluggableDatabaseProperties.FreeformTagsEntryB\003\340A\001\022\021\n" + + "\004ocid\030\006 \001(\tB\003\340A\003\022\032\n\r" + + "is_restricted\030\007 \001(\010B\003\340A\001\022\036\n" + + "\021lifecycle_details\030\010 \001(\tB\003\340A\003\022y\n" + + "\017lifecycle_state\030\t \001(\0162[.google.cloud.oracledatabase.v1.Pluggable" + + "DatabaseProperties.PluggableDatabaseLifecycleStateB\003\340A\003\022\025\n" + + "\010pdb_name\030\n" + + " \001(\tB\003\340A\002\022f\n" + + "\026pdb_node_level_details\030\013 \003(\0132A.google." + + "cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsB\003\340A\001\022a\n" + + "\032database_management_config\030\r" + + " \001(\01328.google.cloud.oracle" + + "database.v1.DatabaseManagementConfigB\003\340A\003\022{\n" + + "\031operations_insights_state\030\016 \001(\0162S.g" + + "oogle.cloud.oracledatabase.v1.PluggableD" + + "atabaseProperties.OperationsInsightsStateB\003\340A\003\032\243\001\n" + + "\017DefinedTagValue\022c\n" + + "\004tags\030\001 \003(\0132U.google.cloud.oracledatabase.v1.Plugga" + + "bleDatabaseProperties.DefinedTagValue.TagsEntry\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032\177\n" + + "\020DefinedTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022Z\n" + + "\005value\030\002 \001(\0132K.google.cloud.orac" + + "ledatabase.v1.PluggableDatabaseProperties.DefinedTagValue:\0028\001\0323\n" + + "\021FreeformTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\263\002\n" + + "\037PluggableDatabaseLifecycleState\0222\n" + + ".PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED\020\000\022\020\n" + + "\014PROVISIONING\020\001\022\r\n" + + "\tAVAILABLE\020\002\022\017\n" + + "\013TERMINATING\020\003\022\016\n\n" + + "TERMINATED\020\004\022\014\n" + + "\010UPDATING\020\005\022\n\n" + + "\006FAILED\020\006\022\016\n\n" + + "RELOCATING\020\007\022\r\n" + + "\tRELOCATED\020\010\022\016\n\n" + + "REFRESHING\020\t\022\027\n" + + "\023RESTORE_IN_PROGRESS\020\n" + + "\022\022\n" + + "\016RESTORE_FAILED\020\013\022\026\n" + + "\022BACKUP_IN_PROGRESS\020\014\022\014\n" + + "\010DISABLED\020\r" + + "\"\252\001\n" + + "\027OperationsInsightsState\022)\n" + + "%OPERATIONS_INSIGHTS_STATE_UNSPECIFIED\020\000\022\014\n" + + "\010ENABLING\020\001\022\013\n" + + "\007ENABLED\020\002\022\r\n" + + "\tDISABLING\020\003\022\017\n" + + "\013NOT_ENABLED\020\004\022\023\n" + + "\017FAILED_ENABLING\020\005\022\024\n" + + "\020FAILED_DISABLING\020\006\"\234\002\n" + + "\"PluggableDatabaseConnectionStrings\022\201\001\n" + + "\026all_connection_strings\030\001 \003(\0132\\.google.c" + + "loud.oracledatabase.v1.PluggableDatabase" + + "ConnectionStrings.AllConnectionStringsEntryB\003\340A\001\022\030\n" + + "\013pdb_default\030\002 \001(\tB\003\340A\001\022\033\n" + + "\016pdb_ip_default\030\003 \001(\tB\003\340A\001\032;\n" + + "\031AllConnectionStringsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\331\002\n" + + "!PluggableDatabaseNodeLevelDetails\022\026\n" + + "\tnode_name\030\001 \001(\tB\003\340A\002\022s\n" + + "\topen_mode\030\002 \001(\0162[.google.cloud.oracledatabase.v1.P" + + "luggableDatabaseNodeLevelDetails.PluggableDatabaseOpenModeB\003\340A\002\022\"\n" + + "\025pluggable_database_id\030\003 \001(\tB\003\340A\002\"\202\001\n" + + "\031PluggableDatabaseOpenMode\022,\n" + + "(PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED\020\000\022\r\n" + + "\tREAD_ONLY\020\001\022\016\n\n" + + "READ_WRITE\020\002\022\013\n" + + "\007MOUNTED\020\003\022\013\n" + + "\007MIGRATE\020\004\"\362\003\n" + + "\030DatabaseManagementConfig\022g\n" + + "\020management_state\030\001 \001(\0162H.google.cloud.oracledatabase.v1" + + ".DatabaseManagementConfig.ManagementStateB\003\340A\003\022e\n" + + "\017management_type\030\002 \001(\0162G.google" + + ".cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementTypeB\003\340A\003\"\271\001\n" + + "\017ManagementState\022 \n" + + "\034MANAGEMENT_STATE_UNSPECIFIED\020\000\022\014\n" + + "\010ENABLING\020\001\022\013\n" + + "\007ENABLED\020\002\022\r\n" + + "\tDISABLING\020\003\022\014\n" + + "\010DISABLED\020\004\022\014\n" + + "\010UPDATING\020\005\022\023\n" + + "\017FAILED_ENABLING\020\006\022\024\n" + + "\020FAILED_DISABLING\020\007\022\023\n" + + "\017FAILED_UPDATING\020\010\"J\n" + + "\016ManagementType\022\037\n" + + "\033MANAGEMENT_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005BASIC\020\001\022\014\n" + + "\010ADVANCED\020\002\"d\n" + + "\033GetPluggableDatabaseRequest\022E\n" + + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + + "/oracledatabase.googleapis.com/PluggableDatabase\"\256\001\n" + + "\035ListPluggableDatabasesRequest\022G\n" + + "\006parent\030\001 \001(" + + "\tB7\340A\002\372A1\022/oracledatabase.googleapis.com/PluggableDatabase\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\"\211\001\n" + + "\036ListPluggableDatabasesResponse\022N\n" + + "\023pluggable_databases\030\001 \003(\01321.g" + + "oogle.cloud.oracledatabase.v1.PluggableDatabase\022\027\n" + + "\017next_page_token\030\002 \001(\tB\360\001\n" + + "\"com.google.cloud.oracledatabase.v1B\026Pluggab" + + "leDatabaseProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;ora" + + "cledatabasepb\252\002\036Google.Cloud.OracleDatab" + + "ase.V1\312\002\036Google\\Cloud\\OracleDatabase\\V1\352" + + "\002!Google::Cloud::OracleDatabase::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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabase_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_PluggableDatabase_descriptor, + new java.lang.String[] { + "Name", "Properties", "OciUrl", "CreateTime", + }); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_descriptor, + new java.lang.String[] { + "CompartmentId", + "ConnectionStrings", + "ContainerDatabaseOcid", + "DefinedTags", + "FreeformTags", + "Ocid", + "IsRestricted", + "LifecycleDetails", + "LifecycleState", + "PdbName", + "PdbNodeLevelDetails", + "DatabaseManagementConfig", + "OperationsInsightsState", + }); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_descriptor = + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_descriptor, + new java.lang.String[] { + "Tags", + }); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_TagsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagValue_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_DefinedTagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_FreeformTagsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_FreeformTagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseProperties_FreeformTagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_descriptor, + new java.lang.String[] { + "AllConnectionStrings", "PdbDefault", "PdbIpDefault", + }); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_AllConnectionStringsEntry_descriptor = + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_AllConnectionStringsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseConnectionStrings_AllConnectionStringsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_PluggableDatabaseNodeLevelDetails_descriptor, + new java.lang.String[] { + "NodeName", "OpenMode", "PluggableDatabaseId", + }); + internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DatabaseManagementConfig_descriptor, + new java.lang.String[] { + "ManagementState", "ManagementType", + }); + internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetPluggableDatabaseRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListPluggableDatabasesResponse_descriptor, + new java.lang.String[] { + "PluggableDatabases", "NextPageToken", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RemoveVirtualMachineExadbVmClusterRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RemoveVirtualMachineExadbVmClusterRequest.java new file mode 100644 index 000000000000..91f5269f3ef8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RemoveVirtualMachineExadbVmClusterRequest.java @@ -0,0 +1,1238 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `ExadbVmCluster.RemoveVirtualMachine`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest} + */ +public final class RemoveVirtualMachineExadbVmClusterRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest) + RemoveVirtualMachineExadbVmClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RemoveVirtualMachineExadbVmClusterRequest.newBuilder() to construct. + private RemoveVirtualMachineExadbVmClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveVirtualMachineExadbVmClusterRequest() { + name_ = ""; + requestId_ = ""; + hostnames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveVirtualMachineExadbVmClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * 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 REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.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; + } + } + + public static final int HOSTNAMES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList hostnames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * Required. The list of host names of db nodes to be removed from the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the hostnames. + */ + public com.google.protobuf.ProtocolStringList getHostnamesList() { + return hostnames_; + } + + /** + * + * + *
                                              +   * Required. The list of host names of db nodes to be removed from the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of hostnames. + */ + public int getHostnamesCount() { + return hostnames_.size(); + } + + /** + * + * + *
                                              +   * Required. The list of host names of db nodes to be removed from the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The hostnames at the given index. + */ + public java.lang.String getHostnames(int index) { + return hostnames_.get(index); + } + + /** + * + * + *
                                              +   * Required. The list of host names of db nodes to be removed from the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the hostnames at the given index. + */ + public com.google.protobuf.ByteString getHostnamesBytes(int index) { + return hostnames_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + for (int i = 0; i < hostnames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hostnames_.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + { + int dataSize = 0; + for (int i = 0; i < hostnames_.size(); i++) { + dataSize += computeStringSizeNoTag(hostnames_.getRaw(i)); + } + size += dataSize; + size += 1 * getHostnamesList().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.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest other = + (com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getHostnamesList().equals(other.getHostnamesList())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (getHostnamesCount() > 0) { + hash = (37 * hash) + HOSTNAMES_FIELD_NUMBER; + hash = (53 * hash) + getHostnamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + 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.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + 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.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `ExadbVmCluster.RemoveVirtualMachine`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest) + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + hostnames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest build() { + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + buildPartial() { + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest result = + new com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + hostnames_.makeImmutable(); + result.hostnames_ = hostnames_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.hostnames_.isEmpty()) { + if (hostnames_.isEmpty()) { + hostnames_ = other.hostnames_; + bitField0_ |= 0x00000004; + } else { + ensureHostnamesIsMutable(); + hostnames_.addAll(other.hostnames_); + } + 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 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureHostnamesIsMutable(); + hostnames_.add(s); + break; + } // case 34 + 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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. The name of the ExadbVmCluster in the following format:
                                              +     * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +     * 
                                              + * + * + * 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 requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList hostnames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureHostnamesIsMutable() { + if (!hostnames_.isModifiable()) { + hostnames_ = new com.google.protobuf.LazyStringArrayList(hostnames_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
                                              +     * Required. The list of host names of db nodes to be removed from the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the hostnames. + */ + public com.google.protobuf.ProtocolStringList getHostnamesList() { + hostnames_.makeImmutable(); + return hostnames_; + } + + /** + * + * + *
                                              +     * Required. The list of host names of db nodes to be removed from the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of hostnames. + */ + public int getHostnamesCount() { + return hostnames_.size(); + } + + /** + * + * + *
                                              +     * Required. The list of host names of db nodes to be removed from the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The hostnames at the given index. + */ + public java.lang.String getHostnames(int index) { + return hostnames_.get(index); + } + + /** + * + * + *
                                              +     * Required. The list of host names of db nodes to be removed from the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the hostnames at the given index. + */ + public com.google.protobuf.ByteString getHostnamesBytes(int index) { + return hostnames_.getByteString(index); + } + + /** + * + * + *
                                              +     * Required. The list of host names of db nodes to be removed from the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The hostnames to set. + * @return This builder for chaining. + */ + public Builder setHostnames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHostnamesIsMutable(); + hostnames_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The list of host names of db nodes to be removed from the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostnames to add. + * @return This builder for chaining. + */ + public Builder addHostnames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHostnamesIsMutable(); + hostnames_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The list of host names of db nodes to be removed from the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The hostnames to add. + * @return This builder for chaining. + */ + public Builder addAllHostnames(java.lang.Iterable values) { + ensureHostnamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hostnames_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The list of host names of db nodes to be removed from the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostnames() { + hostnames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The list of host names of db nodes to be removed from the
                                              +     * ExadbVmCluster.
                                              +     * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the hostnames to add. + * @return This builder for chaining. + */ + public Builder addHostnamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureHostnamesIsMutable(); + hostnames_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest) + private static final com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest(); + } + + public static com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveVirtualMachineExadbVmClusterRequest 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.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RemoveVirtualMachineExadbVmClusterRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RemoveVirtualMachineExadbVmClusterRequestOrBuilder.java new file mode 100644 index 000000000000..9d025e39feba --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/RemoveVirtualMachineExadbVmClusterRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface RemoveVirtualMachineExadbVmClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the ExadbVmCluster in the following format:
                                              +   * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
                                              +   * Required. The list of host names of db nodes to be removed from the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the hostnames. + */ + java.util.List getHostnamesList(); + + /** + * + * + *
                                              +   * Required. The list of host names of db nodes to be removed from the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of hostnames. + */ + int getHostnamesCount(); + + /** + * + * + *
                                              +   * Required. The list of host names of db nodes to be removed from the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The hostnames at the given index. + */ + java.lang.String getHostnames(int index); + + /** + * + * + *
                                              +   * Required. The list of host names of db nodes to be removed from the
                                              +   * ExadbVmCluster.
                                              +   * 
                                              + * + * repeated string hostnames = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the hostnames at the given index. + */ + com.google.protobuf.ByteString getHostnamesBytes(int index); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SourceConfig.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SourceConfig.java new file mode 100644 index 000000000000..4fe24930963d --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SourceConfig.java @@ -0,0 +1,768 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The source configuration for the standby Autonomous Database.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.SourceConfig} + */ +public final class SourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.SourceConfig) + SourceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SourceConfig.newBuilder() to construct. + private SourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceConfig() { + autonomousDatabase_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_SourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_SourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.SourceConfig.class, + com.google.cloud.oracledatabase.v1.SourceConfig.Builder.class); + } + + public static final int AUTONOMOUS_DATABASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object autonomousDatabase_ = ""; + + /** + * + * + *
                                              +   * Optional. The name of the primary Autonomous Database that is used to
                                              +   * create a Peer Autonomous Database from a source.
                                              +   * 
                                              + * + * + * string autonomous_database = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The autonomousDatabase. + */ + @java.lang.Override + public java.lang.String getAutonomousDatabase() { + java.lang.Object ref = autonomousDatabase_; + 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(); + autonomousDatabase_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Optional. The name of the primary Autonomous Database that is used to
                                              +   * create a Peer Autonomous Database from a source.
                                              +   * 
                                              + * + * + * string autonomous_database = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autonomousDatabase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutonomousDatabaseBytes() { + java.lang.Object ref = autonomousDatabase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autonomousDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOMATIC_BACKUPS_REPLICATION_ENABLED_FIELD_NUMBER = 2; + private boolean automaticBackupsReplicationEnabled_ = false; + + /** + * + * + *
                                              +   * Optional. This field specifies if the replication of automatic backups is
                                              +   * enabled when creating a Data Guard.
                                              +   * 
                                              + * + * bool automatic_backups_replication_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticBackupsReplicationEnabled. + */ + @java.lang.Override + public boolean getAutomaticBackupsReplicationEnabled() { + return automaticBackupsReplicationEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autonomousDatabase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autonomousDatabase_); + } + if (automaticBackupsReplicationEnabled_ != false) { + output.writeBool(2, automaticBackupsReplicationEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autonomousDatabase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autonomousDatabase_); + } + if (automaticBackupsReplicationEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, automaticBackupsReplicationEnabled_); + } + 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.oracledatabase.v1.SourceConfig)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.SourceConfig other = + (com.google.cloud.oracledatabase.v1.SourceConfig) obj; + + if (!getAutonomousDatabase().equals(other.getAutonomousDatabase())) return false; + if (getAutomaticBackupsReplicationEnabled() != other.getAutomaticBackupsReplicationEnabled()) + 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) + AUTONOMOUS_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousDatabase().hashCode(); + hash = (37 * hash) + AUTOMATIC_BACKUPS_REPLICATION_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getAutomaticBackupsReplicationEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig 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.oracledatabase.v1.SourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig 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.oracledatabase.v1.SourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.oracledatabase.v1.SourceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The source configuration for the standby Autonomous Database.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.SourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.SourceConfig) + com.google.cloud.oracledatabase.v1.SourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_SourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_SourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.SourceConfig.class, + com.google.cloud.oracledatabase.v1.SourceConfig.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.SourceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autonomousDatabase_ = ""; + automaticBackupsReplicationEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.AutonomousDatabaseProto + .internal_static_google_cloud_oracledatabase_v1_SourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.SourceConfig getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.SourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.SourceConfig build() { + com.google.cloud.oracledatabase.v1.SourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.SourceConfig buildPartial() { + com.google.cloud.oracledatabase.v1.SourceConfig result = + new com.google.cloud.oracledatabase.v1.SourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.SourceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autonomousDatabase_ = autonomousDatabase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.automaticBackupsReplicationEnabled_ = automaticBackupsReplicationEnabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.SourceConfig) { + return mergeFrom((com.google.cloud.oracledatabase.v1.SourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.SourceConfig other) { + if (other == com.google.cloud.oracledatabase.v1.SourceConfig.getDefaultInstance()) + return this; + if (!other.getAutonomousDatabase().isEmpty()) { + autonomousDatabase_ = other.autonomousDatabase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAutomaticBackupsReplicationEnabled() != false) { + setAutomaticBackupsReplicationEnabled(other.getAutomaticBackupsReplicationEnabled()); + } + 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: + { + autonomousDatabase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + automaticBackupsReplicationEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 autonomousDatabase_ = ""; + + /** + * + * + *
                                              +     * Optional. The name of the primary Autonomous Database that is used to
                                              +     * create a Peer Autonomous Database from a source.
                                              +     * 
                                              + * + * + * string autonomous_database = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The autonomousDatabase. + */ + public java.lang.String getAutonomousDatabase() { + java.lang.Object ref = autonomousDatabase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autonomousDatabase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The name of the primary Autonomous Database that is used to
                                              +     * create a Peer Autonomous Database from a source.
                                              +     * 
                                              + * + * + * string autonomous_database = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autonomousDatabase. + */ + public com.google.protobuf.ByteString getAutonomousDatabaseBytes() { + java.lang.Object ref = autonomousDatabase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autonomousDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Optional. The name of the primary Autonomous Database that is used to
                                              +     * create a Peer Autonomous Database from a source.
                                              +     * 
                                              + * + * + * string autonomous_database = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The autonomousDatabase to set. + * @return This builder for chaining. + */ + public Builder setAutonomousDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autonomousDatabase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the primary Autonomous Database that is used to
                                              +     * create a Peer Autonomous Database from a source.
                                              +     * 
                                              + * + * + * string autonomous_database = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAutonomousDatabase() { + autonomousDatabase_ = getDefaultInstance().getAutonomousDatabase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. The name of the primary Autonomous Database that is used to
                                              +     * create a Peer Autonomous Database from a source.
                                              +     * 
                                              + * + * + * string autonomous_database = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for autonomousDatabase to set. + * @return This builder for chaining. + */ + public Builder setAutonomousDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autonomousDatabase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean automaticBackupsReplicationEnabled_; + + /** + * + * + *
                                              +     * Optional. This field specifies if the replication of automatic backups is
                                              +     * enabled when creating a Data Guard.
                                              +     * 
                                              + * + * + * bool automatic_backups_replication_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticBackupsReplicationEnabled. + */ + @java.lang.Override + public boolean getAutomaticBackupsReplicationEnabled() { + return automaticBackupsReplicationEnabled_; + } + + /** + * + * + *
                                              +     * Optional. This field specifies if the replication of automatic backups is
                                              +     * enabled when creating a Data Guard.
                                              +     * 
                                              + * + * + * bool automatic_backups_replication_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The automaticBackupsReplicationEnabled to set. + * @return This builder for chaining. + */ + public Builder setAutomaticBackupsReplicationEnabled(boolean value) { + + automaticBackupsReplicationEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. This field specifies if the replication of automatic backups is
                                              +     * enabled when creating a Data Guard.
                                              +     * 
                                              + * + * + * bool automatic_backups_replication_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutomaticBackupsReplicationEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + automaticBackupsReplicationEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.SourceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.SourceConfig) + private static final com.google.cloud.oracledatabase.v1.SourceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.SourceConfig(); + } + + public static com.google.cloud.oracledatabase.v1.SourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceConfig 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.oracledatabase.v1.SourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SourceConfigOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SourceConfigOrBuilder.java new file mode 100644 index 000000000000..781e1941ca3c --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SourceConfigOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/autonomous_database.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface SourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.SourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. The name of the primary Autonomous Database that is used to
                                              +   * create a Peer Autonomous Database from a source.
                                              +   * 
                                              + * + * + * string autonomous_database = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The autonomousDatabase. + */ + java.lang.String getAutonomousDatabase(); + + /** + * + * + *
                                              +   * Optional. The name of the primary Autonomous Database that is used to
                                              +   * create a Peer Autonomous Database from a source.
                                              +   * 
                                              + * + * + * string autonomous_database = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autonomousDatabase. + */ + com.google.protobuf.ByteString getAutonomousDatabaseBytes(); + + /** + * + * + *
                                              +   * Optional. This field specifies if the replication of automatic backups is
                                              +   * enabled when creating a Data Guard.
                                              +   * 
                                              + * + * bool automatic_backups_replication_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticBackupsReplicationEnabled. + */ + boolean getAutomaticBackupsReplicationEnabled(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/StorageSizeDetails.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/StorageSizeDetails.java new file mode 100644 index 000000000000..0dd8a2b30085 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/StorageSizeDetails.java @@ -0,0 +1,649 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The initial storage size, in gigabytes, that is applicable for virtual
                                              + * machine DBSystem.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.StorageSizeDetails} + */ +public final class StorageSizeDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.StorageSizeDetails) + StorageSizeDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StorageSizeDetails.newBuilder() to construct. + private StorageSizeDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StorageSizeDetails() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StorageSizeDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.StorageSizeDetails.class, + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder.class); + } + + public static final int DATA_STORAGE_SIZE_IN_GBS_FIELD_NUMBER = 1; + private int dataStorageSizeInGbs_ = 0; + + /** + * + * + *
                                              +   * Output only. The data storage size, in gigabytes, that is applicable for
                                              +   * virtual machine DBSystem.
                                              +   * 
                                              + * + * int32 data_storage_size_in_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataStorageSizeInGbs. + */ + @java.lang.Override + public int getDataStorageSizeInGbs() { + return dataStorageSizeInGbs_; + } + + public static final int RECO_STORAGE_SIZE_IN_GBS_FIELD_NUMBER = 2; + private int recoStorageSizeInGbs_ = 0; + + /** + * + * + *
                                              +   * Output only. The RECO/REDO storage size, in gigabytes, that is applicable
                                              +   * for virtual machine DBSystem.
                                              +   * 
                                              + * + * int32 reco_storage_size_in_gbs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recoStorageSizeInGbs. + */ + @java.lang.Override + public int getRecoStorageSizeInGbs() { + return recoStorageSizeInGbs_; + } + + 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 (dataStorageSizeInGbs_ != 0) { + output.writeInt32(1, dataStorageSizeInGbs_); + } + if (recoStorageSizeInGbs_ != 0) { + output.writeInt32(2, recoStorageSizeInGbs_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataStorageSizeInGbs_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, dataStorageSizeInGbs_); + } + if (recoStorageSizeInGbs_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, recoStorageSizeInGbs_); + } + 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.oracledatabase.v1.StorageSizeDetails)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.StorageSizeDetails other = + (com.google.cloud.oracledatabase.v1.StorageSizeDetails) obj; + + if (getDataStorageSizeInGbs() != other.getDataStorageSizeInGbs()) return false; + if (getRecoStorageSizeInGbs() != other.getRecoStorageSizeInGbs()) 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) + DATA_STORAGE_SIZE_IN_GBS_FIELD_NUMBER; + hash = (53 * hash) + getDataStorageSizeInGbs(); + hash = (37 * hash) + RECO_STORAGE_SIZE_IN_GBS_FIELD_NUMBER; + hash = (53 * hash) + getRecoStorageSizeInGbs(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails 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.oracledatabase.v1.StorageSizeDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails 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.oracledatabase.v1.StorageSizeDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.StorageSizeDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The initial storage size, in gigabytes, that is applicable for virtual
                                              +   * machine DBSystem.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.StorageSizeDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.StorageSizeDetails) + com.google.cloud.oracledatabase.v1.StorageSizeDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.StorageSizeDetails.class, + com.google.cloud.oracledatabase.v1.StorageSizeDetails.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.StorageSizeDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataStorageSizeInGbs_ = 0; + recoStorageSizeInGbs_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto + .internal_static_google_cloud_oracledatabase_v1_StorageSizeDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.StorageSizeDetails getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.StorageSizeDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.StorageSizeDetails build() { + com.google.cloud.oracledatabase.v1.StorageSizeDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.StorageSizeDetails buildPartial() { + com.google.cloud.oracledatabase.v1.StorageSizeDetails result = + new com.google.cloud.oracledatabase.v1.StorageSizeDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.StorageSizeDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataStorageSizeInGbs_ = dataStorageSizeInGbs_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.recoStorageSizeInGbs_ = recoStorageSizeInGbs_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.StorageSizeDetails) { + return mergeFrom((com.google.cloud.oracledatabase.v1.StorageSizeDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.StorageSizeDetails other) { + if (other == com.google.cloud.oracledatabase.v1.StorageSizeDetails.getDefaultInstance()) + return this; + if (other.getDataStorageSizeInGbs() != 0) { + setDataStorageSizeInGbs(other.getDataStorageSizeInGbs()); + } + if (other.getRecoStorageSizeInGbs() != 0) { + setRecoStorageSizeInGbs(other.getRecoStorageSizeInGbs()); + } + 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: + { + dataStorageSizeInGbs_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + recoStorageSizeInGbs_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 dataStorageSizeInGbs_; + + /** + * + * + *
                                              +     * Output only. The data storage size, in gigabytes, that is applicable for
                                              +     * virtual machine DBSystem.
                                              +     * 
                                              + * + * int32 data_storage_size_in_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataStorageSizeInGbs. + */ + @java.lang.Override + public int getDataStorageSizeInGbs() { + return dataStorageSizeInGbs_; + } + + /** + * + * + *
                                              +     * Output only. The data storage size, in gigabytes, that is applicable for
                                              +     * virtual machine DBSystem.
                                              +     * 
                                              + * + * int32 data_storage_size_in_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dataStorageSizeInGbs to set. + * @return This builder for chaining. + */ + public Builder setDataStorageSizeInGbs(int value) { + + dataStorageSizeInGbs_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The data storage size, in gigabytes, that is applicable for
                                              +     * virtual machine DBSystem.
                                              +     * 
                                              + * + * int32 data_storage_size_in_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDataStorageSizeInGbs() { + bitField0_ = (bitField0_ & ~0x00000001); + dataStorageSizeInGbs_ = 0; + onChanged(); + return this; + } + + private int recoStorageSizeInGbs_; + + /** + * + * + *
                                              +     * Output only. The RECO/REDO storage size, in gigabytes, that is applicable
                                              +     * for virtual machine DBSystem.
                                              +     * 
                                              + * + * int32 reco_storage_size_in_gbs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recoStorageSizeInGbs. + */ + @java.lang.Override + public int getRecoStorageSizeInGbs() { + return recoStorageSizeInGbs_; + } + + /** + * + * + *
                                              +     * Output only. The RECO/REDO storage size, in gigabytes, that is applicable
                                              +     * for virtual machine DBSystem.
                                              +     * 
                                              + * + * int32 reco_storage_size_in_gbs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The recoStorageSizeInGbs to set. + * @return This builder for chaining. + */ + public Builder setRecoStorageSizeInGbs(int value) { + + recoStorageSizeInGbs_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Output only. The RECO/REDO storage size, in gigabytes, that is applicable
                                              +     * for virtual machine DBSystem.
                                              +     * 
                                              + * + * int32 reco_storage_size_in_gbs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRecoStorageSizeInGbs() { + bitField0_ = (bitField0_ & ~0x00000002); + recoStorageSizeInGbs_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.StorageSizeDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.StorageSizeDetails) + private static final com.google.cloud.oracledatabase.v1.StorageSizeDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.StorageSizeDetails(); + } + + public static com.google.cloud.oracledatabase.v1.StorageSizeDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageSizeDetails 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.oracledatabase.v1.StorageSizeDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/StorageSizeDetailsOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/StorageSizeDetailsOrBuilder.java new file mode 100644 index 000000000000..13b9ca0f3580 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/StorageSizeDetailsOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface StorageSizeDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.StorageSizeDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Output only. The data storage size, in gigabytes, that is applicable for
                                              +   * virtual machine DBSystem.
                                              +   * 
                                              + * + * int32 data_storage_size_in_gbs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataStorageSizeInGbs. + */ + int getDataStorageSizeInGbs(); + + /** + * + * + *
                                              +   * Output only. The RECO/REDO storage size, in gigabytes, that is applicable
                                              +   * for virtual machine DBSystem.
                                              +   * 
                                              + * + * int32 reco_storage_size_in_gbs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The recoStorageSizeInGbs. + */ + int getRecoStorageSizeInGbs(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SwitchoverAutonomousDatabaseRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SwitchoverAutonomousDatabaseRequest.java new file mode 100644 index 000000000000..8423bfe51722 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SwitchoverAutonomousDatabaseRequest.java @@ -0,0 +1,873 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `OracleDatabase.SwitchoverAutonomousDatabase`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest} + */ +public final class SwitchoverAutonomousDatabaseRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest) + SwitchoverAutonomousDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SwitchoverAutonomousDatabaseRequest.newBuilder() to construct. + private SwitchoverAutonomousDatabaseRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SwitchoverAutonomousDatabaseRequest() { + name_ = ""; + peerAutonomousDatabase_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SwitchoverAutonomousDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                              +   * Required. The name of the Autonomous Database in the following format:
                                              +   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +   * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +   * 
                                              + * + * + * 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 PEER_AUTONOMOUS_DATABASE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerAutonomousDatabase_ = ""; + + /** + * + * + *
                                              +   * Required. The peer database name to switch over to.
                                              +   * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The peerAutonomousDatabase. + */ + @java.lang.Override + public java.lang.String getPeerAutonomousDatabase() { + java.lang.Object ref = peerAutonomousDatabase_; + 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(); + peerAutonomousDatabase_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The peer database name to switch over to.
                                              +   * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for peerAutonomousDatabase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerAutonomousDatabaseBytes() { + java.lang.Object ref = peerAutonomousDatabase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerAutonomousDatabase_ = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerAutonomousDatabase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, peerAutonomousDatabase_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerAutonomousDatabase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerAutonomousDatabase_); + } + 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.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest other = + (com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPeerAutonomousDatabase().equals(other.getPeerAutonomousDatabase())) 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) + PEER_AUTONOMOUS_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getPeerAutonomousDatabase().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest 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.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest 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.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `OracleDatabase.SwitchoverAutonomousDatabase`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest) + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + peerAutonomousDatabase_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest build() { + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest buildPartial() { + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest result = + new com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.peerAutonomousDatabase_ = peerAutonomousDatabase_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPeerAutonomousDatabase().isEmpty()) { + peerAutonomousDatabase_ = other.peerAutonomousDatabase_; + 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: + { + peerAutonomousDatabase_ = 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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. The name of the Autonomous Database in the following format:
                                              +     * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +     * 
                                              + * + * + * 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 peerAutonomousDatabase_ = ""; + + /** + * + * + *
                                              +     * Required. The peer database name to switch over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The peerAutonomousDatabase. + */ + public java.lang.String getPeerAutonomousDatabase() { + java.lang.Object ref = peerAutonomousDatabase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerAutonomousDatabase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The peer database name to switch over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for peerAutonomousDatabase. + */ + public com.google.protobuf.ByteString getPeerAutonomousDatabaseBytes() { + java.lang.Object ref = peerAutonomousDatabase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerAutonomousDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The peer database name to switch over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The peerAutonomousDatabase to set. + * @return This builder for chaining. + */ + public Builder setPeerAutonomousDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerAutonomousDatabase_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The peer database name to switch over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPeerAutonomousDatabase() { + peerAutonomousDatabase_ = getDefaultInstance().getPeerAutonomousDatabase(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The peer database name to switch over to.
                                              +     * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for peerAutonomousDatabase to set. + * @return This builder for chaining. + */ + public Builder setPeerAutonomousDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerAutonomousDatabase_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest) + private static final com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest(); + } + + public static com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SwitchoverAutonomousDatabaseRequest 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.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SwitchoverAutonomousDatabaseRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SwitchoverAutonomousDatabaseRequestOrBuilder.java new file mode 100644 index 000000000000..81e84bcaa2c5 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/SwitchoverAutonomousDatabaseRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface SwitchoverAutonomousDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The name of the Autonomous Database in the following format:
                                              +   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                              +   * Required. The name of the Autonomous Database in the following format:
                                              +   * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
                                              +   * 
                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                              +   * Required. The peer database name to switch over to.
                                              +   * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The peerAutonomousDatabase. + */ + java.lang.String getPeerAutonomousDatabase(); + + /** + * + * + *
                                              +   * Required. The peer database name to switch over to.
                                              +   * 
                                              + * + * + * string peer_autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for peerAutonomousDatabase. + */ + com.google.protobuf.ByteString getPeerAutonomousDatabaseBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateAutonomousDatabaseRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateAutonomousDatabaseRequest.java new file mode 100644 index 000000000000..62333a01c400 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateAutonomousDatabaseRequest.java @@ -0,0 +1,1372 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `AutonomousDatabase.Update`.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest} + */ +public final class UpdateAutonomousDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest) + UpdateAutonomousDatabaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateAutonomousDatabaseRequest.newBuilder() to construct. + private UpdateAutonomousDatabaseRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAutonomousDatabaseRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAutonomousDatabaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest.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
                                              +   * Exadata 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
                                              +   * Exadata 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
                                              +   * Exadata 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 AUTONOMOUS_DATABASE_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.AutonomousDatabase autonomousDatabase_; + + /** + * + * + *
                                              +   * Required. The resource being updated
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autonomousDatabase field is set. + */ + @java.lang.Override + public boolean hasAutonomousDatabase() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Required. The resource being updated
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autonomousDatabase. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase() { + return autonomousDatabase_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance() + : autonomousDatabase_; + } + + /** + * + * + *
                                              +   * Required. The resource being updated
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder + getAutonomousDatabaseOrBuilder() { + return autonomousDatabase_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance() + : autonomousDatabase_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.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 + 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, getAutonomousDatabase()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + 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, getAutonomousDatabase()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + 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.oracledatabase.v1.UpdateAutonomousDatabaseRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest other = + (com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasAutonomousDatabase() != other.hasAutonomousDatabase()) return false; + if (hasAutonomousDatabase()) { + if (!getAutonomousDatabase().equals(other.getAutonomousDatabase())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasAutonomousDatabase()) { + hash = (37 * hash) + AUTONOMOUS_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getAutonomousDatabase().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest 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.oracledatabase.v1.UpdateAutonomousDatabaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest 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.oracledatabase.v1.UpdateAutonomousDatabaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `AutonomousDatabase.Update`.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest) + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest.class, + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest.Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getAutonomousDatabaseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + autonomousDatabase_ = null; + if (autonomousDatabaseBuilder_ != null) { + autonomousDatabaseBuilder_.dispose(); + autonomousDatabaseBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest build() { + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest buildPartial() { + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest result = + new com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest 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.autonomousDatabase_ = + autonomousDatabaseBuilder_ == null + ? autonomousDatabase_ + : autonomousDatabaseBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasAutonomousDatabase()) { + mergeAutonomousDatabase(other.getAutonomousDatabase()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getAutonomousDatabaseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + 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
                                              +     * Exadata 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
                                              +     * Exadata 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
                                              +     * Exadata 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
                                              +     * Exadata 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
                                              +     * Exadata 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
                                              +     * Exadata 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
                                              +     * Exadata 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 getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                              +     * Exadata 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
                                              +     * Exadata 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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.oracledatabase.v1.AutonomousDatabase autonomousDatabase_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabase, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder> + autonomousDatabaseBuilder_; + + /** + * + * + *
                                              +     * Required. The resource being updated
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autonomousDatabase field is set. + */ + public boolean hasAutonomousDatabase() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Required. The resource being updated
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autonomousDatabase. + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase() { + if (autonomousDatabaseBuilder_ == null) { + return autonomousDatabase_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance() + : autonomousDatabase_; + } else { + return autonomousDatabaseBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. The resource being updated
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutonomousDatabase( + com.google.cloud.oracledatabase.v1.AutonomousDatabase value) { + if (autonomousDatabaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autonomousDatabase_ = value; + } else { + autonomousDatabaseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being updated
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutonomousDatabase( + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder builderForValue) { + if (autonomousDatabaseBuilder_ == null) { + autonomousDatabase_ = builderForValue.build(); + } else { + autonomousDatabaseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being updated
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAutonomousDatabase( + com.google.cloud.oracledatabase.v1.AutonomousDatabase value) { + if (autonomousDatabaseBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && autonomousDatabase_ != null + && autonomousDatabase_ + != com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance()) { + getAutonomousDatabaseBuilder().mergeFrom(value); + } else { + autonomousDatabase_ = value; + } + } else { + autonomousDatabaseBuilder_.mergeFrom(value); + } + if (autonomousDatabase_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being updated
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAutonomousDatabase() { + bitField0_ = (bitField0_ & ~0x00000002); + autonomousDatabase_ = null; + if (autonomousDatabaseBuilder_ != null) { + autonomousDatabaseBuilder_.dispose(); + autonomousDatabaseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being updated
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder + getAutonomousDatabaseBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAutonomousDatabaseFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. The resource being updated
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder + getAutonomousDatabaseOrBuilder() { + if (autonomousDatabaseBuilder_ != null) { + return autonomousDatabaseBuilder_.getMessageOrBuilder(); + } else { + return autonomousDatabase_ == null + ? com.google.cloud.oracledatabase.v1.AutonomousDatabase.getDefaultInstance() + : autonomousDatabase_; + } + } + + /** + * + * + *
                                              +     * Required. The resource being updated
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabase, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder> + getAutonomousDatabaseFieldBuilder() { + if (autonomousDatabaseBuilder_ == null) { + autonomousDatabaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.AutonomousDatabase, + com.google.cloud.oracledatabase.v1.AutonomousDatabase.Builder, + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder>( + getAutonomousDatabase(), getParentForChildren(), isClean()); + autonomousDatabase_ = null; + } + return autonomousDatabaseBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest) + private static final com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest(); + } + + public static com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAutonomousDatabaseRequest 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.oracledatabase.v1.UpdateAutonomousDatabaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateAutonomousDatabaseRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateAutonomousDatabaseRequestOrBuilder.java new file mode 100644 index 000000000000..e96ee1372b73 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateAutonomousDatabaseRequestOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface UpdateAutonomousDatabaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                              +   * Exadata 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
                                              +   * Exadata 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
                                              +   * Exadata 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. The resource being updated
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autonomousDatabase field is set. + */ + boolean hasAutonomousDatabase(); + + /** + * + * + *
                                              +   * Required. The resource being updated
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autonomousDatabase. + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabase getAutonomousDatabase(); + + /** + * + * + *
                                              +   * Required. The resource being updated
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.AutonomousDatabaseOrBuilder getAutonomousDatabaseOrBuilder(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateExadbVmClusterRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateExadbVmClusterRequest.java new file mode 100644 index 000000000000..28477b768122 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateExadbVmClusterRequest.java @@ -0,0 +1,1338 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
                                              + * The request for `ExadbVmCluster.Update`. We only support adding the
                                              + * Virtual Machine to the ExadbVmCluster. Rest of the fields in ExadbVmCluster
                                              + * are immutable.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest} + */ +public final class UpdateExadbVmClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest) + UpdateExadbVmClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateExadbVmClusterRequest.newBuilder() to construct. + private UpdateExadbVmClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateExadbVmClusterRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateExadbVmClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                              +   * Optional. A mask specifying which fields in th VM Cluster should be
                                              +   * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +   * provided then all the fields in the VM Cluster are 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. A mask specifying which fields in th VM Cluster should be
                                              +   * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +   * provided then all the fields in the VM Cluster are 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. A mask specifying which fields in th VM Cluster should be
                                              +   * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +   * provided then all the fields in the VM Cluster are 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 EXADB_VM_CLUSTER_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.ExadbVmCluster exadbVmCluster_; + + /** + * + * + *
                                              +   * Required. The resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exadbVmCluster field is set. + */ + @java.lang.Override + public boolean hasExadbVmCluster() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +   * Required. The resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exadbVmCluster. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmCluster() { + return exadbVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance() + : exadbVmCluster_; + } + + /** + * + * + *
                                              +   * Required. The resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder getExadbVmClusterOrBuilder() { + return exadbVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance() + : exadbVmCluster_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.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. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.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 + 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, getExadbVmCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + 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, getExadbVmCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + 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.oracledatabase.v1.UpdateExadbVmClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest other = + (com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasExadbVmCluster() != other.hasExadbVmCluster()) return false; + if (hasExadbVmCluster()) { + if (!getExadbVmCluster().equals(other.getExadbVmCluster())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasExadbVmCluster()) { + hash = (37 * hash) + EXADB_VM_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getExadbVmCluster().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest 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.oracledatabase.v1.UpdateExadbVmClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest 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.oracledatabase.v1.UpdateExadbVmClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * The request for `ExadbVmCluster.Update`. We only support adding the
                                              +   * Virtual Machine to the ExadbVmCluster. Rest of the fields in ExadbVmCluster
                                              +   * are immutable.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest) + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest.class, + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getExadbVmClusterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + exadbVmCluster_ = null; + if (exadbVmClusterBuilder_ != null) { + exadbVmClusterBuilder_.dispose(); + exadbVmClusterBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.V1mainProto + .internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest build() { + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest buildPartial() { + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest result = + new com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest 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.exadbVmCluster_ = + exadbVmClusterBuilder_ == null ? exadbVmCluster_ : exadbVmClusterBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest other) { + if (other + == com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasExadbVmCluster()) { + mergeExadbVmCluster(other.getExadbVmCluster()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExadbVmClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                              +     * Optional. A mask specifying which fields in th VM Cluster should be
                                              +     * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +     * provided then all the fields in the VM Cluster are 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. A mask specifying which fields in th VM Cluster should be
                                              +     * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +     * provided then all the fields in the VM Cluster are 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. A mask specifying which fields in th VM Cluster should be
                                              +     * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +     * provided then all the fields in the VM Cluster are 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. A mask specifying which fields in th VM Cluster should be
                                              +     * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +     * provided then all the fields in the VM Cluster are 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. A mask specifying which fields in th VM Cluster should be
                                              +     * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +     * provided then all the fields in the VM Cluster are 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. A mask specifying which fields in th VM Cluster should be
                                              +     * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +     * provided then all the fields in the VM Cluster are 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. A mask specifying which fields in th VM Cluster should be
                                              +     * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +     * provided then all the fields in the VM Cluster are overwritten.
                                              +     * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Optional. A mask specifying which fields in th VM Cluster should be
                                              +     * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +     * provided then all the fields in the VM Cluster are 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. A mask specifying which fields in th VM Cluster should be
                                              +     * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +     * provided then all the fields in the VM Cluster are overwritten.
                                              +     * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.oracledatabase.v1.ExadbVmCluster exadbVmCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmCluster, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder> + exadbVmClusterBuilder_; + + /** + * + * + *
                                              +     * Required. The resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exadbVmCluster field is set. + */ + public boolean hasExadbVmCluster() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                              +     * Required. The resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exadbVmCluster. + */ + public com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmCluster() { + if (exadbVmClusterBuilder_ == null) { + return exadbVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance() + : exadbVmCluster_; + } else { + return exadbVmClusterBuilder_.getMessage(); + } + } + + /** + * + * + *
                                              +     * Required. The resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExadbVmCluster(com.google.cloud.oracledatabase.v1.ExadbVmCluster value) { + if (exadbVmClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exadbVmCluster_ = value; + } else { + exadbVmClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExadbVmCluster( + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder builderForValue) { + if (exadbVmClusterBuilder_ == null) { + exadbVmCluster_ = builderForValue.build(); + } else { + exadbVmClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExadbVmCluster(com.google.cloud.oracledatabase.v1.ExadbVmCluster value) { + if (exadbVmClusterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && exadbVmCluster_ != null + && exadbVmCluster_ + != com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance()) { + getExadbVmClusterBuilder().mergeFrom(value); + } else { + exadbVmCluster_ = value; + } + } else { + exadbVmClusterBuilder_.mergeFrom(value); + } + if (exadbVmCluster_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExadbVmCluster() { + bitField0_ = (bitField0_ & ~0x00000002); + exadbVmCluster_ = null; + if (exadbVmClusterBuilder_ != null) { + exadbVmClusterBuilder_.dispose(); + exadbVmClusterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder getExadbVmClusterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExadbVmClusterFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                              +     * Required. The resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder getExadbVmClusterOrBuilder() { + if (exadbVmClusterBuilder_ != null) { + return exadbVmClusterBuilder_.getMessageOrBuilder(); + } else { + return exadbVmCluster_ == null + ? com.google.cloud.oracledatabase.v1.ExadbVmCluster.getDefaultInstance() + : exadbVmCluster_; + } + } + + /** + * + * + *
                                              +     * Required. The resource being updated.
                                              +     * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmCluster, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder> + getExadbVmClusterFieldBuilder() { + if (exadbVmClusterBuilder_ == null) { + exadbVmClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.oracledatabase.v1.ExadbVmCluster, + com.google.cloud.oracledatabase.v1.ExadbVmCluster.Builder, + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder>( + getExadbVmCluster(), getParentForChildren(), isClean()); + exadbVmCluster_ = null; + } + return exadbVmClusterBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. An optional ID to identify the request. This value is used to
                                              +     * identify duplicate requests. If you make a request with the same request ID
                                              +     * and the original request is still in progress or completed, the server
                                              +     * ignores the second request. This prevents clients from
                                              +     * accidentally creating duplicate commitments.
                                              +     *
                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                              +     * 
                                              + * + * + * string request_id = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest) + private static final com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest(); + } + + public static com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExadbVmClusterRequest 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.oracledatabase.v1.UpdateExadbVmClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateExadbVmClusterRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateExadbVmClusterRequestOrBuilder.java new file mode 100644 index 000000000000..999389b77115 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateExadbVmClusterRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2025 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! +// source: google/cloud/oracledatabase/v1/oracledatabase.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.oracledatabase.v1; + +public interface UpdateExadbVmClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Optional. A mask specifying which fields in th VM Cluster should be
                                              +   * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +   * provided then all the fields in the VM Cluster are overwritten.
                                              +   * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                              +   * Optional. A mask specifying which fields in th VM Cluster should be
                                              +   * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +   * provided then all the fields in the VM Cluster are overwritten.
                                              +   * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                              +   * Optional. A mask specifying which fields in th VM Cluster should be
                                              +   * updated. A field specified in the mask is overwritten. If a mask isn't
                                              +   * provided then all the fields in the VM Cluster are overwritten.
                                              +   * 
                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                              +   * Required. The resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the exadbVmCluster field is set. + */ + boolean hasExadbVmCluster(); + + /** + * + * + *
                                              +   * Required. The resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exadbVmCluster. + */ + com.google.cloud.oracledatabase.v1.ExadbVmCluster getExadbVmCluster(); + + /** + * + * + *
                                              +   * Required. The resource being updated.
                                              +   * 
                                              + * + * + * .google.cloud.oracledatabase.v1.ExadbVmCluster exadb_vm_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.ExadbVmClusterOrBuilder getExadbVmClusterOrBuilder(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                              +   * Optional. An optional ID to identify the request. This value is used to
                                              +   * identify duplicate requests. If you make a request with the same request ID
                                              +   * and the original request is still in progress or completed, the server
                                              +   * ignores the second request. This prevents clients from
                                              +   * accidentally creating duplicate commitments.
                                              +   *
                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                              +   * 
                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java index a00c98724b0d..6719de14e48a 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java @@ -128,6 +128,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_CreateAutonomousDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -148,6 +152,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_RestartAutonomousDatabaseRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_RestartAutonomousDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -180,6 +192,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -197,22 +237,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\032\031google/api/resource.proto\0328google/cl" + "oud/oracledatabase/v1/autonomous_database.proto\032Fgoogle/cloud/oracledatabase/v1/" + "autonomous_database_character_set.proto\0329google/cloud/oracledatabase/v1/autonomo" - + "us_db_backup.proto\032:google/cloud/oracledatabase/v1/autonomous_db_version.proto\032," - + "google/cloud/oracledatabase/v1/db_node.proto\032.google/cloud/oracledatabase/v1/db_" - + "server.proto\0324google/cloud/oracledatabase/v1/db_system_shape.proto\0320google/cloud" - + "/oracledatabase/v1/entitlement.proto\0322google/cloud/oracledatabase/v1/exadata_inf" - + "ra.proto\032/google/cloud/oracledatabase/v1/gi_version.proto\032/google/cloud/oracleda" - + "tabase/v1/vm_cluster.proto\032#google/longr" - + "unning/operations.proto\032\033google/protobuf" - + "/empty.proto\032\037google/protobuf/timestamp.proto\"\253\001\n" + + "us_db_backup.proto\032:google/cloud/oracledatabase/v1/autonomous_db_version.proto\032-" + + "google/cloud/oracledatabase/v1/database.proto\032;google/cloud/oracledatabase/v1/da" + + "tabase_character_set.proto\032,google/cloud/oracledatabase/v1/db_node.proto\032.google" + + "/cloud/oracledatabase/v1/db_server.proto\032.google/cloud/oracledatabase/v1/db_syst" + + "em.proto\032Cgoogle/cloud/oracledatabase/v1/db_system_initial_storage_size.proto\0324g" + + "oogle/cloud/oracledatabase/v1/db_system_shape.proto\032/google/cloud/oracledatabase" + + "/v1/db_version.proto\0320google/cloud/oracledatabase/v1/entitlement.proto\0322google/c" + + "loud/oracledatabase/v1/exadata_infra.proto\0325google/cloud/oracledatabase/v1/exadb" + + "_vm_cluster.proto\032>google/cloud/oracledatabase/v1/exascale_db_storage_vault.prot" + + "o\032/google/cloud/oracledatabase/v1/gi_version.proto\0322google/cloud/oracledatabase/" + + "v1/minor_version.proto\0320google/cloud/oracledatabase/v1/odb_network.proto\032/google" + + "/cloud/oracledatabase/v1/odb_subnet.proto\0327google/cloud/oracledatabase/v1/plugga" + + "ble_database.proto\032/google/cloud/oracledatabase/v1/vm_cluster.proto\032#google/long" + + "running/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\327\001\n" + "&ListCloudExadataInfrastructuresRequest\022P\n" - + "\006parent\030\001 \001(\tB@\340A\002\372A:\0228oracle" - + "database.googleapis.com/CloudExadataInfrastructure\022\026\n" + + "\006parent\030\001 \001(\tB@\340A\002\372A:\0228oracledatab" + + "ase.googleapis.com/CloudExadataInfrastructure\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\"\245\001\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\"\245\001\n" + "\'ListCloudExadataInfrastructuresResponse\022a\n" - + "\035cloud_exadata_infrastructures\030\001 \003(\0132:.google.cloud.or" - + "acledatabase.v1.CloudExadataInfrastructure\022\027\n" + + "\035cloud_exadata_infrastructures\030\001 \003(\0132:.google.cloud.ora" + + "cledatabase.v1.CloudExadataInfrastructure\022\027\n" + "\017next_page_token\030\002 \001(\t\"v\n" + "$GetCloudExadataInfrastructureRequest\022N\n" + "\004name\030\001 \001(\tB@\340A\002\372A:\n" @@ -221,8 +270,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB@\340A\002\372A:\0228oracledatabase.googleapis.com/CloudExadataInfrastructure\022,\n" + "\037cloud_exadata_infrastructure_id\030\002 \001(\tB\003\340A\002\022e\n" - + "\034cloud_exadata_infrastructure\030\003 \001(\0132:." - + "google.cloud.oracledatabase.v1.CloudExadataInfrastructureB\003\340A\002\022\037\n\n" + + "\034cloud_exadata_infrastructure\030\003 \001(\0132:.g" + + "oogle.cloud.oracledatabase.v1.CloudExadataInfrastructureB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\256\001\n" + "\'DeleteCloudExadataInfrastructureRequest\022N\n" + "\004name\030\001 \001(\tB@\340A\002\372A:\n" @@ -230,10 +279,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\022\n" + "\005force\030\003 \001(\010B\003\340A\001\"\250\001\n" + "\032ListCloudVmClustersRequest\022D\n" - + "\006parent\030\001 \001(\tB" - + "4\340A\002\372A.\022,oracledatabase.googleapis.com/CloudVmCluster\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\006parent\030\001 \001(\tB4" + + "\340A\002\372A.\022,oracledatabase.googleapis.com/CloudVmCluster\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\"\201\001\n" + "\033ListCloudVmClustersResponse\022I\n" @@ -244,11 +292,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",oracledatabase.googleapis.com/CloudVmCluster\"\365\001\n" + "\033CreateCloudVmClusterRequest\022D\n" - + "\006parent\030\001 \001(\tB" - + "4\340A\002\372A.\022,oracledatabase.googleapis.com/CloudVmCluster\022 \n" + + "\006parent\030\001 \001(\tB4" + + "\340A\002\372A.\022,oracledatabase.googleapis.com/CloudVmCluster\022 \n" + "\023cloud_vm_cluster_id\030\002 \001(\tB\003\340A\002\022M\n" - + "\020cloud_vm_cluster\030\003 \001(\0132..goog" - + "le.cloud.oracledatabase.v1.CloudVmClusterB\003\340A\002\022\037\n\n" + + "\020cloud_vm_cluster\030\003 \001(\0132..googl" + + "e.cloud.oracledatabase.v1.CloudVmClusterB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\226\001\n" + "\033DeleteCloudVmClusterRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" @@ -256,8 +304,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\022\n" + "\005force\030\003 \001(\010B\003\340A\001\"\215\001\n" + "\027ListEntitlementsRequest\022A\n" - + "\006parent\030\001 \001(\tB1\340A" - + "\002\372A+\022)oracledatabase.googleapis.com/Entitlement\022\026\n" + + "\006parent\030\001 \001(\tB1\340A\002" + + "\372A+\022)oracledatabase.googleapis.com/Entitlement\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\"v\n" + "\030ListEntitlementsResponse\022A\n" @@ -279,20 +327,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\"h\n" + "\023ListDbNodesResponse\0228\n" + "\010db_nodes\030\001 \003(\0132&.google.cloud.oracledatabase.v1.DbNode\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\211\001\n" + + "\017next_page_token\030\002 \001(\t\"\236\001\n" + "\025ListGiVersionsRequest\022?\n" + "\006parent\030\001 \001(" + "\tB/\340A\002\372A)\022\'oracledatabase.googleapis.com/GiVersion\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\"q\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\"q\n" + "\026ListGiVersionsResponse\022>\n" + "\013gi_versions\030\001 \003(\0132).google.cloud.oracledatabase.v1.GiVersion\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\221\001\n" + + "\017next_page_token\030\002 \001(\t\"\246\001\n" + "\031ListDbSystemShapesRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+oracledatabase.googleapis.com/DbSystemShape\022\026\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+ora" + + "cledatabase.googleapis.com/DbSystemShape\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\"~\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\"~\n" + "\032ListDbSystemShapesResponse\022G\n" + "\020db_system_shapes\030\001" + " \003(\0132-.google.cloud.oracledatabase.v1.DbSystemShape\022\027\n" @@ -314,19 +364,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\214\001\n" + "\037ListAutonomousDatabasesResponse\022P\n" - + "\024autonomous_databases\030\001 \003(\01322.go" - + "ogle.cloud.oracledatabase.v1.AutonomousDatabase\022\027\n" + + "\024autonomous_databases\030\001 \003(\01322.g" + + "oogle.cloud.oracledatabase.v1.AutonomousDatabase\022\027\n" + "\017next_page_token\030\002 \001(\t\"f\n" + "\034GetAutonomousDatabaseRequest\022F\n" + "\004name\030\001 \001(\tB8\340A\002\372A2\n" + "0oracledatabase.googleapis.com/AutonomousDatabase\"\207\002\n" + "\037CreateAutonomousDatabaseRequest\022H\n" - + "\006parent\030\001 \001(\tB8\340A\002\372A2\0220or" - + "acledatabase.googleapis.com/AutonomousDatabase\022#\n" + + "\006parent\030\001 \001(\tB8\340A\002\372A2\0220o" + + "racledatabase.googleapis.com/AutonomousDatabase\022#\n" + "\026autonomous_database_id\030\002 \001(\tB\003\340A\002\022T\n" - + "\023autonomous_database\030\003 \001(\01322.googl" - + "e.cloud.oracledatabase.v1.AutonomousDatabaseB\003\340A\002\022\037\n\n" - + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\212\001\n" + + "\023autonomous_database\030\003 \001(\01322.goog" + + "le.cloud.oracledatabase.v1.AutonomousDatabaseB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\316\001\n" + + "\037UpdateAutonomousDatabaseRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022T\n" + + "\023autonomous_database\030\002 \001" + + "(\01322.google.cloud.oracledatabase.v1.AutonomousDatabaseB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\212\001\n" + "\037DeleteAutonomousDatabaseRequest\022F\n" + "\004name\030\001 \001(\tB8\340A\002\372A2\n" + "0oracledatabase.googleapis.com/AutonomousDatabase\022\037\n\n" @@ -343,168 +398,410 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0oracledatabase.googleapis.com/AutonomousDatabase\"j\n" + " RestartAutonomousDatabaseRequest\022F\n" + "\004name\030\001 \001(\tB8\340A\002\372A2\n" + + "0oracledatabase.googleapis.com/AutonomousDatabase\"\311\001\n" + + "#SwitchoverAutonomousDatabaseRequest\022F\n" + + "\004name\030\001 \001(\tB8\340A\002\372A2\n" + + "0oracledatabase.googleapis.com/AutonomousDatabase\022Z\n" + + "\030peer_autonomous_database\030\002 \001(\tB8\340A\002\372A2\n" + + "0oracledatabase.googleapis.com/AutonomousDatabase\"\307\001\n" + + "!FailoverAutonomousDatabaseRequest\022F\n" + + "\004name\030\001 \001(\tB8\340A\002\372A2\n" + + "0oracledatabase.googleapis.com/AutonomousDatabase\022Z\n" + + "\030peer_autonomous_database\030\002 \001(\tB8\340A\002\372A2\n" + "0oracledatabase.googleapis.com/AutonomousDatabase\"\343\001\n" + "\'GenerateAutonomousDatabaseWalletRequest\022F\n" + "\004name\030\001 \001(\tB8\340A\002\372A2\n" + "0oracledatabase.googleapis.com/AutonomousDatabase\022?\n" - + "\004type\030\002 \001(\0162,.g" - + "oogle.cloud.oracledatabase.v1.GenerateTypeB\003\340A\001\022\030\n" + + "\004type\030\002" + + " \001(\0162,.google.cloud.oracledatabase.v1.GenerateTypeB\003\340A\001\022\030\n" + "\013is_regional\030\003 \001(\010B\003\340A\001\022\025\n" + "\010password\030\004 \001(\tB\003\340A\002\"H\n" + "(GenerateAutonomousDatabaseWalletResponse\022\034\n" + "\017archive_content\030\001 \001(\014B\003\340A\003\"\235\001\n" + "\037ListAutonomousDbVersionsRequest\022I\n" - + "\006parent\030\001 \001(\tB9\340A\002\372A3\0221oracleda" - + "tabase.googleapis.com/AutonomousDbVersion\022\026\n" + + "\006parent\030\001 \001(\tB9" + + "\340A\002\372A3\0221oracledatabase.googleapis.com/AutonomousDbVersion\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\"\220\001\n" + " ListAutonomousDbVersionsResponse\022S\n" - + "\026autonomous_db_versions\030\001 \003(\0132" - + "3.google.cloud.oracledatabase.v1.AutonomousDbVersion\022\027\n" + + "\026autonomous_db_versions\030\001" + + " \003(\01323.google.cloud.oracledatabase.v1.AutonomousDbVersion\022\027\n" + "\017next_page_token\030\002 \001(\t\"\310\001\n" + "*ListAutonomousDatabaseCharacterSetsRequest\022T\n" - + "\006parent\030\001 \001(\tBD\340A\002\372A>\022\022.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet\022\027\n" + + "\"autonomous_database_character_sets\030\001 \003(\0132>.google.cl" + + "oud.oracledatabase.v1.AutonomousDatabaseCharacterSet\022\027\n" + "\017next_page_token\030\002 \001(\t\"\274\001\n" + "$ListAutonomousDatabaseBackupsRequest\022N\n" - + "\006parent\030\001 \001(\tB>" - + "\340A\002\372A8\0226oracledatabase.googleapis.com/AutonomousDatabaseBackup\022\023\n" + + "\006parent\030\001 \001(\tB>\340A\002\372A8\0226oracledatabase.g" + + "oogleapis.com/AutonomousDatabaseBackup\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\004 \001(\tB\003\340A\001\"\237\001\n" + "%ListAutonomousDatabaseBackupsResponse\022]\n" - + "\033autonomous_database_backups\030\001" - + " \003(\01328.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup\022\027\n" - + "\017next_page_token\030\002 \001(\t2\3610\n" + + "\033autonomous_database_backups\030\001 \003(\01328.google.clo" + + "ud.oracledatabase.v1.AutonomousDatabaseBackup\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\365\001\n" + + "\033CreateExadbVmClusterRequest\022D\n" + + "\006parent\030\001 \001(\tB4" + + "\340A\002\372A.\022,oracledatabase.googleapis.com/ExadbVmCluster\022 \n" + + "\023exadb_vm_cluster_id\030\002 \001(\tB\003\340A\002\022M\n" + + "\020exadb_vm_cluster\030\003 \001(\0132..googl" + + "e.cloud.oracledatabase.v1.ExadbVmClusterB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\202\001\n" + + "\033DeleteExadbVmClusterRequest\022B\n" + + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + + ",oracledatabase.googleapis.com/ExadbVmCluster\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"^\n" + + "\030GetExadbVmClusterRequest\022B\n" + + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + + ",oracledatabase.googleapis.com/ExadbVmCluster\"\277\001\n" + + "\032ListExadbVmClustersRequest\022D\n" + + "\006parent\030\001 \001(\tB4\340A\002\372" + + "A.\022,oracledatabase.googleapis.com/ExadbVmCluster\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\"\201\001\n" + + "\033ListExadbVmClustersResponse\022I\n" + + "\021exadb_vm_clusters\030\001 \003(\013" + + "2..google.cloud.oracledatabase.v1.ExadbVmCluster\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\303\001\n" + + "\033UpdateExadbVmClusterRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022M\n" + + "\020exadb_vm_cluster\030\002 \001(\0132..google.cloud" + + ".oracledatabase.v1.ExadbVmClusterB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\250\001\n" + + ")RemoveVirtualMachineExadbVmClusterRequest\022B\n" + + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + + ",oracledatabase.googleapis.com/ExadbVmCluster\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\026\n" + + "\thostnames\030\004 \003(\tB\003\340A\0022\302m\n" + "\016OracleDatabase\022\204\002\n" - + "\037ListCloudExadataInfrastructures\022F.google.c" - + "loud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest\032G.google.cloud.ora" - + "cledatabase.v1.ListCloudExadataInfrastru" - + "cturesResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1/{pa" - + "rent=projects/*/locations/*}/cloudExadataInfrastructures\022\361\001\n" - + "\035GetCloudExadataInfrastructure\022D.google.cloud.oracledatabase" - + ".v1.GetCloudExadataInfrastructureRequest\032:.google.cloud.oracledatabase.v1.CloudE" - + "xadataInfrastructure\"N\332A\004name\202\323\344\223\002A\022?/v1" - + "/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\022\352\002\n" - + " CreateCloudExadataInfrastructure\022G.google.cloud.oracled" - + "atabase.v1.CreateCloudExadataInfrastruct" - + "ureRequest\032\035.google.longrunning.Operation\"\335\001\312A/\n" - + "\032CloudExadataInfrastructure\022\021OperationMetadata\332ACparent,cloud_exadata_in" - + "frastructure,cloud_exadata_infrastructur" - + "e_id\202\323\344\223\002_\"?/v1/{parent=projects/*/locat" - + "ions/*}/cloudExadataInfrastructures:\034cloud_exadata_infrastructure\022\207\002\n" - + " DeleteCloudExadataInfrastructure\022G.google.cloud.or" - + "acledatabase.v1.DeleteCloudExadataInfras" - + "tructureRequest\032\035.google.longrunning.Operation\"{\312A*\n" - + "\025google.protobuf.Empty\022\021Oper" - + "ationMetadata\332A\004name\202\323\344\223\002A*?/v1/{name=pr" - + "ojects/*/locations/*/cloudExadataInfrastructures/*}\022\324\001\n" - + "\023ListCloudVmClusters\022:.google.cloud.oracledatabase.v1.ListCloudVm" - + "ClustersRequest\032;.google.cloud.oracledat" - + "abase.v1.ListCloudVmClustersResponse\"D\332A" - + "\006parent\202\323\344\223\0025\0223/v1/{parent=projects/*/locations/*}/cloudVmClusters\022\301\001\n" - + "\021GetCloudVmCluster\0228.google.cloud.oracledatabase.v" - + "1.GetCloudVmClusterRequest\032..google.clou" - + "d.oracledatabase.v1.CloudVmCluster\"B\332A\004n" - + "ame\202\323\344\223\0025\0223/v1/{name=projects/*/locations/*/cloudVmClusters/*}\022\226\002\n" - + "\024CreateCloudVmCluster\022;.google.cloud.oracledatabase.v1" - + ".CreateCloudVmClusterRequest\032\035.google.longrunning.Operation\"\241\001\312A#\n" - + "\016CloudVmCluster\022\021OperationMetadata\332A+parent,cloud_vm_c" - + "luster,cloud_vm_cluster_id\202\323\344\223\002G\"3/v1/{p" - + "arent=projects/*/locations/*}/cloudVmClusters:\020cloud_vm_cluster\022\343\001\n" - + "\024DeleteCloudVmCluster\022;.google.cloud.oracledatabase.v" - + "1.DeleteCloudVmClusterRequest\032\035.google.longrunning.Operation\"o\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0025" - + "*3/v1/{name=projects/*/locations/*/cloudVmClusters/*}\022\310\001\n" - + "\020ListEntitlements\0227.google.cloud.oracledatabase.v1.ListEntitlem" - + "entsRequest\0328.google.cloud.oracledatabas" - + "e.v1.ListEntitlementsResponse\"A\332A\006parent" - + "\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/entitlements\022\332\001\n\r" - + "ListDbServers\0224.google.cloud.oracledatabase.v1.ListDbServer" - + "sRequest\0325.google.cloud.oracledatabase.v" - + "1.ListDbServersResponse\"\\\332A\006parent\202\323\344\223\002M" - + "\022K/v1/{parent=projects/*/locations/*/clo" - + "udExadataInfrastructures/*}/dbServers\022\306\001\n" - + "\013ListDbNodes\0222.google.cloud.oracledatab" - + "ase.v1.ListDbNodesRequest\0323.google.cloud.oracledatabase.v1.ListDbNodesResponse\"N" - + "\332A\006parent\202\323\344\223\002?\022=/v1/{parent=projects/*/" - + "locations/*/cloudVmClusters/*}/dbNodes\022\300\001\n" - + "\016ListGiVersions\0225.google.cloud.oracled" - + "atabase.v1.ListGiVersionsRequest\0326.google.cloud.oracledatabase.v1.ListGiVersions" - + "Response\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=projects/*/locations/*}/giVersions\022\320\001\n" - + "\022ListDbSystemShapes\0229.google.cloud.oracleda" - + "tabase.v1.ListDbSystemShapesRequest\032:.google.cloud.oracledatabase.v1.ListDbSyste" - + "mShapesResponse\"C\332A\006parent\202\323\344\223\0024\0222/v1/{p" - + "arent=projects/*/locations/*}/dbSystemShapes\022\344\001\n" - + "\027ListAutonomousDatabases\022>.google.cloud.oracledatabase.v1.ListAutonomous" - + "DatabasesRequest\032?.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRespons" - + "e\"H\332A\006parent\202\323\344\223\0029\0227/v1/{parent=projects/*/locations/*}/autonomousDatabases\022\321\001\n" - + "\025GetAutonomousDatabase\022<.google.cloud.ora" - + "cledatabase.v1.GetAutonomousDatabaseRequest\0322.google.cloud.oracledatabase.v1.Aut" - + "onomousDatabase\"F\332A\004name\202\323\344\223\0029\0227/v1/{nam" - + "e=projects/*/locations/*/autonomousDatabases/*}\022\257\002\n" - + "\030CreateAutonomousDatabase\022?.google.cloud.oracledatabase.v1.CreateAuto" - + "nomousDatabaseRequest\032\035.google.longrunning.Operation\"\262\001\312A\'\n" - + "\022AutonomousDatabase\022\021OperationMetadata\332A1parent,autonomous_da" - + "tabase,autonomous_database_id\202\323\344\223\002N\"7/v1" - + "/{parent=projects/*/locations/*}/autonomousDatabases:\023autonomous_database\022\357\001\n" - + "\030DeleteAutonomousDatabase\022?.google.cloud.or" - + "acledatabase.v1.DeleteAutonomousDatabase" - + "Request\032\035.google.longrunning.Operation\"s\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMet" - + "adata\332A\004name\202\323\344\223\0029*7/v1/{name=projects/*/locations/*/autonomousDatabases/*}\022\207\002\n" - + "\031RestoreAutonomousDatabase\022@.google.cloud" - + ".oracledatabase.v1.RestoreAutonomousData" - + "baseRequest\032\035.google.longrunning.Operation\"\210\001\312A\'\n" - + "\022AutonomousDatabase\022\021OperationM" - + "etadata\332A\021name,restore_time\202\323\344\223\002D\"?/v1/{" - + "name=projects/*/locations/*/autonomousDatabases/*}:restore:\001*\022\251\002\n" - + " GenerateAutonomousDatabaseWallet\022G.google.cloud.oracle" - + "database.v1.GenerateAutonomousDatabaseWalletRequest\032H.google.cloud.oracledatabas" - + "e.v1.GenerateAutonomousDatabaseWalletRes" - + "ponse\"r\332A\036name,type,is_regional,password" - + "\202\323\344\223\002K\"F/v1/{name=projects/*/locations/*" - + "/autonomousDatabases/*}:generateWallet:\001*\022\350\001\n" - + "\030ListAutonomousDbVersions\022?.google.cloud.oracledatabase.v1.ListAutonomousDb" - + "VersionsRequest\032@.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRespons" - + "e\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=projects/*/locations/*}/autonomousDbVersions\022\224\002\n" - + "#ListAutonomousDatabaseCharacterSets\022J.google.cloud.oracledatabase.v1.ListAutono" - + "mousDatabaseCharacterSetsRequest\032K.google.cloud.oracledatabase.v1.ListAutonomous" - + "DatabaseCharacterSetsResponse\"T\332A\006parent" - + "\202\323\344\223\002E\022C/v1/{parent=projects/*/locations/*}/autonomousDatabaseCharacterSets\022\374\001\n" - + "\035ListAutonomousDatabaseBackups\022D.google.c" - + "loud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest\032E.google.cloud.oracl" - + "edatabase.v1.ListAutonomousDatabaseBacku" - + "psResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent" - + "=projects/*/locations/*}/autonomousDatabaseBackups\022\360\001\n" - + "\026StopAutonomousDatabase\022=.google.cloud.oracledatabase.v1.StopAuton" - + "omousDatabaseRequest\032\035.google.longrunning.Operation\"x\312A\'\n" - + "\022AutonomousDatabase\022\021Op" - + "erationMetadata\332A\004name\202\323\344\223\002A\".google.cloud.oracledatabase.v1.Start" - + "AutonomousDatabaseRequest\032\035.google.longrunning.Operation\"y\312A\'\n" - + "\022AutonomousDatabas" - + "e\022\021OperationMetadata\332A\004name\202\323\344\223\002B\"=/v1/{" - + "name=projects/*/locations/*/autonomousDatabases/*}:start:\001*\022\371\001\n" - + "\031RestartAutonomousDatabase\022@.google.cloud.oracledatabase." - + "v1.RestartAutonomousDatabaseRequest\032\035.google.longrunning.Operation\"{\312A\'\n" - + "\022AutonomousDatabase\022\021OperationMetadata\332A\004name\202\323\344" - + "\223\002D\"?/v1/{name=projects/*/locations/*/au" - + "tonomousDatabases/*}:restart:\001*\032Q\312A\035orac" - + "ledatabase.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\266\002\n" - + "\"com.google.cloud.oracledatabase.v1B\013V1mai" - + "nProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledataba" - + "sepb\252\002\036Google.Cloud.OracleDatabase.V1\312\002\036" - + "Google\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1\352AN\n" - + "\036compute.googleapis.com/Network\022,projects/{project" - + "}/global/networks/{network}b\006proto3" + + "\037ListCloudExadataInfrastructures\022F.google.cloud.oracled" + + "atabase.v1.ListCloudExadataInfrastructuresRequest\032G.google.cloud.oracledatabase." + + "v1.ListCloudExadataInfrastructuresRespon" + + "se\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=project" + + "s/*/locations/*}/cloudExadataInfrastructures\022\361\001\n" + + "\035GetCloudExadataInfrastructure\022D.google.cloud.oracledatabase.v1.GetCloud" + + "ExadataInfrastructureRequest\032:.google.cloud.oracledatabase.v1.CloudExadataInfras" + + "tructure\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=proje" + + "cts/*/locations/*/cloudExadataInfrastructures/*}\022\352\002\n" + + " CreateCloudExadataInfrastructure\022G.google.cloud.oracledatabase.v1.C" + + "reateCloudExadataInfrastructureRequest\032\035.google.longrunning.Operation\"\335\001\312A/\n" + + "\032CloudExadataInfrastructure\022\021OperationMetada" + + "ta\332ACparent,cloud_exadata_infrastructure" + + ",cloud_exadata_infrastructure_id\202\323\344\223\002_\"?" + + "/v1/{parent=projects/*/locations/*}/clou" + + "dExadataInfrastructures:\034cloud_exadata_infrastructure\022\207\002\n" + + " DeleteCloudExadataInfrastructure\022G.google.cloud.oracledatabase" + + ".v1.DeleteCloudExadataInfrastructureRequest\032\035.google.longrunning.Operation\"{\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002A*?/v1/{name=projects/*/loc" + + "ations/*/cloudExadataInfrastructures/*}\022\324\001\n" + + "\023ListCloudVmClusters\022:.google.cloud.oracledatabase.v1.ListCloudVmClustersRequ" + + "est\032;.google.cloud.oracledatabase.v1.Lis" + + "tCloudVmClustersResponse\"D\332A\006parent\202\323\344\223\002" + + "5\0223/v1/{parent=projects/*/locations/*}/cloudVmClusters\022\301\001\n" + + "\021GetCloudVmCluster\0228.google.cloud.oracledatabase.v1.GetCloudVm" + + "ClusterRequest\032..google.cloud.oracledata" + + "base.v1.CloudVmCluster\"B\332A\004name\202\323\344\223\0025\0223/" + + "v1/{name=projects/*/locations/*/cloudVmClusters/*}\022\226\002\n" + + "\024CreateCloudVmCluster\022;.google.cloud.oracledatabase.v1.CreateCloud" + + "VmClusterRequest\032\035.google.longrunning.Operation\"\241\001\312A#\n" + + "\016CloudVmCluster\022\021OperationMetadata\332A+parent,cloud_vm_cluster,cloud" + + "_vm_cluster_id\202\323\344\223\002G\"3/v1/{parent=projec" + + "ts/*/locations/*}/cloudVmClusters:\020cloud_vm_cluster\022\343\001\n" + + "\024DeleteCloudVmCluster\022;.google.cloud.oracledatabase.v1.DeleteClou" + + "dVmClusterRequest\032\035.google.longrunning.Operation\"o\312A*\n" + + "\025google.protobuf.Empty\022\021Op" + + "erationMetadata\332A\004name\202\323\344\223\0025*3/v1/{name=" + + "projects/*/locations/*/cloudVmClusters/*}\022\310\001\n" + + "\020ListEntitlements\0227.google.cloud.oracledatabase.v1.ListEntitlementsRequest\032" + + "8.google.cloud.oracledatabase.v1.ListEnt" + + "itlementsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/" + + "{parent=projects/*/locations/*}/entitlements\022\332\001\n\r" + + "ListDbServers\0224.google.cloud.oracledatabase.v1.ListDbServersRequest\0325.g" + + "oogle.cloud.oracledatabase.v1.ListDbServ" + + "ersResponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1/{paren" + + "t=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServers\022\211\002\n" + + "\013ListDbNodes\0222.google.cloud.oracledatabase.v1.ListD" + + "bNodesRequest\0323.google.cloud.oracledatab" + + "ase.v1.ListDbNodesResponse\"\220\001\332A\006parent\202\323" + + "\344\223\002\200\001\022=/v1/{parent=projects/*/locations/" + + "*/cloudVmClusters/*}/dbNodesZ?\022=/v1/{par" + + "ent=projects/*/locations/*/exadbVmClusters/*}/dbNodes\022\300\001\n" + + "\016ListGiVersions\0225.google.cloud.oracledatabase.v1.ListGiVersions" + + "Request\0326.google.cloud.oracledatabase.v1" + + ".ListGiVersionsResponse\"?\332A\006parent\202\323\344\223\0020" + + "\022./v1/{parent=projects/*/locations/*}/giVersions\022\331\001\n" + + "\021ListMinorVersions\0228.google.cloud.oracledatabase.v1.ListMinorVersion" + + "sRequest\0329.google.cloud.oracledatabase.v" + + "1.ListMinorVersionsResponse\"O\332A\006parent\202\323" + + "\344\223\002@\022>/v1/{parent=projects/*/locations/*/giVersions/*}/minorVersions\022\320\001\n" + + "\022ListDbSystemShapes\0229.google.cloud.oracledatabas" + + "e.v1.ListDbSystemShapesRequest\032:.google.cloud.oracledatabase.v1.ListDbSystemShap" + + "esResponse\"C\332A\006parent\202\323\344\223\0024\0222/v1/{parent" + + "=projects/*/locations/*}/dbSystemShapes\022\344\001\n" + + "\027ListAutonomousDatabases\022>.google.cloud.oracledatabase.v1.ListAutonomousDatab" + + "asesRequest\032?.google.cloud.oracledatabas" + + "e.v1.ListAutonomousDatabasesResponse\"H\332A" + + "\006parent\202\323\344\223\0029\0227/v1/{parent=projects/*/locations/*}/autonomousDatabases\022\321\001\n" + + "\025GetAutonomousDatabase\022<.google.cloud.oracleda" + + "tabase.v1.GetAutonomousDatabaseRequest\0322.google.cloud.oracledatabase.v1.Autonomo" + + "usDatabase\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=pro" + + "jects/*/locations/*/autonomousDatabases/*}\022\257\002\n" + + "\030CreateAutonomousDatabase\022?.google.cloud.oracledatabase.v1.CreateAutonomou" + + "sDatabaseRequest\032\035.google.longrunning.Operation\"\262\001\312A\'\n" + + "\022AutonomousDatabase\022\021OperationMetadata\332A1parent,autonomous_databas" + + "e,autonomous_database_id\202\323\344\223\002N\"7/v1/{par" + + "ent=projects/*/locations/*}/autonomousDatabases:\023autonomous_database\022\261\002\n" + + "\030UpdateAutonomousDatabase\022?.google.cloud.oracled" + + "atabase.v1.UpdateAutonomousDatabaseRequest\032\035.google.longrunning.Operation\"\264\001\312A\'\n" + + "\022AutonomousDatabase\022\021OperationMetadata\332A" + + "\037autonomous_database,update_mask\202\323\344\223\002b2K" + + "/v1/{autonomous_database.name=projects/*" + + "/locations/*/autonomousDatabases/*}:\023autonomous_database\022\357\001\n" + + "\030DeleteAutonomousDatabase\022?.google.cloud.oracledatabase.v1.D" + + "eleteAutonomousDatabaseRequest\032\035.google.longrunning.Operation\"s\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "9*7/v1/{name=projects/*/locations/*/autonomousDatabases/*}\022\207\002\n" + + "\031RestoreAutonomousDatabase\022@.google.cloud.oracledatabase.v" + + "1.RestoreAutonomousDatabaseRequest\032\035.google.longrunning.Operation\"\210\001\312A\'\n" + + "\022AutonomousDatabase\022\021OperationMetadata\332A\021name,re" + + "store_time\202\323\344\223\002D\"?/v1/{name=projects/*/l" + + "ocations/*/autonomousDatabases/*}:restore:\001*\022\251\002\n" + + " GenerateAutonomousDatabaseWallet\022G.google.cloud.oracledatabase.v1.Gener" + + "ateAutonomousDatabaseWalletRequest\032H.google.cloud.oracledatabase.v1.GenerateAuto" + + "nomousDatabaseWalletResponse\"r\332A\036name,ty" + + "pe,is_regional,password\202\323\344\223\002K\"F/v1/{name" + + "=projects/*/locations/*/autonomousDatabases/*}:generateWallet:\001*\022\350\001\n" + + "\030ListAutonomousDbVersions\022?.google.cloud.oracledatab" + + "ase.v1.ListAutonomousDbVersionsRequest\032@.google.cloud.oracledatabase.v1.ListAuto" + + "nomousDbVersionsResponse\"I\332A\006parent\202\323\344\223\002" + + ":\0228/v1/{parent=projects/*/locations/*}/autonomousDbVersions\022\224\002\n" + + "#ListAutonomousDatabaseCharacterSets\022J.google.cloud.oracl" + + "edatabase.v1.ListAutonomousDatabaseCharacterSetsRequest\032K.google.cloud.oracledat" + + "abase.v1.ListAutonomousDatabaseCharacter" + + "SetsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{pare" + + "nt=projects/*/locations/*}/autonomousDatabaseCharacterSets\022\374\001\n" + + "\035ListAutonomousDatabaseBackups\022D.google.cloud.oracledataba" + + "se.v1.ListAutonomousDatabaseBackupsRequest\032E.google.cloud.oracledatabase.v1.List" + + "AutonomousDatabaseBackupsResponse\"N\332A\006pa" + + "rent\202\323\344\223\002?\022=/v1/{parent=projects/*/locations/*}/autonomousDatabaseBackups\022\360\001\n" + + "\026StopAutonomousDatabase\022=.google.cloud.orac" + + "ledatabase.v1.StopAutonomousDatabaseRequest\032\035.google.longrunning.Operation\"x\312A\'\n" + + "\022AutonomousDatabase\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\002A\".google.cloud.oracledatabase.v1.StartAutonomousDatabas" + + "eRequest\032\035.google.longrunning.Operation\"y\312A\'\n" + + "\022AutonomousDatabase\022\021OperationMetad" + + "ata\332A\004name\202\323\344\223\002B\"=/v1/{name=projects/*/l" + + "ocations/*/autonomousDatabases/*}:start:\001*\022\371\001\n" + + "\031RestartAutonomousDatabase\022@.googl", + "e.cloud.oracledatabase.v1.RestartAutonom" + + "ousDatabaseRequest\032\035.google.longrunning." + + "Operation\"{\312A\'\n\022AutonomousDatabase\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\002D\"?/v1/{name=pr" + + "ojects/*/locations/*/autonomousDatabases" + + "/*}:restart:\001*\022\234\002\n\034SwitchoverAutonomousD" + + "atabase\022C.google.cloud.oracledatabase.v1" + + ".SwitchoverAutonomousDatabaseRequest\032\035.g" + + "oogle.longrunning.Operation\"\227\001\312A\'\n\022Auton" + + "omousDatabase\022\021OperationMetadata\332A\035name," + + "peer_autonomous_database\202\323\344\223\002G\"B/v1/{nam" + + "e=projects/*/locations/*/autonomousDatab" + + "ases/*}:switchover:\001*\022\226\002\n\032FailoverAutono" + + "mousDatabase\022A.google.cloud.oracledataba" + + "se.v1.FailoverAutonomousDatabaseRequest\032" + + "\035.google.longrunning.Operation\"\225\001\312A\'\n\022Au" + + "tonomousDatabase\022\021OperationMetadata\332A\035na" + + "me,peer_autonomous_database\202\323\344\223\002E\"@/v1/{" + + "name=projects/*/locations/*/autonomousDa" + + "tabases/*}:failover:\001*\022\304\001\n\017ListOdbNetwor" + + "ks\0226.google.cloud.oracledatabase.v1.List" + + "OdbNetworksRequest\0327.google.cloud.oracle" + + "database.v1.ListOdbNetworksResponse\"@\332A\006" + + "parent\202\323\344\223\0021\022//v1/{parent=projects/*/loc" + + "ations/*}/odbNetworks\022\261\001\n\rGetOdbNetwork\022" + + "4.google.cloud.oracledatabase.v1.GetOdbN" + + "etworkRequest\032*.google.cloud.oracledatab" + + "ase.v1.OdbNetwork\">\332A\004name\202\323\344\223\0021\022//v1/{n" + + "ame=projects/*/locations/*/odbNetworks/*" + + "}\022\367\001\n\020CreateOdbNetwork\0227.google.cloud.or" + + "acledatabase.v1.CreateOdbNetworkRequest\032" + + "\035.google.longrunning.Operation\"\212\001\312A\037\n\nOd" + + "bNetwork\022\021OperationMetadata\332A!parent,odb" + + "_network,odb_network_id\202\323\344\223\002>\"//v1/{pare" + + "nt=projects/*/locations/*}/odbNetworks:\013" + + "odb_network\022\327\001\n\020DeleteOdbNetwork\0227.googl" + + "e.cloud.oracledatabase.v1.DeleteOdbNetwo" + + "rkRequest\032\035.google.longrunning.Operation" + + "\"k\312A*\n\025google.protobuf.Empty\022\021OperationM" + + "etadata\332A\004name\202\323\344\223\0021*//v1/{name=projects" + + "/*/locations/*/odbNetworks/*}\022\316\001\n\016ListOd" + + "bSubnets\0225.google.cloud.oracledatabase.v" + + "1.ListOdbSubnetsRequest\0326.google.cloud.o" + + "racledatabase.v1.ListOdbSubnetsResponse\"" + + "M\332A\006parent\202\323\344\223\002>\022\022*\332A\006parent\202\323\344\223\002" + + "/\022-/v1/{parent=projects/*/locations/*}/d" + + "atabases\022\251\001\n\013GetDatabase\0222.google.cloud." + + "oracledatabase.v1.GetDatabaseRequest\032(.g" + + "oogle.cloud.oracledatabase.v1.Database\"<" + + "\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/loca" + + "tions/*/databases/*}\022\340\001\n\026ListPluggableDa" + + "tabases\022=.google.cloud.oracledatabase.v1" + + ".ListPluggableDatabasesRequest\032>.google." + + "cloud.oracledatabase.v1.ListPluggableDat" + + "abasesResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{pa" + + "rent=projects/*/locations/*}/pluggableDa" + + "tabases\022\315\001\n\024GetPluggableDatabase\022;.googl" + + "e.cloud.oracledatabase.v1.GetPluggableDa" + + "tabaseRequest\0321.google.cloud.oracledatab" + + "ase.v1.PluggableDatabase\"E\332A\004name\202\323\344\223\0028\022" + + "6/v1/{name=projects/*/locations/*/plugga" + + "bleDatabases/*}\022\274\001\n\rListDbSystems\0224.goog" + + "le.cloud.oracledatabase.v1.ListDbSystems" + + "Request\0325.google.cloud.oracledatabase.v1" + + ".ListDbSystemsResponse\">\332A\006parent\202\323\344\223\002/\022" + + "-/v1/{parent=projects/*/locations/*}/dbS" + + "ystems\022\251\001\n\013GetDbSystem\0222.google.cloud.or" + + "acledatabase.v1.GetDbSystemRequest\032(.goo" + + "gle.cloud.oracledatabase.v1.DbSystem\"<\332A" + + "\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locati" + + "ons/*/dbSystems/*}\022\351\001\n\016CreateDbSystem\0225." + + "google.cloud.oracledatabase.v1.CreateDbS" + + "ystemRequest\032\035.google.longrunning.Operat" + + "ion\"\200\001\312A\035\n\010DbSystem\022\021OperationMetadata\332A" + + "\035parent,db_system,db_system_id\202\323\344\223\002:\"-/v" + + "1/{parent=projects/*/locations/*}/dbSyst" + + "ems:\tdb_system\022\321\001\n\016DeleteDbSystem\0225.goog" + + "le.cloud.oracledatabase.v1.DeleteDbSyste" + + "mRequest\032\035.google.longrunning.Operation\"" + + "i\312A*\n\025google.protobuf.Empty\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\002/*-/v1/{name=projects/" + + "*/locations/*/dbSystems/*}\022\300\001\n\016ListDbVer" + + "sions\0225.google.cloud.oracledatabase.v1.L" + + "istDbVersionsRequest\0326.google.cloud.orac" + + "ledatabase.v1.ListDbVersionsResponse\"?\332A" + + "\006parent\202\323\344\223\0020\022./v1/{parent=projects/*/lo" + + "cations/*}/dbVersions\022\354\001\n\031ListDatabaseCh" + + "aracterSets\022@.google.cloud.oracledatabas" + + "e.v1.ListDatabaseCharacterSetsRequest\032A." + + "google.cloud.oracledatabase.v1.ListDatab" + + "aseCharacterSetsResponse\"J\332A\006parent\202\323\344\223\002" + + ";\0229/v1/{parent=projects/*/locations/*}/d" + + "atabaseCharacterSets\032Q\312A\035oracledatabase." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\261\003\n\"com.google.c" + + "loud.oracledatabase.v1B\013V1mainProtoP\001ZJc" + + "loud.google.com/go/oracledatabase/apiv1/" + + "oracledatabasepb;oracledatabasepb\252\002\036Goog" + + "le.Cloud.OracleDatabase.V1\312\002\036Google\\Clou" + + "d\\OracleDatabase\\V1\352\002!Google::Cloud::Ora" + + "cleDatabase::V1\352AN\n\036compute.googleapis.c" + + "om/Network\022,projects/{project}/global/ne" + + "tworks/{network}\352Ax\n!cloudkms.googleapis" + + ".com/CryptoKey\022Sprojects/{project}/locat" + + "ions/{location}/keyRings/{key_ring}/cryp" + + "toKeys/{crypto_key}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -520,15 +817,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { .getDescriptor(), com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto.getDescriptor(), com.google.cloud.oracledatabase.v1.AutonomousDbVersionProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.DatabaseProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto.getDescriptor(), com.google.cloud.oracledatabase.v1.DbNodeProto.getDescriptor(), com.google.cloud.oracledatabase.v1.DbServerProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.DbSystemProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto.getDescriptor(), com.google.cloud.oracledatabase.v1.DbSystemShapeProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.DbVersionProto.getDescriptor(), com.google.cloud.oracledatabase.v1.EntitlementProto.getDescriptor(), com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.ExadbVmClusterProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto.getDescriptor(), com.google.cloud.oracledatabase.v1.GiVersionProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.MinorVersionProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.OdbNetworkProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.OdbSubnetProto.getDescriptor(), + com.google.cloud.oracledatabase.v1.PluggableDatabaseProto.getDescriptor(), com.google.cloud.oracledatabase.v1.CloudVmClusterProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_descriptor = @@ -537,7 +846,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_oracledatabase_v1_ListCloudExadataInfrastructuresResponse_descriptor = getDescriptor().getMessageTypes().get(1); @@ -665,7 +974,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListGiVersionsRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", + "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_oracledatabase_v1_ListGiVersionsResponse_descriptor = getDescriptor().getMessageTypes().get(17); @@ -681,7 +990,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", + "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_oracledatabase_v1_ListDbSystemShapesResponse_descriptor = getDescriptor().getMessageTypes().get(19); @@ -738,8 +1047,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "AutonomousDatabaseId", "AutonomousDatabase", "RequestId", }); - internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor = + internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_UpdateAutonomousDatabaseRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "AutonomousDatabase", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_DeleteAutonomousDatabaseRequest_descriptor, @@ -747,7 +1064,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_RestoreAutonomousDatabaseRequest_descriptor, @@ -755,7 +1072,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RestoreTime", }); internal_static_google_cloud_oracledatabase_v1_StopAutonomousDatabaseRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_oracledatabase_v1_StopAutonomousDatabaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_StopAutonomousDatabaseRequest_descriptor, @@ -763,7 +1080,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_oracledatabase_v1_StartAutonomousDatabaseRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_oracledatabase_v1_StartAutonomousDatabaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_StartAutonomousDatabaseRequest_descriptor, @@ -771,15 +1088,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_oracledatabase_v1_RestartAutonomousDatabaseRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_oracledatabase_v1_RestartAutonomousDatabaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_RestartAutonomousDatabaseRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_SwitchoverAutonomousDatabaseRequest_descriptor, + new java.lang.String[] { + "Name", "PeerAutonomousDatabase", + }); + internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_FailoverAutonomousDatabaseRequest_descriptor, + new java.lang.String[] { + "Name", "PeerAutonomousDatabase", + }); internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletRequest_descriptor, @@ -787,7 +1120,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Type", "IsRegional", "Password", }); internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_GenerateAutonomousDatabaseWalletResponse_descriptor, @@ -795,7 +1128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArchiveContent", }); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsRequest_descriptor, @@ -803,7 +1136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListAutonomousDbVersionsResponse_descriptor, @@ -811,7 +1144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutonomousDbVersions", "NextPageToken", }); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsRequest_descriptor, @@ -819,7 +1152,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseCharacterSetsResponse_descriptor, @@ -827,7 +1160,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutonomousDatabaseCharacterSets", "NextPageToken", }); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsRequest_descriptor, @@ -835,13 +1168,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListAutonomousDatabaseBackupsResponse_descriptor, new java.lang.String[] { "AutonomousDatabaseBackups", "NextPageToken", }); + internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_CreateExadbVmClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "ExadbVmClusterId", "ExadbVmCluster", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_DeleteExadbVmClusterRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_GetExadbVmClusterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ListExadbVmClustersResponse_descriptor, + new java.lang.String[] { + "ExadbVmClusters", "NextPageToken", + }); + internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_UpdateExadbVmClusterRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ExadbVmCluster", "RequestId", + }); + internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_RemoveVirtualMachineExadbVmClusterRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Hostnames", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -864,15 +1253,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSetProto.getDescriptor(); com.google.cloud.oracledatabase.v1.AutonomousDbBackupProto.getDescriptor(); com.google.cloud.oracledatabase.v1.AutonomousDbVersionProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.DatabaseProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.DatabaseCharacterSetProto.getDescriptor(); com.google.cloud.oracledatabase.v1.DbNodeProto.getDescriptor(); com.google.cloud.oracledatabase.v1.DbServerProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.DbSystemProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProto.getDescriptor(); com.google.cloud.oracledatabase.v1.DbSystemShapeProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.DbVersionProto.getDescriptor(); com.google.cloud.oracledatabase.v1.EntitlementProto.getDescriptor(); com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.ExadbVmClusterProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProto.getDescriptor(); com.google.cloud.oracledatabase.v1.GiVersionProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.MinorVersionProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.OdbNetworkProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.OdbSubnetProto.getDescriptor(); + com.google.cloud.oracledatabase.v1.PluggableDatabaseProto.getDescriptor(); com.google.cloud.oracledatabase.v1.CloudVmClusterProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database.proto index 8af04a7ffdcc..5aedd281fd19 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/autonomous_database.proto @@ -202,12 +202,74 @@ message AutonomousDatabase { (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; - // Optional. The subnet CIDR range for the Autonmous Database. + // Optional. The subnet CIDR range for the Autonomous Database. string cidr = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The name of the OdbNetwork associated with the Autonomous + // Database. Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network} It is + // optional but if specified, this should match the parent ODBNetwork of the + // OdbSubnet. + string odb_network = 16 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbNetwork" + } + ]; + + // Optional. The name of the OdbSubnet associated with the Autonomous + // Database. Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + string odb_subnet = 17 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; + + // Optional. The source Autonomous Database configuration for the standby + // Autonomous Database. The source Autonomous Database is configured while + // creating the Peer Autonomous Database and can't be updated after creation. + SourceConfig source_config = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The peer Autonomous Database names of the given Autonomous + // Database. + repeated string peer_autonomous_databases = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + // Output only. The date and time that the Autonomous Database was created. google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of supported GCP region to clone the Autonomous Database + // for disaster recovery. Format: `project/{project}/locations/{location}`. + repeated string disaster_recovery_supported_locations = 15 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; +} + +// The source configuration for the standby Autonomous Database. +message SourceConfig { + // Optional. The name of the primary Autonomous Database that is used to + // create a Peer Autonomous Database from a source. + string autonomous_database = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + + // Optional. This field specifies if the replication of automatic backups is + // enabled when creating a Data Guard. + bool automatic_backups_replication_enabled = 2 + [(google.api.field_behavior) = OPTIONAL]; } // The properties of an Autonomous Database. @@ -605,6 +667,16 @@ message AutonomousDatabaseProperties { google.protobuf.Timestamp next_long_term_backup_time = 60 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The date and time the Autonomous Data Guard role was changed + // for the standby Autonomous Database. + google.protobuf.Timestamp data_guard_role_changed_time = 61 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time the Disaster Recovery role was changed for + // the standby Autonomous Database. + google.protobuf.Timestamp disaster_recovery_role_changed_time = 62 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The date and time when maintenance will begin. google.protobuf.Timestamp maintenance_begin_time = 65 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -612,6 +684,63 @@ message AutonomousDatabaseProperties { // Output only. The date and time when maintenance will end. google.protobuf.Timestamp maintenance_end_time = 66 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The list of allowlisted IP addresses for the Autonomous Database. + repeated string allowlisted_ips = 67 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The encryption key used to encrypt the Autonomous Database. + // Updating this field will add a new entry in the + // `encryption_key_history_entries` field with the former version. + EncryptionKey encryption_key = 68 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The history of the encryption keys used to encrypt the + // Autonomous Database. + repeated EncryptionKeyHistoryEntry encryption_key_history_entries = 69 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An Oracle-managed Google Cloud service account on which + // customers can grant roles to access resources in the customer project. + string service_agent_email = 70 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The history of the encryption keys used to encrypt the Autonomous Database. +message EncryptionKeyHistoryEntry { + // Output only. The encryption key used to encrypt the Autonomous Database. + EncryptionKey encryption_key = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time when the encryption key was activated on the + // Autonomous Database.. + google.protobuf.Timestamp activation_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The encryption key used to encrypt the Autonomous Database. +message EncryptionKey { + // The provider of the encryption key. + enum Provider { + // Default unspecified value. + PROVIDER_UNSPECIFIED = 0; + + // Google Managed KMS key, if selected, please provide the KMS key name. + GOOGLE_MANAGED = 1; + + // Oracle Managed. + ORACLE_MANAGED = 2; + } + + // Optional. The provider of the encryption key. + Provider provider = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The KMS key used to encrypt the Autonomous Database. + // This field is required if the provider is GOOGLE_MANAGED. + // The name of the KMS key resource in the following format: + // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. + string kms_key = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; } // Oracle APEX Application Development. diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/common.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/common.proto index 147bdb474d16..b41bf59971ff 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/common.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/common.proto @@ -26,6 +26,21 @@ option java_package = "com.google.cloud.oracledatabase.v1"; option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; option ruby_package = "Google::Cloud::OracleDatabase::V1"; +// The compute model of the Exadata Infrastructure, VM Cluster and Autonomous +// Database. +enum ComputeModel { + // Unspecified compute model. + COMPUTE_MODEL_UNSPECIFIED = 0; + + // Abstract measure of compute resources. ECPUs are based on the number of + // cores elastically allocated from a pool of compute and storage servers. + COMPUTE_MODEL_ECPU = 1; + + // Physical measure of compute resources. OCPUs are based on the physical + // core of a processor. + COMPUTE_MODEL_OCPU = 2; +} + // The CustomerContact reference as defined by Oracle. // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact message CustomerContact { @@ -33,3 +48,49 @@ message CustomerContact { // databases and infrastructure. string email = 1 [(google.api.field_behavior) = REQUIRED]; } + +// The identity connector details which will allow OCI to securely access +// the resources in the customer project. +message IdentityConnector { + // The various connection states of the WorkloadIdentityPoolConnection. + enum ConnectionState { + // Default unspecified value. + CONNECTION_STATE_UNSPECIFIED = 0; + + // The identity pool connection is connected. + CONNECTED = 1; + + // The identity pool connection is partially connected. + PARTIALLY_CONNECTED = 2; + + // The identity pool connection is disconnected. + DISCONNECTED = 3; + + // The identity pool connection is in an unknown state. + UNKNOWN = 4; + } + + // Output only. A google managed service account on which customers can grant + // roles to access resources in the customer project. Example: + // `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com` + string service_agent_email = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The connection state of the identity connector. + ConnectionState connection_state = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Data collection options for diagnostics. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DataCollectionOptions +message DataCollectionOptionsCommon { + // Optional. Indicates whether to enable data collection for diagnostics. + bool is_diagnostics_events_enabled = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether to enable health monitoring. + bool is_health_monitoring_enabled = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether to enable incident logs and trace collection. + bool is_incident_logs_enabled = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/database.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/database.proto new file mode 100644 index 000000000000..4c463f8999f6 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/database.proto @@ -0,0 +1,335 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/oracledatabase/v1/pluggable_database.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/dayofweek.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "DatabaseProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the Database resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/ +message Database { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/Database" + pattern: "projects/{project}/locations/{location}/databases/{database}" + plural: "databases" + singular: "database" + }; + + // The Status of Operations Insights for this Database. + enum OperationsInsightsStatus { + // Default unspecified value. + OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED = 0; + + // Indicates that the operations insights are being enabled. + ENABLING = 1; + + // Indicates that the operations insights are enabled. + ENABLED = 2; + + // Indicates that the operations insights are being disabled. + DISABLING = 3; + + // Indicates that the operations insights are not enabled. + NOT_ENABLED = 4; + + // Indicates that the operations insights failed to enable. + FAILED_ENABLING = 5; + + // Indicates that the operations insights failed to disable. + FAILED_DISABLING = 6; + } + + // Identifier. The name of the Database resource in the following format: + // projects/{project}/locations/{region}/databases/{database} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The database name. The name must begin with an alphabetic + // character and can contain a maximum of eight alphanumeric characters. + // Special characters are not permitted. + string db_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up. + string db_unique_name = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The password for the default ADMIN user. + string admin_password = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The TDE wallet password for the database. + string tde_wallet_password = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The character set for the database. The default is AL32UTF8. + string character_set = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The national character set for the database. The default is + // AL16UTF16. + string ncharacter_set = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. HTTPS link to OCI resources exposed to Customer via UI + // Interface. + string oci_url = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time that the Database was created. + google.protobuf.Timestamp create_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The properties of the Database. + DatabaseProperties properties = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The database ID of the Database. + string database_id = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the DbHome resource associated with the Database. + string db_home_name = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The GCP Oracle zone where the Database is created. + string gcp_oracle_zone = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Status of Operations Insights for this Database. + OperationsInsightsStatus ops_insights_status = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The properties of a Database. +message DatabaseProperties { + // The various lifecycle states of the Database. + enum DatabaseLifecycleState { + // Default unspecified value. + DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0; + + // Indicates that the resource is in provisioning state. + PROVISIONING = 1; + + // Indicates that the resource is in available state. + AVAILABLE = 2; + + // Indicates that the resource is in updating state. + UPDATING = 3; + + // Indicates that the resource is in backup in progress state. + BACKUP_IN_PROGRESS = 4; + + // Indicates that the resource is in upgrading state. + UPGRADING = 5; + + // Indicates that the resource is in converting state. + CONVERTING = 6; + + // Indicates that the resource is in terminating state. + TERMINATING = 7; + + // Indicates that the resource is in terminated state. + TERMINATED = 8; + + // Indicates that the resource is in restore failed state. + RESTORE_FAILED = 9; + + // Indicates that the resource is in failed state. + FAILED = 10; + } + + // Output only. State of the Database. + DatabaseLifecycleState state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The Oracle Database version. + string db_version = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Backup options for the Database. + DbBackupConfig db_backup_config = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The Database Management config. + DatabaseManagementConfig database_management_config = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Backup Options for the Database. +message DbBackupConfig { + // The details of the database backup destination. + message BackupDestinationDetails { + // Optional. The type of the database backup destination. + BackupDestinationType type = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // The type of the database backup destination. + enum BackupDestinationType { + // Default unspecified value. + BACKUP_DESTINATION_TYPE_UNSPECIFIED = 0; + + // Backup destination type is NFS. + NFS = 1; + + // Backup destination type is Recovery Appliance. + RECOVERY_APPLIANCE = 2; + + // Backup destination type is Object Store. + OBJECT_STORE = 3; + + // Backup destination type is Local. + LOCAL = 4; + + // Backup destination type is DBRS. + DBRS = 5; + } + + // The 2 hour window in which the backup should be performed on the database. + enum BackupWindow { + // Default unspecified value. + BACKUP_WINDOW_UNSPECIFIED = 0; + + // 12:00 AM - 2:00 AM + SLOT_ONE = 1; + + // 2:00 AM - 4:00 AM + SLOT_TWO = 2; + + // 4:00 AM - 6:00 AM + SLOT_THREE = 3; + + // 6:00 AM - 8:00 AM + SLOT_FOUR = 4; + + // 8:00 AM - 10:00 AM + SLOT_FIVE = 5; + + // 10:00 AM - 12:00 PM + SLOT_SIX = 6; + + // 12:00 PM - 2:00 PM + SLOT_SEVEN = 7; + + // 2:00 PM - 4:00 PM + SLOT_EIGHT = 8; + + // 4:00 PM - 6:00 PM + SLOT_NINE = 9; + + // 6:00 PM - 8:00 PM + SLOT_TEN = 10; + + // 8:00 PM - 10:00 PM + SLOT_ELEVEN = 11; + + // 10:00 PM - 12:00 AM + SLOT_TWELVE = 12; + } + + // This defines when the backups will be deleted after Database termination. + enum BackupDeletionPolicy { + // Default unspecified value. + BACKUP_DELETION_POLICY_UNSPECIFIED = 0; + + // Keeps the backup for predefined time + // i.e. 72 hours and then delete permanently. + DELETE_IMMEDIATELY = 1; + + // Keeps the backups as per the policy defined + // for database backups. + DELETE_AFTER_RETENTION_PERIOD = 2; + } + + // Optional. If set to true, enables automatic backups on the database. + bool auto_backup_enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Details of the database backup destinations. + repeated BackupDestinationDetails backup_destination_details = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of days an automatic backup is retained before being + // automatically deleted. This value determines the earliest point in time to + // which a database can be restored. Min: 1, Max: 60. + int32 retention_period_days = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This defines when the backups will be deleted after Database + // termination. + BackupDeletionPolicy backup_deletion_policy = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The day of the week on which the full backup should be performed + // on the database. If no value is provided, it will default to Sunday. + google.type.DayOfWeek auto_full_backup_day = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The window in which the full backup should be performed on the + // database. If no value is provided, the default is anytime. + BackupWindow auto_full_backup_window = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The window in which the incremental backup should be performed on + // the database. If no value is provided, the default is anytime except the + // auto full backup day. + BackupWindow auto_incremental_backup_window = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for `Database.Get`. +message GetDatabaseRequest { + // Required. The name of the Database resource in the following format: + // projects/{project}/locations/{region}/databases/{database} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/Database" + } + ]; +} + +// The request for `Database.List`. +message ListDatabasesRequest { + // Required. The parent resource name in the following format: + // projects/{project}/locations/{region} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/Database" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, a maximum of 50 Databases will be returned. + // The maximum value is 1000; values above 1000 will be reset to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying the requested page of results to return. All + // fields except the filter should remain the same as in the request that + // provided this page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. list for + // container databases is supported only with a valid dbSystem (full resource + // name) filter in this format: + // `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `Database.List`. +message ListDatabasesResponse { + // The list of Databases. + repeated Database databases = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/database_character_set.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/database_character_set.proto new file mode 100644 index 000000000000..7a84c92fc9b1 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/database_character_set.proto @@ -0,0 +1,105 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "DatabaseCharacterSetProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the Database character set resource. +message DatabaseCharacterSet { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/DatabaseCharacterSet" + pattern: "projects/{project}/locations/{location}/databaseCharacterSets/{database_character_set}" + plural: "databaseCharacterSets" + singular: "databaseCharacterSet" + }; + + // The type of character set a Database can have. + enum CharacterSetType { + // Character set type is not specified. + CHARACTER_SET_TYPE_UNSPECIFIED = 0; + + // Character set type is set to database. + DATABASE = 1; + + // Character set type is set to national. + NATIONAL = 2; + } + + // Identifier. The name of the Database Character Set resource in the + // following format: + // projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The character set type for the Database. + CharacterSetType character_set_type = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The character set name for the Database which is the ID in the + // resource name. + string character_set = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request for `DatabaseCharacterSet.List`. +message ListDatabaseCharacterSetsRequest { + // Required. The parent value for DatabaseCharacterSets in the following + // format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/DatabaseCharacterSet" + } + ]; + + // Optional. The maximum number of DatabaseCharacterSets to return. The + // service may return fewer than this value. If unspecified, at most 50 + // DatabaseCharacterSets will be returned. The maximum value is 1000; values + // above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent + // page. + // + // When paginating, all other parameters provided to + // `ListDatabaseCharacterSets` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. Only the + // **character_set_type** field is supported in the following format: + // `character_set_type="{characterSetType}"`. Accepted values include + // `DATABASE` and `NATIONAL`. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `DatabaseCharacterSet.List`. +message ListDatabaseCharacterSetsResponse { + // The list of DatabaseCharacterSets. + repeated DatabaseCharacterSet database_character_sets = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_node.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_node.proto index 803511401b3e..b75749a6f2da 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_node.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_node.proto @@ -18,6 +18,7 @@ package google.cloud.oracledatabase.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; @@ -33,6 +34,7 @@ message DbNode { option (google.api.resource) = { type: "oracledatabase.googleapis.com/DbNode" pattern: "projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}" + pattern: "projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}/dbNodes/{db_node}" plural: "dbNodes" singular: "dbNode" }; @@ -103,4 +105,8 @@ message DbNodeProperties { // Total CPU core count of the database node. int32 total_cpu_core_count = 10; + + // Output only. The date and time that the database node was created. + google.protobuf.Timestamp create_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_system.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_system.proto new file mode 100644 index 000000000000..05e917d30d8f --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_system.proto @@ -0,0 +1,399 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/oracledatabase/v1/database.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/datetime.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "DbSystemProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Details of the DbSystem (BaseDB) resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/ +message DbSystem { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/DbSystem" + pattern: "projects/{project}/locations/{location}/dbSystems/{db_system}" + plural: "dbSystems" + singular: "dbSystem" + }; + + // Identifier. The name of the DbSystem resource in the following format: + // projects/{project}/locations/{region}/dbSystems/{db_system} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The properties of the DbSystem. + DbSystemProperties properties = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The GCP Oracle zone where Oracle DbSystem is hosted. + // Example: us-east4-b-r2. + // If not specified, the system will pick a zone based on availability. + string gcp_oracle_zone = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels or tags associated with the DbSystem. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the OdbNetwork associated with the DbSystem. + // Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} + // It is optional but if specified, this should match the parent ODBNetwork of + // the OdbSubnet. + string odb_network = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbNetwork" + } + ]; + + // Required. The name of the OdbSubnet associated with the DbSystem for IP + // allocation. Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + string odb_subnet = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; + + // Output only. The ID of the subscription entitlement associated with the + // DbSystem + string entitlement_id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name for the System db. The name does not have to + // be unique within your project. + string display_name = 8 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The date and time that the DbSystem was created. + google.protobuf.Timestamp create_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. HTTPS link to OCI resources exposed to Customer via UI + // Interface. + string oci_url = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The properties of a DbSystem. +message DbSystemProperties { + // The editions available for DbSystem. + enum DbSystemDatabaseEdition { + // The database edition is unspecified. + DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED = 0; + + // The database edition is Standard. + STANDARD_EDITION = 1; + + // The database edition is Enterprise. + ENTERPRISE_EDITION = 2; + + // The database edition is Enterprise Edition. + ENTERPRISE_EDITION_HIGH_PERFORMANCE = 3; + } + + // The license model of the DbSystem. + enum LicenseModel { + // The license model is unspecified. + LICENSE_MODEL_UNSPECIFIED = 0; + + // The license model is included. + LICENSE_INCLUDED = 1; + + // The license model is bring your own license. + BRING_YOUR_OWN_LICENSE = 2; + } + + // The various lifecycle states of the DbSystem. + enum DbSystemLifecycleState { + // Default unspecified value. + DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED = 0; + + // Indicates that the resource is in provisioning state. + PROVISIONING = 1; + + // Indicates that the resource is in available state. + AVAILABLE = 2; + + // Indicates that the resource is in updating state. + UPDATING = 3; + + // Indicates that the resource is in terminating state. + TERMINATING = 4; + + // Indicates that the resource is in terminated state. + TERMINATED = 5; + + // Indicates that the resource is in failed state. + FAILED = 6; + + // Indicates that the resource has been migrated. + MIGRATED = 7; + + // Indicates that the resource is in maintenance in progress state. + MAINTENANCE_IN_PROGRESS = 8; + + // Indicates that the resource needs attention. + NEEDS_ATTENTION = 9; + + // Indicates that the resource is upgrading. + UPGRADING = 10; + } + + // The compute model of the DbSystem. + enum ComputeModel { + // The compute model is unspecified. + COMPUTE_MODEL_UNSPECIFIED = 0; + + // The compute model is virtual. + ECPU = 1; + + // The compute model is physical. + OCPU = 2; + } + + // Required. Shape of DB System. + string shape = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The number of CPU cores to enable for the DbSystem. + int32 compute_count = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The initial data storage size in GB. + int32 initial_data_storage_size_gb = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The database edition of the DbSystem. + DbSystemDatabaseEdition database_edition = 4 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The license model of the DbSystem. + LicenseModel license_model = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. SSH public keys to be stored with the DbSystem. + repeated string ssh_public_keys = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Prefix for DB System host names. + string hostname_prefix = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The hostname of the DbSystem. + string hostname = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The private IP address of the DbSystem. + string private_ip = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Data collection options for diagnostics. + DataCollectionOptionsDbSystem data_collection_options = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Time zone of the DbSystem. + google.type.TimeZone time_zone = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the DbSystem. + DbSystemLifecycleState lifecycle_state = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Details for creating a Database Home. + DbHome db_home = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. OCID of the DbSystem. + string ocid = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The memory size in GB. + int32 memory_size_gb = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The compute model of the DbSystem. + ComputeModel compute_model = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The data storage size in GB that is currently available to + // DbSystems. + int32 data_storage_size_gb = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The reco/redo storage size in GB. + int32 reco_storage_size_gb = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The host domain name of the DbSystem. + string domain = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of nodes in the DbSystem. + int32 node_count = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The options for the DbSystem. + DbSystemOptions db_system_options = 21 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Data collection options for DbSystem. +message DataCollectionOptionsDbSystem { + // Optional. Indicates whether to enable data collection for diagnostics. + bool is_diagnostics_events_enabled = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether to enable incident logs and trace collection. + bool is_incident_logs_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Details of the DbSystem Options. +message DbSystemOptions { + // The storage option used in DB system. + enum StorageManagement { + // The storage management is unspecified. + STORAGE_MANAGEMENT_UNSPECIFIED = 0; + + // Automatic storage management. + ASM = 1; + + // Logical Volume management. + LVM = 2; + } + + // Optional. The storage option used in DB system. + StorageManagement storage_management = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Details of the Database Home resource. +message DbHome { + // Optional. The display name for the Database Home. The name does not have to + // be unique within your project. + string display_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. A valid Oracle Database version. For a list of supported + // versions, use the ListDbVersions operation. + string db_version = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Database resource. + Database database = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether unified auditing is enabled for the Database Home. + bool is_unified_auditing_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for `DbSystem.Create`. +message CreateDbSystemRequest { + // Required. The value for parent of the DbSystem in the following format: + // projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/DbSystem" + } + ]; + + // Required. The ID of the DbSystem to create. This value is + // restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of + // 63 characters in length. The value must start with a letter and end with a + // letter or a number. + string db_system_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created. + DbSystem db_system = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `DbSystem.Delete`. +message DeleteDbSystemRequest { + // Required. The name of the DbSystem in the following format: + // projects/{project}/locations/{location}/dbSystems/{db_system}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/DbSystem" + } + ]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `DbSystem.Get`. +message GetDbSystemRequest { + // Required. The name of the DbSystem in the following format: + // projects/{project}/locations/{location}/dbSystems/{db_system}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/DbSystem" + } + ]; +} + +// The request for `DbSystem.List`. +message ListDbSystemsRequest { + // Required. The parent value for DbSystems in the following format: + // projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/DbSystem" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 DbSystems will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for ordering the results of the request. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `DbSystem.List`. +message ListDbSystemsResponse { + // The list of DbSystems. + repeated DbSystem db_systems = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto new file mode 100644 index 000000000000..d33256a5c505 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto @@ -0,0 +1,131 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "DbSystemInitialStorageSizeProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Summary of the DbSystem initial storage size. +message DbSystemInitialStorageSize { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/DbSystemInitialStorageSize" + pattern: "projects/{project}/locations/{location}/dbSystemInitialStorageSizes/{db_system_initial_storage_size}" + plural: "dbSystemInitialStorageSizes" + singular: "dbSystemInitialStorageSize" + }; + + // Output only. The name of the resource. + string name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The properties of the DbSystem initial storage size summary. + DbSystemInitialStorageSizeProperties properties = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The properties of a DbSystem initial storage size summary. +message DbSystemInitialStorageSizeProperties { + // The storage option used in the DB system. + enum StorageManagement { + // Unspecified storage management. + STORAGE_MANAGEMENT_UNSPECIFIED = 0; + + // Automatic Storage Management. + ASM = 1; + + // Logical Volume Management. + LVM = 2; + } + + // The shape type of the DB system. + enum ShapeType { + // Unspecified shape type. + SHAPE_TYPE_UNSPECIFIED = 0; + + // Standard X86. + STANDARD_X86 = 1; + } + + // Output only. The storage option used in DB system. + StorageManagement storage_management = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. VM shape platform type + ShapeType shape_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of storage disk details. + repeated StorageSizeDetails storage_size_details = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of storage disk details available for launches from + // backup. + repeated StorageSizeDetails launch_from_backup_storage_size_details = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The initial storage size, in gigabytes, that is applicable for virtual +// machine DBSystem. +message StorageSizeDetails { + // Output only. The data storage size, in gigabytes, that is applicable for + // virtual machine DBSystem. + int32 data_storage_size_in_gbs = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The RECO/REDO storage size, in gigabytes, that is applicable + // for virtual machine DBSystem. + int32 reco_storage_size_in_gbs = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request for `DbSystemInitialStorageSizes.List`. +message ListDbSystemInitialStorageSizesRequest { + // Required. The parent value for the DbSystemInitialStorageSize resource with + // the format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/DbSystemInitialStorageSize" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be + // returned. The maximum value is 1000; values above 1000 will be reset to + // 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying the requested page of results to return. All + // fields except the filter should remain the same as in the request that + // provided this page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `DbSystemInitialStorageSizes.List`. +message ListDbSystemInitialStorageSizesResponse { + // The list of DbSystemInitialStorageSizes. + repeated DbSystemInitialStorageSize db_system_initial_storage_sizes = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_version.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_version.proto new file mode 100644 index 000000000000..b15aad2fcfcf --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/db_version.proto @@ -0,0 +1,106 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "DbVersionProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// A valid Oracle Database version. +message DbVersion { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/DbVersion" + pattern: "projects/{project}/locations/{location}/dbVersions/{db_version}" + plural: "dbVersions" + singular: "dbVersion" + }; + + // Output only. The name of the DbVersion resource in the following format: + // projects/{project}/locations/{region}/dbVersions/{db_version} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The properties of the DbVersion. + DbVersionProperties properties = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The properties of a DbVersion. +message DbVersionProperties { + // Output only. A valid Oracle Database version. + string version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if this version of the Oracle Database software is the + // latest version for a release. + bool is_latest_for_major_version = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if this version of the Oracle Database software supports + // pluggable databases. + bool supports_pdb = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if this version of the Oracle Database software is the + // preview version. + bool is_preview_db_version = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if this version of the Oracle Database software is + // supported for Upgrade. + bool is_upgrade_supported = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request for `DbVersions.List`. +message ListDbVersionsRequest { + // Required. The parent value for the DbVersion resource with the + // format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/DbVersion" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, a maximum of 50 DbVersions will be returned. + // The maximum value is 1000; values above 1000 will be reset to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying the requested page of results to return. All + // fields except the filter should remain the same as in the request that + // provided this page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression that matches a subset of the DbVersions to + // show. The supported filter for dbSystem creation is `db_system_shape = + // {db_system_shape} AND storage_management = {storage_management}`. If no + // filter is provided, all DbVersions will be returned. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `DbVersions.List`. +message ListDbVersionsResponse { + // The list of DbVersions. + repeated DbVersion db_versions = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto index 5036ff4da76f..e2faf7e35aef 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto @@ -49,7 +49,9 @@ message CloudExadataInfrastructure { // Optional. User friendly name for this resource. string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Google Cloud Platform location where Oracle Exadata is hosted. + // Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is + // hosted. Example: us-east4-b-r2. If not specified, the system will pick a + // zone based on availability. string gcp_oracle_zone = 8 [(google.api.field_behavior) = OPTIONAL]; // Output only. Entitlement ID of the private offer against which this @@ -201,6 +203,15 @@ message CloudExadataInfrastructureProperties { // in the Exadata Infrastructure. Example: 20.1.15 string monthly_db_server_version = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The compute model of the Exadata Infrastructure. + ComputeModel compute_model = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The database server type of the Exadata Infrastructure. + string database_server_type = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The storage server type of the Exadata Infrastructure. + string storage_server_type = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Maintenance window as defined by Oracle. diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadb_vm_cluster.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadb_vm_cluster.proto new file mode 100644 index 000000000000..653ac8ec96a2 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadb_vm_cluster.proto @@ -0,0 +1,292 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/oracledatabase/v1/common.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/datetime.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "ExadbVmClusterProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// ExadbVmCluster represents a cluster of VMs that are used to run Exadata +// workloads. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExadbVmCluster/ +message ExadbVmCluster { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/ExadbVmCluster" + pattern: "projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}" + plural: "exadbVmClusters" + singular: "exadbVmCluster" + }; + + // Identifier. The name of the ExadbVmCluster resource in the following + // format: + // projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The properties of the ExadbVmCluster. + ExadbVmClusterProperties properties = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is + // hosted. Example: us-east4-b-r2. During creation, the system will pick the + // zone assigned to the ExascaleDbStorageVault. + string gcp_oracle_zone = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. The labels or tags associated with the ExadbVmCluster. + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Immutable. The name of the OdbNetwork associated with the + // ExadbVmCluster. Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network} It is + // optional but if specified, this should match the parent ODBNetwork of the + // OdbSubnet. + string odb_network = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbNetwork" + } + ]; + + // Required. Immutable. The name of the OdbSubnet associated with the + // ExadbVmCluster for IP allocation. Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + string odb_subnet = 7 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; + + // Required. Immutable. The name of the backup OdbSubnet associated with the + // ExadbVmCluster. Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + string backup_odb_subnet = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; + + // Required. Immutable. The display name for the ExadbVmCluster. The name does + // not have to be unique within your project. The name must be 1-255 + // characters long and can only contain alphanumeric characters. + string display_name = 9 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The date and time that the ExadbVmCluster was created. + google.protobuf.Timestamp create_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ID of the subscription entitlement associated with the + // ExadbVmCluster. + string entitlement_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The storage allocation for the exadbvmcluster, in gigabytes (GB). +message ExadbVmClusterStorageDetails { + // Required. The storage allocation for the exadbvmcluster per node, in + // gigabytes (GB). This field is used to calculate the total storage + // allocation for the exadbvmcluster. + int32 size_in_gbs_per_node = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The properties of an ExadbVmCluster. +message ExadbVmClusterProperties { + // The Oracle license model that applies to the ExaScale VM cluster + enum LicenseModel { + // Unspecified. + LICENSE_MODEL_UNSPECIFIED = 0; + + // Default is license included. + LICENSE_INCLUDED = 1; + + // Bring your own license. + BRING_YOUR_OWN_LICENSE = 2; + } + + // The various lifecycle states of the VM cluster. + enum ExadbVmClusterLifecycleState { + // Default unspecified value. + EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED = 0; + + // Indicates that the resource is in provisioning state. + PROVISIONING = 1; + + // Indicates that the resource is in available state. + AVAILABLE = 2; + + // Indicates that the resource is in updating state. + UPDATING = 3; + + // Indicates that the resource is in terminating state. + TERMINATING = 4; + + // Indicates that the resource is in terminated state. + TERMINATED = 5; + + // Indicates that the resource is in failed state. + FAILED = 6; + + // Indicates that the resource is in maintenance in progress state. + MAINTENANCE_IN_PROGRESS = 7; + } + + // The shape attribute of the VM cluster. The type of Exascale storage used + // for Exadata VM cluster. The default is SMART_STORAGE which supports Oracle + // Database 23ai and later + enum ShapeAttribute { + // Default unspecified value. + SHAPE_ATTRIBUTE_UNSPECIFIED = 0; + + // Indicates that the resource is in smart storage. + SMART_STORAGE = 1; + + // Indicates that the resource is in block storage. + BLOCK_STORAGE = 2; + } + + // Optional. Immutable. The cluster name for Exascale vm cluster. The cluster + // name must begin with an alphabetic character and may contain hyphens(-) but + // can not contain underscores(_). It should be not more than 11 characters + // and is not case sensitive. OCI Cluster name. + string cluster_name = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. Grid Infrastructure Version. + string grid_image_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. The number of nodes/VMs in the ExadbVmCluster. + int32 node_count = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Immutable. The number of ECPUs enabled per node for an exadata vm + // cluster on exascale infrastructure. + int32 enabled_ecpu_count_per_node = 20 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Immutable. The number of additional ECPUs per node for an Exadata + // VM cluster on exascale infrastructure. + int32 additional_ecpu_count_per_node = 21 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. Total storage details for the ExadbVmCluster. + ExadbVmClusterStorageDetails vm_file_system_storage = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Immutable. The license type of the ExadbVmCluster. + LicenseModel license_model = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. The name of ExascaleDbStorageVault associated with the + // ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a + // new one can be created during the ExadbVmCluster creation (requires + // storage_vault_properties to be set). + // Format: + // projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault} + string exascale_db_storage_vault = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/ExascaleDbStorageVault" + } + ]; + + // Required. Immutable. Prefix for VM cluster host names. + string hostname_prefix = 9 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The hostname of the ExadbVmCluster. + string hostname = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The SSH public keys for the ExadbVmCluster. + repeated string ssh_public_keys = 11 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Immutable. Indicates user preference for data collection options. + DataCollectionOptionsCommon data_collection_options = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Immutable. The time zone of the ExadbVmCluster. + google.type.TimeZone time_zone = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. State of the cluster. + ExadbVmClusterLifecycleState lifecycle_state = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The shape attribute of the VM cluster. The type of + // Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE + // which supports Oracle Database 23ai and later + ShapeAttribute shape_attribute = 15 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. Memory per VM (GB) (Read-only): Shows the amount of memory + // allocated to each VM. Memory is calculated based on 2.75 GB per Total + // ECPUs. + int32 memory_size_gb = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Immutable. SCAN listener port - TCP + int32 scan_listener_port_tcp = 17 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. Deep link to the OCI console to view this resource. + string oci_uri = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Oracle Grid Infrastructure (GI) software version. + string gi_version = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto new file mode 100644 index 000000000000..09879d55dba8 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto @@ -0,0 +1,286 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/datetime.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "ExascaleDbStorageVaultProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// ExascaleDbStorageVault represents a storage vault exadb vm cluster resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ +message ExascaleDbStorageVault { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/ExascaleDbStorageVault" + pattern: "projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}" + plural: "exascaleDbStorageVaults" + singular: "exascaleDbStorageVault" + }; + + // Identifier. The resource name of the ExascaleDbStorageVault. + // Format: + // projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The display name for the ExascaleDbStorageVault. The name does + // not have to be unique within your project. The name must be 1-255 + // characters long and can only contain alphanumeric characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is + // hosted. Example: us-east4-b-r2. If not specified, the system will pick a + // zone based on availability. + string gcp_oracle_zone = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The properties of the ExascaleDbStorageVault. + ExascaleDbStorageVaultProperties properties = 4 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. The date and time when the ExascaleDbStorageVault was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ID of the subscription entitlement associated with the + // ExascaleDbStorageVault. + string entitlement_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The labels or tags associated with the ExascaleDbStorageVault. + map labels = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// The properties of the ExascaleDbStorageVault. +// next ID: 12 +message ExascaleDbStorageVaultProperties { + // The state of the ExascaleDbStorageVault. + enum State { + // The state of the ExascaleDbStorageVault is unspecified. + STATE_UNSPECIFIED = 0; + + // The ExascaleDbStorageVault is being provisioned. + PROVISIONING = 1; + + // The ExascaleDbStorageVault is available. + AVAILABLE = 2; + + // The ExascaleDbStorageVault is being updated. + UPDATING = 3; + + // The ExascaleDbStorageVault is being deleted. + TERMINATING = 4; + + // The ExascaleDbStorageVault has been deleted. + TERMINATED = 5; + + // The ExascaleDbStorageVault has failed. + FAILED = 6; + } + + // The shape attribute of the VM clusters attached to the + // ExascaleDbStorageVault. + enum ShapeAttribute { + // Default unspecified value. + SHAPE_ATTRIBUTE_UNSPECIFIED = 0; + + // Indicates that the resource is in smart storage. + SMART_STORAGE = 1; + + // Indicates that the resource is in block storage. + BLOCK_STORAGE = 2; + } + + // Output only. The OCID for the ExascaleDbStorageVault. + string ocid = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time zone of the ExascaleDbStorageVault. + google.type.TimeZone time_zone = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The storage details of the ExascaleDbStorageVault. + ExascaleDbStorageDetails exascale_db_storage_details = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the ExascaleDbStorageVault. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The description of the ExascaleDbStorageVault. + string description = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The list of VM cluster OCIDs associated with the + // ExascaleDbStorageVault. + repeated string vm_cluster_ids = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of VM clusters associated with the + // ExascaleDbStorageVault. + int32 vm_cluster_count = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The size of additional flash cache in percentage of high capacity + // database storage. + int32 additional_flash_cache_percent = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Deep link to the OCI console to view this resource. + string oci_uri = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The shape attributes of the VM clusters attached to the + // ExascaleDbStorageVault. + repeated ShapeAttribute attached_shape_attributes = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The shape attributes available for the VM clusters to be + // attached to the ExascaleDbStorageVault. + repeated ShapeAttribute available_shape_attributes = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The storage details of the ExascaleDbStorageVault. +message ExascaleDbStorageDetails { + // Output only. The available storage capacity for the ExascaleDbStorageVault, + // in gigabytes (GB). + int32 available_size_gbs = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The total storage allocation for the ExascaleDbStorageVault, in + // gigabytes (GB). + int32 total_size_gbs = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request for `ExascaleDbStorageVault.Get`. +message GetExascaleDbStorageVaultRequest { + // Required. The name of the ExascaleDbStorageVault in the following format: + // projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/ExascaleDbStorageVault" + } + ]; +} + +// The request for `ExascaleDbStorageVault.List`. +message ListExascaleDbStorageVaultsRequest { + // Required. The parent value for ExascaleDbStorageVault in the following + // format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/ExascaleDbStorageVault" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 ExascaleDbStorageVaults will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. Filter + // the list as specified in https://google.aip.dev/160. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for ordering the results of the request. Order + // results as specified in https://google.aip.dev/132. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `ExascaleDbStorageVault.List`. +message ListExascaleDbStorageVaultsResponse { + // The ExascaleDbStorageVaults. + repeated ExascaleDbStorageVault exascale_db_storage_vaults = 1; + + // A token identifying a page of results the server should return. If present, + // the next page token can be provided to a subsequent + // ListExascaleDbStorageVaults call to list the next page. + // If empty, there are no more pages. + string next_page_token = 2; +} + +// The request for `ExascaleDbStorageVault.Create`. +message CreateExascaleDbStorageVaultRequest { + // Required. The value for parent of the ExascaleDbStorageVault in the + // following format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/ExascaleDbStorageVault" + } + ]; + + // Required. The ID of the ExascaleDbStorageVault to create. This value is + // restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of + // 63 characters in length. The value must start with a letter and end with a + // letter or a number. + string exascale_db_storage_vault_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created. + ExascaleDbStorageVault exascale_db_storage_vault = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request message for `ExascaleDbStorageVault.Delete`. +message DeleteExascaleDbStorageVaultRequest { + // Required. The name of the ExascaleDbStorageVault in the following format: + // projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/ExascaleDbStorageVault" + } + ]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/minor_version.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/minor_version.proto new file mode 100644 index 000000000000..ffec4222835c --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/minor_version.proto @@ -0,0 +1,86 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "MinorVersionProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// MinorVersion represents a minor version of a GI. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiMinorVersionSummary/ +message MinorVersion { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/MinorVersion" + pattern: "projects/{project}/locations/{location}/giVersions/{gi_version}/minorVersions/{minor_version}" + plural: "minorVersions" + singular: "minorVersion" + }; + + // Identifier. The name of the MinorVersion resource with the format: + // projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{minor_version} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The ID of the Grid Image. + string grid_image_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The valid Oracle grid infrastructure software version. + string version = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for `MinorVersion.List`. +message ListMinorVersionsRequest { + // Required. The parent value for the MinorVersion resource with the format: + // projects/{project}/locations/{location}/giVersions/{gi_version} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/MinorVersion" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, a maximum of 50 System Versions will be returned. + // The maximum value is 1000; values above 1000 will be reset to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying the requested page of results to return. All + // fields except the filter should remain the same as in the request that + // provided this page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. + // Only shapeFamily and gcp_oracle_zone_id are supported in this format: + // `shape_family="{shapeFamily}" AND + // gcp_oracle_zone_id="{gcp_oracle_zone_id}"`. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `MinorVersion.List`. +message ListMinorVersionsResponse { + // The list of MinorVersions. + repeated MinorVersion minor_versions = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/odb_network.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/odb_network.proto new file mode 100644 index 000000000000..c0aa0d006437 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/odb_network.proto @@ -0,0 +1,198 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "OdbNetworkProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Represents OdbNetwork resource. +message OdbNetwork { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/OdbNetwork" + pattern: "projects/{project}/locations/{location}/odbNetworks/{odb_network}" + plural: "odbNetworks" + singular: "odbNetwork" + }; + + // The various lifecycle states of the ODB Network. + enum State { + // Default unspecified value. + STATE_UNSPECIFIED = 0; + + // Indicates that the resource is in provisioning state. + PROVISIONING = 1; + + // Indicates that the resource is in available state. + AVAILABLE = 2; + + // Indicates that the resource is in terminating state. + TERMINATING = 3; + + // Indicates that the resource is in failed state. + FAILED = 4; + } + + // Identifier. The name of the OdbNetwork resource in the following format: + // projects/{project}/locations/{region}/odbNetworks/{odb_network} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The name of the VPC network in the following format: + // projects/{project}/global/networks/{network} + string network = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Optional. Labels or tags associated with the resource. + map labels = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The date and time that the OdbNetwork was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the ODB Network. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ID of the subscription entitlement associated with the + // OdbNetwork. + string entitlement_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The GCP Oracle zone where OdbNetwork is hosted. + // Example: us-east4-b-r2. + // If not specified, the system will pick a zone based on availability. + string gcp_oracle_zone = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for `OdbNetwork.Create`. +message CreateOdbNetworkRequest { + // Required. The parent value for the OdbNetwork in the following format: + // projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/OdbNetwork" + } + ]; + + // Required. The ID of the OdbNetwork to create. This value is restricted + // to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 + // characters in length. The value must start with a letter and end with + // a letter or a number. + string odb_network_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Details of the OdbNetwork instance to create. + OdbNetwork odb_network = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `OdbNetwork.Delete`. +message DeleteOdbNetworkRequest { + // Required. The name of the resource in the following format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbNetwork" + } + ]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `OdbNetwork.List`. +message ListOdbNetworksRequest { + // Required. The parent value for the ODB Network in the following format: + // projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/OdbNetwork" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 ODB Networks will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for ordering the results of the request. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `OdbNetwork.List`. +message ListOdbNetworksResponse { + // The list of ODB Networks. + repeated OdbNetwork odb_networks = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unreachable locations when listing resources across all locations using + // wildcard location '-'. + repeated string unreachable = 3; +} + +// The request for `OdbNetwork.Get`. +message GetOdbNetworkRequest { + // Required. The name of the OdbNetwork in the following format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbNetwork" + } + ]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/odb_subnet.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/odb_subnet.proto new file mode 100644 index 000000000000..b772b1d65fe0 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/odb_subnet.proto @@ -0,0 +1,200 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "OdbSubnetProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// Represents OdbSubnet resource. +message OdbSubnet { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/OdbSubnet" + pattern: "projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}" + plural: "odbSubnets" + singular: "odbSubnet" + }; + + // Purpose available for the subnet. + enum Purpose { + // Default unspecified value. + PURPOSE_UNSPECIFIED = 0; + + // Subnet to be used for client connections. + CLIENT_SUBNET = 1; + + // Subnet to be used for backup. + BACKUP_SUBNET = 2; + } + + // The various lifecycle states of the ODB Subnet. + enum State { + // Default unspecified value. + STATE_UNSPECIFIED = 0; + + // Indicates that the resource is in provisioning state. + PROVISIONING = 1; + + // Indicates that the resource is in available state. + AVAILABLE = 2; + + // Indicates that the resource is in terminating state. + TERMINATING = 3; + + // Indicates that the resource is in failed state. + FAILED = 4; + } + + // Identifier. The name of the OdbSubnet resource in the following format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The CIDR range of the subnet. + string cidr_range = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Purpose of the subnet. + Purpose purpose = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Labels or tags associated with the resource. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The date and time that the OdbNetwork was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the ODB Subnet. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request for `OdbSubnet.Create`. +message CreateOdbSubnetRequest { + // Required. The parent value for the OdbSubnet in the following format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; + + // Required. The ID of the OdbSubnet to create. This value is restricted + // to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 + // characters in length. The value must start with a letter and end with + // a letter or a number. + string odb_subnet_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Details of the OdbSubnet instance to create. + OdbSubnet odb_subnet = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `OdbSubnet.Delete`. +message DeleteOdbSubnetRequest { + // Required. The name of the resource in the following format: + // projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `OdbSubnet.List`. +message ListOdbSubnetsRequest { + // Required. The parent value for the OdbSubnet in the following format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 ODB Networks will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for ordering the results of the request. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `OdbSubnet.List`. +message ListOdbSubnetsResponse { + // The list of ODB Subnets. + repeated OdbSubnet odb_subnets = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unreachable locations when listing resources across all locations using + // wildcard location '-'. + repeated string unreachable = 3; +} + +// The request for `OdbSubnet.Get`. +message GetOdbSubnetRequest { + // Required. The name of the OdbSubnet in the following format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto index 7eb2cc51cacd..34dc96133391 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto @@ -25,15 +25,27 @@ import "google/cloud/oracledatabase/v1/autonomous_database.proto"; import "google/cloud/oracledatabase/v1/autonomous_database_character_set.proto"; import "google/cloud/oracledatabase/v1/autonomous_db_backup.proto"; import "google/cloud/oracledatabase/v1/autonomous_db_version.proto"; +import "google/cloud/oracledatabase/v1/database.proto"; +import "google/cloud/oracledatabase/v1/database_character_set.proto"; import "google/cloud/oracledatabase/v1/db_node.proto"; import "google/cloud/oracledatabase/v1/db_server.proto"; +import "google/cloud/oracledatabase/v1/db_system.proto"; +import "google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto"; import "google/cloud/oracledatabase/v1/db_system_shape.proto"; +import "google/cloud/oracledatabase/v1/db_version.proto"; import "google/cloud/oracledatabase/v1/entitlement.proto"; import "google/cloud/oracledatabase/v1/exadata_infra.proto"; +import "google/cloud/oracledatabase/v1/exadb_vm_cluster.proto"; +import "google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto"; import "google/cloud/oracledatabase/v1/gi_version.proto"; +import "google/cloud/oracledatabase/v1/minor_version.proto"; +import "google/cloud/oracledatabase/v1/odb_network.proto"; +import "google/cloud/oracledatabase/v1/odb_subnet.proto"; +import "google/cloud/oracledatabase/v1/pluggable_database.proto"; import "google/cloud/oracledatabase/v1/vm_cluster.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; @@ -47,6 +59,10 @@ option (google.api.resource_definition) = { type: "compute.googleapis.com/Network" pattern: "projects/{project}/global/networks/{network}" }; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; // Service describing handlers for resources service OracleDatabase { @@ -166,6 +182,9 @@ service OracleDatabase { rpc ListDbNodes(ListDbNodesRequest) returns (ListDbNodesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/cloudVmClusters/*}/dbNodes" + additional_bindings { + get: "/v1/{parent=projects/*/locations/*/exadbVmClusters/*}/dbNodes" + } }; option (google.api.method_signature) = "parent"; } @@ -179,6 +198,16 @@ service OracleDatabase { option (google.api.method_signature) = "parent"; } + // Lists all the valid minor versions for the given + // project, location, gi version and shape family. + rpc ListMinorVersions(ListMinorVersionsRequest) + returns (ListMinorVersionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/giVersions/*}/minorVersions" + }; + option (google.api.method_signature) = "parent"; + } + // Lists the database system shapes available for the project and location. rpc ListDbSystemShapes(ListDbSystemShapesRequest) returns (ListDbSystemShapesResponse) { @@ -221,6 +250,20 @@ service OracleDatabase { }; } + // Updates the parameters of a single Autonomous Database. + rpc UpdateAutonomousDatabase(UpdateAutonomousDatabaseRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{autonomous_database.name=projects/*/locations/*/autonomousDatabases/*}" + body: "autonomous_database" + }; + option (google.api.method_signature) = "autonomous_database,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AutonomousDatabase" + metadata_type: "OperationMetadata" + }; + } + // Deletes a single Autonomous Database. rpc DeleteAutonomousDatabase(DeleteAutonomousDatabaseRequest) returns (google.longrunning.Operation) { @@ -328,6 +371,351 @@ service OracleDatabase { metadata_type: "OperationMetadata" }; } + + // Initiates a switchover of specified autonomous database to the associated + // peer database. + rpc SwitchoverAutonomousDatabase(SwitchoverAutonomousDatabaseRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:switchover" + body: "*" + }; + option (google.api.method_signature) = "name,peer_autonomous_database"; + option (google.longrunning.operation_info) = { + response_type: "AutonomousDatabase" + metadata_type: "OperationMetadata" + }; + } + + // Initiates a failover to target autonomous database from the associated + // primary database. + rpc FailoverAutonomousDatabase(FailoverAutonomousDatabaseRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:failover" + body: "*" + }; + option (google.api.method_signature) = "name,peer_autonomous_database"; + option (google.longrunning.operation_info) = { + response_type: "AutonomousDatabase" + metadata_type: "OperationMetadata" + }; + } + + // Lists the ODB Networks in a given project and location. + rpc ListOdbNetworks(ListOdbNetworksRequest) + returns (ListOdbNetworksResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/odbNetworks" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single ODB Network. + rpc GetOdbNetwork(GetOdbNetworkRequest) returns (OdbNetwork) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/odbNetworks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new ODB Network in a given project and location. + rpc CreateOdbNetwork(CreateOdbNetworkRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/odbNetworks" + body: "odb_network" + }; + option (google.api.method_signature) = "parent,odb_network,odb_network_id"; + option (google.longrunning.operation_info) = { + response_type: "OdbNetwork" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single ODB Network. + rpc DeleteOdbNetwork(DeleteOdbNetworkRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/odbNetworks/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists all the ODB Subnets in a given ODB Network. + rpc ListOdbSubnets(ListOdbSubnetsRequest) returns (ListOdbSubnetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/odbNetworks/*}/odbSubnets" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single ODB Subnet. + rpc GetOdbSubnet(GetOdbSubnetRequest) returns (OdbSubnet) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/odbNetworks/*/odbSubnets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new ODB Subnet in a given ODB Network. + rpc CreateOdbSubnet(CreateOdbSubnetRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/odbNetworks/*}/odbSubnets" + body: "odb_subnet" + }; + option (google.api.method_signature) = "parent,odb_subnet,odb_subnet_id"; + option (google.longrunning.operation_info) = { + response_type: "OdbSubnet" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single ODB Subnet. + rpc DeleteOdbSubnet(DeleteOdbSubnetRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/odbNetworks/*/odbSubnets/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists all the Exadb (Exascale) VM Clusters for the given project and + // location. + rpc ListExadbVmClusters(ListExadbVmClustersRequest) + returns (ListExadbVmClustersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/exadbVmClusters" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Exadb (Exascale) VM Cluster. + rpc GetExadbVmCluster(GetExadbVmClusterRequest) returns (ExadbVmCluster) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/exadbVmClusters/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Exadb (Exascale) VM Cluster resource. + rpc CreateExadbVmCluster(CreateExadbVmClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/exadbVmClusters" + body: "exadb_vm_cluster" + }; + option (google.api.method_signature) = + "parent,exadb_vm_cluster,exadb_vm_cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "ExadbVmCluster" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Exadb (Exascale) VM Cluster. + rpc DeleteExadbVmCluster(DeleteExadbVmClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/exadbVmClusters/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to + // existing exadb vm cluster, only pass the node count. + rpc UpdateExadbVmCluster(UpdateExadbVmClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{exadb_vm_cluster.name=projects/*/locations/*/exadbVmClusters/*}" + body: "exadb_vm_cluster" + }; + option (google.api.method_signature) = "exadb_vm_cluster,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ExadbVmCluster" + metadata_type: "OperationMetadata" + }; + } + + // Removes virtual machines from an existing exadb vm cluster. + rpc RemoveVirtualMachineExadbVmCluster( + RemoveVirtualMachineExadbVmClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/exadbVmClusters/*}:removeVirtualMachine" + body: "*" + }; + option (google.api.method_signature) = "name,hostnames"; + option (google.longrunning.operation_info) = { + response_type: "ExadbVmCluster" + metadata_type: "OperationMetadata" + }; + } + + // Lists all the ExascaleDB Storage Vaults for the given project and + // location. + rpc ListExascaleDbStorageVaults(ListExascaleDbStorageVaultsRequest) + returns (ListExascaleDbStorageVaultsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/exascaleDbStorageVaults" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single ExascaleDB Storage Vault. + rpc GetExascaleDbStorageVault(GetExascaleDbStorageVaultRequest) + returns (ExascaleDbStorageVault) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/exascaleDbStorageVaults/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new ExascaleDB Storage Vault resource. + rpc CreateExascaleDbStorageVault(CreateExascaleDbStorageVaultRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/exascaleDbStorageVaults" + body: "exascale_db_storage_vault" + }; + option (google.api.method_signature) = + "parent,exascale_db_storage_vault,exascale_db_storage_vault_id"; + option (google.longrunning.operation_info) = { + response_type: "ExascaleDbStorageVault" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single ExascaleDB Storage Vault. + rpc DeleteExascaleDbStorageVault(DeleteExascaleDbStorageVaultRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/exascaleDbStorageVaults/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists all the DbSystemInitialStorageSizes for the given project and + // location. + rpc ListDbSystemInitialStorageSizes(ListDbSystemInitialStorageSizesRequest) + returns (ListDbSystemInitialStorageSizesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/dbSystemInitialStorageSizes" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists all the Databases for the given project, location and DbSystem. + rpc ListDatabases(ListDatabasesRequest) returns (ListDatabasesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/databases" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Database. + rpc GetDatabase(GetDatabaseRequest) returns (Database) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/databases/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all the PluggableDatabases for the given project, location and + // Container Database. + rpc ListPluggableDatabases(ListPluggableDatabasesRequest) + returns (ListPluggableDatabasesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/pluggableDatabases" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single PluggableDatabase. + rpc GetPluggableDatabase(GetPluggableDatabaseRequest) + returns (PluggableDatabase) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/pluggableDatabases/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all the DbSystems for the given project and location. + rpc ListDbSystems(ListDbSystemsRequest) returns (ListDbSystemsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/dbSystems" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single DbSystem. + rpc GetDbSystem(GetDbSystemRequest) returns (DbSystem) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dbSystems/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new DbSystem in a given project and location. + rpc CreateDbSystem(CreateDbSystemRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/dbSystems" + body: "db_system" + }; + option (google.api.method_signature) = "parent,db_system,db_system_id"; + option (google.longrunning.operation_info) = { + response_type: "DbSystem" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single DbSystem. + rpc DeleteDbSystem(DeleteDbSystemRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/dbSystems/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // List DbVersions for the given project and location. + rpc ListDbVersions(ListDbVersionsRequest) returns (ListDbVersionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/dbVersions" + }; + option (google.api.method_signature) = "parent"; + } + + // List DatabaseCharacterSets for the given project and location. + rpc ListDatabaseCharacterSets(ListDatabaseCharacterSetsRequest) + returns (ListDatabaseCharacterSetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/databaseCharacterSets" + }; + option (google.api.method_signature) = "parent"; + } } // The request for `CloudExadataInfrastructures.List`. @@ -348,6 +736,12 @@ message ListCloudExadataInfrastructuresRequest { // Optional. A token identifying a page of results the server should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for ordering the results of the request. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // The response for `CloudExadataInfrastructures.list`. @@ -609,6 +1003,7 @@ message ListDbServersResponse { message ListDbNodesRequest { // Required. The parent value for database node in the following format: // projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + // . string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -653,6 +1048,11 @@ message ListGiVersionsRequest { // Optional. A token identifying a page of results the server should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. Only the + // shape, gcp_oracle_zone and gi_version fields are supported in this format: + // `shape="{shape}"`. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; } // The response for `GiVersion.List`. @@ -682,6 +1082,11 @@ message ListDbSystemShapesRequest { // Optional. A token identifying a page of results the server should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. Only the + // gcp_oracle_zone_id field is supported in this format: + // `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; } // The response for `DbSystemShape.List`. @@ -809,6 +1214,34 @@ message CreateAutonomousDatabaseRequest { ]; } +// The request for `AutonomousDatabase.Update`. +message UpdateAutonomousDatabaseRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // Exadata 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. The resource being updated + AutonomousDatabase autonomous_database = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // The request for `AutonomousDatabase.Delete`. message DeleteAutonomousDatabaseRequest { // Required. The name of the resource in the following format: @@ -886,6 +1319,46 @@ message RestartAutonomousDatabaseRequest { ]; } +// The request for `OracleDatabase.SwitchoverAutonomousDatabase`. +message SwitchoverAutonomousDatabaseRequest { + // Required. The name of the Autonomous Database in the following format: + // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + + // Required. The peer database name to switch over to. + string peer_autonomous_database = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; +} + +// The request for `OracleDatabase.FailoverAutonomousDatabase`. +message FailoverAutonomousDatabaseRequest { + // Required. The name of the Autonomous Database in the following format: + // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; + + // Required. The peer database name to fail over to. + string peer_autonomous_database = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/AutonomousDatabase" + } + ]; +} + // The request for `AutonomousDatabase.GenerateWallet`. message GenerateAutonomousDatabaseWalletRequest { // Required. The name of the Autonomous Database in the following format: @@ -1018,3 +1491,170 @@ message ListAutonomousDatabaseBackupsResponse { // A token identifying a page of results the server should return. string next_page_token = 2; } + +// The request for `ExadbVmCluster.Create`. +message CreateExadbVmClusterRequest { + // Required. The value for parent of the ExadbVmCluster in the following + // format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/ExadbVmCluster" + } + ]; + + // Required. The ID of the ExadbVmCluster to create. This value is + // restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of + // 63 characters in length. The value must start with a letter and end with a + // letter or a number. + string exadb_vm_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created. + ExadbVmCluster exadb_vm_cluster = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `ExadbVmCluster.Delete`. +message DeleteExadbVmClusterRequest { + // Required. The name of the ExadbVmCluster in the following format: + // projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/ExadbVmCluster" + } + ]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `ExadbVmCluster.Get`. +message GetExadbVmClusterRequest { + // Required. The name of the ExadbVmCluster in the following format: + // projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/ExadbVmCluster" + } + ]; +} + +// The request for `ExadbVmCluster.List`. +message ListExadbVmClustersRequest { + // Required. The parent value for ExadbVmClusters in the following format: + // projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/ExadbVmCluster" + } + ]; + + // Optional. The maximum number of items to return. + // If unspecified, at most 50 ExadbVmClusters will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for ordering the results of the request. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `ExadbVmCluster.List`. +message ListExadbVmClustersResponse { + // The list of ExadbVmClusters. + repeated ExadbVmCluster exadb_vm_clusters = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// The request for `ExadbVmCluster.Update`. We only support adding the +// Virtual Machine to the ExadbVmCluster. Rest of the fields in ExadbVmCluster +// are immutable. +message UpdateExadbVmClusterRequest { + // Optional. A mask specifying which fields in th VM Cluster should be + // updated. A field specified in the mask is overwritten. If a mask isn't + // provided then all the fields in the VM Cluster are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The resource being updated. + ExadbVmCluster exadb_vm_cluster = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for `ExadbVmCluster.RemoveVirtualMachine`. +message RemoveVirtualMachineExadbVmClusterRequest { + // Required. The name of the ExadbVmCluster in the following format: + // projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/ExadbVmCluster" + } + ]; + + // Optional. An optional ID to identify the request. This value is used to + // identify duplicate requests. If you make a request with the same request ID + // and the original request is still in progress or completed, the server + // ignores the second request. This prevents clients from + // accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Required. The list of host names of db nodes to be removed from the + // ExadbVmCluster. + repeated string hostnames = 4 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/pluggable_database.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/pluggable_database.proto new file mode 100644 index 000000000000..cf4584e46526 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/pluggable_database.proto @@ -0,0 +1,336 @@ +// Copyright 2025 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.oracledatabase.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.OracleDatabase.V1"; +option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb"; +option java_multiple_files = true; +option java_outer_classname = "PluggableDatabaseProto"; +option java_package = "com.google.cloud.oracledatabase.v1"; +option php_namespace = "Google\\Cloud\\OracleDatabase\\V1"; +option ruby_package = "Google::Cloud::OracleDatabase::V1"; + +// The PluggableDatabase resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/ +message PluggableDatabase { + option (google.api.resource) = { + type: "oracledatabase.googleapis.com/PluggableDatabase" + pattern: "projects/{project}/locations/{location}/pluggableDatabases/{pluggable_database}" + plural: "pluggableDatabases" + singular: "pluggableDatabase" + }; + + // Identifier. The name of the PluggableDatabase resource in the following + // format: + // projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The properties of the PluggableDatabase. + PluggableDatabaseProperties properties = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. HTTPS link to OCI resources exposed to Customer via UI + // Interface. + string oci_url = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date and time that the PluggableDatabase was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The properties of a PluggableDatabase. +message PluggableDatabaseProperties { + // Wrapper message for the value of a defined tag. + message DefinedTagValue { + // The tags within the namespace. + map tags = 1; + } + + // The various lifecycle states of the PluggableDatabase. + enum PluggableDatabaseLifecycleState { + // The lifecycle state is unspecified. + PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0; + + // The pluggable database is provisioning. + PROVISIONING = 1; + + // The pluggable database is available. + AVAILABLE = 2; + + // The pluggable database is terminating. + TERMINATING = 3; + + // The pluggable database is terminated. + TERMINATED = 4; + + // The pluggable database is updating. + UPDATING = 5; + + // The pluggable database is in a failed state. + FAILED = 6; + + // The pluggable database is relocating. + RELOCATING = 7; + + // The pluggable database is relocated. + RELOCATED = 8; + + // The pluggable database is refreshing. + REFRESHING = 9; + + // The pluggable database is restoring. + RESTORE_IN_PROGRESS = 10; + + // The pluggable database restore failed. + RESTORE_FAILED = 11; + + // The pluggable database is backing up. + BACKUP_IN_PROGRESS = 12; + + // The pluggable database is disabled. + DISABLED = 13; + } + + // The status of Operations Insights for this Database. + enum OperationsInsightsState { + // The status is not specified. + OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0; + + // Operations Insights is enabling. + ENABLING = 1; + + // Operations Insights is enabled. + ENABLED = 2; + + // Operations Insights is disabling. + DISABLING = 3; + + // Operations Insights is not enabled. + NOT_ENABLED = 4; + + // Operations Insights failed to enable. + FAILED_ENABLING = 5; + + // Operations Insights failed to disable. + FAILED_DISABLING = 6; + } + + // Required. The OCID of the compartment. + string compartment_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Connection strings used to connect to the Oracle Database. + PluggableDatabaseConnectionStrings connection_strings = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The OCID of the CDB. + string container_database_ocid = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Defined tags for this resource. Each key is predefined and scoped + // to a namespace. + map defined_tags = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Free-form tags for this resource. Each tag is a simple key-value + // pair with no predefined name, type, or namespace. + map freeform_tags = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The OCID of the pluggable database. + string ocid = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The restricted mode of the pluggable database. If a pluggable + // database is opened in restricted mode, the user needs both create a session + // and have restricted session privileges to connect to it. + bool is_restricted = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Additional information about the current lifecycle state. + string lifecycle_details = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the pluggable database. + PluggableDatabaseLifecycleState lifecycle_state = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The database name. + string pdb_name = 10 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Pluggable Database Node Level Details + repeated PluggableDatabaseNodeLevelDetails pdb_node_level_details = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The configuration of the Database Management service. + DatabaseManagementConfig database_management_config = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of Operations Insights for this Database. + OperationsInsightsState operations_insights_state = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The connection strings used to connect to the Oracle Database. +message PluggableDatabaseConnectionStrings { + // Optional. All connection strings to use to connect to the pluggable + // database. + map all_connection_strings = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default connection string to use to connect to the pluggable + // database. + string pdb_default = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default connection string to use to connect to the pluggable + // database using IP. + string pdb_ip_default = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The Pluggable Database Node Level Details. +message PluggableDatabaseNodeLevelDetails { + // The mode that the pluggable database is in to open it. + enum PluggableDatabaseOpenMode { + // The open mode is unspecified. + PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED = 0; + + // The pluggable database is opened in read-only mode. + READ_ONLY = 1; + + // The pluggable database is opened in read-write mode. + READ_WRITE = 2; + + // The pluggable database is mounted. + MOUNTED = 3; + + // The pluggable database is migrated. + MIGRATE = 4; + } + + // Required. The Node name of the Database home. + string node_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mode that the pluggable database is in to open it. + PluggableDatabaseOpenMode open_mode = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The OCID of the Pluggable Database. + string pluggable_database_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The configuration of the Database Management service. +message DatabaseManagementConfig { + // The status of the Database Management service. + enum ManagementState { + // The status is not specified. + MANAGEMENT_STATE_UNSPECIFIED = 0; + + // The Database Management service is enabling. + ENABLING = 1; + + // The Database Management service is enabled. + ENABLED = 2; + + // The Database Management service is disabling. + DISABLING = 3; + + // The Database Management service is disabled. + DISABLED = 4; + + // The Database Management service is updating. + UPDATING = 5; + + // The Database Management service failed to enable. + FAILED_ENABLING = 6; + + // The Database Management service failed to disable. + FAILED_DISABLING = 7; + + // The Database Management service failed to update. + FAILED_UPDATING = 8; + } + + // The Database Management type. + enum ManagementType { + // The type is not specified. + MANAGEMENT_TYPE_UNSPECIFIED = 0; + + // Basic Database Management. + BASIC = 1; + + // Advanced Database Management. + ADVANCED = 2; + } + + // Output only. The status of the Database Management service. + ManagementState management_state = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Database Management type. + ManagementType management_type = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request for `PluggableDatabase.Get`. +message GetPluggableDatabaseRequest { + // Required. The name of the PluggableDatabase resource in the following + // format: + // projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/PluggableDatabase" + } + ]; +} + +// The request for `PluggableDatabase.List`. +message ListPluggableDatabasesRequest { + // Required. The parent, which owns this collection of PluggableDatabases. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "oracledatabase.googleapis.com/PluggableDatabase" + } + ]; + + // Optional. The maximum number of PluggableDatabases to return. The service + // may return fewer than this value. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListPluggableDatabases` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListPluggableDatabases` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression for filtering the results of the request. List for + // pluggable databases is supported only with a valid container database (full + // resource name) filter in this format: + // `database="projects/{project}/locations/{location}/databases/{database}"` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for `PluggableDatabase.List`. +message ListPluggableDatabasesResponse { + // The list of PluggableDatabases. + repeated PluggableDatabase pluggable_databases = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto index f0f0d3c29482..6a220b31e25c 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto @@ -18,6 +18,7 @@ package google.cloud.oracledatabase.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/oracledatabase/v1/common.proto"; import "google/protobuf/timestamp.proto"; import "google/type/datetime.proto"; @@ -56,10 +57,6 @@ message CloudVmCluster { // Optional. User friendly name for this resource. string display_name = 3 [(google.api.field_behavior) = OPTIONAL]; - // Output only. Google Cloud Platform location where Oracle Exadata is hosted. - // It is same as Google Cloud Platform Oracle zone of Exadata infrastructure. - string gcp_oracle_zone = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Various properties of the VM Cluster. CloudVmClusterProperties properties = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -71,18 +68,60 @@ message CloudVmCluster { google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. Network settings. CIDR to use for cluster IP allocation. - string cidr = 9 [(google.api.field_behavior) = REQUIRED]; + // Optional. Network settings. CIDR to use for cluster IP allocation. + string cidr = 9 [(google.api.field_behavior) = OPTIONAL]; - // Required. CIDR range of the backup subnet. - string backup_subnet_cidr = 10 [(google.api.field_behavior) = REQUIRED]; + // Optional. CIDR range of the backup subnet. + string backup_subnet_cidr = 10 [(google.api.field_behavior) = OPTIONAL]; - // Required. The name of the VPC network. + // Optional. The name of the VPC network. // Format: projects/{project}/global/networks/{network} string network = 11 [ - (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; + + // Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted. + // This will be the same as the gcp_oracle_zone of the + // CloudExadataInfrastructure. Example: us-east4-b-r2. + string gcp_oracle_zone = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The name of the OdbNetwork associated with the VM Cluster. + // Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network} + // It is optional but if specified, this should match the parent ODBNetwork of + // the odb_subnet and backup_odb_subnet. + string odb_network = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbNetwork" + } + ]; + + // Optional. The name of the OdbSubnet associated with the VM Cluster for + // IP allocation. Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + string odb_subnet = 14 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; + + // Optional. The name of the backup OdbSubnet associated with the VM Cluster. + // Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + string backup_odb_subnet = 15 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/OdbSubnet" + } + ]; + + // Output only. The identity connector details which will allow OCI to + // securely access the resources in the customer project. + IdentityConnector identity_connector = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Various properties and settings associated with Exadata VM cluster. @@ -239,6 +278,9 @@ message CloudVmClusterProperties { // Optional. OCI Cluster name. string cluster_name = 36 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The compute model of the VM Cluster. + ComputeModel compute_model = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Data collection options for diagnostics. diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/AsyncCreateDbSystem.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/AsyncCreateDbSystem.java new file mode 100644 index 000000000000..84620e550b75 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/AsyncCreateDbSystem.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CreateDbSystemRequest; +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncCreateDbSystem { + + public static void main(String[] args) throws Exception { + asyncCreateDbSystem(); + } + + public static void asyncCreateDbSystem() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateDbSystemRequest request = + CreateDbSystemRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDbSystemId("dbSystemId-1467630008") + .setDbSystem(DbSystem.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.createDbSystemCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/AsyncCreateDbSystemLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/AsyncCreateDbSystemLRO.java new file mode 100644 index 000000000000..39c03a894752 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/AsyncCreateDbSystemLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CreateDbSystemRequest; +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncCreateDbSystemLRO { + + public static void main(String[] args) throws Exception { + asyncCreateDbSystemLRO(); + } + + public static void asyncCreateDbSystemLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateDbSystemRequest request = + CreateDbSystemRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDbSystemId("dbSystemId-1467630008") + .setDbSystem(DbSystem.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.createDbSystemOperationCallable().futureCall(request); + // Do something. + DbSystem response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/SyncCreateDbSystem.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/SyncCreateDbSystem.java new file mode 100644 index 000000000000..84e4560478c9 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/SyncCreateDbSystem.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_sync] +import com.google.cloud.oracledatabase.v1.CreateDbSystemRequest; +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateDbSystem { + + public static void main(String[] args) throws Exception { + syncCreateDbSystem(); + } + + public static void syncCreateDbSystem() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateDbSystemRequest request = + CreateDbSystemRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDbSystemId("dbSystemId-1467630008") + .setDbSystem(DbSystem.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + DbSystem response = oracleDatabaseClient.createDbSystemAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/SyncCreateDbSystemLocationnameDbsystemString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/SyncCreateDbSystemLocationnameDbsystemString.java new file mode 100644 index 000000000000..8c5287c91c31 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/SyncCreateDbSystemLocationnameDbsystemString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_LocationnameDbsystemString_sync] +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateDbSystemLocationnameDbsystemString { + + public static void main(String[] args) throws Exception { + syncCreateDbSystemLocationnameDbsystemString(); + } + + public static void syncCreateDbSystemLocationnameDbsystemString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + DbSystem response = + oracleDatabaseClient.createDbSystemAsync(parent, dbSystem, dbSystemId).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_LocationnameDbsystemString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/SyncCreateDbSystemStringDbsystemString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/SyncCreateDbSystemStringDbsystemString.java new file mode 100644 index 000000000000..69f9861d3012 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createdbsystem/SyncCreateDbSystemStringDbsystemString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_StringDbsystemString_sync] +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateDbSystemStringDbsystemString { + + public static void main(String[] args) throws Exception { + syncCreateDbSystemStringDbsystemString(); + } + + public static void syncCreateDbSystemStringDbsystemString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + DbSystem dbSystem = DbSystem.newBuilder().build(); + String dbSystemId = "dbSystemId-1467630008"; + DbSystem response = + oracleDatabaseClient.createDbSystemAsync(parent, dbSystem, dbSystemId).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_StringDbsystemString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/AsyncCreateExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/AsyncCreateExadbVmCluster.java new file mode 100644 index 000000000000..41592fbde606 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/AsyncCreateExadbVmCluster.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncCreateExadbVmCluster { + + public static void main(String[] args) throws Exception { + asyncCreateExadbVmCluster(); + } + + public static void asyncCreateExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateExadbVmClusterRequest request = + CreateExadbVmClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setExadbVmClusterId("exadbVmClusterId1890152722") + .setExadbVmCluster(ExadbVmCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.createExadbVmClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/AsyncCreateExadbVmClusterLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/AsyncCreateExadbVmClusterLRO.java new file mode 100644 index 000000000000..cbb021676daa --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/AsyncCreateExadbVmClusterLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncCreateExadbVmClusterLRO { + + public static void main(String[] args) throws Exception { + asyncCreateExadbVmClusterLRO(); + } + + public static void asyncCreateExadbVmClusterLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateExadbVmClusterRequest request = + CreateExadbVmClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setExadbVmClusterId("exadbVmClusterId1890152722") + .setExadbVmCluster(ExadbVmCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.createExadbVmClusterOperationCallable().futureCall(request); + // Do something. + ExadbVmCluster response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/SyncCreateExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/SyncCreateExadbVmCluster.java new file mode 100644 index 000000000000..3957d45aac9f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/SyncCreateExadbVmCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_sync] +import com.google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateExadbVmCluster { + + public static void main(String[] args) throws Exception { + syncCreateExadbVmCluster(); + } + + public static void syncCreateExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateExadbVmClusterRequest request = + CreateExadbVmClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setExadbVmClusterId("exadbVmClusterId1890152722") + .setExadbVmCluster(ExadbVmCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ExadbVmCluster response = oracleDatabaseClient.createExadbVmClusterAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/SyncCreateExadbVmClusterLocationnameExadbvmclusterString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/SyncCreateExadbVmClusterLocationnameExadbvmclusterString.java new file mode 100644 index 000000000000..493fa6761de1 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/SyncCreateExadbVmClusterLocationnameExadbvmclusterString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_LocationnameExadbvmclusterString_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateExadbVmClusterLocationnameExadbvmclusterString { + + public static void main(String[] args) throws Exception { + syncCreateExadbVmClusterLocationnameExadbvmclusterString(); + } + + public static void syncCreateExadbVmClusterLocationnameExadbvmclusterString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + ExadbVmCluster response = + oracleDatabaseClient + .createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_LocationnameExadbvmclusterString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/SyncCreateExadbVmClusterStringExadbvmclusterString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/SyncCreateExadbVmClusterStringExadbvmclusterString.java new file mode 100644 index 000000000000..7da3ff0501a8 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexadbvmcluster/SyncCreateExadbVmClusterStringExadbvmclusterString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_StringExadbvmclusterString_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateExadbVmClusterStringExadbvmclusterString { + + public static void main(String[] args) throws Exception { + syncCreateExadbVmClusterStringExadbvmclusterString(); + } + + public static void syncCreateExadbVmClusterStringExadbvmclusterString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + String exadbVmClusterId = "exadbVmClusterId1890152722"; + ExadbVmCluster response = + oracleDatabaseClient + .createExadbVmClusterAsync(parent, exadbVmCluster, exadbVmClusterId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_StringExadbvmclusterString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/AsyncCreateExascaleDbStorageVault.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/AsyncCreateExascaleDbStorageVault.java new file mode 100644 index 000000000000..d1964bf21975 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/AsyncCreateExascaleDbStorageVault.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncCreateExascaleDbStorageVault { + + public static void main(String[] args) throws Exception { + asyncCreateExascaleDbStorageVault(); + } + + public static void asyncCreateExascaleDbStorageVault() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateExascaleDbStorageVaultRequest request = + CreateExascaleDbStorageVaultRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132") + .setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.createExascaleDbStorageVaultCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/AsyncCreateExascaleDbStorageVaultLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/AsyncCreateExascaleDbStorageVaultLRO.java new file mode 100644 index 000000000000..1ccec7232222 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/AsyncCreateExascaleDbStorageVaultLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncCreateExascaleDbStorageVaultLRO { + + public static void main(String[] args) throws Exception { + asyncCreateExascaleDbStorageVaultLRO(); + } + + public static void asyncCreateExascaleDbStorageVaultLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateExascaleDbStorageVaultRequest request = + CreateExascaleDbStorageVaultRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132") + .setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.createExascaleDbStorageVaultOperationCallable().futureCall(request); + // Do something. + ExascaleDbStorageVault response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/SyncCreateExascaleDbStorageVault.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/SyncCreateExascaleDbStorageVault.java new file mode 100644 index 000000000000..20aa8beee78e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/SyncCreateExascaleDbStorageVault.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_sync] +import com.google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateExascaleDbStorageVault { + + public static void main(String[] args) throws Exception { + syncCreateExascaleDbStorageVault(); + } + + public static void syncCreateExascaleDbStorageVault() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateExascaleDbStorageVaultRequest request = + CreateExascaleDbStorageVaultRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setExascaleDbStorageVaultId("exascaleDbStorageVaultId-24370132") + .setExascaleDbStorageVault(ExascaleDbStorageVault.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ExascaleDbStorageVault response = + oracleDatabaseClient.createExascaleDbStorageVaultAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/SyncCreateExascaleDbStorageVaultLocationnameExascaledbstoragevaultString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/SyncCreateExascaleDbStorageVaultLocationnameExascaledbstoragevaultString.java new file mode 100644 index 000000000000..40ed09bccd86 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/SyncCreateExascaleDbStorageVaultLocationnameExascaledbstoragevaultString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_LocationnameExascaledbstoragevaultString_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateExascaleDbStorageVaultLocationnameExascaledbstoragevaultString { + + public static void main(String[] args) throws Exception { + syncCreateExascaleDbStorageVaultLocationnameExascaledbstoragevaultString(); + } + + public static void syncCreateExascaleDbStorageVaultLocationnameExascaledbstoragevaultString() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + ExascaleDbStorageVault response = + oracleDatabaseClient + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_LocationnameExascaledbstoragevaultString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/SyncCreateExascaleDbStorageVaultStringExascaledbstoragevaultString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/SyncCreateExascaleDbStorageVaultStringExascaledbstoragevaultString.java new file mode 100644 index 000000000000..d830252a9613 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createexascaledbstoragevault/SyncCreateExascaleDbStorageVaultStringExascaledbstoragevaultString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_StringExascaledbstoragevaultString_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateExascaleDbStorageVaultStringExascaledbstoragevaultString { + + public static void main(String[] args) throws Exception { + syncCreateExascaleDbStorageVaultStringExascaledbstoragevaultString(); + } + + public static void syncCreateExascaleDbStorageVaultStringExascaledbstoragevaultString() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + ExascaleDbStorageVault exascaleDbStorageVault = ExascaleDbStorageVault.newBuilder().build(); + String exascaleDbStorageVaultId = "exascaleDbStorageVaultId-24370132"; + ExascaleDbStorageVault response = + oracleDatabaseClient + .createExascaleDbStorageVaultAsync( + parent, exascaleDbStorageVault, exascaleDbStorageVaultId) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_StringExascaledbstoragevaultString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/AsyncCreateOdbNetwork.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/AsyncCreateOdbNetwork.java new file mode 100644 index 000000000000..e7bc22090b00 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/AsyncCreateOdbNetwork.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncCreateOdbNetwork { + + public static void main(String[] args) throws Exception { + asyncCreateOdbNetwork(); + } + + public static void asyncCreateOdbNetwork() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateOdbNetworkRequest request = + CreateOdbNetworkRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOdbNetworkId("odbNetworkId-169900740") + .setOdbNetwork(OdbNetwork.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.createOdbNetworkCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/AsyncCreateOdbNetworkLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/AsyncCreateOdbNetworkLRO.java new file mode 100644 index 000000000000..87371c538897 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/AsyncCreateOdbNetworkLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncCreateOdbNetworkLRO { + + public static void main(String[] args) throws Exception { + asyncCreateOdbNetworkLRO(); + } + + public static void asyncCreateOdbNetworkLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateOdbNetworkRequest request = + CreateOdbNetworkRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOdbNetworkId("odbNetworkId-169900740") + .setOdbNetwork(OdbNetwork.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.createOdbNetworkOperationCallable().futureCall(request); + // Do something. + OdbNetwork response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/SyncCreateOdbNetwork.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/SyncCreateOdbNetwork.java new file mode 100644 index 000000000000..ac431a422c10 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/SyncCreateOdbNetwork.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_sync] +import com.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateOdbNetwork { + + public static void main(String[] args) throws Exception { + syncCreateOdbNetwork(); + } + + public static void syncCreateOdbNetwork() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateOdbNetworkRequest request = + CreateOdbNetworkRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOdbNetworkId("odbNetworkId-169900740") + .setOdbNetwork(OdbNetwork.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OdbNetwork response = oracleDatabaseClient.createOdbNetworkAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/SyncCreateOdbNetworkLocationnameOdbnetworkString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/SyncCreateOdbNetworkLocationnameOdbnetworkString.java new file mode 100644 index 000000000000..9e9148c2bb2a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/SyncCreateOdbNetworkLocationnameOdbnetworkString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_LocationnameOdbnetworkString_sync] +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateOdbNetworkLocationnameOdbnetworkString { + + public static void main(String[] args) throws Exception { + syncCreateOdbNetworkLocationnameOdbnetworkString(); + } + + public static void syncCreateOdbNetworkLocationnameOdbnetworkString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + OdbNetwork response = + oracleDatabaseClient.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_LocationnameOdbnetworkString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/SyncCreateOdbNetworkStringOdbnetworkString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/SyncCreateOdbNetworkStringOdbnetworkString.java new file mode 100644 index 000000000000..652246ed7b06 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbnetwork/SyncCreateOdbNetworkStringOdbnetworkString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_StringOdbnetworkString_sync] +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateOdbNetworkStringOdbnetworkString { + + public static void main(String[] args) throws Exception { + syncCreateOdbNetworkStringOdbnetworkString(); + } + + public static void syncCreateOdbNetworkStringOdbnetworkString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + OdbNetwork odbNetwork = OdbNetwork.newBuilder().build(); + String odbNetworkId = "odbNetworkId-169900740"; + OdbNetwork response = + oracleDatabaseClient.createOdbNetworkAsync(parent, odbNetwork, odbNetworkId).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_StringOdbnetworkString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/AsyncCreateOdbSubnet.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/AsyncCreateOdbSubnet.java new file mode 100644 index 000000000000..74bc3ec47404 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/AsyncCreateOdbSubnet.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncCreateOdbSubnet { + + public static void main(String[] args) throws Exception { + asyncCreateOdbSubnet(); + } + + public static void asyncCreateOdbSubnet() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateOdbSubnetRequest request = + CreateOdbSubnetRequest.newBuilder() + .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnetId("odbSubnetId1186954661") + .setOdbSubnet(OdbSubnet.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.createOdbSubnetCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/AsyncCreateOdbSubnetLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/AsyncCreateOdbSubnetLRO.java new file mode 100644 index 000000000000..30a3a6ce697f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/AsyncCreateOdbSubnetLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncCreateOdbSubnetLRO { + + public static void main(String[] args) throws Exception { + asyncCreateOdbSubnetLRO(); + } + + public static void asyncCreateOdbSubnetLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateOdbSubnetRequest request = + CreateOdbSubnetRequest.newBuilder() + .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnetId("odbSubnetId1186954661") + .setOdbSubnet(OdbSubnet.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.createOdbSubnetOperationCallable().futureCall(request); + // Do something. + OdbSubnet response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/SyncCreateOdbSubnet.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/SyncCreateOdbSubnet.java new file mode 100644 index 000000000000..87297fc160c4 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/SyncCreateOdbSubnet.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_sync] +import com.google.cloud.oracledatabase.v1.CreateOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateOdbSubnet { + + public static void main(String[] args) throws Exception { + syncCreateOdbSubnet(); + } + + public static void syncCreateOdbSubnet() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CreateOdbSubnetRequest request = + CreateOdbSubnetRequest.newBuilder() + .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setOdbSubnetId("odbSubnetId1186954661") + .setOdbSubnet(OdbSubnet.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OdbSubnet response = oracleDatabaseClient.createOdbSubnetAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/SyncCreateOdbSubnetOdbnetworknameOdbsubnetString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/SyncCreateOdbSubnetOdbnetworknameOdbsubnetString.java new file mode 100644 index 000000000000..cdd6400d142d --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/SyncCreateOdbSubnetOdbnetworknameOdbsubnetString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_OdbnetworknameOdbsubnetString_sync] +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateOdbSubnetOdbnetworknameOdbsubnetString { + + public static void main(String[] args) throws Exception { + syncCreateOdbSubnetOdbnetworknameOdbsubnetString(); + } + + public static void syncCreateOdbSubnetOdbnetworknameOdbsubnetString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + OdbSubnet response = + oracleDatabaseClient.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_OdbnetworknameOdbsubnetString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/SyncCreateOdbSubnetStringOdbsubnetString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/SyncCreateOdbSubnetStringOdbsubnetString.java new file mode 100644 index 000000000000..d9bb046f5e38 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/createodbsubnet/SyncCreateOdbSubnetStringOdbsubnetString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_StringOdbsubnetString_sync] +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncCreateOdbSubnetStringOdbsubnetString { + + public static void main(String[] args) throws Exception { + syncCreateOdbSubnetStringOdbsubnetString(); + } + + public static void syncCreateOdbSubnetStringOdbsubnetString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString(); + OdbSubnet odbSubnet = OdbSubnet.newBuilder().build(); + String odbSubnetId = "odbSubnetId1186954661"; + OdbSubnet response = + oracleDatabaseClient.createOdbSubnetAsync(parent, odbSubnet, odbSubnetId).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_StringOdbsubnetString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/AsyncDeleteDbSystem.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/AsyncDeleteDbSystem.java new file mode 100644 index 000000000000..c7ff9d57bfc7 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/AsyncDeleteDbSystem.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DbSystemName; +import com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteDbSystem { + + public static void main(String[] args) throws Exception { + asyncDeleteDbSystem(); + } + + public static void asyncDeleteDbSystem() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteDbSystemRequest request = + DeleteDbSystemRequest.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.deleteDbSystemCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/AsyncDeleteDbSystemLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/AsyncDeleteDbSystemLRO.java new file mode 100644 index 000000000000..51d4f9960022 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/AsyncDeleteDbSystemLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.DbSystemName; +import com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteDbSystemLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteDbSystemLRO(); + } + + public static void asyncDeleteDbSystemLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteDbSystemRequest request = + DeleteDbSystemRequest.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.deleteDbSystemOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/SyncDeleteDbSystem.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/SyncDeleteDbSystem.java new file mode 100644 index 000000000000..ded8bb7d07a3 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/SyncDeleteDbSystem.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_sync] +import com.google.cloud.oracledatabase.v1.DbSystemName; +import com.google.cloud.oracledatabase.v1.DeleteDbSystemRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDbSystem { + + public static void main(String[] args) throws Exception { + syncDeleteDbSystem(); + } + + public static void syncDeleteDbSystem() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteDbSystemRequest request = + DeleteDbSystemRequest.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .setRequestId("requestId693933066") + .build(); + oracleDatabaseClient.deleteDbSystemAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/SyncDeleteDbSystemDbsystemname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/SyncDeleteDbSystemDbsystemname.java new file mode 100644 index 000000000000..b54280522dda --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/SyncDeleteDbSystemDbsystemname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_Dbsystemname_sync] +import com.google.cloud.oracledatabase.v1.DbSystemName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDbSystemDbsystemname { + + public static void main(String[] args) throws Exception { + syncDeleteDbSystemDbsystemname(); + } + + public static void syncDeleteDbSystemDbsystemname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + oracleDatabaseClient.deleteDbSystemAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_Dbsystemname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/SyncDeleteDbSystemString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/SyncDeleteDbSystemString.java new file mode 100644 index 000000000000..99158d5c1492 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deletedbsystem/SyncDeleteDbSystemString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_String_sync] +import com.google.cloud.oracledatabase.v1.DbSystemName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDbSystemString { + + public static void main(String[] args) throws Exception { + syncDeleteDbSystemString(); + } + + public static void syncDeleteDbSystemString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString(); + oracleDatabaseClient.deleteDbSystemAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/AsyncDeleteExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/AsyncDeleteExadbVmCluster.java new file mode 100644 index 000000000000..7b42e03c8102 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/AsyncDeleteExadbVmCluster.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteExadbVmCluster { + + public static void main(String[] args) throws Exception { + asyncDeleteExadbVmCluster(); + } + + public static void asyncDeleteExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteExadbVmClusterRequest request = + DeleteExadbVmClusterRequest.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.deleteExadbVmClusterCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/AsyncDeleteExadbVmClusterLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/AsyncDeleteExadbVmClusterLRO.java new file mode 100644 index 000000000000..7039203c8f27 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/AsyncDeleteExadbVmClusterLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteExadbVmClusterLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteExadbVmClusterLRO(); + } + + public static void asyncDeleteExadbVmClusterLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteExadbVmClusterRequest request = + DeleteExadbVmClusterRequest.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.deleteExadbVmClusterOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/SyncDeleteExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/SyncDeleteExadbVmCluster.java new file mode 100644 index 000000000000..705329b0b4a0 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/SyncDeleteExadbVmCluster.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_sync] +import com.google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExadbVmCluster { + + public static void main(String[] args) throws Exception { + syncDeleteExadbVmCluster(); + } + + public static void syncDeleteExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteExadbVmClusterRequest request = + DeleteExadbVmClusterRequest.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setRequestId("requestId693933066") + .build(); + oracleDatabaseClient.deleteExadbVmClusterAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/SyncDeleteExadbVmClusterExadbvmclustername.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/SyncDeleteExadbVmClusterExadbvmclustername.java new file mode 100644 index 000000000000..eb2c256bceb4 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/SyncDeleteExadbVmClusterExadbvmclustername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_Exadbvmclustername_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExadbVmClusterExadbvmclustername { + + public static void main(String[] args) throws Exception { + syncDeleteExadbVmClusterExadbvmclustername(); + } + + public static void syncDeleteExadbVmClusterExadbvmclustername() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + oracleDatabaseClient.deleteExadbVmClusterAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_Exadbvmclustername_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/SyncDeleteExadbVmClusterString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/SyncDeleteExadbVmClusterString.java new file mode 100644 index 000000000000..83baf620fff4 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexadbvmcluster/SyncDeleteExadbVmClusterString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_String_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExadbVmClusterString { + + public static void main(String[] args) throws Exception { + syncDeleteExadbVmClusterString(); + } + + public static void syncDeleteExadbVmClusterString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString(); + oracleDatabaseClient.deleteExadbVmClusterAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/AsyncDeleteExascaleDbStorageVault.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/AsyncDeleteExascaleDbStorageVault.java new file mode 100644 index 000000000000..d4757f5fc59e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/AsyncDeleteExascaleDbStorageVault.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteExascaleDbStorageVault { + + public static void main(String[] args) throws Exception { + asyncDeleteExascaleDbStorageVault(); + } + + public static void asyncDeleteExascaleDbStorageVault() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteExascaleDbStorageVaultRequest request = + DeleteExascaleDbStorageVaultRequest.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.deleteExascaleDbStorageVaultCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/AsyncDeleteExascaleDbStorageVaultLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/AsyncDeleteExascaleDbStorageVaultLRO.java new file mode 100644 index 000000000000..3de6dfa2f5f9 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/AsyncDeleteExascaleDbStorageVaultLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteExascaleDbStorageVaultLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteExascaleDbStorageVaultLRO(); + } + + public static void asyncDeleteExascaleDbStorageVaultLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteExascaleDbStorageVaultRequest request = + DeleteExascaleDbStorageVaultRequest.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.deleteExascaleDbStorageVaultOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/SyncDeleteExascaleDbStorageVault.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/SyncDeleteExascaleDbStorageVault.java new file mode 100644 index 000000000000..381c39bccaf9 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/SyncDeleteExascaleDbStorageVault.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_sync] +import com.google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExascaleDbStorageVault { + + public static void main(String[] args) throws Exception { + syncDeleteExascaleDbStorageVault(); + } + + public static void syncDeleteExascaleDbStorageVault() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteExascaleDbStorageVaultRequest request = + DeleteExascaleDbStorageVaultRequest.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + oracleDatabaseClient.deleteExascaleDbStorageVaultAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/SyncDeleteExascaleDbStorageVaultExascaledbstoragevaultname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/SyncDeleteExascaleDbStorageVaultExascaledbstoragevaultname.java new file mode 100644 index 000000000000..5cdfcab44bf0 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/SyncDeleteExascaleDbStorageVaultExascaledbstoragevaultname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_Exascaledbstoragevaultname_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExascaleDbStorageVaultExascaledbstoragevaultname { + + public static void main(String[] args) throws Exception { + syncDeleteExascaleDbStorageVaultExascaledbstoragevaultname(); + } + + public static void syncDeleteExascaleDbStorageVaultExascaledbstoragevaultname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + oracleDatabaseClient.deleteExascaleDbStorageVaultAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_Exascaledbstoragevaultname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/SyncDeleteExascaleDbStorageVaultString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/SyncDeleteExascaleDbStorageVaultString.java new file mode 100644 index 000000000000..7599af78ea78 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteexascaledbstoragevault/SyncDeleteExascaleDbStorageVaultString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_String_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExascaleDbStorageVaultString { + + public static void main(String[] args) throws Exception { + syncDeleteExascaleDbStorageVaultString(); + } + + public static void syncDeleteExascaleDbStorageVaultString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString(); + oracleDatabaseClient.deleteExascaleDbStorageVaultAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/AsyncDeleteOdbNetwork.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/AsyncDeleteOdbNetwork.java new file mode 100644 index 000000000000..77c81b946e68 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/AsyncDeleteOdbNetwork.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteOdbNetwork { + + public static void main(String[] args) throws Exception { + asyncDeleteOdbNetwork(); + } + + public static void asyncDeleteOdbNetwork() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteOdbNetworkRequest request = + DeleteOdbNetworkRequest.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.deleteOdbNetworkCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/AsyncDeleteOdbNetworkLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/AsyncDeleteOdbNetworkLRO.java new file mode 100644 index 000000000000..03424a20912e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/AsyncDeleteOdbNetworkLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteOdbNetworkLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteOdbNetworkLRO(); + } + + public static void asyncDeleteOdbNetworkLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteOdbNetworkRequest request = + DeleteOdbNetworkRequest.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.deleteOdbNetworkOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/SyncDeleteOdbNetwork.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/SyncDeleteOdbNetwork.java new file mode 100644 index 000000000000..495b85e82f16 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/SyncDeleteOdbNetwork.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_sync] +import com.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOdbNetwork { + + public static void main(String[] args) throws Exception { + syncDeleteOdbNetwork(); + } + + public static void syncDeleteOdbNetwork() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteOdbNetworkRequest request = + DeleteOdbNetworkRequest.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setRequestId("requestId693933066") + .build(); + oracleDatabaseClient.deleteOdbNetworkAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/SyncDeleteOdbNetworkOdbnetworkname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/SyncDeleteOdbNetworkOdbnetworkname.java new file mode 100644 index 000000000000..6cae938ffd42 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/SyncDeleteOdbNetworkOdbnetworkname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_Odbnetworkname_sync] +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOdbNetworkOdbnetworkname { + + public static void main(String[] args) throws Exception { + syncDeleteOdbNetworkOdbnetworkname(); + } + + public static void syncDeleteOdbNetworkOdbnetworkname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + oracleDatabaseClient.deleteOdbNetworkAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_Odbnetworkname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/SyncDeleteOdbNetworkString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/SyncDeleteOdbNetworkString.java new file mode 100644 index 000000000000..58beede6ff62 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbnetwork/SyncDeleteOdbNetworkString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_String_sync] +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOdbNetworkString { + + public static void main(String[] args) throws Exception { + syncDeleteOdbNetworkString(); + } + + public static void syncDeleteOdbNetworkString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString(); + oracleDatabaseClient.deleteOdbNetworkAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/AsyncDeleteOdbSubnet.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/AsyncDeleteOdbSubnet.java new file mode 100644 index 000000000000..afeabbb74b3d --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/AsyncDeleteOdbSubnet.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.OdbSubnetName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteOdbSubnet { + + public static void main(String[] args) throws Exception { + asyncDeleteOdbSubnet(); + } + + public static void asyncDeleteOdbSubnet() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteOdbSubnetRequest request = + DeleteOdbSubnetRequest.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.deleteOdbSubnetCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/AsyncDeleteOdbSubnetLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/AsyncDeleteOdbSubnetLRO.java new file mode 100644 index 000000000000..c255d0606fff --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/AsyncDeleteOdbSubnetLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.OdbSubnetName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteOdbSubnetLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteOdbSubnetLRO(); + } + + public static void asyncDeleteOdbSubnetLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteOdbSubnetRequest request = + DeleteOdbSubnetRequest.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.deleteOdbSubnetOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/SyncDeleteOdbSubnet.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/SyncDeleteOdbSubnet.java new file mode 100644 index 000000000000..f4442c2fbe3b --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/SyncDeleteOdbSubnet.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_sync] +import com.google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.OdbSubnetName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOdbSubnet { + + public static void main(String[] args) throws Exception { + syncDeleteOdbSubnet(); + } + + public static void syncDeleteOdbSubnet() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DeleteOdbSubnetRequest request = + DeleteOdbSubnetRequest.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .setRequestId("requestId693933066") + .build(); + oracleDatabaseClient.deleteOdbSubnetAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/SyncDeleteOdbSubnetOdbsubnetname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/SyncDeleteOdbSubnetOdbsubnetname.java new file mode 100644 index 000000000000..0a25a5b2da22 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/SyncDeleteOdbSubnetOdbsubnetname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_Odbsubnetname_sync] +import com.google.cloud.oracledatabase.v1.OdbSubnetName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOdbSubnetOdbsubnetname { + + public static void main(String[] args) throws Exception { + syncDeleteOdbSubnetOdbsubnetname(); + } + + public static void syncDeleteOdbSubnetOdbsubnetname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + oracleDatabaseClient.deleteOdbSubnetAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_Odbsubnetname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/SyncDeleteOdbSubnetString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/SyncDeleteOdbSubnetString.java new file mode 100644 index 000000000000..d995b4795b21 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/deleteodbsubnet/SyncDeleteOdbSubnetString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_String_sync] +import com.google.cloud.oracledatabase.v1.OdbSubnetName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOdbSubnetString { + + public static void main(String[] args) throws Exception { + syncDeleteOdbSubnetString(); + } + + public static void syncDeleteOdbSubnetString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]").toString(); + oracleDatabaseClient.deleteOdbSubnetAsync(name).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/AsyncFailoverAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/AsyncFailoverAutonomousDatabase.java new file mode 100644 index 000000000000..322af0cc0b6a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/AsyncFailoverAutonomousDatabase.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncFailoverAutonomousDatabase { + + public static void main(String[] args) throws Exception { + asyncFailoverAutonomousDatabase(); + } + + public static void asyncFailoverAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + FailoverAutonomousDatabaseRequest request = + FailoverAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setPeerAutonomousDatabase( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .build(); + ApiFuture future = + oracleDatabaseClient.failoverAutonomousDatabaseCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/AsyncFailoverAutonomousDatabaseLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/AsyncFailoverAutonomousDatabaseLRO.java new file mode 100644 index 000000000000..4255f1290d8f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/AsyncFailoverAutonomousDatabaseLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncFailoverAutonomousDatabaseLRO { + + public static void main(String[] args) throws Exception { + asyncFailoverAutonomousDatabaseLRO(); + } + + public static void asyncFailoverAutonomousDatabaseLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + FailoverAutonomousDatabaseRequest request = + FailoverAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setPeerAutonomousDatabase( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .build(); + OperationFuture future = + oracleDatabaseClient.failoverAutonomousDatabaseOperationCallable().futureCall(request); + // Do something. + AutonomousDatabase response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabase.java new file mode 100644 index 000000000000..8fbecc819002 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabase.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncFailoverAutonomousDatabase { + + public static void main(String[] args) throws Exception { + syncFailoverAutonomousDatabase(); + } + + public static void syncFailoverAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + FailoverAutonomousDatabaseRequest request = + FailoverAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setPeerAutonomousDatabase( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .build(); + AutonomousDatabase response = + oracleDatabaseClient.failoverAutonomousDatabaseAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename.java new file mode 100644 index 000000000000..115c952f2a34 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_AutonomousdatabasenameAutonomousdatabasename_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncFailoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename { + + public static void main(String[] args) throws Exception { + syncFailoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename(); + } + + public static void syncFailoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabase response = + oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_AutonomousdatabasenameAutonomousdatabasename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseAutonomousdatabasenameString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseAutonomousdatabasenameString.java new file mode 100644 index 000000000000..46dd8e06f049 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseAutonomousdatabasenameString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_AutonomousdatabasenameString_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncFailoverAutonomousDatabaseAutonomousdatabasenameString { + + public static void main(String[] args) throws Exception { + syncFailoverAutonomousDatabaseAutonomousdatabasenameString(); + } + + public static void syncFailoverAutonomousDatabaseAutonomousdatabasenameString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + AutonomousDatabase response = + oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_AutonomousdatabasenameString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseStringAutonomousdatabasename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseStringAutonomousdatabasename.java new file mode 100644 index 000000000000..c07b60e77751 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseStringAutonomousdatabasename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_StringAutonomousdatabasename_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncFailoverAutonomousDatabaseStringAutonomousdatabasename { + + public static void main(String[] args) throws Exception { + syncFailoverAutonomousDatabaseStringAutonomousdatabasename(); + } + + public static void syncFailoverAutonomousDatabaseStringAutonomousdatabasename() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabase response = + oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_StringAutonomousdatabasename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseStringString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseStringString.java new file mode 100644 index 000000000000..7bb4a0db65b7 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/failoverautonomousdatabase/SyncFailoverAutonomousDatabaseStringString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_StringString_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncFailoverAutonomousDatabaseStringString { + + public static void main(String[] args) throws Exception { + syncFailoverAutonomousDatabaseStringString(); + } + + public static void syncFailoverAutonomousDatabaseStringString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + String peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + AutonomousDatabase response = + oracleDatabaseClient.failoverAutonomousDatabaseAsync(name, peerAutonomousDatabase).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_StringString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/AsyncGetDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/AsyncGetDatabase.java new file mode 100644 index 000000000000..d00507eecff5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/AsyncGetDatabase.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetDatabase_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.DatabaseName; +import com.google.cloud.oracledatabase.v1.GetDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGetDatabase { + + public static void main(String[] args) throws Exception { + asyncGetDatabase(); + } + + public static void asyncGetDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetDatabaseRequest request = + GetDatabaseRequest.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString()) + .build(); + ApiFuture future = oracleDatabaseClient.getDatabaseCallable().futureCall(request); + // Do something. + Database response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetDatabase_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/SyncGetDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/SyncGetDatabase.java new file mode 100644 index 000000000000..9e9b1f72ff7f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/SyncGetDatabase.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetDatabase_sync] +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.DatabaseName; +import com.google.cloud.oracledatabase.v1.GetDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetDatabase { + + public static void main(String[] args) throws Exception { + syncGetDatabase(); + } + + public static void syncGetDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetDatabaseRequest request = + GetDatabaseRequest.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString()) + .build(); + Database response = oracleDatabaseClient.getDatabase(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetDatabase_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/SyncGetDatabaseDatabasename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/SyncGetDatabaseDatabasename.java new file mode 100644 index 000000000000..c282c5253d3e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/SyncGetDatabaseDatabasename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetDatabase_Databasename_sync] +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.DatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetDatabaseDatabasename { + + public static void main(String[] args) throws Exception { + syncGetDatabaseDatabasename(); + } + + public static void syncGetDatabaseDatabasename() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DatabaseName name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]"); + Database response = oracleDatabaseClient.getDatabase(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetDatabase_Databasename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/SyncGetDatabaseString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/SyncGetDatabaseString.java new file mode 100644 index 000000000000..e17dadc2a43c --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdatabase/SyncGetDatabaseString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetDatabase_String_sync] +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.DatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetDatabaseString { + + public static void main(String[] args) throws Exception { + syncGetDatabaseString(); + } + + public static void syncGetDatabaseString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = DatabaseName.of("[PROJECT]", "[LOCATION]", "[DATABASE]").toString(); + Database response = oracleDatabaseClient.getDatabase(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetDatabase_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/AsyncGetDbSystem.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/AsyncGetDbSystem.java new file mode 100644 index 000000000000..a0d19673fb46 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/AsyncGetDbSystem.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetDbSystem_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.DbSystemName; +import com.google.cloud.oracledatabase.v1.GetDbSystemRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGetDbSystem { + + public static void main(String[] args) throws Exception { + asyncGetDbSystem(); + } + + public static void asyncGetDbSystem() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetDbSystemRequest request = + GetDbSystemRequest.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .build(); + ApiFuture future = oracleDatabaseClient.getDbSystemCallable().futureCall(request); + // Do something. + DbSystem response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetDbSystem_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/SyncGetDbSystem.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/SyncGetDbSystem.java new file mode 100644 index 000000000000..be3bd06bb748 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/SyncGetDbSystem.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetDbSystem_sync] +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.DbSystemName; +import com.google.cloud.oracledatabase.v1.GetDbSystemRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetDbSystem { + + public static void main(String[] args) throws Exception { + syncGetDbSystem(); + } + + public static void syncGetDbSystem() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetDbSystemRequest request = + GetDbSystemRequest.newBuilder() + .setName(DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString()) + .build(); + DbSystem response = oracleDatabaseClient.getDbSystem(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetDbSystem_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/SyncGetDbSystemDbsystemname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/SyncGetDbSystemDbsystemname.java new file mode 100644 index 000000000000..e461026ce645 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/SyncGetDbSystemDbsystemname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetDbSystem_Dbsystemname_sync] +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.DbSystemName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetDbSystemDbsystemname { + + public static void main(String[] args) throws Exception { + syncGetDbSystemDbsystemname(); + } + + public static void syncGetDbSystemDbsystemname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + DbSystemName name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]"); + DbSystem response = oracleDatabaseClient.getDbSystem(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetDbSystem_Dbsystemname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/SyncGetDbSystemString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/SyncGetDbSystemString.java new file mode 100644 index 000000000000..514c42eca035 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getdbsystem/SyncGetDbSystemString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetDbSystem_String_sync] +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.DbSystemName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetDbSystemString { + + public static void main(String[] args) throws Exception { + syncGetDbSystemString(); + } + + public static void syncGetDbSystemString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = DbSystemName.of("[PROJECT]", "[LOCATION]", "[DB_SYSTEM]").toString(); + DbSystem response = oracleDatabaseClient.getDbSystem(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetDbSystem_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/AsyncGetExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/AsyncGetExadbVmCluster.java new file mode 100644 index 000000000000..eb4c9180c8cf --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/AsyncGetExadbVmCluster.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGetExadbVmCluster { + + public static void main(String[] args) throws Exception { + asyncGetExadbVmCluster(); + } + + public static void asyncGetExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetExadbVmClusterRequest request = + GetExadbVmClusterRequest.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .build(); + ApiFuture future = + oracleDatabaseClient.getExadbVmClusterCallable().futureCall(request); + // Do something. + ExadbVmCluster response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/SyncGetExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/SyncGetExadbVmCluster.java new file mode 100644 index 000000000000..d8ab7a8bff4d --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/SyncGetExadbVmCluster.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.GetExadbVmClusterRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetExadbVmCluster { + + public static void main(String[] args) throws Exception { + syncGetExadbVmCluster(); + } + + public static void syncGetExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetExadbVmClusterRequest request = + GetExadbVmClusterRequest.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .build(); + ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/SyncGetExadbVmClusterExadbvmclustername.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/SyncGetExadbVmClusterExadbvmclustername.java new file mode 100644 index 000000000000..b7d151ebd84f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/SyncGetExadbVmClusterExadbvmclustername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_Exadbvmclustername_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetExadbVmClusterExadbvmclustername { + + public static void main(String[] args) throws Exception { + syncGetExadbVmClusterExadbvmclustername(); + } + + public static void syncGetExadbVmClusterExadbvmclustername() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_Exadbvmclustername_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/SyncGetExadbVmClusterString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/SyncGetExadbVmClusterString.java new file mode 100644 index 000000000000..1a60cb1eef99 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexadbvmcluster/SyncGetExadbVmClusterString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_String_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetExadbVmClusterString { + + public static void main(String[] args) throws Exception { + syncGetExadbVmClusterString(); + } + + public static void syncGetExadbVmClusterString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString(); + ExadbVmCluster response = oracleDatabaseClient.getExadbVmCluster(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/AsyncGetExascaleDbStorageVault.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/AsyncGetExascaleDbStorageVault.java new file mode 100644 index 000000000000..66e50ab7aad8 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/AsyncGetExascaleDbStorageVault.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultName; +import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGetExascaleDbStorageVault { + + public static void main(String[] args) throws Exception { + asyncGetExascaleDbStorageVault(); + } + + public static void asyncGetExascaleDbStorageVault() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetExascaleDbStorageVaultRequest request = + GetExascaleDbStorageVaultRequest.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .build(); + ApiFuture future = + oracleDatabaseClient.getExascaleDbStorageVaultCallable().futureCall(request); + // Do something. + ExascaleDbStorageVault response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/SyncGetExascaleDbStorageVault.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/SyncGetExascaleDbStorageVault.java new file mode 100644 index 000000000000..e067be95188f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/SyncGetExascaleDbStorageVault.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultName; +import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetExascaleDbStorageVault { + + public static void main(String[] args) throws Exception { + syncGetExascaleDbStorageVault(); + } + + public static void syncGetExascaleDbStorageVault() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetExascaleDbStorageVaultRequest request = + GetExascaleDbStorageVaultRequest.newBuilder() + .setName( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) + .build(); + ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/SyncGetExascaleDbStorageVaultExascaledbstoragevaultname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/SyncGetExascaleDbStorageVaultExascaledbstoragevaultname.java new file mode 100644 index 000000000000..2c0129bf2d76 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/SyncGetExascaleDbStorageVaultExascaledbstoragevaultname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_Exascaledbstoragevaultname_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetExascaleDbStorageVaultExascaledbstoragevaultname { + + public static void main(String[] args) throws Exception { + syncGetExascaleDbStorageVaultExascaledbstoragevaultname(); + } + + public static void syncGetExascaleDbStorageVaultExascaledbstoragevaultname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ExascaleDbStorageVaultName name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]"); + ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_Exascaledbstoragevaultname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/SyncGetExascaleDbStorageVaultString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/SyncGetExascaleDbStorageVaultString.java new file mode 100644 index 000000000000..f1e46d5c86ab --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getexascaledbstoragevault/SyncGetExascaleDbStorageVaultString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_String_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetExascaleDbStorageVaultString { + + public static void main(String[] args) throws Exception { + syncGetExascaleDbStorageVaultString(); + } + + public static void syncGetExascaleDbStorageVaultString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + ExascaleDbStorageVaultName.of("[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString(); + ExascaleDbStorageVault response = oracleDatabaseClient.getExascaleDbStorageVault(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/AsyncGetOdbNetwork.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/AsyncGetOdbNetwork.java new file mode 100644 index 000000000000..49db3d190aaf --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/AsyncGetOdbNetwork.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGetOdbNetwork { + + public static void main(String[] args) throws Exception { + asyncGetOdbNetwork(); + } + + public static void asyncGetOdbNetwork() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetOdbNetworkRequest request = + GetOdbNetworkRequest.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .build(); + ApiFuture future = + oracleDatabaseClient.getOdbNetworkCallable().futureCall(request); + // Do something. + OdbNetwork response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/SyncGetOdbNetwork.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/SyncGetOdbNetwork.java new file mode 100644 index 000000000000..8822b773c453 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/SyncGetOdbNetwork.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_sync] +import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetOdbNetwork { + + public static void main(String[] args) throws Exception { + syncGetOdbNetwork(); + } + + public static void syncGetOdbNetwork() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetOdbNetworkRequest request = + GetOdbNetworkRequest.newBuilder() + .setName(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .build(); + OdbNetwork response = oracleDatabaseClient.getOdbNetwork(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/SyncGetOdbNetworkOdbnetworkname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/SyncGetOdbNetworkOdbnetworkname.java new file mode 100644 index 000000000000..76231e48247a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/SyncGetOdbNetworkOdbnetworkname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_Odbnetworkname_sync] +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetOdbNetworkOdbnetworkname { + + public static void main(String[] args) throws Exception { + syncGetOdbNetworkOdbnetworkname(); + } + + public static void syncGetOdbNetworkOdbnetworkname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + OdbNetworkName name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + OdbNetwork response = oracleDatabaseClient.getOdbNetwork(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_Odbnetworkname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/SyncGetOdbNetworkString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/SyncGetOdbNetworkString.java new file mode 100644 index 000000000000..a3f8d7e556c5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbnetwork/SyncGetOdbNetworkString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_String_sync] +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetOdbNetworkString { + + public static void main(String[] args) throws Exception { + syncGetOdbNetworkString(); + } + + public static void syncGetOdbNetworkString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString(); + OdbNetwork response = oracleDatabaseClient.getOdbNetwork(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/AsyncGetOdbSubnet.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/AsyncGetOdbSubnet.java new file mode 100644 index 000000000000..928f115cdcfa --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/AsyncGetOdbSubnet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OdbSubnetName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncGetOdbSubnet { + + public static void main(String[] args) throws Exception { + asyncGetOdbSubnet(); + } + + public static void asyncGetOdbSubnet() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetOdbSubnetRequest request = + GetOdbSubnetRequest.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .build(); + ApiFuture future = oracleDatabaseClient.getOdbSubnetCallable().futureCall(request); + // Do something. + OdbSubnet response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/SyncGetOdbSubnet.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/SyncGetOdbSubnet.java new file mode 100644 index 000000000000..825cb7852263 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/SyncGetOdbSubnet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_sync] +import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OdbSubnetName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetOdbSubnet { + + public static void main(String[] args) throws Exception { + syncGetOdbSubnet(); + } + + public static void syncGetOdbSubnet() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetOdbSubnetRequest request = + GetOdbSubnetRequest.newBuilder() + .setName( + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") + .toString()) + .build(); + OdbSubnet response = oracleDatabaseClient.getOdbSubnet(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/SyncGetOdbSubnetOdbsubnetname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/SyncGetOdbSubnetOdbsubnetname.java new file mode 100644 index 000000000000..0f51814de0d9 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/SyncGetOdbSubnetOdbsubnetname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_Odbsubnetname_sync] +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OdbSubnetName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetOdbSubnetOdbsubnetname { + + public static void main(String[] args) throws Exception { + syncGetOdbSubnetOdbsubnetname(); + } + + public static void syncGetOdbSubnetOdbsubnetname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + OdbSubnetName name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]"); + OdbSubnet response = oracleDatabaseClient.getOdbSubnet(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_Odbsubnetname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/SyncGetOdbSubnetString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/SyncGetOdbSubnetString.java new file mode 100644 index 000000000000..fc6632c1732d --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getodbsubnet/SyncGetOdbSubnetString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_String_sync] +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OdbSubnetName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncGetOdbSubnetString { + + public static void main(String[] args) throws Exception { + syncGetOdbSubnetString(); + } + + public static void syncGetOdbSubnetString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]").toString(); + OdbSubnet response = oracleDatabaseClient.getOdbSubnet(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/AsyncGetPluggableDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/AsyncGetPluggableDatabase.java new file mode 100644 index 000000000000..51cf7fde3bfb --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/AsyncGetPluggableDatabase.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; +import com.google.cloud.oracledatabase.v1.PluggableDatabaseName; + +public class AsyncGetPluggableDatabase { + + public static void main(String[] args) throws Exception { + asyncGetPluggableDatabase(); + } + + public static void asyncGetPluggableDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetPluggableDatabaseRequest request = + GetPluggableDatabaseRequest.newBuilder() + .setName( + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]") + .toString()) + .build(); + ApiFuture future = + oracleDatabaseClient.getPluggableDatabaseCallable().futureCall(request); + // Do something. + PluggableDatabase response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/SyncGetPluggableDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/SyncGetPluggableDatabase.java new file mode 100644 index 000000000000..4ada1f13122b --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/SyncGetPluggableDatabase.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_sync] +import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; +import com.google.cloud.oracledatabase.v1.PluggableDatabaseName; + +public class SyncGetPluggableDatabase { + + public static void main(String[] args) throws Exception { + syncGetPluggableDatabase(); + } + + public static void syncGetPluggableDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GetPluggableDatabaseRequest request = + GetPluggableDatabaseRequest.newBuilder() + .setName( + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]") + .toString()) + .build(); + PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(request); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/SyncGetPluggableDatabasePluggabledatabasename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/SyncGetPluggableDatabasePluggabledatabasename.java new file mode 100644 index 000000000000..43cfb5f91201 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/SyncGetPluggableDatabasePluggabledatabasename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_Pluggabledatabasename_sync] +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; +import com.google.cloud.oracledatabase.v1.PluggableDatabaseName; + +public class SyncGetPluggableDatabasePluggabledatabasename { + + public static void main(String[] args) throws Exception { + syncGetPluggableDatabasePluggabledatabasename(); + } + + public static void syncGetPluggableDatabasePluggabledatabasename() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + PluggableDatabaseName name = + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]"); + PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_Pluggabledatabasename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/SyncGetPluggableDatabaseString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/SyncGetPluggableDatabaseString.java new file mode 100644 index 000000000000..b3490a3ece68 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getpluggabledatabase/SyncGetPluggableDatabaseString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_String_sync] +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; +import com.google.cloud.oracledatabase.v1.PluggableDatabaseName; + +public class SyncGetPluggableDatabaseString { + + public static void main(String[] args) throws Exception { + syncGetPluggableDatabaseString(); + } + + public static void syncGetPluggableDatabaseString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + PluggableDatabaseName.of("[PROJECT]", "[LOCATION]", "[PLUGGABLE_DATABASE]").toString(); + PluggableDatabase response = oracleDatabaseClient.getPluggableDatabase(name); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructures.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructures.java index cd6e8a918d8e..52e92237117c 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructures.java +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructures.java @@ -41,6 +41,8 @@ public static void asyncListCloudExadataInfrastructures() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); ApiFuture future = oracleDatabaseClient.listCloudExadataInfrastructuresPagedCallable().futureCall(request); diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructuresPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructuresPaged.java index 669665c19a7c..94b58ec299eb 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructuresPaged.java +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/AsyncListCloudExadataInfrastructuresPaged.java @@ -42,6 +42,8 @@ public static void asyncListCloudExadataInfrastructuresPaged() throws Exception .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); while (true) { ListCloudExadataInfrastructuresResponse response = diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructures.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructures.java index 7f91b30929f7..2b0c10a199a6 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructures.java +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listcloudexadatainfrastructures/SyncListCloudExadataInfrastructures.java @@ -40,6 +40,8 @@ public static void syncListCloudExadataInfrastructures() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); for (CloudExadataInfrastructure element : oracleDatabaseClient.listCloudExadataInfrastructures(request).iterateAll()) { diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/AsyncListDatabaseCharacterSets.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/AsyncListDatabaseCharacterSets.java new file mode 100644 index 000000000000..1d88d8d78c9d --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/AsyncListDatabaseCharacterSets.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListDatabaseCharacterSets { + + public static void main(String[] args) throws Exception { + asyncListDatabaseCharacterSets(); + } + + public static void asyncListDatabaseCharacterSets() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDatabaseCharacterSetsRequest request = + ListDatabaseCharacterSetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + oracleDatabaseClient.listDatabaseCharacterSetsPagedCallable().futureCall(request); + // Do something. + for (DatabaseCharacterSet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/AsyncListDatabaseCharacterSetsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/AsyncListDatabaseCharacterSetsPaged.java new file mode 100644 index 000000000000..7f9daa0015cb --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/AsyncListDatabaseCharacterSetsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_Paged_async] +import com.google.cloud.oracledatabase.v1.DatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListDatabaseCharacterSetsPaged { + + public static void main(String[] args) throws Exception { + asyncListDatabaseCharacterSetsPaged(); + } + + public static void asyncListDatabaseCharacterSetsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDatabaseCharacterSetsRequest request = + ListDatabaseCharacterSetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListDatabaseCharacterSetsResponse response = + oracleDatabaseClient.listDatabaseCharacterSetsCallable().call(request); + for (DatabaseCharacterSet element : response.getDatabaseCharacterSetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/SyncListDatabaseCharacterSets.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/SyncListDatabaseCharacterSets.java new file mode 100644 index 000000000000..78ee86bb365f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/SyncListDatabaseCharacterSets.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_sync] +import com.google.cloud.oracledatabase.v1.DatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDatabaseCharacterSets { + + public static void main(String[] args) throws Exception { + syncListDatabaseCharacterSets(); + } + + public static void syncListDatabaseCharacterSets() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDatabaseCharacterSetsRequest request = + ListDatabaseCharacterSetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (DatabaseCharacterSet element : + oracleDatabaseClient.listDatabaseCharacterSets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/SyncListDatabaseCharacterSetsLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/SyncListDatabaseCharacterSetsLocationname.java new file mode 100644 index 000000000000..61c4f9a8ce16 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/SyncListDatabaseCharacterSetsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_Locationname_sync] +import com.google.cloud.oracledatabase.v1.DatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDatabaseCharacterSetsLocationname { + + public static void main(String[] args) throws Exception { + syncListDatabaseCharacterSetsLocationname(); + } + + public static void syncListDatabaseCharacterSetsLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DatabaseCharacterSet element : + oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/SyncListDatabaseCharacterSetsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/SyncListDatabaseCharacterSetsString.java new file mode 100644 index 000000000000..5a2a9c046734 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabasecharactersets/SyncListDatabaseCharacterSetsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_String_sync] +import com.google.cloud.oracledatabase.v1.DatabaseCharacterSet; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDatabaseCharacterSetsString { + + public static void main(String[] args) throws Exception { + syncListDatabaseCharacterSetsString(); + } + + public static void syncListDatabaseCharacterSetsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DatabaseCharacterSet element : + oracleDatabaseClient.listDatabaseCharacterSets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/AsyncListDatabases.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/AsyncListDatabases.java new file mode 100644 index 000000000000..8de4f77178d2 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/AsyncListDatabases.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabases_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.ListDatabasesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListDatabases { + + public static void main(String[] args) throws Exception { + asyncListDatabases(); + } + + public static void asyncListDatabases() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDatabasesRequest request = + ListDatabasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + oracleDatabaseClient.listDatabasesPagedCallable().futureCall(request); + // Do something. + for (Database element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabases_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/AsyncListDatabasesPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/AsyncListDatabasesPaged.java new file mode 100644 index 000000000000..fd66ed3df526 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/AsyncListDatabasesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabases_Paged_async] +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.ListDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListDatabasesResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListDatabasesPaged { + + public static void main(String[] args) throws Exception { + asyncListDatabasesPaged(); + } + + public static void asyncListDatabasesPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDatabasesRequest request = + ListDatabasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListDatabasesResponse response = oracleDatabaseClient.listDatabasesCallable().call(request); + for (Database element : response.getDatabasesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabases_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/SyncListDatabases.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/SyncListDatabases.java new file mode 100644 index 000000000000..e215d44d665d --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/SyncListDatabases.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabases_sync] +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.ListDatabasesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDatabases { + + public static void main(String[] args) throws Exception { + syncListDatabases(); + } + + public static void syncListDatabases() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDatabasesRequest request = + ListDatabasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Database element : oracleDatabaseClient.listDatabases(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabases_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/SyncListDatabasesLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/SyncListDatabasesLocationname.java new file mode 100644 index 000000000000..3aa3279abf8b --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/SyncListDatabasesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabases_Locationname_sync] +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDatabasesLocationname { + + public static void main(String[] args) throws Exception { + syncListDatabasesLocationname(); + } + + public static void syncListDatabasesLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Database element : oracleDatabaseClient.listDatabases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabases_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/SyncListDatabasesString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/SyncListDatabasesString.java new file mode 100644 index 000000000000..b5b3c8471183 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdatabases/SyncListDatabasesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDatabases_String_sync] +import com.google.cloud.oracledatabase.v1.Database; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDatabasesString { + + public static void main(String[] args) throws Exception { + syncListDatabasesString(); + } + + public static void syncListDatabasesString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Database element : oracleDatabaseClient.listDatabases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDatabases_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodesExadbvmclustername.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodesExadbvmclustername.java new file mode 100644 index 000000000000..1b880b62dc19 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbnodes/SyncListDbNodesExadbvmclustername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbNodes_Exadbvmclustername_sync] +import com.google.cloud.oracledatabase.v1.DbNode; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbNodesExadbvmclustername { + + public static void main(String[] args) throws Exception { + syncListDbNodesExadbvmclustername(); + } + + public static void syncListDbNodesExadbvmclustername() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ExadbVmClusterName parent = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + for (DbNode element : oracleDatabaseClient.listDbNodes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_Exadbvmclustername_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/AsyncListDbSystemInitialStorageSizes.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/AsyncListDbSystemInitialStorageSizes.java new file mode 100644 index 000000000000..365edcab2f85 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/AsyncListDbSystemInitialStorageSizes.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListDbSystemInitialStorageSizes { + + public static void main(String[] args) throws Exception { + asyncListDbSystemInitialStorageSizes(); + } + + public static void asyncListDbSystemInitialStorageSizes() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbSystemInitialStorageSizesRequest request = + ListDbSystemInitialStorageSizesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + oracleDatabaseClient.listDbSystemInitialStorageSizesPagedCallable().futureCall(request); + // Do something. + for (DbSystemInitialStorageSize element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/AsyncListDbSystemInitialStorageSizesPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/AsyncListDbSystemInitialStorageSizesPaged.java new file mode 100644 index 000000000000..3a0b80b17696 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/AsyncListDbSystemInitialStorageSizesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_Paged_async] +import com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListDbSystemInitialStorageSizesPaged { + + public static void main(String[] args) throws Exception { + asyncListDbSystemInitialStorageSizesPaged(); + } + + public static void asyncListDbSystemInitialStorageSizesPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbSystemInitialStorageSizesRequest request = + ListDbSystemInitialStorageSizesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDbSystemInitialStorageSizesResponse response = + oracleDatabaseClient.listDbSystemInitialStorageSizesCallable().call(request); + for (DbSystemInitialStorageSize element : response.getDbSystemInitialStorageSizesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/SyncListDbSystemInitialStorageSizes.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/SyncListDbSystemInitialStorageSizes.java new file mode 100644 index 000000000000..712d02ead99c --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/SyncListDbSystemInitialStorageSizes.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_sync] +import com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize; +import com.google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbSystemInitialStorageSizes { + + public static void main(String[] args) throws Exception { + syncListDbSystemInitialStorageSizes(); + } + + public static void syncListDbSystemInitialStorageSizes() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbSystemInitialStorageSizesRequest request = + ListDbSystemInitialStorageSizesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DbSystemInitialStorageSize element : + oracleDatabaseClient.listDbSystemInitialStorageSizes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/SyncListDbSystemInitialStorageSizesLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/SyncListDbSystemInitialStorageSizesLocationname.java new file mode 100644 index 000000000000..4a937d936758 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/SyncListDbSystemInitialStorageSizesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_Locationname_sync] +import com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbSystemInitialStorageSizesLocationname { + + public static void main(String[] args) throws Exception { + syncListDbSystemInitialStorageSizesLocationname(); + } + + public static void syncListDbSystemInitialStorageSizesLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DbSystemInitialStorageSize element : + oracleDatabaseClient.listDbSystemInitialStorageSizes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/SyncListDbSystemInitialStorageSizesString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/SyncListDbSystemInitialStorageSizesString.java new file mode 100644 index 000000000000..d93752cfd384 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsysteminitialstoragesizes/SyncListDbSystemInitialStorageSizesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_String_sync] +import com.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbSystemInitialStorageSizesString { + + public static void main(String[] args) throws Exception { + syncListDbSystemInitialStorageSizesString(); + } + + public static void syncListDbSystemInitialStorageSizesString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DbSystemInitialStorageSize element : + oracleDatabaseClient.listDbSystemInitialStorageSizes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/AsyncListDbSystems.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/AsyncListDbSystems.java new file mode 100644 index 000000000000..022a46a67fcd --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/AsyncListDbSystems.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.ListDbSystemsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListDbSystems { + + public static void main(String[] args) throws Exception { + asyncListDbSystems(); + } + + public static void asyncListDbSystems() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbSystemsRequest request = + ListDbSystemsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + oracleDatabaseClient.listDbSystemsPagedCallable().futureCall(request); + // Do something. + for (DbSystem element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystems_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/AsyncListDbSystemsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/AsyncListDbSystemsPaged.java new file mode 100644 index 000000000000..b3ad4737ba9f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/AsyncListDbSystemsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystems_Paged_async] +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.ListDbSystemsRequest; +import com.google.cloud.oracledatabase.v1.ListDbSystemsResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListDbSystemsPaged { + + public static void main(String[] args) throws Exception { + asyncListDbSystemsPaged(); + } + + public static void asyncListDbSystemsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbSystemsRequest request = + ListDbSystemsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListDbSystemsResponse response = oracleDatabaseClient.listDbSystemsCallable().call(request); + for (DbSystem element : response.getDbSystemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystems_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/SyncListDbSystems.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/SyncListDbSystems.java new file mode 100644 index 000000000000..8bb3e16cff56 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/SyncListDbSystems.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystems_sync] +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.ListDbSystemsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbSystems { + + public static void main(String[] args) throws Exception { + syncListDbSystems(); + } + + public static void syncListDbSystems() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbSystemsRequest request = + ListDbSystemsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (DbSystem element : oracleDatabaseClient.listDbSystems(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystems_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/SyncListDbSystemsLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/SyncListDbSystemsLocationname.java new file mode 100644 index 000000000000..a38f17416bc1 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/SyncListDbSystemsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystems_Locationname_sync] +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbSystemsLocationname { + + public static void main(String[] args) throws Exception { + syncListDbSystemsLocationname(); + } + + public static void syncListDbSystemsLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DbSystem element : oracleDatabaseClient.listDbSystems(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystems_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/SyncListDbSystemsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/SyncListDbSystemsString.java new file mode 100644 index 000000000000..be2bb9e1831e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystems/SyncListDbSystemsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbSystems_String_sync] +import com.google.cloud.oracledatabase.v1.DbSystem; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbSystemsString { + + public static void main(String[] args) throws Exception { + syncListDbSystemsString(); + } + + public static void syncListDbSystemsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DbSystem element : oracleDatabaseClient.listDbSystems(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystems_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapes.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapes.java index 8c24df2aa659..bf564dbbcc0b 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapes.java +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapes.java @@ -41,6 +41,7 @@ public static void asyncListDbSystemShapes() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") .build(); ApiFuture future = oracleDatabaseClient.listDbSystemShapesPagedCallable().futureCall(request); diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapesPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapesPaged.java index 8852a9ec173a..6e00e0a510b7 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapesPaged.java +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/AsyncListDbSystemShapesPaged.java @@ -42,6 +42,7 @@ public static void asyncListDbSystemShapesPaged() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") .build(); while (true) { ListDbSystemShapesResponse response = diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapes.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapes.java index da5451f89868..664683dea3bd 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapes.java +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbsystemshapes/SyncListDbSystemShapes.java @@ -40,6 +40,7 @@ public static void syncListDbSystemShapes() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") .build(); for (DbSystemShape element : oracleDatabaseClient.listDbSystemShapes(request).iterateAll()) { // doThingsWith(element); diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/AsyncListDbVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/AsyncListDbVersions.java new file mode 100644 index 000000000000..d82fff72ed57 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/AsyncListDbVersions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbVersions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.DbVersion; +import com.google.cloud.oracledatabase.v1.ListDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListDbVersions { + + public static void main(String[] args) throws Exception { + asyncListDbVersions(); + } + + public static void asyncListDbVersions() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbVersionsRequest request = + ListDbVersionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + oracleDatabaseClient.listDbVersionsPagedCallable().futureCall(request); + // Do something. + for (DbVersion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbVersions_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/AsyncListDbVersionsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/AsyncListDbVersionsPaged.java new file mode 100644 index 000000000000..a237d394c2ac --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/AsyncListDbVersionsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbVersions_Paged_async] +import com.google.cloud.oracledatabase.v1.DbVersion; +import com.google.cloud.oracledatabase.v1.ListDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListDbVersionsResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListDbVersionsPaged { + + public static void main(String[] args) throws Exception { + asyncListDbVersionsPaged(); + } + + public static void asyncListDbVersionsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbVersionsRequest request = + ListDbVersionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListDbVersionsResponse response = + oracleDatabaseClient.listDbVersionsCallable().call(request); + for (DbVersion element : response.getDbVersionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbVersions_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/SyncListDbVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/SyncListDbVersions.java new file mode 100644 index 000000000000..1d8ffc1ae6f2 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/SyncListDbVersions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbVersions_sync] +import com.google.cloud.oracledatabase.v1.DbVersion; +import com.google.cloud.oracledatabase.v1.ListDbVersionsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbVersions { + + public static void main(String[] args) throws Exception { + syncListDbVersions(); + } + + public static void syncListDbVersions() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListDbVersionsRequest request = + ListDbVersionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (DbVersion element : oracleDatabaseClient.listDbVersions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbVersions_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/SyncListDbVersionsLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/SyncListDbVersionsLocationname.java new file mode 100644 index 000000000000..83fa60833eb4 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/SyncListDbVersionsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbVersions_Locationname_sync] +import com.google.cloud.oracledatabase.v1.DbVersion; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbVersionsLocationname { + + public static void main(String[] args) throws Exception { + syncListDbVersionsLocationname(); + } + + public static void syncListDbVersionsLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbVersions_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/SyncListDbVersionsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/SyncListDbVersionsString.java new file mode 100644 index 000000000000..8e81d77fee4f --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listdbversions/SyncListDbVersionsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListDbVersions_String_sync] +import com.google.cloud.oracledatabase.v1.DbVersion; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListDbVersionsString { + + public static void main(String[] args) throws Exception { + syncListDbVersionsString(); + } + + public static void syncListDbVersionsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DbVersion element : oracleDatabaseClient.listDbVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbVersions_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/AsyncListExadbVmClusters.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/AsyncListExadbVmClusters.java new file mode 100644 index 000000000000..31c0022d9420 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/AsyncListExadbVmClusters.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListExadbVmClusters { + + public static void main(String[] args) throws Exception { + asyncListExadbVmClusters(); + } + + public static void asyncListExadbVmClusters() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListExadbVmClustersRequest request = + ListExadbVmClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + oracleDatabaseClient.listExadbVmClustersPagedCallable().futureCall(request); + // Do something. + for (ExadbVmCluster element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/AsyncListExadbVmClustersPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/AsyncListExadbVmClustersPaged.java new file mode 100644 index 000000000000..1f338fa1e982 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/AsyncListExadbVmClustersPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_Paged_async] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListExadbVmClustersPaged { + + public static void main(String[] args) throws Exception { + asyncListExadbVmClustersPaged(); + } + + public static void asyncListExadbVmClustersPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListExadbVmClustersRequest request = + ListExadbVmClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListExadbVmClustersResponse response = + oracleDatabaseClient.listExadbVmClustersCallable().call(request); + for (ExadbVmCluster element : response.getExadbVmClustersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/SyncListExadbVmClusters.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/SyncListExadbVmClusters.java new file mode 100644 index 000000000000..e15dd86d8550 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/SyncListExadbVmClusters.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ListExadbVmClustersRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListExadbVmClusters { + + public static void main(String[] args) throws Exception { + syncListExadbVmClusters(); + } + + public static void syncListExadbVmClusters() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListExadbVmClustersRequest request = + ListExadbVmClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ExadbVmCluster element : + oracleDatabaseClient.listExadbVmClusters(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/SyncListExadbVmClustersLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/SyncListExadbVmClustersLocationname.java new file mode 100644 index 000000000000..f454b89fe37e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/SyncListExadbVmClustersLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_Locationname_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListExadbVmClustersLocationname { + + public static void main(String[] args) throws Exception { + syncListExadbVmClustersLocationname(); + } + + public static void syncListExadbVmClustersLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (ExadbVmCluster element : oracleDatabaseClient.listExadbVmClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/SyncListExadbVmClustersString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/SyncListExadbVmClustersString.java new file mode 100644 index 000000000000..64d2a172bae5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexadbvmclusters/SyncListExadbVmClustersString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_String_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListExadbVmClustersString { + + public static void main(String[] args) throws Exception { + syncListExadbVmClustersString(); + } + + public static void syncListExadbVmClustersString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (ExadbVmCluster element : oracleDatabaseClient.listExadbVmClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/AsyncListExascaleDbStorageVaults.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/AsyncListExascaleDbStorageVaults.java new file mode 100644 index 000000000000..f2e2db9372bc --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/AsyncListExascaleDbStorageVaults.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListExascaleDbStorageVaults { + + public static void main(String[] args) throws Exception { + asyncListExascaleDbStorageVaults(); + } + + public static void asyncListExascaleDbStorageVaults() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListExascaleDbStorageVaultsRequest request = + ListExascaleDbStorageVaultsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + oracleDatabaseClient.listExascaleDbStorageVaultsPagedCallable().futureCall(request); + // Do something. + for (ExascaleDbStorageVault element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/AsyncListExascaleDbStorageVaultsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/AsyncListExascaleDbStorageVaultsPaged.java new file mode 100644 index 000000000000..4f6e0044bedf --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/AsyncListExascaleDbStorageVaultsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_Paged_async] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListExascaleDbStorageVaultsPaged { + + public static void main(String[] args) throws Exception { + asyncListExascaleDbStorageVaultsPaged(); + } + + public static void asyncListExascaleDbStorageVaultsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListExascaleDbStorageVaultsRequest request = + ListExascaleDbStorageVaultsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListExascaleDbStorageVaultsResponse response = + oracleDatabaseClient.listExascaleDbStorageVaultsCallable().call(request); + for (ExascaleDbStorageVault element : response.getExascaleDbStorageVaultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/SyncListExascaleDbStorageVaults.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/SyncListExascaleDbStorageVaults.java new file mode 100644 index 000000000000..001003e53efb --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/SyncListExascaleDbStorageVaults.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListExascaleDbStorageVaults { + + public static void main(String[] args) throws Exception { + syncListExascaleDbStorageVaults(); + } + + public static void syncListExascaleDbStorageVaults() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListExascaleDbStorageVaultsRequest request = + ListExascaleDbStorageVaultsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ExascaleDbStorageVault element : + oracleDatabaseClient.listExascaleDbStorageVaults(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/SyncListExascaleDbStorageVaultsLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/SyncListExascaleDbStorageVaultsLocationname.java new file mode 100644 index 000000000000..8780e88ae611 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/SyncListExascaleDbStorageVaultsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_Locationname_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListExascaleDbStorageVaultsLocationname { + + public static void main(String[] args) throws Exception { + syncListExascaleDbStorageVaultsLocationname(); + } + + public static void syncListExascaleDbStorageVaultsLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (ExascaleDbStorageVault element : + oracleDatabaseClient.listExascaleDbStorageVaults(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/SyncListExascaleDbStorageVaultsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/SyncListExascaleDbStorageVaultsString.java new file mode 100644 index 000000000000..fe342eaab223 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listexascaledbstoragevaults/SyncListExascaleDbStorageVaultsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_String_sync] +import com.google.cloud.oracledatabase.v1.ExascaleDbStorageVault; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListExascaleDbStorageVaultsString { + + public static void main(String[] args) throws Exception { + syncListExascaleDbStorageVaultsString(); + } + + public static void syncListExascaleDbStorageVaultsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (ExascaleDbStorageVault element : + oracleDatabaseClient.listExascaleDbStorageVaults(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersions.java index b29026eb2923..bdfb563b788b 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersions.java +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersions.java @@ -41,6 +41,7 @@ public static void asyncListGiVersions() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") .build(); ApiFuture future = oracleDatabaseClient.listGiVersionsPagedCallable().futureCall(request); diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersionsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersionsPaged.java index ddd5de6ef2b9..431225c2f29a 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersionsPaged.java +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/AsyncListGiVersionsPaged.java @@ -42,6 +42,7 @@ public static void asyncListGiVersionsPaged() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") .build(); while (true) { ListGiVersionsResponse response = diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersions.java index a2861814448e..2b3cdc59b510 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersions.java +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listgiversions/SyncListGiVersions.java @@ -40,6 +40,7 @@ public static void syncListGiVersions() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") .build(); for (GiVersion element : oracleDatabaseClient.listGiVersions(request).iterateAll()) { // doThingsWith(element); diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/AsyncListMinorVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/AsyncListMinorVersions.java new file mode 100644 index 000000000000..1384e45d0acc --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/AsyncListMinorVersions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.GiVersionName; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest; +import com.google.cloud.oracledatabase.v1.MinorVersion; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListMinorVersions { + + public static void main(String[] args) throws Exception { + asyncListMinorVersions(); + } + + public static void asyncListMinorVersions() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListMinorVersionsRequest request = + ListMinorVersionsRequest.newBuilder() + .setParent(GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + oracleDatabaseClient.listMinorVersionsPagedCallable().futureCall(request); + // Do something. + for (MinorVersion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/AsyncListMinorVersionsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/AsyncListMinorVersionsPaged.java new file mode 100644 index 000000000000..33cd99a630ed --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/AsyncListMinorVersionsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_Paged_async] +import com.google.cloud.oracledatabase.v1.GiVersionName; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsResponse; +import com.google.cloud.oracledatabase.v1.MinorVersion; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListMinorVersionsPaged { + + public static void main(String[] args) throws Exception { + asyncListMinorVersionsPaged(); + } + + public static void asyncListMinorVersionsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListMinorVersionsRequest request = + ListMinorVersionsRequest.newBuilder() + .setParent(GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListMinorVersionsResponse response = + oracleDatabaseClient.listMinorVersionsCallable().call(request); + for (MinorVersion element : response.getMinorVersionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/SyncListMinorVersions.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/SyncListMinorVersions.java new file mode 100644 index 000000000000..9d4017f88bfe --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/SyncListMinorVersions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_sync] +import com.google.cloud.oracledatabase.v1.GiVersionName; +import com.google.cloud.oracledatabase.v1.ListMinorVersionsRequest; +import com.google.cloud.oracledatabase.v1.MinorVersion; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListMinorVersions { + + public static void main(String[] args) throws Exception { + syncListMinorVersions(); + } + + public static void syncListMinorVersions() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListMinorVersionsRequest request = + ListMinorVersionsRequest.newBuilder() + .setParent(GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (MinorVersion element : oracleDatabaseClient.listMinorVersions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/SyncListMinorVersionsGiversionname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/SyncListMinorVersionsGiversionname.java new file mode 100644 index 000000000000..3072f2bcb00e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/SyncListMinorVersionsGiversionname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_Giversionname_sync] +import com.google.cloud.oracledatabase.v1.GiVersionName; +import com.google.cloud.oracledatabase.v1.MinorVersion; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListMinorVersionsGiversionname { + + public static void main(String[] args) throws Exception { + syncListMinorVersionsGiversionname(); + } + + public static void syncListMinorVersionsGiversionname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + GiVersionName parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]"); + for (MinorVersion element : oracleDatabaseClient.listMinorVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_Giversionname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/SyncListMinorVersionsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/SyncListMinorVersionsString.java new file mode 100644 index 000000000000..d9b3808840ae --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listminorversions/SyncListMinorVersionsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_String_sync] +import com.google.cloud.oracledatabase.v1.GiVersionName; +import com.google.cloud.oracledatabase.v1.MinorVersion; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListMinorVersionsString { + + public static void main(String[] args) throws Exception { + syncListMinorVersionsString(); + } + + public static void syncListMinorVersionsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = GiVersionName.of("[PROJECT]", "[LOCATION]", "[GI_VERSION]").toString(); + for (MinorVersion element : oracleDatabaseClient.listMinorVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/AsyncListOdbNetworks.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/AsyncListOdbNetworks.java new file mode 100644 index 000000000000..31a265cb78e5 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/AsyncListOdbNetworks.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListOdbNetworks { + + public static void main(String[] args) throws Exception { + asyncListOdbNetworks(); + } + + public static void asyncListOdbNetworks() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListOdbNetworksRequest request = + ListOdbNetworksRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + oracleDatabaseClient.listOdbNetworksPagedCallable().futureCall(request); + // Do something. + for (OdbNetwork element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/AsyncListOdbNetworksPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/AsyncListOdbNetworksPaged.java new file mode 100644 index 000000000000..715a5d705d0c --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/AsyncListOdbNetworksPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_Paged_async] +import com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest; +import com.google.cloud.oracledatabase.v1.ListOdbNetworksResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListOdbNetworksPaged { + + public static void main(String[] args) throws Exception { + asyncListOdbNetworksPaged(); + } + + public static void asyncListOdbNetworksPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListOdbNetworksRequest request = + ListOdbNetworksRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListOdbNetworksResponse response = + oracleDatabaseClient.listOdbNetworksCallable().call(request); + for (OdbNetwork element : response.getOdbNetworksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/SyncListOdbNetworks.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/SyncListOdbNetworks.java new file mode 100644 index 000000000000..d4b77263e5cd --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/SyncListOdbNetworks.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_sync] +import com.google.cloud.oracledatabase.v1.ListOdbNetworksRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListOdbNetworks { + + public static void main(String[] args) throws Exception { + syncListOdbNetworks(); + } + + public static void syncListOdbNetworks() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListOdbNetworksRequest request = + ListOdbNetworksRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/SyncListOdbNetworksLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/SyncListOdbNetworksLocationname.java new file mode 100644 index 000000000000..b4ae80ea1de4 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/SyncListOdbNetworksLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_Locationname_sync] +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListOdbNetworksLocationname { + + public static void main(String[] args) throws Exception { + syncListOdbNetworksLocationname(); + } + + public static void syncListOdbNetworksLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/SyncListOdbNetworksString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/SyncListOdbNetworksString.java new file mode 100644 index 000000000000..df1ade694f7d --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbnetworks/SyncListOdbNetworksString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_String_sync] +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OdbNetwork; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListOdbNetworksString { + + public static void main(String[] args) throws Exception { + syncListOdbNetworksString(); + } + + public static void syncListOdbNetworksString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (OdbNetwork element : oracleDatabaseClient.listOdbNetworks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/AsyncListOdbSubnets.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/AsyncListOdbSubnets.java new file mode 100644 index 000000000000..c44cab85a50b --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/AsyncListOdbSubnets.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncListOdbSubnets { + + public static void main(String[] args) throws Exception { + asyncListOdbSubnets(); + } + + public static void asyncListOdbSubnets() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListOdbSubnetsRequest request = + ListOdbSubnetsRequest.newBuilder() + .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + oracleDatabaseClient.listOdbSubnetsPagedCallable().futureCall(request); + // Do something. + for (OdbSubnet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/AsyncListOdbSubnetsPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/AsyncListOdbSubnetsPaged.java new file mode 100644 index 000000000000..d32553271224 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/AsyncListOdbSubnetsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_Paged_async] +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest; +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.common.base.Strings; + +public class AsyncListOdbSubnetsPaged { + + public static void main(String[] args) throws Exception { + asyncListOdbSubnetsPaged(); + } + + public static void asyncListOdbSubnetsPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListOdbSubnetsRequest request = + ListOdbSubnetsRequest.newBuilder() + .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListOdbSubnetsResponse response = + oracleDatabaseClient.listOdbSubnetsCallable().call(request); + for (OdbSubnet element : response.getOdbSubnetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/SyncListOdbSubnets.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/SyncListOdbSubnets.java new file mode 100644 index 000000000000..606ee34b3575 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/SyncListOdbSubnets.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_sync] +import com.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest; +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListOdbSubnets { + + public static void main(String[] args) throws Exception { + syncListOdbSubnets(); + } + + public static void syncListOdbSubnets() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListOdbSubnetsRequest request = + ListOdbSubnetsRequest.newBuilder() + .setParent(OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/SyncListOdbSubnetsOdbnetworkname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/SyncListOdbSubnetsOdbnetworkname.java new file mode 100644 index 000000000000..5d1f3dd1477a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/SyncListOdbSubnetsOdbnetworkname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_Odbnetworkname_sync] +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListOdbSubnetsOdbnetworkname { + + public static void main(String[] args) throws Exception { + syncListOdbSubnetsOdbnetworkname(); + } + + public static void syncListOdbSubnetsOdbnetworkname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + OdbNetworkName parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]"); + for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_Odbnetworkname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/SyncListOdbSubnetsString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/SyncListOdbSubnetsString.java new file mode 100644 index 000000000000..b1384d13a8cc --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listodbsubnets/SyncListOdbSubnetsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_String_sync] +import com.google.cloud.oracledatabase.v1.OdbNetworkName; +import com.google.cloud.oracledatabase.v1.OdbSubnet; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncListOdbSubnetsString { + + public static void main(String[] args) throws Exception { + syncListOdbSubnetsString(); + } + + public static void syncListOdbSubnetsString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = OdbNetworkName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]").toString(); + for (OdbSubnet element : oracleDatabaseClient.listOdbSubnets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/AsyncListPluggableDatabases.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/AsyncListPluggableDatabases.java new file mode 100644 index 000000000000..899cbebeab2b --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/AsyncListPluggableDatabases.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; + +public class AsyncListPluggableDatabases { + + public static void main(String[] args) throws Exception { + asyncListPluggableDatabases(); + } + + public static void asyncListPluggableDatabases() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListPluggableDatabasesRequest request = + ListPluggableDatabasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + oracleDatabaseClient.listPluggableDatabasesPagedCallable().futureCall(request); + // Do something. + for (PluggableDatabase element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/AsyncListPluggableDatabasesPaged.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/AsyncListPluggableDatabasesPaged.java new file mode 100644 index 000000000000..fbf06b0c5736 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/AsyncListPluggableDatabasesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_Paged_async] +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest; +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; +import com.google.common.base.Strings; + +public class AsyncListPluggableDatabasesPaged { + + public static void main(String[] args) throws Exception { + asyncListPluggableDatabasesPaged(); + } + + public static void asyncListPluggableDatabasesPaged() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListPluggableDatabasesRequest request = + ListPluggableDatabasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListPluggableDatabasesResponse response = + oracleDatabaseClient.listPluggableDatabasesCallable().call(request); + for (PluggableDatabase element : response.getPluggableDatabasesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_Paged_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/SyncListPluggableDatabases.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/SyncListPluggableDatabases.java new file mode 100644 index 000000000000..5b276087c108 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/SyncListPluggableDatabases.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_sync] +import com.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest; +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; + +public class SyncListPluggableDatabases { + + public static void main(String[] args) throws Exception { + syncListPluggableDatabases(); + } + + public static void syncListPluggableDatabases() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ListPluggableDatabasesRequest request = + ListPluggableDatabasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (PluggableDatabase element : + oracleDatabaseClient.listPluggableDatabases(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/SyncListPluggableDatabasesLocationname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/SyncListPluggableDatabasesLocationname.java new file mode 100644 index 000000000000..7e694e79734c --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/SyncListPluggableDatabasesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_Locationname_sync] +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; + +public class SyncListPluggableDatabasesLocationname { + + public static void main(String[] args) throws Exception { + syncListPluggableDatabasesLocationname(); + } + + public static void syncListPluggableDatabasesLocationname() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (PluggableDatabase element : + oracleDatabaseClient.listPluggableDatabases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_Locationname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/SyncListPluggableDatabasesString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/SyncListPluggableDatabasesString.java new file mode 100644 index 000000000000..dc8e2845480e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/listpluggabledatabases/SyncListPluggableDatabasesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_String_sync] +import com.google.cloud.oracledatabase.v1.LocationName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.PluggableDatabase; + +public class SyncListPluggableDatabasesString { + + public static void main(String[] args) throws Exception { + syncListPluggableDatabasesString(); + } + + public static void syncListPluggableDatabasesString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (PluggableDatabase element : + oracleDatabaseClient.listPluggableDatabases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/AsyncRemoveVirtualMachineExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/AsyncRemoveVirtualMachineExadbVmCluster.java new file mode 100644 index 000000000000..41623e25f102 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/AsyncRemoveVirtualMachineExadbVmCluster.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncRemoveVirtualMachineExadbVmCluster { + + public static void main(String[] args) throws Exception { + asyncRemoveVirtualMachineExadbVmCluster(); + } + + public static void asyncRemoveVirtualMachineExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + RemoveVirtualMachineExadbVmClusterRequest request = + RemoveVirtualMachineExadbVmClusterRequest.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setRequestId("requestId693933066") + .addAllHostnames(new ArrayList()) + .build(); + ApiFuture future = + oracleDatabaseClient.removeVirtualMachineExadbVmClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/AsyncRemoveVirtualMachineExadbVmClusterLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/AsyncRemoveVirtualMachineExadbVmClusterLRO.java new file mode 100644 index 000000000000..f5fb5b87c72b --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/AsyncRemoveVirtualMachineExadbVmClusterLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest; +import java.util.ArrayList; + +public class AsyncRemoveVirtualMachineExadbVmClusterLRO { + + public static void main(String[] args) throws Exception { + asyncRemoveVirtualMachineExadbVmClusterLRO(); + } + + public static void asyncRemoveVirtualMachineExadbVmClusterLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + RemoveVirtualMachineExadbVmClusterRequest request = + RemoveVirtualMachineExadbVmClusterRequest.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setRequestId("requestId693933066") + .addAllHostnames(new ArrayList()) + .build(); + OperationFuture future = + oracleDatabaseClient + .removeVirtualMachineExadbVmClusterOperationCallable() + .futureCall(request); + // Do something. + ExadbVmCluster response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/SyncRemoveVirtualMachineExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/SyncRemoveVirtualMachineExadbVmCluster.java new file mode 100644 index 000000000000..abf6f9b5cf5d --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/SyncRemoveVirtualMachineExadbVmCluster.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest; +import java.util.ArrayList; + +public class SyncRemoveVirtualMachineExadbVmCluster { + + public static void main(String[] args) throws Exception { + syncRemoveVirtualMachineExadbVmCluster(); + } + + public static void syncRemoveVirtualMachineExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + RemoveVirtualMachineExadbVmClusterRequest request = + RemoveVirtualMachineExadbVmClusterRequest.newBuilder() + .setName( + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString()) + .setRequestId("requestId693933066") + .addAllHostnames(new ArrayList()) + .build(); + ExadbVmCluster response = + oracleDatabaseClient.removeVirtualMachineExadbVmClusterAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/SyncRemoveVirtualMachineExadbVmClusterExadbvmclusternameListstring.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/SyncRemoveVirtualMachineExadbVmClusterExadbvmclusternameListstring.java new file mode 100644 index 000000000000..686b57919121 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/SyncRemoveVirtualMachineExadbVmClusterExadbvmclusternameListstring.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_ExadbvmclusternameListstring_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncRemoveVirtualMachineExadbVmClusterExadbvmclusternameListstring { + + public static void main(String[] args) throws Exception { + syncRemoveVirtualMachineExadbVmClusterExadbvmclusternameListstring(); + } + + public static void syncRemoveVirtualMachineExadbVmClusterExadbvmclusternameListstring() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ExadbVmClusterName name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]"); + List hostnames = new ArrayList<>(); + ExadbVmCluster response = + oracleDatabaseClient.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_ExadbvmclusternameListstring_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/SyncRemoveVirtualMachineExadbVmClusterStringListstring.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/SyncRemoveVirtualMachineExadbVmClusterStringListstring.java new file mode 100644 index 000000000000..00369a5aa4f9 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/removevirtualmachineexadbvmcluster/SyncRemoveVirtualMachineExadbVmClusterStringListstring.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_StringListstring_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.ExadbVmClusterName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncRemoveVirtualMachineExadbVmClusterStringListstring { + + public static void main(String[] args) throws Exception { + syncRemoveVirtualMachineExadbVmClusterStringListstring(); + } + + public static void syncRemoveVirtualMachineExadbVmClusterStringListstring() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + ExadbVmClusterName.of("[PROJECT]", "[LOCATION]", "[EXADB_VM_CLUSTER]").toString(); + List hostnames = new ArrayList<>(); + ExadbVmCluster response = + oracleDatabaseClient.removeVirtualMachineExadbVmClusterAsync(name, hostnames).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_StringListstring_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/AsyncSwitchoverAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/AsyncSwitchoverAutonomousDatabase.java new file mode 100644 index 000000000000..03282e8830cf --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/AsyncSwitchoverAutonomousDatabase.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest; +import com.google.longrunning.Operation; + +public class AsyncSwitchoverAutonomousDatabase { + + public static void main(String[] args) throws Exception { + asyncSwitchoverAutonomousDatabase(); + } + + public static void asyncSwitchoverAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + SwitchoverAutonomousDatabaseRequest request = + SwitchoverAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setPeerAutonomousDatabase( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .build(); + ApiFuture future = + oracleDatabaseClient.switchoverAutonomousDatabaseCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/AsyncSwitchoverAutonomousDatabaseLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/AsyncSwitchoverAutonomousDatabaseLRO.java new file mode 100644 index 000000000000..5da897554dad --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/AsyncSwitchoverAutonomousDatabaseLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest; + +public class AsyncSwitchoverAutonomousDatabaseLRO { + + public static void main(String[] args) throws Exception { + asyncSwitchoverAutonomousDatabaseLRO(); + } + + public static void asyncSwitchoverAutonomousDatabaseLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + SwitchoverAutonomousDatabaseRequest request = + SwitchoverAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setPeerAutonomousDatabase( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .build(); + OperationFuture future = + oracleDatabaseClient.switchoverAutonomousDatabaseOperationCallable().futureCall(request); + // Do something. + AutonomousDatabase response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabase.java new file mode 100644 index 000000000000..b645de9170e3 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabase.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest; + +public class SyncSwitchoverAutonomousDatabase { + + public static void main(String[] args) throws Exception { + syncSwitchoverAutonomousDatabase(); + } + + public static void syncSwitchoverAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + SwitchoverAutonomousDatabaseRequest request = + SwitchoverAutonomousDatabaseRequest.newBuilder() + .setName( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .setPeerAutonomousDatabase( + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]") + .toString()) + .build(); + AutonomousDatabase response = + oracleDatabaseClient.switchoverAutonomousDatabaseAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename.java new file mode 100644 index 000000000000..259c03981127 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_AutonomousdatabasenameAutonomousdatabasename_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncSwitchoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename { + + public static void main(String[] args) throws Exception { + syncSwitchoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename(); + } + + public static void syncSwitchoverAutonomousDatabaseAutonomousdatabasenameAutonomousdatabasename() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabase response = + oracleDatabaseClient + .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_AutonomousdatabasenameAutonomousdatabasename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseAutonomousdatabasenameString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseAutonomousdatabasenameString.java new file mode 100644 index 000000000000..43f4ae9c6057 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseAutonomousdatabasenameString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_AutonomousdatabasenameString_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncSwitchoverAutonomousDatabaseAutonomousdatabasenameString { + + public static void main(String[] args) throws Exception { + syncSwitchoverAutonomousDatabaseAutonomousdatabasenameString(); + } + + public static void syncSwitchoverAutonomousDatabaseAutonomousdatabasenameString() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + AutonomousDatabaseName name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + String peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + AutonomousDatabase response = + oracleDatabaseClient + .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_AutonomousdatabasenameString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseStringAutonomousdatabasename.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseStringAutonomousdatabasename.java new file mode 100644 index 000000000000..472a05887e9a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseStringAutonomousdatabasename.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_StringAutonomousdatabasename_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncSwitchoverAutonomousDatabaseStringAutonomousdatabasename { + + public static void main(String[] args) throws Exception { + syncSwitchoverAutonomousDatabaseStringAutonomousdatabasename(); + } + + public static void syncSwitchoverAutonomousDatabaseStringAutonomousdatabasename() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + AutonomousDatabaseName peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]"); + AutonomousDatabase response = + oracleDatabaseClient + .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_StringAutonomousdatabasename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseStringString.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseStringString.java new file mode 100644 index 000000000000..4c616143065a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/switchoverautonomousdatabase/SyncSwitchoverAutonomousDatabaseStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_StringString_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.AutonomousDatabaseName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncSwitchoverAutonomousDatabaseStringString { + + public static void main(String[] args) throws Exception { + syncSwitchoverAutonomousDatabaseStringString(); + } + + public static void syncSwitchoverAutonomousDatabaseStringString() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + String peerAutonomousDatabase = + AutonomousDatabaseName.of("[PROJECT]", "[LOCATION]", "[AUTONOMOUS_DATABASE]").toString(); + AutonomousDatabase response = + oracleDatabaseClient + .switchoverAutonomousDatabaseAsync(name, peerAutonomousDatabase) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_StringString_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/AsyncUpdateAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/AsyncUpdateAutonomousDatabase.java new file mode 100644 index 000000000000..f69f8ce0f0c2 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/AsyncUpdateAutonomousDatabase.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAutonomousDatabase { + + public static void main(String[] args) throws Exception { + asyncUpdateAutonomousDatabase(); + } + + public static void asyncUpdateAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateAutonomousDatabaseRequest request = + UpdateAutonomousDatabaseRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAutonomousDatabase(AutonomousDatabase.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.updateAutonomousDatabaseCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/AsyncUpdateAutonomousDatabaseLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/AsyncUpdateAutonomousDatabaseLRO.java new file mode 100644 index 000000000000..928c53abfa84 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/AsyncUpdateAutonomousDatabaseLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAutonomousDatabaseLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAutonomousDatabaseLRO(); + } + + public static void asyncUpdateAutonomousDatabaseLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateAutonomousDatabaseRequest request = + UpdateAutonomousDatabaseRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAutonomousDatabase(AutonomousDatabase.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.updateAutonomousDatabaseOperationCallable().futureCall(request); + // Do something. + AutonomousDatabase response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/SyncUpdateAutonomousDatabase.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/SyncUpdateAutonomousDatabase.java new file mode 100644 index 000000000000..f4883a705256 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/SyncUpdateAutonomousDatabase.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAutonomousDatabase { + + public static void main(String[] args) throws Exception { + syncUpdateAutonomousDatabase(); + } + + public static void syncUpdateAutonomousDatabase() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateAutonomousDatabaseRequest request = + UpdateAutonomousDatabaseRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAutonomousDatabase(AutonomousDatabase.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AutonomousDatabase response = + oracleDatabaseClient.updateAutonomousDatabaseAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/SyncUpdateAutonomousDatabaseAutonomousdatabaseFieldmask.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/SyncUpdateAutonomousDatabaseAutonomousdatabaseFieldmask.java new file mode 100644 index 000000000000..bb5a915c6112 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateautonomousdatabase/SyncUpdateAutonomousDatabaseAutonomousdatabaseFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_AutonomousdatabaseFieldmask_sync] +import com.google.cloud.oracledatabase.v1.AutonomousDatabase; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAutonomousDatabaseAutonomousdatabaseFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAutonomousDatabaseAutonomousdatabaseFieldmask(); + } + + public static void syncUpdateAutonomousDatabaseAutonomousdatabaseFieldmask() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + AutonomousDatabase autonomousDatabase = AutonomousDatabase.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AutonomousDatabase response = + oracleDatabaseClient.updateAutonomousDatabaseAsync(autonomousDatabase, updateMask).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_AutonomousdatabaseFieldmask_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/AsyncUpdateExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/AsyncUpdateExadbVmCluster.java new file mode 100644 index 000000000000..d7485b44ee1e --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/AsyncUpdateExadbVmCluster.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateExadbVmCluster { + + public static void main(String[] args) throws Exception { + asyncUpdateExadbVmCluster(); + } + + public static void asyncUpdateExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateExadbVmClusterRequest request = + UpdateExadbVmClusterRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setExadbVmCluster(ExadbVmCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient.updateExadbVmClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/AsyncUpdateExadbVmClusterLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/AsyncUpdateExadbVmClusterLRO.java new file mode 100644 index 000000000000..cbfc69934a02 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/AsyncUpdateExadbVmClusterLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateExadbVmClusterLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateExadbVmClusterLRO(); + } + + public static void asyncUpdateExadbVmClusterLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateExadbVmClusterRequest request = + UpdateExadbVmClusterRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setExadbVmCluster(ExadbVmCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.updateExadbVmClusterOperationCallable().futureCall(request); + // Do something. + ExadbVmCluster response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/SyncUpdateExadbVmCluster.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/SyncUpdateExadbVmCluster.java new file mode 100644 index 000000000000..aa9b46694636 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/SyncUpdateExadbVmCluster.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExadbVmCluster { + + public static void main(String[] args) throws Exception { + syncUpdateExadbVmCluster(); + } + + public static void syncUpdateExadbVmCluster() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateExadbVmClusterRequest request = + UpdateExadbVmClusterRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setExadbVmCluster(ExadbVmCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ExadbVmCluster response = oracleDatabaseClient.updateExadbVmClusterAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/SyncUpdateExadbVmClusterExadbvmclusterFieldmask.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/SyncUpdateExadbVmClusterExadbvmclusterFieldmask.java new file mode 100644 index 000000000000..8586a250d461 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateexadbvmcluster/SyncUpdateExadbVmClusterExadbvmclusterFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_ExadbvmclusterFieldmask_sync] +import com.google.cloud.oracledatabase.v1.ExadbVmCluster; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExadbVmClusterExadbvmclusterFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateExadbVmClusterExadbvmclusterFieldmask(); + } + + public static void syncUpdateExadbVmClusterExadbvmclusterFieldmask() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ExadbVmCluster exadbVmCluster = ExadbVmCluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ExadbVmCluster response = + oracleDatabaseClient.updateExadbVmClusterAsync(exadbVmCluster, updateMask).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_ExadbvmclusterFieldmask_sync] diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index c6666a46d3c3..7eb2ac10fa60 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orchestration-airflow - 1.77.0 + 1.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.77.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsGrpc.java b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsGrpc.java index 8afb5791640d..a480b319b76f 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsGrpc.java +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsGrpc.java @@ -24,9 +24,6 @@ * Managed Apache Airflow Environments. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/orchestration/airflow/service/v1/environments.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EnvironmentsGrpc { @@ -2220,8 +2217,9 @@ protected EnvironmentsBlockingV2Stub build( * */ public com.google.longrunning.Operation createEnvironment( - com.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); } @@ -2233,8 +2231,9 @@ public com.google.longrunning.Operation createEnvironment( * */ public com.google.cloud.orchestration.airflow.service.v1.Environment getEnvironment( - com.google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -2247,8 +2246,9 @@ public com.google.cloud.orchestration.airflow.service.v1.Environment getEnvironm */ public com.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse listEnvironments( - com.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } @@ -2260,8 +2260,9 @@ public com.google.cloud.orchestration.airflow.service.v1.Environment getEnvironm * */ public com.google.longrunning.Operation updateEnvironment( - com.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); } @@ -2273,8 +2274,9 @@ public com.google.longrunning.Operation updateEnvironment( * */ public com.google.longrunning.Operation deleteEnvironment( - com.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); } @@ -2287,9 +2289,9 @@ public com.google.longrunning.Operation deleteEnvironment( */ public com.google.cloud.orchestration.airflow.service.v1.ExecuteAirflowCommandResponse executeAirflowCommand( - com.google.cloud.orchestration.airflow.service.v1.ExecuteAirflowCommandRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.ExecuteAirflowCommandRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExecuteAirflowCommandMethod(), getCallOptions(), request); } @@ -2302,8 +2304,9 @@ public com.google.longrunning.Operation deleteEnvironment( */ public com.google.cloud.orchestration.airflow.service.v1.StopAirflowCommandResponse stopAirflowCommand( - com.google.cloud.orchestration.airflow.service.v1.StopAirflowCommandRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.StopAirflowCommandRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopAirflowCommandMethod(), getCallOptions(), request); } @@ -2316,8 +2319,9 @@ public com.google.longrunning.Operation deleteEnvironment( */ public com.google.cloud.orchestration.airflow.service.v1.PollAirflowCommandResponse pollAirflowCommand( - com.google.cloud.orchestration.airflow.service.v1.PollAirflowCommandRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.PollAirflowCommandRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPollAirflowCommandMethod(), getCallOptions(), request); } @@ -2332,8 +2336,9 @@ public com.google.longrunning.Operation deleteEnvironment( * */ public com.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse listWorkloads( - com.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.ListWorkloadsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkloadsMethod(), getCallOptions(), request); } @@ -2346,8 +2351,9 @@ public com.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse l * */ public com.google.longrunning.Operation checkUpgrade( - com.google.cloud.orchestration.airflow.service.v1.CheckUpgradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.CheckUpgradeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckUpgradeMethod(), getCallOptions(), request); } @@ -2363,8 +2369,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret createUserWorkloadsSecret( com.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsSecretRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUserWorkloadsSecretMethod(), getCallOptions(), request); } @@ -2380,9 +2387,9 @@ public com.google.longrunning.Operation checkUpgrade( */ public com.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret getUserWorkloadsSecret( - com.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUserWorkloadsSecretMethod(), getCallOptions(), request); } @@ -2398,8 +2405,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse listUserWorkloadsSecrets( com.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUserWorkloadsSecretsMethod(), getCallOptions(), request); } @@ -2415,8 +2423,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret updateUserWorkloadsSecret( com.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsSecretRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUserWorkloadsSecretMethod(), getCallOptions(), request); } @@ -2430,9 +2439,9 @@ public com.google.longrunning.Operation checkUpgrade( * */ public com.google.protobuf.Empty deleteUserWorkloadsSecret( - com.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserWorkloadsSecretMethod(), getCallOptions(), request); } @@ -2448,8 +2457,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( public com.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap createUserWorkloadsConfigMap( com.google.cloud.orchestration.airflow.service.v1.CreateUserWorkloadsConfigMapRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUserWorkloadsConfigMapMethod(), getCallOptions(), request); } @@ -2465,8 +2475,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( public com.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap getUserWorkloadsConfigMap( com.google.cloud.orchestration.airflow.service.v1.GetUserWorkloadsConfigMapRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUserWorkloadsConfigMapMethod(), getCallOptions(), request); } @@ -2482,8 +2493,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( public com.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse listUserWorkloadsConfigMaps( com.google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUserWorkloadsConfigMapsMethod(), getCallOptions(), request); } @@ -2499,8 +2511,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( public com.google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap updateUserWorkloadsConfigMap( com.google.cloud.orchestration.airflow.service.v1.UpdateUserWorkloadsConfigMapRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUserWorkloadsConfigMapMethod(), getCallOptions(), request); } @@ -2515,8 +2528,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( */ public com.google.protobuf.Empty deleteUserWorkloadsConfigMap( com.google.cloud.orchestration.airflow.service.v1.DeleteUserWorkloadsConfigMapRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserWorkloadsConfigMapMethod(), getCallOptions(), request); } @@ -2530,8 +2544,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsConfigMap( * */ public com.google.longrunning.Operation saveSnapshot( - com.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSaveSnapshotMethod(), getCallOptions(), request); } @@ -2545,8 +2560,9 @@ public com.google.longrunning.Operation saveSnapshot( * */ public com.google.longrunning.Operation loadSnapshot( - com.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLoadSnapshotMethod(), getCallOptions(), request); } @@ -2558,8 +2574,9 @@ public com.google.longrunning.Operation loadSnapshot( * */ public com.google.longrunning.Operation databaseFailover( - com.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.DatabaseFailoverRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDatabaseFailoverMethod(), getCallOptions(), request); } @@ -2573,8 +2590,9 @@ public com.google.longrunning.Operation databaseFailover( public com.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse fetchDatabaseProperties( com.google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchDatabasePropertiesMethod(), getCallOptions(), request); } } diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsGrpc.java b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsGrpc.java index 072ef9f1fdb7..4e3ccfffce4a 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsGrpc.java +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsGrpc.java @@ -24,9 +24,6 @@ * Readonly service to query available ImageVersions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/orchestration/airflow/service/v1/image_versions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ImageVersionsGrpc { @@ -247,8 +244,9 @@ protected ImageVersionsBlockingV2Stub build( */ public com.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse listImageVersions( - com.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListImageVersionsMethod(), getCallOptions(), request); } } diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsGrpc.java b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsGrpc.java index d6115af0db58..e02f21ff4f43 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsGrpc.java +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsGrpc.java @@ -24,9 +24,6 @@ * Managed Apache Airflow Environments. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/orchestration/airflow/service/v1beta1/environments.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EnvironmentsGrpc { @@ -2372,8 +2369,9 @@ protected EnvironmentsBlockingV2Stub build( * */ public com.google.longrunning.Operation createEnvironment( - com.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); } @@ -2385,8 +2383,9 @@ public com.google.longrunning.Operation createEnvironment( * */ public com.google.cloud.orchestration.airflow.service.v1beta1.Environment getEnvironment( - com.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -2399,9 +2398,9 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.Environment getEnv */ public com.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse listEnvironments( - com.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); } @@ -2413,8 +2412,9 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.Environment getEnv * */ public com.google.longrunning.Operation updateEnvironment( - com.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); } @@ -2426,8 +2426,9 @@ public com.google.longrunning.Operation updateEnvironment( * */ public com.google.longrunning.Operation deleteEnvironment( - com.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); } @@ -2439,8 +2440,9 @@ public com.google.longrunning.Operation deleteEnvironment( * */ public com.google.longrunning.Operation restartWebServer( - com.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestartWebServerMethod(), getCallOptions(), request); } @@ -2453,8 +2455,9 @@ public com.google.longrunning.Operation restartWebServer( * */ public com.google.longrunning.Operation checkUpgrade( - com.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckUpgradeMethod(), getCallOptions(), request); } @@ -2468,8 +2471,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse executeAirflowCommand( com.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExecuteAirflowCommandMethod(), getCallOptions(), request); } @@ -2483,8 +2487,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse stopAirflowCommand( com.google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopAirflowCommandMethod(), getCallOptions(), request); } @@ -2498,8 +2503,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse pollAirflowCommand( com.google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPollAirflowCommandMethod(), getCallOptions(), request); } @@ -2515,8 +2521,9 @@ public com.google.longrunning.Operation checkUpgrade( */ public com.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse listWorkloads( - com.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkloadsMethod(), getCallOptions(), request); } @@ -2532,8 +2539,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret createUserWorkloadsSecret( com.google.cloud.orchestration.airflow.service.v1beta1.CreateUserWorkloadsSecretRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUserWorkloadsSecretMethod(), getCallOptions(), request); } @@ -2550,8 +2558,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret getUserWorkloadsSecret( com.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsSecretRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUserWorkloadsSecretMethod(), getCallOptions(), request); } @@ -2567,8 +2576,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse listUserWorkloadsSecrets( com.google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUserWorkloadsSecretsMethod(), getCallOptions(), request); } @@ -2584,8 +2594,9 @@ public com.google.longrunning.Operation checkUpgrade( public com.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret updateUserWorkloadsSecret( com.google.cloud.orchestration.airflow.service.v1beta1.UpdateUserWorkloadsSecretRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUserWorkloadsSecretMethod(), getCallOptions(), request); } @@ -2600,8 +2611,9 @@ public com.google.longrunning.Operation checkUpgrade( */ public com.google.protobuf.Empty deleteUserWorkloadsSecret( com.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsSecretRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserWorkloadsSecretMethod(), getCallOptions(), request); } @@ -2618,8 +2630,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( createUserWorkloadsConfigMap( com.google.cloud.orchestration.airflow.service.v1beta1 .CreateUserWorkloadsConfigMapRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUserWorkloadsConfigMapMethod(), getCallOptions(), request); } @@ -2635,8 +2648,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( public com.google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap getUserWorkloadsConfigMap( com.google.cloud.orchestration.airflow.service.v1beta1.GetUserWorkloadsConfigMapRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUserWorkloadsConfigMapMethod(), getCallOptions(), request); } @@ -2654,8 +2668,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( listUserWorkloadsConfigMaps( com.google.cloud.orchestration.airflow.service.v1beta1 .ListUserWorkloadsConfigMapsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUserWorkloadsConfigMapsMethod(), getCallOptions(), request); } @@ -2672,8 +2687,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( updateUserWorkloadsConfigMap( com.google.cloud.orchestration.airflow.service.v1beta1 .UpdateUserWorkloadsConfigMapRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUserWorkloadsConfigMapMethod(), getCallOptions(), request); } @@ -2688,8 +2704,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsSecret( */ public com.google.protobuf.Empty deleteUserWorkloadsConfigMap( com.google.cloud.orchestration.airflow.service.v1beta1.DeleteUserWorkloadsConfigMapRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserWorkloadsConfigMapMethod(), getCallOptions(), request); } @@ -2703,8 +2720,9 @@ public com.google.protobuf.Empty deleteUserWorkloadsConfigMap( * */ public com.google.longrunning.Operation saveSnapshot( - com.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.SaveSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSaveSnapshotMethod(), getCallOptions(), request); } @@ -2718,8 +2736,9 @@ public com.google.longrunning.Operation saveSnapshot( * */ public com.google.longrunning.Operation loadSnapshot( - com.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLoadSnapshotMethod(), getCallOptions(), request); } @@ -2731,8 +2750,9 @@ public com.google.longrunning.Operation loadSnapshot( * */ public com.google.longrunning.Operation databaseFailover( - com.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.DatabaseFailoverRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDatabaseFailoverMethod(), getCallOptions(), request); } @@ -2746,8 +2766,9 @@ public com.google.longrunning.Operation databaseFailover( public com.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse fetchDatabaseProperties( com.google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchDatabasePropertiesMethod(), getCallOptions(), request); } } diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsGrpc.java b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsGrpc.java index 5d1fe2889a0b..e026f86295c8 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsGrpc.java +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsGrpc.java @@ -24,9 +24,6 @@ * Readonly service to query available ImageVersions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/orchestration/airflow/service/v1beta1/image_versions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ImageVersionsGrpc { @@ -248,9 +245,9 @@ protected ImageVersionsBlockingV2Stub build( */ public com.google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsResponse listImageVersions( - com.google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListImageVersionsMethod(), getCallOptions(), request); } } diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 82e644427978..c86d060739ad 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.77.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyGrpc.java b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyGrpc.java index cff43e21ec1d..5cbbfc76eb30 100644 --- a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyGrpc.java +++ b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyGrpc.java @@ -39,9 +39,6 @@ * particular resource and its child resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/orgpolicy/v2/orgpolicy.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OrgPolicyGrpc { @@ -1210,8 +1207,9 @@ protected OrgPolicyBlockingV2Stub build( * */ public com.google.cloud.orgpolicy.v2.ListConstraintsResponse listConstraints( - com.google.cloud.orgpolicy.v2.ListConstraintsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.ListConstraintsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConstraintsMethod(), getCallOptions(), request); } @@ -1223,8 +1221,8 @@ public com.google.cloud.orgpolicy.v2.ListConstraintsResponse listConstraints( * */ public com.google.cloud.orgpolicy.v2.ListPoliciesResponse listPolicies( - com.google.cloud.orgpolicy.v2.ListPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.ListPoliciesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPoliciesMethod(), getCallOptions(), request); } @@ -1239,8 +1237,8 @@ public com.google.cloud.orgpolicy.v2.ListPoliciesResponse listPolicies( * */ public com.google.cloud.orgpolicy.v2.Policy getPolicy( - com.google.cloud.orgpolicy.v2.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.GetPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPolicyMethod(), getCallOptions(), request); } @@ -1257,8 +1255,9 @@ public com.google.cloud.orgpolicy.v2.Policy getPolicy( * */ public com.google.cloud.orgpolicy.v2.Policy getEffectivePolicy( - com.google.cloud.orgpolicy.v2.GetEffectivePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.GetEffectivePolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEffectivePolicyMethod(), getCallOptions(), request); } @@ -1274,8 +1273,8 @@ public com.google.cloud.orgpolicy.v2.Policy getEffectivePolicy( * */ public com.google.cloud.orgpolicy.v2.Policy createPolicy( - com.google.cloud.orgpolicy.v2.CreatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.CreatePolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePolicyMethod(), getCallOptions(), request); } @@ -1293,8 +1292,8 @@ public com.google.cloud.orgpolicy.v2.Policy createPolicy( * */ public com.google.cloud.orgpolicy.v2.Policy updatePolicy( - com.google.cloud.orgpolicy.v2.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.UpdatePolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); } @@ -1308,8 +1307,8 @@ public com.google.cloud.orgpolicy.v2.Policy updatePolicy( * */ public com.google.protobuf.Empty deletePolicy( - com.google.cloud.orgpolicy.v2.DeletePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.DeletePolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePolicyMethod(), getCallOptions(), request); } @@ -1325,8 +1324,9 @@ public com.google.protobuf.Empty deletePolicy( * */ public com.google.cloud.orgpolicy.v2.CustomConstraint createCustomConstraint( - com.google.cloud.orgpolicy.v2.CreateCustomConstraintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.CreateCustomConstraintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomConstraintMethod(), getCallOptions(), request); } @@ -1342,8 +1342,9 @@ public com.google.cloud.orgpolicy.v2.CustomConstraint createCustomConstraint( * */ public com.google.cloud.orgpolicy.v2.CustomConstraint updateCustomConstraint( - com.google.cloud.orgpolicy.v2.UpdateCustomConstraintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.UpdateCustomConstraintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomConstraintMethod(), getCallOptions(), request); } @@ -1357,8 +1358,9 @@ public com.google.cloud.orgpolicy.v2.CustomConstraint updateCustomConstraint( * */ public com.google.cloud.orgpolicy.v2.CustomConstraint getCustomConstraint( - com.google.cloud.orgpolicy.v2.GetCustomConstraintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.GetCustomConstraintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomConstraintMethod(), getCallOptions(), request); } @@ -1371,8 +1373,9 @@ public com.google.cloud.orgpolicy.v2.CustomConstraint getCustomConstraint( * */ public com.google.cloud.orgpolicy.v2.ListCustomConstraintsResponse listCustomConstraints( - com.google.cloud.orgpolicy.v2.ListCustomConstraintsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.ListCustomConstraintsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomConstraintsMethod(), getCallOptions(), request); } @@ -1386,8 +1389,9 @@ public com.google.cloud.orgpolicy.v2.ListCustomConstraintsResponse listCustomCon * */ public com.google.protobuf.Empty deleteCustomConstraint( - com.google.cloud.orgpolicy.v2.DeleteCustomConstraintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.orgpolicy.v2.DeleteCustomConstraintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomConstraintMethod(), getCallOptions(), request); } } diff --git a/java-os-config/README.md b/java-os-config/README.md index b832cee650fb..efc94a291f5e 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-config - 2.79.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.79.0' +implementation 'com.google.cloud:google-cloud-os-config:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-config/grpc-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceGrpc.java b/java-os-config/grpc-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceGrpc.java index 876d6b5b6003..70e9cca950dc 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceGrpc.java +++ b/java-os-config/grpc-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceGrpc.java @@ -26,9 +26,6 @@ * manage package installations and patch jobs for virtual machine instances. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/osconfig/v1/osconfig_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OsConfigServiceGrpc { @@ -1159,8 +1156,9 @@ protected OsConfigServiceBlockingV2Stub build( * */ public com.google.cloud.osconfig.v1.PatchJobs.PatchJob executePatchJob( - com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExecutePatchJobMethod(), getCallOptions(), request); } @@ -1173,8 +1171,9 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchJob executePatchJob( * */ public com.google.cloud.osconfig.v1.PatchJobs.PatchJob getPatchJob( - com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPatchJobMethod(), getCallOptions(), request); } @@ -1187,8 +1186,9 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchJob getPatchJob( * */ public com.google.cloud.osconfig.v1.PatchJobs.PatchJob cancelPatchJob( - com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelPatchJobMethod(), getCallOptions(), request); } @@ -1200,8 +1200,9 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchJob cancelPatchJob( * */ public com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse listPatchJobs( - com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPatchJobsMethod(), getCallOptions(), request); } @@ -1214,8 +1215,9 @@ public com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse listPatchJob */ public com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse listPatchJobInstanceDetails( - com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPatchJobInstanceDetailsMethod(), getCallOptions(), request); } @@ -1227,8 +1229,9 @@ public com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse listPatchJob * */ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment createPatchDeployment( - com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePatchDeploymentMethod(), getCallOptions(), request); } @@ -1240,8 +1243,9 @@ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment createPatch * */ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment getPatchDeployment( - com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPatchDeploymentMethod(), getCallOptions(), request); } @@ -1254,8 +1258,9 @@ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment getPatchDep */ public com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse listPatchDeployments( - com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPatchDeploymentsMethod(), getCallOptions(), request); } @@ -1267,8 +1272,9 @@ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment getPatchDep * */ public com.google.protobuf.Empty deletePatchDeployment( - com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePatchDeploymentMethod(), getCallOptions(), request); } @@ -1280,8 +1286,9 @@ public com.google.protobuf.Empty deletePatchDeployment( * */ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment updatePatchDeployment( - com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePatchDeploymentMethod(), getCallOptions(), request); } @@ -1294,8 +1301,9 @@ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment updatePatch * */ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment pausePatchDeployment( - com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPausePatchDeploymentMethod(), getCallOptions(), request); } @@ -1308,8 +1316,9 @@ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment pausePatchD * */ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment resumePatchDeployment( - com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumePatchDeploymentMethod(), getCallOptions(), request); } } diff --git a/java-os-config/grpc-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceGrpc.java b/java-os-config/grpc-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceGrpc.java index fa15053bb1f2..21a7a924bb29 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceGrpc.java +++ b/java-os-config/grpc-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceGrpc.java @@ -26,9 +26,6 @@ * manage package installations and patch jobs for Compute Engine VM instances. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/osconfig/v1/osconfig_zonal_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OsConfigZonalServiceGrpc { @@ -1224,8 +1221,9 @@ protected OsConfigZonalServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createOSPolicyAssignment( - com.google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOSPolicyAssignmentMethod(), getCallOptions(), request); } @@ -1242,8 +1240,9 @@ public com.google.longrunning.Operation createOSPolicyAssignment( * */ public com.google.longrunning.Operation updateOSPolicyAssignment( - com.google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOSPolicyAssignmentMethod(), getCallOptions(), request); } @@ -1258,8 +1257,9 @@ public com.google.longrunning.Operation updateOSPolicyAssignment( * */ public com.google.cloud.osconfig.v1.OSPolicyAssignment getOSPolicyAssignment( - com.google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOSPolicyAssignmentMethod(), getCallOptions(), request); } @@ -1272,8 +1272,9 @@ public com.google.cloud.osconfig.v1.OSPolicyAssignment getOSPolicyAssignment( * */ public com.google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse listOSPolicyAssignments( - com.google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOSPolicyAssignmentsMethod(), getCallOptions(), request); } @@ -1286,8 +1287,9 @@ public com.google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse listOSPolicy */ public com.google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse listOSPolicyAssignmentRevisions( - com.google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOSPolicyAssignmentRevisionsMethod(), getCallOptions(), request); } @@ -1306,8 +1308,9 @@ public com.google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse listOSPolicy * */ public com.google.longrunning.Operation deleteOSPolicyAssignment( - com.google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOSPolicyAssignmentMethod(), getCallOptions(), request); } @@ -1320,8 +1323,9 @@ public com.google.longrunning.Operation deleteOSPolicyAssignment( * */ public com.google.cloud.osconfig.v1.OSPolicyAssignmentReport getOSPolicyAssignmentReport( - com.google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOSPolicyAssignmentReportMethod(), getCallOptions(), request); } @@ -1335,8 +1339,9 @@ public com.google.cloud.osconfig.v1.OSPolicyAssignmentReport getOSPolicyAssignme */ public com.google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse listOSPolicyAssignmentReports( - com.google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOSPolicyAssignmentReportsMethod(), getCallOptions(), request); } @@ -1349,8 +1354,8 @@ public com.google.cloud.osconfig.v1.OSPolicyAssignmentReport getOSPolicyAssignme * */ public com.google.cloud.osconfig.v1.Inventory getInventory( - com.google.cloud.osconfig.v1.GetInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.GetInventoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInventoryMethod(), getCallOptions(), request); } @@ -1362,8 +1367,9 @@ public com.google.cloud.osconfig.v1.Inventory getInventory( * */ public com.google.cloud.osconfig.v1.ListInventoriesResponse listInventories( - com.google.cloud.osconfig.v1.ListInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.ListInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInventoriesMethod(), getCallOptions(), request); } @@ -1376,8 +1382,9 @@ public com.google.cloud.osconfig.v1.ListInventoriesResponse listInventories( * */ public com.google.cloud.osconfig.v1.VulnerabilityReport getVulnerabilityReport( - com.google.cloud.osconfig.v1.GetVulnerabilityReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.GetVulnerabilityReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVulnerabilityReportMethod(), getCallOptions(), request); } @@ -1389,8 +1396,9 @@ public com.google.cloud.osconfig.v1.VulnerabilityReport getVulnerabilityReport( * */ public com.google.cloud.osconfig.v1.ListVulnerabilityReportsResponse listVulnerabilityReports( - com.google.cloud.osconfig.v1.ListVulnerabilityReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1.ListVulnerabilityReportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVulnerabilityReportsMethod(), getCallOptions(), request); } } diff --git a/java-os-config/grpc-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceGrpc.java b/java-os-config/grpc-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceGrpc.java index a62aedf0cd24..a622c5f7b7ec 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceGrpc.java +++ b/java-os-config/grpc-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceGrpc.java @@ -26,9 +26,6 @@ * manage package installations and patch jobs for Compute Engine VM instances. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OsConfigZonalServiceGrpc { @@ -1415,8 +1412,9 @@ protected OsConfigZonalServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createOSPolicyAssignment( - com.google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOSPolicyAssignmentMethod(), getCallOptions(), request); } @@ -1433,8 +1431,9 @@ public com.google.longrunning.Operation createOSPolicyAssignment( * */ public com.google.longrunning.Operation updateOSPolicyAssignment( - com.google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOSPolicyAssignmentMethod(), getCallOptions(), request); } @@ -1449,8 +1448,9 @@ public com.google.longrunning.Operation updateOSPolicyAssignment( * */ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment getOSPolicyAssignment( - com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOSPolicyAssignmentMethod(), getCallOptions(), request); } @@ -1464,8 +1464,9 @@ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment getOSPolicyAssignmen */ public com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse listOSPolicyAssignments( - com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOSPolicyAssignmentsMethod(), getCallOptions(), request); } @@ -1478,8 +1479,9 @@ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment getOSPolicyAssignmen */ public com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse listOSPolicyAssignmentRevisions( - com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOSPolicyAssignmentRevisionsMethod(), getCallOptions(), request); } @@ -1498,8 +1500,9 @@ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment getOSPolicyAssignmen * */ public com.google.longrunning.Operation deleteOSPolicyAssignment( - com.google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOSPolicyAssignmentMethod(), getCallOptions(), request); } @@ -1514,8 +1517,9 @@ public com.google.longrunning.Operation deleteOSPolicyAssignment( @java.lang.Deprecated public com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance( - com.google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceOSPoliciesComplianceMethod(), getCallOptions(), request); } @@ -1530,8 +1534,9 @@ public com.google.longrunning.Operation deleteOSPolicyAssignment( @java.lang.Deprecated public com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse listInstanceOSPoliciesCompliances( - com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstanceOSPoliciesCompliancesMethod(), getCallOptions(), request); } @@ -1544,8 +1549,9 @@ public com.google.longrunning.Operation deleteOSPolicyAssignment( * */ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport getOSPolicyAssignmentReport( - com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOSPolicyAssignmentReportMethod(), getCallOptions(), request); } @@ -1559,8 +1565,9 @@ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport getOSPolicyAss */ public com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse listOSPolicyAssignmentReports( - com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOSPolicyAssignmentReportsMethod(), getCallOptions(), request); } @@ -1573,8 +1580,9 @@ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport getOSPolicyAss * */ public com.google.cloud.osconfig.v1alpha.Inventory getInventory( - com.google.cloud.osconfig.v1alpha.GetInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.GetInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInventoryMethod(), getCallOptions(), request); } @@ -1586,8 +1594,9 @@ public com.google.cloud.osconfig.v1alpha.Inventory getInventory( * */ public com.google.cloud.osconfig.v1alpha.ListInventoriesResponse listInventories( - com.google.cloud.osconfig.v1alpha.ListInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.ListInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInventoriesMethod(), getCallOptions(), request); } @@ -1600,8 +1609,9 @@ public com.google.cloud.osconfig.v1alpha.ListInventoriesResponse listInventories * */ public com.google.cloud.osconfig.v1alpha.VulnerabilityReport getVulnerabilityReport( - com.google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVulnerabilityReportMethod(), getCallOptions(), request); } @@ -1614,8 +1624,9 @@ public com.google.cloud.osconfig.v1alpha.VulnerabilityReport getVulnerabilityRep */ public com.google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse listVulnerabilityReports( - com.google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVulnerabilityReportsMethod(), getCallOptions(), request); } } diff --git a/java-os-config/grpc-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceGrpc.java b/java-os-config/grpc-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceGrpc.java index 212ccd557b94..72ca90c8e752 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceGrpc.java +++ b/java-os-config/grpc-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceGrpc.java @@ -26,9 +26,6 @@ * manage package installations and patch jobs for virtual machine instances. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/osconfig/v1beta/osconfig_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OsConfigServiceGrpc { @@ -1670,8 +1667,9 @@ protected OsConfigServiceBlockingV2Stub build( * */ public com.google.cloud.osconfig.v1beta.PatchJobs.PatchJob executePatchJob( - com.google.cloud.osconfig.v1beta.PatchJobs.ExecutePatchJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchJobs.ExecutePatchJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExecutePatchJobMethod(), getCallOptions(), request); } @@ -1684,8 +1682,9 @@ public com.google.cloud.osconfig.v1beta.PatchJobs.PatchJob executePatchJob( * */ public com.google.cloud.osconfig.v1beta.PatchJobs.PatchJob getPatchJob( - com.google.cloud.osconfig.v1beta.PatchJobs.GetPatchJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchJobs.GetPatchJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPatchJobMethod(), getCallOptions(), request); } @@ -1698,8 +1697,9 @@ public com.google.cloud.osconfig.v1beta.PatchJobs.PatchJob getPatchJob( * */ public com.google.cloud.osconfig.v1beta.PatchJobs.PatchJob cancelPatchJob( - com.google.cloud.osconfig.v1beta.PatchJobs.CancelPatchJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchJobs.CancelPatchJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelPatchJobMethod(), getCallOptions(), request); } @@ -1711,8 +1711,9 @@ public com.google.cloud.osconfig.v1beta.PatchJobs.PatchJob cancelPatchJob( * */ public com.google.cloud.osconfig.v1beta.PatchJobs.ListPatchJobsResponse listPatchJobs( - com.google.cloud.osconfig.v1beta.PatchJobs.ListPatchJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchJobs.ListPatchJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPatchJobsMethod(), getCallOptions(), request); } @@ -1725,8 +1726,9 @@ public com.google.cloud.osconfig.v1beta.PatchJobs.ListPatchJobsResponse listPatc */ public com.google.cloud.osconfig.v1beta.PatchJobs.ListPatchJobInstanceDetailsResponse listPatchJobInstanceDetails( - com.google.cloud.osconfig.v1beta.PatchJobs.ListPatchJobInstanceDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchJobs.ListPatchJobInstanceDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPatchJobInstanceDetailsMethod(), getCallOptions(), request); } @@ -1738,8 +1740,9 @@ public com.google.cloud.osconfig.v1beta.PatchJobs.ListPatchJobsResponse listPatc * */ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment createPatchDeployment( - com.google.cloud.osconfig.v1beta.PatchDeployments.CreatePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchDeployments.CreatePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePatchDeploymentMethod(), getCallOptions(), request); } @@ -1751,8 +1754,9 @@ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment createP * */ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment getPatchDeployment( - com.google.cloud.osconfig.v1beta.PatchDeployments.GetPatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchDeployments.GetPatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPatchDeploymentMethod(), getCallOptions(), request); } @@ -1765,8 +1769,9 @@ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment getPatc */ public com.google.cloud.osconfig.v1beta.PatchDeployments.ListPatchDeploymentsResponse listPatchDeployments( - com.google.cloud.osconfig.v1beta.PatchDeployments.ListPatchDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchDeployments.ListPatchDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPatchDeploymentsMethod(), getCallOptions(), request); } @@ -1778,8 +1783,9 @@ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment getPatc * */ public com.google.protobuf.Empty deletePatchDeployment( - com.google.cloud.osconfig.v1beta.PatchDeployments.DeletePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchDeployments.DeletePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePatchDeploymentMethod(), getCallOptions(), request); } @@ -1791,8 +1797,9 @@ public com.google.protobuf.Empty deletePatchDeployment( * */ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment updatePatchDeployment( - com.google.cloud.osconfig.v1beta.PatchDeployments.UpdatePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchDeployments.UpdatePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePatchDeploymentMethod(), getCallOptions(), request); } @@ -1805,8 +1812,9 @@ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment updateP * */ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment pausePatchDeployment( - com.google.cloud.osconfig.v1beta.PatchDeployments.PausePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchDeployments.PausePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPausePatchDeploymentMethod(), getCallOptions(), request); } @@ -1819,8 +1827,9 @@ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment pausePa * */ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment resumePatchDeployment( - com.google.cloud.osconfig.v1beta.PatchDeployments.ResumePatchDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.PatchDeployments.ResumePatchDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumePatchDeploymentMethod(), getCallOptions(), request); } @@ -1832,8 +1841,9 @@ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment resumeP * */ public com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy createGuestPolicy( - com.google.cloud.osconfig.v1beta.GuestPolicies.CreateGuestPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.GuestPolicies.CreateGuestPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGuestPolicyMethod(), getCallOptions(), request); } @@ -1845,8 +1855,9 @@ public com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy createGuestPol * */ public com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy getGuestPolicy( - com.google.cloud.osconfig.v1beta.GuestPolicies.GetGuestPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.GuestPolicies.GetGuestPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGuestPolicyMethod(), getCallOptions(), request); } @@ -1859,8 +1870,9 @@ public com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy getGuestPolicy */ public com.google.cloud.osconfig.v1beta.GuestPolicies.ListGuestPoliciesResponse listGuestPolicies( - com.google.cloud.osconfig.v1beta.GuestPolicies.ListGuestPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.GuestPolicies.ListGuestPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGuestPoliciesMethod(), getCallOptions(), request); } @@ -1872,8 +1884,9 @@ public com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy getGuestPolicy * */ public com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy updateGuestPolicy( - com.google.cloud.osconfig.v1beta.GuestPolicies.UpdateGuestPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.GuestPolicies.UpdateGuestPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGuestPolicyMethod(), getCallOptions(), request); } @@ -1885,8 +1898,9 @@ public com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy updateGuestPol * */ public com.google.protobuf.Empty deleteGuestPolicy( - com.google.cloud.osconfig.v1beta.GuestPolicies.DeleteGuestPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.osconfig.v1beta.GuestPolicies.DeleteGuestPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGuestPolicyMethod(), getCallOptions(), request); } @@ -1901,8 +1915,9 @@ public com.google.protobuf.Empty deleteGuestPolicy( public com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy lookupEffectiveGuestPolicy( com.google.cloud.osconfig.v1beta.GuestPolicies.LookupEffectiveGuestPolicyRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLookupEffectiveGuestPolicyMethod(), getCallOptions(), request); } } diff --git a/java-os-login/README.md b/java-os-login/README.md index 1c8241201b3e..e4a9c3d8b00a 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-login - 2.76.0 + 2.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.76.0' +implementation 'com.google.cloud:google-cloud-os-login:2.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-login/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java b/java-os-login/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java index 2737d918d26c..5da4fb0c6b6c 100644 --- a/java-os-login/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java +++ b/java-os-login/grpc-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceGrpc.java @@ -26,9 +26,6 @@ * public keys for logging into virtual machines on Google Cloud Platform. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/oslogin/v1/oslogin.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OsLoginServiceGrpc { @@ -722,8 +719,9 @@ protected OsLoginServiceBlockingV2Stub build( * */ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey createSshPublicKey( - com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.oslogin.v1.CreateSshPublicKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSshPublicKeyMethod(), getCallOptions(), request); } @@ -735,8 +733,9 @@ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey createSshPublic * */ public com.google.protobuf.Empty deletePosixAccount( - com.google.cloud.oslogin.v1.DeletePosixAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.oslogin.v1.DeletePosixAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePosixAccountMethod(), getCallOptions(), request); } @@ -748,8 +747,9 @@ public com.google.protobuf.Empty deletePosixAccount( * */ public com.google.protobuf.Empty deleteSshPublicKey( - com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSshPublicKeyMethod(), getCallOptions(), request); } @@ -762,8 +762,8 @@ public com.google.protobuf.Empty deleteSshPublicKey( * */ public com.google.cloud.oslogin.v1.LoginProfile getLoginProfile( - com.google.cloud.oslogin.v1.GetLoginProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.oslogin.v1.GetLoginProfileRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLoginProfileMethod(), getCallOptions(), request); } @@ -775,8 +775,8 @@ public com.google.cloud.oslogin.v1.LoginProfile getLoginProfile( * */ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey( - com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.oslogin.v1.GetSshPublicKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSshPublicKeyMethod(), getCallOptions(), request); } @@ -790,8 +790,9 @@ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey getSshPublicKey * */ public com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse importSshPublicKey( - com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportSshPublicKeyMethod(), getCallOptions(), request); } @@ -804,8 +805,9 @@ public com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse importSshPublicKey * */ public com.google.cloud.oslogin.common.OsLoginProto.SshPublicKey updateSshPublicKey( - com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSshPublicKeyMethod(), getCallOptions(), request); } } diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index cda24af4ed74..a4e39c7bb69d 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 0.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.40.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.41.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parallelstore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreGrpc.java b/java-parallelstore/grpc-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreGrpc.java index ab13ef4499e9..581c89e6e32e 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreGrpc.java +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreGrpc.java @@ -35,9 +35,6 @@ * * `projects/12345/locations/us-central1-c/instances/my-parallelstore-share` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/parallelstore/v1/parallelstore.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ParallelstoreGrpc { @@ -730,8 +727,9 @@ protected ParallelstoreBlockingV2Stub build( * */ public com.google.cloud.parallelstore.v1.ListInstancesResponse listInstances( - com.google.cloud.parallelstore.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -743,8 +741,9 @@ public com.google.cloud.parallelstore.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.parallelstore.v1.Instance getInstance( - com.google.cloud.parallelstore.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -756,8 +755,9 @@ public com.google.cloud.parallelstore.v1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.parallelstore.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -769,8 +769,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.parallelstore.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -782,8 +783,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.parallelstore.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -795,8 +797,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation importData( - com.google.cloud.parallelstore.v1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1.ImportDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } @@ -808,8 +811,9 @@ public com.google.longrunning.Operation importData( * */ public com.google.longrunning.Operation exportData( - com.google.cloud.parallelstore.v1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1.ExportDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } } diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreGrpc.java b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreGrpc.java index 25435673ab17..2987b258d4c7 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreGrpc.java +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreGrpc.java @@ -35,9 +35,6 @@ * * `projects/12345/locations/us-central1-c/instances/my-parallelstore-share` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/parallelstore/v1beta/parallelstore.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ParallelstoreGrpc { @@ -741,8 +738,9 @@ protected ParallelstoreBlockingV2Stub build( * */ public com.google.cloud.parallelstore.v1beta.ListInstancesResponse listInstances( - com.google.cloud.parallelstore.v1beta.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1beta.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -754,8 +752,9 @@ public com.google.cloud.parallelstore.v1beta.ListInstancesResponse listInstances * */ public com.google.cloud.parallelstore.v1beta.Instance getInstance( - com.google.cloud.parallelstore.v1beta.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1beta.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -767,8 +766,9 @@ public com.google.cloud.parallelstore.v1beta.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.parallelstore.v1beta.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1beta.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -780,8 +780,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.parallelstore.v1beta.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1beta.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -793,8 +794,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.parallelstore.v1beta.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1beta.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -806,8 +808,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation importData( - com.google.cloud.parallelstore.v1beta.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1beta.ImportDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } @@ -819,8 +822,9 @@ public com.google.longrunning.Operation importData( * */ public com.google.longrunning.Operation exportData( - com.google.cloud.parallelstore.v1beta.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parallelstore.v1beta.ExportDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } } diff --git a/java-parametermanager/README.md b/java-parametermanager/README.md index 8a1499a34641..113dd7e205e2 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parametermanager - 0.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.21.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.22.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parametermanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-parametermanager/grpc-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerGrpc.java b/java-parametermanager/grpc-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerGrpc.java index bf96f5930a93..b3fa824f17a6 100644 --- a/java-parametermanager/grpc-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerGrpc.java +++ b/java-parametermanager/grpc-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/parametermanager/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ParameterManagerGrpc { @@ -1042,8 +1039,9 @@ protected ParameterManagerBlockingV2Stub build( * */ public com.google.cloud.parametermanager.v1.ListParametersResponse listParameters( - com.google.cloud.parametermanager.v1.ListParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.ListParametersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListParametersMethod(), getCallOptions(), request); } @@ -1055,8 +1053,9 @@ public com.google.cloud.parametermanager.v1.ListParametersResponse listParameter * */ public com.google.cloud.parametermanager.v1.Parameter getParameter( - com.google.cloud.parametermanager.v1.GetParameterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.GetParameterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetParameterMethod(), getCallOptions(), request); } @@ -1068,8 +1067,9 @@ public com.google.cloud.parametermanager.v1.Parameter getParameter( * */ public com.google.cloud.parametermanager.v1.Parameter createParameter( - com.google.cloud.parametermanager.v1.CreateParameterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.CreateParameterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateParameterMethod(), getCallOptions(), request); } @@ -1081,8 +1081,9 @@ public com.google.cloud.parametermanager.v1.Parameter createParameter( * */ public com.google.cloud.parametermanager.v1.Parameter updateParameter( - com.google.cloud.parametermanager.v1.UpdateParameterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.UpdateParameterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateParameterMethod(), getCallOptions(), request); } @@ -1094,8 +1095,9 @@ public com.google.cloud.parametermanager.v1.Parameter updateParameter( * */ public com.google.protobuf.Empty deleteParameter( - com.google.cloud.parametermanager.v1.DeleteParameterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.DeleteParameterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteParameterMethod(), getCallOptions(), request); } @@ -1107,8 +1109,9 @@ public com.google.protobuf.Empty deleteParameter( * */ public com.google.cloud.parametermanager.v1.ListParameterVersionsResponse listParameterVersions( - com.google.cloud.parametermanager.v1.ListParameterVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.ListParameterVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListParameterVersionsMethod(), getCallOptions(), request); } @@ -1120,8 +1123,9 @@ public com.google.cloud.parametermanager.v1.ListParameterVersionsResponse listPa * */ public com.google.cloud.parametermanager.v1.ParameterVersion getParameterVersion( - com.google.cloud.parametermanager.v1.GetParameterVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.GetParameterVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetParameterVersionMethod(), getCallOptions(), request); } @@ -1134,8 +1138,9 @@ public com.google.cloud.parametermanager.v1.ParameterVersion getParameterVersion */ public com.google.cloud.parametermanager.v1.RenderParameterVersionResponse renderParameterVersion( - com.google.cloud.parametermanager.v1.RenderParameterVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.RenderParameterVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenderParameterVersionMethod(), getCallOptions(), request); } @@ -1147,8 +1152,9 @@ public com.google.cloud.parametermanager.v1.ParameterVersion getParameterVersion * */ public com.google.cloud.parametermanager.v1.ParameterVersion createParameterVersion( - com.google.cloud.parametermanager.v1.CreateParameterVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.CreateParameterVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateParameterVersionMethod(), getCallOptions(), request); } @@ -1160,8 +1166,9 @@ public com.google.cloud.parametermanager.v1.ParameterVersion createParameterVers * */ public com.google.cloud.parametermanager.v1.ParameterVersion updateParameterVersion( - com.google.cloud.parametermanager.v1.UpdateParameterVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.UpdateParameterVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateParameterVersionMethod(), getCallOptions(), request); } @@ -1173,8 +1180,9 @@ public com.google.cloud.parametermanager.v1.ParameterVersion updateParameterVers * */ public com.google.protobuf.Empty deleteParameterVersion( - com.google.cloud.parametermanager.v1.DeleteParameterVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.parametermanager.v1.DeleteParameterVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteParameterVersionMethod(), getCallOptions(), request); } } diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index 38286e587e92..5894363c7fef 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.108.0 + 0.109.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.108.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.109.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.108.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.109.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.108.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.109.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/src/main/java/com/google/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Grpc.java b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/src/main/java/com/google/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Grpc.java index b66f141c4fae..ed5e91e4f9e9 100644 --- a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/src/main/java/com/google/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Grpc.java +++ b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/src/main/java/com/google/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Grpc.java @@ -24,9 +24,6 @@ * Service to report phishing URIs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/phishingprotection/v1beta1/phishingprotection.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PhishingProtectionServiceV1Beta1Grpc { @@ -270,8 +267,9 @@ protected PhishingProtectionServiceV1Beta1BlockingV2Stub build( * */ public com.google.phishingprotection.v1beta1.ReportPhishingResponse reportPhishing( - com.google.phishingprotection.v1beta1.ReportPhishingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.phishingprotection.v1beta1.ReportPhishingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportPhishingMethod(), getCallOptions(), request); } } diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index e542e6278d6c..e1f0f03836f1 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policy-troubleshooter - 1.76.0 + 1.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.76.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java index 2ac8ce1def2f..524d0b7e53d8 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java @@ -25,9 +25,6 @@ * This service helps you troubleshoot access issues for Google Cloud resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/policytroubleshooter/v1/checker.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IamCheckerGrpc { @@ -254,8 +251,9 @@ protected IamCheckerBlockingV2Stub build( */ public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse troubleshootIamPolicy( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTroubleshootIamPolicyMethod(), getCallOptions(), request); } } diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterGrpc.java b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterGrpc.java index f8275eda2cbd..87d8443e4c46 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterGrpc.java +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterGrpc.java @@ -25,9 +25,6 @@ * This service helps you troubleshoot access issues for Google Cloud resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/policytroubleshooter/iam/v3/troubleshooter.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PolicyTroubleshooterGrpc { @@ -263,8 +260,9 @@ protected PolicyTroubleshooterBlockingV2Stub build( */ public com.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse troubleshootIamPolicy( - com.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTroubleshootIamPolicyMethod(), getCallOptions(), request); } } diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index a36e83dbef53..b1b600551b35 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.56.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.57.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policysimulator/grpc-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceGrpc.java b/java-policysimulator/grpc-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceGrpc.java index ba7e593816cc..7fd350c5082e 100644 --- a/java-policysimulator/grpc-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceGrpc.java +++ b/java-policysimulator/grpc-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceGrpc.java @@ -33,9 +33,6 @@ * determine these resources violate the newly set OrgPolicy. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/policysimulator/v1/orgpolicy.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OrgPolicyViolationsPreviewServiceGrpc { @@ -595,8 +592,9 @@ protected OrgPolicyViolationsPreviewServiceBlockingV2Stub build( */ public com.google.cloud.policysimulator.v1.ListOrgPolicyViolationsPreviewsResponse listOrgPolicyViolationsPreviews( - com.google.cloud.policysimulator.v1.ListOrgPolicyViolationsPreviewsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.policysimulator.v1.ListOrgPolicyViolationsPreviewsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrgPolicyViolationsPreviewsMethod(), getCallOptions(), request); } @@ -613,8 +611,9 @@ protected OrgPolicyViolationsPreviewServiceBlockingV2Stub build( */ public com.google.cloud.policysimulator.v1.OrgPolicyViolationsPreview getOrgPolicyViolationsPreview( - com.google.cloud.policysimulator.v1.GetOrgPolicyViolationsPreviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.policysimulator.v1.GetOrgPolicyViolationsPreviewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrgPolicyViolationsPreviewMethod(), getCallOptions(), request); } @@ -631,8 +630,9 @@ protected OrgPolicyViolationsPreviewServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createOrgPolicyViolationsPreview( - com.google.cloud.policysimulator.v1.CreateOrgPolicyViolationsPreviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.policysimulator.v1.CreateOrgPolicyViolationsPreviewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOrgPolicyViolationsPreviewMethod(), getCallOptions(), request); } @@ -647,8 +647,9 @@ public com.google.longrunning.Operation createOrgPolicyViolationsPreview( */ public com.google.cloud.policysimulator.v1.ListOrgPolicyViolationsResponse listOrgPolicyViolations( - com.google.cloud.policysimulator.v1.ListOrgPolicyViolationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.policysimulator.v1.ListOrgPolicyViolationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrgPolicyViolationsMethod(), getCallOptions(), request); } } diff --git a/java-policysimulator/grpc-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/SimulatorGrpc.java b/java-policysimulator/grpc-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/SimulatorGrpc.java index 0fdcbdff41a1..34a453abb6d1 100644 --- a/java-policysimulator/grpc-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/SimulatorGrpc.java +++ b/java-policysimulator/grpc-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/SimulatorGrpc.java @@ -33,9 +33,6 @@ * principals' access might change under the proposed policy. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/policysimulator/v1/simulator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SimulatorGrpc { @@ -434,8 +431,9 @@ protected SimulatorBlockingV2Stub build( * */ public com.google.cloud.policysimulator.v1.Replay getReplay( - com.google.cloud.policysimulator.v1.GetReplayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.policysimulator.v1.GetReplayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReplayMethod(), getCallOptions(), request); } @@ -448,8 +446,9 @@ public com.google.cloud.policysimulator.v1.Replay getReplay( * */ public com.google.longrunning.Operation createReplay( - com.google.cloud.policysimulator.v1.CreateReplayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.policysimulator.v1.CreateReplayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReplayMethod(), getCallOptions(), request); } @@ -462,8 +461,9 @@ public com.google.longrunning.Operation createReplay( * */ public com.google.cloud.policysimulator.v1.ListReplayResultsResponse listReplayResults( - com.google.cloud.policysimulator.v1.ListReplayResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.policysimulator.v1.ListReplayResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReplayResultsMethod(), getCallOptions(), request); } } diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index 4e1971fe1a30..5b08b6b87203 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-private-catalog - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.79.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.80.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogGrpc.java b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogGrpc.java index 0a1d0473d3b9..397c1a99a021 100644 --- a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogGrpc.java +++ b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogGrpc.java @@ -41,9 +41,6 @@ * [google.cloud.privatecatalogproducer.v1beta.Version][]. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/privatecatalog/v1beta1/private_catalog.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PrivateCatalogGrpc { @@ -491,8 +488,9 @@ protected PrivateCatalogBlockingV2Stub build( * */ public com.google.cloud.privatecatalog.v1beta1.SearchCatalogsResponse searchCatalogs( - com.google.cloud.privatecatalog.v1beta1.SearchCatalogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privatecatalog.v1beta1.SearchCatalogsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchCatalogsMethod(), getCallOptions(), request); } @@ -505,8 +503,9 @@ public com.google.cloud.privatecatalog.v1beta1.SearchCatalogsResponse searchCata * */ public com.google.cloud.privatecatalog.v1beta1.SearchProductsResponse searchProducts( - com.google.cloud.privatecatalog.v1beta1.SearchProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privatecatalog.v1beta1.SearchProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchProductsMethod(), getCallOptions(), request); } @@ -519,8 +518,9 @@ public com.google.cloud.privatecatalog.v1beta1.SearchProductsResponse searchProd * */ public com.google.cloud.privatecatalog.v1beta1.SearchVersionsResponse searchVersions( - com.google.cloud.privatecatalog.v1beta1.SearchVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privatecatalog.v1beta1.SearchVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchVersionsMethod(), getCallOptions(), request); } } diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index b52150392757..c3b7684d5245 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-privilegedaccessmanager - 0.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.31.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.32.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.32.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerGrpc.java b/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerGrpc.java index 3e728a3f8127..8192e070b171 100644 --- a/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerGrpc.java +++ b/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerGrpc.java @@ -38,9 +38,6 @@ * taken back after the requested duration is over. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/privilegedaccessmanager/v1/privilegedaccessmanager.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PrivilegedAccessManagerGrpc { @@ -1406,8 +1403,9 @@ protected PrivilegedAccessManagerBlockingV2Stub build( */ public com.google.cloud.privilegedaccessmanager.v1.CheckOnboardingStatusResponse checkOnboardingStatus( - com.google.cloud.privilegedaccessmanager.v1.CheckOnboardingStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.CheckOnboardingStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckOnboardingStatusMethod(), getCallOptions(), request); } @@ -1419,8 +1417,9 @@ protected PrivilegedAccessManagerBlockingV2Stub build( * */ public com.google.cloud.privilegedaccessmanager.v1.ListEntitlementsResponse listEntitlements( - com.google.cloud.privilegedaccessmanager.v1.ListEntitlementsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.ListEntitlementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEntitlementsMethod(), getCallOptions(), request); } @@ -1434,8 +1433,9 @@ public com.google.cloud.privilegedaccessmanager.v1.ListEntitlementsResponse list */ public com.google.cloud.privilegedaccessmanager.v1.SearchEntitlementsResponse searchEntitlements( - com.google.cloud.privilegedaccessmanager.v1.SearchEntitlementsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.SearchEntitlementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchEntitlementsMethod(), getCallOptions(), request); } @@ -1447,8 +1447,9 @@ public com.google.cloud.privilegedaccessmanager.v1.ListEntitlementsResponse list * */ public com.google.cloud.privilegedaccessmanager.v1.Entitlement getEntitlement( - com.google.cloud.privilegedaccessmanager.v1.GetEntitlementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.GetEntitlementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEntitlementMethod(), getCallOptions(), request); } @@ -1461,8 +1462,9 @@ public com.google.cloud.privilegedaccessmanager.v1.Entitlement getEntitlement( * */ public com.google.longrunning.Operation createEntitlement( - com.google.cloud.privilegedaccessmanager.v1.CreateEntitlementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.CreateEntitlementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEntitlementMethod(), getCallOptions(), request); } @@ -1476,8 +1478,9 @@ public com.google.longrunning.Operation createEntitlement( * */ public com.google.longrunning.Operation deleteEntitlement( - com.google.cloud.privilegedaccessmanager.v1.DeleteEntitlementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.DeleteEntitlementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEntitlementMethod(), getCallOptions(), request); } @@ -1505,8 +1508,9 @@ public com.google.longrunning.Operation deleteEntitlement( * */ public com.google.longrunning.Operation updateEntitlement( - com.google.cloud.privilegedaccessmanager.v1.UpdateEntitlementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.UpdateEntitlementRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEntitlementMethod(), getCallOptions(), request); } @@ -1518,8 +1522,9 @@ public com.google.longrunning.Operation updateEntitlement( * */ public com.google.cloud.privilegedaccessmanager.v1.ListGrantsResponse listGrants( - com.google.cloud.privilegedaccessmanager.v1.ListGrantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.ListGrantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGrantsMethod(), getCallOptions(), request); } @@ -1532,8 +1537,9 @@ public com.google.cloud.privilegedaccessmanager.v1.ListGrantsResponse listGrants * */ public com.google.cloud.privilegedaccessmanager.v1.SearchGrantsResponse searchGrants( - com.google.cloud.privilegedaccessmanager.v1.SearchGrantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.SearchGrantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchGrantsMethod(), getCallOptions(), request); } @@ -1545,8 +1551,9 @@ public com.google.cloud.privilegedaccessmanager.v1.SearchGrantsResponse searchGr * */ public com.google.cloud.privilegedaccessmanager.v1.Grant getGrant( - com.google.cloud.privilegedaccessmanager.v1.GetGrantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.GetGrantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGrantMethod(), getCallOptions(), request); } @@ -1559,8 +1566,9 @@ public com.google.cloud.privilegedaccessmanager.v1.Grant getGrant( * */ public com.google.cloud.privilegedaccessmanager.v1.Grant createGrant( - com.google.cloud.privilegedaccessmanager.v1.CreateGrantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.CreateGrantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGrantMethod(), getCallOptions(), request); } @@ -1574,8 +1582,9 @@ public com.google.cloud.privilegedaccessmanager.v1.Grant createGrant( * */ public com.google.cloud.privilegedaccessmanager.v1.Grant approveGrant( - com.google.cloud.privilegedaccessmanager.v1.ApproveGrantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.ApproveGrantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApproveGrantMethod(), getCallOptions(), request); } @@ -1589,8 +1598,9 @@ public com.google.cloud.privilegedaccessmanager.v1.Grant approveGrant( * */ public com.google.cloud.privilegedaccessmanager.v1.Grant denyGrant( - com.google.cloud.privilegedaccessmanager.v1.DenyGrantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.DenyGrantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDenyGrantMethod(), getCallOptions(), request); } @@ -1603,8 +1613,9 @@ public com.google.cloud.privilegedaccessmanager.v1.Grant denyGrant( * */ public com.google.longrunning.Operation revokeGrant( - com.google.cloud.privilegedaccessmanager.v1.RevokeGrantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.privilegedaccessmanager.v1.RevokeGrantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRevokeGrantMethod(), getCallOptions(), request); } } diff --git a/java-profiler/README.md b/java-profiler/README.md index ea5a2707073e..c4f91397abab 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.77.0' +implementation 'com.google.cloud:google-cloud-profiler:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceGrpc.java b/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceGrpc.java index fad097273b99..24bcaffbf030 100644 --- a/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceGrpc.java +++ b/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceGrpc.java @@ -25,9 +25,6 @@ * out of Google Cloud. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/cloudprofiler/v2/profiler.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExportServiceGrpc { @@ -249,8 +246,9 @@ protected ExportServiceBlockingV2Stub build( * */ public com.google.devtools.cloudprofiler.v2.ListProfilesResponse listProfiles( - com.google.devtools.cloudprofiler.v2.ListProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.cloudprofiler.v2.ListProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProfilesMethod(), getCallOptions(), request); } } diff --git a/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java b/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java index 5a522d02c26b..3b4a6e024996 100644 --- a/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java +++ b/java-profiler/grpc-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceGrpc.java @@ -27,9 +27,6 @@ * agents only.__ * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/cloudprofiler/v2/profiler.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProfilerServiceGrpc { @@ -483,8 +480,9 @@ protected ProfilerServiceBlockingV2Stub build( * */ public com.google.devtools.cloudprofiler.v2.Profile createProfile( - com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.cloudprofiler.v2.CreateProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProfileMethod(), getCallOptions(), request); } @@ -502,8 +500,9 @@ public com.google.devtools.cloudprofiler.v2.Profile createProfile( * */ public com.google.devtools.cloudprofiler.v2.Profile createOfflineProfile( - com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOfflineProfileMethod(), getCallOptions(), request); } @@ -522,8 +521,9 @@ public com.google.devtools.cloudprofiler.v2.Profile createOfflineProfile( * */ public com.google.devtools.cloudprofiler.v2.Profile updateProfile( - com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.cloudprofiler.v2.UpdateProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProfileMethod(), getCallOptions(), request); } } diff --git a/java-publicca/README.md b/java-publicca/README.md index 4f9311b4e167..9548a5128150 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.74.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.74.0' +implementation 'com.google.cloud:google-cloud-publicca:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.75.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-publicca/grpc-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceGrpc.java b/java-publicca/grpc-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceGrpc.java index eae8d7b24fd8..af14476ca405 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceGrpc.java +++ b/java-publicca/grpc-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceGrpc.java @@ -26,9 +26,6 @@ * the public certificate authority service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/security/publicca/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PublicCertificateAuthorityServiceGrpc { @@ -271,8 +268,9 @@ protected PublicCertificateAuthorityServiceBlockingV2Stub build( * */ public com.google.cloud.security.publicca.v1.ExternalAccountKey createExternalAccountKey( - com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExternalAccountKeyMethod(), getCallOptions(), request); } } diff --git a/java-publicca/grpc-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceGrpc.java b/java-publicca/grpc-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceGrpc.java index 7f47ae8dad6c..3c31a8a512c2 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceGrpc.java +++ b/java-publicca/grpc-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceGrpc.java @@ -26,9 +26,6 @@ * the public certificate authority service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/security/publicca/v1beta1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PublicCertificateAuthorityServiceGrpc { @@ -272,8 +269,9 @@ protected PublicCertificateAuthorityServiceBlockingV2Stub build( * */ public com.google.cloud.security.publicca.v1beta1.ExternalAccountKey createExternalAccountKey( - com.google.cloud.security.publicca.v1beta1.CreateExternalAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.publicca.v1beta1.CreateExternalAccountKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExternalAccountKeyMethod(), getCallOptions(), request); } } diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 89867119735f..fe48e8cff5ca 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.60.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.61.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.61.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentGrpc.java b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentGrpc.java index 26999be0e871..51d368a38ac3 100644 --- a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentGrpc.java +++ b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/rapidmigrationassessment/v1/rapidmigrationassessment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RapidMigrationAssessmentGrpc { @@ -955,8 +952,9 @@ protected RapidMigrationAssessmentBlockingV2Stub build( * */ public com.google.longrunning.Operation createCollector( - com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCollectorMethod(), getCallOptions(), request); } @@ -968,8 +966,9 @@ public com.google.longrunning.Operation createCollector( * */ public com.google.longrunning.Operation createAnnotation( - com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAnnotationMethod(), getCallOptions(), request); } @@ -981,8 +980,9 @@ public com.google.longrunning.Operation createAnnotation( * */ public com.google.cloud.rapidmigrationassessment.v1.Annotation getAnnotation( - com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnnotationMethod(), getCallOptions(), request); } @@ -994,8 +994,9 @@ public com.google.cloud.rapidmigrationassessment.v1.Annotation getAnnotation( * */ public com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse listCollectors( - com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCollectorsMethod(), getCallOptions(), request); } @@ -1007,8 +1008,9 @@ public com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse listC * */ public com.google.cloud.rapidmigrationassessment.v1.Collector getCollector( - com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCollectorMethod(), getCallOptions(), request); } @@ -1020,8 +1022,9 @@ public com.google.cloud.rapidmigrationassessment.v1.Collector getCollector( * */ public com.google.longrunning.Operation updateCollector( - com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCollectorMethod(), getCallOptions(), request); } @@ -1034,8 +1037,9 @@ public com.google.longrunning.Operation updateCollector( * */ public com.google.longrunning.Operation deleteCollector( - com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCollectorMethod(), getCallOptions(), request); } @@ -1047,8 +1051,9 @@ public com.google.longrunning.Operation deleteCollector( * */ public com.google.longrunning.Operation resumeCollector( - com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeCollectorMethod(), getCallOptions(), request); } @@ -1060,8 +1065,9 @@ public com.google.longrunning.Operation resumeCollector( * */ public com.google.longrunning.Operation registerCollector( - com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRegisterCollectorMethod(), getCallOptions(), request); } @@ -1073,8 +1079,9 @@ public com.google.longrunning.Operation registerCollector( * */ public com.google.longrunning.Operation pauseCollector( - com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseCollectorMethod(), getCallOptions(), request); } } diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 310164766301..b2032054d9ae 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.74.0 + 3.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.74.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.75.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java index 0cee04c9c472..77cfcb435c7b 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java @@ -24,9 +24,6 @@ * Service to determine the likelihood an event is legitimate. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RecaptchaEnterpriseServiceGrpc { @@ -1975,8 +1972,9 @@ protected RecaptchaEnterpriseServiceBlockingV2Stub build( * */ public com.google.recaptchaenterprise.v1.Assessment createAssessment( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAssessmentMethod(), getCallOptions(), request); } @@ -1989,8 +1987,9 @@ public com.google.recaptchaenterprise.v1.Assessment createAssessment( * */ public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse annotateAssessment( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateAssessmentMethod(), getCallOptions(), request); } @@ -2002,8 +2001,8 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse annotateAsse * */ public com.google.recaptchaenterprise.v1.Key createKey( - com.google.recaptchaenterprise.v1.CreateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.CreateKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateKeyMethod(), getCallOptions(), request); } @@ -2015,8 +2014,8 @@ public com.google.recaptchaenterprise.v1.Key createKey( * */ public com.google.recaptchaenterprise.v1.ListKeysResponse listKeys( - com.google.recaptchaenterprise.v1.ListKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.ListKeysRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListKeysMethod(), getCallOptions(), request); } @@ -2031,8 +2030,9 @@ public com.google.recaptchaenterprise.v1.ListKeysResponse listKeys( */ public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse retrieveLegacySecretKey( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveLegacySecretKeyMethod(), getCallOptions(), request); } @@ -2044,8 +2044,8 @@ public com.google.recaptchaenterprise.v1.ListKeysResponse listKeys( * */ public com.google.recaptchaenterprise.v1.Key getKey( - com.google.recaptchaenterprise.v1.GetKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.GetKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetKeyMethod(), getCallOptions(), request); } @@ -2057,8 +2057,8 @@ public com.google.recaptchaenterprise.v1.Key getKey( * */ public com.google.recaptchaenterprise.v1.Key updateKey( - com.google.recaptchaenterprise.v1.UpdateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.UpdateKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateKeyMethod(), getCallOptions(), request); } @@ -2070,8 +2070,8 @@ public com.google.recaptchaenterprise.v1.Key updateKey( * */ public com.google.protobuf.Empty deleteKey( - com.google.recaptchaenterprise.v1.DeleteKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.DeleteKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteKeyMethod(), getCallOptions(), request); } @@ -2088,8 +2088,9 @@ public com.google.protobuf.Empty deleteKey( * */ public com.google.recaptchaenterprise.v1.Key migrateKey( - com.google.recaptchaenterprise.v1.MigrateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.MigrateKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMigrateKeyMethod(), getCallOptions(), request); } @@ -2104,8 +2105,9 @@ public com.google.recaptchaenterprise.v1.Key migrateKey( * */ public com.google.recaptchaenterprise.v1.AddIpOverrideResponse addIpOverride( - com.google.recaptchaenterprise.v1.AddIpOverrideRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.AddIpOverrideRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddIpOverrideMethod(), getCallOptions(), request); } @@ -2121,8 +2123,9 @@ public com.google.recaptchaenterprise.v1.AddIpOverrideResponse addIpOverride( * */ public com.google.recaptchaenterprise.v1.RemoveIpOverrideResponse removeIpOverride( - com.google.recaptchaenterprise.v1.RemoveIpOverrideRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.RemoveIpOverrideRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveIpOverrideMethod(), getCallOptions(), request); } @@ -2134,8 +2137,9 @@ public com.google.recaptchaenterprise.v1.RemoveIpOverrideResponse removeIpOverri * */ public com.google.recaptchaenterprise.v1.ListIpOverridesResponse listIpOverrides( - com.google.recaptchaenterprise.v1.ListIpOverridesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.ListIpOverridesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIpOverridesMethod(), getCallOptions(), request); } @@ -2148,8 +2152,9 @@ public com.google.recaptchaenterprise.v1.ListIpOverridesResponse listIpOverrides * */ public com.google.recaptchaenterprise.v1.Metrics getMetrics( - com.google.recaptchaenterprise.v1.GetMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.GetMetricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMetricsMethod(), getCallOptions(), request); } @@ -2163,8 +2168,9 @@ public com.google.recaptchaenterprise.v1.Metrics getMetrics( * */ public com.google.recaptchaenterprise.v1.FirewallPolicy createFirewallPolicy( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFirewallPolicyMethod(), getCallOptions(), request); } @@ -2176,8 +2182,9 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy createFirewallPolicy( * */ public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse listFirewallPolicies( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFirewallPoliciesMethod(), getCallOptions(), request); } @@ -2189,8 +2196,9 @@ public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse listFirewa * */ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFirewallPolicyMethod(), getCallOptions(), request); } @@ -2202,8 +2210,9 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy( * */ public com.google.recaptchaenterprise.v1.FirewallPolicy updateFirewallPolicy( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFirewallPolicyMethod(), getCallOptions(), request); } @@ -2215,8 +2224,9 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy updateFirewallPolicy( * */ public com.google.protobuf.Empty deleteFirewallPolicy( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFirewallPolicyMethod(), getCallOptions(), request); } @@ -2229,8 +2239,9 @@ public com.google.protobuf.Empty deleteFirewallPolicy( */ public com.google.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse reorderFirewallPolicies( - com.google.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReorderFirewallPoliciesMethod(), getCallOptions(), request); } @@ -2243,8 +2254,9 @@ public com.google.protobuf.Empty deleteFirewallPolicy( */ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse listRelatedAccountGroups( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRelatedAccountGroupsMethod(), getCallOptions(), request); } @@ -2257,8 +2269,9 @@ public com.google.protobuf.Empty deleteFirewallPolicy( */ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse listRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); } @@ -2271,8 +2284,9 @@ public com.google.protobuf.Empty deleteFirewallPolicy( */ public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse searchRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); } } diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java index 63691d35dd75..105aac7f9b4c 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java @@ -24,9 +24,6 @@ * Service to determine the likelihood an event is legitimate. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RecaptchaEnterpriseServiceV1Beta1Grpc { @@ -342,8 +339,9 @@ protected RecaptchaEnterpriseServiceV1Beta1BlockingV2Stub build( * */ public com.google.recaptchaenterprise.v1beta1.Assessment createAssessment( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAssessmentMethod(), getCallOptions(), request); } @@ -356,8 +354,9 @@ public com.google.recaptchaenterprise.v1beta1.Assessment createAssessment( * */ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse annotateAssessment( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateAssessmentMethod(), getCallOptions(), request); } } diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index bee9825ee47e..b2bc1020f175 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -24,7 +24,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -46,20 +46,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.84.0 + 0.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.84.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.85.0" ``` ## Authentication @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.85.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java index 1e9c73efc5f2..ec5bb1eac798 100644 --- a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java +++ b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ingesting catalog information of the customer's website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommendationengine/v1beta1/catalog_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CatalogServiceGrpc { @@ -643,8 +640,9 @@ protected CatalogServiceBlockingV2Stub build( * */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem createCatalogItem( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCatalogItemMethod(), getCallOptions(), request); } @@ -656,8 +654,9 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem createCatalogIt * */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCatalogItemMethod(), getCallOptions(), request); } @@ -669,8 +668,9 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem( * */ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse listCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCatalogItemsMethod(), getCallOptions(), request); } @@ -683,8 +683,9 @@ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse li * */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem updateCatalogItem( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCatalogItemMethod(), getCallOptions(), request); } @@ -696,8 +697,9 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem updateCatalogIt * */ public com.google.protobuf.Empty deleteCatalogItem( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCatalogItemMethod(), getCallOptions(), request); } @@ -713,8 +715,9 @@ public com.google.protobuf.Empty deleteCatalogItem( * */ public com.google.longrunning.Operation importCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportCatalogItemsMethod(), getCallOptions(), request); } } diff --git a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java index 5e38e7a61552..85bf0944b5fa 100644 --- a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java +++ b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java @@ -28,11 +28,6 @@ * key. You can register up to 20 API keys per project. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = - "Source:" - + " google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PredictionApiKeyRegistryGrpc { @@ -468,8 +463,9 @@ protected PredictionApiKeyRegistryBlockingV2Stub build( public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration createPredictionApiKeyRegistration( com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePredictionApiKeyRegistrationMethod(), getCallOptions(), request); } @@ -483,8 +479,9 @@ protected PredictionApiKeyRegistryBlockingV2Stub build( public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse listPredictionApiKeyRegistrations( com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPredictionApiKeyRegistrationsMethod(), getCallOptions(), request); } @@ -497,8 +494,9 @@ protected PredictionApiKeyRegistryBlockingV2Stub build( */ public com.google.protobuf.Empty deletePredictionApiKeyRegistration( com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePredictionApiKeyRegistrationMethod(), getCallOptions(), request); } } diff --git a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java index 8008afc4a4ac..c1736df43a3a 100644 --- a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java +++ b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for making recommendation prediction. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommendationengine/v1beta1/prediction_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PredictionServiceGrpc { @@ -248,8 +245,9 @@ protected PredictionServiceBlockingV2Stub build( * */ public com.google.cloud.recommendationengine.v1beta1.PredictResponse predict( - com.google.cloud.recommendationengine.v1beta1.PredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.PredictRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } } diff --git a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java index 5ea242036835..82b7e2285a1f 100644 --- a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java +++ b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ingesting end user actions on the customer website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommendationengine/v1beta1/user_event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserEventServiceGrpc { @@ -573,8 +570,9 @@ protected UserEventServiceBlockingV2Stub build( * */ public com.google.cloud.recommendationengine.v1beta1.UserEvent writeUserEvent( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteUserEventMethod(), getCallOptions(), request); } @@ -589,8 +587,9 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent writeUserEvent( * */ public com.google.api.HttpBody collectUserEvent( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } @@ -602,8 +601,9 @@ public com.google.api.HttpBody collectUserEvent( * */ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse listUserEvents( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUserEventsMethod(), getCallOptions(), request); } @@ -618,8 +618,9 @@ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse list * */ public com.google.longrunning.Operation purgeUserEvents( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); } @@ -636,8 +637,9 @@ public com.google.longrunning.Operation purgeUserEvents( * */ public com.google.longrunning.Operation importUserEvents( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportUserEventsMethod(), getCallOptions(), request); } } diff --git a/java-recommender/README.md b/java-recommender/README.md index 36c80eb04c7b..4ea9a598347a 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.79.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.79.0' +implementation 'com.google.cloud:google-cloud-recommender:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommender/grpc-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderGrpc.java b/java-recommender/grpc-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderGrpc.java index 48ba9256a3f0..58361d0c265b 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderGrpc.java +++ b/java-recommender/grpc-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderGrpc.java @@ -27,9 +27,6 @@ * based on analysis of user resources, configuration and monitoring metrics. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommender/v1/recommender_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RecommenderGrpc { @@ -1298,8 +1295,9 @@ protected RecommenderBlockingV2Stub build( * */ public com.google.cloud.recommender.v1.ListInsightsResponse listInsights( - com.google.cloud.recommender.v1.ListInsightsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.ListInsightsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInsightsMethod(), getCallOptions(), request); } @@ -1312,8 +1310,8 @@ public com.google.cloud.recommender.v1.ListInsightsResponse listInsights( * */ public com.google.cloud.recommender.v1.Insight getInsight( - com.google.cloud.recommender.v1.GetInsightRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.GetInsightRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInsightMethod(), getCallOptions(), request); } @@ -1329,8 +1327,9 @@ public com.google.cloud.recommender.v1.Insight getInsight( * */ public com.google.cloud.recommender.v1.Insight markInsightAccepted( - com.google.cloud.recommender.v1.MarkInsightAcceptedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.MarkInsightAcceptedRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMarkInsightAcceptedMethod(), getCallOptions(), request); } @@ -1343,8 +1342,9 @@ public com.google.cloud.recommender.v1.Insight markInsightAccepted( * */ public com.google.cloud.recommender.v1.ListRecommendationsResponse listRecommendations( - com.google.cloud.recommender.v1.ListRecommendationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.ListRecommendationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRecommendationsMethod(), getCallOptions(), request); } @@ -1357,8 +1357,9 @@ public com.google.cloud.recommender.v1.ListRecommendationsResponse listRecommend * */ public com.google.cloud.recommender.v1.Recommendation getRecommendation( - com.google.cloud.recommender.v1.GetRecommendationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.GetRecommendationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRecommendationMethod(), getCallOptions(), request); } @@ -1376,8 +1377,9 @@ public com.google.cloud.recommender.v1.Recommendation getRecommendation( * */ public com.google.cloud.recommender.v1.Recommendation markRecommendationDismissed( - com.google.cloud.recommender.v1.MarkRecommendationDismissedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.MarkRecommendationDismissedRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMarkRecommendationDismissedMethod(), getCallOptions(), request); } @@ -1396,8 +1398,9 @@ public com.google.cloud.recommender.v1.Recommendation markRecommendationDismisse * */ public com.google.cloud.recommender.v1.Recommendation markRecommendationClaimed( - com.google.cloud.recommender.v1.MarkRecommendationClaimedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.MarkRecommendationClaimedRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMarkRecommendationClaimedMethod(), getCallOptions(), request); } @@ -1417,8 +1420,9 @@ public com.google.cloud.recommender.v1.Recommendation markRecommendationClaimed( * */ public com.google.cloud.recommender.v1.Recommendation markRecommendationSucceeded( - com.google.cloud.recommender.v1.MarkRecommendationSucceededRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.MarkRecommendationSucceededRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMarkRecommendationSucceededMethod(), getCallOptions(), request); } @@ -1438,8 +1442,9 @@ public com.google.cloud.recommender.v1.Recommendation markRecommendationSucceede * */ public com.google.cloud.recommender.v1.Recommendation markRecommendationFailed( - com.google.cloud.recommender.v1.MarkRecommendationFailedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.MarkRecommendationFailedRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMarkRecommendationFailedMethod(), getCallOptions(), request); } @@ -1452,8 +1457,9 @@ public com.google.cloud.recommender.v1.Recommendation markRecommendationFailed( * */ public com.google.cloud.recommender.v1.RecommenderConfig getRecommenderConfig( - com.google.cloud.recommender.v1.GetRecommenderConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.GetRecommenderConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRecommenderConfigMethod(), getCallOptions(), request); } @@ -1466,8 +1472,9 @@ public com.google.cloud.recommender.v1.RecommenderConfig getRecommenderConfig( * */ public com.google.cloud.recommender.v1.RecommenderConfig updateRecommenderConfig( - com.google.cloud.recommender.v1.UpdateRecommenderConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.UpdateRecommenderConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRecommenderConfigMethod(), getCallOptions(), request); } @@ -1480,8 +1487,9 @@ public com.google.cloud.recommender.v1.RecommenderConfig updateRecommenderConfig * */ public com.google.cloud.recommender.v1.InsightTypeConfig getInsightTypeConfig( - com.google.cloud.recommender.v1.GetInsightTypeConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.GetInsightTypeConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInsightTypeConfigMethod(), getCallOptions(), request); } @@ -1494,8 +1502,9 @@ public com.google.cloud.recommender.v1.InsightTypeConfig getInsightTypeConfig( * */ public com.google.cloud.recommender.v1.InsightTypeConfig updateInsightTypeConfig( - com.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInsightTypeConfigMethod(), getCallOptions(), request); } } diff --git a/java-recommender/grpc-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderGrpc.java b/java-recommender/grpc-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderGrpc.java index 8f39fa9d460c..06bdd6ac1e5e 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderGrpc.java +++ b/java-recommender/grpc-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderGrpc.java @@ -27,9 +27,6 @@ * based on analysis of user resources, configuration and monitoring metrics. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommender/v1beta1/recommender_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RecommenderGrpc { @@ -1376,8 +1373,9 @@ protected RecommenderBlockingV2Stub build( * */ public com.google.cloud.recommender.v1beta1.ListInsightsResponse listInsights( - com.google.cloud.recommender.v1beta1.ListInsightsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.ListInsightsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInsightsMethod(), getCallOptions(), request); } @@ -1390,8 +1388,9 @@ public com.google.cloud.recommender.v1beta1.ListInsightsResponse listInsights( * */ public com.google.cloud.recommender.v1beta1.Insight getInsight( - com.google.cloud.recommender.v1beta1.GetInsightRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.GetInsightRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInsightMethod(), getCallOptions(), request); } @@ -1407,8 +1406,9 @@ public com.google.cloud.recommender.v1beta1.Insight getInsight( * */ public com.google.cloud.recommender.v1beta1.Insight markInsightAccepted( - com.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMarkInsightAcceptedMethod(), getCallOptions(), request); } @@ -1421,8 +1421,9 @@ public com.google.cloud.recommender.v1beta1.Insight markInsightAccepted( * */ public com.google.cloud.recommender.v1beta1.ListRecommendationsResponse listRecommendations( - com.google.cloud.recommender.v1beta1.ListRecommendationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.ListRecommendationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRecommendationsMethod(), getCallOptions(), request); } @@ -1435,8 +1436,9 @@ public com.google.cloud.recommender.v1beta1.ListRecommendationsResponse listReco * */ public com.google.cloud.recommender.v1beta1.Recommendation getRecommendation( - com.google.cloud.recommender.v1beta1.GetRecommendationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.GetRecommendationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRecommendationMethod(), getCallOptions(), request); } @@ -1455,8 +1457,9 @@ public com.google.cloud.recommender.v1beta1.Recommendation getRecommendation( * */ public com.google.cloud.recommender.v1beta1.Recommendation markRecommendationClaimed( - com.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMarkRecommendationClaimedMethod(), getCallOptions(), request); } @@ -1476,8 +1479,9 @@ public com.google.cloud.recommender.v1beta1.Recommendation markRecommendationCla * */ public com.google.cloud.recommender.v1beta1.Recommendation markRecommendationSucceeded( - com.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMarkRecommendationSucceededMethod(), getCallOptions(), request); } @@ -1497,8 +1501,9 @@ public com.google.cloud.recommender.v1beta1.Recommendation markRecommendationSuc * */ public com.google.cloud.recommender.v1beta1.Recommendation markRecommendationFailed( - com.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMarkRecommendationFailedMethod(), getCallOptions(), request); } @@ -1511,8 +1516,9 @@ public com.google.cloud.recommender.v1beta1.Recommendation markRecommendationFai * */ public com.google.cloud.recommender.v1beta1.RecommenderConfig getRecommenderConfig( - com.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRecommenderConfigMethod(), getCallOptions(), request); } @@ -1525,8 +1531,9 @@ public com.google.cloud.recommender.v1beta1.RecommenderConfig getRecommenderConf * */ public com.google.cloud.recommender.v1beta1.RecommenderConfig updateRecommenderConfig( - com.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRecommenderConfigMethod(), getCallOptions(), request); } @@ -1539,8 +1546,9 @@ public com.google.cloud.recommender.v1beta1.RecommenderConfig updateRecommenderC * */ public com.google.cloud.recommender.v1beta1.InsightTypeConfig getInsightTypeConfig( - com.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInsightTypeConfigMethod(), getCallOptions(), request); } @@ -1553,8 +1561,9 @@ public com.google.cloud.recommender.v1beta1.InsightTypeConfig getInsightTypeConf * */ public com.google.cloud.recommender.v1beta1.InsightTypeConfig updateInsightTypeConfig( - com.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInsightTypeConfigMethod(), getCallOptions(), request); } @@ -1567,8 +1576,9 @@ public com.google.cloud.recommender.v1beta1.InsightTypeConfig updateInsightTypeC * */ public com.google.cloud.recommender.v1beta1.ListRecommendersResponse listRecommenders( - com.google.cloud.recommender.v1beta1.ListRecommendersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.ListRecommendersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRecommendersMethod(), getCallOptions(), request); } @@ -1581,8 +1591,9 @@ public com.google.cloud.recommender.v1beta1.ListRecommendersResponse listRecomme * */ public com.google.cloud.recommender.v1beta1.ListInsightTypesResponse listInsightTypes( - com.google.cloud.recommender.v1beta1.ListInsightTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.recommender.v1beta1.ListInsightTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInsightTypesMethod(), getCallOptions(), request); } } diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index c92fa7653790..5cdb7ed9aaab 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis-cluster - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.49.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.50.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java index b4a92988231a..8ee3f1915077 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java @@ -35,9 +35,6 @@ * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudRedisClusterGrpc { @@ -1359,8 +1356,9 @@ protected CloudRedisClusterBlockingV2Stub build( * */ public com.google.cloud.redis.cluster.v1.ListClustersResponse listClusters( - com.google.cloud.redis.cluster.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.ListClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -1372,8 +1370,9 @@ public com.google.cloud.redis.cluster.v1.ListClustersResponse listClusters( * */ public com.google.cloud.redis.cluster.v1.Cluster getCluster( - com.google.cloud.redis.cluster.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.GetClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -1388,8 +1387,9 @@ public com.google.cloud.redis.cluster.v1.Cluster getCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.redis.cluster.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.UpdateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -1402,8 +1402,9 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.redis.cluster.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.DeleteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -1421,8 +1422,9 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.redis.cluster.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.CreateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -1434,8 +1436,9 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.cloud.redis.cluster.v1.CertificateAuthority getClusterCertificateAuthority( - com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterCertificateAuthorityMethod(), getCallOptions(), request); } @@ -1447,8 +1450,9 @@ public com.google.cloud.redis.cluster.v1.CertificateAuthority getClusterCertific * */ public com.google.longrunning.Operation rescheduleClusterMaintenance( - com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRescheduleClusterMaintenanceMethod(), getCallOptions(), request); } @@ -1463,8 +1467,9 @@ public com.google.longrunning.Operation rescheduleClusterMaintenance( * */ public com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse listBackupCollections( - com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupCollectionsMethod(), getCallOptions(), request); } @@ -1476,8 +1481,9 @@ public com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse listBacku * */ public com.google.cloud.redis.cluster.v1.BackupCollection getBackupCollection( - com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupCollectionMethod(), getCallOptions(), request); } @@ -1489,8 +1495,9 @@ public com.google.cloud.redis.cluster.v1.BackupCollection getBackupCollection( * */ public com.google.cloud.redis.cluster.v1.ListBackupsResponse listBackups( - com.google.cloud.redis.cluster.v1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.ListBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -1502,8 +1509,8 @@ public com.google.cloud.redis.cluster.v1.ListBackupsResponse listBackups( * */ public com.google.cloud.redis.cluster.v1.Backup getBackup( - com.google.cloud.redis.cluster.v1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -1515,8 +1522,9 @@ public com.google.cloud.redis.cluster.v1.Backup getBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.redis.cluster.v1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.DeleteBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -1528,8 +1536,9 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.longrunning.Operation exportBackup( - com.google.cloud.redis.cluster.v1.ExportBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.ExportBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportBackupMethod(), getCallOptions(), request); } @@ -1552,8 +1561,9 @@ public com.google.longrunning.Operation exportBackup( * */ public com.google.longrunning.Operation backupCluster( - com.google.cloud.redis.cluster.v1.BackupClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1.BackupClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBackupClusterMethod(), getCallOptions(), request); } } diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java index 100145ea65aa..d3ef5e461f46 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java @@ -35,9 +35,6 @@ * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudRedisClusterGrpc { @@ -1382,8 +1379,9 @@ protected CloudRedisClusterBlockingV2Stub build( * */ public com.google.cloud.redis.cluster.v1beta1.ListClustersResponse listClusters( - com.google.cloud.redis.cluster.v1beta1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.ListClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -1395,8 +1393,9 @@ public com.google.cloud.redis.cluster.v1beta1.ListClustersResponse listClusters( * */ public com.google.cloud.redis.cluster.v1beta1.Cluster getCluster( - com.google.cloud.redis.cluster.v1beta1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.GetClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -1411,8 +1410,9 @@ public com.google.cloud.redis.cluster.v1beta1.Cluster getCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -1425,8 +1425,9 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -1444,8 +1445,9 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -1458,8 +1460,9 @@ public com.google.longrunning.Operation createCluster( */ public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority getClusterCertificateAuthority( - com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterCertificateAuthorityMethod(), getCallOptions(), request); } @@ -1471,8 +1474,9 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.longrunning.Operation rescheduleClusterMaintenance( - com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRescheduleClusterMaintenanceMethod(), getCallOptions(), request); } @@ -1488,8 +1492,9 @@ public com.google.longrunning.Operation rescheduleClusterMaintenance( */ public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse listBackupCollections( - com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupCollectionsMethod(), getCallOptions(), request); } @@ -1501,8 +1506,9 @@ public com.google.longrunning.Operation rescheduleClusterMaintenance( * */ public com.google.cloud.redis.cluster.v1beta1.BackupCollection getBackupCollection( - com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupCollectionMethod(), getCallOptions(), request); } @@ -1514,8 +1520,9 @@ public com.google.cloud.redis.cluster.v1beta1.BackupCollection getBackupCollecti * */ public com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse listBackups( - com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } @@ -1527,8 +1534,9 @@ public com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse listBackups( * */ public com.google.cloud.redis.cluster.v1beta1.Backup getBackup( - com.google.cloud.redis.cluster.v1beta1.GetBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } @@ -1540,8 +1548,9 @@ public com.google.cloud.redis.cluster.v1beta1.Backup getBackup( * */ public com.google.longrunning.Operation deleteBackup( - com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } @@ -1553,8 +1562,9 @@ public com.google.longrunning.Operation deleteBackup( * */ public com.google.longrunning.Operation exportBackup( - com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportBackupMethod(), getCallOptions(), request); } @@ -1577,8 +1587,9 @@ public com.google.longrunning.Operation exportBackup( * */ public com.google.longrunning.Operation backupCluster( - com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBackupClusterMethod(), getCallOptions(), request); } } diff --git a/java-redis/README.md b/java-redis/README.md index 3446fa741d1a..d2984fa18ac8 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.80.0 + 2.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.80.0' +implementation 'com.google.cloud:google-cloud-redis:2.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java b/java-redis/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java index e87e470f2bf6..2a10282317b7 100644 --- a/java-redis/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java +++ b/java-redis/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java @@ -35,9 +35,6 @@ * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/redis/v1/cloud_redis.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudRedisGrpc { @@ -1082,8 +1079,8 @@ protected CloudRedisBlockingV2Stub build( * */ public com.google.cloud.redis.v1.ListInstancesResponse listInstances( - com.google.cloud.redis.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.ListInstancesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -1095,8 +1092,8 @@ public com.google.cloud.redis.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.redis.v1.Instance getInstance( - com.google.cloud.redis.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -1110,8 +1107,9 @@ public com.google.cloud.redis.v1.Instance getInstance( * */ public com.google.cloud.redis.v1.InstanceAuthString getInstanceAuthString( - com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.GetInstanceAuthStringRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceAuthStringMethod(), getCallOptions(), request); } @@ -1131,8 +1129,8 @@ public com.google.cloud.redis.v1.InstanceAuthString getInstanceAuthString( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.redis.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.CreateInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -1147,8 +1145,8 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.redis.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.UpdateInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -1161,8 +1159,8 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation upgradeInstance( - com.google.cloud.redis.v1.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.UpgradeInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } @@ -1179,8 +1177,8 @@ public com.google.longrunning.Operation upgradeInstance( * */ public com.google.longrunning.Operation importInstance( - com.google.cloud.redis.v1.ImportInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.ImportInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportInstanceMethod(), getCallOptions(), request); } @@ -1195,8 +1193,8 @@ public com.google.longrunning.Operation importInstance( * */ public com.google.longrunning.Operation exportInstance( - com.google.cloud.redis.v1.ExportInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.ExportInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportInstanceMethod(), getCallOptions(), request); } @@ -1209,8 +1207,8 @@ public com.google.longrunning.Operation exportInstance( * */ public com.google.longrunning.Operation failoverInstance( - com.google.cloud.redis.v1.FailoverInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.FailoverInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFailoverInstanceMethod(), getCallOptions(), request); } @@ -1223,8 +1221,8 @@ public com.google.longrunning.Operation failoverInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.redis.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.DeleteInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -1237,8 +1235,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation rescheduleMaintenance( - com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1.RescheduleMaintenanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); } } diff --git a/java-redis/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java b/java-redis/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java index 792a49970cfb..de375e283aab 100644 --- a/java-redis/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java +++ b/java-redis/grpc-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisGrpc.java @@ -35,9 +35,6 @@ * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/redis/v1beta1/cloud_redis.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudRedisGrpc { @@ -1097,8 +1094,9 @@ protected CloudRedisBlockingV2Stub build( * */ public com.google.cloud.redis.v1beta1.ListInstancesResponse listInstances( - com.google.cloud.redis.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -1110,8 +1108,8 @@ public com.google.cloud.redis.v1beta1.ListInstancesResponse listInstances( * */ public com.google.cloud.redis.v1beta1.Instance getInstance( - com.google.cloud.redis.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -1125,8 +1123,9 @@ public com.google.cloud.redis.v1beta1.Instance getInstance( * */ public com.google.cloud.redis.v1beta1.InstanceAuthString getInstanceAuthString( - com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceAuthStringMethod(), getCallOptions(), request); } @@ -1146,8 +1145,9 @@ public com.google.cloud.redis.v1beta1.InstanceAuthString getInstanceAuthString( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.redis.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -1162,8 +1162,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation updateInstance( - com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.UpdateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } @@ -1176,8 +1177,9 @@ public com.google.longrunning.Operation updateInstance( * */ public com.google.longrunning.Operation upgradeInstance( - com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.UpgradeInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); } @@ -1194,8 +1196,9 @@ public com.google.longrunning.Operation upgradeInstance( * */ public com.google.longrunning.Operation importInstance( - com.google.cloud.redis.v1beta1.ImportInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.ImportInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportInstanceMethod(), getCallOptions(), request); } @@ -1210,8 +1213,9 @@ public com.google.longrunning.Operation importInstance( * */ public com.google.longrunning.Operation exportInstance( - com.google.cloud.redis.v1beta1.ExportInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.ExportInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportInstanceMethod(), getCallOptions(), request); } @@ -1224,8 +1228,9 @@ public com.google.longrunning.Operation exportInstance( * */ public com.google.longrunning.Operation failoverInstance( - com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.FailoverInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFailoverInstanceMethod(), getCallOptions(), request); } @@ -1238,8 +1243,9 @@ public com.google.longrunning.Operation failoverInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -1252,8 +1258,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.longrunning.Operation rescheduleMaintenance( - com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); } } diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 9e7b26558e6c..f3758e56efc4 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.79.0 + 1.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.79.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.80.0" ``` ## Authentication @@ -335,7 +335,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/FoldersGrpc.java b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/FoldersGrpc.java index 9d9990e19dcf..c067214dc8cc 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/FoldersGrpc.java +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/FoldersGrpc.java @@ -26,9 +26,6 @@ * organization and to control the policies applied to groups of resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/resourcemanager/v3/folders.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FoldersGrpc { @@ -1168,8 +1165,9 @@ protected FoldersBlockingV2Stub build( * */ public com.google.cloud.resourcemanager.v3.Folder getFolder( - com.google.cloud.resourcemanager.v3.GetFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.GetFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFolderMethod(), getCallOptions(), request); } @@ -1187,8 +1185,9 @@ public com.google.cloud.resourcemanager.v3.Folder getFolder( * */ public com.google.cloud.resourcemanager.v3.ListFoldersResponse listFolders( - com.google.cloud.resourcemanager.v3.ListFoldersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.ListFoldersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFoldersMethod(), getCallOptions(), request); } @@ -1204,8 +1203,9 @@ public com.google.cloud.resourcemanager.v3.ListFoldersResponse listFolders( * */ public com.google.cloud.resourcemanager.v3.SearchFoldersResponse searchFolders( - com.google.cloud.resourcemanager.v3.SearchFoldersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.SearchFoldersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchFoldersMethod(), getCallOptions(), request); } @@ -1239,8 +1239,9 @@ public com.google.cloud.resourcemanager.v3.SearchFoldersResponse searchFolders( * */ public com.google.longrunning.Operation createFolder( - com.google.cloud.resourcemanager.v3.CreateFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.CreateFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFolderMethod(), getCallOptions(), request); } @@ -1266,8 +1267,9 @@ public com.google.longrunning.Operation createFolder( * */ public com.google.longrunning.Operation updateFolder( - com.google.cloud.resourcemanager.v3.UpdateFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.UpdateFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFolderMethod(), getCallOptions(), request); } @@ -1295,8 +1297,9 @@ public com.google.longrunning.Operation updateFolder( * */ public com.google.longrunning.Operation moveFolder( - com.google.cloud.resourcemanager.v3.MoveFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.MoveFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveFolderMethod(), getCallOptions(), request); } @@ -1318,8 +1321,9 @@ public com.google.longrunning.Operation moveFolder( * */ public com.google.longrunning.Operation deleteFolder( - com.google.cloud.resourcemanager.v3.DeleteFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.DeleteFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteFolderMethod(), getCallOptions(), request); } @@ -1341,8 +1345,9 @@ public com.google.longrunning.Operation deleteFolder( * */ public com.google.longrunning.Operation undeleteFolder( - com.google.cloud.resourcemanager.v3.UndeleteFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.UndeleteFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteFolderMethod(), getCallOptions(), request); } @@ -1357,8 +1362,9 @@ public com.google.longrunning.Operation undeleteFolder( * on the identified folder. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1373,8 +1379,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * on the identified folder. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1389,8 +1396,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsGrpc.java b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsGrpc.java index b6266eec468f..7d523684b49a 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsGrpc.java +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsGrpc.java @@ -24,9 +24,6 @@ * Allows users to manage their organization resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/resourcemanager/v3/organizations.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OrganizationsGrpc { @@ -567,8 +564,9 @@ protected OrganizationsBlockingV2Stub build( * */ public com.google.cloud.resourcemanager.v3.Organization getOrganization( - com.google.cloud.resourcemanager.v3.GetOrganizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.GetOrganizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrganizationMethod(), getCallOptions(), request); } @@ -585,8 +583,9 @@ public com.google.cloud.resourcemanager.v3.Organization getOrganization( * */ public com.google.cloud.resourcemanager.v3.SearchOrganizationsResponse searchOrganizations( - com.google.cloud.resourcemanager.v3.SearchOrganizationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.SearchOrganizationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchOrganizationsMethod(), getCallOptions(), request); } @@ -601,8 +600,9 @@ public com.google.cloud.resourcemanager.v3.SearchOrganizationsResponse searchOrg * `resourcemanager.organizations.getIamPolicy` on the specified organization. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -617,8 +617,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * `resourcemanager.organizations.setIamPolicy` on the specified organization. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -633,8 +634,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsGrpc.java b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsGrpc.java index 2d650cd66326..786089e4c589 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsGrpc.java +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsGrpc.java @@ -24,9 +24,6 @@ * Manages Google Cloud Projects. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/resourcemanager/v3/projects.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProjectsGrpc { @@ -1173,8 +1170,9 @@ protected ProjectsBlockingV2Stub build( * */ public com.google.cloud.resourcemanager.v3.Project getProject( - com.google.cloud.resourcemanager.v3.GetProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.GetProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProjectMethod(), getCallOptions(), request); } @@ -1191,8 +1189,9 @@ public com.google.cloud.resourcemanager.v3.Project getProject( * */ public com.google.cloud.resourcemanager.v3.ListProjectsResponse listProjects( - com.google.cloud.resourcemanager.v3.ListProjectsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.ListProjectsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProjectsMethod(), getCallOptions(), request); } @@ -1211,8 +1210,9 @@ public com.google.cloud.resourcemanager.v3.ListProjectsResponse listProjects( * */ public com.google.cloud.resourcemanager.v3.SearchProjectsResponse searchProjects( - com.google.cloud.resourcemanager.v3.SearchProjectsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.SearchProjectsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchProjectsMethod(), getCallOptions(), request); } @@ -1228,8 +1228,9 @@ public com.google.cloud.resourcemanager.v3.SearchProjectsResponse searchProjects * */ public com.google.longrunning.Operation createProject( - com.google.cloud.resourcemanager.v3.CreateProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.CreateProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProjectMethod(), getCallOptions(), request); } @@ -1245,8 +1246,9 @@ public com.google.longrunning.Operation createProject( * */ public com.google.longrunning.Operation updateProject( - com.google.cloud.resourcemanager.v3.UpdateProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.UpdateProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProjectMethod(), getCallOptions(), request); } @@ -1268,8 +1270,9 @@ public com.google.longrunning.Operation updateProject( * */ public com.google.longrunning.Operation moveProject( - com.google.cloud.resourcemanager.v3.MoveProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.MoveProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMoveProjectMethod(), getCallOptions(), request); } @@ -1307,8 +1310,9 @@ public com.google.longrunning.Operation moveProject( * */ public com.google.longrunning.Operation deleteProject( - com.google.cloud.resourcemanager.v3.DeleteProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.DeleteProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProjectMethod(), getCallOptions(), request); } @@ -1327,8 +1331,9 @@ public com.google.longrunning.Operation deleteProject( * */ public com.google.longrunning.Operation undeleteProject( - com.google.cloud.resourcemanager.v3.UndeleteProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.UndeleteProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteProjectMethod(), getCallOptions(), request); } @@ -1341,8 +1346,9 @@ public com.google.longrunning.Operation undeleteProject( * Permission is denied if the policy or the resource do not exist. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1384,8 +1390,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * owners, potentially making the organization inaccessible. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1398,8 +1405,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsGrpc.java b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsGrpc.java index 3cf275a01d85..aa537ba92267 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsGrpc.java +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsGrpc.java @@ -25,9 +25,6 @@ * different Google Cloud resources throughout the GCP resource hierarchy. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/resourcemanager/v3/tag_bindings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TagBindingsGrpc { @@ -486,8 +483,9 @@ protected TagBindingsBlockingV2Stub build( * */ public com.google.cloud.resourcemanager.v3.ListTagBindingsResponse listTagBindings( - com.google.cloud.resourcemanager.v3.ListTagBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.ListTagBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTagBindingsMethod(), getCallOptions(), request); } @@ -499,8 +497,9 @@ public com.google.cloud.resourcemanager.v3.ListTagBindingsResponse listTagBindin * */ public com.google.longrunning.Operation createTagBinding( - com.google.cloud.resourcemanager.v3.CreateTagBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.CreateTagBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagBindingMethod(), getCallOptions(), request); } @@ -512,8 +511,9 @@ public com.google.longrunning.Operation createTagBinding( * */ public com.google.longrunning.Operation deleteTagBinding( - com.google.cloud.resourcemanager.v3.DeleteTagBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.DeleteTagBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagBindingMethod(), getCallOptions(), request); } @@ -526,8 +526,9 @@ public com.google.longrunning.Operation deleteTagBinding( * */ public com.google.cloud.resourcemanager.v3.ListEffectiveTagsResponse listEffectiveTags( - com.google.cloud.resourcemanager.v3.ListEffectiveTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.ListEffectiveTagsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEffectiveTagsMethod(), getCallOptions(), request); } } diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsGrpc.java b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsGrpc.java index 029bc843cc8c..919d52ea2d89 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsGrpc.java +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsGrpc.java @@ -28,9 +28,6 @@ * so that TagHolds can be managed in the same location as their usage. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/resourcemanager/v3/tag_holds.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TagHoldsGrpc { @@ -409,8 +406,9 @@ protected TagHoldsBlockingV2Stub build( * */ public com.google.longrunning.Operation createTagHold( - com.google.cloud.resourcemanager.v3.CreateTagHoldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.CreateTagHoldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagHoldMethod(), getCallOptions(), request); } @@ -422,8 +420,9 @@ public com.google.longrunning.Operation createTagHold( * */ public com.google.longrunning.Operation deleteTagHold( - com.google.cloud.resourcemanager.v3.DeleteTagHoldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.DeleteTagHoldRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagHoldMethod(), getCallOptions(), request); } @@ -435,8 +434,9 @@ public com.google.longrunning.Operation deleteTagHold( * */ public com.google.cloud.resourcemanager.v3.ListTagHoldsResponse listTagHolds( - com.google.cloud.resourcemanager.v3.ListTagHoldsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.ListTagHoldsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTagHoldsMethod(), getCallOptions(), request); } } diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysGrpc.java b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysGrpc.java index 40bd92711f1b..2bb5c7b7f197 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysGrpc.java +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysGrpc.java @@ -24,9 +24,6 @@ * Allow users to create and manage tag keys. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/resourcemanager/v3/tag_keys.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TagKeysGrpc { @@ -853,8 +850,9 @@ protected TagKeysBlockingV2Stub build( * */ public com.google.cloud.resourcemanager.v3.ListTagKeysResponse listTagKeys( - com.google.cloud.resourcemanager.v3.ListTagKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.ListTagKeysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTagKeysMethod(), getCallOptions(), request); } @@ -867,8 +865,9 @@ public com.google.cloud.resourcemanager.v3.ListTagKeysResponse listTagKeys( * */ public com.google.cloud.resourcemanager.v3.TagKey getTagKey( - com.google.cloud.resourcemanager.v3.GetTagKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.GetTagKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTagKeyMethod(), getCallOptions(), request); } @@ -882,8 +881,9 @@ public com.google.cloud.resourcemanager.v3.TagKey getTagKey( * */ public com.google.cloud.resourcemanager.v3.TagKey getNamespacedTagKey( - com.google.cloud.resourcemanager.v3.GetNamespacedTagKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.GetNamespacedTagKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNamespacedTagKeyMethod(), getCallOptions(), request); } @@ -898,8 +898,9 @@ public com.google.cloud.resourcemanager.v3.TagKey getNamespacedTagKey( * */ public com.google.longrunning.Operation createTagKey( - com.google.cloud.resourcemanager.v3.CreateTagKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.CreateTagKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagKeyMethod(), getCallOptions(), request); } @@ -911,8 +912,9 @@ public com.google.longrunning.Operation createTagKey( * */ public com.google.longrunning.Operation updateTagKey( - com.google.cloud.resourcemanager.v3.UpdateTagKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.UpdateTagKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagKeyMethod(), getCallOptions(), request); } @@ -925,8 +927,9 @@ public com.google.longrunning.Operation updateTagKey( * */ public com.google.longrunning.Operation deleteTagKey( - com.google.cloud.resourcemanager.v3.DeleteTagKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.DeleteTagKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagKeyMethod(), getCallOptions(), request); } @@ -942,8 +945,9 @@ public com.google.longrunning.Operation deleteTagKey( * the specified TagKey. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -958,8 +962,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * on the identified tagValue. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -974,8 +979,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesGrpc.java b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesGrpc.java index cce36f99b56e..99ed4fe9a6be 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesGrpc.java +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesGrpc.java @@ -24,9 +24,6 @@ * Allow users to create and manage tag values. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/resourcemanager/v3/tag_values.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TagValuesGrpc { @@ -867,8 +864,9 @@ protected TagValuesBlockingV2Stub build( * */ public com.google.cloud.resourcemanager.v3.ListTagValuesResponse listTagValues( - com.google.cloud.resourcemanager.v3.ListTagValuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.ListTagValuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTagValuesMethod(), getCallOptions(), request); } @@ -881,8 +879,9 @@ public com.google.cloud.resourcemanager.v3.ListTagValuesResponse listTagValues( * */ public com.google.cloud.resourcemanager.v3.TagValue getTagValue( - com.google.cloud.resourcemanager.v3.GetTagValueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.GetTagValueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTagValueMethod(), getCallOptions(), request); } @@ -896,8 +895,9 @@ public com.google.cloud.resourcemanager.v3.TagValue getTagValue( * */ public com.google.cloud.resourcemanager.v3.TagValue getNamespacedTagValue( - com.google.cloud.resourcemanager.v3.GetNamespacedTagValueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.GetNamespacedTagValueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNamespacedTagValueMethod(), getCallOptions(), request); } @@ -912,8 +912,9 @@ public com.google.cloud.resourcemanager.v3.TagValue getNamespacedTagValue( * */ public com.google.longrunning.Operation createTagValue( - com.google.cloud.resourcemanager.v3.CreateTagValueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.CreateTagValueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTagValueMethod(), getCallOptions(), request); } @@ -925,8 +926,9 @@ public com.google.longrunning.Operation createTagValue( * */ public com.google.longrunning.Operation updateTagValue( - com.google.cloud.resourcemanager.v3.UpdateTagValueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.UpdateTagValueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTagValueMethod(), getCallOptions(), request); } @@ -939,8 +941,9 @@ public com.google.longrunning.Operation updateTagValue( * */ public com.google.longrunning.Operation deleteTagValue( - com.google.cloud.resourcemanager.v3.DeleteTagValueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.resourcemanager.v3.DeleteTagValueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTagValueMethod(), getCallOptions(), request); } @@ -956,8 +959,9 @@ public com.google.longrunning.Operation deleteTagValue( * the identified TagValue to get the access control policy. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -972,8 +976,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * on the identified tagValue. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -988,8 +993,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-retail/README.md b/java-retail/README.md index b7f10d3afe98..98d0bee18598 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.79.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.79.0' +implementation 'com.google.cloud:google-cloud-retail:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceGrpc.java index 7245c8d2f8c1..91cdcd0eb0bf 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceGrpc.java @@ -25,9 +25,6 @@ * Retail recommendation business metric is currently not available. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/analytics_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AnalyticsServiceGrpc { @@ -252,8 +249,9 @@ protected AnalyticsServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation exportAnalyticsMetrics( - com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ExportAnalyticsMetricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportAnalyticsMetricsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceGrpc.java index a2d7734b88f0..ef7d93ec89ed 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing catalog configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/catalog_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CatalogServiceGrpc { @@ -1115,8 +1112,8 @@ protected CatalogServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2.ListCatalogsResponse listCatalogs( - com.google.cloud.retail.v2.ListCatalogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ListCatalogsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCatalogsMethod(), getCallOptions(), request); } @@ -1128,8 +1125,8 @@ public com.google.cloud.retail.v2.ListCatalogsResponse listCatalogs( * */ public com.google.cloud.retail.v2.Catalog updateCatalog( - com.google.cloud.retail.v2.UpdateCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.UpdateCatalogRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCatalogMethod(), getCallOptions(), request); } @@ -1169,8 +1166,8 @@ public com.google.cloud.retail.v2.Catalog updateCatalog( * */ public com.google.protobuf.Empty setDefaultBranch( - com.google.cloud.retail.v2.SetDefaultBranchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.SetDefaultBranchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetDefaultBranchMethod(), getCallOptions(), request); } @@ -1184,8 +1181,8 @@ public com.google.protobuf.Empty setDefaultBranch( * */ public com.google.cloud.retail.v2.GetDefaultBranchResponse getDefaultBranch( - com.google.cloud.retail.v2.GetDefaultBranchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.GetDefaultBranchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDefaultBranchMethod(), getCallOptions(), request); } @@ -1197,8 +1194,9 @@ public com.google.cloud.retail.v2.GetDefaultBranchResponse getDefaultBranch( * */ public com.google.cloud.retail.v2.CompletionConfig getCompletionConfig( - com.google.cloud.retail.v2.GetCompletionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.GetCompletionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCompletionConfigMethod(), getCallOptions(), request); } @@ -1210,8 +1208,9 @@ public com.google.cloud.retail.v2.CompletionConfig getCompletionConfig( * */ public com.google.cloud.retail.v2.CompletionConfig updateCompletionConfig( - com.google.cloud.retail.v2.UpdateCompletionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.UpdateCompletionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCompletionConfigMethod(), getCallOptions(), request); } @@ -1223,8 +1222,9 @@ public com.google.cloud.retail.v2.CompletionConfig updateCompletionConfig( * */ public com.google.cloud.retail.v2.AttributesConfig getAttributesConfig( - com.google.cloud.retail.v2.GetAttributesConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.GetAttributesConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttributesConfigMethod(), getCallOptions(), request); } @@ -1242,8 +1242,9 @@ public com.google.cloud.retail.v2.AttributesConfig getAttributesConfig( * */ public com.google.cloud.retail.v2.AttributesConfig updateAttributesConfig( - com.google.cloud.retail.v2.UpdateAttributesConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.UpdateAttributesConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAttributesConfigMethod(), getCallOptions(), request); } @@ -1259,8 +1260,9 @@ public com.google.cloud.retail.v2.AttributesConfig updateAttributesConfig( * */ public com.google.cloud.retail.v2.AttributesConfig addCatalogAttribute( - com.google.cloud.retail.v2.AddCatalogAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.AddCatalogAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddCatalogAttributeMethod(), getCallOptions(), request); } @@ -1276,8 +1278,9 @@ public com.google.cloud.retail.v2.AttributesConfig addCatalogAttribute( * */ public com.google.cloud.retail.v2.AttributesConfig removeCatalogAttribute( - com.google.cloud.retail.v2.RemoveCatalogAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.RemoveCatalogAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveCatalogAttributeMethod(), getCallOptions(), request); } @@ -1295,8 +1298,9 @@ public com.google.cloud.retail.v2.AttributesConfig removeCatalogAttribute( * */ public com.google.cloud.retail.v2.AttributesConfig replaceCatalogAttribute( - com.google.cloud.retail.v2.ReplaceCatalogAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ReplaceCatalogAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReplaceCatalogAttributeMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceGrpc.java index 52270b520be0..53470856789a 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceGrpc.java @@ -26,9 +26,6 @@ * Enable Retail Search on Cloud Console before using this feature. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/completion_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompletionServiceGrpc { @@ -344,8 +341,8 @@ protected CompletionServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2.CompleteQueryResponse completeQuery( - com.google.cloud.retail.v2.CompleteQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.CompleteQueryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } @@ -362,8 +359,9 @@ public com.google.cloud.retail.v2.CompleteQueryResponse completeQuery( * */ public com.google.longrunning.Operation importCompletionData( - com.google.cloud.retail.v2.ImportCompletionDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ImportCompletionDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportCompletionDataMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlServiceGrpc.java index bc15b826ba3b..2ac49ab8039f 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlServiceGrpc.java @@ -24,9 +24,6 @@ * Service for modifying Control. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/control_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ControlServiceGrpc { @@ -541,8 +538,8 @@ protected ControlServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2.Control createControl( - com.google.cloud.retail.v2.CreateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.CreateControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateControlMethod(), getCallOptions(), request); } @@ -556,8 +553,8 @@ public com.google.cloud.retail.v2.Control createControl( * */ public com.google.protobuf.Empty deleteControl( - com.google.cloud.retail.v2.DeleteControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.DeleteControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteControlMethod(), getCallOptions(), request); } @@ -573,8 +570,8 @@ public com.google.protobuf.Empty deleteControl( * */ public com.google.cloud.retail.v2.Control updateControl( - com.google.cloud.retail.v2.UpdateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.UpdateControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateControlMethod(), getCallOptions(), request); } @@ -586,8 +583,8 @@ public com.google.cloud.retail.v2.Control updateControl( * */ public com.google.cloud.retail.v2.Control getControl( - com.google.cloud.retail.v2.GetControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.GetControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetControlMethod(), getCallOptions(), request); } @@ -600,8 +597,8 @@ public com.google.cloud.retail.v2.Control getControl( * */ public com.google.cloud.retail.v2.ListControlsResponse listControls( - com.google.cloud.retail.v2.ListControlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ListControlsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListControlsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceGrpc.java index cbfc3407616a..90121d681544 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceGrpc.java @@ -27,9 +27,6 @@ * before using this feature. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/conversational_search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationalSearchServiceGrpc { diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceGrpc.java index 63babf84ba63..81e62402ac90 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing LLM generated questions in search serving. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/generative_question_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GenerativeQuestionServiceGrpc { @@ -605,8 +602,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2.GenerativeQuestionsFeatureConfig updateGenerativeQuestionsFeatureConfig( - com.google.cloud.retail.v2.UpdateGenerativeQuestionsFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.UpdateGenerativeQuestionsFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGenerativeQuestionsFeatureConfigMethod(), getCallOptions(), @@ -623,8 +621,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2.GenerativeQuestionsFeatureConfig getGenerativeQuestionsFeatureConfig( - com.google.cloud.retail.v2.GetGenerativeQuestionsFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.GetGenerativeQuestionsFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGenerativeQuestionsFeatureConfigMethod(), getCallOptions(), request); } @@ -637,8 +636,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2.ListGenerativeQuestionConfigsResponse listGenerativeQuestionConfigs( - com.google.cloud.retail.v2.ListGenerativeQuestionConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ListGenerativeQuestionConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGenerativeQuestionConfigsMethod(), getCallOptions(), request); } @@ -650,8 +650,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2.GenerativeQuestionConfig updateGenerativeQuestionConfig( - com.google.cloud.retail.v2.UpdateGenerativeQuestionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.UpdateGenerativeQuestionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGenerativeQuestionConfigMethod(), getCallOptions(), request); } @@ -664,8 +665,9 @@ public com.google.cloud.retail.v2.GenerativeQuestionConfig updateGenerativeQuest */ public com.google.cloud.retail.v2.BatchUpdateGenerativeQuestionConfigsResponse batchUpdateGenerativeQuestionConfigs( - com.google.cloud.retail.v2.BatchUpdateGenerativeQuestionConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.BatchUpdateGenerativeQuestionConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateGenerativeQuestionConfigsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelServiceGrpc.java index 4f5421240c91..dc16d916c257 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelServiceGrpc.java @@ -33,9 +33,6 @@ * * Control their tuning schedule. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/model_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelServiceGrpc { @@ -772,8 +769,8 @@ protected ModelServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createModel( - com.google.cloud.retail.v2.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.CreateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelMethod(), getCallOptions(), request); } @@ -785,8 +782,8 @@ public com.google.longrunning.Operation createModel( * */ public com.google.cloud.retail.v2.Model getModel( - com.google.cloud.retail.v2.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.GetModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } @@ -798,8 +795,8 @@ public com.google.cloud.retail.v2.Model getModel( * */ public com.google.cloud.retail.v2.Model pauseModel( - com.google.cloud.retail.v2.PauseModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.PauseModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseModelMethod(), getCallOptions(), request); } @@ -811,8 +808,8 @@ public com.google.cloud.retail.v2.Model pauseModel( * */ public com.google.cloud.retail.v2.Model resumeModel( - com.google.cloud.retail.v2.ResumeModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ResumeModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeModelMethod(), getCallOptions(), request); } @@ -824,8 +821,8 @@ public com.google.cloud.retail.v2.Model resumeModel( * */ public com.google.protobuf.Empty deleteModel( - com.google.cloud.retail.v2.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.DeleteModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } @@ -837,8 +834,8 @@ public com.google.protobuf.Empty deleteModel( * */ public com.google.cloud.retail.v2.ListModelsResponse listModels( - com.google.cloud.retail.v2.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ListModelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } @@ -853,8 +850,8 @@ public com.google.cloud.retail.v2.ListModelsResponse listModels( * */ public com.google.cloud.retail.v2.Model updateModel( - com.google.cloud.retail.v2.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.UpdateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelMethod(), getCallOptions(), request); } @@ -866,8 +863,8 @@ public com.google.cloud.retail.v2.Model updateModel( * */ public com.google.longrunning.Operation tuneModel( - com.google.cloud.retail.v2.TuneModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.TuneModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTuneModelMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceGrpc.java index c021ea767b41..9cc38debc4dc 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PredictionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for making recommendation prediction. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/prediction_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PredictionServiceGrpc { @@ -231,8 +228,8 @@ protected PredictionServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2.PredictResponse predict( - com.google.cloud.retail.v2.PredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.PredictRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceGrpc.java index a97b7dc3836c..d1241e5e5a17 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceGrpc.java @@ -25,9 +25,6 @@ * of the customer's website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/product_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductServiceGrpc { @@ -1359,8 +1356,8 @@ protected ProductServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2.Product createProduct( - com.google.cloud.retail.v2.CreateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.CreateProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } @@ -1372,8 +1369,8 @@ public com.google.cloud.retail.v2.Product createProduct( * */ public com.google.cloud.retail.v2.Product getProduct( - com.google.cloud.retail.v2.GetProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.GetProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } @@ -1385,8 +1382,8 @@ public com.google.cloud.retail.v2.Product getProduct( * */ public com.google.cloud.retail.v2.ListProductsResponse listProducts( - com.google.cloud.retail.v2.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ListProductsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } @@ -1398,8 +1395,8 @@ public com.google.cloud.retail.v2.ListProductsResponse listProducts( * */ public com.google.cloud.retail.v2.Product updateProduct( - com.google.cloud.retail.v2.UpdateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.UpdateProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } @@ -1411,8 +1408,8 @@ public com.google.cloud.retail.v2.Product updateProduct( * */ public com.google.protobuf.Empty deleteProduct( - com.google.cloud.retail.v2.DeleteProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.DeleteProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } @@ -1438,8 +1435,8 @@ public com.google.protobuf.Empty deleteProduct( * */ public com.google.longrunning.Operation purgeProducts( - com.google.cloud.retail.v2.PurgeProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.PurgeProductsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeProductsMethod(), getCallOptions(), request); } @@ -1455,8 +1452,8 @@ public com.google.longrunning.Operation purgeProducts( * */ public com.google.longrunning.Operation importProducts( - com.google.cloud.retail.v2.ImportProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ImportProductsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportProductsMethod(), getCallOptions(), request); } @@ -1509,8 +1506,8 @@ public com.google.longrunning.Operation importProducts( * */ public com.google.longrunning.Operation setInventory( - com.google.cloud.retail.v2.SetInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.SetInventoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetInventoryMethod(), getCallOptions(), request); } @@ -1547,8 +1544,9 @@ public com.google.longrunning.Operation setInventory( * */ public com.google.longrunning.Operation addFulfillmentPlaces( - com.google.cloud.retail.v2.AddFulfillmentPlacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.AddFulfillmentPlacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddFulfillmentPlacesMethod(), getCallOptions(), request); } @@ -1585,8 +1583,9 @@ public com.google.longrunning.Operation addFulfillmentPlaces( * */ public com.google.longrunning.Operation removeFulfillmentPlaces( - com.google.cloud.retail.v2.RemoveFulfillmentPlacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.RemoveFulfillmentPlacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveFulfillmentPlacesMethod(), getCallOptions(), request); } @@ -1621,8 +1620,9 @@ public com.google.longrunning.Operation removeFulfillmentPlaces( * */ public com.google.longrunning.Operation addLocalInventories( - com.google.cloud.retail.v2.AddLocalInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.AddLocalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddLocalInventoriesMethod(), getCallOptions(), request); } @@ -1655,8 +1655,9 @@ public com.google.longrunning.Operation addLocalInventories( * */ public com.google.longrunning.Operation removeLocalInventories( - com.google.cloud.retail.v2.RemoveLocalInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.RemoveLocalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveLocalInventoriesMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchServiceGrpc.java index c1f9d229ad31..c59f3824f770 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchServiceGrpc.java @@ -26,9 +26,6 @@ * Enable Retail Search on Cloud Console before using this feature. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchServiceGrpc { @@ -245,8 +242,8 @@ protected SearchServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2.SearchResponse search( - com.google.cloud.retail.v2.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.SearchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceGrpc.java index c9849005bb24..0766007efa26 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceGrpc.java @@ -24,9 +24,6 @@ * Service for modifying ServingConfig. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/serving_config_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServingConfigServiceGrpc { @@ -728,8 +725,9 @@ protected ServingConfigServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2.ServingConfig createServingConfig( - com.google.cloud.retail.v2.CreateServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.CreateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServingConfigMethod(), getCallOptions(), request); } @@ -742,8 +740,9 @@ public com.google.cloud.retail.v2.ServingConfig createServingConfig( * */ public com.google.protobuf.Empty deleteServingConfig( - com.google.cloud.retail.v2.DeleteServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.DeleteServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServingConfigMethod(), getCallOptions(), request); } @@ -755,8 +754,9 @@ public com.google.protobuf.Empty deleteServingConfig( * */ public com.google.cloud.retail.v2.ServingConfig updateServingConfig( - com.google.cloud.retail.v2.UpdateServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.UpdateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServingConfigMethod(), getCallOptions(), request); } @@ -769,8 +769,8 @@ public com.google.cloud.retail.v2.ServingConfig updateServingConfig( * */ public com.google.cloud.retail.v2.ServingConfig getServingConfig( - com.google.cloud.retail.v2.GetServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.GetServingConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServingConfigMethod(), getCallOptions(), request); } @@ -782,8 +782,9 @@ public com.google.cloud.retail.v2.ServingConfig getServingConfig( * */ public com.google.cloud.retail.v2.ListServingConfigsResponse listServingConfigs( - com.google.cloud.retail.v2.ListServingConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ListServingConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServingConfigsMethod(), getCallOptions(), request); } @@ -801,8 +802,8 @@ public com.google.cloud.retail.v2.ListServingConfigsResponse listServingConfigs( * */ public com.google.cloud.retail.v2.ServingConfig addControl( - com.google.cloud.retail.v2.AddControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.AddControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddControlMethod(), getCallOptions(), request); } @@ -817,8 +818,8 @@ public com.google.cloud.retail.v2.ServingConfig addControl( * */ public com.google.cloud.retail.v2.ServingConfig removeControl( - com.google.cloud.retail.v2.RemoveControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.RemoveControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveControlMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceGrpc.java index 13889f518ef2..be99ec4efe12 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ingesting end user actions on the customer website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2/user_event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserEventServiceGrpc { @@ -564,8 +561,8 @@ protected UserEventServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2.UserEvent writeUserEvent( - com.google.cloud.retail.v2.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.WriteUserEventRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteUserEventMethod(), getCallOptions(), request); } @@ -581,8 +578,8 @@ public com.google.cloud.retail.v2.UserEvent writeUserEvent( * */ public com.google.api.HttpBody collectUserEvent( - com.google.cloud.retail.v2.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.CollectUserEventRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } @@ -597,8 +594,8 @@ public com.google.api.HttpBody collectUserEvent( * */ public com.google.longrunning.Operation purgeUserEvents( - com.google.cloud.retail.v2.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.PurgeUserEventsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); } @@ -615,8 +612,8 @@ public com.google.longrunning.Operation purgeUserEvents( * */ public com.google.longrunning.Operation importUserEvents( - com.google.cloud.retail.v2.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.ImportUserEventsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportUserEventsMethod(), getCallOptions(), request); } @@ -635,8 +632,8 @@ public com.google.longrunning.Operation importUserEvents( * */ public com.google.longrunning.Operation rejoinUserEvents( - com.google.cloud.retail.v2.RejoinUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2.RejoinUserEventsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRejoinUserEventsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceGrpc.java index 632355cfe1b4..e27bcdeefc9a 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceGrpc.java @@ -25,9 +25,6 @@ * Retail recommendation business metric is currently not available. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/analytics_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AnalyticsServiceGrpc { @@ -253,8 +250,9 @@ protected AnalyticsServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation exportAnalyticsMetrics( - com.google.cloud.retail.v2alpha.ExportAnalyticsMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ExportAnalyticsMetricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportAnalyticsMetricsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceGrpc.java index d6cc76d5ba29..446615620e11 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceGrpc.java @@ -29,9 +29,6 @@ * to get the details of all branches. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/branch_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BranchServiceGrpc { @@ -338,8 +335,9 @@ protected BranchServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.ListBranchesResponse listBranches( - com.google.cloud.retail.v2alpha.ListBranchesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ListBranchesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBranchesMethod(), getCallOptions(), request); } @@ -351,8 +349,8 @@ public com.google.cloud.retail.v2alpha.ListBranchesResponse listBranches( * */ public com.google.cloud.retail.v2alpha.Branch getBranch( - com.google.cloud.retail.v2alpha.GetBranchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetBranchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBranchMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceGrpc.java index fe5f4f157d99..1ac7e52e68ef 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing catalog configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/catalog_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CatalogServiceGrpc { @@ -1237,8 +1234,9 @@ protected CatalogServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.ListCatalogsResponse listCatalogs( - com.google.cloud.retail.v2alpha.ListCatalogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ListCatalogsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCatalogsMethod(), getCallOptions(), request); } @@ -1250,8 +1248,9 @@ public com.google.cloud.retail.v2alpha.ListCatalogsResponse listCatalogs( * */ public com.google.cloud.retail.v2alpha.Catalog updateCatalog( - com.google.cloud.retail.v2alpha.UpdateCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCatalogMethod(), getCallOptions(), request); } @@ -1291,8 +1290,9 @@ public com.google.cloud.retail.v2alpha.Catalog updateCatalog( * */ public com.google.protobuf.Empty setDefaultBranch( - com.google.cloud.retail.v2alpha.SetDefaultBranchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.SetDefaultBranchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetDefaultBranchMethod(), getCallOptions(), request); } @@ -1306,8 +1306,9 @@ public com.google.protobuf.Empty setDefaultBranch( * */ public com.google.cloud.retail.v2alpha.GetDefaultBranchResponse getDefaultBranch( - com.google.cloud.retail.v2alpha.GetDefaultBranchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetDefaultBranchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDefaultBranchMethod(), getCallOptions(), request); } @@ -1319,8 +1320,9 @@ public com.google.cloud.retail.v2alpha.GetDefaultBranchResponse getDefaultBranch * */ public com.google.cloud.retail.v2alpha.CompletionConfig getCompletionConfig( - com.google.cloud.retail.v2alpha.GetCompletionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetCompletionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCompletionConfigMethod(), getCallOptions(), request); } @@ -1333,8 +1335,9 @@ public com.google.cloud.retail.v2alpha.CompletionConfig getCompletionConfig( * */ public com.google.cloud.retail.v2alpha.CompletionConfig updateCompletionConfig( - com.google.cloud.retail.v2alpha.UpdateCompletionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateCompletionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCompletionConfigMethod(), getCallOptions(), request); } @@ -1346,8 +1349,9 @@ public com.google.cloud.retail.v2alpha.CompletionConfig updateCompletionConfig( * */ public com.google.cloud.retail.v2alpha.AttributesConfig getAttributesConfig( - com.google.cloud.retail.v2alpha.GetAttributesConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetAttributesConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttributesConfigMethod(), getCallOptions(), request); } @@ -1366,8 +1370,9 @@ public com.google.cloud.retail.v2alpha.AttributesConfig getAttributesConfig( * */ public com.google.cloud.retail.v2alpha.AttributesConfig updateAttributesConfig( - com.google.cloud.retail.v2alpha.UpdateAttributesConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateAttributesConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAttributesConfigMethod(), getCallOptions(), request); } @@ -1383,8 +1388,9 @@ public com.google.cloud.retail.v2alpha.AttributesConfig updateAttributesConfig( * */ public com.google.cloud.retail.v2alpha.AttributesConfig addCatalogAttribute( - com.google.cloud.retail.v2alpha.AddCatalogAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.AddCatalogAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddCatalogAttributeMethod(), getCallOptions(), request); } @@ -1400,8 +1406,9 @@ public com.google.cloud.retail.v2alpha.AttributesConfig addCatalogAttribute( * */ public com.google.cloud.retail.v2alpha.AttributesConfig removeCatalogAttribute( - com.google.cloud.retail.v2alpha.RemoveCatalogAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.RemoveCatalogAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveCatalogAttributeMethod(), getCallOptions(), request); } @@ -1416,8 +1423,9 @@ public com.google.cloud.retail.v2alpha.AttributesConfig removeCatalogAttribute( */ public com.google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesResponse batchRemoveCatalogAttributes( - com.google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchRemoveCatalogAttributesMethod(), getCallOptions(), request); } @@ -1435,8 +1443,9 @@ public com.google.cloud.retail.v2alpha.AttributesConfig removeCatalogAttribute( * */ public com.google.cloud.retail.v2alpha.AttributesConfig replaceCatalogAttribute( - com.google.cloud.retail.v2alpha.ReplaceCatalogAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ReplaceCatalogAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReplaceCatalogAttributeMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceGrpc.java index 8de588c4a9ec..87b618176ce2 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceGrpc.java @@ -26,9 +26,6 @@ * Enable Retail Search on Cloud Console before using this feature. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/completion_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompletionServiceGrpc { @@ -348,8 +345,9 @@ protected CompletionServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.CompleteQueryResponse completeQuery( - com.google.cloud.retail.v2alpha.CompleteQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.CompleteQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } @@ -366,8 +364,9 @@ public com.google.cloud.retail.v2alpha.CompleteQueryResponse completeQuery( * */ public com.google.longrunning.Operation importCompletionData( - com.google.cloud.retail.v2alpha.ImportCompletionDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ImportCompletionDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportCompletionDataMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceGrpc.java index 64e9223a27ac..c4eb94338d93 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceGrpc.java @@ -24,9 +24,6 @@ * Service for modifying Control. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/control_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ControlServiceGrpc { @@ -557,8 +554,9 @@ protected ControlServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.Control createControl( - com.google.cloud.retail.v2alpha.CreateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.CreateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateControlMethod(), getCallOptions(), request); } @@ -572,8 +570,9 @@ public com.google.cloud.retail.v2alpha.Control createControl( * */ public com.google.protobuf.Empty deleteControl( - com.google.cloud.retail.v2alpha.DeleteControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.DeleteControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteControlMethod(), getCallOptions(), request); } @@ -589,8 +588,9 @@ public com.google.protobuf.Empty deleteControl( * */ public com.google.cloud.retail.v2alpha.Control updateControl( - com.google.cloud.retail.v2alpha.UpdateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateControlMethod(), getCallOptions(), request); } @@ -602,8 +602,8 @@ public com.google.cloud.retail.v2alpha.Control updateControl( * */ public com.google.cloud.retail.v2alpha.Control getControl( - com.google.cloud.retail.v2alpha.GetControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetControlMethod(), getCallOptions(), request); } @@ -616,8 +616,9 @@ public com.google.cloud.retail.v2alpha.Control getControl( * */ public com.google.cloud.retail.v2alpha.ListControlsResponse listControls( - com.google.cloud.retail.v2alpha.ListControlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ListControlsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListControlsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceGrpc.java index ad5042b0c97a..50bb83603447 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceGrpc.java @@ -27,9 +27,6 @@ * before using this feature. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/conversational_search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationalSearchServiceGrpc { diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceGrpc.java index 68225ac603d9..18502503af2f 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing LLM generated questions in search serving. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/generative_question_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GenerativeQuestionServiceGrpc { @@ -616,8 +613,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig updateGenerativeQuestionsFeatureConfig( - com.google.cloud.retail.v2alpha.UpdateGenerativeQuestionsFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateGenerativeQuestionsFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGenerativeQuestionsFeatureConfigMethod(), getCallOptions(), @@ -634,8 +632,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig getGenerativeQuestionsFeatureConfig( - com.google.cloud.retail.v2alpha.GetGenerativeQuestionsFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetGenerativeQuestionsFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGenerativeQuestionsFeatureConfigMethod(), getCallOptions(), request); } @@ -648,8 +647,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2alpha.ListGenerativeQuestionConfigsResponse listGenerativeQuestionConfigs( - com.google.cloud.retail.v2alpha.ListGenerativeQuestionConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ListGenerativeQuestionConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGenerativeQuestionConfigsMethod(), getCallOptions(), request); } @@ -661,8 +661,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.GenerativeQuestionConfig updateGenerativeQuestionConfig( - com.google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGenerativeQuestionConfigMethod(), getCallOptions(), request); } @@ -675,8 +676,9 @@ public com.google.cloud.retail.v2alpha.GenerativeQuestionConfig updateGenerative */ public com.google.cloud.retail.v2alpha.BatchUpdateGenerativeQuestionConfigsResponse batchUpdateGenerativeQuestionConfigs( - com.google.cloud.retail.v2alpha.BatchUpdateGenerativeQuestionConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.BatchUpdateGenerativeQuestionConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateGenerativeQuestionConfigsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceGrpc.java index dc031c376075..581c508c7b45 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceGrpc.java @@ -24,9 +24,6 @@ * Merchant Center Link service to link a Branch to a Merchant Center Account. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/merchant_center_account_link_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MerchantCenterAccountLinkServiceGrpc { @@ -438,8 +435,9 @@ protected MerchantCenterAccountLinkServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLinks( - com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMerchantCenterAccountLinksMethod(), getCallOptions(), request); } @@ -452,8 +450,9 @@ protected MerchantCenterAccountLinkServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createMerchantCenterAccountLink( - com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMerchantCenterAccountLinkMethod(), getCallOptions(), request); } @@ -469,8 +468,9 @@ public com.google.longrunning.Operation createMerchantCenterAccountLink( * */ public com.google.protobuf.Empty deleteMerchantCenterAccountLink( - com.google.cloud.retail.v2alpha.DeleteMerchantCenterAccountLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.DeleteMerchantCenterAccountLinkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMerchantCenterAccountLinkMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceGrpc.java index 8a8649204472..0b00c72b75dd 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceGrpc.java @@ -33,9 +33,6 @@ * * Control their tuning schedule. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/model_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelServiceGrpc { @@ -784,8 +781,8 @@ protected ModelServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createModel( - com.google.cloud.retail.v2alpha.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.CreateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelMethod(), getCallOptions(), request); } @@ -797,8 +794,8 @@ public com.google.longrunning.Operation createModel( * */ public com.google.cloud.retail.v2alpha.Model getModel( - com.google.cloud.retail.v2alpha.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } @@ -810,8 +807,8 @@ public com.google.cloud.retail.v2alpha.Model getModel( * */ public com.google.cloud.retail.v2alpha.Model pauseModel( - com.google.cloud.retail.v2alpha.PauseModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.PauseModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseModelMethod(), getCallOptions(), request); } @@ -823,8 +820,8 @@ public com.google.cloud.retail.v2alpha.Model pauseModel( * */ public com.google.cloud.retail.v2alpha.Model resumeModel( - com.google.cloud.retail.v2alpha.ResumeModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ResumeModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeModelMethod(), getCallOptions(), request); } @@ -836,8 +833,8 @@ public com.google.cloud.retail.v2alpha.Model resumeModel( * */ public com.google.protobuf.Empty deleteModel( - com.google.cloud.retail.v2alpha.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.DeleteModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } @@ -849,8 +846,8 @@ public com.google.protobuf.Empty deleteModel( * */ public com.google.cloud.retail.v2alpha.ListModelsResponse listModels( - com.google.cloud.retail.v2alpha.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ListModelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } @@ -865,8 +862,8 @@ public com.google.cloud.retail.v2alpha.ListModelsResponse listModels( * */ public com.google.cloud.retail.v2alpha.Model updateModel( - com.google.cloud.retail.v2alpha.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelMethod(), getCallOptions(), request); } @@ -878,8 +875,8 @@ public com.google.cloud.retail.v2alpha.Model updateModel( * */ public com.google.longrunning.Operation tuneModel( - com.google.cloud.retail.v2alpha.TuneModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.TuneModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTuneModelMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceGrpc.java index 6002c52dc5c1..56c2ca18dd18 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for making recommendation prediction. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/prediction_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PredictionServiceGrpc { @@ -237,8 +234,8 @@ protected PredictionServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.PredictResponse predict( - com.google.cloud.retail.v2alpha.PredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.PredictRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceGrpc.java index 9f0121da5bef..7bc4ab448a3c 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceGrpc.java @@ -25,9 +25,6 @@ * information of the customer's website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/product_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductServiceGrpc { @@ -1455,8 +1452,9 @@ protected ProductServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.Product createProduct( - com.google.cloud.retail.v2alpha.CreateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.CreateProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } @@ -1468,8 +1466,8 @@ public com.google.cloud.retail.v2alpha.Product createProduct( * */ public com.google.cloud.retail.v2alpha.Product getProduct( - com.google.cloud.retail.v2alpha.GetProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } @@ -1481,8 +1479,9 @@ public com.google.cloud.retail.v2alpha.Product getProduct( * */ public com.google.cloud.retail.v2alpha.ListProductsResponse listProducts( - com.google.cloud.retail.v2alpha.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ListProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } @@ -1494,8 +1493,9 @@ public com.google.cloud.retail.v2alpha.ListProductsResponse listProducts( * */ public com.google.cloud.retail.v2alpha.Product updateProduct( - com.google.cloud.retail.v2alpha.UpdateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } @@ -1507,8 +1507,9 @@ public com.google.cloud.retail.v2alpha.Product updateProduct( * */ public com.google.protobuf.Empty deleteProduct( - com.google.cloud.retail.v2alpha.DeleteProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.DeleteProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } @@ -1534,8 +1535,9 @@ public com.google.protobuf.Empty deleteProduct( * */ public com.google.longrunning.Operation purgeProducts( - com.google.cloud.retail.v2alpha.PurgeProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.PurgeProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeProductsMethod(), getCallOptions(), request); } @@ -1551,8 +1553,9 @@ public com.google.longrunning.Operation purgeProducts( * */ public com.google.longrunning.Operation importProducts( - com.google.cloud.retail.v2alpha.ImportProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ImportProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportProductsMethod(), getCallOptions(), request); } @@ -1564,8 +1567,9 @@ public com.google.longrunning.Operation importProducts( * */ public com.google.longrunning.Operation exportProducts( - com.google.cloud.retail.v2alpha.ExportProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ExportProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportProductsMethod(), getCallOptions(), request); } @@ -1618,8 +1622,9 @@ public com.google.longrunning.Operation exportProducts( * */ public com.google.longrunning.Operation setInventory( - com.google.cloud.retail.v2alpha.SetInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.SetInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetInventoryMethod(), getCallOptions(), request); } @@ -1656,8 +1661,9 @@ public com.google.longrunning.Operation setInventory( * */ public com.google.longrunning.Operation addFulfillmentPlaces( - com.google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddFulfillmentPlacesMethod(), getCallOptions(), request); } @@ -1694,8 +1700,9 @@ public com.google.longrunning.Operation addFulfillmentPlaces( * */ public com.google.longrunning.Operation removeFulfillmentPlaces( - com.google.cloud.retail.v2alpha.RemoveFulfillmentPlacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.RemoveFulfillmentPlacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveFulfillmentPlacesMethod(), getCallOptions(), request); } @@ -1730,8 +1737,9 @@ public com.google.longrunning.Operation removeFulfillmentPlaces( * */ public com.google.longrunning.Operation addLocalInventories( - com.google.cloud.retail.v2alpha.AddLocalInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.AddLocalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddLocalInventoriesMethod(), getCallOptions(), request); } @@ -1764,8 +1772,9 @@ public com.google.longrunning.Operation addLocalInventories( * */ public com.google.longrunning.Operation removeLocalInventories( - com.google.cloud.retail.v2alpha.RemoveLocalInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.RemoveLocalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveLocalInventoriesMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceGrpc.java index 0900795a8e67..c760b7aef8ca 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceGrpc.java @@ -24,9 +24,6 @@ * Service for settings at Project level. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/project_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProjectServiceGrpc { @@ -804,8 +801,8 @@ protected ProjectServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.Project getProject( - com.google.cloud.retail.v2alpha.GetProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetProjectRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProjectMethod(), getCallOptions(), request); } @@ -820,8 +817,8 @@ public com.google.cloud.retail.v2alpha.Project getProject( * */ public com.google.cloud.retail.v2alpha.Project acceptTerms( - com.google.cloud.retail.v2alpha.AcceptTermsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.AcceptTermsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcceptTermsMethod(), getCallOptions(), request); } @@ -839,8 +836,9 @@ public com.google.cloud.retail.v2alpha.Project acceptTerms( * */ public com.google.longrunning.Operation enrollSolution( - com.google.cloud.retail.v2alpha.EnrollSolutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.EnrollSolutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnrollSolutionMethod(), getCallOptions(), request); } @@ -852,8 +850,9 @@ public com.google.longrunning.Operation enrollSolution( * */ public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse listEnrolledSolutions( - com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnrolledSolutionsMethod(), getCallOptions(), request); } @@ -866,8 +865,9 @@ public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse listEnrolle * */ public com.google.cloud.retail.v2alpha.LoggingConfig getLoggingConfig( - com.google.cloud.retail.v2alpha.GetLoggingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLoggingConfigMethod(), getCallOptions(), request); } @@ -880,8 +880,9 @@ public com.google.cloud.retail.v2alpha.LoggingConfig getLoggingConfig( * */ public com.google.cloud.retail.v2alpha.LoggingConfig updateLoggingConfig( - com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateLoggingConfigMethod(), getCallOptions(), request); } @@ -894,8 +895,9 @@ public com.google.cloud.retail.v2alpha.LoggingConfig updateLoggingConfig( * */ public com.google.cloud.retail.v2alpha.AlertConfig getAlertConfig( - com.google.cloud.retail.v2alpha.GetAlertConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetAlertConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAlertConfigMethod(), getCallOptions(), request); } @@ -907,8 +909,9 @@ public com.google.cloud.retail.v2alpha.AlertConfig getAlertConfig( * */ public com.google.cloud.retail.v2alpha.AlertConfig updateAlertConfig( - com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAlertConfigMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceGrpc.java index 0582695d334a..9ceb8ee5d78f 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceGrpc.java @@ -26,9 +26,6 @@ * Enable Retail Search on Cloud Console before using this feature. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchServiceGrpc { @@ -250,8 +247,8 @@ protected SearchServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.SearchResponse search( - com.google.cloud.retail.v2alpha.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.SearchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceGrpc.java index 8d8189a51852..f3763b0dd10e 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceGrpc.java @@ -24,9 +24,6 @@ * Service for modifying ServingConfig. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/serving_config_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServingConfigServiceGrpc { @@ -749,8 +746,9 @@ protected ServingConfigServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.ServingConfig createServingConfig( - com.google.cloud.retail.v2alpha.CreateServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.CreateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServingConfigMethod(), getCallOptions(), request); } @@ -763,8 +761,9 @@ public com.google.cloud.retail.v2alpha.ServingConfig createServingConfig( * */ public com.google.protobuf.Empty deleteServingConfig( - com.google.cloud.retail.v2alpha.DeleteServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.DeleteServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServingConfigMethod(), getCallOptions(), request); } @@ -776,8 +775,9 @@ public com.google.protobuf.Empty deleteServingConfig( * */ public com.google.cloud.retail.v2alpha.ServingConfig updateServingConfig( - com.google.cloud.retail.v2alpha.UpdateServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.UpdateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServingConfigMethod(), getCallOptions(), request); } @@ -790,8 +790,9 @@ public com.google.cloud.retail.v2alpha.ServingConfig updateServingConfig( * */ public com.google.cloud.retail.v2alpha.ServingConfig getServingConfig( - com.google.cloud.retail.v2alpha.GetServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.GetServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServingConfigMethod(), getCallOptions(), request); } @@ -803,8 +804,9 @@ public com.google.cloud.retail.v2alpha.ServingConfig getServingConfig( * */ public com.google.cloud.retail.v2alpha.ListServingConfigsResponse listServingConfigs( - com.google.cloud.retail.v2alpha.ListServingConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ListServingConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServingConfigsMethod(), getCallOptions(), request); } @@ -822,8 +824,8 @@ public com.google.cloud.retail.v2alpha.ListServingConfigsResponse listServingCon * */ public com.google.cloud.retail.v2alpha.ServingConfig addControl( - com.google.cloud.retail.v2alpha.AddControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.AddControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddControlMethod(), getCallOptions(), request); } @@ -838,8 +840,9 @@ public com.google.cloud.retail.v2alpha.ServingConfig addControl( * */ public com.google.cloud.retail.v2alpha.ServingConfig removeControl( - com.google.cloud.retail.v2alpha.RemoveControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.RemoveControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveControlMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceGrpc.java index 73fc7905d9de..26ce8d90ffbf 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ingesting end user actions on the customer website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2alpha/user_event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserEventServiceGrpc { @@ -650,8 +647,9 @@ protected UserEventServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2alpha.UserEvent writeUserEvent( - com.google.cloud.retail.v2alpha.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.WriteUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteUserEventMethod(), getCallOptions(), request); } @@ -667,8 +665,9 @@ public com.google.cloud.retail.v2alpha.UserEvent writeUserEvent( * */ public com.google.api.HttpBody collectUserEvent( - com.google.cloud.retail.v2alpha.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.CollectUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } @@ -683,8 +682,9 @@ public com.google.api.HttpBody collectUserEvent( * */ public com.google.longrunning.Operation purgeUserEvents( - com.google.cloud.retail.v2alpha.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.PurgeUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); } @@ -701,8 +701,9 @@ public com.google.longrunning.Operation purgeUserEvents( * */ public com.google.longrunning.Operation importUserEvents( - com.google.cloud.retail.v2alpha.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ImportUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportUserEventsMethod(), getCallOptions(), request); } @@ -716,8 +717,9 @@ public com.google.longrunning.Operation importUserEvents( * */ public com.google.longrunning.Operation exportUserEvents( - com.google.cloud.retail.v2alpha.ExportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.ExportUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportUserEventsMethod(), getCallOptions(), request); } @@ -736,8 +738,9 @@ public com.google.longrunning.Operation exportUserEvents( * */ public com.google.longrunning.Operation rejoinUserEvents( - com.google.cloud.retail.v2alpha.RejoinUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2alpha.RejoinUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRejoinUserEventsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceGrpc.java index 84602099205d..07a9076fe0d4 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceGrpc.java @@ -25,9 +25,6 @@ * Retail recommendation business metric is currently not available. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/analytics_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AnalyticsServiceGrpc { @@ -252,8 +249,9 @@ protected AnalyticsServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation exportAnalyticsMetrics( - com.google.cloud.retail.v2beta.ExportAnalyticsMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ExportAnalyticsMetricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportAnalyticsMetricsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceGrpc.java index f296c86e384d..d678bfd7c82a 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing catalog configuration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/catalog_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CatalogServiceGrpc { @@ -1230,8 +1227,8 @@ protected CatalogServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.ListCatalogsResponse listCatalogs( - com.google.cloud.retail.v2beta.ListCatalogsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ListCatalogsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCatalogsMethod(), getCallOptions(), request); } @@ -1243,8 +1240,9 @@ public com.google.cloud.retail.v2beta.ListCatalogsResponse listCatalogs( * */ public com.google.cloud.retail.v2beta.Catalog updateCatalog( - com.google.cloud.retail.v2beta.UpdateCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCatalogMethod(), getCallOptions(), request); } @@ -1284,8 +1282,9 @@ public com.google.cloud.retail.v2beta.Catalog updateCatalog( * */ public com.google.protobuf.Empty setDefaultBranch( - com.google.cloud.retail.v2beta.SetDefaultBranchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.SetDefaultBranchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetDefaultBranchMethod(), getCallOptions(), request); } @@ -1299,8 +1298,9 @@ public com.google.protobuf.Empty setDefaultBranch( * */ public com.google.cloud.retail.v2beta.GetDefaultBranchResponse getDefaultBranch( - com.google.cloud.retail.v2beta.GetDefaultBranchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.GetDefaultBranchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDefaultBranchMethod(), getCallOptions(), request); } @@ -1312,8 +1312,9 @@ public com.google.cloud.retail.v2beta.GetDefaultBranchResponse getDefaultBranch( * */ public com.google.cloud.retail.v2beta.CompletionConfig getCompletionConfig( - com.google.cloud.retail.v2beta.GetCompletionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.GetCompletionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCompletionConfigMethod(), getCallOptions(), request); } @@ -1326,8 +1327,9 @@ public com.google.cloud.retail.v2beta.CompletionConfig getCompletionConfig( * */ public com.google.cloud.retail.v2beta.CompletionConfig updateCompletionConfig( - com.google.cloud.retail.v2beta.UpdateCompletionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateCompletionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCompletionConfigMethod(), getCallOptions(), request); } @@ -1339,8 +1341,9 @@ public com.google.cloud.retail.v2beta.CompletionConfig updateCompletionConfig( * */ public com.google.cloud.retail.v2beta.AttributesConfig getAttributesConfig( - com.google.cloud.retail.v2beta.GetAttributesConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.GetAttributesConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAttributesConfigMethod(), getCallOptions(), request); } @@ -1359,8 +1362,9 @@ public com.google.cloud.retail.v2beta.AttributesConfig getAttributesConfig( * */ public com.google.cloud.retail.v2beta.AttributesConfig updateAttributesConfig( - com.google.cloud.retail.v2beta.UpdateAttributesConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateAttributesConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAttributesConfigMethod(), getCallOptions(), request); } @@ -1376,8 +1380,9 @@ public com.google.cloud.retail.v2beta.AttributesConfig updateAttributesConfig( * */ public com.google.cloud.retail.v2beta.AttributesConfig addCatalogAttribute( - com.google.cloud.retail.v2beta.AddCatalogAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.AddCatalogAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddCatalogAttributeMethod(), getCallOptions(), request); } @@ -1393,8 +1398,9 @@ public com.google.cloud.retail.v2beta.AttributesConfig addCatalogAttribute( * */ public com.google.cloud.retail.v2beta.AttributesConfig removeCatalogAttribute( - com.google.cloud.retail.v2beta.RemoveCatalogAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.RemoveCatalogAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveCatalogAttributeMethod(), getCallOptions(), request); } @@ -1409,8 +1415,9 @@ public com.google.cloud.retail.v2beta.AttributesConfig removeCatalogAttribute( */ public com.google.cloud.retail.v2beta.BatchRemoveCatalogAttributesResponse batchRemoveCatalogAttributes( - com.google.cloud.retail.v2beta.BatchRemoveCatalogAttributesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.BatchRemoveCatalogAttributesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchRemoveCatalogAttributesMethod(), getCallOptions(), request); } @@ -1428,8 +1435,9 @@ public com.google.cloud.retail.v2beta.AttributesConfig removeCatalogAttribute( * */ public com.google.cloud.retail.v2beta.AttributesConfig replaceCatalogAttribute( - com.google.cloud.retail.v2beta.ReplaceCatalogAttributeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ReplaceCatalogAttributeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReplaceCatalogAttributeMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceGrpc.java index 229fc22f29b1..037ebe27ee09 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceGrpc.java @@ -26,9 +26,6 @@ * Enable Retail Search on Cloud Console before using this feature. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/completion_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompletionServiceGrpc { @@ -348,8 +345,9 @@ protected CompletionServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.CompleteQueryResponse completeQuery( - com.google.cloud.retail.v2beta.CompleteQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.CompleteQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } @@ -366,8 +364,9 @@ public com.google.cloud.retail.v2beta.CompleteQueryResponse completeQuery( * */ public com.google.longrunning.Operation importCompletionData( - com.google.cloud.retail.v2beta.ImportCompletionDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ImportCompletionDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportCompletionDataMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlServiceGrpc.java index 6b4c4148a1c0..e1cc17910902 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlServiceGrpc.java @@ -24,9 +24,6 @@ * Service for modifying Control. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/control_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ControlServiceGrpc { @@ -555,8 +552,9 @@ protected ControlServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.Control createControl( - com.google.cloud.retail.v2beta.CreateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.CreateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateControlMethod(), getCallOptions(), request); } @@ -570,8 +568,9 @@ public com.google.cloud.retail.v2beta.Control createControl( * */ public com.google.protobuf.Empty deleteControl( - com.google.cloud.retail.v2beta.DeleteControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.DeleteControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteControlMethod(), getCallOptions(), request); } @@ -587,8 +586,9 @@ public com.google.protobuf.Empty deleteControl( * */ public com.google.cloud.retail.v2beta.Control updateControl( - com.google.cloud.retail.v2beta.UpdateControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateControlMethod(), getCallOptions(), request); } @@ -600,8 +600,8 @@ public com.google.cloud.retail.v2beta.Control updateControl( * */ public com.google.cloud.retail.v2beta.Control getControl( - com.google.cloud.retail.v2beta.GetControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.GetControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetControlMethod(), getCallOptions(), request); } @@ -614,8 +614,8 @@ public com.google.cloud.retail.v2beta.Control getControl( * */ public com.google.cloud.retail.v2beta.ListControlsResponse listControls( - com.google.cloud.retail.v2beta.ListControlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ListControlsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListControlsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceGrpc.java index c271d43872dd..d1757705bc6a 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceGrpc.java @@ -27,9 +27,6 @@ * before using this feature. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/conversational_search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversationalSearchServiceGrpc { diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceGrpc.java index e582e9985818..9a880d2d827a 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing LLM generated questions in search serving. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/generative_question_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GenerativeQuestionServiceGrpc { @@ -611,8 +608,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig updateGenerativeQuestionsFeatureConfig( - com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGenerativeQuestionsFeatureConfigMethod(), getCallOptions(), @@ -629,8 +627,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig getGenerativeQuestionsFeatureConfig( - com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGenerativeQuestionsFeatureConfigMethod(), getCallOptions(), request); } @@ -643,8 +642,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( */ public com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse listGenerativeQuestionConfigs( - com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGenerativeQuestionConfigsMethod(), getCallOptions(), request); } @@ -656,8 +656,9 @@ protected GenerativeQuestionServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.GenerativeQuestionConfig updateGenerativeQuestionConfig( - com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGenerativeQuestionConfigMethod(), getCallOptions(), request); } @@ -670,8 +671,9 @@ public com.google.cloud.retail.v2beta.GenerativeQuestionConfig updateGenerativeQ */ public com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse batchUpdateGenerativeQuestionConfigs( - com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateGenerativeQuestionConfigsMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelServiceGrpc.java index e9b088ac775e..c335f906fe82 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelServiceGrpc.java @@ -33,9 +33,6 @@ * * Control their tuning schedule. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/model_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ModelServiceGrpc { @@ -780,8 +777,8 @@ protected ModelServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createModel( - com.google.cloud.retail.v2beta.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.CreateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelMethod(), getCallOptions(), request); } @@ -793,8 +790,8 @@ public com.google.longrunning.Operation createModel( * */ public com.google.cloud.retail.v2beta.Model getModel( - com.google.cloud.retail.v2beta.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.GetModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } @@ -806,8 +803,8 @@ public com.google.cloud.retail.v2beta.Model getModel( * */ public com.google.cloud.retail.v2beta.Model pauseModel( - com.google.cloud.retail.v2beta.PauseModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.PauseModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseModelMethod(), getCallOptions(), request); } @@ -819,8 +816,8 @@ public com.google.cloud.retail.v2beta.Model pauseModel( * */ public com.google.cloud.retail.v2beta.Model resumeModel( - com.google.cloud.retail.v2beta.ResumeModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ResumeModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeModelMethod(), getCallOptions(), request); } @@ -832,8 +829,8 @@ public com.google.cloud.retail.v2beta.Model resumeModel( * */ public com.google.protobuf.Empty deleteModel( - com.google.cloud.retail.v2beta.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.DeleteModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } @@ -845,8 +842,8 @@ public com.google.protobuf.Empty deleteModel( * */ public com.google.cloud.retail.v2beta.ListModelsResponse listModels( - com.google.cloud.retail.v2beta.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ListModelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } @@ -861,8 +858,8 @@ public com.google.cloud.retail.v2beta.ListModelsResponse listModels( * */ public com.google.cloud.retail.v2beta.Model updateModel( - com.google.cloud.retail.v2beta.UpdateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateModelMethod(), getCallOptions(), request); } @@ -874,8 +871,8 @@ public com.google.cloud.retail.v2beta.Model updateModel( * */ public com.google.longrunning.Operation tuneModel( - com.google.cloud.retail.v2beta.TuneModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.TuneModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTuneModelMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceGrpc.java index c2f333b41679..f471bd9aaf38 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceGrpc.java @@ -24,9 +24,6 @@ * Service for making recommendation prediction. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/prediction_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PredictionServiceGrpc { @@ -237,8 +234,8 @@ protected PredictionServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.PredictResponse predict( - com.google.cloud.retail.v2beta.PredictRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.PredictRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceGrpc.java index 88a7ce134a48..e901c5ec0b43 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceGrpc.java @@ -25,9 +25,6 @@ * information of the customer's website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/product_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductServiceGrpc { @@ -1453,8 +1450,9 @@ protected ProductServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.Product createProduct( - com.google.cloud.retail.v2beta.CreateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.CreateProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } @@ -1466,8 +1464,8 @@ public com.google.cloud.retail.v2beta.Product createProduct( * */ public com.google.cloud.retail.v2beta.Product getProduct( - com.google.cloud.retail.v2beta.GetProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.GetProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } @@ -1479,8 +1477,8 @@ public com.google.cloud.retail.v2beta.Product getProduct( * */ public com.google.cloud.retail.v2beta.ListProductsResponse listProducts( - com.google.cloud.retail.v2beta.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ListProductsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } @@ -1492,8 +1490,9 @@ public com.google.cloud.retail.v2beta.ListProductsResponse listProducts( * */ public com.google.cloud.retail.v2beta.Product updateProduct( - com.google.cloud.retail.v2beta.UpdateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } @@ -1505,8 +1504,9 @@ public com.google.cloud.retail.v2beta.Product updateProduct( * */ public com.google.protobuf.Empty deleteProduct( - com.google.cloud.retail.v2beta.DeleteProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.DeleteProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } @@ -1532,8 +1532,9 @@ public com.google.protobuf.Empty deleteProduct( * */ public com.google.longrunning.Operation purgeProducts( - com.google.cloud.retail.v2beta.PurgeProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.PurgeProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeProductsMethod(), getCallOptions(), request); } @@ -1549,8 +1550,9 @@ public com.google.longrunning.Operation purgeProducts( * */ public com.google.longrunning.Operation importProducts( - com.google.cloud.retail.v2beta.ImportProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ImportProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportProductsMethod(), getCallOptions(), request); } @@ -1562,8 +1564,9 @@ public com.google.longrunning.Operation importProducts( * */ public com.google.longrunning.Operation exportProducts( - com.google.cloud.retail.v2beta.ExportProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ExportProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportProductsMethod(), getCallOptions(), request); } @@ -1616,8 +1619,8 @@ public com.google.longrunning.Operation exportProducts( * */ public com.google.longrunning.Operation setInventory( - com.google.cloud.retail.v2beta.SetInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.SetInventoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetInventoryMethod(), getCallOptions(), request); } @@ -1654,8 +1657,9 @@ public com.google.longrunning.Operation setInventory( * */ public com.google.longrunning.Operation addFulfillmentPlaces( - com.google.cloud.retail.v2beta.AddFulfillmentPlacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.AddFulfillmentPlacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddFulfillmentPlacesMethod(), getCallOptions(), request); } @@ -1692,8 +1696,9 @@ public com.google.longrunning.Operation addFulfillmentPlaces( * */ public com.google.longrunning.Operation removeFulfillmentPlaces( - com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveFulfillmentPlacesMethod(), getCallOptions(), request); } @@ -1728,8 +1733,9 @@ public com.google.longrunning.Operation removeFulfillmentPlaces( * */ public com.google.longrunning.Operation addLocalInventories( - com.google.cloud.retail.v2beta.AddLocalInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.AddLocalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddLocalInventoriesMethod(), getCallOptions(), request); } @@ -1762,8 +1768,9 @@ public com.google.longrunning.Operation addLocalInventories( * */ public com.google.longrunning.Operation removeLocalInventories( - com.google.cloud.retail.v2beta.RemoveLocalInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.RemoveLocalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveLocalInventoriesMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceGrpc.java index eff931ebd3d3..dc7552153013 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceGrpc.java @@ -24,9 +24,6 @@ * Service for settings at Project level. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/project_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProjectServiceGrpc { @@ -316,8 +313,9 @@ protected ProjectServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.AlertConfig getAlertConfig( - com.google.cloud.retail.v2beta.GetAlertConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.GetAlertConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAlertConfigMethod(), getCallOptions(), request); } @@ -329,8 +327,9 @@ public com.google.cloud.retail.v2beta.AlertConfig getAlertConfig( * */ public com.google.cloud.retail.v2beta.AlertConfig updateAlertConfig( - com.google.cloud.retail.v2beta.UpdateAlertConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateAlertConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAlertConfigMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchServiceGrpc.java index 9966808d765f..b1bea20a4175 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchServiceGrpc.java @@ -26,9 +26,6 @@ * Enable Retail Search on Cloud Console before using this feature. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchServiceGrpc { @@ -250,8 +247,8 @@ protected SearchServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.SearchResponse search( - com.google.cloud.retail.v2beta.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.SearchRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceGrpc.java index e73ace8fb2ba..a77418840e47 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceGrpc.java @@ -24,9 +24,6 @@ * Service for modifying ServingConfig. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/serving_config_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServingConfigServiceGrpc { @@ -746,8 +743,9 @@ protected ServingConfigServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.ServingConfig createServingConfig( - com.google.cloud.retail.v2beta.CreateServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.CreateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServingConfigMethod(), getCallOptions(), request); } @@ -760,8 +758,9 @@ public com.google.cloud.retail.v2beta.ServingConfig createServingConfig( * */ public com.google.protobuf.Empty deleteServingConfig( - com.google.cloud.retail.v2beta.DeleteServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.DeleteServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServingConfigMethod(), getCallOptions(), request); } @@ -773,8 +772,9 @@ public com.google.protobuf.Empty deleteServingConfig( * */ public com.google.cloud.retail.v2beta.ServingConfig updateServingConfig( - com.google.cloud.retail.v2beta.UpdateServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.UpdateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServingConfigMethod(), getCallOptions(), request); } @@ -787,8 +787,9 @@ public com.google.cloud.retail.v2beta.ServingConfig updateServingConfig( * */ public com.google.cloud.retail.v2beta.ServingConfig getServingConfig( - com.google.cloud.retail.v2beta.GetServingConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.GetServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServingConfigMethod(), getCallOptions(), request); } @@ -800,8 +801,9 @@ public com.google.cloud.retail.v2beta.ServingConfig getServingConfig( * */ public com.google.cloud.retail.v2beta.ListServingConfigsResponse listServingConfigs( - com.google.cloud.retail.v2beta.ListServingConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ListServingConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServingConfigsMethod(), getCallOptions(), request); } @@ -819,8 +821,8 @@ public com.google.cloud.retail.v2beta.ListServingConfigsResponse listServingConf * */ public com.google.cloud.retail.v2beta.ServingConfig addControl( - com.google.cloud.retail.v2beta.AddControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.AddControlRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddControlMethod(), getCallOptions(), request); } @@ -835,8 +837,9 @@ public com.google.cloud.retail.v2beta.ServingConfig addControl( * */ public com.google.cloud.retail.v2beta.ServingConfig removeControl( - com.google.cloud.retail.v2beta.RemoveControlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.RemoveControlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveControlMethod(), getCallOptions(), request); } } diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceGrpc.java index ac2c385cde81..e0c84a22d453 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceGrpc.java @@ -24,9 +24,6 @@ * Service for ingesting end user actions on the customer website. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/retail/v2beta/user_event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserEventServiceGrpc { @@ -648,8 +645,9 @@ protected UserEventServiceBlockingV2Stub build( * */ public com.google.cloud.retail.v2beta.UserEvent writeUserEvent( - com.google.cloud.retail.v2beta.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.WriteUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getWriteUserEventMethod(), getCallOptions(), request); } @@ -665,8 +663,9 @@ public com.google.cloud.retail.v2beta.UserEvent writeUserEvent( * */ public com.google.api.HttpBody collectUserEvent( - com.google.cloud.retail.v2beta.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.CollectUserEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } @@ -681,8 +680,9 @@ public com.google.api.HttpBody collectUserEvent( * */ public com.google.longrunning.Operation purgeUserEvents( - com.google.cloud.retail.v2beta.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.PurgeUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); } @@ -699,8 +699,9 @@ public com.google.longrunning.Operation purgeUserEvents( * */ public com.google.longrunning.Operation importUserEvents( - com.google.cloud.retail.v2beta.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ImportUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportUserEventsMethod(), getCallOptions(), request); } @@ -714,8 +715,9 @@ public com.google.longrunning.Operation importUserEvents( * */ public com.google.longrunning.Operation exportUserEvents( - com.google.cloud.retail.v2beta.ExportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.ExportUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportUserEventsMethod(), getCallOptions(), request); } @@ -734,8 +736,9 @@ public com.google.longrunning.Operation exportUserEvents( * */ public com.google.longrunning.Operation rejoinUserEvents( - com.google.cloud.retail.v2beta.RejoinUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.retail.v2beta.RejoinUserEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRejoinUserEventsMethod(), getCallOptions(), request); } } diff --git a/java-run/README.md b/java-run/README.md index bc774766f914..665f17a5bc76 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.77.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.77.0' +implementation 'com.google.cloud:google-cloud-run:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildsGrpc.java index 6d759c95b9d8..aa1d52c3ee2a 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildsGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildsGrpc.java @@ -24,9 +24,6 @@ * Cloud Run Build Control Plane API * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/build.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BuildsGrpc { @@ -228,8 +225,8 @@ protected BuildsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.run.v2.SubmitBuildResponse submitBuild( - com.google.cloud.run.v2.SubmitBuildRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.SubmitBuildRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitBuildMethod(), getCallOptions(), request); } } diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java index 1b4763407352..4079b51b0937 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java @@ -24,9 +24,6 @@ * Cloud Run Execution Control Plane API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/execution.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExecutionsGrpc { @@ -451,8 +448,8 @@ protected ExecutionsBlockingV2Stub build( * */ public com.google.cloud.run.v2.Execution getExecution( - com.google.cloud.run.v2.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.GetExecutionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExecutionMethod(), getCallOptions(), request); } @@ -465,8 +462,8 @@ public com.google.cloud.run.v2.Execution getExecution( * */ public com.google.cloud.run.v2.ListExecutionsResponse listExecutions( - com.google.cloud.run.v2.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.ListExecutionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExecutionsMethod(), getCallOptions(), request); } @@ -478,8 +475,8 @@ public com.google.cloud.run.v2.ListExecutionsResponse listExecutions( * */ public com.google.longrunning.Operation deleteExecution( - com.google.cloud.run.v2.DeleteExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.DeleteExecutionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); } @@ -491,8 +488,8 @@ public com.google.longrunning.Operation deleteExecution( * */ public com.google.longrunning.Operation cancelExecution( - com.google.cloud.run.v2.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.CancelExecutionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelExecutionMethod(), getCallOptions(), request); } } diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java index 8c57a63e606f..fc56fa0d3658 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java @@ -24,9 +24,6 @@ * Cloud Run Job Control Plane API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/job.proto") @io.grpc.stub.annotations.GrpcGenerated public final class JobsGrpc { @@ -774,8 +771,8 @@ protected JobsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions * */ public com.google.longrunning.Operation createJob( - com.google.cloud.run.v2.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.CreateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -786,8 +783,9 @@ public com.google.longrunning.Operation createJob( * Gets information about a Job. * */ - public com.google.cloud.run.v2.Job getJob(com.google.cloud.run.v2.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.run.v2.Job getJob(com.google.cloud.run.v2.GetJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -799,8 +797,8 @@ public com.google.cloud.run.v2.Job getJob(com.google.cloud.run.v2.GetJobRequest * */ public com.google.cloud.run.v2.ListJobsResponse listJobs( - com.google.cloud.run.v2.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -812,8 +810,8 @@ public com.google.cloud.run.v2.ListJobsResponse listJobs( * */ public com.google.longrunning.Operation updateJob( - com.google.cloud.run.v2.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.UpdateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateJobMethod(), getCallOptions(), request); } @@ -825,8 +823,8 @@ public com.google.longrunning.Operation updateJob( * */ public com.google.longrunning.Operation deleteJob( - com.google.cloud.run.v2.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.DeleteJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } @@ -837,8 +835,9 @@ public com.google.longrunning.Operation deleteJob( * Triggers creation of a new Execution of this Job. * */ - public com.google.longrunning.Operation runJob(com.google.cloud.run.v2.RunJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.longrunning.Operation runJob(com.google.cloud.run.v2.RunJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunJobMethod(), getCallOptions(), request); } @@ -850,8 +849,9 @@ public com.google.longrunning.Operation runJob(com.google.cloud.run.v2.RunJobReq * This result does not include any inherited policies. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -863,8 +863,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * any existing policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -877,8 +878,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java index 2697d5d3d832..ba008b5e64aa 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java @@ -24,9 +24,6 @@ * Cloud Run Revision Control Plane API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/revision.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RevisionsGrpc { @@ -378,8 +375,8 @@ protected RevisionsBlockingV2Stub build( * */ public com.google.cloud.run.v2.Revision getRevision( - com.google.cloud.run.v2.GetRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.GetRevisionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRevisionMethod(), getCallOptions(), request); } @@ -392,8 +389,8 @@ public com.google.cloud.run.v2.Revision getRevision( * */ public com.google.cloud.run.v2.ListRevisionsResponse listRevisions( - com.google.cloud.run.v2.ListRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.ListRevisionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRevisionsMethod(), getCallOptions(), request); } @@ -405,8 +402,8 @@ public com.google.cloud.run.v2.ListRevisionsResponse listRevisions( * */ public com.google.longrunning.Operation deleteRevision( - com.google.cloud.run.v2.DeleteRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.DeleteRevisionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRevisionMethod(), getCallOptions(), request); } } diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java index 19157659a784..0d9a5f388215 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java @@ -24,9 +24,6 @@ * Cloud Run Service Control Plane API * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServicesGrpc { @@ -733,8 +730,8 @@ protected ServicesBlockingV2Stub build( * */ public com.google.longrunning.Operation createService( - com.google.cloud.run.v2.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.CreateServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); } @@ -746,8 +743,8 @@ public com.google.longrunning.Operation createService( * */ public com.google.cloud.run.v2.Service getService( - com.google.cloud.run.v2.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.GetServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -759,8 +756,8 @@ public com.google.cloud.run.v2.Service getService( * */ public com.google.cloud.run.v2.ListServicesResponse listServices( - com.google.cloud.run.v2.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.ListServicesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -772,8 +769,8 @@ public com.google.cloud.run.v2.ListServicesResponse listServices( * */ public com.google.longrunning.Operation updateService( - com.google.cloud.run.v2.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.UpdateServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } @@ -787,8 +784,8 @@ public com.google.longrunning.Operation updateService( * */ public com.google.longrunning.Operation deleteService( - com.google.cloud.run.v2.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.DeleteServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } @@ -800,8 +797,9 @@ public com.google.longrunning.Operation deleteService( * Cloud Run Service. This result does not include any inherited policies. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -813,8 +811,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * any existing policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -827,8 +826,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java index 9ee5ad262609..3825aae32f39 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java @@ -24,9 +24,6 @@ * Cloud Run Task Control Plane API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/task.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TasksGrpc { @@ -289,8 +286,9 @@ protected TasksBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions * Gets information about a Task. * */ - public com.google.cloud.run.v2.Task getTask(com.google.cloud.run.v2.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.run.v2.Task getTask(com.google.cloud.run.v2.GetTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaskMethod(), getCallOptions(), request); } @@ -302,8 +300,8 @@ public com.google.cloud.run.v2.Task getTask(com.google.cloud.run.v2.GetTaskReque * */ public com.google.cloud.run.v2.ListTasksResponse listTasks( - com.google.cloud.run.v2.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.ListTasksRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTasksMethod(), getCallOptions(), request); } } diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolsGrpc.java index eace98e04c00..2ac94eeb1c49 100644 --- a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolsGrpc.java +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolsGrpc.java @@ -24,9 +24,6 @@ * Cloud Run WorkerPool Control Plane API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/worker_pool.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WorkerPoolsGrpc { @@ -741,8 +738,8 @@ protected WorkerPoolsBlockingV2Stub build( * */ public com.google.longrunning.Operation createWorkerPool( - com.google.cloud.run.v2.CreateWorkerPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.CreateWorkerPoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkerPoolMethod(), getCallOptions(), request); } @@ -754,8 +751,8 @@ public com.google.longrunning.Operation createWorkerPool( * */ public com.google.cloud.run.v2.WorkerPool getWorkerPool( - com.google.cloud.run.v2.GetWorkerPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.GetWorkerPoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkerPoolMethod(), getCallOptions(), request); } @@ -767,8 +764,8 @@ public com.google.cloud.run.v2.WorkerPool getWorkerPool( * */ public com.google.cloud.run.v2.ListWorkerPoolsResponse listWorkerPools( - com.google.cloud.run.v2.ListWorkerPoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.ListWorkerPoolsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkerPoolsMethod(), getCallOptions(), request); } @@ -780,8 +777,8 @@ public com.google.cloud.run.v2.ListWorkerPoolsResponse listWorkerPools( * */ public com.google.longrunning.Operation updateWorkerPool( - com.google.cloud.run.v2.UpdateWorkerPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.UpdateWorkerPoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkerPoolMethod(), getCallOptions(), request); } @@ -793,8 +790,8 @@ public com.google.longrunning.Operation updateWorkerPool( * */ public com.google.longrunning.Operation deleteWorkerPool( - com.google.cloud.run.v2.DeleteWorkerPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.run.v2.DeleteWorkerPoolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkerPoolMethod(), getCallOptions(), request); } @@ -806,8 +803,9 @@ public com.google.longrunning.Operation deleteWorkerPool( * Cloud Run WorkerPool. This result does not include any inherited policies. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -819,8 +817,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * any existing policy. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -833,8 +832,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index d9a3e9849c3a..8cabbd2c16e2 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-saasservicemgmt - 0.7.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.7.0' +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.8.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-saasservicemgmt.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsGrpc.java b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsGrpc.java index c2618ca9cc94..90e2962508d0 100644 --- a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsGrpc.java +++ b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsGrpc.java @@ -24,10 +24,6 @@ * Manages the deployment of SaaS services. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = - "Source: google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SaasDeploymentsGrpc { @@ -2524,8 +2520,9 @@ protected SaasDeploymentsBlockingV2Stub build( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse listSaas( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSaasMethod(), getCallOptions(), request); } @@ -2537,8 +2534,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse li * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSaasMethod(), getCallOptions(), request); } @@ -2550,8 +2548,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas createSaas( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSaasMethod(), getCallOptions(), request); } @@ -2563,8 +2562,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas createSaas( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas updateSaas( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSaasMethod(), getCallOptions(), request); } @@ -2576,8 +2576,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas updateSaas( * */ public com.google.protobuf.Empty deleteSaas( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSaasMethod(), getCallOptions(), request); } @@ -2589,8 +2590,9 @@ public com.google.protobuf.Empty deleteSaas( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse listTenants( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTenantsMethod(), getCallOptions(), request); } @@ -2602,8 +2604,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTenantMethod(), getCallOptions(), request); } @@ -2615,8 +2618,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant createTenant( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTenantMethod(), getCallOptions(), request); } @@ -2628,8 +2632,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant createTenant * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant updateTenant( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTenantMethod(), getCallOptions(), request); } @@ -2641,8 +2646,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant updateTenant * */ public com.google.protobuf.Empty deleteTenant( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTenantMethod(), getCallOptions(), request); } @@ -2655,8 +2661,9 @@ public com.google.protobuf.Empty deleteTenant( */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse listUnitKinds( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUnitKindsMethod(), getCallOptions(), request); } @@ -2668,8 +2675,9 @@ public com.google.protobuf.Empty deleteTenant( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKind( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUnitKindMethod(), getCallOptions(), request); } @@ -2681,8 +2689,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKin * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind createUnitKind( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUnitKindMethod(), getCallOptions(), request); } @@ -2694,8 +2703,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind createUnit * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind updateUnitKind( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUnitKindMethod(), getCallOptions(), request); } @@ -2707,8 +2717,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind updateUnit * */ public com.google.protobuf.Empty deleteUnitKind( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUnitKindMethod(), getCallOptions(), request); } @@ -2720,8 +2731,9 @@ public com.google.protobuf.Empty deleteUnitKind( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse listUnits( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUnitsMethod(), getCallOptions(), request); } @@ -2733,8 +2745,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse l * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUnitMethod(), getCallOptions(), request); } @@ -2746,8 +2759,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit createUnit( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUnitMethod(), getCallOptions(), request); } @@ -2759,8 +2773,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit createUnit( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit updateUnit( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUnitMethod(), getCallOptions(), request); } @@ -2772,8 +2787,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit updateUnit( * */ public com.google.protobuf.Empty deleteUnit( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUnitMethod(), getCallOptions(), request); } @@ -2786,9 +2802,9 @@ public com.google.protobuf.Empty deleteUnit( */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse listUnitOperations( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUnitOperationsMethod(), getCallOptions(), request); } @@ -2800,8 +2816,9 @@ public com.google.protobuf.Empty deleteUnit( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperation( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUnitOperationMethod(), getCallOptions(), request); } @@ -2813,8 +2830,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUn * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation createUnitOperation( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUnitOperationMethod(), getCallOptions(), request); } @@ -2826,8 +2844,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation creat * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation updateUnitOperation( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUnitOperationMethod(), getCallOptions(), request); } @@ -2839,8 +2858,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation updat * */ public com.google.protobuf.Empty deleteUnitOperation( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUnitOperationMethod(), getCallOptions(), request); } @@ -2852,8 +2872,9 @@ public com.google.protobuf.Empty deleteUnitOperation( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse listReleases( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReleasesMethod(), getCallOptions(), request); } @@ -2865,8 +2886,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRespons * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReleaseMethod(), getCallOptions(), request); } @@ -2878,8 +2900,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release createRelease( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReleaseMethod(), getCallOptions(), request); } @@ -2891,8 +2914,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release createRelea * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release updateRelease( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReleaseMethod(), getCallOptions(), request); } @@ -2904,8 +2928,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release updateRelea * */ public com.google.protobuf.Empty deleteRelease( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReleaseMethod(), getCallOptions(), request); } } diff --git a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsGrpc.java b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsGrpc.java index 7c56504820f5..575e494cdad2 100644 --- a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsGrpc.java +++ b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsGrpc.java @@ -24,9 +24,6 @@ * Manages the rollout of SaaS services. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SaasRolloutsGrpc { @@ -967,8 +964,9 @@ protected SaasRolloutsBlockingV2Stub build( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse listRollouts( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRolloutsMethod(), getCallOptions(), request); } @@ -980,8 +978,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRespons * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRolloutMethod(), getCallOptions(), request); } @@ -993,8 +992,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout createRollout( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRolloutMethod(), getCallOptions(), request); } @@ -1006,8 +1006,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout createRollo * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout updateRollout( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRolloutMethod(), getCallOptions(), request); } @@ -1019,8 +1020,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout updateRollo * */ public com.google.protobuf.Empty deleteRollout( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRolloutMethod(), getCallOptions(), request); } @@ -1033,8 +1035,9 @@ public com.google.protobuf.Empty deleteRollout( */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse listRolloutKinds( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRolloutKindsMethod(), getCallOptions(), request); } @@ -1046,8 +1049,9 @@ public com.google.protobuf.Empty deleteRollout( * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKind( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRolloutKindMethod(), getCallOptions(), request); } @@ -1059,8 +1063,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRoll * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind createRolloutKind( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRolloutKindMethod(), getCallOptions(), request); } @@ -1072,8 +1077,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind createR * */ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind updateRolloutKind( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRolloutKindMethod(), getCallOptions(), request); } @@ -1085,8 +1091,9 @@ public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind updateR * */ public com.google.protobuf.Empty deleteRolloutKind( - com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRolloutKindMethod(), getCallOptions(), request); } } diff --git a/java-scheduler/README.md b/java-scheduler/README.md index 7e8f96ecb4a4..483b0e077814 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.77.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerGrpc.java b/java-scheduler/grpc-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerGrpc.java index 43097f733b4b..65b59feeefb2 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerGrpc.java +++ b/java-scheduler/grpc-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerGrpc.java @@ -25,9 +25,6 @@ * schedule asynchronous jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/scheduler/v1/cloudscheduler.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudSchedulerGrpc { @@ -762,8 +759,8 @@ protected CloudSchedulerBlockingV2Stub build( * */ public com.google.cloud.scheduler.v1.ListJobsResponse listJobs( - com.google.cloud.scheduler.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -775,8 +772,8 @@ public com.google.cloud.scheduler.v1.ListJobsResponse listJobs( * */ public com.google.cloud.scheduler.v1.Job getJob( - com.google.cloud.scheduler.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1.GetJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -788,8 +785,8 @@ public com.google.cloud.scheduler.v1.Job getJob( * */ public com.google.cloud.scheduler.v1.Job createJob( - com.google.cloud.scheduler.v1.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1.CreateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -808,8 +805,8 @@ public com.google.cloud.scheduler.v1.Job createJob( * */ public com.google.cloud.scheduler.v1.Job updateJob( - com.google.cloud.scheduler.v1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1.UpdateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateJobMethod(), getCallOptions(), request); } @@ -821,8 +818,8 @@ public com.google.cloud.scheduler.v1.Job updateJob( * */ public com.google.protobuf.Empty deleteJob( - com.google.cloud.scheduler.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1.DeleteJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } @@ -842,8 +839,8 @@ public com.google.protobuf.Empty deleteJob( * */ public com.google.cloud.scheduler.v1.Job pauseJob( - com.google.cloud.scheduler.v1.PauseJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1.PauseJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseJobMethod(), getCallOptions(), request); } @@ -862,8 +859,8 @@ public com.google.cloud.scheduler.v1.Job pauseJob( * */ public com.google.cloud.scheduler.v1.Job resumeJob( - com.google.cloud.scheduler.v1.ResumeJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1.ResumeJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeJobMethod(), getCallOptions(), request); } @@ -877,8 +874,8 @@ public com.google.cloud.scheduler.v1.Job resumeJob( * */ public com.google.cloud.scheduler.v1.Job runJob( - com.google.cloud.scheduler.v1.RunJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1.RunJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunJobMethod(), getCallOptions(), request); } } diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerGrpc.java b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerGrpc.java index 1ebfd08ddd7e..0a836e80e069 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerGrpc.java +++ b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerGrpc.java @@ -25,9 +25,6 @@ * schedule asynchronous jobs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/scheduler/v1beta1/cloudscheduler.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudSchedulerGrpc { @@ -793,8 +790,8 @@ protected CloudSchedulerBlockingV2Stub build( * */ public com.google.cloud.scheduler.v1beta1.ListJobsResponse listJobs( - com.google.cloud.scheduler.v1beta1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1beta1.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -806,8 +803,8 @@ public com.google.cloud.scheduler.v1beta1.ListJobsResponse listJobs( * */ public com.google.cloud.scheduler.v1beta1.Job getJob( - com.google.cloud.scheduler.v1beta1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1beta1.GetJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -819,8 +816,9 @@ public com.google.cloud.scheduler.v1beta1.Job getJob( * */ public com.google.cloud.scheduler.v1beta1.Job createJob( - com.google.cloud.scheduler.v1beta1.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1beta1.CreateJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -839,8 +837,9 @@ public com.google.cloud.scheduler.v1beta1.Job createJob( * */ public com.google.cloud.scheduler.v1beta1.Job updateJob( - com.google.cloud.scheduler.v1beta1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1beta1.UpdateJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateJobMethod(), getCallOptions(), request); } @@ -852,8 +851,9 @@ public com.google.cloud.scheduler.v1beta1.Job updateJob( * */ public com.google.protobuf.Empty deleteJob( - com.google.cloud.scheduler.v1beta1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1beta1.DeleteJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } @@ -874,8 +874,8 @@ public com.google.protobuf.Empty deleteJob( * */ public com.google.cloud.scheduler.v1beta1.Job pauseJob( - com.google.cloud.scheduler.v1beta1.PauseJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1beta1.PauseJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseJobMethod(), getCallOptions(), request); } @@ -896,8 +896,9 @@ public com.google.cloud.scheduler.v1beta1.Job pauseJob( * */ public com.google.cloud.scheduler.v1beta1.Job resumeJob( - com.google.cloud.scheduler.v1beta1.ResumeJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1beta1.ResumeJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeJobMethod(), getCallOptions(), request); } @@ -911,8 +912,8 @@ public com.google.cloud.scheduler.v1beta1.Job resumeJob( * */ public com.google.cloud.scheduler.v1beta1.Job runJob( - com.google.cloud.scheduler.v1beta1.RunJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.scheduler.v1beta1.RunJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunJobMethod(), getCallOptions(), request); } } diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 9766d2f84c20..7578aeb5f4de 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.77.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java b/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java index 3ede25c1fc32..fd63c68624a0 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java @@ -28,9 +28,6 @@ * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/secretmanager/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecretManagerServiceGrpc { @@ -1404,8 +1401,9 @@ protected SecretManagerServiceBlockingV2Stub build( * */ public com.google.cloud.secretmanager.v1.ListSecretsResponse listSecrets( - com.google.cloud.secretmanager.v1.ListSecretsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.ListSecretsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecretsMethod(), getCallOptions(), request); } @@ -1418,8 +1416,9 @@ public com.google.cloud.secretmanager.v1.ListSecretsResponse listSecrets( * */ public com.google.cloud.secretmanager.v1.Secret createSecret( - com.google.cloud.secretmanager.v1.CreateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.CreateSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecretMethod(), getCallOptions(), request); } @@ -1433,8 +1432,9 @@ public com.google.cloud.secretmanager.v1.Secret createSecret( * */ public com.google.cloud.secretmanager.v1.SecretVersion addSecretVersion( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddSecretVersionMethod(), getCallOptions(), request); } @@ -1446,8 +1446,8 @@ public com.google.cloud.secretmanager.v1.SecretVersion addSecretVersion( * */ public com.google.cloud.secretmanager.v1.Secret getSecret( - com.google.cloud.secretmanager.v1.GetSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.GetSecretRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecretMethod(), getCallOptions(), request); } @@ -1460,8 +1460,9 @@ public com.google.cloud.secretmanager.v1.Secret getSecret( * */ public com.google.cloud.secretmanager.v1.Secret updateSecret( - com.google.cloud.secretmanager.v1.UpdateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.UpdateSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecretMethod(), getCallOptions(), request); } @@ -1473,8 +1474,9 @@ public com.google.cloud.secretmanager.v1.Secret updateSecret( * */ public com.google.protobuf.Empty deleteSecret( - com.google.cloud.secretmanager.v1.DeleteSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.DeleteSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSecretMethod(), getCallOptions(), request); } @@ -1487,8 +1489,9 @@ public com.google.protobuf.Empty deleteSecret( * */ public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse listSecretVersions( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecretVersionsMethod(), getCallOptions(), request); } @@ -1503,8 +1506,9 @@ public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse listSecretVe * */ public com.google.cloud.secretmanager.v1.SecretVersion getSecretVersion( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecretVersionMethod(), getCallOptions(), request); } @@ -1519,8 +1523,9 @@ public com.google.cloud.secretmanager.v1.SecretVersion getSecretVersion( * */ public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse accessSecretVersion( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAccessSecretVersionMethod(), getCallOptions(), request); } @@ -1535,8 +1540,9 @@ public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse accessSecre * */ public com.google.cloud.secretmanager.v1.SecretVersion disableSecretVersion( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableSecretVersionMethod(), getCallOptions(), request); } @@ -1551,8 +1557,9 @@ public com.google.cloud.secretmanager.v1.SecretVersion disableSecretVersion( * */ public com.google.cloud.secretmanager.v1.SecretVersion enableSecretVersion( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableSecretVersionMethod(), getCallOptions(), request); } @@ -1568,8 +1575,9 @@ public com.google.cloud.secretmanager.v1.SecretVersion enableSecretVersion( * */ public com.google.cloud.secretmanager.v1.SecretVersion destroySecretVersion( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDestroySecretVersionMethod(), getCallOptions(), request); } @@ -1585,8 +1593,9 @@ public com.google.cloud.secretmanager.v1.SecretVersion destroySecretVersion( * [Secret][google.cloud.secretmanager.v1.Secret]. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1598,8 +1607,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * Returns empty policy if the secret exists and does not have a policy set. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1616,8 +1626,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceGrpc.java b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceGrpc.java index 14fe5b42f35c..a988f25d43cd 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceGrpc.java +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceGrpc.java @@ -28,9 +28,6 @@ * * [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/secrets/v1beta1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecretManagerServiceGrpc { @@ -1417,8 +1414,9 @@ protected SecretManagerServiceBlockingV2Stub build( * */ public com.google.cloud.secretmanager.v1beta1.ListSecretsResponse listSecrets( - com.google.cloud.secretmanager.v1beta1.ListSecretsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.ListSecretsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecretsMethod(), getCallOptions(), request); } @@ -1431,8 +1429,9 @@ public com.google.cloud.secretmanager.v1beta1.ListSecretsResponse listSecrets( * */ public com.google.cloud.secretmanager.v1beta1.Secret createSecret( - com.google.cloud.secretmanager.v1beta1.CreateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.CreateSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecretMethod(), getCallOptions(), request); } @@ -1446,8 +1445,9 @@ public com.google.cloud.secretmanager.v1beta1.Secret createSecret( * */ public com.google.cloud.secretmanager.v1beta1.SecretVersion addSecretVersion( - com.google.cloud.secretmanager.v1beta1.AddSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.AddSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddSecretVersionMethod(), getCallOptions(), request); } @@ -1459,8 +1459,9 @@ public com.google.cloud.secretmanager.v1beta1.SecretVersion addSecretVersion( * */ public com.google.cloud.secretmanager.v1beta1.Secret getSecret( - com.google.cloud.secretmanager.v1beta1.GetSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.GetSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecretMethod(), getCallOptions(), request); } @@ -1473,8 +1474,9 @@ public com.google.cloud.secretmanager.v1beta1.Secret getSecret( * */ public com.google.cloud.secretmanager.v1beta1.Secret updateSecret( - com.google.cloud.secretmanager.v1beta1.UpdateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.UpdateSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecretMethod(), getCallOptions(), request); } @@ -1486,8 +1488,9 @@ public com.google.cloud.secretmanager.v1beta1.Secret updateSecret( * */ public com.google.protobuf.Empty deleteSecret( - com.google.cloud.secretmanager.v1beta1.DeleteSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.DeleteSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSecretMethod(), getCallOptions(), request); } @@ -1500,8 +1503,9 @@ public com.google.protobuf.Empty deleteSecret( * */ public com.google.cloud.secretmanager.v1beta1.ListSecretVersionsResponse listSecretVersions( - com.google.cloud.secretmanager.v1beta1.ListSecretVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.ListSecretVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecretVersionsMethod(), getCallOptions(), request); } @@ -1516,8 +1520,9 @@ public com.google.cloud.secretmanager.v1beta1.ListSecretVersionsResponse listSec * */ public com.google.cloud.secretmanager.v1beta1.SecretVersion getSecretVersion( - com.google.cloud.secretmanager.v1beta1.GetSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.GetSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecretVersionMethod(), getCallOptions(), request); } @@ -1532,8 +1537,9 @@ public com.google.cloud.secretmanager.v1beta1.SecretVersion getSecretVersion( * */ public com.google.cloud.secretmanager.v1beta1.AccessSecretVersionResponse accessSecretVersion( - com.google.cloud.secretmanager.v1beta1.AccessSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.AccessSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAccessSecretVersionMethod(), getCallOptions(), request); } @@ -1548,8 +1554,9 @@ public com.google.cloud.secretmanager.v1beta1.AccessSecretVersionResponse access * */ public com.google.cloud.secretmanager.v1beta1.SecretVersion disableSecretVersion( - com.google.cloud.secretmanager.v1beta1.DisableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.DisableSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableSecretVersionMethod(), getCallOptions(), request); } @@ -1564,8 +1571,9 @@ public com.google.cloud.secretmanager.v1beta1.SecretVersion disableSecretVersion * */ public com.google.cloud.secretmanager.v1beta1.SecretVersion enableSecretVersion( - com.google.cloud.secretmanager.v1beta1.EnableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.EnableSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableSecretVersionMethod(), getCallOptions(), request); } @@ -1581,8 +1589,9 @@ public com.google.cloud.secretmanager.v1beta1.SecretVersion enableSecretVersion( * */ public com.google.cloud.secretmanager.v1beta1.SecretVersion destroySecretVersion( - com.google.cloud.secretmanager.v1beta1.DestroySecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta1.DestroySecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDestroySecretVersionMethod(), getCallOptions(), request); } @@ -1597,8 +1606,9 @@ public com.google.cloud.secretmanager.v1beta1.SecretVersion destroySecretVersion * [Secret][google.cloud.secrets.v1beta1.Secret]. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1610,8 +1620,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * Returns empty policy if the secret exists and does not have a policy set. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1628,8 +1639,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceGrpc.java b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceGrpc.java index 5964d5e8216c..21da9b04845d 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceGrpc.java +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceGrpc.java @@ -28,9 +28,6 @@ * * [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/secretmanager/v1beta2/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecretManagerServiceGrpc { @@ -1433,8 +1430,9 @@ protected SecretManagerServiceBlockingV2Stub build( * */ public com.google.cloud.secretmanager.v1beta2.ListSecretsResponse listSecrets( - com.google.cloud.secretmanager.v1beta2.ListSecretsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.ListSecretsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecretsMethod(), getCallOptions(), request); } @@ -1448,8 +1446,9 @@ public com.google.cloud.secretmanager.v1beta2.ListSecretsResponse listSecrets( * */ public com.google.cloud.secretmanager.v1beta2.Secret createSecret( - com.google.cloud.secretmanager.v1beta2.CreateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.CreateSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecretMethod(), getCallOptions(), request); } @@ -1464,8 +1463,9 @@ public com.google.cloud.secretmanager.v1beta2.Secret createSecret( * */ public com.google.cloud.secretmanager.v1beta2.SecretVersion addSecretVersion( - com.google.cloud.secretmanager.v1beta2.AddSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.AddSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddSecretVersionMethod(), getCallOptions(), request); } @@ -1478,8 +1478,9 @@ public com.google.cloud.secretmanager.v1beta2.SecretVersion addSecretVersion( * */ public com.google.cloud.secretmanager.v1beta2.Secret getSecret( - com.google.cloud.secretmanager.v1beta2.GetSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.GetSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecretMethod(), getCallOptions(), request); } @@ -1492,8 +1493,9 @@ public com.google.cloud.secretmanager.v1beta2.Secret getSecret( * */ public com.google.cloud.secretmanager.v1beta2.Secret updateSecret( - com.google.cloud.secretmanager.v1beta2.UpdateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.UpdateSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecretMethod(), getCallOptions(), request); } @@ -1505,8 +1507,9 @@ public com.google.cloud.secretmanager.v1beta2.Secret updateSecret( * */ public com.google.protobuf.Empty deleteSecret( - com.google.cloud.secretmanager.v1beta2.DeleteSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.DeleteSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSecretMethod(), getCallOptions(), request); } @@ -1519,8 +1522,9 @@ public com.google.protobuf.Empty deleteSecret( * */ public com.google.cloud.secretmanager.v1beta2.ListSecretVersionsResponse listSecretVersions( - com.google.cloud.secretmanager.v1beta2.ListSecretVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.ListSecretVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecretVersionsMethod(), getCallOptions(), request); } @@ -1535,8 +1539,9 @@ public com.google.cloud.secretmanager.v1beta2.ListSecretVersionsResponse listSec * */ public com.google.cloud.secretmanager.v1beta2.SecretVersion getSecretVersion( - com.google.cloud.secretmanager.v1beta2.GetSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.GetSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecretVersionMethod(), getCallOptions(), request); } @@ -1552,8 +1557,9 @@ public com.google.cloud.secretmanager.v1beta2.SecretVersion getSecretVersion( * */ public com.google.cloud.secretmanager.v1beta2.AccessSecretVersionResponse accessSecretVersion( - com.google.cloud.secretmanager.v1beta2.AccessSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.AccessSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAccessSecretVersionMethod(), getCallOptions(), request); } @@ -1569,8 +1575,9 @@ public com.google.cloud.secretmanager.v1beta2.AccessSecretVersionResponse access * */ public com.google.cloud.secretmanager.v1beta2.SecretVersion disableSecretVersion( - com.google.cloud.secretmanager.v1beta2.DisableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.DisableSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableSecretVersionMethod(), getCallOptions(), request); } @@ -1586,8 +1593,9 @@ public com.google.cloud.secretmanager.v1beta2.SecretVersion disableSecretVersion * */ public com.google.cloud.secretmanager.v1beta2.SecretVersion enableSecretVersion( - com.google.cloud.secretmanager.v1beta2.EnableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.EnableSecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableSecretVersionMethod(), getCallOptions(), request); } @@ -1604,8 +1612,9 @@ public com.google.cloud.secretmanager.v1beta2.SecretVersion enableSecretVersion( * */ public com.google.cloud.secretmanager.v1beta2.SecretVersion destroySecretVersion( - com.google.cloud.secretmanager.v1beta2.DestroySecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.secretmanager.v1beta2.DestroySecretVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDestroySecretVersionMethod(), getCallOptions(), request); } @@ -1621,8 +1630,9 @@ public com.google.cloud.secretmanager.v1beta2.SecretVersion destroySecretVersion * [Secret][google.cloud.secretmanager.v1beta2.Secret]. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1634,8 +1644,9 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * Returns empty policy if the secret exists and does not have a policy set. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1652,8 +1663,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 90ef49df3b73..b5b34ae9499f 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.47.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.48.0" ``` ## Authentication @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java index ef20ed903d6c..458f700d8e02 100644 --- a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java +++ b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java @@ -25,9 +25,6 @@ * Access Secure Source Manager instances, resources, and repositories. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securesourcemanager/v1/secure_source_manager.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecureSourceManagerGrpc { @@ -4256,8 +4253,9 @@ protected SecureSourceManagerBlockingV2Stub build( * */ public com.google.cloud.securesourcemanager.v1.ListInstancesResponse listInstances( - com.google.cloud.securesourcemanager.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ListInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -4269,8 +4267,9 @@ public com.google.cloud.securesourcemanager.v1.ListInstancesResponse listInstanc * */ public com.google.cloud.securesourcemanager.v1.Instance getInstance( - com.google.cloud.securesourcemanager.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.GetInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -4282,8 +4281,9 @@ public com.google.cloud.securesourcemanager.v1.Instance getInstance( * */ public com.google.longrunning.Operation createInstance( - com.google.cloud.securesourcemanager.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.CreateInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } @@ -4295,8 +4295,9 @@ public com.google.longrunning.Operation createInstance( * */ public com.google.longrunning.Operation deleteInstance( - com.google.cloud.securesourcemanager.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.DeleteInstanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } @@ -4310,8 +4311,9 @@ public com.google.longrunning.Operation deleteInstance( * */ public com.google.cloud.securesourcemanager.v1.ListRepositoriesResponse listRepositories( - com.google.cloud.securesourcemanager.v1.ListRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ListRepositoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRepositoriesMethod(), getCallOptions(), request); } @@ -4323,8 +4325,9 @@ public com.google.cloud.securesourcemanager.v1.ListRepositoriesResponse listRepo * */ public com.google.cloud.securesourcemanager.v1.Repository getRepository( - com.google.cloud.securesourcemanager.v1.GetRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.GetRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRepositoryMethod(), getCallOptions(), request); } @@ -4338,8 +4341,9 @@ public com.google.cloud.securesourcemanager.v1.Repository getRepository( * */ public com.google.longrunning.Operation createRepository( - com.google.cloud.securesourcemanager.v1.CreateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.CreateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRepositoryMethod(), getCallOptions(), request); } @@ -4351,8 +4355,9 @@ public com.google.longrunning.Operation createRepository( * */ public com.google.longrunning.Operation updateRepository( - com.google.cloud.securesourcemanager.v1.UpdateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.UpdateRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); } @@ -4364,8 +4369,9 @@ public com.google.longrunning.Operation updateRepository( * */ public com.google.longrunning.Operation deleteRepository( - com.google.cloud.securesourcemanager.v1.DeleteRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.DeleteRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } @@ -4377,8 +4383,9 @@ public com.google.longrunning.Operation deleteRepository( * */ public com.google.cloud.securesourcemanager.v1.ListHooksResponse listHooks( - com.google.cloud.securesourcemanager.v1.ListHooksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ListHooksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHooksMethod(), getCallOptions(), request); } @@ -4390,8 +4397,9 @@ public com.google.cloud.securesourcemanager.v1.ListHooksResponse listHooks( * */ public com.google.cloud.securesourcemanager.v1.Hook getHook( - com.google.cloud.securesourcemanager.v1.GetHookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.GetHookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHookMethod(), getCallOptions(), request); } @@ -4403,8 +4411,9 @@ public com.google.cloud.securesourcemanager.v1.Hook getHook( * */ public com.google.longrunning.Operation createHook( - com.google.cloud.securesourcemanager.v1.CreateHookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.CreateHookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateHookMethod(), getCallOptions(), request); } @@ -4416,8 +4425,9 @@ public com.google.longrunning.Operation createHook( * */ public com.google.longrunning.Operation updateHook( - com.google.cloud.securesourcemanager.v1.UpdateHookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.UpdateHookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHookMethod(), getCallOptions(), request); } @@ -4429,8 +4439,9 @@ public com.google.longrunning.Operation updateHook( * */ public com.google.longrunning.Operation deleteHook( - com.google.cloud.securesourcemanager.v1.DeleteHookRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.DeleteHookRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteHookMethod(), getCallOptions(), request); } @@ -4441,9 +4452,9 @@ public com.google.longrunning.Operation deleteHook( * Get IAM policy for a repository. * */ - public com.google.iam.v1.Policy getIamPolicyRepo( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicyRepo(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyRepoMethod(), getCallOptions(), request); } @@ -4454,9 +4465,9 @@ public com.google.iam.v1.Policy getIamPolicyRepo( * Set IAM policy on a repository. * */ - public com.google.iam.v1.Policy setIamPolicyRepo( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicyRepo(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyRepoMethod(), getCallOptions(), request); } @@ -4469,8 +4480,8 @@ public com.google.iam.v1.Policy setIamPolicyRepo( * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissionsRepo( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsRepoMethod(), getCallOptions(), request); } @@ -4482,8 +4493,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissionsRepo( * */ public com.google.longrunning.Operation createBranchRule( - com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBranchRuleMethod(), getCallOptions(), request); } @@ -4495,8 +4507,9 @@ public com.google.longrunning.Operation createBranchRule( * */ public com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse listBranchRules( - com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ListBranchRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBranchRulesMethod(), getCallOptions(), request); } @@ -4508,8 +4521,9 @@ public com.google.cloud.securesourcemanager.v1.ListBranchRulesResponse listBranc * */ public com.google.cloud.securesourcemanager.v1.BranchRule getBranchRule( - com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.GetBranchRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBranchRuleMethod(), getCallOptions(), request); } @@ -4521,8 +4535,9 @@ public com.google.cloud.securesourcemanager.v1.BranchRule getBranchRule( * */ public com.google.longrunning.Operation updateBranchRule( - com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBranchRuleMethod(), getCallOptions(), request); } @@ -4534,8 +4549,9 @@ public com.google.longrunning.Operation updateBranchRule( * */ public com.google.longrunning.Operation deleteBranchRule( - com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.DeleteBranchRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBranchRuleMethod(), getCallOptions(), request); } @@ -4547,8 +4563,9 @@ public com.google.longrunning.Operation deleteBranchRule( * */ public com.google.longrunning.Operation createPullRequest( - com.google.cloud.securesourcemanager.v1.CreatePullRequestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.CreatePullRequestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePullRequestMethod(), getCallOptions(), request); } @@ -4560,8 +4577,9 @@ public com.google.longrunning.Operation createPullRequest( * */ public com.google.cloud.securesourcemanager.v1.PullRequest getPullRequest( - com.google.cloud.securesourcemanager.v1.GetPullRequestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.GetPullRequestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPullRequestMethod(), getCallOptions(), request); } @@ -4573,8 +4591,9 @@ public com.google.cloud.securesourcemanager.v1.PullRequest getPullRequest( * */ public com.google.cloud.securesourcemanager.v1.ListPullRequestsResponse listPullRequests( - com.google.cloud.securesourcemanager.v1.ListPullRequestsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ListPullRequestsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPullRequestsMethod(), getCallOptions(), request); } @@ -4586,8 +4605,9 @@ public com.google.cloud.securesourcemanager.v1.ListPullRequestsResponse listPull * */ public com.google.longrunning.Operation updatePullRequest( - com.google.cloud.securesourcemanager.v1.UpdatePullRequestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.UpdatePullRequestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePullRequestMethod(), getCallOptions(), request); } @@ -4599,8 +4619,9 @@ public com.google.longrunning.Operation updatePullRequest( * */ public com.google.longrunning.Operation mergePullRequest( - com.google.cloud.securesourcemanager.v1.MergePullRequestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.MergePullRequestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMergePullRequestMethod(), getCallOptions(), request); } @@ -4612,8 +4633,9 @@ public com.google.longrunning.Operation mergePullRequest( * */ public com.google.longrunning.Operation openPullRequest( - com.google.cloud.securesourcemanager.v1.OpenPullRequestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.OpenPullRequestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getOpenPullRequestMethod(), getCallOptions(), request); } @@ -4625,8 +4647,9 @@ public com.google.longrunning.Operation openPullRequest( * */ public com.google.longrunning.Operation closePullRequest( - com.google.cloud.securesourcemanager.v1.ClosePullRequestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ClosePullRequestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getClosePullRequestMethod(), getCallOptions(), request); } @@ -4639,8 +4662,9 @@ public com.google.longrunning.Operation closePullRequest( */ public com.google.cloud.securesourcemanager.v1.ListPullRequestFileDiffsResponse listPullRequestFileDiffs( - com.google.cloud.securesourcemanager.v1.ListPullRequestFileDiffsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ListPullRequestFileDiffsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPullRequestFileDiffsMethod(), getCallOptions(), request); } @@ -4652,8 +4676,9 @@ public com.google.longrunning.Operation closePullRequest( * */ public com.google.cloud.securesourcemanager.v1.FetchTreeResponse fetchTree( - com.google.cloud.securesourcemanager.v1.FetchTreeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.FetchTreeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchTreeMethod(), getCallOptions(), request); } @@ -4665,8 +4690,9 @@ public com.google.cloud.securesourcemanager.v1.FetchTreeResponse fetchTree( * */ public com.google.cloud.securesourcemanager.v1.FetchBlobResponse fetchBlob( - com.google.cloud.securesourcemanager.v1.FetchBlobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.FetchBlobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchBlobMethod(), getCallOptions(), request); } @@ -4678,8 +4704,9 @@ public com.google.cloud.securesourcemanager.v1.FetchBlobResponse fetchBlob( * */ public com.google.longrunning.Operation createIssue( - com.google.cloud.securesourcemanager.v1.CreateIssueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.CreateIssueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIssueMethod(), getCallOptions(), request); } @@ -4691,8 +4718,9 @@ public com.google.longrunning.Operation createIssue( * */ public com.google.cloud.securesourcemanager.v1.Issue getIssue( - com.google.cloud.securesourcemanager.v1.GetIssueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.GetIssueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIssueMethod(), getCallOptions(), request); } @@ -4704,8 +4732,9 @@ public com.google.cloud.securesourcemanager.v1.Issue getIssue( * */ public com.google.cloud.securesourcemanager.v1.ListIssuesResponse listIssues( - com.google.cloud.securesourcemanager.v1.ListIssuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ListIssuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIssuesMethod(), getCallOptions(), request); } @@ -4717,8 +4746,9 @@ public com.google.cloud.securesourcemanager.v1.ListIssuesResponse listIssues( * */ public com.google.longrunning.Operation updateIssue( - com.google.cloud.securesourcemanager.v1.UpdateIssueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.UpdateIssueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIssueMethod(), getCallOptions(), request); } @@ -4730,8 +4760,9 @@ public com.google.longrunning.Operation updateIssue( * */ public com.google.longrunning.Operation deleteIssue( - com.google.cloud.securesourcemanager.v1.DeleteIssueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.DeleteIssueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIssueMethod(), getCallOptions(), request); } @@ -4743,8 +4774,9 @@ public com.google.longrunning.Operation deleteIssue( * */ public com.google.longrunning.Operation openIssue( - com.google.cloud.securesourcemanager.v1.OpenIssueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.OpenIssueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getOpenIssueMethod(), getCallOptions(), request); } @@ -4756,8 +4788,9 @@ public com.google.longrunning.Operation openIssue( * */ public com.google.longrunning.Operation closeIssue( - com.google.cloud.securesourcemanager.v1.CloseIssueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.CloseIssueRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCloseIssueMethod(), getCallOptions(), request); } @@ -4769,8 +4802,9 @@ public com.google.longrunning.Operation closeIssue( * */ public com.google.cloud.securesourcemanager.v1.PullRequestComment getPullRequestComment( - com.google.cloud.securesourcemanager.v1.GetPullRequestCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.GetPullRequestCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPullRequestCommentMethod(), getCallOptions(), request); } @@ -4783,8 +4817,9 @@ public com.google.cloud.securesourcemanager.v1.PullRequestComment getPullRequest */ public com.google.cloud.securesourcemanager.v1.ListPullRequestCommentsResponse listPullRequestComments( - com.google.cloud.securesourcemanager.v1.ListPullRequestCommentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ListPullRequestCommentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPullRequestCommentsMethod(), getCallOptions(), request); } @@ -4800,8 +4835,9 @@ public com.google.cloud.securesourcemanager.v1.PullRequestComment getPullRequest * */ public com.google.longrunning.Operation createPullRequestComment( - com.google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePullRequestCommentMethod(), getCallOptions(), request); } @@ -4813,8 +4849,9 @@ public com.google.longrunning.Operation createPullRequestComment( * */ public com.google.longrunning.Operation updatePullRequestComment( - com.google.cloud.securesourcemanager.v1.UpdatePullRequestCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.UpdatePullRequestCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePullRequestCommentMethod(), getCallOptions(), request); } @@ -4826,8 +4863,9 @@ public com.google.longrunning.Operation updatePullRequestComment( * */ public com.google.longrunning.Operation deletePullRequestComment( - com.google.cloud.securesourcemanager.v1.DeletePullRequestCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.DeletePullRequestCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePullRequestCommentMethod(), getCallOptions(), request); } @@ -4843,8 +4881,9 @@ public com.google.longrunning.Operation deletePullRequestComment( * */ public com.google.longrunning.Operation batchCreatePullRequestComments( - com.google.cloud.securesourcemanager.v1.BatchCreatePullRequestCommentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.BatchCreatePullRequestCommentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreatePullRequestCommentsMethod(), getCallOptions(), request); } @@ -4859,8 +4898,9 @@ public com.google.longrunning.Operation batchCreatePullRequestComments( * */ public com.google.longrunning.Operation resolvePullRequestComments( - com.google.cloud.securesourcemanager.v1.ResolvePullRequestCommentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ResolvePullRequestCommentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResolvePullRequestCommentsMethod(), getCallOptions(), request); } @@ -4875,8 +4915,9 @@ public com.google.longrunning.Operation resolvePullRequestComments( * */ public com.google.longrunning.Operation unresolvePullRequestComments( - com.google.cloud.securesourcemanager.v1.UnresolvePullRequestCommentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.UnresolvePullRequestCommentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnresolvePullRequestCommentsMethod(), getCallOptions(), request); } @@ -4888,8 +4929,9 @@ public com.google.longrunning.Operation unresolvePullRequestComments( * */ public com.google.longrunning.Operation createIssueComment( - com.google.cloud.securesourcemanager.v1.CreateIssueCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.CreateIssueCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIssueCommentMethod(), getCallOptions(), request); } @@ -4901,8 +4943,9 @@ public com.google.longrunning.Operation createIssueComment( * */ public com.google.cloud.securesourcemanager.v1.IssueComment getIssueComment( - com.google.cloud.securesourcemanager.v1.GetIssueCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.GetIssueCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIssueCommentMethod(), getCallOptions(), request); } @@ -4914,8 +4957,9 @@ public com.google.cloud.securesourcemanager.v1.IssueComment getIssueComment( * */ public com.google.cloud.securesourcemanager.v1.ListIssueCommentsResponse listIssueComments( - com.google.cloud.securesourcemanager.v1.ListIssueCommentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.ListIssueCommentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIssueCommentsMethod(), getCallOptions(), request); } @@ -4927,8 +4971,9 @@ public com.google.cloud.securesourcemanager.v1.ListIssueCommentsResponse listIss * */ public com.google.longrunning.Operation updateIssueComment( - com.google.cloud.securesourcemanager.v1.UpdateIssueCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.UpdateIssueCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIssueCommentMethod(), getCallOptions(), request); } @@ -4940,8 +4985,9 @@ public com.google.longrunning.Operation updateIssueComment( * */ public com.google.longrunning.Operation deleteIssueComment( - com.google.cloud.securesourcemanager.v1.DeleteIssueCommentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securesourcemanager.v1.DeleteIssueCommentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIssueCommentMethod(), getCallOptions(), request); } } diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index 21e756fb08e4..8ad1c854cc45 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-security-private-ca - 2.79.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.79.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java index 7e6534d2772b..e70b4d7459da 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java @@ -26,9 +26,6 @@ * manages private certificate authorities and issued certificates. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/security/privateca/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CertificateAuthorityServiceGrpc { @@ -2665,8 +2662,9 @@ protected CertificateAuthorityServiceBlockingV2Stub build( * */ public com.google.cloud.security.privateca.v1.Certificate createCertificate( - com.google.cloud.security.privateca.v1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.CreateCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCertificateMethod(), getCallOptions(), request); } @@ -2678,8 +2676,9 @@ public com.google.cloud.security.privateca.v1.Certificate createCertificate( * */ public com.google.cloud.security.privateca.v1.Certificate getCertificate( - com.google.cloud.security.privateca.v1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.GetCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateMethod(), getCallOptions(), request); } @@ -2691,8 +2690,9 @@ public com.google.cloud.security.privateca.v1.Certificate getCertificate( * */ public com.google.cloud.security.privateca.v1.ListCertificatesResponse listCertificates( - com.google.cloud.security.privateca.v1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.ListCertificatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificatesMethod(), getCallOptions(), request); } @@ -2704,8 +2704,9 @@ public com.google.cloud.security.privateca.v1.ListCertificatesResponse listCerti * */ public com.google.cloud.security.privateca.v1.Certificate revokeCertificate( - com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); } @@ -2719,8 +2720,9 @@ public com.google.cloud.security.privateca.v1.Certificate revokeCertificate( * */ public com.google.cloud.security.privateca.v1.Certificate updateCertificate( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); } @@ -2741,8 +2743,9 @@ public com.google.cloud.security.privateca.v1.Certificate updateCertificate( * */ public com.google.longrunning.Operation activateCertificateAuthority( - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2756,8 +2759,9 @@ public com.google.longrunning.Operation activateCertificateAuthority( * */ public com.google.longrunning.Operation createCertificateAuthority( - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2770,8 +2774,9 @@ public com.google.longrunning.Operation createCertificateAuthority( * */ public com.google.longrunning.Operation disableCertificateAuthority( - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2784,8 +2789,9 @@ public com.google.longrunning.Operation disableCertificateAuthority( * */ public com.google.longrunning.Operation enableCertificateAuthority( - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2808,8 +2814,9 @@ public com.google.longrunning.Operation enableCertificateAuthority( */ public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); } @@ -2822,8 +2829,9 @@ public com.google.longrunning.Operation enableCertificateAuthority( * */ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2837,8 +2845,9 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificat */ public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse listCertificateAuthorities( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); } @@ -2852,8 +2861,9 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificat * */ public com.google.longrunning.Operation undeleteCertificateAuthority( - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2866,8 +2876,9 @@ public com.google.longrunning.Operation undeleteCertificateAuthority( * */ public com.google.longrunning.Operation deleteCertificateAuthority( - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2880,8 +2891,9 @@ public com.google.longrunning.Operation deleteCertificateAuthority( * */ public com.google.longrunning.Operation updateCertificateAuthority( - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2893,8 +2905,9 @@ public com.google.longrunning.Operation updateCertificateAuthority( * */ public com.google.longrunning.Operation createCaPool( - com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCaPoolMethod(), getCallOptions(), request); } @@ -2906,8 +2919,9 @@ public com.google.longrunning.Operation createCaPool( * */ public com.google.longrunning.Operation updateCaPool( - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCaPoolMethod(), getCallOptions(), request); } @@ -2919,8 +2933,9 @@ public com.google.longrunning.Operation updateCaPool( * */ public com.google.cloud.security.privateca.v1.CaPool getCaPool( - com.google.cloud.security.privateca.v1.GetCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.GetCaPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCaPoolMethod(), getCallOptions(), request); } @@ -2932,8 +2947,9 @@ public com.google.cloud.security.privateca.v1.CaPool getCaPool( * */ public com.google.cloud.security.privateca.v1.ListCaPoolsResponse listCaPools( - com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCaPoolsMethod(), getCallOptions(), request); } @@ -2945,8 +2961,9 @@ public com.google.cloud.security.privateca.v1.ListCaPoolsResponse listCaPools( * */ public com.google.longrunning.Operation deleteCaPool( - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCaPoolMethod(), getCallOptions(), request); } @@ -2961,8 +2978,9 @@ public com.google.longrunning.Operation deleteCaPool( * */ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse fetchCaCerts( - com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchCaCertsMethod(), getCallOptions(), request); } @@ -2976,8 +2994,9 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse fetchCaCerts( */ public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationList( - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); } @@ -2991,8 +3010,9 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse fetchCaCerts( */ public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse listCertificateRevocationLists( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); } @@ -3005,8 +3025,9 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse fetchCaCerts( * */ public com.google.longrunning.Operation updateCertificateRevocationList( - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); } @@ -3020,8 +3041,9 @@ public com.google.longrunning.Operation updateCertificateRevocationList( * */ public com.google.longrunning.Operation createCertificateTemplate( - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCertificateTemplateMethod(), getCallOptions(), request); } @@ -3034,8 +3056,9 @@ public com.google.longrunning.Operation createCertificateTemplate( * */ public com.google.longrunning.Operation deleteCertificateTemplate( - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCertificateTemplateMethod(), getCallOptions(), request); } @@ -3048,8 +3071,9 @@ public com.google.longrunning.Operation deleteCertificateTemplate( * */ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate( - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateTemplateMethod(), getCallOptions(), request); } @@ -3063,8 +3087,9 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificate */ public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse listCertificateTemplates( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificateTemplatesMethod(), getCallOptions(), request); } @@ -3077,8 +3102,9 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificate * */ public com.google.longrunning.Operation updateCertificateTemplate( - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateTemplateMethod(), getCallOptions(), request); } } diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java index 998f7041ffe5..1162f2246437 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java @@ -25,9 +25,6 @@ * certificate authorities and issued certificates. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/security/privateca/v1beta1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CertificateAuthorityServiceGrpc { @@ -1908,8 +1905,9 @@ protected CertificateAuthorityServiceBlockingV2Stub build( * */ public com.google.cloud.security.privateca.v1beta1.Certificate createCertificate( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCertificateMethod(), getCallOptions(), request); } @@ -1921,8 +1919,9 @@ public com.google.cloud.security.privateca.v1beta1.Certificate createCertificate * */ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate( - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateMethod(), getCallOptions(), request); } @@ -1934,8 +1933,9 @@ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate( * */ public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse listCertificates( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificatesMethod(), getCallOptions(), request); } @@ -1947,8 +1947,9 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse list * */ public com.google.cloud.security.privateca.v1beta1.Certificate revokeCertificate( - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); } @@ -1961,8 +1962,9 @@ public com.google.cloud.security.privateca.v1beta1.Certificate revokeCertificate * */ public com.google.cloud.security.privateca.v1beta1.Certificate updateCertificate( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); } @@ -1979,8 +1981,9 @@ public com.google.cloud.security.privateca.v1beta1.Certificate updateCertificate * */ public com.google.longrunning.Operation activateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); } @@ -1992,8 +1995,9 @@ public com.google.longrunning.Operation activateCertificateAuthority( * */ public com.google.longrunning.Operation createCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2005,8 +2009,9 @@ public com.google.longrunning.Operation createCertificateAuthority( * */ public com.google.longrunning.Operation disableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2018,8 +2023,9 @@ public com.google.longrunning.Operation disableCertificateAuthority( * */ public com.google.longrunning.Operation enableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2038,9 +2044,9 @@ public com.google.longrunning.Operation enableCertificateAuthority( */ public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); } @@ -2052,8 +2058,9 @@ public com.google.longrunning.Operation enableCertificateAuthority( * */ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2066,8 +2073,9 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCerti */ public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse listCertificateAuthorities( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); } @@ -2079,8 +2087,9 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCerti * */ public com.google.longrunning.Operation restoreCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRestoreCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2093,8 +2102,9 @@ public com.google.longrunning.Operation restoreCertificateAuthority( */ public com.google.longrunning.Operation scheduleDeleteCertificateAuthority( com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getScheduleDeleteCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2106,8 +2116,9 @@ public com.google.longrunning.Operation scheduleDeleteCertificateAuthority( * */ public com.google.longrunning.Operation updateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); } @@ -2120,9 +2131,9 @@ public com.google.longrunning.Operation updateCertificateAuthority( */ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); } @@ -2136,8 +2147,9 @@ public com.google.longrunning.Operation updateCertificateAuthority( public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse listCertificateRevocationLists( com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); } @@ -2149,9 +2161,9 @@ public com.google.longrunning.Operation updateCertificateAuthority( * */ public com.google.longrunning.Operation updateCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); } @@ -2163,8 +2175,9 @@ public com.google.longrunning.Operation updateCertificateRevocationList( * */ public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig( - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReusableConfigMethod(), getCallOptions(), request); } @@ -2177,8 +2190,9 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableCon */ public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse listReusableConfigs( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReusableConfigsMethod(), getCallOptions(), request); } } diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index 0d41d2422f99..27e1c230ac2e 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter-settings - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.80.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.81.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceGrpc.java b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceGrpc.java index 3d1f29b86d32..76f3a979a669 100644 --- a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceGrpc.java +++ b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceGrpc.java @@ -28,11 +28,6 @@ * folders, projects, and clusters. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = - "Source:" - + " google/cloud/securitycenter/settings/v1beta1/securitycenter_settings_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecurityCenterSettingsServiceGrpc { @@ -1378,8 +1373,9 @@ protected SecurityCenterSettingsServiceBlockingV2Stub build( * */ public com.google.cloud.securitycenter.settings.v1beta1.ServiceAccount getServiceAccount( - com.google.cloud.securitycenter.settings.v1beta1.GetServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.GetServiceAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceAccountMethod(), getCallOptions(), request); } @@ -1391,8 +1387,9 @@ public com.google.cloud.securitycenter.settings.v1beta1.ServiceAccount getServic * */ public com.google.cloud.securitycenter.settings.v1beta1.Settings getSettings( - com.google.cloud.securitycenter.settings.v1beta1.GetSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.GetSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSettingsMethod(), getCallOptions(), request); } @@ -1404,8 +1401,9 @@ public com.google.cloud.securitycenter.settings.v1beta1.Settings getSettings( * */ public com.google.cloud.securitycenter.settings.v1beta1.Settings updateSettings( - com.google.cloud.securitycenter.settings.v1beta1.UpdateSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.UpdateSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSettingsMethod(), getCallOptions(), request); } @@ -1424,8 +1422,9 @@ public com.google.cloud.securitycenter.settings.v1beta1.Settings updateSettings( * */ public com.google.protobuf.Empty resetSettings( - com.google.cloud.securitycenter.settings.v1beta1.ResetSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.ResetSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetSettingsMethod(), getCallOptions(), request); } @@ -1438,8 +1437,9 @@ public com.google.protobuf.Empty resetSettings( */ public com.google.cloud.securitycenter.settings.v1beta1.BatchGetSettingsResponse batchGetSettings( - com.google.cloud.securitycenter.settings.v1beta1.BatchGetSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.BatchGetSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchGetSettingsMethod(), getCallOptions(), request); } @@ -1461,9 +1461,9 @@ public com.google.protobuf.Empty resetSettings( * */ public com.google.cloud.securitycenter.settings.v1beta1.Settings calculateEffectiveSettings( - com.google.cloud.securitycenter.settings.v1beta1.CalculateEffectiveSettingsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.CalculateEffectiveSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCalculateEffectiveSettingsMethod(), getCallOptions(), request); } @@ -1477,8 +1477,9 @@ public com.google.cloud.securitycenter.settings.v1beta1.Settings calculateEffect public com.google.cloud.securitycenter.settings.v1beta1.BatchCalculateEffectiveSettingsResponse batchCalculateEffectiveSettings( com.google.cloud.securitycenter.settings.v1beta1.BatchCalculateEffectiveSettingsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCalculateEffectiveSettingsMethod(), getCallOptions(), request); } @@ -1490,8 +1491,9 @@ public com.google.cloud.securitycenter.settings.v1beta1.Settings calculateEffect * */ public com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings getComponentSettings( - com.google.cloud.securitycenter.settings.v1beta1.GetComponentSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.GetComponentSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetComponentSettingsMethod(), getCallOptions(), request); } @@ -1504,9 +1506,9 @@ public com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings getCom */ public com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings updateComponentSettings( - com.google.cloud.securitycenter.settings.v1beta1.UpdateComponentSettingsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.UpdateComponentSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateComponentSettingsMethod(), getCallOptions(), request); } @@ -1522,8 +1524,9 @@ public com.google.cloud.securitycenter.settings.v1beta1.ComponentSettings getCom * */ public com.google.protobuf.Empty resetComponentSettings( - com.google.cloud.securitycenter.settings.v1beta1.ResetComponentSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.ResetComponentSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetComponentSettingsMethod(), getCallOptions(), request); } @@ -1538,8 +1541,9 @@ public com.google.protobuf.Empty resetComponentSettings( calculateEffectiveComponentSettings( com.google.cloud.securitycenter.settings.v1beta1 .CalculateEffectiveComponentSettingsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCalculateEffectiveComponentSettingsMethod(), getCallOptions(), request); } @@ -1551,8 +1555,9 @@ public com.google.protobuf.Empty resetComponentSettings( * */ public com.google.cloud.securitycenter.settings.v1beta1.ListDetectorsResponse listDetectors( - com.google.cloud.securitycenter.settings.v1beta1.ListDetectorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.ListDetectorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDetectorsMethod(), getCallOptions(), request); } @@ -1564,8 +1569,9 @@ public com.google.cloud.securitycenter.settings.v1beta1.ListDetectorsResponse li * */ public com.google.cloud.securitycenter.settings.v1beta1.ListComponentsResponse listComponents( - com.google.cloud.securitycenter.settings.v1beta1.ListComponentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.settings.v1beta1.ListComponentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListComponentsMethod(), getCallOptions(), request); } } diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index 66121578fabe..3df2fac8982e 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.85.0 + 2.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.85.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.86.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.86.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java b/java-securitycenter/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java index 8bde5edf620f..16af43050517 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java @@ -24,9 +24,6 @@ * V1 APIs for Security Center service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v1/securitycenter_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecurityCenterGrpc { @@ -5548,8 +5545,9 @@ protected SecurityCenterBlockingV2Stub build( * */ public com.google.longrunning.Operation bulkMuteFindings( - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBulkMuteFindingsMethod(), getCallOptions(), request); } @@ -5566,8 +5564,9 @@ public com.google.longrunning.Operation bulkMuteFindings( public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -5582,8 +5581,9 @@ public com.google.longrunning.Operation bulkMuteFindings( * */ public com.google.cloud.securitycenter.v1.Source createSource( - com.google.cloud.securitycenter.v1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.CreateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSourceMethod(), getCallOptions(), request); } @@ -5596,8 +5596,9 @@ public com.google.cloud.securitycenter.v1.Source createSource( * */ public com.google.cloud.securitycenter.v1.Finding createFinding( - com.google.cloud.securitycenter.v1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.CreateFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFindingMethod(), getCallOptions(), request); } @@ -5609,8 +5610,9 @@ public com.google.cloud.securitycenter.v1.Finding createFinding( * */ public com.google.cloud.securitycenter.v1.MuteConfig createMuteConfig( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMuteConfigMethod(), getCallOptions(), request); } @@ -5622,8 +5624,9 @@ public com.google.cloud.securitycenter.v1.MuteConfig createMuteConfig( * */ public com.google.cloud.securitycenter.v1.NotificationConfig createNotificationConfig( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); } @@ -5635,8 +5638,9 @@ public com.google.cloud.securitycenter.v1.NotificationConfig createNotificationC * */ public com.google.protobuf.Empty deleteMuteConfig( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMuteConfigMethod(), getCallOptions(), request); } @@ -5648,8 +5652,9 @@ public com.google.protobuf.Empty deleteMuteConfig( * */ public com.google.protobuf.Empty deleteNotificationConfig( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); } @@ -5663,9 +5668,9 @@ public com.google.protobuf.Empty deleteNotificationConfig( * */ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( - com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -5681,8 +5686,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( * */ public com.google.cloud.securitycenter.v1.Simulation getSimulation( - com.google.cloud.securitycenter.v1.GetSimulationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GetSimulationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSimulationMethod(), getCallOptions(), request); } @@ -5694,8 +5700,9 @@ public com.google.cloud.securitycenter.v1.Simulation getSimulation( * */ public com.google.cloud.securitycenter.v1.ValuedResource getValuedResource( - com.google.cloud.securitycenter.v1.GetValuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GetValuedResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetValuedResourceMethod(), getCallOptions(), request); } @@ -5707,8 +5714,9 @@ public com.google.cloud.securitycenter.v1.ValuedResource getValuedResource( * */ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBigQueryExportMethod(), getCallOptions(), request); } @@ -5719,8 +5727,9 @@ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport( * Gets the access control policy on the specified Source. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -5732,8 +5741,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMuteConfigMethod(), getCallOptions(), request); } @@ -5745,8 +5755,9 @@ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig( * */ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); } @@ -5758,8 +5769,9 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf * */ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); } @@ -5774,8 +5786,9 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe getEffectiveSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycenter.v1 .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -5792,8 +5805,9 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -5808,8 +5822,9 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe * */ public com.google.cloud.securitycenter.v1.Source getSource( - com.google.cloud.securitycenter.v1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GetSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSourceMethod(), getCallOptions(), request); } @@ -5823,8 +5838,9 @@ public com.google.cloud.securitycenter.v1.Source getSource( */ @java.lang.Deprecated public com.google.cloud.securitycenter.v1.GroupAssetsResponse groupAssets( - com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GroupAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGroupAssetsMethod(), getCallOptions(), request); } @@ -5841,8 +5857,9 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse groupAssets( * */ public com.google.cloud.securitycenter.v1.GroupFindingsResponse groupFindings( - com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GroupFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGroupFindingsMethod(), getCallOptions(), request); } @@ -5855,8 +5872,9 @@ public com.google.cloud.securitycenter.v1.GroupFindingsResponse groupFindings( */ @java.lang.Deprecated public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets( - com.google.cloud.securitycenter.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } @@ -5873,8 +5891,9 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets( listDescendantSecurityHealthAnalyticsCustomModules( com.google.cloud.securitycenter.v1 .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), @@ -5891,8 +5910,9 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets( * */ public com.google.cloud.securitycenter.v1.ListFindingsResponse listFindings( - com.google.cloud.securitycenter.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingsMethod(), getCallOptions(), request); } @@ -5904,8 +5924,9 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse listFindings( * */ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfigs( - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMuteConfigsMethod(), getCallOptions(), request); } @@ -5918,8 +5939,9 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfig */ public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse listNotificationConfigs( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); } @@ -5937,8 +5959,9 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfig listEffectiveSecurityHealthAnalyticsCustomModules( com.google.cloud.securitycenter.v1 .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), @@ -5957,8 +5980,9 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfig public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse listSecurityHealthAnalyticsCustomModules( com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), @@ -5973,8 +5997,9 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfig * */ public com.google.cloud.securitycenter.v1.ListSourcesResponse listSources( - com.google.cloud.securitycenter.v1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSourcesMethod(), getCallOptions(), request); } @@ -5991,8 +6016,9 @@ public com.google.cloud.securitycenter.v1.ListSourcesResponse listSources( */ @java.lang.Deprecated public com.google.longrunning.Operation runAssetDiscovery( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); } @@ -6004,8 +6030,9 @@ public com.google.longrunning.Operation runAssetDiscovery( * */ public com.google.cloud.securitycenter.v1.Finding setFindingState( - com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.SetFindingStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetFindingStateMethod(), getCallOptions(), request); } @@ -6017,8 +6044,8 @@ public com.google.cloud.securitycenter.v1.Finding setFindingState( * */ public com.google.cloud.securitycenter.v1.Finding setMute( - com.google.cloud.securitycenter.v1.SetMuteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.SetMuteRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetMuteMethod(), getCallOptions(), request); } @@ -6029,8 +6056,9 @@ public com.google.cloud.securitycenter.v1.Finding setMute( * Sets the access control policy on the specified Source. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -6042,8 +6070,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -6057,8 +6085,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse simulateSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -6073,8 +6102,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.securitycenter.v1.ExternalSystem updateExternalSystem( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExternalSystemMethod(), getCallOptions(), request); } @@ -6087,8 +6117,9 @@ public com.google.cloud.securitycenter.v1.ExternalSystem updateExternalSystem( * */ public com.google.cloud.securitycenter.v1.Finding updateFinding( - com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.UpdateFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFindingMethod(), getCallOptions(), request); } @@ -6100,8 +6131,9 @@ public com.google.cloud.securitycenter.v1.Finding updateFinding( * */ public com.google.cloud.securitycenter.v1.MuteConfig updateMuteConfig( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMuteConfigMethod(), getCallOptions(), request); } @@ -6114,8 +6146,9 @@ public com.google.cloud.securitycenter.v1.MuteConfig updateMuteConfig( * */ public com.google.cloud.securitycenter.v1.NotificationConfig updateNotificationConfig( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); } @@ -6127,8 +6160,9 @@ public com.google.cloud.securitycenter.v1.NotificationConfig updateNotificationC * */ public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizationSettings( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); } @@ -6146,8 +6180,9 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizatio public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -6162,8 +6197,9 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizatio * */ public com.google.cloud.securitycenter.v1.Source updateSource( - com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.UpdateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSourceMethod(), getCallOptions(), request); } @@ -6175,8 +6211,9 @@ public com.google.cloud.securitycenter.v1.Source updateSource( * */ public com.google.cloud.securitycenter.v1.SecurityMarks updateSecurityMarks( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); } @@ -6188,8 +6225,9 @@ public com.google.cloud.securitycenter.v1.SecurityMarks updateSecurityMarks( * */ public com.google.cloud.securitycenter.v1.BigQueryExport createBigQueryExport( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBigQueryExportMethod(), getCallOptions(), request); } @@ -6201,8 +6239,9 @@ public com.google.cloud.securitycenter.v1.BigQueryExport createBigQueryExport( * */ public com.google.protobuf.Empty deleteBigQueryExport( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBigQueryExportMethod(), getCallOptions(), request); } @@ -6214,8 +6253,9 @@ public com.google.protobuf.Empty deleteBigQueryExport( * */ public com.google.cloud.securitycenter.v1.BigQueryExport updateBigQueryExport( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBigQueryExportMethod(), getCallOptions(), request); } @@ -6231,8 +6271,9 @@ public com.google.cloud.securitycenter.v1.BigQueryExport updateBigQueryExport( * */ public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse listBigQueryExports( - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBigQueryExportsMethod(), getCallOptions(), request); } @@ -6249,8 +6290,9 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse listBigQue public com.google.cloud.securitycenter.v1.EventThreatDetectionCustomModule createEventThreatDetectionCustomModule( com.google.cloud.securitycenter.v1.CreateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -6267,8 +6309,9 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse listBigQue * */ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( - com.google.cloud.securitycenter.v1.DeleteEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.DeleteEventThreatDetectionCustomModuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -6284,8 +6327,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( */ public com.google.cloud.securitycenter.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule( - com.google.cloud.securitycenter.v1.GetEventThreatDetectionCustomModuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GetEventThreatDetectionCustomModuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); } @@ -6302,8 +6346,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( listDescendantEventThreatDetectionCustomModules( com.google.cloud.securitycenter.v1 .ListDescendantEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions(), @@ -6321,9 +6366,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( */ public com.google.cloud.securitycenter.v1.ListEventThreatDetectionCustomModulesResponse listEventThreatDetectionCustomModules( - com.google.cloud.securitycenter.v1.ListEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListEventThreatDetectionCustomModulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEventThreatDetectionCustomModulesMethod(), getCallOptions(), @@ -6345,8 +6390,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( public com.google.cloud.securitycenter.v1.EventThreatDetectionCustomModule updateEventThreatDetectionCustomModule( com.google.cloud.securitycenter.v1.UpdateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -6363,8 +6409,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( public com.google.cloud.securitycenter.v1.ValidateEventThreatDetectionCustomModuleResponse validateEventThreatDetectionCustomModule( com.google.cloud.securitycenter.v1.ValidateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -6381,8 +6428,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( public com.google.cloud.securitycenter.v1.EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModule( com.google.cloud.securitycenter.v1.GetEffectiveEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -6401,8 +6449,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( public com.google.cloud.securitycenter.v1.ListEffectiveEventThreatDetectionCustomModulesResponse listEffectiveEventThreatDetectionCustomModules( com.google.cloud.securitycenter.v1.ListEffectiveEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions(), @@ -6419,8 +6468,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( */ public com.google.cloud.securitycenter.v1.BatchCreateResourceValueConfigsResponse batchCreateResourceValueConfigs( - com.google.cloud.securitycenter.v1.BatchCreateResourceValueConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.BatchCreateResourceValueConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateResourceValueConfigsMethod(), getCallOptions(), request); } @@ -6432,8 +6482,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( * */ public com.google.protobuf.Empty deleteResourceValueConfig( - com.google.cloud.securitycenter.v1.DeleteResourceValueConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.DeleteResourceValueConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteResourceValueConfigMethod(), getCallOptions(), request); } @@ -6445,8 +6496,9 @@ public com.google.protobuf.Empty deleteResourceValueConfig( * */ public com.google.cloud.securitycenter.v1.ResourceValueConfig getResourceValueConfig( - com.google.cloud.securitycenter.v1.GetResourceValueConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.GetResourceValueConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetResourceValueConfigMethod(), getCallOptions(), request); } @@ -6459,8 +6511,9 @@ public com.google.cloud.securitycenter.v1.ResourceValueConfig getResourceValueCo */ public com.google.cloud.securitycenter.v1.ListResourceValueConfigsResponse listResourceValueConfigs( - com.google.cloud.securitycenter.v1.ListResourceValueConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListResourceValueConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListResourceValueConfigsMethod(), getCallOptions(), request); } @@ -6472,8 +6525,9 @@ public com.google.cloud.securitycenter.v1.ResourceValueConfig getResourceValueCo * */ public com.google.cloud.securitycenter.v1.ResourceValueConfig updateResourceValueConfig( - com.google.cloud.securitycenter.v1.UpdateResourceValueConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.UpdateResourceValueConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateResourceValueConfigMethod(), getCallOptions(), request); } @@ -6485,8 +6539,9 @@ public com.google.cloud.securitycenter.v1.ResourceValueConfig updateResourceValu * */ public com.google.cloud.securitycenter.v1.ListValuedResourcesResponse listValuedResources( - com.google.cloud.securitycenter.v1.ListValuedResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListValuedResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListValuedResourcesMethod(), getCallOptions(), request); } @@ -6499,8 +6554,9 @@ public com.google.cloud.securitycenter.v1.ListValuedResourcesResponse listValued * */ public com.google.cloud.securitycenter.v1.ListAttackPathsResponse listAttackPaths( - com.google.cloud.securitycenter.v1.ListAttackPathsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1.ListAttackPathsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAttackPathsMethod(), getCallOptions(), request); } } diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java index 8a67c541d224..defe6d089d27 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java @@ -24,9 +24,6 @@ * V1 Beta APIs for Security Center service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecurityCenterGrpc { @@ -1578,8 +1575,9 @@ protected SecurityCenterBlockingV2Stub build( * */ public com.google.cloud.securitycenter.v1beta1.Source createSource( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSourceMethod(), getCallOptions(), request); } @@ -1592,8 +1590,9 @@ public com.google.cloud.securitycenter.v1beta1.Source createSource( * */ public com.google.cloud.securitycenter.v1beta1.Finding createFinding( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFindingMethod(), getCallOptions(), request); } @@ -1604,8 +1603,9 @@ public com.google.cloud.securitycenter.v1beta1.Finding createFinding( * Gets the access control policy on the specified Source. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1617,8 +1617,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); } @@ -1630,8 +1631,9 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizat * */ public com.google.cloud.securitycenter.v1beta1.Source getSource( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSourceMethod(), getCallOptions(), request); } @@ -1644,8 +1646,9 @@ public com.google.cloud.securitycenter.v1beta1.Source getSource( * */ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse groupAssets( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGroupAssetsMethod(), getCallOptions(), request); } @@ -1660,8 +1663,9 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse groupAssets( * */ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse groupFindings( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGroupFindingsMethod(), getCallOptions(), request); } @@ -1673,8 +1677,9 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse groupFindin * */ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse listAssets( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } @@ -1688,8 +1693,9 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse listAssets( * */ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse listFindings( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingsMethod(), getCallOptions(), request); } @@ -1701,8 +1707,9 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse listFindings * */ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse listSources( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSourcesMethod(), getCallOptions(), request); } @@ -1718,8 +1725,9 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse listSources( * */ public com.google.longrunning.Operation runAssetDiscovery( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); } @@ -1731,8 +1739,9 @@ public com.google.longrunning.Operation runAssetDiscovery( * */ public com.google.cloud.securitycenter.v1beta1.Finding setFindingState( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetFindingStateMethod(), getCallOptions(), request); } @@ -1743,8 +1752,9 @@ public com.google.cloud.securitycenter.v1beta1.Finding setFindingState( * Sets the access control policy on the specified Source. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1756,8 +1766,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -1770,8 +1780,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.securitycenter.v1beta1.Finding updateFinding( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFindingMethod(), getCallOptions(), request); } @@ -1783,8 +1794,9 @@ public com.google.cloud.securitycenter.v1beta1.Finding updateFinding( * */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings updateOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); } @@ -1796,8 +1808,9 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings updateOrgani * */ public com.google.cloud.securitycenter.v1beta1.Source updateSource( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSourceMethod(), getCallOptions(), request); } @@ -1809,8 +1822,9 @@ public com.google.cloud.securitycenter.v1beta1.Source updateSource( * */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks updateSecurityMarks( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); } } diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java index d05a68cbabcd..0f50683b11fd 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java @@ -24,9 +24,6 @@ * V1p1Beta1 APIs for Security Center service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecurityCenterGrpc { @@ -2004,8 +2001,9 @@ protected SecurityCenterBlockingV2Stub build( * */ public com.google.cloud.securitycenter.v1p1beta1.Source createSource( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSourceMethod(), getCallOptions(), request); } @@ -2018,8 +2016,9 @@ public com.google.cloud.securitycenter.v1p1beta1.Source createSource( * */ public com.google.cloud.securitycenter.v1p1beta1.Finding createFinding( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFindingMethod(), getCallOptions(), request); } @@ -2031,8 +2030,9 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding createFinding( * */ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig createNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); } @@ -2044,8 +2044,9 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig createNotifi * */ public com.google.protobuf.Empty deleteNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); } @@ -2056,8 +2057,9 @@ public com.google.protobuf.Empty deleteNotificationConfig( * Gets the access control policy on the specified Source. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -2069,8 +2071,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); } @@ -2082,8 +2085,9 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat * */ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); } @@ -2095,8 +2099,9 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganiz * */ public com.google.cloud.securitycenter.v1p1beta1.Source getSource( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSourceMethod(), getCallOptions(), request); } @@ -2109,8 +2114,9 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSource( * */ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse groupAssets( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGroupAssetsMethod(), getCallOptions(), request); } @@ -2127,8 +2133,9 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse groupAssets * */ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse groupFindings( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGroupFindingsMethod(), getCallOptions(), request); } @@ -2140,8 +2147,9 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse groupFind * */ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse listAssets( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } @@ -2155,8 +2163,9 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse listAssets( * */ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse listFindings( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingsMethod(), getCallOptions(), request); } @@ -2169,8 +2178,9 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse listFindin */ public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse listNotificationConfigs( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); } @@ -2182,8 +2192,9 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse listFindin * */ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse listSources( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSourcesMethod(), getCallOptions(), request); } @@ -2199,8 +2210,9 @@ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse listSources * */ public com.google.longrunning.Operation runAssetDiscovery( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); } @@ -2212,8 +2224,9 @@ public com.google.longrunning.Operation runAssetDiscovery( * */ public com.google.cloud.securitycenter.v1p1beta1.Finding setFindingState( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetFindingStateMethod(), getCallOptions(), request); } @@ -2224,8 +2237,9 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding setFindingState( * Sets the access control policy on the specified Source. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -2237,8 +2251,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -2251,8 +2265,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.securitycenter.v1p1beta1.Finding updateFinding( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFindingMethod(), getCallOptions(), request); } @@ -2265,8 +2280,9 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding updateFinding( * */ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig updateNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); } @@ -2279,8 +2295,9 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig updateNotifi */ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings updateOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); } @@ -2292,8 +2309,9 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig updateNotifi * */ public com.google.cloud.securitycenter.v1p1beta1.Source updateSource( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSourceMethod(), getCallOptions(), request); } @@ -2305,8 +2323,9 @@ public com.google.cloud.securitycenter.v1p1beta1.Source updateSource( * */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks updateSecurityMarks( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); } } diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterGrpc.java b/java-securitycenter/grpc-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterGrpc.java index ccf0c158af20..b8992cfde7fd 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterGrpc.java +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterGrpc.java @@ -24,9 +24,6 @@ * V2 APIs for Security Center service. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v2/securitycenter_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecurityCenterGrpc { @@ -3393,8 +3390,9 @@ protected SecurityCenterBlockingV2Stub build( */ public com.google.cloud.securitycenter.v2.BatchCreateResourceValueConfigsResponse batchCreateResourceValueConfigs( - com.google.cloud.securitycenter.v2.BatchCreateResourceValueConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.BatchCreateResourceValueConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateResourceValueConfigsMethod(), getCallOptions(), request); } @@ -3409,8 +3407,9 @@ protected SecurityCenterBlockingV2Stub build( * */ public com.google.longrunning.Operation bulkMuteFindings( - com.google.cloud.securitycenter.v2.BulkMuteFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.BulkMuteFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBulkMuteFindingsMethod(), getCallOptions(), request); } @@ -3422,8 +3421,9 @@ public com.google.longrunning.Operation bulkMuteFindings( * */ public com.google.cloud.securitycenter.v2.BigQueryExport createBigQueryExport( - com.google.cloud.securitycenter.v2.CreateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.CreateBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBigQueryExportMethod(), getCallOptions(), request); } @@ -3436,8 +3436,9 @@ public com.google.cloud.securitycenter.v2.BigQueryExport createBigQueryExport( * */ public com.google.cloud.securitycenter.v2.Finding createFinding( - com.google.cloud.securitycenter.v2.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.CreateFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateFindingMethod(), getCallOptions(), request); } @@ -3449,8 +3450,9 @@ public com.google.cloud.securitycenter.v2.Finding createFinding( * */ public com.google.cloud.securitycenter.v2.MuteConfig createMuteConfig( - com.google.cloud.securitycenter.v2.CreateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.CreateMuteConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMuteConfigMethod(), getCallOptions(), request); } @@ -3462,8 +3464,9 @@ public com.google.cloud.securitycenter.v2.MuteConfig createMuteConfig( * */ public com.google.cloud.securitycenter.v2.NotificationConfig createNotificationConfig( - com.google.cloud.securitycenter.v2.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.CreateNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); } @@ -3475,8 +3478,9 @@ public com.google.cloud.securitycenter.v2.NotificationConfig createNotificationC * */ public com.google.cloud.securitycenter.v2.Source createSource( - com.google.cloud.securitycenter.v2.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.CreateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSourceMethod(), getCallOptions(), request); } @@ -3488,8 +3492,9 @@ public com.google.cloud.securitycenter.v2.Source createSource( * */ public com.google.protobuf.Empty deleteBigQueryExport( - com.google.cloud.securitycenter.v2.DeleteBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.DeleteBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBigQueryExportMethod(), getCallOptions(), request); } @@ -3502,8 +3507,9 @@ public com.google.protobuf.Empty deleteBigQueryExport( * */ public com.google.protobuf.Empty deleteMuteConfig( - com.google.cloud.securitycenter.v2.DeleteMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.DeleteMuteConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMuteConfigMethod(), getCallOptions(), request); } @@ -3515,8 +3521,9 @@ public com.google.protobuf.Empty deleteMuteConfig( * */ public com.google.protobuf.Empty deleteNotificationConfig( - com.google.cloud.securitycenter.v2.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.DeleteNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); } @@ -3528,8 +3535,9 @@ public com.google.protobuf.Empty deleteNotificationConfig( * */ public com.google.protobuf.Empty deleteResourceValueConfig( - com.google.cloud.securitycenter.v2.DeleteResourceValueConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.DeleteResourceValueConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteResourceValueConfigMethod(), getCallOptions(), request); } @@ -3541,8 +3549,9 @@ public com.google.protobuf.Empty deleteResourceValueConfig( * */ public com.google.cloud.securitycenter.v2.BigQueryExport getBigQueryExport( - com.google.cloud.securitycenter.v2.GetBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.GetBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBigQueryExportMethod(), getCallOptions(), request); } @@ -3555,8 +3564,9 @@ public com.google.cloud.securitycenter.v2.BigQueryExport getBigQueryExport( * */ public com.google.cloud.securitycenter.v2.Simulation getSimulation( - com.google.cloud.securitycenter.v2.GetSimulationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.GetSimulationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSimulationMethod(), getCallOptions(), request); } @@ -3568,8 +3578,9 @@ public com.google.cloud.securitycenter.v2.Simulation getSimulation( * */ public com.google.cloud.securitycenter.v2.ValuedResource getValuedResource( - com.google.cloud.securitycenter.v2.GetValuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.GetValuedResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetValuedResourceMethod(), getCallOptions(), request); } @@ -3580,8 +3591,9 @@ public com.google.cloud.securitycenter.v2.ValuedResource getValuedResource( * Gets the access control policy on the specified Source. * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -3594,8 +3606,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.cloud.securitycenter.v2.MuteConfig getMuteConfig( - com.google.cloud.securitycenter.v2.GetMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.GetMuteConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMuteConfigMethod(), getCallOptions(), request); } @@ -3607,8 +3620,9 @@ public com.google.cloud.securitycenter.v2.MuteConfig getMuteConfig( * */ public com.google.cloud.securitycenter.v2.NotificationConfig getNotificationConfig( - com.google.cloud.securitycenter.v2.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.GetNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); } @@ -3620,8 +3634,9 @@ public com.google.cloud.securitycenter.v2.NotificationConfig getNotificationConf * */ public com.google.cloud.securitycenter.v2.ResourceValueConfig getResourceValueConfig( - com.google.cloud.securitycenter.v2.GetResourceValueConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.GetResourceValueConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetResourceValueConfigMethod(), getCallOptions(), request); } @@ -3633,8 +3648,9 @@ public com.google.cloud.securitycenter.v2.ResourceValueConfig getResourceValueCo * */ public com.google.cloud.securitycenter.v2.Source getSource( - com.google.cloud.securitycenter.v2.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.GetSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSourceMethod(), getCallOptions(), request); } @@ -3657,8 +3673,9 @@ public com.google.cloud.securitycenter.v2.Source getSource( * */ public com.google.cloud.securitycenter.v2.GroupFindingsResponse groupFindings( - com.google.cloud.securitycenter.v2.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.GroupFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGroupFindingsMethod(), getCallOptions(), request); } @@ -3671,8 +3688,9 @@ public com.google.cloud.securitycenter.v2.GroupFindingsResponse groupFindings( * */ public com.google.cloud.securitycenter.v2.ListAttackPathsResponse listAttackPaths( - com.google.cloud.securitycenter.v2.ListAttackPathsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.ListAttackPathsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAttackPathsMethod(), getCallOptions(), request); } @@ -3688,8 +3706,9 @@ public com.google.cloud.securitycenter.v2.ListAttackPathsResponse listAttackPath * */ public com.google.cloud.securitycenter.v2.ListBigQueryExportsResponse listBigQueryExports( - com.google.cloud.securitycenter.v2.ListBigQueryExportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.ListBigQueryExportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBigQueryExportsMethod(), getCallOptions(), request); } @@ -3707,8 +3726,9 @@ public com.google.cloud.securitycenter.v2.ListBigQueryExportsResponse listBigQue * */ public com.google.cloud.securitycenter.v2.ListFindingsResponse listFindings( - com.google.cloud.securitycenter.v2.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.ListFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingsMethod(), getCallOptions(), request); } @@ -3721,8 +3741,9 @@ public com.google.cloud.securitycenter.v2.ListFindingsResponse listFindings( * */ public com.google.cloud.securitycenter.v2.ListMuteConfigsResponse listMuteConfigs( - com.google.cloud.securitycenter.v2.ListMuteConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.ListMuteConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMuteConfigsMethod(), getCallOptions(), request); } @@ -3735,8 +3756,9 @@ public com.google.cloud.securitycenter.v2.ListMuteConfigsResponse listMuteConfig */ public com.google.cloud.securitycenter.v2.ListNotificationConfigsResponse listNotificationConfigs( - com.google.cloud.securitycenter.v2.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.ListNotificationConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); } @@ -3749,8 +3771,9 @@ public com.google.cloud.securitycenter.v2.ListMuteConfigsResponse listMuteConfig */ public com.google.cloud.securitycenter.v2.ListResourceValueConfigsResponse listResourceValueConfigs( - com.google.cloud.securitycenter.v2.ListResourceValueConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.ListResourceValueConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListResourceValueConfigsMethod(), getCallOptions(), request); } @@ -3762,8 +3785,9 @@ public com.google.cloud.securitycenter.v2.ListMuteConfigsResponse listMuteConfig * */ public com.google.cloud.securitycenter.v2.ListSourcesResponse listSources( - com.google.cloud.securitycenter.v2.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.ListSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSourcesMethod(), getCallOptions(), request); } @@ -3775,8 +3799,9 @@ public com.google.cloud.securitycenter.v2.ListSourcesResponse listSources( * */ public com.google.cloud.securitycenter.v2.ListValuedResourcesResponse listValuedResources( - com.google.cloud.securitycenter.v2.ListValuedResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.ListValuedResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListValuedResourcesMethod(), getCallOptions(), request); } @@ -3789,8 +3814,9 @@ public com.google.cloud.securitycenter.v2.ListValuedResourcesResponse listValued * */ public com.google.cloud.securitycenter.v2.Finding setFindingState( - com.google.cloud.securitycenter.v2.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.SetFindingStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetFindingStateMethod(), getCallOptions(), request); } @@ -3801,8 +3827,9 @@ public com.google.cloud.securitycenter.v2.Finding setFindingState( * Sets the access control policy on the specified Source. * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -3815,8 +3842,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.cloud.securitycenter.v2.Finding setMute( - com.google.cloud.securitycenter.v2.SetMuteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.SetMuteRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetMuteMethod(), getCallOptions(), request); } @@ -3828,8 +3855,8 @@ public com.google.cloud.securitycenter.v2.Finding setMute( * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -3841,8 +3868,9 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.securitycenter.v2.BigQueryExport updateBigQueryExport( - com.google.cloud.securitycenter.v2.UpdateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.UpdateBigQueryExportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBigQueryExportMethod(), getCallOptions(), request); } @@ -3855,8 +3883,9 @@ public com.google.cloud.securitycenter.v2.BigQueryExport updateBigQueryExport( * */ public com.google.cloud.securitycenter.v2.ExternalSystem updateExternalSystem( - com.google.cloud.securitycenter.v2.UpdateExternalSystemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.UpdateExternalSystemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExternalSystemMethod(), getCallOptions(), request); } @@ -3870,8 +3899,9 @@ public com.google.cloud.securitycenter.v2.ExternalSystem updateExternalSystem( * */ public com.google.cloud.securitycenter.v2.Finding updateFinding( - com.google.cloud.securitycenter.v2.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.UpdateFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateFindingMethod(), getCallOptions(), request); } @@ -3884,8 +3914,9 @@ public com.google.cloud.securitycenter.v2.Finding updateFinding( * */ public com.google.cloud.securitycenter.v2.MuteConfig updateMuteConfig( - com.google.cloud.securitycenter.v2.UpdateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.UpdateMuteConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMuteConfigMethod(), getCallOptions(), request); } @@ -3898,8 +3929,9 @@ public com.google.cloud.securitycenter.v2.MuteConfig updateMuteConfig( * */ public com.google.cloud.securitycenter.v2.NotificationConfig updateNotificationConfig( - com.google.cloud.securitycenter.v2.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.UpdateNotificationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); } @@ -3911,8 +3943,9 @@ public com.google.cloud.securitycenter.v2.NotificationConfig updateNotificationC * */ public com.google.cloud.securitycenter.v2.ResourceValueConfig updateResourceValueConfig( - com.google.cloud.securitycenter.v2.UpdateResourceValueConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.UpdateResourceValueConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateResourceValueConfigMethod(), getCallOptions(), request); } @@ -3926,8 +3959,9 @@ public com.google.cloud.securitycenter.v2.ResourceValueConfig updateResourceValu * */ public com.google.cloud.securitycenter.v2.SecurityMarks updateSecurityMarks( - com.google.cloud.securitycenter.v2.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.UpdateSecurityMarksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); } @@ -3939,8 +3973,9 @@ public com.google.cloud.securitycenter.v2.SecurityMarks updateSecurityMarks( * */ public com.google.cloud.securitycenter.v2.Source updateSource( - com.google.cloud.securitycenter.v2.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycenter.v2.UpdateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSourceMethod(), getCallOptions(), request); } } diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 273bce07d4f3..13bfc3108ed3 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.45.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.46.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java index b55e154f15a0..9fac437bacf5 100644 --- a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java +++ b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycentermanagement/v1/security_center_management.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecurityCenterManagementGrpc { @@ -2419,8 +2416,9 @@ protected SecurityCenterManagementBlockingV2Stub build( listEffectiveSecurityHealthAnalyticsCustomModules( com.google.cloud.securitycentermanagement.v1 .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), @@ -2439,8 +2437,9 @@ protected SecurityCenterManagementBlockingV2Stub build( getEffectiveSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycentermanagement.v1 .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -2463,8 +2462,9 @@ protected SecurityCenterManagementBlockingV2Stub build( listSecurityHealthAnalyticsCustomModules( com.google.cloud.securitycentermanagement.v1 .ListSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), @@ -2486,8 +2486,9 @@ protected SecurityCenterManagementBlockingV2Stub build( listDescendantSecurityHealthAnalyticsCustomModules( com.google.cloud.securitycentermanagement.v1 .ListDescendantSecurityHealthAnalyticsCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions(), @@ -2506,8 +2507,9 @@ protected SecurityCenterManagementBlockingV2Stub build( getSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycentermanagement.v1 .GetSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -2530,8 +2532,9 @@ protected SecurityCenterManagementBlockingV2Stub build( createSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycentermanagement.v1 .CreateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -2555,8 +2558,9 @@ protected SecurityCenterManagementBlockingV2Stub build( updateSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycentermanagement.v1 .UpdateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -2576,8 +2580,9 @@ protected SecurityCenterManagementBlockingV2Stub build( public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycentermanagement.v1 .DeleteSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -2598,8 +2603,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( simulateSecurityHealthAnalyticsCustomModule( com.google.cloud.securitycentermanagement.v1 .SimulateSecurityHealthAnalyticsCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions(), @@ -2620,8 +2626,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( listEffectiveEventThreatDetectionCustomModules( com.google.cloud.securitycentermanagement.v1 .ListEffectiveEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEffectiveEventThreatDetectionCustomModulesMethod(), getCallOptions(), @@ -2649,8 +2656,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( getEffectiveEventThreatDetectionCustomModule( com.google.cloud.securitycentermanagement.v1 .GetEffectiveEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEffectiveEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -2671,8 +2679,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( listEventThreatDetectionCustomModules( com.google.cloud.securitycentermanagement.v1 .ListEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEventThreatDetectionCustomModulesMethod(), getCallOptions(), @@ -2692,8 +2701,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( listDescendantEventThreatDetectionCustomModules( com.google.cloud.securitycentermanagement.v1 .ListDescendantEventThreatDetectionCustomModulesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDescendantEventThreatDetectionCustomModulesMethod(), getCallOptions(), @@ -2710,8 +2720,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( public com.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule getEventThreatDetectionCustomModule( com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEventThreatDetectionCustomModuleMethod(), getCallOptions(), request); } @@ -2729,8 +2740,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( createEventThreatDetectionCustomModule( com.google.cloud.securitycentermanagement.v1 .CreateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -2753,8 +2765,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( updateEventThreatDetectionCustomModule( com.google.cloud.securitycentermanagement.v1 .UpdateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -2772,8 +2785,9 @@ public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( */ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( com.google.cloud.securitycentermanagement.v1.DeleteEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -2792,8 +2806,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( validateEventThreatDetectionCustomModule( com.google.cloud.securitycentermanagement.v1 .ValidateEventThreatDetectionCustomModuleRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions(), @@ -2809,8 +2824,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( */ public com.google.cloud.securitycentermanagement.v1.SecurityCenterService getSecurityCenterService( - com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSecurityCenterServiceMethod(), getCallOptions(), request); } @@ -2824,9 +2840,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( */ public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse listSecurityCenterServices( - com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSecurityCenterServicesMethod(), getCallOptions(), request); } @@ -2839,9 +2855,9 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( */ public com.google.cloud.securitycentermanagement.v1.SecurityCenterService updateSecurityCenterService( - com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSecurityCenterServiceMethod(), getCallOptions(), request); } } diff --git a/java-securityposture/README.md b/java-securityposture/README.md index ca321bf3cf32..97fa78aa9138 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.42.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.43.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securityposture.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securityposture/grpc-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureGrpc.java b/java-securityposture/grpc-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureGrpc.java index e60a4e90e176..00d45a4b91dc 100644 --- a/java-securityposture/grpc-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureGrpc.java +++ b/java-securityposture/grpc-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securityposture/v1/securityposture.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecurityPostureGrpc { @@ -1351,8 +1348,9 @@ protected SecurityPostureBlockingV2Stub build( * */ public com.google.cloud.securityposture.v1.ListPosturesResponse listPostures( - com.google.cloud.securityposture.v1.ListPosturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.ListPosturesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPosturesMethod(), getCallOptions(), request); } @@ -1364,8 +1362,9 @@ public com.google.cloud.securityposture.v1.ListPosturesResponse listPostures( * */ public com.google.cloud.securityposture.v1.ListPostureRevisionsResponse listPostureRevisions( - com.google.cloud.securityposture.v1.ListPostureRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.ListPostureRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPostureRevisionsMethod(), getCallOptions(), request); } @@ -1382,8 +1381,9 @@ public com.google.cloud.securityposture.v1.ListPostureRevisionsResponse listPost * */ public com.google.cloud.securityposture.v1.Posture getPosture( - com.google.cloud.securityposture.v1.GetPostureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.GetPostureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPostureMethod(), getCallOptions(), request); } @@ -1398,8 +1398,9 @@ public com.google.cloud.securityposture.v1.Posture getPosture( * */ public com.google.longrunning.Operation createPosture( - com.google.cloud.securityposture.v1.CreatePostureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.CreatePostureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePostureMethod(), getCallOptions(), request); } @@ -1422,8 +1423,9 @@ public com.google.longrunning.Operation createPosture( * */ public com.google.longrunning.Operation updatePosture( - com.google.cloud.securityposture.v1.UpdatePostureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.UpdatePostureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePostureMethod(), getCallOptions(), request); } @@ -1437,8 +1439,9 @@ public com.google.longrunning.Operation updatePosture( * */ public com.google.longrunning.Operation deletePosture( - com.google.cloud.securityposture.v1.DeletePostureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.DeletePostureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePostureMethod(), getCallOptions(), request); } @@ -1452,8 +1455,9 @@ public com.google.longrunning.Operation deletePosture( * */ public com.google.longrunning.Operation extractPosture( - com.google.cloud.securityposture.v1.ExtractPostureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.ExtractPostureRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExtractPostureMethod(), getCallOptions(), request); } @@ -1467,8 +1471,9 @@ public com.google.longrunning.Operation extractPosture( */ public com.google.cloud.securityposture.v1.ListPostureDeploymentsResponse listPostureDeployments( - com.google.cloud.securityposture.v1.ListPostureDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.ListPostureDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPostureDeploymentsMethod(), getCallOptions(), request); } @@ -1480,8 +1485,9 @@ public com.google.longrunning.Operation extractPosture( * */ public com.google.cloud.securityposture.v1.PostureDeployment getPostureDeployment( - com.google.cloud.securityposture.v1.GetPostureDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.GetPostureDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPostureDeploymentMethod(), getCallOptions(), request); } @@ -1493,8 +1499,9 @@ public com.google.cloud.securityposture.v1.PostureDeployment getPostureDeploymen * */ public com.google.longrunning.Operation createPostureDeployment( - com.google.cloud.securityposture.v1.CreatePostureDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.CreatePostureDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePostureDeploymentMethod(), getCallOptions(), request); } @@ -1506,8 +1513,9 @@ public com.google.longrunning.Operation createPostureDeployment( * */ public com.google.longrunning.Operation updatePostureDeployment( - com.google.cloud.securityposture.v1.UpdatePostureDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.UpdatePostureDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePostureDeploymentMethod(), getCallOptions(), request); } @@ -1519,8 +1527,9 @@ public com.google.longrunning.Operation updatePostureDeployment( * */ public com.google.longrunning.Operation deletePostureDeployment( - com.google.cloud.securityposture.v1.DeletePostureDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.DeletePostureDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePostureDeploymentMethod(), getCallOptions(), request); } @@ -1533,8 +1542,9 @@ public com.google.longrunning.Operation deletePostureDeployment( * */ public com.google.cloud.securityposture.v1.ListPostureTemplatesResponse listPostureTemplates( - com.google.cloud.securityposture.v1.ListPostureTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.ListPostureTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPostureTemplatesMethod(), getCallOptions(), request); } @@ -1551,8 +1561,9 @@ public com.google.cloud.securityposture.v1.ListPostureTemplatesResponse listPost * */ public com.google.cloud.securityposture.v1.PostureTemplate getPostureTemplate( - com.google.cloud.securityposture.v1.GetPostureTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.securityposture.v1.GetPostureTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPostureTemplateMethod(), getCallOptions(), request); } } diff --git a/java-service-control/README.md b/java-service-control/README.md index 5a5562803a4f..9e6261f41f81 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-control - 1.77.0 + 1.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.77.0' +implementation 'com.google.cloud:google-cloud-service-control:1.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-control/grpc-google-cloud-service-control-v1/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerGrpc.java b/java-service-control/grpc-google-cloud-service-control-v1/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerGrpc.java index 4d3a815cf497..b8e7b8cddc66 100644 --- a/java-service-control/grpc-google-cloud-service-control-v1/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerGrpc.java +++ b/java-service-control/grpc-google-cloud-service-control-v1/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerGrpc.java @@ -26,9 +26,6 @@ * service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/servicecontrol/v1/quota_controller.proto") @io.grpc.stub.annotations.GrpcGenerated public final class QuotaControllerGrpc { @@ -276,8 +273,9 @@ protected QuotaControllerBlockingV2Stub build( * */ public com.google.api.servicecontrol.v1.AllocateQuotaResponse allocateQuota( - com.google.api.servicecontrol.v1.AllocateQuotaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicecontrol.v1.AllocateQuotaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAllocateQuotaMethod(), getCallOptions(), request); } } diff --git a/java-service-control/grpc-google-cloud-service-control-v1/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerGrpc.java b/java-service-control/grpc-google-cloud-service-control-v1/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerGrpc.java index 8b59ac847691..a89b4ee82ff2 100644 --- a/java-service-control/grpc-google-cloud-service-control-v1/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerGrpc.java +++ b/java-service-control/grpc-google-cloud-service-control-v1/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerGrpc.java @@ -26,9 +26,6 @@ * service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/servicecontrol/v1/service_controller.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServiceControllerGrpc { @@ -381,8 +378,8 @@ protected ServiceControllerBlockingV2Stub build( * */ public com.google.api.servicecontrol.v1.CheckResponse check( - com.google.api.servicecontrol.v1.CheckRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicecontrol.v1.CheckRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckMethod(), getCallOptions(), request); } @@ -405,8 +402,8 @@ public com.google.api.servicecontrol.v1.CheckResponse check( * */ public com.google.api.servicecontrol.v1.ReportResponse report( - com.google.api.servicecontrol.v1.ReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicecontrol.v1.ReportRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportMethod(), getCallOptions(), request); } } diff --git a/java-service-control/grpc-google-cloud-service-control-v2/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerGrpc.java b/java-service-control/grpc-google-cloud-service-control-v2/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerGrpc.java index 173b1516c904..38af4917f0f5 100644 --- a/java-service-control/grpc-google-cloud-service-control-v2/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerGrpc.java +++ b/java-service-control/grpc-google-cloud-service-control-v2/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerGrpc.java @@ -28,9 +28,6 @@ * Infrastructure](https://cloud.google.com/service-infrastructure). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/servicecontrol/v2/service_controller.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServiceControllerGrpc { @@ -402,8 +399,8 @@ protected ServiceControllerBlockingV2Stub build( * */ public com.google.api.servicecontrol.v2.CheckResponse check( - com.google.api.servicecontrol.v2.CheckRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicecontrol.v2.CheckRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCheckMethod(), getCallOptions(), request); } @@ -427,8 +424,8 @@ public com.google.api.servicecontrol.v2.CheckResponse check( * */ public com.google.api.servicecontrol.v2.ReportResponse report( - com.google.api.servicecontrol.v2.ReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicecontrol.v2.ReportRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReportMethod(), getCallOptions(), request); } } diff --git a/java-service-management/README.md b/java-service-management/README.md index 9cc93bb95ce9..f3ccff0ba23d 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-management - 3.75.0 + 3.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.75.0' +implementation 'com.google.cloud:google-cloud-service-management:3.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-management/grpc-google-cloud-service-management-v1/src/main/java/com/google/api/servicemanagement/v1/ServiceManagerGrpc.java b/java-service-management/grpc-google-cloud-service-management-v1/src/main/java/com/google/api/servicemanagement/v1/ServiceManagerGrpc.java index 17644bb570d0..372ed22c49ba 100644 --- a/java-service-management/grpc-google-cloud-service-management-v1/src/main/java/com/google/api/servicemanagement/v1/ServiceManagerGrpc.java +++ b/java-service-management/grpc-google-cloud-service-management-v1/src/main/java/com/google/api/servicemanagement/v1/ServiceManagerGrpc.java @@ -25,9 +25,6 @@ * API](https://cloud.google.com/service-infrastructure/docs/overview) * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/servicemanagement/v1/servicemanager.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServiceManagerGrpc { @@ -1297,8 +1294,9 @@ protected ServiceManagerBlockingV2Stub build( * */ public com.google.api.servicemanagement.v1.ListServicesResponse listServices( - com.google.api.servicemanagement.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.ListServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -1311,8 +1309,9 @@ public com.google.api.servicemanagement.v1.ListServicesResponse listServices( * */ public com.google.api.servicemanagement.v1.ManagedService getService( - com.google.api.servicemanagement.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.GetServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -1331,8 +1330,9 @@ public com.google.api.servicemanagement.v1.ManagedService getService( * */ public com.google.longrunning.Operation createService( - com.google.api.servicemanagement.v1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.CreateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); } @@ -1350,8 +1350,9 @@ public com.google.longrunning.Operation createService( * */ public com.google.longrunning.Operation deleteService( - com.google.api.servicemanagement.v1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.DeleteServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } @@ -1367,8 +1368,9 @@ public com.google.longrunning.Operation deleteService( * */ public com.google.longrunning.Operation undeleteService( - com.google.api.servicemanagement.v1.UndeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.UndeleteServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteServiceMethod(), getCallOptions(), request); } @@ -1381,8 +1383,9 @@ public com.google.longrunning.Operation undeleteService( * */ public com.google.api.servicemanagement.v1.ListServiceConfigsResponse listServiceConfigs( - com.google.api.servicemanagement.v1.ListServiceConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.ListServiceConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceConfigsMethod(), getCallOptions(), request); } @@ -1394,8 +1397,9 @@ public com.google.api.servicemanagement.v1.ListServiceConfigsResponse listServic * */ public com.google.api.Service getServiceConfig( - com.google.api.servicemanagement.v1.GetServiceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.GetServiceConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceConfigMethod(), getCallOptions(), request); } @@ -1413,8 +1417,9 @@ public com.google.api.Service getServiceConfig( * */ public com.google.api.Service createServiceConfig( - com.google.api.servicemanagement.v1.CreateServiceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.CreateServiceConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceConfigMethod(), getCallOptions(), request); } @@ -1437,8 +1442,9 @@ public com.google.api.Service createServiceConfig( * */ public com.google.longrunning.Operation submitConfigSource( - com.google.api.servicemanagement.v1.SubmitConfigSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.SubmitConfigSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitConfigSourceMethod(), getCallOptions(), request); } @@ -1451,8 +1457,9 @@ public com.google.longrunning.Operation submitConfigSource( * */ public com.google.api.servicemanagement.v1.ListServiceRolloutsResponse listServiceRollouts( - com.google.api.servicemanagement.v1.ListServiceRolloutsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.ListServiceRolloutsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServiceRolloutsMethod(), getCallOptions(), request); } @@ -1465,8 +1472,9 @@ public com.google.api.servicemanagement.v1.ListServiceRolloutsResponse listServi * */ public com.google.api.servicemanagement.v1.Rollout getServiceRollout( - com.google.api.servicemanagement.v1.GetServiceRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.GetServiceRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceRolloutMethod(), getCallOptions(), request); } @@ -1488,8 +1496,9 @@ public com.google.api.servicemanagement.v1.Rollout getServiceRollout( * */ public com.google.longrunning.Operation createServiceRollout( - com.google.api.servicemanagement.v1.CreateServiceRolloutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.CreateServiceRolloutRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceRolloutMethod(), getCallOptions(), request); } @@ -1510,8 +1519,9 @@ public com.google.longrunning.Operation createServiceRollout( * */ public com.google.api.servicemanagement.v1.GenerateConfigReportResponse generateConfigReport( - com.google.api.servicemanagement.v1.GenerateConfigReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.servicemanagement.v1.GenerateConfigReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateConfigReportMethod(), getCallOptions(), request); } } diff --git a/java-service-usage/README.md b/java-service-usage/README.md index 570d3b06f8e0..f25a58fb4354 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-usage - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.77.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1/src/main/java/com/google/api/serviceusage/v1/ServiceUsageGrpc.java b/java-service-usage/grpc-google-cloud-service-usage-v1/src/main/java/com/google/api/serviceusage/v1/ServiceUsageGrpc.java index a33b7ba5e8a3..611e14471c82 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1/src/main/java/com/google/api/serviceusage/v1/ServiceUsageGrpc.java +++ b/java-service-usage/grpc-google-cloud-service-usage-v1/src/main/java/com/google/api/serviceusage/v1/ServiceUsageGrpc.java @@ -27,9 +27,6 @@ * See [Service Usage API](https://cloud.google.com/service-usage/docs/overview) * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/serviceusage/v1/serviceusage.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServiceUsageGrpc { @@ -665,8 +662,9 @@ protected ServiceUsageBlockingV2Stub build( * */ public com.google.longrunning.Operation enableService( - com.google.api.serviceusage.v1.EnableServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1.EnableServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableServiceMethod(), getCallOptions(), request); } @@ -683,8 +681,9 @@ public com.google.longrunning.Operation enableService( * */ public com.google.longrunning.Operation disableService( - com.google.api.serviceusage.v1.DisableServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1.DisableServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableServiceMethod(), getCallOptions(), request); } @@ -696,8 +695,8 @@ public com.google.longrunning.Operation disableService( * */ public com.google.api.serviceusage.v1.Service getService( - com.google.api.serviceusage.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1.GetServiceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -720,8 +719,8 @@ public com.google.api.serviceusage.v1.Service getService( * */ public com.google.api.serviceusage.v1.ListServicesResponse listServices( - com.google.api.serviceusage.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1.ListServicesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -735,8 +734,9 @@ public com.google.api.serviceusage.v1.ListServicesResponse listServices( * */ public com.google.longrunning.Operation batchEnableServices( - com.google.api.serviceusage.v1.BatchEnableServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1.BatchEnableServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchEnableServicesMethod(), getCallOptions(), request); } @@ -749,8 +749,9 @@ public com.google.longrunning.Operation batchEnableServices( * */ public com.google.api.serviceusage.v1.BatchGetServicesResponse batchGetServices( - com.google.api.serviceusage.v1.BatchGetServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1.BatchGetServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchGetServicesMethod(), getCallOptions(), request); } } diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageGrpc.java b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageGrpc.java index b67f7289e413..f497c5f967e4 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageGrpc.java +++ b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageGrpc.java @@ -24,9 +24,6 @@ * [Service Usage API](https://cloud.google.com/service-usage/docs/overview) * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/api/serviceusage/v1beta1/serviceusage.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServiceUsageGrpc { @@ -1738,8 +1735,9 @@ protected ServiceUsageBlockingV2Stub build( */ @java.lang.Deprecated public com.google.longrunning.Operation enableService( - com.google.api.serviceusage.v1beta1.EnableServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.EnableServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableServiceMethod(), getCallOptions(), request); } @@ -1758,8 +1756,9 @@ public com.google.longrunning.Operation enableService( */ @java.lang.Deprecated public com.google.longrunning.Operation disableService( - com.google.api.serviceusage.v1beta1.DisableServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.DisableServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableServiceMethod(), getCallOptions(), request); } @@ -1772,8 +1771,9 @@ public com.google.longrunning.Operation disableService( */ @java.lang.Deprecated public com.google.api.serviceusage.v1beta1.Service getService( - com.google.api.serviceusage.v1beta1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.GetServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -1792,8 +1792,9 @@ public com.google.api.serviceusage.v1beta1.Service getService( */ @java.lang.Deprecated public com.google.api.serviceusage.v1beta1.ListServicesResponse listServices( - com.google.api.serviceusage.v1beta1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.ListServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -1809,8 +1810,9 @@ public com.google.api.serviceusage.v1beta1.ListServicesResponse listServices( */ @java.lang.Deprecated public com.google.longrunning.Operation batchEnableServices( - com.google.api.serviceusage.v1beta1.BatchEnableServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.BatchEnableServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchEnableServicesMethod(), getCallOptions(), request); } @@ -1827,8 +1829,9 @@ public com.google.longrunning.Operation batchEnableServices( */ public com.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsResponse listConsumerQuotaMetrics( - com.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConsumerQuotaMetricsMethod(), getCallOptions(), request); } @@ -1840,8 +1843,9 @@ public com.google.longrunning.Operation batchEnableServices( * */ public com.google.api.serviceusage.v1beta1.ConsumerQuotaMetric getConsumerQuotaMetric( - com.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConsumerQuotaMetricMethod(), getCallOptions(), request); } @@ -1853,8 +1857,9 @@ public com.google.api.serviceusage.v1beta1.ConsumerQuotaMetric getConsumerQuotaM * */ public com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit getConsumerQuotaLimit( - com.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConsumerQuotaLimitMethod(), getCallOptions(), request); } @@ -1871,8 +1876,9 @@ public com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit getConsumerQuotaLi * */ public com.google.longrunning.Operation createAdminOverride( - com.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAdminOverrideMethod(), getCallOptions(), request); } @@ -1884,8 +1890,9 @@ public com.google.longrunning.Operation createAdminOverride( * */ public com.google.longrunning.Operation updateAdminOverride( - com.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAdminOverrideMethod(), getCallOptions(), request); } @@ -1897,8 +1904,9 @@ public com.google.longrunning.Operation updateAdminOverride( * */ public com.google.longrunning.Operation deleteAdminOverride( - com.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAdminOverrideMethod(), getCallOptions(), request); } @@ -1910,8 +1918,9 @@ public com.google.longrunning.Operation deleteAdminOverride( * */ public com.google.api.serviceusage.v1beta1.ListAdminOverridesResponse listAdminOverrides( - com.google.api.serviceusage.v1beta1.ListAdminOverridesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.ListAdminOverridesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAdminOverridesMethod(), getCallOptions(), request); } @@ -1925,8 +1934,9 @@ public com.google.api.serviceusage.v1beta1.ListAdminOverridesResponse listAdminO * */ public com.google.longrunning.Operation importAdminOverrides( - com.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportAdminOverridesMethod(), getCallOptions(), request); } @@ -1942,8 +1952,9 @@ public com.google.longrunning.Operation importAdminOverrides( * */ public com.google.longrunning.Operation createConsumerOverride( - com.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConsumerOverrideMethod(), getCallOptions(), request); } @@ -1955,8 +1966,9 @@ public com.google.longrunning.Operation createConsumerOverride( * */ public com.google.longrunning.Operation updateConsumerOverride( - com.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConsumerOverrideMethod(), getCallOptions(), request); } @@ -1968,8 +1980,9 @@ public com.google.longrunning.Operation updateConsumerOverride( * */ public com.google.longrunning.Operation deleteConsumerOverride( - com.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConsumerOverrideMethod(), getCallOptions(), request); } @@ -1981,8 +1994,9 @@ public com.google.longrunning.Operation deleteConsumerOverride( * */ public com.google.api.serviceusage.v1beta1.ListConsumerOverridesResponse listConsumerOverrides( - com.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConsumerOverridesMethod(), getCallOptions(), request); } @@ -1996,8 +2010,9 @@ public com.google.api.serviceusage.v1beta1.ListConsumerOverridesResponse listCon * */ public com.google.longrunning.Operation importConsumerOverrides( - com.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportConsumerOverridesMethod(), getCallOptions(), request); } @@ -2009,8 +2024,9 @@ public com.google.longrunning.Operation importConsumerOverrides( * */ public com.google.longrunning.Operation generateServiceIdentity( - com.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateServiceIdentityMethod(), getCallOptions(), request); } } diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 31afe6010c43..059e0f8e52f9 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.78.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceGrpc.java b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceGrpc.java index b5b50bdfb279..b761ffa3c48a 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceGrpc.java +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceGrpc.java @@ -24,9 +24,6 @@ * Service Directory API for looking up service data at runtime. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicedirectory/v1/lookup_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LookupServiceGrpc { @@ -247,8 +244,9 @@ protected LookupServiceBlockingV2Stub build( * */ public com.google.cloud.servicedirectory.v1.ResolveServiceResponse resolveService( - com.google.cloud.servicedirectory.v1.ResolveServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.ResolveServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResolveServiceMethod(), getCallOptions(), request); } } diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceGrpc.java b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceGrpc.java index bf3095f8bd21..c03829711dc4 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceGrpc.java +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceGrpc.java @@ -35,9 +35,6 @@ * `projects/*/locations/*/namespaces/*/services/*/endpoints/*`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicedirectory/v1/registration_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RegistrationServiceGrpc { @@ -1593,8 +1590,9 @@ protected RegistrationServiceBlockingV2Stub build( * */ public com.google.cloud.servicedirectory.v1.Namespace createNamespace( - com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); } @@ -1606,8 +1604,9 @@ public com.google.cloud.servicedirectory.v1.Namespace createNamespace( * */ public com.google.cloud.servicedirectory.v1.ListNamespacesResponse listNamespaces( - com.google.cloud.servicedirectory.v1.ListNamespacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.ListNamespacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNamespacesMethod(), getCallOptions(), request); } @@ -1619,8 +1618,9 @@ public com.google.cloud.servicedirectory.v1.ListNamespacesResponse listNamespace * */ public com.google.cloud.servicedirectory.v1.Namespace getNamespace( - com.google.cloud.servicedirectory.v1.GetNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.GetNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNamespaceMethod(), getCallOptions(), request); } @@ -1632,8 +1632,9 @@ public com.google.cloud.servicedirectory.v1.Namespace getNamespace( * */ public com.google.cloud.servicedirectory.v1.Namespace updateNamespace( - com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNamespaceMethod(), getCallOptions(), request); } @@ -1646,8 +1647,9 @@ public com.google.cloud.servicedirectory.v1.Namespace updateNamespace( * */ public com.google.protobuf.Empty deleteNamespace( - com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); } @@ -1659,8 +1661,9 @@ public com.google.protobuf.Empty deleteNamespace( * */ public com.google.cloud.servicedirectory.v1.Service createService( - com.google.cloud.servicedirectory.v1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.CreateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); } @@ -1672,8 +1675,9 @@ public com.google.cloud.servicedirectory.v1.Service createService( * */ public com.google.cloud.servicedirectory.v1.ListServicesResponse listServices( - com.google.cloud.servicedirectory.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.ListServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -1685,8 +1689,9 @@ public com.google.cloud.servicedirectory.v1.ListServicesResponse listServices( * */ public com.google.cloud.servicedirectory.v1.Service getService( - com.google.cloud.servicedirectory.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.GetServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -1698,8 +1703,9 @@ public com.google.cloud.servicedirectory.v1.Service getService( * */ public com.google.cloud.servicedirectory.v1.Service updateService( - com.google.cloud.servicedirectory.v1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.UpdateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } @@ -1712,8 +1718,9 @@ public com.google.cloud.servicedirectory.v1.Service updateService( * */ public com.google.protobuf.Empty deleteService( - com.google.cloud.servicedirectory.v1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.DeleteServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } @@ -1725,8 +1732,9 @@ public com.google.protobuf.Empty deleteService( * */ public com.google.cloud.servicedirectory.v1.Endpoint createEndpoint( - com.google.cloud.servicedirectory.v1.CreateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.CreateEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEndpointMethod(), getCallOptions(), request); } @@ -1738,8 +1746,9 @@ public com.google.cloud.servicedirectory.v1.Endpoint createEndpoint( * */ public com.google.cloud.servicedirectory.v1.ListEndpointsResponse listEndpoints( - com.google.cloud.servicedirectory.v1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.ListEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEndpointsMethod(), getCallOptions(), request); } @@ -1751,8 +1760,9 @@ public com.google.cloud.servicedirectory.v1.ListEndpointsResponse listEndpoints( * */ public com.google.cloud.servicedirectory.v1.Endpoint getEndpoint( - com.google.cloud.servicedirectory.v1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.GetEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEndpointMethod(), getCallOptions(), request); } @@ -1764,8 +1774,9 @@ public com.google.cloud.servicedirectory.v1.Endpoint getEndpoint( * */ public com.google.cloud.servicedirectory.v1.Endpoint updateEndpoint( - com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } @@ -1777,8 +1788,9 @@ public com.google.cloud.servicedirectory.v1.Endpoint updateEndpoint( * */ public com.google.protobuf.Empty deleteEndpoint( - com.google.cloud.servicedirectory.v1.DeleteEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1.DeleteEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); } @@ -1789,8 +1801,9 @@ public com.google.protobuf.Empty deleteEndpoint( * Gets the IAM Policy for a resource (namespace or service only). * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1801,8 +1814,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM Policy for a resource (namespace or service only). * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1814,8 +1828,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceGrpc.java b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceGrpc.java index 9b074be39dce..e8bb26f25752 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceGrpc.java +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceGrpc.java @@ -24,9 +24,6 @@ * Service Directory API for looking up service data at runtime. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicedirectory/v1beta1/lookup_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LookupServiceGrpc { @@ -249,8 +246,9 @@ protected LookupServiceBlockingV2Stub build( * */ public com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse resolveService( - com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResolveServiceMethod(), getCallOptions(), request); } } diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceGrpc.java b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceGrpc.java index 4ad62b1e9635..38e8fbec2431 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceGrpc.java +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceGrpc.java @@ -35,9 +35,6 @@ * `projects/*/locations/*/namespaces/*/services/*/endpoints/*`. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicedirectory/v1beta1/registration_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RegistrationServiceGrpc { @@ -1613,8 +1610,9 @@ protected RegistrationServiceBlockingV2Stub build( * */ public com.google.cloud.servicedirectory.v1beta1.Namespace createNamespace( - com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); } @@ -1626,8 +1624,9 @@ public com.google.cloud.servicedirectory.v1beta1.Namespace createNamespace( * */ public com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse listNamespaces( - com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNamespacesMethod(), getCallOptions(), request); } @@ -1639,8 +1638,9 @@ public com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse listName * */ public com.google.cloud.servicedirectory.v1beta1.Namespace getNamespace( - com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNamespaceMethod(), getCallOptions(), request); } @@ -1652,8 +1652,9 @@ public com.google.cloud.servicedirectory.v1beta1.Namespace getNamespace( * */ public com.google.cloud.servicedirectory.v1beta1.Namespace updateNamespace( - com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNamespaceMethod(), getCallOptions(), request); } @@ -1666,8 +1667,9 @@ public com.google.cloud.servicedirectory.v1beta1.Namespace updateNamespace( * */ public com.google.protobuf.Empty deleteNamespace( - com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); } @@ -1679,8 +1681,9 @@ public com.google.protobuf.Empty deleteNamespace( * */ public com.google.cloud.servicedirectory.v1beta1.Service createService( - com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); } @@ -1692,8 +1695,9 @@ public com.google.cloud.servicedirectory.v1beta1.Service createService( * */ public com.google.cloud.servicedirectory.v1beta1.ListServicesResponse listServices( - com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } @@ -1705,8 +1709,9 @@ public com.google.cloud.servicedirectory.v1beta1.ListServicesResponse listServic * */ public com.google.cloud.servicedirectory.v1beta1.Service getService( - com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetServiceMethod(), getCallOptions(), request); } @@ -1718,8 +1723,9 @@ public com.google.cloud.servicedirectory.v1beta1.Service getService( * */ public com.google.cloud.servicedirectory.v1beta1.Service updateService( - com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } @@ -1732,8 +1738,9 @@ public com.google.cloud.servicedirectory.v1beta1.Service updateService( * */ public com.google.protobuf.Empty deleteService( - com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } @@ -1745,8 +1752,9 @@ public com.google.protobuf.Empty deleteService( * */ public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint( - com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEndpointMethod(), getCallOptions(), request); } @@ -1758,8 +1766,9 @@ public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint( * */ public com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse listEndpoints( - com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEndpointsMethod(), getCallOptions(), request); } @@ -1771,8 +1780,9 @@ public com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse listEndpo * */ public com.google.cloud.servicedirectory.v1beta1.Endpoint getEndpoint( - com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEndpointMethod(), getCallOptions(), request); } @@ -1784,8 +1794,9 @@ public com.google.cloud.servicedirectory.v1beta1.Endpoint getEndpoint( * */ public com.google.cloud.servicedirectory.v1beta1.Endpoint updateEndpoint( - com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } @@ -1797,8 +1808,9 @@ public com.google.cloud.servicedirectory.v1beta1.Endpoint updateEndpoint( * */ public com.google.protobuf.Empty deleteEndpoint( - com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); } @@ -1809,8 +1821,9 @@ public com.google.protobuf.Empty deleteEndpoint( * Gets the IAM Policy for a resource * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1821,8 +1834,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * Sets the IAM Policy for a resource * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1835,8 +1849,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index aa9eebd541c3..786d1a97aceb 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 0.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.44.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.45.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java b/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java index 70cbd55c8ff0..f9dbc2676aac 100644 --- a/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java +++ b/java-servicehealth/grpc-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthGrpc.java @@ -24,9 +24,6 @@ * Request service health events relevant to your Google Cloud project. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicehealth/v1/event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServiceHealthGrpc { @@ -645,8 +642,9 @@ protected ServiceHealthBlockingV2Stub build( * */ public com.google.cloud.servicehealth.v1.ListEventsResponse listEvents( - com.google.cloud.servicehealth.v1.ListEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicehealth.v1.ListEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEventsMethod(), getCallOptions(), request); } @@ -658,8 +656,8 @@ public com.google.cloud.servicehealth.v1.ListEventsResponse listEvents( * */ public com.google.cloud.servicehealth.v1.Event getEvent( - com.google.cloud.servicehealth.v1.GetEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicehealth.v1.GetEventRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEventMethod(), getCallOptions(), request); } @@ -671,8 +669,9 @@ public com.google.cloud.servicehealth.v1.Event getEvent( * */ public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse listOrganizationEvents( - com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicehealth.v1.ListOrganizationEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrganizationEventsMethod(), getCallOptions(), request); } @@ -685,8 +684,9 @@ public com.google.cloud.servicehealth.v1.ListOrganizationEventsResponse listOrga * */ public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvent( - com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicehealth.v1.GetOrganizationEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrganizationEventMethod(), getCallOptions(), request); } @@ -700,8 +700,9 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvent( */ public com.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse listOrganizationImpacts( - com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrganizationImpactsMethod(), getCallOptions(), request); } @@ -714,8 +715,9 @@ public com.google.cloud.servicehealth.v1.OrganizationEvent getOrganizationEvent( * */ public com.google.cloud.servicehealth.v1.OrganizationImpact getOrganizationImpact( - com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.servicehealth.v1.GetOrganizationImpactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrganizationImpactMethod(), getCallOptions(), request); } } diff --git a/java-shell/README.md b/java-shell/README.md index 06f53ecac8f6..e015330e4f87 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.76.0 + 2.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.76.0' +implementation 'com.google.cloud:google-cloud-shell:2.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shell/grpc-google-cloud-shell-v1/src/main/java/com/google/cloud/shell/v1/CloudShellServiceGrpc.java b/java-shell/grpc-google-cloud-shell-v1/src/main/java/com/google/cloud/shell/v1/CloudShellServiceGrpc.java index 744710375d04..d3ba404f1e10 100644 --- a/java-shell/grpc-google-cloud-shell-v1/src/main/java/com/google/cloud/shell/v1/CloudShellServiceGrpc.java +++ b/java-shell/grpc-google-cloud-shell-v1/src/main/java/com/google/cloud/shell/v1/CloudShellServiceGrpc.java @@ -30,9 +30,6 @@ * client. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/shell/v1/cloudshell.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudShellServiceGrpc { @@ -585,8 +582,8 @@ protected CloudShellServiceBlockingV2Stub build( * */ public com.google.cloud.shell.v1.Environment getEnvironment( - com.google.cloud.shell.v1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.shell.v1.GetEnvironmentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); } @@ -603,8 +600,8 @@ public com.google.cloud.shell.v1.Environment getEnvironment( * */ public com.google.longrunning.Operation startEnvironment( - com.google.cloud.shell.v1.StartEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.shell.v1.StartEnvironmentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartEnvironmentMethod(), getCallOptions(), request); } @@ -619,8 +616,9 @@ public com.google.longrunning.Operation startEnvironment( * */ public com.google.longrunning.Operation authorizeEnvironment( - com.google.cloud.shell.v1.AuthorizeEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.shell.v1.AuthorizeEnvironmentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAuthorizeEnvironmentMethod(), getCallOptions(), request); } @@ -634,8 +632,8 @@ public com.google.longrunning.Operation authorizeEnvironment( * */ public com.google.longrunning.Operation addPublicKey( - com.google.cloud.shell.v1.AddPublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.shell.v1.AddPublicKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddPublicKeyMethod(), getCallOptions(), request); } @@ -650,8 +648,8 @@ public com.google.longrunning.Operation addPublicKey( * */ public com.google.longrunning.Operation removePublicKey( - com.google.cloud.shell.v1.RemovePublicKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.shell.v1.RemovePublicKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemovePublicKeyMethod(), getCallOptions(), request); } } diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index b10e39c793a9..21a79cdbaa70 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-css - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.45.0' +implementation 'com.google.shopping:google-shopping-css:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.45.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.46.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceGrpc.java b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceGrpc.java index 7fd36092d919..06bfc0fc114a 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceGrpc.java +++ b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceGrpc.java @@ -24,9 +24,6 @@ * Manages Merchant Center and CSS accounts labels. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/css/v1/accounts_labels.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccountLabelsServiceGrpc { @@ -475,8 +472,9 @@ protected AccountLabelsServiceBlockingV2Stub build( * */ public com.google.shopping.css.v1.ListAccountLabelsResponse listAccountLabels( - com.google.shopping.css.v1.ListAccountLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.ListAccountLabelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountLabelsMethod(), getCallOptions(), request); } @@ -488,8 +486,9 @@ public com.google.shopping.css.v1.ListAccountLabelsResponse listAccountLabels( * */ public com.google.shopping.css.v1.AccountLabel createAccountLabel( - com.google.shopping.css.v1.CreateAccountLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.CreateAccountLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAccountLabelMethod(), getCallOptions(), request); } @@ -501,8 +500,9 @@ public com.google.shopping.css.v1.AccountLabel createAccountLabel( * */ public com.google.shopping.css.v1.AccountLabel updateAccountLabel( - com.google.shopping.css.v1.UpdateAccountLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.UpdateAccountLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccountLabelMethod(), getCallOptions(), request); } @@ -514,8 +514,9 @@ public com.google.shopping.css.v1.AccountLabel updateAccountLabel( * */ public com.google.protobuf.Empty deleteAccountLabel( - com.google.shopping.css.v1.DeleteAccountLabelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.DeleteAccountLabelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccountLabelMethod(), getCallOptions(), request); } } diff --git a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountsServiceGrpc.java b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountsServiceGrpc.java index 49e34b5b7d5a..14ea318e7e14 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountsServiceGrpc.java +++ b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountsServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing CSS/MC account information. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/css/v1/accounts.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccountsServiceGrpc { @@ -387,8 +384,9 @@ protected AccountsServiceBlockingV2Stub build( * */ public com.google.shopping.css.v1.ListChildAccountsResponse listChildAccounts( - com.google.shopping.css.v1.ListChildAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.ListChildAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChildAccountsMethod(), getCallOptions(), request); } @@ -400,8 +398,8 @@ public com.google.shopping.css.v1.ListChildAccountsResponse listChildAccounts( * */ public com.google.shopping.css.v1.Account getAccount( - com.google.shopping.css.v1.GetAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.GetAccountRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccountMethod(), getCallOptions(), request); } @@ -413,8 +411,9 @@ public com.google.shopping.css.v1.Account getAccount( * */ public com.google.shopping.css.v1.Account updateLabels( - com.google.shopping.css.v1.UpdateAccountLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.UpdateAccountLabelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateLabelsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceGrpc.java b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceGrpc.java index e9b145c6b659..4374a76682a2 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceGrpc.java +++ b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceGrpc.java @@ -25,9 +25,6 @@ * This service helps to insert/update/delete CSS Products. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/css/v1/css_product_inputs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CssProductInputsServiceGrpc { @@ -432,8 +429,9 @@ protected CssProductInputsServiceBlockingV2Stub build( * */ public com.google.shopping.css.v1.CssProductInput insertCssProductInput( - com.google.shopping.css.v1.InsertCssProductInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.InsertCssProductInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertCssProductInputMethod(), getCallOptions(), request); } @@ -447,8 +445,9 @@ public com.google.shopping.css.v1.CssProductInput insertCssProductInput( * */ public com.google.shopping.css.v1.CssProductInput updateCssProductInput( - com.google.shopping.css.v1.UpdateCssProductInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.UpdateCssProductInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCssProductInputMethod(), getCallOptions(), request); } @@ -462,8 +461,9 @@ public com.google.shopping.css.v1.CssProductInput updateCssProductInput( * */ public com.google.protobuf.Empty deleteCssProductInput( - com.google.shopping.css.v1.DeleteCssProductInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.DeleteCssProductInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCssProductInputMethod(), getCallOptions(), request); } } diff --git a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductsServiceGrpc.java b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductsServiceGrpc.java index b02a03d880fe..9927d447c927 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductsServiceGrpc.java +++ b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductsServiceGrpc.java @@ -25,9 +25,6 @@ * internally). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/css/v1/css_products.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CssProductsServiceGrpc { @@ -335,8 +332,8 @@ protected CssProductsServiceBlockingV2Stub build( * */ public com.google.shopping.css.v1.CssProduct getCssProduct( - com.google.shopping.css.v1.GetCssProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.GetCssProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCssProductMethod(), getCallOptions(), request); } @@ -353,8 +350,8 @@ public com.google.shopping.css.v1.CssProduct getCssProduct( * */ public com.google.shopping.css.v1.ListCssProductsResponse listCssProducts( - com.google.shopping.css.v1.ListCssProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.ListCssProductsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCssProductsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/QuotaServiceGrpc.java b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/QuotaServiceGrpc.java index 5658629f89ae..0f5eba721e00 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/QuotaServiceGrpc.java +++ b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/QuotaServiceGrpc.java @@ -24,9 +24,6 @@ * Service to get method call quota information per CSS API method. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/css/v1/quota.proto") @io.grpc.stub.annotations.GrpcGenerated public final class QuotaServiceGrpc { @@ -240,8 +237,8 @@ protected QuotaServiceBlockingV2Stub build( * */ public com.google.shopping.css.v1.ListQuotaGroupsResponse listQuotaGroups( - com.google.shopping.css.v1.ListQuotaGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.css.v1.ListQuotaGroupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQuotaGroupsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index af878557784b..735ce8667f1a 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-accounts - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceGrpc.java index e8ed2110fd24..aaeb8dd701aa 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support `AccountIssueService` API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/accountissue.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccountIssueServiceGrpc { @@ -264,8 +261,9 @@ protected AccountIssueServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.ListAccountIssuesResponse listAccountIssues( - com.google.shopping.merchant.accounts.v1.ListAccountIssuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListAccountIssuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountIssuesMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceGrpc.java index 8a9b86694148..7f2c2b5cb99c 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support AccountRelationship API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/accountrelationships.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccountRelationshipsServiceGrpc { @@ -426,8 +423,9 @@ protected AccountRelationshipsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.AccountRelationship getAccountRelationship( - com.google.shopping.merchant.accounts.v1.GetAccountRelationshipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetAccountRelationshipRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccountRelationshipMethod(), getCallOptions(), request); } @@ -440,8 +438,9 @@ public com.google.shopping.merchant.accounts.v1.AccountRelationship getAccountRe * */ public com.google.shopping.merchant.accounts.v1.AccountRelationship updateAccountRelationship( - com.google.shopping.merchant.accounts.v1.UpdateAccountRelationshipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateAccountRelationshipRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccountRelationshipMethod(), getCallOptions(), request); } @@ -454,8 +453,9 @@ public com.google.shopping.merchant.accounts.v1.AccountRelationship updateAccoun */ public com.google.shopping.merchant.accounts.v1.ListAccountRelationshipsResponse listAccountRelationships( - com.google.shopping.merchant.accounts.v1.ListAccountRelationshipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListAccountRelationshipsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountRelationshipsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceGrpc.java index 34295dc7b4a4..d28830db931e 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support AccountService API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/accountservices.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccountServicesServiceGrpc { @@ -580,8 +577,9 @@ protected AccountServicesServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.AccountService getAccountService( - com.google.shopping.merchant.accounts.v1.GetAccountServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetAccountServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccountServiceMethod(), getCallOptions(), request); } @@ -593,8 +591,9 @@ public com.google.shopping.merchant.accounts.v1.AccountService getAccountService * */ public com.google.shopping.merchant.accounts.v1.ListAccountServicesResponse listAccountServices( - com.google.shopping.merchant.accounts.v1.ListAccountServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListAccountServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountServicesMethod(), getCallOptions(), request); } @@ -606,8 +605,9 @@ public com.google.shopping.merchant.accounts.v1.ListAccountServicesResponse list * */ public com.google.shopping.merchant.accounts.v1.AccountService proposeAccountService( - com.google.shopping.merchant.accounts.v1.ProposeAccountServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ProposeAccountServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProposeAccountServiceMethod(), getCallOptions(), request); } @@ -619,8 +619,9 @@ public com.google.shopping.merchant.accounts.v1.AccountService proposeAccountSer * */ public com.google.shopping.merchant.accounts.v1.AccountService approveAccountService( - com.google.shopping.merchant.accounts.v1.ApproveAccountServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ApproveAccountServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApproveAccountServiceMethod(), getCallOptions(), request); } @@ -633,8 +634,9 @@ public com.google.shopping.merchant.accounts.v1.AccountService approveAccountSer * */ public com.google.protobuf.Empty rejectAccountService( - com.google.shopping.merchant.accounts.v1.RejectAccountServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.RejectAccountServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRejectAccountServiceMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceGrpc.java index c30e790c6e71..d5cb8410d2b9 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support Accounts API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/accounts.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccountsServiceGrpc { @@ -672,8 +669,9 @@ protected AccountsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.Account getAccount( - com.google.shopping.merchant.accounts.v1.GetAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccountMethod(), getCallOptions(), request); } @@ -686,8 +684,9 @@ public com.google.shopping.merchant.accounts.v1.Account getAccount( * */ public com.google.shopping.merchant.accounts.v1.Account createAndConfigureAccount( - com.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAndConfigureAccountMethod(), getCallOptions(), request); } @@ -704,8 +703,9 @@ public com.google.shopping.merchant.accounts.v1.Account createAndConfigureAccoun * */ public com.google.protobuf.Empty deleteAccount( - com.google.shopping.merchant.accounts.v1.DeleteAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.DeleteAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccountMethod(), getCallOptions(), request); } @@ -718,8 +718,9 @@ public com.google.protobuf.Empty deleteAccount( * */ public com.google.shopping.merchant.accounts.v1.Account updateAccount( - com.google.shopping.merchant.accounts.v1.UpdateAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccountMethod(), getCallOptions(), request); } @@ -735,8 +736,9 @@ public com.google.shopping.merchant.accounts.v1.Account updateAccount( * */ public com.google.shopping.merchant.accounts.v1.ListAccountsResponse listAccounts( - com.google.shopping.merchant.accounts.v1.ListAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountsMethod(), getCallOptions(), request); } @@ -752,8 +754,9 @@ public com.google.shopping.merchant.accounts.v1.ListAccountsResponse listAccount * */ public com.google.shopping.merchant.accounts.v1.ListSubAccountsResponse listSubAccounts( - com.google.shopping.merchant.accounts.v1.ListSubAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListSubAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubAccountsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceGrpc.java index db195e5225ff..af9285f2f733 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceGrpc.java @@ -25,9 +25,6 @@ * [autofeed](https://support.google.com/merchants/answer/7538732) setting. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/autofeedsettings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutofeedSettingsServiceGrpc { @@ -338,8 +335,9 @@ protected AutofeedSettingsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.AutofeedSettings getAutofeedSettings( - com.google.shopping.merchant.accounts.v1.GetAutofeedSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetAutofeedSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAutofeedSettingsMethod(), getCallOptions(), request); } @@ -351,8 +349,9 @@ public com.google.shopping.merchant.accounts.v1.AutofeedSettings getAutofeedSett * */ public com.google.shopping.merchant.accounts.v1.AutofeedSettings updateAutofeedSettings( - com.google.shopping.merchant.accounts.v1.UpdateAutofeedSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateAutofeedSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAutofeedSettingsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceGrpc.java index 215527cdfb02..fabb13363058 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceGrpc.java @@ -26,9 +26,6 @@ * improve images and shipping. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/automaticimprovements.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutomaticImprovementsServiceGrpc { @@ -347,8 +344,9 @@ protected AutomaticImprovementsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.AutomaticImprovements getAutomaticImprovements( - com.google.shopping.merchant.accounts.v1.GetAutomaticImprovementsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetAutomaticImprovementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAutomaticImprovementsMethod(), getCallOptions(), request); } @@ -361,8 +359,9 @@ public com.google.shopping.merchant.accounts.v1.AutomaticImprovements getAutomat */ public com.google.shopping.merchant.accounts.v1.AutomaticImprovements updateAutomaticImprovements( - com.google.shopping.merchant.accounts.v1.UpdateAutomaticImprovementsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateAutomaticImprovementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAutomaticImprovementsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceGrpc.java index 9ebe76f4b6be..b7804b2419c4 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceGrpc.java @@ -25,9 +25,6 @@ * identity](https://support.google.com/merchants/answer/12564247) API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/businessidentity.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BusinessIdentityServiceGrpc { @@ -340,8 +337,9 @@ protected BusinessIdentityServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.BusinessIdentity getBusinessIdentity( - com.google.shopping.merchant.accounts.v1.GetBusinessIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetBusinessIdentityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBusinessIdentityMethod(), getCallOptions(), request); } @@ -354,8 +352,9 @@ public com.google.shopping.merchant.accounts.v1.BusinessIdentity getBusinessIden * */ public com.google.shopping.merchant.accounts.v1.BusinessIdentity updateBusinessIdentity( - com.google.shopping.merchant.accounts.v1.UpdateBusinessIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateBusinessIdentityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBusinessIdentityMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceGrpc.java index 52101251fb12..b9893280b45e 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support business info API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/businessinfo.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BusinessInfoServiceGrpc { @@ -326,8 +323,9 @@ protected BusinessInfoServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.BusinessInfo getBusinessInfo( - com.google.shopping.merchant.accounts.v1.GetBusinessInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetBusinessInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBusinessInfoMethod(), getCallOptions(), request); } @@ -340,8 +338,9 @@ public com.google.shopping.merchant.accounts.v1.BusinessInfo getBusinessInfo( * */ public com.google.shopping.merchant.accounts.v1.BusinessInfo updateBusinessInfo( - com.google.shopping.merchant.accounts.v1.UpdateBusinessInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateBusinessInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBusinessInfoMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceGrpc.java index ff5a90b7f898..d4283dd01743 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceGrpc.java @@ -25,9 +25,6 @@ * settings](https://support.google.com/merchants/answer/13945960). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/checkoutsettings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CheckoutSettingsServiceGrpc { @@ -510,8 +507,9 @@ protected CheckoutSettingsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.CheckoutSettings getCheckoutSettings( - com.google.shopping.merchant.accounts.v1.GetCheckoutSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetCheckoutSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCheckoutSettingsMethod(), getCallOptions(), request); } @@ -523,8 +521,9 @@ public com.google.shopping.merchant.accounts.v1.CheckoutSettings getCheckoutSett * */ public com.google.shopping.merchant.accounts.v1.CheckoutSettings createCheckoutSettings( - com.google.shopping.merchant.accounts.v1.CreateCheckoutSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.CreateCheckoutSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCheckoutSettingsMethod(), getCallOptions(), request); } @@ -536,8 +535,9 @@ public com.google.shopping.merchant.accounts.v1.CheckoutSettings createCheckoutS * */ public com.google.shopping.merchant.accounts.v1.CheckoutSettings updateCheckoutSettings( - com.google.shopping.merchant.accounts.v1.UpdateCheckoutSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateCheckoutSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCheckoutSettingsMethod(), getCallOptions(), request); } @@ -550,8 +550,9 @@ public com.google.shopping.merchant.accounts.v1.CheckoutSettings updateCheckoutS * */ public com.google.protobuf.Empty deleteCheckoutSettings( - com.google.shopping.merchant.accounts.v1.DeleteCheckoutSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.DeleteCheckoutSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCheckoutSettingsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceGrpc.java index ae9e46361009..9e7328a581d9 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceGrpc.java @@ -24,9 +24,6 @@ * Service to access Developer Registration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/developerregistration.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeveloperRegistrationServiceGrpc { @@ -420,8 +417,9 @@ protected DeveloperRegistrationServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.DeveloperRegistration registerGcp( - com.google.shopping.merchant.accounts.v1.RegisterGcpRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.RegisterGcpRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRegisterGcpMethod(), getCallOptions(), request); } @@ -433,8 +431,9 @@ public com.google.shopping.merchant.accounts.v1.DeveloperRegistration registerGc * */ public com.google.shopping.merchant.accounts.v1.DeveloperRegistration getDeveloperRegistration( - com.google.shopping.merchant.accounts.v1.GetDeveloperRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetDeveloperRegistrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeveloperRegistrationMethod(), getCallOptions(), request); } @@ -448,8 +447,9 @@ public com.google.shopping.merchant.accounts.v1.DeveloperRegistration getDevelop * */ public com.google.protobuf.Empty unregisterGcp( - com.google.shopping.merchant.accounts.v1.UnregisterGcpRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UnregisterGcpRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnregisterGcpMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceGrpc.java index 9f3cc9f53434..0cc0cd4b1e9f 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support the `EmailPreferences` API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/emailpreferences.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EmailPreferencesServiceGrpc { @@ -361,8 +358,9 @@ protected EmailPreferencesServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.EmailPreferences getEmailPreferences( - com.google.shopping.merchant.accounts.v1.GetEmailPreferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetEmailPreferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEmailPreferencesMethod(), getCallOptions(), request); } @@ -382,8 +380,9 @@ public com.google.shopping.merchant.accounts.v1.EmailPreferences getEmailPrefere * */ public com.google.shopping.merchant.accounts.v1.EmailPreferences updateEmailPreferences( - com.google.shopping.merchant.accounts.v1.UpdateEmailPreferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateEmailPreferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEmailPreferencesMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceGrpc.java index 2fe0c6e47c5e..26146f152a60 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceGrpc.java @@ -27,9 +27,6 @@ * - [GbpAccount][google.shopping.merchant.accounts.v1.GbpAccount] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/gbpaccounts.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GbpAccountsServiceGrpc { @@ -345,8 +342,9 @@ protected GbpAccountsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.ListGbpAccountsResponse listGbpAccounts( - com.google.shopping.merchant.accounts.v1.ListGbpAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListGbpAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGbpAccountsMethod(), getCallOptions(), request); } @@ -361,8 +359,9 @@ public com.google.shopping.merchant.accounts.v1.ListGbpAccountsResponse listGbpA * */ public com.google.shopping.merchant.accounts.v1.LinkGbpAccountResponse linkGbpAccount( - com.google.shopping.merchant.accounts.v1.LinkGbpAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.LinkGbpAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLinkGbpAccountMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceGrpc.java index 74dd0bafb4ae..60a87a14c832 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support an API for a store's homepage. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/homepage.proto") @io.grpc.stub.annotations.GrpcGenerated public final class HomepageServiceGrpc { @@ -505,8 +502,9 @@ protected HomepageServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.Homepage getHomepage( - com.google.shopping.merchant.accounts.v1.GetHomepageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetHomepageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHomepageMethod(), getCallOptions(), request); } @@ -518,8 +516,9 @@ public com.google.shopping.merchant.accounts.v1.Homepage getHomepage( * */ public com.google.shopping.merchant.accounts.v1.Homepage updateHomepage( - com.google.shopping.merchant.accounts.v1.UpdateHomepageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateHomepageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHomepageMethod(), getCallOptions(), request); } @@ -544,8 +543,9 @@ public com.google.shopping.merchant.accounts.v1.Homepage updateHomepage( * */ public com.google.shopping.merchant.accounts.v1.Homepage claimHomepage( - com.google.shopping.merchant.accounts.v1.ClaimHomepageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ClaimHomepageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getClaimHomepageMethod(), getCallOptions(), request); } @@ -557,8 +557,9 @@ public com.google.shopping.merchant.accounts.v1.Homepage claimHomepage( * */ public com.google.shopping.merchant.accounts.v1.Homepage unclaimHomepage( - com.google.shopping.merchant.accounts.v1.UnclaimHomepageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UnclaimHomepageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnclaimHomepageMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceGrpc.java index bc9181f4d46d..403ddcff79af 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceGrpc.java @@ -26,9 +26,6 @@ * - [LfpProvider][google.shopping.merchant.accounts.v1.LfpProvider] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/lfpproviders.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpProvidersServiceGrpc { @@ -337,8 +334,9 @@ protected LfpProvidersServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.FindLfpProvidersResponse findLfpProviders( - com.google.shopping.merchant.accounts.v1.FindLfpProvidersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.FindLfpProvidersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFindLfpProvidersMethod(), getCallOptions(), request); } @@ -350,8 +348,9 @@ public com.google.shopping.merchant.accounts.v1.FindLfpProvidersResponse findLfp * */ public com.google.shopping.merchant.accounts.v1.LinkLfpProviderResponse linkLfpProvider( - com.google.shopping.merchant.accounts.v1.LinkLfpProviderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.LinkLfpProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLinkLfpProviderMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceGrpc.java index 3bc3daa1491c..dbd7536c60a1 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceGrpc.java @@ -26,9 +26,6 @@ * [OmnichannelSetting][google.shopping.merchant.accounts.v1.OmnichannelSetting] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/omnichannelsettings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OmnichannelSettingsServiceGrpc { @@ -609,8 +606,9 @@ protected OmnichannelSettingsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.OmnichannelSetting getOmnichannelSetting( - com.google.shopping.merchant.accounts.v1.GetOmnichannelSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetOmnichannelSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOmnichannelSettingMethod(), getCallOptions(), request); } @@ -623,8 +621,9 @@ public com.google.shopping.merchant.accounts.v1.OmnichannelSetting getOmnichanne */ public com.google.shopping.merchant.accounts.v1.ListOmnichannelSettingsResponse listOmnichannelSettings( - com.google.shopping.merchant.accounts.v1.ListOmnichannelSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListOmnichannelSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOmnichannelSettingsMethod(), getCallOptions(), request); } @@ -636,8 +635,9 @@ public com.google.shopping.merchant.accounts.v1.OmnichannelSetting getOmnichanne * */ public com.google.shopping.merchant.accounts.v1.OmnichannelSetting createOmnichannelSetting( - com.google.shopping.merchant.accounts.v1.CreateOmnichannelSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.CreateOmnichannelSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOmnichannelSettingMethod(), getCallOptions(), request); } @@ -649,8 +649,9 @@ public com.google.shopping.merchant.accounts.v1.OmnichannelSetting createOmnicha * */ public com.google.shopping.merchant.accounts.v1.OmnichannelSetting updateOmnichannelSetting( - com.google.shopping.merchant.accounts.v1.UpdateOmnichannelSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateOmnichannelSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOmnichannelSettingMethod(), getCallOptions(), request); } @@ -663,8 +664,9 @@ public com.google.shopping.merchant.accounts.v1.OmnichannelSetting updateOmnicha */ public com.google.shopping.merchant.accounts.v1.RequestInventoryVerificationResponse requestInventoryVerification( - com.google.shopping.merchant.accounts.v1.RequestInventoryVerificationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.RequestInventoryVerificationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRequestInventoryVerificationMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceGrpc.java index af2519309461..fe7cb5e714f6 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceGrpc.java @@ -27,9 +27,6 @@ * [OnlineReturnPolicy][google.shopping.merchant.accounts.v1.OnlineReturnPolicy] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/online_return_policy.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OnlineReturnPolicyServiceGrpc { @@ -520,8 +517,9 @@ protected OnlineReturnPolicyServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.OnlineReturnPolicy getOnlineReturnPolicy( - com.google.shopping.merchant.accounts.v1.GetOnlineReturnPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetOnlineReturnPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOnlineReturnPolicyMethod(), getCallOptions(), request); } @@ -534,8 +532,9 @@ public com.google.shopping.merchant.accounts.v1.OnlineReturnPolicy getOnlineRetu */ public com.google.shopping.merchant.accounts.v1.ListOnlineReturnPoliciesResponse listOnlineReturnPolicies( - com.google.shopping.merchant.accounts.v1.ListOnlineReturnPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListOnlineReturnPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOnlineReturnPoliciesMethod(), getCallOptions(), request); } @@ -547,8 +546,9 @@ public com.google.shopping.merchant.accounts.v1.OnlineReturnPolicy getOnlineRetu * */ public com.google.shopping.merchant.accounts.v1.OnlineReturnPolicy createOnlineReturnPolicy( - com.google.shopping.merchant.accounts.v1.CreateOnlineReturnPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.CreateOnlineReturnPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOnlineReturnPolicyMethod(), getCallOptions(), request); } @@ -560,8 +560,9 @@ public com.google.shopping.merchant.accounts.v1.OnlineReturnPolicy createOnlineR * */ public com.google.protobuf.Empty deleteOnlineReturnPolicy( - com.google.shopping.merchant.accounts.v1.DeleteOnlineReturnPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.DeleteOnlineReturnPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOnlineReturnPolicyMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceGrpc.java index 8f83179ba8f4..9b3293a07796 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceGrpc.java @@ -32,9 +32,6 @@ * explicitly enabling or disabling participation in each program. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/programs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProgramsServiceGrpc { @@ -516,8 +513,9 @@ protected ProgramsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.Program getProgram( - com.google.shopping.merchant.accounts.v1.GetProgramRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetProgramRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProgramMethod(), getCallOptions(), request); } @@ -529,8 +527,9 @@ public com.google.shopping.merchant.accounts.v1.Program getProgram( * */ public com.google.shopping.merchant.accounts.v1.ListProgramsResponse listPrograms( - com.google.shopping.merchant.accounts.v1.ListProgramsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListProgramsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProgramsMethod(), getCallOptions(), request); } @@ -542,8 +541,9 @@ public com.google.shopping.merchant.accounts.v1.ListProgramsResponse listProgram * */ public com.google.shopping.merchant.accounts.v1.Program enableProgram( - com.google.shopping.merchant.accounts.v1.EnableProgramRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.EnableProgramRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableProgramMethod(), getCallOptions(), request); } @@ -555,8 +555,9 @@ public com.google.shopping.merchant.accounts.v1.Program enableProgram( * */ public com.google.shopping.merchant.accounts.v1.Program disableProgram( - com.google.shopping.merchant.accounts.v1.DisableProgramRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.DisableProgramRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableProgramMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceGrpc.java index e6baa2a1a496..92d0c2c6a8d9 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceGrpc.java @@ -26,9 +26,6 @@ * - [Region][google.shopping.merchant.accounts.v1.Region] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/regions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RegionsServiceGrpc { @@ -807,8 +804,9 @@ protected RegionsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.Region getRegion( - com.google.shopping.merchant.accounts.v1.GetRegionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetRegionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRegionMethod(), getCallOptions(), request); } @@ -821,8 +819,9 @@ public com.google.shopping.merchant.accounts.v1.Region getRegion( * */ public com.google.shopping.merchant.accounts.v1.Region createRegion( - com.google.shopping.merchant.accounts.v1.CreateRegionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.CreateRegionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRegionMethod(), getCallOptions(), request); } @@ -835,8 +834,9 @@ public com.google.shopping.merchant.accounts.v1.Region createRegion( * */ public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse batchCreateRegions( - com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateRegionsMethod(), getCallOptions(), request); } @@ -849,8 +849,9 @@ public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse batch * */ public com.google.shopping.merchant.accounts.v1.Region updateRegion( - com.google.shopping.merchant.accounts.v1.UpdateRegionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRegionMethod(), getCallOptions(), request); } @@ -863,8 +864,9 @@ public com.google.shopping.merchant.accounts.v1.Region updateRegion( * */ public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse batchUpdateRegions( - com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateRegionsMethod(), getCallOptions(), request); } @@ -877,8 +879,9 @@ public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse batch * */ public com.google.protobuf.Empty deleteRegion( - com.google.shopping.merchant.accounts.v1.DeleteRegionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRegionMethod(), getCallOptions(), request); } @@ -891,8 +894,9 @@ public com.google.protobuf.Empty deleteRegion( * */ public com.google.protobuf.Empty batchDeleteRegions( - com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteRegionsMethod(), getCallOptions(), request); } @@ -904,8 +908,9 @@ public com.google.protobuf.Empty batchDeleteRegions( * */ public com.google.shopping.merchant.accounts.v1.ListRegionsResponse listRegions( - com.google.shopping.merchant.accounts.v1.ListRegionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListRegionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRegionsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceGrpc.java index 3aea61eae1ed..91d923bd0198 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceGrpc.java @@ -25,9 +25,6 @@ * method. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/shippingsettings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ShippingSettingsServiceGrpc { @@ -340,8 +337,9 @@ protected ShippingSettingsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.ShippingSettings getShippingSettings( - com.google.shopping.merchant.accounts.v1.GetShippingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetShippingSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetShippingSettingsMethod(), getCallOptions(), request); } @@ -354,8 +352,9 @@ public com.google.shopping.merchant.accounts.v1.ShippingSettings getShippingSett * */ public com.google.shopping.merchant.accounts.v1.ShippingSettings insertShippingSettings( - com.google.shopping.merchant.accounts.v1.InsertShippingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.InsertShippingSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertShippingSettingsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceGrpc.java index 2ccb3b4209e9..c891d7ef78ce 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support `TermsOfServiceAgreementState` API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/termsofserviceagreementstate.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TermsOfServiceAgreementStateServiceGrpc { @@ -373,9 +370,9 @@ protected TermsOfServiceAgreementStateServiceBlockingV2Stub build( */ public com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementState getTermsOfServiceAgreementState( - com.google.shopping.merchant.accounts.v1.GetTermsOfServiceAgreementStateRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetTermsOfServiceAgreementStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTermsOfServiceAgreementStateMethod(), getCallOptions(), request); } @@ -393,8 +390,9 @@ protected TermsOfServiceAgreementStateServiceBlockingV2Stub build( retrieveForApplicationTermsOfServiceAgreementState( com.google.shopping.merchant.accounts.v1 .RetrieveForApplicationTermsOfServiceAgreementStateRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveForApplicationTermsOfServiceAgreementStateMethod(), getCallOptions(), diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceGrpc.java index 77e40a5f148c..2857839ec92a 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support `TermsOfService` API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/termsofservice.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TermsOfServiceServiceGrpc { @@ -419,8 +416,9 @@ protected TermsOfServiceServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.TermsOfService getTermsOfService( - com.google.shopping.merchant.accounts.v1.GetTermsOfServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetTermsOfServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTermsOfServiceMethod(), getCallOptions(), request); } @@ -433,8 +431,9 @@ public com.google.shopping.merchant.accounts.v1.TermsOfService getTermsOfService * */ public com.google.shopping.merchant.accounts.v1.TermsOfService retrieveLatestTermsOfService( - com.google.shopping.merchant.accounts.v1.RetrieveLatestTermsOfServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.RetrieveLatestTermsOfServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveLatestTermsOfServiceMethod(), getCallOptions(), request); } @@ -447,8 +446,9 @@ public com.google.shopping.merchant.accounts.v1.TermsOfService retrieveLatestTer */ public com.google.shopping.merchant.accounts.v1.AcceptTermsOfServiceResponse acceptTermsOfService( - com.google.shopping.merchant.accounts.v1.AcceptTermsOfServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.AcceptTermsOfServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcceptTermsOfServiceMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceGrpc.java index 8c0d50cdb022..7a52ac1b38df 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support user API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1/user.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserServiceGrpc { @@ -537,8 +534,9 @@ protected UserServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1.User getUser( - com.google.shopping.merchant.accounts.v1.GetUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.GetUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUserMethod(), getCallOptions(), request); } @@ -551,8 +549,9 @@ public com.google.shopping.merchant.accounts.v1.User getUser( * */ public com.google.shopping.merchant.accounts.v1.User createUser( - com.google.shopping.merchant.accounts.v1.CreateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.CreateUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUserMethod(), getCallOptions(), request); } @@ -567,8 +566,9 @@ public com.google.shopping.merchant.accounts.v1.User createUser( * */ public com.google.protobuf.Empty deleteUser( - com.google.shopping.merchant.accounts.v1.DeleteUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.DeleteUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserMethod(), getCallOptions(), request); } @@ -581,8 +581,9 @@ public com.google.protobuf.Empty deleteUser( * */ public com.google.shopping.merchant.accounts.v1.User updateUser( - com.google.shopping.merchant.accounts.v1.UpdateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.UpdateUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUserMethod(), getCallOptions(), request); } @@ -594,8 +595,9 @@ public com.google.shopping.merchant.accounts.v1.User updateUser( * */ public com.google.shopping.merchant.accounts.v1.ListUsersResponse listUsers( - com.google.shopping.merchant.accounts.v1.ListUsersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1.ListUsersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsersMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceGrpc.java index 7b94cb35abde..27aa0b1014df 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support `AccountIssueService` API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/accountissue.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccountIssueServiceGrpc { @@ -246,8 +243,9 @@ protected AccountIssueServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse listAccountIssues( - com.google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountIssuesMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceGrpc.java index d4a4994039c5..86c5ad17a868 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceGrpc.java @@ -26,9 +26,6 @@ * - [AccountTax][google.shopping.merchant.accounts.v1main.AccountTax] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/account_tax.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccountTaxServiceGrpc { @@ -419,8 +416,9 @@ protected AccountTaxServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.AccountTax getAccountTax( - com.google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetAccountTaxRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccountTaxMethod(), getCallOptions(), request); } @@ -435,8 +433,9 @@ public com.google.shopping.merchant.accounts.v1beta.AccountTax getAccountTax( * */ public com.google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse listAccountTax( - com.google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListAccountTaxRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountTaxMethod(), getCallOptions(), request); } @@ -448,8 +447,9 @@ public com.google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse listA * */ public com.google.shopping.merchant.accounts.v1beta.AccountTax updateAccountTax( - com.google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateAccountTaxRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccountTaxMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceGrpc.java index aba723733429..cfdbccd8727e 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support Accounts API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/accounts.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AccountsServiceGrpc { @@ -680,8 +677,9 @@ protected AccountsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.Account getAccount( - com.google.shopping.merchant.accounts.v1beta.GetAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAccountMethod(), getCallOptions(), request); } @@ -694,8 +692,9 @@ public com.google.shopping.merchant.accounts.v1beta.Account getAccount( * */ public com.google.shopping.merchant.accounts.v1beta.Account createAndConfigureAccount( - com.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAndConfigureAccountMethod(), getCallOptions(), request); } @@ -712,8 +711,9 @@ public com.google.shopping.merchant.accounts.v1beta.Account createAndConfigureAc * */ public com.google.protobuf.Empty deleteAccount( - com.google.shopping.merchant.accounts.v1beta.DeleteAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.DeleteAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAccountMethod(), getCallOptions(), request); } @@ -726,8 +726,9 @@ public com.google.protobuf.Empty deleteAccount( * */ public com.google.shopping.merchant.accounts.v1beta.Account updateAccount( - com.google.shopping.merchant.accounts.v1beta.UpdateAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAccountMethod(), getCallOptions(), request); } @@ -744,8 +745,9 @@ public com.google.shopping.merchant.accounts.v1beta.Account updateAccount( * */ public com.google.shopping.merchant.accounts.v1beta.ListAccountsResponse listAccounts( - com.google.shopping.merchant.accounts.v1beta.ListAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAccountsMethod(), getCallOptions(), request); } @@ -761,8 +763,9 @@ public com.google.shopping.merchant.accounts.v1beta.ListAccountsResponse listAcc * */ public com.google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse listSubAccounts( - com.google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubAccountsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceGrpc.java index f55bc5ddd1ca..531630cc6294 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceGrpc.java @@ -25,9 +25,6 @@ * [autofeed](https://support.google.com/merchants/answer/7538732) setting. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/autofeedsettings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutofeedSettingsServiceGrpc { @@ -339,8 +336,9 @@ protected AutofeedSettingsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.AutofeedSettings getAutofeedSettings( - com.google.shopping.merchant.accounts.v1beta.GetAutofeedSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetAutofeedSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAutofeedSettingsMethod(), getCallOptions(), request); } @@ -352,8 +350,9 @@ public com.google.shopping.merchant.accounts.v1beta.AutofeedSettings getAutofeed * */ public com.google.shopping.merchant.accounts.v1beta.AutofeedSettings updateAutofeedSettings( - com.google.shopping.merchant.accounts.v1beta.UpdateAutofeedSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateAutofeedSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAutofeedSettingsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceGrpc.java index cd871b550ed9..3bc2bf41c1a7 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceGrpc.java @@ -26,9 +26,6 @@ * improve images and shipping. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/automaticimprovements.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AutomaticImprovementsServiceGrpc { @@ -355,8 +352,9 @@ protected AutomaticImprovementsServiceBlockingV2Stub build( */ public com.google.shopping.merchant.accounts.v1beta.AutomaticImprovements getAutomaticImprovements( - com.google.shopping.merchant.accounts.v1beta.GetAutomaticImprovementsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetAutomaticImprovementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAutomaticImprovementsMethod(), getCallOptions(), request); } @@ -369,9 +367,9 @@ protected AutomaticImprovementsServiceBlockingV2Stub build( */ public com.google.shopping.merchant.accounts.v1beta.AutomaticImprovements updateAutomaticImprovements( - com.google.shopping.merchant.accounts.v1beta.UpdateAutomaticImprovementsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateAutomaticImprovementsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAutomaticImprovementsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceGrpc.java index c0a6cd518296..021c21910531 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceGrpc.java @@ -25,9 +25,6 @@ * identity](https://support.google.com/merchants/answer/12564247) API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/businessidentity.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BusinessIdentityServiceGrpc { @@ -341,8 +338,9 @@ protected BusinessIdentityServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity getBusinessIdentity( - com.google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetBusinessIdentityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBusinessIdentityMethod(), getCallOptions(), request); } @@ -355,8 +353,9 @@ public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity getBusiness * */ public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity updateBusinessIdentity( - com.google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateBusinessIdentityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBusinessIdentityMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceGrpc.java index 3f459d206106..1b0c98a2cff8 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support business info API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/businessinfo.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BusinessInfoServiceGrpc { @@ -326,8 +323,9 @@ protected BusinessInfoServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.BusinessInfo getBusinessInfo( - com.google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBusinessInfoMethod(), getCallOptions(), request); } @@ -340,8 +338,9 @@ public com.google.shopping.merchant.accounts.v1beta.BusinessInfo getBusinessInfo * */ public com.google.shopping.merchant.accounts.v1beta.BusinessInfo updateBusinessInfo( - com.google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBusinessInfoMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceGrpc.java index 3b582f75e3d9..ff2e463265cd 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceGrpc.java @@ -25,9 +25,6 @@ * settings](https://support.google.com/merchants/answer/13945960). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CheckoutSettingsServiceGrpc { @@ -513,8 +510,9 @@ protected CheckoutSettingsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckoutSettings( - com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCheckoutSettingsMethod(), getCallOptions(), request); } @@ -526,8 +524,9 @@ public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckout * */ public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings createCheckoutSettings( - com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCheckoutSettingsMethod(), getCallOptions(), request); } @@ -539,8 +538,9 @@ public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings createCheck * */ public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings updateCheckoutSettings( - com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCheckoutSettingsMethod(), getCallOptions(), request); } @@ -553,8 +553,9 @@ public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings updateCheck * */ public com.google.protobuf.Empty deleteCheckoutSettings( - com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCheckoutSettingsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceGrpc.java index 2b138b64e080..857469d5c95f 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceGrpc.java @@ -26,9 +26,6 @@ * authenticated user. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/emailpreferences.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EmailPreferencesServiceGrpc { @@ -364,8 +361,9 @@ protected EmailPreferencesServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.EmailPreferences getEmailPreferences( - com.google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEmailPreferencesMethod(), getCallOptions(), request); } @@ -384,8 +382,9 @@ public com.google.shopping.merchant.accounts.v1beta.EmailPreferences getEmailPre * */ public com.google.shopping.merchant.accounts.v1beta.EmailPreferences updateEmailPreferences( - com.google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEmailPreferencesMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceGrpc.java index 415c6a25aef0..50c21321ef5a 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceGrpc.java @@ -27,9 +27,6 @@ * - [GbpAccount][google.shopping.merchant.accounts.v1.GbpAccount] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/gbpaccounts.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GbpAccountsServiceGrpc { @@ -341,8 +338,9 @@ protected GbpAccountsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.ListGbpAccountsResponse listGbpAccounts( - com.google.shopping.merchant.accounts.v1beta.ListGbpAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListGbpAccountsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGbpAccountsMethod(), getCallOptions(), request); } @@ -354,8 +352,9 @@ public com.google.shopping.merchant.accounts.v1beta.ListGbpAccountsResponse list * */ public com.google.shopping.merchant.accounts.v1beta.LinkGbpAccountResponse linkGbpAccount( - com.google.shopping.merchant.accounts.v1beta.LinkGbpAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.LinkGbpAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLinkGbpAccountMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceGrpc.java index 08159b8bd3ef..6f45a7b297a2 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support an API for a store's homepage. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/homepage.proto") @io.grpc.stub.annotations.GrpcGenerated public final class HomepageServiceGrpc { @@ -503,8 +500,9 @@ protected HomepageServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.Homepage getHomepage( - com.google.shopping.merchant.accounts.v1beta.GetHomepageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetHomepageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHomepageMethod(), getCallOptions(), request); } @@ -516,8 +514,9 @@ public com.google.shopping.merchant.accounts.v1beta.Homepage getHomepage( * */ public com.google.shopping.merchant.accounts.v1beta.Homepage updateHomepage( - com.google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateHomepageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHomepageMethod(), getCallOptions(), request); } @@ -541,8 +540,9 @@ public com.google.shopping.merchant.accounts.v1beta.Homepage updateHomepage( * */ public com.google.shopping.merchant.accounts.v1beta.Homepage claimHomepage( - com.google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getClaimHomepageMethod(), getCallOptions(), request); } @@ -554,8 +554,9 @@ public com.google.shopping.merchant.accounts.v1beta.Homepage claimHomepage( * */ public com.google.shopping.merchant.accounts.v1beta.Homepage unclaimHomepage( - com.google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UnclaimHomepageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnclaimHomepageMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceGrpc.java index dd83e7de7aa6..41c2b2e0ecee 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceGrpc.java @@ -26,9 +26,6 @@ * - [LfpProvider][google.shopping.merchant.accounts.v1.LfpProvider] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/lfpproviders.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpProvidersServiceGrpc { @@ -337,8 +334,9 @@ protected LfpProvidersServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.FindLfpProvidersResponse findLfpProviders( - com.google.shopping.merchant.accounts.v1beta.FindLfpProvidersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.FindLfpProvidersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFindLfpProvidersMethod(), getCallOptions(), request); } @@ -350,8 +348,9 @@ public com.google.shopping.merchant.accounts.v1beta.FindLfpProvidersResponse fin * */ public com.google.shopping.merchant.accounts.v1beta.LinkLfpProviderResponse linkLfpProvider( - com.google.shopping.merchant.accounts.v1beta.LinkLfpProviderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.LinkLfpProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLinkLfpProviderMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceGrpc.java index 7f61ef1c1adc..cbbe8045f2f3 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceGrpc.java @@ -26,9 +26,6 @@ * [OmnichannelSetting][google.shopping.merchant.accounts.v1.OmnichannelSetting] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/omnichannelsettings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OmnichannelSettingsServiceGrpc { @@ -616,8 +613,9 @@ protected OmnichannelSettingsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.OmnichannelSetting getOmnichannelSetting( - com.google.shopping.merchant.accounts.v1beta.GetOmnichannelSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetOmnichannelSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOmnichannelSettingMethod(), getCallOptions(), request); } @@ -630,8 +628,9 @@ public com.google.shopping.merchant.accounts.v1beta.OmnichannelSetting getOmnich */ public com.google.shopping.merchant.accounts.v1beta.ListOmnichannelSettingsResponse listOmnichannelSettings( - com.google.shopping.merchant.accounts.v1beta.ListOmnichannelSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListOmnichannelSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOmnichannelSettingsMethod(), getCallOptions(), request); } @@ -643,8 +642,9 @@ public com.google.shopping.merchant.accounts.v1beta.OmnichannelSetting getOmnich * */ public com.google.shopping.merchant.accounts.v1beta.OmnichannelSetting createOmnichannelSetting( - com.google.shopping.merchant.accounts.v1beta.CreateOmnichannelSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.CreateOmnichannelSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOmnichannelSettingMethod(), getCallOptions(), request); } @@ -656,8 +656,9 @@ public com.google.shopping.merchant.accounts.v1beta.OmnichannelSetting createOmn * */ public com.google.shopping.merchant.accounts.v1beta.OmnichannelSetting updateOmnichannelSetting( - com.google.shopping.merchant.accounts.v1beta.UpdateOmnichannelSettingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateOmnichannelSettingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOmnichannelSettingMethod(), getCallOptions(), request); } @@ -671,8 +672,9 @@ public com.google.shopping.merchant.accounts.v1beta.OmnichannelSetting updateOmn public com.google.shopping.merchant.accounts.v1beta.RequestInventoryVerificationResponse requestInventoryVerification( com.google.shopping.merchant.accounts.v1beta.RequestInventoryVerificationRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRequestInventoryVerificationMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceGrpc.java index babbdd4634df..318500fbfdd1 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceGrpc.java @@ -27,9 +27,6 @@ * [OnlineReturnPolicy](/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1beta#google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy) * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/online_return_policy.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OnlineReturnPolicyServiceGrpc { @@ -614,8 +611,9 @@ protected OnlineReturnPolicyServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy getOnlineReturnPolicy( - com.google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOnlineReturnPolicyMethod(), getCallOptions(), request); } @@ -628,8 +626,9 @@ public com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy getOnline */ public com.google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse listOnlineReturnPolicies( - com.google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOnlineReturnPoliciesMethod(), getCallOptions(), request); } @@ -641,8 +640,9 @@ public com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy getOnline * */ public com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy createOnlineReturnPolicy( - com.google.shopping.merchant.accounts.v1beta.CreateOnlineReturnPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.CreateOnlineReturnPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOnlineReturnPolicyMethod(), getCallOptions(), request); } @@ -654,8 +654,9 @@ public com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy createOnl * */ public com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy updateOnlineReturnPolicy( - com.google.shopping.merchant.accounts.v1beta.UpdateOnlineReturnPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateOnlineReturnPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOnlineReturnPolicyMethod(), getCallOptions(), request); } @@ -667,8 +668,9 @@ public com.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy updateOnl * */ public com.google.protobuf.Empty deleteOnlineReturnPolicy( - com.google.shopping.merchant.accounts.v1beta.DeleteOnlineReturnPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.DeleteOnlineReturnPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOnlineReturnPolicyMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceGrpc.java index 087034d79aea..d0b1d9f59d00 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceGrpc.java @@ -32,9 +32,6 @@ * explicitly enabling or disabling participation in each program. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/programs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProgramsServiceGrpc { @@ -522,8 +519,9 @@ protected ProgramsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.Program getProgram( - com.google.shopping.merchant.accounts.v1beta.GetProgramRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetProgramRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProgramMethod(), getCallOptions(), request); } @@ -535,8 +533,9 @@ public com.google.shopping.merchant.accounts.v1beta.Program getProgram( * */ public com.google.shopping.merchant.accounts.v1beta.ListProgramsResponse listPrograms( - com.google.shopping.merchant.accounts.v1beta.ListProgramsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListProgramsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProgramsMethod(), getCallOptions(), request); } @@ -549,8 +548,9 @@ public com.google.shopping.merchant.accounts.v1beta.ListProgramsResponse listPro * */ public com.google.shopping.merchant.accounts.v1beta.Program enableProgram( - com.google.shopping.merchant.accounts.v1beta.EnableProgramRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.EnableProgramRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEnableProgramMethod(), getCallOptions(), request); } @@ -563,8 +563,9 @@ public com.google.shopping.merchant.accounts.v1beta.Program enableProgram( * */ public com.google.shopping.merchant.accounts.v1beta.Program disableProgram( - com.google.shopping.merchant.accounts.v1beta.DisableProgramRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.DisableProgramRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDisableProgramMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceGrpc.java index ca0a9d9623af..9d569b7d0168 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceGrpc.java @@ -26,9 +26,6 @@ * - [Region][google.shopping.merchant.accounts.v1main.Region] * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/regions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RegionsServiceGrpc { @@ -568,8 +565,9 @@ protected RegionsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.Region getRegion( - com.google.shopping.merchant.accounts.v1beta.GetRegionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetRegionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRegionMethod(), getCallOptions(), request); } @@ -582,8 +580,9 @@ public com.google.shopping.merchant.accounts.v1beta.Region getRegion( * */ public com.google.shopping.merchant.accounts.v1beta.Region createRegion( - com.google.shopping.merchant.accounts.v1beta.CreateRegionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.CreateRegionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRegionMethod(), getCallOptions(), request); } @@ -596,8 +595,9 @@ public com.google.shopping.merchant.accounts.v1beta.Region createRegion( * */ public com.google.shopping.merchant.accounts.v1beta.Region updateRegion( - com.google.shopping.merchant.accounts.v1beta.UpdateRegionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateRegionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRegionMethod(), getCallOptions(), request); } @@ -610,8 +610,9 @@ public com.google.shopping.merchant.accounts.v1beta.Region updateRegion( * */ public com.google.protobuf.Empty deleteRegion( - com.google.shopping.merchant.accounts.v1beta.DeleteRegionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.DeleteRegionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRegionMethod(), getCallOptions(), request); } @@ -623,8 +624,9 @@ public com.google.protobuf.Empty deleteRegion( * */ public com.google.shopping.merchant.accounts.v1beta.ListRegionsResponse listRegions( - com.google.shopping.merchant.accounts.v1beta.ListRegionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListRegionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRegionsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceGrpc.java index 953c776a0b12..0af37390c374 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceGrpc.java @@ -25,9 +25,6 @@ * method. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/shippingsettings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ShippingSettingsServiceGrpc { @@ -341,8 +338,9 @@ protected ShippingSettingsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.ShippingSettings getShippingSettings( - com.google.shopping.merchant.accounts.v1beta.GetShippingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetShippingSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetShippingSettingsMethod(), getCallOptions(), request); } @@ -355,8 +353,9 @@ public com.google.shopping.merchant.accounts.v1beta.ShippingSettings getShipping * */ public com.google.shopping.merchant.accounts.v1beta.ShippingSettings insertShippingSettings( - com.google.shopping.merchant.accounts.v1beta.InsertShippingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.InsertShippingSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertShippingSettingsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceGrpc.java index 5cac12b7fe06..adfbbbfed2f4 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceGrpc.java @@ -24,10 +24,6 @@ * Service to support `TermsOfServiceAgreementState` API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = - "Source: google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TermsOfServiceAgreementStateServiceGrpc { @@ -371,8 +367,9 @@ protected TermsOfServiceAgreementStateServiceBlockingV2Stub build( public com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState getTermsOfServiceAgreementState( com.google.shopping.merchant.accounts.v1beta.GetTermsOfServiceAgreementStateRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTermsOfServiceAgreementStateMethod(), getCallOptions(), request); } @@ -387,8 +384,9 @@ protected TermsOfServiceAgreementStateServiceBlockingV2Stub build( retrieveForApplicationTermsOfServiceAgreementState( com.google.shopping.merchant.accounts.v1beta .RetrieveForApplicationTermsOfServiceAgreementStateRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveForApplicationTermsOfServiceAgreementStateMethod(), getCallOptions(), diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceGrpc.java index ca8137be1cb2..580a9017edd5 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support `TermsOfService` API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/termsofservice.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TermsOfServiceServiceGrpc { @@ -414,8 +411,9 @@ protected TermsOfServiceServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.TermsOfService getTermsOfService( - com.google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTermsOfServiceMethod(), getCallOptions(), request); } @@ -428,8 +426,9 @@ public com.google.shopping.merchant.accounts.v1beta.TermsOfService getTermsOfSer * */ public com.google.shopping.merchant.accounts.v1beta.TermsOfService retrieveLatestTermsOfService( - com.google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRetrieveLatestTermsOfServiceMethod(), getCallOptions(), request); } @@ -441,8 +440,9 @@ public com.google.shopping.merchant.accounts.v1beta.TermsOfService retrieveLates * */ public com.google.protobuf.Empty acceptTermsOfService( - com.google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcceptTermsOfServiceMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceGrpc.java index 11dd0a70d174..ca0d893e65b3 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceGrpc.java @@ -24,9 +24,6 @@ * Service to support user API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/accounts/v1beta/user.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserServiceGrpc { @@ -537,8 +534,9 @@ protected UserServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.accounts.v1beta.User getUser( - com.google.shopping.merchant.accounts.v1beta.GetUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.GetUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUserMethod(), getCallOptions(), request); } @@ -551,8 +549,9 @@ public com.google.shopping.merchant.accounts.v1beta.User getUser( * */ public com.google.shopping.merchant.accounts.v1beta.User createUser( - com.google.shopping.merchant.accounts.v1beta.CreateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.CreateUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUserMethod(), getCallOptions(), request); } @@ -565,8 +564,9 @@ public com.google.shopping.merchant.accounts.v1beta.User createUser( * */ public com.google.protobuf.Empty deleteUser( - com.google.shopping.merchant.accounts.v1beta.DeleteUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.DeleteUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUserMethod(), getCallOptions(), request); } @@ -579,8 +579,9 @@ public com.google.protobuf.Empty deleteUser( * */ public com.google.shopping.merchant.accounts.v1beta.User updateUser( - com.google.shopping.merchant.accounts.v1beta.UpdateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.UpdateUserRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateUserMethod(), getCallOptions(), request); } @@ -592,8 +593,9 @@ public com.google.shopping.merchant.accounts.v1beta.User updateUser( * */ public com.google.shopping.merchant.accounts.v1beta.ListUsersResponse listUsers( - com.google.shopping.merchant.accounts.v1beta.ListUsersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.accounts.v1beta.ListUsersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsersMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 2ac945cad265..87f7b6e83b0a 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-conversions - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceGrpc.java b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceGrpc.java index dcf13a2e2c5c..2a3ee2207fac 100644 --- a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceGrpc.java +++ b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing conversion sources for a merchant account. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/conversions/v1/conversionsources.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversionSourcesServiceGrpc { @@ -684,8 +681,9 @@ protected ConversionSourcesServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.conversions.v1.ConversionSource createConversionSource( - com.google.shopping.merchant.conversions.v1.CreateConversionSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1.CreateConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversionSourceMethod(), getCallOptions(), request); } @@ -698,8 +696,9 @@ public com.google.shopping.merchant.conversions.v1.ConversionSource createConver * */ public com.google.shopping.merchant.conversions.v1.ConversionSource updateConversionSource( - com.google.shopping.merchant.conversions.v1.UpdateConversionSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1.UpdateConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversionSourceMethod(), getCallOptions(), request); } @@ -714,8 +713,9 @@ public com.google.shopping.merchant.conversions.v1.ConversionSource updateConver * */ public com.google.protobuf.Empty deleteConversionSource( - com.google.shopping.merchant.conversions.v1.DeleteConversionSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1.DeleteConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversionSourceMethod(), getCallOptions(), request); } @@ -728,8 +728,9 @@ public com.google.protobuf.Empty deleteConversionSource( * */ public com.google.shopping.merchant.conversions.v1.ConversionSource undeleteConversionSource( - com.google.shopping.merchant.conversions.v1.UndeleteConversionSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1.UndeleteConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteConversionSourceMethod(), getCallOptions(), request); } @@ -741,8 +742,9 @@ public com.google.shopping.merchant.conversions.v1.ConversionSource undeleteConv * */ public com.google.shopping.merchant.conversions.v1.ConversionSource getConversionSource( - com.google.shopping.merchant.conversions.v1.GetConversionSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1.GetConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversionSourceMethod(), getCallOptions(), request); } @@ -755,8 +757,9 @@ public com.google.shopping.merchant.conversions.v1.ConversionSource getConversio */ public com.google.shopping.merchant.conversions.v1.ListConversionSourcesResponse listConversionSources( - com.google.shopping.merchant.conversions.v1.ListConversionSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1.ListConversionSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversionSourcesMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceGrpc.java b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceGrpc.java index 96c0fe5edb3b..af6bf888058b 100644 --- a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceGrpc.java +++ b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceGrpc.java @@ -24,9 +24,6 @@ * Service for managing conversion sources for a merchant account. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/conversions/v1beta/conversionsources.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversionSourcesServiceGrpc { @@ -703,8 +700,9 @@ protected ConversionSourcesServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.conversions.v1beta.ConversionSource createConversionSource( - com.google.shopping.merchant.conversions.v1beta.CreateConversionSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1beta.CreateConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConversionSourceMethod(), getCallOptions(), request); } @@ -717,8 +715,9 @@ public com.google.shopping.merchant.conversions.v1beta.ConversionSource createCo * */ public com.google.shopping.merchant.conversions.v1beta.ConversionSource updateConversionSource( - com.google.shopping.merchant.conversions.v1beta.UpdateConversionSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1beta.UpdateConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConversionSourceMethod(), getCallOptions(), request); } @@ -733,8 +732,9 @@ public com.google.shopping.merchant.conversions.v1beta.ConversionSource updateCo * */ public com.google.protobuf.Empty deleteConversionSource( - com.google.shopping.merchant.conversions.v1beta.DeleteConversionSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1beta.DeleteConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConversionSourceMethod(), getCallOptions(), request); } @@ -748,9 +748,9 @@ public com.google.protobuf.Empty deleteConversionSource( */ public com.google.shopping.merchant.conversions.v1beta.ConversionSource undeleteConversionSource( - com.google.shopping.merchant.conversions.v1beta.UndeleteConversionSourceRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1beta.UndeleteConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteConversionSourceMethod(), getCallOptions(), request); } @@ -762,8 +762,9 @@ public com.google.protobuf.Empty deleteConversionSource( * */ public com.google.shopping.merchant.conversions.v1beta.ConversionSource getConversionSource( - com.google.shopping.merchant.conversions.v1beta.GetConversionSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1beta.GetConversionSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConversionSourceMethod(), getCallOptions(), request); } @@ -776,8 +777,9 @@ public com.google.shopping.merchant.conversions.v1beta.ConversionSource getConve */ public com.google.shopping.merchant.conversions.v1beta.ListConversionSourcesResponse listConversionSources( - com.google.shopping.merchant.conversions.v1beta.ListConversionSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.conversions.v1beta.ListConversionSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConversionSourcesMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 2cee9a658be3..c46667b8ad4a 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-datasources - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceGrpc.java b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceGrpc.java index 7cacd475ae92..024fd92ade10 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceGrpc.java +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceGrpc.java @@ -26,9 +26,6 @@ * Center](https://support.google.com/merchants/answer/7439058) help article. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/datasources/v1/datasources.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataSourcesServiceGrpc { @@ -659,8 +656,9 @@ protected DataSourcesServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.datasources.v1.DataSource getDataSource( - com.google.shopping.merchant.datasources.v1.GetDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1.GetDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataSourceMethod(), getCallOptions(), request); } @@ -672,8 +670,9 @@ public com.google.shopping.merchant.datasources.v1.DataSource getDataSource( * */ public com.google.shopping.merchant.datasources.v1.ListDataSourcesResponse listDataSources( - com.google.shopping.merchant.datasources.v1.ListDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1.ListDataSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataSourcesMethod(), getCallOptions(), request); } @@ -686,8 +685,9 @@ public com.google.shopping.merchant.datasources.v1.ListDataSourcesResponse listD * */ public com.google.shopping.merchant.datasources.v1.DataSource createDataSource( - com.google.shopping.merchant.datasources.v1.CreateDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1.CreateDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataSourceMethod(), getCallOptions(), request); } @@ -700,8 +700,9 @@ public com.google.shopping.merchant.datasources.v1.DataSource createDataSource( * */ public com.google.shopping.merchant.datasources.v1.DataSource updateDataSource( - com.google.shopping.merchant.datasources.v1.UpdateDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1.UpdateDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataSourceMethod(), getCallOptions(), request); } @@ -713,8 +714,9 @@ public com.google.shopping.merchant.datasources.v1.DataSource updateDataSource( * */ public com.google.protobuf.Empty deleteDataSource( - com.google.shopping.merchant.datasources.v1.DeleteDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1.DeleteDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataSourceMethod(), getCallOptions(), request); } @@ -730,8 +732,9 @@ public com.google.protobuf.Empty deleteDataSource( * */ public com.google.protobuf.Empty fetchDataSource( - com.google.shopping.merchant.datasources.v1.FetchDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1.FetchDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchDataSourceMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceGrpc.java b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceGrpc.java index 5113f4b7928d..6eaed0f6ef79 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceGrpc.java +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage data source file uploads. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/datasources/v1/fileuploads.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FileUploadsServiceGrpc { @@ -246,8 +243,9 @@ protected FileUploadsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.datasources.v1.FileUpload getFileUpload( - com.google.shopping.merchant.datasources.v1.GetFileUploadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1.GetFileUploadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFileUploadMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceGrpc.java b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceGrpc.java index 9beabf8c6259..8479975d7627 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceGrpc.java +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceGrpc.java @@ -26,9 +26,6 @@ * Center](https://support.google.com/merchants/answer/7439058) help article. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/datasources/v1beta/datasources.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DataSourcesServiceGrpc { @@ -657,8 +654,9 @@ protected DataSourcesServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.datasources.v1beta.DataSource getDataSource( - com.google.shopping.merchant.datasources.v1beta.GetDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1beta.GetDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataSourceMethod(), getCallOptions(), request); } @@ -670,8 +668,9 @@ public com.google.shopping.merchant.datasources.v1beta.DataSource getDataSource( * */ public com.google.shopping.merchant.datasources.v1beta.ListDataSourcesResponse listDataSources( - com.google.shopping.merchant.datasources.v1beta.ListDataSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1beta.ListDataSourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataSourcesMethod(), getCallOptions(), request); } @@ -683,8 +682,9 @@ public com.google.shopping.merchant.datasources.v1beta.ListDataSourcesResponse l * */ public com.google.shopping.merchant.datasources.v1beta.DataSource createDataSource( - com.google.shopping.merchant.datasources.v1beta.CreateDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1beta.CreateDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataSourceMethod(), getCallOptions(), request); } @@ -697,8 +697,9 @@ public com.google.shopping.merchant.datasources.v1beta.DataSource createDataSour * */ public com.google.shopping.merchant.datasources.v1beta.DataSource updateDataSource( - com.google.shopping.merchant.datasources.v1beta.UpdateDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1beta.UpdateDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataSourceMethod(), getCallOptions(), request); } @@ -710,8 +711,9 @@ public com.google.shopping.merchant.datasources.v1beta.DataSource updateDataSour * */ public com.google.protobuf.Empty deleteDataSource( - com.google.shopping.merchant.datasources.v1beta.DeleteDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1beta.DeleteDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataSourceMethod(), getCallOptions(), request); } @@ -727,8 +729,9 @@ public com.google.protobuf.Empty deleteDataSource( * */ public com.google.protobuf.Empty fetchDataSource( - com.google.shopping.merchant.datasources.v1beta.FetchDataSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1beta.FetchDataSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchDataSourceMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceGrpc.java b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceGrpc.java index 967cc0bee0d4..96d51d3dd8ea 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceGrpc.java +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage data source file uploads. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/datasources/v1beta/fileuploads.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FileUploadsServiceGrpc { @@ -246,8 +243,9 @@ protected FileUploadsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.datasources.v1beta.FileUpload getFileUpload( - com.google.shopping.merchant.datasources.v1beta.GetFileUploadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.datasources.v1beta.GetFileUploadRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFileUploadMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DatasourcetypesProto.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DatasourcetypesProto.java index 74f8854d6372..ddd1cae3234c 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DatasourcetypesProto.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DatasourcetypesProto.java @@ -80,26 +80,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "=google/shopping/merchant/datasources/v1/datasourcetypes.proto\022\'google.shopping" + ".merchant.datasources.v1\032\037google/api/field_behavior.proto\032" - + " google/shopping/type/types.proto\"\235\006\n" + + " google/shopping/type/types.proto\"\371\005\n" + "\030PrimaryProductDataSource\022\034\n" + "\014legacy_local\030\013 \001(\010B\006\340A\001\340A\005\022\037\n\n" + "feed_label\030\004 \001(\tB\006\340A\001\340A\005H\000\210\001\001\022%\n" + "\020content_language\030\005 \001(\tB\006\340A\001\340A\005H\001\210\001\001\022\026\n" + "\tcountries\030\006 \003(\tB\003\340A\001\022h\n" + "\014default_rule\030\007 \001(\0132M.google.sh" - + "opping.merchant.datasources.v1.PrimaryProductDataSource.DefaultRuleB\003\340A\001\022\"\n" - + "\025contains_custom_rules\030\t \001(\010B\003\340A\003\022h\n" + + "opping.merchant.datasources.v1.PrimaryProductDataSource.DefaultRuleB\003\340A\001\022h\n" + "\014destinations\030\n" - + " \003(\0132M.google.shopping.merchant.da" - + "tasources.v1.PrimaryProductDataSource.DestinationB\003\340A\001\032p\n" + + " \003(\0132M.google.shopping.merchan" + + "t.datasources.v1.PrimaryProductDataSource.DestinationB\003\340A\001\032p\n" + "\013DefaultRule\022a\n" - + "\026take_from_data_sources\030\001 \003(\0132<.google.shopping." - + "merchant.datasources.v1.DataSourceReferenceB\003\340A\002\032\364\001\n" + + "\026take_from_data_sources\030\001 \003(\0132<.google.shopp" + + "ing.merchant.datasources.v1.DataSourceReferenceB\003\340A\002\032\364\001\n" + "\013Destination\022F\n" + "\013destination\030\001" + " \001(\01621.google.shopping.type.Destination.DestinationEnum\022b\n" - + "\005state\030\002 \001(\0162S.google" - + ".shopping.merchant.datasources.v1.PrimaryProductDataSource.Destination.State\"9\n" + + "\005state\030\002 \001(\0162S.google.shopping.merchant.datasources.v1.Pr" + + "imaryProductDataSource.Destination.State\"9\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" @@ -109,8 +108,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SupplementalProductDataSource\022\037\n\n" + "feed_label\030\004 \001(\tB\006\340A\001\340A\005H\000\210\001\001\022%\n" + "\020content_language\030\005 \001(\tB\006\340A\001\340A\005H\001\210\001\001\022k\n" - + " referencing_primary_data_sources\030\007 \003(\0132" - + "<.google.shopping.merchant.datasources.v1.DataSourceReferenceB\003\340A\003B\r\n" + + " referencing_primary_data_sources\030\007 " + + "\003(\0132<.google.shopping.merchant.datasources.v1.DataSourceReferenceB\003\340A\003B\r\n" + "\013_feed_labelB\023\n" + "\021_content_language\"X\n" + "\030LocalInventoryDataSource\022\032\n\n" @@ -129,11 +128,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030primary_data_source_name\030\003 \001(\tB\003\340A\001H\000\022,\n" + "\035supplemental_data_source_name\030\002 \001(\tB\003\340A\001H\000B\020\n" + "\016data_source_idB\234\002\n" - + "+com.google.shopping.merchant.datasources.v1B\024DatasourcetypesP" - + "rotoP\001ZScloud.google.com/go/shopping/merchant/datasources/apiv1/datasourcespb;da" - + "tasourcespb\252\002\'Google.Shopping.Merchant.D" - + "ataSources.V1\312\002\'Google\\Shopping\\Merchant" - + "\\DataSources\\V1\352\002+Google::Shopping::Merchant::DataSources::V1b\006proto3" + + "+com.google.shopping.merchant.datasources.v1B\024Datasourcety" + + "pesProtoP\001ZScloud.google.com/go/shopping/merchant/datasources/apiv1/datasourcesp" + + "b;datasourcespb\252\002\'Google.Shopping.Mercha" + + "nt.DataSources.V1\312\002\'Google\\Shopping\\Merc" + + "hant\\DataSources\\V1\352\002+Google::Shopping::Merchant::DataSources::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -153,7 +152,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContentLanguage", "Countries", "DefaultRule", - "ContainsCustomRules", "Destinations", }); internal_static_google_shopping_merchant_datasources_v1_PrimaryProductDataSource_DefaultRule_descriptor = diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileInput.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileInput.java index e9893a05deb4..2ec3529a8173 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileInput.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileInput.java @@ -579,21 +579,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                                                    * The required fields vary based on the frequency of fetching. For a
                                              -     * monthly
                                              -     * fetch schedule,
                                              -     * `day of
                                              -     * month`
                                              -     * and
                                              -     * [hour of
                                              -     * day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
                                              -     * are required. For a weekly fetch schedule,
                                              -     * [day of
                                              -     * week][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#dayofweek]
                                              -     * and [hour of
                                              -     * day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
                                              -     * are required. For a daily fetch schedule, only an [hour of
                                              -     * day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
                                              -     * is required.
                                              +     * monthly fetch schedule, `day of month` and [hour of
                                              +     * day](../Shared.Types/TimeOfDay) are required. For a weekly fetch
                                              +     * schedule, [day of week](../Shared.Types/DayOfWeek) and [hour of
                                              +     * day](../Shared.Types/TimeOfDay) are required. For a daily fetch schedule,
                                              +     * only an [hour of day](../Shared.Types/TimeOfDay) is required.
                                                    * 
                                              * * Protobuf enum {@code diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/PrimaryProductDataSource.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/PrimaryProductDataSource.java index eae46e842a4f..bc08b298e930 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/PrimaryProductDataSource.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/PrimaryProductDataSource.java @@ -3178,27 +3178,6 @@ public boolean hasDefaultRule() { : defaultRule_; } - public static final int CONTAINS_CUSTOM_RULES_FIELD_NUMBER = 9; - private boolean containsCustomRules_ = false; - - /** - * - * - *
                                              -   * Output only. The existing data source setup contains at least one custom
                                              -   * (non-default) rule and therefore its management through the
                                              -   * `default_rule_data_sources` field should be treated with caution.
                                              -   * 
                                              - * - * bool contains_custom_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The containsCustomRules. - */ - @java.lang.Override - public boolean getContainsCustomRules() { - return containsCustomRules_; - } - public static final int DESTINATIONS_FIELD_NUMBER = 10; @SuppressWarnings("serial") @@ -3400,9 +3379,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getDefaultRule()); } - if (containsCustomRules_ != false) { - output.writeBool(9, containsCustomRules_); - } for (int i = 0; i < destinations_.size(); i++) { output.writeMessage(10, destinations_.get(i)); } @@ -3435,9 +3411,6 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultRule()); } - if (containsCustomRules_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, containsCustomRules_); - } for (int i = 0; i < destinations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, destinations_.get(i)); } @@ -3474,7 +3447,6 @@ public boolean equals(final java.lang.Object obj) { if (hasDefaultRule()) { if (!getDefaultRule().equals(other.getDefaultRule())) return false; } - if (getContainsCustomRules() != other.getContainsCustomRules()) return false; if (!getDestinationsList().equals(other.getDestinationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3505,8 +3477,6 @@ public int hashCode() { hash = (37 * hash) + DEFAULT_RULE_FIELD_NUMBER; hash = (53 * hash) + getDefaultRule().hashCode(); } - hash = (37 * hash) + CONTAINS_CUSTOM_RULES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContainsCustomRules()); if (getDestinationsCount() > 0) { hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER; hash = (53 * hash) + getDestinationsList().hashCode(); @@ -3673,14 +3643,13 @@ public Builder clear() { defaultRuleBuilder_.dispose(); defaultRuleBuilder_ = null; } - containsCustomRules_ = false; if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); } else { destinations_ = null; destinationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -3721,9 +3690,9 @@ public com.google.shopping.merchant.datasources.v1.PrimaryProductDataSource buil private void buildPartialRepeatedFields( com.google.shopping.merchant.datasources.v1.PrimaryProductDataSource result) { if (destinationsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { destinations_ = java.util.Collections.unmodifiableList(destinations_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); } result.destinations_ = destinations_; } else { @@ -3755,9 +3724,6 @@ private void buildPartial0( defaultRuleBuilder_ == null ? defaultRule_ : defaultRuleBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.containsCustomRules_ = containsCustomRules_; - } result.bitField0_ |= to_bitField0_; } @@ -3836,14 +3802,11 @@ public Builder mergeFrom( if (other.hasDefaultRule()) { mergeDefaultRule(other.getDefaultRule()); } - if (other.getContainsCustomRules() != false) { - setContainsCustomRules(other.getContainsCustomRules()); - } if (destinationsBuilder_ == null) { if (!other.destinations_.isEmpty()) { if (destinations_.isEmpty()) { destinations_ = other.destinations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDestinationsIsMutable(); destinations_.addAll(other.destinations_); @@ -3856,7 +3819,7 @@ public Builder mergeFrom( destinationsBuilder_.dispose(); destinationsBuilder_ = null; destinations_ = other.destinations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); destinationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDestinationsFieldBuilder() @@ -3917,12 +3880,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 58 - case 72: - { - containsCustomRules_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 72 case 82: { com.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.Destination m = @@ -4887,79 +4844,17 @@ public Builder clearDefaultRule() { return defaultRuleBuilder_; } - private boolean containsCustomRules_; - - /** - * - * - *
                                              -     * Output only. The existing data source setup contains at least one custom
                                              -     * (non-default) rule and therefore its management through the
                                              -     * `default_rule_data_sources` field should be treated with caution.
                                              -     * 
                                              - * - * bool contains_custom_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The containsCustomRules. - */ - @java.lang.Override - public boolean getContainsCustomRules() { - return containsCustomRules_; - } - - /** - * - * - *
                                              -     * Output only. The existing data source setup contains at least one custom
                                              -     * (non-default) rule and therefore its management through the
                                              -     * `default_rule_data_sources` field should be treated with caution.
                                              -     * 
                                              - * - * bool contains_custom_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The containsCustomRules to set. - * @return This builder for chaining. - */ - public Builder setContainsCustomRules(boolean value) { - - containsCustomRules_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
                                              -     * Output only. The existing data source setup contains at least one custom
                                              -     * (non-default) rule and therefore its management through the
                                              -     * `default_rule_data_sources` field should be treated with caution.
                                              -     * 
                                              - * - * bool contains_custom_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearContainsCustomRules() { - bitField0_ = (bitField0_ & ~0x00000020); - containsCustomRules_ = false; - onChanged(); - return this; - } - private java.util.List< com.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.Destination> destinations_ = java.util.Collections.emptyList(); private void ensureDestinationsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { destinations_ = new java.util.ArrayList< com.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.Destination>( destinations_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; } } @@ -5402,7 +5297,7 @@ public Builder addAllDestinations( public Builder clearDestinations() { if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { destinationsBuilder_.clear(); @@ -5675,7 +5570,7 @@ public Builder removeDestinations(int index) { .Builder, com.google.shopping.merchant.datasources.v1.PrimaryProductDataSource .DestinationOrBuilder>( - destinations_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + destinations_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); destinations_ = null; } return destinationsBuilder_; diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/PrimaryProductDataSourceOrBuilder.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/PrimaryProductDataSourceOrBuilder.java index 4e839cf1ecd0..52fb779c4a8d 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/PrimaryProductDataSourceOrBuilder.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/PrimaryProductDataSourceOrBuilder.java @@ -310,21 +310,6 @@ public interface PrimaryProductDataSourceOrBuilder com.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.DefaultRuleOrBuilder getDefaultRuleOrBuilder(); - /** - * - * - *
                                              -   * Output only. The existing data source setup contains at least one custom
                                              -   * (non-default) rule and therefore its management through the
                                              -   * `default_rule_data_sources` field should be treated with caution.
                                              -   * 
                                              - * - * bool contains_custom_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The containsCustomRules. - */ - boolean getContainsCustomRules(); - /** * * diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/proto/google/shopping/merchant/datasources/v1/datasourcetypes.proto b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/proto/google/shopping/merchant/datasources/v1/datasourcetypes.proto index 1ab359db0ddd..8cbd21e65831 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/proto/google/shopping/merchant/datasources/v1/datasourcetypes.proto +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/proto/google/shopping/merchant/datasources/v1/datasourcetypes.proto @@ -131,11 +131,6 @@ message PrimaryProductDataSource { // data sources will be replaced. DefaultRule default_rule = 7 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The existing data source setup contains at least one custom - // (non-default) rule and therefore its management through the - // `default_rule_data_sources` field should be treated with caution. - bool contains_custom_rules = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. A list of destinations describing where products of the data // source can be shown. // diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/proto/google/shopping/merchant/datasources/v1/fileinputs.proto b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/proto/google/shopping/merchant/datasources/v1/fileinputs.proto index 6be5866f8bd5..7373a11d5a48 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/proto/google/shopping/merchant/datasources/v1/fileinputs.proto +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/proto/google/shopping/merchant/datasources/v1/fileinputs.proto @@ -34,21 +34,11 @@ message FileInput { // Fetch details to deliver the data source. message FetchSettings { // The required fields vary based on the frequency of fetching. For a - // monthly - // fetch schedule, - // `day of - // month` - // and - // [hour of - // day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday] - // are required. For a weekly fetch schedule, - // [day of - // week][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#dayofweek] - // and [hour of - // day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday] - // are required. For a daily fetch schedule, only an [hour of - // day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday] - // is required. + // monthly fetch schedule, `day of month` and [hour of + // day](../Shared.Types/TimeOfDay) are required. For a weekly fetch + // schedule, [day of week](../Shared.Types/DayOfWeek) and [hour of + // day](../Shared.Types/TimeOfDay) are required. For a daily fetch schedule, + // only an [hour of day](../Shared.Types/TimeOfDay) is required. enum Frequency { // Frequency unspecified. FREQUENCY_UNSPECIFIED = 0; diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 9ebf8f73203c..b7554fd0fcdf 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-inventories - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceGrpc.java b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceGrpc.java index 3ffd4633a6e0..d2fd6cd358cb 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceGrpc.java +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage local inventory for products * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/inventories/v1/localinventory.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LocalInventoryServiceGrpc { @@ -445,8 +442,9 @@ protected LocalInventoryServiceBlockingV2Stub build( */ public com.google.shopping.merchant.inventories.v1.ListLocalInventoriesResponse listLocalInventories( - com.google.shopping.merchant.inventories.v1.ListLocalInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1.ListLocalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLocalInventoriesMethod(), getCallOptions(), request); } @@ -464,8 +462,9 @@ protected LocalInventoryServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.inventories.v1.LocalInventory insertLocalInventory( - com.google.shopping.merchant.inventories.v1.InsertLocalInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1.InsertLocalInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertLocalInventoryMethod(), getCallOptions(), request); } @@ -481,8 +480,9 @@ public com.google.shopping.merchant.inventories.v1.LocalInventory insertLocalInv * */ public com.google.protobuf.Empty deleteLocalInventory( - com.google.shopping.merchant.inventories.v1.DeleteLocalInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1.DeleteLocalInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLocalInventoryMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceGrpc.java b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceGrpc.java index 7c50be403cf1..720ac77556aa 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceGrpc.java +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceGrpc.java @@ -25,9 +25,6 @@ * `regions` resource and API to manage regions definitions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/inventories/v1/regionalinventory.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RegionalInventoryServiceGrpc { @@ -461,8 +458,9 @@ protected RegionalInventoryServiceBlockingV2Stub build( */ public com.google.shopping.merchant.inventories.v1.ListRegionalInventoriesResponse listRegionalInventories( - com.google.shopping.merchant.inventories.v1.ListRegionalInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1.ListRegionalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRegionalInventoriesMethod(), getCallOptions(), request); } @@ -480,8 +478,9 @@ protected RegionalInventoryServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.inventories.v1.RegionalInventory insertRegionalInventory( - com.google.shopping.merchant.inventories.v1.InsertRegionalInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1.InsertRegionalInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertRegionalInventoryMethod(), getCallOptions(), request); } @@ -497,8 +496,9 @@ public com.google.shopping.merchant.inventories.v1.RegionalInventory insertRegio * */ public com.google.protobuf.Empty deleteRegionalInventory( - com.google.shopping.merchant.inventories.v1.DeleteRegionalInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1.DeleteRegionalInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRegionalInventoryMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java index 63e953471093..04f82efc34a4 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage local inventory for products * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/inventories/v1beta/localinventory.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LocalInventoryServiceGrpc { @@ -450,8 +447,9 @@ protected LocalInventoryServiceBlockingV2Stub build( */ public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse listLocalInventories( - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLocalInventoriesMethod(), getCallOptions(), request); } @@ -469,8 +467,9 @@ protected LocalInventoryServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.inventories.v1beta.LocalInventory insertLocalInventory( - com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertLocalInventoryMethod(), getCallOptions(), request); } @@ -486,8 +485,9 @@ public com.google.shopping.merchant.inventories.v1beta.LocalInventory insertLoca * */ public com.google.protobuf.Empty deleteLocalInventory( - com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLocalInventoryMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceGrpc.java b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceGrpc.java index 15ee1ec7ff58..5fd77fd99571 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceGrpc.java +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceGrpc.java @@ -25,9 +25,6 @@ * `regions` resource and API to manage regions definitions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/inventories/v1beta/regionalinventory.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RegionalInventoryServiceGrpc { @@ -466,9 +463,9 @@ protected RegionalInventoryServiceBlockingV2Stub build( */ public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse listRegionalInventories( - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRegionalInventoriesMethod(), getCallOptions(), request); } @@ -487,9 +484,9 @@ protected RegionalInventoryServiceBlockingV2Stub build( */ public com.google.shopping.merchant.inventories.v1beta.RegionalInventory insertRegionalInventory( - com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertRegionalInventoryMethod(), getCallOptions(), request); } @@ -505,8 +502,9 @@ protected RegionalInventoryServiceBlockingV2Stub build( * */ public com.google.protobuf.Empty deleteRegionalInventory( - com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRegionalInventoryMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index ac13784e7f35..153661b5cdce 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-lfp - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceGrpc.java b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceGrpc.java index fdaf25a95e7b..3b6d1ef25ab7 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceGrpc.java +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceGrpc.java @@ -26,9 +26,6 @@ * inventories for a merchant. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/lfp/v1/lfpinventory.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpInventoryServiceGrpc { @@ -261,8 +258,9 @@ protected LfpInventoryServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.lfp.v1.LfpInventory insertLfpInventory( - com.google.shopping.merchant.lfp.v1.InsertLfpInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1.InsertLfpInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertLfpInventoryMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceGrpc.java b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceGrpc.java index bb5cede399f0..7dc2a1460a5e 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceGrpc.java +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceGrpc.java @@ -28,9 +28,6 @@ * retailer](https://support.google.com/merchants/answer/15243706). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/lfp/v1/lfpmerchantstate.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpMerchantStateServiceGrpc { @@ -268,8 +265,9 @@ protected LfpMerchantStateServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.lfp.v1.LfpMerchantState getLfpMerchantState( - com.google.shopping.merchant.lfp.v1.GetLfpMerchantStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1.GetLfpMerchantStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLfpMerchantStateMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceGrpc.java b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceGrpc.java index 4337320fd325..b59214badf32 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceGrpc.java +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceGrpc.java @@ -26,9 +26,6 @@ * data for a merchant. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/lfp/v1/lfpsale.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpSaleServiceGrpc { @@ -248,8 +245,9 @@ protected LfpSaleServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.lfp.v1.LfpSale insertLfpSale( - com.google.shopping.merchant.lfp.v1.InsertLfpSaleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1.InsertLfpSaleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertLfpSaleMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceGrpc.java b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceGrpc.java index 096a4b0a3591..e3d7adbdc685 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceGrpc.java +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceGrpc.java @@ -26,9 +26,6 @@ * stores for a merchant. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/lfp/v1/lfpstore.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpStoreServiceGrpc { @@ -485,8 +482,9 @@ protected LfpStoreServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.lfp.v1.LfpStore getLfpStore( - com.google.shopping.merchant.lfp.v1.GetLfpStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1.GetLfpStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLfpStoreMethod(), getCallOptions(), request); } @@ -499,8 +497,9 @@ public com.google.shopping.merchant.lfp.v1.LfpStore getLfpStore( * */ public com.google.shopping.merchant.lfp.v1.LfpStore insertLfpStore( - com.google.shopping.merchant.lfp.v1.InsertLfpStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1.InsertLfpStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertLfpStoreMethod(), getCallOptions(), request); } @@ -512,8 +511,9 @@ public com.google.shopping.merchant.lfp.v1.LfpStore insertLfpStore( * */ public com.google.protobuf.Empty deleteLfpStore( - com.google.shopping.merchant.lfp.v1.DeleteLfpStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1.DeleteLfpStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLfpStoreMethod(), getCallOptions(), request); } @@ -526,8 +526,9 @@ public com.google.protobuf.Empty deleteLfpStore( * */ public com.google.shopping.merchant.lfp.v1.ListLfpStoresResponse listLfpStores( - com.google.shopping.merchant.lfp.v1.ListLfpStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1.ListLfpStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLfpStoresMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceGrpc.java b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceGrpc.java index 4d438508233e..4fd64a225fc4 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceGrpc.java +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceGrpc.java @@ -26,9 +26,6 @@ * inventories for a merchant. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/lfp/v1beta/lfpinventory.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpInventoryServiceGrpc { @@ -261,8 +258,9 @@ protected LfpInventoryServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.lfp.v1beta.LfpInventory insertLfpInventory( - com.google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertLfpInventoryMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceGrpc.java b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceGrpc.java index 8aeef398fa95..82da9507e30e 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceGrpc.java +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceGrpc.java @@ -26,9 +26,6 @@ * state of a merchant. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/lfp/v1beta/lfpmerchantstate.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpMerchantStateServiceGrpc { @@ -258,8 +255,9 @@ protected LfpMerchantStateServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.lfp.v1beta.LfpMerchantState getLfpMerchantState( - com.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLfpMerchantStateMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceGrpc.java b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceGrpc.java index 0c31bd320be6..f2d995fa90b1 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceGrpc.java +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceGrpc.java @@ -26,9 +26,6 @@ * data for a merchant. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/lfp/v1beta/lfpsale.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpSaleServiceGrpc { @@ -250,8 +247,9 @@ protected LfpSaleServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.lfp.v1beta.LfpSale insertLfpSale( - com.google.shopping.merchant.lfp.v1beta.InsertLfpSaleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1beta.InsertLfpSaleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertLfpSaleMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceGrpc.java b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceGrpc.java index 70bc3a23785c..5e456e263e17 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceGrpc.java +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceGrpc.java @@ -26,9 +26,6 @@ * stores for a merchant. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/lfp/v1beta/lfpstore.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LfpStoreServiceGrpc { @@ -488,8 +485,9 @@ protected LfpStoreServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.lfp.v1beta.LfpStore getLfpStore( - com.google.shopping.merchant.lfp.v1beta.GetLfpStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1beta.GetLfpStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLfpStoreMethod(), getCallOptions(), request); } @@ -502,8 +500,9 @@ public com.google.shopping.merchant.lfp.v1beta.LfpStore getLfpStore( * */ public com.google.shopping.merchant.lfp.v1beta.LfpStore insertLfpStore( - com.google.shopping.merchant.lfp.v1beta.InsertLfpStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1beta.InsertLfpStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertLfpStoreMethod(), getCallOptions(), request); } @@ -515,8 +514,9 @@ public com.google.shopping.merchant.lfp.v1beta.LfpStore insertLfpStore( * */ public com.google.protobuf.Empty deleteLfpStore( - com.google.shopping.merchant.lfp.v1beta.DeleteLfpStoreRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1beta.DeleteLfpStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLfpStoreMethod(), getCallOptions(), request); } @@ -529,8 +529,9 @@ public com.google.protobuf.Empty deleteLfpStore( * */ public com.google.shopping.merchant.lfp.v1beta.ListLfpStoresResponse listLfpStores( - com.google.shopping.merchant.lfp.v1beta.ListLfpStoresRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.lfp.v1beta.ListLfpStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLfpStoresMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-notifications/README.md b/java-shopping-merchant-notifications/README.md index 35f9e9acebf2..3915631e1500 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-notifications - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-notifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceGrpc.java b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceGrpc.java index 657ea585c447..663c47ced14d 100644 --- a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceGrpc.java +++ b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage notification subscriptions for merchants * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/notifications/v1/notificationsapi.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NotificationsApiServiceGrpc { @@ -742,8 +739,9 @@ protected NotificationsApiServiceBlockingV2Stub build( public com.google.shopping.merchant.notifications.v1.NotificationSubscription getNotificationSubscription( com.google.shopping.merchant.notifications.v1.GetNotificationSubscriptionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationSubscriptionMethod(), getCallOptions(), request); } @@ -771,8 +769,9 @@ protected NotificationsApiServiceBlockingV2Stub build( public com.google.shopping.merchant.notifications.v1.NotificationSubscription createNotificationSubscription( com.google.shopping.merchant.notifications.v1.CreateNotificationSubscriptionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotificationSubscriptionMethod(), getCallOptions(), request); } @@ -786,8 +785,9 @@ protected NotificationsApiServiceBlockingV2Stub build( public com.google.shopping.merchant.notifications.v1.NotificationSubscription updateNotificationSubscription( com.google.shopping.merchant.notifications.v1.UpdateNotificationSubscriptionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNotificationSubscriptionMethod(), getCallOptions(), request); } @@ -799,9 +799,9 @@ protected NotificationsApiServiceBlockingV2Stub build( * */ public com.google.protobuf.Empty deleteNotificationSubscription( - com.google.shopping.merchant.notifications.v1.DeleteNotificationSubscriptionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.notifications.v1.DeleteNotificationSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotificationSubscriptionMethod(), getCallOptions(), request); } @@ -815,8 +815,9 @@ public com.google.protobuf.Empty deleteNotificationSubscription( public com.google.shopping.merchant.notifications.v1.ListNotificationSubscriptionsResponse listNotificationSubscriptions( com.google.shopping.merchant.notifications.v1.ListNotificationSubscriptionsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotificationSubscriptionsMethod(), getCallOptions(), request); } @@ -833,8 +834,9 @@ public com.google.protobuf.Empty deleteNotificationSubscription( getNotificationSubscriptionHealthMetrics( com.google.shopping.merchant.notifications.v1 .GetNotificationSubscriptionHealthMetricsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationSubscriptionHealthMetricsMethod(), getCallOptions(), diff --git a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceGrpc.java b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceGrpc.java index fb5ae2f16bed..26f2cab78792 100644 --- a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceGrpc.java +++ b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage notification subscriptions for merchants * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/notifications/v1beta/notificationsapi.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NotificationsApiServiceGrpc { @@ -652,8 +649,9 @@ protected NotificationsApiServiceBlockingV2Stub build( public com.google.shopping.merchant.notifications.v1beta.NotificationSubscription getNotificationSubscription( com.google.shopping.merchant.notifications.v1beta.GetNotificationSubscriptionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNotificationSubscriptionMethod(), getCallOptions(), request); } @@ -677,8 +675,9 @@ protected NotificationsApiServiceBlockingV2Stub build( public com.google.shopping.merchant.notifications.v1beta.NotificationSubscription createNotificationSubscription( com.google.shopping.merchant.notifications.v1beta.CreateNotificationSubscriptionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNotificationSubscriptionMethod(), getCallOptions(), request); } @@ -692,8 +691,9 @@ protected NotificationsApiServiceBlockingV2Stub build( public com.google.shopping.merchant.notifications.v1beta.NotificationSubscription updateNotificationSubscription( com.google.shopping.merchant.notifications.v1beta.UpdateNotificationSubscriptionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNotificationSubscriptionMethod(), getCallOptions(), request); } @@ -706,8 +706,9 @@ protected NotificationsApiServiceBlockingV2Stub build( */ public com.google.protobuf.Empty deleteNotificationSubscription( com.google.shopping.merchant.notifications.v1beta.DeleteNotificationSubscriptionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNotificationSubscriptionMethod(), getCallOptions(), request); } @@ -721,8 +722,9 @@ public com.google.protobuf.Empty deleteNotificationSubscription( public com.google.shopping.merchant.notifications.v1beta.ListNotificationSubscriptionsResponse listNotificationSubscriptions( com.google.shopping.merchant.notifications.v1beta.ListNotificationSubscriptionsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNotificationSubscriptionsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index 21b7bccea803..b65f90cdb217 100644 --- a/java-shopping-merchant-product-studio/README.md +++ b/java-shopping-merchant-product-studio/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-productstudio - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.17.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.17.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.18.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-productstudio.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceGrpc.java b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceGrpc.java index ee1283a07c8b..cf0707365c09 100644 --- a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceGrpc.java +++ b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceGrpc.java @@ -25,9 +25,6 @@ * enhancing product image content. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/productstudio/v1alpha/image.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ImageServiceGrpc { @@ -461,8 +458,9 @@ protected ImageServiceBlockingV2Stub build( public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse generateProductImageBackground( com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateProductImageBackgroundMethod(), getCallOptions(), request); } @@ -477,8 +475,9 @@ protected ImageServiceBlockingV2Stub build( public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse removeProductImageBackground( com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveProductImageBackgroundMethod(), getCallOptions(), request); } @@ -492,8 +491,9 @@ protected ImageServiceBlockingV2Stub build( */ public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse upscaleProductImage( - com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpscaleProductImageMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceGrpc.java b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceGrpc.java index 8c5f12f0a480..7332eeb42b1a 100644 --- a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceGrpc.java +++ b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceGrpc.java @@ -25,9 +25,6 @@ * enhancing product text content, such as titles, descriptions, etc. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/productstudio/v1alpha/textsuggestions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TextSuggestionsServiceGrpc { @@ -279,8 +276,9 @@ protected TextSuggestionsServiceBlockingV2Stub build( public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductTextSuggestionsResponse generateProductTextSuggestions( com.google.shopping.merchant.productstudio.v1alpha.GenerateProductTextSuggestionsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateProductTextSuggestionsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 78326d64d8f8..2bdf81745a39 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-products - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-products:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceGrpc.java b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceGrpc.java index ff5e99766891..431f7b25c656 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceGrpc.java +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to use ProductInput resource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/products/v1/productinputs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductInputsServiceGrpc { @@ -442,8 +439,9 @@ protected ProductInputsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.products.v1.ProductInput insertProductInput( - com.google.shopping.merchant.products.v1.InsertProductInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1.InsertProductInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertProductInputMethod(), getCallOptions(), request); } @@ -457,8 +455,9 @@ public com.google.shopping.merchant.products.v1.ProductInput insertProductInput( * */ public com.google.shopping.merchant.products.v1.ProductInput updateProductInput( - com.google.shopping.merchant.products.v1.UpdateProductInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1.UpdateProductInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductInputMethod(), getCallOptions(), request); } @@ -472,8 +471,9 @@ public com.google.shopping.merchant.products.v1.ProductInput updateProductInput( * */ public com.google.protobuf.Empty deleteProductInput( - com.google.shopping.merchant.products.v1.DeleteProductInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1.DeleteProductInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductInputMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceGrpc.java b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceGrpc.java index e9b791ab402d..cb00751e6c86 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceGrpc.java +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to use Product resource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/products/v1/products.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductsServiceGrpc { @@ -332,8 +329,9 @@ protected ProductsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.products.v1.Product getProduct( - com.google.shopping.merchant.products.v1.GetProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1.GetProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } @@ -349,8 +347,9 @@ public com.google.shopping.merchant.products.v1.Product getProduct( * */ public com.google.shopping.merchant.products.v1.ListProductsResponse listProducts( - com.google.shopping.merchant.products.v1.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1.ListProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceGrpc.java b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceGrpc.java index 4aaaa086aae9..635210bcef52 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceGrpc.java +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceGrpc.java @@ -25,9 +25,6 @@ * This service works for products with online channel only. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/products/v1beta/productinputs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductInputsServiceGrpc { @@ -441,8 +438,9 @@ protected ProductInputsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.products.v1beta.ProductInput insertProductInput( - com.google.shopping.merchant.products.v1beta.InsertProductInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1beta.InsertProductInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertProductInputMethod(), getCallOptions(), request); } @@ -456,8 +454,9 @@ public com.google.shopping.merchant.products.v1beta.ProductInput insertProductIn * */ public com.google.shopping.merchant.products.v1beta.ProductInput updateProductInput( - com.google.shopping.merchant.products.v1beta.UpdateProductInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1beta.UpdateProductInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductInputMethod(), getCallOptions(), request); } @@ -471,8 +470,9 @@ public com.google.shopping.merchant.products.v1beta.ProductInput updateProductIn * */ public com.google.protobuf.Empty deleteProductInput( - com.google.shopping.merchant.products.v1beta.DeleteProductInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1beta.DeleteProductInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductInputMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceGrpc.java b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceGrpc.java index 6596dffea1d8..019c0ff01216 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceGrpc.java +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to use Product resource. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/products/v1beta/products.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductsServiceGrpc { @@ -334,8 +331,9 @@ protected ProductsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.products.v1beta.Product getProduct( - com.google.shopping.merchant.products.v1beta.GetProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1beta.GetProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } @@ -351,8 +349,9 @@ public com.google.shopping.merchant.products.v1beta.Product getProduct( * */ public com.google.shopping.merchant.products.v1beta.ListProductsResponse listProducts( - com.google.shopping.merchant.products.v1beta.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.products.v1beta.ListProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 786f3138740d..41d158c4180e 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-promotions - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceGrpc.java b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceGrpc.java index abe7c0b48500..100998ff26fd 100644 --- a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceGrpc.java +++ b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage promotions for products. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/promotions/v1/promotions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PromotionsServiceGrpc { @@ -418,8 +415,9 @@ protected PromotionsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.promotions.v1.Promotion insertPromotion( - com.google.shopping.merchant.promotions.v1.InsertPromotionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.promotions.v1.InsertPromotionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertPromotionMethod(), getCallOptions(), request); } @@ -433,8 +431,9 @@ public com.google.shopping.merchant.promotions.v1.Promotion insertPromotion( * */ public com.google.shopping.merchant.promotions.v1.Promotion getPromotion( - com.google.shopping.merchant.promotions.v1.GetPromotionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.promotions.v1.GetPromotionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPromotionMethod(), getCallOptions(), request); } @@ -450,8 +449,9 @@ public com.google.shopping.merchant.promotions.v1.Promotion getPromotion( * */ public com.google.shopping.merchant.promotions.v1.ListPromotionsResponse listPromotions( - com.google.shopping.merchant.promotions.v1.ListPromotionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.promotions.v1.ListPromotionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPromotionsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceGrpc.java b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceGrpc.java index 3e3ba0a3403c..38625669dd30 100644 --- a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceGrpc.java +++ b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage promotions for products. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/promotions/v1beta/promotions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PromotionsServiceGrpc { @@ -418,8 +415,9 @@ protected PromotionsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.promotions.v1beta.Promotion insertPromotion( - com.google.shopping.merchant.promotions.v1beta.InsertPromotionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.promotions.v1beta.InsertPromotionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertPromotionMethod(), getCallOptions(), request); } @@ -433,8 +431,9 @@ public com.google.shopping.merchant.promotions.v1beta.Promotion insertPromotion( * */ public com.google.shopping.merchant.promotions.v1beta.Promotion getPromotion( - com.google.shopping.merchant.promotions.v1beta.GetPromotionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.promotions.v1beta.GetPromotionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPromotionMethod(), getCallOptions(), request); } @@ -450,8 +449,9 @@ public com.google.shopping.merchant.promotions.v1beta.Promotion getPromotion( * */ public com.google.shopping.merchant.promotions.v1beta.ListPromotionsResponse listPromotions( - com.google.shopping.merchant.promotions.v1beta.ListPromotionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.promotions.v1beta.ListPromotionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPromotionsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index 101f0897fe53..0c58a8987eef 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-quota - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceGrpc.java b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceGrpc.java index 4f1fc859334b..cf9176012f69 100644 --- a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceGrpc.java +++ b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceGrpc.java @@ -24,9 +24,6 @@ * Service to get method call quota information per Merchant API method. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/quota/v1/quota.proto") @io.grpc.stub.annotations.GrpcGenerated public final class QuotaServiceGrpc { @@ -244,8 +241,9 @@ protected QuotaServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.quota.v1.ListQuotaGroupsResponse listQuotaGroups( - com.google.shopping.merchant.quota.v1.ListQuotaGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.quota.v1.ListQuotaGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQuotaGroupsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceGrpc.java b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceGrpc.java index 277f84b81612..3e1811e44698 100644 --- a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceGrpc.java +++ b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceGrpc.java @@ -24,9 +24,6 @@ * Service to get method call quota information per Merchant API method. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/quota/v1beta/quota.proto") @io.grpc.stub.annotations.GrpcGenerated public final class QuotaServiceGrpc { @@ -246,8 +243,9 @@ protected QuotaServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.quota.v1beta.ListQuotaGroupsResponse listQuotaGroups( - com.google.shopping.merchant.quota.v1beta.ListQuotaGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.quota.v1beta.ListQuotaGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQuotaGroupsMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 1099973a00e1..839473cf5aac 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-reports - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:1.5.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.5.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.6.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceGrpc.java b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceGrpc.java index 98ef566cfe8f..cae2de097062 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceGrpc.java +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceGrpc.java @@ -25,9 +25,6 @@ * performance, and their competitive environment on Google. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/reports/v1/reports.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReportServiceGrpc { @@ -248,8 +245,9 @@ protected ReportServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.reports.v1.SearchResponse search( - com.google.shopping.merchant.reports.v1.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reports.v1.SearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceGrpc.java b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceGrpc.java index 399c344a32ce..545b36cb5d55 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceGrpc.java +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceGrpc.java @@ -25,9 +25,6 @@ * performance, and their competitive environment on Google. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/reports/v1alpha/reports.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReportServiceGrpc { @@ -248,8 +245,9 @@ protected ReportServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.reports.v1alpha.SearchResponse search( - com.google.shopping.merchant.reports.v1alpha.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reports.v1alpha.SearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceGrpc.java b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceGrpc.java index 113b7519d9db..29615567945a 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceGrpc.java +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceGrpc.java @@ -25,9 +25,6 @@ * performance, and their competitive environment on Google. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/reports/v1beta/reports.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ReportServiceGrpc { @@ -248,8 +245,9 @@ protected ReportServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.reports.v1beta.SearchResponse search( - com.google.shopping.merchant.reports.v1beta.SearchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reports.v1beta.SearchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index 6446f8771af4..cbd2b4b43ef4 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-reviews - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.23.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.23.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.24.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceGrpc.java b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceGrpc.java index 9364c2ceec40..f4e41e523225 100644 --- a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceGrpc.java +++ b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage merchant reviews. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/reviews/v1beta/merchantreviews.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MerchantReviewsServiceGrpc { @@ -496,8 +493,9 @@ protected MerchantReviewsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.reviews.v1beta.MerchantReview getMerchantReview( - com.google.shopping.merchant.reviews.v1beta.GetMerchantReviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reviews.v1beta.GetMerchantReviewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMerchantReviewMethod(), getCallOptions(), request); } @@ -510,8 +508,9 @@ public com.google.shopping.merchant.reviews.v1beta.MerchantReview getMerchantRev */ public com.google.shopping.merchant.reviews.v1beta.ListMerchantReviewsResponse listMerchantReviews( - com.google.shopping.merchant.reviews.v1beta.ListMerchantReviewsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reviews.v1beta.ListMerchantReviewsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMerchantReviewsMethod(), getCallOptions(), request); } @@ -524,8 +523,9 @@ public com.google.shopping.merchant.reviews.v1beta.MerchantReview getMerchantRev * */ public com.google.shopping.merchant.reviews.v1beta.MerchantReview insertMerchantReview( - com.google.shopping.merchant.reviews.v1beta.InsertMerchantReviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reviews.v1beta.InsertMerchantReviewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertMerchantReviewMethod(), getCallOptions(), request); } @@ -537,8 +537,9 @@ public com.google.shopping.merchant.reviews.v1beta.MerchantReview insertMerchant * */ public com.google.protobuf.Empty deleteMerchantReview( - com.google.shopping.merchant.reviews.v1beta.DeleteMerchantReviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reviews.v1beta.DeleteMerchantReviewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMerchantReviewMethod(), getCallOptions(), request); } } diff --git a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceGrpc.java b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceGrpc.java index c62475d0d381..747431925cdf 100644 --- a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceGrpc.java +++ b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceGrpc.java @@ -24,9 +24,6 @@ * Service to manage product reviews. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/shopping/merchant/reviews/v1beta/productreviews.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductReviewsServiceGrpc { @@ -488,8 +485,9 @@ protected ProductReviewsServiceBlockingV2Stub build( * */ public com.google.shopping.merchant.reviews.v1beta.ProductReview getProductReview( - com.google.shopping.merchant.reviews.v1beta.GetProductReviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reviews.v1beta.GetProductReviewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductReviewMethod(), getCallOptions(), request); } @@ -502,8 +500,9 @@ public com.google.shopping.merchant.reviews.v1beta.ProductReview getProductRevie */ public com.google.shopping.merchant.reviews.v1beta.ListProductReviewsResponse listProductReviews( - com.google.shopping.merchant.reviews.v1beta.ListProductReviewsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reviews.v1beta.ListProductReviewsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductReviewsMethod(), getCallOptions(), request); } @@ -515,8 +514,9 @@ public com.google.shopping.merchant.reviews.v1beta.ProductReview getProductRevie * */ public com.google.shopping.merchant.reviews.v1beta.ProductReview insertProductReview( - com.google.shopping.merchant.reviews.v1beta.InsertProductReviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reviews.v1beta.InsertProductReviewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getInsertProductReviewMethod(), getCallOptions(), request); } @@ -528,8 +528,9 @@ public com.google.shopping.merchant.reviews.v1beta.ProductReview insertProductRe * */ public com.google.protobuf.Empty deleteProductReview( - com.google.shopping.merchant.reviews.v1beta.DeleteProductReviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.shopping.merchant.reviews.v1beta.DeleteProductReviewRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductReviewMethod(), getCallOptions(), request); } } diff --git a/java-spanneradapter/README.md b/java-spanneradapter/README.md index 413e7398362d..991f19a35d04 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanneradapter - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanneradapter:0.13.0' +implementation 'com.google.cloud:google-cloud-spanneradapter:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.14.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanneradapter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.14.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/AdapterGrpc.java b/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/AdapterGrpc.java index ef48c3491c3e..ea697cedd807 100644 --- a/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/AdapterGrpc.java +++ b/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/AdapterGrpc.java @@ -27,9 +27,6 @@ * wire protocol used by the driver in a gRPC stream. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/spanner/adapter/v1/adapter.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AdapterGrpc { @@ -334,8 +331,8 @@ protected AdapterBlockingV2Stub build( * */ public com.google.spanner.adapter.v1.Session createSession( - com.google.spanner.adapter.v1.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.spanner.adapter.v1.CreateSessionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } diff --git a/java-speech/README.md b/java-speech/README.md index b61aaed80929..43f6995996dd 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.72.0 + 4.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.72.0' +implementation 'com.google.cloud:google-cloud-speech:4.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.73.0" ``` ## Authentication @@ -230,7 +230,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.73.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java index e437b02ff71e..357085062b4a 100644 --- a/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java +++ b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Speech Adaptation API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1/cloud_speech_adaptation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AdaptationGrpc { @@ -908,8 +905,8 @@ protected AdaptationBlockingV2Stub build( * */ public com.google.cloud.speech.v1.PhraseSet createPhraseSet( - com.google.cloud.speech.v1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.CreatePhraseSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); } @@ -921,8 +918,8 @@ public com.google.cloud.speech.v1.PhraseSet createPhraseSet( * */ public com.google.cloud.speech.v1.PhraseSet getPhraseSet( - com.google.cloud.speech.v1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.GetPhraseSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); } @@ -934,8 +931,8 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSet( * */ public com.google.cloud.speech.v1.ListPhraseSetResponse listPhraseSet( - com.google.cloud.speech.v1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.ListPhraseSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPhraseSetMethod(), getCallOptions(), request); } @@ -947,8 +944,8 @@ public com.google.cloud.speech.v1.ListPhraseSetResponse listPhraseSet( * */ public com.google.cloud.speech.v1.PhraseSet updatePhraseSet( - com.google.cloud.speech.v1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.UpdatePhraseSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); } @@ -960,8 +957,8 @@ public com.google.cloud.speech.v1.PhraseSet updatePhraseSet( * */ public com.google.protobuf.Empty deletePhraseSet( - com.google.cloud.speech.v1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.DeletePhraseSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); } @@ -973,8 +970,9 @@ public com.google.protobuf.Empty deletePhraseSet( * */ public com.google.cloud.speech.v1.CustomClass createCustomClass( - com.google.cloud.speech.v1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.CreateCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); } @@ -986,8 +984,8 @@ public com.google.cloud.speech.v1.CustomClass createCustomClass( * */ public com.google.cloud.speech.v1.CustomClass getCustomClass( - com.google.cloud.speech.v1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.GetCustomClassRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomClassMethod(), getCallOptions(), request); } @@ -999,8 +997,9 @@ public com.google.cloud.speech.v1.CustomClass getCustomClass( * */ public com.google.cloud.speech.v1.ListCustomClassesResponse listCustomClasses( - com.google.cloud.speech.v1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.ListCustomClassesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomClassesMethod(), getCallOptions(), request); } @@ -1012,8 +1011,9 @@ public com.google.cloud.speech.v1.ListCustomClassesResponse listCustomClasses( * */ public com.google.cloud.speech.v1.CustomClass updateCustomClass( - com.google.cloud.speech.v1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.UpdateCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); } @@ -1025,8 +1025,9 @@ public com.google.cloud.speech.v1.CustomClass updateCustomClass( * */ public com.google.protobuf.Empty deleteCustomClass( - com.google.cloud.speech.v1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.DeleteCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); } } diff --git a/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java index b98806591581..b10bf5427cc0 100644 --- a/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java +++ b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Speech API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1/cloud_speech.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SpeechGrpc { @@ -394,8 +391,8 @@ protected SpeechBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.speech.v1.RecognizeResponse recognize( - com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.RecognizeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecognizeMethod(), getCallOptions(), request); } @@ -412,8 +409,9 @@ public com.google.cloud.speech.v1.RecognizeResponse recognize( * */ public com.google.longrunning.Operation longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); } diff --git a/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java index 61de9d1866d0..21c4b6613425 100644 --- a/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java +++ b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Speech Adaptation API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AdaptationGrpc { @@ -927,8 +924,9 @@ protected AdaptationBlockingV2Stub build( * */ public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); } @@ -940,8 +938,9 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet( * */ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); } @@ -953,8 +952,9 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet( * */ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPhraseSetMethod(), getCallOptions(), request); } @@ -966,8 +966,9 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet( * */ public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); } @@ -979,8 +980,9 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet( * */ public com.google.protobuf.Empty deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); } @@ -992,8 +994,9 @@ public com.google.protobuf.Empty deletePhraseSet( * */ public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); } @@ -1005,8 +1008,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass( * */ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomClassMethod(), getCallOptions(), request); } @@ -1018,8 +1022,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass( * */ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomClassesMethod(), getCallOptions(), request); } @@ -1031,8 +1036,9 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomCla * */ public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); } @@ -1044,8 +1050,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass( * */ public com.google.protobuf.Empty deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); } } diff --git a/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java index 3fef59c83cb8..4254f89631f5 100644 --- a/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java +++ b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Speech API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SpeechGrpc { @@ -402,8 +399,8 @@ protected SpeechBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecognizeMethod(), getCallOptions(), request); } @@ -420,8 +417,9 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize( * */ public com.google.longrunning.Operation longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); } diff --git a/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java index 3062b35fe745..4abbb04dd763 100644 --- a/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java +++ b/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java @@ -24,9 +24,6 @@ * Enables speech transcription and resource management. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v2/cloud_speech.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SpeechGrpc { @@ -1848,8 +1845,8 @@ protected SpeechBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOption * */ public com.google.longrunning.Operation createRecognizer( - com.google.cloud.speech.v2.CreateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.CreateRecognizerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateRecognizerMethod(), getCallOptions(), request); } @@ -1861,8 +1858,8 @@ public com.google.longrunning.Operation createRecognizer( * */ public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers( - com.google.cloud.speech.v2.ListRecognizersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.ListRecognizersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRecognizersMethod(), getCallOptions(), request); } @@ -1877,8 +1874,8 @@ public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers( * */ public com.google.cloud.speech.v2.Recognizer getRecognizer( - com.google.cloud.speech.v2.GetRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.GetRecognizerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRecognizerMethod(), getCallOptions(), request); } @@ -1890,8 +1887,8 @@ public com.google.cloud.speech.v2.Recognizer getRecognizer( * */ public com.google.longrunning.Operation updateRecognizer( - com.google.cloud.speech.v2.UpdateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.UpdateRecognizerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateRecognizerMethod(), getCallOptions(), request); } @@ -1903,8 +1900,8 @@ public com.google.longrunning.Operation updateRecognizer( * */ public com.google.longrunning.Operation deleteRecognizer( - com.google.cloud.speech.v2.DeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.DeleteRecognizerRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteRecognizerMethod(), getCallOptions(), request); } @@ -1916,8 +1913,9 @@ public com.google.longrunning.Operation deleteRecognizer( * */ public com.google.longrunning.Operation undeleteRecognizer( - com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.UndeleteRecognizerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteRecognizerMethod(), getCallOptions(), request); } @@ -1930,8 +1928,8 @@ public com.google.longrunning.Operation undeleteRecognizer( * */ public com.google.cloud.speech.v2.RecognizeResponse recognize( - com.google.cloud.speech.v2.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.RecognizeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRecognizeMethod(), getCallOptions(), request); } @@ -1962,8 +1960,8 @@ public com.google.cloud.speech.v2.RecognizeResponse recognize( * */ public com.google.longrunning.Operation batchRecognize( - com.google.cloud.speech.v2.BatchRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.BatchRecognizeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchRecognizeMethod(), getCallOptions(), request); } @@ -1975,8 +1973,8 @@ public com.google.longrunning.Operation batchRecognize( * */ public com.google.cloud.speech.v2.Config getConfig( - com.google.cloud.speech.v2.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.GetConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConfigMethod(), getCallOptions(), request); } @@ -1988,8 +1986,8 @@ public com.google.cloud.speech.v2.Config getConfig( * */ public com.google.cloud.speech.v2.Config updateConfig( - com.google.cloud.speech.v2.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.UpdateConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConfigMethod(), getCallOptions(), request); } @@ -2001,8 +1999,9 @@ public com.google.cloud.speech.v2.Config updateConfig( * */ public com.google.longrunning.Operation createCustomClass( - com.google.cloud.speech.v2.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.CreateCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); } @@ -2014,8 +2013,9 @@ public com.google.longrunning.Operation createCustomClass( * */ public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses( - com.google.cloud.speech.v2.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.ListCustomClassesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCustomClassesMethod(), getCallOptions(), request); } @@ -2028,8 +2028,8 @@ public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses( * */ public com.google.cloud.speech.v2.CustomClass getCustomClass( - com.google.cloud.speech.v2.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.GetCustomClassRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCustomClassMethod(), getCallOptions(), request); } @@ -2041,8 +2041,9 @@ public com.google.cloud.speech.v2.CustomClass getCustomClass( * */ public com.google.longrunning.Operation updateCustomClass( - com.google.cloud.speech.v2.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.UpdateCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); } @@ -2054,8 +2055,9 @@ public com.google.longrunning.Operation updateCustomClass( * */ public com.google.longrunning.Operation deleteCustomClass( - com.google.cloud.speech.v2.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.DeleteCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); } @@ -2067,8 +2069,9 @@ public com.google.longrunning.Operation deleteCustomClass( * */ public com.google.longrunning.Operation undeleteCustomClass( - com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.UndeleteCustomClassRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeleteCustomClassMethod(), getCallOptions(), request); } @@ -2080,8 +2083,8 @@ public com.google.longrunning.Operation undeleteCustomClass( * */ public com.google.longrunning.Operation createPhraseSet( - com.google.cloud.speech.v2.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.CreatePhraseSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); } @@ -2093,8 +2096,8 @@ public com.google.longrunning.Operation createPhraseSet( * */ public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets( - com.google.cloud.speech.v2.ListPhraseSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.ListPhraseSetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPhraseSetsMethod(), getCallOptions(), request); } @@ -2107,8 +2110,8 @@ public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets( * */ public com.google.cloud.speech.v2.PhraseSet getPhraseSet( - com.google.cloud.speech.v2.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.GetPhraseSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); } @@ -2120,8 +2123,8 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSet( * */ public com.google.longrunning.Operation updatePhraseSet( - com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.UpdatePhraseSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); } @@ -2133,8 +2136,8 @@ public com.google.longrunning.Operation updatePhraseSet( * */ public com.google.longrunning.Operation deletePhraseSet( - com.google.cloud.speech.v2.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.DeletePhraseSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); } @@ -2146,8 +2149,9 @@ public com.google.longrunning.Operation deletePhraseSet( * */ public com.google.longrunning.Operation undeletePhraseSet( - com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.speech.v2.UndeletePhraseSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeletePhraseSetMethod(), getCallOptions(), request); } } diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index aace07e87fb9..55a89f411960 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage-transfer - 1.77.0 + 1.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.77.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceGrpc.java b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceGrpc.java index 2c8e4a69c525..aa2d2fbc7348 100644 --- a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceGrpc.java +++ b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceGrpc.java @@ -26,9 +26,6 @@ * source external to Google to a Cloud Storage bucket. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/storagetransfer/v1/transfer.proto") @io.grpc.stub.annotations.GrpcGenerated public final class StorageTransferServiceGrpc { @@ -1357,8 +1354,9 @@ protected StorageTransferServiceBlockingV2Stub build( public com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount getGoogleServiceAccount( com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGoogleServiceAccountMethod(), getCallOptions(), request); } @@ -1370,8 +1368,9 @@ protected StorageTransferServiceBlockingV2Stub build( * */ public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob createTransferJob( - com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTransferJobMethod(), getCallOptions(), request); } @@ -1389,8 +1388,9 @@ public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob createTrans * */ public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob updateTransferJob( - com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTransferJobMethod(), getCallOptions(), request); } @@ -1402,8 +1402,9 @@ public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob updateTrans * */ public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob getTransferJob( - com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTransferJobMethod(), getCallOptions(), request); } @@ -1416,8 +1417,9 @@ public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob getTransfer */ public com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse listTransferJobs( - com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTransferJobsMethod(), getCallOptions(), request); } @@ -1429,8 +1431,9 @@ public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob getTransfer * */ public com.google.protobuf.Empty pauseTransferOperation( - com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseTransferOperationMethod(), getCallOptions(), request); } @@ -1442,8 +1445,9 @@ public com.google.protobuf.Empty pauseTransferOperation( * */ public com.google.protobuf.Empty resumeTransferOperation( - com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeTransferOperationMethod(), getCallOptions(), request); } @@ -1458,8 +1462,9 @@ public com.google.protobuf.Empty resumeTransferOperation( * */ public com.google.longrunning.Operation runTransferJob( - com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunTransferJobMethod(), getCallOptions(), request); } @@ -1472,8 +1477,9 @@ public com.google.longrunning.Operation runTransferJob( * */ public com.google.protobuf.Empty deleteTransferJob( - com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTransferJobMethod(), getCallOptions(), request); } @@ -1485,8 +1491,9 @@ public com.google.protobuf.Empty deleteTransferJob( * */ public com.google.storagetransfer.v1.proto.TransferTypes.AgentPool createAgentPool( - com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAgentPoolMethod(), getCallOptions(), request); } @@ -1498,8 +1505,9 @@ public com.google.storagetransfer.v1.proto.TransferTypes.AgentPool createAgentPo * */ public com.google.storagetransfer.v1.proto.TransferTypes.AgentPool updateAgentPool( - com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAgentPoolMethod(), getCallOptions(), request); } @@ -1511,8 +1519,9 @@ public com.google.storagetransfer.v1.proto.TransferTypes.AgentPool updateAgentPo * */ public com.google.storagetransfer.v1.proto.TransferTypes.AgentPool getAgentPool( - com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAgentPoolMethod(), getCallOptions(), request); } @@ -1524,8 +1533,9 @@ public com.google.storagetransfer.v1.proto.TransferTypes.AgentPool getAgentPool( * */ public com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse listAgentPools( - com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAgentPoolsMethod(), getCallOptions(), request); } @@ -1537,8 +1547,9 @@ public com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse * */ public com.google.protobuf.Empty deleteAgentPool( - com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAgentPoolMethod(), getCallOptions(), request); } } diff --git a/java-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index 8d4690411b2f..6b0e2ee45e80 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storagebatchoperations - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.17.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.18.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsGrpc.java b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsGrpc.java index fd9f400b8391..3b760b21c658 100644 --- a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsGrpc.java +++ b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsGrpc.java @@ -27,9 +27,6 @@ * performed on Cloud Storage objects. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/storagebatchoperations/v1/storage_batch_operations.proto") @io.grpc.stub.annotations.GrpcGenerated public final class StorageBatchOperationsGrpc { @@ -549,8 +546,9 @@ protected StorageBatchOperationsBlockingV2Stub build( * */ public com.google.cloud.storagebatchoperations.v1.ListJobsResponse listJobs( - com.google.cloud.storagebatchoperations.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storagebatchoperations.v1.ListJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -562,8 +560,9 @@ public com.google.cloud.storagebatchoperations.v1.ListJobsResponse listJobs( * */ public com.google.cloud.storagebatchoperations.v1.Job getJob( - com.google.cloud.storagebatchoperations.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storagebatchoperations.v1.GetJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -575,8 +574,9 @@ public com.google.cloud.storagebatchoperations.v1.Job getJob( * */ public com.google.longrunning.Operation createJob( - com.google.cloud.storagebatchoperations.v1.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storagebatchoperations.v1.CreateJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -588,8 +588,9 @@ public com.google.longrunning.Operation createJob( * */ public com.google.protobuf.Empty deleteJob( - com.google.cloud.storagebatchoperations.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storagebatchoperations.v1.DeleteJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } @@ -601,8 +602,9 @@ public com.google.protobuf.Empty deleteJob( * */ public com.google.cloud.storagebatchoperations.v1.CancelJobResponse cancelJob( - com.google.cloud.storagebatchoperations.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storagebatchoperations.v1.CancelJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelJobMethod(), getCallOptions(), request); } } diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index 19d613f6ff5c..ef35022b8a70 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.62.0 + 0.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.62.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.63.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.63.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storageinsights/grpc-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsGrpc.java b/java-storageinsights/grpc-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsGrpc.java index d7609a23bc80..9f0e23b01dfb 100644 --- a/java-storageinsights/grpc-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsGrpc.java +++ b/java-storageinsights/grpc-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/storageinsights/v1/storageinsights.proto") @io.grpc.stub.annotations.GrpcGenerated public final class StorageInsightsGrpc { @@ -1259,8 +1256,9 @@ protected StorageInsightsBlockingV2Stub build( * */ public com.google.cloud.storageinsights.v1.ListReportConfigsResponse listReportConfigs( - com.google.cloud.storageinsights.v1.ListReportConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.ListReportConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReportConfigsMethod(), getCallOptions(), request); } @@ -1272,8 +1270,9 @@ public com.google.cloud.storageinsights.v1.ListReportConfigsResponse listReportC * */ public com.google.cloud.storageinsights.v1.ReportConfig getReportConfig( - com.google.cloud.storageinsights.v1.GetReportConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.GetReportConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReportConfigMethod(), getCallOptions(), request); } @@ -1285,8 +1284,9 @@ public com.google.cloud.storageinsights.v1.ReportConfig getReportConfig( * */ public com.google.cloud.storageinsights.v1.ReportConfig createReportConfig( - com.google.cloud.storageinsights.v1.CreateReportConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.CreateReportConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReportConfigMethod(), getCallOptions(), request); } @@ -1298,8 +1298,9 @@ public com.google.cloud.storageinsights.v1.ReportConfig createReportConfig( * */ public com.google.cloud.storageinsights.v1.ReportConfig updateReportConfig( - com.google.cloud.storageinsights.v1.UpdateReportConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.UpdateReportConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReportConfigMethod(), getCallOptions(), request); } @@ -1311,8 +1312,9 @@ public com.google.cloud.storageinsights.v1.ReportConfig updateReportConfig( * */ public com.google.protobuf.Empty deleteReportConfig( - com.google.cloud.storageinsights.v1.DeleteReportConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.DeleteReportConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReportConfigMethod(), getCallOptions(), request); } @@ -1324,8 +1326,9 @@ public com.google.protobuf.Empty deleteReportConfig( * */ public com.google.cloud.storageinsights.v1.ListReportDetailsResponse listReportDetails( - com.google.cloud.storageinsights.v1.ListReportDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.ListReportDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReportDetailsMethod(), getCallOptions(), request); } @@ -1337,8 +1340,9 @@ public com.google.cloud.storageinsights.v1.ListReportDetailsResponse listReportD * */ public com.google.cloud.storageinsights.v1.ReportDetail getReportDetail( - com.google.cloud.storageinsights.v1.GetReportDetailRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.GetReportDetailRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReportDetailMethod(), getCallOptions(), request); } @@ -1350,8 +1354,9 @@ public com.google.cloud.storageinsights.v1.ReportDetail getReportDetail( * */ public com.google.cloud.storageinsights.v1.ListDatasetConfigsResponse listDatasetConfigs( - com.google.cloud.storageinsights.v1.ListDatasetConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.ListDatasetConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetConfigsMethod(), getCallOptions(), request); } @@ -1363,8 +1368,9 @@ public com.google.cloud.storageinsights.v1.ListDatasetConfigsResponse listDatase * */ public com.google.cloud.storageinsights.v1.DatasetConfig getDatasetConfig( - com.google.cloud.storageinsights.v1.GetDatasetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.GetDatasetConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetConfigMethod(), getCallOptions(), request); } @@ -1376,8 +1382,9 @@ public com.google.cloud.storageinsights.v1.DatasetConfig getDatasetConfig( * */ public com.google.longrunning.Operation createDatasetConfig( - com.google.cloud.storageinsights.v1.CreateDatasetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.CreateDatasetConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetConfigMethod(), getCallOptions(), request); } @@ -1389,8 +1396,9 @@ public com.google.longrunning.Operation createDatasetConfig( * */ public com.google.longrunning.Operation updateDatasetConfig( - com.google.cloud.storageinsights.v1.UpdateDatasetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.UpdateDatasetConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDatasetConfigMethod(), getCallOptions(), request); } @@ -1402,8 +1410,9 @@ public com.google.longrunning.Operation updateDatasetConfig( * */ public com.google.longrunning.Operation deleteDatasetConfig( - com.google.cloud.storageinsights.v1.DeleteDatasetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.DeleteDatasetConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetConfigMethod(), getCallOptions(), request); } @@ -1415,8 +1424,9 @@ public com.google.longrunning.Operation deleteDatasetConfig( * */ public com.google.longrunning.Operation linkDataset( - com.google.cloud.storageinsights.v1.LinkDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.LinkDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLinkDatasetMethod(), getCallOptions(), request); } @@ -1429,8 +1439,9 @@ public com.google.longrunning.Operation linkDataset( * */ public com.google.longrunning.Operation unlinkDataset( - com.google.cloud.storageinsights.v1.UnlinkDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.storageinsights.v1.UnlinkDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUnlinkDatasetMethod(), getCallOptions(), request); } } diff --git a/java-talent/README.md b/java-talent/README.md index 8816d6eb66da..86bb2fdf755b 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.78.0' +implementation 'com.google.cloud:google-cloud-talent:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompanyServiceGrpc.java b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompanyServiceGrpc.java index ca380d765dc0..85cdb8f09d34 100644 --- a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompanyServiceGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompanyServiceGrpc.java @@ -24,9 +24,6 @@ * A service that handles company management, including CRUD and enumeration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4/company_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompanyServiceGrpc { @@ -524,8 +521,8 @@ protected CompanyServiceBlockingV2Stub build( * */ public com.google.cloud.talent.v4.Company createCompany( - com.google.cloud.talent.v4.CreateCompanyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.CreateCompanyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCompanyMethod(), getCallOptions(), request); } @@ -537,8 +534,8 @@ public com.google.cloud.talent.v4.Company createCompany( * */ public com.google.cloud.talent.v4.Company getCompany( - com.google.cloud.talent.v4.GetCompanyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.GetCompanyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCompanyMethod(), getCallOptions(), request); } @@ -550,8 +547,8 @@ public com.google.cloud.talent.v4.Company getCompany( * */ public com.google.cloud.talent.v4.Company updateCompany( - com.google.cloud.talent.v4.UpdateCompanyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.UpdateCompanyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCompanyMethod(), getCallOptions(), request); } @@ -564,8 +561,8 @@ public com.google.cloud.talent.v4.Company updateCompany( * */ public com.google.protobuf.Empty deleteCompany( - com.google.cloud.talent.v4.DeleteCompanyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.DeleteCompanyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCompanyMethod(), getCallOptions(), request); } @@ -577,8 +574,8 @@ public com.google.protobuf.Empty deleteCompany( * */ public com.google.cloud.talent.v4.ListCompaniesResponse listCompanies( - com.google.cloud.talent.v4.ListCompaniesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.ListCompaniesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCompaniesMethod(), getCallOptions(), request); } } diff --git a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompletionGrpc.java b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompletionGrpc.java index d5d60c742364..f54cc8162f50 100644 --- a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompletionGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompletionGrpc.java @@ -24,9 +24,6 @@ * A service handles auto completion. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4/completion_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompletionGrpc { @@ -238,8 +235,8 @@ protected CompletionBlockingV2Stub build( * */ public com.google.cloud.talent.v4.CompleteQueryResponse completeQuery( - com.google.cloud.talent.v4.CompleteQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.CompleteQueryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } } diff --git a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/EventServiceGrpc.java b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/EventServiceGrpc.java index 5af1a8bcf471..aaa22a41c3d6 100644 --- a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/EventServiceGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/EventServiceGrpc.java @@ -24,9 +24,6 @@ * A service handles client event report. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4/event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EventServiceGrpc { @@ -255,8 +252,9 @@ protected EventServiceBlockingV2Stub build( * */ public com.google.cloud.talent.v4.ClientEvent createClientEvent( - com.google.cloud.talent.v4.CreateClientEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.CreateClientEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClientEventMethod(), getCallOptions(), request); } } diff --git a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/JobServiceGrpc.java b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/JobServiceGrpc.java index 5f2f5d9d15c2..1d9842beeefd 100644 --- a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/JobServiceGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/JobServiceGrpc.java @@ -24,9 +24,6 @@ * A service handles job management, including job CRUD, enumeration and search. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4/job_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class JobServiceGrpc { @@ -906,8 +903,8 @@ protected JobServiceBlockingV2Stub build( * */ public com.google.cloud.talent.v4.Job createJob( - com.google.cloud.talent.v4.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.CreateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -919,8 +916,8 @@ public com.google.cloud.talent.v4.Job createJob( * */ public com.google.longrunning.Operation batchCreateJobs( - com.google.cloud.talent.v4.BatchCreateJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.BatchCreateJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateJobsMethod(), getCallOptions(), request); } @@ -932,8 +929,9 @@ public com.google.longrunning.Operation batchCreateJobs( * within the last 90 days. * */ - public com.google.cloud.talent.v4.Job getJob(com.google.cloud.talent.v4.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.talent.v4.Job getJob(com.google.cloud.talent.v4.GetJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -947,8 +945,8 @@ public com.google.cloud.talent.v4.Job getJob(com.google.cloud.talent.v4.GetJobRe * */ public com.google.cloud.talent.v4.Job updateJob( - com.google.cloud.talent.v4.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.UpdateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateJobMethod(), getCallOptions(), request); } @@ -960,8 +958,8 @@ public com.google.cloud.talent.v4.Job updateJob( * */ public com.google.longrunning.Operation batchUpdateJobs( - com.google.cloud.talent.v4.BatchUpdateJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.BatchUpdateJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateJobsMethod(), getCallOptions(), request); } @@ -974,9 +972,9 @@ public com.google.longrunning.Operation batchUpdateJobs( * up to 5 minutes. * */ - public com.google.protobuf.Empty deleteJob( - com.google.cloud.talent.v4.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteJob(com.google.cloud.talent.v4.DeleteJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } @@ -988,8 +986,8 @@ public com.google.protobuf.Empty deleteJob( * */ public com.google.longrunning.Operation batchDeleteJobs( - com.google.cloud.talent.v4.BatchDeleteJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.BatchDeleteJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteJobsMethod(), getCallOptions(), request); } @@ -1001,8 +999,8 @@ public com.google.longrunning.Operation batchDeleteJobs( * */ public com.google.cloud.talent.v4.ListJobsResponse listJobs( - com.google.cloud.talent.v4.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -1019,8 +1017,8 @@ public com.google.cloud.talent.v4.ListJobsResponse listJobs( * */ public com.google.cloud.talent.v4.SearchJobsResponse searchJobs( - com.google.cloud.talent.v4.SearchJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.SearchJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchJobsMethod(), getCallOptions(), request); } @@ -1041,8 +1039,8 @@ public com.google.cloud.talent.v4.SearchJobsResponse searchJobs( * */ public com.google.cloud.talent.v4.SearchJobsResponse searchJobsForAlert( - com.google.cloud.talent.v4.SearchJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.SearchJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchJobsForAlertMethod(), getCallOptions(), request); } } diff --git a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/TenantServiceGrpc.java b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/TenantServiceGrpc.java index d58baf837f9c..4eed9256c676 100644 --- a/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/TenantServiceGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/TenantServiceGrpc.java @@ -24,9 +24,6 @@ * A service that handles tenant management, including CRUD and enumeration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4/tenant_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TenantServiceGrpc { @@ -520,8 +517,8 @@ protected TenantServiceBlockingV2Stub build( * */ public com.google.cloud.talent.v4.Tenant createTenant( - com.google.cloud.talent.v4.CreateTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.CreateTenantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTenantMethod(), getCallOptions(), request); } @@ -533,8 +530,8 @@ public com.google.cloud.talent.v4.Tenant createTenant( * */ public com.google.cloud.talent.v4.Tenant getTenant( - com.google.cloud.talent.v4.GetTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.GetTenantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTenantMethod(), getCallOptions(), request); } @@ -546,8 +543,8 @@ public com.google.cloud.talent.v4.Tenant getTenant( * */ public com.google.cloud.talent.v4.Tenant updateTenant( - com.google.cloud.talent.v4.UpdateTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.UpdateTenantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTenantMethod(), getCallOptions(), request); } @@ -559,8 +556,8 @@ public com.google.cloud.talent.v4.Tenant updateTenant( * */ public com.google.protobuf.Empty deleteTenant( - com.google.cloud.talent.v4.DeleteTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.DeleteTenantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTenantMethod(), getCallOptions(), request); } @@ -572,8 +569,8 @@ public com.google.protobuf.Empty deleteTenant( * */ public com.google.cloud.talent.v4.ListTenantsResponse listTenants( - com.google.cloud.talent.v4.ListTenantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4.ListTenantsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTenantsMethod(), getCallOptions(), request); } } diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java index 307cc053a610..3210e118ac58 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java @@ -24,9 +24,6 @@ * A service that handles company management, including CRUD and enumeration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4beta1/company_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompanyServiceGrpc { @@ -539,8 +536,9 @@ protected CompanyServiceBlockingV2Stub build( * */ public com.google.cloud.talent.v4beta1.Company createCompany( - com.google.cloud.talent.v4beta1.CreateCompanyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.CreateCompanyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCompanyMethod(), getCallOptions(), request); } @@ -552,8 +550,8 @@ public com.google.cloud.talent.v4beta1.Company createCompany( * */ public com.google.cloud.talent.v4beta1.Company getCompany( - com.google.cloud.talent.v4beta1.GetCompanyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.GetCompanyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCompanyMethod(), getCallOptions(), request); } @@ -565,8 +563,9 @@ public com.google.cloud.talent.v4beta1.Company getCompany( * */ public com.google.cloud.talent.v4beta1.Company updateCompany( - com.google.cloud.talent.v4beta1.UpdateCompanyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCompanyMethod(), getCallOptions(), request); } @@ -579,8 +578,9 @@ public com.google.cloud.talent.v4beta1.Company updateCompany( * */ public com.google.protobuf.Empty deleteCompany( - com.google.cloud.talent.v4beta1.DeleteCompanyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCompanyMethod(), getCallOptions(), request); } @@ -592,8 +592,9 @@ public com.google.protobuf.Empty deleteCompany( * */ public com.google.cloud.talent.v4beta1.ListCompaniesResponse listCompanies( - com.google.cloud.talent.v4beta1.ListCompaniesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.ListCompaniesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCompaniesMethod(), getCallOptions(), request); } } diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java index 09fb093803e4..ad8a9e698e57 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java @@ -24,9 +24,6 @@ * A service handles auto completion. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4beta1/completion_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CompletionGrpc { @@ -239,8 +236,9 @@ protected CompletionBlockingV2Stub build( * */ public com.google.cloud.talent.v4beta1.CompleteQueryResponse completeQuery( - com.google.cloud.talent.v4beta1.CompleteQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.CompleteQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } } diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java index 3b283c75c8d1..2038ddbc39ea 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java @@ -24,9 +24,6 @@ * A service handles client event report. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4beta1/event_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class EventServiceGrpc { @@ -255,8 +252,9 @@ protected EventServiceBlockingV2Stub build( * */ public com.google.cloud.talent.v4beta1.ClientEvent createClientEvent( - com.google.cloud.talent.v4beta1.CreateClientEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.CreateClientEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClientEventMethod(), getCallOptions(), request); } } diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java index 970a9509fb22..7bfa514daea6 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java @@ -24,9 +24,6 @@ * A service handles job management, including job CRUD, enumeration and search. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4beta1/job_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class JobServiceGrpc { @@ -925,8 +922,8 @@ protected JobServiceBlockingV2Stub build( * */ public com.google.cloud.talent.v4beta1.Job createJob( - com.google.cloud.talent.v4beta1.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.CreateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -938,8 +935,9 @@ public com.google.cloud.talent.v4beta1.Job createJob( * */ public com.google.longrunning.Operation batchCreateJobs( - com.google.cloud.talent.v4beta1.BatchCreateJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.BatchCreateJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchCreateJobsMethod(), getCallOptions(), request); } @@ -952,8 +950,8 @@ public com.google.longrunning.Operation batchCreateJobs( * */ public com.google.cloud.talent.v4beta1.Job getJob( - com.google.cloud.talent.v4beta1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.GetJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -967,8 +965,8 @@ public com.google.cloud.talent.v4beta1.Job getJob( * */ public com.google.cloud.talent.v4beta1.Job updateJob( - com.google.cloud.talent.v4beta1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.UpdateJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateJobMethod(), getCallOptions(), request); } @@ -980,8 +978,9 @@ public com.google.cloud.talent.v4beta1.Job updateJob( * */ public com.google.longrunning.Operation batchUpdateJobs( - com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchUpdateJobsMethod(), getCallOptions(), request); } @@ -995,8 +994,8 @@ public com.google.longrunning.Operation batchUpdateJobs( * */ public com.google.protobuf.Empty deleteJob( - com.google.cloud.talent.v4beta1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.DeleteJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } @@ -1008,8 +1007,9 @@ public com.google.protobuf.Empty deleteJob( * */ public com.google.protobuf.Empty batchDeleteJobs( - com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchDeleteJobsMethod(), getCallOptions(), request); } @@ -1021,8 +1021,8 @@ public com.google.protobuf.Empty batchDeleteJobs( * */ public com.google.cloud.talent.v4beta1.ListJobsResponse listJobs( - com.google.cloud.talent.v4beta1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.ListJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -1039,8 +1039,8 @@ public com.google.cloud.talent.v4beta1.ListJobsResponse listJobs( * */ public com.google.cloud.talent.v4beta1.SearchJobsResponse searchJobs( - com.google.cloud.talent.v4beta1.SearchJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.SearchJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchJobsMethod(), getCallOptions(), request); } @@ -1061,8 +1061,8 @@ public com.google.cloud.talent.v4beta1.SearchJobsResponse searchJobs( * */ public com.google.cloud.talent.v4beta1.SearchJobsResponse searchJobsForAlert( - com.google.cloud.talent.v4beta1.SearchJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.SearchJobsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchJobsForAlertMethod(), getCallOptions(), request); } } diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java index 581b06c68b44..9ded4df57647 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java +++ b/java-talent/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java @@ -24,9 +24,6 @@ * A service that handles tenant management, including CRUD and enumeration. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4beta1/tenant_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TenantServiceGrpc { @@ -534,8 +531,9 @@ protected TenantServiceBlockingV2Stub build( * */ public com.google.cloud.talent.v4beta1.Tenant createTenant( - com.google.cloud.talent.v4beta1.CreateTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.CreateTenantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTenantMethod(), getCallOptions(), request); } @@ -547,8 +545,8 @@ public com.google.cloud.talent.v4beta1.Tenant createTenant( * */ public com.google.cloud.talent.v4beta1.Tenant getTenant( - com.google.cloud.talent.v4beta1.GetTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.GetTenantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTenantMethod(), getCallOptions(), request); } @@ -560,8 +558,9 @@ public com.google.cloud.talent.v4beta1.Tenant getTenant( * */ public com.google.cloud.talent.v4beta1.Tenant updateTenant( - com.google.cloud.talent.v4beta1.UpdateTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.UpdateTenantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTenantMethod(), getCallOptions(), request); } @@ -573,8 +572,9 @@ public com.google.cloud.talent.v4beta1.Tenant updateTenant( * */ public com.google.protobuf.Empty deleteTenant( - com.google.cloud.talent.v4beta1.DeleteTenantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.DeleteTenantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTenantMethod(), getCallOptions(), request); } @@ -586,8 +586,8 @@ public com.google.protobuf.Empty deleteTenant( * */ public com.google.cloud.talent.v4beta1.ListTenantsResponse listTenants( - com.google.cloud.talent.v4beta1.ListTenantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.talent.v4beta1.ListTenantsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTenantsMethod(), getCallOptions(), request); } } diff --git a/java-tasks/README.md b/java-tasks/README.md index 988558cdd04a..94af98f71a19 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.77.0' +implementation 'com.google.cloud:google-cloud-tasks:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tasks/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java b/java-tasks/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java index b1e913f75ffa..a95954a57de1 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java +++ b/java-tasks/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java @@ -25,9 +25,6 @@ * work in their applications. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tasks/v2/cloudtasks.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudTasksGrpc { @@ -1467,8 +1464,8 @@ protected CloudTasksBlockingV2Stub build( * */ public com.google.cloud.tasks.v2.ListQueuesResponse listQueues( - com.google.cloud.tasks.v2.ListQueuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.ListQueuesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQueuesMethod(), getCallOptions(), request); } @@ -1480,8 +1477,8 @@ public com.google.cloud.tasks.v2.ListQueuesResponse listQueues( * */ public com.google.cloud.tasks.v2.Queue getQueue( - com.google.cloud.tasks.v2.GetQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.GetQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQueueMethod(), getCallOptions(), request); } @@ -1502,8 +1499,8 @@ public com.google.cloud.tasks.v2.Queue getQueue( * */ public com.google.cloud.tasks.v2.Queue createQueue( - com.google.cloud.tasks.v2.CreateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.CreateQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQueueMethod(), getCallOptions(), request); } @@ -1526,8 +1523,8 @@ public com.google.cloud.tasks.v2.Queue createQueue( * */ public com.google.cloud.tasks.v2.Queue updateQueue( - com.google.cloud.tasks.v2.UpdateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.UpdateQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQueueMethod(), getCallOptions(), request); } @@ -1548,8 +1545,8 @@ public com.google.cloud.tasks.v2.Queue updateQueue( * */ public com.google.protobuf.Empty deleteQueue( - com.google.cloud.tasks.v2.DeleteQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.DeleteQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQueueMethod(), getCallOptions(), request); } @@ -1564,8 +1561,8 @@ public com.google.protobuf.Empty deleteQueue( * */ public com.google.cloud.tasks.v2.Queue purgeQueue( - com.google.cloud.tasks.v2.PurgeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.PurgeQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeQueueMethod(), getCallOptions(), request); } @@ -1583,8 +1580,8 @@ public com.google.cloud.tasks.v2.Queue purgeQueue( * */ public com.google.cloud.tasks.v2.Queue pauseQueue( - com.google.cloud.tasks.v2.PauseQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.PauseQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseQueueMethod(), getCallOptions(), request); } @@ -1607,8 +1604,8 @@ public com.google.cloud.tasks.v2.Queue pauseQueue( * */ public com.google.cloud.tasks.v2.Queue resumeQueue( - com.google.cloud.tasks.v2.ResumeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.ResumeQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeQueueMethod(), getCallOptions(), request); } @@ -1625,8 +1622,9 @@ public com.google.cloud.tasks.v2.Queue resumeQueue( * * `cloudtasks.queues.getIamPolicy` * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1644,8 +1642,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * * `cloudtasks.queues.setIamPolicy` * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1663,8 +1662,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -1682,8 +1681,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.tasks.v2.ListTasksResponse listTasks( - com.google.cloud.tasks.v2.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.ListTasksRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTasksMethod(), getCallOptions(), request); } @@ -1694,9 +1693,9 @@ public com.google.cloud.tasks.v2.ListTasksResponse listTasks( * Gets a task. * */ - public com.google.cloud.tasks.v2.Task getTask( - com.google.cloud.tasks.v2.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.tasks.v2.Task getTask(com.google.cloud.tasks.v2.GetTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaskMethod(), getCallOptions(), request); } @@ -1710,8 +1709,8 @@ public com.google.cloud.tasks.v2.Task getTask( * */ public com.google.cloud.tasks.v2.Task createTask( - com.google.cloud.tasks.v2.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2.CreateTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTaskMethod(), getCallOptions(), request); } @@ -1725,9 +1724,9 @@ public com.google.cloud.tasks.v2.Task createTask( * failed. * */ - public com.google.protobuf.Empty deleteTask( - com.google.cloud.tasks.v2.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteTask(com.google.cloud.tasks.v2.DeleteTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } @@ -1758,9 +1757,9 @@ public com.google.protobuf.Empty deleteTask( * task that has already succeeded or permanently failed. * */ - public com.google.cloud.tasks.v2.Task runTask( - com.google.cloud.tasks.v2.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.tasks.v2.Task runTask(com.google.cloud.tasks.v2.RunTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunTaskMethod(), getCallOptions(), request); } } diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java b/java-tasks/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java index a12180bc4762..891d5bfe5d51 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java +++ b/java-tasks/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java @@ -25,9 +25,6 @@ * work in their applications. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tasks/v2beta2/cloudtasks.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudTasksGrpc { @@ -1951,8 +1948,8 @@ protected CloudTasksBlockingV2Stub build( * */ public com.google.cloud.tasks.v2beta2.ListQueuesResponse listQueues( - com.google.cloud.tasks.v2beta2.ListQueuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.ListQueuesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQueuesMethod(), getCallOptions(), request); } @@ -1964,8 +1961,8 @@ public com.google.cloud.tasks.v2beta2.ListQueuesResponse listQueues( * */ public com.google.cloud.tasks.v2beta2.Queue getQueue( - com.google.cloud.tasks.v2beta2.GetQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.GetQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQueueMethod(), getCallOptions(), request); } @@ -1986,8 +1983,8 @@ public com.google.cloud.tasks.v2beta2.Queue getQueue( * */ public com.google.cloud.tasks.v2beta2.Queue createQueue( - com.google.cloud.tasks.v2beta2.CreateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.CreateQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQueueMethod(), getCallOptions(), request); } @@ -2010,8 +2007,8 @@ public com.google.cloud.tasks.v2beta2.Queue createQueue( * */ public com.google.cloud.tasks.v2beta2.Queue updateQueue( - com.google.cloud.tasks.v2beta2.UpdateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.UpdateQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQueueMethod(), getCallOptions(), request); } @@ -2032,8 +2029,8 @@ public com.google.cloud.tasks.v2beta2.Queue updateQueue( * */ public com.google.protobuf.Empty deleteQueue( - com.google.cloud.tasks.v2beta2.DeleteQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.DeleteQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQueueMethod(), getCallOptions(), request); } @@ -2048,8 +2045,8 @@ public com.google.protobuf.Empty deleteQueue( * */ public com.google.cloud.tasks.v2beta2.Queue purgeQueue( - com.google.cloud.tasks.v2beta2.PurgeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.PurgeQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeQueueMethod(), getCallOptions(), request); } @@ -2067,8 +2064,8 @@ public com.google.cloud.tasks.v2beta2.Queue purgeQueue( * */ public com.google.cloud.tasks.v2beta2.Queue pauseQueue( - com.google.cloud.tasks.v2beta2.PauseQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.PauseQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseQueueMethod(), getCallOptions(), request); } @@ -2092,8 +2089,8 @@ public com.google.cloud.tasks.v2beta2.Queue pauseQueue( * */ public com.google.cloud.tasks.v2beta2.Queue resumeQueue( - com.google.cloud.tasks.v2beta2.ResumeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.ResumeQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeQueueMethod(), getCallOptions(), request); } @@ -2108,8 +2105,9 @@ public com.google.cloud.tasks.v2beta2.Queue resumeQueue( * */ public com.google.protobuf.Empty uploadQueueYaml( - com.google.cloud.tasks.v2beta2.UploadQueueYamlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.UploadQueueYamlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUploadQueueYamlMethod(), getCallOptions(), request); } @@ -2126,8 +2124,9 @@ public com.google.protobuf.Empty uploadQueueYaml( * * `cloudtasks.queues.getIamPolicy` * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -2145,8 +2144,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * * `cloudtasks.queues.setIamPolicy` * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -2164,8 +2164,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -2183,8 +2183,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.tasks.v2beta2.ListTasksResponse listTasks( - com.google.cloud.tasks.v2beta2.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.ListTasksRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTasksMethod(), getCallOptions(), request); } @@ -2196,8 +2196,8 @@ public com.google.cloud.tasks.v2beta2.ListTasksResponse listTasks( * */ public com.google.cloud.tasks.v2beta2.Task getTask( - com.google.cloud.tasks.v2beta2.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.GetTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaskMethod(), getCallOptions(), request); } @@ -2215,8 +2215,8 @@ public com.google.cloud.tasks.v2beta2.Task getTask( * */ public com.google.cloud.tasks.v2beta2.Task createTask( - com.google.cloud.tasks.v2beta2.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.CreateTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTaskMethod(), getCallOptions(), request); } @@ -2231,8 +2231,8 @@ public com.google.cloud.tasks.v2beta2.Task createTask( * */ public com.google.protobuf.Empty deleteTask( - com.google.cloud.tasks.v2beta2.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.DeleteTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } @@ -2263,8 +2263,8 @@ public com.google.protobuf.Empty deleteTask( * */ public com.google.cloud.tasks.v2beta2.LeaseTasksResponse leaseTasks( - com.google.cloud.tasks.v2beta2.LeaseTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.LeaseTasksRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getLeaseTasksMethod(), getCallOptions(), request); } @@ -2287,8 +2287,9 @@ public com.google.cloud.tasks.v2beta2.LeaseTasksResponse leaseTasks( * */ public com.google.protobuf.Empty acknowledgeTask( - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcknowledgeTaskMethod(), getCallOptions(), request); } @@ -2304,8 +2305,8 @@ public com.google.protobuf.Empty acknowledgeTask( * */ public com.google.cloud.tasks.v2beta2.Task renewLease( - com.google.cloud.tasks.v2beta2.RenewLeaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.RenewLeaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenewLeaseMethod(), getCallOptions(), request); } @@ -2321,8 +2322,8 @@ public com.google.cloud.tasks.v2beta2.Task renewLease( * */ public com.google.cloud.tasks.v2beta2.Task cancelLease( - com.google.cloud.tasks.v2beta2.CancelLeaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.CancelLeaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelLeaseMethod(), getCallOptions(), request); } @@ -2357,8 +2358,8 @@ public com.google.cloud.tasks.v2beta2.Task cancelLease( * */ public com.google.cloud.tasks.v2beta2.Task runTask( - com.google.cloud.tasks.v2beta2.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta2.RunTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunTaskMethod(), getCallOptions(), request); } } diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java b/java-tasks/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java index 383534380d6f..a6ff98470559 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java +++ b/java-tasks/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java @@ -25,9 +25,6 @@ * work in their applications. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tasks/v2beta3/cloudtasks.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudTasksGrpc { @@ -1495,8 +1492,8 @@ protected CloudTasksBlockingV2Stub build( * */ public com.google.cloud.tasks.v2beta3.ListQueuesResponse listQueues( - com.google.cloud.tasks.v2beta3.ListQueuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.ListQueuesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQueuesMethod(), getCallOptions(), request); } @@ -1508,8 +1505,8 @@ public com.google.cloud.tasks.v2beta3.ListQueuesResponse listQueues( * */ public com.google.cloud.tasks.v2beta3.Queue getQueue( - com.google.cloud.tasks.v2beta3.GetQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.GetQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQueueMethod(), getCallOptions(), request); } @@ -1530,8 +1527,8 @@ public com.google.cloud.tasks.v2beta3.Queue getQueue( * */ public com.google.cloud.tasks.v2beta3.Queue createQueue( - com.google.cloud.tasks.v2beta3.CreateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.CreateQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQueueMethod(), getCallOptions(), request); } @@ -1554,8 +1551,8 @@ public com.google.cloud.tasks.v2beta3.Queue createQueue( * */ public com.google.cloud.tasks.v2beta3.Queue updateQueue( - com.google.cloud.tasks.v2beta3.UpdateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.UpdateQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateQueueMethod(), getCallOptions(), request); } @@ -1576,8 +1573,8 @@ public com.google.cloud.tasks.v2beta3.Queue updateQueue( * */ public com.google.protobuf.Empty deleteQueue( - com.google.cloud.tasks.v2beta3.DeleteQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.DeleteQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQueueMethod(), getCallOptions(), request); } @@ -1592,8 +1589,8 @@ public com.google.protobuf.Empty deleteQueue( * */ public com.google.cloud.tasks.v2beta3.Queue purgeQueue( - com.google.cloud.tasks.v2beta3.PurgeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.PurgeQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeQueueMethod(), getCallOptions(), request); } @@ -1611,8 +1608,8 @@ public com.google.cloud.tasks.v2beta3.Queue purgeQueue( * */ public com.google.cloud.tasks.v2beta3.Queue pauseQueue( - com.google.cloud.tasks.v2beta3.PauseQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.PauseQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseQueueMethod(), getCallOptions(), request); } @@ -1636,8 +1633,8 @@ public com.google.cloud.tasks.v2beta3.Queue pauseQueue( * */ public com.google.cloud.tasks.v2beta3.Queue resumeQueue( - com.google.cloud.tasks.v2beta3.ResumeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.ResumeQueueRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeQueueMethod(), getCallOptions(), request); } @@ -1654,8 +1651,9 @@ public com.google.cloud.tasks.v2beta3.Queue resumeQueue( * * `cloudtasks.queues.getIamPolicy` * */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } @@ -1673,8 +1671,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * * `cloudtasks.queues.setIamPolicy` * */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } @@ -1692,8 +1691,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -1711,8 +1710,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * */ public com.google.cloud.tasks.v2beta3.ListTasksResponse listTasks( - com.google.cloud.tasks.v2beta3.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.ListTasksRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTasksMethod(), getCallOptions(), request); } @@ -1724,8 +1723,8 @@ public com.google.cloud.tasks.v2beta3.ListTasksResponse listTasks( * */ public com.google.cloud.tasks.v2beta3.Task getTask( - com.google.cloud.tasks.v2beta3.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.GetTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTaskMethod(), getCallOptions(), request); } @@ -1739,8 +1738,8 @@ public com.google.cloud.tasks.v2beta3.Task getTask( * */ public com.google.cloud.tasks.v2beta3.Task createTask( - com.google.cloud.tasks.v2beta3.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.CreateTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTaskMethod(), getCallOptions(), request); } @@ -1755,8 +1754,8 @@ public com.google.cloud.tasks.v2beta3.Task createTask( * */ public com.google.protobuf.Empty deleteTask( - com.google.cloud.tasks.v2beta3.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.DeleteTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } @@ -1789,8 +1788,8 @@ public com.google.protobuf.Empty deleteTask( * */ public com.google.cloud.tasks.v2beta3.Task runTask( - com.google.cloud.tasks.v2beta3.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tasks.v2beta3.RunTaskRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunTaskMethod(), getCallOptions(), request); } } diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index edf1d111ff2c..625c94dafa32 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 0.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.47.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.48.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationGrpc.java b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationGrpc.java index 9880bc47fdd7..df92cafab240 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationGrpc.java +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationGrpc.java @@ -28,9 +28,6 @@ * functions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/telcoautomation/v1/telcoautomation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TelcoAutomationGrpc { @@ -3088,8 +3085,9 @@ protected TelcoAutomationBlockingV2Stub build( */ public com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse listOrchestrationClusters( - com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrchestrationClustersMethod(), getCallOptions(), request); } @@ -3101,8 +3099,9 @@ protected TelcoAutomationBlockingV2Stub build( * */ public com.google.cloud.telcoautomation.v1.OrchestrationCluster getOrchestrationCluster( - com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrchestrationClusterMethod(), getCallOptions(), request); } @@ -3114,8 +3113,9 @@ public com.google.cloud.telcoautomation.v1.OrchestrationCluster getOrchestration * */ public com.google.longrunning.Operation createOrchestrationCluster( - com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOrchestrationClusterMethod(), getCallOptions(), request); } @@ -3127,8 +3127,9 @@ public com.google.longrunning.Operation createOrchestrationCluster( * */ public com.google.longrunning.Operation deleteOrchestrationCluster( - com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOrchestrationClusterMethod(), getCallOptions(), request); } @@ -3140,8 +3141,9 @@ public com.google.longrunning.Operation deleteOrchestrationCluster( * */ public com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse listEdgeSlms( - com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEdgeSlmsMethod(), getCallOptions(), request); } @@ -3153,8 +3155,9 @@ public com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse listEdgeSlms( * */ public com.google.cloud.telcoautomation.v1.EdgeSlm getEdgeSlm( - com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEdgeSlmMethod(), getCallOptions(), request); } @@ -3166,8 +3169,9 @@ public com.google.cloud.telcoautomation.v1.EdgeSlm getEdgeSlm( * */ public com.google.longrunning.Operation createEdgeSlm( - com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEdgeSlmMethod(), getCallOptions(), request); } @@ -3179,8 +3183,9 @@ public com.google.longrunning.Operation createEdgeSlm( * */ public com.google.longrunning.Operation deleteEdgeSlm( - com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEdgeSlmMethod(), getCallOptions(), request); } @@ -3192,8 +3197,9 @@ public com.google.longrunning.Operation deleteEdgeSlm( * */ public com.google.cloud.telcoautomation.v1.Blueprint createBlueprint( - com.google.cloud.telcoautomation.v1.CreateBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBlueprintMethod(), getCallOptions(), request); } @@ -3205,8 +3211,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint createBlueprint( * */ public com.google.cloud.telcoautomation.v1.Blueprint updateBlueprint( - com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBlueprintMethod(), getCallOptions(), request); } @@ -3218,8 +3225,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint updateBlueprint( * */ public com.google.cloud.telcoautomation.v1.Blueprint getBlueprint( - com.google.cloud.telcoautomation.v1.GetBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.GetBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBlueprintMethod(), getCallOptions(), request); } @@ -3231,8 +3239,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint getBlueprint( * */ public com.google.protobuf.Empty deleteBlueprint( - com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBlueprintMethod(), getCallOptions(), request); } @@ -3244,8 +3253,9 @@ public com.google.protobuf.Empty deleteBlueprint( * */ public com.google.cloud.telcoautomation.v1.ListBlueprintsResponse listBlueprints( - com.google.cloud.telcoautomation.v1.ListBlueprintsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBlueprintsMethod(), getCallOptions(), request); } @@ -3257,8 +3267,9 @@ public com.google.cloud.telcoautomation.v1.ListBlueprintsResponse listBlueprints * */ public com.google.cloud.telcoautomation.v1.Blueprint approveBlueprint( - com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApproveBlueprintMethod(), getCallOptions(), request); } @@ -3270,8 +3281,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint approveBlueprint( * */ public com.google.cloud.telcoautomation.v1.Blueprint proposeBlueprint( - com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProposeBlueprintMethod(), getCallOptions(), request); } @@ -3283,8 +3295,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint proposeBlueprint( * */ public com.google.cloud.telcoautomation.v1.Blueprint rejectBlueprint( - com.google.cloud.telcoautomation.v1.RejectBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRejectBlueprintMethod(), getCallOptions(), request); } @@ -3297,8 +3310,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint rejectBlueprint( */ public com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse listBlueprintRevisions( - com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBlueprintRevisionsMethod(), getCallOptions(), request); } @@ -3311,8 +3325,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint rejectBlueprint( */ public com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse searchBlueprintRevisions( - com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchBlueprintRevisionsMethod(), getCallOptions(), request); } @@ -3325,8 +3340,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint rejectBlueprint( */ public com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse searchDeploymentRevisions( - com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchDeploymentRevisionsMethod(), getCallOptions(), request); } @@ -3341,8 +3357,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint rejectBlueprint( */ public com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse discardBlueprintChanges( - com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiscardBlueprintChangesMethod(), getCallOptions(), request); } @@ -3355,8 +3372,9 @@ public com.google.cloud.telcoautomation.v1.Blueprint rejectBlueprint( * */ public com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse listPublicBlueprints( - com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPublicBlueprintsMethod(), getCallOptions(), request); } @@ -3368,8 +3386,9 @@ public com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse listPubl * */ public com.google.cloud.telcoautomation.v1.PublicBlueprint getPublicBlueprint( - com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPublicBlueprintMethod(), getCallOptions(), request); } @@ -3381,8 +3400,9 @@ public com.google.cloud.telcoautomation.v1.PublicBlueprint getPublicBlueprint( * */ public com.google.cloud.telcoautomation.v1.Deployment createDeployment( - com.google.cloud.telcoautomation.v1.CreateDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeploymentMethod(), getCallOptions(), request); } @@ -3394,8 +3414,9 @@ public com.google.cloud.telcoautomation.v1.Deployment createDeployment( * */ public com.google.cloud.telcoautomation.v1.Deployment updateDeployment( - com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeploymentMethod(), getCallOptions(), request); } @@ -3407,8 +3428,9 @@ public com.google.cloud.telcoautomation.v1.Deployment updateDeployment( * */ public com.google.cloud.telcoautomation.v1.Deployment getDeployment( - com.google.cloud.telcoautomation.v1.GetDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.GetDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeploymentMethod(), getCallOptions(), request); } @@ -3421,8 +3443,9 @@ public com.google.cloud.telcoautomation.v1.Deployment getDeployment( * */ public com.google.protobuf.Empty removeDeployment( - com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveDeploymentMethod(), getCallOptions(), request); } @@ -3434,8 +3457,9 @@ public com.google.protobuf.Empty removeDeployment( * */ public com.google.cloud.telcoautomation.v1.ListDeploymentsResponse listDeployments( - com.google.cloud.telcoautomation.v1.ListDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentsMethod(), getCallOptions(), request); } @@ -3448,8 +3472,9 @@ public com.google.cloud.telcoautomation.v1.ListDeploymentsResponse listDeploymen */ public com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse listDeploymentRevisions( - com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentRevisionsMethod(), getCallOptions(), request); } @@ -3464,8 +3489,9 @@ public com.google.cloud.telcoautomation.v1.ListDeploymentsResponse listDeploymen */ public com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse discardDeploymentChanges( - com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiscardDeploymentChangesMethod(), getCallOptions(), request); } @@ -3477,8 +3503,9 @@ public com.google.cloud.telcoautomation.v1.ListDeploymentsResponse listDeploymen * */ public com.google.cloud.telcoautomation.v1.Deployment applyDeployment( - com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApplyDeploymentMethod(), getCallOptions(), request); } @@ -3491,8 +3518,9 @@ public com.google.cloud.telcoautomation.v1.Deployment applyDeployment( */ public com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse computeDeploymentStatus( - com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeDeploymentStatusMethod(), getCallOptions(), request); } @@ -3505,8 +3533,9 @@ public com.google.cloud.telcoautomation.v1.Deployment applyDeployment( * */ public com.google.cloud.telcoautomation.v1.Deployment rollbackDeployment( - com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackDeploymentMethod(), getCallOptions(), request); } @@ -3518,8 +3547,9 @@ public com.google.cloud.telcoautomation.v1.Deployment rollbackDeployment( * */ public com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeployment( - com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHydratedDeploymentMethod(), getCallOptions(), request); } @@ -3532,8 +3562,9 @@ public com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeploym */ public com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse listHydratedDeployments( - com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHydratedDeploymentsMethod(), getCallOptions(), request); } @@ -3545,8 +3576,9 @@ public com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeploym * */ public com.google.cloud.telcoautomation.v1.HydratedDeployment updateHydratedDeployment( - com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHydratedDeploymentMethod(), getCallOptions(), request); } @@ -3558,8 +3590,9 @@ public com.google.cloud.telcoautomation.v1.HydratedDeployment updateHydratedDepl * */ public com.google.cloud.telcoautomation.v1.HydratedDeployment applyHydratedDeployment( - com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApplyHydratedDeploymentMethod(), getCallOptions(), request); } } diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationGrpc.java b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationGrpc.java index 169c3c128c5f..821e6786eb34 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationGrpc.java +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationGrpc.java @@ -28,9 +28,6 @@ * functions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TelcoAutomationGrpc { @@ -3128,8 +3125,9 @@ protected TelcoAutomationBlockingV2Stub build( */ public com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse listOrchestrationClusters( - com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOrchestrationClustersMethod(), getCallOptions(), request); } @@ -3141,8 +3139,9 @@ protected TelcoAutomationBlockingV2Stub build( * */ public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster getOrchestrationCluster( - com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOrchestrationClusterMethod(), getCallOptions(), request); } @@ -3154,8 +3153,9 @@ public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster getOrchest * */ public com.google.longrunning.Operation createOrchestrationCluster( - com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOrchestrationClusterMethod(), getCallOptions(), request); } @@ -3167,8 +3167,9 @@ public com.google.longrunning.Operation createOrchestrationCluster( * */ public com.google.longrunning.Operation deleteOrchestrationCluster( - com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOrchestrationClusterMethod(), getCallOptions(), request); } @@ -3180,8 +3181,9 @@ public com.google.longrunning.Operation deleteOrchestrationCluster( * */ public com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse listEdgeSlms( - com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEdgeSlmsMethod(), getCallOptions(), request); } @@ -3193,8 +3195,9 @@ public com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse listEdgeSl * */ public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getEdgeSlm( - com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEdgeSlmMethod(), getCallOptions(), request); } @@ -3206,8 +3209,9 @@ public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getEdgeSlm( * */ public com.google.longrunning.Operation createEdgeSlm( - com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEdgeSlmMethod(), getCallOptions(), request); } @@ -3219,8 +3223,9 @@ public com.google.longrunning.Operation createEdgeSlm( * */ public com.google.longrunning.Operation deleteEdgeSlm( - com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEdgeSlmMethod(), getCallOptions(), request); } @@ -3232,8 +3237,9 @@ public com.google.longrunning.Operation deleteEdgeSlm( * */ public com.google.cloud.telcoautomation.v1alpha1.Blueprint createBlueprint( - com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateBlueprintMethod(), getCallOptions(), request); } @@ -3245,8 +3251,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint createBlueprint( * */ public com.google.cloud.telcoautomation.v1alpha1.Blueprint updateBlueprint( - com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateBlueprintMethod(), getCallOptions(), request); } @@ -3258,8 +3265,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint updateBlueprint( * */ public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprint( - com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetBlueprintMethod(), getCallOptions(), request); } @@ -3271,8 +3279,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprint( * */ public com.google.protobuf.Empty deleteBlueprint( - com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteBlueprintMethod(), getCallOptions(), request); } @@ -3284,8 +3293,9 @@ public com.google.protobuf.Empty deleteBlueprint( * */ public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse listBlueprints( - com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBlueprintsMethod(), getCallOptions(), request); } @@ -3297,8 +3307,9 @@ public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse listBlue * */ public com.google.cloud.telcoautomation.v1alpha1.Blueprint approveBlueprint( - com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApproveBlueprintMethod(), getCallOptions(), request); } @@ -3310,8 +3321,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint approveBlueprint( * */ public com.google.cloud.telcoautomation.v1alpha1.Blueprint proposeBlueprint( - com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getProposeBlueprintMethod(), getCallOptions(), request); } @@ -3323,8 +3335,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint proposeBlueprint( * */ public com.google.cloud.telcoautomation.v1alpha1.Blueprint rejectBlueprint( - com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRejectBlueprintMethod(), getCallOptions(), request); } @@ -3337,8 +3350,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint rejectBlueprint( */ public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse listBlueprintRevisions( - com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListBlueprintRevisionsMethod(), getCallOptions(), request); } @@ -3351,8 +3365,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint rejectBlueprint( */ public com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse searchBlueprintRevisions( - com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchBlueprintRevisionsMethod(), getCallOptions(), request); } @@ -3365,8 +3380,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint rejectBlueprint( */ public com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse searchDeploymentRevisions( - com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchDeploymentRevisionsMethod(), getCallOptions(), request); } @@ -3381,8 +3397,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint rejectBlueprint( */ public com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse discardBlueprintChanges( - com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiscardBlueprintChangesMethod(), getCallOptions(), request); } @@ -3396,8 +3413,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint rejectBlueprint( */ public com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse listPublicBlueprints( - com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPublicBlueprintsMethod(), getCallOptions(), request); } @@ -3409,8 +3427,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Blueprint rejectBlueprint( * */ public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint getPublicBlueprint( - com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPublicBlueprintMethod(), getCallOptions(), request); } @@ -3422,8 +3441,9 @@ public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint getPublicBluepr * */ public com.google.cloud.telcoautomation.v1alpha1.Deployment createDeployment( - com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDeploymentMethod(), getCallOptions(), request); } @@ -3435,8 +3455,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Deployment createDeployment( * */ public com.google.cloud.telcoautomation.v1alpha1.Deployment updateDeployment( - com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDeploymentMethod(), getCallOptions(), request); } @@ -3448,8 +3469,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Deployment updateDeployment( * */ public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployment( - com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDeploymentMethod(), getCallOptions(), request); } @@ -3462,8 +3484,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployment( * */ public com.google.protobuf.Empty removeDeployment( - com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveDeploymentMethod(), getCallOptions(), request); } @@ -3475,8 +3498,9 @@ public com.google.protobuf.Empty removeDeployment( * */ public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse listDeployments( - com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentsMethod(), getCallOptions(), request); } @@ -3489,8 +3513,9 @@ public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse listDep */ public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse listDeploymentRevisions( - com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDeploymentRevisionsMethod(), getCallOptions(), request); } @@ -3505,8 +3530,9 @@ public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse listDep */ public com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse discardDeploymentChanges( - com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDiscardDeploymentChangesMethod(), getCallOptions(), request); } @@ -3518,8 +3544,9 @@ public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse listDep * */ public com.google.cloud.telcoautomation.v1alpha1.Deployment applyDeployment( - com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApplyDeploymentMethod(), getCallOptions(), request); } @@ -3532,8 +3559,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Deployment applyDeployment( */ public com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse computeDeploymentStatus( - com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeDeploymentStatusMethod(), getCallOptions(), request); } @@ -3546,8 +3574,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Deployment applyDeployment( * */ public com.google.cloud.telcoautomation.v1alpha1.Deployment rollbackDeployment( - com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackDeploymentMethod(), getCallOptions(), request); } @@ -3559,8 +3588,9 @@ public com.google.cloud.telcoautomation.v1alpha1.Deployment rollbackDeployment( * */ public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedDeployment( - com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHydratedDeploymentMethod(), getCallOptions(), request); } @@ -3573,8 +3603,9 @@ public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedD */ public com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse listHydratedDeployments( - com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHydratedDeploymentsMethod(), getCallOptions(), request); } @@ -3586,8 +3617,9 @@ public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedD * */ public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment updateHydratedDeployment( - com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateHydratedDeploymentMethod(), getCallOptions(), request); } @@ -3599,8 +3631,9 @@ public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment updateHydrat * */ public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment applyHydratedDeployment( - com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getApplyHydratedDeploymentMethod(), getCallOptions(), request); } } diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 64c52e5c5b28..7ae968fd2c35 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.78.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java b/java-texttospeech/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java index cfa8a0063cce..f045755953b4 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Text-to-Speech API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/texttospeech/v1/cloud_tts.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TextToSpeechGrpc { @@ -400,8 +397,8 @@ protected TextToSpeechBlockingV2Stub build( * */ public com.google.cloud.texttospeech.v1.ListVoicesResponse listVoices( - com.google.cloud.texttospeech.v1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.texttospeech.v1.ListVoicesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVoicesMethod(), getCallOptions(), request); } @@ -414,8 +411,9 @@ public com.google.cloud.texttospeech.v1.ListVoicesResponse listVoices( * */ public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse synthesizeSpeech( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); } diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeGrpc.java b/java-texttospeech/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeGrpc.java index ca665afc9d67..d5841a54cdfb 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeGrpc.java +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Text-to-Speech API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/texttospeech/v1/cloud_tts_lrs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TextToSpeechLongAudioSynthesizeGrpc { @@ -250,8 +247,9 @@ protected TextToSpeechLongAudioSynthesizeBlockingV2Stub build( * */ public com.google.longrunning.Operation synthesizeLongAudio( - com.google.cloud.texttospeech.v1.SynthesizeLongAudioRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.texttospeech.v1.SynthesizeLongAudioRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSynthesizeLongAudioMethod(), getCallOptions(), request); } } diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java index 050b402d6827..5a24f11fa930 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Text-to-Speech API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/texttospeech/v1beta1/cloud_tts.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TextToSpeechGrpc { @@ -403,8 +400,9 @@ protected TextToSpeechBlockingV2Stub build( * */ public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse listVoices( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVoicesMethod(), getCallOptions(), request); } @@ -417,8 +415,9 @@ public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse listVoices( * */ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse synthesizeSpeech( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); } diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeGrpc.java b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeGrpc.java index b4e559a6b69a..676f0b4c7f73 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeGrpc.java +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Text-to-Speech API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TextToSpeechLongAudioSynthesizeGrpc { @@ -250,8 +247,9 @@ protected TextToSpeechLongAudioSynthesizeBlockingV2Stub build( * */ public com.google.longrunning.Operation synthesizeLongAudio( - com.google.cloud.texttospeech.v1beta1.SynthesizeLongAudioRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.texttospeech.v1beta1.SynthesizeLongAudioRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSynthesizeLongAudioMethod(), getCallOptions(), request); } } diff --git a/java-tpu/README.md b/java-tpu/README.md index b64250c3f1bc..4866f7434e53 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.78.0' +implementation 'com.google.cloud:google-cloud-tpu:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tpu/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java b/java-tpu/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java index e5584665c08c..78639027a155 100644 --- a/java-tpu/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java +++ b/java-tpu/grpc-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TpuGrpc.java @@ -25,9 +25,6 @@ * TPU API v1 * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tpu/v1/cloud_tpu.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TpuGrpc { @@ -943,8 +940,8 @@ protected TpuBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions c * */ public com.google.cloud.tpu.v1.ListNodesResponse listNodes( - com.google.cloud.tpu.v1.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.ListNodesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNodesMethod(), getCallOptions(), request); } @@ -955,8 +952,9 @@ public com.google.cloud.tpu.v1.ListNodesResponse listNodes( * Gets the details of a node. * */ - public com.google.cloud.tpu.v1.Node getNode(com.google.cloud.tpu.v1.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.tpu.v1.Node getNode(com.google.cloud.tpu.v1.GetNodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNodeMethod(), getCallOptions(), request); } @@ -968,8 +966,8 @@ public com.google.cloud.tpu.v1.Node getNode(com.google.cloud.tpu.v1.GetNodeReque * */ public com.google.longrunning.Operation createNode( - com.google.cloud.tpu.v1.CreateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.CreateNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNodeMethod(), getCallOptions(), request); } @@ -981,8 +979,8 @@ public com.google.longrunning.Operation createNode( * */ public com.google.longrunning.Operation deleteNode( - com.google.cloud.tpu.v1.DeleteNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.DeleteNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNodeMethod(), getCallOptions(), request); } @@ -994,8 +992,8 @@ public com.google.longrunning.Operation deleteNode( * */ public com.google.longrunning.Operation reimageNode( - com.google.cloud.tpu.v1.ReimageNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.ReimageNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReimageNodeMethod(), getCallOptions(), request); } @@ -1007,8 +1005,8 @@ public com.google.longrunning.Operation reimageNode( * */ public com.google.longrunning.Operation stopNode( - com.google.cloud.tpu.v1.StopNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.StopNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopNodeMethod(), getCallOptions(), request); } @@ -1020,8 +1018,8 @@ public com.google.longrunning.Operation stopNode( * */ public com.google.longrunning.Operation startNode( - com.google.cloud.tpu.v1.StartNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.StartNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartNodeMethod(), getCallOptions(), request); } @@ -1033,8 +1031,9 @@ public com.google.longrunning.Operation startNode( * */ public com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse listTensorFlowVersions( - com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.ListTensorFlowVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTensorFlowVersionsMethod(), getCallOptions(), request); } @@ -1046,8 +1045,9 @@ public com.google.cloud.tpu.v1.ListTensorFlowVersionsResponse listTensorFlowVers * */ public com.google.cloud.tpu.v1.TensorFlowVersion getTensorFlowVersion( - com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.GetTensorFlowVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTensorFlowVersionMethod(), getCallOptions(), request); } @@ -1059,8 +1059,9 @@ public com.google.cloud.tpu.v1.TensorFlowVersion getTensorFlowVersion( * */ public com.google.cloud.tpu.v1.ListAcceleratorTypesResponse listAcceleratorTypes( - com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.ListAcceleratorTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAcceleratorTypesMethod(), getCallOptions(), request); } @@ -1072,8 +1073,8 @@ public com.google.cloud.tpu.v1.ListAcceleratorTypesResponse listAcceleratorTypes * */ public com.google.cloud.tpu.v1.AcceleratorType getAcceleratorType( - com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v1.GetAcceleratorTypeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAcceleratorTypeMethod(), getCallOptions(), request); } } diff --git a/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java b/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java index f65044425a09..985946fb466a 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java +++ b/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java @@ -25,9 +25,6 @@ * TPU API v2 * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tpu/v2/cloud_tpu.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TpuGrpc { @@ -1464,8 +1461,8 @@ protected TpuBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions c * */ public com.google.cloud.tpu.v2.ListNodesResponse listNodes( - com.google.cloud.tpu.v2.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.ListNodesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNodesMethod(), getCallOptions(), request); } @@ -1476,8 +1473,9 @@ public com.google.cloud.tpu.v2.ListNodesResponse listNodes( * Gets the details of a node. * */ - public com.google.cloud.tpu.v2.Node getNode(com.google.cloud.tpu.v2.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.cloud.tpu.v2.Node getNode(com.google.cloud.tpu.v2.GetNodeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNodeMethod(), getCallOptions(), request); } @@ -1489,8 +1487,8 @@ public com.google.cloud.tpu.v2.Node getNode(com.google.cloud.tpu.v2.GetNodeReque * */ public com.google.longrunning.Operation createNode( - com.google.cloud.tpu.v2.CreateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.CreateNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNodeMethod(), getCallOptions(), request); } @@ -1502,8 +1500,8 @@ public com.google.longrunning.Operation createNode( * */ public com.google.longrunning.Operation deleteNode( - com.google.cloud.tpu.v2.DeleteNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.DeleteNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNodeMethod(), getCallOptions(), request); } @@ -1515,8 +1513,8 @@ public com.google.longrunning.Operation deleteNode( * */ public com.google.longrunning.Operation stopNode( - com.google.cloud.tpu.v2.StopNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.StopNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopNodeMethod(), getCallOptions(), request); } @@ -1528,8 +1526,8 @@ public com.google.longrunning.Operation stopNode( * */ public com.google.longrunning.Operation startNode( - com.google.cloud.tpu.v2.StartNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.StartNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartNodeMethod(), getCallOptions(), request); } @@ -1541,8 +1539,8 @@ public com.google.longrunning.Operation startNode( * */ public com.google.longrunning.Operation updateNode( - com.google.cloud.tpu.v2.UpdateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.UpdateNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNodeMethod(), getCallOptions(), request); } @@ -1554,8 +1552,8 @@ public com.google.longrunning.Operation updateNode( * */ public com.google.cloud.tpu.v2.ListQueuedResourcesResponse listQueuedResources( - com.google.cloud.tpu.v2.ListQueuedResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.ListQueuedResourcesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQueuedResourcesMethod(), getCallOptions(), request); } @@ -1567,8 +1565,8 @@ public com.google.cloud.tpu.v2.ListQueuedResourcesResponse listQueuedResources( * */ public com.google.cloud.tpu.v2.QueuedResource getQueuedResource( - com.google.cloud.tpu.v2.GetQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.GetQueuedResourceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQueuedResourceMethod(), getCallOptions(), request); } @@ -1580,8 +1578,9 @@ public com.google.cloud.tpu.v2.QueuedResource getQueuedResource( * */ public com.google.longrunning.Operation createQueuedResource( - com.google.cloud.tpu.v2.CreateQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.CreateQueuedResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQueuedResourceMethod(), getCallOptions(), request); } @@ -1593,8 +1592,9 @@ public com.google.longrunning.Operation createQueuedResource( * */ public com.google.longrunning.Operation deleteQueuedResource( - com.google.cloud.tpu.v2.DeleteQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQueuedResourceMethod(), getCallOptions(), request); } @@ -1606,8 +1606,8 @@ public com.google.longrunning.Operation deleteQueuedResource( * */ public com.google.longrunning.Operation resetQueuedResource( - com.google.cloud.tpu.v2.ResetQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.ResetQueuedResourceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetQueuedResourceMethod(), getCallOptions(), request); } @@ -1619,8 +1619,9 @@ public com.google.longrunning.Operation resetQueuedResource( * */ public com.google.cloud.tpu.v2.GenerateServiceIdentityResponse generateServiceIdentity( - com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.GenerateServiceIdentityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateServiceIdentityMethod(), getCallOptions(), request); } @@ -1632,8 +1633,9 @@ public com.google.cloud.tpu.v2.GenerateServiceIdentityResponse generateServiceId * */ public com.google.cloud.tpu.v2.ListAcceleratorTypesResponse listAcceleratorTypes( - com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.ListAcceleratorTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAcceleratorTypesMethod(), getCallOptions(), request); } @@ -1645,8 +1647,8 @@ public com.google.cloud.tpu.v2.ListAcceleratorTypesResponse listAcceleratorTypes * */ public com.google.cloud.tpu.v2.AcceleratorType getAcceleratorType( - com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.GetAcceleratorTypeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAcceleratorTypeMethod(), getCallOptions(), request); } @@ -1658,8 +1660,8 @@ public com.google.cloud.tpu.v2.AcceleratorType getAcceleratorType( * */ public com.google.cloud.tpu.v2.ListRuntimeVersionsResponse listRuntimeVersions( - com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.ListRuntimeVersionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRuntimeVersionsMethod(), getCallOptions(), request); } @@ -1671,8 +1673,8 @@ public com.google.cloud.tpu.v2.ListRuntimeVersionsResponse listRuntimeVersions( * */ public com.google.cloud.tpu.v2.RuntimeVersion getRuntimeVersion( - com.google.cloud.tpu.v2.GetRuntimeVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.GetRuntimeVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRuntimeVersionMethod(), getCallOptions(), request); } @@ -1684,8 +1686,8 @@ public com.google.cloud.tpu.v2.RuntimeVersion getRuntimeVersion( * */ public com.google.cloud.tpu.v2.GetGuestAttributesResponse getGuestAttributes( - com.google.cloud.tpu.v2.GetGuestAttributesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2.GetGuestAttributesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGuestAttributesMethod(), getCallOptions(), request); } } diff --git a/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java b/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java index 434ba12c7761..685ff9521af6 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java +++ b/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java @@ -25,9 +25,6 @@ * TPU API v2alpha1 * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tpu/v2alpha1/cloud_tpu.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TpuGrpc { @@ -1805,8 +1802,8 @@ protected TpuBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions c * */ public com.google.cloud.tpu.v2alpha1.ListNodesResponse listNodes( - com.google.cloud.tpu.v2alpha1.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.ListNodesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNodesMethod(), getCallOptions(), request); } @@ -1818,8 +1815,8 @@ public com.google.cloud.tpu.v2alpha1.ListNodesResponse listNodes( * */ public com.google.cloud.tpu.v2alpha1.Node getNode( - com.google.cloud.tpu.v2alpha1.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.GetNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNodeMethod(), getCallOptions(), request); } @@ -1831,8 +1828,8 @@ public com.google.cloud.tpu.v2alpha1.Node getNode( * */ public com.google.longrunning.Operation createNode( - com.google.cloud.tpu.v2alpha1.CreateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.CreateNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNodeMethod(), getCallOptions(), request); } @@ -1844,8 +1841,8 @@ public com.google.longrunning.Operation createNode( * */ public com.google.longrunning.Operation deleteNode( - com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNodeMethod(), getCallOptions(), request); } @@ -1857,8 +1854,8 @@ public com.google.longrunning.Operation deleteNode( * */ public com.google.longrunning.Operation stopNode( - com.google.cloud.tpu.v2alpha1.StopNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.StopNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopNodeMethod(), getCallOptions(), request); } @@ -1870,8 +1867,8 @@ public com.google.longrunning.Operation stopNode( * */ public com.google.longrunning.Operation startNode( - com.google.cloud.tpu.v2alpha1.StartNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.StartNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartNodeMethod(), getCallOptions(), request); } @@ -1883,8 +1880,8 @@ public com.google.longrunning.Operation startNode( * */ public com.google.longrunning.Operation updateNode( - com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNodeMethod(), getCallOptions(), request); } @@ -1896,8 +1893,9 @@ public com.google.longrunning.Operation updateNode( * */ public com.google.longrunning.Operation performMaintenance( - com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPerformMaintenanceMethod(), getCallOptions(), request); } @@ -1909,8 +1907,9 @@ public com.google.longrunning.Operation performMaintenance( * */ public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse listQueuedResources( - com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListQueuedResourcesMethod(), getCallOptions(), request); } @@ -1922,8 +1921,9 @@ public com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse listQueuedResou * */ public com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResource( - com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetQueuedResourceMethod(), getCallOptions(), request); } @@ -1935,8 +1935,9 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource getQueuedResource( * */ public com.google.longrunning.Operation createQueuedResource( - com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateQueuedResourceMethod(), getCallOptions(), request); } @@ -1948,8 +1949,9 @@ public com.google.longrunning.Operation createQueuedResource( * */ public com.google.longrunning.Operation deleteQueuedResource( - com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteQueuedResourceMethod(), getCallOptions(), request); } @@ -1961,8 +1963,9 @@ public com.google.longrunning.Operation deleteQueuedResource( * */ public com.google.longrunning.Operation resetQueuedResource( - com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetQueuedResourceMethod(), getCallOptions(), request); } @@ -1974,8 +1977,9 @@ public com.google.longrunning.Operation resetQueuedResource( * */ public com.google.longrunning.Operation performMaintenanceQueuedResource( - com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPerformMaintenanceQueuedResourceMethod(), getCallOptions(), request); } @@ -1987,8 +1991,9 @@ public com.google.longrunning.Operation performMaintenanceQueuedResource( * */ public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse generateServiceIdentity( - com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateServiceIdentityMethod(), getCallOptions(), request); } @@ -2000,8 +2005,9 @@ public com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse generateSer * */ public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse listAcceleratorTypes( - com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAcceleratorTypesMethod(), getCallOptions(), request); } @@ -2013,8 +2019,9 @@ public com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse listAccelerato * */ public com.google.cloud.tpu.v2alpha1.AcceleratorType getAcceleratorType( - com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAcceleratorTypeMethod(), getCallOptions(), request); } @@ -2026,8 +2033,9 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorType getAcceleratorType( * */ public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse listRuntimeVersions( - com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListRuntimeVersionsMethod(), getCallOptions(), request); } @@ -2039,8 +2047,9 @@ public com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse listRuntimeVers * */ public com.google.cloud.tpu.v2alpha1.RuntimeVersion getRuntimeVersion( - com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetRuntimeVersionMethod(), getCallOptions(), request); } @@ -2052,8 +2061,9 @@ public com.google.cloud.tpu.v2alpha1.RuntimeVersion getRuntimeVersion( * */ public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse getGuestAttributes( - com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGuestAttributesMethod(), getCallOptions(), request); } @@ -2065,8 +2075,9 @@ public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse getGuestAttribut * */ public com.google.cloud.tpu.v2alpha1.ListReservationsResponse listReservations( - com.google.cloud.tpu.v2alpha1.ListReservationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.ListReservationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReservationsMethod(), getCallOptions(), request); } @@ -2078,8 +2089,9 @@ public com.google.cloud.tpu.v2alpha1.ListReservationsResponse listReservations( * */ public com.google.longrunning.Operation simulateMaintenanceEvent( - com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSimulateMaintenanceEventMethod(), getCallOptions(), request); } } diff --git a/java-trace/README.md b/java-trace/README.md index 6c2f38283b45..3002a1018ba0 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.77.0' +implementation 'com.google.cloud:google-cloud-trace:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-trace/grpc-google-cloud-trace-v1/src/main/java/com/google/devtools/cloudtrace/v1/TraceServiceGrpc.java b/java-trace/grpc-google-cloud-trace-v1/src/main/java/com/google/devtools/cloudtrace/v1/TraceServiceGrpc.java index ad08e8b3ba36..2e998b94b25b 100644 --- a/java-trace/grpc-google-cloud-trace-v1/src/main/java/com/google/devtools/cloudtrace/v1/TraceServiceGrpc.java +++ b/java-trace/grpc-google-cloud-trace-v1/src/main/java/com/google/devtools/cloudtrace/v1/TraceServiceGrpc.java @@ -28,9 +28,6 @@ * may span multiple services. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/cloudtrace/v1/trace.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TraceServiceGrpc { @@ -408,8 +405,9 @@ protected TraceServiceBlockingV2Stub build( * */ public com.google.devtools.cloudtrace.v1.ListTracesResponse listTraces( - com.google.devtools.cloudtrace.v1.ListTracesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.cloudtrace.v1.ListTracesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTracesMethod(), getCallOptions(), request); } @@ -421,8 +419,8 @@ public com.google.devtools.cloudtrace.v1.ListTracesResponse listTraces( * */ public com.google.devtools.cloudtrace.v1.Trace getTrace( - com.google.devtools.cloudtrace.v1.GetTraceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.cloudtrace.v1.GetTraceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTraceMethod(), getCallOptions(), request); } @@ -438,8 +436,9 @@ public com.google.devtools.cloudtrace.v1.Trace getTrace( * */ public com.google.protobuf.Empty patchTraces( - com.google.devtools.cloudtrace.v1.PatchTracesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.cloudtrace.v1.PatchTracesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPatchTracesMethod(), getCallOptions(), request); } } diff --git a/java-trace/grpc-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/TraceServiceGrpc.java b/java-trace/grpc-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/TraceServiceGrpc.java index 9bb14e7bc44e..8826030453b4 100644 --- a/java-trace/grpc-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/TraceServiceGrpc.java +++ b/java-trace/grpc-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/TraceServiceGrpc.java @@ -28,9 +28,6 @@ * A single trace can contain spans from multiple services. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/devtools/cloudtrace/v2/tracing.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TraceServiceGrpc { @@ -325,8 +322,9 @@ protected TraceServiceBlockingV2Stub build( * */ public com.google.protobuf.Empty batchWriteSpans( - com.google.devtools.cloudtrace.v2.BatchWriteSpansRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.cloudtrace.v2.BatchWriteSpansRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchWriteSpansMethod(), getCallOptions(), request); } @@ -338,8 +336,8 @@ public com.google.protobuf.Empty batchWriteSpans( * */ public com.google.devtools.cloudtrace.v2.Span createSpan( - com.google.devtools.cloudtrace.v2.Span request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.devtools.cloudtrace.v2.Span request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSpanMethod(), getCallOptions(), request); } } diff --git a/java-translate/README.md b/java-translate/README.md index 6924aa25897a..bbd8c20e6d77 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.77.0' +implementation 'com.google.cloud:google-cloud-translate:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.78.0" ``` ## Authentication @@ -271,7 +271,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java index b713b6f0958e..daf38f0e87a6 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java @@ -259,6 +259,20 @@ * * * + * + *

                                              RefineText + *

                                              Refines the input translated text to improve the quality. + * + *

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

                                              + *
                                                + *
                                              • refineText(RefineTextRequest request) + *

                                              + *

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

                                              + *
                                                + *
                                              • refineTextCallable() + *

                                              + * + * * * *

                                              See the individual methods for example code. @@ -805,7 +819,7 @@ public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesReque * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { * TranslateDocumentRequest request = * TranslateDocumentRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setSourceLanguageCode("sourceLanguageCode1645917472") * .setTargetLanguageCode("targetLanguageCode-106414698") * .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) @@ -844,7 +858,7 @@ public final TranslateDocumentResponse translateDocument(TranslateDocumentReques * try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { * TranslateDocumentRequest request = * TranslateDocumentRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setSourceLanguageCode("sourceLanguageCode1645917472") * .setTargetLanguageCode("targetLanguageCode-106414698") * .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) @@ -1161,6 +1175,7 @@ public final UnaryCallable batchTranslateT * .setCustomizedAttribution("customizedAttribution557650238") * .setEnableShadowRemovalNativePdf(true) * .setEnableRotationCorrection(true) + * .setPdfNativeOnly(true) * .build(); * BatchTranslateDocumentResponse response = * translationServiceClient.batchTranslateDocumentAsync(request).get(); @@ -1207,6 +1222,7 @@ public final UnaryCallable batchTranslateT * .setCustomizedAttribution("customizedAttribution557650238") * .setEnableShadowRemovalNativePdf(true) * .setEnableRotationCorrection(true) + * .setPdfNativeOnly(true) * .build(); * OperationFuture future = * translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request); @@ -1255,6 +1271,7 @@ public final UnaryCallable batchTranslateT * .setCustomizedAttribution("customizedAttribution557650238") * .setEnableShadowRemovalNativePdf(true) * .setEnableRotationCorrection(true) + * .setPdfNativeOnly(true) * .build(); * ApiFuture future = * translationServiceClient.batchTranslateDocumentCallable().futureCall(request); @@ -1878,6 +1895,68 @@ public final UnaryCallable deleteGlossaryCalla return stub.deleteGlossaryCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Refines the input translated text to improve the quality. + * + *

                                              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 (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
                                              +   *   RefineTextRequest request =
                                              +   *       RefineTextRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .addAllRefinementEntries(new ArrayList())
                                              +   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
                                              +   *           .setTargetLanguageCode("targetLanguageCode-106414698")
                                              +   *           .build();
                                              +   *   RefineTextResponse response = translationServiceClient.refineText(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 RefineTextResponse refineText(RefineTextRequest request) { + return refineTextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Refines the input translated text to improve the quality. + * + *

                                              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 (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
                                              +   *   RefineTextRequest request =
                                              +   *       RefineTextRequest.newBuilder()
                                              +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                              +   *           .addAllRefinementEntries(new ArrayList())
                                              +   *           .setSourceLanguageCode("sourceLanguageCode1645917472")
                                              +   *           .setTargetLanguageCode("targetLanguageCode-106414698")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       translationServiceClient.refineTextCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   RefineTextResponse response = future.get();
                                              +   * }
                                              +   * }
                                              + */ + public final UnaryCallable refineTextCallable() { + return stub.refineTextCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java index 2a4def04fcf6..c5735af583a5 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java @@ -204,6 +204,11 @@ public UnaryCallSettings deleteGlossarySetting return ((TranslationServiceStubSettings) getStubSettings()).deleteGlossaryOperationSettings(); } + /** Returns the object with the settings used for calls to refineText. */ + public UnaryCallSettings refineTextSettings() { + return ((TranslationServiceStubSettings) getStubSettings()).refineTextSettings(); + } + public static final TranslationServiceSettings create(TranslationServiceStubSettings stub) throws IOException { return new TranslationServiceSettings.Builder(stub.toBuilder()).build(); @@ -403,6 +408,11 @@ public UnaryCallSettings.Builder deleteGlossar return getStubSettingsBuilder().deleteGlossaryOperationSettings(); } + /** Returns the builder for the settings used for calls to refineText. */ + public UnaryCallSettings.Builder refineTextSettings() { + return getStubSettingsBuilder().refineTextSettings(); + } + @Override public TranslationServiceSettings build() throws IOException { return new TranslationServiceSettings(this); diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json index 5cf5bb9020d7..02fe97de5b87 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json @@ -34,6 +34,9 @@ "ListGlossaries": { "methods": ["listGlossaries", "listGlossaries", "listGlossaries", "listGlossariesPagedCallable", "listGlossariesCallable"] }, + "RefineText": { + "methods": ["refineText", "refineTextCallable"] + }, "TranslateDocument": { "methods": ["translateDocument", "translateDocumentCallable"] }, diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java index 84e88cb2f1d2..c2783a1faf43 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java @@ -45,6 +45,8 @@ import com.google.cloud.translate.v3beta1.Glossary; import com.google.cloud.translate.v3beta1.ListGlossariesRequest; import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.RefineTextRequest; +import com.google.cloud.translate.v3beta1.RefineTextResponse; import com.google.cloud.translate.v3beta1.SupportedLanguages; import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; @@ -188,6 +190,16 @@ public class GrpcTranslationServiceStub extends TranslationServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + refineTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/RefineText") + .setRequestMarshaller(ProtoUtils.marshaller(RefineTextRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RefineTextResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable translateTextCallable; private final UnaryCallable detectLanguageCallable; private final UnaryCallable @@ -216,6 +228,7 @@ public class GrpcTranslationServiceStub extends TranslationServiceStub { private final OperationCallable< DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> deleteGlossaryOperationCallable; + private final UnaryCallable refineTextCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -366,6 +379,16 @@ protected GrpcTranslationServiceStub( return builder.build(); }) .build(); + GrpcCallSettings refineTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(refineTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.translateTextCallable = callableFactory.createUnaryCallable( @@ -432,6 +455,9 @@ protected GrpcTranslationServiceStub( settings.deleteGlossaryOperationSettings(), clientContext, operationsStub); + this.refineTextCallable = + callableFactory.createUnaryCallable( + refineTextTransportSettings, settings.refineTextSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -527,6 +553,11 @@ public UnaryCallable deleteGlossaryCallable() return deleteGlossaryOperationCallable; } + @Override + public UnaryCallable refineTextCallable() { + return refineTextCallable; + } + @Override public final void close() { try { diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java index 87aae19807e5..d29a44d1fe45 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/HttpJsonTranslationServiceStub.java @@ -53,6 +53,8 @@ import com.google.cloud.translate.v3beta1.Glossary; import com.google.cloud.translate.v3beta1.ListGlossariesRequest; import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.RefineTextRequest; +import com.google.cloud.translate.v3beta1.RefineTextResponse; import com.google.cloud.translate.v3beta1.SupportedLanguages; import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; @@ -478,6 +480,43 @@ public class HttpJsonTranslationServiceStub extends TranslationServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + refineTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.translation.v3beta1.TranslationService/RefineText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta1/{parent=projects/*/locations/*}:refineText", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RefineTextResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable translateTextCallable; private final UnaryCallable detectLanguageCallable; private final UnaryCallable @@ -506,6 +545,7 @@ public class HttpJsonTranslationServiceStub extends TranslationServiceStub { private final OperationCallable< DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> deleteGlossaryOperationCallable; + private final UnaryCallable refineTextCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -700,6 +740,17 @@ protected HttpJsonTranslationServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings refineTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(refineTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.translateTextCallable = callableFactory.createUnaryCallable( @@ -766,6 +817,9 @@ protected HttpJsonTranslationServiceStub( settings.deleteGlossaryOperationSettings(), clientContext, httpJsonOperationsStub); + this.refineTextCallable = + callableFactory.createUnaryCallable( + refineTextTransportSettings, settings.refineTextSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -784,6 +838,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listGlossariesMethodDescriptor); methodDescriptors.add(getGlossaryMethodDescriptor); methodDescriptors.add(deleteGlossaryMethodDescriptor); + methodDescriptors.add(refineTextMethodDescriptor); return methodDescriptors; } @@ -877,6 +932,11 @@ public UnaryCallable deleteGlossaryCallable() return deleteGlossaryOperationCallable; } + @Override + public UnaryCallable refineTextCallable() { + return refineTextCallable; + } + @Override public final void close() { try { diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java index 715c0bc33000..83676894b6f1 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java @@ -40,6 +40,8 @@ import com.google.cloud.translate.v3beta1.Glossary; import com.google.cloud.translate.v3beta1.ListGlossariesRequest; import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.RefineTextRequest; +import com.google.cloud.translate.v3beta1.RefineTextResponse; import com.google.cloud.translate.v3beta1.SupportedLanguages; import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; @@ -140,6 +142,10 @@ public UnaryCallable deleteGlossaryCallable() throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); } + public UnaryCallable refineTextCallable() { + throw new UnsupportedOperationException("Not implemented: refineTextCallable()"); + } + @Override public abstract void close(); } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java index 4ea17d22ccbd..c28891afc18b 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java @@ -66,6 +66,8 @@ import com.google.cloud.translate.v3beta1.Glossary; import com.google.cloud.translate.v3beta1.ListGlossariesRequest; import com.google.cloud.translate.v3beta1.ListGlossariesResponse; +import com.google.cloud.translate.v3beta1.RefineTextRequest; +import com.google.cloud.translate.v3beta1.RefineTextResponse; import com.google.cloud.translate.v3beta1.SupportedLanguages; import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; @@ -198,6 +200,7 @@ public class TranslationServiceStubSettings extends StubSettings deleteGlossaryOperationSettings; + private final UnaryCallSettings refineTextSettings; private static final PagedListDescriptor LIST_GLOSSARIES_PAGE_STR_DESC = @@ -335,6 +338,11 @@ public UnaryCallSettings deleteGlossarySetting return deleteGlossaryOperationSettings; } + /** Returns the object with the settings used for calls to refineText. */ + public UnaryCallSettings refineTextSettings() { + return refineTextSettings; + } + public TranslationServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -462,6 +470,7 @@ protected TranslationServiceStubSettings(Builder settingsBuilder) throws IOExcep getGlossarySettings = settingsBuilder.getGlossarySettings().build(); deleteGlossarySettings = settingsBuilder.deleteGlossarySettings().build(); deleteGlossaryOperationSettings = settingsBuilder.deleteGlossaryOperationSettings().build(); + refineTextSettings = settingsBuilder.refineTextSettings().build(); } /** Builder for TranslationServiceStubSettings. */ @@ -502,6 +511,8 @@ public static class Builder private final OperationCallSettings.Builder< DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> deleteGlossaryOperationSettings; + private final UnaryCallSettings.Builder + refineTextSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -515,6 +526,7 @@ public static class Builder ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -542,6 +554,8 @@ public static class Builder .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build(); definitions.put("retry_policy_1_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -566,6 +580,7 @@ protected Builder(ClientContext clientContext) { getGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteGlossaryOperationSettings = OperationCallSettings.newBuilder(); + refineTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -578,7 +593,8 @@ protected Builder(ClientContext clientContext) { createGlossarySettings, listGlossariesSettings, getGlossarySettings, - deleteGlossarySettings); + deleteGlossarySettings, + refineTextSettings); initDefaults(this); } @@ -601,6 +617,7 @@ protected Builder(TranslationServiceStubSettings settings) { getGlossarySettings = settings.getGlossarySettings.toBuilder(); deleteGlossarySettings = settings.deleteGlossarySettings.toBuilder(); deleteGlossaryOperationSettings = settings.deleteGlossaryOperationSettings.toBuilder(); + refineTextSettings = settings.refineTextSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -613,7 +630,8 @@ protected Builder(TranslationServiceStubSettings settings) { createGlossarySettings, listGlossariesSettings, getGlossarySettings, - deleteGlossarySettings); + deleteGlossarySettings, + refineTextSettings); } private static Builder createDefault() { @@ -691,6 +709,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder + .refineTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .batchTranslateTextOperationSettings() .setInitialCallSettings( @@ -894,6 +917,11 @@ public UnaryCallSettings.Builder deleteGlossar return deleteGlossaryOperationSettings; } + /** Returns the builder for the settings used for calls to refineText. */ + public UnaryCallSettings.Builder refineTextSettings() { + return refineTextSettings; + } + @Override public TranslationServiceStubSettings build() throws IOException { return new TranslationServiceStubSettings(this); diff --git a/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json b/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json index b7bfc410c13c..1e2697d0bd1a 100644 --- a/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json +++ b/java-translate/google-cloud-translate/src/main/resources/META-INF/native-image/com.google.cloud.translate.v3beta1/reflect-config.json @@ -1007,6 +1007,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.translate.v3beta1.RefineTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.RefineTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.RefineTextResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.RefineTextResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.RefinementEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.translate.v3beta1.RefinementEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.translate.v3beta1.SupportedLanguage", "queryAllDeclaredConstructors": true, diff --git a/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java b/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java index ec5d60764054..de33e18d702d 100644 --- a/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java +++ b/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java @@ -270,4 +270,25 @@ public void deleteGlossary( Exception.class.getName()))); } } + + @Override + public void refineText( + RefineTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RefineTextResponse) { + requests.add(request); + responseObserver.onNext(((RefineTextResponse) 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 RefineText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RefineTextResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java b/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java index ab44f84d1c8e..351136ffeb12 100644 --- a/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java +++ b/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientHttpJsonTest.java @@ -349,7 +349,7 @@ public void translateDocumentTest() throws Exception { TranslateDocumentRequest request = TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceLanguageCode("sourceLanguageCode1645917472") .setTargetLanguageCode("targetLanguageCode-106414698") .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) @@ -391,7 +391,7 @@ public void translateDocumentExceptionTest() throws Exception { try { TranslateDocumentRequest request = TranslateDocumentRequest.newBuilder() - .setParent("projects/project-5833/locations/location-5833") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceLanguageCode("sourceLanguageCode1645917472") .setTargetLanguageCode("targetLanguageCode-106414698") .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) @@ -1041,4 +1041,58 @@ public void deleteGlossaryExceptionTest2() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void refineTextTest() throws Exception { + RefineTextResponse expectedResponse = + RefineTextResponse.newBuilder().addAllRefinedTranslations(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + RefineTextRequest request = + RefineTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllRefinementEntries(new ArrayList()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .build(); + + RefineTextResponse actualResponse = client.refineText(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 refineTextExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RefineTextRequest request = + RefineTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllRefinementEntries(new ArrayList()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .build(); + client.refineText(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java b/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java index 384e6c8fe2be..c388fa802248 100644 --- a/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java +++ b/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java @@ -340,7 +340,7 @@ public void translateDocumentTest() throws Exception { TranslateDocumentRequest request = TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceLanguageCode("sourceLanguageCode1645917472") .setTargetLanguageCode("targetLanguageCode-106414698") .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) @@ -391,7 +391,7 @@ public void translateDocumentExceptionTest() throws Exception { try { TranslateDocumentRequest request = TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceLanguageCode("sourceLanguageCode1645917472") .setTargetLanguageCode("targetLanguageCode-106414698") .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) @@ -1018,4 +1018,56 @@ public void deleteGlossaryExceptionTest2() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void refineTextTest() throws Exception { + RefineTextResponse expectedResponse = + RefineTextResponse.newBuilder().addAllRefinedTranslations(new ArrayList()).build(); + mockTranslationService.addResponse(expectedResponse); + + RefineTextRequest request = + RefineTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllRefinementEntries(new ArrayList()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .build(); + + RefineTextResponse actualResponse = client.refineText(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTranslationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RefineTextRequest actualRequest = ((RefineTextRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals( + request.getRefinementEntriesList(), actualRequest.getRefinementEntriesList()); + Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); + Assert.assertEquals(request.getTargetLanguageCode(), actualRequest.getTargetLanguageCode()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void refineTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTranslationService.addException(exception); + + try { + RefineTextRequest request = + RefineTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllRefinementEntries(new ArrayList()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .build(); + client.refineText(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java index e113138ff918..79b645429097 100644 --- a/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java +++ b/java-translate/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java @@ -24,9 +24,6 @@ * Provides natural language translation operations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3/translation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TranslationServiceGrpc { @@ -3128,8 +3125,8 @@ protected TranslationServiceBlockingV2Stub build( * */ public com.google.cloud.translate.v3.TranslateTextResponse translateText( - com.google.cloud.translate.v3.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.TranslateTextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTranslateTextMethod(), getCallOptions(), request); } @@ -3141,8 +3138,8 @@ public com.google.cloud.translate.v3.TranslateTextResponse translateText( * */ public com.google.cloud.translate.v3.RomanizeTextResponse romanizeText( - com.google.cloud.translate.v3.RomanizeTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.RomanizeTextRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRomanizeTextMethod(), getCallOptions(), request); } @@ -3154,8 +3151,9 @@ public com.google.cloud.translate.v3.RomanizeTextResponse romanizeText( * */ public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage( - com.google.cloud.translate.v3.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.DetectLanguageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetectLanguageMethod(), getCallOptions(), request); } @@ -3167,8 +3165,9 @@ public com.google.cloud.translate.v3.DetectLanguageResponse detectLanguage( * */ public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages( - com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.GetSupportedLanguagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); } @@ -3180,8 +3179,9 @@ public com.google.cloud.translate.v3.SupportedLanguages getSupportedLanguages( * */ public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument( - com.google.cloud.translate.v3.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.TranslateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); } @@ -3198,8 +3198,9 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse translateDocument * */ public com.google.longrunning.Operation batchTranslateText( - com.google.cloud.translate.v3.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.BatchTranslateTextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); } @@ -3216,8 +3217,9 @@ public com.google.longrunning.Operation batchTranslateText( * */ public com.google.longrunning.Operation batchTranslateDocument( - com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.BatchTranslateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); } @@ -3230,8 +3232,9 @@ public com.google.longrunning.Operation batchTranslateDocument( * */ public com.google.longrunning.Operation createGlossary( - com.google.cloud.translate.v3.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.CreateGlossaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); } @@ -3244,8 +3247,9 @@ public com.google.longrunning.Operation createGlossary( * */ public com.google.longrunning.Operation updateGlossary( - com.google.cloud.translate.v3.UpdateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.UpdateGlossaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGlossaryMethod(), getCallOptions(), request); } @@ -3258,8 +3262,9 @@ public com.google.longrunning.Operation updateGlossary( * */ public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries( - com.google.cloud.translate.v3.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ListGlossariesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGlossariesMethod(), getCallOptions(), request); } @@ -3272,8 +3277,8 @@ public com.google.cloud.translate.v3.ListGlossariesResponse listGlossaries( * */ public com.google.cloud.translate.v3.Glossary getGlossary( - com.google.cloud.translate.v3.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.GetGlossaryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGlossaryMethod(), getCallOptions(), request); } @@ -3287,8 +3292,9 @@ public com.google.cloud.translate.v3.Glossary getGlossary( * */ public com.google.longrunning.Operation deleteGlossary( - com.google.cloud.translate.v3.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.DeleteGlossaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); } @@ -3300,8 +3306,9 @@ public com.google.longrunning.Operation deleteGlossary( * */ public com.google.cloud.translate.v3.GlossaryEntry getGlossaryEntry( - com.google.cloud.translate.v3.GetGlossaryEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.GetGlossaryEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGlossaryEntryMethod(), getCallOptions(), request); } @@ -3313,8 +3320,9 @@ public com.google.cloud.translate.v3.GlossaryEntry getGlossaryEntry( * */ public com.google.cloud.translate.v3.ListGlossaryEntriesResponse listGlossaryEntries( - com.google.cloud.translate.v3.ListGlossaryEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ListGlossaryEntriesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGlossaryEntriesMethod(), getCallOptions(), request); } @@ -3326,8 +3334,9 @@ public com.google.cloud.translate.v3.ListGlossaryEntriesResponse listGlossaryEnt * */ public com.google.cloud.translate.v3.GlossaryEntry createGlossaryEntry( - com.google.cloud.translate.v3.CreateGlossaryEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.CreateGlossaryEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGlossaryEntryMethod(), getCallOptions(), request); } @@ -3339,8 +3348,9 @@ public com.google.cloud.translate.v3.GlossaryEntry createGlossaryEntry( * */ public com.google.cloud.translate.v3.GlossaryEntry updateGlossaryEntry( - com.google.cloud.translate.v3.UpdateGlossaryEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.UpdateGlossaryEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGlossaryEntryMethod(), getCallOptions(), request); } @@ -3352,8 +3362,9 @@ public com.google.cloud.translate.v3.GlossaryEntry updateGlossaryEntry( * */ public com.google.protobuf.Empty deleteGlossaryEntry( - com.google.cloud.translate.v3.DeleteGlossaryEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.DeleteGlossaryEntryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGlossaryEntryMethod(), getCallOptions(), request); } @@ -3365,8 +3376,8 @@ public com.google.protobuf.Empty deleteGlossaryEntry( * */ public com.google.longrunning.Operation createDataset( - com.google.cloud.translate.v3.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.CreateDatasetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatasetMethod(), getCallOptions(), request); } @@ -3378,8 +3389,8 @@ public com.google.longrunning.Operation createDataset( * */ public com.google.cloud.translate.v3.Dataset getDataset( - com.google.cloud.translate.v3.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.GetDatasetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatasetMethod(), getCallOptions(), request); } @@ -3391,8 +3402,8 @@ public com.google.cloud.translate.v3.Dataset getDataset( * */ public com.google.cloud.translate.v3.ListDatasetsResponse listDatasets( - com.google.cloud.translate.v3.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ListDatasetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatasetsMethod(), getCallOptions(), request); } @@ -3404,8 +3415,8 @@ public com.google.cloud.translate.v3.ListDatasetsResponse listDatasets( * */ public com.google.longrunning.Operation deleteDataset( - com.google.cloud.translate.v3.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.DeleteDatasetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); } @@ -3417,8 +3428,9 @@ public com.google.longrunning.Operation deleteDataset( * */ public com.google.cloud.translate.v3.AdaptiveMtDataset createAdaptiveMtDataset( - com.google.cloud.translate.v3.CreateAdaptiveMtDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.CreateAdaptiveMtDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAdaptiveMtDatasetMethod(), getCallOptions(), request); } @@ -3431,8 +3443,9 @@ public com.google.cloud.translate.v3.AdaptiveMtDataset createAdaptiveMtDataset( * */ public com.google.protobuf.Empty deleteAdaptiveMtDataset( - com.google.cloud.translate.v3.DeleteAdaptiveMtDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.DeleteAdaptiveMtDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAdaptiveMtDatasetMethod(), getCallOptions(), request); } @@ -3444,8 +3457,9 @@ public com.google.protobuf.Empty deleteAdaptiveMtDataset( * */ public com.google.cloud.translate.v3.AdaptiveMtDataset getAdaptiveMtDataset( - com.google.cloud.translate.v3.GetAdaptiveMtDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.GetAdaptiveMtDatasetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAdaptiveMtDatasetMethod(), getCallOptions(), request); } @@ -3457,8 +3471,9 @@ public com.google.cloud.translate.v3.AdaptiveMtDataset getAdaptiveMtDataset( * */ public com.google.cloud.translate.v3.ListAdaptiveMtDatasetsResponse listAdaptiveMtDatasets( - com.google.cloud.translate.v3.ListAdaptiveMtDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ListAdaptiveMtDatasetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAdaptiveMtDatasetsMethod(), getCallOptions(), request); } @@ -3470,8 +3485,9 @@ public com.google.cloud.translate.v3.ListAdaptiveMtDatasetsResponse listAdaptive * */ public com.google.cloud.translate.v3.AdaptiveMtTranslateResponse adaptiveMtTranslate( - com.google.cloud.translate.v3.AdaptiveMtTranslateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.AdaptiveMtTranslateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAdaptiveMtTranslateMethod(), getCallOptions(), request); } @@ -3483,8 +3499,9 @@ public com.google.cloud.translate.v3.AdaptiveMtTranslateResponse adaptiveMtTrans * */ public com.google.cloud.translate.v3.AdaptiveMtFile getAdaptiveMtFile( - com.google.cloud.translate.v3.GetAdaptiveMtFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.GetAdaptiveMtFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAdaptiveMtFileMethod(), getCallOptions(), request); } @@ -3496,8 +3513,9 @@ public com.google.cloud.translate.v3.AdaptiveMtFile getAdaptiveMtFile( * */ public com.google.protobuf.Empty deleteAdaptiveMtFile( - com.google.cloud.translate.v3.DeleteAdaptiveMtFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.DeleteAdaptiveMtFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAdaptiveMtFileMethod(), getCallOptions(), request); } @@ -3510,8 +3528,9 @@ public com.google.protobuf.Empty deleteAdaptiveMtFile( * */ public com.google.cloud.translate.v3.ImportAdaptiveMtFileResponse importAdaptiveMtFile( - com.google.cloud.translate.v3.ImportAdaptiveMtFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ImportAdaptiveMtFileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportAdaptiveMtFileMethod(), getCallOptions(), request); } @@ -3523,8 +3542,9 @@ public com.google.cloud.translate.v3.ImportAdaptiveMtFileResponse importAdaptive * */ public com.google.cloud.translate.v3.ListAdaptiveMtFilesResponse listAdaptiveMtFiles( - com.google.cloud.translate.v3.ListAdaptiveMtFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ListAdaptiveMtFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAdaptiveMtFilesMethod(), getCallOptions(), request); } @@ -3536,8 +3556,9 @@ public com.google.cloud.translate.v3.ListAdaptiveMtFilesResponse listAdaptiveMtF * */ public com.google.cloud.translate.v3.ListAdaptiveMtSentencesResponse listAdaptiveMtSentences( - com.google.cloud.translate.v3.ListAdaptiveMtSentencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ListAdaptiveMtSentencesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAdaptiveMtSentencesMethod(), getCallOptions(), request); } @@ -3549,8 +3570,8 @@ public com.google.cloud.translate.v3.ListAdaptiveMtSentencesResponse listAdaptiv * */ public com.google.longrunning.Operation importData( - com.google.cloud.translate.v3.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ImportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportDataMethod(), getCallOptions(), request); } @@ -3562,8 +3583,8 @@ public com.google.longrunning.Operation importData( * */ public com.google.longrunning.Operation exportData( - com.google.cloud.translate.v3.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ExportDataRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExportDataMethod(), getCallOptions(), request); } @@ -3575,8 +3596,8 @@ public com.google.longrunning.Operation exportData( * */ public com.google.cloud.translate.v3.ListExamplesResponse listExamples( - com.google.cloud.translate.v3.ListExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ListExamplesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExamplesMethod(), getCallOptions(), request); } @@ -3588,8 +3609,8 @@ public com.google.cloud.translate.v3.ListExamplesResponse listExamples( * */ public com.google.longrunning.Operation createModel( - com.google.cloud.translate.v3.CreateModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.CreateModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateModelMethod(), getCallOptions(), request); } @@ -3601,8 +3622,8 @@ public com.google.longrunning.Operation createModel( * */ public com.google.cloud.translate.v3.ListModelsResponse listModels( - com.google.cloud.translate.v3.ListModelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.ListModelsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListModelsMethod(), getCallOptions(), request); } @@ -3614,8 +3635,8 @@ public com.google.cloud.translate.v3.ListModelsResponse listModels( * */ public com.google.cloud.translate.v3.Model getModel( - com.google.cloud.translate.v3.GetModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.GetModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetModelMethod(), getCallOptions(), request); } @@ -3627,8 +3648,8 @@ public com.google.cloud.translate.v3.Model getModel( * */ public com.google.longrunning.Operation deleteModel( - com.google.cloud.translate.v3.DeleteModelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3.DeleteModelRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } } diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java index 39536cbf1a73..f20feceb0d8f 100644 --- a/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java +++ b/java-translate/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java @@ -24,9 +24,6 @@ * Provides natural language translation operations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/translate/v3beta1/translation_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TranslationServiceGrpc { @@ -511,6 +508,53 @@ private TranslationServiceGrpc() {} return getDeleteGlossaryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.RefineTextRequest, + com.google.cloud.translate.v3beta1.RefineTextResponse> + getRefineTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RefineText", + requestType = com.google.cloud.translate.v3beta1.RefineTextRequest.class, + responseType = com.google.cloud.translate.v3beta1.RefineTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.RefineTextRequest, + com.google.cloud.translate.v3beta1.RefineTextResponse> + getRefineTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.translate.v3beta1.RefineTextRequest, + com.google.cloud.translate.v3beta1.RefineTextResponse> + getRefineTextMethod; + if ((getRefineTextMethod = TranslationServiceGrpc.getRefineTextMethod) == null) { + synchronized (TranslationServiceGrpc.class) { + if ((getRefineTextMethod = TranslationServiceGrpc.getRefineTextMethod) == null) { + TranslationServiceGrpc.getRefineTextMethod = + getRefineTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RefineText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.RefineTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.translate.v3beta1.RefineTextResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TranslationServiceMethodDescriptorSupplier("RefineText")) + .build(); + } + } + } + return getRefineTextMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static TranslationServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -733,6 +777,20 @@ default void deleteGlossary( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteGlossaryMethod(), responseObserver); } + + /** + * + * + *
                                              +     * Refines the input translated text to improve the quality.
                                              +     * 
                                              + */ + default void refineText( + com.google.cloud.translate.v3beta1.RefineTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRefineTextMethod(), responseObserver); + } } /** @@ -949,6 +1007,21 @@ public void deleteGlossary( request, responseObserver); } + + /** + * + * + *
                                              +     * Refines the input translated text to improve the quality.
                                              +     * 
                                              + */ + public void refineText( + com.google.cloud.translate.v3beta1.RefineTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRefineTextMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -979,8 +1052,9 @@ protected TranslationServiceBlockingV2Stub build( * */ public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText( - com.google.cloud.translate.v3beta1.TranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.TranslateTextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTranslateTextMethod(), getCallOptions(), request); } @@ -992,8 +1066,9 @@ public com.google.cloud.translate.v3beta1.TranslateTextResponse translateText( * */ public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage( - com.google.cloud.translate.v3beta1.DetectLanguageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.DetectLanguageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetectLanguageMethod(), getCallOptions(), request); } @@ -1005,8 +1080,9 @@ public com.google.cloud.translate.v3beta1.DetectLanguageResponse detectLanguage( * */ public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguages( - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSupportedLanguagesMethod(), getCallOptions(), request); } @@ -1018,8 +1094,9 @@ public com.google.cloud.translate.v3beta1.SupportedLanguages getSupportedLanguag * */ public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDocument( - com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.TranslateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTranslateDocumentMethod(), getCallOptions(), request); } @@ -1036,8 +1113,9 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentResponse translateDoc * */ public com.google.longrunning.Operation batchTranslateText( - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchTranslateTextMethod(), getCallOptions(), request); } @@ -1054,8 +1132,9 @@ public com.google.longrunning.Operation batchTranslateText( * */ public com.google.longrunning.Operation batchTranslateDocument( - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchTranslateDocumentMethod(), getCallOptions(), request); } @@ -1068,8 +1147,9 @@ public com.google.longrunning.Operation batchTranslateDocument( * */ public com.google.longrunning.Operation createGlossary( - com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.CreateGlossaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGlossaryMethod(), getCallOptions(), request); } @@ -1082,8 +1162,9 @@ public com.google.longrunning.Operation createGlossary( * */ public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries( - com.google.cloud.translate.v3beta1.ListGlossariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.ListGlossariesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGlossariesMethod(), getCallOptions(), request); } @@ -1096,8 +1177,9 @@ public com.google.cloud.translate.v3beta1.ListGlossariesResponse listGlossaries( * */ public com.google.cloud.translate.v3beta1.Glossary getGlossary( - com.google.cloud.translate.v3beta1.GetGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.GetGlossaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGlossaryMethod(), getCallOptions(), request); } @@ -1111,10 +1193,25 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossary( * */ public com.google.longrunning.Operation deleteGlossary( - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); } + + /** + * + * + *
                                              +     * Refines the input translated text to improve the quality.
                                              +     * 
                                              + */ + public com.google.cloud.translate.v3beta1.RefineTextResponse refineText( + com.google.cloud.translate.v3beta1.RefineTextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRefineTextMethod(), getCallOptions(), request); + } } /** @@ -1281,6 +1378,19 @@ public com.google.longrunning.Operation deleteGlossary( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteGlossaryMethod(), getCallOptions(), request); } + + /** + * + * + *
                                              +     * Refines the input translated text to improve the quality.
                                              +     * 
                                              + */ + public com.google.cloud.translate.v3beta1.RefineTextResponse refineText( + com.google.cloud.translate.v3beta1.RefineTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRefineTextMethod(), getCallOptions(), request); + } } /** @@ -1454,6 +1564,20 @@ protected TranslationServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteGlossaryMethod(), getCallOptions()), request); } + + /** + * + * + *
                                              +     * Refines the input translated text to improve the quality.
                                              +     * 
                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.translate.v3beta1.RefineTextResponse> + refineText(com.google.cloud.translate.v3beta1.RefineTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRefineTextMethod(), getCallOptions()), request); + } } private static final int METHODID_TRANSLATE_TEXT = 0; @@ -1466,6 +1590,7 @@ protected TranslationServiceFutureStub build( private static final int METHODID_LIST_GLOSSARIES = 7; private static final int METHODID_GET_GLOSSARY = 8; private static final int METHODID_DELETE_GLOSSARY = 9; + private static final int METHODID_REFINE_TEXT = 10; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1544,6 +1669,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_REFINE_TEXT: + serviceImpl.refineText( + (com.google.cloud.translate.v3beta1.RefineTextRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -1627,6 +1758,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_GLOSSARY))) + .addMethod( + getRefineTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.RefineTextRequest, + com.google.cloud.translate.v3beta1.RefineTextResponse>( + service, METHODID_REFINE_TEXT))) .build(); } @@ -1688,6 +1826,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListGlossariesMethod()) .addMethod(getGetGlossaryMethod()) .addMethod(getDeleteGlossaryMethod()) + .addMethod(getRefineTextMethod()) .build(); } } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java index 638b1f1875f9..280ced03a578 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java @@ -1018,6 +1018,25 @@ public boolean getEnableRotationCorrection() { return enableRotationCorrection_; } + public static final int PDF_NATIVE_ONLY_FIELD_NUMBER = 13; + private boolean pdfNativeOnly_ = false; + + /** + * + * + *
                                              +   * Optional. If true, only native pdf pages will be translated.
                                              +   * 
                                              + * + * bool pdf_native_only = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pdfNativeOnly. + */ + @java.lang.Override + public boolean getPdfNativeOnly() { + return pdfNativeOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1065,6 +1084,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableRotationCorrection_ != false) { output.writeBool(12, enableRotationCorrection_); } + if (pdfNativeOnly_ != false) { + output.writeBool(13, pdfNativeOnly_); + } getUnknownFields().writeTo(output); } @@ -1137,6 +1159,9 @@ public int getSerializedSize() { if (enableRotationCorrection_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableRotationCorrection_); } + if (pdfNativeOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, pdfNativeOnly_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1167,6 +1192,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCustomizedAttribution().equals(other.getCustomizedAttribution())) return false; if (getEnableShadowRemovalNativePdf() != other.getEnableShadowRemovalNativePdf()) return false; if (getEnableRotationCorrection() != other.getEnableRotationCorrection()) return false; + if (getPdfNativeOnly() != other.getPdfNativeOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1213,6 +1239,8 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableShadowRemovalNativePdf()); hash = (37 * hash) + ENABLE_ROTATION_CORRECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRotationCorrection()); + hash = (37 * hash) + PDF_NATIVE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPdfNativeOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1415,6 +1443,7 @@ public Builder clear() { customizedAttribution_ = ""; enableShadowRemovalNativePdf_ = false; enableRotationCorrection_ = false; + pdfNativeOnly_ = false; return this; } @@ -1504,6 +1533,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000400) != 0)) { result.enableRotationCorrection_ = enableRotationCorrection_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.pdfNativeOnly_ = pdfNativeOnly_; + } result.bitField0_ |= to_bitField0_; } @@ -1622,6 +1654,9 @@ public Builder mergeFrom( if (other.getEnableRotationCorrection() != false) { setEnableRotationCorrection(other.getEnableRotationCorrection()); } + if (other.getPdfNativeOnly() != false) { + setPdfNativeOnly(other.getPdfNativeOnly()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1745,6 +1780,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 96 + case 104: + { + pdfNativeOnly_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4032,6 +4073,62 @@ public Builder clearEnableRotationCorrection() { return this; } + private boolean pdfNativeOnly_; + + /** + * + * + *
                                              +     * Optional. If true, only native pdf pages will be translated.
                                              +     * 
                                              + * + * bool pdf_native_only = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pdfNativeOnly. + */ + @java.lang.Override + public boolean getPdfNativeOnly() { + return pdfNativeOnly_; + } + + /** + * + * + *
                                              +     * Optional. If true, only native pdf pages will be translated.
                                              +     * 
                                              + * + * bool pdf_native_only = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pdfNativeOnly to set. + * @return This builder for chaining. + */ + public Builder setPdfNativeOnly(boolean value) { + + pdfNativeOnly_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. If true, only native pdf pages will be translated.
                                              +     * 
                                              + * + * bool pdf_native_only = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPdfNativeOnly() { + bitField0_ = (bitField0_ & ~0x00000800); + pdfNativeOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java index 5f6a43ed91fd..d011a42730c6 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java @@ -689,4 +689,17 @@ java.lang.String getFormatConversionsOrDefault( * @return The enableRotationCorrection. */ boolean getEnableRotationCorrection(); + + /** + * + * + *
                                              +   * Optional. If true, only native pdf pages will be translated.
                                              +   * 
                                              + * + * bool pdf_native_only = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pdfNativeOnly. + */ + boolean getPdfNativeOnly(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextRequest.java new file mode 100644 index 000000000000..7c764495c312 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextRequest.java @@ -0,0 +1,1684 @@ +/* + * Copyright 2025 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! +// source: google/cloud/translate/v3beta1/translation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.translate.v3beta1; + +/** + * + * + *
                                              + * Request message for RefineText.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.translation.v3beta1.RefineTextRequest} + */ +public final class RefineTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.RefineTextRequest) + RefineTextRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RefineTextRequest.newBuilder() to construct. + private RefineTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RefineTextRequest() { + parent_ = ""; + refinementEntries_ = java.util.Collections.emptyList(); + sourceLanguageCode_ = ""; + targetLanguageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RefineTextRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.translate.v3beta1.RefineTextRequest.class, + com.google.cloud.translate.v3beta1.RefineTextRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                              +   * Required. Project or location to make a call. Must refer to a caller's
                                              +   * project.
                                              +   *
                                              +   * Format: `projects/{project-number-or-id}/locations/{location-id}`.
                                              +   *
                                              +   * For global calls, use `projects/{project-number-or-id}/locations/global` or
                                              +   * `projects/{project-number-or-id}`.
                                              +   * 
                                              + * + * + * 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. Project or location to make a call. Must refer to a caller's
                                              +   * project.
                                              +   *
                                              +   * Format: `projects/{project-number-or-id}/locations/{location-id}`.
                                              +   *
                                              +   * For global calls, use `projects/{project-number-or-id}/locations/global` or
                                              +   * `projects/{project-number-or-id}`.
                                              +   * 
                                              + * + * + * 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 REFINEMENT_ENTRIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List refinementEntries_; + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRefinementEntriesList() { + return refinementEntries_; + } + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRefinementEntriesOrBuilderList() { + return refinementEntries_; + } + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRefinementEntriesCount() { + return refinementEntries_.size(); + } + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefinementEntry getRefinementEntries(int index) { + return refinementEntries_.get(index); + } + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefinementEntryOrBuilder getRefinementEntriesOrBuilder( + int index) { + return refinementEntries_.get(index); + } + + public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceLanguageCode_ = ""; + + /** + * + * + *
                                              +   * Required. The BCP-47 language code of the source text in the request, for
                                              +   * example, "en-US".
                                              +   * 
                                              + * + * string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceLanguageCode. + */ + @java.lang.Override + public java.lang.String getSourceLanguageCode() { + java.lang.Object ref = sourceLanguageCode_; + 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(); + sourceLanguageCode_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The BCP-47 language code of the source text in the request, for
                                              +   * example, "en-US".
                                              +   * 
                                              + * + * string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + java.lang.Object ref = sourceLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetLanguageCode_ = ""; + + /** + * + * + *
                                              +   * Required. The BCP-47 language code for translation output, for example,
                                              +   * "zh-CN".
                                              +   * 
                                              + * + * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetLanguageCode. + */ + @java.lang.Override + public java.lang.String getTargetLanguageCode() { + java.lang.Object ref = targetLanguageCode_; + 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(); + targetLanguageCode_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The BCP-47 language code for translation output, for example,
                                              +   * "zh-CN".
                                              +   * 
                                              + * + * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + java.lang.Object ref = targetLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLanguageCode_ = 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < refinementEntries_.size(); i++) { + output.writeMessage(2, refinementEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetLanguageCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < refinementEntries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, refinementEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetLanguageCode_); + } + 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.translate.v3beta1.RefineTextRequest)) { + return super.equals(obj); + } + com.google.cloud.translate.v3beta1.RefineTextRequest other = + (com.google.cloud.translate.v3beta1.RefineTextRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRefinementEntriesList().equals(other.getRefinementEntriesList())) return false; + if (!getSourceLanguageCode().equals(other.getSourceLanguageCode())) return false; + if (!getTargetLanguageCode().equals(other.getTargetLanguageCode())) 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(); + if (getRefinementEntriesCount() > 0) { + hash = (37 * hash) + REFINEMENT_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getRefinementEntriesList().hashCode(); + } + hash = (37 * hash) + SOURCE_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSourceLanguageCode().hashCode(); + hash = (37 * hash) + TARGET_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getTargetLanguageCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest 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.translate.v3beta1.RefineTextRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest 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.translate.v3beta1.RefineTextRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.translate.v3beta1.RefineTextRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Request message for RefineText.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.translation.v3beta1.RefineTextRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.RefineTextRequest) + com.google.cloud.translate.v3beta1.RefineTextRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.translate.v3beta1.RefineTextRequest.class, + com.google.cloud.translate.v3beta1.RefineTextRequest.Builder.class); + } + + // Construct using com.google.cloud.translate.v3beta1.RefineTextRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (refinementEntriesBuilder_ == null) { + refinementEntries_ = java.util.Collections.emptyList(); + } else { + refinementEntries_ = null; + refinementEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + sourceLanguageCode_ = ""; + targetLanguageCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefineTextRequest getDefaultInstanceForType() { + return com.google.cloud.translate.v3beta1.RefineTextRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefineTextRequest build() { + com.google.cloud.translate.v3beta1.RefineTextRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefineTextRequest buildPartial() { + com.google.cloud.translate.v3beta1.RefineTextRequest result = + new com.google.cloud.translate.v3beta1.RefineTextRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.translate.v3beta1.RefineTextRequest result) { + if (refinementEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + refinementEntries_ = java.util.Collections.unmodifiableList(refinementEntries_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.refinementEntries_ = refinementEntries_; + } else { + result.refinementEntries_ = refinementEntriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.translate.v3beta1.RefineTextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceLanguageCode_ = sourceLanguageCode_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.targetLanguageCode_ = targetLanguageCode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.translate.v3beta1.RefineTextRequest) { + return mergeFrom((com.google.cloud.translate.v3beta1.RefineTextRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.translate.v3beta1.RefineTextRequest other) { + if (other == com.google.cloud.translate.v3beta1.RefineTextRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (refinementEntriesBuilder_ == null) { + if (!other.refinementEntries_.isEmpty()) { + if (refinementEntries_.isEmpty()) { + refinementEntries_ = other.refinementEntries_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRefinementEntriesIsMutable(); + refinementEntries_.addAll(other.refinementEntries_); + } + onChanged(); + } + } else { + if (!other.refinementEntries_.isEmpty()) { + if (refinementEntriesBuilder_.isEmpty()) { + refinementEntriesBuilder_.dispose(); + refinementEntriesBuilder_ = null; + refinementEntries_ = other.refinementEntries_; + bitField0_ = (bitField0_ & ~0x00000002); + refinementEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRefinementEntriesFieldBuilder() + : null; + } else { + refinementEntriesBuilder_.addAllMessages(other.refinementEntries_); + } + } + } + if (!other.getSourceLanguageCode().isEmpty()) { + sourceLanguageCode_ = other.sourceLanguageCode_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTargetLanguageCode().isEmpty()) { + targetLanguageCode_ = other.targetLanguageCode_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.translate.v3beta1.RefinementEntry m = + input.readMessage( + com.google.cloud.translate.v3beta1.RefinementEntry.parser(), + extensionRegistry); + if (refinementEntriesBuilder_ == null) { + ensureRefinementEntriesIsMutable(); + refinementEntries_.add(m); + } else { + refinementEntriesBuilder_.addMessage(m); + } + break; + } // case 18 + case 34: + { + sourceLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + targetLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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 parent_ = ""; + + /** + * + * + *
                                              +     * Required. Project or location to make a call. Must refer to a caller's
                                              +     * project.
                                              +     *
                                              +     * Format: `projects/{project-number-or-id}/locations/{location-id}`.
                                              +     *
                                              +     * For global calls, use `projects/{project-number-or-id}/locations/global` or
                                              +     * `projects/{project-number-or-id}`.
                                              +     * 
                                              + * + * + * 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. Project or location to make a call. Must refer to a caller's
                                              +     * project.
                                              +     *
                                              +     * Format: `projects/{project-number-or-id}/locations/{location-id}`.
                                              +     *
                                              +     * For global calls, use `projects/{project-number-or-id}/locations/global` or
                                              +     * `projects/{project-number-or-id}`.
                                              +     * 
                                              + * + * + * 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. Project or location to make a call. Must refer to a caller's
                                              +     * project.
                                              +     *
                                              +     * Format: `projects/{project-number-or-id}/locations/{location-id}`.
                                              +     *
                                              +     * For global calls, use `projects/{project-number-or-id}/locations/global` or
                                              +     * `projects/{project-number-or-id}`.
                                              +     * 
                                              + * + * + * 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. Project or location to make a call. Must refer to a caller's
                                              +     * project.
                                              +     *
                                              +     * Format: `projects/{project-number-or-id}/locations/{location-id}`.
                                              +     *
                                              +     * For global calls, use `projects/{project-number-or-id}/locations/global` or
                                              +     * `projects/{project-number-or-id}`.
                                              +     * 
                                              + * + * + * 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. Project or location to make a call. Must refer to a caller's
                                              +     * project.
                                              +     *
                                              +     * Format: `projects/{project-number-or-id}/locations/{location-id}`.
                                              +     *
                                              +     * For global calls, use `projects/{project-number-or-id}/locations/global` or
                                              +     * `projects/{project-number-or-id}`.
                                              +     * 
                                              + * + * + * 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.util.List refinementEntries_ = + java.util.Collections.emptyList(); + + private void ensureRefinementEntriesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + refinementEntries_ = + new java.util.ArrayList( + refinementEntries_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.RefinementEntry, + com.google.cloud.translate.v3beta1.RefinementEntry.Builder, + com.google.cloud.translate.v3beta1.RefinementEntryOrBuilder> + refinementEntriesBuilder_; + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRefinementEntriesList() { + if (refinementEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(refinementEntries_); + } else { + return refinementEntriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRefinementEntriesCount() { + if (refinementEntriesBuilder_ == null) { + return refinementEntries_.size(); + } else { + return refinementEntriesBuilder_.getCount(); + } + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.translate.v3beta1.RefinementEntry getRefinementEntries(int index) { + if (refinementEntriesBuilder_ == null) { + return refinementEntries_.get(index); + } else { + return refinementEntriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRefinementEntries( + int index, com.google.cloud.translate.v3beta1.RefinementEntry value) { + if (refinementEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinementEntriesIsMutable(); + refinementEntries_.set(index, value); + onChanged(); + } else { + refinementEntriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRefinementEntries( + int index, com.google.cloud.translate.v3beta1.RefinementEntry.Builder builderForValue) { + if (refinementEntriesBuilder_ == null) { + ensureRefinementEntriesIsMutable(); + refinementEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + refinementEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRefinementEntries(com.google.cloud.translate.v3beta1.RefinementEntry value) { + if (refinementEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinementEntriesIsMutable(); + refinementEntries_.add(value); + onChanged(); + } else { + refinementEntriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRefinementEntries( + int index, com.google.cloud.translate.v3beta1.RefinementEntry value) { + if (refinementEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinementEntriesIsMutable(); + refinementEntries_.add(index, value); + onChanged(); + } else { + refinementEntriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRefinementEntries( + com.google.cloud.translate.v3beta1.RefinementEntry.Builder builderForValue) { + if (refinementEntriesBuilder_ == null) { + ensureRefinementEntriesIsMutable(); + refinementEntries_.add(builderForValue.build()); + onChanged(); + } else { + refinementEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRefinementEntries( + int index, com.google.cloud.translate.v3beta1.RefinementEntry.Builder builderForValue) { + if (refinementEntriesBuilder_ == null) { + ensureRefinementEntriesIsMutable(); + refinementEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + refinementEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRefinementEntries( + java.lang.Iterable values) { + if (refinementEntriesBuilder_ == null) { + ensureRefinementEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, refinementEntries_); + onChanged(); + } else { + refinementEntriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRefinementEntries() { + if (refinementEntriesBuilder_ == null) { + refinementEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + refinementEntriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRefinementEntries(int index) { + if (refinementEntriesBuilder_ == null) { + ensureRefinementEntriesIsMutable(); + refinementEntries_.remove(index); + onChanged(); + } else { + refinementEntriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.translate.v3beta1.RefinementEntry.Builder getRefinementEntriesBuilder( + int index) { + return getRefinementEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.translate.v3beta1.RefinementEntryOrBuilder + getRefinementEntriesOrBuilder(int index) { + if (refinementEntriesBuilder_ == null) { + return refinementEntries_.get(index); + } else { + return refinementEntriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRefinementEntriesOrBuilderList() { + if (refinementEntriesBuilder_ != null) { + return refinementEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(refinementEntries_); + } + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.translate.v3beta1.RefinementEntry.Builder + addRefinementEntriesBuilder() { + return getRefinementEntriesFieldBuilder() + .addBuilder(com.google.cloud.translate.v3beta1.RefinementEntry.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.translate.v3beta1.RefinementEntry.Builder addRefinementEntriesBuilder( + int index) { + return getRefinementEntriesFieldBuilder() + .addBuilder( + index, com.google.cloud.translate.v3beta1.RefinementEntry.getDefaultInstance()); + } + + /** + * + * + *
                                              +     * Required. The source texts and original translations in the source and
                                              +     * target languages.
                                              +     * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRefinementEntriesBuilderList() { + return getRefinementEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.RefinementEntry, + com.google.cloud.translate.v3beta1.RefinementEntry.Builder, + com.google.cloud.translate.v3beta1.RefinementEntryOrBuilder> + getRefinementEntriesFieldBuilder() { + if (refinementEntriesBuilder_ == null) { + refinementEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.translate.v3beta1.RefinementEntry, + com.google.cloud.translate.v3beta1.RefinementEntry.Builder, + com.google.cloud.translate.v3beta1.RefinementEntryOrBuilder>( + refinementEntries_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + refinementEntries_ = null; + } + return refinementEntriesBuilder_; + } + + private java.lang.Object sourceLanguageCode_ = ""; + + /** + * + * + *
                                              +     * Required. The BCP-47 language code of the source text in the request, for
                                              +     * example, "en-US".
                                              +     * 
                                              + * + * string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceLanguageCode. + */ + public java.lang.String getSourceLanguageCode() { + java.lang.Object ref = sourceLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The BCP-47 language code of the source text in the request, for
                                              +     * example, "en-US".
                                              +     * 
                                              + * + * string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceLanguageCode. + */ + public com.google.protobuf.ByteString getSourceLanguageCodeBytes() { + java.lang.Object ref = sourceLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The BCP-47 language code of the source text in the request, for
                                              +     * example, "en-US".
                                              +     * 
                                              + * + * string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sourceLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceLanguageCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The BCP-47 language code of the source text in the request, for
                                              +     * example, "en-US".
                                              +     * 
                                              + * + * string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSourceLanguageCode() { + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The BCP-47 language code of the source text in the request, for
                                              +     * example, "en-US".
                                              +     * 
                                              + * + * string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sourceLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object targetLanguageCode_ = ""; + + /** + * + * + *
                                              +     * Required. The BCP-47 language code for translation output, for example,
                                              +     * "zh-CN".
                                              +     * 
                                              + * + * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetLanguageCode. + */ + public java.lang.String getTargetLanguageCode() { + java.lang.Object ref = targetLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The BCP-47 language code for translation output, for example,
                                              +     * "zh-CN".
                                              +     * 
                                              + * + * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetLanguageCode. + */ + public com.google.protobuf.ByteString getTargetLanguageCodeBytes() { + java.lang.Object ref = targetLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The BCP-47 language code for translation output, for example,
                                              +     * "zh-CN".
                                              +     * 
                                              + * + * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The targetLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setTargetLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetLanguageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The BCP-47 language code for translation output, for example,
                                              +     * "zh-CN".
                                              +     * 
                                              + * + * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTargetLanguageCode() { + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The BCP-47 language code for translation output, for example,
                                              +     * "zh-CN".
                                              +     * 
                                              + * + * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for targetLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.RefineTextRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.RefineTextRequest) + private static final com.google.cloud.translate.v3beta1.RefineTextRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.RefineTextRequest(); + } + + public static com.google.cloud.translate.v3beta1.RefineTextRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefineTextRequest 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.translate.v3beta1.RefineTextRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextRequestOrBuilder.java new file mode 100644 index 000000000000..79f9f0ac8ffd --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextRequestOrBuilder.java @@ -0,0 +1,196 @@ +/* + * Copyright 2025 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! +// source: google/cloud/translate/v3beta1/translation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.translate.v3beta1; + +public interface RefineTextRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.RefineTextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. Project or location to make a call. Must refer to a caller's
                                              +   * project.
                                              +   *
                                              +   * Format: `projects/{project-number-or-id}/locations/{location-id}`.
                                              +   *
                                              +   * For global calls, use `projects/{project-number-or-id}/locations/global` or
                                              +   * `projects/{project-number-or-id}`.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                              +   * Required. Project or location to make a call. Must refer to a caller's
                                              +   * project.
                                              +   *
                                              +   * Format: `projects/{project-number-or-id}/locations/{location-id}`.
                                              +   *
                                              +   * For global calls, use `projects/{project-number-or-id}/locations/global` or
                                              +   * `projects/{project-number-or-id}`.
                                              +   * 
                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRefinementEntriesList(); + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.translate.v3beta1.RefinementEntry getRefinementEntries(int index); + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRefinementEntriesCount(); + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRefinementEntriesOrBuilderList(); + + /** + * + * + *
                                              +   * Required. The source texts and original translations in the source and
                                              +   * target languages.
                                              +   * 
                                              + * + * + * repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.translate.v3beta1.RefinementEntryOrBuilder getRefinementEntriesOrBuilder( + int index); + + /** + * + * + *
                                              +   * Required. The BCP-47 language code of the source text in the request, for
                                              +   * example, "en-US".
                                              +   * 
                                              + * + * string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceLanguageCode. + */ + java.lang.String getSourceLanguageCode(); + + /** + * + * + *
                                              +   * Required. The BCP-47 language code of the source text in the request, for
                                              +   * example, "en-US".
                                              +   * 
                                              + * + * string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceLanguageCode. + */ + com.google.protobuf.ByteString getSourceLanguageCodeBytes(); + + /** + * + * + *
                                              +   * Required. The BCP-47 language code for translation output, for example,
                                              +   * "zh-CN".
                                              +   * 
                                              + * + * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetLanguageCode. + */ + java.lang.String getTargetLanguageCode(); + + /** + * + * + *
                                              +   * Required. The BCP-47 language code for translation output, for example,
                                              +   * "zh-CN".
                                              +   * 
                                              + * + * string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetLanguageCode. + */ + com.google.protobuf.ByteString getTargetLanguageCodeBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextResponse.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextResponse.java new file mode 100644 index 000000000000..6fdb5c1758cc --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextResponse.java @@ -0,0 +1,736 @@ +/* + * Copyright 2025 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! +// source: google/cloud/translate/v3beta1/translation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.translate.v3beta1; + +/** + * + * + *
                                              + * Response message for RefineText.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.translation.v3beta1.RefineTextResponse} + */ +public final class RefineTextResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.RefineTextResponse) + RefineTextResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RefineTextResponse.newBuilder() to construct. + private RefineTextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RefineTextResponse() { + refinedTranslations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RefineTextResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.translate.v3beta1.RefineTextResponse.class, + com.google.cloud.translate.v3beta1.RefineTextResponse.Builder.class); + } + + public static final int REFINED_TRANSLATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList refinedTranslations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                              +   * The refined translations obtained from the original translations.
                                              +   * 
                                              + * + * repeated string refined_translations = 1; + * + * @return A list containing the refinedTranslations. + */ + public com.google.protobuf.ProtocolStringList getRefinedTranslationsList() { + return refinedTranslations_; + } + + /** + * + * + *
                                              +   * The refined translations obtained from the original translations.
                                              +   * 
                                              + * + * repeated string refined_translations = 1; + * + * @return The count of refinedTranslations. + */ + public int getRefinedTranslationsCount() { + return refinedTranslations_.size(); + } + + /** + * + * + *
                                              +   * The refined translations obtained from the original translations.
                                              +   * 
                                              + * + * repeated string refined_translations = 1; + * + * @param index The index of the element to return. + * @return The refinedTranslations at the given index. + */ + public java.lang.String getRefinedTranslations(int index) { + return refinedTranslations_.get(index); + } + + /** + * + * + *
                                              +   * The refined translations obtained from the original translations.
                                              +   * 
                                              + * + * repeated string refined_translations = 1; + * + * @param index The index of the value to return. + * @return The bytes of the refinedTranslations at the given index. + */ + public com.google.protobuf.ByteString getRefinedTranslationsBytes(int index) { + return refinedTranslations_.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 < refinedTranslations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, refinedTranslations_.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 < refinedTranslations_.size(); i++) { + dataSize += computeStringSizeNoTag(refinedTranslations_.getRaw(i)); + } + size += dataSize; + size += 1 * getRefinedTranslationsList().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.translate.v3beta1.RefineTextResponse)) { + return super.equals(obj); + } + com.google.cloud.translate.v3beta1.RefineTextResponse other = + (com.google.cloud.translate.v3beta1.RefineTextResponse) obj; + + if (!getRefinedTranslationsList().equals(other.getRefinedTranslationsList())) 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 (getRefinedTranslationsCount() > 0) { + hash = (37 * hash) + REFINED_TRANSLATIONS_FIELD_NUMBER; + hash = (53 * hash) + getRefinedTranslationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse 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.translate.v3beta1.RefineTextResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse 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.translate.v3beta1.RefineTextResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.translate.v3beta1.RefineTextResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * Response message for RefineText.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.translation.v3beta1.RefineTextResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.RefineTextResponse) + com.google.cloud.translate.v3beta1.RefineTextResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.translate.v3beta1.RefineTextResponse.class, + com.google.cloud.translate.v3beta1.RefineTextResponse.Builder.class); + } + + // Construct using com.google.cloud.translate.v3beta1.RefineTextResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + refinedTranslations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefineTextResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefineTextResponse getDefaultInstanceForType() { + return com.google.cloud.translate.v3beta1.RefineTextResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefineTextResponse build() { + com.google.cloud.translate.v3beta1.RefineTextResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefineTextResponse buildPartial() { + com.google.cloud.translate.v3beta1.RefineTextResponse result = + new com.google.cloud.translate.v3beta1.RefineTextResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.translate.v3beta1.RefineTextResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + refinedTranslations_.makeImmutable(); + result.refinedTranslations_ = refinedTranslations_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.translate.v3beta1.RefineTextResponse) { + return mergeFrom((com.google.cloud.translate.v3beta1.RefineTextResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.translate.v3beta1.RefineTextResponse other) { + if (other == com.google.cloud.translate.v3beta1.RefineTextResponse.getDefaultInstance()) + return this; + if (!other.refinedTranslations_.isEmpty()) { + if (refinedTranslations_.isEmpty()) { + refinedTranslations_ = other.refinedTranslations_; + bitField0_ |= 0x00000001; + } else { + ensureRefinedTranslationsIsMutable(); + refinedTranslations_.addAll(other.refinedTranslations_); + } + 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(); + ensureRefinedTranslationsIsMutable(); + refinedTranslations_.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 refinedTranslations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRefinedTranslationsIsMutable() { + if (!refinedTranslations_.isModifiable()) { + refinedTranslations_ = new com.google.protobuf.LazyStringArrayList(refinedTranslations_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                                              +     * The refined translations obtained from the original translations.
                                              +     * 
                                              + * + * repeated string refined_translations = 1; + * + * @return A list containing the refinedTranslations. + */ + public com.google.protobuf.ProtocolStringList getRefinedTranslationsList() { + refinedTranslations_.makeImmutable(); + return refinedTranslations_; + } + + /** + * + * + *
                                              +     * The refined translations obtained from the original translations.
                                              +     * 
                                              + * + * repeated string refined_translations = 1; + * + * @return The count of refinedTranslations. + */ + public int getRefinedTranslationsCount() { + return refinedTranslations_.size(); + } + + /** + * + * + *
                                              +     * The refined translations obtained from the original translations.
                                              +     * 
                                              + * + * repeated string refined_translations = 1; + * + * @param index The index of the element to return. + * @return The refinedTranslations at the given index. + */ + public java.lang.String getRefinedTranslations(int index) { + return refinedTranslations_.get(index); + } + + /** + * + * + *
                                              +     * The refined translations obtained from the original translations.
                                              +     * 
                                              + * + * repeated string refined_translations = 1; + * + * @param index The index of the value to return. + * @return The bytes of the refinedTranslations at the given index. + */ + public com.google.protobuf.ByteString getRefinedTranslationsBytes(int index) { + return refinedTranslations_.getByteString(index); + } + + /** + * + * + *
                                              +     * The refined translations obtained from the original translations.
                                              +     * 
                                              + * + * repeated string refined_translations = 1; + * + * @param index The index to set the value at. + * @param value The refinedTranslations to set. + * @return This builder for chaining. + */ + public Builder setRefinedTranslations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinedTranslationsIsMutable(); + refinedTranslations_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The refined translations obtained from the original translations.
                                              +     * 
                                              + * + * repeated string refined_translations = 1; + * + * @param value The refinedTranslations to add. + * @return This builder for chaining. + */ + public Builder addRefinedTranslations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinedTranslationsIsMutable(); + refinedTranslations_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The refined translations obtained from the original translations.
                                              +     * 
                                              + * + * repeated string refined_translations = 1; + * + * @param values The refinedTranslations to add. + * @return This builder for chaining. + */ + public Builder addAllRefinedTranslations(java.lang.Iterable values) { + ensureRefinedTranslationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, refinedTranslations_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The refined translations obtained from the original translations.
                                              +     * 
                                              + * + * repeated string refined_translations = 1; + * + * @return This builder for chaining. + */ + public Builder clearRefinedTranslations() { + refinedTranslations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * The refined translations obtained from the original translations.
                                              +     * 
                                              + * + * repeated string refined_translations = 1; + * + * @param value The bytes of the refinedTranslations to add. + * @return This builder for chaining. + */ + public Builder addRefinedTranslationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRefinedTranslationsIsMutable(); + refinedTranslations_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.RefineTextResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.RefineTextResponse) + private static final com.google.cloud.translate.v3beta1.RefineTextResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.RefineTextResponse(); + } + + public static com.google.cloud.translate.v3beta1.RefineTextResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefineTextResponse 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.translate.v3beta1.RefineTextResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextResponseOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextResponseOrBuilder.java new file mode 100644 index 000000000000..929e48d3d407 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefineTextResponseOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2025 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! +// source: google/cloud/translate/v3beta1/translation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.translate.v3beta1; + +public interface RefineTextResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.RefineTextResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * The refined translations obtained from the original translations.
                                              +   * 
                                              + * + * repeated string refined_translations = 1; + * + * @return A list containing the refinedTranslations. + */ + java.util.List getRefinedTranslationsList(); + + /** + * + * + *
                                              +   * The refined translations obtained from the original translations.
                                              +   * 
                                              + * + * repeated string refined_translations = 1; + * + * @return The count of refinedTranslations. + */ + int getRefinedTranslationsCount(); + + /** + * + * + *
                                              +   * The refined translations obtained from the original translations.
                                              +   * 
                                              + * + * repeated string refined_translations = 1; + * + * @param index The index of the element to return. + * @return The refinedTranslations at the given index. + */ + java.lang.String getRefinedTranslations(int index); + + /** + * + * + *
                                              +   * The refined translations obtained from the original translations.
                                              +   * 
                                              + * + * repeated string refined_translations = 1; + * + * @param index The index of the value to return. + * @return The bytes of the refinedTranslations at the given index. + */ + com.google.protobuf.ByteString getRefinedTranslationsBytes(int index); +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefinementEntry.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefinementEntry.java new file mode 100644 index 000000000000..256fcfc04262 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefinementEntry.java @@ -0,0 +1,823 @@ +/* + * Copyright 2025 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! +// source: google/cloud/translate/v3beta1/translation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.translate.v3beta1; + +/** + * + * + *
                                              + * A single refinement entry for RefineTextRequest.
                                              + * 
                                              + * + * Protobuf type {@code google.cloud.translation.v3beta1.RefinementEntry} + */ +public final class RefinementEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.translation.v3beta1.RefinementEntry) + RefinementEntryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RefinementEntry.newBuilder() to construct. + private RefinementEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RefinementEntry() { + sourceText_ = ""; + originalTranslation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RefinementEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefinementEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefinementEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.translate.v3beta1.RefinementEntry.class, + com.google.cloud.translate.v3beta1.RefinementEntry.Builder.class); + } + + public static final int SOURCE_TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceText_ = ""; + + /** + * + * + *
                                              +   * Required. The source text to be refined.
                                              +   * 
                                              + * + * string source_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceText. + */ + @java.lang.Override + public java.lang.String getSourceText() { + java.lang.Object ref = sourceText_; + 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(); + sourceText_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The source text to be refined.
                                              +   * 
                                              + * + * string source_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceTextBytes() { + java.lang.Object ref = sourceText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORIGINAL_TRANSLATION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object originalTranslation_ = ""; + + /** + * + * + *
                                              +   * Required. The original translation of the source text.
                                              +   * 
                                              + * + * string original_translation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The originalTranslation. + */ + @java.lang.Override + public java.lang.String getOriginalTranslation() { + java.lang.Object ref = originalTranslation_; + 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(); + originalTranslation_ = s; + return s; + } + } + + /** + * + * + *
                                              +   * Required. The original translation of the source text.
                                              +   * 
                                              + * + * string original_translation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for originalTranslation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOriginalTranslationBytes() { + java.lang.Object ref = originalTranslation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originalTranslation_ = 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.GeneratedMessageV3.isStringEmpty(sourceText_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceText_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalTranslation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, originalTranslation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceText_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceText_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalTranslation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, originalTranslation_); + } + 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.translate.v3beta1.RefinementEntry)) { + return super.equals(obj); + } + com.google.cloud.translate.v3beta1.RefinementEntry other = + (com.google.cloud.translate.v3beta1.RefinementEntry) obj; + + if (!getSourceText().equals(other.getSourceText())) return false; + if (!getOriginalTranslation().equals(other.getOriginalTranslation())) 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) + SOURCE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getSourceText().hashCode(); + hash = (37 * hash) + ORIGINAL_TRANSLATION_FIELD_NUMBER; + hash = (53 * hash) + getOriginalTranslation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry 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.translate.v3beta1.RefinementEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry 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.translate.v3beta1.RefinementEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.translate.v3beta1.RefinementEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                              +   * A single refinement entry for RefineTextRequest.
                                              +   * 
                                              + * + * Protobuf type {@code google.cloud.translation.v3beta1.RefinementEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3beta1.RefinementEntry) + com.google.cloud.translate.v3beta1.RefinementEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefinementEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefinementEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.translate.v3beta1.RefinementEntry.class, + com.google.cloud.translate.v3beta1.RefinementEntry.Builder.class); + } + + // Construct using com.google.cloud.translate.v3beta1.RefinementEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceText_ = ""; + originalTranslation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.translate.v3beta1.TranslationServiceProto + .internal_static_google_cloud_translation_v3beta1_RefinementEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefinementEntry getDefaultInstanceForType() { + return com.google.cloud.translate.v3beta1.RefinementEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefinementEntry build() { + com.google.cloud.translate.v3beta1.RefinementEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.translate.v3beta1.RefinementEntry buildPartial() { + com.google.cloud.translate.v3beta1.RefinementEntry result = + new com.google.cloud.translate.v3beta1.RefinementEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.translate.v3beta1.RefinementEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceText_ = sourceText_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.originalTranslation_ = originalTranslation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.translate.v3beta1.RefinementEntry) { + return mergeFrom((com.google.cloud.translate.v3beta1.RefinementEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.translate.v3beta1.RefinementEntry other) { + if (other == com.google.cloud.translate.v3beta1.RefinementEntry.getDefaultInstance()) + return this; + if (!other.getSourceText().isEmpty()) { + sourceText_ = other.sourceText_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOriginalTranslation().isEmpty()) { + originalTranslation_ = other.originalTranslation_; + 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: + { + sourceText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + originalTranslation_ = 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 sourceText_ = ""; + + /** + * + * + *
                                              +     * Required. The source text to be refined.
                                              +     * 
                                              + * + * string source_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceText. + */ + public java.lang.String getSourceText() { + java.lang.Object ref = sourceText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The source text to be refined.
                                              +     * 
                                              + * + * string source_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceText. + */ + public com.google.protobuf.ByteString getSourceTextBytes() { + java.lang.Object ref = sourceText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The source text to be refined.
                                              +     * 
                                              + * + * string source_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sourceText to set. + * @return This builder for chaining. + */ + public Builder setSourceText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The source text to be refined.
                                              +     * 
                                              + * + * string source_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSourceText() { + sourceText_ = getDefaultInstance().getSourceText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The source text to be refined.
                                              +     * 
                                              + * + * string source_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sourceText to set. + * @return This builder for chaining. + */ + public Builder setSourceTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object originalTranslation_ = ""; + + /** + * + * + *
                                              +     * Required. The original translation of the source text.
                                              +     * 
                                              + * + * string original_translation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The originalTranslation. + */ + public java.lang.String getOriginalTranslation() { + java.lang.Object ref = originalTranslation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originalTranslation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                              +     * Required. The original translation of the source text.
                                              +     * 
                                              + * + * string original_translation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for originalTranslation. + */ + public com.google.protobuf.ByteString getOriginalTranslationBytes() { + java.lang.Object ref = originalTranslation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originalTranslation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                              +     * Required. The original translation of the source text.
                                              +     * 
                                              + * + * string original_translation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The originalTranslation to set. + * @return This builder for chaining. + */ + public Builder setOriginalTranslation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + originalTranslation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The original translation of the source text.
                                              +     * 
                                              + * + * string original_translation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOriginalTranslation() { + originalTranslation_ = getDefaultInstance().getOriginalTranslation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Required. The original translation of the source text.
                                              +     * 
                                              + * + * string original_translation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for originalTranslation to set. + * @return This builder for chaining. + */ + public Builder setOriginalTranslationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalTranslation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3beta1.RefinementEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.translation.v3beta1.RefinementEntry) + private static final com.google.cloud.translate.v3beta1.RefinementEntry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.translate.v3beta1.RefinementEntry(); + } + + public static com.google.cloud.translate.v3beta1.RefinementEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefinementEntry 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.translate.v3beta1.RefinementEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefinementEntryOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefinementEntryOrBuilder.java new file mode 100644 index 000000000000..9bf371ef9075 --- /dev/null +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/RefinementEntryOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2025 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! +// source: google/cloud/translate/v3beta1/translation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.translate.v3beta1; + +public interface RefinementEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.RefinementEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                              +   * Required. The source text to be refined.
                                              +   * 
                                              + * + * string source_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceText. + */ + java.lang.String getSourceText(); + + /** + * + * + *
                                              +   * Required. The source text to be refined.
                                              +   * 
                                              + * + * string source_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceText. + */ + com.google.protobuf.ByteString getSourceTextBytes(); + + /** + * + * + *
                                              +   * Required. The original translation of the source text.
                                              +   * 
                                              + * + * string original_translation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The originalTranslation. + */ + java.lang.String getOriginalTranslation(); + + /** + * + * + *
                                              +   * Required. The original translation of the source text.
                                              +   * 
                                              + * + * string original_translation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for originalTranslation. + */ + com.google.protobuf.ByteString getOriginalTranslationBytes(); +} diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java index 2340bad14663..732d595c64de 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java @@ -103,7 +103,9 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * location-id), otherwise an INVALID_ARGUMENT (400) error is returned. * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -137,7 +139,9 @@ public java.lang.String getParent() { * location-id), otherwise an INVALID_ARGUMENT (400) error is returned. * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -1516,7 +1520,9 @@ public Builder mergeFrom( * location-id), otherwise an INVALID_ARGUMENT (400) error is returned. * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -1549,7 +1555,9 @@ public java.lang.String getParent() { * location-id), otherwise an INVALID_ARGUMENT (400) error is returned. * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -1582,7 +1590,9 @@ public com.google.protobuf.ByteString getParentBytes() { * location-id), otherwise an INVALID_ARGUMENT (400) error is returned. * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -1614,7 +1624,9 @@ public Builder setParent(java.lang.String value) { * location-id), otherwise an INVALID_ARGUMENT (400) error is returned. * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1642,7 +1654,9 @@ public Builder clearParent() { * location-id), otherwise an INVALID_ARGUMENT (400) error is returned. * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * 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. diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java index d0fd4c66474b..b48fb64a5f59 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java @@ -41,7 +41,9 @@ public interface TranslateDocumentRequestOrBuilder * location-id), otherwise an INVALID_ARGUMENT (400) error is returned. * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -64,7 +66,9 @@ public interface TranslateDocumentRequestOrBuilder * location-id), otherwise an INVALID_ARGUMENT (400) error is returned. * * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java index 20c43c0a4e2f..b6fd50c7133b 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java @@ -140,6 +140,26 @@ public boolean getIgnoreCase() { return ignoreCase_; } + public static final int CONTEXTUAL_TRANSLATION_ENABLED_FIELD_NUMBER = 4; + private boolean contextualTranslationEnabled_ = false; + + /** + * + * + *
                                              +   * Optional. If set to true, the glossary will be used for contextual
                                              +   * translation.
                                              +   * 
                                              + * + * bool contextual_translation_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The contextualTranslationEnabled. + */ + @java.lang.Override + public boolean getContextualTranslationEnabled() { + return contextualTranslationEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -160,6 +180,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (ignoreCase_ != false) { output.writeBool(2, ignoreCase_); } + if (contextualTranslationEnabled_ != false) { + output.writeBool(4, contextualTranslationEnabled_); + } getUnknownFields().writeTo(output); } @@ -175,6 +198,10 @@ public int getSerializedSize() { if (ignoreCase_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ignoreCase_); } + if (contextualTranslationEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, contextualTranslationEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -193,6 +220,7 @@ public boolean equals(final java.lang.Object obj) { if (!getGlossary().equals(other.getGlossary())) return false; if (getIgnoreCase() != other.getIgnoreCase()) return false; + if (getContextualTranslationEnabled() != other.getContextualTranslationEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -208,6 +236,9 @@ public int hashCode() { hash = (53 * hash) + getGlossary().hashCode(); hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); + hash = (37 * hash) + CONTEXTUAL_TRANSLATION_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContextualTranslationEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -352,6 +383,7 @@ public Builder clear() { bitField0_ = 0; glossary_ = ""; ignoreCase_ = false; + contextualTranslationEnabled_ = false; return this; } @@ -396,6 +428,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.ignoreCase_ = ignoreCase_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.contextualTranslationEnabled_ = contextualTranslationEnabled_; + } } @java.lang.Override @@ -453,6 +488,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextGlossar if (other.getIgnoreCase() != false) { setIgnoreCase(other.getIgnoreCase()); } + if (other.getContextualTranslationEnabled() != false) { + setContextualTranslationEnabled(other.getContextualTranslationEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -491,6 +529,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 32: + { + contextualTranslationEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -685,6 +729,68 @@ public Builder clearIgnoreCase() { return this; } + private boolean contextualTranslationEnabled_; + + /** + * + * + *
                                              +     * Optional. If set to true, the glossary will be used for contextual
                                              +     * translation.
                                              +     * 
                                              + * + * bool contextual_translation_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextualTranslationEnabled. + */ + @java.lang.Override + public boolean getContextualTranslationEnabled() { + return contextualTranslationEnabled_; + } + + /** + * + * + *
                                              +     * Optional. If set to true, the glossary will be used for contextual
                                              +     * translation.
                                              +     * 
                                              + * + * bool contextual_translation_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The contextualTranslationEnabled to set. + * @return This builder for chaining. + */ + public Builder setContextualTranslationEnabled(boolean value) { + + contextualTranslationEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                              +     * Optional. If set to true, the glossary will be used for contextual
                                              +     * translation.
                                              +     * 
                                              + * + * bool contextual_translation_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearContextualTranslationEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + contextualTranslationEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java index c1e90b48b197..75c2b0a8f7a2 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java @@ -65,4 +65,18 @@ public interface TranslateTextGlossaryConfigOrBuilder * @return The ignoreCase. */ boolean getIgnoreCase(); + + /** + * + * + *
                                              +   * Optional. If set to true, the glossary will be used for contextual
                                              +   * translation.
                                              +   * 
                                              + * + * bool contextual_translation_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The contextualTranslationEnabled. + */ + boolean getContextualTranslationEnabled(); } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java index 5a50b4c1f3f7..5aadfb4f058b 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java @@ -220,6 +220,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_RefinementEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_RefinementEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_RefineTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_RefineTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_translation_v3beta1_RefineTextResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_translation_v3beta1_RefineTextResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -234,10 +246,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion.v3beta1\032\034google/api/annotations.pro" + "to\032\027google/api/client.proto\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032#google/longrunning/operations.proto\032\037google/protobuf/timestamp.proto\"N\n" + + "e.proto\032#google/longrunning/operations.proto\032\037google/protobuf/timestamp.proto\"{\n" + "\033TranslateTextGlossaryConfig\022\025\n" + "\010glossary\030\001 \001(\tB\003\340A\002\022\030\n" - + "\013ignore_case\030\002 \001(\010B\003\340A\001\"\277\003\n" + + "\013ignore_case\030\002 \001(\010B\003\340A\001\022+\n" + + "\036contextual_translation_enabled\030\004 \001(\010B\003\340A\001\"\277\003\n" + "\024TranslateTextRequest\022\025\n" + "\010contents\030\001 \003(\tB\003\340A\002\022\026\n" + "\tmime_type\030\003 \001(\tB\003\340A\001\022!\n" @@ -246,11 +259,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\010 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\022\n" + "\005model\030\006 \001(\tB\003\340A\001\022[\n" - + "\017glossary_config\030\007 " - + "\001(\0132=.google.cloud.translation.v3beta1.TranslateTextGlossaryConfigB\003\340A\001\022W\n" + + "\017glossary_config\030\007" + + " \001(\0132=.google.cloud.translation.v3beta1.TranslateTextGlossaryConfigB\003\340A\001\022W\n" + "\006labels\030\n" - + " \003(\0132B.google.cloud.translation.v3bet" - + "a1.TranslateTextRequest.LabelsEntryB\003\340A\001\032-\n" + + " \003(\0132B.google.cloud.translation." + + "v3beta1.TranslateTextRequest.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\"\252\001\n" @@ -263,16 +276,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017translated_text\030\001 \001(\t\022\r\n" + "\005model\030\002 \001(\t\022\036\n" + "\026detected_language_code\030\004 \001(\t\022V\n" - + "\017glossary_config\030\003" - + " \001(\0132=.google.cloud.translation.v3beta1.TranslateTextGlossaryConfig\"\244\002\n" + + "\017glossary_config\030\003 \001(\0132=.google.cloud.transl" + + "ation.v3beta1.TranslateTextGlossaryConfig\"\244\002\n" + "\025DetectLanguageRequest\0229\n" + "\006parent\030\005 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\022\n" + "\005model\030\004 \001(\tB\003\340A\001\022\021\n" + "\007content\030\001 \001(\tH\000\022\026\n" + "\tmime_type\030\003 \001(\tB\003\340A\001\022X\n" - + "\006labels\030\006 \003(\013" - + "2C.google.cloud.translation.v3beta1.DetectLanguageRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\006 \003(\0132C.google.cloud.translation.v3beta1" + + ".DetectLanguageRequest.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\010\n" @@ -281,16 +294,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "language_code\030\001 \001(\t\022\022\n\n" + "confidence\030\002 \001(\002\"_\n" + "\026DetectLanguageResponse\022E\n" - + "\tlanguages\030\001 \003(\0132" - + "2.google.cloud.translation.v3beta1.DetectedLanguage\"\221\001\n" + + "\tlanguages\030\001" + + " \003(\01322.google.cloud.translation.v3beta1.DetectedLanguage\"\221\001\n" + "\034GetSupportedLanguagesRequest\0229\n" + "\006parent\030\003 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\"\n" + "\025display_language_code\030\001 \001(\tB\003\340A\001\022\022\n" + "\005model\030\002 \001(\tB\003\340A\001\"\\\n" + "\022SupportedLanguages\022F\n" - + "\tlanguages\030\001 \003(\013" - + "23.google.cloud.translation.v3beta1.SupportedLanguage\"p\n" + + "\tlanguages\030\001" + + " \003(\01323.google.cloud.translation.v3beta1.SupportedLanguage\"p\n" + "\021SupportedLanguage\022\025\n\r" + "language_code\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t\022\026\n" @@ -315,23 +328,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tmime_type\030\004 \001(\tB\010\n" + "\006source\"\217\001\n" + "\024DocumentOutputConfig\022P\n" - + "\017gcs_destination\030\001 \001(\01320.google.clo" - + "ud.translation.v3beta1.GcsDestinationB\003\340A\001H\000\022\026\n" + + "\017gcs_destination\030\001 \001(\01320.googl" + + "e.cloud.translation.v3beta1.GcsDestinationB\003\340A\001H\000\022\026\n" + "\tmime_type\030\003 \001(\tB\003\340A\001B\r\n" - + "\013destination\"\322\005\n" - + "\030TranslateDocumentRequest\022\023\n" - + "\006parent\030\001 \001(\tB\003\340A\002\022!\n" + + "\013destination\"\370\005\n" + + "\030TranslateDocumentRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022!\n" + "\024source_language_code\030\002 \001(\tB\003\340A\001\022!\n" + "\024target_language_code\030\003 \001(\tB\003\340A\002\022Y\n" - + "\025document_input_config\030\004 \001(\01325.goo" - + "gle.cloud.translation.v3beta1.DocumentInputConfigB\003\340A\002\022[\n" + + "\025document_input_config\030\004 \001(\01325." + + "google.cloud.translation.v3beta1.DocumentInputConfigB\003\340A\002\022[\n" + "\026document_output_config\030\005" + " \001(\01326.google.cloud.translation.v3beta1.DocumentOutputConfigB\003\340A\001\022\022\n" + "\005model\030\006 \001(\tB\003\340A\001\022[\n" - + "\017glossary_config\030\007 \001(\0132=.googl" - + "e.cloud.translation.v3beta1.TranslateTextGlossaryConfigB\003\340A\001\022[\n" - + "\006labels\030\010 \003(\0132F.g" - + "oogle.cloud.translation.v3beta1.TranslateDocumentRequest.LabelsEntryB\003\340A\001\022#\n" + + "\017glossary_config\030\007 \001(\0132=.go" + + "ogle.cloud.translation.v3beta1.TranslateTextGlossaryConfigB\003\340A\001\022[\n" + + "\006labels\030\010 \003(\0132" + + "F.google.cloud.translation.v3beta1.TranslateDocumentRequest.LabelsEntryB\003\340A\001\022#\n" + "\026customized_attribution\030\n" + " \001(\tB\003\340A\001\022)\n" + "\034is_translate_native_pdf_only\030\013 \001(\010B\003\340A\001\022-\n" @@ -348,40 +362,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031TranslateDocumentResponse\022S\n" + "\024document_translation\030\001" + " \001(\01325.google.cloud.translation.v3beta1.DocumentTranslation\022\\\n" - + "\035glossary_document_translation\030\002 \001(\01325.google.cloud" - + ".translation.v3beta1.DocumentTranslation\022\r\n" + + "\035glossary_document_translation\030\002 \001(\01325.google.cl" + + "oud.translation.v3beta1.DocumentTranslation\022\r\n" + "\005model\030\003 \001(\t\022V\n" - + "\017glossary_config\030\004 \001(\013" - + "2=.google.cloud.translation.v3beta1.TranslateTextGlossaryConfig\"\246\006\n" + + "\017glossary_config\030\004 " + + "\001(\0132=.google.cloud.translation.v3beta1.TranslateTextGlossaryConfig\"\246\006\n" + "\031BatchTranslateTextRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022!\n" + "\024source_language_code\030\002 \001(\tB\003\340A\002\022\"\n" + "\025target_language_codes\030\003 \003(\tB\003\340A\002\022\\\n" - + "\006models\030\004 \003(\0132" - + "G.google.cloud.translation.v3beta1.BatchTranslateTextRequest.ModelsEntryB\003\340A\001\022I\n" - + "\r" + + "\006models\030\004 \003(\0132G.google.cloud.translation.v3beta1.Ba" + + "tchTranslateTextRequest.ModelsEntryB\003\340A\001\022I\n\r" + "input_configs\030\005" + " \003(\0132-.google.cloud.translation.v3beta1.InputConfigB\003\340A\002\022J\n\r" + "output_config\030\006" + " \001(\0132..google.cloud.translation.v3beta1.OutputConfigB\003\340A\002\022d\n\n" - + "glossaries\030\007 \003(\0132K.google.cloud.translation.v3be" - + "ta1.BatchTranslateTextRequest.GlossariesEntryB\003\340A\001\022\\\n" - + "\006labels\030\t \003(\0132G.google.clou" - + "d.translation.v3beta1.BatchTranslateTextRequest.LabelsEntryB\003\340A\001\032-\n" + + "glossaries\030\007 \003(\0132K.google.cloud.translation.v" + + "3beta1.BatchTranslateTextRequest.GlossariesEntryB\003\340A\001\022\\\n" + + "\006labels\030\t \003(\0132G.google.c" + + "loud.translation.v3beta1.BatchTranslateTextRequest.LabelsEntryB\003\340A\001\032-\n" + "\013ModelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032p\n" + "\017GlossariesEntry\022\013\n" + "\003key\030\001 \001(\t\022L\n" - + "\005value\030\002 \001(\0132=" - + ".google.cloud.translation.v3beta1.TranslateTextGlossaryConfig:\0028\001\032-\n" + + "\005value\030\002 \001(" + + "\0132=.google.cloud.translation.v3beta1.TranslateTextGlossaryConfig:\0028\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\323\002\n" + "\026BatchTranslateMetadata\022M\n" - + "\005state\030\001 \001(\0162>.goo" - + "gle.cloud.translation.v3beta1.BatchTranslateMetadata.State\022\035\n" + + "\005state\030\001 \001(\0162>." + + "google.cloud.translation.v3beta1.BatchTranslateMetadata.State\022\035\n" + "\025translated_characters\030\002 \001(\003\022\031\n" + "\021failed_characters\030\003 \001(\003\022\030\n" + "\020total_characters\030\004 \001(\003\022/\n" @@ -404,12 +417,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006source\"\216\005\n" + "\010Glossary\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022T\n\r" - + "language_pair\030\003 \001(\0132;.google.cloud.translati" - + "on.v3beta1.Glossary.LanguageCodePairH\000\022Y\n" - + "\022language_codes_set\030\004 \001(\0132;.google.clou" - + "d.translation.v3beta1.Glossary.LanguageCodesSetH\000\022K\n" - + "\014input_config\030\005 \001(\01325.google" - + ".cloud.translation.v3beta1.GlossaryInputConfig\022\030\n" + + "language_pair\030\003 \001(\0132;.google.cloud.transl" + + "ation.v3beta1.Glossary.LanguageCodePairH\000\022Y\n" + + "\022language_codes_set\030\004 \001(\0132;.google.c" + + "loud.translation.v3beta1.Glossary.LanguageCodesSetH\000\022K\n" + + "\014input_config\030\005 \001(\01325.goo" + + "gle.cloud.translation.v3beta1.GlossaryInputConfig\022\030\n" + "\013entry_count\030\006 \001(\005B\003\340A\003\0224\n" + "\013submit_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032N\n" @@ -418,14 +431,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024target_language_code\030\002 \001(\t\032*\n" + "\020LanguageCodesSet\022\026\n" + "\016language_codes\030\001 \003(\t:e\352Ab\n" - + "!translate.googleapis.com/Glossary\022=projects/{project" - + "}/locations/{location}/glossaries/{glossary}B\013\n" + + "!translate.googleapis.com/Glossary\022=projects/{proj" + + "ect}/locations/{location}/glossaries/{glossary}B\013\n" + "\tlanguages\"\225\001\n" + "\025CreateGlossaryRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022A\n" - + "\010glossary\030\002 \001(\013" - + "2*.google.cloud.translation.v3beta1.GlossaryB\003\340A\002\"M\n" + + "\010glossary\030\002 " + + "\001(\0132*.google.cloud.translation.v3beta1.GlossaryB\003\340A\002\"M\n" + "\022GetGlossaryRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!translate.googleapis.com/Glossary\"P\n" @@ -443,8 +456,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\t\"\215\002\n" + "\026CreateGlossaryMetadata\022\014\n" + "\004name\030\001 \001(\t\022M\n" - + "\005state\030\002 \001(\0162>.google.cloud.translat" - + "ion.v3beta1.CreateGlossaryMetadata.State\022/\n" + + "\005state\030\002 \001(\0162>.google.cloud.trans" + + "lation.v3beta1.CreateGlossaryMetadata.State\022/\n" + "\013submit_time\030\003 \001(\0132\032.google.protobuf.Timestamp\"e\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" @@ -468,33 +481,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DeleteGlossaryResponse\022\014\n" + "\004name\030\001 \001(\t\022/\n" + "\013submit_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022,\n" - + "\010end_time\030\003 \001(\0132\032.google.protobuf.Timestamp\"\357\007\n" + + "\010end_time\030\003 \001(\0132\032.google.protobuf.Timestamp\"\215\010\n" + "\035BatchTranslateDocumentRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022!\n" + "\024source_language_code\030\002 \001(\tB\003\340A\002\022\"\n" + "\025target_language_codes\030\003 \003(\tB\003\340A\002\022V\n\r" - + "input_configs\030\004 \003(\0132:.google.clo" - + "ud.translation.v3beta1.BatchDocumentInputConfigB\003\340A\002\022W\n\r" - + "output_config\030\005 \001(\0132;.go" - + "ogle.cloud.translation.v3beta1.BatchDocumentOutputConfigB\003\340A\002\022`\n" - + "\006models\030\006 \003(\0132K.google.cloud.translation.v3beta1.BatchTr" - + "anslateDocumentRequest.ModelsEntryB\003\340A\001\022h\n\n" - + "glossaries\030\007 \003(\0132O.google.cloud.trans" - + "lation.v3beta1.BatchTranslateDocumentRequest.GlossariesEntryB\003\340A\001\022w\n" - + "\022format_conversions\030\010 \003(\0132V.google.cloud.translation" - + ".v3beta1.BatchTranslateDocumentRequest.FormatConversionsEntryB\003\340A\001\022#\n" + + "input_configs\030\004 \003(\0132:.google." + + "cloud.translation.v3beta1.BatchDocumentInputConfigB\003\340A\002\022W\n\r" + + "output_config\030\005 \001(\0132;" + + ".google.cloud.translation.v3beta1.BatchDocumentOutputConfigB\003\340A\002\022`\n" + + "\006models\030\006 \003(\0132K.google.cloud.translation.v3beta1.Batc" + + "hTranslateDocumentRequest.ModelsEntryB\003\340A\001\022h\n\n" + + "glossaries\030\007 \003(\0132O.google.cloud.tr" + + "anslation.v3beta1.BatchTranslateDocumentRequest.GlossariesEntryB\003\340A\001\022w\n" + + "\022format_conversions\030\010 \003(\0132V.google.cloud.translat" + + "ion.v3beta1.BatchTranslateDocumentRequest.FormatConversionsEntryB\003\340A\001\022#\n" + "\026customized_attribution\030\n" + " \001(\tB\003\340A\001\022-\n" + " enable_shadow_removal_native_pdf\030\013 \001(\010B\003\340A\001\022\'\n" - + "\032enable_rotation_correction\030\014 \001(\010B\003\340A\001\032-\n" + + "\032enable_rotation_correction\030\014 \001(\010B\003\340A\001\022\034\n" + + "\017pdf_native_only\030\r" + + " \001(\010B\003\340A\001\032-\n" + "\013ModelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032p\n" + "\017GlossariesEntry\022\013\n" + "\003key\030\001 \001(\t\022L\n" - + "\005value\030\002" - + " \001(\0132=.google.cloud.translation.v3beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" + + "\005value\030\002 \001(\0132=" + + ".google.cloud.translation.v3beta1.TranslateTextGlossaryConfig:\0028\001\0328\n" + "\026FormatConversionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"g\n" @@ -502,8 +517,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gcs_source\030\001 \001(\0132+.google.cloud.translation.v3beta1.GcsSourceH\000B\010\n" + "\006source\"w\n" + "\031BatchDocumentOutputConfig\022K\n" - + "\017gcs_destination\030\001" - + " \001(\01320.google.cloud.translation.v3beta1.GcsDestinationH\000B\r\n" + + "\017gcs_destination\030\001 \001" + + "(\01320.google.cloud.translation.v3beta1.GcsDestinationH\000B\r\n" + "\013destination\"\331\002\n" + "\036BatchTranslateDocumentResponse\022\023\n" + "\013total_pages\030\001 \001(\003\022\030\n" @@ -518,8 +533,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\n" + " \001(\0132\032.google.protobuf.Timestamp\"\351\003\n" + "\036BatchTranslateDocumentMetadata\022U\n" - + "\005state\030\001 \001(\0162F.goo" - + "gle.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.State\022\023\n" + + "\005state\030\001 \001(\0162F.google.clo" + + "ud.translation.v3beta1.BatchTranslateDocumentMetadata.State\022\023\n" + "\013total_pages\030\002 \001(\003\022\030\n" + "\020translated_pages\030\003 \001(\003\022\024\n" + "\014failed_pages\030\004 \001(\003\022\034\n" @@ -536,7 +551,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSUCCEEDED\020\002\022\n\n" + "\006FAILED\020\003\022\016\n\n" + "CANCELLING\020\004\022\r\n" - + "\tCANCELLED\020\0052\302\024\n" + + "\tCANCELLED\020\005\"N\n" + + "\017RefinementEntry\022\030\n" + + "\013source_text\030\001 \001(\tB\003\340A\002\022!\n" + + "\024original_translation\030\002 \001(\tB\003\340A\002\"\350\001\n" + + "\021RefineTextRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022R\n" + + "\022refinement_entries\030\002" + + " \003(\01321.google.cloud.translation.v3beta1.RefinementEntryB\003\340A\002\022!\n" + + "\024source_language_code\030\004 \001(\tB\003\340A\002\022!\n" + + "\024target_language_code\030\005 \001(\tB\003\340A\002\"2\n" + + "\022RefineTextResponse\022\034\n" + + "\024refined_translations\030\001 \003(\t2\374\025\n" + "\022TranslationService\022\364\001\n\r" + "TranslateText\0226.google.cloud.translation.v3beta1.Transla" + "teTextRequest\0327.google.cloud.translation" @@ -584,14 +611,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016DeleteGlossary\0227.google.cloud.translation.v3" + "beta1.DeleteGlossaryRequest\032\035.google.longrunning.Operation\"u\312A0\n" + "\026DeleteGlossaryResponse\022\026DeleteGlossaryMetadata\332A\004name\202\323" - + "\344\223\0025*3/v3beta1/{name=projects/*/location" - + "s/*/glossaries/*}\032~\312A\030translate.googleap" - + "is.com\322A`https://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.com/auth/cloud-translationB\355\001\n" - + "\"com.google.cloud.translate.v3beta1B\027TranslationSer" - + "viceProtoP\001ZFcloud.google.com/go/translation/apiv3beta1/translationpb;translatio" - + "npb\252\002\036Google.Cloud.Translate.V3Beta1\312\002\036G" - + "oogle\\Cloud\\Translate\\V3beta1\352\002!Google::Cloud::Translate::V3beta1b\006proto3" + + "\344\223\0025*3/v3beta1/{name=projects/*/locations/*/glossaries/*}\022\267\001\n\n" + + "RefineText\0223.google.cloud.translation.v3beta1.RefineTextRe" + + "quest\0324.google.cloud.translation.v3beta1" + + ".RefineTextResponse\">\202\323\344\223\0028\"3/v3beta1/{p" + + "arent=projects/*/locations/*}:refineText" + + ":\001*\032~\312A\030translate.googleapis.com\322A`https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/cloud-translationB\355\001\n" + + "\"com.google.cloud.translate.v3beta1B\027TranslationServiceProtoP\001ZFc" + + "loud.google.com/go/translation/apiv3beta" + + "1/translationpb;translationpb\252\002\036Google.C" + + "loud.Translate.V3Beta1\312\002\036Google\\Cloud\\Tr" + + "anslate\\V3beta1\352\002!Google::Cloud::Translate::V3beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -610,7 +642,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_translation_v3beta1_TranslateTextGlossaryConfig_descriptor, new java.lang.String[] { - "Glossary", "IgnoreCase", + "Glossary", "IgnoreCase", "ContextualTranslationEnabled", }); internal_static_google_cloud_translation_v3beta1_TranslateTextRequest_descriptor = getDescriptor().getMessageTypes().get(1); @@ -993,6 +1025,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomizedAttribution", "EnableShadowRemovalNativePdf", "EnableRotationCorrection", + "PdfNativeOnly", }); internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_ModelsEntry_descriptor = internal_static_google_cloud_translation_v3beta1_BatchTranslateDocumentRequest_descriptor @@ -1074,6 +1107,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalBillableCharacters", "SubmitTime", }); + internal_static_google_cloud_translation_v3beta1_RefinementEntry_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_translation_v3beta1_RefinementEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_RefinementEntry_descriptor, + new java.lang.String[] { + "SourceText", "OriginalTranslation", + }); + internal_static_google_cloud_translation_v3beta1_RefineTextRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_translation_v3beta1_RefineTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_RefineTextRequest_descriptor, + new java.lang.String[] { + "Parent", "RefinementEntries", "SourceLanguageCode", "TargetLanguageCode", + }); + internal_static_google_cloud_translation_v3beta1_RefineTextResponse_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_translation_v3beta1_RefineTextResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_translation_v3beta1_RefineTextResponse_descriptor, + new java.lang.String[] { + "RefinedTranslations", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto b/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto index b695863ae12d..88e4e02e1214 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto @@ -173,6 +173,14 @@ service TranslationService { metadata_type: "DeleteGlossaryMetadata" }; } + + // Refines the input translated text to improve the quality. + rpc RefineText(RefineTextRequest) returns (RefineTextResponse) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*}:refineText" + body: "*" + }; + } } // Configures which glossary should be used for a specific target language, @@ -185,6 +193,11 @@ message TranslateTextGlossaryConfig { // Optional. Indicates match is case-insensitive. // Default value is false if missing. bool ignore_case = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the glossary will be used for contextual + // translation. + bool contextual_translation_enabled = 4 + [(google.api.field_behavior) = OPTIONAL]; } // The request message for synchronous translation. @@ -684,7 +697,12 @@ message TranslateDocumentRequest { // // Models and glossaries must be within the same region (have the same // location-id), otherwise an INVALID_ARGUMENT (400) error is returned. - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; // Optional. The BCP-47 language code of the input document if known, for // example, "en-US" or "sr-Latn". Supported language codes are listed in @@ -1302,6 +1320,9 @@ message BatchTranslateDocumentRequest { // Optional. If true, enable auto rotation correction in DVS. bool enable_rotation_correction = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, only native pdf pages will be translated. + bool pdf_native_only = 13 [(google.api.field_behavior) = OPTIONAL]; } // Input configuration for BatchTranslateDocument request. @@ -1493,3 +1514,48 @@ message BatchTranslateDocumentMetadata { // Time when the operation was submitted. google.protobuf.Timestamp submit_time = 10; } + +// A single refinement entry for RefineTextRequest. +message RefinementEntry { + // Required. The source text to be refined. + string source_text = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The original translation of the source text. + string original_translation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for RefineText. +message RefineTextRequest { + // Required. Project or location to make a call. Must refer to a caller's + // project. + // + // Format: `projects/{project-number-or-id}/locations/{location-id}`. + // + // For global calls, use `projects/{project-number-or-id}/locations/global` or + // `projects/{project-number-or-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The source texts and original translations in the source and + // target languages. + repeated RefinementEntry refinement_entries = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The BCP-47 language code of the source text in the request, for + // example, "en-US". + string source_language_code = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The BCP-47 language code for translation output, for example, + // "zh-CN". + string target_language_code = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for RefineText. +message RefineTextResponse { + // The refined translations obtained from the original translations. + repeated string refined_translations = 1; +} diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java index 367536158c8a..9d691b11c12b 100644 --- a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java +++ b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocument.java @@ -54,6 +54,7 @@ public static void asyncBatchTranslateDocument() throws Exception { .setCustomizedAttribution("customizedAttribution557650238") .setEnableShadowRemovalNativePdf(true) .setEnableRotationCorrection(true) + .setPdfNativeOnly(true) .build(); ApiFuture future = translationServiceClient.batchTranslateDocumentCallable().futureCall(request); diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java index 15bbbd804584..fda51584f955 100644 --- a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java +++ b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/AsyncBatchTranslateDocumentLRO.java @@ -55,6 +55,7 @@ public static void asyncBatchTranslateDocumentLRO() throws Exception { .setCustomizedAttribution("customizedAttribution557650238") .setEnableShadowRemovalNativePdf(true) .setEnableRotationCorrection(true) + .setPdfNativeOnly(true) .build(); OperationFuture future = translationServiceClient.batchTranslateDocumentOperationCallable().futureCall(request); diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java index acae7fd7754d..cc2507cc57ef 100644 --- a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java +++ b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/batchtranslatedocument/SyncBatchTranslateDocument.java @@ -53,6 +53,7 @@ public static void syncBatchTranslateDocument() throws Exception { .setCustomizedAttribution("customizedAttribution557650238") .setEnableShadowRemovalNativePdf(true) .setEnableRotationCorrection(true) + .setPdfNativeOnly(true) .build(); BatchTranslateDocumentResponse response = translationServiceClient.batchTranslateDocumentAsync(request).get(); diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/refinetext/AsyncRefineText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/refinetext/AsyncRefineText.java new file mode 100644 index 000000000000..2481c2222352 --- /dev/null +++ b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/refinetext/AsyncRefineText.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.translate.v3beta1.samples; + +// [START translate_v3beta1_generated_TranslationService_RefineText_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.translate.v3beta1.LocationName; +import com.google.cloud.translate.v3beta1.RefineTextRequest; +import com.google.cloud.translate.v3beta1.RefineTextResponse; +import com.google.cloud.translate.v3beta1.RefinementEntry; +import com.google.cloud.translate.v3beta1.TranslationServiceClient; +import java.util.ArrayList; + +public class AsyncRefineText { + + public static void main(String[] args) throws Exception { + asyncRefineText(); + } + + public static void asyncRefineText() 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 (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { + RefineTextRequest request = + RefineTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllRefinementEntries(new ArrayList()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .build(); + ApiFuture future = + translationServiceClient.refineTextCallable().futureCall(request); + // Do something. + RefineTextResponse response = future.get(); + } + } +} +// [END translate_v3beta1_generated_TranslationService_RefineText_async] diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/refinetext/SyncRefineText.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/refinetext/SyncRefineText.java new file mode 100644 index 000000000000..985466f1d3ef --- /dev/null +++ b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/refinetext/SyncRefineText.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.translate.v3beta1.samples; + +// [START translate_v3beta1_generated_TranslationService_RefineText_sync] +import com.google.cloud.translate.v3beta1.LocationName; +import com.google.cloud.translate.v3beta1.RefineTextRequest; +import com.google.cloud.translate.v3beta1.RefineTextResponse; +import com.google.cloud.translate.v3beta1.RefinementEntry; +import com.google.cloud.translate.v3beta1.TranslationServiceClient; +import java.util.ArrayList; + +public class SyncRefineText { + + public static void main(String[] args) throws Exception { + syncRefineText(); + } + + public static void syncRefineText() 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 (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { + RefineTextRequest request = + RefineTextRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllRefinementEntries(new ArrayList()) + .setSourceLanguageCode("sourceLanguageCode1645917472") + .setTargetLanguageCode("targetLanguageCode-106414698") + .build(); + RefineTextResponse response = translationServiceClient.refineText(request); + } + } +} +// [END translate_v3beta1_generated_TranslationService_RefineText_sync] diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java index 7e1e38843341..8d38889ef172 100644 --- a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java +++ b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/AsyncTranslateDocument.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.translate.v3beta1.DocumentInputConfig; import com.google.cloud.translate.v3beta1.DocumentOutputConfig; +import com.google.cloud.translate.v3beta1.LocationName; import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; import com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig; @@ -41,7 +42,7 @@ public static void asyncTranslateDocument() throws Exception { try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { TranslateDocumentRequest request = TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceLanguageCode("sourceLanguageCode1645917472") .setTargetLanguageCode("targetLanguageCode-106414698") .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) diff --git a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java index a658fd610813..36a33d424170 100644 --- a/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java +++ b/java-translate/samples/snippets/generated/com/google/cloud/translate/v3beta1/translationservice/translatedocument/SyncTranslateDocument.java @@ -19,6 +19,7 @@ // [START translate_v3beta1_generated_TranslationService_TranslateDocument_sync] import com.google.cloud.translate.v3beta1.DocumentInputConfig; import com.google.cloud.translate.v3beta1.DocumentOutputConfig; +import com.google.cloud.translate.v3beta1.LocationName; import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; import com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig; @@ -40,7 +41,7 @@ public static void syncTranslateDocument() throws Exception { try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { TranslateDocumentRequest request = TranslateDocumentRequest.newBuilder() - .setParent("parent-995424086") + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSourceLanguageCode("sourceLanguageCode1645917472") .setTargetLanguageCode("targetLanguageCode-106414698") .setDocumentInputConfig(DocumentInputConfig.newBuilder().build()) diff --git a/java-valkey/README.md b/java-valkey/README.md index 64dd06161f93..fe815ff9e71b 100644 --- a/java-valkey/README.md +++ b/java-valkey/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-valkey - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.23.0' +implementation 'com.google.cloud:google-cloud-valkey:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.24.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-valkey.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index e9f5f8210527..a213982d2266 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-intelligence - 2.76.0 + 2.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.76.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceGrpc.java b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceGrpc.java index 625d32b1d338..f6ec1bc8b850 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceGrpc.java +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceGrpc.java @@ -24,9 +24,6 @@ * Service that implements the Video Intelligence API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/videointelligence/v1/video_intelligence.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VideoIntelligenceServiceGrpc { @@ -250,8 +247,9 @@ protected VideoIntelligenceServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation annotateVideo( - com.google.cloud.videointelligence.v1.AnnotateVideoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.videointelligence.v1.AnnotateVideoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateVideoMethod(), getCallOptions(), request); } } diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceGrpc.java b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceGrpc.java index 4faaa3035b77..bc72c97521e0 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceGrpc.java +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Video Intelligence API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/videointelligence/v1beta2/video_intelligence.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VideoIntelligenceServiceGrpc { @@ -250,8 +247,9 @@ protected VideoIntelligenceServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation annotateVideo( - com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateVideoMethod(), getCallOptions(), request); } } diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceGrpc.java b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceGrpc.java index 6443e096469d..03b335c6d3b1 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceGrpc.java +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Video Intelligence API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/videointelligence/v1p1beta1/video_intelligence.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VideoIntelligenceServiceGrpc { @@ -250,8 +247,9 @@ protected VideoIntelligenceServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation annotateVideo( - com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateVideoMethod(), getCallOptions(), request); } } diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceGrpc.java b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceGrpc.java index 454bf19cd173..a8d04a16f09d 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceGrpc.java +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceGrpc.java @@ -24,9 +24,6 @@ * Service that implements Google Cloud Video Intelligence API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VideoIntelligenceServiceGrpc { @@ -250,8 +247,9 @@ protected VideoIntelligenceServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation annotateVideo( - com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateVideoMethod(), getCallOptions(), request); } } diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java index 90e49851e5d8..5efbb5c71868 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java @@ -24,9 +24,6 @@ * Service that implements streaming Video Intelligence API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto") @io.grpc.stub.annotations.GrpcGenerated public final class StreamingVideoIntelligenceServiceGrpc { diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceGrpc.java b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceGrpc.java index 6650fc6b9c99..466b81251122 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceGrpc.java +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceGrpc.java @@ -24,9 +24,6 @@ * Service that implements the Video Intelligence API. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VideoIntelligenceServiceGrpc { @@ -250,8 +247,9 @@ protected VideoIntelligenceServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation annotateVideo( - com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnnotateVideoMethod(), getCallOptions(), request); } } diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index 3fcf29f967b6..ab346093b034 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-live-stream - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.79.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.80.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-live-stream/grpc-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceGrpc.java b/java-video-live-stream/grpc-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceGrpc.java index 8e8858b840a3..d07da4067cc4 100644 --- a/java-video-live-stream/grpc-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceGrpc.java +++ b/java-video-live-stream/grpc-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceGrpc.java @@ -28,9 +28,6 @@ * Protocol (RTMP) and Secure Reliable Transport (SRT). * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/video/livestream/v1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LivestreamServiceGrpc { @@ -2745,8 +2742,9 @@ protected LivestreamServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createChannel( - com.google.cloud.video.livestream.v1.CreateChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.CreateChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateChannelMethod(), getCallOptions(), request); } @@ -2758,8 +2756,9 @@ public com.google.longrunning.Operation createChannel( * */ public com.google.cloud.video.livestream.v1.ListChannelsResponse listChannels( - com.google.cloud.video.livestream.v1.ListChannelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.ListChannelsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListChannelsMethod(), getCallOptions(), request); } @@ -2771,8 +2770,9 @@ public com.google.cloud.video.livestream.v1.ListChannelsResponse listChannels( * */ public com.google.cloud.video.livestream.v1.Channel getChannel( - com.google.cloud.video.livestream.v1.GetChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.GetChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetChannelMethod(), getCallOptions(), request); } @@ -2784,8 +2784,9 @@ public com.google.cloud.video.livestream.v1.Channel getChannel( * */ public com.google.longrunning.Operation deleteChannel( - com.google.cloud.video.livestream.v1.DeleteChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.DeleteChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteChannelMethod(), getCallOptions(), request); } @@ -2797,8 +2798,9 @@ public com.google.longrunning.Operation deleteChannel( * */ public com.google.longrunning.Operation updateChannel( - com.google.cloud.video.livestream.v1.UpdateChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.UpdateChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateChannelMethod(), getCallOptions(), request); } @@ -2811,8 +2813,9 @@ public com.google.longrunning.Operation updateChannel( * */ public com.google.longrunning.Operation startChannel( - com.google.cloud.video.livestream.v1.StartChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.StartChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartChannelMethod(), getCallOptions(), request); } @@ -2825,8 +2828,9 @@ public com.google.longrunning.Operation startChannel( * */ public com.google.longrunning.Operation stopChannel( - com.google.cloud.video.livestream.v1.StopChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.StopChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopChannelMethod(), getCallOptions(), request); } @@ -2839,8 +2843,9 @@ public com.google.longrunning.Operation stopChannel( * */ public com.google.longrunning.Operation startDistribution( - com.google.cloud.video.livestream.v1.StartDistributionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.StartDistributionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartDistributionMethod(), getCallOptions(), request); } @@ -2852,8 +2857,9 @@ public com.google.longrunning.Operation startDistribution( * */ public com.google.longrunning.Operation stopDistribution( - com.google.cloud.video.livestream.v1.StopDistributionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.StopDistributionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopDistributionMethod(), getCallOptions(), request); } @@ -2865,8 +2871,9 @@ public com.google.longrunning.Operation stopDistribution( * */ public com.google.longrunning.Operation createInput( - com.google.cloud.video.livestream.v1.CreateInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.CreateInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateInputMethod(), getCallOptions(), request); } @@ -2878,8 +2885,9 @@ public com.google.longrunning.Operation createInput( * */ public com.google.cloud.video.livestream.v1.ListInputsResponse listInputs( - com.google.cloud.video.livestream.v1.ListInputsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.ListInputsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInputsMethod(), getCallOptions(), request); } @@ -2891,8 +2899,9 @@ public com.google.cloud.video.livestream.v1.ListInputsResponse listInputs( * */ public com.google.cloud.video.livestream.v1.Input getInput( - com.google.cloud.video.livestream.v1.GetInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.GetInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInputMethod(), getCallOptions(), request); } @@ -2904,8 +2913,9 @@ public com.google.cloud.video.livestream.v1.Input getInput( * */ public com.google.longrunning.Operation deleteInput( - com.google.cloud.video.livestream.v1.DeleteInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.DeleteInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteInputMethod(), getCallOptions(), request); } @@ -2917,8 +2927,9 @@ public com.google.longrunning.Operation deleteInput( * */ public com.google.longrunning.Operation updateInput( - com.google.cloud.video.livestream.v1.UpdateInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.UpdateInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateInputMethod(), getCallOptions(), request); } @@ -2930,8 +2941,9 @@ public com.google.longrunning.Operation updateInput( * */ public com.google.cloud.video.livestream.v1.PreviewInputResponse previewInput( - com.google.cloud.video.livestream.v1.PreviewInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.PreviewInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPreviewInputMethod(), getCallOptions(), request); } @@ -2943,8 +2955,9 @@ public com.google.cloud.video.livestream.v1.PreviewInputResponse previewInput( * */ public com.google.cloud.video.livestream.v1.Event createEvent( - com.google.cloud.video.livestream.v1.CreateEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.CreateEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEventMethod(), getCallOptions(), request); } @@ -2956,8 +2969,9 @@ public com.google.cloud.video.livestream.v1.Event createEvent( * */ public com.google.cloud.video.livestream.v1.ListEventsResponse listEvents( - com.google.cloud.video.livestream.v1.ListEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.ListEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEventsMethod(), getCallOptions(), request); } @@ -2969,8 +2983,9 @@ public com.google.cloud.video.livestream.v1.ListEventsResponse listEvents( * */ public com.google.cloud.video.livestream.v1.Event getEvent( - com.google.cloud.video.livestream.v1.GetEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.GetEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEventMethod(), getCallOptions(), request); } @@ -2982,8 +2997,9 @@ public com.google.cloud.video.livestream.v1.Event getEvent( * */ public com.google.protobuf.Empty deleteEvent( - com.google.cloud.video.livestream.v1.DeleteEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.DeleteEventRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEventMethod(), getCallOptions(), request); } @@ -2995,8 +3011,9 @@ public com.google.protobuf.Empty deleteEvent( * */ public com.google.cloud.video.livestream.v1.ListClipsResponse listClips( - com.google.cloud.video.livestream.v1.ListClipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.ListClipsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClipsMethod(), getCallOptions(), request); } @@ -3008,8 +3025,9 @@ public com.google.cloud.video.livestream.v1.ListClipsResponse listClips( * */ public com.google.cloud.video.livestream.v1.Clip getClip( - com.google.cloud.video.livestream.v1.GetClipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.GetClipRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClipMethod(), getCallOptions(), request); } @@ -3021,8 +3039,9 @@ public com.google.cloud.video.livestream.v1.Clip getClip( * */ public com.google.longrunning.Operation createClip( - com.google.cloud.video.livestream.v1.CreateClipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.CreateClipRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClipMethod(), getCallOptions(), request); } @@ -3035,8 +3054,9 @@ public com.google.longrunning.Operation createClip( * */ public com.google.longrunning.Operation deleteClip( - com.google.cloud.video.livestream.v1.DeleteClipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.DeleteClipRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClipMethod(), getCallOptions(), request); } @@ -3048,8 +3068,9 @@ public com.google.longrunning.Operation deleteClip( * */ public com.google.longrunning.Operation createDvrSession( - com.google.cloud.video.livestream.v1.CreateDvrSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.CreateDvrSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDvrSessionMethod(), getCallOptions(), request); } @@ -3061,8 +3082,9 @@ public com.google.longrunning.Operation createDvrSession( * */ public com.google.cloud.video.livestream.v1.ListDvrSessionsResponse listDvrSessions( - com.google.cloud.video.livestream.v1.ListDvrSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.ListDvrSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDvrSessionsMethod(), getCallOptions(), request); } @@ -3074,8 +3096,9 @@ public com.google.cloud.video.livestream.v1.ListDvrSessionsResponse listDvrSessi * */ public com.google.cloud.video.livestream.v1.DvrSession getDvrSession( - com.google.cloud.video.livestream.v1.GetDvrSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.GetDvrSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDvrSessionMethod(), getCallOptions(), request); } @@ -3087,8 +3110,9 @@ public com.google.cloud.video.livestream.v1.DvrSession getDvrSession( * */ public com.google.longrunning.Operation deleteDvrSession( - com.google.cloud.video.livestream.v1.DeleteDvrSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.DeleteDvrSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDvrSessionMethod(), getCallOptions(), request); } @@ -3100,8 +3124,9 @@ public com.google.longrunning.Operation deleteDvrSession( * */ public com.google.longrunning.Operation updateDvrSession( - com.google.cloud.video.livestream.v1.UpdateDvrSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.UpdateDvrSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDvrSessionMethod(), getCallOptions(), request); } @@ -3114,8 +3139,9 @@ public com.google.longrunning.Operation updateDvrSession( * */ public com.google.longrunning.Operation createAsset( - com.google.cloud.video.livestream.v1.CreateAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.CreateAssetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAssetMethod(), getCallOptions(), request); } @@ -3127,8 +3153,9 @@ public com.google.longrunning.Operation createAsset( * */ public com.google.longrunning.Operation deleteAsset( - com.google.cloud.video.livestream.v1.DeleteAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.DeleteAssetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAssetMethod(), getCallOptions(), request); } @@ -3140,8 +3167,9 @@ public com.google.longrunning.Operation deleteAsset( * */ public com.google.cloud.video.livestream.v1.Asset getAsset( - com.google.cloud.video.livestream.v1.GetAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.GetAssetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAssetMethod(), getCallOptions(), request); } @@ -3153,8 +3181,9 @@ public com.google.cloud.video.livestream.v1.Asset getAsset( * */ public com.google.cloud.video.livestream.v1.ListAssetsResponse listAssets( - com.google.cloud.video.livestream.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.ListAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } @@ -3166,8 +3195,9 @@ public com.google.cloud.video.livestream.v1.ListAssetsResponse listAssets( * */ public com.google.cloud.video.livestream.v1.Pool getPool( - com.google.cloud.video.livestream.v1.GetPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.GetPoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPoolMethod(), getCallOptions(), request); } @@ -3179,8 +3209,9 @@ public com.google.cloud.video.livestream.v1.Pool getPool( * */ public com.google.longrunning.Operation updatePool( - com.google.cloud.video.livestream.v1.UpdatePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.livestream.v1.UpdatePoolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePoolMethod(), getCallOptions(), request); } } diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 8832e06c7563..363253f832f5 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-stitcher - 0.77.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.77.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceGrpc.java b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceGrpc.java index 0d13c9f6b569..e970951a9b80 100644 --- a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceGrpc.java +++ b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceGrpc.java @@ -28,9 +28,6 @@ * content with any standard VMAP compliant ad server. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/video/stitcher/v1/video_stitcher_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VideoStitcherServiceGrpc { @@ -2531,8 +2528,9 @@ protected VideoStitcherServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createCdnKey( - com.google.cloud.video.stitcher.v1.CreateCdnKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.CreateCdnKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCdnKeyMethod(), getCallOptions(), request); } @@ -2544,8 +2542,9 @@ public com.google.longrunning.Operation createCdnKey( * */ public com.google.cloud.video.stitcher.v1.ListCdnKeysResponse listCdnKeys( - com.google.cloud.video.stitcher.v1.ListCdnKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.ListCdnKeysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCdnKeysMethod(), getCallOptions(), request); } @@ -2557,8 +2556,9 @@ public com.google.cloud.video.stitcher.v1.ListCdnKeysResponse listCdnKeys( * */ public com.google.cloud.video.stitcher.v1.CdnKey getCdnKey( - com.google.cloud.video.stitcher.v1.GetCdnKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.GetCdnKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCdnKeyMethod(), getCallOptions(), request); } @@ -2570,8 +2570,9 @@ public com.google.cloud.video.stitcher.v1.CdnKey getCdnKey( * */ public com.google.longrunning.Operation deleteCdnKey( - com.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCdnKeyMethod(), getCallOptions(), request); } @@ -2584,8 +2585,9 @@ public com.google.longrunning.Operation deleteCdnKey( * */ public com.google.longrunning.Operation updateCdnKey( - com.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCdnKeyMethod(), getCallOptions(), request); } @@ -2598,8 +2600,9 @@ public com.google.longrunning.Operation updateCdnKey( * */ public com.google.cloud.video.stitcher.v1.VodSession createVodSession( - com.google.cloud.video.stitcher.v1.CreateVodSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.CreateVodSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVodSessionMethod(), getCallOptions(), request); } @@ -2612,8 +2615,9 @@ public com.google.cloud.video.stitcher.v1.VodSession createVodSession( * */ public com.google.cloud.video.stitcher.v1.VodSession getVodSession( - com.google.cloud.video.stitcher.v1.GetVodSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.GetVodSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVodSessionMethod(), getCallOptions(), request); } @@ -2626,8 +2630,9 @@ public com.google.cloud.video.stitcher.v1.VodSession getVodSession( * */ public com.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse listVodStitchDetails( - com.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVodStitchDetailsMethod(), getCallOptions(), request); } @@ -2639,8 +2644,9 @@ public com.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse listVodSt * */ public com.google.cloud.video.stitcher.v1.VodStitchDetail getVodStitchDetail( - com.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVodStitchDetailMethod(), getCallOptions(), request); } @@ -2652,8 +2658,9 @@ public com.google.cloud.video.stitcher.v1.VodStitchDetail getVodStitchDetail( * */ public com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse listVodAdTagDetails( - com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVodAdTagDetailsMethod(), getCallOptions(), request); } @@ -2665,8 +2672,9 @@ public com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse listVodAdT * */ public com.google.cloud.video.stitcher.v1.VodAdTagDetail getVodAdTagDetail( - com.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVodAdTagDetailMethod(), getCallOptions(), request); } @@ -2678,8 +2686,9 @@ public com.google.cloud.video.stitcher.v1.VodAdTagDetail getVodAdTagDetail( * */ public com.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse listLiveAdTagDetails( - com.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLiveAdTagDetailsMethod(), getCallOptions(), request); } @@ -2691,8 +2700,9 @@ public com.google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse listLiveA * */ public com.google.cloud.video.stitcher.v1.LiveAdTagDetail getLiveAdTagDetail( - com.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLiveAdTagDetailMethod(), getCallOptions(), request); } @@ -2704,8 +2714,9 @@ public com.google.cloud.video.stitcher.v1.LiveAdTagDetail getLiveAdTagDetail( * */ public com.google.longrunning.Operation createSlate( - com.google.cloud.video.stitcher.v1.CreateSlateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.CreateSlateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSlateMethod(), getCallOptions(), request); } @@ -2717,8 +2728,9 @@ public com.google.longrunning.Operation createSlate( * */ public com.google.cloud.video.stitcher.v1.ListSlatesResponse listSlates( - com.google.cloud.video.stitcher.v1.ListSlatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.ListSlatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSlatesMethod(), getCallOptions(), request); } @@ -2730,8 +2742,8 @@ public com.google.cloud.video.stitcher.v1.ListSlatesResponse listSlates( * */ public com.google.cloud.video.stitcher.v1.Slate getSlate( - com.google.cloud.video.stitcher.v1.GetSlateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.GetSlateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSlateMethod(), getCallOptions(), request); } @@ -2743,8 +2755,9 @@ public com.google.cloud.video.stitcher.v1.Slate getSlate( * */ public com.google.longrunning.Operation updateSlate( - com.google.cloud.video.stitcher.v1.UpdateSlateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.UpdateSlateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSlateMethod(), getCallOptions(), request); } @@ -2756,8 +2769,9 @@ public com.google.longrunning.Operation updateSlate( * */ public com.google.longrunning.Operation deleteSlate( - com.google.cloud.video.stitcher.v1.DeleteSlateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.DeleteSlateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSlateMethod(), getCallOptions(), request); } @@ -2769,8 +2783,9 @@ public com.google.longrunning.Operation deleteSlate( * */ public com.google.cloud.video.stitcher.v1.LiveSession createLiveSession( - com.google.cloud.video.stitcher.v1.CreateLiveSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.CreateLiveSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateLiveSessionMethod(), getCallOptions(), request); } @@ -2782,8 +2797,9 @@ public com.google.cloud.video.stitcher.v1.LiveSession createLiveSession( * */ public com.google.cloud.video.stitcher.v1.LiveSession getLiveSession( - com.google.cloud.video.stitcher.v1.GetLiveSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.GetLiveSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLiveSessionMethod(), getCallOptions(), request); } @@ -2796,8 +2812,9 @@ public com.google.cloud.video.stitcher.v1.LiveSession getLiveSession( * */ public com.google.longrunning.Operation createLiveConfig( - com.google.cloud.video.stitcher.v1.CreateLiveConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.CreateLiveConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateLiveConfigMethod(), getCallOptions(), request); } @@ -2810,8 +2827,9 @@ public com.google.longrunning.Operation createLiveConfig( * */ public com.google.cloud.video.stitcher.v1.ListLiveConfigsResponse listLiveConfigs( - com.google.cloud.video.stitcher.v1.ListLiveConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.ListLiveConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLiveConfigsMethod(), getCallOptions(), request); } @@ -2824,8 +2842,9 @@ public com.google.cloud.video.stitcher.v1.ListLiveConfigsResponse listLiveConfig * */ public com.google.cloud.video.stitcher.v1.LiveConfig getLiveConfig( - com.google.cloud.video.stitcher.v1.GetLiveConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.GetLiveConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLiveConfigMethod(), getCallOptions(), request); } @@ -2837,8 +2856,9 @@ public com.google.cloud.video.stitcher.v1.LiveConfig getLiveConfig( * */ public com.google.longrunning.Operation deleteLiveConfig( - com.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLiveConfigMethod(), getCallOptions(), request); } @@ -2851,8 +2871,9 @@ public com.google.longrunning.Operation deleteLiveConfig( * */ public com.google.longrunning.Operation updateLiveConfig( - com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateLiveConfigMethod(), getCallOptions(), request); } @@ -2865,8 +2886,9 @@ public com.google.longrunning.Operation updateLiveConfig( * */ public com.google.longrunning.Operation createVodConfig( - com.google.cloud.video.stitcher.v1.CreateVodConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVodConfigMethod(), getCallOptions(), request); } @@ -2879,8 +2901,9 @@ public com.google.longrunning.Operation createVodConfig( * */ public com.google.cloud.video.stitcher.v1.ListVodConfigsResponse listVodConfigs( - com.google.cloud.video.stitcher.v1.ListVodConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVodConfigsMethod(), getCallOptions(), request); } @@ -2893,8 +2916,9 @@ public com.google.cloud.video.stitcher.v1.ListVodConfigsResponse listVodConfigs( * */ public com.google.cloud.video.stitcher.v1.VodConfig getVodConfig( - com.google.cloud.video.stitcher.v1.GetVodConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.GetVodConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVodConfigMethod(), getCallOptions(), request); } @@ -2906,8 +2930,9 @@ public com.google.cloud.video.stitcher.v1.VodConfig getVodConfig( * */ public com.google.longrunning.Operation deleteVodConfig( - com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVodConfigMethod(), getCallOptions(), request); } @@ -2920,8 +2945,9 @@ public com.google.longrunning.Operation deleteVodConfig( * */ public com.google.longrunning.Operation updateVodConfig( - com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVodConfigMethod(), getCallOptions(), request); } } diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index 094d47ecb5b4..8968f45db1d4 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-transcoder - 1.76.0 + 1.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.76.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceGrpc.java b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceGrpc.java index 95fb9ba6dfec..947125893542 100644 --- a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceGrpc.java +++ b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceGrpc.java @@ -29,9 +29,6 @@ * concatenation, and digital ad-stitch ready content generation. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/video/transcoder/v1/services.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TranscoderServiceGrpc { @@ -793,8 +790,9 @@ protected TranscoderServiceBlockingV2Stub build( * */ public com.google.cloud.video.transcoder.v1.Job createJob( - com.google.cloud.video.transcoder.v1.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.transcoder.v1.CreateJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } @@ -806,8 +804,9 @@ public com.google.cloud.video.transcoder.v1.Job createJob( * */ public com.google.cloud.video.transcoder.v1.ListJobsResponse listJobs( - com.google.cloud.video.transcoder.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.transcoder.v1.ListJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } @@ -819,8 +818,8 @@ public com.google.cloud.video.transcoder.v1.ListJobsResponse listJobs( * */ public com.google.cloud.video.transcoder.v1.Job getJob( - com.google.cloud.video.transcoder.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.transcoder.v1.GetJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobMethod(), getCallOptions(), request); } @@ -832,8 +831,9 @@ public com.google.cloud.video.transcoder.v1.Job getJob( * */ public com.google.protobuf.Empty deleteJob( - com.google.cloud.video.transcoder.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.transcoder.v1.DeleteJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } @@ -845,8 +845,9 @@ public com.google.protobuf.Empty deleteJob( * */ public com.google.cloud.video.transcoder.v1.JobTemplate createJobTemplate( - com.google.cloud.video.transcoder.v1.CreateJobTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.transcoder.v1.CreateJobTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateJobTemplateMethod(), getCallOptions(), request); } @@ -858,8 +859,9 @@ public com.google.cloud.video.transcoder.v1.JobTemplate createJobTemplate( * */ public com.google.cloud.video.transcoder.v1.ListJobTemplatesResponse listJobTemplates( - com.google.cloud.video.transcoder.v1.ListJobTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.transcoder.v1.ListJobTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListJobTemplatesMethod(), getCallOptions(), request); } @@ -871,8 +873,9 @@ public com.google.cloud.video.transcoder.v1.ListJobTemplatesResponse listJobTemp * */ public com.google.cloud.video.transcoder.v1.JobTemplate getJobTemplate( - com.google.cloud.video.transcoder.v1.GetJobTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.transcoder.v1.GetJobTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetJobTemplateMethod(), getCallOptions(), request); } @@ -884,8 +887,9 @@ public com.google.cloud.video.transcoder.v1.JobTemplate getJobTemplate( * */ public com.google.protobuf.Empty deleteJobTemplate( - com.google.cloud.video.transcoder.v1.DeleteJobTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.video.transcoder.v1.DeleteJobTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteJobTemplateMethod(), getCallOptions(), request); } } diff --git a/java-vision/README.md b/java-vision/README.md index 98c0ef8d9630..1db973df4e96 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.75.0 + 3.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.75.0' +implementation 'com.google.cloud:google-cloud-vision:3.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vision/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java b/java-vision/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java index 6f5b4d6bf200..4ab1969f1c4d 100644 --- a/java-vision/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java +++ b/java-vision/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorGrpc.java @@ -26,9 +26,6 @@ * ImageAnnotator service returns detected entities from the images. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vision/v1/image_annotator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ImageAnnotatorGrpc { @@ -523,8 +520,9 @@ protected ImageAnnotatorBlockingV2Stub build( * */ public com.google.cloud.vision.v1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.BatchAnnotateImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } @@ -541,8 +539,9 @@ public com.google.cloud.vision.v1.BatchAnnotateImagesResponse batchAnnotateImage * */ public com.google.cloud.vision.v1.BatchAnnotateFilesResponse batchAnnotateFiles( - com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.BatchAnnotateFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchAnnotateFilesMethod(), getCallOptions(), request); } @@ -560,8 +559,9 @@ public com.google.cloud.vision.v1.BatchAnnotateFilesResponse batchAnnotateFiles( * */ public com.google.longrunning.Operation asyncBatchAnnotateImages( - com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAsyncBatchAnnotateImagesMethod(), getCallOptions(), request); } @@ -578,8 +578,9 @@ public com.google.longrunning.Operation asyncBatchAnnotateImages( * */ public com.google.longrunning.Operation asyncBatchAnnotateFiles( - com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } diff --git a/java-vision/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java b/java-vision/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java index d73f5c0cf467..f13c63dc9d6d 100644 --- a/java-vision/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java +++ b/java-vision/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java @@ -35,9 +35,6 @@ * `projects/*/locations/*/products/*/referenceImages/*` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vision/v1/product_search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductSearchGrpc { @@ -1836,8 +1833,8 @@ protected ProductSearchBlockingV2Stub build( * */ public com.google.cloud.vision.v1.ProductSet createProductSet( - com.google.cloud.vision.v1.CreateProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.CreateProductSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProductSetMethod(), getCallOptions(), request); } @@ -1852,8 +1849,8 @@ public com.google.cloud.vision.v1.ProductSet createProductSet( * */ public com.google.cloud.vision.v1.ListProductSetsResponse listProductSets( - com.google.cloud.vision.v1.ListProductSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.ListProductSetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductSetsMethod(), getCallOptions(), request); } @@ -1867,8 +1864,8 @@ public com.google.cloud.vision.v1.ListProductSetsResponse listProductSets( * */ public com.google.cloud.vision.v1.ProductSet getProductSet( - com.google.cloud.vision.v1.GetProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.GetProductSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductSetMethod(), getCallOptions(), request); } @@ -1885,8 +1882,8 @@ public com.google.cloud.vision.v1.ProductSet getProductSet( * */ public com.google.cloud.vision.v1.ProductSet updateProductSet( - com.google.cloud.vision.v1.UpdateProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.UpdateProductSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductSetMethod(), getCallOptions(), request); } @@ -1900,8 +1897,8 @@ public com.google.cloud.vision.v1.ProductSet updateProductSet( * */ public com.google.protobuf.Empty deleteProductSet( - com.google.cloud.vision.v1.DeleteProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.DeleteProductSetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductSetMethod(), getCallOptions(), request); } @@ -1918,8 +1915,8 @@ public com.google.protobuf.Empty deleteProductSet( * */ public com.google.cloud.vision.v1.Product createProduct( - com.google.cloud.vision.v1.CreateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.CreateProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } @@ -1933,8 +1930,8 @@ public com.google.cloud.vision.v1.Product createProduct( * */ public com.google.cloud.vision.v1.ListProductsResponse listProducts( - com.google.cloud.vision.v1.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.ListProductsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } @@ -1948,8 +1945,8 @@ public com.google.cloud.vision.v1.ListProductsResponse listProducts( * */ public com.google.cloud.vision.v1.Product getProduct( - com.google.cloud.vision.v1.GetProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.GetProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } @@ -1972,8 +1969,8 @@ public com.google.cloud.vision.v1.Product getProduct( * */ public com.google.cloud.vision.v1.Product updateProduct( - com.google.cloud.vision.v1.UpdateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.UpdateProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } @@ -1988,8 +1985,8 @@ public com.google.cloud.vision.v1.Product updateProduct( * */ public com.google.protobuf.Empty deleteProduct( - com.google.cloud.vision.v1.DeleteProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.DeleteProductRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } @@ -2015,8 +2012,9 @@ public com.google.protobuf.Empty deleteProduct( * */ public com.google.cloud.vision.v1.ReferenceImage createReferenceImage( - com.google.cloud.vision.v1.CreateReferenceImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.CreateReferenceImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReferenceImageMethod(), getCallOptions(), request); } @@ -2032,8 +2030,9 @@ public com.google.cloud.vision.v1.ReferenceImage createReferenceImage( * */ public com.google.protobuf.Empty deleteReferenceImage( - com.google.cloud.vision.v1.DeleteReferenceImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.DeleteReferenceImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReferenceImageMethod(), getCallOptions(), request); } @@ -2049,8 +2048,9 @@ public com.google.protobuf.Empty deleteReferenceImage( * */ public com.google.cloud.vision.v1.ListReferenceImagesResponse listReferenceImages( - com.google.cloud.vision.v1.ListReferenceImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.ListReferenceImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReferenceImagesMethod(), getCallOptions(), request); } @@ -2064,8 +2064,9 @@ public com.google.cloud.vision.v1.ListReferenceImagesResponse listReferenceImage * */ public com.google.cloud.vision.v1.ReferenceImage getReferenceImage( - com.google.cloud.vision.v1.GetReferenceImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.GetReferenceImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReferenceImageMethod(), getCallOptions(), request); } @@ -2081,8 +2082,9 @@ public com.google.cloud.vision.v1.ReferenceImage getReferenceImage( * */ public com.google.protobuf.Empty addProductToProductSet( - com.google.cloud.vision.v1.AddProductToProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.AddProductToProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddProductToProductSetMethod(), getCallOptions(), request); } @@ -2094,8 +2096,9 @@ public com.google.protobuf.Empty addProductToProductSet( * */ public com.google.protobuf.Empty removeProductFromProductSet( - com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.RemoveProductFromProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveProductFromProductSetMethod(), getCallOptions(), request); } @@ -2111,8 +2114,9 @@ public com.google.protobuf.Empty removeProductFromProductSet( * */ public com.google.cloud.vision.v1.ListProductsInProductSetResponse listProductsInProductSet( - com.google.cloud.vision.v1.ListProductsInProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.ListProductsInProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsInProductSetMethod(), getCallOptions(), request); } @@ -2132,8 +2136,9 @@ public com.google.cloud.vision.v1.ListProductsInProductSetResponse listProductsI * */ public com.google.longrunning.Operation importProductSets( - com.google.cloud.vision.v1.ImportProductSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.ImportProductSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportProductSetsMethod(), getCallOptions(), request); } @@ -2163,8 +2168,8 @@ public com.google.longrunning.Operation importProductSets( * */ public com.google.longrunning.Operation purgeProducts( - com.google.cloud.vision.v1.PurgeProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1.PurgeProductsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeProductsMethod(), getCallOptions(), request); } } diff --git a/java-vision/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java b/java-vision/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java index 1944973928db..4bfbc876cfb6 100644 --- a/java-vision/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java +++ b/java-vision/grpc-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorGrpc.java @@ -26,9 +26,6 @@ * ImageAnnotator service returns detected entities from the images. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vision/v1p1beta1/image_annotator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ImageAnnotatorGrpc { @@ -253,8 +250,9 @@ protected ImageAnnotatorBlockingV2Stub build( * */ public com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } } diff --git a/java-vision/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java b/java-vision/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java index 526f03ae1ff6..95c73b417c81 100644 --- a/java-vision/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java +++ b/java-vision/grpc-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorGrpc.java @@ -26,9 +26,6 @@ * ImageAnnotator service returns detected entities from the images. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vision/v1p2beta1/image_annotator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ImageAnnotatorGrpc { @@ -342,8 +339,9 @@ protected ImageAnnotatorBlockingV2Stub build( * */ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } @@ -360,8 +358,9 @@ public com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse batchAnnota * */ public com.google.longrunning.Operation asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } diff --git a/java-vision/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java b/java-vision/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java index 318179e97a79..2f5c19750b5c 100644 --- a/java-vision/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java +++ b/java-vision/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorGrpc.java @@ -26,9 +26,6 @@ * ImageAnnotator service returns detected entities from the images. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vision/v1p3beta1/image_annotator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ImageAnnotatorGrpc { @@ -342,8 +339,9 @@ protected ImageAnnotatorBlockingV2Stub build( * */ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } @@ -360,8 +358,9 @@ public com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse batchAnnota * */ public com.google.longrunning.Operation asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } diff --git a/java-vision/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java b/java-vision/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java index 05ac818d6351..d157b8f7e0d1 100644 --- a/java-vision/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java +++ b/java-vision/grpc-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchGrpc.java @@ -33,9 +33,6 @@ * `projects/*/locations/*/products/*/referenceImages/*` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vision/v1p3beta1/product_search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductSearchGrpc { @@ -1779,8 +1776,9 @@ protected ProductSearchBlockingV2Stub build( * */ public com.google.cloud.vision.v1p3beta1.ProductSet createProductSet( - com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.CreateProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProductSetMethod(), getCallOptions(), request); } @@ -1795,8 +1793,9 @@ public com.google.cloud.vision.v1p3beta1.ProductSet createProductSet( * */ public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse listProductSets( - com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.ListProductSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductSetsMethod(), getCallOptions(), request); } @@ -1810,8 +1809,9 @@ public com.google.cloud.vision.v1p3beta1.ListProductSetsResponse listProductSets * */ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet( - com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.GetProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductSetMethod(), getCallOptions(), request); } @@ -1828,8 +1828,9 @@ public com.google.cloud.vision.v1p3beta1.ProductSet getProductSet( * */ public com.google.cloud.vision.v1p3beta1.ProductSet updateProductSet( - com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductSetMethod(), getCallOptions(), request); } @@ -1845,8 +1846,9 @@ public com.google.cloud.vision.v1p3beta1.ProductSet updateProductSet( * */ public com.google.protobuf.Empty deleteProductSet( - com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductSetMethod(), getCallOptions(), request); } @@ -1863,8 +1865,9 @@ public com.google.protobuf.Empty deleteProductSet( * */ public com.google.cloud.vision.v1p3beta1.Product createProduct( - com.google.cloud.vision.v1p3beta1.CreateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.CreateProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } @@ -1878,8 +1881,9 @@ public com.google.cloud.vision.v1p3beta1.Product createProduct( * */ public com.google.cloud.vision.v1p3beta1.ListProductsResponse listProducts( - com.google.cloud.vision.v1p3beta1.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.ListProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } @@ -1893,8 +1897,9 @@ public com.google.cloud.vision.v1p3beta1.ListProductsResponse listProducts( * */ public com.google.cloud.vision.v1p3beta1.Product getProduct( - com.google.cloud.vision.v1p3beta1.GetProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.GetProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } @@ -1916,8 +1921,9 @@ public com.google.cloud.vision.v1p3beta1.Product getProduct( * */ public com.google.cloud.vision.v1p3beta1.Product updateProduct( - com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.UpdateProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } @@ -1934,8 +1940,9 @@ public com.google.cloud.vision.v1p3beta1.Product updateProduct( * */ public com.google.protobuf.Empty deleteProduct( - com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.DeleteProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } @@ -1961,8 +1968,9 @@ public com.google.protobuf.Empty deleteProduct( * */ public com.google.cloud.vision.v1p3beta1.ReferenceImage createReferenceImage( - com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReferenceImageMethod(), getCallOptions(), request); } @@ -1980,8 +1988,9 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage createReferenceImage( * */ public com.google.protobuf.Empty deleteReferenceImage( - com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReferenceImageMethod(), getCallOptions(), request); } @@ -1997,8 +2006,9 @@ public com.google.protobuf.Empty deleteReferenceImage( * */ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse listReferenceImages( - com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReferenceImagesMethod(), getCallOptions(), request); } @@ -2012,8 +2022,9 @@ public com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse listReferen * */ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage( - com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReferenceImageMethod(), getCallOptions(), request); } @@ -2029,8 +2040,9 @@ public com.google.cloud.vision.v1p3beta1.ReferenceImage getReferenceImage( * */ public com.google.protobuf.Empty addProductToProductSet( - com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddProductToProductSetMethod(), getCallOptions(), request); } @@ -2044,8 +2056,9 @@ public com.google.protobuf.Empty addProductToProductSet( * */ public com.google.protobuf.Empty removeProductFromProductSet( - com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveProductFromProductSetMethod(), getCallOptions(), request); } @@ -2062,8 +2075,9 @@ public com.google.protobuf.Empty removeProductFromProductSet( */ public com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse listProductsInProductSet( - com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsInProductSetMethod(), getCallOptions(), request); } @@ -2083,8 +2097,9 @@ public com.google.protobuf.Empty removeProductFromProductSet( * */ public com.google.longrunning.Operation importProductSets( - com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportProductSetsMethod(), getCallOptions(), request); } } diff --git a/java-vision/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java b/java-vision/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java index dd9cbb47741e..ecc398e9eb0d 100644 --- a/java-vision/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java +++ b/java-vision/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java @@ -26,9 +26,6 @@ * ImageAnnotator service returns detected entities from the images. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vision/v1p4beta1/image_annotator.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ImageAnnotatorGrpc { @@ -524,8 +521,9 @@ protected ImageAnnotatorBlockingV2Stub build( * */ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse batchAnnotateImages( - com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchAnnotateImagesMethod(), getCallOptions(), request); } @@ -542,8 +540,9 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse batchAnnota * */ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse batchAnnotateFiles( - com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchAnnotateFilesMethod(), getCallOptions(), request); } @@ -561,8 +560,9 @@ public com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse batchAnnotat * */ public com.google.longrunning.Operation asyncBatchAnnotateImages( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAsyncBatchAnnotateImagesMethod(), getCallOptions(), request); } @@ -579,8 +579,9 @@ public com.google.longrunning.Operation asyncBatchAnnotateImages( * */ public com.google.longrunning.Operation asyncBatchAnnotateFiles( - com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAsyncBatchAnnotateFilesMethod(), getCallOptions(), request); } } diff --git a/java-vision/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java b/java-vision/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java index 2a41a86d8718..76cec4659dd3 100644 --- a/java-vision/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java +++ b/java-vision/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java @@ -37,9 +37,6 @@ * `projects/*/locations/*/products/*/referenceImages/*` * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vision/v1p4beta1/product_search_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductSearchGrpc { @@ -1895,8 +1892,9 @@ protected ProductSearchBlockingV2Stub build( * */ public com.google.cloud.vision.v1p4beta1.ProductSet createProductSet( - com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.CreateProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProductSetMethod(), getCallOptions(), request); } @@ -1911,8 +1909,9 @@ public com.google.cloud.vision.v1p4beta1.ProductSet createProductSet( * */ public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse listProductSets( - com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.ListProductSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductSetsMethod(), getCallOptions(), request); } @@ -1926,8 +1925,9 @@ public com.google.cloud.vision.v1p4beta1.ListProductSetsResponse listProductSets * */ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet( - com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.GetProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductSetMethod(), getCallOptions(), request); } @@ -1944,8 +1944,9 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet( * */ public com.google.cloud.vision.v1p4beta1.ProductSet updateProductSet( - com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductSetMethod(), getCallOptions(), request); } @@ -1959,8 +1960,9 @@ public com.google.cloud.vision.v1p4beta1.ProductSet updateProductSet( * */ public com.google.protobuf.Empty deleteProductSet( - com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductSetMethod(), getCallOptions(), request); } @@ -1977,8 +1979,9 @@ public com.google.protobuf.Empty deleteProductSet( * */ public com.google.cloud.vision.v1p4beta1.Product createProduct( - com.google.cloud.vision.v1p4beta1.CreateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.CreateProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProductMethod(), getCallOptions(), request); } @@ -1992,8 +1995,9 @@ public com.google.cloud.vision.v1p4beta1.Product createProduct( * */ public com.google.cloud.vision.v1p4beta1.ListProductsResponse listProducts( - com.google.cloud.vision.v1p4beta1.ListProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.ListProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsMethod(), getCallOptions(), request); } @@ -2007,8 +2011,9 @@ public com.google.cloud.vision.v1p4beta1.ListProductsResponse listProducts( * */ public com.google.cloud.vision.v1p4beta1.Product getProduct( - com.google.cloud.vision.v1p4beta1.GetProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.GetProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProductMethod(), getCallOptions(), request); } @@ -2031,8 +2036,9 @@ public com.google.cloud.vision.v1p4beta1.Product getProduct( * */ public com.google.cloud.vision.v1p4beta1.Product updateProduct( - com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.UpdateProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProductMethod(), getCallOptions(), request); } @@ -2047,8 +2053,9 @@ public com.google.cloud.vision.v1p4beta1.Product updateProduct( * */ public com.google.protobuf.Empty deleteProduct( - com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.DeleteProductRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProductMethod(), getCallOptions(), request); } @@ -2074,8 +2081,9 @@ public com.google.protobuf.Empty deleteProduct( * */ public com.google.cloud.vision.v1p4beta1.ReferenceImage createReferenceImage( - com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateReferenceImageMethod(), getCallOptions(), request); } @@ -2091,8 +2099,9 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage createReferenceImage( * */ public com.google.protobuf.Empty deleteReferenceImage( - com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteReferenceImageMethod(), getCallOptions(), request); } @@ -2108,8 +2117,9 @@ public com.google.protobuf.Empty deleteReferenceImage( * */ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse listReferenceImages( - com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReferenceImagesMethod(), getCallOptions(), request); } @@ -2123,8 +2133,9 @@ public com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse listReferen * */ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage( - com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReferenceImageMethod(), getCallOptions(), request); } @@ -2140,8 +2151,9 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage( * */ public com.google.protobuf.Empty addProductToProductSet( - com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddProductToProductSetMethod(), getCallOptions(), request); } @@ -2153,8 +2165,9 @@ public com.google.protobuf.Empty addProductToProductSet( * */ public com.google.protobuf.Empty removeProductFromProductSet( - com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveProductFromProductSetMethod(), getCallOptions(), request); } @@ -2171,8 +2184,9 @@ public com.google.protobuf.Empty removeProductFromProductSet( */ public com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse listProductsInProductSet( - com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProductsInProductSetMethod(), getCallOptions(), request); } @@ -2192,8 +2206,9 @@ public com.google.protobuf.Empty removeProductFromProductSet( * */ public com.google.longrunning.Operation importProductSets( - com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportProductSetsMethod(), getCallOptions(), request); } @@ -2223,8 +2238,9 @@ public com.google.longrunning.Operation importProductSets( * */ public com.google.longrunning.Operation purgeProducts( - com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeProductsMethod(), getCallOptions(), request); } } diff --git a/java-visionai/README.md b/java-visionai/README.md index 86ceef089978..2a13db16572f 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.34.0' +implementation 'com.google.cloud:google-cloud-visionai:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.35.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AppPlatformGrpc.java b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AppPlatformGrpc.java index 7a3ecfc0fcf5..ffad87badf08 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AppPlatformGrpc.java +++ b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AppPlatformGrpc.java @@ -24,9 +24,6 @@ * Service describing handlers for resources * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/visionai/v1/platform.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AppPlatformGrpc { @@ -2152,8 +2149,9 @@ protected AppPlatformBlockingV2Stub build( * */ public com.google.cloud.visionai.v1.ListApplicationsResponse listApplications( - com.google.cloud.visionai.v1.ListApplicationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListApplicationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListApplicationsMethod(), getCallOptions(), request); } @@ -2165,8 +2163,8 @@ public com.google.cloud.visionai.v1.ListApplicationsResponse listApplications( * */ public com.google.cloud.visionai.v1.Application getApplication( - com.google.cloud.visionai.v1.GetApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetApplicationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetApplicationMethod(), getCallOptions(), request); } @@ -2178,8 +2176,9 @@ public com.google.cloud.visionai.v1.Application getApplication( * */ public com.google.longrunning.Operation createApplication( - com.google.cloud.visionai.v1.CreateApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApplicationMethod(), getCallOptions(), request); } @@ -2191,8 +2190,9 @@ public com.google.longrunning.Operation createApplication( * */ public com.google.longrunning.Operation updateApplication( - com.google.cloud.visionai.v1.UpdateApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApplicationMethod(), getCallOptions(), request); } @@ -2204,8 +2204,9 @@ public com.google.longrunning.Operation updateApplication( * */ public com.google.longrunning.Operation deleteApplication( - com.google.cloud.visionai.v1.DeleteApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApplicationMethod(), getCallOptions(), request); } @@ -2217,8 +2218,9 @@ public com.google.longrunning.Operation deleteApplication( * */ public com.google.longrunning.Operation deployApplication( - com.google.cloud.visionai.v1.DeployApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeployApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployApplicationMethod(), getCallOptions(), request); } @@ -2230,8 +2232,9 @@ public com.google.longrunning.Operation deployApplication( * */ public com.google.longrunning.Operation undeployApplication( - com.google.cloud.visionai.v1.UndeployApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UndeployApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployApplicationMethod(), getCallOptions(), request); } @@ -2246,8 +2249,9 @@ public com.google.longrunning.Operation undeployApplication( * */ public com.google.longrunning.Operation addApplicationStreamInput( - com.google.cloud.visionai.v1.AddApplicationStreamInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.AddApplicationStreamInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddApplicationStreamInputMethod(), getCallOptions(), request); } @@ -2261,8 +2265,9 @@ public com.google.longrunning.Operation addApplicationStreamInput( * */ public com.google.longrunning.Operation removeApplicationStreamInput( - com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.RemoveApplicationStreamInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveApplicationStreamInputMethod(), getCallOptions(), request); } @@ -2276,8 +2281,9 @@ public com.google.longrunning.Operation removeApplicationStreamInput( * */ public com.google.longrunning.Operation updateApplicationStreamInput( - com.google.cloud.visionai.v1.UpdateApplicationStreamInputRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateApplicationStreamInputRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApplicationStreamInputMethod(), getCallOptions(), request); } @@ -2289,8 +2295,8 @@ public com.google.longrunning.Operation updateApplicationStreamInput( * */ public com.google.cloud.visionai.v1.ListInstancesResponse listInstances( - com.google.cloud.visionai.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListInstancesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } @@ -2302,8 +2308,8 @@ public com.google.cloud.visionai.v1.ListInstancesResponse listInstances( * */ public com.google.cloud.visionai.v1.Instance getInstance( - com.google.cloud.visionai.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetInstanceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } @@ -2318,8 +2324,9 @@ public com.google.cloud.visionai.v1.Instance getInstance( * */ public com.google.longrunning.Operation createApplicationInstances( - com.google.cloud.visionai.v1.CreateApplicationInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateApplicationInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateApplicationInstancesMethod(), getCallOptions(), request); } @@ -2333,8 +2340,9 @@ public com.google.longrunning.Operation createApplicationInstances( * */ public com.google.longrunning.Operation deleteApplicationInstances( - com.google.cloud.visionai.v1.DeleteApplicationInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteApplicationInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteApplicationInstancesMethod(), getCallOptions(), request); } @@ -2349,8 +2357,9 @@ public com.google.longrunning.Operation deleteApplicationInstances( * */ public com.google.longrunning.Operation updateApplicationInstances( - com.google.cloud.visionai.v1.UpdateApplicationInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateApplicationInstancesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateApplicationInstancesMethod(), getCallOptions(), request); } @@ -2362,8 +2371,8 @@ public com.google.longrunning.Operation updateApplicationInstances( * */ public com.google.cloud.visionai.v1.ListDraftsResponse listDrafts( - com.google.cloud.visionai.v1.ListDraftsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListDraftsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDraftsMethod(), getCallOptions(), request); } @@ -2375,8 +2384,8 @@ public com.google.cloud.visionai.v1.ListDraftsResponse listDrafts( * */ public com.google.cloud.visionai.v1.Draft getDraft( - com.google.cloud.visionai.v1.GetDraftRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetDraftRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDraftMethod(), getCallOptions(), request); } @@ -2388,8 +2397,8 @@ public com.google.cloud.visionai.v1.Draft getDraft( * */ public com.google.longrunning.Operation createDraft( - com.google.cloud.visionai.v1.CreateDraftRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateDraftRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDraftMethod(), getCallOptions(), request); } @@ -2401,8 +2410,8 @@ public com.google.longrunning.Operation createDraft( * */ public com.google.longrunning.Operation updateDraft( - com.google.cloud.visionai.v1.UpdateDraftRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateDraftRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDraftMethod(), getCallOptions(), request); } @@ -2414,8 +2423,8 @@ public com.google.longrunning.Operation updateDraft( * */ public com.google.longrunning.Operation deleteDraft( - com.google.cloud.visionai.v1.DeleteDraftRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteDraftRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDraftMethod(), getCallOptions(), request); } @@ -2427,8 +2436,8 @@ public com.google.longrunning.Operation deleteDraft( * */ public com.google.cloud.visionai.v1.ListProcessorsResponse listProcessors( - com.google.cloud.visionai.v1.ListProcessorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListProcessorsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProcessorsMethod(), getCallOptions(), request); } @@ -2441,8 +2450,9 @@ public com.google.cloud.visionai.v1.ListProcessorsResponse listProcessors( * */ public com.google.cloud.visionai.v1.ListPrebuiltProcessorsResponse listPrebuiltProcessors( - com.google.cloud.visionai.v1.ListPrebuiltProcessorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListPrebuiltProcessorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPrebuiltProcessorsMethod(), getCallOptions(), request); } @@ -2454,8 +2464,8 @@ public com.google.cloud.visionai.v1.ListPrebuiltProcessorsResponse listPrebuiltP * */ public com.google.cloud.visionai.v1.Processor getProcessor( - com.google.cloud.visionai.v1.GetProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetProcessorRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessorMethod(), getCallOptions(), request); } @@ -2467,8 +2477,9 @@ public com.google.cloud.visionai.v1.Processor getProcessor( * */ public com.google.longrunning.Operation createProcessor( - com.google.cloud.visionai.v1.CreateProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProcessorMethod(), getCallOptions(), request); } @@ -2480,8 +2491,9 @@ public com.google.longrunning.Operation createProcessor( * */ public com.google.longrunning.Operation updateProcessor( - com.google.cloud.visionai.v1.UpdateProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProcessorMethod(), getCallOptions(), request); } @@ -2493,8 +2505,9 @@ public com.google.longrunning.Operation updateProcessor( * */ public com.google.longrunning.Operation deleteProcessor( - com.google.cloud.visionai.v1.DeleteProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteProcessorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProcessorMethod(), getCallOptions(), request); } } diff --git a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceGrpc.java b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceGrpc.java index 9695a565bf27..8c9721d7b241 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceGrpc.java +++ b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceGrpc.java @@ -25,9 +25,6 @@ * Check. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/visionai/v1/health_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class HealthCheckServiceGrpc { @@ -246,8 +243,8 @@ protected HealthCheckServiceBlockingV2Stub build( * */ public com.google.cloud.visionai.v1.HealthCheckResponse healthCheck( - com.google.cloud.visionai.v1.HealthCheckRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.HealthCheckRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getHealthCheckMethod(), getCallOptions(), request); } } diff --git a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsGrpc.java b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsGrpc.java index 28d77b154e78..158e76cb9768 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsGrpc.java +++ b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsGrpc.java @@ -25,9 +25,6 @@ * Live Video Analytics (LVA) on the streaming inputs. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/visionai/v1/lva_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LiveVideoAnalyticsGrpc { @@ -1514,8 +1511,9 @@ protected LiveVideoAnalyticsBlockingV2Stub build( * */ public com.google.cloud.visionai.v1.ListPublicOperatorsResponse listPublicOperators( - com.google.cloud.visionai.v1.ListPublicOperatorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListPublicOperatorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPublicOperatorsMethod(), getCallOptions(), request); } @@ -1527,8 +1525,9 @@ public com.google.cloud.visionai.v1.ListPublicOperatorsResponse listPublicOperat * */ public com.google.cloud.visionai.v1.ResolveOperatorInfoResponse resolveOperatorInfo( - com.google.cloud.visionai.v1.ResolveOperatorInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ResolveOperatorInfoRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResolveOperatorInfoMethod(), getCallOptions(), request); } @@ -1540,8 +1539,8 @@ public com.google.cloud.visionai.v1.ResolveOperatorInfoResponse resolveOperatorI * */ public com.google.cloud.visionai.v1.ListOperatorsResponse listOperators( - com.google.cloud.visionai.v1.ListOperatorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListOperatorsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListOperatorsMethod(), getCallOptions(), request); } @@ -1553,8 +1552,8 @@ public com.google.cloud.visionai.v1.ListOperatorsResponse listOperators( * */ public com.google.cloud.visionai.v1.Operator getOperator( - com.google.cloud.visionai.v1.GetOperatorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetOperatorRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetOperatorMethod(), getCallOptions(), request); } @@ -1566,8 +1565,8 @@ public com.google.cloud.visionai.v1.Operator getOperator( * */ public com.google.longrunning.Operation createOperator( - com.google.cloud.visionai.v1.CreateOperatorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateOperatorRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateOperatorMethod(), getCallOptions(), request); } @@ -1579,8 +1578,8 @@ public com.google.longrunning.Operation createOperator( * */ public com.google.longrunning.Operation updateOperator( - com.google.cloud.visionai.v1.UpdateOperatorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateOperatorRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateOperatorMethod(), getCallOptions(), request); } @@ -1592,8 +1591,8 @@ public com.google.longrunning.Operation updateOperator( * */ public com.google.longrunning.Operation deleteOperator( - com.google.cloud.visionai.v1.DeleteOperatorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteOperatorRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteOperatorMethod(), getCallOptions(), request); } @@ -1605,8 +1604,8 @@ public com.google.longrunning.Operation deleteOperator( * */ public com.google.cloud.visionai.v1.ListAnalysesResponse listAnalyses( - com.google.cloud.visionai.v1.ListAnalysesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListAnalysesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnalysesMethod(), getCallOptions(), request); } @@ -1618,8 +1617,8 @@ public com.google.cloud.visionai.v1.ListAnalysesResponse listAnalyses( * */ public com.google.cloud.visionai.v1.Analysis getAnalysis( - com.google.cloud.visionai.v1.GetAnalysisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetAnalysisRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnalysisMethod(), getCallOptions(), request); } @@ -1631,8 +1630,8 @@ public com.google.cloud.visionai.v1.Analysis getAnalysis( * */ public com.google.longrunning.Operation createAnalysis( - com.google.cloud.visionai.v1.CreateAnalysisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateAnalysisRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAnalysisMethod(), getCallOptions(), request); } @@ -1644,8 +1643,8 @@ public com.google.longrunning.Operation createAnalysis( * */ public com.google.longrunning.Operation updateAnalysis( - com.google.cloud.visionai.v1.UpdateAnalysisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateAnalysisRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAnalysisMethod(), getCallOptions(), request); } @@ -1657,8 +1656,8 @@ public com.google.longrunning.Operation updateAnalysis( * */ public com.google.longrunning.Operation deleteAnalysis( - com.google.cloud.visionai.v1.DeleteAnalysisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteAnalysisRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAnalysisMethod(), getCallOptions(), request); } @@ -1670,8 +1669,8 @@ public com.google.longrunning.Operation deleteAnalysis( * */ public com.google.cloud.visionai.v1.ListProcessesResponse listProcesses( - com.google.cloud.visionai.v1.ListProcessesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListProcessesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListProcessesMethod(), getCallOptions(), request); } @@ -1683,8 +1682,8 @@ public com.google.cloud.visionai.v1.ListProcessesResponse listProcesses( * */ public com.google.cloud.visionai.v1.Process getProcess( - com.google.cloud.visionai.v1.GetProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetProcessRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetProcessMethod(), getCallOptions(), request); } @@ -1696,8 +1695,8 @@ public com.google.cloud.visionai.v1.Process getProcess( * */ public com.google.longrunning.Operation createProcess( - com.google.cloud.visionai.v1.CreateProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateProcessRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateProcessMethod(), getCallOptions(), request); } @@ -1709,8 +1708,8 @@ public com.google.longrunning.Operation createProcess( * */ public com.google.longrunning.Operation updateProcess( - com.google.cloud.visionai.v1.UpdateProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateProcessRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateProcessMethod(), getCallOptions(), request); } @@ -1722,8 +1721,8 @@ public com.google.longrunning.Operation updateProcess( * */ public com.google.longrunning.Operation deleteProcess( - com.google.cloud.visionai.v1.DeleteProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteProcessRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteProcessMethod(), getCallOptions(), request); } @@ -1736,8 +1735,9 @@ public com.google.longrunning.Operation deleteProcess( * */ public com.google.longrunning.Operation batchRunProcess( - com.google.cloud.visionai.v1.BatchRunProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.BatchRunProcessRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getBatchRunProcessMethod(), getCallOptions(), request); } } diff --git a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamingServiceGrpc.java b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamingServiceGrpc.java index c9f5f686de35..6c32df8fb67c 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamingServiceGrpc.java +++ b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamingServiceGrpc.java @@ -24,9 +24,6 @@ * Streaming service for receiving and sending packets. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/visionai/v1/streaming_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class StreamingServiceGrpc { @@ -660,8 +657,8 @@ protected StreamingServiceBlockingV2Stub build( * */ public com.google.cloud.visionai.v1.Lease acquireLease( - com.google.cloud.visionai.v1.AcquireLeaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.AcquireLeaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcquireLeaseMethod(), getCallOptions(), request); } @@ -673,8 +670,8 @@ public com.google.cloud.visionai.v1.Lease acquireLease( * */ public com.google.cloud.visionai.v1.Lease renewLease( - com.google.cloud.visionai.v1.RenewLeaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.RenewLeaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRenewLeaseMethod(), getCallOptions(), request); } @@ -686,8 +683,8 @@ public com.google.cloud.visionai.v1.Lease renewLease( * */ public com.google.cloud.visionai.v1.ReleaseLeaseResponse releaseLease( - com.google.cloud.visionai.v1.ReleaseLeaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ReleaseLeaseRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReleaseLeaseMethod(), getCallOptions(), request); } } diff --git a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamsServiceGrpc.java b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamsServiceGrpc.java index dcbac127d198..b0ab46018b97 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamsServiceGrpc.java +++ b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamsServiceGrpc.java @@ -27,9 +27,6 @@ * e2e solution for customer to build their own computer vision application. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/visionai/v1/streams_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class StreamsServiceGrpc { @@ -1856,8 +1853,8 @@ protected StreamsServiceBlockingV2Stub build( * */ public com.google.cloud.visionai.v1.ListClustersResponse listClusters( - com.google.cloud.visionai.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListClustersRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -1869,8 +1866,8 @@ public com.google.cloud.visionai.v1.ListClustersResponse listClusters( * */ public com.google.cloud.visionai.v1.Cluster getCluster( - com.google.cloud.visionai.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -1882,8 +1879,8 @@ public com.google.cloud.visionai.v1.Cluster getCluster( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.visionai.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -1895,8 +1892,8 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.visionai.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -1908,8 +1905,8 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.visionai.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -1921,8 +1918,8 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.cloud.visionai.v1.ListStreamsResponse listStreams( - com.google.cloud.visionai.v1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListStreamsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListStreamsMethod(), getCallOptions(), request); } @@ -1934,8 +1931,8 @@ public com.google.cloud.visionai.v1.ListStreamsResponse listStreams( * */ public com.google.cloud.visionai.v1.Stream getStream( - com.google.cloud.visionai.v1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetStreamRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStreamMethod(), getCallOptions(), request); } @@ -1947,8 +1944,8 @@ public com.google.cloud.visionai.v1.Stream getStream( * */ public com.google.longrunning.Operation createStream( - com.google.cloud.visionai.v1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateStreamRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateStreamMethod(), getCallOptions(), request); } @@ -1960,8 +1957,8 @@ public com.google.longrunning.Operation createStream( * */ public com.google.longrunning.Operation updateStream( - com.google.cloud.visionai.v1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateStreamRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateStreamMethod(), getCallOptions(), request); } @@ -1973,8 +1970,8 @@ public com.google.longrunning.Operation updateStream( * */ public com.google.longrunning.Operation deleteStream( - com.google.cloud.visionai.v1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteStreamRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteStreamMethod(), getCallOptions(), request); } @@ -1986,8 +1983,9 @@ public com.google.longrunning.Operation deleteStream( * */ public com.google.longrunning.Operation getStreamThumbnail( - com.google.cloud.visionai.v1.GetStreamThumbnailRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetStreamThumbnailRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetStreamThumbnailMethod(), getCallOptions(), request); } @@ -1999,8 +1997,9 @@ public com.google.longrunning.Operation getStreamThumbnail( * */ public com.google.cloud.visionai.v1.GenerateStreamHlsTokenResponse generateStreamHlsToken( - com.google.cloud.visionai.v1.GenerateStreamHlsTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GenerateStreamHlsTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateStreamHlsTokenMethod(), getCallOptions(), request); } @@ -2012,8 +2011,8 @@ public com.google.cloud.visionai.v1.GenerateStreamHlsTokenResponse generateStrea * */ public com.google.cloud.visionai.v1.ListEventsResponse listEvents( - com.google.cloud.visionai.v1.ListEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListEventsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEventsMethod(), getCallOptions(), request); } @@ -2025,8 +2024,8 @@ public com.google.cloud.visionai.v1.ListEventsResponse listEvents( * */ public com.google.cloud.visionai.v1.Event getEvent( - com.google.cloud.visionai.v1.GetEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetEventRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetEventMethod(), getCallOptions(), request); } @@ -2038,8 +2037,8 @@ public com.google.cloud.visionai.v1.Event getEvent( * */ public com.google.longrunning.Operation createEvent( - com.google.cloud.visionai.v1.CreateEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateEventRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateEventMethod(), getCallOptions(), request); } @@ -2051,8 +2050,8 @@ public com.google.longrunning.Operation createEvent( * */ public com.google.longrunning.Operation updateEvent( - com.google.cloud.visionai.v1.UpdateEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateEventRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateEventMethod(), getCallOptions(), request); } @@ -2064,8 +2063,8 @@ public com.google.longrunning.Operation updateEvent( * */ public com.google.longrunning.Operation deleteEvent( - com.google.cloud.visionai.v1.DeleteEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteEventRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteEventMethod(), getCallOptions(), request); } @@ -2077,8 +2076,8 @@ public com.google.longrunning.Operation deleteEvent( * */ public com.google.cloud.visionai.v1.ListSeriesResponse listSeries( - com.google.cloud.visionai.v1.ListSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListSeriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSeriesMethod(), getCallOptions(), request); } @@ -2090,8 +2089,8 @@ public com.google.cloud.visionai.v1.ListSeriesResponse listSeries( * */ public com.google.cloud.visionai.v1.Series getSeries( - com.google.cloud.visionai.v1.GetSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetSeriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSeriesMethod(), getCallOptions(), request); } @@ -2103,8 +2102,8 @@ public com.google.cloud.visionai.v1.Series getSeries( * */ public com.google.longrunning.Operation createSeries( - com.google.cloud.visionai.v1.CreateSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateSeriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSeriesMethod(), getCallOptions(), request); } @@ -2116,8 +2115,8 @@ public com.google.longrunning.Operation createSeries( * */ public com.google.longrunning.Operation updateSeries( - com.google.cloud.visionai.v1.UpdateSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateSeriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSeriesMethod(), getCallOptions(), request); } @@ -2129,8 +2128,8 @@ public com.google.longrunning.Operation updateSeries( * */ public com.google.longrunning.Operation deleteSeries( - com.google.cloud.visionai.v1.DeleteSeriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteSeriesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSeriesMethod(), getCallOptions(), request); } @@ -2142,8 +2141,9 @@ public com.google.longrunning.Operation deleteSeries( * */ public com.google.longrunning.Operation materializeChannel( - com.google.cloud.visionai.v1.MaterializeChannelRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.MaterializeChannelRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getMaterializeChannelMethod(), getCallOptions(), request); } } diff --git a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/WarehouseGrpc.java b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/WarehouseGrpc.java index 8679c92453c5..50569c302f2e 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/WarehouseGrpc.java +++ b/java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/WarehouseGrpc.java @@ -24,9 +24,6 @@ * Service that manages media content + metadata for streaming. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/visionai/v1/warehouse.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WarehouseGrpc { @@ -4968,8 +4965,8 @@ protected WarehouseBlockingV2Stub build( * */ public com.google.cloud.visionai.v1.Asset createAsset( - com.google.cloud.visionai.v1.CreateAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAssetMethod(), getCallOptions(), request); } @@ -4981,8 +4978,8 @@ public com.google.cloud.visionai.v1.Asset createAsset( * */ public com.google.cloud.visionai.v1.Asset updateAsset( - com.google.cloud.visionai.v1.UpdateAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAssetMethod(), getCallOptions(), request); } @@ -4994,8 +4991,8 @@ public com.google.cloud.visionai.v1.Asset updateAsset( * */ public com.google.cloud.visionai.v1.Asset getAsset( - com.google.cloud.visionai.v1.GetAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAssetMethod(), getCallOptions(), request); } @@ -5007,8 +5004,8 @@ public com.google.cloud.visionai.v1.Asset getAsset( * */ public com.google.cloud.visionai.v1.ListAssetsResponse listAssets( - com.google.cloud.visionai.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListAssetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } @@ -5020,8 +5017,8 @@ public com.google.cloud.visionai.v1.ListAssetsResponse listAssets( * */ public com.google.longrunning.Operation deleteAsset( - com.google.cloud.visionai.v1.DeleteAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAssetMethod(), getCallOptions(), request); } @@ -5042,8 +5039,8 @@ public com.google.longrunning.Operation deleteAsset( * */ public com.google.longrunning.Operation uploadAsset( - com.google.cloud.visionai.v1.UploadAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UploadAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUploadAssetMethod(), getCallOptions(), request); } @@ -5057,8 +5054,9 @@ public com.google.longrunning.Operation uploadAsset( * */ public com.google.cloud.visionai.v1.GenerateRetrievalUrlResponse generateRetrievalUrl( - com.google.cloud.visionai.v1.GenerateRetrievalUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GenerateRetrievalUrlRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateRetrievalUrlMethod(), getCallOptions(), request); } @@ -5070,8 +5068,8 @@ public com.google.cloud.visionai.v1.GenerateRetrievalUrlResponse generateRetriev * */ public com.google.longrunning.Operation analyzeAsset( - com.google.cloud.visionai.v1.AnalyzeAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.AnalyzeAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeAssetMethod(), getCallOptions(), request); } @@ -5084,8 +5082,8 @@ public com.google.longrunning.Operation analyzeAsset( * */ public com.google.longrunning.Operation indexAsset( - com.google.cloud.visionai.v1.IndexAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.IndexAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getIndexAssetMethod(), getCallOptions(), request); } @@ -5098,8 +5096,9 @@ public com.google.longrunning.Operation indexAsset( * */ public com.google.longrunning.Operation removeIndexAsset( - com.google.cloud.visionai.v1.RemoveIndexAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.RemoveIndexAssetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveIndexAssetMethod(), getCallOptions(), request); } @@ -5111,8 +5110,9 @@ public com.google.longrunning.Operation removeIndexAsset( * */ public com.google.cloud.visionai.v1.ViewIndexedAssetsResponse viewIndexedAssets( - com.google.cloud.visionai.v1.ViewIndexedAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ViewIndexedAssetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getViewIndexedAssetsMethod(), getCallOptions(), request); } @@ -5124,8 +5124,8 @@ public com.google.cloud.visionai.v1.ViewIndexedAssetsResponse viewIndexedAssets( * */ public com.google.longrunning.Operation createIndex( - com.google.cloud.visionai.v1.CreateIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIndexMethod(), getCallOptions(), request); } @@ -5139,8 +5139,8 @@ public com.google.longrunning.Operation createIndex( * */ public com.google.longrunning.Operation updateIndex( - com.google.cloud.visionai.v1.UpdateIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIndexMethod(), getCallOptions(), request); } @@ -5152,8 +5152,8 @@ public com.google.longrunning.Operation updateIndex( * */ public com.google.cloud.visionai.v1.Index getIndex( - com.google.cloud.visionai.v1.GetIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIndexMethod(), getCallOptions(), request); } @@ -5165,8 +5165,8 @@ public com.google.cloud.visionai.v1.Index getIndex( * */ public com.google.cloud.visionai.v1.ListIndexesResponse listIndexes( - com.google.cloud.visionai.v1.ListIndexesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListIndexesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIndexesMethod(), getCallOptions(), request); } @@ -5179,8 +5179,8 @@ public com.google.cloud.visionai.v1.ListIndexesResponse listIndexes( * */ public com.google.longrunning.Operation deleteIndex( - com.google.cloud.visionai.v1.DeleteIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIndexMethod(), getCallOptions(), request); } @@ -5192,8 +5192,8 @@ public com.google.longrunning.Operation deleteIndex( * */ public com.google.longrunning.Operation createCorpus( - com.google.cloud.visionai.v1.CreateCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateCorpusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCorpusMethod(), getCallOptions(), request); } @@ -5205,8 +5205,8 @@ public com.google.longrunning.Operation createCorpus( * */ public com.google.cloud.visionai.v1.Corpus getCorpus( - com.google.cloud.visionai.v1.GetCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetCorpusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCorpusMethod(), getCallOptions(), request); } @@ -5218,8 +5218,8 @@ public com.google.cloud.visionai.v1.Corpus getCorpus( * */ public com.google.cloud.visionai.v1.Corpus updateCorpus( - com.google.cloud.visionai.v1.UpdateCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateCorpusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCorpusMethod(), getCallOptions(), request); } @@ -5231,8 +5231,8 @@ public com.google.cloud.visionai.v1.Corpus updateCorpus( * */ public com.google.cloud.visionai.v1.ListCorporaResponse listCorpora( - com.google.cloud.visionai.v1.ListCorporaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListCorporaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCorporaMethod(), getCallOptions(), request); } @@ -5245,8 +5245,8 @@ public com.google.cloud.visionai.v1.ListCorporaResponse listCorpora( * */ public com.google.protobuf.Empty deleteCorpus( - com.google.cloud.visionai.v1.DeleteCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteCorpusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCorpusMethod(), getCallOptions(), request); } @@ -5258,8 +5258,8 @@ public com.google.protobuf.Empty deleteCorpus( * */ public com.google.longrunning.Operation analyzeCorpus( - com.google.cloud.visionai.v1.AnalyzeCorpusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.AnalyzeCorpusRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAnalyzeCorpusMethod(), getCallOptions(), request); } @@ -5271,8 +5271,9 @@ public com.google.longrunning.Operation analyzeCorpus( * */ public com.google.cloud.visionai.v1.DataSchema createDataSchema( - com.google.cloud.visionai.v1.CreateDataSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateDataSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDataSchemaMethod(), getCallOptions(), request); } @@ -5284,8 +5285,9 @@ public com.google.cloud.visionai.v1.DataSchema createDataSchema( * */ public com.google.cloud.visionai.v1.DataSchema updateDataSchema( - com.google.cloud.visionai.v1.UpdateDataSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateDataSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataSchemaMethod(), getCallOptions(), request); } @@ -5297,8 +5299,8 @@ public com.google.cloud.visionai.v1.DataSchema updateDataSchema( * */ public com.google.cloud.visionai.v1.DataSchema getDataSchema( - com.google.cloud.visionai.v1.GetDataSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetDataSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDataSchemaMethod(), getCallOptions(), request); } @@ -5310,8 +5312,9 @@ public com.google.cloud.visionai.v1.DataSchema getDataSchema( * */ public com.google.protobuf.Empty deleteDataSchema( - com.google.cloud.visionai.v1.DeleteDataSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteDataSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDataSchemaMethod(), getCallOptions(), request); } @@ -5323,8 +5326,9 @@ public com.google.protobuf.Empty deleteDataSchema( * */ public com.google.cloud.visionai.v1.ListDataSchemasResponse listDataSchemas( - com.google.cloud.visionai.v1.ListDataSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListDataSchemasRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDataSchemasMethod(), getCallOptions(), request); } @@ -5336,8 +5340,9 @@ public com.google.cloud.visionai.v1.ListDataSchemasResponse listDataSchemas( * */ public com.google.cloud.visionai.v1.Annotation createAnnotation( - com.google.cloud.visionai.v1.CreateAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateAnnotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateAnnotationMethod(), getCallOptions(), request); } @@ -5349,8 +5354,8 @@ public com.google.cloud.visionai.v1.Annotation createAnnotation( * */ public com.google.cloud.visionai.v1.Annotation getAnnotation( - com.google.cloud.visionai.v1.GetAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetAnnotationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetAnnotationMethod(), getCallOptions(), request); } @@ -5362,8 +5367,9 @@ public com.google.cloud.visionai.v1.Annotation getAnnotation( * */ public com.google.cloud.visionai.v1.ListAnnotationsResponse listAnnotations( - com.google.cloud.visionai.v1.ListAnnotationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListAnnotationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListAnnotationsMethod(), getCallOptions(), request); } @@ -5375,8 +5381,9 @@ public com.google.cloud.visionai.v1.ListAnnotationsResponse listAnnotations( * */ public com.google.cloud.visionai.v1.Annotation updateAnnotation( - com.google.cloud.visionai.v1.UpdateAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateAnnotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateAnnotationMethod(), getCallOptions(), request); } @@ -5388,8 +5395,9 @@ public com.google.cloud.visionai.v1.Annotation updateAnnotation( * */ public com.google.protobuf.Empty deleteAnnotation( - com.google.cloud.visionai.v1.DeleteAnnotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteAnnotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAnnotationMethod(), getCallOptions(), request); } @@ -5425,8 +5433,8 @@ public com.google.protobuf.Empty deleteAnnotation( * */ public com.google.cloud.visionai.v1.ClipAssetResponse clipAsset( - com.google.cloud.visionai.v1.ClipAssetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ClipAssetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getClipAssetMethod(), getCallOptions(), request); } @@ -5440,8 +5448,8 @@ public com.google.cloud.visionai.v1.ClipAssetResponse clipAsset( * */ public com.google.cloud.visionai.v1.GenerateHlsUriResponse generateHlsUri( - com.google.cloud.visionai.v1.GenerateHlsUriRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GenerateHlsUriRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateHlsUriMethod(), getCallOptions(), request); } @@ -5455,8 +5463,8 @@ public com.google.cloud.visionai.v1.GenerateHlsUriResponse generateHlsUri( * */ public com.google.longrunning.Operation importAssets( - com.google.cloud.visionai.v1.ImportAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ImportAssetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getImportAssetsMethod(), getCallOptions(), request); } @@ -5481,8 +5489,9 @@ public com.google.longrunning.Operation importAssets( * */ public com.google.cloud.visionai.v1.SearchConfig createSearchConfig( - com.google.cloud.visionai.v1.CreateSearchConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateSearchConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSearchConfigMethod(), getCallOptions(), request); } @@ -5506,8 +5515,9 @@ public com.google.cloud.visionai.v1.SearchConfig createSearchConfig( * */ public com.google.cloud.visionai.v1.SearchConfig updateSearchConfig( - com.google.cloud.visionai.v1.UpdateSearchConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateSearchConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSearchConfigMethod(), getCallOptions(), request); } @@ -5519,8 +5529,9 @@ public com.google.cloud.visionai.v1.SearchConfig updateSearchConfig( * */ public com.google.cloud.visionai.v1.SearchConfig getSearchConfig( - com.google.cloud.visionai.v1.GetSearchConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetSearchConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSearchConfigMethod(), getCallOptions(), request); } @@ -5534,8 +5545,9 @@ public com.google.cloud.visionai.v1.SearchConfig getSearchConfig( * */ public com.google.protobuf.Empty deleteSearchConfig( - com.google.cloud.visionai.v1.DeleteSearchConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteSearchConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSearchConfigMethod(), getCallOptions(), request); } @@ -5547,8 +5559,9 @@ public com.google.protobuf.Empty deleteSearchConfig( * */ public com.google.cloud.visionai.v1.ListSearchConfigsResponse listSearchConfigs( - com.google.cloud.visionai.v1.ListSearchConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListSearchConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSearchConfigsMethod(), getCallOptions(), request); } @@ -5560,8 +5573,9 @@ public com.google.cloud.visionai.v1.ListSearchConfigsResponse listSearchConfigs( * */ public com.google.cloud.visionai.v1.SearchHypernym createSearchHypernym( - com.google.cloud.visionai.v1.CreateSearchHypernymRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateSearchHypernymRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSearchHypernymMethod(), getCallOptions(), request); } @@ -5573,8 +5587,9 @@ public com.google.cloud.visionai.v1.SearchHypernym createSearchHypernym( * */ public com.google.cloud.visionai.v1.SearchHypernym updateSearchHypernym( - com.google.cloud.visionai.v1.UpdateSearchHypernymRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateSearchHypernymRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSearchHypernymMethod(), getCallOptions(), request); } @@ -5586,8 +5601,9 @@ public com.google.cloud.visionai.v1.SearchHypernym updateSearchHypernym( * */ public com.google.cloud.visionai.v1.SearchHypernym getSearchHypernym( - com.google.cloud.visionai.v1.GetSearchHypernymRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetSearchHypernymRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSearchHypernymMethod(), getCallOptions(), request); } @@ -5599,8 +5615,9 @@ public com.google.cloud.visionai.v1.SearchHypernym getSearchHypernym( * */ public com.google.protobuf.Empty deleteSearchHypernym( - com.google.cloud.visionai.v1.DeleteSearchHypernymRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteSearchHypernymRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSearchHypernymMethod(), getCallOptions(), request); } @@ -5612,8 +5629,9 @@ public com.google.protobuf.Empty deleteSearchHypernym( * */ public com.google.cloud.visionai.v1.ListSearchHypernymsResponse listSearchHypernyms( - com.google.cloud.visionai.v1.ListSearchHypernymsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListSearchHypernymsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSearchHypernymsMethod(), getCallOptions(), request); } @@ -5625,8 +5643,8 @@ public com.google.cloud.visionai.v1.ListSearchHypernymsResponse listSearchHypern * */ public com.google.cloud.visionai.v1.SearchAssetsResponse searchAssets( - com.google.cloud.visionai.v1.SearchAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.SearchAssetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchAssetsMethod(), getCallOptions(), request); } @@ -5638,8 +5656,9 @@ public com.google.cloud.visionai.v1.SearchAssetsResponse searchAssets( * */ public com.google.cloud.visionai.v1.SearchIndexEndpointResponse searchIndexEndpoint( - com.google.cloud.visionai.v1.SearchIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.SearchIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchIndexEndpointMethod(), getCallOptions(), request); } @@ -5651,8 +5670,9 @@ public com.google.cloud.visionai.v1.SearchIndexEndpointResponse searchIndexEndpo * */ public com.google.longrunning.Operation createIndexEndpoint( - com.google.cloud.visionai.v1.CreateIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateIndexEndpointMethod(), getCallOptions(), request); } @@ -5664,8 +5684,9 @@ public com.google.longrunning.Operation createIndexEndpoint( * */ public com.google.cloud.visionai.v1.IndexEndpoint getIndexEndpoint( - com.google.cloud.visionai.v1.GetIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetIndexEndpointMethod(), getCallOptions(), request); } @@ -5677,8 +5698,9 @@ public com.google.cloud.visionai.v1.IndexEndpoint getIndexEndpoint( * */ public com.google.cloud.visionai.v1.ListIndexEndpointsResponse listIndexEndpoints( - com.google.cloud.visionai.v1.ListIndexEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListIndexEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListIndexEndpointsMethod(), getCallOptions(), request); } @@ -5690,8 +5712,9 @@ public com.google.cloud.visionai.v1.ListIndexEndpointsResponse listIndexEndpoint * */ public com.google.longrunning.Operation updateIndexEndpoint( - com.google.cloud.visionai.v1.UpdateIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateIndexEndpointMethod(), getCallOptions(), request); } @@ -5703,8 +5726,9 @@ public com.google.longrunning.Operation updateIndexEndpoint( * */ public com.google.longrunning.Operation deleteIndexEndpoint( - com.google.cloud.visionai.v1.DeleteIndexEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteIndexEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteIndexEndpointMethod(), getCallOptions(), request); } @@ -5716,8 +5740,8 @@ public com.google.longrunning.Operation deleteIndexEndpoint( * */ public com.google.longrunning.Operation deployIndex( - com.google.cloud.visionai.v1.DeployIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeployIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeployIndexMethod(), getCallOptions(), request); } @@ -5729,8 +5753,8 @@ public com.google.longrunning.Operation deployIndex( * */ public com.google.longrunning.Operation undeployIndex( - com.google.cloud.visionai.v1.UndeployIndexRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UndeployIndexRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeployIndexMethod(), getCallOptions(), request); } @@ -5742,8 +5766,9 @@ public com.google.longrunning.Operation undeployIndex( * */ public com.google.longrunning.Operation createCollection( - com.google.cloud.visionai.v1.CreateCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.CreateCollectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCollectionMethod(), getCallOptions(), request); } @@ -5755,8 +5780,9 @@ public com.google.longrunning.Operation createCollection( * */ public com.google.longrunning.Operation deleteCollection( - com.google.cloud.visionai.v1.DeleteCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.DeleteCollectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteCollectionMethod(), getCallOptions(), request); } @@ -5768,8 +5794,8 @@ public com.google.longrunning.Operation deleteCollection( * */ public com.google.cloud.visionai.v1.Collection getCollection( - com.google.cloud.visionai.v1.GetCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.GetCollectionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCollectionMethod(), getCallOptions(), request); } @@ -5781,8 +5807,9 @@ public com.google.cloud.visionai.v1.Collection getCollection( * */ public com.google.cloud.visionai.v1.Collection updateCollection( - com.google.cloud.visionai.v1.UpdateCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.UpdateCollectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateCollectionMethod(), getCallOptions(), request); } @@ -5794,8 +5821,9 @@ public com.google.cloud.visionai.v1.Collection updateCollection( * */ public com.google.cloud.visionai.v1.ListCollectionsResponse listCollections( - com.google.cloud.visionai.v1.ListCollectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ListCollectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCollectionsMethod(), getCallOptions(), request); } @@ -5807,8 +5835,9 @@ public com.google.cloud.visionai.v1.ListCollectionsResponse listCollections( * */ public com.google.cloud.visionai.v1.AddCollectionItemResponse addCollectionItem( - com.google.cloud.visionai.v1.AddCollectionItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.AddCollectionItemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddCollectionItemMethod(), getCallOptions(), request); } @@ -5820,8 +5849,9 @@ public com.google.cloud.visionai.v1.AddCollectionItemResponse addCollectionItem( * */ public com.google.cloud.visionai.v1.RemoveCollectionItemResponse removeCollectionItem( - com.google.cloud.visionai.v1.RemoveCollectionItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.RemoveCollectionItemRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveCollectionItemMethod(), getCallOptions(), request); } @@ -5833,8 +5863,9 @@ public com.google.cloud.visionai.v1.RemoveCollectionItemResponse removeCollectio * */ public com.google.cloud.visionai.v1.ViewCollectionItemsResponse viewCollectionItems( - com.google.cloud.visionai.v1.ViewCollectionItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.visionai.v1.ViewCollectionItemsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getViewCollectionItemsMethod(), getCallOptions(), request); } } diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index e42713f129bb..9aad1ac766fb 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.77.0 + 1.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.77.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java b/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java index eb6e3e7d27b8..73d1677f26a0 100644 --- a/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java +++ b/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java @@ -24,9 +24,6 @@ * VM Migration Service * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vmmigration/v1/vmmigration.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VmMigrationGrpc { @@ -4980,8 +4977,8 @@ protected VmMigrationBlockingV2Stub build( * */ public com.google.cloud.vmmigration.v1.ListSourcesResponse listSources( - com.google.cloud.vmmigration.v1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListSourcesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSourcesMethod(), getCallOptions(), request); } @@ -4993,8 +4990,8 @@ public com.google.cloud.vmmigration.v1.ListSourcesResponse listSources( * */ public com.google.cloud.vmmigration.v1.Source getSource( - com.google.cloud.vmmigration.v1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetSourceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSourceMethod(), getCallOptions(), request); } @@ -5006,8 +5003,9 @@ public com.google.cloud.vmmigration.v1.Source getSource( * */ public com.google.longrunning.Operation createSource( - com.google.cloud.vmmigration.v1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSourceMethod(), getCallOptions(), request); } @@ -5019,8 +5017,9 @@ public com.google.longrunning.Operation createSource( * */ public com.google.longrunning.Operation updateSource( - com.google.cloud.vmmigration.v1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.UpdateSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSourceMethod(), getCallOptions(), request); } @@ -5032,8 +5031,9 @@ public com.google.longrunning.Operation updateSource( * */ public com.google.longrunning.Operation deleteSource( - com.google.cloud.vmmigration.v1.DeleteSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.DeleteSourceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSourceMethod(), getCallOptions(), request); } @@ -5049,8 +5049,9 @@ public com.google.longrunning.Operation deleteSource( * */ public com.google.cloud.vmmigration.v1.FetchInventoryResponse fetchInventory( - com.google.cloud.vmmigration.v1.FetchInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.FetchInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchInventoryMethod(), getCallOptions(), request); } @@ -5067,8 +5068,9 @@ public com.google.cloud.vmmigration.v1.FetchInventoryResponse fetchInventory( * */ public com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse fetchStorageInventory( - com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchStorageInventoryMethod(), getCallOptions(), request); } @@ -5080,8 +5082,9 @@ public com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse fetchStorag * */ public com.google.cloud.vmmigration.v1.ListUtilizationReportsResponse listUtilizationReports( - com.google.cloud.vmmigration.v1.ListUtilizationReportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListUtilizationReportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUtilizationReportsMethod(), getCallOptions(), request); } @@ -5093,8 +5096,9 @@ public com.google.cloud.vmmigration.v1.ListUtilizationReportsResponse listUtiliz * */ public com.google.cloud.vmmigration.v1.UtilizationReport getUtilizationReport( - com.google.cloud.vmmigration.v1.GetUtilizationReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetUtilizationReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetUtilizationReportMethod(), getCallOptions(), request); } @@ -5106,8 +5110,9 @@ public com.google.cloud.vmmigration.v1.UtilizationReport getUtilizationReport( * */ public com.google.longrunning.Operation createUtilizationReport( - com.google.cloud.vmmigration.v1.CreateUtilizationReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateUtilizationReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateUtilizationReportMethod(), getCallOptions(), request); } @@ -5119,8 +5124,9 @@ public com.google.longrunning.Operation createUtilizationReport( * */ public com.google.longrunning.Operation deleteUtilizationReport( - com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteUtilizationReportMethod(), getCallOptions(), request); } @@ -5133,8 +5139,9 @@ public com.google.longrunning.Operation deleteUtilizationReport( */ public com.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse listDatacenterConnectors( - com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDatacenterConnectorsMethod(), getCallOptions(), request); } @@ -5146,8 +5153,9 @@ public com.google.longrunning.Operation deleteUtilizationReport( * */ public com.google.cloud.vmmigration.v1.DatacenterConnector getDatacenterConnector( - com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDatacenterConnectorMethod(), getCallOptions(), request); } @@ -5159,8 +5167,9 @@ public com.google.cloud.vmmigration.v1.DatacenterConnector getDatacenterConnecto * */ public com.google.longrunning.Operation createDatacenterConnector( - com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDatacenterConnectorMethod(), getCallOptions(), request); } @@ -5172,8 +5181,9 @@ public com.google.longrunning.Operation createDatacenterConnector( * */ public com.google.longrunning.Operation deleteDatacenterConnector( - com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDatacenterConnectorMethod(), getCallOptions(), request); } @@ -5186,8 +5196,9 @@ public com.google.longrunning.Operation deleteDatacenterConnector( * */ public com.google.longrunning.Operation upgradeAppliance( - com.google.cloud.vmmigration.v1.UpgradeApplianceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.UpgradeApplianceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpgradeApplianceMethod(), getCallOptions(), request); } @@ -5199,8 +5210,9 @@ public com.google.longrunning.Operation upgradeAppliance( * */ public com.google.longrunning.Operation createMigratingVm( - com.google.cloud.vmmigration.v1.CreateMigratingVmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateMigratingVmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateMigratingVmMethod(), getCallOptions(), request); } @@ -5212,8 +5224,9 @@ public com.google.longrunning.Operation createMigratingVm( * */ public com.google.cloud.vmmigration.v1.ListMigratingVmsResponse listMigratingVms( - com.google.cloud.vmmigration.v1.ListMigratingVmsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListMigratingVmsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMigratingVmsMethod(), getCallOptions(), request); } @@ -5225,8 +5238,9 @@ public com.google.cloud.vmmigration.v1.ListMigratingVmsResponse listMigratingVms * */ public com.google.cloud.vmmigration.v1.MigratingVm getMigratingVm( - com.google.cloud.vmmigration.v1.GetMigratingVmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetMigratingVmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetMigratingVmMethod(), getCallOptions(), request); } @@ -5238,8 +5252,9 @@ public com.google.cloud.vmmigration.v1.MigratingVm getMigratingVm( * */ public com.google.longrunning.Operation updateMigratingVm( - com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateMigratingVmMethod(), getCallOptions(), request); } @@ -5251,8 +5266,9 @@ public com.google.longrunning.Operation updateMigratingVm( * */ public com.google.longrunning.Operation deleteMigratingVm( - com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteMigratingVmMethod(), getCallOptions(), request); } @@ -5265,8 +5281,9 @@ public com.google.longrunning.Operation deleteMigratingVm( * */ public com.google.longrunning.Operation startMigration( - com.google.cloud.vmmigration.v1.StartMigrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.StartMigrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartMigrationMethod(), getCallOptions(), request); } @@ -5281,8 +5298,9 @@ public com.google.longrunning.Operation startMigration( * */ public com.google.longrunning.Operation resumeMigration( - com.google.cloud.vmmigration.v1.ResumeMigrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ResumeMigrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResumeMigrationMethod(), getCallOptions(), request); } @@ -5296,8 +5314,9 @@ public com.google.longrunning.Operation resumeMigration( * */ public com.google.longrunning.Operation pauseMigration( - com.google.cloud.vmmigration.v1.PauseMigrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.PauseMigrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPauseMigrationMethod(), getCallOptions(), request); } @@ -5310,8 +5329,9 @@ public com.google.longrunning.Operation pauseMigration( * */ public com.google.longrunning.Operation finalizeMigration( - com.google.cloud.vmmigration.v1.FinalizeMigrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.FinalizeMigrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFinalizeMigrationMethod(), getCallOptions(), request); } @@ -5323,8 +5343,9 @@ public com.google.longrunning.Operation finalizeMigration( * */ public com.google.longrunning.Operation extendMigration( - com.google.cloud.vmmigration.v1.ExtendMigrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ExtendMigrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getExtendMigrationMethod(), getCallOptions(), request); } @@ -5336,8 +5357,9 @@ public com.google.longrunning.Operation extendMigration( * */ public com.google.longrunning.Operation createCloneJob( - com.google.cloud.vmmigration.v1.CreateCloneJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateCloneJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCloneJobMethod(), getCallOptions(), request); } @@ -5349,8 +5371,9 @@ public com.google.longrunning.Operation createCloneJob( * */ public com.google.longrunning.Operation cancelCloneJob( - com.google.cloud.vmmigration.v1.CancelCloneJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CancelCloneJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelCloneJobMethod(), getCallOptions(), request); } @@ -5363,8 +5386,9 @@ public com.google.longrunning.Operation cancelCloneJob( * */ public com.google.cloud.vmmigration.v1.ListCloneJobsResponse listCloneJobs( - com.google.cloud.vmmigration.v1.ListCloneJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListCloneJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCloneJobsMethod(), getCallOptions(), request); } @@ -5376,8 +5400,8 @@ public com.google.cloud.vmmigration.v1.ListCloneJobsResponse listCloneJobs( * */ public com.google.cloud.vmmigration.v1.CloneJob getCloneJob( - com.google.cloud.vmmigration.v1.GetCloneJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetCloneJobRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCloneJobMethod(), getCallOptions(), request); } @@ -5391,8 +5415,9 @@ public com.google.cloud.vmmigration.v1.CloneJob getCloneJob( * */ public com.google.longrunning.Operation createCutoverJob( - com.google.cloud.vmmigration.v1.CreateCutoverJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateCutoverJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateCutoverJobMethod(), getCallOptions(), request); } @@ -5404,8 +5429,9 @@ public com.google.longrunning.Operation createCutoverJob( * */ public com.google.longrunning.Operation cancelCutoverJob( - com.google.cloud.vmmigration.v1.CancelCutoverJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CancelCutoverJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelCutoverJobMethod(), getCallOptions(), request); } @@ -5418,8 +5444,9 @@ public com.google.longrunning.Operation cancelCutoverJob( * */ public com.google.cloud.vmmigration.v1.ListCutoverJobsResponse listCutoverJobs( - com.google.cloud.vmmigration.v1.ListCutoverJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListCutoverJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCutoverJobsMethod(), getCallOptions(), request); } @@ -5431,8 +5458,9 @@ public com.google.cloud.vmmigration.v1.ListCutoverJobsResponse listCutoverJobs( * */ public com.google.cloud.vmmigration.v1.CutoverJob getCutoverJob( - com.google.cloud.vmmigration.v1.GetCutoverJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetCutoverJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetCutoverJobMethod(), getCallOptions(), request); } @@ -5444,8 +5472,8 @@ public com.google.cloud.vmmigration.v1.CutoverJob getCutoverJob( * */ public com.google.cloud.vmmigration.v1.ListGroupsResponse listGroups( - com.google.cloud.vmmigration.v1.ListGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListGroupsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListGroupsMethod(), getCallOptions(), request); } @@ -5457,8 +5485,8 @@ public com.google.cloud.vmmigration.v1.ListGroupsResponse listGroups( * */ public com.google.cloud.vmmigration.v1.Group getGroup( - com.google.cloud.vmmigration.v1.GetGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetGroupMethod(), getCallOptions(), request); } @@ -5470,8 +5498,8 @@ public com.google.cloud.vmmigration.v1.Group getGroup( * */ public com.google.longrunning.Operation createGroup( - com.google.cloud.vmmigration.v1.CreateGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateGroupMethod(), getCallOptions(), request); } @@ -5483,8 +5511,8 @@ public com.google.longrunning.Operation createGroup( * */ public com.google.longrunning.Operation updateGroup( - com.google.cloud.vmmigration.v1.UpdateGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.UpdateGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGroupMethod(), getCallOptions(), request); } @@ -5496,8 +5524,8 @@ public com.google.longrunning.Operation updateGroup( * */ public com.google.longrunning.Operation deleteGroup( - com.google.cloud.vmmigration.v1.DeleteGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.DeleteGroupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteGroupMethod(), getCallOptions(), request); } @@ -5509,8 +5537,9 @@ public com.google.longrunning.Operation deleteGroup( * */ public com.google.longrunning.Operation addGroupMigration( - com.google.cloud.vmmigration.v1.AddGroupMigrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.AddGroupMigrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAddGroupMigrationMethod(), getCallOptions(), request); } @@ -5522,8 +5551,9 @@ public com.google.longrunning.Operation addGroupMigration( * */ public com.google.longrunning.Operation removeGroupMigration( - com.google.cloud.vmmigration.v1.RemoveGroupMigrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.RemoveGroupMigrationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRemoveGroupMigrationMethod(), getCallOptions(), request); } @@ -5537,8 +5567,9 @@ public com.google.longrunning.Operation removeGroupMigration( * */ public com.google.cloud.vmmigration.v1.ListTargetProjectsResponse listTargetProjects( - com.google.cloud.vmmigration.v1.ListTargetProjectsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListTargetProjectsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTargetProjectsMethod(), getCallOptions(), request); } @@ -5552,8 +5583,9 @@ public com.google.cloud.vmmigration.v1.ListTargetProjectsResponse listTargetProj * */ public com.google.cloud.vmmigration.v1.TargetProject getTargetProject( - com.google.cloud.vmmigration.v1.GetTargetProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetTargetProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTargetProjectMethod(), getCallOptions(), request); } @@ -5567,8 +5599,9 @@ public com.google.cloud.vmmigration.v1.TargetProject getTargetProject( * */ public com.google.longrunning.Operation createTargetProject( - com.google.cloud.vmmigration.v1.CreateTargetProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateTargetProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTargetProjectMethod(), getCallOptions(), request); } @@ -5582,8 +5615,9 @@ public com.google.longrunning.Operation createTargetProject( * */ public com.google.longrunning.Operation updateTargetProject( - com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTargetProjectMethod(), getCallOptions(), request); } @@ -5597,8 +5631,9 @@ public com.google.longrunning.Operation updateTargetProject( * */ public com.google.longrunning.Operation deleteTargetProject( - com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTargetProjectMethod(), getCallOptions(), request); } @@ -5610,8 +5645,9 @@ public com.google.longrunning.Operation deleteTargetProject( * */ public com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse listReplicationCycles( - com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListReplicationCyclesMethod(), getCallOptions(), request); } @@ -5623,8 +5659,9 @@ public com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse listReplica * */ public com.google.cloud.vmmigration.v1.ReplicationCycle getReplicationCycle( - com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReplicationCycleMethod(), getCallOptions(), request); } @@ -5636,8 +5673,9 @@ public com.google.cloud.vmmigration.v1.ReplicationCycle getReplicationCycle( * */ public com.google.cloud.vmmigration.v1.ListImageImportsResponse listImageImports( - com.google.cloud.vmmigration.v1.ListImageImportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListImageImportsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListImageImportsMethod(), getCallOptions(), request); } @@ -5649,8 +5687,9 @@ public com.google.cloud.vmmigration.v1.ListImageImportsResponse listImageImports * */ public com.google.cloud.vmmigration.v1.ImageImport getImageImport( - com.google.cloud.vmmigration.v1.GetImageImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetImageImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetImageImportMethod(), getCallOptions(), request); } @@ -5662,8 +5701,9 @@ public com.google.cloud.vmmigration.v1.ImageImport getImageImport( * */ public com.google.longrunning.Operation createImageImport( - com.google.cloud.vmmigration.v1.CreateImageImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateImageImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateImageImportMethod(), getCallOptions(), request); } @@ -5675,8 +5715,9 @@ public com.google.longrunning.Operation createImageImport( * */ public com.google.longrunning.Operation deleteImageImport( - com.google.cloud.vmmigration.v1.DeleteImageImportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.DeleteImageImportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteImageImportMethod(), getCallOptions(), request); } @@ -5688,8 +5729,9 @@ public com.google.longrunning.Operation deleteImageImport( * */ public com.google.cloud.vmmigration.v1.ListImageImportJobsResponse listImageImportJobs( - com.google.cloud.vmmigration.v1.ListImageImportJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListImageImportJobsMethod(), getCallOptions(), request); } @@ -5701,8 +5743,9 @@ public com.google.cloud.vmmigration.v1.ListImageImportJobsResponse listImageImpo * */ public com.google.cloud.vmmigration.v1.ImageImportJob getImageImportJob( - com.google.cloud.vmmigration.v1.GetImageImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetImageImportJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetImageImportJobMethod(), getCallOptions(), request); } @@ -5714,8 +5757,9 @@ public com.google.cloud.vmmigration.v1.ImageImportJob getImageImportJob( * */ public com.google.longrunning.Operation cancelImageImportJob( - com.google.cloud.vmmigration.v1.CancelImageImportJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelImageImportJobMethod(), getCallOptions(), request); } @@ -5727,8 +5771,9 @@ public com.google.longrunning.Operation cancelImageImportJob( * */ public com.google.longrunning.Operation createDiskMigrationJob( - com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateDiskMigrationJobMethod(), getCallOptions(), request); } @@ -5740,8 +5785,9 @@ public com.google.longrunning.Operation createDiskMigrationJob( * */ public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse listDiskMigrationJobs( - com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListDiskMigrationJobsMethod(), getCallOptions(), request); } @@ -5753,8 +5799,9 @@ public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse listDiskMig * */ public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob( - com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDiskMigrationJobMethod(), getCallOptions(), request); } @@ -5766,8 +5813,9 @@ public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob( * */ public com.google.longrunning.Operation updateDiskMigrationJob( - com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDiskMigrationJobMethod(), getCallOptions(), request); } @@ -5779,8 +5827,9 @@ public com.google.longrunning.Operation updateDiskMigrationJob( * */ public com.google.longrunning.Operation deleteDiskMigrationJob( - com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteDiskMigrationJobMethod(), getCallOptions(), request); } @@ -5792,8 +5841,9 @@ public com.google.longrunning.Operation deleteDiskMigrationJob( * */ public com.google.longrunning.Operation runDiskMigrationJob( - com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRunDiskMigrationJobMethod(), getCallOptions(), request); } @@ -5805,8 +5855,9 @@ public com.google.longrunning.Operation runDiskMigrationJob( * */ public com.google.longrunning.Operation cancelDiskMigrationJob( - com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelDiskMigrationJobMethod(), getCallOptions(), request); } } diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index cc3d4c2a7945..f104f37a52f5 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.71.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.72.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.72.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java index 8f785bae5648..1679b94f176d 100644 --- a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java +++ b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java @@ -24,9 +24,6 @@ * VMwareEngine manages VMware's private clusters in the Cloud. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vmwareengine/v1/vmwareengine.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VmwareEngineGrpc { @@ -6241,8 +6238,9 @@ protected VmwareEngineBlockingV2Stub build( * */ public com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse listPrivateClouds( - com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPrivateCloudsMethod(), getCallOptions(), request); } @@ -6254,8 +6252,9 @@ public com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse listPrivateClo * */ public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud( - com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPrivateCloudMethod(), getCallOptions(), request); } @@ -6273,8 +6272,9 @@ public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud( * */ public com.google.longrunning.Operation createPrivateCloud( - com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePrivateCloudMethod(), getCallOptions(), request); } @@ -6292,8 +6292,9 @@ public com.google.longrunning.Operation createPrivateCloud( * */ public com.google.longrunning.Operation updatePrivateCloud( - com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePrivateCloudMethod(), getCallOptions(), request); } @@ -6318,8 +6319,9 @@ public com.google.longrunning.Operation updatePrivateCloud( * */ public com.google.longrunning.Operation deletePrivateCloud( - com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePrivateCloudMethod(), getCallOptions(), request); } @@ -6334,8 +6336,9 @@ public com.google.longrunning.Operation deletePrivateCloud( * */ public com.google.longrunning.Operation undeletePrivateCloud( - com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUndeletePrivateCloudMethod(), getCallOptions(), request); } @@ -6347,8 +6350,9 @@ public com.google.longrunning.Operation undeletePrivateCloud( * */ public com.google.cloud.vmwareengine.v1.ListClustersResponse listClusters( - com.google.cloud.vmwareengine.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListClustersMethod(), getCallOptions(), request); } @@ -6360,8 +6364,8 @@ public com.google.cloud.vmwareengine.v1.ListClustersResponse listClusters( * */ public com.google.cloud.vmwareengine.v1.Cluster getCluster( - com.google.cloud.vmwareengine.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetClusterRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetClusterMethod(), getCallOptions(), request); } @@ -6376,8 +6380,9 @@ public com.google.cloud.vmwareengine.v1.Cluster getCluster( * */ public com.google.longrunning.Operation createCluster( - com.google.cloud.vmwareengine.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } @@ -6394,8 +6399,9 @@ public com.google.longrunning.Operation createCluster( * */ public com.google.longrunning.Operation updateCluster( - com.google.cloud.vmwareengine.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } @@ -6410,8 +6416,9 @@ public com.google.longrunning.Operation updateCluster( * */ public com.google.longrunning.Operation deleteCluster( - com.google.cloud.vmwareengine.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } @@ -6423,8 +6430,8 @@ public com.google.longrunning.Operation deleteCluster( * */ public com.google.cloud.vmwareengine.v1.ListNodesResponse listNodes( - com.google.cloud.vmwareengine.v1.ListNodesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListNodesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNodesMethod(), getCallOptions(), request); } @@ -6436,8 +6443,8 @@ public com.google.cloud.vmwareengine.v1.ListNodesResponse listNodes( * */ public com.google.cloud.vmwareengine.v1.Node getNode( - com.google.cloud.vmwareengine.v1.GetNodeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetNodeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNodeMethod(), getCallOptions(), request); } @@ -6450,8 +6457,9 @@ public com.google.cloud.vmwareengine.v1.Node getNode( * */ public com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse listExternalAddresses( - com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListExternalAddressesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExternalAddressesMethod(), getCallOptions(), request); } @@ -6465,8 +6473,9 @@ public com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse listExtern */ public com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse fetchNetworkPolicyExternalAddresses( - com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getFetchNetworkPolicyExternalAddressesMethod(), getCallOptions(), request); } @@ -6478,8 +6487,9 @@ public com.google.cloud.vmwareengine.v1.ListExternalAddressesResponse listExtern * */ public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddress( - com.google.cloud.vmwareengine.v1.GetExternalAddressRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetExternalAddressRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExternalAddressMethod(), getCallOptions(), request); } @@ -6493,8 +6503,9 @@ public com.google.cloud.vmwareengine.v1.ExternalAddress getExternalAddress( * */ public com.google.longrunning.Operation createExternalAddress( - com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreateExternalAddressRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExternalAddressMethod(), getCallOptions(), request); } @@ -6511,8 +6522,9 @@ public com.google.longrunning.Operation createExternalAddress( * */ public com.google.longrunning.Operation updateExternalAddress( - com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateExternalAddressRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExternalAddressMethod(), getCallOptions(), request); } @@ -6526,8 +6538,9 @@ public com.google.longrunning.Operation updateExternalAddress( * */ public com.google.longrunning.Operation deleteExternalAddress( - com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeleteExternalAddressRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExternalAddressMethod(), getCallOptions(), request); } @@ -6539,8 +6552,9 @@ public com.google.longrunning.Operation deleteExternalAddress( * */ public com.google.cloud.vmwareengine.v1.ListSubnetsResponse listSubnets( - com.google.cloud.vmwareengine.v1.ListSubnetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubnetsMethod(), getCallOptions(), request); } @@ -6552,8 +6566,8 @@ public com.google.cloud.vmwareengine.v1.ListSubnetsResponse listSubnets( * */ public com.google.cloud.vmwareengine.v1.Subnet getSubnet( - com.google.cloud.vmwareengine.v1.GetSubnetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetSubnetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSubnetMethod(), getCallOptions(), request); } @@ -6569,8 +6583,9 @@ public com.google.cloud.vmwareengine.v1.Subnet getSubnet( * */ public com.google.longrunning.Operation updateSubnet( - com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateSubnetRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSubnetMethod(), getCallOptions(), request); } @@ -6582,8 +6597,9 @@ public com.google.longrunning.Operation updateSubnet( * */ public com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse listExternalAccessRules( - com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListExternalAccessRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExternalAccessRulesMethod(), getCallOptions(), request); } @@ -6595,8 +6611,9 @@ public com.google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse listExte * */ public com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRule( - com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetExternalAccessRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExternalAccessRuleMethod(), getCallOptions(), request); } @@ -6608,8 +6625,9 @@ public com.google.cloud.vmwareengine.v1.ExternalAccessRule getExternalAccessRule * */ public com.google.longrunning.Operation createExternalAccessRule( - com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreateExternalAccessRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExternalAccessRuleMethod(), getCallOptions(), request); } @@ -6622,8 +6640,9 @@ public com.google.longrunning.Operation createExternalAccessRule( * */ public com.google.longrunning.Operation updateExternalAccessRule( - com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateExternalAccessRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateExternalAccessRuleMethod(), getCallOptions(), request); } @@ -6635,8 +6654,9 @@ public com.google.longrunning.Operation updateExternalAccessRule( * */ public com.google.longrunning.Operation deleteExternalAccessRule( - com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeleteExternalAccessRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteExternalAccessRuleMethod(), getCallOptions(), request); } @@ -6649,8 +6669,9 @@ public com.google.longrunning.Operation deleteExternalAccessRule( * */ public com.google.cloud.vmwareengine.v1.ListLoggingServersResponse listLoggingServers( - com.google.cloud.vmwareengine.v1.ListLoggingServersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListLoggingServersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListLoggingServersMethod(), getCallOptions(), request); } @@ -6662,8 +6683,9 @@ public com.google.cloud.vmwareengine.v1.ListLoggingServersResponse listLoggingSe * */ public com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServer( - com.google.cloud.vmwareengine.v1.GetLoggingServerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetLoggingServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetLoggingServerMethod(), getCallOptions(), request); } @@ -6675,8 +6697,9 @@ public com.google.cloud.vmwareengine.v1.LoggingServer getLoggingServer( * */ public com.google.longrunning.Operation createLoggingServer( - com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreateLoggingServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateLoggingServerMethod(), getCallOptions(), request); } @@ -6689,8 +6712,9 @@ public com.google.longrunning.Operation createLoggingServer( * */ public com.google.longrunning.Operation updateLoggingServer( - com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateLoggingServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateLoggingServerMethod(), getCallOptions(), request); } @@ -6702,8 +6726,9 @@ public com.google.longrunning.Operation updateLoggingServer( * */ public com.google.longrunning.Operation deleteLoggingServer( - com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeleteLoggingServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteLoggingServerMethod(), getCallOptions(), request); } @@ -6715,8 +6740,9 @@ public com.google.longrunning.Operation deleteLoggingServer( * */ public com.google.cloud.vmwareengine.v1.ListNodeTypesResponse listNodeTypes( - com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNodeTypesMethod(), getCallOptions(), request); } @@ -6728,8 +6754,9 @@ public com.google.cloud.vmwareengine.v1.ListNodeTypesResponse listNodeTypes( * */ public com.google.cloud.vmwareengine.v1.NodeType getNodeType( - com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNodeTypeMethod(), getCallOptions(), request); } @@ -6741,8 +6768,9 @@ public com.google.cloud.vmwareengine.v1.NodeType getNodeType( * */ public com.google.cloud.vmwareengine.v1.Credentials showNsxCredentials( - com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getShowNsxCredentialsMethod(), getCallOptions(), request); } @@ -6754,8 +6782,9 @@ public com.google.cloud.vmwareengine.v1.Credentials showNsxCredentials( * */ public com.google.cloud.vmwareengine.v1.Credentials showVcenterCredentials( - com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getShowVcenterCredentialsMethod(), getCallOptions(), request); } @@ -6767,8 +6796,9 @@ public com.google.cloud.vmwareengine.v1.Credentials showVcenterCredentials( * */ public com.google.longrunning.Operation resetNsxCredentials( - com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetNsxCredentialsMethod(), getCallOptions(), request); } @@ -6780,8 +6810,9 @@ public com.google.longrunning.Operation resetNsxCredentials( * */ public com.google.longrunning.Operation resetVcenterCredentials( - com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getResetVcenterCredentialsMethod(), getCallOptions(), request); } @@ -6793,8 +6824,9 @@ public com.google.longrunning.Operation resetVcenterCredentials( * */ public com.google.cloud.vmwareengine.v1.DnsForwarding getDnsForwarding( - com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetDnsForwardingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDnsForwardingMethod(), getCallOptions(), request); } @@ -6807,8 +6839,9 @@ public com.google.cloud.vmwareengine.v1.DnsForwarding getDnsForwarding( * */ public com.google.longrunning.Operation updateDnsForwarding( - com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateDnsForwardingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDnsForwardingMethod(), getCallOptions(), request); } @@ -6823,8 +6856,9 @@ public com.google.longrunning.Operation updateDnsForwarding( * */ public com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeering( - com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetNetworkPeeringRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNetworkPeeringMethod(), getCallOptions(), request); } @@ -6837,8 +6871,9 @@ public com.google.cloud.vmwareengine.v1.NetworkPeering getNetworkPeering( * */ public com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse listNetworkPeerings( - com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListNetworkPeeringsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNetworkPeeringsMethod(), getCallOptions(), request); } @@ -6852,8 +6887,9 @@ public com.google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse listNetworkP * */ public com.google.longrunning.Operation createNetworkPeering( - com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreateNetworkPeeringRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNetworkPeeringMethod(), getCallOptions(), request); } @@ -6868,8 +6904,9 @@ public com.google.longrunning.Operation createNetworkPeering( * */ public com.google.longrunning.Operation deleteNetworkPeering( - com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeleteNetworkPeeringRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNetworkPeeringMethod(), getCallOptions(), request); } @@ -6883,8 +6920,9 @@ public com.google.longrunning.Operation deleteNetworkPeering( * */ public com.google.longrunning.Operation updateNetworkPeering( - com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateNetworkPeeringRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNetworkPeeringMethod(), getCallOptions(), request); } @@ -6897,8 +6935,9 @@ public com.google.longrunning.Operation updateNetworkPeering( * */ public com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse listPeeringRoutes( - com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListPeeringRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPeeringRoutesMethod(), getCallOptions(), request); } @@ -6910,8 +6949,9 @@ public com.google.cloud.vmwareengine.v1.ListPeeringRoutesResponse listPeeringRou * */ public com.google.longrunning.Operation createHcxActivationKey( - com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateHcxActivationKeyMethod(), getCallOptions(), request); } @@ -6923,8 +6963,9 @@ public com.google.longrunning.Operation createHcxActivationKey( * */ public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse listHcxActivationKeys( - com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListHcxActivationKeysMethod(), getCallOptions(), request); } @@ -6936,8 +6977,9 @@ public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse listHcxAct * */ public com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKey( - com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetHcxActivationKeyMethod(), getCallOptions(), request); } @@ -6949,8 +6991,9 @@ public com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKey( * */ public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy( - com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetNetworkPolicyMethod(), getCallOptions(), request); } @@ -6962,8 +7005,9 @@ public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy( * */ public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse listNetworkPolicies( - com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListNetworkPoliciesMethod(), getCallOptions(), request); } @@ -6977,8 +7021,9 @@ public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse listNetworkP * */ public com.google.longrunning.Operation createNetworkPolicy( - com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateNetworkPolicyMethod(), getCallOptions(), request); } @@ -7000,8 +7045,9 @@ public com.google.longrunning.Operation createNetworkPolicy( * */ public com.google.longrunning.Operation updateNetworkPolicy( - com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateNetworkPolicyMethod(), getCallOptions(), request); } @@ -7015,8 +7061,9 @@ public com.google.longrunning.Operation updateNetworkPolicy( * */ public com.google.longrunning.Operation deleteNetworkPolicy( - com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteNetworkPolicyMethod(), getCallOptions(), request); } @@ -7029,8 +7076,9 @@ public com.google.longrunning.Operation deleteNetworkPolicy( */ public com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse listManagementDnsZoneBindings( - com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListManagementDnsZoneBindingsMethod(), getCallOptions(), request); } @@ -7042,8 +7090,9 @@ public com.google.longrunning.Operation deleteNetworkPolicy( * */ public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDnsZoneBinding( - com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetManagementDnsZoneBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetManagementDnsZoneBindingMethod(), getCallOptions(), request); } @@ -7061,8 +7110,9 @@ public com.google.cloud.vmwareengine.v1.ManagementDnsZoneBinding getManagementDn * */ public com.google.longrunning.Operation createManagementDnsZoneBinding( - com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreateManagementDnsZoneBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateManagementDnsZoneBindingMethod(), getCallOptions(), request); } @@ -7075,8 +7125,9 @@ public com.google.longrunning.Operation createManagementDnsZoneBinding( * */ public com.google.longrunning.Operation updateManagementDnsZoneBinding( - com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateManagementDnsZoneBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateManagementDnsZoneBindingMethod(), getCallOptions(), request); } @@ -7090,8 +7141,9 @@ public com.google.longrunning.Operation updateManagementDnsZoneBinding( * */ public com.google.longrunning.Operation deleteManagementDnsZoneBinding( - com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeleteManagementDnsZoneBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteManagementDnsZoneBindingMethod(), getCallOptions(), request); } @@ -7104,8 +7156,9 @@ public com.google.longrunning.Operation deleteManagementDnsZoneBinding( * */ public com.google.longrunning.Operation repairManagementDnsZoneBinding( - com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.RepairManagementDnsZoneBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRepairManagementDnsZoneBindingMethod(), getCallOptions(), request); } @@ -7117,8 +7170,9 @@ public com.google.longrunning.Operation repairManagementDnsZoneBinding( * */ public com.google.longrunning.Operation createVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateVmwareEngineNetworkMethod(), getCallOptions(), request); } @@ -7132,8 +7186,9 @@ public com.google.longrunning.Operation createVmwareEngineNetwork( * */ public com.google.longrunning.Operation updateVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateVmwareEngineNetworkMethod(), getCallOptions(), request); } @@ -7148,8 +7203,9 @@ public com.google.longrunning.Operation updateVmwareEngineNetwork( * */ public com.google.longrunning.Operation deleteVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteVmwareEngineNetworkMethod(), getCallOptions(), request); } @@ -7164,8 +7220,9 @@ public com.google.longrunning.Operation deleteVmwareEngineNetwork( * */ public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork( - com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetVmwareEngineNetworkMethod(), getCallOptions(), request); } @@ -7178,8 +7235,9 @@ public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwo */ public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse listVmwareEngineNetworks( - com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListVmwareEngineNetworksMethod(), getCallOptions(), request); } @@ -7192,8 +7250,9 @@ public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwo * */ public com.google.longrunning.Operation createPrivateConnection( - com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); } @@ -7207,8 +7266,9 @@ public com.google.longrunning.Operation createPrivateConnection( * */ public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection( - com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); } @@ -7220,8 +7280,9 @@ public com.google.cloud.vmwareengine.v1.PrivateConnection getPrivateConnection( * */ public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse listPrivateConnections( - com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); } @@ -7235,8 +7296,9 @@ public com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse listPriva * */ public com.google.longrunning.Operation updatePrivateConnection( - com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdatePrivateConnectionMethod(), getCallOptions(), request); } @@ -7250,8 +7312,9 @@ public com.google.longrunning.Operation updatePrivateConnection( * */ public com.google.longrunning.Operation deletePrivateConnection( - com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); } @@ -7264,8 +7327,9 @@ public com.google.longrunning.Operation deletePrivateConnection( */ public com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse listPrivateConnectionPeeringRoutes( - com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListPrivateConnectionPeeringRoutesMethod(), getCallOptions(), request); } @@ -7280,8 +7344,9 @@ public com.google.longrunning.Operation deletePrivateConnection( * */ public com.google.longrunning.Operation grantDnsBindPermission( - com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GrantDnsBindPermissionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGrantDnsBindPermissionMethod(), getCallOptions(), request); } @@ -7295,8 +7360,9 @@ public com.google.longrunning.Operation grantDnsBindPermission( * */ public com.google.cloud.vmwareengine.v1.DnsBindPermission getDnsBindPermission( - com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.GetDnsBindPermissionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetDnsBindPermissionMethod(), getCallOptions(), request); } @@ -7310,8 +7376,9 @@ public com.google.cloud.vmwareengine.v1.DnsBindPermission getDnsBindPermission( * */ public com.google.longrunning.Operation revokeDnsBindPermission( - com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vmwareengine.v1.RevokeDnsBindPermissionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRevokeDnsBindPermissionMethod(), getCallOptions(), request); } } diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index a6c10b048580..dc62d1659100 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.78.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.78.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java index d696920ee629..77ede4c220e2 100644 --- a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java +++ b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java @@ -26,9 +26,6 @@ * Virtual Private Cloud networks. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vpcaccess/v1/vpc_access.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VpcAccessServiceGrpc { @@ -477,8 +474,9 @@ protected VpcAccessServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createConnector( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateConnectorMethod(), getCallOptions(), request); } @@ -491,8 +489,8 @@ public com.google.longrunning.Operation createConnector( * */ public com.google.cloud.vpcaccess.v1.Connector getConnector( - com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vpcaccess.v1.GetConnectorRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetConnectorMethod(), getCallOptions(), request); } @@ -504,8 +502,9 @@ public com.google.cloud.vpcaccess.v1.Connector getConnector( * */ public com.google.cloud.vpcaccess.v1.ListConnectorsResponse listConnectors( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListConnectorsMethod(), getCallOptions(), request); } @@ -518,8 +517,9 @@ public com.google.cloud.vpcaccess.v1.ListConnectorsResponse listConnectors( * */ public com.google.longrunning.Operation deleteConnector( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteConnectorMethod(), getCallOptions(), request); } } diff --git a/java-webrisk/README.md b/java-webrisk/README.md index fe3d9c2f5620..e909f6f52afe 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.76.0 + 2.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.76.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/WebRiskServiceGrpc.java b/java-webrisk/grpc-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/WebRiskServiceGrpc.java index 32f2456b7884..66424d49486d 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/WebRiskServiceGrpc.java +++ b/java-webrisk/grpc-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/WebRiskServiceGrpc.java @@ -25,9 +25,6 @@ * website and in client applications. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/webrisk/v1/webrisk.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WebRiskServiceGrpc { @@ -588,8 +585,8 @@ protected WebRiskServiceBlockingV2Stub build( * */ public com.google.webrisk.v1.ComputeThreatListDiffResponse computeThreatListDiff( - com.google.webrisk.v1.ComputeThreatListDiffRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.webrisk.v1.ComputeThreatListDiffRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeThreatListDiffMethod(), getCallOptions(), request); } @@ -605,8 +602,8 @@ public com.google.webrisk.v1.ComputeThreatListDiffResponse computeThreatListDiff * */ public com.google.webrisk.v1.SearchUrisResponse searchUris( - com.google.webrisk.v1.SearchUrisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.webrisk.v1.SearchUrisRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchUrisMethod(), getCallOptions(), request); } @@ -622,8 +619,8 @@ public com.google.webrisk.v1.SearchUrisResponse searchUris( * */ public com.google.webrisk.v1.SearchHashesResponse searchHashes( - com.google.webrisk.v1.SearchHashesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.webrisk.v1.SearchHashesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchHashesMethod(), getCallOptions(), request); } @@ -641,8 +638,8 @@ public com.google.webrisk.v1.SearchHashesResponse searchHashes( * */ public com.google.webrisk.v1.Submission createSubmission( - com.google.webrisk.v1.CreateSubmissionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.webrisk.v1.CreateSubmissionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSubmissionMethod(), getCallOptions(), request); } @@ -663,8 +660,8 @@ public com.google.webrisk.v1.Submission createSubmission( * */ public com.google.longrunning.Operation submitUri( - com.google.webrisk.v1.SubmitUriRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.webrisk.v1.SubmitUriRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSubmitUriMethod(), getCallOptions(), request); } } diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskServiceV1Beta1Grpc.java b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskServiceV1Beta1Grpc.java index 9cfc803dc14f..ce3d81c5540e 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskServiceV1Beta1Grpc.java +++ b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskServiceV1Beta1Grpc.java @@ -25,9 +25,6 @@ * website and in client applications. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/webrisk/v1beta1/webrisk.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WebRiskServiceV1Beta1Grpc { @@ -412,8 +409,9 @@ protected WebRiskServiceV1Beta1BlockingV2Stub build( * */ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse computeThreatListDiff( - com.google.webrisk.v1beta1.ComputeThreatListDiffRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.webrisk.v1beta1.ComputeThreatListDiffRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getComputeThreatListDiffMethod(), getCallOptions(), request); } @@ -425,8 +423,8 @@ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse computeThreatLis * */ public com.google.webrisk.v1beta1.SearchUrisResponse searchUris( - com.google.webrisk.v1beta1.SearchUrisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.webrisk.v1beta1.SearchUrisRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchUrisMethod(), getCallOptions(), request); } @@ -442,8 +440,8 @@ public com.google.webrisk.v1beta1.SearchUrisResponse searchUris( * */ public com.google.webrisk.v1beta1.SearchHashesResponse searchHashes( - com.google.webrisk.v1beta1.SearchHashesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.webrisk.v1beta1.SearchHashesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSearchHashesMethod(), getCallOptions(), request); } } diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index 4127b30cea28..7c7ff2b0e2df 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.77.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java index c7e9a7ef64d4..fbb01d1b2788 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java @@ -26,9 +26,6 @@ * attempts to exercise as many user inputs and event handlers as possible. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WebSecurityScannerGrpc { @@ -1196,8 +1193,9 @@ protected WebSecurityScannerBlockingV2Stub build( * */ public com.google.cloud.websecurityscanner.v1.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); } @@ -1209,8 +1207,9 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig createScanConfig( * */ public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); } @@ -1222,8 +1221,9 @@ public com.google.protobuf.Empty deleteScanConfig( * */ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetScanConfigMethod(), getCallOptions(), request); } @@ -1235,8 +1235,9 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig( * */ public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListScanConfigsMethod(), getCallOptions(), request); } @@ -1248,8 +1249,9 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse listScanCo * */ public com.google.cloud.websecurityscanner.v1.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); } @@ -1261,8 +1263,9 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig updateScanConfig( * */ public com.google.cloud.websecurityscanner.v1.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartScanRunMethod(), getCallOptions(), request); } @@ -1274,8 +1277,9 @@ public com.google.cloud.websecurityscanner.v1.ScanRun startScanRun( * */ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetScanRunMethod(), getCallOptions(), request); } @@ -1288,8 +1292,9 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRun( * */ public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListScanRunsMethod(), getCallOptions(), request); } @@ -1301,8 +1306,9 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse listScanRuns( * */ public com.google.cloud.websecurityscanner.v1.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopScanRunMethod(), getCallOptions(), request); } @@ -1314,8 +1320,9 @@ public com.google.cloud.websecurityscanner.v1.ScanRun stopScanRun( * */ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); } @@ -1327,8 +1334,9 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse listCrawle * */ public com.google.cloud.websecurityscanner.v1.Finding getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.GetFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFindingMethod(), getCallOptions(), request); } @@ -1340,8 +1348,9 @@ public com.google.cloud.websecurityscanner.v1.Finding getFinding( * */ public com.google.cloud.websecurityscanner.v1.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingsMethod(), getCallOptions(), request); } @@ -1353,8 +1362,9 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsResponse listFindings( * */ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); } } diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java index 8bcd33a90cfa..18fdf0352c9f 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java @@ -26,9 +26,6 @@ * attempts to exercise as many user inputs and event handlers as possible. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WebSecurityScannerGrpc { @@ -1210,8 +1207,9 @@ protected WebSecurityScannerBlockingV2Stub build( * */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); } @@ -1223,8 +1221,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig createScanConfig( * */ public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); } @@ -1236,8 +1235,9 @@ public com.google.protobuf.Empty deleteScanConfig( * */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetScanConfigMethod(), getCallOptions(), request); } @@ -1249,8 +1249,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig( * */ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListScanConfigsMethod(), getCallOptions(), request); } @@ -1262,8 +1263,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse listS * */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); } @@ -1275,8 +1277,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig updateScanConfig( * */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartScanRunMethod(), getCallOptions(), request); } @@ -1288,8 +1291,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun startScanRun( * */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetScanRunMethod(), getCallOptions(), request); } @@ -1302,8 +1306,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRun( * */ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListScanRunsMethod(), getCallOptions(), request); } @@ -1315,8 +1320,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse listScan * */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopScanRunMethod(), getCallOptions(), request); } @@ -1328,8 +1334,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun stopScanRun( * */ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); } @@ -1341,8 +1348,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse listC * */ public com.google.cloud.websecurityscanner.v1alpha.Finding getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFindingMethod(), getCallOptions(), request); } @@ -1354,8 +1362,9 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFinding( * */ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingsMethod(), getCallOptions(), request); } @@ -1368,8 +1377,9 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse listFind */ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); } } diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java index 5ad93a28e6a2..d9fabb244396 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java @@ -26,9 +26,6 @@ * attempts to exercise as many user inputs and event handlers as possible. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WebSecurityScannerGrpc { @@ -1206,8 +1203,9 @@ protected WebSecurityScannerBlockingV2Stub build( * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); } @@ -1219,8 +1217,9 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig createScanConfig( * */ public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); } @@ -1232,8 +1231,9 @@ public com.google.protobuf.Empty deleteScanConfig( * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetScanConfigMethod(), getCallOptions(), request); } @@ -1245,8 +1245,9 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig( * */ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListScanConfigsMethod(), getCallOptions(), request); } @@ -1258,8 +1259,9 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse listSc * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); } @@ -1271,8 +1273,9 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig updateScanConfig( * */ public com.google.cloud.websecurityscanner.v1beta.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartScanRunMethod(), getCallOptions(), request); } @@ -1284,8 +1287,9 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun startScanRun( * */ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetScanRunMethod(), getCallOptions(), request); } @@ -1298,8 +1302,9 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRun( * */ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListScanRunsMethod(), getCallOptions(), request); } @@ -1311,8 +1316,9 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse listScanR * */ public com.google.cloud.websecurityscanner.v1beta.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopScanRunMethod(), getCallOptions(), request); } @@ -1324,8 +1330,9 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun stopScanRun( * */ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); } @@ -1337,8 +1344,9 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse listCr * */ public com.google.cloud.websecurityscanner.v1beta.Finding getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetFindingMethod(), getCallOptions(), request); } @@ -1350,8 +1358,9 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFinding( * */ public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingsMethod(), getCallOptions(), request); } @@ -1364,8 +1373,9 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse listFindi */ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); } } diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 5ee58e1ffebd..94afb86c1d09 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflow-executions - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.77.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java index 1919371d8c97..03ee91ba444a 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java @@ -25,9 +25,6 @@ * [Workflows][google.cloud.workflows.v1.Workflow] called executions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workflows/executions/v1/executions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExecutionsGrpc { @@ -487,8 +484,9 @@ protected ExecutionsBlockingV2Stub build( * */ public com.google.cloud.workflows.executions.v1.ListExecutionsResponse listExecutions( - com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExecutionsMethod(), getCallOptions(), request); } @@ -500,8 +498,9 @@ public com.google.cloud.workflows.executions.v1.ListExecutionsResponse listExecu * */ public com.google.cloud.workflows.executions.v1.Execution createExecution( - com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExecutionMethod(), getCallOptions(), request); } @@ -513,8 +512,9 @@ public com.google.cloud.workflows.executions.v1.Execution createExecution( * */ public com.google.cloud.workflows.executions.v1.Execution getExecution( - com.google.cloud.workflows.executions.v1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.executions.v1.GetExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExecutionMethod(), getCallOptions(), request); } @@ -526,8 +526,9 @@ public com.google.cloud.workflows.executions.v1.Execution getExecution( * */ public com.google.cloud.workflows.executions.v1.Execution cancelExecution( - com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelExecutionMethod(), getCallOptions(), request); } } diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java index b591005b531e..6bfe6e105cdf 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java @@ -25,9 +25,6 @@ * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workflows/executions/v1beta/executions.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExecutionsGrpc { @@ -489,8 +486,9 @@ protected ExecutionsBlockingV2Stub build( * */ public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse listExecutions( - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListExecutionsMethod(), getCallOptions(), request); } @@ -502,8 +500,9 @@ public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse listE * */ public com.google.cloud.workflows.executions.v1beta.Execution createExecution( - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateExecutionMethod(), getCallOptions(), request); } @@ -515,8 +514,9 @@ public com.google.cloud.workflows.executions.v1beta.Execution createExecution( * */ public com.google.cloud.workflows.executions.v1beta.Execution getExecution( - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetExecutionMethod(), getCallOptions(), request); } @@ -528,8 +528,9 @@ public com.google.cloud.workflows.executions.v1beta.Execution getExecution( * */ public com.google.cloud.workflows.executions.v1beta.Execution cancelExecution( - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelExecutionMethod(), getCallOptions(), request); } } diff --git a/java-workflows/README.md b/java-workflows/README.md index df1ea1a5c2ef..0d856c52921c 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.77.0' +implementation 'com.google.cloud:google-cloud-workflows:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java b/java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java index d7b448b585a6..8b338c5a42f7 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java +++ b/java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java @@ -26,9 +26,6 @@ * networking interruptions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workflows/v1/workflows.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WorkflowsGrpc { @@ -635,8 +632,8 @@ protected WorkflowsBlockingV2Stub build( * */ public com.google.cloud.workflows.v1.ListWorkflowsResponse listWorkflows( - com.google.cloud.workflows.v1.ListWorkflowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1.ListWorkflowsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkflowsMethod(), getCallOptions(), request); } @@ -648,8 +645,8 @@ public com.google.cloud.workflows.v1.ListWorkflowsResponse listWorkflows( * */ public com.google.cloud.workflows.v1.Workflow getWorkflow( - com.google.cloud.workflows.v1.GetWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1.GetWorkflowRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkflowMethod(), getCallOptions(), request); } @@ -663,8 +660,9 @@ public com.google.cloud.workflows.v1.Workflow getWorkflow( * */ public com.google.longrunning.Operation createWorkflow( - com.google.cloud.workflows.v1.CreateWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1.CreateWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkflowMethod(), getCallOptions(), request); } @@ -678,8 +676,9 @@ public com.google.longrunning.Operation createWorkflow( * */ public com.google.longrunning.Operation deleteWorkflow( - com.google.cloud.workflows.v1.DeleteWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1.DeleteWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkflowMethod(), getCallOptions(), request); } @@ -695,8 +694,9 @@ public com.google.longrunning.Operation deleteWorkflow( * */ public com.google.longrunning.Operation updateWorkflow( - com.google.cloud.workflows.v1.UpdateWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1.UpdateWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkflowMethod(), getCallOptions(), request); } @@ -708,8 +708,9 @@ public com.google.longrunning.Operation updateWorkflow( * */ public com.google.cloud.workflows.v1.ListWorkflowRevisionsResponse listWorkflowRevisions( - com.google.cloud.workflows.v1.ListWorkflowRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1.ListWorkflowRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkflowRevisionsMethod(), getCallOptions(), request); } } diff --git a/java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java b/java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java index 65bb05982453..2018d0dcdda6 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java +++ b/java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java @@ -26,9 +26,6 @@ * networking interruptions. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workflows/v1beta/workflows.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WorkflowsGrpc { @@ -559,8 +556,9 @@ protected WorkflowsBlockingV2Stub build( * */ public com.google.cloud.workflows.v1beta.ListWorkflowsResponse listWorkflows( - com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkflowsMethod(), getCallOptions(), request); } @@ -572,8 +570,9 @@ public com.google.cloud.workflows.v1beta.ListWorkflowsResponse listWorkflows( * */ public com.google.cloud.workflows.v1beta.Workflow getWorkflow( - com.google.cloud.workflows.v1beta.GetWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1beta.GetWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkflowMethod(), getCallOptions(), request); } @@ -587,8 +586,9 @@ public com.google.cloud.workflows.v1beta.Workflow getWorkflow( * */ public com.google.longrunning.Operation createWorkflow( - com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkflowMethod(), getCallOptions(), request); } @@ -602,8 +602,9 @@ public com.google.longrunning.Operation createWorkflow( * */ public com.google.longrunning.Operation deleteWorkflow( - com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkflowMethod(), getCallOptions(), request); } @@ -619,8 +620,9 @@ public com.google.longrunning.Operation deleteWorkflow( * */ public com.google.longrunning.Operation updateWorkflow( - com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkflowMethod(), getCallOptions(), request); } } diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index 6e062610f4ca..44ce03554c90 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.41.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.42.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceGrpc.java b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceGrpc.java index a49967209cce..08ec5233cf40 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceGrpc.java +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceGrpc.java @@ -24,9 +24,6 @@ * A service that manages subscriptions to Google Workspace events. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/apps/events/subscriptions/v1/subscriptions_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SubscriptionsServiceGrpc { @@ -674,8 +671,9 @@ protected SubscriptionsServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createSubscription( - com.google.apps.events.subscriptions.v1.CreateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1.CreateSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); } @@ -689,8 +687,9 @@ public com.google.longrunning.Operation createSubscription( * */ public com.google.longrunning.Operation deleteSubscription( - com.google.apps.events.subscriptions.v1.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1.DeleteSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); } @@ -704,8 +703,9 @@ public com.google.longrunning.Operation deleteSubscription( * */ public com.google.apps.events.subscriptions.v1.Subscription getSubscription( - com.google.apps.events.subscriptions.v1.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1.GetSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); } @@ -719,8 +719,9 @@ public com.google.apps.events.subscriptions.v1.Subscription getSubscription( * */ public com.google.apps.events.subscriptions.v1.ListSubscriptionsResponse listSubscriptions( - com.google.apps.events.subscriptions.v1.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1.ListSubscriptionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); } @@ -734,8 +735,9 @@ public com.google.apps.events.subscriptions.v1.ListSubscriptionsResponse listSub * */ public com.google.longrunning.Operation updateSubscription( - com.google.apps.events.subscriptions.v1.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1.UpdateSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); } @@ -752,8 +754,9 @@ public com.google.longrunning.Operation updateSubscription( * */ public com.google.longrunning.Operation reactivateSubscription( - com.google.apps.events.subscriptions.v1.ReactivateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1.ReactivateSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReactivateSubscriptionMethod(), getCallOptions(), request); } } diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceGrpc.java b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceGrpc.java index 5e29529f1940..6187b7a8d9d2 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceGrpc.java +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceGrpc.java @@ -24,9 +24,6 @@ * A service that manages subscriptions to Google Workspace events. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/apps/events/subscriptions/v1beta/subscriptions_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SubscriptionsServiceGrpc { @@ -676,8 +673,9 @@ protected SubscriptionsServiceBlockingV2Stub build( * */ public com.google.longrunning.Operation createSubscription( - com.google.apps.events.subscriptions.v1beta.CreateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1beta.CreateSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); } @@ -691,8 +689,9 @@ public com.google.longrunning.Operation createSubscription( * */ public com.google.longrunning.Operation deleteSubscription( - com.google.apps.events.subscriptions.v1beta.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1beta.DeleteSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); } @@ -706,8 +705,9 @@ public com.google.longrunning.Operation deleteSubscription( * */ public com.google.apps.events.subscriptions.v1beta.Subscription getSubscription( - com.google.apps.events.subscriptions.v1beta.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1beta.GetSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); } @@ -721,8 +721,9 @@ public com.google.apps.events.subscriptions.v1beta.Subscription getSubscription( * */ public com.google.apps.events.subscriptions.v1beta.ListSubscriptionsResponse listSubscriptions( - com.google.apps.events.subscriptions.v1beta.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1beta.ListSubscriptionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); } @@ -736,8 +737,9 @@ public com.google.apps.events.subscriptions.v1beta.ListSubscriptionsResponse lis * */ public com.google.longrunning.Operation updateSubscription( - com.google.apps.events.subscriptions.v1beta.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1beta.UpdateSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); } @@ -755,8 +757,9 @@ public com.google.longrunning.Operation updateSubscription( * */ public com.google.longrunning.Operation reactivateSubscription( - com.google.apps.events.subscriptions.v1beta.ReactivateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.apps.events.subscriptions.v1beta.ReactivateSubscriptionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getReactivateSubscriptionMethod(), getCallOptions(), request); } } diff --git a/java-workstations/README.md b/java-workstations/README.md index 5c9fd51d690f..204fe22995c2 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.65.0' +implementation 'com.google.cloud:google-cloud-workstations:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.66.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java b/java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java index f647aa4fcd35..c71efb1c25c6 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java +++ b/java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java @@ -24,9 +24,6 @@ * Service for interacting with Cloud Workstations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workstations/v1/workstations.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WorkstationsGrpc { @@ -1754,8 +1751,9 @@ protected WorkstationsBlockingV2Stub build( * */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); } @@ -1767,8 +1765,9 @@ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster * */ public com.google.cloud.workstations.v1.ListWorkstationClustersResponse listWorkstationClusters( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); } @@ -1780,8 +1779,9 @@ public com.google.cloud.workstations.v1.ListWorkstationClustersResponse listWork * */ public com.google.longrunning.Operation createWorkstationCluster( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); } @@ -1793,8 +1793,9 @@ public com.google.longrunning.Operation createWorkstationCluster( * */ public com.google.longrunning.Operation updateWorkstationCluster( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); } @@ -1806,8 +1807,9 @@ public com.google.longrunning.Operation updateWorkstationCluster( * */ public com.google.longrunning.Operation deleteWorkstationCluster( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); } @@ -1819,8 +1821,9 @@ public com.google.longrunning.Operation deleteWorkstationCluster( * */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); } @@ -1832,8 +1835,9 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig( * */ public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorkstationConfigs( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); } @@ -1847,8 +1851,9 @@ public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorks */ public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); } @@ -1860,8 +1865,9 @@ public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorks * */ public com.google.longrunning.Operation createWorkstationConfig( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); } @@ -1873,8 +1879,9 @@ public com.google.longrunning.Operation createWorkstationConfig( * */ public com.google.longrunning.Operation updateWorkstationConfig( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); } @@ -1886,8 +1893,9 @@ public com.google.longrunning.Operation updateWorkstationConfig( * */ public com.google.longrunning.Operation deleteWorkstationConfig( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); } @@ -1899,8 +1907,9 @@ public com.google.longrunning.Operation deleteWorkstationConfig( * */ public com.google.cloud.workstations.v1.Workstation getWorkstation( - com.google.cloud.workstations.v1.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.GetWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkstationMethod(), getCallOptions(), request); } @@ -1912,8 +1921,9 @@ public com.google.cloud.workstations.v1.Workstation getWorkstation( * */ public com.google.cloud.workstations.v1.ListWorkstationsResponse listWorkstations( - com.google.cloud.workstations.v1.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.ListWorkstationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkstationsMethod(), getCallOptions(), request); } @@ -1926,8 +1936,9 @@ public com.google.cloud.workstations.v1.ListWorkstationsResponse listWorkstation * */ public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse listUsableWorkstations( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); } @@ -1939,8 +1950,9 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse listUsabl * */ public com.google.longrunning.Operation createWorkstation( - com.google.cloud.workstations.v1.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.CreateWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); } @@ -1952,8 +1964,9 @@ public com.google.longrunning.Operation createWorkstation( * */ public com.google.longrunning.Operation updateWorkstation( - com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.UpdateWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); } @@ -1965,8 +1978,9 @@ public com.google.longrunning.Operation updateWorkstation( * */ public com.google.longrunning.Operation deleteWorkstation( - com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.DeleteWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); } @@ -1978,8 +1992,9 @@ public com.google.longrunning.Operation deleteWorkstation( * */ public com.google.longrunning.Operation startWorkstation( - com.google.cloud.workstations.v1.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.StartWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartWorkstationMethod(), getCallOptions(), request); } @@ -1991,8 +2006,9 @@ public com.google.longrunning.Operation startWorkstation( * */ public com.google.longrunning.Operation stopWorkstation( - com.google.cloud.workstations.v1.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.StopWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopWorkstationMethod(), getCallOptions(), request); } @@ -2005,8 +2021,9 @@ public com.google.longrunning.Operation stopWorkstation( * */ public com.google.cloud.workstations.v1.GenerateAccessTokenResponse generateAccessToken( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); } } diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java b/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java index e39e072910cc..8c9e37a05cc0 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java +++ b/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java @@ -24,9 +24,6 @@ * Service for interacting with Cloud Workstations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workstations/v1beta/workstations.proto") @io.grpc.stub.annotations.GrpcGenerated public final class WorkstationsGrpc { @@ -1765,8 +1762,9 @@ protected WorkstationsBlockingV2Stub build( * */ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); } @@ -1779,8 +1777,9 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClu */ public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); } @@ -1792,8 +1791,9 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClu * */ public com.google.longrunning.Operation createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); } @@ -1805,8 +1805,9 @@ public com.google.longrunning.Operation createWorkstationCluster( * */ public com.google.longrunning.Operation updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); } @@ -1818,8 +1819,9 @@ public com.google.longrunning.Operation updateWorkstationCluster( * */ public com.google.longrunning.Operation deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); } @@ -1831,8 +1833,9 @@ public com.google.longrunning.Operation deleteWorkstationCluster( * */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); } @@ -1845,8 +1848,9 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf */ public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); } @@ -1860,8 +1864,9 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf */ public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); } @@ -1873,8 +1878,9 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf * */ public com.google.longrunning.Operation createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); } @@ -1886,8 +1892,9 @@ public com.google.longrunning.Operation createWorkstationConfig( * */ public com.google.longrunning.Operation updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); } @@ -1899,8 +1906,9 @@ public com.google.longrunning.Operation updateWorkstationConfig( * */ public com.google.longrunning.Operation deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); } @@ -1912,8 +1920,9 @@ public com.google.longrunning.Operation deleteWorkstationConfig( * */ public com.google.cloud.workstations.v1beta.Workstation getWorkstation( - com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.GetWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetWorkstationMethod(), getCallOptions(), request); } @@ -1925,8 +1934,9 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstation( * */ public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorkstations( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkstationsMethod(), getCallOptions(), request); } @@ -1940,8 +1950,9 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorksta */ public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); } @@ -1953,8 +1964,9 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorksta * */ public com.google.longrunning.Operation createWorkstation( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); } @@ -1966,8 +1978,9 @@ public com.google.longrunning.Operation createWorkstation( * */ public com.google.longrunning.Operation updateWorkstation( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); } @@ -1979,8 +1992,9 @@ public com.google.longrunning.Operation updateWorkstation( * */ public com.google.longrunning.Operation deleteWorkstation( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); } @@ -1992,8 +2006,9 @@ public com.google.longrunning.Operation deleteWorkstation( * */ public com.google.longrunning.Operation startWorkstation( - com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.StartWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStartWorkstationMethod(), getCallOptions(), request); } @@ -2005,8 +2020,9 @@ public com.google.longrunning.Operation startWorkstation( * */ public com.google.longrunning.Operation stopWorkstation( - com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.StopWorkstationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getStopWorkstationMethod(), getCallOptions(), request); } @@ -2019,8 +2035,9 @@ public com.google.longrunning.Operation stopWorkstation( * */ public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); } }